Datasets:
Upload folder using huggingface_hub
Browse files- .claude/settings.local.json +7 -0
- README.md +163 -0
- personalized/test.parquet +3 -0
- personalized/train.parquet +3 -0
- personalized/valid.parquet +3 -0
- reference/test.parquet +3 -0
- reference/train.parquet +3 -0
- reference/valid.parquet +3 -0
.claude/settings.local.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"permissions": {
|
| 3 |
+
"allow": [
|
| 4 |
+
"Read(//Users/cbreen/github/**)"
|
| 5 |
+
]
|
| 6 |
+
}
|
| 7 |
+
}
|
README.md
ADDED
|
@@ -0,0 +1,163 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
configs:
|
| 3 |
+
- config_name: reference
|
| 4 |
+
data_files:
|
| 5 |
+
- split: train
|
| 6 |
+
path: reference/train.parquet
|
| 7 |
+
- split: valid
|
| 8 |
+
path: reference/valid.parquet
|
| 9 |
+
- split: test
|
| 10 |
+
path: reference/test.parquet
|
| 11 |
+
- config_name: personalized
|
| 12 |
+
data_files:
|
| 13 |
+
- split: train
|
| 14 |
+
path: personalized/train.parquet
|
| 15 |
+
- split: valid
|
| 16 |
+
path: personalized/valid.parquet
|
| 17 |
+
- split: test
|
| 18 |
+
path: personalized/test.parquet
|
| 19 |
+
license: cc-by-4.0
|
| 20 |
+
task_categories:
|
| 21 |
+
- tabular-regression
|
| 22 |
+
tags:
|
| 23 |
+
- biology
|
| 24 |
+
- genomics
|
| 25 |
+
- dna-methylation
|
| 26 |
+
- epigenetics
|
| 27 |
+
- sequence-to-function
|
| 28 |
+
- collaborative-cross
|
| 29 |
+
- mouse
|
| 30 |
+
size_categories:
|
| 31 |
+
- 10M<n<100M
|
| 32 |
+
---
|
| 33 |
+
|
| 34 |
+
# S2F Mouse Methylation Dataset
|
| 35 |
+
|
| 36 |
+
Sequence-to-function dataset for predicting CpG DNA methylation from genomic sequence in nine genetically diverse Collaborative Cross mouse founder strains.
|
| 37 |
+
|
| 38 |
+
## Dataset Description
|
| 39 |
+
|
| 40 |
+
This dataset contains approximately 20 million sequence-methylation examples derived from reduced representation bisulfite sequencing (RRBS) data from nine Collaborative Cross founder strains. Each example pairs a 2,000-nucleotide DNA sequence window centered at a CpG dinucleotide with the corresponding methylation proportion (averaged across three biological replicates per strain).
|
| 41 |
+
|
| 42 |
+
Two encoding configurations are provided:
|
| 43 |
+
|
| 44 |
+
- **`reference`**: All strains use the mm10 reference genome sequence, producing identical input sequences regardless of strain identity.
|
| 45 |
+
- **`personalized`**: Strain-specific genetic variants are incorporated using [g2gtools](https://github.com/churchill-lab/g2gtools) and IUPAC ambiguity codes. For example, a heterozygous A/T SNP is represented by IUPAC symbol `W` and encoded as `[0.5, 0, 0, 0.5]`.
|
| 46 |
+
|
| 47 |
+
## Usage
|
| 48 |
+
|
| 49 |
+
```python
|
| 50 |
+
from datasets import load_dataset
|
| 51 |
+
|
| 52 |
+
# Load reference encoding
|
| 53 |
+
ds = load_dataset("cbreenmachine/s2f-mouse-methylation", "reference", split="train")
|
| 54 |
+
|
| 55 |
+
# Load personalized encoding
|
| 56 |
+
ds = load_dataset("cbreenmachine/s2f-mouse-methylation", "personalized", split="train")
|
| 57 |
+
```
|
| 58 |
+
|
| 59 |
+
## Column Descriptions
|
| 60 |
+
|
| 61 |
+
| Column | Type | Description |
|
| 62 |
+
|--------|------|-------------|
|
| 63 |
+
| `feature` | string | 2,000-nucleotide DNA sequence centered at a CpG site. Reference config uses standard nucleotides (A, C, G, T, N). Personalized config additionally uses IUPAC ambiguity codes (M, R, W, S, K, Y, B, D, H, V) to represent strain-specific variants. |
|
| 64 |
+
| `methylation` | float | Mean methylation proportion across three biological replicates (range 0--1). |
|
| 65 |
+
| `subject` | string | Mouse strain identifier: 129S1_SvImJ, A_J, C57BL_6, CAST_EiJ, DBA_2J, NOD_ShiLtJ, NZO_HlLtJ, PWK_PhJ, or WSB_EiJ. |
|
| 66 |
+
| `chrom` | string | Chromosome number (1--19). |
|
| 67 |
+
| `name` | string | Locus identifier in mm10 reference coordinates, enabling cross-strain comparisons at the same genomic position. |
|
| 68 |
+
|
| 69 |
+
## Data Splits
|
| 70 |
+
|
| 71 |
+
| Split | Chromosomes | Purpose |
|
| 72 |
+
|-------|-------------|---------|
|
| 73 |
+
| `train` | 1--12 | Model training |
|
| 74 |
+
| `valid` | 14 | Validation / early stopping |
|
| 75 |
+
| `test` | 15--19 | Held-out evaluation |
|
| 76 |
+
|
| 77 |
+
All nine strains are represented in every split.
|
| 78 |
+
|
| 79 |
+
## Mouse Strains
|
| 80 |
+
|
| 81 |
+
Nine Collaborative Cross founder strains spanning three *Mus musculus* subspecies:
|
| 82 |
+
|
| 83 |
+
| Strain | Subspecies | Notes |
|
| 84 |
+
|--------|-----------|-------|
|
| 85 |
+
| C57BL/6J | *M. m. domesticus* | Reference strain (mm10 genome) |
|
| 86 |
+
| 129S1/SvImJ | *M. m. domesticus* | |
|
| 87 |
+
| A/J | *M. m. domesticus* | |
|
| 88 |
+
| DBA/2J | *M. m. domesticus* | |
|
| 89 |
+
| NOD/ShiLtJ | *M. m. domesticus* | |
|
| 90 |
+
| NZO/HlLtJ | *M. m. domesticus* | |
|
| 91 |
+
| CAST/EiJ | *M. m. castaneus* | Wild-derived |
|
| 92 |
+
| PWK/PhJ | *M. m. musculus* | Wild-derived |
|
| 93 |
+
| WSB/EiJ | *M. m. domesticus* | Wild-derived |
|
| 94 |
+
|
| 95 |
+
## Source Data
|
| 96 |
+
|
| 97 |
+
- **Methylation data**: Tyler et al. (2023). Reduced representation bisulfite sequencing of hepatocyte DNA from 12-week-old female mice. Three biological replicates per strain, averaged.
|
| 98 |
+
- **Genetic variants**: Svenson et al. (2012). SNPs and indels for Collaborative Cross founder strains.
|
| 99 |
+
- **Reference genome**: GRCm38/mm10.
|
| 100 |
+
|
| 101 |
+
## Associated Paper
|
| 102 |
+
|
| 103 |
+
> Breen C, Keles S. Variant-Aware Sequence Encoding Does Not Improve Deep Learning Prediction of DNA Methylation in Genetically Diverse Mice. (2026).
|
| 104 |
+
|
| 105 |
+
## Citation
|
| 106 |
+
|
| 107 |
+
```bibtex
|
| 108 |
+
@article{breen2026variant,
|
| 109 |
+
title={Variant-Aware Sequence Encoding Does Not Improve Deep Learning Prediction of DNA Methylation in Genetically Diverse Mice},
|
| 110 |
+
author={Breen, Coleman and Kele{\c{s}}, S{\"u}nd{\"u}z},
|
| 111 |
+
year={2026}
|
| 112 |
+
}
|
| 113 |
+
```
|
| 114 |
+
|
| 115 |
+
## License
|
| 116 |
+
|
| 117 |
+
CC-BY-4.0
|
| 118 |
+
|
| 119 |
+
## Repository Structure
|
| 120 |
+
|
| 121 |
+
```
|
| 122 |
+
s2f-mouse-methylation/
|
| 123 |
+
├── README.md
|
| 124 |
+
├── reference/
|
| 125 |
+
│ ├── train.parquet
|
| 126 |
+
│ ├── valid.parquet
|
| 127 |
+
│ └── test.parquet
|
| 128 |
+
└── personalized/
|
| 129 |
+
├── train.parquet
|
| 130 |
+
├── valid.parquet
|
| 131 |
+
└── test.parquet
|
| 132 |
+
```
|
| 133 |
+
|
| 134 |
+
## Uploading the Data
|
| 135 |
+
|
| 136 |
+
The parquet files are located on the training server at:
|
| 137 |
+
```
|
| 138 |
+
/storage10/cebreen/S2M-data-v3/data_derived/mouse/s2m_input/reference_merged/{train,valid,test}.parquet
|
| 139 |
+
/storage10/cebreen/S2M-data-v3/data_derived/mouse/s2m_input/personal_merged/{train,valid,test}.parquet
|
| 140 |
+
```
|
| 141 |
+
|
| 142 |
+
To populate this repo:
|
| 143 |
+
|
| 144 |
+
```bash
|
| 145 |
+
# Create directory structure
|
| 146 |
+
mkdir -p reference personalized
|
| 147 |
+
|
| 148 |
+
# Copy from server (adjust hostname as needed)
|
| 149 |
+
scp server:/storage10/cebreen/S2M-data-v3/data_derived/mouse/s2m_input/reference_merged/{train,valid,test}.parquet reference/
|
| 150 |
+
scp server:/storage10/cebreen/S2M-data-v3/data_derived/mouse/s2m_input/personal_merged/{train,valid,test}.parquet personalized/
|
| 151 |
+
|
| 152 |
+
# Initialize as HuggingFace dataset repo
|
| 153 |
+
huggingface-cli repo create s2f-mouse-methylation --type dataset
|
| 154 |
+
git init
|
| 155 |
+
git remote add origin https://huggingface.co/datasets/cbreenmachine/s2f-mouse-methylation
|
| 156 |
+
git lfs install
|
| 157 |
+
git lfs track "*.parquet"
|
| 158 |
+
git add .gitattributes README.md reference/ personalized/
|
| 159 |
+
git commit -m "Initial upload: reference and personalized encodings"
|
| 160 |
+
git push -u origin main
|
| 161 |
+
```
|
| 162 |
+
|
| 163 |
+
Note: Files >10MB are automatically handled by Git LFS on HuggingFace.
|
personalized/test.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:808e2fcbcde3aed1ab90bd4a54e308821992de9a8b08c6c9735498477695fa2a
|
| 3 |
+
size 1484697203
|
personalized/train.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:5c3fc42ac571e724d8f60449bc0a892125630a6303ccdb6ab9da747f2befb5d3
|
| 3 |
+
size 5810569652
|
personalized/valid.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:133f88aae170c843fbd2aa92be9ddc7a224661e2bfc98c9941faf6a753544166
|
| 3 |
+
size 308203164
|
reference/test.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:89b3ce864924d27940c2f18266be28d926d66ab200c0a63908a585e40b295af2
|
| 3 |
+
size 1484618580
|
reference/train.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a9142e6cfd016f50dde9059476d15b9bf517cf318f9dca52aaa5f88112b9385f
|
| 3 |
+
size 5810321945
|
reference/valid.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:d2010319c9a23052147e5efd8da17044c3627382c5bfa825645bb42efaf197ab
|
| 3 |
+
size 307966774
|