Snakemake MissingExceptionOutput
0
0
Entering edit mode
2.4 years ago
ohu20a ▴ 10

Please, does not anyone know why this code is giving "MissingOutputException" in Snakemake even though the dry-run worked fine.

rule all:
    input:
       expand(os.path.join(config["input_dir"], "input/{sample}.txt"), sample = ["A","B"]),

rule create_file:
    output:
        os.path.join(config["input_dir"], "input/{sample}.txt"),
    log:
        os.path.join(config["log_dir"], "input/{sample}.log"),
    shell:
        'echo {wildcards.sample} > {output}'

Error:

MissingOutputException in line 8 of  /yates_CNV_after_merging/rules/cnv.smk
python snakemake RNA-seq • 770 views
ADD COMMENT
2
Entering edit mode

Error refers cnv.smk. Please post the contents of cnv.smk.

ADD REPLY
1
Entering edit mode

I cannot reproduce your issue. I copied your two rules to file Snakefile and executed it with snakemake -j 1 -C log_dir='.' input_dir='.' and it completed without errors. Maybe there is something you are not showing?

ADD REPLY

Login before adding your answer.

Traffic: 1873 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6