GithubHelp home page GithubHelp logo

sweta7 / ewas_dap Goto Github PK

View Code? Open in Web Editor NEW

This project forked from genomicsaotearoa/ewas_dap

0.0 1.0 0.0 51.88 MB

EWAS Data Analysis

Dockerfile 0.17% Shell 1.74% R 42.67% PHP 17.71% CSS 25.97% HTML 0.19% Hack 2.81% JavaScript 4.94% Perl 0.32% Python 0.05% SCSS 3.41%

ewas_dap's Introduction

EWAS (Epigenetic-Wide Association Study) Data Analysis Pipeline

This repository contains the code base for our EWAS pipeline tools.

To run locally

Build the docker and singularity images, make sure .env file contains the right values and then invoke ./run_ewas script

Building Docker image

Note: in most cases, to build the Docker image you need to have priviledged access. It is possible to run docker without 'sudo' if the system is configured appropriately (see https://askubuntu.com/questions/477551/how-can-i-use-docker-without-sudo for reference). Running rootless docker in rootless mode is also possible, more details on: https://docs.docker.com/engine/security/rootless/

  1. install docker as described here: https://docs.docker.com/engine/install/
  2. run sudo ./build_docker

Building Singularity image

Note: to build the Singularity image from the Docker image you need to have priviledged access

  1. install singularity as described here: https://sylabs.io/guides/3.3/user-guide/installation.html
  2. have the docker image already built
  3. run sudo ./build_singularity

Building all together

Note: all pre-requisites for building Docker and Singularity images apply as stated above

To build both Docker and Singularity images run sudo ./build

Environment variables

These are best set in the ewas_config file that should be placed in the user's home folder for security reasons as it contains email password. Sample ewas_config file is available in this project

EWAS_EMAIL_FROM - "from" email address to be used in the job report email
EWAS_EMAIL_HOST - email server host to be used for sending the job report email (i.e. smtp.gmail.com)
EWAS_EMAIL_PORT - email server port to be used for sending the job report email (i.e. 495)
EWAS_EMAIL_USER - email server's username used for login
EWAS_EMAIL_PASSWORD - email server's user password - KEEP CONFIDENTIAL !!!

Running the docker image

  1. Modify the .env file to set the correct variable values or set these in the current environment
  2. run sudo ./run_docker

Running the singularity image

  1. Modify the .env file to set the correct variable values or set these in the current environment
  2. run sudo ./run_ewas

To run on HPC/singularity

Note: you must first build the singularity image on a system where docker can run in priviledged mode:

  1. run "sudo ./build" to build the docker image and produce a corresponding singularity file (ewas.img)
  2. copy the ewas.img file to a location on the cluster where the job will run from

Then to run on the cluster:

  1. choose a unique port that is not used by somebody else, high port numbers are probably safe, e.g. > 10000, here we use 10083, replace it with your chosen port in the commands below
  2. set up port forwarding, e.g. on your local machine run ssh -L 10083:localhost:10083 mahuika
  3. edit the Slurm script run_ewas_slurm (on the cluster)
    • set the environment variables
    • make sure to set EWAS_PORT to the port you chose above
    • set the resource requirements (memory, wall time, etc)
  4. submit the run script to the queue sbatch run_ewas_slurm (on the cluster)
  5. check the status of the Slurm job squeue -u $USER (on the cluster)
  6. once the job is running, on your local machine connect to http://localhost:10083/

ewas_dap's People

Contributors

markolaban avatar chrisdjscott avatar sirselim avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.