Skip to content

Commit 8108df6

Browse files
committed
First test for MS2DeepScoresForTopinchikeys
1 parent fef5a20 commit 8108df6

File tree

2 files changed

+14
-64
lines changed

2 files changed

+14
-64
lines changed
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
from ms2query.benchmarking.AnnotatedSpectrumSet import AnnotatedSpectrumSet
2+
from ms2query.benchmarking.reference_methods.MS2DeepScoresForTopInChikeys import (
3+
calculate_MS2DeepScoresForTopKInChikeys_from_spectra,
4+
)
5+
from tests.helper_functions import create_test_spectra, ms2deepscore_model
6+
7+
8+
def test_calculate_MS2DeepScoresForTopKInChikeys_from_spectra():
9+
model = ms2deepscore_model()
10+
library_spectra = AnnotatedSpectrumSet.create_spectrum_set(create_test_spectra(nr_of_inchikeys=7))
11+
test_spectra = AnnotatedSpectrumSet.create_spectrum_set(create_test_spectra(1, nr_of_inchikeys=3))
12+
library_spectra.add_embeddings(model)
13+
test_spectra.add_embeddings(model)
14+
calculate_MS2DeepScoresForTopKInChikeys_from_spectra(library_spectra, test_spectra, "daylight", 100, 3, 3)

tests/test_benchmarking/test_predict_using_closest_tanimoto.py

Lines changed: 0 additions & 64 deletions
This file was deleted.

0 commit comments

Comments
 (0)