HUB
Sign inSign up
lamin_ac_mice logo

alexdaiii/lamin_ac_mice

By alexdaiii

•Updated about 3 years ago

Docker image for creating an R development environment for processing differential expression

Image
0

294

alexdaiii/lamin_ac_mice repository overview

Dockerfile (assuming using non-root docker):

FROM rocker/r-ver:4.3
LABEL authors="Alex Chang"

# Update apt-get
RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \
    && apt-get install -y libglpk-dev libharfbuzz-dev libfribidi-dev libhdf5-dev patch liblzma-dev libbz2-dev libclang-dev

# create a place for a volume to be mounted for vscode server
ARG vscode_server=/root/.vscode-server
RUN mkdir -p ${vscode_server} \
    && mkdir -p /root/code

# Set the working directory to vscode home
WORKDIR /root/code

# Install R packages (bioconductor and CRAN) using 16 threads
# TODO use multistage build to reduce image size wile also allowing for caching
#   when we need more packages
RUN R -e "install.packages(c('BiocManager', 'tidyverse', 'ggrepel', 'GOplot'), repos='http://cran.rstudio.com/', dependencies=TRUE, Ncpus = 32)"
RUN R -e "BiocManager::install(c('org.Hs.eg.db', 'DOSE', 'clusterProfiler', 'enrichplot', 'pheatmap', 'genefilter', 'org.Mm.eg.db'), Ncpus = 32)"
RUN R -e "BiocManager::install(c('DESeq2', 'edgeR', 'limma'), Ncpus = 32)"


# make it stay alive
CMD ["tail", "-f", "/dev/null"]

Example docker compose

version: "3"

volumes:

  vscode_server: null
  r_site_library: null
  r_library: null

services:
  r-lang:
    build:
      context: .
      dockerfile: Dockerfile
    image: alexdaiii/lamin_ac_mice:1.0.0
    init: true
    volumes:
      - vscode_server:/root/.vscode-server
      - r_site_library:/usr/local/lib/R/site-library
      - r_library:/usr/local/lib/R/library
      - .:/root/${WORKDIR:-code}

Tag summary

Content type

Image

Digest

sha256:14d4904bc…

Size

1 GB

Last updated

about 3 years ago

docker pull alexdaiii/lamin_ac_mice:1.0.2