DOCS.md CHANGED
@@ -1,68 +1,205 @@
1
- # Demo Instance Lab Dataset
 
 
 
 
 
 
 
 
 
2
 
3
- This repo contains three example datasets that would be available to the user for downstream model training. The derived data is calculated from log probabilities of each library candidate in an assay sample. The different data modalities are:
 
 
4
 
5
- - Expression
6
- - Binding
7
- - Specificity
8
 
9
- Expression scores are log enrichments of the candidate translated protein frequency relative to the initial DNA pool candidate frequency. The binding score is defined as the ratio of the relative enrichment of a candidate over the enrichment of the weakest candidate in the dataset represented on a log scale. The specificity score is defined in terms of binding scores of off-target and on-target antigens, and is the ratio of the targeting binding score divided by the average to the binding scores of all off-target interactions.
10
 
11
- ## Common Metadata
 
 
 
 
 
 
 
 
 
 
 
 
12
 
13
- There are columns that are common to each of the three datasets, which facilitate simple associations if one wants to compute features over multiple different scores. The columns are:
14
 
15
- - `candidate_library_id`: This ID refers to the specific sample that contains all the translated proteins expressed together. In binding and specificity contexts, this ID represents pool of binder proteins that is mixed with different antigens to generate binding and specificity scores.
16
- - `candidate_name`: The user-provided name of the candidate sequence.
17
- - `candidate_sequence`: The amino acid sequence of the candidate binder.
18
- - `candidate_id`: A cryptographic hash of the candidate sequence.
19
- - `candidate_type`: An enum field representing the type of candidate protein. In this demo, it's either `miniprotein` or `vhh`.
20
- - `target_pdb_id`: The PDB ID of the target protein that conditioned the model to generate the candidate sequence.
21
 
22
- ## Expression Dataset
23
 
24
- The unique identifiers for each row in this dataset is `["candidate_library_id", "candidate_id"]`. So, the number of rows are equal to the number of candidate proteins in each distinct pool. The scoring columns are:
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
25
 
26
- - `expression_score`: The log enrichment of the expression of the translated candidate relative to the double stranded pool.
27
- - `expression_score_std`: The standard error of the expression score estimate calculated from each of the replicates measured.
28
 
29
- ## Binding Dataset
30
 
31
- The unique identifiers for each row in this dataset is `["candidate_library_id", "candidate_id", "antigen_pdb_id"]`. So, the number of rows are equal to the number of candidate protein + antigen combinations in each distinct library. The columns specific to the binding dataset are:
32
 
33
- - `antigen_pdb_id`: The PDB ID of the antigen protein used in the binding assay.
34
- - `antigen_gene_name`: The gene name associated with the PDB ID of the antigen.
35
- - `sino_catalog_id`: The ID of the antigen ordered from Sino Biological.
36
- - `antigen_sequence`: The expressed sequence of the antigen used in the assay.
37
- - `targeting`: Boolean value that specifies whether the antigen used in the binding assay matches the target for the candidate protein.
38
- - `binding_score_50nM`: The mean binding score from the assay where the candidate library was tested with 50 nM of the antigen protein.
39
- - `binding_score_500nM`: The mean binding score from the assay where the candidate library was tested with 500 nM of the antigen protein.
40
- - `binding_score_50nM_std`: The standard error of the mean 50 nM binding score estimate calculated from each of the replicates measured.
41
- - `binding_score_500nM_std`: The standard error of the mean 500 nM binding score estimate calculated from each of the replicates measured.
42
 
43
- ## Specificity Dataset
44
 
45
- The unique identifiers for each row in this dataset is `["candidate_library_id", "candidate_id"]`. So, the number of rows are equal to the number of candidate proteins in each distinct pool. This columns specific to the specificity dataset are:
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
46
 
47
- - `target_gene_name`: The gene name associated with the PDB ID of the target antigen.
48
- - `sino_catalog_id`: The ID of the target antigen ordered from Sino Biological.
49
- - `target_sequence`: The expressed sequence of the target antigen used in the assay.
50
- - `log_specificity_score_50nM`: The mean specificity score from the assay where the candidate library was tested with 50 nM of the antigen protein.
51
- - `log_specificity_score_500nM`: The mean specificity score from the assay where the candidate library was tested with 500 nM of the antigen protein.
52
- - `log_specificity_score_50nM_std`: The standard error of the mean 50 nM specificity score estimate calculated from each of the replicates measured.
53
- - `log_specificity_score_500nM_std`: The standard error of the mean 500 nM specificity score estimate calculated from each of the replicates measured.
54
 
55
- ## Replicate Datasets
56
 
57
- We include datasets that contain all of the replicates that were used to generate the binding and specificity mean scores/standard errors. As a result, the standard error columns are removed, and, for simplicity, we provide a row for each dose (column called `antigen_concentration_nM`). To further improve our data provenance, we include unique molecular identifier (UMI) counts for the expression and binding samples, along with sample ids for the expression and binding samples. The added columns are called:
58
 
59
- - `expression_sample_id`: The sample id of the expression sample. Different ID's that map to the same `candidate_library_id` are repeated measurements of the same expressed pool (which is the candidate_library_id). This means any variation observed here is likely measurement variation and not due to biological variation.
60
- - `binding_sample_id`: The sample id of the binding sample. Different ID's of this that map to the same `candidate_library_id` are separate biological replicates of the same pool as they represent distinct binding attempts. This means that any variation observed along this axis is due to a combination of measurement and biological variation.
61
- - `expression_umi_count`: The number of unique molecular identifiers (UMIs) observed for the binder in the expression sample.
62
- - `binding_umi_count`: The number of unique molecular identifiers (UMIs) observed for the binder in the binding sample.
63
-
64
- ### Notes
65
-
66
- When estimating our binding and specificity scores, we use a weak Bayesian prior and the UMI counts update the posterior. This means that zero counts are not truly zero, just that the probability of seeing that candidate is likely lower than one over the number of observations.
67
-
68
- These extra columns are included in the binding replicates dataset, while the other two (expression-replicates and specificity-replicates) do not, for now. They can be made available upon request!
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ title: "Binding Scores"
3
+ description: "Schema reference for computed binding score tables"
4
+ ---
5
+
6
+ These are the computed outputs of the data labeling pipeline.
7
+
8
+ ---
9
+
10
+ ## Binding Scores
11
 
12
+ **File:** `binding-scores-YYYYMMDD.parquet`
13
+
14
+ Aggregated binding scores per candidate and antigen pair. Replicate binding scores are averaged across replicates and pivoted so that each antigen concentration becomes its own column.
15
 
16
+ **Grain:** one row per unique `(candidate_id, sino_catalog_id)`.
 
 
17
 
18
+ ### Fixed Columns
19
 
20
+ | Column | Type | Description |
21
+ | :--- | :--- | :--- |
22
+ | `candidate_library_id` | `string` | Identifier of the candidate library consumed by this sample. |
23
+ | `candidate_name` | `string` | Customer-provided sequence name. |
24
+ | `candidate_id` | `string` | Blake-3 content digest of the reference sequence. |
25
+ | `candidate_sequence` | `string` | The candidate amino acid sequence. |
26
+ | `variant_id` | `string` | Blake-3 content digest of the variant sequence. |
27
+ | `variant_sequence` | `string` | The variant sequence. |
28
+ | `sino_catalog_id` | `string` | Sino catalog identifier for the antigen used in the binding assay. |
29
+ | `antigen_gene_name` | `string` | Gene name of the antigen. |
30
+ | `antigen_sequence` | `string` | Amino acid sequence of the antigen. |
31
+ | `targeting` | `boolean` | Whether the candidate was designed to target this antigen. |
32
+ | `is_expressed` | `boolean` | Whether the candidate is expressed in at least one sample. |
33
 
34
+ ### Dynamic Concentration Columns
35
 
36
+ <Note>
37
+ In addition to the fixed columns above, this table contains **dynamic columns** for each antigen concentration used in the experiment. The column names follow the pattern `binding_score_{conc}nM` and `binding_score_{conc}nM_std`.
38
+ </Note>
 
 
 
39
 
40
+ For our standard workflow, you will see these additional columns:
41
 
42
+ | Column | Type | Description |
43
+ | :--- | :--- | :--- |
44
+ | `binding_score_5nM` | `float` | Mean log binding score at 5 nM. |
45
+ | `binding_score_5nM_std` | `float` | Standard error of the log binding score at 5 nM. |
46
+ | `binding_score_50nM` | `float` | Mean log binding score at 50 nM. |
47
+ | `binding_score_50nM_std` | `float` | Standard error of the log binding score at 50 nM. |
48
+ | `binding_score_500nM` | `float` | Mean log binding score at 500 nM. |
49
+ | `binding_score_500nM_std` | `float` | Standard error of the log binding score at 500 nM. |
50
+
51
+ ---
52
+
53
+ ## Replicate Binding Scores
54
+
55
+ **File:** `replicate-binding-scores-YYYYMMDD.parquet`
56
+
57
+ Per-replicate binding scores unrolled across antigen concentrations. Each row represents a single candidate measured in a specific expression/binding sample pair at a specific antigen concentration. Use this table to inspect replicate-level variation and per-sample UMI counts.
58
+
59
+ **Grain:** one row per `(candidate_id, binding_sample_id, antigen_concentration_nM)`.
60
+
61
+ | Column | Type | Nullable | Description |
62
+ | :--- | :--- | :--- | :--- |
63
+ | `candidate_library_id` | `string` | no | Identifier of the candidate library consumed by this sample. |
64
+ | `expression_sample_id` | `string` | no | Sample identifier for the expression (base) sample. |
65
+ | `binding_sample_id` | `string` | no | Sample identifier for the binding (dose) sample. |
66
+ | `candidate_name` | `string` | no | Customer-provided sequence name. |
67
+ | `candidate_id` | `string` | no | Blake-3 content digest of the reference sequence. |
68
+ | `candidate_sequence` | `string` | no | The candidate amino acid sequence. |
69
+ | `variant_id` | `string` | no | Blake-3 content digest of the variant sequence. |
70
+ | `variant_sequence` | `string` | no | The variant sequence. |
71
+ | `sino_catalog_id` | `string` | no | Sino catalog identifier for the antigen. |
72
+ | `antigen_gene_name` | `string` | no | Gene name of the antigen. |
73
+ | `antigen_sequence` | `string` | no | Amino acid sequence of the antigen. |
74
+ | `antigen_concentration_nM` | `float` | no | Antigen concentration in nanomolar. |
75
+ | `targeting` | `boolean` | no | Whether the candidate was designed to target this antigen. |
76
+ | `is_expressed` | `boolean` | no | Whether the candidate is expressed. |
77
+ | `binding_score` | `float` | yes | Log binding score. Null when UMI count thresholds are not met. |
78
+ | `expression_umi_count` | `integer` | yes | UMI count from the expression (base) sample. |
79
+ | `binding_umi_count` | `integer` | yes | UMI count from the binding (dose) sample. |
80
+
81
+ **Key relationships:**
82
+ - `expression_sample_id` and `binding_sample_id` both correspond to `dim_samples.sample_id`.
83
+ - `candidate_id` is the shared candidate key across all tables.
84
+ - `variant_id` is the shared variant key across all tables.
85
 
86
+ ## Specificity Scores
 
87
 
88
+ **File:** `specificity-scores-YYYYMMDD.parquet`
89
 
90
+ Aggregated specificity scores per candidate and antigen pair. Replicate specificity scores are averaged across replicates and pivoted so that each antigen concentration becomes its own column.
91
 
92
+ **Grain:** one row per unique `(candidate_id, sino_catalog_id)`.
 
 
 
 
 
 
 
 
93
 
94
+ ### Fixed Columns
95
 
96
+ | Column | Type | Description |
97
+ | :--- | :--- | :--- |
98
+ | `candidate_library_id` | `string` | Identifier of the candidate library consumed by this sample. |
99
+ | `candidate_name` | `string` | Customer-provided sequence name. |
100
+ | `candidate_id` | `string` | Blake-3 content digest of the reference sequence. |
101
+ | `candidate_sequence` | `string` | The candidate amino acid sequence. |
102
+ | `variant_id` | `string` | Blake-3 content digest of the variant sequence. |
103
+ | `variant_sequence` | `string` | The variant sequence. |
104
+ | `sino_catalog_id` | `string` | Sino catalog identifier for the antigen used in the binding assay. |
105
+ | `antigen_gene_name` | `string` | Gene name of the antigen. |
106
+ | `antigen_sequence` | `string` | Amino acid sequence of the antigen. |
107
+ | `is_expressed` | `boolean` | Whether the candidate is expressed in at least one sample. |
108
+
109
+ ### Dynamic Concentration Columns
110
+
111
+ <Note>
112
+ In addition to the fixed columns above, this table contains **dynamic columns** for each antigen concentration used in the experiment. The column names follow the pattern `log_specificity_score_{conc}nM` and `log_specificity_score_{conc}nM_std`.
113
+ </Note>
114
+
115
+ For our standard workflow, you will see these additional columns:
116
+
117
+ | Column | Type | Description |
118
+ | :--- | :--- | :--- |
119
+ | `log_specificity_score_5nM` | `float` | Mean log specificity score at 5 nM. |
120
+ | `log_specificity_score_5nM_std` | `float` | Standard error of the log specificity score at 5 nM. |
121
+ | `log_specificity_score_50nM` | `float` | Mean log specificity score at 50 nM. |
122
+ | `log_specificity_score_50nM_std` | `float` | Standard error of the log specificity score at 50 nM. |
123
+ | `log_specificity_score_500nM` | `float` | Mean log specificity score at 500 nM. |
124
+ | `log_specificity_score_500nM_std` | `float` | Standard error of the log specificity score at 500 nM. |
125
+
126
+ ---
127
+
128
+ ## Replicate Specificity Scores
129
+
130
+ **File:** `replicate-specificity-scores-YYYYMMDD.parquet`
131
+
132
+ Per-replicate specificity scores unrolled across antigen concentrations. Each row represents a single candidate measured in a specific expression/binding sample pair at a specific antigen concentration. Use this table to inspect replicate-level variation.
133
+
134
+ **Grain:** one row per `(candidate_id, binding_sample_id, antigen_concentration_nM)`.
135
+
136
+ | Column | Type | Nullable | Description |
137
+ | :--- | :--- | :--- | :--- |
138
+ | `candidate_library_id` | `string` | no | Identifier of the candidate library consumed by this sample. |
139
+ | `expression_sample_id` | `string` | no | Sample identifier for the expression (base) sample. |
140
+ | `binding_sample_id` | `string` | no | Sample identifier for the binding (dose) sample. |
141
+ | `candidate_name` | `string` | no | Customer-provided sequence name. |
142
+ | `candidate_id` | `string` | no | Blake-3 content digest of the reference sequence. |
143
+ | `candidate_sequence` | `string` | no | The candidate amino acid sequence. |
144
+ | `variant_id` | `string` | no | Blake-3 content digest of the variant sequence. |
145
+ | `variant_sequence` | `string` | no | The variant sequence. |
146
+ | `sino_catalog_id` | `string` | no | Sino catalog identifier for the antigen. |
147
+ | `antigen_gene_name` | `string` | no | Gene name of the antigen. |
148
+ | `antigen_sequence` | `string` | no | Amino acid sequence of the antigen. |
149
+ | `antigen_concentration_nM` | `float` | no | Antigen concentration in nanomolar. |
150
+ | `is_expressed` | `boolean` | no | Whether the candidate is expressed. |
151
+ | `log_specificity_score` | `float` | yes | Log specificity score. Null when UMI count thresholds are not met. |
152
+
153
+ **Key relationships:**
154
+ - `expression_sample_id` and `binding_sample_id` both correspond to `dim_samples.sample_id`.
155
+ - `candidate_id` is the shared candidate key across all tables.
156
+ - `variant_id` is the shared variant key across all tables.
157
+
158
+ ## Expression Scores
159
+
160
+ **File:** `expression-scores-YYYYMMDD.parquet`
161
+
162
+ Aggregated expression scores per candidate. Expression scores are averaged across replicates.
163
+
164
+ **Grain:** one row per unique `(candidate_id, variant_id)`.
165
+
166
+ ### Fixed Columns
167
+
168
+ | Column | Type | Description |
169
+ | :--- | :--- | :--- |
170
+ | `candidate_library_id` | `string` | Identifier of the candidate library consumed by this sample. |
171
+ | `candidate_name` | `string` | Customer-provided sequence name. |
172
+ | `candidate_id` | `string` | Blake-3 content digest of the reference sequence. |
173
+ | `candidate_sequence` | `string` | The candidate amino acid sequence. |
174
+ | `variant_id` | `string` | Blake-3 content digest of the variant sequence. |
175
+ | `variant_sequence` | `string` | The variant sequence. |
176
+ | `is_expressed` | `boolean` | Whether the candidate is expressed in at least one sample. |
177
+ | `expression_score` | `float` | Mean expression score across all samples. |
178
+ | `expression_score_std` | `float` | Standard error of the expression score across all samples. |
179
 
180
+ ---
181
+
182
+ ## Replicate Expression Scores
 
 
 
 
183
 
184
+ **File:** `replicate-expression-scores-YYYYMMDD.parquet`
185
 
186
+ Per-replicate expression scores unrolled across different biological replicates. Use this table to inspect replicate-level variation.
187
 
188
+ **Grain:** one row per `(expression_sample_id, candidate_id, variant_id)`.
189
+
190
+ | Column | Type | Nullable | Description |
191
+ | :--- | :--- | :--- | :--- |
192
+ | `candidate_library_id` | `string` | no | Identifier of the candidate library consumed by this sample. |
193
+ | `expression_sample_id` | `string` | no | Sample identifier for the expression (base) sample. |
194
+ | `candidate_name` | `string` | no | Customer-provided sequence name. |
195
+ | `candidate_id` | `string` | no | Blake-3 content digest of the reference sequence. |
196
+ | `candidate_sequence` | `string` | no | The candidate amino acid sequence. |
197
+ | `variant_id` | `string` | no | Blake-3 content digest of the variant sequence. |
198
+ | `variant_sequence` | `string` | no | The variant sequence. |
199
+ | `is_expressed` | `boolean` | no | Whether the candidate is expressed. |
200
+ | `expression_score` | `float` | yes | Expression score derived from the log enrichment from synthesis to expression. Null when UMI count thresholds are not met. |
201
+
202
+ **Key relationships:**
203
+ - `expression_sample_id` corresponds to `dim_samples.sample_id`.
204
+ - `candidate_id` is the shared candidate key across all tables.
205
+ - `variant_id` is the shared variant key across all tables.
README.md CHANGED
@@ -1,28 +1,28 @@
1
  ---
2
  configs:
3
- - config_name: expression
4
  data_files:
5
  - split: train
6
- path: "expression/expression-scores.parquet"
7
- - config_name: expression-replicates
8
  data_files:
9
  - split: train
10
- path: "expression-replicates/expression-scores-with-replicates.parquet"
11
- - config_name: binding
12
  data_files:
13
  - split: train
14
- path: "binding/binding-scores.parquet"
15
- - config_name: binding-replicates
16
  data_files:
17
  - split: train
18
- path: "binding-replicates/binding-scores-with-replicates.parquet"
19
- - config_name: specificity
20
  data_files:
21
  - split: train
22
- path: "specificity/specificity-scores.parquet"
23
- - config_name: specificity-replicates
24
  data_files:
25
  - split: train
26
- path: "specificity-replicates/specificity-scores-with-replicates.parquet"
27
  license: mit
28
  ---
 
1
  ---
2
  configs:
3
+ - config_name: expression_scores
4
  data_files:
5
  - split: train
6
+ path: "expression_scores/**/*.parquet"
7
+ - config_name: replicate_expression_scores
8
  data_files:
9
  - split: train
10
+ path: "replicate_expression_scores/**/*.parquet"
11
+ - config_name: binding_scores
12
  data_files:
13
  - split: train
14
+ path: "binding_scores/**/*.parquet"
15
+ - config_name: replicate_binding_scores
16
  data_files:
17
  - split: train
18
+ path: "replicate_binding_scores/**/*.parquet"
19
+ - config_name: specificity_scores
20
  data_files:
21
  - split: train
22
+ path: "specificity_scores/**/*.parquet"
23
+ - config_name: replicate_specificity_scores
24
  data_files:
25
  - split: train
26
+ path: "replicate_specificity_scores/**/*.parquet"
27
  license: mit
28
  ---
binding/binding-scores.parquet → binding_scores/binding-scores-260812.parquet RENAMED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:93d297948aaf13e5ea2669eafd8b455a23765ef5fc80dd52392178b8881460dd
3
- size 4601677
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:bf4604d2b74d4407d314085eef47453507c0dd41b4f8f80071e0531aae71957c
3
+ size 3893628
{expression → expression_scores}/expression-scores.parquet RENAMED
File without changes
specificity-replicates/specificity-scores-with-replicates.parquet → replicate_binding_scores/replicate-binding-scores-260812.parquet RENAMED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:26e81858c6fa80d5309847710c0ce329aebf145be127a00fb69b470afe7b3235
3
- size 3819349
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9a8cac744df7b5474b67a2b241f2d7b851fda979091f67a6e15085283ea179ea
3
+ size 5706560
{expression-replicates → replicate_expression_scores}/expression-scores-with-replicates.parquet RENAMED
File without changes
specificity/specificity-scores.parquet → replicate_specificity_scores/replicate-specificity-scores-260812.parquet RENAMED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:a811688af509313c0464845f4e1dfa662375cf149a2c05a1d288718862607431
3
- size 1819210
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:eb74ba9a661df8dfcca20897bd7bfd83c87689eaeb2bcf566791498c69792609
3
+ size 1249166
binding-replicates/binding-scores-with-replicates.parquet → specificity_scores/specificity-scores-260812.parquet RENAMED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:eb28d3361aecdec4371f11b0349777136c5ecdf4b68531b98efc0fc70f83aed1
3
- size 12354226
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4cc30e988c04517c3c093498dbf1360f3f9032965974f3aaac6dfce2e66c83bc
3
+ size 938652