- Average linkage
- Complete linkage
- Single linkage: the best one
git clone https://github.com/voutcn/FP-COMP8503.git && cd FP-COMP8503
g++ -O2 to_vector.cpp -o to_vector -lz
g++ -O2 cluster.cpp -o cluster -static-libstdc++ -std=c++0x -lz
for i in `ls *.fna`; do src/to_vector $i >> data100k.txt; done
./cluster data100k.txt 0 > avg.tree
./cluster data100k.txt 1 > cmp.tree
./cluster data100k.txt 2 > sng.tree
Upload avg.tree
, cmp.tree
and sng.tree
to http://www.hiv.lanl.gov/content/sequence/RAINBOWTREE/rainbowtree.html.
In the "Option" tags, choose
"Color tree according to the column in field 1
of sequence names delimited by _
".