-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change MLST QA/QC: * Samples with known MLST scheme but for which it was not possible to find a scheme will now raise a warning instead of fail Saves the total number of reads and bp sequenced Update mlst version * Change base image of INNUca's Docker image (to perl:5.30, a Debian 9 image) for Perl and old Kernel version compatibilities * Install and update mlst dependencies * Install Java JDK headless but provide extra font loading capabilities (mainly for FastQC, but also Trimmomatic and Pilon) Minor changes: * Check if the mlst novel alleles file exists before trying to cleaning it * Catches subprocess error when the program to run is not installed
- Loading branch information
1 parent
b2608a8
commit cc2b6f5
Showing
8 changed files
with
175 additions
and
104 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 |
---|---|---|
@@ -1,16 +1,22 @@ | ||
FROM ubuntu:16.04 | ||
FROM perl:5.30-slim-stretch | ||
MAINTAINER Miguel Machado <[email protected]> | ||
LABEL version="4.2.0-03" | ||
LABEL version="4.2.1-01" | ||
|
||
WORKDIR /NGStools/ | ||
|
||
RUN apt-get update | ||
|
||
# -- General Dependencies --- | ||
RUN apt-get install -y git wget make g++ | ||
RUN apt-get install -y git wget g++ | ||
|
||
# -- INNUca General Dependencies --- | ||
RUN apt-get install -y python-dev python-pip default-jre python3 python3-pip | ||
RUN apt-get install -y python-dev python-pip python3 python3-pip procps libfontconfig1 | ||
# - Java - | ||
RUN wget https://download.java.net/openjdk/jdk8u40/ri/openjdk-8u40-b25-linux-x64-10_feb_2015.tar.gz && \ | ||
tar xf openjdk-8u40-b25-linux-x64-10_feb_2015.tar.gz && \ | ||
rm openjdk-8u40-b25-linux-x64-10_feb_2015.tar.gz | ||
ENV PATH="/NGStools/java-se-8u40-ri/bin:${PATH}" | ||
|
||
RUN pip install plotly | ||
|
||
# --- kraken2 -- | ||
|
@@ -27,12 +33,15 @@ ENV PATH="/NGStools/kraken2-2.0.7-beta:${PATH}" | |
|
||
# -- mlst Dependencies -- | ||
# Blast | ||
RUN wget ftp://ftp.ncbi.nlm.nih.gov/blast/executables/blast+/2.8.1/ncbi-blast-2.8.1+-x64-linux.tar.gz && \ | ||
tar -xf ncbi-blast-2.8.1+-x64-linux.tar.gz && \ | ||
rm ncbi-blast-2.8.1+-x64-linux.tar.gz | ||
ENV PATH="/NGStools/ncbi-blast-2.8.1+/bin:${PATH}" | ||
RUN wget ftp://ftp.ncbi.nlm.nih.gov/blast/executables/blast+/2.9.0/ncbi-blast-2.9.0+-x64-linux.tar.gz && \ | ||
tar -xf ncbi-blast-2.9.0+-x64-linux.tar.gz && \ | ||
rm ncbi-blast-2.9.0+-x64-linux.tar.gz | ||
# any2fasta | ||
RUN git clone https://github.com/tseemann/any2fasta.git | ||
# Perl libs | ||
RUN apt-get install -y libmoo-perl liblist-moreutils-perl libjson-perl libfile-slurp-perl | ||
RUN cpan Moo List::MoreUtils JSON | ||
|
||
ENV PATH="/NGStools/ncbi-blast-2.9.0+/bin:/NGStools/any2fasta:${PATH}" | ||
|
||
# --- mlst ---- | ||
RUN git clone https://github.com/tseemann/mlst.git | ||
|
@@ -45,22 +54,20 @@ ENV PATH="/NGStools/mlst/bin:${PATH}" | |
# pip3 install setuptools && \ | ||
# python3 setup.py install && \ | ||
# cd /NGStools | ||
RUN git clone https://github.com/B-UMMI/ReMatCh.git && \ | ||
cd ReMatCh | ||
RUN git clone https://github.com/B-UMMI/ReMatCh.git | ||
ENV PATH="/NGStools/ReMatCh/ReMatCh/src/samtools-1.3.1/bin:/NGStools/ReMatCh/ReMatCh/src/bcftools-1.3.1/bin:/NGStools/ReMatCh/ReMatCh/src/bowtie2-2.2.9:/NGStools/ReMatCh/ReMatCh:${PATH}" | ||
|
||
# --- INNUca --- | ||
RUN git clone https://github.com/B-UMMI/INNUca.git && \ | ||
pip install setuptools | ||
# TODO: remove checkout | ||
ENV PATH="/NGStools/INNUca/src/fastqc_v0.11.5:/NGStools/INNUca/src/pilon_v1.23:/NGStools/INNUca/src/SPAdes-3.13.0-Linux/bin:/NGStools/INNUca/src/Trimmomatic-0.38:/NGStools/INNUca:${PATH}" | ||
|
||
# fixing permissions for MLST update | ||
RUN chmod +x /NGStools/INNUca/Docker/update_mlst_db.sh && chmod o+wr /NGStools/mlst/scripts/ && chmod -R o+wr /NGStools/mlst/db/ && sed -i "s#OUTDIR=pubmlst#OUTDIR=/NGStools/mlst/scripts/pubmlst#1" /NGStools/mlst/scripts/mlst-download_pub_mlst | ||
|
||
# Clean | ||
RUN pip3 uninstall setuptools && \ | ||
apt-get remove -y make g++ python-pip python3-pip && \ | ||
apt-get remove -y g++ python-pip python3-pip && \ | ||
apt-get autoclean -y | ||
|
||
WORKDIR /data/ |
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 |
---|---|---|
|
@@ -11,7 +11,7 @@ | |
Copyright (C) 2018 Miguel Machado <[email protected]> | ||
Last modified: December 28, 2018 | ||
Last modified: November 25, 2019 | ||
This program is free software: you can redistribute it and/or modify | ||
it under the terms of the GNU General Public License as published by | ||
|
@@ -91,7 +91,7 @@ def include_rematch_dependencies_path(do_not_use_provided_software): | |
|
||
|
||
def main(): | ||
version = '4.2.0' | ||
version = '4.2.1' | ||
args = utils.parseArguments(version) | ||
|
||
general_start_time = time.time() | ||
|
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
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
Oops, something went wrong.