sample_cells: Downsample cells from each cluster

Description Usage Arguments Value

View source: R/util.R

Description

Downsample cells from each cluster

Usage

1
sample_cells(cl, sample.size, weights = NULL)

Arguments

cl

A cluster factor object

sample.size

A maximum number of cells to take from each cluster, or a named numeric object with the number of cells to be sampled and names matching cluster levels

Value

A cluster factor object containing sampled cells


AllenInstitute/scrattch.hicat documentation built on Nov. 6, 2018, 9:47 p.m.