From a8f40a197caa86dc5e05934ff891dc63cfb840fe Mon Sep 17 00:00:00 2001 From: ra11 Date: Tue, 30 Jun 2020 14:48:20 +0000 Subject: [PATCH 01/13] updated / renamed R installation script --- Dockerfile | 4 ++-- build/libInstall.R | 55 ++++++++++++++++++++++++++++++++++++++++++++++ build/rlib-build.R | 31 -------------------------- 3 files changed, 57 insertions(+), 33 deletions(-) create mode 100644 build/libInstall.R delete mode 100644 build/rlib-build.R diff --git a/Dockerfile b/Dockerfile index 16fc21a..cbaddf7 100644 --- a/Dockerfile +++ b/Dockerfile @@ -63,9 +63,9 @@ COPY build/Rprofile $OPT/config/Rprofile # don't work in the default location, it can cause problems WORKDIR /tmp/builder -COPY build/rlib-build.R build/ +COPY build/libInstall.R build/ RUN mkdir -p $R_LIBS_USER -RUN Rscript build/rlib-build.R $R_LIBS_USER 2>&1 | grep '^\*' +RUN Rscript build/libInstall.R $R_LIBS_USER 2>&1 | grep '^\*' # build tools from other repos ADD build/opt-build.sh build/ diff --git a/build/libInstall.R b/build/libInstall.R new file mode 100644 index 0000000..6157019 --- /dev/null +++ b/build/libInstall.R @@ -0,0 +1,55 @@ +instLib = commandArgs(T)[1] + +r = getOption("repos") # hard code the UK repo for CRAN +r["CRAN"] = "http://cran.uk.r-project.org" +options(repos = r) +rm(r) + +ipak <- function(pkg){ + new.pkg <- pkg[!(pkg %in% installed.packages()[, "Package"])] + if (length(new.pkg)) + biocLite(new.pkg, ask=FALSE, lib=instLib, lib.loc=instLib) + sapply(pkg, library, character.only = TRUE) +} + +ipak_bioc <- function(pkg){ + new.pkg <- pkg[!(pkg %in% installed.packages()[, "Package"])] + if (length(new.pkg)) + BiocManager::install(new.pkg, ask=FALSE, lib=instLib, lib.loc=instLib) + sapply(pkg, library, character.only = TRUE) +} + +if( (version$major == 3 && version$minor >=5) || version$major > 3) { + # biocmanager versions of R + if (!requireNamespace("BiocManager", quietly = TRUE)) install.packages("BiocManager") + BiocManager::install(ask=FALSE, lib=instLib, lib.loc=instLib) + ipak_bioc(c("data.table")) + ipak_bioc(c("gam")) + ipak_bioc(c("VGAM")) + ipak_bioc(c("stringr")) + ipak_bioc(c("mgcv")) + ipak_bioc(c("poweRlaw")) + ipak_bioc(c("zlibbioc")) + ipak_bioc(c("RColorBrewer")) +} else { + # OLD versions of R + source("http://bioconductor.org/biocLite.R") + ipak(c("data.table")) + ipak(c("gam")) + if ( version$major == 3 && version$minor < 2 ) { + install.packages("VGAM_1.0-3.tar.gz", type="source", lib=instLib, lib.loc=instLib) + } else { + ipak(c("VGAM")) + } + ipak(c("stringr")) + ipak(c("mgcv")) + ipak(c("poweRlaw")) + ipak(c("zlibbioc")) + ipak(c("RColorBrewer")) +} + +# works on old and new +if (!requireNamespace("devtools", quietly = TRUE)) install.packages("devtools", lib=instLib) +library(devtools) +options(download.file.method = "auto") +install_github("Irrationone/copynumber", ref="87d2663fe6b11c03cf6006b4ee9ed70450eacb5a") diff --git a/build/rlib-build.R b/build/rlib-build.R deleted file mode 100644 index 65ecce7..0000000 --- a/build/rlib-build.R +++ /dev/null @@ -1,31 +0,0 @@ -instLib = commandArgs(T)[1] - -r = getOption("repos") # hard code the UK repo for CRAN -r["CRAN"] = "http://cran.uk.r-project.org" -options(repos = r) -rm(r) -source("http://bioconductor.org/biocLite.R") - -ipak <- function(pkg){ - new.pkg <- pkg[!(pkg %in% installed.packages()[, "Package"])] - if (length(new.pkg)) - biocLite(new.pkg, ask=FALSE, lib=instLib, lib.loc=instLib) - sapply(pkg, library, character.only = TRUE) -} - -tmp <- c("devtools") -ipak(tmp) -library(devtools) -options(download.file.method = "auto") - -# ASCAT and BRASS -ipak(c("data.table")) -ipak(c("mgcv")) -ipak(c("gam")) -ipak(c("VGAM")) -ipak(c("stringr")) -ipak(c("poweRlaw")) -ipak(c("zlibbioc")) -ipak(c("RColorBrewer")) - -install_github("Irrationone/copynumber", ref="87d2663fe6b11c03cf6006b4ee9ed70450eacb5a") From 6e371c9d9e6c23e6e865457ceb2abda7a29b2051 Mon Sep 17 00:00:00 2001 From: ra11 Date: Tue, 30 Jun 2020 14:50:20 +0000 Subject: [PATCH 02/13] removed unused variables --- Dockerfile | 2 -- 1 file changed, 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index cbaddf7..ea2b0b1 100644 --- a/Dockerfile +++ b/Dockerfile @@ -5,8 +5,6 @@ USER root # ALL tool versions used by opt-build.sh ENV VER_CGPVCF="v2.2.1" ENV VER_VCFTOOLS="0.1.16" -#ENV VER_BIODBHTS="2.10" -#ENV VER_HTSLIB="1.7" ENV VER_ALLELECOUNT="v4.0.0" RUN apt-get -yq update From 18a2e3d3d4325ba0fa241410aec450d967fbb1fe Mon Sep 17 00:00:00 2001 From: ra11 Date: Wed, 1 Jul 2020 12:25:27 +0000 Subject: [PATCH 03/13] updated base image to use pcap-core --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index ea2b0b1..5224e1d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -10,7 +10,7 @@ ENV VER_ALLELECOUNT="v4.0.0" RUN apt-get -yq update RUN apt-get install -qy --no-install-recommends lsb-release - +RUN apt-get install -qy --no-install-recommends gnupg RUN echo "deb http://cran.rstudio.com/bin/linux/ubuntu `lsb_release -cs`/" >> /etc/apt/sources.list RUN apt-key adv --keyserver keyserver.ubuntu.com --recv-keys E298A3A825C0D65DFD57CBB651716619E084DAB9 RUN apt-get -yq update From 2c8c0a96c75f8669dfddea84b0f286a32f93f3ff Mon Sep 17 00:00:00 2001 From: ra11 Date: Wed, 1 Jul 2020 18:22:15 +0000 Subject: [PATCH 04/13] added pcap-core as base --- Dockerfile | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 5224e1d..c6793f5 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM quay.io/wtsicgp/dockstore-cgpmap:3.1.4 as builder +FROM quay.io/wtsicgp/pcap-core:5.1.0 as builder USER root @@ -10,7 +10,6 @@ ENV VER_ALLELECOUNT="v4.0.0" RUN apt-get -yq update RUN apt-get install -qy --no-install-recommends lsb-release -RUN apt-get install -qy --no-install-recommends gnupg RUN echo "deb http://cran.rstudio.com/bin/linux/ubuntu `lsb_release -cs`/" >> /etc/apt/sources.list RUN apt-key adv --keyserver keyserver.ubuntu.com --recv-keys E298A3A825C0D65DFD57CBB651716619E084DAB9 RUN apt-get -yq update From 1b2b29d7e44a0ca436f40be72c155ac490ef9176 Mon Sep 17 00:00:00 2001 From: ra11 Date: Wed, 1 Jul 2020 18:56:47 +0000 Subject: [PATCH 05/13] updated working Dockerfile --- Dockerfile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index c6793f5..b8003b1 100644 --- a/Dockerfile +++ b/Dockerfile @@ -10,7 +10,8 @@ ENV VER_ALLELECOUNT="v4.0.0" RUN apt-get -yq update RUN apt-get install -qy --no-install-recommends lsb-release -RUN echo "deb http://cran.rstudio.com/bin/linux/ubuntu `lsb_release -cs`/" >> /etc/apt/sources.list +RUN apt-get install -qy --no-install-recommends gnupg +RUN echo "deb http://cran.rstudio.com/bin/linux/ubuntu `lsb_release -cs`-cran40/" >> /etc/apt/sources.list RUN apt-key adv --keyserver keyserver.ubuntu.com --recv-keys E298A3A825C0D65DFD57CBB651716619E084DAB9 RUN apt-get -yq update @@ -24,7 +25,8 @@ RUN apt-get install -yq --no-install-recommends pkg-config RUN apt-get install -yq --no-install-recommends zlib1g-dev RUN apt-get install -yq --no-install-recommends libbz2-dev RUN apt-get install -yq --no-install-recommends unzip -RUN apt-get install -yq --no-install-recommends libpng12-dev +RUN apt-get install -yq --no-install-recommends libpng-dev +RUN DEBIAN_FRONTEND="noninteractive" apt-get install -yq --no-install-recommends tzdata RUN apt-get install -yq --no-install-recommends r-base RUN apt-get install -yq --no-install-recommends libcurl4-openssl-dev RUN apt-get install -yq --no-install-recommends libxml2-dev From 5d7d3b6eaf33981aeae52536976ea2941f727934 Mon Sep 17 00:00:00 2001 From: ra11 Date: Wed, 1 Jul 2020 19:08:20 +0000 Subject: [PATCH 06/13] fixed second stage installation --- Dockerfile | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index b8003b1..5c85911 100644 --- a/Dockerfile +++ b/Dockerfile @@ -75,7 +75,7 @@ RUN bash build/opt-build.sh $OPT COPY . . RUN bash build/opt-build-local.sh $OPT -FROM ubuntu:16.04 +FROM ubuntu:20.04 LABEL maintainer="cgphelp@sanger.ac.uk" \ uk.ac.sanger.cgp="Cancer, Ageing and Somatic Mutation, Wellcome Trust Sanger Institute" \ @@ -83,9 +83,11 @@ LABEL maintainer="cgphelp@sanger.ac.uk" \ description="Ascat NGS docker" RUN apt-get -yq update \ -&& apt-get install -qy --no-install-recommends lsb-release +&& apt-get install -qy --no-install-recommends lsb-release \ +gnupg -RUN echo "deb http://cran.rstudio.com/bin/linux/ubuntu `lsb_release -cs`/" >> /etc/apt/sources.list \ +ENV DEBIAN_FRONTEND "noninteractive" +RUN echo "deb http://cran.rstudio.com/bin/linux/ubuntu `lsb_release -cs`-cran40/" >> /etc/apt/sources.list \ && apt-key adv --keyserver keyserver.ubuntu.com --recv-keys E298A3A825C0D65DFD57CBB651716619E084DAB9 \ && apt-get -yq update \ && apt-get install -yq --no-install-recommends \ @@ -104,7 +106,6 @@ libcairo2 \ gfortran \ r-base \ time \ -r-base \ unattended-upgrades && \ unattended-upgrade -d -v && \ apt-get remove -yq unattended-upgrades && \ From 146976742fcee43357e15516be373da8a46efdb9 Mon Sep 17 00:00:00 2001 From: ra11 Date: Thu, 2 Jul 2020 16:50:07 +0000 Subject: [PATCH 07/13] Bumped up the version of allelecounter --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 5c85911..617c723 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,11 +1,11 @@ -FROM quay.io/wtsicgp/pcap-core:5.1.0 as builder +FROM quay.io/wtsicgp/pcap-core:5.2.0 as builder USER root # ALL tool versions used by opt-build.sh ENV VER_CGPVCF="v2.2.1" ENV VER_VCFTOOLS="0.1.16" -ENV VER_ALLELECOUNT="v4.0.0" +ENV VER_ALLELECOUNT="4.1.0" RUN apt-get -yq update From 5f76806ca1fad53e516df9fd9d1691a23d9fa691 Mon Sep 17 00:00:00 2001 From: ra11 Date: Thu, 2 Jul 2020 17:05:07 +0000 Subject: [PATCH 08/13] working installation with setup.sh --- setup.sh | 118 ++++++++++++++++--------------------------------------- 1 file changed, 33 insertions(+), 85 deletions(-) diff --git a/setup.sh b/setup.sh index a802826..a043573 100755 --- a/setup.sh +++ b/setup.sh @@ -1,13 +1,13 @@ #!/bin/bash -########## LICENCE ########## -# Copyright (c) 2014-2019 Genome Research Ltd. +########## LICENSE ########## +# Copyright (c) 2016-2020 Genome Research Ltd. # -# Author: CASM/Cancer IT +# Author: Cancer Genome Project cgphelp@sanger.ac.uk # -# This file is part of AscatNGS. +# This file is part of cgpBigWig. # -# AscatNGS is free software: you can redistribute it and/or modify it under +# cgpBigWig is free software: you can redistribute it and/or modify it under # the terms of the GNU Affero General Public License as published by the Free # Software Foundation; either version 3 of the License, or (at your option) any # later version. @@ -19,15 +19,24 @@ # # You should have received a copy of the GNU Affero General Public License # along with this program. If not, see . -########## LICENCE ########## - -# Update info in README.md if changed -ASCAT_SRC="https://raw.githubusercontent.com/Crick-CancerGenomics/ascat/v2.5.1/ASCAT/R/ascat.R" -EXP_ACV="3.3.0" +# +# 1. The usage of a range of years within a copyright statement contained within +# this distribution should be interpreted as being equivalent to a list of years +# including the first and last year specified and all consecutive years between +# them. For example, a copyright statement that reads ‘Copyright (c) 2005, 2007- +# 2009, 2011-2012’ should be interpreted as being identical to a statement that +# reads ‘Copyright (c) 2005, 2007, 2008, 2009, 2011, 2012’ and a copyright +# statement that reads ‘Copyright (c) 2005-2012’ should be interpreted as being +# identical to a statement that reads ‘Copyright (c) 2005, 2006, 2007, 2008, +# 2009, 2010, 2011, 2012’." +# +########################### -version_gt () { - test $(printf '%s\n' $@ | sort -V | head -n 1) == "$EXP_ACV"; -} +# ALL tool versions used by opt-build.sh +# need to keep in sync with Dockerfile +export VER_CGPVCF="v2.2.1" +export VER_VCFTOOLS="0.1.16" +export VER_ALLELECOUNT="v4.0.0" get_file () { # output, source @@ -38,12 +47,13 @@ get_file () { fi } + if [[ ($# -ne 1 && $# -ne 2) ]] ; then echo "Please provide an installation path and optionally perl lib paths to allow, e.g." echo " ./setup.sh /opt/myBundle" echo "OR all elements versioned:" echo " ./setup.sh /opt/cgpVcf-X.X.X /opt/PCAP-X.X.X/lib/perl:/some/other/lib/perl..." - exit 0 + exit 1 fi INST_PATH=$1 @@ -55,7 +65,7 @@ fi # get current directory INIT_DIR=`pwd` -set -eu +set -e # cleanup inst_path mkdir -p $INST_PATH/bin @@ -82,84 +92,22 @@ export PATH=$INST_PATH/bin:$PATH SETUP_DIR=$INIT_DIR/install_tmp mkdir -p $SETUP_DIR -cd $SETUP_DIR - -## grab cpanm and stick in workspace, then do a self upgrade into bin: +#install cpanm get_file $SETUP_DIR/cpanm https://cpanmin.us/ perl $SETUP_DIR/cpanm -l $INST_PATH App::cpanminus -CPANM=`which cpanm` -echo $CPANM - -PCAP=`perl -le 'eval "require $ARGV[0]" and print $ARGV[0]->VERSION' PCAP` -if [[ "x$PCAP" == "x" ]] ; then - echo "PREREQUISITE: Please install PCAP-core before proceeding:" - echo " https://github.com/ICGC-TCGA-PanCancer/PCAP-core/releases" - exit 1; -fi - -AC=`perl -le 'eval "require $ARGV[0]" and print $ARGV[0]->VERSION' Sanger::CGP::AlleleCount` -if [[ "x$AC" == "x" ]] ; then - echo "PREREQUISITE: Please install alleleCount version >= $EXP_ACV before proceeding:" - echo " https://github.com/cancerit/alleleCount/releases" - exit 1; -else - if version_gt $AC $EXP_ACV; then - echo " alleleCounter version is good ($AC)" - else - echo "PREREQUISITE: Please install alleleCount version >= $EXP_ACV before proceeding (Found version $AC):" - echo " https://github.com/cancerit/alleleCount/releases" - exit 1; - fi -fi - -VCF=`perl -le 'eval "require $ARGV[0]" and print $ARGV[0]->VERSION' Sanger::CGP::Vcf` -if [[ "x$VCF" == "x" ]] ; then - echo "PREREQUISITE: Please install cgpVcf before proceeding:" - echo " https://github.com/cancerit/cgpVcf/releases" - exit 1; -fi - -HTS=`perl -le 'eval "require $ARGV[0]" and print $ARGV[0]->VERSION' Bio::DB::HTS` -if [[ "x$HTS" == "x" ]] ; then - echo "PREREQUISITE: Please install Bio::DB::HTS before proceeding:" - echo " https://github.com/Ensembl/Bio-HTS/releases" - exit 1; -fi - -perlmods=( "File::ShareDir" "File::ShareDir::Install" ) - -for i in "${perlmods[@]}" ; do - echo "Installing build prerequisite $i..." - $CPANM -v --mirror http://cpan.metacpan.org -l $INST_PATH $i -done - -cd $INIT_DIR/perl - -echo -n "Installing Perl prerequisites ..." -if ! ( perl -MExtUtils::MakeMaker -e 1 >/dev/null 2>&1); then - echo - echo "WARNING: Your Perl installation does not seem to include a complete set of core modules. Attempting to cope with this, but if installation fails please make sure that at least ExtUtils::MakeMaker is installed. For most users, the best way to do this is to use your system's package manager: apt, yum, fink, homebrew, or similar." -fi - -$CPANM -v --mirror http://cpan.metacpan.org --notest -l $INST_PATH/ --installdeps . < /dev/null - -echo -n "Installing ascatNgs ..." -get_file share/ascat/ascat.R $ASCAT_SRC -perl Makefile.PL INSTALL_BASE=$INST_PATH -make -make test -make install -rm share/ascat/ascat.R -# cleanup all junk -rm -rf $SETUP_DIR +#install R stuff +export R_LIBS=$INST_PATH/R-libs +export R_LIBS_USER=$INST_PATH/R-libs +mkdir -p $R_LIBS_USER +Rscript build/libInstall.R $R_LIBS_USER 2>&1 | grep '^\*' +bash build/opt-build.sh $INST_PATH +bash build/opt-build-local.sh $INST_PATH echo echo echo "Please add the following to beginning of path:" echo " $INST_PATH/bin" -echo "Please add the following to beginning of PERL5LIB:" -echo " $PERLROOT" echo exit 0 From 9476d09864cf9fe8eed1707bff48192c585b1f45 Mon Sep 17 00:00:00 2001 From: Raul Alcantara Date: Thu, 2 Jul 2020 18:30:54 +0100 Subject: [PATCH 09/13] Update setup.sh Using License from cgpBigWig forgot to change name of the algorithm --- setup.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/setup.sh b/setup.sh index a043573..de2c3c8 100755 --- a/setup.sh +++ b/setup.sh @@ -5,9 +5,9 @@ # # Author: Cancer Genome Project cgphelp@sanger.ac.uk # -# This file is part of cgpBigWig. +# This file is part of AscatNGS. # -# cgpBigWig is free software: you can redistribute it and/or modify it under +# AscatNGS is free software: you can redistribute it and/or modify it under # the terms of the GNU Affero General Public License as published by the Free # Software Foundation; either version 3 of the License, or (at your option) any # later version. From 29c1a93769a92238970da631cbd0de3559e348e5 Mon Sep 17 00:00:00 2001 From: ra11 Date: Fri, 3 Jul 2020 10:02:41 +0000 Subject: [PATCH 10/13] Fixed licence issues, bumped up allelecounter version --- setup.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/setup.sh b/setup.sh index de2c3c8..6581448 100755 --- a/setup.sh +++ b/setup.sh @@ -1,9 +1,9 @@ #!/bin/bash ########## LICENSE ########## -# Copyright (c) 2016-2020 Genome Research Ltd. +# Copyright (c) 2014-2020 Genome Research Ltd. # -# Author: Cancer Genome Project cgphelp@sanger.ac.uk +# Author: CASM/Cancer IT # # This file is part of AscatNGS. # @@ -36,7 +36,7 @@ # need to keep in sync with Dockerfile export VER_CGPVCF="v2.2.1" export VER_VCFTOOLS="0.1.16" -export VER_ALLELECOUNT="v4.0.0" +export VER_ALLELECOUNT="4.1.0" get_file () { # output, source From d78485484e56053cac628598d5c2c844833a39b6 Mon Sep 17 00:00:00 2001 From: ra11 Date: Fri, 3 Jul 2020 10:58:00 +0000 Subject: [PATCH 11/13] added missing PCAP dependencies --- Dockerfile | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/Dockerfile b/Dockerfile index 617c723..e1f72d6 100644 --- a/Dockerfile +++ b/Dockerfile @@ -15,6 +15,7 @@ RUN echo "deb http://cran.rstudio.com/bin/linux/ubuntu `lsb_release -cs`-cran40/ RUN apt-key adv --keyserver keyserver.ubuntu.com --recv-keys E298A3A825C0D65DFD57CBB651716619E084DAB9 RUN apt-get -yq update +ENV DEBIAN_FRONTEND "noninteractive" # no benefit of combined in builder stage RUN apt-get install -yq --no-install-recommends locales RUN apt-get install -yq --no-install-recommends g++ @@ -26,7 +27,7 @@ RUN apt-get install -yq --no-install-recommends zlib1g-dev RUN apt-get install -yq --no-install-recommends libbz2-dev RUN apt-get install -yq --no-install-recommends unzip RUN apt-get install -yq --no-install-recommends libpng-dev -RUN DEBIAN_FRONTEND="noninteractive" apt-get install -yq --no-install-recommends tzdata +RUN apt-get install -yq --no-install-recommends tzdata RUN apt-get install -yq --no-install-recommends r-base RUN apt-get install -yq --no-install-recommends libcurl4-openssl-dev RUN apt-get install -yq --no-install-recommends libxml2-dev @@ -79,7 +80,7 @@ FROM ubuntu:20.04 LABEL maintainer="cgphelp@sanger.ac.uk" \ uk.ac.sanger.cgp="Cancer, Ageing and Somatic Mutation, Wellcome Trust Sanger Institute" \ - version="4.3.3" \ + version="4.3.4" \ description="Ascat NGS docker" RUN apt-get -yq update \ @@ -102,10 +103,10 @@ zlib1g \ liblzma5 \ libncurses5 \ p11-kit \ -libcairo2 \ -gfortran \ -r-base \ -time \ +libcurl3-gnutls \ +libcurl4 \ +moreutils \ +google-perftools \ unattended-upgrades && \ unattended-upgrade -d -v && \ apt-get remove -yq unattended-upgrades && \ From 99ca9a4a8aee776592255ffec78ae7464ac62d9c Mon Sep 17 00:00:00 2001 From: ra11 Date: Sat, 4 Jul 2020 14:19:28 +0000 Subject: [PATCH 12/13] Added missing libraries to Dockerfile --- Dockerfile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Dockerfile b/Dockerfile index e1f72d6..862b25b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -107,6 +107,10 @@ libcurl3-gnutls \ libcurl4 \ moreutils \ google-perftools \ +libcairo2 \ +gfortran \ +r-base \ +time \ unattended-upgrades && \ unattended-upgrade -d -v && \ apt-get remove -yq unattended-upgrades && \ From a9546bd4496d58686af8bad717573a311b7d9452 Mon Sep 17 00:00:00 2001 From: ra11 Date: Mon, 6 Jul 2020 09:49:07 +0000 Subject: [PATCH 13/13] Final changes to accomodate new release --- CHANGES.md | 5 +++++ Dockerfile | 2 +- perl/bin/ascat.pl | 1 - 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/CHANGES.md b/CHANGES.md index 0c0a58e..1547ad0 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -1,5 +1,10 @@ # Changes +## 4.3.4 + +* Eliminated redundant logic from setup script +* Updated Dockerfile to use PCAP-core 5.2.1 as base (Ubuntu 20.04) + ## 4.3.3 * Add Rprofile to fix issues with scientific notation diff --git a/Dockerfile b/Dockerfile index 862b25b..9e418df 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM quay.io/wtsicgp/pcap-core:5.2.0 as builder +FROM quay.io/wtsicgp/pcap-core:5.2.1 as builder USER root diff --git a/perl/bin/ascat.pl b/perl/bin/ascat.pl index a116d33..4356f52 100755 --- a/perl/bin/ascat.pl +++ b/perl/bin/ascat.pl @@ -53,7 +53,6 @@ BEGIN my $options = setup(); Sanger::CGP::Ascat::Implement::prepare($options); my $threads = PCAP::Threaded->new($options->{'threads'}); - &PCAP::Threaded::disable_out_err if(exists $options->{'index'}); # register any process that can run in parallel here $threads->add_function('allele_count', \&Sanger::CGP::Ascat::Implement::allele_count);