Skip to content

Commit

Permalink
Merge pull request #47 from MannLabs/fix_alphabase_noqa
Browse files Browse the repository at this point in the history
FIX alphabase noqa
  • Loading branch information
jalew188 committed May 22, 2024
2 parents f13fe29 + d8e90ce commit 4094245
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
6 changes: 3 additions & 3 deletions alpharaw/viz/df_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
from alpharaw.match.match_utils import match_closest_peaks, match_highest_peaks

from alphabase.peptide.precursor import (
calc_precursor_mz,
update_precursor_mz,
calc_precursor_isotope_intensity,
)

Expand Down Expand Up @@ -368,7 +368,7 @@ def translate_frag_df_to_plot_df(
for iso in isotope_names:
fragment_df[f"precursor_{iso}"] = precursor_df[iso].values[0]
if len(isotope_names) > 0:
fragment_df[f"precursor_mono_idx"] = precursor_df.mono_isotope_idx.values[0]
fragment_df["precursor_mono_idx"] = precursor_df.mono_isotope_idx.values[0]

return fragment_df

Expand All @@ -386,7 +386,7 @@ def make_precursor_fragment_df(
precursor_df = pd.DataFrame(
dict(sequence=[sequence], mods=[mods], mod_sites=[mod_sites], charge=charge)
)
calc_precursor_mz(precursor_df)
update_precursor_mz(precursor_df)
if include_precursor_isotopes:
calc_precursor_isotope_intensity(precursor_df, max_isotope=max_isotope)
if include_fragments:
Expand Down
2 changes: 2 additions & 0 deletions extra_requirements/development.txt
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,6 @@ furo
alphabase>=1.1.0
alphatims

pytest
pre-commit==3.7.0
nbmake==1.5.3
2 changes: 1 addition & 1 deletion nbs_tests/test_viz_multinotch.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@
" \"mod_sites\": [\"\",\"9\"],\n",
" \"rt\": [4.3,4.3],\n",
"})\n",
"precursur_func.calc_precursor_mz(psm_df)\n",
"precursur_func.update_precursor_mz(psm_df)\n",
"precursur_func.calc_precursor_isotope(psm_df)"
]
},
Expand Down

0 comments on commit 4094245

Please sign in to comment.