@jbrowse/plugin-wiggle 2.1.7 → 2.2.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 (125) hide show
  1. package/dist/BigWigAdapter/configSchema.d.ts +2 -2
  2. package/dist/BigWigAdapter/configSchema.js +12 -1
  3. package/dist/BigWigAdapter/configSchema.js.map +1 -1
  4. package/dist/DensityRenderer/configSchema.js +11 -1
  5. package/dist/DensityRenderer/configSchema.js.map +1 -1
  6. package/dist/LinePlotRenderer/configSchema.js +14 -1
  7. package/dist/LinePlotRenderer/configSchema.js.map +1 -1
  8. package/dist/LinearWiggleDisplay/components/Tooltip.d.ts +1 -1
  9. package/dist/LinearWiggleDisplay/models/configSchema.js +38 -1
  10. package/dist/LinearWiggleDisplay/models/configSchema.js.map +1 -1
  11. package/dist/LinearWiggleDisplay/models/model.d.ts +203 -10
  12. package/dist/LinearWiggleDisplay/models/model.js +588 -408
  13. package/dist/LinearWiggleDisplay/models/model.js.map +1 -1
  14. package/dist/MultiDensityRenderer/configSchema.js +11 -1
  15. package/dist/MultiDensityRenderer/configSchema.js.map +1 -1
  16. package/dist/MultiLineRenderer/configSchema.js +17 -1
  17. package/dist/MultiLineRenderer/configSchema.js.map +1 -1
  18. package/dist/MultiLinearWiggleDisplay/components/Tooltip.d.ts +1 -1
  19. package/dist/MultiLinearWiggleDisplay/models/configSchema.js +38 -1
  20. package/dist/MultiLinearWiggleDisplay/models/configSchema.js.map +1 -1
  21. package/dist/MultiLinearWiggleDisplay/models/model.d.ts +3 -3
  22. package/dist/MultiQuantitativeTrack/configSchema.d.ts +3 -0
  23. package/dist/MultiQuantitativeTrack/configSchema.js +18 -0
  24. package/dist/MultiQuantitativeTrack/configSchema.js.map +1 -0
  25. package/dist/MultiQuantitativeTrack/index.js +2 -2
  26. package/dist/MultiQuantitativeTrack/index.js.map +1 -1
  27. package/dist/MultiRowLineRenderer/configSchema.js +17 -1
  28. package/dist/MultiRowLineRenderer/configSchema.js.map +1 -1
  29. package/dist/MultiRowXYPlotRenderer/configSchema.js +23 -1
  30. package/dist/MultiRowXYPlotRenderer/configSchema.js.map +1 -1
  31. package/dist/MultiWiggleAdapter/configSchema.d.ts +2 -2
  32. package/dist/MultiWiggleAdapter/configSchema.js +14 -1
  33. package/dist/MultiWiggleAdapter/configSchema.js.map +1 -1
  34. package/dist/MultiXYPlotRenderer/configSchema.js +23 -1
  35. package/dist/MultiXYPlotRenderer/configSchema.js.map +1 -1
  36. package/dist/QuantitativeTrack/configSchema.d.ts +3 -0
  37. package/dist/QuantitativeTrack/configSchema.js +18 -0
  38. package/dist/QuantitativeTrack/configSchema.js.map +1 -0
  39. package/dist/QuantitativeTrack/index.js +2 -2
  40. package/dist/QuantitativeTrack/index.js.map +1 -1
  41. package/dist/Tooltip.d.ts +2 -2
  42. package/dist/WiggleBaseRenderer.d.ts +4 -0
  43. package/dist/XYPlotRenderer/configSchema.js +23 -1
  44. package/dist/XYPlotRenderer/configSchema.js.map +1 -1
  45. package/dist/configSchema.d.ts +2 -2
  46. package/dist/configSchema.js +25 -1
  47. package/dist/configSchema.js.map +1 -1
  48. package/dist/drawxy.js +4 -4
  49. package/dist/drawxy.js.map +1 -1
  50. package/dist/index.d.ts +3 -307
  51. package/esm/BigWigAdapter/configSchema.d.ts +2 -2
  52. package/esm/BigWigAdapter/configSchema.js +12 -1
  53. package/esm/BigWigAdapter/configSchema.js.map +1 -1
  54. package/esm/DensityRenderer/configSchema.js +12 -2
  55. package/esm/DensityRenderer/configSchema.js.map +1 -1
  56. package/esm/LinePlotRenderer/configSchema.js +15 -2
  57. package/esm/LinePlotRenderer/configSchema.js.map +1 -1
  58. package/esm/LinearWiggleDisplay/components/Tooltip.d.ts +1 -1
  59. package/esm/LinearWiggleDisplay/models/configSchema.js +38 -1
  60. package/esm/LinearWiggleDisplay/models/configSchema.js.map +1 -1
  61. package/esm/LinearWiggleDisplay/models/model.d.ts +203 -10
  62. package/esm/LinearWiggleDisplay/models/model.js +588 -408
  63. package/esm/LinearWiggleDisplay/models/model.js.map +1 -1
  64. package/esm/MultiDensityRenderer/configSchema.js +12 -2
  65. package/esm/MultiDensityRenderer/configSchema.js.map +1 -1
  66. package/esm/MultiLineRenderer/configSchema.js +18 -2
  67. package/esm/MultiLineRenderer/configSchema.js.map +1 -1
  68. package/esm/MultiLinearWiggleDisplay/components/Tooltip.d.ts +1 -1
  69. package/esm/MultiLinearWiggleDisplay/models/configSchema.js +38 -1
  70. package/esm/MultiLinearWiggleDisplay/models/configSchema.js.map +1 -1
  71. package/esm/MultiLinearWiggleDisplay/models/model.d.ts +3 -3
  72. package/esm/MultiQuantitativeTrack/configSchema.d.ts +3 -0
  73. package/esm/MultiQuantitativeTrack/configSchema.js +16 -0
  74. package/esm/MultiQuantitativeTrack/configSchema.js.map +1 -0
  75. package/esm/MultiQuantitativeTrack/index.js +3 -3
  76. package/esm/MultiQuantitativeTrack/index.js.map +1 -1
  77. package/esm/MultiRowLineRenderer/configSchema.js +18 -2
  78. package/esm/MultiRowLineRenderer/configSchema.js.map +1 -1
  79. package/esm/MultiRowXYPlotRenderer/configSchema.js +24 -2
  80. package/esm/MultiRowXYPlotRenderer/configSchema.js.map +1 -1
  81. package/esm/MultiWiggleAdapter/configSchema.d.ts +2 -2
  82. package/esm/MultiWiggleAdapter/configSchema.js +14 -1
  83. package/esm/MultiWiggleAdapter/configSchema.js.map +1 -1
  84. package/esm/MultiXYPlotRenderer/configSchema.js +24 -2
  85. package/esm/MultiXYPlotRenderer/configSchema.js.map +1 -1
  86. package/esm/QuantitativeTrack/configSchema.d.ts +3 -0
  87. package/esm/QuantitativeTrack/configSchema.js +16 -0
  88. package/esm/QuantitativeTrack/configSchema.js.map +1 -0
  89. package/esm/QuantitativeTrack/index.js +3 -3
  90. package/esm/QuantitativeTrack/index.js.map +1 -1
  91. package/esm/Tooltip.d.ts +2 -2
  92. package/esm/WiggleBaseRenderer.d.ts +4 -0
  93. package/esm/XYPlotRenderer/configSchema.js +24 -2
  94. package/esm/XYPlotRenderer/configSchema.js.map +1 -1
  95. package/esm/configSchema.d.ts +2 -2
  96. package/esm/configSchema.js +25 -1
  97. package/esm/configSchema.js.map +1 -1
  98. package/esm/drawxy.js +4 -4
  99. package/esm/drawxy.js.map +1 -1
  100. package/esm/index.d.ts +3 -307
  101. package/package.json +2 -2
  102. package/src/BigWigAdapter/__snapshots__/BigWigAdapter.test.ts.snap +14 -14
  103. package/src/BigWigAdapter/configSchema.ts +15 -1
  104. package/src/DensityRenderer/__snapshots__/DensityRenderer.test.js.snap +9 -3
  105. package/src/DensityRenderer/configSchema.ts +13 -2
  106. package/src/LinePlotRenderer/configSchema.ts +16 -2
  107. package/src/LinearWiggleDisplay/models/configSchema.ts +40 -2
  108. package/src/LinearWiggleDisplay/models/model.tsx +192 -12
  109. package/src/MultiDensityRenderer/configSchema.ts +13 -2
  110. package/src/MultiLineRenderer/configSchema.ts +18 -3
  111. package/src/MultiLinearWiggleDisplay/models/configSchema.ts +41 -1
  112. package/src/MultiQuantitativeTrack/configSchema.ts +23 -0
  113. package/src/MultiQuantitativeTrack/index.ts +3 -10
  114. package/src/MultiRowLineRenderer/configSchema.ts +19 -2
  115. package/src/MultiRowXYPlotRenderer/configSchema.ts +25 -2
  116. package/src/MultiWiggleAdapter/configSchema.ts +17 -1
  117. package/src/MultiXYPlotRenderer/configSchema.ts +25 -2
  118. package/src/QuantitativeTrack/configSchema.ts +23 -0
  119. package/src/QuantitativeTrack/index.ts +3 -10
  120. package/src/WiggleBaseRenderer.tsx +1 -1
  121. package/src/XYPlotRenderer/__snapshots__/XYPlotRenderer.test.js.snap +9 -3
  122. package/src/XYPlotRenderer/configSchema.ts +25 -2
  123. package/src/__snapshots__/index.test.js.snap +1 -1
  124. package/src/configSchema.ts +26 -1
  125. package/src/drawxy.ts +4 -4
@@ -1,7 +1,7 @@
1
1
  // Jest Snapshot v1, https://goo.gl/fbAQLP
2
2
 
3
3
  exports[`adapter can fetch features from volvox.bw adapter can fetch stats from volvox.bw 1`] = `
4
- Object {
4
+ {
5
5
  "basesCovered": 49984,
6
6
  "featureDensity": 0.00002000640204865557,
7
7
  "scoreMax": 38,
@@ -14,7 +14,7 @@ Object {
14
14
  `;
15
15
 
16
16
  exports[`adapter can fetch features from volvox.bw get local stats 1`] = `
17
- Object {
17
+ {
18
18
  "basesCovered": 30100,
19
19
  "featureCount": 30000,
20
20
  "featureDensity": 0.9966777408637874,
@@ -28,7 +28,7 @@ Object {
28
28
  `;
29
29
 
30
30
  exports[`adapter can fetch features from volvox.bw get region stats 1`] = `
31
- Object {
31
+ {
32
32
  "basesCovered": 30001,
33
33
  "featureCount": 30001,
34
34
  "featureDensity": 1,
@@ -42,71 +42,71 @@ Object {
42
42
  `;
43
43
 
44
44
  exports[`adapter can fetch features from volvox.bw test basic aspects of getfeatures 1`] = `
45
- Array [
46
- Object {
45
+ [
46
+ {
47
47
  "end": 1003,
48
48
  "refName": "ctgA",
49
49
  "score": 18,
50
50
  "start": 1002,
51
51
  "uniqueId": ":ctgA:1002-1003",
52
52
  },
53
- Object {
53
+ {
54
54
  "end": 1004,
55
55
  "refName": "ctgA",
56
56
  "score": 18,
57
57
  "start": 1003,
58
58
  "uniqueId": ":ctgA:1003-1004",
59
59
  },
60
- Object {
60
+ {
61
61
  "end": 1005,
62
62
  "refName": "ctgA",
63
63
  "score": 18,
64
64
  "start": 1004,
65
65
  "uniqueId": ":ctgA:1004-1005",
66
66
  },
67
- Object {
67
+ {
68
68
  "end": 1006,
69
69
  "refName": "ctgA",
70
70
  "score": 19,
71
71
  "start": 1005,
72
72
  "uniqueId": ":ctgA:1005-1006",
73
73
  },
74
- Object {
74
+ {
75
75
  "end": 1007,
76
76
  "refName": "ctgA",
77
77
  "score": 20,
78
78
  "start": 1006,
79
79
  "uniqueId": ":ctgA:1006-1007",
80
80
  },
81
- Object {
81
+ {
82
82
  "end": 1008,
83
83
  "refName": "ctgA",
84
84
  "score": 20,
85
85
  "start": 1007,
86
86
  "uniqueId": ":ctgA:1007-1008",
87
87
  },
88
- Object {
88
+ {
89
89
  "end": 1009,
90
90
  "refName": "ctgA",
91
91
  "score": 20,
92
92
  "start": 1008,
93
93
  "uniqueId": ":ctgA:1008-1009",
94
94
  },
95
- Object {
95
+ {
96
96
  "end": 1010,
97
97
  "refName": "ctgA",
98
98
  "score": 20,
99
99
  "start": 1009,
100
100
  "uniqueId": ":ctgA:1009-1010",
101
101
  },
102
- Object {
102
+ {
103
103
  "end": 1011,
104
104
  "refName": "ctgA",
105
105
  "score": 20,
106
106
  "start": 1010,
107
107
  "uniqueId": ":ctgA:1010-1011",
108
108
  },
109
- Object {
109
+ {
110
110
  "end": 1012,
111
111
  "refName": "ctgA",
112
112
  "score": 19,
@@ -1,8 +1,16 @@
1
1
  import { ConfigurationSchema } from '@jbrowse/core/configuration'
2
2
 
3
- export default ConfigurationSchema(
3
+ /**
4
+ * #config BigWigAdapter
5
+ */
6
+ function x() {} // eslint-disable-line @typescript-eslint/no-unused-vars
7
+
8
+ const BigWigAdapter = ConfigurationSchema(
4
9
  'BigWigAdapter',
5
10
  {
11
+ /**
12
+ * #slot
13
+ */
6
14
  bigWigLocation: {
7
15
  type: 'fileLocation',
8
16
  defaultValue: {
@@ -10,6 +18,10 @@ export default ConfigurationSchema(
10
18
  locationType: 'UriLocation',
11
19
  },
12
20
  },
21
+
22
+ /**
23
+ * #slot
24
+ */
13
25
  source: {
14
26
  type: 'string',
15
27
  defaultValue: '',
@@ -18,3 +30,5 @@ export default ConfigurationSchema(
18
30
  },
19
31
  { explicitlyTyped: true },
20
32
  )
33
+
34
+ export default BigWigAdapter
@@ -1,10 +1,16 @@
1
1
  // Jest Snapshot v1, https://goo.gl/fbAQLP
2
2
 
3
3
  exports[`inverted mode and reversed 1`] = `
4
- Object {
4
+ {
5
5
  "imageData": Any<Object>,
6
- "reducedFeatures": Array [
7
- Object {
6
+ "reducedFeatures": [
7
+ {
8
+ "end": 100,
9
+ "score": 1,
10
+ "start": 1,
11
+ "uniqueId": "t1",
12
+ },
13
+ {
8
14
  "end": 200,
9
15
  "score": 2,
10
16
  "start": 101,
@@ -1,11 +1,22 @@
1
1
  import { ConfigurationSchema } from '@jbrowse/core/configuration'
2
2
 
3
- import ConfigSchema from '../configSchema'
3
+ import baseWiggleRendererConfigSchema from '../configSchema'
4
+
5
+ /**
6
+ * #config DensityRenderer
7
+ */
8
+ function x() {} // eslint-disable-line @typescript-eslint/no-unused-vars
4
9
 
5
10
  const configSchema = ConfigurationSchema(
6
11
  'DensityRenderer',
7
12
  {},
8
- { baseConfiguration: ConfigSchema, explicitlyTyped: true },
13
+ {
14
+ /**
15
+ * #baseConfiguration
16
+ */
17
+ baseConfiguration: baseWiggleRendererConfigSchema,
18
+ explicitlyTyped: true,
19
+ },
9
20
  )
10
21
 
11
22
  export default configSchema
@@ -1,16 +1,30 @@
1
1
  import { ConfigurationSchema } from '@jbrowse/core/configuration'
2
- import ConfigSchema from '../configSchema'
2
+ import baseWiggleRendererConfigSchema from '../configSchema'
3
+
4
+ /**
5
+ * #config LinePlotRenderer
6
+ */
7
+ function x() {} // eslint-disable-line @typescript-eslint/no-unused-vars
3
8
 
4
9
  const configSchema = ConfigurationSchema(
5
10
  'LinePlotRenderer',
6
11
  {
12
+ /**
13
+ * #slot
14
+ */
7
15
  displayCrossHatches: {
8
16
  type: 'boolean',
9
17
  description: 'choose to draw cross hatches (sideways lines)',
10
18
  defaultValue: false,
11
19
  },
12
20
  },
13
- { baseConfiguration: ConfigSchema, explicitlyTyped: true },
21
+ {
22
+ /**
23
+ * #baseConfiguration
24
+ */
25
+ baseConfiguration: baseWiggleRendererConfigSchema,
26
+ explicitlyTyped: true,
27
+ },
14
28
  )
15
29
 
16
30
  export default configSchema
@@ -3,6 +3,11 @@ import { baseLinearDisplayConfigSchema } from '@jbrowse/plugin-linear-genome-vie
3
3
  import { types } from 'mobx-state-tree'
4
4
  import PluginManager from '@jbrowse/core/PluginManager'
5
5
 
6
+ /**
7
+ * #config LinearWiggleDisplay
8
+ */
9
+ function x() {} // eslint-disable-line @typescript-eslint/no-unused-vars
10
+
6
11
  export default function WiggleConfigFactory(pluginManager: PluginManager) {
7
12
  const XYPlotRendererConfigSchema =
8
13
  pluginManager.getRendererType('XYPlotRenderer').configSchema
@@ -14,6 +19,9 @@ export default function WiggleConfigFactory(pluginManager: PluginManager) {
14
19
  return ConfigurationSchema(
15
20
  'LinearWiggleDisplay',
16
21
  {
22
+ /**
23
+ * #slot
24
+ */
17
25
  autoscale: {
18
26
  type: 'stringEnum',
19
27
  defaultValue: 'local',
@@ -27,52 +35,82 @@ export default function WiggleConfigFactory(pluginManager: PluginManager) {
27
35
  description:
28
36
  'global/local using their min/max values or w/ standard deviations (globalsd/localsd)',
29
37
  },
38
+
39
+ /**
40
+ * #slot
41
+ */
30
42
  minimalTicks: {
31
43
  type: 'boolean',
32
44
  defaultValue: false,
33
45
  description: 'use the minimal amount of ticks',
34
46
  },
35
47
 
48
+ /**
49
+ * #slot
50
+ */
36
51
  minScore: {
37
52
  type: 'number',
38
53
  defaultValue: Number.MIN_VALUE,
39
54
  description: 'minimum value for the y-scale',
40
55
  },
56
+ /**
57
+ * #slot
58
+ */
41
59
  maxScore: {
42
60
  type: 'number',
43
61
  description: 'maximum value for the y-scale',
44
62
  defaultValue: Number.MAX_VALUE,
45
63
  },
64
+ /**
65
+ * #slot
66
+ */
46
67
  numStdDev: {
47
68
  type: 'number',
48
69
  description:
49
70
  'number of standard deviations to use for autoscale types globalsd or localsd',
50
71
  defaultValue: 3,
51
72
  },
73
+ /**
74
+ * #slot
75
+ */
52
76
  scaleType: {
53
77
  type: 'stringEnum',
54
78
  model: types.enumeration('Scale type', ['linear', 'log']), // todo zscale
55
79
  description: 'The type of scale to use',
56
80
  defaultValue: 'linear',
57
81
  },
82
+ /**
83
+ * #slot
84
+ */
58
85
  inverted: {
59
86
  type: 'boolean',
60
87
  description: 'draw upside down',
61
88
  defaultValue: false,
62
89
  },
63
90
 
91
+ /**
92
+ * #slot
93
+ */
64
94
  defaultRendering: {
65
95
  type: 'stringEnum',
66
96
  model: types.enumeration('Rendering', ['density', 'xyplot', 'line']),
67
97
  defaultValue: 'xyplot',
68
98
  },
69
-
99
+ /**
100
+ * #slot
101
+ */
70
102
  renderers: ConfigurationSchema('RenderersConfiguration', {
71
103
  DensityRenderer: DensityRendererConfigSchema,
72
104
  XYPlotRenderer: XYPlotRendererConfigSchema,
73
105
  LinePlotRenderer: LinePlotRendererConfigSchema,
74
106
  }),
75
107
  },
76
- { baseConfiguration: baseLinearDisplayConfigSchema, explicitlyTyped: true },
108
+ {
109
+ /**
110
+ * #baseConfiguration
111
+ */
112
+ baseConfiguration: baseLinearDisplayConfigSchema,
113
+ explicitlyTyped: true,
114
+ },
77
115
  )
78
116
  }