
Last chance! 50% off unlimited learning
Sale ends in
"InteractionSet"(assays, interactions, ...)
"InteractionSet"(assays, interactions, ...)
SimpleList
of matrices, containing data for each interaction.
assays
.
SummarizedExperiment
.?SummarizedExperiment-class
for more details).
It also contains an additional interactions
slot which holds a GInteractions object (or an object from any derived classes, e.g., StrictGInteractions).
Each row of the InteractionSet object corresponds to a pairwise interaction between two genomic loci in interactions
.The constructor will return an InteractionSet object containing all of the specified information
- for InteractionSet,missing,missing-method
, an empty InteractionSet object is returned.
Note that any metadata
arguments will be placed in the metadata of the internal SummarizedExperiment object,
not the metadata of the internal GInteractions object.
This is consistent with the behaviour of similar classes like RangedSummarizedExperiment.
SummarizedExperiment
,
interaction-access
,
interaction-subset
,
interaction-compare
,
SummarizedExperiment-class
example(GInteractions, echo=FALSE)
Nlibs <- 4
counts <- matrix(rpois(Np*Nlibs, lambda=10), ncol=Nlibs)
colnames(counts) <- seq_len(Nlibs)
iset <- InteractionSet(counts, gi)
iset <- InteractionSet(counts, gi, colData=DataFrame(lib.size=1:Nlibs*1000))
iset <- InteractionSet(counts, gi, metadata=list(name="My Hi-C data"))
# Note differences in metadata storage:
metadata(iset)
metadata(interactions(iset))
Run the code above in your browser using DataLab