pick_probes: Find best probe if there are multiple per gene

Description Usage Arguments Value

View source: R/helper_functions.R

Description

It will return the probe with the highest summary measure (IQR, mean, etc.)

Usage

1
2
3
4
5
6
7
pick_probes(
  expmat,
  fac,
  method = c("IQR", "mad", "mean", "median"),
  returnProbes = FALSE,
  ...
)

Arguments

expmat

matrix whose rows can partly be summarized using a factor

fac

factor used for summarizing rows

method

method of summary, defaults to IQR

returnProbes

logical (default = FALSE), whether to return the actual probe IDs rather than a subset matrix, useful for some cases

...

arguments passed to summary functions (typically na.rm)

Value

new matrix where rownames correspond to factor level names (e.g. gene symbols)


fossbert/binilib documentation built on April 23, 2021, 10:31 p.m.