Description Usage Arguments Details Value Author(s) Examples
View source: R/correlated_regions_enrich.R
Normalize histone modification signals to target regions
1 | enrich_with_histone_mark(target, mark, sample_id, mode = mean, return_arr = FALSE, ...)
|
target |
target regions |
mark |
name of the histone mark |
sample_id |
a vector of sample IDs |
mode |
how to summarize histone modification signals among samples, by defualt is the cross-sample mean signal |
return_arr |
whether also return the three dimension array itself |
... |
pass to |
For each sample, the signal is normalized as a matrix, which results an array in which the third
dimension corresponds to samples. The final normalized matrix which shows e.g. mean signal matrix is calcualted
by apply(array, c(1, 2), mode)
.
If return_arr
is set to FALSE
, the funtion returns a matrix which can be directly sent to
EnrichedHeatmap
. If return_arr
is TRUE
, the returned value is a list in which
the first element is the original array and the second element is the normalized matrix.
Zuguang Gu <z.gu@dkfz.de>
1 2 | # There is no example
NULL
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.