# HPRC Release 2 IMPG All-vs-All Haplotype Alignments (PAF/TPA)

## Facts

- Provider: Human Pangenome Reference Consortium (HPRC) / pangenome team
- License: CC0-1.0 (https://registry.opendata.aws/hpgp-data/)
- Stored at: Amazon S3, s3://human-pangenomics/pangenomes/freeze/release2/impg (us-west-2)
- Access: public, readable without an account
- Category: Genomics & Bioinformatics
- Source: https://github.com/human-pangenomics/hpp_pangenome_resources
- Page: https://scigantic.com/archive/eba07515-0155-56eb-abcb-9bed7a9b9f9b
- Keywords: Genomics & Bioinformatics, AWS Open Data

## About

The all-vs-all whole-genome alignment that underlies the HPRC Release 2 PGGB graphs, published separately for IMPG (implicit pangenome graph), a tool that queries homologous regions across many assemblies by projecting through pairwise alignments without building a graph. Alignments cover the year-2 HPRC phased haplotype assemblies (232 individuals) plus the GRCh38 and CHM13 references. The release has two layers: pafs/ holds the all-vs-all alignment as a single gzipped PAF (minimap2-style pairwise alignment format with CIGAR) and a separate PAF of all 465 haplotypes aligned to GRCh38; tpas/ holds the same alignments in IMPG's compact TPA format, one file per haplotype (466 files). Typical uses are extracting all haplotype sequences homologous to a gene or locus (impg query), building local graphs for a region with pggb, or computing pairwise similarity between assemblies. Read PAF with any text tool or pafpy; TPA requires impg. Released CC0 1.0 by the Human Pangenome Reference Consortium; cite the HPRC2 preprint.

## Load the data

```python
import boto3
from botocore import UNSIGNED
from botocore.client import Config
s3 = boto3.client('s3', region_name='us-west-2', config=Config(signature_version=UNSIGNED))
s3.list_objects_v2(Bucket='human-pangenomics', Prefix='pangenomes/freeze/release2/impg/', Delimiter='/')
```

Lists the files with anonymous access. Runs on any machine, with no cloud account.

## Data structure

Example file: `pangenomes/freeze/release2/impg/pafs/all-vs-1/GCA_000001405.15_GRCh38_no_alt_analysis_set.PanSN.merged.paf.gz`

## Open it

- In a hosted notebook with the data mounted: https://scigantic.com/archive/eba07515-0155-56eb-abcb-9bed7a9b9f9b
- Full record as JSON (schema card included): https://api.scigantic.com/api/archives/eba07515-0155-56eb-abcb-9bed7a9b9f9b
- Over MCP: `get_schema_card` with id `eba07515-0155-56eb-abcb-9bed7a9b9f9b` at https://api.scigantic.com/mcp

## Related topics

- [Genomics & Bioinformatics datasets](https://scigantic.com/topics/genomics-and-bioinformatics)
