Skip to content

Commit f0392eb

Browse files
authored
Merge pull request #148 from marbl/branch-v2.0.4
Branch v2.0.4
2 parents 0e6bb4d + e4f1690 commit f0392eb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

parsnp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ from pathlib import Path
2525
import extend as ext
2626
from tqdm import tqdm
2727

28-
__version__ = "2.0.3"
28+
__version__ = "2.0.4"
2929
reroot_tree = True #use --midpoint-reroot
3030
random_seeded = random.Random(42)
3131

@@ -1402,7 +1402,7 @@ SETTINGS:
14021402
for line in results:
14031403
# FastANI results file -> Query, Ref, ANI val, extra stuff,,,
14041404
line = line.split('\t')
1405-
if float(line[2]) >= min_ani_cutoff and (int(line[3]) / int(line[4])) * 100 > args.min_ref_cov:
1405+
if float(line[2]) >= min_ani_cutoff and (int(line[3]) / int(line[4])) * 100 >= args.min_ref_cov:
14061406
genome_to_genomes[line[1]].append(line[0])
14071407

14081408
ani_ref = max(genome_to_genomes, key=(lambda key: len(genome_to_genomes[key])))
@@ -1753,7 +1753,7 @@ SETTINGS:
17531753
command = "fasttree -nt -quote -gamma -slow -boot 100 "+outputDir+os.sep+"parsnp.snps.mblocks"
17541754

17551755
run_logged_command(command, outputDir=outputDir, label="fasttree")
1756-
1756+
shutil.move(f"{outputDir}/log/fasttree.out", f"{outputDir}/parsnp.tree")
17571757

17581758

17591759
#7)reroot to midpoint

0 commit comments

Comments
 (0)