kpPlotLinks function not working in karyoplotR
1
0
Entering edit mode
6.8 years ago

Hi

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 did not find any such function. But this code is available at https://bernatgel.github.io/karyoploter_tutorial//Tutorial/PlotLinks/PlotLinks.html .

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

All suggestions will be appreciated

Thank you in advance

karyoploteR R SNP rna-seq • 2.1k views
ADD COMMENT
0
Entering edit mode

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 REPLY
0
Entering edit mode

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 REPLY
0
Entering edit mode

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

ADD REPLY
0
Entering edit mode

Hello

I didnot remove coding . I really appriciate your suggestions .

ADD REPLY
0
Entering edit mode
6.5 years ago
bernatgel ★ 3.4k

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 COMMENT

Login before adding your answer.

Traffic: 1708 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6