Skip to content

Commit

Permalink
fixed typeguard error. only pre-commit need to be fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
Mostafa Kalhor committed Apr 10, 2024
1 parent e7a7dd5 commit 8c36f75
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions spectrum_io/search_result/xisearch.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,8 @@ def add_mod_sequence(
mod_b: str,
crosslinker_position_a: int,
crosslinker_position_b: int,
mod_a_positions: str,
mod_b_positions: str,
mod_a_positions: Union[str, float],
mod_b_positions: Union[str, float],
):
"""
Function adds modification in peptide sequence for xl-prosit.
Expand Down Expand Up @@ -174,7 +174,7 @@ def add_mod_sequence(
split_seq_b[int(mod_b_positions_float) - 1] = modification
except ValueError:
print(f"Error occurred with mod_a_positions value: {mod_b_positions}")

split_seq_a[int(crosslinker_position_a) - 1] = "K[UNIMOD:1896]"
split_seq_b[int(crosslinker_position_b) - 1] = "K[UNIMOD:1896]"

Expand Down
2 changes: 1 addition & 1 deletion tests/unit_tests/data/peptide_protein_map.tsv.params.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
/cmnfs/home/m.kalhor/miniconda3/envs/oktoberfest/bin/pytest
/cmnfs/home/m.kalhor/wilhelmlab/spectrum_io/.nox/typeguard-3-9/bin/pytest --typeguard-packages=spectrum_io
2 changes: 1 addition & 1 deletion tests/unit_tests/test_xisearch.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ def test_read_xisearch(self):
expected_df = pd.read_csv(expected_xisearch_internal_path)
expected_df["Modifications_A"] = expected_df["Modifications_A"].fillna("nan")
expected_df["Modifications_B"] = expected_df["Modifications_B"].fillna("nan")
pd.testing.assert_frame_equal(internal_search_results_df, expected_df)
pd.testing.assert_frame_equal(internal_search_results_df, expected_df, check_dtype=False)

0 comments on commit 8c36f75

Please sign in to comment.