-
-
Notifications
You must be signed in to change notification settings - Fork 193
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* tests work for hard coded reference * tracks can be loaded in, tests passing * tests all pass, demos in progress * clean up * fixed rendering bug in pileup.js * data for RNA-seq demo * added pileup demo image * tests pass * fixed css and cleaned unused styles * demo done * revert dev build * deleted unused files * rebuild async files after merge * review comments * added option to modify visualization options * Apply suggestions from code review Co-authored-by: HammadTheOne <[email protected]> * small documentation fixes * Apply suggestions from code review Co-authored-by: Alex Johnson <[email protected]> * Linting fixes * Fixed layout_helper linting * Rebuilding package * Updated CHANGELOG * Added shared chunk for webpack deps with IGV and Pileup Co-authored-by: HammadTheOne <[email protected]> Co-authored-by: Alex Johnson <[email protected]>
- Loading branch information
1 parent
43faebe
commit 9e5da85
Showing
67 changed files
with
3,697 additions
and
140 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 | ||
|
||
dashbioPileup <- function(id=NULL, style=NULL, className=NULL, range=NULL, reference=NULL, tracks=NULL) { | ||
|
||
props <- list(id=id, style=style, className=className, range=range, reference=reference, tracks=tracks) | ||
if (length(props) > 0) { | ||
props <- props[!vapply(props, is.null, logical(1))] | ||
} | ||
component <- list( | ||
props = props, | ||
type = 'Pileup', | ||
namespace = 'dash_bio', | ||
propNames = c('id', 'style', 'className', 'range', 'reference', 'tracks'), | ||
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,62 @@ | ||
# AUTO GENERATED FILE - DO NOT EDIT | ||
|
||
from dash.development.base_component import Component, _explicitize_args | ||
|
||
|
||
class Pileup(Component): | ||
"""A Pileup component. | ||
The Pileup component is a genome visualization component | ||
developed by the the Hammerlab. It uses an | ||
example integration of pileup.js and React (https://www.npmjs.com/package/pileup). | ||
Keyword arguments: | ||
- id (string; optional): 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. | ||
- style (dict; optional): Generic style overrides on the plot div | ||
- className (string; optional): className of the component div. | ||
- range (dict; optional): Object defining genomic location. | ||
Of the format: {contig: 'chr17', start: 7512384, stop: 7512544}. range has the following type: dict containing keys 'contig', 'start', 'stop'. | ||
Those keys have the following types: | ||
- contig (string; optional): Name of contig to display. (ie. chr17) | ||
- start (number; optional): Start location to display | ||
- stop (number; optional): Stop location to display | ||
- reference (dict; optional): Object defining genomic reference. reference has the following type: dict containing keys 'label', 'url'. | ||
Those keys have the following types: | ||
- label (string; optional): Label to display by reference | ||
- url (string; optional): Url of 2bit file. | ||
https://genome.ucsc.edu/goldenPath/help/twoBit.html | ||
- tracks (dict; optional): Array of configuration objects defining tracks initially displayed when app launches. | ||
See https://github.com/hammerlab/pileup.js#usage. tracks has the following type: list of dicts containing keys 'viz', 'vizOptions', 'label', 'source', 'sourceOptions'. | ||
Those keys have the following types: | ||
- viz (optional): Name of visualization. Must be one of | ||
(coverage, genome, genes, features, idiogram, location, scale, | ||
variants, genotypes, or pileup) | ||
See https://github.com/hammerlab/pileup.js/blob/master/src/main/pileup.js | ||
- vizOptions (optional): Options that define viz details. | ||
Options depend on the viz type selected. | ||
- label (string; optional): Label to display by track | ||
- source (optional): Data source to visualize. Must be one of | ||
(bam, vcf, alignmentJson, variantJson, featureJson, idiogramJson, cytoBand, | ||
vcf, twoBit, bigBed, GAReadAlignment, GAVariant, GAFeature, GAGene) | ||
See https://github.com/hammerlab/pileup.js/blob/master/src/main/pileup.js | ||
- sourceOptions (optional): Options that define data source. | ||
Options depend on the source selected.""" | ||
@_explicitize_args | ||
def __init__(self, id=Component.UNDEFINED, style=Component.UNDEFINED, className=Component.UNDEFINED, range=Component.UNDEFINED, reference=Component.UNDEFINED, tracks=Component.UNDEFINED, **kwargs): | ||
self._prop_names = ['id', 'style', 'className', 'range', 'reference', 'tracks'] | ||
self._type = 'Pileup' | ||
self._namespace = 'dash_bio' | ||
self._valid_wildcard_attributes = [] | ||
self.available_properties = ['id', 'style', 'className', 'range', 'reference', 'tracks'] | ||
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(Pileup, 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
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.
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.