pub enum LibraryRegionMatch {
Uncompared,
Match {
seq_match: Arc<LibraryRegion>,
},
MultiMatch {
seq_matches: Vec<Arc<LibraryRegion>>,
},
Overmatched,
Unmatched,
NoLibrary {
seq: Option<SeqHandle>,
},
}Expand description
Summary form of a region-to-library match.
This is a reduced version of RegionMatch used for library-summary output.
Unlike RegionMatch, it does not retain additional per-match information (SequenceDiff,
distance or number of matches), so multiple observed regions with the same library
assignment can be grouped together.
Variants§
Uncompared
Library comparison has not been performed.
Match
A unique library-region assignment was found.
Fields
seq_match: Arc<LibraryRegion>MultiMatch
Multiple equally good library-region assignments were found.
Fields
seq_matches: Vec<Arc<LibraryRegion>>Overmatched
Too many equally good matches were found to report individually.
Unmatched
No library-region assignment was found.
NoLibrary
This region is not represented in the library summary.
The observed sequence may optionally be retained so outputs can still report the raw sequence for regions intentionally absent from the library.
Implementations§
Source§impl LibraryRegionMatch
impl LibraryRegionMatch
Sourcepub fn from_region_match(region_match: &RegionMatch) -> Self
pub fn from_region_match(region_match: &RegionMatch) -> Self
Convert a full per-region match into its summary representation.
This drops sequence-difference detail so that library-summary rows group by library assignment rather than by exact observed variant.
Sourcepub fn str_sequence(&self) -> String
pub fn str_sequence(&self) -> String
Return the library-associated sequence(s) for display or TSV output.
- unique matches return one sequence,
- multimatches return comma-separated sequences,
NoLibraryreturns the stored observed sequence if available,- unmatched/uncompared/overmatched states return an empty string.
Trait Implementations§
Source§impl Clone for LibraryRegionMatch
impl Clone for LibraryRegionMatch
Source§fn clone(&self) -> LibraryRegionMatch
fn clone(&self) -> LibraryRegionMatch
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 LibraryRegionMatch
impl Debug for LibraryRegionMatch
impl Eq for LibraryRegionMatch
Source§impl Hash for LibraryRegionMatch
impl Hash for LibraryRegionMatch
Source§impl PartialEq for LibraryRegionMatch
impl PartialEq for LibraryRegionMatch
Source§fn eq(&self, other: &LibraryRegionMatch) -> bool
fn eq(&self, other: &LibraryRegionMatch) -> bool
self and other values to be equal, and is used by ==.impl StructuralPartialEq for LibraryRegionMatch
Auto Trait Implementations§
impl Freeze for LibraryRegionMatch
impl RefUnwindSafe for LibraryRegionMatch
impl Send for LibraryRegionMatch
impl Sync for LibraryRegionMatch
impl Unpin for LibraryRegionMatch
impl UnsafeUnpin for LibraryRegionMatch
impl UnwindSafe for LibraryRegionMatch
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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 moreSource§impl<T> Pointable for T
impl<T> Pointable for T
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
impl<T> Scalar for T
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self to the equivalent element of its superset.