Skip to content

Commit

Permalink
fix: flag output directory with directory()
Browse files Browse the repository at this point in the history
Resolves error:

```
ImproperOutputException in rule prepare_nextclade in file /home/runner/work/ncov/ncov/workflow/snakemake_rules/main_workflow.smk, line 452:
Outputs of incorrect type (directories when expecting files or vice versa). Output directories must be flagged with directory(). for rule prepare_nextclade:
    output: data/sars-cov-2-nextclade-defaults
    affected files:
        data/sars-cov-2-nextclade-defaults
```

https://github.com/nextstrain/ncov/actions/runs/13007476969/job/36277462988?pr=1170#step:8:136
  • Loading branch information
ivan-aksamentov committed Jan 28, 2025
1 parent c3cd0a3 commit 00ce581
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion workflow/snakemake_rules/main_workflow.smk
Original file line number Diff line number Diff line change
Expand Up @@ -455,7 +455,7 @@ rule prepare_nextclade:
Downloading reference files for nextclade (used for alignment and qc).
"""
output:
nextclade_dataset = "data/sars-cov-2-nextclade-defaults",
nextclade_dataset = directory("data/sars-cov-2-nextclade-defaults"),
params:
name = config["nextclade_dataset"],
conda: config["conda_environment"]
Expand Down

0 comments on commit 00ce581

Please sign in to comment.