@teselagen/ove 0.8.11 → 0.8.13

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/index.cjs.js CHANGED
@@ -56614,10 +56614,7 @@ const DataTable = /* @__PURE__ */ __name((_w) => {
56614
56614
  });
56615
56615
  }
56616
56616
  const __schema = useDeepEqualMemo(_schema);
56617
- const convertedSchema = React.useMemo(
56618
- () => convertSchema(__schema),
56619
- [__schema]
56620
- );
56617
+ const convertedSchema = React.useMemo(() => convertSchema(__schema), [__schema]);
56621
56618
  if (isLocalCall) {
56622
56619
  if (!noForm && (!formName || formName === "tgDataTable")) {
56623
56620
  throw new Error(
@@ -85561,6 +85558,11 @@ function genbankToJson(string2, options = {}) {
85561
85558
  feat.arrowheadType = feat.notes.direction[0].toUpperCase() === "BOTH" ? "BOTH" : feat.notes.direction[0].toUpperCase() === "NONE" ? "NONE" : void 0;
85562
85559
  delete feat.notes.direction;
85563
85560
  }
85561
+ if (feat.locations && feat.locations.length > 1 && feat.locations[0].start > feat.locations[feat.locations.length - 1].end) {
85562
+ if (parsedSequence.circular === void 0) {
85563
+ parsedSequence.circular = true;
85564
+ }
85565
+ }
85564
85566
  if (parsedSequence.circular) {
85565
85567
  const { inclusive1BasedStart: inclusive1BasedStart2, inclusive1BasedEnd: inclusive1BasedEnd2 } = options2;
85566
85568
  feat.locations = wrapOriginSpanningFeatures(
@@ -85569,6 +85571,8 @@ function genbankToJson(string2, options = {}) {
85569
85571
  inclusive1BasedStart2,
85570
85572
  inclusive1BasedEnd2
85571
85573
  );
85574
+ } else if (feat.locations && feat.locations.length > 1) {
85575
+ feat.locations.sort((a2, b3) => a2.start - b3.start);
85572
85576
  }
85573
85577
  return feat;
85574
85578
  }
@@ -116634,7 +116638,7 @@ function showFileDialog({ multiple = false, onSelect }) {
116634
116638
  input.click();
116635
116639
  }
116636
116640
  __name(showFileDialog, "showFileDialog");
116637
- const version = "0.8.10";
116641
+ const version = "0.8.12";
116638
116642
  const packageJson = {
116639
116643
  version
116640
116644
  };
@@ -121429,9 +121433,6 @@ function VectorInteractionHOC(Component) {
121429
121433
  disableBpEditing,
121430
121434
  maxInsertSize,
121431
121435
  showAminoAcidUnitAsCodon
121432
- // updateSequenceData,
121433
- // wrappedInsertSequenceDataAtPositionOrRange
121434
- // handleInsert
121435
121436
  } = this.props;
121436
121437
  const sequenceLength = sequenceData2.sequence.length;
121437
121438
  const isReplace = selectionLayer2.start > -1;
@@ -140119,10 +140120,10 @@ const AlignmentView$1 = compose(
140119
140120
  togglableAlignmentAnnotationSettings[annotation] = alignmentAnnotationVisibility[annotation];
140120
140121
  }
140121
140122
  });
140122
- const tracks = parseTracks(alignmentTracks);
140123
- const labileSites = getLabileSites(tracks, 0.5);
140124
140123
  const annotationsWithCounts = [];
140125
140124
  if (alignmentTracks) {
140125
+ const tracks = parseTracks(alignmentTracks);
140126
+ const labileSites = getLabileSites(tracks, 0.5);
140126
140127
  let totalNumOfFeatures = 0;
140127
140128
  let totalNumOfParts = 0;
140128
140129
  alignmentTracks.forEach((seq) => {
package/index.es.js CHANGED
@@ -56596,10 +56596,7 @@ const DataTable = /* @__PURE__ */ __name((_w) => {
56596
56596
  });
56597
56597
  }
56598
56598
  const __schema = useDeepEqualMemo(_schema);
56599
- const convertedSchema = useMemo$1(
56600
- () => convertSchema(__schema),
56601
- [__schema]
56602
- );
56599
+ const convertedSchema = useMemo$1(() => convertSchema(__schema), [__schema]);
56603
56600
  if (isLocalCall) {
56604
56601
  if (!noForm && (!formName || formName === "tgDataTable")) {
56605
56602
  throw new Error(
@@ -85543,6 +85540,11 @@ function genbankToJson(string2, options = {}) {
85543
85540
  feat.arrowheadType = feat.notes.direction[0].toUpperCase() === "BOTH" ? "BOTH" : feat.notes.direction[0].toUpperCase() === "NONE" ? "NONE" : void 0;
85544
85541
  delete feat.notes.direction;
85545
85542
  }
85543
+ if (feat.locations && feat.locations.length > 1 && feat.locations[0].start > feat.locations[feat.locations.length - 1].end) {
85544
+ if (parsedSequence.circular === void 0) {
85545
+ parsedSequence.circular = true;
85546
+ }
85547
+ }
85546
85548
  if (parsedSequence.circular) {
85547
85549
  const { inclusive1BasedStart: inclusive1BasedStart2, inclusive1BasedEnd: inclusive1BasedEnd2 } = options2;
85548
85550
  feat.locations = wrapOriginSpanningFeatures(
@@ -85551,6 +85553,8 @@ function genbankToJson(string2, options = {}) {
85551
85553
  inclusive1BasedStart2,
85552
85554
  inclusive1BasedEnd2
85553
85555
  );
85556
+ } else if (feat.locations && feat.locations.length > 1) {
85557
+ feat.locations.sort((a2, b3) => a2.start - b3.start);
85554
85558
  }
85555
85559
  return feat;
85556
85560
  }
@@ -116616,7 +116620,7 @@ function showFileDialog({ multiple = false, onSelect }) {
116616
116620
  input.click();
116617
116621
  }
116618
116622
  __name(showFileDialog, "showFileDialog");
116619
- const version = "0.8.10";
116623
+ const version = "0.8.12";
116620
116624
  const packageJson = {
116621
116625
  version
116622
116626
  };
@@ -121411,9 +121415,6 @@ function VectorInteractionHOC(Component2) {
121411
121415
  disableBpEditing,
121412
121416
  maxInsertSize,
121413
121417
  showAminoAcidUnitAsCodon
121414
- // updateSequenceData,
121415
- // wrappedInsertSequenceDataAtPositionOrRange
121416
- // handleInsert
121417
121418
  } = this.props;
121418
121419
  const sequenceLength = sequenceData2.sequence.length;
121419
121420
  const isReplace = selectionLayer2.start > -1;
@@ -140101,10 +140102,10 @@ const AlignmentView$1 = compose(
140101
140102
  togglableAlignmentAnnotationSettings[annotation] = alignmentAnnotationVisibility[annotation];
140102
140103
  }
140103
140104
  });
140104
- const tracks = parseTracks(alignmentTracks);
140105
- const labileSites = getLabileSites(tracks, 0.5);
140106
140105
  const annotationsWithCounts = [];
140107
140106
  if (alignmentTracks) {
140107
+ const tracks = parseTracks(alignmentTracks);
140108
+ const labileSites = getLabileSites(tracks, 0.5);
140108
140109
  let totalNumOfFeatures = 0;
140109
140110
  let totalNumOfParts = 0;
140110
140111
  alignmentTracks.forEach((seq) => {
package/index.umd.js CHANGED
@@ -85645,10 +85645,7 @@ ${latestSubscriptionCallbackError.current.stack}
85645
85645
  });
85646
85646
  }
85647
85647
  const __schema = useDeepEqualMemo(_schema);
85648
- const convertedSchema = reactExports.useMemo(
85649
- () => convertSchema(__schema),
85650
- [__schema]
85651
- );
85648
+ const convertedSchema = reactExports.useMemo(() => convertSchema(__schema), [__schema]);
85652
85649
  if (isLocalCall) {
85653
85650
  if (!noForm && (!formName || formName === "tgDataTable")) {
85654
85651
  throw new Error(
@@ -114464,6 +114461,11 @@ ${latestSubscriptionCallbackError.current.stack}
114464
114461
  feat.arrowheadType = feat.notes.direction[0].toUpperCase() === "BOTH" ? "BOTH" : feat.notes.direction[0].toUpperCase() === "NONE" ? "NONE" : void 0;
114465
114462
  delete feat.notes.direction;
114466
114463
  }
114464
+ if (feat.locations && feat.locations.length > 1 && feat.locations[0].start > feat.locations[feat.locations.length - 1].end) {
114465
+ if (parsedSequence.circular === void 0) {
114466
+ parsedSequence.circular = true;
114467
+ }
114468
+ }
114467
114469
  if (parsedSequence.circular) {
114468
114470
  const { inclusive1BasedStart: inclusive1BasedStart2, inclusive1BasedEnd: inclusive1BasedEnd2 } = options2;
114469
114471
  feat.locations = wrapOriginSpanningFeatures(
@@ -114472,6 +114474,8 @@ ${latestSubscriptionCallbackError.current.stack}
114472
114474
  inclusive1BasedStart2,
114473
114475
  inclusive1BasedEnd2
114474
114476
  );
114477
+ } else if (feat.locations && feat.locations.length > 1) {
114478
+ feat.locations.sort((a2, b3) => a2.start - b3.start);
114475
114479
  }
114476
114480
  return feat;
114477
114481
  }
@@ -144732,7 +144736,7 @@ Part of ${annotation.translationType} Translation from BPs ${annotation.start +
144732
144736
  input.click();
144733
144737
  }
144734
144738
  __name(showFileDialog, "showFileDialog");
144735
- const version = "0.8.10";
144739
+ const version = "0.8.12";
144736
144740
  const packageJson = {
144737
144741
  version
144738
144742
  };
@@ -147925,9 +147929,6 @@ Part of ${annotation.translationType} Translation from BPs ${annotation.start +
147925
147929
  disableBpEditing,
147926
147930
  maxInsertSize,
147927
147931
  showAminoAcidUnitAsCodon
147928
- // updateSequenceData,
147929
- // wrappedInsertSequenceDataAtPositionOrRange
147930
- // handleInsert
147931
147932
  } = this.props;
147932
147933
  const sequenceLength = sequenceData2.sequence.length;
147933
147934
  const isReplace = selectionLayer2.start > -1;
@@ -166615,10 +166616,10 @@ ${seqDataToCopy}\r
166615
166616
  togglableAlignmentAnnotationSettings[annotation] = alignmentAnnotationVisibility[annotation];
166616
166617
  }
166617
166618
  });
166618
- const tracks = parseTracks(alignmentTracks);
166619
- const labileSites = getLabileSites(tracks, 0.5);
166620
166619
  const annotationsWithCounts = [];
166621
166620
  if (alignmentTracks) {
166621
+ const tracks = parseTracks(alignmentTracks);
166622
+ const labileSites = getLabileSites(tracks, 0.5);
166622
166623
  let totalNumOfFeatures = 0;
166623
166624
  let totalNumOfParts = 0;
166624
166625
  alignmentTracks.forEach((seq) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@teselagen/ove",
3
- "version": "0.8.11",
3
+ "version": "0.8.13",
4
4
  "main": "./src/index.js",
5
5
  "type": "module",
6
6
  "exports": {
@@ -1970,11 +1970,10 @@ export default compose(
1970
1970
  }
1971
1971
  });
1972
1972
 
1973
- const tracks = parseTracks(alignmentTracks);
1974
- const labileSites = getLabileSites(tracks, 0.5);
1975
-
1976
1973
  const annotationsWithCounts = [];
1977
1974
  if (alignmentTracks) {
1975
+ const tracks = parseTracks(alignmentTracks);
1976
+ const labileSites = getLabileSites(tracks, 0.5);
1978
1977
  let totalNumOfFeatures = 0;
1979
1978
  let totalNumOfParts = 0;
1980
1979
  alignmentTracks.forEach(seq => {
@@ -19,17 +19,6 @@ export const filteredRestrictionEnzymesAdd = createAction(
19
19
  // Reducer
20
20
  // ------------------------------------
21
21
  const defaultInitialState = [specialCutsiteFilterOptions.single];
22
- // let initialState = defaultInitialState;
23
- // const localDefault = window.localStorage.getItem("tgInitialCutsiteFilter");
24
-
25
- // if (localDefault) {
26
- // try {
27
- // initialState = JSON.parse(localDefault);
28
- // if (!Array.isArray(initialState)) throw new Error("Must be an array");
29
- // } catch (e) {
30
- // initialState = defaultInitialState;
31
- // }
32
- // }
33
22
 
34
23
  export default combineReducers({
35
24
  //filteredRestrictionEnzymes refer to the enzymes actively included in the react-select filter component
@@ -405,9 +405,6 @@ function VectorInteractionHOC(Component /* options */) {
405
405
  disableBpEditing,
406
406
  maxInsertSize,
407
407
  showAminoAcidUnitAsCodon
408
- // updateSequenceData,
409
- // wrappedInsertSequenceDataAtPositionOrRange
410
- // handleInsert
411
408
  } = this.props;
412
409
  const sequenceLength = sequenceData.sequence.length;
413
410
  const isReplace = selectionLayer.start > -1;