Learn R Programming

LTR (version 1.0.0)

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

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

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*

Value

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.

References

The LTR paper, once published

Examples

Run this code
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
	);

Run the code above in your browser using DataLab