@opencloning/utils 1.1.2 → 1.2.0

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/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # @opencloning/utils
2
2
 
3
+ ## 1.2.0
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies []:
8
+ - @opencloning/store@1.2.0
9
+
3
10
  ## 1.1.2
4
11
 
5
12
  ### Patch Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opencloning/utils",
3
- "version": "1.1.2",
3
+ "version": "1.2.0",
4
4
  "type": "module",
5
5
  "main": "./src/utils/index.js",
6
6
  "exports": {
@@ -27,7 +27,7 @@
27
27
  "directory": "packages/utils"
28
28
  },
29
29
  "dependencies": {
30
- "@opencloning/store": "1.1.2",
30
+ "@opencloning/store": "1.2.0",
31
31
  "@teselagen/bio-parsers": "^0.4.32",
32
32
  "@teselagen/sequence-utils": "^0.3.35",
33
33
  "@zip.js/zip.js": "^2.7.62",
@@ -27,7 +27,7 @@ export function joinSequencesIntoSingleSequence(sequences, locations, orientatio
27
27
  const locations2join = [];
28
28
  const orientations2join = [];
29
29
 
30
- if (!circularAssembly) {
30
+ if (!circularAssembly || (circularAssembly && sequences.length === 1)) {
31
31
  const firstSpacer = spacerSequences.shift();
32
32
  if (firstSpacer) {
33
33
  sequences2join.push(firstSpacer);
@@ -59,6 +59,7 @@ export function joinSequencesIntoSingleSequence(sequences, locations, orientatio
59
59
  for (let i = 1; i < fragments.length; i++) {
60
60
  outputSequence = insertSequenceDataAtPositionOrRange(fragments[i], outputSequence, outputSequence.sequence.length);
61
61
  }
62
+ outputSequence.circular = circularAssembly;
62
63
  return outputSequence;
63
64
  }
64
65