conradry commited on
Commit
84b01d5
·
verified ·
1 Parent(s): ddbd543

Add GenomeScreen as five normalized parquet tables

Browse files
README.md CHANGED
@@ -1,3 +1,120 @@
1
  ---
2
- license: mit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
+ license: cc-by-4.0
3
+ tags:
4
+ - virtual-screening
5
+ - drug-discovery
6
+ - aidd
7
+ pretty_name: GenomeScreen (relational)
8
+ configs:
9
+ - config_name: targets
10
+ data_files: targets.parquet
11
+ - config_name: pockets
12
+ data_files: pockets.parquet
13
+ - config_name: pocket_structures
14
+ data_files: pocket_structures.parquet
15
+ - config_name: molecules
16
+ data_files: molecules.parquet
17
+ - config_name: hits
18
+ data_files: hits.parquet
19
  ---
20
+
21
+ # GenomeScreen, as a relational dataset
22
+
23
+ A normalized, queryable form of [GenomeScreen](https://huggingface.co/datasets/THU-ATOM/GenomeScreenDB)
24
+ — the DrugCLIP genome-wide virtual screen of human proteins. The source release ships as
25
+ ~26.5k per-pocket directories of CSV and structure files; this is the same data parsed into
26
+ five parquet tables.
27
+
28
+ **This contains the screen results only.** The 27 GB of `.pdbgz` receptor structures are not
29
+ redistributed here; `pocket_structures` records their paths relative to the source release's
30
+ `screen_results/` directory so you can join against your own copy.
31
+
32
+ ## Tables
33
+
34
+ | file | rows | grain |
35
+ | --- | ---: | --- |
36
+ | `targets.parquet` | 9,919 | UniProt accession |
37
+ | `pockets.parquet` | 26,562 | screen-result directory (target × AF fragment × pocket) |
38
+ | `pocket_structures.parquet` | 215,481 | refined receptor conformation + docking grid |
39
+ | `molecules.parquet` | 1,110,392 | distinct `(oid, smiles)` — 982,239 distinct compounds |
40
+ | `hits.parquet` | 3,175,634 | `(pocket, molecule)` DrugCLIP hit |
41
+
42
+ Join keys: `hits.pocket_key → pockets.pocket_key → targets.uniprot_acc`, and
43
+ `hits.mol_id → molecules.mol_id`.
44
+
45
+ ## How the data is keyed
46
+
47
+ - **Targets are UniProt accessions**, wrapped in AlphaFold DB ids. A `pocket_key` of
48
+ `AF-Q12879-F1-model_v4_0_pocket3` is UniProt `Q12879`, AF2 model fragment `0`, pocket `3`.
49
+ - **Pockets come in two kinds.** `pocket_kind = 'detected'` (22,061) were found by apo pocket
50
+ detection; `'template'` (4,501) were transferred from an aligned holo structure and keep the
51
+ source PDB id in `pocket_structures.template_pdb_id` (3,125 distinct entries).
52
+ - **Molecules are vendor catalogue ids plus SMILES — there are no PubChem CIDs.** `oid` is a
53
+ ZINC id (`ZINC000066055208`), an Enamine REAL id (`Z1333761449_1_T2`) or an Enamine PV id
54
+ (`PV-001914042032_1_T1`). The Enamine `_<protomer>_T<tautomer>` suffix is split into
55
+ `protomer_idx` / `tautomer_idx`; `catalog_id` strips it.
56
+ - **The same `oid` sometimes carries two SMILES** (protonation variants), so the `molecules`
57
+ grain is `(oid, smiles)` behind a surrogate `mol_id`. Group by `catalog_id` to collapse them.
58
+ - **`hits.source_index` is not a molecule id.** It is the source `leader.csv` `Name` column, a
59
+ row index into the screened library that differs between targets for the same compound. Use
60
+ `catalog_id` to identify a compound. `rank_in_pocket` (1 = best) is derived from `score`.
61
+
62
+ ## Caveats worth knowing before you use it
63
+
64
+ - **These are predicted hits, not measured interactions.** `score` is DrugCLIP similarity.
65
+ - **Scores are not calibrated across proteins.** Ranking is meaningful within a pocket; a
66
+ global threshold across targets is not.
67
+ - **The per-molecule view is truncated by construction.** The screen kept each *pocket's* top
68
+ 10K, then cluster leaders — so a molecule's known target is not guaranteed to survive that
69
+ cut. Empirically it often doesn't: ibuprofen appears with 34 predicted targets, none of them
70
+ COX-1 or COX-2, though both are screened. Read a molecule's row set as a biased sample of
71
+ its profile, not as its profile.
72
+ - **It is a make-on-demand screening library, not a drug library.** Most approved drugs are
73
+ absent entirely.
74
+
75
+ ## Usage
76
+
77
+ ```python
78
+ import duckdb
79
+ conn = duckdb.connect()
80
+ conn.execute("""
81
+ CREATE VIEW hits AS SELECT * FROM 'hf://datasets/conradry/biopharma-hackathon/hits.parquet';
82
+ CREATE VIEW pockets AS SELECT * FROM 'hf://datasets/conradry/biopharma-hackathon/pockets.parquet';
83
+ CREATE VIEW molecules AS SELECT * FROM 'hf://datasets/conradry/biopharma-hackathon/molecules.parquet';
84
+ """)
85
+
86
+ # top hits for a UniProt accession, one row per compound
87
+ conn.execute("""
88
+ SELECT m.catalog_id, m.source, max(h.score) AS score,
89
+ arg_max(m.smiles, h.score) AS smiles
90
+ FROM hits h
91
+ JOIN pockets p ON p.pocket_key = h.pocket_key
92
+ JOIN molecules m ON m.mol_id = h.mol_id
93
+ WHERE p.uniprot_acc = ?
94
+ GROUP BY 1, 2 ORDER BY score DESC LIMIT 25
95
+ """, ["P14416"]).fetchall()
96
+ ```
97
+
98
+ ## Source and license
99
+
100
+ Derived from **GenomeScreen** by Jia et al., released under CC-BY-4.0. This derived dataset
101
+ carries the same license, and the original work must be credited:
102
+
103
+ > Jia, Y., Gao, B., Tan, J., Zheng, J., Hong, X., Zhu, W., Tan, H., Xiao, Y., Tan, L., Cai, H.,
104
+ > Huang, Y., Deng, Z., Jin, Y., Yuan, Y., Tian, J., He, W., Ma, W., Zhang, Y., Yan, C., Liu, L.,
105
+ > Zhang, W., Lan, Y. *Deep contrastive learning enables genome-wide virtual screening.*
106
+ > bioRxiv 2024.09.02.610777.
107
+
108
+ - Source dataset: https://huggingface.co/datasets/THU-ATOM/GenomeScreenDB
109
+ - Portal: https://drug-the-whole-genome.yanyanlan.com
110
+ - Code: https://github.com/THU-ATOM/Drug-The-Whole-Genome
111
+
112
+ ```bibtex
113
+ @article{Jia2024GenomeScreen,
114
+ title={Deep contrastive learning enables genome-wide virtual screening},
115
+ author={Jia, Yinjun and Gao, Bowen and Tan, Jiaxin and Zheng, Jiqing and Hong, Xin and Zhu, Wenyu and Tan, Haichuan and Xiao, Yuan and Tan, Liping and Cai, Hongyi and Huang, Yanwen and Deng, Zhiheng and Jin, Yue and Yuan, Yafei and Tian, Jiekang and He, Wei and Ma, Weiying and Zhang, Yaqin and Yan, Chuangye and Liu, Lei and Zhang, Wei and Lan, Yanyan},
116
+ journal={bioRxiv},
117
+ year={2024},
118
+ doi={10.1101/2024.09.02.610777}
119
+ }
120
+ ```
hits.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2860dcacb7111d3b4ab23ee5b34c4969c5f7570d4b920df869982bd506182870
3
+ size 40081870
molecules.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d5fcb41c6367898de22b92add9e29ed61946c220faeef7f8d9f26d9d5fed813b
3
+ size 23521514
pocket_structures.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e7353b158d3d119d23da6bed0453d41021b52a69ffe90d3f8dbe66ea78208f42
3
+ size 8075622
pockets.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:757e76ed21335406d789e65eaa3988d682aff90cb7c9b037b3342bf309724473
3
+ size 498381
targets.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:56a9a8f7185e7a330b23da85a71feae2c4265c85f246b59cf9f07ffa6471cbc6
3
+ size 127928