From 6df3321eaab3b2a930569da19162196fb712b40e Mon Sep 17 00:00:00 2001 From: Amine GHOZLANE Date: Fri, 28 Jun 2024 19:33:35 +0200 Subject: [PATCH] Fix bad path --- meteor/treebuilder.py | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/meteor/treebuilder.py b/meteor/treebuilder.py index a89745f..66b23bd 100644 --- a/meteor/treebuilder.py +++ b/meteor/treebuilder.py @@ -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