@teselagen/bio-parsers 0.4.2 → 0.4.4
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 +7 -4
- package/index.mjs +7 -4
- package/index.umd.js +7 -4
- package/package.json +2 -2
- package/src/utils/validateSequence.js +2 -2
package/index.js
CHANGED
|
@@ -6170,7 +6170,7 @@ lodash.exports;
|
|
|
6170
6170
|
})(lodash, lodash.exports);
|
|
6171
6171
|
var lodashExports = lodash.exports;
|
|
6172
6172
|
const _ = /* @__PURE__ */ getDefaultExportFromCjs(lodashExports);
|
|
6173
|
-
const extended_protein_letters = "ACDEFGHIKLMNPQRSTVWYBXZJUO
|
|
6173
|
+
const extended_protein_letters = "ACDEFGHIKLMNPQRSTVWYBXZJUO";
|
|
6174
6174
|
const ambiguous_dna_letters = "GATCRYWSMKHBVDN";
|
|
6175
6175
|
const ambiguous_rna_letters = "GAUCRYWSMKHBVDN";
|
|
6176
6176
|
const aminoAcidToDegenerateDnaMap = {
|
|
@@ -11351,9 +11351,12 @@ function getReplaceChars({
|
|
|
11351
11351
|
isRna,
|
|
11352
11352
|
isMixedRnaAndDna
|
|
11353
11353
|
} = {}) {
|
|
11354
|
-
return isProtein ? {} :
|
|
11355
|
-
//
|
|
11356
|
-
{}
|
|
11354
|
+
return isProtein ? {} : (
|
|
11355
|
+
// {".": "*"}
|
|
11356
|
+
isOligo ? {} : isRna ? { t: "u" } : isMixedRnaAndDna ? {} : (
|
|
11357
|
+
//just plain old dna
|
|
11358
|
+
{}
|
|
11359
|
+
)
|
|
11357
11360
|
);
|
|
11358
11361
|
}
|
|
11359
11362
|
__name(getReplaceChars, "getReplaceChars");
|
package/index.mjs
CHANGED
|
@@ -6168,7 +6168,7 @@ lodash.exports;
|
|
|
6168
6168
|
})(lodash, lodash.exports);
|
|
6169
6169
|
var lodashExports = lodash.exports;
|
|
6170
6170
|
const _ = /* @__PURE__ */ getDefaultExportFromCjs(lodashExports);
|
|
6171
|
-
const extended_protein_letters = "ACDEFGHIKLMNPQRSTVWYBXZJUO
|
|
6171
|
+
const extended_protein_letters = "ACDEFGHIKLMNPQRSTVWYBXZJUO";
|
|
6172
6172
|
const ambiguous_dna_letters = "GATCRYWSMKHBVDN";
|
|
6173
6173
|
const ambiguous_rna_letters = "GAUCRYWSMKHBVDN";
|
|
6174
6174
|
const aminoAcidToDegenerateDnaMap = {
|
|
@@ -11349,9 +11349,12 @@ function getReplaceChars({
|
|
|
11349
11349
|
isRna,
|
|
11350
11350
|
isMixedRnaAndDna
|
|
11351
11351
|
} = {}) {
|
|
11352
|
-
return isProtein ? {} :
|
|
11353
|
-
//
|
|
11354
|
-
{}
|
|
11352
|
+
return isProtein ? {} : (
|
|
11353
|
+
// {".": "*"}
|
|
11354
|
+
isOligo ? {} : isRna ? { t: "u" } : isMixedRnaAndDna ? {} : (
|
|
11355
|
+
//just plain old dna
|
|
11356
|
+
{}
|
|
11357
|
+
)
|
|
11355
11358
|
);
|
|
11356
11359
|
}
|
|
11357
11360
|
__name(getReplaceChars, "getReplaceChars");
|
package/index.umd.js
CHANGED
|
@@ -6172,7 +6172,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
6172
6172
|
})(lodash, lodash.exports);
|
|
6173
6173
|
var lodashExports = lodash.exports;
|
|
6174
6174
|
const _ = /* @__PURE__ */ getDefaultExportFromCjs(lodashExports);
|
|
6175
|
-
const extended_protein_letters = "ACDEFGHIKLMNPQRSTVWYBXZJUO
|
|
6175
|
+
const extended_protein_letters = "ACDEFGHIKLMNPQRSTVWYBXZJUO";
|
|
6176
6176
|
const ambiguous_dna_letters = "GATCRYWSMKHBVDN";
|
|
6177
6177
|
const ambiguous_rna_letters = "GAUCRYWSMKHBVDN";
|
|
6178
6178
|
const aminoAcidToDegenerateDnaMap = {
|
|
@@ -11353,9 +11353,12 @@ var __async = (__this, __arguments, generator) => {
|
|
|
11353
11353
|
isRna,
|
|
11354
11354
|
isMixedRnaAndDna
|
|
11355
11355
|
} = {}) {
|
|
11356
|
-
return isProtein ? {} :
|
|
11357
|
-
//
|
|
11358
|
-
{}
|
|
11356
|
+
return isProtein ? {} : (
|
|
11357
|
+
// {".": "*"}
|
|
11358
|
+
isOligo ? {} : isRna ? { t: "u" } : isMixedRnaAndDna ? {} : (
|
|
11359
|
+
//just plain old dna
|
|
11360
|
+
{}
|
|
11361
|
+
)
|
|
11359
11362
|
);
|
|
11360
11363
|
}
|
|
11361
11364
|
__name(getReplaceChars, "getReplaceChars");
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@teselagen/bio-parsers",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.4",
|
|
4
4
|
"dependencies": {
|
|
5
|
-
"@teselagen/sequence-utils": "0.3.
|
|
5
|
+
"@teselagen/sequence-utils": "0.3.11",
|
|
6
6
|
"@teselagen/range-utils": "0.3.7",
|
|
7
7
|
"@gmod/gff": "^1.2.1",
|
|
8
8
|
"buffer": "^6.0.3",
|
|
@@ -29,7 +29,7 @@ export default function validateSequence(sequence, options = {}) {
|
|
|
29
29
|
inclusive1BasedEnd,
|
|
30
30
|
additionalValidChars,
|
|
31
31
|
allowOverflowAnnotations,
|
|
32
|
-
coerceFeatureTypes
|
|
32
|
+
coerceFeatureTypes
|
|
33
33
|
} = options;
|
|
34
34
|
[
|
|
35
35
|
"isDNA",
|
|
@@ -95,7 +95,7 @@ export default function validateSequence(sequence, options = {}) {
|
|
|
95
95
|
const [validChars, warnings] = filterSequenceString(sequence.sequence, {
|
|
96
96
|
name: sequence.name,
|
|
97
97
|
isProtein: true,
|
|
98
|
-
additionalValidChars
|
|
98
|
+
additionalValidChars
|
|
99
99
|
});
|
|
100
100
|
if (validChars !== sequence.sequence) {
|
|
101
101
|
sequence.sequence = validChars;
|