scaleScoreMatrixList {genomation} | R Documentation |
Scales each ScoreMatrix in the ScoreMatrixList object, by rows and/or columns
scaleScoreMatrixList(sml, columns, rows, scalefun) ## S4 method for signature 'ScoreMatrixList' scaleScoreMatrixList(sml, columns = FALSE, rows = TRUE, scalefun = NULL)
sml |
a |
columns |
a |
rows |
a |
scalefun |
a function object that takes as input a matrix and returns a matrix. By default the argument is set to the R scale function with center=TRUE and scale=TRUE |
ScoreMatrixList
object
library(GenomicRanges) data(cage) data(cpgi) data(promoters) cage$tpm = NULL targets = GRangesList(cage=cage, cpgi=cpgi) sml = ScoreMatrixList(targets, promoters, bin.num=10, strand.aware=TRUE) sml.scaled = scaleScoreMatrixList(sml, rows=TRUE) sml.scaled multiHeatMatrix(sml)