Skip to main content
. 2023 Jun 21;15(1):2224474. doi: 10.1080/19490976.2023.2224474
Algorithm 1: Populating mean cladogram algorithm
1 Input: Cladogram, G=(V,E), a preprocessed ASVs vector, b
2 Output: A populated cladogram of means, G
3 forlfrom the maximum cladogram depth to 0do
4 foreach node, v, in layer,ldo
5 ifthe layer of v is inbthen
6 Assign node v the value from b
7 if v has any children then
8 Assign its children mean to v
9 return G