diff admin_scripts/build_species.py @ 20:2cafc729b2ae draft

planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/peptideshaker commit 0e976aeeed9d516e0ad4735dc847b1f2eba3532b
author iracooke
date Sun, 31 May 2015 09:05:57 -0400
parents
children bb0130ff73ce
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/admin_scripts/build_species.py	Sun May 31 09:05:57 2015 -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