- Research Article
- Open Access
Impact of index hopping and bias towards the reference allele on accuracy of genotype calls from low-coverage sequencing
Genetics Selection Evolution volume 50, Article number: 64 (2018)
Inherent sources of error and bias that affect the quality of sequence data include index hopping and bias towards the reference allele. The impact of these artefacts is likely greater for low-coverage data than for high-coverage data because low-coverage data has scant information and many standard tools for processing sequence data were designed for high-coverage data. With the proliferation of cost-effective low-coverage sequencing, there is a need to understand the impact of these errors and bias on resulting genotype calls from low-coverage sequencing.
We used a dataset of 26 pigs sequenced both at 2× with multiplexing and at 30× without multiplexing to show that index hopping and bias towards the reference allele due to alignment had little impact on genotype calls. However, pruning of alternative haplotypes supported by a number of reads below a predefined threshold, which is a default and desired step of some variant callers for removing potential sequencing errors in high-coverage data, introduced an unexpected bias towards the reference allele when applied to low-coverage sequence data. This bias reduced best-guess genotype concordance of low-coverage sequence data by 19.0 absolute percentage points.
We propose a simple pipeline to correct the preferential bias towards the reference allele that can occur during variant discovery and we recommend that users of low-coverage sequence data be wary of unexpected biases that may be produced by bioinformatic tools that were designed for high-coverage sequence data.
Sequence data has the potential to empower identification of causal variants that underlie quantitative traits or diseases, to enhance livestock breeding, and to increase the precision and scope of population genetic studies. For sequence data to be used routinely in research and breeding, low-cost sequencing strategies must be used to assemble large datasets that cover most of the genetic diversity in a population. Such low-cost strategies could involve sequencing large numbers of individuals at low coverage, followed by imputation of whole-genome sequence data [1,2,3].
Current sequencing technologies have inherent sources of errors and bias that affect the quality of the resulting sequence data. Some biases affect the ability to successfully generate and align reads that cover regions with structural complexity, extreme base compositions, or particular sequence motifs [4,5,6,7,8]. Biases, together with other sources of errors, also increase the error rate in genotype calls [9,10,11]. Among these, two of the most important causes of incorrect genotype calls are index hopping and preferential bias of some bioinformatic tools towards the reference allele. The impact of these artefacts is likely greater for low-coverage data than for high-coverage data because low-coverage data has scant information and many standard tools for processing sequence data were designed for high-coverage data. With the proliferation of cost-effective low-coverage sequencing, there is a need to understand the impact of these artefacts on resulting genotype calls.
Index hopping has a biochemical cause and appears in the early stages of sequencing. Currently, the most widely used high-throughput sequencing platform is the HiSeq series of instruments from Illumina Inc. Due to the large sequencing capacity of these platforms, several samples are often sequenced jointly within a single flow cell channel by multiplexing. To link multiplexed sequence reads to the original samples, the adapter sequences used during library preparation include a set of unique index sequences. However, spurious extensions of library fragments with an incorrect sample index can occur during the exclusion-amplification (ExAmp) clustering that is used by the Illumina instruments when free adapters are present in a library pool. This leads to misassignment of sequence reads between samples in the multiplex. Recently, alarming data showed index hopping incidences of up to 10% . These results sparked debate and concern about index hopping, although some subsequent studies reported a low incidence for most applications [13,14,15], which is in line with expectations if cleaning protocols are used to remove free adapters from the libraries . While these results are reassuring, they pertained to high-coverage sequence data and the effect of index hopping on low-coverage sequence data and its downstream analysis remains unclear.
Preferential bias of some bioinformatic tools towards the reference allele (i.e., the allele that is present in the reference genome sequence) can be observed in sequence data following bioinformatic processing. It originates mainly during read alignment, but it can also occur during variant discovery and genotyping. Alignment of sequence reads onto a haploid reference genome relies on the calculation of similarity scores between reads and the reference genome. The more a read diverges from the reference, the less likely it is to align appropriately. This disfavours the alignment of reads that carry the alternative allele at a variant site because such reads have at least one additional mismatch to the reference genome compared to reads that carry the reference allele. If a read covers multiple variant sites and carries alternative alleles at multiple sites, the probability of aligning that read decreases even further, which in turn produces a stronger reference allele bias in highly polymorphic regions. This can lead to biases in downstream applications, e.g., in the estimation of allele frequencies [9, 17].
Another potential source of bias towards the reference allele can occur during variant discovery and genotyping. One of the most popular variant callers is GATK HaplotypeCaller , which provides a pipeline for efficient joint genotyping of multiple samples. In the GATK Best Practices pipeline, variant discovery and joint genotyping of multiple samples are performed as two separate steps [18, 19]. In the variant discovery step, read information for each site of the reference genome is stored for each individual sample in a gVCF file, which differs from the traditional VCF file in that it stores information of the non-variant sites as well as the variant sites. In the joint genotyping step, the gVCF files that have been created separately for each individual are combined, and genotypes are called for all individuals at all sites that are variant for at least one individual in the sequenced population. Compared to other pipelines, this two-step process has the advantage that only the genotyping is done jointly for all the samples and not the variant discovery itself, which is the most computationally demanding step. This two-step process improves scalability and facilitates incorporation of new batches of sequenced individuals for the joint genotyping step. However, GATK HaplotypeCaller was designed for high-coverage sequencing and, to our knowledge, its performance in low-coverage sequencing has not been assessed.
In this study, we explored the impact of index hopping and bias towards the reference allele in low-coverage sequence data. We show that index hopping and bias towards the reference allele due to alignment have little impact on genotype calls. However, unexpected biases may arise from pipelines that apply tools that were designed for high-coverage sequence data to low-coverage sequence data. In particular, we describe how a function from GATK HaplotypeCaller that is very useful for high-coverage data introduces a strong bias towards the reference allele when used on low-coverage data. We propose a new pipeline that avoids this bias. The results in this paper show the importance of validating the performance of tools designed for high-coverage data on low-coverage data.
Twenty-six commercial pigs were used in this study. Tissue samples were collected from ear punches or tail clippings and genomic DNA was extracted using Qiagen DNeasy 96 Blood & Tissue kits (Qiagen Ltd., Mississauga, ON, Canada). Paired-end library preparation was conducted using the TruSeq DNA PCR-free protocol (Illumina, San Diego, CA). Two sets of libraries were produced; one with an average insert size of 350 bp and the other with an average insert size of 550 bp. Libraries with an average insert size of 350 bp were sequenced on a HiSeq 4000 instrument (Illumina, San Diego, CA), for a target coverage of 2× per sample. For this, all 26 samples were multiplexed within a single flow cell channel. Libraries with an average insert size of 550 bp were sequenced on a HiSeq X instrument (Illumina, San Diego, CA), for a target coverage of 30× per sample. For this, the 26 samples were sequenced, one sample per flow cell channel. All libraries were sequenced at Edinburgh Genomics (Edinburgh Genomics, University of Edinburgh, Edinburgh, UK). DNA samples from the same pigs were also genotyped using the GGP-Porcine HD BeadChip (GeneSeek, Lincoln, NE).
DNA sequence reads were pre-processed using Trimmomatic  to remove adapter sequences from the reads. Then, the reads were aligned to the reference genome Sscrofa11.1 (GenBank accession: GCA_000003025.6) using the BWA-MEM algorithm with default settings and the option of marking shorter split hits as secondary alignment . Duplicates were marked with Picard (http://broadinstitute.github.io/picard). Single nucleotide polymorphisms (SNPs) and short insertions and deletions (indels) were identified with the variant caller GATK HaplotypeCaller (GATK 3.8.0) [18, 19]. The GATK HaplotypeCaller performs local re-assembly of the reads to generate a list of possible haplotypes in a region by constructing a read-threading graph. Sections of that graph, which are supported by a number of reads (kmers) smaller than a predefined threshold, are considered to be likely sequencing errors and removed from the graph in a step referred to as ‘pruning’. By default, the threshold for pruning is set to ‘–minPruning 2’. We used the default settings but we also performed variant discovery without pruning (–minPruning 1). Variant discovery with GATK HaplotypeCaller was performed separately for each individual. A joint variant set for the 26 individuals was obtained by extracting the variant sites from all the individuals with GATK GenotypeGVCFs. Finally, biallelic SNPs were extracted with VCFtools . To minimise computing costs, we considered variants on chromosome 1 only.
We did not use genotypes that were called directly by GATK GenotypeGVCFs or any other software tool. Instead, we extracted allele read counts (i.e., the coverage that each allele received at each variant site) from the VCF file. Then, we called genotypes based on genotype probabilities that were calculated from allele read counts of the reference allele (nRef) and the alternative allele (nAlt). Genotype probabilities for the reference homozygote (0), heterozygote (1), and alternative homozygote (2) were calculated, respectively, as:
where e is the sequencing error rate, which was assumed to be 0.01. The three probabilities were scaled to sum to 1. Genotype calls were made at three levels of certainty: (1) the most probable genotypes (referred to as ‘best-guess’); (2) genotypes that had a probability greater than 0.90; or (3) genotypes that had a probability greater than 0.98.
Genotype and allele concordance
Genotype concordance was calculated by: (1) comparing genotypes for the same variant from the sequence data and the SNP genotyping array, using the SNP array genotypes as being true; or (2) comparing the same variant from the sequence data at low and high coverage and using the high-coverage genotype calls as being true. Genotype concordance was calculated as the percentage of matches between the true genotypes and the genotype calls. We used the genotypes from all SNPs on chromosome 1 for which there was evidence of allele segregation based on the SNP genotyping array data of the 26 individuals and that were successfully discovered based on the sequence data of these individuals. The number of SNPs tested for concordance with SNP genotyping array data was equal to 5136 for the low-coverage data and 5531 for the high-coverage data. The same set of 5531 SNPs was also used to test the concordance between the low- and high-coverage sequence data. We also calculated allele concordance, as the percentage of matched alleles between the true genotypes and the genotype calls.
Bias towards the reference allele due to variant caller and new pipeline
Initially, we called genotypes using the read counts stored in the gVCF files produced by GATK HaplotypeCaller. For testing potential biases introduced by the variant caller, we also called genotypes using the read counts that were obtained directly from the aligned reads stored in the BAM files. To do this, we extracted the read counts from the BAM files for the variant sites discovered by GATK HaplotypeCaller using pysam (version 0.13.0; https://github.com/pysam-developers/pysam), which is a wrapper around htslib and the samtools package . We excluded reads with a mapping quality MAPQ lower than 20, reads that were not mapped in a proper pair, and secondary alignments. We refer to this method as the ‘new’ pipeline.
Our initial results indicated that there was a strong bias towards the reference allele introduced by the variant caller. Therefore, for all further analyses we used read counts that were obtained from the BAM files with the new pipeline for genotyping. We called genotypes for the 5531 variant sites on chromosome 1 discovered from the high-coverage sequence data that had already been genotyped using the SNP genotyping array.
Bias towards the reference allele due to alignment
In this study, we defined alignment bias to be the differential alignment of almost-identical reads that differed only in one allele at a given variant site, regardless of whether it was the reference or alternative allele. To quantify the alignment bias, we aligned the 2× data against two reference genomes: the ‘original’ reference genome (GenBank accession: GCA_000003025.6) and a ‘tailored’ reference genome. The tailored reference genome was created by replacing the reference allele with the alternative allele at all variant sites discovered across the 26 individuals with the 30× sequence data from chromosome 1. Thus, the allele that was originally the alternative allele became the reference allele in the tailored reference genome and vice versa. We extracted the allele read counts from the aligned reads in the BAM files that were generated with both reference genomes. The allele read counts were used to call genotypes for evaluating genotype concordance between the 2× data and the true genotypes (from the 30× data). Genotypes were called from the allele read counts obtained with either: (1) the original reference genome (REF), or (2) the tailored reference genome (ALT). Because REF could favour the alignment of reads that carry the reference allele and disfavour the alignment of reads that carry the alternative allele, and vice versa for ALT, we also considered two additional cases that were a combination of the previous two: (3) read counts for the reference allele from the original reference genome and read counts for the alternative allele from the tailored reference genome (CIS), and (4) vice versa, read counts for the reference allele from the tailored reference genome and read counts for the alternative allele from the original reference genome (TRANS). Thus, the CIS case used allele read counts that had a more favourable alignment for each allele, and, in contrast, the TRANS case used allele read counts that had a more unfavourable alignment for each allele.
In order to quantify the incidence of index hopping in our 2× dataset, we generated 2× data that either were free of index hopping or had different levels of simulated index hopping. The 2× data free of index hopping were generated by down-sampling the 30× data (i.e., random sampling of ~ 1/15 of the 30× reads), which had been generated without multiplexing (1 sample per lane). The resulting down-sampled 2× data was used to obtain baseline sequence data in the absence of index hopping. Then, index hopping was introduced in this data by randomly assigning reads to other individuals with a probability of 0.1, 0.5, 1, 2, or 5%. For each of these cases, we down-sampled the data independently before simulating index hopping to account for the random sampling of reads that occurs during sequencing.
To analyse the data, genotypes in each dataset were called as described above (best-guess or above a certain probability threshold) but also with an additional method that was more sensitive to index hopping based on the presence/absence of each allele. With this presence/absence method, the presence of a single read that supported the opposite allele was sufficient to change the genotype call (e.g., the genotype call with nRef = 10 and nAlt = 0 would be homozygous but the genotype call with nRef = 10 and nAlt = 1 would be heterozygous). Note that this method is equivalent to calling best-guess genotypes with null sequencing error rate.
To predict the level of index hopping level in the observed 2× dataset, we regressed the percentages of genotype concordance on the level of index hopping. Concordance percentages represent relative, rather than absolute, information and therefore should not be analysed using standard statistical techniques that are defined in real space, which has an absolute scale . In order to validate the estimates of the level of index hopping with a methodology that was more appropriate for compositional data, we also analysed the data using isometric log-ratio transformations (ilr) of the concordance percentages [25, 26]. The ilr were the log-ratios of the percentage of correct calls against the percentages of incorrect calls or the log-ratios of the percentage of correct homozygous calls against the percentage of incorrect heterozygous calls. We fitted a quadratic regression of the ilr variables on the level of index hopping.
Most of the SNPs present on the SNP genotyping array were discovered using sequence data, both at high and low coverage. The number of biallelic SNPs discovered on chromosome 1 with high- and low-coverage data is in Table 1. A total of 1,693,308 biallelic SNPs were discovered with the high-coverage data and 1,333,943 with the low-coverage data. The low-coverage sequence data contained 76.3% (1,292,269) of the biallelic SNPs that were discovered with the high-coverage data. The SNP genotyping array had 5779 SNPs on chromosome 1 that segregated in the 26 sequenced individuals. Of these, 95.7% (5531) were discovered with the high-coverage data and 88.9% (5136) with the low-coverage data.
Disabling the pruning step in GATK HaplotypeCaller for processing the low-coverage data increased the number of variants discovered but also the number of potential false positives. The numbers of biallelic SNPs discovered on chromosome 1 with low-coverage data with or without pruning are in Table 2. When pruning was disabled, 1,877,644 biallelic SNPs were discovered with the low-coverage data. This number was larger than the set of variants discovered with the high-coverage data with the default pruning settings (Table 1). However, 24.1% of these extra SNPs could not be validated using the high-coverage data, which is a much greater proportion than when pruning was used (3.1%).
Genotype concordance and bias towards the reference allele due to variant caller
The variant caller that we used introduced a bias towards the reference allele and this had a large impact on genotype calling with low-coverage data. Table 3 shows the genotype concordance for calls that were obtained with the allele read counts from the gVCF files produced by GATK HaplotypeCaller. This table shows that there was a large bias towards the reference allele with the low-coverage sequence data. In the most extreme case of sites with 1× coverage, we would expect the genotypes that are heterozygous according to the SNP genotyping array to be called as either of the two possible homozygotes, ‘0’ and ‘2’, 50% of the times. Instead, we called them as reference homozygotes ‘0’ 95.1% of the times and as alternative homozygotes ‘2’ only 4.9% of the times. Also, at 1× coverage, 82.0% of the alternative homozygotes ‘2’ were called as reference homozygotes ‘0’. Because of this bias, the overall genotype concordance was only 62.1% and the allele concordance was only 77.6%.
The bias towards the reference allele due to the variant caller can be avoided by calling genotypes from the read counts that are obtained directly from the aligned reads stored in BAM files. Table 4 shows the genotype concordance obtained with the new pipeline using allele read counts that were extracted directly from BAM files. The bias was corrected and the concordances matched expectations. Overall, genotype and allele concordances rose to 81.1 and 90.5%, respectively. As expected, most of the incorrect calls arose from the difficulty of calling heterozygous genotypes at low coverage.
Disabling pruning was not as good a solution for correcting the bias as the new pipeline of extracting the allele read counts from the BAM files. Table 2 shows genotype and allele concordances with the default pruning setting and without pruning. Without pruning, the genotype and allele concordances rose to 76.5 and 87.5%, respectively, but these percentages were lower than with the new pipeline.
Once the bias towards the reference allele due to the variant caller was corrected, the concordance at homozygous sites was very high, regardless of the conservativeness of the genotype calls, but these thresholds were important for concordance at heterozygous sites. Table 5 shows genotype concordance between calls with low- and high-coverage data obtained as best-guess genotypes or with a minimum probability of 0.90 or 0.98. At reference and alternative homozygous sites, the best-guess genotypes had an overall concordance of 98.5 and 98.2%, which was greater than the concordance of calls with a minimum probability of 0.90 (97.2 and 96.4%, respectively), despite the latter being called with a greater level of certainty. The reason for this is that with a minimum probability of 0.90, there is not enough certainty for calling any genotype at sites with a coverage of 1×, and at sites with a coverage of 2× or 3×, only potential heterozygotes (either true or false), but not homozygotes, can be called due to the considered error rate. While the number of homozygotes that were incorrectly called as heterozygous was actually very small, the impact of these incorrect calls on overall concordance was noticeable because the low-coverage data had many more loci with 2× and 3× coverage than with 4× or greater coverage. A similar situation occurred with genotype calls that had a minimum probability of 0.98.
At heterozygous loci, it was very difficult to call heterozygotes at the lowest coverages. Because of the large proportion of loci with low coverage, the genotype concordance of heterozygous loci with best-guess genotypes was 52.4%. With more conservative calls, the heterozygotes were called more accurately and the genotype concordance was 93.3 and 98.3% with minimum probabilities of 0.90 and 0.98, respectively. However, there was a trade-off between the concordance of called genotypes and the number of called genotypes. With more conservative calls, the number of called genotypes was only a small fraction of those that could be called using best-guess genotypes: 33.7% with a minimum probability of 0.90 and only 8.3% with a minimum probability of 0.98.
Bias towards reference allele due to alignment
Reads with an allele that was present in the reference genome had a greater probability of successful alignment, but the difference was small. Table 6 shows the average allele read counts depending on which allele was in the reference genome. Approximately 1.3% of reads were not aligned when the reference genome contained the opposite allele than the read. The number of reads that carried the allele in the reference genome but that were incorrectly mapped to a site where the individual was homozygous for the opposite allele increased by 9.8% due to the alignment bias, but these potentially mismapped reads represented only a small fraction of the total.
However, the impact of the bias towards the reference allele due to alignment on the genotype calls is likely to be small. Table 7 shows the genotype concordance between low- and high-coverage sequence data after alignment with the original reference genome (REF), the tailored reference genome (ALT), or a combination of both (CIS and TRANS). Use of the REF or ALT reference genomes introduced some bias towards homozygote calls for the reference or the alternative allele, respectively. Use of the CIS combination, where the allele read counts were obtained from the most favourable case for each (i.e., the reference genome contained that same allele), increased the number of genotype calls regardless of the conservativeness of the calls and increased the ability of correctly calling heterozygotes with lower levels of certainty. In contrast, use of the TRANS combination, where the allele read counts were obtained from the least favourable case for each (i.e., the reference genome contained the opposite allele), reduced the number of genotype calls and the ability to correctly call heterozygotes. Overall, changes in best-guess genotype concordance were small and the percentage of incorrect calls between the use of CIS (most favourable case) and REF (current practice) differed only by 0.1 absolute percentage points.
Index hopping was estimated to be around 1.5% in our dataset. The results of using the method based on presence/absence of each allele, which is more sensitive to index hopping, are in Table 8, which shows the genotype concordance for the real and simulated data. Regression of genotype concordance for homozygotes on the level of index hopping had a very high R2 (≥ 0.99), while the R2 was less than 0.05 for heterozygotes. Similarly, regression of ilr transformations of concordance on the level of index hopping also had a high R2 when calculated for homozygotes (≥ 0.98). In all cases, the level of index hopping was estimated to range from 1.3 to 1.8%.
Results obtained using the concordance variables of best-guess genotypes and genotypes called with probabilities higher than 0.90 and 0.98, largely supported the results for the presence/absence calling method (data not provided). Results obtained using the concordance variables of best-guess genotypes gave estimates of the level of index hopping ranging from 1.3 to 1.8% (R2 ≥ 0.99). The concordance variables of genotypes with probabilities higher than 0.98 were less sensitive to index hopping and resulted in a lower regression fit and lower or unreliable estimates of the level of index hopping (1.1–1.3%, R2 = 0.96–0.99, for percentages; 1.4–1.7% but R2 = 0.81 to 0.97 for ilr). The concordance variables of the genotypes with probabilities higher than 0.90 were in between, with estimates ranging from 1.3 to 1.5% (R2 ≥ 0.99).
Table 9 shows the impact of different levels of index hopping on genotype concordance. Incidences of 1 or 2% of index hopping increased the percentage of incorrect calls from 17.8 to 18.1 or 18.7%, respectively, for best-guess genotypes, from 3.1 to 3.8 or 4.6%, respectively, for genotypes with a probability above 0.90, and from 0.6 to 0.8 or 0.9%, respectively, for genotypes with a probability above 0.98.
We quantified the impact of different sources of sequencing errors and biases towards the reference allele on genotype calls derived from low-coverage data. Index hopping and bias towards the reference allele due to alignment had little impact on genotype calls. However, we found that variant callers can introduce a strong bias towards the reference allele and this has a large impact on genotype calls. This bias is likely to be pipeline specific , but we have detected it using one of the most popular tools for variant discovery. The step that causes this bias was designed for the processing of high-coverage data but introduces a systematic bias when it is applied to low-coverage data. Other unexpected biases may appear when tools designed for use with high-coverage data are used to process low-coverage data. Awareness of these biases allowed us to design a pipeline that gave significantly more accurate genotype calls from low-coverage sequence data than a standard pipeline. In the following, we discuss each of the sources of errors and biases that we have analysed and our proposed new pipeline for variant discovery and joint genotyping, which addresses the most important source of bias.
Bias towards the reference allele due to variant caller
Tools that are designed for high-coverage sequence data can introduce unexpected biases when used to process low-coverage sequence data. We found that this was the case for the ‘pruning’ step implemented in GATK HaplotypeCaller. During variant discovery, it is virtually impossible to distinguish between a sequencing error and a genuine variant. In order to make variant discovery more robust, different tools use different strategies to identify potential sequencing errors. In the case of GATK HaplotypeCaller, this strategy is the ‘pruning’ step. GATK HaplotypeCaller performs local re-assembly of the reads to generate a list of possible haplotypes in a region by constructing a read-threading graph. Paths of this graph that are supported by a number of reads (kmers) equal or smaller than a predefined threshold are considered to be probably sequencing errors and are removed from the graph (pruned). In the next step of the HaplotypeCaller method, each individual read is aligned against each possible haplotype, including the reference, and a likelihood score is calculated for each read-haplotype pair. Then, the likelihood that a read carries each of the alleles at a site is calculated as the product of the likelihoods of all haplotypes that carry that allele. Finally, the allele with the greatest marginal likelihood is called.
While this is a reasonable strategy for high-coverage sequence data, it introduces a huge bias towards the reference allele when used for low-coverage sequence data. This can be understood intuitively with a simple example. Imagine that at any given site with the reference allele ‘A’ and the alternative allele ‘B’, we have only one read and that this read carries the alternative allele B. The graph path representing the haplotype with the allele B will be supported by only one read and will be pruned out of the graph with the default settings, where at least two reads supporting a path are required. This means that the only haplotype that remains in the graph path is the reference haplotype with allele A. Then, in the next step, this same read with allele B will be paired with all the possible haplotypes. In this case, the only possibility is the reference haplotype with allele A and therefore that read is called as carrying the reference allele A. Thus, instead of the true state with nRef = 0 and nAlt = 1, we end up with the opposite situation with nRef = 1 and nAlt = 0. The same bias would arise with a coverage of 3×, if two reads carry allele A and one read carries allele B. In that case, instead of the true state with nRef = 2 and nAlt = 1, which indicates a heterozygote, we end up with nRef = 3 and nAlt = 0, which indicates a reference homozygote. Then, these biased allele read counts are stored in a gVCF, the file that includes both the variant and non-variant sites and that is used for multi-sample joint genotyping.
The bias in our low-coverage data was so pervasive that it was carried over to downstream analyses and affected imputation accuracy at the population level. We performed preliminary analyses of whole-genome imputation using the hybrid peeling algorithm implemented in AlphaPeel  with sequence data of 1146 individuals, mostly with 2× coverage. We used a leave-one-out design to assess imputation accuracy on 84 individuals that were sequenced at high coverage. To test the impact of the bias on imputation accuracy, we used as input information either the biased allele read counts obtained with pruning or the non-biased allele read counts that were extracted directly from the aligned reads. We estimated that the individual-wise dosage correlations decreased by an average of 0.10 (0.04 SD; max. 0.20) and the individual-wise percentage of correct best-guess genotypes by 7.5 absolute percentage points (3.8% SD; max. 14.7%) as a result of this bias (unpublished data). The imputation algorithm that we used for this test accounts for uncertainty by calculating genotype probabilities from the allele read counts , but the impact of the bias on imputation accuracy could be even greater for imputation algorithms that instead take genotype calls as an input.
Based on our findings, we propose a new pipeline for variant discovery and genotype calling with low-coverage sequence data that takes advantage of the robustness provided by the pruning option of GATK HaplotypeCaller while avoiding bias towards the reference allele. The proposed pipeline has two steps: (1) variant discovery with the default pruning setting of GATK HaplotypeCaller; and (2) genotype calling from the aligned reads stored in the BAM files for the variants discovered.
Variant discovery with GATK HaplotypeCaller
In step 1 of the proposed pipeline, variant discovery is performed with GATK HaplotypeCaller with the default pruning setting on a per-individual basis. Disabling pruning does not seem an appropriate solution for variant discovery with low-coverage sequencing because this increases the number of potential false positives (Table 2), as well as computational time. The pruning option of GATK HaplotypeCaller makes variant discovery more robust to false positives, but there is a trade-off between specificity and sensitivity. While pruning reduces the ability to discover variants from low-coverage data, this can be overcome by sequencing strategies that target haplotypes from the population instead of individuals (e.g., AlphaSeqOpt; [28, 29]) in two ways: (1) sequencing individuals that share large amounts of haplotypes with the population at high coverage ensures discovery of many common variants ; and (2) given that the realized coverage at a base site follows a Poisson distribution and, therefore, every individual has a greater coverage than the average target coverage at many random sites, many variants can be discovered if a sufficiently large number of individuals are sequenced at low coverage, even if pruning is enabled. For instance, with only 26 individuals sequenced at 2× coverage, we discovered 76.3% of the variants that were discovered with the same individuals at 30× coverage. The gap between variants discovered at low or high coverage is expected to decrease with increasing sample sizes.
Genotype calling from aligned reads
In step 2 of the proposed pipeline, a joint list of variant sites is extracted from the individual VCF files and the allele read counts at these sites are extracted from the aligned reads stored in the BAM files for each individual. GATK HaplotypeCaller with pruning induces a bias towards the reference allele when used with low-coverage data. This bias is introduced during variant discovery but manifests itself in the genotype calls if the joint genotyping uses the allele read counts stored in the gVCF or VCF files that are produced by the variant caller. This bias can be avoided if we call genotypes based on allele read counts, which are extracted directly from the aligned reads that are stored in the BAM files using tools such as pysam (https://github.com/pysam-developers/pysam).
The proposed pipeline provides the scalability needed for routine incorporation of new batches of sequenced individuals, using a similar logic as the GATK Best Practices pipeline. In the latter pipeline, information for both variant and non-variant sites is stored for each individual in the gVCF files, which is used later for joint genotyping at all variant sites, but these gVCF or VCF files contain biased allele read counts for low-coverage data. In the new pipeline that we propose, we produce regular VCF files only to obtain a list of all variant sites that have been discovered across the sequenced samples, followed by extracting the raw allele read counts at those sites for all individuals. Using this pipeline, it is very easy to add new batches of samples without having to repeat the joint genotyping by simply extracting the allele read counts for the new individuals and the new variants discovered and adding them to any pre-existing dataset. This also reduces data storage needs because the VCF files are much smaller than the gVCF files.
The proposed pipeline simplifies the processing of large numbers of individuals that are sequenced at low coverage by using available tools. This pipeline gave better genotype and allele concordances than using GATK HaplotypeCaller with disabled pruning. Alternative pipelines based on tools such as SAMtools  or ANGSD  may be equally well-suited for low-coverage sequence data. Pipelines based on imputation tools such as STITCH  may also be unaffected by the bias introduced by the pruning step because, similar to the proposed pipeline, they directly exploit the information from the aligned reads (in this case, the phase information of the reads).
Bias towards the reference allele due to alignment
With the current pig reference genome Sscrofa11.1, bias towards the reference allele due to alignment was very low and its impact on genotype calls was negligible. Our estimates suggest that 1.3% of the reads did not align because the reference genome contained the opposite allele to the read allele and this increased the percentage of incorrect best-guess genotype calls by only 0.1 absolute percentage points. The reference genome Sscrofa11.1 was largely constructed using Pacific Biosciences long reads, with a coverage of 65× and provides much better mapping quality than the previous version Sscrofa10.2 (GenBank accession: GCA_000003025.4). For example, in a 2× coverage sample, the percentage of mapped reads increased from 89% with Sscrofa10.2 to 95% with Sscrofa11.1, the percentage of properly paired reads increased from 77 to 86%, and the percentage of reads with high mapping quality (MAPQ ≥ 40) increased from 71 to 84%. Here, we considered only SNPs but we expect that the alignment bias would have a greater impact when using a lower quality reference genome or in regions of high variability and structural complexity, e.g., in presence of multiple indels. Development of alternative-aware alignment algorithms or genome variation graphs [10, 33] could alleviate bias towards the reference genome due to alignment in the near future, but these methods still have some practical limitations and their use is not yet generalised.
We estimated the level of index hopping in the 26 samples sequenced in a multiplex at 2× coverage to be equal to 1.5%. This was within expectations based on Illumina guidelines (< 2%) . The impact of index hopping on the percentage of incorrect genotype calls depends on the conservativeness of the genotype calls. For conservative calls, the impact was negligible, but for best-guess genotype calls, the percentage of incorrect calls increased by 0.3 to 0.9 absolute percentage points (1.8–5.2% more incorrect calls).
We used a novel empirical method to estimate the level of index hopping that relies on sequencing the same set of samples twice, with and without multiplexing, such that the level of index hopping in the multiplexed data can be measured against a scale of simulated index hopping levels obtained from a set of index hopping-free data. Previously, Owens et al.  proposed a method for testing index hopping that was based on finding heterozygotes with unbalanced read counts for the reference and alternative alleles (e.g., one allele supported by many reads but the opposite allele only by one read), and then estimating index hopping based on the frequency of that opposite allele in the rest of individuals in the multiplex. The advantage of this method is that it uses existing data and does not require the same samples to be sequenced twice. However, this method requires high-coverage data and does not answer how index hopping affects genotype calls.
Our results, together with those of other studies [13, 14], reassure us that the high levels of index hopping reported by Sinha et al.  are unlikely to occur in most applications when good cleaning protocols are followed to remove excess free-floating indexing primers during library preparation or when unique dual indexes are used .
Index hopping and bias towards the reference allele due to alignment have little impact on downstream genotype calls from low-coverage sequence data, but unexpected biases may arise from pipelines that use tools that were designed for high-coverage sequence data on low-coverage sequence data. The step of ‘pruning’ that is implemented in GATK HaplotypeCaller is an example of a feature that is desirable for high-coverage data but that introduces a systematic bias when applied to low-coverage data. We propose a simple new pipeline to correct this bias and we recommend that users of low-coverage sequence data be wary of unexpected biases before using bioinformatic tools that were designed for high-coverage sequencing.
Li Y, Sidore C, Kang HM, Boehnke M, Abecasis GR. Low-coverage sequencing: implications for design of complex trait association studies. Genome Res. 2011;21:940–51.
Hickey JM. Sequencing millions of animals for genomic selection 2.0. J Anim Breed Genet. 2013;130:331–2.
Hickey JM, Gorjanc G, Cleveland MA, Kranis A, Jenko J, Mésázros G, et al. Sequencing millions of animals for genomic selection 2.0. In Proceedings of the 10th World congress on genetics applied to livestock production, 17–22 August 2014; Vancouver; 2014.
Aird D, Ross MG, Chen W-S, Danielsson M, Fennell T, Russ C, et al. Analyzing and minimizing PCR amplification bias in Illumina sequencing libraries. Genome Biol. 2011;12:R18.
Benjamini Y, Speed TP. Summarizing and correcting the GC content bias in high-throughput sequencing. Nucleic Acids Res. 2012;40:e72.
Guo Y, Li J, Li CI, Long J, Samuels DC, Shyr Y. The effect of strand bias in Illumina short-read sequencing data. BMC Genomics. 2012;13:666.
Ross MG, Russ C, Costello M, Hollinger A, Lennon NJ, Hegarty R, et al. Characterizing and measuring bias in sequence data. Genome Biol. 2013;14:R51.
Van den Hoecke S, Verhelst J, Saelens X. Illumina MiSeq sequencing disfavours a sequence motif in the GFP reporter gene. Sci Rep. 2016;6:26314.
Chen X, Listman JB, Slack FJ, Gelernter J, Zhao H. Biases and errors on allele frequency estimation and disease association tests of next-generation sequencing of pooled samples. Genet Epidemiol. 2012;36:549–60.
Li H. Toward better understanding of artifacts in variant calling from high-coverage samples. Bioinformatics. 2014;30:2843–51.
Wall JD, Tang LF, Zerbe B, Kvale MN, Kwok PY, Schaefer C, et al. Estimating genotype error rates from high-coverage next-generation sequence data. Genome Res. 2014;24:1734–9.
Sinha R, Stanley G, Gulati GS, Ezran C, Travaglini KJ, Wei E, et al. Index switching causes “spreading-of-signal” among multiplexed samples in Illumina HiSeq 4000 DNA sequencing. 2017; http://biorxiv.org/lookup/doi/10.1101/125724.
Owens GL, Todesco M, Drummond EBM, Yeaman S, Rieseberg LH. A novel post hoc method for detecting index switching finds no evidence for increased switching on the Illumina HiSeq X. Mol Ecol Resour. 2018;18:169–75.
van der Valk T, Vezzi F, Ormestad M, Dalen L, Guschanski K. Estimating the rate of index hopping on the Illumina HiSeq X platform. 2018; http://biorxiv.org/lookup/doi/10.1101/179028.
Costello M, Fleharty M, Abreu J, Farjoun Y, Ferriera S, Holmes L, et al. Characterization and remediation of sample index swaps by non-redundant dual indexing on massively parallel sequencing platforms. BMC Genomics. 2018;19:332.
Illumina Inc. Effects of index misassignment on multiplexing and downstream analysis. 2017. https://www.illumina.com/content/dam/illumina-marketing/documents/products/whitepapers/index-hopping-white-paper-770-2017-004.pdf. Accessed 1 Sept 2018.
Brandt DYC, Aguiar VRC, Bitarello BD, Nunes K, Goudet J, Meyer D. Mapping bias overestimates reference allele frequencies at the HLA genes in the 1000 genomes project phase I data. G3 (Bethesda). 2015;5:931–41.
Poplin R, Ruano-Rubio V, DePristo MA, Fennell TJ, Carneiro MO, Van der Auwera GA, et al. Scaling accurate genetic variant discovery to tens of thousands of samples. 2017; http://biorxiv.org/lookup/doi/10.1101/201178.
DePristo MA, Banks E, Poplin R, Garimella KV, Maguire JR, Hartl C, et al. A framework for variation discovery and genotyping using next-generation DNA sequencing data. Nat Genet. 2011;43:491–8.
Bolger AM, Lohse M, Usadel B. Trimmomatic: a flexible trimmer for Illumina sequence data. Bioinformatics. 2014;30:2114–20.
Li H. Aligning sequence reads, clone sequences and assembly contigs with BWA-MEM. arXiv:1303.3997v1 [q-bio.GN].
Danecek P, Auton A, Abecasis G, Albers CA, Banks E, DePristo MA, et al. The variant call format and VCFtools. Bioinformatics. 2011;27:2156–8.
Li H, Handsaker B, Wysoker A, Fennell T, Ruan J, Homer N, et al. The sequence alignment/map format and SAMtools. Bioinformatics. 2009;25:2078–9.
Aitchison J. The statistical analysis of compositional data. London: Chapman and Hall; 1986.
Egozcue JJ, Pawlowsky-Glahn V, Mateu-Figueras G, Barceló-Vidal C. Isometric logratio transformations for compositional data analysis. Math Geol. 2003;35:279–300.
Ros-Freixedes R, Estany J. On the compositional analysis of fatty acids in pork. J Agric Biol Environ Stat. 2014;19:136–55.
Whalen A, Ros-Freixedes R, Wilson DL, Gorjanc G, Hickey JM. Hybrid peeling for fast and accurate calling, phasing, and imputation with sequence data of any coverage in pedigrees. 2017; http://biorxiv.org/lookup/doi/10.1101/228999.
Gonen S, Ros-Freixedes R, Battagin M, Gorjanc G, Hickey JM. A method for the allocation of sequencing resources in genotyped livestock populations. Genet Sel Evol. 2017;49:47.
Ros-Freixedes R, Gonen S, Gorjanc G, Hickey JM. A method for allocating low-coverage sequencing resources by targeting haplotypes rather than individuals. Genet Sel Evol. 2017;49:78.
Xu C, Wu K, Zhang JG, Shen H, Deng HW. Low-, high-coverage, and two-stage DNA sequencing in the design of the genetic association study. Genet Epidemiol. 2017;41:187–97.
Korneliussen TS, Albrechtsen A, Nielsen R. ANGSD: analysis of next generation sequencing data. BMC Bioinform. 2014;15:356.
Davies RW, Flint J, Myers S, Mott R. Rapid genotype imputation from sequence without reference panels. Nat Genet. 2016;48:965–9.
Paten B, Novak AM, Eizenga JM, Garrison E. Genome graphs and the evolution of genome inference. Genome Res. 2017;27:665–76.
RRF, AJM, SDR and JHM designed the study; RRF performed the analyses; RRF wrote the first draft; MB, MJ, GG, AJM, SDR, and JHM assisted in the interpretation of the results and provided comments on the manuscript. All authors read and approved the final manuscript.
This work made use of the resources provided by the Edinburgh Compute and Data Facility (ECDF) (http://www.ecdf.ed.ac.uk/).
The authors declare that they have no competing interests.
Availability of data and materials
The datasets generated and analysed in this study are derived from the PIC breeding programme and are not publicly available.
Consent for publication
Ethics approval and consent to participate
The samples used in this study were derived from the routine breeding activities of PIC.
The authors acknowledge the financial support from the BBSRC ISPG to The Roslin Institute BBS/E/D/30002275, from Genus plc, Innovate UK (Grant 102271), and from grant numbers BB/N004736/1, BB/N015339/1, BB/L020467/1, and BB/M009254/1. M. Johnsson acknowledges financial support from the Swedish Research Council Formas Dnr 2016-01386.
Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.
About this article
Cite this article
Ros-Freixedes, R., Battagin, M., Johnsson, M. et al. Impact of index hopping and bias towards the reference allele on accuracy of genotype calls from low-coverage sequencing. Genet Sel Evol 50, 64 (2018) doi:10.1186/s12711-018-0436-4