@jbrowse/plugin-gccontent 2.10.3 → 2.11.1
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/GCContentAdapter/GCContentAdapter.d.ts +1 -1
- package/dist/GCContentAdapter/GCContentAdapter.js +4 -3
- package/dist/GCContentAdapter/index.d.ts +1 -2
- package/dist/GCContentAdapter/index.js +3 -2
- package/dist/GCContentTrack/configSchema.d.ts +82 -0
- package/dist/GCContentTrack/configSchema.js +16 -0
- package/dist/GCContentTrack/index.d.ts +2 -0
- package/dist/GCContentTrack/index.js +20 -0
- package/dist/LinearGCContentDisplay/{config.d.ts → config1.d.ts} +1 -1
- package/dist/LinearGCContentDisplay/{config.js → config1.js} +2 -2
- package/dist/LinearGCContentDisplay/config2.d.ts +16 -0
- package/dist/LinearGCContentDisplay/config2.js +28 -0
- package/dist/LinearGCContentDisplay/index.d.ts +1 -2
- package/dist/LinearGCContentDisplay/index.js +22 -6
- package/{esm/LinearGCContentDisplay/stateModel.d.ts → dist/LinearGCContentDisplay/shared.d.ts} +12 -17
- package/dist/LinearGCContentDisplay/{stateModel.js → shared.js} +6 -9
- package/dist/LinearGCContentDisplay/stateModel1.d.ts +403 -0
- package/dist/LinearGCContentDisplay/stateModel1.js +19 -0
- package/dist/LinearGCContentDisplay/stateModel2.d.ts +408 -0
- package/dist/LinearGCContentDisplay/stateModel2.js +24 -0
- package/dist/index.js +2 -0
- package/esm/GCContentAdapter/GCContentAdapter.d.ts +1 -1
- package/esm/GCContentAdapter/GCContentAdapter.js +4 -3
- package/esm/GCContentAdapter/index.d.ts +1 -2
- package/esm/GCContentAdapter/index.js +2 -2
- package/esm/GCContentTrack/configSchema.d.ts +82 -0
- package/esm/GCContentTrack/configSchema.js +14 -0
- package/esm/GCContentTrack/index.d.ts +2 -0
- package/esm/GCContentTrack/index.js +14 -0
- package/esm/LinearGCContentDisplay/{config.d.ts → config1.d.ts} +1 -1
- package/esm/LinearGCContentDisplay/{config.js → config1.js} +1 -1
- package/esm/LinearGCContentDisplay/config2.d.ts +16 -0
- package/esm/LinearGCContentDisplay/config2.js +25 -0
- package/esm/LinearGCContentDisplay/index.d.ts +1 -2
- package/esm/LinearGCContentDisplay/index.js +21 -6
- package/{dist/LinearGCContentDisplay/stateModel.d.ts → esm/LinearGCContentDisplay/shared.d.ts} +12 -17
- package/esm/LinearGCContentDisplay/{stateModel.js → shared.js} +5 -8
- package/esm/LinearGCContentDisplay/stateModel1.d.ts +403 -0
- package/esm/LinearGCContentDisplay/stateModel1.js +13 -0
- package/esm/LinearGCContentDisplay/stateModel2.d.ts +408 -0
- package/esm/LinearGCContentDisplay/stateModel2.js +18 -0
- package/esm/index.js +2 -0
- package/package.json +2 -2
|
@@ -0,0 +1,408 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { AnyConfigurationSchemaType } from '@jbrowse/core/configuration';
|
|
3
|
+
import PluginManager from '@jbrowse/core/PluginManager';
|
|
4
|
+
/**
|
|
5
|
+
* #stateModel LinearGCContentTrackDisplay
|
|
6
|
+
* #category display
|
|
7
|
+
*
|
|
8
|
+
* used on GCContentTrack, separately from the display type on the
|
|
9
|
+
* ReferenceSequenceTrack
|
|
10
|
+
*
|
|
11
|
+
* extends
|
|
12
|
+
* - [SharedGCContentModel](../sharedgccontentmodel)
|
|
13
|
+
*/
|
|
14
|
+
export default function stateModelF(pluginManager: PluginManager, configSchema: AnyConfigurationSchemaType): import("mobx-state-tree").IModelType<{
|
|
15
|
+
id: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
16
|
+
type: import("mobx-state-tree").ISimpleType<string>;
|
|
17
|
+
rpcDriverName: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<string>>;
|
|
18
|
+
} & {
|
|
19
|
+
heightPreConfig: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<number>>;
|
|
20
|
+
} & {
|
|
21
|
+
userBpPerPxLimit: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<number>>;
|
|
22
|
+
userByteSizeLimit: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<number>>;
|
|
23
|
+
} & {
|
|
24
|
+
blockState: import("mobx-state-tree").IMapType<import("mobx-state-tree").IModelType<{
|
|
25
|
+
key: import("mobx-state-tree").ISimpleType<string>;
|
|
26
|
+
region: import("mobx-state-tree").IModelType<{
|
|
27
|
+
refName: import("mobx-state-tree").ISimpleType<string>;
|
|
28
|
+
start: import("mobx-state-tree").ISimpleType<number>;
|
|
29
|
+
end: import("mobx-state-tree").ISimpleType<number>;
|
|
30
|
+
reversed: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<boolean>, [undefined]>;
|
|
31
|
+
} & {
|
|
32
|
+
assemblyName: import("mobx-state-tree").ISimpleType<string>;
|
|
33
|
+
}, {
|
|
34
|
+
setRefName(newRefName: string): void;
|
|
35
|
+
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>;
|
|
36
|
+
reloadFlag: import("mobx-state-tree").IType<number | undefined, number, number>;
|
|
37
|
+
isLeftEndOfDisplayedRegion: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
38
|
+
isRightEndOfDisplayedRegion: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
39
|
+
}, {
|
|
40
|
+
renderInProgress: AbortController | undefined;
|
|
41
|
+
filled: boolean;
|
|
42
|
+
reactElement: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
|
|
43
|
+
features: Map<string, import("@jbrowse/core/util").Feature> | undefined;
|
|
44
|
+
layout: any;
|
|
45
|
+
status: string;
|
|
46
|
+
error: unknown;
|
|
47
|
+
message: string | undefined;
|
|
48
|
+
maxHeightReached: boolean;
|
|
49
|
+
ReactComponent: ({ model, }: {
|
|
50
|
+
model: {
|
|
51
|
+
error?: unknown;
|
|
52
|
+
reload: () => void;
|
|
53
|
+
message: import("react").ReactNode;
|
|
54
|
+
filled?: boolean | undefined;
|
|
55
|
+
status?: string | undefined;
|
|
56
|
+
reactElement?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
|
|
57
|
+
};
|
|
58
|
+
}) => import("react").JSX.Element | undefined;
|
|
59
|
+
renderProps: any;
|
|
60
|
+
} & {
|
|
61
|
+
doReload(): void;
|
|
62
|
+
afterAttach(): void;
|
|
63
|
+
setStatus(message: string): void;
|
|
64
|
+
setLoading(abortController: AbortController): void;
|
|
65
|
+
setMessage(messageText: string): void;
|
|
66
|
+
setRendered(props: {
|
|
67
|
+
reactElement: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>;
|
|
68
|
+
features: Map<string, import("@jbrowse/core/util").Feature>;
|
|
69
|
+
layout: any;
|
|
70
|
+
maxHeightReached: boolean;
|
|
71
|
+
renderProps: any;
|
|
72
|
+
} | undefined): void;
|
|
73
|
+
setError(error: unknown): void;
|
|
74
|
+
reload(): void;
|
|
75
|
+
beforeDestroy(): void;
|
|
76
|
+
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>;
|
|
77
|
+
configuration: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
78
|
+
maxFeatureScreenDensity: {
|
|
79
|
+
type: string;
|
|
80
|
+
description: string;
|
|
81
|
+
defaultValue: number;
|
|
82
|
+
};
|
|
83
|
+
fetchSizeLimit: {
|
|
84
|
+
type: string;
|
|
85
|
+
defaultValue: number;
|
|
86
|
+
description: string;
|
|
87
|
+
};
|
|
88
|
+
height: {
|
|
89
|
+
type: string;
|
|
90
|
+
defaultValue: number;
|
|
91
|
+
description: string;
|
|
92
|
+
};
|
|
93
|
+
mouseover: {
|
|
94
|
+
type: string;
|
|
95
|
+
description: string;
|
|
96
|
+
defaultValue: string;
|
|
97
|
+
contextVariable: string[];
|
|
98
|
+
};
|
|
99
|
+
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, "displayId">>;
|
|
100
|
+
} & {
|
|
101
|
+
selectedRendering: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
102
|
+
resolution: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<number>, [undefined]>;
|
|
103
|
+
fill: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<boolean>>;
|
|
104
|
+
minSize: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<number>>;
|
|
105
|
+
color: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<string>>;
|
|
106
|
+
posColor: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<string>>;
|
|
107
|
+
negColor: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<string>>;
|
|
108
|
+
summaryScoreMode: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<string>>;
|
|
109
|
+
rendererTypeNameState: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<string>>;
|
|
110
|
+
scale: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<string>>;
|
|
111
|
+
autoscale: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<string>>;
|
|
112
|
+
displayCrossHatches: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<boolean>>;
|
|
113
|
+
constraints: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IModelType<{
|
|
114
|
+
max: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<number>>;
|
|
115
|
+
min: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<number>>;
|
|
116
|
+
}, {}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>, [undefined]>;
|
|
117
|
+
configuration: AnyConfigurationSchemaType;
|
|
118
|
+
} & {
|
|
119
|
+
type: import("mobx-state-tree").ISimpleType<"LinearWiggleDisplay">;
|
|
120
|
+
} & {
|
|
121
|
+
windowSize: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<number>>;
|
|
122
|
+
windowDelta: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<number>>;
|
|
123
|
+
} & {
|
|
124
|
+
type: import("mobx-state-tree").ISimpleType<"LinearGCContentTrackDisplay">;
|
|
125
|
+
}, {
|
|
126
|
+
rendererTypeName: string;
|
|
127
|
+
error: unknown;
|
|
128
|
+
message: string | undefined;
|
|
129
|
+
} & {
|
|
130
|
+
readonly RenderingComponent: import("react").FC<{
|
|
131
|
+
model: {
|
|
132
|
+
id: string;
|
|
133
|
+
type: string;
|
|
134
|
+
rpcDriverName: string | undefined;
|
|
135
|
+
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
136
|
+
rendererTypeName: string;
|
|
137
|
+
error: unknown;
|
|
138
|
+
message: string | undefined;
|
|
139
|
+
} & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
|
|
140
|
+
id: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
141
|
+
type: import("mobx-state-tree").ISimpleType<string>;
|
|
142
|
+
rpcDriverName: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<string>>;
|
|
143
|
+
}, {
|
|
144
|
+
rendererTypeName: string;
|
|
145
|
+
error: unknown;
|
|
146
|
+
message: string | undefined;
|
|
147
|
+
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>;
|
|
148
|
+
onHorizontalScroll?: Function | undefined;
|
|
149
|
+
blockState?: Record<string, any> | undefined;
|
|
150
|
+
}>;
|
|
151
|
+
readonly DisplayBlurb: import("react").FC<{
|
|
152
|
+
model: {
|
|
153
|
+
id: string;
|
|
154
|
+
type: string;
|
|
155
|
+
rpcDriverName: string | undefined;
|
|
156
|
+
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
157
|
+
rendererTypeName: string;
|
|
158
|
+
error: unknown;
|
|
159
|
+
message: string | undefined;
|
|
160
|
+
} & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
|
|
161
|
+
id: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
162
|
+
type: import("mobx-state-tree").ISimpleType<string>;
|
|
163
|
+
rpcDriverName: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<string>>;
|
|
164
|
+
}, {
|
|
165
|
+
rendererTypeName: string;
|
|
166
|
+
error: unknown;
|
|
167
|
+
message: string | undefined;
|
|
168
|
+
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>;
|
|
169
|
+
}> | null;
|
|
170
|
+
readonly adapterConfig: any;
|
|
171
|
+
readonly parentTrack: any;
|
|
172
|
+
renderProps(): any;
|
|
173
|
+
readonly rendererType: import("@jbrowse/core/pluggableElementTypes").RendererType;
|
|
174
|
+
readonly DisplayMessageComponent: import("react").FC<any> | undefined;
|
|
175
|
+
trackMenuItems(): import("@jbrowse/core/ui").MenuItem[];
|
|
176
|
+
readonly viewMenuActions: import("@jbrowse/core/ui").MenuItem[];
|
|
177
|
+
regionCannotBeRendered(): null;
|
|
178
|
+
} & {
|
|
179
|
+
setMessage(arg?: string | undefined): void;
|
|
180
|
+
setError(error?: unknown): void;
|
|
181
|
+
setRpcDriverName(rpcDriverName: string): void;
|
|
182
|
+
reload(): void;
|
|
183
|
+
} & {
|
|
184
|
+
scrollTop: number;
|
|
185
|
+
} & {
|
|
186
|
+
readonly height: number;
|
|
187
|
+
} & {
|
|
188
|
+
setScrollTop(scrollTop: number): void;
|
|
189
|
+
setHeight(displayHeight: number): number;
|
|
190
|
+
resizeHeight(distance: number): number;
|
|
191
|
+
} & {
|
|
192
|
+
featureDensityStatsP: Promise<import("@jbrowse/core/data_adapters/BaseAdapter").FeatureDensityStats> | undefined;
|
|
193
|
+
featureDensityStats: import("@jbrowse/core/data_adapters/BaseAdapter").FeatureDensityStats | undefined;
|
|
194
|
+
currStatsBpPerPx: number;
|
|
195
|
+
} & {
|
|
196
|
+
readonly currentBytesRequested: number;
|
|
197
|
+
readonly currentFeatureScreenDensity: number;
|
|
198
|
+
readonly maxFeatureScreenDensity: any;
|
|
199
|
+
readonly featureDensityStatsReady: boolean;
|
|
200
|
+
readonly maxAllowableBytes: number;
|
|
201
|
+
} & {
|
|
202
|
+
afterAttach(): void;
|
|
203
|
+
} & {
|
|
204
|
+
setCurrStatsBpPerPx(n: number): void;
|
|
205
|
+
setFeatureDensityStatsLimit(stats?: import("@jbrowse/core/data_adapters/BaseAdapter").FeatureDensityStats | undefined): void;
|
|
206
|
+
getFeatureDensityStats(): Promise<import("@jbrowse/core/data_adapters/BaseAdapter").FeatureDensityStats>;
|
|
207
|
+
setFeatureDensityStatsP(arg: any): void;
|
|
208
|
+
setFeatureDensityStats(featureDensityStats?: import("@jbrowse/core/data_adapters/BaseAdapter").FeatureDensityStats | undefined): void;
|
|
209
|
+
clearFeatureDensityStats(): void;
|
|
210
|
+
} & {
|
|
211
|
+
readonly regionTooLarge: boolean;
|
|
212
|
+
readonly regionTooLargeReason: string;
|
|
213
|
+
} & {
|
|
214
|
+
regionCannotBeRenderedText(_region: import("@jbrowse/core/util").Region): "" | "Force load to see features";
|
|
215
|
+
regionCannotBeRendered(_region: import("@jbrowse/core/util").Region): import("react").JSX.Element | null;
|
|
216
|
+
} & {
|
|
217
|
+
featureIdUnderMouse: string | undefined;
|
|
218
|
+
contextMenuFeature: import("@jbrowse/core/util").Feature | undefined;
|
|
219
|
+
} & {
|
|
220
|
+
readonly blockType: "dynamicBlocks" | "staticBlocks";
|
|
221
|
+
readonly blockDefinitions: import("@jbrowse/core/util/blockTypes").BlockSet;
|
|
222
|
+
} & {
|
|
223
|
+
readonly renderDelay: number;
|
|
224
|
+
readonly TooltipComponent: import("react").FC<any>;
|
|
225
|
+
readonly selectedFeatureId: string | undefined;
|
|
226
|
+
readonly DisplayMessageComponent: import("react").FC<any> | undefined;
|
|
227
|
+
} & {
|
|
228
|
+
readonly features: import("@jbrowse/core/util/compositeMap").default<string, import("@jbrowse/core/util").Feature>;
|
|
229
|
+
readonly featureUnderMouse: import("@jbrowse/core/util").Feature | undefined;
|
|
230
|
+
getFeatureOverlapping(blockKey: string, x: number, y: number): string | undefined;
|
|
231
|
+
getFeatureByID(blockKey: string, id: string): [number, number, number, number] | undefined;
|
|
232
|
+
searchFeatureByID(id: string): [number, number, number, number] | undefined;
|
|
233
|
+
} & {
|
|
234
|
+
addBlock(key: string, block: import("@jbrowse/core/util/blockTypes").BaseBlock): void;
|
|
235
|
+
deleteBlock(key: string): void;
|
|
236
|
+
selectFeature(feature: import("@jbrowse/core/util").Feature): void;
|
|
237
|
+
clearFeatureSelection(): void;
|
|
238
|
+
setFeatureIdUnderMouse(feature?: string | undefined): void;
|
|
239
|
+
setContextMenuFeature(feature?: import("@jbrowse/core/util").Feature | undefined): void;
|
|
240
|
+
} & {
|
|
241
|
+
reload(): Promise<void>;
|
|
242
|
+
} & {
|
|
243
|
+
trackMenuItems(): import("@jbrowse/core/ui").MenuItem[];
|
|
244
|
+
contextMenuItems(): import("@jbrowse/core/ui").MenuItem[];
|
|
245
|
+
renderProps(): any;
|
|
246
|
+
} & {
|
|
247
|
+
renderSvg(opts: import("@jbrowse/plugin-linear-genome-view").ExportSvgDisplayOptions): Promise<import("react").JSX.Element>;
|
|
248
|
+
afterAttach(): void;
|
|
249
|
+
} & {
|
|
250
|
+
message: string | undefined;
|
|
251
|
+
stats: {
|
|
252
|
+
scoreMin: number;
|
|
253
|
+
scoreMax: number;
|
|
254
|
+
} | undefined;
|
|
255
|
+
statsFetchInProgress: AbortController | undefined;
|
|
256
|
+
} & {
|
|
257
|
+
updateQuantitativeStats(stats: {
|
|
258
|
+
scoreMin: number;
|
|
259
|
+
scoreMax: number;
|
|
260
|
+
}): void;
|
|
261
|
+
setColor(color?: string | undefined): void;
|
|
262
|
+
setPosColor(color?: string | undefined): void;
|
|
263
|
+
setNegColor(color?: string | undefined): void;
|
|
264
|
+
setLoading(aborter: AbortController): void;
|
|
265
|
+
selectFeature(feature: import("@jbrowse/core/util").Feature): void;
|
|
266
|
+
setResolution(res: number): void;
|
|
267
|
+
setFill(fill: number): void;
|
|
268
|
+
toggleLogScale(): void;
|
|
269
|
+
setScaleType(scale?: string | undefined): void;
|
|
270
|
+
setSummaryScoreMode(val: string): void;
|
|
271
|
+
setAutoscale(val: string): void;
|
|
272
|
+
setMaxScore(val?: number | undefined): void;
|
|
273
|
+
setRendererType(val: string): void;
|
|
274
|
+
setMinScore(val?: number | undefined): void;
|
|
275
|
+
toggleCrossHatches(): void;
|
|
276
|
+
setCrossHatches(cross: boolean): void;
|
|
277
|
+
} & {
|
|
278
|
+
readonly adapterTypeName: any;
|
|
279
|
+
readonly rendererTypeNameSimple: any;
|
|
280
|
+
readonly filters: undefined;
|
|
281
|
+
readonly scaleType: any;
|
|
282
|
+
readonly maxScore: any;
|
|
283
|
+
readonly minScore: any;
|
|
284
|
+
} & {
|
|
285
|
+
readonly adapterCapabilities: string[];
|
|
286
|
+
readonly rendererConfig: {
|
|
287
|
+
[x: string]: any;
|
|
288
|
+
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
289
|
+
setSubschema(slotName: string, data: unknown): any;
|
|
290
|
+
} & import("mobx-state-tree").IStateTreeNode<AnyConfigurationSchemaType>;
|
|
291
|
+
readonly autoscaleType: any;
|
|
292
|
+
} & {
|
|
293
|
+
readonly domain: number[] | undefined;
|
|
294
|
+
} & {
|
|
295
|
+
readonly filled: boolean;
|
|
296
|
+
readonly summaryScoreModeSetting: string;
|
|
297
|
+
readonly scaleOpts: {
|
|
298
|
+
domain: number[] | undefined;
|
|
299
|
+
stats: {
|
|
300
|
+
scoreMin: number;
|
|
301
|
+
scoreMax: number;
|
|
302
|
+
} | undefined;
|
|
303
|
+
autoscaleType: any;
|
|
304
|
+
scaleType: any;
|
|
305
|
+
inverted: any;
|
|
306
|
+
};
|
|
307
|
+
readonly canHaveFill: boolean;
|
|
308
|
+
readonly displayCrossHatchesSetting: boolean;
|
|
309
|
+
readonly hasResolution: boolean;
|
|
310
|
+
readonly hasGlobalStats: boolean;
|
|
311
|
+
} & {
|
|
312
|
+
scoreTrackMenuItems(): ({
|
|
313
|
+
label: string;
|
|
314
|
+
subMenu: {
|
|
315
|
+
label: string;
|
|
316
|
+
onClick: () => void;
|
|
317
|
+
}[];
|
|
318
|
+
onClick?: undefined;
|
|
319
|
+
} | {
|
|
320
|
+
label: string;
|
|
321
|
+
subMenu: {
|
|
322
|
+
label: string;
|
|
323
|
+
type: string;
|
|
324
|
+
checked: boolean;
|
|
325
|
+
onClick: () => void;
|
|
326
|
+
}[];
|
|
327
|
+
onClick?: undefined;
|
|
328
|
+
} | {
|
|
329
|
+
label: string;
|
|
330
|
+
onClick: () => void;
|
|
331
|
+
subMenu?: undefined;
|
|
332
|
+
})[];
|
|
333
|
+
} & {
|
|
334
|
+
reload(): Promise<void>;
|
|
335
|
+
} & {
|
|
336
|
+
readonly TooltipComponent: import("react").FC<{}>;
|
|
337
|
+
readonly rendererTypeName: string;
|
|
338
|
+
} & {
|
|
339
|
+
readonly ticks: {
|
|
340
|
+
range: number[];
|
|
341
|
+
values: number[];
|
|
342
|
+
format: (d: import("d3-scale").NumberValue) => string;
|
|
343
|
+
position: import("d3-scale").ScaleLinear<number, number, never> | import("d3-scale").ScaleQuantize<number, never>;
|
|
344
|
+
} | undefined;
|
|
345
|
+
} & {
|
|
346
|
+
renderProps(): any;
|
|
347
|
+
readonly needsScalebar: boolean;
|
|
348
|
+
readonly fillSetting: 1 | 2 | 0;
|
|
349
|
+
} & {
|
|
350
|
+
trackMenuItems(): (import("@jbrowse/core/ui").MenuDivider | import("@jbrowse/core/ui").MenuSubHeader | import("@jbrowse/core/ui").NormalMenuItem | import("@jbrowse/core/ui").CheckboxMenuItem | import("@jbrowse/core/ui").RadioMenuItem | import("@jbrowse/core/ui").SubMenuItem | {
|
|
351
|
+
label: string;
|
|
352
|
+
subMenu: ({
|
|
353
|
+
label: string;
|
|
354
|
+
subMenu: {
|
|
355
|
+
label: string;
|
|
356
|
+
onClick: () => void;
|
|
357
|
+
}[];
|
|
358
|
+
onClick?: undefined;
|
|
359
|
+
} | {
|
|
360
|
+
label: string;
|
|
361
|
+
subMenu: {
|
|
362
|
+
label: string;
|
|
363
|
+
type: string;
|
|
364
|
+
checked: boolean;
|
|
365
|
+
onClick: () => void;
|
|
366
|
+
}[];
|
|
367
|
+
onClick?: undefined;
|
|
368
|
+
} | {
|
|
369
|
+
label: string;
|
|
370
|
+
onClick: () => void;
|
|
371
|
+
subMenu?: undefined;
|
|
372
|
+
})[];
|
|
373
|
+
type?: undefined;
|
|
374
|
+
checked?: undefined;
|
|
375
|
+
onClick?: undefined;
|
|
376
|
+
} | {
|
|
377
|
+
label: string;
|
|
378
|
+
subMenu: {
|
|
379
|
+
label: string;
|
|
380
|
+
type: string;
|
|
381
|
+
checked: boolean;
|
|
382
|
+
onClick: () => void;
|
|
383
|
+
}[];
|
|
384
|
+
type?: undefined;
|
|
385
|
+
checked?: undefined;
|
|
386
|
+
onClick?: undefined;
|
|
387
|
+
} | {
|
|
388
|
+
type: string;
|
|
389
|
+
label: string;
|
|
390
|
+
checked: boolean;
|
|
391
|
+
onClick: () => void;
|
|
392
|
+
subMenu?: undefined;
|
|
393
|
+
})[];
|
|
394
|
+
} & {
|
|
395
|
+
afterAttach(): void;
|
|
396
|
+
renderSvg(opts: import("@jbrowse/plugin-linear-genome-view").ExportSvgDisplayOptions): Promise<import("react").JSX.Element>;
|
|
397
|
+
} & {
|
|
398
|
+
setGCContentParams({ windowSize, windowDelta, }: {
|
|
399
|
+
windowSize: number;
|
|
400
|
+
windowDelta: number;
|
|
401
|
+
}): void;
|
|
402
|
+
} & {
|
|
403
|
+
readonly windowSizeSetting: any;
|
|
404
|
+
readonly windowDeltaSetting: any;
|
|
405
|
+
} & {
|
|
406
|
+
trackMenuItems(): import("@jbrowse/core/ui").MenuItem[];
|
|
407
|
+
renderProps(): any;
|
|
408
|
+
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
const mobx_state_tree_1 = require("mobx-state-tree");
|
|
7
|
+
// locals
|
|
8
|
+
const shared_1 = __importDefault(require("./shared"));
|
|
9
|
+
/**
|
|
10
|
+
* #stateModel LinearGCContentTrackDisplay
|
|
11
|
+
* #category display
|
|
12
|
+
*
|
|
13
|
+
* used on GCContentTrack, separately from the display type on the
|
|
14
|
+
* ReferenceSequenceTrack
|
|
15
|
+
*
|
|
16
|
+
* extends
|
|
17
|
+
* - [SharedGCContentModel](../sharedgccontentmodel)
|
|
18
|
+
*/
|
|
19
|
+
function stateModelF(pluginManager, configSchema) {
|
|
20
|
+
return mobx_state_tree_1.types.compose('LinearGCContentTrackDisplay', (0, shared_1.default)(pluginManager, configSchema), mobx_state_tree_1.types.model({
|
|
21
|
+
type: mobx_state_tree_1.types.literal('LinearGCContentTrackDisplay'),
|
|
22
|
+
}));
|
|
23
|
+
}
|
|
24
|
+
exports.default = stateModelF;
|
package/dist/index.js
CHANGED
|
@@ -6,6 +6,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
6
6
|
const Plugin_1 = __importDefault(require("@jbrowse/core/Plugin"));
|
|
7
7
|
// locals
|
|
8
8
|
const GCContentAdapter_1 = __importDefault(require("./GCContentAdapter"));
|
|
9
|
+
const GCContentTrack_1 = __importDefault(require("./GCContentTrack"));
|
|
9
10
|
const LinearGCContentDisplay_1 = __importDefault(require("./LinearGCContentDisplay"));
|
|
10
11
|
class GCContentPlugin extends Plugin_1.default {
|
|
11
12
|
constructor() {
|
|
@@ -14,6 +15,7 @@ class GCContentPlugin extends Plugin_1.default {
|
|
|
14
15
|
}
|
|
15
16
|
install(pluginManager) {
|
|
16
17
|
(0, GCContentAdapter_1.default)(pluginManager);
|
|
18
|
+
(0, GCContentTrack_1.default)(pluginManager);
|
|
17
19
|
(0, LinearGCContentDisplay_1.default)(pluginManager);
|
|
18
20
|
}
|
|
19
21
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { BaseFeatureDataAdapter, BaseOptions } from '@jbrowse/core/data_adapters/BaseAdapter';
|
|
2
2
|
import { Feature, Region } from '@jbrowse/core/util';
|
|
3
|
-
export default class extends BaseFeatureDataAdapter {
|
|
3
|
+
export default class GCContentAdapter extends BaseFeatureDataAdapter {
|
|
4
4
|
private gcMode;
|
|
5
5
|
static capabilities: string[];
|
|
6
6
|
configure(): Promise<BaseFeatureDataAdapter>;
|
|
@@ -3,7 +3,7 @@ import { firstValueFrom } from 'rxjs';
|
|
|
3
3
|
import { ObservableCreate } from '@jbrowse/core/util/rxjs';
|
|
4
4
|
import { SimpleFeature } from '@jbrowse/core/util';
|
|
5
5
|
import { toArray } from 'rxjs/operators';
|
|
6
|
-
class
|
|
6
|
+
class GCContentAdapter extends BaseFeatureDataAdapter {
|
|
7
7
|
constructor() {
|
|
8
8
|
super(...arguments);
|
|
9
9
|
this.gcMode = 'content';
|
|
@@ -68,6 +68,7 @@ class default_1 extends BaseFeatureDataAdapter {
|
|
|
68
68
|
}
|
|
69
69
|
observer.next(new SimpleFeature({
|
|
70
70
|
uniqueId: `${this.id}_${pos + i}`,
|
|
71
|
+
refName: query.refName,
|
|
71
72
|
start: pos + i,
|
|
72
73
|
end: pos + i + windowDelta,
|
|
73
74
|
score,
|
|
@@ -83,5 +84,5 @@ class default_1 extends BaseFeatureDataAdapter {
|
|
|
83
84
|
*/
|
|
84
85
|
freeResources( /* { region } */) { }
|
|
85
86
|
}
|
|
86
|
-
|
|
87
|
-
export default
|
|
87
|
+
GCContentAdapter.capabilities = ['hasLocalStats'];
|
|
88
|
+
export default GCContentAdapter;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import AdapterType from '@jbrowse/core/pluggableElementTypes/AdapterType';
|
|
2
2
|
import configSchemaF from './configSchema';
|
|
3
|
-
export default (pluginManager)
|
|
3
|
+
export default function GCContentAdapterF(pluginManager) {
|
|
4
4
|
pluginManager.addAdapterType(() => new AdapterType({
|
|
5
5
|
name: 'GCContentAdapter',
|
|
6
6
|
displayName: 'GC content adapter',
|
|
@@ -10,4 +10,4 @@ export default (pluginManager) => {
|
|
|
10
10
|
configSchema: configSchemaF(pluginManager),
|
|
11
11
|
getAdapterClass: () => import('./GCContentAdapter').then(r => r.default),
|
|
12
12
|
}));
|
|
13
|
-
}
|
|
13
|
+
}
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import PluginManager from '@jbrowse/core/PluginManager';
|
|
2
|
+
declare const configSchema: (pluginManager: PluginManager) => import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
3
|
+
name: {
|
|
4
|
+
description: string;
|
|
5
|
+
type: string;
|
|
6
|
+
defaultValue: string;
|
|
7
|
+
};
|
|
8
|
+
assemblyNames: {
|
|
9
|
+
description: string;
|
|
10
|
+
type: string; /**
|
|
11
|
+
* #baseConfiguration
|
|
12
|
+
*/
|
|
13
|
+
defaultValue: string[];
|
|
14
|
+
};
|
|
15
|
+
description: {
|
|
16
|
+
description: string;
|
|
17
|
+
type: string;
|
|
18
|
+
defaultValue: string;
|
|
19
|
+
};
|
|
20
|
+
category: {
|
|
21
|
+
description: string;
|
|
22
|
+
type: string;
|
|
23
|
+
defaultValue: never[];
|
|
24
|
+
};
|
|
25
|
+
metadata: {
|
|
26
|
+
type: string;
|
|
27
|
+
description: string;
|
|
28
|
+
defaultValue: {};
|
|
29
|
+
};
|
|
30
|
+
adapter: import("mobx-state-tree").IAnyModelType;
|
|
31
|
+
textSearching: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
32
|
+
indexingAttributes: {
|
|
33
|
+
type: string;
|
|
34
|
+
description: string;
|
|
35
|
+
defaultValue: string[];
|
|
36
|
+
};
|
|
37
|
+
indexingFeatureTypesToExclude: {
|
|
38
|
+
type: string;
|
|
39
|
+
description: string;
|
|
40
|
+
defaultValue: string[];
|
|
41
|
+
};
|
|
42
|
+
textSearchAdapter: import("mobx-state-tree").IAnyModelType;
|
|
43
|
+
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, undefined>>;
|
|
44
|
+
displays: import("mobx-state-tree").IArrayType<import("mobx-state-tree").IAnyModelType>;
|
|
45
|
+
formatDetails: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
46
|
+
feature: {
|
|
47
|
+
type: string;
|
|
48
|
+
description: string;
|
|
49
|
+
defaultValue: {};
|
|
50
|
+
contextVariable: string[];
|
|
51
|
+
};
|
|
52
|
+
subfeatures: {
|
|
53
|
+
type: string;
|
|
54
|
+
description: string;
|
|
55
|
+
defaultValue: {};
|
|
56
|
+
contextVariable: string[];
|
|
57
|
+
};
|
|
58
|
+
depth: {
|
|
59
|
+
type: string;
|
|
60
|
+
defaultValue: number;
|
|
61
|
+
description: string;
|
|
62
|
+
};
|
|
63
|
+
maxDepth: {
|
|
64
|
+
type: string;
|
|
65
|
+
defaultValue: number;
|
|
66
|
+
description: string;
|
|
67
|
+
};
|
|
68
|
+
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, undefined>>;
|
|
69
|
+
formatAbout: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
70
|
+
config: {
|
|
71
|
+
type: string;
|
|
72
|
+
description: string;
|
|
73
|
+
defaultValue: {};
|
|
74
|
+
contextVariable: string[];
|
|
75
|
+
};
|
|
76
|
+
hideUris: {
|
|
77
|
+
type: string;
|
|
78
|
+
defaultValue: boolean;
|
|
79
|
+
};
|
|
80
|
+
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, undefined>>;
|
|
81
|
+
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, "trackId">>, undefined>>;
|
|
82
|
+
export default configSchema;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ConfigurationSchema } from '@jbrowse/core/configuration';
|
|
2
|
+
import { createBaseTrackConfig } from '@jbrowse/core/pluggableElementTypes';
|
|
3
|
+
/**
|
|
4
|
+
* #config GCContentTrack
|
|
5
|
+
* used for having a gc content track outside of the "reference sequence display"
|
|
6
|
+
*/
|
|
7
|
+
function x() { } // eslint-disable-line @typescript-eslint/no-unused-vars
|
|
8
|
+
const configSchema = (pluginManager) => ConfigurationSchema('GCContentTrack', {}, {
|
|
9
|
+
/**
|
|
10
|
+
* #baseConfiguration
|
|
11
|
+
*/
|
|
12
|
+
baseConfiguration: createBaseTrackConfig(pluginManager),
|
|
13
|
+
});
|
|
14
|
+
export default configSchema;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import TrackType from '@jbrowse/core/pluggableElementTypes/TrackType';
|
|
2
|
+
import { createBaseTrackModel } from '@jbrowse/core/pluggableElementTypes/models';
|
|
3
|
+
import configSchemaF from './configSchema';
|
|
4
|
+
export default function GCContentTrackF(pm) {
|
|
5
|
+
pm.addTrackType(() => {
|
|
6
|
+
const configSchema = configSchemaF(pm);
|
|
7
|
+
return new TrackType({
|
|
8
|
+
name: 'GCContentTrack',
|
|
9
|
+
displayName: 'GCContent track',
|
|
10
|
+
configSchema,
|
|
11
|
+
stateModel: createBaseTrackModel(pm, 'GCContentTrack', configSchema),
|
|
12
|
+
});
|
|
13
|
+
});
|
|
14
|
+
}
|
|
@@ -4,7 +4,7 @@ import PluginManager from '@jbrowse/core/PluginManager';
|
|
|
4
4
|
* #category display
|
|
5
5
|
* extends LinearWiggleDisplay
|
|
6
6
|
*/
|
|
7
|
-
export default function
|
|
7
|
+
export default function LinearGCContentDisplay(pluginManager: PluginManager): import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
8
8
|
windowSize: {
|
|
9
9
|
type: string;
|
|
10
10
|
defaultValue: number;
|
|
@@ -4,7 +4,7 @@ import { ConfigurationSchema } from '@jbrowse/core/configuration';
|
|
|
4
4
|
* #category display
|
|
5
5
|
* extends LinearWiggleDisplay
|
|
6
6
|
*/
|
|
7
|
-
export default function
|
|
7
|
+
export default function LinearGCContentDisplay(pluginManager) {
|
|
8
8
|
return ConfigurationSchema('LinearGCContentDisplay', {
|
|
9
9
|
windowSize: {
|
|
10
10
|
type: 'number',
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import PluginManager from '@jbrowse/core/PluginManager';
|
|
2
|
+
/**
|
|
3
|
+
* #config LinearGCContentTrackDisplay
|
|
4
|
+
* #category display
|
|
5
|
+
* extends LinearWiggleDisplay, used specifically for GCContentTrack
|
|
6
|
+
*/
|
|
7
|
+
export default function LinearGCContentTrackDisplayF(pluginManager: PluginManager): import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
8
|
+
windowSize: {
|
|
9
|
+
type: string;
|
|
10
|
+
defaultValue: number;
|
|
11
|
+
};
|
|
12
|
+
windowDelta: {
|
|
13
|
+
type: string;
|
|
14
|
+
defaultValue: number;
|
|
15
|
+
};
|
|
16
|
+
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<import("@jbrowse/core/configuration").AnyConfigurationSchemaType, undefined>>;
|