-
-
Notifications
You must be signed in to change notification settings - Fork 191
add dash-ngl #496
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add dash-ngl #496
Changes from 4 commits
40f1790
52f0fc5
38de83b
c692bee
a7e8b95
c3f6c47
bb8e1e7
db1eac5
ace79e9
e47ceba
2f3df53
4a38872
6403d3f
1248396
ac86509
a5312a2
03a2c20
178ce49
63bb986
d029214
b01e7b6
38bc925
1e508c3
eba02b5
399e550
4c4695a
f5a121d
a8ad940
a26509a
3377720
f58739e
a5d8b8a
f938037
c3ee439
0a6f7df
748867a
91965e7
7d68e00
aecb08a
011db6f
b6701ba
7cf94bb
e93eb85
aca689a
b54c3b4
269092f
42c3447
12a0611
a9a3ae7
49be458
ebc2a78
9047632
1d8771c
a3b3128
1398b0b
9f05326
61ab664
184610d
78fd7e9
c39b8a6
9803974
8bd68de
41e3be8
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -41,3 +41,6 @@ __pycache__/ | |
venv/ | ||
|
||
.env | ||
|
||
# editors | ||
.vscode/ |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# AUTO GENERATED FILE - DO NOT EDIT | ||
|
||
DashNglDashNgl <- function(id=NULL, viewportStyle=NULL, stageParameters=NULL, data=NULL) { | ||
|
||
props <- list(id=id, viewportStyle=viewportStyle, stageParameters=stageParameters, data=data) | ||
if (length(props) > 0) { | ||
props <- props[!vapply(props, is.null, logical(1))] | ||
} | ||
component <- list( | ||
props = props, | ||
type = 'DashNgl', | ||
namespace = 'dash_ngl', | ||
propNames = c('id', 'viewportStyle', 'stageParameters', 'data'), | ||
package = 'dashNgl' | ||
) | ||
|
||
structure(component, class = c('dash_component', 'list')) | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
# AUTO GENERATED FILE - DO NOT EDIT | ||
|
||
from dash.development.base_component import Component, _explicitize_args | ||
|
||
|
||
class DashNgl(Component): | ||
"""A DashNgl component. | ||
The Molecule3dViewer component is used to render schematic diagrams | ||
of biomolecules. It displays them in ribbon-structure diagrams | ||
Read more about the component here: | ||
https://github.com/IvoLeist/dash_ngl | ||
Read more about the used WebGL protein viewer here: | ||
https://github.com/arose/ngl | ||
|
||
Keyword arguments: | ||
- id (string; default 'viewport'): The ID of this component, used to identify dash components in | ||
callbacks. The ID needs to be unique across all of the | ||
components in an app. | ||
- viewportStyle (dict; default { | ||
width: '100%', | ||
height: '500px', | ||
}): The height (in px) and the width (in %) of the container | ||
in which the molecules will be displayed. | ||
It should be in JSON format | ||
- stageParameters (dict; default { | ||
quality: 'medium', | ||
backgroundColor: 'white', | ||
}): Parameters for the stage object of ngl. | ||
Currently implemented are the quality of the visualisation | ||
and the background color.For a full list see: | ||
http://nglviewer.org/ngl/api/file/src/stage/stage.js.html | ||
- data (optional): The data that will be used to display the molecule in 3D | ||
The data will be in JSON format""" | ||
@_explicitize_args | ||
def __init__(self, id=Component.UNDEFINED, viewportStyle=Component.UNDEFINED, stageParameters=Component.UNDEFINED, data=Component.UNDEFINED, **kwargs): | ||
self._prop_names = ['id', 'viewportStyle', 'stageParameters', 'data'] | ||
self._type = 'DashNgl' | ||
self._namespace = 'dash_bio' | ||
self._valid_wildcard_attributes = [] | ||
self.available_properties = ['id', 'viewportStyle', 'stageParameters', 'data'] | ||
self.available_wildcard_properties = [] | ||
|
||
_explicit_args = kwargs.pop('_explicit_args') | ||
_locals = locals() | ||
_locals.update(kwargs) # For wildcard attrs | ||
args = {k: _locals[k] for k in _explicit_args if k != 'children'} | ||
|
||
for k in []: | ||
if k not in args: | ||
raise TypeError( | ||
'Required argument `' + k + '` was not specified.') | ||
super(DashNgl, self).__init__(**args) |
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Large diffs are not rendered by default.
Uh oh!
There was an error while loading. Please reload this page.