@teselagen/ove 0.3.62 → 0.3.63

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
@@ -17098,16 +17098,25 @@ var toString$6 = {}.toString;
17098
17098
  var _cof = /* @__PURE__ */ __name(function(it) {
17099
17099
  return toString$6.call(it).slice(8, -1);
17100
17100
  }, "_cof");
17101
- var cof$2 = _cof;
17102
- var _iobject = Object("z").propertyIsEnumerable(0) ? Object : function(it) {
17103
- return cof$2(it) == "String" ? it.split("") : Object(it);
17104
- };
17101
+ var _iobject;
17102
+ var hasRequired_iobject;
17103
+ function require_iobject() {
17104
+ if (hasRequired_iobject)
17105
+ return _iobject;
17106
+ hasRequired_iobject = 1;
17107
+ var cof2 = _cof;
17108
+ _iobject = Object("z").propertyIsEnumerable(0) ? Object : function(it) {
17109
+ return cof2(it) == "String" ? it.split("") : Object(it);
17110
+ };
17111
+ return _iobject;
17112
+ }
17113
+ __name(require_iobject, "require_iobject");
17105
17114
  var _defined = /* @__PURE__ */ __name(function(it) {
17106
17115
  if (it == void 0)
17107
17116
  throw TypeError("Can't call method on " + it);
17108
17117
  return it;
17109
17118
  }, "_defined");
17110
- var IObject = _iobject;
17119
+ var IObject = require_iobject();
17111
17120
  var defined$2 = _defined;
17112
17121
  var _toIobject = /* @__PURE__ */ __name(function(it) {
17113
17122
  return IObject(defined$2(it));
@@ -17228,7 +17237,7 @@ function require_objectAssign() {
17228
17237
  var gOPS2 = _objectGops;
17229
17238
  var pIE2 = require_objectPie();
17230
17239
  var toObject2 = _toObject;
17231
- var IObject2 = _iobject;
17240
+ var IObject2 = require_iobject();
17232
17241
  var $assign = Object.assign;
17233
17242
  _objectAssign = !$assign || _fails(function() {
17234
17243
  var A2 = {};
@@ -70589,11 +70598,11 @@ function UploaderInner({
70589
70598
  {
70590
70599
  description: "Download Example CSV File",
70591
70600
  exampleFile: () => {
70592
- var _a3;
70601
+ var _a3, _b3;
70593
70602
  const rows = [];
70594
70603
  const schemaToUse = [
70595
70604
  ...a2.validateAgainstSchema.fields,
70596
- ...a2.validateAgainstSchema.exampleDownloadFields
70605
+ ...(_a3 = a2.validateAgainstSchema.exampleDownloadFields) != null ? _a3 : []
70597
70606
  ];
70598
70607
  rows.push(
70599
70608
  schemaToUse.map((f2) => {
@@ -70606,7 +70615,7 @@ function UploaderInner({
70606
70615
  })
70607
70616
  );
70608
70617
  const csv = papaparse_minExports.unparse(rows);
70609
- const downloadFn = ((_a3 = window.Cypress) == null ? void 0 : _a3.downloadTest) || downloadjs;
70618
+ const downloadFn = ((_b3 = window.Cypress) == null ? void 0 : _b3.downloadTest) || downloadjs;
70610
70619
  downloadFn(csv, `${nameToUse}.csv`, "csv");
70611
70620
  }
70612
70621
  },
@@ -92961,7 +92970,7 @@ function flattenSequenceArray(parsingResultArray, opts2) {
92961
92970
  return parsingResultArray;
92962
92971
  }
92963
92972
  __name(flattenSequenceArray, "flattenSequenceArray");
92964
- function parseFeatureLocation(locStr, isProtein2, inclusive1BasedStart, inclusive1BasedEnd) {
92973
+ function parseFeatureLocation(locStr, isProtein2, inclusive1BasedStart, inclusive1BasedEnd, isCircular, sequenceLength) {
92965
92974
  locStr = locStr.trim();
92966
92975
  const locArr = [];
92967
92976
  locStr.replace(/(\d+)/g, function(string2, match2) {
@@ -92982,6 +92991,19 @@ function parseFeatureLocation(locStr, isProtein2, inclusive1BasedStart, inclusiv
92982
92991
  isProtein2 ? convertAACaretPositionOrRangeToDna(location2) : location2
92983
92992
  );
92984
92993
  }
92994
+ if (isCircular) {
92995
+ for (let i = 0; i < locArray.length; i += 2) {
92996
+ const firstFeature = locArray[i];
92997
+ const secondFeature = locArray[i + 1];
92998
+ if (firstFeature.end === sequenceLength - (inclusive1BasedEnd ? 0 : 1) && secondFeature.start === 1 - (inclusive1BasedStart ? 0 : 1)) {
92999
+ locArray[i] = {
93000
+ start: firstFeature.start,
93001
+ end: secondFeature.end
93002
+ };
93003
+ locArray.splice(i + 1, 1);
93004
+ }
93005
+ }
93006
+ }
92985
93007
  return locArray;
92986
93008
  }
92987
93009
  __name(parseFeatureLocation, "parseFeatureLocation");
@@ -93315,7 +93337,9 @@ function genbankToJson(string2, options = {}) {
93315
93337
  line.trim(),
93316
93338
  options.isProtein,
93317
93339
  inclusive1BasedStart,
93318
- inclusive1BasedEnd
93340
+ inclusive1BasedEnd,
93341
+ result.parsedSequence.circular,
93342
+ result.parsedSequence.sequence.length
93319
93343
  )
93320
93344
  );
93321
93345
  lastLineWasLocation = true;
@@ -93348,7 +93372,9 @@ function genbankToJson(string2, options = {}) {
93348
93372
  val2,
93349
93373
  options.isProtein,
93350
93374
  inclusive1BasedStart,
93351
- inclusive1BasedEnd
93375
+ inclusive1BasedEnd,
93376
+ result.parsedSequence.circular,
93377
+ result.parsedSequence.sequence.length
93352
93378
  )
93353
93379
  );
93354
93380
  lastLineWasLocation = true;
@@ -124783,7 +124809,7 @@ function showFileDialog({ multiple = false, onSelect }) {
124783
124809
  }
124784
124810
  __name(showFileDialog, "showFileDialog");
124785
124811
  const name = "@teselagen/ove";
124786
- const version = "0.3.61";
124812
+ const version = "0.3.62";
124787
124813
  const main = "./src/index.js";
124788
124814
  const exports$1 = {
124789
124815
  ".": {
package/index.es.js CHANGED
@@ -17080,16 +17080,25 @@ var toString$6 = {}.toString;
17080
17080
  var _cof = /* @__PURE__ */ __name(function(it) {
17081
17081
  return toString$6.call(it).slice(8, -1);
17082
17082
  }, "_cof");
17083
- var cof$2 = _cof;
17084
- var _iobject = Object("z").propertyIsEnumerable(0) ? Object : function(it) {
17085
- return cof$2(it) == "String" ? it.split("") : Object(it);
17086
- };
17083
+ var _iobject;
17084
+ var hasRequired_iobject;
17085
+ function require_iobject() {
17086
+ if (hasRequired_iobject)
17087
+ return _iobject;
17088
+ hasRequired_iobject = 1;
17089
+ var cof2 = _cof;
17090
+ _iobject = Object("z").propertyIsEnumerable(0) ? Object : function(it) {
17091
+ return cof2(it) == "String" ? it.split("") : Object(it);
17092
+ };
17093
+ return _iobject;
17094
+ }
17095
+ __name(require_iobject, "require_iobject");
17087
17096
  var _defined = /* @__PURE__ */ __name(function(it) {
17088
17097
  if (it == void 0)
17089
17098
  throw TypeError("Can't call method on " + it);
17090
17099
  return it;
17091
17100
  }, "_defined");
17092
- var IObject = _iobject;
17101
+ var IObject = require_iobject();
17093
17102
  var defined$2 = _defined;
17094
17103
  var _toIobject = /* @__PURE__ */ __name(function(it) {
17095
17104
  return IObject(defined$2(it));
@@ -17210,7 +17219,7 @@ function require_objectAssign() {
17210
17219
  var gOPS2 = _objectGops;
17211
17220
  var pIE2 = require_objectPie();
17212
17221
  var toObject2 = _toObject;
17213
- var IObject2 = _iobject;
17222
+ var IObject2 = require_iobject();
17214
17223
  var $assign = Object.assign;
17215
17224
  _objectAssign = !$assign || _fails(function() {
17216
17225
  var A2 = {};
@@ -70571,11 +70580,11 @@ function UploaderInner({
70571
70580
  {
70572
70581
  description: "Download Example CSV File",
70573
70582
  exampleFile: () => {
70574
- var _a3;
70583
+ var _a3, _b3;
70575
70584
  const rows = [];
70576
70585
  const schemaToUse = [
70577
70586
  ...a2.validateAgainstSchema.fields,
70578
- ...a2.validateAgainstSchema.exampleDownloadFields
70587
+ ...(_a3 = a2.validateAgainstSchema.exampleDownloadFields) != null ? _a3 : []
70579
70588
  ];
70580
70589
  rows.push(
70581
70590
  schemaToUse.map((f2) => {
@@ -70588,7 +70597,7 @@ function UploaderInner({
70588
70597
  })
70589
70598
  );
70590
70599
  const csv = papaparse_minExports.unparse(rows);
70591
- const downloadFn = ((_a3 = window.Cypress) == null ? void 0 : _a3.downloadTest) || downloadjs;
70600
+ const downloadFn = ((_b3 = window.Cypress) == null ? void 0 : _b3.downloadTest) || downloadjs;
70592
70601
  downloadFn(csv, `${nameToUse}.csv`, "csv");
70593
70602
  }
70594
70603
  },
@@ -92943,7 +92952,7 @@ function flattenSequenceArray(parsingResultArray, opts2) {
92943
92952
  return parsingResultArray;
92944
92953
  }
92945
92954
  __name(flattenSequenceArray, "flattenSequenceArray");
92946
- function parseFeatureLocation(locStr, isProtein2, inclusive1BasedStart, inclusive1BasedEnd) {
92955
+ function parseFeatureLocation(locStr, isProtein2, inclusive1BasedStart, inclusive1BasedEnd, isCircular, sequenceLength) {
92947
92956
  locStr = locStr.trim();
92948
92957
  const locArr = [];
92949
92958
  locStr.replace(/(\d+)/g, function(string2, match2) {
@@ -92964,6 +92973,19 @@ function parseFeatureLocation(locStr, isProtein2, inclusive1BasedStart, inclusiv
92964
92973
  isProtein2 ? convertAACaretPositionOrRangeToDna(location2) : location2
92965
92974
  );
92966
92975
  }
92976
+ if (isCircular) {
92977
+ for (let i = 0; i < locArray.length; i += 2) {
92978
+ const firstFeature = locArray[i];
92979
+ const secondFeature = locArray[i + 1];
92980
+ if (firstFeature.end === sequenceLength - (inclusive1BasedEnd ? 0 : 1) && secondFeature.start === 1 - (inclusive1BasedStart ? 0 : 1)) {
92981
+ locArray[i] = {
92982
+ start: firstFeature.start,
92983
+ end: secondFeature.end
92984
+ };
92985
+ locArray.splice(i + 1, 1);
92986
+ }
92987
+ }
92988
+ }
92967
92989
  return locArray;
92968
92990
  }
92969
92991
  __name(parseFeatureLocation, "parseFeatureLocation");
@@ -93297,7 +93319,9 @@ function genbankToJson(string2, options = {}) {
93297
93319
  line.trim(),
93298
93320
  options.isProtein,
93299
93321
  inclusive1BasedStart,
93300
- inclusive1BasedEnd
93322
+ inclusive1BasedEnd,
93323
+ result.parsedSequence.circular,
93324
+ result.parsedSequence.sequence.length
93301
93325
  )
93302
93326
  );
93303
93327
  lastLineWasLocation = true;
@@ -93330,7 +93354,9 @@ function genbankToJson(string2, options = {}) {
93330
93354
  val2,
93331
93355
  options.isProtein,
93332
93356
  inclusive1BasedStart,
93333
- inclusive1BasedEnd
93357
+ inclusive1BasedEnd,
93358
+ result.parsedSequence.circular,
93359
+ result.parsedSequence.sequence.length
93334
93360
  )
93335
93361
  );
93336
93362
  lastLineWasLocation = true;
@@ -124765,7 +124791,7 @@ function showFileDialog({ multiple = false, onSelect }) {
124765
124791
  }
124766
124792
  __name(showFileDialog, "showFileDialog");
124767
124793
  const name = "@teselagen/ove";
124768
- const version = "0.3.61";
124794
+ const version = "0.3.62";
124769
124795
  const main = "./src/index.js";
124770
124796
  const exports$1 = {
124771
124797
  ".": {
package/index.umd.js CHANGED
@@ -25818,10 +25818,10 @@ var __async = (__this, __arguments, generator) => {
25818
25818
  /* istanbul ignore next */
25819
25819
  Object.getOwnPropertyNames
25820
25820
  );
25821
- function toPrimitive$3(value) {
25821
+ function toPrimitive$2(value) {
25822
25822
  return value === null ? null : typeof value === "object" ? "" + value : value;
25823
25823
  }
25824
- __name(toPrimitive$3, "toPrimitive$3");
25824
+ __name(toPrimitive$2, "toPrimitive$2");
25825
25825
  function hasProp(target, prop2) {
25826
25826
  return objectPrototype$2.hasOwnProperty.call(target, prop2);
25827
25827
  }
@@ -26718,7 +26718,7 @@ var __async = (__this, __arguments, generator) => {
26718
26718
  return this.name_ + "[" + this.value_ + "]";
26719
26719
  }, "toString");
26720
26720
  _proto.valueOf = /* @__PURE__ */ __name(function valueOf() {
26721
- return toPrimitive$3(this.get());
26721
+ return toPrimitive$2(this.get());
26722
26722
  }, "valueOf");
26723
26723
  _proto[_Symbol$toPrimitive] = function() {
26724
26724
  return this.valueOf();
@@ -26903,7 +26903,7 @@ var __async = (__this, __arguments, generator) => {
26903
26903
  return this.name_ + "[" + this.derivation.toString() + "]";
26904
26904
  }, "toString");
26905
26905
  _proto.valueOf = /* @__PURE__ */ __name(function valueOf() {
26906
- return toPrimitive$3(this.get());
26906
+ return toPrimitive$2(this.get());
26907
26907
  }, "valueOf");
26908
26908
  _proto[_Symbol$toPrimitive$1] = function() {
26909
26909
  return this.valueOf();
@@ -43573,11 +43573,20 @@ ${latestSubscriptionCallbackError.current.stack}
43573
43573
  return true;
43574
43574
  }
43575
43575
  }, "_fails");
43576
- var _descriptors = !_fails(function() {
43577
- return Object.defineProperty({}, "a", { get: function() {
43578
- return 7;
43579
- } }).a != 7;
43580
- });
43576
+ var _descriptors;
43577
+ var hasRequired_descriptors;
43578
+ function require_descriptors() {
43579
+ if (hasRequired_descriptors)
43580
+ return _descriptors;
43581
+ hasRequired_descriptors = 1;
43582
+ _descriptors = !_fails(function() {
43583
+ return Object.defineProperty({}, "a", { get: function() {
43584
+ return 7;
43585
+ } }).a != 7;
43586
+ });
43587
+ return _descriptors;
43588
+ }
43589
+ __name(require_descriptors, "require_descriptors");
43581
43590
  var _domCreate;
43582
43591
  var hasRequired_domCreate;
43583
43592
  function require_domCreate() {
@@ -43593,11 +43602,20 @@ ${latestSubscriptionCallbackError.current.stack}
43593
43602
  return _domCreate;
43594
43603
  }
43595
43604
  __name(require_domCreate, "require_domCreate");
43596
- var _ie8DomDefine = !_descriptors && !_fails(function() {
43597
- return Object.defineProperty(require_domCreate()("div"), "a", { get: function() {
43598
- return 7;
43599
- } }).a != 7;
43600
- });
43605
+ var _ie8DomDefine;
43606
+ var hasRequired_ie8DomDefine;
43607
+ function require_ie8DomDefine() {
43608
+ if (hasRequired_ie8DomDefine)
43609
+ return _ie8DomDefine;
43610
+ hasRequired_ie8DomDefine = 1;
43611
+ _ie8DomDefine = !require_descriptors() && !_fails(function() {
43612
+ return Object.defineProperty(require_domCreate()("div"), "a", { get: function() {
43613
+ return 7;
43614
+ } }).a != 7;
43615
+ });
43616
+ return _ie8DomDefine;
43617
+ }
43618
+ __name(require_ie8DomDefine, "require_ie8DomDefine");
43601
43619
  var isObject$6 = _isObject;
43602
43620
  var _toPrimitive$1 = /* @__PURE__ */ __name(function(it, S2) {
43603
43621
  if (!isObject$6(it))
@@ -43611,25 +43629,33 @@ ${latestSubscriptionCallbackError.current.stack}
43611
43629
  return val2;
43612
43630
  throw TypeError("Can't convert object to primitive value");
43613
43631
  }, "_toPrimitive$1");
43614
- var anObject$5 = _anObject;
43615
- var IE8_DOM_DEFINE$1 = _ie8DomDefine;
43616
- var toPrimitive$2 = _toPrimitive$1;
43617
- var dP$3 = Object.defineProperty;
43618
- _objectDp.f = _descriptors ? Object.defineProperty : /* @__PURE__ */ __name(function defineProperty2(O2, P2, Attributes) {
43619
- anObject$5(O2);
43620
- P2 = toPrimitive$2(P2, true);
43621
- anObject$5(Attributes);
43622
- if (IE8_DOM_DEFINE$1)
43623
- try {
43624
- return dP$3(O2, P2, Attributes);
43625
- } catch (e2) {
43626
- }
43627
- if ("get" in Attributes || "set" in Attributes)
43628
- throw TypeError("Accessors not supported!");
43629
- if ("value" in Attributes)
43630
- O2[P2] = Attributes.value;
43631
- return O2;
43632
- }, "defineProperty");
43632
+ var hasRequired_objectDp;
43633
+ function require_objectDp() {
43634
+ if (hasRequired_objectDp)
43635
+ return _objectDp;
43636
+ hasRequired_objectDp = 1;
43637
+ var anObject2 = _anObject;
43638
+ var IE8_DOM_DEFINE2 = require_ie8DomDefine();
43639
+ var toPrimitive2 = _toPrimitive$1;
43640
+ var dP2 = Object.defineProperty;
43641
+ _objectDp.f = require_descriptors() ? Object.defineProperty : /* @__PURE__ */ __name(function defineProperty2(O2, P2, Attributes) {
43642
+ anObject2(O2);
43643
+ P2 = toPrimitive2(P2, true);
43644
+ anObject2(Attributes);
43645
+ if (IE8_DOM_DEFINE2)
43646
+ try {
43647
+ return dP2(O2, P2, Attributes);
43648
+ } catch (e2) {
43649
+ }
43650
+ if ("get" in Attributes || "set" in Attributes)
43651
+ throw TypeError("Accessors not supported!");
43652
+ if ("value" in Attributes)
43653
+ O2[P2] = Attributes.value;
43654
+ return O2;
43655
+ }, "defineProperty");
43656
+ return _objectDp;
43657
+ }
43658
+ __name(require_objectDp, "require_objectDp");
43633
43659
  var _propertyDesc = /* @__PURE__ */ __name(function(bitmap, value) {
43634
43660
  return {
43635
43661
  enumerable: !(bitmap & 1),
@@ -43638,9 +43664,9 @@ ${latestSubscriptionCallbackError.current.stack}
43638
43664
  value
43639
43665
  };
43640
43666
  }, "_propertyDesc");
43641
- var dP$2 = _objectDp;
43667
+ var dP$2 = require_objectDp();
43642
43668
  var createDesc$3 = _propertyDesc;
43643
- var _hide = _descriptors ? function(object2, key2, value) {
43669
+ var _hide = require_descriptors() ? function(object2, key2, value) {
43644
43670
  return dP$2.f(object2, key2, createDesc$3(1, value));
43645
43671
  } : function(object2, key2, value) {
43646
43672
  object2[key2] = value;
@@ -43712,16 +43738,25 @@ ${latestSubscriptionCallbackError.current.stack}
43712
43738
  var _cof = /* @__PURE__ */ __name(function(it) {
43713
43739
  return toString$4.call(it).slice(8, -1);
43714
43740
  }, "_cof");
43715
- var cof$2 = _cof;
43716
- var _iobject = Object("z").propertyIsEnumerable(0) ? Object : function(it) {
43717
- return cof$2(it) == "String" ? it.split("") : Object(it);
43718
- };
43741
+ var _iobject;
43742
+ var hasRequired_iobject;
43743
+ function require_iobject() {
43744
+ if (hasRequired_iobject)
43745
+ return _iobject;
43746
+ hasRequired_iobject = 1;
43747
+ var cof2 = _cof;
43748
+ _iobject = Object("z").propertyIsEnumerable(0) ? Object : function(it) {
43749
+ return cof2(it) == "String" ? it.split("") : Object(it);
43750
+ };
43751
+ return _iobject;
43752
+ }
43753
+ __name(require_iobject, "require_iobject");
43719
43754
  var _defined = /* @__PURE__ */ __name(function(it) {
43720
43755
  if (it == void 0)
43721
43756
  throw TypeError("Can't call method on " + it);
43722
43757
  return it;
43723
43758
  }, "_defined");
43724
- var IObject = _iobject;
43759
+ var IObject = require_iobject();
43725
43760
  var defined$2 = _defined;
43726
43761
  var _toIobject = /* @__PURE__ */ __name(function(it) {
43727
43762
  return IObject(defined$2(it));
@@ -43837,12 +43872,12 @@ ${latestSubscriptionCallbackError.current.stack}
43837
43872
  if (hasRequired_objectAssign)
43838
43873
  return _objectAssign;
43839
43874
  hasRequired_objectAssign = 1;
43840
- var DESCRIPTORS2 = _descriptors;
43875
+ var DESCRIPTORS2 = require_descriptors();
43841
43876
  var getKeys2 = _objectKeys;
43842
43877
  var gOPS2 = _objectGops;
43843
43878
  var pIE2 = require_objectPie();
43844
43879
  var toObject2 = _toObject;
43845
- var IObject2 = _iobject;
43880
+ var IObject2 = require_iobject();
43846
43881
  var $assign = Object.assign;
43847
43882
  _objectAssign = !$assign || _fails(function() {
43848
43883
  var A2 = {};
@@ -43903,10 +43938,10 @@ ${latestSubscriptionCallbackError.current.stack}
43903
43938
  }, "_iterStep");
43904
43939
  var _iterators = {};
43905
43940
  var _redefine = _hide;
43906
- var dP$1 = _objectDp;
43941
+ var dP$1 = require_objectDp();
43907
43942
  var anObject$4 = _anObject;
43908
43943
  var getKeys$1 = _objectKeys;
43909
- var _objectDps = _descriptors ? Object.defineProperties : /* @__PURE__ */ __name(function defineProperties2(O2, Properties2) {
43944
+ var _objectDps = require_descriptors() ? Object.defineProperties : /* @__PURE__ */ __name(function defineProperties2(O2, Properties2) {
43910
43945
  anObject$4(O2);
43911
43946
  var keys2 = getKeys$1(Properties2);
43912
43947
  var length = keys2.length;
@@ -43973,7 +44008,7 @@ ${latestSubscriptionCallbackError.current.stack}
43973
44008
  };
43974
44009
  $exports.store = store$2;
43975
44010
  var _wksExports = _wks.exports;
43976
- var def = _objectDp.f;
44011
+ var def = require_objectDp().f;
43977
44012
  var has$b = _has;
43978
44013
  var TAG$1 = _wksExports("toStringTag");
43979
44014
  var _setToStringTag = /* @__PURE__ */ __name(function(it, tag, stat) {
@@ -44246,7 +44281,7 @@ ${latestSubscriptionCallbackError.current.stack}
44246
44281
  var _isArrayIter = /* @__PURE__ */ __name(function(it) {
44247
44282
  return it !== void 0 && (Iterators.Array === it || ArrayProto[ITERATOR] === it);
44248
44283
  }, "_isArrayIter");
44249
- var $defineProperty$1 = _objectDp;
44284
+ var $defineProperty$1 = require_objectDp();
44250
44285
  var createDesc$2 = _propertyDesc;
44251
44286
  var _createProperty = /* @__PURE__ */ __name(function(object2, index2, value) {
44252
44287
  if (index2 in object2)
@@ -44375,7 +44410,7 @@ ${latestSubscriptionCallbackError.current.stack}
44375
44410
  }
44376
44411
  }, "_default$8");
44377
44412
  var $export$3 = _export;
44378
- $export$3($export$3.S + $export$3.F * !_descriptors, "Object", { defineProperty: _objectDp.f });
44413
+ $export$3($export$3.S + $export$3.F * !require_descriptors(), "Object", { defineProperty: require_objectDp().f });
44379
44414
  var $Object$1 = _coreExports.Object;
44380
44415
  var defineProperty$6 = /* @__PURE__ */ __name(function defineProperty2(it, key2, desc) {
44381
44416
  return $Object$1.defineProperty(it, key2, desc);
@@ -44416,7 +44451,7 @@ ${latestSubscriptionCallbackError.current.stack}
44416
44451
  var META$1 = _uid("meta");
44417
44452
  var isObject$5 = _isObject;
44418
44453
  var has$9 = _has;
44419
- var setDesc = _objectDp.f;
44454
+ var setDesc = require_objectDp().f;
44420
44455
  var id$1 = 0;
44421
44456
  var isExtensible = Object.isExtensible || function() {
44422
44457
  return true;
@@ -44469,7 +44504,7 @@ ${latestSubscriptionCallbackError.current.stack}
44469
44504
  var _metaExports = _meta.exports;
44470
44505
  var core = _coreExports;
44471
44506
  var wksExt$1 = _wksExt;
44472
- var defineProperty$4 = _objectDp.f;
44507
+ var defineProperty$4 = require_objectDp().f;
44473
44508
  var _wksDefine = /* @__PURE__ */ __name(function(name2) {
44474
44509
  var $Symbol2 = core.Symbol || (core.Symbol = {});
44475
44510
  if (name2.charAt(0) != "_" && !(name2 in $Symbol2))
@@ -44523,9 +44558,9 @@ ${latestSubscriptionCallbackError.current.stack}
44523
44558
  var toIObject$1 = _toIobject;
44524
44559
  var toPrimitive$1 = _toPrimitive$1;
44525
44560
  var has$8 = _has;
44526
- var IE8_DOM_DEFINE = _ie8DomDefine;
44561
+ var IE8_DOM_DEFINE = require_ie8DomDefine();
44527
44562
  var gOPD$2 = Object.getOwnPropertyDescriptor;
44528
- _objectGopd.f = _descriptors ? gOPD$2 : /* @__PURE__ */ __name(function getOwnPropertyDescriptor2(O2, P2) {
44563
+ _objectGopd.f = require_descriptors() ? gOPD$2 : /* @__PURE__ */ __name(function getOwnPropertyDescriptor2(O2, P2) {
44529
44564
  O2 = toIObject$1(O2);
44530
44565
  P2 = toPrimitive$1(P2, true);
44531
44566
  if (IE8_DOM_DEFINE)
@@ -44538,7 +44573,7 @@ ${latestSubscriptionCallbackError.current.stack}
44538
44573
  }, "getOwnPropertyDescriptor");
44539
44574
  var global$1 = _globalExports;
44540
44575
  var has$7 = _has;
44541
- var DESCRIPTORS = _descriptors;
44576
+ var DESCRIPTORS = require_descriptors();
44542
44577
  var $export$2 = _export;
44543
44578
  var redefine = _redefine;
44544
44579
  var META = _metaExports.KEY;
@@ -44561,7 +44596,7 @@ ${latestSubscriptionCallbackError.current.stack}
44561
44596
  var gOPNExt = _objectGopnExt;
44562
44597
  var $GOPD = _objectGopd;
44563
44598
  var $GOPS = _objectGops;
44564
- var $DP = _objectDp;
44599
+ var $DP = require_objectDp();
44565
44600
  var $keys$1 = _objectKeys;
44566
44601
  var gOPD$1 = $GOPD.f;
44567
44602
  var dP = $DP.f;
@@ -100433,11 +100468,11 @@ ${latestSubscriptionCallbackError.current.stack}
100433
100468
  {
100434
100469
  description: "Download Example CSV File",
100435
100470
  exampleFile: () => {
100436
- var _a3;
100471
+ var _a3, _b3;
100437
100472
  const rows = [];
100438
100473
  const schemaToUse = [
100439
100474
  ...a2.validateAgainstSchema.fields,
100440
- ...a2.validateAgainstSchema.exampleDownloadFields
100475
+ ...(_a3 = a2.validateAgainstSchema.exampleDownloadFields) != null ? _a3 : []
100441
100476
  ];
100442
100477
  rows.push(
100443
100478
  schemaToUse.map((f2) => {
@@ -100450,7 +100485,7 @@ ${latestSubscriptionCallbackError.current.stack}
100450
100485
  })
100451
100486
  );
100452
100487
  const csv = papaparse_minExports.unparse(rows);
100453
- const downloadFn = ((_a3 = window.Cypress) == null ? void 0 : _a3.downloadTest) || downloadjs;
100488
+ const downloadFn = ((_b3 = window.Cypress) == null ? void 0 : _b3.downloadTest) || downloadjs;
100454
100489
  downloadFn(csv, `${nameToUse}.csv`, "csv");
100455
100490
  }
100456
100491
  },
@@ -122799,7 +122834,7 @@ ${latestSubscriptionCallbackError.current.stack}
122799
122834
  return parsingResultArray;
122800
122835
  }
122801
122836
  __name(flattenSequenceArray, "flattenSequenceArray");
122802
- function parseFeatureLocation(locStr, isProtein2, inclusive1BasedStart, inclusive1BasedEnd) {
122837
+ function parseFeatureLocation(locStr, isProtein2, inclusive1BasedStart, inclusive1BasedEnd, isCircular, sequenceLength) {
122803
122838
  locStr = locStr.trim();
122804
122839
  const locArr = [];
122805
122840
  locStr.replace(/(\d+)/g, function(string2, match2) {
@@ -122820,6 +122855,19 @@ ${latestSubscriptionCallbackError.current.stack}
122820
122855
  isProtein2 ? convertAACaretPositionOrRangeToDna(location2) : location2
122821
122856
  );
122822
122857
  }
122858
+ if (isCircular) {
122859
+ for (let i2 = 0; i2 < locArray.length; i2 += 2) {
122860
+ const firstFeature = locArray[i2];
122861
+ const secondFeature = locArray[i2 + 1];
122862
+ if (firstFeature.end === sequenceLength - (inclusive1BasedEnd ? 0 : 1) && secondFeature.start === 1 - (inclusive1BasedStart ? 0 : 1)) {
122863
+ locArray[i2] = {
122864
+ start: firstFeature.start,
122865
+ end: secondFeature.end
122866
+ };
122867
+ locArray.splice(i2 + 1, 1);
122868
+ }
122869
+ }
122870
+ }
122823
122871
  return locArray;
122824
122872
  }
122825
122873
  __name(parseFeatureLocation, "parseFeatureLocation");
@@ -123153,7 +123201,9 @@ ${latestSubscriptionCallbackError.current.stack}
123153
123201
  line.trim(),
123154
123202
  options.isProtein,
123155
123203
  inclusive1BasedStart,
123156
- inclusive1BasedEnd
123204
+ inclusive1BasedEnd,
123205
+ result.parsedSequence.circular,
123206
+ result.parsedSequence.sequence.length
123157
123207
  )
123158
123208
  );
123159
123209
  lastLineWasLocation = true;
@@ -123186,7 +123236,9 @@ ${latestSubscriptionCallbackError.current.stack}
123186
123236
  val2,
123187
123237
  options.isProtein,
123188
123238
  inclusive1BasedStart,
123189
- inclusive1BasedEnd
123239
+ inclusive1BasedEnd,
123240
+ result.parsedSequence.circular,
123241
+ result.parsedSequence.sequence.length
123190
123242
  )
123191
123243
  );
123192
123244
  lastLineWasLocation = true;
@@ -154004,7 +154056,7 @@ Part of ${annotation.translationType} Translation from BPs ${annotation.start +
154004
154056
  }
154005
154057
  __name(showFileDialog, "showFileDialog");
154006
154058
  const name = "@teselagen/ove";
154007
- const version = "0.3.61";
154059
+ const version = "0.3.62";
154008
154060
  const main = "./src/index.js";
154009
154061
  const exports$1 = {
154010
154062
  ".": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@teselagen/ove",
3
- "version": "0.3.62",
3
+ "version": "0.3.63",
4
4
  "main": "./src/index.js",
5
5
  "exports": {
6
6
  ".": {
@@ -15,10 +15,10 @@
15
15
  "dependencies": {
16
16
  "@teselagen/sequence-utils": "0.3.15",
17
17
  "@teselagen/range-utils": "0.3.7",
18
- "@teselagen/ui": "0.3.52",
18
+ "@teselagen/ui": "0.3.55",
19
19
  "@teselagen/file-utils": "0.3.11",
20
20
  "@teselagen/bounce-loader": "0.3.11",
21
- "@teselagen/bio-parsers": "0.4.9",
21
+ "@teselagen/bio-parsers": "0.4.10",
22
22
  "@blueprintjs/core": "3.52.0",
23
23
  "@blueprintjs/datetime": "3.23.19",
24
24
  "@blueprintjs/icons": "3.33.0",