@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
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
declare const PlinkLDTabixAdapter: import("
|
|
1
|
+
declare const PlinkLDTabixAdapter: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
2
2
|
ldLocation: {
|
|
3
3
|
type: string;
|
|
4
4
|
defaultValue: {
|
|
@@ -6,7 +6,7 @@ declare const PlinkLDTabixAdapter: import("node_modules/@jbrowse/core/src/config
|
|
|
6
6
|
locationType: string;
|
|
7
7
|
};
|
|
8
8
|
};
|
|
9
|
-
index: import("
|
|
9
|
+
index: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
10
10
|
indexType: {
|
|
11
11
|
model: import("@jbrowse/mobx-state-tree").ISimpleType<string>;
|
|
12
12
|
type: string;
|
|
@@ -19,6 +19,6 @@ declare const PlinkLDTabixAdapter: import("node_modules/@jbrowse/core/src/config
|
|
|
19
19
|
locationType: string;
|
|
20
20
|
};
|
|
21
21
|
};
|
|
22
|
-
}, import("
|
|
23
|
-
}, import("
|
|
22
|
+
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, undefined>>;
|
|
23
|
+
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, undefined>>;
|
|
24
24
|
export default PlinkLDTabixAdapter;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
declare const SplitVcfTabixAdapter: import("
|
|
1
|
+
declare const SplitVcfTabixAdapter: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
2
2
|
vcfGzLocationMap: {
|
|
3
3
|
type: string;
|
|
4
4
|
defaultValue: {};
|
|
@@ -19,5 +19,5 @@ declare const SplitVcfTabixAdapter: import("node_modules/@jbrowse/core/src/confi
|
|
|
19
19
|
locationType: string;
|
|
20
20
|
};
|
|
21
21
|
};
|
|
22
|
-
}, import("
|
|
22
|
+
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, undefined>>;
|
|
23
23
|
export default SplitVcfTabixAdapter;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
declare const configSchema: import("
|
|
1
|
+
declare const configSchema: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
2
2
|
strokeColor: {
|
|
3
3
|
type: string;
|
|
4
4
|
description: string;
|
|
@@ -17,5 +17,5 @@ declare const configSchema: import("node_modules/@jbrowse/core/src/configuration
|
|
|
17
17
|
defaultValue: string;
|
|
18
18
|
contextVariable: string[];
|
|
19
19
|
};
|
|
20
|
-
}, import("
|
|
20
|
+
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, undefined>>;
|
|
21
21
|
export default configSchema;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const configSchema: import("
|
|
1
|
+
export declare const configSchema: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, undefined>>;
|
|
@@ -33,7 +33,7 @@ export declare function stateModelFactory(pluginManager: PluginManager): import(
|
|
|
33
33
|
readonly hasExon: boolean | undefined;
|
|
34
34
|
readonly hasExonOrCDS: boolean | undefined;
|
|
35
35
|
} & {
|
|
36
|
-
|
|
36
|
+
afterCreate(): void;
|
|
37
37
|
}, import("@jbrowse/mobx-state-tree")._NotCustomized, import("@jbrowse/mobx-state-tree")._NotCustomized>, [undefined]>;
|
|
38
38
|
descriptions: import("@jbrowse/mobx-state-tree").IType<Record<string, unknown> | undefined, Record<string, unknown> | undefined, Record<string, unknown> | undefined>;
|
|
39
39
|
} & {
|
|
@@ -84,7 +84,7 @@ export declare function stateModelFactory(pluginManager: PluginManager): import(
|
|
|
84
84
|
readonly hasExon: boolean | undefined;
|
|
85
85
|
readonly hasExonOrCDS: boolean | undefined;
|
|
86
86
|
} & {
|
|
87
|
-
|
|
87
|
+
afterCreate(): void;
|
|
88
88
|
}, import("@jbrowse/mobx-state-tree")._NotCustomized, import("@jbrowse/mobx-state-tree")._NotCustomized>, [undefined]>;
|
|
89
89
|
descriptions: import("@jbrowse/mobx-state-tree").IType<Record<string, unknown> | undefined, Record<string, unknown> | undefined, Record<string, unknown> | undefined>;
|
|
90
90
|
}>> & import("@jbrowse/mobx-state-tree/dist/internal").NonEmptyObject & import("@jbrowse/mobx-state-tree")._NotCustomized, {
|
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
import RpcMethodTypeWithFiltersAndRenameRegions from '@jbrowse/core/pluggableElementTypes/RpcMethodTypeWithFiltersAndRenameRegions';
|
|
2
|
+
import { createStopTokenChecker } from '@jbrowse/core/util/stopToken';
|
|
2
3
|
import { getGenotypeMatrix } from "./getGenotypeMatrix.js";
|
|
3
4
|
export class MultiVariantGetGenotypeMatrix extends RpcMethodTypeWithFiltersAndRenameRegions {
|
|
4
5
|
name = 'MultiVariantGetGenotypeMatrix';
|
|
5
6
|
async execute(args, rpcDriverClassName) {
|
|
7
|
+
const deserializedArgs = await this.deserializeArguments(args, rpcDriverClassName);
|
|
8
|
+
const stopTokenCheck = createStopTokenChecker(deserializedArgs.stopToken);
|
|
6
9
|
return getGenotypeMatrix({
|
|
7
10
|
pluginManager: this.pluginManager,
|
|
8
|
-
args:
|
|
11
|
+
args: { ...deserializedArgs, stopTokenCheck },
|
|
9
12
|
});
|
|
10
13
|
}
|
|
11
14
|
}
|
|
@@ -8,6 +8,7 @@ export class MultiVariantGetSimplifiedFeatures extends RpcMethodTypeWithFiltersA
|
|
|
8
8
|
async execute(args, rpcDriverClassName) {
|
|
9
9
|
const deserializedArgs = await this.deserializeArguments(args, rpcDriverClassName);
|
|
10
10
|
const { lengthCutoffFilter, minorAlleleFrequencyFilter, regions, adapterConfig, stopToken, sessionId, } = deserializedArgs;
|
|
11
|
+
const stopTokenCheck = createStopTokenChecker(stopToken);
|
|
11
12
|
const { dataAdapter } = await getAdapter(this.pluginManager, sessionId, adapterConfig);
|
|
12
13
|
const rawFeatures = await firstValueFrom(dataAdapter
|
|
13
14
|
.getFeaturesInMultipleRegions(regions, deserializedArgs)
|
|
@@ -15,11 +16,10 @@ export class MultiVariantGetSimplifiedFeatures extends RpcMethodTypeWithFiltersA
|
|
|
15
16
|
const sampleInfo = {};
|
|
16
17
|
const genotypesCache = new Map();
|
|
17
18
|
let hasPhased = false;
|
|
18
|
-
const lastCheck = createStopTokenChecker(stopToken);
|
|
19
19
|
const features = getFeaturesThatPassMinorAlleleFrequencyFilter({
|
|
20
20
|
minorAlleleFrequencyFilter,
|
|
21
21
|
lengthCutoffFilter,
|
|
22
|
-
|
|
22
|
+
stopTokenCheck,
|
|
23
23
|
features: rawFeatures,
|
|
24
24
|
genotypesCache,
|
|
25
25
|
});
|
|
@@ -47,7 +47,7 @@ export class MultiVariantGetSimplifiedFeatures extends RpcMethodTypeWithFiltersA
|
|
|
47
47
|
isPhased: existing?.isPhased || isPhased,
|
|
48
48
|
};
|
|
49
49
|
}
|
|
50
|
-
checkStopToken2(
|
|
50
|
+
checkStopToken2(stopTokenCheck);
|
|
51
51
|
}
|
|
52
52
|
return {
|
|
53
53
|
hasPhased,
|
|
@@ -1,14 +1,17 @@
|
|
|
1
1
|
import { clusterData, toNewick } from '@gmod/hclust';
|
|
2
|
+
import { createStopTokenChecker } from '@jbrowse/core/util/stopToken';
|
|
2
3
|
import { getGenotypeMatrix } from "./getGenotypeMatrix.js";
|
|
3
4
|
import { getPhasedGenotypeMatrix } from "./getPhasedGenotypeMatrix.js";
|
|
4
5
|
export async function executeClusterGenotypeMatrix({ pluginManager, args, }) {
|
|
5
|
-
const { renderingMode, sampleInfo } = args;
|
|
6
|
+
const { renderingMode, sampleInfo, stopToken } = args;
|
|
7
|
+
const stopTokenCheck = createStopTokenChecker(stopToken);
|
|
8
|
+
const argsWithCheck = { ...args, stopTokenCheck };
|
|
6
9
|
const matrix = renderingMode === 'phased' && sampleInfo
|
|
7
10
|
? await getPhasedGenotypeMatrix({
|
|
8
11
|
pluginManager,
|
|
9
|
-
args: { ...
|
|
12
|
+
args: { ...argsWithCheck, sampleInfo },
|
|
10
13
|
})
|
|
11
|
-
: await getGenotypeMatrix({ pluginManager, args });
|
|
14
|
+
: await getGenotypeMatrix({ pluginManager, args: argsWithCheck });
|
|
12
15
|
const sampleLabels = Object.keys(matrix);
|
|
13
16
|
const result = await clusterData({
|
|
14
17
|
data: Object.values(matrix),
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
import type { Source } from '../shared/types.ts';
|
|
2
2
|
import type PluginManager from '@jbrowse/core/PluginManager';
|
|
3
3
|
import type { AnyConfigurationModel } from '@jbrowse/core/configuration';
|
|
4
|
-
import type { Region } from '@jbrowse/core/util';
|
|
5
|
-
import type { StopToken } from '@jbrowse/core/util/stopToken';
|
|
4
|
+
import type { LastStopTokenCheck, Region } from '@jbrowse/core/util';
|
|
6
5
|
export declare function getGenotypeMatrix({ pluginManager, args, }: {
|
|
7
6
|
pluginManager: PluginManager;
|
|
8
7
|
args: {
|
|
9
8
|
adapterConfig: AnyConfigurationModel;
|
|
10
|
-
|
|
9
|
+
stopTokenCheck?: LastStopTokenCheck;
|
|
11
10
|
sessionId: string;
|
|
12
11
|
headers?: Record<string, string>;
|
|
13
12
|
regions: Region[];
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import { getAdapter } from '@jbrowse/core/data_adapters/dataAdapterCache';
|
|
2
|
-
import { checkStopToken2
|
|
2
|
+
import { checkStopToken2 } from '@jbrowse/core/util/stopToken';
|
|
3
3
|
import { firstValueFrom, toArray } from 'rxjs';
|
|
4
4
|
import { getFeaturesThatPassMinorAlleleFrequencyFilter } from "../shared/minorAlleleFrequencyUtils.js";
|
|
5
5
|
const SPLITTER = /[/|]/;
|
|
6
6
|
export async function getGenotypeMatrix({ pluginManager, args, }) {
|
|
7
|
-
const { sources, minorAlleleFrequencyFilter, regions, adapterConfig, sessionId, lengthCutoffFilter,
|
|
8
|
-
const lastCheck = createStopTokenChecker(stopToken);
|
|
7
|
+
const { sources, minorAlleleFrequencyFilter, regions, adapterConfig, sessionId, lengthCutoffFilter, stopTokenCheck, } = args;
|
|
9
8
|
const adapter = await getAdapter(pluginManager, sessionId, adapterConfig);
|
|
10
9
|
const dataAdapter = adapter.dataAdapter;
|
|
11
10
|
const rows = Object.fromEntries(sources.map(s => [s.name, []]));
|
|
@@ -13,7 +12,7 @@ export async function getGenotypeMatrix({ pluginManager, args, }) {
|
|
|
13
12
|
const mafs = getFeaturesThatPassMinorAlleleFrequencyFilter({
|
|
14
13
|
minorAlleleFrequencyFilter,
|
|
15
14
|
lengthCutoffFilter,
|
|
16
|
-
|
|
15
|
+
stopTokenCheck,
|
|
17
16
|
splitCache,
|
|
18
17
|
features: await firstValueFrom(dataAdapter.getFeaturesInMultipleRegions(regions, args).pipe(toArray())),
|
|
19
18
|
});
|
|
@@ -42,7 +41,7 @@ export async function getGenotypeMatrix({ pluginManager, args, }) {
|
|
|
42
41
|
: 1;
|
|
43
42
|
rows[name].push(genotypeStatus);
|
|
44
43
|
}
|
|
45
|
-
checkStopToken2(
|
|
44
|
+
checkStopToken2(stopTokenCheck);
|
|
46
45
|
}
|
|
47
46
|
return rows;
|
|
48
47
|
}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import type PluginManager from '@jbrowse/core/PluginManager';
|
|
2
2
|
import type { AnyConfigurationModel } from '@jbrowse/core/configuration';
|
|
3
|
-
import type { Region } from '@jbrowse/core/util';
|
|
4
|
-
import type { StopToken } from '@jbrowse/core/util/stopToken';
|
|
3
|
+
import type { LastStopTokenCheck, Region } from '@jbrowse/core/util';
|
|
5
4
|
export type LDMetric = 'r2' | 'dprime';
|
|
6
5
|
export interface FilterStats {
|
|
7
6
|
totalVariants: number;
|
|
@@ -32,7 +31,7 @@ export declare function getLDMatrix({ pluginManager, args, }: {
|
|
|
32
31
|
pluginManager: PluginManager;
|
|
33
32
|
args: {
|
|
34
33
|
adapterConfig: AnyConfigurationModel;
|
|
35
|
-
|
|
34
|
+
stopTokenCheck?: LastStopTokenCheck;
|
|
36
35
|
sessionId: string;
|
|
37
36
|
headers?: Record<string, string>;
|
|
38
37
|
regions: Region[];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { getAdapter } from '@jbrowse/core/data_adapters/dataAdapterCache';
|
|
2
2
|
import SerializableFilterChain from '@jbrowse/core/pluggableElementTypes/renderers/util/serializableFilterChain';
|
|
3
|
-
import { checkStopToken2
|
|
3
|
+
import { checkStopToken2 } from '@jbrowse/core/util/stopToken';
|
|
4
4
|
import { firstValueFrom, toArray } from 'rxjs';
|
|
5
5
|
import { getFeaturesThatPassMinorAlleleFrequencyFilter } from "../shared/minorAlleleFrequencyUtils.js";
|
|
6
6
|
const SPLITTER = /[/|]/;
|
|
@@ -206,8 +206,7 @@ function calculateLDStats(geno1, geno2, signedLD = false) {
|
|
|
206
206
|
return { r2: signedLD ? r : r2, dprime };
|
|
207
207
|
}
|
|
208
208
|
export async function getLDMatrix({ pluginManager, args, }) {
|
|
209
|
-
const { minorAlleleFrequencyFilter, regions, adapterConfig, sessionId, lengthCutoffFilter, hweFilterThreshold = 0.001, callRateFilter = 0, jexlFilters = [],
|
|
210
|
-
const lastCheck = createStopTokenChecker(stopToken);
|
|
209
|
+
const { minorAlleleFrequencyFilter, regions, adapterConfig, sessionId, lengthCutoffFilter, hweFilterThreshold = 0.001, callRateFilter = 0, jexlFilters = [], stopTokenCheck, ldMetric = 'r2', signedLD = false, } = args;
|
|
211
210
|
const adapter = await getAdapter(pluginManager, sessionId, adapterConfig);
|
|
212
211
|
const dataAdapter = adapter.dataAdapter;
|
|
213
212
|
const sources = await dataAdapter.getSources(regions);
|
|
@@ -238,7 +237,7 @@ export async function getLDMatrix({ pluginManager, args, }) {
|
|
|
238
237
|
const filteredFeatures = getFeaturesThatPassMinorAlleleFrequencyFilter({
|
|
239
238
|
minorAlleleFrequencyFilter,
|
|
240
239
|
lengthCutoffFilter,
|
|
241
|
-
|
|
240
|
+
stopTokenCheck,
|
|
242
241
|
splitCache,
|
|
243
242
|
features: rawFeatures,
|
|
244
243
|
});
|
|
@@ -339,7 +338,7 @@ export async function getLDMatrix({ pluginManager, args, }) {
|
|
|
339
338
|
if (dataIsPhased) {
|
|
340
339
|
phasedHaplotypes.push(encodePhasedHaplotypes(genotypes, samples));
|
|
341
340
|
}
|
|
342
|
-
checkStopToken2(
|
|
341
|
+
checkStopToken2(stopTokenCheck);
|
|
343
342
|
}
|
|
344
343
|
const n = snps.length;
|
|
345
344
|
const ldSize = (n * (n - 1)) / 2;
|
|
@@ -352,7 +351,7 @@ export async function getLDMatrix({ pluginManager, args, }) {
|
|
|
352
351
|
: calculateLDStats(encodedGenotypes[i], encodedGenotypes[j], signedLD);
|
|
353
352
|
ldValues[idx++] = ldMetric === 'dprime' ? stats.dprime : stats.r2;
|
|
354
353
|
}
|
|
355
|
-
checkStopToken2(
|
|
354
|
+
checkStopToken2(stopTokenCheck);
|
|
356
355
|
}
|
|
357
356
|
const filterStats = {
|
|
358
357
|
totalVariants,
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
import type { SampleInfo, Source } from '../shared/types.ts';
|
|
2
2
|
import type PluginManager from '@jbrowse/core/PluginManager';
|
|
3
3
|
import type { AnyConfigurationModel } from '@jbrowse/core/configuration';
|
|
4
|
-
import type { Region } from '@jbrowse/core/util';
|
|
5
|
-
import type { StopToken } from '@jbrowse/core/util/stopToken';
|
|
4
|
+
import type { LastStopTokenCheck, Region } from '@jbrowse/core/util';
|
|
6
5
|
export declare function getPhasedGenotypeMatrix({ pluginManager, args, }: {
|
|
7
6
|
pluginManager: PluginManager;
|
|
8
7
|
args: {
|
|
9
8
|
adapterConfig: AnyConfigurationModel;
|
|
10
|
-
|
|
9
|
+
stopTokenCheck?: LastStopTokenCheck;
|
|
11
10
|
sessionId: string;
|
|
12
11
|
headers?: Record<string, string>;
|
|
13
12
|
regions: Region[];
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import { getAdapter } from '@jbrowse/core/data_adapters/dataAdapterCache';
|
|
2
|
-
import { checkStopToken2
|
|
2
|
+
import { checkStopToken2 } from '@jbrowse/core/util/stopToken';
|
|
3
3
|
import { firstValueFrom, toArray } from 'rxjs';
|
|
4
4
|
import { getFeaturesThatPassMinorAlleleFrequencyFilter } from "../shared/minorAlleleFrequencyUtils.js";
|
|
5
5
|
export async function getPhasedGenotypeMatrix({ pluginManager, args, }) {
|
|
6
|
-
const { sources, minorAlleleFrequencyFilter, regions, adapterConfig, sessionId, lengthCutoffFilter,
|
|
7
|
-
const lastCheck = createStopTokenChecker(stopToken);
|
|
6
|
+
const { sources, minorAlleleFrequencyFilter, regions, adapterConfig, sessionId, lengthCutoffFilter, stopTokenCheck, sampleInfo, } = args;
|
|
8
7
|
const adapter = await getAdapter(pluginManager, sessionId, adapterConfig);
|
|
9
8
|
const dataAdapter = adapter.dataAdapter;
|
|
10
9
|
const rows = {};
|
|
@@ -19,7 +18,7 @@ export async function getPhasedGenotypeMatrix({ pluginManager, args, }) {
|
|
|
19
18
|
const mafs = getFeaturesThatPassMinorAlleleFrequencyFilter({
|
|
20
19
|
minorAlleleFrequencyFilter,
|
|
21
20
|
lengthCutoffFilter,
|
|
22
|
-
|
|
21
|
+
stopTokenCheck,
|
|
23
22
|
splitCache,
|
|
24
23
|
features: await firstValueFrom(dataAdapter.getFeaturesInMultipleRegions(regions, args).pipe(toArray())),
|
|
25
24
|
});
|
|
@@ -44,7 +43,7 @@ export async function getPhasedGenotypeMatrix({ pluginManager, args, }) {
|
|
|
44
43
|
}
|
|
45
44
|
}
|
|
46
45
|
}
|
|
47
|
-
checkStopToken2(
|
|
46
|
+
checkStopToken2(stopTokenCheck);
|
|
48
47
|
}
|
|
49
48
|
return rows;
|
|
50
49
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type PluginManager from '@jbrowse/core/PluginManager';
|
|
2
|
-
export default function VariantTrackF(pluginManager: PluginManager): import("
|
|
2
|
+
export default function VariantTrackF(pluginManager: PluginManager): import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
3
3
|
name: {
|
|
4
4
|
description: string;
|
|
5
5
|
type: string;
|
|
@@ -31,7 +31,7 @@ export default function VariantTrackF(pluginManager: PluginManager): import("nod
|
|
|
31
31
|
defaultValue: string;
|
|
32
32
|
};
|
|
33
33
|
adapter: import("@jbrowse/mobx-state-tree").IAnyModelType;
|
|
34
|
-
textSearching: import("
|
|
34
|
+
textSearching: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
35
35
|
indexingAttributes: {
|
|
36
36
|
type: string;
|
|
37
37
|
description: string;
|
|
@@ -43,9 +43,9 @@ export default function VariantTrackF(pluginManager: PluginManager): import("nod
|
|
|
43
43
|
defaultValue: string[];
|
|
44
44
|
};
|
|
45
45
|
textSearchAdapter: import("@jbrowse/mobx-state-tree").IAnyModelType;
|
|
46
|
-
}, import("
|
|
46
|
+
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, undefined>>;
|
|
47
47
|
displays: import("@jbrowse/mobx-state-tree").IArrayType<import("@jbrowse/mobx-state-tree").IAnyModelType>;
|
|
48
|
-
formatDetails: import("
|
|
48
|
+
formatDetails: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
49
49
|
feature: {
|
|
50
50
|
type: string;
|
|
51
51
|
description: string;
|
|
@@ -68,8 +68,8 @@ export default function VariantTrackF(pluginManager: PluginManager): import("nod
|
|
|
68
68
|
defaultValue: number;
|
|
69
69
|
description: string;
|
|
70
70
|
};
|
|
71
|
-
}, import("
|
|
72
|
-
formatAbout: import("
|
|
71
|
+
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, undefined>>;
|
|
72
|
+
formatAbout: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
73
73
|
config: {
|
|
74
74
|
type: string;
|
|
75
75
|
description: string;
|
|
@@ -80,5 +80,5 @@ export default function VariantTrackF(pluginManager: PluginManager): import("nod
|
|
|
80
80
|
type: string;
|
|
81
81
|
defaultValue: boolean;
|
|
82
82
|
};
|
|
83
|
-
}, import("
|
|
84
|
-
}, import("
|
|
83
|
+
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, undefined>>;
|
|
84
|
+
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, "trackId">>, undefined>>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
declare const VcfAdapter: import("
|
|
1
|
+
declare const VcfAdapter: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
2
2
|
vcfLocation: {
|
|
3
3
|
type: string;
|
|
4
4
|
defaultValue: {
|
|
@@ -14,5 +14,5 @@ declare const VcfAdapter: import("node_modules/@jbrowse/core/src/configuration/c
|
|
|
14
14
|
locationType: string;
|
|
15
15
|
};
|
|
16
16
|
};
|
|
17
|
-
}, import("
|
|
17
|
+
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, undefined>>;
|
|
18
18
|
export default VcfAdapter;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
declare const VcfTabixAdapter: import("
|
|
1
|
+
declare const VcfTabixAdapter: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
2
2
|
vcfGzLocation: {
|
|
3
3
|
type: string;
|
|
4
4
|
defaultValue: {
|
|
@@ -6,7 +6,7 @@ declare const VcfTabixAdapter: import("node_modules/@jbrowse/core/src/configurat
|
|
|
6
6
|
locationType: string;
|
|
7
7
|
};
|
|
8
8
|
};
|
|
9
|
-
index: import("
|
|
9
|
+
index: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
10
10
|
indexType: {
|
|
11
11
|
model: import("@jbrowse/mobx-state-tree").ISimpleType<string>;
|
|
12
12
|
type: string;
|
|
@@ -19,7 +19,7 @@ declare const VcfTabixAdapter: import("node_modules/@jbrowse/core/src/configurat
|
|
|
19
19
|
locationType: string;
|
|
20
20
|
};
|
|
21
21
|
};
|
|
22
|
-
}, import("
|
|
22
|
+
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, undefined>>;
|
|
23
23
|
samplesTsvLocation: {
|
|
24
24
|
type: string;
|
|
25
25
|
defaultValue: {
|
|
@@ -28,5 +28,5 @@ declare const VcfTabixAdapter: import("node_modules/@jbrowse/core/src/configurat
|
|
|
28
28
|
locationType: string;
|
|
29
29
|
};
|
|
30
30
|
};
|
|
31
|
-
}, import("
|
|
31
|
+
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, undefined>>;
|
|
32
32
|
export default VcfTabixAdapter;
|