Hi AlI, I am trying to get the unmapped reads for paired end samples using hisat2 in the snakemake and command is :
hisat2 \
-S {output.sam} \
-x {params.index} \
-1 {input.fq1} \
-2 {input.fq2} \
--un-conc {output.fq}\
--threads {threads}
I am getting an error of
Waiting at most 60 seconds for missing files. Removing output files of failed job remove_host_reads since they might be corrupted: p21005_ht2.sam
But when I ran the same sample without --un-conc option, it worked (and gave me both mapped + unmapped reads which are crazy big files).If I omitted ".sam" in the output as I am interested in unmapped reads, I got the error of "missing files". Any help would be appreciated.Thanks
Just to add a small point of clarification, the following error message:
is actually a Snakemake error message. My guess is that two separate output files are being created (since you have PE reads), and neither are named according to what Snakemake is expecting, so it's throwing that error.
Thank you @Dave Carlson, I will look into it. I am wondering it will raise the error as .sam and .fq files will have different naming convention. surprisingly, It is taking longer to generate the result if I eliminate .sam output. Is there any workaround for it?
Without seeing the full Snakemake rule that is being used, it's hard to say for certain. You might have better luck if the argument supplied to
--un-conc
uses Snakemake'sparams
instead ofoutput
Thanks @Dave Carlson, Here is the snakelike rule for your reference:
The addition of {ext} in .sam is not the correct way but only to avoid the error of "output files don't have similar parameters". The ext = ["1","2"].