From 8690fdbd162b65abb6bed6c70a9174a774c1025a Mon Sep 17 00:00:00 2001 From: Dakota Howard <58985143+dthoward96@users.noreply.github.com> Date: Thu, 18 Apr 2024 11:56:29 -0400 Subject: [PATCH] bug fix fasta file creation Fix issue where it requires fasta file for non-fasta submission --- seqsender.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/seqsender.py b/seqsender.py index 4de2c43..081b872 100755 --- a/seqsender.py +++ b/seqsender.py @@ -82,7 +82,8 @@ def start(command, database, organism, submission_dir, submission_name, config_f config_dict = process.get_config(config_file=config_file, database=database) # Check metadata file metadata = process.get_metadata(database=database, organism=organism, metadata_file=metadata_file) - metadata = process.process_fasta_samples(metadata = metadata, fasta_file = fasta_file) + if fasta_file is not None: + metadata = process.process_fasta_samples(metadata = metadata, fasta_file = fasta_file) # Create identifier for each database to store submitting samples in submission status worksheet identifier_columns = dict() # Prepping submission files for each given database