Skip to content

Commit

Permalink
Merge pull request #516 from Proteobench/Title-location
Browse files Browse the repository at this point in the history
Title location
  • Loading branch information
RobbinBouwmeester authored Dec 19, 2024
2 parents b2cbe3c + cfe07fb commit 7777e2b
Show file tree
Hide file tree
Showing 10 changed files with 30 additions and 28 deletions.
13 changes: 6 additions & 7 deletions webinterface/pages/2_Quant_LFQ_ion_DDA.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,9 @@

class StreamlitUI:
def __init__(self):
print("page loaded")
self.variables_dda_quant: VariablesDDAQuant = VariablesDDAQuant()
self.texts: Type[WebpageTexts] = WebpageTexts
self.texts.ShortMessages.title = "DDA Ion quantification"

self.user_input: Dict[str, Any] = dict()

pbb.proteobench_page_config()
Expand Down Expand Up @@ -56,7 +55,7 @@ def _main_page(self) -> None:
)

with tab_results_all:
st.title(self.variables_dda_quant.texts.ShortMessages.title)
st.title(self.variables_dda_quant.title)
st.write(f"The full description of the module is available [here]({self.variables_dda_quant.doc_url})")
if self.variables_dda_quant.beta_warning:
st.warning(
Expand All @@ -66,7 +65,7 @@ def _main_page(self) -> None:

# Tab 2: Submission Details
with tab_submission_details:
st.title(self.variables_dda_quant.texts.ShortMessages.title)
st.title(self.variables_dda_quant.title)

st.write(f"The full description of the module is available [here]({self.variables_dda_quant.doc_url})")
if self.variables_dda_quant.beta_warning:
Expand All @@ -77,7 +76,7 @@ def _main_page(self) -> None:

# Tab 2.5: in-depth plots current data
with tab_indepth_plots:
st.title(self.variables_dda_quant.texts.ShortMessages.title)
st.title(self.variables_dda_quant.title)

st.write(f"The full description of the module is available [here]({self.variables_dda_quant.doc_url})")
if self.variables_dda_quant.beta_warning:
Expand All @@ -88,7 +87,7 @@ def _main_page(self) -> None:

# Tab 3: Results (New Submissions)
with tab_results_new:
st.title(self.variables_dda_quant.texts.ShortMessages.title)
st.title(self.variables_dda_quant.title)
st.write(f"The full description of the module is available [here]({self.variables_dda_quant.doc_url})")
if self.variables_dda_quant.beta_warning:
st.warning(
Expand All @@ -99,7 +98,7 @@ def _main_page(self) -> None:

# Tab 4: Public Submission
with tab_public_submission:
st.title(self.variables_dda_quant.texts.ShortMessages.title)
st.title(self.variables_dda_quant.title)
st.write(f"The full description of the module is available [here]({self.variables_dda_quant.doc_url})")
if self.variables_dda_quant.beta_warning:
st.warning(
Expand Down
12 changes: 6 additions & 6 deletions webinterface/pages/3_Quant_LFQ_ion_DIA_AIF.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class StreamlitUI:
def __init__(self):
self.variables_dia_quant: VariablesDIAQuant = VariablesDIAQuant()
self.texts: Type[WebpageTexts] = WebpageTexts
self.texts.ShortMessages.title = "DIA Ion quantification - AIF"

self.user_input: Dict[str, Any] = dict()

pbb.proteobench_page_config()
Expand Down Expand Up @@ -60,7 +60,7 @@ def _main_page(self) -> None:

# Tab 1: Results (All Data)
with tab_results_all:
st.title(self.variables_dia_quant.texts.ShortMessages.title)
st.title(self.variables_dia_quant.title)
st.write(f"The full description of the module is available [here]({self.variables_dia_quant.doc_url})")
if self.variables_dia_quant.beta_warning:
st.warning(
Expand All @@ -70,7 +70,7 @@ def _main_page(self) -> None:

# Tab 2: Submission Details
with tab_submission_details:
st.title(self.variables_dia_quant.texts.ShortMessages.title)
st.title(self.variables_dia_quant.title)
st.write(f"The full description of the module is available [here]({self.variables_dia_quant.doc_url})")
if self.variables_dia_quant.beta_warning:
st.warning(
Expand All @@ -80,7 +80,7 @@ def _main_page(self) -> None:

# Tab 2.5: in-depth plots current data
with tab_indepth_plots:
st.title(self.variables_dia_quant.texts.ShortMessages.title)
st.title(self.variables_dia_quant.title)
st.write(f"The full description of the module is available [here]({self.variables_dia_quant.doc_url})")
if self.variables_dia_quant.beta_warning:
st.warning(
Expand All @@ -90,7 +90,7 @@ def _main_page(self) -> None:

# Tab 3: Results (New Submissions)
with tab_results_new:
st.title(self.variables_dia_quant.texts.ShortMessages.title)
st.title(self.variables_dia_quant.title)
st.write(f"The full description of the module is available [here]({self.variables_dia_quant.doc_url})")
if self.variables_dia_quant.beta_warning:
st.warning(
Expand All @@ -100,7 +100,7 @@ def _main_page(self) -> None:

# Tab 4: Public Submission
with tab_public_submission:
st.title(self.variables_dia_quant.texts.ShortMessages.title)
st.title(self.variables_dia_quant.title)
st.write(f"The full description of the module is available [here]({self.variables_dia_quant.doc_url})")
if self.variables_dia_quant.beta_warning:
st.warning(
Expand Down
11 changes: 5 additions & 6 deletions webinterface/pages/4_Quant_LFQ_ion_DIA_diaPASEF.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ class StreamlitUI:
def __init__(self):
self.variables_dia_quant: VariablesDIAQuantdiaPASEF = VariablesDIAQuantdiaPASEF()
self.texts: Type[WebpageTexts] = WebpageTexts
self.texts.ShortMessages.title = "DIA Ion quantification - diaPASEF"
self.user_input: Dict[str, Any] = dict()

pbb.proteobench_page_config()
Expand Down Expand Up @@ -62,7 +61,7 @@ def _main_page(self) -> None:

# Tab 1: Results (All Data)
with tab_results_all:
st.title(self.variables_dia_quant.texts.ShortMessages.title)
st.title(self.variables_dia_quant.title)
st.write(f"The full description of the module is available [here]({self.variables_dia_quant.doc_url})")
if self.variables_dia_quant.beta_warning:
st.warning(
Expand All @@ -72,7 +71,7 @@ def _main_page(self) -> None:

# Tab 2: Submission Details
with tab_submission_details:
st.title(self.variables_dia_quant.texts.ShortMessages.title)
st.title(self.variables_dia_quant.title)
st.write(f"The full description of the module is available [here]({self.variables_dia_quant.doc_url})")
if self.variables_dia_quant.beta_warning:
st.warning(
Expand All @@ -82,7 +81,7 @@ def _main_page(self) -> None:

# Tab 2.5: in-depth plots current data
with tab_indepth_plots:
st.title(self.variables_dia_quant.texts.ShortMessages.title)
st.title(self.variables_dia_quant.title)
st.write(f"The full description of the module is available [here]({self.variables_dia_quant.doc_url})")
if self.variables_dia_quant.beta_warning:
st.warning(
Expand All @@ -92,7 +91,7 @@ def _main_page(self) -> None:

# Tab 3: Results (New Submissions)
with tab_results_new:
st.title(self.variables_dia_quant.texts.ShortMessages.title)
st.title(self.variables_dia_quant.title)
st.write(f"The full description of the module is available [here]({self.variables_dia_quant.doc_url})")
if self.variables_dia_quant.beta_warning:
st.warning(
Expand All @@ -102,7 +101,7 @@ def _main_page(self) -> None:

# Tab 4: Public Submission
with tab_public_submission:
st.title(self.variables_dia_quant.texts.ShortMessages.title)
st.title(self.variables_dia_quant.title)
st.write(f"The full description of the module is available [here]({self.variables_dia_quant.doc_url})")
if self.variables_dia_quant.beta_warning:
st.warning(
Expand Down
11 changes: 5 additions & 6 deletions webinterface/pages/5_Quant_LFQ_peptidoform_DDA.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ class StreamlitUI:
def __init__(self):
self.variables_dda_quant: VariablesDDAQuant = VariablesDDAQuant()
self.texts: Type[WebpageTexts] = WebpageTexts
self.texts.ShortMessages.title = "DDA peptidoform quantification"

self.user_input: Dict[str, Any] = dict()

Expand Down Expand Up @@ -66,7 +65,7 @@ def _main_page(self) -> None:
)

with tab_results_all:
st.title(self.variables_dda_quant.texts.ShortMessages.title)
st.title(self.variables_dda_quant.title)
st.write(f"The full description of the module is available [here]({self.variables_dda_quant.doc_url})")
if self.variables_dda_quant.beta_warning:
st.warning(
Expand All @@ -76,7 +75,7 @@ def _main_page(self) -> None:

# Tab 2: Submission Details
with tab_submission_details:
st.title(self.variables_dda_quant.texts.ShortMessages.title)
st.title(self.variables_dda_quant.title)
st.write(f"The full description of the module is available [here]({self.variables_dda_quant.doc_url})")
if self.variables_dda_quant.beta_warning:
st.warning(
Expand All @@ -86,7 +85,7 @@ def _main_page(self) -> None:

# Tab 2.5: in-depth plots current data
with tab_indepth_plots:
st.title(self.variables_dda_quant.texts.ShortMessages.title)
st.title(self.variables_dda_quant.title)
st.write(f"The full description of the module is available [here]({self.variables_dda_quant.doc_url})")
if self.variables_dda_quant.beta_warning:
st.warning(
Expand All @@ -96,7 +95,7 @@ def _main_page(self) -> None:

# Tab 3: Results (New Submissions)
with tab_results_new:
st.title(self.variables_dda_quant.texts.ShortMessages.title)
st.title(self.variables_dda_quant.title)
st.write(f"The full description of the module is available [here]({self.variables_dda_quant.doc_url})")
if self.variables_dda_quant.beta_warning:
st.warning(
Expand All @@ -107,7 +106,7 @@ def _main_page(self) -> None:

# Tab 4: Public Submission
with tab_public_submission:
st.title(self.variables_dda_quant.texts.ShortMessages.title)
st.title(self.variables_dda_quant.title)
st.write(f"The full description of the module is available [here]({self.variables_dda_quant.doc_url})")
if self.variables_dda_quant.beta_warning:
st.warning(
Expand Down
1 change: 0 additions & 1 deletion webinterface/pages/6_Quant_LFQ_peptidoform_DIA_AIF.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ class StreamlitUI:
def __init__(self):
self.variables_dda_quant: VariablesDIAQuant = VariablesDIAQuant()
self.texts: Type[WebpageTexts] = WebpageTexts
self.texts.ShortMessages.title = "DIA peptidoform quantification"

self.user_input: Dict[str, Any] = dict()

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,3 +61,5 @@ class VariablesDDAQuant:

texts: Type[WebpageTexts] = WebpageTexts
doc_url: str = "https://proteobench.readthedocs.io/en/latest/available-modules/2-quant-lfq-ion-dda/"

title: str = "DDA Ion quantification"
Original file line number Diff line number Diff line change
Expand Up @@ -58,3 +58,6 @@ class VariablesDIAQuant:
parse_settings_dir: str = "../proteobench/io/parsing/io_parse_settings/Quant/lfq/ion/DIA/AIF"

texts: Type[WebpageTexts] = WebpageTexts
doc_url: str = "https://proteobench.readthedocs.io/en/latest/available-modules/4-quant-lfq-ion-dia-aif/"

title: str = "DIA Ion quantification - AIF"
Original file line number Diff line number Diff line change
Expand Up @@ -63,3 +63,5 @@ class VariablesDIAQuantdiaPASEF:
texts: Type[WebpageTexts] = WebpageTexts

doc_url: str = "https://proteobench.readthedocs.io/en/latest/available-modules/5-quant-lfq-ion-dia-diapasef/"

title: str = "DIA Ion quantification - diaPASEF"
Original file line number Diff line number Diff line change
Expand Up @@ -62,3 +62,4 @@ class VariablesDDAQuant:
texts: Type[WebpageTexts] = WebpageTexts

doc_url: str = "https://proteobench.readthedocs.io/en/latest/available-modules/3-quant-lfq-peptidoform-dda/"
title: str = "DDA peptidoform quantification"
2 changes: 0 additions & 2 deletions webinterface/pages/texts/generic_texts.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ class ShortMessages:

title = "DDA quantification - precursor ions"

doc_url = "https://proteobench.readthedocs.io/en/latest/available-modules/4-quant-lfq-ion-dia-aif/"

initial_results = """
Scroll down if you want to see the public benchmark runs publicly available
today.
Expand Down

0 comments on commit 7777e2b

Please sign in to comment.