Skip to content
This repository has been archived by the owner on Jun 21, 2023. It is now read-only.

Install MATLAB Compiler Runtime on project Docker container #531

Merged
merged 23 commits into from
Feb 11, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
b51a2a1
First pass at MCR install
jaclyn-taroni Feb 10, 2020
71eb8a6
The xorg step appeared to be hanging
jaclyn-taroni Feb 10, 2020
1fd2174
Needs to be noninteractive
jaclyn-taroni Feb 10, 2020
ca42358
Forgot RUN
jaclyn-taroni Feb 10, 2020
82a6e77
Try noninteractive another way
jaclyn-taroni Feb 10, 2020
6d26ad0
Environmental variables for MCR
jaclyn-taroni Feb 10, 2020
1b839c4
Move up copy number consensus
jaclyn-taroni Feb 10, 2020
f840192
Move MCR up
jaclyn-taroni Feb 10, 2020
6a7cbba
Revert "Move MCR up"
jaclyn-taroni Feb 10, 2020
920df52
Don't configure environmental variables
jaclyn-taroni Feb 10, 2020
0895474
Unclear if the embryonal subtyping is failure related
jaclyn-taroni Feb 10, 2020
caf3e0f
Revert "Unclear if the embryonal subtyping is failure related"
jaclyn-taroni Feb 10, 2020
034f890
Revert "Move up copy number consensus"
jaclyn-taroni Feb 10, 2020
9921bb7
WIP: push what I have
jaclyn-taroni Feb 11, 2020
f515fba
add MCR working w/ gistic steps
cgreene Feb 11, 2020
e805a1e
Merge branch 'master' into 529-mcr-install
cgreene Feb 11, 2020
96625f6
hold my container
cgreene Feb 11, 2020
f2572a9
Merge branch '529-mcr-install' of github.com:jaclyn-taroni/OpenPBTA-a…
cgreene Feb 11, 2020
b37c7b1
Move export LD_LIBRARY_PATH step
jaclyn-taroni Feb 11, 2020
198fbc2
Use ENV instead
jaclyn-taroni Feb 11, 2020
644709e
Quiet wget
jaclyn-taroni Feb 11, 2020
7f6da58
Install GISTIC in /home/rstudio
jaclyn-taroni Feb 11, 2020
3975a78
Add GISTIC proof of concept
jaclyn-taroni Feb 11, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ jobs:
name: Sample Distribution Analyses
command: ./scripts/run_in_ci.sh bash "analyses/sample-distribution-analysis/run-sample-distribution.sh"

- run:
name: GISTIC proof of concept
command: ./scripts/run_in_ci.sh bash analyses/gistic-proof-of-concept/gistic-example.sh

# The analysis no longer needs to be tested as it has been retired and is better covered by 'SNV Caller Analysis' below.
#- run:
# name: Mutect2 vs Strelka2
Expand Down
37 changes: 34 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ RUN R -e "BiocManager::install(c('annotatr', 'TxDb.Hsapiens.UCSC.hg38.knownGene'
RUN R -e "BiocManager::install(c('preprocessCore', 'sva'), update = FALSE)"


## This is deprecated
## This is deprecated
# # These packages are for single-sample GSEA analysis
# RUN R -e "BiocManager::install(c('GSEABase', 'GSVA'), update = FALSE)"

Expand Down Expand Up @@ -180,7 +180,7 @@ RUN R -e "BiocManager::install(c('TCGAbiolinks'), update = FALSE)"

# Install python3 data science basics (pandas)
# using pip to get more current versions
RUN apt-get update -qq && apt-get -y --no-install-recommends install python3-pip python3-dev
RUN apt-get update -qq && apt-get -y --no-install-recommends install python3-pip python3-dev
RUN pip3 install "numpy==1.17.3" && \
pip3 install "six==1.13.0" "setuptools==41.6.0" && \
pip3 install "cycler==0.10.0" "kiwisolver==1.1.0" "pyparsing==2.4.5" "python-dateutil==2.8.1" "pytz==2019.3" && \
Expand Down Expand Up @@ -212,7 +212,7 @@ RUN apt-get update -qq && apt-get -y --no-install-recommends install \
survival \
cmprsk \
survMisc \
survminer
survminer

# pyreadr for comparative-RNASeq-analysis
RUN pip3 install "pyreadr==0.2.1"
Expand Down Expand Up @@ -260,3 +260,34 @@ RUN R -e "withr::with_envvar(c(R_REMOTES_NO_ERRORS_FROM_WARNINGS='true'), remote
#### Please install your dependencies here
#### Add a comment to indicate what analysis it is required for

# MATLAB Compiler Runtime is required for GISTIC, MutSigCV
# Install steps are adapted from usuresearch/matlab-runtime
# https://hub.docker.com/r/usuresearch/matlab-runtime/dockerfile

ENV DEBIAN_FRONTEND noninteractive
RUN apt-get -q update && \
apt-get install -q -y --no-install-recommends \
xorg

RUN mkdir /mcr-install && \
mkdir /opt/mcr && \
cd /mcr-install && \
wget https://www.mathworks.com/supportfiles/downloads/R2014a/deployment_files/R2014a/installers/glnxa64/MCR_R2014a_glnxa64_installer.zip && \
unzip -q MCR_R2014a_glnxa64_installer.zip && \
rm -f MCR_R2014a_glnxa64_installer.zip && \
./install -destinationFolder /opt/mcr -agreeToLicense yes -mode silent && \
cd / && \
rm -rf mcr-install

WORKDIR /home/rstudio/

# GISTIC installation
RUN mkdir -p gistic_install && \
cd gistic_install && \
wget -q ftp://ftp.broadinstitute.org/pub/GISTIC2.0/GISTIC_2_0_23.tar.gz && \
tar zxf GISTIC_2_0_23.tar.gz

RUN chown -R rstudio:rstudio /home/rstudio/gistic_install
RUN chmod 755 /home/rstudio/gistic_install

WORKDIR /rocker-build/
9 changes: 9 additions & 0 deletions analyses/gistic-proof-of-concept/gistic-example.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/bin/bash

set -e
set -o pipefail

export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/mcr/v83/runtime/glnxa64:/opt/mcr/v83/bin/glnxa64:/opt/mcr/v83/sys/os/glnxa64:
export XAPPLRESDIR=/opt/mcr/v83/X11/app-defaults

cd /home/rstudio/gistic_install && ./run_gistic_example