DownsampleSeurat: Downsample Seurat

View source: R/SeuratUtils.R

DownsampleSeuratR Documentation

Downsample Seurat

Description

Downsample a seurat object, either globally or subset by a field

Usage

DownsampleSeurat(seuratObj, targetCells, subsetFields = NULL, seed = GetSeed())

Arguments

seuratObj

The seurat object

targetCells

The desired cell number to retain per unit of data. If a subsetField is provided, the string 'min' can also be used, in which case

subsetFields

If provided, data will be grouped by these fields, and up to targetCells will be retained per group

seed

The random seed


bimberlabinternal/CellMembrane documentation built on Nov. 15, 2024, 9:34 p.m.