Skip to content

ChEB-AI/Chebifier

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

51 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Installation

Setup Backend

Some dependencies require that pytorch is already installed:

pip install torch

After that, you can install the prediction system and web framework:

pip install -r backend/requirements.txt

Chebifier comes with a number of mandatory configuration files. config.template.json contains a template for a Chebifier configuration. Copy the contents of this file

cp backend/config.template.json backend/config.json

and change the path for each setting according to your setup.

  • ELECTRA_CHECKPOINT : Path to a chebai-electra checkpoint,
  • BATCH_SIZE: Number of molecules that are passed to the model at once,
  • CLASS_HEADERS: Mapping of prediction labels to ChEBI classes,
  • CHEBI_JSON: Hierarchy of labels defined in CLASS_HEADERS (this file can be generate with robot export using the options --header "ID|LABEL|SubClasses" --entity-format ID)

Setup Frontend

Change to the respective directory and build the node.js files

cd react-app
npm run build

Run in development

You can now start the development server with

cd backend
flask run

The server should now run at localhost:5000

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •