Description Usage Arguments Examples
This function takes a HiC contact matrix and creates heatmap-like prepresentation of it
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | plot_matrix(
mat,
coord,
resolution,
transformation = logfinite,
color = colorRampPalette(c("white", "red"))(100),
sym = FALSE,
trim = 0.01,
rotate = FALSE,
unit_x_axis = 1e+06,
label_x_axis = "Genomic Position / Mbp",
na.col = "white",
...
)
|
mat |
HiC contact matrix (it could be the output of |
coord |
A vector of size two with the start and end coordinates of the desired region to plot |
resolution |
Resolution (bin size) in bp |
transformation |
Transformation to apply to the contacts prior to the heatmap representation |
color |
Vector of colors |
sym |
Logical indicating if the color scale should be symmetrical (around 0) |
trim |
Numeric proportion of the data that should be 'flattened' on both extremes |
rotate |
Logical indicating if the matrix should be rotated |
unit_x_axis |
Numeric unit for the X axis |
label_x_axis |
Character X axis label |
na.col |
Color to depict |
... |
Further arguments to be passed to |
1 | plot(0)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.