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 Oct. 16, 2024, 6:53 a.m.