Skip to content

Commit

Permalink
Merge pull request #148 from marbl/branch-v2.0.4
Browse files Browse the repository at this point in the history
Branch v2.0.4
  • Loading branch information
bkille authored Mar 14, 2024
2 parents 0e6bb4d + e4f1690 commit f0392eb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions parsnp
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ from pathlib import Path
import extend as ext
from tqdm import tqdm

__version__ = "2.0.3"
__version__ = "2.0.4"
reroot_tree = True #use --midpoint-reroot
random_seeded = random.Random(42)

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

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

run_logged_command(command, outputDir=outputDir, label="fasttree")

shutil.move(f"{outputDir}/log/fasttree.out", f"{outputDir}/parsnp.tree")


#7)reroot to midpoint
Expand Down

0 comments on commit f0392eb

Please sign in to comment.