--
You received this message because you are subscribed to the Google Groups "cytoscape-helpdesk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cytoscape-helpdesk+unsub...@googlegroups.com.
To post to this group, send email to cytoscape-helpdesk@googlegroups.com.
Visit this group at https://groups.google.com/group/cytoscape-helpdesk.
To view this discussion on the web visit https://groups.google.com/d/msgid/cytoscape-helpdesk/b2c97a60-693f-4f65-b2cc-73997396fc78%40googlegroups.com.
Hi Pascal,If you can, please confirm the behaviour and let me know. I will look into this.Thanks,David Otasek
On Fri, Jun 16, 2017 at 11:04 AM, Pascal KREZEL <pascal...@gmail.com> wrote:
Hi,I problem may come from the duplication of my style with the creation of a new network by GLay. That's why now I avoid that . I will confirm this.Pascal
Le jeudi 15 juin 2017 19:16:56 UTC+2, Pascal KREZEL a écrit :Hi,I remarked that there is a bug with the link between a graph and the style defined with CyREST. The style is weel-affected at the beginning but suddenly with no reason the graph can't be connected with this style anymore. So I must rebuild it.More precisely, , I can have in a same Cytoscape file some graphs disconnected from this style and some not.Is it a bug recognized ?Pascal
--
You received this message because you are subscribed to the Google Groups "cytoscape-helpdesk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cytoscape-helpdesk+unsub...@googlegroups.com.
To post to this group, send email to cytoscape...@googlegroups.com.
Visit this group at https://groups.google.com/group/cytoscape-helpdesk.
Hi David,I confirm this behaviour that happens after a reload of my .cys file. It seems that only the edges are concerned : color and transparency can't be changed anymore.
Pascal
Le vendredi 16 juin 2017 18:01:42 UTC+2, David Otasek a écrit :
Hi Pascal,If you can, please confirm the behaviour and let me know. I will look into this.Thanks,David Otasek
On Fri, Jun 16, 2017 at 11:04 AM, Pascal KREZEL <pascal...@gmail.com> wrote:
Hi,I problem may come from the duplication of my style with the creation of a new network by GLay. That's why now I avoid that . I will confirm this.Pascal
Le jeudi 15 juin 2017 19:16:56 UTC+2, Pascal KREZEL a écrit :Hi,I remarked that there is a bug with the link between a graph and the style defined with CyREST. The style is weel-affected at the beginning but suddenly with no reason the graph can't be connected with this style anymore. So I must rebuild it.More precisely, , I can have in a same Cytoscape file some graphs disconnected from this style and some not.Is it a bug recognized ?Pascal
--
You received this message because you are subscribed to the Google Groups "cytoscape-helpdesk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cytoscape-helpdesk+unsubscribe@googlegroups.com.
To post to this group, send email to cytoscape...@googlegroups.com.
Visit this group at https://groups.google.com/group/cytoscape-helpdesk.
To view this discussion on the web visit https://groups.google.com/d/msgid/cytoscape-helpdesk/b2c97a60-693f-4f65-b2cc-73997396fc78%40googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "cytoscape-helpdesk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cytoscape-helpdesk+unsub...@googlegroups.com.
To post to this group, send email to cytoscape-helpdesk@googlegroups.com.
Visit this group at https://groups.google.com/group/cytoscape-helpdesk.
To view this discussion on the web visit https://groups.google.com/d/msgid/cytoscape-helpdesk/deb246e8-d61b-46f6-98d1-fb2d89a6f371%40googlegroups.com.
# Create a new stylembx_style = cy.style.create('MBx_style')# Prepare key-value pair for Style defaultsnew_defaults = {# # Edge defaults# 'EDGE_WIDTH': 3,# 'EDGE_STROKE_UNSELECTED_PAINT': '#aaaaaa',# 'EDGE_LINE_TYPE': 'SOLID',# 'EDGE_TRANSPARENCY': 120,# # Network defaults# 'NETWORK_BACKGROUND_PAINT': 'white'}# Updatembx_style.update_defaults(new_defaults)mbx_style.create_passthrough_mapping(column='node_shape', col_type='String', vp='NODE_SHAPE')mbx_style.create_passthrough_mapping(column='node_color', col_type='String', vp='NODE_FILL_COLOR')mbx_style.create_passthrough_mapping(column='node_trans', col_type='String', vp='NODE_TRANSPARENCY')mbx_style.create_passthrough_mapping(column='node_size', col_type='String', vp='NODE_HEIGHT')mbx_style.create_passthrough_mapping(column='node_size', col_type='String', vp='NODE_WIDTH')mbx_style.create_passthrough_mapping(column='node_label', col_type='String', vp='NODE_LABEL')mbx_style.create_passthrough_mapping(column='node_lsize', col_type='String', vp='NODE_LABEL_FONT_SIZE')mbx_style.create_passthrough_mapping(column='node_bwidth', col_type='String', vp='NODE_BORDER_WIDTH')mbx_style.create_passthrough_mapping(column='node_btrans', col_type='String', vp='NODE_BORDER_TRANSPARENCY')mbx_style.create_passthrough_mapping(column='edge_color', col_type='String', vp='EDGE_STROKE_UNSELECTED_PAINT')mbx_style.create_passthrough_mapping(column='edge_trans', col_type='String', vp='EDGE_TRANSPARENCY')mbx_style.create_passthrough_mapping(column='edge_width', col_type='String', vp='EDGE_WIDTH')
def edge_update_table(net, df, network_key_col='name', data_key_col=None):"""Function to update the edge_table in Cytoscape"""is_index_col = Falseif data_key_col is None:# Use indexdata_key = network_key_colis_index_col = Trueelse:data_key = data_key_coltable = {'key': network_key_col,'dataKey': data_key}if is_index_col:# Use DataFrame's index as the mapping keydf2 = pd.DataFrame(df)df2[network_key_col] = df.indexdata = df2.to_json(orient='records')del df2else:data = df.to_json(orient='records')table['data'] = json.loads(data)SUID=net.get_id()net.session.put(url, json=table)
def add_edges_color(Gc,color=None):"""Affectation de couleur aux arêtes en fonction de :-df: dataframe contenant les informations entre id et subsystem-MetaboColor: dictionnaire donnant le couleur par subsystems"""df_e=Gc.get_edge_table()df_e2=df_e[["SUID"]]if color is None:L=[]for x,y in zip(df_e["source"],df_e["target"]):if x[:2]=="R_":L.append(MetaboColor[Dic_Sub_s2[x]])else:L.append(MetaboColor[Dic_Sub_s2[y]])df_e2["edge_color"]=Lelse:df_e2["edge_color"]=coloredge_update_table(Gc,df_e2,network_key_col='SUID',data_key_col='SUID')
view_id_list = Gc.get_views()view1 = Gc.get_view(view_id_list[0], format='view')view1.update_node_views(visual_property='NODE_FILL_COLOR', values=val)
def view_nodes_color(Gc):df_n=Gc.get_node_table()LesMol=df_n["id"]name_map = util.name2suid(Gc)LesSUID=[name_map[x] for x in LesMol]Lc=Lnodes_color(LesMol)val={n:c for n,c in zip(LesSUID,Lc)}view_id_list = Gc.get_views()view1 = Gc.get_view(view_id_list[0], format='view')view1.update_node_views(visual_property='NODE_FILL_COLOR', values=val)
To unsubscribe from this group and stop receiving emails from it, send an email to cytoscape-helpdesk+unsub...@googlegroups.com.
To post to this group, send email to cytoscape...@googlegroups.com.
Visit this group at https://groups.google.com/group/cytoscape-helpdesk.
To view this discussion on the web visit https://groups.google.com/d/msgid/cytoscape-helpdesk/b2c97a60-693f-4f65-b2cc-73997396fc78%40googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "cytoscape-helpdesk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cytoscape-helpdesk+unsub...@googlegroups.com.
To post to this group, send email to cytoscape...@googlegroups.com.
Visit this group at https://groups.google.com/group/cytoscape-helpdesk.
To unsubscribe from this group and stop receiving emails from it, send an email to cytoscape-helpdesk+unsub...@googlegroups.com.
To post to this group, send email to cytoscape...@googlegroups.com.
Visit this group at https://groups.google.com/group/cytoscape-helpdesk.
To view this discussion on the web visit https://groups.google.com/d/msgid/cytoscape-helpdesk/b2c97a60-693f-4f65-b2cc-73997396fc78%40googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "cytoscape-helpdesk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cytoscape-helpdesk+unsub...@googlegroups.com.
To post to this group, send email to cytoscape...@googlegroups.com.
Visit this group at https://groups.google.com/group/cytoscape-helpdesk.
To unsubscribe from this group and stop receiving emails from it, send an email to cytoscape-helpdesk+unsubscribe@googlegroups.com.
To post to this group, send email to cytoscape...@googlegroups.com.
Visit this group at https://groups.google.com/group/cytoscape-helpdesk.
To view this discussion on the web visit https://groups.google.com/d/msgid/cytoscape-helpdesk/b2c97a60-693f-4f65-b2cc-73997396fc78%40googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "cytoscape-helpdesk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cytoscape-helpdesk+unsubscribe@googlegroups.com.
To post to this group, send email to cytoscape...@googlegroups.com.
Visit this group at https://groups.google.com/group/cytoscape-helpdesk.
To view this discussion on the web visit https://groups.google.com/d/msgid/cytoscape-helpdesk/deb246e8-d61b-46f6-98d1-fb2d89a6f371%40googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "cytoscape-helpdesk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cytoscape-helpdesk+unsub...@googlegroups.com.
To post to this group, send email to cytoscape-helpdesk@googlegroups.com.
Visit this group at https://groups.google.com/group/cytoscape-helpdesk.
To view this discussion on the web visit https://groups.google.com/d/msgid/cytoscape-helpdesk/366e3135-3c9b-45e0-954e-cdc2a698e77a%40googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to cytoscape-helpdesk+unsub...@googlegroups.com.
To post to this group, send email to cytoscape...@googlegroups.com.
Visit this group at https://groups.google.com/group/cytoscape-helpdesk.
To view this discussion on the web visit https://groups.google.com/d/msgid/cytoscape-helpdesk/b2c97a60-693f-4f65-b2cc-73997396fc78%40googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "cytoscape-helpdesk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cytoscape-helpdesk+unsub...@googlegroups.com.
To post to this group, send email to cytoscape...@googlegroups.com.
Visit this group at https://groups.google.com/group/cytoscape-helpdesk.
To view this discussion on the web visit https://groups.google.com/d/msgid/cytoscape-helpdesk/deb246e8-d61b-46f6-98d1-fb2d89a6f371%40googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "cytoscape-helpdesk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cytoscape-helpdesk+unsub...@googlegroups.com.
To post to this group, send email to cytoscape...@googlegroups.com.
Visit this group at https://groups.google.com/group/cytoscape-helpdesk.
To unsubscribe from this group and stop receiving emails from it, send an email to cytoscape-helpdesk+unsubscribe@googlegroups.com.
To post to this group, send email to cytoscape...@googlegroups.com.
Visit this group at https://groups.google.com/group/cytoscape-helpdesk.
To view this discussion on the web visit https://groups.google.com/d/msgid/cytoscape-helpdesk/b2c97a60-693f-4f65-b2cc-73997396fc78%40googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "cytoscape-helpdesk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cytoscape-helpdesk+unsubscribe@googlegroups.com.
To post to this group, send email to cytoscape...@googlegroups.com.
Visit this group at https://groups.google.com/group/cytoscape-helpdesk.
To view this discussion on the web visit https://groups.google.com/d/msgid/cytoscape-helpdesk/deb246e8-d61b-46f6-98d1-fb2d89a6f371%40googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "cytoscape-helpdesk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cytoscape-helpdesk+unsubscribe@googlegroups.com.
To post to this group, send email to cytoscape...@googlegroups.com.
Visit this group at https://groups.google.com/group/cytoscape-helpdesk.
To view this discussion on the web visit https://groups.google.com/d/msgid/cytoscape-helpdesk/366e3135-3c9b-45e0-954e-cdc2a698e77a%40googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "cytoscape-helpdesk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cytoscape-helpdesk+unsub...@googlegroups.com.
To post to this group, send email to cytoscape-helpdesk@googlegroups.com.
Visit this group at https://groups.google.com/group/cytoscape-helpdesk.
To view this discussion on the web visit https://groups.google.com/d/msgid/cytoscape-helpdesk/96044ca4-0b2e-47a0-95b3-823b7d4ccda2%40googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to cytoscape-helpdesk+unsub...@googlegroups.com.
To post to this group, send email to cytoscape...@googlegroups.com.
Visit this group at https://groups.google.com/group/cytoscape-helpdesk.
To view this discussion on the web visit https://groups.google.com/d/msgid/cytoscape-helpdesk/b2c97a60-693f-4f65-b2cc-73997396fc78%40googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "cytoscape-helpdesk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cytoscape-helpdesk+unsub...@googlegroups.com.
To post to this group, send email to cytoscape...@googlegroups.com.
Visit this group at https://groups.google.com/group/cytoscape-helpdesk.
To view this discussion on the web visit https://groups.google.com/d/msgid/cytoscape-helpdesk/deb246e8-d61b-46f6-98d1-fb2d89a6f371%40googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "cytoscape-helpdesk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cytoscape-helpdesk+unsub...@googlegroups.com.
To post to this group, send email to cytoscape...@googlegroups.com.
Visit this group at https://groups.google.com/group/cytoscape-helpdesk.
To view this discussion on the web visit https://groups.google.com/d/msgid/cytoscape-helpdesk/366e3135-3c9b-45e0-954e-cdc2a698e77a%40googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "cytoscape-helpdesk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cytoscape-helpdesk+unsub...@googlegroups.com.
To post to this group, send email to cytoscape...@googlegroups.com.
Visit this group at https://groups.google.com/group/cytoscape-helpdesk.