fit.and.apply.LTR: One-step fit and apply an LTR model

Description Usage Arguments Details Value Author(s) References Examples

View source: R/fit.and.apply.LTR.R

Description

Take two datasets that define a relationship between two gene-expression spaces, fit the relationship, and apply to map a third gene-expression matrix from one space to the other.

Usage

1
fit.and.apply.LTR(x, dataset1, dataset2);

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

dataset1

A matrix with samples as columns and probes as rows corresponding to the space we want to map expression values *into*

dataset2

A matrix with samples as columns and probes as rows corresponding to the space we want to map expression values *out of*

Details

x, dataset1, and dataset2 must all have the same number of rows (and in the same order). dataset1 and dataset2 must have the same number of columns (samples) and in the same order.

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
9
x <- matrix(nrow = 100, ncol = 10, data = rnorm(1000));
y <- matrix(nrow = 100, ncol = 10, data = rnorm(1000));
z <- y + matrix(nrow = 100, ncol = 10, data = rnorm(1000) / 10)

tmp <- fit.and.apply.LTR(
	x = x,
	dataset1 = y,
	dataset2 = z
	);

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