Given a url pointing to a valid mgf
file (Mascot Generic Format), prints the corresonding svg
to stdout
.
## 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
./mgf2svg.py https://raw.githubusercontent.com/OpenScienceRender/ExampleData/master/test.mgf > output.svg
Only the first spectrum in a mgf
file is supported.