@sjcrh/proteinpaint-client 2.203.0 → 2.203.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 (884) hide show
  1. package/dist/2dmaf-6CEBP4SA.js +1366 -0
  2. package/dist/AIProjectAdmin-2CKKFC3A.js +951 -0
  3. package/dist/AggregateMatrix-5TBUMFE5.js +665 -0
  4. package/dist/AppHeader-5YBPWF44.js +829 -0
  5. package/dist/BoxPlot-UOJS5SJV.js +1210 -0
  6. package/dist/CorrelationVolcano-KX6JPZMT.js +613 -0
  7. package/dist/Cuminc-TLOOLZWR.js +1208 -0
  8. package/dist/DE-HUQLQ2Z3.js +87 -0
  9. package/dist/DEinput-WWUISAF2.js +404 -0
  10. package/dist/DifferentialAnalysis-6DTAGCEY.js +237 -0
  11. package/dist/Disco-P6ZLPYLF.js +3388 -0
  12. package/dist/Disco.UI-WGTMAFK2.js +242 -0
  13. package/dist/DmrPlot-3FRU5KUK.js +636 -0
  14. package/dist/GB-NWOBARL3.js +1390 -0
  15. package/dist/GSEA-DEEUAAMI.js +850 -0
  16. package/dist/GeneExpInput-6QWGEAFV.js +361 -0
  17. package/dist/Geomap-6HT2B7RH.js +83 -0
  18. package/dist/HicApp-PCNOUULF.js +2244 -0
  19. package/dist/IDCViewer-H3QPXVM3.js +10811 -0
  20. package/dist/NumBinaryEditor-IU6OLMKN.js +278 -0
  21. package/dist/NumBinaryEditor.unit.spec-YUPUILIV.js +311 -0
  22. package/dist/NumContEditor-KFDA76QN.js +104 -0
  23. package/dist/NumContEditor.unit.spec-QBOT5QHU.js +163 -0
  24. package/dist/NumCustomBinEditor-EOSTEXLB.js +32 -0
  25. package/dist/NumCustomBinEditor.unit.spec-B46XWFYH.js +396 -0
  26. package/dist/NumDiscreteEditor-Y4EAADXC.js +169 -0
  27. package/dist/NumDiscreteEditor.unit.spec-SJGHLWSM.js +232 -0
  28. package/dist/NumRegularBinEditor-3BNG7DIN.js +32 -0
  29. package/dist/NumRegularBinEditor.unit.spec-KM45QXXG.js +277 -0
  30. package/dist/NumSplineEditor-K4KPDC4S.js +209 -0
  31. package/dist/NumSplineEditor.unit.spec-TKQP5XTS.js +223 -0
  32. package/dist/NumericDensity-Z6JFVN3D.js +32 -0
  33. package/dist/NumericDensity.unit.spec-YEYBVLEP.js +417 -0
  34. package/dist/NumericHandler-ITT6HMPN.js +33 -0
  35. package/dist/NumericHandler.unit.spec-QVONMXY4.js +213 -0
  36. package/dist/ProteomeInput-PRS3DEMZ.js +387 -0
  37. package/dist/Regression-LJJJBBT6.js +1413 -0
  38. package/dist/Regression-LJJJBBT6.js.map +7 -0
  39. package/dist/RunChart2-AMM2JFF5.js +749 -0
  40. package/dist/SC-F7IE66VZ.js +1106 -0
  41. package/dist/Violin-RJ6OJZ4F.js +1073 -0
  42. package/dist/Volcano-BJA5HN5Y.js +1414 -0
  43. package/dist/WSIViewer-RJZGRUIR.js +26194 -0
  44. package/dist/Wsi-DXP6KOQA.js +232 -0
  45. package/dist/WsiSamplesPlot-2IAWV2B6.js +159 -0
  46. package/dist/adSandbox-RGWOIV3W.js +32 -0
  47. package/dist/animatedBubbleChart-J4Q2NAEW.js +546 -0
  48. package/dist/app-3QXNR4VG.js +31 -0
  49. package/dist/app-B4B7YNP3.js +41 -0
  50. package/dist/app.js +12 -12
  51. package/dist/bam-LRUMN45P.js +875 -0
  52. package/dist/barchart-L2G6GEHK.js +41 -0
  53. package/dist/barchart2-DWNVAZAJ.js +308 -0
  54. package/dist/block-TVEVAXNP.js +6248 -0
  55. package/dist/block.init-YOHAKPRI.js +32 -0
  56. package/dist/block.mds.expressionrank-PU6JH4W5.js +353 -0
  57. package/dist/block.mds.geneboxplot-WYYFDNE3.js +822 -0
  58. package/dist/block.mds.junction-4WCTL7Y4.js +1538 -0
  59. package/dist/block.mds.svcnv-MR3VCYUW.js +6795 -0
  60. package/dist/block.svg-LR3Y4ZO7.js +158 -0
  61. package/dist/block.tk.aicheck-A5AWKJZI.js +277 -0
  62. package/dist/block.tk.ase-AQBBAQEH.js +359 -0
  63. package/dist/block.tk.bam-QBTA2O3V.js +1900 -0
  64. package/dist/block.tk.bedgraphdot-4ALZG2MY.js +378 -0
  65. package/dist/block.tk.bigwig.ui-32W6XW37.js +205 -0
  66. package/dist/block.tk.hicstraw-PKBHBAG2.js +817 -0
  67. package/dist/block.tk.junction-AO5CXUCU.js +2357 -0
  68. package/dist/block.tk.junction.textmatrixui-RORVUIPI.js +193 -0
  69. package/dist/block.tk.ld-TNBSR4FT.js +93 -0
  70. package/dist/block.tk.menu-QDJO54J5.js +1023 -0
  71. package/dist/block.tk.pgv-6222WWYR.js +937 -0
  72. package/dist/brainImaging-2TPE7MXB.js +426 -0
  73. package/dist/brainImaging-2TPE7MXB.js.map +7 -0
  74. package/dist/brainRegions-KTFH6DE2.js +215 -0
  75. package/dist/bubbleHeatmap-LNXZLFY6.js +377 -0
  76. package/dist/cellTypeBubbleHeatmap-SRHUNX3S.js +277 -0
  77. package/dist/chunk-3TXVDBGN.js +626 -0
  78. package/dist/chunk-4HLHKBHP.js +274 -0
  79. package/dist/chunk-5GG7Q2ZG.js +397 -0
  80. package/dist/chunk-5HVAVJKW.js +518 -0
  81. package/dist/chunk-5HVAVJKW.js.map +7 -0
  82. package/dist/chunk-5PMFCQKC.js +98 -0
  83. package/dist/chunk-67URJYN7.js +84 -0
  84. package/dist/chunk-67URJYN7.js.map +7 -0
  85. package/dist/chunk-6AKSOLBX.js +5071 -0
  86. package/dist/chunk-6AKSOLBX.js.map +7 -0
  87. package/dist/chunk-6X7PP7A4.js +2126 -0
  88. package/dist/chunk-A3EDLRUN.js +54 -0
  89. package/dist/chunk-ACXFPMJP.js +14 -0
  90. package/dist/chunk-ASRW3UJ5.js +102 -0
  91. package/dist/chunk-BBILSUDX.js +176 -0
  92. package/dist/chunk-BOWI37X2.js +100 -0
  93. package/dist/chunk-BVA26EFK.js +368 -0
  94. package/dist/chunk-D5J57ENI.js +797 -0
  95. package/dist/chunk-D5PX2UDG.js +23878 -0
  96. package/dist/chunk-D5PX2UDG.js.map +7 -0
  97. package/dist/chunk-DAGONMWK.js +261 -0
  98. package/dist/chunk-DAGONMWK.js.map +7 -0
  99. package/dist/chunk-DXLO4OAB.js +357 -0
  100. package/dist/chunk-DXLO4OAB.js.map +7 -0
  101. package/dist/chunk-E5BFGDLA.js +292 -0
  102. package/dist/chunk-ECISCOPF.js +134 -0
  103. package/dist/chunk-ECLUUJVE.js +158 -0
  104. package/dist/chunk-EGDQ5I54.js +272 -0
  105. package/dist/chunk-ELNVTA7O.js +56 -0
  106. package/dist/chunk-EO6M3LY3.js +339 -0
  107. package/dist/chunk-EO6M3LY3.js.map +7 -0
  108. package/dist/chunk-F4PMOAQK.js +494 -0
  109. package/dist/chunk-FISQTHD4.js +2327 -0
  110. package/dist/chunk-FXT2XM4E.js +1337 -0
  111. package/dist/chunk-FXT2XM4E.js.map +7 -0
  112. package/dist/chunk-HIWTGMTE.js +1721 -0
  113. package/dist/chunk-HIWTGMTE.js.map +7 -0
  114. package/dist/chunk-HL6GJIOH.js +1254 -0
  115. package/dist/chunk-IGZAOCTU.js +55 -0
  116. package/dist/chunk-JMDJI7KM.js +6360 -0
  117. package/dist/chunk-JQVA264Z.js +49 -0
  118. package/dist/chunk-JRF7SRLB.js +2784 -0
  119. package/dist/chunk-KLWSW6CC.js +203 -0
  120. package/dist/chunk-KNNSOOTG.js +194 -0
  121. package/dist/chunk-KTPXQH2N.js +170 -0
  122. package/dist/chunk-LGKXSWY4.js +276 -0
  123. package/dist/chunk-LP2GIXVK.js +4274 -0
  124. package/dist/chunk-M2ZZL5EV.js +2669 -0
  125. package/dist/chunk-M2ZZL5EV.js.map +7 -0
  126. package/dist/chunk-MBHERRJR.js +302 -0
  127. package/dist/chunk-MLYQDJUQ.js +480 -0
  128. package/dist/chunk-NBGDLLMX.js +446 -0
  129. package/dist/chunk-OPMMU6DQ.js +183 -0
  130. package/dist/chunk-OPMMU6DQ.js.map +7 -0
  131. package/dist/chunk-P3JEXVBT.js +50 -0
  132. package/dist/chunk-PZPPJY4K.js +34 -0
  133. package/dist/chunk-Q6JF4ZLT.js +141 -0
  134. package/dist/chunk-QF5IH7PC.js +263 -0
  135. package/dist/chunk-QJ6SO7CF.js +465 -0
  136. package/dist/chunk-QQUOVIOM.js +2899 -0
  137. package/dist/chunk-R3OBOAOF.js +240 -0
  138. package/dist/chunk-SNCZRDS5.js +557 -0
  139. package/dist/chunk-SNCZRDS5.js.map +7 -0
  140. package/dist/chunk-SPDNUC76.js +70 -0
  141. package/dist/chunk-T3663ZQL.js +37 -0
  142. package/dist/chunk-TSK4ZTFK.js +340 -0
  143. package/dist/chunk-USW6WRDZ.js +217 -0
  144. package/dist/chunk-WBMYHNKH.js +299 -0
  145. package/dist/chunk-X46LAU4Q.js +187 -0
  146. package/dist/chunk-XE6E526E.js +129 -0
  147. package/dist/chunk-XWCWBHLB.js +123 -0
  148. package/dist/chunk-YCECQV3T.js +160 -0
  149. package/dist/chunk-YROOKO3Q.js +1954 -0
  150. package/dist/chunk-YROOKO3Q.js.map +7 -0
  151. package/dist/chunk-Z4NADGZX.js +243 -0
  152. package/dist/chunk-Z53KOPRJ.js +102 -0
  153. package/dist/cohort-U7M6Q2UX.js +69 -0
  154. package/dist/condition-EGAV2PMJ.js +326 -0
  155. package/dist/controls-PTMYWUZV.js +33 -0
  156. package/dist/controls.config-DOA6PTP2.js +33 -0
  157. package/dist/correlation-Y3EL6GB7.js +94 -0
  158. package/dist/customdata.inputui-4NDDG6FL.js +283 -0
  159. package/dist/dataDownload-EQGUAOK2.js +328 -0
  160. package/dist/databrowser.ui-ABGOJUWQ.js +424 -0
  161. package/dist/dictionary-YOLLEDE5.js +112 -0
  162. package/dist/dnaMethylation-JZT63UHO.js +32 -0
  163. package/dist/dnaMethylation.integration.spec-EATCABJW.js +197 -0
  164. package/dist/dofetch-YNBIUFV5.js +48 -0
  165. package/dist/e2pca-RD6COCRL.js +343 -0
  166. package/dist/ep-BAI7WUET.js +1248 -0
  167. package/dist/expclust.gdc.spec-LKV2CQA5.js +301 -0
  168. package/dist/facet-X3SXQIAC.js +518 -0
  169. package/dist/gb-K324K7XB.js +80 -0
  170. package/dist/geneExpClustering-BJD5U3KG.js +243 -0
  171. package/dist/geneExpression-2TK3XLZ5.js +310 -0
  172. package/dist/geneExpression-F6NRTHZ4.js +32 -0
  173. package/dist/geneExpression.unit.spec-IFZN3J6A.js +96 -0
  174. package/dist/geneORA-DUEP735U.js +272 -0
  175. package/dist/geneRanking-LURDNT7L.js +547 -0
  176. package/dist/geneVariant-EAVCWQAZ.js +35 -0
  177. package/dist/geneVariant-IZTFYAG6.js +284 -0
  178. package/dist/geneVariant-IZTFYAG6.js.map +7 -0
  179. package/dist/geneVariant.integration.spec-LHL4ERFO.js +192 -0
  180. package/dist/genefusion.ui-4T5R7DT7.js +302 -0
  181. package/dist/geneset-3PWXPBG2.js +202 -0
  182. package/dist/genomeBrowser.spec-5SEN7R2P.js +275 -0
  183. package/dist/grin2-EXBG7TMS.js +1136 -0
  184. package/dist/grin2-XIXVFVWO.js +69 -0
  185. package/dist/hierCluster-5XQIWXAY.js +57 -0
  186. package/dist/hierCluster-I4TAQWPF.js +53 -0
  187. package/dist/hierCluster.config-T7HVAWES.js +34 -0
  188. package/dist/hierCluster.integration.spec-XWX43K4D.js +482 -0
  189. package/dist/hierCluster.interactivity-MYIDHFSL.js +48 -0
  190. package/dist/hierCluster.renderers-YRXA5ZUK.js +19 -0
  191. package/dist/imagePlot-4JQB6JUG.js +155 -0
  192. package/dist/importPlot-D3MXCCLN.js +8 -0
  193. package/dist/isoformExpression-WNGGUVIZ.js +34 -0
  194. package/dist/isoformExpression.unit.spec-NVJ5TIKM.js +236 -0
  195. package/dist/junction-O7N57JE3.js +35 -0
  196. package/dist/junction.unit.spec-Z63DRTRR.js +181 -0
  197. package/dist/launch.adhoc-MBDRXD3B.js +36 -0
  198. package/dist/leftlabel.sample-IG6FOQ26.js +257 -0
  199. package/dist/lollipop-ZUYBLPGN.js +165 -0
  200. package/dist/maf-QOS5LURG.js +454 -0
  201. package/dist/maftimeline-FEHP2J55.js +586 -0
  202. package/dist/matrix-BG4J4RXA.js +57 -0
  203. package/dist/matrix-PX4LWTGN.js +52 -0
  204. package/dist/matrix.cells-PTIDQVCI.js +26 -0
  205. package/dist/matrix.config-NHW7BLIE.js +35 -0
  206. package/dist/matrix.data-FMIQRXOA.js +23 -0
  207. package/dist/matrix.dom-4S2UYJOU.js +11 -0
  208. package/dist/matrix.groups-QMID5XAO.js +25 -0
  209. package/dist/matrix.integration.spec-H6T7KP5R.js +3066 -0
  210. package/dist/matrix.interactivity-WQUO25HB.js +36 -0
  211. package/dist/matrix.layout-CTPVZZ34.js +38 -0
  212. package/dist/matrix.legend-K6EYUN6L.js +20 -0
  213. package/dist/matrix.renderers-5DIAUY6R.js +32 -0
  214. package/dist/matrix.serieses-LRMN2J52.js +19 -0
  215. package/dist/matrix.sort-RGAGEA6Z.js +25 -0
  216. package/dist/matrix.sort.unit.spec-RGICZZJL.js +466 -0
  217. package/dist/matrix.sorterUi.unit.spec-45QPEGWE.js +336 -0
  218. package/dist/matrix.unit.spec-TMRZM5DU.js +148 -0
  219. package/dist/matrix.unit.spec-TMRZM5DU.js.map +7 -0
  220. package/dist/mavb-VEIVB62L.js +726 -0
  221. package/dist/mds.fimo-BG4LTWFB.js +512 -0
  222. package/dist/mds.samplescatterplot-PWADJZ2J.js +1544 -0
  223. package/dist/mds.survivalplot-BX4HZ23K.js +476 -0
  224. package/dist/multivalue-OZALSBFW.js +82 -0
  225. package/dist/numericDictTermCluster-7PGJ7KV4.js +63 -0
  226. package/dist/oncomatrix-Q2EQZPLS.js +289 -0
  227. package/dist/oncomatrix.spec-YEQOQRPW.js +442 -0
  228. package/dist/plot.2dvaf-NJSB3HNH.js +371 -0
  229. package/dist/plot.app-AEUR6XGI.js +35 -0
  230. package/dist/plot.barplot-OXN2P5KL.js +96 -0
  231. package/dist/plot.boxplot-2KHEVVFE.js +145 -0
  232. package/dist/plot.brainImaging-JWDX4BZG.js +51 -0
  233. package/dist/plot.disco-LUFC5GGC.js +99 -0
  234. package/dist/plot.ssgq-FMM3IRNA.js +133 -0
  235. package/dist/plot.vaf2cov-K5TAQUC5.js +252 -0
  236. package/dist/plot.wsi-CNQCNZ4Z.js +36 -0
  237. package/dist/polar2-AB6SVYRS.js +231 -0
  238. package/dist/profileForms-AIEHZ4GC.js +933 -0
  239. package/dist/profilePlot-PZDFGXKZ.js +48 -0
  240. package/dist/proteinView-7GWHQYXC.js +1561 -0
  241. package/dist/proteomeCohortCompare-BTN4HHFL.js +779 -0
  242. package/dist/proteomeCohortCompare-BTN4HHFL.js.map +7 -0
  243. package/dist/pseudbulk.unit.spec-NFT4VNTI.js +85 -0
  244. package/dist/pseudobulk-WDGWTXW4.js +34 -0
  245. package/dist/qualitative-PZYJENE7.js +37 -0
  246. package/dist/radar2-QHRGH3YS.js +326 -0
  247. package/dist/radarFacility2-2JD26FL6.js +334 -0
  248. package/dist/render-YA4Z56LT.js +32 -0
  249. package/dist/report-2NUKFJTF.js +216 -0
  250. package/dist/sampleView-2XVPJTVR.js +42 -0
  251. package/dist/samplelst-DMILFDT5.js +105 -0
  252. package/dist/samplematrix-LYA5XTUM.js +2192 -0
  253. package/dist/sc-CM2C34MN.js +80 -0
  254. package/dist/scatter-C3CH3HTF.js +879 -0
  255. package/dist/scatter-GO6LV6NY.js +87 -0
  256. package/dist/selectGenomeWithTklst-5C7UBTGZ.js +128 -0
  257. package/dist/singleCellCellType-EZYESBVZ.js +32 -0
  258. package/dist/singleCellCellType.unit.spec-DB6FM4XR.js +153 -0
  259. package/dist/singleCellGeneExpression-DZLEFPW4.js +32 -0
  260. package/dist/singleCellGeneExpression.unit.spec-ZTBK3V43.js +147 -0
  261. package/dist/singleCellPlot-VF4TZ4FT.js +48 -0
  262. package/dist/singlecell-2MHROPBN.js +1565 -0
  263. package/dist/singlecell-GPAFNOUZ.js +80 -0
  264. package/dist/snp-K4EAEVW4.js +32 -0
  265. package/dist/snp.unit.spec-BUVQLVOY.js +170 -0
  266. package/dist/snplocus-GEVISN6Z.js +202 -0
  267. package/dist/spliceevent.a53ss.diagram-5UPWNAZF.js +145 -0
  268. package/dist/spliceevent.exonskip.diagram-7TKAQURC.js +277 -0
  269. package/dist/spliceevent.noeventdiagram-CDXZLR3Z.js +454 -0
  270. package/dist/ssGSEA-NMCJUQXT.js +32 -0
  271. package/dist/ssGSEA.unit.spec-3FQALTPQ.js +82 -0
  272. package/dist/stattable-2RXQPWKK.js +116 -0
  273. package/dist/studyCatalog-WWFCTTX7.js +377 -0
  274. package/dist/studyCatalog-WWFCTTX7.js.map +7 -0
  275. package/dist/summarizeCnvGeneexp-4BQS5AFM.js +157 -0
  276. package/dist/summarizeGeneexpSurvival-HTBZQFB5.js +104 -0
  277. package/dist/summarizeMutationCnv-XUWZGPCM.js +158 -0
  278. package/dist/summarizeMutationDiagnosis-QUJX42TO.js +34 -0
  279. package/dist/summarizeMutationSurvival-3R47TTR6.js +93 -0
  280. package/dist/summary-6UUB63QR.js +41 -0
  281. package/dist/summary.integration.spec-JJDE6SRV.js +408 -0
  282. package/dist/summaryInput-JG4AW6FW.js +225 -0
  283. package/dist/sunburst-YKB42RZX.js +277 -0
  284. package/dist/survival-3IFFTDQA.js +52 -0
  285. package/dist/survival-HOFNJENX.js +1236 -0
  286. package/dist/survival.integration.spec-7YZYKEUW.js +612 -0
  287. package/dist/survival.integration.spec-7YZYKEUW.js.map +7 -0
  288. package/dist/svgraph-WFEY4ZIZ.js +1381 -0
  289. package/dist/svmr-44EIX7YD.js +3836 -0
  290. package/dist/table-6MKVJUNC.js +196 -0
  291. package/dist/termCollection-6JBVQL6Y.js +251 -0
  292. package/dist/termCollection-TTELZVC5.js +32 -0
  293. package/dist/termCollection.unit.spec-6Z7X646L.js +298 -0
  294. package/dist/termCollectionFractionSelection-5DVIJBM5.js +41 -0
  295. package/dist/termCollectionFractionSelection.unit.spec-3HIM5BIF.js +187 -0
  296. package/dist/tk-HSYWJCGQ.js +40 -0
  297. package/dist/tk-PNOVG2XS.js +1120 -0
  298. package/dist/tp.ui-COBBSUPB.js +1453 -0
  299. package/dist/tvs.dt-35AKURFI.js +33 -0
  300. package/dist/tvs.dtcnv.categorical-3EHXYROL.js +34 -0
  301. package/dist/tvs.dtcnv.continuous-AXQ2GU6S.js +66 -0
  302. package/dist/tvs.dtfusion-PLJIMPNX.js +34 -0
  303. package/dist/tvs.dtitd-JS6RFBV5.js +34 -0
  304. package/dist/tvs.dtsnvindel-MDEM5MPT.js +34 -0
  305. package/dist/tvs.dtsv-OU756YLO.js +34 -0
  306. package/dist/tvs.samplelst-5NDICES4.js +98 -0
  307. package/dist/tvs.termCollection-5URPDPH6.js +123 -0
  308. package/dist/vocabulary-CHCVMPK5.js +35 -0
  309. package/dist/wsi.direct-JSKV4H4X.js +75 -0
  310. package/package.json +4 -4
  311. package/dist/2dmaf-I4HBWRNQ.js +0 -1366
  312. package/dist/AIProjectAdmin-SZYSG7HR.js +0 -951
  313. package/dist/AggregateMatrix-U7HHALFR.js +0 -665
  314. package/dist/AppHeader-O4RBZQZF.js +0 -829
  315. package/dist/BoxPlot-NOXWAGX6.js +0 -1210
  316. package/dist/CorrelationVolcano-IJ5UT6N5.js +0 -613
  317. package/dist/Cuminc-NGUDAOAD.js +0 -1208
  318. package/dist/DE-MIAHOI5J.js +0 -87
  319. package/dist/DEinput-FYBSL2ER.js +0 -404
  320. package/dist/DifferentialAnalysis-I6S5YQXY.js +0 -237
  321. package/dist/Disco-VLUBOZDC.js +0 -3388
  322. package/dist/Disco.UI-QQYWQEW7.js +0 -242
  323. package/dist/DmrPlot-DFOBEN7A.js +0 -636
  324. package/dist/GB-5FSXJMEZ.js +0 -1390
  325. package/dist/GSEA-JISHQOVY.js +0 -850
  326. package/dist/GeneExpInput-5YEX22VD.js +0 -361
  327. package/dist/Geomap-YVF6YBK5.js +0 -83
  328. package/dist/HicApp-ZCMOOKTY.js +0 -2244
  329. package/dist/IDCViewer-5ZNTAEUG.js +0 -10811
  330. package/dist/NumBinaryEditor-BEF5YCKI.js +0 -278
  331. package/dist/NumBinaryEditor.unit.spec-GCYZGHB2.js +0 -311
  332. package/dist/NumContEditor-TUXPB6YJ.js +0 -104
  333. package/dist/NumContEditor.unit.spec-5CMHHWIP.js +0 -163
  334. package/dist/NumCustomBinEditor-HS7RSGFV.js +0 -32
  335. package/dist/NumCustomBinEditor.unit.spec-MM3JJXT4.js +0 -396
  336. package/dist/NumDiscreteEditor-ZL7PP6ZT.js +0 -169
  337. package/dist/NumDiscreteEditor.unit.spec-OEWX2KJC.js +0 -232
  338. package/dist/NumRegularBinEditor-YBXK7YV6.js +0 -32
  339. package/dist/NumRegularBinEditor.unit.spec-FVHN4J5L.js +0 -277
  340. package/dist/NumSplineEditor-VN4XBTTI.js +0 -209
  341. package/dist/NumSplineEditor.unit.spec-AI642DWP.js +0 -223
  342. package/dist/NumericDensity-2KTY7DGH.js +0 -32
  343. package/dist/NumericDensity.unit.spec-6EA72A24.js +0 -417
  344. package/dist/NumericHandler-62EN6AD3.js +0 -33
  345. package/dist/NumericHandler.unit.spec-FXOJ2L2L.js +0 -213
  346. package/dist/ProteomeInput-MBBDXO2Z.js +0 -387
  347. package/dist/Regression-OQETMZPL.js +0 -1408
  348. package/dist/Regression-OQETMZPL.js.map +0 -7
  349. package/dist/RunChart2-RHZFHH4M.js +0 -749
  350. package/dist/SC-FAQXOHO4.js +0 -1106
  351. package/dist/Violin-2A3ICNBP.js +0 -1073
  352. package/dist/Volcano-X5KGHLHZ.js +0 -1414
  353. package/dist/WSIViewer-F2SD6LLP.js +0 -26194
  354. package/dist/Wsi-KAFAC3Q5.js +0 -232
  355. package/dist/WsiSamplesPlot-VKPMLDZI.js +0 -159
  356. package/dist/adSandbox-QKG5EA23.js +0 -32
  357. package/dist/animatedBubbleChart-ES62XWMN.js +0 -546
  358. package/dist/app-2HLLOBTD.js +0 -41
  359. package/dist/app-GJL6K6V4.js +0 -31
  360. package/dist/bam-DCPAAVPX.js +0 -875
  361. package/dist/barchart-DCVGCEZO.js +0 -41
  362. package/dist/barchart2-5X57VSIN.js +0 -308
  363. package/dist/block-XYSUTBXJ.js +0 -6248
  364. package/dist/block.init-5B27QKPU.js +0 -32
  365. package/dist/block.mds.expressionrank-Z7BGGPZ7.js +0 -353
  366. package/dist/block.mds.geneboxplot-4U4UZH2J.js +0 -822
  367. package/dist/block.mds.junction-ZPCUEQZJ.js +0 -1538
  368. package/dist/block.mds.svcnv-OGGPBOL2.js +0 -6795
  369. package/dist/block.svg-BWGAMNDS.js +0 -158
  370. package/dist/block.tk.aicheck-XHHW7WST.js +0 -277
  371. package/dist/block.tk.ase-BZ2IL3CQ.js +0 -359
  372. package/dist/block.tk.bam-WRHOOWXN.js +0 -1900
  373. package/dist/block.tk.bedgraphdot-B536STRA.js +0 -378
  374. package/dist/block.tk.bigwig.ui-K5X3BSQC.js +0 -205
  375. package/dist/block.tk.hicstraw-OYOKZ45W.js +0 -817
  376. package/dist/block.tk.junction-S5JMMMR6.js +0 -2357
  377. package/dist/block.tk.junction.textmatrixui-OLZY5BYR.js +0 -193
  378. package/dist/block.tk.ld-KINDO5UU.js +0 -93
  379. package/dist/block.tk.menu-3FNBVZ7J.js +0 -1023
  380. package/dist/block.tk.pgv-UHDY3T4G.js +0 -937
  381. package/dist/brainImaging-KWFRX3XB.js +0 -422
  382. package/dist/brainImaging-KWFRX3XB.js.map +0 -7
  383. package/dist/brainRegions-YI7K4OVE.js +0 -215
  384. package/dist/bubbleHeatmap-EQ44CSG5.js +0 -377
  385. package/dist/cellTypeBubbleHeatmap-O3KL2YBF.js +0 -277
  386. package/dist/chunk-254KEDDH.js +0 -129
  387. package/dist/chunk-25RPYQRT.js +0 -203
  388. package/dist/chunk-2OEMKKLP.js +0 -272
  389. package/dist/chunk-34AV6DED.js +0 -299
  390. package/dist/chunk-3UOSDVFJ.js +0 -1710
  391. package/dist/chunk-3UOSDVFJ.js.map +0 -7
  392. package/dist/chunk-4GN3CSDT.js +0 -98
  393. package/dist/chunk-4KUGV44F.js +0 -397
  394. package/dist/chunk-4WF3XDQP.js +0 -220
  395. package/dist/chunk-4WF3XDQP.js.map +0 -7
  396. package/dist/chunk-55PGOBTR.js +0 -123
  397. package/dist/chunk-5RHE36DQ.js +0 -37
  398. package/dist/chunk-6456HESK.js +0 -160
  399. package/dist/chunk-6THPWBBU.js +0 -102
  400. package/dist/chunk-6ZLCBVJA.js +0 -54
  401. package/dist/chunk-7AYGTMED.js +0 -182
  402. package/dist/chunk-7AYGTMED.js.map +0 -7
  403. package/dist/chunk-7ROMS7YT.js +0 -626
  404. package/dist/chunk-7UFK4GVI.js +0 -263
  405. package/dist/chunk-7UFK4GVI.js.map +0 -7
  406. package/dist/chunk-ALXSSRGI.js +0 -263
  407. package/dist/chunk-AT7HWXMW.js +0 -302
  408. package/dist/chunk-AVR4LFOO.js +0 -194
  409. package/dist/chunk-BY5B5BM5.js +0 -170
  410. package/dist/chunk-BZ36NJHA.js +0 -797
  411. package/dist/chunk-BZKHE26Z.js +0 -340
  412. package/dist/chunk-CBRZIMNF.js +0 -217
  413. package/dist/chunk-CTO247UZ.js +0 -5069
  414. package/dist/chunk-CTO247UZ.js.map +0 -7
  415. package/dist/chunk-D27C6HZW.js +0 -50
  416. package/dist/chunk-D73PJ4WC.js +0 -512
  417. package/dist/chunk-D73PJ4WC.js.map +0 -7
  418. package/dist/chunk-DLXMO6EK.js +0 -494
  419. package/dist/chunk-EK7CQC3P.js +0 -100
  420. package/dist/chunk-FCMHDCMO.js +0 -56
  421. package/dist/chunk-GJFG2MML.js +0 -1254
  422. package/dist/chunk-GQQ4R6BI.js +0 -24060
  423. package/dist/chunk-GQQ4R6BI.js.map +0 -7
  424. package/dist/chunk-HENLCRVM.js +0 -2126
  425. package/dist/chunk-I56CSICA.js +0 -292
  426. package/dist/chunk-I5KBI5PC.js +0 -274
  427. package/dist/chunk-IHDVUZFC.js +0 -1947
  428. package/dist/chunk-IHDVUZFC.js.map +0 -7
  429. package/dist/chunk-IUA3PSTK.js +0 -6360
  430. package/dist/chunk-J3TIXBCS.js +0 -276
  431. package/dist/chunk-JJHMFHRC.js +0 -257
  432. package/dist/chunk-JJHMFHRC.js.map +0 -7
  433. package/dist/chunk-JPQSDB2H.js +0 -102
  434. package/dist/chunk-LIMDUEVX.js +0 -1336
  435. package/dist/chunk-LIMDUEVX.js.map +0 -7
  436. package/dist/chunk-MECQLU4J.js +0 -243
  437. package/dist/chunk-MEJMWIBD.js +0 -187
  438. package/dist/chunk-MT5MHYL3.js +0 -480
  439. package/dist/chunk-NVH5I6EP.js +0 -176
  440. package/dist/chunk-OGQMELRU.js +0 -14
  441. package/dist/chunk-PBRW6QLS.js +0 -4274
  442. package/dist/chunk-PPJMCBVT.js +0 -82
  443. package/dist/chunk-PPJMCBVT.js.map +0 -7
  444. package/dist/chunk-RRI3RX4A.js +0 -2669
  445. package/dist/chunk-RRI3RX4A.js.map +0 -7
  446. package/dist/chunk-S2D6GH6D.js +0 -465
  447. package/dist/chunk-SACNULB3.js +0 -368
  448. package/dist/chunk-SEJGXC2L.js +0 -141
  449. package/dist/chunk-TMZZ4Z7L.js +0 -34
  450. package/dist/chunk-TRWFL52W.js +0 -446
  451. package/dist/chunk-VP2FPPLA.js +0 -70
  452. package/dist/chunk-VTYMSJGY.js +0 -49
  453. package/dist/chunk-WEF6INPI.js +0 -2784
  454. package/dist/chunk-WO4CL5JL.js +0 -240
  455. package/dist/chunk-WVVH56ZU.js +0 -2327
  456. package/dist/chunk-WZTZJNSG.js +0 -2899
  457. package/dist/chunk-XPSUKXMF.js +0 -556
  458. package/dist/chunk-XPSUKXMF.js.map +0 -7
  459. package/dist/chunk-XXITHNR2.js +0 -134
  460. package/dist/chunk-YCLNEB4L.js +0 -158
  461. package/dist/chunk-ZPFN3CYR.js +0 -55
  462. package/dist/cohort-JCMVMOBQ.js +0 -69
  463. package/dist/condition-SHRWEMG7.js +0 -326
  464. package/dist/controls-EKIHLQS6.js +0 -33
  465. package/dist/controls.config-WSVX6UC6.js +0 -33
  466. package/dist/correlation-ALFFZLKD.js +0 -94
  467. package/dist/customdata.inputui-L2UAIU6I.js +0 -283
  468. package/dist/dataDownload-73N5364T.js +0 -328
  469. package/dist/databrowser.ui-NTOGXDYE.js +0 -424
  470. package/dist/dictionary-CUAU2X6Q.js +0 -112
  471. package/dist/dnaMethylation-AGWAGXVD.js +0 -32
  472. package/dist/dnaMethylation.integration.spec-K22XXOU4.js +0 -197
  473. package/dist/dofetch-BVJ77SP7.js +0 -48
  474. package/dist/e2pca-4HIJWLSC.js +0 -343
  475. package/dist/ep-U4RGH62P.js +0 -1248
  476. package/dist/expclust.gdc.spec-JJGGQDQK.js +0 -301
  477. package/dist/facet-NNUPVXCG.js +0 -518
  478. package/dist/gb-2MYXJEMY.js +0 -80
  479. package/dist/geneExpClustering-6ORRRH43.js +0 -243
  480. package/dist/geneExpression-4JVWKJWP.js +0 -310
  481. package/dist/geneExpression-MARWAIHW.js +0 -32
  482. package/dist/geneExpression.unit.spec-3CQTUSDK.js +0 -96
  483. package/dist/geneORA-M2L2YEX3.js +0 -272
  484. package/dist/geneRanking-S2B3LSTU.js +0 -547
  485. package/dist/geneVariant-D2ANGINP.js +0 -35
  486. package/dist/geneVariant-T4NG72OL.js +0 -33
  487. package/dist/geneVariant.integration.spec-62NJS7GD.js +0 -192
  488. package/dist/genefusion.ui-4ZZNKANU.js +0 -302
  489. package/dist/geneset-QCLFANPD.js +0 -202
  490. package/dist/genomeBrowser.spec-BV5M6JFN.js +0 -275
  491. package/dist/grin2-J4VDS2JT.js +0 -1136
  492. package/dist/grin2-K5G3N5XP.js +0 -69
  493. package/dist/hierCluster-FMK524WF.js +0 -57
  494. package/dist/hierCluster-XF7ZWVKD.js +0 -53
  495. package/dist/hierCluster.config-LYAQCO3L.js +0 -34
  496. package/dist/hierCluster.integration.spec-NSLTJBL4.js +0 -482
  497. package/dist/hierCluster.interactivity-VKAOR2DR.js +0 -48
  498. package/dist/hierCluster.renderers-6C5F7LRL.js +0 -19
  499. package/dist/imagePlot-IPTIFVLT.js +0 -155
  500. package/dist/importPlot-V3P6DCUR.js +0 -8
  501. package/dist/isoformExpression-6IIPJI4M.js +0 -34
  502. package/dist/isoformExpression.unit.spec-IYZWSLO5.js +0 -236
  503. package/dist/junction-E6FB2OP4.js +0 -35
  504. package/dist/junction.unit.spec-M4EN7KPG.js +0 -181
  505. package/dist/launch.adhoc-SU5L2YXN.js +0 -36
  506. package/dist/leftlabel.sample-5WTK5NBD.js +0 -257
  507. package/dist/lollipop-L64ZTEEX.js +0 -165
  508. package/dist/maf-QLNFANWO.js +0 -454
  509. package/dist/maftimeline-U7FMTMTV.js +0 -586
  510. package/dist/matrix-GFVK3PEB.js +0 -57
  511. package/dist/matrix-HFJQGPJJ.js +0 -52
  512. package/dist/matrix.cells-5JKTBI3X.js +0 -26
  513. package/dist/matrix.config-QPTQ22RR.js +0 -35
  514. package/dist/matrix.data-MXIUMSRR.js +0 -23
  515. package/dist/matrix.dom-ENBFB4CW.js +0 -11
  516. package/dist/matrix.groups-6DYTBVGR.js +0 -25
  517. package/dist/matrix.integration.spec-X4HM67TN.js +0 -3066
  518. package/dist/matrix.interactivity-QTB56LXE.js +0 -36
  519. package/dist/matrix.layout-VQAORIIH.js +0 -38
  520. package/dist/matrix.legend-SDJXYNHE.js +0 -20
  521. package/dist/matrix.renderers-6PMYIP2S.js +0 -32
  522. package/dist/matrix.serieses-WWY7474U.js +0 -19
  523. package/dist/matrix.sort-V46C2MAZ.js +0 -25
  524. package/dist/matrix.sort.unit.spec-3RM7V6CS.js +0 -466
  525. package/dist/matrix.sorterUi.unit.spec-YOV6FBRT.js +0 -336
  526. package/dist/mavb-PJA76T7F.js +0 -726
  527. package/dist/mds.fimo-GW7XPJGQ.js +0 -512
  528. package/dist/mds.samplescatterplot-ZAIEWPO4.js +0 -1544
  529. package/dist/mds.survivalplot-ETLLFDWR.js +0 -476
  530. package/dist/multivalue-AZPAQJQD.js +0 -82
  531. package/dist/numericDictTermCluster-KOJODGZT.js +0 -63
  532. package/dist/oncomatrix-2TRXETOJ.js +0 -289
  533. package/dist/oncomatrix.spec-DOVKLS24.js +0 -442
  534. package/dist/plot.2dvaf-RQN6QADW.js +0 -371
  535. package/dist/plot.app-MOIVGIS6.js +0 -35
  536. package/dist/plot.barplot-46QRWJOX.js +0 -96
  537. package/dist/plot.boxplot-54J4UWQX.js +0 -145
  538. package/dist/plot.brainImaging-Y32KQFLS.js +0 -51
  539. package/dist/plot.disco-4R5J7Z5S.js +0 -99
  540. package/dist/plot.ssgq-6LCKYRYD.js +0 -133
  541. package/dist/plot.vaf2cov-UCBH4NSC.js +0 -252
  542. package/dist/plot.wsi-DAC7NUQE.js +0 -36
  543. package/dist/polar2-JKV74QV5.js +0 -231
  544. package/dist/profileForms-VDYCFH4M.js +0 -933
  545. package/dist/profilePlot-PR3LVRYU.js +0 -48
  546. package/dist/proteinView-A3EM6OR5.js +0 -1561
  547. package/dist/proteomeCohortCompare-QGFEJTDQ.js +0 -793
  548. package/dist/proteomeCohortCompare-QGFEJTDQ.js.map +0 -7
  549. package/dist/pseudbulk.unit.spec-CUMTLAH7.js +0 -85
  550. package/dist/pseudobulk-5E5MSMU3.js +0 -34
  551. package/dist/qualitative-WPXUBISK.js +0 -37
  552. package/dist/radar2-A5OYMORS.js +0 -326
  553. package/dist/radarFacility2-4TPJB6M4.js +0 -334
  554. package/dist/render-XQBWWS33.js +0 -32
  555. package/dist/report-NCJOTYIC.js +0 -216
  556. package/dist/sampleView-2PUSMG4W.js +0 -42
  557. package/dist/samplelst-FV7BAUN5.js +0 -105
  558. package/dist/samplematrix-DFD3PNI4.js +0 -2192
  559. package/dist/sc-GIMTDVLG.js +0 -80
  560. package/dist/scatter-4GJ5HKUY.js +0 -879
  561. package/dist/scatter-P3ISZB3R.js +0 -87
  562. package/dist/selectGenomeWithTklst-ZZ4CEHDU.js +0 -128
  563. package/dist/singleCellCellType-CEERCVTR.js +0 -32
  564. package/dist/singleCellCellType.unit.spec-JNEIICK5.js +0 -153
  565. package/dist/singleCellGeneExpression-G5B7DDES.js +0 -32
  566. package/dist/singleCellGeneExpression.unit.spec-CGRZGY66.js +0 -147
  567. package/dist/singleCellPlot-US5KTHS4.js +0 -48
  568. package/dist/singlecell-IPTSIKNA.js +0 -1565
  569. package/dist/singlecell-VB4KLPJF.js +0 -80
  570. package/dist/snp-6V2SCCRN.js +0 -32
  571. package/dist/snp.unit.spec-Q537NGVG.js +0 -170
  572. package/dist/snplocus-BV6WJTVP.js +0 -202
  573. package/dist/spliceevent.a53ss.diagram-3BUQVK4Q.js +0 -145
  574. package/dist/spliceevent.exonskip.diagram-CQZ2DFQ5.js +0 -277
  575. package/dist/spliceevent.noeventdiagram-QAEPR6LD.js +0 -454
  576. package/dist/ssGSEA-XNI5S7AC.js +0 -32
  577. package/dist/ssGSEA.unit.spec-A337IMC7.js +0 -82
  578. package/dist/stattable-J4ZQKJFM.js +0 -116
  579. package/dist/studyCatalog-BJTJJGBC.js +0 -352
  580. package/dist/studyCatalog-BJTJJGBC.js.map +0 -7
  581. package/dist/summarizeCnvGeneexp-76UJXLA4.js +0 -157
  582. package/dist/summarizeGeneexpSurvival-ZUEHXA2R.js +0 -104
  583. package/dist/summarizeMutationCnv-EBCBVMG6.js +0 -158
  584. package/dist/summarizeMutationDiagnosis-VLFI2ZIZ.js +0 -34
  585. package/dist/summarizeMutationSurvival-QRFMJLLO.js +0 -93
  586. package/dist/summary-U3YKEMZC.js +0 -41
  587. package/dist/summary.integration.spec-52WP6SNY.js +0 -408
  588. package/dist/summaryInput-WUJNHCGH.js +0 -225
  589. package/dist/sunburst-IJ3ZG2BC.js +0 -277
  590. package/dist/survival-F2B5JKOO.js +0 -1236
  591. package/dist/survival-SQRYWGWZ.js +0 -52
  592. package/dist/survival.integration.spec-YGRZJ2OL.js +0 -967
  593. package/dist/survival.integration.spec-YGRZJ2OL.js.map +0 -7
  594. package/dist/svgraph-HVCMF6KI.js +0 -1381
  595. package/dist/svmr-PROHTMTP.js +0 -3836
  596. package/dist/table-3E64OJNV.js +0 -196
  597. package/dist/termCollection-MUH7P6B5.js +0 -32
  598. package/dist/termCollection-WKT6ESMI.js +0 -251
  599. package/dist/termCollection.unit.spec-XMOCMVER.js +0 -298
  600. package/dist/termCollectionFractionSelection-P5G6WIJJ.js +0 -41
  601. package/dist/termCollectionFractionSelection.unit.spec-MG7E3EIZ.js +0 -187
  602. package/dist/tk-HWUPUGOS.js +0 -1120
  603. package/dist/tk-SBM2GN3S.js +0 -40
  604. package/dist/tp.ui-RRB5MJRD.js +0 -1453
  605. package/dist/tvs.dt-I2ECKHQ2.js +0 -33
  606. package/dist/tvs.dtcnv.categorical-7RJPQKMX.js +0 -34
  607. package/dist/tvs.dtcnv.continuous-FW4ZXIYY.js +0 -66
  608. package/dist/tvs.dtfusion-3GDWW3ML.js +0 -34
  609. package/dist/tvs.dtitd-FER4H4UO.js +0 -34
  610. package/dist/tvs.dtsnvindel-ISEOJ5UA.js +0 -34
  611. package/dist/tvs.dtsv-JDML7EWE.js +0 -34
  612. package/dist/tvs.samplelst-MJTM6GSV.js +0 -98
  613. package/dist/tvs.termCollection-GMOXBJWF.js +0 -123
  614. package/dist/vocabulary-5EJMLXI2.js +0 -35
  615. package/dist/vocabulary-5EJMLXI2.js.map +0 -7
  616. package/dist/wsi.direct-IVPACPNT.js +0 -75
  617. /package/dist/{2dmaf-I4HBWRNQ.js.map → 2dmaf-6CEBP4SA.js.map} +0 -0
  618. /package/dist/{AIProjectAdmin-SZYSG7HR.js.map → AIProjectAdmin-2CKKFC3A.js.map} +0 -0
  619. /package/dist/{AggregateMatrix-U7HHALFR.js.map → AggregateMatrix-5TBUMFE5.js.map} +0 -0
  620. /package/dist/{AppHeader-O4RBZQZF.js.map → AppHeader-5YBPWF44.js.map} +0 -0
  621. /package/dist/{BoxPlot-NOXWAGX6.js.map → BoxPlot-UOJS5SJV.js.map} +0 -0
  622. /package/dist/{CorrelationVolcano-IJ5UT6N5.js.map → CorrelationVolcano-KX6JPZMT.js.map} +0 -0
  623. /package/dist/{Cuminc-NGUDAOAD.js.map → Cuminc-TLOOLZWR.js.map} +0 -0
  624. /package/dist/{DE-MIAHOI5J.js.map → DE-HUQLQ2Z3.js.map} +0 -0
  625. /package/dist/{DEinput-FYBSL2ER.js.map → DEinput-WWUISAF2.js.map} +0 -0
  626. /package/dist/{DifferentialAnalysis-I6S5YQXY.js.map → DifferentialAnalysis-6DTAGCEY.js.map} +0 -0
  627. /package/dist/{Disco-VLUBOZDC.js.map → Disco-P6ZLPYLF.js.map} +0 -0
  628. /package/dist/{Disco.UI-QQYWQEW7.js.map → Disco.UI-WGTMAFK2.js.map} +0 -0
  629. /package/dist/{DmrPlot-DFOBEN7A.js.map → DmrPlot-3FRU5KUK.js.map} +0 -0
  630. /package/dist/{GB-5FSXJMEZ.js.map → GB-NWOBARL3.js.map} +0 -0
  631. /package/dist/{GSEA-JISHQOVY.js.map → GSEA-DEEUAAMI.js.map} +0 -0
  632. /package/dist/{GeneExpInput-5YEX22VD.js.map → GeneExpInput-6QWGEAFV.js.map} +0 -0
  633. /package/dist/{Geomap-YVF6YBK5.js.map → Geomap-6HT2B7RH.js.map} +0 -0
  634. /package/dist/{HicApp-ZCMOOKTY.js.map → HicApp-PCNOUULF.js.map} +0 -0
  635. /package/dist/{IDCViewer-5ZNTAEUG.js.map → IDCViewer-H3QPXVM3.js.map} +0 -0
  636. /package/dist/{NumBinaryEditor-BEF5YCKI.js.map → NumBinaryEditor-IU6OLMKN.js.map} +0 -0
  637. /package/dist/{NumBinaryEditor.unit.spec-GCYZGHB2.js.map → NumBinaryEditor.unit.spec-YUPUILIV.js.map} +0 -0
  638. /package/dist/{NumContEditor-TUXPB6YJ.js.map → NumContEditor-KFDA76QN.js.map} +0 -0
  639. /package/dist/{NumContEditor.unit.spec-5CMHHWIP.js.map → NumContEditor.unit.spec-QBOT5QHU.js.map} +0 -0
  640. /package/dist/{NumCustomBinEditor-HS7RSGFV.js.map → NumCustomBinEditor-EOSTEXLB.js.map} +0 -0
  641. /package/dist/{NumCustomBinEditor.unit.spec-MM3JJXT4.js.map → NumCustomBinEditor.unit.spec-B46XWFYH.js.map} +0 -0
  642. /package/dist/{NumDiscreteEditor-ZL7PP6ZT.js.map → NumDiscreteEditor-Y4EAADXC.js.map} +0 -0
  643. /package/dist/{NumDiscreteEditor.unit.spec-OEWX2KJC.js.map → NumDiscreteEditor.unit.spec-SJGHLWSM.js.map} +0 -0
  644. /package/dist/{NumRegularBinEditor-YBXK7YV6.js.map → NumRegularBinEditor-3BNG7DIN.js.map} +0 -0
  645. /package/dist/{NumRegularBinEditor.unit.spec-FVHN4J5L.js.map → NumRegularBinEditor.unit.spec-KM45QXXG.js.map} +0 -0
  646. /package/dist/{NumSplineEditor-VN4XBTTI.js.map → NumSplineEditor-K4KPDC4S.js.map} +0 -0
  647. /package/dist/{NumSplineEditor.unit.spec-AI642DWP.js.map → NumSplineEditor.unit.spec-TKQP5XTS.js.map} +0 -0
  648. /package/dist/{NumericDensity-2KTY7DGH.js.map → NumericDensity-Z6JFVN3D.js.map} +0 -0
  649. /package/dist/{NumericDensity.unit.spec-6EA72A24.js.map → NumericDensity.unit.spec-YEYBVLEP.js.map} +0 -0
  650. /package/dist/{NumericHandler-62EN6AD3.js.map → NumericHandler-ITT6HMPN.js.map} +0 -0
  651. /package/dist/{NumericHandler.unit.spec-FXOJ2L2L.js.map → NumericHandler.unit.spec-QVONMXY4.js.map} +0 -0
  652. /package/dist/{ProteomeInput-MBBDXO2Z.js.map → ProteomeInput-PRS3DEMZ.js.map} +0 -0
  653. /package/dist/{RunChart2-RHZFHH4M.js.map → RunChart2-AMM2JFF5.js.map} +0 -0
  654. /package/dist/{SC-FAQXOHO4.js.map → SC-F7IE66VZ.js.map} +0 -0
  655. /package/dist/{Violin-2A3ICNBP.js.map → Violin-RJ6OJZ4F.js.map} +0 -0
  656. /package/dist/{Volcano-X5KGHLHZ.js.map → Volcano-BJA5HN5Y.js.map} +0 -0
  657. /package/dist/{WSIViewer-F2SD6LLP.js.map → WSIViewer-RJZGRUIR.js.map} +0 -0
  658. /package/dist/{Wsi-KAFAC3Q5.js.map → Wsi-DXP6KOQA.js.map} +0 -0
  659. /package/dist/{WsiSamplesPlot-VKPMLDZI.js.map → WsiSamplesPlot-2IAWV2B6.js.map} +0 -0
  660. /package/dist/{adSandbox-QKG5EA23.js.map → adSandbox-RGWOIV3W.js.map} +0 -0
  661. /package/dist/{animatedBubbleChart-ES62XWMN.js.map → animatedBubbleChart-J4Q2NAEW.js.map} +0 -0
  662. /package/dist/{app-2HLLOBTD.js.map → app-3QXNR4VG.js.map} +0 -0
  663. /package/dist/{app-GJL6K6V4.js.map → app-B4B7YNP3.js.map} +0 -0
  664. /package/dist/{bam-DCPAAVPX.js.map → bam-LRUMN45P.js.map} +0 -0
  665. /package/dist/{barchart-DCVGCEZO.js.map → barchart-L2G6GEHK.js.map} +0 -0
  666. /package/dist/{barchart2-5X57VSIN.js.map → barchart2-DWNVAZAJ.js.map} +0 -0
  667. /package/dist/{block-XYSUTBXJ.js.map → block-TVEVAXNP.js.map} +0 -0
  668. /package/dist/{block.init-5B27QKPU.js.map → block.init-YOHAKPRI.js.map} +0 -0
  669. /package/dist/{block.mds.expressionrank-Z7BGGPZ7.js.map → block.mds.expressionrank-PU6JH4W5.js.map} +0 -0
  670. /package/dist/{block.mds.geneboxplot-4U4UZH2J.js.map → block.mds.geneboxplot-WYYFDNE3.js.map} +0 -0
  671. /package/dist/{block.mds.junction-ZPCUEQZJ.js.map → block.mds.junction-4WCTL7Y4.js.map} +0 -0
  672. /package/dist/{block.mds.svcnv-OGGPBOL2.js.map → block.mds.svcnv-MR3VCYUW.js.map} +0 -0
  673. /package/dist/{block.svg-BWGAMNDS.js.map → block.svg-LR3Y4ZO7.js.map} +0 -0
  674. /package/dist/{block.tk.aicheck-XHHW7WST.js.map → block.tk.aicheck-A5AWKJZI.js.map} +0 -0
  675. /package/dist/{block.tk.ase-BZ2IL3CQ.js.map → block.tk.ase-AQBBAQEH.js.map} +0 -0
  676. /package/dist/{block.tk.bam-WRHOOWXN.js.map → block.tk.bam-QBTA2O3V.js.map} +0 -0
  677. /package/dist/{block.tk.bedgraphdot-B536STRA.js.map → block.tk.bedgraphdot-4ALZG2MY.js.map} +0 -0
  678. /package/dist/{block.tk.bigwig.ui-K5X3BSQC.js.map → block.tk.bigwig.ui-32W6XW37.js.map} +0 -0
  679. /package/dist/{block.tk.hicstraw-OYOKZ45W.js.map → block.tk.hicstraw-PKBHBAG2.js.map} +0 -0
  680. /package/dist/{block.tk.junction-S5JMMMR6.js.map → block.tk.junction-AO5CXUCU.js.map} +0 -0
  681. /package/dist/{block.tk.junction.textmatrixui-OLZY5BYR.js.map → block.tk.junction.textmatrixui-RORVUIPI.js.map} +0 -0
  682. /package/dist/{block.tk.ld-KINDO5UU.js.map → block.tk.ld-TNBSR4FT.js.map} +0 -0
  683. /package/dist/{block.tk.menu-3FNBVZ7J.js.map → block.tk.menu-QDJO54J5.js.map} +0 -0
  684. /package/dist/{block.tk.pgv-UHDY3T4G.js.map → block.tk.pgv-6222WWYR.js.map} +0 -0
  685. /package/dist/{brainRegions-YI7K4OVE.js.map → brainRegions-KTFH6DE2.js.map} +0 -0
  686. /package/dist/{bubbleHeatmap-EQ44CSG5.js.map → bubbleHeatmap-LNXZLFY6.js.map} +0 -0
  687. /package/dist/{cellTypeBubbleHeatmap-O3KL2YBF.js.map → cellTypeBubbleHeatmap-SRHUNX3S.js.map} +0 -0
  688. /package/dist/{chunk-7ROMS7YT.js.map → chunk-3TXVDBGN.js.map} +0 -0
  689. /package/dist/{chunk-I5KBI5PC.js.map → chunk-4HLHKBHP.js.map} +0 -0
  690. /package/dist/{chunk-4KUGV44F.js.map → chunk-5GG7Q2ZG.js.map} +0 -0
  691. /package/dist/{chunk-4GN3CSDT.js.map → chunk-5PMFCQKC.js.map} +0 -0
  692. /package/dist/{chunk-HENLCRVM.js.map → chunk-6X7PP7A4.js.map} +0 -0
  693. /package/dist/{chunk-6ZLCBVJA.js.map → chunk-A3EDLRUN.js.map} +0 -0
  694. /package/dist/{chunk-OGQMELRU.js.map → chunk-ACXFPMJP.js.map} +0 -0
  695. /package/dist/{chunk-JPQSDB2H.js.map → chunk-ASRW3UJ5.js.map} +0 -0
  696. /package/dist/{chunk-NVH5I6EP.js.map → chunk-BBILSUDX.js.map} +0 -0
  697. /package/dist/{chunk-EK7CQC3P.js.map → chunk-BOWI37X2.js.map} +0 -0
  698. /package/dist/{chunk-SACNULB3.js.map → chunk-BVA26EFK.js.map} +0 -0
  699. /package/dist/{chunk-BZ36NJHA.js.map → chunk-D5J57ENI.js.map} +0 -0
  700. /package/dist/{chunk-I56CSICA.js.map → chunk-E5BFGDLA.js.map} +0 -0
  701. /package/dist/{chunk-XXITHNR2.js.map → chunk-ECISCOPF.js.map} +0 -0
  702. /package/dist/{chunk-YCLNEB4L.js.map → chunk-ECLUUJVE.js.map} +0 -0
  703. /package/dist/{chunk-2OEMKKLP.js.map → chunk-EGDQ5I54.js.map} +0 -0
  704. /package/dist/{chunk-FCMHDCMO.js.map → chunk-ELNVTA7O.js.map} +0 -0
  705. /package/dist/{chunk-DLXMO6EK.js.map → chunk-F4PMOAQK.js.map} +0 -0
  706. /package/dist/{chunk-WVVH56ZU.js.map → chunk-FISQTHD4.js.map} +0 -0
  707. /package/dist/{chunk-GJFG2MML.js.map → chunk-HL6GJIOH.js.map} +0 -0
  708. /package/dist/{chunk-ZPFN3CYR.js.map → chunk-IGZAOCTU.js.map} +0 -0
  709. /package/dist/{chunk-IUA3PSTK.js.map → chunk-JMDJI7KM.js.map} +0 -0
  710. /package/dist/{chunk-VTYMSJGY.js.map → chunk-JQVA264Z.js.map} +0 -0
  711. /package/dist/{chunk-WEF6INPI.js.map → chunk-JRF7SRLB.js.map} +0 -0
  712. /package/dist/{chunk-25RPYQRT.js.map → chunk-KLWSW6CC.js.map} +0 -0
  713. /package/dist/{chunk-AVR4LFOO.js.map → chunk-KNNSOOTG.js.map} +0 -0
  714. /package/dist/{chunk-BY5B5BM5.js.map → chunk-KTPXQH2N.js.map} +0 -0
  715. /package/dist/{chunk-J3TIXBCS.js.map → chunk-LGKXSWY4.js.map} +0 -0
  716. /package/dist/{chunk-PBRW6QLS.js.map → chunk-LP2GIXVK.js.map} +0 -0
  717. /package/dist/{chunk-AT7HWXMW.js.map → chunk-MBHERRJR.js.map} +0 -0
  718. /package/dist/{chunk-MT5MHYL3.js.map → chunk-MLYQDJUQ.js.map} +0 -0
  719. /package/dist/{chunk-TRWFL52W.js.map → chunk-NBGDLLMX.js.map} +0 -0
  720. /package/dist/{chunk-D27C6HZW.js.map → chunk-P3JEXVBT.js.map} +0 -0
  721. /package/dist/{chunk-TMZZ4Z7L.js.map → chunk-PZPPJY4K.js.map} +0 -0
  722. /package/dist/{chunk-SEJGXC2L.js.map → chunk-Q6JF4ZLT.js.map} +0 -0
  723. /package/dist/{chunk-ALXSSRGI.js.map → chunk-QF5IH7PC.js.map} +0 -0
  724. /package/dist/{chunk-S2D6GH6D.js.map → chunk-QJ6SO7CF.js.map} +0 -0
  725. /package/dist/{chunk-WZTZJNSG.js.map → chunk-QQUOVIOM.js.map} +0 -0
  726. /package/dist/{chunk-WO4CL5JL.js.map → chunk-R3OBOAOF.js.map} +0 -0
  727. /package/dist/{chunk-VP2FPPLA.js.map → chunk-SPDNUC76.js.map} +0 -0
  728. /package/dist/{chunk-5RHE36DQ.js.map → chunk-T3663ZQL.js.map} +0 -0
  729. /package/dist/{chunk-BZKHE26Z.js.map → chunk-TSK4ZTFK.js.map} +0 -0
  730. /package/dist/{chunk-CBRZIMNF.js.map → chunk-USW6WRDZ.js.map} +0 -0
  731. /package/dist/{chunk-34AV6DED.js.map → chunk-WBMYHNKH.js.map} +0 -0
  732. /package/dist/{chunk-MEJMWIBD.js.map → chunk-X46LAU4Q.js.map} +0 -0
  733. /package/dist/{chunk-254KEDDH.js.map → chunk-XE6E526E.js.map} +0 -0
  734. /package/dist/{chunk-55PGOBTR.js.map → chunk-XWCWBHLB.js.map} +0 -0
  735. /package/dist/{chunk-6456HESK.js.map → chunk-YCECQV3T.js.map} +0 -0
  736. /package/dist/{chunk-MECQLU4J.js.map → chunk-Z4NADGZX.js.map} +0 -0
  737. /package/dist/{chunk-6THPWBBU.js.map → chunk-Z53KOPRJ.js.map} +0 -0
  738. /package/dist/{cohort-JCMVMOBQ.js.map → cohort-U7M6Q2UX.js.map} +0 -0
  739. /package/dist/{condition-SHRWEMG7.js.map → condition-EGAV2PMJ.js.map} +0 -0
  740. /package/dist/{controls-EKIHLQS6.js.map → controls-PTMYWUZV.js.map} +0 -0
  741. /package/dist/{controls.config-WSVX6UC6.js.map → controls.config-DOA6PTP2.js.map} +0 -0
  742. /package/dist/{correlation-ALFFZLKD.js.map → correlation-Y3EL6GB7.js.map} +0 -0
  743. /package/dist/{customdata.inputui-L2UAIU6I.js.map → customdata.inputui-4NDDG6FL.js.map} +0 -0
  744. /package/dist/{dataDownload-73N5364T.js.map → dataDownload-EQGUAOK2.js.map} +0 -0
  745. /package/dist/{databrowser.ui-NTOGXDYE.js.map → databrowser.ui-ABGOJUWQ.js.map} +0 -0
  746. /package/dist/{dictionary-CUAU2X6Q.js.map → dictionary-YOLLEDE5.js.map} +0 -0
  747. /package/dist/{dnaMethylation-AGWAGXVD.js.map → dnaMethylation-JZT63UHO.js.map} +0 -0
  748. /package/dist/{dnaMethylation.integration.spec-K22XXOU4.js.map → dnaMethylation.integration.spec-EATCABJW.js.map} +0 -0
  749. /package/dist/{dofetch-BVJ77SP7.js.map → dofetch-YNBIUFV5.js.map} +0 -0
  750. /package/dist/{e2pca-4HIJWLSC.js.map → e2pca-RD6COCRL.js.map} +0 -0
  751. /package/dist/{ep-U4RGH62P.js.map → ep-BAI7WUET.js.map} +0 -0
  752. /package/dist/{expclust.gdc.spec-JJGGQDQK.js.map → expclust.gdc.spec-LKV2CQA5.js.map} +0 -0
  753. /package/dist/{facet-NNUPVXCG.js.map → facet-X3SXQIAC.js.map} +0 -0
  754. /package/dist/{gb-2MYXJEMY.js.map → gb-K324K7XB.js.map} +0 -0
  755. /package/dist/{geneExpClustering-6ORRRH43.js.map → geneExpClustering-BJD5U3KG.js.map} +0 -0
  756. /package/dist/{geneExpression-4JVWKJWP.js.map → geneExpression-2TK3XLZ5.js.map} +0 -0
  757. /package/dist/{geneExpression-MARWAIHW.js.map → geneExpression-F6NRTHZ4.js.map} +0 -0
  758. /package/dist/{geneExpression.unit.spec-3CQTUSDK.js.map → geneExpression.unit.spec-IFZN3J6A.js.map} +0 -0
  759. /package/dist/{geneORA-M2L2YEX3.js.map → geneORA-DUEP735U.js.map} +0 -0
  760. /package/dist/{geneRanking-S2B3LSTU.js.map → geneRanking-LURDNT7L.js.map} +0 -0
  761. /package/dist/{geneVariant-D2ANGINP.js.map → geneVariant-EAVCWQAZ.js.map} +0 -0
  762. /package/dist/{geneVariant.integration.spec-62NJS7GD.js.map → geneVariant.integration.spec-LHL4ERFO.js.map} +0 -0
  763. /package/dist/{genefusion.ui-4ZZNKANU.js.map → genefusion.ui-4T5R7DT7.js.map} +0 -0
  764. /package/dist/{geneset-QCLFANPD.js.map → geneset-3PWXPBG2.js.map} +0 -0
  765. /package/dist/{genomeBrowser.spec-BV5M6JFN.js.map → genomeBrowser.spec-5SEN7R2P.js.map} +0 -0
  766. /package/dist/{grin2-J4VDS2JT.js.map → grin2-EXBG7TMS.js.map} +0 -0
  767. /package/dist/{grin2-K5G3N5XP.js.map → grin2-XIXVFVWO.js.map} +0 -0
  768. /package/dist/{geneVariant-T4NG72OL.js.map → hierCluster-5XQIWXAY.js.map} +0 -0
  769. /package/dist/{hierCluster-FMK524WF.js.map → hierCluster-I4TAQWPF.js.map} +0 -0
  770. /package/dist/{hierCluster-XF7ZWVKD.js.map → hierCluster.config-T7HVAWES.js.map} +0 -0
  771. /package/dist/{hierCluster.integration.spec-NSLTJBL4.js.map → hierCluster.integration.spec-XWX43K4D.js.map} +0 -0
  772. /package/dist/{hierCluster.config-LYAQCO3L.js.map → hierCluster.interactivity-MYIDHFSL.js.map} +0 -0
  773. /package/dist/{hierCluster.interactivity-VKAOR2DR.js.map → hierCluster.renderers-YRXA5ZUK.js.map} +0 -0
  774. /package/dist/{imagePlot-IPTIFVLT.js.map → imagePlot-4JQB6JUG.js.map} +0 -0
  775. /package/dist/{hierCluster.renderers-6C5F7LRL.js.map → importPlot-D3MXCCLN.js.map} +0 -0
  776. /package/dist/{importPlot-V3P6DCUR.js.map → isoformExpression-WNGGUVIZ.js.map} +0 -0
  777. /package/dist/{isoformExpression.unit.spec-IYZWSLO5.js.map → isoformExpression.unit.spec-NVJ5TIKM.js.map} +0 -0
  778. /package/dist/{isoformExpression-6IIPJI4M.js.map → junction-O7N57JE3.js.map} +0 -0
  779. /package/dist/{junction.unit.spec-M4EN7KPG.js.map → junction.unit.spec-Z63DRTRR.js.map} +0 -0
  780. /package/dist/{junction-E6FB2OP4.js.map → launch.adhoc-MBDRXD3B.js.map} +0 -0
  781. /package/dist/{leftlabel.sample-5WTK5NBD.js.map → leftlabel.sample-IG6FOQ26.js.map} +0 -0
  782. /package/dist/{lollipop-L64ZTEEX.js.map → lollipop-ZUYBLPGN.js.map} +0 -0
  783. /package/dist/{maf-QLNFANWO.js.map → maf-QOS5LURG.js.map} +0 -0
  784. /package/dist/{maftimeline-U7FMTMTV.js.map → maftimeline-FEHP2J55.js.map} +0 -0
  785. /package/dist/{launch.adhoc-SU5L2YXN.js.map → matrix-BG4J4RXA.js.map} +0 -0
  786. /package/dist/{matrix-GFVK3PEB.js.map → matrix-PX4LWTGN.js.map} +0 -0
  787. /package/dist/{matrix-HFJQGPJJ.js.map → matrix.cells-PTIDQVCI.js.map} +0 -0
  788. /package/dist/{matrix.cells-5JKTBI3X.js.map → matrix.config-NHW7BLIE.js.map} +0 -0
  789. /package/dist/{matrix.config-QPTQ22RR.js.map → matrix.data-FMIQRXOA.js.map} +0 -0
  790. /package/dist/{matrix.data-MXIUMSRR.js.map → matrix.dom-4S2UYJOU.js.map} +0 -0
  791. /package/dist/{matrix.dom-ENBFB4CW.js.map → matrix.groups-QMID5XAO.js.map} +0 -0
  792. /package/dist/{matrix.integration.spec-X4HM67TN.js.map → matrix.integration.spec-H6T7KP5R.js.map} +0 -0
  793. /package/dist/{matrix.groups-6DYTBVGR.js.map → matrix.interactivity-WQUO25HB.js.map} +0 -0
  794. /package/dist/{matrix.interactivity-QTB56LXE.js.map → matrix.layout-CTPVZZ34.js.map} +0 -0
  795. /package/dist/{matrix.layout-VQAORIIH.js.map → matrix.legend-K6EYUN6L.js.map} +0 -0
  796. /package/dist/{matrix.legend-SDJXYNHE.js.map → matrix.renderers-5DIAUY6R.js.map} +0 -0
  797. /package/dist/{matrix.renderers-6PMYIP2S.js.map → matrix.serieses-LRMN2J52.js.map} +0 -0
  798. /package/dist/{matrix.serieses-WWY7474U.js.map → matrix.sort-RGAGEA6Z.js.map} +0 -0
  799. /package/dist/{matrix.sort.unit.spec-3RM7V6CS.js.map → matrix.sort.unit.spec-RGICZZJL.js.map} +0 -0
  800. /package/dist/{matrix.sorterUi.unit.spec-YOV6FBRT.js.map → matrix.sorterUi.unit.spec-45QPEGWE.js.map} +0 -0
  801. /package/dist/{mavb-PJA76T7F.js.map → mavb-VEIVB62L.js.map} +0 -0
  802. /package/dist/{mds.fimo-GW7XPJGQ.js.map → mds.fimo-BG4LTWFB.js.map} +0 -0
  803. /package/dist/{mds.samplescatterplot-ZAIEWPO4.js.map → mds.samplescatterplot-PWADJZ2J.js.map} +0 -0
  804. /package/dist/{mds.survivalplot-ETLLFDWR.js.map → mds.survivalplot-BX4HZ23K.js.map} +0 -0
  805. /package/dist/{multivalue-AZPAQJQD.js.map → multivalue-OZALSBFW.js.map} +0 -0
  806. /package/dist/{numericDictTermCluster-KOJODGZT.js.map → numericDictTermCluster-7PGJ7KV4.js.map} +0 -0
  807. /package/dist/{oncomatrix-2TRXETOJ.js.map → oncomatrix-Q2EQZPLS.js.map} +0 -0
  808. /package/dist/{oncomatrix.spec-DOVKLS24.js.map → oncomatrix.spec-YEQOQRPW.js.map} +0 -0
  809. /package/dist/{plot.2dvaf-RQN6QADW.js.map → plot.2dvaf-NJSB3HNH.js.map} +0 -0
  810. /package/dist/{matrix.sort-V46C2MAZ.js.map → plot.app-AEUR6XGI.js.map} +0 -0
  811. /package/dist/{plot.barplot-46QRWJOX.js.map → plot.barplot-OXN2P5KL.js.map} +0 -0
  812. /package/dist/{plot.boxplot-54J4UWQX.js.map → plot.boxplot-2KHEVVFE.js.map} +0 -0
  813. /package/dist/{plot.brainImaging-Y32KQFLS.js.map → plot.brainImaging-JWDX4BZG.js.map} +0 -0
  814. /package/dist/{plot.disco-4R5J7Z5S.js.map → plot.disco-LUFC5GGC.js.map} +0 -0
  815. /package/dist/{plot.ssgq-6LCKYRYD.js.map → plot.ssgq-FMM3IRNA.js.map} +0 -0
  816. /package/dist/{plot.vaf2cov-UCBH4NSC.js.map → plot.vaf2cov-K5TAQUC5.js.map} +0 -0
  817. /package/dist/{plot.wsi-DAC7NUQE.js.map → plot.wsi-CNQCNZ4Z.js.map} +0 -0
  818. /package/dist/{polar2-JKV74QV5.js.map → polar2-AB6SVYRS.js.map} +0 -0
  819. /package/dist/{profileForms-VDYCFH4M.js.map → profileForms-AIEHZ4GC.js.map} +0 -0
  820. /package/dist/{plot.app-MOIVGIS6.js.map → profilePlot-PZDFGXKZ.js.map} +0 -0
  821. /package/dist/{proteinView-A3EM6OR5.js.map → proteinView-7GWHQYXC.js.map} +0 -0
  822. /package/dist/{pseudbulk.unit.spec-CUMTLAH7.js.map → pseudbulk.unit.spec-NFT4VNTI.js.map} +0 -0
  823. /package/dist/{profilePlot-PR3LVRYU.js.map → pseudobulk-WDGWTXW4.js.map} +0 -0
  824. /package/dist/{pseudobulk-5E5MSMU3.js.map → qualitative-PZYJENE7.js.map} +0 -0
  825. /package/dist/{radar2-A5OYMORS.js.map → radar2-QHRGH3YS.js.map} +0 -0
  826. /package/dist/{radarFacility2-4TPJB6M4.js.map → radarFacility2-2JD26FL6.js.map} +0 -0
  827. /package/dist/{qualitative-WPXUBISK.js.map → render-YA4Z56LT.js.map} +0 -0
  828. /package/dist/{report-NCJOTYIC.js.map → report-2NUKFJTF.js.map} +0 -0
  829. /package/dist/{render-XQBWWS33.js.map → sampleView-2XVPJTVR.js.map} +0 -0
  830. /package/dist/{samplelst-FV7BAUN5.js.map → samplelst-DMILFDT5.js.map} +0 -0
  831. /package/dist/{samplematrix-DFD3PNI4.js.map → samplematrix-LYA5XTUM.js.map} +0 -0
  832. /package/dist/{sc-GIMTDVLG.js.map → sc-CM2C34MN.js.map} +0 -0
  833. /package/dist/{scatter-4GJ5HKUY.js.map → scatter-C3CH3HTF.js.map} +0 -0
  834. /package/dist/{scatter-P3ISZB3R.js.map → scatter-GO6LV6NY.js.map} +0 -0
  835. /package/dist/{selectGenomeWithTklst-ZZ4CEHDU.js.map → selectGenomeWithTklst-5C7UBTGZ.js.map} +0 -0
  836. /package/dist/{sampleView-2PUSMG4W.js.map → singleCellCellType-EZYESBVZ.js.map} +0 -0
  837. /package/dist/{singleCellCellType.unit.spec-JNEIICK5.js.map → singleCellCellType.unit.spec-DB6FM4XR.js.map} +0 -0
  838. /package/dist/{singleCellCellType-CEERCVTR.js.map → singleCellGeneExpression-DZLEFPW4.js.map} +0 -0
  839. /package/dist/{singleCellGeneExpression.unit.spec-CGRZGY66.js.map → singleCellGeneExpression.unit.spec-ZTBK3V43.js.map} +0 -0
  840. /package/dist/{singleCellGeneExpression-G5B7DDES.js.map → singleCellPlot-VF4TZ4FT.js.map} +0 -0
  841. /package/dist/{singlecell-IPTSIKNA.js.map → singlecell-2MHROPBN.js.map} +0 -0
  842. /package/dist/{singlecell-VB4KLPJF.js.map → singlecell-GPAFNOUZ.js.map} +0 -0
  843. /package/dist/{singleCellPlot-US5KTHS4.js.map → snp-K4EAEVW4.js.map} +0 -0
  844. /package/dist/{snp.unit.spec-Q537NGVG.js.map → snp.unit.spec-BUVQLVOY.js.map} +0 -0
  845. /package/dist/{snplocus-BV6WJTVP.js.map → snplocus-GEVISN6Z.js.map} +0 -0
  846. /package/dist/{spliceevent.a53ss.diagram-3BUQVK4Q.js.map → spliceevent.a53ss.diagram-5UPWNAZF.js.map} +0 -0
  847. /package/dist/{spliceevent.exonskip.diagram-CQZ2DFQ5.js.map → spliceevent.exonskip.diagram-7TKAQURC.js.map} +0 -0
  848. /package/dist/{spliceevent.noeventdiagram-QAEPR6LD.js.map → spliceevent.noeventdiagram-CDXZLR3Z.js.map} +0 -0
  849. /package/dist/{snp-6V2SCCRN.js.map → ssGSEA-NMCJUQXT.js.map} +0 -0
  850. /package/dist/{ssGSEA.unit.spec-A337IMC7.js.map → ssGSEA.unit.spec-3FQALTPQ.js.map} +0 -0
  851. /package/dist/{stattable-J4ZQKJFM.js.map → stattable-2RXQPWKK.js.map} +0 -0
  852. /package/dist/{summarizeCnvGeneexp-76UJXLA4.js.map → summarizeCnvGeneexp-4BQS5AFM.js.map} +0 -0
  853. /package/dist/{summarizeGeneexpSurvival-ZUEHXA2R.js.map → summarizeGeneexpSurvival-HTBZQFB5.js.map} +0 -0
  854. /package/dist/{summarizeMutationCnv-EBCBVMG6.js.map → summarizeMutationCnv-XUWZGPCM.js.map} +0 -0
  855. /package/dist/{ssGSEA-XNI5S7AC.js.map → summarizeMutationDiagnosis-QUJX42TO.js.map} +0 -0
  856. /package/dist/{summarizeMutationSurvival-QRFMJLLO.js.map → summarizeMutationSurvival-3R47TTR6.js.map} +0 -0
  857. /package/dist/{summarizeMutationDiagnosis-VLFI2ZIZ.js.map → summary-6UUB63QR.js.map} +0 -0
  858. /package/dist/{summary.integration.spec-52WP6SNY.js.map → summary.integration.spec-JJDE6SRV.js.map} +0 -0
  859. /package/dist/{summaryInput-WUJNHCGH.js.map → summaryInput-JG4AW6FW.js.map} +0 -0
  860. /package/dist/{sunburst-IJ3ZG2BC.js.map → sunburst-YKB42RZX.js.map} +0 -0
  861. /package/dist/{survival-SQRYWGWZ.js.map → survival-3IFFTDQA.js.map} +0 -0
  862. /package/dist/{survival-F2B5JKOO.js.map → survival-HOFNJENX.js.map} +0 -0
  863. /package/dist/{svgraph-HVCMF6KI.js.map → svgraph-WFEY4ZIZ.js.map} +0 -0
  864. /package/dist/{svmr-PROHTMTP.js.map → svmr-44EIX7YD.js.map} +0 -0
  865. /package/dist/{table-3E64OJNV.js.map → table-6MKVJUNC.js.map} +0 -0
  866. /package/dist/{termCollection-WKT6ESMI.js.map → termCollection-6JBVQL6Y.js.map} +0 -0
  867. /package/dist/{summary-U3YKEMZC.js.map → termCollection-TTELZVC5.js.map} +0 -0
  868. /package/dist/{termCollection.unit.spec-XMOCMVER.js.map → termCollection.unit.spec-6Z7X646L.js.map} +0 -0
  869. /package/dist/{termCollection-MUH7P6B5.js.map → termCollectionFractionSelection-5DVIJBM5.js.map} +0 -0
  870. /package/dist/{termCollectionFractionSelection.unit.spec-MG7E3EIZ.js.map → termCollectionFractionSelection.unit.spec-3HIM5BIF.js.map} +0 -0
  871. /package/dist/{termCollectionFractionSelection-P5G6WIJJ.js.map → tk-HSYWJCGQ.js.map} +0 -0
  872. /package/dist/{tk-HWUPUGOS.js.map → tk-PNOVG2XS.js.map} +0 -0
  873. /package/dist/{tp.ui-RRB5MJRD.js.map → tp.ui-COBBSUPB.js.map} +0 -0
  874. /package/dist/{tk-SBM2GN3S.js.map → tvs.dt-35AKURFI.js.map} +0 -0
  875. /package/dist/{tvs.dtcnv.categorical-7RJPQKMX.js.map → tvs.dtcnv.categorical-3EHXYROL.js.map} +0 -0
  876. /package/dist/{tvs.dtcnv.continuous-FW4ZXIYY.js.map → tvs.dtcnv.continuous-AXQ2GU6S.js.map} +0 -0
  877. /package/dist/{tvs.dtfusion-3GDWW3ML.js.map → tvs.dtfusion-PLJIMPNX.js.map} +0 -0
  878. /package/dist/{tvs.dtitd-FER4H4UO.js.map → tvs.dtitd-JS6RFBV5.js.map} +0 -0
  879. /package/dist/{tvs.dtsnvindel-ISEOJ5UA.js.map → tvs.dtsnvindel-MDEM5MPT.js.map} +0 -0
  880. /package/dist/{tvs.dtsv-JDML7EWE.js.map → tvs.dtsv-OU756YLO.js.map} +0 -0
  881. /package/dist/{tvs.samplelst-MJTM6GSV.js.map → tvs.samplelst-5NDICES4.js.map} +0 -0
  882. /package/dist/{tvs.termCollection-GMOXBJWF.js.map → tvs.termCollection-5URPDPH6.js.map} +0 -0
  883. /package/dist/{tvs.dt-I2ECKHQ2.js.map → vocabulary-CHCVMPK5.js.map} +0 -0
  884. /package/dist/{wsi.direct-IVPACPNT.js.map → wsi.direct-JSKV4H4X.js.map} +0 -0
@@ -1,3388 +0,0 @@
1
- import {
2
- InvalidDataUI,
3
- PlotBase,
4
- configUiInit,
5
- fillbar,
6
- getMaxLabelWidth,
7
- getNormalRoot,
8
- renderTable,
9
- svgLegend,
10
- table2col
11
- } from "./chunk-GQQ4R6BI.js";
12
- import "./chunk-HJ6L54YS.js";
13
- import "./chunk-XFAL46LZ.js";
14
- import "./chunk-7AYGTMED.js";
15
- import {
16
- Menu
17
- } from "./chunk-ELJX3QIQ.js";
18
- import "./chunk-7BLXK3GI.js";
19
- import {
20
- topBarInit
21
- } from "./chunk-VSSZJHOR.js";
22
- import "./chunk-5RUVBYLK.js";
23
- import {
24
- dofetch3
25
- } from "./chunk-HENLCRVM.js";
26
- import "./chunk-4WF3XDQP.js";
27
- import "./chunk-7UFK4GVI.js";
28
- import {
29
- bplen,
30
- dtcnv,
31
- dtfusionrna,
32
- dtitd,
33
- dtloh,
34
- dtsnvindel,
35
- dtsv,
36
- mclass,
37
- mclassitd
38
- } from "./chunk-4QBRVM4V.js";
39
- import {
40
- copyMerge,
41
- getCompInit,
42
- multiInit
43
- } from "./chunk-H6INPPUC.js";
44
- import "./chunk-PF4DSFDR.js";
45
- import "./chunk-IMYSFDE5.js";
46
- import "./chunk-W5J3LTYS.js";
47
- import {
48
- arc_default,
49
- line_default,
50
- pie_default,
51
- ribbon_default
52
- } from "./chunk-4ZL6IBXM.js";
53
- import {
54
- linear,
55
- ticks
56
- } from "./chunk-OZVWP4ZR.js";
57
- import "./chunk-FXQXCOII.js";
58
- import "./chunk-TLT4YIG3.js";
59
- import "./chunk-5R63Q5KH.js";
60
- import {
61
- pointer_default,
62
- select_default
63
- } from "./chunk-I6Y4O3RR.js";
64
- import "./chunk-Q5RDQNIT.js";
65
- import "./chunk-DQC5FFGV.js";
66
- import "./chunk-HFNDKYVF.js";
67
-
68
- // plots/disco/arc/FullArcRenderer.ts
69
- var FullArcRenderer = class {
70
- constructor(radius, width, color) {
71
- this.radius = radius;
72
- this.width = width;
73
- this.color = color;
74
- }
75
- render(holder) {
76
- const donutGenerator = arc_default();
77
- const arc = {
78
- startAngle: 0,
79
- endAngle: Math.PI * 2,
80
- innerRadius: this.radius,
81
- outerRadius: this.radius + this.width,
82
- color: this.color,
83
- text: "No label"
84
- };
85
- const array = [];
86
- array.push(arc);
87
- const donutArc = holder.append("g");
88
- donutArc.selectAll("path").data(array).enter().append("path").attr("d", (d) => donutGenerator(d)).attr("fill", (d) => d.color);
89
- }
90
- };
91
-
92
- // plots/disco/menu/MenuProvider.ts
93
- var MenuProvider = class {
94
- static create() {
95
- const menu = new Menu({ padding: 5 });
96
- menu.d.style("border", "1px solid #FFF").style("position", "absolute").style("z-index", 1001);
97
- return menu;
98
- }
99
- };
100
-
101
- // plots/disco/fusion/FusionColorProvider.ts
102
- var FusionColorProvider = class {
103
- static getColor(chrA, chrB) {
104
- if (chrA != chrB) {
105
- return "#6A3D9A" /* Interchromosomal */.valueOf();
106
- } else {
107
- return "#1B9E77" /* Intrachromosomal */.valueOf();
108
- }
109
- }
110
- };
111
-
112
- // plots/disco/fusion/FusionRenderer.ts
113
- var FusionRenderer = class {
114
- constructor(genome) {
115
- this.genome = genome;
116
- }
117
- render(holder, fusions, opacity = 1) {
118
- let radius = 0;
119
- const fusionsWithTarget = fusions.filter((f) => f.target);
120
- if (fusionsWithTarget.length > 0) {
121
- radius = fusionsWithTarget[0].target.radius;
122
- const fullArcRenderer = new FullArcRenderer(radius, 2, "#6464641A");
123
- fullArcRenderer.render(holder);
124
- } else return;
125
- const ribbon = ribbon_default().radius(radius);
126
- const ribbons = holder.selectAll(".chord").data(fusions);
127
- const menu = MenuProvider.create();
128
- const createTooltip = this.createTooltip.bind(this);
129
- const genome = this.genome;
130
- ribbons.enter().append("path").attr("class", "chord").attr("d", ribbon).attr("fill", (fusion) => {
131
- return FusionColorProvider.getColor(
132
- fusion.source.positionInChromosome.chromosome,
133
- fusion.target.positionInChromosome.chromosome
134
- );
135
- }).style("opacity", opacity).each(function(d) {
136
- const path = select_default(this);
137
- const tip = MenuProvider.create();
138
- path.on("click", async function(event) {
139
- tip.clear().show(event.x, event.y);
140
- const div = tip.d.append("div");
141
- await makeSvgraph(d, div, genome);
142
- });
143
- }).on("mouseover", async function(mouseEvent, fusion) {
144
- const table = table2col({ holder: menu.d });
145
- createTooltip(table, fusion);
146
- menu.show(mouseEvent.x, mouseEvent.y);
147
- }).on("mouseout", () => {
148
- menu.clear();
149
- menu.hide();
150
- });
151
- }
152
- createTooltip(table, fusion) {
153
- {
154
- const [td1, td2] = table.addRow();
155
- td1.text("Data type");
156
- td2.append("span").style("margin-left", "5px").text("Fusion transcript");
157
- }
158
- {
159
- const positionInChromosomeSource = fusion.source.positionInChromosome;
160
- const positionInChromosomeTarget = fusion.target.positionInChromosome;
161
- const [td1, td2] = table.addRow();
162
- td1.text("Position");
163
- td2.append("span").style("margin-left", "5px").text(
164
- ` ${fusion.source.gene || ""} ${positionInChromosomeSource.chromosome}:${positionInChromosomeSource.position} ${fusion.source.strand === "+" ? "forward" : "reverse"} > ${fusion.target.gene || ""} ${positionInChromosomeTarget.chromosome}:${positionInChromosomeTarget.position} ${fusion.target.strand === "+" ? "forward" : "reverse"} `
165
- );
166
- }
167
- }
168
- };
169
- async function makeSvgraph(fusion, div, genome) {
170
- const wait = div.append("div").text("Loading...");
171
- const svpair = {
172
- a: {
173
- chr: fusion.source.positionInChromosome.chromosome,
174
- position: fusion.source.positionInChromosome.position,
175
- strand: fusion.source.strand
176
- },
177
- b: {
178
- chr: fusion.target.positionInChromosome.chromosome,
179
- position: fusion.target.positionInChromosome.position,
180
- strand: fusion.target.strand
181
- }
182
- };
183
- await getGm(svpair.a, genome.name, fusion.source.gene);
184
- await getGm(svpair.b, genome.name, fusion.target.gene);
185
- wait.remove();
186
- const _ = await import("./svgraph-HVCMF6KI.js");
187
- _.default({
188
- pairlst: [svpair],
189
- genome,
190
- holder: div
191
- });
192
- }
193
- async function getGm(p, genome, name) {
194
- const d = await dofetch3("isoformbycoord", {
195
- body: { genome, chr: p.chr, pos: p.position }
196
- });
197
- if (d.error) throw d.error;
198
- const u = d.lst.find((i) => i.isdefault && name === i.name) || d.lst[0];
199
- if (u) {
200
- p.name = u.name;
201
- p.gm = { isoform: u.isoform };
202
- }
203
- }
204
-
205
- // plots/disco/DiscoRenderer.ts
206
- var DiscoRenderer = class {
207
- constructor(renders, legendRenderer, genome) {
208
- this.renders = renders;
209
- this.legendRenderer = legendRenderer;
210
- this.fusionRenderer = new FusionRenderer(genome);
211
- }
212
- render(holder, viewModel, onCnvSourceSelect) {
213
- const svgDiv = holder.append("div").style("display", "inline-block").style("font-family", "Arial");
214
- 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);
215
- const mainG = svg.append("g").attr("class", "mainG").attr(
216
- "transform",
217
- `translate(${viewModel.settings.rings.labelLinesInnerRadius + viewModel.settings.rings.labelsToLinesDistance + 100},${viewModel.height / 2})`
218
- );
219
- for (const [ringType, renderer] of this.renders) {
220
- const elements = viewModel.getElements(ringType);
221
- const collisions = viewModel.getCollisions(ringType);
222
- renderer.render(mainG, elements, collisions);
223
- }
224
- this.fusionRenderer.render(mainG, viewModel.fusions, viewModel.settings.Disco.fusionOpacity);
225
- if (viewModel.settings.Disco.centerText) {
226
- const chrRingBbox = mainG.select('[data-testid="sjpp_chromosomes_arc_group"]').node().getBBox();
227
- const text = viewModel.settings.Disco.centerText.length > 20 ? viewModel.settings.Disco.centerText.slice(0, 20) + "..." : viewModel.settings.Disco.centerText;
228
- const textElem = mainG.append("text").attr("class", "sjpp-disco-center-text").text(text);
229
- const textBbox = textElem.node().getBBox();
230
- textElem.attr("transform", `translate(${chrRingBbox.x + chrRingBbox.width / 2 - textBbox.width / 2},0)`);
231
- }
232
- this.legendRenderer.render(
233
- mainG,
234
- viewModel.legend,
235
- -1 * (viewModel.settings.rings.labelLinesInnerRadius + viewModel.settings.rings.labelsToLinesDistance + 75),
236
- viewModel.width,
237
- viewModel.height / 2,
238
- viewModel,
239
- onCnvSourceSelect
240
- );
241
- }
242
- };
243
-
244
- // plots/disco/interactions/DiscoInteractions.ts
245
- var DiscoInteractions = class {
246
- constructor(discoApp) {
247
- this.discoApp = discoApp;
248
- this.downloadClickListener = (svg) => {
249
- const downloadImgName = this.discoApp.state.settings.downloadImgName || "disco.plot";
250
- const a = document.createElement("a");
251
- document.body.appendChild(a);
252
- a.addEventListener(
253
- "click",
254
- () => {
255
- const serializer = new XMLSerializer();
256
- const svg_blob = new Blob([serializer.serializeToString(svg)], {
257
- type: "image/svg+xml"
258
- });
259
- a.download = downloadImgName + ".svg";
260
- a.href = URL.createObjectURL(svg_blob);
261
- document.body.removeChild(a);
262
- },
263
- false
264
- );
265
- a.click();
266
- };
267
- this.geneClickListener = async (gene, mnames) => {
268
- const { filter, filter0 } = this.discoApp.app.getState().termfilter;
269
- const arg = {
270
- holder: this.discoApp.app.opts.holder,
271
- genome: this.discoApp.app.opts.state.args.genome,
272
- nobox: true,
273
- query: gene,
274
- tklst: [
275
- {
276
- type: "mds3",
277
- dslabel: this.discoApp.app.opts.state.vocab.dslabel,
278
- hlaachange: mnames.join(","),
279
- filter0,
280
- filterObj: getNormalRoot(filter)
281
- // must not pass filter as frozen. pass unfrozen, normalized copy so mds3 code will work
282
- }
283
- ]
284
- };
285
- const _ = await import("./block.init-5B27QKPU.js");
286
- await _.default(arg);
287
- };
288
- this.colorScaleNumericInputsCallback = async (obj) => {
289
- const callAppDispatch = (settings) => {
290
- this.discoApp.app.dispatch({
291
- type: "plot_edit",
292
- id: this.discoApp.id,
293
- config: { settings: { Disco: Object.assign({ cnvCutoffMode: obj.cutoffMode }, settings) } }
294
- });
295
- };
296
- if (obj.cutoffMode == "auto") {
297
- if (obj.min == null || obj.max == null)
298
- throw new Error('Color scale must return min and max if cutoffMode "auto"');
299
- callAppDispatch({
300
- cnvCapping: this.discoApp.state.settings.cnv.capping,
301
- cnvPercentile: this.discoApp.state.settings.cnv.percentile
302
- });
303
- } else if (obj.cutoffMode == "fixed") {
304
- if (obj.min == null || obj.max == null)
305
- throw new Error('Color scale must return min and max if cutoffMode "fixed"');
306
- const diffValue = obj.max !== this.discoApp.state.settings.cnv.capping ? obj.max : Math.abs(obj.min);
307
- callAppDispatch({
308
- cnvCapping: diffValue
309
- });
310
- } else if (obj.cutoffMode == "percentile") callAppDispatch({ cnvPercentile: obj.percentile });
311
- else throw new Error("Unknown cutoff mode returned from dom/ColorScale");
312
- };
313
- this.onMutationWaterfallColorChange = (color) => {
314
- this.discoApp.app.dispatch({
315
- type: "plot_edit",
316
- id: this.discoApp.id,
317
- config: { settings: { Disco: { mutationWaterfallColor: color } } }
318
- });
319
- };
320
- }
321
- };
322
-
323
- // plots/disco/chromosome/Reference.ts
324
- var Reference = class {
325
- /**
326
- * Creates a Reference object that contains information about chromosomes.
327
- * @param settings State settings
328
- * @param chromosomes Chromosome order. This function formats into an obj with `chr` removed.
329
- * @param chromosomeOverride Obj of chromsome keys and sizes. Filtered to remove hidden chromosomes in settings.
330
- */
331
- constructor(settings, chromosomes, chromosomeOverride) {
332
- this.chromosomes = [];
333
- this.chromosomesOrder = [];
334
- this.keysArray = [];
335
- this.totalSizeArray = [];
336
- this.chrSizesArray = [];
337
- const chrSizes = chromosomeOverride || chromosomes;
338
- this.settings = settings;
339
- this.chromosomesOrder = [];
340
- let totalSize = 0;
341
- this.totalPadAngle = Object.keys(chrSizes).length * this.settings.padAngle;
342
- this.totalChromosomesAngle = 2 * Math.PI - this.totalPadAngle;
343
- for (const chr in chrSizes) {
344
- const key = chr.slice(0, 3) === "chr" ? chr.slice(3) : chr;
345
- this.chromosomesOrder.push(chr);
346
- this.keysArray.push(key);
347
- this.totalSizeArray.push(totalSize);
348
- this.chrSizesArray.push(chrSizes[chr]);
349
- totalSize += chrSizes[chr];
350
- }
351
- this.totalSize = totalSize;
352
- let lastAngle = 0;
353
- for (let i = 0; i < this.keysArray.length; i++) {
354
- const chromosomeAngle = this.totalChromosomesAngle * (this.chrSizesArray[i] / totalSize);
355
- const startAngle = i == 0 ? this.settings.padAngle / 2 : lastAngle + this.settings.padAngle;
356
- const endAngle = i == 0 ? this.settings.padAngle / 2 + chromosomeAngle : lastAngle + this.settings.padAngle + chromosomeAngle;
357
- const chromosome = {
358
- start: this.totalSizeArray[i],
359
- size: this.chrSizesArray[i],
360
- factor: 1,
361
- startAngle,
362
- endAngle,
363
- angle: (startAngle + endAngle) / 2,
364
- innerRadius: this.settings.rings.chromosomeInnerRadius,
365
- outerRadius: this.settings.rings.chromosomeInnerRadius + this.settings.rings.chromosomeWidth,
366
- color: "#AAA",
367
- text: this.keysArray[i]
368
- };
369
- this.chromosomes.push(chromosome);
370
- if (chromosome.endAngle != null) {
371
- lastAngle = chromosome.endAngle;
372
- }
373
- }
374
- }
375
- };
376
-
377
- // plots/disco/data/DataObjectMapper.ts
378
- var DataObjectMapper = class {
379
- constructor(sampleName, prioritizedGenes) {
380
- this.sampleName = sampleName;
381
- this.prioritizedGenes = prioritizedGenes;
382
- }
383
- map(dObject) {
384
- return {
385
- dt: dObject.dt,
386
- mname: dObject.mname,
387
- mClass: dObject.class,
388
- gene: dObject.gene,
389
- chr: dObject.chr,
390
- ref: dObject.ref,
391
- alt: dObject.alt,
392
- vafs: dObject.vafs,
393
- position: dObject.pos ? dObject.pos : dObject.position,
394
- poschr: dObject.poschr,
395
- posbins: dObject.posbins,
396
- poslabel: dObject.poslabel,
397
- sampleName: this.sampleName,
398
- ssm_id: dObject.ssm_id,
399
- start: dObject.start,
400
- stop: dObject.stop,
401
- value: dObject.value,
402
- segmean: dObject.segmean,
403
- isPrioritized: this.prioritizedGenes.some((cancerGene) => cancerGene == dObject.gene),
404
- chrA: dObject.chrA,
405
- chrB: dObject.chrB,
406
- geneA: dObject.geneA,
407
- geneB: dObject.geneB,
408
- posA: dObject.posA,
409
- posB: dObject.posB,
410
- strandA: dObject.strandA,
411
- strandB: dObject.strandB
412
- };
413
- }
414
- };
415
-
416
- // plots/disco/data/PercentileMapper.ts
417
- var PercentileMapper = class {
418
- map(data, percentile) {
419
- return this.calculatePercentileForPositivesAndNegatives(data, percentile);
420
- }
421
- calculatePercentileForPositivesAndNegatives(data, percentile) {
422
- const positives = data.filter((x) => x > 0);
423
- const negatives = data.filter((x) => x < 0).map((x) => -1 * x);
424
- let positive = NaN;
425
- let negative = NaN;
426
- if (positives.length > 0) {
427
- positive = this.calculatePercentile(positives, percentile);
428
- }
429
- if (negatives.length > 0) {
430
- negative = -1 * this.calculatePercentile(negatives, percentile);
431
- }
432
- return { positive, negative };
433
- }
434
- calculatePercentile(data, percentile) {
435
- if (data.length === 0) {
436
- throw new Error("Array must contain at least one element.");
437
- }
438
- const sortedValues = data.sort((a, b) => a - b);
439
- const index = percentile / 100 * (sortedValues.length - 1);
440
- const lowerIndex = Math.floor(index);
441
- const upperIndex = Math.ceil(index);
442
- const fraction = index - lowerIndex;
443
- if (lowerIndex === upperIndex) {
444
- return sortedValues[lowerIndex];
445
- }
446
- return sortedValues[lowerIndex] + fraction * (sortedValues[upperIndex] - sortedValues[lowerIndex]);
447
- }
448
- };
449
-
450
- // plots/disco/snv/vafTooltip.ts
451
- function getIntegerCount(v) {
452
- if (Number.isInteger(v)) return v;
453
- if (typeof v == "string" && /^-?\d+$/.test(v)) {
454
- const n = Number(v);
455
- if (Number.isInteger(n)) return n;
456
- }
457
- return null;
458
- }
459
- function getReadCounts(refCountValue, altCountValue, totalCountValue) {
460
- const altCount = getIntegerCount(altCountValue);
461
- if (altCount == null || altCount < 0) return null;
462
- const totalCount = getIntegerCount(totalCountValue);
463
- if (totalCount != null) {
464
- if (totalCount <= 0 || totalCount < altCount) return null;
465
- return { altCount, refCount: totalCount - altCount, totalCount };
466
- }
467
- const refCount = getIntegerCount(refCountValue);
468
- if (refCount == null || refCount < 0 || refCount + altCount <= 0) return null;
469
- return { altCount, refCount, totalCount: refCount + altCount };
470
- }
471
- function hasValidReadCounts(refCountValue, altCountValue, totalCountValue) {
472
- return getReadCounts(refCountValue, altCountValue, totalCountValue) != null;
473
- }
474
- function getVafEntries(vafs) {
475
- const entries = [];
476
- if (Array.isArray(vafs)) {
477
- for (const vaf of vafs) {
478
- const label = vaf?.id || vaf?.name;
479
- const refCount = vaf?.refCount;
480
- const totalCount = vaf?.totalCount;
481
- const altCount = vaf?.altCount;
482
- if (!label || altCount == null || refCount == null && totalCount == null) continue;
483
- const entry = { label, altCount };
484
- if (refCount != null) entry.refCount = refCount;
485
- if (totalCount != null) entry.totalCount = totalCount;
486
- entries.push(entry);
487
- }
488
- }
489
- return entries;
490
- }
491
- function getNumericFraction(v) {
492
- if (typeof v != "number" && typeof v != "string") return null;
493
- const n = Number(v);
494
- return Number.isFinite(n) && n >= 0 && n <= 1 ? n : null;
495
- }
496
- function getMutationFractions(vafs) {
497
- const fractions = [];
498
- if (!Array.isArray(vafs)) return fractions;
499
- for (const vaf of vafs) {
500
- const explicitFraction = getNumericFraction(vaf?.fraction ?? vaf?.mutationFraction);
501
- if (explicitFraction != null) {
502
- fractions.push(explicitFraction);
503
- continue;
504
- }
505
- const counts = getReadCounts(vaf?.refCount, vaf?.altCount, vaf?.totalCount);
506
- if (!counts) continue;
507
- fractions.push(counts.altCount / counts.totalCount);
508
- }
509
- return fractions;
510
- }
511
- function getMaxMutationFraction(vafs) {
512
- const fractions = getMutationFractions(vafs);
513
- return fractions.length ? Math.max(...fractions) : null;
514
- }
515
- function hasAnyValidVafEntry(vafs) {
516
- return getVafEntries(vafs).some((vaf) => hasValidReadCounts(vaf.refCount, vaf.altCount, vaf.totalCount));
517
- }
518
- function appendVafBar(td2, refCountValue, altCountValue, label = "VAF", totalCountValue) {
519
- const counts = getReadCounts(refCountValue, altCountValue, totalCountValue);
520
- if (!counts) return;
521
- const fraction = counts.altCount / counts.totalCount;
522
- const div = td2.append("div").style("margin-left", "5px").style("margin-top", "4px").style("display", "flex").style("align-items", "center").style("gap", "6px");
523
- div.append("span").style("font-size", "0.8em").style("color", "#555").text(label);
524
- fillbar(div, { f: fraction, v1: counts.altCount, v2: counts.totalCount });
525
- }
526
- function appendVafBars(td2, vafs) {
527
- for (const vaf of getVafEntries(vafs)) {
528
- if (!hasValidReadCounts(vaf.refCount, vaf.altCount, vaf.totalCount)) continue;
529
- appendVafBar(td2, vaf.refCount, vaf.altCount, vaf.label, vaf.totalCount);
530
- }
531
- }
532
-
533
- // plots/disco/data/DataMapper.ts
534
- var DataMapper = class _DataMapper {
535
- constructor(settings, reference, sample, prioritizedGenes = []) {
536
- // remove fields and extract filters to seperate classes
537
- this.labelData = [];
538
- this.nonExonicSnvData = [];
539
- this.nonExonicInnerRadius = 0;
540
- this.snvRingDataMap = /* @__PURE__ */ new Map();
541
- this.snvInnerRadius = 0;
542
- this.snvData = [];
543
- this.bpx = 0;
544
- this.onePxArcAngle = 0;
545
- this.filteredSnvData = [];
546
- this.filteredSnvCountByChr = /* @__PURE__ */ new Map();
547
- this.lohData = [];
548
- this.lohInnerRadius = 0;
549
- this.cnvData = [];
550
- this.cnvInnerRadius = 0;
551
- this.fusionData = [];
552
- this.fusionRadius = 0;
553
- this.hasPrioritizedGenes = false;
554
- this.hasWaterfallEligibleChromosome = false;
555
- this.invalidEntries = [];
556
- this.cnvLossMaxValue = 0;
557
- this.cnvGainMaxValue = 0;
558
- this.percentilePositive = 0;
559
- this.percentileNegative = 0;
560
- this.cnvMaxPercentileAbs = 0;
561
- this.mutationWaterfallData = [];
562
- this.hasMutationFractionData = false;
563
- this.mutationWaterfallInnerRadius = 0;
564
- this.mutationWaterfallRangeMin = Infinity;
565
- this.mutationWaterfallRangeMax = -Infinity;
566
- this.lohMaxValue = void 0;
567
- this.lohMinValue = void 0;
568
- this.snvFilter = (data) => data.dt == dtsnvindel;
569
- this.fusionFilter = (data) => data.dt == dtfusionrna || data.dt == dtsv;
570
- this.cnvFilter = (data) => data.dt == dtcnv || data.dt == dtitd;
571
- this.lohFilter = (data) => data.dt == dtloh;
572
- this.compareData = (a, b) => {
573
- const chrDiff = this.reference.chromosomesOrder.indexOf(a.chr) - this.reference.chromosomesOrder.indexOf(b.chr);
574
- if (chrDiff != 0) {
575
- return chrDiff;
576
- }
577
- const aPos = a.pos ? a.pos : a.start;
578
- const bPos = b.pos ? b.pos : b.start;
579
- return aPos - bPos;
580
- };
581
- this.settings = settings;
582
- this.reference = reference;
583
- this.sample = sample;
584
- this.excludedChromosomes = this.settings.Disco.hiddenChromosomes;
585
- this.lastInnerRadious = this.settings.rings.chromosomeInnerRadius;
586
- this.gainCapped = this.settings.Disco.cnvCapping;
587
- this.lossCapped = -1 * this.settings.Disco.cnvCapping;
588
- this.nonExonicFilter = (data) => {
589
- if (prioritizedGenes.length > 0 && this.settings.Disco.prioritizeGeneLabelsByGeneSets) {
590
- return prioritizedGenes.includes(data.gene) && settings.rings.nonExonicFilterValues.includes(ViewModelMapper.snvClassLayer[data.mClass]);
591
- } else {
592
- return settings.rings.nonExonicFilterValues.includes(ViewModelMapper.snvClassLayer[data.mClass]);
593
- }
594
- };
595
- this.snvRingFilter = (data) => {
596
- if (prioritizedGenes.length > 0 && this.settings.Disco.prioritizeGeneLabelsByGeneSets) {
597
- return prioritizedGenes.includes(data.gene) && settings.rings.snvRingFilters.includes(ViewModelMapper.snvClassLayer[data.mClass]);
598
- } else {
599
- return settings.rings.snvRingFilters.includes(ViewModelMapper.snvClassLayer[data.mClass]);
600
- }
601
- };
602
- this.dataObjectMapper = new DataObjectMapper(sample, prioritizedGenes);
603
- }
604
- map(data) {
605
- const dataArray = [];
606
- this.filteredSnvCountByChr.clear();
607
- this.hasWaterfallEligibleChromosome = false;
608
- this.mutationWaterfallData = [];
609
- this.mutationWaterfallInnerRadius = 0;
610
- this.mutationWaterfallRangeMin = Infinity;
611
- this.mutationWaterfallRangeMax = -Infinity;
612
- this.hasMutationFractionData = false;
613
- data.forEach((dObject) => {
614
- if (dObject.dt == dtsnvindel && getMaxMutationFraction(dObject.vafs) != null) {
615
- this.hasMutationFractionData = true;
616
- }
617
- const index = this.reference.chromosomesOrder.indexOf(dObject.chr);
618
- const indexA = this.reference.chromosomesOrder.indexOf(dObject.chrA);
619
- const indexB = this.reference.chromosomesOrder.indexOf(dObject.chrB);
620
- if (dObject.dt == dtsnvindel) {
621
- if (index != -1 && this.snvData.length < this.settings.snv.maxMutationCount) {
622
- const pos = dObject.pos ?? dObject.position;
623
- const chrSize = this.reference.chromosomes[index].size;
624
- if (Number.isFinite(pos) && pos >= 0 && pos <= chrSize) {
625
- this.addData(dObject, dataArray);
626
- } else {
627
- this.invalidEntries.push({ dataType: "SNV", reason: `Position ${pos} outside of ${dObject.chr}` });
628
- }
629
- } else if (index == -1) {
630
- if (!this.excludedChromosomes.includes(dObject.chr)) {
631
- this.invalidEntries.push({ dataType: "SNV", reason: `Unknown chr ${dObject.chr}` });
632
- }
633
- }
634
- } else if (dObject.dt == dtfusionrna || dObject.dt == dtsv) {
635
- if (indexA != -1 && indexB != -1) {
636
- const posA = dObject.posA;
637
- const posB = dObject.posB;
638
- const chrSizeA = this.reference.chromosomes[indexA].size;
639
- const chrSizeB = this.reference.chromosomes[indexB].size;
640
- if (Number.isFinite(posA) && Number.isFinite(posB) && posA >= 0 && posA <= chrSizeA && posB >= 0 && posB <= chrSizeB) {
641
- this.addData(dObject, dataArray);
642
- } else {
643
- const reasonParts = [];
644
- if (!(Number.isFinite(posA) && posA >= 0 && posA <= chrSizeA))
645
- reasonParts.push(`Position ${posA} outside of ${dObject.chrA}`);
646
- if (!(Number.isFinite(posB) && posB >= 0 && posB <= chrSizeB))
647
- reasonParts.push(`Position ${posB} outside of ${dObject.chrB}`);
648
- this.invalidEntries.push({ dataType: "Fusion", reason: reasonParts.join("; ") });
649
- }
650
- } else {
651
- const missing = [];
652
- if (indexA == -1 && !this.excludedChromosomes.includes(dObject.chrA)) missing.push(dObject.chrA);
653
- if (indexB == -1 && !this.excludedChromosomes.includes(dObject.chrB)) missing.push(dObject.chrB);
654
- if (missing.length) this.invalidEntries.push({ dataType: "Fusion", reason: "Unknown chr in fusion" });
655
- }
656
- } else if ([dtcnv, dtloh, dtitd].includes(Number(dObject.dt))) {
657
- const idx = this.reference.chromosomesOrder.indexOf(dObject.chr);
658
- const dataType = dObject.dt == dtcnv ? "CNV" : dObject.dt == dtloh ? "LOH" : "ITD";
659
- if (dObject.chr && idx != -1) {
660
- const chrSize = this.reference.chromosomes[idx].size;
661
- const start = dObject.start;
662
- const stop = dObject.stop;
663
- if (Number.isFinite(start) && Number.isFinite(stop) && start >= 0 && stop <= chrSize && start <= stop) {
664
- this.addData(dObject, dataArray);
665
- } else {
666
- this.invalidEntries.push({
667
- dataType,
668
- reason: `Position ${start}-${stop} outside of ${dObject.chr}`
669
- });
670
- }
671
- } else {
672
- if (!this.excludedChromosomes.includes(dObject.chr)) {
673
- this.invalidEntries.push({
674
- dataType,
675
- reason: `Unknown chr ${dObject.chr}`
676
- });
677
- }
678
- }
679
- } else {
680
- throw Error("Unknown mutation type!");
681
- }
682
- });
683
- const sortedData = dataArray.sort(this.compareData);
684
- if (this.settings.rings.nonExonicRingEnabled) {
685
- sortedData.forEach((data2) => {
686
- this.filterNonExonicSnvData(data2);
687
- });
688
- }
689
- if (this.nonExonicSnvData.length > 0) {
690
- this.nonExonicInnerRadius = this.lastInnerRadious - this.settings.rings.nonExonicRingWidth;
691
- this.lastInnerRadious = this.nonExonicInnerRadius;
692
- }
693
- sortedData.forEach((data2) => {
694
- this.filterSnvs(data2);
695
- });
696
- this.hasWaterfallEligibleChromosome = Array.from(this.filteredSnvCountByChr.values()).some((count) => count >= 2);
697
- if (this.settings.Disco.mutationWaterfallPlot && this.hasWaterfallEligibleChromosome) {
698
- this.prepareMutationWaterfallData();
699
- }
700
- sortedData.forEach((data2) => {
701
- this.filterLohs(data2);
702
- });
703
- if (this.lohData.length > 0) {
704
- this.lohInnerRadius = this.lastInnerRadious - this.settings.rings.lohRingWidth;
705
- this.lastInnerRadious = this.lohInnerRadius;
706
- }
707
- sortedData.forEach((data2) => {
708
- this.filterCnvs(data2);
709
- });
710
- if (this.cnvData.length > 0) {
711
- this.cnvInnerRadius = this.lastInnerRadious - this.settings.rings.cnvRingWidth;
712
- this.lastInnerRadious = this.cnvInnerRadius;
713
- this.cappedCnvMaxAbsValue = Math.min(
714
- this.settings.Disco.cnvCapping,
715
- Math.max(
716
- Math.abs(_DataMapper.capMaxValue(this.cnvLossMaxValue, this.gainCapped, this.lossCapped)),
717
- Math.abs(_DataMapper.capMaxValue(this.cnvGainMaxValue, this.gainCapped, this.lossCapped))
718
- )
719
- );
720
- const cnvValues = this.cnvData.filter((data2) => data2.dt == dtcnv).map((data2) => data2.value);
721
- if (cnvValues.length) {
722
- const percentilePair = new PercentileMapper().map(cnvValues, this.settings.Disco.cnvPercentile);
723
- this.percentilePositive = _DataMapper.capMaxValue(percentilePair.positive, this.gainCapped, this.lossCapped);
724
- this.percentileNegative = _DataMapper.capMaxValue(percentilePair.negative, this.gainCapped, this.lossCapped);
725
- this.cnvMaxPercentileAbs = Math.min(
726
- this.settings.Disco.cnvCapping,
727
- Math.max(this.percentilePositive, Math.abs(this.percentileNegative))
728
- );
729
- }
730
- }
731
- sortedData.forEach((data2) => {
732
- this.filterFusion(data2);
733
- });
734
- if (this.fusionData.length > 0) {
735
- this.fusionRadius = this.lastInnerRadious;
736
- }
737
- const dataHolder = {
738
- labelData: this.labelData,
739
- nonExonicSnvData: this.nonExonicSnvData,
740
- nonExonicInnerRadius: this.nonExonicInnerRadius,
741
- snvRingDataMap: this.snvRingDataMap,
742
- snvInnerRadius: this.snvInnerRadius,
743
- snvData: this.snvData,
744
- bpx: this.bpx,
745
- onePxArcAngle: this.onePxArcAngle,
746
- filteredSnvData: this.filteredSnvData,
747
- lohData: this.lohData,
748
- lohInnerRadius: this.lohInnerRadius,
749
- cnvData: this.cnvData,
750
- cnvInnerRadius: this.cnvInnerRadius,
751
- fusionData: this.fusionData,
752
- fusionRadius: this.fusionRadius,
753
- hasPrioritizedGenes: this.hasPrioritizedGenes,
754
- hasWaterfallEligibleChromosome: this.hasWaterfallEligibleChromosome,
755
- cnvGainMaxValue: this.cnvGainMaxValue,
756
- cnvLossMaxValue: this.cnvLossMaxValue,
757
- cappedCnvMaxAbsValue: this.cappedCnvMaxAbsValue,
758
- percentilePositive: this.percentilePositive,
759
- percentileNegative: this.percentileNegative,
760
- cnvMaxPercentileAbs: this.cnvMaxPercentileAbs,
761
- lohMaxValue: this.lohMaxValue,
762
- lohMinValue: this.lohMinValue,
763
- hasMutationFractionData: this.hasMutationFractionData,
764
- mutationWaterfallData: this.mutationWaterfallData,
765
- mutationWaterfallInnerRadius: this.mutationWaterfallInnerRadius,
766
- mutationWaterfallLogRange: this.mutationWaterfallData.length ? { min: this.mutationWaterfallRangeMin, max: this.mutationWaterfallRangeMax } : void 0,
767
- invalidDataInfo: {
768
- entries: this.invalidEntries,
769
- errorMsg: `Entries listed above were skipped due to invalid or unsupported chromosome information.`
770
- }
771
- };
772
- return dataHolder;
773
- }
774
- addData(dObject, dataArray) {
775
- const instance = this.dataObjectMapper.map(dObject);
776
- if (instance.isPrioritized) {
777
- this.hasPrioritizedGenes = true;
778
- }
779
- dataArray.push(instance);
780
- }
781
- filterNonExonicSnvData(data) {
782
- if (this.snvFilter(data) && this.passesMutationFractionFilter(data)) {
783
- if (this.settings.rings.nonExonicRingEnabled && this.nonExonicFilter(data)) {
784
- this.nonExonicSnvData.push(data);
785
- }
786
- }
787
- }
788
- filterSnvs(data) {
789
- if (this.snvFilter(data)) {
790
- this.snvData.push(data);
791
- if (this.passesMutationFractionFilter(data) && this.snvRingFilter(data)) {
792
- if (this.snvInnerRadius == 0) {
793
- this.snvInnerRadius = this.lastInnerRadious - this.settings.rings.snvRingWidth;
794
- this.lastInnerRadious = this.snvInnerRadius;
795
- this.bpx = Math.floor(this.reference.totalSize / (this.reference.totalChromosomesAngle * this.snvInnerRadius));
796
- this.onePxArcAngle = 1 / this.snvInnerRadius;
797
- }
798
- this.filteredSnvData.push(data);
799
- this.labelData.push(data);
800
- const currentCount = this.filteredSnvCountByChr.get(data.chr) || 0;
801
- this.filteredSnvCountByChr.set(data.chr, currentCount + 1);
802
- const arcAngle = this.calculateArcAngle(data);
803
- let dataArray = this.snvRingDataMap.get(arcAngle);
804
- if (!dataArray) {
805
- dataArray = new Array();
806
- }
807
- dataArray.push(data);
808
- this.snvRingDataMap.set(arcAngle, dataArray);
809
- }
810
- }
811
- }
812
- passesMutationFractionFilter(data) {
813
- if (!this.hasMutationFractionData) return true;
814
- const minMutationFraction = this.settings.Disco.minMutationFraction || 0;
815
- if (minMutationFraction <= 0) return true;
816
- const fraction = getMaxMutationFraction(data.vafs);
817
- return fraction != null && fraction >= minMutationFraction;
818
- }
819
- filterFusion(data) {
820
- if (this.fusionFilter(data)) {
821
- data.isPrioritized = true;
822
- this.fusionData.push(data);
823
- this.labelData.push(data);
824
- }
825
- }
826
- filterLohs(data) {
827
- if (this.lohFilter(data)) {
828
- if (this.lohMaxValue == void 0 || this.lohMaxValue < data.value) {
829
- this.lohMaxValue = data.segmean;
830
- }
831
- if (this.lohMinValue == void 0 || this.lohMinValue > data.value) {
832
- this.lohMinValue = data.segmean;
833
- }
834
- this.lohData.push(data);
835
- }
836
- }
837
- filterCnvs(data) {
838
- if (this.cnvFilter(data)) {
839
- if (!data.chr || this.reference.chromosomesOrder.indexOf(data.chr) == -1) {
840
- return;
841
- }
842
- if (data.dt == dtcnv) {
843
- if (this.cnvGainMaxValue == void 0 || this.cnvGainMaxValue < data.value) {
844
- this.cnvGainMaxValue = data.value;
845
- }
846
- if (this.cnvLossMaxValue == void 0 || this.cnvLossMaxValue > data.value) {
847
- this.cnvLossMaxValue = data.value;
848
- }
849
- }
850
- this.cnvData.push(data);
851
- }
852
- }
853
- prepareMutationWaterfallData() {
854
- this.mutationWaterfallInnerRadius = this.lastInnerRadious - this.settings.rings.mutationWaterfallRingWidth;
855
- this.lastInnerRadious = this.mutationWaterfallInnerRadius;
856
- const groupedSnvs = /* @__PURE__ */ new Map();
857
- const firstMutationByChr = [];
858
- for (const snv of this.filteredSnvData) {
859
- const list = groupedSnvs.get(snv.chr) || [];
860
- list.push(snv);
861
- groupedSnvs.set(snv.chr, list);
862
- }
863
- for (const [, snvs] of groupedSnvs) {
864
- if (snvs.length < 2) continue;
865
- snvs.sort((a, b) => a.position - b.position);
866
- firstMutationByChr.push({
867
- chr: snvs[0].chr,
868
- position: snvs[0].position,
869
- logDistance: 0
870
- // placeholder updated after range computed
871
- });
872
- for (let i = 1; i < snvs.length; i++) {
873
- const prev = snvs[i - 1];
874
- const curr = snvs[i];
875
- const distance = Math.max(1, Math.abs(curr.position - prev.position));
876
- const logDistance = Math.log10(distance);
877
- this.mutationWaterfallData.push({
878
- chr: curr.chr,
879
- position: curr.position,
880
- logDistance
881
- });
882
- if (logDistance < this.mutationWaterfallRangeMin) {
883
- this.mutationWaterfallRangeMin = logDistance;
884
- }
885
- if (logDistance > this.mutationWaterfallRangeMax) {
886
- this.mutationWaterfallRangeMax = logDistance;
887
- }
888
- }
889
- }
890
- if (!this.mutationWaterfallData.length) {
891
- this.mutationWaterfallRangeMin = 0;
892
- this.mutationWaterfallRangeMax = 0;
893
- }
894
- const topLogDistance = this.mutationWaterfallRangeMax;
895
- for (const first of firstMutationByChr) {
896
- this.mutationWaterfallData.push({
897
- ...first,
898
- logDistance: topLogDistance
899
- });
900
- }
901
- }
902
- calculateArcAngle(data) {
903
- const currentChromosome = this.reference.chromosomes[this.reference.chromosomesOrder.findIndex((chromosomeOrder) => data.chr == chromosomeOrder)];
904
- const dataAnglePos = Math.floor(data.position / this.bpx);
905
- return currentChromosome.startAngle + dataAnglePos * this.onePxArcAngle;
906
- }
907
- static capMaxValue(value, gainCapped, lossCapped) {
908
- if (value && Math.sign(value) == 1) {
909
- return value > gainCapped ? gainCapped : value;
910
- }
911
- if (Math.sign(value) == -1) {
912
- return value < lossCapped ? lossCapped : value;
913
- }
914
- return 0;
915
- }
916
- static capMinValue(value, capMinValue = 1) {
917
- if (Math.sign(value) == 1) {
918
- return value > capMinValue ? value : capMinValue;
919
- }
920
- if (Math.sign(value) == -1) {
921
- return value < -1 * capMinValue ? value : -1 * capMinValue;
922
- }
923
- return 1;
924
- }
925
- };
926
-
927
- // plots/disco/legend/Legend.ts
928
- var Legend = class {
929
- constructor(snvTitle, cnvTitle, lohTitle, fusionTitle, cnvPercentile, cnvCutoffmode, snvClassMap, cnvClassMap, cnvRenderingType, fusionLegend, discoInteractions, lohLegend, mutationWaterfallLegend, fusionLegendCounts = { interchromosomal: 0, intrachromosomal: 0 }, cnvCount = 0) {
930
- this.snvTitle = snvTitle;
931
- this.cnvTitle = cnvTitle;
932
- this.lohTitle = lohTitle;
933
- this.fusionTitle = fusionTitle;
934
- this.cnvPercentile = cnvPercentile;
935
- this.cnvCutoffMode = cnvCutoffmode;
936
- this.cnvCount = cnvCount;
937
- this.snvClassMap = snvClassMap;
938
- this.cnvClassMap = cnvClassMap;
939
- this.cnvRenderingType = cnvRenderingType;
940
- this.lohLegend = lohLegend;
941
- this.fusionLegend = fusionLegend;
942
- this.fusionLegendCounts = fusionLegendCounts;
943
- this.discoInteractions = discoInteractions;
944
- this.mutationWaterfallLegend = mutationWaterfallLegend;
945
- }
946
- legendCount() {
947
- const hasItd = this.cnvClassMap.has(4 /* ITD */);
948
- return (this.snvClassMap.size > 0 ? 1 : 0) + (this.cnvCount > 0 ? 1 : 0) + (hasItd ? 1 : 0) + (this.lohLegend ? 1 : 0) + (this.fusionLegend ? 1 : 0) + (this.mutationWaterfallLegend ? 1 : 0);
949
- }
950
- };
951
-
952
- // plots/disco/fusion/Fusion.ts
953
- var Fusion = class {
954
- constructor(source, target, genes, count, endpts) {
955
- this.source = source;
956
- this.target = target;
957
- this.genes = genes;
958
- this.count = count;
959
- this.endpts = endpts;
960
- }
961
- };
962
-
963
- // plots/disco/fusion/FusionSubgroup.ts
964
- var FusionSubgroup = class {
965
- constructor(startAngle, endAngle, radius, gene, value, genes, positionInChromosome, strand) {
966
- this.startAngle = startAngle;
967
- this.endAngle = endAngle;
968
- this.radius = radius;
969
- this.gene = gene;
970
- this.value = value;
971
- this.genes = genes;
972
- this.positionInChromosome = positionInChromosome;
973
- this.strand = strand;
974
- }
975
- };
976
-
977
- // plots/disco/fusion/FusionMapper.ts
978
- var FusionMapper = class {
979
- constructor(radius, sampleName, reference) {
980
- this.radius = radius;
981
- this.sampleName = sampleName;
982
- this.reference = reference;
983
- }
984
- map(fusionData) {
985
- const fusions = [];
986
- fusionData.forEach((data) => {
987
- const genes = /* @__PURE__ */ new Set();
988
- genes.add(data.geneA);
989
- genes.add(data.geneB);
990
- const startAngle = this.calculateStartAngle(data.chrA, data.posA);
991
- const endAngle = this.calculateEndAngle(data.chrA, data.posA);
992
- if (startAngle === null || endAngle === null) return;
993
- const source = new FusionSubgroup(
994
- startAngle,
995
- endAngle,
996
- this.radius,
997
- data.geneA,
998
- data.value,
999
- genes,
1000
- {
1001
- chromosome: data.chrA,
1002
- position: data.posA
1003
- },
1004
- data.strandA
1005
- );
1006
- let target;
1007
- if (data.chrB && data.posB) {
1008
- const startAngle2 = this.calculateStartAngle(data.chrB, data.posB);
1009
- const endAngle2 = this.calculateEndAngle(data.chrB, data.posB);
1010
- if (startAngle2 === null || endAngle2 === null) return;
1011
- target = new FusionSubgroup(
1012
- startAngle2,
1013
- endAngle2,
1014
- this.radius,
1015
- data.geneB,
1016
- data.value,
1017
- genes,
1018
- {
1019
- chromosome: data.chrB,
1020
- position: data.posB
1021
- },
1022
- data.strandB
1023
- );
1024
- }
1025
- const fusion = new Fusion(source, target, "genes", -1, "Endpoints");
1026
- fusions.push(fusion);
1027
- });
1028
- return fusions;
1029
- }
1030
- calculateStartAngle(chr, pos) {
1031
- const index = this.reference.chromosomesOrder.indexOf(chr);
1032
- if (index === -1) return null;
1033
- const chromosome = this.reference.chromosomes[index];
1034
- return chromosome.startAngle + (chromosome.endAngle - chromosome.startAngle) * (Number(pos) / chromosome.size) - 0.01;
1035
- }
1036
- calculateEndAngle(chr, pos) {
1037
- const index = this.reference.chromosomesOrder.indexOf(chr);
1038
- if (index === -1) return null;
1039
- const chromosome = this.reference.chromosomes[index];
1040
- return 0.01 + chromosome.startAngle + (chromosome.endAngle - chromosome.startAngle) * (Number(pos) / chromosome.size);
1041
- }
1042
- };
1043
-
1044
- // plots/disco/loh/LohLegend.ts
1045
- var LohLegend = class {
1046
- constructor(count) {
1047
- this.count = count;
1048
- }
1049
- };
1050
-
1051
- // plots/disco/viewmodel/ViewModel.ts
1052
- var ViewModel = class {
1053
- constructor(settings, rings, legend, fusions, dataHolder, genesetName, snvDataLengthAll) {
1054
- this.settings = settings;
1055
- this.rings = rings;
1056
- this.legend = legend;
1057
- this.fusions = fusions;
1058
- this.genesetName = genesetName;
1059
- const tempHolder = select_default("body").append("div").style("position", "absolute").style("visibility", "hidden");
1060
- const tempSvg = tempHolder.append("svg");
1061
- const labels = rings.labelsRing?.elementsToDisplay?.map((l) => l.text) || [];
1062
- const maxLabelSpace = getMaxLabelWidth(tempSvg, labels);
1063
- tempHolder.remove();
1064
- this.width = 2 * (this.settings.horizontalPadding + this.settings.rings.labelLinesInnerRadius + this.settings.rings.labelsToLinesDistance + maxLabelSpace);
1065
- this.height = 2 * (this.settings.rings.labelLinesInnerRadius + this.settings.rings.labelsToLinesDistance + this.settings.verticalPadding + this.settings.label.fontSize * 2 + maxLabelSpace);
1066
- this.legendHeight = this.calculateLegendHeight(legend);
1067
- this.snvDataLength = dataHolder.snvData.length;
1068
- this.filteredSnvDataLength = dataHolder.filteredSnvData.length;
1069
- this.snvDataLengthAll = snvDataLengthAll;
1070
- this.cnvMaxValue = dataHolder.cnvGainMaxValue;
1071
- this.cnvMinValue = dataHolder.cnvLossMaxValue;
1072
- this.cappedCnvMaxAbsValue = dataHolder.cappedCnvMaxAbsValue;
1073
- this.negativePercentile = dataHolder.percentileNegative;
1074
- this.positivePercentile = dataHolder.percentilePositive;
1075
- this.invalidDataInfo = dataHolder.invalidDataInfo;
1076
- this.canShowMutationWaterfallPlot = dataHolder.hasWaterfallEligibleChromosome;
1077
- this.hasMutationFractionData = dataHolder.hasMutationFractionData;
1078
- }
1079
- getElements(ringType) {
1080
- switch (ringType) {
1081
- case 0 /* CHROMOSOME */:
1082
- return this.rings.chromosomesRing ? this.rings.chromosomesRing.elements : [];
1083
- case 1 /* LABEL */:
1084
- return this.rings.labelsRing.elementsToDisplay;
1085
- case 2 /* NONEXONICSNV */:
1086
- return this.rings.nonExonicArcRing ? this.rings.nonExonicArcRing.elements : [];
1087
- case 3 /* SNV */:
1088
- return this.rings.snvArcRing ? this.rings.snvArcRing.elements : [];
1089
- case 5 /* CNV */:
1090
- return this.rings.cnvArcRing ? this.rings.cnvArcRing.elements : [];
1091
- case 6 /* LOH */:
1092
- return this.rings.lohArcRing ? this.rings.lohArcRing.elements : [];
1093
- case 4 /* MUTATION_WATERFALL */:
1094
- return this.rings.mutationWaterfallRing ? this.rings.mutationWaterfallRing.elements : [];
1095
- default:
1096
- throw new Error(`ringType ${ringType} not defined`);
1097
- }
1098
- }
1099
- getCollisions(ringType) {
1100
- if (ringType == 1 /* LABEL */) {
1101
- return this.rings.labelsRing.collisions;
1102
- } else {
1103
- return void 0;
1104
- }
1105
- }
1106
- calculateLegendHeight(legend) {
1107
- const rawHeight = this.settings.legend.rowHeight;
1108
- return rawHeight * legend.legendCount();
1109
- }
1110
- };
1111
-
1112
- // plots/disco/ring/Ring.ts
1113
- var Ring = class {
1114
- constructor(innerRadius, width, elements) {
1115
- this.innerRadius = innerRadius;
1116
- this.outerRadius = innerRadius + width;
1117
- this.width = width;
1118
- this.elements = elements;
1119
- }
1120
- };
1121
-
1122
- // plots/disco/label/MLabel.ts
1123
- var MLabel = class _MLabel {
1124
- /**
1125
- * The Singleton's constructor should always be private to prevent direct
1126
- * construction calls with the `new` operator.
1127
- */
1128
- constructor() {
1129
- const mlabel = {};
1130
- for (const key in mclass) {
1131
- mlabel[mclass[key].label] = mclass[key];
1132
- mlabel[key] = mclass[key];
1133
- }
1134
- this.mlabel = mlabel;
1135
- }
1136
- /**
1137
- * The static method that controls the access to the singleton instance.
1138
- *
1139
- * This implementation let you subclass the Singleton class while keeping
1140
- * just one instance of each subclass around.
1141
- */
1142
- static getInstance() {
1143
- if (!_MLabel.instance) {
1144
- _MLabel.instance = new _MLabel();
1145
- }
1146
- return _MLabel.instance;
1147
- }
1148
- };
1149
-
1150
- // plots/disco/snv/SnvLegendElement.ts
1151
- var SnvLegendElement = class {
1152
- constructor(snvType, color, count) {
1153
- this.snvType = snvType;
1154
- this.color = color;
1155
- this.count = count;
1156
- }
1157
- };
1158
-
1159
- // plots/disco/snv/SnvArcsMapper.ts
1160
- var SnvArcsMapper = class {
1161
- constructor(svnInnerRadius, svnWidth, sampleName, reference) {
1162
- this.snvClassMap = /* @__PURE__ */ new Map();
1163
- this.svnInnerRadius = svnInnerRadius;
1164
- this.svnWidth = svnWidth;
1165
- this.sampleName = sampleName;
1166
- this.reference = reference;
1167
- this.bpx = Math.floor(this.reference.totalSize / (this.reference.totalChromosomesAngle * svnInnerRadius));
1168
- this.onePxArcAngle = 1 / svnInnerRadius;
1169
- }
1170
- map(exonicSnvDataMap) {
1171
- const snvArray = [];
1172
- for (const angle of exonicSnvDataMap.keys()) {
1173
- const array = exonicSnvDataMap.get(angle);
1174
- if (array) {
1175
- const arraySize = array.length;
1176
- for (let i = 0; i < array.length; i++) {
1177
- const data = array[i];
1178
- const snvLegendElement = this.snvClassMap.get(data.mClass);
1179
- if (snvLegendElement) {
1180
- this.snvClassMap.set(data.mClass, this.createSnvLegend(data.mClass, ++snvLegendElement.count));
1181
- } else {
1182
- this.snvClassMap.set(data.mClass, this.createSnvLegend(data.mClass, 1));
1183
- }
1184
- const startAngle = angle;
1185
- const endAngle = angle + this.onePxArcAngle;
1186
- const mLabel = MLabel.getInstance().mlabel ? MLabel.getInstance().mlabel[data.mClass] : void 0;
1187
- const arc = {
1188
- startAngle,
1189
- endAngle,
1190
- innerRadius: this.svnInnerRadius + i * this.svnWidth / arraySize,
1191
- outerRadius: this.svnInnerRadius + (i + 1) * this.svnWidth / arraySize,
1192
- color: mLabel.color,
1193
- text: data.gene,
1194
- dataClass: mLabel.label,
1195
- mname: data.mname,
1196
- chr: data.chr,
1197
- pos: data.position,
1198
- vafs: data.vafs,
1199
- sampleName: [data.sampleName]
1200
- };
1201
- snvArray.push(arc);
1202
- }
1203
- }
1204
- }
1205
- return snvArray;
1206
- }
1207
- createSnvLegend(dataClass, count) {
1208
- const mClass = MLabel.getInstance().mlabel[dataClass];
1209
- return new SnvLegendElement(mClass.label, mClass.color, count);
1210
- }
1211
- };
1212
-
1213
- // plots/disco/cnv/CnvLegend.ts
1214
- var CnvLegend = class {
1215
- constructor(text, cnvType, color, value) {
1216
- this.text = text;
1217
- this.cnvType = cnvType;
1218
- this.color = color;
1219
- this.value = value;
1220
- }
1221
- };
1222
-
1223
- // plots/disco/cnv/CnvColorProvider.ts
1224
- var CnvColorProvider = class {
1225
- static getColor(value, settings, cnvMaxPercentileAbs = 0) {
1226
- const cnv = settings.cnv;
1227
- const gainCapped = settings.Disco.cnvRenderingType == "heatmap" /* heatmap */ ? settings.Disco.cnvCapping : cnvMaxPercentileAbs;
1228
- const lossCapped = settings.Disco.cnvRenderingType == "heatmap" /* heatmap */ ? -1 * settings.Disco.cnvCapping : -1 * cnvMaxPercentileAbs;
1229
- if (value < lossCapped) {
1230
- return cnv.cappedLossColor;
1231
- } else if (value >= lossCapped && value <= 0) {
1232
- return cnv.lossColor;
1233
- } else if (value > 0 && value <= gainCapped) {
1234
- return cnv.ampColor;
1235
- } else {
1236
- return cnv.cappedAmpColor;
1237
- }
1238
- }
1239
- };
1240
-
1241
- // plots/disco/cnv/CnvArcsMapper.ts
1242
- var CnvArcsMapper = class {
1243
- constructor(cnvInnerRadius, cnvWidth, settings, sampleName, reference, cnvMaxValue = 0, cnvMinValue = 0, cnvMaxAbsValue = 0, cnvAbsPercentile = 0, cnvUnit = "", cnvRenderingType) {
1244
- this.cnvClassMap = /* @__PURE__ */ new Map();
1245
- this.cnvInnerRadius = cnvInnerRadius;
1246
- this.cnvWidth = cnvWidth;
1247
- this.settings = settings;
1248
- this.sampleName = sampleName;
1249
- this.reference = reference;
1250
- this.cnvMaxValue = cnvMaxValue;
1251
- this.cnvMinValue = cnvMinValue;
1252
- this.cnvMaxAbsValue = cnvMaxAbsValue;
1253
- this.cnvAbsPercentile = cnvAbsPercentile;
1254
- this.cnvUnit = cnvUnit;
1255
- this.cnvRenderingType = cnvRenderingType;
1256
- this.gainCapped = Math.min(cnvAbsPercentile, this.settings.Disco.cnvCapping);
1257
- this.lossCapped = -1 * Math.min(cnvAbsPercentile, this.settings.Disco.cnvCapping);
1258
- this.lossOnly = cnvMaxValue <= 0;
1259
- this.gainOnly = cnvMinValue >= 0;
1260
- this.onePxArcAngle = 1 / this.cnvInnerRadius;
1261
- const gain = new CnvLegend(
1262
- "Max",
1263
- cnvMaxValue > 0 ? 1 /* Gain */ : 0 /* Loss */,
1264
- this.getColor(cnvMaxValue),
1265
- cnvMaxValue
1266
- );
1267
- const loss = new CnvLegend(
1268
- "Min",
1269
- cnvMinValue > 0 ? 1 /* Gain */ : 0 /* Loss */,
1270
- this.getColor(cnvMinValue),
1271
- cnvMinValue
1272
- );
1273
- const cap = new CnvLegend(
1274
- "Capping",
1275
- 0 /* Loss */,
1276
- this.getColor(cnvMinValue > 0 ? cnvMinValue : cnvMaxValue),
1277
- this.settings.Disco.cnvCapping
1278
- );
1279
- this.cnvClassMap.set(1 /* Gain */, gain);
1280
- this.cnvClassMap.set(0 /* Loss */, loss);
1281
- this.cnvClassMap.set(2 /* Cap */, cap);
1282
- }
1283
- map(arcData) {
1284
- const arcs = [];
1285
- let itdCount = 0;
1286
- arcData.forEach((data) => {
1287
- let startAngle = this.calculateStartAngle(data);
1288
- let endAngle = this.calculateEndAngle(data);
1289
- if (startAngle === null || endAngle === null) return;
1290
- if (endAngle - startAngle < this.onePxArcAngle) {
1291
- const restAngle = this.onePxArcAngle - (endAngle - startAngle);
1292
- startAngle = startAngle - restAngle / 2;
1293
- endAngle = endAngle + restAngle / 2;
1294
- }
1295
- const isItd = data.dt == dtitd;
1296
- if (isItd) itdCount++;
1297
- const color = isItd ? mclass[mclassitd].color : this.getColor(data.value);
1298
- const innerRadius = isItd ? this.cnvInnerRadius : this.calculateInnerRadius(data);
1299
- const outerRadius = isItd ? this.cnvInnerRadius + this.cnvWidth : this.calculateOuterRadius(data);
1300
- const arc = {
1301
- startAngle,
1302
- endAngle,
1303
- innerRadius,
1304
- outerRadius,
1305
- color,
1306
- dt: data.dt,
1307
- dataClass: data.mClass,
1308
- text: data.gene,
1309
- chr: data.chr,
1310
- start: data.start,
1311
- stop: data.stop,
1312
- value: data.value,
1313
- unit: this.cnvUnit,
1314
- sampleName: [this.sampleName]
1315
- };
1316
- arcs.push(arc);
1317
- });
1318
- if (itdCount) {
1319
- this.cnvClassMap.set(4 /* ITD */, new CnvLegend("ITD", 4 /* ITD */, mclass[mclassitd].color, itdCount));
1320
- }
1321
- return arcs;
1322
- }
1323
- calculateStartAngle(data) {
1324
- const index = this.reference.chromosomesOrder.indexOf(data.chr);
1325
- if (index == -1) return null;
1326
- const chromosome = this.reference.chromosomes[index];
1327
- return chromosome.startAngle + (chromosome.endAngle - chromosome.startAngle) * (Number(data.start) / chromosome.size);
1328
- }
1329
- calculateEndAngle(data) {
1330
- const index = this.reference.chromosomesOrder.indexOf(data.chr);
1331
- const chromosome = this.reference.chromosomes[index];
1332
- return chromosome.startAngle + (chromosome.endAngle - chromosome.startAngle) * (Number(data.stop) / chromosome.size);
1333
- }
1334
- getColor(value) {
1335
- return CnvColorProvider.getColor(value, this.settings, this.cnvAbsPercentile);
1336
- }
1337
- calculateInnerRadius(data) {
1338
- if (this.cnvRenderingType == "heatmap" /* heatmap */) {
1339
- return this.cnvInnerRadius;
1340
- }
1341
- if (this.gainOnly) {
1342
- return this.cnvInnerRadius;
1343
- }
1344
- if (this.lossOnly) {
1345
- const outerRadius = this.cnvInnerRadius + this.cnvWidth;
1346
- return outerRadius + DataMapper.capMinValue(
1347
- this.cnvWidth * DataMapper.capMaxValue(data.value, this.gainCapped, this.lossCapped) / this.cnvAbsPercentile
1348
- );
1349
- }
1350
- const centerRadius = this.cnvInnerRadius + this.cnvWidth / 2;
1351
- if (Math.sign(data.value) == 1) {
1352
- return centerRadius;
1353
- }
1354
- if (Math.sign(data.value) == -1) {
1355
- return centerRadius + DataMapper.capMinValue(
1356
- DataMapper.capMaxValue(data.value, this.gainCapped, this.lossCapped) / this.cnvAbsPercentile * (this.cnvWidth / 2)
1357
- );
1358
- }
1359
- return 1;
1360
- }
1361
- calculateOuterRadius(data) {
1362
- const maxOuterRadius = this.cnvInnerRadius + this.cnvWidth;
1363
- if (this.cnvRenderingType == "heatmap" /* heatmap */) {
1364
- return maxOuterRadius;
1365
- }
1366
- if (this.gainOnly) {
1367
- return this.cnvInnerRadius + DataMapper.capMinValue(
1368
- this.cnvWidth * DataMapper.capMaxValue(data.value, this.gainCapped, this.lossCapped) / this.cnvAbsPercentile
1369
- );
1370
- }
1371
- if (this.lossOnly) {
1372
- return maxOuterRadius;
1373
- }
1374
- const centerRadius = this.cnvInnerRadius + this.cnvWidth / 2;
1375
- if (Math.sign(data.value) == 1) {
1376
- return centerRadius + DataMapper.capMinValue(
1377
- DataMapper.capMaxValue(data.value, this.gainCapped, this.lossCapped) / this.cnvMaxAbsValue * (this.cnvWidth / 2)
1378
- );
1379
- }
1380
- if (Math.sign(data.value) == -1) {
1381
- return centerRadius;
1382
- }
1383
- return 1;
1384
- }
1385
- };
1386
-
1387
- // plots/disco/label/Line.ts
1388
- var Line = class {
1389
- constructor(points, color) {
1390
- this.points = new Array();
1391
- this.points = points;
1392
- this.color = color;
1393
- }
1394
- };
1395
-
1396
- // plots/disco/label/LabelFactory.ts
1397
- var LabelFactory = class {
1398
- static createLabel(startAngle, endAngle, innerRadius, outerRadius, value, gene, color, dataClass, chr, position, isPrioritized = false, labelsToLinesGap, mutationTooltip, fusionTooltip) {
1399
- const angle = (startAngle + endAngle) / 2;
1400
- const ccAngle = angle - Math.PI / 2;
1401
- const transform = `rotate(${angle * 180 / Math.PI - 90}) translate(${outerRadius})${angle > Math.PI ? "rotate(180)" : ""}`;
1402
- const textAnchor = angle > Math.PI ? "end" : "";
1403
- const r0 = innerRadius;
1404
- const r1 = outerRadius - labelsToLinesGap;
1405
- const points = [];
1406
- const point0 = {
1407
- x: r0 * Math.cos(ccAngle),
1408
- y: r0 * Math.sin(ccAngle)
1409
- };
1410
- const point1 = {
1411
- x: r1 * Math.cos(ccAngle),
1412
- y: r1 * Math.sin(ccAngle)
1413
- };
1414
- points.push(point0);
1415
- points.push(point1);
1416
- const line = new Line(points, color);
1417
- const label = {
1418
- startAngle,
1419
- endAngle,
1420
- innerRadius,
1421
- outerRadius,
1422
- angle,
1423
- value,
1424
- text: gene,
1425
- color,
1426
- transform,
1427
- textAnchor,
1428
- ccAngle,
1429
- line,
1430
- isPrioritized,
1431
- start: position,
1432
- stop: position,
1433
- chr,
1434
- mutationsTooltip: mutationTooltip ? [mutationTooltip] : void 0,
1435
- fusionTooltip: fusionTooltip ? [fusionTooltip] : void 0
1436
- };
1437
- return label;
1438
- }
1439
- static createMovedLabel(element, overlap) {
1440
- const startAngle = element.startAngle + overlap;
1441
- const endAngle = element.endAngle + overlap;
1442
- const angle = (startAngle + endAngle) / 2;
1443
- const ccAngle = angle - Math.PI / 2;
1444
- const r0 = element.innerRadius;
1445
- const r1 = element.outerRadius - 2;
1446
- const dr = (r1 - r0) / 3;
1447
- const cos0 = Math.cos(element.ccAngle);
1448
- const sin0 = Math.sin(element.ccAngle);
1449
- const cos1 = Math.cos(element.ccAngle + overlap);
1450
- const sin1 = Math.sin(element.ccAngle + overlap);
1451
- const points = [];
1452
- const point0 = {
1453
- x: r0 * cos0,
1454
- y: r0 * sin0
1455
- };
1456
- const point1 = {
1457
- x: (r0 + dr) * cos0,
1458
- y: (r0 + dr) * sin0
1459
- };
1460
- const point2 = {
1461
- x: (r0 + 2 * dr) * cos1,
1462
- y: (r0 + 2 * dr) * sin1
1463
- };
1464
- const point3 = {
1465
- x: (r0 + 3 * dr) * cos1,
1466
- y: (r0 + 3 * dr) * sin1
1467
- };
1468
- points.push(point0);
1469
- points.push(point1);
1470
- points.push(point2);
1471
- points.push(point3);
1472
- const line = new Line(points, element.color);
1473
- const transform = "rotate(" + (angle * 180 / Math.PI - 90) + ")translate(" + element.outerRadius + ")" + (angle > Math.PI ? "rotate(180)" : "");
1474
- const textAnchor = angle > Math.PI ? "end" : "";
1475
- const color = element.mutationsTooltip ? element.mutationsTooltip[0].color : element.fusionTooltip ? element.fusionTooltip[0].color : void 0;
1476
- const label = {
1477
- startAngle,
1478
- endAngle,
1479
- innerRadius: element.innerRadius,
1480
- outerRadius: element.outerRadius,
1481
- angle,
1482
- value: element.value,
1483
- text: element.text,
1484
- transform,
1485
- textAnchor,
1486
- ccAngle,
1487
- color,
1488
- line,
1489
- isPrioritized: element.isPrioritized,
1490
- start: element.start,
1491
- stop: element.stop,
1492
- chr: element.chr,
1493
- mutationsTooltip: element.mutationsTooltip,
1494
- fusionTooltip: element.fusionTooltip,
1495
- cnvTooltip: element.cnvTooltip
1496
- };
1497
- return label;
1498
- }
1499
- };
1500
-
1501
- // plots/disco/label/LabelsMapper.ts
1502
- var LabelsMapper = class {
1503
- constructor(settings, sampleName, reference, cnvMaxPercentileAbs = 0) {
1504
- this.labelMap = /* @__PURE__ */ new Map();
1505
- this.settings = settings;
1506
- this.sampleName = sampleName;
1507
- this.reference = reference;
1508
- this.cnvMaxPercentileAbs = cnvMaxPercentileAbs;
1509
- }
1510
- map(data, cnvData = []) {
1511
- const innerRadius = this.settings.rings.labelLinesInnerRadius;
1512
- const outerRadius = innerRadius + this.settings.rings.labelsToLinesDistance;
1513
- data.forEach((data2) => {
1514
- if (data2.dt == dtsnvindel) {
1515
- const startAngle = this.calculateStartAngle(data2.chr, data2.position);
1516
- const endAngle = this.calculateEndAngle(data2.chr, data2.position);
1517
- if (startAngle === null || endAngle === null) return;
1518
- const mLabel = MLabel.getInstance().mlabel ? MLabel.getInstance().mlabel[data2.mClass] : void 0;
1519
- this.addLabelOrMutation(
1520
- data2,
1521
- data2.gene,
1522
- data2.mname,
1523
- startAngle,
1524
- endAngle,
1525
- innerRadius,
1526
- outerRadius,
1527
- mLabel.color,
1528
- mLabel.label
1529
- );
1530
- }
1531
- if (data2.dt == dtfusionrna) {
1532
- const color = FusionColorProvider.getColor(data2.chrA, data2.chrB);
1533
- if (data2.geneA) {
1534
- const startAngleSource = this.calculateStartAngle(data2.chrA, data2.posA);
1535
- const endAngleSource = this.calculateEndAngle(data2.chrA, data2.posA);
1536
- if (startAngleSource === null || endAngleSource === null) return;
1537
- this.addLabelOrFusion(
1538
- data2,
1539
- data2.geneA,
1540
- data2.posA,
1541
- data2.chrA,
1542
- startAngleSource,
1543
- endAngleSource,
1544
- innerRadius,
1545
- outerRadius,
1546
- color
1547
- );
1548
- }
1549
- if (data2.geneB && data2.geneA != data2.geneB) {
1550
- const startAngleTarget = this.calculateStartAngle(data2.chrB, data2.posB);
1551
- const endAngleTarget = this.calculateEndAngle(data2.chrB, data2.posB);
1552
- if (startAngleTarget == null || endAngleTarget == null) return;
1553
- this.addLabelOrFusion(
1554
- data2,
1555
- data2.geneB,
1556
- data2.posB,
1557
- data2.chrB,
1558
- startAngleTarget,
1559
- endAngleTarget,
1560
- innerRadius,
1561
- outerRadius,
1562
- color
1563
- );
1564
- }
1565
- }
1566
- });
1567
- const labelsArray = Array.from(this.labelMap.values());
1568
- labelsArray.forEach((label) => {
1569
- cnvData.forEach((cnv) => {
1570
- if ((cnv.dt == dtcnv || cnv.dt == dtitd) && label.chr == cnv.chr && label.stop >= cnv.start && cnv.stop >= label.start) {
1571
- const mutation = {
1572
- dt: cnv.dt,
1573
- value: cnv.value,
1574
- color: cnv.dt == dtitd ? mclass[mclassitd].color : CnvColorProvider.getColor(cnv.value, this.settings, this.cnvMaxPercentileAbs),
1575
- chr: cnv.chr,
1576
- start: cnv.start,
1577
- stop: cnv.stop
1578
- };
1579
- if (label.cnvTooltip) {
1580
- label.cnvTooltip.push(mutation);
1581
- } else {
1582
- label.cnvTooltip = [];
1583
- label.cnvTooltip.push(mutation);
1584
- }
1585
- }
1586
- });
1587
- });
1588
- return Array.from(this.labelMap.values());
1589
- }
1590
- addLabelOrMutation(data, gene, mname, startAngle, endAngle, innerRadius, outerRadius, color, dataClass) {
1591
- const label = this.labelMap.get(gene);
1592
- const mutation = {
1593
- mname,
1594
- color,
1595
- dataClass,
1596
- chr: data.chr,
1597
- position: data.position,
1598
- vafs: data.vafs
1599
- };
1600
- if (!label) {
1601
- this.labelMap.set(
1602
- gene,
1603
- LabelFactory.createLabel(
1604
- startAngle,
1605
- endAngle,
1606
- innerRadius,
1607
- outerRadius,
1608
- data.value,
1609
- gene,
1610
- color,
1611
- dataClass,
1612
- data.chr,
1613
- data.position,
1614
- data.isPrioritized,
1615
- this.settings.rings.labelsToLinesGap,
1616
- mutation
1617
- )
1618
- );
1619
- } else {
1620
- if (label.mutationsTooltip) {
1621
- label.start = Math.min(label.start, data.position);
1622
- label.stop = Math.max(label.stop, data.position);
1623
- label.mutationsTooltip.push(mutation);
1624
- } else {
1625
- label.mutationsTooltip = [];
1626
- label.start = Math.min(label.start, data.position);
1627
- label.stop = Math.max(label.stop, data.position);
1628
- label.mutationsTooltip.push(mutation);
1629
- }
1630
- }
1631
- }
1632
- addLabelOrFusion(data, gene, position, chr, startAngle, endAngle, innerRadius, outerRadius, color) {
1633
- const label = this.labelMap.get(gene);
1634
- const fusionTooltip = {
1635
- color,
1636
- chrA: data.chrA,
1637
- chrB: data.chrB,
1638
- posA: data.posA,
1639
- posB: data.posB,
1640
- geneA: data.geneA,
1641
- geneB: data.geneB,
1642
- strandA: data.strandA,
1643
- strandB: data.strandB
1644
- };
1645
- if (!label) {
1646
- this.labelMap.set(
1647
- gene,
1648
- LabelFactory.createLabel(
1649
- startAngle,
1650
- endAngle,
1651
- innerRadius,
1652
- outerRadius,
1653
- data.value,
1654
- gene,
1655
- color,
1656
- "Fusion transcript",
1657
- chr,
1658
- position,
1659
- data.isPrioritized,
1660
- this.settings.rings.labelsToLinesGap,
1661
- void 0,
1662
- fusionTooltip
1663
- )
1664
- );
1665
- } else {
1666
- if (label.fusionTooltip) {
1667
- label.start = Math.min(label.start, position);
1668
- label.stop = Math.max(label.stop, position);
1669
- label.fusionTooltip.push(fusionTooltip);
1670
- } else {
1671
- label.fusionTooltip = [];
1672
- label.start = Math.min(label.start, position);
1673
- label.stop = Math.max(label.stop, position);
1674
- label.fusionTooltip.push(fusionTooltip);
1675
- }
1676
- }
1677
- }
1678
- calculateStartAngle(chr, position) {
1679
- const index = this.reference.chromosomesOrder.findIndex((element) => element == chr);
1680
- if (index === -1) return null;
1681
- const chromosome = this.reference.chromosomes[index];
1682
- return chromosome.startAngle + (chromosome.endAngle - chromosome.startAngle) * (Number(position) / chromosome.size);
1683
- }
1684
- calculateEndAngle(chr, position) {
1685
- const index = this.reference.chromosomesOrder.findIndex((element) => element == chr);
1686
- if (index === -1) return null;
1687
- const chromosome = this.reference.chromosomes[index];
1688
- return chromosome.startAngle + (chromosome.endAngle - chromosome.startAngle) * (Number(position) / chromosome.size);
1689
- }
1690
- };
1691
-
1692
- // plots/disco/label/Labels.ts
1693
- var Labels = class extends Ring {
1694
- constructor(settings, elements, hasPrioritizedGenes) {
1695
- super(
1696
- settings.rings.labelLinesInnerRadius,
1697
- settings.rings.labelsToLinesDistance,
1698
- elements.sort((a, b) => {
1699
- return a.startAngle < b.startAngle ? -1 : a.startAngle > b.startAngle ? 1 : 0;
1700
- })
1701
- );
1702
- this.elementsToDisplay = [];
1703
- this.settings = settings;
1704
- this.hasPrioritizedGenes = hasPrioritizedGenes;
1705
- const circumference = 2 * Math.PI * (settings.rings.labelLinesInnerRadius + settings.rings.labelsToLinesDistance);
1706
- this.overlapAngle = this.settings.label.overlapAngleFactor * this.settings.label.fontSize / circumference;
1707
- this.calculateCollisions();
1708
- }
1709
- calculateCollisions() {
1710
- this.collisions = [];
1711
- let hasPrioritizedGenesList = [];
1712
- hasPrioritizedGenesList = this.elements.filter((label) => label.isPrioritized);
1713
- if (this.settings.label.prioritizeGeneLabelsByGeneSets) {
1714
- this.elementsToDisplay = this.getLabelsWithPrioritizedGenes(hasPrioritizedGenesList);
1715
- } else if (this.hasPrioritizedGenes) {
1716
- const prioritizedGenesList = this.elements.filter((label) => label.isPrioritized);
1717
- const filteredPrioritizedGenesList = this.getLabelsWithPrioritizedGenes(prioritizedGenesList);
1718
- const withoutPrioritizedGenesList = this.elements.filter((label) => !label.isPrioritized);
1719
- const combinedAndSortedList = [...withoutPrioritizedGenesList, ...filteredPrioritizedGenesList].sort(
1720
- (a, b) => a.startAngle - b.startAngle
1721
- );
1722
- this.elementsToDisplay = this.getAllLabels(combinedAndSortedList);
1723
- } else {
1724
- this.elementsToDisplay = this.getLabelsWithPrioritizedGenes(this.elements);
1725
- }
1726
- }
1727
- getLabelsWithPrioritizedGenes(elemenets) {
1728
- const filteredList = [];
1729
- let prev = { endAngle: 0 };
1730
- elemenets.forEach((element, index) => {
1731
- if (index == 0) {
1732
- filteredList.push(element);
1733
- prev = element;
1734
- } else {
1735
- const overlap = prev.endAngle - element.startAngle + this.overlapAngle;
1736
- if (overlap > 0 && overlap < this.settings.label.maxDeltaAngle) {
1737
- const labelCopy = LabelFactory.createMovedLabel(element, overlap);
1738
- filteredList?.push(labelCopy);
1739
- prev = labelCopy;
1740
- }
1741
- if (overlap <= 0) {
1742
- filteredList.push(element);
1743
- prev = element;
1744
- }
1745
- }
1746
- });
1747
- return filteredList;
1748
- }
1749
- getAllLabels(elemenets) {
1750
- const filteredList = [];
1751
- let prev = { endAngle: 0 };
1752
- const elemenetsLength = elemenets.length;
1753
- let lastCancerGeneLabelIndex = -1;
1754
- for (let index = 0; index < elemenets.length; index++) {
1755
- const element = elemenets[index];
1756
- if (element.isPrioritized) {
1757
- filteredList.push(element);
1758
- lastCancerGeneLabelIndex = index;
1759
- prev = element;
1760
- continue;
1761
- }
1762
- if (index == 0) {
1763
- if (elemenetsLength > 1) {
1764
- if (this.isElementOverlappingNextCancerGene(elemenets, lastCancerGeneLabelIndex, element, 0)) {
1765
- continue;
1766
- }
1767
- filteredList.push(element);
1768
- prev = element;
1769
- }
1770
- continue;
1771
- }
1772
- const prevOverlap = prev.endAngle - element.startAngle + this.overlapAngle;
1773
- if (prevOverlap > 0 && prevOverlap < this.settings.label.maxDeltaAngle) {
1774
- if (index == length - 1) {
1775
- filteredList.push(element);
1776
- continue;
1777
- }
1778
- if (this.isElementOverlappingNextCancerGene(elemenets, lastCancerGeneLabelIndex, element, prevOverlap)) {
1779
- continue;
1780
- }
1781
- const labelCopy = LabelFactory.createMovedLabel(element, prevOverlap);
1782
- this.collisions?.push(labelCopy);
1783
- filteredList.push(element);
1784
- prev = labelCopy;
1785
- }
1786
- if (prevOverlap <= 0) {
1787
- if (this.isElementOverlappingNextCancerGene(elemenets, lastCancerGeneLabelIndex, element, 0)) {
1788
- continue;
1789
- }
1790
- filteredList.push(element);
1791
- prev = element;
1792
- }
1793
- }
1794
- return filteredList;
1795
- }
1796
- isElementOverlappingNextCancerGene(elemenets, lastCancerGeneLabelIndex, element, prevOverlap) {
1797
- const nextLabelWithCancerGene = this.getNextLabelWithCancerGene(elemenets, lastCancerGeneLabelIndex);
1798
- if (nextLabelWithCancerGene) {
1799
- const nextOverlap = element.endAngle + prevOverlap - nextLabelWithCancerGene.startAngle + this.overlapAngle;
1800
- if (nextOverlap > 0) {
1801
- return true;
1802
- }
1803
- }
1804
- return false;
1805
- }
1806
- getNextLabelWithCancerGene(elemenets, lastCancerGeneLabelIndex) {
1807
- return elemenets.find((label, index) => label.isPrioritized && index > lastCancerGeneLabelIndex);
1808
- }
1809
- };
1810
-
1811
- // plots/disco/snv/NonExonicSnvArcsMapper.ts
1812
- var NonExonicSnvArcsMapper = class {
1813
- constructor(nonExonicInnerRadius, nonExonicWidht, sampleName, reference) {
1814
- this.nonExonicInnerRadius = nonExonicInnerRadius;
1815
- this.nonExonicWidht = nonExonicWidht;
1816
- this.sampleName = sampleName;
1817
- this.reference = reference;
1818
- this.onePxArcAngle = 1 / nonExonicInnerRadius;
1819
- }
1820
- map(arcData) {
1821
- const innerRadius = this.nonExonicInnerRadius;
1822
- const outerRadius = innerRadius + this.nonExonicWidht;
1823
- const arcs = [];
1824
- arcData.forEach((data) => {
1825
- const mLabel = MLabel.getInstance().mlabel ? MLabel.getInstance().mlabel[data.mClass] : void 0;
1826
- const startAngle = this.calculateStartAngle(data);
1827
- const endAngle = this.calculateEndAngle(data);
1828
- if (startAngle === null || endAngle === null) return;
1829
- const arc = {
1830
- startAngle,
1831
- endAngle,
1832
- innerRadius,
1833
- outerRadius,
1834
- color: mLabel.color,
1835
- text: data.gene,
1836
- dataClass: mLabel.label,
1837
- mname: data.mname,
1838
- chr: data.chr,
1839
- pos: data.position,
1840
- vafs: data.vafs,
1841
- sampleName: [data.sampleName]
1842
- };
1843
- arcs.push(arc);
1844
- });
1845
- return arcs;
1846
- }
1847
- calculateStartAngle(data) {
1848
- const index = this.reference.chromosomesOrder.indexOf(data.chr);
1849
- if (index === -1) return null;
1850
- const chromosome = this.reference.chromosomes[index];
1851
- return chromosome.startAngle + (chromosome.endAngle - chromosome.startAngle) * (Number(data.position) / chromosome.size) - this.onePxArcAngle;
1852
- }
1853
- calculateEndAngle(data) {
1854
- const index = this.reference.chromosomesOrder.indexOf(data.chr);
1855
- const chromosome = this.reference.chromosomes[index];
1856
- return this.onePxArcAngle + chromosome.startAngle + (chromosome.endAngle - chromosome.startAngle) * (Number(data.position) / chromosome.size);
1857
- }
1858
- };
1859
-
1860
- // plots/disco/loh/GradientColorProvider.ts
1861
- var GradientColorProvider = class {
1862
- static provide(value) {
1863
- const clampedValue = Math.min(Math.max(value, 0), 1);
1864
- const colorValue = Math.round(clampedValue * 255);
1865
- return `rgb(${colorValue}, ${colorValue}, ${colorValue})`;
1866
- }
1867
- };
1868
-
1869
- // plots/disco/loh/LohArcMapper.ts
1870
- var LohArcMapper = class {
1871
- constructor(lohInnerRadius, lohWidth, sampleName, reference) {
1872
- this.lohInnerRadius = lohInnerRadius;
1873
- this.lohWidth = lohWidth;
1874
- this.sampleName = sampleName;
1875
- this.reference = reference;
1876
- }
1877
- map(arcData) {
1878
- const arcs = [];
1879
- arcData.forEach((data) => {
1880
- const startAngle = this.calculateStartAngle(data);
1881
- const endAngle = this.calculateEndAngle(data);
1882
- if (startAngle === null || endAngle === null) return;
1883
- const innerRadius = this.lohInnerRadius;
1884
- const outerRadius = innerRadius + this.lohWidth;
1885
- const color = GradientColorProvider.provide(data.segmean);
1886
- const arc = {
1887
- startAngle,
1888
- endAngle,
1889
- innerRadius,
1890
- outerRadius,
1891
- color,
1892
- text: data.gene,
1893
- chr: data.chr,
1894
- start: data.start,
1895
- stop: data.stop,
1896
- value: data.segmean
1897
- };
1898
- arcs.push(arc);
1899
- });
1900
- return arcs;
1901
- }
1902
- calculateStartAngle(data) {
1903
- const index = this.reference.chromosomesOrder.indexOf(data.chr);
1904
- if (index === -1) return null;
1905
- const chromosome = this.reference.chromosomes[index];
1906
- return chromosome.startAngle + (chromosome.endAngle - chromosome.startAngle) * (Number(data.start) / chromosome.size);
1907
- }
1908
- calculateEndAngle(data) {
1909
- const index = this.reference.chromosomesOrder.indexOf(data.chr);
1910
- const chromosome = this.reference.chromosomes[index];
1911
- return chromosome.startAngle + (chromosome.endAngle - chromosome.startAngle) * (Number(data.stop) / chromosome.size);
1912
- }
1913
- };
1914
-
1915
- // plots/disco/ring/Rings.ts
1916
- var Rings = class {
1917
- constructor(labelsRing, chromosomesRing, nonExonicArcRing, snvArcRing, cnvArcRing, lohArcRing, mutationWaterfallRing) {
1918
- this.labelsRing = labelsRing;
1919
- this.chromosomesRing = chromosomesRing;
1920
- this.nonExonicArcRing = nonExonicArcRing;
1921
- this.snvArcRing = snvArcRing;
1922
- this.cnvArcRing = cnvArcRing;
1923
- this.lohArcRing = lohArcRing;
1924
- this.mutationWaterfallRing = mutationWaterfallRing;
1925
- }
1926
- };
1927
-
1928
- // plots/disco/waterfall/MutationWaterfallMapper.ts
1929
- var MutationWaterfallMapper = class {
1930
- constructor(innerRadius, ringWidth, reference, logRange, color = "#4d4d4d") {
1931
- this.innerRadius = innerRadius;
1932
- this.ringWidth = ringWidth;
1933
- this.reference = reference;
1934
- this.logRange = logRange;
1935
- this.color = color;
1936
- }
1937
- map(data = []) {
1938
- if (!data.length) return [];
1939
- const min = this.logRange?.min ?? 0;
1940
- const max = this.logRange?.max ?? min + 1;
1941
- const span = max - min || 1;
1942
- const points = [];
1943
- for (const datum of data) {
1944
- const chrIndex = this.reference.chromosomesOrder.indexOf(datum.chr);
1945
- if (chrIndex === -1) continue;
1946
- const chromosome = this.reference.chromosomes[chrIndex];
1947
- const chrAngleSpan = chromosome.endAngle - chromosome.startAngle;
1948
- const relPos = chromosome.size > 0 ? datum.position / chromosome.size : 0;
1949
- const angle = chromosome.startAngle + chrAngleSpan * relPos;
1950
- const normalized = Math.max(0, Math.min(1, (datum.logDistance - min) / span));
1951
- const radius = this.innerRadius + this.ringWidth * normalized;
1952
- points.push({
1953
- startAngle: angle,
1954
- endAngle: angle,
1955
- innerRadius: radius,
1956
- outerRadius: radius,
1957
- text: chromosome.text,
1958
- color: this.color,
1959
- chr: datum.chr,
1960
- position: datum.position,
1961
- logDistance: datum.logDistance,
1962
- ringInnerRadius: this.innerRadius,
1963
- ringWidth: this.ringWidth,
1964
- rangeMin: min,
1965
- rangeMax: max
1966
- });
1967
- }
1968
- return points;
1969
- }
1970
- };
1971
-
1972
- // plots/disco/viewmodel/ViewModelProvider.ts
1973
- var ViewModelProvider = class {
1974
- constructor(settings, dataMapper, reference, sampleName, genesetName, discoInteractions) {
1975
- this.nonExonicArcRing = void 0;
1976
- this.settings = settings;
1977
- this.dataMapper = dataMapper;
1978
- this.reference = reference;
1979
- this.sampleName = sampleName;
1980
- this.genesetName = genesetName;
1981
- this.discoInteractions = discoInteractions;
1982
- }
1983
- map(data) {
1984
- const dataHolder = this.dataMapper.map(data);
1985
- let labelsRing;
1986
- if (this.settings.Disco.showGeneNames) {
1987
- const labelsMapper = new LabelsMapper(
1988
- this.settings,
1989
- this.sampleName,
1990
- this.reference,
1991
- dataHolder.cnvMaxPercentileAbs
1992
- );
1993
- const labelsData = labelsMapper.map(dataHolder.labelData, dataHolder.cnvData);
1994
- labelsRing = new Labels(this.settings, labelsData, dataHolder.hasPrioritizedGenes);
1995
- } else {
1996
- labelsRing = new Labels(this.settings, [], false);
1997
- }
1998
- const chromosomesRing = new Ring(
1999
- this.settings.rings.chromosomeInnerRadius,
2000
- this.settings.rings.chromosomeWidth,
2001
- this.reference.chromosomes
2002
- );
2003
- const nonExonicSnvArcsMapper = new NonExonicSnvArcsMapper(
2004
- dataHolder.nonExonicInnerRadius,
2005
- this.settings.rings.nonExonicRingWidth,
2006
- this.sampleName,
2007
- this.reference
2008
- );
2009
- const nonExonicData = nonExonicSnvArcsMapper.map(dataHolder.nonExonicSnvData);
2010
- if (nonExonicData.length > 0) {
2011
- this.nonExonicArcRing = new Ring(
2012
- dataHolder.nonExonicInnerRadius,
2013
- this.settings.rings.nonExonicRingWidth,
2014
- nonExonicData
2015
- );
2016
- }
2017
- this.snvArcsMapper = new SnvArcsMapper(
2018
- dataHolder.snvInnerRadius,
2019
- this.settings.rings.snvRingWidth,
2020
- this.sampleName,
2021
- this.reference
2022
- );
2023
- const snvData = this.snvArcsMapper.map(dataHolder.snvRingDataMap);
2024
- if (snvData.length > 0) {
2025
- this.snvArcRing = new Ring(dataHolder.snvInnerRadius, this.settings.rings.snvRingWidth, snvData);
2026
- }
2027
- const lohMapper = new LohArcMapper(
2028
- dataHolder.lohInnerRadius,
2029
- this.settings.rings.lohRingWidth,
2030
- this.sampleName,
2031
- this.reference
2032
- );
2033
- const lohData = lohMapper.map(dataHolder.lohData);
2034
- if (lohData.length > 0) {
2035
- this.lohArcRing = new Ring(dataHolder.lohInnerRadius, this.settings.rings.lohRingWidth, lohData);
2036
- }
2037
- this.cnvArcsMapper = new CnvArcsMapper(
2038
- dataHolder.cnvInnerRadius,
2039
- this.settings.rings.cnvRingWidth,
2040
- this.settings,
2041
- this.sampleName,
2042
- this.reference,
2043
- dataHolder.percentilePositive,
2044
- dataHolder.percentileNegative,
2045
- dataHolder.cappedCnvMaxAbsValue,
2046
- dataHolder.cnvMaxPercentileAbs,
2047
- this.settings.cnv.unit,
2048
- this.settings.Disco.cnvRenderingType
2049
- );
2050
- const cnvData = this.cnvArcsMapper.map(dataHolder.cnvData);
2051
- if (cnvData.length > 0) {
2052
- this.cnvArcRing = new Ring(dataHolder.cnvInnerRadius, this.settings.rings.cnvRingWidth, cnvData);
2053
- }
2054
- if (this.settings.Disco.mutationWaterfallPlot && dataHolder.mutationWaterfallData?.length && dataHolder.mutationWaterfallInnerRadius !== void 0 && //Added this check to prevent TypeScript error "mutationWaterfallInnerRadius might be undefined"
2055
- (dataHolder.mutationWaterfallInnerRadius ?? 0) > 0 && dataHolder.mutationWaterfallLogRange) {
2056
- const mutationWaterfallMapper = new MutationWaterfallMapper(
2057
- dataHolder.mutationWaterfallInnerRadius,
2058
- this.settings.rings.mutationWaterfallRingWidth,
2059
- this.reference,
2060
- dataHolder.mutationWaterfallLogRange,
2061
- this.settings.Disco.mutationWaterfallColor || "#4d4d4d"
2062
- );
2063
- const waterfallData = mutationWaterfallMapper.map(dataHolder.mutationWaterfallData);
2064
- if (waterfallData.length > 0) {
2065
- this.mutationWaterfallRing = new Ring(
2066
- dataHolder.mutationWaterfallInnerRadius,
2067
- this.settings.rings.mutationWaterfallRingWidth,
2068
- waterfallData
2069
- );
2070
- }
2071
- }
2072
- const fusionMapper = new FusionMapper(dataHolder.fusionRadius, this.sampleName, this.reference);
2073
- const fusions = fusionMapper.map(dataHolder.fusionData);
2074
- let lohLegend;
2075
- if (this.settings.legend.lohLegendEnabled && dataHolder.lohData.length) {
2076
- lohLegend = new LohLegend(dataHolder.lohData.length);
2077
- }
2078
- const fusionLegendCounts = fusions.reduce(
2079
- (counts, fusion) => {
2080
- if (fusion.target && fusion.source.positionInChromosome.chromosome == fusion.target.positionInChromosome.chromosome)
2081
- counts.intrachromosomal++;
2082
- else counts.interchromosomal++;
2083
- return counts;
2084
- },
2085
- { interchromosomal: 0, intrachromosomal: 0 }
2086
- );
2087
- const legend = new Legend(
2088
- this.settings.legend.snvTitle,
2089
- this.settings.legend.cnvTitle,
2090
- this.settings.legend.lohTitle,
2091
- this.settings.legend.fusionTitle,
2092
- this.settings.Disco.cnvPercentile,
2093
- this.settings.Disco.cnvCutoffMode,
2094
- this.snvArcsMapper ? this.snvArcsMapper.snvClassMap : /* @__PURE__ */ new Map(),
2095
- this.cnvArcsMapper ? this.cnvArcsMapper.cnvClassMap : /* @__PURE__ */ new Map(),
2096
- this.settings.Disco.cnvRenderingType,
2097
- fusions.length > 0,
2098
- this.discoInteractions,
2099
- lohLegend,
2100
- this.settings.Disco.mutationWaterfallPlot && this.mutationWaterfallRing ? {
2101
- color: this.settings.Disco.mutationWaterfallColor || "#4d4d4d",
2102
- onColorChange: this.discoInteractions.onMutationWaterfallColorChange
2103
- } : void 0,
2104
- fusionLegendCounts,
2105
- dataHolder.cnvData.filter((event) => event.dt == dtcnv).length
2106
- );
2107
- const rings = new Rings(
2108
- labelsRing,
2109
- chromosomesRing,
2110
- this.nonExonicArcRing,
2111
- this.snvArcRing,
2112
- this.cnvArcRing,
2113
- this.lohArcRing,
2114
- this.mutationWaterfallRing
2115
- );
2116
- return new ViewModel(
2117
- this.settings,
2118
- rings,
2119
- legend,
2120
- fusions,
2121
- dataHolder,
2122
- this.genesetName,
2123
- data.filter((i) => i.dt == dtsnvindel).length
2124
- );
2125
- }
2126
- };
2127
-
2128
- // plots/disco/viewmodel/ViewModelMapper.ts
2129
- var ViewModelMapper = class _ViewModelMapper {
2130
- static {
2131
- this.snvClassLayer = {
2132
- M: "exonic",
2133
- E: "exonic",
2134
- F: "exonic",
2135
- N: "exonic",
2136
- S: "exonic",
2137
- D: "exonic",
2138
- I: "exonic",
2139
- P: "exonic",
2140
- L: "exonic",
2141
- Utr3: "exonic",
2142
- Utr5: "exonic",
2143
- ProteinAltering: "exonic",
2144
- mnv: "non-exonic",
2145
- ITD: "non-exonic",
2146
- insertion: "non-exonic",
2147
- deletion: "non-exonic",
2148
- Intron: "non-exonic",
2149
- X: "non-exonic",
2150
- noncoding: "non-exonic"
2151
- };
2152
- }
2153
- constructor(settings, discoInteractions) {
2154
- this.settings = JSON.parse(JSON.stringify(settings));
2155
- this.discoInteractions = discoInteractions;
2156
- }
2157
- applyRadius() {
2158
- const radius = this.settings.Disco.radius;
2159
- if (!radius) return;
2160
- const scale = radius / this.settings.rings.labelLinesInnerRadius;
2161
- this.settings.rings.labelLinesInnerRadius *= scale;
2162
- this.settings.rings.labelsToLinesDistance *= scale;
2163
- this.settings.rings.chromosomeInnerRadius *= scale;
2164
- }
2165
- static computeDynamicRadius(data) {
2166
- let ringCount = 0;
2167
- if (data.some((d) => d.dt == dtsnvindel)) ringCount++;
2168
- if (data.some((d) => d.dt == dtcnv || d.dt == dtitd)) ringCount++;
2169
- if (data.some((d) => d.dt == dtloh)) ringCount++;
2170
- if (ringCount <= 1) return 200;
2171
- if (ringCount == 2) return 250;
2172
- return 300;
2173
- }
2174
- map(opts) {
2175
- const chrSizes = opts.args.genome.majorchr;
2176
- const chromosomesOverride = {};
2177
- for (const chr of Object.keys(chrSizes)) {
2178
- if (!this.settings.Disco.hiddenChromosomes.includes(chr)) {
2179
- chromosomesOverride[chr] = chrSizes[chr];
2180
- }
2181
- }
2182
- const sampleName = opts.args.sampleName;
2183
- const genome = opts.args.genome;
2184
- const prioritizedGenes = genome?.geneset?.[0] ? genome.geneset[0].lst : [];
2185
- const genesetName = genome?.geneset?.[0] ? genome.geneset[0].name : "";
2186
- const data = opts.args.data;
2187
- if (this.settings.Disco.autoRadius) {
2188
- this.settings.Disco.radius = _ViewModelMapper.computeDynamicRadius(data);
2189
- }
2190
- this.applyRadius();
2191
- const reference = new Reference(this.settings, chrSizes, chromosomesOverride);
2192
- const dataMapper = new DataMapper(this.settings, reference, sampleName, prioritizedGenes);
2193
- return new ViewModelProvider(
2194
- this.settings,
2195
- dataMapper,
2196
- reference,
2197
- sampleName,
2198
- genesetName,
2199
- this.discoInteractions
2200
- ).map(data);
2201
- }
2202
- };
2203
-
2204
- // plots/disco/legend/LegendJSONMapper.ts
2205
- var LegendJSONMapper = class {
2206
- constructor(cappedCnvMaxAbsValue) {
2207
- this.cappedCnvMaxAbsValue = cappedCnvMaxAbsValue;
2208
- }
2209
- map(legend) {
2210
- const legendJSON = [];
2211
- let order = 0;
2212
- if (legend.snvClassMap) {
2213
- this.mapSnv(legend, legendJSON, order++);
2214
- }
2215
- if (legend.cnvCount > 0 && legend.cnvRenderingType == "heatmap" /* heatmap */) {
2216
- this.mapCnvHeatmap(legend, legendJSON, order++);
2217
- } else if (legend.cnvCount > 0 && legend.cnvRenderingType == "bar" /* bar */) {
2218
- if (legend.cnvClassMap) {
2219
- this.mapCnvBar(legend, legendJSON, order++);
2220
- }
2221
- }
2222
- if (legend.cnvClassMap.has(4 /* ITD */)) {
2223
- this.mapItd(legend, legendJSON, order++);
2224
- }
2225
- if (legend.lohLegend) {
2226
- this.mapLoh(legend, legendJSON, order++);
2227
- }
2228
- if (legend.fusionLegend) {
2229
- this.mapFusion(legend, legendJSON, order++);
2230
- }
2231
- if (legend.mutationWaterfallLegend) {
2232
- this.mapMutationWaterfall(legend, legendJSON, order++);
2233
- }
2234
- return legendJSON;
2235
- }
2236
- mapSnv(legend, legendJSON, order) {
2237
- const snvItems = [];
2238
- let snvOrder = 0;
2239
- for (const [snvKey, snvLegendElement] of legend.snvClassMap) {
2240
- snvItems.push({
2241
- termid: legend.snvTitle,
2242
- key: snvKey,
2243
- text: `${snvLegendElement.snvType} (${snvLegendElement.count})`,
2244
- color: snvLegendElement.color,
2245
- order: snvOrder++
2246
- });
2247
- }
2248
- legendJSON.push({
2249
- name: legend.snvTitle,
2250
- order,
2251
- items: snvItems
2252
- });
2253
- }
2254
- mapCnvBar(legend, legendJSON, order) {
2255
- if (!legend.cnvClassMap) return;
2256
- const gain = legend.cnvClassMap.get(1 /* Gain */);
2257
- const loss = legend.cnvClassMap.get(0 /* Loss */);
2258
- const cap = legend.cnvClassMap.get(2 /* Cap */);
2259
- if (gain && loss && cap) {
2260
- let cnvOrder = 0;
2261
- const cnvItems = [];
2262
- if (gain.value > 0) {
2263
- cnvItems.push({
2264
- termid: legend.cnvTitle,
2265
- key: 1 /* Gain */,
2266
- text: `Max: ${gain.value}`,
2267
- color: gain.color,
2268
- order: cnvOrder++
2269
- });
2270
- }
2271
- if (loss.value < 0) {
2272
- cnvItems.push({
2273
- termid: legend.cnvTitle,
2274
- key: 0 /* Loss */,
2275
- text: `Min: ${loss.value}`,
2276
- color: loss.color,
2277
- order: cnvOrder++
2278
- });
2279
- }
2280
- cnvItems.push({
2281
- termid: legend.cnvTitle,
2282
- key: 2 /* Cap */,
2283
- text: `Capping: ${cap.value}`,
2284
- color: cap.color,
2285
- order: cnvOrder++
2286
- // ,
2287
- // onClickCallback: this.onClickCallback
2288
- });
2289
- legendJSON.push({
2290
- name: legend.cnvTitle,
2291
- id: "sjpp-disco-cnv-legend",
2292
- order,
2293
- items: cnvItems
2294
- });
2295
- }
2296
- }
2297
- mapCnvHeatmap(legend, legendJSON, order) {
2298
- if (!legend.cnvClassMap) return;
2299
- const gain = legend.cnvClassMap.get(1 /* Gain */);
2300
- const loss = legend.cnvClassMap.get(0 /* Loss */);
2301
- const cap = legend.cnvClassMap.get(2 /* Cap */);
2302
- if (gain && loss && cap) {
2303
- let cnvOrder = 0;
2304
- const cnvItems = [];
2305
- const base = {
2306
- termid: legend.cnvTitle,
2307
- width: 100,
2308
- order: cnvOrder++,
2309
- isLegendItem: true,
2310
- dt: 4
2311
- };
2312
- if (gain.value > 0 && loss.value < 0) {
2313
- const maxValue = Math.max(Math.abs(loss.value), gain.value);
2314
- const domain = [-maxValue, 0, maxValue];
2315
- cnvItems.push(
2316
- Object.assign(
2317
- {
2318
- key: 3 /* LossGain */,
2319
- domain,
2320
- scale: linear([-1, 0, 1], [loss.color, "white", gain.color]),
2321
- labels: { left: "Loss", right: "Gain" },
2322
- numericInputs: {
2323
- cutoffMode: legend.cnvCutoffMode,
2324
- defaultPercentile: legend.cnvPercentile,
2325
- callback: (obj) => legend.discoInteractions.colorScaleNumericInputsCallback(obj)
2326
- }
2327
- },
2328
- base
2329
- )
2330
- );
2331
- } else {
2332
- if (gain.value > 0) {
2333
- cnvItems.push(
2334
- Object.assign(
2335
- {
2336
- key: 1 /* Gain */,
2337
- text: "Copy number gain",
2338
- domain: [0, gain.value],
2339
- scale: linear([0, 1], ["white", gain.color])
2340
- },
2341
- base
2342
- )
2343
- );
2344
- }
2345
- if (loss.value < 0) {
2346
- cnvItems.push(
2347
- Object.assign(
2348
- {
2349
- key: 0 /* Loss */,
2350
- text: "Copy number loss",
2351
- domain: [loss.value, 0],
2352
- scale: linear([0, 1], [loss.color, "white"])
2353
- },
2354
- base
2355
- )
2356
- );
2357
- }
2358
- }
2359
- legendJSON.push({
2360
- name: legend.cnvTitle,
2361
- order,
2362
- id: "sjpp-disco-cnv-legend",
2363
- items: cnvItems
2364
- });
2365
- }
2366
- }
2367
- mapItd(legend, legendJSON, order) {
2368
- const itd = legend.cnvClassMap.get(4 /* ITD */);
2369
- if (!itd) return;
2370
- legendJSON.push({
2371
- name: "ITD",
2372
- order,
2373
- items: [
2374
- {
2375
- termid: "ITD",
2376
- key: 4 /* ITD */,
2377
- text: `ITD (${itd.value})`,
2378
- color: itd.color,
2379
- order: 0
2380
- }
2381
- ]
2382
- });
2383
- }
2384
- mapLoh(legend, legendJSON, order) {
2385
- if (!legend.lohLegend) return;
2386
- legendJSON.push({
2387
- name: legend.lohTitle,
2388
- order,
2389
- items: [
2390
- {
2391
- termid: legend.lohTitle,
2392
- key: "count",
2393
- text: `LOH (${legend.lohLegend.count})`,
2394
- skipIcon: true,
2395
- order: 0
2396
- }
2397
- ]
2398
- });
2399
- }
2400
- mapFusion(legend, legendJSON, order) {
2401
- const fusionItems = [];
2402
- fusionItems.push({
2403
- termid: legend.fusionTitle,
2404
- key: "#6A3D9A" /* Interchromosomal */,
2405
- text: `Interchromosomal (${legend.fusionLegendCounts.interchromosomal})`,
2406
- color: "#6A3D9A" /* Interchromosomal */.valueOf(),
2407
- order: 0
2408
- });
2409
- fusionItems.push({
2410
- termid: legend.fusionTitle,
2411
- key: "#1B9E77" /* Intrachromosomal */,
2412
- text: `Intrachromosomal (${legend.fusionLegendCounts.intrachromosomal})`,
2413
- color: "#1B9E77" /* Intrachromosomal */.valueOf(),
2414
- order: 1
2415
- });
2416
- legendJSON.push({
2417
- name: legend.fusionTitle,
2418
- order,
2419
- items: fusionItems
2420
- });
2421
- }
2422
- mapMutationWaterfall(legend, legendJSON, order) {
2423
- if (!legend.mutationWaterfallLegend) return;
2424
- const waterfallItems = [];
2425
- waterfallItems.push({
2426
- termid: "Mutation Waterfall Plot",
2427
- key: "mutation-waterfall-color",
2428
- text: "Dot color",
2429
- color: legend.mutationWaterfallLegend.color,
2430
- order: 0,
2431
- colorPicker: true,
2432
- inputWidth: 28,
2433
- width: 0,
2434
- onColorChange: legend.mutationWaterfallLegend.onColorChange
2435
- });
2436
- waterfallItems.push({
2437
- termid: "Mutation Waterfall Plot",
2438
- key: "mutation-waterfall-axis",
2439
- text: "Axis: log10 intermutation distance",
2440
- order: 1,
2441
- skipIcon: true,
2442
- width: 0
2443
- });
2444
- legendJSON.push({
2445
- name: "Mutation Waterfall Plot",
2446
- order,
2447
- items: waterfallItems
2448
- });
2449
- }
2450
- };
2451
-
2452
- // plots/disco/cnv/renderCnvSourceLegend.ts
2453
- function parseSetLabel(set, index) {
2454
- let text = set.name || `Set ${index + 1}`;
2455
- let href;
2456
- let target = "_blank";
2457
- if (set.nameHtml) {
2458
- const parser = new DOMParser();
2459
- const doc = parser.parseFromString(set.nameHtml, "text/html");
2460
- const anchor = doc.querySelector("a");
2461
- if (anchor) {
2462
- href = anchor.getAttribute("href") || void 0;
2463
- target = anchor.getAttribute("target") || "_blank";
2464
- text = anchor.textContent?.trim() || text;
2465
- } else {
2466
- text = doc.body.textContent?.trim() || text;
2467
- }
2468
- }
2469
- return { text, href, target };
2470
- }
2471
- function renderCnvSourceLegend(legendG, datasets, fontSize, onChange) {
2472
- if (!legendG || legendG.empty()) throw new Error("legendG is required");
2473
- if (!datasets || datasets.length === 0) throw new Error("at least one dataset is required");
2474
- legendG.select("g.sjpp-cnv-source").remove();
2475
- const gBBox = legendG.node().getBBox();
2476
- const cnvSrcWrapper = legendG.append("g").attr("class", "sjpp-cnv-source").attr("transform", `translate(${gBBox.width},${gBBox.y + fontSize})`);
2477
- const btnPaddingX = Math.round(fontSize * 0.8);
2478
- const btnHgt = Math.round(fontSize * 1.8);
2479
- const btnWrapper = cnvSrcWrapper.append("g").attr("transform", `translate(${fontSize},${-btnHgt / 2})`).style("cursor", "pointer").on("click", function(event) {
2480
- event.stopPropagation();
2481
- showCnvMenu(this);
2482
- });
2483
- 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());
2484
- const textW = btnText.node() ? Math.ceil(btnText.node().getBBox().width) : 0;
2485
- const btnWdt = textW + btnPaddingX * 2;
2486
- btnWrapper.insert("rect", ":first-child").attr("width", btnWdt).attr("height", btnHgt).attr("rx", 10).attr("ry", 10).style("fill", "#f2f2f2");
2487
- btnText.attr("x", btnWdt / 2).attr("text-anchor", "middle");
2488
- const cnvMenu = new Menu({
2489
- onHide: () => {
2490
- btnText.text("Select source \u25B2".toUpperCase());
2491
- }
2492
- });
2493
- function showCnvMenu(dom) {
2494
- btnText.text("Select source \u25BC".toUpperCase());
2495
- cnvMenu.clear().showunder(dom);
2496
- cnvMenu.d.append("div").text("Choose data source for CNV:").style("margin", "5px 5px 0 5px");
2497
- const tableHolder = cnvMenu.d.append("div").style("padding", "5px");
2498
- const { columns, rows } = buildTableData(datasets);
2499
- const [, activeIndex] = getActiveDataset(datasets);
2500
- renderTable({
2501
- columns,
2502
- rows,
2503
- div: tableHolder,
2504
- singleMode: true,
2505
- maxWidth: "70vw",
2506
- maxHeight: "60vh",
2507
- selectedRows: [activeIndex],
2508
- header: { allowSort: false },
2509
- noButtonCallback: (rowIndex, node) => {
2510
- const inputIndex = Number(node?.value);
2511
- const selectedIndex = Number.isNaN(inputIndex) ? rowIndex : inputIndex;
2512
- if (!Number.isNaN(selectedIndex)) onChange(selectedIndex);
2513
- cnvMenu.hide();
2514
- }
2515
- });
2516
- }
2517
- }
2518
- function getActiveDataset(datasets) {
2519
- let currentIndex = datasets.findIndex((d) => d.inuse);
2520
- if (currentIndex == -1) currentIndex = 0;
2521
- return [datasets[currentIndex], currentIndex];
2522
- }
2523
- function buildTableData(datasets) {
2524
- const attrKeys = [];
2525
- for (const set of datasets) {
2526
- if (!set.attrs) continue;
2527
- for (const key of Object.keys(set.attrs)) {
2528
- if (!attrKeys.includes(key)) attrKeys.push(key);
2529
- }
2530
- }
2531
- const columns = [{ label: "Source" }];
2532
- for (const key of attrKeys) columns.push({ label: key });
2533
- const rows = datasets.map((set, index) => {
2534
- const sourceInfo = parseSetLabel(set, index);
2535
- const cells = [];
2536
- if (set.nameHtml) cells.push({ html: set.nameHtml });
2537
- else if (sourceInfo.href) cells.push({ value: sourceInfo.text, url: sourceInfo.href });
2538
- else cells.push({ value: sourceInfo.text });
2539
- for (const key of attrKeys) {
2540
- const value = set.attrs?.[key];
2541
- cells.push({ value: value ?? "" });
2542
- }
2543
- return cells;
2544
- });
2545
- return { columns, rows };
2546
- }
2547
-
2548
- // plots/disco/legend/LegendRenderer.ts
2549
- var LegendRenderer = class {
2550
- constructor(cappedCnvMaxAbsValue = 0, fontSize) {
2551
- this.fontSize = fontSize;
2552
- this.legendJSONMapper = new LegendJSONMapper(cappedCnvMaxAbsValue);
2553
- }
2554
- render(holder, legend, xOffset, svgw, svgh, viewModel, onCnvSourceSelect) {
2555
- const svgLegendRenderer = svgLegend({
2556
- holder: holder.append("g").attr("data-testid", "sjpp_disco_plot_legend"),
2557
- rectFillFxn: (d2) => d2.color,
2558
- iconStroke: "#aaa"
2559
- });
2560
- const data = this.legendJSONMapper.map(legend);
2561
- const legendTitles = data.map((d2) => d2.name.trim());
2562
- const maxLabelWidth = getMaxLabelWidth(holder, legendTitles);
2563
- const d = {
2564
- xOffset: maxLabelWidth + xOffset
2565
- };
2566
- svgLegendRenderer(data, {
2567
- settings: Object.assign(
2568
- {},
2569
- {
2570
- svgw,
2571
- svgh,
2572
- dimensions: d,
2573
- fontsize: this.fontSize
2574
- }
2575
- )
2576
- });
2577
- const altCnv = viewModel.appState.args.alternativeDataByDt?.[dtcnv];
2578
- if (altCnv && altCnv.length > 0) {
2579
- const legendG = holder.select('g[data-testid="sjpp_disco_plot_legend"]');
2580
- const cnvLegendG = legendG.select("#sjpp-disco-cnv-legend");
2581
- if (!legendG.empty()) {
2582
- const add2G = cnvLegendG.empty() ? legendG : cnvLegendG;
2583
- renderCnvSourceLegend(add2G, altCnv, this.fontSize, onCnvSourceSelect);
2584
- }
2585
- }
2586
- }
2587
- };
2588
-
2589
- // plots/disco/chromosome/ChromosomesRenderer.ts
2590
- var ChromosomesRenderer = class {
2591
- constructor(padAngle, innerRadius, outerRadius, fontSize) {
2592
- this.padAngle = padAngle;
2593
- this.innerRadius = innerRadius;
2594
- this.outerRadius = outerRadius;
2595
- this.fontSize = fontSize;
2596
- }
2597
- render(holder, elements) {
2598
- const pie = pie_default().padAngle(this.padAngle).value((d) => d.size).sort(null);
2599
- const arcData = pie(elements);
2600
- const arc = arc_default().innerRadius(this.innerRadius).outerRadius(this.outerRadius);
2601
- const arcs = holder.append("g").attr("data-testid", "sjpp_chromosomes_arc_group");
2602
- const menu = MenuProvider.create();
2603
- arcs.selectAll("path").data(arcData).enter().append("path").attr("d", arc).attr("fill", "black").on("mousemove", (event, d) => {
2604
- const [x, y] = pointer_default(event, arcs.node());
2605
- let angle = Math.atan2(y, x) + Math.PI / 2;
2606
- if (angle < 0) angle += 2 * Math.PI;
2607
- const frac = Math.max(0, Math.min(1, (angle - d.data.startAngle) / (d.data.endAngle - d.data.startAngle)));
2608
- const pos = Math.round(frac * d.data.size);
2609
- menu.d.html(`<span style="font-size:.8em">chr${d.data.text}</span> ${bplen(pos)}`).style("padding", "5px");
2610
- menu.show(event.x, event.y);
2611
- }).on("mouseenter", (event) => {
2612
- select_default(event.currentTarget).attr("stroke", "orange").attr("stroke-width", 1);
2613
- }).on("mouseleave", (event) => {
2614
- select_default(event.currentTarget).attr("stroke", null).attr("stroke-width", null);
2615
- menu.hide();
2616
- });
2617
- arcs.selectAll("text").data(arcData).enter().append("text").attr("transform", (d) => {
2618
- return `translate(${arc.centroid(d)}) rotate(${d.data.angle * 180 / Math.PI - 90})${d.data.angle > Math.PI ? "rotate(180)" : ""}`;
2619
- }).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");
2620
- }
2621
- };
2622
-
2623
- // plots/disco/label/LabelsRenderer.ts
2624
- var LabelsRenderer = class {
2625
- constructor(animationDuration, fontSize, geneClickListener, genomeName, intervalEvents = [], geneLookup = async (gene, genome) => await dofetch3("genelookup", { body: { deep: 1, input: gene, genome } })) {
2626
- this.geneCoordinatesCache = /* @__PURE__ */ new Map();
2627
- this.hoverRequestId = 0;
2628
- this.animationDuration = animationDuration;
2629
- this.fontSize = fontSize;
2630
- this.geneClickListener = geneClickListener;
2631
- this.genomeName = genomeName;
2632
- this.intervalEvents = intervalEvents;
2633
- this.geneLookup = geneLookup;
2634
- }
2635
- render(holder, elements, collisions) {
2636
- const labelsG = holder.append("g");
2637
- const lineFunction = line_default().x((point) => point.x).y((point) => point.y);
2638
- const menu = MenuProvider.create();
2639
- labelsG.selectAll(".group").data(elements).enter().append("g").attr("class", "group").each((label, i, nodes) => {
2640
- const g = select_default(nodes[i]);
2641
- g.append("text").attr("class", "chord-text").attr("data-testid", "sjpp-disco-genelabel").attr("dy", ".35em").attr("transform", label.transform).style("text-anchor", label.textAnchor).style("font-size", `${this.fontSize}px`).style("fill", label.color).style("cursor", "pointer").text(label.text).on("click", () => {
2642
- if (label.mutationsTooltip) {
2643
- this.geneClickListener(
2644
- label.text,
2645
- label.mutationsTooltip.map((value) => value.mname)
2646
- );
2647
- }
2648
- }).on("mouseover", async (mouseEvent) => {
2649
- const requestId = ++this.hoverRequestId;
2650
- this.renderTooltip(menu, label);
2651
- menu.show(mouseEvent.x, mouseEvent.y);
2652
- const coordinates = await this.getGeneCoordinates(label);
2653
- if (requestId != this.hoverRequestId || !coordinates) return;
2654
- const overlappingEvents = this.intervalEvents.filter(
2655
- (event) => this.sameChromosome(event.chr, coordinates.chr) && coordinates.stop >= event.start && event.stop >= coordinates.start
2656
- );
2657
- this.renderTooltip(menu, label, overlappingEvents);
2658
- }).on("mouseout", () => {
2659
- this.hoverRequestId++;
2660
- menu.clear();
2661
- menu.hide();
2662
- });
2663
- g.append("path").attr("class", "chord-tick").datum(label.line.points).style("stroke", label.color).style("fill", "none").attr("d", lineFunction);
2664
- });
2665
- labelsG.selectAll(".group").each((label, i, nodes) => {
2666
- const collision = collisions ? collisions.find((l) => l.text === label.text) : void 0;
2667
- if (collision) {
2668
- const g = select_default(nodes[i]);
2669
- g.selectAll(".chord-text").datum(collision).transition().duration(this.animationDuration).attr("transform", collision.transform).style("text-anchor", collision.textAnchor);
2670
- g.selectAll(".chord-tick").datum(collision.line.points).transition().duration(this.animationDuration).style("fill", "none").attr("d", lineFunction);
2671
- }
2672
- });
2673
- }
2674
- renderTooltip(menu, label, intervalEvents = label.cnvTooltip) {
2675
- menu.clear();
2676
- const table = table2col({ holder: menu.d });
2677
- this.createTooltip(table, label, intervalEvents);
2678
- }
2679
- async getGeneCoordinates(label) {
2680
- if (!this.genomeName || !this.intervalEvents.length) return;
2681
- const cacheKey = `${this.genomeName}:${label.text}:${label.chr}`;
2682
- let lookup = this.geneCoordinatesCache.get(cacheKey);
2683
- if (!lookup) {
2684
- lookup = this.lookupGeneCoordinates(label);
2685
- this.geneCoordinatesCache.set(cacheKey, lookup);
2686
- }
2687
- return await lookup;
2688
- }
2689
- async lookupGeneCoordinates(label) {
2690
- try {
2691
- const response = await this.geneLookup(label.text, this.genomeName);
2692
- if (response?.error || !Array.isArray(response?.gmlst)) return;
2693
- const models = response.gmlst.filter(
2694
- (model) => this.sameChromosome(model.chr, label.chr) && Number.isFinite(model.start) && Number.isFinite(model.stop)
2695
- );
2696
- if (!models.length) return;
2697
- return {
2698
- chr: models[0].chr,
2699
- start: Math.min(...models.map((model) => model.start)),
2700
- stop: Math.max(...models.map((model) => model.stop))
2701
- };
2702
- } catch {
2703
- return;
2704
- }
2705
- }
2706
- sameChromosome(a, b) {
2707
- return a?.replace(/^chr/i, "").toLowerCase() == b?.replace(/^chr/i, "").toLowerCase();
2708
- }
2709
- createTooltip(table, label, intervalEvents = label.cnvTooltip) {
2710
- if (label.mutationsTooltip) {
2711
- const [td1, td2] = table.addRow();
2712
- td1.text("Gene");
2713
- td2.append("span").style("margin-left", "5px").text(label.text);
2714
- label.mutationsTooltip.forEach((mutation) => {
2715
- {
2716
- const [td12, td22] = table.addRow();
2717
- td12.text("Mutation");
2718
- 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}`);
2719
- if (hasAnyValidVafEntry(mutation.vafs)) {
2720
- appendVafBars(td22, mutation.vafs);
2721
- }
2722
- }
2723
- });
2724
- }
2725
- if (label.fusionTooltip) {
2726
- const [td1, td2] = table.addRow();
2727
- td1.text("Data type");
2728
- td2.append("span").text("Fusion transcript");
2729
- label.fusionTooltip.forEach((fusionTooltip) => {
2730
- const [td12, td22] = table.addRow();
2731
- td12.text("Position");
2732
- td22.append("span").text(
2733
- ` ${fusionTooltip.geneA ? fusionTooltip.geneA : "?"} ${fusionTooltip.chrA}:${fusionTooltip.posA}
2734
- ${fusionTooltip.strandA == "+" ? "forward" : "reverse"} > ${fusionTooltip.geneB ? fusionTooltip.geneB : "?"} ${fusionTooltip.chrB}:${fusionTooltip.posB} ${fusionTooltip.strandB == "+" ? "forward" : "reverse"} `
2735
- );
2736
- });
2737
- }
2738
- if (intervalEvents) {
2739
- intervalEvents.forEach((cnv) => {
2740
- const [td1, td2] = table.addRow();
2741
- td1.text(cnv.dt == dtitd ? "ITD" : cnv.dt == dtloh ? "LOH" : "CNV");
2742
- td2.append("span").style("margin-left", "5px").style("background-color", cnv.color).html("&nbsp;&nbsp;");
2743
- if (cnv.dt != dtitd && cnv.dt != dtloh) td2.append("span").style("margin-left", "7.5px").text(cnv.value);
2744
- td2.append("span").style("margin-left", "7.5px").style("font-size", "0.8em").text(`${cnv.chr}:${cnv.start}-${cnv.stop}`);
2745
- });
2746
- }
2747
- }
2748
- };
2749
-
2750
- // plots/disco/defaults.ts
2751
- function discoDefaults(overrides = {}, app) {
2752
- const hiddenChromosomes = [];
2753
- if (app?.vocabApi?.termdbConfig?.queries?.singleSampleMutation?.discoPlot?.skipChrM) {
2754
- hiddenChromosomes.push("chrM");
2755
- }
2756
- const defaults = {
2757
- downloadImgName: "disco.plot",
2758
- Disco: {
2759
- centerText: null,
2760
- cnvCapping: 5,
2761
- isOpen: false,
2762
- prioritizeGeneLabelsByGeneSets: false,
2763
- showPrioritizeGeneLabelsByGeneSets: false,
2764
- showGeneNames: true,
2765
- mutationWaterfallPlot: false,
2766
- mutationWaterfallColor: "#4d4d4d",
2767
- minMutationFraction: 0,
2768
- cnvRenderingType: "heatmap" /* heatmap */,
2769
- cnvPercentile: 90,
2770
- // 90th percentile for removing outliers
2771
- cnvCutoffMode: "percentile",
2772
- autoRadius: true,
2773
- radius: 300,
2774
- fusionOpacity: 1,
2775
- hiddenChromosomes
2776
- },
2777
- rings: {
2778
- nonExonicRingWidth: 20,
2779
- snvRingWidth: 20,
2780
- lohRingWidth: 20,
2781
- cnvRingWidth: 30,
2782
- mutationWaterfallRingWidth: 35,
2783
- snvRingFilters: ["exonic"],
2784
- chromosomeInnerRadius: 190,
2785
- chromosomeWidth: 20,
2786
- labelLinesInnerRadius: 210,
2787
- labelsToLinesDistance: 30,
2788
- labelsToLinesGap: 2,
2789
- nonExonicRingEnabled: true,
2790
- nonExonicFilterValues: ["non-exonic"]
2791
- },
2792
- verticalPadding: 0,
2793
- horizontalPadding: 50,
2794
- layerScaler: 1,
2795
- padAngle: 2e-3,
2796
- //0.01, //0.04,
2797
- label: {
2798
- fontSize: 12,
2799
- maxDeltaAngle: 0.05,
2800
- animationDuration: 1e3,
2801
- overlapAngleFactor: 5
2802
- // 5 is set by testing, because label height is not known before rendering
2803
- },
2804
- cnv: {
2805
- capping: 5,
2806
- percentile: 80,
2807
- ampColor: "#D6683C",
2808
- lossColor: "#67a9cf",
2809
- cappedAmpColor: "#8B0000",
2810
- cappedLossColor: "#00008B",
2811
- unit: "Unit"
2812
- },
2813
- snv: {
2814
- maxMutationCount: 1e4
2815
- },
2816
- legend: {
2817
- snvTitle: "Mutations",
2818
- cnvTitle: "CNV",
2819
- lohTitle: "LOH",
2820
- fusionTitle: "SV",
2821
- // Structural Variants (color by co-location)
2822
- lohLegendEnabled: true,
2823
- fontSize: 12,
2824
- rowHeight: 48
2825
- },
2826
- menu: {
2827
- padding: 5
2828
- }
2829
- };
2830
- if (overrides?.Disco?.radius != null && (overrides.Disco.radius > 1e3 || overrides.Disco.radius < 200)) {
2831
- console.log(`${overrides?.Disco?.radius} is greater or lower than the min and max for the radius`);
2832
- }
2833
- return copyMerge(defaults, overrides);
2834
- }
2835
-
2836
- // plots/disco/snv/NonExonicSnvRenderer.ts
2837
- var NonExonicSnvRenderer = class {
2838
- constructor(geneClickListener) {
2839
- this.geneClickListener = geneClickListener;
2840
- }
2841
- render(holder, elements) {
2842
- const arcGenerator = arc_default();
2843
- const arcs = holder.append("g");
2844
- const menu = MenuProvider.create();
2845
- arcs.selectAll("path").data(elements).enter().append("path").attr("d", (d) => arcGenerator(d)).attr("fill", (d) => d.color).on("mouseover", (mouseEvent, arc) => {
2846
- const table = table2col({ holder: menu.d });
2847
- const snv = structuredClone(arc);
2848
- snv.dt = dtsnvindel;
2849
- snv.class = arc.dataClass;
2850
- snv.gene = snv.text;
2851
- {
2852
- const [td1, td2] = table.addRow();
2853
- td1.text("Consequence");
2854
- td2.append("span").text(snv.mname);
2855
- td2.append("span").style("margin-left", "5px").style("color", snv.color).style("font-size", ".8em").text(snv.dataClass);
2856
- }
2857
- {
2858
- const [td1, td2] = table.addRow();
2859
- td1.text(snv.ref && snv.alt ? "Mutation" : "Position");
2860
- td2.append("span").text(`${snv.chr}:${snv.pos + 1} ${snv.ref && snv.alt ? snv.ref + ">" + snv.alt : ""}`);
2861
- }
2862
- if (snv.gene) {
2863
- const [td1, td2] = table.addRow();
2864
- td1.text("Gene");
2865
- td2.text(snv.gene);
2866
- }
2867
- if (snv.occurrence > 1) {
2868
- const [td1, td2] = table.addRow();
2869
- td1.text("Occurrence");
2870
- td2.text(snv.occurrence);
2871
- }
2872
- if (hasAnyValidVafEntry(arc.vafs)) {
2873
- const [td1, td2] = table.addRow();
2874
- td1.text("Read count");
2875
- appendVafBars(td2, arc.vafs);
2876
- }
2877
- menu.show(mouseEvent.x, mouseEvent.y);
2878
- }).on("mouseout", () => {
2879
- menu.clear();
2880
- menu.hide();
2881
- }).on("click", (mouseEvent, arc) => {
2882
- this.geneClickListener(arc.text, [arc.mname]);
2883
- });
2884
- }
2885
- };
2886
-
2887
- // plots/disco/snv/SnvRenderer.ts
2888
- var SnvRenderer = class {
2889
- constructor(svnWidth, geneClickListener) {
2890
- this.svnWidth = svnWidth;
2891
- this.geneClickListener = geneClickListener;
2892
- }
2893
- render(holder, elements) {
2894
- if (elements.length > 0) {
2895
- const svnInnerRadius = elements[0].innerRadius;
2896
- const fullArcRenderer = new FullArcRenderer(svnInnerRadius, this.svnWidth, "#6464641A");
2897
- fullArcRenderer.render(holder);
2898
- }
2899
- const arcGenerator = arc_default();
2900
- const arcs = holder.append("g");
2901
- const menu = MenuProvider.create();
2902
- arcs.selectAll("path").data(elements).enter().append("path").attr("d", (d) => arcGenerator(d)).attr("fill", (d) => d.color).on("mouseover", (mouseEvent, arc) => {
2903
- const table = table2col({ holder: menu.d });
2904
- const snv = structuredClone(arc);
2905
- snv.dt = dtsnvindel;
2906
- snv.class = arc.dataClass;
2907
- snv.gene = snv.text;
2908
- {
2909
- const [td1, td2] = table.addRow();
2910
- td1.text("Consequence");
2911
- td2.append("span").text(snv.mname);
2912
- td2.append("span").style("margin-left", "5px").style("color", snv.color).style("font-size", ".8em").text(snv.dataClass);
2913
- }
2914
- {
2915
- const [td1, td2] = table.addRow();
2916
- td1.text(snv.ref && snv.alt ? "Mutation" : "Position");
2917
- td2.append("span").text(`${snv.chr}:${snv.pos + 1} ${snv.ref && snv.alt ? snv.ref + ">" + snv.alt : ""}`);
2918
- }
2919
- if (snv.gene) {
2920
- const [td1, td2] = table.addRow();
2921
- td1.text("Gene");
2922
- td2.text(snv.gene);
2923
- }
2924
- if (snv.occurrence > 1) {
2925
- const [td1, td2] = table.addRow();
2926
- td1.text("Occurrence");
2927
- td2.text(snv.occurrence);
2928
- }
2929
- if (hasAnyValidVafEntry(arc.vafs)) {
2930
- const [td1, td2] = table.addRow();
2931
- td1.text("Read count");
2932
- appendVafBars(td2, arc.vafs);
2933
- }
2934
- menu.show(mouseEvent.x, mouseEvent.y);
2935
- }).on("mouseout", () => {
2936
- menu.clear();
2937
- menu.hide();
2938
- }).on("click", (mouseEvent, arc) => {
2939
- this.geneClickListener(arc.text, [arc.mname]);
2940
- });
2941
- }
2942
- };
2943
-
2944
- // plots/disco/loh/LohRenderer.ts
2945
- var LohRenderer = class {
2946
- render(holder, elements) {
2947
- const arcGenerator = arc_default();
2948
- const arcs = holder.append("g");
2949
- const menu = MenuProvider.create();
2950
- arcs.selectAll("path").data(elements).enter().append("path").attr("d", (d) => arcGenerator(d)).attr("fill", (d) => d.color).on("mouseover", (mouseEvent, arc) => {
2951
- const table = table2col({ holder: menu.d });
2952
- const loh = structuredClone(arc);
2953
- loh.dt = dtloh;
2954
- loh.gene = loh.text;
2955
- {
2956
- const [td12, td22] = table.addRow();
2957
- td12.text("Data type");
2958
- td22.append("span").style("margin-left", "5px").text("Loss of Heterozygosity");
2959
- }
2960
- const [td1, td2] = table.addRow();
2961
- td1.text("Position");
2962
- td2.append("span").text(`${arc.chr}:${arc.start}-${arc.stop}`);
2963
- menu.show(mouseEvent.x, mouseEvent.y);
2964
- }).on("mouseout", () => {
2965
- menu.clear();
2966
- menu.hide();
2967
- });
2968
- }
2969
- };
2970
-
2971
- // plots/disco/cnv/CnvBarRenderer.ts
2972
- var CnvBarRenderer = class {
2973
- render(holder, elements) {
2974
- const arcGenerator = arc_default();
2975
- const arcs = holder.append("g");
2976
- const hoverOverlay = holder.append("g").attr("class", "hover-overlay").style("pointer-events", "none");
2977
- const menu = MenuProvider.create();
2978
- arcs.selectAll("path").data(elements).enter().append("path").attr("d", (d) => arcGenerator(d)).attr("fill", (d) => d.color).on("mouseover", (mouseEvent, arc) => {
2979
- hoverOverlay.selectAll("*").remove();
2980
- hoverOverlay.append("path").datum(arc).attr("d", arcGenerator(arc)).attr("fill", "none").attr("stroke", "black").attr("stroke-width", 1);
2981
- const cnv = structuredClone(arc);
2982
- cnv.dt = arc.dt;
2983
- cnv.samples = [{ sample_id: arc.sampleName }];
2984
- cnv.gene = cnv.text;
2985
- const table = table2col({ holder: menu.d });
2986
- if (arc.dt == dtcnv) {
2987
- const [c1, c2] = table.addRow();
2988
- c1.text("CNV");
2989
- c2.html(`<span style="background:${cnv.color}">&nbsp;&nbsp;</span> ${cnv.value}`);
2990
- }
2991
- if (arc.dt == dtitd) {
2992
- const [c1, c2] = table.addRow();
2993
- c1.text("ITD");
2994
- c2.html(`<span style="background:${cnv.color}">&nbsp;&nbsp;</span>`);
2995
- }
2996
- {
2997
- const [c1, c2] = table.addRow();
2998
- c1.text("Position");
2999
- c2.text(cnv.chr + ":" + cnv.start + "-" + cnv.stop);
3000
- }
3001
- if (arc.dt == dtcnv) {
3002
- const [c1, c2] = table.addRow();
3003
- c1.text("Unit");
3004
- c2.text(cnv.value);
3005
- }
3006
- menu.show(mouseEvent.x, mouseEvent.y);
3007
- }).on("mouseout", () => {
3008
- hoverOverlay.selectAll("*").remove();
3009
- menu.clear();
3010
- menu.hide();
3011
- });
3012
- }
3013
- };
3014
-
3015
- // plots/disco/cnv/CnvHeatmapRenderer.ts
3016
- var CnvHeatmapRenderer = class {
3017
- constructor(positivePercentile = 0, negativePercentile = 0) {
3018
- this.positivePercentile = positivePercentile;
3019
- this.negativePercentile = negativePercentile;
3020
- }
3021
- render(holder, elements) {
3022
- const arcGenerator = arc_default();
3023
- const arcs = holder.append("g");
3024
- const hoverOverlay = holder.append("g").attr("class", "hover-overlay").style("pointer-events", "none");
3025
- const menu = MenuProvider.create();
3026
- arcs.selectAll("path").data(elements).enter().append("path").attr("d", (d) => arcGenerator(d)).attr("fill", (d) => this.getColor(d.color, d.value, d.dt)).on("mouseenter", (mouseEvent, arc) => {
3027
- hoverOverlay.append("path").datum(arc).attr("d", arcGenerator(arc)).attr("fill", "none").attr("stroke", "black").attr("stroke-width", 1);
3028
- const table = table2col({ holder: menu.d });
3029
- const cnv = structuredClone(arc);
3030
- cnv.dt = arc.dt;
3031
- cnv.samples = [{ sample_id: arc.sampleName }];
3032
- cnv.gene = cnv.text;
3033
- if (arc.dt == dtcnv) {
3034
- const [c1, c2] = table.addRow();
3035
- c1.text("CNV");
3036
- c2.html(
3037
- `<span style="background:${this.getColor(
3038
- cnv.color,
3039
- cnv.value,
3040
- cnv.dt
3041
- )}; border:solid lightgrey 0.1px;">&nbsp;&nbsp;</span> ${cnv.value}`
3042
- );
3043
- }
3044
- if (arc.dt == dtitd) {
3045
- const [c1, c2] = table.addRow();
3046
- c1.text("ITD");
3047
- c2.html(`<span style="background:${cnv.color}; border:solid lightgrey 0.1px;">&nbsp;&nbsp;</span>`);
3048
- }
3049
- {
3050
- const [c1, c2] = table.addRow();
3051
- c1.text("Position");
3052
- c2.text(cnv.chr + ":" + cnv.start + "-" + cnv.stop);
3053
- }
3054
- menu.show(mouseEvent.x, mouseEvent.y);
3055
- }).on("mouseleave", () => {
3056
- hoverOverlay.selectAll("*").remove();
3057
- menu.clear();
3058
- menu.hide();
3059
- });
3060
- }
3061
- // Computes fill color using linear scale between -P80, 0, and +P80
3062
- getColor(color, value, dt = dtcnv) {
3063
- if (dt == dtitd) return color;
3064
- const maxValue = Math.max(this.positivePercentile, Math.abs(this.negativePercentile));
3065
- return linear(
3066
- [-maxValue, 0, maxValue],
3067
- [color, "white", color]
3068
- // transitions to white in the middle
3069
- ).clamp(true)(value);
3070
- }
3071
- };
3072
-
3073
- // plots/disco/waterfall/MutationWaterfallRenderer.ts
3074
- var MutationWaterfallRenderer = class {
3075
- constructor(dotRadius = 1.5) {
3076
- this.dotRadius = dotRadius;
3077
- }
3078
- render(holder, elements) {
3079
- if (!elements.length) return;
3080
- const ringGroup = holder.append("g").attr("data-testid", "sjpp_mutation_waterfall_ring");
3081
- const menu = MenuProvider.create();
3082
- 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) => {
3083
- const distance = Math.round(Math.pow(10, d.logDistance));
3084
- menu.clear();
3085
- const table = table2col({ holder: menu.d });
3086
- {
3087
- const [td1, td2] = table.addRow();
3088
- td1.text("Intermutation distance");
3089
- td2.text(`${bplen(distance)}`);
3090
- }
3091
- menu.show(event.x, event.y);
3092
- }).on("mouseout", () => {
3093
- menu.clear();
3094
- menu.hide();
3095
- });
3096
- this.renderAxis(ringGroup, elements[0]);
3097
- }
3098
- renderAxis(holder, referencePoint) {
3099
- const { ringInnerRadius, ringWidth, rangeMin, rangeMax } = referencePoint;
3100
- const axisGroup = holder.append("g").attr("class", "sjpp-waterfall-axis");
3101
- const topRadius = ringInnerRadius + ringWidth;
3102
- axisGroup.append("line").attr("x1", 0).attr("y1", -topRadius).attr("x2", 0).attr("y2", -ringInnerRadius).attr("stroke", "#6e6e6e").attr("stroke-width", 1);
3103
- const span = rangeMax - rangeMin || 1;
3104
- const tickValues = rangeMax === rangeMin ? [rangeMin] : ticks(rangeMin, rangeMax, 4);
3105
- tickValues.forEach((value) => {
3106
- const ratio = (value - rangeMin) / span;
3107
- const radius = ringInnerRadius + ringWidth * ratio;
3108
- const y = -radius;
3109
- axisGroup.append("line").attr("x1", -4).attr("x2", 4).attr("y1", y).attr("y2", y).attr("stroke", "#6e6e6e");
3110
- const exponent = Math.round(value * 10) / 10;
3111
- const formatted = Number.isInteger(exponent) ? `${exponent}` : exponent.toFixed(1);
3112
- axisGroup.append("text").attr("x", 6).attr("y", y + 3).style("font-size", "10px").style("fill", "#4d4d4d").text(`10^${formatted} bp`);
3113
- });
3114
- }
3115
- };
3116
-
3117
- // plots/disco/Disco.ts
3118
- var Disco = class _Disco extends PlotBase {
3119
- constructor(opts, api) {
3120
- super(opts, api);
3121
- this.recreateViewModel = false;
3122
- this.onCnvSourceSelect = (index) => {
3123
- const state = this.app.getState();
3124
- const args = state.args;
3125
- const alt = args.alternativeDataByDt?.[dtcnv];
3126
- if (!alt) return;
3127
- const altClone = structuredClone(args.alternativeDataByDt);
3128
- altClone[dtcnv].forEach((d, i) => d.inuse = i === index);
3129
- const selected = altClone[dtcnv][index];
3130
- selected.mlst.forEach((d) => d.position = d.pos);
3131
- const baseData = args.data.filter((d) => d.dt != dtcnv && d.dt != dtloh);
3132
- const newData = baseData.concat(selected.mlst);
3133
- this.app.dispatch({
3134
- type: "app_refresh",
3135
- state: { args: { ...args, data: newData, alternativeDataByDt: altClone } }
3136
- });
3137
- };
3138
- this.type = _Disco.type;
3139
- this.dom.errdiv = opts.holder.append("div").attr("class", "sja_errorbar").style("display", "none");
3140
- this.isOpen = false;
3141
- this.discoInteractions = new DiscoInteractions(this);
3142
- }
3143
- static {
3144
- this.type = "Disco";
3145
- }
3146
- async init() {
3147
- const state = this.app.getState();
3148
- const settings = state.plots.find((p) => p.id === this.id).settings;
3149
- this.stateViewModelMapper = new ViewModelMapper(settings, this.discoInteractions);
3150
- this.viewModel = this.stateViewModelMapper.map(state);
3151
- const holder = this.opts.holder;
3152
- const controlsHolder = holder.append("div").style("display", "inline-block").style("vertical-align", "top");
3153
- const mainDiv = holder.append("div").style("display", "inline-block");
3154
- const topbar = controlsHolder.append("div");
3155
- const config_div = controlsHolder.append("div");
3156
- const configInputsOptions = this.getConfigInputsOptions(this.viewModel);
3157
- this.features = await multiInit({
3158
- topbar: topBarInit({
3159
- app: this.app,
3160
- id: this.id,
3161
- // TODO change the way svg is selected
3162
- downloadHandler: () => this.discoInteractions.downloadClickListener(holder.select('svg[id="sjpp_disco_plot"]').node()),
3163
- callback: () => this.toggleVisibility(this.isOpen),
3164
- isOpen: () => this.isOpen,
3165
- holder: topbar
3166
- }),
3167
- config: configUiInit({
3168
- app: this.app,
3169
- id: this.id,
3170
- holder: config_div,
3171
- isOpen: () => this.isOpen,
3172
- inputs: configInputsOptions
3173
- })
3174
- });
3175
- this.errorDiv = mainDiv.append("div").attr("data-testid", "sjpp-disco-errorDiv");
3176
- this.svgDiv = mainDiv.append("div").attr("data-testid", "sjpp-disco-svgDiv");
3177
- }
3178
- getConfigInputsOptions(viewModel) {
3179
- const configInputsOptions = [];
3180
- if (viewModel.settings.Disco.showPrioritizeGeneLabelsByGeneSets) {
3181
- const filterMutationsGenesCheckbox = [
3182
- {
3183
- boxLabel: viewModel.genesetName,
3184
- label: `Filter mutations`,
3185
- type: "checkbox",
3186
- chartType: "Disco",
3187
- settingsKey: "prioritizeGeneLabelsByGeneSets",
3188
- title: `Only show mutations for ${viewModel.genesetName} genes`
3189
- }
3190
- ];
3191
- configInputsOptions.push(...filterMutationsGenesCheckbox);
3192
- }
3193
- if (viewModel.cnvMaxValue !== 0 || viewModel.cnvMinValue !== 0) {
3194
- const cnvConfigInputOptions = [
3195
- {
3196
- boxLabel: "",
3197
- label: "CNV rendering type",
3198
- type: "radio",
3199
- chartType: "Disco",
3200
- settingsKey: "cnvRenderingType",
3201
- title: "CNV rendering type",
3202
- options: [
3203
- { label: "Heatmap", value: "heatmap" /* heatmap */ },
3204
- { label: "Bar", value: "bar" /* bar */ }
3205
- ]
3206
- }
3207
- ];
3208
- configInputsOptions.push(...cnvConfigInputOptions);
3209
- }
3210
- if (viewModel.hasMutationFractionData) {
3211
- configInputsOptions.push({
3212
- boxLabel: "",
3213
- label: "Minimum mutation fraction",
3214
- type: "number",
3215
- chartType: "Disco",
3216
- settingsKey: "minMutationFraction",
3217
- title: "Only show SNV/indel mutations with at least one DNA/RNA mutation fraction at or above this value.",
3218
- step: 0.01,
3219
- min: 0,
3220
- max: 1,
3221
- debounceInterval: 500
3222
- });
3223
- }
3224
- configInputsOptions.push({
3225
- boxLabel: "",
3226
- label: "Show gene names",
3227
- type: "checkbox",
3228
- chartType: "Disco",
3229
- settingsKey: "showGeneNames",
3230
- title: "Show gene name labels on the outside of the plot"
3231
- });
3232
- const genomeChr = this.app.opts.state.args.genome.majorchr;
3233
- const chromosomeConfigOption = {
3234
- label: "Chromosomes",
3235
- title: "Chromosomes shown in the plot",
3236
- type: "multiCheckbox",
3237
- chartType: "Disco",
3238
- settingsKey: "hiddenChromosomes",
3239
- style: {
3240
- colNum: 4
3241
- },
3242
- options: Object.keys(genomeChr).map((c) => ({ label: c, value: c })),
3243
- processInput: (values = []) => {
3244
- const reverse = Object.keys(genomeChr).filter((c) => !values.includes(c));
3245
- return reverse;
3246
- }
3247
- };
3248
- configInputsOptions.push(chromosomeConfigOption);
3249
- configInputsOptions.push({
3250
- boxLabel: "",
3251
- label: "Auto radius",
3252
- type: "checkbox",
3253
- chartType: "Disco",
3254
- settingsKey: "autoRadius",
3255
- title: "Automatically set the radius based on the number of data rings"
3256
- });
3257
- const dimensionOptions = [
3258
- {
3259
- label: "Radius",
3260
- title: "Set the radius of the entire plot, between 200 and 1000 pixels.",
3261
- type: "number",
3262
- chartType: "Disco",
3263
- settingsKey: "radius",
3264
- debounceInterval: 500,
3265
- step: 25,
3266
- min: 200,
3267
- max: 1e3,
3268
- getDisplayStyle: (plot) => plot.settings.Disco.autoRadius ? "none" : "table-row"
3269
- },
3270
- {
3271
- label: "Fusion opacity",
3272
- title: "Adjust opacity of fusion arcs, between 0 and 1",
3273
- type: "number",
3274
- chartType: "Disco",
3275
- settingsKey: "fusionOpacity",
3276
- step: 0.01,
3277
- min: 0,
3278
- max: 1,
3279
- debounceInterval: 500
3280
- }
3281
- ];
3282
- configInputsOptions.push(...dimensionOptions);
3283
- if (viewModel.canShowMutationWaterfallPlot && viewModel.snvDataLength > 0) {
3284
- configInputsOptions.push({
3285
- boxLabel: "",
3286
- label: "Mutation Waterfall Plot",
3287
- type: "checkbox",
3288
- chartType: "Disco",
3289
- settingsKey: "mutationWaterfallPlot",
3290
- title: "Render log10 intermutation distance ring for SNV/indel data"
3291
- });
3292
- }
3293
- return configInputsOptions;
3294
- }
3295
- async main() {
3296
- const settings = this.state.settings;
3297
- this.isOpen = settings.Disco.isOpen;
3298
- if (this.recreateViewModel) {
3299
- this.stateViewModelMapper = new ViewModelMapper(settings, this.discoInteractions);
3300
- this.viewModel = this.stateViewModelMapper.map(this.app.getState());
3301
- }
3302
- this.recreateViewModel = true;
3303
- if (this.viewModel) {
3304
- this.svgDiv.selectAll("*").remove();
3305
- const appState = this.app.getState();
3306
- this.viewModel.svgDiv = this.svgDiv;
3307
- this.viewModel.appState = appState;
3308
- for (const name in this.features) {
3309
- this.features[name].update({ state: this.state, appState });
3310
- }
3311
- const legendRenderer = new LegendRenderer(this.viewModel.cappedCnvMaxAbsValue, settings.label.fontSize);
3312
- const discoRenderer = new DiscoRenderer(
3313
- this.getRingRenderers(this.viewModel.settings, this.viewModel, this.discoInteractions.geneClickListener),
3314
- legendRenderer,
3315
- this.app.opts.state.args.genome
3316
- );
3317
- discoRenderer.render(this.svgDiv, this.viewModel, this.onCnvSourceSelect);
3318
- if (this.viewModel.invalidDataInfo?.entries?.length) {
3319
- InvalidDataUI.render(this.errorDiv, this.viewModel.invalidDataInfo);
3320
- }
3321
- }
3322
- }
3323
- getState(appState) {
3324
- const config = appState.plots.find((p) => p.id === this.id);
3325
- if (!config) return config;
3326
- return { ...config, mlst: appState.args.data };
3327
- }
3328
- getRingRenderers(settings, viewModel, geneClickListener) {
3329
- const chromosomesRenderer = new ChromosomesRenderer(
3330
- settings.padAngle,
3331
- settings.rings.chromosomeInnerRadius,
3332
- settings.rings.chromosomeInnerRadius + settings.rings.chromosomeWidth,
3333
- settings.label.fontSize
3334
- );
3335
- const labelsRenderer = new LabelsRenderer(
3336
- settings.label.animationDuration,
3337
- settings.label.fontSize,
3338
- geneClickListener,
3339
- this.app.opts.state.args.genome.name,
3340
- [
3341
- ...viewModel.rings.cnvArcRing?.elements || [],
3342
- ...(viewModel.rings.lohArcRing?.elements || []).map((event) => ({ ...event, dt: dtloh }))
3343
- ]
3344
- );
3345
- const nonExonicSnvRenderer = new NonExonicSnvRenderer(geneClickListener);
3346
- const snvRenderer = new SnvRenderer(settings.rings.snvRingWidth, geneClickListener);
3347
- const cnvRenderer = settings.Disco.cnvRenderingType === "heatmap" /* heatmap */ ? new CnvHeatmapRenderer(viewModel.positivePercentile, viewModel.negativePercentile) : new CnvBarRenderer();
3348
- const lohRenderer = new LohRenderer();
3349
- const mutationWaterfallRenderer = new MutationWaterfallRenderer();
3350
- const renderersMap = /* @__PURE__ */ new Map();
3351
- renderersMap.set(0 /* CHROMOSOME */, chromosomesRenderer);
3352
- renderersMap.set(1 /* LABEL */, labelsRenderer);
3353
- renderersMap.set(2 /* NONEXONICSNV */, nonExonicSnvRenderer);
3354
- renderersMap.set(3 /* SNV */, snvRenderer);
3355
- renderersMap.set(4 /* MUTATION_WATERFALL */, mutationWaterfallRenderer);
3356
- renderersMap.set(5 /* CNV */, cnvRenderer);
3357
- renderersMap.set(6 /* LOH */, lohRenderer);
3358
- return renderersMap;
3359
- }
3360
- toggleVisibility(isOpen) {
3361
- this.app.dispatch({
3362
- type: "plot_edit",
3363
- id: this.opts.id,
3364
- config: {
3365
- settings: {
3366
- Disco: { isOpen: !isOpen }
3367
- }
3368
- }
3369
- });
3370
- }
3371
- };
3372
- var discoInit = getCompInit(Disco);
3373
- var componentInit = discoInit;
3374
- async function getPlotConfig(opts, app) {
3375
- return {
3376
- chartType: "Disco",
3377
- subfolder: "disco",
3378
- extension: "ts",
3379
- settings: discoDefaults(opts.overrides, app)
3380
- };
3381
- }
3382
- export {
3383
- componentInit,
3384
- Disco as default,
3385
- discoInit,
3386
- getPlotConfig
3387
- };
3388
- //# sourceMappingURL=Disco-VLUBOZDC.js.map