Skip to content

Commit

Permalink
[ADD] scripts for the new analysis
Browse files Browse the repository at this point in the history
  • Loading branch information
jcapels committed Oct 22, 2024
1 parent d0ffad5 commit 9a4e4d9
Show file tree
Hide file tree
Showing 28 changed files with 7,642 additions and 1,936 deletions.
86 changes: 86 additions & 0 deletions examples/example.ipynb
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
}

Large diffs are not rendered by default.

Large diffs are not rendered by default.

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.
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.
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 models_and_datasets/analysis/dataset_analysis.ipynb

Large diffs are not rendered by default.

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.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

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,**
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 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.
Loading

0 comments on commit 9a4e4d9

Please sign in to comment.