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