Skip to main content

A Python interface to the ProteomeXchange Repository

Project description

Build Status Documentation Status

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ppx-0.1.0.tar.gz (4.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ppx-0.1.0-py3-none-any.whl (4.7 kB view details)

Uploaded Python 3

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

Hashes for ppx-0.1.0.tar.gz
Algorithm Hash digest
SHA256 d98dabd31fd1579a7a9edf679269752fb3282f50b08298f000e1d78f29c901ad
MD5 dd2b740a81ad2ac4e4b78c6632ce93e2
BLAKE2b-256 e86402cd5627c7dde3d27e94fa4a91e3c5f6c92ed3ce4cd1b6cec8c0d76dfd50

See more details on using hashes here.

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

Hashes for ppx-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9c53f2958e79735057a5d0d86c3042d3b67026ac05f4b6c73a55b95ff2d57560
MD5 2084e4ead34cc1401ad982f732d61538
BLAKE2b-256 da2b0719c2eb841b84ef3ca11ad0ded418069faf5101498e57923858eede774e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page