Skip to content

Commit 669e847

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 9d59974 commit 669e847

18 files changed

Lines changed: 57 additions & 64 deletions

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ Additionally, `UNIQUE` also generates graphical outputs in the form of tables an
8383

8484
For more hands-on examples and detailed usage, check out some of the examples in the [docs](https://opensource.nibr.com/UNIQUE/examples/index.html#examples).
8585

86-
In addition, `example_usage/ADME_pulic/` contains files, scripts, and notebooks to reproduce the models and results for the ADME public dataset presented in "Uncertainty quantification in molecular machine learning for property predictions under data shifts" by Parrondo-Pizarro et al.
86+
In addition, `example_usage/ADME_pulic/` contains files, scripts, and notebooks to reproduce the models and results for the ADME public dataset presented in "Uncertainty quantification in molecular machine learning for property predictions under data shifts" by Parrondo-Pizarro et al.
8787

8888
## Deep Dive
8989

example_usage/ADME_public/scripts/model_building/chemprop_fingerprint.sh

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,3 @@ chemprop fingerprint \
2626
--output ../MDR1_model/latent_fps.csv \
2727
--smiles-columns "Structure" \
2828
--ffn-block-index 0
29-
30-
31-

example_usage/ADME_public/scripts/model_building/chemprop_predict.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,3 @@ chemprop predict \
2626
--preds-path ../MDR1_model/predictions.csv \
2727
--smiles-columns "Structure" \
2828
--uncertainty-method ensemble
29-
Lines changed: 32 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,53 @@
1-
from unique import Pipeline
21
import pandas as pd
32

3+
from unique import Pipeline
4+
45
# CLint Rat
5-
pipeline = Pipeline.from_config("../unique_config_files/rLM LogCLint_unique_config_file.yaml")
6+
pipeline = Pipeline.from_config(
7+
"../unique_config_files/rLM LogCLint_unique_config_file.yaml"
8+
)
69
uq_methods_outputs, uq_evaluation_outputs = pipeline.fit()
710

8-
pd.DataFrame.from_dict(uq_methods_outputs).to_csv(pipeline.output_path / "clint_rat_uq_metrics_values.csv", index=False)
11+
pd.DataFrame.from_dict(uq_methods_outputs).to_csv(
12+
pipeline.output_path / "clint_rat_uq_metrics_values.csv", index=False
13+
)
914

1015
# CLint Human
11-
pipeline = Pipeline.from_config("../unique_config_files/hLM LogCLint_unique_config_file.yaml")
16+
pipeline = Pipeline.from_config(
17+
"../unique_config_files/hLM LogCLint_unique_config_file.yaml"
18+
)
1219
uq_methods_outputs, uq_evaluation_outputs = pipeline.fit()
1320

14-
pd.DataFrame.from_dict(uq_methods_outputs).to_csv(pipeline.output_path / "clint_human_uq_metrics_values.csv", index=False)
21+
pd.DataFrame.from_dict(uq_methods_outputs).to_csv(
22+
pipeline.output_path / "clint_human_uq_metrics_values.csv", index=False
23+
)
1524

1625
# PPB Rat
17-
pipeline = Pipeline.from_config("../unique_config_files/LogFu-Rat_unique_config_file.yaml")
26+
pipeline = Pipeline.from_config(
27+
"../unique_config_files/LogFu-Rat_unique_config_file.yaml"
28+
)
1829
uq_methods_outputs, uq_evaluation_outputs = pipeline.fit()
1930

20-
pd.DataFrame.from_dict(uq_methods_outputs).to_csv(pipeline.output_path / "ppb_rat_uq_metrics_values.csv", index=False)
31+
pd.DataFrame.from_dict(uq_methods_outputs).to_csv(
32+
pipeline.output_path / "ppb_rat_uq_metrics_values.csv", index=False
33+
)
2134

2235
# PPB Human
23-
pipeline = Pipeline.from_config("../unique_config_files/LogFu-Human_unique_config_file.yaml")
36+
pipeline = Pipeline.from_config(
37+
"../unique_config_files/LogFu-Human_unique_config_file.yaml"
38+
)
2439
uq_methods_outputs, uq_evaluation_outputs = pipeline.fit()
2540

26-
pd.DataFrame.from_dict(uq_methods_outputs).to_csv(pipeline.output_path / "ppb_human_uq_metrics_values.csv", index=False)
41+
pd.DataFrame.from_dict(uq_methods_outputs).to_csv(
42+
pipeline.output_path / "ppb_human_uq_metrics_values.csv", index=False
43+
)
2744

2845
# MDCK-MDR1 ER
29-
pipeline = Pipeline.from_config("../unique_config_files/MDCK-MDR1_LogER_unique_config_file.yaml")
46+
pipeline = Pipeline.from_config(
47+
"../unique_config_files/MDCK-MDR1_LogER_unique_config_file.yaml"
48+
)
3049
uq_methods_outputs, uq_evaluation_outputs = pipeline.fit()
3150

32-
pd.DataFrame.from_dict(uq_methods_outputs).to_csv(pipeline.output_path / "mdck_mdr1_er_uq_metrics_values.csv", index=False)
51+
pd.DataFrame.from_dict(uq_methods_outputs).to_csv(
52+
pipeline.output_path / "mdck_mdr1_er_uq_metrics_values.csv", index=False
53+
)

example_usage/ADME_public/unique-env.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,4 +225,4 @@ dependencies:
225225
- zipp=3.21.0=pyhd8ed1ab_1
226226
- zlib=1.3.1=hb9d3cd8_2
227227
- zstandard=0.23.0=py312h66e93f0_1
228-
- zstd=1.5.7=hb8e6e7a_2
228+
- zstd=1.5.7=hb8e6e7a_2

example_usage/ADME_public/unique_config_files/LogFu-Human_unique_config_file.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ inputs_list:
3535
column_name: latent_fp_scaled
3636
metrics:
3737
- manhattan_distance
38-
38+
3939
- ModelInputType:
4040
# Name of the column containing the variance
4141
column_name: variance
@@ -75,4 +75,4 @@ display_outputs: true
7575
# Number of bootstrapping samples to run. Note: bootstrapping to determine the best UQ metric is ALWAYS run unless the private attribute `Pipeline._bootstrap` is set to False.
7676
n_bootstrap: 100
7777
# Logging messages levels. If True, logger will output DEBUG level messages.
78-
verbose: false
78+
verbose: false

example_usage/ADME_public/unique_config_files/LogFu-Rat_unique_config_file.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ inputs_list:
3535
column_name: latent_fp_scaled
3636
metrics:
3737
- manhattan_distance
38-
38+
3939
- ModelInputType:
4040
# Name of the column containing the variance
4141
column_name: variance
@@ -75,4 +75,4 @@ display_outputs: true
7575
# Number of bootstrapping samples to run. Note: bootstrapping to determine the best UQ metric is ALWAYS run unless the private attribute `Pipeline._bootstrap` is set to False.
7676
n_bootstrap: 100
7777
# Logging messages levels. If True, logger will output DEBUG level messages.
78-
verbose: false
78+
verbose: false

example_usage/ADME_public/unique_config_files/MDCK-MDR1_LogER_unique_config_file.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ inputs_list:
3535
column_name: latent_fp_scaled
3636
metrics:
3737
- manhattan_distance
38-
38+
3939
- ModelInputType:
4040
# Name of the column containing the variance
4141
column_name: variance
@@ -75,4 +75,4 @@ display_outputs: true
7575
# Number of bootstrapping samples to run. Note: bootstrapping to determine the best UQ metric is ALWAYS run unless the private attribute `Pipeline._bootstrap` is set to False.
7676
n_bootstrap: 100
7777
# Logging messages levels. If True, logger will output DEBUG level messages.
78-
verbose: false
78+
verbose: false

example_usage/ADME_public/unique_config_files/hLM LogCLint_unique_config_file.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ inputs_list:
3535
column_name: latent_fp_scaled
3636
metrics:
3737
- manhattan_distance
38-
38+
3939
- ModelInputType:
4040
# Name of the column containing the variance
4141
column_name: variance
@@ -75,4 +75,4 @@ display_outputs: true
7575
# Number of bootstrapping samples to run. Note: bootstrapping to determine the best UQ metric is ALWAYS run unless the private attribute `Pipeline._bootstrap` is set to False.
7676
n_bootstrap: 100
7777
# Logging messages levels. If True, logger will output DEBUG level messages.
78-
verbose: false
78+
verbose: false

example_usage/ADME_public/unique_config_files/rLM LogCLint_unique_config_file.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,4 +75,4 @@ display_outputs: true
7575
# Number of bootstrapping samples to run. Note: bootstrapping to determine the best UQ metric is ALWAYS run unless the private attribute `Pipeline._bootstrap` is set to False.
7676
n_bootstrap: 100
7777
# Logging messages levels. If True, logger will output DEBUG level messages.
78-
verbose: false
78+
verbose: false

0 commit comments

Comments
 (0)