wb_get_gtf_path | R Documentation |
Returns the path to a GTF file in the cache. Useful to use with functions that require a connection to read from (e.g. to create a TxDb for Bioconductor packages). The file gets downloaded as necessary.
wb_get_gtf_path(WS, dir_cache = NULL)
WS |
Wormbase release version. |
dir_cache |
Directory where the downloaded files are cached. |
For the TxDB creation, see also 'wb_load_txdb()' which does it automatically.
a character string pointing to a "c_elegans.PRJNA13758.WSxxx.canonical_geneset.gtf.gz" file.
## Not run:
library(GenomicFeatures)
library(wbData)
path_to_gtf <- wb_get_gtf_path(273)
my_txdb <- makeTxDbFromGFF(path_to_gtf,dataSource = "Wormbase",organism = "Caenorhabditis elegans")
gids <- wb_load_gene_ids(273)
select(my_txdb, keys = s2i("nduo-3", gids), columns = "TXSTART", keytype = "GENEID")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.