removeTinySamples: Remove samples with too few cells

View source: R/functions-core.R

removeTinySamplesR Documentation

Remove samples with too few cells

Description

Removes samples from Phemd that have fewer cells than min_sz

Usage

removeTinySamples(obj, min_sz = 20)

Arguments

obj

'Phemd' object containing raw expression data and associated metadata

min_sz

Minimum number of cells in each sample to be retained

Details

Note: If used, this function must be called before (and not after) the aggregateSamples function is called

Value

'Phemd' object containing raw multi-sample expression data and associated metadata (same as input minus removed samples)

Examples

my_phemdObj <- createDataObj(all_expn_data, all_genes, as.character(snames_data))
my_phemdObj_lg <- removeTinySamples(my_phemdObj, 10) #removes samples with fewer than 10 cells


KrishnaswamyLab/phemd documentation built on Oct. 2, 2024, 5:10 a.m.