Update README.md
Browse files
README.md
CHANGED
|
@@ -8,15 +8,6 @@ tags:
|
|
| 8 |
pretty_name: "gReLU tutorial 3 dataset (Microglia scATAC-seq)"
|
| 9 |
size_categories:
|
| 10 |
- 10K<n<100K
|
| 11 |
-
configs:
|
| 12 |
-
- config_name: peaks
|
| 13 |
-
data_files:
|
| 14 |
-
- split: train
|
| 15 |
-
path: "peak_file.narrowPeak"
|
| 16 |
-
- config_name: fragments
|
| 17 |
-
data_files:
|
| 18 |
-
- split: train
|
| 19 |
-
path: "fragment_file.bed"
|
| 20 |
---
|
| 21 |
|
| 22 |
# microglia-scatac-tutorial-data
|
|
@@ -52,10 +43,24 @@ Standard BED6 format representing individual ATAC-seq fragments.
|
|
| 52 |
|
| 53 |
## Usage
|
| 54 |
|
| 55 |
-
### Loading Peaks
|
| 56 |
```python
|
| 57 |
-
from
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 58 |
|
| 59 |
-
dataset = load_dataset("Genentech/tutorial-3-data", "peaks", split="train", delimiter="\t")
|
| 60 |
-
dataset = load_dataset("Genentech/tutorial-3-data", "fragments", split="train", delimiter="\t")
|
| 61 |
```
|
|
|
|
| 8 |
pretty_name: "gReLU tutorial 3 dataset (Microglia scATAC-seq)"
|
| 9 |
size_categories:
|
| 10 |
- 10K<n<100K
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 11 |
---
|
| 12 |
|
| 13 |
# microglia-scatac-tutorial-data
|
|
|
|
| 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(
|
| 52 |
+
repo_id="Genentech/microglia-scatac-tutorial-data",
|
| 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 |
```
|