Identifies the union of top variable genes in two Seurat objects and then restricts to genes expressed in both samples. Genes are filtered to those with an expression percentage between 0.5% and 50% before calling FindVariableFeatures.

SelectCommonGenes(srat1, srat2, ngenes = 500)

Arguments

srat1

A Seurat object (sample 1).

srat2

A Seurat object (sample 2).

ngenes

Integer. Number of top variable features to select per sample. Default is 500.

Value

A character vector of gene names present and expressed in both samples.

Examples

if (FALSE) {
common_genes <- SelectCommonGenes(srat1, srat2, ngenes = 500)
}