Someone else ran sarek as a test, on the dev branc...
# sarek_dev
s
Someone else ran sarek as a test, on the dev branch, and got an error. They ran using sentieon bwamem, but not sentieon dedup, and not skipping base recalibrator. This warns with:
Copy code
WARN: Input tuple does not match tuple declaration in process `NFCORE_SAREK:sarek:FASTQ_PREPROCESS_GATK:BAM_BASERECALIBRATOR:GATK4_BASERECALIBRATOR` -- offending value: [bucket/igenomes/Homo_sapiens/GATK/GRCh38/Annotation/GATKBundle/dbsnp_146.hg38.vcf.gz, bucket/igenomes/Homo_sapiens/GATK/GRCh38/Annotation/GATKBundle/Mills_and_1000G_gold_standard.indels.hg38.vcf.gz, bucket/igenomes/Homo_sapiens/GATK/GRCh38/Annotation/GATKBundle/beta/Homo_sapiens_assembly38.known_indels.vcf.gz]
and then failed with:
Copy code
No signature of method: Script_1690db9662109ef7$_runScript_closure1$_closure2$_closure5.call() is applicable for argument types: (ArrayList) values: [[[patient:S2400008-SEQ-00001, sample:S2400008-SEQ-00001, sex:NA, status:0, n_fastq:24, ...], ...]]
Possible solutions: any(), any(), any(groovy.lang.Closure), each(groovy.lang.Closure), tap(groovy.lang.Closure), any(groovy.lang.Closure)
I tried resuming it, and it then actually completed successfully, which suggests there may be some concurrent modification going on
m
any idea which revision it was?
r
ohno2
s
Oh, never mind, it looks like it was an old commit
they have used an old version in our Launchpad that was hanging around
does some cleaning
but I still got the input tuple complaint on https://github.com/nf-core/sarek/pull/1977
r
well there was a bad script error on the megatests that noone has tracked down yet: https://cloud.seqera.io/orgs/nf-core/workspaces/AWSmegatests/watch/5NHylieHhApX1c/v2/logs it's from a few prs ago
m
input tuple complain on GATK4_BASERECALIBRATOR after the 1977 PR?
s
Yes, getting the input tuple complaint still
m
ok
Defintively need to investigate that
s
Yeah, subworkflows/local/fastq_preprocess_gatk is being passed the three vcf files without a meta, but baserecalibrator expects one
m
ok, that's an easy fix then
s
the index hasn't got a meta either, but I don't get an error from that
m
My guess is because it's never actually called in the script
we just need the files to be there
s
true
m
shall include in https://github.com/nf-core/sarek/pull/1962 or in a separate PR?
s
probably a separate PR
➕ 1
adjusting BAM_BASERECALIBRATOR subworkflow to give it a meta has stopped the complaint
(note the spark version doesn't have the meta....)
I'll make the PR
m
Wonderful
s
Copy code
Detected 2 changed files
  • CHANGELOG.md
  • subworkflows/local/bam_baserecalibrator/main.nf
Found 53 related test(s)
😢
m
sadpanda
yeah, that's wrong
@Simon Pearce can you a quick
git commit --allow-empty -m "Trigger Build"
on your PR to retrigger the tests since the GHA thing it's master
👍 1
Oh, could the changing snapshots be due to the fact that the dbsnp are now handled properly
👍 1
facepalm
freebayes, strelka + default as far as I can tell for now
s
Yeah, I would expect there to be changes
m
I thought of expanding the tests suite to catch this
Using #nft-plugins nft-utils latest release we could catch
Input tuple does not match tuple declaration in process
How do you feel about this?
I am whipping something out
s
We should definitely be catching that and failing if it occurs
frankly it should be an error on the nextflow side
m
BTW, I expect failures in this PR, since I hope to catch the one you're fixing
frankly it should be an error on the nextflow side
I am conflicted about this to be honest
s
My PR is now passing, ready to merge once you're not using the issue for testing
m
yeah, give me 5, I want to make sure to catch the failure
Is it supposed to happen with default test?
which NF versions are you using?
s
25.04.2
m
I cannot reproduce the warning
s
hmmm
m
I still have
Copy code
known_sites.view()
    known_sites_tbi.view()

    // Combine cram and intervals for spread and gather strategy
    cram_intervals = cram.combine(intervals)
        // Move num_intervals to meta map
        .map{ meta, cram, crai, intervals, num_intervals -> [ meta + [ num_intervals:num_intervals ], cram, crai, intervals ] }

    // RUN BASERECALIBRATOR
    GATK4_BASERECALIBRATOR(cram_intervals, fasta, fasta_fai, dict, known_sites, known_sites_tbi)
Copy code
[/nf-core/test-datasets/modules/data/genomics/homo_sapiens/genome/vcf/dbsnp_146.hg38.vcf.gz, /nf-core/test-datasets/modules/data/genomics/homo_sapiens/genome/vcf/mills_and_1000G.indels.vcf.gz]
[/nf-core/test-datasets/modules/data/genomics/homo_sapiens/genome/vcf/dbsnp_146.hg38.vcf.gz.tbi, /nf-core/test-datasets/modules/data/genomics/homo_sapiens/genome/vcf/mills_and_1000G.indels.vcf.gz.tbi]
yet no warning
s
because it has two elements?
whereas my actual run had three?
m
oooh, so the meta is the first element?
Oooh this is soooo bad
We need input type right now
ok let me add a test that should fail right now
shakefist
ok, I can't get a test for that
1 single vcf is failing, and I can't put 3
anyhow, merged your PR
🙇 1
f
Argh I am running into a similar looking error now with 3.6.0 ...
Copy code
ERROR ~ Invalid method invocation `call` with arguments: [/mnt/lustre/groups/nahnsen/nahbu450/pm4onco/2025-10/sarek/seqc2-wes-work/8a/5fb9ec00951122e532ad33644cb617/chr2_16146120-32867130.bed, 21, /mnt/lustre/groups/nahnsen/nahbu450/pm4onco/2025-10/sarek/seqc2-wes-work/8a/5fb9ec00951122e532ad33644cb617/chr2_238904048-242183529.bed, 21, /mnt/lustre/groups/nahnsen/nahbu450/pm4onco/2025-10/sarek/seqc2-wes-work/8a/5fb9ec00951122e532ad33644cb617/chr4_10001-1429358.bed, 21, /mnt/lustre/groups/nahnsen/nahbu450/pm4onco/2025-10/sarek/seqc2-wes-work/8a/5fb9ec00951122e532ad33644cb617/chr12_37235253-37240944.bed, 21, /mnt/lustre/groups/nahnsen/nahbu450/pm4onco/2025-10/sarek/seqc2-wes-work/8a/5fb9ec00951122e532ad33644cb617/chr15_20729747-21193490.bed, 21, /mnt/lustre/groups/nahnsen/nahbu450/pm4onco/2025-10/sarek/seqc2-wes-work/8a/5fb9ec00951122e532ad33644cb617/chr7_58169654-60828234.bed, 21, /mnt/lustre/groups/nahnsen/nahbu450/pm4onco/2025-10/sarek/seqc2-wes-work/8a/5fb9ec00951122e532ad33644cb617/chr10_39590436-39593013.bed, 21, /mnt/lustre/groups/nahnsen/nahbu450/pm4onco/2025-10/sarek/seqc2-wes-work/8a/5fb9ec00951122e532ad33644cb617/chr8_44033745-45877265.bed, 21, /mnt/lustre/groups/nahnsen/nahbu450/pm4onco/2025-10/sarek/seqc2-wes-work/8a/5fb9ec00951122e532ad33644cb617/chr20_36314720-64334167.bed, 21, /mnt/lustre/groups/nahnsen/nahbu450/pm4onco/2025-10/sarek/seqc2-wes-work/8a/5fb9ec00951122e532ad33644cb617/chr4_190173122-190204555.bed, 21, /mnt/lustre/groups/nahnsen/nahbu450/pm4onco/2025-10/sarek/seqc2-wes-work/8a/5fb9ec00951122e532ad33644cb617/chr5_139453660-155760324.bed, 21, /mnt/lustre/groups/nahnsen/nahbu450/pm4onco/2025-10/sarek/seqc2-wes-work/8a/5fb9ec00951122e532ad33644cb617/chr6_95070791-167591393.bed, 21, /mnt/lustre/groups/nahnsen/nahbu450/pm4onco/2025-10/sarek/seqc2-wes-work/8a/5fb9ec00951122e532ad33644cb617/chr17_60001-448188.bed, 21, /mnt/lustre/groups/nahnsen/nahbu450/pm4onco/2025-10/sarek/seqc2-wes-work/8a/5fb9ec00951122e532ad33644cb617/chr1_122026460-124977944.bed, 21, /mnt/lustre/groups/nahnsen/nahbu450/pm4onco/2025-10/sarek/seqc2-wes-work/8a/5fb9ec00951122e532ad33644cb617/chr18_47019913-54536574.bed, 21, /mnt/lustre/groups/nahnsen/nahbu450/pm4onco/2025-10/sarek/seqc2-wes-work/8a/5fb9ec00951122e532ad33644cb617/chrX_37285838-49348394.bed, 21, /mnt/lustre/groups/nahnsen/nahbu450/pm4onco/2025-10/sarek/seqc2-wes-work/8a/5fb9ec00951122e532ad33644cb617/chr1_10001-207666.bed, 21, /mnt/lustre/groups/nahnsen/nahbu450/pm4onco/2025-10/sarek/seqc2-wes-work/8a/5fb9ec00951122e532ad33644cb617/chr11_51078349-54425074.bed, 21, /mnt/lustre/groups/nahnsen/nahbu450/pm4onco/2025-10/sarek/seqc2-wes-work/8a/5fb9ec00951122e532ad33644cb617/chr13_86252980-111703855.bed, 21, /mnt/lustre/groups/nahnsen/nahbu450/pm4onco/2025-10/sarek/seqc2-wes-work/8a/5fb9ec00951122e532ad33644cb617/chr9_41229379-41237752.bed, 21, /mnt/lustre/groups/nahnsen/nahbu450/pm4onco/2025-10/sarek/seqc2-wes-work/8a/5fb9ec00951122e532ad33644cb617/chrY_9055175-9057608.bed, 21] (nextflow.util.ArrayBag) on _closure7 type

 -- Check '.nextflow.log' file for details
ERROR ~ Pipeline failed. Please refer to troubleshooting docs: https://nf-co.re/docs/usage/troubleshooting

 -- Check '.nextflow.log' file for details
WARN: [nf-core/sarek] No reports found from process 'MULTIQC'
-[nf-core/sarek] Sent summary e-mail to famke.baeuerle@uni-tuebingen.de (sendmail)-
-[nf-core/sarek] Pipeline completed with errors-
WARN: Killing running tasks (6)
WARN: Seqera Platform request field `workflow.errorMessage` exceeds expected size | offending value: `No signature of method: Script_6f9426fcbfcfb62d$_runScript_closure1$_closure2$_closure7.call() is ap(truncated)`, size: 442 (max: 255)
What did you do to resolve this? 🤔
😱 1
m
how did you arrived there?
this looks like an issue with intervals
f
I just tried running the new release on my data - but I am having issues with the cluster in the moment anyway so the issue is (most likely) on my side - maybe even in our igenomes setup??
r
hm, log please
f
nextflow.log
m
this looks like
interval + num_interval
in a weirdly formatted way
f
Yes its this process
NFCORE_SAREK:PREPARE_INTERVALS:CREATE_INTERVALS_BED
according to the log 😞
or that is the last successful one - i am a little confused
m
ok
r
hm that one finished successfully on the full size tests already https://cloud.seqera.io/orgs/nf-core/workspaces/AWSmegatests/watch/28Sxp7houemhKH/v2/tasks. What happens if you provide it with
--intervals
instead?
👀 1
test
runs fine?
f
yeah I'll check that now - I'll report back
This is the result of
nextflow run nf-core/sarek -profile m3c,test --outdir test -r 3.6.0
Copy code
ERROR ~ Validation of pipeline parameters failed!

 -- Check '.nextflow.log' file for details
The following invalid input values have been detected:

* --intervals (/mnt/lustre/datasets/igenomes/genomics/homo_sapiens/genome/genome.interval_list): the file or directory '/mnt/lustre/datasets/igenomes/genomics/homo_sapiens/genome/genome.interval_list' does not exist
* --dbsnp (/mnt/lustre/datasets/igenomes/genomics/homo_sapiens/genome/vcf/dbsnp_146.hg38.vcf.gz): the file or directory '/mnt/lustre/datasets/igenomes/genomics/homo_sapiens/genome/vcf/dbsnp_146.hg38.vcf.gz' does not exist
* --dict (/mnt/lustre/datasets/igenomes/genomics/homo_sapiens/genome/genome.dict): the file or directory '/mnt/lustre/datasets/igenomes/genomics/homo_sapiens/genome/genome.dict' does not exist
* --fasta_fai (/mnt/lustre/datasets/igenomes/genomics/homo_sapiens/genome/genome.fasta.fai): the file or directory '/mnt/lustre/datasets/igenomes/genomics/homo_sapiens/genome/genome.fasta.fai' does not exist
* --known_indels (/mnt/lustre/datasets/igenomes/genomics/homo_sapiens/genome/vcf/mills_and_1000G.indels.vcf.gz): the file or directory '/mnt/lustre/datasets/igenomes/genomics/homo_sapiens/genome/vcf/mills_and_1000G.indels.vcf.gz' does not exist
* --known_indels_tbi (/mnt/lustre/datasets/igenomes/genomics/homo_sapiens/genome/vcf/mills_and_1000G.indels.vcf.gz.tbi): the file or directory '/mnt/lustre/datasets/igenomes/genomics/homo_sapiens/genome/vcf/mills_and_1000G.indels.vcf.gz.tbi' does not exist
* --fasta (/mnt/lustre/datasets/igenomes/genomics/homo_sapiens/genome/genome.fasta): the file or directory '/mnt/lustre/datasets/igenomes/genomics/homo_sapiens/genome/genome.fasta' does not exist
* --dbsnp_tbi (/mnt/lustre/datasets/igenomes/genomics/homo_sapiens/genome/vcf/dbsnp_146.hg38.vcf.gz.tbi): the file or directory '/mnt/lustre/datasets/igenomes/genomics/homo_sapiens/genome/vcf/dbsnp_146.hg38.vcf.gz.tbi' does not exist
so seems like its an issue with igenomes for me that throws weird errors when I run with my data
ah wait I need to change the order
r
can you check if all these files exists? I am guessing this comes from the mc3 profile
👍 1
f
-profile test,singularity works
ok -profile test,m3c fails for sarek but works for rnaseq
r
confused dog
are all the files there?
rnaseq has a pretty limited set of references
👍 1
f
No the files are missing but I am confused - I will try to debug this on thursday - I just thought maybe there was an easy solution
(I just hope its an issue on my side - which sucks but would be fine)
r
you could try without the mc3 profile (unless there is anything else interesting in there). That will pull again the igenomes files. not very efficient, but it would proof out if it works at all
f
It always fails at the same step there is something off with the intervals when I run my samples 😕 the test profile works
m
Test full too?
f
test_full also works
I will downgrade nextflow now
m
Which format is the intervals file?
f
I dont know I am not handing any interval file
Now I am getting compilation error with nextflow 24.10.5
Copy code
Pulling nf-core/sarek ...
 downloaded from https://github.com/nf-core/sarek.git
Launching `https://github.com/nf-core/sarek` [insane_swanson] DSL2 - revision: 08887a88b6 [3.6.0]

ERROR ~ Module compilation error
- file : /mnt/lustre/home/nahnsen/nahbu450/.nextflow/assets/nf-core/sarek/./workflows/sarek/../../subworkflows/local/bam_variant_calling_somatic_all/../bam_variant_calling_somatic_muse/main.nf
- cause: Variable `dbsnp` already defined in the process scope @ line 26, column 29.
       def ch_dbsnp_with_tbi = dbsnp.combine(dbsnp_tbi.map { _meta, tbi -> tbi }).map { vcf, tbi -> [[id: 'dbsnp'], vcf, tbi] }.collect()
                               ^

Module compilation error
- file : /mnt/lustre/home/nahnsen/nahbu450/.nextflow/assets/nf-core/sarek/./workflows/sarek/../../subworkflows/local/bam_variant_calling_somatic_all/../bam_variant_calling_somatic_muse/main.nf
- cause: Variable `dbsnp_tbi` already defined in the process scope @ line 26, column 43.
   bsnp_with_tbi = dbsnp.combine(dbsnp_tbi.
                                 ^

2 errors


 -- Check script '/mnt/lustre/home/nahnsen/nahbu450/.nextflow/assets/nf-core/sarek/./workflows/sarek/../../subworkflows/local/bam_variant_calling_somatic_all/main.nf' at line: 13 or see '.nextflow.log' file for more details
I already deleted the assets and pulled sarek again but this is really confusing now.
meow tableflip 1
swapping back to 25.04 leads to the same interval related error even when I use my own interval file
r
did you try without the igenomes base that must be set in mc3? to get a fresh copy of the igenomes files?