pub struct Pansn<'a, T: IsPath> {
pub genomes: Vec<Sample<'a, T>>,
}
Expand description
PanSN-spec path data structure
use gfa_reader::{Gfa, Pansn, Path};
let mut graph: Gfa<()> = Gfa::new();
graph.parse_gfa_file("data/size5.gfa", false);
let pansn: Pansn<Path> = Pansn::from_graph(&graph.paths, " ");
println!("{:?}", pansn);
PanSN-spec [sample_name][delim][haplotype_id][delim][contig_or_scaffold_name]
Fields§
§genomes: Vec<Sample<'a, T>>
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<'a, T> Freeze for Pansn<'a, T>
impl<'a, T> RefUnwindSafe for Pansn<'a, T>where
T: RefUnwindSafe,
impl<'a, T> Send for Pansn<'a, T>where
T: Sync,
impl<'a, T> Sync for Pansn<'a, T>where
T: Sync,
impl<'a, T> Unpin for Pansn<'a, T>
impl<'a, T> UnwindSafe for Pansn<'a, T>where
T: RefUnwindSafe,
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