Volume 12 Supplement 6

## Proceedings of the First Annual RECOMB Satellite Workshop on Massively Parallel Sequencing (RECOMB-seq)

# A Hidden Markov Model for Copy Number Variant prediction from whole genome resequencing data

- Yufeng Shen
^{1, 2}Email author, - Yiwei Gu
^{1}and - Itsik Pe’er
^{1, 2}Email author

**12(Suppl 6)**:S4

https://doi.org/10.1186/1471-2105-12-S6-S4

© Shen et al; licensee BioMed Central Ltd. 2011

**Published: **28 July 2011

## Abstract

### Motivation

Copy Number Variants (CNVs) are important genetic factors for studying human diseases. While high-throughput whole genome re-sequencing provides multiple lines of evidence for detecting CNVs, computational algorithms need to be tailored for different type or size of CNVs under different experimental designs**.**

### Results

To achieve optimal power and resolution of detecting CNVs at low depth of coverage, we implemented a Hidden Markov Model that integrates both depth of coverage and mate-pair relationship. The novelty of our algorithm is that we infer the likelihood of carrying a deletion jointly from multiple mate pairs in a region without the requirement of a single mate pairs being obvious outliers. By integrating all useful information in a comprehensive model, our method is able to detect medium-size deletions (200-2000bp) at low depth (<10× per sample). We applied the method to simulated data and demonstrate the power of detecting medium-size deletions is close to theoretical values.

### Availability

A program implemented in Java, *Zinfandel*, is available at http://www.cs.columbia.edu/~itsik/zinfandel/

## Introduction

An important utility of whole-genome resequencing (WGS) is to systematically uncover structural variations (SVs) including copy number variants (CNVs). There are two major approaches to infer SVs from resequencing data. The first one is to align the reads onto a reference genome and then infer the SVs from the reads alignment. The second one is to *de novo* assemble the reads into larger genomic fragments (contigs or scaffolds) and then infer the SVs by aligning the fragments to a reference genome. Most of the current high-throughput sequencing platforms achieve efficiency by generating massive amount of short paired-end reads in a single run [1, 2], making it much easier to map the reads to a reference [3–7] than to carry out *de novo* assembly. Here we focus on the first approach.

In general there are two major sources of information useful for inferring SVs from reads alignment: depth of coverage and break points. Depth of coverage positively correlates with the copy number [8, 9]. Break points, marking the boundary of SVs, can be inferred from sequence alignment gaps, which are suitable for short insertion/deletion (indel) discovery [3, 10], or mate-pair distance abnormally, which is usually the basis of detecting large structural variations [11, 12]. Most existing tools only utilize one type of evidence, even though these two are complementary. On the one hand, depth of coverage provides more reliable information for large CNVs or CNVs flanked by repeats, where accurate mapping of reads around breakpoints is difficult. On the other hand, breakpoints provide better power to detect small- (through sequence alignment gaps) to medium- size (through mate pair abnormally) indels or CNVs. In particular, mate pairs from relatively large inserts provide larger physical depth of coverage than sequence depth of coverage, making it best suited to detect medium-size CNVs from low pass sequencing. This is consistent with the idea that moderate deviation of distances from expectation in multiple mate pairs in the same locus might provide statistically significant evidence for inferring small indels [13].

Here we describe a computational method for inferring medium-size deletions and other CNVs from low-pass WGS data, with a model to incorporate both depth of coverage and mate pair information.

## Results

### A Hidden Markov Model

*λ*[15]. However, there are systematic biases in sequencing, which leads to overdispersion. Empirically, the overdispersion can be primarily explained by the GC bias [1], and the distribution can be modeled by an overdispersed Poisson or negative binomial [16, 17]. Abnormality in mate pair distance, order, or orientation suggests breakpoint(s) from CNVs or other structural variations, and the distance reflects the size of a deletion or tandem duplication. The primary challenge of modeling mate pairs through a HMM is that a 1

^{st}order Markov chain does not store the information of inferred CNV size once the path goes beyond one end of a pair of break points, and higher order Markov chain is computational prohibitive for processing genome-wide data. To address this issue, we augment a regular 1

^{st}order HMM with a grid of specialized deletion states that explicitly model medium-size deletions and flanking regions (

*F*states) (Figure 1). Specifically, in the generative model going through a chromosome by each position, a hidden state represents the copy number, emitting both number of reads starting from this position and the out-distance of the mate-pair. And the emission probability of a state in the HMM is calculated jointly from the mate-pair distance and depth of coverage (Equation 1).

In Equation 1, *n* is the number of reads start at a genomic position, *d* is the out-distance between a pair of reads, *C* is the copy number of the state, *δ* is the shifted value of mean out-distance of the state, *λ* is the genome-wide average number of reads starting at any position, *G* is the depth of coverage adjustment value based on local GC content, and *D* is the genome-wide mean out-distance. *Pr*(*d* | *D*, *δ*) is the probability of *d* assuming the insert size follows the empirical distribution observed from data with mean shifted by *δ* (i.e., mean is *D*+*δ*). We assume *δ* is 0 for for all states except for *F* states, where *δ* is the approximate size of the deletions flanked by these states. The model targets deletions of different sizes by setting different *δ* values for flanking states on different rows.

The transition probabilities from normal to other states are set heuristically to reflect rough estimation of the number of medium- to large- size deletions and duplications in the genome. The transition probability of a non-normal state to itself is set to reflect the approximate duration of that state along the genome in a generative model, which for *F* states is the targeted size of the flanked deletion. Other transition probabilities are calculated based on the constraint that the total probability of all in- or out- transitions is 1. We use Viterbi algorithm to infer the most likely copy-number status path along a chromosome given the sequence data.

### Results from simulated data

## Discussion and conclusions

We described a Hidden Markov Model-based method that integrates the depth of coverage with mate-pair information from whole genome sequencing data to infer CNVs. Using simulation, we demonstrated that this method achieved near-theoretical power for detecting medium-size deletions from low-pass WGS data.

We applied BreakDancer [11] to the same set of simulated data and demonstrated that our method was better powered to detect medium-size deletions from low-pass sequencing. This is expected because BreakDancer infers CNVs based on discordant mate pairs that have larger outer-distance deviations than a fixed threshold. That makes it suboptimal in taking advantage of multiple discordant mate pairs that deviate from mean distance values consistently but less significantly than the threshold.

Medvedev et al 2010 [19] presented a donor graph- based method (CNVer) to infer CNVs using both mate-pair and depth-of-coverage information. The advantage of CNVer is that by using mate pair discordant and depth-of-coverage information jointly, it has better accuracy and sensitivity of detecting CNVs flanked by segmental duplications, which are the places where traditional mate-pair based methods have difficulties because of non-unique mapping of reads. Similarly to BreakDancer, CNVer requires an explicit out-distance cutoff (by default three times the standard deviation of insert library size) to establish a list of discordant mate pairs. Therefore, CNVer would have poor power to detect deletions with size close to the threshold values. Our method takes advantage of the fact that multiple mate-pairs with small but consistent deviations of outer-distances could still provide statistically significant evidence, and models it explicitly through “flanking” regions in the HMM. Additionally, CNVer requires combination of support from depth-of-coverage and mate pairs. This is effective for reducing false positives, but makes it difficult to detect small- or medium-size CNVs that are intrinsically underpowered in depth-of-coverage based methods given low to medium genome-wide average depth.

It is feasible to process low-pass sequencing data from cancer tissues for inferring amplification loci, which will be called 4-copy duplications in our method, and then estimate the amplification level by other methods based on the number of reads mapped to the regions.

One limitation of our method is that hemizygous deletions are not modeled. A future direction is to detect CNVs from exome data. Comparing to whole genome sequencing, exome sequencing requires an extra capture step, which makes the depth of coverage distribution much more overdispersed than Poisson, and therefore presents computational challenges in depth-based CNV detection. A reasonable approach would be to call CNVs jointly from multiple samples.

## Methods

### Theoretical power calculation

#### Power of detecting CNVs based on depth-coverage only

The depth-coverage from whole-genome shotgun sequencing follows Poisson distribution [15]. Due to various experimental issues, such as the unevenness of accessibility of sequencing from genomic structure and the DNA melting temperature dependence on local GC content [1], the real distribution is overdispersed, and can be modeled by a negative binomial or overdispersed Poisson [17].

*λ*, the read size is fixed at

*S*, then in a region of size

*δ*(

*δ*>

*S*), the number of shotgun reads sampled from a copy-neutral region follows Poisson distribution with mean

*δ*·

*λ*/

*S*. Likewise, the number of reads from a 1-copy gain region follows a Poisson distribution with mean 1.5·

*δ*·

*λ*/

*S*, and the number of reads from a 1-copy loss region follows a Poisson distribution with mean 0.5·

*δ*·

*λ*/

*S*. Let copy-neutral be the null model, we can then calculate the power of detecting 1-copy gain or 1-copy loss with a pre-set type I error cutoff. Figure 3(a) shows the dependence of power on region size

*δ*and average depth-coverage

*λ*.

#### Power of detecting CNVs based on mate-pair information

The outer-distance of a mapped pair of reads reflects the insert size. If the insert contains a deletion, the mapped distance will be larger than the expected by the deletion size. To calculate the power of detecting a deletion of certain size based on mate pair distance, we define a null hypothesis and an alternative hypothesis. The null hypothesis is that the mapped distance of a pair follows the empirical distribution of all the mapped pairs from the same run, which is a valid approximation because the majority of the inserts are from genomic regions where the target genome does not contain deletions comparing the reference genome. Denote the mean of the empirical distribution as *D*, which is actually a point estimation of the insert library size. The alternative hypothesis is that the insert contains a deletion of size *δ*, therefore the mapped distance follows a distribution with same shape as the empirical distribution but with a different mean of *D*+*δ* . The power of detecting a deletion of *δ* based on a single pair of reads is: 1- *CDF*(*Q* | *D*+*δ* ), where *Q* is the quantile value of the null distribution (with mean value *D*) given *p* = type I error, *CDF*() is the cumulative density function of the alternative distribution (with mean value *D*+*δ*) at *Q*.

An optimal algorithm of detecting deletions do not require a single pair to have obvious outlier mapping distance, but can integrate the significance of the deviation from expectation from multiple pairs. To estimate the power of detecting a deletion based on multiple pairs, we approximate the null distribution of mapping distance using a Gaussian distribution with mean *D* and standard deviation *σ* (empirically the approximation is more accurate near *D*). Assume a deletion of size *δ* is contained in *m* inserts (thus *m* pairs of reads), the standard error of the mapped distances is
. The power can be calculated based on Z-score:
. Given genome-wide average depth-of-coverage *λ*, read size *S*, then the expected value of *m* is
, therefore,
. Figure 3(b) and (c) show the dependence of power on deletion size *δ* and average depth-coverage *λ* with two examples of insert libraries (*D* and *σ* values are based on empirical data from [17]).

### The Hidden Markov Model and implementation

The possible states in our HMM are: “normal”, which models copy neutral sites, “Del1”, which models heterozygous deletions, “Del2”, which models homozygous deletions, “Dup1”, which models three-copy duplications, and “Dup2”, which models four-copy duplications including homozygous duplications and heterozygous duplications composed of one normal copy and one three-copy duplications, and “5’ flanking” and “3’ flanking”, which model the 5’ and 3’ breaking points of deletions.

We use heuristics to set the transition probabilities. Specifically, the transition probability from a any state to itself is the inverse of the expected duration of the state. For the deletions and duplications that directly connected with Normal state, the expected duration is average size of the CNVs that are well powered for detection based on depth-of-coverage. The expected duration of deletion states in the “grid” is the targeted deletion size of the row where the state is located (200bp, 400bp, 600bp, 800bp, …, and 1600bp). The expected duration of the 5’ and 3’ flanking regions is the mean size of the insert library. The duration of the Normal state is estimated by dividing the genome size with the expected total number of CNVs. The transition from a state to other states is constrained by the model structure, and the probability is equally distributed among the destination states.

We implemented the algorithm in Java. Running the program on a commodity Linux server to process a human genome sequenced at 4× requires about thirty hours CPU time. In practice, it is convenient to split the genome into overlapping fragments and carry out CNV detection on different fragments in parallel to speed up the process.

### Parameters

The input data of Zinfandel is the reads-alignment output in “mapview” fomat from maq [3]. Support for SAM/BAM format [18] is planned for future version. The maq mapping parameters are all default except –a (outer-distance outoff), which was set to 6000.

BreakDancer parameters were set to default of breakdancer-max version 1.0. Deletions called by BreakDancer were filtered based on score using a cutoff of 40 as recommended by the program.

### Definition of outer-distance

Assume the mate pair insert library was prepared in forward-reverse (FR) orientation [3]. Denote the mapping position of 3’ end of the read with negative strand as E, and the 5’ end of the read with positive strand as S, then the out-distance is defined as *D*≡*E*-*S*.

## Declarations

### Acknowledgment

I.P. is funded by NSF CAREER 0845677 and NIH U54CA121852. Y.S. is funded by the International Serious Adverse Event Consortium.

This article has been published as part of *BMC Bioinformatics* Volume 12 Supplement 6, 2011: Proceedings of the First Annual RECOMB Satellite Workshop on Massively Parallel Sequencing (RECOMB-seq). The full contents of the supplement are available online at http://www.biomedcentral.com/1471-2105/12?issue=S6.

## Authors’ Affiliations

## References

- Bentley DR,
*et al*.:**Accurate whole human genome sequencing using reversible terminator chemistry.***Nature*2008,**456:**53–59. 10.1038/nature07517PubMed CentralView ArticlePubMedGoogle Scholar - Wang J,
*et al*.:**The diploid genome sequence of an Asian individual.***Nature*2008,**456:**60–65. 10.1038/nature07484PubMed CentralView ArticlePubMedGoogle Scholar - Li H,
*et al*.:**Mapping short DNA sequencing reads and calling variants using mapping quality scores.***Genome Res*2008,**18:**1851–1858. 10.1101/gr.078212.108PubMed CentralView ArticlePubMedGoogle Scholar - Li R,
*et al*.:**SOAP: short oligonucleotide alignment program.***Bioinformatics*2008,**24:**713–4. 10.1093/bioinformatics/btn025View ArticlePubMedGoogle Scholar - Langmead B,
*et al*.:**Ultrafast and memory-efficient alignment of short DNA sequences to the human genome.***Genome Biol*2009,**10:**R25. 10.1186/gb-2009-10-3-r25PubMed CentralView ArticlePubMedGoogle Scholar - Alkan C,
*et al*.:**Personalized copy number and segmental duplication maps using next-generation sequencing.***Nat Genet*2009,**41:**1061–7. 10.1038/ng.437PubMed CentralView ArticlePubMedGoogle Scholar - Hach F,
*et al*.:**mrsFAST: a cache-oblivious algorithm for short-read mapping.***Nat Methods*2010,**7:**576–7. 10.1038/nmeth0810-576PubMed CentralView ArticlePubMedGoogle Scholar - Yoon S,
*et al*.:**Sensitive and accurate detection of copy number variants using read depth of coverage.***Genome Res*2009,**19:**1586–92. 10.1101/gr.092981.109PubMed CentralView ArticlePubMedGoogle Scholar - Xie C, Tammi MT:
**CNV-seq, a new method to detect copy number variation using high-throughput sequencing.***BMC Bioinformatics*2009,**10:**80. 10.1186/1471-2105-10-80PubMed CentralView ArticlePubMedGoogle Scholar - McKenna A,
*et al*.:**The Genome Analysis Toolkit: a MapReduce framework for analyzing next-generation DNA sequencing data.***Genome Res*2010,**20:**1297–303. 10.1101/gr.107524.110PubMed CentralView ArticlePubMedGoogle Scholar - Chen K,
*et al*.:**BreakDancer: an algorithm for high-resolution mapping of genomic structural variation.***Nat Methods*2009,**6:**677–81. 10.1038/nmeth.1363PubMed CentralView ArticlePubMedGoogle Scholar - Korbel JO,
*et al*.:**PEMer: a computational framework with simulation-based error models for inferring genomic structural variants from massive paired-end sequencing data.***Genome Biol*2009,**10:**R23. 10.1186/gb-2009-10-2-r23PubMed CentralView ArticlePubMedGoogle Scholar - Lee S,
*et al*.:**MoDIL: detecting small indels from clone-end sequencing with mixtures of distributions.***Nat Methods*2009,**6:**473–4. 10.1038/nmeth.f.256View ArticlePubMedGoogle Scholar - Durbin R:
*Biological sequence analysis: probabilistic models of proteins and nucleic acids.*Cambridge, UK New York: Cambridge University Press; 1998.View ArticleGoogle Scholar - Lander ES, Waterman MS:
**Genomic Mapping by Fingerprinting Random Clones: A Mathematical Analysis.***Genomics.*1988,**2**(3):231–239. 10.1016/0888-7543(88)90007-9View ArticlePubMedGoogle Scholar - Sarin S,
*et al*.:**Caenorhabditis elegans mutant allele identification by whole-genome sequencing.***Nat Methods*2008,**5**(10):865–867. 10.1038/nmeth.1249PubMed CentralView ArticlePubMedGoogle Scholar - Shen Y,
*et al*.:**Comparing platforms for C. elegans mutant identification using high-throughput whole-genome sequencing.***PLoS ONE*2008,**3:**e4012. 10.1371/journal.pone.0004012PubMed CentralView ArticlePubMedGoogle Scholar - Li H,
*et al*.:**The Sequence alignment/map (SAM) format and SAMtools.***Bioinformatics*2009,**25:**2078–9. 10.1093/bioinformatics/btp352PubMed CentralView ArticlePubMedGoogle Scholar - Medvedev P,
*et al*.:**Detecting copy number variation with mated short reads.***Genome Res*2010,**20**(11):1613–22. 10.1101/gr.106344.110PubMed CentralView ArticlePubMedGoogle Scholar

## Copyright

This article is published under license to BioMed Central Ltd. This is an open access article distributed under the terms of the Creative Commons Attribution License (http://creativecommons.org/licenses/by/2.0), which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.