Description Usage Arguments Value Examples
Use these functions to set data stored in the slots of a GenomicInteractions object.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | name(GIObject) <- value
interactionCounts(GIObject) <- value
## S4 replacement method for signature 'GenomicInteractions'
name(GIObject) <- value
## S4 replacement method for signature 'GenomicInteractions,ANY'
description(object) <- value
## S4 replacement method for signature 'GenomicInteractions'
interactionCounts(GIObject) <- value
## S4 replacement method for signature 'GenomicInteractions'
seqinfo(x, new2old = NULL,
pruning.mode = c("error", "coarse", "fine", "tidy")) <- value
|
GIObject |
A GenomicInteractions object |
value |
A vector to replace a slot in the object |
object |
Object, possibly derived from class |
x |
The object from/on which to get/set the sequence information. |
new2old |
The
If |
pruning.mode |
When some of the seqlevels to drop from
See the "B. DROP SEQLEVELS FROM A LIST-LIKE OBJECT" section in the examples below for an extensive illustration of these pruning modes. |
GenomicInteractions object
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | 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,
metadata=list(experiment_name="test", description="this is a test"),
counts=interaction_counts)
metadata(test)
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.