-
Notifications
You must be signed in to change notification settings - Fork 15
Second run of methylation analysis triggers alignment again #9
Comments
Hi Miguel, you're right, re-running for the .bw file should never trigger alignment and methylation detection. The dag plots don't help much, can you post the exact commands you ran and attach both log-files (should be under ./log/ in the processing directory)? Pay |
Sorry, I never remember that I should allways provide commands, versions, etc! snakemake --snakefile nanopype/Snakefile \
--directory nanopype/ \
--profile profiles/slurm/ \
--use-singularity \
--printshellcmds \
--local-cores 1 \
alignments/ngmlr/guppy/697_original_1strun.GRCh38_p12_Release_96.bam
snakemake --snakefile nanopype/Snakefile \
--directory nanopype/ \
--printshellcmds \
--local-cores 1 \
sequences/guppy/697_original_1strun.fastq.gz
snakemake --snakefile nanopype/Snakefile \
--directory nanopype/ \
--profile profiles/slurm/ \
--use-singularity \
--printshellcmds \
--local-cores 1 \
sv/sniffles/ngmlr/guppy/697_original_1strun.GRCh38_p12_Release_96.vcf The methylation commands were: # First run for bedGraph
snakemake --snakefile nanopype/Snakefile \
--directory nanopype/ \
--profile profiles/slurm/ \
--use-singularity \
--printshellcmds \
--local-cores 1 \
methylation/nanopolish/ngmlr/guppy/697_original_1strun.2x.GRCh38_p12_Release_96.bedGraph
# Second run for bw
snakemake --snakefile nanopype/Snakefile \
--directory nanopype/ \
--profile profiles/slurm/ \
--use-singularity \
--printshellcmds \
--local-cores 1 \
methylation/nanopolish/ngmlr/guppy/697_original_1strun.2x.GRCh38_p12_Release_96.bw I uploaded both logs and stdouts (which are stderrs): logs_stdouts.zip. I still don't have the log file for the bw run because it is still running. I'll send it as soon as I have it. |
Hi @giesselmann, |
Hi Miguel, |
Hi @giesselmann,
So, I decided to rerun everything with |
Hi Miguel, I moved the container builds from Docker to Travis. During that development I also automated the unit tests and could not observe/reproduce the behavior you described initially. Let me know when you're still on this, otherwise I would close the issue. Pay |
Hi @giesselmann, |
That makes perfect sense, these *.fai are present in our institute, so I missed making a rule to produce them. |
Threads as consumables Index reference fasta file Fixes #9
Hi,
I'm testing Nanopype and it seems to be a very nice tool.
However, I'm facing an unexpected behaviour when running twice the methylation analysis: when I run it for the first time and ask a bedGraph, it uses the existing alignment and proceeds from from the nanopolish step, however, if I run it a second time and ask for a bw file, it reruns the alignment step and everything from there.
I newbie in Snakemake, but if I understood it right, snakemake only rerun things if the modification time of input files are more recent than the one of output files, or if an intermediate file is required and are no longer available. I tried to understand if any input file was changed during the methylation analysis, but I couldn't find anything changing it (from my inexperience point of view). I looked if there were any output file flagged as temporary and there were (.fofn), but those are produced after the nanopolish step, which should not have triggered the mapping step.
What do you thing that could be causing this behaviour?
Thanks in advance.
Miguel
P.s.1: I attached the dag files of both runs.
P.s.2: I've made a few changes and added a few things to the code (that I'm still testing locally) that improves the flexibility and cluster usage. Can I do a pull request? Thanks again.
The text was updated successfully, but these errors were encountered: