Matrix image of CNV blocks

Share:

Description

Plots the matrix of CNV blocks

Usage

1
matrixPlot(x, fac = TRUE, ...)

Arguments

x

matrix or data.frame of CNV variables, coding three levels each: -1:loss, 0:no-change, 1:gain in copy number variation.

fac

whether the x columns encode factors or numeric values

...

additional parameters than can be passed to matrixPlot

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
## Not run: 

# 'Hapmap270Cnv.RData' file can be downloaded from ...

load("Hapmap270Cnv.RData")

ch<-6
mat<-get.chromosome.dat(segments,ch,gen.info)
mat.f<-reduce.matrix(mat,gen.info,ch,varSimil=0.99,subVariation=0.99)
cnv.blocks<-attr(mat.f,"cnv.blocks")
matrixPlot(mat.f)

## End(Not run)