Skip to content

Commit

Permalink
remove unused yml files and fix TaggerViewer errors
Browse files Browse the repository at this point in the history
  • Loading branch information
JeeH-K committed May 7, 2024
1 parent ee9654a commit 37d5ee8
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 158 deletions.
103 changes: 0 additions & 103 deletions .github/workflows/test_streamlit_app.yaml

This file was deleted.

25 changes: 0 additions & 25 deletions .github/workflows/workflow-tests.yml

This file was deleted.

2 changes: 0 additions & 2 deletions environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,5 @@ dependencies:
- pip: # dependencies only available through pip
# streamlit dependencies
- streamlit==1.29.0
- streamlit-plotly-events==0.0.6
- streamlit-aggrid==0.3.4.post3
- st_pages==0.4.5
- captcha==0.5.0
6 changes: 3 additions & 3 deletions pages/FLASHTaggerViewer.py
Original file line number Diff line number Diff line change
Expand Up @@ -222,9 +222,9 @@ def sendDataToJS(selected_data, layout_info_per_exp):
elif comp_name == 'sequence_view':
# data_to_send['sequence_data'] = getFragmentDataFromSeq(st.session_state.input_sequence)
component_arguments = SequenceViewTagger()
elif comp_name == 'internal_fragment_view':
elif comp_name == 'internal_fragment_map':
# data_to_send['internal_fragment_data'] = getInternalFragmentDataFromSeq(st.session_state.input_sequence)
component_arguments = InternalFragmentView()
component_arguments = InternalFragmentMap()

components_of_this_row.append(FlashViewerComponent(component_arguments))
components.append(components_of_this_row)
Expand Down Expand Up @@ -266,7 +266,7 @@ def sendDataToJS(selected_data, layout_info_per_exp):
def setSequenceViewInDefaultView():
if 'input_sequence' in st.session_state and st.session_state.input_sequence:
global DEFAULT_LAYOUT
DEFAULT_LAYOUT = DEFAULT_LAYOUT + [['sequence_view']] + [['internal_fragment_view']]
DEFAULT_LAYOUT = DEFAULT_LAYOUT + [['sequence_view']] + [['internal_fragment_map']]


def content():
Expand Down
4 changes: 3 additions & 1 deletion pages/FileUploadTagger.py
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,8 @@ def content():
# for error message or list of uploaded files
deconv_files = sorted(st.session_state["deconv_dfs"].keys())
anno_files = sorted(st.session_state["anno_dfs"].keys())
tag_files = sorted(st.session_state["tag_dfs"].keys())
db_files = sorted(st.session_state["protein_dfs"].keys())

# error message if files not exist
if len(deconv_files) == 0 and len(anno_files) == 0:
Expand All @@ -240,7 +242,7 @@ def content():
st.error("The same number of deconvolved and annotated mzML file should be uploaded!")
else:
v_space(2)
st.session_state["experiment-df"] = getUploadedFileDF(deconv_files, anno_files)
st.session_state["experiment-df"] = getUploadedFileDF(deconv_files, anno_files, tag_files, db_files)
st.markdown('**Uploaded experiments in current workspace**')
st.dataframe(st.session_state["experiment-df"]) # show table
v_space(1)
Expand Down
7 changes: 7 additions & 0 deletions run_app.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
from streamlit.web import cli

if __name__ == "__main__":
cli._main_run_clExplicit(
file="app.py", command_line="streamlit run", args=["local"]
) # run in local mode
# we will create this function inside our streamlit framework
24 changes: 0 additions & 24 deletions test.py

This file was deleted.

0 comments on commit 37d5ee8

Please sign in to comment.