Description Usage Arguments Details Value Author(s) Examples
View source: R/heatmapByChromosome.R
Check chromosome names and make sure chromosome names start with "chr" (or not if addChr is FALSE)
1 | checkChrName(grange, addChr = TRUE)
|
grange |
a GRanges object, character or named vector |
addChr |
Whether to add "chr" in front of chromosome names |
Because some annotation database names the chromosomes without "chr" prefix, while many others do, it causes problems when both types of data exist in the analysis. This function aims to resolve such issues by checking chromosome names and make sure chromosome names start with "chr" (or not if addChr is FALSE).
return the same type of object with chromosome names checked.
Pan Du
1 2 3 4 5 | data(exampleMethyGenoSet)
seqlevels(rowRanges(exampleMethyGenoSet))
tt <- checkChrName(exampleMethyGenoSet, addChr = TRUE)
seqlevels(rowRanges(tt))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.