shaman_gplot_map_score
shaman_gplot_map_score(
points_score,
interval_range = NA,
rotate = TRUE,
point_size = 0.1,
add_axis = TRUE
)A dataframe containing the points (start1, start2) and their normalized score.
Data frame with the start and end of the range to plot. If NA, the range of start1 in points_score.
Binary flag, indicating if the plot should be rotated by 45 degrees.
Cex size of the points in the plot.
Binary flag, indicating if axis should be added to plot.
A ggplot object with the map.
Plots observed hic contact matrix color-coded by normalized scores.
Data can be either extracted directly from score track or computed via the functions:
shaman_score_hic_mat(), shaman_shuffle_and_score_hic_mat().
# Set misha db to test
library(misha)
gsetroot(shaman_get_test_track_db())
points <- gextract("hic_score", gintervals.2d(2, 176.5e06, 177e06, 2, 176.5e06, 177e06),
colnames = "score"
)
shaman_gplot_map_score(points)