Skip to content

Commit 464bb88

Browse files
committed
Fix linting issues in online
1 parent 6edb4c7 commit 464bb88

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

online/Home.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44

55

66
class StreamlitPageHome(StreamlitPage):
7+
"""Streamlit page for the home section."""
8+
79
def _main_page(self):
810
pass
911

online/_utils.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ class ECDF:
1111
----------
1212
x : array_like
1313
Observations
14+
1415
"""
1516

1617
def __init__(self, x):
@@ -101,15 +102,15 @@ def pp_plot(psm_df):
101102

102103
def fdr_plot(psm_df, fdr_threshold):
103104
"""Plot number of identifications in function of FDR threshold."""
104-
df = (
105+
target_psm_df = (
105106
psm_df[~psm_df["is_decoy"]]
106107
.reset_index(drop=True)
107108
.sort_values("qvalue", ascending=True)
108109
.copy()
109110
)
110-
df["count"] = (~df["is_decoy"]).cumsum()
111+
target_psm_df["count"] = (~target_psm_df["is_decoy"]).cumsum()
111112
fig = px.line(
112-
df,
113+
target_psm_df,
113114
x="qvalue",
114115
y="count",
115116
log_x=True,

0 commit comments

Comments
 (0)