Description Usage Arguments Details Value Author(s) See Also Examples
Adds or replaces a region annotation table.
1 | rnb.set.annotation(type, regions, description = NULL, assembly = "hg19")
|
type |
One-element |
regions |
BED file defining regions (see Details). Alternatively, the value of this parameter can be
a table of genomic regions in the form of a |
description |
Optional; short description in the form of a non-empty |
assembly |
Genome assembly of interest. See |
In case the parameter regions
specifies an existing BED file, regions are loaded from this file. The number of
columns defined must be at least 3. Columns after the sixth one, if present, are dropped. The columns are given the
following names: "chromosome"
, "start"
, "end"
, "id"
, "score"
and "strand"
.
The annotation tables in RnBeads focus on chromosomes "chr1"
, "chr2"
, ..., "chr22"
,
"chrX"
and "chrY"
. Regions on other chromosomes are ignored. This function also recognizes the
convention of chromosome names such as "1"
, adopted, for example, by Ensembl.
Apart from this, the region definition table is not examined in details by this function; therefore, regions located
on unsupported chromosomes or having invalid (e.g. negative) genomic coordinates are simply not mapped to any sites
or probes.
Invisibly, TRUE
if an existing annotation was replaced and FALSE
otherwise.
Yassen Assenov
rnb.get.annotation
for extracting annotation;
rnb.region.types
for all loaded region types in a genome assembly
1 2 3 4 5 6 7 | my.regions <- data.frame(
chromosome = c("chr1", "chr1"),
start = c(49242278L, 49242372L),
end = c(49242590L, 49242810L),
rownames = c("BEND5E1", "CpG:38"))
txt <- "First exon of the BEND5 gene and an overlapping CpG island."
rnb.set.annotation("my regions", my.regions, txt)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.