Sign inSign up

albicans2021/rstudio-rnaseq

By albicans2021

•Updated 8 months ago

includes a comprehensive set of R packages for analyzing RNA-seq count data in RStudio server.

Image
Data science
Web servers
0

350

albicans2021/rstudio-rnaseq repository overview

⁠Overview

This container includes a comprehensive set of R packages for analyzing RNA-seq count data in RStudio. Additional packages can be added as needed by modifying install_packages.R.

Start the container using the provided docker-compose.yml. Once the container is running, access RStudio from your web browser at:

http://<server-IP>:18787

Place a .env file in the same directory as docker-compose.yml and set the RStudio login password as an environment variable.

The RStudio login credentials are:

Username: rstudio
Password: (defined in the .env file)

⁠Change log

v1.1

  • Remove legacy PhantomJS stack (security)

v1.0

  • first release

⁠Dockerfile (v1.1)

FROM bioconductor/bioconductor_docker:RELEASE_3_19

ENV LANG=ja_JP.UTF-8 \
    LC_ALL=ja_JP.UTF-8 \
    TZ=Asia/Tokyo

# ---- Japanese locale + fonts ----
RUN apt-get update && apt-get install -y --no-install-recommends \
      locales \
      fonts-ipaexfont \
      fonts-noto-cjk \
      libxt6 \
      liblzma-dev \
      libz-dev \
      libbz2-dev \
    && sed -i '$d' /etc/locale.gen \
    && echo "ja_JP.UTF-8 UTF-8" >> /etc/locale.gen \
    && locale-gen ja_JP.UTF-8 \
    && ln -sf /usr/share/zoneinfo/Asia/Tokyo /etc/localtime \
    && apt-get clean && rm -rf /var/lib/apt/lists/*

# ---- Install R packages at build time ----
COPY install_packages.R /tmp/install_packages.R
RUN R -q -e 'if (!requireNamespace("BiocManager", quietly=TRUE)) install.packages("BiocManager", repos="https://cloud.r-project.org")' \
  && R -q -f /tmp/install_packages.R \
  && rm -f /tmp/install_packages.R

# Remove legacy PhantomJS stack (security)
RUN R -q -e 'if ("webshot" %in% rownames(installed.packages())) remove.packages("webshot")'

RUN rm -rf \
    /usr/lib/node_modules/casperjs \
    /usr/local/lib/node_modules/casperjs \
    /opt/phantomjs \
    /usr/bin/phantomjs \
    /usr/bin/casperjs 2>/dev/null || true

⁠docker-compose.yml
services:
  rstudio:
    image: albicans2021/rstudio-rnaseq:tagname
    build:
      context: .
      dockerfile: Dockerfile
    container_name: rstudio_bioc_jp_319
    restart: always
    ports:
      - 18787:8787
    environment:
      ROOT: TRUE
      PASSWORD: ${RSTUDIO_PASSWORD}
      TZ: Asia/Tokyo
    volumes:
      - /home/main/analysis/rstudio:/home/rstudio
  • Start the container (use the pre-built image)
docker compose up -d
  • Build locally and start
docker compose up -d --build

⁠.env
RSTUDIO_PASSWORD=your_password

⁠install_packages.R
# install_packages.R (for Docker build)

# Fix repository sources to official Bioconductor and CRAN cloud for reproducibility
repos <- BiocManager::repositories()
repos["CRAN"] <- "https://cloud.r-project.org"
options(repos = repos)

# 2) CRAN packages
cran_pkgs <- c(
  "pheatmap",
  "matrixStats",
  "tidyverse",
  "knitr",
  "kableExtra",
  "ggrepel",
  "pathview"
)

install.packages(cran_pkgs, dependencies = TRUE)

# 3) Bioconductor packages
bioc_pkgs <- c(
  "biomaRt",
  "DESeq2",
  "clusterProfiler",
  "org.Hs.eg.db",
  "enrichplot",
  "ReactomePA",
  "ggtree"
)

BiocManager::install(bioc_pkgs, ask = FALSE, update = FALSE)

Tag summary

Content type

Image

Digest

sha256:d904b7b7c…

Size

2.5 GB

Last updated

8 months ago

docker pull albicans2021/rstudio-rnaseq:1.1