Upload README.md with huggingface_hub
Browse files
README.md
ADDED
|
@@ -0,0 +1,69 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: mit
|
| 3 |
+
tags:
|
| 4 |
+
- dna
|
| 5 |
+
- genomics
|
| 6 |
+
- tokenization
|
| 7 |
+
---
|
| 8 |
+
|
| 9 |
+
# EvoLen — token analysis input data
|
| 10 |
+
|
| 11 |
+
Derived interval files needed to reproduce the token analyses in Section 4 of
|
| 12 |
+
*EvoLen: Evolution-Guided Tokenization for DNA Language Model*
|
| 13 |
+
([arXiv:2604.08698](https://arxiv.org/abs/2604.08698)).
|
| 14 |
+
|
| 15 |
+
Analysis code lives in the [`evolen` repository](https://github.com/mtapia-pacheco/evolen)
|
| 16 |
+
under `analysis/`.
|
| 17 |
+
|
| 18 |
+
## Contents
|
| 19 |
+
|
| 20 |
+
```text
|
| 21 |
+
region_beds/
|
| 22 |
+
conservation_crossed/ regions crossed with conservation category
|
| 23 |
+
{promoter,enhancer,exon,intron}_{conserved,neutral,accelerated}.bed
|
| 24 |
+
conservation_{conserved,neutral,accelerated}.bed
|
| 25 |
+
simple/ the same four regions without the conservation split
|
| 26 |
+
ccre_classes/ ENCODE SCREEN cCRE classes as BED, one file per class
|
| 27 |
+
CA, CA-CTCF, CA-H3K4me3, CA-TF, PLS, TF, dELS, pELS
|
| 28 |
+
*_balanced.bed are downsampled to the smallest class (26,102)
|
| 29 |
+
motifs/motifs.txt JASPAR 2024 vertebrate motifs, thresholded to consensus
|
| 30 |
+
sequences (PWM positions at 0.5, wildcards trimmed, <= 12 bp)
|
| 31 |
+
```
|
| 32 |
+
|
| 33 |
+
`region_beds/conservation_crossed/` backs the P4 enrichment analysis (Figure 3);
|
| 34 |
+
`ccre_classes/` backs the Multi-SCREEN task construction; `motifs/` backs the P1 motif
|
| 35 |
+
preservation analysis (Figure 2A).
|
| 36 |
+
|
| 37 |
+
## Not included — fetch these yourself
|
| 38 |
+
|
| 39 |
+
Two inputs are public reference data and are not mirrored here.
|
| 40 |
+
|
| 41 |
+
**hg38 reference genome** (~3.3 GB):
|
| 42 |
+
|
| 43 |
+
```bash
|
| 44 |
+
wget https://hgdownload.soe.ucsc.edu/goldenPath/hg38/bigZips/hg38.fa.gz
|
| 45 |
+
gunzip hg38.fa.gz && samtools faidx hg38.fa
|
| 46 |
+
```
|
| 47 |
+
|
| 48 |
+
**phyloP conservation scores.** The analysis reads per-chromosome bedGraph, which is a
|
| 49 |
+
mechanical conversion of the public bigWig (~70 GB expanded, so it is regenerated rather
|
| 50 |
+
than distributed):
|
| 51 |
+
|
| 52 |
+
```bash
|
| 53 |
+
wget https://hgdownload.soe.ucsc.edu/goldenPath/hg38/phyloP100way/hg38.phyloP100way.bw
|
| 54 |
+
# convert per chromosome with UCSC bigWigToBedGraph
|
| 55 |
+
bigWigToBedGraph -chrom=chr1 hg38.phyloP100way.bw chr1.bedGraph
|
| 56 |
+
```
|
| 57 |
+
|
| 58 |
+
Point `process_bedgraph_all.py --bedgraph_dir` at the directory of resulting
|
| 59 |
+
`.bedGraph` files to produce the `{chrom}_phylop_segment.csv` files that drive both
|
| 60 |
+
tokenizer construction and the phyloP analyses.
|
| 61 |
+
|
| 62 |
+
## Usage
|
| 63 |
+
|
| 64 |
+
```bash
|
| 65 |
+
export EVOLEN_ROOT=/path/to/your/data_root # analysis scripts resolve paths from this
|
| 66 |
+
```
|
| 67 |
+
|
| 68 |
+
Related: [token_evaluation](https://huggingface.co/datasets/nancyH/token_evaluation)
|
| 69 |
+
hosts the phyloP analysis *outputs* (per-token aggregates used for Figure 2C).
|