SummariseExpr: Do summarise (e.g. mean) for a given vector

Description Usage Arguments Value

View source: R/utils.R

Description

Do summarise (e.g. mean) for a given vector

Usage

1
2
3
4
5
6
7
8
SummariseExpr(
  x,
  method = base::mean,
  by_log = F,
  log_base = base::exp(1),
  exclude_zero = F,
  outlier_cutoff = 1
)

Arguments

x

numeric values in log scale

method

base::mean or any other function returned a value

by_log

calculate by log scale ; If TRUE log_base will be ignored.

log_base

base::exp(1) or 2 or other else, depends on your normalization method.

exclude_zero

exclude zeros when calculate average/median feature value. Note exclude_zero first, outlier_cutoff second.

outlier_cutoff

sometimes outliers (several extremely high cells) should be excluded when do summarise. Set 0.99 to exclude top 1 percent cells. (default: 1)

Value

a numeric value


zzwch/convgene documentation built on July 11, 2021, 9:41 a.m.