hpaExport {HPAanalyze}R Documentation

Export the subset data

Description

Export the list object generated by hpaSubset() into xlsx format. Due to the size of some HPA datasets, as well as the limitation of the output format, exporting the full datasets generated by hpaDownload() is not recommended.

Usage

hpaExport(data, fileName, fileType = "xlsx")

Arguments

data

Input the list object generated by hpaSubset()

fileName

A string indicate the desired output file name

fileType

For compability of future development. Currently the only option is 'xlsx'

Value

This function will create an xlsx file which one individual spreadsheet for each datasets in the input list object.

See Also

Other downloadable datasets functions: hpaDownload, hpaSubset

Examples

  downloadedData <- hpaDownload(downloadList='all', version='example')
  geneList <- c('TP53', 'EGFR')
  tissueList <- c('breast', 'cerebellum', 'skin 1')
  cancerList <- c('breast cancer', 'glioma', 'melanoma')

  subsetData <- hpaSubset(data=downloadedData,
                           targetGene=geneList,
                           targetTissue=tissueList,
                           targetCancer=cancerList)
  hpaExport(data=subsetData,
            fileName='TP53_EGFR_in_tissue_cancer.xlsx',
            fileType='xlsx')


[Package HPAanalyze version 1.0.0 Index]