nekhbet / superpred-targetprediction
An API for the Charité's Super-PRED (Target Prediction) service
2.0.0
2024-02-22 19:24 UTC
Requires
- php: ^8.0
- ext-dom: *
- ext-libxml: *
- guzzlehttp/guzzle: ^7.8
Requires (Dev)
- phpunit/phpunit: ^9.0
README
Lets you take (and filter) the predicted targets, indicators and known binders based on a SMILES code from Super-PRED website (https://prediction.charite.de/subpages/target_prediction.php).
Installation
You can install the package via composer:
composer require nekhbet/superpred-targetprediction
Usage
$client = new SuperPREDTargetPrediction(requestTimeout: 60); $client ->setSMILESCode('Cc1cc(O)c2C(=O)c3c(O)cc(O)c4c3c3c2c1c1c2c3c3c4c(O)cc(O)c3C(=O)c2c(O)cc1C') ->run(); $binders = $client->getBinders(); $targets = $client->getTargets(min_probability: 80, min_model_accuracy: 95); $indications = $client->getIndications(min_probability: 80, min_model_accuracy: 95);
Output example: ... [12] => Array ( [target_name] => Thyroid hormone receptor alpha [id_chembl] => CHEMBL1860 [id_uniprot] => P10827 [id_pdb] => 3ILZ [id_tdd] => T79591 [probability] => 81.71 [model_accuracy] => 99.15 ) ...