Skip to content

Commit

Permalink
add more integration tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mschwoer committed Nov 25, 2024
1 parent 673660b commit 3e745b3
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 1 deletion.
2 changes: 1 addition & 1 deletion alphabase/constants/const_files/psm_reader.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ alphadia:
'raw_name': 'run'
'sequence': 'sequence'
'charge': 'charge'
'rt': 'rt'
'rt': 'rt_observed'
'rt_start': 'rt_start'
'rt_stop': 'rt_stop'
'ccs': 'ccs'
Expand Down
Binary file modified tests/integration/reference_data/reference_alphadia.parquet
Binary file not shown.
Binary file not shown.
14 changes: 14 additions & 0 deletions tests/integration/test_psm_readers.py
Original file line number Diff line number Diff line change
Expand Up @@ -441,6 +441,20 @@ def test_alphadia_reader() -> None:
_assert_reference_df_equal(reader.psm_df, "alphadia", loose_check=True)


def test_alphadia_reader_181() -> None:
"""Test the AlphaDIA reader with extended input from v1.8.1."""

url = "https://datashare.biochem.mpg.de/s/Hk41INtwBvBl0kP/download?files=alphadia_1.8.1_report_head.tsv"
file_path = DataShareDownloader(
url=url, output_dir=current_file_directory + "/input_data/"
).download()

reader = AlphaDiaReaderTsv()
reader.import_file(file_path)

_assert_reference_df_equal(reader.psm_df, "alphadia_1.8.1_tsv", loose_check=True)


def test_diann_speclib_reader() -> None:
"""Test the Diann speclib reader."""
# this is the head of "https://datashare.biochem.mpg.de/s/DF12ObSdZnBnqUV" ("diann_speclib.tsv")
Expand Down

0 comments on commit 3e745b3

Please sign in to comment.