You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I hope this message finds you well. I’m writing to ask for your guidance regarding an issue I’ve encountered while using the karyoploteR package. Specifically, I’m trying to remove the borders around cytobands when plotting custom regions of interest on a chromosome.
Here’s a brief summary of the issue: I replaced the default cytobands with regions I’m interested in; however, because these regions are relatively small compared to the entire chromosome, the color displayed for these regions is primarily the black border, rather than the intended fill color.
Below is a snippet of my code for your reference:
kp <- plotKaryotype(genome = custom.genome, cytobands = custom.cytobands, chromosomes="chr21", plot.type = 2)
I’ve also attached an image that illustrates the issue. Any advice on how to adjust or remove the cytoband border color would be greatly appreciated.
Thank you very much for your time, and I look forward to any insights you might share.
Best regards,
h
The text was updated successfully, but these errors were encountered:
Sure, you can do that. The trick is using the function to plot the cytobands independently. kpPlotKaryotype can plot the cytobands and can accept a bit of customization. However, if you need full customization then you need to do it yourself. To do that, you need to set ideogram.plotter=NULL in the plotKaryotype call, so it does not plot the ideogram (the cytobands), and then call kpAddCytobands to plot them. In here, if you set the line width to 0, no border will be plotted lwd=0.
I realize the documentation is lacking on this aspect.
Another option would be to use the data.panel="ideogram" (see it in the karyoploteR tutorial) to plot on top of the ideogram, for example to highlight some regions as in
Dear Blogger,
I hope this message finds you well. I’m writing to ask for your guidance regarding an issue I’ve encountered while using the karyoploteR package. Specifically, I’m trying to remove the borders around cytobands when plotting custom regions of interest on a chromosome.
Here’s a brief summary of the issue: I replaced the default cytobands with regions I’m interested in; however, because these regions are relatively small compared to the entire chromosome, the color displayed for these regions is primarily the black border, rather than the intended fill color.
Below is a snippet of my code for your reference:
kp <- plotKaryotype(genome = custom.genome, cytobands = custom.cytobands, chromosomes="chr21", plot.type = 2)
I’ve also attached an image that illustrates the issue. Any advice on how to adjust or remove the cytoband border color would be greatly appreciated.
Thank you very much for your time, and I look forward to any insights you might share.
Best regards,
h
The text was updated successfully, but these errors were encountered: