hpaDownload: Download datasets

Description Usage Arguments Value See Also Examples

View source: R/download.R

Description

Download the latest version of HPA datasets and import them in R. It is recommended to only download the datasets you need, as some of them may be very big.

Usage

1
hpaDownload(downloadList = "histology", version = "latest")

Arguments

downloadList

A vector or string indicate which datasets to download. Possible value:

  • 'Normal tissue'

  • 'Pathology'

  • 'Subcellular location'

  • 'RNA tissue'

  • 'RNA cell line'

  • 'RNA transcript tissue'

  • 'RNA transcript cell line'

  • 'all': download everything

  • 'histology': same as c('Normal tissue', 'Pathology', 'Subcellular location')

  • 'rna': same as c('RNA tissue', 'RNA cell line')

  • 'isoform': same as c('RNA transcript tissue', 'RNA transcript cell line')

See https://www.proteinatlas.org/about/download for more information.

version

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

  • 'latest': Download latest version. Require Internet connection.

  • 'example': Load the example dataset from 'HPA analyze' ('hpa_histology_data'). Does not contain rna or isoform data.

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

Value

This function will return a list of tibbles corresponding to requested datasets.

See Also

hpaDownload hpa_histology_data

Other downloadable datasets functions: hpaExport(), hpaSubset()

Examples

1
2
3
  downloadedData <- hpaDownload(downloadList='all', version='example')
  summary(downloadedData)
  

Example output

                     Length Class  Mode
normal_tissue         6     tbl_df list
pathology            11     tbl_df list
subcellular_location 14     tbl_df list

HPAanalyze documentation built on Nov. 26, 2020, 2:01 a.m.