CATv1-WebGPU / README.md
okunator's picture
Simplify model card: contents, usage, shapes and license
72f0145 verified
|
Raw History Blame Contribute Delete
2.07 kB
---
license: cc-by-4.0
base_model: programmable-genomics/CATv1
pipeline_tag: other
tags:
- genomics
- dna
- sequence-to-function
- cherimoya
- webgpu
- wgsl
- float32
- genome-spy
---
# CATv1 WebGPU
7,590 model weight files for predicting chromatin accessibility from DNA (ATAC-seq and DNase-seq).
There are five models (folds) for each of 1,518 experiments.
Original models: [Jacob Schreiber and the Programmable Genomics Laboratory](https://huggingface.co/programmable-genomics/CATv1), using ENCODE data.
These `.bin` files need GenomeSpy's **`cherimoya-wgsl@1` WebGPU runner**.
The runner code is not included here. For ONNX Runtime, use [CATv1-ONNX](https://huggingface.co/genome-spy/CATv1-ONNX).
## Main files
```text
models/<experiment>/fold_<n>/*.bin
manifest.json # available models and file names
source/ # original model descriptions and results
LICENSE
```
## Inputs and outputs
DNA uses four float32 channels in **A, C, G, T** order: 1 for the matching base,
0 otherwise. Unknown bases use four zeros. The runner processes one sequence at a time.
| Name | Shape | Meaning |
| --- | --- | --- |
| `sequence` | `[1, 4, 2114]` | DNA input |
| `profile_logits` | `[1, 1, 1000]` | Scores for each output position |
| `log_counts` | `[1, 1]` | log(1 + predicted total count) |
The 1,000 predicted bases start 557 bases into the input sequence (human hg38).
## Download a model
Install `huggingface_hub`. Choose a model from `manifest.json`; this example
downloads the first one for use with the runner above.
```python
import json
from pathlib import Path
from huggingface_hub import HfApi, hf_hub_download
repo = "genome-spy/CATv1-WebGPU"
revision = HfApi().model_info(repo).sha
listing = hf_hub_download(repo, "manifest.json", revision=revision)
model = json.loads(Path(listing).read_text())["models"][0]
weights = hf_hub_download(repo, model["artifact"]["path"], revision=revision)
print(weights)
```
## License
Model weights: **CC BY 4.0**. See [LICENSE](LICENSE). Original model details
and citations are kept in `source/`.