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.

pip install git+git://github.com/wfondrie/ppx.git  

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.0.1.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.0.1-py3-none-any.whl (4.7 kB view details)

Uploaded Python 3

File details

Details for the file ppx-0.0.1.tar.gz.

File metadata

  • Download URL: ppx-0.0.1.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.0.1.tar.gz
Algorithm Hash digest
SHA256 52ff68a86d9af69a080beaa075b96a7cb52f6fdac771c1f76091521d305585b7
MD5 1e56751e4eaedbd6f215b84c45b56fbc
BLAKE2b-256 5cc705197432babb574366e457ae639e31cfc96fbe0947190df43ba0a111d9f1

See more details on using hashes here.

File details

Details for the file ppx-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: ppx-0.0.1-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.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 da180a433f16914b4547bc28a5258d217ea43e90a4169c2675841b5e6ece2de9
MD5 8217ea31b3efc5dff0f2ae5170c2164d
BLAKE2b-256 9948722e7a91fef05b034c7d04e3f7f8e52c338049331682ccb1910e91bfaff9

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