MGlauer / Toxifier

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

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

License:GNU Affero General Public License v3.0


Languages

Language:Python 74.1%Language:HTML 15.1%Language:CSS 8.1%Language:JavaScript 2.7%