Skip to content

Commit

Permalink
Merge pull request sanger-pathogens#204 from martinghunt/mlst_hetmin_bug
Browse files Browse the repository at this point in the history
Mlst hetmin bug
  • Loading branch information
martinghunt authored Nov 24, 2017
2 parents 15870cf + cffb8f8 commit a2e9c4e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion ariba/mlst_reporter.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def _call_gene(self, gene):
depths = [int(x) for x in d['smtls_nts_depth'].split(',')]
depths.sort()
het_pc = round(100.0 * depths[-1] / sum(depths), 2)
if results['hetmin'] == '.' or results['hetmin'] < het_pc:
if results['hetmin'] == '.' or results['hetmin'] > het_pc:
results['hetmin'] = het_pc
if len(het_data):
results['hets'] = '.'.join(het_data)
Expand Down
2 changes: 1 addition & 1 deletion ariba/tests/data/mlst_reporter.het_snps.out.details.tsv
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
gene allele cov pc ctgs depth hetmin hets
gene1 1* 100.0 100.0 1 42.2 75.0 30,10.25,10,5
gene1 1* 100.0 100.0 1 42.2 62.5 30,10.25,10,5
gene2 2 100.0 100.0 1 40.2 . .
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
setup(
ext_modules=[minimap_mod, fermilite_mod, vcfcall_mod],
name='ariba',
version='2.10.2',
version='2.10.3',
description='ARIBA: Antibiotic Resistance Identification By Assembly',
packages = find_packages(),
package_data={'ariba': ['test_run_data/*']},
Expand Down

0 comments on commit a2e9c4e

Please sign in to comment.