Skip to content

Commit

Permalink
Add VariantMap Component (#567)
Browse files Browse the repository at this point in the history
* Initial addition of variantmap component

* Updated prop descriptions and defaults

* Linting fixes

* Increase timeout for test

* Updating percy snapshot

* Adding in kwargs for arbitrary layout args

* Increased CI timeout

* Updated 3dmol version

* Fixing ci

* Updating test

* Updated test

* Re-running test

* Re-running test
  • Loading branch information
HammadTheOne authored Oct 18, 2021
1 parent 56a0f60 commit dc25279
Show file tree
Hide file tree
Showing 40 changed files with 2,625 additions and 40 deletions.
3 changes: 2 additions & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -96,11 +96,11 @@ jobs:
- run:
name: Install requirements
no_output_timeout: 20m
command: |
. venv/bin/activate
pip install --upgrade pip
pip install --progress-bar off -r tests/requirements.txt --quiet
no_output_timeout: 20m

- save_cache:
key: deps1-{{ .Branch }}-{{ checksum "dev-requirements.txt" }}-{{ checksum "tests/requirements.txt" }}-{{ checksum "ver.txt" }}-{{ checksum ".circleci/config.yml" }}
Expand Down Expand Up @@ -139,6 +139,7 @@ jobs:
cd dist
find . -name "*.gz" | xargs pip install --progress-bar off --no-cache-dir --ignore-installed --quiet && cd ..
pytest --nopercyfinalize tests/integration
no_output_timeout: 20m

- run:
name: Run unit tests
Expand Down
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
* [#575](https://github.com/plotly/dash-bio/pull/575) Bumped Ideogram version to 1.6.0 to fix erratic annotations behavior (for more info see [#524](https://github.com/plotly/dash-bio/issues/524)).

### Added
* [#567](https://github.com/plotly/dash-bio/pull/567) Added VariantMap component (see [#504](https://github.com/plotly/dash-bio/pull/504) for original PR).
* [#573](https://github.com/plotly/dash-bio/pull/573) Added the ability to configure the FornaContainer hover info with `hoverPattern` prop and interpolated node keys (for more info see [#519](https://github.com/plotly/dash-bio/issues/519)).

## [0.7.1] - 2021-07-26
Expand Down
6 changes: 3 additions & 3 deletions R/dashbioNeedlePlot.R
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
# AUTO GENERATED FILE - DO NOT EDIT

dashbioNeedlePlot <- function(id=NULL, clickData=NULL, domainStyle=NULL, margin=NULL, mutationData=NULL, needleStyle=NULL, rangeSlider=NULL, xlabel=NULL, ylabel=NULL) {
dashbioNeedlePlot <- function(id=NULL, clickData=NULL, domainStyle=NULL, height=NULL, margin=NULL, mutationData=NULL, needleStyle=NULL, rangeSlider=NULL, width=NULL, xlabel=NULL, ylabel=NULL) {

props <- list(id=id, clickData=clickData, domainStyle=domainStyle, margin=margin, mutationData=mutationData, needleStyle=needleStyle, rangeSlider=rangeSlider, xlabel=xlabel, ylabel=ylabel)
props <- list(id=id, clickData=clickData, domainStyle=domainStyle, height=height, margin=margin, mutationData=mutationData, needleStyle=needleStyle, rangeSlider=rangeSlider, width=width, xlabel=xlabel, ylabel=ylabel)
if (length(props) > 0) {
props <- props[!vapply(props, is.null, logical(1))]
}
component <- list(
props = props,
type = 'NeedlePlot',
namespace = 'dash_bio',
propNames = c('id', 'clickData', 'domainStyle', 'margin', 'mutationData', 'needleStyle', 'rangeSlider', 'xlabel', 'ylabel'),
propNames = c('id', 'clickData', 'domainStyle', 'height', 'margin', 'mutationData', 'needleStyle', 'rangeSlider', 'width', 'xlabel', 'ylabel'),
package = 'dashBio'
)

Expand Down
12 changes: 9 additions & 3 deletions dash_bio/NeedlePlot.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@ class NeedlePlot(Component):
Sets the angle at which the domain annotation text is drawn
with respect to the horizontal.
- height (number | string; default 800):
Height of the Plot.
- margin (dict; default {t: 100, l: 40, r: 0, b: 40}):
Margins of the plot.
Expand Down Expand Up @@ -71,18 +74,21 @@ class NeedlePlot(Component):
- rangeSlider (boolean; default False):
If True, enables a rangeslider for the x-axis.
- width (number | string; default 700):
Width of the Plot.
- xlabel (string; optional):
Title of the x-axis.
- ylabel (string; optional):
Title of the y-axis."""
@_explicitize_args
def __init__(self, id=Component.UNDEFINED, mutationData=Component.UNDEFINED, margin=Component.UNDEFINED, xlabel=Component.UNDEFINED, ylabel=Component.UNDEFINED, rangeSlider=Component.UNDEFINED, needleStyle=Component.UNDEFINED, domainStyle=Component.UNDEFINED, clickData=Component.UNDEFINED, **kwargs):
self._prop_names = ['id', 'clickData', 'domainStyle', 'margin', 'mutationData', 'needleStyle', 'rangeSlider', 'xlabel', 'ylabel']
def __init__(self, id=Component.UNDEFINED, mutationData=Component.UNDEFINED, margin=Component.UNDEFINED, xlabel=Component.UNDEFINED, ylabel=Component.UNDEFINED, rangeSlider=Component.UNDEFINED, needleStyle=Component.UNDEFINED, domainStyle=Component.UNDEFINED, clickData=Component.UNDEFINED, width=Component.UNDEFINED, height=Component.UNDEFINED, **kwargs):
self._prop_names = ['id', 'clickData', 'domainStyle', 'height', 'margin', 'mutationData', 'needleStyle', 'rangeSlider', 'width', 'xlabel', 'ylabel']
self._type = 'NeedlePlot'
self._namespace = 'dash_bio'
self._valid_wildcard_attributes = []
self.available_properties = ['id', 'clickData', 'domainStyle', 'margin', 'mutationData', 'needleStyle', 'rangeSlider', 'xlabel', 'ylabel']
self.available_properties = ['id', 'clickData', 'domainStyle', 'height', 'margin', 'mutationData', 'needleStyle', 'rangeSlider', 'width', 'xlabel', 'ylabel']
self.available_wildcard_properties = []
_explicit_args = kwargs.pop('_explicit_args')
_locals = locals()
Expand Down
1 change: 1 addition & 0 deletions dash_bio/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
from .component_factory._manhattan import ManhattanPlot
from .component_factory._volcano import VolcanoPlot
from .component_factory._clustergram import Clustergram
from .component_factory._variant import VariantMap

if not hasattr(_dash, '__plotly_dash') and not hasattr(_dash, 'development'):
print('Dash was not successfully imported. '
Expand Down
2 changes: 1 addition & 1 deletion dash_bio/async-ideogram.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dash_bio/async-ideogram.js.map

Large diffs are not rendered by default.

16 changes: 8 additions & 8 deletions dash_bio/async-moleculeviewer3.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dash_bio/async-moleculeviewer3.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dash_bio/async-needle.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dash_bio/async-needle.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dash_bio/bundle.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dash_bio/bundle.js.map

Large diffs are not rendered by default.

Loading

0 comments on commit dc25279

Please sign in to comment.