In order to enable users to work with mvMAPIT without having to install all dependencies and libraries on their local,
we provide a docker build with all dependencies and an installed R package mvMAPIT
. Learn how to build your
own version of the docker image.
Follow the official guide to learn how to Get Docker. This is required for being able to follow this tutorial.
The github repository of mvMAPIT already comes with a Dockerfile
. To build the
image, clone the github repository and run the following commands.
cd mvMAPIT
docker build -t mvmapit .
This will produce an image named mvmapit
that contains Rstudio
, mvMAPIT
, and all dependencies.
With a local copy of the docker image mvmapit
available, run the following code.
docker run --rm -ti \ -e DISABLE_AUTH=true \ -p 8787:8787 \ --name my_container \ mvmapit
This will start the docker container that serves an RStudio application at localhost:8787
. In this
container, mvMAPIT
is already installed and can be imported and run in the R console via the following code.
library(mvMAPIT) mvmapit(t(simulated_data$genotype[1:100,1:10]), t(simulated_data$trait[1:100,]), cores = 2, logLevel = "DEBUG")
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.