Chao1 formula

2,075 views
Skip to first unread message

cricket

unread,
Dec 22, 2011, 2:25:22 PM12/22/11
to Qiime Forum
Hello Qiime Forum,

What formula is being used to calculate the Chao1 values
(alpha_diversity.py)?

Qiimely,

C

Antonio González Peña

unread,
Dec 22, 2011, 2:32:47 PM12/22/11
to qiime...@googlegroups.com
Hey C,

QIIME uses the pycogent implementation of chao1 with bias correction,
from the code:

def chao1_bias_corrected(observed, singles, doubles):
"""Calculates bias-corrected chao1 given counts: Eq. 2 in EstimateS manual.

Formula: chao1 = S_obs + N_1(N_1-1)/(2*(N_2+1)) where N_1 and N_2 are
count of singletons and doubletons respectively.

Note: this is the bias-corrected formulat from Chao 1987, Eq. 2 in the
EstimateS manual.
"""
return observed + singles*(singles-1) / (2.0*(doubles+1))

Cheers

--
Antonio González Peña
Research Assistant, Knight Lab
University of Colorado at Boulder
https://chem.colorado.edu/knightgroup/

Jesse Stombaugh

unread,
Dec 22, 2011, 2:33:17 PM12/22/11
to qiime...@googlegroups.com
Hello,

By default, chao1 used the bias corrected formula for alpha-diversity:

Formula: chao1 = S_obs + N_1(N_1-1)/(2*(N_2+1)) where N_1 and N_2 are count of singletons and doubletons respectively.

Note: this is the bias-corrected formula from Chao 1987, Eq. 2 in the EstimateS manual.

-Jesse

On Thu, Dec 22, 2011 at 12:25 PM, cricket <errcr...@gmail.com> wrote:



--
Jesse Stombaugh, Ph.D.
Research Associate
University of Colorado, Boulder

cricket

unread,
Dec 22, 2011, 2:42:54 PM12/22/11
to qiime...@googlegroups.com
Thank you both very much. That clears up some discrepancies.

C

2011/12/22 Antonio González Peña <antg...@gmail.com>



--
 - cricket
Reply all
Reply to author
Forward
0 new messages