Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
SOaAS
psot.repository
Commits
e2a4af22
Commit
e2a4af22
authored
Nov 28, 2017
by
hmueller
Browse files
Change organism type parameter from boolean to string type.
parent
8b8267bd
Changes
1
Hide whitespace changes
Inline
Side-by-side
scripts/run_targetp.py
View file @
e2a4af22
...
...
@@ -8,10 +8,10 @@ targetp_tool = config.load_config()['tools'].get('targetp', 'targetp')
parser
=
argparse
.
ArgumentParser
(
description
=
'Determine subcellular locations of eukaryotic amino acid sequences'
)
parser
.
add_argument
(
'--fasta'
,
'-f'
,
required
=
True
,
help
=
'A fasta file with amino acid sequences'
)
parser
.
add_argument
(
'--
plant'
,
'-p'
,
action
=
'store_t
rue
'
,
help
=
'
Wether sequences originate from plant
s'
)
parser
.
add_argument
(
'--
organism_group'
,
choices
=
[
'plant'
,
'non-plant'
],
required
=
T
rue
,
help
=
'
Define wether to use plant/non-plant network
s'
)
parser
.
add_argument
(
'--output'
,
required
=
True
,
help
=
'The output file'
)
args
=
parser
.
parse_args
()
plant
_flag
=
'-P'
if
args
.
plant
else
'-N'
org
_flag
s
=
{
'plant'
:
'-P'
,
'non-plant'
:
'-N'
}
system
(
targetp_tool
+
" "
+
plant_flag
+
" "
+
args
.
fasta
+
" > "
+
args
.
output
)
system
(
targetp_tool
+
" "
+
org_flags
[
args
.
organism_group
]
+
" "
+
args
.
fasta
+
" > "
+
args
.
output
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment