@sjcrh/proteinpaint-client 2.200.0 → 2.201.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 (993) hide show
  1. package/dist/2dmaf-6MNHNHWX.js +1373 -0
  2. package/dist/AIProjectAdmin-W36NGUX2.js +958 -0
  3. package/dist/AggregateMatrix-YH2SN6VN.js +671 -0
  4. package/dist/AggregateMatrix-YH2SN6VN.js.map +7 -0
  5. package/dist/AppHeader-I5CFECIL.js +835 -0
  6. package/dist/BoxPlot-4SXDAOBP.js +1218 -0
  7. package/dist/CorrelationVolcano-NAWMGG4Q.js +619 -0
  8. package/dist/DE-VZMT7KEM.js +95 -0
  9. package/dist/DEinput-TKERM2YD.js +409 -0
  10. package/dist/DifferentialAnalysis-Y4SU4BVP.js +243 -0
  11. package/dist/Disco-DLK3BYPV.js +3392 -0
  12. package/dist/Disco.UI-IKGMFG36.js +248 -0
  13. package/dist/DmrPlot-JWBZJFS6.js +642 -0
  14. package/dist/GB-3UZSSIBW.js +1396 -0
  15. package/dist/GSEA-YLHBZY55.js +846 -0
  16. package/dist/GeneExpInput-KX5I63YV.js +367 -0
  17. package/dist/Geomap-QTUHM4VH.js +89 -0
  18. package/dist/HicApp-M2OCHGRT.js +2250 -0
  19. package/dist/IDCViewer-SWFBLBZH.js +10817 -0
  20. package/dist/NumBinaryEditor-ILFP6DR7.js +284 -0
  21. package/dist/NumBinaryEditor-ILFP6DR7.js.map +7 -0
  22. package/dist/NumBinaryEditor.unit.spec-TNIH7GQB.js +317 -0
  23. package/dist/NumBinaryEditor.unit.spec-TNIH7GQB.js.map +7 -0
  24. package/dist/NumContEditor-7UR3QMO6.js +110 -0
  25. package/dist/NumContEditor-7UR3QMO6.js.map +7 -0
  26. package/dist/NumContEditor.unit.spec-P67AFEHM.js +169 -0
  27. package/dist/NumCustomBinEditor-H22J4K47.js +38 -0
  28. package/dist/NumCustomBinEditor.unit.spec-CO76BQPZ.js +402 -0
  29. package/dist/NumCustomBinEditor.unit.spec-CO76BQPZ.js.map +7 -0
  30. package/dist/NumDiscreteEditor-TSUHVX77.js +175 -0
  31. package/dist/NumDiscreteEditor-TSUHVX77.js.map +7 -0
  32. package/dist/NumDiscreteEditor.unit.spec-RGC3GT22.js +238 -0
  33. package/dist/NumDiscreteEditor.unit.spec-RGC3GT22.js.map +7 -0
  34. package/dist/NumRegularBinEditor-IRD27CE2.js +38 -0
  35. package/dist/NumRegularBinEditor.unit.spec-MUHVOK5P.js +283 -0
  36. package/dist/NumRegularBinEditor.unit.spec-MUHVOK5P.js.map +7 -0
  37. package/dist/NumSplineEditor-3V7RWHE2.js +215 -0
  38. package/dist/NumSplineEditor-3V7RWHE2.js.map +7 -0
  39. package/dist/NumSplineEditor.unit.spec-BUI7NPN4.js +229 -0
  40. package/dist/NumSplineEditor.unit.spec-BUI7NPN4.js.map +7 -0
  41. package/dist/NumericDensity-53KMCTDL.js +38 -0
  42. package/dist/NumericDensity.unit.spec-OKAQPQHR.js +423 -0
  43. package/dist/NumericDensity.unit.spec-OKAQPQHR.js.map +7 -0
  44. package/dist/NumericHandler-5QFNXVBA.js +39 -0
  45. package/dist/NumericHandler.unit.spec-OBITSUU3.js +219 -0
  46. package/dist/ProteomeInput-MM373EL3.js +394 -0
  47. package/dist/RunChart2-2L6T3ITZ.js +758 -0
  48. package/dist/SC-JKD3Z2X5.js +1112 -0
  49. package/dist/Volcano-STGBS7IJ.js +1404 -0
  50. package/dist/WSIViewer-LOBVUTOD.js +48562 -0
  51. package/dist/WsiSamplesPlot-D3L3AILR.js +165 -0
  52. package/dist/adSandbox-XO5HDSFW.js +38 -0
  53. package/dist/animatedBubbleChart-XKW6TCZP.js +553 -0
  54. package/dist/app-H7ABTG6X.js +49 -0
  55. package/dist/app-HJSPIKRQ.js +37 -0
  56. package/dist/app.js +19 -19
  57. package/dist/bam-R5QVHWGY.js +859 -0
  58. package/dist/barchart-OGCLBPQ2.js +47 -0
  59. package/dist/barchart.data-VBSWS5N7.js +21 -0
  60. package/dist/barchart.events-GZTY4IC3.js +47 -0
  61. package/dist/barchart.integration.spec-Z6ECNFSM.js +2243 -0
  62. package/dist/barchart2-DT42I747.js +314 -0
  63. package/dist/block-UYYJXSCM.js +6255 -0
  64. package/dist/block.init-43M53IMA.js +38 -0
  65. package/dist/block.mds.expressionrank-YH3IWMKM.js +359 -0
  66. package/dist/block.mds.geneboxplot-QS2IK37X.js +828 -0
  67. package/dist/block.mds.junction-7FF5BFEX.js +1545 -0
  68. package/dist/block.mds.svcnv-MMJYLL2W.js +6801 -0
  69. package/dist/block.svg-SA6DSUM2.js +164 -0
  70. package/dist/block.tk.aicheck-ZX5LZ2QO.js +283 -0
  71. package/dist/block.tk.ase-YXT4BOXK.js +365 -0
  72. package/dist/block.tk.bam-IMLRIOOV.js +1906 -0
  73. package/dist/block.tk.bedgraphdot-UYQLL7HM.js +384 -0
  74. package/dist/block.tk.bigwig.ui-WUVLVRSM.js +211 -0
  75. package/dist/block.tk.hicstraw-N4SJGF7H.js +823 -0
  76. package/dist/block.tk.junction-LZWHFKWJ.js +2364 -0
  77. package/dist/block.tk.junction.textmatrixui-B626NYPA.js +199 -0
  78. package/dist/block.tk.ld-6VWUMAP6.js +99 -0
  79. package/dist/block.tk.menu-RRN2UPQX.js +1029 -0
  80. package/dist/block.tk.pgv-GYG3EI6P.js +944 -0
  81. package/dist/brainImaging-VIMLETC5.js +423 -0
  82. package/dist/brainRegions-DRYZT5K5.js +221 -0
  83. package/dist/bubbleHeatmap-Y4SGMVJY.js +383 -0
  84. package/dist/cellTypeBubbleHeatmap-QW37ZT5W.js +283 -0
  85. package/dist/chunk-2Y5C7GJS.js +299 -0
  86. package/dist/chunk-2ZTCRUOL.js +2899 -0
  87. package/dist/chunk-3O6XFPUB.js +243 -0
  88. package/dist/chunk-3O6XFPUB.js.map +7 -0
  89. package/dist/chunk-3P74DH6P.js +236 -0
  90. package/dist/chunk-3PPCZPLN.js +98 -0
  91. package/dist/chunk-4H4WJJ2G.js +54 -0
  92. package/dist/chunk-4L2OSDQ6.js +626 -0
  93. package/dist/chunk-4USLEUNR.js +1812 -0
  94. package/dist/chunk-5ITKSTJX.js +34 -0
  95. package/dist/chunk-5VMYXVZG.js +272 -0
  96. package/dist/chunk-75T7ESEO.js +61 -0
  97. package/dist/chunk-75T7ESEO.js.map +7 -0
  98. package/dist/chunk-7ZVFLC2V.js +134 -0
  99. package/dist/chunk-A7OWXDYA.js +129 -0
  100. package/dist/chunk-A7OWXDYA.js.map +7 -0
  101. package/dist/chunk-C2JHLAKV.js +222 -0
  102. package/dist/chunk-C2JHLAKV.js.map +7 -0
  103. package/dist/chunk-C5IAIOCA.js +102 -0
  104. package/dist/chunk-CIRCVMWE.js +102 -0
  105. package/dist/chunk-CLTRQZGJ.js +170 -0
  106. package/dist/chunk-CRH37PEV.js +203 -0
  107. package/dist/chunk-DCNDZOI3.js +6364 -0
  108. package/dist/chunk-DCR4QQ5Y.js +194 -0
  109. package/dist/chunk-DKAHHMKN.js +5070 -0
  110. package/dist/chunk-E2GHT7RH.js +39 -0
  111. package/dist/chunk-EQCVSUAF.js +37 -0
  112. package/dist/chunk-ETK36FXN.js +384 -0
  113. package/dist/chunk-FCOX5Q4Q.js +58 -0
  114. package/dist/chunk-FVL37XFU.js +834 -0
  115. package/dist/chunk-FXQXCOII.js +101 -0
  116. package/dist/chunk-FXQXCOII.js.map +7 -0
  117. package/dist/chunk-FXS4I3Z3.js +176 -0
  118. package/dist/chunk-FYAY6D3O.js +123 -0
  119. package/dist/chunk-GEQUQ3GG.js +1652 -0
  120. package/dist/chunk-GEQUQ3GG.js.map +7 -0
  121. package/dist/chunk-GL44X7JY.js +302 -0
  122. package/dist/chunk-HQAJVJCQ.js +195 -0
  123. package/dist/chunk-HQAJVJCQ.js.map +7 -0
  124. package/dist/chunk-IQVBMLFI.js +446 -0
  125. package/dist/chunk-IYT5PNYJ.js +148 -0
  126. package/dist/chunk-J6EP7JPJ.js +1245 -0
  127. package/dist/chunk-JKMN7XOP.js +1114 -0
  128. package/dist/chunk-JKMN7XOP.js.map +7 -0
  129. package/dist/chunk-JLGCQ2F4.js +480 -0
  130. package/dist/chunk-JQT67SWE.js +263 -0
  131. package/dist/chunk-JQYPRW42.js +217 -0
  132. package/dist/chunk-K4IGOJPT.js +160 -0
  133. package/dist/chunk-K6OVOHIZ.js +21483 -0
  134. package/dist/chunk-K6OVOHIZ.js.map +7 -0
  135. package/dist/chunk-KPTPDZX2.js +56 -0
  136. package/dist/chunk-KTB7KXC2.js +187 -0
  137. package/dist/chunk-KW7MKBGF.js +2681 -0
  138. package/dist/chunk-KZFVYDVK.js +448 -0
  139. package/dist/chunk-L44P5N4U.js +314 -0
  140. package/dist/chunk-L44P5N4U.js.map +7 -0
  141. package/dist/chunk-M77DCLJX.js +100 -0
  142. package/dist/chunk-MFEYO6FB.js +4306 -0
  143. package/dist/chunk-MFEYO6FB.js.map +7 -0
  144. package/dist/chunk-MGGAWPTR.js +54 -0
  145. package/dist/chunk-MKPU5TWN.js +194 -0
  146. package/dist/chunk-MKPU5TWN.js.map +7 -0
  147. package/dist/chunk-MUJMZ6W6.js +129 -0
  148. package/dist/chunk-NRP55BOF.js +50 -0
  149. package/dist/chunk-O5KFJBU3.js +1942 -0
  150. package/dist/chunk-Q4AP5L7R.js +1311 -0
  151. package/dist/chunk-Q4AP5L7R.js.map +7 -0
  152. package/dist/chunk-QHPN3JJZ.js +55 -0
  153. package/dist/chunk-QSGXZEUU.js +465 -0
  154. package/dist/chunk-R3ARQMM4.js +119 -0
  155. package/dist/chunk-RIQT2LSR.js +479 -0
  156. package/dist/chunk-RVRRHEUG.js +26 -0
  157. package/dist/chunk-SOCGXVIL.js +2327 -0
  158. package/dist/chunk-SZHFBRRT.js +514 -0
  159. package/dist/chunk-TOYMIFHN.js +381 -0
  160. package/dist/chunk-TPVHGI7Q.js +368 -0
  161. package/dist/chunk-TRQUMV4T.js +254 -0
  162. package/dist/chunk-UFLJ6PRI.js +387 -0
  163. package/dist/chunk-UFLJ6PRI.js.map +7 -0
  164. package/dist/chunk-UJN2RH5R.js +411 -0
  165. package/dist/chunk-UJN2RH5R.js.map +7 -0
  166. package/dist/chunk-UO7MD3XA.js +556 -0
  167. package/dist/chunk-UONOFG2J.js +274 -0
  168. package/dist/chunk-V2DU2OXH.js +1710 -0
  169. package/dist/chunk-WWXXSQ2M.js +31 -0
  170. package/dist/chunk-X6VTVZY7.js +263 -0
  171. package/dist/chunk-X7KRSZQT.js +2784 -0
  172. package/dist/chunk-XFAL46LZ.js +102 -0
  173. package/dist/chunk-XFAL46LZ.js.map +7 -0
  174. package/dist/chunk-XIBY5I6F.js +240 -0
  175. package/dist/chunk-XIBY5I6F.js.map +7 -0
  176. package/dist/chunk-XJBSBIZ4.js +70 -0
  177. package/dist/chunk-XRQWZJJ3.js +347 -0
  178. package/dist/chunk-XZ4M3QAV.js +158 -0
  179. package/dist/chunk-YMP4YKBN.js +142 -0
  180. package/dist/chunk-YUURGVV3.js +275 -0
  181. package/dist/chunk-Z7VK2AMA.js +292 -0
  182. package/dist/chunk-ZFJUVP2N.js +787 -0
  183. package/dist/chunk-ZH7JPYQE.js +14 -0
  184. package/dist/chunk-ZVDOSFWU.js +276 -0
  185. package/dist/cohort-CEYVJJ7E.js +75 -0
  186. package/dist/condition-QSOFP4MY.js +332 -0
  187. package/dist/controls-QYHARIEY.js +39 -0
  188. package/dist/controls.config-3OO3JK6E.js +39 -0
  189. package/dist/correlation-TOI3TMYL.js +102 -0
  190. package/dist/cuminc-L7OJTYXC.js +1148 -0
  191. package/dist/cuminc.integration.spec-LSWV3KOF.js +678 -0
  192. package/dist/customdata.inputui-VMB3HSSC.js +289 -0
  193. package/dist/dataDownload-NPSWNOAG.js +330 -0
  194. package/dist/dataDownload.integration.spec-J6FRFLBK.js +193 -0
  195. package/dist/databrowser.ui-GVYWG6YI.js +432 -0
  196. package/dist/dictionary-GD67R72W.js +118 -0
  197. package/dist/dnaMethylation-S7OSGLAF.js +38 -0
  198. package/dist/dnaMethylation.integration.spec-ETMMJNDE.js +203 -0
  199. package/dist/dofetch-7GURQS65.js +51 -0
  200. package/dist/e2pca-ZIIPBJFN.js +350 -0
  201. package/dist/ep-A2HAL5WA.js +1256 -0
  202. package/dist/expclust.gdc.spec-ZSILLYNI.js +307 -0
  203. package/dist/facet-74LKIPTA.js +521 -0
  204. package/dist/gb-C3MPQXKN.js +88 -0
  205. package/dist/geneExpClustering-HYCFUUTU.js +249 -0
  206. package/dist/geneExpression-GATKMJJ5.js +313 -0
  207. package/dist/geneExpression-JXSAP2H7.js +38 -0
  208. package/dist/geneExpression.unit.spec-CODZYFHZ.js +102 -0
  209. package/dist/geneORA-LJRIR4VV.js +278 -0
  210. package/dist/geneRanking-TWLBKQZG.js +553 -0
  211. package/dist/geneVariant-35RQHTCK.js +41 -0
  212. package/dist/geneVariant-TMJJIMUF.js +39 -0
  213. package/dist/geneVariant.integration.spec-FIQ7IBSD.js +198 -0
  214. package/dist/genefusion.ui-SOBESSNO.js +308 -0
  215. package/dist/geneset-JXEJFEK2.js +208 -0
  216. package/dist/genomeBrowser.spec-25ZO5S2X.js +281 -0
  217. package/dist/grin2-CW4RPVPI.js +75 -0
  218. package/dist/grin2-EI5BVP4E.js +1143 -0
  219. package/dist/hierCluster-OBBPQH24.js +59 -0
  220. package/dist/hierCluster-SDH3TJQY.js +63 -0
  221. package/dist/hierCluster.config-DO67TCXI.js +40 -0
  222. package/dist/hierCluster.integration.spec-EB24C4VZ.js +488 -0
  223. package/dist/hierCluster.interactivity-LGEAFT5T.js +54 -0
  224. package/dist/hierCluster.renderers-FXDCU3PN.js +21 -0
  225. package/dist/imagePlot-LGLFG2QZ.js +163 -0
  226. package/dist/importPlot-R2WRZGZU.js +8 -0
  227. package/dist/isoformExpression-KI3WY5M3.js +40 -0
  228. package/dist/isoformExpression.unit.spec-OQRG2DDU.js +242 -0
  229. package/dist/junction-6SWFPNM5.js +41 -0
  230. package/dist/junction.customTerm-MDBOU6I7.js +18 -0
  231. package/dist/junction.unit.spec-5TZFITSU.js +187 -0
  232. package/dist/launch.adhoc-HCX2RQLB.js +42 -0
  233. package/dist/leftlabel.sample-OI6XCXTQ.js +263 -0
  234. package/dist/lollipop-SOSOYHYL.js +171 -0
  235. package/dist/maf-73RLOEVN.js +459 -0
  236. package/dist/maftimeline-UOMLYUNI.js +593 -0
  237. package/dist/matrix-5QWDN6SI.js +63 -0
  238. package/dist/matrix-SKPVVDVR.js +58 -0
  239. package/dist/matrix.cells-CFSI2NWU.js +28 -0
  240. package/dist/matrix.config-HE64MAL4.js +41 -0
  241. package/dist/matrix.data-HTUZXQAM.js +25 -0
  242. package/dist/matrix.groups-ZFKWVNMX.js +27 -0
  243. package/dist/matrix.integration.spec-YKJ4LZFY.js +3072 -0
  244. package/dist/matrix.interactivity-YB5G5W5T.js +42 -0
  245. package/dist/matrix.layout-MFG65V7K.js +44 -0
  246. package/dist/matrix.legend-7MIZZJVB.js +22 -0
  247. package/dist/matrix.renderers-PCZFHDDZ.js +38 -0
  248. package/dist/matrix.serieses-7KYX3KAY.js +21 -0
  249. package/dist/matrix.sort-CR3J45MQ.js +27 -0
  250. package/dist/matrix.sort.unit.spec-GEAM5DSU.js +472 -0
  251. package/dist/matrix.sorterUi-YSKIX6B6.js +18 -0
  252. package/dist/matrix.sorterUi.unit.spec-2MW64QS5.js +342 -0
  253. package/dist/mavb-YMHJXCGA.js +732 -0
  254. package/dist/mds.fimo-PTEDRMLQ.js +518 -0
  255. package/dist/mds.samplescatterplot-7R7PLVQJ.js +1550 -0
  256. package/dist/mds.survivalplot-F3EENMFQ.js +483 -0
  257. package/dist/numericDictTermCluster-3HXLMURH.js +65 -0
  258. package/dist/oncomatrix-27VVSMZB.js +295 -0
  259. package/dist/oncomatrix.spec-F43Y7CWN.js +448 -0
  260. package/dist/plot.2dvaf-MYFQSWIA.js +377 -0
  261. package/dist/plot.app-36QWCKXR.js +41 -0
  262. package/dist/plot.barplot-535EP7XT.js +102 -0
  263. package/dist/plot.boxplot-6IBP7VEB.js +152 -0
  264. package/dist/plot.brainImaging-M4HPNXZH.js +51 -0
  265. package/dist/plot.disco-HIT6GR44.js +102 -0
  266. package/dist/plot.dzi-W66SBKTH.js +33 -0
  267. package/dist/plot.ssgq-MI2OMCUY.js +139 -0
  268. package/dist/plot.vaf2cov-F4CBMLRA.js +259 -0
  269. package/dist/plot.wsi-7M5KTNFC.js +36 -0
  270. package/dist/polar2-7VSWGT4U.js +237 -0
  271. package/dist/profileForms-DFPCNJW2.js +940 -0
  272. package/dist/profilePlot-ECTPPVB2.js +54 -0
  273. package/dist/proteinView-6ELOLOIU.js +1568 -0
  274. package/dist/proteomeCohortCompare-V2FMWI62.js +799 -0
  275. package/dist/pseudbulk.unit.spec-KV6URTXC.js +91 -0
  276. package/dist/pseudobulk-6ZRFCE65.js +40 -0
  277. package/dist/qualitative-3B62RUOB.js +43 -0
  278. package/dist/qualitative-GJDQBD7L.js +220 -0
  279. package/dist/radar2-4QQER64E.js +332 -0
  280. package/dist/radarFacility2-MZKORRDY.js +340 -0
  281. package/dist/regression-GZ2YNX6Y.js +56 -0
  282. package/dist/regression.inputs-ZEFDNSVT.js +48 -0
  283. package/dist/regression.inputs.term-O2FQBX7L.js +48 -0
  284. package/dist/regression.inputs.values.table-63BQKSZP.js +45 -0
  285. package/dist/regression.integration.spec-KDHC3KDU.js +838 -0
  286. package/dist/regression.integration.spec-KDHC3KDU.js.map +7 -0
  287. package/dist/regression.results-5J3QM4RX.js +40 -0
  288. package/dist/regression.spec-WZAZTDDA.js +708 -0
  289. package/dist/render-MZTEXVU5.js +38 -0
  290. package/dist/report-M5TYHH2W.js +222 -0
  291. package/dist/sampleView-QYTLYJEW.js +48 -0
  292. package/dist/samplelst-FN3Q7M7A.js +111 -0
  293. package/dist/samplematrix-Z5FVODO7.js +2198 -0
  294. package/dist/sc-4CHP5SYP.js +86 -0
  295. package/dist/scatter-UOPJYXL3.js +890 -0
  296. package/dist/scatter-UOPJYXL3.js.map +7 -0
  297. package/dist/selectGenomeWithTklst-WMAHGT4F.js +134 -0
  298. package/dist/singleCellCellType-XPWENB6V.js +38 -0
  299. package/dist/singleCellCellType.unit.spec-QK56PHKW.js +159 -0
  300. package/dist/singleCellGeneExpression-4CEVDVYF.js +38 -0
  301. package/dist/singleCellGeneExpression.unit.spec-ZYRLBVF5.js +153 -0
  302. package/dist/singleCellPlot-JS74VUGC.js +54 -0
  303. package/dist/singlecell-5XYOHMWJ.js +1572 -0
  304. package/dist/singlecell-OO77XBDD.js +86 -0
  305. package/dist/snp-X5ZILM5J.js +38 -0
  306. package/dist/snp.unit.spec-V23G3JLJ.js +176 -0
  307. package/dist/snplocus-U5UIIUWR.js +208 -0
  308. package/dist/spliceevent.a53ss.diagram-YDFVSDMT.js +151 -0
  309. package/dist/spliceevent.exonskip.diagram-VDKN5JBE.js +283 -0
  310. package/dist/spliceevent.noeventdiagram-EFPFRUFI.js +460 -0
  311. package/dist/ssGSEA-LKJW5OQK.js +38 -0
  312. package/dist/ssGSEA.unit.spec-7WCZVEP2.js +88 -0
  313. package/dist/studyCatalog-EU33KE5H.js +358 -0
  314. package/dist/summarizeCnvGeneexp-QL25OQNB.js +163 -0
  315. package/dist/summarizeGeneexpSurvival-B7HTCH7L.js +110 -0
  316. package/dist/summarizeMutationCnv-DFAPX2JE.js +164 -0
  317. package/dist/summarizeMutationDiagnosis-HCSDSVII.js +40 -0
  318. package/dist/summarizeMutationSurvival-6WEASSA2.js +99 -0
  319. package/dist/summary-BWYXE77G.js +49 -0
  320. package/dist/summary.integration.spec-AVGSW5MF.js +414 -0
  321. package/dist/summaryInput-MOQ6HUCX.js +231 -0
  322. package/dist/sunburst-EZDHVJCL.js +284 -0
  323. package/dist/survival-5TFMM7NP.js +1239 -0
  324. package/dist/survival-IEVELTC4.js +58 -0
  325. package/dist/survival.integration.spec-HHWP3R4H.js +958 -0
  326. package/dist/svgraph-55XRIYJW.js +1387 -0
  327. package/dist/svmr-CMEBFSRO.js +3842 -0
  328. package/dist/table-LTWQ3TLQ.js +200 -0
  329. package/dist/termCollection-CPQXYBFA.js +38 -0
  330. package/dist/termCollection-ZWOH273K.js +257 -0
  331. package/dist/termCollection.unit.spec-RK7VATLU.js +304 -0
  332. package/dist/termCollectionFractionSelection-Z4ZRW63R.js +47 -0
  333. package/dist/termCollectionFractionSelection.unit.spec-3CS7DPNU.js +193 -0
  334. package/dist/tk-4NNTWWLK.js +46 -0
  335. package/dist/tk-RHWJJXH2.js +1127 -0
  336. package/dist/tp.ui-DPN5UN6U.js +1459 -0
  337. package/dist/tvs.density-LMRZZO4D.js +19 -0
  338. package/dist/tvs.dt-ARPDFRVM.js +39 -0
  339. package/dist/tvs.dtcnv.categorical-POS6WQK6.js +40 -0
  340. package/dist/tvs.dtcnv.continuous-5OETJ7JU.js +72 -0
  341. package/dist/tvs.dtfusion-ERYVI3DW.js +40 -0
  342. package/dist/tvs.dtitd-KTZZYEWU.js +40 -0
  343. package/dist/tvs.dtsnvindel-TGUAX3RN.js +40 -0
  344. package/dist/tvs.dtsv-AM63OIL6.js +40 -0
  345. package/dist/tvs.numeric-MQPO5XUQ.js +22 -0
  346. package/dist/tvs.samplelst-VW2NOQ2C.js +104 -0
  347. package/dist/tvs.termCollection-O4ZSWJFA.js +129 -0
  348. package/dist/violin-ZQ3DEYGR.js +46 -0
  349. package/dist/violin.integration.spec-PVEF77HB.js +1425 -0
  350. package/dist/violin.interactivity-FYU4TCFO.js +38 -0
  351. package/dist/violin.renderer-XAERGBMV.js +40 -0
  352. package/dist/vocabulary-ECJX27W2.js +41 -0
  353. package/package.json +3 -3
  354. package/dist/2dmaf-RRV3ORZR.js +0 -1373
  355. package/dist/AIProjectAdmin-DKLEFCGX.js +0 -958
  356. package/dist/AppHeader-WQ2F7HZY.js +0 -835
  357. package/dist/BoxPlot-5JQCYENZ.js +0 -1218
  358. package/dist/CorrelationVolcano-HR6IP2SZ.js +0 -619
  359. package/dist/DE-DAW6ZKM7.js +0 -95
  360. package/dist/DEinput-XCR4VMR3.js +0 -409
  361. package/dist/DifferentialAnalysis-SETJAZEN.js +0 -243
  362. package/dist/Disco-QEBEVQS2.js +0 -3392
  363. package/dist/Disco.UI-OYVL7UBI.js +0 -248
  364. package/dist/DmrPlot-CWBQDZL7.js +0 -642
  365. package/dist/GB-5PYCR4SV.js +0 -1396
  366. package/dist/GSEA-6UKMI6GY.js +0 -846
  367. package/dist/GeneExpInput-2N62XM7Z.js +0 -367
  368. package/dist/Geomap-ANMR32HE.js +0 -89
  369. package/dist/HicApp-WHPUPHEM.js +0 -2250
  370. package/dist/IDCViewer-FWXRE4AX.js +0 -10817
  371. package/dist/NumBinaryEditor-VG5KOGDA.js +0 -271
  372. package/dist/NumBinaryEditor-VG5KOGDA.js.map +0 -7
  373. package/dist/NumBinaryEditor.unit.spec-UCGFZS3P.js +0 -286
  374. package/dist/NumBinaryEditor.unit.spec-UCGFZS3P.js.map +0 -7
  375. package/dist/NumContEditor-J52RON3G.js +0 -109
  376. package/dist/NumContEditor-J52RON3G.js.map +0 -7
  377. package/dist/NumContEditor.unit.spec-5GTWUJEL.js +0 -169
  378. package/dist/NumCustomBinEditor-GM2OJMOX.js +0 -38
  379. package/dist/NumCustomBinEditor.unit.spec-3PGJ25J4.js +0 -284
  380. package/dist/NumCustomBinEditor.unit.spec-3PGJ25J4.js.map +0 -7
  381. package/dist/NumDiscreteEditor-2CAKT3Y4.js +0 -179
  382. package/dist/NumDiscreteEditor-2CAKT3Y4.js.map +0 -7
  383. package/dist/NumDiscreteEditor.unit.spec-XCWSJTRT.js +0 -202
  384. package/dist/NumDiscreteEditor.unit.spec-XCWSJTRT.js.map +0 -7
  385. package/dist/NumRegularBinEditor-CZYITY5L.js +0 -38
  386. package/dist/NumRegularBinEditor.unit.spec-OUBZ5XB3.js +0 -227
  387. package/dist/NumRegularBinEditor.unit.spec-OUBZ5XB3.js.map +0 -7
  388. package/dist/NumSplineEditor-TWRL5AQQ.js +0 -198
  389. package/dist/NumSplineEditor-TWRL5AQQ.js.map +0 -7
  390. package/dist/NumSplineEditor.unit.spec-5P6NQZ3N.js +0 -199
  391. package/dist/NumSplineEditor.unit.spec-5P6NQZ3N.js.map +0 -7
  392. package/dist/NumericDensity-JSOFOEH2.js +0 -38
  393. package/dist/NumericDensity.unit.spec-REUKHMKK.js +0 -221
  394. package/dist/NumericDensity.unit.spec-REUKHMKK.js.map +0 -7
  395. package/dist/NumericHandler-UZOGKPKB.js +0 -39
  396. package/dist/NumericHandler.unit.spec-X2DAED4O.js +0 -219
  397. package/dist/ProteomeInput-GBVCLNS7.js +0 -394
  398. package/dist/RunChart2-N4JPWNVV.js +0 -758
  399. package/dist/SC-RCZT5BRP.js +0 -1112
  400. package/dist/Volcano-2BQ6SYHO.js +0 -1404
  401. package/dist/WSIViewer-UDA4WIRT.js +0 -48562
  402. package/dist/WsiSamplesPlot-DYSFMD22.js +0 -165
  403. package/dist/adSandbox-5BUDCAER.js +0 -38
  404. package/dist/animatedBubbleChart-N6MBJ4X3.js +0 -553
  405. package/dist/app-O64TGDFH.js +0 -37
  406. package/dist/app-Y2STUISK.js +0 -49
  407. package/dist/bam-2EOABVGT.js +0 -859
  408. package/dist/barchart-UHCTYRMJ.js +0 -47
  409. package/dist/barchart.data-LSK2P2PR.js +0 -21
  410. package/dist/barchart.events-Y4H2GADS.js +0 -47
  411. package/dist/barchart.integration.spec-BFGZFECA.js +0 -2243
  412. package/dist/barchart2-VIZKZRMP.js +0 -314
  413. package/dist/block-BGSSF6XP.js +0 -6255
  414. package/dist/block.init-H7RKUIHG.js +0 -38
  415. package/dist/block.mds.expressionrank-MA3HGT7S.js +0 -359
  416. package/dist/block.mds.geneboxplot-CWT5DM5T.js +0 -828
  417. package/dist/block.mds.junction-P4I7O73X.js +0 -1545
  418. package/dist/block.mds.svcnv-NSPEY43S.js +0 -6801
  419. package/dist/block.svg-DP4G3LNQ.js +0 -164
  420. package/dist/block.tk.aicheck-EBLTOWKZ.js +0 -283
  421. package/dist/block.tk.ase-X7WKQOFS.js +0 -365
  422. package/dist/block.tk.bam-OIP3TS3N.js +0 -1906
  423. package/dist/block.tk.bedgraphdot-2DDF55J3.js +0 -384
  424. package/dist/block.tk.bigwig.ui-S2SMAEXM.js +0 -211
  425. package/dist/block.tk.hicstraw-4OIG4TBZ.js +0 -823
  426. package/dist/block.tk.junction-52OWEQUN.js +0 -2364
  427. package/dist/block.tk.junction.textmatrixui-64YOSZLW.js +0 -199
  428. package/dist/block.tk.ld-3AMNHBDY.js +0 -99
  429. package/dist/block.tk.menu-4724DJXL.js +0 -1029
  430. package/dist/block.tk.pgv-2SIOPWYI.js +0 -944
  431. package/dist/brainImaging-D43CQQN6.js +0 -423
  432. package/dist/brainRegions-HJ2VGL3L.js +0 -221
  433. package/dist/bubbleHeatmap-IL44M4QZ.js +0 -383
  434. package/dist/cellTypeBubbleHeatmap-NQP7RCZO.js +0 -283
  435. package/dist/chunk-26APRXD3.js +0 -254
  436. package/dist/chunk-2GLA2SWU.js +0 -160
  437. package/dist/chunk-3BGFM7Q4.js +0 -1275
  438. package/dist/chunk-3BGFM7Q4.js.map +0 -7
  439. package/dist/chunk-3SHZTAGF.js +0 -193
  440. package/dist/chunk-3SHZTAGF.js.map +0 -7
  441. package/dist/chunk-46X6AQ7Z.js +0 -123
  442. package/dist/chunk-4HZN6PMU.js +0 -129
  443. package/dist/chunk-4KRGCOTL.js +0 -479
  444. package/dist/chunk-5DMVORBB.js +0 -98
  445. package/dist/chunk-5QMBB4SK.js +0 -1245
  446. package/dist/chunk-5RVA43MN.js +0 -274
  447. package/dist/chunk-5T3MOOEJ.js +0 -379
  448. package/dist/chunk-5T3MOOEJ.js.map +0 -7
  449. package/dist/chunk-5T3ZDRTS.js +0 -70
  450. package/dist/chunk-5ZTVJSYI.js +0 -834
  451. package/dist/chunk-6JYQGZ3Y.js +0 -446
  452. package/dist/chunk-6OUBUUC2.js +0 -626
  453. package/dist/chunk-6PNPHACF.js +0 -1652
  454. package/dist/chunk-6PNPHACF.js.map +0 -7
  455. package/dist/chunk-7JRDJNLR.js +0 -263
  456. package/dist/chunk-7PIHRWGG.js +0 -102
  457. package/dist/chunk-7PJNKPQB.js +0 -275
  458. package/dist/chunk-AGLAYNXP.js +0 -170
  459. package/dist/chunk-B7VDZ6VF.js +0 -399
  460. package/dist/chunk-B7VDZ6VF.js.map +0 -7
  461. package/dist/chunk-BGTBRAJ6.js +0 -50
  462. package/dist/chunk-BNAO6N5X.js +0 -2899
  463. package/dist/chunk-BQHPJY2M.js +0 -347
  464. package/dist/chunk-BZTWTH4Y.js +0 -87
  465. package/dist/chunk-BZTWTH4Y.js.map +0 -7
  466. package/dist/chunk-CY4RQ5L6.js +0 -1710
  467. package/dist/chunk-D565DNJD.js +0 -236
  468. package/dist/chunk-DH3LAQKT.js +0 -384
  469. package/dist/chunk-E3VF4RHJ.js +0 -381
  470. package/dist/chunk-EGPNRSPF.js +0 -292
  471. package/dist/chunk-FACITNG5.js +0 -142
  472. package/dist/chunk-GNS6CQMA.js +0 -119
  473. package/dist/chunk-H3N4KYKL.js +0 -2327
  474. package/dist/chunk-H3VWJH4U.js +0 -14
  475. package/dist/chunk-HEVKBSN6.js +0 -222
  476. package/dist/chunk-HEVKBSN6.js.map +0 -7
  477. package/dist/chunk-HQUYAZQY.js +0 -514
  478. package/dist/chunk-IUBBQPO2.js +0 -146
  479. package/dist/chunk-IUBBQPO2.js.map +0 -7
  480. package/dist/chunk-J4USU73L.js +0 -26
  481. package/dist/chunk-JNITUVXP.js +0 -41
  482. package/dist/chunk-JNITUVXP.js.map +0 -7
  483. package/dist/chunk-JVPWIVDT.js +0 -1812
  484. package/dist/chunk-KU7YH7MV.js +0 -217
  485. package/dist/chunk-KZILNGAV.js +0 -187
  486. package/dist/chunk-LSEFWW72.js +0 -94
  487. package/dist/chunk-LSEFWW72.js.map +0 -7
  488. package/dist/chunk-M66VDGSH.js +0 -272
  489. package/dist/chunk-MJN6RDXB.js +0 -302
  490. package/dist/chunk-MPNEZ6EL.js +0 -31
  491. package/dist/chunk-MPSLUEI4.js +0 -314
  492. package/dist/chunk-MPSLUEI4.js.map +0 -7
  493. package/dist/chunk-NIXFCC7X.js +0 -368
  494. package/dist/chunk-NODQZTWK.js +0 -276
  495. package/dist/chunk-NRYHIWBS.js +0 -1942
  496. package/dist/chunk-NUWJ4RN7.js +0 -465
  497. package/dist/chunk-NVTJ5AUT.js +0 -1102
  498. package/dist/chunk-NVTJ5AUT.js.map +0 -7
  499. package/dist/chunk-NZRMHM76.js +0 -158
  500. package/dist/chunk-OOWXMY7U.js +0 -55
  501. package/dist/chunk-OTTMHVYH.js +0 -787
  502. package/dist/chunk-QDX2XUNF.js +0 -58
  503. package/dist/chunk-QYXCHZ6U.js +0 -4282
  504. package/dist/chunk-QYXCHZ6U.js.map +0 -7
  505. package/dist/chunk-R6NM2HSH.js +0 -556
  506. package/dist/chunk-RJOY6A74.js +0 -56
  507. package/dist/chunk-ROMW4AK2.js +0 -102
  508. package/dist/chunk-RR5U35N7.js +0 -230
  509. package/dist/chunk-RR5U35N7.js.map +0 -7
  510. package/dist/chunk-RVKADD4L.js +0 -148
  511. package/dist/chunk-S5ZCK44Z.js +0 -54
  512. package/dist/chunk-SNRIVNQ3.js +0 -176
  513. package/dist/chunk-STI7BO3P.js +0 -2681
  514. package/dist/chunk-TAM7UCAI.js +0 -263
  515. package/dist/chunk-TDKMBQSM.js +0 -5070
  516. package/dist/chunk-TKW5TW4Z.js +0 -21449
  517. package/dist/chunk-TKW5TW4Z.js.map +0 -7
  518. package/dist/chunk-TQTYW66I.js +0 -2784
  519. package/dist/chunk-U3NTH4CS.js +0 -54
  520. package/dist/chunk-UEGQVQD6.js +0 -34
  521. package/dist/chunk-ULESDMUT.js +0 -480
  522. package/dist/chunk-UUKSL7QC.js +0 -134
  523. package/dist/chunk-VUPWQCDR.js +0 -194
  524. package/dist/chunk-W76X6W73.js +0 -100
  525. package/dist/chunk-W7OS7BNM.js +0 -203
  526. package/dist/chunk-WKNI3HRQ.js +0 -39
  527. package/dist/chunk-WTTD6DUL.js +0 -6364
  528. package/dist/chunk-WXPFMVU6.js +0 -299
  529. package/dist/chunk-XNWUI5VL.js +0 -37
  530. package/dist/chunk-YBLTSYQV.js +0 -216
  531. package/dist/chunk-YBLTSYQV.js.map +0 -7
  532. package/dist/chunk-Z7VDFWIP.js +0 -126
  533. package/dist/chunk-Z7VDFWIP.js.map +0 -7
  534. package/dist/chunk-ZEKIUYN3.js +0 -448
  535. package/dist/cohort-OWLNJZVH.js +0 -75
  536. package/dist/condition-L2IXP6WH.js +0 -332
  537. package/dist/controls-2S5QVWUC.js +0 -39
  538. package/dist/controls.config-3AJKR4ZZ.js +0 -39
  539. package/dist/correlation-DXTAWSLU.js +0 -102
  540. package/dist/cuminc-WQB6FHVS.js +0 -1148
  541. package/dist/cuminc.integration.spec-WAYRLHUH.js +0 -678
  542. package/dist/customdata.inputui-7WH2NJGB.js +0 -289
  543. package/dist/dataDownload-HM4UYOBO.js +0 -330
  544. package/dist/dataDownload.integration.spec-F5CO4BWA.js +0 -193
  545. package/dist/databrowser.ui-E2YOG3L4.js +0 -432
  546. package/dist/dictionary-EEPTFDYD.js +0 -118
  547. package/dist/dnaMethylation-N3WNK6XA.js +0 -38
  548. package/dist/dnaMethylation.integration.spec-AIYRTFMR.js +0 -203
  549. package/dist/dofetch-YKYPEJTQ.js +0 -51
  550. package/dist/e2pca-JEZIGVB2.js +0 -350
  551. package/dist/ep-5FMH2MLV.js +0 -1256
  552. package/dist/expclust.gdc.spec-FR26VSUA.js +0 -307
  553. package/dist/facet-5YYY3MUN.js +0 -521
  554. package/dist/gb-WGEVO7L2.js +0 -88
  555. package/dist/geneExpClustering-DHE6XJHV.js +0 -249
  556. package/dist/geneExpression-5NWQXMJ3.js +0 -313
  557. package/dist/geneExpression-VWUMM2LU.js +0 -38
  558. package/dist/geneExpression.unit.spec-HBU3WTZ4.js +0 -102
  559. package/dist/geneORA-3VWFWDYI.js +0 -278
  560. package/dist/geneRanking-PKDVD5OD.js +0 -553
  561. package/dist/geneVariant-IFIJQXH4.js +0 -39
  562. package/dist/geneVariant-WZSOG4GI.js +0 -41
  563. package/dist/geneVariant.integration.spec-6KQMWVHR.js +0 -198
  564. package/dist/genefusion.ui-C4NTALL3.js +0 -308
  565. package/dist/geneset-RJAULSKC.js +0 -208
  566. package/dist/genomeBrowser.spec-42OTTMGO.js +0 -281
  567. package/dist/grin2-26O6YDDY.js +0 -75
  568. package/dist/grin2-FT5BQJMB.js +0 -1143
  569. package/dist/hierCluster-GJPPMFNR.js +0 -59
  570. package/dist/hierCluster-HMJF3PBE.js +0 -63
  571. package/dist/hierCluster.config-TAS7XKTU.js +0 -40
  572. package/dist/hierCluster.integration.spec-RLHQKX65.js +0 -488
  573. package/dist/hierCluster.interactivity-IKTAJ6CU.js +0 -54
  574. package/dist/hierCluster.renderers-I6WFZRNW.js +0 -21
  575. package/dist/imagePlot-N4OXNMVA.js +0 -163
  576. package/dist/importPlot-VMYXDP66.js +0 -8
  577. package/dist/isoformExpression-2KV64KMN.js +0 -40
  578. package/dist/isoformExpression.unit.spec-RG2VWEMG.js +0 -242
  579. package/dist/junction-VO4IGMW2.js +0 -41
  580. package/dist/junction.customTerm-EFMHHVWA.js +0 -18
  581. package/dist/junction.unit.spec-NB24MR2B.js +0 -187
  582. package/dist/launch.adhoc-R3MO3VXK.js +0 -42
  583. package/dist/leftlabel.sample-SI6KMULD.js +0 -263
  584. package/dist/lollipop-XIVE4ANX.js +0 -171
  585. package/dist/maf-WRHD4OJF.js +0 -459
  586. package/dist/maftimeline-IE6YKV7Y.js +0 -593
  587. package/dist/matrix-ALBCAZP5.js +0 -58
  588. package/dist/matrix-W72XRUZD.js +0 -63
  589. package/dist/matrix.cells-DEEUWC74.js +0 -28
  590. package/dist/matrix.config-JYXQOXDT.js +0 -41
  591. package/dist/matrix.data-ENXNM6RP.js +0 -25
  592. package/dist/matrix.groups-EXSNNESB.js +0 -27
  593. package/dist/matrix.integration.spec-BW6U6PIW.js +0 -3072
  594. package/dist/matrix.interactivity-G6AL566T.js +0 -42
  595. package/dist/matrix.layout-UBUPIJ3R.js +0 -44
  596. package/dist/matrix.legend-S3P4F2DG.js +0 -22
  597. package/dist/matrix.renderers-IXFGXHJQ.js +0 -38
  598. package/dist/matrix.serieses-THHXUAPM.js +0 -21
  599. package/dist/matrix.sort-WJV6LIZI.js +0 -27
  600. package/dist/matrix.sort.unit.spec-LGMIL2LR.js +0 -472
  601. package/dist/matrix.sorterUi-VXVCOKEZ.js +0 -18
  602. package/dist/matrix.sorterUi.unit.spec-CWSEJ62U.js +0 -342
  603. package/dist/mavb-SXGKASQ5.js +0 -732
  604. package/dist/mds.fimo-EDOT3TDN.js +0 -518
  605. package/dist/mds.samplescatterplot-IXHNABKB.js +0 -1550
  606. package/dist/mds.survivalplot-KTTMHHII.js +0 -483
  607. package/dist/numericDictTermCluster-H4JSPW22.js +0 -65
  608. package/dist/oncomatrix-O4EMNUOT.js +0 -295
  609. package/dist/oncomatrix.spec-BME6CQWF.js +0 -448
  610. package/dist/plot.2dvaf-FDM4KXGT.js +0 -377
  611. package/dist/plot.app-UNUXG7ND.js +0 -41
  612. package/dist/plot.barplot-R333TMG2.js +0 -102
  613. package/dist/plot.boxplot-KQTYGUN3.js +0 -152
  614. package/dist/plot.brainImaging-YBYMHCEG.js +0 -51
  615. package/dist/plot.disco-CMDKRSOM.js +0 -102
  616. package/dist/plot.dzi-YAZA6RQS.js +0 -33
  617. package/dist/plot.ssgq-YKCOEXZP.js +0 -139
  618. package/dist/plot.vaf2cov-3TLMTFZS.js +0 -259
  619. package/dist/plot.wsi-7ADVYTQS.js +0 -36
  620. package/dist/polar2-O5SHVLP4.js +0 -237
  621. package/dist/profileForms-RLB6SMPQ.js +0 -940
  622. package/dist/profilePlot-AP52VLLO.js +0 -54
  623. package/dist/proteinView-S7WDBMQU.js +0 -1568
  624. package/dist/proteomeCohortCompare-ERVUM7RO.js +0 -799
  625. package/dist/pseudbulk.unit.spec-VSH7IM3R.js +0 -91
  626. package/dist/pseudobulk-7UKRLKQI.js +0 -40
  627. package/dist/qualitative-2D7MC4V5.js +0 -43
  628. package/dist/qualitative-2INAKDTJ.js +0 -220
  629. package/dist/radar2-ELVGQFZE.js +0 -332
  630. package/dist/radarFacility2-SDAZHGNG.js +0 -340
  631. package/dist/regression-CE54AQMY.js +0 -56
  632. package/dist/regression.inputs-SMC5CNPY.js +0 -48
  633. package/dist/regression.inputs.term-XS54IQC2.js +0 -48
  634. package/dist/regression.inputs.values.table-LNPM3MX5.js +0 -45
  635. package/dist/regression.integration.spec-6QSMYPWJ.js +0 -784
  636. package/dist/regression.integration.spec-6QSMYPWJ.js.map +0 -7
  637. package/dist/regression.results-25ZRRDEE.js +0 -40
  638. package/dist/regression.spec-EDWHFRPY.js +0 -708
  639. package/dist/render-SEB6GFXQ.js +0 -38
  640. package/dist/report-U6L3KBYG.js +0 -222
  641. package/dist/sampleView-QAAJ26KT.js +0 -48
  642. package/dist/samplelst-KYRXJSZN.js +0 -111
  643. package/dist/samplematrix-STLF2QA5.js +0 -2198
  644. package/dist/sc-HL6YSMDX.js +0 -86
  645. package/dist/scatter-BSGDMOC2.js +0 -851
  646. package/dist/scatter-BSGDMOC2.js.map +0 -7
  647. package/dist/selectGenomeWithTklst-4NHQDTE6.js +0 -134
  648. package/dist/singleCellCellType-3E2IU42J.js +0 -38
  649. package/dist/singleCellCellType.unit.spec-MC7ZRSMW.js +0 -159
  650. package/dist/singleCellGeneExpression-53UUGYTK.js +0 -38
  651. package/dist/singleCellGeneExpression.unit.spec-QSLTXHFE.js +0 -153
  652. package/dist/singleCellPlot-JDSARDRV.js +0 -54
  653. package/dist/singlecell-IJR7BJYT.js +0 -1572
  654. package/dist/singlecell-OK6GJFWL.js +0 -86
  655. package/dist/snp-H4KJEEOE.js +0 -38
  656. package/dist/snp.unit.spec-2Y4A3XYI.js +0 -176
  657. package/dist/snplocus-4GG6VTWX.js +0 -208
  658. package/dist/spliceevent.a53ss.diagram-JZNRC5UC.js +0 -151
  659. package/dist/spliceevent.exonskip.diagram-H54N7ZKY.js +0 -283
  660. package/dist/spliceevent.noeventdiagram-II753XAK.js +0 -460
  661. package/dist/ssGSEA-JPJ3C4JI.js +0 -38
  662. package/dist/ssGSEA.unit.spec-45F5OCDK.js +0 -88
  663. package/dist/studyCatalog-O3VGIKDM.js +0 -358
  664. package/dist/summarizeCnvGeneexp-55DNXHXA.js +0 -163
  665. package/dist/summarizeGeneexpSurvival-VLO4DC5M.js +0 -110
  666. package/dist/summarizeMutationCnv-QX7BADYL.js +0 -164
  667. package/dist/summarizeMutationDiagnosis-MHFM7RX6.js +0 -40
  668. package/dist/summarizeMutationSurvival-G4KHSUBN.js +0 -99
  669. package/dist/summary-PJYRCQNY.js +0 -49
  670. package/dist/summary.integration.spec-KPKROD6L.js +0 -414
  671. package/dist/summaryInput-TOAL53EP.js +0 -231
  672. package/dist/sunburst-IGIV2RBE.js +0 -284
  673. package/dist/survival-DINCIWW7.js +0 -58
  674. package/dist/survival-RKV5BPDK.js +0 -1239
  675. package/dist/survival.integration.spec-7ZYBBZKT.js +0 -958
  676. package/dist/svgraph-EUEZWGVR.js +0 -1387
  677. package/dist/svmr-B24LODSC.js +0 -3842
  678. package/dist/table-XSJJ3UZV.js +0 -200
  679. package/dist/termCollection-IAB3425K.js +0 -38
  680. package/dist/termCollection-LGEGHZSJ.js +0 -257
  681. package/dist/termCollection.unit.spec-4TIRHC44.js +0 -304
  682. package/dist/termCollectionFractionSelection-35YKAOUY.js +0 -47
  683. package/dist/termCollectionFractionSelection.unit.spec-SUFEIKJZ.js +0 -193
  684. package/dist/tk-25EJJDRK.js +0 -46
  685. package/dist/tk-4E3XJ7CO.js +0 -1127
  686. package/dist/tp.ui-VGA62NFM.js +0 -1459
  687. package/dist/tvs.density-G56327WY.js +0 -19
  688. package/dist/tvs.dt-DFW36WKO.js +0 -39
  689. package/dist/tvs.dtcnv.categorical-ZP33EO3A.js +0 -40
  690. package/dist/tvs.dtcnv.continuous-FJTMQF4J.js +0 -72
  691. package/dist/tvs.dtfusion-FTDQWNKM.js +0 -40
  692. package/dist/tvs.dtitd-W5VEECJ2.js +0 -40
  693. package/dist/tvs.dtsnvindel-UOXSLCDZ.js +0 -40
  694. package/dist/tvs.dtsv-HWCPRVBO.js +0 -40
  695. package/dist/tvs.numeric-7TGKWQYU.js +0 -22
  696. package/dist/tvs.samplelst-OWD22ITS.js +0 -104
  697. package/dist/tvs.termCollection-27BWABYK.js +0 -129
  698. package/dist/violin-2IAVZGFF.js +0 -46
  699. package/dist/violin.integration.spec-JVODKUCL.js +0 -1425
  700. package/dist/violin.interactivity-STOCZMVN.js +0 -38
  701. package/dist/violin.renderer-MKDTJ3EX.js +0 -40
  702. package/dist/vocabulary-4IHU6DNN.js +0 -41
  703. /package/dist/{2dmaf-RRV3ORZR.js.map → 2dmaf-6MNHNHWX.js.map} +0 -0
  704. /package/dist/{AIProjectAdmin-DKLEFCGX.js.map → AIProjectAdmin-W36NGUX2.js.map} +0 -0
  705. /package/dist/{AppHeader-WQ2F7HZY.js.map → AppHeader-I5CFECIL.js.map} +0 -0
  706. /package/dist/{BoxPlot-5JQCYENZ.js.map → BoxPlot-4SXDAOBP.js.map} +0 -0
  707. /package/dist/{CorrelationVolcano-HR6IP2SZ.js.map → CorrelationVolcano-NAWMGG4Q.js.map} +0 -0
  708. /package/dist/{DE-DAW6ZKM7.js.map → DE-VZMT7KEM.js.map} +0 -0
  709. /package/dist/{DEinput-XCR4VMR3.js.map → DEinput-TKERM2YD.js.map} +0 -0
  710. /package/dist/{DifferentialAnalysis-SETJAZEN.js.map → DifferentialAnalysis-Y4SU4BVP.js.map} +0 -0
  711. /package/dist/{Disco-QEBEVQS2.js.map → Disco-DLK3BYPV.js.map} +0 -0
  712. /package/dist/{Disco.UI-OYVL7UBI.js.map → Disco.UI-IKGMFG36.js.map} +0 -0
  713. /package/dist/{DmrPlot-CWBQDZL7.js.map → DmrPlot-JWBZJFS6.js.map} +0 -0
  714. /package/dist/{GB-5PYCR4SV.js.map → GB-3UZSSIBW.js.map} +0 -0
  715. /package/dist/{GSEA-6UKMI6GY.js.map → GSEA-YLHBZY55.js.map} +0 -0
  716. /package/dist/{GeneExpInput-2N62XM7Z.js.map → GeneExpInput-KX5I63YV.js.map} +0 -0
  717. /package/dist/{Geomap-ANMR32HE.js.map → Geomap-QTUHM4VH.js.map} +0 -0
  718. /package/dist/{HicApp-WHPUPHEM.js.map → HicApp-M2OCHGRT.js.map} +0 -0
  719. /package/dist/{IDCViewer-FWXRE4AX.js.map → IDCViewer-SWFBLBZH.js.map} +0 -0
  720. /package/dist/{NumContEditor.unit.spec-5GTWUJEL.js.map → NumContEditor.unit.spec-P67AFEHM.js.map} +0 -0
  721. /package/dist/{NumCustomBinEditor-GM2OJMOX.js.map → NumCustomBinEditor-H22J4K47.js.map} +0 -0
  722. /package/dist/{NumRegularBinEditor-CZYITY5L.js.map → NumRegularBinEditor-IRD27CE2.js.map} +0 -0
  723. /package/dist/{NumericDensity-JSOFOEH2.js.map → NumericDensity-53KMCTDL.js.map} +0 -0
  724. /package/dist/{NumericHandler-UZOGKPKB.js.map → NumericHandler-5QFNXVBA.js.map} +0 -0
  725. /package/dist/{NumericHandler.unit.spec-X2DAED4O.js.map → NumericHandler.unit.spec-OBITSUU3.js.map} +0 -0
  726. /package/dist/{ProteomeInput-GBVCLNS7.js.map → ProteomeInput-MM373EL3.js.map} +0 -0
  727. /package/dist/{RunChart2-N4JPWNVV.js.map → RunChart2-2L6T3ITZ.js.map} +0 -0
  728. /package/dist/{SC-RCZT5BRP.js.map → SC-JKD3Z2X5.js.map} +0 -0
  729. /package/dist/{Volcano-2BQ6SYHO.js.map → Volcano-STGBS7IJ.js.map} +0 -0
  730. /package/dist/{WSIViewer-UDA4WIRT.js.map → WSIViewer-LOBVUTOD.js.map} +0 -0
  731. /package/dist/{WsiSamplesPlot-DYSFMD22.js.map → WsiSamplesPlot-D3L3AILR.js.map} +0 -0
  732. /package/dist/{adSandbox-5BUDCAER.js.map → adSandbox-XO5HDSFW.js.map} +0 -0
  733. /package/dist/{animatedBubbleChart-N6MBJ4X3.js.map → animatedBubbleChart-XKW6TCZP.js.map} +0 -0
  734. /package/dist/{app-O64TGDFH.js.map → app-H7ABTG6X.js.map} +0 -0
  735. /package/dist/{app-Y2STUISK.js.map → app-HJSPIKRQ.js.map} +0 -0
  736. /package/dist/{bam-2EOABVGT.js.map → bam-R5QVHWGY.js.map} +0 -0
  737. /package/dist/{barchart-UHCTYRMJ.js.map → barchart-OGCLBPQ2.js.map} +0 -0
  738. /package/dist/{barchart.data-LSK2P2PR.js.map → barchart.data-VBSWS5N7.js.map} +0 -0
  739. /package/dist/{barchart.events-Y4H2GADS.js.map → barchart.events-GZTY4IC3.js.map} +0 -0
  740. /package/dist/{barchart.integration.spec-BFGZFECA.js.map → barchart.integration.spec-Z6ECNFSM.js.map} +0 -0
  741. /package/dist/{barchart2-VIZKZRMP.js.map → barchart2-DT42I747.js.map} +0 -0
  742. /package/dist/{block-BGSSF6XP.js.map → block-UYYJXSCM.js.map} +0 -0
  743. /package/dist/{block.init-H7RKUIHG.js.map → block.init-43M53IMA.js.map} +0 -0
  744. /package/dist/{block.mds.expressionrank-MA3HGT7S.js.map → block.mds.expressionrank-YH3IWMKM.js.map} +0 -0
  745. /package/dist/{block.mds.geneboxplot-CWT5DM5T.js.map → block.mds.geneboxplot-QS2IK37X.js.map} +0 -0
  746. /package/dist/{block.mds.junction-P4I7O73X.js.map → block.mds.junction-7FF5BFEX.js.map} +0 -0
  747. /package/dist/{block.mds.svcnv-NSPEY43S.js.map → block.mds.svcnv-MMJYLL2W.js.map} +0 -0
  748. /package/dist/{block.svg-DP4G3LNQ.js.map → block.svg-SA6DSUM2.js.map} +0 -0
  749. /package/dist/{block.tk.aicheck-EBLTOWKZ.js.map → block.tk.aicheck-ZX5LZ2QO.js.map} +0 -0
  750. /package/dist/{block.tk.ase-X7WKQOFS.js.map → block.tk.ase-YXT4BOXK.js.map} +0 -0
  751. /package/dist/{block.tk.bam-OIP3TS3N.js.map → block.tk.bam-IMLRIOOV.js.map} +0 -0
  752. /package/dist/{block.tk.bedgraphdot-2DDF55J3.js.map → block.tk.bedgraphdot-UYQLL7HM.js.map} +0 -0
  753. /package/dist/{block.tk.bigwig.ui-S2SMAEXM.js.map → block.tk.bigwig.ui-WUVLVRSM.js.map} +0 -0
  754. /package/dist/{block.tk.hicstraw-4OIG4TBZ.js.map → block.tk.hicstraw-N4SJGF7H.js.map} +0 -0
  755. /package/dist/{block.tk.junction-52OWEQUN.js.map → block.tk.junction-LZWHFKWJ.js.map} +0 -0
  756. /package/dist/{block.tk.junction.textmatrixui-64YOSZLW.js.map → block.tk.junction.textmatrixui-B626NYPA.js.map} +0 -0
  757. /package/dist/{block.tk.ld-3AMNHBDY.js.map → block.tk.ld-6VWUMAP6.js.map} +0 -0
  758. /package/dist/{block.tk.menu-4724DJXL.js.map → block.tk.menu-RRN2UPQX.js.map} +0 -0
  759. /package/dist/{block.tk.pgv-2SIOPWYI.js.map → block.tk.pgv-GYG3EI6P.js.map} +0 -0
  760. /package/dist/{brainImaging-D43CQQN6.js.map → brainImaging-VIMLETC5.js.map} +0 -0
  761. /package/dist/{brainRegions-HJ2VGL3L.js.map → brainRegions-DRYZT5K5.js.map} +0 -0
  762. /package/dist/{bubbleHeatmap-IL44M4QZ.js.map → bubbleHeatmap-Y4SGMVJY.js.map} +0 -0
  763. /package/dist/{cellTypeBubbleHeatmap-NQP7RCZO.js.map → cellTypeBubbleHeatmap-QW37ZT5W.js.map} +0 -0
  764. /package/dist/{chunk-WXPFMVU6.js.map → chunk-2Y5C7GJS.js.map} +0 -0
  765. /package/dist/{chunk-BNAO6N5X.js.map → chunk-2ZTCRUOL.js.map} +0 -0
  766. /package/dist/{chunk-D565DNJD.js.map → chunk-3P74DH6P.js.map} +0 -0
  767. /package/dist/{chunk-5DMVORBB.js.map → chunk-3PPCZPLN.js.map} +0 -0
  768. /package/dist/{chunk-S5ZCK44Z.js.map → chunk-4H4WJJ2G.js.map} +0 -0
  769. /package/dist/{chunk-6OUBUUC2.js.map → chunk-4L2OSDQ6.js.map} +0 -0
  770. /package/dist/{chunk-JVPWIVDT.js.map → chunk-4USLEUNR.js.map} +0 -0
  771. /package/dist/{chunk-UEGQVQD6.js.map → chunk-5ITKSTJX.js.map} +0 -0
  772. /package/dist/{chunk-M66VDGSH.js.map → chunk-5VMYXVZG.js.map} +0 -0
  773. /package/dist/{chunk-UUKSL7QC.js.map → chunk-7ZVFLC2V.js.map} +0 -0
  774. /package/dist/{chunk-ROMW4AK2.js.map → chunk-C5IAIOCA.js.map} +0 -0
  775. /package/dist/{chunk-7PIHRWGG.js.map → chunk-CIRCVMWE.js.map} +0 -0
  776. /package/dist/{chunk-AGLAYNXP.js.map → chunk-CLTRQZGJ.js.map} +0 -0
  777. /package/dist/{chunk-W7OS7BNM.js.map → chunk-CRH37PEV.js.map} +0 -0
  778. /package/dist/{chunk-WTTD6DUL.js.map → chunk-DCNDZOI3.js.map} +0 -0
  779. /package/dist/{chunk-VUPWQCDR.js.map → chunk-DCR4QQ5Y.js.map} +0 -0
  780. /package/dist/{chunk-TDKMBQSM.js.map → chunk-DKAHHMKN.js.map} +0 -0
  781. /package/dist/{chunk-WKNI3HRQ.js.map → chunk-E2GHT7RH.js.map} +0 -0
  782. /package/dist/{chunk-XNWUI5VL.js.map → chunk-EQCVSUAF.js.map} +0 -0
  783. /package/dist/{chunk-DH3LAQKT.js.map → chunk-ETK36FXN.js.map} +0 -0
  784. /package/dist/{chunk-QDX2XUNF.js.map → chunk-FCOX5Q4Q.js.map} +0 -0
  785. /package/dist/{chunk-5ZTVJSYI.js.map → chunk-FVL37XFU.js.map} +0 -0
  786. /package/dist/{chunk-SNRIVNQ3.js.map → chunk-FXS4I3Z3.js.map} +0 -0
  787. /package/dist/{chunk-46X6AQ7Z.js.map → chunk-FYAY6D3O.js.map} +0 -0
  788. /package/dist/{chunk-MJN6RDXB.js.map → chunk-GL44X7JY.js.map} +0 -0
  789. /package/dist/{chunk-6JYQGZ3Y.js.map → chunk-IQVBMLFI.js.map} +0 -0
  790. /package/dist/{chunk-RVKADD4L.js.map → chunk-IYT5PNYJ.js.map} +0 -0
  791. /package/dist/{chunk-5QMBB4SK.js.map → chunk-J6EP7JPJ.js.map} +0 -0
  792. /package/dist/{chunk-ULESDMUT.js.map → chunk-JLGCQ2F4.js.map} +0 -0
  793. /package/dist/{chunk-TAM7UCAI.js.map → chunk-JQT67SWE.js.map} +0 -0
  794. /package/dist/{chunk-KU7YH7MV.js.map → chunk-JQYPRW42.js.map} +0 -0
  795. /package/dist/{chunk-2GLA2SWU.js.map → chunk-K4IGOJPT.js.map} +0 -0
  796. /package/dist/{chunk-RJOY6A74.js.map → chunk-KPTPDZX2.js.map} +0 -0
  797. /package/dist/{chunk-KZILNGAV.js.map → chunk-KTB7KXC2.js.map} +0 -0
  798. /package/dist/{chunk-STI7BO3P.js.map → chunk-KW7MKBGF.js.map} +0 -0
  799. /package/dist/{chunk-ZEKIUYN3.js.map → chunk-KZFVYDVK.js.map} +0 -0
  800. /package/dist/{chunk-W76X6W73.js.map → chunk-M77DCLJX.js.map} +0 -0
  801. /package/dist/{chunk-U3NTH4CS.js.map → chunk-MGGAWPTR.js.map} +0 -0
  802. /package/dist/{chunk-4HZN6PMU.js.map → chunk-MUJMZ6W6.js.map} +0 -0
  803. /package/dist/{chunk-BGTBRAJ6.js.map → chunk-NRP55BOF.js.map} +0 -0
  804. /package/dist/{chunk-NRYHIWBS.js.map → chunk-O5KFJBU3.js.map} +0 -0
  805. /package/dist/{chunk-OOWXMY7U.js.map → chunk-QHPN3JJZ.js.map} +0 -0
  806. /package/dist/{chunk-NUWJ4RN7.js.map → chunk-QSGXZEUU.js.map} +0 -0
  807. /package/dist/{chunk-GNS6CQMA.js.map → chunk-R3ARQMM4.js.map} +0 -0
  808. /package/dist/{chunk-4KRGCOTL.js.map → chunk-RIQT2LSR.js.map} +0 -0
  809. /package/dist/{chunk-J4USU73L.js.map → chunk-RVRRHEUG.js.map} +0 -0
  810. /package/dist/{chunk-H3N4KYKL.js.map → chunk-SOCGXVIL.js.map} +0 -0
  811. /package/dist/{chunk-HQUYAZQY.js.map → chunk-SZHFBRRT.js.map} +0 -0
  812. /package/dist/{chunk-E3VF4RHJ.js.map → chunk-TOYMIFHN.js.map} +0 -0
  813. /package/dist/{chunk-NIXFCC7X.js.map → chunk-TPVHGI7Q.js.map} +0 -0
  814. /package/dist/{chunk-26APRXD3.js.map → chunk-TRQUMV4T.js.map} +0 -0
  815. /package/dist/{chunk-R6NM2HSH.js.map → chunk-UO7MD3XA.js.map} +0 -0
  816. /package/dist/{chunk-5RVA43MN.js.map → chunk-UONOFG2J.js.map} +0 -0
  817. /package/dist/{chunk-CY4RQ5L6.js.map → chunk-V2DU2OXH.js.map} +0 -0
  818. /package/dist/{chunk-MPNEZ6EL.js.map → chunk-WWXXSQ2M.js.map} +0 -0
  819. /package/dist/{chunk-7JRDJNLR.js.map → chunk-X6VTVZY7.js.map} +0 -0
  820. /package/dist/{chunk-TQTYW66I.js.map → chunk-X7KRSZQT.js.map} +0 -0
  821. /package/dist/{chunk-5T3ZDRTS.js.map → chunk-XJBSBIZ4.js.map} +0 -0
  822. /package/dist/{chunk-BQHPJY2M.js.map → chunk-XRQWZJJ3.js.map} +0 -0
  823. /package/dist/{chunk-NZRMHM76.js.map → chunk-XZ4M3QAV.js.map} +0 -0
  824. /package/dist/{chunk-FACITNG5.js.map → chunk-YMP4YKBN.js.map} +0 -0
  825. /package/dist/{chunk-7PJNKPQB.js.map → chunk-YUURGVV3.js.map} +0 -0
  826. /package/dist/{chunk-EGPNRSPF.js.map → chunk-Z7VK2AMA.js.map} +0 -0
  827. /package/dist/{chunk-OTTMHVYH.js.map → chunk-ZFJUVP2N.js.map} +0 -0
  828. /package/dist/{chunk-H3VWJH4U.js.map → chunk-ZH7JPYQE.js.map} +0 -0
  829. /package/dist/{chunk-NODQZTWK.js.map → chunk-ZVDOSFWU.js.map} +0 -0
  830. /package/dist/{cohort-OWLNJZVH.js.map → cohort-CEYVJJ7E.js.map} +0 -0
  831. /package/dist/{condition-L2IXP6WH.js.map → condition-QSOFP4MY.js.map} +0 -0
  832. /package/dist/{controls-2S5QVWUC.js.map → controls-QYHARIEY.js.map} +0 -0
  833. /package/dist/{controls.config-3AJKR4ZZ.js.map → controls.config-3OO3JK6E.js.map} +0 -0
  834. /package/dist/{correlation-DXTAWSLU.js.map → correlation-TOI3TMYL.js.map} +0 -0
  835. /package/dist/{cuminc-WQB6FHVS.js.map → cuminc-L7OJTYXC.js.map} +0 -0
  836. /package/dist/{cuminc.integration.spec-WAYRLHUH.js.map → cuminc.integration.spec-LSWV3KOF.js.map} +0 -0
  837. /package/dist/{customdata.inputui-7WH2NJGB.js.map → customdata.inputui-VMB3HSSC.js.map} +0 -0
  838. /package/dist/{dataDownload-HM4UYOBO.js.map → dataDownload-NPSWNOAG.js.map} +0 -0
  839. /package/dist/{dataDownload.integration.spec-F5CO4BWA.js.map → dataDownload.integration.spec-J6FRFLBK.js.map} +0 -0
  840. /package/dist/{databrowser.ui-E2YOG3L4.js.map → databrowser.ui-GVYWG6YI.js.map} +0 -0
  841. /package/dist/{dictionary-EEPTFDYD.js.map → dictionary-GD67R72W.js.map} +0 -0
  842. /package/dist/{dnaMethylation-N3WNK6XA.js.map → dnaMethylation-S7OSGLAF.js.map} +0 -0
  843. /package/dist/{dnaMethylation.integration.spec-AIYRTFMR.js.map → dnaMethylation.integration.spec-ETMMJNDE.js.map} +0 -0
  844. /package/dist/{dofetch-YKYPEJTQ.js.map → dofetch-7GURQS65.js.map} +0 -0
  845. /package/dist/{e2pca-JEZIGVB2.js.map → e2pca-ZIIPBJFN.js.map} +0 -0
  846. /package/dist/{ep-5FMH2MLV.js.map → ep-A2HAL5WA.js.map} +0 -0
  847. /package/dist/{expclust.gdc.spec-FR26VSUA.js.map → expclust.gdc.spec-ZSILLYNI.js.map} +0 -0
  848. /package/dist/{facet-5YYY3MUN.js.map → facet-74LKIPTA.js.map} +0 -0
  849. /package/dist/{gb-WGEVO7L2.js.map → gb-C3MPQXKN.js.map} +0 -0
  850. /package/dist/{geneExpClustering-DHE6XJHV.js.map → geneExpClustering-HYCFUUTU.js.map} +0 -0
  851. /package/dist/{geneExpression-5NWQXMJ3.js.map → geneExpression-GATKMJJ5.js.map} +0 -0
  852. /package/dist/{geneExpression-VWUMM2LU.js.map → geneExpression-JXSAP2H7.js.map} +0 -0
  853. /package/dist/{geneExpression.unit.spec-HBU3WTZ4.js.map → geneExpression.unit.spec-CODZYFHZ.js.map} +0 -0
  854. /package/dist/{geneORA-3VWFWDYI.js.map → geneORA-LJRIR4VV.js.map} +0 -0
  855. /package/dist/{geneRanking-PKDVD5OD.js.map → geneRanking-TWLBKQZG.js.map} +0 -0
  856. /package/dist/{geneVariant-IFIJQXH4.js.map → geneVariant-35RQHTCK.js.map} +0 -0
  857. /package/dist/{geneVariant-WZSOG4GI.js.map → geneVariant-TMJJIMUF.js.map} +0 -0
  858. /package/dist/{geneVariant.integration.spec-6KQMWVHR.js.map → geneVariant.integration.spec-FIQ7IBSD.js.map} +0 -0
  859. /package/dist/{genefusion.ui-C4NTALL3.js.map → genefusion.ui-SOBESSNO.js.map} +0 -0
  860. /package/dist/{geneset-RJAULSKC.js.map → geneset-JXEJFEK2.js.map} +0 -0
  861. /package/dist/{genomeBrowser.spec-42OTTMGO.js.map → genomeBrowser.spec-25ZO5S2X.js.map} +0 -0
  862. /package/dist/{grin2-26O6YDDY.js.map → grin2-CW4RPVPI.js.map} +0 -0
  863. /package/dist/{grin2-FT5BQJMB.js.map → grin2-EI5BVP4E.js.map} +0 -0
  864. /package/dist/{hierCluster-GJPPMFNR.js.map → hierCluster-OBBPQH24.js.map} +0 -0
  865. /package/dist/{hierCluster-HMJF3PBE.js.map → hierCluster-SDH3TJQY.js.map} +0 -0
  866. /package/dist/{hierCluster.config-TAS7XKTU.js.map → hierCluster.config-DO67TCXI.js.map} +0 -0
  867. /package/dist/{hierCluster.integration.spec-RLHQKX65.js.map → hierCluster.integration.spec-EB24C4VZ.js.map} +0 -0
  868. /package/dist/{hierCluster.interactivity-IKTAJ6CU.js.map → hierCluster.interactivity-LGEAFT5T.js.map} +0 -0
  869. /package/dist/{hierCluster.renderers-I6WFZRNW.js.map → hierCluster.renderers-FXDCU3PN.js.map} +0 -0
  870. /package/dist/{imagePlot-N4OXNMVA.js.map → imagePlot-LGLFG2QZ.js.map} +0 -0
  871. /package/dist/{importPlot-VMYXDP66.js.map → importPlot-R2WRZGZU.js.map} +0 -0
  872. /package/dist/{isoformExpression-2KV64KMN.js.map → isoformExpression-KI3WY5M3.js.map} +0 -0
  873. /package/dist/{isoformExpression.unit.spec-RG2VWEMG.js.map → isoformExpression.unit.spec-OQRG2DDU.js.map} +0 -0
  874. /package/dist/{junction-VO4IGMW2.js.map → junction-6SWFPNM5.js.map} +0 -0
  875. /package/dist/{junction.customTerm-EFMHHVWA.js.map → junction.customTerm-MDBOU6I7.js.map} +0 -0
  876. /package/dist/{junction.unit.spec-NB24MR2B.js.map → junction.unit.spec-5TZFITSU.js.map} +0 -0
  877. /package/dist/{launch.adhoc-R3MO3VXK.js.map → launch.adhoc-HCX2RQLB.js.map} +0 -0
  878. /package/dist/{leftlabel.sample-SI6KMULD.js.map → leftlabel.sample-OI6XCXTQ.js.map} +0 -0
  879. /package/dist/{lollipop-XIVE4ANX.js.map → lollipop-SOSOYHYL.js.map} +0 -0
  880. /package/dist/{maf-WRHD4OJF.js.map → maf-73RLOEVN.js.map} +0 -0
  881. /package/dist/{maftimeline-IE6YKV7Y.js.map → maftimeline-UOMLYUNI.js.map} +0 -0
  882. /package/dist/{matrix-ALBCAZP5.js.map → matrix-5QWDN6SI.js.map} +0 -0
  883. /package/dist/{matrix-W72XRUZD.js.map → matrix-SKPVVDVR.js.map} +0 -0
  884. /package/dist/{matrix.cells-DEEUWC74.js.map → matrix.cells-CFSI2NWU.js.map} +0 -0
  885. /package/dist/{matrix.config-JYXQOXDT.js.map → matrix.config-HE64MAL4.js.map} +0 -0
  886. /package/dist/{matrix.data-ENXNM6RP.js.map → matrix.data-HTUZXQAM.js.map} +0 -0
  887. /package/dist/{matrix.groups-EXSNNESB.js.map → matrix.groups-ZFKWVNMX.js.map} +0 -0
  888. /package/dist/{matrix.integration.spec-BW6U6PIW.js.map → matrix.integration.spec-YKJ4LZFY.js.map} +0 -0
  889. /package/dist/{matrix.interactivity-G6AL566T.js.map → matrix.interactivity-YB5G5W5T.js.map} +0 -0
  890. /package/dist/{matrix.layout-UBUPIJ3R.js.map → matrix.layout-MFG65V7K.js.map} +0 -0
  891. /package/dist/{matrix.legend-S3P4F2DG.js.map → matrix.legend-7MIZZJVB.js.map} +0 -0
  892. /package/dist/{matrix.renderers-IXFGXHJQ.js.map → matrix.renderers-PCZFHDDZ.js.map} +0 -0
  893. /package/dist/{matrix.serieses-THHXUAPM.js.map → matrix.serieses-7KYX3KAY.js.map} +0 -0
  894. /package/dist/{matrix.sort-WJV6LIZI.js.map → matrix.sort-CR3J45MQ.js.map} +0 -0
  895. /package/dist/{matrix.sort.unit.spec-LGMIL2LR.js.map → matrix.sort.unit.spec-GEAM5DSU.js.map} +0 -0
  896. /package/dist/{matrix.sorterUi-VXVCOKEZ.js.map → matrix.sorterUi-YSKIX6B6.js.map} +0 -0
  897. /package/dist/{matrix.sorterUi.unit.spec-CWSEJ62U.js.map → matrix.sorterUi.unit.spec-2MW64QS5.js.map} +0 -0
  898. /package/dist/{mavb-SXGKASQ5.js.map → mavb-YMHJXCGA.js.map} +0 -0
  899. /package/dist/{mds.fimo-EDOT3TDN.js.map → mds.fimo-PTEDRMLQ.js.map} +0 -0
  900. /package/dist/{mds.samplescatterplot-IXHNABKB.js.map → mds.samplescatterplot-7R7PLVQJ.js.map} +0 -0
  901. /package/dist/{mds.survivalplot-KTTMHHII.js.map → mds.survivalplot-F3EENMFQ.js.map} +0 -0
  902. /package/dist/{numericDictTermCluster-H4JSPW22.js.map → numericDictTermCluster-3HXLMURH.js.map} +0 -0
  903. /package/dist/{oncomatrix-O4EMNUOT.js.map → oncomatrix-27VVSMZB.js.map} +0 -0
  904. /package/dist/{oncomatrix.spec-BME6CQWF.js.map → oncomatrix.spec-F43Y7CWN.js.map} +0 -0
  905. /package/dist/{plot.2dvaf-FDM4KXGT.js.map → plot.2dvaf-MYFQSWIA.js.map} +0 -0
  906. /package/dist/{plot.app-UNUXG7ND.js.map → plot.app-36QWCKXR.js.map} +0 -0
  907. /package/dist/{plot.barplot-R333TMG2.js.map → plot.barplot-535EP7XT.js.map} +0 -0
  908. /package/dist/{plot.boxplot-KQTYGUN3.js.map → plot.boxplot-6IBP7VEB.js.map} +0 -0
  909. /package/dist/{plot.brainImaging-YBYMHCEG.js.map → plot.brainImaging-M4HPNXZH.js.map} +0 -0
  910. /package/dist/{plot.disco-CMDKRSOM.js.map → plot.disco-HIT6GR44.js.map} +0 -0
  911. /package/dist/{plot.dzi-YAZA6RQS.js.map → plot.dzi-W66SBKTH.js.map} +0 -0
  912. /package/dist/{plot.ssgq-YKCOEXZP.js.map → plot.ssgq-MI2OMCUY.js.map} +0 -0
  913. /package/dist/{plot.vaf2cov-3TLMTFZS.js.map → plot.vaf2cov-F4CBMLRA.js.map} +0 -0
  914. /package/dist/{plot.wsi-7ADVYTQS.js.map → plot.wsi-7M5KTNFC.js.map} +0 -0
  915. /package/dist/{polar2-O5SHVLP4.js.map → polar2-7VSWGT4U.js.map} +0 -0
  916. /package/dist/{profileForms-RLB6SMPQ.js.map → profileForms-DFPCNJW2.js.map} +0 -0
  917. /package/dist/{profilePlot-AP52VLLO.js.map → profilePlot-ECTPPVB2.js.map} +0 -0
  918. /package/dist/{proteinView-S7WDBMQU.js.map → proteinView-6ELOLOIU.js.map} +0 -0
  919. /package/dist/{proteomeCohortCompare-ERVUM7RO.js.map → proteomeCohortCompare-V2FMWI62.js.map} +0 -0
  920. /package/dist/{pseudbulk.unit.spec-VSH7IM3R.js.map → pseudbulk.unit.spec-KV6URTXC.js.map} +0 -0
  921. /package/dist/{pseudobulk-7UKRLKQI.js.map → pseudobulk-6ZRFCE65.js.map} +0 -0
  922. /package/dist/{qualitative-2D7MC4V5.js.map → qualitative-3B62RUOB.js.map} +0 -0
  923. /package/dist/{qualitative-2INAKDTJ.js.map → qualitative-GJDQBD7L.js.map} +0 -0
  924. /package/dist/{radar2-ELVGQFZE.js.map → radar2-4QQER64E.js.map} +0 -0
  925. /package/dist/{radarFacility2-SDAZHGNG.js.map → radarFacility2-MZKORRDY.js.map} +0 -0
  926. /package/dist/{regression-CE54AQMY.js.map → regression-GZ2YNX6Y.js.map} +0 -0
  927. /package/dist/{regression.inputs-SMC5CNPY.js.map → regression.inputs-ZEFDNSVT.js.map} +0 -0
  928. /package/dist/{regression.inputs.term-XS54IQC2.js.map → regression.inputs.term-O2FQBX7L.js.map} +0 -0
  929. /package/dist/{regression.inputs.values.table-LNPM3MX5.js.map → regression.inputs.values.table-63BQKSZP.js.map} +0 -0
  930. /package/dist/{regression.results-25ZRRDEE.js.map → regression.results-5J3QM4RX.js.map} +0 -0
  931. /package/dist/{regression.spec-EDWHFRPY.js.map → regression.spec-WZAZTDDA.js.map} +0 -0
  932. /package/dist/{render-SEB6GFXQ.js.map → render-MZTEXVU5.js.map} +0 -0
  933. /package/dist/{report-U6L3KBYG.js.map → report-M5TYHH2W.js.map} +0 -0
  934. /package/dist/{sampleView-QAAJ26KT.js.map → sampleView-QYTLYJEW.js.map} +0 -0
  935. /package/dist/{samplelst-KYRXJSZN.js.map → samplelst-FN3Q7M7A.js.map} +0 -0
  936. /package/dist/{samplematrix-STLF2QA5.js.map → samplematrix-Z5FVODO7.js.map} +0 -0
  937. /package/dist/{sc-HL6YSMDX.js.map → sc-4CHP5SYP.js.map} +0 -0
  938. /package/dist/{selectGenomeWithTklst-4NHQDTE6.js.map → selectGenomeWithTklst-WMAHGT4F.js.map} +0 -0
  939. /package/dist/{singleCellCellType-3E2IU42J.js.map → singleCellCellType-XPWENB6V.js.map} +0 -0
  940. /package/dist/{singleCellCellType.unit.spec-MC7ZRSMW.js.map → singleCellCellType.unit.spec-QK56PHKW.js.map} +0 -0
  941. /package/dist/{singleCellGeneExpression-53UUGYTK.js.map → singleCellGeneExpression-4CEVDVYF.js.map} +0 -0
  942. /package/dist/{singleCellGeneExpression.unit.spec-QSLTXHFE.js.map → singleCellGeneExpression.unit.spec-ZYRLBVF5.js.map} +0 -0
  943. /package/dist/{singleCellPlot-JDSARDRV.js.map → singleCellPlot-JS74VUGC.js.map} +0 -0
  944. /package/dist/{singlecell-IJR7BJYT.js.map → singlecell-5XYOHMWJ.js.map} +0 -0
  945. /package/dist/{singlecell-OK6GJFWL.js.map → singlecell-OO77XBDD.js.map} +0 -0
  946. /package/dist/{snp-H4KJEEOE.js.map → snp-X5ZILM5J.js.map} +0 -0
  947. /package/dist/{snp.unit.spec-2Y4A3XYI.js.map → snp.unit.spec-V23G3JLJ.js.map} +0 -0
  948. /package/dist/{snplocus-4GG6VTWX.js.map → snplocus-U5UIIUWR.js.map} +0 -0
  949. /package/dist/{spliceevent.a53ss.diagram-JZNRC5UC.js.map → spliceevent.a53ss.diagram-YDFVSDMT.js.map} +0 -0
  950. /package/dist/{spliceevent.exonskip.diagram-H54N7ZKY.js.map → spliceevent.exonskip.diagram-VDKN5JBE.js.map} +0 -0
  951. /package/dist/{spliceevent.noeventdiagram-II753XAK.js.map → spliceevent.noeventdiagram-EFPFRUFI.js.map} +0 -0
  952. /package/dist/{ssGSEA-JPJ3C4JI.js.map → ssGSEA-LKJW5OQK.js.map} +0 -0
  953. /package/dist/{ssGSEA.unit.spec-45F5OCDK.js.map → ssGSEA.unit.spec-7WCZVEP2.js.map} +0 -0
  954. /package/dist/{studyCatalog-O3VGIKDM.js.map → studyCatalog-EU33KE5H.js.map} +0 -0
  955. /package/dist/{summarizeCnvGeneexp-55DNXHXA.js.map → summarizeCnvGeneexp-QL25OQNB.js.map} +0 -0
  956. /package/dist/{summarizeGeneexpSurvival-VLO4DC5M.js.map → summarizeGeneexpSurvival-B7HTCH7L.js.map} +0 -0
  957. /package/dist/{summarizeMutationCnv-QX7BADYL.js.map → summarizeMutationCnv-DFAPX2JE.js.map} +0 -0
  958. /package/dist/{summarizeMutationDiagnosis-MHFM7RX6.js.map → summarizeMutationDiagnosis-HCSDSVII.js.map} +0 -0
  959. /package/dist/{summarizeMutationSurvival-G4KHSUBN.js.map → summarizeMutationSurvival-6WEASSA2.js.map} +0 -0
  960. /package/dist/{summary-PJYRCQNY.js.map → summary-BWYXE77G.js.map} +0 -0
  961. /package/dist/{summary.integration.spec-KPKROD6L.js.map → summary.integration.spec-AVGSW5MF.js.map} +0 -0
  962. /package/dist/{summaryInput-TOAL53EP.js.map → summaryInput-MOQ6HUCX.js.map} +0 -0
  963. /package/dist/{sunburst-IGIV2RBE.js.map → sunburst-EZDHVJCL.js.map} +0 -0
  964. /package/dist/{survival-RKV5BPDK.js.map → survival-5TFMM7NP.js.map} +0 -0
  965. /package/dist/{survival-DINCIWW7.js.map → survival-IEVELTC4.js.map} +0 -0
  966. /package/dist/{survival.integration.spec-7ZYBBZKT.js.map → survival.integration.spec-HHWP3R4H.js.map} +0 -0
  967. /package/dist/{svgraph-EUEZWGVR.js.map → svgraph-55XRIYJW.js.map} +0 -0
  968. /package/dist/{svmr-B24LODSC.js.map → svmr-CMEBFSRO.js.map} +0 -0
  969. /package/dist/{table-XSJJ3UZV.js.map → table-LTWQ3TLQ.js.map} +0 -0
  970. /package/dist/{termCollection-IAB3425K.js.map → termCollection-CPQXYBFA.js.map} +0 -0
  971. /package/dist/{termCollection-LGEGHZSJ.js.map → termCollection-ZWOH273K.js.map} +0 -0
  972. /package/dist/{termCollection.unit.spec-4TIRHC44.js.map → termCollection.unit.spec-RK7VATLU.js.map} +0 -0
  973. /package/dist/{termCollectionFractionSelection-35YKAOUY.js.map → termCollectionFractionSelection-Z4ZRW63R.js.map} +0 -0
  974. /package/dist/{termCollectionFractionSelection.unit.spec-SUFEIKJZ.js.map → termCollectionFractionSelection.unit.spec-3CS7DPNU.js.map} +0 -0
  975. /package/dist/{tk-25EJJDRK.js.map → tk-4NNTWWLK.js.map} +0 -0
  976. /package/dist/{tk-4E3XJ7CO.js.map → tk-RHWJJXH2.js.map} +0 -0
  977. /package/dist/{tp.ui-VGA62NFM.js.map → tp.ui-DPN5UN6U.js.map} +0 -0
  978. /package/dist/{tvs.density-G56327WY.js.map → tvs.density-LMRZZO4D.js.map} +0 -0
  979. /package/dist/{tvs.dt-DFW36WKO.js.map → tvs.dt-ARPDFRVM.js.map} +0 -0
  980. /package/dist/{tvs.dtcnv.categorical-ZP33EO3A.js.map → tvs.dtcnv.categorical-POS6WQK6.js.map} +0 -0
  981. /package/dist/{tvs.dtcnv.continuous-FJTMQF4J.js.map → tvs.dtcnv.continuous-5OETJ7JU.js.map} +0 -0
  982. /package/dist/{tvs.dtfusion-FTDQWNKM.js.map → tvs.dtfusion-ERYVI3DW.js.map} +0 -0
  983. /package/dist/{tvs.dtitd-W5VEECJ2.js.map → tvs.dtitd-KTZZYEWU.js.map} +0 -0
  984. /package/dist/{tvs.dtsnvindel-UOXSLCDZ.js.map → tvs.dtsnvindel-TGUAX3RN.js.map} +0 -0
  985. /package/dist/{tvs.dtsv-HWCPRVBO.js.map → tvs.dtsv-AM63OIL6.js.map} +0 -0
  986. /package/dist/{tvs.numeric-7TGKWQYU.js.map → tvs.numeric-MQPO5XUQ.js.map} +0 -0
  987. /package/dist/{tvs.samplelst-OWD22ITS.js.map → tvs.samplelst-VW2NOQ2C.js.map} +0 -0
  988. /package/dist/{tvs.termCollection-27BWABYK.js.map → tvs.termCollection-O4ZSWJFA.js.map} +0 -0
  989. /package/dist/{violin-2IAVZGFF.js.map → violin-ZQ3DEYGR.js.map} +0 -0
  990. /package/dist/{violin.integration.spec-JVODKUCL.js.map → violin.integration.spec-PVEF77HB.js.map} +0 -0
  991. /package/dist/{violin.interactivity-STOCZMVN.js.map → violin.interactivity-FYU4TCFO.js.map} +0 -0
  992. /package/dist/{violin.renderer-MKDTJ3EX.js.map → violin.renderer-XAERGBMV.js.map} +0 -0
  993. /package/dist/{vocabulary-4IHU6DNN.js.map → vocabulary-ECJX27W2.js.map} +0 -0
@@ -1,3392 +0,0 @@
1
- import {
2
- InvalidDataUI,
3
- configUiInit,
4
- fillbar,
5
- getMaxLabelWidth,
6
- getNormalRoot,
7
- renderTable,
8
- svgLegend,
9
- table2col
10
- } from "./chunk-TKW5TW4Z.js";
11
- import "./chunk-HJ6L54YS.js";
12
- import "./chunk-LSEFWW72.js";
13
- import "./chunk-3SHZTAGF.js";
14
- import {
15
- Menu
16
- } from "./chunk-HYOEWQ5P.js";
17
- import "./chunk-6QCYT6G2.js";
18
- import "./chunk-FN5XPUPH.js";
19
- import {
20
- topBarInit
21
- } from "./chunk-IIT367QZ.js";
22
- import "./chunk-RZGEKL77.js";
23
- import "./chunk-OTTMHVYH.js";
24
- import "./chunk-GNS6CQMA.js";
25
- import {
26
- dofetch3
27
- } from "./chunk-JVPWIVDT.js";
28
- import "./chunk-4WF3XDQP.js";
29
- import "./chunk-7JRDJNLR.js";
30
- import {
31
- copyMerge,
32
- getCompInit,
33
- multiInit
34
- } from "./chunk-M3J4MINX.js";
35
- import "./chunk-PF4DSFDR.js";
36
- import "./chunk-MPSLUEI4.js";
37
- import {
38
- bplen,
39
- dtcnv,
40
- dtfusionrna,
41
- dtitd,
42
- dtloh,
43
- dtsnvindel,
44
- dtsv,
45
- mclass,
46
- mclassitd
47
- } from "./chunk-6PNPHACF.js";
48
- import "./chunk-WPHUM5S5.js";
49
- import "./chunk-JNITUVXP.js";
50
- import {
51
- arc_default,
52
- line_default,
53
- pie_default,
54
- ribbon_default
55
- } from "./chunk-2KXLYFAO.js";
56
- import "./chunk-LOZEKOES.js";
57
- import "./chunk-VQZ2Z5YU.js";
58
- import {
59
- linear,
60
- ticks
61
- } from "./chunk-UJELJXJG.js";
62
- import "./chunk-BZTWTH4Y.js";
63
- import "./chunk-TLT4YIG3.js";
64
- import "./chunk-5R63Q5KH.js";
65
- import {
66
- pointer_default,
67
- select_default
68
- } from "./chunk-I6Y4O3RR.js";
69
- import "./chunk-Q5RDQNIT.js";
70
- import "./chunk-DQC5FFGV.js";
71
- import "./chunk-HFNDKYVF.js";
72
-
73
- // plots/disco/arc/FullArcRenderer.ts
74
- var FullArcRenderer = class {
75
- constructor(radius, width, color) {
76
- this.radius = radius;
77
- this.width = width;
78
- this.color = color;
79
- }
80
- render(holder) {
81
- const donutGenerator = arc_default();
82
- const arc = {
83
- startAngle: 0,
84
- endAngle: Math.PI * 2,
85
- innerRadius: this.radius,
86
- outerRadius: this.radius + this.width,
87
- color: this.color,
88
- text: "No label"
89
- };
90
- const array = [];
91
- array.push(arc);
92
- const donutArc = holder.append("g");
93
- donutArc.selectAll("path").data(array).enter().append("path").attr("d", (d) => donutGenerator(d)).attr("fill", (d) => d.color);
94
- }
95
- };
96
-
97
- // plots/disco/menu/MenuProvider.ts
98
- var MenuProvider = class {
99
- static create() {
100
- const menu = new Menu({ padding: 5 });
101
- menu.d.style("border", "1px solid #FFF").style("position", "absolute").style("z-index", 1001);
102
- return menu;
103
- }
104
- };
105
-
106
- // plots/disco/fusion/FusionColorProvider.ts
107
- var FusionColorProvider = class {
108
- static getColor(chrA, chrB) {
109
- if (chrA != chrB) {
110
- return "#6A3D9A" /* Interchromosomal */.valueOf();
111
- } else {
112
- return "#1B9E77" /* Intrachromosomal */.valueOf();
113
- }
114
- }
115
- };
116
-
117
- // plots/disco/fusion/FusionRenderer.ts
118
- var FusionRenderer = class {
119
- constructor(genome) {
120
- this.genome = genome;
121
- }
122
- render(holder, fusions, opacity = 1) {
123
- let radius = 0;
124
- const fusionsWithTarget = fusions.filter((f) => f.target);
125
- if (fusionsWithTarget.length > 0) {
126
- radius = fusionsWithTarget[0].target.radius;
127
- const fullArcRenderer = new FullArcRenderer(radius, 2, "#6464641A");
128
- fullArcRenderer.render(holder);
129
- } else return;
130
- const ribbon = ribbon_default().radius(radius);
131
- const ribbons = holder.selectAll(".chord").data(fusions);
132
- const menu = MenuProvider.create();
133
- const createTooltip = this.createTooltip.bind(this);
134
- const genome = this.genome;
135
- ribbons.enter().append("path").attr("class", "chord").attr("d", ribbon).attr("fill", (fusion) => {
136
- return FusionColorProvider.getColor(
137
- fusion.source.positionInChromosome.chromosome,
138
- fusion.target.positionInChromosome.chromosome
139
- );
140
- }).style("opacity", opacity).each(function(d) {
141
- const path = select_default(this);
142
- const tip = MenuProvider.create();
143
- path.on("click", async function(event) {
144
- tip.clear().show(event.x, event.y);
145
- const div = tip.d.append("div");
146
- await makeSvgraph(d, div, genome);
147
- });
148
- }).on("mouseover", async function(mouseEvent, fusion) {
149
- const table = table2col({ holder: menu.d });
150
- createTooltip(table, fusion);
151
- menu.show(mouseEvent.x, mouseEvent.y);
152
- }).on("mouseout", () => {
153
- menu.clear();
154
- menu.hide();
155
- });
156
- }
157
- createTooltip(table, fusion) {
158
- {
159
- const [td1, td2] = table.addRow();
160
- td1.text("Data type");
161
- td2.append("span").style("margin-left", "5px").text("Fusion transcript");
162
- }
163
- {
164
- const positionInChromosomeSource = fusion.source.positionInChromosome;
165
- const positionInChromosomeTarget = fusion.target.positionInChromosome;
166
- const [td1, td2] = table.addRow();
167
- td1.text("Position");
168
- td2.append("span").style("margin-left", "5px").text(
169
- ` ${fusion.source.gene || ""} ${positionInChromosomeSource.chromosome}:${positionInChromosomeSource.position} ${fusion.source.strand === "+" ? "forward" : "reverse"} > ${fusion.target.gene || ""} ${positionInChromosomeTarget.chromosome}:${positionInChromosomeTarget.position} ${fusion.target.strand === "+" ? "forward" : "reverse"} `
170
- );
171
- }
172
- }
173
- };
174
- async function makeSvgraph(fusion, div, genome) {
175
- const wait = div.append("div").text("Loading...");
176
- const svpair = {
177
- a: {
178
- chr: fusion.source.positionInChromosome.chromosome,
179
- position: fusion.source.positionInChromosome.position,
180
- strand: fusion.source.strand
181
- },
182
- b: {
183
- chr: fusion.target.positionInChromosome.chromosome,
184
- position: fusion.target.positionInChromosome.position,
185
- strand: fusion.target.strand
186
- }
187
- };
188
- await getGm(svpair.a, genome.name, fusion.source.gene);
189
- await getGm(svpair.b, genome.name, fusion.target.gene);
190
- wait.remove();
191
- const _ = await import("./svgraph-EUEZWGVR.js");
192
- _.default({
193
- pairlst: [svpair],
194
- genome,
195
- holder: div
196
- });
197
- }
198
- async function getGm(p, genome, name) {
199
- const d = await dofetch3("isoformbycoord", {
200
- body: { genome, chr: p.chr, pos: p.position }
201
- });
202
- if (d.error) throw d.error;
203
- const u = d.lst.find((i) => i.isdefault && name === i.name) || d.lst[0];
204
- if (u) {
205
- p.name = u.name;
206
- p.gm = { isoform: u.isoform };
207
- }
208
- }
209
-
210
- // plots/disco/DiscoRenderer.ts
211
- var DiscoRenderer = class {
212
- constructor(renders, legendRenderer, genome) {
213
- this.renders = renders;
214
- this.legendRenderer = legendRenderer;
215
- this.fusionRenderer = new FusionRenderer(genome);
216
- }
217
- render(holder, viewModel, onCnvSourceSelect) {
218
- const svgDiv = holder.append("div").style("display", "inline-block").style("font-family", "Arial");
219
- 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);
220
- const mainG = svg.append("g").attr("class", "mainG").attr(
221
- "transform",
222
- `translate(${viewModel.settings.rings.labelLinesInnerRadius + viewModel.settings.rings.labelsToLinesDistance + 100},${viewModel.height / 2})`
223
- );
224
- for (const [ringType, renderer] of this.renders) {
225
- const elements = viewModel.getElements(ringType);
226
- const collisions = viewModel.getCollisions(ringType);
227
- renderer.render(mainG, elements, collisions);
228
- }
229
- this.fusionRenderer.render(mainG, viewModel.fusions, viewModel.settings.Disco.fusionOpacity);
230
- if (viewModel.settings.Disco.centerText) {
231
- const chrRingBbox = mainG.select('[data-testid="sjpp_chromosomes_arc_group"]').node().getBBox();
232
- const text = viewModel.settings.Disco.centerText.length > 20 ? viewModel.settings.Disco.centerText.slice(0, 20) + "..." : viewModel.settings.Disco.centerText;
233
- const textElem = mainG.append("text").attr("class", "sjpp-disco-center-text").text(text);
234
- const textBbox = textElem.node().getBBox();
235
- textElem.attr("transform", `translate(${chrRingBbox.x + chrRingBbox.width / 2 - textBbox.width / 2},0)`);
236
- }
237
- this.legendRenderer.render(
238
- mainG,
239
- viewModel.legend,
240
- -1 * (viewModel.settings.rings.labelLinesInnerRadius + viewModel.settings.rings.labelsToLinesDistance + 75),
241
- viewModel.width,
242
- viewModel.height / 2,
243
- viewModel,
244
- onCnvSourceSelect
245
- );
246
- }
247
- };
248
-
249
- // plots/disco/interactions/DiscoInteractions.ts
250
- var DiscoInteractions = class {
251
- constructor(discoApp) {
252
- this.discoApp = discoApp;
253
- this.downloadClickListener = (svg) => {
254
- const downloadImgName = this.discoApp.state.settings.downloadImgName || "disco.plot";
255
- const a = document.createElement("a");
256
- document.body.appendChild(a);
257
- a.addEventListener(
258
- "click",
259
- () => {
260
- const serializer = new XMLSerializer();
261
- const svg_blob = new Blob([serializer.serializeToString(svg)], {
262
- type: "image/svg+xml"
263
- });
264
- a.download = downloadImgName + ".svg";
265
- a.href = URL.createObjectURL(svg_blob);
266
- document.body.removeChild(a);
267
- },
268
- false
269
- );
270
- a.click();
271
- };
272
- this.geneClickListener = async (gene, mnames) => {
273
- const { filter, filter0 } = this.discoApp.app.getState().termfilter;
274
- const arg = {
275
- holder: this.discoApp.app.opts.holder,
276
- genome: this.discoApp.app.opts.state.args.genome,
277
- nobox: true,
278
- query: gene,
279
- tklst: [
280
- {
281
- type: "mds3",
282
- dslabel: this.discoApp.app.opts.state.vocab.dslabel,
283
- hlaachange: mnames.join(","),
284
- filter0,
285
- filterObj: getNormalRoot(filter)
286
- // must not pass filter as frozen. pass unfrozen, normalized copy so mds3 code will work
287
- }
288
- ]
289
- };
290
- const _ = await import("./block.init-H7RKUIHG.js");
291
- await _.default(arg);
292
- };
293
- this.colorScaleNumericInputsCallback = async (obj) => {
294
- const callAppDispatch = (settings) => {
295
- this.discoApp.app.dispatch({
296
- type: "plot_edit",
297
- id: this.discoApp.id,
298
- config: { settings: { Disco: Object.assign({ cnvCutoffMode: obj.cutoffMode }, settings) } }
299
- });
300
- };
301
- if (obj.cutoffMode == "auto") {
302
- if (obj.min == null || obj.max == null)
303
- throw new Error('Color scale must return min and max if cutoffMode "auto"');
304
- callAppDispatch({
305
- cnvCapping: this.discoApp.state.settings.cnv.capping,
306
- cnvPercentile: this.discoApp.state.settings.cnv.percentile
307
- });
308
- } else if (obj.cutoffMode == "fixed") {
309
- if (obj.min == null || obj.max == null)
310
- throw new Error('Color scale must return min and max if cutoffMode "fixed"');
311
- const diffValue = obj.max !== this.discoApp.state.settings.cnv.capping ? obj.max : Math.abs(obj.min);
312
- callAppDispatch({
313
- cnvCapping: diffValue
314
- });
315
- } else if (obj.cutoffMode == "percentile") callAppDispatch({ cnvPercentile: obj.percentile });
316
- else throw new Error("Unknown cutoff mode returned from dom/ColorScale");
317
- };
318
- this.onMutationWaterfallColorChange = (color) => {
319
- this.discoApp.app.dispatch({
320
- type: "plot_edit",
321
- id: this.discoApp.id,
322
- config: { settings: { Disco: { mutationWaterfallColor: color } } }
323
- });
324
- };
325
- }
326
- };
327
-
328
- // plots/disco/chromosome/Reference.ts
329
- var Reference = class {
330
- /**
331
- * Creates a Reference object that contains information about chromosomes.
332
- * @param settings State settings
333
- * @param chromosomes Chromosome order. This function formats into an obj with `chr` removed.
334
- * @param chromosomeOverride Obj of chromsome keys and sizes. Filtered to remove hidden chromosomes in settings.
335
- */
336
- constructor(settings, chromosomes, chromosomeOverride) {
337
- this.chromosomes = [];
338
- this.chromosomesOrder = [];
339
- this.keysArray = [];
340
- this.totalSizeArray = [];
341
- this.chrSizesArray = [];
342
- const chrSizes = chromosomeOverride || chromosomes;
343
- this.settings = settings;
344
- this.chromosomesOrder = [];
345
- let totalSize = 0;
346
- this.totalPadAngle = Object.keys(chrSizes).length * this.settings.padAngle;
347
- this.totalChromosomesAngle = 2 * Math.PI - this.totalPadAngle;
348
- for (const chr in chrSizes) {
349
- const key = chr.slice(0, 3) === "chr" ? chr.slice(3) : chr;
350
- this.chromosomesOrder.push(chr);
351
- this.keysArray.push(key);
352
- this.totalSizeArray.push(totalSize);
353
- this.chrSizesArray.push(chrSizes[chr]);
354
- totalSize += chrSizes[chr];
355
- }
356
- this.totalSize = totalSize;
357
- let lastAngle = 0;
358
- for (let i = 0; i < this.keysArray.length; i++) {
359
- const chromosomeAngle = this.totalChromosomesAngle * (this.chrSizesArray[i] / totalSize);
360
- const startAngle = i == 0 ? this.settings.padAngle / 2 : lastAngle + this.settings.padAngle;
361
- const endAngle = i == 0 ? this.settings.padAngle / 2 + chromosomeAngle : lastAngle + this.settings.padAngle + chromosomeAngle;
362
- const chromosome = {
363
- start: this.totalSizeArray[i],
364
- size: this.chrSizesArray[i],
365
- factor: 1,
366
- startAngle,
367
- endAngle,
368
- angle: (startAngle + endAngle) / 2,
369
- innerRadius: this.settings.rings.chromosomeInnerRadius,
370
- outerRadius: this.settings.rings.chromosomeInnerRadius + this.settings.rings.chromosomeWidth,
371
- color: "#AAA",
372
- text: this.keysArray[i]
373
- };
374
- this.chromosomes.push(chromosome);
375
- if (chromosome.endAngle != null) {
376
- lastAngle = chromosome.endAngle;
377
- }
378
- }
379
- }
380
- };
381
-
382
- // plots/disco/data/DataObjectMapper.ts
383
- var DataObjectMapper = class {
384
- constructor(sampleName, prioritizedGenes) {
385
- this.sampleName = sampleName;
386
- this.prioritizedGenes = prioritizedGenes;
387
- }
388
- map(dObject) {
389
- return {
390
- dt: dObject.dt,
391
- mname: dObject.mname,
392
- mClass: dObject.class,
393
- gene: dObject.gene,
394
- chr: dObject.chr,
395
- ref: dObject.ref,
396
- alt: dObject.alt,
397
- vafs: dObject.vafs,
398
- position: dObject.pos ? dObject.pos : dObject.position,
399
- poschr: dObject.poschr,
400
- posbins: dObject.posbins,
401
- poslabel: dObject.poslabel,
402
- sampleName: this.sampleName,
403
- ssm_id: dObject.ssm_id,
404
- start: dObject.start,
405
- stop: dObject.stop,
406
- value: dObject.value,
407
- segmean: dObject.segmean,
408
- isPrioritized: this.prioritizedGenes.some((cancerGene) => cancerGene == dObject.gene),
409
- chrA: dObject.chrA,
410
- chrB: dObject.chrB,
411
- geneA: dObject.geneA,
412
- geneB: dObject.geneB,
413
- posA: dObject.posA,
414
- posB: dObject.posB,
415
- strandA: dObject.strandA,
416
- strandB: dObject.strandB
417
- };
418
- }
419
- };
420
-
421
- // plots/disco/data/PercentileMapper.ts
422
- var PercentileMapper = class {
423
- map(data, percentile) {
424
- return this.calculatePercentileForPositivesAndNegatives(data, percentile);
425
- }
426
- calculatePercentileForPositivesAndNegatives(data, percentile) {
427
- const positives = data.filter((x) => x > 0);
428
- const negatives = data.filter((x) => x < 0).map((x) => -1 * x);
429
- let positive = NaN;
430
- let negative = NaN;
431
- if (positives.length > 0) {
432
- positive = this.calculatePercentile(positives, percentile);
433
- }
434
- if (negatives.length > 0) {
435
- negative = -1 * this.calculatePercentile(negatives, percentile);
436
- }
437
- return { positive, negative };
438
- }
439
- calculatePercentile(data, percentile) {
440
- if (data.length === 0) {
441
- throw new Error("Array must contain at least one element.");
442
- }
443
- const sortedValues = data.sort((a, b) => a - b);
444
- const index = percentile / 100 * (sortedValues.length - 1);
445
- const lowerIndex = Math.floor(index);
446
- const upperIndex = Math.ceil(index);
447
- const fraction = index - lowerIndex;
448
- if (lowerIndex === upperIndex) {
449
- return sortedValues[lowerIndex];
450
- }
451
- return sortedValues[lowerIndex] + fraction * (sortedValues[upperIndex] - sortedValues[lowerIndex]);
452
- }
453
- };
454
-
455
- // plots/disco/snv/vafTooltip.ts
456
- function getIntegerCount(v) {
457
- if (Number.isInteger(v)) return v;
458
- if (typeof v == "string" && /^-?\d+$/.test(v)) {
459
- const n = Number(v);
460
- if (Number.isInteger(n)) return n;
461
- }
462
- return null;
463
- }
464
- function getReadCounts(refCountValue, altCountValue, totalCountValue) {
465
- const altCount = getIntegerCount(altCountValue);
466
- if (altCount == null || altCount < 0) return null;
467
- const totalCount = getIntegerCount(totalCountValue);
468
- if (totalCount != null) {
469
- if (totalCount <= 0 || totalCount < altCount) return null;
470
- return { altCount, refCount: totalCount - altCount, totalCount };
471
- }
472
- const refCount = getIntegerCount(refCountValue);
473
- if (refCount == null || refCount < 0 || refCount + altCount <= 0) return null;
474
- return { altCount, refCount, totalCount: refCount + altCount };
475
- }
476
- function hasValidReadCounts(refCountValue, altCountValue, totalCountValue) {
477
- return getReadCounts(refCountValue, altCountValue, totalCountValue) != null;
478
- }
479
- function getVafEntries(vafs) {
480
- const entries = [];
481
- if (Array.isArray(vafs)) {
482
- for (const vaf of vafs) {
483
- const label = vaf?.id || vaf?.name;
484
- const refCount = vaf?.refCount;
485
- const totalCount = vaf?.totalCount;
486
- const altCount = vaf?.altCount;
487
- if (!label || altCount == null || refCount == null && totalCount == null) continue;
488
- const entry = { label, altCount };
489
- if (refCount != null) entry.refCount = refCount;
490
- if (totalCount != null) entry.totalCount = totalCount;
491
- entries.push(entry);
492
- }
493
- }
494
- return entries;
495
- }
496
- function getNumericFraction(v) {
497
- if (typeof v != "number" && typeof v != "string") return null;
498
- const n = Number(v);
499
- return Number.isFinite(n) && n >= 0 && n <= 1 ? n : null;
500
- }
501
- function getMutationFractions(vafs) {
502
- const fractions = [];
503
- if (!Array.isArray(vafs)) return fractions;
504
- for (const vaf of vafs) {
505
- const explicitFraction = getNumericFraction(vaf?.fraction ?? vaf?.mutationFraction);
506
- if (explicitFraction != null) {
507
- fractions.push(explicitFraction);
508
- continue;
509
- }
510
- const counts = getReadCounts(vaf?.refCount, vaf?.altCount, vaf?.totalCount);
511
- if (!counts) continue;
512
- fractions.push(counts.altCount / counts.totalCount);
513
- }
514
- return fractions;
515
- }
516
- function getMaxMutationFraction(vafs) {
517
- const fractions = getMutationFractions(vafs);
518
- return fractions.length ? Math.max(...fractions) : null;
519
- }
520
- function hasAnyValidVafEntry(vafs) {
521
- return getVafEntries(vafs).some((vaf) => hasValidReadCounts(vaf.refCount, vaf.altCount, vaf.totalCount));
522
- }
523
- function appendVafBar(td2, refCountValue, altCountValue, label = "VAF", totalCountValue) {
524
- const counts = getReadCounts(refCountValue, altCountValue, totalCountValue);
525
- if (!counts) return;
526
- const fraction = counts.altCount / counts.totalCount;
527
- const div = td2.append("div").style("margin-left", "5px").style("margin-top", "4px").style("display", "flex").style("align-items", "center").style("gap", "6px");
528
- div.append("span").style("font-size", "0.8em").style("color", "#555").text(label);
529
- fillbar(div, { f: fraction, v1: counts.altCount, v2: counts.totalCount });
530
- }
531
- function appendVafBars(td2, vafs) {
532
- for (const vaf of getVafEntries(vafs)) {
533
- if (!hasValidReadCounts(vaf.refCount, vaf.altCount, vaf.totalCount)) continue;
534
- appendVafBar(td2, vaf.refCount, vaf.altCount, vaf.label, vaf.totalCount);
535
- }
536
- }
537
-
538
- // plots/disco/data/DataMapper.ts
539
- var DataMapper = class _DataMapper {
540
- constructor(settings, reference, sample, prioritizedGenes = []) {
541
- // remove fields and extract filters to seperate classes
542
- this.labelData = [];
543
- this.nonExonicSnvData = [];
544
- this.nonExonicInnerRadius = 0;
545
- this.snvRingDataMap = /* @__PURE__ */ new Map();
546
- this.snvInnerRadius = 0;
547
- this.snvData = [];
548
- this.bpx = 0;
549
- this.onePxArcAngle = 0;
550
- this.filteredSnvData = [];
551
- this.filteredSnvCountByChr = /* @__PURE__ */ new Map();
552
- this.lohData = [];
553
- this.lohInnerRadius = 0;
554
- this.cnvData = [];
555
- this.cnvInnerRadius = 0;
556
- this.fusionData = [];
557
- this.fusionRadius = 0;
558
- this.hasPrioritizedGenes = false;
559
- this.hasWaterfallEligibleChromosome = false;
560
- this.invalidEntries = [];
561
- this.cnvLossMaxValue = 0;
562
- this.cnvGainMaxValue = 0;
563
- this.percentilePositive = 0;
564
- this.percentileNegative = 0;
565
- this.cnvMaxPercentileAbs = 0;
566
- this.mutationWaterfallData = [];
567
- this.hasMutationFractionData = false;
568
- this.mutationWaterfallInnerRadius = 0;
569
- this.mutationWaterfallRangeMin = Infinity;
570
- this.mutationWaterfallRangeMax = -Infinity;
571
- this.lohMaxValue = void 0;
572
- this.lohMinValue = void 0;
573
- this.snvFilter = (data) => data.dt == dtsnvindel;
574
- this.fusionFilter = (data) => data.dt == dtfusionrna || data.dt == dtsv;
575
- this.cnvFilter = (data) => data.dt == dtcnv || data.dt == dtitd;
576
- this.lohFilter = (data) => data.dt == dtloh;
577
- this.compareData = (a, b) => {
578
- const chrDiff = this.reference.chromosomesOrder.indexOf(a.chr) - this.reference.chromosomesOrder.indexOf(b.chr);
579
- if (chrDiff != 0) {
580
- return chrDiff;
581
- }
582
- const aPos = a.pos ? a.pos : a.start;
583
- const bPos = b.pos ? b.pos : b.start;
584
- return aPos - bPos;
585
- };
586
- this.settings = settings;
587
- this.reference = reference;
588
- this.sample = sample;
589
- this.excludedChromosomes = this.settings.Disco.hiddenChromosomes;
590
- this.lastInnerRadious = this.settings.rings.chromosomeInnerRadius;
591
- this.gainCapped = this.settings.Disco.cnvCapping;
592
- this.lossCapped = -1 * this.settings.Disco.cnvCapping;
593
- this.nonExonicFilter = (data) => {
594
- if (prioritizedGenes.length > 0 && this.settings.Disco.prioritizeGeneLabelsByGeneSets) {
595
- return prioritizedGenes.includes(data.gene) && settings.rings.nonExonicFilterValues.includes(ViewModelMapper.snvClassLayer[data.mClass]);
596
- } else {
597
- return settings.rings.nonExonicFilterValues.includes(ViewModelMapper.snvClassLayer[data.mClass]);
598
- }
599
- };
600
- this.snvRingFilter = (data) => {
601
- if (prioritizedGenes.length > 0 && this.settings.Disco.prioritizeGeneLabelsByGeneSets) {
602
- return prioritizedGenes.includes(data.gene) && settings.rings.snvRingFilters.includes(ViewModelMapper.snvClassLayer[data.mClass]);
603
- } else {
604
- return settings.rings.snvRingFilters.includes(ViewModelMapper.snvClassLayer[data.mClass]);
605
- }
606
- };
607
- this.dataObjectMapper = new DataObjectMapper(sample, prioritizedGenes);
608
- }
609
- map(data) {
610
- const dataArray = [];
611
- this.filteredSnvCountByChr.clear();
612
- this.hasWaterfallEligibleChromosome = false;
613
- this.mutationWaterfallData = [];
614
- this.mutationWaterfallInnerRadius = 0;
615
- this.mutationWaterfallRangeMin = Infinity;
616
- this.mutationWaterfallRangeMax = -Infinity;
617
- this.hasMutationFractionData = false;
618
- data.forEach((dObject) => {
619
- if (dObject.dt == dtsnvindel && getMaxMutationFraction(dObject.vafs) != null) {
620
- this.hasMutationFractionData = true;
621
- }
622
- const index = this.reference.chromosomesOrder.indexOf(dObject.chr);
623
- const indexA = this.reference.chromosomesOrder.indexOf(dObject.chrA);
624
- const indexB = this.reference.chromosomesOrder.indexOf(dObject.chrB);
625
- if (dObject.dt == dtsnvindel) {
626
- if (index != -1 && this.snvData.length < this.settings.snv.maxMutationCount) {
627
- const pos = dObject.pos ?? dObject.position;
628
- const chrSize = this.reference.chromosomes[index].size;
629
- if (Number.isFinite(pos) && pos >= 0 && pos <= chrSize) {
630
- this.addData(dObject, dataArray);
631
- } else {
632
- this.invalidEntries.push({ dataType: "SNV", reason: `Position ${pos} outside of ${dObject.chr}` });
633
- }
634
- } else if (index == -1) {
635
- if (!this.excludedChromosomes.includes(dObject.chr)) {
636
- this.invalidEntries.push({ dataType: "SNV", reason: `Unknown chr ${dObject.chr}` });
637
- }
638
- }
639
- } else if (dObject.dt == dtfusionrna || dObject.dt == dtsv) {
640
- if (indexA != -1 && indexB != -1) {
641
- const posA = dObject.posA;
642
- const posB = dObject.posB;
643
- const chrSizeA = this.reference.chromosomes[indexA].size;
644
- const chrSizeB = this.reference.chromosomes[indexB].size;
645
- if (Number.isFinite(posA) && Number.isFinite(posB) && posA >= 0 && posA <= chrSizeA && posB >= 0 && posB <= chrSizeB) {
646
- this.addData(dObject, dataArray);
647
- } else {
648
- const reasonParts = [];
649
- if (!(Number.isFinite(posA) && posA >= 0 && posA <= chrSizeA))
650
- reasonParts.push(`Position ${posA} outside of ${dObject.chrA}`);
651
- if (!(Number.isFinite(posB) && posB >= 0 && posB <= chrSizeB))
652
- reasonParts.push(`Position ${posB} outside of ${dObject.chrB}`);
653
- this.invalidEntries.push({ dataType: "Fusion", reason: reasonParts.join("; ") });
654
- }
655
- } else {
656
- const missing = [];
657
- if (indexA == -1 && !this.excludedChromosomes.includes(dObject.chrA)) missing.push(dObject.chrA);
658
- if (indexB == -1 && !this.excludedChromosomes.includes(dObject.chrB)) missing.push(dObject.chrB);
659
- if (missing.length) this.invalidEntries.push({ dataType: "Fusion", reason: "Unknown chr in fusion" });
660
- }
661
- } else if ([dtcnv, dtloh, dtitd].includes(Number(dObject.dt))) {
662
- const idx = this.reference.chromosomesOrder.indexOf(dObject.chr);
663
- const dataType = dObject.dt == dtcnv ? "CNV" : dObject.dt == dtloh ? "LOH" : "ITD";
664
- if (dObject.chr && idx != -1) {
665
- const chrSize = this.reference.chromosomes[idx].size;
666
- const start = dObject.start;
667
- const stop = dObject.stop;
668
- if (Number.isFinite(start) && Number.isFinite(stop) && start >= 0 && stop <= chrSize && start <= stop) {
669
- this.addData(dObject, dataArray);
670
- } else {
671
- this.invalidEntries.push({
672
- dataType,
673
- reason: `Position ${start}-${stop} outside of ${dObject.chr}`
674
- });
675
- }
676
- } else {
677
- if (!this.excludedChromosomes.includes(dObject.chr)) {
678
- this.invalidEntries.push({
679
- dataType,
680
- reason: `Unknown chr ${dObject.chr}`
681
- });
682
- }
683
- }
684
- } else {
685
- throw Error("Unknown mutation type!");
686
- }
687
- });
688
- const sortedData = dataArray.sort(this.compareData);
689
- if (this.settings.rings.nonExonicRingEnabled) {
690
- sortedData.forEach((data2) => {
691
- this.filterNonExonicSnvData(data2);
692
- });
693
- }
694
- if (this.nonExonicSnvData.length > 0) {
695
- this.nonExonicInnerRadius = this.lastInnerRadious - this.settings.rings.nonExonicRingWidth;
696
- this.lastInnerRadious = this.nonExonicInnerRadius;
697
- }
698
- sortedData.forEach((data2) => {
699
- this.filterSnvs(data2);
700
- });
701
- this.hasWaterfallEligibleChromosome = Array.from(this.filteredSnvCountByChr.values()).some((count) => count >= 2);
702
- if (this.settings.Disco.mutationWaterfallPlot && this.hasWaterfallEligibleChromosome) {
703
- this.prepareMutationWaterfallData();
704
- }
705
- sortedData.forEach((data2) => {
706
- this.filterLohs(data2);
707
- });
708
- if (this.lohData.length > 0) {
709
- this.lohInnerRadius = this.lastInnerRadious - this.settings.rings.lohRingWidth;
710
- this.lastInnerRadious = this.lohInnerRadius;
711
- }
712
- sortedData.forEach((data2) => {
713
- this.filterCnvs(data2);
714
- });
715
- if (this.cnvData.length > 0) {
716
- this.cnvInnerRadius = this.lastInnerRadious - this.settings.rings.cnvRingWidth;
717
- this.lastInnerRadious = this.cnvInnerRadius;
718
- this.cappedCnvMaxAbsValue = Math.min(
719
- this.settings.Disco.cnvCapping,
720
- Math.max(
721
- Math.abs(_DataMapper.capMaxValue(this.cnvLossMaxValue, this.gainCapped, this.lossCapped)),
722
- Math.abs(_DataMapper.capMaxValue(this.cnvGainMaxValue, this.gainCapped, this.lossCapped))
723
- )
724
- );
725
- const cnvValues = this.cnvData.filter((data2) => data2.dt == dtcnv).map((data2) => data2.value);
726
- if (cnvValues.length) {
727
- const percentilePair = new PercentileMapper().map(cnvValues, this.settings.Disco.cnvPercentile);
728
- this.percentilePositive = _DataMapper.capMaxValue(percentilePair.positive, this.gainCapped, this.lossCapped);
729
- this.percentileNegative = _DataMapper.capMaxValue(percentilePair.negative, this.gainCapped, this.lossCapped);
730
- this.cnvMaxPercentileAbs = Math.min(
731
- this.settings.Disco.cnvCapping,
732
- Math.max(this.percentilePositive, Math.abs(this.percentileNegative))
733
- );
734
- }
735
- }
736
- sortedData.forEach((data2) => {
737
- this.filterFusion(data2);
738
- });
739
- if (this.fusionData.length > 0) {
740
- this.fusionRadius = this.lastInnerRadious;
741
- }
742
- const dataHolder = {
743
- labelData: this.labelData,
744
- nonExonicSnvData: this.nonExonicSnvData,
745
- nonExonicInnerRadius: this.nonExonicInnerRadius,
746
- snvRingDataMap: this.snvRingDataMap,
747
- snvInnerRadius: this.snvInnerRadius,
748
- snvData: this.snvData,
749
- bpx: this.bpx,
750
- onePxArcAngle: this.onePxArcAngle,
751
- filteredSnvData: this.filteredSnvData,
752
- lohData: this.lohData,
753
- lohInnerRadius: this.lohInnerRadius,
754
- cnvData: this.cnvData,
755
- cnvInnerRadius: this.cnvInnerRadius,
756
- fusionData: this.fusionData,
757
- fusionRadius: this.fusionRadius,
758
- hasPrioritizedGenes: this.hasPrioritizedGenes,
759
- hasWaterfallEligibleChromosome: this.hasWaterfallEligibleChromosome,
760
- cnvGainMaxValue: this.cnvGainMaxValue,
761
- cnvLossMaxValue: this.cnvLossMaxValue,
762
- cappedCnvMaxAbsValue: this.cappedCnvMaxAbsValue,
763
- percentilePositive: this.percentilePositive,
764
- percentileNegative: this.percentileNegative,
765
- cnvMaxPercentileAbs: this.cnvMaxPercentileAbs,
766
- lohMaxValue: this.lohMaxValue,
767
- lohMinValue: this.lohMinValue,
768
- hasMutationFractionData: this.hasMutationFractionData,
769
- mutationWaterfallData: this.mutationWaterfallData,
770
- mutationWaterfallInnerRadius: this.mutationWaterfallInnerRadius,
771
- mutationWaterfallLogRange: this.mutationWaterfallData.length ? { min: this.mutationWaterfallRangeMin, max: this.mutationWaterfallRangeMax } : void 0,
772
- invalidDataInfo: {
773
- entries: this.invalidEntries,
774
- errorMsg: `Entries listed above were skipped due to invalid or unsupported chromosome information.`
775
- }
776
- };
777
- return dataHolder;
778
- }
779
- addData(dObject, dataArray) {
780
- const instance = this.dataObjectMapper.map(dObject);
781
- if (instance.isPrioritized) {
782
- this.hasPrioritizedGenes = true;
783
- }
784
- dataArray.push(instance);
785
- }
786
- filterNonExonicSnvData(data) {
787
- if (this.snvFilter(data) && this.passesMutationFractionFilter(data)) {
788
- if (this.settings.rings.nonExonicRingEnabled && this.nonExonicFilter(data)) {
789
- this.nonExonicSnvData.push(data);
790
- }
791
- }
792
- }
793
- filterSnvs(data) {
794
- if (this.snvFilter(data)) {
795
- this.snvData.push(data);
796
- if (this.passesMutationFractionFilter(data) && this.snvRingFilter(data)) {
797
- if (this.snvInnerRadius == 0) {
798
- this.snvInnerRadius = this.lastInnerRadious - this.settings.rings.snvRingWidth;
799
- this.lastInnerRadious = this.snvInnerRadius;
800
- this.bpx = Math.floor(this.reference.totalSize / (this.reference.totalChromosomesAngle * this.snvInnerRadius));
801
- this.onePxArcAngle = 1 / this.snvInnerRadius;
802
- }
803
- this.filteredSnvData.push(data);
804
- this.labelData.push(data);
805
- const currentCount = this.filteredSnvCountByChr.get(data.chr) || 0;
806
- this.filteredSnvCountByChr.set(data.chr, currentCount + 1);
807
- const arcAngle = this.calculateArcAngle(data);
808
- let dataArray = this.snvRingDataMap.get(arcAngle);
809
- if (!dataArray) {
810
- dataArray = new Array();
811
- }
812
- dataArray.push(data);
813
- this.snvRingDataMap.set(arcAngle, dataArray);
814
- }
815
- }
816
- }
817
- passesMutationFractionFilter(data) {
818
- if (!this.hasMutationFractionData) return true;
819
- const minMutationFraction = this.settings.Disco.minMutationFraction || 0;
820
- if (minMutationFraction <= 0) return true;
821
- const fraction = getMaxMutationFraction(data.vafs);
822
- return fraction != null && fraction >= minMutationFraction;
823
- }
824
- filterFusion(data) {
825
- if (this.fusionFilter(data)) {
826
- data.isPrioritized = true;
827
- this.fusionData.push(data);
828
- this.labelData.push(data);
829
- }
830
- }
831
- filterLohs(data) {
832
- if (this.lohFilter(data)) {
833
- if (this.lohMaxValue == void 0 || this.lohMaxValue < data.value) {
834
- this.lohMaxValue = data.segmean;
835
- }
836
- if (this.lohMinValue == void 0 || this.lohMinValue > data.value) {
837
- this.lohMinValue = data.segmean;
838
- }
839
- this.lohData.push(data);
840
- }
841
- }
842
- filterCnvs(data) {
843
- if (this.cnvFilter(data)) {
844
- if (!data.chr || this.reference.chromosomesOrder.indexOf(data.chr) == -1) {
845
- return;
846
- }
847
- if (data.dt == dtcnv) {
848
- if (this.cnvGainMaxValue == void 0 || this.cnvGainMaxValue < data.value) {
849
- this.cnvGainMaxValue = data.value;
850
- }
851
- if (this.cnvLossMaxValue == void 0 || this.cnvLossMaxValue > data.value) {
852
- this.cnvLossMaxValue = data.value;
853
- }
854
- }
855
- this.cnvData.push(data);
856
- }
857
- }
858
- prepareMutationWaterfallData() {
859
- this.mutationWaterfallInnerRadius = this.lastInnerRadious - this.settings.rings.mutationWaterfallRingWidth;
860
- this.lastInnerRadious = this.mutationWaterfallInnerRadius;
861
- const groupedSnvs = /* @__PURE__ */ new Map();
862
- const firstMutationByChr = [];
863
- for (const snv of this.filteredSnvData) {
864
- const list = groupedSnvs.get(snv.chr) || [];
865
- list.push(snv);
866
- groupedSnvs.set(snv.chr, list);
867
- }
868
- for (const [, snvs] of groupedSnvs) {
869
- if (snvs.length < 2) continue;
870
- snvs.sort((a, b) => a.position - b.position);
871
- firstMutationByChr.push({
872
- chr: snvs[0].chr,
873
- position: snvs[0].position,
874
- logDistance: 0
875
- // placeholder updated after range computed
876
- });
877
- for (let i = 1; i < snvs.length; i++) {
878
- const prev = snvs[i - 1];
879
- const curr = snvs[i];
880
- const distance = Math.max(1, Math.abs(curr.position - prev.position));
881
- const logDistance = Math.log10(distance);
882
- this.mutationWaterfallData.push({
883
- chr: curr.chr,
884
- position: curr.position,
885
- logDistance
886
- });
887
- if (logDistance < this.mutationWaterfallRangeMin) {
888
- this.mutationWaterfallRangeMin = logDistance;
889
- }
890
- if (logDistance > this.mutationWaterfallRangeMax) {
891
- this.mutationWaterfallRangeMax = logDistance;
892
- }
893
- }
894
- }
895
- if (!this.mutationWaterfallData.length) {
896
- this.mutationWaterfallRangeMin = 0;
897
- this.mutationWaterfallRangeMax = 0;
898
- }
899
- const topLogDistance = this.mutationWaterfallRangeMax;
900
- for (const first of firstMutationByChr) {
901
- this.mutationWaterfallData.push({
902
- ...first,
903
- logDistance: topLogDistance
904
- });
905
- }
906
- }
907
- calculateArcAngle(data) {
908
- const currentChromosome = this.reference.chromosomes[this.reference.chromosomesOrder.findIndex((chromosomeOrder) => data.chr == chromosomeOrder)];
909
- const dataAnglePos = Math.floor(data.position / this.bpx);
910
- return currentChromosome.startAngle + dataAnglePos * this.onePxArcAngle;
911
- }
912
- static capMaxValue(value, gainCapped, lossCapped) {
913
- if (value && Math.sign(value) == 1) {
914
- return value > gainCapped ? gainCapped : value;
915
- }
916
- if (Math.sign(value) == -1) {
917
- return value < lossCapped ? lossCapped : value;
918
- }
919
- return 0;
920
- }
921
- static capMinValue(value, capMinValue = 1) {
922
- if (Math.sign(value) == 1) {
923
- return value > capMinValue ? value : capMinValue;
924
- }
925
- if (Math.sign(value) == -1) {
926
- return value < -1 * capMinValue ? value : -1 * capMinValue;
927
- }
928
- return 1;
929
- }
930
- };
931
-
932
- // plots/disco/legend/Legend.ts
933
- var Legend = class {
934
- constructor(snvTitle, cnvTitle, lohTitle, fusionTitle, cnvPercentile, cnvCutoffmode, snvClassMap, cnvClassMap, cnvRenderingType, fusionLegend, discoInteractions, lohLegend, mutationWaterfallLegend, fusionLegendCounts = { interchromosomal: 0, intrachromosomal: 0 }, cnvCount = 0) {
935
- this.snvTitle = snvTitle;
936
- this.cnvTitle = cnvTitle;
937
- this.lohTitle = lohTitle;
938
- this.fusionTitle = fusionTitle;
939
- this.cnvPercentile = cnvPercentile;
940
- this.cnvCutoffMode = cnvCutoffmode;
941
- this.cnvCount = cnvCount;
942
- this.snvClassMap = snvClassMap;
943
- this.cnvClassMap = cnvClassMap;
944
- this.cnvRenderingType = cnvRenderingType;
945
- this.lohLegend = lohLegend;
946
- this.fusionLegend = fusionLegend;
947
- this.fusionLegendCounts = fusionLegendCounts;
948
- this.discoInteractions = discoInteractions;
949
- this.mutationWaterfallLegend = mutationWaterfallLegend;
950
- }
951
- legendCount() {
952
- const hasItd = this.cnvClassMap.has(4 /* ITD */);
953
- return (this.snvClassMap.size > 0 ? 1 : 0) + (this.cnvCount > 0 ? 1 : 0) + (hasItd ? 1 : 0) + (this.lohLegend ? 1 : 0) + (this.fusionLegend ? 1 : 0) + (this.mutationWaterfallLegend ? 1 : 0);
954
- }
955
- };
956
-
957
- // plots/disco/fusion/Fusion.ts
958
- var Fusion = class {
959
- constructor(source, target, genes, count, endpts) {
960
- this.source = source;
961
- this.target = target;
962
- this.genes = genes;
963
- this.count = count;
964
- this.endpts = endpts;
965
- }
966
- };
967
-
968
- // plots/disco/fusion/FusionSubgroup.ts
969
- var FusionSubgroup = class {
970
- constructor(startAngle, endAngle, radius, gene, value, genes, positionInChromosome, strand) {
971
- this.startAngle = startAngle;
972
- this.endAngle = endAngle;
973
- this.radius = radius;
974
- this.gene = gene;
975
- this.value = value;
976
- this.genes = genes;
977
- this.positionInChromosome = positionInChromosome;
978
- this.strand = strand;
979
- }
980
- };
981
-
982
- // plots/disco/fusion/FusionMapper.ts
983
- var FusionMapper = class {
984
- constructor(radius, sampleName, reference) {
985
- this.radius = radius;
986
- this.sampleName = sampleName;
987
- this.reference = reference;
988
- }
989
- map(fusionData) {
990
- const fusions = [];
991
- fusionData.forEach((data) => {
992
- const genes = /* @__PURE__ */ new Set();
993
- genes.add(data.geneA);
994
- genes.add(data.geneB);
995
- const startAngle = this.calculateStartAngle(data.chrA, data.posA);
996
- const endAngle = this.calculateEndAngle(data.chrA, data.posA);
997
- if (startAngle === null || endAngle === null) return;
998
- const source = new FusionSubgroup(
999
- startAngle,
1000
- endAngle,
1001
- this.radius,
1002
- data.geneA,
1003
- data.value,
1004
- genes,
1005
- {
1006
- chromosome: data.chrA,
1007
- position: data.posA
1008
- },
1009
- data.strandA
1010
- );
1011
- let target;
1012
- if (data.chrB && data.posB) {
1013
- const startAngle2 = this.calculateStartAngle(data.chrB, data.posB);
1014
- const endAngle2 = this.calculateEndAngle(data.chrB, data.posB);
1015
- if (startAngle2 === null || endAngle2 === null) return;
1016
- target = new FusionSubgroup(
1017
- startAngle2,
1018
- endAngle2,
1019
- this.radius,
1020
- data.geneB,
1021
- data.value,
1022
- genes,
1023
- {
1024
- chromosome: data.chrB,
1025
- position: data.posB
1026
- },
1027
- data.strandB
1028
- );
1029
- }
1030
- const fusion = new Fusion(source, target, "genes", -1, "Endpoints");
1031
- fusions.push(fusion);
1032
- });
1033
- return fusions;
1034
- }
1035
- calculateStartAngle(chr, pos) {
1036
- const index = this.reference.chromosomesOrder.indexOf(chr);
1037
- if (index === -1) return null;
1038
- const chromosome = this.reference.chromosomes[index];
1039
- return chromosome.startAngle + (chromosome.endAngle - chromosome.startAngle) * (Number(pos) / chromosome.size) - 0.01;
1040
- }
1041
- calculateEndAngle(chr, pos) {
1042
- const index = this.reference.chromosomesOrder.indexOf(chr);
1043
- if (index === -1) return null;
1044
- const chromosome = this.reference.chromosomes[index];
1045
- return 0.01 + chromosome.startAngle + (chromosome.endAngle - chromosome.startAngle) * (Number(pos) / chromosome.size);
1046
- }
1047
- };
1048
-
1049
- // plots/disco/loh/LohLegend.ts
1050
- var LohLegend = class {
1051
- constructor(count) {
1052
- this.count = count;
1053
- }
1054
- };
1055
-
1056
- // plots/disco/viewmodel/ViewModel.ts
1057
- var ViewModel = class {
1058
- constructor(settings, rings, legend, fusions, dataHolder, genesetName, snvDataLengthAll) {
1059
- this.settings = settings;
1060
- this.rings = rings;
1061
- this.legend = legend;
1062
- this.fusions = fusions;
1063
- this.genesetName = genesetName;
1064
- const tempHolder = select_default("body").append("div").style("position", "absolute").style("visibility", "hidden");
1065
- const tempSvg = tempHolder.append("svg");
1066
- const labels = rings.labelsRing?.elementsToDisplay?.map((l) => l.text) || [];
1067
- const maxLabelSpace = getMaxLabelWidth(tempSvg, labels);
1068
- tempHolder.remove();
1069
- this.width = 2 * (this.settings.horizontalPadding + this.settings.rings.labelLinesInnerRadius + this.settings.rings.labelsToLinesDistance + maxLabelSpace);
1070
- this.height = 2 * (this.settings.rings.labelLinesInnerRadius + this.settings.rings.labelsToLinesDistance + this.settings.verticalPadding + this.settings.label.fontSize * 2 + maxLabelSpace);
1071
- this.legendHeight = this.calculateLegendHeight(legend);
1072
- this.snvDataLength = dataHolder.snvData.length;
1073
- this.filteredSnvDataLength = dataHolder.filteredSnvData.length;
1074
- this.snvDataLengthAll = snvDataLengthAll;
1075
- this.cnvMaxValue = dataHolder.cnvGainMaxValue;
1076
- this.cnvMinValue = dataHolder.cnvLossMaxValue;
1077
- this.cappedCnvMaxAbsValue = dataHolder.cappedCnvMaxAbsValue;
1078
- this.negativePercentile = dataHolder.percentileNegative;
1079
- this.positivePercentile = dataHolder.percentilePositive;
1080
- this.invalidDataInfo = dataHolder.invalidDataInfo;
1081
- this.canShowMutationWaterfallPlot = dataHolder.hasWaterfallEligibleChromosome;
1082
- this.hasMutationFractionData = dataHolder.hasMutationFractionData;
1083
- }
1084
- getElements(ringType) {
1085
- switch (ringType) {
1086
- case 0 /* CHROMOSOME */:
1087
- return this.rings.chromosomesRing ? this.rings.chromosomesRing.elements : [];
1088
- case 1 /* LABEL */:
1089
- return this.rings.labelsRing.elementsToDisplay;
1090
- case 2 /* NONEXONICSNV */:
1091
- return this.rings.nonExonicArcRing ? this.rings.nonExonicArcRing.elements : [];
1092
- case 3 /* SNV */:
1093
- return this.rings.snvArcRing ? this.rings.snvArcRing.elements : [];
1094
- case 5 /* CNV */:
1095
- return this.rings.cnvArcRing ? this.rings.cnvArcRing.elements : [];
1096
- case 6 /* LOH */:
1097
- return this.rings.lohArcRing ? this.rings.lohArcRing.elements : [];
1098
- case 4 /* MUTATION_WATERFALL */:
1099
- return this.rings.mutationWaterfallRing ? this.rings.mutationWaterfallRing.elements : [];
1100
- default:
1101
- throw new Error(`ringType ${ringType} not defined`);
1102
- }
1103
- }
1104
- getCollisions(ringType) {
1105
- if (ringType == 1 /* LABEL */) {
1106
- return this.rings.labelsRing.collisions;
1107
- } else {
1108
- return void 0;
1109
- }
1110
- }
1111
- calculateLegendHeight(legend) {
1112
- const rawHeight = this.settings.legend.rowHeight;
1113
- return rawHeight * legend.legendCount();
1114
- }
1115
- };
1116
-
1117
- // plots/disco/ring/Ring.ts
1118
- var Ring = class {
1119
- constructor(innerRadius, width, elements) {
1120
- this.innerRadius = innerRadius;
1121
- this.outerRadius = innerRadius + width;
1122
- this.width = width;
1123
- this.elements = elements;
1124
- }
1125
- };
1126
-
1127
- // plots/disco/label/MLabel.ts
1128
- var MLabel = class _MLabel {
1129
- /**
1130
- * The Singleton's constructor should always be private to prevent direct
1131
- * construction calls with the `new` operator.
1132
- */
1133
- constructor() {
1134
- const mlabel = {};
1135
- for (const key in mclass) {
1136
- mlabel[mclass[key].label] = mclass[key];
1137
- mlabel[key] = mclass[key];
1138
- }
1139
- this.mlabel = mlabel;
1140
- }
1141
- /**
1142
- * The static method that controls the access to the singleton instance.
1143
- *
1144
- * This implementation let you subclass the Singleton class while keeping
1145
- * just one instance of each subclass around.
1146
- */
1147
- static getInstance() {
1148
- if (!_MLabel.instance) {
1149
- _MLabel.instance = new _MLabel();
1150
- }
1151
- return _MLabel.instance;
1152
- }
1153
- };
1154
-
1155
- // plots/disco/snv/SnvLegendElement.ts
1156
- var SnvLegendElement = class {
1157
- constructor(snvType, color, count) {
1158
- this.snvType = snvType;
1159
- this.color = color;
1160
- this.count = count;
1161
- }
1162
- };
1163
-
1164
- // plots/disco/snv/SnvArcsMapper.ts
1165
- var SnvArcsMapper = class {
1166
- constructor(svnInnerRadius, svnWidth, sampleName, reference) {
1167
- this.snvClassMap = /* @__PURE__ */ new Map();
1168
- this.svnInnerRadius = svnInnerRadius;
1169
- this.svnWidth = svnWidth;
1170
- this.sampleName = sampleName;
1171
- this.reference = reference;
1172
- this.bpx = Math.floor(this.reference.totalSize / (this.reference.totalChromosomesAngle * svnInnerRadius));
1173
- this.onePxArcAngle = 1 / svnInnerRadius;
1174
- }
1175
- map(exonicSnvDataMap) {
1176
- const snvArray = [];
1177
- for (const angle of exonicSnvDataMap.keys()) {
1178
- const array = exonicSnvDataMap.get(angle);
1179
- if (array) {
1180
- const arraySize = array.length;
1181
- for (let i = 0; i < array.length; i++) {
1182
- const data = array[i];
1183
- const snvLegendElement = this.snvClassMap.get(data.mClass);
1184
- if (snvLegendElement) {
1185
- this.snvClassMap.set(data.mClass, this.createSnvLegend(data.mClass, ++snvLegendElement.count));
1186
- } else {
1187
- this.snvClassMap.set(data.mClass, this.createSnvLegend(data.mClass, 1));
1188
- }
1189
- const startAngle = angle;
1190
- const endAngle = angle + this.onePxArcAngle;
1191
- const mLabel = MLabel.getInstance().mlabel ? MLabel.getInstance().mlabel[data.mClass] : void 0;
1192
- const arc = {
1193
- startAngle,
1194
- endAngle,
1195
- innerRadius: this.svnInnerRadius + i * this.svnWidth / arraySize,
1196
- outerRadius: this.svnInnerRadius + (i + 1) * this.svnWidth / arraySize,
1197
- color: mLabel.color,
1198
- text: data.gene,
1199
- dataClass: mLabel.label,
1200
- mname: data.mname,
1201
- chr: data.chr,
1202
- pos: data.position,
1203
- vafs: data.vafs,
1204
- sampleName: [data.sampleName]
1205
- };
1206
- snvArray.push(arc);
1207
- }
1208
- }
1209
- }
1210
- return snvArray;
1211
- }
1212
- createSnvLegend(dataClass, count) {
1213
- const mClass = MLabel.getInstance().mlabel[dataClass];
1214
- return new SnvLegendElement(mClass.label, mClass.color, count);
1215
- }
1216
- };
1217
-
1218
- // plots/disco/cnv/CnvLegend.ts
1219
- var CnvLegend = class {
1220
- constructor(text, cnvType, color, value) {
1221
- this.text = text;
1222
- this.cnvType = cnvType;
1223
- this.color = color;
1224
- this.value = value;
1225
- }
1226
- };
1227
-
1228
- // plots/disco/cnv/CnvColorProvider.ts
1229
- var CnvColorProvider = class {
1230
- static getColor(value, settings, cnvMaxPercentileAbs = 0) {
1231
- const cnv = settings.cnv;
1232
- const gainCapped = settings.Disco.cnvRenderingType == "heatmap" /* heatmap */ ? settings.Disco.cnvCapping : cnvMaxPercentileAbs;
1233
- const lossCapped = settings.Disco.cnvRenderingType == "heatmap" /* heatmap */ ? -1 * settings.Disco.cnvCapping : -1 * cnvMaxPercentileAbs;
1234
- if (value < lossCapped) {
1235
- return cnv.cappedLossColor;
1236
- } else if (value >= lossCapped && value <= 0) {
1237
- return cnv.lossColor;
1238
- } else if (value > 0 && value <= gainCapped) {
1239
- return cnv.ampColor;
1240
- } else {
1241
- return cnv.cappedAmpColor;
1242
- }
1243
- }
1244
- };
1245
-
1246
- // plots/disco/cnv/CnvArcsMapper.ts
1247
- var CnvArcsMapper = class {
1248
- constructor(cnvInnerRadius, cnvWidth, settings, sampleName, reference, cnvMaxValue = 0, cnvMinValue = 0, cnvMaxAbsValue = 0, cnvAbsPercentile = 0, cnvUnit = "", cnvRenderingType) {
1249
- this.cnvClassMap = /* @__PURE__ */ new Map();
1250
- this.cnvInnerRadius = cnvInnerRadius;
1251
- this.cnvWidth = cnvWidth;
1252
- this.settings = settings;
1253
- this.sampleName = sampleName;
1254
- this.reference = reference;
1255
- this.cnvMaxValue = cnvMaxValue;
1256
- this.cnvMinValue = cnvMinValue;
1257
- this.cnvMaxAbsValue = cnvMaxAbsValue;
1258
- this.cnvAbsPercentile = cnvAbsPercentile;
1259
- this.cnvUnit = cnvUnit;
1260
- this.cnvRenderingType = cnvRenderingType;
1261
- this.gainCapped = Math.min(cnvAbsPercentile, this.settings.Disco.cnvCapping);
1262
- this.lossCapped = -1 * Math.min(cnvAbsPercentile, this.settings.Disco.cnvCapping);
1263
- this.lossOnly = cnvMaxValue <= 0;
1264
- this.gainOnly = cnvMinValue >= 0;
1265
- this.onePxArcAngle = 1 / this.cnvInnerRadius;
1266
- const gain = new CnvLegend(
1267
- "Max",
1268
- cnvMaxValue > 0 ? 1 /* Gain */ : 0 /* Loss */,
1269
- this.getColor(cnvMaxValue),
1270
- cnvMaxValue
1271
- );
1272
- const loss = new CnvLegend(
1273
- "Min",
1274
- cnvMinValue > 0 ? 1 /* Gain */ : 0 /* Loss */,
1275
- this.getColor(cnvMinValue),
1276
- cnvMinValue
1277
- );
1278
- const cap = new CnvLegend(
1279
- "Capping",
1280
- 0 /* Loss */,
1281
- this.getColor(cnvMinValue > 0 ? cnvMinValue : cnvMaxValue),
1282
- this.settings.Disco.cnvCapping
1283
- );
1284
- this.cnvClassMap.set(1 /* Gain */, gain);
1285
- this.cnvClassMap.set(0 /* Loss */, loss);
1286
- this.cnvClassMap.set(2 /* Cap */, cap);
1287
- }
1288
- map(arcData) {
1289
- const arcs = [];
1290
- let itdCount = 0;
1291
- arcData.forEach((data) => {
1292
- let startAngle = this.calculateStartAngle(data);
1293
- let endAngle = this.calculateEndAngle(data);
1294
- if (startAngle === null || endAngle === null) return;
1295
- if (endAngle - startAngle < this.onePxArcAngle) {
1296
- const restAngle = this.onePxArcAngle - (endAngle - startAngle);
1297
- startAngle = startAngle - restAngle / 2;
1298
- endAngle = endAngle + restAngle / 2;
1299
- }
1300
- const isItd = data.dt == dtitd;
1301
- if (isItd) itdCount++;
1302
- const color = isItd ? mclass[mclassitd].color : this.getColor(data.value);
1303
- const innerRadius = isItd ? this.cnvInnerRadius : this.calculateInnerRadius(data);
1304
- const outerRadius = isItd ? this.cnvInnerRadius + this.cnvWidth : this.calculateOuterRadius(data);
1305
- const arc = {
1306
- startAngle,
1307
- endAngle,
1308
- innerRadius,
1309
- outerRadius,
1310
- color,
1311
- dt: data.dt,
1312
- dataClass: data.mClass,
1313
- text: data.gene,
1314
- chr: data.chr,
1315
- start: data.start,
1316
- stop: data.stop,
1317
- value: data.value,
1318
- unit: this.cnvUnit,
1319
- sampleName: [this.sampleName]
1320
- };
1321
- arcs.push(arc);
1322
- });
1323
- if (itdCount) {
1324
- this.cnvClassMap.set(4 /* ITD */, new CnvLegend("ITD", 4 /* ITD */, mclass[mclassitd].color, itdCount));
1325
- }
1326
- return arcs;
1327
- }
1328
- calculateStartAngle(data) {
1329
- const index = this.reference.chromosomesOrder.indexOf(data.chr);
1330
- if (index == -1) return null;
1331
- const chromosome = this.reference.chromosomes[index];
1332
- return chromosome.startAngle + (chromosome.endAngle - chromosome.startAngle) * (Number(data.start) / chromosome.size);
1333
- }
1334
- calculateEndAngle(data) {
1335
- const index = this.reference.chromosomesOrder.indexOf(data.chr);
1336
- const chromosome = this.reference.chromosomes[index];
1337
- return chromosome.startAngle + (chromosome.endAngle - chromosome.startAngle) * (Number(data.stop) / chromosome.size);
1338
- }
1339
- getColor(value) {
1340
- return CnvColorProvider.getColor(value, this.settings, this.cnvAbsPercentile);
1341
- }
1342
- calculateInnerRadius(data) {
1343
- if (this.cnvRenderingType == "heatmap" /* heatmap */) {
1344
- return this.cnvInnerRadius;
1345
- }
1346
- if (this.gainOnly) {
1347
- return this.cnvInnerRadius;
1348
- }
1349
- if (this.lossOnly) {
1350
- const outerRadius = this.cnvInnerRadius + this.cnvWidth;
1351
- return outerRadius + DataMapper.capMinValue(
1352
- this.cnvWidth * DataMapper.capMaxValue(data.value, this.gainCapped, this.lossCapped) / this.cnvAbsPercentile
1353
- );
1354
- }
1355
- const centerRadius = this.cnvInnerRadius + this.cnvWidth / 2;
1356
- if (Math.sign(data.value) == 1) {
1357
- return centerRadius;
1358
- }
1359
- if (Math.sign(data.value) == -1) {
1360
- return centerRadius + DataMapper.capMinValue(
1361
- DataMapper.capMaxValue(data.value, this.gainCapped, this.lossCapped) / this.cnvAbsPercentile * (this.cnvWidth / 2)
1362
- );
1363
- }
1364
- return 1;
1365
- }
1366
- calculateOuterRadius(data) {
1367
- const maxOuterRadius = this.cnvInnerRadius + this.cnvWidth;
1368
- if (this.cnvRenderingType == "heatmap" /* heatmap */) {
1369
- return maxOuterRadius;
1370
- }
1371
- if (this.gainOnly) {
1372
- return this.cnvInnerRadius + DataMapper.capMinValue(
1373
- this.cnvWidth * DataMapper.capMaxValue(data.value, this.gainCapped, this.lossCapped) / this.cnvAbsPercentile
1374
- );
1375
- }
1376
- if (this.lossOnly) {
1377
- return maxOuterRadius;
1378
- }
1379
- const centerRadius = this.cnvInnerRadius + this.cnvWidth / 2;
1380
- if (Math.sign(data.value) == 1) {
1381
- return centerRadius + DataMapper.capMinValue(
1382
- DataMapper.capMaxValue(data.value, this.gainCapped, this.lossCapped) / this.cnvMaxAbsValue * (this.cnvWidth / 2)
1383
- );
1384
- }
1385
- if (Math.sign(data.value) == -1) {
1386
- return centerRadius;
1387
- }
1388
- return 1;
1389
- }
1390
- };
1391
-
1392
- // plots/disco/label/Line.ts
1393
- var Line = class {
1394
- constructor(points, color) {
1395
- this.points = new Array();
1396
- this.points = points;
1397
- this.color = color;
1398
- }
1399
- };
1400
-
1401
- // plots/disco/label/LabelFactory.ts
1402
- var LabelFactory = class {
1403
- static createLabel(startAngle, endAngle, innerRadius, outerRadius, value, gene, color, dataClass, chr, position, isPrioritized = false, labelsToLinesGap, mutationTooltip, fusionTooltip) {
1404
- const angle = (startAngle + endAngle) / 2;
1405
- const ccAngle = angle - Math.PI / 2;
1406
- const transform = `rotate(${angle * 180 / Math.PI - 90}) translate(${outerRadius})${angle > Math.PI ? "rotate(180)" : ""}`;
1407
- const textAnchor = angle > Math.PI ? "end" : "";
1408
- const r0 = innerRadius;
1409
- const r1 = outerRadius - labelsToLinesGap;
1410
- const points = [];
1411
- const point0 = {
1412
- x: r0 * Math.cos(ccAngle),
1413
- y: r0 * Math.sin(ccAngle)
1414
- };
1415
- const point1 = {
1416
- x: r1 * Math.cos(ccAngle),
1417
- y: r1 * Math.sin(ccAngle)
1418
- };
1419
- points.push(point0);
1420
- points.push(point1);
1421
- const line = new Line(points, color);
1422
- const label = {
1423
- startAngle,
1424
- endAngle,
1425
- innerRadius,
1426
- outerRadius,
1427
- angle,
1428
- value,
1429
- text: gene,
1430
- color,
1431
- transform,
1432
- textAnchor,
1433
- ccAngle,
1434
- line,
1435
- isPrioritized,
1436
- start: position,
1437
- stop: position,
1438
- chr,
1439
- mutationsTooltip: mutationTooltip ? [mutationTooltip] : void 0,
1440
- fusionTooltip: fusionTooltip ? [fusionTooltip] : void 0
1441
- };
1442
- return label;
1443
- }
1444
- static createMovedLabel(element, overlap) {
1445
- const startAngle = element.startAngle + overlap;
1446
- const endAngle = element.endAngle + overlap;
1447
- const angle = (startAngle + endAngle) / 2;
1448
- const ccAngle = angle - Math.PI / 2;
1449
- const r0 = element.innerRadius;
1450
- const r1 = element.outerRadius - 2;
1451
- const dr = (r1 - r0) / 3;
1452
- const cos0 = Math.cos(element.ccAngle);
1453
- const sin0 = Math.sin(element.ccAngle);
1454
- const cos1 = Math.cos(element.ccAngle + overlap);
1455
- const sin1 = Math.sin(element.ccAngle + overlap);
1456
- const points = [];
1457
- const point0 = {
1458
- x: r0 * cos0,
1459
- y: r0 * sin0
1460
- };
1461
- const point1 = {
1462
- x: (r0 + dr) * cos0,
1463
- y: (r0 + dr) * sin0
1464
- };
1465
- const point2 = {
1466
- x: (r0 + 2 * dr) * cos1,
1467
- y: (r0 + 2 * dr) * sin1
1468
- };
1469
- const point3 = {
1470
- x: (r0 + 3 * dr) * cos1,
1471
- y: (r0 + 3 * dr) * sin1
1472
- };
1473
- points.push(point0);
1474
- points.push(point1);
1475
- points.push(point2);
1476
- points.push(point3);
1477
- const line = new Line(points, element.color);
1478
- const transform = "rotate(" + (angle * 180 / Math.PI - 90) + ")translate(" + element.outerRadius + ")" + (angle > Math.PI ? "rotate(180)" : "");
1479
- const textAnchor = angle > Math.PI ? "end" : "";
1480
- const color = element.mutationsTooltip ? element.mutationsTooltip[0].color : element.fusionTooltip ? element.fusionTooltip[0].color : void 0;
1481
- const label = {
1482
- startAngle,
1483
- endAngle,
1484
- innerRadius: element.innerRadius,
1485
- outerRadius: element.outerRadius,
1486
- angle,
1487
- value: element.value,
1488
- text: element.text,
1489
- transform,
1490
- textAnchor,
1491
- ccAngle,
1492
- color,
1493
- line,
1494
- isPrioritized: element.isPrioritized,
1495
- start: element.start,
1496
- stop: element.stop,
1497
- chr: element.chr,
1498
- mutationsTooltip: element.mutationsTooltip,
1499
- fusionTooltip: element.fusionTooltip,
1500
- cnvTooltip: element.cnvTooltip
1501
- };
1502
- return label;
1503
- }
1504
- };
1505
-
1506
- // plots/disco/label/LabelsMapper.ts
1507
- var LabelsMapper = class {
1508
- constructor(settings, sampleName, reference, cnvMaxPercentileAbs = 0) {
1509
- this.labelMap = /* @__PURE__ */ new Map();
1510
- this.settings = settings;
1511
- this.sampleName = sampleName;
1512
- this.reference = reference;
1513
- this.cnvMaxPercentileAbs = cnvMaxPercentileAbs;
1514
- }
1515
- map(data, cnvData = []) {
1516
- const innerRadius = this.settings.rings.labelLinesInnerRadius;
1517
- const outerRadius = innerRadius + this.settings.rings.labelsToLinesDistance;
1518
- data.forEach((data2) => {
1519
- if (data2.dt == dtsnvindel) {
1520
- const startAngle = this.calculateStartAngle(data2.chr, data2.position);
1521
- const endAngle = this.calculateEndAngle(data2.chr, data2.position);
1522
- if (startAngle === null || endAngle === null) return;
1523
- const mLabel = MLabel.getInstance().mlabel ? MLabel.getInstance().mlabel[data2.mClass] : void 0;
1524
- this.addLabelOrMutation(
1525
- data2,
1526
- data2.gene,
1527
- data2.mname,
1528
- startAngle,
1529
- endAngle,
1530
- innerRadius,
1531
- outerRadius,
1532
- mLabel.color,
1533
- mLabel.label
1534
- );
1535
- }
1536
- if (data2.dt == dtfusionrna) {
1537
- const color = FusionColorProvider.getColor(data2.chrA, data2.chrB);
1538
- if (data2.geneA) {
1539
- const startAngleSource = this.calculateStartAngle(data2.chrA, data2.posA);
1540
- const endAngleSource = this.calculateEndAngle(data2.chrA, data2.posA);
1541
- if (startAngleSource === null || endAngleSource === null) return;
1542
- this.addLabelOrFusion(
1543
- data2,
1544
- data2.geneA,
1545
- data2.posA,
1546
- data2.chrA,
1547
- startAngleSource,
1548
- endAngleSource,
1549
- innerRadius,
1550
- outerRadius,
1551
- color
1552
- );
1553
- }
1554
- if (data2.geneB && data2.geneA != data2.geneB) {
1555
- const startAngleTarget = this.calculateStartAngle(data2.chrB, data2.posB);
1556
- const endAngleTarget = this.calculateEndAngle(data2.chrB, data2.posB);
1557
- if (startAngleTarget == null || endAngleTarget == null) return;
1558
- this.addLabelOrFusion(
1559
- data2,
1560
- data2.geneB,
1561
- data2.posB,
1562
- data2.chrB,
1563
- startAngleTarget,
1564
- endAngleTarget,
1565
- innerRadius,
1566
- outerRadius,
1567
- color
1568
- );
1569
- }
1570
- }
1571
- });
1572
- const labelsArray = Array.from(this.labelMap.values());
1573
- labelsArray.forEach((label) => {
1574
- cnvData.forEach((cnv) => {
1575
- if ((cnv.dt == dtcnv || cnv.dt == dtitd) && label.chr == cnv.chr && label.stop >= cnv.start && cnv.stop >= label.start) {
1576
- const mutation = {
1577
- dt: cnv.dt,
1578
- value: cnv.value,
1579
- color: cnv.dt == dtitd ? mclass[mclassitd].color : CnvColorProvider.getColor(cnv.value, this.settings, this.cnvMaxPercentileAbs),
1580
- chr: cnv.chr,
1581
- start: cnv.start,
1582
- stop: cnv.stop
1583
- };
1584
- if (label.cnvTooltip) {
1585
- label.cnvTooltip.push(mutation);
1586
- } else {
1587
- label.cnvTooltip = [];
1588
- label.cnvTooltip.push(mutation);
1589
- }
1590
- }
1591
- });
1592
- });
1593
- return Array.from(this.labelMap.values());
1594
- }
1595
- addLabelOrMutation(data, gene, mname, startAngle, endAngle, innerRadius, outerRadius, color, dataClass) {
1596
- const label = this.labelMap.get(gene);
1597
- const mutation = {
1598
- mname,
1599
- color,
1600
- dataClass,
1601
- chr: data.chr,
1602
- position: data.position,
1603
- vafs: data.vafs
1604
- };
1605
- if (!label) {
1606
- this.labelMap.set(
1607
- gene,
1608
- LabelFactory.createLabel(
1609
- startAngle,
1610
- endAngle,
1611
- innerRadius,
1612
- outerRadius,
1613
- data.value,
1614
- gene,
1615
- color,
1616
- dataClass,
1617
- data.chr,
1618
- data.position,
1619
- data.isPrioritized,
1620
- this.settings.rings.labelsToLinesGap,
1621
- mutation
1622
- )
1623
- );
1624
- } else {
1625
- if (label.mutationsTooltip) {
1626
- label.start = Math.min(label.start, data.position);
1627
- label.stop = Math.max(label.stop, data.position);
1628
- label.mutationsTooltip.push(mutation);
1629
- } else {
1630
- label.mutationsTooltip = [];
1631
- label.start = Math.min(label.start, data.position);
1632
- label.stop = Math.max(label.stop, data.position);
1633
- label.mutationsTooltip.push(mutation);
1634
- }
1635
- }
1636
- }
1637
- addLabelOrFusion(data, gene, position, chr, startAngle, endAngle, innerRadius, outerRadius, color) {
1638
- const label = this.labelMap.get(gene);
1639
- const fusionTooltip = {
1640
- color,
1641
- chrA: data.chrA,
1642
- chrB: data.chrB,
1643
- posA: data.posA,
1644
- posB: data.posB,
1645
- geneA: data.geneA,
1646
- geneB: data.geneB,
1647
- strandA: data.strandA,
1648
- strandB: data.strandB
1649
- };
1650
- if (!label) {
1651
- this.labelMap.set(
1652
- gene,
1653
- LabelFactory.createLabel(
1654
- startAngle,
1655
- endAngle,
1656
- innerRadius,
1657
- outerRadius,
1658
- data.value,
1659
- gene,
1660
- color,
1661
- "Fusion transcript",
1662
- chr,
1663
- position,
1664
- data.isPrioritized,
1665
- this.settings.rings.labelsToLinesGap,
1666
- void 0,
1667
- fusionTooltip
1668
- )
1669
- );
1670
- } else {
1671
- if (label.fusionTooltip) {
1672
- label.start = Math.min(label.start, position);
1673
- label.stop = Math.max(label.stop, position);
1674
- label.fusionTooltip.push(fusionTooltip);
1675
- } else {
1676
- label.fusionTooltip = [];
1677
- label.start = Math.min(label.start, position);
1678
- label.stop = Math.max(label.stop, position);
1679
- label.fusionTooltip.push(fusionTooltip);
1680
- }
1681
- }
1682
- }
1683
- calculateStartAngle(chr, position) {
1684
- const index = this.reference.chromosomesOrder.findIndex((element) => element == chr);
1685
- if (index === -1) return null;
1686
- const chromosome = this.reference.chromosomes[index];
1687
- return chromosome.startAngle + (chromosome.endAngle - chromosome.startAngle) * (Number(position) / chromosome.size);
1688
- }
1689
- calculateEndAngle(chr, position) {
1690
- const index = this.reference.chromosomesOrder.findIndex((element) => element == chr);
1691
- if (index === -1) return null;
1692
- const chromosome = this.reference.chromosomes[index];
1693
- return chromosome.startAngle + (chromosome.endAngle - chromosome.startAngle) * (Number(position) / chromosome.size);
1694
- }
1695
- };
1696
-
1697
- // plots/disco/label/Labels.ts
1698
- var Labels = class extends Ring {
1699
- constructor(settings, elements, hasPrioritizedGenes) {
1700
- super(
1701
- settings.rings.labelLinesInnerRadius,
1702
- settings.rings.labelsToLinesDistance,
1703
- elements.sort((a, b) => {
1704
- return a.startAngle < b.startAngle ? -1 : a.startAngle > b.startAngle ? 1 : 0;
1705
- })
1706
- );
1707
- this.elementsToDisplay = [];
1708
- this.settings = settings;
1709
- this.hasPrioritizedGenes = hasPrioritizedGenes;
1710
- const circumference = 2 * Math.PI * (settings.rings.labelLinesInnerRadius + settings.rings.labelsToLinesDistance);
1711
- this.overlapAngle = this.settings.label.overlapAngleFactor * this.settings.label.fontSize / circumference;
1712
- this.calculateCollisions();
1713
- }
1714
- calculateCollisions() {
1715
- this.collisions = [];
1716
- let hasPrioritizedGenesList = [];
1717
- hasPrioritizedGenesList = this.elements.filter((label) => label.isPrioritized);
1718
- if (this.settings.label.prioritizeGeneLabelsByGeneSets) {
1719
- this.elementsToDisplay = this.getLabelsWithPrioritizedGenes(hasPrioritizedGenesList);
1720
- } else if (this.hasPrioritizedGenes) {
1721
- const prioritizedGenesList = this.elements.filter((label) => label.isPrioritized);
1722
- const filteredPrioritizedGenesList = this.getLabelsWithPrioritizedGenes(prioritizedGenesList);
1723
- const withoutPrioritizedGenesList = this.elements.filter((label) => !label.isPrioritized);
1724
- const combinedAndSortedList = [...withoutPrioritizedGenesList, ...filteredPrioritizedGenesList].sort(
1725
- (a, b) => a.startAngle - b.startAngle
1726
- );
1727
- this.elementsToDisplay = this.getAllLabels(combinedAndSortedList);
1728
- } else {
1729
- this.elementsToDisplay = this.getLabelsWithPrioritizedGenes(this.elements);
1730
- }
1731
- }
1732
- getLabelsWithPrioritizedGenes(elemenets) {
1733
- const filteredList = [];
1734
- let prev = { endAngle: 0 };
1735
- elemenets.forEach((element, index) => {
1736
- if (index == 0) {
1737
- filteredList.push(element);
1738
- prev = element;
1739
- } else {
1740
- const overlap = prev.endAngle - element.startAngle + this.overlapAngle;
1741
- if (overlap > 0 && overlap < this.settings.label.maxDeltaAngle) {
1742
- const labelCopy = LabelFactory.createMovedLabel(element, overlap);
1743
- filteredList?.push(labelCopy);
1744
- prev = labelCopy;
1745
- }
1746
- if (overlap <= 0) {
1747
- filteredList.push(element);
1748
- prev = element;
1749
- }
1750
- }
1751
- });
1752
- return filteredList;
1753
- }
1754
- getAllLabels(elemenets) {
1755
- const filteredList = [];
1756
- let prev = { endAngle: 0 };
1757
- const elemenetsLength = elemenets.length;
1758
- let lastCancerGeneLabelIndex = -1;
1759
- for (let index = 0; index < elemenets.length; index++) {
1760
- const element = elemenets[index];
1761
- if (element.isPrioritized) {
1762
- filteredList.push(element);
1763
- lastCancerGeneLabelIndex = index;
1764
- prev = element;
1765
- continue;
1766
- }
1767
- if (index == 0) {
1768
- if (elemenetsLength > 1) {
1769
- if (this.isElementOverlappingNextCancerGene(elemenets, lastCancerGeneLabelIndex, element, 0)) {
1770
- continue;
1771
- }
1772
- filteredList.push(element);
1773
- prev = element;
1774
- }
1775
- continue;
1776
- }
1777
- const prevOverlap = prev.endAngle - element.startAngle + this.overlapAngle;
1778
- if (prevOverlap > 0 && prevOverlap < this.settings.label.maxDeltaAngle) {
1779
- if (index == length - 1) {
1780
- filteredList.push(element);
1781
- continue;
1782
- }
1783
- if (this.isElementOverlappingNextCancerGene(elemenets, lastCancerGeneLabelIndex, element, prevOverlap)) {
1784
- continue;
1785
- }
1786
- const labelCopy = LabelFactory.createMovedLabel(element, prevOverlap);
1787
- this.collisions?.push(labelCopy);
1788
- filteredList.push(element);
1789
- prev = labelCopy;
1790
- }
1791
- if (prevOverlap <= 0) {
1792
- if (this.isElementOverlappingNextCancerGene(elemenets, lastCancerGeneLabelIndex, element, 0)) {
1793
- continue;
1794
- }
1795
- filteredList.push(element);
1796
- prev = element;
1797
- }
1798
- }
1799
- return filteredList;
1800
- }
1801
- isElementOverlappingNextCancerGene(elemenets, lastCancerGeneLabelIndex, element, prevOverlap) {
1802
- const nextLabelWithCancerGene = this.getNextLabelWithCancerGene(elemenets, lastCancerGeneLabelIndex);
1803
- if (nextLabelWithCancerGene) {
1804
- const nextOverlap = element.endAngle + prevOverlap - nextLabelWithCancerGene.startAngle + this.overlapAngle;
1805
- if (nextOverlap > 0) {
1806
- return true;
1807
- }
1808
- }
1809
- return false;
1810
- }
1811
- getNextLabelWithCancerGene(elemenets, lastCancerGeneLabelIndex) {
1812
- return elemenets.find((label, index) => label.isPrioritized && index > lastCancerGeneLabelIndex);
1813
- }
1814
- };
1815
-
1816
- // plots/disco/snv/NonExonicSnvArcsMapper.ts
1817
- var NonExonicSnvArcsMapper = class {
1818
- constructor(nonExonicInnerRadius, nonExonicWidht, sampleName, reference) {
1819
- this.nonExonicInnerRadius = nonExonicInnerRadius;
1820
- this.nonExonicWidht = nonExonicWidht;
1821
- this.sampleName = sampleName;
1822
- this.reference = reference;
1823
- this.onePxArcAngle = 1 / nonExonicInnerRadius;
1824
- }
1825
- map(arcData) {
1826
- const innerRadius = this.nonExonicInnerRadius;
1827
- const outerRadius = innerRadius + this.nonExonicWidht;
1828
- const arcs = [];
1829
- arcData.forEach((data) => {
1830
- const mLabel = MLabel.getInstance().mlabel ? MLabel.getInstance().mlabel[data.mClass] : void 0;
1831
- const startAngle = this.calculateStartAngle(data);
1832
- const endAngle = this.calculateEndAngle(data);
1833
- if (startAngle === null || endAngle === null) return;
1834
- const arc = {
1835
- startAngle,
1836
- endAngle,
1837
- innerRadius,
1838
- outerRadius,
1839
- color: mLabel.color,
1840
- text: data.gene,
1841
- dataClass: mLabel.label,
1842
- mname: data.mname,
1843
- chr: data.chr,
1844
- pos: data.position,
1845
- vafs: data.vafs,
1846
- sampleName: [data.sampleName]
1847
- };
1848
- arcs.push(arc);
1849
- });
1850
- return arcs;
1851
- }
1852
- calculateStartAngle(data) {
1853
- const index = this.reference.chromosomesOrder.indexOf(data.chr);
1854
- if (index === -1) return null;
1855
- const chromosome = this.reference.chromosomes[index];
1856
- return chromosome.startAngle + (chromosome.endAngle - chromosome.startAngle) * (Number(data.position) / chromosome.size) - this.onePxArcAngle;
1857
- }
1858
- calculateEndAngle(data) {
1859
- const index = this.reference.chromosomesOrder.indexOf(data.chr);
1860
- const chromosome = this.reference.chromosomes[index];
1861
- return this.onePxArcAngle + chromosome.startAngle + (chromosome.endAngle - chromosome.startAngle) * (Number(data.position) / chromosome.size);
1862
- }
1863
- };
1864
-
1865
- // plots/disco/loh/GradientColorProvider.ts
1866
- var GradientColorProvider = class {
1867
- static provide(value) {
1868
- const clampedValue = Math.min(Math.max(value, 0), 1);
1869
- const colorValue = Math.round(clampedValue * 255);
1870
- return `rgb(${colorValue}, ${colorValue}, ${colorValue})`;
1871
- }
1872
- };
1873
-
1874
- // plots/disco/loh/LohArcMapper.ts
1875
- var LohArcMapper = class {
1876
- constructor(lohInnerRadius, lohWidth, sampleName, reference) {
1877
- this.lohInnerRadius = lohInnerRadius;
1878
- this.lohWidth = lohWidth;
1879
- this.sampleName = sampleName;
1880
- this.reference = reference;
1881
- }
1882
- map(arcData) {
1883
- const arcs = [];
1884
- arcData.forEach((data) => {
1885
- const startAngle = this.calculateStartAngle(data);
1886
- const endAngle = this.calculateEndAngle(data);
1887
- if (startAngle === null || endAngle === null) return;
1888
- const innerRadius = this.lohInnerRadius;
1889
- const outerRadius = innerRadius + this.lohWidth;
1890
- const color = GradientColorProvider.provide(data.segmean);
1891
- const arc = {
1892
- startAngle,
1893
- endAngle,
1894
- innerRadius,
1895
- outerRadius,
1896
- color,
1897
- text: data.gene,
1898
- chr: data.chr,
1899
- start: data.start,
1900
- stop: data.stop,
1901
- value: data.segmean
1902
- };
1903
- arcs.push(arc);
1904
- });
1905
- return arcs;
1906
- }
1907
- calculateStartAngle(data) {
1908
- const index = this.reference.chromosomesOrder.indexOf(data.chr);
1909
- if (index === -1) return null;
1910
- const chromosome = this.reference.chromosomes[index];
1911
- return chromosome.startAngle + (chromosome.endAngle - chromosome.startAngle) * (Number(data.start) / chromosome.size);
1912
- }
1913
- calculateEndAngle(data) {
1914
- const index = this.reference.chromosomesOrder.indexOf(data.chr);
1915
- const chromosome = this.reference.chromosomes[index];
1916
- return chromosome.startAngle + (chromosome.endAngle - chromosome.startAngle) * (Number(data.stop) / chromosome.size);
1917
- }
1918
- };
1919
-
1920
- // plots/disco/ring/Rings.ts
1921
- var Rings = class {
1922
- constructor(labelsRing, chromosomesRing, nonExonicArcRing, snvArcRing, cnvArcRing, lohArcRing, mutationWaterfallRing) {
1923
- this.labelsRing = labelsRing;
1924
- this.chromosomesRing = chromosomesRing;
1925
- this.nonExonicArcRing = nonExonicArcRing;
1926
- this.snvArcRing = snvArcRing;
1927
- this.cnvArcRing = cnvArcRing;
1928
- this.lohArcRing = lohArcRing;
1929
- this.mutationWaterfallRing = mutationWaterfallRing;
1930
- }
1931
- };
1932
-
1933
- // plots/disco/waterfall/MutationWaterfallMapper.ts
1934
- var MutationWaterfallMapper = class {
1935
- constructor(innerRadius, ringWidth, reference, logRange, color = "#4d4d4d") {
1936
- this.innerRadius = innerRadius;
1937
- this.ringWidth = ringWidth;
1938
- this.reference = reference;
1939
- this.logRange = logRange;
1940
- this.color = color;
1941
- }
1942
- map(data = []) {
1943
- if (!data.length) return [];
1944
- const min = this.logRange?.min ?? 0;
1945
- const max = this.logRange?.max ?? min + 1;
1946
- const span = max - min || 1;
1947
- const points = [];
1948
- for (const datum of data) {
1949
- const chrIndex = this.reference.chromosomesOrder.indexOf(datum.chr);
1950
- if (chrIndex === -1) continue;
1951
- const chromosome = this.reference.chromosomes[chrIndex];
1952
- const chrAngleSpan = chromosome.endAngle - chromosome.startAngle;
1953
- const relPos = chromosome.size > 0 ? datum.position / chromosome.size : 0;
1954
- const angle = chromosome.startAngle + chrAngleSpan * relPos;
1955
- const normalized = Math.max(0, Math.min(1, (datum.logDistance - min) / span));
1956
- const radius = this.innerRadius + this.ringWidth * normalized;
1957
- points.push({
1958
- startAngle: angle,
1959
- endAngle: angle,
1960
- innerRadius: radius,
1961
- outerRadius: radius,
1962
- text: chromosome.text,
1963
- color: this.color,
1964
- chr: datum.chr,
1965
- position: datum.position,
1966
- logDistance: datum.logDistance,
1967
- ringInnerRadius: this.innerRadius,
1968
- ringWidth: this.ringWidth,
1969
- rangeMin: min,
1970
- rangeMax: max
1971
- });
1972
- }
1973
- return points;
1974
- }
1975
- };
1976
-
1977
- // plots/disco/viewmodel/ViewModelProvider.ts
1978
- var ViewModelProvider = class {
1979
- constructor(settings, dataMapper, reference, sampleName, genesetName, discoInteractions) {
1980
- this.nonExonicArcRing = void 0;
1981
- this.settings = settings;
1982
- this.dataMapper = dataMapper;
1983
- this.reference = reference;
1984
- this.sampleName = sampleName;
1985
- this.genesetName = genesetName;
1986
- this.discoInteractions = discoInteractions;
1987
- }
1988
- map(data) {
1989
- const dataHolder = this.dataMapper.map(data);
1990
- let labelsRing;
1991
- if (this.settings.Disco.showGeneNames) {
1992
- const labelsMapper = new LabelsMapper(
1993
- this.settings,
1994
- this.sampleName,
1995
- this.reference,
1996
- dataHolder.cnvMaxPercentileAbs
1997
- );
1998
- const labelsData = labelsMapper.map(dataHolder.labelData, dataHolder.cnvData);
1999
- labelsRing = new Labels(this.settings, labelsData, dataHolder.hasPrioritizedGenes);
2000
- } else {
2001
- labelsRing = new Labels(this.settings, [], false);
2002
- }
2003
- const chromosomesRing = new Ring(
2004
- this.settings.rings.chromosomeInnerRadius,
2005
- this.settings.rings.chromosomeWidth,
2006
- this.reference.chromosomes
2007
- );
2008
- const nonExonicSnvArcsMapper = new NonExonicSnvArcsMapper(
2009
- dataHolder.nonExonicInnerRadius,
2010
- this.settings.rings.nonExonicRingWidth,
2011
- this.sampleName,
2012
- this.reference
2013
- );
2014
- const nonExonicData = nonExonicSnvArcsMapper.map(dataHolder.nonExonicSnvData);
2015
- if (nonExonicData.length > 0) {
2016
- this.nonExonicArcRing = new Ring(
2017
- dataHolder.nonExonicInnerRadius,
2018
- this.settings.rings.nonExonicRingWidth,
2019
- nonExonicData
2020
- );
2021
- }
2022
- this.snvArcsMapper = new SnvArcsMapper(
2023
- dataHolder.snvInnerRadius,
2024
- this.settings.rings.snvRingWidth,
2025
- this.sampleName,
2026
- this.reference
2027
- );
2028
- const snvData = this.snvArcsMapper.map(dataHolder.snvRingDataMap);
2029
- if (snvData.length > 0) {
2030
- this.snvArcRing = new Ring(dataHolder.snvInnerRadius, this.settings.rings.snvRingWidth, snvData);
2031
- }
2032
- const lohMapper = new LohArcMapper(
2033
- dataHolder.lohInnerRadius,
2034
- this.settings.rings.lohRingWidth,
2035
- this.sampleName,
2036
- this.reference
2037
- );
2038
- const lohData = lohMapper.map(dataHolder.lohData);
2039
- if (lohData.length > 0) {
2040
- this.lohArcRing = new Ring(dataHolder.lohInnerRadius, this.settings.rings.lohRingWidth, lohData);
2041
- }
2042
- this.cnvArcsMapper = new CnvArcsMapper(
2043
- dataHolder.cnvInnerRadius,
2044
- this.settings.rings.cnvRingWidth,
2045
- this.settings,
2046
- this.sampleName,
2047
- this.reference,
2048
- dataHolder.percentilePositive,
2049
- dataHolder.percentileNegative,
2050
- dataHolder.cappedCnvMaxAbsValue,
2051
- dataHolder.cnvMaxPercentileAbs,
2052
- this.settings.cnv.unit,
2053
- this.settings.Disco.cnvRenderingType
2054
- );
2055
- const cnvData = this.cnvArcsMapper.map(dataHolder.cnvData);
2056
- if (cnvData.length > 0) {
2057
- this.cnvArcRing = new Ring(dataHolder.cnvInnerRadius, this.settings.rings.cnvRingWidth, cnvData);
2058
- }
2059
- if (this.settings.Disco.mutationWaterfallPlot && dataHolder.mutationWaterfallData?.length && dataHolder.mutationWaterfallInnerRadius !== void 0 && //Added this check to prevent TypeScript error "mutationWaterfallInnerRadius might be undefined"
2060
- (dataHolder.mutationWaterfallInnerRadius ?? 0) > 0 && dataHolder.mutationWaterfallLogRange) {
2061
- const mutationWaterfallMapper = new MutationWaterfallMapper(
2062
- dataHolder.mutationWaterfallInnerRadius,
2063
- this.settings.rings.mutationWaterfallRingWidth,
2064
- this.reference,
2065
- dataHolder.mutationWaterfallLogRange,
2066
- this.settings.Disco.mutationWaterfallColor || "#4d4d4d"
2067
- );
2068
- const waterfallData = mutationWaterfallMapper.map(dataHolder.mutationWaterfallData);
2069
- if (waterfallData.length > 0) {
2070
- this.mutationWaterfallRing = new Ring(
2071
- dataHolder.mutationWaterfallInnerRadius,
2072
- this.settings.rings.mutationWaterfallRingWidth,
2073
- waterfallData
2074
- );
2075
- }
2076
- }
2077
- const fusionMapper = new FusionMapper(dataHolder.fusionRadius, this.sampleName, this.reference);
2078
- const fusions = fusionMapper.map(dataHolder.fusionData);
2079
- let lohLegend;
2080
- if (this.settings.legend.lohLegendEnabled && dataHolder.lohData.length) {
2081
- lohLegend = new LohLegend(dataHolder.lohData.length);
2082
- }
2083
- const fusionLegendCounts = fusions.reduce(
2084
- (counts, fusion) => {
2085
- if (fusion.target && fusion.source.positionInChromosome.chromosome == fusion.target.positionInChromosome.chromosome)
2086
- counts.intrachromosomal++;
2087
- else counts.interchromosomal++;
2088
- return counts;
2089
- },
2090
- { interchromosomal: 0, intrachromosomal: 0 }
2091
- );
2092
- const legend = new Legend(
2093
- this.settings.legend.snvTitle,
2094
- this.settings.legend.cnvTitle,
2095
- this.settings.legend.lohTitle,
2096
- this.settings.legend.fusionTitle,
2097
- this.settings.Disco.cnvPercentile,
2098
- this.settings.Disco.cnvCutoffMode,
2099
- this.snvArcsMapper ? this.snvArcsMapper.snvClassMap : /* @__PURE__ */ new Map(),
2100
- this.cnvArcsMapper ? this.cnvArcsMapper.cnvClassMap : /* @__PURE__ */ new Map(),
2101
- this.settings.Disco.cnvRenderingType,
2102
- fusions.length > 0,
2103
- this.discoInteractions,
2104
- lohLegend,
2105
- this.settings.Disco.mutationWaterfallPlot && this.mutationWaterfallRing ? {
2106
- color: this.settings.Disco.mutationWaterfallColor || "#4d4d4d",
2107
- onColorChange: this.discoInteractions.onMutationWaterfallColorChange
2108
- } : void 0,
2109
- fusionLegendCounts,
2110
- dataHolder.cnvData.filter((event) => event.dt == dtcnv).length
2111
- );
2112
- const rings = new Rings(
2113
- labelsRing,
2114
- chromosomesRing,
2115
- this.nonExonicArcRing,
2116
- this.snvArcRing,
2117
- this.cnvArcRing,
2118
- this.lohArcRing,
2119
- this.mutationWaterfallRing
2120
- );
2121
- return new ViewModel(
2122
- this.settings,
2123
- rings,
2124
- legend,
2125
- fusions,
2126
- dataHolder,
2127
- this.genesetName,
2128
- data.filter((i) => i.dt == dtsnvindel).length
2129
- );
2130
- }
2131
- };
2132
-
2133
- // plots/disco/viewmodel/ViewModelMapper.ts
2134
- var ViewModelMapper = class _ViewModelMapper {
2135
- static {
2136
- this.snvClassLayer = {
2137
- M: "exonic",
2138
- E: "exonic",
2139
- F: "exonic",
2140
- N: "exonic",
2141
- S: "exonic",
2142
- D: "exonic",
2143
- I: "exonic",
2144
- P: "exonic",
2145
- L: "exonic",
2146
- Utr3: "exonic",
2147
- Utr5: "exonic",
2148
- ProteinAltering: "exonic",
2149
- mnv: "non-exonic",
2150
- ITD: "non-exonic",
2151
- insertion: "non-exonic",
2152
- deletion: "non-exonic",
2153
- Intron: "non-exonic",
2154
- X: "non-exonic",
2155
- noncoding: "non-exonic"
2156
- };
2157
- }
2158
- constructor(settings, discoInteractions) {
2159
- this.settings = JSON.parse(JSON.stringify(settings));
2160
- this.discoInteractions = discoInteractions;
2161
- }
2162
- applyRadius() {
2163
- const radius = this.settings.Disco.radius;
2164
- if (!radius) return;
2165
- const scale = radius / this.settings.rings.labelLinesInnerRadius;
2166
- this.settings.rings.labelLinesInnerRadius *= scale;
2167
- this.settings.rings.labelsToLinesDistance *= scale;
2168
- this.settings.rings.chromosomeInnerRadius *= scale;
2169
- }
2170
- static computeDynamicRadius(data) {
2171
- let ringCount = 0;
2172
- if (data.some((d) => d.dt == dtsnvindel)) ringCount++;
2173
- if (data.some((d) => d.dt == dtcnv || d.dt == dtitd)) ringCount++;
2174
- if (data.some((d) => d.dt == dtloh)) ringCount++;
2175
- if (ringCount <= 1) return 200;
2176
- if (ringCount == 2) return 250;
2177
- return 300;
2178
- }
2179
- map(opts) {
2180
- const chrSizes = opts.args.genome.majorchr;
2181
- const chromosomesOverride = {};
2182
- for (const chr of Object.keys(chrSizes)) {
2183
- if (!this.settings.Disco.hiddenChromosomes.includes(chr)) {
2184
- chromosomesOverride[chr] = chrSizes[chr];
2185
- }
2186
- }
2187
- const sampleName = opts.args.sampleName;
2188
- const genome = opts.args.genome;
2189
- const prioritizedGenes = genome?.geneset?.[0] ? genome.geneset[0].lst : [];
2190
- const genesetName = genome?.geneset?.[0] ? genome.geneset[0].name : "";
2191
- const data = opts.args.data;
2192
- if (this.settings.Disco.autoRadius) {
2193
- this.settings.Disco.radius = _ViewModelMapper.computeDynamicRadius(data);
2194
- }
2195
- this.applyRadius();
2196
- const reference = new Reference(this.settings, chrSizes, chromosomesOverride);
2197
- const dataMapper = new DataMapper(this.settings, reference, sampleName, prioritizedGenes);
2198
- return new ViewModelProvider(
2199
- this.settings,
2200
- dataMapper,
2201
- reference,
2202
- sampleName,
2203
- genesetName,
2204
- this.discoInteractions
2205
- ).map(data);
2206
- }
2207
- };
2208
-
2209
- // plots/disco/legend/LegendJSONMapper.ts
2210
- var LegendJSONMapper = class {
2211
- constructor(cappedCnvMaxAbsValue) {
2212
- this.cappedCnvMaxAbsValue = cappedCnvMaxAbsValue;
2213
- }
2214
- map(legend) {
2215
- const legendJSON = [];
2216
- let order = 0;
2217
- if (legend.snvClassMap) {
2218
- this.mapSnv(legend, legendJSON, order++);
2219
- }
2220
- if (legend.cnvCount > 0 && legend.cnvRenderingType == "heatmap" /* heatmap */) {
2221
- this.mapCnvHeatmap(legend, legendJSON, order++);
2222
- } else if (legend.cnvCount > 0 && legend.cnvRenderingType == "bar" /* bar */) {
2223
- if (legend.cnvClassMap) {
2224
- this.mapCnvBar(legend, legendJSON, order++);
2225
- }
2226
- }
2227
- if (legend.cnvClassMap.has(4 /* ITD */)) {
2228
- this.mapItd(legend, legendJSON, order++);
2229
- }
2230
- if (legend.lohLegend) {
2231
- this.mapLoh(legend, legendJSON, order++);
2232
- }
2233
- if (legend.fusionLegend) {
2234
- this.mapFusion(legend, legendJSON, order++);
2235
- }
2236
- if (legend.mutationWaterfallLegend) {
2237
- this.mapMutationWaterfall(legend, legendJSON, order++);
2238
- }
2239
- return legendJSON;
2240
- }
2241
- mapSnv(legend, legendJSON, order) {
2242
- const snvItems = [];
2243
- let snvOrder = 0;
2244
- for (const [snvKey, snvLegendElement] of legend.snvClassMap) {
2245
- snvItems.push({
2246
- termid: legend.snvTitle,
2247
- key: snvKey,
2248
- text: `${snvLegendElement.snvType} (${snvLegendElement.count})`,
2249
- color: snvLegendElement.color,
2250
- order: snvOrder++
2251
- });
2252
- }
2253
- legendJSON.push({
2254
- name: legend.snvTitle,
2255
- order,
2256
- items: snvItems
2257
- });
2258
- }
2259
- mapCnvBar(legend, legendJSON, order) {
2260
- if (!legend.cnvClassMap) return;
2261
- const gain = legend.cnvClassMap.get(1 /* Gain */);
2262
- const loss = legend.cnvClassMap.get(0 /* Loss */);
2263
- const cap = legend.cnvClassMap.get(2 /* Cap */);
2264
- if (gain && loss && cap) {
2265
- let cnvOrder = 0;
2266
- const cnvItems = [];
2267
- if (gain.value > 0) {
2268
- cnvItems.push({
2269
- termid: legend.cnvTitle,
2270
- key: 1 /* Gain */,
2271
- text: `Max: ${gain.value}`,
2272
- color: gain.color,
2273
- order: cnvOrder++
2274
- });
2275
- }
2276
- if (loss.value < 0) {
2277
- cnvItems.push({
2278
- termid: legend.cnvTitle,
2279
- key: 0 /* Loss */,
2280
- text: `Min: ${loss.value}`,
2281
- color: loss.color,
2282
- order: cnvOrder++
2283
- });
2284
- }
2285
- cnvItems.push({
2286
- termid: legend.cnvTitle,
2287
- key: 2 /* Cap */,
2288
- text: `Capping: ${cap.value}`,
2289
- color: cap.color,
2290
- order: cnvOrder++
2291
- // ,
2292
- // onClickCallback: this.onClickCallback
2293
- });
2294
- legendJSON.push({
2295
- name: legend.cnvTitle,
2296
- id: "sjpp-disco-cnv-legend",
2297
- order,
2298
- items: cnvItems
2299
- });
2300
- }
2301
- }
2302
- mapCnvHeatmap(legend, legendJSON, order) {
2303
- if (!legend.cnvClassMap) return;
2304
- const gain = legend.cnvClassMap.get(1 /* Gain */);
2305
- const loss = legend.cnvClassMap.get(0 /* Loss */);
2306
- const cap = legend.cnvClassMap.get(2 /* Cap */);
2307
- if (gain && loss && cap) {
2308
- let cnvOrder = 0;
2309
- const cnvItems = [];
2310
- const base = {
2311
- termid: legend.cnvTitle,
2312
- width: 100,
2313
- order: cnvOrder++,
2314
- isLegendItem: true,
2315
- dt: 4
2316
- };
2317
- if (gain.value > 0 && loss.value < 0) {
2318
- const maxValue = Math.max(Math.abs(loss.value), gain.value);
2319
- const domain = [-maxValue, 0, maxValue];
2320
- cnvItems.push(
2321
- Object.assign(
2322
- {
2323
- key: 3 /* LossGain */,
2324
- domain,
2325
- scale: linear([-1, 0, 1], [loss.color, "white", gain.color]),
2326
- labels: { left: "Loss", right: "Gain" },
2327
- numericInputs: {
2328
- cutoffMode: legend.cnvCutoffMode,
2329
- defaultPercentile: legend.cnvPercentile,
2330
- callback: (obj) => legend.discoInteractions.colorScaleNumericInputsCallback(obj)
2331
- }
2332
- },
2333
- base
2334
- )
2335
- );
2336
- } else {
2337
- if (gain.value > 0) {
2338
- cnvItems.push(
2339
- Object.assign(
2340
- {
2341
- key: 1 /* Gain */,
2342
- text: "Copy number gain",
2343
- domain: [0, gain.value],
2344
- scale: linear([0, 1], ["white", gain.color])
2345
- },
2346
- base
2347
- )
2348
- );
2349
- }
2350
- if (loss.value < 0) {
2351
- cnvItems.push(
2352
- Object.assign(
2353
- {
2354
- key: 0 /* Loss */,
2355
- text: "Copy number loss",
2356
- domain: [loss.value, 0],
2357
- scale: linear([0, 1], [loss.color, "white"])
2358
- },
2359
- base
2360
- )
2361
- );
2362
- }
2363
- }
2364
- legendJSON.push({
2365
- name: legend.cnvTitle,
2366
- order,
2367
- id: "sjpp-disco-cnv-legend",
2368
- items: cnvItems
2369
- });
2370
- }
2371
- }
2372
- mapItd(legend, legendJSON, order) {
2373
- const itd = legend.cnvClassMap.get(4 /* ITD */);
2374
- if (!itd) return;
2375
- legendJSON.push({
2376
- name: "ITD",
2377
- order,
2378
- items: [
2379
- {
2380
- termid: "ITD",
2381
- key: 4 /* ITD */,
2382
- text: `ITD (${itd.value})`,
2383
- color: itd.color,
2384
- order: 0
2385
- }
2386
- ]
2387
- });
2388
- }
2389
- mapLoh(legend, legendJSON, order) {
2390
- if (!legend.lohLegend) return;
2391
- legendJSON.push({
2392
- name: legend.lohTitle,
2393
- order,
2394
- items: [
2395
- {
2396
- termid: legend.lohTitle,
2397
- key: "count",
2398
- text: `LOH (${legend.lohLegend.count})`,
2399
- skipIcon: true,
2400
- order: 0
2401
- }
2402
- ]
2403
- });
2404
- }
2405
- mapFusion(legend, legendJSON, order) {
2406
- const fusionItems = [];
2407
- fusionItems.push({
2408
- termid: legend.fusionTitle,
2409
- key: "#6A3D9A" /* Interchromosomal */,
2410
- text: `Interchromosomal (${legend.fusionLegendCounts.interchromosomal})`,
2411
- color: "#6A3D9A" /* Interchromosomal */.valueOf(),
2412
- order: 0
2413
- });
2414
- fusionItems.push({
2415
- termid: legend.fusionTitle,
2416
- key: "#1B9E77" /* Intrachromosomal */,
2417
- text: `Intrachromosomal (${legend.fusionLegendCounts.intrachromosomal})`,
2418
- color: "#1B9E77" /* Intrachromosomal */.valueOf(),
2419
- order: 1
2420
- });
2421
- legendJSON.push({
2422
- name: legend.fusionTitle,
2423
- order,
2424
- items: fusionItems
2425
- });
2426
- }
2427
- mapMutationWaterfall(legend, legendJSON, order) {
2428
- if (!legend.mutationWaterfallLegend) return;
2429
- const waterfallItems = [];
2430
- waterfallItems.push({
2431
- termid: "Mutation Waterfall Plot",
2432
- key: "mutation-waterfall-color",
2433
- text: "Dot color",
2434
- color: legend.mutationWaterfallLegend.color,
2435
- order: 0,
2436
- colorPicker: true,
2437
- inputWidth: 28,
2438
- width: 0,
2439
- onColorChange: legend.mutationWaterfallLegend.onColorChange
2440
- });
2441
- waterfallItems.push({
2442
- termid: "Mutation Waterfall Plot",
2443
- key: "mutation-waterfall-axis",
2444
- text: "Axis: log10 intermutation distance",
2445
- order: 1,
2446
- skipIcon: true,
2447
- width: 0
2448
- });
2449
- legendJSON.push({
2450
- name: "Mutation Waterfall Plot",
2451
- order,
2452
- items: waterfallItems
2453
- });
2454
- }
2455
- };
2456
-
2457
- // plots/disco/cnv/renderCnvSourceLegend.ts
2458
- function parseSetLabel(set, index) {
2459
- let text = set.name || `Set ${index + 1}`;
2460
- let href;
2461
- let target = "_blank";
2462
- if (set.nameHtml) {
2463
- const parser = new DOMParser();
2464
- const doc = parser.parseFromString(set.nameHtml, "text/html");
2465
- const anchor = doc.querySelector("a");
2466
- if (anchor) {
2467
- href = anchor.getAttribute("href") || void 0;
2468
- target = anchor.getAttribute("target") || "_blank";
2469
- text = anchor.textContent?.trim() || text;
2470
- } else {
2471
- text = doc.body.textContent?.trim() || text;
2472
- }
2473
- }
2474
- return { text, href, target };
2475
- }
2476
- function renderCnvSourceLegend(legendG, datasets, fontSize, onChange) {
2477
- if (!legendG || legendG.empty()) throw new Error("legendG is required");
2478
- if (!datasets || datasets.length === 0) throw new Error("at least one dataset is required");
2479
- legendG.select("g.sjpp-cnv-source").remove();
2480
- const gBBox = legendG.node().getBBox();
2481
- const cnvSrcWrapper = legendG.append("g").attr("class", "sjpp-cnv-source").attr("transform", `translate(${gBBox.width},${gBBox.y + fontSize})`);
2482
- const btnPaddingX = Math.round(fontSize * 0.8);
2483
- const btnHgt = Math.round(fontSize * 1.8);
2484
- const btnWrapper = cnvSrcWrapper.append("g").attr("transform", `translate(${fontSize},${-btnHgt / 2})`).style("cursor", "pointer").on("click", function(event) {
2485
- event.stopPropagation();
2486
- showCnvMenu(this);
2487
- });
2488
- 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());
2489
- const textW = btnText.node() ? Math.ceil(btnText.node().getBBox().width) : 0;
2490
- const btnWdt = textW + btnPaddingX * 2;
2491
- btnWrapper.insert("rect", ":first-child").attr("width", btnWdt).attr("height", btnHgt).attr("rx", 10).attr("ry", 10).style("fill", "#f2f2f2");
2492
- btnText.attr("x", btnWdt / 2).attr("text-anchor", "middle");
2493
- const cnvMenu = new Menu({
2494
- onHide: () => {
2495
- btnText.text("Select source \u25B2".toUpperCase());
2496
- }
2497
- });
2498
- function showCnvMenu(dom) {
2499
- btnText.text("Select source \u25BC".toUpperCase());
2500
- cnvMenu.clear().showunder(dom);
2501
- cnvMenu.d.append("div").text("Choose data source for CNV:").style("margin", "5px 5px 0 5px");
2502
- const tableHolder = cnvMenu.d.append("div").style("padding", "5px");
2503
- const { columns, rows } = buildTableData(datasets);
2504
- const [, activeIndex] = getActiveDataset(datasets);
2505
- renderTable({
2506
- columns,
2507
- rows,
2508
- div: tableHolder,
2509
- singleMode: true,
2510
- maxWidth: "70vw",
2511
- maxHeight: "60vh",
2512
- selectedRows: [activeIndex],
2513
- header: { allowSort: false },
2514
- noButtonCallback: (rowIndex, node) => {
2515
- const inputIndex = Number(node?.value);
2516
- const selectedIndex = Number.isNaN(inputIndex) ? rowIndex : inputIndex;
2517
- if (!Number.isNaN(selectedIndex)) onChange(selectedIndex);
2518
- cnvMenu.hide();
2519
- }
2520
- });
2521
- }
2522
- }
2523
- function getActiveDataset(datasets) {
2524
- let currentIndex = datasets.findIndex((d) => d.inuse);
2525
- if (currentIndex == -1) currentIndex = 0;
2526
- return [datasets[currentIndex], currentIndex];
2527
- }
2528
- function buildTableData(datasets) {
2529
- const attrKeys = [];
2530
- for (const set of datasets) {
2531
- if (!set.attrs) continue;
2532
- for (const key of Object.keys(set.attrs)) {
2533
- if (!attrKeys.includes(key)) attrKeys.push(key);
2534
- }
2535
- }
2536
- const columns = [{ label: "Source" }];
2537
- for (const key of attrKeys) columns.push({ label: key });
2538
- const rows = datasets.map((set, index) => {
2539
- const sourceInfo = parseSetLabel(set, index);
2540
- const cells = [];
2541
- if (set.nameHtml) cells.push({ html: set.nameHtml });
2542
- else if (sourceInfo.href) cells.push({ value: sourceInfo.text, url: sourceInfo.href });
2543
- else cells.push({ value: sourceInfo.text });
2544
- for (const key of attrKeys) {
2545
- const value = set.attrs?.[key];
2546
- cells.push({ value: value ?? "" });
2547
- }
2548
- return cells;
2549
- });
2550
- return { columns, rows };
2551
- }
2552
-
2553
- // plots/disco/legend/LegendRenderer.ts
2554
- var LegendRenderer = class {
2555
- constructor(cappedCnvMaxAbsValue = 0, fontSize) {
2556
- this.fontSize = fontSize;
2557
- this.legendJSONMapper = new LegendJSONMapper(cappedCnvMaxAbsValue);
2558
- }
2559
- render(holder, legend, xOffset, svgw, svgh, viewModel, onCnvSourceSelect) {
2560
- const svgLegendRenderer = svgLegend({
2561
- holder: holder.append("g").attr("data-testid", "sjpp_disco_plot_legend"),
2562
- rectFillFxn: (d2) => d2.color,
2563
- iconStroke: "#aaa"
2564
- });
2565
- const data = this.legendJSONMapper.map(legend);
2566
- const legendTitles = data.map((d2) => d2.name.trim());
2567
- const maxLabelWidth = getMaxLabelWidth(holder, legendTitles);
2568
- const d = {
2569
- xOffset: maxLabelWidth + xOffset
2570
- };
2571
- svgLegendRenderer(data, {
2572
- settings: Object.assign(
2573
- {},
2574
- {
2575
- svgw,
2576
- svgh,
2577
- dimensions: d,
2578
- fontsize: this.fontSize
2579
- }
2580
- )
2581
- });
2582
- const altCnv = viewModel.appState.args.alternativeDataByDt?.[dtcnv];
2583
- if (altCnv && altCnv.length > 0) {
2584
- const legendG = holder.select('g[data-testid="sjpp_disco_plot_legend"]');
2585
- const cnvLegendG = legendG.select("#sjpp-disco-cnv-legend");
2586
- if (!legendG.empty()) {
2587
- const add2G = cnvLegendG.empty() ? legendG : cnvLegendG;
2588
- renderCnvSourceLegend(add2G, altCnv, this.fontSize, onCnvSourceSelect);
2589
- }
2590
- }
2591
- }
2592
- };
2593
-
2594
- // plots/disco/chromosome/ChromosomesRenderer.ts
2595
- var ChromosomesRenderer = class {
2596
- constructor(padAngle, innerRadius, outerRadius, fontSize) {
2597
- this.padAngle = padAngle;
2598
- this.innerRadius = innerRadius;
2599
- this.outerRadius = outerRadius;
2600
- this.fontSize = fontSize;
2601
- }
2602
- render(holder, elements) {
2603
- const pie = pie_default().padAngle(this.padAngle).value((d) => d.size).sort(null);
2604
- const arcData = pie(elements);
2605
- const arc = arc_default().innerRadius(this.innerRadius).outerRadius(this.outerRadius);
2606
- const arcs = holder.append("g").attr("data-testid", "sjpp_chromosomes_arc_group");
2607
- const menu = MenuProvider.create();
2608
- arcs.selectAll("path").data(arcData).enter().append("path").attr("d", arc).attr("fill", "black").on("mousemove", (event, d) => {
2609
- const [x, y] = pointer_default(event, arcs.node());
2610
- let angle = Math.atan2(y, x) + Math.PI / 2;
2611
- if (angle < 0) angle += 2 * Math.PI;
2612
- const frac = Math.max(0, Math.min(1, (angle - d.data.startAngle) / (d.data.endAngle - d.data.startAngle)));
2613
- const pos = Math.round(frac * d.data.size);
2614
- menu.d.html(`<span style="font-size:.8em">chr${d.data.text}</span> ${bplen(pos)}`).style("padding", "5px");
2615
- menu.show(event.x, event.y);
2616
- }).on("mouseenter", (event) => {
2617
- select_default(event.currentTarget).attr("stroke", "orange").attr("stroke-width", 1);
2618
- }).on("mouseleave", (event) => {
2619
- select_default(event.currentTarget).attr("stroke", null).attr("stroke-width", null);
2620
- menu.hide();
2621
- });
2622
- arcs.selectAll("text").data(arcData).enter().append("text").attr("transform", (d) => {
2623
- return `translate(${arc.centroid(d)}) rotate(${d.data.angle * 180 / Math.PI - 90})${d.data.angle > Math.PI ? "rotate(180)" : ""}`;
2624
- }).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");
2625
- }
2626
- };
2627
-
2628
- // plots/disco/label/LabelsRenderer.ts
2629
- var LabelsRenderer = class {
2630
- constructor(animationDuration, fontSize, geneClickListener, genomeName, intervalEvents = [], geneLookup = async (gene, genome) => await dofetch3("genelookup", { body: { deep: 1, input: gene, genome } })) {
2631
- this.geneCoordinatesCache = /* @__PURE__ */ new Map();
2632
- this.hoverRequestId = 0;
2633
- this.animationDuration = animationDuration;
2634
- this.fontSize = fontSize;
2635
- this.geneClickListener = geneClickListener;
2636
- this.genomeName = genomeName;
2637
- this.intervalEvents = intervalEvents;
2638
- this.geneLookup = geneLookup;
2639
- }
2640
- render(holder, elements, collisions) {
2641
- const labelsG = holder.append("g");
2642
- const lineFunction = line_default().x((point) => point.x).y((point) => point.y);
2643
- const menu = MenuProvider.create();
2644
- labelsG.selectAll(".group").data(elements).enter().append("g").attr("class", "group").each((label, i, nodes) => {
2645
- const g = select_default(nodes[i]);
2646
- g.append("text").attr("class", "chord-text").attr("data-testid", "sjpp-disco-genelabel").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", () => {
2647
- if (label.mutationsTooltip) {
2648
- this.geneClickListener(
2649
- label.text,
2650
- label.mutationsTooltip.map((value) => value.mname)
2651
- );
2652
- }
2653
- }).on("mouseover", async (mouseEvent) => {
2654
- const requestId = ++this.hoverRequestId;
2655
- this.renderTooltip(menu, label);
2656
- menu.show(mouseEvent.x, mouseEvent.y);
2657
- const coordinates = await this.getGeneCoordinates(label);
2658
- if (requestId != this.hoverRequestId || !coordinates) return;
2659
- const overlappingEvents = this.intervalEvents.filter(
2660
- (event) => this.sameChromosome(event.chr, coordinates.chr) && coordinates.stop >= event.start && event.stop >= coordinates.start
2661
- );
2662
- this.renderTooltip(menu, label, overlappingEvents);
2663
- }).on("mouseout", () => {
2664
- this.hoverRequestId++;
2665
- menu.clear();
2666
- menu.hide();
2667
- });
2668
- g.append("path").attr("class", "chord-tick").datum(label.line.points).style("stroke", label.color).style("fill", "none").attr("d", lineFunction);
2669
- });
2670
- labelsG.selectAll(".group").each((label, i, nodes) => {
2671
- const collision = collisions ? collisions.find((l) => l.text === label.text) : void 0;
2672
- if (collision) {
2673
- const g = select_default(nodes[i]);
2674
- g.selectAll(".chord-text").datum(collision).transition().duration(this.animationDuration).attr("transform", collision.transform).style("text-anchor", collision.textAnchor);
2675
- g.selectAll(".chord-tick").datum(collision.line.points).transition().duration(this.animationDuration).style("fill", "none").attr("d", lineFunction);
2676
- }
2677
- });
2678
- }
2679
- renderTooltip(menu, label, intervalEvents = label.cnvTooltip) {
2680
- menu.clear();
2681
- const table = table2col({ holder: menu.d });
2682
- this.createTooltip(table, label, intervalEvents);
2683
- }
2684
- async getGeneCoordinates(label) {
2685
- if (!this.genomeName || !this.intervalEvents.length) return;
2686
- const cacheKey = `${this.genomeName}:${label.text}:${label.chr}`;
2687
- let lookup = this.geneCoordinatesCache.get(cacheKey);
2688
- if (!lookup) {
2689
- lookup = this.lookupGeneCoordinates(label);
2690
- this.geneCoordinatesCache.set(cacheKey, lookup);
2691
- }
2692
- return await lookup;
2693
- }
2694
- async lookupGeneCoordinates(label) {
2695
- try {
2696
- const response = await this.geneLookup(label.text, this.genomeName);
2697
- if (response?.error || !Array.isArray(response?.gmlst)) return;
2698
- const models = response.gmlst.filter(
2699
- (model) => this.sameChromosome(model.chr, label.chr) && Number.isFinite(model.start) && Number.isFinite(model.stop)
2700
- );
2701
- if (!models.length) return;
2702
- return {
2703
- chr: models[0].chr,
2704
- start: Math.min(...models.map((model) => model.start)),
2705
- stop: Math.max(...models.map((model) => model.stop))
2706
- };
2707
- } catch {
2708
- return;
2709
- }
2710
- }
2711
- sameChromosome(a, b) {
2712
- return a?.replace(/^chr/i, "").toLowerCase() == b?.replace(/^chr/i, "").toLowerCase();
2713
- }
2714
- createTooltip(table, label, intervalEvents = label.cnvTooltip) {
2715
- if (label.mutationsTooltip) {
2716
- const [td1, td2] = table.addRow();
2717
- td1.text("Gene");
2718
- td2.append("span").style("margin-left", "5px").text(label.text);
2719
- label.mutationsTooltip.forEach((mutation) => {
2720
- {
2721
- const [td12, td22] = table.addRow();
2722
- td12.text("Mutation");
2723
- 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}`);
2724
- if (hasAnyValidVafEntry(mutation.vafs)) {
2725
- appendVafBars(td22, mutation.vafs);
2726
- }
2727
- }
2728
- });
2729
- }
2730
- if (label.fusionTooltip) {
2731
- const [td1, td2] = table.addRow();
2732
- td1.text("Data type");
2733
- td2.append("span").text("Fusion transcript");
2734
- label.fusionTooltip.forEach((fusionTooltip) => {
2735
- const [td12, td22] = table.addRow();
2736
- td12.text("Position");
2737
- td22.append("span").text(
2738
- ` ${fusionTooltip.geneA ? fusionTooltip.geneA : "?"} ${fusionTooltip.chrA}:${fusionTooltip.posA}
2739
- ${fusionTooltip.strandA == "+" ? "forward" : "reverse"} > ${fusionTooltip.geneB ? fusionTooltip.geneB : "?"} ${fusionTooltip.chrB}:${fusionTooltip.posB} ${fusionTooltip.strandB == "+" ? "forward" : "reverse"} `
2740
- );
2741
- });
2742
- }
2743
- if (intervalEvents) {
2744
- intervalEvents.forEach((cnv) => {
2745
- const [td1, td2] = table.addRow();
2746
- td1.text(cnv.dt == dtitd ? "ITD" : cnv.dt == dtloh ? "LOH" : "CNV");
2747
- td2.append("span").style("margin-left", "5px").style("background-color", cnv.color).html("&nbsp;&nbsp;");
2748
- if (cnv.dt != dtitd && cnv.dt != dtloh) td2.append("span").style("margin-left", "7.5px").text(cnv.value);
2749
- td2.append("span").style("margin-left", "7.5px").style("font-size", "0.8em").text(`${cnv.chr}:${cnv.start}-${cnv.stop}`);
2750
- });
2751
- }
2752
- }
2753
- };
2754
-
2755
- // plots/disco/defaults.ts
2756
- function discoDefaults(overrides = {}, app) {
2757
- const hiddenChromosomes = [];
2758
- if (app?.vocabApi?.termdbConfig?.queries?.singleSampleMutation?.discoPlot?.skipChrM) {
2759
- hiddenChromosomes.push("chrM");
2760
- }
2761
- const defaults = {
2762
- downloadImgName: "disco.plot",
2763
- Disco: {
2764
- centerText: null,
2765
- cnvCapping: 5,
2766
- isOpen: false,
2767
- prioritizeGeneLabelsByGeneSets: false,
2768
- showPrioritizeGeneLabelsByGeneSets: false,
2769
- showGeneNames: true,
2770
- mutationWaterfallPlot: false,
2771
- mutationWaterfallColor: "#4d4d4d",
2772
- minMutationFraction: 0,
2773
- cnvRenderingType: "heatmap" /* heatmap */,
2774
- cnvPercentile: 90,
2775
- // 90th percentile for removing outliers
2776
- cnvCutoffMode: "percentile",
2777
- autoRadius: true,
2778
- radius: 300,
2779
- fusionOpacity: 1,
2780
- hiddenChromosomes
2781
- },
2782
- rings: {
2783
- nonExonicRingWidth: 20,
2784
- snvRingWidth: 20,
2785
- lohRingWidth: 20,
2786
- cnvRingWidth: 30,
2787
- mutationWaterfallRingWidth: 35,
2788
- snvRingFilters: ["exonic"],
2789
- chromosomeInnerRadius: 190,
2790
- chromosomeWidth: 20,
2791
- labelLinesInnerRadius: 210,
2792
- labelsToLinesDistance: 30,
2793
- labelsToLinesGap: 2,
2794
- nonExonicRingEnabled: true,
2795
- nonExonicFilterValues: ["non-exonic"]
2796
- },
2797
- verticalPadding: 0,
2798
- horizontalPadding: 50,
2799
- layerScaler: 1,
2800
- padAngle: 2e-3,
2801
- //0.01, //0.04,
2802
- label: {
2803
- fontSize: 12,
2804
- maxDeltaAngle: 0.05,
2805
- animationDuration: 1e3,
2806
- overlapAngleFactor: 5
2807
- // 5 is set by testing, because label height is not known before rendering
2808
- },
2809
- cnv: {
2810
- capping: 5,
2811
- percentile: 80,
2812
- ampColor: "#D6683C",
2813
- lossColor: "#67a9cf",
2814
- cappedAmpColor: "#8B0000",
2815
- cappedLossColor: "#00008B",
2816
- unit: "Unit"
2817
- },
2818
- snv: {
2819
- maxMutationCount: 1e4
2820
- },
2821
- legend: {
2822
- snvTitle: "Mutations",
2823
- cnvTitle: "CNV",
2824
- lohTitle: "LOH",
2825
- fusionTitle: "SV",
2826
- // Structural Variants (color by co-location)
2827
- lohLegendEnabled: true,
2828
- fontSize: 12,
2829
- rowHeight: 48
2830
- },
2831
- menu: {
2832
- padding: 5
2833
- }
2834
- };
2835
- if (overrides?.Disco?.radius != null && (overrides.Disco.radius > 1e3 || overrides.Disco.radius < 200)) {
2836
- console.log(`${overrides?.Disco?.radius} is greater or lower than the min and max for the radius`);
2837
- }
2838
- return copyMerge(defaults, overrides);
2839
- }
2840
-
2841
- // plots/disco/snv/NonExonicSnvRenderer.ts
2842
- var NonExonicSnvRenderer = class {
2843
- constructor(geneClickListener) {
2844
- this.geneClickListener = geneClickListener;
2845
- }
2846
- render(holder, elements) {
2847
- const arcGenerator = arc_default();
2848
- const arcs = holder.append("g");
2849
- const menu = MenuProvider.create();
2850
- arcs.selectAll("path").data(elements).enter().append("path").attr("d", (d) => arcGenerator(d)).attr("fill", (d) => d.color).on("mouseover", (mouseEvent, arc) => {
2851
- const table = table2col({ holder: menu.d });
2852
- const snv = structuredClone(arc);
2853
- snv.dt = dtsnvindel;
2854
- snv.class = arc.dataClass;
2855
- snv.gene = snv.text;
2856
- {
2857
- const [td1, td2] = table.addRow();
2858
- td1.text("Consequence");
2859
- td2.append("span").text(snv.mname);
2860
- td2.append("span").style("margin-left", "5px").style("color", snv.color).style("font-size", ".8em").text(snv.dataClass);
2861
- }
2862
- {
2863
- const [td1, td2] = table.addRow();
2864
- td1.text(snv.ref && snv.alt ? "Mutation" : "Position");
2865
- td2.append("span").text(`${snv.chr}:${snv.pos + 1} ${snv.ref && snv.alt ? snv.ref + ">" + snv.alt : ""}`);
2866
- }
2867
- if (snv.gene) {
2868
- const [td1, td2] = table.addRow();
2869
- td1.text("Gene");
2870
- td2.text(snv.gene);
2871
- }
2872
- if (snv.occurrence > 1) {
2873
- const [td1, td2] = table.addRow();
2874
- td1.text("Occurrence");
2875
- td2.text(snv.occurrence);
2876
- }
2877
- if (hasAnyValidVafEntry(arc.vafs)) {
2878
- const [td1, td2] = table.addRow();
2879
- td1.text("Read count");
2880
- appendVafBars(td2, arc.vafs);
2881
- }
2882
- menu.show(mouseEvent.x, mouseEvent.y);
2883
- }).on("mouseout", () => {
2884
- menu.clear();
2885
- menu.hide();
2886
- }).on("click", (mouseEvent, arc) => {
2887
- this.geneClickListener(arc.text, [arc.mname]);
2888
- });
2889
- }
2890
- };
2891
-
2892
- // plots/disco/snv/SnvRenderer.ts
2893
- var SnvRenderer = class {
2894
- constructor(svnWidth, geneClickListener) {
2895
- this.svnWidth = svnWidth;
2896
- this.geneClickListener = geneClickListener;
2897
- }
2898
- render(holder, elements) {
2899
- if (elements.length > 0) {
2900
- const svnInnerRadius = elements[0].innerRadius;
2901
- const fullArcRenderer = new FullArcRenderer(svnInnerRadius, this.svnWidth, "#6464641A");
2902
- fullArcRenderer.render(holder);
2903
- }
2904
- const arcGenerator = arc_default();
2905
- const arcs = holder.append("g");
2906
- const menu = MenuProvider.create();
2907
- arcs.selectAll("path").data(elements).enter().append("path").attr("d", (d) => arcGenerator(d)).attr("fill", (d) => d.color).on("mouseover", (mouseEvent, arc) => {
2908
- const table = table2col({ holder: menu.d });
2909
- const snv = structuredClone(arc);
2910
- snv.dt = dtsnvindel;
2911
- snv.class = arc.dataClass;
2912
- snv.gene = snv.text;
2913
- {
2914
- const [td1, td2] = table.addRow();
2915
- td1.text("Consequence");
2916
- td2.append("span").text(snv.mname);
2917
- td2.append("span").style("margin-left", "5px").style("color", snv.color).style("font-size", ".8em").text(snv.dataClass);
2918
- }
2919
- {
2920
- const [td1, td2] = table.addRow();
2921
- td1.text(snv.ref && snv.alt ? "Mutation" : "Position");
2922
- td2.append("span").text(`${snv.chr}:${snv.pos + 1} ${snv.ref && snv.alt ? snv.ref + ">" + snv.alt : ""}`);
2923
- }
2924
- if (snv.gene) {
2925
- const [td1, td2] = table.addRow();
2926
- td1.text("Gene");
2927
- td2.text(snv.gene);
2928
- }
2929
- if (snv.occurrence > 1) {
2930
- const [td1, td2] = table.addRow();
2931
- td1.text("Occurrence");
2932
- td2.text(snv.occurrence);
2933
- }
2934
- if (hasAnyValidVafEntry(arc.vafs)) {
2935
- const [td1, td2] = table.addRow();
2936
- td1.text("Read count");
2937
- appendVafBars(td2, arc.vafs);
2938
- }
2939
- menu.show(mouseEvent.x, mouseEvent.y);
2940
- }).on("mouseout", () => {
2941
- menu.clear();
2942
- menu.hide();
2943
- }).on("click", (mouseEvent, arc) => {
2944
- this.geneClickListener(arc.text, [arc.mname]);
2945
- });
2946
- }
2947
- };
2948
-
2949
- // plots/disco/loh/LohRenderer.ts
2950
- var LohRenderer = class {
2951
- render(holder, elements) {
2952
- const arcGenerator = arc_default();
2953
- const arcs = holder.append("g");
2954
- const menu = MenuProvider.create();
2955
- arcs.selectAll("path").data(elements).enter().append("path").attr("d", (d) => arcGenerator(d)).attr("fill", (d) => d.color).on("mouseover", (mouseEvent, arc) => {
2956
- const table = table2col({ holder: menu.d });
2957
- const loh = structuredClone(arc);
2958
- loh.dt = dtloh;
2959
- loh.gene = loh.text;
2960
- {
2961
- const [td12, td22] = table.addRow();
2962
- td12.text("Data type");
2963
- td22.append("span").style("margin-left", "5px").text("Loss of Heterozygosity");
2964
- }
2965
- const [td1, td2] = table.addRow();
2966
- td1.text("Position");
2967
- td2.append("span").text(`${arc.chr}:${arc.start}-${arc.stop}`);
2968
- menu.show(mouseEvent.x, mouseEvent.y);
2969
- }).on("mouseout", () => {
2970
- menu.clear();
2971
- menu.hide();
2972
- });
2973
- }
2974
- };
2975
-
2976
- // plots/disco/cnv/CnvBarRenderer.ts
2977
- var CnvBarRenderer = class {
2978
- render(holder, elements) {
2979
- const arcGenerator = arc_default();
2980
- const arcs = holder.append("g");
2981
- const hoverOverlay = holder.append("g").attr("class", "hover-overlay").style("pointer-events", "none");
2982
- const menu = MenuProvider.create();
2983
- arcs.selectAll("path").data(elements).enter().append("path").attr("d", (d) => arcGenerator(d)).attr("fill", (d) => d.color).on("mouseover", (mouseEvent, arc) => {
2984
- hoverOverlay.selectAll("*").remove();
2985
- hoverOverlay.append("path").datum(arc).attr("d", arcGenerator(arc)).attr("fill", "none").attr("stroke", "black").attr("stroke-width", 1);
2986
- const cnv = structuredClone(arc);
2987
- cnv.dt = arc.dt;
2988
- cnv.samples = [{ sample_id: arc.sampleName }];
2989
- cnv.gene = cnv.text;
2990
- const table = table2col({ holder: menu.d });
2991
- if (arc.dt == dtcnv) {
2992
- const [c1, c2] = table.addRow();
2993
- c1.text("CNV");
2994
- c2.html(`<span style="background:${cnv.color}">&nbsp;&nbsp;</span> ${cnv.value}`);
2995
- }
2996
- if (arc.dt == dtitd) {
2997
- const [c1, c2] = table.addRow();
2998
- c1.text("ITD");
2999
- c2.html(`<span style="background:${cnv.color}">&nbsp;&nbsp;</span>`);
3000
- }
3001
- {
3002
- const [c1, c2] = table.addRow();
3003
- c1.text("Position");
3004
- c2.text(cnv.chr + ":" + cnv.start + "-" + cnv.stop);
3005
- }
3006
- if (arc.dt == dtcnv) {
3007
- const [c1, c2] = table.addRow();
3008
- c1.text("Unit");
3009
- c2.text(cnv.value);
3010
- }
3011
- menu.show(mouseEvent.x, mouseEvent.y);
3012
- }).on("mouseout", () => {
3013
- hoverOverlay.selectAll("*").remove();
3014
- menu.clear();
3015
- menu.hide();
3016
- });
3017
- }
3018
- };
3019
-
3020
- // plots/disco/cnv/CnvHeatmapRenderer.ts
3021
- var CnvHeatmapRenderer = class {
3022
- constructor(positivePercentile = 0, negativePercentile = 0) {
3023
- this.positivePercentile = positivePercentile;
3024
- this.negativePercentile = negativePercentile;
3025
- }
3026
- render(holder, elements) {
3027
- const arcGenerator = arc_default();
3028
- const arcs = holder.append("g");
3029
- const hoverOverlay = holder.append("g").attr("class", "hover-overlay").style("pointer-events", "none");
3030
- const menu = MenuProvider.create();
3031
- arcs.selectAll("path").data(elements).enter().append("path").attr("d", (d) => arcGenerator(d)).attr("fill", (d) => this.getColor(d.color, d.value, d.dt)).on("mouseenter", (mouseEvent, arc) => {
3032
- hoverOverlay.append("path").datum(arc).attr("d", arcGenerator(arc)).attr("fill", "none").attr("stroke", "black").attr("stroke-width", 1);
3033
- const table = table2col({ holder: menu.d });
3034
- const cnv = structuredClone(arc);
3035
- cnv.dt = arc.dt;
3036
- cnv.samples = [{ sample_id: arc.sampleName }];
3037
- cnv.gene = cnv.text;
3038
- if (arc.dt == dtcnv) {
3039
- const [c1, c2] = table.addRow();
3040
- c1.text("CNV");
3041
- c2.html(
3042
- `<span style="background:${this.getColor(
3043
- cnv.color,
3044
- cnv.value,
3045
- cnv.dt
3046
- )}; border:solid lightgrey 0.1px;">&nbsp;&nbsp;</span> ${cnv.value}`
3047
- );
3048
- }
3049
- if (arc.dt == dtitd) {
3050
- const [c1, c2] = table.addRow();
3051
- c1.text("ITD");
3052
- c2.html(`<span style="background:${cnv.color}; border:solid lightgrey 0.1px;">&nbsp;&nbsp;</span>`);
3053
- }
3054
- {
3055
- const [c1, c2] = table.addRow();
3056
- c1.text("Position");
3057
- c2.text(cnv.chr + ":" + cnv.start + "-" + cnv.stop);
3058
- }
3059
- menu.show(mouseEvent.x, mouseEvent.y);
3060
- }).on("mouseleave", () => {
3061
- hoverOverlay.selectAll("*").remove();
3062
- menu.clear();
3063
- menu.hide();
3064
- });
3065
- }
3066
- // Computes fill color using linear scale between -P80, 0, and +P80
3067
- getColor(color, value, dt = dtcnv) {
3068
- if (dt == dtitd) return color;
3069
- const maxValue = Math.max(this.positivePercentile, Math.abs(this.negativePercentile));
3070
- return linear(
3071
- [-maxValue, 0, maxValue],
3072
- [color, "white", color]
3073
- // transitions to white in the middle
3074
- ).clamp(true)(value);
3075
- }
3076
- };
3077
-
3078
- // plots/disco/waterfall/MutationWaterfallRenderer.ts
3079
- var MutationWaterfallRenderer = class {
3080
- constructor(dotRadius = 1.5) {
3081
- this.dotRadius = dotRadius;
3082
- }
3083
- render(holder, elements) {
3084
- if (!elements.length) return;
3085
- const ringGroup = holder.append("g").attr("data-testid", "sjpp_mutation_waterfall_ring");
3086
- const menu = MenuProvider.create();
3087
- 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) => {
3088
- const distance = Math.round(Math.pow(10, d.logDistance));
3089
- menu.clear();
3090
- const table = table2col({ holder: menu.d });
3091
- {
3092
- const [td1, td2] = table.addRow();
3093
- td1.text("Intermutation distance");
3094
- td2.text(`${bplen(distance)}`);
3095
- }
3096
- menu.show(event.x, event.y);
3097
- }).on("mouseout", () => {
3098
- menu.clear();
3099
- menu.hide();
3100
- });
3101
- this.renderAxis(ringGroup, elements[0]);
3102
- }
3103
- renderAxis(holder, referencePoint) {
3104
- const { ringInnerRadius, ringWidth, rangeMin, rangeMax } = referencePoint;
3105
- const axisGroup = holder.append("g").attr("class", "sjpp-waterfall-axis");
3106
- const topRadius = ringInnerRadius + ringWidth;
3107
- axisGroup.append("line").attr("x1", 0).attr("y1", -topRadius).attr("x2", 0).attr("y2", -ringInnerRadius).attr("stroke", "#6e6e6e").attr("stroke-width", 1);
3108
- const span = rangeMax - rangeMin || 1;
3109
- const tickValues = rangeMax === rangeMin ? [rangeMin] : ticks(rangeMin, rangeMax, 4);
3110
- tickValues.forEach((value) => {
3111
- const ratio = (value - rangeMin) / span;
3112
- const radius = ringInnerRadius + ringWidth * ratio;
3113
- const y = -radius;
3114
- axisGroup.append("line").attr("x1", -4).attr("x2", 4).attr("y1", y).attr("y2", y).attr("stroke", "#6e6e6e");
3115
- const exponent = Math.round(value * 10) / 10;
3116
- const formatted = Number.isInteger(exponent) ? `${exponent}` : exponent.toFixed(1);
3117
- axisGroup.append("text").attr("x", 6).attr("y", y + 3).style("font-size", "10px").style("fill", "#4d4d4d").text(`10^${formatted} bp`);
3118
- });
3119
- }
3120
- };
3121
-
3122
- // plots/disco/Disco.ts
3123
- var Disco = class {
3124
- constructor(opts) {
3125
- this.recreateViewModel = false;
3126
- this.onCnvSourceSelect = (index) => {
3127
- const state = this.app.getState();
3128
- const args = state.args;
3129
- const alt = args.alternativeDataByDt?.[dtcnv];
3130
- if (!alt) return;
3131
- const altClone = structuredClone(args.alternativeDataByDt);
3132
- altClone[dtcnv].forEach((d, i) => d.inuse = i === index);
3133
- const selected = altClone[dtcnv][index];
3134
- selected.mlst.forEach((d) => d.position = d.pos);
3135
- const baseData = args.data.filter((d) => d.dt != dtcnv && d.dt != dtloh);
3136
- const newData = baseData.concat(selected.mlst);
3137
- this.app.dispatch({
3138
- type: "app_refresh",
3139
- state: { args: { ...args, data: newData, alternativeDataByDt: altClone } }
3140
- });
3141
- };
3142
- this.type = "Disco";
3143
- this.opts = opts;
3144
- this.isOpen = false;
3145
- this.discoInteractions = new DiscoInteractions(this);
3146
- }
3147
- static {
3148
- this.type = "Disco";
3149
- }
3150
- async init() {
3151
- const state = this.app.getState();
3152
- const settings = state.plots.find((p) => p.id === this.id).settings;
3153
- this.stateViewModelMapper = new ViewModelMapper(settings, this.discoInteractions);
3154
- this.viewModel = this.stateViewModelMapper.map(state);
3155
- const holder = this.opts.holder;
3156
- const controlsHolder = holder.append("div").style("display", "inline-block").style("vertical-align", "top");
3157
- const mainDiv = holder.append("div").style("display", "inline-block");
3158
- const topbar = controlsHolder.append("div");
3159
- const config_div = controlsHolder.append("div");
3160
- const configInputsOptions = this.getConfigInputsOptions(this.viewModel);
3161
- this.features = await multiInit({
3162
- topbar: topBarInit({
3163
- app: this.app,
3164
- id: this.id,
3165
- // TODO change the way svg is selected
3166
- downloadHandler: () => this.discoInteractions.downloadClickListener(holder.select('svg[id="sjpp_disco_plot"]').node()),
3167
- callback: () => this.toggleVisibility(this.isOpen),
3168
- isOpen: () => this.isOpen,
3169
- holder: topbar
3170
- }),
3171
- config: configUiInit({
3172
- app: this.app,
3173
- id: this.id,
3174
- holder: config_div,
3175
- isOpen: () => this.isOpen,
3176
- inputs: configInputsOptions
3177
- })
3178
- });
3179
- this.errorDiv = mainDiv.append("div").attr("data-testid", "sjpp-disco-errorDiv");
3180
- this.svgDiv = mainDiv.append("div").attr("data-testid", "sjpp-disco-svgDiv");
3181
- }
3182
- getConfigInputsOptions(viewModel) {
3183
- const configInputsOptions = [];
3184
- if (viewModel.settings.Disco.showPrioritizeGeneLabelsByGeneSets) {
3185
- const filterMutationsGenesCheckbox = [
3186
- {
3187
- boxLabel: viewModel.genesetName,
3188
- label: `Filter mutations`,
3189
- type: "checkbox",
3190
- chartType: "Disco",
3191
- settingsKey: "prioritizeGeneLabelsByGeneSets",
3192
- title: `Only show mutations for ${viewModel.genesetName} genes`
3193
- }
3194
- ];
3195
- configInputsOptions.push(...filterMutationsGenesCheckbox);
3196
- }
3197
- if (viewModel.cnvMaxValue !== 0 || viewModel.cnvMinValue !== 0) {
3198
- const cnvConfigInputOptions = [
3199
- {
3200
- boxLabel: "",
3201
- label: "CNV rendering type",
3202
- type: "radio",
3203
- chartType: "Disco",
3204
- settingsKey: "cnvRenderingType",
3205
- title: "CNV rendering type",
3206
- options: [
3207
- { label: "Heatmap", value: "heatmap" /* heatmap */ },
3208
- { label: "Bar", value: "bar" /* bar */ }
3209
- ]
3210
- }
3211
- ];
3212
- configInputsOptions.push(...cnvConfigInputOptions);
3213
- }
3214
- if (viewModel.hasMutationFractionData) {
3215
- configInputsOptions.push({
3216
- boxLabel: "",
3217
- label: "Minimum mutation fraction",
3218
- type: "number",
3219
- chartType: "Disco",
3220
- settingsKey: "minMutationFraction",
3221
- title: "Only show SNV/indel mutations with at least one DNA/RNA mutation fraction at or above this value.",
3222
- step: 0.01,
3223
- min: 0,
3224
- max: 1,
3225
- debounceInterval: 500
3226
- });
3227
- }
3228
- configInputsOptions.push({
3229
- boxLabel: "",
3230
- label: "Show gene names",
3231
- type: "checkbox",
3232
- chartType: "Disco",
3233
- settingsKey: "showGeneNames",
3234
- title: "Show gene name labels on the outside of the plot"
3235
- });
3236
- const genomeChr = this.app.opts.state.args.genome.majorchr;
3237
- const chromosomeConfigOption = {
3238
- label: "Chromosomes",
3239
- title: "Chromosomes shown in the plot",
3240
- type: "multiCheckbox",
3241
- chartType: "Disco",
3242
- settingsKey: "hiddenChromosomes",
3243
- style: {
3244
- colNum: 4
3245
- },
3246
- options: Object.keys(genomeChr).map((c) => ({ label: c, value: c })),
3247
- processInput: (values = []) => {
3248
- const reverse = Object.keys(genomeChr).filter((c) => !values.includes(c));
3249
- return reverse;
3250
- }
3251
- };
3252
- configInputsOptions.push(chromosomeConfigOption);
3253
- configInputsOptions.push({
3254
- boxLabel: "",
3255
- label: "Auto radius",
3256
- type: "checkbox",
3257
- chartType: "Disco",
3258
- settingsKey: "autoRadius",
3259
- title: "Automatically set the radius based on the number of data rings"
3260
- });
3261
- const dimensionOptions = [
3262
- {
3263
- label: "Radius",
3264
- title: "Set the radius of the entire plot, between 200 and 1000 pixels.",
3265
- type: "number",
3266
- chartType: "Disco",
3267
- settingsKey: "radius",
3268
- debounceInterval: 500,
3269
- step: 25,
3270
- min: 200,
3271
- max: 1e3,
3272
- getDisplayStyle: (plot) => plot.settings.Disco.autoRadius ? "none" : "table-row"
3273
- },
3274
- {
3275
- label: "Fusion opacity",
3276
- title: "Adjust opacity of fusion arcs, between 0 and 1",
3277
- type: "number",
3278
- chartType: "Disco",
3279
- settingsKey: "fusionOpacity",
3280
- step: 0.01,
3281
- min: 0,
3282
- max: 1,
3283
- debounceInterval: 500
3284
- }
3285
- ];
3286
- configInputsOptions.push(...dimensionOptions);
3287
- if (viewModel.canShowMutationWaterfallPlot && viewModel.snvDataLength > 0) {
3288
- configInputsOptions.push({
3289
- boxLabel: "",
3290
- label: "Mutation Waterfall Plot",
3291
- type: "checkbox",
3292
- chartType: "Disco",
3293
- settingsKey: "mutationWaterfallPlot",
3294
- title: "Render log10 intermutation distance ring for SNV/indel data"
3295
- });
3296
- }
3297
- return configInputsOptions;
3298
- }
3299
- async main() {
3300
- const settings = this.state.settings;
3301
- this.isOpen = settings.Disco.isOpen;
3302
- if (this.recreateViewModel) {
3303
- this.stateViewModelMapper = new ViewModelMapper(settings, this.discoInteractions);
3304
- this.viewModel = this.stateViewModelMapper.map(this.app.getState());
3305
- }
3306
- this.recreateViewModel = true;
3307
- if (this.viewModel) {
3308
- this.svgDiv.selectAll("*").remove();
3309
- const appState = this.app.getState();
3310
- this.viewModel.svgDiv = this.svgDiv;
3311
- this.viewModel.appState = appState;
3312
- for (const name in this.features) {
3313
- this.features[name].update({ state: this.state, appState });
3314
- }
3315
- const legendRenderer = new LegendRenderer(this.viewModel.cappedCnvMaxAbsValue, settings.label.fontSize);
3316
- const discoRenderer = new DiscoRenderer(
3317
- this.getRingRenderers(this.viewModel.settings, this.viewModel, this.discoInteractions.geneClickListener),
3318
- legendRenderer,
3319
- this.app.opts.state.args.genome
3320
- );
3321
- discoRenderer.render(this.svgDiv, this.viewModel, this.onCnvSourceSelect);
3322
- if (this.viewModel.invalidDataInfo?.entries?.length) {
3323
- InvalidDataUI.render(this.errorDiv, this.viewModel.invalidDataInfo);
3324
- }
3325
- }
3326
- }
3327
- getState(appState) {
3328
- const config = appState.plots.find((p) => p.id === this.id);
3329
- if (!config) return config;
3330
- return { ...config, mlst: appState.args.data };
3331
- }
3332
- getRingRenderers(settings, viewModel, geneClickListener) {
3333
- const chromosomesRenderer = new ChromosomesRenderer(
3334
- settings.padAngle,
3335
- settings.rings.chromosomeInnerRadius,
3336
- settings.rings.chromosomeInnerRadius + settings.rings.chromosomeWidth,
3337
- settings.label.fontSize
3338
- );
3339
- const labelsRenderer = new LabelsRenderer(
3340
- settings.label.animationDuration,
3341
- settings.label.fontSize,
3342
- geneClickListener,
3343
- this.app.opts.state.args.genome.name,
3344
- [
3345
- ...viewModel.rings.cnvArcRing?.elements || [],
3346
- ...(viewModel.rings.lohArcRing?.elements || []).map((event) => ({ ...event, dt: dtloh }))
3347
- ]
3348
- );
3349
- const nonExonicSnvRenderer = new NonExonicSnvRenderer(geneClickListener);
3350
- const snvRenderer = new SnvRenderer(settings.rings.snvRingWidth, geneClickListener);
3351
- const cnvRenderer = settings.Disco.cnvRenderingType === "heatmap" /* heatmap */ ? new CnvHeatmapRenderer(viewModel.positivePercentile, viewModel.negativePercentile) : new CnvBarRenderer();
3352
- const lohRenderer = new LohRenderer();
3353
- const mutationWaterfallRenderer = new MutationWaterfallRenderer();
3354
- const renderersMap = /* @__PURE__ */ new Map();
3355
- renderersMap.set(0 /* CHROMOSOME */, chromosomesRenderer);
3356
- renderersMap.set(1 /* LABEL */, labelsRenderer);
3357
- renderersMap.set(2 /* NONEXONICSNV */, nonExonicSnvRenderer);
3358
- renderersMap.set(3 /* SNV */, snvRenderer);
3359
- renderersMap.set(4 /* MUTATION_WATERFALL */, mutationWaterfallRenderer);
3360
- renderersMap.set(5 /* CNV */, cnvRenderer);
3361
- renderersMap.set(6 /* LOH */, lohRenderer);
3362
- return renderersMap;
3363
- }
3364
- toggleVisibility(isOpen) {
3365
- this.app.dispatch({
3366
- type: "plot_edit",
3367
- id: this.opts.id,
3368
- config: {
3369
- settings: {
3370
- Disco: { isOpen: !isOpen }
3371
- }
3372
- }
3373
- });
3374
- }
3375
- };
3376
- var discoInit = getCompInit(Disco);
3377
- var componentInit = discoInit;
3378
- async function getPlotConfig(opts, app) {
3379
- return {
3380
- chartType: "Disco",
3381
- subfolder: "disco",
3382
- extension: "ts",
3383
- settings: discoDefaults(opts.overrides, app)
3384
- };
3385
- }
3386
- export {
3387
- componentInit,
3388
- Disco as default,
3389
- discoInit,
3390
- getPlotConfig
3391
- };
3392
- //# sourceMappingURL=Disco-QEBEVQS2.js.map