Skip to content

Commit

Permalink
added additional column option to original mode
Browse files Browse the repository at this point in the history
  • Loading branch information
picciama committed Jul 31, 2024
1 parent 052a565 commit 4377e20
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion spectrum_fundamentals/metrics/percolator.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,13 +51,13 @@ def __init__(
self,
metadata: pd.DataFrame,
input_type: str,
additional_columns: Optional[Union[str, list]] = None,
pred_intensities: Optional[Union[np.ndarray, scipy.sparse.csr_matrix]] = None,
true_intensities: Optional[Union[np.ndarray, scipy.sparse.csr_matrix]] = None,
mz: Optional[Union[np.ndarray, scipy.sparse.csr_matrix]] = None,
all_features_flag: bool = False,
regression_method: str = "lowess",
fdr_cutoff: float = 0.01,
additional_columns: Optional[Union[str, list]] = None,
):
"""Initialize a Percolator obj."""
self.metadata = metadata
Expand Down Expand Up @@ -503,6 +503,7 @@ def calc(self):
)

else:
self.add_additional_features()
self.metrics_val["andromeda"] = self.metadata["SCORE"]

self.add_percolator_metadata_columns()
Expand Down

0 comments on commit 4377e20

Please sign in to comment.