PurgeXenoGenes: PurgeXenoGenes

View source: R/functions.R

PurgeXenoGenesR Documentation

PurgeXenoGenes

Description

Removes counts and gene loadings for a secondary species and strips the primary species prefix from the remaining genes. Useful when cleaning an object that had controls cells added for multi-modal assays such as CITE-seq or REAP-seq.

Usage

PurgeXenoGenes(object, primary_species_prefix, secondary_species_prefix)

Arguments

object

Formerly mixed species Seurat object

primary_species_prefix

Literal string or regex prefix denoting genes from the species of interest

secondary_species_prefix

Literal string or regex prefix denoting genes from the species used as control

Value

Seurat object

Examples

pbmc <- PurgeXenoGenes(object = pbmc, primary_species_prefix = "hg38-", secondary_species_prefix = "mm10-")

KevinTThomas/sle_activity_scrnaseq documentation built on Aug. 8, 2022, 12:25 p.m.