Update README.md
Browse files
README.md
CHANGED
|
@@ -1,3 +1,120 @@
|
|
| 1 |
-
---
|
| 2 |
-
license: mit
|
| 3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: mit
|
| 3 |
+
tags:
|
| 4 |
+
- transcription-factor
|
| 5 |
+
- binding
|
| 6 |
+
- chipexo
|
| 7 |
+
- genomics
|
| 8 |
+
- biology
|
| 9 |
+
pretty_name: Rossi ChIP-exo 2021
|
| 10 |
+
configs:
|
| 11 |
+
- config_name: metadata
|
| 12 |
+
description: Metadata describing the tagged regulator in each experiment
|
| 13 |
+
default: true
|
| 14 |
+
data_files:
|
| 15 |
+
- split: train
|
| 16 |
+
path: rossi_2021_metadata.parquet
|
| 17 |
+
dataset_info:
|
| 18 |
+
features:
|
| 19 |
+
- name: regulator_locus_tag
|
| 20 |
+
dtype: string
|
| 21 |
+
description: Systematic gene name (ORF identifier) of the transcription factor
|
| 22 |
+
- name: regulator_symbol
|
| 23 |
+
dtype: string
|
| 24 |
+
description: Standard gene symbol of the transcription factor
|
| 25 |
+
- name: run_accession
|
| 26 |
+
dtype: string
|
| 27 |
+
description: GEO run accession identifier for the sample
|
| 28 |
+
- name: yeastepigenome_id
|
| 29 |
+
dtype: string
|
| 30 |
+
description: Sample identifier used by yeastepigenome.org
|
| 31 |
+
- config_name: genome_map
|
| 32 |
+
description: ChIP-exo 5' tag coverage data partitioned by sample accession
|
| 33 |
+
data_files:
|
| 34 |
+
- split: train
|
| 35 |
+
path: genome_map/*/*.parquet
|
| 36 |
+
dataset_info:
|
| 37 |
+
features:
|
| 38 |
+
- name: chr
|
| 39 |
+
dtype: string
|
| 40 |
+
description: Chromosome name (e.g., chrI, chrII, etc.)
|
| 41 |
+
- name: pos
|
| 42 |
+
dtype: int32
|
| 43 |
+
description: Genomic position of the 5' tag
|
| 44 |
+
- name: pileup
|
| 45 |
+
dtype: int32
|
| 46 |
+
description: Depth of coverage (number of 5' tags) at this genomic position
|
| 47 |
+
language:
|
| 48 |
+
- en
|
| 49 |
+
---
|
| 50 |
+
|
| 51 |
+
# Rossi 2021
|
| 52 |
+
|
| 53 |
+
This data is gathered from [yeastepigenome.org](https://yeastepigenome.org/). This work was published in
|
| 54 |
+
|
| 55 |
+
[Rossi MJ, Kuntala PK, Lai WKM, Yamada N, Badjatia N, Mittal C, Kuzu G, Bocklund K, Farrell NP, Blanda TR, Mairose JD, Basting AV, Mistretta KS, Rocco DJ, Perkinson ES, Kellogg GD, Mahony S, Pugh BF. A high-resolution protein architecture of the budding yeast genome. Nature. 2021 Apr;592(7853):309-314. doi: 10.1038/s41586-021-03314-8. Epub 2021 Mar 10. PMID: 33692541; PMCID: PMC8035251.](https://doi.org/10.1038/s41586-021-03314-8)
|
| 56 |
+
|
| 57 |
+
## Dataset details
|
| 58 |
+
|
| 59 |
+
`genome_map` is fully reprocessed data from the sequence files. I used the nf-core/chipseq pipeline, details for which can be found in `scripts/`. With
|
| 60 |
+
those bams, I filtered the reads using `samtools` and the same settings specified in Rossi et al 2021, and then counted 5' ends using bedtools. See
|
| 61 |
+
`scripts/count_tags.sh`.
|
| 62 |
+
|
| 63 |
+
## Data Structure
|
| 64 |
+
|
| 65 |
+
### Metadata
|
| 66 |
+
|
| 67 |
+
| Field | Description |
|
| 68 |
+
|-----------------------|-------------------------------------------------------------------|
|
| 69 |
+
| `regulator_locus_tag` | Systematic gene name (ORF identifier) of the transcription factor |
|
| 70 |
+
| `regulator_symbol` | Standard gene symbol of the transcription factor |
|
| 71 |
+
| `run_accession` | GEO run accession identifier for the sample |
|
| 72 |
+
| `yeastepigenome_id` | Sample identifier used by yeastepigenome.org |
|
| 73 |
+
|
| 74 |
+
### Genome Map
|
| 75 |
+
|
| 76 |
+
| Field | Description |
|
| 77 |
+
|----------|----------------------------------------------------------------|
|
| 78 |
+
| `chr` | Chromosome name, ucsc (e.g., chrI, chrII, etc.) |
|
| 79 |
+
| `pos` | Genomic position of the 5' tag |
|
| 80 |
+
| `pileup` | Depth of coverage (number of 5' tags) at this genomic position |
|
| 81 |
+
|
| 82 |
+
## Usage
|
| 83 |
+
|
| 84 |
+
The entire repository is large. It may be preferable to only retrieve specific files or partitions.
|
| 85 |
+
You can use the metadata files to choose which files to pull.
|
| 86 |
+
|
| 87 |
+
```python
|
| 88 |
+
from huggingface_hub import snapshot_download
|
| 89 |
+
import duckdb
|
| 90 |
+
import os
|
| 91 |
+
|
| 92 |
+
# Download only the metadata first
|
| 93 |
+
repo_path = snapshot_download(
|
| 94 |
+
repo_id="BrentLab/rossi_2021",
|
| 95 |
+
repo_type="dataset",
|
| 96 |
+
allow_patterns="rossi_2021_metadata.parquet"
|
| 97 |
+
)
|
| 98 |
+
|
| 99 |
+
dataset_path = os.path.join(repo_path, "rossi_2021_metadata.parquet")
|
| 100 |
+
conn = duckdb.connect()
|
| 101 |
+
meta_res = conn.execute("SELECT * FROM read_parquet(?) LIMIT 10", [dataset_path]).df()
|
| 102 |
+
print(meta_res)
|
| 103 |
+
```
|
| 104 |
+
|
| 105 |
+
We might choose to take a look at the file with accession SRR11466106:
|
| 106 |
+
|
| 107 |
+
```python
|
| 108 |
+
# Download only a specific sample's genome coverage data
|
| 109 |
+
repo_path = snapshot_download(
|
| 110 |
+
repo_id="BrentLab/rossi_2021",
|
| 111 |
+
repo_type="dataset",
|
| 112 |
+
allow_patterns="genome_map/accession=SRR11466106/*.parquet"
|
| 113 |
+
)
|
| 114 |
+
|
| 115 |
+
# Query the specific partition
|
| 116 |
+
dataset_path = os.path.join(repo_path, "genome_map")
|
| 117 |
+
result = conn.execute("SELECT * FROM read_parquet(?) LIMIT 10",
|
| 118 |
+
[f"{dataset_path}/**/*.parquet"]).df()
|
| 119 |
+
print(result)
|
| 120 |
+
```
|