Mercurial > repos > galaxyp > peptideshaker
annotate admin_scripts/build_species.py @ 54:7fdd9119cc4f draft
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/peptideshaker commit e17bb5a0e4a22c7376b2e7a70cf690262a44a0c6"
author | galaxyp |
---|---|
date | Thu, 20 Feb 2020 05:51:38 -0500 |
parents | 2cafc729b2ae |
children | bb0130ff73ce |
rev | line source |
---|---|
20
2cafc729b2ae
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/peptideshaker commit 0e976aeeed9d516e0ad4735dc847b1f2eba3532b
iracooke
parents:
diff
changeset
|
1 #!/usr/bin/env python |
2cafc729b2ae
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/peptideshaker commit 0e976aeeed9d516e0ad4735dc847b1f2eba3532b
iracooke
parents:
diff
changeset
|
2 |
2cafc729b2ae
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/peptideshaker commit 0e976aeeed9d516e0ad4735dc847b1f2eba3532b
iracooke
parents:
diff
changeset
|
3 import sys |
2cafc729b2ae
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/peptideshaker commit 0e976aeeed9d516e0ad4735dc847b1f2eba3532b
iracooke
parents:
diff
changeset
|
4 |
2cafc729b2ae
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/peptideshaker commit 0e976aeeed9d516e0ad4735dc847b1f2eba3532b
iracooke
parents:
diff
changeset
|
5 for line in open( sys.argv[1] ): |
2cafc729b2ae
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/peptideshaker commit 0e976aeeed9d516e0ad4735dc847b1f2eba3532b
iracooke
parents:
diff
changeset
|
6 line = line.strip() |
2cafc729b2ae
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/peptideshaker commit 0e976aeeed9d516e0ad4735dc847b1f2eba3532b
iracooke
parents:
diff
changeset
|
7 if line and not line.startswith('>'): |
2cafc729b2ae
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/peptideshaker commit 0e976aeeed9d516e0ad4735dc847b1f2eba3532b
iracooke
parents:
diff
changeset
|
8 name, id = line.split('\t') |
2cafc729b2ae
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/peptideshaker commit 0e976aeeed9d516e0ad4735dc847b1f2eba3532b
iracooke
parents:
diff
changeset
|
9 line = '<option value="%s">%s</option>' % (name, name) |
2cafc729b2ae
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/peptideshaker commit 0e976aeeed9d516e0ad4735dc847b1f2eba3532b
iracooke
parents:
diff
changeset
|
10 print line |