Downloads · 30 days
39
63% of all-time downloads
openadmet/mpbp-chemprop_foundation_minimol-v1
mpbp-chemprop_foundation_minimol-v1 is a machine learning model from openadmet. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as apache-2.0.
This is a ChemProp model pretrained with minimol-featurized data trained on Mouse Plasma Protein Binding (MPPB) data from the OpenADMET ExpansionRx blind challenge.
Downloads · 30 days
39
63% of all-time downloads
All-time downloads
62
Public
Repo size
243 MB
Likes
0
Public
Click a slice to open those files.
.ckpt310 MB · 78%
From the Hugging Face model README
This is a ChemProp model pretrained with minimol-featurized data trained on Mouse Plasma Protein Binding (MPPB) data from the OpenADMET ExpansionRx blind challenge.
For more information about how this model was trained see this blog post.
IMPORTANT NOTE You will need git lfs installed.
git clone https://huggingface.co/openadmet/mbpb-chemprop_foundation_minimol-v1/
git lfs installed for the repo and get the large model files:git lfs install
git lfs pull
We highly recommend you have the Anvil framework from openadmet-models installed in an environment (called openadmet-models) for ease of use and full utilization of OpenADMET's models. The installation instructions can be found here and also below:
git clone [email protected]:OpenADMET/openadmet-models.git
cd openadmet-models/
conda env create -f devtools/conda-envs/openadmet-models.yaml
conda activate openadmet-models
pip install -e .
conda env create -f devtools/conda-envs/openadmet-models-gpu.yaml
conda activate openadmet-models
pip install -e .
openadmet-models. Just be sure you are mounting the correct folder (./mbpb-chemprop_foundation_minimol-v1) where you've downloaded the model.docker run -it --user=root --rm \
-v ./mbpb-chemprop_foundation_minimol-v1:/home/mambauser/model:rw \
all ghcr.io/openadmet/openadmet-models:main
docker run -it --user=root --rm \
-v ./mbpb-chemprop_foundation_minimol-v1:/home/mambauser/model:rw \
--runtime=nvidia
--gpus
all ghcr.io/openadmet/openadmet-models:main
The generic command to run our inference pipeline is:
openadmet predict \
--input-path <the path to the data to predict on> \
--input-col <the column to of the data to predict on, often SMILES> \
--model-dir <the anvil_training directory of the model to predict with> \
--output-csv <the path to an output CSV to save the predictions to> \
--accelerator <whether to use gpu or cpu, defaults to gpu>
We will use this model for inference, aka predict the fraction unbound values of a set of molecular compounds unseen to the model. For demonstration purposes, we have provided a small subset of compounds from a ZINC deck in the file compounds_for_inference.csv. You can run this directly in your command line.
For our working example, this command becomes:
openadmet predict \
--input-path compounds_for_inference.csv \
--input-col OPENADMET_CANONICAL_SMILES \
--model-dir anvil_training/ \
--output-csv predictions.csv \
--accelerator cpu
You can easily substitute your own set of compounds, simply modify the --input-path and --input-col arguments for your specific dataset.
In our example, this outputs a file called predictions.csv which will have predicted (the OADMET_PRED columns) of MBPB values the model was trained on.