@jbrowse/plugin-variants 2.5.0 → 2.6.2
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/ChordVariantDisplay/index.js +0 -1
- package/dist/ChordVariantDisplay/models/configSchema.js +0 -1
- package/dist/ChordVariantDisplay/models/stateModelFactory.d.ts +11 -3
- package/dist/ChordVariantDisplay/models/stateModelFactory.js +0 -1
- package/dist/LinearVariantDisplay/configSchema.js +0 -1
- package/dist/LinearVariantDisplay/index.js +0 -1
- package/dist/LinearVariantDisplay/model.d.ts +52 -49
- package/dist/LinearVariantDisplay/model.js +0 -1
- package/dist/StructuralVariantChordRenderer/Chord.d.ts +2 -1
- package/dist/StructuralVariantChordRenderer/Chord.js +0 -1
- package/dist/StructuralVariantChordRenderer/ReactComponent.d.ts +2 -1
- package/dist/StructuralVariantChordRenderer/ReactComponent.js +0 -1
- package/dist/StructuralVariantChordRenderer/configSchema.js +0 -1
- package/dist/StructuralVariantChordRenderer/index.js +0 -1
- package/dist/VariantFeatureWidget/AnnotGrid.d.ts +2 -1
- package/dist/VariantFeatureWidget/AnnotGrid.js +8 -14
- package/dist/VariantFeatureWidget/BreakendOptionDialog.d.ts +2 -1
- package/dist/VariantFeatureWidget/BreakendOptionDialog.js +0 -1
- package/dist/VariantFeatureWidget/BreakendPanel.d.ts +2 -1
- package/dist/VariantFeatureWidget/BreakendPanel.js +0 -1
- package/dist/VariantFeatureWidget/VariantAnnotationTable.d.ts +6 -0
- package/dist/VariantFeatureWidget/VariantAnnotationTable.js +16 -0
- package/dist/VariantFeatureWidget/VariantFeatureWidget.d.ts +8 -1
- package/dist/VariantFeatureWidget/VariantFeatureWidget.js +26 -15
- package/dist/VariantFeatureWidget/VariantSampleGrid.d.ts +9 -2
- package/dist/VariantFeatureWidget/VariantSampleGrid.js +0 -1
- package/dist/VariantFeatureWidget/index.js +0 -1
- package/dist/VariantTrack/configSchema.js +0 -1
- package/dist/VariantTrack/index.js +0 -1
- package/dist/VcfAdapter/VcfAdapter.js +0 -1
- package/dist/VcfAdapter/configSchema.js +0 -1
- package/dist/VcfAdapter/index.js +0 -1
- package/dist/VcfFeature/index.js +2 -2
- package/dist/VcfFeature/util.js +0 -1
- package/dist/VcfTabixAdapter/VcfTabixAdapter.js +0 -1
- package/dist/VcfTabixAdapter/configSchema.js +0 -1
- package/dist/VcfTabixAdapter/index.js +0 -1
- package/dist/extensionPoints.js +0 -1
- package/dist/index.js +0 -1
- package/esm/ChordVariantDisplay/index.js +0 -1
- package/esm/ChordVariantDisplay/models/configSchema.js +0 -1
- package/esm/ChordVariantDisplay/models/stateModelFactory.d.ts +11 -3
- package/esm/ChordVariantDisplay/models/stateModelFactory.js +0 -1
- package/esm/LinearVariantDisplay/configSchema.js +0 -1
- package/esm/LinearVariantDisplay/index.js +0 -1
- package/esm/LinearVariantDisplay/model.d.ts +52 -49
- package/esm/LinearVariantDisplay/model.js +0 -1
- package/esm/StructuralVariantChordRenderer/Chord.d.ts +2 -1
- package/esm/StructuralVariantChordRenderer/Chord.js +0 -1
- package/esm/StructuralVariantChordRenderer/ReactComponent.d.ts +2 -1
- package/esm/StructuralVariantChordRenderer/ReactComponent.js +0 -1
- package/esm/StructuralVariantChordRenderer/configSchema.js +0 -1
- package/esm/StructuralVariantChordRenderer/index.js +0 -1
- package/esm/VariantFeatureWidget/AnnotGrid.d.ts +2 -1
- package/esm/VariantFeatureWidget/AnnotGrid.js +8 -14
- package/esm/VariantFeatureWidget/BreakendOptionDialog.d.ts +2 -1
- package/esm/VariantFeatureWidget/BreakendOptionDialog.js +0 -1
- package/esm/VariantFeatureWidget/BreakendPanel.d.ts +2 -1
- package/esm/VariantFeatureWidget/BreakendPanel.js +0 -1
- package/esm/VariantFeatureWidget/VariantAnnotationTable.d.ts +6 -0
- package/esm/VariantFeatureWidget/VariantAnnotationTable.js +10 -0
- package/esm/VariantFeatureWidget/VariantFeatureWidget.d.ts +8 -1
- package/esm/VariantFeatureWidget/VariantFeatureWidget.js +26 -15
- package/esm/VariantFeatureWidget/VariantSampleGrid.d.ts +9 -2
- package/esm/VariantFeatureWidget/VariantSampleGrid.js +0 -1
- package/esm/VariantFeatureWidget/index.js +0 -1
- package/esm/VariantTrack/configSchema.js +0 -1
- package/esm/VariantTrack/index.js +0 -1
- package/esm/VcfAdapter/VcfAdapter.js +0 -1
- package/esm/VcfAdapter/configSchema.js +0 -1
- package/esm/VcfAdapter/index.js +0 -1
- package/esm/VcfFeature/index.js +2 -2
- package/esm/VcfFeature/util.js +0 -1
- package/esm/VcfTabixAdapter/VcfTabixAdapter.js +0 -1
- package/esm/VcfTabixAdapter/configSchema.js +0 -1
- package/esm/VcfTabixAdapter/index.js +0 -1
- package/esm/extensionPoints.js +0 -1
- package/esm/index.js +0 -1
- package/package.json +3 -4
- package/dist/ChordVariantDisplay/index.js.map +0 -1
- package/dist/ChordVariantDisplay/models/configSchema.js.map +0 -1
- package/dist/ChordVariantDisplay/models/stateModelFactory.js.map +0 -1
- package/dist/LinearVariantDisplay/configSchema.js.map +0 -1
- package/dist/LinearVariantDisplay/index.js.map +0 -1
- package/dist/LinearVariantDisplay/model.js.map +0 -1
- package/dist/StructuralVariantChordRenderer/Chord.js.map +0 -1
- package/dist/StructuralVariantChordRenderer/ReactComponent.js.map +0 -1
- package/dist/StructuralVariantChordRenderer/configSchema.js.map +0 -1
- package/dist/StructuralVariantChordRenderer/index.js.map +0 -1
- package/dist/VariantFeatureWidget/AnnotGrid.js.map +0 -1
- package/dist/VariantFeatureWidget/BreakendOptionDialog.js.map +0 -1
- package/dist/VariantFeatureWidget/BreakendPanel.js.map +0 -1
- package/dist/VariantFeatureWidget/VariantAnnPanel.d.ts +0 -4
- package/dist/VariantFeatureWidget/VariantAnnPanel.js +0 -25
- package/dist/VariantFeatureWidget/VariantAnnPanel.js.map +0 -1
- package/dist/VariantFeatureWidget/VariantCsqPanel.d.ts +0 -4
- package/dist/VariantFeatureWidget/VariantCsqPanel.js +0 -25
- package/dist/VariantFeatureWidget/VariantCsqPanel.js.map +0 -1
- package/dist/VariantFeatureWidget/VariantFeatureWidget.js.map +0 -1
- package/dist/VariantFeatureWidget/VariantSampleGrid.js.map +0 -1
- package/dist/VariantFeatureWidget/index.js.map +0 -1
- package/dist/VariantTrack/configSchema.js.map +0 -1
- package/dist/VariantTrack/index.js.map +0 -1
- package/dist/VcfAdapter/VcfAdapter.js.map +0 -1
- package/dist/VcfAdapter/configSchema.js.map +0 -1
- package/dist/VcfAdapter/index.js.map +0 -1
- package/dist/VcfFeature/index.js.map +0 -1
- package/dist/VcfFeature/util.js.map +0 -1
- package/dist/VcfTabixAdapter/VcfTabixAdapter.js.map +0 -1
- package/dist/VcfTabixAdapter/configSchema.js.map +0 -1
- package/dist/VcfTabixAdapter/index.js.map +0 -1
- package/dist/extensionPoints.js.map +0 -1
- package/dist/index.js.map +0 -1
- package/esm/ChordVariantDisplay/index.js.map +0 -1
- package/esm/ChordVariantDisplay/models/configSchema.js.map +0 -1
- package/esm/ChordVariantDisplay/models/stateModelFactory.js.map +0 -1
- package/esm/LinearVariantDisplay/configSchema.js.map +0 -1
- package/esm/LinearVariantDisplay/index.js.map +0 -1
- package/esm/LinearVariantDisplay/model.js.map +0 -1
- package/esm/StructuralVariantChordRenderer/Chord.js.map +0 -1
- package/esm/StructuralVariantChordRenderer/ReactComponent.js.map +0 -1
- package/esm/StructuralVariantChordRenderer/configSchema.js.map +0 -1
- package/esm/StructuralVariantChordRenderer/index.js.map +0 -1
- package/esm/VariantFeatureWidget/AnnotGrid.js.map +0 -1
- package/esm/VariantFeatureWidget/BreakendOptionDialog.js.map +0 -1
- package/esm/VariantFeatureWidget/BreakendPanel.js.map +0 -1
- package/esm/VariantFeatureWidget/VariantAnnPanel.d.ts +0 -4
- package/esm/VariantFeatureWidget/VariantAnnPanel.js +0 -19
- package/esm/VariantFeatureWidget/VariantAnnPanel.js.map +0 -1
- package/esm/VariantFeatureWidget/VariantCsqPanel.d.ts +0 -4
- package/esm/VariantFeatureWidget/VariantCsqPanel.js +0 -19
- package/esm/VariantFeatureWidget/VariantCsqPanel.js.map +0 -1
- package/esm/VariantFeatureWidget/VariantFeatureWidget.js.map +0 -1
- package/esm/VariantFeatureWidget/VariantSampleGrid.js.map +0 -1
- package/esm/VariantFeatureWidget/index.js.map +0 -1
- package/esm/VariantTrack/configSchema.js.map +0 -1
- package/esm/VariantTrack/index.js.map +0 -1
- package/esm/VcfAdapter/VcfAdapter.js.map +0 -1
- package/esm/VcfAdapter/configSchema.js.map +0 -1
- package/esm/VcfAdapter/index.js.map +0 -1
- package/esm/VcfFeature/index.js.map +0 -1
- package/esm/VcfFeature/util.js.map +0 -1
- package/esm/VcfTabixAdapter/VcfTabixAdapter.js.map +0 -1
- package/esm/VcfTabixAdapter/configSchema.js.map +0 -1
- package/esm/VcfTabixAdapter/index.js.map +0 -1
- package/esm/extensionPoints.js.map +0 -1
- package/esm/index.js.map +0 -1
- package/src/ChordVariantDisplay/index.ts +0 -23
- package/src/ChordVariantDisplay/models/configSchema.ts +0 -33
- package/src/ChordVariantDisplay/models/stateModelFactory.ts +0 -63
- package/src/LinearVariantDisplay/configSchema.ts +0 -30
- package/src/LinearVariantDisplay/index.ts +0 -20
- package/src/LinearVariantDisplay/model.ts +0 -76
- package/src/StructuralVariantChordRenderer/Chord.tsx +0 -141
- package/src/StructuralVariantChordRenderer/ReactComponent.tsx +0 -78
- package/src/StructuralVariantChordRenderer/configSchema.ts +0 -42
- package/src/StructuralVariantChordRenderer/index.ts +0 -17
- package/src/VariantFeatureWidget/AnnotGrid.tsx +0 -52
- package/src/VariantFeatureWidget/BreakendOptionDialog.tsx +0 -117
- package/src/VariantFeatureWidget/BreakendPanel.tsx +0 -93
- package/src/VariantFeatureWidget/VariantAnnPanel.tsx +0 -31
- package/src/VariantFeatureWidget/VariantCsqPanel.tsx +0 -31
- package/src/VariantFeatureWidget/VariantFeatureWidget.test.tsx +0 -42
- package/src/VariantFeatureWidget/VariantFeatureWidget.tsx +0 -67
- package/src/VariantFeatureWidget/VariantSampleGrid.tsx +0 -152
- package/src/VariantFeatureWidget/__snapshots__/VariantFeatureWidget.test.tsx.snap +0 -244
- package/src/VariantFeatureWidget/index.ts +0 -32
- package/src/VariantTrack/configSchema.ts +0 -24
- package/src/VariantTrack/index.ts +0 -16
- package/src/VcfAdapter/VcfAdapter.test.ts +0 -28
- package/src/VcfAdapter/VcfAdapter.ts +0 -125
- package/src/VcfAdapter/__snapshots__/VcfAdapter.test.ts.snap +0 -325
- package/src/VcfAdapter/configSchema.ts +0 -22
- package/src/VcfAdapter/index.ts +0 -15
- package/src/VcfAdapter/test_data/volvox.filtered.vcf +0 -73
- package/src/VcfFeature/index.test.ts +0 -132
- package/src/VcfFeature/index.ts +0 -104
- package/src/VcfFeature/util.ts +0 -138
- package/src/VcfTabixAdapter/VcfTabixAdapter.test.ts +0 -69
- package/src/VcfTabixAdapter/VcfTabixAdapter.ts +0 -90
- package/src/VcfTabixAdapter/__snapshots__/VcfTabixAdapter.test.ts.snap +0 -325
- package/src/VcfTabixAdapter/configSchema.ts +0 -43
- package/src/VcfTabixAdapter/index.ts +0 -17
- package/src/VcfTabixAdapter/test_data/volvox.filtered.vcf.gz +0 -0
- package/src/VcfTabixAdapter/test_data/volvox.filtered.vcf.gz.csi +0 -0
- package/src/VcfTabixAdapter/test_data/volvox.filtered.vcf.gz.tbi +0 -0
- package/src/__snapshots__/index.test.ts.snap +0 -20
- package/src/extensionPoints.ts +0 -74
- package/src/index.test.ts +0 -32
- package/src/index.ts +0 -27
|
@@ -34,6 +34,7 @@ declare const stateModelFactory: (configSchema: AnyConfigurationSchemaType) => i
|
|
|
34
34
|
error: unknown; /**
|
|
35
35
|
* #property
|
|
36
36
|
*/
|
|
37
|
+
message: string | undefined;
|
|
37
38
|
} & {
|
|
38
39
|
readonly RenderingComponent: import("react").FC<{
|
|
39
40
|
model: {
|
|
@@ -42,7 +43,10 @@ declare const stateModelFactory: (configSchema: AnyConfigurationSchemaType) => i
|
|
|
42
43
|
rpcDriverName: string | undefined;
|
|
43
44
|
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
44
45
|
rendererTypeName: string;
|
|
45
|
-
error: unknown;
|
|
46
|
+
error: unknown; /**
|
|
47
|
+
* #method
|
|
48
|
+
*/
|
|
49
|
+
message: string | undefined;
|
|
46
50
|
} & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
|
|
47
51
|
id: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
48
52
|
type: import("mobx-state-tree").ISimpleType<string>;
|
|
@@ -50,6 +54,7 @@ declare const stateModelFactory: (configSchema: AnyConfigurationSchemaType) => i
|
|
|
50
54
|
}, {
|
|
51
55
|
rendererTypeName: string;
|
|
52
56
|
error: unknown;
|
|
57
|
+
message: string | undefined;
|
|
53
58
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>;
|
|
54
59
|
onHorizontalScroll?: Function | undefined;
|
|
55
60
|
blockState?: Record<string, any> | undefined;
|
|
@@ -62,6 +67,7 @@ declare const stateModelFactory: (configSchema: AnyConfigurationSchemaType) => i
|
|
|
62
67
|
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
63
68
|
rendererTypeName: string;
|
|
64
69
|
error: unknown;
|
|
70
|
+
message: string | undefined;
|
|
65
71
|
} & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
|
|
66
72
|
id: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
67
73
|
type: import("mobx-state-tree").ISimpleType<string>;
|
|
@@ -69,6 +75,7 @@ declare const stateModelFactory: (configSchema: AnyConfigurationSchemaType) => i
|
|
|
69
75
|
}, {
|
|
70
76
|
rendererTypeName: string;
|
|
71
77
|
error: unknown;
|
|
78
|
+
message: string | undefined;
|
|
72
79
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>;
|
|
73
80
|
}> | null;
|
|
74
81
|
readonly adapterConfig: any;
|
|
@@ -78,8 +85,9 @@ declare const stateModelFactory: (configSchema: AnyConfigurationSchemaType) => i
|
|
|
78
85
|
readonly DisplayMessageComponent: import("react").FC<any> | undefined;
|
|
79
86
|
trackMenuItems(): import("@jbrowse/core/ui").MenuItem[];
|
|
80
87
|
readonly viewMenuActions: import("@jbrowse/core/ui").MenuItem[];
|
|
81
|
-
regionCannotBeRendered():
|
|
88
|
+
regionCannotBeRendered(): null;
|
|
82
89
|
} & {
|
|
90
|
+
setMessage(arg?: string | undefined): void;
|
|
83
91
|
setError(error?: unknown): void;
|
|
84
92
|
setRpcDriverName(rpcDriverName: string): void;
|
|
85
93
|
reload(): void;
|
|
@@ -115,7 +123,7 @@ declare const stateModelFactory: (configSchema: AnyConfigurationSchemaType) => i
|
|
|
115
123
|
} & {
|
|
116
124
|
renderSvg(opts: import("@jbrowse/plugin-circular-view/src/CircularView/models/CircularView").ExportSvgOptions & {
|
|
117
125
|
theme: import("@mui/material").ThemeOptions;
|
|
118
|
-
}): Promise<JSX.Element>;
|
|
126
|
+
}): Promise<import("react").JSX.Element>;
|
|
119
127
|
} & {
|
|
120
128
|
/**
|
|
121
129
|
* #getter
|
|
@@ -13,6 +13,13 @@ export default function stateModelFactory(configSchema: AnyConfigurationSchemaTy
|
|
|
13
13
|
rpcDriverName: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<string>>;
|
|
14
14
|
} & {
|
|
15
15
|
heightPreConfig: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<number>>;
|
|
16
|
+
} & {
|
|
17
|
+
/**
|
|
18
|
+
* #property
|
|
19
|
+
*/
|
|
20
|
+
userBpPerPxLimit: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<number>>;
|
|
21
|
+
userByteSizeLimit: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<number>>;
|
|
22
|
+
} & {
|
|
16
23
|
blockState: import("mobx-state-tree").IMapType<import("mobx-state-tree").IModelType<{
|
|
17
24
|
key: import("mobx-state-tree").ISimpleType<string>;
|
|
18
25
|
region: import("mobx-state-tree").IModelType<{
|
|
@@ -59,8 +66,6 @@ export default function stateModelFactory(configSchema: AnyConfigurationSchemaTy
|
|
|
59
66
|
reload(): void;
|
|
60
67
|
beforeDestroy(): void;
|
|
61
68
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>;
|
|
62
|
-
userBpPerPxLimit: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<number>>;
|
|
63
|
-
userByteSizeLimit: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<number>>;
|
|
64
69
|
configuration: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
65
70
|
maxFeatureScreenDensity: {
|
|
66
71
|
type: string;
|
|
@@ -70,18 +75,12 @@ export default function stateModelFactory(configSchema: AnyConfigurationSchemaTy
|
|
|
70
75
|
fetchSizeLimit: {
|
|
71
76
|
type: string;
|
|
72
77
|
defaultValue: number;
|
|
73
|
-
description: string;
|
|
74
|
-
|
|
75
|
-
*/
|
|
76
|
-
}; /**
|
|
77
|
-
* #property
|
|
78
|
-
*/
|
|
78
|
+
description: string;
|
|
79
|
+
};
|
|
79
80
|
height: {
|
|
80
81
|
type: string;
|
|
81
82
|
defaultValue: number;
|
|
82
|
-
description: string;
|
|
83
|
-
* #action
|
|
84
|
-
*/
|
|
83
|
+
description: string;
|
|
85
84
|
};
|
|
86
85
|
mouseover: {
|
|
87
86
|
type: string;
|
|
@@ -93,9 +92,7 @@ export default function stateModelFactory(configSchema: AnyConfigurationSchemaTy
|
|
|
93
92
|
} & {
|
|
94
93
|
type: import("mobx-state-tree").ISimpleType<"LinearBasicDisplay">;
|
|
95
94
|
trackShowLabels: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<boolean>>;
|
|
96
|
-
trackShowDescriptions: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<boolean>>;
|
|
97
|
-
* #action
|
|
98
|
-
*/
|
|
95
|
+
trackShowDescriptions: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<boolean>>;
|
|
99
96
|
trackDisplayMode: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<string>>;
|
|
100
97
|
trackMaxHeight: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<number>>;
|
|
101
98
|
configuration: AnyConfigurationSchemaType;
|
|
@@ -111,6 +108,7 @@ export default function stateModelFactory(configSchema: AnyConfigurationSchemaTy
|
|
|
111
108
|
}, {
|
|
112
109
|
rendererTypeName: string;
|
|
113
110
|
error: unknown;
|
|
111
|
+
message: string | undefined;
|
|
114
112
|
} & {
|
|
115
113
|
readonly RenderingComponent: import("react").FC<{
|
|
116
114
|
model: {
|
|
@@ -120,6 +118,7 @@ export default function stateModelFactory(configSchema: AnyConfigurationSchemaTy
|
|
|
120
118
|
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
121
119
|
rendererTypeName: string;
|
|
122
120
|
error: unknown;
|
|
121
|
+
message: string | undefined;
|
|
123
122
|
} & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
|
|
124
123
|
id: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
125
124
|
type: import("mobx-state-tree").ISimpleType<string>;
|
|
@@ -127,6 +126,7 @@ export default function stateModelFactory(configSchema: AnyConfigurationSchemaTy
|
|
|
127
126
|
}, {
|
|
128
127
|
rendererTypeName: string;
|
|
129
128
|
error: unknown;
|
|
129
|
+
message: string | undefined;
|
|
130
130
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>;
|
|
131
131
|
onHorizontalScroll?: Function | undefined;
|
|
132
132
|
blockState?: Record<string, any> | undefined;
|
|
@@ -139,6 +139,7 @@ export default function stateModelFactory(configSchema: AnyConfigurationSchemaTy
|
|
|
139
139
|
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
140
140
|
rendererTypeName: string;
|
|
141
141
|
error: unknown;
|
|
142
|
+
message: string | undefined;
|
|
142
143
|
} & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
|
|
143
144
|
id: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
144
145
|
type: import("mobx-state-tree").ISimpleType<string>;
|
|
@@ -146,6 +147,7 @@ export default function stateModelFactory(configSchema: AnyConfigurationSchemaTy
|
|
|
146
147
|
}, {
|
|
147
148
|
rendererTypeName: string;
|
|
148
149
|
error: unknown;
|
|
150
|
+
message: string | undefined;
|
|
149
151
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>;
|
|
150
152
|
}> | null;
|
|
151
153
|
readonly adapterConfig: any;
|
|
@@ -155,21 +157,49 @@ export default function stateModelFactory(configSchema: AnyConfigurationSchemaTy
|
|
|
155
157
|
readonly DisplayMessageComponent: import("react").FC<any> | undefined;
|
|
156
158
|
trackMenuItems(): import("@jbrowse/core/ui").MenuItem[];
|
|
157
159
|
readonly viewMenuActions: import("@jbrowse/core/ui").MenuItem[];
|
|
158
|
-
regionCannotBeRendered():
|
|
160
|
+
regionCannotBeRendered(): null;
|
|
159
161
|
} & {
|
|
162
|
+
setMessage(arg?: string | undefined): void;
|
|
160
163
|
setError(error?: unknown): void;
|
|
161
164
|
setRpcDriverName(rpcDriverName: string): void;
|
|
162
165
|
reload(): void;
|
|
163
166
|
} & {
|
|
164
|
-
currBpPerPx: number;
|
|
165
167
|
scrollTop: number;
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
168
|
+
} & {
|
|
169
|
+
readonly height: number;
|
|
170
|
+
} & {
|
|
171
|
+
setScrollTop(scrollTop: number): void;
|
|
172
|
+
setHeight(displayHeight: number): number;
|
|
173
|
+
resizeHeight(distance: number): number;
|
|
174
|
+
} & {
|
|
169
175
|
featureDensityStatsP: Promise<import("@jbrowse/core/data_adapters/BaseAdapter").FeatureDensityStats> | undefined;
|
|
170
176
|
featureDensityStats: import("@jbrowse/core/data_adapters/BaseAdapter").FeatureDensityStats | undefined;
|
|
177
|
+
currStatsBpPerPx: number;
|
|
178
|
+
} & {
|
|
179
|
+
readonly currentBytesRequested: number;
|
|
180
|
+
readonly currentFeatureScreenDensity: number;
|
|
181
|
+
readonly maxFeatureScreenDensity: any;
|
|
182
|
+
readonly featureDensityStatsReady: boolean;
|
|
183
|
+
readonly maxAllowableBytes: number;
|
|
184
|
+
} & {
|
|
185
|
+
afterAttach(): void;
|
|
186
|
+
} & {
|
|
187
|
+
setCurrStatsBpPerPx(n: number): void;
|
|
188
|
+
setFeatureDensityStatsLimit(stats?: import("@jbrowse/core/data_adapters/BaseAdapter").FeatureDensityStats | undefined): void;
|
|
189
|
+
getFeatureDensityStats(): Promise<import("@jbrowse/core/data_adapters/BaseAdapter").FeatureDensityStats>;
|
|
190
|
+
setFeatureDensityStatsP(arg: any): void;
|
|
191
|
+
setFeatureDensityStats(featureDensityStats?: import("@jbrowse/core/data_adapters/BaseAdapter").FeatureDensityStats | undefined): void;
|
|
192
|
+
clearFeatureDensityStats(): void;
|
|
193
|
+
} & {
|
|
194
|
+
readonly regionTooLarge: boolean;
|
|
195
|
+
readonly regionTooLargeReason: string;
|
|
196
|
+
} & {
|
|
197
|
+
regionCannotBeRenderedText(_region: import("@jbrowse/core/util").Region): "" | "Force load to see features";
|
|
198
|
+
regionCannotBeRendered(_region: import("@jbrowse/core/util").Region): import("react").JSX.Element | null;
|
|
199
|
+
} & {
|
|
200
|
+
featureIdUnderMouse: string | undefined;
|
|
201
|
+
contextMenuFeature: Feature | undefined;
|
|
171
202
|
} & {
|
|
172
|
-
readonly height: number;
|
|
173
203
|
readonly blockType: "dynamicBlocks" | "staticBlocks";
|
|
174
204
|
readonly blockDefinitions: import("@jbrowse/core/util/blockTypes").BlockSet;
|
|
175
205
|
} & {
|
|
@@ -183,49 +213,22 @@ export default function stateModelFactory(configSchema: AnyConfigurationSchemaTy
|
|
|
183
213
|
getFeatureOverlapping(blockKey: string, x: number, y: number): string | undefined;
|
|
184
214
|
getFeatureByID(blockKey: string, id: string): [number, number, number, number] | undefined;
|
|
185
215
|
searchFeatureByID(id: string): [number, number, number, number] | undefined;
|
|
186
|
-
readonly currentBytesRequested: number;
|
|
187
|
-
readonly currentFeatureScreenDensity: number;
|
|
188
|
-
readonly maxFeatureScreenDensity: any;
|
|
189
|
-
readonly featureDensityStatsReady: boolean;
|
|
190
|
-
readonly maxAllowableBytes: number;
|
|
191
|
-
} & {
|
|
192
|
-
setMessage(message: string): void;
|
|
193
216
|
} & {
|
|
194
|
-
afterAttach(): void;
|
|
195
|
-
getFeatureDensityStats(): Promise<import("@jbrowse/core/data_adapters/BaseAdapter").FeatureDensityStats>;
|
|
196
|
-
setFeatureDensityStatsP(arg: any): void;
|
|
197
|
-
setFeatureDensityStats(featureDensityStats?: import("@jbrowse/core/data_adapters/BaseAdapter").FeatureDensityStats | undefined): void;
|
|
198
|
-
clearFeatureDensityStats(): void;
|
|
199
|
-
setHeight(displayHeight: number): number;
|
|
200
|
-
resizeHeight(distance: number): number;
|
|
201
|
-
setScrollTop(scrollTop: number): void;
|
|
202
|
-
setFeatureDensityStatsLimit(stats?: import("@jbrowse/core/data_adapters/BaseAdapter").FeatureDensityStats | undefined): void;
|
|
203
217
|
addBlock(key: string, block: import("@jbrowse/core/util/blockTypes").BaseBlock): void;
|
|
204
|
-
setCurrBpPerPx(n: number): void;
|
|
205
218
|
deleteBlock(key: string): void;
|
|
206
219
|
selectFeature(feature: Feature): void;
|
|
207
220
|
clearFeatureSelection(): void;
|
|
208
221
|
setFeatureIdUnderMouse(feature?: string | undefined): void;
|
|
209
|
-
reload(): void;
|
|
210
222
|
setContextMenuFeature(feature?: Feature | undefined): void;
|
|
211
|
-
} & {
|
|
212
|
-
readonly regionTooLarge: boolean;
|
|
213
|
-
readonly regionTooLargeReason: string;
|
|
214
223
|
} & {
|
|
215
224
|
reload(): Promise<void>;
|
|
216
225
|
} & {
|
|
217
|
-
afterAttach(): void;
|
|
218
|
-
} & {
|
|
219
|
-
regionCannotBeRenderedText(_region: import("@jbrowse/core/util").Region): "" | "Force load to see features";
|
|
220
|
-
regionCannotBeRendered(_region: import("@jbrowse/core/util").Region): JSX.Element | null;
|
|
221
226
|
trackMenuItems(): import("@jbrowse/core/ui").MenuItem[];
|
|
222
227
|
contextMenuItems(): import("@jbrowse/core/ui").MenuItem[];
|
|
223
228
|
renderProps(): any;
|
|
224
229
|
} & {
|
|
225
|
-
renderSvg(opts: import("@jbrowse/plugin-linear-genome-view
|
|
226
|
-
|
|
227
|
-
theme: import("@mui/material").ThemeOptions;
|
|
228
|
-
}): Promise<JSX.Element>;
|
|
230
|
+
renderSvg(opts: import("@jbrowse/plugin-linear-genome-view").ExportSvgDisplayOptions): Promise<import("react").JSX.Element>;
|
|
231
|
+
afterAttach(): void;
|
|
229
232
|
} & {
|
|
230
233
|
readonly rendererTypeName: any;
|
|
231
234
|
readonly showLabels: any;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import { Feature } from '@jbrowse/core/util';
|
|
2
3
|
import { AnyConfigurationModel } from '@jbrowse/core/configuration';
|
|
3
4
|
export interface Region {
|
|
@@ -27,5 +28,5 @@ declare const Chord: ({ feature, blocksForRefs, radius, config, bezierRadius, se
|
|
|
27
28
|
bezierRadius: number;
|
|
28
29
|
selected: boolean;
|
|
29
30
|
onClick: (feature: Feature, reg: AnyRegion, endBlock: AnyRegion, evt: unknown) => void;
|
|
30
|
-
}) => JSX.Element | null;
|
|
31
|
+
}) => React.JSX.Element | null;
|
|
31
32
|
export default Chord;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import { Feature } from '@jbrowse/core/util';
|
|
2
3
|
import { AnyConfigurationModel } from '@jbrowse/core/configuration';
|
|
3
4
|
import { Block, AnyRegion } from './Chord';
|
|
@@ -12,5 +13,5 @@ declare const _default: ({ features, config, displayModel, blockDefinitions, rad
|
|
|
12
13
|
blockDefinitions: Block[];
|
|
13
14
|
bezierRadius: number;
|
|
14
15
|
onChordClick: (feature: Feature, reg: AnyRegion, endBlock: AnyRegion, evt: unknown) => void;
|
|
15
|
-
}) => JSX.Element;
|
|
16
|
+
}) => React.JSX.Element;
|
|
16
17
|
export default _default;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import { GridColDef, GridValidRowModel } from '@mui/x-data-grid';
|
|
2
3
|
export default function VariantAnnotPanel({ rows, columns, }: {
|
|
3
4
|
rows: GridValidRowModel[];
|
|
4
5
|
columns: GridColDef[];
|
|
5
|
-
}): JSX.Element | null;
|
|
6
|
+
}): React.JSX.Element | null;
|
|
@@ -26,22 +26,16 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
26
26
|
const react_1 = __importStar(require("react"));
|
|
27
27
|
const x_data_grid_1 = require("@mui/x-data-grid");
|
|
28
28
|
const material_1 = require("@mui/material");
|
|
29
|
+
const ResizeBar_1 = __importStar(require("@jbrowse/core/ui/ResizeBar"));
|
|
30
|
+
const util_1 = require("@jbrowse/core/util");
|
|
29
31
|
function VariantAnnotPanel({ rows, columns, }) {
|
|
30
|
-
const
|
|
31
|
-
const headerHeight = 100;
|
|
32
|
-
const footerHeight = 50;
|
|
32
|
+
const { ref, scrollLeft } = (0, ResizeBar_1.useResizeBar)();
|
|
33
33
|
const [checked, setChecked] = (0, react_1.useState)(false);
|
|
34
|
-
const
|
|
35
|
-
|
|
36
|
-
(checked ? 50 : 0) +
|
|
37
|
-
footerHeight;
|
|
38
|
-
return rows.length ? (react_1.default.createElement("div", null,
|
|
34
|
+
const [widths, setWidths] = (0, react_1.useState)(columns.map(e => (0, util_1.measureGridWidth)(rows.map(r => r[e.field]))));
|
|
35
|
+
return rows.length ? (react_1.default.createElement("div", { ref: ref },
|
|
39
36
|
react_1.default.createElement(material_1.FormControlLabel, { control: react_1.default.createElement(material_1.Checkbox, { checked: checked, onChange: event => setChecked(event.target.checked) }), label: react_1.default.createElement(material_1.Typography, { variant: "body2" }, "Show options") }),
|
|
40
|
-
react_1.default.createElement("div", {
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
} },
|
|
44
|
-
react_1.default.createElement(x_data_grid_1.DataGrid, { rowHeight: rowHeight, rows: rows, columns: columns, slots: { toolbar: checked ? x_data_grid_1.GridToolbar : null } })))) : null;
|
|
37
|
+
react_1.default.createElement("div", { ref: ref },
|
|
38
|
+
react_1.default.createElement(ResizeBar_1.default, { widths: widths, setWidths: setWidths, scrollLeft: scrollLeft }),
|
|
39
|
+
react_1.default.createElement(x_data_grid_1.DataGrid, { rowHeight: 25, rows: rows, columns: columns.map((c, i) => ({ ...c, width: widths[i] })), slots: { toolbar: checked ? x_data_grid_1.GridToolbar : null } })))) : null;
|
|
45
40
|
}
|
|
46
41
|
exports.default = VariantAnnotPanel;
|
|
47
|
-
//# sourceMappingURL=AnnotGrid.js.map
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import { Feature } from '@jbrowse/core/util';
|
|
2
3
|
declare const _default: ({ model, handleClose, feature, viewType, }: {
|
|
3
4
|
model: any;
|
|
4
5
|
handleClose: () => void;
|
|
5
6
|
feature: Feature;
|
|
6
7
|
viewType: any;
|
|
7
|
-
}) => JSX.Element;
|
|
8
|
+
}) => React.JSX.Element;
|
|
8
9
|
export default _default;
|
|
@@ -74,4 +74,3 @@ exports.default = (0, mobx_react_1.observer)(function BreakendOptionDialog({ mod
|
|
|
74
74
|
}, variant: "contained", color: "primary", autoFocus: true }, "OK"),
|
|
75
75
|
react_1.default.createElement(material_1.Button, { onClick: () => handleClose(), color: "secondary", variant: "contained" }, "Cancel"))));
|
|
76
76
|
});
|
|
77
|
-
//# sourceMappingURL=BreakendOptionDialog.js.map
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import { SimpleFeatureSerialized } from '@jbrowse/core/util/simpleFeature';
|
|
2
3
|
export default function BreakendPanel(props: {
|
|
3
4
|
locStrings: string[];
|
|
4
5
|
model: any;
|
|
5
6
|
feature: SimpleFeatureSerialized;
|
|
6
|
-
}): JSX.Element;
|
|
7
|
+
}): React.JSX.Element;
|
|
@@ -0,0 +1,16 @@
|
|
|
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 react_1 = __importDefault(require("react"));
|
|
7
|
+
const BaseFeatureDetail_1 = require("@jbrowse/core/BaseFeatureWidget/BaseFeatureDetail");
|
|
8
|
+
const AnnotGrid_1 = __importDefault(require("./AnnotGrid"));
|
|
9
|
+
function VariantAnnotationTable({ data, fields, title, }) {
|
|
10
|
+
return data.length ? (react_1.default.createElement(BaseFeatureDetail_1.BaseCard, { title: title },
|
|
11
|
+
react_1.default.createElement(AnnotGrid_1.default, { rows: data.map((elt, id) => ({
|
|
12
|
+
id,
|
|
13
|
+
...Object.fromEntries(elt.split('|').map((e, i) => [fields[i], e])),
|
|
14
|
+
})) || [], columns: fields.map(c => ({ field: c })) }))) : null;
|
|
15
|
+
}
|
|
16
|
+
exports.default = VariantAnnotationTable;
|
|
@@ -1,3 +1,10 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { SimpleFeatureSerialized } from '@jbrowse/core/util';
|
|
3
|
+
declare function VariantFeatureDetails(props: {
|
|
4
|
+
model: {
|
|
5
|
+
featureData: SimpleFeatureSerialized;
|
|
6
|
+
descriptions: Record<string, string>;
|
|
7
|
+
};
|
|
8
|
+
}): React.JSX.Element;
|
|
2
9
|
declare const _default: typeof VariantFeatureDetails;
|
|
3
10
|
export default _default;
|
|
@@ -3,7 +3,6 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
7
6
|
const react_1 = __importDefault(require("react"));
|
|
8
7
|
const mobx_react_1 = require("mobx-react");
|
|
9
8
|
const material_1 = require("@mui/material");
|
|
@@ -11,33 +10,45 @@ const BaseFeatureDetail_1 = require("@jbrowse/core/BaseFeatureWidget/BaseFeature
|
|
|
11
10
|
const vcf_1 = require("@gmod/vcf");
|
|
12
11
|
// locals
|
|
13
12
|
const VariantSampleGrid_1 = __importDefault(require("./VariantSampleGrid"));
|
|
14
|
-
const VariantCsqPanel_1 = __importDefault(require("./VariantCsqPanel"));
|
|
15
|
-
const VariantAnnPanel_1 = __importDefault(require("./VariantAnnPanel"));
|
|
16
13
|
const BreakendPanel_1 = __importDefault(require("./BreakendPanel"));
|
|
14
|
+
const VariantAnnotationTable_1 = __importDefault(require("./VariantAnnotationTable"));
|
|
15
|
+
const basicDescriptions = {
|
|
16
|
+
CHROM: 'chromosome: An identifier from the reference genome',
|
|
17
|
+
POS: 'position: The reference position, with the 1st base having position 1',
|
|
18
|
+
ID: 'identifier: Semi-colon separated list of unique identifiers where available',
|
|
19
|
+
REF: 'reference base(s): Each base must be one of A,C,G,T,N (case insensitive).',
|
|
20
|
+
ALT: 'alternate base(s): Comma-separated list of alternate non-reference alleles',
|
|
21
|
+
QUAL: 'quality: Phred-scaled quality score for the assertion made in ALT',
|
|
22
|
+
FILTER: 'filter status: PASS if this position has passed all filters, otherwise a semicolon-separated list of codes for filters that fail',
|
|
23
|
+
};
|
|
17
24
|
function VariantFeatureDetails(props) {
|
|
18
25
|
const { model } = props;
|
|
19
26
|
const { featureData, descriptions } = model;
|
|
20
27
|
const feat = JSON.parse(JSON.stringify(featureData));
|
|
21
28
|
const { samples, ...rest } = feat;
|
|
22
|
-
const basicDescriptions = {
|
|
23
|
-
CHROM: 'chromosome: An identifier from the reference genome',
|
|
24
|
-
POS: 'position: The reference position, with the 1st base having position 1',
|
|
25
|
-
ID: 'identifier: Semi-colon separated list of unique identifiers where available',
|
|
26
|
-
REF: 'reference base(s): Each base must be one of A,C,G,T,N (case insensitive).',
|
|
27
|
-
ALT: 'alternate base(s): Comma-separated list of alternate non-reference alleles',
|
|
28
|
-
QUAL: 'quality: Phred-scaled quality score for the assertion made in ALT',
|
|
29
|
-
FILTER: 'filter status: PASS if this position has passed all filters, otherwise a semicolon-separated list of codes for filters that fail',
|
|
30
|
-
};
|
|
31
29
|
return (react_1.default.createElement(material_1.Paper, { "data-testid": "variant-side-drawer" },
|
|
32
30
|
react_1.default.createElement(BaseFeatureDetail_1.FeatureDetails, { feature: rest, descriptions: { ...basicDescriptions, ...descriptions }, ...props }),
|
|
33
31
|
react_1.default.createElement(material_1.Divider, null),
|
|
34
|
-
react_1.default.createElement(
|
|
32
|
+
react_1.default.createElement(CsqPanel, { feature: rest, descriptions: descriptions }),
|
|
35
33
|
react_1.default.createElement(material_1.Divider, null),
|
|
36
|
-
react_1.default.createElement(
|
|
34
|
+
react_1.default.createElement(AnnPanel, { feature: rest, descriptions: descriptions }),
|
|
37
35
|
react_1.default.createElement(material_1.Divider, null),
|
|
38
36
|
feat.type === 'breakend' ? (react_1.default.createElement(BreakendPanel_1.default, { feature: feat, locStrings: feat.ALT.map((alt) => { var _a; return ((_a = (0, vcf_1.parseBreakend)(alt)) === null || _a === void 0 ? void 0 : _a.MatePosition) || ''; }), model: model })) : null,
|
|
39
37
|
feat.type === 'translocation' ? (react_1.default.createElement(BreakendPanel_1.default, { feature: feat, model: model, locStrings: [`${feat.INFO.CHR2[0]}:${feat.INFO.END}`] })) : null,
|
|
40
38
|
react_1.default.createElement(VariantSampleGrid_1.default, { feature: feat, ...props, descriptions: descriptions })));
|
|
41
39
|
}
|
|
40
|
+
function AnnPanel({ descriptions, feature, }) {
|
|
41
|
+
var _a, _b, _c, _d;
|
|
42
|
+
const annDesc = (_b = (_a = descriptions === null || descriptions === void 0 ? void 0 : descriptions.INFO) === null || _a === void 0 ? void 0 : _a.ANN) === null || _b === void 0 ? void 0 : _b.Description;
|
|
43
|
+
const annFields = ((_c = annDesc === null || annDesc === void 0 ? void 0 : annDesc.match(/.*Functional annotations:'(.*)'$/)) === null || _c === void 0 ? void 0 : _c[1].split('|')) || [];
|
|
44
|
+
const ann = ((_d = feature.INFO) === null || _d === void 0 ? void 0 : _d.ANN) || [];
|
|
45
|
+
return (react_1.default.createElement(VariantAnnotationTable_1.default, { fields: annFields, data: ann, title: "Variant ANN field" }));
|
|
46
|
+
}
|
|
47
|
+
function CsqPanel({ descriptions, feature, }) {
|
|
48
|
+
var _a, _b, _c, _d;
|
|
49
|
+
const csqDescription = (_b = (_a = descriptions === null || descriptions === void 0 ? void 0 : descriptions.INFO) === null || _a === void 0 ? void 0 : _a.CSQ) === null || _b === void 0 ? void 0 : _b.Description;
|
|
50
|
+
const csqFields = ((_c = csqDescription === null || csqDescription === void 0 ? void 0 : csqDescription.match(/.*Format: (.*)/)) === null || _c === void 0 ? void 0 : _c[1].split('|')) || [];
|
|
51
|
+
const csq = ((_d = feature.INFO) === null || _d === void 0 ? void 0 : _d.CSQ) || [];
|
|
52
|
+
return (react_1.default.createElement(VariantAnnotationTable_1.default, { fields: csqFields, data: csq, title: "Variant CSQ field" }));
|
|
53
|
+
}
|
|
42
54
|
exports.default = (0, mobx_react_1.observer)(VariantFeatureDetails);
|
|
43
|
-
//# sourceMappingURL=VariantFeatureWidget.js.map
|
|
@@ -1,5 +1,12 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import { SimpleFeatureSerialized } from '@jbrowse/core/util';
|
|
2
3
|
export default function VariantSamples(props: {
|
|
3
4
|
feature: SimpleFeatureSerialized;
|
|
4
|
-
descriptions:
|
|
5
|
-
|
|
5
|
+
descriptions: {
|
|
6
|
+
FORMAT?: {
|
|
7
|
+
[key: string]: {
|
|
8
|
+
Description?: string;
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
}): React.JSX.Element | null;
|
package/dist/VcfAdapter/index.js
CHANGED
package/dist/VcfFeature/index.js
CHANGED
|
@@ -12,9 +12,10 @@ class VCFFeature {
|
|
|
12
12
|
}
|
|
13
13
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
14
14
|
get(field) {
|
|
15
|
+
var _a;
|
|
15
16
|
return field === 'samples'
|
|
16
17
|
? this.variant.SAMPLES
|
|
17
|
-
: this.data[field]
|
|
18
|
+
: (_a = this.data[field]) !== null && _a !== void 0 ? _a : this.variant[field];
|
|
18
19
|
}
|
|
19
20
|
set() { }
|
|
20
21
|
parent() {
|
|
@@ -56,4 +57,3 @@ class VCFFeature {
|
|
|
56
57
|
}
|
|
57
58
|
}
|
|
58
59
|
exports.default = VCFFeature;
|
|
59
|
-
//# sourceMappingURL=index.js.map
|
package/dist/VcfFeature/util.js
CHANGED