Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion content/FLASHDeconv/FLASHDeconvLayoutManager.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
# Setup cache access
file_manager = FileManager(
st.session_state["workspace"],
Path(st.session_state['workspace'], 'flashdeconv', 'cache')
Path(st.session_state['workspace'], 'cache')
)

def get_sequence():
Expand Down
28 changes: 17 additions & 11 deletions src/render/update.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ def get_sequence(selection_store):
# Setup cache access
file_manager = FileManager(
st.session_state["workspace"],
Path(st.session_state['workspace'], 'flashdeconv', 'cache')
Path(st.session_state['workspace'], 'cache')
)

# Check if sequence has been set
Expand Down Expand Up @@ -85,18 +85,24 @@ def render_internal_fragment_data(sequence):
def update_data(data, out_components, selection_store, additional_data, tool):
component = out_components[0][0]['componentArgs']['title']
if (
(component in ['Sequence View', 'Internal Fragment Map'])
(component in ['Sequence View', 'Internal Fragment Map'])
and (tool != 'flashtnt')
):
data['sequence_data'] = {
0: render_sequence_data(get_sequence(selection_store)[0])
}
if (component == 'Internal Fragment Map') and (tool != 'flashtnt'):
data['internal_fragment_data'] = {
0: render_internal_fragment_data(get_sequence(selection_store)[0])
}

return data
sequence = get_sequence(selection_store)
if sequence is None:
data['sequence_data'] = {}
if component == 'Internal Fragment Map':
data['internal_fragment_data'] = {}
else:
data['sequence_data'] = {
0: render_sequence_data(sequence[0])
}
if component == 'Internal Fragment Map':
data['internal_fragment_data'] = {
0: render_internal_fragment_data(sequence[0])
}

return data


def filter_data(data, out_components, selection_store, additional_data, tool):
Expand Down
Loading