1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
//! FASTG codec in the `SPAdes` / Bandage dialect.
//!
//! A record is a header `>NAME[']:SUCC1,SUCC2';` (the edge list is optional)
//! followed by sequence lines. `NAME'` is the reverse-complement strand of
//! `NAME`, and its record holds the reverse-complemented sequence.
//!
//! **Output** follows `SPAdes`: every node gets a forward and a `'` record, each
//! listing the successors of that strand, so every edge appears from both
//! ends. Names are wrapped as `EDGE_<name>_length_<len>_cov_1`, the only form
//! for which Bandage resolves edge targets.
//!
//! **Input** strips that wrapper back to `<name>`, reverse-complements `'`
//! records and merges mirrored edges (`A:B` and `B':A'`), so single- and
//! double-stranded files parse to the same graph.
//!
//! FASTG has no paths or overlaps; they are dropped on output.
//!
//! `reader` parses records line by line; `writer` formats both strands of
//! every node in parallel chunks.
use crateCoreGraphDTO;
use cratePanResult;
use crate;
use ;
/// Codec for FASTG in the `SPAdes` / Bandage dialect.
;