This function is the umbrella function for the hpaXml function family. It take the input of either one Ensembl gene id or a imported XML object resulting from a hpaXmlGet() function call. By default, it will extract all information available for HPAanalyze user from the XML file by calling every hpaXml function and put all results into a list.

hpaXml(
  inputXml,
  extractType = c("ProtClass", "TissueExprSum", "Antibody", "TissueExpr"),
  ...
)

Arguments

inputXml

Input can be either one Ensembl gene id (start with ENSG) or a imported XML object resulting from a hpaXmlGet() function call. You can also use HGNC gene symbol and it will be converted to ensembl id.

extractType

A vector of strings indicate which information is desired for extraction. By default this function will call all hpaXml functions available. Other options are 'ProtClass', 'TissueExprSum', 'Antibody', 'TissueExpr'.

...

Additional arguments to be passed downstream to other hpaXml functions being called behind the scene. See help files of other hpaXml functions for more information.

Value

This function returns a list. Each element of the list is information extracted from the XML file specified using other hpaXml functions. See help file for each XML function for more information.

See also

Examples

hpaXml(inputXml='ENSG00000131979', extractType=c('ProtClass', 'TissueExprSum', 'Antibody'))
#> $ProtClass #> # A tibble: 11 x 4 #> source id parent_id name #> <chr> <chr> <chr> <chr> #> 1 NA Ez NA Enzymes #> 2 ENZYME Ec Ez ENZYME proteins #> 3 ENZYME Eh Ec Hydrolases #> 4 HPA Za NA Predicted intracellular proteins #> 5 HPA Zm Za Intracellular proteins predicted by MDM and MDS~ #> 6 UniProt Dr NA Disease related genes #> 7 HPA Pd NA Potential drug targets #> 8 UniProt Ua NA UniProt - Evidence at protein level #> 9 neXtProt Nx NA Mapped to neXtProt #> 10 neXtProt Na Nx neXtProt - Evidence at protein level #> 11 Peptideatlas Ep NA Protein evidence (Peptideatlas) #> #> $TissueExprSum #> $TissueExprSum$summary #> [1] "Cytoplasmic and nuclear expression in several tissues, most abundant in basal cells of squamous epithelia." #> #> $TissueExprSum$img #> # A tibble: 7 x 2 #> tissue imageUrl #> <chr> <chr> #> 1 Liver http://images.proteinatlas.org/28612/64078_A_8_4_rna_selected~ #> 2 Colon http://images.proteinatlas.org/28612/64078_A_7_3_rna_selected~ #> 3 Kidney http://images.proteinatlas.org/28612/64078_A_7_5_rna_selected~ #> 4 Testis http://images.proteinatlas.org/28612/64078_A_4_6_rna_selected~ #> 5 Lymph node http://images.proteinatlas.org/28612/64078_A_8_8_rna_selected~ #> 6 Cerebral cortex http://images.proteinatlas.org/28612/64078_B_8_5_rna_selected~ #> 7 Vagina http://images.proteinatlas.org/28612/64078_B_2_2_rna_selected~ #> #> #> $Antibody #> # A tibble: 1 x 4 #> id releaseVersion releaseDate RRID #> <chr> <chr> <chr> <chr> #> 1 HPA028612 6 2010-03-26 AB_10602135 #>