Struct bio::io::fasta::Index [−][src]
pub struct Index { /* fields omitted */ }
A FASTA index as created by SAMtools (.fai).
Implementations
impl Index
[src]
impl Index
[src]pub fn new<R: Read>(fai: R) -> Result<Self>
[src]
Open a FASTA index from a given io::Read
instance.
pub fn from_file<P: AsRef<Path> + Debug>(path: &P) -> Result<Self>
[src]
Open a FASTA index from a given file path.
pub fn with_fasta_file<P: AsRef<Path>>(fasta_path: &P) -> Result<Self>
[src]
Open a FASTA index given the corresponding FASTA file path. That is, for ref.fasta we expect ref.fasta.fai.
pub fn sequences(&self) -> Vec<Sequence>
[src]
Return a vector of sequences described in the index.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Index
impl RefUnwindSafe for Index
impl UnwindSafe for Index
impl UnwindSafe for Index
Blanket Implementations
impl<T> Same<T> for T
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
pub fn to_subset(&self) -> Option<SS>
pub fn is_in_subset(&self) -> bool
pub unsafe fn to_subset_unchecked(&self) -> SS
pub fn from_subset(element: &SS) -> SP
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,