Coder Social home page Coder Social logo

netprophet_3.0's Introduction

NetProphet 3.0

NetProphet3.0 is a package for network inference: first, it generates intermediate networks by regression and other algorithms LASSO, DE, BART, PWM. Then, it combines them into one final network using XGboost, a supervised ML. The easiest way to run NetProphet3 is with the singularity container, as demonstrated below. Steps are easy: first install the singularity software, then pull the container, you will be ready to run NetProphet3.

I. Install NetProphet 3.0

The easiest, with Singularity container

  • Refer to Singularity website and install singularity >=3.5.2
  • load the s_np container from the sylab cloud with this command
    singularity pull library://dabid/default/s_np3:sha256.e14c3a078c052932b5e2a840beea1fa5b8798db5668e196d8e297b223b6390d3
    
  • rename the container with a shorted file name, so it is easier to use.
    mv s_np3_sha256.e14c3a078c052932b5e2a840beea1fa5b8798db5668e196d8e297b223b6390d3.sif s_np3.sif
    

The more advanced, here, all dependencies have to be installed

Refer to this wiki page for installing NetProphet dependencies

II. Run NetProphet 3.0

Clone NetProphet3.0 in a path in your computer, let's call that path ${p_src_code}

With a toy example

This is an example of NetProphet3.0 combination command, it assumes that the singularity container will be used and that's why --flag_singularity ON. Refer to the folder ${p_src_code}toy_example, for commands of each of the NetProphet3 modules; they can be run with and without singularity.

p_wd=/scratch/mblab/dabid/proj_net/
p_src_code=${p_wd}code/NetProphet_3.0/
p_out_dir=${p_wd}code/NetProphet_3.0/toy_example/res/

${p_src_code}np3 -c \
    --p_in_binding_event ${p_src_code}toy_example/data_binding_reg_target.tsv \
    --l_in_name_net "lasso,de,bart,pwm" \
    --l_in_path_net "${p_out_dir}features/net_lasso.tsv,${p_src_code}toy_example/data_zev_de_shrunken_50_500_indexed,${p_out_dir}features/net_bart.tsv,${p_out_dir}features/net_pwm.tsv" \
    --flag_training ON-CV \
    --combine_cv_nbr_fold 10 \
    --p_out_dir ${p_out_dir}10cv/ \
    --flag_singularity ON \
    --p_singularity_img /path/singularity/image \
    --p_singularity_bindpath /your/home/dir/ \
    --flag_slurm OFF

More about np3 command and options

netprophet_3.0's People

Contributors

abid-dhoha 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.