cmatkhan commited on
Commit
d63c098
·
verified ·
1 Parent(s): c26f8b4

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +125 -200
README.md CHANGED
@@ -174,6 +174,36 @@ configs:
174
  - control_source
175
  - condition
176
  - regulator_locus_tag
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
177
  data_files:
178
  - split: train
179
  path: reprocess_diffcontrol_5prime.parquet
@@ -183,158 +213,8 @@ configs:
183
  dtype: string
184
  description: Source identifier for the control dataset (m2025 or h2021)
185
  - name: condition
186
- dtype:
187
- class_label:
188
- names: ["standard",
189
- "30", "37",
190
- "SM", "WT", "WT_SM",
191
- "admut", "admut_SM",
192
- "cAD", "cAD_SM",
193
- "dbdmut", "dbdmut_SM",
194
- "nAD", "nAD_SM",
195
- "ncAD", "ncAD_SM",
196
- "galactose", "raffinose"]
197
- role: experimental_condition
198
- description: Experimental condition. Standard is YPD (synthetic complete media).
199
- definitions:
200
- standard:
201
- description: Baseline growth condition in synthetic complete media
202
- growth_conditions:
203
- media:
204
- name: synthetic_complete
205
- composition:
206
- yeast_nitrogen_base_g_per_l: 1.7
207
- yeast_nitrogen_base_specs:
208
- - without_amino_acids
209
- - without_ammonium_sulfate
210
- ammonium_sulfate_g_per_l: 5
211
- adenine_sulfate_ug_per_ml: 40
212
- amino_acid_dropout_mix_g_per_l: 0.6
213
- amino_acid_dropout_mix_composition:
214
- - compound: Tyrosine
215
- g_per_l: 2
216
- - compound: Serine
217
- g_per_l: 2
218
- - compound: Valine
219
- g_per_l: 2
220
- - compound: Isoleucine
221
- g_per_l: 2
222
- - compound: Phenylalanine
223
- g_per_l: 2
224
- - compound: Aspartic_acid
225
- g_per_l: 2
226
- - compound: Proline
227
- g_per_l: 2
228
- - compound: Arginine
229
- g_per_l: 4
230
- - compound: Threonine
231
- g_per_l: 4
232
- uracil_ug_per_ml: 2
233
- other_amino_acids_percent: 0.01
234
- "30":
235
- description: No heat shock control at 30°C
236
- growth_conditions:
237
- temperature_celsius: 30
238
- duration_minutes: 10
239
- "37":
240
- description: Heat shock condition at elevated temperature
241
- growth_conditions:
242
- temperature_celsius: 37
243
- duration_minutes: 10
244
- SM:
245
- description: Amino acid starvation stress induced by sulfometuron methyl
246
- growth_conditions:
247
- media:
248
- name: synthetic_complete_minus_isoleucine_valine
249
- chemical_stress:
250
- agent: sulfometuron_methyl
251
- concentration_ug_per_ml: 0.5
252
- duration_minutes: 60
253
- WT:
254
- description: Wild-type negative control to distinguish specific TF effects from non-specific IAA/DMSO treatment effects
255
- strain_type: wildtype
256
- WT_SM:
257
- description: Wild-type strain treated with sulfometuron methyl to induce amino acid starvation
258
- strain_type: wildtype
259
- chemical_stress:
260
- agent: sulfometuron_methyl
261
- concentration_ug_per_ml: 0.5
262
- duration_minutes: 60
263
- admut:
264
- description: Gcn4 activation domain mutant with inactivated activation domains but intact DNA-binding domain
265
- strain_type: gcn4_mutant
266
- mutation_type: activation_domain_deleted
267
- admut_SM:
268
- description: Gcn4 activation domain mutant treated with sulfometuron methyl
269
- strain_type: gcn4_mutant
270
- mutation_type: activation_domain_deleted
271
- chemical_stress:
272
- agent: sulfometuron_methyl
273
- concentration_ug_per_ml: 0.5
274
- duration_minutes: 60
275
- cAD:
276
- description: Gcn4 central activation domain inactivated by missense mutations
277
- strain_type: gcn4_mutant
278
- mutation_type: central_activation_domain_inactivated
279
- cAD_SM:
280
- description: Gcn4 central activation domain mutant treated with sulfometuron methyl
281
- strain_type: gcn4_mutant
282
- mutation_type: central_activation_domain_inactivated
283
- chemical_stress:
284
- agent: sulfometuron_methyl
285
- concentration_ug_per_ml: 0.5
286
- duration_minutes: 60
287
- dbdmut:
288
- description: Gcn4 DNA-binding domain mutant with triple mutation to inhibit specific DNA binding
289
- strain_type: gcn4_mutant
290
- mutation_type: dna_binding_domain_inactivated
291
- dbdmut_SM:
292
- description: Gcn4 DNA-binding domain mutant treated with sulfometuron methyl
293
- strain_type: gcn4_mutant
294
- mutation_type: dna_binding_domain_inactivated
295
- chemical_stress:
296
- agent: sulfometuron_methyl
297
- concentration_ug_per_ml: 0.5
298
- duration_minutes: 60
299
- nAD:
300
- description: Gcn4 N-terminal activation domain inactivated by missense mutations
301
- strain_type: gcn4_mutant
302
- mutation_type: n_terminal_activation_domain_inactivated
303
- nAD_SM:
304
- description: Gcn4 N-terminal activation domain mutant treated with sulfometuron methyl
305
- strain_type: gcn4_mutant
306
- mutation_type: n_terminal_activation_domain_inactivated
307
- chemical_stress:
308
- agent: sulfometuron_methyl
309
- concentration_ug_per_ml: 0.5
310
- duration_minutes: 60
311
- ncAD:
312
- description: Gcn4 mutant with both N-terminal and central activation domains inactivated
313
- strain_type: gcn4_mutant
314
- mutation_type: n_terminal_and_central_activation_domains_inactivated
315
- ncAD_SM:
316
- description: Gcn4 N-terminal and central activation domain double mutant treated with sulfometuron methyl
317
- strain_type: gcn4_mutant
318
- mutation_type: n_terminal_and_central_activation_domains_inactivated
319
- chemical_stress:
320
- agent: sulfometuron_methyl
321
- concentration_ug_per_ml: 0.5
322
- duration_minutes: 60
323
- galactose:
324
- description: Galactose induction condition for Gal4 transcription factor activation
325
- growth_conditions:
326
- induction:
327
- inducer: D-galactose
328
- concentration_percent: 2
329
- duration_hours: 2
330
- raffinose:
331
- description: Non-inducing baseline growth medium for Gal4 experiments
332
- growth_conditions:
333
- media:
334
- name: yeast_extract_peptone
335
- carbon_source:
336
- compound: D-raffinose
337
- concentration_percent: 2
338
  - name: regulator_locus_tag
339
  dtype: string
340
  description: Systematic gene name (ORF identifier) of the transcription factor
@@ -355,15 +235,12 @@ configs:
355
  description: Strand orientation (+ or -) of the promoter/target
356
  - name: input_vs_target_log2_fold_change
357
  dtype: float64
358
- role: quantitative_measure
359
  description: Log2 fold change of TF-tagged sample vs control (from DESeq2)
360
  - name: input_vs_target_p_value
361
  dtype: float64
362
- role: quantitative_measure
363
  description: P-value for differential enrichment (from DESeq2)
364
  - name: input_vs_target_adj_p_value
365
  dtype: float64
366
- role: quantitative_measure
367
  description: Adjusted p-value (FDR-corrected) for differential enrichment (from DESeq2)
368
 
369
  - config_name: rna_seq
@@ -407,52 +284,84 @@ configs:
407
 
408
  This data is taken from the Supplement of
409
 
410
- [Mahendrawada, L., Warfield, L., Donczew, R. et al. Low overlap of transcription factor
411
- DNA binding and regulatory targets. Nature 642, 796–804 (2025).
412
- https://doi.org/10.1038/s41586-025-08916-0](https://doi.org/10.1038/s41586-025-08916-0)
413
 
414
- Please note that all column descriptions, except for those containing "locus_tag" and
415
- "symbol", are copy/pasted directly from the supplement or methods section of this paper.
416
 
417
- This repo provides 5 datasets:
418
 
419
- - **chec_mahendrawada_2025**: ChEC-seq transcription factor binding data with peak
420
- scores (original authors' processed data).
421
- - **chec_reprocess_2025**: ChEC-seq transcription factor binding data reprocessed with
422
- updated peak calling methodology.
423
- - **features_mahendrawada_2025**: Comprehensive genomic features and regulatory
424
- characteristics for yeast genes.
425
- - **rnaseq_mahendrawada_2025**: Nascent RNA-seq differential expression data following
426
- transcription factor depletion using 4TU metabolic labeling.
427
- - **reprocess_diffcontrol_5prime**: Comparing two different sets of control replicates,
428
- m2025 from the Mahendrawada 2025 paper, and h2021 from a previous paper from the Hahn
429
- lab.
430
 
431
- ## Usage
 
 
 
 
 
 
 
 
 
432
 
433
- The python package `tfbpapi` provides an interface to this data which eases
434
- examining the datasets, field definitions and other operations. You may also
435
- download the parquet datasets directly from hugging face by clicking on
436
- "Files and Versions", or by using the huggingface_cli and duckdb directly.
437
- In both cases, this provides a method of retrieving dataset and field definitions.
438
 
439
- ### `tfbpapi`
 
 
 
 
 
 
440
 
441
- After [installing
442
- tfbpapi](https://github.com/BrentLab/tfbpapi/?tab=readme-ov-file#installation), you can
443
- adapt this [tutorial](https://brentlab.github.io/tfbpapi/tutorials/hfqueryapi_tutorial/)
444
- in order to explore the contents of this repository.
445
 
446
- ### huggingface_cli/duckdb
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
447
 
448
- You can retrieves and displays the file paths for each configuration of
449
- the "BrentLab/mahendrawada_2025" dataset from Hugging Face Hub.
450
 
451
  ```python
452
  from huggingface_hub import ModelCard
453
  from pprint import pprint
454
 
455
- card = ModelCard.load("BrentLab/mahendrawada_2025", repo_type="dataset")
456
 
457
  # cast to dict
458
  card_dict = card.data.to_dict()
@@ -463,29 +372,45 @@ dataset_paths_dict = {d.get("config_name"): d.get("data_files")[0].get("path") f
463
  pprint(dataset_paths_dict)
464
  ```
465
 
466
- If you wish to pull the entire repo, due to its size you may need to use an
467
- [authentication token](https://huggingface.co/docs/hub/en/security-tokens).
468
- If you do not have one, try omitting the token related code below and see if
469
- it works. Else, create a token and provide it like so:
 
 
 
 
 
 
470
 
471
  ```python
472
  from huggingface_hub import snapshot_download
 
473
  import os
474
 
475
  repo_id = "BrentLab/mahendrawada_2025"
476
 
477
- hf_token = os.getenv("HF_TOKEN")
478
-
479
  # Download entire repo to local directory
480
  repo_path = snapshot_download(
481
  repo_id=repo_id,
482
- repo_type="dataset",
483
- token=hf_token
484
  )
485
 
486
- print(f"\n✓ Repository downloaded to: {repo_path}")
487
 
488
- # Construct path to the features_mahendrawada_2025.parquet parquet file
489
- parquet_path = os.path.join(repo_path, "features_mahendrawada_2025.parquet")
490
- print(f"Parquet file at: {parquet_path}")
491
- ```
 
 
 
 
 
 
 
 
 
 
 
 
 
174
  - control_source
175
  - condition
176
  - regulator_locus_tag
177
+ experimental_conditions:
178
+ # Mahendrawada et al 2025: "30 °C culture"
179
+ temperature_celsius: 30
180
+ cultivation_method: unspecified
181
+ growth_phase_at_harvest:
182
+ # Mahendrawada et al 2025: "A600 of ~1.0"
183
+ od600: 1.0
184
+ media:
185
+ # Mahendrawada et al 2025: "synthetic complete (SC) media"
186
+ name: synthetic_complete
187
+ carbon_source: unspecified
188
+ nitrogen_source:
189
+ - compound: yeast_nitrogen_base
190
+ # Mahendrawada et al 2025: 1.7 g/L (without ammonium sulfate or amino acids (BD Difco))
191
+ concentration_percent: 0.17
192
+ specifications:
193
+ - without_ammonium_sulfate
194
+ - without_amino_acids
195
+ - compound: ammonium_sulfate
196
+ # Mahendrawada et al 2025: 5 g/L
197
+ concentration_percent: 0.5
198
+ - compound: amino_acid_dropout_mix
199
+ # Mahendrawada et al 2025: 0.6 g/L
200
+ concentration_percent: 0.06
201
+ - compound: adenine_sulfate
202
+ # Mahendrawada et al 2025: 40 μg/ml = 0.04 g/L
203
+ concentration_percent: 0.004
204
+ - compound: uracil
205
+ # Mahendrawada et al 2025: 2 μg/ml = 0.002 g/L
206
+ concentration_percent: 0.0002
207
  data_files:
208
  - split: train
209
  path: reprocess_diffcontrol_5prime.parquet
 
213
  dtype: string
214
  description: Source identifier for the control dataset (m2025 or h2021)
215
  - name: condition
216
+ dtype: string
217
+ description: Experimental condition. 'standard' is YPD.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
218
  - name: regulator_locus_tag
219
  dtype: string
220
  description: Systematic gene name (ORF identifier) of the transcription factor
 
235
  description: Strand orientation (+ or -) of the promoter/target
236
  - name: input_vs_target_log2_fold_change
237
  dtype: float64
 
238
  description: Log2 fold change of TF-tagged sample vs control (from DESeq2)
239
  - name: input_vs_target_p_value
240
  dtype: float64
 
241
  description: P-value for differential enrichment (from DESeq2)
242
  - name: input_vs_target_adj_p_value
243
  dtype: float64
 
244
  description: Adjusted p-value (FDR-corrected) for differential enrichment (from DESeq2)
245
 
246
  - config_name: rna_seq
 
284
 
285
  This data is taken from the Supplement of
286
 
287
+ [Mahendrawada, L., Warfield, L., Donczew, R. et al. Low overlap of transcription factor DNA binding and regulatory targets. Nature 642, 796–804 (2025). https://doi.org/10.1038/s41586-025-08916-0](https://doi.org/10.1038/s41586-025-08916-0)
 
 
288
 
289
+ Please note that all column descriptions, except for those containing "locus_tag" and "symbol", are copy/pasted directly from the supplement or
290
+ methods section of this paper.
291
 
292
+ ## Dataset Details
293
 
294
+ This repo provides three datasets:
 
 
 
 
 
 
 
 
 
 
295
 
296
+ - **genomic_features**: These are the genomic features provided in Supplemental Table 2
297
+ - **chec_seq**: binding location data provided in Supplemental Table 3. the `peak_score` is defined to be the ChEC signal around peak center'
298
+ (sum of ChEC signal from -150 to +150 bp from peak summit) normalized to Drosophila spike-in control. How these scores are assigned to features
299
+ isn't well described in either the supplement or Methods section, but it is reasonable to believe that it is done with HOMER.
300
+ - **rna_seq**: Nascent RNA-seq differential expression data following transcription factor depletion using 4TU metabolic labeling filtered for
301
+ significantly affected genes (DESeq2, padj <0.1, FC >= 1.3)
302
+
303
+ ## Data Structure
304
+
305
+ This dataset provides the following three parquet files
306
 
307
+ ### ChEC-seq
 
 
 
 
308
 
309
+ | Field | Description |
310
+ |-----------------------|--------------------------------------------------------------------------------------------------------------------------------------------|
311
+ | `regulator_locus_tag` | Systematic gene name (ORF identifier) of the transcription factor |
312
+ | `regulator_symbol` | Standard gene symbol of the transcription factor |
313
+ | `target_locus_tag` | Systematic gene name (ORF identifier) of the target gene |
314
+ | `target_symbol` | Standard gene symbol of the target gene |
315
+ | `peak_score` | ChEC signal around peak center (sum of ChEC signal from -150 to +150 bp from peak summit) normalized to Drosophila spike-in control |
316
 
317
+ ### RNA-seq
 
 
 
318
 
319
+ | Field | Description |
320
+ |-----------------------|--------------------------------------------------------------------------------------------------------------------------------------------|
321
+ | `regulator_locus_tag` | Systematic gene name (ORF identifier) of the depleted transcription factor |
322
+ | `regulator_symbol` | Standard gene symbol of the depleted transcription factor |
323
+ | `target_locus_tag` | Systematic gene name (ORF identifier) of the differentially expressed target gene |
324
+ | `target_symbol` | Standard gene symbol of the differentially expressed target gene |
325
+ | `log2fc` | Log2 fold change (IAA/DMSO) for significantly affected genes (DESeq2, padj <0.1, FC >= 1.3) |
326
+
327
+ ### Features
328
+
329
+ | Field | Description |
330
+ |--------------------------|--------------------------------------------------------------------------------------------------------------------------------------------|
331
+ | `gene_id` | Systematic gene name (ORF identifier) from SGD (https://yeastgenome.org/) |
332
+ | `SGD_id` | Unique identifier for each gene from SGD (https://yeastgenome.org/) |
333
+ | `gene_name` | Common name of each gene |
334
+ | `chr` | Chromosome number corresponding to gene |
335
+ | `strand` | Strandedness of the gene (+ or -) |
336
+ | `start` | Start position of the ORF |
337
+ | `end` | End position of the ORF |
338
+ | `TSS` | Transcription start site based on Park et al., 2014 (doi:10.1093/nar/gkt1366) |
339
+ | `TATA_category` | TATA box classification from Donczew et al., 2020 using consensus TATAWAW (doi:10.7554/eLife.50109) |
340
+ | `expression` | Average signal normalized to gene length from Donczew et al., 2020 (doi:10.7554/eLife.50109) |
341
+ | `+1 nucleosome` | Position of +1 nucleosome from Chereji et al., 2018 (doi:10.1186/S13059-018-1398-0) |
342
+ | `-1 nucleosome` | Position of -1 nucleosome from Chereji et al., 2018 (doi:10.1186/S13059-018-1398-0) |
343
+ | `NDR Center` | Center of nucleosome depleted region from Chereji et al., 2018 (doi:10.1186/S13059-018-1398-0) |
344
+ | `NDR Width` | Width of nucleosome depletion region from Chereji et al., 2018 (doi:10.1186/S13059-018-1398-0) |
345
+ | `tail-dependence` | Tail classification based on Mediator tail dependence from Warfield L, Donczew R et al., 2022 (doi:10.1016/j.molcel.2022.09.016) |
346
+ | `coactivator` | Coactivator classification based on TFIID and/or SAGA dependence from Donczew et al., 2020 (doi:10.7554/eLife.50109) |
347
+ | `LCID_center` | Genes near boundaries of chromosomal interacting domains from Swygert et al., 2020 (doi:10.1016/j.molcel.2018.11.020) |
348
+ | `Rossi_classes` | Promoter classes from Rossi et al., 2021 (doi:10.1038/s41586-021-03314-8) |
349
+ | `RP_category` | Ribosomal protein (RP) and ribosomal biogenesis (RiBi) gene classification from Zencir et al., 2020 (doi:10.1093/NAR/GKAA852) |
350
+ | `binding_cluster` | Clusters from unsupervised K-means clustering using binary binding data of 178 transcription factors |
351
+ | `list_of_TFS_bound` | List of transcription factors bound to gene promoter (-400 to +200 bp from TSS; Homer peak calling) |
352
+ | `number_of_bound_tfs` | Number of transcription factors bound to each promoter |
353
+ | `locus_tag` | Systematic gene identifier from yeast_genome_resources dataset |
354
+ | `symbol` | Standard gene symbol from yeast_genome_resources dataset |
355
+
356
+ ## Usage
357
 
358
+ There are three parquet files in this repo. This is a way of getting that information programmatically
 
359
 
360
  ```python
361
  from huggingface_hub import ModelCard
362
  from pprint import pprint
363
 
364
+ card = ModelCard.load("BrentLab/hughes_2006", repo_type="dataset")
365
 
366
  # cast to dict
367
  card_dict = card.data.to_dict()
 
372
  pprint(dataset_paths_dict)
373
  ```
374
 
375
+ With the result
376
+
377
+ ```raw
378
+ {'chec_seq': 'chec_mahendrawada_2025.parquet',
379
+ 'genomic_features': 'features_mahendrawada_2025.parquet',
380
+ 'rna_seq': 'rnaseq_mahendrawada_2025.parquet'}
381
+ ```
382
+
383
+ I recommend using `huggingface_hub.snapshot_download` to pull the repository. After that, use your favorite
384
+ method of interacting with `parquet` files (eg duckDB, but you could use dplyr in R or pandas, too).
385
 
386
  ```python
387
  from huggingface_hub import snapshot_download
388
+ import duckdb
389
  import os
390
 
391
  repo_id = "BrentLab/mahendrawada_2025"
392
 
 
 
393
  # Download entire repo to local directory
394
  repo_path = snapshot_download(
395
  repo_id=repo_id,
396
+ repo_type="dataset"
 
397
  )
398
 
399
+ print(f"Repository downloaded to: {repo_path}")
400
 
401
+ # Construct path to the checseq parquet file
402
+ parquet_path = os.path.join(repo_path, "chec_mahendrawada_2025.parquet")
403
+ print(f"Parquet file at: {parquet_path}")
404
+
405
+ # Connect to DuckDB and query the parquet file
406
+ conn = duckdb.connect()
407
+
408
+ query = """
409
+ SELECT *
410
+ FROM read_parquet(?)
411
+ WHERE regulator_symbol = 'CST6'
412
+ """
413
+
414
+ result = conn.execute(query, [parquet_path]).fetchall()
415
+ print(f"Found {len(result)} rows for CST6")
416
+ ```