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
b8830c1d
Commit
b8830c1d
authored
9 years ago
by
Yohan Jarosz
Browse files
Options
Downloads
Patches
Plain Diff
rm container by default #38
parent
f29a0d45
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
+5
-1
5 additions, 1 deletion
IMP
with
5 additions
and
1 deletion
IMP
+
5
−
1
View file @
b8830c1d
...
...
@@ -13,13 +13,14 @@ __doc__ = """Integrated Metaomic Pipeline.
(____)(_/\/\_)(__)
Usage:
IMP -m MG1 -m MG2 -t MT1 -t MT2 -o OUTPUT [--enter] [-n CONTAINER] [-e ENV] ... [COMMANDS ...]
IMP -m MG1 -m MG2 -t MT1 -t MT2 -o OUTPUT [--enter]
[--norm]
[-n CONTAINER] [-e ENV] ... [COMMANDS ...]
IMP (-h | --help)
IMP --version
Options:
-e ENV Environment variable to pass to the container
--enter Enter the container
--norm Don
'
t delete the container after use. Useful for debugging.
-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).
...
...
@@ -96,6 +97,9 @@ if __name__ == '__main__':
cmd
+=
[
'
-it
'
]
# add container name and commands to pass to snakemake
cmd
+=
[
container_name
]
+
args
[
'
COMMANDS
'
]
# rm the container by default
if
not
args
[
'
--norm
'
]:
cmd
+=
[
'
--rm
'
]
# if --enter flag is specified, change the command
if
args
[
'
--enter
'
]:
cmd
+=
[
'
/bin/bash
'
]
...
...
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