-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #33 from rpetit3/master
Added Dockerfile to set up dependencies for MetaSUB_CAP
- Loading branch information
Showing
4 changed files
with
106 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
*~ | ||
|
||
*.py[cod] | ||
|
||
# C extensions | ||
*.so | ||
|
||
# Packages | ||
*.egg | ||
*.egg-info | ||
dist | ||
build | ||
eggs | ||
parts | ||
bin | ||
var | ||
sdist | ||
develop-eggs | ||
.installed.cfg | ||
lib | ||
lib64 | ||
__pycache__ | ||
|
||
# Installer logs | ||
pip-log.txt | ||
|
||
# Unit test / coverage reports | ||
.coverage | ||
.tox | ||
nosetests.xml | ||
|
||
# Translations | ||
*.mo | ||
|
||
# Mr Developer | ||
.mr.developer.cfg | ||
.project | ||
.pydevproject |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
FROM continuumio/miniconda3 | ||
|
||
|
||
|
||
RUN apt-get update \ | ||
&& apt-get install -y locales git python3-dev python3-pip libyaml-dev \ | ||
&& rm -rf /var/lib/apt/lists/* \ | ||
&& localedef -i en_US -c -f UTF-8 -A /usr/share/locale/locale.alias en_US.UTF-8 \ | ||
&& useradd -ms /bin/bash metasub | ||
|
||
ENV LC_ALL C.UTF-8 | ||
ENV LANG C.UTF-8 | ||
|
||
ADD cap_env.yml /tmp/environment.yml | ||
WORKDIR /home/metasub | ||
RUN conda env create -f=/tmp/environment.yml | ||
|
||
RUN mkdir /opt/metasub/ \ | ||
&& cd /opt/metasub/ | ||
|
||
ENTRYPOINT [ "/bin/bash", "-c" ] | ||
RUN /bin/bash -c "source activate cap \ | ||
&& pip install --ignore-installed PyYAML moduleultra==0.1.5" | ||
|
||
|
||
USER metasub | ||
RUN cd /home/metasub \ | ||
&& /bin/bash -c "source activate cap \ | ||
&& mkdir base_repo \ | ||
&& mkdir repo \ | ||
&& cd /home/metasub/base_repo \ | ||
&& moduleultra init \ | ||
&& echo y | moduleultra install https://github.com/MetaSUB/MetaSUB_QC_Pipeline.git \ | ||
&& echo y | moduleultra install https://github.com/MetaSUB/MetaSUB_CAP \ | ||
&& moduleultra add pipeline metasub_cap \ | ||
&& moduleultra add pipeline metasub_qc_cap" | ||
|
||
|
||
WORKDIR /home/metasub/repo | ||
RUN /bin/bash -c "source activate cap" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
name: cap | ||
channels: | ||
- conda-forge | ||
- bioconda | ||
- defaults | ||
- maxibor | ||
dependencies: | ||
- samtools | ||
- snakemake==5.3.0 | ||
- bracken | ||
- krakenhll | ||
- mash | ||
- diamond==0.8.36 | ||
- bowtie2 | ||
- adapterremoval2 | ||
- pip: | ||
- humann2 | ||
|