title: "Kallisto-docker-container" author: "Durga Addepalli" date: "June 16, 2016" output: html_document
```{r include=FALSE} knitr::opts_chunk$set(eval = TRUE)
## INTRODUCTION
This guide will walk you through the steps to build a docker container for the tool "kallisto". kallisto is a program for quantifying abundances of transcripts from RNA-Seq data, or more generally of target sequences using high-throughput sequencing reads.You can read more about [Kallisto] here:(https://pachterlab.github.io/kallisto/)
(https://github.com/pachterlab/kallisto)
This tutorial assumes you have the docker installed and running.For documentation on docker installation refer to [Using Docker] (https://github.com/teamcgc/cgcR/blob/master/vignettes/UsingDocker.Part1.Rmd)
First lets copy the kallisto git repository from Github to any of your local folder!
git clone https://github.com/InSilicoDB/docker-kallisto.git kallisto-test
cd kallisto-test
docker build -t kallisto:v0 .
docker run -it kallisto:v0
docker push durgaadd/kallisto:v0
Run kallisto by running the docker image, this will get you to the bash command prompt of the kallisto container
docker run -it kallisto:v0
## Mounting a volume (mounitng a local directory onto the docker container, for getting input files to run kallisto)
To mount a local directory onto the docker container, we need to edit the Docker file and add the following RUN command
vi Dockerfile RUN mkdir -p /tmp/files
docker run -itv :/mnt/files kallisto:v0
Now inside the container (looks like root@<containerID>....), you can check to see the files/directory
cd /mnt/files
```
Install Docker Toolbox on Mac OS X
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.