Question: kpPlotLinks function not working in karyoplotR
gravatar for archie
6 months ago by
archie60 wrote:


I am using the karyoplotR . I have genomics position of one chromosome that I want to diaply their interaction. Therefore I installed karyoplotR and run demo code which mainly uses links.

library(karyoploteR) start.regs <- toGRanges(data.frame("chr1", 20e6, 30e6)) end.regs <- toGRanges(data.frame("chr3", 50e6, 55e6)) kp <- plotKaryotype() kpPlotLinks(kp, data=start.regs, data2=end.regs)

But I am getting error while running last line of code kpPlotLinks(kp, data=start.regs, data2=end.regs)* and error is *Error in kpPlotLinks(kp, data = start.regs, data2 = end.regs) : could not find function "kpPlotLinks"

I checked the functions belongs to karyoploteR using library(help="karyoploteR" ) and didnot find any such function. But this code is available at .

Any idea how to show interaction within genomics positions using this package? I know circos, but I want to display linear chromosome thereofore I opted this pacakge.

All suggestions will be appreciated

Thank you in advance

karyoploter snp tool R rnaseq • 278 views
ADD COMMENTlink modified 3 months ago by bernatgel1.2k • written 6 months ago by archie60

I added code markup to your post for increased readability. You can do this by selecting the text and clicking the 101010 button. When you compose or edit a post that button is in your toolbar, see image below:

101010 Button

In addition, please use sensible tags. This question doesn't have anything related to 'snp' and 'rnaseq'. Tags are useful if you want developers to help you quickly. The very minimum would have been 'karyoplotr' and 'R'. I have adapted the tags too.

ADD REPLYlink modified 6 months ago • written 6 months ago by WouterDeCoster31k

Hi after submitting the question, I realised to add more explanation. I was thinking to add tag such as itself tool name. I have added tags. Thanks for suggestion.

ADD REPLYlink written 6 months ago by archie60

And you removed the code formatting. Why do I even bother to help...

ADD REPLYlink written 6 months ago by WouterDeCoster31k


I didnot remove coding . I really appriciate your suggestions .

ADD REPLYlink written 6 months ago by archie60
gravatar for bernatgel
3 months ago by
Barcelona, Spain
bernatgel1.2k wrote:

Just for future reference, the problem in this case was that the version of karyoploteR was an old one, from before the kpPlotLinks function was added. The karyoploteR tutorial page content always refers to the latest release version of the package.

ADD COMMENTlink written 3 months ago by bernatgel1.2k
Please log in to add an answer.


Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 2.3.0
Traffic: 1606 users visited in the last hour