Struct gfatk::gfa::gfa::GFAtk

source · []
pub struct GFAtk(pub GFA<usize, OptionalFields>);
Expand description

A wrapper around GFA from the gfa crate

Tuple Fields

0: GFA<usize, OptionalFields>

Implementations

Returns a tuple of GFAGraphLookups (a struct of indices/node names) and an undirected GFA graph structure.

Returns a tuple of GFAGraphLookups (a struct of indices/node names) and an directed GFA graph structure.

Most functionality of this binary is on directed graph structures

A method to print a GFA to STDOUT, given a vector of sequence ID’s to keep.

Returns the overlaps between all the segments in a GFA.

The internal function called when gfatk fasta is called.

Prints all segments of the GFA as-is.

Two internal functions below to parse coverage of a GFA segment.

Used in gfatk stats.

Return the coverage and sequence length for a segment, given a segment name.

Note segment names are always usize.

The internal function called in gfatk stats.

Returns average GC%, average coverage, and total sequence length for a GFA (sub)graph.

Returns a HashMap of relative coverage of each node (segment) in the GFA.

Relative here indicates that each segment coverage is divided by the lowest coverage node, and rounded.

Take a GFAPath and print out the path from a GFA.

Currently implemented requires two loops of the GFA, and storage of the sequences in a HashMap.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.