Git Product home page Git Product logo

dom-adv-sigu's Introduction

dom-adv-sigU

Using Domain-Adversarial NN to Predict Cleavage Sites of Signal Peptides.

Setup environment

$ source config_env

Install

$ pip3 install -r requires.txt

Execute

Generate 20 models and evaluate them.

All available dataset: euk, gram-, gram+, all, bacteria.

Ratio: the ratio of good and bad features.

e.g. 0.5 for 1:1, 0.2 for 1:4.

$ ./run.sh euk 0.5

All the result will be in log/euk_0.5.txt.

Build Feature

Build initial features

Go to bin:

$ cd bin/

All available dataset: euk, gram-, gram+, all, bacteria.

$ ./build_train_features.py euk

Initial training features saves in data/features/ as train.npy.

Evalate features saves in data/features/ and eval.npy.

All available dataset: euk, gram-, gram+, all, bacteria.

$ ./build_eval_features.py euk

Testing features saves in data/features/ as test.npy.

Build 'good' and 'bad' features using initial features

Ratio : the ratio of good and bad features.

e.g. 0.5 for 1:1, 0.2 for 1:4

$ ./random_select.py 0.5

'Good' and 'bad' features saves in data/features/ train_good.npy and train_bad.npy.

Build 'good' and 'bad' features with SPDS17 features

Ratio : the ratio of good and bad features.

e.g. 0.5 for 1:1, 0.2 for 1:4

SPDS17 features: test.npy

$ ./con_bad_data.py 0.5

'Good' and 'bad' features saves in data/features/ train_good.npy and train_bad.npy.

Run Experiment

Train a model using 'Good' and 'bad' features

$ cd experiment/
$ ./domain_adversarial.py model_name/

The model saves in models/modle_name/

Evaluate the model

./get_pred.py model_name/

dom-adv-sigu's People

Contributors

yichung279 avatar

Watchers

 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.