Coder Social home page Coder Social logo

graph-ps's Introduction

Graph-PS

Prediction of Phase-Separating Protein Classifier by GCN

Requirements

To run this program, you may need:

  • Python 3.6 or later
  • Pytorch 1.12.1 and other related packages
  • Windows 10 enviroment
  • GPU (optional for cuda)

How to use

  1. Set up your enviroment and download the code from github:
   git clone https://github.com/ken0414/Graph-PS.git
  1. Put your data into the appropriate folder:
   [protein structure feature] --> ./data/graph    
   [protein node feature(PSSM)] --> ./data/pssm
  1. Activate your enviroment and run main.py:
   $ python main --mode cv --run 10

Within this line of code, you can choose between cross-validation mode or independent test set mode by modifying the value after mode, n2v to change the file used, and run to select the number of repetitive runs.

option value
mode cvorout
run int value for run times
  1. Get result: For each fold in a single cv, you can get the best epoch of the train in train_result.txt. After all fold trained in a single cv, you can get the evaluation of all fold in predict_result.txt and the result of prediction in fold ./result. If you run on out mode, there will be only 1 result in train_result.txt and predict_result.txt. If the value of run is bigger than 1, former result in train_result.txt of a single cv or out will be override. If you want to save the result of this file, please modify the code on your own. Samely, if you run the main.py again, all the result will be override.

graph-ps's People

Contributors

ken0414 avatar

Watchers

 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.