Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
IMP
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
External wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
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
IMP-dev
IMP
Commits
1a76fca8
Commit
1a76fca8
authored
9 years ago
by
Yohan Jarosz
Browse files
Options
Downloads
Patches
Plain Diff
add --ask param
parent
a8ec898c
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
IMP
+4
-4
4 additions, 4 deletions
IMP
with
4 additions
and
4 deletions
IMP
+
4
−
4
View file @
1a76fca8
...
...
@@ -16,7 +16,7 @@ __doc__ = """Integrated Metaomic Pipeline.
(____)(_/\/\_)(__)
Usage:
IMP [-m MG1 -m MG2] [-t MT1 -t MT2] -o OUTPUT [--enter] [--norm] [-n CONTAINER] [-d DBPATH] [-e ENV] ... [COMMANDS ...]
IMP [-m MG1 -m MG2] [-t MT1 -t MT2] -o OUTPUT [--enter] [--norm]
[--ask]
[-n CONTAINER] [-d DBPATH] [-e ENV] ... [COMMANDS ...]
IMP --init [-d DBPATH]
IMP (-h | --help)
IMP --version
...
...
@@ -26,6 +26,7 @@ Options:
--enter Enter the container
--init Initialize IMP databases (Take a while)
--norm Don
'
t delete the container after use. Useful for debugging.
--ask Ask to create directory if it desn
'
t exist.
-h --help Show this help and exit
-m MG Path to the metagenomics paired files (must be 2 files).
-t MT Path to the metatranscriptomic paired files (2 files).
...
...
@@ -97,10 +98,9 @@ def run(args):
output
=
Path
(
args
[
'
-o
'
]).
abspath
()
if
not
output
.
exists
():
if
yes_or_no
(
"
Output
'
%s
'
doesn
'
t exist. Create ?
"
%
output
):
output
.
makedirs
()
else
:
if
args
[
'
--ask
'
]
and
not
yes_or_no
(
"
Output
'
%s
'
doesn
'
t exist. Create ?
"
%
output
):
exit
(
0
)
output
.
makedirs
()
container_name
=
args
[
'
-n
'
]
is
not
None
and
args
[
'
-n
'
]
or
'
imp:latest
'
db_path
=
Path
(
args
[
'
-d
'
]).
abspath
()
# configure IMP mount point to the docker container
...
...
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