Skip to content

Picard error: Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException #24

Closed

Description

@pblpez

Description of the bug

Hello again!

After solving previous problems #19 I rerun the pipeline but after a while I'm getting a new error related with picard metrics and the process gets stuck. I hope you have a better idea of what's going on. Thanks in advance!

Command used and terminal output

nextflow run samurai --input /media/nas252/OMICS/CNA/samurai/004_0256_CRC_AA_bam_paths.csv \
    --outdir /media/nas252/OMICS/CNA/samurai/output_PPM \
    --genome GRCh38 --binsize 1000000 --analysis_type liquid_biopsy --caller ichorcna \
    --normal_panel /media/nas252/OMICS/CNA/1000000/PoN_004_0256_sWGS_no_dedup_1000000_median.rds \
    --ichorcna_readcounter_chrs "1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22" \
    --ichorcna_chrs_to_use "c(1:22)" \
    --ichorcna_chrs_to_train "c(1:22)" --ichorcna_chrs_to_normalize "c(1:22)" \
    --ichorcna_gc_wig /media/nas252/OMICS/CNA/gc_map_wigfiles/grch38/GRCh38.gc.ws_1000000.wig \
    --ichorcna_map_wig /media/nas252/OMICS/CNA/gc_map_wigfiles/grch38/GRCh38.map.ws_1000000.wig \
    --ichorcna_centromere_file /home/pperez/ichorCNA/inst/extdata/GRCh38.GCA_000001405.2_centromere_acen.txt \
    -profile docker

Command error:
  INFO O2024-10-18 09:47:332024]CollectWgsMetricsCollectProcessed   980,000,000 loci.  Elapsed time: 00:14:20s.  Time for last 10,000,000:    9s.  Last read position: 16:29,718,966
  INFOim2024-10-18 09:47:4394624CollectWgsMetrics       Processed   990,000,000 loci.  Elapsed time: 00:14:29s.  Time for last 10,000,000:    9s.  Last read position: 16:39,718,966
  INFOet2024-10-18 09:47:51roadiCollectWgsMetricso/picarProcessed 1,000,000,000 loci.  Elapsed time: 00:14:38s.  Time for last 10,000,000:    8s.  Last read position: 16:49,819,466
  INFOpt2024-10-18 09:48:02" javCollectWgsMetricsOutOfBoProcessed 1,010,000,000 loci.  Elapsed time: 00:14:48s.  Time for last 10,000,000:   10s.  Last read position: 16:59,819,466
  INFO  2024-10-18 09:48:11AbstrCollectWgsMetricsector.iProcessed 1,020,000,000 loci.  Elapsed time: 00:14:57s.  Time for last 10,000,000:    9s.  Last read position: 16:69,819,466
  INFO  2024-10-18 09:48:21WgsMeCollectWgsMetricsl.proceProcessed 1,030,000,000 loci.  Elapsed time: 00:15:08s.  Time for last 10,000,000:   10s.  Last read position: 16:79,819,466
  INFO  2024-10-18 09:48:32ColleCollectWgsMetricsrk(CollProcessed 1,040,000,000 loci.  Elapsed time: 00:15:18s.  Time for last 10,000,000:   10s.  Last read position: 16:89,869,466
  INFO  2024-10-18 09:48:43ommanCollectWgsMetricsanceMaiProcessed 1,050,000,000 loci.  Elapsed time: 00:15:30s.  Time for last 10,000,000:   11s.  Last read position: 17:9,541,121
  INFO  2024-10-18 09:48:54icardCollectWgsMetricsnceMainProcessed 1,060,000,000 loci.  Elapsed time: 00:15:41s.  Time for last 10,000,000:   11s.  Last read position: 17:19,541,121
  INFO  2024-10-18 09:49:06icardCollectWgsMetricsPicardCProcessed 1,070,000,000 loci.  Elapsed time: 00:15:52s.  Time for last 10,000,000:   11s.  Last read position: 17:29,541,121
  INFO  2024-10-18 09:49:17     CollectWgsMetrics       Processed 1,080,000,000 loci.  Elapsed time: 00:16:04s.  Time for last 10,000,000:   11s.  Last read position: 17:39,541,121
  INFOir2024-10-18 09:49:43     CollectWgsMetrics       Processed 1,090,000,000 loci.  Elapsed time: 00:16:30s.  Time for last 10,000,000:   26s.  Last read position: 17:65,522,841
  INFOe/2024-10-18 09:49:55c9d14CollectWgsMetricsf464   Processed 1,100,000,000 loci.  Elapsed time: 00:16:41s.  Time for last 10,000,000:   11s.  Last read position: 17:76,072,841
  INFO  2024-10-18 09:50:07     CollectWgsMetrics       Processed 1,110,000,000 loci.  Elapsed time: 00:16:54s.  Time for last 10,000,000:   12s.  Last read position: 18:2,825,400
  INFOou2024-10-18 09:50:18issueCollectWgsMetricshe procProcessed 1,120,000,000 loci.  Elapsed time: 00:17:04s.  Time for last 10,000,000:   10s.  Last read position: 18:12,825,400
  INFO  2024-10-18 09:50:28     CollectWgsMetrics       Processed 1,130,000,000 loci.  Elapsed time: 00:17:14s.  Time for last 10,000,000:    9s.  Last read position: 18:22,825,400
  INFOec2024-10-18 09:50:38ile fCollectWgsMetrics       Processed 1,140,000,000 loci.  Elapsed time: 00:17:25s.  Time for last 10,000,000:   10s.  Last read position: 18:32,825,400
  INFO  2024-10-18 09:50:49     CollectWgsMetrics       Processed 1,150,000,000 loci.  Elapsed time: 00:17:36s.  Time for last 10,000,000:   10s.  Last read position: 18:43,199,414
  INFO  2024-10-18 09:51:00     CollectWgsMetrics       Processed 1,160,000,000 loci.  Elapsed time: 00:17:47s.  Time for last 10,000,000:   11s.  Last read position: 18:53,289,416
  INFO  2024-10-18 09:51:10     CollectWgsMetrics       Processed 1,170,000,000 loci.  Elapsed time: 00:17:57s.  Time for last 10,000,000:   10s.  Last read position: 18:63,289,421
  INFO  2024-10-18 09:51:21     CollectWgsMetrics       Processed 1,180,000,000 loci.  Elapsed time: 00:18:07s.  Time for last 10,000,000:   10s.  Last read position: 18:73,289,421
  INFO  2024-10-18 09:51:32     CollectWgsMetrics       Processed 1,190,000,000 loci.  Elapsed time: 00:18:19s.  Time for last 10,000,000:   11s.  Last read position: 19:2,976,136
  INFO  2024-10-18 09:51:44     CollectWgsMetrics       Processed 1,200,000,000 loci.  Elapsed time: 00:18:30s.  Time for last 10,000,000:   11s.  Last read position: 19:12,976,136
  INFO  2024-10-18 09:51:55     CollectWgsMetrics       Processed 1,210,000,000 loci.  Elapsed time: 00:18:42s.  Time for last 10,000,000:   11s.  Last read position: 19:22,976,136
  INFO  2024-10-18 09:52:08     CollectWgsMetrics       Processed 1,220,000,000 loci.  Elapsed time: 00:18:54s.  Time for last 10,000,000:   12s.  Last read position: 19:32,976,136
  INFO  2024-10-18 09:52:20     CollectWgsMetrics       Processed 1,230,000,000 loci.  Elapsed time: 00:19:07s.  Time for last 10,000,000:   12s.  Last read position: 19:42,976,136
  INFO  2024-10-18 09:52:32     CollectWgsMetrics       Processed 1,240,000,000 loci.  Elapsed time: 00:19:18s.  Time for last 10,000,000:   11s.  Last read position: 19:53,233,836
  INFO  2024-10-18 09:52:44     CollectWgsMetrics       Processed 1,250,000,000 loci.  Elapsed time: 00:19:31s.  Time for last 10,000,000:   12s.  Last read position: 2:4,726,520
  INFO  2024-10-18 09:52:56     CollectWgsMetrics       Processed 1,260,000,000 loci.  Elapsed time: 00:19:42s.  Time for last 10,000,000:   11s.  Last read position: 2:14,727,522
  INFO  2024-10-18 09:53:08     CollectWgsMetrics       Processed 1,270,000,000 loci.  Elapsed time: 00:19:55s.  Time for last 10,000,000:   12s.  Last read position: 2:24,727,522
  INFO  2024-10-18 09:53:21     CollectWgsMetrics       Processed 1,280,000,000 loci.  Elapsed time: 00:20:08s.  Time for last 10,000,000:   13s.  Last read position: 2:34,777,522
  INFO  2024-10-18 09:53:34     CollectWgsMetrics       Processed 1,290,000,000 loci.  Elapsed time: 00:20:20s.  Time for last 10,000,000:   12s.  Last read position: 2:44,842,710
  INFO  2024-10-18 09:53:46     CollectWgsMetrics       Processed 1,300,000,000 loci.  Elapsed time: 00:20:33s.  Time for last 10,000,000:   12s.  Last read position: 2:54,842,710
  INFO  2024-10-18 09:53:59     CollectWgsMetrics       Processed 1,310,000,000 loci.  Elapsed time: 00:20:46s.  Time for last 10,000,000:   13s.  Last read position: 2:64,842,710
  INFO  2024-10-18 09:54:13     CollectWgsMetrics       Processed 1,320,000,000 loci.  Elapsed time: 00:21:00s.  Time for last 10,000,000:   13s.  Last read position: 2:74,842,710
  INFO  2024-10-18 09:54:26     CollectWgsMetrics       Processed 1,330,000,000 loci.  Elapsed time: 00:21:12s.  Time for last 10,000,000:   12s.  Last read position: 2:84,842,710
  INFO  2024-10-18 09:54:39     CollectWgsMetrics       Processed 1,340,000,000 loci.  Elapsed time: 00:21:26s.  Time for last 10,000,000:   13s.  Last read position: 2:94,842,710
  INFO  2024-10-18 09:54:53     CollectWgsMetrics       Processed 1,350,000,000 loci.  Elapsed time: 00:21:40s.  Time for last 10,000,000:   13s.  Last read position: 2:104,842,710
  INFO  2024-10-18 09:55:09     CollectWgsMetrics       Processed 1,360,000,000 loci.  Elapsed time: 00:21:55s.  Time for last 10,000,000:   15s.  Last read position: 2:114,842,710
  INFO  2024-10-18 09:55:23     CollectWgsMetrics       Processed 1,370,000,000 loci.  Elapsed time: 00:22:09s.  Time for last 10,000,000:   14s.  Last read position: 2:124,843,010
  [Fri Oct 18 09:55:35 GMT 2024] picard.analysis.CollectWgsMetrics done. Elapsed time: 22.37 minutes.
  Runtime.totalMemory()=775946240
  To get help, see http://broadinstitute.github.io/picard/index.html#GettingHelp
  Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: Index 133275309 out of bounds for length 133275309
        at picard.analysis.AbstractWgsMetricsCollector.isReferenceBaseN(AbstractWgsMetricsCollector.java:218)
        at picard.analysis.WgsMetricsProcessorImpl.processFile(WgsMetricsProcessorImpl.java:92)
        at picard.analysis.CollectWgsMetrics.doWork(CollectWgsMetrics.java:242)
        at picard.cmdline.CommandLineProgram.instanceMain(CommandLineProgram.java:280)
        at picard.cmdline.PicardCommandLine.instanceMain(PicardCommandLine.java:105)
        at picard.cmdline.PicardCommandLine.main(PicardCommandLine.java:115)
 
Work dir:
  /home/pperez/work/be/b7f4c9d1465da71a4b2ab38270f464
 
Tip: you can replicate the issue by changing to the process work dir and entering the command `bash .command.run`
 
-- Check '.nextflow.log' file for details

Relevant files

nextflow.log

System information

Nextflow version 23.10.1.5891
Hardware: Desktop
Executor: Local
Container engine: Docker
OS: Linux
Version of dincalcilab/samurai: Latest master commit

Activity

  1. lbeltrame commented on Oct 18, 2024

    @lbeltrame
    Contributor

    Wow, that's new! Never seen anything like this before...
    How many samples are you processing? Would it be feasible to you to start with one sample, and check with each one of them (just use a single line in the samplesheet)?

    Also what type of samples are you using? Can you also tell me the file sizes of the BAM indices that are created? The error is kind of cryptic and can have multiple causes.

  2. pblpez commented on Oct 18, 2024

    @pblpez
    Author

    I was processing 56 samples. These samples are cfDNA shallow WGS (~x0.6 mean depth). Regarding the indices created I guess you mean those in the output markduplicates directory (the only .bam.bai I see in the output dir). These indices have 2.3M.

    After running a single one (tested it with 3 different samples), the pipeline completed with errors. The error seems to be due to the input gc wig file for ichorCNA. This file is one of the files provided by the ichorCNA tool itself.

    `executor > local (5)
    [5d/b4fa0c] process > DINCALCILAB_SAMURAI:SAMURAI:SAMTOOLS_INDEX (004_0256_0149) [100%] 1 of 1 ✔
    [de/d1410b] process > DINCALCILAB_SAMURAI:SAMURAI:BAM_QC_PICARD:PICARD_COLLECTMULTIPLEMETRICS (004_0256_0149) [ 0%] 0 of 1
    [- ] process > DINCALCILAB_SAMURAI:SAMURAI:BAM_QC_PICARD:PICARD_COLLECTHSMETRICS -
    [92/01498e] process > DINCALCILAB_SAMURAI:SAMURAI:BAM_QC_PICARD:PICARD_COLLECTWGSMETRICS (004_0256_0149) [ 0%] 0 of 1
    [ae/668a2e] process > DINCALCILAB_SAMURAI:SAMURAI:LIQUID_BIOPSY:HMMCOPY_READCOUNTER_ICHORCNA (004_0256_0149) [100%] 1 of 1 ✔
    [a2/3c8938] process > DINCALCILAB_SAMURAI:SAMURAI:LIQUID_BIOPSY:RUN_ICHORCNA (004_0256_0149) [ 0%] 0 of 1
    [- ] process > DINCALCILAB_SAMURAI:SAMURAI:LIQUID_BIOPSY:AGGREGATE_ICHORCNA_TABLE -
    [- ] process > DINCALCILAB_SAMURAI:SAMURAI:LIQUID_BIOPSY:CORRECT_LOGR_ICHORCNA -
    [- ] process > DINCALCILAB_SAMURAI:SAMURAI:LIQUID_BIOPSY:CONCATENATE_BIN_PLOTS -
    [- ] process > DINCALCILAB_SAMURAI:SAMURAI:MULTIQC -
    ERROR ~ Error executing process > 'DINCALCILAB_SAMURAI:SAMURAI:LIQUID_BIOPSY:RUN_ICHORCNA (004_0256_0149)'

    Caused by:
    Process DINCALCILAB_SAMURAI:SAMURAI:LIQUID_BIOPSY:RUN_ICHORCNA (004_0256_0149) terminated with an error exit status (1)

    Command executed:

    runIchorCNA.R
    --id 004_0256_0149
    --WIG 004_0256_0149.wig
    --gcWig GRCh38.gc.ws_1000000.wig
    --mapWig GRCh38.map.ws_1000000.wig
    --maxCN 5 --chrTrain "c(1:22)" --chrs "c(1:22)" --txnE 0.9999 --txnStrength 10000 --minMapScore 0.75 --fracReadsInChrYForMale 0.001 --minSegmentBins 50 --maxFracGenomeSubclone 0.5 --maxFracCNASubclone 0.7 --includeHOMD FALSE --altFracThreshold 0.05 --genomeStyle UCSC --plotFileType pdf --plotYLim 'c(-2,4)' --normal 'c(0.5, 0.6, 0.7, 0.8, 0.9, 0.95, 0.99)' --genomeBuild GRCh38 --ploidy 'c(2, 3, 4, 5)' --estimatePloidy TRUE --estimateScPrevalence FALSE --scStates 'c()'
    --normalPanel /media/nas252/OMICS/CNA/1000000/PoN_004_0256_sWGS_no_dedup_1000000_median.rds
    --centromere /home/pperez/ichorCNA/inst/extdata/GRCh38.GCA_000001405.2_centromere_acen.txt


    --estimateNormal TRUE
    --cores "3"
    --outDir ./

    cat <<-END_VERSIONS > versions.yml
    "DINCALCILAB_SAMURAI:SAMURAI:LIQUID_BIOPSY:RUN_ICHORCNA":
    ichorcna: 0.3.2
    END_VERSIONS

    Command exit status:
    1

    Command output:
    [1] 0.05

    $chrNormalize
    [1] "c(1:22)"

    $chrTrain
    [1] "c(1:22)"

    $chrs
    [1] "c(1:22)"

    $genomeBuild
    [1] "GRCh38"

    $genomeStyle
    [1] "UCSC"

    $normalizeMaleX
    [1] TRUE

    $fracReadsInChrYForMale
    [1] 0.001

    $includeHOMD
    [1] FALSE

    $txnE
    [1] 0.9999

    $txnStrength
    [1] 10000

    $multSampleTxnStrength
    [1] 1

    $plotFileType
    [1] "pdf"

    $plotYLim
    [1] "c(-2,4)"

    $outDir
    [1] "./"

    $cores
    [1] 3

    $help
    [1] FALSE

    Command error:
    executor > local (5)
    [5d/b4fa0c] process > DINCALCILAB_SAMURAI:SAMURAI:SAMTOOLS_INDEX (004_0256_0149) [100%] 1 of 1 ✔
    [de/d1410b] process > DINCALCILAB_SAMURAI:SAMURAI:BAM_QC_PICARD:PICARD_COLLECTMULTIPLEMETRICS (004_0256_0149) [ 0%] 0 of 1
    [- ] process > DINCALCILAB_SAMURAI:SAMURAI:BAM_QC_PICARD:PICARD_COLLECTHSMETRICS -
    [92/01498e] process > DINCALCILAB_SAMURAI:SAMURAI:BAM_QC_PICARD:PICARD_COLLECTWGSMETRICS (004_0256_0149) [ 0%] 0 of 1
    [ae/668a2e] process > DINCALCILAB_SAMURAI:SAMURAI:LIQUID_BIOPSY:HMMCOPY_READCOUNTER_ICHORCNA (004_0256_0149) [100%] 1 of 1 ✔
    [a2/3c8938] process > DINCALCILAB_SAMURAI:SAMURAI:LIQUID_BIOPSY:RUN_ICHORCNA (004_0256_0149) [100%] 1 of 1, failed: 1 ✘
    [- ] process > DINCALCILAB_SAMURAI:SAMURAI:LIQUID_BIOPSY:AGGREGATE_ICHORCNA_TABLE -
    [- ] process > DINCALCILAB_SAMURAI:SAMURAI:LIQUID_BIOPSY:CORRECT_LOGR_ICHORCNA -
    [- ] process > DINCALCILAB_SAMURAI:SAMURAI:LIQUID_BIOPSY:CONCATENATE_BIN_PLOTS -
    [- ] process > DINCALCILAB_SAMURAI:SAMURAI:MULTIQC -
    Execution cancelled -- Finishing pending tasks before exit
    ERROR ~ Error executing process > 'DINCALCILAB_SAMURAI:SAMURAI:LIQUID_BIOPSY:RUN_ICHORCNA (004_0256_0149)'

    Caused by:
    Process DINCALCILAB_SAMURAI:SAMURAI:LIQUID_BIOPSY:RUN_ICHORCNA (004_0256_0149) terminated with an error exit status (1)

    Command executed:

    runIchorCNA.R
    --id 004_0256_0149
    --WIG 004_0256_0149.wig
    --gcWig GRCh38.gc.ws_1000000.wig
    --mapWig GRCh38.map.ws_1000000.wig
    --maxCN 5 --chrTrain "c(1:22)" --chrs "c(1:22)" --txnE 0.9999 --txnStrength 10000 --minMapScore 0.75 --fracReadsInChrYForMale 0.001 --minSegmentBins 50 --maxFracGenomeSubclone 0.5 --maxFracCNASubclone 0.7 --includeHOMD FALSE --altFracThreshold 0.05 --genomeStyle UCSC --plotFileType pdf --plotYLim 'c(-2,4)' --normal 'c(0.5, 0.6, 0.7, 0.8, 0.9, 0.95, 0.99)' --genomeBuild GRCh38 --ploidy 'c(2, 3, 4, 5)' --estimatePloidy TRUE --estimateScPrevalence FALSE --scStates 'c()'
    --normalPanel /media/nas252/OMICS/CNA/1000000/PoN_004_0256_sWGS_no_dedup_1000000_median.rds
    --centromere /home/pperez/ichorCNA/inst/extdata/GRCh38.GCA_000001405.2_centromere_acen.txt


    --estimateNormal TRUE
    --cores "3"
    --outDir ./

    cat <<-END_VERSIONS > versions.yml
    "DINCALCILAB_SAMURAI:SAMURAI:LIQUID_BIOPSY:RUN_ICHORCNA":
    ichorcna: 0.3.2
    END_VERSIONS

    Command exit status:
    1

    Command output:
    [1] 0.05

    $chrNormalize
    [1] "c(1:22)"

    $chrTrain
    [1] "c(1:22)"

    $chrs
    [1] "c(1:22)"

    $genomeBuild
    [1] "GRCh38"

    $genomeStyle
    [1] "UCSC"

    $normalizeMaleX
    [1] TRUE

    $fracReadsInChrYForMale
    [1] 0.001

    $includeHOMD
    [1] FALSE

    $txnE
    [1] 0.9999

    $txnStrength
    [1] 10000

    $multSampleTxnStrength
    [1] 1

    $plotFileType
    [1] "pdf"

    $plotYLim
    [1] "c(-2,4)"

    $outDir
    [1] "./"

    $cores
    [1] 3

    $help
    [1] FALSE

    Command error:
    Parsing: fixedStep chrom=chr6 start=1 step=1000000 span=1000000
    Parsing: fixedStep chrom=chr7 start=1 step=1000000 span=1000000
    Parsing: fixedStep chrom=chr8 start=1 step=1000000 span=1000000
    Parsing: fixedStep chrom=chr9 start=1 step=1000000 span=1000000
    Parsing: fixedStep chrom=chr10 start=1 step=1000000 span=1000000
    Parsing: fixedStep chrom=chr11 start=1 step=1000000 span=1000000
    Parsing: fixedStep chrom=chr12 start=1 step=1000000 span=1000000
    Parsing: fixedStep chrom=chr13 start=1 step=1000000 span=1000000
    Parsing: fixedStep chrom=chr14 start=1 step=1000000 span=1000000
    Parsing: fixedStep chrom=chr15 start=1 step=1000000 span=1000000
    Parsing: fixedStep chrom=chr16 start=1 step=1000000 span=1000000
    Parsing: fixedStep chrom=chr17 start=1 step=1000000 span=1000000
    Parsing: fixedStep chrom=chr18 start=1 step=1000000 span=1000000
    Parsing: fixedStep chrom=chr19 start=1 step=1000000 span=1000000
    Parsing: fixedStep chrom=chr20 start=1 step=1000000 span=1000000
    Parsing: fixedStep chrom=chr21 start=1 step=1000000 span=1000000
    Parsing: fixedStep chrom=chr22 start=1 step=1000000 span=1000000
    Parsing: fixedStep chrom=chrX start=1 step=1000000 span=1000000
    Parsing: fixedStep chrom=chrY start=1 step=1000000 span=1000000
    Sorting by decreasing chromosome size
    wigToGRanges: WIG file '' not found.
    No replication timing wig file input, excluding from correction
    Parsing: fixedStep chrom=1 start=1 step=248956422 span=248956422
    Parsing: fixedStep chrom=2 start=1 step=242193529 span=242193529
    Parsing: fixedStep chrom=3 start=1 step=198295559 span=198295559
    Parsing: fixedStep chrom=4 start=1 step=190214555 span=190214555
    Parsing: fixedStep chrom=5 start=1 step=181538259 span=181538259
    Parsing: fixedStep chrom=6 start=1 step=170805979 span=170805979
    Parsing: fixedStep chrom=7 start=1 step=159345973 span=159345973
    Parsing: fixedStep chrom=8 start=1 step=145138636 span=145138636
    Parsing: fixedStep chrom=9 start=1 step=138394717 span=138394717
    Parsing: fixedStep chrom=10 start=1 step=133797422 span=133797422
    Parsing: fixedStep chrom=11 start=1 step=135086622 span=135086622
    Parsing: fixedStep chrom=12 start=1 step=133275309 span=133275309
    Parsing: fixedStep chrom=13 start=1 step=114364328 span=114364328
    Parsing: fixedStep chrom=14 start=1 step=107043718 span=107043718
    Parsing: fixedStep chrom=15 start=1 step=101991189 span=101991189
    Parsing: fixedStep chrom=16 start=1 step=90338345 span=90338345
    Parsing: fixedStep chrom=17 start=1 step=83257441 span=83257441
    Parsing: fixedStep chrom=18 start=1 step=80373285 span=80373285
    Parsing: fixedStep chrom=19 start=1 step=58617616 span=58617616
    Parsing: fixedStep chrom=20 start=1 step=64444167 span=64444167
    Parsing: fixedStep chrom=21 start=1 step=46709983 span=46709983
    Parsing: fixedStep chrom=22 start=1 step=50818468 span=50818468
    Sorting by decreasing chromosome size
    Correcting Tumour
    Error in value[3L] :
    loadReadCountsFromWig: Number of bins in gc different than input wig.
    Calls: loadReadCountsFromWig ... tryCatch -> tryCatchList -> tryCatchOne ->
    Execution halted

    Work dir:
    /home/pperez/work/a2/3c8938914ff421705e78bad231de3e

    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`

    nextflow(1).log

    I have to check every sample, but all of them were processed the same way so I would bet the previous error arises when inputting all together.

  3. lbeltrame commented on Oct 18, 2024

    @lbeltrame
    Contributor

    My (uninformed) guess is that one sample specific is problematic, or is it a problem of sample size. You might want to try increasingly larger numbers of samples until it breaks.

    Regarding your ichorCNA error, instead you have a different number of chromosomes in your BAMs compared to the GC file in ichorCNA (I hit this problem two days ago, so I remember ;), so when the genome is binned by readCounter, the numbers of bins don't match with the GC file. Make sure you have the same contigs in both your samples and in the GC files (common case: in the GC file there are also the unmapped, the alternative regions, etc... but they are absent in the BAM).

  4. pblpez commented on Oct 18, 2024

    @pblpez
    Author

    I just realized that the span in the sample.wig is not what I expected. I'm having a single bin per chromosome like
    fixedStep chrom=1 start=1 step=248956422 span=248956422

    while the gc.wig has the correct binning like
    fixedStep chrom=1 start=1 step=1000000 span=1000000

    I've tested ichorCNA before with these samples generating 1M bp binning and although the chromosomes didn't exactly match between both wig (sample and gc/map) it worked properly just by limiting the analysis to 1:22.

    Here in the pipeline I set --binsize 1000000 (default was 500). I just made a couple of tests and I see that the input binsize its specified in kb? It works if I set --binsize 1000

    Now I get another error, although the outputs I was looking for are generated correctly, but just to let you know:

    executor > local (7)
    [e9/ee209c] process > DINCALCILAB_SAMURAI:SAMURAI:SAMTOOLS_INDEX (004_0256_0155) [100%] 1 of 1 ✔
    [32/e11c2f] process > DINCALCILAB_SAMURAI:SAMURAI:BAM_QC_PICARD:PICARD_COLLECTMULTIPLEMETRICS (004_0256_0155) [ 0%] 0 of 1
    [- ] process > DINCALCILAB_SAMURAI:SAMURAI:BAM_QC_PICARD:PICARD_COLLECTHSMETRICS -
    [23/45790e] process > DINCALCILAB_SAMURAI:SAMURAI:BAM_QC_PICARD:PICARD_COLLECTWGSMETRICS (004_0256_0155) [ 0%] 0 of 1
    [9e/c05c76] process > DINCALCILAB_SAMURAI:SAMURAI:LIQUID_BIOPSY:HMMCOPY_READCOUNTER_ICHORCNA (004_0256_0155) [100%] 1 of 1 ✔
    executor > local (7)
    [e9/ee209c] process > DINCALCILAB_SAMURAI:SAMURAI:SAMTOOLS_INDEX (004_0256_0155) [100%] 1 of 1 ✔
    [32/e11c2f] process > DINCALCILAB_SAMURAI:SAMURAI:BAM_QC_PICARD:PICARD_COLLECTMULTIPLEMETRICS (004_0256_0155) [ 0%] 0 of 1
    [- ] process > DINCALCILAB_SAMURAI:SAMURAI:BAM_QC_PICARD:PICARD_COLLECTHSMETRICS -
    [23/45790e] process > DINCALCILAB_SAMURAI:SAMURAI:BAM_QC_PICARD:PICARD_COLLECTWGSMETRICS (004_0256_0155) [ 0%] 0 of 1
    [9e/c05c76] process > DINCALCILAB_SAMURAI:SAMURAI:LIQUID_BIOPSY:HMMCOPY_READCOUNTER_ICHORCNA (004_0256_0155) [100%] 1 of 1 ✔
    [fc/04ce25] process > DINCALCILAB_SAMURAI:SAMURAI:LIQUID_BIOPSY:RUN_ICHORCNA (004_0256_0155) [100%] 1 of 1 ✔
    executor > local (7)
    [e9/ee209c] process > DINCALCILAB_SAMURAI:SAMURAI:SAMTOOLS_INDEX (004_0256_0155) [100%] 1 of 1 ✔
    [32/e11c2f] process > DINCALCILAB_SAMURAI:SAMURAI:BAM_QC_PICARD:PICARD_COLLECTMULTIPLEMETRICS (004_0256_0155) [ 0%] 0 of 1
    [- ] process > DINCALCILAB_SAMURAI:SAMURAI:BAM_QC_PICARD:PICARD_COLLECTHSMETRICS -
    [23/45790e] process > DINCALCILAB_SAMURAI:SAMURAI:BAM_QC_PICARD:PICARD_COLLECTWGSMETRICS (004_0256_0155) [ 0%] 0 of 1
    [9e/c05c76] process > DINCALCILAB_SAMURAI:SAMURAI:LIQUID_BIOPSY:HMMCOPY_READCOUNTER_ICHORCNA (004_0256_0155) [100%] 1 of 1 ✔
    [fc/04ce25] process > DINCALCILAB_SAMURAI:SAMURAI:LIQUID_BIOPSY:RUN_ICHORCNA (004_0256_0155) [100%] 1 of 1 ✔
    executor > local (7)
    [e9/ee209c] process > DINCALCILAB_SAMURAI:SAMURAI:SAMTOOLS_INDEX (004_0256_0155) [100%] 1 of 1 ✔
    [32/e11c2f] process > DINCALCILAB_SAMURAI:SAMURAI:BAM_QC_PICARD:PICARD_COLLECTMULTIPLEMETRICS (004_0256_0155) [ 0%] 0 of 1
    [- ] process > DINCALCILAB_SAMURAI:SAMURAI:BAM_QC_PICARD:PICARD_COLLECTHSMETRICS -
    [23/45790e] process > DINCALCILAB_SAMURAI:SAMURAI:BAM_QC_PICARD:PICARD_COLLECTWGSMETRICS (004_0256_0155) [100%] 1 of 1, failed: 1 ✘
    [9e/c05c76] process > DINCALCILAB_SAMURAI:SAMURAI:LIQUID_BIOPSY:HMMCOPY_READCOUNTER_ICHORCNA (004_0256_0155) [100%] 1 of 1 ✔
    [fc/04ce25] process > DINCALCILAB_SAMURAI:SAMURAI:LIQUID_BIOPSY:RUN_ICHORCNA (004_0256_0155) [100%] 1 of 1 ✔
    [b0/42894e] process > DINCALCILAB_SAMURAI:SAMURAI:LIQUID_BIOPSY:AGGREGATE_ICHORCNA_TABLE (Assemble IchorCNA outputs) [100%] 1 of 1 ✔
    [- ] process > DINCALCILAB_SAMURAI:SAMURAI:LIQUID_BIOPSY:CORRECT_LOGR_ICHORCNA -
    [7b/90d0a6] process > DINCALCILAB_SAMURAI:SAMURAI:LIQUID_BIOPSY:CONCATENATE_BIN_PLOTS (Concatenate_PDF) [100%] 1 of 1, failed: 1 ✘
    [- ] process > DINCALCILAB_SAMURAI:SAMURAI:MULTIQC -

    ERROR ~ Error executing process > 'DINCALCILAB_SAMURAI:SAMURAI:LIQUID_BIOPSY:CONCATENATE_BIN_PLOTS (Concatenate_PDF)'

    Caused by:
    Process DINCALCILAB_SAMURAI:SAMURAI:LIQUID_BIOPSY:CONCATENATE_BIN_PLOTS (Concatenate_PDF) terminated with an error exit status (2)

    Command executed:

    qpdf --empty --pages 004_0256_0155_genomeWide.pdf -- genome_plot.pdf

    cat <<-END_VERSIONS > versions.yml
    "DINCALCILAB_SAMURAI:SAMURAI:LIQUID_BIOPSY:CONCATENATE_BIN_PLOTS":
    qpdf: $(qpdf --version | sed -n '1p' | cut -d' ' -f3)
    END_VERSIONS

    Command exit status:
    2

    Command output:
    (empty)

    Command error:
    Unable to find image 't0shy/qpdf-docker:11.3.0' locally
    11.3.0: Pulling from t0shy/qpdf-docker
    677076032cca: Pulling fs layer
    45c48f78416f: Pulling fs layer
    3a9d29db235a: Pulling fs layer
    3a9d29db235a: Verifying Checksum
    3a9d29db235a: Download complete
    45c48f78416f: Verifying Checksum
    45c48f78416f: Download complete
    677076032cca: Verifying Checksum
    677076032cca: Download complete
    677076032cca: Pull complete
    45c48f78416f: Pull complete
    3a9d29db235a: Pull complete
    Digest: sha256:744f00189f4b0f3f1273073212102b32e0505fea528c9516e4252b9345e482d3
    Status: Downloaded newer image for t0shy/qpdf-docker:11.3.0

    qpdf: unrecognized argument -c

    For help:
    qpdf --help=usage usage information
    qpdf --help=topic help on a topic
    qpdf --help=--option help on an option
    qpdf --help general help and a topic list

    Work dir:
    /home/pperez/work/7b/90d0a6e2445834bbb3062e0d95f01b

    Tip: view the complete command output by changing to the process work dir and entering the command cat .command.out

    -- Check '.nextflow.log' file for details

    .nextflow.log

    : 0; error: -; workDir: /home/pperez/work/fc/04ce25f75aa2bfade26253cc7e8c26]
    Oct-18 16:04:11.582 [Actor Thread 178] DEBUG nextflow.sort.BigSort - Sort completed -- entries: 1; slices: 1; internal sort time: 0.0 s; external sort time: 0.001 s; total time: 0.001 s
    Oct-18 16:04:11.588 [Task submitter] DEBUG n.executor.local.LocalTaskHandler - Launch cmd line: /bin/bash -ue .command.run
    Oct-18 16:04:11.589 [Task submitter] INFO nextflow.Session - [b0/42894e] Submitted process > DINCALCILAB_SAMURAI:SAMURAI:LIQUID_BIOPSY:AGGREGATE_ICHORCNA_TABLE (Assemble IchorCNA outputs)
    Oct-18 16:04:11.593 [Task submitter] DEBUG n.executor.local.LocalTaskHandler - Launch cmd line: /bin/bash -ue .command.run
    Oct-18 16:04:11.593 [Task submitter] INFO nextflow.Session - [7b/90d0a6] Submitted process > DINCALCILAB_SAMURAI:SAMURAI:LIQUID_BIOPSY:CONCATENATE_BIN_PLOTS (Concatenate_PDF)
    Oct-18 16:04:11.614 [Actor Thread 178] DEBUG nextflow.file.FileCollector - Saved collect-files list to: /home/pperez/work/collect-file/9b921b7c5e304fac035ad83b07159c3e
    Oct-18 16:04:11.616 [Actor Thread 178] DEBUG nextflow.file.FileCollector - Deleting file collector temp dir: /tmp/nxf-326867740876979458
    Oct-18 16:04:16.869 [Task monitor] DEBUG n.processor.TaskPollingMonitor - Task completed > TaskHandler[id: 7; name: DINCALCILAB_SAMURAI:SAMURAI:LIQUID_BIOPSY:CONCATENATE_BIN_PLOTS (Concatenate_PDF); status: COMPLETED; exit: 2; error: -; workDir: /home/pperez/work/7b/90d0a6e2445834bbb3062e0d95f01b]
    Oct-18 16:04:16.873 [Task monitor] DEBUG nextflow.processor.TaskProcessor - Handling unexpected condition for
    task: name=DINCALCILAB_SAMURAI:SAMURAI:LIQUID_BIOPSY:CONCATENATE_BIN_PLOTS (Concatenate_PDF); work-dir=/home/pperez/work/7b/90d0a6e2445834bbb3062e0d95f01b
    error [nextflow.exception.ProcessFailedException]: Process DINCALCILAB_SAMURAI:SAMURAI:LIQUID_BIOPSY:CONCATENATE_BIN_PLOTS (Concatenate_PDF) terminated with an error exit status (2)
    Oct-18 16:04:16.886 [Task monitor] ERROR nextflow.processor.TaskProcessor - Error executing process > 'DINCALCILAB_SAMURAI:SAMURAI:LIQUID_BIOPSY:CONCATENATE_BIN_PLOTS (Concatenate_PDF)'

    Caused by:
    Process DINCALCILAB_SAMURAI:SAMURAI:LIQUID_BIOPSY:CONCATENATE_BIN_PLOTS (Concatenate_PDF) terminated with an error exit status (2)

    Command executed:

    qpdf --empty --pages 004_0256_0155_genomeWide.pdf -- genome_plot.pdf

    cat <<-END_VERSIONS > versions.yml
    "DINCALCILAB_SAMURAI:SAMURAI:LIQUID_BIOPSY:CONCATENATE_BIN_PLOTS":
    qpdf: $(qpdf --version | sed -n '1p' | cut -d' ' -f3)
    END_VERSIONS

    Command exit status:
    2

    Command output:
    (empty)

    Command error:
    Unable to find image 't0shy/qpdf-docker:11.3.0' locally
    11.3.0: Pulling from t0shy/qpdf-docker
    677076032cca: Pulling fs layer
    45c48f78416f: Pulling fs layer
    3a9d29db235a: Pulling fs layer
    3a9d29db235a: Verifying Checksum
    3a9d29db235a: Download complete
    45c48f78416f: Verifying Checksum
    45c48f78416f: Download complete
    677076032cca: Verifying Checksum
    677076032cca: Download complete
    677076032cca: Pull complete
    45c48f78416f: Pull complete
    3a9d29db235a: Pull complete
    Digest: sha256:744f00189f4b0f3f1273073212102b32e0505fea528c9516e4252b9345e482d3
    Status: Downloaded newer image for t0shy/qpdf-docker:11.3.0

    qpdf: unrecognized argument -c

    For help:
    qpdf --help=usage usage information
    qpdf --help=topic help on a topic
    qpdf --help=--option help on an option
    qpdf --help general help and a topic list

    Work dir:
    /home/pperez/work/7b/90d0a6e2445834bbb3062e0d95f01b

    Tip: view the complete command output by changing to the process work dir and entering the command cat .command.out
    Oct-18 16:04:16.889 [Task monitor] INFO nextflow.Session - Execution cancelled -- Finishing pending tasks before exit
    Oct-18 16:04:16.895 [main] DEBUG nextflow.Session - Session await > all processes finished
    Oct-18 16:04:16.904 [Actor Thread 237] DEBUG nextflow.sort.BigSort - Sort completed -- entries: 3; slices: 1; internal sort time: 0.003 s; external sort time: 0.001 s; total time: 0.004 s
    Oct-18 16:04:16.911 [Actor Thread 237] DEBUG nextflow.file.FileCollector - Saved collect-files list to: /home/pperez/work/collect-file/e98a83b7004194b0d89e6b7ffb3d7b93
    Oct-18 16:04:16.912 [Actor Thread 237] DEBUG nextflow.file.FileCollector - Deleting file collector temp dir: /tmp/nxf-6789232397934683170
    Oct-18 16:04:31.839 [Task monitor] DEBUG n.processor.TaskPollingMonitor - Task completed > TaskHandler[id: 6; name: DINCALCILAB_SAMURAI:SAMURAI:LIQUID_BIOPSY:AGGREGATE_ICHORCNA_TABLE (Assemble IchorCNA outputs); status: COMPLETED; exit: 0; error: -; workDir: /home/pperez/work/b0/42894e66f8c7633273b955866aeabf]
    Oct-18 16:05:29.799 [Task monitor] DEBUG n.processor.TaskPollingMonitor - Task completed > TaskHandler[id: 4; name: DINCALCILAB_SAMURAI:SAMURAI:BAM_QC_PICARD:PICARD_COLLECTWGSMETRICS (004_0256_0155); status: COMPLETED; exit: 1; error: -; workDir: /home/pperez/work/23/45790ea4eb00910c2bbd70628cf65b]
    Oct-18 16:05:29.799 [Task monitor] DEBUG nextflow.processor.TaskProcessor - Handling unexpected condition for
    task: name=DINCALCILAB_SAMURAI:SAMURAI:BAM_QC_PICARD:PICARD_COLLECTWGSMETRICS (004_0256_0155); work-dir=/home/pperez/work/23/45790ea4eb00910c2bbd70628cf65b
    error [nextflow.exception.ProcessFailedException]: Process DINCALCILAB_SAMURAI:SAMURAI:BAM_QC_PICARD:PICARD_COLLECTWGSMETRICS (004_0256_0155) terminated with an error exit status (1)
    Oct-18 16:07:37.844 [Task monitor] DEBUG n.processor.TaskPollingMonitor - !! executor local > tasks to be completed: 1 -- submitted tasks are shown below
    ~> TaskHandler[id: 3; name: DINCALCILAB_SAMURAI:SAMURAI:BAM_QC_PICARD:PICARD_COLLECTMULTIPLEMETRICS (004_0256_0155); status: RUNNING; exit: -; error: -; workDir: /home/pperez/work/32/e11c2fae076d0205791a11abcbf616]
    Oct-18 16:07:54.305 [Task monitor] DEBUG n.processor.TaskPollingMonitor - Task completed > TaskHandler[id: 3; name: DINCALCILAB_SAMURAI:SAMURAI:BAM_QC_PICARD:PICARD_COLLECTMULTIPLEMETRICS (004_0256_0155); status: COMPLETED; exit: 0; error: -; workDir: /home/pperez/work/32/e11c2fae076d0205791a11abcbf616]
    Oct-18 16:07:54.325 [Task monitor] DEBUG n.processor.TaskPollingMonitor - <<< barrier arrives (monitor: local) - terminating tasks monitor poll loop
    Oct-18 16:07:54.325 [main] DEBUG nextflow.Session - Session await > all barriers passed
    Oct-18 16:07:54.402 [main] DEBUG nextflow.util.ThreadPoolManager - Thread pool 'PublishDir' shutdown completed (hard=false)
    Oct-18 16:07:54.404 [main] INFO nextflow.Nextflow - -[dincalcilab/samurai] Pipeline completed with errors-
    Oct-18 16:07:54.409 [main] DEBUG n.trace.WorkflowStatsObserver - Workflow completed > WorkflowStats[succeededCount=5; failedCount=2; ignoredCount=0; cachedCount=0; pendingCount=0; submittedCount=0; runningCount=0; retriesCount=0; abortedCount=0; succeedDuration=28m 25s; failedDuration=6m 34s; cachedDuration=0ms;loadCpus=0; loadMemory=0; peakRunning=4; peakCpus=6; peakMemory=26 GB; ]
    Oct-18 16:07:54.409 [main] DEBUG nextflow.trace.TraceFileObserver - Workflow completed -- saving trace file
    Oct-18 16:07:54.411 [main] DEBUG nextflow.trace.ReportObserver - Workflow completed -- rendering execution report
    Oct-18 16:07:55.244 [main] DEBUG nextflow.trace.TimelineObserver - Workflow completed -- rendering execution timeline
    Oct-18 16:07:55.453 [main] DEBUG nextflow.cache.CacheDB - Closing CacheDB done
    Oct-18 16:07:55.453 [main] INFO org.pf4j.AbstractPluginManager - Stop plugin 'nf-amazon@2.1.4'
    Oct-18 16:07:55.453 [main] DEBUG nextflow.plugin.BasePlugin - Plugin stopped nf-amazon
    Oct-18 16:07:55.453 [main] INFO org.pf4j.AbstractPluginManager - Stop plugin 'nf-validation@1.1.3'
    Oct-18 16:07:55.453 [main] DEBUG nextflow.plugin.BasePlugin - Plugin stopped nf-validation
    Oct-18 16:07:55.484 [main] DEBUG nextflow.util.ThreadPoolManager - Thread pool 'FileTransfer' shutdown completed (hard=false)
    Oct-18 16:07:55.487 [main] DEBUG nextflow.util.ThreadPoolManager - Thread pool 'S3TransferManager' shutdown completed (hard=false)
    Oct-18 16:07:55.487 [main] DEBUG nextflow.script.ScriptRunner - > Execution complete -- Goodbye

    And I wanted to ask another question. Does any other caller give Tumor Fraction information apart from ichorCNA?

    Thank you again for your help!

  5. lbeltrame commented on Oct 18, 2024

    @lbeltrame
    Contributor

    It looks like there was a change in qpdf options. I'll give it a look on Monday.

    And I wanted to ask another question. Does any other caller give Tumor Fraction information apart from ichorCNA?

    You can use WisecondorX (--caller wisecondorx) as a proxy of TF (it's not the same thing, though) with its Copy Number Profile Abnormality (or CPA): a few papers that compared the two showed a good (0.9) degree of correlation. Raman et al., 2021 has the details for how CPA works (NSCLC, using ctDNA).

    However WisecondorX requires a signficantly large panel of normals (because under the hood it relies on Z-scores to do its magic) to work well. In our tests at least > 40, and the WisecondorX people recommend close to 100.

  6. lbeltrame commented on Oct 18, 2024

    @lbeltrame
    Contributor

    @SaraPotente If you have time, can you test with a fresh (without any local Docker / singularity images) checkout and see if the error reported by @pblpez occurs?

  7. pblpez commented on Oct 21, 2024

    @pblpez
    Author

    I was trying to test --caller wisecondorx with a minimal call:

    nextflow run samurai --input /media/nas252/OMICS/CNA/samurai/004_0256_CRC_AA_bam_paths.csv --outdir /media/nas252/OMICS/CNA/samurai/output --genome GRCh38 --binsize 1000 --analysis_type liquid_biopsy --caller wisecondorx --wisecondorx_yfrac 0 -profile docker

    But I got this error:

    [- ] process > DINCALCILAB_SAMURAI:SAMURAI:SAMTOOLS_INDEX -
    [- ] process > DINCALCILAB_SAMURAI:SAMURAI:BAM_QC_PICARD:PICARD_COLLECTMULTIPLEMETRICS -
    [- ] process > DINCALCILAB_SAMURAI:SAMURAI:BAM_QC_PICARD:PICARD_COLLECTHSMETRICS -
    [- ] process > DINCALCILAB_SAMURAI:SAMURAI:BAM_QC_PICARD:PICARD_COLLECTWGSMETRICS -
    ERROR ~ Argument of file function cannot be null

    I see that there are not many parameters to tune for WisecondorX, and I don't know what does it mean by "file function". I repeated it but this time adding the parameters used previously for the ichorCNA call (look at the .nextflow.log). I got an error related to the PoN provided. Does this caller use the parameters from ichorCNA even if ichorCNA is set as the caller? I want to reproduce the ichorCNA analysis but using WisecondorX, focusing only on autosomic chromosomes. Below the error I got this time:

    ERROR ~ Error executing process > 'DINCALCILAB_SAMURAI:SAMURAI:LIQUID_BIOPSY:WISECONDORX_PREDICT (004_0256_0155)'

    Caused by:
    Process DINCALCILAB_SAMURAI:SAMURAI:LIQUID_BIOPSY:WISECONDORX_PREDICT (004_0256_0155) terminated with an error exit status (1)

    Command executed:

    WisecondorX predict
    004_0256_0155.npz
    PoN_004_0256_sWGS_no_dedup_1000000_median.rds
    004_0256_0155
    --zscore 5


    --plot
    --bed
    --add-plot-title

    cp 004_0256_0155.plots/genome_wide.png 004_0256_0155_genome_plot.png

    cat <<-END_VERSIONS > versions.yml
    "DINCALCILAB_SAMURAI:SAMURAI:LIQUID_BIOPSY:WISECONDORX_PREDICT":
    wisecondorX: 1.2.4
    END_VERSIONS

    Command exit status:
    1

    Command output:
    (empty)

    Command error:
    [INFO - 2024-10-21 09:29:17]: Starting CNA prediction
    [INFO - 2024-10-21 09:29:17]: Importing data ...
    Traceback (most recent call last):
    File "/usr/local/lib/python3.10/site-packages/numpy/lib/npyio.py", line 421, in load
    return pickle.load(fid, **pickle_kwargs)
    _pickle.UnpicklingError: invalid load key, '\x1f'.

    The above exception was the direct cause of the following exception:

    Traceback (most recent call last):
    File "/usr/local/bin/WisecondorX", line 10, in
    sys.exit(main())
    File "/usr/local/lib/python3.10/site-packages/wisecondorX/main.py", line 410, in main
    args.func(args)
    File "/usr/local/lib/python3.10/site-packages/wisecondorX/main.py", line 146, in tool_test
    ref_file = np.load(args.reference, encoding='latin1', allow_pickle=True)
    File "/usr/local/lib/python3.10/site-packages/numpy/lib/npyio.py", line 423, in load
    raise pickle.UnpicklingError(
    _pickle.UnpicklingError: Failed to interpret file 'PoN_004_0256_sWGS_no_dedup_1000000_median.rds' as a pickle

    Work dir:
    /home/pperez/work/63/2e761b61166ead8ac7661d0ce190b5

    Tip: you can replicate the issue by changing to the process work dir and entering the command bash .command.run

    -- Check '.nextflow.log' file for details

    nextflow.log

    Thank you!

  8. lbeltrame commented on Oct 21, 2024

    @lbeltrame
    Contributor

    No, WisecondorX requires its own PoN, the options are not compatible (you need to use the ones that start with wisecondor), the whole format is fundamentally different.

    Argument cannot be null means that the code expects a file, but nothing is provided, so it errors out. It's a bug (it should explicitly tell you what's wrong), but in this case it's because you don't have a PoN set.

    Would you be able to file a separate issue mentioning that WisecondorX should require a PoN? I might be able to do something next week as I should have some time for hacking.

  9. SaraPotente commented on Jul 2, 2026

    @SaraPotente
    Collaborator

    A possible upstream issue, there is not much we can do at the moment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions