pyopenms.update_scores_from_df#
- pyopenms.update_scores_from_df(peps: List[PeptideIdentification], df: DataFrame, main_score_name: str)#
Updates the scores in PeptideIdentification objects using a pandas dataframe.
- Parameters:
peps – list of PeptideIdentification objects
df – pandas dataframe obtained by converting peps to a dataframe. Minimum required: P_ID column and column with name passed by main_score_name
- Returns:
the updated list of peptide identifications