Skip to content

Commit 667da4f

Browse files
authored
Feature/r version (#69)
* update version * update r version * add cran * rm sudo * change r version * change r version again * ubuntu to 18 and garbage command * add R repos * yq * r version * r recommended * fix mistake * ubuntu 22 * r version * back to ubuntu 18 * cmake -S * cmake futility * update cmake * remove already-installed * update R version second install * update libgsl and libperl versions to match ubuntu 18.04 * include wget in second image * hold r versions * install R packages from script * add second R install script * add make * add gcc g++ * install gfortan, lapack, blas; fix spelling * garbage commit * garbage removed * add zlib-dev * update version --------- Co-authored-by: ab63 <[email protected]>
1 parent 6ca4e32 commit 667da4f

File tree

4 files changed

+87
-18
lines changed

4 files changed

+87
-18
lines changed

CHANGES.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# CHANGES
22

3+
## 3.5.1
4+
* Dockerfile updated to avoid snv_merge_and_vaf_calc.R bug and to improve reproducibility
5+
* Small change to hardcoded overlapping_mask value in indel caller
6+
37
## 3.5.0
48
* Minor bug in the indel pipeline fixed (was using bitwise OR instead of logical OR)
59
* New quality metrics added to the indel calls such that SNVs and indels come out with the same metrics

Dockerfile

Lines changed: 47 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM ubuntu:22.04 as builder
1+
FROM ubuntu:18.04 as builder
22

33
USER root
44

@@ -14,14 +14,30 @@ RUN apt-get -yq update
1414
RUN apt-get install -yq --no-install-recommends locales
1515
RUN apt-get install -yq --no-install-recommends g++
1616
RUN apt-get install -yq --no-install-recommends ca-certificates
17-
RUN apt-get install -yq --no-install-recommends cmake
17+
RUN apt-get install -yq --no-install-recommends wget
18+
19+
# install latest cmake so opt-build.sh works - the initial installs will also help install R
20+
RUN apt-get install -yq --no-install-recommends software-properties-common lsb-release
21+
RUN wget -O - https://apt.kitware.com/keys/kitware-archive-latest.asc 2>/dev/null | gpg --dearmor - | tee /etc/apt/trusted.gpg.d/kitware.gpg >/dev/null
22+
RUN apt-add-repository "deb https://apt.kitware.com/ubuntu/ $(lsb_release -cs) main"
23+
RUN apt-get install -yq --no-install-recommends cmake=3.25.2-0kitware1ubuntu18.04.1
24+
1825
RUN apt-get install -yq --no-install-recommends make
19-
RUN apt-get install -yq --no-install-recommends bzip2
20-
RUN apt-get install -yq --no-install-recommends gcc
2126
RUN apt-get install -yq --no-install-recommends pkg-config
22-
RUN apt-get install -yq --no-install-recommends wget
23-
RUN apt-get install -yq --no-install-recommends locales
24-
RUN apt-get install -yq --no-install-recommends r-base
27+
28+
# if ubuntu 18.04
29+
RUN apt install -yq --no-install-recommends dirmngr
30+
RUN wget -qO- https://cloud.r-project.org/bin/linux/ubuntu/marutter_pubkey.asc | tee -a /etc/apt/trusted.gpg.d/cran_ubuntu_key.asc
31+
RUN add-apt-repository "deb https://cloud.r-project.org/bin/linux/ubuntu $(lsb_release -cs)-cran40/"
32+
RUN apt-get install -yq --no-install-recommends r-base-core=4.1.3-1.1804.0
33+
RUN apt-mark hold r-base-core
34+
RUN apt-get install -yq --no-install-recommends r-cran-mass=7.3-51.5-2bionic0 r-cran-class=7.3-16-1bionic0 r-cran-nnet=7.3-13-1bionic0
35+
RUN apt-get install -yq --no-install-recommends r-recommended=4.1.3-1.1804.0
36+
RUN apt-get install -yq --no-install-recommends r-base=4.1.3-1.1804.0
37+
RUN apt-mark hold r-base r-recommended
38+
# if ubuntu 22.04
39+
# RUN apt-get install -yq --no-install-recommends r-base=4.1.2-1ubuntu2
40+
2541
RUN apt-get install -yq --no-install-recommends zlib1g-dev
2642
RUN apt-get install -yq --no-install-recommends libbz2-dev
2743
RUN apt-get install -yq --no-install-recommends liblzma-dev
@@ -57,11 +73,11 @@ RUN bash build/opt-build.sh $OPT
5773
COPY . .
5874
RUN bash build/opt-build-local.sh $OPT
5975

60-
FROM ubuntu:22.04
76+
FROM ubuntu:18.04
6177

6278
LABEL maintainer="[email protected]" \
6379
uk.ac.sanger.cgp="Cancer, Ageing and Somatic Mutation, Wellcome Trust Sanger Institute" \
64-
version="1.0.0" \
80+
version="1.0.1" \
6581
description="nanoseq docker"
6682

6783
ENV DEBIAN_FRONTEND=noninteractive
@@ -70,19 +86,21 @@ RUN apt-get install -yq --no-install-recommends \
7086
apt-transport-https \
7187
locales \
7288
curl \
89+
wget \
90+
make \
91+
g++ \
92+
gcc \
93+
gfortran \
94+
libblas-dev \
95+
liblapack-dev \
7396
ca-certificates \
7497
time \
7598
zlib1g \
99+
libz-dev \
76100
python3 \
77-
r-base \
78-
r-cran-ggplot2 \
79-
r-cran-data.table \
80-
r-cran-epitools \
81-
r-cran-gridextra \
82-
r-cran-seqinr \
83101
libxml2 \
84-
libgsl27 \
85-
libperl5.34 \
102+
libgsl23 \
103+
libperl5.26 \
86104
libcapture-tiny-perl \
87105
libfile-which-perl \
88106
libpng16-16 \
@@ -92,6 +110,18 @@ unattended-upgrade -d -v && \
92110
apt-get remove -yq unattended-upgrades && \
93111
apt-get autoremove -yq
94112

113+
RUN apt install -yq --no-install-recommends software-properties-common dirmngr
114+
RUN wget -qO- https://cloud.r-project.org/bin/linux/ubuntu/marutter_pubkey.asc | tee -a /etc/apt/trusted.gpg.d/cran_ubuntu_key.asc
115+
RUN add-apt-repository "deb https://cloud.r-project.org/bin/linux/ubuntu $(lsb_release -cs)-cran40/"
116+
RUN apt-get install -yq --no-install-recommends r-base-core=4.1.3-1.1804.0
117+
RUN apt-mark hold r-base-core
118+
RUN apt-get install -yq --no-install-recommends r-cran-mass=7.3-51.5-2bionic0 r-cran-class=7.3-16-1bionic0 r-cran-nnet=7.3-13-1bionic0
119+
RUN apt-get install -yq --no-install-recommends r-recommended=4.1.3-1.1804.0
120+
RUN apt-get install -yq --no-install-recommends r-base=4.1.3-1.1804.0
121+
RUN apt-mark hold r-base r-recommended
122+
ADD build/libInstall2.R build/
123+
RUN Rscript build/libInstall2.R
124+
95125
RUN locale-gen en_US.UTF-8
96126
RUN update-locale LANG=en_US.UTF-8
97127

build/libInstall2.R

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
#!/usr/bin/env Rscript
2+
3+
########## LICENCE ##########
4+
# Copyright (c) 2022 Genome Research Ltd
5+
#
6+
# Author: CASM/Cancer IT <[email protected]>
7+
#
8+
# This file is part of NanoSeq.
9+
#
10+
# This program is free software: you can redistribute it and/or modify
11+
# it under the terms of the GNU Affero General Public License as
12+
# published by the Free Software Foundation, either version 3 of the
13+
# License, or (at your option) any later version.
14+
#
15+
# This program is distributed in the hope that it will be useful,
16+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
17+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18+
# GNU Affero General Public License for more details.
19+
#
20+
# You should have received a copy of the GNU Affero General Public License
21+
# along with this program. If not, see <https://www.gnu.org/licenses/>.
22+
#
23+
# 1. The usage of a range of years within a copyright statement contained within
24+
# this distribution should be interpreted as being equivalent to a list of years
25+
# including the first and last year specified and all consecutive years between
26+
# them. For example, a copyright statement that reads ‘Copyright (c) 2005, 2007-
27+
# 2009, 2011-2012’ should be interpreted as being identical to a statement that
28+
# reads ‘Copyright (c) 2005, 2007, 2008, 2009, 2011, 2012’ and a copyright
29+
# statement that reads ‘Copyright (c) 2005-2012’ should be interpreted as being
30+
# identical to a statement that reads ‘Copyright (c) 2005, 2006, 2007, 2008,
31+
# 2009, 2010, 2011, 2012’.
32+
###########################
33+
34+
#install R packages
35+
install.packages(c("ggplot2", "data.table", "epitools", "gridExtra", "seqinr"))

python/runNanoSeq.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
import tempfile
4848
import copy
4949

50-
version = '3.4.0'
50+
version = '3.5.1'
5151

5252
parser = argparse.ArgumentParser()
5353
# arguments for all subcommands

0 commit comments

Comments
 (0)