Skip to contents

Check annotation coverage and ID conflicts

Usage

rsem_annotation_qc(x, annotation, ids = attr(x, "gene_ids", exact = TRUE))

Arguments

x

The gene by sample table (TPM or counts), as returned by rsem_read().

annotation

Path to a GTF file (plain or .gz; GENCODE, Ensembl or NCBI, with gene_type or gene_biotype), or a data frame with the columns gene_id, gene_type and optionally gene_name. It should be the annotation the RSEM reference was built from.

ids

The attribute "gene_ids" of the table rsem_read() returned (default: that attribute of x, when present). Rows are then matched to the annotation through their original gene IDs, which avoids losing genes whose OrgDb symbol differs from the GTF gene name. Without it, rows are matched by Ensembl ID or by gene name.

Value

A data frame with one row per expression feature, assigned biotype(s), annotation status, annotation conflict and merged-ID flags. The fraction annotated is stored in the "coverage" attribute.