lighteternal commited on
Commit
dbc6c02
·
verified ·
1 Parent(s): e1ab67c

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +246 -0
README.md ADDED
@@ -0,0 +1,246 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ pretty_name: BioAssayAlign Assay-Compound Data
3
+ tags:
4
+ - biology
5
+ - chemistry
6
+ - drug-discovery
7
+ - bioassay
8
+ - screening
9
+ - ranking
10
+ - parquet
11
+ language:
12
+ - en
13
+ license: other
14
+ size_categories:
15
+ - 100M<n<1B
16
+ ---
17
+
18
+ # BioAssayAlign Assay-Compound Data
19
+
20
+ <p align="center">
21
+ <img src="./bioassayalign.png" alt="BioAssayAlign logo" width="280">
22
+ </p>
23
+
24
+ ## What this dataset is
25
+
26
+ BioAssayAlign Assay-Compound Data is a **frozen assay-and-molecule dataset for assay-conditioned ranking and retrieval**.
27
+
28
+ It answers questions like:
29
+ - given an assay description, which molecules in a submitted list should rank first?
30
+ - which historical assays are closest to this assay?
31
+
32
+ It is not:
33
+ - a chatbot dataset
34
+ - a generic pretraining corpus
35
+ - a clinical or patient dataset
36
+
37
+ Companion model:
38
+ - [BioAssayAlign Qwen3-Embedding-0.6B Compatibility](https://huggingface.co/lighteternal/BioAssayAlign-Qwen3-Embedding-0.6B-Compatibility)
39
+
40
+ Companion Space:
41
+ - [BioAssayAlign Compatibility Explorer](https://huggingface.co/spaces/lighteternal/BioAssayAlign-Compatibility-Explorer)
42
+
43
+ ## What is included
44
+
45
+ This public release has two layers.
46
+
47
+ ### 1. Sanitized frozen raw release
48
+
49
+ Directory: `raw/`
50
+
51
+ Files:
52
+ - `raw/assays.parquet`
53
+ - `raw/measurements.parquet`
54
+ - `raw/DATASET_MANIFEST.json`
55
+
56
+ These are the public, sanitized versions of the frozen corpus derived from:
57
+ - PubChem BioAssay snapshot dated `2026-03-01`
58
+ - ChEMBL release `chembl_36`
59
+
60
+ ### 2. Prepared compatibility-ranking subset
61
+
62
+ Directory: `prepared/compatibility-ranking/`
63
+
64
+ Files:
65
+ - `compat_assays.parquet`
66
+ - `compat_candidate_pools.parquet`
67
+ - `compat_train_groups.parquet`
68
+ - `COMPATIBILITY_PREPARED_MANIFEST.json`
69
+ - `SOURCE_DATASET_MANIFEST.json`
70
+
71
+ This prepared subset is the one used to train the published compatibility model linked above.
72
+
73
+ ## Why there are multiple parquet files
74
+
75
+ ### `raw/assays.parquet`
76
+ One row per assay. Contains:
77
+ - assay text
78
+ - assay metadata
79
+ - normalized target identifiers
80
+
81
+ ### `raw/measurements.parquet`
82
+ One row per assay-compound measurement. Contains:
83
+ - assay-compound links
84
+ - standardized SMILES
85
+ - activity labels
86
+ - potency-like fields when available
87
+
88
+ ### `prepared/compatibility-ranking/compat_assays.parquet`
89
+ Prepared assay rows used for compatibility ranking.
90
+
91
+ ### `prepared/compatibility-ranking/compat_candidate_pools.parquet`
92
+ Held-out assay candidate pools used for evaluation.
93
+
94
+ ### `prepared/compatibility-ranking/compat_train_groups.parquet`
95
+ Training groups with:
96
+ - one assay
97
+ - one positive molecule
98
+ - explicit same-assay negative molecules
99
+
100
+ ## Dataset scale
101
+
102
+ ### Sanitized frozen release
103
+
104
+ | File | Rows |
105
+ |---|---:|
106
+ | `raw/assays.parquet` | `3,800,882` |
107
+ | `raw/measurements.parquet` | `323,706,180` |
108
+
109
+ ### Prepared ranking subset used by the public model
110
+
111
+ | File | Rows |
112
+ |---|---:|
113
+ | `compat_assays.parquet` | `11,195` |
114
+ | `compat_candidate_pools.parquet` | `1,432,532` |
115
+ | `compat_train_groups.parquet` | `508,216` |
116
+
117
+ Split counts:
118
+
119
+ | Split | Assays |
120
+ |---|---:|
121
+ | train | `8,967` |
122
+ | val | `1,117` |
123
+ | test | `1,111` |
124
+
125
+ ## Sanitization and privacy
126
+
127
+ This public dataset does **not** contain patient data or direct personal identifiers.
128
+
129
+ Before release, I removed internal-only provenance details such as:
130
+ - local filesystem paths
131
+ - internal shard/precompute artifacts
132
+ - private training-only intermediate files
133
+
134
+ This public repo intentionally excludes:
135
+ - shard directories from HF CPU prep jobs
136
+ - precomputed training feature stores
137
+ - internal benchmark artifacts unrelated to the released model
138
+
139
+ ## File schemas
140
+
141
+ ### `raw/assays.parquet`
142
+
143
+ Important columns:
144
+ - `assay_uid`
145
+ - `source`
146
+ - `assay_id`
147
+ - `title`
148
+ - `description_text`
149
+ - `organism`
150
+ - `readout`
151
+ - `assay_format`
152
+ - `assay_type`
153
+ - `target_uniprot`
154
+ - `metadata_json`
155
+ - `provenance_json`
156
+
157
+ ### `raw/measurements.parquet`
158
+
159
+ Important columns:
160
+ - `assay_uid`
161
+ - `compound_uid`
162
+ - `canonical_smiles`
163
+ - `smiles_hash`
164
+ - `activity_label`
165
+ - `activity_type`
166
+ - `activity_value`
167
+ - `activity_units`
168
+ - `p_activity`
169
+ - `relation`
170
+ - `confidence`
171
+ - `metadata_json`
172
+ - `provenance_json`
173
+
174
+ ### `prepared/compatibility-ranking/compat_train_groups.parquet`
175
+
176
+ Important columns:
177
+ - `assay_uid`
178
+ - `positive_smiles`
179
+ - `positive_smiles_hash`
180
+ - `negative_smiles`
181
+ - `negative_smiles_hashes`
182
+ - `example_weight`
183
+
184
+ This is the core ranking supervision format used by the public model.
185
+
186
+ ## Example row
187
+
188
+ Conceptually, one training observation looks like:
189
+
190
+ ```json
191
+ {
192
+ "assay_uid": "pubchem:720659",
193
+ "positive_smiles": "CC1=CC(=O)N(C)C(=O)N1",
194
+ "positive_smiles_hash": "4d6f0d...abc",
195
+ "negative_smiles": [
196
+ "CCOC1=CC=CC=C1",
197
+ "CCN(CC)CCOC1=CC=CC=C1",
198
+ "COC1=CC=CC=C1O"
199
+ ],
200
+ "negative_smiles_hashes": [
201
+ "a1...",
202
+ "b2...",
203
+ "c3..."
204
+ ],
205
+ "example_weight": 1.34
206
+ }
207
+ ```
208
+
209
+ ## How to load it locally
210
+
211
+ ### Python / pandas
212
+
213
+ ```python
214
+ import pandas as pd
215
+
216
+ assays = pd.read_parquet("raw/assays.parquet")
217
+ measurements = pd.read_parquet("raw/measurements.parquet")
218
+ train_groups = pd.read_parquet("prepared/compatibility-ranking/compat_train_groups.parquet")
219
+ ```
220
+
221
+ ### Python / pyarrow
222
+
223
+ ```python
224
+ import pyarrow.parquet as pq
225
+
226
+ assays = pq.read_table("raw/assays.parquet")
227
+ measurements = pq.read_table("raw/measurements.parquet")
228
+ ```
229
+
230
+ ## How this relates to the public model
231
+
232
+ The published model was trained on:
233
+ - `prepared/compatibility-ranking/compat_assays.parquet`
234
+ - `prepared/compatibility-ranking/compat_candidate_pools.parquet`
235
+ - `prepared/compatibility-ranking/compat_train_groups.parquet`
236
+
237
+ Published model:
238
+ - [lighteternal/BioAssayAlign-Qwen3-Embedding-0.6B-Compatibility](https://huggingface.co/lighteternal/BioAssayAlign-Qwen3-Embedding-0.6B-Compatibility)
239
+
240
+ ## Upstream sources
241
+
242
+ This dataset is derived from public upstream resources including:
243
+ - PubChem BioAssay
244
+ - ChEMBL
245
+
246
+ Users are responsible for complying with the attribution and usage terms of the upstream sources.