Biostar Beta. Not for public use.
Draw centromere on chromosome scatter plot
Entering edit mode
2.3 years ago
alice.choury • 50


I run CNVkit with my somatic data. I draw scatter plot, of the chromosomes. Sometimes the segment is very long and I think there is maybe du to a CNV in a arm of a chromosome. So I want to separate the different arms of a chromosome in my plot. My idea is to show the centromere of the chromosome. scatter sample.cnr -s sample.cns -g centromere_chr1 -c chr1 -o sample_chr1.pdf

So I add the genomic region of centromer of each chromosome in my bed. I ran the analyse and I try to plot the chromosome.

I have an error. cnvkit explain me that the region "centromere_chr1" does not exist. I understand in the fix step, the regions of target with no coverage (here centromere) are filtred.

Is it possible to get around this problem (only mark the regions with no coverage for exemple) ?

Thank you for your answer


Entering edit mode
14 months ago
Eric T. ♦ 2.4k
San Francisco, CA

When CNVkit segments your .cnr file with the CBS algorithm, it automatically finds the largest no-coverage gap in each chromosome, i.e. the centromere, and segments each arm of the chromosome separately. This will be visible in diagram and the genome-wide or chromosome-level scatter plots. Is any of this not working for you?

If you want to plot each arm of a chromosome separately and you know the coordinates of the centromere, you can use scatter -c to specify the coordinates of the chromosome arm: scatter sample.cnr -s sample.cnr -c chr9:1-48000000 -o sample-chr9p.pdf

If you just want to add a vertical line to the middle of the chromosome-wide plot, you can do this either in Python using cnvlib.do_scatter and matplotlib, or else edit the original PDF in Inkscape.


Login before adding your answer.

Similar Posts
Loading Similar Posts
Powered by the version 2.1