@jbrowse/plugin-alignments 2.17.0 → 3.0.0

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 (471) hide show
  1. package/dist/AlignmentsFeatureDetail/AlignmentsFeatureDetail.d.ts +2 -3
  2. package/dist/AlignmentsFeatureDetail/AlignmentsFeatureDetail.js +25 -24
  3. package/dist/AlignmentsFeatureDetail/BreakendMultiLevelOptionDialog.js +0 -1
  4. package/dist/AlignmentsFeatureDetail/BreakendSingleLevelOptionDialog.js +0 -1
  5. package/dist/AlignmentsFeatureDetail/Flags.d.ts +1 -2
  6. package/dist/AlignmentsFeatureDetail/Flags.js +8 -10
  7. package/dist/AlignmentsFeatureDetail/Formatter.d.ts +1 -2
  8. package/dist/AlignmentsFeatureDetail/Formatter.js +11 -39
  9. package/dist/AlignmentsFeatureDetail/LaunchPairedEndBreakpointSplitViewPanel.d.ts +4 -7
  10. package/dist/AlignmentsFeatureDetail/LaunchPairedEndBreakpointSplitViewPanel.js +46 -54
  11. package/dist/AlignmentsFeatureDetail/LaunchSupplementaryAlignmentBreakpointSplitViewPanel.d.ts +4 -7
  12. package/dist/AlignmentsFeatureDetail/LaunchSupplementaryAlignmentBreakpointSplitViewPanel.js +58 -61
  13. package/dist/AlignmentsFeatureDetail/LinkedPairedAlignments.d.ts +3 -4
  14. package/dist/AlignmentsFeatureDetail/LinkedPairedAlignments.js +4 -5
  15. package/dist/AlignmentsFeatureDetail/PairLink.d.ts +2 -3
  16. package/dist/AlignmentsFeatureDetail/PairLink.js +3 -7
  17. package/dist/AlignmentsFeatureDetail/SupplementaryAlignments.d.ts +3 -4
  18. package/dist/AlignmentsFeatureDetail/SupplementaryAlignments.js +6 -9
  19. package/dist/AlignmentsFeatureDetail/SupplementaryAlignmentsLocStrings.d.ts +2 -3
  20. package/dist/AlignmentsFeatureDetail/SupplementaryAlignmentsLocStrings.js +21 -31
  21. package/dist/AlignmentsFeatureDetail/getSAFeatures.d.ts +2 -2
  22. package/dist/AlignmentsFeatureDetail/getSAFeatures.js +0 -4
  23. package/dist/AlignmentsFeatureDetail/index.d.ts +1 -1
  24. package/dist/AlignmentsFeatureDetail/index.js +17 -7
  25. package/dist/AlignmentsFeatureDetail/launchBreakpointSplitView.d.ts +2 -2
  26. package/dist/AlignmentsFeatureDetail/stateModelFactory.d.ts +2 -2
  27. package/dist/AlignmentsFeatureDetail/stateModelFactory.js +1 -1
  28. package/dist/AlignmentsFeatureDetail/tagInfo.js +1 -1
  29. package/dist/AlignmentsFeatureDetail/util.d.ts +1 -1
  30. package/dist/AlignmentsTrack/configSchemaF.d.ts +1 -1
  31. package/dist/AlignmentsTrack/configSchemaF.js +1 -8
  32. package/dist/AlignmentsTrack/index.d.ts +1 -1
  33. package/dist/AlignmentsTrack/index.js +0 -3
  34. package/dist/BamAdapter/BamAdapter.d.ts +6 -5
  35. package/dist/BamAdapter/BamAdapter.js +21 -39
  36. package/dist/BamAdapter/BamSlightlyLazyFeature.d.ts +3 -3
  37. package/dist/BamAdapter/BamSlightlyLazyFeature.js +0 -3
  38. package/dist/BamAdapter/configSchema.d.ts +0 -17
  39. package/dist/BamAdapter/configSchema.js +1 -22
  40. package/dist/BamAdapter/index.d.ts +1 -1
  41. package/dist/BamAdapter/index.js +17 -7
  42. package/dist/CramAdapter/CramAdapter.d.ts +6 -9
  43. package/dist/CramAdapter/CramAdapter.js +25 -43
  44. package/dist/CramAdapter/CramSlightlyLazyFeature.d.ts +3 -3
  45. package/dist/CramAdapter/CramSlightlyLazyFeature.js +0 -17
  46. package/dist/CramAdapter/CramTestAdapters.d.ts +3 -3
  47. package/dist/CramAdapter/CramTestAdapters.js +6 -6
  48. package/dist/CramAdapter/configSchema.d.ts +0 -14
  49. package/dist/CramAdapter/configSchema.js +1 -19
  50. package/dist/CramAdapter/index.d.ts +1 -1
  51. package/dist/CramAdapter/index.js +17 -8
  52. package/dist/CramAdapter/util.d.ts +2 -2
  53. package/dist/CramAdapter/util.js +1 -24
  54. package/dist/GuessAlignmentsTypes/index.d.ts +1 -1
  55. package/dist/GuessAlignmentsTypes/index.js +19 -34
  56. package/dist/HtsgetBamAdapter/HtsgetBamAdapter.d.ts +2 -2
  57. package/dist/HtsgetBamAdapter/configSchema.d.ts +0 -9
  58. package/dist/HtsgetBamAdapter/configSchema.js +1 -14
  59. package/dist/HtsgetBamAdapter/index.d.ts +1 -1
  60. package/dist/HtsgetBamAdapter/index.js +18 -8
  61. package/dist/LinearAlignmentsDisplay/alignmentsModel.d.ts +2 -5
  62. package/dist/LinearAlignmentsDisplay/alignmentsModel.js +1 -31
  63. package/dist/LinearAlignmentsDisplay/components/AlignmentsDisplay.d.ts +2 -3
  64. package/dist/LinearAlignmentsDisplay/components/AlignmentsDisplay.js +10 -18
  65. package/dist/LinearAlignmentsDisplay/configSchema.d.ts +2 -16
  66. package/dist/LinearAlignmentsDisplay/configSchema.js +3 -20
  67. package/dist/LinearAlignmentsDisplay/index.d.ts +1 -1
  68. package/dist/LinearAlignmentsDisplay/index.js +1 -2
  69. package/dist/LinearAlignmentsDisplay/model.d.ts +7 -77
  70. package/dist/LinearAlignmentsDisplay/model.js +10 -85
  71. package/dist/LinearAlignmentsDisplay/util.d.ts +1 -1
  72. package/dist/LinearPileupDisplay/SharedLinearPileupDisplayMixin.d.ts +52 -164
  73. package/dist/LinearPileupDisplay/SharedLinearPileupDisplayMixin.js +71 -145
  74. package/dist/LinearPileupDisplay/components/ColorByTagDialog.d.ts +1 -2
  75. package/dist/LinearPileupDisplay/components/ColorByTagDialog.js +12 -41
  76. package/dist/LinearPileupDisplay/components/GroupByDialog.d.ts +3 -4
  77. package/dist/LinearPileupDisplay/components/GroupByDialog.js +106 -92
  78. package/dist/LinearPileupDisplay/components/LinearPileupDisplayBlurb.d.ts +3 -8
  79. package/dist/LinearPileupDisplay/components/LinearPileupDisplayBlurb.js +3 -7
  80. package/dist/LinearPileupDisplay/components/SetFeatureHeightDialog.d.ts +1 -2
  81. package/dist/LinearPileupDisplay/components/SetFeatureHeightDialog.js +15 -44
  82. package/dist/LinearPileupDisplay/components/SetMaxHeightDialog.d.ts +1 -2
  83. package/dist/LinearPileupDisplay/components/SetMaxHeightDialog.js +12 -40
  84. package/dist/LinearPileupDisplay/components/SortByTagDialog.d.ts +1 -2
  85. package/dist/LinearPileupDisplay/components/SortByTagDialog.js +17 -46
  86. package/dist/LinearPileupDisplay/configSchema.d.ts +13 -16
  87. package/dist/LinearPileupDisplay/configSchema.js +12 -30
  88. package/dist/LinearPileupDisplay/index.d.ts +1 -1
  89. package/dist/LinearPileupDisplay/index.js +2 -2
  90. package/dist/LinearPileupDisplay/model.d.ts +123 -111
  91. package/dist/LinearPileupDisplay/model.js +29 -109
  92. package/dist/LinearReadArcsDisplay/components/ReactComponent.d.ts +2 -3
  93. package/dist/LinearReadArcsDisplay/components/ReactComponent.js +6 -33
  94. package/dist/LinearReadArcsDisplay/configSchema.d.ts +12 -20
  95. package/dist/LinearReadArcsDisplay/configSchema.js +8 -31
  96. package/dist/LinearReadArcsDisplay/drawFeats.d.ts +1 -1
  97. package/dist/LinearReadArcsDisplay/drawFeats.js +1 -9
  98. package/dist/LinearReadArcsDisplay/index.d.ts +1 -1
  99. package/dist/LinearReadArcsDisplay/index.js +18 -9
  100. package/dist/LinearReadArcsDisplay/model.d.ts +16 -94
  101. package/dist/LinearReadArcsDisplay/model.js +34 -111
  102. package/dist/LinearReadArcsDisplay/util.d.ts +1 -1
  103. package/dist/LinearReadCloudDisplay/components/ReactComponent.d.ts +2 -3
  104. package/dist/LinearReadCloudDisplay/components/ReactComponent.js +6 -33
  105. package/dist/LinearReadCloudDisplay/configSchema.d.ts +5 -17
  106. package/dist/LinearReadCloudDisplay/configSchema.js +3 -28
  107. package/dist/LinearReadCloudDisplay/drawFeats.d.ts +1 -1
  108. package/dist/LinearReadCloudDisplay/drawFeats.js +2 -2
  109. package/dist/LinearReadCloudDisplay/drawLongReadChains.d.ts +4 -4
  110. package/dist/LinearReadCloudDisplay/drawLongReadChains.js +1 -4
  111. package/dist/LinearReadCloudDisplay/drawPairChains.d.ts +4 -4
  112. package/dist/LinearReadCloudDisplay/drawPairChains.js +0 -3
  113. package/dist/LinearReadCloudDisplay/index.d.ts +1 -1
  114. package/dist/LinearReadCloudDisplay/index.js +18 -9
  115. package/dist/LinearReadCloudDisplay/model.d.ts +14 -56
  116. package/dist/LinearReadCloudDisplay/model.js +34 -75
  117. package/dist/LinearReadCloudDisplay/util.js +0 -1
  118. package/dist/LinearSNPCoverageDisplay/components/Tooltip.d.ts +2 -3
  119. package/dist/LinearSNPCoverageDisplay/components/Tooltip.js +16 -55
  120. package/dist/LinearSNPCoverageDisplay/configSchema.d.ts +17 -22
  121. package/dist/LinearSNPCoverageDisplay/configSchema.js +16 -32
  122. package/dist/LinearSNPCoverageDisplay/index.d.ts +1 -1
  123. package/dist/LinearSNPCoverageDisplay/index.js +1 -2
  124. package/dist/LinearSNPCoverageDisplay/model.d.ts +13 -54
  125. package/dist/LinearSNPCoverageDisplay/model.js +69 -159
  126. package/dist/MismatchParser/cigarToMismatches.d.ts +2 -3
  127. package/dist/MismatchParser/cigarToMismatches.js +4 -7
  128. package/dist/MismatchParser/getNextRefPos.js +0 -2
  129. package/dist/MismatchParser/index.d.ts +3 -4
  130. package/dist/MismatchParser/index.js +1 -9
  131. package/dist/MismatchParser/mdToMismatches.d.ts +2 -3
  132. package/dist/MismatchParser/mdToMismatches.js +0 -6
  133. package/dist/ModificationParser/index.d.ts +1 -1
  134. package/dist/ModificationParser/index.js +1 -18
  135. package/dist/PileupRPC/base.d.ts +2 -2
  136. package/dist/PileupRPC/base.js +0 -1
  137. package/dist/PileupRPC/index.d.ts +1 -1
  138. package/dist/PileupRPC/methods/GetGlobalValueForTag.d.ts +2 -3
  139. package/dist/PileupRPC/methods/GetGlobalValueForTag.js +1 -2
  140. package/dist/PileupRPC/methods/GetReducedFeatures.d.ts +2 -3
  141. package/dist/PileupRPC/methods/GetReducedFeatures.js +3 -5
  142. package/dist/PileupRPC/methods/GetVisibleModifications.d.ts +3 -4
  143. package/dist/PileupRPC/methods/GetVisibleModifications.js +1 -1
  144. package/dist/PileupRPC/util.d.ts +1 -1
  145. package/dist/PileupRenderer/PileupLayoutSession.d.ts +5 -5
  146. package/dist/PileupRenderer/PileupLayoutSession.js +2 -5
  147. package/dist/PileupRenderer/PileupRenderer.d.ts +14 -24
  148. package/dist/PileupRenderer/PileupRenderer.js +28 -23
  149. package/dist/PileupRenderer/colorBy.d.ts +2 -2
  150. package/dist/PileupRenderer/colorBy.js +0 -6
  151. package/dist/PileupRenderer/components/PileupRendering.d.ts +2 -3
  152. package/dist/PileupRenderer/components/PileupRendering.js +15 -43
  153. package/dist/PileupRenderer/configSchema.d.ts +5 -31
  154. package/dist/PileupRenderer/configSchema.js +6 -35
  155. package/dist/PileupRenderer/getAlignmentShapeColor.d.ts +2 -2
  156. package/dist/PileupRenderer/getAlignmentShapeColor.js +1 -6
  157. package/dist/PileupRenderer/index.d.ts +1 -1
  158. package/dist/PileupRenderer/index.js +1 -1
  159. package/dist/PileupRenderer/layoutFeature.d.ts +2 -2
  160. package/dist/PileupRenderer/layoutFeature.js +0 -1
  161. package/dist/PileupRenderer/layoutFeatures.d.ts +5 -2
  162. package/dist/PileupRenderer/layoutFeatures.js +6 -4
  163. package/dist/PileupRenderer/makeImageData.d.ts +3 -4
  164. package/dist/PileupRenderer/makeImageData.js +10 -2
  165. package/dist/PileupRenderer/renderAlignment.d.ts +3 -3
  166. package/dist/PileupRenderer/renderAlignment.js +3 -5
  167. package/dist/PileupRenderer/renderAlignmentShape.d.ts +3 -3
  168. package/dist/PileupRenderer/renderAlignmentShape.js +1 -1
  169. package/dist/PileupRenderer/renderMethylation.d.ts +4 -4
  170. package/dist/PileupRenderer/renderMethylation.js +0 -4
  171. package/dist/PileupRenderer/renderMismatches.d.ts +5 -4
  172. package/dist/PileupRenderer/renderMismatches.js +19 -25
  173. package/dist/PileupRenderer/renderModifications.d.ts +3 -3
  174. package/dist/PileupRenderer/renderModifications.js +1 -3
  175. package/dist/PileupRenderer/renderPerBaseLettering.d.ts +2 -2
  176. package/dist/PileupRenderer/renderPerBaseLettering.js +0 -1
  177. package/dist/PileupRenderer/renderPerBaseQuality.d.ts +2 -2
  178. package/dist/PileupRenderer/renderPerBaseQuality.js +2 -2
  179. package/dist/PileupRenderer/renderSoftClipping.d.ts +5 -5
  180. package/dist/PileupRenderer/renderSoftClipping.js +0 -4
  181. package/dist/PileupRenderer/sortUtil.d.ts +2 -2
  182. package/dist/PileupRenderer/sortUtil.js +1 -4
  183. package/dist/PileupRenderer/types.d.ts +26 -0
  184. package/dist/PileupRenderer/types.js +2 -0
  185. package/dist/PileupRenderer/util.d.ts +2 -2
  186. package/dist/PileupRenderer/util.js +1 -3
  187. package/dist/SNPCoverageAdapter/SNPCoverageAdapter.d.ts +4 -3
  188. package/dist/SNPCoverageAdapter/SNPCoverageAdapter.js +4 -6
  189. package/dist/SNPCoverageAdapter/configSchema.d.ts +0 -4
  190. package/dist/SNPCoverageAdapter/configSchema.js +1 -8
  191. package/dist/SNPCoverageAdapter/generateCoverageBins.d.ts +4 -8
  192. package/dist/SNPCoverageAdapter/generateCoverageBins.js +25 -247
  193. package/dist/SNPCoverageAdapter/index.d.ts +1 -1
  194. package/dist/SNPCoverageAdapter/index.js +17 -7
  195. package/dist/SNPCoverageAdapter/processDepth.d.ts +8 -0
  196. package/dist/SNPCoverageAdapter/processDepth.js +38 -0
  197. package/dist/SNPCoverageAdapter/processMismatches.d.ts +9 -0
  198. package/dist/SNPCoverageAdapter/processMismatches.js +58 -0
  199. package/dist/SNPCoverageAdapter/processModifications.d.ts +10 -0
  200. package/dist/SNPCoverageAdapter/processModifications.js +49 -0
  201. package/dist/SNPCoverageAdapter/processReferenceCpGs.d.ts +9 -0
  202. package/dist/SNPCoverageAdapter/processReferenceCpGs.js +63 -0
  203. package/dist/SNPCoverageAdapter/util.d.ts +10 -0
  204. package/dist/SNPCoverageAdapter/util.js +41 -0
  205. package/dist/SNPCoverageRenderer/SNPCoverageRenderer.d.ts +2 -18
  206. package/dist/SNPCoverageRenderer/SNPCoverageRenderer.js +35 -288
  207. package/dist/SNPCoverageRenderer/configSchema.d.ts +3 -18
  208. package/dist/SNPCoverageRenderer/configSchema.js +4 -22
  209. package/dist/SNPCoverageRenderer/index.d.ts +1 -1
  210. package/dist/SNPCoverageRenderer/index.js +2 -2
  211. package/dist/SNPCoverageRenderer/makeImage.d.ts +2 -0
  212. package/dist/SNPCoverageRenderer/makeImage.js +270 -0
  213. package/dist/SNPCoverageRenderer/types.d.ts +19 -0
  214. package/dist/SNPCoverageRenderer/types.js +2 -0
  215. package/dist/index.d.ts +2 -2
  216. package/dist/index.js +29 -19
  217. package/dist/shared/afterAttach.d.ts +1 -1
  218. package/dist/shared/afterAttach.js +0 -2
  219. package/dist/shared/color.d.ts +1 -1
  220. package/dist/shared/color.js +0 -8
  221. package/dist/shared/components/BaseDisplayComponent.d.ts +3 -4
  222. package/dist/shared/components/BaseDisplayComponent.js +13 -19
  223. package/dist/shared/components/FilterByTagDialog.d.ts +2 -3
  224. package/dist/shared/components/FilterByTagDialog.js +44 -94
  225. package/dist/shared/fetchChains.d.ts +2 -2
  226. package/dist/shared/fetchChains.js +1 -2
  227. package/dist/shared/getMaximumModificationAtEachPosition.d.ts +1 -1
  228. package/dist/shared/getMaximumModificationAtEachPosition.js +1 -2
  229. package/dist/shared/getUniqueModifications.d.ts +5 -5
  230. package/dist/shared/getUniqueTags.d.ts +4 -4
  231. package/dist/shared/renderSvgUtil.d.ts +1 -2
  232. package/dist/shared/renderSvgUtil.js +20 -19
  233. package/dist/shared/util.d.ts +11 -1
  234. package/dist/shared/util.js +27 -1
  235. package/dist/util.d.ts +4 -4
  236. package/dist/util.js +3 -9
  237. package/esm/AlignmentsFeatureDetail/AlignmentsFeatureDetail.d.ts +2 -3
  238. package/esm/AlignmentsFeatureDetail/AlignmentsFeatureDetail.js +8 -17
  239. package/esm/AlignmentsFeatureDetail/BreakendMultiLevelOptionDialog.js +0 -1
  240. package/esm/AlignmentsFeatureDetail/BreakendSingleLevelOptionDialog.js +0 -1
  241. package/esm/AlignmentsFeatureDetail/Flags.d.ts +1 -2
  242. package/esm/AlignmentsFeatureDetail/Flags.js +8 -10
  243. package/esm/AlignmentsFeatureDetail/Formatter.d.ts +1 -2
  244. package/esm/AlignmentsFeatureDetail/Formatter.js +11 -16
  245. package/esm/AlignmentsFeatureDetail/LaunchPairedEndBreakpointSplitViewPanel.d.ts +4 -7
  246. package/esm/AlignmentsFeatureDetail/LaunchPairedEndBreakpointSplitViewPanel.js +30 -48
  247. package/esm/AlignmentsFeatureDetail/LaunchSupplementaryAlignmentBreakpointSplitViewPanel.d.ts +4 -7
  248. package/esm/AlignmentsFeatureDetail/LaunchSupplementaryAlignmentBreakpointSplitViewPanel.js +41 -54
  249. package/esm/AlignmentsFeatureDetail/LinkedPairedAlignments.d.ts +3 -4
  250. package/esm/AlignmentsFeatureDetail/LinkedPairedAlignments.js +4 -5
  251. package/esm/AlignmentsFeatureDetail/PairLink.d.ts +2 -3
  252. package/esm/AlignmentsFeatureDetail/PairLink.js +3 -4
  253. package/esm/AlignmentsFeatureDetail/SupplementaryAlignments.d.ts +3 -4
  254. package/esm/AlignmentsFeatureDetail/SupplementaryAlignments.js +6 -9
  255. package/esm/AlignmentsFeatureDetail/SupplementaryAlignmentsLocStrings.d.ts +2 -3
  256. package/esm/AlignmentsFeatureDetail/SupplementaryAlignmentsLocStrings.js +22 -29
  257. package/esm/AlignmentsFeatureDetail/getSAFeatures.d.ts +2 -2
  258. package/esm/AlignmentsFeatureDetail/getSAFeatures.js +0 -4
  259. package/esm/AlignmentsFeatureDetail/index.d.ts +1 -1
  260. package/esm/AlignmentsFeatureDetail/launchBreakpointSplitView.d.ts +2 -2
  261. package/esm/AlignmentsFeatureDetail/stateModelFactory.d.ts +2 -2
  262. package/esm/AlignmentsFeatureDetail/stateModelFactory.js +1 -1
  263. package/esm/AlignmentsFeatureDetail/tagInfo.js +1 -1
  264. package/esm/AlignmentsFeatureDetail/util.d.ts +1 -1
  265. package/esm/AlignmentsTrack/configSchemaF.d.ts +1 -1
  266. package/esm/AlignmentsTrack/configSchemaF.js +1 -8
  267. package/esm/AlignmentsTrack/index.d.ts +1 -1
  268. package/esm/AlignmentsTrack/index.js +0 -3
  269. package/esm/BamAdapter/BamAdapter.d.ts +6 -5
  270. package/esm/BamAdapter/BamAdapter.js +19 -37
  271. package/esm/BamAdapter/BamSlightlyLazyFeature.d.ts +3 -3
  272. package/esm/BamAdapter/BamSlightlyLazyFeature.js +0 -3
  273. package/esm/BamAdapter/configSchema.d.ts +0 -17
  274. package/esm/BamAdapter/configSchema.js +1 -22
  275. package/esm/BamAdapter/index.d.ts +1 -1
  276. package/esm/CramAdapter/CramAdapter.d.ts +6 -9
  277. package/esm/CramAdapter/CramAdapter.js +24 -42
  278. package/esm/CramAdapter/CramSlightlyLazyFeature.d.ts +3 -3
  279. package/esm/CramAdapter/CramSlightlyLazyFeature.js +0 -17
  280. package/esm/CramAdapter/CramTestAdapters.d.ts +3 -3
  281. package/esm/CramAdapter/CramTestAdapters.js +6 -6
  282. package/esm/CramAdapter/configSchema.d.ts +0 -14
  283. package/esm/CramAdapter/configSchema.js +1 -19
  284. package/esm/CramAdapter/index.d.ts +1 -1
  285. package/esm/CramAdapter/index.js +0 -1
  286. package/esm/CramAdapter/util.d.ts +2 -2
  287. package/esm/CramAdapter/util.js +1 -24
  288. package/esm/GuessAlignmentsTypes/index.d.ts +1 -1
  289. package/esm/GuessAlignmentsTypes/index.js +20 -35
  290. package/esm/HtsgetBamAdapter/HtsgetBamAdapter.d.ts +2 -2
  291. package/esm/HtsgetBamAdapter/configSchema.d.ts +0 -9
  292. package/esm/HtsgetBamAdapter/configSchema.js +1 -14
  293. package/esm/HtsgetBamAdapter/index.d.ts +1 -1
  294. package/esm/HtsgetBamAdapter/index.js +1 -1
  295. package/esm/LinearAlignmentsDisplay/alignmentsModel.d.ts +2 -5
  296. package/esm/LinearAlignmentsDisplay/alignmentsModel.js +1 -31
  297. package/esm/LinearAlignmentsDisplay/components/AlignmentsDisplay.d.ts +2 -3
  298. package/esm/LinearAlignmentsDisplay/components/AlignmentsDisplay.js +10 -15
  299. package/esm/LinearAlignmentsDisplay/configSchema.d.ts +2 -16
  300. package/esm/LinearAlignmentsDisplay/configSchema.js +3 -20
  301. package/esm/LinearAlignmentsDisplay/index.d.ts +1 -1
  302. package/esm/LinearAlignmentsDisplay/index.js +1 -2
  303. package/esm/LinearAlignmentsDisplay/model.d.ts +7 -77
  304. package/esm/LinearAlignmentsDisplay/model.js +11 -86
  305. package/esm/LinearAlignmentsDisplay/util.d.ts +1 -1
  306. package/esm/LinearPileupDisplay/SharedLinearPileupDisplayMixin.d.ts +52 -164
  307. package/esm/LinearPileupDisplay/SharedLinearPileupDisplayMixin.js +56 -140
  308. package/esm/LinearPileupDisplay/components/ColorByTagDialog.d.ts +1 -2
  309. package/esm/LinearPileupDisplay/components/ColorByTagDialog.js +12 -18
  310. package/esm/LinearPileupDisplay/components/GroupByDialog.d.ts +3 -4
  311. package/esm/LinearPileupDisplay/components/GroupByDialog.js +106 -69
  312. package/esm/LinearPileupDisplay/components/LinearPileupDisplayBlurb.d.ts +3 -8
  313. package/esm/LinearPileupDisplay/components/LinearPileupDisplayBlurb.js +3 -4
  314. package/esm/LinearPileupDisplay/components/SetFeatureHeightDialog.d.ts +1 -2
  315. package/esm/LinearPileupDisplay/components/SetFeatureHeightDialog.js +15 -21
  316. package/esm/LinearPileupDisplay/components/SetMaxHeightDialog.d.ts +1 -2
  317. package/esm/LinearPileupDisplay/components/SetMaxHeightDialog.js +12 -17
  318. package/esm/LinearPileupDisplay/components/SortByTagDialog.d.ts +1 -2
  319. package/esm/LinearPileupDisplay/components/SortByTagDialog.js +17 -23
  320. package/esm/LinearPileupDisplay/configSchema.d.ts +13 -16
  321. package/esm/LinearPileupDisplay/configSchema.js +12 -30
  322. package/esm/LinearPileupDisplay/index.d.ts +1 -1
  323. package/esm/LinearPileupDisplay/index.js +2 -2
  324. package/esm/LinearPileupDisplay/model.d.ts +123 -111
  325. package/esm/LinearPileupDisplay/model.js +13 -103
  326. package/esm/LinearReadArcsDisplay/components/ReactComponent.d.ts +2 -3
  327. package/esm/LinearReadArcsDisplay/components/ReactComponent.js +6 -10
  328. package/esm/LinearReadArcsDisplay/configSchema.d.ts +12 -20
  329. package/esm/LinearReadArcsDisplay/configSchema.js +8 -31
  330. package/esm/LinearReadArcsDisplay/drawFeats.d.ts +1 -1
  331. package/esm/LinearReadArcsDisplay/drawFeats.js +1 -9
  332. package/esm/LinearReadArcsDisplay/index.d.ts +1 -1
  333. package/esm/LinearReadArcsDisplay/index.js +1 -2
  334. package/esm/LinearReadArcsDisplay/model.d.ts +16 -94
  335. package/esm/LinearReadArcsDisplay/model.js +18 -105
  336. package/esm/LinearReadArcsDisplay/util.d.ts +1 -1
  337. package/esm/LinearReadCloudDisplay/components/ReactComponent.d.ts +2 -3
  338. package/esm/LinearReadCloudDisplay/components/ReactComponent.js +6 -10
  339. package/esm/LinearReadCloudDisplay/configSchema.d.ts +5 -17
  340. package/esm/LinearReadCloudDisplay/configSchema.js +3 -28
  341. package/esm/LinearReadCloudDisplay/drawFeats.d.ts +1 -1
  342. package/esm/LinearReadCloudDisplay/drawFeats.js +2 -2
  343. package/esm/LinearReadCloudDisplay/drawLongReadChains.d.ts +4 -4
  344. package/esm/LinearReadCloudDisplay/drawLongReadChains.js +1 -4
  345. package/esm/LinearReadCloudDisplay/drawPairChains.d.ts +4 -4
  346. package/esm/LinearReadCloudDisplay/drawPairChains.js +0 -3
  347. package/esm/LinearReadCloudDisplay/index.d.ts +1 -1
  348. package/esm/LinearReadCloudDisplay/index.js +1 -2
  349. package/esm/LinearReadCloudDisplay/model.d.ts +14 -56
  350. package/esm/LinearReadCloudDisplay/model.js +17 -68
  351. package/esm/LinearReadCloudDisplay/util.js +0 -1
  352. package/esm/LinearSNPCoverageDisplay/components/Tooltip.d.ts +2 -3
  353. package/esm/LinearSNPCoverageDisplay/components/Tooltip.js +16 -52
  354. package/esm/LinearSNPCoverageDisplay/configSchema.d.ts +17 -22
  355. package/esm/LinearSNPCoverageDisplay/configSchema.js +16 -32
  356. package/esm/LinearSNPCoverageDisplay/index.d.ts +1 -1
  357. package/esm/LinearSNPCoverageDisplay/index.js +1 -2
  358. package/esm/LinearSNPCoverageDisplay/model.d.ts +13 -54
  359. package/esm/LinearSNPCoverageDisplay/model.js +53 -153
  360. package/esm/MismatchParser/cigarToMismatches.d.ts +2 -3
  361. package/esm/MismatchParser/cigarToMismatches.js +4 -7
  362. package/esm/MismatchParser/getNextRefPos.js +0 -2
  363. package/esm/MismatchParser/index.d.ts +3 -4
  364. package/esm/MismatchParser/index.js +1 -9
  365. package/esm/MismatchParser/mdToMismatches.d.ts +2 -3
  366. package/esm/MismatchParser/mdToMismatches.js +0 -6
  367. package/esm/ModificationParser/index.d.ts +1 -1
  368. package/esm/ModificationParser/index.js +1 -18
  369. package/esm/PileupRPC/base.d.ts +2 -2
  370. package/esm/PileupRPC/base.js +0 -1
  371. package/esm/PileupRPC/index.d.ts +1 -1
  372. package/esm/PileupRPC/index.js +1 -1
  373. package/esm/PileupRPC/methods/GetGlobalValueForTag.d.ts +2 -3
  374. package/esm/PileupRPC/methods/GetGlobalValueForTag.js +1 -2
  375. package/esm/PileupRPC/methods/GetReducedFeatures.d.ts +2 -3
  376. package/esm/PileupRPC/methods/GetReducedFeatures.js +3 -5
  377. package/esm/PileupRPC/methods/GetVisibleModifications.d.ts +3 -4
  378. package/esm/PileupRPC/methods/GetVisibleModifications.js +1 -1
  379. package/esm/PileupRPC/util.d.ts +1 -1
  380. package/esm/PileupRenderer/PileupLayoutSession.d.ts +5 -5
  381. package/esm/PileupRenderer/PileupLayoutSession.js +2 -5
  382. package/esm/PileupRenderer/PileupRenderer.d.ts +14 -24
  383. package/esm/PileupRenderer/PileupRenderer.js +12 -17
  384. package/esm/PileupRenderer/colorBy.d.ts +2 -2
  385. package/esm/PileupRenderer/colorBy.js +1 -7
  386. package/esm/PileupRenderer/components/PileupRendering.d.ts +2 -3
  387. package/esm/PileupRenderer/components/PileupRendering.js +15 -20
  388. package/esm/PileupRenderer/configSchema.d.ts +5 -31
  389. package/esm/PileupRenderer/configSchema.js +6 -35
  390. package/esm/PileupRenderer/getAlignmentShapeColor.d.ts +2 -2
  391. package/esm/PileupRenderer/getAlignmentShapeColor.js +2 -7
  392. package/esm/PileupRenderer/index.d.ts +1 -1
  393. package/esm/PileupRenderer/index.js +1 -1
  394. package/esm/PileupRenderer/layoutFeature.d.ts +2 -2
  395. package/esm/PileupRenderer/layoutFeature.js +0 -1
  396. package/esm/PileupRenderer/layoutFeatures.d.ts +5 -2
  397. package/esm/PileupRenderer/layoutFeatures.js +7 -5
  398. package/esm/PileupRenderer/makeImageData.d.ts +3 -4
  399. package/esm/PileupRenderer/makeImageData.js +10 -2
  400. package/esm/PileupRenderer/renderAlignment.d.ts +3 -3
  401. package/esm/PileupRenderer/renderAlignment.js +3 -5
  402. package/esm/PileupRenderer/renderAlignmentShape.d.ts +3 -3
  403. package/esm/PileupRenderer/renderAlignmentShape.js +1 -1
  404. package/esm/PileupRenderer/renderMethylation.d.ts +4 -4
  405. package/esm/PileupRenderer/renderMethylation.js +0 -4
  406. package/esm/PileupRenderer/renderMismatches.d.ts +5 -4
  407. package/esm/PileupRenderer/renderMismatches.js +19 -25
  408. package/esm/PileupRenderer/renderModifications.d.ts +3 -3
  409. package/esm/PileupRenderer/renderModifications.js +1 -3
  410. package/esm/PileupRenderer/renderPerBaseLettering.d.ts +2 -2
  411. package/esm/PileupRenderer/renderPerBaseLettering.js +0 -1
  412. package/esm/PileupRenderer/renderPerBaseQuality.d.ts +2 -2
  413. package/esm/PileupRenderer/renderPerBaseQuality.js +2 -2
  414. package/esm/PileupRenderer/renderSoftClipping.d.ts +5 -5
  415. package/esm/PileupRenderer/renderSoftClipping.js +1 -5
  416. package/esm/PileupRenderer/sortUtil.d.ts +2 -2
  417. package/esm/PileupRenderer/sortUtil.js +1 -4
  418. package/esm/PileupRenderer/types.d.ts +26 -0
  419. package/esm/PileupRenderer/types.js +1 -0
  420. package/esm/PileupRenderer/util.d.ts +2 -2
  421. package/esm/PileupRenderer/util.js +1 -3
  422. package/esm/SNPCoverageAdapter/SNPCoverageAdapter.d.ts +4 -3
  423. package/esm/SNPCoverageAdapter/SNPCoverageAdapter.js +5 -7
  424. package/esm/SNPCoverageAdapter/configSchema.d.ts +0 -4
  425. package/esm/SNPCoverageAdapter/configSchema.js +1 -8
  426. package/esm/SNPCoverageAdapter/generateCoverageBins.d.ts +4 -8
  427. package/esm/SNPCoverageAdapter/generateCoverageBins.js +24 -246
  428. package/esm/SNPCoverageAdapter/index.d.ts +1 -1
  429. package/esm/SNPCoverageAdapter/processDepth.d.ts +8 -0
  430. package/esm/SNPCoverageAdapter/processDepth.js +35 -0
  431. package/esm/SNPCoverageAdapter/processMismatches.d.ts +9 -0
  432. package/esm/SNPCoverageAdapter/processMismatches.js +55 -0
  433. package/esm/SNPCoverageAdapter/processModifications.d.ts +10 -0
  434. package/esm/SNPCoverageAdapter/processModifications.js +46 -0
  435. package/esm/SNPCoverageAdapter/processReferenceCpGs.d.ts +9 -0
  436. package/esm/SNPCoverageAdapter/processReferenceCpGs.js +60 -0
  437. package/esm/SNPCoverageAdapter/util.d.ts +10 -0
  438. package/esm/SNPCoverageAdapter/util.js +35 -0
  439. package/esm/SNPCoverageRenderer/SNPCoverageRenderer.d.ts +2 -18
  440. package/esm/SNPCoverageRenderer/SNPCoverageRenderer.js +3 -289
  441. package/esm/SNPCoverageRenderer/configSchema.d.ts +3 -18
  442. package/esm/SNPCoverageRenderer/configSchema.js +4 -22
  443. package/esm/SNPCoverageRenderer/index.d.ts +1 -1
  444. package/esm/SNPCoverageRenderer/index.js +2 -2
  445. package/esm/SNPCoverageRenderer/makeImage.d.ts +2 -0
  446. package/esm/SNPCoverageRenderer/makeImage.js +267 -0
  447. package/esm/SNPCoverageRenderer/types.d.ts +19 -0
  448. package/esm/SNPCoverageRenderer/types.js +1 -0
  449. package/esm/index.d.ts +2 -2
  450. package/esm/index.js +10 -10
  451. package/esm/shared/afterAttach.d.ts +1 -1
  452. package/esm/shared/afterAttach.js +0 -2
  453. package/esm/shared/color.d.ts +1 -1
  454. package/esm/shared/color.js +0 -8
  455. package/esm/shared/components/BaseDisplayComponent.d.ts +3 -4
  456. package/esm/shared/components/BaseDisplayComponent.js +13 -16
  457. package/esm/shared/components/FilterByTagDialog.d.ts +2 -3
  458. package/esm/shared/components/FilterByTagDialog.js +44 -71
  459. package/esm/shared/fetchChains.d.ts +2 -2
  460. package/esm/shared/fetchChains.js +1 -2
  461. package/esm/shared/getMaximumModificationAtEachPosition.d.ts +1 -1
  462. package/esm/shared/getMaximumModificationAtEachPosition.js +1 -2
  463. package/esm/shared/getUniqueModifications.d.ts +5 -5
  464. package/esm/shared/getUniqueTags.d.ts +4 -4
  465. package/esm/shared/renderSvgUtil.d.ts +1 -2
  466. package/esm/shared/renderSvgUtil.js +3 -9
  467. package/esm/shared/util.d.ts +11 -1
  468. package/esm/shared/util.js +24 -0
  469. package/esm/util.d.ts +4 -4
  470. package/esm/util.js +3 -9
  471. package/package.json +6 -7
@@ -1,46 +1,21 @@
1
1
  import { ConfigurationSchema } from '@jbrowse/core/configuration';
2
2
  import { linearBasicDisplayConfigSchemaFactory } from '@jbrowse/plugin-linear-genome-view';
3
- import { types } from 'mobx-state-tree';
4
- /**
5
- * #config LinearReadCloudDisplay
6
- */
7
3
  function configSchemaF(pluginManager) {
8
4
  return ConfigurationSchema('LinearReadCloudDisplay', {
9
- /**
10
- * #slot
11
- */
12
5
  maxFeatureScreenDensity: {
13
6
  type: 'number',
14
7
  description: 'maximum features per pixel that is displayed in the view',
15
8
  defaultValue: 5,
16
9
  },
17
- /**
18
- * #slot
19
- */
20
10
  featureHeight: {
21
11
  type: 'number',
22
12
  defaultValue: 7,
23
13
  },
24
- /**
25
- * #slot
26
- */
27
- colorScheme: {
28
- type: 'stringEnum',
29
- model: types.enumeration('colorScheme', [
30
- 'strand',
31
- 'normal',
32
- 'insertSize',
33
- 'insertSizeAndOrientation',
34
- 'mappingQuality',
35
- 'tag',
36
- ]),
37
- description: 'color scheme to use',
38
- defaultValue: 'normal',
14
+ colorBy: {
15
+ type: 'frozen',
16
+ defaultValue: { type: 'insertSizeAndOrientation' },
39
17
  },
40
18
  }, {
41
- /**
42
- * #baseConfiguration
43
- */
44
19
  baseConfiguration: linearBasicDisplayConfigSchemaFactory(pluginManager),
45
20
  explicitlyTyped: true,
46
21
  });
@@ -1,2 +1,2 @@
1
- import { LinearReadCloudDisplayModel } from './model';
1
+ import type { LinearReadCloudDisplayModel } from './model';
2
2
  export declare function drawFeats(self: LinearReadCloudDisplayModel, ctx: CanvasRenderingContext2D): void;
@@ -1,7 +1,7 @@
1
1
  import { getContainingView, getSession } from '@jbrowse/core/util';
2
- import { hasPairedReads } from '../shared/util';
3
- import { drawPairChains } from './drawPairChains';
4
2
  import { drawLongReadChains } from './drawLongReadChains';
3
+ import { drawPairChains } from './drawPairChains';
4
+ import { hasPairedReads } from '../shared/util';
5
5
  export function drawFeats(self, ctx) {
6
6
  const { chainData } = self;
7
7
  if (!chainData) {
@@ -1,7 +1,7 @@
1
- import { Assembly } from '@jbrowse/core/assemblyManager/assembly';
2
- import { LinearGenomeViewModel } from '@jbrowse/plugin-linear-genome-view';
3
- import { ChainData } from '../shared/fetchChains';
4
- import { LinearReadCloudDisplayModel } from './model';
1
+ import type { LinearReadCloudDisplayModel } from './model';
2
+ import type { ChainData } from '../shared/fetchChains';
3
+ import type { Assembly } from '@jbrowse/core/assemblyManager/assembly';
4
+ import type { LinearGenomeViewModel } from '@jbrowse/plugin-linear-genome-view';
5
5
  export declare function drawLongReadChains({ ctx, self, chainData, view, asm, }: {
6
6
  ctx: CanvasRenderingContext2D;
7
7
  self: LinearReadCloudDisplayModel;
@@ -1,7 +1,7 @@
1
1
  import { getConf } from '@jbrowse/core/configuration';
2
2
  import { max, min } from '@jbrowse/core/util';
3
- import { fillColor, strokeColor } from '../shared/color';
4
3
  import { fillRectCtx, strokeRectCtx } from './util';
4
+ import { fillColor, strokeColor } from '../shared/color';
5
5
  export function drawLongReadChains({ ctx, self, chainData, view, asm, }) {
6
6
  var _a, _b, _c, _d, _e;
7
7
  const distances = [];
@@ -9,8 +9,6 @@ export function drawLongReadChains({ ctx, self, chainData, view, asm, }) {
9
9
  const { chains } = chainData;
10
10
  const { height } = self;
11
11
  const featureHeight = getConf(self, 'featureHeight');
12
- // get bounds on the 'distances' (pixel span that a particular split long
13
- // read 'chain' would have in view)
14
12
  for (const chain of chains) {
15
13
  let minX = Number.MAX_VALUE;
16
14
  let maxX = Number.MIN_VALUE;
@@ -31,7 +29,6 @@ export function drawLongReadChains({ ctx, self, chainData, view, asm, }) {
31
29
  const minD = Math.max(Math.log(min(distances)) - 1, 0);
32
30
  const scaler = (height - 20) / (maxD - minD);
33
31
  const halfHeight = featureHeight / 2 - 0.5;
34
- // draw split long read 'chains' as connected entities
35
32
  for (let i = 0; i < chains.length; i++) {
36
33
  const chain = chains[i];
37
34
  const w = distances[i];
@@ -1,7 +1,7 @@
1
- import { LinearGenomeViewModel } from '@jbrowse/plugin-linear-genome-view';
2
- import { Assembly } from '@jbrowse/core/assemblyManager/assembly';
3
- import { ChainData, ChainStats, ReducedFeature } from '../shared/fetchChains';
4
- import { LinearReadCloudDisplayModel } from './model';
1
+ import type { LinearReadCloudDisplayModel } from './model';
2
+ import type { ChainData, ChainStats, ReducedFeature } from '../shared/fetchChains';
3
+ import type { Assembly } from '@jbrowse/core/assemblyManager/assembly';
4
+ import type { LinearGenomeViewModel } from '@jbrowse/plugin-linear-genome-view';
5
5
  export declare function drawPairChains({ ctx, self, chainData, view, asm, }: {
6
6
  ctx: CanvasRenderingContext2D;
7
7
  self: LinearReadCloudDisplayModel;
@@ -9,9 +9,6 @@ export function drawPairChains({ ctx, self, chainData, view, asm, }) {
9
9
  const type = ((_a = self.colorBy) === null || _a === void 0 ? void 0 : _a.type) || 'insertSizeAndOrientation';
10
10
  const { chains, stats } = chainData;
11
11
  for (const chain of chains) {
12
- // if we're looking at a paired read (flag 1) then assume it is just
13
- // two reads (some small cases may defy this assumption such as
14
- // secondary alignments but this may be uncommon)
15
12
  if (chain.length > 1) {
16
13
  const v0 = chain[0];
17
14
  const v1 = chain[1];
@@ -1,2 +1,2 @@
1
- import PluginManager from '@jbrowse/core/PluginManager';
1
+ import type PluginManager from '@jbrowse/core/PluginManager';
2
2
  export default function register(pluginManager: PluginManager): void;
@@ -1,8 +1,7 @@
1
+ import { lazy } from 'react';
1
2
  import DisplayType from '@jbrowse/core/pluggableElementTypes/DisplayType';
2
- // locals
3
3
  import configSchemaF from './configSchema';
4
4
  import stateModelF from './model';
5
- import { lazy } from 'react';
6
5
  export default function register(pluginManager) {
7
6
  pluginManager.addDisplayType(() => {
8
7
  const configSchema = configSchemaF(pluginManager);
@@ -1,16 +1,8 @@
1
- import React from 'react';
2
- import { Instance } from 'mobx-state-tree';
3
- import { AnyConfigurationSchemaType } from '@jbrowse/core/configuration';
4
- import { ColorBy, FilterBy } from '../shared/types';
5
- import { ChainData } from '../shared/fetchChains';
6
- /**
7
- * #stateModel LinearReadCloudDisplay
8
- * it is not a block based track, hence not BaseLinearDisplay
9
- * extends
10
- * - [BaseDisplay](../basedisplay)
11
- * - [TrackHeightMixin](../trackheightmixin)
12
- * - [FeatureDensityMixin](../featuredensitymixin)
13
- */
1
+ import type React from 'react';
2
+ import type { ChainData } from '../shared/fetchChains';
3
+ import type { ColorBy, FilterBy } from '../shared/types';
4
+ import type { AnyConfigurationSchemaType } from '@jbrowse/core/configuration';
5
+ import type { Instance } from 'mobx-state-tree';
14
6
  declare function stateModelFactory(configSchema: AnyConfigurationSchemaType): import("mobx-state-tree").IModelType<{
15
7
  id: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
16
8
  type: import("mobx-state-tree").ISimpleType<string>;
@@ -23,8 +15,8 @@ declare function stateModelFactory(configSchema: AnyConfigurationSchemaType): im
23
15
  } & {
24
16
  type: import("mobx-state-tree").ISimpleType<"LinearReadCloudDisplay">;
25
17
  configuration: AnyConfigurationSchemaType;
26
- filterBy: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<FilterBy, FilterBy, FilterBy>, [undefined]>;
27
- colorBy: import("mobx-state-tree").IType<ColorBy | undefined, ColorBy | undefined, ColorBy | undefined>;
18
+ filterBySetting: import("mobx-state-tree").IType<FilterBy | undefined, FilterBy | undefined, FilterBy | undefined>;
19
+ colorBySetting: import("mobx-state-tree").IType<ColorBy | undefined, ColorBy | undefined, ColorBy | undefined>;
28
20
  drawSingletons: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
29
21
  }, {
30
22
  rendererTypeName: string;
@@ -62,20 +54,14 @@ declare function stateModelFactory(configSchema: AnyConfigurationSchemaType): im
62
54
  error: unknown;
63
55
  message: string | undefined;
64
56
  } & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
65
- id: import(
66
- /**
67
- * #action
68
- */
69
- "mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
57
+ id: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
70
58
  type: import("mobx-state-tree").ISimpleType<string>;
71
59
  rpcDriverName: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<string>>;
72
60
  }, {
73
61
  rendererTypeName: string;
74
62
  error: unknown;
75
63
  message: string | undefined;
76
- }, import("mobx-state-tree" /**
77
- * #action
78
- */)._NotCustomized, import("mobx-state-tree")._NotCustomized>>;
64
+ }, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>;
79
65
  }> | null;
80
66
  readonly adapterConfig: any;
81
67
  readonly parentTrack: any;
@@ -121,8 +107,9 @@ declare function stateModelFactory(configSchema: AnyConfigurationSchemaType): im
121
107
  readonly regionTooLarge: boolean;
122
108
  readonly regionTooLargeReason: string;
123
109
  } & {
110
+ readonly statsReadyAndRegionNotTooLarge: boolean;
124
111
  regionCannotBeRenderedText(_region: import("@jbrowse/core/util").Region): "" | "Force load to see features";
125
- regionCannotBeRendered(_region: import("@jbrowse/core/util").Region): React.JSX.Element | null;
112
+ regionCannotBeRendered(_region: import("@jbrowse/core/util").Region): import("react/jsx-runtime").JSX.Element | null;
126
113
  } & {
127
114
  loading: boolean;
128
115
  chainData: ChainData | undefined;
@@ -130,50 +117,24 @@ declare function stateModelFactory(configSchema: AnyConfigurationSchemaType): im
130
117
  lastDrawnBpPerPx: number;
131
118
  ref: HTMLCanvasElement | null;
132
119
  } & {
133
- /**
134
- * #action
135
- */
120
+ readonly colorBy: any;
121
+ readonly filterBy: any;
122
+ } & {
136
123
  setDrawSingletons(f: boolean): void;
137
- /**
138
- * #action
139
- */
140
124
  setLastDrawnOffsetPx(n: number): void;
141
- /**
142
- * #action
143
- */
144
125
  setLastDrawnBpPerPx(n: number): void;
145
- /**
146
- * #action
147
- */
148
126
  setLoading(f: boolean): void;
149
- /**
150
- * #action
151
- */
152
127
  reload(): void;
153
- /**
154
- * #action
155
- * internal, a reference to a HTMLCanvas because we use a autorun to draw
156
- * the canvas
157
- */
158
128
  setRef(ref: HTMLCanvasElement | null): void;
159
129
  setColorScheme(colorBy: {
160
130
  type: string;
161
131
  }): void;
162
- /**
163
- * #action
164
- */
165
132
  setChainData(args: ChainData): void;
166
- /**
167
- * #action
168
- */
169
133
  setFilterBy(filter: FilterBy): void;
170
134
  } & {
171
135
  readonly drawn: boolean;
172
136
  } & {
173
137
  renderProps(): any;
174
- /**
175
- * #method
176
- */
177
138
  trackMenuItems(): (import("@jbrowse/core/ui").MenuDivider | import("@jbrowse/core/ui").MenuSubHeader | import("@jbrowse/core/ui").NormalMenuItem | import("@jbrowse/core/ui").CheckboxMenuItem | import("@jbrowse/core/ui").RadioMenuItem | import("@jbrowse/core/ui").SubMenuItem | {
178
139
  label: string;
179
140
  type: string;
@@ -203,9 +164,6 @@ declare function stateModelFactory(configSchema: AnyConfigurationSchemaType): im
203
164
  checked?: undefined;
204
165
  onClick?: undefined;
205
166
  })[];
206
- /**
207
- * #method
208
- */
209
167
  renderSvg(opts: {
210
168
  rasterizeLayers?: boolean;
211
169
  }): Promise<React.ReactNode>;
@@ -1,45 +1,19 @@
1
1
  import { lazy } from 'react';
2
- import { types } from 'mobx-state-tree';
2
+ import { ConfigurationReference, getConf } from '@jbrowse/core/configuration';
3
3
  import { BaseDisplay } from '@jbrowse/core/pluggableElementTypes';
4
- import { ConfigurationReference, } from '@jbrowse/core/configuration';
5
4
  import { getSession } from '@jbrowse/core/util';
6
5
  import { FeatureDensityMixin, TrackHeightMixin, } from '@jbrowse/plugin-linear-genome-view';
7
- // icons
8
- import PaletteIcon from '@mui/icons-material/Palette';
9
6
  import FilterListIcon from '@mui/icons-material/ClearAll';
10
- import { defaultFilterFlags } from '../shared/util';
11
- // async
7
+ import PaletteIcon from '@mui/icons-material/Palette';
8
+ import { types } from 'mobx-state-tree';
12
9
  const FilterByTagDialog = lazy(() => import('../shared/components/FilterByTagDialog'));
13
- /**
14
- * #stateModel LinearReadCloudDisplay
15
- * it is not a block based track, hence not BaseLinearDisplay
16
- * extends
17
- * - [BaseDisplay](../basedisplay)
18
- * - [TrackHeightMixin](../trackheightmixin)
19
- * - [FeatureDensityMixin](../featuredensitymixin)
20
- */
21
10
  function stateModelFactory(configSchema) {
22
11
  return types
23
12
  .compose('LinearReadCloudDisplay', BaseDisplay, TrackHeightMixin(), FeatureDensityMixin(), types.model({
24
- /**
25
- * #property
26
- */
27
13
  type: types.literal('LinearReadCloudDisplay'),
28
- /**
29
- * #property
30
- */
31
14
  configuration: ConfigurationReference(configSchema),
32
- /**
33
- * #property
34
- */
35
- filterBy: types.optional(types.frozen(), defaultFilterFlags),
36
- /**
37
- * #property
38
- */
39
- colorBy: types.frozen(),
40
- /**
41
- * #property
42
- */
15
+ filterBySetting: types.frozen(),
16
+ colorBySetting: types.frozen(),
43
17
  drawSingletons: true,
44
18
  }))
45
19
  .volatile(() => ({
@@ -48,62 +22,46 @@ function stateModelFactory(configSchema) {
48
22
  lastDrawnOffsetPx: undefined,
49
23
  lastDrawnBpPerPx: 0,
50
24
  ref: null,
25
+ }))
26
+ .views(self => ({
27
+ get colorBy() {
28
+ var _a;
29
+ return (_a = self.colorBySetting) !== null && _a !== void 0 ? _a : getConf(self, 'colorBy');
30
+ },
31
+ get filterBy() {
32
+ var _a;
33
+ return (_a = self.filterBySetting) !== null && _a !== void 0 ? _a : getConf(self, 'filterBy');
34
+ },
51
35
  }))
52
36
  .actions(self => ({
53
- /**
54
- * #action
55
- */
56
37
  setDrawSingletons(f) {
57
38
  self.drawSingletons = f;
58
39
  },
59
- /**
60
- * #action
61
- */
62
40
  setLastDrawnOffsetPx(n) {
63
41
  self.lastDrawnOffsetPx = n;
64
42
  },
65
- /**
66
- * #action
67
- */
68
43
  setLastDrawnBpPerPx(n) {
69
44
  self.lastDrawnBpPerPx = n;
70
45
  },
71
- /**
72
- * #action
73
- */
74
46
  setLoading(f) {
75
47
  self.loading = f;
76
48
  },
77
- /**
78
- * #action
79
- */
80
49
  reload() {
81
50
  self.error = undefined;
82
51
  },
83
- /**
84
- * #action
85
- * internal, a reference to a HTMLCanvas because we use a autorun to draw
86
- * the canvas
87
- */
88
52
  setRef(ref) {
89
53
  self.ref = ref;
90
54
  },
91
55
  setColorScheme(colorBy) {
92
- self.colorBy = {
56
+ self.colorBySetting = {
93
57
  ...colorBy,
94
58
  };
95
59
  },
96
- /**
97
- * #action
98
- */
99
60
  setChainData(args) {
100
61
  self.chainData = args;
101
62
  },
102
- /**
103
- * #action
104
- */
105
63
  setFilterBy(filter) {
106
- self.filterBy = {
64
+ self.filterBySetting = {
107
65
  ...filter,
108
66
  };
109
67
  },
@@ -116,17 +74,12 @@ function stateModelFactory(configSchema) {
116
74
  .views(self => {
117
75
  const { trackMenuItems: superTrackMenuItems, renderProps: superRenderProps, } = self;
118
76
  return {
119
- // we don't use a server side renderer, so this fills in minimal
120
- // info so as not to crash
121
77
  renderProps() {
122
78
  return {
123
79
  ...superRenderProps(),
124
80
  notReady: !self.chainData,
125
81
  };
126
82
  },
127
- /**
128
- * #method
129
- */
130
83
  trackMenuItems() {
131
84
  return [
132
85
  ...superTrackMenuItems(),
@@ -180,9 +133,6 @@ function stateModelFactory(configSchema) {
180
133
  },
181
134
  ];
182
135
  },
183
- /**
184
- * #method
185
- */
186
136
  async renderSvg(opts) {
187
137
  const { renderSvg } = await import('../shared/renderSvgUtil');
188
138
  const { drawFeats } = await import('./drawFeats');
@@ -192,7 +142,6 @@ function stateModelFactory(configSchema) {
192
142
  })
193
143
  .actions(self => ({
194
144
  afterAttach() {
195
- // eslint-disable-next-line @typescript-eslint/no-floating-promises
196
145
  ;
197
146
  (async () => {
198
147
  try {
@@ -1,4 +1,3 @@
1
- // avoid drawing negative width features for SVG exports
2
1
  export function fillRectCtx(x, y, width, height, ctx, fillColor) {
3
2
  if (width < 0) {
4
3
  x += width;
@@ -1,5 +1,4 @@
1
- import React from 'react';
2
- import { Feature } from '@jbrowse/core/util';
1
+ import type { Feature } from '@jbrowse/core/util';
3
2
  type Coord = [number, number];
4
3
  declare const SNPCoverageTooltip: (props: {
5
4
  model: {
@@ -9,5 +8,5 @@ declare const SNPCoverageTooltip: (props: {
9
8
  offsetMouseCoord: Coord;
10
9
  clientMouseCoord: Coord;
11
10
  clientRect?: DOMRect;
12
- }) => React.JSX.Element | null;
11
+ }) => import("react/jsx-runtime").JSX.Element | null;
13
12
  export default SNPCoverageTooltip;
@@ -1,7 +1,8 @@
1
- import React from 'react';
2
- import { observer } from 'mobx-react';
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { forwardRef } from 'react';
3
3
  import { toLocale } from '@jbrowse/core/util';
4
4
  import { Tooltip } from '@jbrowse/plugin-wiggle';
5
+ import { observer } from 'mobx-react';
5
6
  import { makeStyles } from 'tss-react/mui';
6
7
  const useStyles = makeStyles()(() => ({
7
8
  td: {
@@ -10,7 +11,7 @@ const useStyles = makeStyles()(() => ({
10
11
  }));
11
12
  const toP = (s = 0) => +(+s).toFixed(1);
12
13
  const pct = (n, total = 1) => `${toP((n / (total || 1)) * 100)}%`;
13
- const TooltipContents = React.forwardRef(function TooltipContents2(props, reactRef) {
14
+ const TooltipContents = forwardRef(function TooltipContents2(props, reactRef) {
14
15
  const { feature, model } = props;
15
16
  const { classes } = useStyles();
16
17
  const start = feature.get('start') + 1;
@@ -23,58 +24,21 @@ const TooltipContents = React.forwardRef(function TooltipContents2(props, reactR
23
24
  ]
24
25
  .filter(f => !!f)
25
26
  .join(':');
26
- return (React.createElement("div", { ref: reactRef },
27
- React.createElement("table", null,
28
- React.createElement("caption", null, loc),
29
- React.createElement("thead", null,
30
- React.createElement("tr", null,
31
- React.createElement("th", null),
32
- React.createElement("th", null, "Base"),
33
- React.createElement("th", null, "Count"),
34
- React.createElement("th", null, "% of Total"),
35
- React.createElement("th", null, "Strands"))),
36
- React.createElement("tbody", null,
37
- React.createElement("tr", null,
38
- React.createElement("td", null),
39
- React.createElement("td", null, "Total"),
40
- React.createElement("td", null, readsCounted),
41
- React.createElement("td", null, " "),
42
- React.createElement("td", null, " ")),
43
- React.createElement("tr", null,
44
- React.createElement("td", null),
45
- React.createElement("td", null,
46
- "REF ",
47
- refbase ? `(${refbase.toUpperCase()})` : ''),
48
- React.createElement("td", null, ref.entryDepth),
49
- React.createElement("td", null, pct(ref.entryDepth, readsCounted)),
50
- React.createElement("td", null,
51
- ref['-1'] ? `${ref['-1']}(-)` : '',
52
- ref['1'] ? `${ref['1']}(+)` : '')),
53
- Object.entries(info).map(([key, entry]) => Object.entries(entry).map(([base, score]) => (React.createElement("tr", { key: `${key}_${base}` },
54
- React.createElement("td", null,
55
- React.createElement(ColorSquare, { model: model, base: base })),
56
- React.createElement("td", null,
57
- base.toUpperCase(),
58
- " "),
59
- React.createElement("td", { className: classes.td }, [
60
- score.entryDepth,
61
- score.avgProbability !== undefined
62
- ? `(avg. ${pct(score.avgProbability)} prob.)`
63
- : '',
64
- ]
65
- .filter(f => !!f)
66
- .join(' ')),
67
- React.createElement("td", null, base === 'depth' || base === 'skip'
68
- ? '---'
69
- : pct(score.entryDepth, readsCounted)),
70
- React.createElement("td", null,
71
- score['-1'] ? `${score['-1']}(-)` : '',
72
- score['1'] ? `${score['1']}(+)` : '')))))))));
27
+ return (_jsx("div", { ref: reactRef, children: _jsxs("table", { children: [_jsx("caption", { children: loc }), _jsx("thead", { children: _jsxs("tr", { children: [_jsx("th", {}), _jsx("th", { children: "Base" }), _jsx("th", { children: "Count" }), _jsx("th", { children: "% of Total" }), _jsx("th", { children: "Strands" })] }) }), _jsxs("tbody", { children: [_jsxs("tr", { children: [_jsx("td", {}), _jsx("td", { children: "Total" }), _jsx("td", { children: readsCounted }), _jsx("td", { children: " " }), _jsx("td", { children: " " })] }), _jsxs("tr", { children: [_jsx("td", {}), _jsxs("td", { children: ["REF ", refbase ? `(${refbase.toUpperCase()})` : ''] }), _jsx("td", { children: ref.entryDepth }), _jsx("td", { children: pct(ref.entryDepth, readsCounted) }), _jsxs("td", { children: [ref['-1'] ? `${ref['-1']}(-)` : '', ref['1'] ? `${ref['1']}(+)` : ''] })] }), Object.entries(info).map(([key, entry]) => Object.entries(entry).map(([base, score]) => (_jsxs("tr", { children: [_jsx("td", { children: _jsx(ColorSquare, { model: model, base: base }) }), _jsxs("td", { children: [base.toUpperCase(), " "] }), _jsx("td", { className: classes.td, children: [
28
+ score.entryDepth,
29
+ score.avgProbability !== undefined
30
+ ? `(avg. ${pct(score.avgProbability)} prob.)`
31
+ : '',
32
+ ]
33
+ .filter(f => !!f)
34
+ .join(' ') }), _jsx("td", { children: base === 'depth' || base === 'skip'
35
+ ? '---'
36
+ : pct(score.entryDepth, readsCounted) }), _jsxs("td", { children: [score['-1'] ? `${score['-1']}(-)` : '', score['1'] ? `${score['1']}(+)` : ''] })] }, `${key}_${base}`))))] })] }) }));
73
37
  });
74
38
  function ColorSquare({ base, model, }) {
75
39
  var _a;
76
40
  const { visibleModifications } = model;
77
- return base.startsWith('mod_') ? (React.createElement("div", { style: {
41
+ return base.startsWith('mod_') ? (_jsx("div", { style: {
78
42
  width: 10,
79
43
  height: 10,
80
44
  background: (_a = visibleModifications.get(base.replace('mod_', ''))) === null || _a === void 0 ? void 0 : _a.color,
@@ -83,6 +47,6 @@ function ColorSquare({ base, model, }) {
83
47
  const SNPCoverageTooltip = observer(function (props) {
84
48
  const { model } = props;
85
49
  const { featureUnderMouse: feat } = model;
86
- return feat && feat.get('type') === 'skip' ? null : (React.createElement(Tooltip, { TooltipContents: TooltipContents, ...props }));
50
+ return feat && feat.get('type') === 'skip' ? null : (_jsx(Tooltip, { TooltipContents: TooltipContents, ...props }));
87
51
  });
88
52
  export default SNPCoverageTooltip;
@@ -1,60 +1,55 @@
1
- import PluginManager from '@jbrowse/core/PluginManager';
1
+ import type PluginManager from '@jbrowse/core/PluginManager';
2
2
  export default function SNPCoverageConfigFactory(pluginManager: PluginManager): import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
3
- /**
4
- * #slot
5
- */
6
3
  autoscale: {
7
4
  type: string;
8
5
  defaultValue: string;
9
6
  model: import("mobx-state-tree").ISimpleType<string>;
10
7
  description: string;
11
8
  };
12
- /**
13
- * #slot
14
- */
15
9
  minScore: {
16
10
  type: string;
17
11
  defaultValue: number;
18
12
  description: string;
19
13
  };
20
- /**
21
- * #slot
22
- */
23
14
  maxScore: {
24
15
  type: string;
25
16
  description: string;
26
17
  defaultValue: number;
27
18
  };
28
- /**
29
- * #slot
30
- */
31
19
  scaleType: {
32
20
  type: string;
33
21
  model: import("mobx-state-tree").ISimpleType<string>;
34
22
  description: string;
35
23
  defaultValue: string;
36
24
  };
37
- /**
38
- * #slot
39
- */ inverted: {
25
+ inverted: {
40
26
  type: string;
41
27
  description: string;
42
28
  defaultValue: boolean;
43
29
  };
44
- /**
45
- * #slot
46
- */
47
30
  multiTicks: {
48
31
  type: string;
49
32
  description: string;
50
33
  defaultValue: boolean;
51
34
  };
52
- /**
53
- * #slot
54
- */
55
35
  renderers: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
56
36
  SNPCoverageRenderer: import("@jbrowse/core/configuration").AnyConfigurationSchemaType;
57
37
  }, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, undefined>>;
38
+ colorBy: {
39
+ type: string;
40
+ description: string;
41
+ defaultValue: {
42
+ type: string;
43
+ };
44
+ };
45
+ filterBy: {
46
+ type: string;
47
+ description: string;
48
+ defaultValue: {
49
+ flagInclude: number;
50
+ flagExclude: number;
51
+ };
52
+ };
58
53
  }, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
59
54
  maxFeatureScreenDensity: {
60
55
  type: string;