Description Usage Arguments Details Value Author(s) See Also Examples
Return the GC content for each probe
1 |
dat |
a TilingFeatureSet object |
type |
pm or bg probes |
idx |
An optional vector of probe indices for which to return GC content. If not specified, values for all pm (or bg) probes will be returned. |
This function returns the sum of #G + #C in the pm or bg probes.
a numeric vector
Martin Aryee <aryee@jhu.edu>
1 2 3 4 5 6 7 8 9 10 | if (require(charmData)) {
phenodataDir <- system.file("extdata", package="charmData")
pd <- read.delim(file.path(phenodataDir, "phenodata.txt"))
pd <- subset(pd, sampleID=="441_liver")
dataDir <- system.file("data", package="charmData")
setwd(dataDir)
rawData <- readCharm(files=pd$filename, sampleKey=pd)
ngc <- countGC(rawData)
head(ngc)
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.