pub struct GenusResult {Show 16 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,
}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.
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