GithubHelp home page GithubHelp logo

bioinfo-hub / shortcake Goto Github PK

View Code? Open in Web Editor NEW

This project forked from rnakato/shortcake

0.0 0.0 0.0 49.17 MB

A docker image for singlecell analysis

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

License: GNU General Public License v3.0

Shell 59.28% Python 39.27% R 1.45%

shortcake's Introduction

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

shortcake's People

Contributors

rnakato avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.