@jbrowse/plugin-alignments 2.9.0 → 2.10.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/LinearAlignmentsDisplay/models/alignmentsModel.d.ts +15 -0
- package/dist/LinearAlignmentsDisplay/models/alignmentsModel.js +50 -0
- package/dist/LinearAlignmentsDisplay/models/model.d.ts +9 -4
- package/dist/LinearAlignmentsDisplay/models/model.js +11 -51
- package/dist/LinearAlignmentsDisplay/models/util.d.ts +2 -0
- package/dist/LinearAlignmentsDisplay/models/util.js +12 -0
- package/dist/LinearPileupDisplay/model.d.ts +25 -33
- package/dist/LinearPileupDisplay/model.js +3 -2
- package/dist/LinearReadArcsDisplay/model.d.ts +22 -13
- package/dist/LinearReadArcsDisplay/model.js +6 -2
- package/dist/LinearReadCloudDisplay/model.d.ts +15 -15
- package/dist/LinearReadCloudDisplay/model.js +5 -1
- package/dist/LinearSNPCoverageDisplay/models/configSchema.d.ts +3 -4
- package/dist/LinearSNPCoverageDisplay/models/configSchema.js +3 -0
- package/dist/LinearSNPCoverageDisplay/models/model.d.ts +8 -11
- package/dist/LinearSNPCoverageDisplay/models/model.js +2 -1
- package/dist/PileupRenderer/PileupRenderer.js +26 -3
- package/esm/LinearAlignmentsDisplay/models/alignmentsModel.d.ts +15 -0
- package/esm/LinearAlignmentsDisplay/models/alignmentsModel.js +46 -0
- package/esm/LinearAlignmentsDisplay/models/model.d.ts +9 -4
- package/esm/LinearAlignmentsDisplay/models/model.js +11 -51
- package/esm/LinearAlignmentsDisplay/models/util.d.ts +2 -0
- package/esm/LinearAlignmentsDisplay/models/util.js +8 -0
- package/esm/LinearPileupDisplay/model.d.ts +25 -33
- package/esm/LinearPileupDisplay/model.js +3 -2
- package/esm/LinearReadArcsDisplay/model.d.ts +22 -13
- package/esm/LinearReadArcsDisplay/model.js +6 -2
- package/esm/LinearReadCloudDisplay/model.d.ts +15 -15
- package/esm/LinearReadCloudDisplay/model.js +5 -1
- package/esm/LinearSNPCoverageDisplay/models/configSchema.d.ts +3 -4
- package/esm/LinearSNPCoverageDisplay/models/configSchema.js +3 -0
- package/esm/LinearSNPCoverageDisplay/models/model.d.ts +8 -11
- package/esm/LinearSNPCoverageDisplay/models/model.js +2 -1
- package/esm/PileupRenderer/PileupRenderer.js +2 -2
- package/package.json +3 -3
|
@@ -5,7 +5,11 @@ import { IFilter } from '../shared';
|
|
|
5
5
|
import { ChainData } from '../shared/fetchChains';
|
|
6
6
|
/**
|
|
7
7
|
* #stateModel LinearReadCloudDisplay
|
|
8
|
-
*
|
|
8
|
+
* it is not a block based track, hence not BaseLinearDisplay
|
|
9
|
+
* extends
|
|
10
|
+
* - [BaseDisplay](../basedisplay)
|
|
11
|
+
* - [TrackHeightMixin](../trackheightmixin)
|
|
12
|
+
* - [FeatureDensityMixin](../featuredensitymixin)
|
|
9
13
|
*/
|
|
10
14
|
declare function stateModelFactory(configSchema: AnyConfigurationSchemaType): import("mobx-state-tree").IModelType<{
|
|
11
15
|
id: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
@@ -51,11 +55,12 @@ declare function stateModelFactory(configSchema: AnyConfigurationSchemaType): im
|
|
|
51
55
|
} & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
|
|
52
56
|
id: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
53
57
|
type: import("mobx-state-tree").ISimpleType<string>;
|
|
54
|
-
|
|
55
|
-
}, {
|
|
56
|
-
rendererTypeName: string; /**
|
|
58
|
+
/**
|
|
57
59
|
* #property
|
|
58
60
|
*/
|
|
61
|
+
rpcDriverName: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<string>>;
|
|
62
|
+
}, {
|
|
63
|
+
rendererTypeName: string;
|
|
59
64
|
error: unknown;
|
|
60
65
|
message: string | undefined;
|
|
61
66
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>;
|
|
@@ -72,11 +77,7 @@ declare function stateModelFactory(configSchema: AnyConfigurationSchemaType): im
|
|
|
72
77
|
error: unknown;
|
|
73
78
|
message: string | undefined;
|
|
74
79
|
} & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
|
|
75
|
-
id: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
76
|
-
* #action
|
|
77
|
-
* internal, a reference to a HTMLCanvas because we use a autorun to draw
|
|
78
|
-
* the canvas
|
|
79
|
-
*/
|
|
80
|
+
id: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
80
81
|
type: import("mobx-state-tree").ISimpleType<string>;
|
|
81
82
|
rpcDriverName: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<string>>;
|
|
82
83
|
}, {
|
|
@@ -105,9 +106,7 @@ declare function stateModelFactory(configSchema: AnyConfigurationSchemaType): im
|
|
|
105
106
|
} & {
|
|
106
107
|
setScrollTop(scrollTop: number): void;
|
|
107
108
|
setHeight(displayHeight: number): number;
|
|
108
|
-
resizeHeight(distance: number): number;
|
|
109
|
-
* #property
|
|
110
|
-
*/
|
|
109
|
+
resizeHeight(distance: number): number;
|
|
111
110
|
} & {
|
|
112
111
|
featureDensityStatsP: Promise<import("@jbrowse/core/data_adapters/BaseAdapter").FeatureDensityStats> | undefined;
|
|
113
112
|
featureDensityStats: import("@jbrowse/core/data_adapters/BaseAdapter").FeatureDensityStats | undefined;
|
|
@@ -124,15 +123,16 @@ declare function stateModelFactory(configSchema: AnyConfigurationSchemaType): im
|
|
|
124
123
|
setCurrStatsBpPerPx(n: number): void;
|
|
125
124
|
setFeatureDensityStatsLimit(stats?: import("@jbrowse/core/data_adapters/BaseAdapter").FeatureDensityStats | undefined): void;
|
|
126
125
|
getFeatureDensityStats(): Promise<import("@jbrowse/core/data_adapters/BaseAdapter").FeatureDensityStats>;
|
|
127
|
-
setFeatureDensityStatsP(arg: any): void;
|
|
128
|
-
* #method
|
|
129
|
-
*/
|
|
126
|
+
setFeatureDensityStatsP(arg: any): void;
|
|
130
127
|
setFeatureDensityStats(featureDensityStats?: import("@jbrowse/core/data_adapters/BaseAdapter").FeatureDensityStats | undefined): void;
|
|
131
128
|
clearFeatureDensityStats(): void;
|
|
132
129
|
} & {
|
|
133
130
|
readonly regionTooLarge: boolean;
|
|
134
131
|
readonly regionTooLargeReason: string;
|
|
135
132
|
} & {
|
|
133
|
+
/**
|
|
134
|
+
* #method
|
|
135
|
+
*/
|
|
136
136
|
regionCannotBeRenderedText(_region: import("@jbrowse/core/util").Region): "" | "Force load to see features";
|
|
137
137
|
regionCannotBeRendered(_region: import("@jbrowse/core/util").Region): React.JSX.Element | null;
|
|
138
138
|
} & {
|
|
@@ -13,7 +13,11 @@ import { FilterModel } from '../shared';
|
|
|
13
13
|
const FilterByTagDlg = lazy(() => import('../shared/FilterByTag'));
|
|
14
14
|
/**
|
|
15
15
|
* #stateModel LinearReadCloudDisplay
|
|
16
|
-
*
|
|
16
|
+
* it is not a block based track, hence not BaseLinearDisplay
|
|
17
|
+
* extends
|
|
18
|
+
* - [BaseDisplay](../basedisplay)
|
|
19
|
+
* - [TrackHeightMixin](../trackheightmixin)
|
|
20
|
+
* - [FeatureDensityMixin](../featuredensitymixin)
|
|
17
21
|
*/
|
|
18
22
|
function stateModelFactory(configSchema) {
|
|
19
23
|
return types
|
|
@@ -62,15 +62,14 @@ export default function SNPCoverageConfigFactory(pluginManager: PluginManager):
|
|
|
62
62
|
defaultValue: number;
|
|
63
63
|
};
|
|
64
64
|
fetchSizeLimit: {
|
|
65
|
-
/**
|
|
66
|
-
* #slot
|
|
67
|
-
*/
|
|
68
65
|
type: string;
|
|
69
66
|
defaultValue: number;
|
|
70
67
|
description: string;
|
|
71
68
|
};
|
|
72
69
|
height: {
|
|
73
|
-
type: string;
|
|
70
|
+
type: string; /**
|
|
71
|
+
* #slot
|
|
72
|
+
*/
|
|
74
73
|
defaultValue: number;
|
|
75
74
|
description: string;
|
|
76
75
|
};
|
|
@@ -3,6 +3,9 @@ import { baseLinearDisplayConfigSchema } from '@jbrowse/plugin-linear-genome-vie
|
|
|
3
3
|
import { types } from 'mobx-state-tree';
|
|
4
4
|
/**
|
|
5
5
|
* #config LinearSNPCoverageDisplay
|
|
6
|
+
*
|
|
7
|
+
* extends
|
|
8
|
+
* - [BaseLinearDisplay](../baselineardisplay)
|
|
6
9
|
*/
|
|
7
10
|
function x() { } // eslint-disable-line @typescript-eslint/no-unused-vars
|
|
8
11
|
export default function SNPCoverageConfigFactory(pluginManager) {
|
|
@@ -3,7 +3,8 @@ import PluginManager from '@jbrowse/core/PluginManager';
|
|
|
3
3
|
import { AnyConfigurationSchemaType } from '@jbrowse/core/configuration';
|
|
4
4
|
/**
|
|
5
5
|
* #stateModel LinearSNPCoverageDisplay
|
|
6
|
-
* extends
|
|
6
|
+
* extends
|
|
7
|
+
* - [LinearWiggleDisplay](../linearwiggledisplay)
|
|
7
8
|
*/
|
|
8
9
|
declare function stateModelFactory(pluginManager: PluginManager, configSchema: AnyConfigurationSchemaType): import("mobx-state-tree").IModelType<{
|
|
9
10
|
id: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
@@ -19,9 +20,7 @@ declare function stateModelFactory(pluginManager: PluginManager, configSchema: A
|
|
|
19
20
|
key: import("mobx-state-tree").ISimpleType<string>;
|
|
20
21
|
region: import("mobx-state-tree").IModelType<{
|
|
21
22
|
refName: import("mobx-state-tree").ISimpleType<string>;
|
|
22
|
-
start: import("mobx-state-tree").ISimpleType<number>;
|
|
23
|
-
* #property
|
|
24
|
-
*/
|
|
23
|
+
start: import("mobx-state-tree").ISimpleType<number>;
|
|
25
24
|
end: import("mobx-state-tree").ISimpleType<number>;
|
|
26
25
|
reversed: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<boolean>, [undefined]>;
|
|
27
26
|
} & {
|
|
@@ -37,9 +36,7 @@ declare function stateModelFactory(pluginManager: PluginManager, configSchema: A
|
|
|
37
36
|
filled: boolean;
|
|
38
37
|
reactElement: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
|
|
39
38
|
features: Map<string, import("@jbrowse/core/util").Feature> | undefined;
|
|
40
|
-
layout: any;
|
|
41
|
-
* #property
|
|
42
|
-
*/
|
|
39
|
+
layout: any;
|
|
43
40
|
status: string;
|
|
44
41
|
error: unknown;
|
|
45
42
|
message: string | undefined;
|
|
@@ -85,9 +82,7 @@ declare function stateModelFactory(pluginManager: PluginManager, configSchema: A
|
|
|
85
82
|
type: string;
|
|
86
83
|
description: string;
|
|
87
84
|
defaultValue: string;
|
|
88
|
-
contextVariable: string[];
|
|
89
|
-
* #property
|
|
90
|
-
*/
|
|
85
|
+
contextVariable: string[];
|
|
91
86
|
};
|
|
92
87
|
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, "displayId">>;
|
|
93
88
|
} & {
|
|
@@ -133,7 +128,9 @@ declare function stateModelFactory(pluginManager: PluginManager, configSchema: A
|
|
|
133
128
|
filterBy: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IModelType<{
|
|
134
129
|
flagInclude: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<number>, [undefined]>;
|
|
135
130
|
flagExclude: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<number>, [undefined]>;
|
|
136
|
-
readName: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<string>>;
|
|
131
|
+
readName: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<string>>; /**
|
|
132
|
+
* #property
|
|
133
|
+
*/
|
|
137
134
|
tagFilter: import("mobx-state-tree").IMaybe<import("mobx-state-tree").IModelType<{
|
|
138
135
|
tag: import("mobx-state-tree").ISimpleType<string>;
|
|
139
136
|
value: import("mobx-state-tree").ISimpleType<string>;
|
|
@@ -13,7 +13,8 @@ import { randomColor } from '../../util';
|
|
|
13
13
|
const rendererTypes = new Map([['snpcoverage', 'SNPCoverageRenderer']]);
|
|
14
14
|
/**
|
|
15
15
|
* #stateModel LinearSNPCoverageDisplay
|
|
16
|
-
* extends
|
|
16
|
+
* extends
|
|
17
|
+
* - [LinearWiggleDisplay](../linearwiggledisplay)
|
|
17
18
|
*/
|
|
18
19
|
function stateModelFactory(pluginManager, configSchema) {
|
|
19
20
|
return types
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import BoxRendererType from '@jbrowse/core/pluggableElementTypes/renderers/BoxRendererType';
|
|
2
2
|
import { notEmpty, renderToAbstractCanvas, } from '@jbrowse/core/util';
|
|
3
|
+
import { readConfObject } from '@jbrowse/core/configuration';
|
|
3
4
|
import { getAdapter } from '@jbrowse/core/data_adapters/dataAdapterCache';
|
|
4
5
|
import { PileupLayoutSession, } from './PileupLayoutSession';
|
|
5
6
|
// locals
|
|
6
7
|
import { fetchSequence, shouldFetchReferenceSequence } from '../util';
|
|
7
8
|
import { layoutFeats } from './layoutFeatures';
|
|
8
|
-
import { makeImageData } from './makeImageData';
|
|
9
|
-
import { readConfObject } from '@jbrowse/core/configuration';
|
|
10
9
|
export default class PileupRenderer extends BoxRendererType {
|
|
11
10
|
constructor() {
|
|
12
11
|
super(...arguments);
|
|
@@ -53,6 +52,7 @@ export default class PileupRenderer extends BoxRendererType {
|
|
|
53
52
|
: undefined;
|
|
54
53
|
const width = (region.end - region.start) / bpPerPx;
|
|
55
54
|
const height = Math.max(layout.getTotalHeight(), 1);
|
|
55
|
+
const { makeImageData } = await import('./makeImageData');
|
|
56
56
|
const res = await renderToAbstractCanvas(width, height, renderProps, ctx => makeImageData({
|
|
57
57
|
ctx,
|
|
58
58
|
layoutRecords: layoutRecords.filter(notEmpty),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jbrowse/plugin-alignments",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.10.1",
|
|
4
4
|
"description": "JBrowse 2 alignments adapters, tracks, etc.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"jbrowse",
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
39
|
"@gmod/bam": "^2.0.0",
|
|
40
|
-
"@gmod/cram": "^
|
|
40
|
+
"@gmod/cram": "^2.0.0",
|
|
41
41
|
"@mui/icons-material": "^5.0.1",
|
|
42
42
|
"canvas2svg": "^1.0.16",
|
|
43
43
|
"clone": "^2.1.2",
|
|
@@ -63,5 +63,5 @@
|
|
|
63
63
|
"distModule": "esm/index.js",
|
|
64
64
|
"srcModule": "src/index.ts",
|
|
65
65
|
"module": "esm/index.js",
|
|
66
|
-
"gitHead": "
|
|
66
|
+
"gitHead": "442b5f87efddfdf4ccf520b4d9dd01ddd370cb07"
|
|
67
67
|
}
|