Summarize a transcript level matrix to gene level.
summarize_to_gene(mtx, tx2gene, fun = "sum", genes = NULL)
| mtx | A (sparse) expression matrix on transcript / feature level |
|---|---|
| tx2gene | A data frame, mapping the |
| fun | character string specifying the name of aggregation function to be applied to all columns in data. Currently "sum", "count", and "mean" are supported. |
| genes | Optionally only summarize specific genes. |
A summarised (sparse) matrix
Can be used with sparse or dense expression matrices