dash-contextnet 0.2.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,215 @@
1
+ # AUTO GENERATED FILE - DO NOT EDIT
2
+
3
+ import typing # noqa: F401
4
+ from typing_extensions import TypedDict, NotRequired, Literal # noqa: F401
5
+ from dash.development.base_component import Component, _explicitize_args
6
+ try:
7
+ from dash.types import NumberType # noqa: F401
8
+ except ImportError:
9
+ # Backwards compatibility for dash<=4.1.0
10
+ if typing.TYPE_CHECKING:
11
+ raise
12
+ NumberType = typing.Union[ # noqa: F401
13
+ typing.SupportsFloat, typing.SupportsInt, typing.SupportsComplex
14
+ ]
15
+
16
+ ComponentSingleType = typing.Union[str, int, float, Component, None]
17
+ ComponentType = typing.Union[
18
+ ComponentSingleType,
19
+ typing.Sequence[ComponentSingleType],
20
+ ]
21
+
22
+
23
+ class ContextNet(Component):
24
+ """A ContextNet component.
25
+ ContextNet: multi-compartment, condition-aware network views (Cytoscape.js) as a Dash component.
26
+
27
+ Input props map to the ContextNet JavaScript API (keys inside the dict props use its camelCase names):
28
+ `data` -> setData, `compartment_mode` -> setCompartmentMode, `context` -> contextualize / clearContext,
29
+ `layout` -> layout, `edge_layers` -> setEdgeLayers, `edge_view` -> setEdgeView, `bubble_by` -> setBubbleBy,
30
+ `hints` -> setCompartmentHints, `semantic_zoom` -> setSemanticZoom. After every change that moves nodes
31
+ (data, mode, layers, edge view, context, layout) the layout runs again.
32
+
33
+ Output props: `selection`, `last_event`, `network_info`, `error`, and with `compute_metrics=True` also
34
+ `metrics`. Exports: set `export_request`; the file arrives in `export_result` in the format of
35
+ `dcc.Download`, and `export_request` is reset to None.
36
+
37
+ Keyword arguments:
38
+
39
+ - id (string; optional):
40
+ The ID used to identify this component in Dash callbacks.
41
+
42
+ - bubble_avoid (boolean | a value equal to: 'auto'; optional):
43
+ Route bubble outlines around non-members: True, False or 'auto'
44
+ (default: on up to 200 shown nodes).
45
+
46
+ - bubble_by (string; optional):
47
+ Overlay key for bubble outlines: 'compartment' or an annotation
48
+ key. None removes the bubbles.
49
+
50
+ - bubble_min_species (number; optional):
51
+ Only draw bubbles for values shared by at least this many species.
52
+ Default 1.
53
+
54
+ - className (string; optional):
55
+ CSS class of the container.
56
+
57
+ - compartment_mode (a value equal to: 'pie', 'clones', 'bubbles', 'orthogroups', 'orthogroup-nodes'; optional):
58
+ How compartments are drawn.
59
+
60
+ - compute_metrics (boolean; optional):
61
+ Compute `metrics` after every layout. Off by default: edge
62
+ crossings are slow on large networks.
63
+
64
+ - context (dict; optional):
65
+ Expression context (ContextNet `ContextOptions`): `condition`,
66
+ `threshold`, and optionally `direction` ('both' | 'up' | 'down'),
67
+ `maxP`, `unmeasured` ('inactive' | 'keep'), `keepLinkers`,
68
+ `minActiveNeighbors`, `minEdgeWeight`, `hideIsolated`, `display`
69
+ ('hide' | 'dim'). None (or no `condition`) shows the full network.
70
+
71
+ - cytoscape_options (dict; optional):
72
+ Extra options of the Cytoscape core (e.g. `minZoom`,
73
+ `wheelSensitivity`). Read once, when the network is created.
74
+
75
+ - data (dict; optional):
76
+ The network (ContextNet `NetworkData`): `nodes`, `edges` and
77
+ optionally `compartments`, `species`, `speciesGroups`,
78
+ `orthogroups` and `expression`. See
79
+ https://github.com/bjoernoest/cytoscapejs_contextnet/blob/main/docs/MANUAL.md.
80
+
81
+ - edge_layers (list of strings; optional):
82
+ Evidence layers (`EdgeInput.layer`) to show and analyse. None or
83
+ [] = all layers.
84
+
85
+ - edge_view (dict; optional):
86
+ Edge view of the 'orthogroup-nodes' mode (ContextNet
87
+ `EdgeViewOptions`): `style` ('split' | 'merged') and `filter`.
88
+
89
+ - error (string; optional):
90
+ Output: error messages of the last update (e.g. an unknown overlay
91
+ key), or None.
92
+
93
+ - export_request (dict; optional):
94
+ Request an export: `{'format': 'png' | 'svg', 'filename': ...,
95
+ 'options': {...}}` (`options`: ContextNet `ExportOptions`, e.g.
96
+ `scale`, `background`, `legend`). Reset to None once the export is
97
+ done.
98
+
99
+ - export_result (dict; optional):
100
+ Output: the exported file as `{'content', 'filename', 'base64',
101
+ 'type', 'request'}`, ready for `dcc.Download` (PNG base64-encoded,
102
+ SVG as text).
103
+
104
+ - hints (boolean | string | dict; optional):
105
+ Background hints: 'territories', 'bubbles', True (bubbles by
106
+ compartment), a ContextNet `CompartmentHintOptions` dict (`style`,
107
+ `by`, `minFraction`, `opacity`, `bandwidth`, `labels`), or None.
108
+
109
+ - keyboard (boolean; optional):
110
+ Keyboard navigation of the network (arrow keys, Enter, Escape).
111
+ Default True.
112
+
113
+ - last_event (dict; optional):
114
+ Output: the last ContextNet event as `{'type': ..., 'time': ...,
115
+ **payload}`. Types: 'data', 'mode', 'context' (with `stats`),
116
+ 'layout', 'overlay', 'edgeview', 'layers', 'select', 'expand',
117
+ 'collapse', and 'tap' (with `id` and `info`, ContextNet `info()`
118
+ of the tapped node or edge).
119
+
120
+ - layout (dict; optional):
121
+ Layout options (ContextNet `LayoutOptions`): `algorithm` ('fcose'
122
+ | 'anchored'), `anchored`, `scope`, `cache`, `fit`, `fcose`,
123
+ `incremental`. Used whenever the layout runs; changing it runs the
124
+ layout again.
125
+
126
+ - metrics (dict; optional):
127
+ Output: ContextNet `metrics()` of what is shown (with
128
+ `compute_metrics=True`).
129
+
130
+ - network_info (dict; optional):
131
+ Output: what the network offers and shows: `mode`, `conditions`,
132
+ `metric`, `overlayKeys`, `annotationKeys`, `layers`,
133
+ `shownLayers`, `units`, `warnings`, `context` (stats or None),
134
+ `visible` (`nodes`, `edges`).
135
+
136
+ - overlay_click (boolean; optional):
137
+ Clicking a territory or bubble selects its members. Default True.
138
+
139
+ - selection (dict; optional):
140
+ The selection: `{'proteins': [...], 'nodeIds': [...], 'source':
141
+ ...}`. Written on every change in the browser (`source` 'click',
142
+ 'keyboard', 'search' or 'api'); set it from Python to select
143
+ proteins or nodes.
144
+
145
+ `selection` is a dict with keys:
146
+
147
+ - proteins (list of strings; optional)
148
+
149
+ - nodeIds (list of strings; optional)
150
+
151
+ - source (string; optional)
152
+
153
+ - semantic_zoom (boolean | dict; optional):
154
+ Semantic zoom for the 'orthogroup-nodes' mode: True, a dict
155
+ (`zoom`, `maxMembers`) or None.
156
+
157
+ - stylesheet (list of dicts; optional):
158
+ Extra Cytoscape styles appended to the ContextNet stylesheet. Read
159
+ once, when the network is created."""
160
+ _children_props: typing.List[str] = []
161
+ _base_nodes = ['children']
162
+ _namespace = 'dash_contextnet'
163
+ _type = 'ContextNet'
164
+ Selection = TypedDict(
165
+ "Selection",
166
+ {
167
+ "proteins": NotRequired[typing.Sequence[str]],
168
+ "nodeIds": NotRequired[typing.Sequence[str]],
169
+ "source": NotRequired[str]
170
+ }
171
+ )
172
+
173
+
174
+ def __init__(
175
+ self,
176
+ id: typing.Optional[typing.Union[str, dict]] = None,
177
+ className: typing.Optional[str] = None,
178
+ style: typing.Optional[typing.Any] = None,
179
+ data: typing.Optional[dict] = None,
180
+ compartment_mode: typing.Optional[Literal["pie", "clones", "bubbles", "orthogroups", "orthogroup-nodes"]] = None,
181
+ context: typing.Optional[dict] = None,
182
+ layout: typing.Optional[dict] = None,
183
+ edge_layers: typing.Optional[typing.Sequence[str]] = None,
184
+ edge_view: typing.Optional[dict] = None,
185
+ bubble_by: typing.Optional[str] = None,
186
+ bubble_min_species: typing.Optional[NumberType] = None,
187
+ bubble_avoid: typing.Optional[typing.Union[bool, Literal["auto"]]] = None,
188
+ hints: typing.Optional[typing.Union[bool, str, dict]] = None,
189
+ semantic_zoom: typing.Optional[typing.Union[bool, dict]] = None,
190
+ keyboard: typing.Optional[bool] = None,
191
+ overlay_click: typing.Optional[bool] = None,
192
+ stylesheet: typing.Optional[typing.Sequence[dict]] = None,
193
+ cytoscape_options: typing.Optional[dict] = None,
194
+ selection: typing.Optional["Selection"] = None,
195
+ compute_metrics: typing.Optional[bool] = None,
196
+ metrics: typing.Optional[dict] = None,
197
+ last_event: typing.Optional[dict] = None,
198
+ network_info: typing.Optional[dict] = None,
199
+ error: typing.Optional[str] = None,
200
+ export_request: typing.Optional[dict] = None,
201
+ export_result: typing.Optional[dict] = None,
202
+ **kwargs
203
+ ):
204
+ self._prop_names = ['id', 'bubble_avoid', 'bubble_by', 'bubble_min_species', 'className', 'compartment_mode', 'compute_metrics', 'context', 'cytoscape_options', 'data', 'edge_layers', 'edge_view', 'error', 'export_request', 'export_result', 'hints', 'keyboard', 'last_event', 'layout', 'metrics', 'network_info', 'overlay_click', 'selection', 'semantic_zoom', 'style', 'stylesheet']
205
+ self._valid_wildcard_attributes = []
206
+ self.available_properties = ['id', 'bubble_avoid', 'bubble_by', 'bubble_min_species', 'className', 'compartment_mode', 'compute_metrics', 'context', 'cytoscape_options', 'data', 'edge_layers', 'edge_view', 'error', 'export_request', 'export_result', 'hints', 'keyboard', 'last_event', 'layout', 'metrics', 'network_info', 'overlay_click', 'selection', 'semantic_zoom', 'style', 'stylesheet']
207
+ self.available_wildcard_properties = []
208
+ _explicit_args = kwargs.pop('_explicit_args')
209
+ _locals = locals()
210
+ _locals.update(kwargs) # For wildcard attrs and excess named props
211
+ args = {k: _locals[k] for k in _explicit_args}
212
+
213
+ super(ContextNet, self).__init__(**args)
214
+
215
+ setattr(ContextNet, "__init__", _explicitize_args(ContextNet.__init__))
@@ -0,0 +1,305 @@
1
+ Third-party software bundled in dash_contextnet/dash_contextnet.min.js
2
+ Generated by webpack.config.js from the modules that are actually in the bundle.
3
+
4
+ bubblesets-js 3.0.1 MIT
5
+ cose-base 2.2.0 MIT
6
+ cytoscape 3.35.0 MIT
7
+ cytoscape-bubblesets 4.1.0 MIT
8
+ cytoscape-contextnet 0.2.0 MIT
9
+ cytoscape-fcose 2.2.0 MIT
10
+ cytoscape-layers 3.1.0 MIT
11
+ layout-base 2.0.1 MIT
12
+ lodash.throttle 4.1.1 MIT
13
+ prop-types 15.8.1 MIT
14
+
15
+ ==============================================================================
16
+ bubblesets-js 3.0.1 (MIT)
17
+ https://github.com/upsetjs/bubblesets-js
18
+ ==============================================================================
19
+
20
+ MIT License
21
+
22
+ Copyright (c) 2021-2022 Samuel Gratzl
23
+
24
+ Permission is hereby granted, free of charge, to any person obtaining a copy
25
+ of this software and associated documentation files (the "Software"), to deal
26
+ in the Software without restriction, including without limitation the rights
27
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
28
+ copies of the Software, and to permit persons to whom the Software is
29
+ furnished to do so, subject to the following conditions:
30
+
31
+ The above copyright notice and this permission notice shall be included in all
32
+ copies or substantial portions of the Software.
33
+
34
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
35
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
36
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
37
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
38
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
39
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
40
+ SOFTWARE.
41
+
42
+ ==============================================================================
43
+ cose-base 2.2.0 (MIT)
44
+ https://github.com/iVis-at-Bilkent/cose-base#readme
45
+ ==============================================================================
46
+
47
+ MIT License
48
+
49
+ Copyright (c) 2019 - present, iVis@Bilkent.
50
+
51
+ Permission is hereby granted, free of charge, to any person obtaining a copy
52
+ of this software and associated documentation files (the "Software"), to deal
53
+ in the Software without restriction, including without limitation the rights
54
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
55
+ copies of the Software, and to permit persons to whom the Software is
56
+ furnished to do so, subject to the following conditions:
57
+
58
+ The above copyright notice and this permission notice shall be included in all
59
+ copies or substantial portions of the Software.
60
+
61
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
62
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
63
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
64
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
65
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
66
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
67
+ SOFTWARE.
68
+
69
+ ==============================================================================
70
+ cytoscape 3.35.0 (MIT)
71
+ http://js.cytoscape.org
72
+ ==============================================================================
73
+
74
+ Copyright (c) 2016-2026, The Cytoscape Consortium.
75
+
76
+ Permission is hereby granted, free of charge, to any person obtaining a copy of
77
+ this software and associated documentation files (the “Software”), to deal in
78
+ the Software without restriction, including without limitation the rights to
79
+ use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
80
+ of the Software, and to permit persons to whom the Software is furnished to do
81
+ so, subject to the following conditions:
82
+
83
+ The above copyright notice and this permission notice shall be included in all
84
+ copies or substantial portions of the Software.
85
+
86
+ THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
87
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
88
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
89
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
90
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
91
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
92
+ SOFTWARE.
93
+
94
+ ==============================================================================
95
+ cytoscape-bubblesets 4.1.0 (MIT)
96
+ https://github.com/upsetjs/cytoscape.js-bubblesets
97
+ ==============================================================================
98
+
99
+ MIT License
100
+
101
+ Copyright (c) 2021-2022 Samuel Gratzl
102
+
103
+ Permission is hereby granted, free of charge, to any person obtaining a copy
104
+ of this software and associated documentation files (the "Software"), to deal
105
+ in the Software without restriction, including without limitation the rights
106
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
107
+ copies of the Software, and to permit persons to whom the Software is
108
+ furnished to do so, subject to the following conditions:
109
+
110
+ The above copyright notice and this permission notice shall be included in all
111
+ copies or substantial portions of the Software.
112
+
113
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
114
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
115
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
116
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
117
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
118
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
119
+ SOFTWARE.
120
+
121
+ ==============================================================================
122
+ cytoscape-contextnet 0.2.0 (MIT)
123
+ https://bjoernoest.github.io/cytoscapejs_contextnet/
124
+ ==============================================================================
125
+
126
+ MIT License
127
+
128
+ Copyright (c) 2026
129
+
130
+ Permission is hereby granted, free of charge, to any person obtaining a copy
131
+ of this software and associated documentation files (the "Software"), to deal
132
+ in the Software without restriction, including without limitation the rights
133
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
134
+ copies of the Software, and to permit persons to whom the Software is
135
+ furnished to do so, subject to the following conditions:
136
+
137
+ The above copyright notice and this permission notice shall be included in all
138
+ copies or substantial portions of the Software.
139
+
140
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
141
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
142
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
143
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
144
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
145
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
146
+ SOFTWARE.
147
+
148
+ ==============================================================================
149
+ cytoscape-fcose 2.2.0 (MIT)
150
+ https://github.com/iVis-at-Bilkent/cytoscape.js-fcose
151
+ ==============================================================================
152
+
153
+ Copyright (c) 2018 - present, iVis-at-Bilkent.
154
+
155
+ Permission is hereby granted, free of charge, to any person obtaining a copy of
156
+ this software and associated documentation files (the “Software”), to deal in
157
+ the Software without restriction, including without limitation the rights to
158
+ use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
159
+ of the Software, and to permit persons to whom the Software is furnished to do
160
+ so, subject to the following conditions:
161
+
162
+ The above copyright notice and this permission notice shall be included in all
163
+ copies or substantial portions of the Software.
164
+
165
+ THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
166
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
167
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
168
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
169
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
170
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
171
+ SOFTWARE.
172
+
173
+ ==============================================================================
174
+ cytoscape-layers 3.1.0 (MIT)
175
+ https://github.com/sgratzl/cytoscape.js-layers
176
+ ==============================================================================
177
+
178
+ MIT License
179
+
180
+ Copyright (c) 2020 Samuel Gratzl
181
+
182
+ Permission is hereby granted, free of charge, to any person obtaining a copy
183
+ of this software and associated documentation files (the "Software"), to deal
184
+ in the Software without restriction, including without limitation the rights
185
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
186
+ copies of the Software, and to permit persons to whom the Software is
187
+ furnished to do so, subject to the following conditions:
188
+
189
+ The above copyright notice and this permission notice shall be included in all
190
+ copies or substantial portions of the Software.
191
+
192
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
193
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
194
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
195
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
196
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
197
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
198
+ SOFTWARE.
199
+
200
+ ==============================================================================
201
+ layout-base 2.0.1 (MIT)
202
+ https://github.com/iVis-at-Bilkent/layout-base#readme
203
+ ==============================================================================
204
+
205
+ MIT License
206
+
207
+ Copyright (c) 2019 iVis@Bilkent
208
+
209
+ Permission is hereby granted, free of charge, to any person obtaining a copy
210
+ of this software and associated documentation files (the "Software"), to deal
211
+ in the Software without restriction, including without limitation the rights
212
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
213
+ copies of the Software, and to permit persons to whom the Software is
214
+ furnished to do so, subject to the following conditions:
215
+
216
+ The above copyright notice and this permission notice shall be included in all
217
+ copies or substantial portions of the Software.
218
+
219
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
220
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
221
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
222
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
223
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
224
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
225
+ SOFTWARE.
226
+
227
+ ==============================================================================
228
+ lodash.throttle 4.1.1 (MIT)
229
+ https://lodash.com/
230
+ ==============================================================================
231
+
232
+ Copyright jQuery Foundation and other contributors <https://jquery.org/>
233
+
234
+ Based on Underscore.js, copyright Jeremy Ashkenas,
235
+ DocumentCloud and Investigative Reporters & Editors <http://underscorejs.org/>
236
+
237
+ This software consists of voluntary contributions made by many
238
+ individuals. For exact contribution history, see the revision history
239
+ available at https://github.com/lodash/lodash
240
+
241
+ The following license applies to all parts of this software except as
242
+ documented below:
243
+
244
+ ====
245
+
246
+ Permission is hereby granted, free of charge, to any person obtaining
247
+ a copy of this software and associated documentation files (the
248
+ "Software"), to deal in the Software without restriction, including
249
+ without limitation the rights to use, copy, modify, merge, publish,
250
+ distribute, sublicense, and/or sell copies of the Software, and to
251
+ permit persons to whom the Software is furnished to do so, subject to
252
+ the following conditions:
253
+
254
+ The above copyright notice and this permission notice shall be
255
+ included in all copies or substantial portions of the Software.
256
+
257
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
258
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
259
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
260
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
261
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
262
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
263
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
264
+
265
+ ====
266
+
267
+ Copyright and related rights for sample code are waived via CC0. Sample
268
+ code is defined as all source code displayed within the prose of the
269
+ documentation.
270
+
271
+ CC0: http://creativecommons.org/publicdomain/zero/1.0/
272
+
273
+ ====
274
+
275
+ Files located in the node_modules and vendor directories are externally
276
+ maintained libraries used by this software which have their own
277
+ licenses; we recommend you read them, as their terms may differ from the
278
+ terms above.
279
+
280
+ ==============================================================================
281
+ prop-types 15.8.1 (MIT)
282
+ https://facebook.github.io/react/
283
+ ==============================================================================
284
+
285
+ MIT License
286
+
287
+ Copyright (c) 2013-present, Facebook, Inc.
288
+
289
+ Permission is hereby granted, free of charge, to any person obtaining a copy
290
+ of this software and associated documentation files (the "Software"), to deal
291
+ in the Software without restriction, including without limitation the rights
292
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
293
+ copies of the Software, and to permit persons to whom the Software is
294
+ furnished to do so, subject to the following conditions:
295
+
296
+ The above copyright notice and this permission notice shall be included in all
297
+ copies or substantial portions of the Software.
298
+
299
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
300
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
301
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
302
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
303
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
304
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
305
+ SOFTWARE.
@@ -0,0 +1,30 @@
1
+ """Plotly Dash component for ContextNet (cytoscape-contextnet).
2
+
3
+ from dash_contextnet import ContextNet
4
+
5
+ The browser bundle ``dash_contextnet.min.js`` contains Cytoscape.js, cytoscape-fcose, cytoscape-bubblesets and
6
+ ContextNet itself, so nothing else has to be installed or served. Licences: THIRD_PARTY_LICENSES.txt.
7
+ """
8
+
9
+ from ._version import __version__
10
+ from ._imports_ import * # noqa: F401,F403
11
+ from ._imports_ import __all__ as _components
12
+
13
+ __all__ = list(_components) + ["__version__"]
14
+
15
+ _js_dist = [
16
+ {
17
+ "relative_package_path": "dash_contextnet.min.js",
18
+ "namespace": "dash_contextnet",
19
+ },
20
+ {
21
+ "relative_package_path": "dash_contextnet.min.js.map",
22
+ "namespace": "dash_contextnet",
23
+ "dynamic": True,
24
+ },
25
+ ]
26
+ _css_dist = []
27
+
28
+ for _component in _components:
29
+ setattr(locals()[_component], "_js_dist", _js_dist)
30
+ setattr(locals()[_component], "_css_dist", _css_dist)
@@ -0,0 +1,5 @@
1
+ from .ContextNet import ContextNet
2
+
3
+ __all__ = [
4
+ "ContextNet"
5
+ ]
@@ -0,0 +1 @@
1
+ __version__ = "0.2.0"