Skip to content

loschmidt/predictonco-predictor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PredictONCO Predictor

DOI

PredictONCO is the web tool for fully automated and fast analysis of the effect of mutations on stability and function in known cancer targets applying in silico methods of molecular modelling, bioinformatics and machine learning. Learn more at the Help page.

This repository contains the predictor code and models. The minimal version of Python is 3.8.

Models

The PredictONCO predictor has two models:

Run predictor

Install Python requirements.

pip3 install -r requirements.txt

Run predictor. You can use an example input file.

python3 predictor.py -i example_single_seq.json

Input file can contain a single input data object or an array of objects. For each data object, a model is chosen based on the structure property. Properties are defined in the predictor.py file as typed dictionaries.

To run predictor for the dataset published on Zenodo, use TSV conversion.

python3 tsv_convert_input.py -i PredictONCO-features.txt -o PredictONCO-features.json
python3 predictor.py -i PredictONCO-features.json -o PredictONCO-results.json
python3 tsv_convert_output.py -i PredictONCO-results.json -o PredictONCO-results.txt

# or

cat PredictONCO-features.txt | python3 tsv_convert_input.py | python3 predictor.py | python3 tsv_convert_output.py

Train predictor

Install Python requirements.

pip3 install -r requirements.txt
pip3 install -r requirements_train.txt

Set path to the dataset in the train_data_file variable in ponco_data_setup.py.

Execute predictor training.

python3 ponco_train_main.py