Container to use for the analysis of RNA-seq data.
1.8K
This directory contains the recipe to build the docker container for R analysis of RNA-seq data. This uses the bioconductor docker as a base so you can port to using Rstudio in the browser.
The recipes associated with these images are available on github.
These images have been designed to work specifically with a Snakemake pipeline to analyze RNA-seq data
To download, the image, you can simply run
docker pull kwellswrasman/rna_seq_r:v2
To convert this image to singularity, simply run
singularity pull --name rna_seq_r_v2.sif docker://kwellswrasman/rna_seq_r:v2
To run Rstudio using this image, in a terminal run
docker run \
-e PASSWORD=bioc \
-p 8787:8787 \
kwellswrasman/rna_seq_r:v2
If you navagate to http://localhost:8787 on you web browswer, you will be able to log into a Rstudio session using rstudio as your username and whatever you set above as the password, in this case bioc.
With the above command, you won't have access to your system, but adding a mount line will fix it.
docker run \
-e PASSWORD=bioc \
-p 8787:8787 \
--mount type=bind,source="$(pwd)",target=/home/rstudio/rnaseq \
kwellswrasman/rna_seq_r:v2
More information on the base container is here
Packages installed in this container can be found in the R_dependencies file. The renv.lock file will provide all packages and versions.
To run R studio with singularity on a slurm server, use the helper launch_rstusio.sh script. The log file will include instruction for how to run rstusio from within the singularity image in a running job. This requires ssh access to the server.
renvThis image was built using version control with renv.
To build the container initially, I added any desired packages to R_dependencies and then I followed the following steps
COPY renv.lock renv.lock
RUN R -e "renv::restore()"
docker build rna_seq_r:v2 ./
docker run -it --mount type=bind,source="$(pwd)",target=/home/rstudio/r_docker rna_seq_r:v2 sh
renv to install packages. Any non-cran packages need to be installed manually using the full github path or bioc:: for bioconductor packages. I then copy the lock file into the r_docker directory.R
> renv::init()
> renv::hydrate()
> renv::install(c("github_user/github_package", "bioc::bioconductor_package"))
> renv::snapshot
> q()
cp renv.lock r_docker
exit
COPY renv.lock renv.lock
RUN R -e "renv::restore()"
docker build atac_chip_r:v1 ./
Add you new package to R_dependencies
Start an interactive shell in the docker container (this assumes it has been downloaded from dockerhub, see above)
docker run -it --mount type=bind,source="$(pwd)",target=/home/rstudio/r_docker rna_seq_r:v2 sh
renv. Any non-cran packages need to be installed manually using the full github path or bioc:: for bioconductor packages. I then copy the lock file into the r_docker directory.R
> renv::init()
> renv::hydrate()
> renv::install(c("github_user/github_package", "bioc::bioconductor_package"))
> renv::snapshot
> q()
cp renv.lock r_docker
exit
docker build rna_seq_r:v2 ./
Content type
Image
Digest
sha256:658bb042d…
Size
3.1 GB
Last updated
over 1 year ago
docker pull kwellswrasman/rna_seq_r