psctb.utils.model_graph package

Submodules

psctb.utils.model_graph._model_graph module

class psctb.utils.model_graph._model_graph.ModelGraph(mod, pos_dic=None, analysis_method=None, base_name=None)[source]

Bases: object

Attributes
height
nodes_fixed
straight_links
width

Methods

save([file_name])

Saves the image.

change_link_properties

change_node_properties

draw_all_links

highlight_cc

highlight_cp

remove_dummy_sinks

remove_external_modifier_links

reset_node_properties

show

DUMMY_SINK_NAMES = ['dummy', 'sink']
REACTION_NODE = {'color': 'black', 'dx': -12, 'dy': -15, 'fill': '#00A388', 'fixed': True, 'font_size': 20, 'r': 8, 'shape': 'rect', 'stroke': '#00A388', 'strokewidth': '1.5px'}
RGB_RGB_RGB_ = {0: 'rgb(94,79,162)', 1: 'rgb(50,136,189)', 2: 'rgb(102,194,165)', 3: 'rgb(171,221,164)', 4: 'rgb(230,245,152)', 5: 'rgb(254,224,139)', 6: 'rgb(253,174,97)', 7: 'rgb(244,109,67)', 8: 'rgb(213,62,79)', 9: 'rgb(158,1,66)', 10: 'rgb(158,1,66)'}
SPECIES_NODE = {'color': 'black', 'dx': -12, 'dy': -15, 'fill': '#FF6138', 'fixed': True, 'font_size': 20, 'r': 11, 'shape': 'circle', 'stroke': '#FF6138', 'strokewidth': '1.5px'}
change_node_properties(node_name, prop_dic=None)[source]
property height
highlight_cc(cc, show_dummy_sinks=False, show_external_modifier_links=False)[source]
highlight_cp(cp, show_dummy_sinks=False, show_external_modifier_links=False)[source]
property nodes_fixed
remove_dummy_sinks()[source]
reset_node_properties()[source]
save(file_name=None)[source]

Saves the image.

Saves the image to either the default working directory or to an a specified location. Parameters ———- file_name : str, Optional (default : None)

An optional path to which the image will be saved.

Returns
None
show(no_links=False, clear_top_box=True)[source]
property width

Module contents