@jbrowse/plugin-variants 4.1.1 → 4.1.4
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/esm/ChordVariantDisplay/models/configSchema.d.ts +2 -2
- package/esm/LDDisplay/SharedLDConfigSchema.d.ts +3 -3
- package/esm/LDDisplay/components/LDDisplayComponent.js +3 -1
- package/esm/LDDisplay/components/LinesConnectingMatrixToGenomicPosition.d.ts +0 -9
- package/esm/LDDisplay/components/LinesConnectingMatrixToGenomicPosition.js +3 -29
- package/esm/LDDisplay/components/VariantLabels.d.ts +5 -0
- package/esm/LDDisplay/components/VariantLabels.js +27 -0
- package/esm/LDDisplay/components/Wrapper.d.ts +8 -0
- package/esm/LDDisplay/components/Wrapper.js +16 -0
- package/esm/LDDisplay/configSchema1.d.ts +6 -6
- package/esm/LDDisplay/configSchema2.d.ts +6 -6
- package/esm/LDDisplay/renderSvg.js +3 -1
- package/esm/LDRenderer/LDRenderer.js +3 -3
- package/esm/LDRenderer/configSchema.d.ts +2 -2
- package/esm/LDRenderer/makeImageData.d.ts +2 -2
- package/esm/LDRenderer/makeImageData.js +4 -5
- package/esm/LDTrack/configSchema.d.ts +8 -8
- package/esm/LinearVariantDisplay/configSchema.d.ts +3 -3
- package/esm/LinearVariantDisplay/model.d.ts +18 -8
- package/esm/MultiLinearVariantDisplay/configSchema.d.ts +6 -6
- package/esm/MultiLinearVariantDisplay/model.d.ts +72 -18
- package/esm/MultiLinearVariantMatrixDisplay/configSchema.d.ts +5 -5
- package/esm/MultiLinearVariantMatrixDisplay/model.d.ts +76 -20
- package/esm/MultiLinearVariantMatrixRenderer/configSchema.d.ts +1 -1
- package/esm/MultiLinearVariantMatrixRenderer/makeImageData.js +8 -11
- package/esm/MultiLinearVariantRenderer/configSchema.d.ts +1 -1
- package/esm/MultiLinearVariantRenderer/makeImageData.js +8 -11
- package/esm/PlinkLDAdapter/configSchema.d.ts +2 -2
- package/esm/PlinkLDAdapter/configSchemaTabix.d.ts +4 -4
- package/esm/SplitVcfTabixAdapter/configSchema.d.ts +2 -2
- package/esm/StructuralVariantChordRenderer/configSchema.d.ts +2 -2
- package/esm/VariantFeatureWidget/configSchema.d.ts +1 -1
- package/esm/VariantFeatureWidget/stateModelFactory.d.ts +2 -2
- package/esm/VariantRPC/MultiVariantGetGenotypeMatrix.js +4 -1
- package/esm/VariantRPC/MultiVariantGetSimplifiedFeatures.js +3 -3
- package/esm/VariantRPC/executeClusterGenotypeMatrix.js +6 -3
- package/esm/VariantRPC/getGenotypeMatrix.d.ts +2 -3
- package/esm/VariantRPC/getGenotypeMatrix.js +4 -5
- package/esm/VariantRPC/getLDMatrix.d.ts +2 -3
- package/esm/VariantRPC/getLDMatrix.js +5 -6
- package/esm/VariantRPC/getPhasedGenotypeMatrix.d.ts +2 -3
- package/esm/VariantRPC/getPhasedGenotypeMatrix.js +4 -5
- package/esm/VariantTrack/configSchema.d.ts +8 -8
- package/esm/VcfAdapter/configSchema.d.ts +2 -2
- package/esm/VcfTabixAdapter/configSchema.d.ts +4 -4
- package/esm/shared/MultiVariantBaseModel.d.ts +76 -20
- package/esm/shared/MultiVariantBaseModel.js +53 -3
- package/esm/shared/SharedVariantConfigSchema.d.ts +3 -3
- package/esm/shared/components/RectBg.js +3 -1
- package/esm/shared/components/TreeSidebar.js +38 -5
- package/esm/shared/components/types.d.ts +2 -0
- package/esm/shared/constants.d.ts +1 -0
- package/esm/shared/constants.js +1 -0
- package/esm/shared/makeSidebarSvg.js +3 -2
- package/esm/shared/minorAlleleFrequencyUtils.d.ts +2 -2
- package/esm/shared/minorAlleleFrequencyUtils.js +2 -2
- package/package.json +8 -8
|
@@ -39,6 +39,7 @@ export default function MultiVariantBaseModelF(configSchema: AnyConfigurationSch
|
|
|
39
39
|
statusMessage?: string;
|
|
40
40
|
reactElement?: React.ReactElement;
|
|
41
41
|
isRenderingPending?: boolean;
|
|
42
|
+
displayHeight?: number;
|
|
42
43
|
};
|
|
43
44
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
44
45
|
renderProps: any;
|
|
@@ -57,10 +58,11 @@ export default function MultiVariantBaseModelF(configSchema: AnyConfigurationSch
|
|
|
57
58
|
beforeDestroy(): void;
|
|
58
59
|
} & {
|
|
59
60
|
readonly statusMessage: any;
|
|
61
|
+
readonly displayHeight: number | undefined;
|
|
60
62
|
} & {
|
|
61
63
|
afterAttach(): void;
|
|
62
64
|
}, import("@jbrowse/mobx-state-tree")._NotCustomized, import("@jbrowse/mobx-state-tree")._NotCustomized>>;
|
|
63
|
-
configuration: import("
|
|
65
|
+
configuration: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
64
66
|
maxFeatureScreenDensity: {
|
|
65
67
|
type: string;
|
|
66
68
|
description: string;
|
|
@@ -87,7 +89,7 @@ export default function MultiVariantBaseModelF(configSchema: AnyConfigurationSch
|
|
|
87
89
|
description: string;
|
|
88
90
|
defaultValue: never[];
|
|
89
91
|
};
|
|
90
|
-
}, import("
|
|
92
|
+
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, "displayId">>;
|
|
91
93
|
showLegend: import("@jbrowse/mobx-state-tree").IMaybe<import("@jbrowse/mobx-state-tree").ISimpleType<boolean>>;
|
|
92
94
|
showTooltips: import("@jbrowse/mobx-state-tree").IMaybe<import("@jbrowse/mobx-state-tree").ISimpleType<boolean>>;
|
|
93
95
|
} & {
|
|
@@ -108,6 +110,7 @@ export default function MultiVariantBaseModelF(configSchema: AnyConfigurationSch
|
|
|
108
110
|
clusterTree: import("@jbrowse/mobx-state-tree").IMaybe<import("@jbrowse/mobx-state-tree").ISimpleType<string>>;
|
|
109
111
|
treeAreaWidth: import("@jbrowse/mobx-state-tree").IOptionalIType<import("@jbrowse/mobx-state-tree").ISimpleType<number>, [undefined]>;
|
|
110
112
|
lineZoneHeight: import("@jbrowse/mobx-state-tree").IOptionalIType<import("@jbrowse/mobx-state-tree").ISimpleType<number>, [undefined]>;
|
|
113
|
+
subtreeFilter: import("@jbrowse/mobx-state-tree").IMaybe<import("@jbrowse/mobx-state-tree").IArrayType<import("@jbrowse/mobx-state-tree").ISimpleType<string>>>;
|
|
111
114
|
}, {
|
|
112
115
|
rendererTypeName: string;
|
|
113
116
|
error: unknown;
|
|
@@ -396,6 +399,7 @@ export default function MultiVariantBaseModelF(configSchema: AnyConfigurationSch
|
|
|
396
399
|
statusMessage?: string;
|
|
397
400
|
reactElement?: React.ReactElement;
|
|
398
401
|
isRenderingPending?: boolean;
|
|
402
|
+
displayHeight?: number;
|
|
399
403
|
};
|
|
400
404
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
401
405
|
renderProps: any;
|
|
@@ -414,6 +418,7 @@ export default function MultiVariantBaseModelF(configSchema: AnyConfigurationSch
|
|
|
414
418
|
beforeDestroy(): void;
|
|
415
419
|
} & {
|
|
416
420
|
readonly statusMessage: any;
|
|
421
|
+
readonly displayHeight: number | undefined;
|
|
417
422
|
} & {
|
|
418
423
|
afterAttach(): void;
|
|
419
424
|
}, import("@jbrowse/mobx-state-tree")._NotCustomized, import("@jbrowse/mobx-state-tree")._NotCustomized>> & import("@jbrowse/mobx-state-tree").IStateTreeNode<import("@jbrowse/mobx-state-tree").IMapType<import("@jbrowse/mobx-state-tree").IModelType<{
|
|
@@ -440,6 +445,7 @@ export default function MultiVariantBaseModelF(configSchema: AnyConfigurationSch
|
|
|
440
445
|
statusMessage?: string;
|
|
441
446
|
reactElement?: React.ReactElement;
|
|
442
447
|
isRenderingPending?: boolean;
|
|
448
|
+
displayHeight?: number;
|
|
443
449
|
};
|
|
444
450
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
445
451
|
renderProps: any;
|
|
@@ -458,6 +464,7 @@ export default function MultiVariantBaseModelF(configSchema: AnyConfigurationSch
|
|
|
458
464
|
beforeDestroy(): void;
|
|
459
465
|
} & {
|
|
460
466
|
readonly statusMessage: any;
|
|
467
|
+
readonly displayHeight: number | undefined;
|
|
461
468
|
} & {
|
|
462
469
|
afterAttach(): void;
|
|
463
470
|
}, import("@jbrowse/mobx-state-tree")._NotCustomized, import("@jbrowse/mobx-state-tree")._NotCustomized>>>;
|
|
@@ -471,7 +478,7 @@ export default function MultiVariantBaseModelF(configSchema: AnyConfigurationSch
|
|
|
471
478
|
[x: string]: any;
|
|
472
479
|
} & import("@jbrowse/mobx-state-tree/dist/internal").NonEmptyObject & any & import("@jbrowse/mobx-state-tree").IStateTreeNode<AnyConfigurationSchemaType>);
|
|
473
480
|
} & import("@jbrowse/mobx-state-tree").IStateTreeNode<AnyConfigurationSchemaType>);
|
|
474
|
-
} & import("@jbrowse/mobx-state-tree").IStateTreeNode<import("
|
|
481
|
+
} & import("@jbrowse/mobx-state-tree").IStateTreeNode<import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
475
482
|
maxFeatureScreenDensity: {
|
|
476
483
|
type: string;
|
|
477
484
|
description: string;
|
|
@@ -498,7 +505,7 @@ export default function MultiVariantBaseModelF(configSchema: AnyConfigurationSch
|
|
|
498
505
|
description: string;
|
|
499
506
|
defaultValue: never[];
|
|
500
507
|
};
|
|
501
|
-
}, import("
|
|
508
|
+
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, "displayId">>>;
|
|
502
509
|
showLegend: boolean | undefined;
|
|
503
510
|
showTooltips: boolean | undefined;
|
|
504
511
|
} & import("@jbrowse/mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
@@ -788,6 +795,7 @@ export default function MultiVariantBaseModelF(configSchema: AnyConfigurationSch
|
|
|
788
795
|
statusMessage?: string;
|
|
789
796
|
reactElement?: React.ReactElement;
|
|
790
797
|
isRenderingPending?: boolean;
|
|
798
|
+
displayHeight?: number;
|
|
791
799
|
};
|
|
792
800
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
793
801
|
renderProps: any;
|
|
@@ -806,10 +814,11 @@ export default function MultiVariantBaseModelF(configSchema: AnyConfigurationSch
|
|
|
806
814
|
beforeDestroy(): void;
|
|
807
815
|
} & {
|
|
808
816
|
readonly statusMessage: any;
|
|
817
|
+
readonly displayHeight: number | undefined;
|
|
809
818
|
} & {
|
|
810
819
|
afterAttach(): void;
|
|
811
820
|
}, import("@jbrowse/mobx-state-tree")._NotCustomized, import("@jbrowse/mobx-state-tree")._NotCustomized>>;
|
|
812
|
-
configuration: import("
|
|
821
|
+
configuration: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
813
822
|
maxFeatureScreenDensity: {
|
|
814
823
|
type: string;
|
|
815
824
|
description: string;
|
|
@@ -836,7 +845,7 @@ export default function MultiVariantBaseModelF(configSchema: AnyConfigurationSch
|
|
|
836
845
|
description: string;
|
|
837
846
|
defaultValue: never[];
|
|
838
847
|
};
|
|
839
|
-
}, import("
|
|
848
|
+
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, "displayId">>;
|
|
840
849
|
showLegend: import("@jbrowse/mobx-state-tree").IMaybe<import("@jbrowse/mobx-state-tree").ISimpleType<boolean>>;
|
|
841
850
|
showTooltips: import("@jbrowse/mobx-state-tree").IMaybe<import("@jbrowse/mobx-state-tree").ISimpleType<boolean>>;
|
|
842
851
|
}, {
|
|
@@ -1146,6 +1155,7 @@ export default function MultiVariantBaseModelF(configSchema: AnyConfigurationSch
|
|
|
1146
1155
|
setMafFilter(arg: number): void;
|
|
1147
1156
|
setShowSidebarLabels(arg: boolean): void;
|
|
1148
1157
|
setShowTree(arg: boolean): void;
|
|
1158
|
+
setSubtreeFilter(names?: string[]): void;
|
|
1149
1159
|
setPhasedMode(arg: string): void;
|
|
1150
1160
|
setAutoHeight(auto: boolean): void;
|
|
1151
1161
|
setHasPhased(arg: boolean): void;
|
|
@@ -1191,6 +1201,13 @@ export default function MultiVariantBaseModelF(configSchema: AnyConfigurationSch
|
|
|
1191
1201
|
disabled: boolean;
|
|
1192
1202
|
onClick: () => void;
|
|
1193
1203
|
helpText?: undefined;
|
|
1204
|
+
} | {
|
|
1205
|
+
label: string;
|
|
1206
|
+
onClick: () => void;
|
|
1207
|
+
type?: undefined;
|
|
1208
|
+
checked?: undefined;
|
|
1209
|
+
disabled?: undefined;
|
|
1210
|
+
helpText?: undefined;
|
|
1194
1211
|
} | {
|
|
1195
1212
|
label: string;
|
|
1196
1213
|
helpText: string;
|
|
@@ -1310,6 +1327,7 @@ export default function MultiVariantBaseModelF(configSchema: AnyConfigurationSch
|
|
|
1310
1327
|
statusMessage?: string;
|
|
1311
1328
|
reactElement?: React.ReactElement;
|
|
1312
1329
|
isRenderingPending?: boolean;
|
|
1330
|
+
displayHeight?: number;
|
|
1313
1331
|
};
|
|
1314
1332
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
1315
1333
|
renderProps: any;
|
|
@@ -1328,6 +1346,7 @@ export default function MultiVariantBaseModelF(configSchema: AnyConfigurationSch
|
|
|
1328
1346
|
beforeDestroy(): void;
|
|
1329
1347
|
} & {
|
|
1330
1348
|
readonly statusMessage: any;
|
|
1349
|
+
readonly displayHeight: number | undefined;
|
|
1331
1350
|
} & {
|
|
1332
1351
|
afterAttach(): void;
|
|
1333
1352
|
}, import("@jbrowse/mobx-state-tree")._NotCustomized, import("@jbrowse/mobx-state-tree")._NotCustomized>> & import("@jbrowse/mobx-state-tree").IStateTreeNode<import("@jbrowse/mobx-state-tree").IMapType<import("@jbrowse/mobx-state-tree").IModelType<{
|
|
@@ -1354,6 +1373,7 @@ export default function MultiVariantBaseModelF(configSchema: AnyConfigurationSch
|
|
|
1354
1373
|
statusMessage?: string;
|
|
1355
1374
|
reactElement?: React.ReactElement;
|
|
1356
1375
|
isRenderingPending?: boolean;
|
|
1376
|
+
displayHeight?: number;
|
|
1357
1377
|
};
|
|
1358
1378
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
1359
1379
|
renderProps: any;
|
|
@@ -1372,6 +1392,7 @@ export default function MultiVariantBaseModelF(configSchema: AnyConfigurationSch
|
|
|
1372
1392
|
beforeDestroy(): void;
|
|
1373
1393
|
} & {
|
|
1374
1394
|
readonly statusMessage: any;
|
|
1395
|
+
readonly displayHeight: number | undefined;
|
|
1375
1396
|
} & {
|
|
1376
1397
|
afterAttach(): void;
|
|
1377
1398
|
}, import("@jbrowse/mobx-state-tree")._NotCustomized, import("@jbrowse/mobx-state-tree")._NotCustomized>>>;
|
|
@@ -1385,7 +1406,7 @@ export default function MultiVariantBaseModelF(configSchema: AnyConfigurationSch
|
|
|
1385
1406
|
[x: string]: any;
|
|
1386
1407
|
} & import("@jbrowse/mobx-state-tree/dist/internal").NonEmptyObject & any & import("@jbrowse/mobx-state-tree").IStateTreeNode<AnyConfigurationSchemaType>);
|
|
1387
1408
|
} & import("@jbrowse/mobx-state-tree").IStateTreeNode<AnyConfigurationSchemaType>);
|
|
1388
|
-
} & import("@jbrowse/mobx-state-tree").IStateTreeNode<import("
|
|
1409
|
+
} & import("@jbrowse/mobx-state-tree").IStateTreeNode<import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
1389
1410
|
maxFeatureScreenDensity: {
|
|
1390
1411
|
type: string;
|
|
1391
1412
|
description: string;
|
|
@@ -1412,7 +1433,7 @@ export default function MultiVariantBaseModelF(configSchema: AnyConfigurationSch
|
|
|
1412
1433
|
description: string;
|
|
1413
1434
|
defaultValue: never[];
|
|
1414
1435
|
};
|
|
1415
|
-
}, import("
|
|
1436
|
+
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, "displayId">> & AnyConfigurationSchemaType> & {
|
|
1416
1437
|
setSubschema(slotName: string, data: Record<string, unknown>): Record<string, unknown> | ({
|
|
1417
1438
|
[x: string]: any;
|
|
1418
1439
|
} & import("@jbrowse/mobx-state-tree/dist/internal").NonEmptyObject & any & import("@jbrowse/mobx-state-tree").IStateTreeNode<AnyConfigurationSchemaType>);
|
|
@@ -1431,6 +1452,7 @@ export default function MultiVariantBaseModelF(configSchema: AnyConfigurationSch
|
|
|
1431
1452
|
clusterTree: string | undefined;
|
|
1432
1453
|
treeAreaWidth: number;
|
|
1433
1454
|
lineZoneHeight: number;
|
|
1455
|
+
subtreeFilter: (import("@jbrowse/mobx-state-tree").IMSTArray<import("@jbrowse/mobx-state-tree").ISimpleType<string>> & import("@jbrowse/mobx-state-tree").IStateTreeNode<import("@jbrowse/mobx-state-tree").IMaybe<import("@jbrowse/mobx-state-tree").IArrayType<import("@jbrowse/mobx-state-tree").ISimpleType<string>>>>) | undefined;
|
|
1434
1456
|
} & import("@jbrowse/mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
1435
1457
|
rendererTypeName: string;
|
|
1436
1458
|
error: unknown;
|
|
@@ -1719,6 +1741,7 @@ export default function MultiVariantBaseModelF(configSchema: AnyConfigurationSch
|
|
|
1719
1741
|
statusMessage?: string;
|
|
1720
1742
|
reactElement?: React.ReactElement;
|
|
1721
1743
|
isRenderingPending?: boolean;
|
|
1744
|
+
displayHeight?: number;
|
|
1722
1745
|
};
|
|
1723
1746
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
1724
1747
|
renderProps: any;
|
|
@@ -1737,6 +1760,7 @@ export default function MultiVariantBaseModelF(configSchema: AnyConfigurationSch
|
|
|
1737
1760
|
beforeDestroy(): void;
|
|
1738
1761
|
} & {
|
|
1739
1762
|
readonly statusMessage: any;
|
|
1763
|
+
readonly displayHeight: number | undefined;
|
|
1740
1764
|
} & {
|
|
1741
1765
|
afterAttach(): void;
|
|
1742
1766
|
}, import("@jbrowse/mobx-state-tree")._NotCustomized, import("@jbrowse/mobx-state-tree")._NotCustomized>> & import("@jbrowse/mobx-state-tree").IStateTreeNode<import("@jbrowse/mobx-state-tree").IMapType<import("@jbrowse/mobx-state-tree").IModelType<{
|
|
@@ -1763,6 +1787,7 @@ export default function MultiVariantBaseModelF(configSchema: AnyConfigurationSch
|
|
|
1763
1787
|
statusMessage?: string;
|
|
1764
1788
|
reactElement?: React.ReactElement;
|
|
1765
1789
|
isRenderingPending?: boolean;
|
|
1790
|
+
displayHeight?: number;
|
|
1766
1791
|
};
|
|
1767
1792
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
1768
1793
|
renderProps: any;
|
|
@@ -1781,6 +1806,7 @@ export default function MultiVariantBaseModelF(configSchema: AnyConfigurationSch
|
|
|
1781
1806
|
beforeDestroy(): void;
|
|
1782
1807
|
} & {
|
|
1783
1808
|
readonly statusMessage: any;
|
|
1809
|
+
readonly displayHeight: number | undefined;
|
|
1784
1810
|
} & {
|
|
1785
1811
|
afterAttach(): void;
|
|
1786
1812
|
}, import("@jbrowse/mobx-state-tree")._NotCustomized, import("@jbrowse/mobx-state-tree")._NotCustomized>>>;
|
|
@@ -1794,7 +1820,7 @@ export default function MultiVariantBaseModelF(configSchema: AnyConfigurationSch
|
|
|
1794
1820
|
[x: string]: any;
|
|
1795
1821
|
} & import("@jbrowse/mobx-state-tree/dist/internal").NonEmptyObject & any & import("@jbrowse/mobx-state-tree").IStateTreeNode<AnyConfigurationSchemaType>);
|
|
1796
1822
|
} & import("@jbrowse/mobx-state-tree").IStateTreeNode<AnyConfigurationSchemaType>);
|
|
1797
|
-
} & import("@jbrowse/mobx-state-tree").IStateTreeNode<import("
|
|
1823
|
+
} & import("@jbrowse/mobx-state-tree").IStateTreeNode<import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
1798
1824
|
maxFeatureScreenDensity: {
|
|
1799
1825
|
type: string;
|
|
1800
1826
|
description: string;
|
|
@@ -1821,7 +1847,7 @@ export default function MultiVariantBaseModelF(configSchema: AnyConfigurationSch
|
|
|
1821
1847
|
description: string;
|
|
1822
1848
|
defaultValue: never[];
|
|
1823
1849
|
};
|
|
1824
|
-
}, import("
|
|
1850
|
+
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, "displayId">>>;
|
|
1825
1851
|
showLegend: boolean | undefined;
|
|
1826
1852
|
showTooltips: boolean | undefined;
|
|
1827
1853
|
} & import("@jbrowse/mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
@@ -2111,6 +2137,7 @@ export default function MultiVariantBaseModelF(configSchema: AnyConfigurationSch
|
|
|
2111
2137
|
statusMessage?: string;
|
|
2112
2138
|
reactElement?: React.ReactElement;
|
|
2113
2139
|
isRenderingPending?: boolean;
|
|
2140
|
+
displayHeight?: number;
|
|
2114
2141
|
};
|
|
2115
2142
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
2116
2143
|
renderProps: any;
|
|
@@ -2129,10 +2156,11 @@ export default function MultiVariantBaseModelF(configSchema: AnyConfigurationSch
|
|
|
2129
2156
|
beforeDestroy(): void;
|
|
2130
2157
|
} & {
|
|
2131
2158
|
readonly statusMessage: any;
|
|
2159
|
+
readonly displayHeight: number | undefined;
|
|
2132
2160
|
} & {
|
|
2133
2161
|
afterAttach(): void;
|
|
2134
2162
|
}, import("@jbrowse/mobx-state-tree")._NotCustomized, import("@jbrowse/mobx-state-tree")._NotCustomized>>;
|
|
2135
|
-
configuration: import("
|
|
2163
|
+
configuration: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
2136
2164
|
maxFeatureScreenDensity: {
|
|
2137
2165
|
type: string;
|
|
2138
2166
|
description: string;
|
|
@@ -2159,7 +2187,7 @@ export default function MultiVariantBaseModelF(configSchema: AnyConfigurationSch
|
|
|
2159
2187
|
description: string;
|
|
2160
2188
|
defaultValue: never[];
|
|
2161
2189
|
};
|
|
2162
|
-
}, import("
|
|
2190
|
+
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, "displayId">>;
|
|
2163
2191
|
showLegend: import("@jbrowse/mobx-state-tree").IMaybe<import("@jbrowse/mobx-state-tree").ISimpleType<boolean>>;
|
|
2164
2192
|
showTooltips: import("@jbrowse/mobx-state-tree").IMaybe<import("@jbrowse/mobx-state-tree").ISimpleType<boolean>>;
|
|
2165
2193
|
}, {
|
|
@@ -2469,6 +2497,7 @@ export default function MultiVariantBaseModelF(configSchema: AnyConfigurationSch
|
|
|
2469
2497
|
setMafFilter(arg: number): void;
|
|
2470
2498
|
setShowSidebarLabels(arg: boolean): void;
|
|
2471
2499
|
setShowTree(arg: boolean): void;
|
|
2500
|
+
setSubtreeFilter(names?: string[]): void;
|
|
2472
2501
|
setPhasedMode(arg: string): void;
|
|
2473
2502
|
setAutoHeight(auto: boolean): void;
|
|
2474
2503
|
setHasPhased(arg: boolean): void;
|
|
@@ -2514,6 +2543,13 @@ export default function MultiVariantBaseModelF(configSchema: AnyConfigurationSch
|
|
|
2514
2543
|
disabled: boolean;
|
|
2515
2544
|
onClick: () => void;
|
|
2516
2545
|
helpText?: undefined;
|
|
2546
|
+
} | {
|
|
2547
|
+
label: string;
|
|
2548
|
+
onClick: () => void;
|
|
2549
|
+
type?: undefined;
|
|
2550
|
+
checked?: undefined;
|
|
2551
|
+
disabled?: undefined;
|
|
2552
|
+
helpText?: undefined;
|
|
2517
2553
|
} | {
|
|
2518
2554
|
label: string;
|
|
2519
2555
|
helpText: string;
|
|
@@ -2633,6 +2669,7 @@ export default function MultiVariantBaseModelF(configSchema: AnyConfigurationSch
|
|
|
2633
2669
|
statusMessage?: string;
|
|
2634
2670
|
reactElement?: React.ReactElement;
|
|
2635
2671
|
isRenderingPending?: boolean;
|
|
2672
|
+
displayHeight?: number;
|
|
2636
2673
|
};
|
|
2637
2674
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
2638
2675
|
renderProps: any;
|
|
@@ -2651,10 +2688,11 @@ export default function MultiVariantBaseModelF(configSchema: AnyConfigurationSch
|
|
|
2651
2688
|
beforeDestroy(): void;
|
|
2652
2689
|
} & {
|
|
2653
2690
|
readonly statusMessage: any;
|
|
2691
|
+
readonly displayHeight: number | undefined;
|
|
2654
2692
|
} & {
|
|
2655
2693
|
afterAttach(): void;
|
|
2656
2694
|
}, import("@jbrowse/mobx-state-tree")._NotCustomized, import("@jbrowse/mobx-state-tree")._NotCustomized>>;
|
|
2657
|
-
configuration: import("
|
|
2695
|
+
configuration: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
2658
2696
|
maxFeatureScreenDensity: {
|
|
2659
2697
|
type: string;
|
|
2660
2698
|
description: string;
|
|
@@ -2681,7 +2719,7 @@ export default function MultiVariantBaseModelF(configSchema: AnyConfigurationSch
|
|
|
2681
2719
|
description: string;
|
|
2682
2720
|
defaultValue: never[];
|
|
2683
2721
|
};
|
|
2684
|
-
}, import("
|
|
2722
|
+
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, "displayId">>;
|
|
2685
2723
|
showLegend: import("@jbrowse/mobx-state-tree").IMaybe<import("@jbrowse/mobx-state-tree").ISimpleType<boolean>>;
|
|
2686
2724
|
showTooltips: import("@jbrowse/mobx-state-tree").IMaybe<import("@jbrowse/mobx-state-tree").ISimpleType<boolean>>;
|
|
2687
2725
|
} & {
|
|
@@ -2702,6 +2740,7 @@ export default function MultiVariantBaseModelF(configSchema: AnyConfigurationSch
|
|
|
2702
2740
|
clusterTree: import("@jbrowse/mobx-state-tree").IMaybe<import("@jbrowse/mobx-state-tree").ISimpleType<string>>;
|
|
2703
2741
|
treeAreaWidth: import("@jbrowse/mobx-state-tree").IOptionalIType<import("@jbrowse/mobx-state-tree").ISimpleType<number>, [undefined]>;
|
|
2704
2742
|
lineZoneHeight: import("@jbrowse/mobx-state-tree").IOptionalIType<import("@jbrowse/mobx-state-tree").ISimpleType<number>, [undefined]>;
|
|
2743
|
+
subtreeFilter: import("@jbrowse/mobx-state-tree").IMaybe<import("@jbrowse/mobx-state-tree").IArrayType<import("@jbrowse/mobx-state-tree").ISimpleType<string>>>;
|
|
2705
2744
|
}, {
|
|
2706
2745
|
rendererTypeName: string;
|
|
2707
2746
|
error: unknown;
|
|
@@ -2990,6 +3029,7 @@ export default function MultiVariantBaseModelF(configSchema: AnyConfigurationSch
|
|
|
2990
3029
|
statusMessage?: string;
|
|
2991
3030
|
reactElement?: React.ReactElement;
|
|
2992
3031
|
isRenderingPending?: boolean;
|
|
3032
|
+
displayHeight?: number;
|
|
2993
3033
|
};
|
|
2994
3034
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
2995
3035
|
renderProps: any;
|
|
@@ -3008,6 +3048,7 @@ export default function MultiVariantBaseModelF(configSchema: AnyConfigurationSch
|
|
|
3008
3048
|
beforeDestroy(): void;
|
|
3009
3049
|
} & {
|
|
3010
3050
|
readonly statusMessage: any;
|
|
3051
|
+
readonly displayHeight: number | undefined;
|
|
3011
3052
|
} & {
|
|
3012
3053
|
afterAttach(): void;
|
|
3013
3054
|
}, import("@jbrowse/mobx-state-tree")._NotCustomized, import("@jbrowse/mobx-state-tree")._NotCustomized>> & import("@jbrowse/mobx-state-tree").IStateTreeNode<import("@jbrowse/mobx-state-tree").IMapType<import("@jbrowse/mobx-state-tree").IModelType<{
|
|
@@ -3034,6 +3075,7 @@ export default function MultiVariantBaseModelF(configSchema: AnyConfigurationSch
|
|
|
3034
3075
|
statusMessage?: string;
|
|
3035
3076
|
reactElement?: React.ReactElement;
|
|
3036
3077
|
isRenderingPending?: boolean;
|
|
3078
|
+
displayHeight?: number;
|
|
3037
3079
|
};
|
|
3038
3080
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
3039
3081
|
renderProps: any;
|
|
@@ -3052,6 +3094,7 @@ export default function MultiVariantBaseModelF(configSchema: AnyConfigurationSch
|
|
|
3052
3094
|
beforeDestroy(): void;
|
|
3053
3095
|
} & {
|
|
3054
3096
|
readonly statusMessage: any;
|
|
3097
|
+
readonly displayHeight: number | undefined;
|
|
3055
3098
|
} & {
|
|
3056
3099
|
afterAttach(): void;
|
|
3057
3100
|
}, import("@jbrowse/mobx-state-tree")._NotCustomized, import("@jbrowse/mobx-state-tree")._NotCustomized>>>;
|
|
@@ -3065,7 +3108,7 @@ export default function MultiVariantBaseModelF(configSchema: AnyConfigurationSch
|
|
|
3065
3108
|
[x: string]: any;
|
|
3066
3109
|
} & import("@jbrowse/mobx-state-tree/dist/internal").NonEmptyObject & any & import("@jbrowse/mobx-state-tree").IStateTreeNode<AnyConfigurationSchemaType>);
|
|
3067
3110
|
} & import("@jbrowse/mobx-state-tree").IStateTreeNode<AnyConfigurationSchemaType>);
|
|
3068
|
-
} & import("@jbrowse/mobx-state-tree").IStateTreeNode<import("
|
|
3111
|
+
} & import("@jbrowse/mobx-state-tree").IStateTreeNode<import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
3069
3112
|
maxFeatureScreenDensity: {
|
|
3070
3113
|
type: string;
|
|
3071
3114
|
description: string;
|
|
@@ -3092,7 +3135,7 @@ export default function MultiVariantBaseModelF(configSchema: AnyConfigurationSch
|
|
|
3092
3135
|
description: string;
|
|
3093
3136
|
defaultValue: never[];
|
|
3094
3137
|
};
|
|
3095
|
-
}, import("
|
|
3138
|
+
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, "displayId">>>;
|
|
3096
3139
|
showLegend: boolean | undefined;
|
|
3097
3140
|
showTooltips: boolean | undefined;
|
|
3098
3141
|
} & import("@jbrowse/mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
@@ -3382,6 +3425,7 @@ export default function MultiVariantBaseModelF(configSchema: AnyConfigurationSch
|
|
|
3382
3425
|
statusMessage?: string;
|
|
3383
3426
|
reactElement?: React.ReactElement;
|
|
3384
3427
|
isRenderingPending?: boolean;
|
|
3428
|
+
displayHeight?: number;
|
|
3385
3429
|
};
|
|
3386
3430
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
3387
3431
|
renderProps: any;
|
|
@@ -3400,10 +3444,11 @@ export default function MultiVariantBaseModelF(configSchema: AnyConfigurationSch
|
|
|
3400
3444
|
beforeDestroy(): void;
|
|
3401
3445
|
} & {
|
|
3402
3446
|
readonly statusMessage: any;
|
|
3447
|
+
readonly displayHeight: number | undefined;
|
|
3403
3448
|
} & {
|
|
3404
3449
|
afterAttach(): void;
|
|
3405
3450
|
}, import("@jbrowse/mobx-state-tree")._NotCustomized, import("@jbrowse/mobx-state-tree")._NotCustomized>>;
|
|
3406
|
-
configuration: import("
|
|
3451
|
+
configuration: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
3407
3452
|
maxFeatureScreenDensity: {
|
|
3408
3453
|
type: string;
|
|
3409
3454
|
description: string;
|
|
@@ -3430,7 +3475,7 @@ export default function MultiVariantBaseModelF(configSchema: AnyConfigurationSch
|
|
|
3430
3475
|
description: string;
|
|
3431
3476
|
defaultValue: never[];
|
|
3432
3477
|
};
|
|
3433
|
-
}, import("
|
|
3478
|
+
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, "displayId">>;
|
|
3434
3479
|
showLegend: import("@jbrowse/mobx-state-tree").IMaybe<import("@jbrowse/mobx-state-tree").ISimpleType<boolean>>;
|
|
3435
3480
|
showTooltips: import("@jbrowse/mobx-state-tree").IMaybe<import("@jbrowse/mobx-state-tree").ISimpleType<boolean>>;
|
|
3436
3481
|
}, {
|
|
@@ -3740,6 +3785,7 @@ export default function MultiVariantBaseModelF(configSchema: AnyConfigurationSch
|
|
|
3740
3785
|
setMafFilter(arg: number): void;
|
|
3741
3786
|
setShowSidebarLabels(arg: boolean): void;
|
|
3742
3787
|
setShowTree(arg: boolean): void;
|
|
3788
|
+
setSubtreeFilter(names?: string[]): void;
|
|
3743
3789
|
setPhasedMode(arg: string): void;
|
|
3744
3790
|
setAutoHeight(auto: boolean): void;
|
|
3745
3791
|
setHasPhased(arg: boolean): void;
|
|
@@ -3785,6 +3831,13 @@ export default function MultiVariantBaseModelF(configSchema: AnyConfigurationSch
|
|
|
3785
3831
|
disabled: boolean;
|
|
3786
3832
|
onClick: () => void;
|
|
3787
3833
|
helpText?: undefined;
|
|
3834
|
+
} | {
|
|
3835
|
+
label: string;
|
|
3836
|
+
onClick: () => void;
|
|
3837
|
+
type?: undefined;
|
|
3838
|
+
checked?: undefined;
|
|
3839
|
+
disabled?: undefined;
|
|
3840
|
+
helpText?: undefined;
|
|
3788
3841
|
} | {
|
|
3789
3842
|
label: string;
|
|
3790
3843
|
helpText: string;
|
|
@@ -3910,6 +3963,7 @@ export default function MultiVariantBaseModelF(configSchema: AnyConfigurationSch
|
|
|
3910
3963
|
statusMessage?: string;
|
|
3911
3964
|
reactElement?: React.ReactElement;
|
|
3912
3965
|
isRenderingPending?: boolean;
|
|
3966
|
+
displayHeight?: number;
|
|
3913
3967
|
};
|
|
3914
3968
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
3915
3969
|
renderProps: any;
|
|
@@ -3928,10 +3982,11 @@ export default function MultiVariantBaseModelF(configSchema: AnyConfigurationSch
|
|
|
3928
3982
|
beforeDestroy(): void;
|
|
3929
3983
|
} & {
|
|
3930
3984
|
readonly statusMessage: any;
|
|
3985
|
+
readonly displayHeight: number | undefined;
|
|
3931
3986
|
} & {
|
|
3932
3987
|
afterAttach(): void;
|
|
3933
3988
|
}, import("@jbrowse/mobx-state-tree")._NotCustomized, import("@jbrowse/mobx-state-tree")._NotCustomized>>;
|
|
3934
|
-
configuration: import("
|
|
3989
|
+
configuration: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
3935
3990
|
maxFeatureScreenDensity: {
|
|
3936
3991
|
type: string;
|
|
3937
3992
|
description: string;
|
|
@@ -3958,7 +4013,7 @@ export default function MultiVariantBaseModelF(configSchema: AnyConfigurationSch
|
|
|
3958
4013
|
description: string;
|
|
3959
4014
|
defaultValue: never[];
|
|
3960
4015
|
};
|
|
3961
|
-
}, import("
|
|
4016
|
+
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, "displayId">>;
|
|
3962
4017
|
showLegend: import("@jbrowse/mobx-state-tree").IMaybe<import("@jbrowse/mobx-state-tree").ISimpleType<boolean>>;
|
|
3963
4018
|
showTooltips: import("@jbrowse/mobx-state-tree").IMaybe<import("@jbrowse/mobx-state-tree").ISimpleType<boolean>>;
|
|
3964
4019
|
} & {
|
|
@@ -3979,6 +4034,7 @@ export default function MultiVariantBaseModelF(configSchema: AnyConfigurationSch
|
|
|
3979
4034
|
clusterTree: import("@jbrowse/mobx-state-tree").IMaybe<import("@jbrowse/mobx-state-tree").ISimpleType<string>>;
|
|
3980
4035
|
treeAreaWidth: import("@jbrowse/mobx-state-tree").IOptionalIType<import("@jbrowse/mobx-state-tree").ISimpleType<number>, [undefined]>;
|
|
3981
4036
|
lineZoneHeight: import("@jbrowse/mobx-state-tree").IOptionalIType<import("@jbrowse/mobx-state-tree").ISimpleType<number>, [undefined]>;
|
|
4037
|
+
subtreeFilter: import("@jbrowse/mobx-state-tree").IMaybe<import("@jbrowse/mobx-state-tree").IArrayType<import("@jbrowse/mobx-state-tree").ISimpleType<string>>>;
|
|
3982
4038
|
}>>;
|
|
3983
4039
|
export type MultiVariantBaseStateModel = ReturnType<typeof MultiVariantBaseModelF>;
|
|
3984
4040
|
export type MultiVariantBaseModel = Instance<MultiVariantBaseStateModel>;
|
|
@@ -40,6 +40,7 @@ export default function MultiVariantBaseModelF(configSchema) {
|
|
|
40
40
|
clusterTree: types.maybe(types.string),
|
|
41
41
|
treeAreaWidth: types.optional(types.number, 80),
|
|
42
42
|
lineZoneHeight: types.optional(types.number, 0),
|
|
43
|
+
subtreeFilter: types.maybe(types.array(types.string)),
|
|
43
44
|
}))
|
|
44
45
|
.volatile(() => ({
|
|
45
46
|
sourcesLoadingStopToken: undefined,
|
|
@@ -131,6 +132,9 @@ export default function MultiVariantBaseModelF(configSchema) {
|
|
|
131
132
|
setShowTree(arg) {
|
|
132
133
|
self.showTreeSetting = arg;
|
|
133
134
|
},
|
|
135
|
+
setSubtreeFilter(names) {
|
|
136
|
+
self.subtreeFilter = names ? cast(names) : undefined;
|
|
137
|
+
},
|
|
134
138
|
setPhasedMode(arg) {
|
|
135
139
|
const currentMode = self.renderingModeSetting ?? getConf(self, 'renderingMode');
|
|
136
140
|
if (currentMode !== arg) {
|
|
@@ -189,7 +193,7 @@ export default function MultiVariantBaseModelF(configSchema) {
|
|
|
189
193
|
: undefined;
|
|
190
194
|
},
|
|
191
195
|
get sources() {
|
|
192
|
-
|
|
196
|
+
let result = self.sourcesVolatile
|
|
193
197
|
? getSources({
|
|
194
198
|
sources: self.sourcesVolatile,
|
|
195
199
|
layout: self.layout.length ? self.layout : undefined,
|
|
@@ -197,6 +201,11 @@ export default function MultiVariantBaseModelF(configSchema) {
|
|
|
197
201
|
sampleInfo: self.sampleInfo,
|
|
198
202
|
})
|
|
199
203
|
: undefined;
|
|
204
|
+
if (result && self.subtreeFilter?.length) {
|
|
205
|
+
const filterSet = new Set(self.subtreeFilter);
|
|
206
|
+
result = result.filter(s => filterSet.has(s.baseName ?? s.name));
|
|
207
|
+
}
|
|
208
|
+
return result;
|
|
200
209
|
},
|
|
201
210
|
get root() {
|
|
202
211
|
const newick = self.clusterTree;
|
|
@@ -204,9 +213,39 @@ export default function MultiVariantBaseModelF(configSchema) {
|
|
|
204
213
|
return undefined;
|
|
205
214
|
}
|
|
206
215
|
const tree = fromNewick(newick);
|
|
207
|
-
|
|
216
|
+
let root = hierarchy(tree, (d) => d.children)
|
|
208
217
|
.sum((d) => (d.children ? 0 : 1))
|
|
209
218
|
.sort((a, b) => ascending(a.data.height || 1, b.data.height || 1));
|
|
219
|
+
if (self.subtreeFilter?.length) {
|
|
220
|
+
const filterSet = new Set(self.subtreeFilter);
|
|
221
|
+
const getLeafNames = (node) => {
|
|
222
|
+
if (!node.children?.length) {
|
|
223
|
+
return [node.data.name];
|
|
224
|
+
}
|
|
225
|
+
return node.children.flatMap(child => getLeafNames(child));
|
|
226
|
+
};
|
|
227
|
+
const findSubtree = (node) => {
|
|
228
|
+
const leafNames = getLeafNames(node);
|
|
229
|
+
if (leafNames.length === filterSet.size &&
|
|
230
|
+
leafNames.every(name => filterSet.has(name))) {
|
|
231
|
+
return node;
|
|
232
|
+
}
|
|
233
|
+
if (node.children) {
|
|
234
|
+
for (const child of node.children) {
|
|
235
|
+
const found = findSubtree(child);
|
|
236
|
+
if (found) {
|
|
237
|
+
return found;
|
|
238
|
+
}
|
|
239
|
+
}
|
|
240
|
+
}
|
|
241
|
+
return undefined;
|
|
242
|
+
};
|
|
243
|
+
const subtree = findSubtree(root);
|
|
244
|
+
if (subtree) {
|
|
245
|
+
root = subtree;
|
|
246
|
+
}
|
|
247
|
+
}
|
|
248
|
+
return root;
|
|
210
249
|
},
|
|
211
250
|
}))
|
|
212
251
|
.views(self => {
|
|
@@ -275,6 +314,16 @@ export default function MultiVariantBaseModelF(configSchema) {
|
|
|
275
314
|
self.setShowTree(!self.showTree);
|
|
276
315
|
},
|
|
277
316
|
},
|
|
317
|
+
...(self.subtreeFilter?.length
|
|
318
|
+
? [
|
|
319
|
+
{
|
|
320
|
+
label: 'Clear subtree filter',
|
|
321
|
+
onClick: () => {
|
|
322
|
+
self.setSubtreeFilter(undefined);
|
|
323
|
+
},
|
|
324
|
+
},
|
|
325
|
+
]
|
|
326
|
+
: []),
|
|
278
327
|
{
|
|
279
328
|
label: 'Show reference alleles',
|
|
280
329
|
helpText: 'When this setting is off, the background is colored solid grey and only ALT alleles are colored on top of it. This makes it easier to see potentially overlapping structural variants',
|
|
@@ -525,7 +574,7 @@ export default function MultiVariantBaseModelF(configSchema) {
|
|
|
525
574
|
if (!snap) {
|
|
526
575
|
return snap;
|
|
527
576
|
}
|
|
528
|
-
const { layout, minorAlleleFrequencyFilterSetting, showSidebarLabelsSetting, showTreeSetting, renderingModeSetting, rowHeightMode, lengthCutoffFilter, jexlFilters, referenceDrawingModeSetting, clusterTree, treeAreaWidth, lineZoneHeight, ...rest } = snap;
|
|
577
|
+
const { layout, minorAlleleFrequencyFilterSetting, showSidebarLabelsSetting, showTreeSetting, renderingModeSetting, rowHeightMode, lengthCutoffFilter, jexlFilters, referenceDrawingModeSetting, clusterTree, treeAreaWidth, lineZoneHeight, subtreeFilter, ...rest } = snap;
|
|
529
578
|
return {
|
|
530
579
|
...rest,
|
|
531
580
|
...(layout.length ? { layout } : {}),
|
|
@@ -548,6 +597,7 @@ export default function MultiVariantBaseModelF(configSchema) {
|
|
|
548
597
|
...(clusterTree !== undefined ? { clusterTree } : {}),
|
|
549
598
|
...(treeAreaWidth !== 80 ? { treeAreaWidth } : {}),
|
|
550
599
|
...(lineZoneHeight ? { lineZoneHeight } : {}),
|
|
600
|
+
...(subtreeFilter?.length ? { subtreeFilter } : {}),
|
|
551
601
|
};
|
|
552
602
|
});
|
|
553
603
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export default function sharedVariantConfigFactory(): import("
|
|
1
|
+
export default function sharedVariantConfigFactory(): import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
2
2
|
showReferenceAlleles: {
|
|
3
3
|
type: string;
|
|
4
4
|
defaultValue: boolean;
|
|
@@ -24,7 +24,7 @@ export default function sharedVariantConfigFactory(): import("node_modules/@jbro
|
|
|
24
24
|
type: string;
|
|
25
25
|
defaultValue: string;
|
|
26
26
|
};
|
|
27
|
-
}, import("
|
|
27
|
+
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
28
28
|
maxFeatureScreenDensity: {
|
|
29
29
|
type: string;
|
|
30
30
|
description: string;
|
|
@@ -51,4 +51,4 @@ export default function sharedVariantConfigFactory(): import("node_modules/@jbro
|
|
|
51
51
|
description: string;
|
|
52
52
|
defaultValue: never[];
|
|
53
53
|
};
|
|
54
|
-
}, import("
|
|
54
|
+
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, "displayId">>, undefined>>;
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { getFillProps } from '@jbrowse/core/util';
|
|
3
3
|
import { alpha, useTheme } from '@mui/material';
|
|
4
|
+
import { SIDEBAR_BACKGROUND_OPACITY } from "../constants.js";
|
|
4
5
|
const RectBg = ({ x, y, width, height, color, }) => {
|
|
5
6
|
const theme = useTheme();
|
|
6
|
-
return (_jsx("rect", { pointerEvents: "auto", x: x, y: y, width: width, height: height, ...getFillProps(color ||
|
|
7
|
+
return (_jsx("rect", { pointerEvents: "auto", x: x, y: y, width: width, height: height, ...getFillProps(color ||
|
|
8
|
+
alpha(theme.palette.background.paper, SIDEBAR_BACKGROUND_OPACITY)) }));
|
|
7
9
|
};
|
|
8
10
|
export default RectBg;
|