@sjcrh/proteinpaint-client 2.183.0 → 2.183.1

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