Description Usage Arguments Value Author(s) Examples
The function appends any annotation IDs included in the given annotation object to the given regions object. An annotation object can be retrived by the MEDIPS.getAnnotation function and the regions object is typically a (filtered) result table as returned by the MEDIPS.meth function. An annotation ID is appended to a genomic region if their genomic coordinates overlap by at least one base. There will be as many columns added to the regions object as overlapping annotations exist in the annotation object.
1 | MEDIPS.setAnnotation(regions, annotation, cnv=F)
|
regions |
a matrix that contains row-wise genomic regions, e.g. as a result of the MEDIPS.meth function. |
annotation |
the annotation data object contains the genomic coordinates of annotations. An annotation object can be e.g. retrived by the MEDIPS.getAnnotation function. |
cnv |
the MEDIPS.setAnnotation function is also internally used by the MEDIPS.addCNV function which automatically sets this parameter to TRUE. Otherwise cnv should be set to FALSE. |
The provided result object with added columns containing overlapping annotations.
Joern Dietrich, Matthias Lienhard
1 2 3 4 5 6 7 | library(MEDIPSData)
data(resultTable)
sig = MEDIPS.selectSig(results=resultTable, p.value=0.05, adj=TRUE, ratio=NULL, bg.counts=NULL, CNV=FALSE)
sig = MEDIPS.mergeFrames(frames=sig, distance=1)
#ens_gene = MEDIPS.getAnnotation( annotation="GENE",chr="chr22")
#sig = MEDIPS.setAnnotation(regions=sig, annotation=ens_gene)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.