To assess the performance of each similarity measure, the main criterion was the accuracy of compound identification. Accuracy was defined as the ratio of the number of query mass spectra that were correctly identified to the total number of query spectra, calculated as Accuracy = Number of query spectra correctly identified Total number of query spectra .