-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
28 changed files
with
7,642 additions
and
1,936 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,86 @@ | ||
{ | ||
"cells": [ | ||
{ | ||
"cell_type": "code", | ||
"execution_count": 1, | ||
"metadata": {}, | ||
"outputs": [ | ||
{ | ||
"name": "stderr", | ||
"output_type": "stream", | ||
"text": [ | ||
"2024-09-17 13:55:42.809543: E external/local_xla/xla/stream_executor/cuda/cuda_dnn.cc:9261] Unable to register cuDNN factory: Attempting to register factory for plugin cuDNN when one has already been registered\n", | ||
"2024-09-17 13:55:42.809613: E external/local_xla/xla/stream_executor/cuda/cuda_fft.cc:607] Unable to register cuFFT factory: Attempting to register factory for plugin cuFFT when one has already been registered\n", | ||
"2024-09-17 13:55:42.811552: E external/local_xla/xla/stream_executor/cuda/cuda_blas.cc:1515] Unable to register cuBLAS factory: Attempting to register factory for plugin cuBLAS when one has already been registered\n", | ||
"2024-09-17 13:55:42.821527: I tensorflow/core/platform/cpu_feature_guard.cc:182] This TensorFlow binary is optimized to use available CPU instructions in performance-critical operations.\n", | ||
"To enable the following instructions: AVX2 AVX512F FMA, in other operations, rebuild TensorFlow with the appropriate compiler flags.\n", | ||
"2024-09-17 13:55:44.073516: W tensorflow/compiler/tf2tensorrt/utils/py_utils.cc:38] TF-TRT Warning: Could not find TensorRT\n" | ||
] | ||
}, | ||
{ | ||
"name": "stdout", | ||
"output_type": "stream", | ||
"text": [ | ||
"WARNING:tensorflow:From /home/jcapela/miniforge3/envs/sm_precursor_predictor/lib/python3.10/site-packages/tensorflow/python/util/deprecation.py:588: calling function (from tensorflow.python.eager.polymorphic_function.polymorphic_function) with experimental_relax_shapes is deprecated and will be removed in a future version.\n", | ||
"Instructions for updating:\n", | ||
"experimental_relax_shapes is deprecated, use reduce_retracing instead\n" | ||
] | ||
}, | ||
{ | ||
"name": "stderr", | ||
"output_type": "stream", | ||
"text": [ | ||
"Skipped loading modules with pytorch-lightning dependency, missing a dependency. No module named 'pytorch_lightning'\n", | ||
"Skipped loading some Jax models, missing a dependency. No module named 'jax'\n", | ||
"/home/jcapela/miniforge3/envs/sm_precursor_predictor/lib/python3.10/site-packages/deepmol/compound_featurization/__init__.py:20: UserWarning: Mol2Vec not available. Please install it to use it. (pip install git+https://github.com/samoturk/mol2vec#egg=mol2vec)\n", | ||
" warnings.warn(\"Mol2Vec not available. Please install it to use it. \"\n", | ||
"LayeredFingerprint: 100%|██████████| 3/3 [00:00<00:00, 35.23it/s]" | ||
] | ||
}, | ||
{ | ||
"name": "stdout", | ||
"output_type": "stream", | ||
"text": [ | ||
"['', 'L-Proline;L-Arginine;L-Aspartate', 'L-Aspartate']\n" | ||
] | ||
}, | ||
{ | ||
"name": "stderr", | ||
"output_type": "stream", | ||
"text": [ | ||
"\n" | ||
] | ||
} | ||
], | ||
"source": [ | ||
"from sm_precursor_predictor import predict_precursors\n", | ||
"precursors = predict_precursors(\n", | ||
" [\"CN1CCC=C(C1)C(=O)OC\", \"C1[C@H]2[C@@H](C[C@](N2)([C@H]([C@@H]1O)O)O)O\",\n", | ||
" \"C1CNCC(=C1)C(=O)O\"],\n", | ||
" model=\"Layered FP + Low Variance FS + Ridge Classifier\")\n", | ||
"print(precursors)" | ||
] | ||
} | ||
], | ||
"metadata": { | ||
"kernelspec": { | ||
"display_name": "sm_precursor_predictor", | ||
"language": "python", | ||
"name": "python3" | ||
}, | ||
"language_info": { | ||
"codemirror_mode": { | ||
"name": "ipython", | ||
"version": 3 | ||
}, | ||
"file_extension": ".py", | ||
"mimetype": "text/x-python", | ||
"name": "python", | ||
"nbconvert_exporter": "python", | ||
"pygments_lexer": "ipython3", | ||
"version": "3.10.13" | ||
} | ||
}, | ||
"nbformat": 4, | ||
"nbformat_minor": 2 | ||
} |
39 changes: 38 additions & 1 deletion
39
models_and_datasets/analysis/case_studies/predict_for_case_studies.ipynb
Large diffs are not rendered by default.
Oops, something went wrong.
2,411 changes: 1,636 additions & 775 deletions
2,411
models_and_datasets/analysis/challenging_datasets/assess_for_challenging_datasets.ipynb
Large diffs are not rendered by default.
Oops, something went wrong.
Binary file added
BIN
+97.7 KB
..._datasets/analysis/challenging_datasets/f1_scores_by_pipeline_and_precursor.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-43.6 KB
(72%)
models_and_datasets/analysis/challenging_datasets/overlapping_dataset_results.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+90.8 KB
...ts/analysis/challenging_datasets/precision_scores_by_pipeline_and_precursor.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+87.4 KB
...asets/analysis/challenging_datasets/recall_scores_by_pipeline_and_precursor.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1,070 changes: 835 additions & 235 deletions
1,070
models_and_datasets/analysis/dataset_analysis.ipynb
Large diffs are not rendered by default.
Oops, something went wrong.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
620 changes: 543 additions & 77 deletions
620
models_and_datasets/analysis/predictions_lotusdb/predict_for_lotus_sb.ipynb
Large diffs are not rendered by default.
Oops, something went wrong.
766 changes: 361 additions & 405 deletions
766
models_and_datasets/analysis/results_for_alkaloids_dataset/pipeline_for_alkaloids_data.ipynb
Large diffs are not rendered by default.
Oops, something went wrong.
451 changes: 451 additions & 0 deletions
451
models_and_datasets/analysis/results_for_alkaloids_dataset/results_by_label_and_fold.csv
Large diffs are not rendered by default.
Oops, something went wrong.
10 changes: 5 additions & 5 deletions
10
models_and_datasets/analysis/results_for_alkaloids_dataset/significant_differences.csv
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
Pipeline 1,Pipeline 2,Differences (F1 score) | ||
Layered FP + Low Variance FS + Ridge Classifier,Layered FP + Ridge Classifier,* | ||
Layered FP + Low Variance FS + Ridge Classifier,MGCNN (Eguchi et al. 2019),**** | ||
Layered FP + Ridge Classifier,Morgan FP + Ridge Classifier,* | ||
Layered FP + Ridge Classifier,MGCNN (Eguchi et al. 2019),**** | ||
Morgan FP + Ridge Classifier,MGCNN (Eguchi et al. 2019),*** | ||
Layered FP + Ridge Classifier,NPClassifierFP + Ridge Classifier,* | ||
Layered FP + Ridge Classifier,MHFP + Ridge Classifier,**** | ||
Layered FP + Ridge Classifier,Morgan FP + Ridge Classifier,**** | ||
NPClassifierFP + Ridge Classifier,MHFP + Ridge Classifier,* | ||
NPClassifierFP + Ridge Classifier,Morgan FP + Ridge Classifier,** |
Binary file modified
BIN
+32.7 KB
(130%)
...tasets/analysis/results_for_new_dataset/f1_scores_by_pipeline_and_precursor.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+19.3 KB
(150%)
models_and_datasets/analysis/results_for_new_dataset/legend.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.