Keep common genes of two SingleCellExperiment objects.

KeepCommonGenes(reference, query, dots2hyphen = FALSE)

Arguments

reference

SingleCellExperiment object.

query

SingleCellExperiment object.

dots2hyphen

Logic.

Value

A list containing updated SingleCellExperiment obejcts with matching features.

Examples

ref <- scuttle::mockSCE(ncells = 20, ngenes = 10)
query <- scuttle::mockSCE(ncells = 20, ngenes = 10)
query <- query[3:10, ]
res <- KeepCommonGenes(ref, query)
nrow(res$reference)
nrow(res$query)