Skip to content

Commit

Permalink
Added find_path subcommand
Browse files Browse the repository at this point in the history
  • Loading branch information
asylvz committed Jun 27, 2024
1 parent f8eea96 commit 04d0a2e
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions gaftools/cli/order_gfa.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"""
Ordeing the bubble of the GFA by adding BO and NO tags.
Ordering bubbles in the GFA by adding BO and NO tags.
The BO (Bubble Order) tags order the bubbles in the GFA.
The BO (Bubble Order) tags order bubbles in the GFA.
The NO (Node Order) tags order the nodes in a bubble (in a lexicographic order).
"""

Expand Down
2 changes: 1 addition & 1 deletion gaftools/cli/realign.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""
Realign GAF file using wavefront alignment algorithm (WFA)
Realign the GAF file using wavefront alignment algorithm (WFA)
"""

import logging
Expand Down
6 changes: 3 additions & 3 deletions gaftools/cli/sort.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
"""
Sorting GAF alignments using BO and NO tags of the corresponding graph
Sorting the GAF alignments using BO and NO tags of the corresponding graph
The script uses the BO and NO tags defined by the order_gfa command. Using the bubble ordering done, the alignments are sorted.
The index is dictionary created using pickle library which contains the reference contig names as keys and the offset the alignments begin and end..
The index is dictionary created using pickle library which contains the reference contig names as keys and the offset the alignments begin and end.
It adds some tags into the sorted gaf file. The tags are:
It adds some tags into the sorted GAF file. The tags are:
1. bo:i: - This is the BO tags from the GFA carried forward. The sorting uses a BO tag for each alignment, the BO tag for the start node (or end node based on overall orientation) of the alignment path.
2. sn:Z: - The name of the reference contig it mapped to.
3. iv:i: - 1 if the alignment path has an inversion. 0 otherwise.
Expand Down
2 changes: 1 addition & 1 deletion tests/test_run_ordergfa.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""
Tests for 'gaftools order_gfa'
Tests for 'gaftools order-gfa'
"""

from gaftools.gfa import GFA
Expand Down

0 comments on commit 04d0a2e

Please sign in to comment.