As DMRforPairs looks at probes in close proximity to each other within each class, very specific annotations might result in too few probes per region per class and a subsequent drop in the number of identified regions and/or statistical power. This function therefore allows grouping and / or selection of classes of interest.
merge_classes(refgene_class,island_class,recode=1,sep=";")
DMRforPairs
DMRforPairs
The recode parameter can also be set to a custom recoding scheme (data.frame). For example: data.frame(c("gene","tss"),c("Body;5\'UTR;3\'UTR;1stExon","TSS1500;TSS200")). In this scheme the classes are merged into two categories: TSS or other gene region. Probes solely associated with CpG island-related classes are discarded. Probes not annotated to any of the 11 classes are always discarded by DMRforPairs, except when option 2 is used which collects all probes into one class (i.e. ignores classes). If classes are unknown an m x 1 character vector with "unknown.gene" and "unknown.island" for all m rows (probes) can be used for the refgene_class and island_class parameters respectively (set "recode" to 2!).
#merge_classes() is an integrated part of the DMRforPairs() wrapper and is
#not usually called by the user directly. Please see DMRforPairs() for
#an example.
Run the code above in your browser using DataLab