setters: Functions to set data held in a GInteractions object.

Description Usage Arguments Value Examples

Description

Use these functions to set data stored in each of the slots of a GInteractions object.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
name(GIObject) <- value

interactionCounts(GIObject) <- value

## S4 replacement method for signature 'GInteractions'
name(GIObject) <- value

## S4 replacement method for signature 'GInteractions,ANY'
description(object) <- value

## S4 replacement method for signature 'GInteractions'
interactionCounts(GIObject) <- value

Arguments

GIObject

A GenomicInteractions object

value

A vector to replace a slot in the object

object

Object, possibly derived from class eSet-class.

Value

GenomicInteractions object

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
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, experiment_name="test", 
                           description="this is a test", counts=interaction_counts)

name(test) <- "Mouse test"
name(test)

description(test) <- "This is a test using the mouse genome"
description(test)

interactionCounts(test) <- c(2,3,8,5)
interactionCounts(test)

Bioconductor-mirror/GenomicInteractions documentation built on June 23, 2017, 6:23 p.m.