A Python interface to the ProteomeXchange Repository
Project description
ppx: A Python interface to the ProteomeXchange Repository
Overview
The ppx package provides a simple means to access the ProteomeXchange repository from Python. Using ProteomeXchange identifiers, the user can retrieve metadata associated with a project and download project files from PRIDE.
ppx is largely based on the rpx R package by Laurent Gatto (Bioconductor and GitHub).
For full documentation and examples, visit: https://ppx.readthedocs.io
Installation
While ppx has not been released on the Python Package Index, you can install the development version directly from GitHub. The ppx package is only available for Python 3 and has only been tested with Python 3.5+. The ppx package only depends on packages in the Python Standard Library.
pip3 install ppx
Examples
First create a PXDataset object using a valid ProteomeXchange identifier:
dat = PXDataset("PXD000001")
We can then extract various data about the ProteomeXchange project from the PXDataset:
dat.pxref()
# ['Gatto L, Christoforou A. Using R and Bioconductor for proteomics data
# analysis. Biochim Biophys Acta. 2014 1844(1 pt a):42-51']
dat.pxurl()
# 'ftp://ftp.pride.ebi.ac.uk/pride/data/archive/2012/03/PXD000001'
dat.pxtax()
# ['Erwinia carotovora']
dat.pxfiles()
# ['F063721.dat', 'F063721.dat-mztab.txt',
# 'PRIDE_Exp_Complete_Ac_22134.xml.gz', 'PRIDE_Exp_mzData_Ac_22134.xml.gz',
# 'PXD000001_mztab.txt', 'README.txt',
# 'TMT_Erwinia_1uLSike_Top10HCD_isol2_45stepped_60min_01-20141210.mzML',
# 'TMT_Erwinia_1uLSike_Top10HCD_isol2_45stepped_60min_01-20141210.mzXML',
# 'TMT_Erwinia_1uLSike_Top10HCD_isol2_45stepped_60min_01.mzXML',
# 'TMT_Erwinia_1uLSike_Top10HCD_isol2_45stepped_60min_01.raw',
# 'erwinia_carotovora.fasta', 'generated']
Lastly, we can download files that we're interested in:
# Download "README.txt" to the "test" directory
dat.pxget(files = "README.txt", destDir = "test")
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ppx-0.1.0.tar.gz.
File metadata
- Download URL: ppx-0.1.0.tar.gz
- Upload date:
- Size: 4.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.4.0 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.7.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d98dabd31fd1579a7a9edf679269752fb3282f50b08298f000e1d78f29c901ad
|
|
| MD5 |
dd2b740a81ad2ac4e4b78c6632ce93e2
|
|
| BLAKE2b-256 |
e86402cd5627c7dde3d27e94fa4a91e3c5f6c92ed3ce4cd1b6cec8c0d76dfd50
|
File details
Details for the file ppx-0.1.0-py3-none-any.whl.
File metadata
- Download URL: ppx-0.1.0-py3-none-any.whl
- Upload date:
- Size: 4.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.4.0 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.7.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9c53f2958e79735057a5d0d86c3042d3b67026ac05f4b6c73a55b95ff2d57560
|
|
| MD5 |
2084e4ead34cc1401ad982f732d61538
|
|
| BLAKE2b-256 |
da2b0719c2eb841b84ef3ca11ad0ded418069faf5101498e57923858eede774e
|