apply.LTR: Apply a fitted LTR model to a new dataset

Description Usage Arguments Details Value Author(s) References Examples

View source: R/apply.LTR.R

Description

Map a gene-expression matrix into the space encoded by a linear-tranformation of replicates (LTR) fit object.

Usage

1
apply.LTR(x, model.fit);

Arguments

x

A matrix with samples as columns and genes as rows; must have the same number of rows as the model in model.fit

model.fit

A list with components rownames, intercepts, slopes, r.squared, and residuals. Exactly such a list is generated by fit.LTR

Details

x must have the same number of rows (and in the same order) as the components of model.fit – no validation of this is performed.

Value

A gene-expression matrix of dim(x) in the space of model.fit

Author(s)

Paul C. Boutros

References

The LTR paper, once published

Examples

1
2
3
4
5
6
7
8
x <- matrix(nrow = 100, ncol = 10, data = rnorm(1000));
y <- matrix(nrow = 100, ncol = 10, data = rnorm(1000));
model.fit <- fit.LTR(x, y);

z <- apply.LTR(
	x = y + matrix(nrow = 100, ncol = 10, data = rnorm(1000) / 10),
	model.fit = model.fit
	);

LTR documentation built on May 29, 2017, 9:12 a.m.