@teselagen/ove 0.5.19 → 0.5.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Menlo.ttf +0 -0
- package/Monaco.ttf +0 -0
- package/html2canvas.esm--JN4fLQL.mjs +7891 -0
- package/html2canvas.esm-B7d7VJmQ.js +7891 -0
- package/html2canvas.esm-GLpiTZLt.cjs +7891 -0
- package/html2canvas.esm-GLpiTZLt.js +7891 -0
- package/html2canvas.esm-nFNn58sx.js +7891 -0
- package/html2canvas.esm-nFNn58sx.mjs +7891 -0
- package/index.cjs.js +74 -25
- package/index.es.js +74 -25
- package/index.umd.js +74 -25
- package/package.json +4 -4
- package/src/Editor/userDefinedHandlersAndOpts.js +1 -0
- package/src/StatusBar/MeltingTemp.js +14 -10
- package/src/utils/commandUtils.js +3 -1
- package/style.css +3 -0
|
@@ -3,7 +3,7 @@ import { Button, Icon, Popover, RadioGroup } from "@blueprintjs/core";
|
|
|
3
3
|
|
|
4
4
|
import { calculateTm, calculateNebTm } from "@teselagen/sequence-utils";
|
|
5
5
|
|
|
6
|
-
import { isString } from "lodash-es";
|
|
6
|
+
import { isNumber, isString } from "lodash-es";
|
|
7
7
|
import { popoverOverflowModifiers } from "@teselagen/ui";
|
|
8
8
|
import useTmType from "../utils/useTmType";
|
|
9
9
|
|
|
@@ -16,13 +16,17 @@ export default function MeltingTemp({
|
|
|
16
16
|
</Button>
|
|
17
17
|
)
|
|
18
18
|
}) {
|
|
19
|
+
const [primerConc /* , setPrimerConcentration */] = React.useState(0.0000005);
|
|
20
|
+
const [monovalentCationConc /* , setMonovalentCationConc */] =
|
|
21
|
+
React.useState(0.05);
|
|
19
22
|
const [tmType, setTmType] = useTmType();
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
23
|
+
let tm = (tmType === "neb_tm" ? calculateNebTm : calculateTm)(sequence, {
|
|
24
|
+
monovalentCationConc,
|
|
25
|
+
primerConc
|
|
26
|
+
});
|
|
27
|
+
if (isNumber(tm)) {
|
|
28
|
+
tm = tm.toFixed(1);
|
|
29
|
+
}
|
|
26
30
|
const hasWarning = isString(tm) && tm.length > 7 && tm;
|
|
27
31
|
return (
|
|
28
32
|
<WrapperToUse dataTest="veStatusBar-selection-tm">
|
|
@@ -34,7 +38,7 @@ export default function MeltingTemp({
|
|
|
34
38
|
<a
|
|
35
39
|
rel="noopener noreferrer"
|
|
36
40
|
target="_blank"
|
|
37
|
-
href="https://github.com/TeselaGen
|
|
41
|
+
href="https://github.com/TeselaGen/tg-oss/blob/master/packages/sequence-utils/src/calculateNebTm.js"
|
|
38
42
|
>
|
|
39
43
|
algorithms
|
|
40
44
|
</a>
|
|
@@ -43,8 +47,8 @@ export default function MeltingTemp({
|
|
|
43
47
|
<RadioGroup
|
|
44
48
|
label="Choose Tm Type:"
|
|
45
49
|
options={[
|
|
46
|
-
{ value: "default", label: "Default Tm" },
|
|
47
|
-
{ value: "neb_tm", label: "NEB Tm" }
|
|
50
|
+
{ value: "default", label: "Default Tm (Breslauer)" },
|
|
51
|
+
{ value: "neb_tm", label: "NEB Tm (SantaLucia)" }
|
|
48
52
|
]}
|
|
49
53
|
onChange={e => setTmType(e.target.value)}
|
|
50
54
|
selectedValue={tmType}
|
package/style.css
CHANGED
|
@@ -9042,6 +9042,9 @@ button:not(:disabled):active {
|
|
|
9042
9042
|
.bp3-tabs.bp3-vertical > .bp3-tab-panel {
|
|
9043
9043
|
min-width: 0px;
|
|
9044
9044
|
}
|
|
9045
|
+
.bp3-toast[class*="bp3-intent-"] .bp3-button.tg-clear-all-toasts {
|
|
9046
|
+
border: 1px solid white !important;
|
|
9047
|
+
}
|
|
9045
9048
|
.bp3-toast[class*="bp3-intent-"] .bp3-button.tg-clear-all-toasts:hover {
|
|
9046
9049
|
/* background: blue !important; */
|
|
9047
9050
|
/* background: unset !important; */
|