--- pretty_name: AncientProxy data tags: - ancient-dna - population-genetics - linkage-disequilibrium viewer: false --- # AncientProxy data Query-ready Parquet backing the [AncientProxy](https://github.com/) web tool, which finds ancient genotyped variants (AGVs) in linkage disequilibrium with a variant of interest. Files are laid out and sorted so a single query reads only the row groups it needs, rather than downloading a whole chromosome. Polars can read them directly over the network: ```python import polars as pl root = "hf://datasets//ancientproxy-data" pl.scan_parquet(f"{root}/ld/chr11.parquet").filter(pl.col("LDV_pos") == 63290453).collect() ``` ## Sources | | | |---|---| | Genotypes and sample annotation | Allen Ancient DNA Resource (AADR) **v54.1.p1**, released 6 March 2023 — | | Linkage disequilibrium | [TopLD](http://topld.genetics.unc.edu/) | | AGV list | AADR 1240K sites, lifted to hg38 | **Coordinate systems differ between sources.** The AGV list and all TopLD positions are **hg38**. The AADR VCFs these genotypes come from are **hg19**. The same variant therefore has two different positions — on chr22 none of the 16,367 AGV positions match their VCF position, and the typical offset there is ~396 kb. Variant IDs are the only reliable key between the two, which is what `genotypes/chr*/index.parquet` exists for. ## Layout | Path | Rows | Contents | |---|---|---| | `agvs.parquet` | 1.2M | `chr`, `pos` (hg38), `rsID`, `ref`, `alt` — the AGV list | | `rsid_index.parquet` | — | `rsID`, `chr`, `pos`; sorted by `rsID`, for ID lookups | | `samples.parquet` | — | `Genetic_ID` in genotype-string order | | `annotation.parquet` | — | AADR sample annotation (`Specimen_ID`, `Date_mean`, `Data_source`, `Location`, `Region`) | | `ld/chr{N}.parquet` | — | one row per AGV–variant pair, sorted by `LDV_pos` | | `genotypes/chr{N}/part-*.parquet` | — | `pos` (hg19), `rsID`, `gt`; sorted by `pos` | | `genotypes/chr{N}/index.parquet` | — | `rsID` → `pos`; sorted by `rsID` | ### LD columns `AGV_pos`, `AGV_ref`, `AGV_alt`, `AGV_rsID`, `LDV_pos`, `LDV_ref`, `LDV_alt`, `LDV_rsID`, then one typed column per TopLD ancestry group: `r2_{AFR,EAS,EUR,SAS}`, `dprime_{...}` (Float32) and `sign_{...}` (Int8: `1` or `-1`). Null means TopLD reports nothing for that group. Pairs below r² 0.2 are not present — that is TopLD's own floor. ### Genotype encoding `gt` is one character per sample, in `samples.parquet` order: | Code | Meaning | | Code | Meaning | |---|---|---|---|---| | `0` | diploid 0/0 | | `a` | haploid 0 | | `1` | diploid 0/1 | | `b` | haploid 1 | | `2` | diploid 1/1 | | `.` | missing | Phase is not retained. Note that most AADR sources are pseudo-haploid regardless of how the genotype is written, so allele counts should be derived from `Data_source`, not from the code alone: only `Shotgun.diploid` can call a true heterozygote. ## Citation Cite the AADR website and release version together with Mallick et al. 2024 (), the papers reporting the individual samples, and TopLD for the LD estimates. ## Licence Derived from the AADR and TopLD; see those resources for their terms before reuse.