make.matrix: Results output build helper

Description Usage Arguments Value Author(s) Examples

Description

Returns a list of matrices based on the export scales that have been chosen from the main function and a subset of samples based on the sample names provided in the sample.list argument of the main metaseqr function. Internal use.

Usage

1
    make.matrix(samples, data.list, export.scale = "natural")

Arguments

samples

a set of samples from the dataset under processing. They should match sample names from sample.list. See also the main help page of metaseqr.

data.list

a list containing natural or transformed data, typically an output from make.transformation.

export.scale

the output transformations used as input also to make.transformation.

Value

A named list whose names are the elements in export.scale. Each list member is the respective sample subest data matrix.

Author(s)

Panagiotis Moulos

Examples

1
2
3
4
5
6
data.matrix <- round(1000*matrix(runif(400),100,4))
rownames(data.matrix) <- paste("gene_",1:100,sep="")
colnames(data.matrix) <- c("C1","C2","T1","T2")
tr <- make.transformation(data.matrix,c("log2","vst"))
mm <- make.matrix(c("C1","T1"),tr,"log2")
head(tr$vst)

pmoulos/metaseqR-local documentation built on May 9, 2019, 1:13 a.m.