@jbrowse/plugin-variants 4.1.14 → 4.1.15
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/LDDisplay/SharedLDConfigSchema.d.ts +1 -1
- package/esm/LDDisplay/configSchema1.d.ts +1 -1
- package/esm/LDDisplay/configSchema2.d.ts +1 -1
- package/esm/LinearVariantDisplay/model.d.ts +1 -0
- package/esm/MultiLinearVariantDisplay/configSchema.d.ts +2 -2
- package/esm/MultiLinearVariantDisplay/model.d.ts +3 -0
- package/esm/MultiLinearVariantMatrixDisplay/configSchema.d.ts +1 -1
- package/esm/MultiLinearVariantMatrixDisplay/model.d.ts +3 -0
- package/esm/PlinkLDAdapter/configSchemaTabix.d.ts +1 -1
- package/esm/VariantFeatureWidget/stateModelFactory.d.ts +5 -5
- package/esm/VariantRPC/executeClusterGenotypeMatrix.js +7 -7
- package/esm/VcfTabixAdapter/configSchema.d.ts +1 -1
- package/esm/shared/MultiVariantBaseModel.d.ts +3 -0
- package/esm/shared/SharedVariantConfigSchema.d.ts +1 -1
- package/esm/shared/components/MultiVariantTooltip.d.ts +2 -2
- package/package.json +11 -11
|
@@ -13,7 +13,7 @@ export default function sharedLDConfigFactory(): import("@jbrowse/core/configura
|
|
|
13
13
|
};
|
|
14
14
|
ldMetric: {
|
|
15
15
|
type: string;
|
|
16
|
-
model: import("@jbrowse/mobx-state-tree").ISimpleType<
|
|
16
|
+
model: import("@jbrowse/mobx-state-tree").ISimpleType<"r2" | "dprime">;
|
|
17
17
|
defaultValue: string;
|
|
18
18
|
};
|
|
19
19
|
colorScheme: {
|
|
@@ -26,7 +26,7 @@ export default function configSchemaF(_pluginManager: PluginManager): import("@j
|
|
|
26
26
|
};
|
|
27
27
|
ldMetric: {
|
|
28
28
|
type: string;
|
|
29
|
-
model: import("@jbrowse/mobx-state-tree").ISimpleType<
|
|
29
|
+
model: import("@jbrowse/mobx-state-tree").ISimpleType<"r2" | "dprime">;
|
|
30
30
|
defaultValue: string;
|
|
31
31
|
};
|
|
32
32
|
colorScheme: {
|
|
@@ -26,7 +26,7 @@ export default function configSchemaF(_pluginManager: PluginManager): import("@j
|
|
|
26
26
|
};
|
|
27
27
|
ldMetric: {
|
|
28
28
|
type: string;
|
|
29
|
-
model: import("@jbrowse/mobx-state-tree").ISimpleType<
|
|
29
|
+
model: import("@jbrowse/mobx-state-tree").ISimpleType<"r2" | "dprime">;
|
|
30
30
|
defaultValue: string;
|
|
31
31
|
};
|
|
32
32
|
colorScheme: {
|
|
@@ -1093,6 +1093,7 @@ export default function stateModelFactory(configSchema: AnyConfigurationSchemaTy
|
|
|
1093
1093
|
onMouseMove(_: unknown, featureId?: string): void;
|
|
1094
1094
|
onMouseLeave(_: unknown): void;
|
|
1095
1095
|
onContextMenu(_: unknown): void;
|
|
1096
|
+
onFeatureClick(_: unknown, featureId?: string): void;
|
|
1096
1097
|
};
|
|
1097
1098
|
renderProps(): any;
|
|
1098
1099
|
} & {
|
|
@@ -2,7 +2,7 @@ import type PluginManager from '@jbrowse/core/PluginManager';
|
|
|
2
2
|
export default function VariantConfigFactory(pluginManager: PluginManager): import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
3
3
|
defaultRendering: {
|
|
4
4
|
type: string;
|
|
5
|
-
model: import("@jbrowse/mobx-state-tree").ISimpleType<
|
|
5
|
+
model: import("@jbrowse/mobx-state-tree").ISimpleType<"multivariant">;
|
|
6
6
|
defaultValue: string;
|
|
7
7
|
};
|
|
8
8
|
renderers: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
@@ -27,7 +27,7 @@ export default function VariantConfigFactory(pluginManager: PluginManager): impo
|
|
|
27
27
|
};
|
|
28
28
|
renderingMode: {
|
|
29
29
|
type: string;
|
|
30
|
-
model: import("@jbrowse/mobx-state-tree").ISimpleType<
|
|
30
|
+
model: import("@jbrowse/mobx-state-tree").ISimpleType<"alleleCount" | "phased">;
|
|
31
31
|
defaultValue: string;
|
|
32
32
|
};
|
|
33
33
|
minorAlleleFrequencyFilter: {
|
|
@@ -1103,6 +1103,7 @@ export declare function stateModelFactory(configSchema: AnyConfigurationSchemaTy
|
|
|
1103
1103
|
onMouseMove(_: unknown, featureId?: string): void;
|
|
1104
1104
|
onMouseLeave(_: unknown): void;
|
|
1105
1105
|
onContextMenu(_: unknown): void;
|
|
1106
|
+
onFeatureClick(_: unknown, featureId?: string): void;
|
|
1106
1107
|
};
|
|
1107
1108
|
renderProps(): any;
|
|
1108
1109
|
} & {
|
|
@@ -2445,6 +2446,7 @@ export declare function stateModelFactory(configSchema: AnyConfigurationSchemaTy
|
|
|
2445
2446
|
onMouseMove(_: unknown, featureId?: string): void;
|
|
2446
2447
|
onMouseLeave(_: unknown): void;
|
|
2447
2448
|
onContextMenu(_: unknown): void;
|
|
2449
|
+
onFeatureClick(_: unknown, featureId?: string): void;
|
|
2448
2450
|
};
|
|
2449
2451
|
renderProps(): any;
|
|
2450
2452
|
} & {
|
|
@@ -3733,6 +3735,7 @@ export declare function stateModelFactory(configSchema: AnyConfigurationSchemaTy
|
|
|
3733
3735
|
onMouseMove(_: unknown, featureId?: string): void;
|
|
3734
3736
|
onMouseLeave(_: unknown): void;
|
|
3735
3737
|
onContextMenu(_: unknown): void;
|
|
3738
|
+
onFeatureClick(_: unknown, featureId?: string): void;
|
|
3736
3739
|
};
|
|
3737
3740
|
renderProps(): any;
|
|
3738
3741
|
} & {
|
|
@@ -19,7 +19,7 @@ export default function configSchemaF(pluginManager: PluginManager): import("@jb
|
|
|
19
19
|
};
|
|
20
20
|
renderingMode: {
|
|
21
21
|
type: string;
|
|
22
|
-
model: import("@jbrowse/mobx-state-tree").ISimpleType<
|
|
22
|
+
model: import("@jbrowse/mobx-state-tree").ISimpleType<"alleleCount" | "phased">;
|
|
23
23
|
defaultValue: string;
|
|
24
24
|
};
|
|
25
25
|
minorAlleleFrequencyFilter: {
|
|
@@ -1104,6 +1104,7 @@ export default function stateModelFactory(configSchema: AnyConfigurationSchemaTy
|
|
|
1104
1104
|
onMouseMove(_: unknown, featureId?: string): void;
|
|
1105
1105
|
onMouseLeave(_: unknown): void;
|
|
1106
1106
|
onContextMenu(_: unknown): void;
|
|
1107
|
+
onFeatureClick(_: unknown, featureId?: string): void;
|
|
1107
1108
|
};
|
|
1108
1109
|
renderProps(): any;
|
|
1109
1110
|
} & {
|
|
@@ -2446,6 +2447,7 @@ export default function stateModelFactory(configSchema: AnyConfigurationSchemaTy
|
|
|
2446
2447
|
onMouseMove(_: unknown, featureId?: string): void;
|
|
2447
2448
|
onMouseLeave(_: unknown): void;
|
|
2448
2449
|
onContextMenu(_: unknown): void;
|
|
2450
|
+
onFeatureClick(_: unknown, featureId?: string): void;
|
|
2449
2451
|
};
|
|
2450
2452
|
renderProps(): any;
|
|
2451
2453
|
} & {
|
|
@@ -3734,6 +3736,7 @@ export default function stateModelFactory(configSchema: AnyConfigurationSchemaTy
|
|
|
3734
3736
|
onMouseMove(_: unknown, featureId?: string): void;
|
|
3735
3737
|
onMouseLeave(_: unknown): void;
|
|
3736
3738
|
onContextMenu(_: unknown): void;
|
|
3739
|
+
onFeatureClick(_: unknown, featureId?: string): void;
|
|
3737
3740
|
};
|
|
3738
3741
|
renderProps(): any;
|
|
3739
3742
|
} & {
|
|
@@ -8,7 +8,7 @@ declare const PlinkLDTabixAdapter: import("@jbrowse/core/configuration/configura
|
|
|
8
8
|
};
|
|
9
9
|
index: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
10
10
|
indexType: {
|
|
11
|
-
model: import("@jbrowse/mobx-state-tree").ISimpleType<
|
|
11
|
+
model: import("@jbrowse/mobx-state-tree").ISimpleType<"TBI" | "CSI">;
|
|
12
12
|
type: string;
|
|
13
13
|
defaultValue: string;
|
|
14
14
|
};
|
|
@@ -3,9 +3,9 @@ import type { Instance } from '@jbrowse/mobx-state-tree';
|
|
|
3
3
|
export declare function stateModelFactory(pluginManager: PluginManager): import("@jbrowse/mobx-state-tree").IModelType<{
|
|
4
4
|
id: import("@jbrowse/mobx-state-tree").IOptionalIType<import("@jbrowse/mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
5
5
|
type: import("@jbrowse/mobx-state-tree").ISimpleType<"BaseFeatureWidget">;
|
|
6
|
-
featureData: import("@jbrowse/mobx-state-tree").IType<import("
|
|
6
|
+
featureData: import("@jbrowse/mobx-state-tree").IType<import("@jbrowse/core/BaseFeatureWidget").MaybeSerializedFeat, import("@jbrowse/core/BaseFeatureWidget").MaybeSerializedFeat, import("@jbrowse/core/BaseFeatureWidget").MaybeSerializedFeat>;
|
|
7
7
|
formattedFields: import("@jbrowse/mobx-state-tree").IType<any, any, any>;
|
|
8
|
-
unformattedFeatureData: import("@jbrowse/mobx-state-tree").IType<import("
|
|
8
|
+
unformattedFeatureData: import("@jbrowse/mobx-state-tree").IType<import("@jbrowse/core/BaseFeatureWidget").MaybeSerializedFeat, import("@jbrowse/core/BaseFeatureWidget").MaybeSerializedFeat, import("@jbrowse/core/BaseFeatureWidget").MaybeSerializedFeat>;
|
|
9
9
|
view: import("@jbrowse/mobx-state-tree").IMaybe<import("@jbrowse/mobx-state-tree").IReferenceType<import("@jbrowse/mobx-state-tree").IAnyType>>;
|
|
10
10
|
track: import("@jbrowse/mobx-state-tree").IMaybe<import("@jbrowse/mobx-state-tree").IReferenceType<import("@jbrowse/mobx-state-tree").IAnyType>>;
|
|
11
11
|
trackId: import("@jbrowse/mobx-state-tree").IMaybe<import("@jbrowse/mobx-state-tree").ISimpleType<string>>;
|
|
@@ -54,9 +54,9 @@ export declare function stateModelFactory(pluginManager: PluginManager): import(
|
|
|
54
54
|
} & Partial<import("@jbrowse/mobx-state-tree/dist/internal").ExtractCFromProps<{
|
|
55
55
|
id: import("@jbrowse/mobx-state-tree").IOptionalIType<import("@jbrowse/mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
56
56
|
type: import("@jbrowse/mobx-state-tree").ISimpleType<"BaseFeatureWidget">;
|
|
57
|
-
featureData: import("@jbrowse/mobx-state-tree").IType<import("
|
|
57
|
+
featureData: import("@jbrowse/mobx-state-tree").IType<import("@jbrowse/core/BaseFeatureWidget").MaybeSerializedFeat, import("@jbrowse/core/BaseFeatureWidget").MaybeSerializedFeat, import("@jbrowse/core/BaseFeatureWidget").MaybeSerializedFeat>;
|
|
58
58
|
formattedFields: import("@jbrowse/mobx-state-tree").IType<any, any, any>;
|
|
59
|
-
unformattedFeatureData: import("@jbrowse/mobx-state-tree").IType<import("
|
|
59
|
+
unformattedFeatureData: import("@jbrowse/mobx-state-tree").IType<import("@jbrowse/core/BaseFeatureWidget").MaybeSerializedFeat, import("@jbrowse/core/BaseFeatureWidget").MaybeSerializedFeat, import("@jbrowse/core/BaseFeatureWidget").MaybeSerializedFeat>;
|
|
60
60
|
view: import("@jbrowse/mobx-state-tree").IMaybe<import("@jbrowse/mobx-state-tree").IReferenceType<import("@jbrowse/mobx-state-tree").IAnyType>>;
|
|
61
61
|
track: import("@jbrowse/mobx-state-tree").IMaybe<import("@jbrowse/mobx-state-tree").IReferenceType<import("@jbrowse/mobx-state-tree").IAnyType>>;
|
|
62
62
|
trackId: import("@jbrowse/mobx-state-tree").IMaybe<import("@jbrowse/mobx-state-tree").ISimpleType<string>>;
|
|
@@ -94,10 +94,10 @@ export declare function stateModelFactory(pluginManager: PluginManager): import(
|
|
|
94
94
|
type: "BaseFeatureWidget";
|
|
95
95
|
trackId: string | undefined;
|
|
96
96
|
sequenceFeatureDetails: import("@jbrowse/mobx-state-tree").ModelSnapshotType<{}>;
|
|
97
|
-
descriptions: Record<string, unknown> | undefined;
|
|
98
97
|
formattedFields: any;
|
|
99
98
|
trackType: string | undefined;
|
|
100
99
|
maxDepth: number | undefined;
|
|
100
|
+
descriptions: Record<string, unknown> | undefined;
|
|
101
101
|
finalizedFeatureData: any;
|
|
102
102
|
} & import("@jbrowse/mobx-state-tree")._NotCustomized>;
|
|
103
103
|
export type VariantFeatureWidgetStateModel = ReturnType<typeof stateModelFactory>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { createStopTokenChecker } from '@jbrowse/core/util/stopToken';
|
|
1
|
+
import { clusterObject, toNewick } from '@gmod/hclust';
|
|
2
|
+
import { checkStopToken2, createStopTokenChecker, } from '@jbrowse/core/util/stopToken';
|
|
3
3
|
import { getGenotypeMatrix } from "./getGenotypeMatrix.js";
|
|
4
4
|
import { getPhasedGenotypeMatrix } from "./getPhasedGenotypeMatrix.js";
|
|
5
5
|
export async function executeClusterGenotypeMatrix({ pluginManager, args, }) {
|
|
@@ -12,12 +12,12 @@ export async function executeClusterGenotypeMatrix({ pluginManager, args, }) {
|
|
|
12
12
|
args: { ...argsWithCheck, sampleInfo },
|
|
13
13
|
})
|
|
14
14
|
: await getGenotypeMatrix({ pluginManager, args: argsWithCheck });
|
|
15
|
-
const
|
|
16
|
-
|
|
17
|
-
data: Object.values(matrix),
|
|
18
|
-
sampleLabels,
|
|
19
|
-
stopToken: args.stopToken,
|
|
15
|
+
const result = await clusterObject({
|
|
16
|
+
data: matrix,
|
|
20
17
|
onProgress: args.statusCallback,
|
|
18
|
+
checkCancellation: () => {
|
|
19
|
+
checkStopToken2(stopTokenCheck);
|
|
20
|
+
},
|
|
21
21
|
});
|
|
22
22
|
return {
|
|
23
23
|
order: result.order,
|
|
@@ -8,7 +8,7 @@ declare const VcfTabixAdapter: import("@jbrowse/core/configuration/configuration
|
|
|
8
8
|
};
|
|
9
9
|
index: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
10
10
|
indexType: {
|
|
11
|
-
model: import("@jbrowse/mobx-state-tree").ISimpleType<
|
|
11
|
+
model: import("@jbrowse/mobx-state-tree").ISimpleType<"TBI" | "CSI">;
|
|
12
12
|
type: string;
|
|
13
13
|
defaultValue: string;
|
|
14
14
|
};
|
|
@@ -1105,6 +1105,7 @@ export default function MultiVariantBaseModelF(configSchema: AnyConfigurationSch
|
|
|
1105
1105
|
onMouseMove(_: unknown, featureId?: string): void;
|
|
1106
1106
|
onMouseLeave(_: unknown): void;
|
|
1107
1107
|
onContextMenu(_: unknown): void;
|
|
1108
|
+
onFeatureClick(_: unknown, featureId?: string): void;
|
|
1108
1109
|
};
|
|
1109
1110
|
renderProps(): any;
|
|
1110
1111
|
} & {
|
|
@@ -2447,6 +2448,7 @@ export default function MultiVariantBaseModelF(configSchema: AnyConfigurationSch
|
|
|
2447
2448
|
onMouseMove(_: unknown, featureId?: string): void;
|
|
2448
2449
|
onMouseLeave(_: unknown): void;
|
|
2449
2450
|
onContextMenu(_: unknown): void;
|
|
2451
|
+
onFeatureClick(_: unknown, featureId?: string): void;
|
|
2450
2452
|
};
|
|
2451
2453
|
renderProps(): any;
|
|
2452
2454
|
} & {
|
|
@@ -3735,6 +3737,7 @@ export default function MultiVariantBaseModelF(configSchema: AnyConfigurationSch
|
|
|
3735
3737
|
onMouseMove(_: unknown, featureId?: string): void;
|
|
3736
3738
|
onMouseLeave(_: unknown): void;
|
|
3737
3739
|
onContextMenu(_: unknown): void;
|
|
3740
|
+
onFeatureClick(_: unknown, featureId?: string): void;
|
|
3738
3741
|
};
|
|
3739
3742
|
renderProps(): any;
|
|
3740
3743
|
} & {
|
|
@@ -13,7 +13,7 @@ export default function sharedVariantConfigFactory(): import("@jbrowse/core/conf
|
|
|
13
13
|
};
|
|
14
14
|
renderingMode: {
|
|
15
15
|
type: string;
|
|
16
|
-
model: import("@jbrowse/mobx-state-tree").ISimpleType<
|
|
16
|
+
model: import("@jbrowse/mobx-state-tree").ISimpleType<"alleleCount" | "phased">;
|
|
17
17
|
defaultValue: string;
|
|
18
18
|
};
|
|
19
19
|
minorAlleleFrequencyFilter: {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
declare const MultiVariantTooltip: import("react").
|
|
1
|
+
declare const MultiVariantTooltip: import("react").MemoExoticComponent<({ source, x, y, }: {
|
|
2
2
|
source: {
|
|
3
3
|
color?: string;
|
|
4
4
|
name?: string;
|
|
@@ -6,5 +6,5 @@ declare const MultiVariantTooltip: import("react").NamedExoticComponent<{
|
|
|
6
6
|
};
|
|
7
7
|
x: number;
|
|
8
8
|
y: number;
|
|
9
|
-
}>;
|
|
9
|
+
}) => import("react/jsx-runtime").JSX.Element>;
|
|
10
10
|
export default MultiVariantTooltip;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jbrowse/plugin-variants",
|
|
3
|
-
"version": "4.1.
|
|
3
|
+
"version": "4.1.15",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "JBrowse 2 variant adapters, tracks, etc.",
|
|
6
6
|
"keywords": [
|
|
@@ -22,14 +22,14 @@
|
|
|
22
22
|
],
|
|
23
23
|
"dependencies": {
|
|
24
24
|
"@flatten-js/interval-tree": "^2.0.3",
|
|
25
|
-
"@gmod/hclust": "^
|
|
26
|
-
"@gmod/tabix": "^3.
|
|
25
|
+
"@gmod/hclust": "^3.0.4",
|
|
26
|
+
"@gmod/tabix": "^3.3.1",
|
|
27
27
|
"@gmod/vcf": "^7.0.0",
|
|
28
|
-
"@jbrowse/mobx-state-tree": "^5.
|
|
29
|
-
"@mui/icons-material": "^7.3.
|
|
30
|
-
"@mui/material": "^7.3.
|
|
28
|
+
"@jbrowse/mobx-state-tree": "^5.6.0",
|
|
29
|
+
"@mui/icons-material": "^7.3.9",
|
|
30
|
+
"@mui/material": "^7.3.9",
|
|
31
31
|
"@mui/x-charts-vendor": "^8.26.0",
|
|
32
|
-
"@mui/x-data-grid": "^8.
|
|
32
|
+
"@mui/x-data-grid": "^8.28.2",
|
|
33
33
|
"@types/file-saver-es": "^2.0.3",
|
|
34
34
|
"copy-to-clipboard": "^3.3.3",
|
|
35
35
|
"escape-html": "^1.0.3",
|
|
@@ -38,10 +38,10 @@
|
|
|
38
38
|
"mobx": "^6.15.0",
|
|
39
39
|
"mobx-react": "^9.2.1",
|
|
40
40
|
"rxjs": "^7.8.2",
|
|
41
|
-
"@jbrowse/plugin-circular-view": "^4.1.
|
|
42
|
-
"@jbrowse/core": "^4.1.
|
|
43
|
-
"@jbrowse/plugin-linear-genome-view": "^4.1.
|
|
44
|
-
"@jbrowse/
|
|
41
|
+
"@jbrowse/plugin-circular-view": "^4.1.15",
|
|
42
|
+
"@jbrowse/sv-core": "^4.1.15",
|
|
43
|
+
"@jbrowse/plugin-linear-genome-view": "^4.1.15",
|
|
44
|
+
"@jbrowse/core": "^4.1.15"
|
|
45
45
|
},
|
|
46
46
|
"peerDependencies": {
|
|
47
47
|
"react": ">=18.0.0"
|