Skip to content

Commit 393f514

Browse files
committed
Edit user info for file upload in ml scores
1 parent cafa969 commit 393f514

File tree

2 files changed

+50
-2
lines changed

2 files changed

+50
-2
lines changed

src/viewer/pages/workflow_sMRI_MLScores.py

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,54 @@
9999
p_demog = st.session_state.paths["csv_demog"]
100100
st.success(f"Data is ready ({p_demog})", icon=":material/thumb_up:")
101101

102+
# Check the input data
103+
@st.dialog("Input data requirements") # type:ignore
104+
def help_input_data():
105+
df_muse = pd.DataFrame(
106+
columns=['MRID', '702', '701', '600', '601', '...'],
107+
data=[
108+
['Subj1', '...', '...', '...', '...', '...'],
109+
['Subj2', '...', '...', '...', '...', '...'],
110+
['Subj3', '...', '...', '...', '...', '...'],
111+
['...', '...', '...', '...', '...', '...']
112+
]
113+
)
114+
st.markdown(
115+
"""
116+
### DLMUSE File:
117+
The DLMUSE CSV file contains volumes of ROIs (Regions of Interest) segmented by the DLMUSE algorithm. This file is generated as output when DLMUSE is applied to a set of images.
118+
"""
119+
)
120+
st.write('Example MUSE data file:')
121+
st.dataframe(df_muse)
122+
123+
df_demog = pd.DataFrame(
124+
columns=['MRID', 'Age', 'Sex'],
125+
data=[
126+
['Subj1', '57', 'F'],
127+
['Subj2', '65', 'M'],
128+
['Subj3', '44', 'F'],
129+
['...', '...', '...']
130+
]
131+
)
132+
st.markdown(
133+
"""
134+
### Demographics File:
135+
The DEMOGRAPHICS CSV file contains demographic information for each subject in the study.
136+
- **Required Columns:**
137+
- **MRID:** Unique subject identifier.
138+
- **Age:** Age of the subject.
139+
- **Sex:** Sex of the subject (e.g., M, F).
140+
- **Matching MRIDs:** Ensure the MRID values in this file match the corresponding MRIDs in the DLMUSE file for merging the data files.
141+
"""
142+
)
143+
st.write('Example demographic data file:')
144+
st.dataframe(df_demog)
145+
146+
147+
if st.button('I need help 🤔'):
148+
help_input_data()
149+
102150
# Check the input data
103151
if st.button('Verify input data'):
104152
[f_check, m_check] = w_mlscores.check_input(

src/viewer/utils/utils_st.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -188,10 +188,10 @@ def util_panel_workingdir(app_type: str) -> None:
188188

189189
# Read dataset name (used to create a folder where all results will be saved)
190190
helpmsg = (
191-
"Each study's results are organized in a dedicated folder named after the study"
191+
"Please provide a unique identifier for your experiment.\n\n A dedicated folder with this name will be created to store all input and output data associated with the analysis.\n\n The identifier can be any descriptive label; it doesn't need to match the input study or dataset name.\n\n Switch between experiments to run different pipelines or analyze new datasets."
192192
)
193193
st.session_state.dset = user_input_textfield(
194-
"Study name", st.session_state.dset, helpmsg, False
194+
"Experiment Identifier", st.session_state.dset, helpmsg, False
195195
)
196196

197197
if app_type == "desktop":

0 commit comments

Comments
 (0)