pub struct GenomeIO<R> { /* private fields */ }Expand description
FASTA/FASTQ parser
Implementations§
Source§impl<R: Read> GenomeIO<R>
impl<R: Read> GenomeIO<R>
Sourcepub fn read_contig(&mut self) -> Result<Option<(String, Contig)>>
pub fn read_contig(&mut self) -> Result<Option<(String, Contig)>>
Read next contig without conversion (preserves ASCII)
Sourcepub fn read_contig_converted(&mut self) -> Result<Option<(String, Contig)>>
pub fn read_contig_converted(&mut self) -> Result<Option<(String, Contig)>>
Read next contig with nucleotide conversion (ASCII -> numeric)
Sourcepub fn read_contig_with_sample(
&mut self,
) -> Result<Option<(String, String, String, Contig)>>
pub fn read_contig_with_sample( &mut self, ) -> Result<Option<(String, String, String, Contig)>>
Read next contig with parsed sample/contig names (for multi-sample FASTAs) Returns: (full_header, sample_name, contig_name, sequence)
Parses headers in format: >sample#haplotype#chromosome Example: >S288C#1#chrI -> sample=“S288C#1”, contig=“chrI”
Auto Trait Implementations§
impl<R> Freeze for GenomeIO<R>where
R: Freeze,
impl<R> RefUnwindSafe for GenomeIO<R>where
R: RefUnwindSafe,
impl<R> Send for GenomeIO<R>where
R: Send,
impl<R> Sync for GenomeIO<R>where
R: Sync,
impl<R> Unpin for GenomeIO<R>where
R: Unpin,
impl<R> UnwindSafe for GenomeIO<R>where
R: UnwindSafe,
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more