Skip to content

Commit 239e2ef

Browse files
committed
add more integration tests
1 parent 5df53e5 commit 239e2ef

File tree

4 files changed

+15
-1
lines changed

4 files changed

+15
-1
lines changed

alphabase/constants/const_files/psm_reader.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ alphadia:
66
'raw_name': 'run'
77
'sequence': 'sequence'
88
'charge': 'charge'
9-
'rt': 'rt'
9+
'rt': 'rt_observed'
1010
'rt_start': 'rt_start'
1111
'rt_stop': 'rt_stop'
1212
'ccs': 'ccs'
Binary file not shown.
Binary file not shown.

tests/integration/test_psm_readers.py

+14
Original file line numberDiff line numberDiff line change
@@ -444,6 +444,20 @@ def test_alphadia_reader() -> None:
444444
_assert_reference_df_equal(reader.psm_df, "alphadia", loose_check=True)
445445

446446

447+
def test_alphadia_reader_181() -> None:
448+
"""Test the AlphaDIA reader with extended input from v1.8.1."""
449+
450+
url = "https://datashare.biochem.mpg.de/s/Hk41INtwBvBl0kP/download?files=alphadia_1.8.1_report_head.tsv"
451+
file_path = DataShareDownloader(
452+
url=url, output_dir=current_file_directory + "/input_data/"
453+
).download()
454+
455+
reader = AlphaDiaReaderTsv()
456+
reader.import_file(file_path)
457+
458+
_assert_reference_df_equal(reader.psm_df, "alphadia_1.8.1_tsv", loose_check=True)
459+
460+
447461
def test_diann_speclib_reader() -> None:
448462
"""Test the Diann speclib reader."""
449463
# this is the head of "https://datashare.biochem.mpg.de/s/DF12ObSdZnBnqUV" ("diann_speclib.tsv")

0 commit comments

Comments
 (0)