Skip to content

Commit

Permalink
pass over data fasta file matching runname.today.fasta
Browse files Browse the repository at this point in the history
  • Loading branch information
aineniamh committed Nov 5, 2023
1 parent 06835ce commit 462d2cd
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion piranha/input_parsing/input_qc.py
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,10 @@ def gather_supplementary_data(supplementary_datadir,supplementary_sequences,supp
for r,d,f in os.walk(supplementary_datadir):
for supp_file in f:
if supp_file.endswith(".fasta") or supp_file.endswith(".fa"):
parse_fasta_file(supplementary_datadir,supp_file,seq_records,no_reference_group,total_seqs,seq_info,config)

today_data = f"{config[KEY_RUNNAME]}.{config[KEY_TODAY]}.fasta"
if supp_file != today_data:
parse_fasta_file(supplementary_datadir,supp_file,seq_records,no_reference_group,total_seqs,seq_info,config)

elif supp_file.endswith("csv"):
with open(os.path.join(supplementary_datadir,supp_file),"r") as f:
Expand Down

0 comments on commit 462d2cd

Please sign in to comment.