Skip to content

Latest commit

 

History

History
180 lines (103 loc) · 5.8 KB

installation.md

File metadata and controls

180 lines (103 loc) · 5.8 KB

Installation and Configuration MethylStar

last update: 24-Sep-2021

MethylStar is based on several softwares/tools therefore, it is necessary to have all dependencies to be pre-installed in your system and available in the PATH ( A. Standard installation ) or it can be installed as a docker image ( B. Installation using docker ).

It is highly recommended to use a docker image as it simplifies the process of managing application processes in containers. Containers let you run your applications in resource-isolated processes. They’re similar to virtual machines, but containers are more portable, resource-friendly and dependent on the host operating system.



Approximate time ~ 30 minutes

Before running MethylStar, you will need to install or check the installation of several packages.

Step A.1 — Installing Software (tested version with MethylStar)

We are testing MethylStar every month with the new version of software to make sure the stability and compatibility.

Step A.2 — Download MethylStar folder from github
$ git clone https://github.com/jlab-code/MethylStar
Step A.3 — ‘cd’ into the MethylStar folder and type the following command
python2 run.py

This tutorial based on Ubuntu 18.04

Approximate time ~ 10 minutes

(Optional) Please follow the links in case if you need to install/config the Dcoker in your system.

Get Docker CE for Ubuntu: https://docs.docker.com/v17.09/engine/installation/linux/docker-ce/ubuntu/

First tutorial: https://www.digitalocean.com/community/tutorials/how-to-install-and-use-docker-on-ubuntu-18-04

Second tutorial: https://phoenixnap.com/kb/how-to-install-docker-on-ubuntu-18-04

Step 1 — Loading MethylStar docker image

Approximate time ~ 10 minutes

We prepared MethylStar docker image which is easiest way to import and run the Pipeline, in this case you don't need to wait to install the software.

Here you can download the image file and run by docker:

$ wget www.jlabdata.org/methylstar.tar.gz
last update: 26-Nov-2020
file size: 1.1 Gb
md5sum: ee92aa36c4db23f929a5349ca54c7246

Step 2 — Import the image file into docker:

$ docker load < methylstar.tar.gz

Step 3 — Running docker file

Running the methylstar docker file.

$ docker run --rm -it --privileged -v /PATH/TO/RAWDATA/:/data \
                 -v /PATH/TO/RESULT/FOLDER/:/results \
                 methylstar:latest

NOTE 1: Please change the /PATH/TO/RAWDATA/ according to the your raw files folder in your system.

NOTE 2: All the pipeline result will save in /PATH/TO/RESULT/FOLDER/ so please change the directory.

NOTE 3: Please do not change /data and /results.


(Optional) Create image by docker file (advanced users)

Approximate time ~ 20 minutes

If you interested to install/add more package(s)/libraries into your docker image you can edit the Dockerfile to customize the image.

After edit the "Dockerfile" you should build the image from that file, please follow the commands bellow to build the docker image.

Step 1 — create folder eg: myDocker

$ mkdir /home/$USER/myDocker

Step 2 — move the DockerFile into the direcotry.

$ mv Dockerfile  /home/$USER/myDocker 
$ cd /home/$USER/myDocker

Step 3 — build the image.

$ docker build -t methylstar .    # there is a 'dot' in the end of command.

Step 4 — run the docker image.

$ docker run --rm -it --privileged -v /PATH/TO/RAWDATA/:/data \
                 -v /PATH/TO/RESULT/FOLDER/:/results \
                 methylstar:latest

After running the docker file you will be in the main directory of pipeline, at this time all the software already installed and you have just run command:

$ python2 run.py

For more information about how to use the pipline Please follow this documentation.