update readme for additional datasets
Browse files
README.md
CHANGED
@@ -16,17 +16,23 @@ To achieve this we strike a balance between task complexity and computational co
|
|
16 |
|
17 |
## Dataset Tasks
|
18 |
The Genomics LRB is a collection of tasks which can be loaded by passing in the corresponding `task_name` into the `load_dataset` function. All of the following datasets
|
19 |
-
allow the user to specify an arbitrarily long sequence length, giving more context
|
20 |
-
|
|
|
21 |
*Note that as you increase the context length to very large numbers you may start to reduce the size of the dataset since a large context size may
|
22 |
cause indexing outside the boundaries of chromosomes.
|
23 |
|
24 |
-
|
|
25 |
-
|
26 |
-
|
|
27 |
-
|
|
28 |
-
| Variant Effect
|
29 |
-
|
|
|
|
|
|
|
|
|
|
|
30 |
|
31 |
## Usage Example
|
32 |
```python
|
@@ -35,8 +41,13 @@ from datasets import load_dataset
|
|
35 |
# Use this parameter to download sequences of arbitrary length (see docs below for edge cases)
|
36 |
sequence_length=2048
|
37 |
|
38 |
-
# One of
|
39 |
-
|
|
|
|
|
|
|
|
|
|
|
40 |
|
41 |
dataset = load_dataset(
|
42 |
"InstaDeepAI/genomics-long-range-benchmark",
|
@@ -59,7 +70,8 @@ Sequence data originates from the GRCh38 genome assembly.
|
|
59 |
|
60 |
#### Data Processing
|
61 |
The original dataset from the Basenji paper includes labels for 638 CAGE total tracks over 896 bins (each bin corresponding to 128 base pairs)
|
62 |
-
totaling over ~70 GB. In the interest of dataset size and user
|
|
|
63 |
From the 638 CAGE tracks, 50 of these tracks are selected with the following criteria:
|
64 |
|
65 |
1. Only select one cell line
|
@@ -84,11 +96,6 @@ Output: a variable length vector depending on the requested sequence length [req
|
|
84 |
Train/Test splits were maintained from Basenji and Enformer where randomly sampling was used to generate the splits. Note that for this dataset a validation set is also returned. In practice we merged the validation
|
85 |
set with the train set and use cross validation to select a new train and validation set from this combined set.
|
86 |
|
87 |
-
#### Metrics
|
88 |
-
Mean Pearson correlation across tracks - compute Pearson correlation for a track using all positions for all genes in the test set, then mean over all tracks <br>
|
89 |
-
Mean Pearson correlation across genes - compute Pearson correlation for a gene using all positions and all tracks, then mean over all genes in the test set <br>
|
90 |
-
R<sup>2</sup>
|
91 |
-
|
92 |
|
93 |
---
|
94 |
|
@@ -123,7 +130,7 @@ R<sup>2</sup>
|
|
123 |
|
124 |
---
|
125 |
|
126 |
-
### 3. Variant Effect
|
127 |
In genomics, a key objective is to predict how genetic variants affect gene expression in specific cell types.
|
128 |
|
129 |
#### Source
|
@@ -151,7 +158,124 @@ Output: a binary value refering to whether the variant has an effect on gene exp
|
|
151 |
Train: chromosomes 1-8, 11-22, X, Y<br>
|
152 |
Test: chromosomes 9,10
|
153 |
|
154 |
-
|
155 |
-
|
156 |
-
|
157 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
16 |
|
17 |
## Dataset Tasks
|
18 |
The Genomics LRB is a collection of tasks which can be loaded by passing in the corresponding `task_name` into the `load_dataset` function. All of the following datasets
|
19 |
+
allow the user to specify an arbitrarily long sequence length, giving more context
|
20 |
+
to the task, by passing the `sequence_length` kwarg to `load_dataset`. Additional task
|
21 |
+
specific kwargs, if applicable, are mentioned in the sections below.<br>
|
22 |
*Note that as you increase the context length to very large numbers you may start to reduce the size of the dataset since a large context size may
|
23 |
cause indexing outside the boundaries of chromosomes.
|
24 |
|
25 |
+
| Task | `task_name` | Sample Output | # Train Seqs | # Test Seqs |
|
26 |
+
|--------------------------------------|----------------------------------------|-------------------------------------------------------------------------------------------| ------------ | ----------- |
|
27 |
+
| Variant Effect Causal eQTL | `variant_effect_causal_eqtl` | {ref sequence, alt sequence, label, tissue, chromosome,position, distance to nearest TSS} | 88717 | 8846 |
|
28 |
+
| Variant Effect Pathogenic Clinvar | `variant_effect_pathogenic_clinvar` | {ref sequence, alt sequence, label, chromosome, position} | 38634 | 1018 |
|
29 |
+
| Variant Effect Pathogenic OMIM | `variant_effect_pathogenic_omim` | {ref sequence, alt sequence, label,chromosome, position} | - | 2321473 |
|
30 |
+
| CAGE Prediction | `cage_prediction` | {sequence, labels, chromosome} | 33891 | 1922 |
|
31 |
+
| Bulk RNA Expression | `bulk_rna_expression` | {sequence, labels, chromosome,position} | 22827 | 990 |
|
32 |
+
| Chromatin Features Histone_Marks | `chromatin_features_histone_marks` | {sequence, labels,chromosome, position} | 2203689 | 227456 |
|
33 |
+
| Chromatin Features DNA_Accessibility | `chromatin_features_dna_accessibility` | {sequence, labels,chromosome, position} | 2203689 | 227456 |
|
34 |
+
| Regulatory Elements Promoter | `regulatory_element_promoter` | {sequence, label,chromosome, start, stop} | 953376 | 96240 |
|
35 |
+
| Regulatory Elements Enhancer | `regulatory_element_enhancer` | {sequence, label,chromosome, start, stop} | 1914575 | 192201 |
|
36 |
|
37 |
## Usage Example
|
38 |
```python
|
|
|
41 |
# Use this parameter to download sequences of arbitrary length (see docs below for edge cases)
|
42 |
sequence_length=2048
|
43 |
|
44 |
+
# One of:
|
45 |
+
# ["variant_effect_causal_eqtl","variant_effect_pathogenic_clinvar",
|
46 |
+
# "variant_effect_pathogenic_omim","cage_prediction", "bulk_rna_expression",
|
47 |
+
# "chromatin_features_histone_marks","chromatin_features_dna_accessibility",
|
48 |
+
# "regulatory_element_promoter","regulatory_element_enhancer"]
|
49 |
+
|
50 |
+
task_name = "variant_effect_causal_eqtl"
|
51 |
|
52 |
dataset = load_dataset(
|
53 |
"InstaDeepAI/genomics-long-range-benchmark",
|
|
|
70 |
|
71 |
#### Data Processing
|
72 |
The original dataset from the Basenji paper includes labels for 638 CAGE total tracks over 896 bins (each bin corresponding to 128 base pairs)
|
73 |
+
totaling over ~70 GB. In the interest of dataset size and user-friendliness, only a
|
74 |
+
subset of the labels are selected.
|
75 |
From the 638 CAGE tracks, 50 of these tracks are selected with the following criteria:
|
76 |
|
77 |
1. Only select one cell line
|
|
|
96 |
Train/Test splits were maintained from Basenji and Enformer where randomly sampling was used to generate the splits. Note that for this dataset a validation set is also returned. In practice we merged the validation
|
97 |
set with the train set and use cross validation to select a new train and validation set from this combined set.
|
98 |
|
|
|
|
|
|
|
|
|
|
|
99 |
|
100 |
---
|
101 |
|
|
|
130 |
|
131 |
---
|
132 |
|
133 |
+
### 3. Variant Effect Causal eQTL
|
134 |
In genomics, a key objective is to predict how genetic variants affect gene expression in specific cell types.
|
135 |
|
136 |
#### Source
|
|
|
158 |
Train: chromosomes 1-8, 11-22, X, Y<br>
|
159 |
Test: chromosomes 9,10
|
160 |
|
161 |
+
---
|
162 |
+
|
163 |
+
### 4. Variant Effect Pathogenic ClinVar
|
164 |
+
This task differs from the above in that variants in this datasets are linked to disease pathogenicity rather than effect on gene expression. Specifically, this tasks involves
|
165 |
+
predicting whether a variant located in a coding region is pathogenic or is a common missense variant.
|
166 |
+
|
167 |
+
#### Source
|
168 |
+
Original data comes from ClinVar and gnomAD. However, we use processed data files from the [GPN-MSA paper](https://www.ncbi.nlm.nih.gov/pmc/articles/PMC10592768/) located here :https://huggingface.co/datasets/songlab/human_variants/blob/main/test.parquet .
|
169 |
+
Sequence data originates from the GRCh38 genome assembly.
|
170 |
+
|
171 |
+
#### Data Processing
|
172 |
+
Human labelers generated the pathogenic missense set from ClinVar. The non-pathogenic set comes from common missense variants in gnomAD.
|
173 |
+
|
174 |
+
#### Task Structure
|
175 |
+
|
176 |
+
Type: Binary classification<br>
|
177 |
+
|
178 |
+
Task Args:<br>
|
179 |
+
`sequence_length`: an interger type, the desired final sequence length<br>
|
180 |
+
|
181 |
+
Input: a genomic nucleotide sequence centered on the SNP with the reference allele at the SNP location, a genomic nucleotide sequence centered on the SNP with the alternative allele at the SNP location<br>
|
182 |
+
Output: a binary value referring to whether the variant is pathogenic or not
|
183 |
+
|
184 |
+
#### Splits
|
185 |
+
Train: chromosomes 1-7, 9-22, X, Y<br>
|
186 |
+
Test: chromosomes 8
|
187 |
+
|
188 |
+
---
|
189 |
+
|
190 |
+
### 5. Variant Effect Pathogenic OMIM
|
191 |
+
This tasks involves predicting whether a variant located in a regulatory region is
|
192 |
+
implicated in a mendelian disease or is a common missense variant.
|
193 |
+
|
194 |
+
#### Source
|
195 |
+
Original data comes from the Online Mendelian Inheritance in Man (OMIM) and gnomAD
|
196 |
+
databases.
|
197 |
+
However, we use processed data files from the
|
198 |
+
[GPN-MSA paper](https://www.ncbi.nlm.nih.gov/pmc/articles/PMC10592768/) located here :https://huggingface.co/datasets/songlab/omim/blob/main/test.parquet.
|
199 |
+
Sequence data originates from the GRCh38 genome assembly.
|
200 |
+
|
201 |
+
#### Data Processing
|
202 |
+
Pathogenic variants originate from OMIM. The non-pathogenic set comes
|
203 |
+
from common missense variants in gnomAD.
|
204 |
+
|
205 |
+
#### Task Structure
|
206 |
+
|
207 |
+
Type: Binary classification<br>
|
208 |
+
|
209 |
+
Task Args:<br>
|
210 |
+
`sequence_length`: an interger type, the desired final sequence length<br>
|
211 |
+
`subset`: a boolean type, whether to use the full dataset or a subset of the dataset (we provide this option as the full dataset has millions of samples)
|
212 |
+
|
213 |
+
Input: a genomic nucleotide sequence centered on the SNP with the reference allele at the SNP location, a genomic nucleotide sequence centered on the SNP with the alternative allele at the SNP location<br>
|
214 |
+
Output: a binary value referring to whether the variant is pathogenic or not
|
215 |
+
|
216 |
+
#### Splits
|
217 |
+
Test: all chromosomes
|
218 |
+
|
219 |
+
---
|
220 |
+
### 6. Chromatin Features
|
221 |
+
Chromatin refers to the mixture of DNA and proteins that form the chromosomes and allow the DNA to exist in a compact structure. There are many factors describing the state of
|
222 |
+
chromatin which play important roles in regulating the cell. In this task we present two features which represent chromatin state, histone marks and DNA accessibility. Histones are proteins which in combination with
|
223 |
+
a short strand of DNA form the basic unit of chromatin called the nucleosome. Histone marks correspond to the chemical modifications of histones which include methylation, acetylation,
|
224 |
+
phosphorylation, and ubiquitination. DNA accessibility as measured through DNase I–hypersensitive sites refers to regions of the chromosome where DNA is not bound in a nucleosome but
|
225 |
+
rather is open and accessible for other proteins such as transcription factors to bind.
|
226 |
+
|
227 |
+
#### Source
|
228 |
+
Original data used to generate labels for histone marks and DNase profiles comes from the ENCODE and Roadmap Epigenomics project. We used processed data files from the [Deep Sea paper](https://www.nature.com/articles/nmeth.3547) to build this dataset.
|
229 |
+
Sequence data originates from the GRCh37/hg19 genome assembly.
|
230 |
+
|
231 |
+
#### Data Processing
|
232 |
+
As we use the data from Deep Sea the labels were generated according to the their following procedure - the genome was split into 200 base pairs bins and bins were labeled
|
233 |
+
as 1 if more than half of the bin overlapped with the peak region of the chromatin feature annotations and 0 otherwise.
|
234 |
+
|
235 |
+
Data from Deep Sea contains 919 labels for various chromatin features - 690 TF binding profiles, 125 DNase profiles and 104 histone-mark profiles. To make the dataset more accessible
|
236 |
+
while still providing a representative set, we randomly sampled 20 histone marks and 20 DNase tissues.
|
237 |
+
|
238 |
+
#### Task Structure
|
239 |
+
|
240 |
+
Type: Multi-label binary classification
|
241 |
+
|
242 |
+
Task Args:<br>
|
243 |
+
`sequence_length`: an interger type, the desired final sequence length<br>
|
244 |
+
`subset`: a boolean type, whether to use the full dataset or a subset of the dataset (we provide this option as the full dataset has millions of samples)
|
245 |
+
|
246 |
+
Input: a genomic nucleotide sequence centered on the 200 base pair bin that is associated with the labels<br>
|
247 |
+
Output: a vector of length 20 with binary entries
|
248 |
+
|
249 |
+
#### Splits
|
250 |
+
Train set: chromosomes 1-7,10-22<br>
|
251 |
+
Test set: chromosomes 8,9
|
252 |
+
|
253 |
+
---
|
254 |
+
### 7. Regulatory Element
|
255 |
+
Regulatory elements are segments of DNA that play a pivotal role in controlling gene expression and cellular processes.
|
256 |
+
These elements include promoters, enhancers, and other regions that interact with transcription factors and other proteins
|
257 |
+
to modulate the activity of genes. Identifying regulatory elements is essential for understanding the complex regulatory
|
258 |
+
networks governing cellular functions.
|
259 |
+
|
260 |
+
#### Source
|
261 |
+
Original data annotations to build labels came from the Search Candidate cis-Regulatory Elements by ENCODE project. Sequence data originates from the GRCh38
|
262 |
+
genome assembly.
|
263 |
+
|
264 |
+
#### Data Processing
|
265 |
+
To generate labels from the annotations we first split the genome into 200 base pairs bins. We label a bin as 1 if more than half of the bin overlaps with any regulatory
|
266 |
+
element given in the annotations and 0 otherwise.
|
267 |
+
|
268 |
+
#### Task Structure
|
269 |
+
|
270 |
+
Type: Binary classification
|
271 |
+
|
272 |
+
Task Args:<br>
|
273 |
+
`sequence_length`: an interger type, the desired final sequence length<br>
|
274 |
+
`subset`: a boolean type, whether to use the full dataset or a subset of the dataset (we provide this option as the full dataset has millions of samples)
|
275 |
+
|
276 |
+
Input: a genomic nucleotide sequence centered on the 200 base pair bin that is associated with the label<br>
|
277 |
+
Output: a single binary value
|
278 |
+
|
279 |
+
#### Splits
|
280 |
+
Train set: chromosomes 1-7,10-22<br>
|
281 |
+
Test set: chromosomes 8,9
|