Skip to content

Commit

Permalink
still working on errors - fixed typrguard error
Browse files Browse the repository at this point in the history
  • Loading branch information
Mostafa Kalhor committed Apr 10, 2024
1 parent 52fc13d commit fe89064
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion spectrum_io/search_result/xisearch.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,6 @@ def filter_xisearch_result(self, df: pd.DataFrame) -> pd.DataFrame:
:param df: df to filter
:return: filtered df as pd.DataFrame
"""
# df = df[df["linear"] != True]
df = df[~df["linear"]]
df = df[df["linked_aa_p1"].notna() & df["linked_aa_p1"].str.contains("K")]
df = df[df["linked_aa_p2"].notna() & df["linked_aa_p2"].str.contains("K")]
Expand Down Expand Up @@ -152,6 +151,9 @@ def add_mod_sequence(
:param mod_b_positions: position of all modifications of peptide b
:return: modified sequence a and b
"""
mod_a_positions = str(mod_a_positions) # Ensure it's a string
mod_b_positions = str(mod_b_positions) # Ensure it's a string

split_seq_a = [x for x in seq_a]
split_seq_b = [x for x in seq_b]

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/miniconda3/envs/oktoberfest/bin/pytest

0 comments on commit fe89064

Please sign in to comment.