-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #76 from OpenDrugDiscovery/release
Release
- Loading branch information
Showing
83 changed files
with
6,567 additions
and
4,763 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
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
This file was deleted.
Oops, something went wrong.
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,3 @@ | ||
# QM Methods | ||
|
||
::: openqdc.methods |
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
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
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
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
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,4 +1,28 @@ | ||
from .interaction import AVAILABLE_INTERACTION_DATASETS # noqa | ||
from .potential import AVAILABLE_POTENTIAL_DATASETS # noqa | ||
from .interaction import * | ||
from .potential import * | ||
|
||
AVAILABLE_DATASETS = {**AVAILABLE_POTENTIAL_DATASETS, **AVAILABLE_INTERACTION_DATASETS} | ||
|
||
|
||
def _level_of_theory_overlap(dataset_collection): | ||
import itertools | ||
from itertools import groupby | ||
|
||
dataset_map = {} | ||
for dataset in dataset_collection: | ||
dataset_map[dataset.lower().replace("_", "")] = dataset_collection[dataset].no_init().energy_methods | ||
|
||
common_values_dict = {} | ||
|
||
for key, values in dataset_map.items(): | ||
for value in values: | ||
if value in common_values_dict: | ||
common_values_dict[value].append(key) | ||
else: | ||
common_values_dict[value] = [key] | ||
|
||
return dict(filter(lambda x: len(x[1]) > 1, common_values_dict.items())) | ||
|
||
|
||
COMMON_MAP_POTENTIALS = _level_of_theory_overlap(AVAILABLE_POTENTIAL_DATASETS) | ||
COMMON_MAP_INTERACTIONS = _level_of_theory_overlap(AVAILABLE_INTERACTION_DATASETS) |
Oops, something went wrong.