Module gfatk::utils

source · []
Expand description

Utility functions used throughout.

Structs

A vector of GFAGraphPair’s.

A pair consisting of a node index and a segment ID.

Functions

Format a sequence length (usize) to kilobases.

Calculate the GC content of a string slice.

Get the coverage associated with an edge (ec tag in the GFA).

Format a GFA option field into a string.

Check if there is anything coming from STDIN.

Collect nucleotide counts into a HashMap.

Parse a CIGAR string slice into an overlap length.

Reverse complement a string slice.

Used in reverse_complement to switch to a complementary base.