Mercurial > repos > galaxyp > maxquant
annotate build_proteases_loc.py @ 0:d4b6c9eae635 draft
Initial commit.
| author | galaxyp |
|---|---|
| date | Fri, 10 May 2013 17:22:51 -0400 |
| parents | |
| children |
| rev | line source |
|---|---|
| 0 | 1 #!/usr/bin/env python |
| 2 | |
| 3 import xml.etree.ElementTree as ET | |
| 4 from os.path import exists | |
| 5 | |
| 6 proteases_path = "proteases.xml" | |
| 7 | |
| 8 tree = ET.parse(proteases_path) | |
| 9 proteases_el = tree.getroot() | |
| 10 | |
| 11 with open("maxquant_proteases.loc", "w") as output: | |
| 12 for protease in proteases_el.getchildren(): | |
| 13 output.write("%s\n" % protease.attrib["name"]) | |
| 14 |
