Giter Site home page Giter Site logo

santhisenan / lmetalsite Goto Github PK

View Code? Open in Web Editor NEW

This project forked from biomed-ai/lmetalsite

1.0 1.0 0.0 7.08 MB

MetalSite: alignment-free metal ion-binding site prediction from protein sequence through pretrained language model and multi-task learning

Python 99.68% Shell 0.32%

lmetalsite's Introduction

Setting up environment

  1. Run conda env create -f env.yml
  2. Run conda activate lmetalsite

Generating features and training

  1. Run extract.py (placed in script folder of the author's github set of code).

This will produce a folder called scriptProtTrans_repr. This folder contains all the features per protein in .npy format.

  1. Move the contents of the script/ProtTrans_repr folder (just the contents, dont move the whole folder) to Feature/ProtTrans/raw_emb (from here onwards will just be using the codes author gave to Shen Cheng)

  2. Create a folder named emb in Feature/ProtTrans/

  3. Run process_ProtTrans.py and the output of the processed data will be in Feature/ProtTrans/emb. The code also saves the Max_ProtTrans_repr.npy and Min_ProtTrans_repr.npy that was used for normalization.

  4. create four empty folders in Feature/input_potrans called CA_label, MG_label, MN_label and ZN_label.

  5. Run pad_feature.py which will output the necessary tensors required for training into input_protrans folder.

  6. Now can start training using this command line:

    ./run.sh main.py [gpu number] [name of folder to save the training stuff]

  7. Run test: go to run.sh can comment out the train and uncomment the test. then run this same command line

    ./run.sh main.py [gpu number] [name of THE SAME folder of your training stuff]

lmetalsite's People

Contributors

santhisenan avatar yuanqm55 avatar

Stargazers

 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.