pub struct BaseGraph<K, D> {
pub sequences: PackedDnaStringSet,
pub exts: Vec<Exts>,
pub data: Vec<D>,
pub stranded: bool,
/* private fields */
}Expand description
A compressed DeBruijn graph carrying auxiliary data on each node of type D.
This type does not carry the sorted index arrays the allow the graph
to be walked efficiently. The DeBruijnGraph type wraps this type and add those
vectors.
Fields§
§sequences: PackedDnaStringSet§exts: Vec<Exts>§data: Vec<D>§stranded: boolImplementations§
Source§impl<K: Kmer + Send + Sync, D> BaseGraph<K, D>
impl<K: Kmer + Send + Sync, D> BaseGraph<K, D>
pub fn finish(self) -> DebruijnGraph<K, D>
Source§impl<K: Kmer, D> BaseGraph<K, D>
impl<K: Kmer, D> BaseGraph<K, D>
pub fn finish_serial(self) -> DebruijnGraph<K, D>
Trait Implementations§
Source§impl<'de, K, D> Deserialize<'de> for BaseGraph<K, D>where
D: Deserialize<'de>,
impl<'de, K, D> Deserialize<'de> for BaseGraph<K, D>where
D: Deserialize<'de>,
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
Auto Trait Implementations§
impl<K, D> Freeze for BaseGraph<K, D>
impl<K, D> RefUnwindSafe for BaseGraph<K, D>where
K: RefUnwindSafe,
D: RefUnwindSafe,
impl<K, D> Send for BaseGraph<K, D>
impl<K, D> Sync for BaseGraph<K, D>
impl<K, D> Unpin for BaseGraph<K, D>
impl<K, D> UnsafeUnpin for BaseGraph<K, D>
impl<K, D> UnwindSafe for BaseGraph<K, D>where
K: UnwindSafe,
D: 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.