Skip to content

Commit

Permalink
Fix calculation issue
Browse files Browse the repository at this point in the history
  • Loading branch information
aghozlane committed Jun 24, 2024
1 parent 90dc3b1 commit a09c819
Showing 1 changed file with 20 additions and 38 deletions.
58 changes: 20 additions & 38 deletions meteor/phylogeny.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,44 +160,26 @@ def execute(self) -> None:
msp_count,
)
elif len(cleaned_seqs) >= 4:
if info_sites < self.meteor.threads:
# Compute trees
result = check_call(
[
"raxml-ng",
"--threads",
str(info_sites),
"--search1",
"--msa",
temp_clean.name,
"--model",
"GTR+G",
"--redo",
"--force",
"perf_threads", # not working with raxml-ng-mpi
"--prefix",
str(tree_file.resolve()),
]
)
else:
# Compute trees
result = check_call(
[
"raxml-ng",
"--threads",
str(self.meteor.threads),
"--search1",
"--msa",
temp_clean.name,
"--model",
"GTR+G",
"--redo",
"--force",
"perf_threads", # not working with raxml-ng-mpi
"--prefix",
str(tree_file.resolve()),
]
)
# Compute trees
result = check_call(
[
"raxml-ng",
"--threads",
"auto{{{}}}".format(self.meteor.threads),
"--workers",
"auto",
"--search1",
"--msa",
temp_clean.name,
"--model",
"GTR+G",
"--redo",
"--force",
"perf,msa", # not working with raxml-ng-mpi
"--prefix",
str(tree_file.resolve()),
]
)
if result != 0:
logging.error("raxml-ng failed with return code %d", result)
else:
Expand Down

0 comments on commit a09c819

Please sign in to comment.