GenomicInteractions (version 1.6.2)

getters: Functions to access data held in a GenomicInteractions object.

Description

Use these functions to access data stored in each of the slots of a GenomicInteractions object.

Usage

name(GIObject)
anchorOne(GIObject)
anchorTwo(GIObject)
interactionCounts(GIObject)
annotationFeatures(GIObject)
"name"(GIObject)
"description"(object)
"anchorOne"(GIObject)
"anchorTwo"(GIObject)
"interactionCounts"(GIObject)
"annotationFeatures"(GIObject)

Arguments

GIObject
A Gnteractions object
object
Object, possibly derived from class eSet-class.

Value

For 'anchorOne' and 'anchorTwo', a GRanges. For 'interactionCounts', a numeric vector with counts for each interaction in the object. For 'description' and 'name', a character vector with length 1. For 'annotationFeatures', a character vector of features with which the object was previously annotated, or 'NA' if the object is unannotated.

Examples

Run this code

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)

name(test)
description(test)
anchorOne(test)
anchorTwo(test)
interactionCounts(test)

Run the code above in your browser using DataCamp Workspace