TickingClock1992 / RIdeogram

154 stars 23 forks source link

Length scale #18

Open mxh-persist opened 3 years ago

mxh-persist commented 3 years ago

Hello, can you add a chromosome length ruler to this R package?

TickingClock1992 commented 3 years ago

Hello, I modified the current version and added this function. You can set the ruler by the parameter Ruler = 50, meaning the bin of 50 Mb. The default number of tick is five, in this case: 0Mb, 50Mb, 100Mb, 150Mb, 200Mb. You can download this testing version at https://github.com/TickingClock1992/RIdeogram_test/blob/master/RIdeogram_0.2.3.tar.gz and install this version in a local way.

Running the command as follows:

library("RIdeogram")
ideogram(karyotype = human_karyotype, overlaid = gene_density, Ruler = 50)
convertSVG("chromosome.svg", device = "png")

Then, you can get a figure like this chromosome

mxh-persist commented 3 years ago

Hello, thank you very much for replying to my message in time. I have the following problems when doing collinearity through your R package. I am very sorry to disturb you.

Error in cat(polyline, file = output, append = TRUE) : 找不到对象'polyline'

![Uploading image.png…]()

TickingClock1992 commented 3 years ago

Sorry, I have updated the temporary package to fix this problem. You can download this testing version and try again. However, the chromosome ruler doesn't work for the synteny plotting.