File: simpleParser.py

package info (click to toggle)
python-pymzml 0.7.6-dfsg-4
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 66,128 kB
  • ctags: 335
  • sloc: python: 2,428; makefile: 142; sh: 38
file content (12 lines) | stat: -rwxr-xr-x 261 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
#!/usr/bin/env python3.4
import pymzml
import sys
run = pymzml.run.Reader(sys.argv[1])
# print( run[10000].keys() )
for n, spec in enumerate( run ):
    print('Spectrum {0}, MS level {ms level}'.format(
        n,
        **spec ),
        end = '\r')

print()