Skip to content

Commit

Permalink
loading funcoup
Browse files Browse the repository at this point in the history
  • Loading branch information
dcolinmorgan committed Oct 16, 2023
1 parent a9a4206 commit 7a42bc4
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions src/python/views/demo_00_funcoup/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
# Controls how entrypoint.py picks it up


app_id = 'app_00'
app_id = 'app_05'
logger = logging.getLogger(app_id)
urlParams = URLParam(app_id)

Expand All @@ -23,7 +23,7 @@ def info():
'id': app_id,
'name': 'Bio: FUNCOUP',
'enabled': True,
'tags': ['demo', 'demo_bio']
'tags': ['bio', 'large', 'funcoup','demo'],
}


Expand Down Expand Up @@ -102,7 +102,7 @@ def sidebar_area():
filter_by_node_type = \
st.sidebar.selectbox(
'Filter nodes by:',
('PFC','FBS_max','FBS_*','LLR_*','LLR_*','Max_category')
('PFC','FBS_max','FBS_*','LLR_*','LLR_*','Max_category'),
index=('PFC','FBS_max','FBS_*','LLR_*','LLR_*','Max_category').index(filter_by_node_type_init),
format_func=(lambda option: option_to_label[option]))
urlParams.set_field('filter_by_node', filter_by_node_type)
Expand All @@ -116,7 +116,7 @@ def sidebar_area():
format_func=(lambda option: option_to_label[option]))
urlParams.set_field('filter_by_net', filter_by_net_type)

edges_df = pd.read_csv('https://funcoup.org/downloads/download.action?type=network&instanceID=24480085&fileName=FC5.0_'+filter_by_org+'_'filter_by_net_type'+.gz', sep='\t')
edges_df = pd.read_csv('https://funcoup.org/downloads/download.action?type=network&instanceID=24480085&fileName=FC5.0_'+filter_by_org_type+'_'+filter_by_net_type+'.gz', sep='\t')

return {
# 'n': n,
Expand Down Expand Up @@ -190,8 +190,6 @@ def plot_url(edges_df):
url = graphistry\
.bind(source="Gene_1", destination="Gene_2")\
.edges(edges_df)\
# .nodes(nodes_df)\
# .bind(node='n', point_color='nc')\
.settings(url_params={
'pointSize': 0.3,
'splashAfter': 'false',
Expand Down

0 comments on commit 7a42bc4

Please sign in to comment.