griffithlab / GenVisR

Genome data visualizations
Creative Commons Zero v1.0 Universal
206 stars 62 forks source link

higlight the centromere #356

Open Dagsbio opened 5 years ago

Dagsbio commented 5 years ago

Hi there!

I have some CNV data showing gains/losses of whole chromosome arms and I am wondering how could I highlight this.

Do you think is there any posibility of doing this in cnSpec??

Dagsbio commented 5 years ago

By the way, I am using the hg19 genome

zlskidmore commented 5 years ago

If I understand correctly you are wanting to exhibit the location of the p/q arms? This is hard to do by just adding a ggplot layer as layers are added after the faceting. I think the simplest solution would be to create a "fake" sample in your data set where each sample would have two rows in the input data frame and you would just give the p/q arms different segmeans. That should at least display where the centromere is.