| chromLocation-class {annotate} | R Documentation |
This class provides chromosomal information provided by a Bioconductor metadata package. By creating the object once for a particular package, it can be used in a variety of locations without the need to recomputed values repeatedly.
new('chromLocation',
organism = ...., # Object of class character
dataSource = ...., # Object of class character
chromLocs = ...., # Object of class list
probesToChrom = ...., # Object of class ANY
chromInfo = ...., # Object of class numeric
geneSymbols = ...., # Object of class ANY
)
organism:dataSource:chromLocs:probesToChrom:chromInfo:geneSymbols:
have_ann_pkg <- suppressWarnings(require("hgu95av2.db", quietly=TRUE))
if (!have_ann_pkg)
have_ann_pkg <- suppressWarnings(require("hgu95av2", quietly=TRUE))
if (have_ann_pkg) {
z <- buildChromLocation("hgu95av2")
## find the number of chromosomes
nChrom(z)
## Find the names of the chromosomes
chromNames(z)
## get the organism this object refers to
organism(z)
## get the lengths of the chromosomes in this object
chromLengths(z)
} else print("This example requires the hgu95av2.db or hgu95av2 package")