Metadata-Version: 2.4
Name: gnomancer
Version: 0.6.0
Summary: Local, private deep dive into a consumer raw DNA file (AncestryDNA, 23andMe, MyHeritage, FTDNA, LivingDNA, VCF): QC, haplogroups, traits, pharmacogenomics, one HTML report.
License: MIT
Project-URL: Homepage, https://github.com/codebase/gnomancer
Project-URL: Issues, https://github.com/codebase/gnomancer/issues
Keywords: dna,genetics,23andme,ancestrydna,haplogroup,pharmacogenomics,clinvar,mcp
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Topic :: Scientific/Engineering :: Bio-Informatics
Requires-Python: >=3.10
Description-Content-Type: text/markdown
License-File: LICENSE
License-File: NOTICE.md
Requires-Dist: snps>=2.9
Requires-Dist: pandas>=2.0
Requires-Dist: numpy>=1.24
Requires-Dist: reportlab>=4
Requires-Dist: lineage>=4.5
Requires-Dist: mcp>=2
Provides-Extra: dev
Requires-Dist: pytest>=8; extra == "dev"
Requires-Dist: pyflakes>=3; extra == "dev"
Provides-Extra: mcp
Dynamic: license-file

<p align="center"><img src="docs/og.jpg" width="100%" alt="gnomancer: your DNA, decoded on your own machine"></p>

<p align="center">
<a href="https://gnomancer.com">gnomancer.com</a> ·
<a href="https://gnomancer.com/demo/">synthetic demo</a> ·
<a href="https://gnomancer.com/get-your-data/">get your raw data</a> ·
<a href="https://gnomancer.com/install/">install</a> ·
<a href="https://pypi.org/project/gnomancer/">PyPI</a> ·
<a href="https://registry.modelcontextprotocol.io">MCP Registry</a> ·
<a href="https://discord.gg/aGjqzqErQH">Discord</a></p>

<p align="center">
<a href="https://pypi.org/project/gnomancer/"><img src="https://img.shields.io/pypi/v/gnomancer?color=7c3aed" alt="PyPI"></a>
<a href="https://github.com/codebase/gnomancer/actions/workflows/ci.yml"><img src="https://github.com/codebase/gnomancer/actions/workflows/ci.yml/badge.svg" alt="CI"></a>
<a href="LICENSE"><img src="https://img.shields.io/badge/license-MIT-7c3aed" alt="MIT"></a>
</p>

Take the raw file you already downloaded from **AncestryDNA, 23andMe, MyHeritage, FamilyTreeDNA or LivingDNA**, or a **whole-genome VCF**, and turn it into one readable report. Everything runs on your computer. Nothing is uploaded.

## Quick start

```bash
pipx install gnomancer      # Python 3.10+; Java 17+ for the mtDNA haplogroup and PharmCAT steps
gnomancer ~/Downloads/AncestryDNA.zip   # first run fetches the open-source tools and references once (~250 MB)
```

Open `AncestryDNA_analysis/REPORT.html`. No Python? `curl -fsSL https://gnomancer.com/install.sh | bash` sets everything up (macOS and Linux; Windows [via WSL](https://gnomancer.com/install/)).

![demo report](docs/demo-report.png)

## What you get

- **Plain language first.** An at-a-glance digest, then a narrative your own AI assistant can write from a prompt the run gives you.
- **Lineages.** Y haplogroup (yhaplo, plus Yleaf on current YFull/FTDNA/ISOGG trees) and mtDNA haplogroup (Haplogrep3), each with population context.
- **Traits and ancestry markers.** About 110 well-replicated sites: pigmentation, lactose, caffeine, bitter taste, blood group and more.
- **Health, carefully.** Carrier sites, common risk variants, a ClinVar scan of every typed site with plausibility scoring, and PharmCAT pharmacogenomics. All collapsed by default so nobody sees a result they didn't ask for.
- **Family mode.** `gnomancer family dad.zip mom.zip me.zip` shows shared DNA and the likely relationship for each pair, which lines you share, and which parent each of your alleles came from.
- **Stays current.** `gnomancer watch` re-checks ClinVar each month and tells you only what was reclassified at sites you carry.
- **Honest limits.** Every section says what the chip can and cannot tell you.

## Whole genomes

A sequencing VCF (or gVCF) is read natively: every variant, insertions and deletions included, each call gated on its read evidence.

```bash
gnomancer genome.vcf.gz                                               # about a minute
gnomancer genome.vcf.gz --sv sv.vcf.gz --cnv cnv.vcf.gz --bam genome.bam   # after `gnomancer setup --wgs`
```

- **From the VCF:** a ClinVar scan of all four to five million variants with the 84 ACMG actionable genes set apart, PharmCAT on every defining position, the mtDNA haplogroup from the full mitochondrial sequence, the Y haplogroup, and polygenic scores placed against 1000 Genomes.
- **From the vendor's SV and CNV files:** deletions and duplications checked against the genes where copy number matters.
- **From the BAM or CRAM:** repeat expansions (ExpansionHunter), CYP2D6 with deletions and duplications (PyPGx), HLA types (T1K), SMN1 copy number, low-level mitochondrial heteroplasmy, and a check in the reads of every position the VCF is silent about.

Details, timings and limits: [docs/whole-genome.md](docs/whole-genome.md).

## Use it from your AI assistant

gnomancer is also an MCP server. Connect it and ask "what does my report say about caffeine?"

```bash
claude mcp add gnomancer -- uvx gnomancer serve          # Claude Code
```

Any MCP client works the same way: the command is `uvx` with arguments `gnomancer serve`. For Claude Desktop, Cursor and LM Studio (for a local model), add it to the client's `mcpServers` JSON:

```json
{"mcpServers": {"gnomancer": {"command": "uvx", "args": ["gnomancer", "serve"]}}}
```

For Codex, add it to `~/.codex/config.toml`:

```toml
[mcp_servers.gnomancer]
command = "uvx"
args = ["gnomancer", "serve"]
```

Tested with Claude Code and with a generic MCP client; reports from other clients are welcome.

The assistant never gets the raw file. It gets the report's results, and can look up the genotype at a single site when a question needs it; the health tables are separate tools fetched only on request. The repo also works as a Claude plugin (`skills/gnomancer/SKILL.md`).

## Privacy

Your genotype file never leaves your machine. The only network traffic is the one-time download of public tools and references. The optional `--ai` flag sends the structured results (not the file) to the Anthropic API to write the narrative, and only when you ask. If you connect an AI assistant through the MCP server, it sees what it asks for: the report's results, and the genotype at any single site it looks up. With a cloud assistant those go to its provider; with a local model they stay on your machine.

## Not medical advice

A genotyping array reads about 0.02% of the genome at pre-chosen sites, and its calls at rare sites are wrong often enough that a clinical lab found [40% did not confirm](https://doi.org/10.1038/gim.2018.38). A consumer whole genome reads far more and far more reliably, but it is still research-grade data, not a clinical test. gnomancer tells you what the file says and how far to trust it. Confirm anything that matters with a clinical-grade test and a clinician or genetic counselor.

## More

[Discord community](https://discord.gg/aGjqzqErQH) · [CLI options](docs/cli.md) · [whole genomes](docs/whole-genome.md) · [vendors and quirks](docs/vendors.md) · [the marker panel](docs/marker-panel.md) · [tools under the hood](docs/tools.md) · [development](docs/development.md) · [MCP registry](docs/mcp-registry.md) · [contributing](CONTRIBUTING.md)

MIT licensed. The tools it downloads keep their own licenses; see [NOTICE.md](NOTICE.md) for credits.

<sub>mcp-name: com.gnomancer/gnomancer</sub>
