
Download HPRC Per-Haplotype CAT Annotations
Source:R/download_reference.R
download_hprc_annotation.RdDownloads the Human Pangenome Reference Consortium year-1 CAT/Liftoff
gene annotations of an assembled sample, one GFF3 per haplotype, lifted
from GENCODE v38 onto the sample's own assembly in CHM13 or GRCh38
coordinates. The files keep GENCODE identifiers in source_gene /
source_transcript, so merge_annotations() and haplotype_summary()
can compare haplotypes.
Arguments
- sample
HPRC sample ID, for example
"HG00438"or"HG002".- haplotype
Haplotype numbers to download,
1,2orc(1, 2)(default).- assembly
Coordinate space of the CAT run:
"chm13"(default) or"hg38".- output_path
Directory where the file is saved. Defaults to
":cache:", the package cache (seeget_isoformic_cache()).- timeout_limit
Maximum time in seconds for the download. Takes precedence over
options("timeout"). Defaults to3600.- method
Method used by
utils::download.file(). Defaults to"auto".
Value
A named character vector of file paths (names hap1, hap2),
ready for merge_annotations().
Examples
if (FALSE) { # \dontrun{
files <- download_hprc_annotation("HG00438")
merged <- merge_annotations(files, annot_name = "HG00438_chm13")
merged
} # }