Skip to content

Commit

Permalink
Merge pull request #7 from aspuru-guzik-group/feature/neurips-updates
Browse files Browse the repository at this point in the history
Feature/neurips updates
  • Loading branch information
akshat998 authored Jun 24, 2023
2 parents 933c81d + 0eb2dca commit 15d2db2
Show file tree
Hide file tree
Showing 42 changed files with 530,258 additions and 582,596 deletions.
5 changes: 4 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
FROM continuumio/miniconda3:latest

RUN apt-get update && apt-get upgrade
RUN apt-get update -y && apt-get upgrade -y

SHELL ["/bin/bash", "--login", "-c"]

Expand All @@ -20,5 +20,8 @@ RUN pip install pytest
RUN mkdir /data
COPY . .

RUN chmod 777 tartarus/data/qvina
RUN chmod 777 tartarus/data/smina

SHELL ["conda", "run", "-n", "tartarus", "/bin/bash", "-c"]
ENTRYPOINT ["conda", "run", "--no-capture-output", "-n", "tartarus", "python", "/benchmark/benchmark.py"]
13 changes: 2 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ To run the Tartarus benchmark we recommend using the provided Docker container.
3. Run the Docker container with the directory of your data mounted, the benchmark mode and the CSV input filename:

```bash
docker run --rm -it -v ${LOCAL_PATH_TO_DATA}:/data ac/tartarus:latest --mode ${BENCHMARK_MODE} --input_filename ${INPUT_FILENAME}
docker run --rm -it -v ${LOCAL_PATH_TO_DATA}:/data johnwilles/tartarus:latest --mode ${BENCHMARK_MODE} --input_filename ${INPUT_FILENAME}
```

4. The output file will be written to the same directory by default with the filename `output.csv`.
Expand Down Expand Up @@ -64,8 +64,7 @@ All datasets are found in the [datasets](datasets/) directory. The arrows indica

|Task | Dataset name | # of smiles | Columns in file ||||||
|---|--------------------|------------------|----|----|----|---|----|----|
| Designing OPV | `hce.csv` | 24,953 | Dipole moment (&#8593;) | HOMO-LUMO gap (&#8593;) | LUMO (&#8595;) | Combined objective (&#8593;) | PCE<sub>PCBM</sub> -SAS (&#8593;) | PCE<sub>PCDTBT</sub> -SAS (&#8593;) |
| Designing OPV | `unbiased_hce.csv` | 1,000 | Dipole moment (&#8593;) | HOMO-LUMO gap (&#8593;) | LUMO (&#8595;) | Combined objective (&#8593;) | ||
| Designing OPV | `hce.csv` | 24,953 | PCE<sub>PCBM</sub> -SAS (&#8593;) | PCE<sub>PCDTBT</sub> -SAS (&#8593;) |
| Designing emitters | `gdb13.csv` | 403,947 | Singlet-triplet gap (&#8595;) | Oscillator strength (&#8593;) | Multi-objective (&#8593;) | | ||
| Designing drugs | `docking.csv` | 152,296 | 1SYH (&#8595;) | 6Y2F (&#8595;) | 4LDE (&#8595;) | | | |
| Designing chemical reaction substrates | `reactivity.csv` | 60,828 | Activation energy &Delta;E<sup>&#8225;</sup> (&#8595;) | Reaction energy &Delta;E<sub>r</sub> (&#8595;) | &Delta;E<sup>&#8225;</sup> + &Delta;E<sub>r</sub> (&#8595;) | - &Delta;E<sup>&#8225;</sup> + &Delta;E<sub>r</sub> (&#8595;) | | |
Expand Down Expand Up @@ -154,11 +153,3 @@ out in person: (akshat98[AT]stanford[DOT]edu, robert[DOT]pollice[AT]gmail[DOT]co

[Apache License 2.0](https://choosealicense.com/licenses/apache-2.0/)









6 changes: 1 addition & 5 deletions benchmark.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,6 @@ class ResultBase():

@dataclass
class PCEResult(ResultBase):
dipm: float
gap: float
lumo: float
combined: float
pce_pcbm_sas: float
pce_pcdtbt_sas: float

Expand Down Expand Up @@ -72,7 +68,7 @@ def benchmark_smile(smile, mode, verbose):
elif mode == 'tadf':
result = TADFResult(smile, *tadf.get_properties(smile, verbose=verbose))
elif mode == 'docking':
result = DockingResult(smile, docking.get_1syh_score(smile, verbose=verbose), docking.get_6y2f_score(smile, verbose=verbose), docking.get_4lde_score(smile, verbose=verbose))
result = DockingResult(smile, docking.perform_calc_single(smile, '1syh', docking_program='qvina'), docking.perform_calc_single(smile, '6y2f', docking_program='qvina'), docking.perform_calc_single(smile, '4lde', docking_program='qvina'))
elif mode == 'reactivity':
result = ReactivityResult(smile, *reactivity.get_properties(smile, verbose=verbose))
else:
Expand Down
257,636 changes: 105,339 additions & 152,297 deletions datasets/docking.csv

Large diffs are not rendered by default.

Loading

0 comments on commit 15d2db2

Please sign in to comment.