-
-
Notifications
You must be signed in to change notification settings - Fork 192
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Integrate jsme component in dash_bio library * Start working on tests * Fixed dash python imports. * Added tests for default component buttons * Added tests for depict, export, button options * Added tests for style, width, height and other options * Fixed popup window move bug * Improving the jsme scrolling function * Changes to match the style guide * Update jsme dependencie * Fixed test wait component * Rollback lint:test script * Minor changes to defaults and demo app * Linting fix * Updating dev requirements * updating config * Updating tests * Reverting dash bio utils update * Re-running tests * Re-running tests * Re-running tests * Changing flaky test Co-authored-by: Hammad Khan <hammadtheone@gmail.com>
- Loading branch information
1 parent
a7c17ab
commit b028bf6
Showing
74 changed files
with
3,039 additions
and
587 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# AUTO GENERATED FILE - DO NOT EDIT | ||
|
||
dashbioJsme <- function(id=NULL, eventSmiles=NULL, height=NULL, options=NULL, smiles=NULL, style=NULL, width=NULL) { | ||
|
||
props <- list(id=id, eventSmiles=eventSmiles, height=height, options=options, smiles=smiles, style=style, width=width) | ||
if (length(props) > 0) { | ||
props <- props[!vapply(props, is.null, logical(1))] | ||
} | ||
component <- list( | ||
props = props, | ||
type = 'Jsme', | ||
namespace = 'dash_bio', | ||
propNames = c('id', 'eventSmiles', 'height', 'options', 'smiles', 'style', 'width'), | ||
package = 'dashBio' | ||
) | ||
|
||
structure(component, class = c('dash_component', 'list')) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
# AUTO GENERATED FILE - DO NOT EDIT | ||
|
||
from dash.development.base_component import Component, _explicitize_args | ||
|
||
|
||
class Jsme(Component): | ||
"""A Jsme component. | ||
JSME is a molecule editor that supports drawing and | ||
editing of molecules and reactions on in a web app, | ||
supporting both desktop and mobile devices. A built-in | ||
substituent menu and several keyboard shortcuts | ||
provide speedy access to the most common editing features and allow easy | ||
and fast creation of even large and complex molecules. The editor | ||
is able to export molecules as SMILES, MDL/Symyx/Accelrys Molfile or | ||
in its own compact format (one line textual representation of a molecule or | ||
reaction including also atomic 2D coordinates). The SMILES code generated by the JSME | ||
is canonical, i.e. independent on the way how the molecule was drawn. | ||
See more detailed documentation here: https://jsme-editor.github.io/help.html | ||
Keyword arguments: | ||
- id (string; default 'jsme'): | ||
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. | ||
- eventSmiles (string; optional): | ||
A Dash prop that returns data when SMILE will be changed. | ||
- height (string; default '600px'): | ||
The height of the JSME container. Can be set in px, % etc. | ||
- options (string; default 'newLook'): | ||
String that is a comma separated string of JSME options. The | ||
available options are described on the | ||
https://wiki.jmol.org/index.php/Jmol_JavaScript_Object/JME/Options. | ||
- smiles (string; optional): | ||
The molecule SMILE to display. | ||
- style (dict; optional): | ||
Generic style overrides on the plot div. | ||
- width (string; default '600px'): | ||
The width of the JSME container. Can be set in px, % etc.""" | ||
@_explicitize_args | ||
def __init__(self, id=Component.UNDEFINED, style=Component.UNDEFINED, options=Component.UNDEFINED, height=Component.UNDEFINED, width=Component.UNDEFINED, eventSmiles=Component.UNDEFINED, smiles=Component.UNDEFINED, **kwargs): | ||
self._prop_names = ['id', 'eventSmiles', 'height', 'options', 'smiles', 'style', 'width'] | ||
self._type = 'Jsme' | ||
self._namespace = 'dash_bio' | ||
self._valid_wildcard_attributes = [] | ||
self.available_properties = ['id', 'eventSmiles', 'height', 'options', 'smiles', 'style', 'width'] | ||
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(Jsme, self).__init__(**args) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -40,7 +40,8 @@ | |
'nglmoleculeviewer', | ||
'onco', | ||
'sequence', | ||
'speck' | ||
'speck', | ||
'jsme' | ||
] | ||
|
||
_js_dist = [] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Oops, something went wrong.