Mercurial > repos > galaxyp > maxquant
view 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 source
#!/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"])