The cluster command is used for hierarchical agglomerative clustering of custom data by using a custom distance function.
| ⎡ ⎢ ⎣ |
| ⎤ ⎥ ⎦ |
| data:=["GTCTT","AAGCT","GGTAA","AGGCT","GTCAT","CGGCC", |
| "GGGAG","GTTAT","GTCAT","AGGCT","GTCAG","AGGAT"]:; |
| cluster(data,type="average",count=5,distance=hamdist,output=part) |
|