cmatkhan commited on
Commit
30ea6f2
·
verified ·
1 Parent(s): a0f6f1b

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +134 -56
README.md CHANGED
@@ -53,59 +53,137 @@
53
  ---
54
  # Harbison 2004
55
 
56
- This Dataset is a parsed version of the data provided by Richard A. Young's lab. To cite this data, please use:
57
-
58
- [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)
59
-
60
-
61
- ## Dataset Details
62
-
63
- The data was extract from The [Young Lab's website](http://younglab.wi.mit.edu/regulatory_code/GWLD.html).
64
-
65
- I pulled the 'Excel' versions of both the P values (the downloaded file is called files_for_paper_abbr.zip)
66
- and Binding ratios (Ratio_forpaper_abbr.zip).
67
-
68
- The following is copied from the [Young's lab explanation of the analysis](http://younglab.wi.mit.edu/regulatory_code/Analysis.html):
69
-
70
- > The microarrays were scanned using an Axon200B scanner, and the images were analyzed with Genepix 5.0. Columns corresponding to the background
71
- > subtracted intensities and standard deviation of the background were extracted for further analysis. The intensities for the two channels, representing
72
- > the immunoprecipitated (test) and unenriched (control) samples, were normalized by using the median of each channel to calculate a normalization factor,
73
- > normalizing all datasets to a single median intensity. The log ratio of the intensity in the test channel to the control channel was calculated.
74
- > To account for biases in the immunoprecipitation reaction, these log ratios were normalized for each spot by subtracting the average log ratio of each
75
- > 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
76
- > calculate significance of enrichment on each chip and to combine data for replicates to obtain a final average ratio and significance of enrichment
77
- > for each intergenic region. Each intergenic region was assigned to the genes it is most likely to regulate.
78
- > We have included new refinements in our analysis relative to that used in Lee et al. Notably, we have excluded artefactual spots from analysis,
79
- > selected more reliable probes for normalization and assigned quality metrics to individual arrays to identify low quality experiments.
80
-
81
- 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/`
82
-
83
- ## Dataset Structure
84
-
85
-
86
- | Field | Description |
87
- |-----------------------|-------------------------------------------------------------------------------------------------------------------------|
88
- | `condition` | See below for a definition of each level |
89
- | `regulator_locus_tag` | The systematic ID of the ChIP'ed regulator. |
90
- | `regulator_symbol` | The common name of the ChIP'ed regulator. |
91
- | `target_locus_tag` | the systematic ID of the feature to which the Young lab assigned the effect/pvalue |
92
- | `target_symbol` | the common name of the feature to which the Young lab assigned the effect/pvalue |
93
- | `effect` | chip based binding ratio |
94
- | `pvalue` | pvalue of the effect |
95
-
96
- - **YPD**: Rich media - Cells were grown in YPD (1% yeast extract/2% peptone/2% glucose) to an OD600 of ~0.8
97
- - **SM**: Amino acid starvation - Cells were grown to an OD600 of ~0.6 in synthetic complete medium followed by treatment with the inhibitor of amino acid biosynthesis sulfometuron methyl (0.2 mg/ml final) for two hours
98
- - **RAPA**: Nutrient deprived - Cells were grown in YPD to an OD600 of ~0.8 followed by treatment with rapamycin (100 nM final) for 20 minutes
99
- - **H2O2Hi**: Highly hyperoxic - Cells were grown in YPD to an OD600 of ~0.5 followed by treatment with hydrogen peroxide (4 mM final) for 30 minutes
100
- - **H2O2Lo**: Moderately hyperoxic - Cells were grown in YPD to an OD600 of ~0.5 followed by treatment with hydrogen peroxide (0.4 mM final) for 20 minutes
101
- - **Acid**: Acidic medium - Cells were grown in YPD to an OD600 of ~0.5 followed by treatment for 30 minutes with succinic acid (0.05 M final) to reach a pH of 4.0
102
- - **Alpha**: Mating inducing - Cells were grown in YPD to an OD600 of ~0.8 followed by treatment with the alpha factor pheromone (5 mg/ml) for 30 minutes
103
- - **BUT14**: Filamentation inducing (14 hours) - Cells were grown in YPD containing 1% butanol for 14 hours (corresponding to an OD600 of ~0.8)
104
- - **BUT90**: Filamentation inducing (90 minutes) - Cells were grown in YPD containing 1% butanol for 90 minutes (corresponding to an OD600 of ~0.8)
105
- - **Thi-**: Vitamin deprived medium - Cells were grown in synthetic complete medium lacking thiamin to a final OD of ~0.8
106
- - **GAL**: Galactose medium - Cells were grown in YEP medium supplemented with galactose (2%) to an OD600 of ~0.8
107
- - **HEAT**: Elevated temperature - Cells were grown in YPD at 30°C to an OD600 of ~0.5 followed by a temperature shift to 37°C for 45 minutes
108
- - **Pi-**: Phosphate deprived medium - Cells were grown in synthetic complete medium lacking phosphate to a final OD of ~0.8
109
- - **RAFF**: Raffinose medium - Cells were grown in YEP medium supplemented with raffinose (2%) to an OD600 of ~0.8
110
-
111
- **Dataset Author and Contact**: Chase Mateusiak [@cmatKhan](https://github.com/cmatkhan/)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
53
  ---
54
  # Harbison 2004
55
 
56
+ This Dataset is a parsed version of the data provided by Richard A. Young's lab. To cite
57
+ this data, please use:
58
+
59
+ [Harbison CT, Gordon DB, Lee TI, Rinaldi NJ, Macisaac KD, Danford TW, Hannett NM, Tagne
60
+ JB, Reynolds DB, Yoo J, et al. 2004. Transcriptional regulatory code of a eukaryotic
61
+ genome. Nature 431:
62
+ 99–104.doi:10.1038/nature02800](https://www.nature.com/articles/nature02800)
63
+
64
+ This repo provides 1 dataset:
65
+
66
+ - **harbison_2004**: ChIP-chip transcription factor binding data with environmental
67
+ conditions.
68
+
69
+ ### `tfbpapi`
70
+
71
+ After [installing
72
+ tfbpapi](https://github.com/BrentLab/tfbpapi/?tab=readme-ov-file#installation), you can
73
+ adapt this [tutorial](https://brentlab.github.io/tfbpapi/tutorials/hfqueryapi_tutorial/)
74
+ in order to explore the contents of this repository.
75
+
76
+ ### huggingface_cli/duckdb
77
+
78
+ You can retrieves and displays the file paths for each configuration of
79
+ the "BrentLab/harbison_2004" dataset from Hugging Face Hub.
80
+
81
+ ```python
82
+ from huggingface_hub import ModelCard
83
+ from pprint import pprint
84
+
85
+ card = ModelCard.load("BrentLab/harbison_2004", repo_type="dataset")
86
+
87
+ # cast to dict
88
+ card_dict = card.data.to_dict()
89
+
90
+ # Get partition information
91
+ dataset_paths_dict = {d.get("config_name"): d.get("data_files")[0].get("path") for d in card_dict.get("configs")}
92
+
93
+ pprint(dataset_paths_dict)
94
+ ```
95
+
96
+ If you wish to pull the entire repo, due to its size you may need to use an
97
+ [authentication token](https://huggingface.co/docs/hub/en/security-tokens).
98
+ If you do not have one, try omitting the token related code below and see if
99
+ it works. Else, create a token and provide it like so:
100
+
101
+ ```python
102
+ from huggingface_hub import snapshot_download
103
+ import os
104
+
105
+ repo_id = "BrentLab/harbison_2004"
106
+
107
+ hf_token = os.getenv("HF_TOKEN")
108
+
109
+ # Download entire repo to local directory
110
+ repo_path = snapshot_download(
111
+ repo_id=repo_id,
112
+ repo_type="dataset",
113
+ token=hf_token
114
+ )
115
+
116
+ print(f"\n✓ Repository downloaded to: {repo_path}")
117
+
118
+ # Construct path to the rossi_annotated_features parquet file
119
+ parquet_path = os.path.join(repo_path, "harbison_2004.parquet")
120
+ print(f"✓ Parquet file at: {parquet_path}")
121
+ ➜ ~ cat /home/chase/Downloads/Harbison.2004.md
122
+ # Harbison 2004
123
+
124
+ This Dataset is a parsed version of the data provided by Richard A. Young's lab. To cite
125
+ this data, please use:
126
+
127
+ [Harbison CT, Gordon DB, Lee TI, Rinaldi NJ, Macisaac KD, Danford TW, Hannett NM, Tagne
128
+ JB, Reynolds DB, Yoo J, et al. 2004. Transcriptional regulatory code of a eukaryotic
129
+ genome. Nature 431:
130
+ 99–104.doi:10.1038/nature02800](https://www.nature.com/articles/nature02800)
131
+
132
+ This repo provides 1 dataset:
133
+
134
+ - **harbison_2004**: ChIP-chip transcription factor binding data with environmental
135
+ conditions.
136
+
137
+ ### `tfbpapi`
138
+
139
+ After [installing
140
+ tfbpapi](https://github.com/BrentLab/tfbpapi/?tab=readme-ov-file#installation), you can
141
+ adapt this [tutorial](https://brentlab.github.io/tfbpapi/tutorials/hfqueryapi_tutorial/)
142
+ in order to explore the contents of this repository.
143
+
144
+ ### huggingface_cli/duckdb
145
+
146
+ You can retrieves and displays the file paths for each configuration of
147
+ the "BrentLab/harbison_2004" dataset from Hugging Face Hub.
148
+
149
+ ```python
150
+ from huggingface_hub import ModelCard
151
+ from pprint import pprint
152
+
153
+ card = ModelCard.load("BrentLab/harbison_2004", repo_type="dataset")
154
+
155
+ # cast to dict
156
+ card_dict = card.data.to_dict()
157
+
158
+ # Get partition information
159
+ dataset_paths_dict = {d.get("config_name"): d.get("data_files")[0].get("path") for d in card_dict.get("configs")}
160
+
161
+ pprint(dataset_paths_dict)
162
+ ```
163
+
164
+ If you wish to pull the entire repo, due to its size you may need to use an
165
+ [authentication token](https://huggingface.co/docs/hub/en/security-tokens).
166
+ If you do not have one, try omitting the token related code below and see if
167
+ it works. Else, create a token and provide it like so:
168
+
169
+ ```python
170
+ from huggingface_hub import snapshot_download
171
+ import os
172
+
173
+ repo_id = "BrentLab/harbison_2004"
174
+
175
+ hf_token = os.getenv("HF_TOKEN")
176
+
177
+ # Download entire repo to local directory
178
+ repo_path = snapshot_download(
179
+ repo_id=repo_id,
180
+ repo_type="dataset",
181
+ token=hf_token
182
+ )
183
+
184
+ print(f"\n✓ Repository downloaded to: {repo_path}")
185
+
186
+ # Construct path to the rossi_annotated_features parquet file
187
+ parquet_path = os.path.join(repo_path, "harbison_2004.parquet")
188
+ print(f"✓ Parquet file at: {parquet_path}")
189
+ ```