Function read_gfa

Source
pub fn read_gfa<P: AsRef<Path>>(path: P) -> Result<DiGraph<String, f32>>
Expand description

Reads a GFA file and constructs a directed graph from it.

§Arguments

  • path - A path to the GFA file.

§Returns

A DiGraph where nodes are sequences and edges are links with weights.

§Errors

This function returns an error if the file cannot be opened or read.

§Panics

This function will panic if:

  1. The file cannot be opened.
  2. Any line in the file cannot be read.