Hello,
Could someone please suggest a tutorial or explain how to run bioinformatics tools via docker. I have docker installed on linux ubuntu but struggling to understand what to do after the image is pulled from gitHub.
Thanks
Hello,
Could someone please suggest a tutorial or explain how to run bioinformatics tools via docker. I have docker installed on linux ubuntu but struggling to understand what to do after the image is pulled from gitHub.
Thanks
Take a look at docker exec
command : https://docs.docker.com/engine/reference/commandline/exec/
Let's say you have a docker image where bwa is installed and is nammed : dockerBWA
to execute bwa first create the container with the docker run
command the execute the command using docker exec
docker run dockerBWA
docker exec -i -t dockerBWA bwa
Docker provides a way to load and run pre-built software from containers. You may want to read an introduction to some of the terminology and then this answer may be a little clearer.
The answer is clear but it doesn't seem to work with the tool (FusionCatcher) I would like to run. I've pulled the image from here: https://hub.docker.com/r/cgrlab/fusioncatcher/ created a container but the exec command does not work at all. If you could suggest how to run this tool i would really appropriate it. Thanks
Running a container depends on how the image is built. Usually calling docker run image_name
would directly run the program.
In this case, you can run the container like this:
docker run --rm cgrlab/fusioncatcher /opt/fusioncatcher/bin/fusioncatcher
You will also need to share folders containing your input, output data and the databases with the container. You can do it using
the -v
option for example to share data
in your current directory:
docker run --rm -v data:/data cgrlab/fusioncatcher /opt/fusioncatcher/bin/fusioncatcher
Then fusioncatcher will be able to read files from /data
. -v
can be used multiple times to share different folders.
The --rm
just removes the container after it has run to save space.
The wrong version of Bowtie was in that container. I've attempted to build an image using Dockerfile directly for GitHub. https://github.com/ndaniel/fusioncatcher
I've copied the content of the Dockerfile into a notepad and executed:
$ docker build - < /data/fusion_catcher_docker.txt
It download the image with few errors. I've tried running the image as follows:
docker run --rm -v /data:/data ab38bce870fc \
opt/fusioncatcher/bin/fusioncatcher \
-d /data/human_data/human_v90/ \
-i /data/tumor/ \
-o /data/output/
I get the following error:
docker: Error response from daemon: OCI runtime create failed: container_linux.go:348: starting container process caused "exec: \"opt/fusioncatcher/bin/fusioncatcher\": stat opt/fusioncatcher/bin/fusioncatcher: no such file or directory": unknown.
ERRO[0000] error waiting for container: context canceled
Please suggest how to proceed.
Thank you
Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
The problem is with the docker file supplied at https://github.com/ndaniel/fusioncatcher The image doesn't load correctly. Could you please try pulling the image to see if you get the same error messages.
Due to disk space limitations, I did not include the databases in the image but otherwise the build completed successfully. If you would like to test, the docker image I built is available on Docker hub.
Thank you very much!!!
The image works great. Also, I've tried to run fusioncatcher-batch.py from the image to compare tumor samples to matching normal samples but it didn't find fusioncatcher-batch.py. Is fusioncatcher-batch.py included in the dockerfile?
Thanks
I've tried to build the databases:
$ docker run -v /data:/data --rm vimalkvn/fusioncatcher-nodb fusioncatcher-build -g homo_sapiens -o /data/FusionCatcher and encountered errors below. I'm not sure if this has to do with docker file or not?
No other changes have been made to the Dockerfile. You can find it here.
The FTP errors indicate a connectivity issue (probably ports blocked in the firewall) from your computer to ftp.ensembl.org. This could also be the reason why the original docker build failed too.
As for
fusioncatcher-batch.py
, it appears not all scripts are in thePATH
. You can run it using the full path to the script like this:I'm trying to run fusioncatcher in somatic mode but it's not working:
It's working in this mode:
Thank you very much for your help