Extracts exon ranges from a TxDb object, merges them with
differential transcript usage (DTU) results, and returns a flat
GRanges ready for preprocess.
Usage
prepare_exons(
txdb,
dtu_table,
coef_col,
tx_id_col = "tx_id",
gene_id_col = "gene_id",
verbose = TRUE
)Arguments
- txdb
A
TxDbobject (from GenomicFeatures).- dtu_table
A data.frame or tibble with DTU results. Must contain columns for transcript ID, gene ID, and a coefficient.
- coef_col
Column name in
dtu_tablewith the coefficient / effect size values.- tx_id_col
Column name in
dtu_tablewith transcript IDs matching the TxDb transcript names. Default"tx_id".- gene_id_col
Column name in
dtu_tablewith gene IDs. Default"gene_id".- verbose
Whether to print progress messages. Default
TRUE.