Mercurial > repos > galaxyp > maxquant
diff build_proteases_loc.py @ 0:d4b6c9eae635 draft
Initial commit.
author | galaxyp |
---|---|
date | Fri, 10 May 2013 17:22:51 -0400 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/build_proteases_loc.py Fri May 10 17:22:51 2013 -0400 @@ -0,0 +1,14 @@ +#!/usr/bin/env python + +import xml.etree.ElementTree as ET +from os.path import exists + +proteases_path = "proteases.xml" + +tree = ET.parse(proteases_path) +proteases_el = tree.getroot() + +with open("maxquant_proteases.loc", "w") as output: + for protease in proteases_el.getchildren(): + output.write("%s\n" % protease.attrib["name"]) +