Giter VIP home page Giter VIP logo

annotation_prediction's Introduction

annotation-prediction

Pipeline for running and evaluating algorithms for gene/protein annotation prediction, e.g., to the Gene Ontology (GO) and to the Human Phenotype Ontology(HPO).

Installation

  • Required Python packages: networkx, numpy, scipy, pandas, sklearn, pyyaml, tqdm, rpy2
  • Required R packages: PPROC
conda create -n ann-pred python=3.7 r=3.6 --file requirements.txt
conda activate ann-pred

To install the R packages:

R -e "install.packages('https://cran.r-project.org/src/contrib/PRROC_1.3.1.tar.gz', type = 'source')"

If you are unable to install the the R package for computing the AUPRC and AUROC, the code will use sklearn instead, which is not as accurate in some cases.

Usage

Generate predictions

The script will automatically generate predictions from each of the given methods with should_run: [True] in the config file. The default number of predictions stored is 10. To write more, use either the --num-pred-to-write or --factor-pred-to-write options (see python run_eval_algs.py --help). For example:

python run_eval_algs.py  --config config.yaml --num-pred-to-write -1

Cross Validation

The relevant options are below. See python run_eval_algs.py --help for more details.

  • cross_validation_folds
    • Number of folds to use for cross validation. Specifying this parameter will also run CV
  • cv_seed
    • Can be used to specify the seed to use when generating the CV splits.

Example:

python run_eval_algs.py  --config config.yaml --cross-validation-folds 5 --only-eval

Plot

After CV has finished, to visualize the results, use the plot.py script. For example:

python plot.py --config config.yaml --box --measure fmax

Cite

If you use FastSinkSource or other methods in this package, please cite:

Jeffrey N. Law, Shiv D. Kale, and T. M. Murali. Accurate and Efficient Gene Function Prediction using a Multi-Bacterial Network, Bioinformatics (2020).

annotation_prediction's People

Contributors

jlaw9 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.