Entering edit mode
2.6 years ago
nishimalhotra2612
▴
50
Hi
I'm having an issue in my snakemake file it is running but there is an issue where it shows missing output exception
SRA,FRR = glob_wildcards("rawReads/{sra}_{frr}.fastq.gz")
rule all:
input:
expand("rawQC/{sra}_{frr}_fastqc.{extension}", sra=SRA, frr=FRR,extension=["gz","html"]),
expand("trimmedreads{sra}_fastq.html", sra=SRA),
rule rawFastqc:
input:
rawread="rawReads/{sra}_{frr}.fastq.gz",
output:
gz="rawQC/{sra}_{frr}_fastqc.gz",
html="rawQC/{sra}_{frr}_fastqc.html",
threads:
1
params:
path="rawQC/",
shell:
"""
fastqc {input.rawread} --threads {threads} -o {params.path}
"""
rule fastp:
input:
read1="rawReads/{sra}_1.fastq.gz",
read2="rawReads/{sra}_2.fastq.gz",
output:
read1="trimmedreads/{sra}_1P.fastq.gz",
read2="trimmedreads/{sra}_2P.fastq.gz",
report_html= "trimmedreads{sra}_fastq.html",
threads:
4
shell:
"""
fastp --thread {threads} -i {input.read1} -I {input.read2} -o {output.read1} -O {output.read2} -h {output.report_html}
"""
and this is the error
MissingOutputException in line 10 of /mnt/d/snakemake/snakefile.py: Job Missing files after 5 seconds. This might be due to filesystem latency. If that is the case, consider to increase the wait time with --latency-wait: rawQC/SRR8571278_2_fastqc.gz completed successfully, but some output files are missing. 2 Removing output files of failed job rawFastqc since they might be corrupted:
and I'm trying to solve the error but I'm confused on what is missing in the code
it sounds like the files are not found, fastqc runs with invalid input, errors out in some way, and evidently the output files are also missing
Personal observation: in general for examples like this snake make is overkill, I would suggest learning something simpler first, bash scripting, GNU parallel, simple Makefiles etc.
This worked for me. Code is copy/pasted from your code:
directory:
snakemake file:
code run:
Hii thanks for the suggestion but in dry run it is working but whenever I try to run it the whole analysis is completing but in last again the same error occurs