ScoreMatrix
objects in the form
of ScoreMatrixList
object. This object can be visualized using
multiHeatMatrix
, heatMeta
or plotMeta
ScoreMatrixList(targets, windows = NULL, bin.num = NULL, bin.op = "mean",
strand.aware = FALSE, weight.col = NULL, is.noCovNA = FALSE,
type = "", rpm = FALSE, unique = FALSE, extend = 0, param = NULL,
library.size = NULL, cores = 1)
scoreMatrix
objects, that are coerced
to the ScoreMatrixList
, a list of RleList
objects, or a
character vector specifying the locations of mulitple bam files or
bigWig files that
are used to construct the scoreMatrixList
. If it is either a
RleList object or a character vector of files, it is obligatory to
give a windows argument.GenomicRanges
containing viewpoints for the scoreMatrix
or ScoreMatrixList functionsGRanges
object a numeric column
in meta data part can be used as weights. This is particularly
useful when genomic regions have scores other than their
coverage values, such as percent methylation, conservation
scores, GC content, etc.targets
is a character vector of file paths, then type
designates the type of the corresponding files (bam or bigWig)library.size
.targets
indicating total number of mapped reads in BAM files (targets
).
If is not given (default: NULL) then library sizes for every target
is calculated using the Rsamtools package functions:
sum(countBam(BamFile(target))$records).
rpm
argument has to be set to TRUE.ScoreMatrixList
object# visualize the distribution of cage clusters and cpg islands around promoters
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
multiHeatMatrix(sml)
Run the code above in your browser using DataLab