View source: R/tornado_insulation.R
tornado_insulation | R Documentation |
Takes pre-calculated insulation scores around a set of genomic locations and plots these in a heatmap and/or profile.
tornado_insulation(
IS_discovery,
bed,
bed_pos = "end",
region_width = 1e+06,
sort_bins = 11,
sort_on = 1,
mode = c("both", "heatmap", "profile"),
colour_lim = c(-1, 1),
colours = NULL,
profile_fun = mean,
custom_fill_scale = NULL,
profile_ylim = NULL,
title = NULL
)
IS_discovery |
A GENOVA |
bed |
A |
bed_pos |
A |
region_width |
A |
sort_bins |
A |
sort_on |
A |
mode |
A |
colour_lim |
A |
colours |
A vector of valid colours for the heatmap gradient. Internally defaults to a blue-white-red gradient. |
profile_fun |
A |
custom_fill_scale |
A call to one of ggplot2's |
profile_ylim |
A |
title |
A |
The profile colours are automatically assumed from the colours given
to the contacts
object during the load_contacts
operation.
Entries in the 'bed
' argument that contain > 1 percent missing data
are dropped.
A ggplot
object.
insulation_score
for calculating insulation
scores. call_TAD_insulation
for calling TADs on the
insulation score.
## Not run:
# Calculating insulation scores
ins <- tornado_insulation(list(WT_20kb, KO_20kb), window = 25)
# Calling TADs from the insulation score
tadlist <- call_TAD_insulation(ins)
# Plotting a heatmap
tornado_insulation(ins, tadlist$WT_20kb)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.