Skip to content

Commit

Permalink
DOCUMENT fix
Browse files Browse the repository at this point in the history
  • Loading branch information
straussmaximilian committed Mar 21, 2022
1 parent 31c7482 commit 3f384ac
Show file tree
Hide file tree
Showing 6 changed files with 34 additions and 2,793 deletions.
5 changes: 2 additions & 3 deletions alphapept/score.py
Original file line number Diff line number Diff line change
Expand Up @@ -524,13 +524,12 @@ def score_ML(df: pd.DataFrame,
Args:
df (pd.DataFrame): psms table of search results from alphapept.
trained_classifier (GridSearchCV): GridSearchCV object returned by train_RF.
features (list): list with features returned by train_RF. Defaults to 'None'.
features (list): list with features returned by train_RF. Defaults to None.
fdr_level (float, optional): fdr level that should be used for filtering. The value should lie between 0 and 1. Defaults to 0.01.
plot (bool, optional): flag to enable plot. Defaults to 'True'.
plot (bool, optional): flag to enable plot. Defaults to True.
Returns:
pd.DataFrame: filtered df with psms within fdr
"""
logging.info('Scoring using Machine Learning')
# Apply the classifier to the entire dataset
Expand Down
Loading

0 comments on commit 3f384ac

Please sign in to comment.