@teselagen/bio-parsers 0.4.22 → 0.4.23-beta.2
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 +8 -7
- package/index.js +8 -7
- package/index.umd.cjs +8 -7
- package/package.json +9 -2
package/index.cjs
CHANGED
|
@@ -7436,12 +7436,18 @@ function getAminoAcidDataForEachBaseOfDna(originalSequenceString, forward, optio
|
|
|
7436
7436
|
let positionInCodon = 0;
|
|
7437
7437
|
for (let i = 0; i < basesRead; i++) {
|
|
7438
7438
|
const posInCds = i + index;
|
|
7439
|
+
const sequenceIndex = codonPositionsInCDS.includes(posInCds) ? absoluteCodonPositions[codonPositionsInCDS.indexOf(posInCds)] : positionInCdsToPositionInMainSequence(
|
|
7440
|
+
posInCds,
|
|
7441
|
+
forward,
|
|
7442
|
+
translationRange,
|
|
7443
|
+
originalSequenceStringLength
|
|
7444
|
+
);
|
|
7439
7445
|
if (codonPositionsInCDS.includes(posInCds)) {
|
|
7440
7446
|
aminoAcidDataForEachBaseOfDNA.push({
|
|
7441
7447
|
aminoAcid,
|
|
7442
7448
|
positionInCodon,
|
|
7443
7449
|
aminoAcidIndex,
|
|
7444
|
-
sequenceIndex
|
|
7450
|
+
sequenceIndex,
|
|
7445
7451
|
codonRange,
|
|
7446
7452
|
fullCodon: codonPositionsInCDS.length === 3
|
|
7447
7453
|
});
|
|
@@ -7451,12 +7457,7 @@ function getAminoAcidDataForEachBaseOfDna(originalSequenceString, forward, optio
|
|
|
7451
7457
|
aminoAcid: null,
|
|
7452
7458
|
positionInCodon: null,
|
|
7453
7459
|
aminoAcidIndex: null,
|
|
7454
|
-
sequenceIndex
|
|
7455
|
-
posInCds,
|
|
7456
|
-
forward,
|
|
7457
|
-
translationRange,
|
|
7458
|
-
originalSequenceStringLength
|
|
7459
|
-
),
|
|
7460
|
+
sequenceIndex,
|
|
7460
7461
|
codonRange: null,
|
|
7461
7462
|
fullCodon: null
|
|
7462
7463
|
});
|
package/index.js
CHANGED
|
@@ -7434,12 +7434,18 @@ function getAminoAcidDataForEachBaseOfDna(originalSequenceString, forward, optio
|
|
|
7434
7434
|
let positionInCodon = 0;
|
|
7435
7435
|
for (let i = 0; i < basesRead; i++) {
|
|
7436
7436
|
const posInCds = i + index;
|
|
7437
|
+
const sequenceIndex = codonPositionsInCDS.includes(posInCds) ? absoluteCodonPositions[codonPositionsInCDS.indexOf(posInCds)] : positionInCdsToPositionInMainSequence(
|
|
7438
|
+
posInCds,
|
|
7439
|
+
forward,
|
|
7440
|
+
translationRange,
|
|
7441
|
+
originalSequenceStringLength
|
|
7442
|
+
);
|
|
7437
7443
|
if (codonPositionsInCDS.includes(posInCds)) {
|
|
7438
7444
|
aminoAcidDataForEachBaseOfDNA.push({
|
|
7439
7445
|
aminoAcid,
|
|
7440
7446
|
positionInCodon,
|
|
7441
7447
|
aminoAcidIndex,
|
|
7442
|
-
sequenceIndex
|
|
7448
|
+
sequenceIndex,
|
|
7443
7449
|
codonRange,
|
|
7444
7450
|
fullCodon: codonPositionsInCDS.length === 3
|
|
7445
7451
|
});
|
|
@@ -7449,12 +7455,7 @@ function getAminoAcidDataForEachBaseOfDna(originalSequenceString, forward, optio
|
|
|
7449
7455
|
aminoAcid: null,
|
|
7450
7456
|
positionInCodon: null,
|
|
7451
7457
|
aminoAcidIndex: null,
|
|
7452
|
-
sequenceIndex
|
|
7453
|
-
posInCds,
|
|
7454
|
-
forward,
|
|
7455
|
-
translationRange,
|
|
7456
|
-
originalSequenceStringLength
|
|
7457
|
-
),
|
|
7458
|
+
sequenceIndex,
|
|
7458
7459
|
codonRange: null,
|
|
7459
7460
|
fullCodon: null
|
|
7460
7461
|
});
|
package/index.umd.cjs
CHANGED
|
@@ -7438,12 +7438,18 @@ var __async = (__this, __arguments, generator) => {
|
|
|
7438
7438
|
let positionInCodon = 0;
|
|
7439
7439
|
for (let i2 = 0; i2 < basesRead; i2++) {
|
|
7440
7440
|
const posInCds = i2 + index;
|
|
7441
|
+
const sequenceIndex = codonPositionsInCDS.includes(posInCds) ? absoluteCodonPositions[codonPositionsInCDS.indexOf(posInCds)] : positionInCdsToPositionInMainSequence(
|
|
7442
|
+
posInCds,
|
|
7443
|
+
forward,
|
|
7444
|
+
translationRange,
|
|
7445
|
+
originalSequenceStringLength
|
|
7446
|
+
);
|
|
7441
7447
|
if (codonPositionsInCDS.includes(posInCds)) {
|
|
7442
7448
|
aminoAcidDataForEachBaseOfDNA.push({
|
|
7443
7449
|
aminoAcid,
|
|
7444
7450
|
positionInCodon,
|
|
7445
7451
|
aminoAcidIndex,
|
|
7446
|
-
sequenceIndex
|
|
7452
|
+
sequenceIndex,
|
|
7447
7453
|
codonRange,
|
|
7448
7454
|
fullCodon: codonPositionsInCDS.length === 3
|
|
7449
7455
|
});
|
|
@@ -7453,12 +7459,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
7453
7459
|
aminoAcid: null,
|
|
7454
7460
|
positionInCodon: null,
|
|
7455
7461
|
aminoAcidIndex: null,
|
|
7456
|
-
sequenceIndex
|
|
7457
|
-
posInCds,
|
|
7458
|
-
forward,
|
|
7459
|
-
translationRange,
|
|
7460
|
-
originalSequenceStringLength
|
|
7461
|
-
),
|
|
7462
|
+
sequenceIndex,
|
|
7462
7463
|
codonRange: null,
|
|
7463
7464
|
fullCodon: null
|
|
7464
7465
|
});
|
package/package.json
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@teselagen/bio-parsers",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.23-beta.2",
|
|
4
|
+
"type": "module",
|
|
4
5
|
"dependencies": {
|
|
5
6
|
"@teselagen/sequence-utils": "0.3.27",
|
|
6
|
-
"@teselagen/range-utils": "0.3.
|
|
7
|
+
"@teselagen/range-utils": "0.3.10",
|
|
7
8
|
"@gmod/gff": "^1.2.1",
|
|
8
9
|
"buffer": "^6.0.3",
|
|
9
10
|
"bufferpack": "^0.0.6",
|
|
@@ -14,5 +15,11 @@
|
|
|
14
15
|
"string_decoder": "^1.3.0",
|
|
15
16
|
"validate.io-nonnegative-integer-array": "^1.0.1"
|
|
16
17
|
},
|
|
18
|
+
"exports": {
|
|
19
|
+
".": {
|
|
20
|
+
"import": "./index.js",
|
|
21
|
+
"require": "./index.cjs.js"
|
|
22
|
+
}
|
|
23
|
+
},
|
|
17
24
|
"license": "MIT"
|
|
18
25
|
}
|