Skip to content

Commit

Permalink
Add test for external clustering
Browse files Browse the repository at this point in the history
  • Loading branch information
nickjcroucher committed Oct 12, 2024
1 parent ef95674 commit 8fc6001
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/run_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,10 @@
subprocess.run(python_cmd + " ../poppunk_assign-runner.py --query inref_query.txt --db example_db --model-dir example_refine --output example_single_query --write-references", shell=True, check=True) # matched name, but should be renamed in the output
subprocess.run(python_cmd + " ../poppunk_assign-runner.py --query some_queries.txt --db example_db --model-dir example_refine --model-dir example_lineages --output example_lineage_query --overwrite", shell=True, check=True)

#external clustering
sys.stderr.write("Running assign with external clustering (--fit-model refine)\n")
subprocess.run(python_cmd + " ../poppunk_assign-runner.py --query some_queries.txt --db example_db --model-dir example_refine --output example_query --overwrite --external-clustering example_external_clusters.csv", shell=True, check=True)

# test updating order is correct
sys.stderr.write("Running distance matrix order check (--update-db)\n")
subprocess.run(python_cmd + " test-update.py", shell=True, check=True)
Expand Down

0 comments on commit 8fc6001

Please sign in to comment.