hpaXmlTissueExprSum: Extract tissue expression and download images

View source: R/xml.R

hpaXmlTissueExprSumR Documentation

Extract tissue expression and download images

Description

Extract tissue expression information and url to download images from imported xml document resulted from hpaXmlGet(). 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

hpaXmlTissueExprSum(importedXml, downloadImg = FALSE)

Arguments

importedXml

Input an xml document object resulted from a hpaXmlGet() call.

downloadImg

Logical argument. The function will download all image from the extracted urls into the working folder.

Value

This function return a list consists of a summary string, which is a very brief description of the protein, and a tibble of 2 columns: tissue (name of tissue available) and imageUrl (link to download the perspective image)

See Also

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

Examples

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

## End(Not run)


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