addProjections: add a series of projectors to transformed assay data in a...

Description Usage Arguments Examples

View source: R/infra.R

Description

add a series of projectors to transformed assay data in a SingleCellExperiment

Usage

1
2
addProjections(sce, tx = function(x) log(x + 1), projectors,
  assayind = 1, ...)

Arguments

sce

SingleCellExperiment instance

tx

function that will transform assay quantifications, defaults to 'function(x) log(x+1)'

projectors

a list of list of functions like that created

assayind

numeric(1) second argument ('i') to assay(), defaults to 1

...

not used by 'defaultProjectors()'

Examples

1
2
3
4
5
6
7
8
9
if (interactive()) {
sce = sce300xx
reducedDims(sce) = NULL
ov = options()$verbose
options(verbose=TRUE)
sce = addProjections(sce, proj=defaultProjectors())
sce
options(verbose=ov) # restore
}

vjcitn/pcmp documentation built on May 25, 2019, 2:21 p.m.