annotate admin_scripts/build_species.py @ 48:b72821cab1d7 draft

"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/peptideshaker commit f27e376ff604cd8faf57c63f25ddcfd61ca9db6a"
author galaxyp
date Fri, 15 Jan 2021 14:05:46 +0000
parents a9e90cdcb97a
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
a9e90cdcb97a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/peptideshaker commit ceaef1a06c8600f9a042fc8f80f5b3fae75d4445-dirty
galaxyp
parents:
diff changeset
1 #!/usr/bin/env python
a9e90cdcb97a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/peptideshaker commit ceaef1a06c8600f9a042fc8f80f5b3fae75d4445-dirty
galaxyp
parents:
diff changeset
2
a9e90cdcb97a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/peptideshaker commit ceaef1a06c8600f9a042fc8f80f5b3fae75d4445-dirty
galaxyp
parents:
diff changeset
3 import sys
a9e90cdcb97a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/peptideshaker commit ceaef1a06c8600f9a042fc8f80f5b3fae75d4445-dirty
galaxyp
parents:
diff changeset
4
48
b72821cab1d7 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/peptideshaker commit f27e376ff604cd8faf57c63f25ddcfd61ca9db6a"
galaxyp
parents: 0
diff changeset
5 for line in open(sys.argv[1]):
0
a9e90cdcb97a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/peptideshaker commit ceaef1a06c8600f9a042fc8f80f5b3fae75d4445-dirty
galaxyp
parents:
diff changeset
6 line = line.strip()
a9e90cdcb97a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/peptideshaker commit ceaef1a06c8600f9a042fc8f80f5b3fae75d4445-dirty
galaxyp
parents:
diff changeset
7 if line and not line.startswith('>'):
a9e90cdcb97a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/peptideshaker commit ceaef1a06c8600f9a042fc8f80f5b3fae75d4445-dirty
galaxyp
parents:
diff changeset
8 name, id = line.split('\t')
a9e90cdcb97a planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/peptideshaker commit ceaef1a06c8600f9a042fc8f80f5b3fae75d4445-dirty
galaxyp
parents:
diff changeset
9 line = '<option value="%s">%s</option>' % (name, name)
48
b72821cab1d7 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/peptideshaker commit f27e376ff604cd8faf57c63f25ddcfd61ca9db6a"
galaxyp
parents: 0
diff changeset
10 print(line)