get_stats_by_sample: Calculate sample-level cluster statistics

Description Usage Arguments Value

View source: R/cluster.R

Description

Calculate sample-level cluster statistics

Usage

1

Arguments

tab

A data.frame. Must contain two columns called cellType and sample, respectively indicating the cluster membership and the sample of origin

Value

Returns a data.frame with the same columns as tab, plus sample-level statistics for every column in tab. If tab contains column foo, the returned value will contain columns foo@sample1, foo@sample2 etc., containing the values of foo, as calculated only on the rows of tab that belong to sample1, sample2 etc.


ParkerICI/grappolo documentation built on April 8, 2021, 11:03 a.m.