Skip to content

Commit cc3b8fa

Browse files
author
Daniel Cooke
committed
Merge branch 'release/0.7.0'
2 parents fd98129 + 66c8aee commit cc3b8fa

File tree

589 files changed

+28842
-14213
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

589 files changed

+28842
-14213
lines changed

.dockerignore

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
**/.classpath
2+
**/.dockerignore
3+
**/.env
4+
**/.git
5+
**/.gitignore
6+
**/.project
7+
**/.settings
8+
**/.toolstarget
9+
**/.vs
10+
**/.vscode
11+
**/*.*proj.user
12+
**/*.dbmdl
13+
**/*.jfm
14+
**/azds.yaml
15+
**/bin
16+
**/charts
17+
**/docker-compose*
18+
**/Dockerfile*
19+
**/node_modules
20+
**/npm-debug.log
21+
**/obj
22+
**/secrets.dev.yaml
23+
**/values.dev.yaml
24+
**/.travis.yml
25+
README.md
26+
CONTRIBUTING.md
27+
logo.png
28+
**/doc
29+
**/cmake-build-debug
30+
**/test
31+
**/resources/forests/*
32+
**/build/*
33+
!**/build/cmake

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,26 @@ about: Create a report to help us improve
77
**Describe the bug**
88
A clear and concise description of what the bug is.
99

10+
**Version**
11+
12+
```shell
13+
$ octopus --version
14+
// PASTE OUTPUT HERE
15+
```
16+
1017
**Command**
18+
Command line to install octopus:
19+
```shell
20+
$
21+
```
22+
1123
Command line to run octopus:
1224
```shell
1325
$ octopus
1426
```
1527

16-
**Desktop (please complete the following information):**
17-
- OS: [e.g. OSX High Sierra]
18-
- Version [e.g. v0.3.3-alpha]
19-
- Reference [e.g. hg19]
20-
2128
**Additional context**
22-
Add any other context about the problem here.
29+
Add any other context about the problem here, e.g.
30+
31+
- Reference [e.g. hg19]. Please provide link to fasta if atypical.
32+
- BAM files (if possible).

.gitignore

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -245,3 +245,13 @@ TSWLatexianTemp*
245245
.DS_Store
246246
.idea/
247247
cmake-build-debug/*
248+
249+
# vccode
250+
.vscode/
251+
252+
# Ninja
253+
build/rules.ninja
254+
build/.ninja_deps
255+
build/.ninja_log
256+
build/build.ninja
257+
build/compile_commands.json

CMakeLists.txt

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,28 +7,33 @@ include(CheckIPOSupported)
77
project(octopus)
88

99
set(octopus_VERSION_MAJOR 0)
10-
set(octopus_VERSION_MINOR 6)
11-
set(octopus_VERSION_PATCH 3)
12-
set(octopus_VERSION_RELEASE beta)
10+
set(octopus_VERSION_MINOR 7)
11+
set(octopus_VERSION_PATCH 0)
12+
set(octopus_VERSION_RELEASE "")
13+
14+
# Generate list of compile commands. This helps debugging and doesn't have a downside.
15+
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
16+
# Avoid warnings when using GMP_ROOT
17+
cmake_policy(SET CMP0074 NEW)
1318

1419
# Get the current working branch
1520
execute_process(
1621
COMMAND git rev-parse --abbrev-ref HEAD
1722
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
18-
OUTPUT_VARIABLE GIT_BRANCH
23+
OUTPUT_VARIABLE GIT_BRANCH_
1924
OUTPUT_STRIP_TRAILING_WHITESPACE
2025
)
2126

2227
# Get the latest abbreviated commit hash of the working branch
2328
execute_process(
2429
COMMAND git log -1 --format=%h
2530
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
26-
OUTPUT_VARIABLE GIT_COMMIT_HASH
31+
OUTPUT_VARIABLE GIT_COMMIT_HASH_
2732
OUTPUT_STRIP_TRAILING_WHITESPACE
2833
)
2934

30-
add_definitions(-DGIT_COMMIT_HASH="${GIT_COMMIT_HASH}")
31-
add_definitions(-DGIT_BRANCH="${GIT_BRANCH}")
35+
set(GIT_BRANCH "${GIT_BRANCH_}")
36+
set(GIT_COMMIT_HASH "${GIT_COMMIT_HASH_}")
3237

3338
configure_file (
3439
"${PROJECT_SOURCE_DIR}/src/config/version.h.in"
@@ -52,6 +57,10 @@ elseif(CMAKE_CXX_COMPILER_ID MATCHES "Clang")
5257
if(CMAKE_CXX_COMPILER_VERSION VERSION_LESS "3.8")
5358
message(FATAL_ERROR "Clang version must be at least 3.8!")
5459
endif()
60+
elseif(CMAKE_CXX_COMPILER_ID MATCHES "Intel")
61+
if(CMAKE_CXX_COMPILER_VERSION VERSION_LESS "3.8")
62+
message(FATAL_ERROR "Intel version must be at least 19.0!")
63+
endif()
5564
else()
5665
message(WARNING "You are using an unsupported compiler! Compilation has only been tested with Clang and GCC.")
5766
endif()

Dockerfile

Lines changed: 8 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -1,64 +1,23 @@
11
FROM ubuntu:latest
22

3+
ENV DEBIAN_FRONTEND=noninteractive
4+
35
# Get all apt dependencies
46
RUN apt-get -y update
57
RUN apt-get -y install software-properties-common
68
RUN apt-get install -y --no-install-recommends apt-utils
79
RUN add-apt-repository -y ppa:ubuntu-toolchain-r/test
810
RUN apt-get -y install \
9-
gcc-8 g++-8 \
11+
gcc g++ \
1012
build-essential \
11-
make \
12-
wget \
13-
autotools-dev \
14-
libicu-dev \
1513
git \
1614
curl \
17-
libcurl4-openssl-dev \
18-
pkg-config \
19-
autoconf \
20-
libbz2-dev \
21-
liblzma-dev \
22-
zlib1g-dev \
23-
openssl \
24-
libssl-dev \
25-
libcrypto++-dev
26-
ENV CC gcc-8
27-
ENV CXX g++-8
28-
29-
# Install CMake
30-
WORKDIR /tmp
31-
RUN wget https://cmake.org/files/v3.11/cmake-3.11.4.tar.gz
32-
RUN tar -xzvf cmake-3.11.4.tar.gz
33-
WORKDIR /tmp/cmake-3.11.4
34-
RUN ./bootstrap --prefix=/usr/local
35-
RUN make -j2
36-
RUN make install
37-
38-
# Install Boost
39-
WORKDIR /tmp
40-
RUN wget -O boost_1_68_0.tar.gz http://sourceforge.net/projects/boost/files/boost/1.68.0/boost_1_68_0.tar.gz/download
41-
RUN tar xzvf boost_1_68_0.tar.gz
42-
WORKDIR /tmp/boost_1_68_0
43-
RUN ./bootstrap.sh --prefix=/usr/local --without-libraries=python,mpi
44-
RUN ./b2 -j2 toolset=gcc-8 cxxflags="-std=c++14"
45-
RUN ./b2 install
15+
python3-pip
4616

47-
# Install htslib
48-
WORKDIR /tmp
49-
RUN git clone -b master https://github.com/samtools/htslib.git
50-
WORKDIR /tmp/htslib
51-
RUN autoheader
52-
RUN autoconf
53-
RUN ./configure
54-
RUN make -j2
55-
RUN make install
17+
RUN pip3 install distro
5618

5719
# Install Octopus
58-
WORKDIR /tmp
59-
RUN git clone -b develop https://github.com/luntergroup/octopus.git
60-
WORKDIR /tmp/octopus
61-
RUN ./scripts/install.py --root --threads=2
62-
RUN ldconfig
20+
COPY . /home/octopus
21+
RUN /home/octopus/scripts/install.py --dependencies --forests --threads 4
6322

64-
WORKDIR /home
23+
ENTRYPOINT ["/home/octopus/bin/octopus"]

0 commit comments

Comments
 (0)