Skip to content

Commit

Permalink
Moved up gzipped FASTA check
Browse files Browse the repository at this point in the history
  • Loading branch information
gavinmdouglas committed Apr 5, 2023
1 parent b77a3a5 commit 259197b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions picrust2/place_seqs.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,14 @@ def place_seqs_pipeline(study_fasta,
if " " in study_fasta:
sys.exit("Stopping - remove the space from the input FASTA filepath.")

# Check header-lines of FASTA: if they have multiple whitespace-delimited fields
# this can sometimes be an issue for hmmalign.
check_fasta_headers(study_fasta)

# Check that FASTA file is not gzipped.
if study_fasta[-3:] == '.gz':
sys.exit("Stopping - input FASTA should not be gzipped.")

# Check header-lines of FASTA: if they have multiple whitespace-delimited fields
# this can sometimes be an issue for hmmalign.
check_fasta_headers(study_fasta)

# Identify reference files to use. Note that model file will be different
# depending on which placement pipeline is indicated.
ref_msa, tree, hmm, model = identify_ref_files(ref_dir, placement_tool)
Expand Down

0 comments on commit 259197b

Please sign in to comment.