Similarity matrix (Tanimoto)

Hi @adesinoh and welcome to the KNIME community !

Below you will find a workflow which provides a full Tanimoto matrix distance:

20220216 Pikairos Tanimoto Similarity Matrix.knwf (110.1 KB)

The extra work needed here was to transform a Half-Diagonal Distance matrix provided by the -Distance Matrix Calculate- node into a full Distance Matrix with “Ones” diagonal included.
This can be generalized to a Euclidean Distance Matrix where the diagonal should be made of Zeros.

Hope it helps.

Best wishes,

Ael

3 Likes