Skip to content

Commit 9a99db1

Browse files
authored
Merge pull request #496 from IvoLeist/add-dash-ngl
Added dash-ngl component.
2 parents 81bb6fa + 41e3be8 commit 9a99db1

File tree

90 files changed

+207896
-11839
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

90 files changed

+207896
-11839
lines changed

.Rbuildignore

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,11 @@ lib/
77
.builderrc
88
.eslintrc
99
.npmignore
10+
.editorconfig
11+
.eslintignore
12+
.prettierrc
13+
.circleci
14+
.github
1015

1116
# demo folder has special meaning in R
1217
# this should hopefully make it still
@@ -15,14 +20,15 @@ demo/.*\.js
1520
demo/.*\.html
1621
demo/.*\.css
1722

18-
# ignore python files/folders
23+
# ignore Python files/folders
24+
setup.py
25+
usage.py
1926
setup.py
20-
index.py
21-
config.py
2227
requirements.txt
2328
MANIFEST.in
2429
CHANGELOG.md
25-
tests/
26-
.pylintrc
30+
test/
31+
# CRAN has weird LICENSE requirements
32+
LICENSE.txt
2733
^.*\.Rproj$
2834
^\.Rproj\.user$

.circleci/config.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434
. venv/bin/activate
3535
git clone --depth 1 https://github.com/plotly/dash.git dash-main
3636
cd dash-main && pip install -e .[dev,testing]
37-
cd dash-renderer && npm run build && pip install -e . && cd ../..
37+
cd dash-renderer && npm ci && npm run build && pip install -e . && cd ../..
3838
npm run build
3939
4040
- run:
@@ -84,7 +84,7 @@ jobs:
8484
. venv/bin/activate
8585
git clone --depth 1 https://github.com/plotly/dash.git dash-main
8686
cd dash-main && pip install -e .[dev,testing]
87-
cd dash-renderer && npm run build && pip install -e . && cd ../..
87+
cd dash-renderer && npm ci && npm run build && pip install -e . && cd ../..
8888
8989
- run:
9090
name: Run pylint

.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ venv
3131
*.pyc
3232

3333
# builds
34+
dash-main/
3435
dash_bio.egg-info
3536
dist
3637
*__pycache__*
@@ -41,3 +42,7 @@ __pycache__/
4142
venv/
4243

4344
.env
45+
46+
# editors
47+
.vscode/
48+
.idea/

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Changelog
22

3+
## [0.5.0] - 2020-10-05
4+
### Added
5+
* [#496](https://github.com/plotly/dash-bio/pull/496) Added Dash-NGL-Moleculeviewer component.
6+
37
## [0.4.8] - 2020-03-16
48
### Changed
59
* [#489](https://github.com/plotly/dash-bio/pull/489) Renamed async modules with hyphen `-` instead of tilde `~`

CONTRIBUTING.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -154,12 +154,14 @@ To run integration tests locally on, say, Google Chrome:
154154
python -m venv venv
155155
. venv/bin/activate
156156
pip install -r tests/requirements.txt
157-
pip install dash[testing]
158-
pytest tests/integration
157+
pip install dash[testing] #if you use zsh run: pip install dash\[testing\]
158+
pip install dash-bio #if pytest fails try: pip3 install dash-bio
159+
pytest tests/integration #for testing all apps
160+
pytest tests/integration/test_yourNewApp #for testing only one app
159161
```
160162
Do not worry if you get errors running this last command. You will have to
161-
download a Chrome driver, install it, and add its path. Follow what the error
162-
messages point to (this will be platform-specific).
163+
download a Chrome driver (Linux:chromium), install it, and add its path.
164+
Follow what the error messages point to (this will be platform-specific).
163165

164166
To write more integration tests, please read this
165167
[tutorial](https://dash.plotly.com/testing).

DESCRIPTION

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,14 @@
11
Package: dashBio
22
Title: Open-source Bioinformatics Components for Dash
3-
Version: 0.4.5
3+
Version: 0.5.0
44
Description: A suite of components that makes it simpler to analyze and visualize bioinformatics data and interact with them in a Dash application.
55
Depends: R (>= 3.0.2), manhattanly
6-
Imports: dash
6+
Imports: dash
77
Suggests:
8+
Authors@R: person("The", "Team", role = c("aut", "cre"), email = "[email protected]")
89
License: MIT + file LICENSE
910
URL: https://github.com/plotly/dash-bio
1011
BugReports: https://github.com/plotly/dash-bio/issues
1112
Encoding: UTF-8
1213
LazyData: true
1314
KeepSource: true
14-
Author: The Plotly Team [aut]
15-
Maintainer: Ryan Patrick Kyle <[email protected]>
16-
RoxygenNote: 6.1.1

NAMESPACE

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

33
export(dashbioAlignmentChart)
44
export(dashbioCircos)
@@ -7,9 +7,12 @@ export(dashbioIdeogram)
77
export(dashbioMolecule2dViewer)
88
export(dashbioMolecule3dViewer)
99
export(dashbioNeedlePlot)
10+
export(dashbioNglMoleculeViewer)
1011
export(dashbioOncoPrint)
1112
export(dashbioSequenceViewer)
1213
export(dashbioSpeck)
13-
export(dashbioManhattan)
1414
export(dashbioVolcano)
15+
export(dashbioManhattan)
1516
import(manhattanly)
17+
18+
import(dash)

R/dashbioNglMoleculeViewer.R

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# AUTO GENERATED FILE - DO NOT EDIT
2+
3+
dashbioNglMoleculeViewer <- function(id=NULL, width=NULL, height=NULL, stageParameters=NULL, imageParameters=NULL, downloadImage=NULL, pdbString=NULL, data=NULL, molStyles=NULL) {
4+
5+
props <- list(id=id, width=width, height=height, stageParameters=stageParameters, imageParameters=imageParameters, downloadImage=downloadImage, pdbString=pdbString, data=data, molStyles=molStyles)
6+
if (length(props) > 0) {
7+
props <- props[!vapply(props, is.null, logical(1))]
8+
}
9+
component <- list(
10+
props = props,
11+
type = 'NglMoleculeViewer',
12+
namespace = 'dash_bio',
13+
propNames = c('id', 'width', 'height', 'stageParameters', 'imageParameters', 'downloadImage', 'pdbString', 'data', 'molStyles'),
14+
package = 'dashBio'
15+
)
16+
17+
structure(component, class = c('dash_component', 'list'))
18+
}

R/internal.R

Lines changed: 49 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -1,114 +1,126 @@
11
.dashBio_js_metadata <- function() {
22
deps_metadata <- list(`dash_bio` = structure(list(name = "dash_bio",
3-
version = "0.4.5", src = list(href = NULL,
3+
version = "0.5.0", src = list(href = NULL,
44
file = "deps"), meta = NULL,
5-
script = 'async~alignment.js',
5+
script = 'async-alignment.js',
66
stylesheet = NULL, head = NULL, attachment = NULL, package = "dashBio",
77
all_files = FALSE, async = TRUE), class = "html_dependency"),
88
`dash_bio` = structure(list(name = "dash_bio",
9-
version = "0.4.5", src = list(href = NULL,
9+
version = "0.5.0", src = list(href = NULL,
1010
file = "deps"), meta = NULL,
11-
script = 'async~circos.js',
11+
script = 'async-circos.js',
1212
stylesheet = NULL, head = NULL, attachment = NULL, package = "dashBio",
1313
all_files = FALSE, async = TRUE), class = "html_dependency"),
1414
`dash_bio` = structure(list(name = "dash_bio",
15-
version = "0.4.5", src = list(href = NULL,
15+
version = "0.5.0", src = list(href = NULL,
1616
file = "deps"), meta = NULL,
17-
script = 'async~ideogram.js',
17+
script = 'async-ideogram.js',
1818
stylesheet = NULL, head = NULL, attachment = NULL, package = "dashBio",
1919
all_files = FALSE, async = TRUE), class = "html_dependency"),
2020
`dash_bio` = structure(list(name = "dash_bio",
21-
version = "0.4.5", src = list(href = NULL,
21+
version = "0.5.0", src = list(href = NULL,
2222
file = "deps"), meta = NULL,
23-
script = 'async~moleculeviewer2.js',
23+
script = 'async-moleculeviewer2.js',
2424
stylesheet = NULL, head = NULL, attachment = NULL, package = "dashBio",
2525
all_files = FALSE, async = TRUE), class = "html_dependency"),
2626
`dash_bio` = structure(list(name = "dash_bio",
27-
version = "0.4.5", src = list(href = NULL,
27+
version = "0.5.0", src = list(href = NULL,
2828
file = "deps"), meta = NULL,
29-
script = 'async~moleculeviewer3.js',
29+
script = 'async-moleculeviewer3.js',
3030
stylesheet = NULL, head = NULL, attachment = NULL, package = "dashBio",
3131
all_files = FALSE, async = TRUE), class = "html_dependency"),
3232
`dash_bio` = structure(list(name = "dash_bio",
33-
version = "0.4.5", src = list(href = NULL,
33+
version = "0.5.0", src = list(href = NULL,
3434
file = "deps"), meta = NULL,
35-
script = 'async~needle.js',
35+
script = 'async-needle.js',
3636
stylesheet = NULL, head = NULL, attachment = NULL, package = "dashBio",
3737
all_files = FALSE, async = TRUE), class = "html_dependency"),
3838
`dash_bio` = structure(list(name = "dash_bio",
39-
version = "0.4.5", src = list(href = NULL,
39+
version = "0.5.0", src = list(href = NULL,
4040
file = "deps"), meta = NULL,
41-
script = 'async~onco.js',
41+
script = 'async-nglmoleculeviewer.js',
4242
stylesheet = NULL, head = NULL, attachment = NULL, package = "dashBio",
4343
all_files = FALSE, async = TRUE), class = "html_dependency"),
4444
`dash_bio` = structure(list(name = "dash_bio",
45-
version = "0.4.5", src = list(href = NULL,
45+
version = "0.5.0", src = list(href = NULL,
4646
file = "deps"), meta = NULL,
47-
script = 'async~sequence.js',
47+
script = 'async-onco.js',
4848
stylesheet = NULL, head = NULL, attachment = NULL, package = "dashBio",
4949
all_files = FALSE, async = TRUE), class = "html_dependency"),
5050
`dash_bio` = structure(list(name = "dash_bio",
51-
version = "0.4.5", src = list(href = NULL,
51+
version = "0.5.0", src = list(href = NULL,
5252
file = "deps"), meta = NULL,
53-
script = 'async~speck.js',
53+
script = 'async-sequence.js',
5454
stylesheet = NULL, head = NULL, attachment = NULL, package = "dashBio",
5555
all_files = FALSE, async = TRUE), class = "html_dependency"),
5656
`dash_bio` = structure(list(name = "dash_bio",
57-
version = "0.4.5", src = list(href = NULL,
57+
version = "0.5.0", src = list(href = NULL,
5858
file = "deps"), meta = NULL,
59-
script = 'async~alignment.js.map',
59+
script = 'async-speck.js',
60+
stylesheet = NULL, head = NULL, attachment = NULL, package = "dashBio",
61+
all_files = FALSE, async = TRUE), class = "html_dependency"),
62+
`dash_bio` = structure(list(name = "dash_bio",
63+
version = "0.5.0", src = list(href = NULL,
64+
file = "deps"), meta = NULL,
65+
script = 'async-alignment.js.map',
66+
stylesheet = NULL, head = NULL, attachment = NULL, package = "dashBio",
67+
all_files = FALSE, dynamic = TRUE), class = "html_dependency"),
68+
`dash_bio` = structure(list(name = "dash_bio",
69+
version = "0.5.0", src = list(href = NULL,
70+
file = "deps"), meta = NULL,
71+
script = 'async-circos.js.map',
6072
stylesheet = NULL, head = NULL, attachment = NULL, package = "dashBio",
6173
all_files = FALSE, dynamic = TRUE), class = "html_dependency"),
6274
`dash_bio` = structure(list(name = "dash_bio",
63-
version = "0.4.5", src = list(href = NULL,
75+
version = "0.5.0", src = list(href = NULL,
6476
file = "deps"), meta = NULL,
65-
script = 'async~circos.js.map',
77+
script = 'async-ideogram.js.map',
6678
stylesheet = NULL, head = NULL, attachment = NULL, package = "dashBio",
6779
all_files = FALSE, dynamic = TRUE), class = "html_dependency"),
6880
`dash_bio` = structure(list(name = "dash_bio",
69-
version = "0.4.5", src = list(href = NULL,
81+
version = "0.5.0", src = list(href = NULL,
7082
file = "deps"), meta = NULL,
71-
script = 'async~ideogram.js.map',
83+
script = 'async-moleculeviewer2.js.map',
7284
stylesheet = NULL, head = NULL, attachment = NULL, package = "dashBio",
7385
all_files = FALSE, dynamic = TRUE), class = "html_dependency"),
7486
`dash_bio` = structure(list(name = "dash_bio",
75-
version = "0.4.5", src = list(href = NULL,
87+
version = "0.5.0", src = list(href = NULL,
7688
file = "deps"), meta = NULL,
77-
script = 'async~moleculeviewer2.js.map',
89+
script = 'async-moleculeviewer3.js.map',
7890
stylesheet = NULL, head = NULL, attachment = NULL, package = "dashBio",
7991
all_files = FALSE, dynamic = TRUE), class = "html_dependency"),
8092
`dash_bio` = structure(list(name = "dash_bio",
81-
version = "0.4.5", src = list(href = NULL,
93+
version = "0.5.0", src = list(href = NULL,
8294
file = "deps"), meta = NULL,
83-
script = 'async~moleculeviewer3.js.map',
95+
script = 'async-needle.js.map',
8496
stylesheet = NULL, head = NULL, attachment = NULL, package = "dashBio",
8597
all_files = FALSE, dynamic = TRUE), class = "html_dependency"),
8698
`dash_bio` = structure(list(name = "dash_bio",
87-
version = "0.4.5", src = list(href = NULL,
99+
version = "0.5.0", src = list(href = NULL,
88100
file = "deps"), meta = NULL,
89-
script = 'async~needle.js.map',
101+
script = 'async-nglmoleculeviewer.js.map',
90102
stylesheet = NULL, head = NULL, attachment = NULL, package = "dashBio",
91103
all_files = FALSE, dynamic = TRUE), class = "html_dependency"),
92104
`dash_bio` = structure(list(name = "dash_bio",
93-
version = "0.4.5", src = list(href = NULL,
105+
version = "0.5.0", src = list(href = NULL,
94106
file = "deps"), meta = NULL,
95-
script = 'async~onco.js.map',
107+
script = 'async-onco.js.map',
96108
stylesheet = NULL, head = NULL, attachment = NULL, package = "dashBio",
97109
all_files = FALSE, dynamic = TRUE), class = "html_dependency"),
98110
`dash_bio` = structure(list(name = "dash_bio",
99-
version = "0.4.5", src = list(href = NULL,
111+
version = "0.5.0", src = list(href = NULL,
100112
file = "deps"), meta = NULL,
101-
script = 'async~sequence.js.map',
113+
script = 'async-sequence.js.map',
102114
stylesheet = NULL, head = NULL, attachment = NULL, package = "dashBio",
103115
all_files = FALSE, dynamic = TRUE), class = "html_dependency"),
104116
`dash_bio` = structure(list(name = "dash_bio",
105-
version = "0.4.5", src = list(href = NULL,
117+
version = "0.5.0", src = list(href = NULL,
106118
file = "deps"), meta = NULL,
107-
script = 'async~speck.js.map',
119+
script = 'async-speck.js.map',
108120
stylesheet = NULL, head = NULL, attachment = NULL, package = "dashBio",
109121
all_files = FALSE, dynamic = TRUE), class = "html_dependency"),
110122
`dash_bio` = structure(list(name = "dash_bio",
111-
version = "0.4.5", src = list(href = NULL,
123+
version = "0.5.0", src = list(href = NULL,
112124
file = "deps"), meta = NULL,
113125
script = 'bundle.js',
114126
stylesheet = NULL, head = NULL, attachment = NULL, package = "dashBio",

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ The Dash Bio components each fall into one of three categories:
4242
- Dash Mol2D
4343
- Dash Mol3D
4444
- Dash Speck
45+
- Dash Ngl (experimental)
4546

4647
## Dash
4748

0 commit comments

Comments
 (0)