view admin_scripts/build_species.py @ 42:db94678bef46 draft default tip

Fix datatypes for searchgui input and output
author iracooke
date Wed, 06 May 2015 06:18:24 -0400
parents b6f4f4689f5f
children
line wrap: on
line source

#!/usr/bin/env python

import sys

for line in open( sys.argv[1] ):
    line = line.strip()
    if line and not line.startswith('>'):
        name, id = line.split('\t')
        line = '<option value="%s">%s</option>' % (name, name)
    print line