From 04d0a2ea1cd2428b5ca21b5385dd34a7ad986ad8 Mon Sep 17 00:00:00 2001 From: asylvz Date: Thu, 27 Jun 2024 12:02:53 +0200 Subject: [PATCH] Added find_path subcommand --- gaftools/cli/order_gfa.py | 4 ++-- gaftools/cli/realign.py | 2 +- gaftools/cli/sort.py | 6 +++--- tests/test_run_ordergfa.py | 2 +- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/gaftools/cli/order_gfa.py b/gaftools/cli/order_gfa.py index 3a8e166..da36066 100644 --- a/gaftools/cli/order_gfa.py +++ b/gaftools/cli/order_gfa.py @@ -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). """ diff --git a/gaftools/cli/realign.py b/gaftools/cli/realign.py index f8b2e97..2c863c5 100644 --- a/gaftools/cli/realign.py +++ b/gaftools/cli/realign.py @@ -1,5 +1,5 @@ """ -Realign GAF file using wavefront alignment algorithm (WFA) +Realign the GAF file using wavefront alignment algorithm (WFA) """ import logging diff --git a/gaftools/cli/sort.py b/gaftools/cli/sort.py index 7da76b5..93a7f6f 100644 --- a/gaftools/cli/sort.py +++ b/gaftools/cli/sort.py @@ -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. diff --git a/tests/test_run_ordergfa.py b/tests/test_run_ordergfa.py index 6671542..5526ccb 100644 --- a/tests/test_run_ordergfa.py +++ b/tests/test_run_ordergfa.py @@ -1,5 +1,5 @@ """ -Tests for 'gaftools order_gfa' +Tests for 'gaftools order-gfa' """ from gaftools.gfa import GFA