wb_load_TxDb: Load TxDb

View source: R/load_txdb.R

wb_load_TxDbR Documentation

Load TxDb

Description

Generate and load a TxDb object for a given Wormbase version, that can be used with Bioconductor packages.

Usage

wb_load_TxDb(WS, dir_cache = NULL)

Arguments

WS

Wormbase release version.

dir_cache

Directory where the downloaded files are cached.

Value

A TxDb object.

Examples

## Not run: 
wb_txdb_274 <- wb_load_TxDb(274)
transcript_to_gene_table <- AnnotationDbi::select(wb_txdb_274,
                                         keys = keys(wb_txdb_274, keytype = "TXNAME"),
                                         columns = c("TXNAME", "GENEID"),
                                         keytype = "TXNAME")
all_exons_GRanges <- GenomicFeatures::exonsBy(wb_txdb_274, by = "gene")

## End(Not run)


AlexWeinreb/wbData documentation built on April 3, 2025, 1:24 p.m.