@jbrowse/plugin-variants 1.7.0 → 1.7.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ChordVariantDisplay/index.d.ts +3 -3
- package/dist/ChordVariantDisplay/models/ChordVariantDisplay.d.ts +5 -5
- package/dist/LinearVariantDisplay/configSchema.d.ts +5 -5
- package/dist/LinearVariantDisplay/index.d.ts +2 -2
- package/dist/LinearVariantDisplay/model.d.ts +207 -207
- package/dist/StructuralVariantChordRenderer/ReactComponent.d.ts +24 -24
- package/dist/StructuralVariantChordRenderer/index.d.ts +3 -3
- package/dist/VariantFeatureWidget/BreakendOptionDialog.d.ts +10 -10
- package/dist/VariantFeatureWidget/VariantFeatureWidget.d.ts +4 -4
- package/dist/VariantFeatureWidget/index.d.ts +11 -11
- package/dist/VcfAdapter/VcfAdapter.d.ts +24 -24
- package/dist/VcfAdapter/configSchema.d.ts +2 -2
- package/dist/VcfAdapter/index.d.ts +1 -1
- package/dist/VcfTabixAdapter/VcfFeature.d.ts +59 -59
- package/dist/VcfTabixAdapter/VcfTabixAdapter.d.ts +35 -35
- package/dist/VcfTabixAdapter/configSchema.d.ts +2 -2
- package/dist/VcfTabixAdapter/index.d.ts +1 -1
- package/dist/index.d.ts +7 -7
- package/package.json +4 -3
- package/dist/LinearVariantDisplay/configSchema.test.d.ts +0 -1
- package/dist/VariantFeatureWidget/VariantFeatureWidget.test.d.ts +0 -1
- package/dist/index.test.d.ts +0 -1
- package/dist/plugin-variants.cjs.development.js +0 -2897
- package/dist/plugin-variants.cjs.development.js.map +0 -1
- package/dist/plugin-variants.cjs.production.min.js +0 -2
- package/dist/plugin-variants.cjs.production.min.js.map +0 -1
- package/dist/plugin-variants.esm.js +0 -2889
- package/dist/plugin-variants.esm.js.map +0 -1
|
@@ -1,59 +1,59 @@
|
|
|
1
|
-
import { Feature } from '@jbrowse/core/util/simpleFeature';
|
|
2
|
-
/**
|
|
3
|
-
* VCF Feature creation with lazy genotype evaluation.
|
|
4
|
-
*/
|
|
5
|
-
interface Samples {
|
|
6
|
-
[key: string]: {
|
|
7
|
-
[key: string]: {
|
|
8
|
-
values: string[] | number[] | null;
|
|
9
|
-
};
|
|
10
|
-
};
|
|
11
|
-
}
|
|
12
|
-
interface FeatureData {
|
|
13
|
-
[key: string]: unknown;
|
|
14
|
-
refName: string;
|
|
15
|
-
start: number;
|
|
16
|
-
end: number;
|
|
17
|
-
description?: string;
|
|
18
|
-
type?: string;
|
|
19
|
-
name?: string;
|
|
20
|
-
aliases?: string[];
|
|
21
|
-
samples?: Samples;
|
|
22
|
-
}
|
|
23
|
-
export default class VCFFeature implements Feature {
|
|
24
|
-
private variant;
|
|
25
|
-
private parser;
|
|
26
|
-
private data;
|
|
27
|
-
private _id;
|
|
28
|
-
constructor(args: {
|
|
29
|
-
variant: any;
|
|
30
|
-
parser: any;
|
|
31
|
-
id: string;
|
|
32
|
-
});
|
|
33
|
-
get(field: string): any;
|
|
34
|
-
set(): void;
|
|
35
|
-
parent(): undefined;
|
|
36
|
-
children(): undefined;
|
|
37
|
-
tags(): string[];
|
|
38
|
-
id(): string;
|
|
39
|
-
dataFromVariant(variant: {
|
|
40
|
-
REF: string;
|
|
41
|
-
POS: number;
|
|
42
|
-
ALT: string[];
|
|
43
|
-
CHROM: string;
|
|
44
|
-
INFO: any;
|
|
45
|
-
ID: string[];
|
|
46
|
-
}): FeatureData;
|
|
47
|
-
/**
|
|
48
|
-
* Get a sequence ontology (SO) term that describes the variant type
|
|
49
|
-
*/
|
|
50
|
-
_getSOTermAndDescription(ref: string, alt: string[]): [string, string] | [undefined, undefined];
|
|
51
|
-
static _altTypeToSO: {
|
|
52
|
-
[key: string]: string | undefined;
|
|
53
|
-
};
|
|
54
|
-
_getSOAndDescFromAltDefs(ref: string, alt: string): [string, string] | [undefined, undefined];
|
|
55
|
-
_getSOAndDescByExamination(ref: string, alt: string): [string, string];
|
|
56
|
-
_makeDescriptionString(soTerm: string, ref: string, alt: string): string;
|
|
57
|
-
toJSON(): any;
|
|
58
|
-
}
|
|
59
|
-
export {};
|
|
1
|
+
import { Feature } from '@jbrowse/core/util/simpleFeature';
|
|
2
|
+
/**
|
|
3
|
+
* VCF Feature creation with lazy genotype evaluation.
|
|
4
|
+
*/
|
|
5
|
+
interface Samples {
|
|
6
|
+
[key: string]: {
|
|
7
|
+
[key: string]: {
|
|
8
|
+
values: string[] | number[] | null;
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
}
|
|
12
|
+
interface FeatureData {
|
|
13
|
+
[key: string]: unknown;
|
|
14
|
+
refName: string;
|
|
15
|
+
start: number;
|
|
16
|
+
end: number;
|
|
17
|
+
description?: string;
|
|
18
|
+
type?: string;
|
|
19
|
+
name?: string;
|
|
20
|
+
aliases?: string[];
|
|
21
|
+
samples?: Samples;
|
|
22
|
+
}
|
|
23
|
+
export default class VCFFeature implements Feature {
|
|
24
|
+
private variant;
|
|
25
|
+
private parser;
|
|
26
|
+
private data;
|
|
27
|
+
private _id;
|
|
28
|
+
constructor(args: {
|
|
29
|
+
variant: any;
|
|
30
|
+
parser: any;
|
|
31
|
+
id: string;
|
|
32
|
+
});
|
|
33
|
+
get(field: string): any;
|
|
34
|
+
set(): void;
|
|
35
|
+
parent(): undefined;
|
|
36
|
+
children(): undefined;
|
|
37
|
+
tags(): string[];
|
|
38
|
+
id(): string;
|
|
39
|
+
dataFromVariant(variant: {
|
|
40
|
+
REF: string;
|
|
41
|
+
POS: number;
|
|
42
|
+
ALT: string[];
|
|
43
|
+
CHROM: string;
|
|
44
|
+
INFO: any;
|
|
45
|
+
ID: string[];
|
|
46
|
+
}): FeatureData;
|
|
47
|
+
/**
|
|
48
|
+
* Get a sequence ontology (SO) term that describes the variant type
|
|
49
|
+
*/
|
|
50
|
+
_getSOTermAndDescription(ref: string, alt: string[]): [string, string] | [undefined, undefined];
|
|
51
|
+
static _altTypeToSO: {
|
|
52
|
+
[key: string]: string | undefined;
|
|
53
|
+
};
|
|
54
|
+
_getSOAndDescFromAltDefs(ref: string, alt: string): [string, string] | [undefined, undefined];
|
|
55
|
+
_getSOAndDescByExamination(ref: string, alt: string): [string, string];
|
|
56
|
+
_makeDescriptionString(soTerm: string, ref: string, alt: string): string;
|
|
57
|
+
toJSON(): any;
|
|
58
|
+
}
|
|
59
|
+
export {};
|
|
@@ -1,35 +1,35 @@
|
|
|
1
|
-
import { BaseFeatureDataAdapter, BaseOptions } from '@jbrowse/core/data_adapters/BaseAdapter';
|
|
2
|
-
import { NoAssemblyRegion, Region } from '@jbrowse/core/util/types';
|
|
3
|
-
import { Feature } from '@jbrowse/core/util/simpleFeature';
|
|
4
|
-
import { TabixIndexedFile } from '@gmod/tabix';
|
|
5
|
-
import VcfParser from '@gmod/vcf';
|
|
6
|
-
import { GenericFilehandle } from 'generic-filehandle';
|
|
7
|
-
export default class extends BaseFeatureDataAdapter {
|
|
8
|
-
private configured?;
|
|
9
|
-
private configurePre;
|
|
10
|
-
protected configure(): Promise<{
|
|
11
|
-
filehandle: GenericFilehandle;
|
|
12
|
-
vcf: TabixIndexedFile;
|
|
13
|
-
parser: VcfParser;
|
|
14
|
-
}>;
|
|
15
|
-
getRefNames(opts?: BaseOptions): Promise<any>;
|
|
16
|
-
getHeader(): Promise<string>;
|
|
17
|
-
getMetadata(): Promise<any>;
|
|
18
|
-
getFeatures(query: NoAssemblyRegion, opts?: BaseOptions): import("rxjs").Observable<Feature>;
|
|
19
|
-
/**
|
|
20
|
-
* Checks if the data source has data for the given reference sequence,
|
|
21
|
-
* and then gets the features in the region if it does
|
|
22
|
-
*
|
|
23
|
-
* Currently this just calls getFeatureInRegion for each region. Adapters that
|
|
24
|
-
* are frequently called on multiple regions simultaneously may want to
|
|
25
|
-
* implement a more efficient custom version of this method.
|
|
26
|
-
*
|
|
27
|
-
* Also includes a bit of extra logging to warn when fetching a large portion
|
|
28
|
-
* of a VCF
|
|
29
|
-
* @param regions - Regions
|
|
30
|
-
* @param opts - Feature adapter options
|
|
31
|
-
* @returns Observable of Feature objects in the regions
|
|
32
|
-
*/
|
|
33
|
-
getFeaturesInMultipleRegions(regions: Region[], opts?: BaseOptions): import("rxjs").Observable<Feature>;
|
|
34
|
-
freeResources(): void;
|
|
35
|
-
}
|
|
1
|
+
import { BaseFeatureDataAdapter, BaseOptions } from '@jbrowse/core/data_adapters/BaseAdapter';
|
|
2
|
+
import { NoAssemblyRegion, Region } from '@jbrowse/core/util/types';
|
|
3
|
+
import { Feature } from '@jbrowse/core/util/simpleFeature';
|
|
4
|
+
import { TabixIndexedFile } from '@gmod/tabix';
|
|
5
|
+
import VcfParser from '@gmod/vcf';
|
|
6
|
+
import { GenericFilehandle } from 'generic-filehandle';
|
|
7
|
+
export default class extends BaseFeatureDataAdapter {
|
|
8
|
+
private configured?;
|
|
9
|
+
private configurePre;
|
|
10
|
+
protected configure(): Promise<{
|
|
11
|
+
filehandle: GenericFilehandle;
|
|
12
|
+
vcf: TabixIndexedFile;
|
|
13
|
+
parser: VcfParser;
|
|
14
|
+
}>;
|
|
15
|
+
getRefNames(opts?: BaseOptions): Promise<any>;
|
|
16
|
+
getHeader(): Promise<string>;
|
|
17
|
+
getMetadata(): Promise<any>;
|
|
18
|
+
getFeatures(query: NoAssemblyRegion, opts?: BaseOptions): import("rxjs").Observable<Feature>;
|
|
19
|
+
/**
|
|
20
|
+
* Checks if the data source has data for the given reference sequence,
|
|
21
|
+
* and then gets the features in the region if it does
|
|
22
|
+
*
|
|
23
|
+
* Currently this just calls getFeatureInRegion for each region. Adapters that
|
|
24
|
+
* are frequently called on multiple regions simultaneously may want to
|
|
25
|
+
* implement a more efficient custom version of this method.
|
|
26
|
+
*
|
|
27
|
+
* Also includes a bit of extra logging to warn when fetching a large portion
|
|
28
|
+
* of a VCF
|
|
29
|
+
* @param regions - Regions
|
|
30
|
+
* @param opts - Feature adapter options
|
|
31
|
+
* @returns Observable of Feature objects in the regions
|
|
32
|
+
*/
|
|
33
|
+
getFeaturesInMultipleRegions(regions: Region[], opts?: BaseOptions): import("rxjs").Observable<Feature>;
|
|
34
|
+
freeResources(): void;
|
|
35
|
+
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: import("@jbrowse/core/configuration").AnyConfigurationSchemaType;
|
|
2
|
-
export default _default;
|
|
1
|
+
declare const _default: import("@jbrowse/core/configuration").AnyConfigurationSchemaType;
|
|
2
|
+
export default _default;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default as configSchema } from './configSchema';
|
|
1
|
+
export { default as configSchema } from './configSchema';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import Plugin from '@jbrowse/core/Plugin';
|
|
2
|
-
import PluginManager from '@jbrowse/core/PluginManager';
|
|
3
|
-
export default class VariantsPlugin extends Plugin {
|
|
4
|
-
name: string;
|
|
5
|
-
install(pluginManager: PluginManager): void;
|
|
6
|
-
}
|
|
7
|
-
export { default as VcfFeature } from './VcfTabixAdapter/VcfFeature';
|
|
1
|
+
import Plugin from '@jbrowse/core/Plugin';
|
|
2
|
+
import PluginManager from '@jbrowse/core/PluginManager';
|
|
3
|
+
export default class VariantsPlugin extends Plugin {
|
|
4
|
+
name: string;
|
|
5
|
+
install(pluginManager: PluginManager): void;
|
|
6
|
+
}
|
|
7
|
+
export { default as VcfFeature } from './VcfTabixAdapter/VcfFeature';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jbrowse/plugin-variants",
|
|
3
|
-
"version": "1.7.
|
|
3
|
+
"version": "1.7.1",
|
|
4
4
|
"description": "JBrowse 2 variant adapters, tracks, etc.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"jbrowse",
|
|
@@ -29,7 +29,8 @@
|
|
|
29
29
|
"prepack": "yarn build; yarn useDist",
|
|
30
30
|
"postpack": "yarn useSrc",
|
|
31
31
|
"useDist": "node ../../scripts/useDist.js",
|
|
32
|
-
"useSrc": "node ../../scripts/useSrc.js"
|
|
32
|
+
"useSrc": "node ../../scripts/useSrc.js",
|
|
33
|
+
"postbuild": "tsc --build tsconfig.build.json"
|
|
33
34
|
},
|
|
34
35
|
"dependencies": {
|
|
35
36
|
"@flatten-js/interval-tree": "^1.0.15",
|
|
@@ -55,5 +56,5 @@
|
|
|
55
56
|
"publishConfig": {
|
|
56
57
|
"access": "public"
|
|
57
58
|
},
|
|
58
|
-
"gitHead": "
|
|
59
|
+
"gitHead": "6da232090c90f22ac96fd464c33082c89b8da14b"
|
|
59
60
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
package/dist/index.test.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|