Given a data object from makeChrStrandData, generate a matrix containing a subset of the data from a given region of a given chromosome strand, with data binned at appropriate intervals along the chromosome. The minimum width of the binning interval is controlled using the "interval" argument, which can therefore be used to control the output resolution of the data.
createChrMatrix(data, chr, strand = c('forward','reverse','both'), subset = NULL, start=1, end, interval=ceiling((end - start)/500))
makeChrStrandData
).chrHeatMap
and
drawMapDendro
.
Typically this function will not be called directly, but rather via
the wrapper plotChrMap
function.
Note that this function may combine data from multiple probes or genes (taking the mean) into a single chromosomal locus based on the size of the specified interval. If this happens the combined probe/gene identifiers are concatenated in the output object, separated by a semicolon.
plotChrMap
, chrHeatMap
,
drawMapDendro
, ChrStrandMatrix-class
, ChrStrandData-class
data('demo')
stranddata <- createChrMatrix( chrdata, chr=22, strand='forward', start=21925000, end=24300000 )
Run the code above in your browser using DataLab