Skip to content

Commit

Permalink
Fix bad path
Browse files Browse the repository at this point in the history
  • Loading branch information
aghozlane committed Jun 28, 2024
1 parent 2f7aa1d commit 6df3321
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions meteor/treebuilder.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,20 +107,20 @@ def execute(self) -> None:
)
phylogeny_process.execute()
# Analyze tree data
for msp_file in phylogeny_process.tree_files:
for tree_file in phylogeny_process.tree_files:
# Check for a .raxml.bestTree file
raxml_tree_file = self.meteor.tree_dir / f"{msp_file.stem}.raxml.bestTree"
if raxml_tree_file.exists():
tree_file = raxml_tree_file
else:
# If no .raxml.bestTree file exists, check for a .tree file
tree_file = self.meteor.tree_dir / f"{msp_file.stem}.tree"
img_file = self.meteor.tree_dir / f"{msp_file.stem}.{self.format}"
# raxml_tree_file = self.meteor.tree_dir / f"{msp_file.stem}.raxml.bestTree"
# if raxml_tree_file.exists():
# tree_file = raxml_tree_file
# else:
# # If no .raxml.bestTree file exists, check for a .tree file
# tree_file = self.meteor.tree_dir / f"{msp_file.stem}.tree"
img_file = self.meteor.tree_dir / f"{tree_file.stem}.{self.format}"
# try:
msp_tree = Tree(str(tree_file.resolve()))
# Generate a distance msp by msp
matrix = self.get_msp_distance(msp_tree)
matrix.to_csv(self.meteor.tree_dir / f"{msp_file.stem}.tsv", sep="\t")
matrix.to_csv(self.meteor.tree_dir / f"{tree_file.stem}.tsv", sep="\t")
# Draw trees
if not self.format:
pass
Expand Down

0 comments on commit 6df3321

Please sign in to comment.