Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
psot.repository
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
SOaAS
psot.repository
Commits
158711ed
Commit
158711ed
authored
6 years ago
by
Lukas Jelonek
Browse files
Options
Downloads
Patches
Plain Diff
Move repository parameter to main parser. Improve debug output
parent
7429e324
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
psot/main.py
+3
-3
3 additions, 3 deletions
psot/main.py
with
3 additions
and
3 deletions
psot/main.py
+
3
−
3
View file @
158711ed
...
...
@@ -7,15 +7,16 @@ import shutil
from
psot.nextflow
import
setup_execution_directory
,
execute_analysis
import
tempfile
import
sys
import
json
def
main
():
parser
=
argparse
.
ArgumentParser
(
description
=
'
Make bioinformatic observations on aminoacid sequences
'
)
parser
.
set_defaults
(
func
=
help
)
parser
.
add_argument
(
'
--repository
'
,
'
-r
'
,
action
=
'
append
'
,
help
=
'
Include the given repository
'
)
subparsers
=
parser
.
add_subparsers
()
info_parser
=
subparsers
.
add_parser
(
'
info
'
)
info_parser
.
add_argument
(
'
--listanalyses
'
,
'
-l
'
,
action
=
'
store_true
'
,
help
=
'
Show available analysis steps
'
)
info_parser
.
add_argument
(
'
--repository
'
,
'
-r
'
,
action
=
'
append
'
,
help
=
'
Include the given repository
'
)
info_parser
.
set_defaults
(
func
=
info
)
analyze_parser
=
subparsers
.
add_parser
(
'
analyze
'
)
...
...
@@ -29,7 +30,6 @@ def main():
analyze_parser
.
add_argument
(
'
--debug
'
,
'
-d
'
,
action
=
'
store_true
'
,
help
=
'
Debug mode, computation directory will not be removed after computation
'
)
analyze_parser
.
add_argument
(
'
--execution_dir
'
,
'
-e
'
,
help
=
'
Use the specified execution directory and do not delete it after the computation
'
)
analyze_parser
.
add_argument
(
'
--use_cluster
'
,
'
-C
'
,
action
=
'
store_true
'
,
help
=
'
Use compute cluster for execution
'
)
analyze_parser
.
add_argument
(
'
--repository
'
,
'
-r
'
,
action
=
'
append
'
,
help
=
'
Include the given repository
'
)
analyze_parser
.
set_defaults
(
func
=
analyze
)
args
=
parser
.
parse_args
()
...
...
@@ -49,7 +49,7 @@ def analyze(args, config):
sys
.
exit
(
1
)
execution
=
generate_execution
(
config
,
args
)
if
args
.
debug
:
print
(
execution
)
print
(
json
.
dumps
(
execution
,
indent
=
2
)
)
setup_execution_directory
(
execution
)
execute_analysis
(
execution
)
cleanup
(
execution
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment