@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.
@@ -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
- const tm = (
21
- {
22
- default: calculateTm,
23
- neb_tm: calculateNebTm
24
- }[tmType] || calculateTm
25
- )((sequence || "").toLowerCase());
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/@teselagen/sequence-utils"
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}
@@ -13,6 +13,8 @@ export function oveCommandFactory(instance, commandDefs) {
13
13
  return args;
14
14
  },
15
15
  handleReturn: noop,
16
- commandDefs
16
+ commandDefs: instance.props.massageCmds
17
+ ? instance.props.massageCmds(commandDefs)
18
+ : commandDefs
17
19
  });
18
20
  }
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; */