I am working with karyoploteR to represent DEG. I am working with the pombe genome, so I created a custom genome with karyoploteR. But when I try to add the centromeres as cytobands, only the centromeres are represented. Here below is the code I used:
custom.genome <-toGRanges(data.frame(chr=c("I", "II", "III"), start=c(1,1,1), end=c(5579133,4539804,2452883)))
custom.cent <- toGRanges(data.frame(chr=c("I", "II", "III"), start=c(3753687,1602264,1070904), end=c(3789421,1644747,1137003), name=c("cent", "cent", "cent"), gieStain = c("stalk", "stalk", "stalk")))
When I don't use the centromeres information I get the chromosomes:
kp <- plotKaryotype(genome=custom.genome)
But when I used the centromeres information, only the centromeres are represented:
kp <- plotKaryotype(genome=custom.genome, cytobands = custom.cent)
I am not really sure why it is not working. I was following a package tutorial. Thank you beforehand, Alicia
Very nice formatting question, with examples and figures, well done !
I guess that you found a bug in
karyoploteR
, when thecustome.genome
display is removed when you addcustom.cytobands
I suggest you to open a new issue to bernatgel github : https://github.com/bernatgel/karyoploteR/issues