Skip to content

Commit db75e50

Browse files
authored
fix some code (#17)
1 parent a794fb6 commit db75e50

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name = "sourmash_plugin_pangenomics"
33
description = "sourmash plugin to do pangenomics."
44
readme = "README.md"
55
requires-python = ">=3.10"
6-
version = "0.2.1"
6+
version = "0.2.2"
77
authors = [
88
{name = "Colton Baumler", email = "ccbaumler@ucdavis.edu"},
99
{name = "Titus Brown", email = "titus@idyll.org"},

src/sourmash_plugin_pangenomics.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ def __init__(self, subparser):
145145
p.add_argument(
146146
"-o",
147147
"--output-hash-classification",
148-
required=False,
148+
required=True,
149149
help="CSV file containing classification of each hash",
150150
)
151151
sourmash_utils.add_standard_minhash_args(p)
@@ -447,15 +447,15 @@ def search_pattern(vals):
447447

448448
for n, ss in enumerate(db.signatures()):
449449
if n % 10 == 0:
450-
print(f"...Processing {n} of {len(mf)}", end="\r", flush=True)
450+
print(f"...Processing {n} of {len(db)}", end="\r", flush=True)
451451

452452
name = ss.name
453453

454454
mh = ss.minhash
455455
hashes = mh.hashes
456456
ss_dict[name] = hashes
457457

458-
print(f"...Processed {n} of {len(mf)} \n")
458+
print(f"...Processed {n+1} of {len(db)} \n")
459459

460460
return ss_dict
461461

0 commit comments

Comments
 (0)