dash-seqviz 0.2.2__tar.gz → 0.3.0__tar.gz
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.
- {dash_seqviz-0.2.2/dash_seqviz.egg-info → dash_seqviz-0.3.0}/PKG-INFO +1 -1
- {dash_seqviz-0.2.2 → dash_seqviz-0.3.0}/dash_seqviz/SeqViz.py +2 -35
- dash_seqviz-0.3.0/dash_seqviz/__init__.py +68 -0
- dash_seqviz-0.3.0/dash_seqviz/async-SeqViz.js +3 -0
- dash_seqviz-0.3.0/dash_seqviz/async-SeqViz.js.map +1 -0
- {dash_seqviz-0.2.2 → dash_seqviz-0.3.0}/dash_seqviz/dash_seqviz.min.js +1 -1
- dash_seqviz-0.3.0/dash_seqviz/dash_seqviz.min.js.map +1 -0
- {dash_seqviz-0.2.2 → dash_seqviz-0.3.0}/dash_seqviz/metadata.json +1 -1
- {dash_seqviz-0.2.2 → dash_seqviz-0.3.0}/dash_seqviz/package-info.json +1 -1
- {dash_seqviz-0.2.2 → dash_seqviz-0.3.0/dash_seqviz.egg-info}/PKG-INFO +1 -1
- {dash_seqviz-0.2.2 → dash_seqviz-0.3.0}/package.json +1 -1
- dash_seqviz-0.2.2/dash_seqviz/__init__.py +0 -110
- dash_seqviz-0.2.2/dash_seqviz/async-SeqViz.js +0 -3
- dash_seqviz-0.2.2/dash_seqviz/async-SeqViz.js.map +0 -1
- dash_seqviz-0.2.2/dash_seqviz/dash_seqviz.min.js.map +0 -1
- {dash_seqviz-0.2.2 → dash_seqviz-0.3.0}/LICENSE +0 -0
- {dash_seqviz-0.2.2 → dash_seqviz-0.3.0}/MANIFEST.in +0 -0
- {dash_seqviz-0.2.2 → dash_seqviz-0.3.0}/README.md +0 -0
- {dash_seqviz-0.2.2 → dash_seqviz-0.3.0}/dash_seqviz/_imports_.py +0 -0
- {dash_seqviz-0.2.2 → dash_seqviz-0.3.0}/dash_seqviz.egg-info/SOURCES.txt +0 -0
- {dash_seqviz-0.2.2 → dash_seqviz-0.3.0}/dash_seqviz.egg-info/dependency_links.txt +0 -0
- {dash_seqviz-0.2.2 → dash_seqviz-0.3.0}/dash_seqviz.egg-info/requires.txt +0 -0
- {dash_seqviz-0.2.2 → dash_seqviz-0.3.0}/dash_seqviz.egg-info/top_level.txt +0 -0
- {dash_seqviz-0.2.2 → dash_seqviz-0.3.0}/setup.cfg +0 -0
- {dash_seqviz-0.2.2 → dash_seqviz-0.3.0}/setup.py +0 -0
- {dash_seqviz-0.2.2 → dash_seqviz-0.3.0}/tests/test_usage.py +0 -0
|
@@ -43,30 +43,15 @@ Keyword arguments:
|
|
|
43
43
|
|
|
44
44
|
- color (string; optional)
|
|
45
45
|
|
|
46
|
-
- bpColors (dict; optional):
|
|
47
|
-
@deprecated since 0.2.2, use `bp_colors`. Removed in 0.3.0.
|
|
48
|
-
|
|
49
46
|
- bp_colors (dict; optional):
|
|
50
47
|
Object mapping base pairs or indexes to custom colors.
|
|
51
48
|
|
|
52
49
|
- colors (list of strings; optional):
|
|
53
50
|
Array of colors for annotations, translations, and highlights.
|
|
54
51
|
|
|
55
|
-
- disableExternalFonts (boolean; optional):
|
|
56
|
-
@deprecated since 0.2.2, use `disable_external_fonts`. Removed in
|
|
57
|
-
0.3.0.
|
|
58
|
-
|
|
59
52
|
- disable_external_fonts (boolean; default False):
|
|
60
53
|
Whether to disable downloading external fonts.
|
|
61
54
|
|
|
62
|
-
- enableCopyEvent (boolean; optional):
|
|
63
|
-
@deprecated since 0.2.2, use `enable_copy_event`. Removed in
|
|
64
|
-
0.3.0.
|
|
65
|
-
|
|
66
|
-
- enableSelectAllEvent (boolean; optional):
|
|
67
|
-
@deprecated since 0.2.2, use `enable_select_all_event`. Removed in
|
|
68
|
-
0.3.0.
|
|
69
|
-
|
|
70
55
|
- enable_copy_event (boolean; default True):
|
|
71
56
|
When False, disables the default copyEvent (ctrl/cmd + C).
|
|
72
57
|
|
|
@@ -129,9 +114,6 @@ Keyword arguments:
|
|
|
129
114
|
|
|
130
115
|
- color (string; optional)
|
|
131
116
|
|
|
132
|
-
- rotateOnScroll (boolean; optional):
|
|
133
|
-
@deprecated since 0.2.2, use `rotate_on_scroll`. Removed in 0.3.0.
|
|
134
|
-
|
|
135
117
|
- rotate_on_scroll (boolean; default True):
|
|
136
118
|
Whether the circular viewer rotates on scroll.
|
|
137
119
|
|
|
@@ -144,9 +126,6 @@ Keyword arguments:
|
|
|
144
126
|
|
|
145
127
|
- mismatch (number; optional)
|
|
146
128
|
|
|
147
|
-
- searchResults (list; optional):
|
|
148
|
-
@deprecated since 0.2.2, use `search_results`. Removed in 0.3.0.
|
|
149
|
-
|
|
150
129
|
- search_results (list; optional):
|
|
151
130
|
Search results emitted by seqviz (read-only for Dash usage).
|
|
152
131
|
|
|
@@ -165,9 +144,6 @@ Keyword arguments:
|
|
|
165
144
|
- seq (string; optional):
|
|
166
145
|
The sequence to render. Can be DNA, RNA, or amino acid sequence.
|
|
167
146
|
|
|
168
|
-
- showComplement (boolean; optional):
|
|
169
|
-
@deprecated since 0.2.2, use `show_complement`. Removed in 0.3.0.
|
|
170
|
-
|
|
171
147
|
- show_complement (boolean; default True):
|
|
172
148
|
Whether to show the complement sequence.
|
|
173
149
|
|
|
@@ -314,20 +290,11 @@ Keyword arguments:
|
|
|
314
290
|
enable_copy_event: typing.Optional[bool] = None,
|
|
315
291
|
enable_select_all_event: typing.Optional[bool] = None,
|
|
316
292
|
search_results: typing.Optional[typing.Sequence] = None,
|
|
317
|
-
bpColors: typing.Optional[dict] = None,
|
|
318
|
-
showComplement: typing.Optional[bool] = None,
|
|
319
|
-
rotateOnScroll: typing.Optional[bool] = None,
|
|
320
|
-
disableExternalFonts: typing.Optional[bool] = None,
|
|
321
|
-
enableCopyEvent: typing.Optional[bool] = None,
|
|
322
|
-
enableSelectAllEvent: typing.Optional[bool] = None,
|
|
323
|
-
onSelection: typing.Optional[typing.Any] = None,
|
|
324
|
-
onSearch: typing.Optional[typing.Any] = None,
|
|
325
|
-
searchResults: typing.Optional[typing.Sequence] = None,
|
|
326
293
|
**kwargs
|
|
327
294
|
):
|
|
328
|
-
self._prop_names = ['id', 'annotations', '
|
|
295
|
+
self._prop_names = ['id', 'annotations', 'bp_colors', 'colors', 'disable_external_fonts', 'enable_copy_event', 'enable_select_all_event', 'enzymes', 'highlights', 'name', 'primers', 'rotate_on_scroll', 'search', 'search_results', 'selection', 'seq', 'show_complement', 'style', 'translations', 'viewer', 'zoom']
|
|
329
296
|
self._valid_wildcard_attributes = []
|
|
330
|
-
self.available_properties = ['id', 'annotations', '
|
|
297
|
+
self.available_properties = ['id', 'annotations', 'bp_colors', 'colors', 'disable_external_fonts', 'enable_copy_event', 'enable_select_all_event', 'enzymes', 'highlights', 'name', 'primers', 'rotate_on_scroll', 'search', 'search_results', 'selection', 'seq', 'show_complement', 'style', 'translations', 'viewer', 'zoom']
|
|
331
298
|
self.available_wildcard_properties = []
|
|
332
299
|
_explicit_args = kwargs.pop('_explicit_args')
|
|
333
300
|
_locals = locals()
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import json
|
|
2
|
+
import os as _os
|
|
3
|
+
import sys as _sys
|
|
4
|
+
from pathlib import Path
|
|
5
|
+
|
|
6
|
+
import dash as _dash
|
|
7
|
+
|
|
8
|
+
# noinspection PyUnresolvedReferences
|
|
9
|
+
from ._imports_ import *
|
|
10
|
+
from ._imports_ import __all__
|
|
11
|
+
|
|
12
|
+
if not hasattr(_dash, 'development'):
|
|
13
|
+
print(
|
|
14
|
+
'Dash was not successfully imported. '
|
|
15
|
+
'Make sure you don\'t have a file '
|
|
16
|
+
'named \n"dash.py" in your current directory.',
|
|
17
|
+
file=_sys.stderr,
|
|
18
|
+
)
|
|
19
|
+
_sys.exit(1)
|
|
20
|
+
|
|
21
|
+
_basepath = Path(__file__).parent
|
|
22
|
+
with open(_basepath / 'package-info.json') as f:
|
|
23
|
+
package = json.load(f)
|
|
24
|
+
|
|
25
|
+
package_name = package['name'].replace(' ', '_').replace('-', '_')
|
|
26
|
+
__version__ = package['version']
|
|
27
|
+
|
|
28
|
+
_async_resources = ["SeqViz"]
|
|
29
|
+
|
|
30
|
+
_js_dist = [
|
|
31
|
+
{
|
|
32
|
+
"relative_package_path": f"async-{resource}.js",
|
|
33
|
+
"external_url": (
|
|
34
|
+
f"https://unpkg.com/{package_name}@{__version__}"
|
|
35
|
+
f"/{__name__}/async-{resource}.js"
|
|
36
|
+
),
|
|
37
|
+
"namespace": package_name,
|
|
38
|
+
"async": True,
|
|
39
|
+
}
|
|
40
|
+
for resource in _async_resources
|
|
41
|
+
] + [
|
|
42
|
+
{
|
|
43
|
+
"relative_package_path": f"async-{resource}.js.map",
|
|
44
|
+
"external_url": (
|
|
45
|
+
f"https://unpkg.com/{package_name}@{__version__}"
|
|
46
|
+
f"/{__name__}/async-{resource}.js.map"
|
|
47
|
+
),
|
|
48
|
+
"namespace": package_name,
|
|
49
|
+
"dynamic": True,
|
|
50
|
+
}
|
|
51
|
+
for resource in _async_resources
|
|
52
|
+
] + [
|
|
53
|
+
{
|
|
54
|
+
'relative_package_path': 'dash_seqviz.min.js',
|
|
55
|
+
'namespace': package_name,
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
'relative_package_path': 'dash_seqviz.min.js.map',
|
|
59
|
+
'namespace': package_name,
|
|
60
|
+
'dynamic': True,
|
|
61
|
+
},
|
|
62
|
+
]
|
|
63
|
+
|
|
64
|
+
_css_dist = []
|
|
65
|
+
|
|
66
|
+
for _component in __all__:
|
|
67
|
+
setattr(locals()[_component], '_js_dist', _js_dist)
|
|
68
|
+
setattr(locals()[_component], '_css_dist', _css_dist)
|