File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change 4
4
5
5
6
6
class StreamlitPageHome (StreamlitPage ):
7
+ """Streamlit page for the home section."""
8
+
7
9
def _main_page (self ):
8
10
pass
9
11
Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ class ECDF:
11
11
----------
12
12
x : array_like
13
13
Observations
14
+
14
15
"""
15
16
16
17
def __init__ (self , x ):
@@ -101,15 +102,15 @@ def pp_plot(psm_df):
101
102
102
103
def fdr_plot (psm_df , fdr_threshold ):
103
104
"""Plot number of identifications in function of FDR threshold."""
104
- df = (
105
+ target_psm_df = (
105
106
psm_df [~ psm_df ["is_decoy" ]]
106
107
.reset_index (drop = True )
107
108
.sort_values ("qvalue" , ascending = True )
108
109
.copy ()
109
110
)
110
- df ["count" ] = (~ df ["is_decoy" ]).cumsum ()
111
+ target_psm_df ["count" ] = (~ target_psm_df ["is_decoy" ]).cumsum ()
111
112
fig = px .line (
112
- df ,
113
+ target_psm_df ,
113
114
x = "qvalue" ,
114
115
y = "count" ,
115
116
log_x = True ,
You can’t perform that action at this time.
0 commit comments