Description Usage Arguments Details Value Examples
clusterMaker function based on spatial distance
1 | clusterMaker(chr, pos, maxGap = 500, names)
|
chr |
Chromosome vector |
pos |
position numeric vector |
maxGap |
max gap length between 2 probes within a region |
names |
probe names vector |
If you define the maxGap 500, so we can guarantee probes in different regions has distance >= maxGap. As the result, if we extend region upstream & downstream maxGap / 2, our extended regions have no overlap
cluster data.frame of length m(m probes). Probes within same region have same region identities list.
1 2 3 4 5 6 | require(IlluminaHumanMethylation450kanno.ilmn12.hg19)
Location <- data.frame(IlluminaHumanMethylation450kanno.ilmn12.hg19@data$Locations)
Probes <- rownames(Location)[rownames(Location) %in% rownames(dat.m)]
BED <- cbind(Location[Probes, 1:2])
BED <- cbind(BED, dat.m[Probes, 4:3])
cluster <- clusterMaker(chr = BED$chr, pos = BED$pos, maxGap = 1000, names = rownames(BED))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.