Skip to content

Commit

Permalink
Changed: Changed some text. Started creating case study layout.
Browse files Browse the repository at this point in the history
  • Loading branch information
AAnzel committed Dec 21, 2021
1 parent 998399f commit bbe054c
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 6 deletions.
21 changes: 19 additions & 2 deletions Source/case_study.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@
path_case_study_genomics, 'MT_Depths')
path_case_study_proteomics_fasta = os.path.join(
path_case_study_proteomics, 'set_of_78')
path_case_study_metabolomics_precalculated = os.path.join(
path_case_study_metabolomics, 'fig4.tsv')


def upload_multiple(key_suffix):
Expand All @@ -49,7 +51,10 @@ def upload_multiple(key_suffix):
'Metaproteomics': {
'Raw FASTA files': 'FASTA'},
'Metatranscriptomics': {
'Depth-of-coverage': 'DEPTH'}
'Depth-of-coverage': 'DEPTH'},
'Metabolomics': {
'Processed data set 1': 'PR1',
'Processed data set 2': 'PR2'}
}

selected_data_set_type = st.selectbox(
Expand All @@ -75,6 +80,17 @@ def upload_multiple(key_suffix):
elif key_suffix == 'Metatranscriptomics':
return_path = path_case_study_transcriptomics_depths

# TODO: Add calculated 1 and calculated 2 data sets here and maybe remove
# TODO: upload introand move everything here
elif key_suffix == 'Metabolomics':
if selected_data_set_type == 'Processed data set 1':
return_path = path_case_study_genomics_fasta

# elif selected_data_set_type == 'KEGG annotation files':
# return_path = path_case_study_genomics_kegg
elif selected_data_set_type == 'Depth-of-coverage':
return_path = path_case_study_genomics_depths

else:
pass

Expand Down Expand Up @@ -188,7 +204,8 @@ def create_main_case_study():
case_study_omics_list = ['Metagenomics', 'Metabolomics', 'Metaproteomics',
'Metatranscriptomics', 'Physico-chemical']
choose_omics = st.multiselect(
'What kind of data set do you want to see?', case_study_omics_list)
'What kind of omic data do you want to explore?',
case_study_omics_list)

num_of_columns = len(choose_omics)

Expand Down
3 changes: 1 addition & 2 deletions Source/example_1.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@ def upload_multiple(key_suffix):

if key_suffix == 'Metagenomics':
if selected_data_set_type == 'Raw FASTA files':

return_path = path_example_1_genomics_fasta

# elif selected_data_set_type == 'KEGG annotation files':
Expand Down Expand Up @@ -192,7 +191,7 @@ def create_main_example_1():
example_1_omics_list = ['Metagenomics', 'Metabolomics', 'Metaproteomics',
'Metatranscriptomics', 'Physico-chemical']
choose_omics = st.multiselect(
'What kind of data set do you want to see?', example_1_omics_list)
'What kind of omic data do you want to explore?', example_1_omics_list)

num_of_columns = len(choose_omics)

Expand Down
2 changes: 1 addition & 1 deletion Source/example_2.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ def create_main_example_2():

example_2_omics_list = ['Transcriptomics']
choose_omics = st.multiselect(
'What kind of data set do you want to see?', example_2_omics_list)
'What kind of omic data do you want to explore?', example_2_omics_list)

charts = [] # An empty list to hold all pairs (visualizations, key)

Expand Down
2 changes: 1 addition & 1 deletion Source/upload.py
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ def upload_multiple(key_suffix):
}

selected_data_set_type = st.selectbox(
'What kind of data set do you want to upload?',
'What kind of omic data do you want to upload?',
list(available_data_set_types[key_suffix].keys())
)

Expand Down

0 comments on commit bbe054c

Please sign in to comment.