orderBy-methods: Reorder all elements of a ScoreMatrixList to a given ordering...

Description Usage Arguments Value Examples

Description

Reorder all elements of a ScoreMatrixList to a given ordering vector

Usage

1
2
3
4
orderBy(sml, ord.vec)

## S4 method for signature 'ScoreMatrixList'
orderBy(sml, ord.vec)

Arguments

sml

ScoreMatrixList object

ord.vec

an integer vector

Value

ScoreMatrixList object

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
library(GenomicRanges)
data(cage)
data(cpgi)
data(promoters)

cage$tpm = NULL
targets = GRangesList(cage=cage, cpgi=cpgi)
sml = ScoreMatrixList(targets, promoters, bin.num=10)
kmeans.clust = kmeans(sml$cage,3)
 
sml.ordered = orderBy(sml, kmeans.clust$cluster)

multiHeatMatrix(sml.ordered)

BIMSBbioinfo/genomation documentation built on Feb. 4, 2018, 12:11 p.m.