Skip to content

cnvkit.py batch with custom pon early exit 0 #916

@oronoc1210

Description

@oronoc1210

Hello, I'm having an issue with CNVkit where my batch command with a custom .cnn reference is exiting (with an exit code 0) in the middle of the run, not generating a .cns file.

The runs I performed were as follows:

  • generated an antitarget file from my .bed file by running cnvkit.py access into antitarget
  • obtained the target and antitarget coverage for each of my normal samples using cnvkit.py coverage
  • generated the final my_pon.cnn reference file by running cnvkit.py reference with all of my target and antitarget coverage.cnn files across all of my normal samples
  • ran cnvkit.py batch on each of my tumor samples with --method hybrid and --reference my_pon.cnn

For each of the runs across all of my tumor samples, the following files/directories were created:

  • .cache/
  • .config/
  • tumor.antitargetcoverage.cnn
  • tumor.targetcoverage.cnn
  • my_pon.antitarget-tmp.bed
  • my_pon.target-tmp.bed

But not the usual .cns and .cnr files.

This was run with CNVkit v0.9.10, and the stdout was as follows;

CNVkit 0.9.10
Wrote ./TCGA_PoN.cnvkit_pon.target-tmp.bed with 244828 regions
Wrote ./TCGA_PoN.cnvkit_pon.antitarget-tmp.bed with 37695 regions
Running 1 samples in 64 processes (that's 64 processes per bam)
Running the CNVkit pipeline on /keep/70470c6dea515b8e92ee6db153d33a99+7342/TCGA-D5-6538_tumor.dedup.bam ...
Processing reads in TCGA-D5-6538_tumor.dedup.bam
Time: 47.812 seconds (1476023 reads/sec, 5121 bins/sec)
Summary: #bins=244828, #reads=70571815, mean=288.2506, min=0.0, max=12176.08
Percent reads in regions: 56.323 (of 125297503 mapped)
Wrote ./TCGA-D5-6538_tumor.dedup.targetcoverage.cnn with 244828 regions
Processing reads in TCGA-D5-6538_tumor.dedup.bam
Time: 26.452 seconds (916319 reads/sec, 1425 bins/sec)
Summary: #bins=37695, #reads=24238201, mean=643.0084, min=0.0, max=168429.89
Percent reads in regions: 19.345 (of 125297503 mapped)
Wrote ./TCGA-D5-6538_tumor.dedup.antitargetcoverage.cnn with 37695 regions
Processing target: TCGA-D5-6538_tumor.dedup

The whole process took 2 minutes, shortly after the last line the process exits with a return code of 0, which tricked my CWL pipeline into thinking the process was successful, but then failed the overall workflow as it couldn't find the expected but nonexistent .cns file.

Any help with this would be greatly appreciated!

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions