Entering edit mode
9.3 years ago
Parham
★
1.6k
Hi,
I am trying to extract GENEID
and corresponding CDSSTART
from a txdb
object using select
function but it doesn't work. Could someone give a little help if you see where I am doing wrong? Here is the last few codes that lead to error. I appreciate your help in advance.
> keytypes(txdb)
[1] "GENEID" "TXID" "TXNAME" "EXONID" "EXONNAME" "CDSID" "CDSNAME"
> columns(txdb)
[1] "CDSID" "CDSNAME" "CDSCHROM" "CDSSTRAND" "CDSSTART" "CDSEND" "EXONID"
[8] "EXONNAME" "EXONCHROM" "EXONSTRAND" "EXONSTART" "EXONEND" "GENEID" "TXID"
[15] "EXONRANK" "TXNAME" "TXCHROM" "TXSTRAND" "TXSTART" "TXEND"
> head(select(txdb, keys="GENEID", columns = "CDSSTART", keytype = "GENEID"))
Error in head(select(txdb, keys = "GENEID", columns = "CDSSTART", keytype = "GENEID")) :
error in evaluating the argument 'x' in selecting a method for function 'head': Error in .testForValidKeys(x, keys, keytype) :
None of the keys entered are valid keys for 'GENEID'. Please use the keys method to see a listing of valid arguments.
Nice thanks. I did:
and it works now. However I don't understand what are keys and what are keytypes. A little explanation on that is very appreciated.
Happy it helped. All I can do is to copy/paste info from
?biomaRt::keys