@teselagen/bio-parsers 0.3.2 → 0.3.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 CHANGED
@@ -19363,6 +19363,7 @@ function validateSequence(sequence, options = {}) {
19363
19363
  }
19364
19364
  if (temp !== sequence.sequence) {
19365
19365
  sequence.type = "RNA";
19366
+ sequence.sequence = temp;
19366
19367
  } else {
19367
19368
  sequence.type = "DNA";
19368
19369
  }
@@ -19950,6 +19951,9 @@ function genbankToJson(string, options = {}) {
19950
19951
  if (item.match(/ss-dna/i)) {
19951
19952
  options.isSingleStrandedDNA = true;
19952
19953
  }
19954
+ if (item.match(/rna/i)) {
19955
+ options.isRna = true;
19956
+ }
19953
19957
  if (item.match(/rna/i) && !item.match(/ss-rna/i)) {
19954
19958
  options.isDoubleStrandedRNA = true;
19955
19959
  }
@@ -19964,6 +19968,7 @@ function genbankToJson(string, options = {}) {
19964
19968
  result.parsedSequence.gbDivision = gbDivision;
19965
19969
  result.parsedSequence.sequenceTypeFromLocus = options.sequenceTypeFromLocus;
19966
19970
  result.parsedSequence.isSingleStrandedDNA = options.isSingleStrandedDNA;
19971
+ result.parsedSequence.isRna = options.isRna;
19967
19972
  result.parsedSequence.isDoubleStrandedRNA = options.isDoubleStrandedRNA;
19968
19973
  result.parsedSequence.date = date;
19969
19974
  result.parsedSequence.circular = circular;
package/index.mjs CHANGED
@@ -19361,6 +19361,7 @@ function validateSequence(sequence, options = {}) {
19361
19361
  }
19362
19362
  if (temp !== sequence.sequence) {
19363
19363
  sequence.type = "RNA";
19364
+ sequence.sequence = temp;
19364
19365
  } else {
19365
19366
  sequence.type = "DNA";
19366
19367
  }
@@ -19948,6 +19949,9 @@ function genbankToJson(string, options = {}) {
19948
19949
  if (item.match(/ss-dna/i)) {
19949
19950
  options.isSingleStrandedDNA = true;
19950
19951
  }
19952
+ if (item.match(/rna/i)) {
19953
+ options.isRna = true;
19954
+ }
19951
19955
  if (item.match(/rna/i) && !item.match(/ss-rna/i)) {
19952
19956
  options.isDoubleStrandedRNA = true;
19953
19957
  }
@@ -19962,6 +19966,7 @@ function genbankToJson(string, options = {}) {
19962
19966
  result.parsedSequence.gbDivision = gbDivision;
19963
19967
  result.parsedSequence.sequenceTypeFromLocus = options.sequenceTypeFromLocus;
19964
19968
  result.parsedSequence.isSingleStrandedDNA = options.isSingleStrandedDNA;
19969
+ result.parsedSequence.isRna = options.isRna;
19965
19970
  result.parsedSequence.isDoubleStrandedRNA = options.isDoubleStrandedRNA;
19966
19971
  result.parsedSequence.date = date;
19967
19972
  result.parsedSequence.circular = circular;
package/index.umd.js CHANGED
@@ -19365,6 +19365,7 @@ var __async = (__this, __arguments, generator) => {
19365
19365
  }
19366
19366
  if (temp !== sequence.sequence) {
19367
19367
  sequence.type = "RNA";
19368
+ sequence.sequence = temp;
19368
19369
  } else {
19369
19370
  sequence.type = "DNA";
19370
19371
  }
@@ -19952,6 +19953,9 @@ var __async = (__this, __arguments, generator) => {
19952
19953
  if (item.match(/ss-dna/i)) {
19953
19954
  options.isSingleStrandedDNA = true;
19954
19955
  }
19956
+ if (item.match(/rna/i)) {
19957
+ options.isRna = true;
19958
+ }
19955
19959
  if (item.match(/rna/i) && !item.match(/ss-rna/i)) {
19956
19960
  options.isDoubleStrandedRNA = true;
19957
19961
  }
@@ -19966,6 +19970,7 @@ var __async = (__this, __arguments, generator) => {
19966
19970
  result.parsedSequence.gbDivision = gbDivision;
19967
19971
  result.parsedSequence.sequenceTypeFromLocus = options.sequenceTypeFromLocus;
19968
19972
  result.parsedSequence.isSingleStrandedDNA = options.isSingleStrandedDNA;
19973
+ result.parsedSequence.isRna = options.isRna;
19969
19974
  result.parsedSequence.isDoubleStrandedRNA = options.isDoubleStrandedRNA;
19970
19975
  result.parsedSequence.date = date;
19971
19976
  result.parsedSequence.circular = circular;
package/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "@teselagen/bio-parsers",
3
- "version": "0.3.2",
3
+ "version": "0.3.4",
4
4
  "type": "commonjs",
5
5
  "dependencies": {
6
- "@teselagen/sequence-utils": "0.3.2",
7
- "@teselagen/range-utils": "0.3.2",
6
+ "@teselagen/sequence-utils": "0.3.4",
7
+ "@teselagen/range-utils": "0.3.4",
8
8
  "@gmod/gff": "^1.2.1",
9
9
  "buffer": "^6.0.3",
10
10
  "bufferpack": "^0.0.6",
@@ -347,6 +347,9 @@ function genbankToJson(string, options = {}) {
347
347
  if (item.match(/ss-dna/i)) {
348
348
  options.isSingleStrandedDNA = true;
349
349
  }
350
+ if (item.match(/rna/i)) {
351
+ options.isRna = true;
352
+ }
350
353
  if (item.match(/rna/i) && !item.match(/ss-rna/i)) {
351
354
  options.isDoubleStrandedRNA = true;
352
355
  }
@@ -371,6 +374,7 @@ function genbankToJson(string, options = {}) {
371
374
  result.parsedSequence.gbDivision = gbDivision;
372
375
  result.parsedSequence.sequenceTypeFromLocus = options.sequenceTypeFromLocus;
373
376
  result.parsedSequence.isSingleStrandedDNA = options.isSingleStrandedDNA;
377
+ result.parsedSequence.isRna = options.isRna;
374
378
  result.parsedSequence.isDoubleStrandedRNA = options.isDoubleStrandedRNA;
375
379
  result.parsedSequence.date = date;
376
380
  result.parsedSequence.circular = circular;
@@ -104,6 +104,7 @@ export default function validateSequence(sequence, options = {}) {
104
104
  }
105
105
  if (temp !== sequence.sequence) {
106
106
  sequence.type = "RNA";
107
+ sequence.sequence = temp;
107
108
  } else {
108
109
  sequence.type = "DNA";
109
110
  }