-
Notifications
You must be signed in to change notification settings - Fork 168
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cnvkit batch fail for WES data #436
Comments
It looks like you had some |
I have run this in cnvkit version CNVkit 0.9.7.dev0. |
I have a very similar error when using |
I have met with the same problem with the following command: The same command could run correctly in CNVkit v 0.9.0. |
I noticed that it was segmenting problem, so I specified "--segment-method hmm" instead of using the default method "cbs" and ran the batch command successfully. |
Thanks for the details. Are you able to see if any of the input .cnr files contained NaN values? The test files bundled with CNVkit do not have NaNs, but if NaNs are appearing in the .cnr files in practice (either log2 or weight columns) then that would explain the issue. |
I've merged a PR that should fix this issue. Could anyone try rerunning with the latest development version of CNVkit to see if the bug is resolved? |
Hi,I used CNV versions 0.99 and 0.98 respectively,for calling WES CNV,I had a similar problem with this log : |
Hello, I am currently experiencing the same problem running with no control, on versions 0.9.10 and 0.9.11. |
@Tina610 @AndrewJWicks Could you try the development version from GitHub and see if that works for you? Alternatively, you could remove the rows in your .cnr file that have empty or null values, which seemed to be the immediate source of the errors reported above. |
Or -- if the weights are all empty/null, try replacing the values with 1.0. |
I merged a possible fix in #914. Could you try pulling the latest development version and see if the problem is fixed now? |
Dear,
I am running CNVkit to call cnvs on samples sequenced with WES sequencing, and get an error below:
Segmenting with method 'cbs', significance threshold 0.0001, in 1 processes Traceback (most recent call last): File "/home/miniconda3/bin/cnvkit.py", line 7, in <module> exec(compile(f.read(), __file__, 'exec')) File "/home/biosoftware/cnvkit/cnvkit/cnvkit.py", line 9, in <module> args.func(args) File "/home/biosoftware/cnvkit/cnvkit/cnvlib/commands.py", line 143, in _cmd_batch args.cluster) File "/home/biosoftware/cnvkit/cnvkit/cnvlib/parallel.py", line 19, in submit return SerialFuture(func(*args)) File "/home/biosoftware/cnvkit/cnvkit/cnvlib/batch.py", line 192, in batch_run_sample else {})) File "/home/biosoftware/cnvkit/cnvkit/cnvlib/segmentation/__init__.py", line 66, in do_segmentation for _, ca in cnarr.by_arm()))) File "/home/biosoftware/cnvkit/cnvkit/cnvlib/segmentation/__init__.py", line 91, in _ds return _do_segmentation(*args) File "/home/biosoftware/cnvkit/cnvkit/cnvlib/segmentation/__init__.py", line 162, in _do_segmentation seg_out = core.call_quiet(rscript_path, '--vanilla', script_fname) File "/home/biosoftware/cnvkit/cnvkit/cnvlib/core.py", line 32, in call_quiet % (' '.join(args), err)) RuntimeError: Subprocess command failed: $ Rscript --vanilla /tmp/tmp7lkqejav b'Loading probe coverages into a data frame\nWarning message:\nIn CNA(cbind(tbl$log2), tbl$chromosome, tbl$start, data.type = "logratio", :\n markers with missing chrom and/or maploc removed\n\nSegmenting the probe data\nError in segment(cna, weights = tbl$weight, alpha = 1e-04) : \n length of weights should be the same as the number of probes\n\xe5\x81\x9c\xe6\xad\xa2\xe6\x89\xa7\xe8\xa1\x8c\n
The command that I run is:
cnvkit.py batch tumor.bam --normal normal.bam \ --targets hg38.exon.bed \ --method amplicon \ --annotate refFlat.txt \ --fasta Homo_sapiens_assembly38.fasta \ --access hg38.exon.bed \ --output-reference my_reference.cnn --output-dir /CNV \ --diagram --scatter
.Any Ideas what is going on?
Thanks!
The text was updated successfully, but these errors were encountered: