@jbrowse/bandage-core 0.1.15 → 0.1.16
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 -0
- package/dist/types/layoutModes.d.ts +15 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2147,6 +2147,7 @@ var LAYOUT_MODES = [
|
|
|
2147
2147
|
description: "x is reference bp, one row per stable rank. Needs rGFA tags or a reference path.",
|
|
2148
2148
|
run: anchoredLayout,
|
|
2149
2149
|
cutMargins: true,
|
|
2150
|
+
wholeWalks: false,
|
|
2150
2151
|
available: hasBackbone,
|
|
2151
2152
|
drawsLocally: hasBackbone
|
|
2152
2153
|
},
|
|
@@ -2156,6 +2157,7 @@ var LAYOUT_MODES = [
|
|
|
2156
2157
|
description: "x is reference bp, one row per contributing assembly. Needs rGFA tags or a reference path.",
|
|
2157
2158
|
run: sampleRowLayout,
|
|
2158
2159
|
cutMargins: true,
|
|
2160
|
+
wholeWalks: false,
|
|
2159
2161
|
available: hasAlleles,
|
|
2160
2162
|
drawsLocally: hasAlleles
|
|
2161
2163
|
},
|
|
@@ -2165,6 +2167,7 @@ var LAYOUT_MODES = [
|
|
|
2165
2167
|
description: "x is each walk's own bp: one bar per haplotype, sequence the reference also carries in blue and sequence it does not in purple, so a repeat expansion reads as bar length. Needs W or P lines.",
|
|
2166
2168
|
run: walkRowLayout,
|
|
2167
2169
|
cutMargins: false,
|
|
2170
|
+
wholeWalks: true,
|
|
2168
2171
|
available: hasWalks,
|
|
2169
2172
|
drawsLocally: hasWalks
|
|
2170
2173
|
},
|
|
@@ -2174,6 +2177,7 @@ var LAYOUT_MODES = [
|
|
|
2174
2177
|
description: "x is reference order, not bp: every node gets room, bubbles read as lenses. Needs rGFA tags or a reference path.",
|
|
2175
2178
|
run: orderedLayout,
|
|
2176
2179
|
cutMargins: false,
|
|
2180
|
+
wholeWalks: false,
|
|
2177
2181
|
available: hasBackbone,
|
|
2178
2182
|
drawsLocally: hasBackbone
|
|
2179
2183
|
},
|
|
@@ -2183,6 +2187,7 @@ var LAYOUT_MODES = [
|
|
|
2183
2187
|
description: "sequenceTubeMap: every path a coloured tube through boxed nodes, columns in node order and node widths log-scaled. Needs P or W lines.",
|
|
2184
2188
|
run: tubeMapLayout,
|
|
2185
2189
|
cutMargins: false,
|
|
2190
|
+
wholeWalks: false,
|
|
2186
2191
|
available: hasTubeMapPaths,
|
|
2187
2192
|
drawsLocally: hasTubeMapPaths
|
|
2188
2193
|
},
|
|
@@ -2192,6 +2197,7 @@ var LAYOUT_MODES = [
|
|
|
2192
2197
|
description: "The tube map with each column at the reference bp it covers, so the tubes line up with the tracks around them. Needs P or W lines and a reference path.",
|
|
2193
2198
|
run: tubeMapReferenceLayout,
|
|
2194
2199
|
cutMargins: true,
|
|
2200
|
+
wholeWalks: false,
|
|
2195
2201
|
available: hasTubeMapBackbone,
|
|
2196
2202
|
drawsLocally: hasTubeMapBackbone
|
|
2197
2203
|
},
|
|
@@ -2201,6 +2207,7 @@ var LAYOUT_MODES = [
|
|
|
2201
2207
|
description: "OGDF FMMM, via the external Bandage engine.",
|
|
2202
2208
|
run: () => void 0,
|
|
2203
2209
|
cutMargins: false,
|
|
2210
|
+
wholeWalks: false,
|
|
2204
2211
|
available: () => true,
|
|
2205
2212
|
drawsLocally: () => false
|
|
2206
2213
|
}
|
|
@@ -15,6 +15,7 @@ export interface LayoutMode {
|
|
|
15
15
|
}, keepRows?: readonly string[]) => LayoutResult | undefined;
|
|
16
16
|
available: (graph: Graph) => boolean;
|
|
17
17
|
cutMargins: boolean;
|
|
18
|
+
wholeWalks: boolean;
|
|
18
19
|
drawsLocally: (graph: Graph) => boolean;
|
|
19
20
|
}
|
|
20
21
|
export declare const LAYOUT_MODES: readonly [{
|
|
@@ -23,6 +24,7 @@ export declare const LAYOUT_MODES: readonly [{
|
|
|
23
24
|
readonly description: "x is reference bp, one row per stable rank. Needs rGFA tags or a reference path.";
|
|
24
25
|
readonly run: typeof anchoredLayout;
|
|
25
26
|
readonly cutMargins: true;
|
|
27
|
+
readonly wholeWalks: false;
|
|
26
28
|
readonly available: (graph: Graph) => boolean;
|
|
27
29
|
readonly drawsLocally: (graph: Graph) => boolean;
|
|
28
30
|
}, {
|
|
@@ -31,6 +33,7 @@ export declare const LAYOUT_MODES: readonly [{
|
|
|
31
33
|
readonly description: "x is reference bp, one row per contributing assembly. Needs rGFA tags or a reference path.";
|
|
32
34
|
readonly run: typeof sampleRowLayout;
|
|
33
35
|
readonly cutMargins: true;
|
|
36
|
+
readonly wholeWalks: false;
|
|
34
37
|
readonly available: (graph: Graph) => boolean;
|
|
35
38
|
readonly drawsLocally: (graph: Graph) => boolean;
|
|
36
39
|
}, {
|
|
@@ -39,6 +42,7 @@ export declare const LAYOUT_MODES: readonly [{
|
|
|
39
42
|
readonly description: "x is each walk's own bp: one bar per haplotype, sequence the reference also carries in blue and sequence it does not in purple, so a repeat expansion reads as bar length. Needs W or P lines.";
|
|
40
43
|
readonly run: typeof walkRowLayout;
|
|
41
44
|
readonly cutMargins: false;
|
|
45
|
+
readonly wholeWalks: true;
|
|
42
46
|
readonly available: (graph: Graph) => boolean;
|
|
43
47
|
readonly drawsLocally: (graph: Graph) => boolean;
|
|
44
48
|
}, {
|
|
@@ -47,6 +51,7 @@ export declare const LAYOUT_MODES: readonly [{
|
|
|
47
51
|
readonly description: "x is reference order, not bp: every node gets room, bubbles read as lenses. Needs rGFA tags or a reference path.";
|
|
48
52
|
readonly run: typeof orderedLayout;
|
|
49
53
|
readonly cutMargins: false;
|
|
54
|
+
readonly wholeWalks: false;
|
|
50
55
|
readonly available: (graph: Graph) => boolean;
|
|
51
56
|
readonly drawsLocally: (graph: Graph) => boolean;
|
|
52
57
|
}, {
|
|
@@ -55,6 +60,7 @@ export declare const LAYOUT_MODES: readonly [{
|
|
|
55
60
|
readonly description: "sequenceTubeMap: every path a coloured tube through boxed nodes, columns in node order and node widths log-scaled. Needs P or W lines.";
|
|
56
61
|
readonly run: typeof tubeMapLayout;
|
|
57
62
|
readonly cutMargins: false;
|
|
63
|
+
readonly wholeWalks: false;
|
|
58
64
|
readonly available: typeof hasTubeMapPaths;
|
|
59
65
|
readonly drawsLocally: typeof hasTubeMapPaths;
|
|
60
66
|
}, {
|
|
@@ -63,6 +69,7 @@ export declare const LAYOUT_MODES: readonly [{
|
|
|
63
69
|
readonly description: "The tube map with each column at the reference bp it covers, so the tubes line up with the tracks around them. Needs P or W lines and a reference path.";
|
|
64
70
|
readonly run: typeof tubeMapReferenceLayout;
|
|
65
71
|
readonly cutMargins: true;
|
|
72
|
+
readonly wholeWalks: false;
|
|
66
73
|
readonly available: (graph: Graph) => boolean;
|
|
67
74
|
readonly drawsLocally: (graph: Graph) => boolean;
|
|
68
75
|
}, {
|
|
@@ -71,6 +78,7 @@ export declare const LAYOUT_MODES: readonly [{
|
|
|
71
78
|
readonly description: "OGDF FMMM, via the external Bandage engine.";
|
|
72
79
|
readonly run: () => undefined;
|
|
73
80
|
readonly cutMargins: false;
|
|
81
|
+
readonly wholeWalks: false;
|
|
74
82
|
readonly available: () => true;
|
|
75
83
|
readonly drawsLocally: () => false;
|
|
76
84
|
}];
|
|
@@ -83,6 +91,7 @@ export declare function layoutModeByValue(value: string): {
|
|
|
83
91
|
readonly description: "x is reference bp, one row per stable rank. Needs rGFA tags or a reference path.";
|
|
84
92
|
readonly run: typeof anchoredLayout;
|
|
85
93
|
readonly cutMargins: true;
|
|
94
|
+
readonly wholeWalks: false;
|
|
86
95
|
readonly available: (graph: Graph) => boolean;
|
|
87
96
|
readonly drawsLocally: (graph: Graph) => boolean;
|
|
88
97
|
} | {
|
|
@@ -91,6 +100,7 @@ export declare function layoutModeByValue(value: string): {
|
|
|
91
100
|
readonly description: "x is reference bp, one row per contributing assembly. Needs rGFA tags or a reference path.";
|
|
92
101
|
readonly run: typeof sampleRowLayout;
|
|
93
102
|
readonly cutMargins: true;
|
|
103
|
+
readonly wholeWalks: false;
|
|
94
104
|
readonly available: (graph: Graph) => boolean;
|
|
95
105
|
readonly drawsLocally: (graph: Graph) => boolean;
|
|
96
106
|
} | {
|
|
@@ -99,6 +109,7 @@ export declare function layoutModeByValue(value: string): {
|
|
|
99
109
|
readonly description: "x is each walk's own bp: one bar per haplotype, sequence the reference also carries in blue and sequence it does not in purple, so a repeat expansion reads as bar length. Needs W or P lines.";
|
|
100
110
|
readonly run: typeof walkRowLayout;
|
|
101
111
|
readonly cutMargins: false;
|
|
112
|
+
readonly wholeWalks: true;
|
|
102
113
|
readonly available: (graph: Graph) => boolean;
|
|
103
114
|
readonly drawsLocally: (graph: Graph) => boolean;
|
|
104
115
|
} | {
|
|
@@ -107,6 +118,7 @@ export declare function layoutModeByValue(value: string): {
|
|
|
107
118
|
readonly description: "x is reference order, not bp: every node gets room, bubbles read as lenses. Needs rGFA tags or a reference path.";
|
|
108
119
|
readonly run: typeof orderedLayout;
|
|
109
120
|
readonly cutMargins: false;
|
|
121
|
+
readonly wholeWalks: false;
|
|
110
122
|
readonly available: (graph: Graph) => boolean;
|
|
111
123
|
readonly drawsLocally: (graph: Graph) => boolean;
|
|
112
124
|
} | {
|
|
@@ -115,6 +127,7 @@ export declare function layoutModeByValue(value: string): {
|
|
|
115
127
|
readonly description: "sequenceTubeMap: every path a coloured tube through boxed nodes, columns in node order and node widths log-scaled. Needs P or W lines.";
|
|
116
128
|
readonly run: typeof tubeMapLayout;
|
|
117
129
|
readonly cutMargins: false;
|
|
130
|
+
readonly wholeWalks: false;
|
|
118
131
|
readonly available: typeof hasTubeMapPaths;
|
|
119
132
|
readonly drawsLocally: typeof hasTubeMapPaths;
|
|
120
133
|
} | {
|
|
@@ -123,6 +136,7 @@ export declare function layoutModeByValue(value: string): {
|
|
|
123
136
|
readonly description: "The tube map with each column at the reference bp it covers, so the tubes line up with the tracks around them. Needs P or W lines and a reference path.";
|
|
124
137
|
readonly run: typeof tubeMapReferenceLayout;
|
|
125
138
|
readonly cutMargins: true;
|
|
139
|
+
readonly wholeWalks: false;
|
|
126
140
|
readonly available: (graph: Graph) => boolean;
|
|
127
141
|
readonly drawsLocally: (graph: Graph) => boolean;
|
|
128
142
|
} | {
|
|
@@ -131,6 +145,7 @@ export declare function layoutModeByValue(value: string): {
|
|
|
131
145
|
readonly description: "OGDF FMMM, via the external Bandage engine.";
|
|
132
146
|
readonly run: () => undefined;
|
|
133
147
|
readonly cutMargins: false;
|
|
148
|
+
readonly wholeWalks: false;
|
|
134
149
|
readonly available: () => true;
|
|
135
150
|
readonly drawsLocally: () => false;
|
|
136
151
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jbrowse/bandage-core",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.16",
|
|
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": {
|