getHpa {hpar} | R Documentation |
Queries one if the HPA data sets with the id
Ensembl
gene identifier. The data set to be used is defined by the
hpadata
argument.
getHpa(id, hpadata = NULL, type = c("data", "details"))
id |
A Ensembl gene identifier. |
hpadata |
A |
type |
A |
A data.frame
with the information corresponding to
the respective id
genes. If type
is
details
, then the dataframe
is returned
invisibly and a web page is opened with
browseURL
.
Laurent Gatto
id <- "ENSG00000000003" ## Define 'hpadata' data manually getHpa(id, hpadata = "hpaSubcellularLoc") head(getHpa(id, hpadata = "hpaNormalTissue"), ) head(getHpa(id, hpadata = "rnaGeneTissue")) head(getHpa(id, hpadata = "rnaGeneCellLine")) head(getHpa(id, hpadata = "hpaCancer")) ## Sets default to "SubcellularLoc" setHparOptions(hpadata = "hpaSubcellularLoc") getHpa(id) ## now uses "hpaSubcellularLoc" setHparOptions() ## reset to "hpaNormalTissue" head(getHpa(id)) ## multiple ids getHpa(id = c("ENSG00000000003", "ENSG00000000005"), hpadata = "hpaSubcellularLoc") ## Not run: ## opens a browser with http://www.proteinatlas.org/ENSG00000163435 getHpa("ENSG00000163435", type = "details") ## End(Not run)