Skip to content

Commit

Permalink
Merge branch 'main' into #67-training-doesnt-like-sig-files
Browse files Browse the repository at this point in the history
  • Loading branch information
mfl15 authored Feb 20, 2024
2 parents 2f76a4f + 50c9f1f commit 6555aa9
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -167,3 +167,4 @@ cython_debug/
# and can be added to the global gitignore or merged into this file. For a more nuclear
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
#.idea/
gtdb-rs214-reps.k31_0.9995_pretrained/
File renamed without changes.
12 changes: 12 additions & 0 deletions tests/test_y_integration_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,4 +89,16 @@ def test_run_train_sig():
config = json.load(f)
assert config['ksize'] == int(ksize)
assert config['ani_thresh'] == float(ani_thresh)

def test_run_pretrained_ref_db():
cmd = "yacht download pretrained_ref_db --database gtdb --db_version rs214 --k 31 --ani_thresh 0.9995 --outfolder ./"
res = subprocess.run(cmd, shell=True, check=True)
assert res.returncode == 0

def test_run_yacht_pretrained_ref_db():
cmd = "yacht run --json ./gtdb-rs214-reps.k31_0.9995_pretrained/gtdb-rs214-reps.k31_0.9995_config.json --sample_file tests/testdata/sample.sig.zip --significance 0.99 --num_threads 32 --min_coverage_list 1 0.6 0.2 0.1 --out ./result_pretrained.xlsx"
res = subprocess.run(cmd, shell=True, check=True)
assert res.returncode == 0

assert exists('result_pretrained.xlsx')

0 comments on commit 6555aa9

Please sign in to comment.