Skip to content

Commit a4ba091

Browse files
committed
NO_JIRA Added Pharmacophore generator script to create CrossMiner queries from Ligand Overlay outputs. Includes basic tests and examples.
1 parent 8952052 commit a4ba091

7 files changed

Lines changed: 55 additions & 1 deletion

File tree

scripts/discovery/overlay_to_pharmacophore/cluster.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
"""
2+
This script can be used for any purpose without limitation subject to the
3+
conditions at https://www.ccdc.cam.ac.uk/Community/Pages/Licences/v2.aspx
4+
This permission notice and the following statement of attribution must be
5+
included in all copies or substantial portions of this script.
6+
7+
"07/08/2026n": created by the Cambridge Crystallographic Data Centre
8+
"""
9+
110
from collections import defaultdict
211

312
import numpy as np

scripts/discovery/overlay_to_pharmacophore/crossminer_search.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
"""
2+
This script can be used for any purpose without limitation subject to the
3+
conditions at https://www.ccdc.cam.ac.uk/Community/Pages/Licences/v2.aspx
4+
This permission notice and the following statement of attribution must be
5+
included in all copies or substantial portions of this script.
6+
7+
"07/08/2026": created by the Cambridge Crystallographic Data Centre
8+
"""
9+
110
from pathlib import Path
211

312
from ccdc.pharmacophore import Pharmacophore

scripts/discovery/overlay_to_pharmacophore/datastructures.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
"""
2+
This script can be used for any purpose without limitation subject to the
3+
conditions at https://www.ccdc.cam.ac.uk/Community/Pages/Licences/v2.aspx
4+
This permission notice and the following statement of attribution must be
5+
included in all copies or substantial portions of this script.
6+
7+
"07/08/2026": created by the Cambridge Crystallographic Data Centre
8+
"""
9+
110
from __future__ import annotations
211

312
from dataclasses import dataclass

scripts/discovery/overlay_to_pharmacophore/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
This permission notice and the following statement of attribution must be
55
included in all copies or substantial portions of this script.
66
7-
"date of creation": created by the Cambridge Crystallographic Data Centre
7+
"07/08/2026": created by the Cambridge Crystallographic Data Centre
88
"""
99

1010
import argparse

scripts/discovery/overlay_to_pharmacophore/overlay.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
"""
2+
This script can be used for any purpose without limitation subject to the
3+
conditions at https://www.ccdc.cam.ac.uk/Community/Pages/Licences/v2.aspx
4+
This permission notice and the following statement of attribution must be
5+
included in all copies or substantial portions of this script.
6+
7+
"07/08/2026": created by the Cambridge Crystallographic Data Centre
8+
"""
9+
110
from functools import cached_property
211

312
import numpy as np

scripts/discovery/overlay_to_pharmacophore/tests/tests.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
"""
2+
This script can be used for any purpose without limitation subject to the
3+
conditions at https://www.ccdc.cam.ac.uk/Community/Pages/Licences/v2.aspx
4+
This permission notice and the following statement of attribution must be
5+
included in all copies or substantial portions of this script.
6+
7+
"07/08/2026": created by the Cambridge Crystallographic Data Centre
8+
"""
9+
110
from pathlib import Path
211

312
import pytest

scripts/discovery/overlay_to_pharmacophore/write_query.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
"""
2+
This script can be used for any purpose without limitation subject to the
3+
conditions at https://www.ccdc.cam.ac.uk/Community/Pages/Licences/v2.aspx
4+
This permission notice and the following statement of attribution must be
5+
included in all copies or substantial portions of this script.
6+
7+
"07/08/2026": created by the Cambridge Crystallographic Data Centre
8+
"""
9+
110
from pathlib import Path
211

312
from datastructures import PharmFeaturePoint

0 commit comments

Comments
 (0)