I have updated compareMS2 to take additional inputs for the distance metric used (0 = original asymmetric, 1 = original symmetric and 2 = metric in compareMS2 2.0), and also scaling power (e.g. 0.5 = square root, default so far) and noise. All metrics can be derived from the distribution, but this depend on the input parameters.
Should we still have the option in compareMS2_to_distance_matrices to recalculate the distances? I would say yes, as this is very fast, compared to rerunning compareMS2.
If the asymmetric "metric" is used, then compareMS2 should do all comparisons, except self-comparisons (i.e. A with B and B with A). For this metric, compareMS2_to_distance_matrices should compute both upper and lower triangular elements in the distance matrix.
For the other, symmetric, metrices, compareMS2 should only do half the comparisons, and compareMS2_to_distance_matrices should compute only one triangular distance matric.
If a user asks compareMS2_to_distance_matrices to use metric 0 for compareMS2 runs done with one of the symmetric metrices, then a warning message should be generated to the command line, and a single triangular matrix generated. The GUI could ask the user if they want to run the additional compareMS2 comparisons for the assymetric distances.
I have modified the output of compareMS2 to read like this:
These key-value(s) pairs are hopefully more consistent with the mathematical description in the papers. compareMS2_to_distance_matrices needs to be updated to read these intermediary files.
I have updated compareMS2 to take additional inputs for the distance metric used (0 = original asymmetric, 1 = original symmetric and 2 = metric in compareMS2 2.0), and also scaling power (e.g. 0.5 = square root, default so far) and noise. All metrics can be derived from the distribution, but this depend on the input parameters.
Should we still have the option in compareMS2_to_distance_matrices to recalculate the distances? I would say yes, as this is very fast, compared to rerunning compareMS2.
If the asymmetric "metric" is used, then compareMS2 should do all comparisons, except self-comparisons (i.e. A with B and B with A). For this metric, compareMS2_to_distance_matrices should compute both upper and lower triangular elements in the distance matrix.
For the other, symmetric, metrices, compareMS2 should only do half the comparisons, and compareMS2_to_distance_matrices should compute only one triangular distance matric.
If a user asks compareMS2_to_distance_matrices to use metric 0 for compareMS2 runs done with one of the symmetric metrices, then a warning message should be generated to the command line, and a single triangular matrix generated. The GUI could ask the user if they want to run the additional compareMS2 comparisons for the assymetric distances.
I have modified the output of compareMS2 to read like this:
These key-value(s) pairs are hopefully more consistent with the mathematical description in the papers. compareMS2_to_distance_matrices needs to be updated to read these intermediary files.