@jbrowse/plugin-gccontent 2.10.3 → 2.11.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 (43) hide show
  1. package/dist/GCContentAdapter/GCContentAdapter.d.ts +1 -1
  2. package/dist/GCContentAdapter/GCContentAdapter.js +4 -3
  3. package/dist/GCContentAdapter/index.d.ts +1 -2
  4. package/dist/GCContentAdapter/index.js +3 -2
  5. package/dist/GCContentTrack/configSchema.d.ts +82 -0
  6. package/dist/GCContentTrack/configSchema.js +16 -0
  7. package/dist/GCContentTrack/index.d.ts +2 -0
  8. package/dist/GCContentTrack/index.js +20 -0
  9. package/dist/LinearGCContentDisplay/{config.d.ts → config1.d.ts} +1 -1
  10. package/dist/LinearGCContentDisplay/{config.js → config1.js} +2 -2
  11. package/dist/LinearGCContentDisplay/config2.d.ts +16 -0
  12. package/dist/LinearGCContentDisplay/config2.js +28 -0
  13. package/dist/LinearGCContentDisplay/index.d.ts +1 -2
  14. package/dist/LinearGCContentDisplay/index.js +22 -6
  15. package/{esm/LinearGCContentDisplay/stateModel.d.ts → dist/LinearGCContentDisplay/shared.d.ts} +12 -17
  16. package/dist/LinearGCContentDisplay/{stateModel.js → shared.js} +6 -9
  17. package/dist/LinearGCContentDisplay/stateModel1.d.ts +403 -0
  18. package/dist/LinearGCContentDisplay/stateModel1.js +19 -0
  19. package/dist/LinearGCContentDisplay/stateModel2.d.ts +408 -0
  20. package/dist/LinearGCContentDisplay/stateModel2.js +24 -0
  21. package/dist/index.js +2 -0
  22. package/esm/GCContentAdapter/GCContentAdapter.d.ts +1 -1
  23. package/esm/GCContentAdapter/GCContentAdapter.js +4 -3
  24. package/esm/GCContentAdapter/index.d.ts +1 -2
  25. package/esm/GCContentAdapter/index.js +2 -2
  26. package/esm/GCContentTrack/configSchema.d.ts +82 -0
  27. package/esm/GCContentTrack/configSchema.js +14 -0
  28. package/esm/GCContentTrack/index.d.ts +2 -0
  29. package/esm/GCContentTrack/index.js +14 -0
  30. package/esm/LinearGCContentDisplay/{config.d.ts → config1.d.ts} +1 -1
  31. package/esm/LinearGCContentDisplay/{config.js → config1.js} +1 -1
  32. package/esm/LinearGCContentDisplay/config2.d.ts +16 -0
  33. package/esm/LinearGCContentDisplay/config2.js +25 -0
  34. package/esm/LinearGCContentDisplay/index.d.ts +1 -2
  35. package/esm/LinearGCContentDisplay/index.js +21 -6
  36. package/{dist/LinearGCContentDisplay/stateModel.d.ts → esm/LinearGCContentDisplay/shared.d.ts} +12 -17
  37. package/esm/LinearGCContentDisplay/{stateModel.js → shared.js} +5 -8
  38. package/esm/LinearGCContentDisplay/stateModel1.d.ts +403 -0
  39. package/esm/LinearGCContentDisplay/stateModel1.js +13 -0
  40. package/esm/LinearGCContentDisplay/stateModel2.d.ts +408 -0
  41. package/esm/LinearGCContentDisplay/stateModel2.js +18 -0
  42. package/esm/index.js +2 -0
  43. package/package.json +2 -2
@@ -1,6 +1,6 @@
1
1
  import { BaseFeatureDataAdapter, BaseOptions } from '@jbrowse/core/data_adapters/BaseAdapter';
2
2
  import { Feature, Region } from '@jbrowse/core/util';
3
- export default class extends BaseFeatureDataAdapter {
3
+ export default class GCContentAdapter extends BaseFeatureDataAdapter {
4
4
  private gcMode;
5
5
  static capabilities: string[];
6
6
  configure(): Promise<BaseFeatureDataAdapter>;
@@ -5,7 +5,7 @@ const rxjs_1 = require("rxjs");
5
5
  const rxjs_2 = require("@jbrowse/core/util/rxjs");
6
6
  const util_1 = require("@jbrowse/core/util");
7
7
  const operators_1 = require("rxjs/operators");
8
- class default_1 extends BaseAdapter_1.BaseFeatureDataAdapter {
8
+ class GCContentAdapter extends BaseAdapter_1.BaseFeatureDataAdapter {
9
9
  constructor() {
10
10
  super(...arguments);
11
11
  this.gcMode = 'content';
@@ -70,6 +70,7 @@ class default_1 extends BaseAdapter_1.BaseFeatureDataAdapter {
70
70
  }
71
71
  observer.next(new util_1.SimpleFeature({
72
72
  uniqueId: `${this.id}_${pos + i}`,
73
+ refName: query.refName,
73
74
  start: pos + i,
74
75
  end: pos + i + windowDelta,
75
76
  score,
@@ -85,5 +86,5 @@ class default_1 extends BaseAdapter_1.BaseFeatureDataAdapter {
85
86
  */
86
87
  freeResources( /* { region } */) { }
87
88
  }
88
- default_1.capabilities = ['hasLocalStats'];
89
- exports.default = default_1;
89
+ GCContentAdapter.capabilities = ['hasLocalStats'];
90
+ exports.default = GCContentAdapter;
@@ -1,3 +1,2 @@
1
1
  import PluginManager from '@jbrowse/core/PluginManager';
2
- declare const _default: (pluginManager: PluginManager) => void;
3
- export default _default;
2
+ export default function GCContentAdapterF(pluginManager: PluginManager): void;
@@ -28,7 +28,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
29
  const AdapterType_1 = __importDefault(require("@jbrowse/core/pluggableElementTypes/AdapterType"));
30
30
  const configSchema_1 = __importDefault(require("./configSchema"));
31
- exports.default = (pluginManager) => {
31
+ function GCContentAdapterF(pluginManager) {
32
32
  pluginManager.addAdapterType(() => new AdapterType_1.default({
33
33
  name: 'GCContentAdapter',
34
34
  displayName: 'GC content adapter',
@@ -38,4 +38,5 @@ exports.default = (pluginManager) => {
38
38
  configSchema: (0, configSchema_1.default)(pluginManager),
39
39
  getAdapterClass: () => Promise.resolve().then(() => __importStar(require('./GCContentAdapter'))).then(r => r.default),
40
40
  }));
41
- };
41
+ }
42
+ exports.default = GCContentAdapterF;
@@ -0,0 +1,82 @@
1
+ import 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
+ * #baseConfiguration
12
+ */
13
+ defaultValue: string[];
14
+ };
15
+ description: {
16
+ description: string;
17
+ type: string;
18
+ defaultValue: string;
19
+ };
20
+ category: {
21
+ description: string;
22
+ type: string;
23
+ defaultValue: never[];
24
+ };
25
+ metadata: {
26
+ type: string;
27
+ description: string;
28
+ defaultValue: {};
29
+ };
30
+ adapter: import("mobx-state-tree").IAnyModelType;
31
+ textSearching: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
32
+ indexingAttributes: {
33
+ type: string;
34
+ description: string;
35
+ defaultValue: string[];
36
+ };
37
+ indexingFeatureTypesToExclude: {
38
+ type: string;
39
+ description: string;
40
+ defaultValue: string[];
41
+ };
42
+ textSearchAdapter: import("mobx-state-tree").IAnyModelType;
43
+ }, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, undefined>>;
44
+ displays: import("mobx-state-tree").IArrayType<import("mobx-state-tree").IAnyModelType>;
45
+ formatDetails: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
46
+ feature: {
47
+ type: string;
48
+ description: string;
49
+ defaultValue: {};
50
+ contextVariable: string[];
51
+ };
52
+ subfeatures: {
53
+ type: string;
54
+ description: string;
55
+ defaultValue: {};
56
+ contextVariable: string[];
57
+ };
58
+ depth: {
59
+ type: string;
60
+ defaultValue: number;
61
+ description: string;
62
+ };
63
+ maxDepth: {
64
+ type: string;
65
+ defaultValue: number;
66
+ description: string;
67
+ };
68
+ }, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, undefined>>;
69
+ formatAbout: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
70
+ config: {
71
+ type: string;
72
+ description: string;
73
+ defaultValue: {};
74
+ contextVariable: string[];
75
+ };
76
+ hideUris: {
77
+ type: string;
78
+ defaultValue: boolean;
79
+ };
80
+ }, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, undefined>>;
81
+ }, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, "trackId">>, undefined>>;
82
+ export default configSchema;
@@ -0,0 +1,16 @@
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
+ /**
6
+ * #config GCContentTrack
7
+ * used for having a gc content track outside of the "reference sequence display"
8
+ */
9
+ function x() { } // eslint-disable-line @typescript-eslint/no-unused-vars
10
+ const configSchema = (pluginManager) => (0, configuration_1.ConfigurationSchema)('GCContentTrack', {}, {
11
+ /**
12
+ * #baseConfiguration
13
+ */
14
+ baseConfiguration: (0, pluggableElementTypes_1.createBaseTrackConfig)(pluginManager),
15
+ });
16
+ exports.default = configSchema;
@@ -0,0 +1,2 @@
1
+ import PluginManager from '@jbrowse/core/PluginManager';
2
+ export default function GCContentTrackF(pm: PluginManager): void;
@@ -0,0 +1,20 @@
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
+ const TrackType_1 = __importDefault(require("@jbrowse/core/pluggableElementTypes/TrackType"));
7
+ const models_1 = require("@jbrowse/core/pluggableElementTypes/models");
8
+ const configSchema_1 = __importDefault(require("./configSchema"));
9
+ function GCContentTrackF(pm) {
10
+ pm.addTrackType(() => {
11
+ const configSchema = (0, configSchema_1.default)(pm);
12
+ return new TrackType_1.default({
13
+ name: 'GCContentTrack',
14
+ displayName: 'GCContent track',
15
+ configSchema,
16
+ stateModel: (0, models_1.createBaseTrackModel)(pm, 'GCContentTrack', configSchema),
17
+ });
18
+ });
19
+ }
20
+ exports.default = GCContentTrackF;
@@ -4,7 +4,7 @@ import PluginManager from '@jbrowse/core/PluginManager';
4
4
  * #category display
5
5
  * extends LinearWiggleDisplay
6
6
  */
7
- export default function WiggleConfigFactory(pluginManager: PluginManager): import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
7
+ export default function LinearGCContentDisplay(pluginManager: PluginManager): import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
8
8
  windowSize: {
9
9
  type: string;
10
10
  defaultValue: number;
@@ -6,7 +6,7 @@ const configuration_1 = require("@jbrowse/core/configuration");
6
6
  * #category display
7
7
  * extends LinearWiggleDisplay
8
8
  */
9
- function WiggleConfigFactory(pluginManager) {
9
+ function LinearGCContentDisplay(pluginManager) {
10
10
  return (0, configuration_1.ConfigurationSchema)('LinearGCContentDisplay', {
11
11
  windowSize: {
12
12
  type: 'number',
@@ -25,4 +25,4 @@ function WiggleConfigFactory(pluginManager) {
25
25
  explicitlyTyped: true,
26
26
  });
27
27
  }
28
- exports.default = WiggleConfigFactory;
28
+ exports.default = LinearGCContentDisplay;
@@ -0,0 +1,16 @@
1
+ import PluginManager from '@jbrowse/core/PluginManager';
2
+ /**
3
+ * #config LinearGCContentTrackDisplay
4
+ * #category display
5
+ * extends LinearWiggleDisplay, used specifically for GCContentTrack
6
+ */
7
+ export default function LinearGCContentTrackDisplayF(pluginManager: PluginManager): import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
8
+ windowSize: {
9
+ type: string;
10
+ defaultValue: number;
11
+ };
12
+ windowDelta: {
13
+ type: string;
14
+ defaultValue: number;
15
+ };
16
+ }, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<import("@jbrowse/core/configuration").AnyConfigurationSchemaType, undefined>>;
@@ -0,0 +1,28 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const configuration_1 = require("@jbrowse/core/configuration");
4
+ /**
5
+ * #config LinearGCContentTrackDisplay
6
+ * #category display
7
+ * extends LinearWiggleDisplay, used specifically for GCContentTrack
8
+ */
9
+ function LinearGCContentTrackDisplayF(pluginManager) {
10
+ return (0, configuration_1.ConfigurationSchema)('LinearGCContentTrackDisplay', {
11
+ windowSize: {
12
+ type: 'number',
13
+ defaultValue: 100,
14
+ },
15
+ windowDelta: {
16
+ type: 'number',
17
+ defaultValue: 100,
18
+ },
19
+ }, {
20
+ /**
21
+ * #baseConfiguration
22
+ */
23
+ baseConfiguration: pluginManager.getDisplayType('LinearWiggleDisplay')
24
+ .configSchema,
25
+ explicitlyTyped: true,
26
+ });
27
+ }
28
+ exports.default = LinearGCContentTrackDisplayF;
@@ -1,3 +1,2 @@
1
1
  import PluginManager from '@jbrowse/core/PluginManager';
2
- declare const _default: (pluginManager: PluginManager) => void;
3
- export default _default;
2
+ export default function LinearGCContentDisplayF(pluginManager: PluginManager): void;
@@ -5,12 +5,14 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  const pluggableElementTypes_1 = require("@jbrowse/core/pluggableElementTypes");
7
7
  const plugin_wiggle_1 = require("@jbrowse/plugin-wiggle");
8
- const config_1 = __importDefault(require("./config"));
9
- const stateModel_1 = __importDefault(require("./stateModel"));
10
- exports.default = (pluginManager) => {
8
+ const config1_1 = __importDefault(require("./config1"));
9
+ const config2_1 = __importDefault(require("./config2"));
10
+ const stateModel1_1 = __importDefault(require("./stateModel1"));
11
+ const stateModel2_1 = __importDefault(require("./stateModel2"));
12
+ function LinearGCContentDisplayF(pluginManager) {
11
13
  pluginManager.addDisplayType(() => {
12
- const configSchema = (0, config_1.default)(pluginManager);
13
- const stateModel = (0, stateModel_1.default)(pluginManager, configSchema);
14
+ const configSchema = (0, config1_1.default)(pluginManager);
15
+ const stateModel = (0, stateModel1_1.default)(pluginManager, configSchema);
14
16
  return new pluggableElementTypes_1.DisplayType({
15
17
  name: 'LinearGCContentDisplay',
16
18
  configSchema,
@@ -21,4 +23,18 @@ exports.default = (pluginManager) => {
21
23
  ReactComponent: plugin_wiggle_1.LinearWiggleDisplayReactComponent,
22
24
  });
23
25
  });
24
- };
26
+ pluginManager.addDisplayType(() => {
27
+ const configSchema = (0, config2_1.default)(pluginManager);
28
+ const stateModel = (0, stateModel2_1.default)(pluginManager, configSchema);
29
+ return new pluggableElementTypes_1.DisplayType({
30
+ name: 'LinearGCContentTrackDisplay',
31
+ configSchema,
32
+ stateModel,
33
+ displayName: 'GC content display',
34
+ trackType: 'GCContentTrack',
35
+ viewType: 'LinearGenomeView',
36
+ ReactComponent: plugin_wiggle_1.LinearWiggleDisplayReactComponent,
37
+ });
38
+ });
39
+ }
40
+ exports.default = LinearGCContentDisplayF;
@@ -2,11 +2,12 @@
2
2
  import { AnyConfigurationSchemaType } from '@jbrowse/core/configuration';
3
3
  import PluginManager from '@jbrowse/core/PluginManager';
4
4
  /**
5
- * #stateModel LinearGCContentDisplay
5
+ * #stateModel SharedGCContentModel
6
6
  * #category display
7
- * base model `BaseWiggleDisplayModel`
7
+ * extends
8
+ * - [LinearWiggleDisplay](../linearwiggledisplay)
8
9
  */
9
- export default function stateModelFactory(pluginManager: PluginManager, configSchema: AnyConfigurationSchemaType): import("mobx-state-tree").IModelType<{
10
+ export default function SharedModelF(pluginManager: PluginManager, configSchema: AnyConfigurationSchemaType): import("mobx-state-tree").IModelType<{
10
11
  id: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
11
12
  type: import("mobx-state-tree").ISimpleType<string>;
12
13
  rpcDriverName: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<string>>;
@@ -76,7 +77,9 @@ export default function stateModelFactory(pluginManager: PluginManager, configSc
76
77
  defaultValue: number;
77
78
  };
78
79
  fetchSizeLimit: {
79
- type: string;
80
+ type: string; /**
81
+ * #property
82
+ */
80
83
  defaultValue: number;
81
84
  description: string;
82
85
  };
@@ -109,18 +112,10 @@ export default function stateModelFactory(pluginManager: PluginManager, configSc
109
112
  max: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<number>>;
110
113
  min: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<number>>;
111
114
  }, {}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>, [undefined]>;
112
- configuration: AnyConfigurationSchemaType; /**
113
- * #method
114
- * retrieves the sequence adapter from parent track, and puts it as a
115
- * subadapter on a GCContentAdapter
116
- */
115
+ configuration: AnyConfigurationSchemaType;
117
116
  } & {
118
117
  type: import("mobx-state-tree").ISimpleType<"LinearWiggleDisplay">;
119
118
  } & {
120
- /**
121
- * #property
122
- */
123
- type: import("mobx-state-tree").ISimpleType<"LinearGCContentDisplay">;
124
119
  /**
125
120
  * #property
126
121
  */
@@ -138,13 +133,13 @@ export default function stateModelFactory(pluginManager: PluginManager, configSc
138
133
  model: {
139
134
  id: string;
140
135
  type: string;
141
- rpcDriverName: string | undefined;
136
+ rpcDriverName: string | undefined; /**
137
+ * #property
138
+ */
142
139
  } & import("mobx-state-tree/dist/internal").NonEmptyObject & {
143
140
  rendererTypeName: string;
144
141
  error: unknown;
145
- message: string | undefined; /**
146
- * #property
147
- */
142
+ message: string | undefined;
148
143
  } & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
149
144
  id: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
150
145
  type: import("mobx-state-tree").ISimpleType<string>;
@@ -30,17 +30,14 @@ const mobx_state_tree_1 = require("mobx-state-tree");
30
30
  const react_1 = require("react");
31
31
  const EditGCContentParamsDialog = (0, react_1.lazy)(() => Promise.resolve().then(() => __importStar(require('./components/EditGCContentParams'))));
32
32
  /**
33
- * #stateModel LinearGCContentDisplay
33
+ * #stateModel SharedGCContentModel
34
34
  * #category display
35
- * base model `BaseWiggleDisplayModel`
35
+ * extends
36
+ * - [LinearWiggleDisplay](../linearwiggledisplay)
36
37
  */
37
- function stateModelFactory(pluginManager, configSchema) {
38
+ function SharedModelF(pluginManager, configSchema) {
38
39
  return mobx_state_tree_1.types
39
- .compose('LinearGCContentDisplay', (0, plugin_wiggle_1.linearWiggleDisplayModelFactory)(pluginManager, configSchema), mobx_state_tree_1.types.model({
40
- /**
41
- * #property
42
- */
43
- type: mobx_state_tree_1.types.literal('LinearGCContentDisplay'),
40
+ .compose('SharedGCContentModel', (0, plugin_wiggle_1.linearWiggleDisplayModelFactory)(pluginManager, configSchema), mobx_state_tree_1.types.model({
44
41
  /**
45
42
  * #property
46
43
  */
@@ -103,4 +100,4 @@ function stateModelFactory(pluginManager, configSchema) {
103
100
  };
104
101
  });
105
102
  }
106
- exports.default = stateModelFactory;
103
+ exports.default = SharedModelF;