txNamesToGeneNames: Convert transcript names to gene names

txNamesToGeneNamesR Documentation

Convert transcript names to gene names

Description

Works for ensembl, UCSC and other standard annotations.

Usage

txNamesToGeneNames(txNames, txdb)

Arguments

txNames

character vector, the transcript names to convert. Can also be a named object with tx names (like a GRangesList), will then extract names.

txdb

the transcript database to use or gtf/gff path to it.

Value

character vector of gene names

Examples

df <- ORFik.template.experiment()
txdb <- loadTxdb(df)
loadRegions(txdb, "cds") # using tx names
txNamesToGeneNames(cds, txdb)
# Identical to:
loadRegions(txdb, "cds", by = "gene")

Roleren/ORFik documentation built on Oct. 19, 2024, 7:37 a.m.