This function processes interaction data for visualization with geom_link.
It formats the data for use with ggplot2.
Usage
process_interaction_data(
gr,
anchor1 = "anchor1",
anchor2 = "anchor2",
score = "score"
)
Arguments
- gr
A GRanges or GInteractions object with interaction data
- anchor1
Column name for the first anchor (default: "anchor1")
- anchor2
Column name for the second anchor (default: "anchor2")
- score
Column name for interaction score (default: "score")
Value
A data frame with interaction information
Examples
if (FALSE) { # \dontrun{
library(rtracklayer)
gr <- import("interactions.bedpe")
interaction_data <- process_interaction_data(gr)
} # }