UboCA / ShortCake

A docker image for singlecell analysis

Home Page:https://hub.docker.com/r/rnakato/shortcake

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ShortCake🍰

A docker image for single-cell analysis. It's on docker-hub and GitHub. This repository is an update of singlecell_jupyter.

0. Changelog

See Changelog

1. Included tools (latest)

2. Run

For Docker:

# pull docker image
docker pull rnakato/shortcake

# container login
docker run [--gpus all] --rm -it rnakato/shortcake /bin/bash
# jupyter notebook (see 'mnt/' directory in the notebook )
docker run [--gpus all] --rm -p 8888:8888 -v (your directory):/work/mnt rnakato/shortcake jupyternotebook.sh

For Singularity:

# build image
singularity build -F shortcake.sif docker://rnakato/shortcake
# jupyter notebook
singularity exec [--nv] shortcake.sif jupyternotebook.sh
# execute R directory
singularity exec [--nv] shortcake.sif R

3. Usage

3.1 Jupyter

We recommend using Jupyter notebook to use ShortCake:

singularity exec shortcake.sif jupyternotebook.sh

To isolate the environment, ShortCake prepares virtual environments for several tools. Specify the appropriate kernel to use them. In addition, the R command and all R tools are usable in the R kernel.

jupyter_kernel

3.2 Rstudio

ShortCake also provides the Rstudio environment:

singularity exec shortcake.sif rstudio

3.2 Command line

Of course, you can also use ShortCake with command line tools. For example:

singularity exec shortcake.sif velocyto run10x -m repeat_msk.gtf <10Xdir> <gtf>

If you want to use a virtual Python environment from the command line, use run_env.sh to activate it:

singularity exec shortcake.sif run_env.sh <environment> <command>
# Example to activate "celloracle" environment
singularity exec shortcake.sif run_env.sh celloracle python -c "import celloracle"

4. Build image from Dockerfile

First clone and move to the repository

git clone https://github.com/rnakato/ShortCake
cd ShortCake
  • Since the Dockerfile installs many packages from GitHub, first get a GitHub token from your own repository and add it to Docker_R/docker-compose.Seurat.yml, Docker_R/docker-compose.R.yml, and Docker_Python/docker-compose.yml.
  • Before building, download the SeuratData dataset using wget.sh in the Docker_R/SeuratData directory.

Then build packages:

# build R packages
cd Docker_R
docker compose -f docker-compose.R_Seurat.yml build 
docker-compose -f docker-compose.R.yml build
# Then build Python packages
cd ../Docker_Python/
docker-compose -f docker-compose.yml build

Contact

Ryuichiro Nakato: rnakato AT iqb.u-tokyo.ac.jp

About

A docker image for singlecell analysis

https://hub.docker.com/r/rnakato/shortcake

License:GNU General Public License v3.0


Languages

Language:Shell 59.2%Language:Python 39.4%Language:R 1.4%