rsemverse
An R package that turns RSEM *.genes.results and *.isoforms.results files into analysis-ready gene tables for human and mouse bulk RNA-seq: rsem_read() reads them, listed in a sample table or found in a folder, into a gene symbol by sample table of counts, TPM or effective lengths; rsem_filter(), rsem_subset(), rsem_normalize() and rsem_transform() prepare that table; rsem_fit_reference() gives z-scores against a fixed control group; and rsem_long() and rsem_write() return it for plotting or for other tools; rsem_sample_qc() and rsem_mapping_qc() give PCA, sample correlation and read-assignment statistics.
Installation
install.packages("BiocManager")
BiocManager::install("DaikiKumakura/rsemverse")
BiocManager::install(c("org.Hs.eg.db", "org.Mm.eg.db"))
rsemverse needs R 4.1 or later; install the OrgDb package of the species you use (org.Hs.eg.db for human, org.Mm.eg.db for mouse).
Status
Every function takes and returns the same table, and no gene list or sample grouping is needed: gene symbols and gene groups (protein-coding, mitochondrial, ribosomal, hemoglobin, sex, ERCC) come from org.Hs.eg.db or org.Mm.eg.db. Filtering follows the edgeR filterByExpr rule or detection thresholds; normalization offers CPM, TMM, upper quartile, DESeq2 median of ratios and quantile; transformations are log2, z-score and ranks. On six ENCODE K562 RSEM files (59,526 genes each), rsem_read() gave symbols to 36,385 genes and kept the column sums; the edgeR rule kept the same 12,808 genes as edgeR::filterByExpr(), and the normalized values were within 3e-16 (relative) of edgeR, DESeq2 and limma (November 14, 2026). Version 0.3.0 adds detection-threshold curves, gene types from a GTF file (rRNA, snoRNA, lncRNA and others, matched through the original gene IDs), TMMwsp normalization (within 2.6e-16 of edgeR), z-scores against a reference group, transcript selection and effective-length summaries, checked on the same ENCODE experiments with their transcript files and the GENCODE V29 annotation (November 20, 2026). Version 0.4.0 keeps the gene IDs through the table functions, reads --append-names IDs and gzip files, lets the edgeR filter use the sample groups (equal to edgeR 4.8.2), and adds sample QC (PCA and correlation, equal to prcomp and cor, checked on the same ENCODE experiments) and RSEM .cnt read statistics (November 21, 2026). Version 0.5.0 refuses gene-level files quantified against different references, names genes from an annotation file (RefSeq-style IDs), reads RSEM posterior estimates, and adds rsem_check(), which reports problems in the files before reading; checked on the same ENCODE experiments, including a gene with a changed transcript list and a file with shuffled rows (November 21, 2026). Version 0.5.1 names a gene from an annotation only when the part after the underscore is exactly that gene's name (an ID such as gene1_2 is no longer taken for gene1) and adds tests for the boundary cases of rsem_check(); results on the same ENCODE experiments did not change (November 22, 2026). Version 0.6.0 adds rsem_reconcile(), which checks that each gene value of expected count, TPM and FPKM equals the sum over its transcripts within the rounding of RSEM's two-decimal output, and rsem_id_report(), which lists the rows that combine several gene IDs; on the same ENCODE experiments no gene was beyond rounding (largest difference 0.05), while a transcript file of another sample put 20,405 of 59,526 genes beyond it, and 89 rows combined several gene IDs (November 22, 2026). Version 0.6.1 also compares the transcripts that the gene file lists for each gene with those of the isoform file (a renamed transcript leaves the sums unchanged), stops on infinite or negative values when reading and on values that are not finite in the reconciliation, and refuses to apply log2 twice in the reference z-scores; on the same ENCODE experiments no gene had a transcript mismatch (November 22, 2026). Version 0.6.2 keeps the missing values of the reference z-scores when writing a long table or a file, and stops the reconciliation on negative values, empty IDs and files without the ID columns (November 23, 2026). Version 0.7.0 reads FPKM and RSEM's posterior FPKM, interval and quartile-variation columns, reads several values at once and returns the list that DESeq2 takes (equal to tximport on the ENCODE files), reads the histogram of alignments per read of the .cnt files, checks that transcript lengths are the same in every file, adds relative log expression to the sample QC and writes GCT files for GSEA; the FPKM matched the documented formula (median ratio 1.0000) and the DESeq2 input equalled tximport (difference 0) on the same ENCODE experiments (November 23, 2026). Version 0.7.1 adds a reader for the .model files (fragment length distribution and read start positions) and takes gene names from the exon rows of a GTF that has no gene rows; RSEM 1.3.3 was built and run on a toy data set with --calc-pme, --calc-ci, --append-names and --estimate-rspd, and every posterior column, the .cnt histogram, the .model files and the names after --append-names were read from its output (November 23, 2026). Version 0.7.2 reads the noise share of the .theta files (checked on an RSEM run with 600 added unalignable reads of 2,750: 600/2750 before and 600/2700 after RSEM's correction), completes gene names and types from transcript and other rows for genes without a gene row in a GTF (GENCODE V29: the same 58,721 genes in 24 seconds), and checks the probabilities of the .model files more strictly (November 23, 2026). Version 0.8.0 is built for the pipe: the table records what it holds and the steps taken, so rsem_read() |> rsem_filter() |> rsem_normalize() needs no repeated argument and rsem_steps() lists what was done; it adds a one-table QC summary of the .cnt, .model and .theta files, per-gene isoform usage, a SummarizedExperiment export, stricter parsers for the GTF, .model and .cnt files, and a rewritten README whose recipes were run on the ENCODE files (November 26, 2026). R CMD check passes on Linux, macOS and Windows in CI. Not on CRAN or Bioconductor.
Cite this software
Kumakura, D. rsemverse. Zenodo. https://doi.org/10.5281/zenodo.24545434