pub struct GenusResult {Show 23 fields
pub arg_name: String,
pub contig_name: String,
pub genus: Option<String>,
pub confidence: f64,
pub specificity: f64,
pub upstream_len: usize,
pub downstream_len: usize,
pub top_matches: Vec<(String, f64)>,
pub snp_status: SnpStatus,
pub upstream_seq: String,
pub downstream_seq: String,
pub context: String,
pub n_genera_tied: usize,
pub species: Option<String>,
pub species_top_matches: Vec<(String, f64)>,
pub n_species_tied: usize,
pub credible_set: Vec<(String, f64)>,
pub support: f64,
pub resolution_distance: f64,
pub limited_by: String,
pub resolution_rank: String,
pub resolution_taxon: String,
pub credible_set_grouped: String,
}Fields§
§arg_name: StringARG gene name.
contig_name: StringContig identifier.
genus: Option<String>Classified genus (None if unresolved).
confidence: f64Classification confidence (alignment identity, 0-100).
specificity: f64Gene-genus specificity in database (0-100).
upstream_len: usizeExtracted upstream flanking length.
downstream_len: usizeExtracted downstream flanking length.
top_matches: Vec<(String, f64)>Top genus matches with scores: [(genus, score), …].
snp_status: SnpStatusSNP verification status (for point mutation ARGs).
upstream_seq: StringExtracted upstream flanking sequence (retained for export/inspection of unresolved loci — e.g. flanking present but no flanking-DB match).
downstream_seq: StringExtracted downstream flanking sequence (retained for export/inspection).
context: StringReplicon context of the matched reference flanking: “plasmid” (mobile, genus unreliable), “chromosome”, “ambiguous”, or “NA” (no plasmid list loaded).
n_genera_tied: usizeNumber of genera within GENUS_TIE_PCT of the top score (from the full score list, not just top-5). ≥2 means the call cannot be pinned to a single genus.
species: Option<String>Best species (binomial) when a species map is loaded and matches clear the (higher) species identity threshold; None if unavailable/undeterminable.
species_top_matches: Vec<(String, f64)>Top species matches with scores, for multi-species reporting.
n_species_tied: usizeNumber of species within GENUS_TIE_PCT of the top species score.
credible_set: Vec<(String, f64)>Credible set: genera accumulating posterior mass to the conformal threshold, each
with its posterior — the structured form of the answer (a set of taxa, not a single
call). The TSV emits its grouped display (credible_set_grouped); this Vec is kept
for programmatic consumers.
support: f64Posterior mass covered by credible_set (≈0.9+). UNCALIBRATED until conformal
calibration is fitted on a ground-truth set; treat as a raw confidence for now.
resolution_distance: f64Mash radius of the credible set: max distance from its medoid to any member. 0 for a single-genus call; larger = the shared context spans a broader clade.
limited_by: StringWhy resolution stopped: “query” (flank truncated by the contig edge), “biology” (full flank but context genuinely shared across genera), or “none” (single genus).
resolution_rank: StringRagged rank of the answer: the LCA rank of the credible set (species/genus/family/ …/root). This is the taxonomic level at which the ARG’s context is actually shared.
resolution_taxon: StringLCA taxon name at resolution_rank (e.g. “Enterobacteriaceae”).
credible_set_grouped: StringThe credible set rendered with its close-genera sub-clusters grouped (see
[group_credible_set]): g1(p1),g2(p2) | g3(p3). This is the display form of
credible_set; empty when there is none.
Trait Implementations§
Source§impl Clone for GenusResult
impl Clone for GenusResult
Source§fn clone(&self) -> GenusResult
fn clone(&self) -> GenusResult
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for GenusResult
impl Debug for GenusResult
Auto Trait Implementations§
impl Freeze for GenusResult
impl RefUnwindSafe for GenusResult
impl Send for GenusResult
impl Sync for GenusResult
impl Unpin for GenusResult
impl UnsafeUnpin for GenusResult
impl UnwindSafe for GenusResult
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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>
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>
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