cmatkhan commited on
Commit
1b4bf69
·
verified ·
1 Parent(s): 073cdeb

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +110 -1
README.md CHANGED
@@ -254,4 +254,113 @@ configs:
254
  - split: train
255
  path:
256
  - data/*/*/part-0.parquet
257
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
254
  - split: train
255
  path:
256
  - data/*/*/part-0.parquet
257
+ ---
258
+ # Harbison 2004
259
+
260
+ This Dataset is a parsed version of the data provided by Richard A. Young's lab. To cite this data, please use:
261
+
262
+ [Harbison CT, Gordon DB, Lee TI, Rinaldi NJ, Macisaac KD, Danford TW, Hannett NM, Tagne JB, Reynolds DB, Yoo J, et al. 2004. Transcriptional regulatory code of a eukaryotic genome. Nature 431: 99–104.doi:10.1038/nature02800](https://www.nature.com/articles/nature02800)
263
+
264
+ ## Usage
265
+
266
+ You may access just the Dataset metadata like this:
267
+
268
+ ```python
269
+ from huggingface_hub import ModelCard
270
+
271
+ card = ModelCard.load("BrentLab/harbison_2004", repo_type="dataset")
272
+
273
+ # cast to dict
274
+ card_dict = card.data.to_dict()
275
+
276
+ # Get partition information
277
+ card_dict.get("dataset_info").get("partitioning").get("keys")
278
+ ```
279
+
280
+ Output:
281
+
282
+ ```raw
283
+ [{'name': 'condition',
284
+ 'dtype': 'string',
285
+ 'levels': [
286
+ 'YPD',
287
+ 'SM',
288
+ 'RAPA',
289
+ 'H2O2Hi',
290
+ 'H2O2Lo',
291
+ 'Acid',
292
+ 'Alpha',
293
+ 'BUT14',
294
+ 'BUT90',
295
+ 'Thi-',
296
+ 'GAL',
297
+ 'HEAT',
298
+ 'Pi-',
299
+ 'RAFF']},
300
+ {'name': 'regulator_symbol',
301
+ 'dtype': 'string',
302
+ 'levels': [
303
+ 'YSC0017',
304
+ 'YKL112W',
305
+ 'YNR054C',
306
+ 'YER045C',
307
+ ... (there are 204 regulators)
308
+ ```
309
+
310
+ You can use this information to pull only the partition you're interested in, eg
311
+
312
+ ```python
313
+ from huggingface_hub import hf_hub_download
314
+
315
+ # Download a single partition file and store it in the local cache
316
+ local_file = hf_hub_download(
317
+ repo_id="BrentLab/harbison_2004",
318
+ repo_type="dataset",
319
+ filename="data/condition=YPD/regulator_locus_tag=YER045C/part-0.parquet"
320
+ )
321
+ ```
322
+
323
+ <details>
324
+ <summary><strong>Dataset Details</strong></summary>
325
+
326
+ The data was extract from The [Young Lab's website](http://younglab.wi.mit.edu/regulatory_code/GWLD.html).
327
+
328
+ I pulled the 'Excel' versions of both the P values (the downloaded file is called files_for_paper_abbr.zip)
329
+ and Binding ratios (Ratio_forpaper_abbr.zip).
330
+
331
+ The following is copied from the [Young's lab explanation of the analysis](http://younglab.wi.mit.edu/regulatory_code/Analysis.html):
332
+
333
+ > The microarrays were scanned using an Axon200B scanner, and the images were analyzed with Genepix 5.0. Columns corresponding to the background
334
+ > subtracted intensities and standard deviation of the background were extracted for further analysis. The intensities for the two channels, representing
335
+ > the immunoprecipitated (test) and unenriched (control) samples, were normalized by using the median of each channel to calculate a normalization factor,
336
+ > normalizing all datasets to a single median intensity. The log ratio of the intensity in the test channel to the control channel was calculated.
337
+ > To account for biases in the immunoprecipitation reaction, these log ratios were normalized for each spot by subtracting the average log ratio of each
338
+ > spot across all arrays. The intensities in the test channel were then adjusted to yield this normalized ratio. Finally, an error model was used to
339
+ > calculate significance of enrichment on each chip and to combine data for replicates to obtain a final average ratio and significance of enrichment
340
+ > for each intergenic region. Each intergenic region was assigned to the genes it is most likely to regulate.
341
+ > We have included new refinements in our analysis relative to that used in Lee et al. Notably, we have excluded artefactual spots from analysis,
342
+ > selected more reliable probes for normalization and assigned quality metrics to individual arrays to identify low quality experiments.
343
+
344
+ The script used to parse this data from the data provided by the Young lab into the parquet dataset presented here is included in `scripts/`
345
+
346
+ </details>
347
+
348
+ <details>
349
+ <summary><strong>Dataset Structure</strong></summary>
350
+
351
+ ### data/
352
+
353
+ This is a **Parquet** dataset where the partitions are based on `condition` and `regulator_locus_tag`.
354
+ Each row represents the effect and pvalue on a given target gene (`target_locus_tag`)
355
+
356
+ | Field | Description |
357
+ |-----------------------|-------------------------------------------------------------------------------------------------------------------------|
358
+ | `condition` | See below for a definition of each level |
359
+ | `regulator_locus_tag` | The systematic ID of the ChIP'ed regulator. See hf/BrentLab/yeast_genome_resources to map to the common name (symbol) |
360
+ | `target_locus_tag` | the systematic ID of the feature to which the Young lab assigned the effect/pvalue |
361
+ | `effect` | chip based binding ratio |
362
+ | `pvalue` | pvalue of the effect |
363
+
364
+ </details>
365
+
366
+ **Dataset Author and Contact**: Chase Mateusiak [@cmatKhan](https://github.com/cmatkhan/)