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)A Seurat object (sample 1).
A Seurat object (sample 2).
Integer. Number of top variable features to select per sample.
Default is 500.
A character vector of gene names present and expressed in both samples.
if (FALSE) {
common_genes <- SelectCommonGenes(srat1, srat2, ngenes = 500)
}