subsampleCells: Subsample cells. THIS FUNCTION IS IN library(mfishtools)

View source: R/heatmap_functions.R

subsampleCellsR Documentation

Subsample cells. THIS FUNCTION IS IN library(mfishtools)

Description

Subsets a categorical vector to include up to a maximum number of values for each category.

Usage

subsampleCells(clustersF, subSamp = 25, seed = 5)

Arguments

subSamp

maximum number of values for each category to subsample

seed

for reproducibility

clusters

vector of cluster labels (or any category) in factor or character format

Value

returns a vector of TRUE / FALSE with a maximum of subSamp TRUE calls per category


AllenInstitute/L5_VEN documentation built on July 31, 2022, 6:32 p.m.