Open nithishak opened 5 months ago
Cnvkit performs some internal filtering (based on gc, log2, spread and depth=0) of bins that might skew the CNV calling results. My understanding is that the cnvkit smoothing fails (which takes care of bias corrections) when there are less than 2 bins left after filtering (which occurs separately for target and anti-target bins). Since your problem seems to be with the anti-target bins you could try to disable the usage of anti-target bins. I am not entirely sure, since I don't usually use the batch command, but I think you could disable anti-target bins by using --method amplicon.
thank you for your input. Should I expect to see the low coverage warning for anti-target analysis as these are the non-targeted regions? Also, it always seems to be that one bin from the anti-target file that causes the error, would it be wise to drop that row from reference.cnn for the analysis to complete?
Hello, I am currently using the latest docker image of cnvkit to run:
However, while for some runs cnvkit runs to completion, for some runs, the log terminates after the cnn file is produced.
Upon debugging, it looks like when the do_fix function is called on the anti-target file, the assert statement in the _width2wing function in smoothing.py fails and the program terminates without printing any error message. Interestingly, if I use a reference.cnn produced by another run (another set of normal samples), the cnr files are produced.
Usually, when I run cnvkit successfully, the anti-target keeps 0 of x bins and mentions that most bins have low coverage like this:
I am unable to debug beyond this point and would appreciate any advice! Thank you.