Skip to content

Commit

Permalink
Merge pull request #81 from Proteobench/fix
Browse files Browse the repository at this point in the history
🎨 remove warning, reduce computations
  • Loading branch information
RobbinBouwmeester authored Sep 22, 2023
2 parents 188eacb + a6ae962 commit 6d95122
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 9 deletions.
2 changes: 1 addition & 1 deletion proteobench/modules/dda_quant/parse.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def convert_to_standard_format(

df.loc[df.index, "peptidoform"] = df.loc[df.index, "Sequence"]
count_non_zero = (
df.groupby(["Sequence", "Raw file"]).sum()["Intensity"] > 0.0
df.groupby(["Sequence", "Raw file"])["Intensity"].sum() > 0.0
).groupby(level=[0]).sum() == 6

allowed_peptidoforms = list(count_non_zero.index[count_non_zero])
Expand Down
14 changes: 6 additions & 8 deletions webinterface/pages/TEMPLATE.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,10 @@
from datetime import datetime

from proteobench.modules.template.module import Module
from proteobench.modules.template.parse_settings import (
INPUT_FORMATS,
LOCAL_DEVELOPMENT,
TEMPLATE_RESULTS_PATH,
)
from proteobench.modules.template.plot import PlotDataPoint
from proteobench.modules.template.parse_settings import (INPUT_FORMATS,
LOCAL_DEVELOPMENT,
TEMPLATE_RESULTS_PATH)
from proteobench.modules.template.plot import plot_bench1, plot_bench2

try:
from importlib.metadata import version
Expand Down Expand Up @@ -179,7 +177,7 @@ def generate_results(
st.subheader("TITLE FOR FIGURE 1")
if recalculate:
# calling the plot functions in modules/template/plot.py
fig = PlotDataPoint().plot_fig1(result_performance)
fig = plot_bench1(result_performance)
else:
fig = st.session_state[FIG1]
st.plotly_chart(fig, use_container_width=True)
Expand All @@ -191,7 +189,7 @@ def generate_results(

if recalculate:
# calling the plot functions in modules/template/plot.py
fig2 = PlotDataPoint().plot_fig2(all_datapoints)
fig2 = plot_bench1(all_datapoints)
else:
fig2 = st.session_state[FIG2]
st.plotly_chart(fig2, use_container_width=True)
Expand Down

0 comments on commit 6d95122

Please sign in to comment.