@teselagen/bio-parsers 0.4.5 → 0.4.6

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.js CHANGED
@@ -948,7 +948,7 @@ lodash.exports;
948
948
  }
949
949
  __name(unicodeWords, "unicodeWords");
950
950
  var runInContext = /* @__PURE__ */ __name(function runInContext2(context) {
951
- context = context == null ? root : _2.defaults(root.Object(), context, _2.pick(root, contextProps));
951
+ context = context == null ? root : _.defaults(root.Object(), context, _.pick(root, contextProps));
952
952
  var Array2 = context.Array, Date2 = context.Date, Error2 = context.Error, Function2 = context.Function, Math2 = context.Math, Object2 = context.Object, RegExp2 = context.RegExp, String2 = context.String, TypeError2 = context.TypeError;
953
953
  var arrayProto = Array2.prototype, funcProto = Function2.prototype, objectProto = Object2.prototype;
954
954
  var coreJsData = context["__core-js_shared__"];
@@ -6159,17 +6159,16 @@ lodash.exports;
6159
6159
  }
6160
6160
  return lodash2;
6161
6161
  }, "runInContext");
6162
- var _2 = runInContext();
6162
+ var _ = runInContext();
6163
6163
  if (freeModule) {
6164
- (freeModule.exports = _2)._ = _2;
6165
- freeExports._ = _2;
6164
+ (freeModule.exports = _)._ = _;
6165
+ freeExports._ = _;
6166
6166
  } else {
6167
- root._ = _2;
6167
+ root._ = _;
6168
6168
  }
6169
6169
  }).call(commonjsGlobal);
6170
6170
  })(lodash, lodash.exports);
6171
6171
  var lodashExports = lodash.exports;
6172
- const _ = /* @__PURE__ */ getDefaultExportFromCjs(lodashExports);
6173
6172
  const extended_protein_letters = "ACDEFGHIKLMNPQRSTVWYBXZJUO";
6174
6173
  const ambiguous_dna_letters = "GATCRYWSMKHBVDN";
6175
6174
  const ambiguous_rna_letters = "GAUCRYWSMKHBVDN";
@@ -26909,7 +26908,7 @@ function requireBuffer_list() {
26909
26908
  // Make sure the linked list only shows the minimal necessary information.
26910
26909
  }, {
26911
26910
  key: custom,
26912
- value: /* @__PURE__ */ __name(function value(_2, options) {
26911
+ value: /* @__PURE__ */ __name(function value(_, options) {
26913
26912
  return inspect(this, _objectSpread(_objectSpread({}, options), {}, {
26914
26913
  // Only inspect one level.
26915
26914
  depth: 0,
@@ -27205,7 +27204,7 @@ function requireBrowser() {
27205
27204
  try {
27206
27205
  if (!commonjsGlobal.localStorage)
27207
27206
  return false;
27208
- } catch (_2) {
27207
+ } catch (_) {
27209
27208
  return false;
27210
27209
  }
27211
27210
  var val2 = commonjsGlobal.localStorage[name];
@@ -27313,7 +27312,7 @@ function require_stream_writable() {
27313
27312
  return this.getBuffer();
27314
27313
  }, "writableStateBufferGetter"), "_writableState.buffer is deprecated. Use _writableState.getBuffer instead.", "DEP0003")
27315
27314
  });
27316
- } catch (_2) {
27315
+ } catch (_) {
27317
27316
  }
27318
27317
  })();
27319
27318
  var realHasInstance;
@@ -29935,7 +29934,7 @@ function gffToJson(string) {
29935
29934
  if (!features[feature.seq_id])
29936
29935
  features[feature.seq_id] = [];
29937
29936
  const attributes = feature.attributes || {};
29938
- const name = _.get(attributes, "ID[0]");
29937
+ const name = lodashExports.get(attributes, "ID[0]");
29939
29938
  features[feature.seq_id].push({
29940
29939
  name,
29941
29940
  start: feature.start,
package/index.mjs CHANGED
@@ -946,7 +946,7 @@ lodash.exports;
946
946
  }
947
947
  __name(unicodeWords, "unicodeWords");
948
948
  var runInContext = /* @__PURE__ */ __name(function runInContext2(context) {
949
- context = context == null ? root : _2.defaults(root.Object(), context, _2.pick(root, contextProps));
949
+ context = context == null ? root : _.defaults(root.Object(), context, _.pick(root, contextProps));
950
950
  var Array2 = context.Array, Date2 = context.Date, Error2 = context.Error, Function2 = context.Function, Math2 = context.Math, Object2 = context.Object, RegExp2 = context.RegExp, String2 = context.String, TypeError2 = context.TypeError;
951
951
  var arrayProto = Array2.prototype, funcProto = Function2.prototype, objectProto = Object2.prototype;
952
952
  var coreJsData = context["__core-js_shared__"];
@@ -6157,17 +6157,16 @@ lodash.exports;
6157
6157
  }
6158
6158
  return lodash2;
6159
6159
  }, "runInContext");
6160
- var _2 = runInContext();
6160
+ var _ = runInContext();
6161
6161
  if (freeModule) {
6162
- (freeModule.exports = _2)._ = _2;
6163
- freeExports._ = _2;
6162
+ (freeModule.exports = _)._ = _;
6163
+ freeExports._ = _;
6164
6164
  } else {
6165
- root._ = _2;
6165
+ root._ = _;
6166
6166
  }
6167
6167
  }).call(commonjsGlobal);
6168
6168
  })(lodash, lodash.exports);
6169
6169
  var lodashExports = lodash.exports;
6170
- const _ = /* @__PURE__ */ getDefaultExportFromCjs(lodashExports);
6171
6170
  const extended_protein_letters = "ACDEFGHIKLMNPQRSTVWYBXZJUO";
6172
6171
  const ambiguous_dna_letters = "GATCRYWSMKHBVDN";
6173
6172
  const ambiguous_rna_letters = "GAUCRYWSMKHBVDN";
@@ -26907,7 +26906,7 @@ function requireBuffer_list() {
26907
26906
  // Make sure the linked list only shows the minimal necessary information.
26908
26907
  }, {
26909
26908
  key: custom,
26910
- value: /* @__PURE__ */ __name(function value(_2, options) {
26909
+ value: /* @__PURE__ */ __name(function value(_, options) {
26911
26910
  return inspect(this, _objectSpread(_objectSpread({}, options), {}, {
26912
26911
  // Only inspect one level.
26913
26912
  depth: 0,
@@ -27203,7 +27202,7 @@ function requireBrowser() {
27203
27202
  try {
27204
27203
  if (!commonjsGlobal.localStorage)
27205
27204
  return false;
27206
- } catch (_2) {
27205
+ } catch (_) {
27207
27206
  return false;
27208
27207
  }
27209
27208
  var val2 = commonjsGlobal.localStorage[name];
@@ -27311,7 +27310,7 @@ function require_stream_writable() {
27311
27310
  return this.getBuffer();
27312
27311
  }, "writableStateBufferGetter"), "_writableState.buffer is deprecated. Use _writableState.getBuffer instead.", "DEP0003")
27313
27312
  });
27314
- } catch (_2) {
27313
+ } catch (_) {
27315
27314
  }
27316
27315
  })();
27317
27316
  var realHasInstance;
@@ -29933,7 +29932,7 @@ function gffToJson(string) {
29933
29932
  if (!features[feature.seq_id])
29934
29933
  features[feature.seq_id] = [];
29935
29934
  const attributes = feature.attributes || {};
29936
- const name = _.get(attributes, "ID[0]");
29935
+ const name = lodashExports.get(attributes, "ID[0]");
29937
29936
  features[feature.seq_id].push({
29938
29937
  name,
29939
29938
  start: feature.start,
package/index.umd.js CHANGED
@@ -950,7 +950,7 @@ var __async = (__this, __arguments, generator) => {
950
950
  }
951
951
  __name(unicodeWords, "unicodeWords");
952
952
  var runInContext = /* @__PURE__ */ __name(function runInContext2(context) {
953
- context = context == null ? root : _2.defaults(root.Object(), context, _2.pick(root, contextProps));
953
+ context = context == null ? root : _.defaults(root.Object(), context, _.pick(root, contextProps));
954
954
  var Array2 = context.Array, Date2 = context.Date, Error2 = context.Error, Function2 = context.Function, Math2 = context.Math, Object2 = context.Object, RegExp2 = context.RegExp, String2 = context.String, TypeError2 = context.TypeError;
955
955
  var arrayProto = Array2.prototype, funcProto = Function2.prototype, objectProto = Object2.prototype;
956
956
  var coreJsData = context["__core-js_shared__"];
@@ -6161,17 +6161,16 @@ var __async = (__this, __arguments, generator) => {
6161
6161
  }
6162
6162
  return lodash2;
6163
6163
  }, "runInContext");
6164
- var _2 = runInContext();
6164
+ var _ = runInContext();
6165
6165
  if (freeModule) {
6166
- (freeModule.exports = _2)._ = _2;
6167
- freeExports._ = _2;
6166
+ (freeModule.exports = _)._ = _;
6167
+ freeExports._ = _;
6168
6168
  } else {
6169
- root._ = _2;
6169
+ root._ = _;
6170
6170
  }
6171
6171
  }).call(commonjsGlobal);
6172
6172
  })(lodash, lodash.exports);
6173
6173
  var lodashExports = lodash.exports;
6174
- const _ = /* @__PURE__ */ getDefaultExportFromCjs(lodashExports);
6175
6174
  const extended_protein_letters = "ACDEFGHIKLMNPQRSTVWYBXZJUO";
6176
6175
  const ambiguous_dna_letters = "GATCRYWSMKHBVDN";
6177
6176
  const ambiguous_rna_letters = "GAUCRYWSMKHBVDN";
@@ -26911,7 +26910,7 @@ var __async = (__this, __arguments, generator) => {
26911
26910
  // Make sure the linked list only shows the minimal necessary information.
26912
26911
  }, {
26913
26912
  key: custom,
26914
- value: /* @__PURE__ */ __name(function value(_2, options) {
26913
+ value: /* @__PURE__ */ __name(function value(_, options) {
26915
26914
  return inspect(this, _objectSpread(_objectSpread({}, options), {}, {
26916
26915
  // Only inspect one level.
26917
26916
  depth: 0,
@@ -27207,7 +27206,7 @@ var __async = (__this, __arguments, generator) => {
27207
27206
  try {
27208
27207
  if (!commonjsGlobal.localStorage)
27209
27208
  return false;
27210
- } catch (_2) {
27209
+ } catch (_) {
27211
27210
  return false;
27212
27211
  }
27213
27212
  var val2 = commonjsGlobal.localStorage[name2];
@@ -27315,7 +27314,7 @@ var __async = (__this, __arguments, generator) => {
27315
27314
  return this.getBuffer();
27316
27315
  }, "writableStateBufferGetter"), "_writableState.buffer is deprecated. Use _writableState.getBuffer instead.", "DEP0003")
27317
27316
  });
27318
- } catch (_2) {
27317
+ } catch (_) {
27319
27318
  }
27320
27319
  })();
27321
27320
  var realHasInstance;
@@ -29937,7 +29936,7 @@ ${seq.sequence}
29937
29936
  if (!features[feature.seq_id])
29938
29937
  features[feature.seq_id] = [];
29939
29938
  const attributes = feature.attributes || {};
29940
- const name2 = _.get(attributes, "ID[0]");
29939
+ const name2 = lodashExports.get(attributes, "ID[0]");
29941
29940
  features[feature.seq_id].push({
29942
29941
  name: name2,
29943
29942
  start: feature.start,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@teselagen/bio-parsers",
3
- "version": "0.4.5",
3
+ "version": "0.4.6",
4
4
  "dependencies": {
5
5
  "@teselagen/sequence-utils": "0.3.12",
6
6
  "@teselagen/range-utils": "0.3.7",
package/src/gffToJson.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import gff from "@gmod/gff";
2
- import _ from "lodash";
2
+ import {get} from "lodash";
3
3
 
4
4
  function gffToJson(string) {
5
5
  const arrayOfThings = gff.parseStringSync(string);
@@ -13,7 +13,7 @@ function gffToJson(string) {
13
13
  const feature = featureOrSeq[0];
14
14
  if (!features[feature.seq_id]) features[feature.seq_id] = [];
15
15
  const attributes = feature.attributes || {};
16
- const name = _.get(attributes, "ID[0]");
16
+ const name = get(attributes, "ID[0]");
17
17
  features[feature.seq_id].push({
18
18
  name,
19
19
  start: feature.start,