OpenScienceRender / mgf2svg

Draws content of a mgf file (mascot generic format; mass spectrometry) into svg

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

mgf2svg: View mgf files

Given a url pointing to a valid mgf file (Mascot Generic Format), prints the corresonding svg to stdout.

Installation:

## install python requirements (debian packages)
sudo apt-get install python-setuptools python-dev build-essential python-tk python-matplotlib
## install pyteomics (not in debian yet)
sudo pip install pyteomics

Usage:

./mgf2svg.py https://raw.githubusercontent.com/OpenScienceRender/ExampleData/master/test.mgf > output.svg

Know bugs/limitations:

Only the first spectrum in a mgf file is supported.

About

Draws content of a mgf file (mascot generic format; mass spectrometry) into svg

License:GNU General Public License v2.0


Languages

Language:Python 100.0%