How to see into a txdb object?
1
1
Entering edit mode
10.1 years ago
Parham ★ 1.6k

Hi,

I make txdb as below. I would like to see what is inside this object and to know what information do I have. How can I do it? head() gives an error.

> txdb <- makeTranscriptDbFromBiomart(biomart="fungal_mart", dataset="spombe_eg_gene", host="fungi.ensembl.org")\
> head(txdb)
Error in x[seq_len(n)] : object of type 'S4' is not subsettable
txdb • 7.1k views
ADD COMMENT
7
Entering edit mode
10.1 years ago

Just typing txdb will give you basic information about the object. A TranscriptDb is essentially a database, so there's no simple way to see what's in it, since that has no meaning. If you want to see what sorts of things you can select from it, then columns(txdb) is pretty informative. If you're familiar with SQL, you can treat it as an SQL database and select(txdb, keys=some_vector, columns=...). Aside from that, you likely just want the standard functions like transcript(), exon() and so on.

Edit: BTW, if you really want to see everything, then select(txdb, columns=columns(txdb), keys=keys(txdb), keytype=c("GENEID")) should do it.

ADD COMMENT

Login before adding your answer.

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