Trait omnitigs::omnitigs::NodeCentricOmnitigs
source · pub trait NodeCentricOmnitigs<Graph: GraphBase, NodeCentricOmnitigsSubsequence: Sequence<VecNodeWalk<Graph>, NodeCentricOmnitigsSubsequence> + ?Sized>: From<Vec<VecNodeWalk<Graph>>> + Sequence<VecNodeWalk<Graph>, NodeCentricOmnitigsSubsequence> {
// Provided methods
fn compute_trivial_node_centric_omnitigs(graph: &Graph) -> Self
where Graph: StaticGraph { ... }
fn compute_trivial_node_centric_omnitigs_non_scc(graph: &Graph) -> Self
where Graph: StaticGraph { ... }
fn remove_reverse_complements(&mut self, graph: &Graph)
where Graph: StaticBigraph,
Self: FromIterator<VecNodeWalk<Graph>> { ... }
}
Expand description
A collection of node-centric omnitigs.
Provided Methods§
sourcefn compute_trivial_node_centric_omnitigs(graph: &Graph) -> Selfwhere
Graph: StaticGraph,
fn compute_trivial_node_centric_omnitigs(graph: &Graph) -> Selfwhere Graph: StaticGraph,
Compute the trivial node-centric omnitigs in the given strongly connected graph.
sourcefn compute_trivial_node_centric_omnitigs_non_scc(graph: &Graph) -> Selfwhere
Graph: StaticGraph,
fn compute_trivial_node_centric_omnitigs_non_scc(graph: &Graph) -> Selfwhere Graph: StaticGraph,
Compute the trivial node-centric omnitigs in the given graph that may not be strongly connected.
sourcefn remove_reverse_complements(&mut self, graph: &Graph)where
Graph: StaticBigraph,
Self: FromIterator<VecNodeWalk<Graph>>,
fn remove_reverse_complements(&mut self, graph: &Graph)where Graph: StaticBigraph, Self: FromIterator<VecNodeWalk<Graph>>,
Retains only one direction of each pair of reverse-complemental omnitigs.
Note: I am not sure if this method is correct in all cases, but it will panic if it finds a case where it is not correct. For practical genomes it seems to work.