| Title: | Parsing GFA and GAF Alignment Files |
|---|---|
| Description: | Provides tools for extracting segment paths from Graphical Fragment Assembly ('GFA') and Graph Alignment Format ('GAF') files. parse_paths_gfa() reads P (path) and W (walk) records and returns a named list of segment identifiers for each accession. parse_paths_gaf() parses the path string from each alignment and returns a named list of segments traversed by each query. parse_segment_lengths_gfa() reads S records and returns a named list of segment lengths keyed by segment identifier. These tools are intended to simplify downstream interpretation and analysis of pangenome graphs. |
| Authors: | Camille R. Mazurek [aut, cre], Michael J. Tisza [ctb] |
| Maintainer: | Camille R. Mazurek <[email protected]> |
| License: | MIT + file LICENSE |
| Version: | 0.1.2 |
| Built: | 2026-10-14 08:06:49 UTC |
| Source: | https://github.com/cromazurek/matchalign |
Create a list where each alignment is an element with an associated list of the segments used
parse_paths_gaf(gaf_file)parse_paths_gaf(gaf_file)
gaf_file |
A gaf file |
A list where each alignment is an element with an associated list of segments used
example_gaf <- system.file("extdata", "example.gaf", package = "MatchAlign") alignment_paths <- parse_paths_gaf(example_gaf)example_gaf <- system.file("extdata", "example.gaf", package = "MatchAlign") alignment_paths <- parse_paths_gaf(example_gaf)
Create a list where each accession is an element with an associated list of the segments
parse_paths_gfa(gfa_file)parse_paths_gfa(gfa_file)
gfa_file |
A gfa file |
A list where each accession is an element with an associated list of segments
example_gfa <- system.file("extdata", "example.gfa", package = "MatchAlign") accession_paths <- parse_paths_gfa(example_gfa)example_gfa <- system.file("extdata", "example.gfa", package = "MatchAlign") accession_paths <- parse_paths_gfa(example_gfa)
Create a list of segment lengths from a GFA file
parse_segment_lengths_gfa(gfa_file)parse_segment_lengths_gfa(gfa_file)
gfa_file |
A gfa file |
A named list where each segment is an element with its length
example_gfa <- system.file("extdata", "example.gfa", package = "MatchAlign") segment_lengths <- parse_segment_lengths_gfa(example_gfa)example_gfa <- system.file("extdata", "example.gfa", package = "MatchAlign") segment_lengths <- parse_segment_lengths_gfa(example_gfa)