jbrowse-plugin-tview 2.2.1 → 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 (113) hide show
  1. package/README.md +349 -69
  2. package/dist/AddHighlightModel/index.js +2 -13
  3. package/dist/AddHighlightModel/index.js.map +1 -1
  4. package/dist/LaunchTView/TviewGetPlanRpc/TviewGetPlan.d.ts +44 -64
  5. package/dist/LaunchTView/TviewGetPlanRpc/TviewGetPlan.js +57 -81
  6. package/dist/LaunchTView/TviewGetPlanRpc/TviewGetPlan.js.map +1 -1
  7. package/dist/LaunchTView/TviewGetPlanRpc/index.d.ts +1 -1
  8. package/dist/LaunchTView/align.d.ts +18 -17
  9. package/dist/LaunchTView/align.js +198 -151
  10. package/dist/LaunchTView/align.js.map +1 -1
  11. package/dist/LaunchTView/alleles.d.ts +14 -0
  12. package/dist/LaunchTView/alleles.js +51 -3
  13. package/dist/LaunchTView/alleles.js.map +1 -1
  14. package/dist/LaunchTView/fetchTviewPlan.d.ts +5 -37
  15. package/dist/LaunchTView/fetchTviewPlan.js +7 -28
  16. package/dist/LaunchTView/fetchTviewPlan.js.map +1 -1
  17. package/dist/LaunchTView/index.js +45 -16
  18. package/dist/LaunchTView/index.js.map +1 -1
  19. package/dist/LaunchTView/launch.d.ts +50 -0
  20. package/dist/LaunchTView/launch.js +48 -0
  21. package/dist/LaunchTView/launch.js.map +1 -0
  22. package/dist/LaunchTView/launchView.d.ts +3 -8
  23. package/dist/LaunchTView/launchView.js +18 -12
  24. package/dist/LaunchTView/launchView.js.map +1 -1
  25. package/dist/LaunchTView/modifications.d.ts +64 -0
  26. package/dist/LaunchTView/modifications.js +131 -0
  27. package/dist/LaunchTView/modifications.js.map +1 -0
  28. package/dist/LaunchTView/readLayout.d.ts +35 -39
  29. package/dist/LaunchTView/readLayout.js +44 -24
  30. package/dist/LaunchTView/readLayout.js.map +1 -1
  31. package/dist/LaunchTView/repeatStats.d.ts +1 -1
  32. package/dist/LaunchTView/repeatStats.js +6 -6
  33. package/dist/LaunchTView/repeatStats.js.map +1 -1
  34. package/dist/LaunchTView/repeats.js +6 -4
  35. package/dist/LaunchTView/repeats.js.map +1 -1
  36. package/dist/LaunchTView/tview.d.ts +47 -24
  37. package/dist/LaunchTView/tview.js +188 -99
  38. package/dist/LaunchTView/tview.js.map +1 -1
  39. package/dist/TViewPanel/components/TViewPanel.js +9 -4
  40. package/dist/TViewPanel/components/TViewPanel.js.map +1 -1
  41. package/dist/TViewPanel/genome.d.ts +11 -0
  42. package/dist/TViewPanel/genome.js +32 -0
  43. package/dist/TViewPanel/genome.js.map +1 -0
  44. package/dist/TViewPanel/init.d.ts +38 -19
  45. package/dist/TViewPanel/init.js +66 -39
  46. package/dist/TViewPanel/init.js.map +1 -1
  47. package/dist/TViewPanel/initMenu.d.ts +28 -0
  48. package/dist/TViewPanel/initMenu.js +79 -0
  49. package/dist/TViewPanel/initMenu.js.map +1 -0
  50. package/dist/TViewPanel/model.d.ts +1178 -383
  51. package/dist/TViewPanel/model.js +298 -87
  52. package/dist/TViewPanel/model.js.map +1 -1
  53. package/dist/TViewPanel/modifications.d.ts +25 -0
  54. package/dist/TViewPanel/modifications.js +89 -0
  55. package/dist/TViewPanel/modifications.js.map +1 -0
  56. package/dist/index.d.ts +0 -1
  57. package/dist/index.js +0 -1
  58. package/dist/index.js.map +1 -1
  59. package/dist/jbrowse-plugin-tview.umd.production.min.js +125 -89
  60. package/dist/jbrowse-plugin-tview.umd.production.min.js.map +4 -4
  61. package/dist/version.d.ts +1 -1
  62. package/dist/version.js +1 -1
  63. package/package.json +21 -18
  64. package/src/AddHighlightModel/index.tsx +8 -14
  65. package/src/LaunchTView/TviewGetPlanRpc/TviewGetPlan.ts +119 -157
  66. package/src/LaunchTView/TviewGetPlanRpc/index.ts +0 -1
  67. package/src/LaunchTView/align.ts +233 -177
  68. package/src/LaunchTView/alleles.ts +70 -4
  69. package/src/LaunchTView/fetchTviewPlan.ts +11 -54
  70. package/src/LaunchTView/index.ts +74 -16
  71. package/src/LaunchTView/launch.ts +98 -0
  72. package/src/LaunchTView/launchView.ts +28 -20
  73. package/src/LaunchTView/modifications.ts +200 -0
  74. package/src/LaunchTView/readLayout.ts +65 -41
  75. package/src/LaunchTView/repeatStats.ts +7 -7
  76. package/src/LaunchTView/repeats.ts +6 -4
  77. package/src/LaunchTView/tview.ts +228 -112
  78. package/src/TViewPanel/components/TViewPanel.tsx +33 -4
  79. package/src/TViewPanel/genome.ts +41 -0
  80. package/src/TViewPanel/init.ts +104 -51
  81. package/src/TViewPanel/initMenu.ts +126 -0
  82. package/src/TViewPanel/model.ts +350 -97
  83. package/src/TViewPanel/modifications.ts +127 -0
  84. package/src/index.ts +0 -2
  85. package/src/version.ts +1 -1
  86. package/dist/AddHighlightModel/GenomeMouseoverHighlight.d.ts +0 -6
  87. package/dist/AddHighlightModel/GenomeMouseoverHighlight.js +0 -23
  88. package/dist/AddHighlightModel/GenomeMouseoverHighlight.js.map +0 -1
  89. package/dist/AddHighlightModel/HighlightComponents.d.ts +0 -7
  90. package/dist/AddHighlightModel/HighlightComponents.js +0 -11
  91. package/dist/AddHighlightModel/HighlightComponents.js.map +0 -1
  92. package/dist/LaunchTView/components/ArrayReport.d.ts +0 -10
  93. package/dist/LaunchTView/components/ArrayReport.js +0 -59
  94. package/dist/LaunchTView/components/ArrayReport.js.map +0 -1
  95. package/dist/LaunchTView/components/LaunchTViewDialog.d.ts +0 -6
  96. package/dist/LaunchTView/components/LaunchTViewDialog.js +0 -124
  97. package/dist/LaunchTView/components/LaunchTViewDialog.js.map +0 -1
  98. package/dist/LaunchTView/sampleTree.d.ts +0 -37
  99. package/dist/LaunchTView/sampleTree.js +0 -65
  100. package/dist/LaunchTView/sampleTree.js.map +0 -1
  101. package/dist/LaunchTView/useTviewMsa.d.ts +0 -18
  102. package/dist/LaunchTView/useTviewMsa.js +0 -24
  103. package/dist/LaunchTView/useTviewMsa.js.map +0 -1
  104. package/dist/TViewPanel/coords.d.ts +0 -25
  105. package/dist/TViewPanel/coords.js +0 -56
  106. package/dist/TViewPanel/coords.js.map +0 -1
  107. package/src/AddHighlightModel/GenomeMouseoverHighlight.tsx +0 -46
  108. package/src/AddHighlightModel/HighlightComponents.tsx +0 -25
  109. package/src/LaunchTView/components/ArrayReport.tsx +0 -64
  110. package/src/LaunchTView/components/LaunchTViewDialog.tsx +0 -212
  111. package/src/LaunchTView/sampleTree.ts +0 -73
  112. package/src/LaunchTView/useTviewMsa.ts +0 -39
  113. package/src/TViewPanel/coords.ts +0 -65
package/README.md CHANGED
@@ -1,45 +1,225 @@
1
1
  # jbrowse-plugin-tview
2
2
 
3
- Loads BAM/CRAM read pileups into
4
- [react-msaview](https://github.com/GMOD/react-msaview) for a `samtools tview`
5
- style interface inside JBrowse 2.
6
-
7
- Because the reads are laid out as a multiple alignment, non-reference insertions
8
- get their own columns instead of being collapsed into a marker: every read that
9
- inserts at a position contributes its bases, and reads without that insertion
10
- are padded so the reference columns still line up.
3
+ Loads BAM/CRAM reads into [react-msaview](https://github.com/GMOD/react-msaview)
4
+ as a multiple alignment, for a `samtools tview` style view inside JBrowse 2.
5
+
6
+ Because the reads are laid out as a multiple alignment, a non-reference
7
+ insertion gets columns of its own instead of a marker: every read that inserts
8
+ at a site contributes its bases there, and the other reads are padded so the
9
+ reference columns still line up. The reference is the top row, and a copy of it
10
+ is pinned above the alignment. A base that matches it draws as a dot, so the
11
+ colours in a row mark where that read differs. Rows are grouped in a band per
12
+ sample, and labelled brackets above the alignment mark the insertion sites and
13
+ tandem arrays.
11
14
 
12
15
  ## Gallery
13
16
 
14
- ![tview expanding a non-reference insertion](img/tview-insertion.png)
17
+ Each picture opens full size, and the ones of the GIAB trio also open as a
18
+ [live demo](#live-demos).
19
+
20
+ <table>
21
+ <tr>
22
+ <td width="50%" valign="top">
23
+
24
+ <a href="img/insertion-alu.png"><img src="img/insertion-alu.png" width="380" alt="An Alu insertion in HG002, as a JBrowse pileup above and a tview below"></a>
25
+
26
+ An Alu insertion in HG002: a box per read in the pileup, 290 aligned columns in
27
+ the tview. [Live demo][tview-demo-alu]
28
+
29
+ </td>
30
+ <td width="50%" valign="top">
31
+
32
+ <a href="img/insertion-alu-trio.png"><img src="img/insertion-alu-trio.png" width="380" alt="The same Alu insertion in the GIAB trio, one band per sample"></a>
33
+
34
+ The NPHP4 Alu in a band per sample: the son and the father have it, the mother
35
+ does not. [Live demo][tview-demo-alu-trio]
36
+
37
+ </td>
38
+ </tr>
39
+ <tr>
40
+ <td width="50%" valign="top">
41
+
42
+ <a href="img/tview-insertion.png"><img src="img/tview-insertion.png" width="380" alt="A 1bp insertion in the volvox test reads, with its bracket and residue letters"></a>
43
+
44
+ A 1bp insertion up close: one bracketed column, and a dot for each base that
45
+ matches the reference.
46
+
47
+ </td>
48
+ <td width="50%" valign="top">
49
+
50
+ <a href="img/repeat-atxn3-hg004.png"><img src="img/repeat-atxn3-hg004.png" width="380" alt="The ATXN3 CTG repeat in HG004, a block per copy, rows sorted by copy count"></a>
51
+
52
+ ATXN3 in HG004, a block per CTG copy, rows sorted from 21 copies down to the
53
+ reference's 8. [Live demo][tview-demo-atxn3-hg004]
54
+
55
+ </td>
56
+ </tr>
57
+ <tr>
58
+ <td colspan="2" valign="top">
59
+
60
+ <a href="img/repeat-abca7-vntr.png"><img src="img/repeat-abca7-vntr.png" width="780" alt="The ABCA7 VNTR in HG003, a block per 25bp copy, with each row's copy count as a bar and a number"></a>
61
+
62
+ The ABCA7 VNTR in HG003, a block per 25bp copy, rows sorted from 134 copies
63
+ down, each with its count as a bar and a number. [Live demo][tview-demo-abca7]
64
+
65
+ </td>
66
+ </tr>
67
+ <tr>
68
+ <td width="50%" valign="top">
15
69
 
16
- The same reads at `ctgA:15,140..15,190`, twice. In the pileup above, the 1bp
17
- insertion at 15,163 is collapsed into a column of purple `(1)` markers. In the
18
- tview panel below it gets a real column (highlighted): reads carrying the
19
- insertion show their base, reads that span the position without it show `-`, and
20
- reads that do not cover it show `.` — so every row stays the same width and the
21
- reference columns still line up.
70
+ <a href="img/tview-modifications-bases.png"><img src="img/tview-modifications-bases.png" width="380" alt="Nanopore reads with 5mC calls, coloured by bases, with a bar under each called base"></a>
22
71
 
23
- Regenerate with `pnpm figure`; the tandem-repeat figures below come from
24
- `pnpm figures:repeats`.
72
+ **Color by bases**: base colours, and a bar under each base with a modification
73
+ call.
74
+
75
+ </td>
76
+ <td width="50%" valign="top">
77
+
78
+ <a href="img/tview-modifications.png"><img src="img/tview-modifications.png" width="380" alt="The same reads coloured by modification, from blue at 0% to red at 100%"></a>
79
+
80
+ **Color by modification**: each called base filled from blue (0%) to red (100%),
81
+ one of them in an inserted column.
82
+
83
+ </td>
84
+ </tr>
85
+ </table>
86
+
87
+ ## Live demos
88
+
89
+ Real human data, nothing to install. Each link opens reads from the GIAB
90
+ Ashkenazi trio (PacBio HiFi, GRCh37, streamed from GIAB's FTP) at an Alu
91
+ insertion or a tandem repeat.
92
+
93
+ <!-- demo-links -->
94
+
95
+ | locus | window | what it shows | open |
96
+ | ---------------- | ----------------------------- | ----------------------------------------------------------------- | -------------------------------- |
97
+ | NPHP4 Alu, HG002 | chr1:5,934,190..5,934,390 | an Alu insertion in about half the reads, aligned base by base | [launch][tview-demo-alu] |
98
+ | NPHP4 Alu | chr1:5,934,190..5,934,390 | a band per sample: the son and the father have it, the mother not | [launch][tview-demo-alu-trio] |
99
+ | FMR1 | chrX:146,993,530..146,993,670 | CGG on the X, so two of the three samples carry one allele | [launch][tview-demo-fmr1] |
100
+ | HTT | chr4:3,076,570..3,076,730 | the CAG tract, with a shoulder either side of one allele | [launch][tview-demo-htt] |
101
+ | ATXN3 | chr14:92,537,320..92,537,420 | the locus that reports as four arrays when anchored on insertions | [launch][tview-demo-atxn3] |
102
+ | ATXN3, HG004 | chr14:92,537,320..92,537,420 | the mother alone, a CTG ladder of two steps | [launch][tview-demo-atxn3-hg004] |
103
+ | ABCA7 | chr19:1,049,460..1,050,000 | a 25bp VNTR whose alleles run past 2kb | [launch][tview-demo-abca7] |
104
+
105
+ [tview-demo-alu]:
106
+ https://jbrowse.org/code/jb2/main/index.html?config=/demos/tview/config.json&session=spec-%7B%22sessionName%22%3A%22alu%22%2C%22views%22%3A%5B%7B%22id%22%3A%22lgv%22%2C%22type%22%3A%22LinearGenomeView%22%2C%22loc%22%3A%22chr1%3A5%2C934%2C190..5%2C934%2C390%22%2C%22assembly%22%3A%22hg19%22%2C%22tracks%22%3A%5B%7B%22trackId%22%3A%22HG002%22%2C%22displaySnapshot%22%3A%7B%22height%22%3A160%7D%7D%5D%7D%2C%7B%22id%22%3A%22tview%22%2C%22type%22%3A%22TView%22%2C%22displayName%22%3A%22alu%22%2C%22assembly%22%3A%22hg19%22%2C%22loc%22%3A%22chr1%3A5%2C934%2C190..5%2C934%2C390%22%2C%22tracks%22%3A%5B%7B%22trackId%22%3A%22HG002%22%2C%22sample%22%3A%22HG002_son%22%7D%5D%2C%22connectedViewId%22%3A%22lgv%22%2C%22height%22%3A900%2C%22colWidth%22%3A3%2C%22rowHeight%22%3A8%2C%22treeAreaWidth%22%3A220%7D%5D%7D
107
+ [tview-demo-alu-trio]:
108
+ https://jbrowse.org/code/jb2/main/index.html?config=/demos/tview/config.json&session=spec-%7B%22sessionName%22%3A%22alu-trio%22%2C%22views%22%3A%5B%7B%22id%22%3A%22lgv%22%2C%22type%22%3A%22LinearGenomeView%22%2C%22loc%22%3A%22chr1%3A5%2C934%2C190..5%2C934%2C390%22%2C%22assembly%22%3A%22hg19%22%2C%22tracks%22%3A%5B%7B%22trackId%22%3A%22HG002%22%2C%22displaySnapshot%22%3A%7B%22height%22%3A55%7D%7D%2C%7B%22trackId%22%3A%22HG003%22%2C%22displaySnapshot%22%3A%7B%22height%22%3A55%7D%7D%2C%7B%22trackId%22%3A%22HG004%22%2C%22displaySnapshot%22%3A%7B%22height%22%3A55%7D%7D%5D%7D%2C%7B%22id%22%3A%22tview%22%2C%22type%22%3A%22TView%22%2C%22displayName%22%3A%22alu-trio%22%2C%22assembly%22%3A%22hg19%22%2C%22loc%22%3A%22chr1%3A5%2C934%2C190..5%2C934%2C390%22%2C%22tracks%22%3A%5B%7B%22trackId%22%3A%22HG002%22%2C%22sample%22%3A%22HG002_son%22%7D%2C%7B%22trackId%22%3A%22HG003%22%2C%22sample%22%3A%22HG003_father%22%7D%2C%7B%22trackId%22%3A%22HG004%22%2C%22sample%22%3A%22HG004_mother%22%7D%5D%2C%22connectedViewId%22%3A%22lgv%22%2C%22height%22%3A900%2C%22colWidth%22%3A3%2C%22rowHeight%22%3A5%2C%22treeAreaWidth%22%3A220%7D%5D%7D
109
+ [tview-demo-fmr1]:
110
+ https://jbrowse.org/code/jb2/main/index.html?config=/demos/tview/config.json&session=spec-%7B%22sessionName%22%3A%22fmr1%22%2C%22views%22%3A%5B%7B%22id%22%3A%22lgv%22%2C%22type%22%3A%22LinearGenomeView%22%2C%22loc%22%3A%22chrX%3A146%2C993%2C530..146%2C993%2C670%22%2C%22assembly%22%3A%22hg19%22%2C%22tracks%22%3A%5B%7B%22trackId%22%3A%22HG002%22%2C%22displaySnapshot%22%3A%7B%22height%22%3A55%7D%7D%2C%7B%22trackId%22%3A%22HG003%22%2C%22displaySnapshot%22%3A%7B%22height%22%3A55%7D%7D%2C%7B%22trackId%22%3A%22HG004%22%2C%22displaySnapshot%22%3A%7B%22height%22%3A55%7D%7D%5D%7D%2C%7B%22id%22%3A%22tview%22%2C%22type%22%3A%22TView%22%2C%22displayName%22%3A%22fmr1%22%2C%22assembly%22%3A%22hg19%22%2C%22loc%22%3A%22chrX%3A146%2C993%2C530..146%2C993%2C670%22%2C%22tracks%22%3A%5B%7B%22trackId%22%3A%22HG002%22%2C%22sample%22%3A%22HG002_son%22%7D%2C%7B%22trackId%22%3A%22HG003%22%2C%22sample%22%3A%22HG003_father%22%7D%2C%7B%22trackId%22%3A%22HG004%22%2C%22sample%22%3A%22HG004_mother%22%7D%5D%2C%22connectedViewId%22%3A%22lgv%22%2C%22height%22%3A900%2C%22colWidth%22%3A6%2C%22rowHeight%22%3A8%2C%22treeAreaWidth%22%3A220%7D%5D%7D
111
+ [tview-demo-htt]:
112
+ https://jbrowse.org/code/jb2/main/index.html?config=/demos/tview/config.json&session=spec-%7B%22sessionName%22%3A%22htt%22%2C%22views%22%3A%5B%7B%22id%22%3A%22lgv%22%2C%22type%22%3A%22LinearGenomeView%22%2C%22loc%22%3A%22chr4%3A3%2C076%2C570..3%2C076%2C730%22%2C%22assembly%22%3A%22hg19%22%2C%22tracks%22%3A%5B%7B%22trackId%22%3A%22HG002%22%2C%22displaySnapshot%22%3A%7B%22height%22%3A55%7D%7D%2C%7B%22trackId%22%3A%22HG003%22%2C%22displaySnapshot%22%3A%7B%22height%22%3A55%7D%7D%2C%7B%22trackId%22%3A%22HG004%22%2C%22displaySnapshot%22%3A%7B%22height%22%3A55%7D%7D%5D%7D%2C%7B%22id%22%3A%22tview%22%2C%22type%22%3A%22TView%22%2C%22displayName%22%3A%22htt%22%2C%22assembly%22%3A%22hg19%22%2C%22loc%22%3A%22chr4%3A3%2C076%2C570..3%2C076%2C730%22%2C%22tracks%22%3A%5B%7B%22trackId%22%3A%22HG002%22%2C%22sample%22%3A%22HG002_son%22%7D%2C%7B%22trackId%22%3A%22HG003%22%2C%22sample%22%3A%22HG003_father%22%7D%2C%7B%22trackId%22%3A%22HG004%22%2C%22sample%22%3A%22HG004_mother%22%7D%5D%2C%22connectedViewId%22%3A%22lgv%22%2C%22height%22%3A900%2C%22colWidth%22%3A6%2C%22rowHeight%22%3A8%2C%22treeAreaWidth%22%3A220%7D%5D%7D
113
+ [tview-demo-atxn3]:
114
+ https://jbrowse.org/code/jb2/main/index.html?config=/demos/tview/config.json&session=spec-%7B%22sessionName%22%3A%22atxn3%22%2C%22views%22%3A%5B%7B%22id%22%3A%22lgv%22%2C%22type%22%3A%22LinearGenomeView%22%2C%22loc%22%3A%22chr14%3A92%2C537%2C320..92%2C537%2C420%22%2C%22assembly%22%3A%22hg19%22%2C%22tracks%22%3A%5B%7B%22trackId%22%3A%22HG002%22%2C%22displaySnapshot%22%3A%7B%22height%22%3A55%7D%7D%2C%7B%22trackId%22%3A%22HG003%22%2C%22displaySnapshot%22%3A%7B%22height%22%3A55%7D%7D%2C%7B%22trackId%22%3A%22HG004%22%2C%22displaySnapshot%22%3A%7B%22height%22%3A55%7D%7D%5D%7D%2C%7B%22id%22%3A%22tview%22%2C%22type%22%3A%22TView%22%2C%22displayName%22%3A%22atxn3%22%2C%22assembly%22%3A%22hg19%22%2C%22loc%22%3A%22chr14%3A92%2C537%2C320..92%2C537%2C420%22%2C%22tracks%22%3A%5B%7B%22trackId%22%3A%22HG002%22%2C%22sample%22%3A%22HG002_son%22%7D%2C%7B%22trackId%22%3A%22HG003%22%2C%22sample%22%3A%22HG003_father%22%7D%2C%7B%22trackId%22%3A%22HG004%22%2C%22sample%22%3A%22HG004_mother%22%7D%5D%2C%22connectedViewId%22%3A%22lgv%22%2C%22height%22%3A900%2C%22colWidth%22%3A7%2C%22rowHeight%22%3A8%2C%22treeAreaWidth%22%3A220%7D%5D%7D
115
+ [tview-demo-atxn3-hg004]:
116
+ https://jbrowse.org/code/jb2/main/index.html?config=/demos/tview/config.json&session=spec-%7B%22sessionName%22%3A%22atxn3-hg004%22%2C%22views%22%3A%5B%7B%22id%22%3A%22lgv%22%2C%22type%22%3A%22LinearGenomeView%22%2C%22loc%22%3A%22chr14%3A92%2C537%2C320..92%2C537%2C420%22%2C%22assembly%22%3A%22hg19%22%2C%22tracks%22%3A%5B%7B%22trackId%22%3A%22HG004%22%2C%22displaySnapshot%22%3A%7B%22height%22%3A55%7D%7D%5D%7D%2C%7B%22id%22%3A%22tview%22%2C%22type%22%3A%22TView%22%2C%22displayName%22%3A%22atxn3-hg004%22%2C%22assembly%22%3A%22hg19%22%2C%22loc%22%3A%22chr14%3A92%2C537%2C320..92%2C537%2C420%22%2C%22tracks%22%3A%5B%7B%22trackId%22%3A%22HG004%22%2C%22sample%22%3A%22HG004_mother%22%7D%5D%2C%22connectedViewId%22%3A%22lgv%22%2C%22height%22%3A900%2C%22colWidth%22%3A7%2C%22rowHeight%22%3A8%2C%22treeAreaWidth%22%3A220%7D%5D%7D
117
+ [tview-demo-abca7]:
118
+ https://jbrowse.org/code/jb2/main/index.html?config=/demos/tview/config.json&session=spec-%7B%22sessionName%22%3A%22abca7%22%2C%22views%22%3A%5B%7B%22id%22%3A%22lgv%22%2C%22type%22%3A%22LinearGenomeView%22%2C%22loc%22%3A%22chr19%3A1%2C049%2C460..1%2C050%2C000%22%2C%22assembly%22%3A%22hg19%22%2C%22tracks%22%3A%5B%7B%22trackId%22%3A%22HG003%22%2C%22displaySnapshot%22%3A%7B%22height%22%3A55%7D%7D%5D%7D%2C%7B%22id%22%3A%22tview%22%2C%22type%22%3A%22TView%22%2C%22displayName%22%3A%22abca7%22%2C%22assembly%22%3A%22hg19%22%2C%22loc%22%3A%22chr19%3A1%2C049%2C460..1%2C050%2C000%22%2C%22tracks%22%3A%5B%7B%22trackId%22%3A%22HG003%22%2C%22sample%22%3A%22HG003_father%22%7D%5D%2C%22connectedViewId%22%3A%22lgv%22%2C%22height%22%3A900%2C%22colWidth%22%3A1%2C%22rowHeight%22%3A16%7D%5D%7D
119
+
120
+ <!-- /demo-links -->
121
+
122
+ Nothing to accept and nothing to install: click one and wait for the reads,
123
+ which take a few seconds since they arrive by range request and the alignment is
124
+ built in a worker.
125
+
126
+ The links open the build a maintainer last uploaded with `pnpm demos:upload`,
127
+ which can be older than the figures in this README and look different from them.
128
+
129
+ The demo lives at [jbrowse.org/demos/tview/](https://jbrowse.org/demos/tview/) —
130
+ the config and the plugin bundle both, and that folder opens the first of them —
131
+ and runs in [JBrowse Web nightly](https://jbrowse.org/code/jb2/main/), the
132
+ nightly because the plugin needs a JBrowse v5 host (see
133
+ [Requirements](#requirements)). Hosting it there rather than pointing at a
134
+ config on GitHub and a bundle on a CDN is what makes it one click: jbrowse-web
135
+ asks a visitor to confirm a **cross origin** config that names a UMD plugin,
136
+ which is the right thing for it to do and put a dialog headed "Warning" in front
137
+ of a README link. Served from the origin the JBrowse is on, the question does
138
+ not arise.
139
+
140
+ Hosting the bundle there also frees the demo from npm releases:
141
+ `pnpm demos:upload` puts the **built** bundle there. Each link is the session
142
+ spec its figure below was taken from, so after an upload the demo, the
143
+ screenshot and the numbers are three renderings of one window.
144
+
145
+ ## Insertions
146
+
147
+ ![An Alu insertion in HG002 at chr1:5,934,288, as a JBrowse pileup above, where each read's copy is a purple box with its length, and as a tview below, where its bases have columns](img/insertion-alu.png)
148
+
149
+ An Alu in an intron of NPHP4, in HG002's PacBio HiFi reads. JBrowse's pileup
150
+ above draws each read's copy as a purple box labelled with its length, 282 to
151
+ 285bp in the reads on screen. The tview below aligns the copies to each other in
152
+ 290 columns, with the poly-A tail in green at the right-hand end, and the rows
153
+ without the insertion are blank across them. [Open this one
154
+ live][tview-demo-alu].
155
+
156
+ The GIAB HG002 structural-variant benchmark (v0.6, GRCh37) calls this a
157
+ heterozygous 283bp insertion after 1:5,934,288. It was found by taking that
158
+ benchmark's heterozygous insertions of 280 to 330bp outside tandem repeats and
159
+ segmental duplications, and counting, in each of the trio's BAMs, the reads that
160
+ span each one and the reads with an insertion of 200bp or more within 100bp of
161
+ it. Here 22 of HG002's 44 spanning reads have it, 24 of his father's 54 do, and
162
+ none of his mother's 31 do, which is what [the same window in all
163
+ three][tview-demo-alu-trio] shows.
164
+
165
+ Each insertion site is as wide as the longest sequence inserted there, after the
166
+ sequences are aligned to each other:
167
+
168
+ - **Inserted sequences are aligned to the commonest one.** At each site, the
169
+ sequence the most reads carry is the centre, ties going to the length nearest
170
+ the median, and every other distinct sequence is aligned to it. The alignment
171
+ is banded, so its time grows with length times divergence rather than with
172
+ length squared. A site whose alignments would take more than a fixed budget of
173
+ work is left left-justified. A site whose inserted sequence is copies of one
174
+ unit is laid out a copy per block instead (see
175
+ [Tandem repeats](#tandem-repeats)).
176
+ - **Insertions are left-normalized.** An aligner can anchor the same `CA`
177
+ inserted in a `CACACA` run at either end of it. Each read's insertion is moved
178
+ left through the read's own bases for as long as the read spells the same
179
+ sequence, so reads carrying one event share one site. An insertion a tandem
180
+ array owns stays where the array put it.
181
+ - **A read that does not span a site is absent there.** In the alignment's text,
182
+ a read that spans a site without inserting has `-` in its columns, and a read
183
+ that does not span it has `.`.
184
+
185
+ ![The volvox test reads at ctgA:15,140..15,190 in a tview, where the inserted bases have a column of their own](img/tview-insertion.png)
186
+
187
+ The volvox test reads at `ctgA:15,140..15,190`. The 1bp insertion after 15,163
188
+ is a column of its own, bracketed as "+1bp after ctgA:15,163": the reads with
189
+ the insertion show their base there, a C in all but one. Bases that match the
190
+ reference are dots on grey, and a row is white where its read has no base.
191
+
192
+ Each insertion site has a bracket in the Highlights strip above the alignment,
193
+ labelled with the size and the reference base it follows, such as
194
+ `+1bp after ctgA:15,163`. The size is the length most of the reads at the site
195
+ insert: HG002's reads have 280 to 287bp of the Alu above, and the bracket over
196
+ its 290 columns is labelled `+283bp`. Each tandem array has a bracket labelled
197
+ with its unit and the reference's copy count, such as
198
+ `(GCG)x21 in the reference`. In a noisy window only the 100 sites carrying the
199
+ most inserted sequence get a bracket. A one-column bracket draws as a triangle,
200
+ and where brackets crowd, some are drawn without their label. Hovering a bracket
201
+ outlines its columns, a click selects them, and a double click zooms to them.
25
202
 
26
203
  ## How it is built
27
204
 
28
205
  The alignment is built in an **RPC worker** (`TviewGetPlan`), so the reads never
29
206
  cross to the main thread — the fetch, the pairwise alignments and the string
30
- building all happen there and only the FASTA comes back. That is also what makes
31
- several files one call: their rows are squared up against the same reference
32
- interval, so an array's copies are counted once, over rows from all of them.
207
+ building all happen there, and what comes back is the alignment, a table of what
208
+ each row is, the brackets and any base modification calls. That is also what
209
+ makes several files one call: their rows are squared up against the same
210
+ reference interval, so an array's copies are counted once, over rows from all of
211
+ them.
33
212
 
34
213
  ## Tandem repeats
35
214
 
36
- ![ABCA7 VNTR alleles in HG003](img/repeat-abca7-vntr.png)
215
+ ![ABCA7 VNTR alleles in HG003, one row per read with its copy count as a bar and a number beside it](img/repeat-abca7-vntr.png)
37
216
 
38
- The ABCA7 VNTR in one PacBio HiFi sample, a copy per block of columns. Every row
39
- carries its copy count, and the rows sort by it, so the genotype is the step in
40
- the ladder — the two alleles the table below reports for HG003, with a scatter
41
- of reads between them. Laid out base by base this is 2.2kb of sequence with
42
- nothing to line it up against.
217
+ The ABCA7 VNTR in one PacBio HiFi sample, a copy per block of columns. Each
218
+ row's copy count is the bar and the number beside it, and the rows sort by it,
219
+ so the genotype is the step in the ladder — the two alleles the table below
220
+ reports for HG003, with a few reads off them. Laid out base by base this is
221
+ 2.2kb of sequence with nothing to line it up against. [Open this one
222
+ live][tview-demo-abca7].
43
223
 
44
224
  ### An array is an interval, not an insertion
45
225
 
@@ -86,10 +266,13 @@ At a detected array:
86
266
 
87
267
  - **copy k of every row occupies the same block**, so one divergent copy shows
88
268
  up as a column rather than shifting every copy after it.
89
- - **each row is labelled with its copy count** (`readname|n=32`), which is the
90
- measurement, rather than leaving it to be read off where the row ends.
91
- - **rows are ordered longest allele first**, so the alleles form a ladder.
92
- - the default column width shrinks to fit the array on screen.
269
+ - **each row's copy count is drawn beside it**, as a bar in the `copies` panel
270
+ and a number in the `n` panel, which is the measurement, rather than leaving
271
+ it to be read off where the row ends.
272
+ - **rows sort by copy count, most copies first**, within each sample's band, so
273
+ the alleles form a ladder.
274
+ - the column width starts at whatever puts the whole alignment in about 3,000px,
275
+ between 1 and 10px, so a long array is mostly on screen.
93
276
 
94
277
  **Blocks are array order, not homology.** Copies are counted from the left edge
95
278
  of the interval, and arrays expand and contract anywhere inside themselves, so
@@ -175,11 +358,14 @@ them beside it is what the count depends on.
175
358
 
176
359
  ### Several samples at once
177
360
 
178
- ![FMR1 CGG in the GIAB trio](img/repeat-fmr1-trio.png)
361
+ ![FMR1 CGG in the GIAB trio, rows in a band per sample with the reference band on top](img/repeat-fmr1-trio.png)
179
362
 
180
363
  The FMR1 CGG repeat in the GIAB Ashkenazi trio, all three files in one
181
- alignment. Rows are grouped into a clade per sample by a synthetic tree, which
182
- turns on react-msaview's collapse and show-only controls for free.
364
+ alignment. Rows are grouped in a band per sample, labelled in the gutter beside
365
+ the read names, with the reference in a band of its own on top, and the rows in
366
+ each band sort by copy count. A band is named after the `sample` its track was
367
+ given in the view's `init`, or after the track. [Open this one
368
+ live][tview-demo-fmr1].
183
369
 
184
370
  The copy numbers are checkable, which is the point of this locus: FMR1 is on the
185
371
  X, so the two male samples come back with one allele each and the mother with
@@ -187,50 +373,102 @@ two, and the son's single allele is one of his mother's, as an X-linked allele
187
373
  has to be. The counts are in the genotype table above, where they are measured
188
374
  rather than typed.
189
375
 
190
- Two things about this figure are settings rather than data, and both are there
191
- because a column costs the same whether 124 rows use it or one does:
376
+ Three things about this figure are settings rather than data:
192
377
 
193
- - **Columns only one row has a base in are hidden** — the toolbar's "hide
194
- columns w/ N% gaps", set to whatever percent means "one row" for the number of
195
- rows there are. That is read error, and it is a fifth of the columns at some
196
- of these loci; the rows that carry one keep an insertion marker where it was.
197
- What each figure is made of:
378
+ - **Columns only one row has a base in are hidden**, with react-msaview's gap
379
+ threshold set to whatever percent means "one row" for the number of rows there
380
+ are, because a column takes the same width whether 124 rows use it or one
381
+ does. That is read error, and it is a fifth of the columns at some of these
382
+ loci; the rows that carry one keep an insertion marker where it was. What each
383
+ figure is made of:
198
384
 
199
385
  <!-- repeat-figures -->
200
386
 
201
- | figure | rows | columns | columns one row has | hidden |
202
- | ---------------------------------- | ---- | ------- | ------------------- | ------ |
203
- | [fmr1](img/repeat-fmr1-trio.png) | 124 | 218 | 24 | 11% |
204
- | [htt](img/repeat-htt-trio.png) | 182 | 222 | 25 | 11% |
205
- | [atxn3](img/repeat-atxn3-trio.png) | 157 | 159 | 18 | 11% |
206
- | [abca7](img/repeat-abca7-vntr.png) | 16 | 3630 | 1253 | 35% |
387
+ | figure | rows | columns | columns one row has | hidden |
388
+ | ----------------------------------------- | ---- | ------- | ------------------- | ------ |
389
+ | [fmr1](img/repeat-fmr1-trio.png) | 124 | 218 | 24 | 11% |
390
+ | [htt](img/repeat-htt-trio.png) | 182 | 222 | 25 | 11% |
391
+ | [atxn3](img/repeat-atxn3-trio.png) | 157 | 159 | 18 | 11% |
392
+ | [atxn3-hg004](img/repeat-atxn3-hg004.png) | 53 | 145 | 4 | 3% |
393
+ | [abca7](img/repeat-abca7-vntr.png) | 16 | 3630 | 1253 | 35% |
207
394
 
208
395
  <!-- /repeat-figures -->
209
396
 
397
+ - **The label column is 220px**, so the read names are cut in the middle. The
398
+ view fits the column to the widest name unless told otherwise.
210
399
  - **The window is sized to the alignment**, because a JBrowse view taller than
211
- its window loses its last rows with nothing on screen to say so — and rows are
212
- ordered longest allele first, so what falls off the bottom is a whole sample.
213
- `pnpm figures:repeats` now grows the window to the content and warns when it
214
- cannot.
400
+ its window loses its last rows with nothing on screen to say so, and what
401
+ falls off the bottom is the last band, a whole sample. `pnpm figures:giab`
402
+ grows the window to the content and warns when it cannot.
403
+
404
+ ## Base modifications
405
+
406
+ When the reads carry MM/ML tags, the view places each read's most probable call
407
+ at each base on that base, inserted bases included. Hovering a cell names the
408
+ call, such as `5mC 97%`. The view's menu gains a **Base modifications** submenu:
409
+
410
+ - **Color by bases**, the default, keeps the base colours.
411
+ - **Color by modification** fills each called base on a scale from blue (0%) to
412
+ red (100%) of its call's probability, with a legend.
413
+
414
+ ![Nanopore reads with 5mC calls at 20:13,226..13,275, coloured by modification, with a called base in an insertion column](img/tview-modifications.png)
415
+
416
+ Seven nanopore reads from `public/methylation_clip.bam`, coloured by
417
+ modification. The red G in the second read sits in the column bracketed after
418
+ 20:13,243, a base the reference does not have; the read is on the reverse
419
+ strand, so its called C reads as a G.
420
+
421
+ The calls have limits:
422
+
423
+ - **At most 50,000 calls per view.** Past that the least probable are left out,
424
+ and the menu says how many.
425
+ - **A row whose letters are not one unbroken run of its read's sequence gets no
426
+ calls**, since a call projected onto it could land on the wrong base. That
427
+ happens inside a tandem array, where a read's insertion was re-filed into the
428
+ array or the row has no allele for a block. The menu counts these rows as "not
429
+ annotated".
430
+ - **One call per base.** A base called as both 5mC and 5hmC shows the more
431
+ probable of the two.
215
432
 
216
433
  ## Usage
217
434
 
218
- - Install the plugin
219
- - Open the track menu (vertical `...`) on an alignments track
220
- - Click "Launch tview for visible region"
221
- - Tick any other open alignments track to fold its reads into the same alignment
435
+ Install the plugin, then open a tview in one of three ways:
436
+
437
+ - **From an alignments track.** The track menu (vertical `...`) has **Launch
438
+ tview for visible region**, which opens the view at once over the region in
439
+ view. It is disabled, with the reason beneath it, when the region is wider
440
+ than 20,000bp or spans more than one region.
441
+ - **From a selection.** Drag across the genome view's ruler to select a region,
442
+ then choose **Launch** -> **Tview of all alignments tracks**, which reads
443
+ every alignments track open in that view into one alignment.
444
+ - **From a session or a link**, with no click path (see below).
222
445
 
223
- The launched view stays connected to the genome view it came from: hovering or
224
- clicking an alignment column highlights the corresponding genome position, and
225
- clicking navigates there. "Zoom to base level on click?" in the view menu
226
- switches between centering and zooming.
446
+ The view's own menu (the hamburger on its title bar) changes what it shows:
227
447
 
228
- The visible region is capped at 20kb, since one column per base gets unwieldy
229
- beyond that.
448
+ - **Tracks** ticks which alignments tracks the view reads: those open in the
449
+ genome view it came from, and any others it already reads. At least one stays
450
+ ticked.
451
+ - **Show the connected view's current region** rebuilds the view over whatever
452
+ the genome view is showing now, with the same limits as the track menu.
453
+ - **Zoom to base level on click?** switches a click on a column between centring
454
+ the genome view there and zooming it to that base.
455
+ - **Base modifications** appears when the reads carry calls (see above).
456
+
457
+ The view stays connected to the genome view it came from:
458
+
459
+ - Hovering a column highlights that position in the genome view, and a click
460
+ keeps it highlighted and moves the genome view there.
461
+ - Hovering the genome view highlights that base of the reference row in the
462
+ alignment.
463
+
464
+ While it builds, the view says what it is waiting for. When it cannot load a
465
+ region, it shows why in place of the alignment, with a retry button where
466
+ retrying can help. Besides the 20,000bp limit, an alignment is refused past 25
467
+ million cells (rows times columns), since every read is a full-width row.
230
468
 
231
469
  ### As a session, with no click path
232
470
 
233
- A tview is a locus, an assembly and the files to read it from, so it can be
471
+ A tview is a locus, an assembly and the tracks to read it from, so it can be
234
472
  declared rather than driven. In a `defaultSession` or a saved session that is
235
473
  the view's `init` block:
236
474
 
@@ -261,34 +499,76 @@ plugin's:
261
499
  }
262
500
  ```
263
501
 
502
+ `assembly`, `loc` and `tracks` are required, and a spec missing one fails with
503
+ "A TView spec needs an assembly name, a loc string and a tracks array of
504
+ trackIds". A track is a trackId or `{ trackId, sample }`, where `sample` names
505
+ its band. Every other key is passed to the view as is, such as
506
+ `connectedViewId`, `colWidth` or `rowHeight`, and the view is titled with its
507
+ locus unless `displayName` says otherwise.
508
+
264
509
  Either way the view resolves it itself, which is also how a restored session
265
- gets its alignment back: react-msaview drops an MSA over 50kb from snapshots and
266
- there is no file to reload from, so `init` is what persists.
510
+ gets its alignment back: the alignment is never written into the session, so
511
+ `init` is what persists, and the view rebuilds from it.
267
512
 
268
513
  `public/repeats.json` is a working example — the GIAB trio on hosted hg19, with
269
514
  a tview at FMR1 open on load.
270
515
 
271
516
  ## Requirements
272
517
 
273
- Needs a JBrowse build shipping `@jbrowse/core` >=4.3 with MUI 9 — currently
274
- jbrowse-web nightly. On JBrowse 4.3.0 the bundle fails to load, because
275
- react-msaview 5.x needs `@jbrowse/mobx-state-tree` 5.13 APIs and MUI 9 icon
276
- internals that the 4.3.0 release does not ship.
518
+ A JBrowse v5 host: `@jbrowse/core` 5.0.0 or later. No v5 is released yet (npm's
519
+ `latest` is 4.3.0), so today that means
520
+ [JBrowse Web nightly](https://jbrowse.org/code/jb2/main/) or a `5.0.0-beta`
521
+ build from npm's `next` tag; this version was built and tested against
522
+ 5.0.0-beta.23.
523
+
524
+ ## Features react-msaview lacks
525
+
526
+ This view would use two things react-msaview does not have yet:
527
+
528
+ - **A ruler in genomic coordinates.** The position ruler, off by default,
529
+ numbers the reference row's own residues, so it counts from 1 at the start of
530
+ the window rather than from the chromosome position.
531
+ - **Base colours under modification fills.** Coloured by modification, a cell
532
+ with no call loses its base colour, so a mismatch reads only as its letter.
277
533
 
278
534
  ## Development
279
535
 
280
536
  ```bash
281
537
  pnpm install
282
- pnpm start # dev server on :9000, serves dist/out.js with CORS
538
+ pnpm start # dev server on :9000 (or $PORT), serves dist/out.js with CORS
283
539
  pnpm test # unit tests
284
540
  pnpm test:e2e # puppeteer tests (creates .test-jbrowse on first run)
285
541
  pnpm lint
286
542
  pnpm build
287
543
 
288
- pnpm figures:repeats # the tandem-repeat figures in img/
544
+ pnpm figure # the figures in img/ from the fixtures in public/
545
+ pnpm figures:giab # the figures in img/ from the GIAB trio
289
546
  pnpm report:repeats # copy numbers at known loci, from live GIAB data
547
+ pnpm demos # public/demo.json and the live-demo links above
548
+ pnpm demos:upload # ...and push both to jbrowse.org/demos/tview/
290
549
  ```
291
550
 
551
+ `demos` regenerates the hosted config from `public/repeats.json` and the links
552
+ from the same figure definitions, so the demo, the screenshot and the numbers
553
+ are three renderings of one window. It needs no network, so `pnpm demos --check`
554
+ runs in Integration on every push, where the measured tables have to wait for
555
+ the weekly Measurements run.
556
+
557
+ `demos:upload` builds first, then writes `config.json`, `plugin.js` and an
558
+ `index.html` under `s3://jbrowse.org/demos/tview/` and invalidates that path.
559
+ The index is only there so the folder itself is a link rather than a 404 for
560
+ whoever trims one of the long ones. It needs AWS credentials for the bucket, so
561
+ it is a thing a maintainer runs and not a thing CI does — and it is the only
562
+ step between a change here and what the links open.
563
+
564
+ The figures are defined in `scripts/lib/figures.mjs` as session specs and taken
565
+ by `scripts/lib/capture.mjs`, which starts its own dev server on port 9000, or
566
+ on `FIGURE_PORT` when it is set (with esbuild's own server 400 above it). On
567
+ another port it writes a copy of the config naming the bundle there and deletes
568
+ it afterwards. The harness prints what each figure holds (rows, columns, hidden
569
+ columns, brackets, whether residue letters are drawn) and warns when a repeat
570
+ figure came out with no copy counts or with rows or columns that did not fit.
571
+
292
572
  `report:repeats` is not a test. It fetches from GIAB and UCSC and prints what
293
573
  the plan builder measured at each locus, per sample, so the numbers can be read
294
574
  against what the locus is known to carry — Mendelian consistency across the
@@ -1,19 +1,8 @@
1
1
  import React from 'react';
2
2
  import { getSession } from '@jbrowse/core/util';
3
- import HighlightComponents from './HighlightComponents';
3
+ import MsaToGenomeHighlight from './MsaToGenomeHighlight';
4
4
  import { isTView } from '../TViewPanel/model';
5
5
  export default function AddHighlightComponentsModelF(pluginManager) {
6
- pluginManager.addToExtensionPoint('LinearGenomeView-TracksContainerComponent',
7
- // @ts-expect-error
8
- (rest, { model }) => {
9
- // skip entirely unless a TView is connected to this genome view
10
- const { views } = getSession(model);
11
- return views.some(v => isTView(v) && v.connectedViewId === model.id)
12
- ? [
13
- ...rest,
14
- React.createElement(HighlightComponents, { key: "tview_highlights", model: model }),
15
- ]
16
- : rest;
17
- });
6
+ pluginManager.contributeToExtensionPoint('LinearGenomeView-TracksContainerComponent', ({ model }) => getSession(model).views.some(v => isTView(v) && v.connectedViewId === model.id) ? (React.createElement(MsaToGenomeHighlight, { key: "tview_highlights", model: model })) : undefined);
18
7
  }
19
8
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/AddHighlightModel/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAA;AAE/C,OAAO,mBAAmB,MAAM,uBAAuB,CAAA;AACvD,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAA;AAK7C,MAAM,CAAC,OAAO,UAAU,4BAA4B,CAClD,aAA4B;IAE5B,aAAa,CAAC,mBAAmB,CAC/B,2CAA2C;IAC3C,mBAAmB;IACnB,CAAC,IAAuB,EAAE,EAAE,KAAK,EAAoC,EAAE,EAAE;QACvE,gEAAgE;QAChE,MAAM,EAAE,KAAK,EAAE,GAAG,UAAU,CAAC,KAAK,CAAC,CAAA;QACnC,OAAO,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,OAAO,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,eAAe,KAAK,KAAK,CAAC,EAAE,CAAC;YAClE,CAAC,CAAC;gBACE,GAAG,IAAI;gBACP,oBAAC,mBAAmB,IAAC,GAAG,EAAC,kBAAkB,EAAC,KAAK,EAAE,KAAK,GAAI;aAC7D;YACH,CAAC,CAAC,IAAI,CAAA;IACV,CAAC,CACF,CAAA;AACH,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/AddHighlightModel/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAA;AAE/C,OAAO,oBAAoB,MAAM,wBAAwB,CAAA;AACzD,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAA;AAI7C,MAAM,CAAC,OAAO,UAAU,4BAA4B,CAClD,aAA4B;IAE5B,aAAa,CAAC,0BAA0B,CACtC,2CAA2C,EAC3C,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CACZ,UAAU,CAAC,KAAK,CAAC,CAAC,KAAK,CAAC,IAAI,CAC1B,CAAC,CAAC,EAAE,CAAC,OAAO,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,eAAe,KAAK,KAAK,CAAC,EAAE,CAClD,CAAC,CAAC,CAAC,CACF,oBAAC,oBAAoB,IAAC,GAAG,EAAC,kBAAkB,EAAC,KAAK,EAAE,KAAK,GAAI,CAC9D,CAAC,CAAC,CAAC,SAAS,CAChB,CAAA;AACH,CAAC"}