Metadata-Version: 2.5
Name: altar-legnet
Version: 0.5.0
Summary: LegNet model binding for large-scale Altar MPRA variant scoring
Project-URL: Documentation, https://kundajelab.github.io/altar/
Author: Riya Sinha
License-Expression: MIT
License-File: LICENSE
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Science/Research
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Topic :: Scientific/Engineering :: Bio-Informatics
Classifier: Typing :: Typed
Requires-Python: >=3.12
Requires-Dist: altar<0.6,>=0.5.0
Provides-Extra: test
Requires-Dist: pytest-asyncio>=0.24; extra == 'test'
Requires-Dist: pytest>=8; extra == 'test'
Description-Content-Type: text/markdown

# altar-legnet

Adds human [LegNet](https://github.com/autosome-ru/human_legnet) to Altar: predicted effects of human SNVs (hg38)
on lentiMPRA regulatory activity in one cell type, run in a container on a CPU.

Validation: Upstream parity (CPU); it reproduces the published WTC11 training oligo exactly.

```bash
pip install altar-legnet
```

Fetch the WTC11 example checkpoint (10 MB) and the hg38 genome, which LegNet reads:

```bash
altar resources fetch legnet/wtc11
altar resources fetch hg38
```

A run spec names them:

```toml
[variants]
path = "cohort.tsv"
reference = "hg38"

[models.legnet-wtc11]
resources = "legnet/wtc11"
```

`altar resources legnet` lists the registry this package installs.

`altar models legnet` lists the columns and configuration fields. The
[quickstart](https://kundajelab.github.io/altar/quickstart/) scores a VCF with LegNet on a CPU from a fresh install.

Documentation: https://kundajelab.github.io/altar/integrations/legnet/

## Cite and terms

- Human LegNet: Agarwal V, et al. Nature 639, 411–420 (2025),
  [doi:10.1038/s41586-024-08430-9](https://doi.org/10.1038/s41586-024-08430-9).
- LegNet: Penzar D, et al. Bioinformatics 39 (2023),
  [doi:10.1093/bioinformatics/btad457](https://doi.org/10.1093/bioinformatics/btad457).
- The human LegNet code and its example checkpoint are MIT-licensed.

## Licence

MIT. See [LICENSE](https://github.com/kundajelab/altar/blob/main/bindings/legnet/LICENSE).
