Abstract
Summary
Reference genomes are refined to reflect error corrections and other improvements. While this process improves novel data generation and analysis, incorporating data analyzed on an older reference genome assembly requires transforming the coordinates and representations of the data to the new assembly. Multiple tools exist to perform this transformation for coordinate-only data types, but none supports accurate transformation of genome-wide short variation. Here we present GenomeWarp, a tool for efficiently transforming variants between genome assemblies. GenomeWarp transforms regions and short variants in a conservative manner to minimize false positive and negative variants in the target genome, and converts over 99% of regions and short variants from a representative human genome.Availability and implementation
GenomeWarp is written in Java. All source code and the user manual are freely available at https://github.com/verilylifesciences/genomewarp.Supplementary information
Supplementary data are available at Bioinformatics online.Free full text
GenomeWarp: an alignment-based variant coordinate transformation
Associated Data
Abstract
Summary
Reference genomes are refined to reflect error corrections and other improvements. While this process improves novel data generation and analysis, incorporating data analyzed on an older reference genome assembly requires transforming the coordinates and representations of the data to the new assembly. Multiple tools exist to perform this transformation for coordinate-only data types, but none supports accurate transformation of genome-wide short variation. Here we present GenomeWarp, a tool for efficiently transforming variants between genome assemblies. GenomeWarp transforms regions and short variants in a conservative manner to minimize false positive and negative variants in the target genome, and converts over 99% of regions and short variants from a representative human genome.
Availability and implementation
GenomeWarp is written in Java. All source code and the user manual are freely available at https://github.com/verilylifesciences/genomewarp.
Supplementary information
Supplementary data are available at Bioinformatics online.
1 Introduction
The Human Genome Project produced the first full draft of the human genome sequence (International Human Genome Sequencing Consortium, 2001). Since then, the assembly of the human genome has been refined and updated multiple times (International Human Genome Sequencing Consortium, 2004). Higher quality reference genome sequences improve the mapping and alignment of sequence read data, but present challenges for integrating data mapped to other genome assembly versions.
The task of converting genomic regions between genome assemblies, known as lift over, is performed by creating gapped pairwise alignment chains (Kent et al., 2003) between the assemblies and then transforming the region coordinates based on those chains. Many tools perform genomic region lift over, including UCSC LiftOver (Kuhn et al., 2013) and CrossMap (Zhao et al., 2014). These tools support lift over of multiple data formats, with CrossMap supporting Binary Alignment Map, Browser Extensible Data, BigWig, General Feature Format, Gene transfer format, Sequence Alignment Map, Wiggle and Variant Call Format (VCF).
An unsupported data type of particular interest is genome-wide variation, in which both variations with respect to the reference assembly and regions that confidently match the reference assembly are encoded. These data are semantically distinct from VCF, as they allow disambiguation between regions in which genotypes are unknown and those that confidently match the reference. As such, genome-wide variation data attempt to represent an individual’s entire genome sequence, encoded with respect to the reference. Genome-wide variation data are often formatted as a Genome VCF (gVCF) file, which encodes variant sites and confidently called regions of the genome in distinct rows. Many popular variant callers, including DeepVariant (Poplin et al., 2018) and GATK HaplotypeCaller (Van der Auwera et al., 2013), emit gVCF output and gVCF files are widely used as input to joint genotyping algorithms (Lin et al., 2018; Poplin et al., 2017).
Translating genome-wide variation data between genome assemblies is more complex than coordinate-only transformations owing to changes in the sequence content between genome assemblies (Fig. 1). Here we describe GenomeWarp, a tool for converting genome-wide short variation data between genome assemblies. Its algorithm is tuned to minimize false positive and negative variants induced by transformation, by marking regions that cannot be guaranteed to transform correctly as unknown. When realigning and recalling variants in a target genome is infeasible, GenomeWarp can accurately convert callsets across genome assemblies.
2 Materials and methods
The workflow of GenomeWarp is as follows (Supplementary Fig. S1): an input gVCF is modified into source variants and confidently called source regions. The regions are preprocessed to contain only canonical DNA characters by splitting any regions that contain ambiguous bases into non-overlapping regions that exclude those characters. The resulting source regions are then lifted over to the target assembly via a chain file of pairwise alignments, resulting in raw target region outputs. Because chain files can map multiple regions in the source assembly to a single region in the target assembly, target regions are post-processed to omit overlapping regions (Supplementary Fig. S2). For each confidently called region that is lifted over to the target assembly, all variant records within the region are collectively considered jointly with the reference sequences to transform the representations into the set of target assembly variants that reflect the same sequence content.
Many edge cases must be handled to accurately transform variants within a confidently called region from a source assembly to a target assembly (Fig. 1). The general transformation algorithm requires creating individual haplotypes based on the source and resolving them with respect to the target (Supplementary Fig. S3). However, because the human genome assemblies are quite similar in mapped sequence content (Supplementary Table S1), the general algorithm is rarely needed in practice and simpler transformations can be applied in common cases. GenomeWarp classifies regions based on reference genome composition, whether the homologous regions between assemblies are on the same genome strand, and whether the region contains any insertion/deletion (indel) variants (Supplementary Table S2). A subset of all region type transformations is supported in GenomeWarp v1.2; regions that require haplotype alignment are not transformed. By avoiding alignment, the algorithm does not have to match the alignment parameters used in the original chain file. Unsupported transformations cause the associated confidently called region and its constituent variants to be omitted, effectively turning them into unknown regions. This ensures that the final output of GenomeWarp accurately reflects all variants within the confidently called regions present in the target assembly.
The utility of GenomeWarp is demonstrated by its conversion of HG001, the pilot benchmark callset of the Genome in a Bottle Consortium (GiaB) (Zook et al., 2014), from the GRCh37 to the GRCh38 assembly (Supplementary Table S3). While the GiaB benchmarking regions are likely easier to transform than regions of higher complexity, this should affect performance of all transformation tools. Over 99.9% of benchmarking regions whose coordinates can be lifted over to GRCh38 are successfully transformed, along with 99.4% of single nucleotide variants and 98.7% of indels. Compared to existing conversion methods, GenomeWarp reduces erroneous single nucleotide polymorphisms 19–35-fold and erroneous indels 9–10-fold (Supplementary Note). Indeed, GenomeWarp was used in the generation of subsequent GiaB GRCh38 reference materials for Complete Genomics, Ion Torrent and SOLiD data (Zook et al., 2019). GenomeWarp completed the conversion using one 2.8 GHz core and 20 GB RAM in 13 min, in contrast to the hundreds of core hours required to align reads and call variants directly. Memory and compute resources scale linearly in the number of regions and variants in the source assembly, and work can be sharded across chromosomes to reduce the total RAM required.
The gold standard methodology for identifying variation in a genome assembly is to align reads to that assembly and call variants based on those reads. However, this gold standard may not be possible if the raw reads no longer exist or are otherwise unavailable for analysis. Realigning and recalling variants may also be impractical for computational or cost considerations. In these cases, GenomeWarp provides a computationally efficient mechanism to accurately transform genome-wide short variation data from one assembly to another.
Acknowledgements
We would like to thank J. Dijamco and G. Corrado for critical reading of the manuscript and GitHub contributors for their pull requests.
Funding
This work was supported by Verily Life Sciences and Google LLC, C.Y.M. and R.P.
Conflict of Interest: M.A.D. are employees of and own stock in Google.
References
- International Human Genome Sequencing Consortium (2001) Initial sequencing and analysis of the human genome. Nature, 409, 860–921. [Abstract] [Google Scholar]
- International Human Genome Sequencing Consortium (2004) Finishing the euchromatic sequence of the human genome. Nature, 431, 931–945. [Abstract] [Google Scholar]
- Kent W.J. et al. (2003) Evolution’s cauldron: duplication, deletion, and rearrangement in the mouse and human genomes. Proc. Natl. Acad. Sci. USA, 100, 11484–11489. [Europe PMC free article] [Abstract] [Google Scholar]
- Kuhn R.M. et al. (2013) The UCSC genome browser and associated tools. Brief. Bioinform., 14, 144–161. [Europe PMC free article] [Abstract] [Google Scholar]
- Lin M.F. et al. (2018) GLnexus: joint variant calling for large cohort sequencing. bioRxiv, 10.1101/343970. [Google Scholar]
- Poplin R. et al. (2017) Scaling accurate genetic variant discovery to tens of thousands of samples. bioRxiv, 10.1101/201178. [Google Scholar]
- Poplin R. et al. (2018) Creating a universal SNP and small indel variant caller with deep neural networks. Nat. Biotechnol., 36, 983–987. [Abstract] [Google Scholar]
- Van der Auwera G.A. et al. (2013) From FastQ data to high-confidence variant calls: the genome analysis toolkit best practices pipeline. Curr. Protoc. Bioinformatics, 43, 11.10.1–11.10.33. [Europe PMC free article] [Abstract] [Google Scholar]
- Zhao H. et al. (2014) CrossMap: a versatile tool for coordinate conversion between genome assemblies. Bioinformatics, 30, 1006–1007. [Europe PMC free article] [Abstract] [Google Scholar]
- Zook J.M. et al. (2014) Integrating human sequence data sets provides a resource of benchmark SNP and indel genotype calls. Nat. Biotechnol., 32, 246–251. [Abstract] [Google Scholar]
- Zook J.M. et al. (2019) An open resource for accurately benchmarking small variant and reference calls. Nat. Biotechnol., 10.1038/s41587-019-0074-6. [Europe PMC free article] [Abstract] [Google Scholar]
Articles from Bioinformatics are provided here courtesy of Oxford University Press
Full text links
Read article at publisher's site: https://doi.org/10.1093/bioinformatics/btz218
Read article for free, from open access legal sources, via Unpaywall: https://academic.oup.com/bioinformatics/article-pdf/35/21/4389/30330674/btz218.pdf
Citations & impact
Impact metrics
Article citations
BCFtools/liftover: an accurate and comprehensive tool to convert genetic variants across genome assemblies.
Bioinformatics, 40(2):btae038, 01 Jan 2024
Cited by: 1 article | PMID: 38261650 | PMCID: PMC10832354
Detecting archaic introgression and modeling multiple-wave admixture with ArchaicSeeker 2.0.
STAR Protoc, 3(2):101314, 14 Apr 2022
Cited by: 6 articles | PMID: 35496797 | PMCID: PMC9038769
Genomic and Transcriptomic Analyses Reveals ZNF124 as a Critical Regulator in Highly Aggressive Medulloblastomas.
Front Cell Dev Biol, 9:634056, 18 Feb 2021
Cited by: 8 articles | PMID: 33681213 | PMCID: PMC7930499
Data
Data behind the article
This data has been text mined from the article, or deposited into data resources.
BioStudies: supplemental material and supporting data
Similar Articles
To arrive at the top five similar articles we use a word-weighted algorithm to compare words from the Title and Abstract of each citation.
simuG: a general-purpose genome simulator.
Bioinformatics, 35(21):4442-4444, 01 Nov 2019
Cited by: 17 articles | PMID: 31116378 | PMCID: PMC6821417
BCFtools/liftover: an accurate and comprehensive tool to convert genetic variants across genome assemblies.
Bioinformatics, 40(2):btae038, 01 Jan 2024
Cited by: 1 article | PMID: 38261650 | PMCID: PMC10832354
AGILE: an assembled genome mining pipeline.
Bioinformatics, 35(7):1252-1254, 01 Apr 2019
Cited by: 2 articles | PMID: 30184049
Assemblytics: a web analytics tool for the detection of variants from an assembly.
Bioinformatics, 32(19):3021-3023, 17 Jun 2016
Cited by: 184 articles | PMID: 27318204 | PMCID: PMC6191160
Funding
Funders who supported this work.