Skip to main content
Warning: You are using the test version of PyPI. This is a pre-production deployment of Warehouse. Changes made here affect the production instance of TestPyPI (
Help us improve Python packaging - Donate today!

A MGF files reader with PLY

Project Description

This project allow you to read/parse MGF files.

If you find a bug, have a problem to parse a MGF file or have a feature request please crease an issue on github ( and provid the MGF file causing the issue

it’s use like :

from plymgf.mgfreader import MGFReader

res = MGFReader(‘path_to_your_file.mgf’)

To have the same behaviour than in previous versions do

data = res.get_raw_data()
You can get some metadata with the methods:
  • get_cle
  • get_accession
  • get_itol
  • get_itolu
  • get_mass
  • get_precursor
  • get_seg
  • get_taxonomy
  • get_usermail
  • get_charge

By default you are on the first ions; To go on the next one use the method “next_ion”. If you are on the last ions the method will also return 1.

You can get some ions data with the methods:
  • get_ion_charge
  • get_ion_pepmass
  • get_ion_rtinseconds
  • get_ion_seq
  • get_ion_title
  • get_ion_tol
  • get_ion_tolu
  • get_ion_peaks
Release History

Release History

This version
History Node


Download Files

Download Files

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

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
plymgf-0.2.8.tar.gz (15.5 kB) Copy SHA256 Checksum SHA256 Source Feb 4, 2017

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting