pub struct IndexedSequenceWithQuality { /* private fields */ }Expand description
Holds the sequence, its quality scores, and its base-0 index in the original FASTQ file.
Implementations§
Source§impl IndexedSequenceWithQuality
impl IndexedSequenceWithQuality
Sourcepub fn new(
original_index: u32,
quality_scores: &str,
sequence: &str,
) -> Result<IndexedSequenceWithQuality, String>
pub fn new( original_index: u32, quality_scores: &str, sequence: &str, ) -> Result<IndexedSequenceWithQuality, String>
Creates a new IndexedSequenceWithQuality with the given index, quality scores, and sequence.
§Arguments
original_index- The position of this sequence in the original FASTQ filequality_scores- The quality scores for this sequencesequence- The nucleotide or amino acid sequence string
§Errors
Returns an error if quality_scores and sequence differ in length.
Sourcepub fn get_quality_scores(&self) -> &str
pub fn get_quality_scores(&self) -> &str
Returns the quality scores string.
Trait Implementations§
Source§impl Clone for IndexedSequenceWithQuality
impl Clone for IndexedSequenceWithQuality
Source§fn clone(&self) -> IndexedSequenceWithQuality
fn clone(&self) -> IndexedSequenceWithQuality
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for IndexedSequenceWithQuality
impl Debug for IndexedSequenceWithQuality
Source§impl FastxRecord for IndexedSequenceWithQuality
impl FastxRecord for IndexedSequenceWithQuality
Source§fn get_sequence(&self) -> &str
fn get_sequence(&self) -> &str
Returns the sequence string.
Source§fn subsequence(&self, start: usize, end: usize) -> IndexedSequenceWithQuality
fn subsequence(&self, start: usize, end: usize) -> IndexedSequenceWithQuality
Returns a new record containing the subsequence between
start (inclusive) and end (exclusive).Source§fn format_output(&self, name: &str) -> String
fn format_output(&self, name: &str) -> String
Returns the record formatted for writing to a file.
Auto Trait Implementations§
impl Freeze for IndexedSequenceWithQuality
impl RefUnwindSafe for IndexedSequenceWithQuality
impl Send for IndexedSequenceWithQuality
impl Sync for IndexedSequenceWithQuality
impl Unpin for IndexedSequenceWithQuality
impl UnsafeUnpin for IndexedSequenceWithQuality
impl UnwindSafe for IndexedSequenceWithQuality
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more