pub struct ReportRow { /* private fields */ }Expand description
A single row from a kraken2 report file.
Each row represents one taxon and includes classification counts, the taxonomic rank,
and the taxon name. The depth field is derived from the leading whitespace indentation
in the original report and encodes the position in the taxonomy tree.
For extended reports (with minimizer data), minimizer_count and
distinct_minimizer_count are Some; for standard reports they are None.
Implementations§
Source§impl ReportRow
impl ReportRow
Sourcepub fn percentage(&self) -> f64
pub fn percentage(&self) -> f64
Percentage of fragments rooted at this taxon’s clade.
Sourcepub fn clade_count(&self) -> u64
pub fn clade_count(&self) -> u64
Number of fragments in the clade rooted at this taxon.
Sourcepub fn direct_count(&self) -> u64
pub fn direct_count(&self) -> u64
Number of fragments assigned directly to this taxon.
Sourcepub fn minimizer_count(&self) -> Option<u64>
pub fn minimizer_count(&self) -> Option<u64>
Number of minimizers in the clade (extended reports only).
Sourcepub fn distinct_minimizer_count(&self) -> Option<u64>
pub fn distinct_minimizer_count(&self) -> Option<u64>
Number of distinct minimizers in the clade (extended reports only).
Sourcepub fn taxonomic_rank(&self) -> TaxonomicRank
pub fn taxonomic_rank(&self) -> TaxonomicRank
The taxonomic rank of this taxon.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ReportRow
impl<'de> Deserialize<'de> for ReportRow
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for ReportRow
Auto Trait Implementations§
impl Freeze for ReportRow
impl RefUnwindSafe for ReportRow
impl Send for ReportRow
impl Sync for ReportRow
impl Unpin for ReportRow
impl UnsafeUnpin for ReportRow
impl UnwindSafe for ReportRow
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