e6d1189bea4cc541396f842b65a3392c33c8e734 max Wed Sep 2 02:55:03 2026 -0700 hprc2annot: put the collection in git and fix the QA findings The HPRC Release 2 GenArk contributed track collection (7 tracks x 462 assemblies) had only its one-line betaGenArk.txt enable checked in. Add the makeDoc, the build scripts, the seven track description pages and the trackDb stanzas, and fix the problems QA found. Data fixes, both rebuilt across all 462 assemblies: - liftoff: gff3ToGenePred was naming each genePred after the gene, so every transcript of a gene shared one name, the RefSeq accession was lost and the transcript_biotype lookup never matched (type empty on 99.8% of rows). Pass -rnaNameAttr=ID. Duplicate (chrom,start,end,name) tuples go from 24,969 to 0 and type is now empty on 2,132 of 82,973,730 rows. The same flag is a no-op on the CAT GFF3 (byte-identical output), so both gene tracks now share one code path and CAT needs no rebuild. - segdups: the build read SEDEF column 6, strand1, which is "+" by construction on every row, so every inverted duplication rendered forward. Use column 14, strand2, the orientation of the paralogous copy: 13.8M + and 13.8M - across the collection. Also translate the paralog partner out of PanSN through the GenArk chromAlias, since the browser does not translate a plain text field, and store identity as a percentage so the mouseover can read it. hprc2annotFixBed.sh is not idempotent for pclai: a second run re-parses an already-parsed name and blanks the values. It now refuses to touch a converted file. GCA_041900255.1 was damaged that way and is rebuilt from source. Provenance, all from the QA report: - stats.tsv is appended to rather than truncated on every run, and each run regenerates log/summary.tsv, a per-track roll-up over the collection. - dataVersion on all seven tracks. - Rows are now dropped for exactly two reasons and both are counted: past the end of the sequence, or a sequence name absent from the assembly, which also warns with example names. Only GCA_018472765.3 trips the second, the known upstream contig-version mismatch. genePredToBigGenePred failure is checked and an empty conversion result is a failure, not a valid empty bigBed. Description pages: fix a raw UTF-8 character, rewrite the segdups and pclai display conventions which still described the data before the name field was blanked, add a color legend checked against the data, add the pcLAI preprint (from the Crossref record, since it has no PMID), and correct the stated reason liftoff drops transcripts. Display: title case on the short labels, "Active centromeres" shortened to fit the 17-character limit, pcLAI to pack since it has no readable dense state, liftoff and segdups to dense, and a filter on the segdups original flag. refs #35415 diff --git src/hg/makeDb/trackDb/contrib/hprc2annot/catGenes.html src/hg/makeDb/trackDb/contrib/hprc2annot/catGenes.html new file mode 100644 index 00000000000..1845dea164b --- /dev/null +++ src/hg/makeDb/trackDb/contrib/hprc2annot/catGenes.html @@ -0,0 +1,78 @@ +

Description

+

+This track shows gene annotations produced by the Comparative Annotation Toolkit +(CAT) for this Human Pangenome Reference Consortium (HPRC) Release 2 assembly. +Genes are the stretches of DNA that are copied into RNA and, for most of them, +translated into protein. Because each pangenome assembly is a newly sequenced +human genome, its genes are not known in advance; CAT infers them by carrying a +well-studied reference annotation across a whole-genome alignment onto the new +assembly, and by combining that projection with direct transcript evidence. +The result is a consistent set of gene models for every assembly, which makes it +possible to compare the same gene across many individuals. +

+ +

Display Conventions

+

+Genes follow the standard UCSC gene display: boxes are exons, connecting lines +are introns, and arrows on the introns show the direction of transcription. +Thicker boxes mark the coding portion (CDS) and thinner boxes the untranslated +regions (UTRs). Where the browser is zoomed in far enough, the amino-acid +translation and, on request, the underlying bases are shown. Items are labeled +by gene name where a name was available from the reference; the transcript +identifier and the gene and transcript biotypes are shown on the item details +page. Both gene name and transcript identifier are searchable. +

+ +

Methods

+

+The Comparative Annotation Toolkit projects an existing high-quality reference +annotation onto a target genome through a whole-genome (Cactus/progressiveCactus) +alignment, reconciles the projected transcripts with ab initio and +transcript-based evidence, and produces a filtered consensus gene set with +stable cross-assembly identifiers. See the reference below for the full +algorithm. For the HPRC pangenome, CAT was run against the CHM13/GRCh38-based +reference annotation to annotate each assembly. +

+

+The annotation files were obtained from the HPRC Release 2 data collection on the +public s3://human-pangenomics bucket, indexed at +the hprc_intermediate_assembly data tables. +Each per-assembly GFF3 was converted to a UCSC bigGenePred file with +gff3ToGenePred and genePredToBigGenePred; gene symbols and gene +and transcript biotypes from the GFF3 were carried into the display fields. The steps are described in the +makeDoc, +the build scripts are in the +kent source tree, +and the track configuration is in +trackDb/contrib/hprc2annot. +

+ +

Data Access

+

+For automated analysis, the annotation is stored in a bigBed-format file +(catGenes.bb) that can be read with the UCSC tool bigBedToBed, +which can be compiled from source or downloaded as a precompiled binary. It can +also extract features for a region, for example: +bigBedToBed catGenes.bb -chrom=CM085953.1 -start=0 -end=100000 stdout. +The original annotation files are available from the HPRC S3 bucket linked above. +

+ +

Credits

+

+Annotations were generated by the Human Pangenome Reference Consortium. Thanks to +the HPRC production team for making these data available. +

+ +

References

+ + +

+Fiddes IT, Armstrong J, Diekhans M, Nachtweide S, Kronenberg ZN, Underwood JG, Gordon D, Earl D, +Keane T, Eichler EE et al. + +Comparative Annotation Toolkit (CAT)-simultaneous clade and personal genome annotation. +Genome Res. 2018 Jul;28(7):1029-1038. +PMID: 29884752; PMC: PMC6028123 +

+