@teselagen/bio-parsers 0.4.16 → 0.4.18
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 +28841 -0
- package/index.d.ts +16 -16
- package/index.js +2125 -6156
- package/index.umd.cjs +28845 -0
- package/package.json +1 -1
- package/src/genbankToJson.js +1 -0
- package/src/geneiousXmlToJson.js +2 -2
- package/src/gffToJson.js +1 -1
- package/src/jbeiXmlToJson.js +1 -1
- package/src/jsonToGenbank.js +3 -3
- package/src/jsonToJsonString.js +1 -1
- package/src/sbolXmlToJson.js +1 -1
- package/src/snapgeneToJson.js +1 -1
- package/src/utils/cleanUpTeselagenJsonForExport.js +1 -1
- package/src/utils/searchWholeObjByName.js +1 -1
- package/src/utils/validateSequence.js +3 -3
package/package.json
CHANGED
package/src/genbankToJson.js
CHANGED
package/src/geneiousXmlToJson.js
CHANGED
|
@@ -7,8 +7,8 @@ import {
|
|
|
7
7
|
} from "./utils/searchWholeObjByName";
|
|
8
8
|
|
|
9
9
|
import { XMLParser } from "fast-xml-parser";
|
|
10
|
-
import { forEach, flatMap } from "lodash";
|
|
11
|
-
import { filter } from "lodash";
|
|
10
|
+
import { forEach, flatMap } from "lodash-es";
|
|
11
|
+
import { filter } from "lodash-es";
|
|
12
12
|
|
|
13
13
|
//Here's what should be in the callback:
|
|
14
14
|
// {
|
package/src/gffToJson.js
CHANGED
package/src/jbeiXmlToJson.js
CHANGED
package/src/jsonToGenbank.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/* eslint-disable no-var*/
|
|
2
|
-
import { get, cloneDeep, map, each, isObject, flatMap } from "lodash";
|
|
2
|
+
import { get, cloneDeep, map, each, isObject, flatMap } from "lodash-es";
|
|
3
3
|
import color from "color";
|
|
4
4
|
|
|
5
5
|
import pragmasAndTypes from "./utils/pragmasAndTypes.js";
|
|
@@ -343,8 +343,8 @@ function featureToGenbankString(feat, options) {
|
|
|
343
343
|
feat.arrowheadType.toUpperCase() === "BOTH"
|
|
344
344
|
? "BOTH"
|
|
345
345
|
: feat.arrowheadType.toUpperCase() === "NONE"
|
|
346
|
-
|
|
347
|
-
|
|
346
|
+
? "NONE"
|
|
347
|
+
: undefined;
|
|
348
348
|
|
|
349
349
|
if (valToAdd) addToNotes(feat, "direction", valToAdd);
|
|
350
350
|
}
|
package/src/jsonToJsonString.js
CHANGED
package/src/sbolXmlToJson.js
CHANGED
package/src/snapgeneToJson.js
CHANGED
|
@@ -9,7 +9,7 @@ import getArrayBufferFromFile from "./utils/getArrayBufferFromFile";
|
|
|
9
9
|
import createInitialSequence from "./utils/createInitialSequence";
|
|
10
10
|
import validateSequenceArray from "./utils/validateSequenceArray";
|
|
11
11
|
import flattenSequenceArray from "./utils/flattenSequenceArray";
|
|
12
|
-
import { get } from "lodash";
|
|
12
|
+
import { get } from "lodash-es";
|
|
13
13
|
import { XMLParser } from "fast-xml-parser";
|
|
14
14
|
import extractFileExtension from "./utils/extractFileExtension";
|
|
15
15
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
//tnr: taken from https://github.com/angus-c/waldojs (not using waldojs as it is not being maintained and pulled in nasty babel runtime transforms)
|
|
2
2
|
/* eslint-disable eqeqeq */
|
|
3
|
-
import { isEqual } from "lodash";
|
|
3
|
+
import { isEqual } from "lodash-es";
|
|
4
4
|
|
|
5
5
|
class Match {
|
|
6
6
|
constructor(props) {
|
|
@@ -4,10 +4,10 @@ import {
|
|
|
4
4
|
filterSequenceString,
|
|
5
5
|
guessIfSequenceIsDnaAndNotProtein
|
|
6
6
|
} from "@teselagen/sequence-utils";
|
|
7
|
-
import { filter, some, upperFirst } from "lodash";
|
|
7
|
+
import { filter, some, upperFirst } from "lodash-es";
|
|
8
8
|
import pragmasAndTypes from "./pragmasAndTypes.js";
|
|
9
|
-
import { forEach } from "lodash";
|
|
10
|
-
import { map } from "lodash";
|
|
9
|
+
import { forEach } from "lodash-es";
|
|
10
|
+
import { map } from "lodash-es";
|
|
11
11
|
import { unmangleUrls } from "./unmangleUrls";
|
|
12
12
|
import { reformatName } from "./NameUtils.js";
|
|
13
13
|
|