<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Hi,<br class=""><font color="#5856d6" class=""><br class=""></font>I have a question about the pairwise distance calculation in the DistanceCalculator under Phylo.TreeConstruction.<br class=""><font color="#5856d6" class=""><br class=""></font>It pertains to the normalization.<br class=""><font color="#5856d6" class=""><br class=""></font>Line 456.<br class=""><font color="#5856d6" class=""><br class=""></font><span class="" style="color: rgb(51, 51, 51); font-family: Consolas, 'Liberation Mono', Menlo, Courier, monospace; line-height: 13.44px; white-space: pre; widows: 1; background-color: rgb(255, 255, 255);"> </span><span class="pl-k" style="box-sizing: border-box; color: rgb(167, 29, 93); font-family: Consolas, 'Liberation Mono', Menlo, Courier, monospace; line-height: 13.44px; white-space: pre; widows: 1; background-color: rgb(255, 255, 255);">return</span><span class="" style="color: rgb(51, 51, 51); font-family: Consolas, 'Liberation Mono', Menlo, Courier, monospace; line-height: 13.44px; white-space: pre; widows: 1; background-color: rgb(255, 255, 255);"> </span><span class="pl-c1" style="box-sizing: border-box; color: rgb(0, 134, 179); font-family: Consolas, 'Liberation Mono', Menlo, Courier, monospace; line-height: 13.44px; white-space: pre; widows: 1; background-color: rgb(255, 255, 255);">1</span><span class="" style="color: rgb(51, 51, 51); font-family: Consolas, 'Liberation Mono', Menlo, Courier, monospace; line-height: 13.44px; white-space: pre; widows: 1; background-color: rgb(255, 255, 255);"> </span><span class="pl-k" style="box-sizing: border-box; color: rgb(167, 29, 93); font-family: Consolas, 'Liberation Mono', Menlo, Courier, monospace; line-height: 13.44px; white-space: pre; widows: 1; background-color: rgb(255, 255, 255);">-</span><span class="" style="color: rgb(51, 51, 51); font-family: Consolas, 'Liberation Mono', Menlo, Courier, monospace; line-height: 13.44px; white-space: pre; widows: 1; background-color: rgb(255, 255, 255);"> (score </span><span class="pl-k" style="box-sizing: border-box; color: rgb(167, 29, 93); font-family: Consolas, 'Liberation Mono', Menlo, Courier, monospace; line-height: 13.44px; white-space: pre; widows: 1; background-color: rgb(255, 255, 255);">*</span><span class="" style="color: rgb(51, 51, 51); font-family: Consolas, 'Liberation Mono', Menlo, Courier, monospace; line-height: 13.44px; white-space: pre; widows: 1; background-color: rgb(255, 255, 255);"> </span><span class="pl-c1" style="box-sizing: border-box; color: rgb(0, 134, 179); font-family: Consolas, 'Liberation Mono', Menlo, Courier, monospace; line-height: 13.44px; white-space: pre; widows: 1; background-color: rgb(255, 255, 255);">1.0</span><span class="" style="color: rgb(51, 51, 51); font-family: Consolas, 'Liberation Mono', Menlo, Courier, monospace; line-height: 13.44px; white-space: pre; widows: 1; background-color: rgb(255, 255, 255);"> </span><span class="pl-k" style="box-sizing: border-box; color: rgb(167, 29, 93); font-family: Consolas, 'Liberation Mono', Menlo, Courier, monospace; line-height: 13.44px; white-space: pre; widows: 1; background-color: rgb(255, 255, 255);">/</span><span class="" style="color: rgb(51, 51, 51); font-family: Consolas, 'Liberation Mono', Menlo, Courier, monospace; line-height: 13.44px; white-space: pre; widows: 1; background-color: rgb(255, 255, 255);"> max_score)</span><br class=""><br class=""><font color="#5856d6" class=""><br class=""></font><span style="white-space: pre; background-color: rgb(255, 255, 255); color: rgb(51, 51, 51); widows: 1;" class="">I understand that the goal here is to have a distance between 0 and 1. But couldn’t this be greater than 1 if say score was negative as is allowed in PAM and BLOSUM lookup matrices. Perhaps the entire distance matrix should be computed, then a minimum and maximum derived, and then normalized between 0 and 1 rather than do it on a pairwise basis. What do you think?</span><br class=""><font color="#333333" class=""><span style="white-space: pre;" class=""><br class=""></span></font><div class="" style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div class="" style="widows: 1;"><font color="#333333" class=""><span class="" style="background-color: rgb(255, 255, 255);"><span class="" style="white-space: pre;">Jordan</span></span></font></div><div class="" style="widows: 1;"><font color="#333333" class=""><span class="" style="background-color: rgb(255, 255, 255);"><span class="" style="white-space: pre;"><br class=""></span></span></font></div><div class="" style="widows: 1;"><font color="#333333" class=""><span class="" style="background-color: rgb(255, 255, 255);"><span class="" style="white-space: pre;">PS.</span></span></font></div><div class="" style="widows: 1;"><font color="#333333" class=""><span class="" style="background-color: rgb(255, 255, 255);"><span class="" style="white-space: pre;"><br class=""></span></span></font></div><div class="" style="widows: 1;"><font color="#333333" class=""><span class="" style="background-color: rgb(255, 255, 255);"><span class="" style="white-space: pre;">I apologize if you are seeing this in duplicate. I sent it to the regular list instead of the dev list which seems more applicable. </span></span></font></div></div></body></html>