Lal Claude Opus 4.6 commited on
Commit
06d49b4
·
1 Parent(s): 2506e10

Add row counts, fix loading code bug

Browse files

- Add statistics table with row counts (peaks: 83K, fragments: 58M)
- Fix variable name bug in peaks loading (peak_file -> peak_path)
- Remove grelu.io.bed import (use pandas directly)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

Files changed (1) hide show
  1. README.md +29 -25
README.md CHANGED
@@ -17,35 +17,40 @@ This dataset contains pseudobulk scATAC-seq data for human microglia, derived fr
17
 
18
  ## Dataset Structure
19
 
20
- The dataset is divided into two configurations: `peaks` and `fragments`.
21
 
22
- ### 1. Peaks Configuration (`peak_file.narrowPeak`)
23
- Standard ENCODE narrowPeak format (tab-separated).
24
- - `chrom`: Chromosome / Contig name.
25
- - `start`: 0-based start position.
26
- - `end`: End position.
27
- - `name`: Peak identifier.
28
- - `score`: Integer score for display.
29
- - `strand`: Orientation.
30
- - `signalValue`: Measurement of overall enrichment.
31
- - `pValue`: Statistical significance (-log10).
32
- - `qValue`: False discovery rate (-log10).
33
- - `peak`: Point-source (summit) relative to start.
34
 
35
- ### 2. Fragments Configuration (`fragment_file.bed`)
 
 
 
 
 
 
 
 
 
 
 
 
 
36
  Standard BED6 format representing individual ATAC-seq fragments.
37
- - `chrom`: Chromosome.
38
- - `start`: Start position.
39
- - `end`: End position.
40
- - `source`: Sequencing run identifier (e.g., `SRR11442505`).
41
- - `score`: Placeholder (0).
42
- - `strand`: Orientation.
43
 
44
  ## Usage
45
 
46
  ```python
47
  from huggingface_hub import hf_hub_download
48
- import grelu.io.bed
49
  import pandas as pd
50
 
51
  peak_path = hf_hub_download(
@@ -53,14 +58,13 @@ peak_path = hf_hub_download(
53
  repo_type="dataset",
54
  filename="peak_file.narrowPeak"
55
  )
56
- peaks = grelu.io.bed.read_narrowpeak(peak_file)
57
 
58
  frag_path = hf_hub_download(
59
  repo_id="Genentech/microglia-scatac-tutorial-data",
60
  repo_type="dataset",
61
  filename="fragment_file.bed"
62
  )
63
- fragments = pd.read_csv(frag_path, sep='\t', header=None,
64
  names=['chrom', 'start', 'end', 'source', 'score', 'strand'])
65
-
66
- ```
 
17
 
18
  ## Dataset Structure
19
 
20
+ The dataset is divided into two files: peaks and fragments.
21
 
22
+ ### Statistics
23
+ | File | Rows | Description |
24
+ |------|------|-------------|
25
+ | `peak_file.narrowPeak` | 83,320 | Called ATAC-seq peaks |
26
+ | `fragment_file.bed` | 57,919,016 | Individual ATAC-seq fragments |
 
 
 
 
 
 
 
27
 
28
+ ### 1. Peaks file (`peak_file.narrowPeak`)
29
+ Standard ENCODE narrowPeak format (tab-separated, no header).
30
+ - `chrom`: Chromosome / Contig name
31
+ - `start`: 0-based start position
32
+ - `end`: End position
33
+ - `name`: Peak identifier
34
+ - `score`: Integer score for display
35
+ - `strand`: Orientation
36
+ - `signalValue`: Measurement of overall enrichment
37
+ - `pValue`: Statistical significance (-log10)
38
+ - `qValue`: False discovery rate (-log10)
39
+ - `peak`: Point-source (summit) relative to start
40
+
41
+ ### 2. Fragments file (`fragment_file.bed`)
42
  Standard BED6 format representing individual ATAC-seq fragments.
43
+ - `chrom`: Chromosome
44
+ - `start`: Start position
45
+ - `end`: End position
46
+ - `source`: Sequencing run identifier (e.g., `SRR11442505`)
47
+ - `score`: Placeholder (0)
48
+ - `strand`: Orientation
49
 
50
  ## Usage
51
 
52
  ```python
53
  from huggingface_hub import hf_hub_download
 
54
  import pandas as pd
55
 
56
  peak_path = hf_hub_download(
 
58
  repo_type="dataset",
59
  filename="peak_file.narrowPeak"
60
  )
61
+ peaks = pd.read_csv(peak_path, sep='\t', header=None)
62
 
63
  frag_path = hf_hub_download(
64
  repo_id="Genentech/microglia-scatac-tutorial-data",
65
  repo_type="dataset",
66
  filename="fragment_file.bed"
67
  )
68
+ fragments = pd.read_csv(frag_path, sep='\t', header=None,
69
  names=['chrom', 'start', 'end', 'source', 'score', 'strand'])
70
+ ```