Mass Spectrometry, Tutorial, Python, Data Analysis, Research.
calculate_scores(spectrums, spectrums, similarity_measure, is_symmetric=True) Let’s then visualize the results for the first 50 x 50 spectrum pairs. scores_array = scores.scores.to_array() plt.figure(figsize=(6,6), dpi=150) plt.imshow(scores_array[:50, :50]["score"], cmap="viridis")