Skip to content

Commit

Permalink
Merge pull request #425 from plotly/remove-alignmentviewer
Browse files Browse the repository at this point in the history
Remove alignmentviewer
  • Loading branch information
Shammamah Hossain authored Oct 18, 2019
2 parents 729402c + 80cd9a5 commit be78758
Show file tree
Hide file tree
Showing 14 changed files with 33 additions and 942 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Changelog

## [Unreleased]


## [0.1.5]

### Fixed
Expand Down Expand Up @@ -30,6 +33,11 @@
* Added re-rendering for SequenceViewer upon the `coverageClicked`
prop being updated.

### Removed

* Removed AlignmentViewer component
([#414](https://github.com/plotly/dash-bio/issues/414))

## [0.1.4] - 2019-08-02

### Changed
Expand Down
13 changes: 5 additions & 8 deletions dash_bio/AlignmentChart.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,15 @@

class AlignmentChart(Component):
"""An AlignmentChart component.
The Alignment Viewer (MSA) component is used to align multiple genomic
The Alignment Chart (MSA) component is used to align multiple genomic
or proteomic sequences from a FASTA or Clustal file. Among its
extensive set of features, the multiple sequence alignment viewer
extensive set of features, the multiple sequence alignment chart
can display multiple subplots showing gap and conservation info,
alongside industry standard colorscale support and consensus sequence.
No matter what size your alignment is, Aligment Viewer is able to display
No matter what size your alignment is, Alignment Chart is able to display
your genes or proteins snappily thanks to the underlying WebGL architecture
powering the component. You can quickly scroll through your long sequence
with a slider or a heatmap overview.
Note that the AlignmentChart only returns a chart of the sequence, while
AlignmentViewer has integrated controls for colorscale, heatmaps, and subplots
allowing the user to interactively control their sequences.
Read more about the component here:
https://github.com/plotly/react-alignment-viewer
Expand Down Expand Up @@ -64,12 +61,12 @@ class AlignmentChart(Component):
No effect if not both gap and conservation are shown.
- showconsensus (boolean; default True): Displays toggling the consensus sequence, where each nucleotide in the
consensus sequence is the argmax of its distribution at a set nucleotide.
- tilewidth (number; default 16): Sets how many pixels each nucleotide/amino acid on the Alignment Viewer
- tilewidth (number; default 16): Sets how many pixels each nucleotide/amino acid on the Alignment Chart
takes up horizontally. The total number of tiles (numtiles) seen
horizontally is automatically determined by rounding
the Viewer width divided by the tile width.
the Viewwer width divided by the tile witdth.
- tileheight (number; default 16): Sets how many pixels each nucleotide/amino acid on the Alignment Viewer
- tileheight (number; default 16): Sets how many pixels each nucleotide/amino acid on the Alignment Chart
takes up vertically.
If enabled, set height dynamically.
- overview (a value equal to: 'heatmap', 'slider', 'none'; default 'heatmap'): Toggles whether the overview should be a heatmap, a slider, or none.
Expand Down
114 changes: 0 additions & 114 deletions dash_bio/AlignmentViewer.py

This file was deleted.

8 changes: 2 additions & 6 deletions dash_bio/SequenceViewer.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,16 +33,12 @@ class SequenceViewer(Component):
- sequenceMaxHeight (string; default '400px'): The maximum height of the sequence.
- badge (boolean; default True): The option of whether or not to display a badge showing the
amino acid count at the top of the component beside the title.
- selection (dict; optional): A highlighted section of the sequence; the color of the highlight
- selection (optional): A highlighted section of the sequence; the color of the highlight
can also be defined. Takes a list of format [min, max, color] where
min is a number that represents the starting index of the selection,
max is a number that represents the stopping index of the selection,
and color is a string that defines the highlight color.
Cannot be used at the same time as coverage. selection has the following type: list of dicts containing keys 'low', 'high', 'color'.
Those keys have the following types:
- low (number; optional)
- high (number; optional)
- color (string; optional)
Cannot be used at the same time as coverage.
- coverage (dict; optional): A coverage of the entire sequence; each section of the sequence
can have its own text color, background color, tooltip (on hover),
and an optional underscore. The props start and end represent the
Expand Down
2 changes: 0 additions & 2 deletions dash_bio/_imports_.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
from .AlignmentChart import AlignmentChart
from .AlignmentViewer import AlignmentViewer
from .Circos import Circos
from .Ideogram import Ideogram
from .Molecule2dViewer import Molecule2dViewer
Expand All @@ -11,7 +10,6 @@

__all__ = [
"AlignmentChart",
"AlignmentViewer",
"Circos",
"Ideogram",
"Molecule2dViewer",
Expand Down
10 changes: 5 additions & 5 deletions dash_bio/bundle.js

Large diffs are not rendered by default.

Loading

0 comments on commit be78758

Please sign in to comment.