hpaXmlGet: Download and import xml file

View source: R/xml.R

hpaXmlGetR Documentation

Download and import xml file

Description

Download and import individual xml file for a specified protein. This function calls xml2::read_xml() under the hood. It is important to note that the data that HPA provides on their website and through xml files are not one-to-one equivalents.

Usage

hpaXmlGet(targetEnsemblId, version = "latest")

Arguments

targetEnsemblId

A string of one ensembl ID, start with ENSG. For example 'ENSG00000131979'. You can also use HGNC gene symbol and it will be converted to ensembl id.

version

A string indicate which version to be downloaded. Possible value:

  • 'latest': Download latest version.

  • 'v?' with '?' is a integer: Download a specific version of the dataset. For example: 'v18' download version 18. Currently support version 13 and above.

Value

This function return an object of class "xml_document" "xml_node" containing the content of the imported XML file. (See documentations for package xml2 for more information.)

See Also

Other xml functions: hpaXmlAntibody(), hpaXmlProtClass(), hpaXmlTissueExprSum(), hpaXmlTissueExpr(), hpaXml()

Examples

## Not run: 
  GCH1xml <- hpaXmlGet('ENSG00000131979')

## End(Not run)


anhtr/HPAanalyze documentation built on June 3, 2023, 2:19 a.m.