GenomicInteractions: Function to create a GenomicInteractions object

Description Usage Arguments Value Examples

Description

Create GenomicInteractions objects from two GRanges ojects.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
GenomicInteractions(anchor1, anchor2, counts, ...)

## S4 method for signature 'GRanges,GRanges,numeric'
GenomicInteractions(anchor1, anchor2, counts, ...)

## S4 method for signature 'GInteractions,ANY,ANY'
GenomicInteractions(anchor1)

## S4 method for signature 'GInteractions,numeric,ANY'
GenomicInteractions(anchor1, anchor2)

## S4 method for signature 'numeric,numeric,GRanges'
GenomicInteractions(anchor1, anchor2, counts, ...)

## S4 method for signature 'GRanges,GRanges,GenomicRanges_OR_missing'
GenomicInteractions(anchor1, anchor2, counts, ...)

## S4 method for signature 'missing,missing,GenomicRanges_OR_missing'
GenomicInteractions(anchor1, anchor2, counts, ...)

## S4 method for signature 'ANY,ANY,ANY'
GenomicInteractions(anchor1, anchor2, counts, ...)

Arguments

anchor1, anchor2

GRanges objects.

counts

An integer vector, defaults to 1.

...

Additional data to be added to mcols

Value

a GenomicInteractions object

Examples

1
2
3
4
5
6
library(GenomicRanges)

anchor.one = GRanges(c('chr1', 'chr1', 'chr1', 'chr1'), IRanges(c(10, 20, 30, 20), width=5))
anchor.two = GRanges(c('chr1', 'chr1', 'chr1', 'chr2'), IRanges(c(100, 200, 300, 50), width=5))
interaction_counts = sample(1:10, 4)
test <- GenomicInteractions(anchor.one, anchor.two, counts=interaction_counts)

GenomicInteractions documentation built on Nov. 8, 2020, 8:19 p.m.