Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add Dockerfile #26

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
83 changes: 83 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
# Base Image
FROM ncbihackathon/ncbihackathonbase:latest

# Metadata
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The meta data should be adapted to STREAMclean I think.

LABEL base.image="ncbihackathonbase:latest"
LABEL version="1"
LABEL software="NCBI Hackathon Image for NGS analysis"
LABEL software.version="0.0.1"
LABEL description="NCBI Hackathons Image for NGS analysis"
LABEL website="https://github.com/NCBI-Hackathons/HackathonDockerImages/Docker/ngs"
LABEL documentation="https://github.com/NCBI-Hackathons/HackathonDockerImages/Docker/ngs"
LABEL license="https://github.com/NCBI-Hackathons/HackathonDockerImages/LICENSE"
LABEL tags="NCBI, Hackathon, Bioconductor"

# Maintainer
MAINTAINER Roberto Vera Alvarez <[email protected]>

USER biodocker

RUN git clone --recursive https://github.com/NCBI-Hackathons/NanoporeMapper.git
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The URL for the repo has changed to https://github.com/NCBI-Hackathons/STREAMclean.git (the old URL works as GitHub handles redirects when repos are renamed, but would probably be nicer to have a clean setup)


# Samtools 1.6
ENV ZIP=samtools-1.6.tar.bz2
ENV URL=https://github.com/samtools/samtools/releases/download/1.6/
ENV FOLDER=samtools-1.6
ENV DST=/tmp

RUN wget $URL/$ZIP -O $DST/$ZIP && \
tar xvf $DST/$ZIP -C $DST && \
rm $DST/$ZIP && \
cd $DST/$FOLDER && \
./configure --prefix=/home/biodocker && \
make && \
make install && \
cd / && \
rm -rf $DST/$FOLDER

# BAMTools 2.5.1
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We don't need BAMtools (if I'm not mistaken!)

ENV ZIP=v2.5.1.tar.gz
ENV URL=https://github.com/pezmaster31/bamtools/archive/
ENV FOLDER=bamtools-2.5.1
ENV INSTALL_FOLDER=/home/biodocker/
ENV DST=/tmp
ENV LD_LIBRARY_PATH=$INSTALL_FOLDER/lib/bamtools:$LD_LIBRARY_PATH

RUN cd $DST && \
wget $URL/$ZIP -O $DST/$ZIP && \
tar xzfv $DST/$ZIP -C $DST && \
cd $DST/$FOLDER && mkdir build && cd build && \
cmake -DCMAKE_INSTALL_PREFIX=$INSTALL_FOLDER .. && make && \
make install && \
rm -rf $DST/$FOLDER $DST/$ZIP

# STAR 2.5.3a
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Star can be removed completely

ENV ZIP=2.5.3a.tar.gz
ENV URL=https://github.com/alexdobin/STAR/archive/
ENV FOLDER=STAR-2.5.3a
ENV INSTALL_FOLDER=/home/biodocker/
ENV DST=/tmp

RUN cd $DST && \
wget $URL/$ZIP -O $DST/$ZIP && \
tar xzfv $DST/$ZIP -C $DST && \
cd $DST/$FOLDER/source && \
make && \
mv STAR /home/biodocker/bin/ && \
rm -rf $DST/$FOLDER $DST/$ZIP

# NCBI-magicblast 1.3.0
ENV ZIP=ncbi-magicblast-1.3.0-x64-linux.tar.gz
ENV URL=ftp://ftp.ncbi.nlm.nih.gov/blast/executables/magicblast/1.3.0/
ENV FOLDER=ncbi-magicblast-1.3.0
ENV INSTALL_FOLDER=/home/biodocker/
ENV DST=/tmp

RUN cd $DST && \
wget $URL/$ZIP -O $DST/$ZIP && \
tar xzfv $DST/$ZIP -C $DST && \
mv $DST/$FOLDER/LICENSE $DST/$FOLDER/README /home/biodocker/bin/ && \
mv $DST/$FOLDER/bin/* /home/biodocker/bin/ && \
rm -rf $DST/$FOLDER

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The python modules need to be installed in order for the pipeline to run. I guess

RUN cd ~/STREAMclean & pip install -r requirements.txt should do the trick?

WORKDIR /data/