Mercurial > repos > galaxyp > peptideshaker
annotate admin_scripts/build_species.py @ 10:9d12b1d3c4ef draft
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/peptideshaker commit 04b529c9366e6b77f45bfaa44c1a7fac5772f5b9
| author | iracooke |
|---|---|
| date | Mon, 08 Jun 2015 19:54:30 -0400 |
| parents | a9e90cdcb97a |
| children | b72821cab1d7 |
| 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 |
|
a9e90cdcb97a
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/peptideshaker commit ceaef1a06c8600f9a042fc8f80f5b3fae75d4445-dirty
galaxyp
parents:
diff
changeset
|
5 for line in open( sys.argv[1] ): |
|
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) |
|
a9e90cdcb97a
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/peptideshaker commit ceaef1a06c8600f9a042fc8f80f5b3fae75d4445-dirty
galaxyp
parents:
diff
changeset
|
10 print line |
