Thought of something. This should get you going. http://cvs.biojava.org/cgi-bin/viewcvs/viewcvs.cgi/biopython/Bio/KDTree/__init__.py?rev=1.3&cvsroot=biopython&content-type=text/vnd.viewcvs-markup Laura, really going to bed now.