pub struct PansnFileIterator { /* private fields */ }Expand description
Iterator for a single pansn-format FASTA file Parses sample names from headers like: >sample#hap#chromosome
Implementations§
Source§impl PansnFileIterator
impl PansnFileIterator
Sourcepub fn new(file_path: &Path) -> Result<Self>
pub fn new(file_path: &Path) -> Result<Self>
Create a new iterator for a single pansn-format FASTA file
This iterator requires samples to appear in contiguous blocks for C++ AGC compatibility. If your file has samples in non-contiguous order (e.g., all chr1, then all chr2), use one of these solutions:
- Use IndexedPansnFileIterator with a bgzip+indexed file
- Reorder the file by sample using
ragc sort-fasta - Split into per-sample files
Trait Implementations§
Source§impl ContigIterator for PansnFileIterator
impl ContigIterator for PansnFileIterator
Auto Trait Implementations§
impl Freeze for PansnFileIterator
impl !RefUnwindSafe for PansnFileIterator
impl !Send for PansnFileIterator
impl !Sync for PansnFileIterator
impl Unpin for PansnFileIterator
impl !UnwindSafe for PansnFileIterator
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