Skip to content

Commit

Permalink
chore: don't assume default filenames in datasets in smoke tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ivan-aksamentov committed Jul 1, 2024
1 parent 9741e62 commit 1c104ee
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/run-smoke-tests
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,8 @@ function run_with_ref_only() {
sequences="${3}"
out_dir="${RESULTS_DIR}/${name}/with_ref_only"

if [ ! -f "${dataset_dir}/reference.fasta" ]; then return; fi

${NEXTCLADE_BIN} run --quiet --in-order --include-reference \
--input-ref="${dataset_dir}/reference.fasta" \
--output-translations="${out_dir}/translations/{cds}.translation.fasta" \
Expand All @@ -102,6 +104,7 @@ function run_with_ref_and_annotation() {
sequences="${3}"
out_dir="${RESULTS_DIR}/${name}/with_ref_and_annotation"

if [ ! -f "${dataset_dir}/reference.fasta" ]; then return; fi
if [ ! -f "${dataset_dir}/genome_annotation.gff3" ]; then return; fi

${NEXTCLADE_BIN} run --quiet --in-order --include-reference \
Expand All @@ -120,6 +123,7 @@ function run_with_ref_and_tree() {
sequences="${3}"
out_dir="${RESULTS_DIR}/${name}/with_ref_and_tree"

if [ ! -f "${dataset_dir}/reference.fasta" ]; then return; fi
if [ ! -f "${dataset_dir}/tree.json" ]; then return; fi

${NEXTCLADE_BIN} run --quiet --in-order --include-reference \
Expand Down

0 comments on commit 1c104ee

Please sign in to comment.