@jbrowse/plugin-linear-genome-view 5.0.0-beta.17 → 5.0.0-beta.19

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 (46) hide show
  1. package/esm/LinearGenomeView/afterAttach.js +6 -4
  2. package/esm/LinearGenomeView/components/ImportForm.js +2 -4
  3. package/esm/LinearGenomeView/components/LinearGenomeViewContainer.js +4 -2
  4. package/esm/LinearGenomeView/components/SearchBox.js +1 -9
  5. package/esm/LinearGenomeView/components/SearchResultsDialog.js +1 -1
  6. package/esm/LinearGenomeView/components/SearchResultsTable.d.ts +2 -1
  7. package/esm/LinearGenomeView/components/SearchResultsTable.js +23 -5
  8. package/esm/LinearGenomeView/components/SequenceFeatureHoverHighlight.js +2 -3
  9. package/esm/LinearGenomeView/components/TrackContainer.d.ts +2 -3
  10. package/esm/LinearGenomeView/components/TrackContainer.js +3 -4
  11. package/esm/LinearGenomeView/components/TrackLabelRefNameWarning.d.ts +3 -4
  12. package/esm/LinearGenomeView/components/TrackLabelRefNameWarning.js +23 -10
  13. package/esm/LinearGenomeView/components/TrackRenderingContainer.d.ts +2 -3
  14. package/esm/LinearGenomeView/components/TrackRenderingContainer.js +1 -1
  15. package/esm/LinearGenomeView/components/useSearchBoxPrefs.d.ts +1 -1
  16. package/esm/LinearGenomeView/components/useSearchBoxPrefs.js +1 -1
  17. package/esm/LinearGenomeView/index.d.ts +1 -1
  18. package/esm/LinearGenomeView/index.js +2 -0
  19. package/esm/LinearGenomeView/keyboardHandler.d.ts +8 -9
  20. package/esm/LinearGenomeView/keyboardHandler.js +58 -34
  21. package/esm/LinearGenomeView/menuItems.js +3 -2
  22. package/esm/LinearGenomeView/model.d.ts +489 -52
  23. package/esm/LinearGenomeView/model.js +125 -45
  24. package/esm/LinearGenomeView/rExport/exportLinearView.js +4 -5
  25. package/esm/LinearGenomeView/rExport/rScript.d.ts +26 -1
  26. package/esm/LinearGenomeView/rExport/rScript.js +27 -6
  27. package/esm/LinearGenomeView/sharedScaleContainer.js +2 -12
  28. package/esm/LinearGenomeView/showFiles.d.ts +2 -0
  29. package/esm/LinearGenomeView/showFiles.js +19 -0
  30. package/esm/LinearGenomeView/showRegionsWithUndo.d.ts +1 -1
  31. package/esm/LinearGenomeView/showRegionsWithUndo.js +1 -1
  32. package/esm/LinearGenomeView/svgcomponents/SVGLinearGenomeView.js +3 -1
  33. package/esm/LinearGenomeView/util.d.ts +1 -1
  34. package/esm/LinearGenomeView/util.js +1 -1
  35. package/esm/TrackModifiers/index.d.ts +80 -0
  36. package/esm/TrackModifiers/index.js +212 -0
  37. package/esm/displayKitTests/perRegionTestEnv.d.ts +10 -4
  38. package/esm/index.d.ts +3 -1
  39. package/esm/index.js +1 -2
  40. package/esm/searchUtils.d.ts +14 -2
  41. package/esm/searchUtils.js +56 -36
  42. package/package.json +10 -9
  43. package/esm/FeatureTrack/configSchema.d.ts +0 -217
  44. package/esm/FeatureTrack/configSchema.js +0 -55
  45. package/esm/FeatureTrack/index.d.ts +0 -2
  46. package/esm/FeatureTrack/index.js +0 -13
@@ -1,217 +0,0 @@
1
- import type PluginManager from '@jbrowse/core/PluginManager';
2
- /**
3
- * #config FeatureTrack
4
- * #category track
5
- * Holds gene and other feature annotations, such as a GFF3 or BED file, which
6
- * `LinearBasicDisplay` usually draws.
7
- *
8
- * #example
9
- * A minimal hand-authored entry in the top-level `tracks` array — `adapter`
10
- * points at the data file, and the track opens with a `LinearBasicDisplay`:
11
- * ```js
12
- * {
13
- * type: 'FeatureTrack',
14
- * trackId: 'genes',
15
- * name: 'Genes',
16
- * assemblyNames: ['hg38'],
17
- * adapter: {
18
- * type: 'Gff3TabixAdapter',
19
- * uri: 'https://example.com/genes.sorted.gff.gz',
20
- * },
21
- * }
22
- * ```
23
- *
24
- * #example
25
- * The same track, colored. Rather than writing out the full `displays` array,
26
- * you can put appearance settings in a `displayDefaults` object — JBrowse works
27
- * out which display they belong to and applies them for you (here, the track's
28
- * `LinearBasicDisplay`), so you don't have to know display names. A `jexl:`
29
- * value gives per-feature coloring:
30
- * ```js
31
- * {
32
- * type: 'FeatureTrack',
33
- * trackId: 'genes',
34
- * name: 'Genes',
35
- * assemblyNames: ['hg38'],
36
- * adapter: {
37
- * type: 'Gff3TabixAdapter',
38
- * uri: 'https://example.com/genes.sorted.gff.gz',
39
- * },
40
- * displayDefaults: { color: "jexl:feature.type=='CDS'?'red':'blue'" },
41
- * }
42
- * ```
43
- */
44
- declare const configSchema: (pluginManager: PluginManager) => import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
45
- adapter: import("@jbrowse/core/PluginManager").PluggableConfigSchemaType;
46
- assemblyNames: {
47
- type: "stringArray";
48
- } & {
49
- defaultValue: unknown;
50
- };
51
- category: {
52
- type: "stringArray";
53
- } & {
54
- defaultValue: unknown;
55
- };
56
- description: {
57
- type: "string";
58
- } & {
59
- defaultValue: string;
60
- };
61
- displays: import("@jbrowse/mobx-state-tree").IArrayType<import("@jbrowse/core/PluginManager").PluggableConfigSchemaType>;
62
- formatAbout: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
63
- readonly config: {
64
- type: "frozen";
65
- } & {
66
- defaultValue: unknown;
67
- };
68
- readonly hideUris: {
69
- type: "boolean";
70
- } & {
71
- defaultValue: boolean;
72
- };
73
- }, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, undefined, undefined, import("@jbrowse/core/configuration").ConfigurationSchemaRequirement<Partial<Record<string, string[]>>, string>, any>>;
74
- formatDetails: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
75
- readonly feature: {
76
- type: "frozen";
77
- } & {
78
- defaultValue: unknown;
79
- };
80
- readonly subfeatures: {
81
- type: "frozen";
82
- } & {
83
- defaultValue: unknown;
84
- };
85
- readonly depth: {
86
- type: "maybeNumber";
87
- };
88
- readonly maxDepth: {
89
- type: "maybeNumber";
90
- };
91
- }, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, undefined, undefined, import("@jbrowse/core/configuration").ConfigurationSchemaRequirement<Partial<Record<string, string[]>>, string>, any>>;
92
- metadata: {
93
- type: "frozen";
94
- } & {
95
- defaultValue: unknown;
96
- };
97
- name: {
98
- type: "string";
99
- } & {
100
- defaultValue: string;
101
- };
102
- textSearching: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
103
- readonly indexingAttributes: {
104
- type: "stringArray";
105
- } & {
106
- defaultValue: unknown;
107
- };
108
- readonly indexingFeatureTypesToExclude: {
109
- type: "stringArray";
110
- } & {
111
- defaultValue: unknown;
112
- };
113
- readonly indexingFeatureTypesToInclude: {
114
- type: "stringArray";
115
- } & {
116
- defaultValue: unknown;
117
- };
118
- readonly textSearchAdapter: import("@jbrowse/mobx-state-tree").ITypeUnion<any, any, import("@jbrowse/core/configuration").PluggableConfigNode | undefined>;
119
- }, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, undefined, undefined, import("@jbrowse/core/configuration").ConfigurationSchemaRequirement<Partial<Record<string, string[]>>, string>, any>>;
120
- trackId: {
121
- type: "string";
122
- } & {
123
- defaultValue: string;
124
- };
125
- type: {
126
- type: "string";
127
- } & {
128
- defaultValue: string;
129
- };
130
- }, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
131
- readonly name: {
132
- type: "string";
133
- } & {
134
- defaultValue: string;
135
- };
136
- readonly assemblyNames: {
137
- type: "stringArray";
138
- } & {
139
- defaultValue: unknown;
140
- };
141
- readonly description: {
142
- type: "string";
143
- } & {
144
- defaultValue: string;
145
- };
146
- readonly category: {
147
- type: "stringArray";
148
- } & {
149
- defaultValue: unknown;
150
- };
151
- readonly metadata: {
152
- type: "frozen";
153
- } & {
154
- defaultValue: unknown;
155
- };
156
- readonly adapter: import("@jbrowse/core/PluginManager").PluggableConfigSchemaType;
157
- readonly textSearching: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
158
- readonly indexingAttributes: {
159
- type: "stringArray";
160
- } & {
161
- defaultValue: unknown;
162
- };
163
- readonly indexingFeatureTypesToExclude: {
164
- type: "stringArray";
165
- } & {
166
- defaultValue: unknown;
167
- };
168
- readonly indexingFeatureTypesToInclude: {
169
- type: "stringArray";
170
- } & {
171
- defaultValue: unknown;
172
- };
173
- readonly textSearchAdapter: import("@jbrowse/mobx-state-tree").ITypeUnion<any, any, import("@jbrowse/core/configuration").PluggableConfigNode | undefined>;
174
- }, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, undefined, undefined, import("@jbrowse/core/configuration").ConfigurationSchemaRequirement<Partial<Record<string, string[]>>, string>, any>>;
175
- readonly displays: import("@jbrowse/mobx-state-tree").IArrayType<import("@jbrowse/core/PluginManager").PluggableConfigSchemaType>;
176
- readonly formatDetails: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
177
- readonly feature: {
178
- type: "frozen";
179
- } & {
180
- defaultValue: unknown;
181
- };
182
- readonly subfeatures: {
183
- type: "frozen";
184
- } & {
185
- defaultValue: unknown;
186
- };
187
- readonly depth: {
188
- type: "maybeNumber";
189
- };
190
- readonly maxDepth: {
191
- type: "maybeNumber";
192
- };
193
- }, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, undefined, undefined, import("@jbrowse/core/configuration").ConfigurationSchemaRequirement<Partial<Record<string, string[]>>, string>, any>>;
194
- readonly formatAbout: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
195
- readonly config: {
196
- type: "frozen";
197
- } & {
198
- defaultValue: unknown;
199
- };
200
- readonly hideUris: {
201
- type: "boolean";
202
- } & {
203
- defaultValue: boolean;
204
- };
205
- }, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, undefined, undefined, import("@jbrowse/core/configuration").ConfigurationSchemaRequirement<Partial<Record<string, string[]>>, string>, any>>;
206
- type: {
207
- type: "string";
208
- } & {
209
- defaultValue: string;
210
- };
211
- trackId: {
212
- type: "string";
213
- } & {
214
- defaultValue: string;
215
- };
216
- }, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, "trackId", true, import("@jbrowse/core/configuration").ConfigurationSchemaRequirement<Partial<Record<string, string[]>>, string>, any>>, "trackId", undefined, import("@jbrowse/core/configuration").ConfigurationSchemaRequirement<Partial<Record<string, string[]>>, string>, any>>;
217
- export default configSchema;
@@ -1,55 +0,0 @@
1
- import { ConfigurationSchema } from '@jbrowse/core/configuration';
2
- import { createBaseTrackConfig } from '@jbrowse/core/pluggableElementTypes';
3
- /**
4
- * #config FeatureTrack
5
- * #category track
6
- * Holds gene and other feature annotations, such as a GFF3 or BED file, which
7
- * `LinearBasicDisplay` usually draws.
8
- *
9
- * #example
10
- * A minimal hand-authored entry in the top-level `tracks` array — `adapter`
11
- * points at the data file, and the track opens with a `LinearBasicDisplay`:
12
- * ```js
13
- * {
14
- * type: 'FeatureTrack',
15
- * trackId: 'genes',
16
- * name: 'Genes',
17
- * assemblyNames: ['hg38'],
18
- * adapter: {
19
- * type: 'Gff3TabixAdapter',
20
- * uri: 'https://example.com/genes.sorted.gff.gz',
21
- * },
22
- * }
23
- * ```
24
- *
25
- * #example
26
- * The same track, colored. Rather than writing out the full `displays` array,
27
- * you can put appearance settings in a `displayDefaults` object — JBrowse works
28
- * out which display they belong to and applies them for you (here, the track's
29
- * `LinearBasicDisplay`), so you don't have to know display names. A `jexl:`
30
- * value gives per-feature coloring:
31
- * ```js
32
- * {
33
- * type: 'FeatureTrack',
34
- * trackId: 'genes',
35
- * name: 'Genes',
36
- * assemblyNames: ['hg38'],
37
- * adapter: {
38
- * type: 'Gff3TabixAdapter',
39
- * uri: 'https://example.com/genes.sorted.gff.gz',
40
- * },
41
- * displayDefaults: { color: "jexl:feature.type=='CDS'?'red':'blue'" },
42
- * }
43
- * ```
44
- */
45
- const configSchema = (pluginManager) => ConfigurationSchema('FeatureTrack', {}, {
46
- /**
47
- * #baseConfiguration
48
- */
49
- baseConfiguration: createBaseTrackConfig(pluginManager),
50
- /**
51
- * #identifier
52
- */
53
- explicitIdentifier: 'trackId',
54
- });
55
- export default configSchema;
@@ -1,2 +0,0 @@
1
- import type PluginManager from '@jbrowse/core/PluginManager';
2
- export default function FeatureTrackF(pm: PluginManager): void;
@@ -1,13 +0,0 @@
1
- import { TrackType, createBaseTrackModel, } from '@jbrowse/core/pluggableElementTypes';
2
- import configSchemaF from './configSchema.js';
3
- export default function FeatureTrackF(pm) {
4
- pm.addTrackType(() => {
5
- const configSchema = configSchemaF(pm);
6
- return new TrackType({
7
- name: 'FeatureTrack',
8
- displayName: 'Feature track',
9
- configSchema,
10
- stateModel: createBaseTrackModel(pm, 'FeatureTrack', configSchema),
11
- });
12
- });
13
- }