Skip to content

Commit 53d035f

Browse files
committed
added dockerfile
1 parent ac98dad commit 53d035f

File tree

2 files changed

+60
-0
lines changed

2 files changed

+60
-0
lines changed

Dockerfile

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
FROM ubuntu:20.04
2+
3+
ENV DEBIAN_FRONTEND=noninteractive
4+
5+
ARG star_version=2.7.10a_alpha_220818
6+
ARG samtools_version=1.15.1
7+
ARG bbmap_version=38.97
8+
ARG rsem_version=1.3.3
9+
10+
#Install OS packages
11+
RUN apt-get update && apt-get -y --no-install-recommends -qq install \
12+
wget gcc build-essential software-properties-common libz-dev \
13+
git libncurses5-dev libbz2-dev liblzma-dev default-jre bsdmainutils
14+
15+
#Install STAR
16+
RUN wget --no-check-certificate https://github.com/alexdobin/STAR/archive/${star_version}.tar.gz && \
17+
tar -xzf ${star_version}.tar.gz -C /opt && \
18+
cd /opt/STAR-${star_version}/source && \
19+
make STAR CXXFLAGS_SIMD="-msse4.2" && \
20+
cd / && rm ${star_version}.tar.gz
21+
22+
#Install seqtk
23+
RUN git clone https://github.com/lh3/seqtk.git && \
24+
mv seqtk /opt && \
25+
cd /opt/seqtk && \
26+
make
27+
28+
#Install samtools
29+
RUN wget https://github.com/samtools/samtools/releases/download/${samtools_version}/samtools-${samtools_version}.tar.bz2 && \
30+
tar -xvf samtools-${samtools_version}.tar.bz2 -C /opt && \
31+
cd /opt/samtools-${samtools_version} && \
32+
./configure && \
33+
make && \
34+
make install && \
35+
cd / && rm samtools-${samtools_version}.tar.bz2
36+
37+
#Install BBMap
38+
RUN wget https://sourceforge.net/projects/bbmap/files/BBMap_${bbmap_version}.tar.gz && \
39+
tar -xzf BBMap_${bbmap_version}.tar.gz -C /opt && \
40+
cd /opt/bbmap && \
41+
./stats.sh in=resources/phix174_ill.ref.fa.gz && \
42+
cd / && rm BBMap_${bbmap_version}.tar.gz
43+
44+
#Install RSEM
45+
RUN wget https://github.com/deweylab/RSEM/archive/refs/tags/v${rsem_version}.tar.gz && \
46+
tar -xzf v${rsem_version}.tar.gz -C /opt && \
47+
cd /opt/RSEM-${rsem_version} && \
48+
make && \
49+
cd / && rm v${rsem_version}.tar.gz
50+
51+
ENV PATH="${PATH}:/opt/STAR-${star_version}/source:/opt/seqtk:/opt/bbmap:/opt/RSEM-${rsem_version}"
52+
53+
#Saving Software Versions to a file
54+
RUN echo "STAR version: ${star_version}" >> versions.txt && \
55+
echo "samtools version: ${samtools_version}" >> versions.txt && \
56+
echo "BBMap version: ${bbmap_version}" >> versions.txt && \
57+
echo "RSEM version: ${rsem_version}" >> versions.txt && \
58+
seqtk_version=`strings $(which seqtk) | grep 'Version:' | cut -f 2 -d " "` && \
59+
echo "seqtk version: ${seqtk_version}" >> versions.txt

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ There are two branches:
1515
* `bin/solo_QC.sh` - a quick qc script that enables quick sanity checks that STARsolo worked correctly.
1616
* `bin/cram2fastq_10x.sh` - a script that converts CRAM files (usual storage type at Sanger) to fastq files. This pipeline expects CRAM files for each sample stored internally on Sanger irods that are accessed using a custom `myrods.sh` script. TO DO - update this to not use myrods.
1717
* `bin/starsolo_10x_auto.sh` - a script that runs STARsolo outputting: exonic, exonic+intronic and velocyto results.
18+
* `Dockerfile` - a dockerfile to reproduce the environment used to run the pipeline.
1819

1920
## Pipeline Arguments:
2021
* `--SAMPLEFILE` - The path to the sample file provided to the pipeline which contains one sample ID per line. This sample is assumed to have CRAM files stored on IRODS.

0 commit comments

Comments
 (0)