@jbrowse/bandage-core 0.1.9 → 0.1.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/dist/index.js +7 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2095,12 +2095,18 @@ function walkRows(graph, region, unit) {
|
|
|
2095
2095
|
runs
|
|
2096
2096
|
};
|
|
2097
2097
|
};
|
|
2098
|
+
const meetsReference = (p) => p.nodeIds.some((id) => span2.has(id));
|
|
2099
|
+
const placedWalks = new Set(
|
|
2100
|
+
paths.filter((p) => p !== reference && meetsReference(p)).map((p) => p.name)
|
|
2101
|
+
);
|
|
2098
2102
|
const origin = cut ? cut.start : referenceStart;
|
|
2099
2103
|
return {
|
|
2100
2104
|
origin,
|
|
2101
2105
|
unit,
|
|
2102
2106
|
reference: rowOf(reference),
|
|
2103
|
-
rows: paths.filter(
|
|
2107
|
+
rows: paths.filter(
|
|
2108
|
+
(p) => p !== reference && (meetsReference(p) || !placedWalks.has(p.name))
|
|
2109
|
+
).map(rowOf).sort(
|
|
2104
2110
|
(a, b) => Number(b.complete) - Number(a.complete) || b.bp - a.bp || a.label.localeCompare(b.label)
|
|
2105
2111
|
)
|
|
2106
2112
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jbrowse/bandage-core",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.11",
|
|
4
4
|
"description": "Pangenome graph layout and drawing with no host: GFA in, the Bandage force-directed engine and reference-anchored layouts, a Canvas2D renderer, hit testing and labels out",
|
|
5
5
|
"license": "GPL-3.0-or-later",
|
|
6
6
|
"repository": {
|