Skip to content

Commit

Permalink
updating tree format
Browse files Browse the repository at this point in the history
  • Loading branch information
aineniamh committed Jan 5, 2021
1 parent 2f8adde commit 4c4c383
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions polecat/scripts/polecatfunks.py
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ def check_metadata_for_background_fields(config):

def print_data_error(data_dir):
sys.stderr.write(cyan(f"Error: data directory should contain the following files or additionally supply a background metadata file:\n") + f"\
- cog_global_2020-XX-YY_tree.nexus\n\
- cog_global_2020-XX-YY_tree.newick\n\
- cog_global_2020-XX-YY_metadata.csv\n\
- cog_global_2020-XX-YY_alignment.fasta\n"+cyan(f"\
To run civet please either\n1) ssh into CLIMB and run with --CLIMB flag\n\
Expand All @@ -276,7 +276,7 @@ def get_background_files(data_dir,background_metadata):
data_date = fn.split("_")[2]
if not data_date.startswith("20"):
data_date = ""
elif fn.endswith(".nexus") and fn.startswith("cog_global_"):
elif fn.endswith(".newick") and fn.startswith("cog_global_"):
background_tree = os.path.join(data_dir, fn)
elif background_metadata == "" and fn.endswith(".csv") and fn.startswith("cog_global_"):
background_metadata = os.path.join(data_dir, fn)
Expand Down

0 comments on commit 4c4c383

Please sign in to comment.