A MGF files reader with PLY
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()
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.