@nightingale-elements/nightingale-msa
Advanced tools
Comparing version 4.0.0 to 4.0.3-gamma.0
@@ -17,2 +17,3 @@ import { PropertyValues } from "lit"; | ||
colorScheme: string; | ||
overlayConservation: boolean; | ||
props: SequenceViewerComponentProps; | ||
@@ -19,0 +20,0 @@ private _position?; |
@@ -12,2 +12,3 @@ import "./components/Canvas/SequenceViewer"; | ||
sampleSize: number; | ||
overlayConservtion: boolean; | ||
worker: Worker; | ||
@@ -14,0 +15,0 @@ private sequenceViewer?; |
{ | ||
"name": "@nightingale-elements/nightingale-msa", | ||
"version": "4.0.0", | ||
"version": "4.0.3-gamma.0", | ||
"files": [ | ||
@@ -39,3 +39,3 @@ "dist", | ||
}, | ||
"gitHead": "39084d4156a720f320867f01b6b91d3d7dddf7d0" | ||
"gitHead": "9c0568a331fb69161fedc5c633cb09381cff8730" | ||
} |
@@ -28,18 +28,22 @@ # nightingale-msa | ||
#### `label-width: (default: 0)` | ||
#### `label-width: number(default: 0)` | ||
Width reserved to render the labels of the sequences. If the value is `0` the labels won't be rendered. | ||
#### `tile-height: (default: 20)` | ||
#### `tile-height: number (default: 20)` | ||
Height of each base (AKA tile). | ||
#### `active-label: (default: "")` | ||
#### `active-label: string (default: "")` | ||
Label to highlight as if selected | ||
#### `conservation-sample-size: (default: 20)` | ||
#### `conservation-sample-size: number (default: 20)` | ||
One of the color-schemes is `conservation` this requires a precalculation that runs on a web worker. The conservation calculation can be sampled to just the first `n` sequences. Which is defined by this parameter. | ||
#### `overlay-conservation: boolean(default: false)` | ||
When this flag is enable the conservation data is used to modify the color of each base. | ||
### Methods | ||
@@ -46,0 +50,0 @@ |
@@ -1,2 +0,1 @@ | ||
import * as shallowEqual from "shallowequal"; | ||
@@ -3,0 +2,0 @@ import { minBy } from "lodash-es"; |
@@ -62,2 +62,7 @@ import { property, state, customElement } from "lit/decorators.js"; | ||
colorScheme: string = DEFAULT_COLOR_SCHEME; | ||
@property({ | ||
type: Boolean, | ||
attribute: "overlay-conservation", | ||
}) | ||
overlayConservation = false; | ||
@@ -80,3 +85,2 @@ @state() | ||
scrollBarPositionY: "right", | ||
overlayConservation: false, | ||
// TODO: deal with conservation | ||
@@ -294,3 +298,3 @@ conservation: null, | ||
borderColor: this.props.borderColor, | ||
overlayConservation: this.props.overlayConservation, | ||
overlayConservation: this.overlayConservation, | ||
conservation: this.props.conservation, | ||
@@ -556,3 +560,3 @@ }); | ||
borderColor: this.props.borderColor, | ||
overlayConservation: this.props.overlayConservation, | ||
overlayConservation: this.overlayConservation, | ||
conservation: this.props.conservation, | ||
@@ -559,0 +563,0 @@ }; |
@@ -49,2 +49,7 @@ import { customElement, property } from "lit/decorators.js"; | ||
sampleSize = 20; | ||
@property({ | ||
type: Boolean, | ||
attribute: "overlay-conservation", | ||
}) | ||
overlayConservtion = false; | ||
@@ -141,2 +146,3 @@ worker = new Worker( | ||
length=${this.length || 0} | ||
?overlay-conservation=${this.overlayConservtion} | ||
></msa-sequence-viewer> | ||
@@ -143,0 +149,0 @@ <div style=${object2style(rightMarginStyle)}></div> |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
685618
3621
88
1