# Mutation rate calculation

**URL:** <https://forum.biobakery.org/t/mutation-rate-calculation/3808>\
**Category:** StrainPhlAn\
**Created:** [July 7, 2022, 9:59am UTC](https://forum.biobakery.org/t/mutation-rate-calculation/3808 "2022-07-07T09:59:43Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jeffrey\_Chiu](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.biobakery.org/jeffrey_chiu/32/637_2.png) [@Jeffrey\_Chiu](https://forum.biobakery.org/u/Jeffrey_Chiu)\
**Post date:** [July 7, 2022, 9:59am UTC](https://forum.biobakery.org/t/mutation-rate-calculation/3808/1 "2022-07-07T09:59:43Z")

</div>

Hi @aitor.blancomiguez or any other strainphlan experts,

Is it possible to explain the details of how mutation rate is calculated when --mutation\_rate is specified as an option? Any resource that explains this would also be helpful. Thank you!

---

<div class="post-metadata">

**Author:** ![aitor.blancomiguez](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.biobakery.org/aitor.blancomiguez/32/86_2.png) [@aitor.blancomiguez](https://forum.biobakery.org/u/aitor.blancomiguez)\
**Post date:** [July 18, 2022, 9:43am UTC](https://forum.biobakery.org/t/mutation-rate-calculation/3808/2 "2022-07-18T09:43:24Z")

</div>

Hi @Jeffrey_Chiu  
Sorry for the late reply, I was out for my summer holidays.  
For the mutation rates, StrainPhlAn will rely on the internal call of PhyloPhlAn for the calculation ([Home · biobakery/phylophlan Wiki · GitHub](https://github.com/biobakery/phylophlan/wiki#mutation-rates-table)). This is, after discarding markers and samples in the first step, the filtered set of markers and samples will be provided to PhyloPhlAn to infer the phylogeny. In this step, PhyloPhlAn will calculate the mutation rates as the number of bases that differ between each pair of samples (using the alignment of the filtered set of marker genes) divided by the number of positions shared (i.e. containing no gaps) between the samples.
