View source: R/produce_heatmap.R
produce_heatmap | R Documentation |
Convert coverage to heatmap
produce_heatmap(
cov,
peaks,
name,
partitions = character(0),
col = NULL,
col_order = NULL,
force_seqlevels = FALSE,
seed = 99841,
top_anno_ylim = NULL,
show_row_names = FALSE,
row_labels = NULL,
extend = 5000,
w = max(extend)/100,
value_column = "score",
mean_mode = "w0",
raster_by_magick = TRUE
)
cov |
A coverage generated with the |
peaks |
A |
name |
The name of the heatmap that will be shown at the top. |
partitions |
If you want to split the heatmap based on different group,
you must specify the groups (or partitions). The |
col |
A |
col_order |
A |
force_seqlevels |
If |
seed |
Set a seed value for the color selection. Only used when
|
top_anno_ylim |
Manually set the ylim value for the top_annotation.
If |
show_row_names |
Show matrix rownames on left side.
If |
row_labels |
Manually set row label on the left side.
If |
extend |
extended base pairs to the upstream and downstream of target. It can be a vector of length one or two. If it is length one, it means extension to the upstream and downstream are the same. |
w |
window size for splitting upstream and downstream. |
value_column |
column index in signal that will be mapped to colors. If it is NULL, an internal column which all contains 1 will be used. |
mean_mode |
when a window is not perfectly overlapped to signal, how to summarize values to this window. See 'Details' section for a detailed explanation. |
raster_by_magick |
Value for the |
An heatmap object
bdg <- get_demo_bdg()
bed_file <- get_demo_bed_files()[[1]]
peaks <- import(bed_file)
cov <- import_bedgraph(bdg)
heatmap <- produce_heatmap(cov, peaks, "demo")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.