You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# install dependencies required for compiling samtools
11
+
RUN apt-get update && apt-get install --no-install-recommends -y \
12
+
libncurses5-dev \
13
+
libbz2-dev \
14
+
liblzma-dev \
15
+
libcurl4-gnutls-dev \
16
+
zlib1g-dev \
17
+
libssl-dev \
18
+
gcc \
19
+
wget \
20
+
make \
21
+
perl \
22
+
bzip2 \
23
+
gnuplot \
24
+
ca-certificates \
25
+
curl
26
+
27
+
# download, compile, and install samtools
28
+
RUN wget https://github.com/samtools/samtools/releases/download/${SAMTOOLS_VER}/samtools-${SAMTOOLS_VER}.tar.bz2 && \
29
+
tar -xjf samtools-${SAMTOOLS_VER}.tar.bz2 && \
30
+
cd samtools-${SAMTOOLS_VER} && \
31
+
./configure && \
32
+
make && \
33
+
make install
34
+
35
+
WORKDIR /usr/local/bin
36
+
37
+
RUN curl -L https://github.com/lh3/minimap2/releases/download/v${MINIMAP2_VER}/minimap2-${MINIMAP2_VER}_x64-linux.tar.bz2 | tar -jxvf - --no-same-owner
38
+
39
+
### start of app stage ###
40
+
FROM ubuntu:jammy as app
41
+
42
+
ARG ASSEMBLYSNPTYPER_VER="0.1.1"
43
+
44
+
# 'LABEL' instructions tag the image with metadata that might be important to the user
45
+
LABEL base.image="ubuntu:jammy"
46
+
LABEL dockerfile.version="1"
47
+
LABEL software="assembly_snptyper"
48
+
LABEL software.version="${ASSEMBLYSNPTYPER_VER}"
49
+
LABEL description="Type assembly based on a VCF using minimap2 + samtools"
> This software can take a bacterial genome assembly in fasta format, align it to a reference genome and search for specific SNPs based on the alignment. It uses minimap2 and samtools to do this. You would typically only run this tool instead of a read mapping tool if you don't have access to the sequence reads.
18
+
19
+
20
+
> The tool was written with M1UK typing in mind. In this specific case, the reference genome is an M1global strain, from which M1UK can be discerned by only 27 lineage-specific SNPs. Important assumptions here are that the type of interest (here, M1UK) is closely related to the reference genome, warranting the use of the asm5 preset for minimap2.
21
+
22
+
Additional information:
23
+
24
+
M1UK reference and SNP vcf are located in /assembly_snptyper/data
25
+
26
+
Full documentation: https://github.com/boasvdp/assembly_snptyper
0 commit comments