pub struct Colors<'a, SD: SummaryData<DI>, DI> { /* private fields */ }Expand description
contains the hues, the markers signifying which tag belongs to which group, the maximun kmer count and the average kmer count
Implementations§
Source§impl<'a, SD: SummaryData<DI> + Debug, DI> Colors<'a, SD, DI>
impl<'a, SD: SummaryData<DI> + Debug, DI> Colors<'a, SD, DI>
Sourcepub fn new<'b: 'a, K: Kmer>(
graph: &DebruijnGraph<K, SD>,
summary_config: &SummaryConfig,
color_mode: ColorMode<'b>,
) -> Self
pub fn new<'b: 'a, K: Kmer>( graph: &DebruijnGraph<K, SD>, summary_config: &SummaryConfig, color_mode: ColorMode<'b>, ) -> Self
Creates a new Colors<SD>.
Sourcepub fn node_color_dot(
&self,
data: &SD,
summary_config: &SummaryConfig,
outline: bool,
) -> String
pub fn node_color_dot( &self, data: &SD, summary_config: &SummaryConfig, outline: bool, ) -> String
get the color for a node in a HSV format
Sourcepub fn hue_json(&self, data: &SD, summary_config: &SummaryConfig) -> i32
pub fn hue_json(&self, data: &SD, summary_config: &SummaryConfig) -> i32
get the hue for hsl color in json
Sourcepub fn edge_width(&self, edge_mult: u32) -> f32
pub fn edge_width(&self, edge_mult: u32) -> f32
get the edge width based on the edge multiplicity
pub fn id_group_ids(&self) -> Option<&HashMap<ID, ID>>
Trait Implementations§
impl<'a, SD: SummaryData<DI>, DI> StructuralPartialEq for Colors<'a, SD, DI>
Auto Trait Implementations§
impl<'a, SD, DI> Freeze for Colors<'a, SD, DI>
impl<'a, SD, DI> RefUnwindSafe for Colors<'a, SD, DI>where
SD: RefUnwindSafe,
DI: RefUnwindSafe,
impl<'a, SD, DI> Send for Colors<'a, SD, DI>where
DI: Send,
impl<'a, SD, DI> Sync for Colors<'a, SD, DI>where
DI: Sync,
impl<'a, SD, DI> Unpin for Colors<'a, SD, DI>
impl<'a, SD, DI> UnsafeUnpin for Colors<'a, SD, DI>
impl<'a, SD, DI> UnwindSafe for Colors<'a, SD, DI>where
SD: UnwindSafe,
DI: UnwindSafe,
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
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>
Converts
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>
Converts
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§impl<T> Pointable for T
impl<T> Pointable for T
§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read more§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.