MAPmatrix: Function to summarize binary matrix

Description Usage Arguments Value Author(s) References Examples

Description

Function MAPmatrix summarizes a binary matrix. It treats each row as Meta-Analysis Pattern and looks for count of observed soft and strong matches.

Usage

1
MAPmatrix(value.dis)

Arguments

value.dis

A binary matrix with rows refering to genes and columns to microarray studies.

Value

A matrix with rows corresponding to MAP patterns and four columns: unique patterns that are being observed in the data (uniqe.pat), number of observed soft matches with the pattern (n.soft), number of observed strong matches (n.strong) and number of $1$'s in the pattern n.sig)

Author(s)

Ivana Ihnatova

References

Yang, X., Bentink, S. a Spang, R., Detecting Common Gene Expression Patterns in Multiple Cancer Outcome Entities, Biomedical Microdevices, Vol.7:3, 2005

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
## The function is currently defined as
function(value.dis)
{
res<-ratio(value.dis)
unique.pat <- unique(results$X.string)
n.soft <- patternMatch(value.dis,unique.pat)
n.strong <- patternMatch.strong(value.dis,unique.pat)
unique.X <- patternmatrix(unique.pat,ncol(value.dis))
n.sig <- apply(unique.X,1,sum)
mat<-data.frame(unique.pat, n.soft, n.strong,n.sig)
return(mat)
  }

MAMA documentation built on Jan. 15, 2017, 3:05 p.m.

Related to MAPmatrix in MAMA...