Skip to content

Commit

Permalink
Resolve sourmash gather --help issue (#3032)
Browse files Browse the repository at this point in the history
This PR escapes `%` characters in the usage string for sourmash gather,
which was causing a ValueError when invoked on the command line with
`sourmash gather --help`.
Fixes #3031

---------

Co-authored-by: C. Titus Brown <titus@idyll.org>
  • Loading branch information
bnelsj and ctb committed Feb 24, 2024
1 parent 02e505e commit 874de99
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ authors = [
{ name="Katrin Leinweber", orcid="0000-0001-5135-5758" },
{ name="Marisa Lim", orcid="0000-0003-2097-8818" },
{ name="Ricky Lim", orcid="0000-0003-1313-7076" },
{ name="Bradley Nelson", orcid="0009-0001-1553-932X" },
{ name="Ivan Ogasawara", orcid="0000-0001-5049-4289" },
{ name="Taylor Reiter", orcid="0000-0002-7388-421X" },
{ name="Camille Scott", orcid="0000-0001-8822-8779" },
Expand Down
8 changes: 4 additions & 4 deletions src/sourmash/cli/gather.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,10 @@
```
overlap p_query p_match avg_abund
--------- ------- ------- ---------
9.3 Mbp 0.8% 97.5% 6.7 NC_007951.1 Burkholderia xenovorans ...
7.3 Mbp 2.3% 99.9% 23.9 NC_003272.1 Nostoc sp. PCC 7120 DNA,...
7.0 Mbp 8.9% 100.0% 94.5 BX119912.1 Rhodopirellula baltica SH...
6.6 Mbp 1.4% 100.0% 16.3 NC_009972.1 Herpetosiphon aurantiacu...
9.3 Mbp 0.8%% 97.5%% 6.7 NC_007951.1 Burkholderia xenovorans ...
7.3 Mbp 2.3%% 99.9%% 23.9 NC_003272.1 Nostoc sp. PCC 7120 DNA,...
7.0 Mbp 8.9%% 100.0%% 94.5 BX119912.1 Rhodopirellula baltica SH...
6.6 Mbp 1.4%% 100.0%% 16.3 NC_009972.1 Herpetosiphon aurantiacu...
...
```
Expand Down

0 comments on commit 874de99

Please sign in to comment.