removeTinySamples: Remove samples with too few cells

Description Usage Arguments Details Value Examples

View source: R/functions-core.R

Description

Removes samples from Phemd that have fewer cells than min_sz

Usage

1
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

1
2
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

phemd documentation built on Nov. 8, 2020, 8:15 p.m.