pub struct Graph { /* private fields */ }Expand description
Thin wrapper around SPOA’s partial order graph object
Implementations§
Source§impl Graph
impl Graph
pub fn new() -> Self
pub fn node_count(&self) -> usize
pub fn edge_count(&self) -> usize
pub fn add_alignment(&mut self, alignment: Alignment, seq: &str)
pub fn add_alignment_with_weights( &mut self, alignment: Alignment, seq: &str, weights: &[u32], )
pub fn generate_consensus(&self) -> String
pub fn generate_msa(&self) -> Vec<String>
pub fn generate_gfa( &self, headers: &[String], include_consensus: bool, ) -> String
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Graph
impl RefUnwindSafe for Graph
impl !Send for Graph
impl !Sync for Graph
impl Unpin for Graph
impl UnwindSafe for Graph
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