510 likes | 517 Views
Scalable Algorithms for Analysis of Genomic Diversity Data. Bogdan Paşaniuc. Department of Computer Science & Engineering University of Connecticut. Single Nucleotide Polymorphisms. Main form of variation between individual genomes: single nucleotide polymorphisms (SNPs)
E N D
Scalable Algorithms for Analysis of Genomic Diversity Data Bogdan Paşaniuc Department of Computer Science & Engineering University of Connecticut
Single Nucleotide Polymorphisms • Main form of variation between individual genomes: single nucleotide polymorphisms (SNPs) • High density in the human genome: 1x107 out of 3109 base pairs • Vast majority bi-allelic 0/1 encoding … ataggtccCtatttcgcgcCgtatacacgggActata … … ataggtccGtatttcgcgcCgtatacacgggTctata … … ataggtccCtatttcgcgcCgtatacacgggTctata …
Haplotypes and Genotypes • Haplotype: description of SNP alleles on a chromosome • 0/1 vector: 0 for major allele, 1 for minor • Diploids: two homologous copies of each autosomal chromosome • One inherited from mother and one from father • Genotype: description of alleles on both chromosomes • 0/1/2 vector: 0 (1) - both chromosomes contain the major (minor) allele; 2 - the chromosomes contain different alleles 021200210 011000110 001100010 genotype + two haplotypes per individual
Introduction • Haplotype data exact DNA sequence function • Haplotypes increased power of association • Directly determining haplotype data is expensive and time consuming • Cost effective high-throughput technologies to determine genotype data • Need for computational methods for inferring haplotypes from genotype data: genotype phasing problem
Outline Background on genomic diversity The genotype phasing problem Hidden Markov Model of Haplotype Diversity Genotype Imputation DNA Barcoding Conclusions
Genotype Phasing h1:0010111 h2:0010010 ? g: 0010212 h3:0010011 h4:0010110 • For a genotype with k 2’s there are 2k-1 possible pairs of haplotypes explaining it • Computational approaches to genotype phasing • Statistical methods: PHASE, Phamily, PL, GERBIL … • Combinatorial methods: Parsimony, HAP, 2SNP, ENT …
Minimum Entropy Genotype Phasing • Phasing – function f that assigns to each genotype g a pair of haplotypes (h,h’) that explains g • Coverage of h in f – number of times h appears in the image of f • Entropy of a phasing: Minimum Entropy Genotype Phasing [Halperin&Karp 04]: Given a set of genotypes, find a phasing with minimum entropy
ENT Algorithm Initialization Start with random phasing Iterative improvement step While there exists a genotype whose re-phasing decreases the entropy, find the genotype that yields the highest decrease in entropy and re-phase it • Min Entropy Objective is uninformative for long genotypes • each haplotype compatible with 1 genotype all haplotypes have coverage of 1 entropy of all phasings = -log(1/2G)
Overlapping Window approach … … 4 3 2 1 g1 gn … free locked • Entropy is computed over short windows of size l+f • l “locked” SNPs previously phased • f “free” SNPs are currently phased • Only phasings consistent with the l locked SNPs are considered
Experimental setup (1) • International HapMap Project, Phase II datasets • 3.7 million SNP loci • 3 populations: • CEU, YRI: 30 trios • JPT+CHB: 90 unrelated individuals • Reference haplotypes obtained using PHASE • Accuracy • Relative Genotype Error (RGE): percentage of missing genotypes inferred differently as reference method • Relative Switching Error (RSE): number of switches needed to convert inferred haplotype pairs into the reference haplotype pairs
Experimental setup (2) • Compared algorithms • ENT • 2SNP [Brinza&Zelikovsky 05] • Pure Parsimony Trio Phasing (ILP) [Brinza et al. 05] • PHASE [Stephens et al 01] • HAP [Halperin&Eskin 04] • FastPhase [Scheet&Stephens 06]
Results on HapMap Phase II Panels • Averages over the 22 chromosomes • Runtime: • ENT few hours • PHASE months of CPU time on cluster of 238 nodes
Results on [Orzack et al 03] dataset • [Orzack et al. 03] • 80 unrelated genotypes over 9 SNPs • Haplotypes determined experimentally • Ranking of algorithms remains the same • Slight underestimation of true error rate
Outline Background on genomic diversity The genotype phasing problem Hidden Markov Model of Haplotype Diversity Genotype Imputation DNA Barcoding Conclusions
Founder Haplotypes Haplotypes in the current population arose from small number of founder haplotypes by mutation and recombination events Obtained using HaploVisual www.cs.helsinki.fi/u/prastas/haplovisual/
HMM Model • Similar to models proposed by [Schwartz 04, Rastas et al. 05, Kimmel&Shamir 05, Scheet&Stephens 06] • Models the ancestral haplotype population • Paths with high transition probability “founder” haplotypes • Transitions from one founder to other founder recombination events • Emissions mutation events
HMM Training • Previous works use EM training of HMM based on unrelated genotype data • 2-step procedure: • Infer haplotypes using ENT • Uses all available pedigree information • Baum-Welch training on inferred haplotypes • Maximizes the likelihood of the haplotypes
Maximum Probability Genotype Phasing • Phase G as pair (h1,h2) = argmax P(h1)P(h2) • Maximum phasing probability: • How hard is to compute maximum phasing probability in the HMM? • Conjectured to be NP-hard [Rastas et al 07] • Theorem • Cannot approximate P(G) within O(n1/2 -), unless ZPP=NP, where n is the number of SNP loci
Complexity of Computing Maximum Phasing Probability Reduction from Max Clique • Transitions1,1/2 • Initial transition 2deg(v)+1(2)/α • All haps prob 1/α
Complexity of Computing Maximum Phasing Probability • H representing clique of size k will be emitted along k paths P(H) = k/α • By construction H’ (complement of H) can be emitted along second block • G = 22…22 P(G)=max(P(H))2 • G has a clique of size k or more iff P(G) ≥ (k/α)2 • Maximum probability genotype phasing is NP-hard
Heuristic Decoding Algorithms • Viterbi Decoding • Maximum probability of emitting a haplotype pair that explain G along two HMM paths • Efficiently computed using Viterbi’s algorithm • Posterior Decoding • For each SNP choose the states that are most likely at that locus given the genotype G • Find most likely emissions at each SNP to explain G • Efficiently computed using forward and backward algorithm • Sampling from the HMM posterior distribution • generate pairs of haplotypes that explain G conditional on the haplotype distribution represented by the HMM • Combine the sample into a single phasing
Greedy Likelihood Decoding • Uses forward values computed by forward algorithm • fh(i,q) = the total probability of emitting the first i alleles of the haplotype h and ending up at state q at level i. • P(H|M)= ∑fh(n,q) • Constructs (h, h’) with (x,y) at SNP i, s.t. the probability of the phasing up to locus i, given the already determined phasing for the first i, is maximized • 2 variants: left-to-right or right-to-left
Combined Greedy Likelihood decoding Left to right phasing Right to left phasing h h’ h h’ SNP i Combined phasing • P(Comb. phasing at SNP i) = ∑fh(i,q)bh(i,q) x ∑fh’(i,q)bh’(i,q) • SNP i that gives best improvement found in O(Kn) time given forward and backward values for the 4 haplotypes
Tweaking a Phasing by Local Switching SNP i • New phasing obtained by switching at SNP i • P (new phasing) = ∑fh(i,q)bh(i,q) x ∑fh’(i,q)bh’(i,q) • SNP i that gives best improvement found in O(Kn) time given forward and backward values for the 2 haplotypes • Iterative 1-OPT procedure • While there exists a SNP that improves the likelihood of the phasing obtained by switching at that SNP, find the SNP that yields the highest increase and perform switching
Experimental Setup • ADHD dataset • Chromosome X genotype data from the Genetic Association Information Network (GAIN) study on Attention Deficit Hyperactivity Disorder (ADHD) • 958 parent-child trios from the International Multi-site ADHD Genetics (IMAGE) project • Phased the children as unrelated on a 50 SNP window
Outline Background on genomic diversity The genotype phasing problem Hidden Markov Model of Haplotype Diversity Genotype Imputation DNA Barcoding Conclusions
Genome-wide case-control association studies • Preferred method for finding the genetic basis of human diseases • Large number of markers (SNPs) typed in cases and controls • Statistical test of association disease-correlated locus • Disease causal SNPs unlikely to be typed directly • Limited coverage of current genotyping platforms • Vast number of SNPs present across the human genome
Genotype Imputation • Imputation of genotypes at un-typed SNP loci • Powerful technique for increasing the power of association studies • Typed markers in conjunction with catalogs of SNP variation (e.g. HapMap) predictors for SNP not present on the array • Challenge: Optimally combining the multi-locus information from current + multi-locus variation from HapMap
HMM Based Genotype Imputation • Integrate the HapMap variation information into the HMM • Train HMM using the haplotypes from the panel related to the studied population (e.g. CEU panel: Utah residents with ancestry from northern and western Europe) • Compute probabilities of missing genotypes given the typed genotype data • gi is imputed as x, where
Related Problems • Missing Data Recovery • Fill in the genotypes uncalled by the genotyping algorithm • Genotype Error Detection and Correction • If gi is present, then the increase in likelihood obtained by replacing gi with x is:
Likelihood Computation • P(G|M) = probability with which M emits any two haplotypes that explain G along any pair of paths. • Computed in O(nK3) by a 2-path extension of the forward algorithm followed by a factor K speed-up [Rastas07]
Experimental Setup • WTCCC Dataset • Genotype data of the 1958 birth cohort from the The Welcome Trust Consortium genome-association study • 1,444 individuals from this cohort were typed using both the Affymetrix 500k platform and a custom Illumina 15k platform • Affymetrix data + CEU HapMap haplotypes used to impute genotypes at the SNP loci present of the Illumina chip and not on the Affymetrix chip • The actual Illumina genotypes were then used to estimate the imputation accuracy
Results • Estimates of the allele 0 frequencies based on Imputation vs. Illumina 15k
Results • Accuracy and missing data rate for imputed genotypes for different thresholds. Dashed line = missing data rate Solid line = discordance rate
Effect of Errors and Missing Data • Added additional 1% genotyping errors and 1% missing genotypes TP Rate = correctly flagged errors out of total errors inserted FP Rate = incorrectly flagged genotype out of total correct genotypes Error Correction Accuracy = correctly recovered out of flagged ones
Outline Background on genomic diversity The genotype phasing problem Hidden Markov Model of Haplotype Diversity Genotype Imputation DNA Barcoding Conclusions
DNA barcoding Recently(2003) proposed by taxonomists as a tool for rapid species identification Use short DNA region as “fingerprint” for species Region of choice: cytochrome c oxidase subunit 1 mitochondrial gene ("COI", 648 base pairs long). Key assumption: Existence of “barcoding gap” Inter-species variability >> than intra-species variability
BOLD: The Barcode of Life Data Systems [Ratnasingham&Hebert07] http://www.barcodinglife.org Currently: 38,539 species, 388,582 barcodes
DNA barcoding challenges • Efficient algorithms for species identification • Millions of species • Meaningful confidence measures • BOLD identification system showed to have unclear confidence measures [Ekrem et al.07]: • New species discovery • Sample size optimization • #barcodes per species required • Barcode length • Barcode quality • Number of regions required
Species identification problem Several methods proposed for assigning specimens to species TaxI (Steinke et al.05), Likelihood ratio test (Matz&Nielsen06), BOLD-IDS(Ratnasingham&Hebert 07)… No direct comparisons on standardized benchmarks This work: Direct comparison of methods from three main classes Distance-based, tree-based, and statistical model-based Explore the effect of repository size #barcodes/species, #species • Given repository containing barcodes from known species and a new barcode find its species
Methods • Distance-based • Hamming distance, Aminoacid Similarity, Convex Score similarity, Tri-nucleotide frequency distance, Combined method • Tree-based • Exemplar NJ [Meyer&Paulay05] • Profile NJ [Muller et al 04] • Phylogenetic transversal • Statistical model-based • Likelihood ratio test [Matz&Nielsen06] • PWMs • Inhomogeneous Markov Chains
Inhomogeneous Markov Chain (IMC) Takes into account dependencies between consecutiveloci A A C C T T G G A A C C … start T T G G locus 1 locus 2 locus 3 locus 4
Comparison of representative methods • Leave one out experiment • Hesperidia of the ACG 1 [Hajibabaei M. et al, 05]: 4267 barcodes, 561 species • Birds of North America [Kerr K.C.R. et al, 07]: 2589 barcodes, 656 species • Bats of Guyana [Clare E.L. et al, 06]: 840 barcodes, 96 species • Fishes of Australia Container Part [Ward et. al, 05]: 754 barcodes, 211 species • Cowries [Meyer and Paulay, 05]: 2036 barcodes, 263 species
Accuracy vs Species size MIN-HD IMC Phylo
Conclusions • Highly scalable method for genotype phasing • Several orders of magnitude faster than current methods • Phasing accuracy close to the best methods • Exploits all pedigree information available • HMM model of haplotype diversity • Hardness result for genotype phasing • Improved decoding algorithms for phasing • Imputation of genotypes at un-typed SNPs • DNA-barcoding • Introduced new methods for species identification • Comprehensive comparison to existing methods
Acknowledgments • Prof. Ion Mandoiu • Profs. Sanguthevar Rajasekaran, Alex Russell • Sasha Gusev (Entropy phasing, DNA barcoding) • Justin Kennedy (HMM Imputation and Error detection) • James Lindsay, Sotiris Kentros (DNA barcoding)
References • Genotype phasing: • B. Pasaniuc and I.I. Mandoiu. Highly scalable genotype phasing by entropy minimization. In Proc. 28th Annual International Conference of the IEEE Engineering in Medicine and Biology Society, pages 3482-3486, 2006. • A. Gusev, I.I. Mandoiu, and B. Pasaniuc. Highly scalable genotype phasing by entropy minimization. IEEE/ACM Trans. on Computational Biology and Bioinformatics 5, pp. 252-261, 2008. • HMM model, genotype imputation and error detection: • J. Kennedy, I.I. Mandoiu, and B. Pasaniuc. Genotype error detection using hidden Markov models of haplotype diversity. In Proc. 7th Workshop on Algorithms in Bioinformatics(WABI07) LNBI, pp 73-84, 2007. • J. Kennedy, I.I. Mandoiu, and B. Pasaniuc. GEDI: Genotype Error Detection and Imputation using Hidden Markov Models of Haplotype Diversity. (in preparation). • DNA-barcoding: • B. Pasaniuc, S. Kentros and I.I. Mandoiu. DNA Barcode Data Analysis: Boosting Assignment Accuracy by Combining Distance- and Character-Based Classifiers,The DNA Barcode Data Analysis Initiative (DBDAI): Developing Tools for a New Generation of Biodiversity Data Workshop, 2006. • B. Pasaniuc, S. Kentros and I.I. Mandoiu. Model-based species identification using DNA barcodes, 39th Symposium on the Interface: Computing Science and Statistics, 2007. • B. Pasaniuc, A. Gusev, S. Kentros, J. Lindsay and I.I. Mandoiu. A Comparison of Algorithms for Species Identification Based on DNA Barcodes. 2nd International Barcode of Life Conference, Academia Sinica, Taipei, Taiwan, Sept. 17-21, 2007