Skip to content

Commit dc25279

Browse files
authored
Add VariantMap Component (#567)
* 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
1 parent 56a0f60 commit dc25279

40 files changed

+2625
-40
lines changed

.circleci/config.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,11 +96,11 @@ jobs:
9696
9797
- run:
9898
name: Install requirements
99-
no_output_timeout: 20m
10099
command: |
101100
. venv/bin/activate
102101
pip install --upgrade pip
103102
pip install --progress-bar off -r tests/requirements.txt --quiet
103+
no_output_timeout: 20m
104104

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

143144
- run:
144145
name: Run unit tests

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
* [#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)).
88

99
### Added
10+
* [#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).
1011
* [#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)).
1112

1213
## [0.7.1] - 2021-07-26

R/dashbioNeedlePlot.R

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
# AUTO GENERATED FILE - DO NOT EDIT
22

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

5-
props <- list(id=id, clickData=clickData, domainStyle=domainStyle, margin=margin, mutationData=mutationData, needleStyle=needleStyle, rangeSlider=rangeSlider, xlabel=xlabel, ylabel=ylabel)
5+
props <- list(id=id, clickData=clickData, domainStyle=domainStyle, height=height, margin=margin, mutationData=mutationData, needleStyle=needleStyle, rangeSlider=rangeSlider, width=width, xlabel=xlabel, ylabel=ylabel)
66
if (length(props) > 0) {
77
props <- props[!vapply(props, is.null, logical(1))]
88
}
99
component <- list(
1010
props = props,
1111
type = 'NeedlePlot',
1212
namespace = 'dash_bio',
13-
propNames = c('id', 'clickData', 'domainStyle', 'margin', 'mutationData', 'needleStyle', 'rangeSlider', 'xlabel', 'ylabel'),
13+
propNames = c('id', 'clickData', 'domainStyle', 'height', 'margin', 'mutationData', 'needleStyle', 'rangeSlider', 'width', 'xlabel', 'ylabel'),
1414
package = 'dashBio'
1515
)
1616

dash_bio/NeedlePlot.py

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,9 @@ class NeedlePlot(Component):
3535
Sets the angle at which the domain annotation text is drawn
3636
with respect to the horizontal.
3737
38+
- height (number | string; default 800):
39+
Height of the Plot.
40+
3841
- margin (dict; default {t: 100, l: 40, r: 0, b: 40}):
3942
Margins of the plot.
4043
@@ -71,18 +74,21 @@ class NeedlePlot(Component):
7174
- rangeSlider (boolean; default False):
7275
If True, enables a rangeslider for the x-axis.
7376
77+
- width (number | string; default 700):
78+
Width of the Plot.
79+
7480
- xlabel (string; optional):
7581
Title of the x-axis.
7682
7783
- ylabel (string; optional):
7884
Title of the y-axis."""
7985
@_explicitize_args
80-
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):
81-
self._prop_names = ['id', 'clickData', 'domainStyle', 'margin', 'mutationData', 'needleStyle', 'rangeSlider', 'xlabel', 'ylabel']
86+
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):
87+
self._prop_names = ['id', 'clickData', 'domainStyle', 'height', 'margin', 'mutationData', 'needleStyle', 'rangeSlider', 'width', 'xlabel', 'ylabel']
8288
self._type = 'NeedlePlot'
8389
self._namespace = 'dash_bio'
8490
self._valid_wildcard_attributes = []
85-
self.available_properties = ['id', 'clickData', 'domainStyle', 'margin', 'mutationData', 'needleStyle', 'rangeSlider', 'xlabel', 'ylabel']
91+
self.available_properties = ['id', 'clickData', 'domainStyle', 'height', 'margin', 'mutationData', 'needleStyle', 'rangeSlider', 'width', 'xlabel', 'ylabel']
8692
self.available_wildcard_properties = []
8793
_explicit_args = kwargs.pop('_explicit_args')
8894
_locals = locals()

dash_bio/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
from .component_factory._manhattan import ManhattanPlot
1010
from .component_factory._volcano import VolcanoPlot
1111
from .component_factory._clustergram import Clustergram
12+
from .component_factory._variant import VariantMap
1213

1314
if not hasattr(_dash, '__plotly_dash') and not hasattr(_dash, 'development'):
1415
print('Dash was not successfully imported. '

dash_bio/async-ideogram.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dash_bio/async-ideogram.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dash_bio/async-moleculeviewer3.js

Lines changed: 8 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dash_bio/async-moleculeviewer3.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dash_bio/async-needle.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)