## load an example of IcaSet
data(icaSetCarbayo)
params <- buildMineICAParams()
require(hgu133a.db)
####===================================================
## Use of annotation package contained in annotation(icaSet)
####====================================================
## annotation in SYMBOL
icaSetCarbayo_annot <- annotFeaturesComp(icaSet=icaSetCarbayo, params=params, type="SYMBOL")
# arg 'type' is optional since the function uses contents of typeID(icaSet) as the defaults,
# it is specified in these examples for pedagogy views
## annotation in Entrez Gene
icaSetCarbayo_annot <- annotFeaturesComp(icaSet=icaSetCarbayo, params=params, type="ENTREZID")
## Not run:
# ####===================================================
# ## Use of biomaRt, when annotation(icaSet) is of length 0
# ####====================================================
# ## empty attribute 'annotation' of the IcaSet object
# # when this attribute is not specified, biomaRt is used for annotation
# annotation(icaSetCarbayo) <- character()
#
# # make sure the mart attribute is correctly defined
# mart(icaSetCarbayo) <- useMart(biomart="ensembl", dataset="hsapiens_gene_ensembl")
#
# ## make sure elements "featureID_biomaRt" and "geneID_biomaRt" of typeID(icaSet) are correctly filled
# # they will be used by function 'annotFeaturesComp' through biomaRt to query the database
# typeID(icaSetCarbayo)
#
# ## run annotation of HG-U133A probe set IDs into Gene Symbols using biomaRt
# icaSetCarbayo_annot <- annotFeaturesComp(icaSet=icaSetCarbayo, params=params)
#
# ## End(Not run)
Run the code above in your browser using DataLab