GithubHelp home page GithubHelp logo

bnet's Introduction

Bnet

Outline

Set your environment

Download the sources and install according to the following instruction:

Clone the repo from github:

git clone https://github.com/hag007/bnet.git
cd bnet

Bnet is written in Python 3.6. We recommend using a virtual environment. in Linux:

python3 -m venv bnet-env
source bnet-env/bin/activate

To install Bnet dependencies type:

pip install -r  config/dependencies.txt

Run Bnet

Bnet consists of several steps. For a specific set of input parameters, these steps should be carried sequentially.
Each parameter can be specified as command line parameter (For example python script.py --param1 value1 --param2 value2). values of parameters which are not specified in the command line are taken from config/conf.json. Note that all scripts shoudl be executed from the src/emp folder.

  1. generate_solution.py: Run the bnet_sa algorithm.
    parameters:
    --dataset_file: path to dataset file.
    --algo: the algorithm to execute.
    --permuted_solutions_folder: folder where permuted solutions reside.
    --true_solutions_folder: folder where true solutions reside.
    --go_folder: folder where GO files are located.
    --network_file: file of the biological network of the analysis.
    --additional_args: additional arguments that are relevant to a particular AMI algorithm.

  2. calc_pcs.py: For each module reported in the bnet_sa solution, the first PC is extracted. These PCs will server later as features to train classifiers (see step #3) .
    parameters:
    --dataset_file: path to dataset file.
    --algo: the algoritm to execute.
    --network_file: file of the biological network of the analysis.
    --go_folder: folder where GO files are located.
    --true_solutions_folder: folder where true solutions reside.
    --additional_args: additional arguments that are relevant to a particular AMI algorithm.

  3. calc_prediction.py: uses the PCs generated in step #2 as features to train the classifiers RF and SVM. In addition, for each classifier, and check the following metrics: F1, AUPR, AUROC.
    parameters:
    --dataset_file: path to dataset file.
    --algo: AMI algorithm.
    --network_file: file of the biological network of the analysis.
    --go_folder: folder where GO files are located.
    --true_solutions_folder: folder where true solutions reside.
    --additional_args: additional arguments that are relevant to a particular AMI algorithm.

Parameters default values are defined at config/conf.json

Main output files

TBD

Bnet container

Bnet is also available as ready-to-use tool in a container. Using TAU-VPN and gdocker, type gdocker gaga-import --image_name=bnet

bnet's People

Contributors

eranshp avatar dpellow avatar hag007 avatar

Watchers

James Cloos avatar  avatar  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.