Literature DB >> 29764422

hmmIBD: software to infer pairwise identity by descent between haploid genotypes.

Stephen F Schaffner1,2, Aimee R Taylor3,4, Wesley Wong5,6, Dyann F Wirth3,5, Daniel E Neafsey3,5.   

Abstract

BACKGROUND: A number of recent malaria studies have used identity by descent (IBD) to study epidemiological processes relevant to malaria control. In this paper, a software package, hmmIBD, is introduced for estimating pairwise IBD between haploid genomes, such as those of the malaria parasite, sampled from one or two populations. Source code is freely available.
METHODS: The performance of hmmIBD was verified using simulated data and benchmarked against an existing method for detecting IBD within populations. Code for all tests is freely available. The utility of hmmIBD for detecting IBD across populations was demonstrated using Plasmodium falciparum data from Cambodia and Ghana.
RESULTS: Alongside an existing method, hmmIBD was highly accurate, sensitive and specific. It is fast, requiring only 70 s on average to analyse 50 whole genome sequences on a laptop computer, and scales linearly in the number of pairwise comparisons. Treatment of different populations under hmmIBD improves detection of IBD across populations.
CONCLUSION: Fast and accurate software for detecting IBD in malaria parasite genetic data sampled from one or two populations is presented. The latter will likely be a useful feature for malaria elimination efforts, since it could facilitate identification of imported malaria cases. Software is robust to possible misspecification of the genotyping error and the recombination rate. However, exclusion of data in regions whose rates vary greatly from their genome-wide average is recommended.

Entities:  

Keywords:  Haploid; Hidden Markov model; Identity by descent; Malaria; Plasmodium falciparum

Mesh:

Year:  2018        PMID: 29764422      PMCID: PMC5952413          DOI: 10.1186/s12936-018-2349-7

Source DB:  PubMed          Journal:  Malar J        ISSN: 1475-2875            Impact factor:   2.979


Background

Segments of DNA that are shared between individuals and inherited without recombination from a common ancestor are said to be identical by descent (IBD). IBD is a fundamental concept in genetics, linking ancestry to variation due to recombination, which acts on a shorter timescale than mutation [1]. In the field of human genetics, IBD-based analyses are used in many different applications: to map disease loci and quantitative traits, to phase and impute genotypes, and to infer demographic histories [1, 2]. Increasingly, IBD-based analyses are also being used to study haploid organisms such as the malaria parasite. Examples include studies of malaria disease transmission [3], malaria parasites within multiple-genotype infections [4], signals of parasite selection [5], anti-malarial resistance [6], relatedness across proximal parasite populations [7], and the relatedness of co-transmitted parasites strains [8]. However, most existing IBD detection software (recently reviewed in [9]) is designed for humans and other diploids. Accordingly, malaria studies have typically used one of two programs designed specifically for haploids: isoRelate, used and described in [5] and based on [10], and hmmIBD, which was used in [3, 4, 6–8], but has not been fully described in the literature to date. This paper provides a full description of hmmIBD, its verification using simulated data, and validation and benchmarking of its output and performance against isoRelate. Also described is a novel feature of the program, one that allows inference of IBD between samples from distinct populations.

Methods

hmmIBD is based on a discrete, heterogeneous, first-order HMM with two hidden states, IBD and not-IBD; mathematical details can be found in Additional file 1. It is designed to infer IBD segments shared between pairs of haploid genomes and to estimate two quantities: (1) the marginal posterior probability of the IBD state (which can be interpreted as the expected fraction of a pair of genomes that is IBD); and (2) the rate at which the genomes transition between states, parameterized by the number of outcrossed meioses since their most recent common ancestor (MRCA), which we refer to as the number of generations. These parameters are estimated iteratively using the Baum-Welch estimation-maximization algorithm; the Viterbi algorithm is then used to calculate the most probable sequence of IBD segments [11]. Model specification requires three probability measures [11]. First, initial state probabilities (IBD or not at the first position on a chromosome). These are initially set to 0.5, and then updated as the expected fraction IBD is recalculated for the entire genome under successive fits of the model. Second, the probabilities of changing state between two genomic positions. These state transition probabilities are functions of the distances between positions (in base pairs), the recombination rate and the number of generations since the MRCA (both assumed to be uniform across the genome), and the expected fraction IBD. Third, emission probabilities, which are the probabilities of the observed allelic types given IBD or not. These are calculated as follows. If two genomes are IBD at a given genomic position, they are of the same allelic type, meaning no mutations are assumed to have occurred since the MRCA. If they are not IBD, the alleles are modelled as independent draws based on the allele frequencies in the population. The probability of the observed alleles is then calculated from these probabilities by allowing for genotyping error. Parameters include the recombination rate (the default value in the code is for Plasmodium falciparum [12]) and the genotyping error rate, as well as estimates of the allele frequencies for all variable sites in the input dataset. Allele frequencies can be supplied by the user; if not supplied, the program estimates them from the data. The model accommodates positions with missing data by omitting emission probabilities at those sites. The program is implemented in C; it complies with the C11 standard and requires no additional libraries. It can accept genotype data for any variant that can be represented by an integer at a single position on the chromosome (e.g. all SNPs and most small indels). One important assumption of the model is that all IBD regions present between two samples result from common ancestry on a similar timescale. Clearly, this need not be the case: very recent inbreeding can be present along with much older background sharing, the kind that generates linkage disequilibrium in the population. Because IBD deriving from recent common ancestry is of primary interest for many applications, hmmIBD provides an option of capping the number of generations to the MRCA in the model; its effect is to bias against breaking up segments of either state.

Results

The correctness of hmmIBD’s algorithm and code was verified using data simulated under the HMM on which it is based; details and full results can be found in Additional file 2. For a typical situation, the root-mean-square (RMS) error on the fraction of the genome called as IBD was 0.25 percentage points and on the number of generations was 2 generations. CPU time was linear in the number of variants and quadratic in the number of samples. The performance of hmmIBD was then validated and benchmarked against isoRelate [5] using data created from artificially recombined field samples; details and full results can be found in Additional file 3. Both programs performed well, with accuracies, sensitivities and specificities greater than 98% (Table 1), and performance remained high when genotyping error equal to 0.5% in the artificially recombined genomes was misspecified under the model at 0.1% (Additional file 3). On average, hmmIBD was approximately 24 times faster than isoRelate, although both perform adequately in real time. (We note that isoRelate has a unique capability: by modelling the hidden state space as a set of IBD allele counts in 0, 1 or 2, it can accommodate comparisons across samples containing two genotypes.). The recombination rate under hmmIBD is assumed uniform. Given deviations within a biologically informed range [12], the assumption has little impact upon inference on IBD under hmmIBD using data within the accessible genome.
Table 1

Summary of average results based on IBD segments of artificially recombined field data with standard deviations in parentheses; full details can be found in Additional file 3

Clock time per 50 samples (s)AccuracySensitivitySpecificity
isoRelate1774 (372)0.995 (0.005)0.999 (0.002)0.991 (0.008)
hmmIBD72 (15)0.992 (0.006)0.999 (0.001)0.986 (0.011)
Summary of average results based on IBD segments of artificially recombined field data with standard deviations in parentheses; full details can be found in Additional file 3 An unusual feature of hmmIBD is that it can accommodate samples from different populations, even ones with very different allele frequencies. This feature should have multiple applications in studying malaria, including detection of selective sweeps that spread between populations and determining the source of imported cases in elimination settings. The effectiveness of hmmIBD can be seen by using it to examine IBD in the region of the well-known selective sweep for chloroquine resistance in P. falciparum around the gene pfcrt [13]. Figure 1 shows the amount of IBD between field isolates from Ghana and those from Cambodia. The increase in IBD around pfcrt is clear, reflecting the fact that the resistance haplotype emerged and spread into Africa from South-East Asia [14, 15]. An alternative approach using hmmIBD but treating the samples as coming from a single population as in [5], also shown, is much less effective at detecting the cross-population IBD.
Fig. 1

The fraction of sample pairs that are IBD along chromosome 7, where one sample is from Ghana and the other from Cambodia. Blue curve: IBD as reconstructed by hmmIBD correctly treating the samples as coming from two populations; red curve: IBD as reconstructed from a single, averaged population. (See Additional file 2 for details.)

The fraction of sample pairs that are IBD along chromosome 7, where one sample is from Ghana and the other from Cambodia. Blue curve: IBD as reconstructed by hmmIBD correctly treating the samples as coming from two populations; red curve: IBD as reconstructed from a single, averaged population. (See Additional file 2 for details.)

Discussion

This study provides a stand-alone description of hmmIBD, software to infer IBD between haploid genomes, and its comparison to isoRelate. Although both programs performed well, they differ in speed (hmmIBD being approximately 24 times faster than isoRelate) and in practical application. Most notably, isoRelate can handle comparisons across samples containing two genotypes where hmmIBD cannot, while hmmIBD can handle comparisons across populations where isoRelate cannot. The latter application is potentially useful for WHO malaria elimination certification, which requires no local cases for at least 3 years, but allows for imported ones [16]. hmmIBD continues to perform well even when the genotyping error and recombination rate is misspecified, and appears to be relatively robust to violation of the assumed uniformity of the recombination rate. These results are unlikely to hold over regions where rates deviate greatly from their average. Exclusion of such regions in data analysed under hmmIBD is therefore recommended. It is also advisable to change the default error rate in the code if a more accurate rate is available. Similarly, if used with a species other than P. falciparum, the appropriate average recombination rate should be used. In both cases, specifying an incorrect parameter is likely to affect primarily the number of generations rather than the fraction IBD, providing regions that deviate greatly from the average parameters are excluded. Finally, large public datasets (e.g. from the Pf3k project) may provide better estimates of allele frequencies in a population than can be calculated from the data immediately available to a user; it is advisable to make use of them where available.

Conclusion

There has been a recent proliferation in the number of malaria studies using IBD. As interest in IBD grows, the need to provide comprehensive details of software used to infer IBD increases. hmmIBD is the only program known to the authors that is designed specifically for haploid malaria genomes and is capable of comparing samples across populations with different allele frequencies. This will likely be a useful feature for malaria elimination efforts, since it could facilitate identification of imported malaria cases. Additional file 1. The hidden Markov model of hmmIBD. Mathematical details of the model behind hmmIBD. Additional file 2. Validation using simulated data; cross-population application. Full details and results of validation and cross-population study. Additional file 3. Comparative study of isoRelate and hmmIBD and impact of assumed uniform recombination under hmmIBD. Full details and results of comparative study and exploration of the impact of assumed uniform recombination under hmmIBD.
  13 in total

1.  Modeling malaria genomics reveals transmission decline and rebound in Senegal.

Authors:  Rachel F Daniels; Stephen F Schaffner; Edward A Wenger; Joshua L Proctor; Hsiao-Han Chang; Wesley Wong; Nicholas Baro; Daouda Ndiaye; Fatou Ba Fall; Medoune Ndiop; Mady Ba; Danny A Milner; Terrie E Taylor; Daniel E Neafsey; Sarah K Volkman; Philip A Eckhoff; Daniel L Hartl; Dyann F Wirth
Journal:  Proc Natl Acad Sci U S A       Date:  2015-05-04       Impact factor: 11.205

Review 2.  Identity by descent between distant relatives: detection and applications.

Authors:  Sharon R Browning; Brian L Browning
Journal:  Annu Rev Genet       Date:  2012-09-17       Impact factor: 16.830

3.  XIBD: software for inferring pairwise identity by descent on the X chromosome.

Authors:  Lyndal Henden; David Wakeham; Melanie Bahlo
Journal:  Bioinformatics       Date:  2016-03-21       Impact factor: 6.937

4.  Genetic mapping of the chloroquine-resistance locus on Plasmodium falciparum chromosome 7.

Authors:  T E Wellems; A Walker-Jonah; L J Panton
Journal:  Proc Natl Acad Sci U S A       Date:  1991-04-15       Impact factor: 11.205

5.  Invasion of Africa by a single pfcrt allele of South East Asian type.

Authors:  Frédéric Ariey; Thierry Fandeur; Remy Durand; Milijaona Randrianarivelojosia; Ronan Jambou; Eric Legrand; Marie Thérèse Ekala; Christiane Bouchier; Sandrine Cojean; Jean Bernard Duchemin; Vincent Robert; Jacques Le Bras; Odile Mercereau-Puijalon
Journal:  Malar J       Date:  2006-04-26       Impact factor: 2.979

6.  Genetic relatedness analysis reveals the cotransmission of genetically related Plasmodium falciparum parasites in Thiès, Senegal.

Authors:  Wesley Wong; Allison D Griggs; Rachel F Daniels; Stephen F Schaffner; Daouda Ndiaye; Amy K Bei; Awa B Deme; Bronwyn MacInnis; Sarah K Volkman; Daniel L Hartl; Daniel E Neafsey; Dyann F Wirth
Journal:  Genome Med       Date:  2017-01-24       Impact factor: 11.117

7.  Benchmarking Relatedness Inference Methods with Genome-Wide Data from Thousands of Relatives.

Authors:  Monica D Ramstetter; Thomas D Dyer; Donna M Lehman; Joanne E Curran; Ravindranath Duggirala; John Blangero; Jason G Mezey; Amy L Williams
Journal:  Genetics       Date:  2017-07-24       Impact factor: 4.562

8.  Modeling the genetic relatedness of Plasmodium falciparum parasites following meiotic recombination and cotransmission.

Authors:  Wesley Wong; Edward A Wenger; Daniel L Hartl; Dyann F Wirth
Journal:  PLoS Comput Biol       Date:  2018-01-09       Impact factor: 4.475

9.  Longitudinal genomic surveillance of Plasmodium falciparum malaria parasites reveals complex genomic architecture of emerging artemisinin resistance.

Authors:  Gustavo C Cerqueira; Ian H Cheeseman; Steve F Schaffner; Shalini Nair; Marina McDew-White; Aung Pyae Phyo; Elizabeth A Ashley; Alexandre Melnikov; Peter Rogov; Bruce W Birren; François Nosten; Timothy J C Anderson; Daniel E Neafsey
Journal:  Genome Biol       Date:  2017-04-28       Impact factor: 13.583

10.  Quantifying connectivity between local Plasmodium falciparum malaria parasite populations using identity by descent.

Authors:  Aimee R Taylor; Stephen F Schaffner; Gustavo C Cerqueira; Standwell C Nkhoma; Timothy J C Anderson; Kanlaya Sriprawat; Aung Pyae Phyo; François Nosten; Daniel E Neafsey; Caroline O Buckee
Journal:  PLoS Genet       Date:  2017-10-27       Impact factor: 5.917

View more
  45 in total

1.  A cautionary note on the use of unsupervised machine learning algorithms to characterise malaria parasite population structure from genetic distance matrices.

Authors:  James A Watson; Aimee R Taylor; Elizabeth A Ashley; Arjen Dondorp; Caroline O Buckee; Nicholas J White; Chris C Holmes
Journal:  PLoS Genet       Date:  2020-10-09       Impact factor: 5.917

2.  Single-genome sequencing reveals within-host evolution of human malaria parasites.

Authors:  Aliou Dia; Catherine Jett; Simon G Trevino; Cindy S Chu; Kanlaya Sriprawat; Timothy J C Anderson; François Nosten; Ian H Cheeseman
Journal:  Cell Host Microbe       Date:  2021-09-06       Impact factor: 31.316

3.  R H: a genetic metric for measuring intrahost Plasmodium falciparum relatedness and distinguishing cotransmission from superinfection.

Authors:  Wesley Wong; Sarah Volkman; Rachel Daniels; Stephen Schaffner; Mouhamad Sy; Yaye Die Ndiaye; Aida S Badiane; Awa B Deme; Mamadou Alpha Diallo; Jules Gomis; Ngayo Sy; Daouda Ndiaye; Dyann F Wirth; Daniel L Hartl
Journal:  PNAS Nexus       Date:  2022-09-10

4.  Genomic epidemiological models describe pathogen evolution across fitness valleys.

Authors:  Pablo Cárdenas; Vladimir Corredor; Mauricio Santos-Vega
Journal:  Sci Adv       Date:  2022-07-13       Impact factor: 14.957

5.  Prospective surveillance study to detect antimalarial drug resistance, gene deletions of diagnostic relevance and genetic diversity of Plasmodium falciparum in Mozambique: protocol.

Authors:  Alfredo Mayor; Clemente da Silva; Eduard Rovira-Vallbona; Arantxa Roca-Feltrer; Craig Bonnington; Alexandra Wharton-Smith; Bryan Greenhouse; Caitlin Bever; Arlindo Chidimatembue; Caterina Guinovart; Joshua L Proctor; Maria Rodrigues; Neide Canana; Paulo Arnaldo; Simone Boene; Pedro Aide; Sonia Enosse; Francisco Saute; Baltazar Candrinho
Journal:  BMJ Open       Date:  2022-07-12       Impact factor: 3.006

6.  Design and implementation of multiplexed amplicon sequencing panels to serve genomic epidemiology of infectious disease: A malaria case study.

Authors:  Emily LaVerriere; Philipp Schwabl; Manuela Carrasquilla; Aimee R Taylor; Zachary M Johnson; Meg Shieh; Ruchit Panchal; Timothy J Straub; Rebecca Kuzma; Sean Watson; Caroline O Buckee; Carolina M Andrade; Silvia Portugal; Peter D Crompton; Boubacar Traore; Julian C Rayner; Vladimir Corredor; Kashana James; Horace Cox; Angela M Early; Bronwyn L MacInnis; Daniel E Neafsey
Journal:  Mol Ecol Resour       Date:  2022-05-03       Impact factor: 8.678

7.  Plasmodium simium: Population Genomics Reveals the Origin of a Reverse Zoonosis.

Authors:  Thaís C de Oliveira; Priscila T Rodrigues; Angela M Early; Ana Maria R C Duarte; Julyana C Buery; Marina G Bueno; José L Catão-Dias; Crispim Cerutti; Luísa D P Rona; Daniel E Neafsey; Marcelo U Ferreira
Journal:  J Infect Dis       Date:  2021-12-01       Impact factor: 5.226

8.  Modeling the genetic relatedness of Plasmodium falciparum parasites following meiotic recombination and cotransmission.

Authors:  Wesley Wong; Edward A Wenger; Daniel L Hartl; Dyann F Wirth
Journal:  PLoS Comput Biol       Date:  2018-01-09       Impact factor: 4.475

9.  Identity-by-descent analyses for measuring population dynamics and selection in recombining pathogens.

Authors:  Lyndal Henden; Stuart Lee; Ivo Mueller; Alyssa Barry; Melanie Bahlo
Journal:  PLoS Genet       Date:  2018-05-23       Impact factor: 5.917

10.  Distinctive genetic structure and selection patterns in Plasmodium vivax from South Asia and East Africa.

Authors:  Ernest Diez Benavente; Emilia Manko; Jody Phelan; Monica Campos; Debbie Nolder; Diana Fernandez; Gabriel Velez-Tobon; Alberto Tobón Castaño; Jamille G Dombrowski; Claudio R F Marinho; Anna Caroline C Aguiar; Dhelio Batista Pereira; Kanlaya Sriprawat; Francois Nosten; Robert Moon; Colin J Sutherland; Susana Campino; Taane G Clark
Journal:  Nat Commun       Date:  2021-05-26       Impact factor: 14.919

View more

北京卡尤迪生物科技股份有限公司 © 2022-2023.