Skip to content

Job arrays across different wildcards may not create output directories #447

@ASLeonard

Description

@ASLeonard

Using snakemake v9.18 and slurm executor v2.6.

I have a rule that is wilcarded over a sample name and a "shard", which has a directory structure that depends on both wildcards. When using the new slurm jobarrays feature for ruleA, all jobs fail at the end because of missing output, and runs fine when not using the jobarray=ruleA arg.

rule ruleA:
    input:
        bam="{sample}.bam"
    output:
        vcf="finished/{sample}_{N}/test.vcf"

Given the warning about jobarrays and multiple wildcards, this seems likely to be the cause although I haven't had the chance to check if any directories are created while the jobarray is running.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions