Skip to content

Commit

Permalink
Update dashBio to v0.4.5 and enable asynchronous component loading (#457
Browse files Browse the repository at this point in the history
)
  • Loading branch information
rpkyle authored Jan 4, 2020
1 parent 0b72b82 commit 4ae055b
Show file tree
Hide file tree
Showing 31 changed files with 12,207 additions and 526 deletions.
13 changes: 7 additions & 6 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
Package: dashBio
Title: Dash components for bioinformatics
Version: 0.1.2
Authors @R: as.person(c(The Plotly Team <[email protected]>))
Description: Dash components for bioinformatics
Title: Open-source Bioinformatics Components for Dash
Version: 0.4.5
Description: A suite of components that makes it simpler to analyze and visualize bioinformatics data and interact with them in a Dash application.
Depends: R (>= 3.0.2), manhattanly
Imports: dash
Suggests:
Imports: dash
Suggests:
License: MIT + file LICENSE
URL: https://github.com/plotly/dash-bio
BugReports: https://github.com/plotly/dash-bio/issues
Encoding: UTF-8
LazyData: true
KeepSource: true
Author: The Plotly Team [aut]
Maintainer: Ryan Patrick Kyle <[email protected]>
RoxygenNote: 6.1.1
6 changes: 2 additions & 4 deletions NAMESPACE
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# AUTO GENERATED FILE - DO NOT EDIT
#AUTO GENERATED FILE - DO NOT EDIT

export(dashbioAlignmentChart)
export(dashbioAlignmentViewer)
export(dashbioCircos)
export(dashbioFornaContainer)
export(dashbioIdeogram)
export(dashbioMolecule2dViewer)
export(dashbioMolecule3dViewer)
Expand All @@ -13,5 +13,3 @@ export(dashbioSpeck)
export(dashbioManhattan)
export(dashbioVolcano)
import(manhattanly)

import(dash)
18 changes: 0 additions & 18 deletions R/dashbioAlignmentViewer.R

This file was deleted.

18 changes: 18 additions & 0 deletions R/dashbioFornaContainer.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# AUTO GENERATED FILE - DO NOT EDIT

dashbioFornaContainer <- function(id=NULL, height=NULL, width=NULL, sequences=NULL, nodeFillColor=NULL, colorScheme=NULL, customColors=NULL, allowPanningAndZooming=NULL) {

props <- list(id=id, height=height, width=width, sequences=sequences, nodeFillColor=nodeFillColor, colorScheme=colorScheme, customColors=customColors, allowPanningAndZooming=allowPanningAndZooming)
if (length(props) > 0) {
props <- props[!vapply(props, is.null, logical(1))]
}
component <- list(
props = props,
type = 'FornaContainer',
namespace = 'dash_bio',
propNames = c('id', 'height', 'width', 'sequences', 'nodeFillColor', 'colorScheme', 'customColors', 'allowPanningAndZooming'),
package = 'dashBio'
)

structure(component, class = c('dash_component', 'list'))
}
127 changes: 109 additions & 18 deletions R/internal.R
Original file line number Diff line number Diff line change
@@ -1,26 +1,117 @@
.dashBio_js_metadata <- function() {
deps_metadata <- list(`dash_bio` = structure(list(name = "dash_bio",
version = "0.1.2", src = list(href = NULL,
version = "0.4.5", src = list(href = NULL,
file = "deps"), meta = NULL,
script = 'async~alignment.js',
stylesheet = NULL, head = NULL, attachment = NULL, package = "dashBio",
all_files = FALSE, async = TRUE), class = "html_dependency"),
`dash_bio` = structure(list(name = "dash_bio",
version = "0.4.5", src = list(href = NULL,
file = "deps"), meta = NULL,
script = 'async~circos.js',
stylesheet = NULL, head = NULL, attachment = NULL, package = "dashBio",
all_files = FALSE, async = TRUE), class = "html_dependency"),
`dash_bio` = structure(list(name = "dash_bio",
version = "0.4.5", src = list(href = NULL,
file = "deps"), meta = NULL,
script = 'async~ideogram.js',
stylesheet = NULL, head = NULL, attachment = NULL, package = "dashBio",
all_files = FALSE, async = TRUE), class = "html_dependency"),
`dash_bio` = structure(list(name = "dash_bio",
version = "0.4.5", src = list(href = NULL,
file = "deps"), meta = NULL,
script = 'async~moleculeviewer2.js',
stylesheet = NULL, head = NULL, attachment = NULL, package = "dashBio",
all_files = FALSE, async = TRUE), class = "html_dependency"),
`dash_bio` = structure(list(name = "dash_bio",
version = "0.4.5", src = list(href = NULL,
file = "deps"), meta = NULL,
script = 'async~moleculeviewer3.js',
stylesheet = NULL, head = NULL, attachment = NULL, package = "dashBio",
all_files = FALSE, async = TRUE), class = "html_dependency"),
`dash_bio` = structure(list(name = "dash_bio",
version = "0.4.5", src = list(href = NULL,
file = "deps"), meta = NULL,
script = 'async~needle.js',
stylesheet = NULL, head = NULL, attachment = NULL, package = "dashBio",
all_files = FALSE, async = TRUE), class = "html_dependency"),
`dash_bio` = structure(list(name = "dash_bio",
version = "0.4.5", src = list(href = NULL,
file = "deps"), meta = NULL,
script = 'async~onco.js',
stylesheet = NULL, head = NULL, attachment = NULL, package = "dashBio",
all_files = FALSE, async = TRUE), class = "html_dependency"),
`dash_bio` = structure(list(name = "dash_bio",
version = "0.4.5", src = list(href = NULL,
file = "deps"), meta = NULL,
script = 'async~sequence.js',
stylesheet = NULL, head = NULL, attachment = NULL, package = "dashBio",
all_files = FALSE, async = TRUE), class = "html_dependency"),
`dash_bio` = structure(list(name = "dash_bio",
version = "0.4.5", src = list(href = NULL,
file = "deps"), meta = NULL,
script = 'async~speck.js',
stylesheet = NULL, head = NULL, attachment = NULL, package = "dashBio",
all_files = FALSE, async = TRUE), class = "html_dependency"),
`dash_bio` = structure(list(name = "dash_bio",
version = "0.4.5", src = list(href = NULL,
file = "deps"), meta = NULL,
script = 'async~alignment.js.map',
stylesheet = NULL, head = NULL, attachment = NULL, package = "dashBio",
all_files = FALSE, dynamic = TRUE), class = "html_dependency"),
`dash_bio` = structure(list(name = "dash_bio",
version = "0.4.5", src = list(href = NULL,
file = "deps"), meta = NULL,
script = 'async~circos.js.map',
stylesheet = NULL, head = NULL, attachment = NULL, package = "dashBio",
all_files = FALSE, dynamic = TRUE), class = "html_dependency"),
`dash_bio` = structure(list(name = "dash_bio",
version = "0.4.5", src = list(href = NULL,
file = "deps"), meta = NULL,
script = 'async~ideogram.js.map',
stylesheet = NULL, head = NULL, attachment = NULL, package = "dashBio",
all_files = FALSE, dynamic = TRUE), class = "html_dependency"),
`dash_bio` = structure(list(name = "dash_bio",
version = "0.4.5", src = list(href = NULL,
file = "deps"), meta = NULL,
script = 'async~moleculeviewer2.js.map',
stylesheet = NULL, head = NULL, attachment = NULL, package = "dashBio",
all_files = FALSE, dynamic = TRUE), class = "html_dependency"),
`dash_bio` = structure(list(name = "dash_bio",
version = "0.4.5", src = list(href = NULL,
file = "deps"), meta = NULL,
script = 'async~moleculeviewer3.js.map',
stylesheet = NULL, head = NULL, attachment = NULL, package = "dashBio",
all_files = FALSE, dynamic = TRUE), class = "html_dependency"),
`dash_bio` = structure(list(name = "dash_bio",
version = "0.4.5", src = list(href = NULL,
file = "deps"), meta = NULL,
script = 'async~needle.js.map',
stylesheet = NULL, head = NULL, attachment = NULL, package = "dashBio",
all_files = FALSE, dynamic = TRUE), class = "html_dependency"),
`dash_bio` = structure(list(name = "dash_bio",
version = "0.4.5", src = list(href = NULL,
file = "deps"), meta = NULL,
script = 'async~onco.js.map',
stylesheet = NULL, head = NULL, attachment = NULL, package = "dashBio",
all_files = FALSE, dynamic = TRUE), class = "html_dependency"),
`dash_bio` = structure(list(name = "dash_bio",
version = "0.4.5", src = list(href = NULL,
file = "deps"), meta = NULL,
script = 'async~sequence.js.map',
stylesheet = NULL, head = NULL, attachment = NULL, package = "dashBio",
all_files = FALSE, dynamic = TRUE), class = "html_dependency"),
`dash_bio` = structure(list(name = "dash_bio",
version = "0.4.5", src = list(href = NULL,
file = "deps"), meta = NULL,
script = 'async~speck.js.map',
stylesheet = NULL, head = NULL, attachment = NULL, package = "dashBio",
all_files = FALSE, dynamic = TRUE), class = "html_dependency"),
`dash_bio` = structure(list(name = "dash_bio",
version = "0.4.5", src = list(href = NULL,
file = "deps"), meta = NULL,
script = 'bundle.js',
stylesheet = NULL, head = NULL, attachment = NULL, package = "dashBio",
all_files = FALSE), class = "html_dependency"))
return(deps_metadata)
}

dash_assert_valid_wildcards <- function (attrib = list("data", "aria"), ...)
{
args <- list(...)
validation_results <- lapply(names(args), function(x) {
grepl(paste0("^", attrib, "-[a-zA-Z0-9]{1,}$", collapse = "|"),
x)
})
if (FALSE %in% validation_results) {
stop(sprintf("The following wildcards are not currently valid in Dash: '%s'",
paste(names(args)[grepl(FALSE, unlist(validation_results))],
collapse = ", ")), call. = FALSE)
}
else {
return(args)
}
}
6 changes: 3 additions & 3 deletions dash-info.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
pkg_help_description: >
Dash Bio is a suite of bioinformatics components that make it simpler to analyze and visualize bioinformatics data and interact with them in a Dash application.
pkg_help_title: >
pkg_help_description: >-
A suite of components that makes it simpler to analyze and visualize bioinformatics data and interact with them in a Dash application.
pkg_help_title: >-
Open-source Bioinformatics Components for Dash
r_examples:
Expand Down
1,101 changes: 1,101 additions & 0 deletions inst/deps/async~alignment.js

Large diffs are not rendered by default.

37 changes: 37 additions & 0 deletions inst/deps/async~circos.js

Large diffs are not rendered by default.

26 changes: 26 additions & 0 deletions inst/deps/async~ideogram.js

Large diffs are not rendered by default.

Loading

0 comments on commit 4ae055b

Please sign in to comment.