Skip to main content
. 2023 Jun 21;15(1):2224474. doi: 10.1080/19490976.2023.2224474
Algorithm 3: Reordering algorithm, REA
1 Input: RR8×N, l level of taxonomy
2 Output: Rˆ, rearranged matrix R
3 Rˆ ϕ
4 Annotate: R in level l: b1,b2,,bN
5 Cl,1,,Cl,k Dendrogram(b1,b2,,bN)
6 Temp ϕ
7 for Cluster in Cl,1,,Cl,k do
8 for taxa in Cluster do
9 Append taxa column to Temp if l<8 then
10 Temp REA(Temp,l+1)
11 Append Temp to Rˆ
12 return Rˆ