Mercurial > repos > jjohnson > peptideshaker
diff admin_scripts/build_species.py @ 0:8b99cb00e1c4 draft
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/peptideshaker commit 3c83b8f8ca60d6399bc5dd7096b830ca1f1c457e-dirty
| author | jjohnson |
|---|---|
| date | Tue, 15 May 2018 14:50:35 -0400 |
| parents | |
| children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/admin_scripts/build_species.py Tue May 15 14:50:35 2018 -0400 @@ -0,0 +1,10 @@ +#!/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
