PXDataset-class: Class '"PXDataset"'

Description Objects from the Class Slots Details Methods Author(s) References Examples

Description

An S4 class to store and access information about ProteomeXchange (PX) data sets. Schema versions 1.0, 1.1 and 1.2 are supported and are documented on the PX code repository: https://code.google.com/p/proteomexchange/source/browse/schema/

Objects from the Class

Objects can be created with the constructor PXDataset.

Slots

id:

Object of class "character" storing the datasets unique identifier. Can be accessed with pxid().

formatVersion:

Object of class "character" storing the version of the ProteomeXchange schema.

Data:

Object of class "XMLNode" storing the ProteomeXchange description as XML node tree.

Details

From version 1.99.1 on, rpx uses the Bioconductor BiocFileCache package to automatically cache all downloaded ProteomeXchange files. When a file is downloaded for the first time, it is added to the cache. When already available, the file path to the cached file is returned. The rpx chache is returned by rpx:::.get_cache(). The user is asked to confirm its creation when data is first downloaded.

For more details on how to manage the cache (for example if some files need to be deleted), please refer to the BiocFileCache vignette.

Methods

pxfiles

signature(object = "PXDataset"): return a character of all available files.

pxget

signature(object = "PXDataset", list, ...): downloads the files from the ProteomeXchange repository. If list is missing, the file to be downloaded can be selected from a menu. If list = "all", all files are downloaded. The file names, as returned by pxfiles can also be used. Alternatively, a logical or numeric indices can be used.

If not already cached, the files are downloaded and added to the package cache. The function then returns the names of the files in the cache directory.

pxid

signature(object = "PXDataset"): returns the unique ProteomeXchange identifier.

pxref

signature(object = "PXDataset"): returns the reference associcated with the object.

pxtax

signature(object = "PXDataset"): returns the scientic taxonomic name of object.

pxurl

signature(object = "PXDataset": returns the base url on the ProteomeXchange server where pxfiles(object) reside.

show

signature(object = "PXDataset"): textual representation of object.

Author(s)

Laurent Gatto

References

Vizcaino J.A. et al. 'ProteomeXchange: globally co-ordinated proteomics data submission and dissemination', Nature Biotechnology 2014, 32, 223 – 226, doi:10.1038/nbt.2839.

Source repository for the ProteomeXchange project: https://code.google.com/p/proteomexchange/

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
px <- PXDataset("PXD000001")
px
pxtax(px)
pxurl(px)
pxref(px)
pxfiles(px)

fas <- pxget(px, "erwinia_carotovora.fasta")
fas
library("Biostrings")
readAAStringSet(fas)

rpx documentation built on March 14, 2021, 6:02 p.m.