Skip to content

Commit

Permalink
feat(nextclade): workaround for nextstrain/nextclade#1422 no longer n…
Browse files Browse the repository at this point in the history
…eeded

Nextclade now doesn't error when input sequence file empty
  • Loading branch information
corneliusroemer committed Mar 5, 2024
1 parent d06e653 commit 9bc2a05
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions workflow/snakemake_rules/nextclade.smk
Original file line number Diff line number Diff line change
Expand Up @@ -187,14 +187,6 @@ rule run_wuhan_nextclade:
],
shell:
"""
# If there are no sequences to run Nextclade on, create empty output files
if [[ ! -s {input.sequences} ]]; then
touch {output.info}
touch {output.alignment}
touch {output.translations}
exit 0
fi
./{input.nextclade_path} run \
{input.sequences}\
--input-dataset={input.dataset} \
Expand All @@ -216,12 +208,6 @@ rule run_21L_nextclade:
info=f"data/{database}/nextclade_21L_new_raw.tsv",
shell:
"""
# If there are no sequences to run Nextclade on, create empty output files
if [[ ! -s {input.sequences} ]]; then
touch {output.info}
exit 0
fi
./{input.nextclade_path} run \
{input.sequences} \
--input-dataset={input.dataset} \
Expand Down

0 comments on commit 9bc2a05

Please sign in to comment.