@sjcrh/proteinpaint-client 2.182.0 → 2.183.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 (1004) hide show
  1. package/dist/2dmaf-6ZTETSC5.js +1371 -0
  2. package/dist/AIProjectAdmin-ZT3XKBBT.js +830 -0
  3. package/dist/AIProjectAdmin-ZT3XKBBT.js.map +7 -0
  4. package/dist/AppHeader-U7SJPIBS.js +833 -0
  5. package/dist/BoxPlot-QGHLZ67V.js +1217 -0
  6. package/dist/BoxPlot-QGHLZ67V.js.map +7 -0
  7. package/dist/CorrelationVolcano-7SE4CTBW.js +617 -0
  8. package/dist/DE-PZ7RHPBS.js +93 -0
  9. package/dist/DEinput-UZEQIU2V.js +297 -0
  10. package/dist/DifferentialAnalysis-L6BOEYVO.js +238 -0
  11. package/dist/Disco-6FDT6KRM.js +3235 -0
  12. package/dist/Disco-6FDT6KRM.js.map +7 -0
  13. package/dist/Disco.UI-HKOUAD4P.js +242 -0
  14. package/dist/DmrPlot-3R24PTXP.js +640 -0
  15. package/dist/GB-SZVYZASR.js +1125 -0
  16. package/dist/HicApp-SEEJETVE.js +2248 -0
  17. package/dist/NumBinaryEditor-SDQFJ3FW.js +268 -0
  18. package/dist/NumBinaryEditor.unit.spec-76ZZXTYC.js +284 -0
  19. package/dist/NumContEditor-G75O4YZE.js +105 -0
  20. package/dist/NumContEditor.unit.spec-BFUZRBPL.js +167 -0
  21. package/dist/NumCustomBinEditor-ILTPHCEF.js +36 -0
  22. package/dist/NumCustomBinEditor.unit.spec-GFIYV55V.js +282 -0
  23. package/dist/NumDiscreteEditor-5K3OKUOE.js +177 -0
  24. package/dist/NumDiscreteEditor.unit.spec-NZ4KWPFK.js +200 -0
  25. package/dist/NumRegularBinEditor-7ZJ2MEMY.js +36 -0
  26. package/dist/NumRegularBinEditor.unit.spec-QGVJET65.js +225 -0
  27. package/dist/NumSplineEditor-KE4UPODZ.js +190 -0
  28. package/dist/NumSplineEditor.unit.spec-YQOOZA7S.js +197 -0
  29. package/dist/NumericDensity-RL42P4QC.js +36 -0
  30. package/dist/NumericDensity.unit.spec-Y6RMTYC7.js +219 -0
  31. package/dist/NumericHandler-4QIX324I.js +37 -0
  32. package/dist/NumericHandler.unit.spec-T6F5QYP6.js +217 -0
  33. package/dist/RunChart2-ASGCKKER.js +756 -0
  34. package/dist/RunChart2-ASGCKKER.js.map +7 -0
  35. package/dist/SC-H2YCKSBH.js +682 -0
  36. package/dist/SC-H2YCKSBH.js.map +7 -0
  37. package/dist/Volcano-QBYYJYVW.js +1185 -0
  38. package/dist/Volcano-QBYYJYVW.js.map +7 -0
  39. package/dist/WSIViewer-NDHWFVAB.js +47974 -0
  40. package/dist/WSIViewer-NDHWFVAB.js.map +7 -0
  41. package/dist/WsiSamplesPlot-CXGWPCDL.js +163 -0
  42. package/dist/adSandbox-DE4VRO4Z.js +36 -0
  43. package/dist/alphaGenome-FSIGC5ZT.js +173 -0
  44. package/dist/app-KZGKWQMU.js +47 -0
  45. package/dist/app-MQRJ7FVL.js +35 -0
  46. package/dist/app.js +22 -22
  47. package/dist/bam-BDWTA4O3.js +857 -0
  48. package/dist/barchart-4Q6LVJY4.js +45 -0
  49. package/dist/barchart.data-EXENRVMU.js +22 -0
  50. package/dist/barchart.events-XRGND6I7.js +45 -0
  51. package/dist/barchart.integration.spec-VQITP4YH.js +1675 -0
  52. package/dist/bars.renderer-S7A7I6BQ.js +12 -0
  53. package/dist/block-2MABX5QO.js +6200 -0
  54. package/dist/block-2MABX5QO.js.map +7 -0
  55. package/dist/block.init-NCNSE3HD.js +36 -0
  56. package/dist/block.mds.expressionrank-JYZARS7T.js +357 -0
  57. package/dist/block.mds.geneboxplot-FD2MCIHV.js +826 -0
  58. package/dist/block.mds.junction-LOHVQBIU.js +1543 -0
  59. package/dist/block.mds.svcnv-Z7SAYPQL.js +6799 -0
  60. package/dist/block.svg-LNJOKQNN.js +162 -0
  61. package/dist/block.tk.aicheck-IXCMMAGV.js +281 -0
  62. package/dist/block.tk.ase-WYRYFP6N.js +363 -0
  63. package/dist/block.tk.bam-EIVBNGAL.js +1904 -0
  64. package/dist/block.tk.bedgraphdot-3FHLNCU7.js +382 -0
  65. package/dist/block.tk.bigwig.ui-YDQU5PC4.js +209 -0
  66. package/dist/block.tk.hicstraw-S3ROL3CV.js +821 -0
  67. package/dist/block.tk.junction-DL7RNWX3.js +2362 -0
  68. package/dist/block.tk.junction.textmatrixui-Z6I7IEDY.js +197 -0
  69. package/dist/block.tk.ld-XHVU6L56.js +97 -0
  70. package/dist/block.tk.menu-FPLAEEFY.js +1027 -0
  71. package/dist/block.tk.pgv-6ZZ2QGNO.js +942 -0
  72. package/dist/brainImaging-VSOOMITW.js +421 -0
  73. package/dist/chat-LW23PIG5.js +148 -0
  74. package/dist/chunk-2A2KM5DU.js +117 -0
  75. package/dist/chunk-2A2KM5DU.js.map +7 -0
  76. package/dist/chunk-2K5DSRBJ.js +84 -0
  77. package/dist/chunk-2K5DSRBJ.js.map +7 -0
  78. package/dist/chunk-2LULD7RN.js +31 -0
  79. package/dist/chunk-36DYWBU7.js +514 -0
  80. package/dist/chunk-36DYWBU7.js.map +7 -0
  81. package/dist/chunk-3AGB6HL4.js +158 -0
  82. package/dist/chunk-3AVDNIDN.js +55 -0
  83. package/dist/chunk-3DCABJHB.js +381 -0
  84. package/dist/chunk-3JMB3OSC.js +102 -0
  85. package/dist/chunk-3UEMY45Y.js +215 -0
  86. package/dist/chunk-4RR4KPRJ.js +1205 -0
  87. package/dist/chunk-5HCB4HNL.js +147 -0
  88. package/dist/chunk-5RFB7TYT.js +92 -0
  89. package/dist/chunk-5UMPBVA6.js +534 -0
  90. package/dist/chunk-6C2SBTLR.js +407 -0
  91. package/dist/chunk-6ITDJ5UR.js +261 -0
  92. package/dist/chunk-6ITDJ5UR.js.map +7 -0
  93. package/dist/chunk-6LAE5AVA.js +13624 -0
  94. package/dist/chunk-77ZJGPK2.js +289 -0
  95. package/dist/chunk-77ZJGPK2.js.map +7 -0
  96. package/dist/chunk-7FKIAQ4K.js +17 -0
  97. package/dist/chunk-7FKIAQ4K.js.map +7 -0
  98. package/dist/chunk-7RN3L2BX.js +1788 -0
  99. package/dist/chunk-7RN3L2BX.js.map +7 -0
  100. package/dist/chunk-7VV43ICF.js +272 -0
  101. package/dist/chunk-A6TQGNDQ.js +421 -0
  102. package/dist/chunk-A6TQGNDQ.js.map +7 -0
  103. package/dist/chunk-A742TQD2.js +615 -0
  104. package/dist/chunk-A7E3JZ5P.js +56 -0
  105. package/dist/chunk-A7E3JZ5P.js.map +7 -0
  106. package/dist/chunk-AFLFPYJI.js +480 -0
  107. package/dist/chunk-APOHXHKH.js +526 -0
  108. package/dist/chunk-APOHXHKH.js.map +7 -0
  109. package/dist/chunk-AQ4OP4GR.js +39 -0
  110. package/dist/chunk-BAY47D5E.js +226 -0
  111. package/dist/chunk-CFHKYLDY.js +26 -0
  112. package/dist/chunk-CTAKX5CT.js +129 -0
  113. package/dist/chunk-CVBQWXLH.js +455 -0
  114. package/dist/chunk-CVBQWXLH.js.map +7 -0
  115. package/dist/chunk-D4QFQQWJ.js +170 -0
  116. package/dist/chunk-DGMK7SXX.js +203 -0
  117. package/dist/chunk-DNCSPTOQ.js +446 -0
  118. package/dist/chunk-DTDQKGIQ.js +2672 -0
  119. package/dist/chunk-E4NVHKWD.js +142 -0
  120. package/dist/chunk-E6KEZENR.js +4207 -0
  121. package/dist/chunk-EY2KBPHJ.js +261 -0
  122. package/dist/chunk-EY2KBPHJ.js.map +7 -0
  123. package/dist/chunk-FRBYOOWT.js +229 -0
  124. package/dist/chunk-FVWCYGJL.js +121 -0
  125. package/dist/chunk-HWHG63LH.js +148 -0
  126. package/dist/chunk-HWHG63LH.js.map +7 -0
  127. package/dist/chunk-HYZG6OPC.js +467 -0
  128. package/dist/chunk-HYZG6OPC.js.map +7 -0
  129. package/dist/chunk-I4IKRKYJ.js +2815 -0
  130. package/dist/chunk-IEQSUAIO.js +6364 -0
  131. package/dist/chunk-IET6P5MV.js +335 -0
  132. package/dist/chunk-IET6P5MV.js.map +7 -0
  133. package/dist/chunk-JMPSZMDD.js +52 -0
  134. package/dist/chunk-JXOL73PT.js +2784 -0
  135. package/dist/chunk-K62XUHA4.js +100 -0
  136. package/dist/chunk-KQMEJUWI.js +815 -0
  137. package/dist/chunk-L4QG7XZE.js +46 -0
  138. package/dist/chunk-L4QG7XZE.js.map +7 -0
  139. package/dist/chunk-L4YGMXLX.js +37 -0
  140. package/dist/chunk-L4YGMXLX.js.map +7 -0
  141. package/dist/chunk-LI7FE335.js +371 -0
  142. package/dist/chunk-M7W2GYSM.js +4961 -0
  143. package/dist/chunk-M7W2GYSM.js.map +7 -0
  144. package/dist/chunk-MV6O4I2B.js +441 -0
  145. package/dist/chunk-MXNSW55L.js +148 -0
  146. package/dist/chunk-NB7NLFGZ.js +228 -0
  147. package/dist/chunk-NGGWK6HX.js +302 -0
  148. package/dist/chunk-OGGFS66K.js +1087 -0
  149. package/dist/chunk-OSM7YS23.js +276 -0
  150. package/dist/chunk-OSM7YS23.js.map +7 -0
  151. package/dist/chunk-OXJ2TWDO.js +20644 -0
  152. package/dist/chunk-OXJ2TWDO.js.map +7 -0
  153. package/dist/chunk-Q7PYFSNU.js +107 -0
  154. package/dist/chunk-QMI222IJ.js +386 -0
  155. package/dist/chunk-QRIRWDIW.js +252 -0
  156. package/dist/chunk-R6L6NVEC.js +14 -0
  157. package/dist/chunk-RLTLYKHO.js +34 -0
  158. package/dist/chunk-S5ZI6N2I.js +293 -0
  159. package/dist/chunk-S7T7OZC7.js +158 -0
  160. package/dist/chunk-SEQLC4AD.js +177 -0
  161. package/dist/chunk-TEZLFSOV.js +54 -0
  162. package/dist/chunk-TFI7ZZJG.js +50 -0
  163. package/dist/chunk-TFI7ZZJG.js.map +7 -0
  164. package/dist/chunk-TV74I3Y5.js +43 -0
  165. package/dist/chunk-TV74I3Y5.js.map +7 -0
  166. package/dist/chunk-UEMTP6ZC.js +824 -0
  167. package/dist/chunk-UJU3Q7QJ.js +119 -0
  168. package/dist/chunk-V245THQC.js +2370 -0
  169. package/dist/chunk-V245THQC.js.map +7 -0
  170. package/dist/chunk-V6DLLX4N.js +176 -0
  171. package/dist/chunk-V6DLLX4N.js.map +7 -0
  172. package/dist/chunk-VIPMLSZP.js +217 -0
  173. package/dist/chunk-VQPS4SXU.js +97 -0
  174. package/dist/chunk-VQPS4SXU.js.map +7 -0
  175. package/dist/chunk-VUUZJANK.js +1150 -0
  176. package/dist/chunk-VYIO7T6J.js +82 -0
  177. package/dist/chunk-VYIO7T6J.js.map +7 -0
  178. package/dist/chunk-W345H42C.js +273 -0
  179. package/dist/chunk-W345H42C.js.map +7 -0
  180. package/dist/chunk-WGHO2NCP.js +205 -0
  181. package/dist/chunk-WGL6FIUE.js +330 -0
  182. package/dist/chunk-WGL6FIUE.js.map +7 -0
  183. package/dist/chunk-WPHOEG56.js +194 -0
  184. package/dist/chunk-WS5XVKPJ.js +470 -0
  185. package/dist/chunk-X6URQAFD.js +1271 -0
  186. package/dist/chunk-XYFDBYOY.js +1658 -0
  187. package/dist/chunk-XYFDBYOY.js.map +7 -0
  188. package/dist/chunk-Y6RCKITI.js +1155 -0
  189. package/dist/chunk-Y6RCKITI.js.map +7 -0
  190. package/dist/chunk-YALAQWX4.js +368 -0
  191. package/dist/chunk-YK5NFMHR.js +269 -0
  192. package/dist/chunk-YK5NFMHR.js.map +7 -0
  193. package/dist/chunk-YY4CKQJ6.js +95 -0
  194. package/dist/chunk-Z3KV6SC2.js +629 -0
  195. package/dist/chunk-ZGT4XP5J.js +1426 -0
  196. package/dist/chunk-ZGT4XP5J.js.map +7 -0
  197. package/dist/condition-JKQIRMMW.js +330 -0
  198. package/dist/controls-324AGOZG.js +39 -0
  199. package/dist/controls.config-TA4NNARU.js +37 -0
  200. package/dist/correlation-3Z36TKC2.js +96 -0
  201. package/dist/cuminc-4DY2CSZF.js +1147 -0
  202. package/dist/cuminc.integration.spec-SFQPLMSF.js +676 -0
  203. package/dist/customdata.inputui-IKGPEBXV.js +287 -0
  204. package/dist/customdata.inputui-IKGPEBXV.js.map +7 -0
  205. package/dist/dataDownload-3AE2N7KI.js +328 -0
  206. package/dist/dataDownload.integration.spec-DKOT6BJP.js +191 -0
  207. package/dist/databrowser.ui-ATODRS5P.js +419 -0
  208. package/dist/dictionary-WHDZBW5M.js +109 -0
  209. package/dist/dictionary-WHDZBW5M.js.map +7 -0
  210. package/dist/dnaMethylation-TVA5YMOR.js +36 -0
  211. package/dist/dnaMethylation.integration.spec-JTWQR6XY.js +165 -0
  212. package/dist/dnaMethylation.integration.spec-JTWQR6XY.js.map +7 -0
  213. package/dist/e2pca-KHVDNFEZ.js +348 -0
  214. package/dist/ep-B5GAAMNM.js +1254 -0
  215. package/dist/expclust.gdc.spec-EDPX7V6K.js +305 -0
  216. package/dist/facet-ZCSXKXIO.js +519 -0
  217. package/dist/geneExpClustering-ERNCMAED.js +246 -0
  218. package/dist/geneExpression-HUOXWETT.js +36 -0
  219. package/dist/geneExpression-X2KXJPND.js +312 -0
  220. package/dist/geneExpression.unit.spec-5QQB4ISW.js +100 -0
  221. package/dist/geneORA-B5UK77KL.js +276 -0
  222. package/dist/geneVariant-7MGUAIZ6.js +39 -0
  223. package/dist/geneVariant-FK3KZJ2K.js +37 -0
  224. package/dist/geneVariant.integration.spec-C6TYWKIC.js +196 -0
  225. package/dist/genefusion.ui-VKAINMY7.js +249 -0
  226. package/dist/geneset-673KAZVX.js +194 -0
  227. package/dist/genomeBrowser.spec-T6TQCJ3O.js +279 -0
  228. package/dist/grin2-376BD4XY.js +1554 -0
  229. package/dist/grin2-OALS75LC.js +1031 -0
  230. package/dist/gsea-25LD2LGP.js +45 -0
  231. package/dist/hierCluster-7KU3K52V.js +58 -0
  232. package/dist/hierCluster-M5VVWKQK.js +62 -0
  233. package/dist/hierCluster.config-EDO3SH2P.js +38 -0
  234. package/dist/hierCluster.integration.spec-UOX7J2XD.js +374 -0
  235. package/dist/hierCluster.interactivity-FEFZDXML.js +52 -0
  236. package/dist/hierCluster.renderers-A6MEGO2B.js +21 -0
  237. package/dist/imagePlot-FPXZ2H5Z.js +139 -0
  238. package/dist/importPlot-VKWPSFEK.js +8 -0
  239. package/dist/isoformExpression-2R2TOB6P.js +38 -0
  240. package/dist/isoformExpression.unit.spec-ZKFKOPKT.js +206 -0
  241. package/dist/isoformExpression.unit.spec-ZKFKOPKT.js.map +7 -0
  242. package/dist/jspdf.es.min-FC3BCETM.js +40 -0
  243. package/dist/launch.adhoc-242RS6DW.js +40 -0
  244. package/dist/leftlabel.sample-OJW3AE64.js +257 -0
  245. package/dist/legacyDataset-PBCPC5I7.js +119 -0
  246. package/dist/lollipop-TRQ3LK7Y.js +166 -0
  247. package/dist/maf-ZBOLN2FE.js +450 -0
  248. package/dist/maftimeline-GVX7NJP7.js +591 -0
  249. package/dist/matrix-73KRNXLM.js +57 -0
  250. package/dist/matrix-US3OXYRY.js +62 -0
  251. package/dist/matrix.cells-U7AQNEBP.js +28 -0
  252. package/dist/matrix.config-Q57D7C3F.js +39 -0
  253. package/dist/matrix.controls-AWXDRSWP.js +37 -0
  254. package/dist/matrix.data-EEIY6AO4.js +25 -0
  255. package/dist/matrix.dom-6QL3AJMW.js +11 -0
  256. package/dist/matrix.groups-CUB6UWC5.js +26 -0
  257. package/dist/matrix.integration.spec-PQH67KRM.js +3070 -0
  258. package/dist/matrix.interactivity-JW4AXAWO.js +40 -0
  259. package/dist/matrix.layout-I56KRVCO.js +42 -0
  260. package/dist/matrix.legend-42LQGAGX.js +22 -0
  261. package/dist/matrix.renderers-IX3FCNBK.js +36 -0
  262. package/dist/matrix.serieses-4B2WB526.js +21 -0
  263. package/dist/matrix.sort-BJACNR7G.js +27 -0
  264. package/dist/matrix.sort.unit.spec-3KKDKIPY.js +470 -0
  265. package/dist/matrix.sorterUi-W6XFYZY2.js +18 -0
  266. package/dist/matrix.sorterUi.unit.spec-CMJ7EBIW.js +340 -0
  267. package/dist/mavb-ROAE6WYA.js +730 -0
  268. package/dist/mds.fimo-UGK5OWCF.js +516 -0
  269. package/dist/mds.samplescatterplot-5KFUAYSB.js +1548 -0
  270. package/dist/mds.survivalplot-2EVNZUX5.js +481 -0
  271. package/dist/oncomatrix-UGFXSXQJ.js +293 -0
  272. package/dist/oncomatrix.spec-FEP7BR7L.js +446 -0
  273. package/dist/plot.2dvaf-WXGLWCOC.js +375 -0
  274. package/dist/plot.app-IZAFRTBU.js +39 -0
  275. package/dist/plot.barplot-Z4VWOPFJ.js +100 -0
  276. package/dist/plot.boxplot-QU2KZSB7.js +150 -0
  277. package/dist/plot.brainImaging-U643YIK7.js +51 -0
  278. package/dist/plot.disco-3BV6YEBC.js +101 -0
  279. package/dist/plot.disco-3BV6YEBC.js.map +7 -0
  280. package/dist/plot.dzi-DWXPOOQE.js +33 -0
  281. package/dist/plot.ssgq-GXB2GZO3.js +137 -0
  282. package/dist/plot.vaf2cov-EKRIADPB.js +257 -0
  283. package/dist/plot.wsi-E2LLE6HI.js +36 -0
  284. package/dist/polar-MZLIUXHO.js +184 -0
  285. package/dist/polar2-IUVHNQM4.js +226 -0
  286. package/dist/profile.spec-JRW6KYUI.js +78 -0
  287. package/dist/profileBarchart-N7HJMYZ5.js +265 -0
  288. package/dist/profileForms-Q5TPGPQP.js +438 -0
  289. package/dist/profilePlot-TXTUYDVE.js +52 -0
  290. package/dist/profileRadar-ICEASI7W.js +261 -0
  291. package/dist/profileRadarFacility-NFMRNJYX.js +261 -0
  292. package/dist/profileRadarFacility-NFMRNJYX.js.map +7 -0
  293. package/dist/proteinView-K3JFNORQ.js +633 -0
  294. package/dist/proteinView-K3JFNORQ.js.map +7 -0
  295. package/dist/proteomeAbundance-DE4NVBCN.js +21 -0
  296. package/dist/proteomeAbundance-LTB3QR3G.js +63 -0
  297. package/dist/qualitative-DFGWQURY.js +41 -0
  298. package/dist/regression-TTQTAEGD.js +54 -0
  299. package/dist/regression.inputs-2LU2XRGC.js +46 -0
  300. package/dist/regression.inputs.term-G57GL57T.js +46 -0
  301. package/dist/regression.inputs.values.table-JSEM3PXL.js +43 -0
  302. package/dist/regression.integration.spec-XJQJAIC3.js +782 -0
  303. package/dist/regression.integration.spec-XJQJAIC3.js.map +7 -0
  304. package/dist/regression.results-3YNM6LLQ.js +38 -0
  305. package/dist/regression.spec-S6WFCPSW.js +706 -0
  306. package/dist/report-YRAV4MY4.js +220 -0
  307. package/dist/sampleScatter.spec-MBJ4XNTX.js +200 -0
  308. package/dist/sampleView-IUR3ZEN7.js +46 -0
  309. package/dist/samplelst-C2NBFGH6.js +109 -0
  310. package/dist/samplematrix-AOK2HHSB.js +2196 -0
  311. package/dist/sc-XT3Z5XJI.js +84 -0
  312. package/dist/scatter-SAHKZRFL.js +800 -0
  313. package/dist/scatter.integration.spec-6KRDNHHH.js +1194 -0
  314. package/dist/scatter.integration.spec-6KRDNHHH.js.map +7 -0
  315. package/dist/selectGenomeWithTklst-2YVZ4JWV.js +132 -0
  316. package/dist/singleCellCellType-NFN5GQJM.js +36 -0
  317. package/dist/singleCellCellType.unit.spec-CR4IJ4DA.js +158 -0
  318. package/dist/singleCellCellType.unit.spec-CR4IJ4DA.js.map +7 -0
  319. package/dist/singleCellGeneExpression-7AQGLXTR.js +36 -0
  320. package/dist/singleCellGeneExpression.unit.spec-QYNWSV2G.js +151 -0
  321. package/dist/singleCellGeneExpression.unit.spec-QYNWSV2G.js.map +7 -0
  322. package/dist/singleCellPlot-IWFEG44C.js +51 -0
  323. package/dist/singlecell-3QNV4OMZ.js +1570 -0
  324. package/dist/singlecell-EATPLH66.js +84 -0
  325. package/dist/snp-UP7WL7WG.js +36 -0
  326. package/dist/snp.unit.spec-Y5NWQ442.js +174 -0
  327. package/dist/snplocus-WAQK2AZG.js +206 -0
  328. package/dist/spliceevent.a53ss.diagram-FFK27UIB.js +149 -0
  329. package/dist/spliceevent.exonskip.diagram-KWEF2OZJ.js +275 -0
  330. package/dist/spliceevent.noeventdiagram-PU4TI7OM.js +458 -0
  331. package/dist/ssGSEA-N6QOAVLW.js +36 -0
  332. package/dist/ssGSEA.unit.spec-KQBNZNNP.js +86 -0
  333. package/dist/summarizeCnvGeneexp-NWX4M6LZ.js +161 -0
  334. package/dist/summarizeCnvGeneexp-NWX4M6LZ.js.map +7 -0
  335. package/dist/summarizeGeneexpSurvival-N5VTE2G6.js +106 -0
  336. package/dist/summarizeGeneexpSurvival-N5VTE2G6.js.map +7 -0
  337. package/dist/summarizeMutationCnv-VV7CVAA7.js +162 -0
  338. package/dist/summarizeMutationCnv-VV7CVAA7.js.map +7 -0
  339. package/dist/summarizeMutationDiagnosis-5RHSG7L6.js +38 -0
  340. package/dist/summarizeMutationSurvival-22YYXGS5.js +97 -0
  341. package/dist/summary-P3WIKJS7.js +47 -0
  342. package/dist/summary.integration.spec-ULGRPICW.js +412 -0
  343. package/dist/summaryInput-IH4EVNF5.js +218 -0
  344. package/dist/sunburst-VJJ3UVYC.js +282 -0
  345. package/dist/sunburst-VJJ3UVYC.js.map +7 -0
  346. package/dist/survival-2ZE3N62A.js +44 -0
  347. package/dist/survival-ASCLKIII.js +56 -0
  348. package/dist/survival.integration.spec-C5YXOY77.js +787 -0
  349. package/dist/svg2pdf.es.min-CYTPRWNB.js +3157 -0
  350. package/dist/svgraph-AYR2UPNK.js +1385 -0
  351. package/dist/svmr-MOMW5DNY.js +3840 -0
  352. package/dist/table-PQB6KCEY.js +198 -0
  353. package/dist/termCollection-5AY2AWT4.js +36 -0
  354. package/dist/termCollection-OQMUUTW6.js +177 -0
  355. package/dist/termCollection.unit.spec-BUAXYIJK.js +206 -0
  356. package/dist/tk-EJLFFA5H.js +44 -0
  357. package/dist/tp.ui-WUW6A7KP.js +1457 -0
  358. package/dist/tvs.density-HSVPDDGA.js +18 -0
  359. package/dist/tvs.dt-MVJXQMNU.js +37 -0
  360. package/dist/tvs.dtcnv.categorical-FIIDWVK7.js +38 -0
  361. package/dist/tvs.dtcnv.continuous-JPQU3JA2.js +70 -0
  362. package/dist/tvs.dtfusion-BW35GOQM.js +38 -0
  363. package/dist/tvs.dtsnvindel-AEMFZ4EH.js +38 -0
  364. package/dist/tvs.dtsv-JHTU7UFD.js +38 -0
  365. package/dist/tvs.numeric-ICUGA4WY.js +21 -0
  366. package/dist/tvs.samplelst-VD2NFFFS.js +102 -0
  367. package/dist/tvs.termCollection-IKE5Q74D.js +151 -0
  368. package/dist/violin-DPMJLHQG.js +44 -0
  369. package/dist/violin.integration.spec-A4PNR4ES.js +1423 -0
  370. package/dist/violin.integration.spec-A4PNR4ES.js.map +7 -0
  371. package/dist/violin.interactivity-TS4DYUE5.js +36 -0
  372. package/dist/violin.renderer-53L4PXUT.js +38 -0
  373. package/dist/vocabulary-4MPFHKYC.js +39 -0
  374. package/package.json +3 -3
  375. package/dist/2dmaf-SLBAWGPG.js +0 -1371
  376. package/dist/AIProjectAdmin-6SH5X3AF.js +0 -830
  377. package/dist/AIProjectAdmin-6SH5X3AF.js.map +0 -7
  378. package/dist/AppHeader-MVYNRMC7.js +0 -833
  379. package/dist/BoxPlot-HLGWW3IK.js +0 -1295
  380. package/dist/BoxPlot-HLGWW3IK.js.map +0 -7
  381. package/dist/CorrelationVolcano-TZCYC3NI.js +0 -617
  382. package/dist/DE-2J2SK5UT.js +0 -93
  383. package/dist/DEinput-QM3GOQHM.js +0 -297
  384. package/dist/DifferentialAnalysis-DS7CQOT6.js +0 -238
  385. package/dist/Disco-U5I6NJUT.js +0 -3199
  386. package/dist/Disco-U5I6NJUT.js.map +0 -7
  387. package/dist/Disco.UI-J2B7GGEZ.js +0 -242
  388. package/dist/DmrPlot-D5W76QPY.js +0 -640
  389. package/dist/GB-LM5SGUG4.js +0 -1125
  390. package/dist/HicApp-YNBGAGKM.js +0 -2248
  391. package/dist/NumBinaryEditor-4QA5DQJT.js +0 -268
  392. package/dist/NumBinaryEditor.unit.spec-YWSIFTOJ.js +0 -284
  393. package/dist/NumContEditor-ZPLVZFLH.js +0 -105
  394. package/dist/NumContEditor.unit.spec-NBCFOCOX.js +0 -167
  395. package/dist/NumCustomBinEditor-TXEYRVPL.js +0 -36
  396. package/dist/NumCustomBinEditor.unit.spec-SQM63H4B.js +0 -282
  397. package/dist/NumDiscreteEditor-6C4OWX62.js +0 -177
  398. package/dist/NumDiscreteEditor.unit.spec-4HC4AGAM.js +0 -200
  399. package/dist/NumRegularBinEditor-VQAS3OXK.js +0 -36
  400. package/dist/NumRegularBinEditor.unit.spec-RGVEPB3Z.js +0 -225
  401. package/dist/NumSplineEditor-SXOJICHU.js +0 -190
  402. package/dist/NumSplineEditor.unit.spec-HF5E6ANH.js +0 -197
  403. package/dist/NumericDensity-LMLPMOSE.js +0 -36
  404. package/dist/NumericDensity.unit.spec-3ZI5EVON.js +0 -219
  405. package/dist/NumericHandler-Q6F6ANOS.js +0 -37
  406. package/dist/NumericHandler.unit.spec-E6Z5HUNZ.js +0 -217
  407. package/dist/RunChart2-XSNWNAIL.js +0 -756
  408. package/dist/RunChart2-XSNWNAIL.js.map +0 -7
  409. package/dist/SC-RA46YM57.js +0 -733
  410. package/dist/SC-RA46YM57.js.map +0 -7
  411. package/dist/Volcano-75UDYPVB.js +0 -1187
  412. package/dist/Volcano-75UDYPVB.js.map +0 -7
  413. package/dist/WSIViewer-GYUUXCSJ.js +0 -47933
  414. package/dist/WSIViewer-GYUUXCSJ.js.map +0 -7
  415. package/dist/WsiSamplesPlot-KMI5S2EL.js +0 -163
  416. package/dist/adSandbox-JTK5XEQL.js +0 -36
  417. package/dist/alphaGenome-JRAV6WIY.js +0 -173
  418. package/dist/app-JKDZL23V.js +0 -35
  419. package/dist/app-OEARXM6E.js +0 -47
  420. package/dist/bam-CYEPLBK4.js +0 -857
  421. package/dist/barchart-GG5UFDG4.js +0 -45
  422. package/dist/barchart.data-KXA66FAL.js +0 -22
  423. package/dist/barchart.events-P2USOIR7.js +0 -45
  424. package/dist/barchart.integration.spec-5QSPQQLJ.js +0 -1675
  425. package/dist/bars.renderer-T5R3UIBW.js +0 -12
  426. package/dist/block-6DVPQBSH.js +0 -6200
  427. package/dist/block-6DVPQBSH.js.map +0 -7
  428. package/dist/block.init-ZHX6DFWF.js +0 -36
  429. package/dist/block.mds.expressionrank-YMGYXXYT.js +0 -357
  430. package/dist/block.mds.geneboxplot-IAILQYX4.js +0 -826
  431. package/dist/block.mds.junction-BRNFNQMU.js +0 -1543
  432. package/dist/block.mds.svcnv-OHKC7YPO.js +0 -6799
  433. package/dist/block.svg-PNGK45HW.js +0 -162
  434. package/dist/block.tk.aicheck-SCIOJ4WN.js +0 -281
  435. package/dist/block.tk.ase-BABJ73GG.js +0 -363
  436. package/dist/block.tk.bam-LZWJ5BCQ.js +0 -1904
  437. package/dist/block.tk.bedgraphdot-7NQLC3XJ.js +0 -382
  438. package/dist/block.tk.bigwig.ui-VNY4SFD5.js +0 -209
  439. package/dist/block.tk.hicstraw-36A7VDRM.js +0 -821
  440. package/dist/block.tk.junction-D373YEMK.js +0 -2362
  441. package/dist/block.tk.junction.textmatrixui-FFII7J3X.js +0 -197
  442. package/dist/block.tk.ld-XGB6KMDO.js +0 -97
  443. package/dist/block.tk.menu-PEZANZBZ.js +0 -1027
  444. package/dist/block.tk.pgv-MU5BPTT2.js +0 -942
  445. package/dist/brainImaging-LVJON47N.js +0 -421
  446. package/dist/chat-5FDIAQJ4.js +0 -148
  447. package/dist/chunk-22NJUYET.js +0 -281
  448. package/dist/chunk-22NJUYET.js.map +0 -7
  449. package/dist/chunk-2J3566TA.js +0 -215
  450. package/dist/chunk-2OSEZCWZ.js +0 -205
  451. package/dist/chunk-2SRMRC6L.js +0 -421
  452. package/dist/chunk-2SRMRC6L.js.map +0 -7
  453. package/dist/chunk-5OHXYXLD.js +0 -46
  454. package/dist/chunk-5OHXYXLD.js.map +0 -7
  455. package/dist/chunk-6MSCYO7K.js +0 -119
  456. package/dist/chunk-75EBDB7G.js +0 -21
  457. package/dist/chunk-75EBDB7G.js.map +0 -7
  458. package/dist/chunk-7A7NMCQ3.js +0 -534
  459. package/dist/chunk-7FEHI46K.js +0 -20456
  460. package/dist/chunk-7FEHI46K.js.map +0 -7
  461. package/dist/chunk-AETE4F7R.js +0 -252
  462. package/dist/chunk-AZYDW5T7.js +0 -441
  463. package/dist/chunk-B6HCIAM3.js +0 -34
  464. package/dist/chunk-BEWDIM6H.js +0 -42
  465. package/dist/chunk-BEWDIM6H.js.map +0 -7
  466. package/dist/chunk-CCIZJAXB.js +0 -2815
  467. package/dist/chunk-DHZL3FBC.js +0 -107
  468. package/dist/chunk-DONWY7TP.js +0 -39
  469. package/dist/chunk-DVDDXOWT.js +0 -815
  470. package/dist/chunk-E6DRQJJT.js +0 -480
  471. package/dist/chunk-ESKU6LNC.js +0 -36
  472. package/dist/chunk-ESKU6LNC.js.map +0 -7
  473. package/dist/chunk-F6V4AYWP.js +0 -177
  474. package/dist/chunk-FBAJTPBU.js +0 -302
  475. package/dist/chunk-FGMPKWT5.js +0 -371
  476. package/dist/chunk-FK4MYVW2.js +0 -261
  477. package/dist/chunk-FK4MYVW2.js.map +0 -7
  478. package/dist/chunk-FMBJ4SKC.js +0 -98
  479. package/dist/chunk-FMBJ4SKC.js.map +0 -7
  480. package/dist/chunk-FOEZG4VX.js +0 -505
  481. package/dist/chunk-FOEZG4VX.js.map +0 -7
  482. package/dist/chunk-FQRLSKJC.js +0 -226
  483. package/dist/chunk-G6ELKVBG.js +0 -629
  484. package/dist/chunk-GKK3CZ6H.js +0 -4207
  485. package/dist/chunk-GO5SIPFE.js +0 -194
  486. package/dist/chunk-GPOECA3V.js +0 -386
  487. package/dist/chunk-GTOY3JJO.js +0 -288
  488. package/dist/chunk-GTOY3JJO.js.map +0 -7
  489. package/dist/chunk-GW7DHJYH.js +0 -439
  490. package/dist/chunk-GW7DHJYH.js.map +0 -7
  491. package/dist/chunk-H2D7EVUA.js +0 -158
  492. package/dist/chunk-H2K5KZP7.js +0 -95
  493. package/dist/chunk-H5XFH3FV.js +0 -153
  494. package/dist/chunk-H5XFH3FV.js.map +0 -7
  495. package/dist/chunk-HAMDFQIX.js +0 -228
  496. package/dist/chunk-HH4QLSTK.js +0 -4952
  497. package/dist/chunk-HH4QLSTK.js.map +0 -7
  498. package/dist/chunk-IBTPGSYI.js +0 -526
  499. package/dist/chunk-IBTPGSYI.js.map +0 -7
  500. package/dist/chunk-IC7SUXJD.js +0 -82
  501. package/dist/chunk-IC7SUXJD.js.map +0 -7
  502. package/dist/chunk-IGEQI6MR.js +0 -1561
  503. package/dist/chunk-IGEQI6MR.js.map +0 -7
  504. package/dist/chunk-IIRU6VK2.js +0 -2672
  505. package/dist/chunk-ILF2GKBY.js +0 -1205
  506. package/dist/chunk-IP4T477W.js +0 -92
  507. package/dist/chunk-IQIXGTQV.js +0 -84
  508. package/dist/chunk-IQIXGTQV.js.map +0 -7
  509. package/dist/chunk-IXT4U5CE.js +0 -91
  510. package/dist/chunk-IXT4U5CE.js.map +0 -7
  511. package/dist/chunk-JHOGX5VE.js +0 -272
  512. package/dist/chunk-JOXUBWN3.js +0 -381
  513. package/dist/chunk-K57RR3FD.js +0 -142
  514. package/dist/chunk-K6JLCMVL.js +0 -129
  515. package/dist/chunk-KISFQDQE.js +0 -258
  516. package/dist/chunk-KISFQDQE.js.map +0 -7
  517. package/dist/chunk-KSFSM46X.js +0 -100
  518. package/dist/chunk-KVG7FTTK.js +0 -470
  519. package/dist/chunk-LEDPPLQK.js +0 -158
  520. package/dist/chunk-LUTT3MBZ.js +0 -1150
  521. package/dist/chunk-MDL2HG3N.js +0 -257
  522. package/dist/chunk-MDL2HG3N.js.map +0 -7
  523. package/dist/chunk-MNRYCG2S.js +0 -1271
  524. package/dist/chunk-MPJHDHBA.js +0 -2784
  525. package/dist/chunk-MXI3NXRB.js +0 -407
  526. package/dist/chunk-O4PXELXF.js +0 -615
  527. package/dist/chunk-ORPCSG6T.js +0 -14
  528. package/dist/chunk-OUKDZKSZ.js +0 -334
  529. package/dist/chunk-OUKDZKSZ.js.map +0 -7
  530. package/dist/chunk-P5HLYAHP.js +0 -1087
  531. package/dist/chunk-PIACSJPH.js +0 -148
  532. package/dist/chunk-PQABAAEZ.js +0 -31
  533. package/dist/chunk-PSMDCZET.js +0 -46
  534. package/dist/chunk-PSMDCZET.js.map +0 -7
  535. package/dist/chunk-RFIVPTMS.js +0 -217
  536. package/dist/chunk-RSU37SVQ.js +0 -54
  537. package/dist/chunk-RTC4U4PH.js +0 -2327
  538. package/dist/chunk-RTC4U4PH.js.map +0 -7
  539. package/dist/chunk-RZ5JP44H.js +0 -276
  540. package/dist/chunk-RZ5JP44H.js.map +0 -7
  541. package/dist/chunk-SPAIFVM2.js +0 -1155
  542. package/dist/chunk-SPAIFVM2.js.map +0 -7
  543. package/dist/chunk-T2HYA2KL.js +0 -55
  544. package/dist/chunk-TCPU43TU.js +0 -1741
  545. package/dist/chunk-TCPU43TU.js.map +0 -7
  546. package/dist/chunk-TE3DK3A6.js +0 -147
  547. package/dist/chunk-TIQPSXFJ.js +0 -237
  548. package/dist/chunk-TIQPSXFJ.js.map +0 -7
  549. package/dist/chunk-TN5GSG34.js +0 -26
  550. package/dist/chunk-UBGTQMOO.js +0 -52
  551. package/dist/chunk-UBS5UVIY.js +0 -13624
  552. package/dist/chunk-UE5ZYM63.js +0 -48
  553. package/dist/chunk-UE5ZYM63.js.map +0 -7
  554. package/dist/chunk-UQACPOCM.js +0 -102
  555. package/dist/chunk-UR3C4SCH.js +0 -446
  556. package/dist/chunk-UWX7W22M.js +0 -121
  557. package/dist/chunk-VJ37HKM6.js +0 -368
  558. package/dist/chunk-VLTDUJRM.js +0 -293
  559. package/dist/chunk-W6UUEAEP.js +0 -6364
  560. package/dist/chunk-X6UPDFDX.js +0 -229
  561. package/dist/chunk-XD6BFNMR.js +0 -172
  562. package/dist/chunk-XD6BFNMR.js.map +0 -7
  563. package/dist/chunk-XDI4UFCZ.js +0 -467
  564. package/dist/chunk-XDI4UFCZ.js.map +0 -7
  565. package/dist/chunk-XOBD3EAM.js +0 -1425
  566. package/dist/chunk-XOBD3EAM.js.map +0 -7
  567. package/dist/chunk-Y3TDC7NU.js +0 -170
  568. package/dist/chunk-YOTWMCT5.js +0 -824
  569. package/dist/chunk-YUMPQ3CJ.js +0 -203
  570. package/dist/condition-VHP2L4GM.js +0 -330
  571. package/dist/controls-N5Q7U7JR.js +0 -39
  572. package/dist/controls.config-NJMW4SLR.js +0 -37
  573. package/dist/correlation-3LDASF5I.js +0 -96
  574. package/dist/cuminc-UWJ23W6C.js +0 -1147
  575. package/dist/cuminc.integration.spec-OZYYET3W.js +0 -676
  576. package/dist/customdata.inputui-2FVCVSE4.js +0 -285
  577. package/dist/customdata.inputui-2FVCVSE4.js.map +0 -7
  578. package/dist/dataDownload-4S4PE5HX.js +0 -328
  579. package/dist/dataDownload.integration.spec-B57LEKFZ.js +0 -191
  580. package/dist/databrowser.ui-N6GHEQ2P.js +0 -419
  581. package/dist/dictionary-UP46QRYZ.js +0 -98
  582. package/dist/dictionary-UP46QRYZ.js.map +0 -7
  583. package/dist/dnaMethylation-BOGAUAWA.js +0 -36
  584. package/dist/dnaMethylation.integration.spec-UAHBJSSJ.js +0 -179
  585. package/dist/dnaMethylation.integration.spec-UAHBJSSJ.js.map +0 -7
  586. package/dist/e2pca-L5EBQJNP.js +0 -348
  587. package/dist/ep-Z67ORKUX.js +0 -1254
  588. package/dist/expclust.gdc.spec-SP7VOL64.js +0 -305
  589. package/dist/facet-HDB4VDGU.js +0 -519
  590. package/dist/geneExpClustering-6ZPOLTDJ.js +0 -246
  591. package/dist/geneExpression-T6YIG4XQ.js +0 -312
  592. package/dist/geneExpression-T7QUHV5S.js +0 -36
  593. package/dist/geneExpression.unit.spec-DO52L5IB.js +0 -100
  594. package/dist/geneORA-KOUDUWUO.js +0 -276
  595. package/dist/geneVariant-FVR76F6I.js +0 -39
  596. package/dist/geneVariant-I5QUITKG.js +0 -37
  597. package/dist/geneVariant.integration.spec-D4IRM7B5.js +0 -196
  598. package/dist/genefusion.ui-35IYSZD7.js +0 -249
  599. package/dist/geneset-7ZHJ5KWK.js +0 -194
  600. package/dist/genomeBrowser.spec-VXASVLNH.js +0 -279
  601. package/dist/grin2-7NM56COO.js +0 -1554
  602. package/dist/grin2-IY26UUQI.js +0 -1031
  603. package/dist/gsea-TORO46C6.js +0 -45
  604. package/dist/hierCluster-3BKEGW6P.js +0 -58
  605. package/dist/hierCluster-HM3LOM6V.js +0 -62
  606. package/dist/hierCluster.config-LDO5IGQ5.js +0 -38
  607. package/dist/hierCluster.integration.spec-XO5R6CQT.js +0 -374
  608. package/dist/hierCluster.interactivity-NVQ6262K.js +0 -52
  609. package/dist/hierCluster.renderers-SWPPNBLU.js +0 -21
  610. package/dist/imagePlot-V4WLAPV6.js +0 -139
  611. package/dist/importPlot-NZKQEOX4.js +0 -8
  612. package/dist/isoformExpression-TIZBIGNL.js +0 -38
  613. package/dist/isoformExpression.unit.spec-WHH5LPFG.js +0 -124
  614. package/dist/isoformExpression.unit.spec-WHH5LPFG.js.map +0 -7
  615. package/dist/jspdf.es.min-DO4YWL2R.js +0 -40
  616. package/dist/launch.adhoc-JYEN42NM.js +0 -40
  617. package/dist/leftlabel.sample-43DL3J3H.js +0 -257
  618. package/dist/legacyDataset-QRSNRVUA.js +0 -119
  619. package/dist/lollipop-NMWZ4FVF.js +0 -166
  620. package/dist/maf-DS3EOVGV.js +0 -450
  621. package/dist/maftimeline-ZB2753S7.js +0 -591
  622. package/dist/matrix-RCGQWQ3C.js +0 -57
  623. package/dist/matrix-WTTEK4FT.js +0 -62
  624. package/dist/matrix.cells-UO5ASQ35.js +0 -28
  625. package/dist/matrix.config-3UQAT3QR.js +0 -39
  626. package/dist/matrix.controls-PRZ77K5L.js +0 -37
  627. package/dist/matrix.data-4W73RQ3H.js +0 -25
  628. package/dist/matrix.dom-IZFFS4RQ.js +0 -11
  629. package/dist/matrix.groups-5VMPI7SA.js +0 -26
  630. package/dist/matrix.integration.spec-2F5LDLC2.js +0 -3070
  631. package/dist/matrix.interactivity-MIPZ6ELV.js +0 -40
  632. package/dist/matrix.layout-EO5LVYRO.js +0 -42
  633. package/dist/matrix.legend-QBFBFEUG.js +0 -22
  634. package/dist/matrix.renderers-ERJXVCQL.js +0 -36
  635. package/dist/matrix.serieses-E23EPXHA.js +0 -21
  636. package/dist/matrix.sort-I4UGMEXR.js +0 -27
  637. package/dist/matrix.sort.unit.spec-CRGF6CSE.js +0 -470
  638. package/dist/matrix.sorterUi-YLSYTYLE.js +0 -18
  639. package/dist/matrix.sorterUi.unit.spec-ENG3ICOO.js +0 -340
  640. package/dist/mavb-5WR7OJHI.js +0 -730
  641. package/dist/mds.fimo-3ZRH7BBJ.js +0 -516
  642. package/dist/mds.samplescatterplot-RPXR2FVK.js +0 -1548
  643. package/dist/mds.survivalplot-WSSMYUZD.js +0 -481
  644. package/dist/oncomatrix-JKYPUJQR.js +0 -293
  645. package/dist/oncomatrix.spec-OEGU4DYK.js +0 -446
  646. package/dist/plot.2dvaf-ZGARLQNK.js +0 -375
  647. package/dist/plot.app-TKUJH3LK.js +0 -39
  648. package/dist/plot.barplot-FEIPGDZ2.js +0 -100
  649. package/dist/plot.boxplot-6RASUMZB.js +0 -150
  650. package/dist/plot.brainImaging-ZJPFWX2W.js +0 -51
  651. package/dist/plot.disco-2KTKB3XX.js +0 -101
  652. package/dist/plot.disco-2KTKB3XX.js.map +0 -7
  653. package/dist/plot.dzi-PC34YI6Y.js +0 -33
  654. package/dist/plot.ssgq-Z4UNJKWO.js +0 -137
  655. package/dist/plot.vaf2cov-NZ4WULKT.js +0 -257
  656. package/dist/plot.wsi-YYXFAZWY.js +0 -36
  657. package/dist/polar-X2GPIBLB.js +0 -184
  658. package/dist/polar2-TZ553QQH.js +0 -226
  659. package/dist/profile.spec-VB6VMFLY.js +0 -78
  660. package/dist/profileBarchart-SKJSTC7B.js +0 -265
  661. package/dist/profileForms-RLOGSMAQ.js +0 -438
  662. package/dist/profilePlot-267ZS3RG.js +0 -52
  663. package/dist/profileRadar-KGOBHCSF.js +0 -261
  664. package/dist/profileRadarFacility-MCJKSHUM.js +0 -261
  665. package/dist/profileRadarFacility-MCJKSHUM.js.map +0 -7
  666. package/dist/proteomeAbundance-JUYAYO5I.js +0 -63
  667. package/dist/proteomeAbundance-PGHZSVAF.js +0 -19
  668. package/dist/qualitative-3IECKKJM.js +0 -41
  669. package/dist/regression-J6FFRPXN.js +0 -54
  670. package/dist/regression.inputs-T7LWBSYZ.js +0 -46
  671. package/dist/regression.inputs.term-TT7PNX6G.js +0 -46
  672. package/dist/regression.inputs.values.table-SHFUNKCS.js +0 -43
  673. package/dist/regression.integration.spec-QKHMJTHA.js +0 -784
  674. package/dist/regression.integration.spec-QKHMJTHA.js.map +0 -7
  675. package/dist/regression.results-D4WX6VIV.js +0 -38
  676. package/dist/regression.spec-7SW55L7X.js +0 -706
  677. package/dist/report-QYOZ4BRF.js +0 -220
  678. package/dist/sampleScatter.spec-JCHFMGNF.js +0 -200
  679. package/dist/sampleView-7RPKNAZC.js +0 -46
  680. package/dist/samplelst-4WNPHZVG.js +0 -109
  681. package/dist/samplematrix-CG52DSXJ.js +0 -2196
  682. package/dist/sc-OJSWILSA.js +0 -84
  683. package/dist/scatter-LG2RMMEC.js +0 -800
  684. package/dist/scatter.integration.spec-QPANYTKW.js +0 -1194
  685. package/dist/scatter.integration.spec-QPANYTKW.js.map +0 -7
  686. package/dist/selectGenomeWithTklst-QXRVE6N4.js +0 -132
  687. package/dist/singleCellCellType-XBSRL33U.js +0 -36
  688. package/dist/singleCellCellType.unit.spec-YZX4CSXA.js +0 -177
  689. package/dist/singleCellCellType.unit.spec-YZX4CSXA.js.map +0 -7
  690. package/dist/singleCellGeneExpression-64ECP62X.js +0 -36
  691. package/dist/singleCellGeneExpression.unit.spec-CFHFXMA6.js +0 -163
  692. package/dist/singleCellGeneExpression.unit.spec-CFHFXMA6.js.map +0 -7
  693. package/dist/singleCellPlot-E5F62JY6.js +0 -51
  694. package/dist/singlecell-FCY5EOUV.js +0 -84
  695. package/dist/singlecell-S7B5V7NK.js +0 -1570
  696. package/dist/snp-ACKX4GRX.js +0 -36
  697. package/dist/snp.unit.spec-QBGHKKUD.js +0 -174
  698. package/dist/snplocus-7EUOW7J7.js +0 -206
  699. package/dist/spliceevent.a53ss.diagram-ALQZA35Z.js +0 -149
  700. package/dist/spliceevent.exonskip.diagram-UF7WJA5R.js +0 -275
  701. package/dist/spliceevent.noeventdiagram-4HPGRNRR.js +0 -458
  702. package/dist/ssGSEA-FDRBBBLJ.js +0 -36
  703. package/dist/ssGSEA.unit.spec-EZEOWJVV.js +0 -86
  704. package/dist/summarizeCnvGeneexp-FTL2MGAJ.js +0 -158
  705. package/dist/summarizeCnvGeneexp-FTL2MGAJ.js.map +0 -7
  706. package/dist/summarizeGeneexpSurvival-DDIF4UW6.js +0 -105
  707. package/dist/summarizeGeneexpSurvival-DDIF4UW6.js.map +0 -7
  708. package/dist/summarizeMutationCnv-L3GL5YDY.js +0 -159
  709. package/dist/summarizeMutationCnv-L3GL5YDY.js.map +0 -7
  710. package/dist/summarizeMutationDiagnosis-LALOJTHV.js +0 -38
  711. package/dist/summarizeMutationSurvival-TSNTSOBZ.js +0 -97
  712. package/dist/summary-YRHVS64T.js +0 -47
  713. package/dist/summary.integration.spec-766YQLQA.js +0 -412
  714. package/dist/summaryInput-VQ2X6GSX.js +0 -218
  715. package/dist/sunburst-XFOONS6K.js +0 -282
  716. package/dist/sunburst-XFOONS6K.js.map +0 -7
  717. package/dist/survival-FQXZH2MM.js +0 -44
  718. package/dist/survival-TVA3ZWVP.js +0 -56
  719. package/dist/survival.integration.spec-WFIOPD6A.js +0 -787
  720. package/dist/svg2pdf.es.min-EZ4UYRSH.js +0 -3157
  721. package/dist/svgraph-4BFBO7EL.js +0 -1385
  722. package/dist/svmr-ML7GAIIA.js +0 -3840
  723. package/dist/table-SMLMUWPP.js +0 -198
  724. package/dist/termCollection-22CPTISZ.js +0 -36
  725. package/dist/termCollection-EE6AOIVA.js +0 -177
  726. package/dist/termCollection.unit.spec-4DIW3CJ3.js +0 -206
  727. package/dist/tk-ITZCKOQ5.js +0 -44
  728. package/dist/tp.ui-R6HVKCBC.js +0 -1457
  729. package/dist/tvs.density-AQ5GD437.js +0 -18
  730. package/dist/tvs.dt-2263TBEJ.js +0 -37
  731. package/dist/tvs.dtcnv.categorical-TRRHL33N.js +0 -38
  732. package/dist/tvs.dtcnv.continuous-GREYNF52.js +0 -70
  733. package/dist/tvs.dtfusion-XOX46L3M.js +0 -38
  734. package/dist/tvs.dtsnvindel-IDMXT53F.js +0 -38
  735. package/dist/tvs.dtsv-ZDWFYH2C.js +0 -38
  736. package/dist/tvs.numeric-ZN2R7BH3.js +0 -21
  737. package/dist/tvs.samplelst-GAP76HRH.js +0 -102
  738. package/dist/tvs.termCollection-GQ65UKSI.js +0 -151
  739. package/dist/violin-JGDL62YA.js +0 -44
  740. package/dist/violin.integration.spec-W4NN7LBY.js +0 -1417
  741. package/dist/violin.integration.spec-W4NN7LBY.js.map +0 -7
  742. package/dist/violin.interactivity-H4RP4K5U.js +0 -36
  743. package/dist/violin.renderer-QPHLACDC.js +0 -38
  744. package/dist/vocabulary-7JACY4J2.js +0 -39
  745. /package/dist/{2dmaf-SLBAWGPG.js.map → 2dmaf-6ZTETSC5.js.map} +0 -0
  746. /package/dist/{AppHeader-MVYNRMC7.js.map → AppHeader-U7SJPIBS.js.map} +0 -0
  747. /package/dist/{CorrelationVolcano-TZCYC3NI.js.map → CorrelationVolcano-7SE4CTBW.js.map} +0 -0
  748. /package/dist/{DE-2J2SK5UT.js.map → DE-PZ7RHPBS.js.map} +0 -0
  749. /package/dist/{DEinput-QM3GOQHM.js.map → DEinput-UZEQIU2V.js.map} +0 -0
  750. /package/dist/{DifferentialAnalysis-DS7CQOT6.js.map → DifferentialAnalysis-L6BOEYVO.js.map} +0 -0
  751. /package/dist/{Disco.UI-J2B7GGEZ.js.map → Disco.UI-HKOUAD4P.js.map} +0 -0
  752. /package/dist/{DmrPlot-D5W76QPY.js.map → DmrPlot-3R24PTXP.js.map} +0 -0
  753. /package/dist/{GB-LM5SGUG4.js.map → GB-SZVYZASR.js.map} +0 -0
  754. /package/dist/{HicApp-YNBGAGKM.js.map → HicApp-SEEJETVE.js.map} +0 -0
  755. /package/dist/{NumBinaryEditor-4QA5DQJT.js.map → NumBinaryEditor-SDQFJ3FW.js.map} +0 -0
  756. /package/dist/{NumBinaryEditor.unit.spec-YWSIFTOJ.js.map → NumBinaryEditor.unit.spec-76ZZXTYC.js.map} +0 -0
  757. /package/dist/{NumContEditor-ZPLVZFLH.js.map → NumContEditor-G75O4YZE.js.map} +0 -0
  758. /package/dist/{NumContEditor.unit.spec-NBCFOCOX.js.map → NumContEditor.unit.spec-BFUZRBPL.js.map} +0 -0
  759. /package/dist/{NumCustomBinEditor-TXEYRVPL.js.map → NumCustomBinEditor-ILTPHCEF.js.map} +0 -0
  760. /package/dist/{NumCustomBinEditor.unit.spec-SQM63H4B.js.map → NumCustomBinEditor.unit.spec-GFIYV55V.js.map} +0 -0
  761. /package/dist/{NumDiscreteEditor-6C4OWX62.js.map → NumDiscreteEditor-5K3OKUOE.js.map} +0 -0
  762. /package/dist/{NumDiscreteEditor.unit.spec-4HC4AGAM.js.map → NumDiscreteEditor.unit.spec-NZ4KWPFK.js.map} +0 -0
  763. /package/dist/{NumRegularBinEditor-VQAS3OXK.js.map → NumRegularBinEditor-7ZJ2MEMY.js.map} +0 -0
  764. /package/dist/{NumRegularBinEditor.unit.spec-RGVEPB3Z.js.map → NumRegularBinEditor.unit.spec-QGVJET65.js.map} +0 -0
  765. /package/dist/{NumSplineEditor-SXOJICHU.js.map → NumSplineEditor-KE4UPODZ.js.map} +0 -0
  766. /package/dist/{NumSplineEditor.unit.spec-HF5E6ANH.js.map → NumSplineEditor.unit.spec-YQOOZA7S.js.map} +0 -0
  767. /package/dist/{NumericDensity-LMLPMOSE.js.map → NumericDensity-RL42P4QC.js.map} +0 -0
  768. /package/dist/{NumericDensity.unit.spec-3ZI5EVON.js.map → NumericDensity.unit.spec-Y6RMTYC7.js.map} +0 -0
  769. /package/dist/{NumericHandler-Q6F6ANOS.js.map → NumericHandler-4QIX324I.js.map} +0 -0
  770. /package/dist/{NumericHandler.unit.spec-E6Z5HUNZ.js.map → NumericHandler.unit.spec-T6F5QYP6.js.map} +0 -0
  771. /package/dist/{WsiSamplesPlot-KMI5S2EL.js.map → WsiSamplesPlot-CXGWPCDL.js.map} +0 -0
  772. /package/dist/{adSandbox-JTK5XEQL.js.map → adSandbox-DE4VRO4Z.js.map} +0 -0
  773. /package/dist/{alphaGenome-JRAV6WIY.js.map → alphaGenome-FSIGC5ZT.js.map} +0 -0
  774. /package/dist/{app-JKDZL23V.js.map → app-KZGKWQMU.js.map} +0 -0
  775. /package/dist/{app-OEARXM6E.js.map → app-MQRJ7FVL.js.map} +0 -0
  776. /package/dist/{bam-CYEPLBK4.js.map → bam-BDWTA4O3.js.map} +0 -0
  777. /package/dist/{barchart-GG5UFDG4.js.map → barchart-4Q6LVJY4.js.map} +0 -0
  778. /package/dist/{barchart.data-KXA66FAL.js.map → barchart.data-EXENRVMU.js.map} +0 -0
  779. /package/dist/{barchart.events-P2USOIR7.js.map → barchart.events-XRGND6I7.js.map} +0 -0
  780. /package/dist/{barchart.integration.spec-5QSPQQLJ.js.map → barchart.integration.spec-VQITP4YH.js.map} +0 -0
  781. /package/dist/{bars.renderer-T5R3UIBW.js.map → bars.renderer-S7A7I6BQ.js.map} +0 -0
  782. /package/dist/{block.init-ZHX6DFWF.js.map → block.init-NCNSE3HD.js.map} +0 -0
  783. /package/dist/{block.mds.expressionrank-YMGYXXYT.js.map → block.mds.expressionrank-JYZARS7T.js.map} +0 -0
  784. /package/dist/{block.mds.geneboxplot-IAILQYX4.js.map → block.mds.geneboxplot-FD2MCIHV.js.map} +0 -0
  785. /package/dist/{block.mds.junction-BRNFNQMU.js.map → block.mds.junction-LOHVQBIU.js.map} +0 -0
  786. /package/dist/{block.mds.svcnv-OHKC7YPO.js.map → block.mds.svcnv-Z7SAYPQL.js.map} +0 -0
  787. /package/dist/{block.svg-PNGK45HW.js.map → block.svg-LNJOKQNN.js.map} +0 -0
  788. /package/dist/{block.tk.aicheck-SCIOJ4WN.js.map → block.tk.aicheck-IXCMMAGV.js.map} +0 -0
  789. /package/dist/{block.tk.ase-BABJ73GG.js.map → block.tk.ase-WYRYFP6N.js.map} +0 -0
  790. /package/dist/{block.tk.bam-LZWJ5BCQ.js.map → block.tk.bam-EIVBNGAL.js.map} +0 -0
  791. /package/dist/{block.tk.bedgraphdot-7NQLC3XJ.js.map → block.tk.bedgraphdot-3FHLNCU7.js.map} +0 -0
  792. /package/dist/{block.tk.bigwig.ui-VNY4SFD5.js.map → block.tk.bigwig.ui-YDQU5PC4.js.map} +0 -0
  793. /package/dist/{block.tk.hicstraw-36A7VDRM.js.map → block.tk.hicstraw-S3ROL3CV.js.map} +0 -0
  794. /package/dist/{block.tk.junction-D373YEMK.js.map → block.tk.junction-DL7RNWX3.js.map} +0 -0
  795. /package/dist/{block.tk.junction.textmatrixui-FFII7J3X.js.map → block.tk.junction.textmatrixui-Z6I7IEDY.js.map} +0 -0
  796. /package/dist/{block.tk.ld-XGB6KMDO.js.map → block.tk.ld-XHVU6L56.js.map} +0 -0
  797. /package/dist/{block.tk.menu-PEZANZBZ.js.map → block.tk.menu-FPLAEEFY.js.map} +0 -0
  798. /package/dist/{block.tk.pgv-MU5BPTT2.js.map → block.tk.pgv-6ZZ2QGNO.js.map} +0 -0
  799. /package/dist/{brainImaging-LVJON47N.js.map → brainImaging-VSOOMITW.js.map} +0 -0
  800. /package/dist/{chat-5FDIAQJ4.js.map → chat-LW23PIG5.js.map} +0 -0
  801. /package/dist/{chunk-PQABAAEZ.js.map → chunk-2LULD7RN.js.map} +0 -0
  802. /package/dist/{chunk-LEDPPLQK.js.map → chunk-3AGB6HL4.js.map} +0 -0
  803. /package/dist/{chunk-T2HYA2KL.js.map → chunk-3AVDNIDN.js.map} +0 -0
  804. /package/dist/{chunk-JOXUBWN3.js.map → chunk-3DCABJHB.js.map} +0 -0
  805. /package/dist/{chunk-UQACPOCM.js.map → chunk-3JMB3OSC.js.map} +0 -0
  806. /package/dist/{chunk-2J3566TA.js.map → chunk-3UEMY45Y.js.map} +0 -0
  807. /package/dist/{chunk-ILF2GKBY.js.map → chunk-4RR4KPRJ.js.map} +0 -0
  808. /package/dist/{chunk-TE3DK3A6.js.map → chunk-5HCB4HNL.js.map} +0 -0
  809. /package/dist/{chunk-IP4T477W.js.map → chunk-5RFB7TYT.js.map} +0 -0
  810. /package/dist/{chunk-7A7NMCQ3.js.map → chunk-5UMPBVA6.js.map} +0 -0
  811. /package/dist/{chunk-MXI3NXRB.js.map → chunk-6C2SBTLR.js.map} +0 -0
  812. /package/dist/{chunk-UBS5UVIY.js.map → chunk-6LAE5AVA.js.map} +0 -0
  813. /package/dist/{chunk-JHOGX5VE.js.map → chunk-7VV43ICF.js.map} +0 -0
  814. /package/dist/{chunk-O4PXELXF.js.map → chunk-A742TQD2.js.map} +0 -0
  815. /package/dist/{chunk-E6DRQJJT.js.map → chunk-AFLFPYJI.js.map} +0 -0
  816. /package/dist/{chunk-DONWY7TP.js.map → chunk-AQ4OP4GR.js.map} +0 -0
  817. /package/dist/{chunk-FQRLSKJC.js.map → chunk-BAY47D5E.js.map} +0 -0
  818. /package/dist/{chunk-TN5GSG34.js.map → chunk-CFHKYLDY.js.map} +0 -0
  819. /package/dist/{chunk-K6JLCMVL.js.map → chunk-CTAKX5CT.js.map} +0 -0
  820. /package/dist/{chunk-Y3TDC7NU.js.map → chunk-D4QFQQWJ.js.map} +0 -0
  821. /package/dist/{chunk-YUMPQ3CJ.js.map → chunk-DGMK7SXX.js.map} +0 -0
  822. /package/dist/{chunk-UR3C4SCH.js.map → chunk-DNCSPTOQ.js.map} +0 -0
  823. /package/dist/{chunk-IIRU6VK2.js.map → chunk-DTDQKGIQ.js.map} +0 -0
  824. /package/dist/{chunk-K57RR3FD.js.map → chunk-E4NVHKWD.js.map} +0 -0
  825. /package/dist/{chunk-GKK3CZ6H.js.map → chunk-E6KEZENR.js.map} +0 -0
  826. /package/dist/{chunk-X6UPDFDX.js.map → chunk-FRBYOOWT.js.map} +0 -0
  827. /package/dist/{chunk-UWX7W22M.js.map → chunk-FVWCYGJL.js.map} +0 -0
  828. /package/dist/{chunk-CCIZJAXB.js.map → chunk-I4IKRKYJ.js.map} +0 -0
  829. /package/dist/{chunk-W6UUEAEP.js.map → chunk-IEQSUAIO.js.map} +0 -0
  830. /package/dist/{chunk-UBGTQMOO.js.map → chunk-JMPSZMDD.js.map} +0 -0
  831. /package/dist/{chunk-MPJHDHBA.js.map → chunk-JXOL73PT.js.map} +0 -0
  832. /package/dist/{chunk-KSFSM46X.js.map → chunk-K62XUHA4.js.map} +0 -0
  833. /package/dist/{chunk-DVDDXOWT.js.map → chunk-KQMEJUWI.js.map} +0 -0
  834. /package/dist/{chunk-FGMPKWT5.js.map → chunk-LI7FE335.js.map} +0 -0
  835. /package/dist/{chunk-AZYDW5T7.js.map → chunk-MV6O4I2B.js.map} +0 -0
  836. /package/dist/{chunk-PIACSJPH.js.map → chunk-MXNSW55L.js.map} +0 -0
  837. /package/dist/{chunk-HAMDFQIX.js.map → chunk-NB7NLFGZ.js.map} +0 -0
  838. /package/dist/{chunk-FBAJTPBU.js.map → chunk-NGGWK6HX.js.map} +0 -0
  839. /package/dist/{chunk-P5HLYAHP.js.map → chunk-OGGFS66K.js.map} +0 -0
  840. /package/dist/{chunk-DHZL3FBC.js.map → chunk-Q7PYFSNU.js.map} +0 -0
  841. /package/dist/{chunk-GPOECA3V.js.map → chunk-QMI222IJ.js.map} +0 -0
  842. /package/dist/{chunk-AETE4F7R.js.map → chunk-QRIRWDIW.js.map} +0 -0
  843. /package/dist/{chunk-ORPCSG6T.js.map → chunk-R6L6NVEC.js.map} +0 -0
  844. /package/dist/{chunk-B6HCIAM3.js.map → chunk-RLTLYKHO.js.map} +0 -0
  845. /package/dist/{chunk-VLTDUJRM.js.map → chunk-S5ZI6N2I.js.map} +0 -0
  846. /package/dist/{chunk-H2D7EVUA.js.map → chunk-S7T7OZC7.js.map} +0 -0
  847. /package/dist/{chunk-F6V4AYWP.js.map → chunk-SEQLC4AD.js.map} +0 -0
  848. /package/dist/{chunk-RSU37SVQ.js.map → chunk-TEZLFSOV.js.map} +0 -0
  849. /package/dist/{chunk-YOTWMCT5.js.map → chunk-UEMTP6ZC.js.map} +0 -0
  850. /package/dist/{chunk-6MSCYO7K.js.map → chunk-UJU3Q7QJ.js.map} +0 -0
  851. /package/dist/{chunk-RFIVPTMS.js.map → chunk-VIPMLSZP.js.map} +0 -0
  852. /package/dist/{chunk-LUTT3MBZ.js.map → chunk-VUUZJANK.js.map} +0 -0
  853. /package/dist/{chunk-2OSEZCWZ.js.map → chunk-WGHO2NCP.js.map} +0 -0
  854. /package/dist/{chunk-GO5SIPFE.js.map → chunk-WPHOEG56.js.map} +0 -0
  855. /package/dist/{chunk-KVG7FTTK.js.map → chunk-WS5XVKPJ.js.map} +0 -0
  856. /package/dist/{chunk-MNRYCG2S.js.map → chunk-X6URQAFD.js.map} +0 -0
  857. /package/dist/{chunk-VJ37HKM6.js.map → chunk-YALAQWX4.js.map} +0 -0
  858. /package/dist/{chunk-H2K5KZP7.js.map → chunk-YY4CKQJ6.js.map} +0 -0
  859. /package/dist/{chunk-G6ELKVBG.js.map → chunk-Z3KV6SC2.js.map} +0 -0
  860. /package/dist/{condition-VHP2L4GM.js.map → condition-JKQIRMMW.js.map} +0 -0
  861. /package/dist/{controls-N5Q7U7JR.js.map → controls-324AGOZG.js.map} +0 -0
  862. /package/dist/{controls.config-NJMW4SLR.js.map → controls.config-TA4NNARU.js.map} +0 -0
  863. /package/dist/{correlation-3LDASF5I.js.map → correlation-3Z36TKC2.js.map} +0 -0
  864. /package/dist/{cuminc-UWJ23W6C.js.map → cuminc-4DY2CSZF.js.map} +0 -0
  865. /package/dist/{cuminc.integration.spec-OZYYET3W.js.map → cuminc.integration.spec-SFQPLMSF.js.map} +0 -0
  866. /package/dist/{dataDownload-4S4PE5HX.js.map → dataDownload-3AE2N7KI.js.map} +0 -0
  867. /package/dist/{dataDownload.integration.spec-B57LEKFZ.js.map → dataDownload.integration.spec-DKOT6BJP.js.map} +0 -0
  868. /package/dist/{databrowser.ui-N6GHEQ2P.js.map → databrowser.ui-ATODRS5P.js.map} +0 -0
  869. /package/dist/{dnaMethylation-BOGAUAWA.js.map → dnaMethylation-TVA5YMOR.js.map} +0 -0
  870. /package/dist/{e2pca-L5EBQJNP.js.map → e2pca-KHVDNFEZ.js.map} +0 -0
  871. /package/dist/{ep-Z67ORKUX.js.map → ep-B5GAAMNM.js.map} +0 -0
  872. /package/dist/{expclust.gdc.spec-SP7VOL64.js.map → expclust.gdc.spec-EDPX7V6K.js.map} +0 -0
  873. /package/dist/{facet-HDB4VDGU.js.map → facet-ZCSXKXIO.js.map} +0 -0
  874. /package/dist/{geneExpClustering-6ZPOLTDJ.js.map → geneExpClustering-ERNCMAED.js.map} +0 -0
  875. /package/dist/{geneExpression-T7QUHV5S.js.map → geneExpression-HUOXWETT.js.map} +0 -0
  876. /package/dist/{geneExpression-T6YIG4XQ.js.map → geneExpression-X2KXJPND.js.map} +0 -0
  877. /package/dist/{geneExpression.unit.spec-DO52L5IB.js.map → geneExpression.unit.spec-5QQB4ISW.js.map} +0 -0
  878. /package/dist/{geneORA-KOUDUWUO.js.map → geneORA-B5UK77KL.js.map} +0 -0
  879. /package/dist/{geneVariant-FVR76F6I.js.map → geneVariant-7MGUAIZ6.js.map} +0 -0
  880. /package/dist/{geneVariant-I5QUITKG.js.map → geneVariant-FK3KZJ2K.js.map} +0 -0
  881. /package/dist/{geneVariant.integration.spec-D4IRM7B5.js.map → geneVariant.integration.spec-C6TYWKIC.js.map} +0 -0
  882. /package/dist/{genefusion.ui-35IYSZD7.js.map → genefusion.ui-VKAINMY7.js.map} +0 -0
  883. /package/dist/{geneset-7ZHJ5KWK.js.map → geneset-673KAZVX.js.map} +0 -0
  884. /package/dist/{genomeBrowser.spec-VXASVLNH.js.map → genomeBrowser.spec-T6TQCJ3O.js.map} +0 -0
  885. /package/dist/{grin2-7NM56COO.js.map → grin2-376BD4XY.js.map} +0 -0
  886. /package/dist/{grin2-IY26UUQI.js.map → grin2-OALS75LC.js.map} +0 -0
  887. /package/dist/{gsea-TORO46C6.js.map → gsea-25LD2LGP.js.map} +0 -0
  888. /package/dist/{hierCluster-3BKEGW6P.js.map → hierCluster-7KU3K52V.js.map} +0 -0
  889. /package/dist/{hierCluster-HM3LOM6V.js.map → hierCluster-M5VVWKQK.js.map} +0 -0
  890. /package/dist/{hierCluster.config-LDO5IGQ5.js.map → hierCluster.config-EDO3SH2P.js.map} +0 -0
  891. /package/dist/{hierCluster.integration.spec-XO5R6CQT.js.map → hierCluster.integration.spec-UOX7J2XD.js.map} +0 -0
  892. /package/dist/{hierCluster.interactivity-NVQ6262K.js.map → hierCluster.interactivity-FEFZDXML.js.map} +0 -0
  893. /package/dist/{hierCluster.renderers-SWPPNBLU.js.map → hierCluster.renderers-A6MEGO2B.js.map} +0 -0
  894. /package/dist/{imagePlot-V4WLAPV6.js.map → imagePlot-FPXZ2H5Z.js.map} +0 -0
  895. /package/dist/{importPlot-NZKQEOX4.js.map → importPlot-VKWPSFEK.js.map} +0 -0
  896. /package/dist/{isoformExpression-TIZBIGNL.js.map → isoformExpression-2R2TOB6P.js.map} +0 -0
  897. /package/dist/{jspdf.es.min-DO4YWL2R.js.map → jspdf.es.min-FC3BCETM.js.map} +0 -0
  898. /package/dist/{launch.adhoc-JYEN42NM.js.map → launch.adhoc-242RS6DW.js.map} +0 -0
  899. /package/dist/{leftlabel.sample-43DL3J3H.js.map → leftlabel.sample-OJW3AE64.js.map} +0 -0
  900. /package/dist/{legacyDataset-QRSNRVUA.js.map → legacyDataset-PBCPC5I7.js.map} +0 -0
  901. /package/dist/{lollipop-NMWZ4FVF.js.map → lollipop-TRQ3LK7Y.js.map} +0 -0
  902. /package/dist/{maf-DS3EOVGV.js.map → maf-ZBOLN2FE.js.map} +0 -0
  903. /package/dist/{maftimeline-ZB2753S7.js.map → maftimeline-GVX7NJP7.js.map} +0 -0
  904. /package/dist/{matrix-RCGQWQ3C.js.map → matrix-73KRNXLM.js.map} +0 -0
  905. /package/dist/{matrix-WTTEK4FT.js.map → matrix-US3OXYRY.js.map} +0 -0
  906. /package/dist/{matrix.cells-UO5ASQ35.js.map → matrix.cells-U7AQNEBP.js.map} +0 -0
  907. /package/dist/{matrix.config-3UQAT3QR.js.map → matrix.config-Q57D7C3F.js.map} +0 -0
  908. /package/dist/{matrix.controls-PRZ77K5L.js.map → matrix.controls-AWXDRSWP.js.map} +0 -0
  909. /package/dist/{matrix.data-4W73RQ3H.js.map → matrix.data-EEIY6AO4.js.map} +0 -0
  910. /package/dist/{matrix.dom-IZFFS4RQ.js.map → matrix.dom-6QL3AJMW.js.map} +0 -0
  911. /package/dist/{matrix.groups-5VMPI7SA.js.map → matrix.groups-CUB6UWC5.js.map} +0 -0
  912. /package/dist/{matrix.integration.spec-2F5LDLC2.js.map → matrix.integration.spec-PQH67KRM.js.map} +0 -0
  913. /package/dist/{matrix.interactivity-MIPZ6ELV.js.map → matrix.interactivity-JW4AXAWO.js.map} +0 -0
  914. /package/dist/{matrix.layout-EO5LVYRO.js.map → matrix.layout-I56KRVCO.js.map} +0 -0
  915. /package/dist/{matrix.legend-QBFBFEUG.js.map → matrix.legend-42LQGAGX.js.map} +0 -0
  916. /package/dist/{matrix.renderers-ERJXVCQL.js.map → matrix.renderers-IX3FCNBK.js.map} +0 -0
  917. /package/dist/{matrix.serieses-E23EPXHA.js.map → matrix.serieses-4B2WB526.js.map} +0 -0
  918. /package/dist/{matrix.sort-I4UGMEXR.js.map → matrix.sort-BJACNR7G.js.map} +0 -0
  919. /package/dist/{matrix.sort.unit.spec-CRGF6CSE.js.map → matrix.sort.unit.spec-3KKDKIPY.js.map} +0 -0
  920. /package/dist/{matrix.sorterUi-YLSYTYLE.js.map → matrix.sorterUi-W6XFYZY2.js.map} +0 -0
  921. /package/dist/{matrix.sorterUi.unit.spec-ENG3ICOO.js.map → matrix.sorterUi.unit.spec-CMJ7EBIW.js.map} +0 -0
  922. /package/dist/{mavb-5WR7OJHI.js.map → mavb-ROAE6WYA.js.map} +0 -0
  923. /package/dist/{mds.fimo-3ZRH7BBJ.js.map → mds.fimo-UGK5OWCF.js.map} +0 -0
  924. /package/dist/{mds.samplescatterplot-RPXR2FVK.js.map → mds.samplescatterplot-5KFUAYSB.js.map} +0 -0
  925. /package/dist/{mds.survivalplot-WSSMYUZD.js.map → mds.survivalplot-2EVNZUX5.js.map} +0 -0
  926. /package/dist/{oncomatrix-JKYPUJQR.js.map → oncomatrix-UGFXSXQJ.js.map} +0 -0
  927. /package/dist/{oncomatrix.spec-OEGU4DYK.js.map → oncomatrix.spec-FEP7BR7L.js.map} +0 -0
  928. /package/dist/{plot.2dvaf-ZGARLQNK.js.map → plot.2dvaf-WXGLWCOC.js.map} +0 -0
  929. /package/dist/{plot.app-TKUJH3LK.js.map → plot.app-IZAFRTBU.js.map} +0 -0
  930. /package/dist/{plot.barplot-FEIPGDZ2.js.map → plot.barplot-Z4VWOPFJ.js.map} +0 -0
  931. /package/dist/{plot.boxplot-6RASUMZB.js.map → plot.boxplot-QU2KZSB7.js.map} +0 -0
  932. /package/dist/{plot.brainImaging-ZJPFWX2W.js.map → plot.brainImaging-U643YIK7.js.map} +0 -0
  933. /package/dist/{plot.dzi-PC34YI6Y.js.map → plot.dzi-DWXPOOQE.js.map} +0 -0
  934. /package/dist/{plot.ssgq-Z4UNJKWO.js.map → plot.ssgq-GXB2GZO3.js.map} +0 -0
  935. /package/dist/{plot.vaf2cov-NZ4WULKT.js.map → plot.vaf2cov-EKRIADPB.js.map} +0 -0
  936. /package/dist/{plot.wsi-YYXFAZWY.js.map → plot.wsi-E2LLE6HI.js.map} +0 -0
  937. /package/dist/{polar-X2GPIBLB.js.map → polar-MZLIUXHO.js.map} +0 -0
  938. /package/dist/{polar2-TZ553QQH.js.map → polar2-IUVHNQM4.js.map} +0 -0
  939. /package/dist/{profile.spec-VB6VMFLY.js.map → profile.spec-JRW6KYUI.js.map} +0 -0
  940. /package/dist/{profileBarchart-SKJSTC7B.js.map → profileBarchart-N7HJMYZ5.js.map} +0 -0
  941. /package/dist/{profileForms-RLOGSMAQ.js.map → profileForms-Q5TPGPQP.js.map} +0 -0
  942. /package/dist/{profilePlot-267ZS3RG.js.map → profilePlot-TXTUYDVE.js.map} +0 -0
  943. /package/dist/{profileRadar-KGOBHCSF.js.map → profileRadar-ICEASI7W.js.map} +0 -0
  944. /package/dist/{proteomeAbundance-PGHZSVAF.js.map → proteomeAbundance-DE4NVBCN.js.map} +0 -0
  945. /package/dist/{proteomeAbundance-JUYAYO5I.js.map → proteomeAbundance-LTB3QR3G.js.map} +0 -0
  946. /package/dist/{qualitative-3IECKKJM.js.map → qualitative-DFGWQURY.js.map} +0 -0
  947. /package/dist/{regression-J6FFRPXN.js.map → regression-TTQTAEGD.js.map} +0 -0
  948. /package/dist/{regression.inputs-T7LWBSYZ.js.map → regression.inputs-2LU2XRGC.js.map} +0 -0
  949. /package/dist/{regression.inputs.term-TT7PNX6G.js.map → regression.inputs.term-G57GL57T.js.map} +0 -0
  950. /package/dist/{regression.inputs.values.table-SHFUNKCS.js.map → regression.inputs.values.table-JSEM3PXL.js.map} +0 -0
  951. /package/dist/{regression.results-D4WX6VIV.js.map → regression.results-3YNM6LLQ.js.map} +0 -0
  952. /package/dist/{regression.spec-7SW55L7X.js.map → regression.spec-S6WFCPSW.js.map} +0 -0
  953. /package/dist/{report-QYOZ4BRF.js.map → report-YRAV4MY4.js.map} +0 -0
  954. /package/dist/{sampleScatter.spec-JCHFMGNF.js.map → sampleScatter.spec-MBJ4XNTX.js.map} +0 -0
  955. /package/dist/{sampleView-7RPKNAZC.js.map → sampleView-IUR3ZEN7.js.map} +0 -0
  956. /package/dist/{samplelst-4WNPHZVG.js.map → samplelst-C2NBFGH6.js.map} +0 -0
  957. /package/dist/{samplematrix-CG52DSXJ.js.map → samplematrix-AOK2HHSB.js.map} +0 -0
  958. /package/dist/{sc-OJSWILSA.js.map → sc-XT3Z5XJI.js.map} +0 -0
  959. /package/dist/{scatter-LG2RMMEC.js.map → scatter-SAHKZRFL.js.map} +0 -0
  960. /package/dist/{selectGenomeWithTklst-QXRVE6N4.js.map → selectGenomeWithTklst-2YVZ4JWV.js.map} +0 -0
  961. /package/dist/{singleCellCellType-XBSRL33U.js.map → singleCellCellType-NFN5GQJM.js.map} +0 -0
  962. /package/dist/{singleCellGeneExpression-64ECP62X.js.map → singleCellGeneExpression-7AQGLXTR.js.map} +0 -0
  963. /package/dist/{singleCellPlot-E5F62JY6.js.map → singleCellPlot-IWFEG44C.js.map} +0 -0
  964. /package/dist/{singlecell-S7B5V7NK.js.map → singlecell-3QNV4OMZ.js.map} +0 -0
  965. /package/dist/{singlecell-FCY5EOUV.js.map → singlecell-EATPLH66.js.map} +0 -0
  966. /package/dist/{snp-ACKX4GRX.js.map → snp-UP7WL7WG.js.map} +0 -0
  967. /package/dist/{snp.unit.spec-QBGHKKUD.js.map → snp.unit.spec-Y5NWQ442.js.map} +0 -0
  968. /package/dist/{snplocus-7EUOW7J7.js.map → snplocus-WAQK2AZG.js.map} +0 -0
  969. /package/dist/{spliceevent.a53ss.diagram-ALQZA35Z.js.map → spliceevent.a53ss.diagram-FFK27UIB.js.map} +0 -0
  970. /package/dist/{spliceevent.exonskip.diagram-UF7WJA5R.js.map → spliceevent.exonskip.diagram-KWEF2OZJ.js.map} +0 -0
  971. /package/dist/{spliceevent.noeventdiagram-4HPGRNRR.js.map → spliceevent.noeventdiagram-PU4TI7OM.js.map} +0 -0
  972. /package/dist/{ssGSEA-FDRBBBLJ.js.map → ssGSEA-N6QOAVLW.js.map} +0 -0
  973. /package/dist/{ssGSEA.unit.spec-EZEOWJVV.js.map → ssGSEA.unit.spec-KQBNZNNP.js.map} +0 -0
  974. /package/dist/{summarizeMutationDiagnosis-LALOJTHV.js.map → summarizeMutationDiagnosis-5RHSG7L6.js.map} +0 -0
  975. /package/dist/{summarizeMutationSurvival-TSNTSOBZ.js.map → summarizeMutationSurvival-22YYXGS5.js.map} +0 -0
  976. /package/dist/{summary-YRHVS64T.js.map → summary-P3WIKJS7.js.map} +0 -0
  977. /package/dist/{summary.integration.spec-766YQLQA.js.map → summary.integration.spec-ULGRPICW.js.map} +0 -0
  978. /package/dist/{summaryInput-VQ2X6GSX.js.map → summaryInput-IH4EVNF5.js.map} +0 -0
  979. /package/dist/{survival-FQXZH2MM.js.map → survival-2ZE3N62A.js.map} +0 -0
  980. /package/dist/{survival-TVA3ZWVP.js.map → survival-ASCLKIII.js.map} +0 -0
  981. /package/dist/{survival.integration.spec-WFIOPD6A.js.map → survival.integration.spec-C5YXOY77.js.map} +0 -0
  982. /package/dist/{svg2pdf.es.min-EZ4UYRSH.js.map → svg2pdf.es.min-CYTPRWNB.js.map} +0 -0
  983. /package/dist/{svgraph-4BFBO7EL.js.map → svgraph-AYR2UPNK.js.map} +0 -0
  984. /package/dist/{svmr-ML7GAIIA.js.map → svmr-MOMW5DNY.js.map} +0 -0
  985. /package/dist/{table-SMLMUWPP.js.map → table-PQB6KCEY.js.map} +0 -0
  986. /package/dist/{termCollection-22CPTISZ.js.map → termCollection-5AY2AWT4.js.map} +0 -0
  987. /package/dist/{termCollection-EE6AOIVA.js.map → termCollection-OQMUUTW6.js.map} +0 -0
  988. /package/dist/{termCollection.unit.spec-4DIW3CJ3.js.map → termCollection.unit.spec-BUAXYIJK.js.map} +0 -0
  989. /package/dist/{tk-ITZCKOQ5.js.map → tk-EJLFFA5H.js.map} +0 -0
  990. /package/dist/{tp.ui-R6HVKCBC.js.map → tp.ui-WUW6A7KP.js.map} +0 -0
  991. /package/dist/{tvs.density-AQ5GD437.js.map → tvs.density-HSVPDDGA.js.map} +0 -0
  992. /package/dist/{tvs.dt-2263TBEJ.js.map → tvs.dt-MVJXQMNU.js.map} +0 -0
  993. /package/dist/{tvs.dtcnv.categorical-TRRHL33N.js.map → tvs.dtcnv.categorical-FIIDWVK7.js.map} +0 -0
  994. /package/dist/{tvs.dtcnv.continuous-GREYNF52.js.map → tvs.dtcnv.continuous-JPQU3JA2.js.map} +0 -0
  995. /package/dist/{tvs.dtfusion-XOX46L3M.js.map → tvs.dtfusion-BW35GOQM.js.map} +0 -0
  996. /package/dist/{tvs.dtsnvindel-IDMXT53F.js.map → tvs.dtsnvindel-AEMFZ4EH.js.map} +0 -0
  997. /package/dist/{tvs.dtsv-ZDWFYH2C.js.map → tvs.dtsv-JHTU7UFD.js.map} +0 -0
  998. /package/dist/{tvs.numeric-ZN2R7BH3.js.map → tvs.numeric-ICUGA4WY.js.map} +0 -0
  999. /package/dist/{tvs.samplelst-GAP76HRH.js.map → tvs.samplelst-VD2NFFFS.js.map} +0 -0
  1000. /package/dist/{tvs.termCollection-GQ65UKSI.js.map → tvs.termCollection-IKE5Q74D.js.map} +0 -0
  1001. /package/dist/{violin-JGDL62YA.js.map → violin-DPMJLHQG.js.map} +0 -0
  1002. /package/dist/{violin.interactivity-H4RP4K5U.js.map → violin.interactivity-TS4DYUE5.js.map} +0 -0
  1003. /package/dist/{violin.renderer-QPHLACDC.js.map → violin.renderer-53L4PXUT.js.map} +0 -0
  1004. /package/dist/{vocabulary-7JACY4J2.js.map → vocabulary-4MPFHKYC.js.map} +0 -0
@@ -0,0 +1,3235 @@
1
+ import {
2
+ InvalidDataUI,
3
+ configUiInit,
4
+ fillbar,
5
+ getMaxLabelWidth,
6
+ getNormalRoot,
7
+ renderTable,
8
+ svgLegend,
9
+ table2col
10
+ } from "./chunk-OXJ2TWDO.js";
11
+ import "./chunk-HJ6L54YS.js";
12
+ import "./chunk-V6DLLX4N.js";
13
+ import {
14
+ dofetch3
15
+ } from "./chunk-7RN3L2BX.js";
16
+ import {
17
+ Menu
18
+ } from "./chunk-A6TQGNDQ.js";
19
+ import "./chunk-HYZG6OPC.js";
20
+ import "./chunk-FN5XPUPH.js";
21
+ import "./chunk-LSEFWW72.js";
22
+ import {
23
+ topBarInit
24
+ } from "./chunk-5EF5U7MX.js";
25
+ import "./chunk-2K5DSRBJ.js";
26
+ import "./chunk-UCLS2SVB.js";
27
+ import {
28
+ copyMerge,
29
+ getCompInit,
30
+ multiInit
31
+ } from "./chunk-MVTCBVSX.js";
32
+ import "./chunk-SEQLC4AD.js";
33
+ import "./chunk-L4QG7XZE.js";
34
+ import "./chunk-DQC5FFGV.js";
35
+ import "./chunk-KQMEJUWI.js";
36
+ import "./chunk-UJU3Q7QJ.js";
37
+ import "./chunk-WGL6FIUE.js";
38
+ import "./chunk-6ITDJ5UR.js";
39
+ import {
40
+ bplen,
41
+ dtcnv,
42
+ dtfusionrna,
43
+ dtloh,
44
+ dtsnvindel,
45
+ dtsv,
46
+ mclass
47
+ } from "./chunk-XYFDBYOY.js";
48
+ import "./chunk-TV74I3Y5.js";
49
+ import {
50
+ arc_default,
51
+ line_default,
52
+ pie_default,
53
+ ribbon_default
54
+ } from "./chunk-IH7ILDJS.js";
55
+ import "./chunk-LOZEKOES.js";
56
+ import "./chunk-TOU7EVFQ.js";
57
+ import {
58
+ linear,
59
+ ticks
60
+ } from "./chunk-OAWQ6LOO.js";
61
+ import "./chunk-SEEYV6P2.js";
62
+ import {
63
+ pointer_default,
64
+ select_default
65
+ } from "./chunk-NDWTN4U5.js";
66
+ import "./chunk-OMR2DT66.js";
67
+ import "./chunk-HFNDKYVF.js";
68
+
69
+ // plots/disco/arc/FullArcRenderer.ts
70
+ var FullArcRenderer = class {
71
+ constructor(radius, width, color) {
72
+ this.radius = radius;
73
+ this.width = width;
74
+ this.color = color;
75
+ }
76
+ render(holder) {
77
+ const donutGenerator = arc_default();
78
+ const arc = {
79
+ startAngle: 0,
80
+ endAngle: Math.PI * 2,
81
+ innerRadius: this.radius,
82
+ outerRadius: this.radius + this.width,
83
+ color: this.color,
84
+ text: "No label"
85
+ };
86
+ const array = [];
87
+ array.push(arc);
88
+ const donutArc = holder.append("g");
89
+ donutArc.selectAll("path").data(array).enter().append("path").attr("d", (d) => donutGenerator(d)).attr("fill", (d) => d.color);
90
+ }
91
+ };
92
+
93
+ // plots/disco/menu/MenuProvider.ts
94
+ var MenuProvider = class {
95
+ static create() {
96
+ const menu = new Menu({ padding: 5 });
97
+ menu.d.style("border", "1px solid #FFF").style("position", "absolute").style("z-index", 1001);
98
+ return menu;
99
+ }
100
+ };
101
+
102
+ // plots/disco/fusion/FusionColorProvider.ts
103
+ var FusionColorProvider = class {
104
+ static getColor(chrA, chrB) {
105
+ if (chrA != chrB) {
106
+ return "#6A3D9A" /* Interchromosomal */.valueOf();
107
+ } else {
108
+ return "#1B9E77" /* Intrachromosomal */.valueOf();
109
+ }
110
+ }
111
+ };
112
+
113
+ // plots/disco/fusion/FusionRenderer.ts
114
+ var FusionRenderer = class {
115
+ constructor(genome) {
116
+ this.genome = genome;
117
+ }
118
+ render(holder, fusions, opacity = 1) {
119
+ let radius = 0;
120
+ const fusionsWithTarget = fusions.filter((f) => f.target);
121
+ if (fusionsWithTarget.length > 0) {
122
+ radius = fusionsWithTarget[0].target.radius;
123
+ const fullArcRenderer = new FullArcRenderer(radius, 2, "#6464641A");
124
+ fullArcRenderer.render(holder);
125
+ } else return;
126
+ const ribbon = ribbon_default().radius(radius);
127
+ const ribbons = holder.selectAll(".chord").data(fusions);
128
+ const menu = MenuProvider.create();
129
+ const createTooltip = this.createTooltip.bind(this);
130
+ const genome = this.genome;
131
+ ribbons.enter().append("path").attr("class", "chord").attr("d", ribbon).attr("fill", (fusion) => {
132
+ return FusionColorProvider.getColor(
133
+ fusion.source.positionInChromosome.chromosome,
134
+ fusion.target.positionInChromosome.chromosome
135
+ );
136
+ }).style("opacity", opacity).each(function(d) {
137
+ const path = select_default(this);
138
+ const tip = MenuProvider.create();
139
+ path.on("click", async function(event) {
140
+ tip.clear().show(event.x, event.y);
141
+ const div = tip.d.append("div");
142
+ await makeSvgraph(d, div, genome);
143
+ });
144
+ }).on("mouseover", async function(mouseEvent, fusion) {
145
+ const table = table2col({ holder: menu.d });
146
+ createTooltip(table, fusion);
147
+ menu.show(mouseEvent.x, mouseEvent.y);
148
+ }).on("mouseout", () => {
149
+ menu.clear();
150
+ menu.hide();
151
+ });
152
+ }
153
+ createTooltip(table, fusion) {
154
+ {
155
+ const [td1, td2] = table.addRow();
156
+ td1.text("Data type");
157
+ td2.append("span").style("margin-left", "5px").text("Fusion transcript");
158
+ }
159
+ {
160
+ const positionInChromosomeSource = fusion.source.positionInChromosome;
161
+ const positionInChromosomeTarget = fusion.target.positionInChromosome;
162
+ const [td1, td2] = table.addRow();
163
+ td1.text("Position");
164
+ td2.append("span").style("margin-left", "5px").text(
165
+ ` ${fusion.source.gene || ""} ${positionInChromosomeSource.chromosome}:${positionInChromosomeSource.position} ${fusion.source.strand === "+" ? "forward" : "reverse"} > ${fusion.target.gene || ""} ${positionInChromosomeTarget.chromosome}:${positionInChromosomeTarget.position} ${fusion.target.strand === "+" ? "forward" : "reverse"} `
166
+ );
167
+ }
168
+ }
169
+ };
170
+ async function makeSvgraph(fusion, div, genome) {
171
+ const wait = div.append("div").text("Loading...");
172
+ const svpair = {
173
+ a: {
174
+ chr: fusion.source.positionInChromosome.chromosome,
175
+ position: fusion.source.positionInChromosome.position,
176
+ strand: fusion.source.strand
177
+ },
178
+ b: {
179
+ chr: fusion.target.positionInChromosome.chromosome,
180
+ position: fusion.target.positionInChromosome.position,
181
+ strand: fusion.target.strand
182
+ }
183
+ };
184
+ await getGm(svpair.a, genome.name, fusion.source.gene);
185
+ await getGm(svpair.b, genome.name, fusion.target.gene);
186
+ wait.remove();
187
+ const _ = await import("./svgraph-AYR2UPNK.js");
188
+ _.default({
189
+ pairlst: [svpair],
190
+ genome,
191
+ holder: div
192
+ });
193
+ }
194
+ async function getGm(p, genome, name) {
195
+ const d = await dofetch3("isoformbycoord", {
196
+ body: { genome, chr: p.chr, pos: p.position }
197
+ });
198
+ if (d.error) throw d.error;
199
+ const u = d.lst.find((i) => i.isdefault && name === i.name) || d.lst[0];
200
+ if (u) {
201
+ p.name = u.name;
202
+ p.gm = { isoform: u.isoform };
203
+ }
204
+ }
205
+
206
+ // plots/disco/DiscoRenderer.ts
207
+ var DiscoRenderer = class {
208
+ constructor(renders, legendRenderer, genome) {
209
+ this.renders = renders;
210
+ this.legendRenderer = legendRenderer;
211
+ this.fusionRenderer = new FusionRenderer(genome);
212
+ }
213
+ render(holder, viewModel, onCnvSourceSelect) {
214
+ const svgDiv = holder.append("div").style("display", "inline-block").style("font-family", "Arial");
215
+ const svg = svgDiv.append("svg").attr("id", "sjpp_disco_plot").attr("data-testid", "sjpp_disco_plot").attr("width", viewModel.width).attr("height", viewModel.height + viewModel.legendHeight);
216
+ const mainG = svg.append("g").attr("class", "mainG").attr(
217
+ "transform",
218
+ `translate(${viewModel.settings.rings.labelLinesInnerRadius + viewModel.settings.rings.labelsToLinesDistance + 100},${viewModel.height / 2})`
219
+ );
220
+ for (const [ringType, renderer] of this.renders) {
221
+ const elements = viewModel.getElements(ringType);
222
+ const collisions = viewModel.getCollisions(ringType);
223
+ renderer.render(mainG, elements, collisions);
224
+ }
225
+ this.fusionRenderer.render(mainG, viewModel.fusions, viewModel.settings.Disco.fusionOpacity);
226
+ if (viewModel.settings.Disco.centerText) {
227
+ const chrRingBbox = mainG.select('[data-testid="sjpp_chromosomes_arc_group"]').node().getBBox();
228
+ const text = viewModel.settings.Disco.centerText.length > 20 ? viewModel.settings.Disco.centerText.slice(0, 20) + "..." : viewModel.settings.Disco.centerText;
229
+ const textElem = mainG.append("text").attr("class", "sjpp-disco-center-text").text(text);
230
+ const textBbox = textElem.node().getBBox();
231
+ textElem.attr("transform", `translate(${chrRingBbox.x + chrRingBbox.width / 2 - textBbox.width / 2},0)`);
232
+ }
233
+ this.legendRenderer.render(
234
+ mainG,
235
+ viewModel.legend,
236
+ -1 * (viewModel.settings.rings.labelLinesInnerRadius + viewModel.settings.rings.labelsToLinesDistance + 75),
237
+ viewModel.width,
238
+ viewModel.height / 2,
239
+ viewModel,
240
+ onCnvSourceSelect
241
+ );
242
+ }
243
+ };
244
+
245
+ // plots/disco/interactions/DiscoInteractions.ts
246
+ var DiscoInteractions = class {
247
+ constructor(discoApp) {
248
+ this.discoApp = discoApp;
249
+ this.downloadClickListener = (svg) => {
250
+ const downloadImgName = this.discoApp.state.settings.downloadImgName || "disco.plot";
251
+ const a = document.createElement("a");
252
+ document.body.appendChild(a);
253
+ a.addEventListener(
254
+ "click",
255
+ () => {
256
+ const serializer = new XMLSerializer();
257
+ const svg_blob = new Blob([serializer.serializeToString(svg)], {
258
+ type: "image/svg+xml"
259
+ });
260
+ a.download = downloadImgName + ".svg";
261
+ a.href = URL.createObjectURL(svg_blob);
262
+ document.body.removeChild(a);
263
+ },
264
+ false
265
+ );
266
+ a.click();
267
+ };
268
+ this.geneClickListener = async (gene, mnames) => {
269
+ const { filter, filter0 } = this.discoApp.app.getState().termfilter;
270
+ const arg = {
271
+ holder: this.discoApp.app.opts.holder,
272
+ genome: this.discoApp.app.opts.state.args.genome,
273
+ nobox: true,
274
+ query: gene,
275
+ tklst: [
276
+ {
277
+ type: "mds3",
278
+ dslabel: this.discoApp.app.opts.state.vocab.dslabel,
279
+ hlaachange: mnames.join(","),
280
+ filter0,
281
+ filterObj: getNormalRoot(filter)
282
+ // must not pass filter as frozen. pass unfrozen, normalized copy so mds3 code will work
283
+ }
284
+ ]
285
+ };
286
+ const _ = await import("./block.init-NCNSE3HD.js");
287
+ await _.default(arg);
288
+ };
289
+ this.colorScaleNumericInputsCallback = async (obj) => {
290
+ const callAppDispatch = (settings) => {
291
+ this.discoApp.app.dispatch({
292
+ type: "plot_edit",
293
+ id: this.discoApp.id,
294
+ config: { settings: { Disco: Object.assign({ cnvCutoffMode: obj.cutoffMode }, settings) } }
295
+ });
296
+ };
297
+ if (obj.cutoffMode == "auto") {
298
+ if (obj.min == null || obj.max == null)
299
+ throw new Error('Color scale must return min and max if cutoffMode "auto"');
300
+ callAppDispatch({
301
+ cnvCapping: this.discoApp.state.settings.cnv.capping,
302
+ cnvPercentile: this.discoApp.state.settings.cnv.percentile
303
+ });
304
+ } else if (obj.cutoffMode == "fixed") {
305
+ if (obj.min == null || obj.max == null)
306
+ throw new Error('Color scale must return min and max if cutoffMode "fixed"');
307
+ const diffValue = obj.max !== this.discoApp.state.settings.cnv.capping ? obj.max : Math.abs(obj.min);
308
+ callAppDispatch({
309
+ cnvCapping: diffValue
310
+ });
311
+ } else if (obj.cutoffMode == "percentile") callAppDispatch({ cnvPercentile: obj.percentile });
312
+ else throw new Error("Unknown cutoff mode returned from dom/ColorScale");
313
+ };
314
+ this.onMutationWaterfallColorChange = (color) => {
315
+ this.discoApp.app.dispatch({
316
+ type: "plot_edit",
317
+ id: this.discoApp.id,
318
+ config: { settings: { Disco: { mutationWaterfallColor: color } } }
319
+ });
320
+ };
321
+ }
322
+ };
323
+
324
+ // plots/disco/chromosome/Reference.ts
325
+ var Reference = class {
326
+ /**
327
+ * Creates a Reference object that contains information about chromosomes.
328
+ * @param settings State settings
329
+ * @param chromosomes Chromosome order. This function formats into an obj with `chr` removed.
330
+ * @param chromosomeOverride Obj of chromsome keys and sizes. Filtered to remove hidden chromosomes in settings.
331
+ */
332
+ constructor(settings, chromosomes, chromosomeOverride) {
333
+ this.chromosomes = [];
334
+ this.chromosomesOrder = [];
335
+ this.keysArray = [];
336
+ this.totalSizeArray = [];
337
+ this.chrSizesArray = [];
338
+ const chrSizes = chromosomeOverride || chromosomes;
339
+ this.settings = settings;
340
+ this.chromosomesOrder = [];
341
+ let totalSize = 0;
342
+ this.totalPadAngle = Object.keys(chrSizes).length * this.settings.padAngle;
343
+ this.totalChromosomesAngle = 2 * Math.PI - this.totalPadAngle;
344
+ for (const chr in chrSizes) {
345
+ const key = chr.slice(0, 3) === "chr" ? chr.slice(3) : chr;
346
+ this.chromosomesOrder.push(chr);
347
+ this.keysArray.push(key);
348
+ this.totalSizeArray.push(totalSize);
349
+ this.chrSizesArray.push(chrSizes[chr]);
350
+ totalSize += chrSizes[chr];
351
+ }
352
+ this.totalSize = totalSize;
353
+ let lastAngle = 0;
354
+ for (let i = 0; i < this.keysArray.length; i++) {
355
+ const chromosomeAngle = this.totalChromosomesAngle * (this.chrSizesArray[i] / totalSize);
356
+ const startAngle = i == 0 ? this.settings.padAngle / 2 : lastAngle + this.settings.padAngle;
357
+ const endAngle = i == 0 ? this.settings.padAngle / 2 + chromosomeAngle : lastAngle + this.settings.padAngle + chromosomeAngle;
358
+ const chromosome = {
359
+ start: this.totalSizeArray[i],
360
+ size: this.chrSizesArray[i],
361
+ factor: 1,
362
+ startAngle,
363
+ endAngle,
364
+ angle: (startAngle + endAngle) / 2,
365
+ innerRadius: this.settings.rings.chromosomeInnerRadius,
366
+ outerRadius: this.settings.rings.chromosomeInnerRadius + this.settings.rings.chromosomeWidth,
367
+ color: "#AAA",
368
+ text: this.keysArray[i]
369
+ };
370
+ this.chromosomes.push(chromosome);
371
+ if (chromosome.endAngle != null) {
372
+ lastAngle = chromosome.endAngle;
373
+ }
374
+ }
375
+ }
376
+ };
377
+
378
+ // plots/disco/data/DataObjectMapper.ts
379
+ var DataObjectMapper = class {
380
+ constructor(sampleName, prioritizedGenes) {
381
+ this.sampleName = sampleName;
382
+ this.prioritizedGenes = prioritizedGenes;
383
+ }
384
+ map(dObject) {
385
+ return {
386
+ dt: dObject.dt,
387
+ mname: dObject.mname,
388
+ mClass: dObject.class,
389
+ gene: dObject.gene,
390
+ chr: dObject.chr,
391
+ ref: dObject.ref,
392
+ alt: dObject.alt,
393
+ vafs: dObject.vafs,
394
+ position: dObject.pos ? dObject.pos : dObject.position,
395
+ poschr: dObject.poschr,
396
+ posbins: dObject.posbins,
397
+ poslabel: dObject.poslabel,
398
+ sampleName: this.sampleName,
399
+ ssm_id: dObject.ssm_id,
400
+ start: dObject.start,
401
+ stop: dObject.stop,
402
+ value: dObject.value,
403
+ segmean: dObject.segmean,
404
+ isPrioritized: this.prioritizedGenes.some((cancerGene) => cancerGene == dObject.gene),
405
+ chrA: dObject.chrA,
406
+ chrB: dObject.chrB,
407
+ geneA: dObject.geneA,
408
+ geneB: dObject.geneB,
409
+ posA: dObject.posA,
410
+ posB: dObject.posB,
411
+ strandA: dObject.strandA,
412
+ strandB: dObject.strandB
413
+ };
414
+ }
415
+ };
416
+
417
+ // plots/disco/data/PercentileMapper.ts
418
+ var PercentileMapper = class {
419
+ map(data, percentile) {
420
+ return this.calculatePercentileForPositivesAndNegatives(data, percentile);
421
+ }
422
+ calculatePercentileForPositivesAndNegatives(data, percentile) {
423
+ const positives = data.filter((x) => x > 0);
424
+ const negatives = data.filter((x) => x < 0).map((x) => -1 * x);
425
+ let positive = NaN;
426
+ let negative = NaN;
427
+ if (positives.length > 0) {
428
+ positive = this.calculatePercentile(positives, percentile);
429
+ }
430
+ if (negatives.length > 0) {
431
+ negative = -1 * this.calculatePercentile(negatives, percentile);
432
+ }
433
+ return { positive, negative };
434
+ }
435
+ calculatePercentile(data, percentile) {
436
+ if (data.length === 0) {
437
+ throw new Error("Array must contain at least one element.");
438
+ }
439
+ const sortedValues = data.sort((a, b) => a - b);
440
+ const index = percentile / 100 * (sortedValues.length - 1);
441
+ const lowerIndex = Math.floor(index);
442
+ const upperIndex = Math.ceil(index);
443
+ const fraction = index - lowerIndex;
444
+ if (lowerIndex === upperIndex) {
445
+ return sortedValues[lowerIndex];
446
+ }
447
+ return sortedValues[lowerIndex] + fraction * (sortedValues[upperIndex] - sortedValues[lowerIndex]);
448
+ }
449
+ };
450
+
451
+ // plots/disco/data/DataMapper.ts
452
+ var DataMapper = class _DataMapper {
453
+ constructor(settings, reference, sample, prioritizedGenes = []) {
454
+ // remove fields and extract filters to seperate classes
455
+ this.labelData = [];
456
+ this.nonExonicSnvData = [];
457
+ this.nonExonicInnerRadius = 0;
458
+ this.snvRingDataMap = /* @__PURE__ */ new Map();
459
+ this.snvInnerRadius = 0;
460
+ this.snvData = [];
461
+ this.bpx = 0;
462
+ this.onePxArcAngle = 0;
463
+ this.filteredSnvData = [];
464
+ this.filteredSnvCountByChr = /* @__PURE__ */ new Map();
465
+ this.lohData = [];
466
+ this.lohInnerRadius = 0;
467
+ this.cnvData = [];
468
+ this.cnvInnerRadius = 0;
469
+ this.fusionData = [];
470
+ this.fusionRadius = 0;
471
+ this.hasPrioritizedGenes = false;
472
+ this.hasWaterfallEligibleChromosome = false;
473
+ this.invalidEntries = [];
474
+ this.cnvLossMaxValue = 0;
475
+ this.cnvGainMaxValue = 0;
476
+ this.percentilePositive = 0;
477
+ this.percentileNegative = 0;
478
+ this.cnvMaxPercentileAbs = 0;
479
+ this.mutationWaterfallData = [];
480
+ this.mutationWaterfallInnerRadius = 0;
481
+ this.mutationWaterfallRangeMin = Infinity;
482
+ this.mutationWaterfallRangeMax = -Infinity;
483
+ this.lohMaxValue = void 0;
484
+ this.lohMinValue = void 0;
485
+ this.snvFilter = (data) => data.dt == dtsnvindel;
486
+ this.fusionFilter = (data) => data.dt == dtfusionrna || data.dt == dtsv;
487
+ this.cnvFilter = (data) => data.dt == dtcnv;
488
+ this.lohFilter = (data) => data.dt == dtloh;
489
+ this.compareData = (a, b) => {
490
+ const chrDiff = this.reference.chromosomesOrder.indexOf(a.chr) - this.reference.chromosomesOrder.indexOf(b.chr);
491
+ if (chrDiff != 0) {
492
+ return chrDiff;
493
+ }
494
+ const aPos = a.pos ? a.pos : a.start;
495
+ const bPos = b.pos ? b.pos : b.start;
496
+ return aPos - bPos;
497
+ };
498
+ this.settings = settings;
499
+ this.reference = reference;
500
+ this.sample = sample;
501
+ this.excludedChromosomes = this.settings.Disco.hiddenChromosomes;
502
+ this.lastInnerRadious = this.settings.rings.chromosomeInnerRadius;
503
+ this.gainCapped = this.settings.Disco.cnvCapping;
504
+ this.lossCapped = -1 * this.settings.Disco.cnvCapping;
505
+ this.nonExonicFilter = (data) => {
506
+ if (prioritizedGenes.length > 0 && this.settings.Disco.prioritizeGeneLabelsByGeneSets) {
507
+ return prioritizedGenes.includes(data.gene) && settings.rings.nonExonicFilterValues.includes(ViewModelMapper.snvClassLayer[data.mClass]);
508
+ } else {
509
+ return settings.rings.nonExonicFilterValues.includes(ViewModelMapper.snvClassLayer[data.mClass]);
510
+ }
511
+ };
512
+ this.snvRingFilter = (data) => {
513
+ if (prioritizedGenes.length > 0 && this.settings.Disco.prioritizeGeneLabelsByGeneSets) {
514
+ return prioritizedGenes.includes(data.gene) && settings.rings.snvRingFilters.includes(ViewModelMapper.snvClassLayer[data.mClass]);
515
+ } else {
516
+ return settings.rings.snvRingFilters.includes(ViewModelMapper.snvClassLayer[data.mClass]);
517
+ }
518
+ };
519
+ this.dataObjectMapper = new DataObjectMapper(sample, prioritizedGenes);
520
+ }
521
+ map(data) {
522
+ const dataArray = [];
523
+ this.filteredSnvCountByChr.clear();
524
+ this.hasWaterfallEligibleChromosome = false;
525
+ this.mutationWaterfallData = [];
526
+ this.mutationWaterfallInnerRadius = 0;
527
+ this.mutationWaterfallRangeMin = Infinity;
528
+ this.mutationWaterfallRangeMax = -Infinity;
529
+ data.forEach((dObject) => {
530
+ const index = this.reference.chromosomesOrder.indexOf(dObject.chr);
531
+ const indexA = this.reference.chromosomesOrder.indexOf(dObject.chrA);
532
+ const indexB = this.reference.chromosomesOrder.indexOf(dObject.chrB);
533
+ if (dObject.dt == dtsnvindel) {
534
+ if (index != -1 && this.snvData.length < this.settings.snv.maxMutationCount) {
535
+ const pos = dObject.pos ?? dObject.position;
536
+ const chrSize = this.reference.chromosomes[index].size;
537
+ if (Number.isFinite(pos) && pos >= 0 && pos <= chrSize) {
538
+ this.addData(dObject, dataArray);
539
+ } else {
540
+ this.invalidEntries.push({ dataType: "SNV", reason: `Position ${pos} outside of ${dObject.chr}` });
541
+ }
542
+ } else if (index == -1) {
543
+ if (!this.excludedChromosomes.includes(dObject.chr)) {
544
+ this.invalidEntries.push({ dataType: "SNV", reason: `Unknown chr ${dObject.chr}` });
545
+ }
546
+ }
547
+ } else if (dObject.dt == dtfusionrna || dObject.dt == dtsv) {
548
+ if (indexA != -1 && indexB != -1) {
549
+ const posA = dObject.posA;
550
+ const posB = dObject.posB;
551
+ const chrSizeA = this.reference.chromosomes[indexA].size;
552
+ const chrSizeB = this.reference.chromosomes[indexB].size;
553
+ if (Number.isFinite(posA) && Number.isFinite(posB) && posA >= 0 && posA <= chrSizeA && posB >= 0 && posB <= chrSizeB) {
554
+ this.addData(dObject, dataArray);
555
+ } else {
556
+ const reasonParts = [];
557
+ if (!(Number.isFinite(posA) && posA >= 0 && posA <= chrSizeA))
558
+ reasonParts.push(`Position ${posA} outside of ${dObject.chrA}`);
559
+ if (!(Number.isFinite(posB) && posB >= 0 && posB <= chrSizeB))
560
+ reasonParts.push(`Position ${posB} outside of ${dObject.chrB}`);
561
+ this.invalidEntries.push({ dataType: "Fusion", reason: reasonParts.join("; ") });
562
+ }
563
+ } else {
564
+ const missing = [];
565
+ if (indexA == -1 && !this.excludedChromosomes.includes(dObject.chrA)) missing.push(dObject.chrA);
566
+ if (indexB == -1 && !this.excludedChromosomes.includes(dObject.chrB)) missing.push(dObject.chrB);
567
+ if (missing.length) this.invalidEntries.push({ dataType: "Fusion", reason: "Unknown chr in fusion" });
568
+ }
569
+ } else if ([dtcnv, dtloh].includes(Number(dObject.dt))) {
570
+ const idx = this.reference.chromosomesOrder.indexOf(dObject.chr);
571
+ if (dObject.chr && idx != -1) {
572
+ const chrSize = this.reference.chromosomes[idx].size;
573
+ const start = dObject.start;
574
+ const stop = dObject.stop;
575
+ if (Number.isFinite(start) && Number.isFinite(stop) && start >= 0 && stop <= chrSize && start <= stop) {
576
+ this.addData(dObject, dataArray);
577
+ } else {
578
+ this.invalidEntries.push({
579
+ dataType: dObject.dt == dtcnv ? "CNV" : "LOH",
580
+ reason: `Position ${start}-${stop} outside of ${dObject.chr}`
581
+ });
582
+ }
583
+ } else {
584
+ if (!this.excludedChromosomes.includes(dObject.chr)) {
585
+ this.invalidEntries.push({
586
+ dataType: dObject.dt == dtcnv ? "CNV" : "LOH",
587
+ reason: `Unknown chr ${dObject.chr}`
588
+ });
589
+ }
590
+ }
591
+ } else {
592
+ throw Error("Unknown mutation type!");
593
+ }
594
+ });
595
+ const sortedData = dataArray.sort(this.compareData);
596
+ if (this.settings.rings.nonExonicRingEnabled) {
597
+ sortedData.forEach((data2) => {
598
+ this.filterNonExonicSnvData(data2);
599
+ });
600
+ }
601
+ if (this.nonExonicSnvData.length > 0) {
602
+ this.nonExonicInnerRadius = this.lastInnerRadious - this.settings.rings.nonExonicRingWidth;
603
+ this.lastInnerRadious = this.nonExonicInnerRadius;
604
+ }
605
+ sortedData.forEach((data2) => {
606
+ this.filterSnvs(data2);
607
+ });
608
+ this.hasWaterfallEligibleChromosome = Array.from(this.filteredSnvCountByChr.values()).some((count) => count >= 2);
609
+ if (this.settings.Disco.mutationWaterfallPlot && this.hasWaterfallEligibleChromosome) {
610
+ this.prepareMutationWaterfallData();
611
+ }
612
+ sortedData.forEach((data2) => {
613
+ this.filterLohs(data2);
614
+ });
615
+ if (this.lohData.length > 0) {
616
+ this.lohInnerRadius = this.lastInnerRadious - this.settings.rings.lohRingWidth;
617
+ this.lastInnerRadious = this.lohInnerRadius;
618
+ }
619
+ sortedData.forEach((data2) => {
620
+ this.filterCnvs(data2);
621
+ });
622
+ if (this.cnvData.length > 0) {
623
+ this.cnvInnerRadius = this.lastInnerRadious - this.settings.rings.cnvRingWidth;
624
+ this.lastInnerRadious = this.cnvInnerRadius;
625
+ this.cappedCnvMaxAbsValue = Math.min(
626
+ this.settings.Disco.cnvCapping,
627
+ Math.max(
628
+ Math.abs(_DataMapper.capMaxValue(this.cnvLossMaxValue, this.gainCapped, this.lossCapped)),
629
+ Math.abs(_DataMapper.capMaxValue(this.cnvGainMaxValue, this.gainCapped, this.lossCapped))
630
+ )
631
+ );
632
+ const percentilePair = new PercentileMapper().map(
633
+ this.cnvData.map((data2) => data2.value),
634
+ this.settings.Disco.cnvPercentile
635
+ );
636
+ this.percentilePositive = _DataMapper.capMaxValue(percentilePair.positive, this.gainCapped, this.lossCapped);
637
+ this.percentileNegative = _DataMapper.capMaxValue(percentilePair.negative, this.gainCapped, this.lossCapped);
638
+ this.cnvMaxPercentileAbs = Math.min(
639
+ this.settings.Disco.cnvCapping,
640
+ Math.max(this.percentilePositive, Math.abs(this.percentileNegative))
641
+ );
642
+ }
643
+ sortedData.forEach((data2) => {
644
+ this.filterFusion(data2);
645
+ });
646
+ if (this.fusionData.length > 0) {
647
+ this.fusionRadius = this.lastInnerRadious;
648
+ }
649
+ const dataHolder = {
650
+ labelData: this.labelData,
651
+ nonExonicSnvData: this.nonExonicSnvData,
652
+ nonExonicInnerRadius: this.nonExonicInnerRadius,
653
+ snvRingDataMap: this.snvRingDataMap,
654
+ snvInnerRadius: this.snvInnerRadius,
655
+ snvData: this.snvData,
656
+ bpx: this.bpx,
657
+ onePxArcAngle: this.onePxArcAngle,
658
+ filteredSnvData: this.filteredSnvData,
659
+ lohData: this.lohData,
660
+ lohInnerRadius: this.lohInnerRadius,
661
+ cnvData: this.cnvData,
662
+ cnvInnerRadius: this.cnvInnerRadius,
663
+ fusionData: this.fusionData,
664
+ fusionRadius: this.fusionRadius,
665
+ hasPrioritizedGenes: this.hasPrioritizedGenes,
666
+ hasWaterfallEligibleChromosome: this.hasWaterfallEligibleChromosome,
667
+ cnvGainMaxValue: this.cnvGainMaxValue,
668
+ cnvLossMaxValue: this.cnvLossMaxValue,
669
+ cappedCnvMaxAbsValue: this.cappedCnvMaxAbsValue,
670
+ percentilePositive: this.percentilePositive,
671
+ percentileNegative: this.percentileNegative,
672
+ cnvMaxPercentileAbs: this.cnvMaxPercentileAbs,
673
+ lohMaxValue: this.lohMaxValue,
674
+ lohMinValue: this.lohMinValue,
675
+ mutationWaterfallData: this.mutationWaterfallData,
676
+ mutationWaterfallInnerRadius: this.mutationWaterfallInnerRadius,
677
+ mutationWaterfallLogRange: this.mutationWaterfallData.length ? { min: this.mutationWaterfallRangeMin, max: this.mutationWaterfallRangeMax } : void 0,
678
+ invalidDataInfo: {
679
+ entries: this.invalidEntries,
680
+ errorMsg: `Entries listed above were skipped due to invalid or unsupported chromosome information.`
681
+ }
682
+ };
683
+ return dataHolder;
684
+ }
685
+ addData(dObject, dataArray) {
686
+ const instance = this.dataObjectMapper.map(dObject);
687
+ if (instance.isPrioritized) {
688
+ this.hasPrioritizedGenes = true;
689
+ }
690
+ dataArray.push(instance);
691
+ }
692
+ filterNonExonicSnvData(data) {
693
+ if (this.snvFilter(data)) {
694
+ if (this.settings.rings.nonExonicRingEnabled && this.nonExonicFilter(data)) {
695
+ this.nonExonicSnvData.push(data);
696
+ }
697
+ }
698
+ }
699
+ filterSnvs(data) {
700
+ if (this.snvFilter(data)) {
701
+ this.snvData.push(data);
702
+ if (this.snvRingFilter(data)) {
703
+ if (this.snvInnerRadius == 0) {
704
+ this.snvInnerRadius = this.lastInnerRadious - this.settings.rings.snvRingWidth;
705
+ this.lastInnerRadious = this.snvInnerRadius;
706
+ this.bpx = Math.floor(this.reference.totalSize / (this.reference.totalChromosomesAngle * this.snvInnerRadius));
707
+ this.onePxArcAngle = 1 / this.snvInnerRadius;
708
+ }
709
+ this.filteredSnvData.push(data);
710
+ this.labelData.push(data);
711
+ const currentCount = this.filteredSnvCountByChr.get(data.chr) || 0;
712
+ this.filteredSnvCountByChr.set(data.chr, currentCount + 1);
713
+ const arcAngle = this.calculateArcAngle(data);
714
+ let dataArray = this.snvRingDataMap.get(arcAngle);
715
+ if (!dataArray) {
716
+ dataArray = new Array();
717
+ }
718
+ dataArray.push(data);
719
+ this.snvRingDataMap.set(arcAngle, dataArray);
720
+ }
721
+ }
722
+ }
723
+ filterFusion(data) {
724
+ if (this.fusionFilter(data)) {
725
+ data.isPrioritized = true;
726
+ this.fusionData.push(data);
727
+ this.labelData.push(data);
728
+ }
729
+ }
730
+ filterLohs(data) {
731
+ if (this.lohFilter(data)) {
732
+ if (this.lohMaxValue == void 0 || this.lohMaxValue < data.value) {
733
+ this.lohMaxValue = data.segmean;
734
+ }
735
+ if (this.lohMinValue == void 0 || this.lohMinValue > data.value) {
736
+ this.lohMinValue = data.segmean;
737
+ }
738
+ this.lohData.push(data);
739
+ }
740
+ }
741
+ filterCnvs(data) {
742
+ if (this.cnvFilter(data)) {
743
+ if (!data.chr || this.reference.chromosomesOrder.indexOf(data.chr) == -1) {
744
+ return;
745
+ }
746
+ if (this.cnvGainMaxValue == void 0 || this.cnvGainMaxValue < data.value) {
747
+ this.cnvGainMaxValue = data.value;
748
+ }
749
+ if (this.cnvLossMaxValue == void 0 || this.cnvLossMaxValue > data.value) {
750
+ this.cnvLossMaxValue = data.value;
751
+ }
752
+ this.cnvData.push(data);
753
+ }
754
+ }
755
+ prepareMutationWaterfallData() {
756
+ this.mutationWaterfallInnerRadius = this.lastInnerRadious - this.settings.rings.mutationWaterfallRingWidth;
757
+ this.lastInnerRadious = this.mutationWaterfallInnerRadius;
758
+ const groupedSnvs = /* @__PURE__ */ new Map();
759
+ const firstMutationByChr = [];
760
+ for (const snv of this.filteredSnvData) {
761
+ const list = groupedSnvs.get(snv.chr) || [];
762
+ list.push(snv);
763
+ groupedSnvs.set(snv.chr, list);
764
+ }
765
+ for (const [, snvs] of groupedSnvs) {
766
+ if (snvs.length < 2) continue;
767
+ snvs.sort((a, b) => a.position - b.position);
768
+ firstMutationByChr.push({
769
+ chr: snvs[0].chr,
770
+ position: snvs[0].position,
771
+ logDistance: 0
772
+ // placeholder updated after range computed
773
+ });
774
+ for (let i = 1; i < snvs.length; i++) {
775
+ const prev = snvs[i - 1];
776
+ const curr = snvs[i];
777
+ const distance = Math.max(1, Math.abs(curr.position - prev.position));
778
+ const logDistance = Math.log10(distance);
779
+ this.mutationWaterfallData.push({
780
+ chr: curr.chr,
781
+ position: curr.position,
782
+ logDistance
783
+ });
784
+ if (logDistance < this.mutationWaterfallRangeMin) {
785
+ this.mutationWaterfallRangeMin = logDistance;
786
+ }
787
+ if (logDistance > this.mutationWaterfallRangeMax) {
788
+ this.mutationWaterfallRangeMax = logDistance;
789
+ }
790
+ }
791
+ }
792
+ if (!this.mutationWaterfallData.length) {
793
+ this.mutationWaterfallRangeMin = 0;
794
+ this.mutationWaterfallRangeMax = 0;
795
+ }
796
+ const topLogDistance = this.mutationWaterfallRangeMax;
797
+ for (const first of firstMutationByChr) {
798
+ this.mutationWaterfallData.push({
799
+ ...first,
800
+ logDistance: topLogDistance
801
+ });
802
+ }
803
+ }
804
+ calculateArcAngle(data) {
805
+ const currentChromosome = this.reference.chromosomes[this.reference.chromosomesOrder.findIndex((chromosomeOrder) => data.chr == chromosomeOrder)];
806
+ const dataAnglePos = Math.floor(data.position / this.bpx);
807
+ return currentChromosome.startAngle + dataAnglePos * this.onePxArcAngle;
808
+ }
809
+ static capMaxValue(value, gainCapped, lossCapped) {
810
+ if (value && Math.sign(value) == 1) {
811
+ return value > gainCapped ? gainCapped : value;
812
+ }
813
+ if (Math.sign(value) == -1) {
814
+ return value < lossCapped ? lossCapped : value;
815
+ }
816
+ return 0;
817
+ }
818
+ static capMinValue(value, capMinValue = 1) {
819
+ if (Math.sign(value) == 1) {
820
+ return value > capMinValue ? value : capMinValue;
821
+ }
822
+ if (Math.sign(value) == -1) {
823
+ return value < -1 * capMinValue ? value : -1 * capMinValue;
824
+ }
825
+ return 1;
826
+ }
827
+ };
828
+
829
+ // plots/disco/legend/Legend.ts
830
+ var Legend = class {
831
+ constructor(snvTitle, cnvTitle, lohTitle, fusionTitle, cnvPercentile, cnvCutoffmode, snvClassMap, cnvClassMap, cnvRenderingType, fusionLegend, discoInteractions, lohLegend, mutationWaterfallLegend) {
832
+ this.snvTitle = snvTitle;
833
+ this.cnvTitle = cnvTitle;
834
+ this.lohTitle = lohTitle;
835
+ this.fusionTitle = fusionTitle;
836
+ this.cnvPercentile = cnvPercentile;
837
+ this.cnvCutoffMode = cnvCutoffmode;
838
+ this.snvClassMap = snvClassMap;
839
+ this.cnvClassMap = cnvClassMap;
840
+ this.cnvRenderingType = cnvRenderingType;
841
+ this.lohLegend = lohLegend;
842
+ this.fusionLegend = fusionLegend;
843
+ this.discoInteractions = discoInteractions;
844
+ this.mutationWaterfallLegend = mutationWaterfallLegend;
845
+ }
846
+ legendCount() {
847
+ return (this.snvClassMap.size > 0 ? 1 : 0) + (this.cnvClassMap.size > 0 ? 1 : 0) + (this.lohLegend ? 1 : 0) + (this.fusionLegend ? 1 : 0) + (this.mutationWaterfallLegend ? 1 : 0);
848
+ }
849
+ };
850
+
851
+ // plots/disco/fusion/Fusion.ts
852
+ var Fusion = class {
853
+ constructor(source, target, genes, count, endpts) {
854
+ this.source = source;
855
+ this.target = target;
856
+ this.genes = genes;
857
+ this.count = count;
858
+ this.endpts = endpts;
859
+ }
860
+ };
861
+
862
+ // plots/disco/fusion/FusionSubgroup.ts
863
+ var FusionSubgroup = class {
864
+ constructor(startAngle, endAngle, radius, gene, value, genes, positionInChromosome, strand) {
865
+ this.startAngle = startAngle;
866
+ this.endAngle = endAngle;
867
+ this.radius = radius;
868
+ this.gene = gene;
869
+ this.value = value;
870
+ this.genes = genes;
871
+ this.positionInChromosome = positionInChromosome;
872
+ this.strand = strand;
873
+ }
874
+ };
875
+
876
+ // plots/disco/fusion/FusionMapper.ts
877
+ var FusionMapper = class {
878
+ constructor(radius, sampleName, reference) {
879
+ this.radius = radius;
880
+ this.sampleName = sampleName;
881
+ this.reference = reference;
882
+ }
883
+ map(fusionData) {
884
+ const fusions = [];
885
+ fusionData.forEach((data) => {
886
+ const genes = /* @__PURE__ */ new Set();
887
+ genes.add(data.geneA);
888
+ genes.add(data.geneB);
889
+ const startAngle = this.calculateStartAngle(data.chrA, data.posA);
890
+ const endAngle = this.calculateEndAngle(data.chrA, data.posA);
891
+ if (startAngle === null || endAngle === null) return;
892
+ const source = new FusionSubgroup(
893
+ startAngle,
894
+ endAngle,
895
+ this.radius,
896
+ data.geneA,
897
+ data.value,
898
+ genes,
899
+ {
900
+ chromosome: data.chrA,
901
+ position: data.posA
902
+ },
903
+ data.strandA
904
+ );
905
+ let target;
906
+ if (data.chrB && data.posB) {
907
+ const startAngle2 = this.calculateStartAngle(data.chrB, data.posB);
908
+ const endAngle2 = this.calculateEndAngle(data.chrB, data.posB);
909
+ if (startAngle2 === null || endAngle2 === null) return;
910
+ target = new FusionSubgroup(
911
+ startAngle2,
912
+ endAngle2,
913
+ this.radius,
914
+ data.geneB,
915
+ data.value,
916
+ genes,
917
+ {
918
+ chromosome: data.chrB,
919
+ position: data.posB
920
+ },
921
+ data.strandB
922
+ );
923
+ }
924
+ const fusion = new Fusion(source, target, "genes", -1, "Endpoints");
925
+ fusions.push(fusion);
926
+ });
927
+ return fusions;
928
+ }
929
+ calculateStartAngle(chr, pos) {
930
+ const index = this.reference.chromosomesOrder.indexOf(chr);
931
+ if (index === -1) return null;
932
+ const chromosome = this.reference.chromosomes[index];
933
+ return chromosome.startAngle + (chromosome.endAngle - chromosome.startAngle) * (Number(pos) / chromosome.size) - 0.01;
934
+ }
935
+ calculateEndAngle(chr, pos) {
936
+ const index = this.reference.chromosomesOrder.indexOf(chr);
937
+ if (index === -1) return null;
938
+ const chromosome = this.reference.chromosomes[index];
939
+ return 0.01 + chromosome.startAngle + (chromosome.endAngle - chromosome.startAngle) * (Number(pos) / chromosome.size);
940
+ }
941
+ };
942
+
943
+ // plots/disco/loh/GradientColorProvider.ts
944
+ var GradientColorProvider = class {
945
+ static provide(value) {
946
+ const clampedValue = Math.min(Math.max(value, 0), 1);
947
+ const colorValue = Math.round(clampedValue * 255);
948
+ return `rgb(${colorValue}, ${colorValue}, ${colorValue})`;
949
+ }
950
+ };
951
+
952
+ // plots/disco/loh/LohLegend.ts
953
+ var LohLegend = class {
954
+ constructor(minValue, maxValue) {
955
+ this.minValue = minValue;
956
+ this.maxValue = maxValue;
957
+ this.colorStartValue = GradientColorProvider.provide(minValue);
958
+ this.colorEndValue = GradientColorProvider.provide(maxValue);
959
+ }
960
+ };
961
+
962
+ // plots/disco/viewmodel/ViewModel.ts
963
+ var ViewModel = class {
964
+ constructor(settings, rings, legend, fusions, dataHolder, genesetName, snvDataLengthAll) {
965
+ this.settings = settings;
966
+ this.rings = rings;
967
+ this.legend = legend;
968
+ this.fusions = fusions;
969
+ this.genesetName = genesetName;
970
+ const tempHolder = select_default("body").append("div").style("position", "absolute").style("visibility", "hidden");
971
+ const tempSvg = tempHolder.append("svg");
972
+ const labels = rings.labelsRing?.elementsToDisplay?.map((l) => l.text) || [];
973
+ const maxLabelSpace = getMaxLabelWidth(tempSvg, labels);
974
+ tempHolder.remove();
975
+ this.width = 2 * (this.settings.horizontalPadding + this.settings.rings.labelLinesInnerRadius + this.settings.rings.labelsToLinesDistance + maxLabelSpace);
976
+ this.height = 2 * (this.settings.rings.labelLinesInnerRadius + this.settings.rings.labelsToLinesDistance + this.settings.verticalPadding + this.settings.label.fontSize * 2 + maxLabelSpace);
977
+ this.legendHeight = this.calculateLegendHeight(legend);
978
+ this.snvDataLength = dataHolder.snvData.length;
979
+ this.filteredSnvDataLength = dataHolder.filteredSnvData.length;
980
+ this.snvDataLengthAll = snvDataLengthAll;
981
+ this.cnvMaxValue = dataHolder.cnvGainMaxValue;
982
+ this.cnvMinValue = dataHolder.cnvLossMaxValue;
983
+ this.cappedCnvMaxAbsValue = dataHolder.cappedCnvMaxAbsValue;
984
+ this.negativePercentile = dataHolder.percentileNegative;
985
+ this.positivePercentile = dataHolder.percentilePositive;
986
+ this.invalidDataInfo = dataHolder.invalidDataInfo;
987
+ this.canShowMutationWaterfallPlot = dataHolder.hasWaterfallEligibleChromosome;
988
+ }
989
+ getElements(ringType) {
990
+ switch (ringType) {
991
+ case 0 /* CHROMOSOME */:
992
+ return this.rings.chromosomesRing ? this.rings.chromosomesRing.elements : [];
993
+ case 1 /* LABEL */:
994
+ return this.rings.labelsRing.elementsToDisplay;
995
+ case 2 /* NONEXONICSNV */:
996
+ return this.rings.nonExonicArcRing ? this.rings.nonExonicArcRing.elements : [];
997
+ case 3 /* SNV */:
998
+ return this.rings.snvArcRing ? this.rings.snvArcRing.elements : [];
999
+ case 5 /* CNV */:
1000
+ return this.rings.cnvArcRing ? this.rings.cnvArcRing.elements : [];
1001
+ case 6 /* LOH */:
1002
+ return this.rings.lohArcRing ? this.rings.lohArcRing.elements : [];
1003
+ case 4 /* MUTATION_WATERFALL */:
1004
+ return this.rings.mutationWaterfallRing ? this.rings.mutationWaterfallRing.elements : [];
1005
+ default:
1006
+ throw new Error(`ringType ${ringType} not defined`);
1007
+ }
1008
+ }
1009
+ getCollisions(ringType) {
1010
+ if (ringType == 1 /* LABEL */) {
1011
+ return this.rings.labelsRing.collisions;
1012
+ } else {
1013
+ return void 0;
1014
+ }
1015
+ }
1016
+ calculateLegendHeight(legend) {
1017
+ const rawHeight = this.settings.legend.rowHeight;
1018
+ return rawHeight * legend.legendCount();
1019
+ }
1020
+ };
1021
+
1022
+ // plots/disco/ring/Ring.ts
1023
+ var Ring = class {
1024
+ constructor(innerRadius, width, elements) {
1025
+ this.innerRadius = innerRadius;
1026
+ this.outerRadius = innerRadius + width;
1027
+ this.width = width;
1028
+ this.elements = elements;
1029
+ }
1030
+ };
1031
+
1032
+ // plots/disco/label/MLabel.ts
1033
+ var MLabel = class _MLabel {
1034
+ /**
1035
+ * The Singleton's constructor should always be private to prevent direct
1036
+ * construction calls with the `new` operator.
1037
+ */
1038
+ constructor() {
1039
+ const mlabel = {};
1040
+ for (const key in mclass) {
1041
+ mlabel[mclass[key].label] = mclass[key];
1042
+ mlabel[key] = mclass[key];
1043
+ }
1044
+ this.mlabel = mlabel;
1045
+ }
1046
+ /**
1047
+ * The static method that controls the access to the singleton instance.
1048
+ *
1049
+ * This implementation let you subclass the Singleton class while keeping
1050
+ * just one instance of each subclass around.
1051
+ */
1052
+ static getInstance() {
1053
+ if (!_MLabel.instance) {
1054
+ _MLabel.instance = new _MLabel();
1055
+ }
1056
+ return _MLabel.instance;
1057
+ }
1058
+ };
1059
+
1060
+ // plots/disco/snv/SnvLegendElement.ts
1061
+ var SnvLegendElement = class {
1062
+ constructor(snvType, color, count) {
1063
+ this.snvType = snvType;
1064
+ this.color = color;
1065
+ this.count = count;
1066
+ }
1067
+ };
1068
+
1069
+ // plots/disco/snv/SnvArcsMapper.ts
1070
+ var SnvArcsMapper = class {
1071
+ constructor(svnInnerRadius, svnWidth, sampleName, reference) {
1072
+ this.snvClassMap = /* @__PURE__ */ new Map();
1073
+ this.svnInnerRadius = svnInnerRadius;
1074
+ this.svnWidth = svnWidth;
1075
+ this.sampleName = sampleName;
1076
+ this.reference = reference;
1077
+ this.bpx = Math.floor(this.reference.totalSize / (this.reference.totalChromosomesAngle * svnInnerRadius));
1078
+ this.onePxArcAngle = 1 / svnInnerRadius;
1079
+ }
1080
+ map(exonicSnvDataMap) {
1081
+ const snvArray = [];
1082
+ for (const angle of exonicSnvDataMap.keys()) {
1083
+ const array = exonicSnvDataMap.get(angle);
1084
+ if (array) {
1085
+ const arraySize = array.length;
1086
+ for (let i = 0; i < array.length; i++) {
1087
+ const data = array[i];
1088
+ const snvLegendElement = this.snvClassMap.get(data.mClass);
1089
+ if (snvLegendElement) {
1090
+ this.snvClassMap.set(data.mClass, this.createSnvLegend(data.mClass, ++snvLegendElement.count));
1091
+ } else {
1092
+ this.snvClassMap.set(data.mClass, this.createSnvLegend(data.mClass, 1));
1093
+ }
1094
+ const startAngle = angle;
1095
+ const endAngle = angle + this.onePxArcAngle;
1096
+ const mLabel = MLabel.getInstance().mlabel ? MLabel.getInstance().mlabel[data.mClass] : void 0;
1097
+ const arc = {
1098
+ startAngle,
1099
+ endAngle,
1100
+ innerRadius: this.svnInnerRadius + i * this.svnWidth / arraySize,
1101
+ outerRadius: this.svnInnerRadius + (i + 1) * this.svnWidth / arraySize,
1102
+ color: mLabel.color,
1103
+ text: data.gene,
1104
+ dataClass: mLabel.label,
1105
+ mname: data.mname,
1106
+ chr: data.chr,
1107
+ pos: data.position,
1108
+ vafs: data.vafs,
1109
+ sampleName: [data.sampleName]
1110
+ };
1111
+ snvArray.push(arc);
1112
+ }
1113
+ }
1114
+ }
1115
+ return snvArray;
1116
+ }
1117
+ createSnvLegend(dataClass, count) {
1118
+ const mClass = MLabel.getInstance().mlabel[dataClass];
1119
+ return new SnvLegendElement(mClass.label, mClass.color, count);
1120
+ }
1121
+ };
1122
+
1123
+ // plots/disco/cnv/CnvLegend.ts
1124
+ var CnvLegend = class {
1125
+ constructor(text, cnvType, color, value) {
1126
+ this.text = text;
1127
+ this.cnvType = cnvType;
1128
+ this.color = color;
1129
+ this.value = value;
1130
+ }
1131
+ };
1132
+
1133
+ // plots/disco/cnv/CnvColorProvider.ts
1134
+ var CnvColorProvider = class {
1135
+ static getColor(value, settings, cnvMaxPercentileAbs = 0) {
1136
+ const cnv = settings.cnv;
1137
+ const gainCapped = settings.Disco.cnvRenderingType == "heatmap" /* heatmap */ ? settings.Disco.cnvCapping : cnvMaxPercentileAbs;
1138
+ const lossCapped = settings.Disco.cnvRenderingType == "heatmap" /* heatmap */ ? -1 * settings.Disco.cnvCapping : -1 * cnvMaxPercentileAbs;
1139
+ if (value < lossCapped) {
1140
+ return cnv.cappedLossColor;
1141
+ } else if (value >= lossCapped && value <= 0) {
1142
+ return cnv.lossColor;
1143
+ } else if (value > 0 && value <= gainCapped) {
1144
+ return cnv.ampColor;
1145
+ } else {
1146
+ return cnv.cappedAmpColor;
1147
+ }
1148
+ }
1149
+ };
1150
+
1151
+ // plots/disco/cnv/CnvArcsMapper.ts
1152
+ var CnvArcsMapper = class {
1153
+ constructor(cnvInnerRadius, cnvWidth, settings, sampleName, reference, cnvMaxValue = 0, cnvMinValue = 0, cnvMaxAbsValue = 0, cnvAbsPercentile = 0, cnvUnit = "", cnvRenderingType) {
1154
+ this.cnvClassMap = /* @__PURE__ */ new Map();
1155
+ this.cnvInnerRadius = cnvInnerRadius;
1156
+ this.cnvWidth = cnvWidth;
1157
+ this.settings = settings;
1158
+ this.sampleName = sampleName;
1159
+ this.reference = reference;
1160
+ this.cnvMaxValue = cnvMaxValue;
1161
+ this.cnvMinValue = cnvMinValue;
1162
+ this.cnvMaxAbsValue = cnvMaxAbsValue;
1163
+ this.cnvAbsPercentile = cnvAbsPercentile;
1164
+ this.cnvUnit = cnvUnit;
1165
+ this.cnvRenderingType = cnvRenderingType;
1166
+ this.gainCapped = Math.min(cnvAbsPercentile, this.settings.Disco.cnvCapping);
1167
+ this.lossCapped = -1 * Math.min(cnvAbsPercentile, this.settings.Disco.cnvCapping);
1168
+ this.lossOnly = cnvMaxValue <= 0;
1169
+ this.gainOnly = cnvMinValue >= 0;
1170
+ this.onePxArcAngle = 1 / this.cnvInnerRadius;
1171
+ const gain = new CnvLegend(
1172
+ "Max",
1173
+ cnvMaxValue > 0 ? 1 /* Gain */ : 0 /* Loss */,
1174
+ this.getColor(cnvMaxValue),
1175
+ cnvMaxValue
1176
+ );
1177
+ const loss = new CnvLegend(
1178
+ "Min",
1179
+ cnvMinValue > 0 ? 1 /* Gain */ : 0 /* Loss */,
1180
+ this.getColor(cnvMinValue),
1181
+ cnvMinValue
1182
+ );
1183
+ const cap = new CnvLegend(
1184
+ "Capping",
1185
+ 0 /* Loss */,
1186
+ this.getColor(cnvMinValue > 0 ? cnvMinValue : cnvMaxValue),
1187
+ this.settings.Disco.cnvCapping
1188
+ );
1189
+ this.cnvClassMap.set(1 /* Gain */, gain);
1190
+ this.cnvClassMap.set(0 /* Loss */, loss);
1191
+ this.cnvClassMap.set(2 /* Cap */, cap);
1192
+ }
1193
+ map(arcData) {
1194
+ const arcs = [];
1195
+ arcData.forEach((data) => {
1196
+ let startAngle = this.calculateStartAngle(data);
1197
+ let endAngle = this.calculateEndAngle(data);
1198
+ if (startAngle === null || endAngle === null) return;
1199
+ if (endAngle - startAngle < this.onePxArcAngle) {
1200
+ const restAngle = this.onePxArcAngle - (endAngle - startAngle);
1201
+ startAngle = startAngle - restAngle / 2;
1202
+ endAngle = startAngle + restAngle / 2;
1203
+ }
1204
+ const innerRadius = this.calculateInnerRadius(data);
1205
+ const outerRadius = this.calculateOuterRadius(data);
1206
+ const color = this.getColor(data.value);
1207
+ const arc = {
1208
+ startAngle,
1209
+ endAngle,
1210
+ innerRadius,
1211
+ outerRadius,
1212
+ color,
1213
+ text: data.gene,
1214
+ chr: data.chr,
1215
+ start: data.start,
1216
+ stop: data.stop,
1217
+ value: data.value,
1218
+ unit: this.cnvUnit,
1219
+ sampleName: [this.sampleName]
1220
+ };
1221
+ arcs.push(arc);
1222
+ });
1223
+ return arcs;
1224
+ }
1225
+ calculateStartAngle(data) {
1226
+ const index = this.reference.chromosomesOrder.indexOf(data.chr);
1227
+ if (index == -1) return null;
1228
+ const chromosome = this.reference.chromosomes[index];
1229
+ return chromosome.startAngle + (chromosome.endAngle - chromosome.startAngle) * (Number(data.start) / chromosome.size);
1230
+ }
1231
+ calculateEndAngle(data) {
1232
+ const index = this.reference.chromosomesOrder.indexOf(data.chr);
1233
+ const chromosome = this.reference.chromosomes[index];
1234
+ return chromosome.startAngle + (chromosome.endAngle - chromosome.startAngle) * (Number(data.stop) / chromosome.size);
1235
+ }
1236
+ getColor(value) {
1237
+ return CnvColorProvider.getColor(value, this.settings, this.cnvAbsPercentile);
1238
+ }
1239
+ calculateInnerRadius(data) {
1240
+ if (this.cnvRenderingType == "heatmap" /* heatmap */) {
1241
+ return this.cnvInnerRadius;
1242
+ }
1243
+ if (this.gainOnly) {
1244
+ return this.cnvInnerRadius;
1245
+ }
1246
+ if (this.lossOnly) {
1247
+ const outerRadius = this.cnvInnerRadius + this.cnvWidth;
1248
+ return outerRadius + DataMapper.capMinValue(
1249
+ this.cnvWidth * DataMapper.capMaxValue(data.value, this.gainCapped, this.lossCapped) / this.cnvAbsPercentile
1250
+ );
1251
+ }
1252
+ const centerRadius = this.cnvInnerRadius + this.cnvWidth / 2;
1253
+ if (Math.sign(data.value) == 1) {
1254
+ return centerRadius;
1255
+ }
1256
+ if (Math.sign(data.value) == -1) {
1257
+ return centerRadius + DataMapper.capMinValue(
1258
+ DataMapper.capMaxValue(data.value, this.gainCapped, this.lossCapped) / this.cnvAbsPercentile * (this.cnvWidth / 2)
1259
+ );
1260
+ }
1261
+ return 1;
1262
+ }
1263
+ calculateOuterRadius(data) {
1264
+ const maxOuterRadius = this.cnvInnerRadius + this.cnvWidth;
1265
+ if (this.cnvRenderingType == "heatmap" /* heatmap */) {
1266
+ return maxOuterRadius;
1267
+ }
1268
+ if (this.gainOnly) {
1269
+ return this.cnvInnerRadius + DataMapper.capMinValue(
1270
+ this.cnvWidth * DataMapper.capMaxValue(data.value, this.gainCapped, this.lossCapped) / this.cnvAbsPercentile
1271
+ );
1272
+ }
1273
+ if (this.lossOnly) {
1274
+ return maxOuterRadius;
1275
+ }
1276
+ const centerRadius = this.cnvInnerRadius + this.cnvWidth / 2;
1277
+ if (Math.sign(data.value) == 1) {
1278
+ return centerRadius + DataMapper.capMinValue(
1279
+ DataMapper.capMaxValue(data.value, this.gainCapped, this.lossCapped) / this.cnvMaxAbsValue * (this.cnvWidth / 2)
1280
+ );
1281
+ }
1282
+ if (Math.sign(data.value) == -1) {
1283
+ return centerRadius;
1284
+ }
1285
+ return 1;
1286
+ }
1287
+ };
1288
+
1289
+ // plots/disco/label/Line.ts
1290
+ var Line = class {
1291
+ constructor(points, color) {
1292
+ this.points = new Array();
1293
+ this.points = points;
1294
+ this.color = color;
1295
+ }
1296
+ };
1297
+
1298
+ // plots/disco/label/LabelFactory.ts
1299
+ var LabelFactory = class {
1300
+ static createLabel(startAngle, endAngle, innerRadius, outerRadius, value, gene, color, dataClass, chr, position, isPrioritized = false, labelsToLinesGap, mutationTooltip, fusionTooltip) {
1301
+ const angle = (startAngle + endAngle) / 2;
1302
+ const ccAngle = angle - Math.PI / 2;
1303
+ const transform = `rotate(${angle * 180 / Math.PI - 90}) translate(${outerRadius})${angle > Math.PI ? "rotate(180)" : ""}`;
1304
+ const textAnchor = angle > Math.PI ? "end" : "";
1305
+ const r0 = innerRadius;
1306
+ const r1 = outerRadius - labelsToLinesGap;
1307
+ const points = [];
1308
+ const point0 = {
1309
+ x: r0 * Math.cos(ccAngle),
1310
+ y: r0 * Math.sin(ccAngle)
1311
+ };
1312
+ const point1 = {
1313
+ x: r1 * Math.cos(ccAngle),
1314
+ y: r1 * Math.sin(ccAngle)
1315
+ };
1316
+ points.push(point0);
1317
+ points.push(point1);
1318
+ const line = new Line(points, color);
1319
+ const label = {
1320
+ startAngle,
1321
+ endAngle,
1322
+ innerRadius,
1323
+ outerRadius,
1324
+ angle,
1325
+ value,
1326
+ text: gene,
1327
+ color,
1328
+ transform,
1329
+ textAnchor,
1330
+ ccAngle,
1331
+ line,
1332
+ isPrioritized,
1333
+ start: position,
1334
+ stop: position,
1335
+ chr,
1336
+ mutationsTooltip: mutationTooltip ? [mutationTooltip] : void 0,
1337
+ fusionTooltip: fusionTooltip ? [fusionTooltip] : void 0
1338
+ };
1339
+ return label;
1340
+ }
1341
+ static createMovedLabel(element, overlap) {
1342
+ const startAngle = element.startAngle + overlap;
1343
+ const endAngle = element.endAngle + overlap;
1344
+ const angle = (startAngle + endAngle) / 2;
1345
+ const ccAngle = angle - Math.PI / 2;
1346
+ const r0 = element.innerRadius;
1347
+ const r1 = element.outerRadius - 2;
1348
+ const dr = (r1 - r0) / 3;
1349
+ const cos0 = Math.cos(element.ccAngle);
1350
+ const sin0 = Math.sin(element.ccAngle);
1351
+ const cos1 = Math.cos(element.ccAngle + overlap);
1352
+ const sin1 = Math.sin(element.ccAngle + overlap);
1353
+ const points = [];
1354
+ const point0 = {
1355
+ x: r0 * cos0,
1356
+ y: r0 * sin0
1357
+ };
1358
+ const point1 = {
1359
+ x: (r0 + dr) * cos0,
1360
+ y: (r0 + dr) * sin0
1361
+ };
1362
+ const point2 = {
1363
+ x: (r0 + 2 * dr) * cos1,
1364
+ y: (r0 + 2 * dr) * sin1
1365
+ };
1366
+ const point3 = {
1367
+ x: (r0 + 3 * dr) * cos1,
1368
+ y: (r0 + 3 * dr) * sin1
1369
+ };
1370
+ points.push(point0);
1371
+ points.push(point1);
1372
+ points.push(point2);
1373
+ points.push(point3);
1374
+ const line = new Line(points, element.color);
1375
+ const transform = "rotate(" + (angle * 180 / Math.PI - 90) + ")translate(" + element.outerRadius + ")" + (angle > Math.PI ? "rotate(180)" : "");
1376
+ const textAnchor = angle > Math.PI ? "end" : "";
1377
+ const color = element.mutationsTooltip ? element.mutationsTooltip[0].color : element.fusionTooltip ? element.fusionTooltip[0].color : void 0;
1378
+ const label = {
1379
+ startAngle,
1380
+ endAngle,
1381
+ innerRadius: element.innerRadius,
1382
+ outerRadius: element.outerRadius,
1383
+ angle,
1384
+ value: element.value,
1385
+ text: element.text,
1386
+ transform,
1387
+ textAnchor,
1388
+ ccAngle,
1389
+ color,
1390
+ line,
1391
+ isPrioritized: element.isPrioritized,
1392
+ start: element.start,
1393
+ stop: element.stop,
1394
+ chr: element.chr,
1395
+ mutationsTooltip: element.mutationsTooltip,
1396
+ fusionTooltip: element.fusionTooltip
1397
+ };
1398
+ return label;
1399
+ }
1400
+ };
1401
+
1402
+ // plots/disco/label/LabelsMapper.ts
1403
+ var LabelsMapper = class {
1404
+ constructor(settings, sampleName, reference, cnvMaxPercentileAbs = 0) {
1405
+ this.labelMap = /* @__PURE__ */ new Map();
1406
+ this.settings = settings;
1407
+ this.sampleName = sampleName;
1408
+ this.reference = reference;
1409
+ this.cnvMaxPercentileAbs = cnvMaxPercentileAbs;
1410
+ }
1411
+ map(data, cnvData = []) {
1412
+ const innerRadius = this.settings.rings.labelLinesInnerRadius;
1413
+ const outerRadius = innerRadius + this.settings.rings.labelsToLinesDistance;
1414
+ data.forEach((data2) => {
1415
+ if (data2.dt == dtsnvindel) {
1416
+ const startAngle = this.calculateStartAngle(data2.chr, data2.position);
1417
+ const endAngle = this.calculateEndAngle(data2.chr, data2.position);
1418
+ if (startAngle === null || endAngle === null) return;
1419
+ const mLabel = MLabel.getInstance().mlabel ? MLabel.getInstance().mlabel[data2.mClass] : void 0;
1420
+ this.addLabelOrMutation(
1421
+ data2,
1422
+ data2.gene,
1423
+ data2.mname,
1424
+ startAngle,
1425
+ endAngle,
1426
+ innerRadius,
1427
+ outerRadius,
1428
+ mLabel.color,
1429
+ mLabel.label
1430
+ );
1431
+ }
1432
+ if (data2.dt == dtfusionrna) {
1433
+ const color = FusionColorProvider.getColor(data2.chrA, data2.chrB);
1434
+ if (data2.geneA) {
1435
+ const startAngleSource = this.calculateStartAngle(data2.chrA, data2.posA);
1436
+ const endAngleSource = this.calculateEndAngle(data2.chrA, data2.posA);
1437
+ if (startAngleSource === null || endAngleSource === null) return;
1438
+ this.addLabelOrFusion(
1439
+ data2,
1440
+ data2.geneA,
1441
+ data2.posA,
1442
+ startAngleSource,
1443
+ endAngleSource,
1444
+ innerRadius,
1445
+ outerRadius,
1446
+ color
1447
+ );
1448
+ }
1449
+ if (data2.geneB && data2.geneA != data2.geneB) {
1450
+ const startAngleTarget = this.calculateStartAngle(data2.chrB, data2.posB);
1451
+ const endAngleTarget = this.calculateEndAngle(data2.chrB, data2.posB);
1452
+ if (startAngleTarget == null || endAngleTarget == null) return;
1453
+ this.addLabelOrFusion(
1454
+ data2,
1455
+ data2.geneB,
1456
+ data2.posB,
1457
+ startAngleTarget,
1458
+ endAngleTarget,
1459
+ innerRadius,
1460
+ outerRadius,
1461
+ color
1462
+ );
1463
+ }
1464
+ }
1465
+ });
1466
+ const labelsArray = Array.from(this.labelMap.values());
1467
+ labelsArray.forEach((label) => {
1468
+ cnvData.forEach((cnv) => {
1469
+ if (label.stop >= cnv.start && cnv.stop >= label.start && label.chr == cnv.chr) {
1470
+ const mutation = {
1471
+ value: cnv.value,
1472
+ color: CnvColorProvider.getColor(cnv.value, this.settings, this.cnvMaxPercentileAbs),
1473
+ chr: cnv.chr,
1474
+ start: cnv.start,
1475
+ stop: cnv.stop
1476
+ };
1477
+ if (label.cnvTooltip) {
1478
+ label.cnvTooltip.push(mutation);
1479
+ } else {
1480
+ label.cnvTooltip = [];
1481
+ label.cnvTooltip.push(mutation);
1482
+ }
1483
+ }
1484
+ });
1485
+ });
1486
+ return Array.from(this.labelMap.values());
1487
+ }
1488
+ addLabelOrMutation(data, gene, mname, startAngle, endAngle, innerRadius, outerRadius, color, dataClass) {
1489
+ const label = this.labelMap.get(gene);
1490
+ const mutation = {
1491
+ mname,
1492
+ color,
1493
+ dataClass,
1494
+ chr: data.chr,
1495
+ position: data.position,
1496
+ vafs: data.vafs
1497
+ };
1498
+ if (!label) {
1499
+ this.labelMap.set(
1500
+ gene,
1501
+ LabelFactory.createLabel(
1502
+ startAngle,
1503
+ endAngle,
1504
+ innerRadius,
1505
+ outerRadius,
1506
+ data.value,
1507
+ gene,
1508
+ color,
1509
+ dataClass,
1510
+ data.chr,
1511
+ data.position,
1512
+ data.isPrioritized,
1513
+ this.settings.rings.labelsToLinesGap,
1514
+ mutation
1515
+ )
1516
+ );
1517
+ } else {
1518
+ if (label.mutationsTooltip) {
1519
+ label.start = Math.min(label.start, data.position);
1520
+ label.stop = Math.max(label.stop, data.position);
1521
+ label.mutationsTooltip.push(mutation);
1522
+ } else {
1523
+ label.mutationsTooltip = [];
1524
+ label.start = Math.min(label.start, data.position);
1525
+ label.stop = Math.max(label.stop, data.position);
1526
+ label.mutationsTooltip.push(mutation);
1527
+ }
1528
+ }
1529
+ }
1530
+ addLabelOrFusion(data, gene, position, startAngle, endAngle, innerRadius, outerRadius, color) {
1531
+ const label = this.labelMap.get(gene);
1532
+ const fusionTooltip = {
1533
+ color,
1534
+ chrA: data.chrA,
1535
+ chrB: data.chrB,
1536
+ posA: data.posA,
1537
+ posB: data.posB,
1538
+ geneA: data.geneA,
1539
+ geneB: data.geneB,
1540
+ strandA: data.strandA,
1541
+ strandB: data.strandB
1542
+ };
1543
+ if (!label) {
1544
+ this.labelMap.set(
1545
+ gene,
1546
+ LabelFactory.createLabel(
1547
+ startAngle,
1548
+ endAngle,
1549
+ innerRadius,
1550
+ outerRadius,
1551
+ data.value,
1552
+ gene,
1553
+ color,
1554
+ "Fusion transcript",
1555
+ data.chr,
1556
+ data.position,
1557
+ data.isPrioritized,
1558
+ this.settings.rings.labelsToLinesGap,
1559
+ void 0,
1560
+ fusionTooltip
1561
+ )
1562
+ );
1563
+ } else {
1564
+ if (label.fusionTooltip) {
1565
+ label.start = Math.min(label.start, position);
1566
+ label.stop = Math.max(label.stop, position);
1567
+ label.fusionTooltip.push(fusionTooltip);
1568
+ } else {
1569
+ label.fusionTooltip = [];
1570
+ label.start = Math.min(label.start, position);
1571
+ label.stop = Math.max(label.stop, position);
1572
+ label.fusionTooltip.push(fusionTooltip);
1573
+ }
1574
+ }
1575
+ }
1576
+ calculateStartAngle(chr, position) {
1577
+ const index = this.reference.chromosomesOrder.findIndex((element) => element == chr);
1578
+ if (index === -1) return null;
1579
+ const chromosome = this.reference.chromosomes[index];
1580
+ return chromosome.startAngle + (chromosome.endAngle - chromosome.startAngle) * (Number(position) / chromosome.size);
1581
+ }
1582
+ calculateEndAngle(chr, position) {
1583
+ const index = this.reference.chromosomesOrder.findIndex((element) => element == chr);
1584
+ if (index === -1) return null;
1585
+ const chromosome = this.reference.chromosomes[index];
1586
+ return chromosome.startAngle + (chromosome.endAngle - chromosome.startAngle) * (Number(position) / chromosome.size);
1587
+ }
1588
+ };
1589
+
1590
+ // plots/disco/label/Labels.ts
1591
+ var Labels = class extends Ring {
1592
+ constructor(settings, elements, hasPrioritizedGenes) {
1593
+ super(
1594
+ settings.rings.labelLinesInnerRadius,
1595
+ settings.rings.labelsToLinesDistance,
1596
+ elements.sort((a, b) => {
1597
+ return a.startAngle < b.startAngle ? -1 : a.startAngle > b.startAngle ? 1 : 0;
1598
+ })
1599
+ );
1600
+ this.elementsToDisplay = [];
1601
+ this.settings = settings;
1602
+ this.hasPrioritizedGenes = hasPrioritizedGenes;
1603
+ const circumference = 2 * Math.PI * (settings.rings.labelLinesInnerRadius + settings.rings.labelsToLinesDistance);
1604
+ this.overlapAngle = this.settings.label.overlapAngleFactor * this.settings.label.fontSize / circumference;
1605
+ this.calculateCollisions();
1606
+ }
1607
+ calculateCollisions() {
1608
+ this.collisions = [];
1609
+ let hasPrioritizedGenesList = [];
1610
+ hasPrioritizedGenesList = this.elements.filter((label) => label.isPrioritized);
1611
+ if (this.settings.label.prioritizeGeneLabelsByGeneSets) {
1612
+ this.elementsToDisplay = this.getLabelsWithPrioritizedGenes(hasPrioritizedGenesList);
1613
+ } else if (this.hasPrioritizedGenes) {
1614
+ const prioritizedGenesList = this.elements.filter((label) => label.isPrioritized);
1615
+ const filteredPrioritizedGenesList = this.getLabelsWithPrioritizedGenes(prioritizedGenesList);
1616
+ const withoutPrioritizedGenesList = this.elements.filter((label) => !label.isPrioritized);
1617
+ const combinedAndSortedList = [...withoutPrioritizedGenesList, ...filteredPrioritizedGenesList].sort(
1618
+ (a, b) => a.startAngle - b.startAngle
1619
+ );
1620
+ this.elementsToDisplay = this.getAllLabels(combinedAndSortedList);
1621
+ } else {
1622
+ this.elementsToDisplay = this.getLabelsWithPrioritizedGenes(this.elements);
1623
+ }
1624
+ }
1625
+ getLabelsWithPrioritizedGenes(elemenets) {
1626
+ const filteredList = [];
1627
+ let prev = { endAngle: 0 };
1628
+ elemenets.forEach((element, index) => {
1629
+ if (index == 0) {
1630
+ filteredList.push(element);
1631
+ prev = element;
1632
+ } else {
1633
+ const overlap = prev.endAngle - element.startAngle + this.overlapAngle;
1634
+ if (overlap > 0 && overlap < this.settings.label.maxDeltaAngle) {
1635
+ const labelCopy = LabelFactory.createMovedLabel(element, overlap);
1636
+ filteredList?.push(labelCopy);
1637
+ prev = labelCopy;
1638
+ }
1639
+ if (overlap <= 0) {
1640
+ filteredList.push(element);
1641
+ prev = element;
1642
+ }
1643
+ }
1644
+ });
1645
+ return filteredList;
1646
+ }
1647
+ getAllLabels(elemenets) {
1648
+ const filteredList = [];
1649
+ let prev = { endAngle: 0 };
1650
+ const elemenetsLength = elemenets.length;
1651
+ let lastCancerGeneLabelIndex = -1;
1652
+ for (let index = 0; index < elemenets.length; index++) {
1653
+ const element = elemenets[index];
1654
+ if (element.isPrioritized) {
1655
+ filteredList.push(element);
1656
+ lastCancerGeneLabelIndex = index;
1657
+ prev = element;
1658
+ continue;
1659
+ }
1660
+ if (index == 0) {
1661
+ if (elemenetsLength > 1) {
1662
+ if (this.isElementOverlappingNextCancerGene(elemenets, lastCancerGeneLabelIndex, element, 0)) {
1663
+ continue;
1664
+ }
1665
+ filteredList.push(element);
1666
+ prev = element;
1667
+ }
1668
+ continue;
1669
+ }
1670
+ const prevOverlap = prev.endAngle - element.startAngle + this.overlapAngle;
1671
+ if (prevOverlap > 0 && prevOverlap < this.settings.label.maxDeltaAngle) {
1672
+ if (index == length - 1) {
1673
+ filteredList.push(element);
1674
+ continue;
1675
+ }
1676
+ if (this.isElementOverlappingNextCancerGene(elemenets, lastCancerGeneLabelIndex, element, prevOverlap)) {
1677
+ continue;
1678
+ }
1679
+ const labelCopy = LabelFactory.createMovedLabel(element, prevOverlap);
1680
+ this.collisions?.push(labelCopy);
1681
+ filteredList.push(element);
1682
+ prev = labelCopy;
1683
+ }
1684
+ if (prevOverlap <= 0) {
1685
+ if (this.isElementOverlappingNextCancerGene(elemenets, lastCancerGeneLabelIndex, element, 0)) {
1686
+ continue;
1687
+ }
1688
+ filteredList.push(element);
1689
+ prev = element;
1690
+ }
1691
+ }
1692
+ return filteredList;
1693
+ }
1694
+ isElementOverlappingNextCancerGene(elemenets, lastCancerGeneLabelIndex, element, prevOverlap) {
1695
+ const nextLabelWithCancerGene = this.getNextLabelWithCancerGene(elemenets, lastCancerGeneLabelIndex);
1696
+ if (nextLabelWithCancerGene) {
1697
+ const nextOverlap = element.endAngle + prevOverlap - nextLabelWithCancerGene.startAngle + this.overlapAngle;
1698
+ if (nextOverlap > 0) {
1699
+ return true;
1700
+ }
1701
+ }
1702
+ return false;
1703
+ }
1704
+ getNextLabelWithCancerGene(elemenets, lastCancerGeneLabelIndex) {
1705
+ return elemenets.find((label, index) => label.isPrioritized && index > lastCancerGeneLabelIndex);
1706
+ }
1707
+ };
1708
+
1709
+ // plots/disco/snv/NonExonicSnvArcsMapper.ts
1710
+ var NonExonicSnvArcsMapper = class {
1711
+ constructor(nonExonicInnerRadius, nonExonicWidht, sampleName, reference) {
1712
+ this.nonExonicInnerRadius = nonExonicInnerRadius;
1713
+ this.nonExonicWidht = nonExonicWidht;
1714
+ this.sampleName = sampleName;
1715
+ this.reference = reference;
1716
+ this.onePxArcAngle = 1 / nonExonicInnerRadius;
1717
+ }
1718
+ map(arcData) {
1719
+ const innerRadius = this.nonExonicInnerRadius;
1720
+ const outerRadius = innerRadius + this.nonExonicWidht;
1721
+ const arcs = [];
1722
+ arcData.forEach((data) => {
1723
+ const mLabel = MLabel.getInstance().mlabel ? MLabel.getInstance().mlabel[data.mClass] : void 0;
1724
+ const startAngle = this.calculateStartAngle(data);
1725
+ const endAngle = this.calculateEndAngle(data);
1726
+ if (startAngle === null || endAngle === null) return;
1727
+ const arc = {
1728
+ startAngle,
1729
+ endAngle,
1730
+ innerRadius,
1731
+ outerRadius,
1732
+ color: mLabel.color,
1733
+ text: data.gene,
1734
+ dataClass: mLabel.label,
1735
+ mname: data.mname,
1736
+ chr: data.chr,
1737
+ pos: data.position,
1738
+ vafs: data.vafs,
1739
+ sampleName: [data.sampleName]
1740
+ };
1741
+ arcs.push(arc);
1742
+ });
1743
+ return arcs;
1744
+ }
1745
+ calculateStartAngle(data) {
1746
+ const index = this.reference.chromosomesOrder.indexOf(data.chr);
1747
+ if (index === -1) return null;
1748
+ const chromosome = this.reference.chromosomes[index];
1749
+ return chromosome.startAngle + (chromosome.endAngle - chromosome.startAngle) * (Number(data.position) / chromosome.size) - this.onePxArcAngle;
1750
+ }
1751
+ calculateEndAngle(data) {
1752
+ const index = this.reference.chromosomesOrder.indexOf(data.chr);
1753
+ const chromosome = this.reference.chromosomes[index];
1754
+ return this.onePxArcAngle + chromosome.startAngle + (chromosome.endAngle - chromosome.startAngle) * (Number(data.position) / chromosome.size);
1755
+ }
1756
+ };
1757
+
1758
+ // plots/disco/loh/LohArcMapper.ts
1759
+ var LohArcMapper = class {
1760
+ constructor(lohInnerRadius, lohWidth, sampleName, reference) {
1761
+ this.lohInnerRadius = lohInnerRadius;
1762
+ this.lohWidth = lohWidth;
1763
+ this.sampleName = sampleName;
1764
+ this.reference = reference;
1765
+ }
1766
+ map(arcData) {
1767
+ const arcs = [];
1768
+ arcData.forEach((data) => {
1769
+ const startAngle = this.calculateStartAngle(data);
1770
+ const endAngle = this.calculateEndAngle(data);
1771
+ if (startAngle === null || endAngle === null) return;
1772
+ const innerRadius = this.lohInnerRadius;
1773
+ const outerRadius = innerRadius + this.lohWidth;
1774
+ const color = GradientColorProvider.provide(data.segmean);
1775
+ const arc = {
1776
+ startAngle,
1777
+ endAngle,
1778
+ innerRadius,
1779
+ outerRadius,
1780
+ color,
1781
+ text: data.gene,
1782
+ chr: data.chr,
1783
+ start: data.start,
1784
+ stop: data.stop,
1785
+ value: data.segmean
1786
+ };
1787
+ arcs.push(arc);
1788
+ });
1789
+ return arcs;
1790
+ }
1791
+ calculateStartAngle(data) {
1792
+ const index = this.reference.chromosomesOrder.indexOf(data.chr);
1793
+ if (index === -1) return null;
1794
+ const chromosome = this.reference.chromosomes[index];
1795
+ return chromosome.startAngle + (chromosome.endAngle - chromosome.startAngle) * (Number(data.start) / chromosome.size);
1796
+ }
1797
+ calculateEndAngle(data) {
1798
+ const index = this.reference.chromosomesOrder.indexOf(data.chr);
1799
+ const chromosome = this.reference.chromosomes[index];
1800
+ return chromosome.startAngle + (chromosome.endAngle - chromosome.startAngle) * (Number(data.stop) / chromosome.size);
1801
+ }
1802
+ };
1803
+
1804
+ // plots/disco/ring/Rings.ts
1805
+ var Rings = class {
1806
+ constructor(labelsRing, chromosomesRing, nonExonicArcRing, snvArcRing, cnvArcRing, lohArcRing, mutationWaterfallRing) {
1807
+ this.labelsRing = labelsRing;
1808
+ this.chromosomesRing = chromosomesRing;
1809
+ this.nonExonicArcRing = nonExonicArcRing;
1810
+ this.snvArcRing = snvArcRing;
1811
+ this.cnvArcRing = cnvArcRing;
1812
+ this.lohArcRing = lohArcRing;
1813
+ this.mutationWaterfallRing = mutationWaterfallRing;
1814
+ }
1815
+ };
1816
+
1817
+ // plots/disco/waterfall/MutationWaterfallMapper.ts
1818
+ var MutationWaterfallMapper = class {
1819
+ constructor(innerRadius, ringWidth, reference, logRange, color = "#4d4d4d") {
1820
+ this.innerRadius = innerRadius;
1821
+ this.ringWidth = ringWidth;
1822
+ this.reference = reference;
1823
+ this.logRange = logRange;
1824
+ this.color = color;
1825
+ }
1826
+ map(data = []) {
1827
+ if (!data.length) return [];
1828
+ const min = this.logRange?.min ?? 0;
1829
+ const max = this.logRange?.max ?? min + 1;
1830
+ const span = max - min || 1;
1831
+ const points = [];
1832
+ for (const datum of data) {
1833
+ const chrIndex = this.reference.chromosomesOrder.indexOf(datum.chr);
1834
+ if (chrIndex === -1) continue;
1835
+ const chromosome = this.reference.chromosomes[chrIndex];
1836
+ const chrAngleSpan = chromosome.endAngle - chromosome.startAngle;
1837
+ const relPos = chromosome.size > 0 ? datum.position / chromosome.size : 0;
1838
+ const angle = chromosome.startAngle + chrAngleSpan * relPos;
1839
+ const normalized = Math.max(0, Math.min(1, (datum.logDistance - min) / span));
1840
+ const radius = this.innerRadius + this.ringWidth * normalized;
1841
+ points.push({
1842
+ startAngle: angle,
1843
+ endAngle: angle,
1844
+ innerRadius: radius,
1845
+ outerRadius: radius,
1846
+ text: chromosome.text,
1847
+ color: this.color,
1848
+ chr: datum.chr,
1849
+ position: datum.position,
1850
+ logDistance: datum.logDistance,
1851
+ ringInnerRadius: this.innerRadius,
1852
+ ringWidth: this.ringWidth,
1853
+ rangeMin: min,
1854
+ rangeMax: max
1855
+ });
1856
+ }
1857
+ return points;
1858
+ }
1859
+ };
1860
+
1861
+ // plots/disco/viewmodel/ViewModelProvider.ts
1862
+ var ViewModelProvider = class {
1863
+ constructor(settings, dataMapper, reference, sampleName, genesetName, discoInteractions) {
1864
+ this.nonExonicArcRing = void 0;
1865
+ this.settings = settings;
1866
+ this.dataMapper = dataMapper;
1867
+ this.reference = reference;
1868
+ this.sampleName = sampleName;
1869
+ this.genesetName = genesetName;
1870
+ this.discoInteractions = discoInteractions;
1871
+ }
1872
+ map(data) {
1873
+ const dataHolder = this.dataMapper.map(data);
1874
+ let labelsRing;
1875
+ if (this.settings.Disco.showGeneNames) {
1876
+ const labelsMapper = new LabelsMapper(
1877
+ this.settings,
1878
+ this.sampleName,
1879
+ this.reference,
1880
+ dataHolder.cnvMaxPercentileAbs
1881
+ );
1882
+ const labelsData = labelsMapper.map(dataHolder.labelData, dataHolder.cnvData);
1883
+ labelsRing = new Labels(this.settings, labelsData, dataHolder.hasPrioritizedGenes);
1884
+ } else {
1885
+ labelsRing = new Labels(this.settings, [], false);
1886
+ }
1887
+ const chromosomesRing = new Ring(
1888
+ this.settings.rings.chromosomeInnerRadius,
1889
+ this.settings.rings.chromosomeWidth,
1890
+ this.reference.chromosomes
1891
+ );
1892
+ const nonExonicSnvArcsMapper = new NonExonicSnvArcsMapper(
1893
+ dataHolder.nonExonicInnerRadius,
1894
+ this.settings.rings.nonExonicRingWidth,
1895
+ this.sampleName,
1896
+ this.reference
1897
+ );
1898
+ const nonExonicData = nonExonicSnvArcsMapper.map(dataHolder.nonExonicSnvData);
1899
+ if (nonExonicData.length > 0) {
1900
+ this.nonExonicArcRing = new Ring(
1901
+ dataHolder.nonExonicInnerRadius,
1902
+ this.settings.rings.nonExonicRingWidth,
1903
+ nonExonicData
1904
+ );
1905
+ }
1906
+ this.snvArcsMapper = new SnvArcsMapper(
1907
+ dataHolder.snvInnerRadius,
1908
+ this.settings.rings.snvRingWidth,
1909
+ this.sampleName,
1910
+ this.reference
1911
+ );
1912
+ const snvData = this.snvArcsMapper.map(dataHolder.snvRingDataMap);
1913
+ if (snvData.length > 0) {
1914
+ this.snvArcRing = new Ring(dataHolder.snvInnerRadius, this.settings.rings.snvRingWidth, snvData);
1915
+ }
1916
+ const lohMapper = new LohArcMapper(
1917
+ dataHolder.lohInnerRadius,
1918
+ this.settings.rings.lohRingWidth,
1919
+ this.sampleName,
1920
+ this.reference
1921
+ );
1922
+ const lohData = lohMapper.map(dataHolder.lohData);
1923
+ if (lohData.length > 0) {
1924
+ this.lohArcRing = new Ring(dataHolder.lohInnerRadius, this.settings.rings.lohRingWidth, lohData);
1925
+ }
1926
+ this.cnvArcsMapper = new CnvArcsMapper(
1927
+ dataHolder.cnvInnerRadius,
1928
+ this.settings.rings.cnvRingWidth,
1929
+ this.settings,
1930
+ this.sampleName,
1931
+ this.reference,
1932
+ dataHolder.percentilePositive,
1933
+ dataHolder.percentileNegative,
1934
+ dataHolder.cappedCnvMaxAbsValue,
1935
+ dataHolder.cnvMaxPercentileAbs,
1936
+ this.settings.cnv.unit,
1937
+ this.settings.Disco.cnvRenderingType
1938
+ );
1939
+ const cnvData = this.cnvArcsMapper.map(dataHolder.cnvData);
1940
+ if (cnvData.length > 0) {
1941
+ this.cnvArcRing = new Ring(dataHolder.cnvInnerRadius, this.settings.rings.cnvRingWidth, cnvData);
1942
+ }
1943
+ if (this.settings.Disco.mutationWaterfallPlot && dataHolder.mutationWaterfallData?.length && dataHolder.mutationWaterfallInnerRadius !== void 0 && //Added this check to prevent TypeScript error "mutationWaterfallInnerRadius might be undefined"
1944
+ (dataHolder.mutationWaterfallInnerRadius ?? 0) > 0 && dataHolder.mutationWaterfallLogRange) {
1945
+ const mutationWaterfallMapper = new MutationWaterfallMapper(
1946
+ dataHolder.mutationWaterfallInnerRadius,
1947
+ this.settings.rings.mutationWaterfallRingWidth,
1948
+ this.reference,
1949
+ dataHolder.mutationWaterfallLogRange,
1950
+ this.settings.Disco.mutationWaterfallColor || "#4d4d4d"
1951
+ );
1952
+ const waterfallData = mutationWaterfallMapper.map(dataHolder.mutationWaterfallData);
1953
+ if (waterfallData.length > 0) {
1954
+ this.mutationWaterfallRing = new Ring(
1955
+ dataHolder.mutationWaterfallInnerRadius,
1956
+ this.settings.rings.mutationWaterfallRingWidth,
1957
+ waterfallData
1958
+ );
1959
+ }
1960
+ }
1961
+ const fusionMapper = new FusionMapper(dataHolder.fusionRadius, this.sampleName, this.reference);
1962
+ const fusions = fusionMapper.map(dataHolder.fusionData);
1963
+ let lohLegend;
1964
+ if (this.settings.legend.lohLegendEnabled && dataHolder.lohMinValue && dataHolder.lohMaxValue) {
1965
+ lohLegend = new LohLegend(dataHolder.lohMinValue, dataHolder.lohMaxValue);
1966
+ }
1967
+ const legend = new Legend(
1968
+ this.settings.legend.snvTitle,
1969
+ this.settings.legend.cnvTitle,
1970
+ this.settings.legend.lohTitle,
1971
+ this.settings.legend.fusionTitle,
1972
+ this.settings.Disco.cnvPercentile,
1973
+ this.settings.Disco.cnvCutoffMode,
1974
+ this.snvArcsMapper ? this.snvArcsMapper.snvClassMap : /* @__PURE__ */ new Map(),
1975
+ this.cnvArcsMapper ? this.cnvArcsMapper.cnvClassMap : /* @__PURE__ */ new Map(),
1976
+ this.settings.Disco.cnvRenderingType,
1977
+ fusions.length > 0,
1978
+ this.discoInteractions,
1979
+ lohLegend,
1980
+ this.settings.Disco.mutationWaterfallPlot && this.mutationWaterfallRing ? {
1981
+ color: this.settings.Disco.mutationWaterfallColor || "#4d4d4d",
1982
+ onColorChange: this.discoInteractions.onMutationWaterfallColorChange
1983
+ } : void 0
1984
+ );
1985
+ const rings = new Rings(
1986
+ labelsRing,
1987
+ chromosomesRing,
1988
+ this.nonExonicArcRing,
1989
+ this.snvArcRing,
1990
+ this.cnvArcRing,
1991
+ this.lohArcRing,
1992
+ this.mutationWaterfallRing
1993
+ );
1994
+ return new ViewModel(
1995
+ this.settings,
1996
+ rings,
1997
+ legend,
1998
+ fusions,
1999
+ dataHolder,
2000
+ this.genesetName,
2001
+ data.filter((i) => i.dt == dtsnvindel).length
2002
+ );
2003
+ }
2004
+ };
2005
+
2006
+ // plots/disco/viewmodel/ViewModelMapper.ts
2007
+ var ViewModelMapper = class _ViewModelMapper {
2008
+ static {
2009
+ this.snvClassLayer = {
2010
+ M: "exonic",
2011
+ E: "exonic",
2012
+ F: "exonic",
2013
+ N: "exonic",
2014
+ S: "exonic",
2015
+ D: "exonic",
2016
+ I: "exonic",
2017
+ P: "exonic",
2018
+ L: "exonic",
2019
+ Utr3: "exonic",
2020
+ Utr5: "exonic",
2021
+ ProteinAltering: "exonic",
2022
+ mnv: "non-exonic",
2023
+ ITD: "non-exonic",
2024
+ insertion: "non-exonic",
2025
+ deletion: "non-exonic",
2026
+ Intron: "non-exonic",
2027
+ X: "non-exonic",
2028
+ noncoding: "non-exonic"
2029
+ };
2030
+ }
2031
+ constructor(settings, discoInteractions) {
2032
+ this.settings = JSON.parse(JSON.stringify(settings));
2033
+ this.discoInteractions = discoInteractions;
2034
+ }
2035
+ applyRadius() {
2036
+ const radius = this.settings.Disco.radius;
2037
+ if (!radius) return;
2038
+ const scale = radius / this.settings.rings.labelLinesInnerRadius;
2039
+ this.settings.rings.labelLinesInnerRadius *= scale;
2040
+ this.settings.rings.labelsToLinesDistance *= scale;
2041
+ this.settings.rings.chromosomeInnerRadius *= scale;
2042
+ this.settings.rings.chromosomeWidth *= scale;
2043
+ this.settings.rings.nonExonicRingWidth *= scale;
2044
+ this.settings.rings.snvRingWidth *= scale;
2045
+ this.settings.rings.lohRingWidth *= scale;
2046
+ this.settings.rings.cnvRingWidth *= scale;
2047
+ this.settings.rings.mutationWaterfallRingWidth *= scale;
2048
+ this.settings.label.fontSize *= scale;
2049
+ this.settings.legend.fontSize *= scale;
2050
+ }
2051
+ static computeDynamicRadius(data) {
2052
+ let ringCount = 0;
2053
+ if (data.some((d) => d.dt == dtsnvindel)) ringCount++;
2054
+ if (data.some((d) => d.dt == dtcnv)) ringCount++;
2055
+ if (data.some((d) => d.dt == dtloh)) ringCount++;
2056
+ if (ringCount <= 1) return 200;
2057
+ if (ringCount == 2) return 250;
2058
+ return 300;
2059
+ }
2060
+ map(opts) {
2061
+ const chrSizes = opts.args.genome.majorchr;
2062
+ const chromosomesOverride = {};
2063
+ for (const chr of Object.keys(chrSizes)) {
2064
+ if (!this.settings.Disco.hiddenChromosomes.includes(chr)) {
2065
+ chromosomesOverride[chr] = chrSizes[chr];
2066
+ }
2067
+ }
2068
+ const sampleName = opts.args.sampleName;
2069
+ const genome = opts.args.genome;
2070
+ const prioritizedGenes = genome?.geneset?.[0] ? genome.geneset[0].lst : [];
2071
+ const genesetName = genome?.geneset?.[0] ? genome.geneset[0].name : "";
2072
+ const data = opts.args.data;
2073
+ if (this.settings.Disco.autoRadius) {
2074
+ this.settings.Disco.radius = _ViewModelMapper.computeDynamicRadius(data);
2075
+ }
2076
+ this.applyRadius();
2077
+ const reference = new Reference(this.settings, chrSizes, chromosomesOverride);
2078
+ const dataMapper = new DataMapper(this.settings, reference, sampleName, prioritizedGenes);
2079
+ return new ViewModelProvider(
2080
+ this.settings,
2081
+ dataMapper,
2082
+ reference,
2083
+ sampleName,
2084
+ genesetName,
2085
+ this.discoInteractions
2086
+ ).map(data);
2087
+ }
2088
+ };
2089
+
2090
+ // plots/disco/legend/LegendJSONMapper.ts
2091
+ var LegendJSONMapper = class {
2092
+ constructor(cappedCnvMaxAbsValue) {
2093
+ this.cappedCnvMaxAbsValue = cappedCnvMaxAbsValue;
2094
+ }
2095
+ map(legend) {
2096
+ const legendJSON = [];
2097
+ let order = 0;
2098
+ if (legend.snvClassMap) {
2099
+ this.mapSnv(legend, legendJSON, order++);
2100
+ }
2101
+ if (legend.cnvRenderingType == "heatmap" /* heatmap */) {
2102
+ this.mapCnvHeatmap(legend, legendJSON, order++);
2103
+ } else if (legend.cnvRenderingType == "bar" /* bar */) {
2104
+ if (legend.cnvClassMap) {
2105
+ this.mapCnvBar(legend, legendJSON, order++);
2106
+ }
2107
+ }
2108
+ if (legend.lohLegend) {
2109
+ this.mapLoh(legend, legendJSON, order++);
2110
+ }
2111
+ if (legend.fusionLegend) {
2112
+ this.mapFusion(legend, legendJSON, order++);
2113
+ }
2114
+ if (legend.mutationWaterfallLegend) {
2115
+ this.mapMutationWaterfall(legend, legendJSON, order++);
2116
+ }
2117
+ return legendJSON;
2118
+ }
2119
+ mapSnv(legend, legendJSON, order) {
2120
+ const snvItems = [];
2121
+ let snvOrder = 0;
2122
+ for (const [snvKey, snvLegendElement] of legend.snvClassMap) {
2123
+ snvItems.push({
2124
+ termid: legend.snvTitle,
2125
+ key: snvKey,
2126
+ text: `${snvLegendElement.snvType} (${snvLegendElement.count})`,
2127
+ color: snvLegendElement.color,
2128
+ order: snvOrder++,
2129
+ border: "1px solid #ccc"
2130
+ });
2131
+ }
2132
+ legendJSON.push({
2133
+ name: legend.snvTitle,
2134
+ order,
2135
+ items: snvItems
2136
+ });
2137
+ }
2138
+ mapCnvBar(legend, legendJSON, order) {
2139
+ if (!legend.cnvClassMap) return;
2140
+ const gain = legend.cnvClassMap.get(1 /* Gain */);
2141
+ const loss = legend.cnvClassMap.get(0 /* Loss */);
2142
+ const cap = legend.cnvClassMap.get(2 /* Cap */);
2143
+ if (gain && loss && cap) {
2144
+ let cnvOrder = 0;
2145
+ const cnvItems = [];
2146
+ if (gain.value > 0) {
2147
+ cnvItems.push({
2148
+ termid: legend.cnvTitle,
2149
+ key: 1 /* Gain */,
2150
+ text: `Max: ${gain.value}`,
2151
+ color: gain.color,
2152
+ order: cnvOrder++,
2153
+ border: "1px solid #ccc"
2154
+ });
2155
+ }
2156
+ if (loss.value < 0) {
2157
+ cnvItems.push({
2158
+ termid: legend.cnvTitle,
2159
+ key: 0 /* Loss */,
2160
+ text: `Min: ${loss.value}`,
2161
+ color: loss.color,
2162
+ order: cnvOrder++,
2163
+ border: "1px solid #ccc"
2164
+ });
2165
+ }
2166
+ cnvItems.push({
2167
+ termid: legend.cnvTitle,
2168
+ key: 2 /* Cap */,
2169
+ text: `Capping: ${cap.value}`,
2170
+ color: cap.color,
2171
+ order: cnvOrder++,
2172
+ border: "1px solid #ccc"
2173
+ // ,
2174
+ // onClickCallback: this.onClickCallback
2175
+ });
2176
+ legendJSON.push({
2177
+ name: legend.cnvTitle,
2178
+ id: "sjpp-disco-cnv-legend",
2179
+ order,
2180
+ items: cnvItems
2181
+ });
2182
+ }
2183
+ }
2184
+ mapCnvHeatmap(legend, legendJSON, order) {
2185
+ if (!legend.cnvClassMap) return;
2186
+ const gain = legend.cnvClassMap.get(1 /* Gain */);
2187
+ const loss = legend.cnvClassMap.get(0 /* Loss */);
2188
+ const cap = legend.cnvClassMap.get(2 /* Cap */);
2189
+ if (gain && loss && cap) {
2190
+ let cnvOrder = 0;
2191
+ const cnvItems = [];
2192
+ const base = {
2193
+ termid: legend.cnvTitle,
2194
+ width: 100,
2195
+ order: cnvOrder++,
2196
+ isLegendItem: true,
2197
+ dt: 4
2198
+ };
2199
+ if (gain.value > 0 && loss.value < 0) {
2200
+ const maxValue = Math.max(Math.abs(loss.value), gain.value);
2201
+ const domain = [-maxValue, 0, maxValue];
2202
+ cnvItems.push(
2203
+ Object.assign(
2204
+ {
2205
+ key: 3 /* LossGain */,
2206
+ domain,
2207
+ scale: linear([-1, 0, 1], [loss.color, "white", gain.color]),
2208
+ labels: { left: "Loss", right: "Gain" },
2209
+ numericInputs: {
2210
+ cutoffMode: legend.cnvCutoffMode,
2211
+ defaultPercentile: legend.cnvPercentile,
2212
+ callback: (obj) => legend.discoInteractions.colorScaleNumericInputsCallback(obj)
2213
+ }
2214
+ },
2215
+ base
2216
+ )
2217
+ );
2218
+ } else {
2219
+ if (gain.value > 0) {
2220
+ cnvItems.push(
2221
+ Object.assign(
2222
+ {
2223
+ key: 1 /* Gain */,
2224
+ text: "Copy number gain",
2225
+ domain: [0, gain.value],
2226
+ scale: linear([0, 1], ["white", gain.color])
2227
+ },
2228
+ base
2229
+ )
2230
+ );
2231
+ }
2232
+ if (loss.value < 0) {
2233
+ cnvItems.push(
2234
+ Object.assign(
2235
+ {
2236
+ key: 0 /* Loss */,
2237
+ text: "Copy number loss",
2238
+ domain: [loss.value, 0],
2239
+ scale: linear([0, 1], [loss.color, "white"])
2240
+ },
2241
+ base
2242
+ )
2243
+ );
2244
+ }
2245
+ }
2246
+ legendJSON.push({
2247
+ name: legend.cnvTitle,
2248
+ order,
2249
+ id: "sjpp-disco-cnv-legend",
2250
+ items: cnvItems
2251
+ });
2252
+ }
2253
+ }
2254
+ mapLoh(legend, legendJSON, order) {
2255
+ if (!legend.lohLegend) return;
2256
+ const lohItems = [];
2257
+ lohItems.push({
2258
+ termid: legend.lohTitle,
2259
+ key: "min",
2260
+ text: "min",
2261
+ color: legend.lohLegend.colorStartValue,
2262
+ order: 0,
2263
+ border: "1px solid #ccc"
2264
+ });
2265
+ lohItems.push({
2266
+ termid: legend.lohTitle,
2267
+ key: "max",
2268
+ text: "max",
2269
+ color: legend.lohLegend.colorEndValue,
2270
+ order: 1,
2271
+ border: "1px solid #ccc"
2272
+ });
2273
+ legendJSON.push({
2274
+ name: legend.lohTitle,
2275
+ order,
2276
+ items: lohItems
2277
+ });
2278
+ }
2279
+ mapFusion(legend, legendJSON, order) {
2280
+ const fusionItems = [];
2281
+ fusionItems.push({
2282
+ termid: legend.fusionTitle,
2283
+ key: "#6A3D9A" /* Interchromosomal */,
2284
+ text: "Interchromosomal",
2285
+ color: "#6A3D9A" /* Interchromosomal */.valueOf(),
2286
+ order: 0,
2287
+ border: "1px solid #ccc"
2288
+ });
2289
+ fusionItems.push({
2290
+ termid: legend.fusionTitle,
2291
+ key: "#1B9E77" /* Intrachromosomal */,
2292
+ text: "Intrachromosomal",
2293
+ color: "#1B9E77" /* Intrachromosomal */.valueOf(),
2294
+ order: 1,
2295
+ border: "1px solid #ccc"
2296
+ });
2297
+ legendJSON.push({
2298
+ name: legend.fusionTitle,
2299
+ order,
2300
+ items: fusionItems
2301
+ });
2302
+ }
2303
+ mapMutationWaterfall(legend, legendJSON, order) {
2304
+ if (!legend.mutationWaterfallLegend) return;
2305
+ const waterfallItems = [];
2306
+ waterfallItems.push({
2307
+ termid: "Mutation Waterfall Plot",
2308
+ key: "mutation-waterfall-color",
2309
+ text: "Dot color",
2310
+ color: legend.mutationWaterfallLegend.color,
2311
+ order: 0,
2312
+ colorPicker: true,
2313
+ inputWidth: 28,
2314
+ width: 0,
2315
+ onColorChange: legend.mutationWaterfallLegend.onColorChange
2316
+ });
2317
+ waterfallItems.push({
2318
+ termid: "Mutation Waterfall Plot",
2319
+ key: "mutation-waterfall-axis",
2320
+ text: "Axis: log10 intermutation distance",
2321
+ order: 1,
2322
+ skipIcon: true,
2323
+ width: 0
2324
+ });
2325
+ legendJSON.push({
2326
+ name: "Mutation Waterfall Plot",
2327
+ order,
2328
+ items: waterfallItems
2329
+ });
2330
+ }
2331
+ };
2332
+
2333
+ // plots/disco/cnv/renderCnvSourceLegend.ts
2334
+ function parseSetLabel(set, index) {
2335
+ let text = set.name || `Set ${index + 1}`;
2336
+ let href;
2337
+ let target = "_blank";
2338
+ if (set.nameHtml) {
2339
+ const parser = new DOMParser();
2340
+ const doc = parser.parseFromString(set.nameHtml, "text/html");
2341
+ const anchor = doc.querySelector("a");
2342
+ if (anchor) {
2343
+ href = anchor.getAttribute("href") || void 0;
2344
+ target = anchor.getAttribute("target") || "_blank";
2345
+ text = anchor.textContent?.trim() || text;
2346
+ } else {
2347
+ text = doc.body.textContent?.trim() || text;
2348
+ }
2349
+ }
2350
+ return { text, href, target };
2351
+ }
2352
+ function renderCnvSourceLegend(legendG, datasets, fontSize, onChange) {
2353
+ if (!legendG || legendG.empty()) throw new Error("legendG is required");
2354
+ if (!datasets || datasets.length === 0) throw new Error("at least one dataset is required");
2355
+ legendG.select("g.sjpp-cnv-source").remove();
2356
+ const gBBox = legendG.node().getBBox();
2357
+ const cnvSrcWrapper = legendG.append("g").attr("class", "sjpp-cnv-source").attr("transform", `translate(${gBBox.width},${gBBox.y + fontSize})`);
2358
+ const btnPaddingX = Math.round(fontSize * 0.8);
2359
+ const btnHgt = Math.round(fontSize * 1.8);
2360
+ const btnWrapper = cnvSrcWrapper.append("g").attr("transform", `translate(${fontSize},${-btnHgt / 2})`).style("cursor", "pointer").on("click", function(event) {
2361
+ event.stopPropagation();
2362
+ showCnvMenu(this);
2363
+ });
2364
+ const btnText = btnWrapper.append("text").attr("x", 0).attr("y", btnHgt / 2).attr("font-size", fontSize).attr("text-anchor", "start").attr("dominant-baseline", "middle").text("Select source \u25B2".toUpperCase());
2365
+ const textW = btnText.node() ? Math.ceil(btnText.node().getBBox().width) : 0;
2366
+ const btnWdt = textW + btnPaddingX * 2;
2367
+ btnWrapper.insert("rect", ":first-child").attr("width", btnWdt).attr("height", btnHgt).attr("rx", 10).attr("ry", 10).style("fill", "#f2f2f2");
2368
+ btnText.attr("x", btnWdt / 2).attr("text-anchor", "middle");
2369
+ const cnvMenu = new Menu({
2370
+ onHide: () => {
2371
+ btnText.text("Select source \u25B2".toUpperCase());
2372
+ }
2373
+ });
2374
+ function showCnvMenu(dom) {
2375
+ btnText.text("Select source \u25BC".toUpperCase());
2376
+ cnvMenu.clear().showunder(dom);
2377
+ cnvMenu.d.append("div").text("Choose data source for CNV:").style("margin", "5px 5px 0 5px");
2378
+ const tableHolder = cnvMenu.d.append("div").style("padding", "5px");
2379
+ const { columns, rows } = buildTableData(datasets);
2380
+ const [, activeIndex] = getActiveDataset(datasets);
2381
+ renderTable({
2382
+ columns,
2383
+ rows,
2384
+ div: tableHolder,
2385
+ singleMode: true,
2386
+ maxWidth: "70vw",
2387
+ maxHeight: "60vh",
2388
+ selectedRows: [activeIndex],
2389
+ header: { allowSort: false },
2390
+ noButtonCallback: (rowIndex, node) => {
2391
+ const inputIndex = Number(node?.value);
2392
+ const selectedIndex = Number.isNaN(inputIndex) ? rowIndex : inputIndex;
2393
+ if (!Number.isNaN(selectedIndex)) onChange(selectedIndex);
2394
+ cnvMenu.hide();
2395
+ }
2396
+ });
2397
+ }
2398
+ }
2399
+ function getActiveDataset(datasets) {
2400
+ let currentIndex = datasets.findIndex((d) => d.inuse);
2401
+ if (currentIndex == -1) currentIndex = 0;
2402
+ return [datasets[currentIndex], currentIndex];
2403
+ }
2404
+ function buildTableData(datasets) {
2405
+ const attrKeys = [];
2406
+ for (const set of datasets) {
2407
+ if (!set.attrs) continue;
2408
+ for (const key of Object.keys(set.attrs)) {
2409
+ if (!attrKeys.includes(key)) attrKeys.push(key);
2410
+ }
2411
+ }
2412
+ const columns = [{ label: "Source" }];
2413
+ for (const key of attrKeys) columns.push({ label: key });
2414
+ const rows = datasets.map((set, index) => {
2415
+ const sourceInfo = parseSetLabel(set, index);
2416
+ const cells = [];
2417
+ if (set.nameHtml) cells.push({ html: set.nameHtml });
2418
+ else if (sourceInfo.href) cells.push({ value: sourceInfo.text, url: sourceInfo.href });
2419
+ else cells.push({ value: sourceInfo.text });
2420
+ for (const key of attrKeys) {
2421
+ const value = set.attrs?.[key];
2422
+ cells.push({ value: value ?? "" });
2423
+ }
2424
+ return cells;
2425
+ });
2426
+ return { columns, rows };
2427
+ }
2428
+
2429
+ // plots/disco/legend/LegendRenderer.ts
2430
+ var LegendRenderer = class {
2431
+ constructor(cappedCnvMaxAbsValue = 0, fontSize) {
2432
+ this.fontSize = fontSize;
2433
+ this.legendJSONMapper = new LegendJSONMapper(cappedCnvMaxAbsValue);
2434
+ }
2435
+ render(holder, legend, xOffset, svgw, svgh, viewModel, onCnvSourceSelect) {
2436
+ const svgLegendRenderer = svgLegend({
2437
+ holder: holder.append("g").attr("data-testid", "sjpp_disco_plot_legend"),
2438
+ rectFillFxn: (d2) => d2.color,
2439
+ iconStroke: "#aaa"
2440
+ });
2441
+ const data = this.legendJSONMapper.map(legend);
2442
+ const legendTitles = data.map((d2) => d2.name.trim());
2443
+ const maxLabelWidth = getMaxLabelWidth(holder, legendTitles);
2444
+ const d = {
2445
+ xOffset: maxLabelWidth + xOffset
2446
+ };
2447
+ svgLegendRenderer(data, {
2448
+ settings: Object.assign(
2449
+ {},
2450
+ {
2451
+ svgw,
2452
+ svgh,
2453
+ dimensions: d,
2454
+ fontsize: this.fontSize
2455
+ }
2456
+ )
2457
+ });
2458
+ const altCnv = viewModel.appState.args.alternativeDataByDt?.[dtcnv];
2459
+ if (altCnv && altCnv.length > 0) {
2460
+ const legendG = holder.select('g[data-testid="sjpp_disco_plot_legend"]');
2461
+ const cnvLegendG = legendG.select("#sjpp-disco-cnv-legend");
2462
+ if (!legendG.empty()) {
2463
+ const add2G = cnvLegendG.empty() ? legendG : cnvLegendG;
2464
+ renderCnvSourceLegend(add2G, altCnv, this.fontSize, onCnvSourceSelect);
2465
+ }
2466
+ }
2467
+ }
2468
+ };
2469
+
2470
+ // plots/disco/chromosome/ChromosomesRenderer.ts
2471
+ var ChromosomesRenderer = class {
2472
+ constructor(padAngle, innerRadius, outerRadius, fontSize) {
2473
+ this.padAngle = padAngle;
2474
+ this.innerRadius = innerRadius;
2475
+ this.outerRadius = outerRadius;
2476
+ this.fontSize = fontSize;
2477
+ }
2478
+ render(holder, elements) {
2479
+ const pie = pie_default().padAngle(this.padAngle).value((d) => d.size).sort(null);
2480
+ const arcData = pie(elements);
2481
+ const arc = arc_default().innerRadius(this.innerRadius).outerRadius(this.outerRadius);
2482
+ const arcs = holder.append("g").attr("data-testid", "sjpp_chromosomes_arc_group");
2483
+ const menu = MenuProvider.create();
2484
+ arcs.selectAll("path").data(arcData).enter().append("path").attr("d", arc).attr("fill", "black").on("mousemove", (event, d) => {
2485
+ const [x, y] = pointer_default(event, arcs.node());
2486
+ let angle = Math.atan2(y, x) + Math.PI / 2;
2487
+ if (angle < 0) angle += 2 * Math.PI;
2488
+ const frac = Math.max(0, Math.min(1, (angle - d.data.startAngle) / (d.data.endAngle - d.data.startAngle)));
2489
+ const pos = Math.round(frac * d.data.size);
2490
+ menu.d.html(`<span style="font-size:.8em">chr${d.data.text}</span> ${bplen(pos)}`).style("padding", "5px");
2491
+ menu.show(event.x, event.y);
2492
+ }).on("mouseenter", (event) => {
2493
+ select_default(event.currentTarget).attr("stroke", "orange").attr("stroke-width", 1);
2494
+ }).on("mouseleave", (event) => {
2495
+ select_default(event.currentTarget).attr("stroke", null).attr("stroke-width", null);
2496
+ menu.hide();
2497
+ });
2498
+ arcs.selectAll("text").data(arcData).enter().append("text").attr("transform", (d) => {
2499
+ return `translate(${arc.centroid(d)}) rotate(${d.data.angle * 180 / Math.PI - 90})${d.data.angle > Math.PI ? "rotate(180)" : ""}`;
2500
+ }).attr("dy", "0.35em").attr("text-anchor", "middle").text((d) => d.data.text).style("fill", "white").style("font-size", `${this.fontSize}px`).style("padding", "500px").style("pointer-events", "none").style("padding", "500px");
2501
+ }
2502
+ };
2503
+
2504
+ // plots/disco/snv/vafTooltip.ts
2505
+ function getIntegerCount(v) {
2506
+ if (Number.isInteger(v)) return v;
2507
+ if (typeof v == "string" && /^-?\d+$/.test(v)) {
2508
+ const n = Number(v);
2509
+ if (Number.isInteger(n)) return n;
2510
+ }
2511
+ return null;
2512
+ }
2513
+ function hasValidReadCounts(refCountValue, altCountValue) {
2514
+ const refCount = getIntegerCount(refCountValue);
2515
+ const altCount = getIntegerCount(altCountValue);
2516
+ return refCount != null && altCount != null && refCount >= 0 && altCount >= 0 && refCount + altCount > 0;
2517
+ }
2518
+ function getVafEntries(vafs) {
2519
+ const entries = [];
2520
+ if (Array.isArray(vafs)) {
2521
+ for (const vaf of vafs) {
2522
+ const label = vaf?.id || vaf?.name;
2523
+ const refCount = vaf?.refCount;
2524
+ const altCount = vaf?.altCount;
2525
+ if (!label || refCount == null || altCount == null) continue;
2526
+ entries.push({ label, refCount, altCount });
2527
+ }
2528
+ }
2529
+ return entries;
2530
+ }
2531
+ function hasAnyValidVafEntry(vafs) {
2532
+ return getVafEntries(vafs).some((vaf) => hasValidReadCounts(vaf.refCount, vaf.altCount));
2533
+ }
2534
+ function appendVafBar(td2, refCountValue, altCountValue, label = "VAF") {
2535
+ const refCount = getIntegerCount(refCountValue);
2536
+ const altCount = getIntegerCount(altCountValue);
2537
+ if (refCount == null || altCount == null) return;
2538
+ const totalCount = refCount + altCount;
2539
+ const fraction = altCount / totalCount;
2540
+ const div = td2.append("div").style("margin-left", "5px").style("margin-top", "4px").style("display", "flex").style("align-items", "center").style("gap", "6px");
2541
+ div.append("span").style("font-size", "0.8em").style("color", "#555").text(label);
2542
+ fillbar(div, { f: fraction, v1: altCount, v2: totalCount });
2543
+ }
2544
+ function appendVafBars(td2, vafs) {
2545
+ for (const vaf of getVafEntries(vafs)) {
2546
+ if (!hasValidReadCounts(vaf.refCount, vaf.altCount)) continue;
2547
+ appendVafBar(td2, vaf.refCount, vaf.altCount, vaf.label);
2548
+ }
2549
+ }
2550
+
2551
+ // plots/disco/label/LabelsRenderer.ts
2552
+ var LabelsRenderer = class {
2553
+ constructor(animationDuration, fontSize, geneClickListener) {
2554
+ this.animationDuration = animationDuration;
2555
+ this.fontSize = fontSize;
2556
+ this.geneClickListener = geneClickListener;
2557
+ }
2558
+ render(holder, elements, collisions) {
2559
+ const labelsG = holder.append("g");
2560
+ const lineFunction = line_default().x((point) => point.x).y((point) => point.y);
2561
+ const menu = MenuProvider.create();
2562
+ labelsG.selectAll(".group").data(elements).enter().append("g").attr("class", "group").each((label, i, nodes) => {
2563
+ const g = select_default(nodes[i]);
2564
+ g.append("text").attr("class", "chord-text").attr("dy", ".35em").attr("transform", label.transform).style("text-anchor", label.textAnchor).style("font-size", `${this.fontSize}px`).style("fill", label.color).style("cursor", "pointer").text(label.text).on("click", () => {
2565
+ if (label.mutationsTooltip) {
2566
+ this.geneClickListener(
2567
+ label.text,
2568
+ label.mutationsTooltip.map((value) => value.mname)
2569
+ );
2570
+ }
2571
+ }).on("mouseover", (mouseEvent) => {
2572
+ const table = table2col({ holder: menu.d });
2573
+ this.createTooltip(table, label);
2574
+ menu.show(mouseEvent.x, mouseEvent.y);
2575
+ }).on("mouseout", () => {
2576
+ menu.clear();
2577
+ menu.hide();
2578
+ });
2579
+ g.append("path").attr("class", "chord-tick").datum(label.line.points).style("stroke", label.color).style("fill", "none").attr("d", lineFunction);
2580
+ });
2581
+ labelsG.selectAll(".group").each((label, i, nodes) => {
2582
+ const collision = collisions ? collisions.find((l) => l.text === label.text) : void 0;
2583
+ if (collision) {
2584
+ const g = select_default(nodes[i]);
2585
+ g.selectAll(".chord-text").datum(collision).transition().duration(this.animationDuration).attr("transform", collision.transform).style("text-anchor", collision.textAnchor);
2586
+ g.selectAll(".chord-tick").datum(collision.line.points).transition().duration(this.animationDuration).style("fill", "none").attr("d", lineFunction);
2587
+ }
2588
+ });
2589
+ }
2590
+ createTooltip(table, label) {
2591
+ if (label.mutationsTooltip) {
2592
+ const [td1, td2] = table.addRow();
2593
+ td1.text("Gene");
2594
+ td2.append("span").style("margin-left", "5px").text(label.text);
2595
+ label.mutationsTooltip.forEach((mutation) => {
2596
+ {
2597
+ const [td12, td22] = table.addRow();
2598
+ td12.text("Mutation");
2599
+ td22.append("span").style("margin-left", "5px").text(mutation.mname).append("span").style("margin-left", "5px").style("color", mutation.color).text(`${mutation.dataClass}`).append("span").style("margin-left", "5px").style("color", "black").style("font-size", "0.8em").text(` ${mutation.chr}:${mutation.position}`);
2600
+ if (hasAnyValidVafEntry(mutation.vafs)) {
2601
+ appendVafBars(td22, mutation.vafs);
2602
+ }
2603
+ }
2604
+ });
2605
+ }
2606
+ if (label.fusionTooltip) {
2607
+ const [td1, td2] = table.addRow();
2608
+ td1.text("Data type");
2609
+ td2.append("span").text("Fusion transcript");
2610
+ label.fusionTooltip.forEach((fusionTooltip) => {
2611
+ const [td12, td22] = table.addRow();
2612
+ td12.text("Position");
2613
+ td22.append("span").text(
2614
+ ` ${fusionTooltip.geneA ? fusionTooltip.geneA : "?"} ${fusionTooltip.chrA}:${fusionTooltip.posA}
2615
+ ${fusionTooltip.strandA == "+" ? "forward" : "reverse"} > ${fusionTooltip.geneB ? fusionTooltip.geneB : "?"} ${fusionTooltip.chrB}:${fusionTooltip.posB} ${fusionTooltip.strandB == "+" ? "forward" : "reverse"} `
2616
+ );
2617
+ });
2618
+ }
2619
+ if (label.cnvTooltip) {
2620
+ label.cnvTooltip.forEach((cnv) => {
2621
+ const [td1, td2] = table.addRow();
2622
+ td1.text("CNV");
2623
+ td2.append("span").style("margin-left", "5px").style("background-color", cnv.color).html("&nbsp;&nbsp;");
2624
+ td2.append("span").style("margin-left", "7.5px").text(cnv.value).append("span").style("margin-left", "7.5px").style("font-size", "0.8em").text(`${cnv.chr}:${cnv.start}-${cnv.stop}`);
2625
+ });
2626
+ }
2627
+ }
2628
+ };
2629
+
2630
+ // plots/disco/defaults.ts
2631
+ function discoDefaults(overrides = {}, app) {
2632
+ const hiddenChromosomes = [];
2633
+ if (app?.vocabApi?.termdbConfig?.queries?.singleSampleMutation?.discoPlot?.skipChrM) {
2634
+ hiddenChromosomes.push("chrM");
2635
+ }
2636
+ const defaults = {
2637
+ downloadImgName: "disco.plot",
2638
+ Disco: {
2639
+ centerText: null,
2640
+ cnvCapping: 5,
2641
+ isOpen: false,
2642
+ prioritizeGeneLabelsByGeneSets: false,
2643
+ showPrioritizeGeneLabelsByGeneSets: false,
2644
+ showGeneNames: true,
2645
+ mutationWaterfallPlot: false,
2646
+ mutationWaterfallColor: "#4d4d4d",
2647
+ cnvRenderingType: "heatmap" /* heatmap */,
2648
+ cnvPercentile: 90,
2649
+ // 90th percentile for removing outliers
2650
+ cnvCutoffMode: "percentile",
2651
+ autoRadius: true,
2652
+ radius: 300,
2653
+ fusionOpacity: 1,
2654
+ hiddenChromosomes
2655
+ },
2656
+ rings: {
2657
+ nonExonicRingWidth: 20,
2658
+ snvRingWidth: 20,
2659
+ lohRingWidth: 20,
2660
+ cnvRingWidth: 30,
2661
+ mutationWaterfallRingWidth: 35,
2662
+ snvRingFilters: ["exonic"],
2663
+ chromosomeInnerRadius: 190,
2664
+ chromosomeWidth: 20,
2665
+ labelLinesInnerRadius: 210,
2666
+ labelsToLinesDistance: 30,
2667
+ labelsToLinesGap: 2,
2668
+ nonExonicRingEnabled: true,
2669
+ nonExonicFilterValues: ["non-exonic"]
2670
+ },
2671
+ verticalPadding: 0,
2672
+ horizontalPadding: 50,
2673
+ layerScaler: 1,
2674
+ padAngle: 2e-3,
2675
+ //0.01, //0.04,
2676
+ label: {
2677
+ fontSize: 12,
2678
+ maxDeltaAngle: 0.05,
2679
+ animationDuration: 1e3,
2680
+ overlapAngleFactor: 5
2681
+ // 5 is set by testing, because label height is not known before rendering
2682
+ },
2683
+ cnv: {
2684
+ capping: 5,
2685
+ percentile: 80,
2686
+ ampColor: "#D6683C",
2687
+ lossColor: "#67a9cf",
2688
+ cappedAmpColor: "#8B0000",
2689
+ cappedLossColor: "#00008B",
2690
+ unit: "Unit"
2691
+ },
2692
+ snv: {
2693
+ maxMutationCount: 1e4
2694
+ },
2695
+ legend: {
2696
+ snvTitle: "SNV",
2697
+ cnvTitle: "CNV",
2698
+ lohTitle: "LOH",
2699
+ fusionTitle: "SV",
2700
+ // Structural Variants (color by co-location)
2701
+ lohLegendEnabled: true,
2702
+ fontSize: 12,
2703
+ rowHeight: 48
2704
+ },
2705
+ menu: {
2706
+ padding: 5
2707
+ }
2708
+ };
2709
+ if (overrides?.Disco?.radius != null && (overrides.Disco.radius > 1e3 || overrides.Disco.radius < 200)) {
2710
+ console.log(`${overrides?.Disco?.radius} is greater or lower than the min and max for the radius`);
2711
+ }
2712
+ return copyMerge(defaults, overrides);
2713
+ }
2714
+
2715
+ // plots/disco/snv/NonExonicSnvRenderer.ts
2716
+ var NonExonicSnvRenderer = class {
2717
+ constructor(geneClickListener) {
2718
+ this.geneClickListener = geneClickListener;
2719
+ }
2720
+ render(holder, elements) {
2721
+ const arcGenerator = arc_default();
2722
+ const arcs = holder.append("g");
2723
+ const menu = MenuProvider.create();
2724
+ arcs.selectAll("path").data(elements).enter().append("path").attr("d", (d) => arcGenerator(d)).attr("fill", (d) => d.color).on("mouseover", (mouseEvent, arc) => {
2725
+ const table = table2col({ holder: menu.d });
2726
+ const snv = structuredClone(arc);
2727
+ snv.dt = dtsnvindel;
2728
+ snv.class = arc.dataClass;
2729
+ snv.gene = snv.text;
2730
+ {
2731
+ const [td1, td2] = table.addRow();
2732
+ td1.text("Consequence");
2733
+ td2.append("span").text(snv.mname);
2734
+ td2.append("span").style("margin-left", "5px").style("color", snv.color).style("font-size", ".8em").text(snv.dataClass);
2735
+ }
2736
+ {
2737
+ const [td1, td2] = table.addRow();
2738
+ td1.text(snv.ref && snv.alt ? "Mutation" : "Position");
2739
+ td2.append("span").text(`${snv.chr}:${snv.pos + 1} ${snv.ref && snv.alt ? snv.ref + ">" + snv.alt : ""}`);
2740
+ }
2741
+ if (snv.gene) {
2742
+ const [td1, td2] = table.addRow();
2743
+ td1.text("Gene");
2744
+ td2.text(snv.gene);
2745
+ }
2746
+ if (snv.occurrence > 1) {
2747
+ const [td1, td2] = table.addRow();
2748
+ td1.text("Occurrence");
2749
+ td2.text(snv.occurrence);
2750
+ }
2751
+ if (hasAnyValidVafEntry(arc.vafs)) {
2752
+ const [td1, td2] = table.addRow();
2753
+ td1.text("Read count");
2754
+ appendVafBars(td2, arc.vafs);
2755
+ }
2756
+ menu.show(mouseEvent.x, mouseEvent.y);
2757
+ }).on("mouseout", () => {
2758
+ menu.clear();
2759
+ menu.hide();
2760
+ }).on("click", (mouseEvent, arc) => {
2761
+ this.geneClickListener(arc.text, [arc.mname]);
2762
+ });
2763
+ }
2764
+ };
2765
+
2766
+ // plots/disco/snv/SnvRenderer.ts
2767
+ var SnvRenderer = class {
2768
+ constructor(svnWidth, geneClickListener) {
2769
+ this.svnWidth = svnWidth;
2770
+ this.geneClickListener = geneClickListener;
2771
+ }
2772
+ render(holder, elements) {
2773
+ if (elements.length > 0) {
2774
+ const svnInnerRadius = elements[0].innerRadius;
2775
+ const fullArcRenderer = new FullArcRenderer(svnInnerRadius, this.svnWidth, "#6464641A");
2776
+ fullArcRenderer.render(holder);
2777
+ }
2778
+ const arcGenerator = arc_default();
2779
+ const arcs = holder.append("g");
2780
+ const menu = MenuProvider.create();
2781
+ arcs.selectAll("path").data(elements).enter().append("path").attr("d", (d) => arcGenerator(d)).attr("fill", (d) => d.color).on("mouseover", (mouseEvent, arc) => {
2782
+ const table = table2col({ holder: menu.d });
2783
+ const snv = structuredClone(arc);
2784
+ snv.dt = dtsnvindel;
2785
+ snv.class = arc.dataClass;
2786
+ snv.gene = snv.text;
2787
+ {
2788
+ const [td1, td2] = table.addRow();
2789
+ td1.text("Consequence");
2790
+ td2.append("span").text(snv.mname);
2791
+ td2.append("span").style("margin-left", "5px").style("color", snv.color).style("font-size", ".8em").text(snv.dataClass);
2792
+ }
2793
+ {
2794
+ const [td1, td2] = table.addRow();
2795
+ td1.text(snv.ref && snv.alt ? "Mutation" : "Position");
2796
+ td2.append("span").text(`${snv.chr}:${snv.pos + 1} ${snv.ref && snv.alt ? snv.ref + ">" + snv.alt : ""}`);
2797
+ }
2798
+ if (snv.gene) {
2799
+ const [td1, td2] = table.addRow();
2800
+ td1.text("Gene");
2801
+ td2.text(snv.gene);
2802
+ }
2803
+ if (snv.occurrence > 1) {
2804
+ const [td1, td2] = table.addRow();
2805
+ td1.text("Occurrence");
2806
+ td2.text(snv.occurrence);
2807
+ }
2808
+ if (hasAnyValidVafEntry(arc.vafs)) {
2809
+ const [td1, td2] = table.addRow();
2810
+ td1.text("Read count");
2811
+ appendVafBars(td2, arc.vafs);
2812
+ }
2813
+ menu.show(mouseEvent.x, mouseEvent.y);
2814
+ }).on("mouseout", () => {
2815
+ menu.clear();
2816
+ menu.hide();
2817
+ }).on("click", (mouseEvent, arc) => {
2818
+ this.geneClickListener(arc.text, [arc.mname]);
2819
+ });
2820
+ }
2821
+ };
2822
+
2823
+ // plots/disco/loh/LohRenderer.ts
2824
+ var LohRenderer = class {
2825
+ render(holder, elements) {
2826
+ const arcGenerator = arc_default();
2827
+ const arcs = holder.append("g");
2828
+ const menu = MenuProvider.create();
2829
+ arcs.selectAll("path").data(elements).enter().append("path").attr("d", (d) => arcGenerator(d)).attr("fill", (d) => d.color).on("mouseover", (mouseEvent, arc) => {
2830
+ const table = table2col({ holder: menu.d });
2831
+ const loh = structuredClone(arc);
2832
+ loh.dt = dtloh;
2833
+ loh.gene = loh.text;
2834
+ {
2835
+ const [td12, td22] = table.addRow();
2836
+ td12.text("Data type");
2837
+ td22.append("span").style("margin-left", "5px").text("Loss of Heterozygosity");
2838
+ }
2839
+ const [td1, td2] = table.addRow();
2840
+ td1.text("Position");
2841
+ td2.append("span").text(`${arc.chr}:${arc.start}-${arc.stop}`);
2842
+ menu.show(mouseEvent.x, mouseEvent.y);
2843
+ }).on("mouseout", () => {
2844
+ menu.clear();
2845
+ menu.hide();
2846
+ });
2847
+ }
2848
+ };
2849
+
2850
+ // plots/disco/cnv/CnvBarRenderer.ts
2851
+ var CnvBarRenderer = class {
2852
+ render(holder, elements) {
2853
+ const arcGenerator = arc_default();
2854
+ const arcs = holder.append("g");
2855
+ const hoverOverlay = holder.append("g").attr("class", "hover-overlay").style("pointer-events", "none");
2856
+ const menu = MenuProvider.create();
2857
+ arcs.selectAll("path").data(elements).enter().append("path").attr("d", (d) => arcGenerator(d)).attr("fill", (d) => d.color).on("mouseover", (mouseEvent, arc) => {
2858
+ hoverOverlay.selectAll("*").remove();
2859
+ hoverOverlay.append("path").datum(arc).attr("d", arcGenerator(arc)).attr("fill", "none").attr("stroke", "black").attr("stroke-width", 1);
2860
+ const cnv = structuredClone(arc);
2861
+ cnv.dt = dtcnv;
2862
+ cnv.samples = [{ sample_id: arc.sampleName }];
2863
+ cnv.gene = cnv.text;
2864
+ const table = table2col({ holder: menu.d });
2865
+ {
2866
+ const [c1, c2] = table.addRow();
2867
+ c1.text("CNV");
2868
+ c2.html(`<span style="background:${cnv.color}">&nbsp;&nbsp;</span> ${cnv.value}`);
2869
+ }
2870
+ {
2871
+ const [c1, c2] = table.addRow();
2872
+ c1.text("Position");
2873
+ c2.text(cnv.chr + ":" + cnv.start + "-" + cnv.stop);
2874
+ }
2875
+ {
2876
+ const [c1, c2] = table.addRow();
2877
+ c1.text("Unit");
2878
+ c2.text(cnv.value);
2879
+ }
2880
+ menu.show(mouseEvent.x, mouseEvent.y);
2881
+ }).on("mouseout", () => {
2882
+ hoverOverlay.selectAll("*").remove();
2883
+ menu.clear();
2884
+ menu.hide();
2885
+ });
2886
+ }
2887
+ };
2888
+
2889
+ // plots/disco/cnv/CnvHeatmapRenderer.ts
2890
+ var CnvHeatmapRenderer = class {
2891
+ constructor(positivePercentile = 0, negativePercentile = 0) {
2892
+ this.positivePercentile = positivePercentile;
2893
+ this.negativePercentile = negativePercentile;
2894
+ }
2895
+ render(holder, elements) {
2896
+ const arcGenerator = arc_default();
2897
+ const arcs = holder.append("g");
2898
+ const hoverOverlay = holder.append("g").attr("class", "hover-overlay").style("pointer-events", "none");
2899
+ const menu = MenuProvider.create();
2900
+ arcs.selectAll("path").data(elements).enter().append("path").attr("d", (d) => arcGenerator(d)).attr("fill", (d) => this.getColor(d.color, d.value)).on("mouseenter", (mouseEvent, arc) => {
2901
+ hoverOverlay.append("path").datum(arc).attr("d", arcGenerator(arc)).attr("fill", "none").attr("stroke", "black").attr("stroke-width", 1);
2902
+ const table = table2col({ holder: menu.d });
2903
+ const cnv = structuredClone(arc);
2904
+ cnv.dt = dtcnv;
2905
+ cnv.samples = [{ sample_id: arc.sampleName }];
2906
+ cnv.gene = cnv.text;
2907
+ {
2908
+ const [c1, c2] = table.addRow();
2909
+ c1.text("CNV");
2910
+ c2.html(
2911
+ `<span style="background:${this.getColor(
2912
+ cnv.color,
2913
+ cnv.value
2914
+ )}; border:solid lightgrey 0.1px;">&nbsp;&nbsp;</span> ${cnv.value}`
2915
+ );
2916
+ }
2917
+ {
2918
+ const [c1, c2] = table.addRow();
2919
+ c1.text("Position");
2920
+ c2.text(cnv.chr + ":" + cnv.start + "-" + cnv.stop);
2921
+ }
2922
+ menu.show(mouseEvent.x, mouseEvent.y);
2923
+ }).on("mouseleave", () => {
2924
+ hoverOverlay.selectAll("*").remove();
2925
+ menu.clear();
2926
+ menu.hide();
2927
+ });
2928
+ }
2929
+ // Computes fill color using linear scale between -P80, 0, and +P80
2930
+ getColor(color, value) {
2931
+ const maxValue = Math.max(this.positivePercentile, Math.abs(this.negativePercentile));
2932
+ return linear(
2933
+ [-maxValue, 0, maxValue],
2934
+ [color, "white", color]
2935
+ // transitions to white in the middle
2936
+ ).clamp(true)(value);
2937
+ }
2938
+ };
2939
+
2940
+ // plots/disco/waterfall/MutationWaterfallRenderer.ts
2941
+ var MutationWaterfallRenderer = class {
2942
+ constructor(dotRadius = 1.5) {
2943
+ this.dotRadius = dotRadius;
2944
+ }
2945
+ render(holder, elements) {
2946
+ if (!elements.length) return;
2947
+ const ringGroup = holder.append("g").attr("data-testid", "sjpp_mutation_waterfall_ring");
2948
+ const menu = MenuProvider.create();
2949
+ ringGroup.append("g").selectAll("circle").data(elements).enter().append("circle").attr("cx", (d) => Math.cos(d.startAngle - Math.PI / 2) * d.innerRadius).attr("cy", (d) => Math.sin(d.startAngle - Math.PI / 2) * d.innerRadius).attr("r", this.dotRadius).attr("fill", (d) => d.color).attr("opacity", 0.9).on("mouseover", (event, d) => {
2950
+ const distance = Math.round(Math.pow(10, d.logDistance));
2951
+ menu.clear();
2952
+ const table = table2col({ holder: menu.d });
2953
+ {
2954
+ const [td1, td2] = table.addRow();
2955
+ td1.text("Intermutation distance");
2956
+ td2.text(`${bplen(distance)}`);
2957
+ }
2958
+ menu.show(event.x, event.y);
2959
+ }).on("mouseout", () => {
2960
+ menu.clear();
2961
+ menu.hide();
2962
+ });
2963
+ this.renderAxis(ringGroup, elements[0]);
2964
+ }
2965
+ renderAxis(holder, referencePoint) {
2966
+ const { ringInnerRadius, ringWidth, rangeMin, rangeMax } = referencePoint;
2967
+ const axisGroup = holder.append("g").attr("class", "sjpp-waterfall-axis");
2968
+ const topRadius = ringInnerRadius + ringWidth;
2969
+ axisGroup.append("line").attr("x1", 0).attr("y1", -topRadius).attr("x2", 0).attr("y2", -ringInnerRadius).attr("stroke", "#6e6e6e").attr("stroke-width", 1);
2970
+ const span = rangeMax - rangeMin || 1;
2971
+ const tickValues = rangeMax === rangeMin ? [rangeMin] : ticks(rangeMin, rangeMax, 4);
2972
+ tickValues.forEach((value) => {
2973
+ const ratio = (value - rangeMin) / span;
2974
+ const radius = ringInnerRadius + ringWidth * ratio;
2975
+ const y = -radius;
2976
+ axisGroup.append("line").attr("x1", -4).attr("x2", 4).attr("y1", y).attr("y2", y).attr("stroke", "#6e6e6e");
2977
+ const exponent = Math.round(value * 10) / 10;
2978
+ const formatted = Number.isInteger(exponent) ? `${exponent}` : exponent.toFixed(1);
2979
+ axisGroup.append("text").attr("x", 6).attr("y", y + 3).style("font-size", "10px").style("fill", "#4d4d4d").text(`10^${formatted} bp`);
2980
+ });
2981
+ }
2982
+ };
2983
+
2984
+ // plots/disco/Disco.ts
2985
+ var Disco = class {
2986
+ constructor(opts) {
2987
+ this.recreateViewModel = false;
2988
+ this.onCnvSourceSelect = (index) => {
2989
+ const state = this.app.getState();
2990
+ const args = state.args;
2991
+ const alt = args.alternativeDataByDt?.[dtcnv];
2992
+ if (!alt) return;
2993
+ const altClone = structuredClone(args.alternativeDataByDt);
2994
+ altClone[dtcnv].forEach((d, i) => d.inuse = i === index);
2995
+ const selected = altClone[dtcnv][index];
2996
+ selected.mlst.forEach((d) => d.position = d.pos);
2997
+ const baseData = args.data.filter((d) => d.dt != dtcnv && d.dt != dtloh);
2998
+ const newData = baseData.concat(selected.mlst);
2999
+ this.app.dispatch({
3000
+ type: "app_refresh",
3001
+ state: { args: { ...args, data: newData, alternativeDataByDt: altClone } }
3002
+ });
3003
+ };
3004
+ this.type = "Disco";
3005
+ this.opts = opts;
3006
+ this.isOpen = false;
3007
+ this.discoInteractions = new DiscoInteractions(this);
3008
+ }
3009
+ static {
3010
+ this.type = "Disco";
3011
+ }
3012
+ async init() {
3013
+ const state = this.app.getState();
3014
+ const settings = state.plots.find((p) => p.id === this.id).settings;
3015
+ this.stateViewModelMapper = new ViewModelMapper(settings, this.discoInteractions);
3016
+ this.viewModel = this.stateViewModelMapper.map(state);
3017
+ const holder = this.opts.holder;
3018
+ const controlsHolder = holder.append("div").style("display", "inline-block").style("vertical-align", "top");
3019
+ const mainDiv = holder.append("div").style("display", "inline-block");
3020
+ const topbar = controlsHolder.append("div");
3021
+ const config_div = controlsHolder.append("div");
3022
+ const configInputsOptions = this.getConfigInputsOptions(this.viewModel);
3023
+ this.features = await multiInit({
3024
+ topbar: topBarInit({
3025
+ app: this.app,
3026
+ id: this.id,
3027
+ // TODO change the way svg is selected
3028
+ downloadHandler: () => this.discoInteractions.downloadClickListener(holder.select('svg[id="sjpp_disco_plot"]').node()),
3029
+ callback: () => this.toggleVisibility(this.isOpen),
3030
+ isOpen: () => this.isOpen,
3031
+ holder: topbar
3032
+ }),
3033
+ config: configUiInit({
3034
+ app: this.app,
3035
+ id: this.id,
3036
+ holder: config_div,
3037
+ isOpen: () => this.isOpen,
3038
+ inputs: configInputsOptions
3039
+ })
3040
+ });
3041
+ this.errorDiv = mainDiv.append("div").attr("data-testid", "sjpp-disco-errorDiv");
3042
+ this.svgDiv = mainDiv.append("div").attr("data-testid", "sjpp-disco-svgDiv");
3043
+ }
3044
+ getConfigInputsOptions(viewModel) {
3045
+ const configInputsOptions = [];
3046
+ if (viewModel.settings.Disco.showPrioritizeGeneLabelsByGeneSets) {
3047
+ const filterMutationsGenesCheckbox = [
3048
+ {
3049
+ boxLabel: viewModel.genesetName,
3050
+ label: `Filter mutations`,
3051
+ type: "checkbox",
3052
+ chartType: "Disco",
3053
+ settingsKey: "prioritizeGeneLabelsByGeneSets",
3054
+ title: `Only show mutations for ${viewModel.genesetName} genes`
3055
+ }
3056
+ ];
3057
+ configInputsOptions.push(...filterMutationsGenesCheckbox);
3058
+ }
3059
+ if (viewModel.cnvMaxValue !== 0 || viewModel.cnvMinValue !== 0) {
3060
+ const cnvConfigInputOptions = [
3061
+ {
3062
+ boxLabel: "",
3063
+ label: "CNV rendering type",
3064
+ type: "radio",
3065
+ chartType: "Disco",
3066
+ settingsKey: "cnvRenderingType",
3067
+ title: "CNV rendering type",
3068
+ options: [
3069
+ { label: "Heatmap", value: "heatmap" /* heatmap */ },
3070
+ { label: "Bar", value: "bar" /* bar */ }
3071
+ ]
3072
+ }
3073
+ ];
3074
+ configInputsOptions.push(...cnvConfigInputOptions);
3075
+ }
3076
+ configInputsOptions.push({
3077
+ boxLabel: "",
3078
+ label: "Show gene names",
3079
+ type: "checkbox",
3080
+ chartType: "Disco",
3081
+ settingsKey: "showGeneNames",
3082
+ title: "Show gene name labels on the outside of the plot"
3083
+ });
3084
+ const genomeChr = this.app.opts.state.args.genome.majorchr;
3085
+ const chromosomeConfigOption = {
3086
+ label: "Chromosomes",
3087
+ title: "Chromosomes shown in the plot",
3088
+ type: "multiCheckbox",
3089
+ chartType: "Disco",
3090
+ settingsKey: "hiddenChromosomes",
3091
+ style: {
3092
+ colNum: 4
3093
+ },
3094
+ options: Object.keys(genomeChr).map((c) => ({ label: c, value: c })),
3095
+ processInput: (values = []) => {
3096
+ const reverse = Object.keys(genomeChr).filter((c) => !values.includes(c));
3097
+ return reverse;
3098
+ }
3099
+ };
3100
+ configInputsOptions.push(chromosomeConfigOption);
3101
+ configInputsOptions.push({
3102
+ boxLabel: "",
3103
+ label: "Auto radius",
3104
+ type: "checkbox",
3105
+ chartType: "Disco",
3106
+ settingsKey: "autoRadius",
3107
+ title: "Automatically set the radius based on the number of data rings"
3108
+ });
3109
+ const dimensionOptions = [
3110
+ {
3111
+ label: "Radius",
3112
+ title: "Set the radius of the entire plot, between 200 and 1000 pixels.",
3113
+ type: "number",
3114
+ chartType: "Disco",
3115
+ settingsKey: "radius",
3116
+ debounceInterval: 500,
3117
+ step: 25,
3118
+ min: 200,
3119
+ max: 1e3,
3120
+ getDisplayStyle: (plot) => plot.settings.Disco.autoRadius ? "none" : "table-row"
3121
+ },
3122
+ {
3123
+ label: "Fusion opacity",
3124
+ title: "Adjust opacity of fusion arcs, between 0 and 1",
3125
+ type: "number",
3126
+ chartType: "Disco",
3127
+ settingsKey: "fusionOpacity",
3128
+ step: 0.01,
3129
+ min: 0,
3130
+ max: 1,
3131
+ debounceInterval: 500
3132
+ }
3133
+ ];
3134
+ configInputsOptions.push(...dimensionOptions);
3135
+ if (viewModel.canShowMutationWaterfallPlot && viewModel.snvDataLength > 0) {
3136
+ configInputsOptions.push({
3137
+ boxLabel: "",
3138
+ label: "Mutation Waterfall Plot",
3139
+ type: "checkbox",
3140
+ chartType: "Disco",
3141
+ settingsKey: "mutationWaterfallPlot",
3142
+ title: "Render log10 intermutation distance ring for SNV/indel data"
3143
+ });
3144
+ }
3145
+ return configInputsOptions;
3146
+ }
3147
+ async main() {
3148
+ const settings = this.state.settings;
3149
+ this.isOpen = settings.Disco.isOpen;
3150
+ if (this.recreateViewModel) {
3151
+ this.stateViewModelMapper = new ViewModelMapper(settings, this.discoInteractions);
3152
+ this.viewModel = this.stateViewModelMapper.map(this.app.getState());
3153
+ }
3154
+ this.recreateViewModel = true;
3155
+ if (this.viewModel) {
3156
+ this.svgDiv.selectAll("*").remove();
3157
+ const appState = this.app.getState();
3158
+ this.viewModel.svgDiv = this.svgDiv;
3159
+ this.viewModel.appState = appState;
3160
+ for (const name in this.features) {
3161
+ this.features[name].update({ state: this.state, appState });
3162
+ }
3163
+ const legendRenderer = new LegendRenderer(this.viewModel.cappedCnvMaxAbsValue, settings.label.fontSize);
3164
+ const discoRenderer = new DiscoRenderer(
3165
+ this.getRingRenderers(this.viewModel.settings, this.viewModel, this.discoInteractions.geneClickListener),
3166
+ legendRenderer,
3167
+ this.app.opts.state.args.genome
3168
+ );
3169
+ discoRenderer.render(this.svgDiv, this.viewModel, this.onCnvSourceSelect);
3170
+ if (this.viewModel.invalidDataInfo?.entries?.length) {
3171
+ InvalidDataUI.render(this.errorDiv, this.viewModel.invalidDataInfo);
3172
+ }
3173
+ }
3174
+ }
3175
+ getState(appState) {
3176
+ const config = appState.plots.find((p) => p.id === this.id);
3177
+ if (!config) return config;
3178
+ return { ...config, mlst: appState.args.data };
3179
+ }
3180
+ getRingRenderers(settings, viewModel, geneClickListener) {
3181
+ const chromosomesRenderer = new ChromosomesRenderer(
3182
+ settings.padAngle,
3183
+ settings.rings.chromosomeInnerRadius,
3184
+ settings.rings.chromosomeInnerRadius + settings.rings.chromosomeWidth,
3185
+ settings.label.fontSize
3186
+ );
3187
+ const labelsRenderer = new LabelsRenderer(
3188
+ settings.label.animationDuration,
3189
+ settings.label.fontSize,
3190
+ geneClickListener
3191
+ );
3192
+ const nonExonicSnvRenderer = new NonExonicSnvRenderer(geneClickListener);
3193
+ const snvRenderer = new SnvRenderer(settings.rings.snvRingWidth, geneClickListener);
3194
+ const cnvRenderer = settings.Disco.cnvRenderingType === "heatmap" /* heatmap */ ? new CnvHeatmapRenderer(viewModel.positivePercentile, viewModel.negativePercentile) : new CnvBarRenderer();
3195
+ const lohRenderer = new LohRenderer();
3196
+ const mutationWaterfallRenderer = new MutationWaterfallRenderer();
3197
+ const renderersMap = /* @__PURE__ */ new Map();
3198
+ renderersMap.set(0 /* CHROMOSOME */, chromosomesRenderer);
3199
+ renderersMap.set(1 /* LABEL */, labelsRenderer);
3200
+ renderersMap.set(2 /* NONEXONICSNV */, nonExonicSnvRenderer);
3201
+ renderersMap.set(3 /* SNV */, snvRenderer);
3202
+ renderersMap.set(4 /* MUTATION_WATERFALL */, mutationWaterfallRenderer);
3203
+ renderersMap.set(5 /* CNV */, cnvRenderer);
3204
+ renderersMap.set(6 /* LOH */, lohRenderer);
3205
+ return renderersMap;
3206
+ }
3207
+ toggleVisibility(isOpen) {
3208
+ this.app.dispatch({
3209
+ type: "plot_edit",
3210
+ id: this.opts.id,
3211
+ config: {
3212
+ settings: {
3213
+ Disco: { isOpen: !isOpen }
3214
+ }
3215
+ }
3216
+ });
3217
+ }
3218
+ };
3219
+ var discoInit = getCompInit(Disco);
3220
+ var componentInit = discoInit;
3221
+ async function getPlotConfig(opts, app) {
3222
+ return {
3223
+ chartType: "Disco",
3224
+ subfolder: "disco",
3225
+ extension: "ts",
3226
+ settings: discoDefaults(opts.overrides, app)
3227
+ };
3228
+ }
3229
+ export {
3230
+ componentInit,
3231
+ Disco as default,
3232
+ discoInit,
3233
+ getPlotConfig
3234
+ };
3235
+ //# sourceMappingURL=Disco-6FDT6KRM.js.map