File size: 2,063 Bytes
e014f4b
 
 
 
 
 
 
 
 
 
 
 
61866a7
e014f4b
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2506e10
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
e014f4b
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
---
license: mit
task_categories:
- tabular-regression
tags:
- biology
- genomics
pretty_name: "gReLU tutorial 3 dataset (Microglia scATAC-seq)"
size_categories:
- 10K<n<100K
---

# microglia-scatac-tutorial-data

## Dataset Summary
This dataset contains pseudobulk scATAC-seq data for human microglia, derived from the study by Corces et al. (2020) (https://www.nature.com/articles/s41588-020-00721-x). Genome coordinates correspond to the hg38 reference genome. This data is used in tutorial 3 of gReLU (https://github.com/Genentech/gReLU/blob/main/docs/tutorials/3_train.ipynb).

## Dataset Structure

The dataset is divided into two configurations: `peaks` and `fragments`.

### 1. Peaks Configuration (`peak_file.narrowPeak`)
Standard ENCODE narrowPeak format (tab-separated).
- `chrom`: Chromosome / Contig name.
- `start`: 0-based start position.
- `end`: End position.
- `name`: Peak identifier.
- `score`: Integer score for display.
- `strand`: Orientation.
- `signalValue`: Measurement of overall enrichment.
- `pValue`: Statistical significance (-log10).
- `qValue`: False discovery rate (-log10).
- `peak`: Point-source (summit) relative to start.

### 2. Fragments Configuration (`fragment_file.bed`)
Standard BED6 format representing individual ATAC-seq fragments.
- `chrom`: Chromosome.
- `start`: Start position.
- `end`: End position.
- `source`: Sequencing run identifier (e.g., `SRR11442505`).
- `score`: Placeholder (0).
- `strand`: Orientation.

## Usage

```python
from huggingface_hub import hf_hub_download
import grelu.io.bed
import pandas as pd

peak_path = hf_hub_download(
    repo_id="Genentech/microglia-scatac-tutorial-data",
    repo_type="dataset",
    filename="peak_file.narrowPeak"
)
peaks = grelu.io.bed.read_narrowpeak(peak_file)

frag_path = hf_hub_download(
    repo_id="Genentech/microglia-scatac-tutorial-data",
    repo_type="dataset",
    filename="fragment_file.bed"
)
fragments = pd.read_csv(frag_path, sep='\t', header=None, 
                        names=['chrom', 'start', 'end', 'source', 'score', 'strand'])

```