File: simpleParser_d.py

package info (click to toggle)
python-mzml 0.7.4-dfsg-3
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 996 kB
  • ctags: 160
  • sloc: python: 1,807; makefile: 133; sh: 18
file content (7 lines) | stat: -rwxr-xr-x 217 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
#!/usr/bin/env python3.2
import pymzml, sys
run = pymzml.run.Reader(sys.argv[1])
with open("pyOutput.txt","w") as io:
    for spec in run:
        for m,i in spec.peaks:
            io.write("{0}\t{1}\n".format(m,i))