Map transcript IDs from a tx2gene table to a readcounts matrix
Source:R/map_functions.R
map_tx_to_readcounts.RdAssign transcript identifiers as row names of a transcript-level read counts matrix so downstream plotting functions can identify transcripts. The tx2gene mapping can be provided as a file path (TSV) or a data.frame with a `Transcript` column.
Arguments
- readcounts
A numeric matrix or data.frame of read counts (rows = transcripts).
- tx2gene
Either a path to a tab-delimited file or a data.frame with at least a `Transcript` column.
- tx_col
Name of the transcript ID column in `tx2gene` (default: 'Transcript').
- verbose
Logical; print informative messages (default: FALSE).