AnnotateGenes.10x: Annotate splice junctions

View source: R/Script_DROPLET_02_PREPROCESS_1_AnnotateGenes.R

AnnotateGenes.10xR Documentation

Annotate splice junctions

Description

Annotates the each gene in the gene metadata with the gene type, e.g. protein-coding, antisense etc.. Annotations are retrieved from GTF. Only genes found in gene metadata and GTF will be retained.

Usage

AnnotateGenes.10x(MarvelObject)

Arguments

MarvelObject

Marvel object. S3 object generated from CreateMarvelObject.10x function.

Value

An object of class S3 containing the updated slots MarvelObject$gene.metadata and gene.norm.matrix.

Examples


# Load un-processed MARVEL object
marvel.demo.10x.raw <- readRDS(system.file("extdata/data",
                               "marvel.demo.10x.raw.rds",
                               package="MARVEL")
                               )

# Annotate gene metadata
marvel.demo.10x <- AnnotateGenes.10x(MarvelObject=marvel.demo.10x.raw)

MARVEL documentation built on Oct. 31, 2022, 5:07 p.m.