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 April 24, 2023, 3:50 p.m.