Skip to content

Commit

Permalink
add regions and replicons to full blown CI test #326
Browse files Browse the repository at this point in the history
  • Loading branch information
oschwengers committed Sep 24, 2024
1 parent 1e22eeb commit a68f625
Showing 1 changed file with 21 additions and 3 deletions.
24 changes: 21 additions & 3 deletions test/test_bakta.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,25 @@ def test_bakta_plasmid(tmpdir):
)
def test_bakta_genome(db, tmpdir):
# full test on complete genome in compliant mode
proc = run(['bin/bakta', '--db', f'test/{db}', '--verbose', '--output', tmpdir, '--force', '--force', '--prefix', 'test', '--min-contig-length', '200', '--complete', '--compliant', '--proteins', 'test/data/user-proteins.faa', '--genus', 'Foo gen. nov.', '--species', 'bar sp. nov.', '--strain', 'test 1', 'test/data/GCF_000008865.2.fna.gz'])
proc = run(
[
'bin/bakta',
'--db', f'test/{db}',
'--verbose',
'--output', tmpdir,
'--force',
'--prefix', 'test',
'--min-contig-length', '200',
'--complete',
'--genus', 'Foo gen. nov.',
'--species', 'bar sp. nov.',
'--strain', 'test 1',
'--replicons', 'test/data/replicons.tsv',
'--regions', 'test/data/NC_002127.1-region.gff3',
'--proteins', 'test/data/user-proteins.faa',
'--compliant',
'test/data/GCF_000008865.2.fna.gz']
)
assert proc.returncode == 0

tmpdir_path = Path(tmpdir)
Expand All @@ -108,15 +126,15 @@ def test_bakta_genome(db, tmpdir):
results = json.load(fh)
assert results is not None
features = results['features']
assert len(features) == 5551
assert len(features) == 5550
feature_counts_expected = {
bc.FEATURE_T_RNA: 107,
bc.FEATURE_TM_RNA: 1,
bc.FEATURE_R_RNA: 7,
bc.FEATURE_NC_RNA: 57,
bc.FEATURE_NC_RNA_REGION: 1,
bc.FEATURE_CRISPR: 1,
bc.FEATURE_CDS: 5375,
bc.FEATURE_CDS: 5374,
bc.FEATURE_SORF: 2,
bc.FEATURE_ORIC: 0,
bc.FEATURE_ORIV: 0,
Expand Down

0 comments on commit a68f625

Please sign in to comment.