Filter genes for a single-cell RNA sequencing or sptially-resolved transcriptomics data in the form of a Seurat object.

filter_gene(seu, min_spots = 20, assay = NULL)

Arguments

seu

a Seurat object.

min_spots

a non-negative integer, the least number of nonzero spots for a retained gene.

assay

a string, the assay to perform filtering.

Value

Return a revised Seurat object.