booldog.resources

Packaged static resource files used by booldog (e.g. a Cytoscape visual style and a matplotlib stylesheet), located on disk relative to this module rather than via hardcoded paths, so they are found correctly regardless of where the package is installed.

Attributes

_CYTOSCAPE_STYLE_XML

_MPL_STYLE_SHEET

cytoscape_style_xml

absolute path to the packaged Cytoscape visual style XML file, used

mpl_style_sheet

absolute path to the packaged matplotlib stylesheet, used by

Functions

get_resource_file_path(file)

Get the absolute path to a resource file packaged alongside this module.

Package Contents

booldog.resources._CYTOSCAPE_STYLE_XML = 'cytoscape_style.xml'
booldog.resources._MPL_STYLE_SHEET = 'stylesheet.mplstyle'
booldog.resources.get_resource_file_path(file)

Get the absolute path to a resource file packaged alongside this module.

Parameters:

file (str) – File name of the resource, relative to the booldog/resources directory (e.g. “cytoscape_style.xml”).

Returns:

Absolute path to file on disk.

Return type:

str

booldog.resources.cytoscape_style_xml

absolute path to the packaged Cytoscape visual style XML file, used by booldog.io.cytoscape and booldog.simulation_result.boolean_result when exporting/plotting networks in Cytoscape.

Type:

str

booldog.resources.mpl_style_sheet

absolute path to the packaged matplotlib stylesheet, used by booldog.simulation_result.continuous_result when plotting simulation results.

Type:

str