Description Usage Arguments Details Value Examples
This function adds metadata parallel to the regions
slot of a GenomicInteractions object.
1 2 3 4 5 | annotateRegions(GIObject, name, dat)
## S4 method for signature 'GenomicInteractions,character,vector'
annotateRegions(GIObject,
name, dat)
|
GIObject |
A GenomicInteractions object. |
name |
Character vector to be used as the column name. |
dat |
Vector of the same length as |
This function only works if both regions(GIObject, 1)
and regions(GIObject, 2)
are identical.
In cases where they are not identical, it doesn't make sense to assign a single dat
vector to the metadata.
NULL
is invisibly returned,
while the value passed as GIObject
is modified in the global namespace.
1 2 3 4 5 6 7 | data(hic_example_data)
hic_example_data <- updateObject(hic_example_data)
mcols(regions(hic_example_data, type=1))
chip <- runif(length(regions(hic_example_data, type=1)), max=1000)
annotateRegions(hic_example_data, "chip", chip)
mcols(regions(hic_example_data, type=1))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.