Skip to content

Astyan-42/plymgf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

67 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A MGF parser

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

You can use it on a file with :

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published