@jbrowse/plugin-variants 2.2.0 → 2.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/LinearVariantDisplay/configSchema.d.ts +2 -2
- package/dist/LinearVariantDisplay/model.d.ts +2 -6
- package/dist/StructuralVariantChordRenderer/ReactComponent.d.ts +1 -1
- package/dist/VariantFeatureWidget/BreakendOptionDialog.js +2 -16
- package/dist/VariantFeatureWidget/BreakendOptionDialog.js.map +1 -1
- package/esm/LinearVariantDisplay/configSchema.d.ts +2 -2
- package/esm/LinearVariantDisplay/model.d.ts +2 -6
- package/esm/StructuralVariantChordRenderer/ReactComponent.d.ts +1 -1
- package/esm/VariantFeatureWidget/BreakendOptionDialog.js +3 -14
- package/esm/VariantFeatureWidget/BreakendOptionDialog.js.map +1 -1
- package/package.json +4 -4
- package/src/LinearVariantDisplay/configSchema.test.js +1 -1
- package/src/VariantFeatureWidget/BreakendOptionDialog.tsx +2 -25
- package/src/VariantFeatureWidget/VariantFeatureWidget.test.js +6 -4
- package/src/VariantFeatureWidget/__snapshots__/VariantFeatureWidget.test.js.snap +1 -3
- package/src/VcfAdapter/__snapshots__/VcfAdapter.test.ts.snap +79 -79
- package/src/VcfTabixAdapter/__snapshots__/VcfTabixAdapter.test.ts.snap +79 -79
- package/src/__snapshots__/index.test.js.snap +5 -5
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Instance } from 'mobx-state-tree';
|
|
2
2
|
import PluginManager from '@jbrowse/core/PluginManager';
|
|
3
3
|
export default function configSchemaF(pluginManager: PluginManager): import("@jbrowse/core/configuration").AnyConfigurationSchemaType;
|
|
4
|
-
export
|
|
5
|
-
export
|
|
4
|
+
export type LinearVariantDisplayConfigModel = ReturnType<typeof configSchemaF>;
|
|
5
|
+
export type LinearVariantDisplayConfig = Instance<LinearVariantDisplayConfigModel>;
|
|
@@ -61,12 +61,8 @@ export default function stateModelFactory(configSchema: LinearVariantDisplayConf
|
|
|
61
61
|
userBpPerPxLimit: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<number>>;
|
|
62
62
|
userByteSizeLimit: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<number>>;
|
|
63
63
|
} & {
|
|
64
|
-
type: import("mobx-state-tree").ISimpleType<"LinearBasicDisplay">;
|
|
65
|
-
|
|
66
|
-
*/
|
|
67
|
-
trackShowLabels: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<boolean>>; /**
|
|
68
|
-
* #property
|
|
69
|
-
*/
|
|
64
|
+
type: import("mobx-state-tree").ISimpleType<"LinearBasicDisplay">;
|
|
65
|
+
trackShowLabels: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<boolean>>;
|
|
70
66
|
trackShowDescriptions: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<boolean>>;
|
|
71
67
|
trackDisplayMode: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<string>>;
|
|
72
68
|
trackMaxHeight: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<number>>;
|
|
@@ -22,25 +22,16 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
22
22
|
__setModuleDefault(result, mod);
|
|
23
23
|
return result;
|
|
24
24
|
};
|
|
25
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
26
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
27
|
-
};
|
|
28
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
26
|
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
30
27
|
const react_1 = __importStar(require("react"));
|
|
31
28
|
const mobx_react_1 = require("mobx-react");
|
|
32
29
|
const material_1 = require("@mui/material");
|
|
30
|
+
const ui_1 = require("@jbrowse/core/ui");
|
|
33
31
|
const mui_1 = require("tss-react/mui");
|
|
34
|
-
const Close_1 = __importDefault(require("@mui/icons-material/Close"));
|
|
35
32
|
const mobx_state_tree_1 = require("mobx-state-tree");
|
|
36
33
|
const util_1 = require("@jbrowse/core/util");
|
|
37
34
|
const useStyles = (0, mui_1.makeStyles)()(theme => ({
|
|
38
|
-
closeButton: {
|
|
39
|
-
position: 'absolute',
|
|
40
|
-
right: theme.spacing(1),
|
|
41
|
-
top: theme.spacing(1),
|
|
42
|
-
color: theme.palette.grey[500],
|
|
43
|
-
},
|
|
44
35
|
block: {
|
|
45
36
|
display: 'block',
|
|
46
37
|
},
|
|
@@ -49,12 +40,7 @@ function BreakendOptionDialog({ model, handleClose, feature, viewType, }) {
|
|
|
49
40
|
const { classes } = useStyles();
|
|
50
41
|
const [copyTracks, setCopyTracks] = (0, react_1.useState)(true);
|
|
51
42
|
const [mirrorTracks, setMirrorTracks] = (0, react_1.useState)(true);
|
|
52
|
-
return (react_1.default.createElement(
|
|
53
|
-
react_1.default.createElement(material_1.DialogTitle, null,
|
|
54
|
-
"Breakpoint split view options",
|
|
55
|
-
handleClose ? (react_1.default.createElement(material_1.IconButton, { className: classes.closeButton, onClick: () => handleClose() },
|
|
56
|
-
react_1.default.createElement(Close_1.default, null))) : null),
|
|
57
|
-
react_1.default.createElement(material_1.Divider, null),
|
|
43
|
+
return (react_1.default.createElement(ui_1.Dialog, { open: true, onClose: handleClose, title: "Breakpoint split view options" },
|
|
58
44
|
react_1.default.createElement(material_1.DialogContent, null,
|
|
59
45
|
react_1.default.createElement(material_1.FormControlLabel, { className: classes.block, control: react_1.default.createElement(material_1.Checkbox, { checked: copyTracks, onChange: () => setCopyTracks(val => !val) }), label: "Copy tracks into the new view" }),
|
|
60
46
|
react_1.default.createElement(material_1.FormControlLabel, { className: classes.block, control: react_1.default.createElement(material_1.Checkbox, { checked: mirrorTracks, onChange: () => setMirrorTracks(val => !val) }), label: "Mirror tracks vertically in vertically stacked view" })),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BreakendOptionDialog.js","sourceRoot":"","sources":["../../src/VariantFeatureWidget/BreakendOptionDialog.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"BreakendOptionDialog.js","sourceRoot":"","sources":["../../src/VariantFeatureWidget/BreakendOptionDialog.tsx"],"names":[],"mappings":"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"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Instance } from 'mobx-state-tree';
|
|
2
2
|
import PluginManager from '@jbrowse/core/PluginManager';
|
|
3
3
|
export default function configSchemaF(pluginManager: PluginManager): import("@jbrowse/core/configuration").AnyConfigurationSchemaType;
|
|
4
|
-
export
|
|
5
|
-
export
|
|
4
|
+
export type LinearVariantDisplayConfigModel = ReturnType<typeof configSchemaF>;
|
|
5
|
+
export type LinearVariantDisplayConfig = Instance<LinearVariantDisplayConfigModel>;
|
|
@@ -61,12 +61,8 @@ export default function stateModelFactory(configSchema: LinearVariantDisplayConf
|
|
|
61
61
|
userBpPerPxLimit: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<number>>;
|
|
62
62
|
userByteSizeLimit: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<number>>;
|
|
63
63
|
} & {
|
|
64
|
-
type: import("mobx-state-tree").ISimpleType<"LinearBasicDisplay">;
|
|
65
|
-
|
|
66
|
-
*/
|
|
67
|
-
trackShowLabels: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<boolean>>; /**
|
|
68
|
-
* #property
|
|
69
|
-
*/
|
|
64
|
+
type: import("mobx-state-tree").ISimpleType<"LinearBasicDisplay">;
|
|
65
|
+
trackShowLabels: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<boolean>>;
|
|
70
66
|
trackShowDescriptions: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<boolean>>;
|
|
71
67
|
trackDisplayMode: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<string>>;
|
|
72
68
|
trackMaxHeight: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<number>>;
|
|
@@ -1,18 +1,12 @@
|
|
|
1
1
|
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
2
2
|
import React, { useState } from 'react';
|
|
3
3
|
import { observer } from 'mobx-react';
|
|
4
|
-
import { Button, Checkbox,
|
|
4
|
+
import { Button, Checkbox, DialogActions, DialogContent, FormControlLabel, } from '@mui/material';
|
|
5
|
+
import { Dialog } from '@jbrowse/core/ui';
|
|
5
6
|
import { makeStyles } from 'tss-react/mui';
|
|
6
|
-
import CloseIcon from '@mui/icons-material/Close';
|
|
7
7
|
import { getSnapshot } from 'mobx-state-tree';
|
|
8
8
|
import { getSession } from '@jbrowse/core/util';
|
|
9
9
|
const useStyles = makeStyles()(theme => ({
|
|
10
|
-
closeButton: {
|
|
11
|
-
position: 'absolute',
|
|
12
|
-
right: theme.spacing(1),
|
|
13
|
-
top: theme.spacing(1),
|
|
14
|
-
color: theme.palette.grey[500],
|
|
15
|
-
},
|
|
16
10
|
block: {
|
|
17
11
|
display: 'block',
|
|
18
12
|
},
|
|
@@ -21,12 +15,7 @@ function BreakendOptionDialog({ model, handleClose, feature, viewType, }) {
|
|
|
21
15
|
const { classes } = useStyles();
|
|
22
16
|
const [copyTracks, setCopyTracks] = useState(true);
|
|
23
17
|
const [mirrorTracks, setMirrorTracks] = useState(true);
|
|
24
|
-
return (React.createElement(Dialog, { open: true, onClose: handleClose },
|
|
25
|
-
React.createElement(DialogTitle, null,
|
|
26
|
-
"Breakpoint split view options",
|
|
27
|
-
handleClose ? (React.createElement(IconButton, { className: classes.closeButton, onClick: () => handleClose() },
|
|
28
|
-
React.createElement(CloseIcon, null))) : null),
|
|
29
|
-
React.createElement(Divider, null),
|
|
18
|
+
return (React.createElement(Dialog, { open: true, onClose: handleClose, title: "Breakpoint split view options" },
|
|
30
19
|
React.createElement(DialogContent, null,
|
|
31
20
|
React.createElement(FormControlLabel, { className: classes.block, control: React.createElement(Checkbox, { checked: copyTracks, onChange: () => setCopyTracks(val => !val) }), label: "Copy tracks into the new view" }),
|
|
32
21
|
React.createElement(FormControlLabel, { className: classes.block, control: React.createElement(Checkbox, { checked: mirrorTracks, onChange: () => setMirrorTracks(val => !val) }), label: "Mirror tracks vertically in vertically stacked view" })),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BreakendOptionDialog.js","sourceRoot":"","sources":["../../src/VariantFeatureWidget/BreakendOptionDialog.tsx"],"names":[],"mappings":"AAAA,uDAAuD;AACvD,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AACvC,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAA;AACrC,OAAO,EACL,MAAM,EACN,QAAQ,EACR,
|
|
1
|
+
{"version":3,"file":"BreakendOptionDialog.js","sourceRoot":"","sources":["../../src/VariantFeatureWidget/BreakendOptionDialog.tsx"],"names":[],"mappings":"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"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jbrowse/plugin-variants",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.2",
|
|
4
4
|
"description": "JBrowse 2 variant adapters, tracks, etc.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"jbrowse",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"build": "npm-run-all build:*",
|
|
28
28
|
"test": "cd ../..; jest plugins/variants",
|
|
29
29
|
"prepublishOnly": "yarn test",
|
|
30
|
-
"prepack": "yarn build
|
|
30
|
+
"prepack": "yarn build && yarn useDist",
|
|
31
31
|
"postpack": "yarn useSrc",
|
|
32
32
|
"useDist": "node ../../scripts/useDist.js",
|
|
33
33
|
"useSrc": "node ../../scripts/useSrc.js",
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"@flatten-js/interval-tree": "^1.0.15",
|
|
41
41
|
"@gmod/bgzf-filehandle": "^1.4.3",
|
|
42
42
|
"@gmod/tabix": "^1.5.2",
|
|
43
|
-
"@gmod/vcf": "^5.0.
|
|
43
|
+
"@gmod/vcf": "^5.0.9",
|
|
44
44
|
"@mui/icons-material": "^5.0.2",
|
|
45
45
|
"@mui/x-data-grid": "^5.0.1",
|
|
46
46
|
"generic-filehandle": "^3.0.0"
|
|
@@ -65,5 +65,5 @@
|
|
|
65
65
|
"distModule": "esm/index.js",
|
|
66
66
|
"srcModule": "src/index.ts",
|
|
67
67
|
"module": "esm/index.js",
|
|
68
|
-
"gitHead": "
|
|
68
|
+
"gitHead": "abbc00e8feedbc58de84a7a3e735ec0224909b29"
|
|
69
69
|
}
|
|
@@ -4,26 +4,16 @@ import { observer } from 'mobx-react'
|
|
|
4
4
|
import {
|
|
5
5
|
Button,
|
|
6
6
|
Checkbox,
|
|
7
|
-
Dialog,
|
|
8
7
|
DialogActions,
|
|
9
8
|
DialogContent,
|
|
10
|
-
DialogTitle,
|
|
11
|
-
Divider,
|
|
12
9
|
FormControlLabel,
|
|
13
|
-
IconButton,
|
|
14
10
|
} from '@mui/material'
|
|
11
|
+
import { Dialog } from '@jbrowse/core/ui'
|
|
15
12
|
import { makeStyles } from 'tss-react/mui'
|
|
16
|
-
import CloseIcon from '@mui/icons-material/Close'
|
|
17
13
|
import { getSnapshot } from 'mobx-state-tree'
|
|
18
14
|
import { getSession, Feature } from '@jbrowse/core/util'
|
|
19
15
|
|
|
20
16
|
const useStyles = makeStyles()(theme => ({
|
|
21
|
-
closeButton: {
|
|
22
|
-
position: 'absolute',
|
|
23
|
-
right: theme.spacing(1),
|
|
24
|
-
top: theme.spacing(1),
|
|
25
|
-
color: theme.palette.grey[500],
|
|
26
|
-
},
|
|
27
17
|
block: {
|
|
28
18
|
display: 'block',
|
|
29
19
|
},
|
|
@@ -45,20 +35,7 @@ function BreakendOptionDialog({
|
|
|
45
35
|
const [mirrorTracks, setMirrorTracks] = useState(true)
|
|
46
36
|
|
|
47
37
|
return (
|
|
48
|
-
<Dialog open onClose={handleClose}>
|
|
49
|
-
<DialogTitle>
|
|
50
|
-
Breakpoint split view options
|
|
51
|
-
{handleClose ? (
|
|
52
|
-
<IconButton
|
|
53
|
-
className={classes.closeButton}
|
|
54
|
-
onClick={() => handleClose()}
|
|
55
|
-
>
|
|
56
|
-
<CloseIcon />
|
|
57
|
-
</IconButton>
|
|
58
|
-
) : null}
|
|
59
|
-
</DialogTitle>
|
|
60
|
-
<Divider />
|
|
61
|
-
|
|
38
|
+
<Dialog open onClose={handleClose} title="Breakpoint split view options">
|
|
62
39
|
<DialogContent>
|
|
63
40
|
<FormControlLabel
|
|
64
41
|
className={classes.block}
|
|
@@ -13,13 +13,15 @@ describe('VariantTrack widget', () => {
|
|
|
13
13
|
const pluginManager = new PluginManager([])
|
|
14
14
|
const Session = types.model({
|
|
15
15
|
rpcManager: types.optional(types.frozen(), {}),
|
|
16
|
-
pluginManager: types.optional(types.frozen(), {}),
|
|
17
16
|
configuration: ConfigurationSchema('test', {}),
|
|
18
17
|
widget: stateModelFactory(pluginManager),
|
|
19
18
|
})
|
|
20
|
-
const model = Session.create(
|
|
21
|
-
|
|
22
|
-
|
|
19
|
+
const model = Session.create(
|
|
20
|
+
{
|
|
21
|
+
widget: { type: 'VariantFeatureWidget' },
|
|
22
|
+
},
|
|
23
|
+
{ pluginManager },
|
|
24
|
+
)
|
|
23
25
|
model.widget.setFeatureData({
|
|
24
26
|
refName: 'ctgA',
|
|
25
27
|
start: 176,
|
|
@@ -1,43 +1,43 @@
|
|
|
1
1
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
2
|
|
|
3
3
|
exports[`adapter can fetch variants from volvox.vcf 1`] = `
|
|
4
|
-
|
|
4
|
+
[
|
|
5
5
|
"ctgA",
|
|
6
6
|
]
|
|
7
7
|
`;
|
|
8
8
|
|
|
9
9
|
exports[`adapter can fetch variants from volvox.vcf 2`] = `
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
"ALT":
|
|
10
|
+
[
|
|
11
|
+
{
|
|
12
|
+
"ALT": [
|
|
13
13
|
"C",
|
|
14
14
|
],
|
|
15
15
|
"CHROM": "ctgA",
|
|
16
16
|
"FILTER": null,
|
|
17
17
|
"ID": null,
|
|
18
|
-
"INFO":
|
|
19
|
-
"AC1":
|
|
18
|
+
"INFO": {
|
|
19
|
+
"AC1": [
|
|
20
20
|
2,
|
|
21
21
|
],
|
|
22
|
-
"AF1":
|
|
22
|
+
"AF1": [
|
|
23
23
|
1,
|
|
24
24
|
],
|
|
25
|
-
"DP":
|
|
25
|
+
"DP": [
|
|
26
26
|
3,
|
|
27
27
|
],
|
|
28
|
-
"DP4":
|
|
28
|
+
"DP4": [
|
|
29
29
|
0,
|
|
30
30
|
0,
|
|
31
31
|
3,
|
|
32
32
|
0,
|
|
33
33
|
],
|
|
34
|
-
"FQ":
|
|
34
|
+
"FQ": [
|
|
35
35
|
-36,
|
|
36
36
|
],
|
|
37
|
-
"MQ":
|
|
37
|
+
"MQ": [
|
|
38
38
|
37,
|
|
39
39
|
],
|
|
40
|
-
"VDB":
|
|
40
|
+
"VDB": [
|
|
41
41
|
0.0186,
|
|
42
42
|
],
|
|
43
43
|
},
|
|
@@ -49,15 +49,15 @@ Array [
|
|
|
49
49
|
"end": 277,
|
|
50
50
|
"name": undefined,
|
|
51
51
|
"refName": "ctgA",
|
|
52
|
-
"samples":
|
|
53
|
-
"sample_data/raw/volvox/volvox-sorted.bam":
|
|
54
|
-
"GQ":
|
|
52
|
+
"samples": {
|
|
53
|
+
"sample_data/raw/volvox/volvox-sorted.bam": {
|
|
54
|
+
"GQ": [
|
|
55
55
|
13,
|
|
56
56
|
],
|
|
57
|
-
"GT":
|
|
57
|
+
"GT": [
|
|
58
58
|
"1/1",
|
|
59
59
|
],
|
|
60
|
-
"PL":
|
|
60
|
+
"PL": [
|
|
61
61
|
42,
|
|
62
62
|
9,
|
|
63
63
|
0,
|
|
@@ -68,42 +68,42 @@ Array [
|
|
|
68
68
|
"type": "SNV",
|
|
69
69
|
"uniqueId": "test-0",
|
|
70
70
|
},
|
|
71
|
-
|
|
72
|
-
"ALT":
|
|
71
|
+
{
|
|
72
|
+
"ALT": [
|
|
73
73
|
"C",
|
|
74
74
|
],
|
|
75
75
|
"CHROM": "ctgA",
|
|
76
76
|
"FILTER": null,
|
|
77
77
|
"ID": null,
|
|
78
|
-
"INFO":
|
|
79
|
-
"AC1":
|
|
78
|
+
"INFO": {
|
|
79
|
+
"AC1": [
|
|
80
80
|
2,
|
|
81
81
|
],
|
|
82
|
-
"AF1":
|
|
82
|
+
"AF1": [
|
|
83
83
|
1,
|
|
84
84
|
],
|
|
85
|
-
"DP":
|
|
85
|
+
"DP": [
|
|
86
86
|
23,
|
|
87
87
|
],
|
|
88
|
-
"DP4":
|
|
88
|
+
"DP4": [
|
|
89
89
|
0,
|
|
90
90
|
1,
|
|
91
91
|
8,
|
|
92
92
|
14,
|
|
93
93
|
],
|
|
94
|
-
"FQ":
|
|
94
|
+
"FQ": [
|
|
95
95
|
-73,
|
|
96
96
|
],
|
|
97
|
-
"MQ":
|
|
97
|
+
"MQ": [
|
|
98
98
|
37,
|
|
99
99
|
],
|
|
100
|
-
"PV4":
|
|
100
|
+
"PV4": [
|
|
101
101
|
1,
|
|
102
102
|
1,
|
|
103
103
|
0.42,
|
|
104
104
|
1,
|
|
105
105
|
],
|
|
106
|
-
"VDB":
|
|
106
|
+
"VDB": [
|
|
107
107
|
0.0308,
|
|
108
108
|
],
|
|
109
109
|
},
|
|
@@ -115,15 +115,15 @@ Array [
|
|
|
115
115
|
"end": 1694,
|
|
116
116
|
"name": undefined,
|
|
117
117
|
"refName": "ctgA",
|
|
118
|
-
"samples":
|
|
119
|
-
"sample_data/raw/volvox/volvox-sorted.bam":
|
|
120
|
-
"GQ":
|
|
118
|
+
"samples": {
|
|
119
|
+
"sample_data/raw/volvox/volvox-sorted.bam": {
|
|
120
|
+
"GQ": [
|
|
121
121
|
89,
|
|
122
122
|
],
|
|
123
|
-
"GT":
|
|
123
|
+
"GT": [
|
|
124
124
|
"1/1",
|
|
125
125
|
],
|
|
126
|
-
"PL":
|
|
126
|
+
"PL": [
|
|
127
127
|
140,
|
|
128
128
|
46,
|
|
129
129
|
0,
|
|
@@ -134,42 +134,42 @@ Array [
|
|
|
134
134
|
"type": "SNV",
|
|
135
135
|
"uniqueId": "test-1",
|
|
136
136
|
},
|
|
137
|
-
|
|
138
|
-
"ALT":
|
|
137
|
+
{
|
|
138
|
+
"ALT": [
|
|
139
139
|
"G",
|
|
140
140
|
],
|
|
141
141
|
"CHROM": "ctgA",
|
|
142
142
|
"FILTER": null,
|
|
143
143
|
"ID": null,
|
|
144
|
-
"INFO":
|
|
145
|
-
"AC1":
|
|
144
|
+
"INFO": {
|
|
145
|
+
"AC1": [
|
|
146
146
|
1,
|
|
147
147
|
],
|
|
148
|
-
"AF1":
|
|
148
|
+
"AF1": [
|
|
149
149
|
0.5,
|
|
150
150
|
],
|
|
151
|
-
"DP":
|
|
151
|
+
"DP": [
|
|
152
152
|
22,
|
|
153
153
|
],
|
|
154
|
-
"DP4":
|
|
154
|
+
"DP4": [
|
|
155
155
|
6,
|
|
156
156
|
5,
|
|
157
157
|
3,
|
|
158
158
|
8,
|
|
159
159
|
],
|
|
160
|
-
"FQ":
|
|
160
|
+
"FQ": [
|
|
161
161
|
45.3,
|
|
162
162
|
],
|
|
163
|
-
"MQ":
|
|
163
|
+
"MQ": [
|
|
164
164
|
37,
|
|
165
165
|
],
|
|
166
|
-
"PV4":
|
|
166
|
+
"PV4": [
|
|
167
167
|
0.39,
|
|
168
168
|
1,
|
|
169
169
|
1,
|
|
170
170
|
1,
|
|
171
171
|
],
|
|
172
|
-
"VDB":
|
|
172
|
+
"VDB": [
|
|
173
173
|
0.0253,
|
|
174
174
|
],
|
|
175
175
|
},
|
|
@@ -181,15 +181,15 @@ Array [
|
|
|
181
181
|
"end": 2644,
|
|
182
182
|
"name": undefined,
|
|
183
183
|
"refName": "ctgA",
|
|
184
|
-
"samples":
|
|
185
|
-
"sample_data/raw/volvox/volvox-sorted.bam":
|
|
186
|
-
"GQ":
|
|
184
|
+
"samples": {
|
|
185
|
+
"sample_data/raw/volvox/volvox-sorted.bam": {
|
|
186
|
+
"GQ": [
|
|
187
187
|
75,
|
|
188
188
|
],
|
|
189
|
-
"GT":
|
|
189
|
+
"GT": [
|
|
190
190
|
"0/1",
|
|
191
191
|
],
|
|
192
|
-
"PL":
|
|
192
|
+
"PL": [
|
|
193
193
|
74,
|
|
194
194
|
0,
|
|
195
195
|
77,
|
|
@@ -200,36 +200,36 @@ Array [
|
|
|
200
200
|
"type": "SNV",
|
|
201
201
|
"uniqueId": "test-2",
|
|
202
202
|
},
|
|
203
|
-
|
|
204
|
-
"ALT":
|
|
203
|
+
{
|
|
204
|
+
"ALT": [
|
|
205
205
|
"A",
|
|
206
206
|
],
|
|
207
207
|
"CHROM": "ctgA",
|
|
208
208
|
"FILTER": null,
|
|
209
209
|
"ID": null,
|
|
210
|
-
"INFO":
|
|
211
|
-
"AC1":
|
|
210
|
+
"INFO": {
|
|
211
|
+
"AC1": [
|
|
212
212
|
2,
|
|
213
213
|
],
|
|
214
|
-
"AF1":
|
|
214
|
+
"AF1": [
|
|
215
215
|
1,
|
|
216
216
|
],
|
|
217
|
-
"DP":
|
|
217
|
+
"DP": [
|
|
218
218
|
19,
|
|
219
219
|
],
|
|
220
|
-
"DP4":
|
|
220
|
+
"DP4": [
|
|
221
221
|
0,
|
|
222
222
|
0,
|
|
223
223
|
8,
|
|
224
224
|
11,
|
|
225
225
|
],
|
|
226
|
-
"FQ":
|
|
226
|
+
"FQ": [
|
|
227
227
|
-84,
|
|
228
228
|
],
|
|
229
|
-
"MQ":
|
|
229
|
+
"MQ": [
|
|
230
230
|
36,
|
|
231
231
|
],
|
|
232
|
-
"VDB":
|
|
232
|
+
"VDB": [
|
|
233
233
|
0.0384,
|
|
234
234
|
],
|
|
235
235
|
},
|
|
@@ -241,15 +241,15 @@ Array [
|
|
|
241
241
|
"end": 3213,
|
|
242
242
|
"name": undefined,
|
|
243
243
|
"refName": "ctgA",
|
|
244
|
-
"samples":
|
|
245
|
-
"sample_data/raw/volvox/volvox-sorted.bam":
|
|
246
|
-
"GQ":
|
|
244
|
+
"samples": {
|
|
245
|
+
"sample_data/raw/volvox/volvox-sorted.bam": {
|
|
246
|
+
"GQ": [
|
|
247
247
|
99,
|
|
248
248
|
],
|
|
249
|
-
"GT":
|
|
249
|
+
"GT": [
|
|
250
250
|
"1/1",
|
|
251
251
|
],
|
|
252
|
-
"PL":
|
|
252
|
+
"PL": [
|
|
253
253
|
157,
|
|
254
254
|
57,
|
|
255
255
|
0,
|
|
@@ -260,37 +260,37 @@ Array [
|
|
|
260
260
|
"type": "SNV",
|
|
261
261
|
"uniqueId": "test-3",
|
|
262
262
|
},
|
|
263
|
-
|
|
264
|
-
"ALT":
|
|
263
|
+
{
|
|
264
|
+
"ALT": [
|
|
265
265
|
"ct",
|
|
266
266
|
],
|
|
267
267
|
"CHROM": "ctgA",
|
|
268
268
|
"FILTER": null,
|
|
269
269
|
"ID": null,
|
|
270
|
-
"INFO":
|
|
271
|
-
"AC1":
|
|
270
|
+
"INFO": {
|
|
271
|
+
"AC1": [
|
|
272
272
|
2,
|
|
273
273
|
],
|
|
274
|
-
"AF1":
|
|
274
|
+
"AF1": [
|
|
275
275
|
1,
|
|
276
276
|
],
|
|
277
|
-
"DP":
|
|
277
|
+
"DP": [
|
|
278
278
|
15,
|
|
279
279
|
],
|
|
280
|
-
"DP4":
|
|
280
|
+
"DP4": [
|
|
281
281
|
0,
|
|
282
282
|
0,
|
|
283
283
|
5,
|
|
284
284
|
6,
|
|
285
285
|
],
|
|
286
|
-
"FQ":
|
|
286
|
+
"FQ": [
|
|
287
287
|
-67.5,
|
|
288
288
|
],
|
|
289
289
|
"INDEL": true,
|
|
290
|
-
"MQ":
|
|
290
|
+
"MQ": [
|
|
291
291
|
37,
|
|
292
292
|
],
|
|
293
|
-
"VDB":
|
|
293
|
+
"VDB": [
|
|
294
294
|
0.0384,
|
|
295
295
|
],
|
|
296
296
|
},
|
|
@@ -302,15 +302,15 @@ Array [
|
|
|
302
302
|
"end": 3860,
|
|
303
303
|
"name": undefined,
|
|
304
304
|
"refName": "ctgA",
|
|
305
|
-
"samples":
|
|
306
|
-
"sample_data/raw/volvox/volvox-sorted.bam":
|
|
307
|
-
"GQ":
|
|
305
|
+
"samples": {
|
|
306
|
+
"sample_data/raw/volvox/volvox-sorted.bam": {
|
|
307
|
+
"GQ": [
|
|
308
308
|
63,
|
|
309
309
|
],
|
|
310
|
-
"GT":
|
|
310
|
+
"GT": [
|
|
311
311
|
"1/1",
|
|
312
312
|
],
|
|
313
|
-
"PL":
|
|
313
|
+
"PL": [
|
|
314
314
|
201,
|
|
315
315
|
33,
|
|
316
316
|
0,
|
|
@@ -1,43 +1,43 @@
|
|
|
1
1
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
2
|
|
|
3
3
|
exports[`adapter can fetch variants from volvox.vcf.gz 1`] = `
|
|
4
|
-
|
|
4
|
+
[
|
|
5
5
|
"ctgA",
|
|
6
6
|
]
|
|
7
7
|
`;
|
|
8
8
|
|
|
9
9
|
exports[`adapter can fetch variants from volvox.vcf.gz 2`] = `
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
"ALT":
|
|
10
|
+
[
|
|
11
|
+
{
|
|
12
|
+
"ALT": [
|
|
13
13
|
"C",
|
|
14
14
|
],
|
|
15
15
|
"CHROM": "ctgA",
|
|
16
16
|
"FILTER": null,
|
|
17
17
|
"ID": null,
|
|
18
|
-
"INFO":
|
|
19
|
-
"AC1":
|
|
18
|
+
"INFO": {
|
|
19
|
+
"AC1": [
|
|
20
20
|
2,
|
|
21
21
|
],
|
|
22
|
-
"AF1":
|
|
22
|
+
"AF1": [
|
|
23
23
|
1,
|
|
24
24
|
],
|
|
25
|
-
"DP":
|
|
25
|
+
"DP": [
|
|
26
26
|
3,
|
|
27
27
|
],
|
|
28
|
-
"DP4":
|
|
28
|
+
"DP4": [
|
|
29
29
|
0,
|
|
30
30
|
0,
|
|
31
31
|
3,
|
|
32
32
|
0,
|
|
33
33
|
],
|
|
34
|
-
"FQ":
|
|
34
|
+
"FQ": [
|
|
35
35
|
-36,
|
|
36
36
|
],
|
|
37
|
-
"MQ":
|
|
37
|
+
"MQ": [
|
|
38
38
|
37,
|
|
39
39
|
],
|
|
40
|
-
"VDB":
|
|
40
|
+
"VDB": [
|
|
41
41
|
0.0186,
|
|
42
42
|
],
|
|
43
43
|
},
|
|
@@ -49,15 +49,15 @@ Array [
|
|
|
49
49
|
"end": 277,
|
|
50
50
|
"name": undefined,
|
|
51
51
|
"refName": "ctgA",
|
|
52
|
-
"samples":
|
|
53
|
-
"sample_data/raw/volvox/volvox-sorted.bam":
|
|
54
|
-
"GQ":
|
|
52
|
+
"samples": {
|
|
53
|
+
"sample_data/raw/volvox/volvox-sorted.bam": {
|
|
54
|
+
"GQ": [
|
|
55
55
|
13,
|
|
56
56
|
],
|
|
57
|
-
"GT":
|
|
57
|
+
"GT": [
|
|
58
58
|
"1/1",
|
|
59
59
|
],
|
|
60
|
-
"PL":
|
|
60
|
+
"PL": [
|
|
61
61
|
42,
|
|
62
62
|
9,
|
|
63
63
|
0,
|
|
@@ -68,42 +68,42 @@ Array [
|
|
|
68
68
|
"type": "SNV",
|
|
69
69
|
"uniqueId": "test-vcf-604452",
|
|
70
70
|
},
|
|
71
|
-
|
|
72
|
-
"ALT":
|
|
71
|
+
{
|
|
72
|
+
"ALT": [
|
|
73
73
|
"C",
|
|
74
74
|
],
|
|
75
75
|
"CHROM": "ctgA",
|
|
76
76
|
"FILTER": null,
|
|
77
77
|
"ID": null,
|
|
78
|
-
"INFO":
|
|
79
|
-
"AC1":
|
|
78
|
+
"INFO": {
|
|
79
|
+
"AC1": [
|
|
80
80
|
2,
|
|
81
81
|
],
|
|
82
|
-
"AF1":
|
|
82
|
+
"AF1": [
|
|
83
83
|
1,
|
|
84
84
|
],
|
|
85
|
-
"DP":
|
|
85
|
+
"DP": [
|
|
86
86
|
23,
|
|
87
87
|
],
|
|
88
|
-
"DP4":
|
|
88
|
+
"DP4": [
|
|
89
89
|
0,
|
|
90
90
|
1,
|
|
91
91
|
8,
|
|
92
92
|
14,
|
|
93
93
|
],
|
|
94
|
-
"FQ":
|
|
94
|
+
"FQ": [
|
|
95
95
|
-73,
|
|
96
96
|
],
|
|
97
|
-
"MQ":
|
|
97
|
+
"MQ": [
|
|
98
98
|
37,
|
|
99
99
|
],
|
|
100
|
-
"PV4":
|
|
100
|
+
"PV4": [
|
|
101
101
|
1,
|
|
102
102
|
1,
|
|
103
103
|
0.42,
|
|
104
104
|
1,
|
|
105
105
|
],
|
|
106
|
-
"VDB":
|
|
106
|
+
"VDB": [
|
|
107
107
|
0.0308,
|
|
108
108
|
],
|
|
109
109
|
},
|
|
@@ -115,15 +115,15 @@ Array [
|
|
|
115
115
|
"end": 1694,
|
|
116
116
|
"name": undefined,
|
|
117
117
|
"refName": "ctgA",
|
|
118
|
-
"samples":
|
|
119
|
-
"sample_data/raw/volvox/volvox-sorted.bam":
|
|
120
|
-
"GQ":
|
|
118
|
+
"samples": {
|
|
119
|
+
"sample_data/raw/volvox/volvox-sorted.bam": {
|
|
120
|
+
"GQ": [
|
|
121
121
|
89,
|
|
122
122
|
],
|
|
123
|
-
"GT":
|
|
123
|
+
"GT": [
|
|
124
124
|
"1/1",
|
|
125
125
|
],
|
|
126
|
-
"PL":
|
|
126
|
+
"PL": [
|
|
127
127
|
140,
|
|
128
128
|
46,
|
|
129
129
|
0,
|
|
@@ -134,42 +134,42 @@ Array [
|
|
|
134
134
|
"type": "SNV",
|
|
135
135
|
"uniqueId": "test-vcf-604550",
|
|
136
136
|
},
|
|
137
|
-
|
|
138
|
-
"ALT":
|
|
137
|
+
{
|
|
138
|
+
"ALT": [
|
|
139
139
|
"G",
|
|
140
140
|
],
|
|
141
141
|
"CHROM": "ctgA",
|
|
142
142
|
"FILTER": null,
|
|
143
143
|
"ID": null,
|
|
144
|
-
"INFO":
|
|
145
|
-
"AC1":
|
|
144
|
+
"INFO": {
|
|
145
|
+
"AC1": [
|
|
146
146
|
1,
|
|
147
147
|
],
|
|
148
|
-
"AF1":
|
|
148
|
+
"AF1": [
|
|
149
149
|
0.5,
|
|
150
150
|
],
|
|
151
|
-
"DP":
|
|
151
|
+
"DP": [
|
|
152
152
|
22,
|
|
153
153
|
],
|
|
154
|
-
"DP4":
|
|
154
|
+
"DP4": [
|
|
155
155
|
6,
|
|
156
156
|
5,
|
|
157
157
|
3,
|
|
158
158
|
8,
|
|
159
159
|
],
|
|
160
|
-
"FQ":
|
|
160
|
+
"FQ": [
|
|
161
161
|
45.3,
|
|
162
162
|
],
|
|
163
|
-
"MQ":
|
|
163
|
+
"MQ": [
|
|
164
164
|
37,
|
|
165
165
|
],
|
|
166
|
-
"PV4":
|
|
166
|
+
"PV4": [
|
|
167
167
|
0.39,
|
|
168
168
|
1,
|
|
169
169
|
1,
|
|
170
170
|
1,
|
|
171
171
|
],
|
|
172
|
-
"VDB":
|
|
172
|
+
"VDB": [
|
|
173
173
|
0.0253,
|
|
174
174
|
],
|
|
175
175
|
},
|
|
@@ -181,15 +181,15 @@ Array [
|
|
|
181
181
|
"end": 2644,
|
|
182
182
|
"name": undefined,
|
|
183
183
|
"refName": "ctgA",
|
|
184
|
-
"samples":
|
|
185
|
-
"sample_data/raw/volvox/volvox-sorted.bam":
|
|
186
|
-
"GQ":
|
|
184
|
+
"samples": {
|
|
185
|
+
"sample_data/raw/volvox/volvox-sorted.bam": {
|
|
186
|
+
"GQ": [
|
|
187
187
|
75,
|
|
188
188
|
],
|
|
189
|
-
"GT":
|
|
189
|
+
"GT": [
|
|
190
190
|
"0/1",
|
|
191
191
|
],
|
|
192
|
-
"PL":
|
|
192
|
+
"PL": [
|
|
193
193
|
74,
|
|
194
194
|
0,
|
|
195
195
|
77,
|
|
@@ -200,36 +200,36 @@ Array [
|
|
|
200
200
|
"type": "SNV",
|
|
201
201
|
"uniqueId": "test-vcf-604667",
|
|
202
202
|
},
|
|
203
|
-
|
|
204
|
-
"ALT":
|
|
203
|
+
{
|
|
204
|
+
"ALT": [
|
|
205
205
|
"A",
|
|
206
206
|
],
|
|
207
207
|
"CHROM": "ctgA",
|
|
208
208
|
"FILTER": null,
|
|
209
209
|
"ID": null,
|
|
210
|
-
"INFO":
|
|
211
|
-
"AC1":
|
|
210
|
+
"INFO": {
|
|
211
|
+
"AC1": [
|
|
212
212
|
2,
|
|
213
213
|
],
|
|
214
|
-
"AF1":
|
|
214
|
+
"AF1": [
|
|
215
215
|
1,
|
|
216
216
|
],
|
|
217
|
-
"DP":
|
|
217
|
+
"DP": [
|
|
218
218
|
19,
|
|
219
219
|
],
|
|
220
|
-
"DP4":
|
|
220
|
+
"DP4": [
|
|
221
221
|
0,
|
|
222
222
|
0,
|
|
223
223
|
8,
|
|
224
224
|
11,
|
|
225
225
|
],
|
|
226
|
-
"FQ":
|
|
226
|
+
"FQ": [
|
|
227
227
|
-84,
|
|
228
228
|
],
|
|
229
|
-
"MQ":
|
|
229
|
+
"MQ": [
|
|
230
230
|
36,
|
|
231
231
|
],
|
|
232
|
-
"VDB":
|
|
232
|
+
"VDB": [
|
|
233
233
|
0.0384,
|
|
234
234
|
],
|
|
235
235
|
},
|
|
@@ -241,15 +241,15 @@ Array [
|
|
|
241
241
|
"end": 3213,
|
|
242
242
|
"name": undefined,
|
|
243
243
|
"refName": "ctgA",
|
|
244
|
-
"samples":
|
|
245
|
-
"sample_data/raw/volvox/volvox-sorted.bam":
|
|
246
|
-
"GQ":
|
|
244
|
+
"samples": {
|
|
245
|
+
"sample_data/raw/volvox/volvox-sorted.bam": {
|
|
246
|
+
"GQ": [
|
|
247
247
|
99,
|
|
248
248
|
],
|
|
249
|
-
"GT":
|
|
249
|
+
"GT": [
|
|
250
250
|
"1/1",
|
|
251
251
|
],
|
|
252
|
-
"PL":
|
|
252
|
+
"PL": [
|
|
253
253
|
157,
|
|
254
254
|
57,
|
|
255
255
|
0,
|
|
@@ -260,37 +260,37 @@ Array [
|
|
|
260
260
|
"type": "SNV",
|
|
261
261
|
"uniqueId": "test-vcf-604784",
|
|
262
262
|
},
|
|
263
|
-
|
|
264
|
-
"ALT":
|
|
263
|
+
{
|
|
264
|
+
"ALT": [
|
|
265
265
|
"ct",
|
|
266
266
|
],
|
|
267
267
|
"CHROM": "ctgA",
|
|
268
268
|
"FILTER": null,
|
|
269
269
|
"ID": null,
|
|
270
|
-
"INFO":
|
|
271
|
-
"AC1":
|
|
270
|
+
"INFO": {
|
|
271
|
+
"AC1": [
|
|
272
272
|
2,
|
|
273
273
|
],
|
|
274
|
-
"AF1":
|
|
274
|
+
"AF1": [
|
|
275
275
|
1,
|
|
276
276
|
],
|
|
277
|
-
"DP":
|
|
277
|
+
"DP": [
|
|
278
278
|
15,
|
|
279
279
|
],
|
|
280
|
-
"DP4":
|
|
280
|
+
"DP4": [
|
|
281
281
|
0,
|
|
282
282
|
0,
|
|
283
283
|
5,
|
|
284
284
|
6,
|
|
285
285
|
],
|
|
286
|
-
"FQ":
|
|
286
|
+
"FQ": [
|
|
287
287
|
-67.5,
|
|
288
288
|
],
|
|
289
289
|
"INDEL": true,
|
|
290
|
-
"MQ":
|
|
290
|
+
"MQ": [
|
|
291
291
|
37,
|
|
292
292
|
],
|
|
293
|
-
"VDB":
|
|
293
|
+
"VDB": [
|
|
294
294
|
0.0384,
|
|
295
295
|
],
|
|
296
296
|
},
|
|
@@ -302,15 +302,15 @@ Array [
|
|
|
302
302
|
"end": 3860,
|
|
303
303
|
"name": undefined,
|
|
304
304
|
"refName": "ctgA",
|
|
305
|
-
"samples":
|
|
306
|
-
"sample_data/raw/volvox/volvox-sorted.bam":
|
|
307
|
-
"GQ":
|
|
305
|
+
"samples": {
|
|
306
|
+
"sample_data/raw/volvox/volvox-sorted.bam": {
|
|
307
|
+
"GQ": [
|
|
308
308
|
63,
|
|
309
309
|
],
|
|
310
|
-
"GT":
|
|
310
|
+
"GT": [
|
|
311
311
|
"1/1",
|
|
312
312
|
],
|
|
313
|
-
"PL":
|
|
313
|
+
"PL": [
|
|
314
314
|
201,
|
|
315
315
|
33,
|
|
316
316
|
0,
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
2
|
|
|
3
|
-
exports[`plugin in a stock JBrowse 1`] = `
|
|
3
|
+
exports[`plugin in a stock JBrowse 1`] = `{}`;
|
|
4
4
|
|
|
5
5
|
exports[`plugin in a stock JBrowse 2`] = `
|
|
6
|
-
|
|
7
|
-
"displays":
|
|
8
|
-
|
|
6
|
+
{
|
|
7
|
+
"displays": [
|
|
8
|
+
{
|
|
9
9
|
"displayId": "trackId0-LinearVariantDisplay",
|
|
10
10
|
"type": "LinearVariantDisplay",
|
|
11
11
|
},
|
|
12
|
-
|
|
12
|
+
{
|
|
13
13
|
"displayId": "trackId0-ChordVariantDisplay",
|
|
14
14
|
"type": "ChordVariantDisplay",
|
|
15
15
|
},
|