@opencloning/ui 1.4.10 → 1.4.11

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,15 @@
1
1
  # @opencloning/ui
2
2
 
3
+ ## 1.4.11
4
+
5
+ ### Patch Changes
6
+
7
+ - [#644](https://github.com/manulera/OpenCloning_frontend/pull/644) [`27744a3`](https://github.com/manulera/OpenCloning_frontend/commit/27744a3e5cebd6d41cb11a76f3d4d367f5a4edc8) Thanks [@manulera](https://github.com/manulera)! - Fix graphToMSA
8
+
9
+ - Updated dependencies []:
10
+ - @opencloning/store@1.4.11
11
+ - @opencloning/utils@1.4.11
12
+
3
13
  ## 1.4.10
4
14
 
5
15
  ### Patch Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opencloning/ui",
3
- "version": "1.4.10",
3
+ "version": "1.4.11",
4
4
  "type": "module",
5
5
  "main": "./src/index.js",
6
6
  "scripts": {
@@ -25,8 +25,8 @@
25
25
  "@emotion/styled": "^11.14.0",
26
26
  "@mui/icons-material": "^5.15.17",
27
27
  "@mui/material": "^5.15.17",
28
- "@opencloning/store": "1.4.10",
29
- "@opencloning/utils": "1.4.10",
28
+ "@opencloning/store": "1.4.11",
29
+ "@opencloning/utils": "1.4.11",
30
30
  "@teselagen/bio-parsers": "^0.4.34",
31
31
  "@teselagen/ove": "^0.8.34",
32
32
  "@teselagen/range-utils": "^0.3.20",
@@ -144,7 +144,12 @@ function minimumCoveringRows(msa) {
144
144
 
145
145
  export function graphToMSA(graph) {
146
146
  if (graph.nodes().length === 0) return [];
147
- const newGraph = openCycleAtNode(graph, graph.nodes()[0]);
147
+ const firstNodeLeftOverhang = graph.nodes()[0].split('-')[0];
148
+ const nodesToRemove = graph.nodes().filter(node => node.split('-')[0] === firstNodeLeftOverhang);
149
+ let newGraph = graph;
150
+ for (const node of nodesToRemove) {
151
+ newGraph = openCycleAtNode(newGraph, node);
152
+ }
148
153
  return minimumCoveringRows(dagToMSA(newGraph));
149
154
  }
150
155
 
package/src/version.js CHANGED
@@ -1,2 +1,2 @@
1
1
  // Version placeholder - replaced at publish time via prepack script
2
- export const version = "1.4.10";
2
+ export const version = "1.4.11";