Skip to content

Commit 6df3321

Browse files
committed
Fix bad path
1 parent 2f7aa1d commit 6df3321

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

meteor/treebuilder.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -107,20 +107,20 @@ def execute(self) -> None:
107107
)
108108
phylogeny_process.execute()
109109
# Analyze tree data
110-
for msp_file in phylogeny_process.tree_files:
110+
for tree_file in phylogeny_process.tree_files:
111111
# Check for a .raxml.bestTree file
112-
raxml_tree_file = self.meteor.tree_dir / f"{msp_file.stem}.raxml.bestTree"
113-
if raxml_tree_file.exists():
114-
tree_file = raxml_tree_file
115-
else:
116-
# If no .raxml.bestTree file exists, check for a .tree file
117-
tree_file = self.meteor.tree_dir / f"{msp_file.stem}.tree"
118-
img_file = self.meteor.tree_dir / f"{msp_file.stem}.{self.format}"
112+
# raxml_tree_file = self.meteor.tree_dir / f"{msp_file.stem}.raxml.bestTree"
113+
# if raxml_tree_file.exists():
114+
# tree_file = raxml_tree_file
115+
# else:
116+
# # If no .raxml.bestTree file exists, check for a .tree file
117+
# tree_file = self.meteor.tree_dir / f"{msp_file.stem}.tree"
118+
img_file = self.meteor.tree_dir / f"{tree_file.stem}.{self.format}"
119119
# try:
120120
msp_tree = Tree(str(tree_file.resolve()))
121121
# Generate a distance msp by msp
122122
matrix = self.get_msp_distance(msp_tree)
123-
matrix.to_csv(self.meteor.tree_dir / f"{msp_file.stem}.tsv", sep="\t")
123+
matrix.to_csv(self.meteor.tree_dir / f"{tree_file.stem}.tsv", sep="\t")
124124
# Draw trees
125125
if not self.format:
126126
pass

0 commit comments

Comments
 (0)