Skip to content

Commit b6763b7

Browse files
authored
Merge pull request #85 from nickp60/dockerfilee
Add Dockerfile
2 parents 5785a16 + c5a8685 commit b6763b7

File tree

2 files changed

+27
-3
lines changed

2 files changed

+27
-3
lines changed

Dockerfile

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
FROM continuumio/miniconda3
2+
MAINTAINER Nick Waters <[email protected]>
3+
RUN conda install -c anaconda matplotlib docopt tqdm wget pyyaml git
4+
RUN conda install -c bioconda pysam --update-deps
5+
RUN git clone https://github.com/DRL/blobtools.git
6+
WORKDIR blobtools
7+
8+
RUN ./blobtools -h
9+
# RUN ./blobtools create -i example/assembly.fna -b example/mapping_1.bam -t example/blast.out -o example/test
10+
RUN wget ftp://ftp.ncbi.nlm.nih.gov/pub/taxonomy/taxdump.tar.gz -P data/
11+
RUN tar zxf data/taxdump.tar.gz -C data/ nodes.dmp names.dmp
12+
RUN ./blobtools nodesdb --nodes data/nodes.dmp --names data/names.dmp

README.md

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,18 @@ Create blobplot
5757
```
5858
Usage
5959
-----
60-
```
61-
./blobtools --help
62-
```
60+
```
61+
./blobtools --help
62+
```
63+
64+
Docker
65+
------
66+
67+
A docker container can be build using the following command:
68+
```
69+
docker build -t drl/blobtools .
70+
```
71+
This docker image can be run with sample data as follows:
72+
```
73+
docker run -v $PWD/example:/example/ -t drl/blobtools ./blobtools create -i /example/assembly.fna -b /example/mapping_1.sorted.bam -t /example/blast.out -o /example/test
74+
```

0 commit comments

Comments
 (0)