Any possibility to "cache" TxDb object?
1
0
Entering edit mode
aush ▴ 40
@aush-9128
Last seen 2.9 years ago
United States

In my code, I create a TxDb object from makeTxDbFromEnsembl() call. Every time I run the code, it takes quite a long time - connecting to ensembl server, fetching the data, etc. - even though the data on the server did not change. Is there any way to avoid this by saving the database locally and then only checking that the current database release (i.e. the string like homo_sapiens_core_99_38) is the same?

GenomicFeatures TxDb • 872 views
ADD COMMENT
1
Entering edit mode
@steve-lianoglou-2771
Last seen 13 months ago
United States

Yes, take a look at the "Saving and Loading a TxDb Object" section of the GenomicFeatures vignette.

There is a pair of saveDb() and loadDb() functions that do exactly what you want.

ADD COMMENT
0
Entering edit mode

Great, thank you Steve!

ADD REPLY

Login before adding your answer.

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