Learn R Programming

Patterns (version 1.2)

as.micro_array: Coerce a matrix into a micro_array object.

Description

Coerce a matrix into a micro_array object.

Usage

as.micro_array(M, time, subject, name_probe = NULL, gene_ID = NULL, 
group = 0, start_time = 0)

Arguments

M

A matrix. Contains the microarray measurements. Should be of size N * K, with N the number of genes and K=T*P with T the number of time points, and P the number of subjects. This matrix should be created using cbind(M1,M2,...) with M1 a N*T matrix with the measurements for patient 1, M2 a N*T matrix with the measurements for patient 2.

time

A vector. The time points measurements

subject

The number of subjects.

name_probe

Vector with the row names of the micro array.

gene_ID

Vector with the actors' IDs of the row names of the micro array.

group

Vector with the actors' groups of the row names of the micro array.

start_time

Vector with the actors' starting time (i.e. the time it is thought to begin to have an effect on another actor in the network).

Value

A micro_array object.

Examples

Run this code
# NOT RUN {
if(require(CascadeData)){
	data(micro_US, package="CascadeData")
	micro_US<-as.micro_array(micro_US[1:100,],time=c(60,90,210,390),subject=6)
	plot(micro_US)
	}
# }

Run the code above in your browser using DataLab