Skip to content

Commit

Permalink
Added: Added more preselected values to support case study. Completed…
Browse files Browse the repository at this point in the history
… the whole preselection process.
  • Loading branch information
AAnzel committed Jan 12, 2022
1 parent 584fa89 commit b4b38e7
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Source/case_study.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ def upload_multiple(key_suffix):
'Metagenomics': 2,
'Metaproteomics': 0,
'Metatranscriptomics': 0,
'Metabolomics': 0,
'Metabolomics': 1,
'Physico-chemical': 0
}

Expand Down
12 changes: 8 additions & 4 deletions Source/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -1736,9 +1736,8 @@ def select_case_study_default_vis(key_suffix):
default_visualizations_dict['Feature through time'] = [
'Fraction polar']

elif key_suffix.endswith('Metaboloics_CASE_STUDY'):
default_visualizations_dict['Feature through time'] = [
'measurement', 'Chebi_Name_combined']
elif key_suffix.endswith('Metabolomics_CASE_STUDY'):
default_visualizations_dict['Feature through time'] = ['L1sum_MP']

return default_visualizations_dict

Expand Down Expand Up @@ -1818,9 +1817,14 @@ def visualize_data_set(df, temporal_feature, feature_list, key_suffix):
i + ': select features to visualize', options=feature_list,
default=default_visualization_parameters)

default_bool_parameter = False
if key_suffix.endswith('Metabolomics_CASE_STUDY'):
default_bool_parameter = True

encode_feature_color = st.checkbox(
'Encode one nominal feature with color?',
key=i + '_color checkbox_' + key_suffix)
key=i + '_color checkbox_' + key_suffix,
value=default_bool_parameter)

if encode_feature_color:
color_feature_list = [feature for feature in feature_list
Expand Down

0 comments on commit b4b38e7

Please sign in to comment.