Abstract
Genetic variation at the Human Leucocyte Antigen (HLA) genes is associated with many autoimmune and infectious disease phenotypes, is an important element of the immunological distinction between self and non-self, and shapes immune epitope repertoires. Determining the allelic state of the HLA genes (HLA typing) as a by-product of standard whole-genome sequencing data would therefore be highly desirable and enable the immunogenetic characterization of samples in currently ongoing population sequencing projects. Extensive hyperpolymorphism and sequence similarity between the HLA genes, however, pose problems for accurate read mapping and make HLA type inference from whole-genome sequencing data a challenging problem. We describe how to address these challenges in a Population Reference Graph (PRG) framework. First, we construct a PRG for 46 (mostly HLA) genes and pseudogenes, their genomic context and their characterized sequence variants, integrating a database of over 10,000 known allele sequences. Second, we present a sequence-to-PRG paired-end read mapping algorithm that enables accurate read mapping for the HLA genes. Third, we infer the most likely pair of underlying alleles at G group resolution from the IMGT/HLA database at each locus, employing a simple likelihood framework. We show that HLA*PRG, our algorithm, outperforms existing methods by a wide margin. We evaluate HLA*PRG on six classical class I and class II HLA genes (HLA-A, -B, -C, -DQA1, -DQB1, -DRB1) and on a set of 14 samples (3 samples with 2 x 100bp, 11 samples with 2 x 250bp Illumina HiSeq data). Of 158 alleles tested, we correctly infer 157 alleles (99.4%). We also identify and re-type two erroneous alleles in the original validation data. We conclude that HLA*PRG for the first time achieves accuracies comparable to gold-standard reference methods from standard whole-genome sequencing data, though high computational demands (currently ~30–250 CPU hours per sample) remain a significant challenge to practical application.
Author Summary
Determining an individual’s HLA type (the sequence of the exons of the HLA genes) is important in many areas of biomedical research. For example, HLA types shape immune epitope repertoires, which are relevant in cancer immunotherapy, and influence autoimmune and infectious disease risk. Whole-genome sequencing data, currently being generated for hundreds of thousands of individuals, contains the information necessary for HLA typing–but inferring accurate HLA types from these is a challenging problem. First, the HLA genes are the most polymorphic genes in the human genome; second, these genes and their variant alleles exhibit high degrees of sequence similarity (due to a shared evolutionary origin). This makes it difficult to establish which specific HLA gene a given observed sequencing read derives from. We show that this problem can be addressed using a Population Reference Graph (PRG): for each gene, the PRG contains not only the reference sequence but also variant alleles, thus enabling, using a novel sequence-to-graph mapping algorithm, the accurate mapping of reads to HLA genes. We also show that HLA*PRG, the algorithm implementing our approach, achieves–based on standard whole-genome sequencing data–accuracies comparable to those of specialized gold-standard methods. HLA*PRG is open source and freely available.
Introduction
Genetic variation at HLA loci, both classical and non-classical, is associated with many medical phenotypes including risk of autoimmune [1–3] and infectious [4] disease, adverse drug reactions [5, 6], success of tissue and organ transplants [7], and, via epitope presentation preferences, the success of cancer immunotherapy [8]. The current gold standard for high resolution typing of HLA alleles, sequence-based typing (SBT), uses Sanger sequencing or targeted amplification of the HLA genes followed by next-generation sequencing. With the growth of high throughput genomic technologies, methods for inferring HLA genotype have been developed that use SNP genotyping [9–12] or next-generation sequencing [13–19]. These approaches, to date, are either limited to a subset of HLA loci, require targeted capture / amplification, or do not achieve the same degree of accuracy as SBT.
The main challenge in characterising the HLA genes from next-generation sequencing data is the correct alignment of sequencing reads. Multiple factors influence accuracy, including the sheer sequence and structural diversity of the region, the presence of multiple paralogous genes (including pseudogenes) and rare, but important, gene conversion events that generate mosaic allelic structures. The high degree of sequence similarity between alleles in certain groups of loci and its non-random spatial structure are illustrated in S1 Fig and S2 Fig.
To address these challenges, we have previously introduced structures to represent known genomic variation called population reference graphs (PRGs) and demonstrated their value in characterising variation across the major histocompatibility complex (MHC) and particularly within the HLA class II gene region [20]. Briefly, a PRG is a directed graph in which alternative alleles, insertions and deletions are represented as alternative paths through the graph, and in which orthologous and identical regions are collapsed locally to model potential recombination. Previously, we demonstrated that a prototype of this approach could identify the nucleotide-level variants at classical HLA alleles with high accuracy. However, we did not address the problem of inferring the alleles present at the gene level [20].
We set out to extend the PRG approach to provide accurate HLA typing at G group resolution (see below) using high coverage whole-genome sequencing data, such as is being generated by large-scale genomics projects. This study presents novel developments in 3 main areas:
First, we build a gene-only PRG that combines genomic haplotypes (spanning the complete MHC), gene haplotypes and exon sequences for 46 (mostly HLA) genes (S1 Table). In our previous work we utilized a whole-MHC PRG and didn’t attempt to integrate exon sequences. A gene-only PRG is smaller and therefore computationally advantageous, and integration of the exon sequences gives a more comprehensive model of genetic variation at the HLA loci.
Second, we present an algorithm to map short (e.g. 100 or 250bp) paired-end next-generation sequencing reads directly to the PRG. We had previously [20] described an approach for long non-paired reads. The short-read algorithm we present here follows a classical seed-and-extend paradigm; that is, it identifies areas of exact identity between the graph and the read to be mapped, and tries to extend these using dynamic programming, allowing for mismatches, insertions and deletions. Each alignment follows a possible walk through the PRG. Importantly, because the PRG encodes information on sequence variation and because the mapping algorithm utilizes this information, it enables accurate alignment in the presence of homologous variants and a more precise quantification of mapping ambiguity. The short read mapping algorithm is relatively slow and benefits from our decision to limit ourselves to a gene-only PRG. See Fig 1 for a schematic depiction of graph topology and read mapping.
Third, conditional on reads mapped to the PRG and a database of possible underlying haplotypes (i.e., the HLA allele sequences), we infer the most likely pair of underlying haplotypes and a quality score using a simple likelihood framework.
We implement our approach in an open source package called HLA*PRG and show in two validation experiments that the level of achieved accuracy is comparable to SBT. Allelic variants at HLA genes can be typed at different degrees of resolution; low resolution (“1-field”, formerly “2-digit”) types specify serological activity; intermediate resolution (“2-field”; formerly “4-digit”) HLA types specify the complete primary sequence of the HLA proteins and high-resolution (“3-field”; formerly “6-digit”) types determine the full exonic sequence including synonymous variants. Higher levels of resolution include non-coding variation. SBT is typically carried out at “G group” resolution, in which only the sequences of the exons encoding the peptide binding groove are considered: exons 2 and 3 for HLA class I genes and exon 2 for HLA class II genes. In most applications of typing, a set of 6–8 loci are typed (Class I: HLA-A, -B, -C, Class II: HLA-DQA1, -DQB1, -DRB1, -DPA1 and -DPB1), though there exist over 30 HLA genes and pseudogenes.
Like SBT, HLA*PRG reports HLA types at G group resolution. Lower-resolution types are only used when benchmarking against other HLA type inference algorithms that fall back to these in cases of ambiguity.
Results
To assess the accuracy of HLA*PRG, we use two data sets with available high coverage sequencing data and independent SBT-based HLA type information for 6 classical class I and class II loci (Table 1).
Table 1. HLA type inference accuracy for HLA*PRG and two state-of-the-art algorithms.
Cohort | Locus | Na | HLA*PRG | PHLAT | HLAreporter | ||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Inferred | Accuracy | Call Rate | Inferred | Accuracy | Call Rate | Inferred | Accuracy | Call Rate | |||
Platinum Trio | A | 6 | 6 | 1.00 | 1.00 | 6 | 1.00 | 1.00 | 2 | 0.50 | 0.33 |
B | 6 | 6 | 1.00 | 1.00 | 6 | 1.00 | 1.00 | 1 | 1.00 | 0.17 | |
C | 6 | 6 | 1.00 | 1.00 | 6 | 1.00 | 1.00 | 1 | 0.00 | 0.17 | |
DQA1 | 6 | 6 | 1.00 | 1.00 | 6 | 1.00 | 1.00 | 2 | 1.00 | 0.33 | |
DQB1 | 6 | 6 | 1.00 | 1.00 | 6 | 1.00 | 1.00 | 5 | 1.00 | 0.83 | |
DRB1 | 6 | 6 | 1.00 | 1.00 | 6 | 1.00 | 1.00 | 5 | 1.00 | 0.83 | |
1000 Genomes Highest Resolution | A | 22 | 22 | 1.00 | 1.00 | 20 | 0.45 | 0.91 | 0 | NA | 0.00 |
B | 22 | 22 | 1.00 | 1.00 | 20 | 0.35 | 0.91 | 6 | 0.50 | 0.27 | |
C | 22 | 22 | 1.00 | 1.00 | 20 | 0.50 | 0.91 | 2 | 0.50 | 0.09 | |
DQA1 | 12 | 12 | 1.00 | 1.00 | 10 | 0.70 | 0.83 | 9 | 1.00 | 0.75 | |
DQB1 | 22 | 22 | 1.00 | 1.00 | 20 | 0.80 | 0.91 | 15 | 1.00 | 0.68 | |
DRB1 | 22 | 22 | 0.95 | 1.00 | 20 | 0.55 | 0.91 | 10 | 1.00 | 0.45 | |
1000 Genomes 2-field resolutionb | A | 22 | 22 | 1.00 | 1.00 | 20 | 0.70 | 0.91 | 0 | NA | 0.00 |
B | 22 | 22 | 1.00 | 1.00 | 20 | 0.60 | 0.91 | 6 | 0.50 | 0.27 | |
C | 22 | 22 | 1.00 | 1.00 | 20 | 0.80 | 0.91 | 2 | 0.50 | 0.09 | |
DQA1 | 12 | 12 | 1.00 | 1.00 | 10 | 0.70 | 0.83 | 9 | 1.00 | 0.75 | |
DQB1 | 22 | 22 | 1.00 | 1.00 | 20 | 0.95 | 0.91 | 15 | 1.00 | 0.68 | |
DRB1 | 22 | 22 | 0.95 | 1.00 | 20 | 0.75 | 0.91 | 10 | 1.00 | 0.45 |
a Number of validation alleles.
b “1000 Genomes Highest Resolution” and “1000 Genomes 2-field resolution” represent the same set of samples, with G group alleles (available for 9/12 samples) reduced to 2-field resolution for the latter experiment, enabling a fair comparison with algorithms that fall back to 2-field typing in cases of ambiguity.
First, we analyse NA12878, NA12891 and NA12892 from the Illumina Platinum Genomes Project, sequenced to 50 - 55x with a PCR-free 2 x 100bp protocol. We correctly infer all 36 HLA alleles.
Second, we analyse 11 samples from the 1000 Genomes Project, sequenced to 28 – 68x with a PCR-free 2 x 250bp protocol. In terms of diversity, the 11 samples represent 7 ethnicities (S2 Table); a wide range of HLA types, e.g. 9 different 1-field groups for HLA-DRB1 (S2 Table); and heterozygous as well as homozygous loci (S3 Table). Initial analysis identifies three discrepancies (S1 Text), though on re-typing these individuals two of three are the result of initial errors in the validation data. The remaining inconsistency, (HLA-DRB1*16:02:01 incorrectly typed as HLA-DRB1*16:23) is likely caused by HLA-DRB5 sequences incorrectly aligned to HLA-DRB1 (IMGT/HLA, the HLA sequence database, currently doesn’t contain genomic sequences for HLA-DRB5 and the representation of this gene in the PRG therefore remains incomplete).
We compare the performance of HLA*PRG with PHLAT [14] and HLAreporter [13], two state-of-the-art algorithms that support HLA class I and class II (Table 1). For the Platinum samples, we find that PHLAT also correctly infers all 36 alleles, whereas HLAreporter only reports 16 alleles (of which 14 are correct). For the 1000 Genomes Samples, we find that HLA*PRG outperforms both programs by a wide margin. Mean accuracy at 2-field resolution across all loci is 75% for PHLAT and 80% for HLAreporter, and HLAreporter achieves a call rate of only 38%. To confirm that the observed differences in performance are not merely driven by different approaches to encoding ambiguous alleles, we repeat the 1000 Genomes validation experiment at 1-field resolution, the lowest and most ambiguous level of HLA typing; at 100% accuracy, HLA*PRG remains ahead of PHLAT and HLAreporter, which achieve accuracies of 89% and 90%, respectively (S4 Table).
To evaluate sensitivity of HLA*PRG to whole-genome sequencing depth, we subsampled the NA12878 data from the Platinum and 1000 Genomes projects to average coverages of 40x, 30x and 20x in triplicates. We find that performance is stable (all alleles correctly predicted) down to 20x for the Platinum data and down to 30x for the 1000 Genomes data (S5 Table).
To assess to what extent HLA*PRG depends on the availability of whole-genome data, we carried out two additional experiments. First, we apply HLA*PRG to whole-exome sequencing data of a cohort of HapMap samples. Results are varied and accuracies consistently lower across all loci (ranging from 79% for HLA-C to 98% for HLA-DQB1, S6 Table). Second, we apply HLA*PRG to a cohort of 14 Ugandan samples that underwent targeted amplification and MiSeq-based high coverage sequencing of the HLA exons (this cohort also contains a novel HLA-B and a novel HLA-DQB1 allele, see below). Average accuracy is 95% at G group resolution (PHLAT: 74%; HLAreporter: 73%) and 96% at 2-field resolution (PHLAT: 97%; HLAreporter: 80%) (S7 Table). Of the 6 erroneous alleles at 2-field resolution, 2 are novel alleles; an additional 2 errors are associated with mis-inferred DRB1*14:141 alleles, which are exon 2-identical to DRB3 sequences (which we expect, due to linkage with DRB1*11/13 alleles, also to be present in the samples).
For each inferred allele, HLA*PRG reports three quality statistics: a parametric likelihood-based quality score (S1 Text) and the proportion of k-Mers associated with the allele present in the sample sequencing data, both ranging from 0 to 1; and the number of columns in the read-to-graph alignment that contain alleles with an allele frequency ≥0.2 that are not accounted for by the diploid HLA call for the sample (“unaccounted alleles”). For the first two metrics, samples with lower values are enriched for errors; there is, however, no clear cut-off between correct and incorrect alleles (S3 Fig). The two novel alleles cluster with the bulk of correct calls. For the “unaccounted alleles” statistic, we observe that the number of columns with high-frequency unaccounted alleles varies systematically between loci (S4 Fig), and that there is no systematic difference between correct and incorrect calls. Although the two novel alleles score comparatively highly on this metric, it doesn’t enable the clear distinction between novel and non-novel alleles (S4 Fig). Nevertheless, the combination of these quality metrics can help identify alleles with higher uncertainty.
To assess whether HLA*PRG could be applied to additional HLA loci beyond the set of the 6 classical genes validated here, we use it to genotype a set of 12 additional HLA genes and pseudogenes in the two trios that are part of our whole-genome cohorts (S8 Table). Across the 2 x 72 alleles inferred, we find one trio inconsistency in the CEU trio (pseudogene HLA-K, driven by an allele called with low confidence)); and two inconsistencies in the YRI trio (the HLA-DRB1 inconsistency described above and an additional inconsistency at HLA-K).
Discussion
We have shown that HLA*PRG enables HLA typing from standard whole-genome next-generation sequencing data at accuracies comparable to those of the current gold-standard SBT technology (two errors in the original reference data compared to one from HLA*PRG at 2-field / G group resolution)–provided that high-quality whole-genome sequencing data are used as input (PCR-free protocol, read length of at least 100bp, coverage of at least 30x).
Importantly, our results apply to both the established 2 x 100bp and the more recent 2 x 250bp Illumina HiSeq protocols; they are therefore directly applicable to many of the large-scale sequencing projects currently ongoing. HLA*PRG will enable researchers to augment these cohorts with reliable HLA type information and can contribute to characterizing HLA signals in important medical phenotypes.
The current implementation of HLA*PRG is limited in three respects.
First, although the algorithm was designed explicitly for application to high-quality whole-genome sequencing data, it would be advantageous if comparable performance was achieved from other data sources. Our evaluation shows that this is not the case. The exome sequencing cohort exhibits the lowest accuracy of all cohorts examined; it is also the cohort with the lowest effective fragment length (2 x read length + insert size, S5 Fig). High effective fragment lengths help overcome local sequence homologies like those observed in the HLA region, and it is likely that this factor plays a role in explaining the poor performance of the exome cohort. Alignment issues also likely contribute to the slight reduction in accuracy observed when applying HLA*PRG to the MiSeq sequencing data (exon targeting by PCR) validation cohort. Although the effective fragment length of this cohort is higher, the vast majority of reads start and end within a few bases of the exon boundaries. In comparison to whole-genome data, where the majority of exon-spanning reads run into introns and the variation contained therein, this exacerbates the effects of exon sequence homologies between different genes (consistent with the observation that the problem of HLA*PRG mis-inferring a small number of alleles due to DRB1-DRB3 distinction issues arises only in the MiSeq, but not in the whole-genome, cohort). Of note, base quality doesn’t seem to strongly influence accuracy; when measured by the number of read bases agreeing with the graph location they are aligned to, average base quality is lowest for the 1000 Genomes cohort (87%) and highest for the exome cohort (99%). In summary, high (≥30x) uniform coverage across the whole length of the HLA genes and high fragment lengths seem to deliver best results; caution should be exercised when these conditions are not met (e.g. for targeted amplification, whole-genome amplification, targeted capture).
Second, HLA*PRG is optimised for accuracy rather than computational efficiency. Analysing the NA12878 data takes between 33 and 215 CPU hours (Platinum / 1000G data; AMD Opteron 6174 2.2GHz; 11–17 hours clock time). Analysing the same data with PHLAT and HLAreporter takes 466/626 and 53/50 CPU hours, respectively (Fig 2). Depending on the availability of high-performance compute infrastructure and the number of samples to analyse, computational demands might represent a significant barrier to adoption. We provide a detailed runtime (including CPU time) and memory analysis in S1 Text. Achieving improvements in computational efficiency is ongoing work, but it is worth noting that HLA*PRG can be run immediately after the raw sequence data has been mapped, in parallel with standard variant-calling. Future versions might make use of linear sequence alignments to seed graph alignment (similar to ALT-aware alignment in BWA-MEM[21]) and also incorporate population haplotype frequencies [22, 23].
Third, HLA*PRG doesn’t enable the discovery of new alleles and it is limited to G group resolution. It would be advantageous if it was possible to identify samples that harbour novel alleles from the quality metrics of the inferred alleles. This, however, was not the case for the two novel alleles in the Ugandan cohort and the 3 parametric and non-parametric statistics we analysed. It seems (S4 Fig) that there is a residual number of reads aligned to the wrong gene, and distinguishing between the signal generated by these and that of true novel alleles is non-trivial. Further research will be necessary to address this.
The good performance of HLA*PRG is consistent with the hypothesis that reference graph approaches are well-suited to enable accurate genome inference in highly complex, highly diverse regions of the human genome. At the example of the MHC as a whole, we had already shown that this was the case using small-scale (SNPs, k-Mers) and large-scale (long reads) metrics of genome inference accuracy [20]. By focusing on G group resolution HLA typing, this study complements the existing evidence with another important metric: exon-scale haplotype accuracy. Faster algorithms for sequence-to-graph alignment than the one used here are currently under development (https://github.com/vgteam/vg) and these will likely simplify the development of future variation graph-based approaches.
There are other regions in the human genome that could benefit from a tailored PRG-based inference approach. One example is the LRC/KIR region on chromosome 19, which is similar to the MHC in some aspects (hyperpolymorphism, availability of haplotype and allele databases[24]) and different in others (higher degrees of structural variation and paralogy [25–27]). One important implication of the results presented here is that a variation-aware read mapping algorithm that processes reads independently (in the sense that no attempt at local haplotype reconstruction is made during the read mapping process) is sufficiently accurate for HLA genotyping. Whether this also applies to the LRC/KIR region is an open question.
Materials and Methods
In this Section we present a high-level summary of PRG construction, read mapping, HLA type inference and validation. A full technical description of the algorithms is given in S1 Text.
A Population Reference Graph for the HLA genes
We construct a gene-only PRG for 46 genes from 720 genomic sequences (from IMGT [28] / GRCh37), 10050 exonic sequences (from IMGT) and 8 MHC haplotypes (from GRCh37). For each gene independently, we combine (see next Section) exonic sequences (where available), genomic sequences and 0.5kb of surrounding non-genic “padding” sequence from the 8 MHC haplotypes (where appropriate; to enable the alignment of reads that span a gene boundary). We then construct a joint PRG [20], in which we separate genes with 2000 N characters (see Fig 1A for a schematic depiction of the topology of the PRG created).
MSA merging algorithm
We employ a multiple sequence alignment (MSA) merging algorithm (Fig 1C) to combine genomic, exonic and genomic “padding” sequences for PRG construction. Typically there are more exonic sequences than genomic sequences, and more genomic sequences than genomic “padding” sequences (Fig 1B).
We describe the base case of merging the MSA for one exon into the MSA of surrounding genomic sequences. The other cases follow immediately and are described in S1 Text.
The aim of the MSA merging algorithm is to find the “switch points” between the exon MSA and the genomic MSA; i.e. the coordinates at which the PRG switches from one MSA to the other and back (blue lines in Fig 1C). To compute the switch points we rely on shared alleles (i.e. alleles that are present in both MSAs)–for each shared allele, we should be able to identify the exon sequence as a substring of the genomic sequence alignment, defining the coordinates of the exon MSA in genomic MSA terms. If there is more than one shared allele, we compute consensus switch points.
Switch coordinate computation for the exon MSA:
Initialize PL = { } and PR = { }. These two sets hold the coordinates of the allele-specific left and right switch points in the exon MSA.
Allele-specific switch points: For each shared allele, add the exon MSA coordinates of the beginning and the end of the un-aligned exon allele sequence to PL and PR, respectively (that is, the coordinates of the un-aligned sequence in the alignment—for example, if an exon MSA sequence is–-ACGT…, due to the two gaps at the beginning of the alignment, we add the value 3 to PL).
Define the consensus switch coordinates as GL = max(PL) and GR = min(PR).
The steps as described above define the area (from coordinates GL to GR) of the exon MSA to be utilized for PRG construction. For each individual genomic shared allele sequence, this leaves sequence to the left and to the right of the extracted exon sequence. We combine all such ‘left’ (genomic) sequences from all shared alleles and compute [29] a new MSA; we also combine all such ‘right’ (genomic) sequences from all shared alleles and compute a new MSA. Finally, the two MSAs so-created are used as the segments to the left and to the right of the extracted exon MSA block for PRG construction (Fig 1B).
A full description of the PRG construction algorithm is given in S1 Text and the output data are part of the HLA*PRG data package (available on the HLA*PRG website).
Read alignment
Read-to-graph alignment
Basic sequence-to-PRG alignment algorithms for long, non-paired reads were described in [20]. Here we present a modified algorithm optimized for short reads (Fig 1D):
For each read of a read pair, find regions of exact matches (highlighted in red in Fig 1D) between the read sequence and walks in the graph. This step utilizes a k-Mer index of the graph, and chains together k-Mers that are connected in both graph and read sequence. After the exact match step, for each identified match, locally extend the exact match region using the alignment algorithms presented in [20] (highlighted in orange in Fig 1D).
For each read pair, the total number of possible alignments is given by multiplying the number of possible alignments for read 1 by the number of possible alignments for read 2 (identified during the previous step).
We score each such paired-end alignment in a likelihood framework, taking into account the individual alignment scores, read pair orientation and insert size characteristics. By normalizing we obtain a probability distribution over possible paired-end alignments from normalization.
In a final step, we obtain the maximum-likelihood alignment (which we treat as fixed for all downstream analyses); a quality score for this alignment; a per-position alignment quality score that measures how confidently we align a particular base in the read to a particular level in the graph.
We give a full technical description of the alignment algorithm in S1 Text.
We highlight two differences to the algorithm utilized in [20]. First, the algorithm presented here uses paired-end information. Second, the extension stage as defined here starts from one region of exact match and terminates if it reaches the end of the read or other termination conditions; the algorithm in [20], in contrast, is based on the notion of using extension steps to connect multiple regions of exact matches.
Read filtering
As read alignment (in our current implementation) is computationally demanding, we employ a pre-filtering step to identify reads that likely emanate from regions covered by the PRG. Only reads that pass this filter are aligned to the PRG.
In the standard version of the filter, we keep read pairs that
have >30% k-Mers present in the PRG (positive selection).
have ≥1 reads with ≥1 k-Mers unique to the PRG, or that have ≥1 reads with <45% k-Mers present in genomic regions outside the PRG (negative selection).
We use modified criteria for reads with a higher proportion of low-quality positions, such as the 2 x 250bp reads from the 1000 Genomes Project samples. Full details are given in S1 Text.
HLA type inference
Let R be the set of paired-end read alignments that overlap with the peptide-binding site of a given HLA locus. We calculate the likelihood of the observed data R conditional on pairs of possible underlying HLA types at G group resolution. We note that each HLA type (i.e., each possible underlying allele) has a defined genotype (potentially including “gap” characters) at each position of the peptide binding site as represented in the PRG.
For an arbitrary pair (a1,a2) of underlying alleles, we define the likelihood functions
L(r|a) is the likelihood of observed aligned read pair r, conditional on an assumed underlying HLA allele a.
By definition r overlaps with the peptide-binding site. At each overlapping position, we have a pair (gr,ga), where gr is the nucleotide (or gap) of the aligned read r (and its associated base quality, if applicable) at this position, and ga is the genotype of underlying HLA allele a at this position. We define the set Or as the set of pairs for all overlapping positions of r.
Finally, we define
, with score being a base-quality-aware alignment scoring function for matches, mismatches, deletions and insertions.
We compute the likelihood function over all pairs of possible underlying alleles and normalize to obtain a probability distribution over possible underlying allele pairs. We call two “best guess” alleles and their associated qualities as described in [10]. Briefly,
to obtain the first “best guess” allele we select the allele with the highest probability of occurring ≥1 times. We use the marginal probability as quality score.
to obtain the second “best guess” allele we consider all pairs that contain the first best-guess allele and select the pair with the highest absolute probability. We use the absolute pair probability as quality score for the second allele.
We give a full technical description of the likelihood-based inference procedure in S1 Text.
Validation data
Sequencing data
We validate HLA*PRG on 2 sets of validation samples with publicly available high coverage whole-genome sequencing data.
First, NA12878, NA12891 and NA12892, which were whole-genome sequenced for the Illumina Platinum Genomes Project (50 - 55x with a PCR-free 2 x 100bp protocol).
Second, 11 samples from the 1000 Genomes Project [30], which were whole-genome sequenced to high coverage (28 – 68x with a PCR-free 2 x 250bp protocol).
To assess the extent to which accurate HLA typing with HLA*PRG depends on the availability of whole-genome data, we also evaluate it on a cohort of 29 exome-sequenced HapMap [31] samples (also sequenced for the 1000 Genomes Project) and on a cohort of 14 MiSeq-sequenced Ugandan individuals. Sequencing data for the Ugandan individuals is available upon request (see below).
We list data download URLs and accession IDs for all utilized sequencing data in S1 Text.
HLA types
Except for the Ugandan MiSeq cohort, HLA types for all validation samples are either publicly available [32, 33] or available from a previous study [10].
14 samples from Ugandan individuals were available through the Entebbe Mother and Baby Study courtesy of Alison Elliott[34]. DNA was extracted from EDTA-stored cell pellets using the QIAamp DNA Blood Mini Kit (QIAGEN, Germany) before undergoing SBT using two methods. The first method, a Sanger-based approach for validation, was undertaken at Addenbrooke’s Tissue Typing Laboratory, (Cambridge, UK) using the Fisher Scientific proprietary uTYPE (version 7) software (Fisher Scientific, MA, USA). Exon-targeted MiSeq sequencing was undertaken at Histogenetics (NY, USA) using proprietary protocols. After validating the MiSeq-based calls with the Sanger data, the MiSeq data were used for validation. All data will be made available to interested researchers upon request through the African Partnership for Chronic Disease Research Data Access Committee.
S1 Text contains a table of utilized samples and their HLA types.
Software implementation
HLA*PRG is implemented in C++/Perl and available under GPLv3 as part of the MHC*PRG repository https://github.com/AlexanderDilthey/MHC-PRG. A readme file (https://github.com/AlexanderDilthey/MHC-PRG/blob/master/HLA-PRG.md) describes how to install and run the software. A compiler with support for C++11 and openMP is required (e.g., GCC 4.7.2). We provide a separate HLA*PRG data package (download size ~41G), independent from the larger MHC*PRG data package.
Supporting Information
Acknowledgments
We would like to thank Jerome Kelleher for comments on manuscript and implementation. We would also like to thank Adrian V Hill, Manj Sandhu and Alison M Elliott alongside the study participants and the clinic, laboratory, statistical and support staff at the Entebbe Hospital and the MRC/UVRI Uganda Research Unit for providing the Ugandan data available for this study and for their helpful comments during manuscript preparation. We are grateful to Sarah Peacock and Sarah Maxwell at the Tissue Typing Laboratory at Addenbrooke’s Hospital, Cambridge University Hospitals NHS Foundation Trust for their assistance with Sanger SBT of the Ugandan samples, and all staff at Histogenetics for their involvement in Miseq exon-targeted SBT of the Ugandan samples. We would like to thank HwaRan Kim for examining and confirming validation HLA types for Ugandan cohort samples that showed inconsistencies between the HLA*PRG-derived types and the validation types.
Data Availability
2 x 250bp whole-genome sequencing data are available from the 1000 Genomes FTP server (ftp://ftp.1000genomes.ebi.ac.uk/vol1/ftp/phase3/data/). 2 x 100bp whole-genome sequencing are available from ENA (http://www.ebi.ac.uk/ena/data/view/ERP001960). All sample HLA types are listed in S1 Text. The African Partnership for Chronic Disease Research (APCDR) committees are responsible for curation, storage, and sharing of the phenotypic and genetic data data under managed access (Ugandan cohort). The sequence data have been deposited at the European Genome-phenome Archive (EGA, http://www.ebi.ac.uk/ega/, study/dataset accession number EGAS00001001998) and can be requested through datasharing@sanger.ac.uk. Requests for access to phenotype data may be directed to data@apcdr.org.
Funding Statement
The study was funded by grant 100956/Z/13/Z from the Wellcome Trust to GM, a Nuffield Department of Medicine Fellowship to ZI, a Sir Henry Dale Fellowship jointly awarded by the Wellcome Trust and the Royal Society to ZI (102541/Z/13/Z), and a Wellcome Trust Core Award to the Wellcome Trust Centre for Human Genetics (090532/Z/09/Z). The Ugandan work was supported by funding from the Wellcome Trust, grant numbers 064693, 079110 and 095778, to Alison M Elliott, a European Research Council Advanced Grant to Adrian Hill (294557) and a Wellcome Trust Clinical Research Training Fellowship to AJM (106289). PAG is supported by ATIP-Avenir INSERM program and the Region Pays de Loire ConnecTalent. The funders had no role in study design, data collection and analysis, decision to publish, or preparation of the manuscript.
References
- 1.International Multiple Sclerosis Genetics C, Beecham AH, Patsopoulos NA, Xifara DK, Davis MF, Kemppinen A, et al. Analysis of immune-related loci identifies 48 new susceptibility variants for multiple sclerosis. Nature genetics. 2013;45(11):1353–60. Epub 2013/10/01. PubMed Central PMCID: PMC3832895. 10.1038/ng.2770 [DOI] [PMC free article] [PubMed] [Google Scholar]
- 2.Evans DM, Spencer CC, Pointon JJ, Su Z, Harvey D, Kochan G, et al. Interaction between ERAP1 and HLA-B27 in ankylosing spondylitis implicates peptide handling in the mechanism for HLA-B27 in disease susceptibility. Nature genetics. 2011;43(8):761–7. Epub 2011/07/12. PubMed Central PMCID: PMC3640413. 10.1038/ng.873 [DOI] [PMC free article] [PubMed] [Google Scholar]
- 3.Genetic Analysis of Psoriasis Consortium, The Wellcome Trust Case Control Consortium, Strange A, Capon F, Spencer CC, Knight J, et al. A genome-wide association study identifies new psoriasis susceptibility loci and an interaction between HLA-C and ERAP1. Nature genetics. 2010;42(11):985–90. Epub 2010/10/19. PubMed Central PMCID: PMC3749730. 10.1038/ng.694 [DOI] [PMC free article] [PubMed] [Google Scholar]
- 4.Chapman SJ, Hill AV. Human genetic susceptibility to infectious disease. Nature reviews Genetics. 2012;13(3):175–88. Epub 2012/02/09. 10.1038/nrg3114 [DOI] [PubMed] [Google Scholar]
- 5.Hetherington S, Hughes AR, Mosteller M, Shortino D, Baker KL, Spreen W, et al. Genetic variations in HLA-B region and hypersensitivity reactions to abacavir. Lancet. 2002;359(9312):1121–2. Epub 2002/04/12. 10.1016/S0140-6736(02)08158-8 [DOI] [PubMed] [Google Scholar]
- 6.Schaid DJ, Spraggs CF, McDonnell SK, Parham LR, Cox CJ, Ejlertsen B, et al. Prospective validation of HLA-DRB1*07:01 allele carriage as a predictive risk factor for lapatinib-induced liver injury. Journal of clinical oncology: official journal of the American Society of Clinical Oncology. 2014;32(22):2296–303. Epub 2014/04/02. [DOI] [PubMed] [Google Scholar]
- 7.Flomenberg N, Baxter-Lowe LA, Confer D, Fernandez-Vina M, Filipovich A, Horowitz M, et al. Impact of HLA class I and class II high-resolution matching on outcomes of unrelated donor bone marrow transplantation: HLA-C mismatching is associated with a strong adverse effect on transplantation outcome. Blood. 2004;104(7):1923–30. Epub 2004/06/12. 10.1182/blood-2004-03-0803 [DOI] [PubMed] [Google Scholar]
- 8.Snyder A, Makarov V, Merghoub T, Yuan J, Zaretsky JM, Desrichard A, et al. Genetic basis for clinical response to CTLA-4 blockade in melanoma. The New England journal of medicine. 2014;371(23):2189–99. Epub 2014/11/20. PubMed Central PMCID: PMC4315319. 10.1056/NEJMoa1406498 [DOI] [PMC free article] [PubMed] [Google Scholar]
- 9.Leslie S, Donnelly P, McVean G. A statistical method for predicting classical HLA alleles from SNP data. American journal of human genetics. 2008;82(1):48–56. Epub 2008/01/09. PubMed Central PMCID: PMC2253983. 10.1016/j.ajhg.2007.09.001 [DOI] [PMC free article] [PubMed] [Google Scholar]
- 10.Dilthey A, Leslie S, Moutsianas L, Shen J, Cox C, Nelson MR, et al. Multi-population classical HLA type imputation. PLoS computational biology. 2013;9(2):e1002877 PubMed Central PMCID: PMC3572961. 10.1371/journal.pcbi.1002877 [DOI] [PMC free article] [PubMed] [Google Scholar]
- 11.Zheng X, Shen J, Cox C, Wakefield JC, Ehm MG, Nelson MR, et al. HIBAG—HLA genotype imputation with attribute bagging. The pharmacogenomics journal. 2014;14(2):192–200. Epub 2013/05/29. PubMed Central PMCID: PMC3772955. 10.1038/tpj.2013.18 [DOI] [PMC free article] [PubMed] [Google Scholar]
- 12.Jia X, Han B, Onengut-Gumuscu S, Chen WM, Concannon PJ, Rich SS, et al. Imputing amino acid polymorphisms in human leukocyte antigens. PloS one. 2013;8(6):e64683 Epub 2013/06/14. PubMed Central PMCID: PMC3675122. 10.1371/journal.pone.0064683 [DOI] [PMC free article] [PubMed] [Google Scholar]
- 13.Huang Y, Yang J, Ying D, Zhang Y, Shotelersuk V, Hirankarn N, et al. HLAreporter: a tool for HLA typing from next generation sequencing data. Genome medicine. 2015;7(1):25 Epub 2015/04/25. PubMed Central PMCID: PMCPMC4407542. 10.1186/s13073-015-0145-3 [DOI] [PMC free article] [PubMed] [Google Scholar]
- 14.Bai Y, Ni M, Cooper B, Wei Y, Fury W. Inference of high resolution HLA types using genome-wide RNA or DNA sequencing reads. BMC genomics. 2014;15:325 Epub 2014/06/03. PubMed Central PMCID: PMCPMC4035057. 10.1186/1471-2164-15-325 [DOI] [PMC free article] [PubMed] [Google Scholar]
- 15.Nariai N, Kojima K, Saito S, Mimori T, Sato Y, Kawai Y, et al. HLA-VBSeq: accurate HLA typing at full resolution from whole-genome sequencing data. BMC genomics. 2015;16 Suppl 2:S7 Epub 2015/02/25. PubMed Central PMCID: PMC4331721. 10.1186/1471-2164-16-S2-S7 [DOI] [PMC free article] [PubMed] [Google Scholar]
- 16.Warren RL, Choe G, Freeman DJ, Castellarin M, Munro S, Moore R, et al. Derivation of HLA types from shotgun sequence datasets. Genome medicine. 2012;4(12):95 Epub 2012/12/12. PubMed Central PMCID: PMC3580435. 10.1186/gm396 [DOI] [PMC free article] [PubMed] [Google Scholar]
- 17.Shukla SA, Rooney MS, Rajasagi M, Tiao G, Dixon PM, Lawrence MS, et al. Comprehensive analysis of cancer-associated somatic mutations in class I HLA genes. Nat Biotechnol. 2015. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 18.Szolek A, Schubert B, Mohr C, Sturm M, Feldhahn M, Kohlbacher O. OptiType: precision HLA typing from next-generation sequencing data. Bioinformatics. 2014;30(23):3310–6. PubMed Central PMCID: PMCPMC4441069. 10.1093/bioinformatics/btu548 [DOI] [PMC free article] [PubMed] [Google Scholar]
- 19.Wittig M, Anmarkrud JA, Kassens JC, Koch S, Forster M, Ellinghaus E, et al. Development of a high-resolution NGS-based HLA-typing and analysis pipeline. Nucleic Acids Res. 2015;43(11):e70 PubMed Central PMCID: PMCPMC4477639. 10.1093/nar/gkv184 [DOI] [PMC free article] [PubMed] [Google Scholar]
- 20.Dilthey A, Cox C, Iqbal Z, Nelson MR, McVean G. Improved genome inference in the MHC using a population reference graph. Nature genetics. 2015;47(6):682–8. Epub 2015/04/29. PubMed Central PMCID: PMC4449272. 10.1038/ng.3257 [DOI] [PMC free article] [PubMed] [Google Scholar]
- 21.Li H. Aligning sequence reads, clone sequences and assembly contigs with BWA-MEM. ArXiv e-prints [Internet]. 2013 March 1, 2013; 1303.
- 22.Pappas DJ, Tomich A, Garnier F, Marry E, Gourraud PA. Comparison of high-resolution human leukocyte antigen haplotype frequencies in different ethnic groups: Consequences of sampling fluctuation and haplotype frequency distribution tail truncation. Hum Immunol. 2015;76(5):374–80. 10.1016/j.humimm.2015.01.029 [DOI] [PubMed] [Google Scholar]
- 23.de Bakker PI, McVean G, Sabeti PC, Miretti MM, Green T, Marchini J, et al. A high-resolution HLA and SNP haplotype map for disease association studies in the extended human MHC. Nature genetics. 2006;38(10):1166–72. Epub 2006/09/26. PubMed Central PMCID: PMC2670196. 10.1038/ng1885 [DOI] [PMC free article] [PubMed] [Google Scholar]
- 24.Robinson J, Mistry K, McWilliam H, Lopez R, Marsh SG. IPD—the Immuno Polymorphism Database. Nucleic Acids Res. 2010;38(Database issue):D863–9. PubMed Central PMCID: PMCPMC2808958. 10.1093/nar/gkp879 [DOI] [PMC free article] [PubMed] [Google Scholar]
- 25.Uhrberg M, Parham P, Wernet P. Definition of gene content for nine common group B haplotypes of the Caucasoid population: KIR haplotypes contain between seven and eleven KIR genes. Immunogenetics. 2002;54(4):221–9. Epub 2002/07/24. 10.1007/s00251-002-0463-7 [DOI] [PubMed] [Google Scholar]
- 26.Pyo CW, Guethlein LA, Vu Q, Wang R, Abi-Rached L, Norman PJ, et al. Different patterns of evolution in the centromeric and telomeric regions of group A and B haplotypes of the human killer cell Ig-like receptor locus. PloS one. 2010;5(12):e15115 Epub 2011/01/06. PubMed Central PMCID: PMC3012066. 10.1371/journal.pone.0015115 [DOI] [PMC free article] [PubMed] [Google Scholar]
- 27.Wilson MJ, Torkar M, Haude A, Milne S, Jones T, Sheer D, et al. Plasticity in the organization and sequences of human KIR/ILT gene families. Proceedings of the National Academy of Sciences of the United States of America. 2000;97(9):4778–83. Epub 2000/04/26. PubMed Central PMCID: PMC18309. 10.1073/pnas.080588597 [DOI] [PMC free article] [PubMed] [Google Scholar]
- 28.Robinson J, Halliwell JA, Marsh SG. IMGT/HLA and the Immuno Polymorphism Database. Methods Mol Biol. 2014;1184:109–21. Epub 2014/07/23. 10.1007/978-1-4939-1115-8_5 [DOI] [PubMed] [Google Scholar]
- 29.Edgar RC. MUSCLE: multiple sequence alignment with high accuracy and high throughput. Nucleic Acids Res. 2004;32(5):1792–7. PubMed Central PMCID: PMCPMC390337. 10.1093/nar/gkh340 [DOI] [PMC free article] [PubMed] [Google Scholar]
- 30.1000 Genomes Project Consortium, Abecasis GR, Auton A, Brooks LD, DePristo MA, Durbin RM, et al. An integrated map of genetic variation from 1,092 human genomes. Nature. 2012;491(7422):56–65. PubMed Central PMCID: PMCPMC3498066. 10.1038/nature11632 [DOI] [PMC free article] [PubMed] [Google Scholar]
- 31.International HapMap C. A haplotype map of the human genome. Nature. 2005;437(7063):1299–320. PubMed Central PMCID: PMCPMC1880871. 10.1038/nature04226 [DOI] [PMC free article] [PubMed] [Google Scholar]
- 32.Gourraud PA, Khankhanian P, Cereb N, Yang SY, Feolo M, Maiers M, et al. HLA diversity in the 1000 genomes dataset. PLoS One. 2014;9(7):e97282 Epub 2014/07/06. PubMed Central PMCID: PMC4079705. 10.1371/journal.pone.0097282 [DOI] [PMC free article] [PubMed] [Google Scholar]
- 33.Erlich RL, Jia X, Anderson S, Banks E, Gao X, Carrington M, et al. Next-generation sequencing for HLA typing of class I loci. BMC Genomics. 2011;12:42 Epub 2011/01/20. PubMed Central PMCID: PMC3033818. 10.1186/1471-2164-12-42 [DOI] [PMC free article] [PubMed] [Google Scholar]
- 34.Webb EL, Mawa PA, Ndibazza J, Kizito D, Namatovu A, Kyosiimire-Lugemwa J, et al. Effect of single-dose anthelmintic treatment during pregnancy on an infant's response to immunisation and on susceptibility to infectious diseases in infancy: a randomised, double-blind, placebo-controlled trial. Lancet. 2011;377(9759):52–62. PubMed Central PMCID: PMCPMC3018567. 10.1016/S0140-6736(10)61457-2 [DOI] [PMC free article] [PubMed] [Google Scholar]
Associated Data
This section collects any data citations, data availability statements, or supplementary materials included in this article.
Supplementary Materials
Data Availability Statement
2 x 250bp whole-genome sequencing data are available from the 1000 Genomes FTP server (ftp://ftp.1000genomes.ebi.ac.uk/vol1/ftp/phase3/data/). 2 x 100bp whole-genome sequencing are available from ENA (http://www.ebi.ac.uk/ena/data/view/ERP001960). All sample HLA types are listed in S1 Text. The African Partnership for Chronic Disease Research (APCDR) committees are responsible for curation, storage, and sharing of the phenotypic and genetic data data under managed access (Ugandan cohort). The sequence data have been deposited at the European Genome-phenome Archive (EGA, http://www.ebi.ac.uk/ega/, study/dataset accession number EGAS00001001998) and can be requested through datasharing@sanger.ac.uk. Requests for access to phenotype data may be directed to data@apcdr.org.