Mercurial > repos > galaxyp > peptideshaker
annotate admin_scripts/build_species.py @ 58:07ff622ec007 draft
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/peptideshaker commit 0f6ab8b5647a33b2b051d7aa808ef42546436b23"
author | galaxyp |
---|---|
date | Sat, 10 Apr 2021 15:57:17 +0000 |
parents | bb0130ff73ce |
children |
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 |
55
bb0130ff73ce
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/peptideshaker commit f27e376ff604cd8faf57c63f25ddcfd61ca9db6a"
galaxyp
parents:
20
diff
changeset
|
5 for line in open(sys.argv[1]): |
20
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) |
55
bb0130ff73ce
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/peptideshaker commit f27e376ff604cd8faf57c63f25ddcfd61ca9db6a"
galaxyp
parents:
20
diff
changeset
|
10 print(line) |