Skip to main content

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 (https://github.com/Astyan-42/plymgf) 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 files for plymgf 0.2.8

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for plymgf 0.2.8
File Size Uploaded
plymgf-0.2.8.tar.gz 15.5 kB Details

Release files / plymgf-0.2.8.tar.gz

Download URL plymgf-0.2.8.tar.gz
Size 15.5 kB
Tags Source
SHA-256 checksum
How to use checksums
4151c778ab610ba317792cf7a6cddb32f119fb1d76004e7cb33886a76e34a6b7
BLAKE2b-256 checksum
How to use checksums
204e2be915ef4f9f1f1083096344124318001425ab5254b8fa54d9e1619c14a5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.2.8 This release

1 release file

0.2.4

1 release file

0.2.3

1 release file

0.2.2

1 release file

0.2.1

1 release file

0.2.0

1 release file

0.1.9

1 release file

0.1.8

1 release file

0.1.7

1 release file

0.1.6

1 release file

0.1.5

1 release file

0.1.4

1 release file

0.1.3

1 release file

0.1.1

1 release file

0.1.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page