graph_clusters: Generate a graph from integrations sites within a specified...

Description Usage Arguments Details Author(s) Examples

View source: R/graph_clusters.R

Description

Given a set of integration sites, this function generates a partial undirected graph of integration sites where nodes are the specific sites (one row from the GRanges object input) and edges mark which sites are within the gap distance from eachother. To generate the partial graph, nodes are broken into two groups, axil nodes and nodes. Axil nodes are the first occurances (or left most occurance) of the unique integration sites (chromsome + strand + position) which cluster together. Nodes are all other occurances, which are always connected to one axil node by definition.

Usage

1
graph_clusters(sites, gap)

Arguments

sites

a GRanges object where each row is a single integration site or range.

gap

an integer specifying the distance to consider between sites to call an edge.

Details

graph_clusters generates a partial undirected graph connecting each integration sites within a specified genomic gap distance.

Author(s)

Christopher Nobles, Ph.D.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
sites <- GRanges(
  seqnames = rep("chr1", 7),
  ranges = IRanges(
    start = c(50, 49, 44, 50, 50, 50, 60),
    width = seq(20, 26, 1)),
  strand = rep("+", 7))

graph <- graph_clusters(sites, gap = 5L)

plot.igraph(graph)

cnobles/gintools documentation built on Aug. 22, 2019, 10:36 a.m.