<@U03LXPLCAQ5> Dear Raquel, I am running a new dev...
# rnadnavar
g
@Raquel Manzano Dear Raquel, I am running a new dev version, after tuning a lot in parameters to reach merge cram stage, I am facing the same error WARN: Input tuple does not match tuple declaration in process
NFCORE_RNADNAVAR:RNADNAVAR:BAM_PROCESSING:BAM_GATK_PREPROCESSING:BAM_APPLYBQSR:CRAM_MERGE_INDEX_SAMTOOLS:MERGE_CRAM
-- offending value: [] ERROR ~ Error executing process > 'NFCORE_RNADNAVARRNADNAVARBAM_PROCESSINGBAM GATK PREPROCESSINGBAM_APPLYBQSRCRAM MERGE INDEX SAMTOOLSMERGE_CRAM (1)' Caused by: Not a valid path value type: java.util.LinkedHashMap ([id:GCA_000001405.15_GRCh38_full_analysis_set]) Container: /home/projects/SRHgroup/apps/singularity-cache/depot.galaxyproject.org-singularity-samtools-1.20--h50ea8bc_0.img. This is more detailed from .nextflow.log Aug-29 155329.228 [Actor Thread 8] ERROR nextflow.Nextflow - Pipeline failed. Please refer to troubleshooting docs: https://nf-co.re/docs/usage/troubleshooting Aug-29 155329.229 [Task monitor] DEBUG n.processor.TaskPollingMonitor - <<< barrier arrives (monitor: pbspro) - terminating tasks monitor poll loop Aug-29 155329.230 [main] DEBUG nextflow.Session - Session await > all processes finished Aug-29 155329.230 [main] DEBUG nextflow.Session - Session await > all barriers passed Aug-29 155329.234 [main] INFO nextflow.Nextflow - -ESC[0;35m[nf-core/rnadnavar]ESC[0;31m Pipeline completed with errorsESC[0m- Aug-29 155329.236 [main] WARN n.processor.TaskPollingMonitor - Killing running tasks (2) Aug-29 155329.279 [Actor Thread 33] DEBUG nextflow.sort.BigSort - Sort completed -- entries: 2; slices: 1; internal sort time: 0.001 s; external sort time: 0.0 s; total time: 0.001 s Aug-29 155329.285 [Actor Thread 39] DEBUG nextflow.extension.GroupTupleOp - GroupTuple dynamic size: key=[patient:Pat11, sample:DNA_TUMOUR, status:1, lane:L11, normal_id:[], n_fastq:4, data_type:cram, id:DNA_TUMOUR, num_intervals:19] size=19 Aug-29 155329.287 [Actor Thread 37] ERROR nextflow.extension.OperatorImpl - @unknown nextflow.exception.AbortOperationException: Join mismatch for the following entries: key=[patient:Pat11, sample:DNA_TUMOUR, status:1, lane:L11, normal_id:[], n_fastq:4, data_type:cram, id:DNA_TUMOUR] values= at nextflow.extension.JoinOp.checkForMismatch(JoinOp.groovy:290) at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103) at java.base/java.lang.reflect.Method.invoke(Method.java:580) at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:343) at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:328) at groovy.lang.MetaClassImpl.doInvokeMethod(MetaClassImpl.java:1333) at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1088) at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1007) at org.codehaus.groovy.runtime.InvokerHelper.invokePogoMethod(InvokerHelper.java:645) at org.codehaus.groovy.runtime.InvokerHelper.invokeMethod(InvokerHelper.java:628) at org.codehaus.groovy.runtime.InvokerHelper.invokeMethodSafe(InvokerHelper.java:82) at nextflow.extension.JoinOp$_handler_closure2.doCall(JoinOp.groovy:135) at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103) at java.base/java.lang.reflect.Method.invoke(Method.java:580) at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:343) at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:328) at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:280) at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1007) at org.codehaus.groovy.vmplugin.v8.IndyInterface.fromCache(IndyInterface.java:321) at nextflow.extension.DataflowHelper$3.afterStop(DataflowHelper.groovy:257) at groovyx.gpars.dataflow.operator.DataflowProcessor.fireAfterStop(DataflowProcessor.java:324) at groovyx.gpars.dataflow.operator.DataflowProcessorActor.afterStop(DataflowProcessorActor.java:59) at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103) at java.base/java.lang.reflect.Method.invoke(Method.java:580) at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:343) at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:328) at groovy.lang.MetaClassImpl.doInvokeMethod(MetaClassImpl.java:1333) at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1088) at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1007) at org.codehaus.groovy.runtime.InvokerHelper.invokePojoMethod(InvokerHelper.java:633) at org.codehaus.groovy.runtime.InvokerHelper.invokeMethod(InvokerHelper.java:624) at groovyx.gpars.actor.Actor.callDynamic(Actor.java:369) at groovyx.gpars.actor.Actor.handleTermination(Actor.java:320) at groovyx.gpars.actor.AbstractLoopingActor.terminate(AbstractLoopingActor.java:204) at groovyx.gpars.dataflow.operator.DataflowProcessor.terminate(DataflowProcessor.java:147) at groovyx.gpars.dataflow.operator.DataflowProcessorActor.checkPoison(DataflowProcessorActor.java:115) at groovyx.gpars.dataflow.operator.DataflowOperatorActor.onMessage(DataflowOperatorActor.java:83) at groovyx.gpars.actor.impl.SDAClosure$1.call(SDAClosure.java:43) at groovyx.gpars.actor.AbstractLoopingActor.runEnhancedWithoutRepliesOnMessages(AbstractLoopingActor.java:293) at groovyx.gpars.actor.AbstractLoopingActor.access$400(AbstractLoopingActor.java:30) at groovyx.gpars.actor.AbstractLoopingActor$1.handleMessage(AbstractLoopingActor.java:93) at groovyx.gpars.util.AsyncMessagingCore.run(AsyncMessagingCore.java:132) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642) at java.base/java.lang.Thread.run(Thread.java:1575) And this is my command nextflow run /home/projects/SRHgroup/apps/.nextflow/assets/nf-core/rnadnavar \ --enable_conda true -profile singularity --igenomes_ignore true \ -c /home/projects/SRHgroup/apps/computerome_nextflow_test.config \ --project srhgroup \ --singularity_cache_dir /home/projects/SRHgroup/apps/singularity-cache \ --cache_dir /home/projects/SRHgroup/projects/SingelCell_Bladder/data/rna/rnadnavar/cache \ --input /home/projects/SRHgroup/projects/SingelCell_Bladder/SC_BLCA_samplesheet_test.csv \ --outdir /home/projects/SRHgroup/projects/SingelCell_Bladder/data/rna/rnadnavar \ --fasta /home/projects/SRHgroup/data/references/human_GRCh38/GCA_000001405.15_GRCh38_full_analysis_set.fa.gz \ --gtf /home/projects/SRHgroup/data/references/human_GRCh38/STAR/CTAT_RESOURCE_LIB/GRCh38_gencode_v37_CTAT_lib_Mar012021.plug-n-play/ctat_genome_lib_build_dir/ref_annot.gtf \ --save_output_as_bam true \ --save_align_intermeds true \ --star_index /home/projects/SRHgroup/data/references/human_GRCh38/STAR/CTAT_RESOURCE_LIB/GRCh38_gencode_v37_CTAT_lib_Mar012021.plug-n-play/ctat_genome_lib_build_dir/ref_genome.fa.star.idx \ --known_indels /home/projects/SRHgroup/data/references/human_GRCh38/Indel_refs/Mills_and_1000G_gold_standard.indels.hg38.vcf.gz \ --dbsnp /home/projects/SRHgroup/data/references/human_GRCh38/SNP_refs/1000G_phase1.snps.high_confidence.hg38.vcf.gz \ -w /home/projects/SRHgroup/projects/SingelCell_Bladder/data/rna/rnadnavar/work \ --aligner bwa-mem \ -resume
r
Okay, looks like something is missing in the channel. I am debugging now, thanks for your command
๐Ÿ™Œ 1
Hi Gregorii, just trying to get to your error message. Do you have any intervals set up in your config?
Okay, can you try this patch?
patch_cram_merge_index_samtools
I think I found the issue
g
@Raquel Manzano thanks for the fast response, I added this once for this tool withName: /.*CRAM_MERGE_INDEX_SAMTOOLS:MERGE_CRAM.*/ { ext.when = false errorStrategy = 'ignore' maxRetries = 0 } withName: /.*CRAM_MERGE_INDEX_SAMTOOLS:INDEX_CRAM.*/ { ext.when = false errorStrategy = 'ignore' maxRetries = 0 } // Hard ceilings per task resourceLimits = [ memory: 1500.GB, cpus: 40, time: 168.h ] } but if I remove it it changes nothing, same error
r
Try the patch and let me know if it works. I am unable to reproduce the error for some reason but I think the issue was a missing meta when I updated the modules
You can run the patch just changing in your command the option
-r patch_cram_merge_index_samtools
instead of
dev
g
if run this nextflow run nf-core/rnadnavar -r patch_cram_merge_index_samtools \ --enable_conda true -profile singularity --igenomes_ignore true \ -c /home/projects/SRHgroup/apps/computerome_nextflow_test.config \ --project srhgroup \ --singularity_cache_dir /home/projects/SRHgroup/apps/singularity-cache \ --cache_dir /home/projects/SRHgroup/projects/SingelCell_Bladder/data/rna/rnadnavar/cache \ --input /home/projects/SRHgroup/projects/SingelCell_Bladder/SC_BLCA_samplesheet_test.csv \ --outdir /home/projects/SRHgroup/projects/SingelCell_Bladder/data/rna/rnadnavar \ --fasta /home/projects/SRHgroup/data/references/human_GRCh38/GCA_000001405.15_GRCh38_full_analysis_set.fa.gz \ --gtf /home/projects/SRHgroup/data/references/human_GRCh38/STAR/CTAT_RESOURCE_LIB/GRCh38_gencode_v37_CTAT_lib_Mar012021.plug-n-play/ctat_genome_lib_build_dir/ref_annot.gtf \ --save_output_as_bam true \ --save_align_intermeds true \ --star_index /home/projects/SRHgroup/data/references/human_GRCh38/STAR/CTAT_RESOURCE_LIB/GRCh38_gencode_v37_CTAT_lib_Mar012021.plug-n-play/ctat_genome_lib_build_dir/ref_genome.fa.star.idx \ --known_indels /home/projects/SRHgroup/data/references/human_GRCh38/Indel_refs/Mills_and_1000G_gold_standard.indels.hg38.vcf.gz \ --dbsnp /home/projects/SRHgroup/data/references/human_GRCh38/SNP_refs/1000G_phase1.snps.high_confidence.hg38.vcf.gz \ This message comes N E X T F L O W ~ version 25.04.4 Project
nf-core/rnadnavar
contains uncommitted changes -- Cannot switch to revision: patch_cram_merge_index_samtool
r
It seems you did some local changes in your local version
If you need those changes save them in a different folder as a back up
For your reference, they will be in a folder like this one
~/.nextflow/assets/nf-core/rnadnavar/
that is your local copy of the repo that nextflow uses to run. If you made any change there it will complain when you try to switch branches
which is what is trying to do when we change the option
-r
g
ok so I checked out to this branch, it started everything from scratch, not from the cached stage where I already have partually made BAMs, which I find strange, But hopefully this error is resolved
r
Mmm yeah weird, it should only have restarted the failed jobs as I only changed that one subworkflow ๐Ÿค”. Hope it does not take a long time, I would recommend then running just one sample so you donโ€™t have to wait very long
g
Thanks, I was actually running just 1 sample all this time, will run the cohort when its all resolved ๐Ÿ™‚
r
๐Ÿ‘๐Ÿผ
g
@Raquel Manzano Hi Raquel. Hope you are doing good. SO initially this error was resolved after I downloaded your late uodate, then I had another issue, I used two separate STAR and BWA references that have slighly different annotation, and it complained about some gene regions existing in one and not the other, so I had to build references for them from the same fasta and gtf files. And after this it all started over from scratch, ending up with the same error again. ERROR ~ Error executing process > 'NFCORE_RNADNAVARRNADNAVARBAM_PROCESSINGBAM GATK PREPROCESSINGBAM_SPLITNCIGARREADSCRAM MERGE INDEX SAMTOOLSMERGE_CRAM (1)' Caused by: Not a valid path value type: java.util.LinkedHashMap ([id:GCA_000001405.15_GRCh38_full_analysis_set]) Container: /home/projects/SRHgroup/apps/singularity-cache/depot.galaxyproject.org-singularity-samtools-1.20--h50ea8bc_0.img Tip: you can try to figure out what's wrong by changing to the process work dir and showing the script file named
.command.sh
-- Check '.nextflow.log' file for details Execution cancelled -- Finishing pending tasks before exit ERROR ~ Pipeline failed. Please refer to troubleshooting docs: https://nf-co.re/docs/usage/troubleshooting -- Check '.nextflow.log' file for details Join mismatch for the following entries: key=[patient:Pat11, sample:DNA_NORMAL, status:0, lane:L11, normal_id:[], n_fastq:4, data_type:cram, id:DNA_NORMAL] values= WARN: Got an interrupted exception while taking agent result | java.lang.InterruptedException ERROR ~ Pipeline failed. Please refer to troubleshooting docs: https://nf-co.re/docs/usage/troubleshooting -- Check '.nextflow.log' file for details -[nf-core/rnadnavar] Pipeline completed with errors- WARN: Killing running tasks (1) [49/12418a] Submitted process > NFCORE_RNADNAVARRNADNAVARBAM_PROCESSINGBAM GATK PREPROCESSINGBAM_APPLYBQSR:GATK4_APPLYBQSR (DNA_TUMOUR) [grino@g-01-c0029 SingelCell_Bladder]$ =>> PBS: job killed: walltime 86429 exceeded limit 86400 logout qsub: job 60123542 completed . Could you help me here please?
r
I see, did you updated to the latest version? I added some fixes for Mire who is having a similar issue. Wonder if I manage to break it againโ€ฆ It is a bit annoying for me too as I am unable to reproduce the code, I am meeting online with her next week in case you wanna join.
g
Hi, what was the latest for around 2 weeks before I did update. Sure I would be happy to join online
r
We are meeting tomorrow at 2pm UK time, would that work for you?
just fyi, meeting now
Can you share your nextflow.log Grigorii? I managed to reproduce the error but for me was gone with the patched version so just checking what am I missing
g
Ooops, sorry I missed the meeting, I was on the conference. Here is the file
r
No worries at all, my bad for not organising it better. I did have some time to go through things and I manage to replicate your error in your log. Can you try with the
-latest
version of the patch?
g
@Raquel Manzano thanks a lot for the update. It passed this stage and didn't give me path not valid error, but it "finished pipeline sucessfully" without running any cariant calling. I specified mutect2 explicitly in --tools, and then weirdly enough it started over again, not from already dedup BAMS as i wpuld expect, and markduplicates on RNA BAM gave me Process
NFCORE_RNADNAVAR:RNADNAVAR:BAM_PROCESSING:BAM_GATK_PREPROCESSING:BAM_MARKDUPLICATES:GATK4_MARKDUPLICATES (DNA_TUMOUR)
terminated with an error exit status (247). I am running it again with more RAM given, it it starts over again, so far fighting a lot of errors ๐Ÿ™‚
r
Yes error 247 is related to not enough memory for the container. Mmmm, weird that mutect2 did not run, in the log that you sent me last time I didnโ€™t see any
--tools
. Feel free to share the nextflow.log if you want me to take a look
g
i didn't specify --tools mutect2 in the run I shared .nextflow.log from, but running same params after your update made it stop before running mutect2 for some reason. Therefore I tried to specify --tools mutect2 an got this
Thanks a lot again, Requel. The run i shared last nextflow didnt have --tools specified, but after ypur last fix it would stop without running mutect, so i did --tools mutect2, but then i got this
r
is it still giving you the error 247?
OR is it running now?
g
its running rn yes
r
Okay, fingers crossed it was just a memory thing
g
@Raquel Manzano Hi Raquel, I am for dissapearing, had to work on pther project. I made rnadnavar work with 3.4.1 andlater versions, thanks a lot for your hard work.
r
Awesome news, thanks for letting me know. Any other issues let me know