View source: R/Script_DROPLET_02_PREPROCESS_4_FilterGenes.R
FilterGenes.10x | R Documentation |
Retain genes of specific type, e.g., protein-coding genes.
FilterGenes.10x(MarvelObject, gene.type = "protein_coding")
MarvelObject |
Marvel object. S3 object generated from |
gene.type |
Character string. Gene type to keep. Specification should match that of GTF. |
An object of class S3 containing the updated slots MarvelObject$gene.metadata
, MarvelObject$gene.norm.matrix
, MarvelObject$sj.metadata
, and MarvelObject$sj.count.matrix
.
# 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) # Annotate junction metadata marvel.demo.10x <- AnnotateSJ.10x(MarvelObject=marvel.demo.10x) # Validate junctions marvel.demo.10x <- ValidateSJ.10x(MarvelObject=marvel.demo.10x) # Subset CDS genes marvel.demo.10x <- FilterGenes.10x(MarvelObject=marvel.demo.10x, gene.type="protein_coding" )
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.