Skip to main content

Python Client library for PRIDE Rest API

Project description

pridepy: Python client for PRIDE Archive database

PyPI version Upload Python Package Python package

Python Client library for PRIDE Rest API

Installation

To install, simply use pip:

$ pip install --upgrade pridepy

Examples

Download all the raw files from a dataset(eg: PXD012353). Warning: Raw files are generally large in size, so it may take some time to download depending on the number of files and file sizes.

$ pridepy download-all-raw-files -a PXD012353 -o /Users/yourname/Downloads/foldername/

Download single file by name

$ pridepy download-files-by-name -a PXD022105 -o /Users/yourname/Downloads/foldername/ -f checksum.txt

Search projects with keywords and filters

$ pridepy search-projects-by-keywords-and-filters --keyword accession:PXD012353

Search files with filters

$ pridepy get-files-by-filter --filter fileCategory.value==RAW

Search protein-evidences with keywords and filters

$ pridepy search-protein-evidences --project_accession PXD012353

Search spectra-evidences with keywords and filters

$ pridepy search-spectra-evidences --usi "mzspec:PXD019317:sh_5282_HYK_101018_Mac_D_25mM.mzML:scan:10138:YAAMVTC[UNIMOD:4]MDEAVRNITWALKR/3"

Use below command to view list of commands available

$ python3 pridepy.py --help

  download-all-raw-files          
  download-files-by-name          
  get-files-by-filter             
  get-files-by-project-accession  
  get-projects                    
  get-projects-by-accession       
  get-reanalysis-projects-by-accession
  get-similar-projects-by-accession
  search-peptide-evidences        
  search-projects-by-keywords-and-filters
  search-protein-evidences       
  search-spectra-evidences        
  update-metadata                 

NOTE

Please make sure you are using Python3, not Python 2.7 version.

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

pridepy-0.0.2.tar.gz (13.0 kB view hashes)

Uploaded Source

Built Distribution

pridepy-0.0.2-py3-none-any.whl (21.7 kB view hashes)

Uploaded Python 3

Supported by

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