hammerlab/infino-docker

Name: infino-docker

Owner: Hammer Lab

Description: Development environment for infino.

Created: 2017-08-23 18:55:02.0

Updated: 2017-08-23 18:55:44.0

Pushed: 2018-01-11 06:04:55.0

Homepage: null

Size: 17

Language: Shell

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

This is a development environment for infino.

Install

  1. Clone the code into your home directory: git clone git@github.com:hammerlab/immune-infiltrate-explorations.git
  2. Set up a shared model cache that is world-readable: sudo mkdir -p /data/modelcache_new && sudo chmod -R 777 /data/modelcache_new
  3. Pull docker image: docker pull hammerlab/infino-docker:latest

Use

  1. Run: docker run -d --name [name your container here] -v $HOME/immune-infiltrate-explorations:/home/jovyan/work -v /data/modelcache_new:/modelcache -v /data/output_unpackaged:/data:ro -v /data/microarray:/microarrays:ro -v /data/cibersort:/cibersort:ro -p [put port that you have forwarded here]:8888 --user root -e NB_UID=$(id -u) -e NB_GID=$(id -g) hammerlab/infino-docker:latest
  2. After around two minutes (initial startup), navigate to that port that you have set up to forward – you will see a jupyter notebook server.
  3. To commit code, use git from the host (as opposed to from inside the docker container).

This command mounts your personal code directory, the shared model cache, the shared RNA-seq and microarray data directories, and the global Cibersort install, and acts as your user account for all editing purposes. (Note: anything mounted into /home/jovyan will have its ownership changed, which isn't possible in some situations, e.g. if readonly file system.)

More options available

You can view logs with: docker logs [name of your container here].

You can get a shell into the container in the following ways:

Teardown:

er stop [name of your container here] # restart with "docker start"
er rm [name of your container here]

Mounted directories will be unaffected because they live on the host.

How the image works

This is derived from the Jupyter “data science notebook” image:

You can use any options from that image, e.g. you can grant sudo access by adding -e GRANT_SUDO=yes.

Our image installs pip and conda requirements from the primary repository into a python3 environment. Here is how to get those if you want to update the image:

 https://raw.githubusercontent.com/hammerlab/immune-infiltrate-explorations/master/model-single-origin-samples/biokepi/conda_requirements.txt
 https://raw.githubusercontent.com/hammerlab/immune-infiltrate-explorations/master/model-single-origin-samples/biokepi/pip_requirements.txt

To build: docker build -t hammerlab/infino-docker:latest .


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.