Error in findOverlaps function
1
0
Entering edit mode
Đạt • 0
@e056c6cc
Last seen 2.2 years ago
South Korea

Dear users, I am trying to find the gene based on chromosome number and position by HG38. My data is named as df_1 and shown below. I get the coordinates of all the genes from database of HG38 by function like this:

"txs <- transcriptsBy(TxDb.Hsapiens.UCSC.hg38.knownGene) "

then I use the findOverlaps with code: "df_overlap <- findOverlaps(df_1,txs)" but an error keep appear:

Error in (function (classes, fdef, mtable) : unable to find an inherited method for function ‘findOverlaps’ for signature ‘"data.frame", "data.frame"’

Not sure what is this. I spent hours reading but can not solve it. Can you help me with the solution? Many thanks

enter image description here

func findOverlap • 825 views
ADD COMMENT
0
Entering edit mode
ATpoint ★ 4.1k
@atpoint-13662
Last seen 10 hours ago
Germany

The function accepts a GRanges object, not a data.frame.

ADD COMMENT

Login before adding your answer.

Traffic: 766 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