@jbrowse/plugin-gccontent 3.7.0 → 4.0.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.
Files changed (44) hide show
  1. package/esm/GCContentAdapter/GCContentAdapter.d.ts +3 -2
  2. package/esm/GCContentAdapter/GCContentAdapter.js +103 -103
  3. package/esm/GCContentAdapter/configSchema.d.ts +2 -2
  4. package/esm/GCContentAdapter/index.js +2 -2
  5. package/esm/GCContentTrack/configSchema.d.ts +16 -11
  6. package/esm/GCContentTrack/index.js +17 -2
  7. package/esm/LinearGCContentDisplay/components/EditGCContentParams.js +1 -1
  8. package/esm/LinearGCContentDisplay/config1.d.ts +2 -2
  9. package/esm/LinearGCContentDisplay/config2.d.ts +2 -2
  10. package/esm/LinearGCContentDisplay/index.js +10 -7
  11. package/esm/LinearGCContentDisplay/shared.d.ts +1057 -106
  12. package/esm/LinearGCContentDisplay/shared.js +4 -6
  13. package/esm/LinearGCContentDisplay/stateModel1.d.ts +1024 -107
  14. package/esm/LinearGCContentDisplay/stateModel1.js +2 -2
  15. package/esm/LinearGCContentDisplay/stateModel2.d.ts +1024 -107
  16. package/esm/LinearGCContentDisplay/stateModel2.js +2 -2
  17. package/esm/index.js +4 -7
  18. package/package.json +27 -32
  19. package/dist/GCContentAdapter/GCContentAdapter.d.ts +0 -10
  20. package/dist/GCContentAdapter/GCContentAdapter.js +0 -132
  21. package/dist/GCContentAdapter/configSchema.d.ts +0 -16
  22. package/dist/GCContentAdapter/configSchema.js +0 -21
  23. package/dist/GCContentAdapter/index.d.ts +0 -2
  24. package/dist/GCContentAdapter/index.js +0 -52
  25. package/dist/GCContentTrack/configSchema.d.ts +0 -80
  26. package/dist/GCContentTrack/configSchema.js +0 -9
  27. package/dist/GCContentTrack/index.d.ts +0 -2
  28. package/dist/GCContentTrack/index.js +0 -20
  29. package/dist/LinearGCContentDisplay/components/EditGCContentParams.d.ts +0 -12
  30. package/dist/LinearGCContentDisplay/components/EditGCContentParams.js +0 -25
  31. package/dist/LinearGCContentDisplay/config1.d.ts +0 -11
  32. package/dist/LinearGCContentDisplay/config1.js +0 -20
  33. package/dist/LinearGCContentDisplay/config2.d.ts +0 -11
  34. package/dist/LinearGCContentDisplay/config2.js +0 -20
  35. package/dist/LinearGCContentDisplay/index.d.ts +0 -2
  36. package/dist/LinearGCContentDisplay/index.js +0 -40
  37. package/dist/LinearGCContentDisplay/shared.d.ts +0 -442
  38. package/dist/LinearGCContentDisplay/shared.js +0 -96
  39. package/dist/LinearGCContentDisplay/stateModel1.d.ts +0 -444
  40. package/dist/LinearGCContentDisplay/stateModel1.js +0 -13
  41. package/dist/LinearGCContentDisplay/stateModel2.d.ts +0 -444
  42. package/dist/LinearGCContentDisplay/stateModel2.js +0 -13
  43. package/dist/index.d.ts +0 -6
  44. package/dist/index.js +0 -21
@@ -1,5 +1,5 @@
1
- import { types } from 'mobx-state-tree';
2
- import SharedModelF from './shared';
1
+ import { types } from '@jbrowse/mobx-state-tree';
2
+ import SharedModelF from "./shared.js";
3
3
  export default function stateModelF(pluginManager, configSchema) {
4
4
  return types.compose('LinearGCContentTrackDisplay', SharedModelF(pluginManager, configSchema), types.model({
5
5
  type: types.literal('LinearGCContentTrackDisplay'),
package/esm/index.js CHANGED
@@ -1,12 +1,9 @@
1
1
  import Plugin from '@jbrowse/core/Plugin';
2
- import GCContentAdapterF from './GCContentAdapter';
3
- import GCContentTrackF from './GCContentTrack';
4
- import LinearGCContentDisplayF from './LinearGCContentDisplay';
2
+ import GCContentAdapterF from "./GCContentAdapter/index.js";
3
+ import GCContentTrackF from "./GCContentTrack/index.js";
4
+ import LinearGCContentDisplayF from "./LinearGCContentDisplay/index.js";
5
5
  export default class GCContentPlugin extends Plugin {
6
- constructor() {
7
- super(...arguments);
8
- this.name = 'GCContentPlugin';
9
- }
6
+ name = 'GCContentPlugin';
10
7
  install(pluginManager) {
11
8
  GCContentAdapterF(pluginManager);
12
9
  GCContentTrackF(pluginManager);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jbrowse/plugin-gccontent",
3
- "version": "3.7.0",
3
+ "version": "4.0.1",
4
4
  "description": "JBrowse 2 gccontent concepts",
5
5
  "keywords": [
6
6
  "jbrowse",
@@ -15,36 +15,20 @@
15
15
  "directory": "plugins/gccontent"
16
16
  },
17
17
  "author": "JBrowse Team",
18
- "distMain": "dist/index.js",
19
- "srcMain": "src/index.ts",
20
- "main": "dist/index.js",
18
+ "main": "esm/index.js",
21
19
  "files": [
22
- "dist",
23
20
  "esm"
24
21
  ],
25
- "scripts": {
26
- "build": "npm-run-all build:*",
27
- "test": "echo hi",
28
- "prepublishOnly": "yarn test",
29
- "prepack": "yarn build && yarn useDist",
30
- "postpack": "yarn useSrc",
31
- "useDist": "node ../../scripts/useDist.js",
32
- "useSrc": "node ../../scripts/useSrc.js",
33
- "prebuild": "npm run clean",
34
- "build:esm": "tsc --build tsconfig.build.esm.json",
35
- "build:commonjs": "tsc --build tsconfig.build.commonjs.json",
36
- "clean": "rimraf dist esm *.tsbuildinfo"
37
- },
38
22
  "dependencies": {
39
- "@jbrowse/core": "^3.7.0",
40
- "@jbrowse/plugin-linear-genome-view": "^3.7.0",
41
- "@jbrowse/plugin-sequence": "^3.7.0",
42
- "@jbrowse/plugin-wiggle": "^3.7.0",
43
- "@mui/material": "^7.0.0",
44
- "mobx": "^6.0.0",
45
- "mobx-react": "^9.0.0",
46
- "mobx-state-tree": "^5.0.0",
47
- "rxjs": "^7.0.0"
23
+ "@jbrowse/mobx-state-tree": "^5.5.0",
24
+ "@mui/material": "^7.3.6",
25
+ "mobx": "^6.15.0",
26
+ "mobx-react": "^9.2.1",
27
+ "rxjs": "^7.8.2",
28
+ "@jbrowse/core": "^4.0.1",
29
+ "@jbrowse/plugin-sequence": "^4.0.1",
30
+ "@jbrowse/plugin-linear-genome-view": "^4.0.1",
31
+ "@jbrowse/plugin-wiggle": "^4.0.1"
48
32
  },
49
33
  "peerDependencies": {
50
34
  "react": ">=18.0.0"
@@ -52,8 +36,19 @@
52
36
  "publishConfig": {
53
37
  "access": "public"
54
38
  },
55
- "distModule": "esm/index.js",
56
- "srcModule": "src/index.ts",
57
- "module": "esm/index.js",
58
- "gitHead": "85bdd0d58286b7adbfd408146b15847676317635"
59
- }
39
+ "sideEffects": false,
40
+ "scripts": {
41
+ "build": "pnpm run /^build:/",
42
+ "test": "echo hi",
43
+ "prebuild": "pnpm clean",
44
+ "build:esm": "tsc -p tsconfig.build.esm.json",
45
+ "clean": "rimraf esm *.tsbuildinfo"
46
+ },
47
+ "types": "esm/index.d.ts",
48
+ "exports": {
49
+ ".": {
50
+ "types": "./esm/index.d.ts",
51
+ "import": "./esm/index.js"
52
+ }
53
+ }
54
+ }
@@ -1,10 +0,0 @@
1
- import { BaseFeatureDataAdapter } from '@jbrowse/core/data_adapters/BaseAdapter';
2
- import type { BaseOptions } from '@jbrowse/core/data_adapters/BaseAdapter';
3
- import type { Feature, Region } from '@jbrowse/core/util';
4
- export default class GCContentAdapter extends BaseFeatureDataAdapter {
5
- private gcMode;
6
- static capabilities: string[];
7
- configure(): Promise<BaseFeatureDataAdapter>;
8
- getRefNames(opts?: BaseOptions): Promise<string[]>;
9
- getFeatures(query: Region, opts?: BaseOptions): import("rxjs").Observable<Feature>;
10
- }
@@ -1,132 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const BaseAdapter_1 = require("@jbrowse/core/data_adapters/BaseAdapter");
4
- const util_1 = require("@jbrowse/core/util");
5
- const rxjs_1 = require("@jbrowse/core/util/rxjs");
6
- const stopToken_1 = require("@jbrowse/core/util/stopToken");
7
- const rxjs_2 = require("rxjs");
8
- const operators_1 = require("rxjs/operators");
9
- class GCContentAdapter extends BaseAdapter_1.BaseFeatureDataAdapter {
10
- constructor() {
11
- super(...arguments);
12
- this.gcMode = 'content';
13
- }
14
- async configure() {
15
- var _a;
16
- const adapter = await ((_a = this.getSubAdapter) === null || _a === void 0 ? void 0 : _a.call(this, this.getConf('sequenceAdapter')));
17
- if (!adapter) {
18
- throw new Error('Error getting subadapter');
19
- }
20
- return adapter.dataAdapter;
21
- }
22
- async getRefNames(opts) {
23
- const adapter = await this.configure();
24
- return adapter.getRefNames(opts);
25
- }
26
- getFeatures(query, opts) {
27
- const { statusCallback = () => { }, stopToken } = opts || {};
28
- return (0, rxjs_1.ObservableCreate)(async (observer) => {
29
- var _a;
30
- const sequenceAdapter = await this.configure();
31
- const windowSize = this.getConf('windowSize');
32
- const windowDelta = this.getConf('windowDelta');
33
- const halfWindowSize = windowSize === 1 ? 1 : Math.ceil(windowSize / 2);
34
- const isWindowSizeOneBp = windowSize === 1;
35
- const qs = Math.max(0, Math.floor((query.start - halfWindowSize) / windowSize) * windowSize);
36
- const qe = Math.ceil((query.end + halfWindowSize) / windowSize) * windowSize;
37
- if (qe < 0 || qs > qe) {
38
- observer.complete();
39
- return;
40
- }
41
- const feats = await (0, rxjs_2.firstValueFrom)(sequenceAdapter
42
- .getFeatures({
43
- ...query,
44
- start: qs,
45
- end: qe,
46
- }, opts)
47
- .pipe((0, operators_1.toArray)()));
48
- const residues = ((_a = feats[0]) === null || _a === void 0 ? void 0 : _a.get('seq')) || '';
49
- await (0, util_1.updateStatus)('Calculating GC', statusCallback, () => {
50
- let nc = 0;
51
- let ng = 0;
52
- let len = 0;
53
- let start = performance.now();
54
- const startIdx = halfWindowSize;
55
- for (let j = startIdx - halfWindowSize; j < startIdx + halfWindowSize; j++) {
56
- const letter = residues[j];
57
- if (letter === 'c' || letter === 'C') {
58
- nc++;
59
- }
60
- else if (letter === 'g' || letter === 'G') {
61
- ng++;
62
- }
63
- if (letter !== 'N') {
64
- len++;
65
- }
66
- }
67
- for (let i = halfWindowSize; i < residues.length - halfWindowSize; i += windowDelta) {
68
- if (performance.now() - start > 400) {
69
- (0, stopToken_1.checkStopToken)(stopToken);
70
- start = performance.now();
71
- }
72
- if (isWindowSizeOneBp) {
73
- const letter = residues[i];
74
- nc = letter === 'c' || letter === 'C' ? 1 : 0;
75
- ng = letter === 'g' || letter === 'G' ? 1 : 0;
76
- len = letter !== 'N' ? 1 : 0;
77
- }
78
- else if (i > halfWindowSize) {
79
- const prevStart = i - windowDelta - halfWindowSize;
80
- const prevEnd = i - windowDelta + halfWindowSize;
81
- const currStart = i - halfWindowSize;
82
- const currEnd = i + halfWindowSize;
83
- for (let j = prevStart; j < Math.min(prevEnd, currStart); j++) {
84
- if (j >= 0 && j < residues.length) {
85
- const letter = residues[j];
86
- if (letter === 'c' || letter === 'C') {
87
- nc--;
88
- }
89
- else if (letter === 'g' || letter === 'G') {
90
- ng--;
91
- }
92
- if (letter !== 'N') {
93
- len--;
94
- }
95
- }
96
- }
97
- for (let j = Math.max(prevEnd, currStart); j < currEnd; j++) {
98
- if (j >= 0 && j < residues.length) {
99
- const letter = residues[j];
100
- if (letter === 'c' || letter === 'C') {
101
- nc++;
102
- }
103
- else if (letter === 'g' || letter === 'G') {
104
- ng++;
105
- }
106
- if (letter !== 'N') {
107
- len++;
108
- }
109
- }
110
- }
111
- }
112
- const pos = qs;
113
- const score = this.gcMode === 'content'
114
- ? (ng + nc) / (len || 1)
115
- : this.gcMode === 'skew'
116
- ? (ng - nc) / (ng + nc || 1)
117
- : 0;
118
- observer.next(new util_1.SimpleFeature({
119
- uniqueId: `${this.id}_${pos + i}`,
120
- refName: query.refName,
121
- start: pos + i,
122
- end: pos + i + windowDelta,
123
- score,
124
- }));
125
- }
126
- });
127
- observer.complete();
128
- });
129
- }
130
- }
131
- GCContentAdapter.capabilities = ['hasLocalStats'];
132
- exports.default = GCContentAdapter;
@@ -1,16 +0,0 @@
1
- import type PluginManager from '@jbrowse/core/PluginManager';
2
- declare const GCContentAdapterF: (_pluginManager: PluginManager) => import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
3
- sequenceAdapter: {
4
- type: string;
5
- defaultValue: null;
6
- };
7
- windowSize: {
8
- type: string;
9
- defaultValue: number;
10
- };
11
- windowDelta: {
12
- type: string;
13
- defaultValue: number;
14
- };
15
- }, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, undefined>>;
16
- export default GCContentAdapterF;
@@ -1,21 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const configuration_1 = require("@jbrowse/core/configuration");
4
- function x() { }
5
- const GCContentAdapterF = (_pluginManager) => {
6
- return (0, configuration_1.ConfigurationSchema)('GCContentAdapter', {
7
- sequenceAdapter: {
8
- type: 'frozen',
9
- defaultValue: null,
10
- },
11
- windowSize: {
12
- type: 'number',
13
- defaultValue: 100,
14
- },
15
- windowDelta: {
16
- type: 'number',
17
- defaultValue: 100,
18
- },
19
- }, { explicitlyTyped: true });
20
- };
21
- exports.default = GCContentAdapterF;
@@ -1,2 +0,0 @@
1
- import type PluginManager from '@jbrowse/core/PluginManager';
2
- export default function GCContentAdapterF(pluginManager: PluginManager): void;
@@ -1,52 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
- Object.defineProperty(o, "default", { enumerable: true, value: v });
15
- }) : function(o, v) {
16
- o["default"] = v;
17
- });
18
- var __importStar = (this && this.__importStar) || (function () {
19
- var ownKeys = function(o) {
20
- ownKeys = Object.getOwnPropertyNames || function (o) {
21
- var ar = [];
22
- for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
- return ar;
24
- };
25
- return ownKeys(o);
26
- };
27
- return function (mod) {
28
- if (mod && mod.__esModule) return mod;
29
- var result = {};
30
- if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
- __setModuleDefault(result, mod);
32
- return result;
33
- };
34
- })();
35
- var __importDefault = (this && this.__importDefault) || function (mod) {
36
- return (mod && mod.__esModule) ? mod : { "default": mod };
37
- };
38
- Object.defineProperty(exports, "__esModule", { value: true });
39
- exports.default = GCContentAdapterF;
40
- const AdapterType_1 = __importDefault(require("@jbrowse/core/pluggableElementTypes/AdapterType"));
41
- const configSchema_1 = __importDefault(require("./configSchema"));
42
- function GCContentAdapterF(pluginManager) {
43
- pluginManager.addAdapterType(() => new AdapterType_1.default({
44
- name: 'GCContentAdapter',
45
- displayName: 'GC content adapter',
46
- adapterMetadata: {
47
- hiddenFromGUI: true,
48
- },
49
- configSchema: (0, configSchema_1.default)(pluginManager),
50
- getAdapterClass: () => Promise.resolve().then(() => __importStar(require('./GCContentAdapter'))).then(r => r.default),
51
- }));
52
- }
@@ -1,80 +0,0 @@
1
- import type PluginManager from '@jbrowse/core/PluginManager';
2
- declare const configSchema: (pluginManager: PluginManager) => import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
3
- name: {
4
- description: string;
5
- type: string;
6
- defaultValue: string;
7
- };
8
- assemblyNames: {
9
- description: string;
10
- type: string;
11
- defaultValue: string[];
12
- };
13
- description: {
14
- description: string;
15
- type: string;
16
- defaultValue: string;
17
- };
18
- category: {
19
- description: string;
20
- type: string;
21
- defaultValue: never[];
22
- };
23
- metadata: {
24
- type: string;
25
- description: string;
26
- defaultValue: {};
27
- };
28
- adapter: import("mobx-state-tree").IAnyModelType;
29
- textSearching: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
30
- indexingAttributes: {
31
- type: string;
32
- description: string;
33
- defaultValue: string[];
34
- };
35
- indexingFeatureTypesToExclude: {
36
- type: string;
37
- description: string;
38
- defaultValue: string[];
39
- };
40
- textSearchAdapter: import("mobx-state-tree").IAnyModelType;
41
- }, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, undefined>>;
42
- displays: import("mobx-state-tree").IArrayType<import("mobx-state-tree").IAnyModelType>;
43
- formatDetails: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
44
- feature: {
45
- type: string;
46
- description: string;
47
- defaultValue: {};
48
- contextVariable: string[];
49
- };
50
- subfeatures: {
51
- type: string;
52
- description: string;
53
- defaultValue: {};
54
- contextVariable: string[];
55
- };
56
- depth: {
57
- type: string;
58
- defaultValue: number;
59
- description: string;
60
- };
61
- maxDepth: {
62
- type: string;
63
- defaultValue: number;
64
- description: string;
65
- };
66
- }, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, undefined>>;
67
- formatAbout: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
68
- config: {
69
- type: string;
70
- description: string;
71
- defaultValue: {};
72
- contextVariable: string[];
73
- };
74
- hideUris: {
75
- type: string;
76
- defaultValue: boolean;
77
- };
78
- }, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, undefined>>;
79
- }, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, "trackId">>, undefined>>;
80
- export default configSchema;
@@ -1,9 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const configuration_1 = require("@jbrowse/core/configuration");
4
- const pluggableElementTypes_1 = require("@jbrowse/core/pluggableElementTypes");
5
- function x() { }
6
- const configSchema = (pluginManager) => (0, configuration_1.ConfigurationSchema)('GCContentTrack', {}, {
7
- baseConfiguration: (0, pluggableElementTypes_1.createBaseTrackConfig)(pluginManager),
8
- });
9
- exports.default = configSchema;
@@ -1,2 +0,0 @@
1
- import type PluginManager from '@jbrowse/core/PluginManager';
2
- export default function GCContentTrackF(pm: PluginManager): void;
@@ -1,20 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.default = GCContentTrackF;
7
- const TrackType_1 = __importDefault(require("@jbrowse/core/pluggableElementTypes/TrackType"));
8
- const models_1 = require("@jbrowse/core/pluggableElementTypes/models");
9
- const configSchema_1 = __importDefault(require("./configSchema"));
10
- function GCContentTrackF(pm) {
11
- pm.addTrackType(() => {
12
- const configSchema = (0, configSchema_1.default)(pm);
13
- return new TrackType_1.default({
14
- name: 'GCContentTrack',
15
- displayName: 'GCContent track',
16
- configSchema,
17
- stateModel: (0, models_1.createBaseTrackModel)(pm, 'GCContentTrack', configSchema),
18
- });
19
- });
20
- }
@@ -1,12 +0,0 @@
1
- declare const EditGCContentParamsDialog: ({ model, handleClose, }: {
2
- model: {
3
- windowSizeSetting: number;
4
- windowDeltaSetting: number;
5
- setGCContentParams: (a: {
6
- windowSize: number;
7
- windowDelta: number;
8
- }) => void;
9
- };
10
- handleClose: () => void;
11
- }) => import("react/jsx-runtime").JSX.Element;
12
- export default EditGCContentParamsDialog;
@@ -1,25 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const jsx_runtime_1 = require("react/jsx-runtime");
4
- const react_1 = require("react");
5
- const ui_1 = require("@jbrowse/core/ui");
6
- const material_1 = require("@mui/material");
7
- const mobx_react_1 = require("mobx-react");
8
- const EditGCContentParamsDialog = (0, mobx_react_1.observer)(function ({ model, handleClose, }) {
9
- const [windowSize, setWindowSize] = (0, react_1.useState)(`${model.windowSizeSetting}`);
10
- const [windowDelta, setWindowDelta] = (0, react_1.useState)(`${model.windowDeltaSetting}`);
11
- return ((0, jsx_runtime_1.jsx)(ui_1.Dialog, { open: true, onClose: handleClose, title: "Edit GC content params", children: (0, jsx_runtime_1.jsxs)(material_1.DialogContent, { children: [(0, jsx_runtime_1.jsx)(material_1.Typography, { children: "GC content is calculated in a particular sliding window of size N, and then the sliding window moves (steps) some number of bases M forward. Note that small step sizes can result in high CPU over large areas, and it is not recommended to make the step size larger than the window size as then the sliding window will miss contents." }), +windowDelta > +windowSize ? ((0, jsx_runtime_1.jsx)(ui_1.ErrorMessage, { error: "It is not recommended to make the step size larger than the window size" })) : null, (0, jsx_runtime_1.jsx)(material_1.TextField, { label: "Size of sliding window (bp)", value: windowSize, onChange: event => {
12
- setWindowSize(event.target.value);
13
- } }), (0, jsx_runtime_1.jsx)(material_1.TextField, { label: "Step size of sliding window (bp)", value: windowDelta, onChange: event => {
14
- setWindowDelta(event.target.value);
15
- } }), (0, jsx_runtime_1.jsxs)(material_1.DialogActions, { children: [(0, jsx_runtime_1.jsx)(material_1.Button, { variant: "contained", onClick: () => {
16
- model.setGCContentParams({
17
- windowSize: +windowSize,
18
- windowDelta: +windowDelta,
19
- });
20
- handleClose();
21
- }, children: "Submit" }), (0, jsx_runtime_1.jsx)(material_1.Button, { variant: "contained", color: "secondary", onClick: () => {
22
- handleClose();
23
- }, children: "Cancel" })] })] }) }));
24
- });
25
- exports.default = EditGCContentParamsDialog;
@@ -1,11 +0,0 @@
1
- import type PluginManager from '@jbrowse/core/PluginManager';
2
- export default function LinearGCContentDisplay(pluginManager: PluginManager): import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
3
- windowSize: {
4
- type: string;
5
- defaultValue: number;
6
- };
7
- windowDelta: {
8
- type: string;
9
- defaultValue: number;
10
- };
11
- }, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<import("@jbrowse/core/configuration").AnyConfigurationSchemaType, undefined>>;
@@ -1,20 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.default = LinearGCContentDisplay;
4
- const configuration_1 = require("@jbrowse/core/configuration");
5
- function LinearGCContentDisplay(pluginManager) {
6
- return (0, configuration_1.ConfigurationSchema)('LinearGCContentDisplay', {
7
- windowSize: {
8
- type: 'number',
9
- defaultValue: 100,
10
- },
11
- windowDelta: {
12
- type: 'number',
13
- defaultValue: 100,
14
- },
15
- }, {
16
- baseConfiguration: pluginManager.getDisplayType('LinearWiggleDisplay')
17
- .configSchema,
18
- explicitlyTyped: true,
19
- });
20
- }
@@ -1,11 +0,0 @@
1
- import type PluginManager from '@jbrowse/core/PluginManager';
2
- export default function LinearGCContentTrackDisplayF(pluginManager: PluginManager): import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
3
- windowSize: {
4
- type: string;
5
- defaultValue: number;
6
- };
7
- windowDelta: {
8
- type: string;
9
- defaultValue: number;
10
- };
11
- }, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<import("@jbrowse/core/configuration").AnyConfigurationSchemaType, undefined>>;
@@ -1,20 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.default = LinearGCContentTrackDisplayF;
4
- const configuration_1 = require("@jbrowse/core/configuration");
5
- function LinearGCContentTrackDisplayF(pluginManager) {
6
- return (0, configuration_1.ConfigurationSchema)('LinearGCContentTrackDisplay', {
7
- windowSize: {
8
- type: 'number',
9
- defaultValue: 100,
10
- },
11
- windowDelta: {
12
- type: 'number',
13
- defaultValue: 100,
14
- },
15
- }, {
16
- baseConfiguration: pluginManager.getDisplayType('LinearWiggleDisplay')
17
- .configSchema,
18
- explicitlyTyped: true,
19
- });
20
- }
@@ -1,2 +0,0 @@
1
- import type PluginManager from '@jbrowse/core/PluginManager';
2
- export default function LinearGCContentDisplayF(pluginManager: PluginManager): void;
@@ -1,40 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.default = LinearGCContentDisplayF;
7
- const pluggableElementTypes_1 = require("@jbrowse/core/pluggableElementTypes");
8
- const plugin_wiggle_1 = require("@jbrowse/plugin-wiggle");
9
- const config1_1 = __importDefault(require("./config1"));
10
- const config2_1 = __importDefault(require("./config2"));
11
- const stateModel1_1 = __importDefault(require("./stateModel1"));
12
- const stateModel2_1 = __importDefault(require("./stateModel2"));
13
- function LinearGCContentDisplayF(pluginManager) {
14
- pluginManager.addDisplayType(() => {
15
- const configSchema = (0, config1_1.default)(pluginManager);
16
- const stateModel = (0, stateModel1_1.default)(pluginManager, configSchema);
17
- return new pluggableElementTypes_1.DisplayType({
18
- name: 'LinearGCContentDisplay',
19
- configSchema,
20
- stateModel,
21
- displayName: 'GC content display',
22
- trackType: 'ReferenceSequenceTrack',
23
- viewType: 'LinearGenomeView',
24
- ReactComponent: plugin_wiggle_1.LinearWiggleDisplayReactComponent,
25
- });
26
- });
27
- pluginManager.addDisplayType(() => {
28
- const configSchema = (0, config2_1.default)(pluginManager);
29
- const stateModel = (0, stateModel2_1.default)(pluginManager, configSchema);
30
- return new pluggableElementTypes_1.DisplayType({
31
- name: 'LinearGCContentTrackDisplay',
32
- configSchema,
33
- stateModel,
34
- displayName: 'GC content display',
35
- trackType: 'GCContentTrack',
36
- viewType: 'LinearGenomeView',
37
- ReactComponent: plugin_wiggle_1.LinearWiggleDisplayReactComponent,
38
- });
39
- });
40
- }