@sjcrh/proteinpaint-client 2.180.0 → 2.180.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 (927) hide show
  1. package/dist/2dmaf-TA6JJ2OR.js +1371 -0
  2. package/dist/AIProjectAdmin-SAYM2UUO.js +830 -0
  3. package/dist/AppHeader-7TNVJJA7.js +833 -0
  4. package/dist/BoxPlot-IAROTQ5L.js +1184 -0
  5. package/dist/CorrelationVolcano-ZFSDE4PA.js +617 -0
  6. package/dist/DifferentialAnalysis-X44YRQNQ.js +238 -0
  7. package/dist/Disco-YI2INE5R.js +3199 -0
  8. package/dist/Disco-YI2INE5R.js.map +7 -0
  9. package/dist/Disco.UI-YWYNQSRV.js +242 -0
  10. package/dist/DmrPlot-5V5QL4VS.js +151 -0
  11. package/dist/GB-3P67R4TI.js +1125 -0
  12. package/dist/HicApp-GKI7GS7Y.js +2248 -0
  13. package/dist/NumBinaryEditor-FNIEMKOY.js +266 -0
  14. package/dist/NumBinaryEditor.unit.spec-CDHPXF7F.js +284 -0
  15. package/dist/NumContEditor-XICKQ4Y6.js +105 -0
  16. package/dist/NumContEditor.unit.spec-DVFH4SZT.js +167 -0
  17. package/dist/NumCustomBinEditor-ZMND7YMB.js +36 -0
  18. package/dist/NumCustomBinEditor.unit.spec-WLWD4FV2.js +282 -0
  19. package/dist/NumDiscreteEditor-H2GG4COK.js +170 -0
  20. package/dist/NumDiscreteEditor.unit.spec-OEREZ6HB.js +200 -0
  21. package/dist/NumRegularBinEditor-YGMQV7ZW.js +36 -0
  22. package/dist/NumRegularBinEditor.unit.spec-ZUTXFGGA.js +225 -0
  23. package/dist/NumSplineEditor-VPKCUM2U.js +188 -0
  24. package/dist/NumSplineEditor.unit.spec-IDEB3KAY.js +197 -0
  25. package/dist/NumericDensity-5DDVJBBW.js +36 -0
  26. package/dist/NumericDensity.unit.spec-KTOY3EON.js +219 -0
  27. package/dist/NumericHandler-XBY7A7TV.js +37 -0
  28. package/dist/NumericHandler.unit.spec-KKBJDLZY.js +217 -0
  29. package/dist/RunChart2-F4652KYJ.js +756 -0
  30. package/dist/SC-GKNVRMYL.js +725 -0
  31. package/dist/Volcano-ZHQFH2MP.js +1092 -0
  32. package/dist/WSIViewer-MU3YXF7I.js +46972 -0
  33. package/dist/WsiSamplesPlot-ZP3EAQLW.js +163 -0
  34. package/dist/adSandbox-7FIAWUBA.js +36 -0
  35. package/dist/alphaGenome-ACWK2XZL.js +173 -0
  36. package/dist/app-6V52ULRQ.js +47 -0
  37. package/dist/app-PP7JFYBG.js +35 -0
  38. package/dist/app.js +20 -20
  39. package/dist/bam-AESS7MP3.js +849 -0
  40. package/dist/barchart-BKWC5UXM.js +45 -0
  41. package/dist/barchart.data-BMH62H5G.js +22 -0
  42. package/dist/barchart.events-ZJSQB3KV.js +45 -0
  43. package/dist/barchart.integration.spec-6QOIOO6T.js +1675 -0
  44. package/dist/block-PH3K3TGJ.js +6300 -0
  45. package/dist/block.init-7LT7FK7V.js +36 -0
  46. package/dist/block.mds.expressionrank-RH25BI5W.js +357 -0
  47. package/dist/block.mds.geneboxplot-YX5SF65Z.js +826 -0
  48. package/dist/block.mds.junction-MXYEREFH.js +1543 -0
  49. package/dist/block.mds.svcnv-C5HEGIAK.js +6799 -0
  50. package/dist/block.svg-LZOSOJPZ.js +162 -0
  51. package/dist/block.tk.aicheck-YMMJJWD7.js +281 -0
  52. package/dist/block.tk.ase-IPQUSAE7.js +363 -0
  53. package/dist/block.tk.bam-HJLFTBGN.js +1904 -0
  54. package/dist/block.tk.bedgraphdot-5ZBNIQFY.js +382 -0
  55. package/dist/block.tk.bigwig.ui-V2GLBUU5.js +209 -0
  56. package/dist/block.tk.hicstraw-3NJLYMEJ.js +821 -0
  57. package/dist/block.tk.junction-C4CAACOA.js +2362 -0
  58. package/dist/block.tk.junction.textmatrixui-NJCGCHZ5.js +197 -0
  59. package/dist/block.tk.ld-PNX72F42.js +97 -0
  60. package/dist/block.tk.menu-AZ44SBLU.js +1027 -0
  61. package/dist/block.tk.pgv-AGD3EYGQ.js +942 -0
  62. package/dist/brainImaging-5DO3465Z.js +421 -0
  63. package/dist/chat-346IEKTC.js +147 -0
  64. package/dist/chunk-2GGOU75N.js +2672 -0
  65. package/dist/chunk-2GGOU75N.js.map +7 -0
  66. package/dist/chunk-2K5DSRBJ.js +84 -0
  67. package/dist/chunk-2K5DSRBJ.js.map +7 -0
  68. package/dist/chunk-2NVHNNBT.js +286 -0
  69. package/dist/chunk-2Q52VJDX.js +153 -0
  70. package/dist/chunk-2Q52VJDX.js.map +7 -0
  71. package/dist/chunk-2ZEGV5AG.js +370 -0
  72. package/dist/chunk-3W2QIOL2.js +4202 -0
  73. package/dist/chunk-3W2QIOL2.js.map +7 -0
  74. package/dist/chunk-46COTHPZ.js +1275 -0
  75. package/dist/chunk-46COTHPZ.js.map +7 -0
  76. package/dist/chunk-4D4SESA7.js +1413 -0
  77. package/dist/chunk-4D4SESA7.js.map +7 -0
  78. package/dist/chunk-4UAWJRR6.js +526 -0
  79. package/dist/chunk-4VGSBYQC.js +6364 -0
  80. package/dist/chunk-5MB65WAE.js +534 -0
  81. package/dist/chunk-6RUSW7HY.js +480 -0
  82. package/dist/chunk-6RUSW7HY.js.map +7 -0
  83. package/dist/chunk-6RXCKL6A.js +158 -0
  84. package/dist/chunk-72YYKDTX.js +330 -0
  85. package/dist/chunk-72YYKDTX.js.map +7 -0
  86. package/dist/chunk-7Q5X253Q.js +423 -0
  87. package/dist/chunk-7Q5X253Q.js.map +7 -0
  88. package/dist/chunk-A2UFOQ3B.js +170 -0
  89. package/dist/chunk-A4RBXF53.js +158 -0
  90. package/dist/chunk-AQ4OP4GR.js +39 -0
  91. package/dist/chunk-AUWK22ER.js +504 -0
  92. package/dist/chunk-AXOTFMIM.js +26 -0
  93. package/dist/chunk-CFXUDZWK.js +95 -0
  94. package/dist/chunk-CRRWBY4C.js +229 -0
  95. package/dist/chunk-D6VDBY2S.js +217 -0
  96. package/dist/chunk-DN52ILXL.js +293 -0
  97. package/dist/chunk-DTCFNQKZ.js +215 -0
  98. package/dist/chunk-ED3HWBZF.js +46 -0
  99. package/dist/chunk-EWTGCHU5.js +100 -0
  100. package/dist/chunk-FJ6KNGDS.js +226 -0
  101. package/dist/chunk-FVWCYGJL.js +121 -0
  102. package/dist/chunk-GM6H3CUI.js +177 -0
  103. package/dist/chunk-GQVM3NTV.js +615 -0
  104. package/dist/chunk-H3RU5NUZ.js +1155 -0
  105. package/dist/chunk-HEKX7RAT.js +406 -0
  106. package/dist/chunk-HGHRMQQO.js +203 -0
  107. package/dist/chunk-HIV4NSWS.js +205 -0
  108. package/dist/chunk-HMXYZXDN.js +1147 -0
  109. package/dist/chunk-IA6ZJ6ZS.js +629 -0
  110. package/dist/chunk-INROHUDU.js +272 -0
  111. package/dist/chunk-JEN6TGBR.js +228 -0
  112. package/dist/chunk-JGRIKYJE.js +92 -0
  113. package/dist/chunk-JGRIKYJE.js.map +7 -0
  114. package/dist/chunk-JGU7ERLS.js +2784 -0
  115. package/dist/chunk-K2CTY4BE.js +381 -0
  116. package/dist/chunk-K7PK3JQJ.js +194 -0
  117. package/dist/chunk-KDKY7S5G.js +1764 -0
  118. package/dist/chunk-KDKY7S5G.js.map +7 -0
  119. package/dist/chunk-KFRJ5LNK.js +334 -0
  120. package/dist/chunk-KKQON43X.js +102 -0
  121. package/dist/chunk-KKQON43X.js.map +7 -0
  122. package/dist/chunk-L4QG7XZE.js +46 -0
  123. package/dist/chunk-L4QG7XZE.js.map +7 -0
  124. package/dist/chunk-LAVSN35L.js +48 -0
  125. package/dist/chunk-LUW252RA.js +302 -0
  126. package/dist/chunk-MBYEA2R3.js +129 -0
  127. package/dist/chunk-NF34NHZM.js +4945 -0
  128. package/dist/chunk-NF34NHZM.js.map +7 -0
  129. package/dist/chunk-O55HHVQS.js +276 -0
  130. package/dist/chunk-O55HHVQS.js.map +7 -0
  131. package/dist/chunk-OGZPMUPF.js +446 -0
  132. package/dist/chunk-OJSG5RK5.js +52 -0
  133. package/dist/chunk-OM22RN7S.js +438 -0
  134. package/dist/chunk-OTK7UQ7K.js +252 -0
  135. package/dist/chunk-PJCALFS6.js +749 -0
  136. package/dist/chunk-Q3SI7IQ7.js +142 -0
  137. package/dist/chunk-RGAJYIKI.js +34 -0
  138. package/dist/chunk-RMQMUFIK.js +36 -0
  139. package/dist/chunk-RTKRLATH.js +247 -0
  140. package/dist/chunk-RTKRLATH.js.map +7 -0
  141. package/dist/chunk-SAHCLNNL.js +19974 -0
  142. package/dist/chunk-SAHCLNNL.js.map +7 -0
  143. package/dist/chunk-SMD5GI24.js +1087 -0
  144. package/dist/chunk-SMKRNNHY.js +462 -0
  145. package/dist/chunk-SNMJEDHY.js +815 -0
  146. package/dist/chunk-SOYDFNWV.js +1656 -0
  147. package/dist/chunk-SOYDFNWV.js.map +7 -0
  148. package/dist/chunk-T4PUAROY.js +368 -0
  149. package/dist/chunk-TEA3NTUR.js +31 -0
  150. package/dist/chunk-TECXLSHZ.js +147 -0
  151. package/dist/chunk-TV74I3Y5.js +43 -0
  152. package/dist/chunk-TV74I3Y5.js.map +7 -0
  153. package/dist/chunk-VDNVTMJ3.js +14 -0
  154. package/dist/chunk-VPRXRWOR.js +2815 -0
  155. package/dist/chunk-VQHUYWD6.js +261 -0
  156. package/dist/chunk-VQHUYWD6.js.map +7 -0
  157. package/dist/chunk-WVJKEXT7.js +98 -0
  158. package/dist/chunk-XEBPIJHM.js +168 -0
  159. package/dist/chunk-XEBPIJHM.js.map +7 -0
  160. package/dist/chunk-XQMDLYEK.js +119 -0
  161. package/dist/chunk-XQMDLYEK.js.map +7 -0
  162. package/dist/chunk-YBRYGRGG.js +237 -0
  163. package/dist/chunk-YBRYGRGG.js.map +7 -0
  164. package/dist/chunk-YFCDOHEK.js +146 -0
  165. package/dist/chunk-YMY73A3W.js +1201 -0
  166. package/dist/chunk-YUPIKHOC.js +107 -0
  167. package/dist/chunk-Z3BKMKQR.js +2370 -0
  168. package/dist/chunk-Z3BKMKQR.js.map +7 -0
  169. package/dist/chunk-Z5XHVPCP.js +386 -0
  170. package/dist/chunk-Z5XHVPCP.js.map +7 -0
  171. package/dist/chunk-ZGWYEVXK.js +54 -0
  172. package/dist/chunk-ZMY7LBL6.js +55 -0
  173. package/dist/condition-NJCZST5Q.js +330 -0
  174. package/dist/controls-F4X2WXQB.js +39 -0
  175. package/dist/controls.config-XGY3VBIY.js +37 -0
  176. package/dist/correlation-6VR3QLD5.js +96 -0
  177. package/dist/cuminc-ENV7RGH2.js +1147 -0
  178. package/dist/cuminc.integration.spec-SBZ4BINE.js +676 -0
  179. package/dist/customdata.inputui-DRCIAHVC.js +285 -0
  180. package/dist/dataDownload-E22OVEWA.js +328 -0
  181. package/dist/dataDownload.integration.spec-SHXBOHP7.js +191 -0
  182. package/dist/databrowser.ui-EY4MYHIN.js +419 -0
  183. package/dist/dictionary-RXSFDNVZ.js +98 -0
  184. package/dist/dnaMethylation-LBLLHMD4.js +36 -0
  185. package/dist/dnaMethylation.integration.spec-SCZSVS4Q.js +179 -0
  186. package/dist/e2pca-7Y4E37LV.js +348 -0
  187. package/dist/ep-3CMYYJHS.js +1254 -0
  188. package/dist/expclust.gdc.spec-PBOZFONS.js +305 -0
  189. package/dist/facet-VWQJBZCD.js +519 -0
  190. package/dist/geneExpClustering-FBKONWXK.js +246 -0
  191. package/dist/geneExpression-3K67HK7E.js +312 -0
  192. package/dist/geneExpression-3O5CGX4X.js +36 -0
  193. package/dist/geneExpression.unit.spec-PAWYATIF.js +100 -0
  194. package/dist/geneORA-4I7AQCHS.js +276 -0
  195. package/dist/geneVariant-6RSUL5BT.js +37 -0
  196. package/dist/geneVariant-IONFAQDH.js +39 -0
  197. package/dist/geneVariant.integration.spec-D5JQMXWA.js +196 -0
  198. package/dist/genefusion.ui-5TEA3V7M.js +249 -0
  199. package/dist/geneset-FPSUFQYL.js +194 -0
  200. package/dist/genomeBrowser.spec-37JOBDU3.js +279 -0
  201. package/dist/grin2-A7DYEQOC.js +1554 -0
  202. package/dist/grin2-YVFBDIJR.js +1031 -0
  203. package/dist/gsea-OQH53X4W.js +45 -0
  204. package/dist/hierCluster-2AQPDWQN.js +58 -0
  205. package/dist/hierCluster-H4EP5RK6.js +62 -0
  206. package/dist/hierCluster.config-OMHLRSMT.js +38 -0
  207. package/dist/hierCluster.integration.spec-EZC3DXH5.js +374 -0
  208. package/dist/hierCluster.integration.spec-EZC3DXH5.js.map +7 -0
  209. package/dist/hierCluster.interactivity-VD23UMI7.js +52 -0
  210. package/dist/hierCluster.renderers-ZKODOVW5.js +21 -0
  211. package/dist/imagePlot-5RQLP27H.js +139 -0
  212. package/dist/importPlot-R4LOYFA3.js +8 -0
  213. package/dist/launch.adhoc-7NRKGIIF.js +40 -0
  214. package/dist/leftlabel.sample-BSDNBLN4.js +256 -0
  215. package/dist/legacyDataset-4PBBW67M.js +119 -0
  216. package/dist/lollipop-L62KZOCL.js +166 -0
  217. package/dist/maf-4TQPFF46.js +442 -0
  218. package/dist/maftimeline-XIAKNULE.js +591 -0
  219. package/dist/matrix-H72HOOI5.js +57 -0
  220. package/dist/matrix-W6ARLZHT.js +62 -0
  221. package/dist/matrix.cells-AP4ENHAY.js +28 -0
  222. package/dist/matrix.config-HJURMAA2.js +39 -0
  223. package/dist/matrix.controls-77T2V4MM.js +37 -0
  224. package/dist/matrix.data-OPJXBHQF.js +25 -0
  225. package/dist/matrix.groups-RF5XZTIX.js +26 -0
  226. package/dist/matrix.integration.spec-NXFIEBAV.js +3070 -0
  227. package/dist/matrix.interactivity-KYV3I5NA.js +40 -0
  228. package/dist/matrix.layout-BKCT6WFO.js +42 -0
  229. package/dist/matrix.legend-DMR5WO2B.js +22 -0
  230. package/dist/matrix.renderers-YA45F4J3.js +36 -0
  231. package/dist/matrix.serieses-LIJYLDRY.js +21 -0
  232. package/dist/matrix.sort-MJXBZP5Z.js +27 -0
  233. package/dist/matrix.sort.unit.spec-XZ66MEFK.js +470 -0
  234. package/dist/matrix.sorterUi-RYZPGKNR.js +18 -0
  235. package/dist/matrix.sorterUi.unit.spec-5HLSSQDG.js +340 -0
  236. package/dist/mavb-6BDLX76H.js +730 -0
  237. package/dist/mds.fimo-JWUDO2YS.js +516 -0
  238. package/dist/mds.samplescatterplot-H5ZHOO3F.js +1548 -0
  239. package/dist/mds.survivalplot-6LJPCDUC.js +481 -0
  240. package/dist/oncomatrix-5TAYUFN7.js +293 -0
  241. package/dist/oncomatrix.spec-4J6ZQSCA.js +446 -0
  242. package/dist/plot.2dvaf-NEKUHMQA.js +375 -0
  243. package/dist/plot.app-CDA4NVBW.js +39 -0
  244. package/dist/plot.barplot-WPNGNPFU.js +100 -0
  245. package/dist/plot.boxplot-FBHMTSOE.js +150 -0
  246. package/dist/plot.brainImaging-53CS65FP.js +51 -0
  247. package/dist/plot.disco-477IKREB.js +101 -0
  248. package/dist/plot.dzi-37H4EUKF.js +33 -0
  249. package/dist/plot.ssgq-WR3HFXR4.js +137 -0
  250. package/dist/plot.vaf2cov-FCGREDI7.js +257 -0
  251. package/dist/plot.wsi-HO3DYKJ6.js +36 -0
  252. package/dist/polar-LRVTYG4P.js +184 -0
  253. package/dist/profile.spec-K2JOABV3.js +78 -0
  254. package/dist/profileBarchart-IYWOBHGP.js +265 -0
  255. package/dist/profileForms-4VCEGMGS.js +367 -0
  256. package/dist/profilePlot-N246QTWM.js +52 -0
  257. package/dist/profileRadar-2ENLQG7V.js +261 -0
  258. package/dist/profileRadarFacility-FTNZELJ7.js +261 -0
  259. package/dist/proteomeAbundance-AM4N7PLI.js +19 -0
  260. package/dist/proteomeAbundance-K5AR6HO5.js +63 -0
  261. package/dist/proteomeAbundance-K5AR6HO5.js.map +7 -0
  262. package/dist/qualitative-I3GVVQ6U.js +41 -0
  263. package/dist/regression-XBZL2KMJ.js +54 -0
  264. package/dist/regression.inputs-UCM5THYS.js +46 -0
  265. package/dist/regression.inputs.term-24JWPAVV.js +46 -0
  266. package/dist/regression.inputs.values.table-QOHYUCIJ.js +43 -0
  267. package/dist/regression.integration.spec-JJXWPLID.js +784 -0
  268. package/dist/regression.results-T34IDQTC.js +38 -0
  269. package/dist/regression.spec-E74GPU5O.js +706 -0
  270. package/dist/report-U65OAFJR.js +220 -0
  271. package/dist/sampleScatter.spec-3LFSRARK.js +200 -0
  272. package/dist/sampleView-MX7LX3EJ.js +46 -0
  273. package/dist/samplelst-V4I6WIOC.js +109 -0
  274. package/dist/samplematrix-LNZJNTRE.js +2196 -0
  275. package/dist/sc-T2BPIFZ4.js +84 -0
  276. package/dist/scatter-PER7W2GO.js +800 -0
  277. package/dist/scatter.integration.spec-EUSA7IOP.js +1194 -0
  278. package/dist/scatter.integration.spec-EUSA7IOP.js.map +7 -0
  279. package/dist/selectGenomeWithTklst-UEJZV63V.js +132 -0
  280. package/dist/singleCellCellType-OLXPVJE6.js +36 -0
  281. package/dist/singleCellCellType.unit.spec-MQH6HMRC.js +177 -0
  282. package/dist/singleCellGeneExpression-P2K6EAGJ.js +36 -0
  283. package/dist/singleCellGeneExpression.unit.spec-LMCCDVIY.js +163 -0
  284. package/dist/singleCellPlot-CP5QDUSH.js +51 -0
  285. package/dist/singlecell-57YOSKNP.js +84 -0
  286. package/dist/singlecell-FGDYQAVM.js +1570 -0
  287. package/dist/snp-BYMKURQO.js +36 -0
  288. package/dist/snp.unit.spec-6UGQYGQR.js +174 -0
  289. package/dist/snplocus-AYSJ7PSU.js +206 -0
  290. package/dist/spliceevent.a53ss.diagram-BB73A4HM.js +149 -0
  291. package/dist/spliceevent.exonskip.diagram-VWIAD5DQ.js +275 -0
  292. package/dist/spliceevent.noeventdiagram-QACCAJS4.js +458 -0
  293. package/dist/ssGSEA-REHCYQ7Z.js +36 -0
  294. package/dist/ssGSEA.unit.spec-XJNHMFF5.js +86 -0
  295. package/dist/summarizeCnvGeneexp-NDEEB7PV.js +158 -0
  296. package/dist/summarizeGeneexpSurvival-ZCGBEB4C.js +105 -0
  297. package/dist/summarizeMutationCnv-OOMN2AVW.js +159 -0
  298. package/dist/summarizeMutationDiagnosis-B6TF3KU5.js +38 -0
  299. package/dist/summarizeMutationSurvival-Y2J6T2CS.js +97 -0
  300. package/dist/summary-O5LSGPWD.js +45 -0
  301. package/dist/summary.integration.spec-EH7FMP7B.js +412 -0
  302. package/dist/summaryInput-ZWURF7E2.js +218 -0
  303. package/dist/sunburst-ZDE5Q2SJ.js +282 -0
  304. package/dist/survival-DTUOFMGJ.js +44 -0
  305. package/dist/survival-XKLFNJF2.js +56 -0
  306. package/dist/survival.integration.spec-J352BAT4.js +787 -0
  307. package/dist/svgraph-NZQ6Z4HS.js +1385 -0
  308. package/dist/svmr-BPDWKVL2.js +3840 -0
  309. package/dist/table-6FOITCXA.js +198 -0
  310. package/dist/termCollection-HFDUSCPL.js +36 -0
  311. package/dist/termCollection-SWYRSREU.js +177 -0
  312. package/dist/termCollection.unit.spec-ZSAAQS26.js +206 -0
  313. package/dist/tk-D2YVENB3.js +44 -0
  314. package/dist/tp.ui-XALNLDLX.js +1457 -0
  315. package/dist/tvs.density-HSVPDDGA.js +18 -0
  316. package/dist/tvs.dt-TOZ47QR3.js +37 -0
  317. package/dist/tvs.dtcnv.categorical-OZFNQFCX.js +38 -0
  318. package/dist/tvs.dtcnv.continuous-XCZJ7JOD.js +70 -0
  319. package/dist/tvs.dtfusion-G3BI6YSH.js +38 -0
  320. package/dist/tvs.dtsnvindel-ETMWTQLL.js +38 -0
  321. package/dist/tvs.dtsv-66AEHBQE.js +38 -0
  322. package/dist/tvs.numeric-AU4U3UXI.js +21 -0
  323. package/dist/tvs.samplelst-TMUNONJI.js +102 -0
  324. package/dist/tvs.termCollection-HZ2ZVONI.js +151 -0
  325. package/dist/violin-P4A4BLKJ.js +44 -0
  326. package/dist/violin.integration.spec-DSSHXEES.js +1417 -0
  327. package/dist/violin.interactivity-FRXW7MH4.js +36 -0
  328. package/dist/violin.renderer-LQAFOSRK.js +38 -0
  329. package/dist/vocabulary-ELXLTPKE.js +39 -0
  330. package/dist/vocabulary-ELXLTPKE.js.map +7 -0
  331. package/package.json +3 -3
  332. package/dist/2dmaf-XRPOTQDU.js +0 -1371
  333. package/dist/AIProjectAdmin-Y6HPDEG6.js +0 -830
  334. package/dist/AppHeader-BBVIL4Y2.js +0 -833
  335. package/dist/BoxPlot-CRLSHBKA.js +0 -1184
  336. package/dist/CorrelationVolcano-CMY7UGYT.js +0 -617
  337. package/dist/DifferentialAnalysis-OIBUAY4O.js +0 -238
  338. package/dist/Disco-UNPSOUQ4.js +0 -3198
  339. package/dist/Disco-UNPSOUQ4.js.map +0 -7
  340. package/dist/Disco.UI-ODDXIAWH.js +0 -242
  341. package/dist/DmrPlot-JKNCSNGQ.js +0 -151
  342. package/dist/GB-TDX5IHWX.js +0 -1125
  343. package/dist/HicApp-TCV4FS7E.js +0 -2248
  344. package/dist/NumBinaryEditor-6HTFH5FY.js +0 -266
  345. package/dist/NumBinaryEditor.unit.spec-WQ3JNUQ5.js +0 -284
  346. package/dist/NumContEditor-SPHMFOFQ.js +0 -105
  347. package/dist/NumContEditor.unit.spec-O5X3I64X.js +0 -167
  348. package/dist/NumCustomBinEditor-TOYSQP4N.js +0 -36
  349. package/dist/NumCustomBinEditor.unit.spec-C3RGLZ66.js +0 -282
  350. package/dist/NumDiscreteEditor-YH4GA2QU.js +0 -170
  351. package/dist/NumDiscreteEditor.unit.spec-Q4YWXUDI.js +0 -200
  352. package/dist/NumRegularBinEditor-VOMG7SEN.js +0 -36
  353. package/dist/NumRegularBinEditor.unit.spec-DGK6OCYA.js +0 -225
  354. package/dist/NumSplineEditor-ZQUZHKX7.js +0 -188
  355. package/dist/NumSplineEditor.unit.spec-WIELA3UO.js +0 -197
  356. package/dist/NumericDensity-STVC5FR2.js +0 -36
  357. package/dist/NumericDensity.unit.spec-TNGOEAPS.js +0 -219
  358. package/dist/NumericHandler-42Y7UO3B.js +0 -37
  359. package/dist/NumericHandler.unit.spec-NX3FLHTT.js +0 -217
  360. package/dist/RunChart2-UVFQH4NJ.js +0 -756
  361. package/dist/SC-GGR54SO2.js +0 -725
  362. package/dist/Volcano-SWO5S4LF.js +0 -1092
  363. package/dist/WSIViewer-67IUYLCN.js +0 -46972
  364. package/dist/WsiSamplesPlot-ZOABZBI4.js +0 -163
  365. package/dist/adSandbox-CBLQAQJF.js +0 -36
  366. package/dist/alphaGenome-XJFQ24PG.js +0 -173
  367. package/dist/app-I3VGBBL5.js +0 -35
  368. package/dist/app-KKQRY35L.js +0 -47
  369. package/dist/bam-R5Q7E4PV.js +0 -849
  370. package/dist/barchart-D4GZAPHJ.js +0 -45
  371. package/dist/barchart.data-RSXEAMID.js +0 -22
  372. package/dist/barchart.events-HTZSPF6D.js +0 -45
  373. package/dist/barchart.integration.spec-NNJYJC44.js +0 -1675
  374. package/dist/block-6AULTYNF.js +0 -6300
  375. package/dist/block.init-WYBRJUDH.js +0 -36
  376. package/dist/block.mds.expressionrank-E7I2DP3V.js +0 -357
  377. package/dist/block.mds.geneboxplot-HMI6X526.js +0 -826
  378. package/dist/block.mds.junction-GH6LIIZG.js +0 -1543
  379. package/dist/block.mds.svcnv-X4PDPNI5.js +0 -6799
  380. package/dist/block.svg-W6KDKWAC.js +0 -162
  381. package/dist/block.tk.aicheck-YKZF7QPX.js +0 -281
  382. package/dist/block.tk.ase-YP2TEE7F.js +0 -363
  383. package/dist/block.tk.bam-UTZHNWLU.js +0 -1904
  384. package/dist/block.tk.bedgraphdot-ZYZNYH43.js +0 -382
  385. package/dist/block.tk.bigwig.ui-J7EJKZSB.js +0 -209
  386. package/dist/block.tk.hicstraw-EABGSDZT.js +0 -821
  387. package/dist/block.tk.junction-6PCAR65K.js +0 -2362
  388. package/dist/block.tk.junction.textmatrixui-3XCI6TUK.js +0 -197
  389. package/dist/block.tk.ld-POXNFUUP.js +0 -97
  390. package/dist/block.tk.menu-O2RTQNVA.js +0 -1027
  391. package/dist/block.tk.pgv-3YUGYTAM.js +0 -942
  392. package/dist/brainImaging-ZXQ6427A.js +0 -421
  393. package/dist/chat-26P2POKL.js +0 -147
  394. package/dist/chunk-2AAQVP35.js +0 -276
  395. package/dist/chunk-2AAQVP35.js.map +0 -7
  396. package/dist/chunk-2PBPUWVG.js +0 -4202
  397. package/dist/chunk-2PBPUWVG.js.map +0 -7
  398. package/dist/chunk-2YV6SLSN.js +0 -504
  399. package/dist/chunk-3RQDXPMF.js +0 -158
  400. package/dist/chunk-4U3X37P7.js +0 -368
  401. package/dist/chunk-5EUYO5JM.js +0 -293
  402. package/dist/chunk-5OHXYXLD.js +0 -46
  403. package/dist/chunk-5OHXYXLD.js.map +0 -7
  404. package/dist/chunk-5SB27JYT.js +0 -46
  405. package/dist/chunk-5TUM3XRB.js +0 -203
  406. package/dist/chunk-5UDKSRQK.js +0 -370
  407. package/dist/chunk-6DOPV4YR.js +0 -406
  408. package/dist/chunk-6FFL7DNW.js +0 -217
  409. package/dist/chunk-753JYY5R.js +0 -421
  410. package/dist/chunk-753JYY5R.js.map +0 -7
  411. package/dist/chunk-7BPHFWNS.js +0 -4945
  412. package/dist/chunk-7BPHFWNS.js.map +0 -7
  413. package/dist/chunk-AEMDVK4L.js +0 -146
  414. package/dist/chunk-AX6FH7EI.js +0 -26
  415. package/dist/chunk-BEWDIM6H.js +0 -42
  416. package/dist/chunk-BEWDIM6H.js.map +0 -7
  417. package/dist/chunk-BIUYEBET.js +0 -526
  418. package/dist/chunk-C5FRQK4N.js +0 -1087
  419. package/dist/chunk-CSHYN3WA.js +0 -302
  420. package/dist/chunk-DHQHLBGH.js +0 -205
  421. package/dist/chunk-DIBNJ6DG.js +0 -229
  422. package/dist/chunk-DONWY7TP.js +0 -39
  423. package/dist/chunk-DU4EIQ4C.js +0 -2683
  424. package/dist/chunk-DU4EIQ4C.js.map +0 -7
  425. package/dist/chunk-EAHT56LQ.js +0 -177
  426. package/dist/chunk-EOLAW55O.js +0 -2327
  427. package/dist/chunk-EOLAW55O.js.map +0 -7
  428. package/dist/chunk-EPGSHRD6.js +0 -20018
  429. package/dist/chunk-EPGSHRD6.js.map +0 -7
  430. package/dist/chunk-F6XC3L7V.js +0 -386
  431. package/dist/chunk-F6XC3L7V.js.map +0 -7
  432. package/dist/chunk-FG4ZGAE2.js +0 -147
  433. package/dist/chunk-FNQIF4YM.js +0 -48
  434. package/dist/chunk-FP2WUSUV.js +0 -100
  435. package/dist/chunk-FXNFDZBK.js +0 -2815
  436. package/dist/chunk-FY7D5KJW.js +0 -1413
  437. package/dist/chunk-FY7D5KJW.js.map +0 -7
  438. package/dist/chunk-GJD6CXOH.js +0 -95
  439. package/dist/chunk-GQV2V5MQ.js +0 -129
  440. package/dist/chunk-GRP5BFV6.js +0 -228
  441. package/dist/chunk-H5D3CMXT.js +0 -101
  442. package/dist/chunk-H5D3CMXT.js.map +0 -7
  443. package/dist/chunk-HES3EG3O.js +0 -31
  444. package/dist/chunk-IHA4FMNL.js +0 -55
  445. package/dist/chunk-IQIXGTQV.js +0 -84
  446. package/dist/chunk-IQIXGTQV.js.map +0 -7
  447. package/dist/chunk-IZ5H6KD4.js +0 -246
  448. package/dist/chunk-IZ5H6KD4.js.map +0 -7
  449. package/dist/chunk-JGDUGTKX.js +0 -14
  450. package/dist/chunk-JY6S3IJC.js +0 -107
  451. package/dist/chunk-K52HSRLL.js +0 -241
  452. package/dist/chunk-K52HSRLL.js.map +0 -7
  453. package/dist/chunk-K535LGE2.js +0 -1559
  454. package/dist/chunk-K535LGE2.js.map +0 -7
  455. package/dist/chunk-LDUAVBGW.js +0 -438
  456. package/dist/chunk-LFBEDMIT.js +0 -98
  457. package/dist/chunk-LHC3X2DP.js +0 -54
  458. package/dist/chunk-LPFM2MNU.js +0 -252
  459. package/dist/chunk-LWCFNUOW.js +0 -34
  460. package/dist/chunk-MAR6R3H5.js +0 -281
  461. package/dist/chunk-MAR6R3H5.js.map +0 -7
  462. package/dist/chunk-MNBFX3MS.js +0 -226
  463. package/dist/chunk-NR77BCU4.js +0 -1275
  464. package/dist/chunk-NR77BCU4.js.map +0 -7
  465. package/dist/chunk-O6TX37JQ.js +0 -815
  466. package/dist/chunk-OLOAKFZF.js +0 -170
  467. package/dist/chunk-P6NMCAVI.js +0 -52
  468. package/dist/chunk-PG3ROZWE.js +0 -615
  469. package/dist/chunk-PMIJURAQ.js +0 -286
  470. package/dist/chunk-PNCNPXIS.js +0 -256
  471. package/dist/chunk-PNCNPXIS.js.map +0 -7
  472. package/dist/chunk-R37DKXUQ.js +0 -194
  473. package/dist/chunk-RE2RAH2N.js +0 -462
  474. package/dist/chunk-RHGTRDHQ.js +0 -158
  475. package/dist/chunk-RWKOMJLI.js +0 -95
  476. package/dist/chunk-RWKOMJLI.js.map +0 -7
  477. package/dist/chunk-SGIUQ7YG.js +0 -446
  478. package/dist/chunk-TF4BMI2M.js +0 -1731
  479. package/dist/chunk-TF4BMI2M.js.map +0 -7
  480. package/dist/chunk-UEG7TL6D.js +0 -2784
  481. package/dist/chunk-UWX7W22M.js +0 -121
  482. package/dist/chunk-UYXGGZ2H.js +0 -381
  483. package/dist/chunk-V2P4V5FW.js +0 -629
  484. package/dist/chunk-VCKBMP7I.js +0 -1147
  485. package/dist/chunk-W7MBUYQV.js +0 -119
  486. package/dist/chunk-W7MBUYQV.js.map +0 -7
  487. package/dist/chunk-WD6TQESQ.js +0 -6364
  488. package/dist/chunk-XAATLZAS.js +0 -272
  489. package/dist/chunk-XORHQSNN.js +0 -534
  490. package/dist/chunk-XQRMLNMB.js +0 -749
  491. package/dist/chunk-XR5JON5N.js +0 -215
  492. package/dist/chunk-Y6SRLOZE.js +0 -142
  493. package/dist/chunk-YBR2WSWS.js +0 -482
  494. package/dist/chunk-YBR2WSWS.js.map +0 -7
  495. package/dist/chunk-YKJ3M52W.js +0 -1201
  496. package/dist/chunk-YL3RPMSG.js +0 -334
  497. package/dist/chunk-YURMUZ3J.js +0 -1155
  498. package/dist/chunk-ZLWXHJGG.js +0 -36
  499. package/dist/chunk-ZZMWPGNS.js +0 -169
  500. package/dist/chunk-ZZMWPGNS.js.map +0 -7
  501. package/dist/condition-47CFP6GZ.js +0 -330
  502. package/dist/controls-DDPU6QBE.js +0 -39
  503. package/dist/controls.config-EUYUFIWU.js +0 -37
  504. package/dist/correlation-N5XS6W7Y.js +0 -96
  505. package/dist/cuminc-4SQGINGP.js +0 -1147
  506. package/dist/cuminc.integration.spec-ICVP6TZW.js +0 -676
  507. package/dist/customdata.inputui-WCLXB62B.js +0 -285
  508. package/dist/dataDownload-EEX7RXDI.js +0 -328
  509. package/dist/dataDownload.integration.spec-MQMIVZF5.js +0 -191
  510. package/dist/databrowser.ui-52R3KPJE.js +0 -419
  511. package/dist/dictionary-RWFUSM5I.js +0 -98
  512. package/dist/dnaMethylation-76BZMYQV.js +0 -36
  513. package/dist/dnaMethylation.integration.spec-IJ3BYHWM.js +0 -179
  514. package/dist/e2pca-JXHX2G5O.js +0 -348
  515. package/dist/ep-HQBXQ2CU.js +0 -1254
  516. package/dist/expclust.gdc.spec-RUJ75H7G.js +0 -305
  517. package/dist/facet-IYOEFMXX.js +0 -519
  518. package/dist/geneExpClustering-A5ORFMCR.js +0 -246
  519. package/dist/geneExpression-4JPAG342.js +0 -312
  520. package/dist/geneExpression-CS6IC5YK.js +0 -36
  521. package/dist/geneExpression.unit.spec-M2RR57VN.js +0 -100
  522. package/dist/geneORA-KWTJGRSC.js +0 -276
  523. package/dist/geneVariant-6Z6JD7RE.js +0 -37
  524. package/dist/geneVariant-E3WFTPEJ.js +0 -39
  525. package/dist/geneVariant.integration.spec-OHLRA5LC.js +0 -196
  526. package/dist/genefusion.ui-BMWB6LTV.js +0 -249
  527. package/dist/geneset-XVG5WUP3.js +0 -194
  528. package/dist/genomeBrowser.spec-ZPHQTNZZ.js +0 -279
  529. package/dist/grin2-5MJE7WTM.js +0 -1554
  530. package/dist/grin2-XRWBTJ6P.js +0 -1031
  531. package/dist/gsea-ANUS3EB7.js +0 -45
  532. package/dist/hierCluster-F6AIINGR.js +0 -62
  533. package/dist/hierCluster-L365C2BW.js +0 -58
  534. package/dist/hierCluster.config-EAWIWY7G.js +0 -38
  535. package/dist/hierCluster.integration.spec-A6XLBEKB.js +0 -393
  536. package/dist/hierCluster.integration.spec-A6XLBEKB.js.map +0 -7
  537. package/dist/hierCluster.interactivity-RXKLKZJ7.js +0 -52
  538. package/dist/hierCluster.renderers-BHZNOML3.js +0 -21
  539. package/dist/imagePlot-HQJHYBMI.js +0 -139
  540. package/dist/importPlot-VD36EEYJ.js +0 -8
  541. package/dist/launch.adhoc-HCFMHPEH.js +0 -40
  542. package/dist/leftlabel.sample-CVG2KHY6.js +0 -256
  543. package/dist/legacyDataset-ALQDNTCK.js +0 -119
  544. package/dist/lollipop-WVMHA434.js +0 -166
  545. package/dist/maf-YFCW36CW.js +0 -442
  546. package/dist/maftimeline-B3ONLQLI.js +0 -591
  547. package/dist/matrix-FT5H2YVT.js +0 -57
  548. package/dist/matrix-XTQWNP6X.js +0 -62
  549. package/dist/matrix.cells-ZZGFKNTN.js +0 -28
  550. package/dist/matrix.config-T3F2KQJ3.js +0 -39
  551. package/dist/matrix.controls-AKDR7NUM.js +0 -37
  552. package/dist/matrix.data-FBQXHU2L.js +0 -25
  553. package/dist/matrix.groups-GSQFQZS2.js +0 -26
  554. package/dist/matrix.integration.spec-TNU3PHTT.js +0 -3070
  555. package/dist/matrix.interactivity-PF5EQ2VW.js +0 -40
  556. package/dist/matrix.layout-62CXYNJU.js +0 -42
  557. package/dist/matrix.legend-AAP2CDEZ.js +0 -22
  558. package/dist/matrix.renderers-S44INICR.js +0 -36
  559. package/dist/matrix.serieses-B5OJKZZZ.js +0 -21
  560. package/dist/matrix.sort-25APWUH3.js +0 -27
  561. package/dist/matrix.sort.unit.spec-MT5TJ6TP.js +0 -470
  562. package/dist/matrix.sorterUi-FDWJKGJM.js +0 -18
  563. package/dist/matrix.sorterUi.unit.spec-7RHMXULV.js +0 -340
  564. package/dist/mavb-RHCYQSK7.js +0 -730
  565. package/dist/mds.fimo-TM7YLN4F.js +0 -516
  566. package/dist/mds.samplescatterplot-LSNRX5LC.js +0 -1548
  567. package/dist/mds.survivalplot-PKEVTEC3.js +0 -481
  568. package/dist/mutationSignature-ZALSVJXI.js +0 -74
  569. package/dist/mutationSignature-ZALSVJXI.js.map +0 -7
  570. package/dist/numericDictTermCluster-3GDDFYJW.js +0 -72
  571. package/dist/numericDictTermCluster-3GDDFYJW.js.map +0 -7
  572. package/dist/oncomatrix-VA5BGIMU.js +0 -293
  573. package/dist/oncomatrix.spec-ZKSSTD3F.js +0 -446
  574. package/dist/plot.2dvaf-PRDECBWZ.js +0 -375
  575. package/dist/plot.app-LMUCBS2S.js +0 -39
  576. package/dist/plot.barplot-NI46LKJN.js +0 -100
  577. package/dist/plot.boxplot-RNJK3TH5.js +0 -150
  578. package/dist/plot.brainImaging-5PQKFCME.js +0 -51
  579. package/dist/plot.disco-NB6EWBO7.js +0 -101
  580. package/dist/plot.dzi-PGWTT7LB.js +0 -33
  581. package/dist/plot.ssgq-XLIV4C3J.js +0 -137
  582. package/dist/plot.vaf2cov-QRDE7BXH.js +0 -257
  583. package/dist/plot.wsi-KLYQYZUC.js +0 -36
  584. package/dist/polar-LXW6OMOZ.js +0 -184
  585. package/dist/profile.spec-Z622PMSX.js +0 -78
  586. package/dist/profileBarchart-3OCMQPHU.js +0 -265
  587. package/dist/profileForms-QNS26EYF.js +0 -367
  588. package/dist/profilePlot-E5LWDBSK.js +0 -52
  589. package/dist/profileRadar-JVISDMFQ.js +0 -261
  590. package/dist/profileRadarFacility-L3H7NERH.js +0 -261
  591. package/dist/qualitative-7KOKJDCI.js +0 -41
  592. package/dist/regression-H5SLMJTU.js +0 -54
  593. package/dist/regression.inputs-T4CB7HO6.js +0 -46
  594. package/dist/regression.inputs.term-CSO55NIV.js +0 -46
  595. package/dist/regression.inputs.values.table-3ORSYPRI.js +0 -43
  596. package/dist/regression.integration.spec-AODFYXEV.js +0 -784
  597. package/dist/regression.results-FVWF776Y.js +0 -38
  598. package/dist/regression.spec-D2SYDVSK.js +0 -706
  599. package/dist/report-DBHQIHVX.js +0 -220
  600. package/dist/sampleScatter.spec-NMQJ5WIE.js +0 -200
  601. package/dist/sampleView-OCADT4BV.js +0 -46
  602. package/dist/samplelst-GWEMRR4J.js +0 -109
  603. package/dist/samplematrix-QJ6PHCJ4.js +0 -2196
  604. package/dist/sc-NVPIXDG2.js +0 -84
  605. package/dist/scatter-H7HUQRKE.js +0 -800
  606. package/dist/scatter.integration.spec-QGQIYVYE.js +0 -1141
  607. package/dist/scatter.integration.spec-QGQIYVYE.js.map +0 -7
  608. package/dist/selectGenomeWithTklst-W6FA72HM.js +0 -132
  609. package/dist/singleCellCellType-OQEFL3EY.js +0 -36
  610. package/dist/singleCellCellType.unit.spec-BAIWJSUP.js +0 -177
  611. package/dist/singleCellGeneExpression-QPVTXR5W.js +0 -36
  612. package/dist/singleCellGeneExpression.unit.spec-Q5TS6VB5.js +0 -163
  613. package/dist/singleCellPlot-T2YNDBTX.js +0 -51
  614. package/dist/singlecell-B3NERPJ5.js +0 -1570
  615. package/dist/singlecell-PAOWCTF5.js +0 -84
  616. package/dist/snp-DAIHQXTJ.js +0 -36
  617. package/dist/snp.unit.spec-MXTEPR3Z.js +0 -174
  618. package/dist/snplocus-PMAVBMTK.js +0 -206
  619. package/dist/spliceevent.a53ss.diagram-G6W7EY3Q.js +0 -149
  620. package/dist/spliceevent.exonskip.diagram-YHUNDN4M.js +0 -275
  621. package/dist/spliceevent.noeventdiagram-FN3PORQA.js +0 -458
  622. package/dist/ssGSEA-5H4QBOY2.js +0 -36
  623. package/dist/ssGSEA.unit.spec-UBZGATIZ.js +0 -86
  624. package/dist/summarizeCnvGeneexp-IR7HMUG3.js +0 -158
  625. package/dist/summarizeGeneexpSurvival-INZXCZ37.js +0 -105
  626. package/dist/summarizeMutationCnv-GZFJTCRN.js +0 -159
  627. package/dist/summarizeMutationDiagnosis-OAUXQ6HD.js +0 -38
  628. package/dist/summarizeMutationSurvival-PT2BGPWD.js +0 -97
  629. package/dist/summary-SAVKS777.js +0 -45
  630. package/dist/summary.integration.spec-LWO7Y4OP.js +0 -412
  631. package/dist/summaryInput-SEIB7F3A.js +0 -218
  632. package/dist/sunburst-HCF2V66V.js +0 -282
  633. package/dist/survival-65IBMTWU.js +0 -44
  634. package/dist/survival-RIV2T7KO.js +0 -56
  635. package/dist/survival.integration.spec-2V2O4H7K.js +0 -787
  636. package/dist/svgraph-XV52FOMN.js +0 -1385
  637. package/dist/svmr-BDAHM7UH.js +0 -3840
  638. package/dist/table-5N2CRI36.js +0 -198
  639. package/dist/termCollection-GYMOT2EE.js +0 -36
  640. package/dist/termCollection-TZY6DOSP.js +0 -177
  641. package/dist/termCollection.unit.spec-VWHQ72DD.js +0 -206
  642. package/dist/tk-IOJVJ34S.js +0 -44
  643. package/dist/tp.ui-JHPHESWM.js +0 -1457
  644. package/dist/tvs.density-AQ5GD437.js +0 -18
  645. package/dist/tvs.dt-JPB46UPH.js +0 -37
  646. package/dist/tvs.dtcnv.categorical-37TA7GCY.js +0 -38
  647. package/dist/tvs.dtcnv.continuous-X4K3RPYG.js +0 -70
  648. package/dist/tvs.dtfusion-77SKDRRH.js +0 -38
  649. package/dist/tvs.dtsnvindel-2QGQ455S.js +0 -38
  650. package/dist/tvs.dtsv-QBCE5IHM.js +0 -38
  651. package/dist/tvs.numeric-PLNP7MBV.js +0 -21
  652. package/dist/tvs.samplelst-NRSYJ64L.js +0 -102
  653. package/dist/tvs.termCollection-BK36KZL2.js +0 -151
  654. package/dist/violin-DCKEHIVC.js +0 -44
  655. package/dist/violin.integration.spec-IIYDX5DT.js +0 -1417
  656. package/dist/violin.interactivity-RS6D5YPY.js +0 -36
  657. package/dist/violin.renderer-XIQTOVEK.js +0 -38
  658. package/dist/vocabulary-6437MWB6.js +0 -39
  659. /package/dist/{2dmaf-XRPOTQDU.js.map → 2dmaf-TA6JJ2OR.js.map} +0 -0
  660. /package/dist/{AIProjectAdmin-Y6HPDEG6.js.map → AIProjectAdmin-SAYM2UUO.js.map} +0 -0
  661. /package/dist/{AppHeader-BBVIL4Y2.js.map → AppHeader-7TNVJJA7.js.map} +0 -0
  662. /package/dist/{BoxPlot-CRLSHBKA.js.map → BoxPlot-IAROTQ5L.js.map} +0 -0
  663. /package/dist/{CorrelationVolcano-CMY7UGYT.js.map → CorrelationVolcano-ZFSDE4PA.js.map} +0 -0
  664. /package/dist/{DifferentialAnalysis-OIBUAY4O.js.map → DifferentialAnalysis-X44YRQNQ.js.map} +0 -0
  665. /package/dist/{Disco.UI-ODDXIAWH.js.map → Disco.UI-YWYNQSRV.js.map} +0 -0
  666. /package/dist/{DmrPlot-JKNCSNGQ.js.map → DmrPlot-5V5QL4VS.js.map} +0 -0
  667. /package/dist/{GB-TDX5IHWX.js.map → GB-3P67R4TI.js.map} +0 -0
  668. /package/dist/{HicApp-TCV4FS7E.js.map → HicApp-GKI7GS7Y.js.map} +0 -0
  669. /package/dist/{NumBinaryEditor-6HTFH5FY.js.map → NumBinaryEditor-FNIEMKOY.js.map} +0 -0
  670. /package/dist/{NumBinaryEditor.unit.spec-WQ3JNUQ5.js.map → NumBinaryEditor.unit.spec-CDHPXF7F.js.map} +0 -0
  671. /package/dist/{NumContEditor-SPHMFOFQ.js.map → NumContEditor-XICKQ4Y6.js.map} +0 -0
  672. /package/dist/{NumContEditor.unit.spec-O5X3I64X.js.map → NumContEditor.unit.spec-DVFH4SZT.js.map} +0 -0
  673. /package/dist/{NumCustomBinEditor-TOYSQP4N.js.map → NumCustomBinEditor-ZMND7YMB.js.map} +0 -0
  674. /package/dist/{NumCustomBinEditor.unit.spec-C3RGLZ66.js.map → NumCustomBinEditor.unit.spec-WLWD4FV2.js.map} +0 -0
  675. /package/dist/{NumDiscreteEditor-YH4GA2QU.js.map → NumDiscreteEditor-H2GG4COK.js.map} +0 -0
  676. /package/dist/{NumDiscreteEditor.unit.spec-Q4YWXUDI.js.map → NumDiscreteEditor.unit.spec-OEREZ6HB.js.map} +0 -0
  677. /package/dist/{NumRegularBinEditor-VOMG7SEN.js.map → NumRegularBinEditor-YGMQV7ZW.js.map} +0 -0
  678. /package/dist/{NumRegularBinEditor.unit.spec-DGK6OCYA.js.map → NumRegularBinEditor.unit.spec-ZUTXFGGA.js.map} +0 -0
  679. /package/dist/{NumSplineEditor-ZQUZHKX7.js.map → NumSplineEditor-VPKCUM2U.js.map} +0 -0
  680. /package/dist/{NumSplineEditor.unit.spec-WIELA3UO.js.map → NumSplineEditor.unit.spec-IDEB3KAY.js.map} +0 -0
  681. /package/dist/{NumericDensity-STVC5FR2.js.map → NumericDensity-5DDVJBBW.js.map} +0 -0
  682. /package/dist/{NumericDensity.unit.spec-TNGOEAPS.js.map → NumericDensity.unit.spec-KTOY3EON.js.map} +0 -0
  683. /package/dist/{NumericHandler-42Y7UO3B.js.map → NumericHandler-XBY7A7TV.js.map} +0 -0
  684. /package/dist/{NumericHandler.unit.spec-NX3FLHTT.js.map → NumericHandler.unit.spec-KKBJDLZY.js.map} +0 -0
  685. /package/dist/{RunChart2-UVFQH4NJ.js.map → RunChart2-F4652KYJ.js.map} +0 -0
  686. /package/dist/{SC-GGR54SO2.js.map → SC-GKNVRMYL.js.map} +0 -0
  687. /package/dist/{Volcano-SWO5S4LF.js.map → Volcano-ZHQFH2MP.js.map} +0 -0
  688. /package/dist/{WSIViewer-67IUYLCN.js.map → WSIViewer-MU3YXF7I.js.map} +0 -0
  689. /package/dist/{WsiSamplesPlot-ZOABZBI4.js.map → WsiSamplesPlot-ZP3EAQLW.js.map} +0 -0
  690. /package/dist/{adSandbox-CBLQAQJF.js.map → adSandbox-7FIAWUBA.js.map} +0 -0
  691. /package/dist/{alphaGenome-XJFQ24PG.js.map → alphaGenome-ACWK2XZL.js.map} +0 -0
  692. /package/dist/{app-I3VGBBL5.js.map → app-6V52ULRQ.js.map} +0 -0
  693. /package/dist/{app-KKQRY35L.js.map → app-PP7JFYBG.js.map} +0 -0
  694. /package/dist/{bam-R5Q7E4PV.js.map → bam-AESS7MP3.js.map} +0 -0
  695. /package/dist/{barchart-D4GZAPHJ.js.map → barchart-BKWC5UXM.js.map} +0 -0
  696. /package/dist/{barchart.data-RSXEAMID.js.map → barchart.data-BMH62H5G.js.map} +0 -0
  697. /package/dist/{barchart.events-HTZSPF6D.js.map → barchart.events-ZJSQB3KV.js.map} +0 -0
  698. /package/dist/{barchart.integration.spec-NNJYJC44.js.map → barchart.integration.spec-6QOIOO6T.js.map} +0 -0
  699. /package/dist/{block-6AULTYNF.js.map → block-PH3K3TGJ.js.map} +0 -0
  700. /package/dist/{block.init-WYBRJUDH.js.map → block.init-7LT7FK7V.js.map} +0 -0
  701. /package/dist/{block.mds.expressionrank-E7I2DP3V.js.map → block.mds.expressionrank-RH25BI5W.js.map} +0 -0
  702. /package/dist/{block.mds.geneboxplot-HMI6X526.js.map → block.mds.geneboxplot-YX5SF65Z.js.map} +0 -0
  703. /package/dist/{block.mds.junction-GH6LIIZG.js.map → block.mds.junction-MXYEREFH.js.map} +0 -0
  704. /package/dist/{block.mds.svcnv-X4PDPNI5.js.map → block.mds.svcnv-C5HEGIAK.js.map} +0 -0
  705. /package/dist/{block.svg-W6KDKWAC.js.map → block.svg-LZOSOJPZ.js.map} +0 -0
  706. /package/dist/{block.tk.aicheck-YKZF7QPX.js.map → block.tk.aicheck-YMMJJWD7.js.map} +0 -0
  707. /package/dist/{block.tk.ase-YP2TEE7F.js.map → block.tk.ase-IPQUSAE7.js.map} +0 -0
  708. /package/dist/{block.tk.bam-UTZHNWLU.js.map → block.tk.bam-HJLFTBGN.js.map} +0 -0
  709. /package/dist/{block.tk.bedgraphdot-ZYZNYH43.js.map → block.tk.bedgraphdot-5ZBNIQFY.js.map} +0 -0
  710. /package/dist/{block.tk.bigwig.ui-J7EJKZSB.js.map → block.tk.bigwig.ui-V2GLBUU5.js.map} +0 -0
  711. /package/dist/{block.tk.hicstraw-EABGSDZT.js.map → block.tk.hicstraw-3NJLYMEJ.js.map} +0 -0
  712. /package/dist/{block.tk.junction-6PCAR65K.js.map → block.tk.junction-C4CAACOA.js.map} +0 -0
  713. /package/dist/{block.tk.junction.textmatrixui-3XCI6TUK.js.map → block.tk.junction.textmatrixui-NJCGCHZ5.js.map} +0 -0
  714. /package/dist/{block.tk.ld-POXNFUUP.js.map → block.tk.ld-PNX72F42.js.map} +0 -0
  715. /package/dist/{block.tk.menu-O2RTQNVA.js.map → block.tk.menu-AZ44SBLU.js.map} +0 -0
  716. /package/dist/{block.tk.pgv-3YUGYTAM.js.map → block.tk.pgv-AGD3EYGQ.js.map} +0 -0
  717. /package/dist/{brainImaging-ZXQ6427A.js.map → brainImaging-5DO3465Z.js.map} +0 -0
  718. /package/dist/{chat-26P2POKL.js.map → chat-346IEKTC.js.map} +0 -0
  719. /package/dist/{chunk-PMIJURAQ.js.map → chunk-2NVHNNBT.js.map} +0 -0
  720. /package/dist/{chunk-5UDKSRQK.js.map → chunk-2ZEGV5AG.js.map} +0 -0
  721. /package/dist/{chunk-BIUYEBET.js.map → chunk-4UAWJRR6.js.map} +0 -0
  722. /package/dist/{chunk-WD6TQESQ.js.map → chunk-4VGSBYQC.js.map} +0 -0
  723. /package/dist/{chunk-XORHQSNN.js.map → chunk-5MB65WAE.js.map} +0 -0
  724. /package/dist/{chunk-RHGTRDHQ.js.map → chunk-6RXCKL6A.js.map} +0 -0
  725. /package/dist/{chunk-OLOAKFZF.js.map → chunk-A2UFOQ3B.js.map} +0 -0
  726. /package/dist/{chunk-3RQDXPMF.js.map → chunk-A4RBXF53.js.map} +0 -0
  727. /package/dist/{chunk-DONWY7TP.js.map → chunk-AQ4OP4GR.js.map} +0 -0
  728. /package/dist/{chunk-2YV6SLSN.js.map → chunk-AUWK22ER.js.map} +0 -0
  729. /package/dist/{chunk-AX6FH7EI.js.map → chunk-AXOTFMIM.js.map} +0 -0
  730. /package/dist/{chunk-GJD6CXOH.js.map → chunk-CFXUDZWK.js.map} +0 -0
  731. /package/dist/{chunk-DIBNJ6DG.js.map → chunk-CRRWBY4C.js.map} +0 -0
  732. /package/dist/{chunk-6FFL7DNW.js.map → chunk-D6VDBY2S.js.map} +0 -0
  733. /package/dist/{chunk-5EUYO5JM.js.map → chunk-DN52ILXL.js.map} +0 -0
  734. /package/dist/{chunk-XR5JON5N.js.map → chunk-DTCFNQKZ.js.map} +0 -0
  735. /package/dist/{chunk-5SB27JYT.js.map → chunk-ED3HWBZF.js.map} +0 -0
  736. /package/dist/{chunk-FP2WUSUV.js.map → chunk-EWTGCHU5.js.map} +0 -0
  737. /package/dist/{chunk-MNBFX3MS.js.map → chunk-FJ6KNGDS.js.map} +0 -0
  738. /package/dist/{chunk-UWX7W22M.js.map → chunk-FVWCYGJL.js.map} +0 -0
  739. /package/dist/{chunk-EAHT56LQ.js.map → chunk-GM6H3CUI.js.map} +0 -0
  740. /package/dist/{chunk-PG3ROZWE.js.map → chunk-GQVM3NTV.js.map} +0 -0
  741. /package/dist/{chunk-YURMUZ3J.js.map → chunk-H3RU5NUZ.js.map} +0 -0
  742. /package/dist/{chunk-6DOPV4YR.js.map → chunk-HEKX7RAT.js.map} +0 -0
  743. /package/dist/{chunk-5TUM3XRB.js.map → chunk-HGHRMQQO.js.map} +0 -0
  744. /package/dist/{chunk-DHQHLBGH.js.map → chunk-HIV4NSWS.js.map} +0 -0
  745. /package/dist/{chunk-VCKBMP7I.js.map → chunk-HMXYZXDN.js.map} +0 -0
  746. /package/dist/{chunk-V2P4V5FW.js.map → chunk-IA6ZJ6ZS.js.map} +0 -0
  747. /package/dist/{chunk-XAATLZAS.js.map → chunk-INROHUDU.js.map} +0 -0
  748. /package/dist/{chunk-GRP5BFV6.js.map → chunk-JEN6TGBR.js.map} +0 -0
  749. /package/dist/{chunk-UEG7TL6D.js.map → chunk-JGU7ERLS.js.map} +0 -0
  750. /package/dist/{chunk-UYXGGZ2H.js.map → chunk-K2CTY4BE.js.map} +0 -0
  751. /package/dist/{chunk-R37DKXUQ.js.map → chunk-K7PK3JQJ.js.map} +0 -0
  752. /package/dist/{chunk-YL3RPMSG.js.map → chunk-KFRJ5LNK.js.map} +0 -0
  753. /package/dist/{chunk-FNQIF4YM.js.map → chunk-LAVSN35L.js.map} +0 -0
  754. /package/dist/{chunk-CSHYN3WA.js.map → chunk-LUW252RA.js.map} +0 -0
  755. /package/dist/{chunk-GQV2V5MQ.js.map → chunk-MBYEA2R3.js.map} +0 -0
  756. /package/dist/{chunk-SGIUQ7YG.js.map → chunk-OGZPMUPF.js.map} +0 -0
  757. /package/dist/{chunk-P6NMCAVI.js.map → chunk-OJSG5RK5.js.map} +0 -0
  758. /package/dist/{chunk-LDUAVBGW.js.map → chunk-OM22RN7S.js.map} +0 -0
  759. /package/dist/{chunk-LPFM2MNU.js.map → chunk-OTK7UQ7K.js.map} +0 -0
  760. /package/dist/{chunk-XQRMLNMB.js.map → chunk-PJCALFS6.js.map} +0 -0
  761. /package/dist/{chunk-Y6SRLOZE.js.map → chunk-Q3SI7IQ7.js.map} +0 -0
  762. /package/dist/{chunk-LWCFNUOW.js.map → chunk-RGAJYIKI.js.map} +0 -0
  763. /package/dist/{chunk-ZLWXHJGG.js.map → chunk-RMQMUFIK.js.map} +0 -0
  764. /package/dist/{chunk-C5FRQK4N.js.map → chunk-SMD5GI24.js.map} +0 -0
  765. /package/dist/{chunk-RE2RAH2N.js.map → chunk-SMKRNNHY.js.map} +0 -0
  766. /package/dist/{chunk-O6TX37JQ.js.map → chunk-SNMJEDHY.js.map} +0 -0
  767. /package/dist/{chunk-4U3X37P7.js.map → chunk-T4PUAROY.js.map} +0 -0
  768. /package/dist/{chunk-HES3EG3O.js.map → chunk-TEA3NTUR.js.map} +0 -0
  769. /package/dist/{chunk-FG4ZGAE2.js.map → chunk-TECXLSHZ.js.map} +0 -0
  770. /package/dist/{chunk-JGDUGTKX.js.map → chunk-VDNVTMJ3.js.map} +0 -0
  771. /package/dist/{chunk-FXNFDZBK.js.map → chunk-VPRXRWOR.js.map} +0 -0
  772. /package/dist/{chunk-LFBEDMIT.js.map → chunk-WVJKEXT7.js.map} +0 -0
  773. /package/dist/{chunk-AEMDVK4L.js.map → chunk-YFCDOHEK.js.map} +0 -0
  774. /package/dist/{chunk-YKJ3M52W.js.map → chunk-YMY73A3W.js.map} +0 -0
  775. /package/dist/{chunk-JY6S3IJC.js.map → chunk-YUPIKHOC.js.map} +0 -0
  776. /package/dist/{chunk-LHC3X2DP.js.map → chunk-ZGWYEVXK.js.map} +0 -0
  777. /package/dist/{chunk-IHA4FMNL.js.map → chunk-ZMY7LBL6.js.map} +0 -0
  778. /package/dist/{condition-47CFP6GZ.js.map → condition-NJCZST5Q.js.map} +0 -0
  779. /package/dist/{controls-DDPU6QBE.js.map → controls-F4X2WXQB.js.map} +0 -0
  780. /package/dist/{controls.config-EUYUFIWU.js.map → controls.config-XGY3VBIY.js.map} +0 -0
  781. /package/dist/{correlation-N5XS6W7Y.js.map → correlation-6VR3QLD5.js.map} +0 -0
  782. /package/dist/{cuminc-4SQGINGP.js.map → cuminc-ENV7RGH2.js.map} +0 -0
  783. /package/dist/{cuminc.integration.spec-ICVP6TZW.js.map → cuminc.integration.spec-SBZ4BINE.js.map} +0 -0
  784. /package/dist/{customdata.inputui-WCLXB62B.js.map → customdata.inputui-DRCIAHVC.js.map} +0 -0
  785. /package/dist/{dataDownload-EEX7RXDI.js.map → dataDownload-E22OVEWA.js.map} +0 -0
  786. /package/dist/{dataDownload.integration.spec-MQMIVZF5.js.map → dataDownload.integration.spec-SHXBOHP7.js.map} +0 -0
  787. /package/dist/{databrowser.ui-52R3KPJE.js.map → databrowser.ui-EY4MYHIN.js.map} +0 -0
  788. /package/dist/{dictionary-RWFUSM5I.js.map → dictionary-RXSFDNVZ.js.map} +0 -0
  789. /package/dist/{dnaMethylation-76BZMYQV.js.map → dnaMethylation-LBLLHMD4.js.map} +0 -0
  790. /package/dist/{dnaMethylation.integration.spec-IJ3BYHWM.js.map → dnaMethylation.integration.spec-SCZSVS4Q.js.map} +0 -0
  791. /package/dist/{e2pca-JXHX2G5O.js.map → e2pca-7Y4E37LV.js.map} +0 -0
  792. /package/dist/{ep-HQBXQ2CU.js.map → ep-3CMYYJHS.js.map} +0 -0
  793. /package/dist/{expclust.gdc.spec-RUJ75H7G.js.map → expclust.gdc.spec-PBOZFONS.js.map} +0 -0
  794. /package/dist/{facet-IYOEFMXX.js.map → facet-VWQJBZCD.js.map} +0 -0
  795. /package/dist/{geneExpClustering-A5ORFMCR.js.map → geneExpClustering-FBKONWXK.js.map} +0 -0
  796. /package/dist/{geneExpression-4JPAG342.js.map → geneExpression-3K67HK7E.js.map} +0 -0
  797. /package/dist/{geneExpression-CS6IC5YK.js.map → geneExpression-3O5CGX4X.js.map} +0 -0
  798. /package/dist/{geneExpression.unit.spec-M2RR57VN.js.map → geneExpression.unit.spec-PAWYATIF.js.map} +0 -0
  799. /package/dist/{geneORA-KWTJGRSC.js.map → geneORA-4I7AQCHS.js.map} +0 -0
  800. /package/dist/{geneVariant-6Z6JD7RE.js.map → geneVariant-6RSUL5BT.js.map} +0 -0
  801. /package/dist/{geneVariant-E3WFTPEJ.js.map → geneVariant-IONFAQDH.js.map} +0 -0
  802. /package/dist/{geneVariant.integration.spec-OHLRA5LC.js.map → geneVariant.integration.spec-D5JQMXWA.js.map} +0 -0
  803. /package/dist/{genefusion.ui-BMWB6LTV.js.map → genefusion.ui-5TEA3V7M.js.map} +0 -0
  804. /package/dist/{geneset-XVG5WUP3.js.map → geneset-FPSUFQYL.js.map} +0 -0
  805. /package/dist/{genomeBrowser.spec-ZPHQTNZZ.js.map → genomeBrowser.spec-37JOBDU3.js.map} +0 -0
  806. /package/dist/{grin2-5MJE7WTM.js.map → grin2-A7DYEQOC.js.map} +0 -0
  807. /package/dist/{grin2-XRWBTJ6P.js.map → grin2-YVFBDIJR.js.map} +0 -0
  808. /package/dist/{gsea-ANUS3EB7.js.map → gsea-OQH53X4W.js.map} +0 -0
  809. /package/dist/{hierCluster-F6AIINGR.js.map → hierCluster-2AQPDWQN.js.map} +0 -0
  810. /package/dist/{hierCluster-L365C2BW.js.map → hierCluster-H4EP5RK6.js.map} +0 -0
  811. /package/dist/{hierCluster.config-EAWIWY7G.js.map → hierCluster.config-OMHLRSMT.js.map} +0 -0
  812. /package/dist/{hierCluster.interactivity-RXKLKZJ7.js.map → hierCluster.interactivity-VD23UMI7.js.map} +0 -0
  813. /package/dist/{hierCluster.renderers-BHZNOML3.js.map → hierCluster.renderers-ZKODOVW5.js.map} +0 -0
  814. /package/dist/{imagePlot-HQJHYBMI.js.map → imagePlot-5RQLP27H.js.map} +0 -0
  815. /package/dist/{importPlot-VD36EEYJ.js.map → importPlot-R4LOYFA3.js.map} +0 -0
  816. /package/dist/{launch.adhoc-HCFMHPEH.js.map → launch.adhoc-7NRKGIIF.js.map} +0 -0
  817. /package/dist/{leftlabel.sample-CVG2KHY6.js.map → leftlabel.sample-BSDNBLN4.js.map} +0 -0
  818. /package/dist/{legacyDataset-ALQDNTCK.js.map → legacyDataset-4PBBW67M.js.map} +0 -0
  819. /package/dist/{lollipop-WVMHA434.js.map → lollipop-L62KZOCL.js.map} +0 -0
  820. /package/dist/{maf-YFCW36CW.js.map → maf-4TQPFF46.js.map} +0 -0
  821. /package/dist/{maftimeline-B3ONLQLI.js.map → maftimeline-XIAKNULE.js.map} +0 -0
  822. /package/dist/{matrix-FT5H2YVT.js.map → matrix-H72HOOI5.js.map} +0 -0
  823. /package/dist/{matrix-XTQWNP6X.js.map → matrix-W6ARLZHT.js.map} +0 -0
  824. /package/dist/{matrix.cells-ZZGFKNTN.js.map → matrix.cells-AP4ENHAY.js.map} +0 -0
  825. /package/dist/{matrix.config-T3F2KQJ3.js.map → matrix.config-HJURMAA2.js.map} +0 -0
  826. /package/dist/{matrix.controls-AKDR7NUM.js.map → matrix.controls-77T2V4MM.js.map} +0 -0
  827. /package/dist/{matrix.data-FBQXHU2L.js.map → matrix.data-OPJXBHQF.js.map} +0 -0
  828. /package/dist/{matrix.groups-GSQFQZS2.js.map → matrix.groups-RF5XZTIX.js.map} +0 -0
  829. /package/dist/{matrix.integration.spec-TNU3PHTT.js.map → matrix.integration.spec-NXFIEBAV.js.map} +0 -0
  830. /package/dist/{matrix.interactivity-PF5EQ2VW.js.map → matrix.interactivity-KYV3I5NA.js.map} +0 -0
  831. /package/dist/{matrix.layout-62CXYNJU.js.map → matrix.layout-BKCT6WFO.js.map} +0 -0
  832. /package/dist/{matrix.legend-AAP2CDEZ.js.map → matrix.legend-DMR5WO2B.js.map} +0 -0
  833. /package/dist/{matrix.renderers-S44INICR.js.map → matrix.renderers-YA45F4J3.js.map} +0 -0
  834. /package/dist/{matrix.serieses-B5OJKZZZ.js.map → matrix.serieses-LIJYLDRY.js.map} +0 -0
  835. /package/dist/{matrix.sort-25APWUH3.js.map → matrix.sort-MJXBZP5Z.js.map} +0 -0
  836. /package/dist/{matrix.sort.unit.spec-MT5TJ6TP.js.map → matrix.sort.unit.spec-XZ66MEFK.js.map} +0 -0
  837. /package/dist/{matrix.sorterUi-FDWJKGJM.js.map → matrix.sorterUi-RYZPGKNR.js.map} +0 -0
  838. /package/dist/{matrix.sorterUi.unit.spec-7RHMXULV.js.map → matrix.sorterUi.unit.spec-5HLSSQDG.js.map} +0 -0
  839. /package/dist/{mavb-RHCYQSK7.js.map → mavb-6BDLX76H.js.map} +0 -0
  840. /package/dist/{mds.fimo-TM7YLN4F.js.map → mds.fimo-JWUDO2YS.js.map} +0 -0
  841. /package/dist/{mds.samplescatterplot-LSNRX5LC.js.map → mds.samplescatterplot-H5ZHOO3F.js.map} +0 -0
  842. /package/dist/{mds.survivalplot-PKEVTEC3.js.map → mds.survivalplot-6LJPCDUC.js.map} +0 -0
  843. /package/dist/{oncomatrix-VA5BGIMU.js.map → oncomatrix-5TAYUFN7.js.map} +0 -0
  844. /package/dist/{oncomatrix.spec-ZKSSTD3F.js.map → oncomatrix.spec-4J6ZQSCA.js.map} +0 -0
  845. /package/dist/{plot.2dvaf-PRDECBWZ.js.map → plot.2dvaf-NEKUHMQA.js.map} +0 -0
  846. /package/dist/{plot.app-LMUCBS2S.js.map → plot.app-CDA4NVBW.js.map} +0 -0
  847. /package/dist/{plot.barplot-NI46LKJN.js.map → plot.barplot-WPNGNPFU.js.map} +0 -0
  848. /package/dist/{plot.boxplot-RNJK3TH5.js.map → plot.boxplot-FBHMTSOE.js.map} +0 -0
  849. /package/dist/{plot.brainImaging-5PQKFCME.js.map → plot.brainImaging-53CS65FP.js.map} +0 -0
  850. /package/dist/{plot.disco-NB6EWBO7.js.map → plot.disco-477IKREB.js.map} +0 -0
  851. /package/dist/{plot.dzi-PGWTT7LB.js.map → plot.dzi-37H4EUKF.js.map} +0 -0
  852. /package/dist/{plot.ssgq-XLIV4C3J.js.map → plot.ssgq-WR3HFXR4.js.map} +0 -0
  853. /package/dist/{plot.vaf2cov-QRDE7BXH.js.map → plot.vaf2cov-FCGREDI7.js.map} +0 -0
  854. /package/dist/{plot.wsi-KLYQYZUC.js.map → plot.wsi-HO3DYKJ6.js.map} +0 -0
  855. /package/dist/{polar-LXW6OMOZ.js.map → polar-LRVTYG4P.js.map} +0 -0
  856. /package/dist/{profile.spec-Z622PMSX.js.map → profile.spec-K2JOABV3.js.map} +0 -0
  857. /package/dist/{profileBarchart-3OCMQPHU.js.map → profileBarchart-IYWOBHGP.js.map} +0 -0
  858. /package/dist/{profileForms-QNS26EYF.js.map → profileForms-4VCEGMGS.js.map} +0 -0
  859. /package/dist/{profilePlot-E5LWDBSK.js.map → profilePlot-N246QTWM.js.map} +0 -0
  860. /package/dist/{profileRadar-JVISDMFQ.js.map → profileRadar-2ENLQG7V.js.map} +0 -0
  861. /package/dist/{profileRadarFacility-L3H7NERH.js.map → profileRadarFacility-FTNZELJ7.js.map} +0 -0
  862. /package/dist/{qualitative-7KOKJDCI.js.map → proteomeAbundance-AM4N7PLI.js.map} +0 -0
  863. /package/dist/{regression-H5SLMJTU.js.map → qualitative-I3GVVQ6U.js.map} +0 -0
  864. /package/dist/{regression.inputs-T4CB7HO6.js.map → regression-XBZL2KMJ.js.map} +0 -0
  865. /package/dist/{regression.inputs.term-CSO55NIV.js.map → regression.inputs-UCM5THYS.js.map} +0 -0
  866. /package/dist/{regression.inputs.values.table-3ORSYPRI.js.map → regression.inputs.term-24JWPAVV.js.map} +0 -0
  867. /package/dist/{regression.results-FVWF776Y.js.map → regression.inputs.values.table-QOHYUCIJ.js.map} +0 -0
  868. /package/dist/{regression.integration.spec-AODFYXEV.js.map → regression.integration.spec-JJXWPLID.js.map} +0 -0
  869. /package/dist/{sampleView-OCADT4BV.js.map → regression.results-T34IDQTC.js.map} +0 -0
  870. /package/dist/{regression.spec-D2SYDVSK.js.map → regression.spec-E74GPU5O.js.map} +0 -0
  871. /package/dist/{report-DBHQIHVX.js.map → report-U65OAFJR.js.map} +0 -0
  872. /package/dist/{sampleScatter.spec-NMQJ5WIE.js.map → sampleScatter.spec-3LFSRARK.js.map} +0 -0
  873. /package/dist/{singleCellCellType-OQEFL3EY.js.map → sampleView-MX7LX3EJ.js.map} +0 -0
  874. /package/dist/{samplelst-GWEMRR4J.js.map → samplelst-V4I6WIOC.js.map} +0 -0
  875. /package/dist/{samplematrix-QJ6PHCJ4.js.map → samplematrix-LNZJNTRE.js.map} +0 -0
  876. /package/dist/{sc-NVPIXDG2.js.map → sc-T2BPIFZ4.js.map} +0 -0
  877. /package/dist/{scatter-H7HUQRKE.js.map → scatter-PER7W2GO.js.map} +0 -0
  878. /package/dist/{selectGenomeWithTklst-W6FA72HM.js.map → selectGenomeWithTklst-UEJZV63V.js.map} +0 -0
  879. /package/dist/{singleCellGeneExpression-QPVTXR5W.js.map → singleCellCellType-OLXPVJE6.js.map} +0 -0
  880. /package/dist/{singleCellCellType.unit.spec-BAIWJSUP.js.map → singleCellCellType.unit.spec-MQH6HMRC.js.map} +0 -0
  881. /package/dist/{singleCellPlot-T2YNDBTX.js.map → singleCellGeneExpression-P2K6EAGJ.js.map} +0 -0
  882. /package/dist/{singleCellGeneExpression.unit.spec-Q5TS6VB5.js.map → singleCellGeneExpression.unit.spec-LMCCDVIY.js.map} +0 -0
  883. /package/dist/{snp-DAIHQXTJ.js.map → singleCellPlot-CP5QDUSH.js.map} +0 -0
  884. /package/dist/{singlecell-PAOWCTF5.js.map → singlecell-57YOSKNP.js.map} +0 -0
  885. /package/dist/{singlecell-B3NERPJ5.js.map → singlecell-FGDYQAVM.js.map} +0 -0
  886. /package/dist/{ssGSEA-5H4QBOY2.js.map → snp-BYMKURQO.js.map} +0 -0
  887. /package/dist/{snp.unit.spec-MXTEPR3Z.js.map → snp.unit.spec-6UGQYGQR.js.map} +0 -0
  888. /package/dist/{snplocus-PMAVBMTK.js.map → snplocus-AYSJ7PSU.js.map} +0 -0
  889. /package/dist/{spliceevent.a53ss.diagram-G6W7EY3Q.js.map → spliceevent.a53ss.diagram-BB73A4HM.js.map} +0 -0
  890. /package/dist/{spliceevent.exonskip.diagram-YHUNDN4M.js.map → spliceevent.exonskip.diagram-VWIAD5DQ.js.map} +0 -0
  891. /package/dist/{spliceevent.noeventdiagram-FN3PORQA.js.map → spliceevent.noeventdiagram-QACCAJS4.js.map} +0 -0
  892. /package/dist/{summarizeMutationDiagnosis-OAUXQ6HD.js.map → ssGSEA-REHCYQ7Z.js.map} +0 -0
  893. /package/dist/{ssGSEA.unit.spec-UBZGATIZ.js.map → ssGSEA.unit.spec-XJNHMFF5.js.map} +0 -0
  894. /package/dist/{summarizeCnvGeneexp-IR7HMUG3.js.map → summarizeCnvGeneexp-NDEEB7PV.js.map} +0 -0
  895. /package/dist/{summarizeGeneexpSurvival-INZXCZ37.js.map → summarizeGeneexpSurvival-ZCGBEB4C.js.map} +0 -0
  896. /package/dist/{summarizeMutationCnv-GZFJTCRN.js.map → summarizeMutationCnv-OOMN2AVW.js.map} +0 -0
  897. /package/dist/{summary-SAVKS777.js.map → summarizeMutationDiagnosis-B6TF3KU5.js.map} +0 -0
  898. /package/dist/{summarizeMutationSurvival-PT2BGPWD.js.map → summarizeMutationSurvival-Y2J6T2CS.js.map} +0 -0
  899. /package/dist/{survival-65IBMTWU.js.map → summary-O5LSGPWD.js.map} +0 -0
  900. /package/dist/{summary.integration.spec-LWO7Y4OP.js.map → summary.integration.spec-EH7FMP7B.js.map} +0 -0
  901. /package/dist/{summaryInput-SEIB7F3A.js.map → summaryInput-ZWURF7E2.js.map} +0 -0
  902. /package/dist/{sunburst-HCF2V66V.js.map → sunburst-ZDE5Q2SJ.js.map} +0 -0
  903. /package/dist/{termCollection-GYMOT2EE.js.map → survival-DTUOFMGJ.js.map} +0 -0
  904. /package/dist/{survival-RIV2T7KO.js.map → survival-XKLFNJF2.js.map} +0 -0
  905. /package/dist/{survival.integration.spec-2V2O4H7K.js.map → survival.integration.spec-J352BAT4.js.map} +0 -0
  906. /package/dist/{svgraph-XV52FOMN.js.map → svgraph-NZQ6Z4HS.js.map} +0 -0
  907. /package/dist/{svmr-BDAHM7UH.js.map → svmr-BPDWKVL2.js.map} +0 -0
  908. /package/dist/{table-5N2CRI36.js.map → table-6FOITCXA.js.map} +0 -0
  909. /package/dist/{tk-IOJVJ34S.js.map → termCollection-HFDUSCPL.js.map} +0 -0
  910. /package/dist/{termCollection-TZY6DOSP.js.map → termCollection-SWYRSREU.js.map} +0 -0
  911. /package/dist/{termCollection.unit.spec-VWHQ72DD.js.map → termCollection.unit.spec-ZSAAQS26.js.map} +0 -0
  912. /package/dist/{tvs.density-AQ5GD437.js.map → tk-D2YVENB3.js.map} +0 -0
  913. /package/dist/{tp.ui-JHPHESWM.js.map → tp.ui-XALNLDLX.js.map} +0 -0
  914. /package/dist/{tvs.dt-JPB46UPH.js.map → tvs.density-HSVPDDGA.js.map} +0 -0
  915. /package/dist/{tvs.numeric-PLNP7MBV.js.map → tvs.dt-TOZ47QR3.js.map} +0 -0
  916. /package/dist/{tvs.dtcnv.categorical-37TA7GCY.js.map → tvs.dtcnv.categorical-OZFNQFCX.js.map} +0 -0
  917. /package/dist/{tvs.dtcnv.continuous-X4K3RPYG.js.map → tvs.dtcnv.continuous-XCZJ7JOD.js.map} +0 -0
  918. /package/dist/{tvs.dtfusion-77SKDRRH.js.map → tvs.dtfusion-G3BI6YSH.js.map} +0 -0
  919. /package/dist/{tvs.dtsnvindel-2QGQ455S.js.map → tvs.dtsnvindel-ETMWTQLL.js.map} +0 -0
  920. /package/dist/{tvs.dtsv-QBCE5IHM.js.map → tvs.dtsv-66AEHBQE.js.map} +0 -0
  921. /package/dist/{violin-DCKEHIVC.js.map → tvs.numeric-AU4U3UXI.js.map} +0 -0
  922. /package/dist/{tvs.samplelst-NRSYJ64L.js.map → tvs.samplelst-TMUNONJI.js.map} +0 -0
  923. /package/dist/{tvs.termCollection-BK36KZL2.js.map → tvs.termCollection-HZ2ZVONI.js.map} +0 -0
  924. /package/dist/{violin.interactivity-RS6D5YPY.js.map → violin-P4A4BLKJ.js.map} +0 -0
  925. /package/dist/{violin.integration.spec-IIYDX5DT.js.map → violin.integration.spec-DSSHXEES.js.map} +0 -0
  926. /package/dist/{violin.renderer-XIQTOVEK.js.map → violin.interactivity-FRXW7MH4.js.map} +0 -0
  927. /package/dist/{vocabulary-6437MWB6.js.map → violin.renderer-LQAFOSRK.js.map} +0 -0
@@ -1,3198 +0,0 @@
1
- import {
2
- InvalidDataUI,
3
- configUiInit,
4
- fillbar,
5
- getMaxLabelWidth,
6
- renderTable,
7
- svgLegend,
8
- table2col
9
- } from "./chunk-EPGSHRD6.js";
10
- import "./chunk-HJ6L54YS.js";
11
- import "./chunk-ZZMWPGNS.js";
12
- import {
13
- Menu
14
- } from "./chunk-CXMZYVZT.js";
15
- import {
16
- dofetch3
17
- } from "./chunk-TF4BMI2M.js";
18
- import "./chunk-SSFOXHYJ.js";
19
- import "./chunk-FN5XPUPH.js";
20
- import "./chunk-LSEFWW72.js";
21
- import {
22
- topBarInit
23
- } from "./chunk-73VHTIHG.js";
24
- import "./chunk-IQIXGTQV.js";
25
- import "./chunk-UCLS2SVB.js";
26
- import {
27
- copyMerge,
28
- getCompInit,
29
- multiInit
30
- } from "./chunk-MVTCBVSX.js";
31
- import "./chunk-EAHT56LQ.js";
32
- import "./chunk-5OHXYXLD.js";
33
- import "./chunk-DQC5FFGV.js";
34
- import "./chunk-O6TX37JQ.js";
35
- import "./chunk-W7MBUYQV.js";
36
- import "./chunk-MAR6R3H5.js";
37
- import "./chunk-IZ5H6KD4.js";
38
- import {
39
- bplen,
40
- dtcnv,
41
- dtfusionrna,
42
- dtloh,
43
- dtsnvindel,
44
- dtsv,
45
- mclass
46
- } from "./chunk-K535LGE2.js";
47
- import "./chunk-BEWDIM6H.js";
48
- import {
49
- arc_default,
50
- line_default,
51
- pie_default,
52
- ribbon_default
53
- } from "./chunk-CTVZMQ5J.js";
54
- import "./chunk-LOZEKOES.js";
55
- import "./chunk-TOU7EVFQ.js";
56
- import {
57
- linear,
58
- ticks
59
- } from "./chunk-733PDAIR.js";
60
- import "./chunk-SEEYV6P2.js";
61
- import {
62
- pointer_default,
63
- select_default
64
- } from "./chunk-NDWTN4U5.js";
65
- import "./chunk-OMR2DT66.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-XV52FOMN.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.dslabel,
278
- hlaachange: mnames.join(","),
279
- filter0,
280
- filterObj: structuredClone(filter)
281
- // must not pass filter as frozen. duplicate to pass unfrozen copy so mds3 code will work
282
- }
283
- ]
284
- };
285
- const _ = await import("./block.init-WYBRJUDH.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/data/DataMapper.ts
451
- var DataMapper = class _DataMapper {
452
- constructor(settings, reference, sample, prioritizedGenes = []) {
453
- // remove fields and extract filters to seperate classes
454
- this.labelData = [];
455
- this.nonExonicSnvData = [];
456
- this.nonExonicInnerRadius = 0;
457
- this.snvRingDataMap = /* @__PURE__ */ new Map();
458
- this.snvInnerRadius = 0;
459
- this.snvData = [];
460
- this.bpx = 0;
461
- this.onePxArcAngle = 0;
462
- this.filteredSnvData = [];
463
- this.filteredSnvCountByChr = /* @__PURE__ */ new Map();
464
- this.lohData = [];
465
- this.lohInnerRadius = 0;
466
- this.cnvData = [];
467
- this.cnvInnerRadius = 0;
468
- this.fusionData = [];
469
- this.fusionRadius = 0;
470
- this.hasPrioritizedGenes = false;
471
- this.hasWaterfallEligibleChromosome = false;
472
- this.invalidEntries = [];
473
- this.cnvLossMaxValue = 0;
474
- this.cnvGainMaxValue = 0;
475
- this.percentilePositive = 0;
476
- this.percentileNegative = 0;
477
- this.cnvMaxPercentileAbs = 0;
478
- this.mutationWaterfallData = [];
479
- this.mutationWaterfallInnerRadius = 0;
480
- this.mutationWaterfallRangeMin = Infinity;
481
- this.mutationWaterfallRangeMax = -Infinity;
482
- this.lohMaxValue = void 0;
483
- this.lohMinValue = void 0;
484
- this.snvFilter = (data) => data.dt == dtsnvindel;
485
- this.fusionFilter = (data) => data.dt == dtfusionrna || data.dt == dtsv;
486
- this.cnvFilter = (data) => data.dt == dtcnv;
487
- this.lohFilter = (data) => data.dt == dtloh;
488
- this.compareData = (a, b) => {
489
- const chrDiff = this.reference.chromosomesOrder.indexOf(a.chr) - this.reference.chromosomesOrder.indexOf(b.chr);
490
- if (chrDiff != 0) {
491
- return chrDiff;
492
- }
493
- const aPos = a.pos ? a.pos : a.start;
494
- const bPos = b.pos ? b.pos : b.start;
495
- return aPos - bPos;
496
- };
497
- this.settings = settings;
498
- this.reference = reference;
499
- this.sample = sample;
500
- this.excludedChromosomes = this.settings.Disco.hiddenChromosomes;
501
- this.lastInnerRadious = this.settings.rings.chromosomeInnerRadius;
502
- this.gainCapped = this.settings.Disco.cnvCapping;
503
- this.lossCapped = -1 * this.settings.Disco.cnvCapping;
504
- this.nonExonicFilter = (data) => {
505
- if (prioritizedGenes.length > 0 && this.settings.Disco.prioritizeGeneLabelsByGeneSets) {
506
- return prioritizedGenes.includes(data.gene) && settings.rings.nonExonicFilterValues.includes(ViewModelMapper.snvClassLayer[data.mClass]);
507
- } else {
508
- return settings.rings.nonExonicFilterValues.includes(ViewModelMapper.snvClassLayer[data.mClass]);
509
- }
510
- };
511
- this.snvRingFilter = (data) => {
512
- if (prioritizedGenes.length > 0 && this.settings.Disco.prioritizeGeneLabelsByGeneSets) {
513
- return prioritizedGenes.includes(data.gene) && settings.rings.snvRingFilters.includes(ViewModelMapper.snvClassLayer[data.mClass]);
514
- } else {
515
- return settings.rings.snvRingFilters.includes(ViewModelMapper.snvClassLayer[data.mClass]);
516
- }
517
- };
518
- this.dataObjectMapper = new DataObjectMapper(sample, prioritizedGenes);
519
- }
520
- map(data) {
521
- const dataArray = [];
522
- this.filteredSnvCountByChr.clear();
523
- this.hasWaterfallEligibleChromosome = false;
524
- this.mutationWaterfallData = [];
525
- this.mutationWaterfallInnerRadius = 0;
526
- this.mutationWaterfallRangeMin = Infinity;
527
- this.mutationWaterfallRangeMax = -Infinity;
528
- data.forEach((dObject) => {
529
- const index = this.reference.chromosomesOrder.indexOf(dObject.chr);
530
- const indexA = this.reference.chromosomesOrder.indexOf(dObject.chrA);
531
- const indexB = this.reference.chromosomesOrder.indexOf(dObject.chrB);
532
- if (dObject.dt == dtsnvindel) {
533
- if (index != -1 && this.snvData.length < this.settings.snv.maxMutationCount) {
534
- const pos = dObject.pos ?? dObject.position;
535
- const chrSize = this.reference.chromosomes[index].size;
536
- if (Number.isFinite(pos) && pos >= 0 && pos <= chrSize) {
537
- this.addData(dObject, dataArray);
538
- } else {
539
- this.invalidEntries.push({ dataType: "SNV", reason: `Position ${pos} outside of ${dObject.chr}` });
540
- }
541
- } else if (index == -1) {
542
- if (!this.excludedChromosomes.includes(dObject.chr)) {
543
- this.invalidEntries.push({ dataType: "SNV", reason: `Unknown chr ${dObject.chr}` });
544
- }
545
- }
546
- } else if (dObject.dt == dtfusionrna || dObject.dt == dtsv) {
547
- if (indexA != -1 && indexB != -1) {
548
- const posA = dObject.posA;
549
- const posB = dObject.posB;
550
- const chrSizeA = this.reference.chromosomes[indexA].size;
551
- const chrSizeB = this.reference.chromosomes[indexB].size;
552
- if (Number.isFinite(posA) && Number.isFinite(posB) && posA >= 0 && posA <= chrSizeA && posB >= 0 && posB <= chrSizeB) {
553
- this.addData(dObject, dataArray);
554
- } else {
555
- const reasonParts = [];
556
- if (!(Number.isFinite(posA) && posA >= 0 && posA <= chrSizeA))
557
- reasonParts.push(`Position ${posA} outside of ${dObject.chrA}`);
558
- if (!(Number.isFinite(posB) && posB >= 0 && posB <= chrSizeB))
559
- reasonParts.push(`Position ${posB} outside of ${dObject.chrB}`);
560
- this.invalidEntries.push({ dataType: "Fusion", reason: reasonParts.join("; ") });
561
- }
562
- } else {
563
- const missing = [];
564
- if (indexA == -1 && !this.excludedChromosomes.includes(dObject.chrA)) missing.push(dObject.chrA);
565
- if (indexB == -1 && !this.excludedChromosomes.includes(dObject.chrB)) missing.push(dObject.chrB);
566
- if (missing.length) this.invalidEntries.push({ dataType: "Fusion", reason: "Unknown chr in fusion" });
567
- }
568
- } else if ([dtcnv, dtloh].includes(Number(dObject.dt))) {
569
- const idx = this.reference.chromosomesOrder.indexOf(dObject.chr);
570
- if (dObject.chr && idx != -1) {
571
- const chrSize = this.reference.chromosomes[idx].size;
572
- const start = dObject.start;
573
- const stop = dObject.stop;
574
- if (Number.isFinite(start) && Number.isFinite(stop) && start >= 0 && stop <= chrSize && start <= stop) {
575
- this.addData(dObject, dataArray);
576
- } else {
577
- this.invalidEntries.push({
578
- dataType: dObject.dt == dtcnv ? "CNV" : "LOH",
579
- reason: `Position ${start}-${stop} outside of ${dObject.chr}`
580
- });
581
- }
582
- } else {
583
- if (!this.excludedChromosomes.includes(dObject.chr)) {
584
- this.invalidEntries.push({
585
- dataType: dObject.dt == dtcnv ? "CNV" : "LOH",
586
- reason: `Unknown chr ${dObject.chr}`
587
- });
588
- }
589
- }
590
- } else {
591
- throw Error("Unknown mutation type!");
592
- }
593
- });
594
- const sortedData = dataArray.sort(this.compareData);
595
- if (this.settings.rings.nonExonicRingEnabled) {
596
- sortedData.forEach((data2) => {
597
- this.filterNonExonicSnvData(data2);
598
- });
599
- }
600
- if (this.nonExonicSnvData.length > 0) {
601
- this.nonExonicInnerRadius = this.lastInnerRadious - this.settings.rings.nonExonicRingWidth;
602
- this.lastInnerRadious = this.nonExonicInnerRadius;
603
- }
604
- sortedData.forEach((data2) => {
605
- this.filterSnvs(data2);
606
- });
607
- this.hasWaterfallEligibleChromosome = Array.from(this.filteredSnvCountByChr.values()).some((count) => count >= 2);
608
- if (this.settings.Disco.mutationWaterfallPlot && this.hasWaterfallEligibleChromosome) {
609
- this.prepareMutationWaterfallData();
610
- }
611
- sortedData.forEach((data2) => {
612
- this.filterLohs(data2);
613
- });
614
- if (this.lohData.length > 0) {
615
- this.lohInnerRadius = this.lastInnerRadious - this.settings.rings.lohRingWidth;
616
- this.lastInnerRadious = this.lohInnerRadius;
617
- }
618
- sortedData.forEach((data2) => {
619
- this.filterCnvs(data2);
620
- });
621
- if (this.cnvData.length > 0) {
622
- this.cnvInnerRadius = this.lastInnerRadious - this.settings.rings.cnvRingWidth;
623
- this.lastInnerRadious = this.cnvInnerRadius;
624
- this.cappedCnvMaxAbsValue = Math.min(
625
- this.settings.Disco.cnvCapping,
626
- Math.max(
627
- Math.abs(_DataMapper.capMaxValue(this.cnvLossMaxValue, this.gainCapped, this.lossCapped)),
628
- Math.abs(_DataMapper.capMaxValue(this.cnvGainMaxValue, this.gainCapped, this.lossCapped))
629
- )
630
- );
631
- const percentilePair = new PercentileMapper().map(
632
- this.cnvData.map((data2) => data2.value),
633
- this.settings.Disco.cnvPercentile
634
- );
635
- this.percentilePositive = _DataMapper.capMaxValue(percentilePair.positive, this.gainCapped, this.lossCapped);
636
- this.percentileNegative = _DataMapper.capMaxValue(percentilePair.negative, this.gainCapped, this.lossCapped);
637
- this.cnvMaxPercentileAbs = Math.min(
638
- this.settings.Disco.cnvCapping,
639
- Math.max(this.percentilePositive, Math.abs(this.percentileNegative))
640
- );
641
- }
642
- sortedData.forEach((data2) => {
643
- this.filterFusion(data2);
644
- });
645
- if (this.fusionData.length > 0) {
646
- this.fusionRadius = this.lastInnerRadious;
647
- }
648
- const dataHolder = {
649
- labelData: this.labelData,
650
- nonExonicSnvData: this.nonExonicSnvData,
651
- nonExonicInnerRadius: this.nonExonicInnerRadius,
652
- snvRingDataMap: this.snvRingDataMap,
653
- snvInnerRadius: this.snvInnerRadius,
654
- snvData: this.snvData,
655
- bpx: this.bpx,
656
- onePxArcAngle: this.onePxArcAngle,
657
- filteredSnvData: this.filteredSnvData,
658
- lohData: this.lohData,
659
- lohInnerRadius: this.lohInnerRadius,
660
- cnvData: this.cnvData,
661
- cnvInnerRadius: this.cnvInnerRadius,
662
- fusionData: this.fusionData,
663
- fusionRadius: this.fusionRadius,
664
- hasPrioritizedGenes: this.hasPrioritizedGenes,
665
- hasWaterfallEligibleChromosome: this.hasWaterfallEligibleChromosome,
666
- cnvGainMaxValue: this.cnvGainMaxValue,
667
- cnvLossMaxValue: this.cnvLossMaxValue,
668
- cappedCnvMaxAbsValue: this.cappedCnvMaxAbsValue,
669
- percentilePositive: this.percentilePositive,
670
- percentileNegative: this.percentileNegative,
671
- cnvMaxPercentileAbs: this.cnvMaxPercentileAbs,
672
- lohMaxValue: this.lohMaxValue,
673
- lohMinValue: this.lohMinValue,
674
- mutationWaterfallData: this.mutationWaterfallData,
675
- mutationWaterfallInnerRadius: this.mutationWaterfallInnerRadius,
676
- mutationWaterfallLogRange: this.mutationWaterfallData.length ? { min: this.mutationWaterfallRangeMin, max: this.mutationWaterfallRangeMax } : void 0,
677
- invalidDataInfo: {
678
- entries: this.invalidEntries,
679
- errorMsg: `Entries listed above were skipped due to invalid or unsupported chromosome information.`
680
- }
681
- };
682
- return dataHolder;
683
- }
684
- addData(dObject, dataArray) {
685
- const instance = this.dataObjectMapper.map(dObject);
686
- if (instance.isPrioritized) {
687
- this.hasPrioritizedGenes = true;
688
- }
689
- dataArray.push(instance);
690
- }
691
- filterNonExonicSnvData(data) {
692
- if (this.snvFilter(data)) {
693
- if (this.settings.rings.nonExonicRingEnabled && this.nonExonicFilter(data)) {
694
- this.nonExonicSnvData.push(data);
695
- }
696
- }
697
- }
698
- filterSnvs(data) {
699
- if (this.snvFilter(data)) {
700
- this.snvData.push(data);
701
- if (this.snvRingFilter(data)) {
702
- if (this.snvInnerRadius == 0) {
703
- this.snvInnerRadius = this.lastInnerRadious - this.settings.rings.snvRingWidth;
704
- this.lastInnerRadious = this.snvInnerRadius;
705
- this.bpx = Math.floor(this.reference.totalSize / (this.reference.totalChromosomesAngle * this.snvInnerRadius));
706
- this.onePxArcAngle = 1 / this.snvInnerRadius;
707
- }
708
- this.filteredSnvData.push(data);
709
- this.labelData.push(data);
710
- const currentCount = this.filteredSnvCountByChr.get(data.chr) || 0;
711
- this.filteredSnvCountByChr.set(data.chr, currentCount + 1);
712
- const arcAngle = this.calculateArcAngle(data);
713
- let dataArray = this.snvRingDataMap.get(arcAngle);
714
- if (!dataArray) {
715
- dataArray = new Array();
716
- }
717
- dataArray.push(data);
718
- this.snvRingDataMap.set(arcAngle, dataArray);
719
- }
720
- }
721
- }
722
- filterFusion(data) {
723
- if (this.fusionFilter(data)) {
724
- data.isPrioritized = true;
725
- this.fusionData.push(data);
726
- this.labelData.push(data);
727
- }
728
- }
729
- filterLohs(data) {
730
- if (this.lohFilter(data)) {
731
- if (this.lohMaxValue == void 0 || this.lohMaxValue < data.value) {
732
- this.lohMaxValue = data.segmean;
733
- }
734
- if (this.lohMinValue == void 0 || this.lohMinValue > data.value) {
735
- this.lohMinValue = data.segmean;
736
- }
737
- this.lohData.push(data);
738
- }
739
- }
740
- filterCnvs(data) {
741
- if (this.cnvFilter(data)) {
742
- if (!data.chr || this.reference.chromosomesOrder.indexOf(data.chr) == -1) {
743
- return;
744
- }
745
- if (this.cnvGainMaxValue == void 0 || this.cnvGainMaxValue < data.value) {
746
- this.cnvGainMaxValue = data.value;
747
- }
748
- if (this.cnvLossMaxValue == void 0 || this.cnvLossMaxValue > data.value) {
749
- this.cnvLossMaxValue = data.value;
750
- }
751
- this.cnvData.push(data);
752
- }
753
- }
754
- prepareMutationWaterfallData() {
755
- this.mutationWaterfallInnerRadius = this.lastInnerRadious - this.settings.rings.mutationWaterfallRingWidth;
756
- this.lastInnerRadious = this.mutationWaterfallInnerRadius;
757
- const groupedSnvs = /* @__PURE__ */ new Map();
758
- const firstMutationByChr = [];
759
- for (const snv of this.filteredSnvData) {
760
- const list = groupedSnvs.get(snv.chr) || [];
761
- list.push(snv);
762
- groupedSnvs.set(snv.chr, list);
763
- }
764
- for (const [, snvs] of groupedSnvs) {
765
- if (snvs.length < 2) continue;
766
- snvs.sort((a, b) => a.position - b.position);
767
- firstMutationByChr.push({
768
- chr: snvs[0].chr,
769
- position: snvs[0].position,
770
- logDistance: 0
771
- // placeholder updated after range computed
772
- });
773
- for (let i = 1; i < snvs.length; i++) {
774
- const prev = snvs[i - 1];
775
- const curr = snvs[i];
776
- const distance = Math.max(1, Math.abs(curr.position - prev.position));
777
- const logDistance = Math.log10(distance);
778
- this.mutationWaterfallData.push({
779
- chr: curr.chr,
780
- position: curr.position,
781
- logDistance
782
- });
783
- if (logDistance < this.mutationWaterfallRangeMin) {
784
- this.mutationWaterfallRangeMin = logDistance;
785
- }
786
- if (logDistance > this.mutationWaterfallRangeMax) {
787
- this.mutationWaterfallRangeMax = logDistance;
788
- }
789
- }
790
- }
791
- if (!this.mutationWaterfallData.length) {
792
- this.mutationWaterfallRangeMin = 0;
793
- this.mutationWaterfallRangeMax = 0;
794
- }
795
- const topLogDistance = this.mutationWaterfallRangeMax;
796
- for (const first of firstMutationByChr) {
797
- this.mutationWaterfallData.push({
798
- ...first,
799
- logDistance: topLogDistance
800
- });
801
- }
802
- }
803
- calculateArcAngle(data) {
804
- const currentChromosome = this.reference.chromosomes[this.reference.chromosomesOrder.findIndex((chromosomeOrder) => data.chr == chromosomeOrder)];
805
- const dataAnglePos = Math.floor(data.position / this.bpx);
806
- return currentChromosome.startAngle + dataAnglePos * this.onePxArcAngle;
807
- }
808
- static capMaxValue(value, gainCapped, lossCapped) {
809
- if (value && Math.sign(value) == 1) {
810
- return value > gainCapped ? gainCapped : value;
811
- }
812
- if (Math.sign(value) == -1) {
813
- return value < lossCapped ? lossCapped : value;
814
- }
815
- return 0;
816
- }
817
- static capMinValue(value, capMinValue = 1) {
818
- if (Math.sign(value) == 1) {
819
- return value > capMinValue ? value : capMinValue;
820
- }
821
- if (Math.sign(value) == -1) {
822
- return value < -1 * capMinValue ? value : -1 * capMinValue;
823
- }
824
- return 1;
825
- }
826
- };
827
-
828
- // plots/disco/legend/Legend.ts
829
- var Legend = class {
830
- constructor(snvTitle, cnvTitle, lohTitle, fusionTitle, cnvPercentile, cnvCutoffmode, snvClassMap, cnvClassMap, cnvRenderingType, fusionLegend, discoInteractions, lohLegend, mutationWaterfallLegend) {
831
- this.snvTitle = snvTitle;
832
- this.cnvTitle = cnvTitle;
833
- this.lohTitle = lohTitle;
834
- this.fusionTitle = fusionTitle;
835
- this.cnvPercentile = cnvPercentile;
836
- this.cnvCutoffMode = cnvCutoffmode;
837
- this.snvClassMap = snvClassMap;
838
- this.cnvClassMap = cnvClassMap;
839
- this.cnvRenderingType = cnvRenderingType;
840
- this.lohLegend = lohLegend;
841
- this.fusionLegend = fusionLegend;
842
- this.discoInteractions = discoInteractions;
843
- this.mutationWaterfallLegend = mutationWaterfallLegend;
844
- }
845
- legendCount() {
846
- return (this.snvClassMap.size > 0 ? 1 : 0) + (this.cnvClassMap.size > 0 ? 1 : 0) + (this.lohLegend ? 1 : 0) + (this.fusionLegend ? 1 : 0) + (this.mutationWaterfallLegend ? 1 : 0);
847
- }
848
- };
849
-
850
- // plots/disco/fusion/Fusion.ts
851
- var Fusion = class {
852
- constructor(source, target, genes, count, endpts) {
853
- this.source = source;
854
- this.target = target;
855
- this.genes = genes;
856
- this.count = count;
857
- this.endpts = endpts;
858
- }
859
- };
860
-
861
- // plots/disco/fusion/FusionSubgroup.ts
862
- var FusionSubgroup = class {
863
- constructor(startAngle, endAngle, radius, gene, value, genes, positionInChromosome, strand) {
864
- this.startAngle = startAngle;
865
- this.endAngle = endAngle;
866
- this.radius = radius;
867
- this.gene = gene;
868
- this.value = value;
869
- this.genes = genes;
870
- this.positionInChromosome = positionInChromosome;
871
- this.strand = strand;
872
- }
873
- };
874
-
875
- // plots/disco/fusion/FusionMapper.ts
876
- var FusionMapper = class {
877
- constructor(radius, sampleName, reference) {
878
- this.radius = radius;
879
- this.sampleName = sampleName;
880
- this.reference = reference;
881
- }
882
- map(fusionData) {
883
- const fusions = [];
884
- fusionData.forEach((data) => {
885
- const genes = /* @__PURE__ */ new Set();
886
- genes.add(data.geneA);
887
- genes.add(data.geneB);
888
- const startAngle = this.calculateStartAngle(data.chrA, data.posA);
889
- const endAngle = this.calculateEndAngle(data.chrA, data.posA);
890
- if (startAngle === null || endAngle === null) return;
891
- const source = new FusionSubgroup(
892
- startAngle,
893
- endAngle,
894
- this.radius,
895
- data.geneA,
896
- data.value,
897
- genes,
898
- {
899
- chromosome: data.chrA,
900
- position: data.posA
901
- },
902
- data.strandA
903
- );
904
- let target;
905
- if (data.chrB && data.posB) {
906
- const startAngle2 = this.calculateStartAngle(data.chrB, data.posB);
907
- const endAngle2 = this.calculateEndAngle(data.chrB, data.posB);
908
- if (startAngle2 === null || endAngle2 === null) return;
909
- target = new FusionSubgroup(
910
- startAngle2,
911
- endAngle2,
912
- this.radius,
913
- data.geneB,
914
- data.value,
915
- genes,
916
- {
917
- chromosome: data.chrB,
918
- position: data.posB
919
- },
920
- data.strandB
921
- );
922
- }
923
- const fusion = new Fusion(source, target, "genes", -1, "Endpoints");
924
- fusions.push(fusion);
925
- });
926
- return fusions;
927
- }
928
- calculateStartAngle(chr, pos) {
929
- const index = this.reference.chromosomesOrder.indexOf(chr);
930
- if (index === -1) return null;
931
- const chromosome = this.reference.chromosomes[index];
932
- return chromosome.startAngle + (chromosome.endAngle - chromosome.startAngle) * (Number(pos) / chromosome.size) - 0.01;
933
- }
934
- calculateEndAngle(chr, pos) {
935
- const index = this.reference.chromosomesOrder.indexOf(chr);
936
- if (index === -1) return null;
937
- const chromosome = this.reference.chromosomes[index];
938
- return 0.01 + chromosome.startAngle + (chromosome.endAngle - chromosome.startAngle) * (Number(pos) / chromosome.size);
939
- }
940
- };
941
-
942
- // plots/disco/loh/GradientColorProvider.ts
943
- var GradientColorProvider = class {
944
- static provide(value) {
945
- const clampedValue = Math.min(Math.max(value, 0), 1);
946
- const colorValue = Math.round(clampedValue * 255);
947
- return `rgb(${colorValue}, ${colorValue}, ${colorValue})`;
948
- }
949
- };
950
-
951
- // plots/disco/loh/LohLegend.ts
952
- var LohLegend = class {
953
- constructor(minValue, maxValue) {
954
- this.minValue = minValue;
955
- this.maxValue = maxValue;
956
- this.colorStartValue = GradientColorProvider.provide(minValue);
957
- this.colorEndValue = GradientColorProvider.provide(maxValue);
958
- }
959
- };
960
-
961
- // plots/disco/viewmodel/ViewModel.ts
962
- var ViewModel = class {
963
- constructor(settings, rings, legend, fusions, dataHolder, genesetName, snvDataLengthAll) {
964
- this.settings = settings;
965
- this.rings = rings;
966
- this.legend = legend;
967
- this.fusions = fusions;
968
- this.genesetName = genesetName;
969
- const tempHolder = select_default("body").append("div").style("position", "absolute").style("visibility", "hidden");
970
- const tempSvg = tempHolder.append("svg");
971
- const labels = rings.labelsRing?.elementsToDisplay?.map((l) => l.text) || [];
972
- const maxLabelSpace = getMaxLabelWidth(tempSvg, labels);
973
- tempHolder.remove();
974
- this.width = 2 * (this.settings.horizontalPadding + this.settings.rings.labelLinesInnerRadius + this.settings.rings.labelsToLinesDistance + maxLabelSpace);
975
- this.height = 2 * (this.settings.rings.labelLinesInnerRadius + this.settings.rings.labelsToLinesDistance + this.settings.verticalPadding + this.settings.label.fontSize * 2 + maxLabelSpace);
976
- this.legendHeight = this.calculateLegendHeight(legend);
977
- this.snvDataLength = dataHolder.snvData.length;
978
- this.filteredSnvDataLength = dataHolder.filteredSnvData.length;
979
- this.snvDataLengthAll = snvDataLengthAll;
980
- this.cnvMaxValue = dataHolder.cnvGainMaxValue;
981
- this.cnvMinValue = dataHolder.cnvLossMaxValue;
982
- this.cappedCnvMaxAbsValue = dataHolder.cappedCnvMaxAbsValue;
983
- this.negativePercentile = dataHolder.percentileNegative;
984
- this.positivePercentile = dataHolder.percentilePositive;
985
- this.invalidDataInfo = dataHolder.invalidDataInfo;
986
- this.canShowMutationWaterfallPlot = dataHolder.hasWaterfallEligibleChromosome;
987
- }
988
- getElements(ringType) {
989
- switch (ringType) {
990
- case 0 /* CHROMOSOME */:
991
- return this.rings.chromosomesRing ? this.rings.chromosomesRing.elements : [];
992
- case 1 /* LABEL */:
993
- return this.rings.labelsRing.elementsToDisplay;
994
- case 2 /* NONEXONICSNV */:
995
- return this.rings.nonExonicArcRing ? this.rings.nonExonicArcRing.elements : [];
996
- case 3 /* SNV */:
997
- return this.rings.snvArcRing ? this.rings.snvArcRing.elements : [];
998
- case 5 /* CNV */:
999
- return this.rings.cnvArcRing ? this.rings.cnvArcRing.elements : [];
1000
- case 6 /* LOH */:
1001
- return this.rings.lohArcRing ? this.rings.lohArcRing.elements : [];
1002
- case 4 /* MUTATION_WATERFALL */:
1003
- return this.rings.mutationWaterfallRing ? this.rings.mutationWaterfallRing.elements : [];
1004
- default:
1005
- throw new Error(`ringType ${ringType} not defined`);
1006
- }
1007
- }
1008
- getCollisions(ringType) {
1009
- if (ringType == 1 /* LABEL */) {
1010
- return this.rings.labelsRing.collisions;
1011
- } else {
1012
- return void 0;
1013
- }
1014
- }
1015
- calculateLegendHeight(legend) {
1016
- const rawHeight = this.settings.legend.rowHeight;
1017
- return rawHeight * legend.legendCount();
1018
- }
1019
- };
1020
-
1021
- // plots/disco/ring/Ring.ts
1022
- var Ring = class {
1023
- constructor(innerRadius, width, elements) {
1024
- this.innerRadius = innerRadius;
1025
- this.outerRadius = innerRadius + width;
1026
- this.width = width;
1027
- this.elements = elements;
1028
- }
1029
- };
1030
-
1031
- // plots/disco/label/MLabel.ts
1032
- var MLabel = class _MLabel {
1033
- /**
1034
- * The Singleton's constructor should always be private to prevent direct
1035
- * construction calls with the `new` operator.
1036
- */
1037
- constructor() {
1038
- const mlabel = {};
1039
- for (const key in mclass) {
1040
- mlabel[mclass[key].label] = mclass[key];
1041
- mlabel[key] = mclass[key];
1042
- }
1043
- this.mlabel = mlabel;
1044
- }
1045
- /**
1046
- * The static method that controls the access to the singleton instance.
1047
- *
1048
- * This implementation let you subclass the Singleton class while keeping
1049
- * just one instance of each subclass around.
1050
- */
1051
- static getInstance() {
1052
- if (!_MLabel.instance) {
1053
- _MLabel.instance = new _MLabel();
1054
- }
1055
- return _MLabel.instance;
1056
- }
1057
- };
1058
-
1059
- // plots/disco/snv/SnvLegendElement.ts
1060
- var SnvLegendElement = class {
1061
- constructor(snvType, color, count) {
1062
- this.snvType = snvType;
1063
- this.color = color;
1064
- this.count = count;
1065
- }
1066
- };
1067
-
1068
- // plots/disco/snv/SnvArcsMapper.ts
1069
- var SnvArcsMapper = class {
1070
- constructor(svnInnerRadius, svnWidth, sampleName, reference) {
1071
- this.snvClassMap = /* @__PURE__ */ new Map();
1072
- this.svnInnerRadius = svnInnerRadius;
1073
- this.svnWidth = svnWidth;
1074
- this.sampleName = sampleName;
1075
- this.reference = reference;
1076
- this.bpx = Math.floor(this.reference.totalSize / (this.reference.totalChromosomesAngle * svnInnerRadius));
1077
- this.onePxArcAngle = 1 / svnInnerRadius;
1078
- }
1079
- map(exonicSnvDataMap) {
1080
- const snvArray = [];
1081
- for (const angle of exonicSnvDataMap.keys()) {
1082
- const array = exonicSnvDataMap.get(angle);
1083
- if (array) {
1084
- const arraySize = array.length;
1085
- for (let i = 0; i < array.length; i++) {
1086
- const data = array[i];
1087
- const snvLegendElement = this.snvClassMap.get(data.mClass);
1088
- if (snvLegendElement) {
1089
- this.snvClassMap.set(data.mClass, this.createSnvLegend(data.mClass, ++snvLegendElement.count));
1090
- } else {
1091
- this.snvClassMap.set(data.mClass, this.createSnvLegend(data.mClass, 1));
1092
- }
1093
- const startAngle = angle;
1094
- const endAngle = angle + this.onePxArcAngle;
1095
- const mLabel = MLabel.getInstance().mlabel ? MLabel.getInstance().mlabel[data.mClass] : void 0;
1096
- const arc = {
1097
- startAngle,
1098
- endAngle,
1099
- innerRadius: this.svnInnerRadius + i * this.svnWidth / arraySize,
1100
- outerRadius: this.svnInnerRadius + (i + 1) * this.svnWidth / arraySize,
1101
- color: mLabel.color,
1102
- text: data.gene,
1103
- dataClass: mLabel.label,
1104
- mname: data.mname,
1105
- chr: data.chr,
1106
- pos: data.position,
1107
- vafs: data.vafs,
1108
- sampleName: [data.sampleName]
1109
- };
1110
- snvArray.push(arc);
1111
- }
1112
- }
1113
- }
1114
- return snvArray;
1115
- }
1116
- createSnvLegend(dataClass, count) {
1117
- const mClass = MLabel.getInstance().mlabel[dataClass];
1118
- return new SnvLegendElement(mClass.label, mClass.color, count);
1119
- }
1120
- };
1121
-
1122
- // plots/disco/cnv/CnvLegend.ts
1123
- var CnvLegend = class {
1124
- constructor(text, cnvType, color, value) {
1125
- this.text = text;
1126
- this.cnvType = cnvType;
1127
- this.color = color;
1128
- this.value = value;
1129
- }
1130
- };
1131
-
1132
- // plots/disco/cnv/CnvColorProvider.ts
1133
- var CnvColorProvider = class {
1134
- static getColor(value, settings, cnvMaxPercentileAbs = 0) {
1135
- const cnv = settings.cnv;
1136
- const gainCapped = settings.Disco.cnvRenderingType == "heatmap" /* heatmap */ ? settings.Disco.cnvCapping : cnvMaxPercentileAbs;
1137
- const lossCapped = settings.Disco.cnvRenderingType == "heatmap" /* heatmap */ ? -1 * settings.Disco.cnvCapping : -1 * cnvMaxPercentileAbs;
1138
- if (value < lossCapped) {
1139
- return cnv.cappedLossColor;
1140
- } else if (value >= lossCapped && value <= 0) {
1141
- return cnv.lossColor;
1142
- } else if (value > 0 && value <= gainCapped) {
1143
- return cnv.ampColor;
1144
- } else {
1145
- return cnv.cappedAmpColor;
1146
- }
1147
- }
1148
- };
1149
-
1150
- // plots/disco/cnv/CnvArcsMapper.ts
1151
- var CnvArcsMapper = class {
1152
- constructor(cnvInnerRadius, cnvWidth, settings, sampleName, reference, cnvMaxValue = 0, cnvMinValue = 0, cnvMaxAbsValue = 0, cnvAbsPercentile = 0, cnvUnit = "", cnvRenderingType) {
1153
- this.cnvClassMap = /* @__PURE__ */ new Map();
1154
- this.cnvInnerRadius = cnvInnerRadius;
1155
- this.cnvWidth = cnvWidth;
1156
- this.settings = settings;
1157
- this.sampleName = sampleName;
1158
- this.reference = reference;
1159
- this.cnvMaxValue = cnvMaxValue;
1160
- this.cnvMinValue = cnvMinValue;
1161
- this.cnvMaxAbsValue = cnvMaxAbsValue;
1162
- this.cnvAbsPercentile = cnvAbsPercentile;
1163
- this.cnvUnit = cnvUnit;
1164
- this.cnvRenderingType = cnvRenderingType;
1165
- this.gainCapped = Math.min(cnvAbsPercentile, this.settings.Disco.cnvCapping);
1166
- this.lossCapped = -1 * Math.min(cnvAbsPercentile, this.settings.Disco.cnvCapping);
1167
- this.lossOnly = cnvMaxValue <= 0;
1168
- this.gainOnly = cnvMinValue >= 0;
1169
- this.onePxArcAngle = 1 / this.cnvInnerRadius;
1170
- const gain = new CnvLegend(
1171
- "Max",
1172
- cnvMaxValue > 0 ? 1 /* Gain */ : 0 /* Loss */,
1173
- this.getColor(cnvMaxValue),
1174
- cnvMaxValue
1175
- );
1176
- const loss = new CnvLegend(
1177
- "Min",
1178
- cnvMinValue > 0 ? 1 /* Gain */ : 0 /* Loss */,
1179
- this.getColor(cnvMinValue),
1180
- cnvMinValue
1181
- );
1182
- const cap = new CnvLegend(
1183
- "Capping",
1184
- 0 /* Loss */,
1185
- this.getColor(cnvMinValue > 0 ? cnvMinValue : cnvMaxValue),
1186
- this.settings.Disco.cnvCapping
1187
- );
1188
- this.cnvClassMap.set(1 /* Gain */, gain);
1189
- this.cnvClassMap.set(0 /* Loss */, loss);
1190
- this.cnvClassMap.set(2 /* Cap */, cap);
1191
- }
1192
- map(arcData) {
1193
- const arcs = [];
1194
- arcData.forEach((data) => {
1195
- let startAngle = this.calculateStartAngle(data);
1196
- let endAngle = this.calculateEndAngle(data);
1197
- if (startAngle === null || endAngle === null) return;
1198
- if (endAngle - startAngle < this.onePxArcAngle) {
1199
- const restAngle = this.onePxArcAngle - (endAngle - startAngle);
1200
- startAngle = startAngle - restAngle / 2;
1201
- endAngle = startAngle + restAngle / 2;
1202
- }
1203
- const innerRadius = this.calculateInnerRadius(data);
1204
- const outerRadius = this.calculateOuterRadius(data);
1205
- const color = this.getColor(data.value);
1206
- const arc = {
1207
- startAngle,
1208
- endAngle,
1209
- innerRadius,
1210
- outerRadius,
1211
- color,
1212
- text: data.gene,
1213
- chr: data.chr,
1214
- start: data.start,
1215
- stop: data.stop,
1216
- value: data.value,
1217
- unit: this.cnvUnit,
1218
- sampleName: [this.sampleName]
1219
- };
1220
- arcs.push(arc);
1221
- });
1222
- return arcs;
1223
- }
1224
- calculateStartAngle(data) {
1225
- const index = this.reference.chromosomesOrder.indexOf(data.chr);
1226
- if (index == -1) return null;
1227
- const chromosome = this.reference.chromosomes[index];
1228
- return chromosome.startAngle + (chromosome.endAngle - chromosome.startAngle) * (Number(data.start) / chromosome.size);
1229
- }
1230
- calculateEndAngle(data) {
1231
- const index = this.reference.chromosomesOrder.indexOf(data.chr);
1232
- const chromosome = this.reference.chromosomes[index];
1233
- return chromosome.startAngle + (chromosome.endAngle - chromosome.startAngle) * (Number(data.stop) / chromosome.size);
1234
- }
1235
- getColor(value) {
1236
- return CnvColorProvider.getColor(value, this.settings, this.cnvAbsPercentile);
1237
- }
1238
- calculateInnerRadius(data) {
1239
- if (this.cnvRenderingType == "heatmap" /* heatmap */) {
1240
- return this.cnvInnerRadius;
1241
- }
1242
- if (this.gainOnly) {
1243
- return this.cnvInnerRadius;
1244
- }
1245
- if (this.lossOnly) {
1246
- const outerRadius = this.cnvInnerRadius + this.cnvWidth;
1247
- return outerRadius + DataMapper.capMinValue(
1248
- this.cnvWidth * DataMapper.capMaxValue(data.value, this.gainCapped, this.lossCapped) / this.cnvAbsPercentile
1249
- );
1250
- }
1251
- const centerRadius = this.cnvInnerRadius + this.cnvWidth / 2;
1252
- if (Math.sign(data.value) == 1) {
1253
- return centerRadius;
1254
- }
1255
- if (Math.sign(data.value) == -1) {
1256
- return centerRadius + DataMapper.capMinValue(
1257
- DataMapper.capMaxValue(data.value, this.gainCapped, this.lossCapped) / this.cnvAbsPercentile * (this.cnvWidth / 2)
1258
- );
1259
- }
1260
- return 1;
1261
- }
1262
- calculateOuterRadius(data) {
1263
- const maxOuterRadius = this.cnvInnerRadius + this.cnvWidth;
1264
- if (this.cnvRenderingType == "heatmap" /* heatmap */) {
1265
- return maxOuterRadius;
1266
- }
1267
- if (this.gainOnly) {
1268
- return this.cnvInnerRadius + DataMapper.capMinValue(
1269
- this.cnvWidth * DataMapper.capMaxValue(data.value, this.gainCapped, this.lossCapped) / this.cnvAbsPercentile
1270
- );
1271
- }
1272
- if (this.lossOnly) {
1273
- return maxOuterRadius;
1274
- }
1275
- const centerRadius = this.cnvInnerRadius + this.cnvWidth / 2;
1276
- if (Math.sign(data.value) == 1) {
1277
- return centerRadius + DataMapper.capMinValue(
1278
- DataMapper.capMaxValue(data.value, this.gainCapped, this.lossCapped) / this.cnvMaxAbsValue * (this.cnvWidth / 2)
1279
- );
1280
- }
1281
- if (Math.sign(data.value) == -1) {
1282
- return centerRadius;
1283
- }
1284
- return 1;
1285
- }
1286
- };
1287
-
1288
- // plots/disco/label/Line.ts
1289
- var Line = class {
1290
- constructor(points, color) {
1291
- this.points = new Array();
1292
- this.points = points;
1293
- this.color = color;
1294
- }
1295
- };
1296
-
1297
- // plots/disco/label/LabelFactory.ts
1298
- var LabelFactory = class {
1299
- static createLabel(startAngle, endAngle, innerRadius, outerRadius, value, gene, color, dataClass, chr, position, isPrioritized = false, labelsToLinesGap, mutationTooltip, fusionTooltip) {
1300
- const angle = (startAngle + endAngle) / 2;
1301
- const ccAngle = angle - Math.PI / 2;
1302
- const transform = `rotate(${angle * 180 / Math.PI - 90}) translate(${outerRadius})${angle > Math.PI ? "rotate(180)" : ""}`;
1303
- const textAnchor = angle > Math.PI ? "end" : "";
1304
- const r0 = innerRadius;
1305
- const r1 = outerRadius - labelsToLinesGap;
1306
- const points = [];
1307
- const point0 = {
1308
- x: r0 * Math.cos(ccAngle),
1309
- y: r0 * Math.sin(ccAngle)
1310
- };
1311
- const point1 = {
1312
- x: r1 * Math.cos(ccAngle),
1313
- y: r1 * Math.sin(ccAngle)
1314
- };
1315
- points.push(point0);
1316
- points.push(point1);
1317
- const line = new Line(points, color);
1318
- const label = {
1319
- startAngle,
1320
- endAngle,
1321
- innerRadius,
1322
- outerRadius,
1323
- angle,
1324
- value,
1325
- text: gene,
1326
- color,
1327
- transform,
1328
- textAnchor,
1329
- ccAngle,
1330
- line,
1331
- isPrioritized,
1332
- start: position,
1333
- stop: position,
1334
- chr,
1335
- mutationsTooltip: mutationTooltip ? [mutationTooltip] : void 0,
1336
- fusionTooltip: fusionTooltip ? [fusionTooltip] : void 0
1337
- };
1338
- return label;
1339
- }
1340
- static createMovedLabel(element, overlap) {
1341
- const startAngle = element.startAngle + overlap;
1342
- const endAngle = element.endAngle + overlap;
1343
- const angle = (startAngle + endAngle) / 2;
1344
- const ccAngle = angle - Math.PI / 2;
1345
- const r0 = element.innerRadius;
1346
- const r1 = element.outerRadius - 2;
1347
- const dr = (r1 - r0) / 3;
1348
- const cos0 = Math.cos(element.ccAngle);
1349
- const sin0 = Math.sin(element.ccAngle);
1350
- const cos1 = Math.cos(element.ccAngle + overlap);
1351
- const sin1 = Math.sin(element.ccAngle + overlap);
1352
- const points = [];
1353
- const point0 = {
1354
- x: r0 * cos0,
1355
- y: r0 * sin0
1356
- };
1357
- const point1 = {
1358
- x: (r0 + dr) * cos0,
1359
- y: (r0 + dr) * sin0
1360
- };
1361
- const point2 = {
1362
- x: (r0 + 2 * dr) * cos1,
1363
- y: (r0 + 2 * dr) * sin1
1364
- };
1365
- const point3 = {
1366
- x: (r0 + 3 * dr) * cos1,
1367
- y: (r0 + 3 * dr) * sin1
1368
- };
1369
- points.push(point0);
1370
- points.push(point1);
1371
- points.push(point2);
1372
- points.push(point3);
1373
- const line = new Line(points, element.color);
1374
- const transform = "rotate(" + (angle * 180 / Math.PI - 90) + ")translate(" + element.outerRadius + ")" + (angle > Math.PI ? "rotate(180)" : "");
1375
- const textAnchor = angle > Math.PI ? "end" : "";
1376
- const color = element.mutationsTooltip ? element.mutationsTooltip[0].color : element.fusionTooltip ? element.fusionTooltip[0].color : void 0;
1377
- const label = {
1378
- startAngle,
1379
- endAngle,
1380
- innerRadius: element.innerRadius,
1381
- outerRadius: element.outerRadius,
1382
- angle,
1383
- value: element.value,
1384
- text: element.text,
1385
- transform,
1386
- textAnchor,
1387
- ccAngle,
1388
- color,
1389
- line,
1390
- isPrioritized: element.isPrioritized,
1391
- start: element.start,
1392
- stop: element.stop,
1393
- chr: element.chr,
1394
- mutationsTooltip: element.mutationsTooltip,
1395
- fusionTooltip: element.fusionTooltip
1396
- };
1397
- return label;
1398
- }
1399
- };
1400
-
1401
- // plots/disco/label/LabelsMapper.ts
1402
- var LabelsMapper = class {
1403
- constructor(settings, sampleName, reference, cnvMaxPercentileAbs = 0) {
1404
- this.labelMap = /* @__PURE__ */ new Map();
1405
- this.settings = settings;
1406
- this.sampleName = sampleName;
1407
- this.reference = reference;
1408
- this.cnvMaxPercentileAbs = cnvMaxPercentileAbs;
1409
- }
1410
- map(data, cnvData = []) {
1411
- const innerRadius = this.settings.rings.labelLinesInnerRadius;
1412
- const outerRadius = innerRadius + this.settings.rings.labelsToLinesDistance;
1413
- data.forEach((data2) => {
1414
- if (data2.dt == dtsnvindel) {
1415
- const startAngle = this.calculateStartAngle(data2.chr, data2.position);
1416
- const endAngle = this.calculateEndAngle(data2.chr, data2.position);
1417
- if (startAngle === null || endAngle === null) return;
1418
- const mLabel = MLabel.getInstance().mlabel ? MLabel.getInstance().mlabel[data2.mClass] : void 0;
1419
- this.addLabelOrMutation(
1420
- data2,
1421
- data2.gene,
1422
- data2.mname,
1423
- startAngle,
1424
- endAngle,
1425
- innerRadius,
1426
- outerRadius,
1427
- mLabel.color,
1428
- mLabel.label
1429
- );
1430
- }
1431
- if (data2.dt == dtfusionrna) {
1432
- const color = FusionColorProvider.getColor(data2.chrA, data2.chrB);
1433
- if (data2.geneA) {
1434
- const startAngleSource = this.calculateStartAngle(data2.chrA, data2.posA);
1435
- const endAngleSource = this.calculateEndAngle(data2.chrA, data2.posA);
1436
- if (startAngleSource === null || endAngleSource === null) return;
1437
- this.addLabelOrFusion(
1438
- data2,
1439
- data2.geneA,
1440
- data2.posA,
1441
- startAngleSource,
1442
- endAngleSource,
1443
- innerRadius,
1444
- outerRadius,
1445
- color
1446
- );
1447
- }
1448
- if (data2.geneB && data2.geneA != data2.geneB) {
1449
- const startAngleTarget = this.calculateStartAngle(data2.chrB, data2.posB);
1450
- const endAngleTarget = this.calculateEndAngle(data2.chrB, data2.posB);
1451
- if (startAngleTarget == null || endAngleTarget == null) return;
1452
- this.addLabelOrFusion(
1453
- data2,
1454
- data2.geneB,
1455
- data2.posB,
1456
- startAngleTarget,
1457
- endAngleTarget,
1458
- innerRadius,
1459
- outerRadius,
1460
- color
1461
- );
1462
- }
1463
- }
1464
- });
1465
- const labelsArray = Array.from(this.labelMap.values());
1466
- labelsArray.forEach((label) => {
1467
- cnvData.forEach((cnv) => {
1468
- if (label.stop >= cnv.start && cnv.stop >= label.start && label.chr == cnv.chr) {
1469
- const mutation = {
1470
- value: cnv.value,
1471
- color: CnvColorProvider.getColor(cnv.value, this.settings, this.cnvMaxPercentileAbs),
1472
- chr: cnv.chr,
1473
- start: cnv.start,
1474
- stop: cnv.stop
1475
- };
1476
- if (label.cnvTooltip) {
1477
- label.cnvTooltip.push(mutation);
1478
- } else {
1479
- label.cnvTooltip = [];
1480
- label.cnvTooltip.push(mutation);
1481
- }
1482
- }
1483
- });
1484
- });
1485
- return Array.from(this.labelMap.values());
1486
- }
1487
- addLabelOrMutation(data, gene, mname, startAngle, endAngle, innerRadius, outerRadius, color, dataClass) {
1488
- const label = this.labelMap.get(gene);
1489
- const mutation = {
1490
- mname,
1491
- color,
1492
- dataClass,
1493
- chr: data.chr,
1494
- position: data.position,
1495
- vafs: data.vafs
1496
- };
1497
- if (!label) {
1498
- this.labelMap.set(
1499
- gene,
1500
- LabelFactory.createLabel(
1501
- startAngle,
1502
- endAngle,
1503
- innerRadius,
1504
- outerRadius,
1505
- data.value,
1506
- gene,
1507
- color,
1508
- dataClass,
1509
- data.chr,
1510
- data.position,
1511
- data.isPrioritized,
1512
- this.settings.rings.labelsToLinesGap,
1513
- mutation
1514
- )
1515
- );
1516
- } else {
1517
- if (label.mutationsTooltip) {
1518
- label.start = Math.min(label.start, data.position);
1519
- label.stop = Math.max(label.stop, data.position);
1520
- label.mutationsTooltip.push(mutation);
1521
- } else {
1522
- label.mutationsTooltip = [];
1523
- label.start = Math.min(label.start, data.position);
1524
- label.stop = Math.max(label.stop, data.position);
1525
- label.mutationsTooltip.push(mutation);
1526
- }
1527
- }
1528
- }
1529
- addLabelOrFusion(data, gene, position, startAngle, endAngle, innerRadius, outerRadius, color) {
1530
- const label = this.labelMap.get(gene);
1531
- const fusionTooltip = {
1532
- color,
1533
- chrA: data.chrA,
1534
- chrB: data.chrB,
1535
- posA: data.posA,
1536
- posB: data.posB,
1537
- geneA: data.geneA,
1538
- geneB: data.geneB,
1539
- strandA: data.strandA,
1540
- strandB: data.strandB
1541
- };
1542
- if (!label) {
1543
- this.labelMap.set(
1544
- gene,
1545
- LabelFactory.createLabel(
1546
- startAngle,
1547
- endAngle,
1548
- innerRadius,
1549
- outerRadius,
1550
- data.value,
1551
- gene,
1552
- color,
1553
- "Fusion transcript",
1554
- data.chr,
1555
- data.position,
1556
- data.isPrioritized,
1557
- this.settings.rings.labelsToLinesGap,
1558
- void 0,
1559
- fusionTooltip
1560
- )
1561
- );
1562
- } else {
1563
- if (label.fusionTooltip) {
1564
- label.start = Math.min(label.start, position);
1565
- label.stop = Math.max(label.stop, position);
1566
- label.fusionTooltip.push(fusionTooltip);
1567
- } else {
1568
- label.fusionTooltip = [];
1569
- label.start = Math.min(label.start, position);
1570
- label.stop = Math.max(label.stop, position);
1571
- label.fusionTooltip.push(fusionTooltip);
1572
- }
1573
- }
1574
- }
1575
- calculateStartAngle(chr, position) {
1576
- const index = this.reference.chromosomesOrder.findIndex((element) => element == chr);
1577
- if (index === -1) return null;
1578
- const chromosome = this.reference.chromosomes[index];
1579
- return chromosome.startAngle + (chromosome.endAngle - chromosome.startAngle) * (Number(position) / chromosome.size);
1580
- }
1581
- calculateEndAngle(chr, position) {
1582
- const index = this.reference.chromosomesOrder.findIndex((element) => element == chr);
1583
- if (index === -1) return null;
1584
- const chromosome = this.reference.chromosomes[index];
1585
- return chromosome.startAngle + (chromosome.endAngle - chromosome.startAngle) * (Number(position) / chromosome.size);
1586
- }
1587
- };
1588
-
1589
- // plots/disco/label/Labels.ts
1590
- var Labels = class extends Ring {
1591
- constructor(settings, elements, hasPrioritizedGenes) {
1592
- super(
1593
- settings.rings.labelLinesInnerRadius,
1594
- settings.rings.labelsToLinesDistance,
1595
- elements.sort((a, b) => {
1596
- return a.startAngle < b.startAngle ? -1 : a.startAngle > b.startAngle ? 1 : 0;
1597
- })
1598
- );
1599
- this.elementsToDisplay = [];
1600
- this.settings = settings;
1601
- this.hasPrioritizedGenes = hasPrioritizedGenes;
1602
- const circumference = 2 * Math.PI * (settings.rings.labelLinesInnerRadius + settings.rings.labelsToLinesDistance);
1603
- this.overlapAngle = this.settings.label.overlapAngleFactor * this.settings.label.fontSize / circumference;
1604
- this.calculateCollisions();
1605
- }
1606
- calculateCollisions() {
1607
- this.collisions = [];
1608
- let hasPrioritizedGenesList = [];
1609
- hasPrioritizedGenesList = this.elements.filter((label) => label.isPrioritized);
1610
- if (this.settings.label.prioritizeGeneLabelsByGeneSets) {
1611
- this.elementsToDisplay = this.getLabelsWithPrioritizedGenes(hasPrioritizedGenesList);
1612
- } else if (this.hasPrioritizedGenes) {
1613
- const prioritizedGenesList = this.elements.filter((label) => label.isPrioritized);
1614
- const filteredPrioritizedGenesList = this.getLabelsWithPrioritizedGenes(prioritizedGenesList);
1615
- const withoutPrioritizedGenesList = this.elements.filter((label) => !label.isPrioritized);
1616
- const combinedAndSortedList = [...withoutPrioritizedGenesList, ...filteredPrioritizedGenesList].sort(
1617
- (a, b) => a.startAngle - b.startAngle
1618
- );
1619
- this.elementsToDisplay = this.getAllLabels(combinedAndSortedList);
1620
- } else {
1621
- this.elementsToDisplay = this.getLabelsWithPrioritizedGenes(this.elements);
1622
- }
1623
- }
1624
- getLabelsWithPrioritizedGenes(elemenets) {
1625
- const filteredList = [];
1626
- let prev = { endAngle: 0 };
1627
- elemenets.forEach((element, index) => {
1628
- if (index == 0) {
1629
- filteredList.push(element);
1630
- prev = element;
1631
- } else {
1632
- const overlap = prev.endAngle - element.startAngle + this.overlapAngle;
1633
- if (overlap > 0 && overlap < this.settings.label.maxDeltaAngle) {
1634
- const labelCopy = LabelFactory.createMovedLabel(element, overlap);
1635
- filteredList?.push(labelCopy);
1636
- prev = labelCopy;
1637
- }
1638
- if (overlap <= 0) {
1639
- filteredList.push(element);
1640
- prev = element;
1641
- }
1642
- }
1643
- });
1644
- return filteredList;
1645
- }
1646
- getAllLabels(elemenets) {
1647
- const filteredList = [];
1648
- let prev = { endAngle: 0 };
1649
- const elemenetsLength = elemenets.length;
1650
- let lastCancerGeneLabelIndex = -1;
1651
- for (let index = 0; index < elemenets.length; index++) {
1652
- const element = elemenets[index];
1653
- if (element.isPrioritized) {
1654
- filteredList.push(element);
1655
- lastCancerGeneLabelIndex = index;
1656
- prev = element;
1657
- continue;
1658
- }
1659
- if (index == 0) {
1660
- if (elemenetsLength > 1) {
1661
- if (this.isElementOverlappingNextCancerGene(elemenets, lastCancerGeneLabelIndex, element, 0)) {
1662
- continue;
1663
- }
1664
- filteredList.push(element);
1665
- prev = element;
1666
- }
1667
- continue;
1668
- }
1669
- const prevOverlap = prev.endAngle - element.startAngle + this.overlapAngle;
1670
- if (prevOverlap > 0 && prevOverlap < this.settings.label.maxDeltaAngle) {
1671
- if (index == length - 1) {
1672
- filteredList.push(element);
1673
- continue;
1674
- }
1675
- if (this.isElementOverlappingNextCancerGene(elemenets, lastCancerGeneLabelIndex, element, prevOverlap)) {
1676
- continue;
1677
- }
1678
- const labelCopy = LabelFactory.createMovedLabel(element, prevOverlap);
1679
- this.collisions?.push(labelCopy);
1680
- filteredList.push(element);
1681
- prev = labelCopy;
1682
- }
1683
- if (prevOverlap <= 0) {
1684
- if (this.isElementOverlappingNextCancerGene(elemenets, lastCancerGeneLabelIndex, element, 0)) {
1685
- continue;
1686
- }
1687
- filteredList.push(element);
1688
- prev = element;
1689
- }
1690
- }
1691
- return filteredList;
1692
- }
1693
- isElementOverlappingNextCancerGene(elemenets, lastCancerGeneLabelIndex, element, prevOverlap) {
1694
- const nextLabelWithCancerGene = this.getNextLabelWithCancerGene(elemenets, lastCancerGeneLabelIndex);
1695
- if (nextLabelWithCancerGene) {
1696
- const nextOverlap = element.endAngle + prevOverlap - nextLabelWithCancerGene.startAngle + this.overlapAngle;
1697
- if (nextOverlap > 0) {
1698
- return true;
1699
- }
1700
- }
1701
- return false;
1702
- }
1703
- getNextLabelWithCancerGene(elemenets, lastCancerGeneLabelIndex) {
1704
- return elemenets.find((label, index) => label.isPrioritized && index > lastCancerGeneLabelIndex);
1705
- }
1706
- };
1707
-
1708
- // plots/disco/snv/NonExonicSnvArcsMapper.ts
1709
- var NonExonicSnvArcsMapper = class {
1710
- constructor(nonExonicInnerRadius, nonExonicWidht, sampleName, reference) {
1711
- this.nonExonicInnerRadius = nonExonicInnerRadius;
1712
- this.nonExonicWidht = nonExonicWidht;
1713
- this.sampleName = sampleName;
1714
- this.reference = reference;
1715
- this.onePxArcAngle = 1 / nonExonicInnerRadius;
1716
- }
1717
- map(arcData) {
1718
- const innerRadius = this.nonExonicInnerRadius;
1719
- const outerRadius = innerRadius + this.nonExonicWidht;
1720
- const arcs = [];
1721
- arcData.forEach((data) => {
1722
- const mLabel = MLabel.getInstance().mlabel ? MLabel.getInstance().mlabel[data.mClass] : void 0;
1723
- const startAngle = this.calculateStartAngle(data);
1724
- const endAngle = this.calculateEndAngle(data);
1725
- if (startAngle === null || endAngle === null) return;
1726
- const arc = {
1727
- startAngle,
1728
- endAngle,
1729
- innerRadius,
1730
- outerRadius,
1731
- color: mLabel.color,
1732
- text: data.gene,
1733
- dataClass: mLabel.label,
1734
- mname: data.mname,
1735
- chr: data.chr,
1736
- pos: data.position,
1737
- vafs: data.vafs,
1738
- sampleName: [data.sampleName]
1739
- };
1740
- arcs.push(arc);
1741
- });
1742
- return arcs;
1743
- }
1744
- calculateStartAngle(data) {
1745
- const index = this.reference.chromosomesOrder.indexOf(data.chr);
1746
- if (index === -1) return null;
1747
- const chromosome = this.reference.chromosomes[index];
1748
- return chromosome.startAngle + (chromosome.endAngle - chromosome.startAngle) * (Number(data.position) / chromosome.size) - this.onePxArcAngle;
1749
- }
1750
- calculateEndAngle(data) {
1751
- const index = this.reference.chromosomesOrder.indexOf(data.chr);
1752
- const chromosome = this.reference.chromosomes[index];
1753
- return this.onePxArcAngle + chromosome.startAngle + (chromosome.endAngle - chromosome.startAngle) * (Number(data.position) / chromosome.size);
1754
- }
1755
- };
1756
-
1757
- // plots/disco/loh/LohArcMapper.ts
1758
- var LohArcMapper = class {
1759
- constructor(lohInnerRadius, lohWidth, sampleName, reference) {
1760
- this.lohInnerRadius = lohInnerRadius;
1761
- this.lohWidth = lohWidth;
1762
- this.sampleName = sampleName;
1763
- this.reference = reference;
1764
- }
1765
- map(arcData) {
1766
- const arcs = [];
1767
- arcData.forEach((data) => {
1768
- const startAngle = this.calculateStartAngle(data);
1769
- const endAngle = this.calculateEndAngle(data);
1770
- if (startAngle === null || endAngle === null) return;
1771
- const innerRadius = this.lohInnerRadius;
1772
- const outerRadius = innerRadius + this.lohWidth;
1773
- const color = GradientColorProvider.provide(data.segmean);
1774
- const arc = {
1775
- startAngle,
1776
- endAngle,
1777
- innerRadius,
1778
- outerRadius,
1779
- color,
1780
- text: data.gene,
1781
- chr: data.chr,
1782
- start: data.start,
1783
- stop: data.stop,
1784
- value: data.segmean
1785
- };
1786
- arcs.push(arc);
1787
- });
1788
- return arcs;
1789
- }
1790
- calculateStartAngle(data) {
1791
- const index = this.reference.chromosomesOrder.indexOf(data.chr);
1792
- if (index === -1) return null;
1793
- const chromosome = this.reference.chromosomes[index];
1794
- return chromosome.startAngle + (chromosome.endAngle - chromosome.startAngle) * (Number(data.start) / chromosome.size);
1795
- }
1796
- calculateEndAngle(data) {
1797
- const index = this.reference.chromosomesOrder.indexOf(data.chr);
1798
- const chromosome = this.reference.chromosomes[index];
1799
- return chromosome.startAngle + (chromosome.endAngle - chromosome.startAngle) * (Number(data.stop) / chromosome.size);
1800
- }
1801
- };
1802
-
1803
- // plots/disco/ring/Rings.ts
1804
- var Rings = class {
1805
- constructor(labelsRing, chromosomesRing, nonExonicArcRing, snvArcRing, cnvArcRing, lohArcRing, mutationWaterfallRing) {
1806
- this.labelsRing = labelsRing;
1807
- this.chromosomesRing = chromosomesRing;
1808
- this.nonExonicArcRing = nonExonicArcRing;
1809
- this.snvArcRing = snvArcRing;
1810
- this.cnvArcRing = cnvArcRing;
1811
- this.lohArcRing = lohArcRing;
1812
- this.mutationWaterfallRing = mutationWaterfallRing;
1813
- }
1814
- };
1815
-
1816
- // plots/disco/waterfall/MutationWaterfallMapper.ts
1817
- var MutationWaterfallMapper = class {
1818
- constructor(innerRadius, ringWidth, reference, logRange, color = "#4d4d4d") {
1819
- this.innerRadius = innerRadius;
1820
- this.ringWidth = ringWidth;
1821
- this.reference = reference;
1822
- this.logRange = logRange;
1823
- this.color = color;
1824
- }
1825
- map(data = []) {
1826
- if (!data.length) return [];
1827
- const min = this.logRange?.min ?? 0;
1828
- const max = this.logRange?.max ?? min + 1;
1829
- const span = max - min || 1;
1830
- const points = [];
1831
- for (const datum of data) {
1832
- const chrIndex = this.reference.chromosomesOrder.indexOf(datum.chr);
1833
- if (chrIndex === -1) continue;
1834
- const chromosome = this.reference.chromosomes[chrIndex];
1835
- const chrAngleSpan = chromosome.endAngle - chromosome.startAngle;
1836
- const relPos = chromosome.size > 0 ? datum.position / chromosome.size : 0;
1837
- const angle = chromosome.startAngle + chrAngleSpan * relPos;
1838
- const normalized = Math.max(0, Math.min(1, (datum.logDistance - min) / span));
1839
- const radius = this.innerRadius + this.ringWidth * normalized;
1840
- points.push({
1841
- startAngle: angle,
1842
- endAngle: angle,
1843
- innerRadius: radius,
1844
- outerRadius: radius,
1845
- text: chromosome.text,
1846
- color: this.color,
1847
- chr: datum.chr,
1848
- position: datum.position,
1849
- logDistance: datum.logDistance,
1850
- ringInnerRadius: this.innerRadius,
1851
- ringWidth: this.ringWidth,
1852
- rangeMin: min,
1853
- rangeMax: max
1854
- });
1855
- }
1856
- return points;
1857
- }
1858
- };
1859
-
1860
- // plots/disco/viewmodel/ViewModelProvider.ts
1861
- var ViewModelProvider = class {
1862
- constructor(settings, dataMapper, reference, sampleName, genesetName, discoInteractions) {
1863
- this.nonExonicArcRing = void 0;
1864
- this.settings = settings;
1865
- this.dataMapper = dataMapper;
1866
- this.reference = reference;
1867
- this.sampleName = sampleName;
1868
- this.genesetName = genesetName;
1869
- this.discoInteractions = discoInteractions;
1870
- }
1871
- map(data) {
1872
- const dataHolder = this.dataMapper.map(data);
1873
- const labelsMapper = new LabelsMapper(
1874
- this.settings,
1875
- this.sampleName,
1876
- this.reference,
1877
- dataHolder.cnvMaxPercentileAbs
1878
- );
1879
- const labelsData = labelsMapper.map(dataHolder.labelData, dataHolder.cnvData);
1880
- const labelsRing = new Labels(this.settings, labelsData, dataHolder.hasPrioritizedGenes);
1881
- const chromosomesRing = new Ring(
1882
- this.settings.rings.chromosomeInnerRadius,
1883
- this.settings.rings.chromosomeWidth,
1884
- this.reference.chromosomes
1885
- );
1886
- const nonExonicSnvArcsMapper = new NonExonicSnvArcsMapper(
1887
- dataHolder.nonExonicInnerRadius,
1888
- this.settings.rings.nonExonicRingWidth,
1889
- this.sampleName,
1890
- this.reference
1891
- );
1892
- const nonExonicData = nonExonicSnvArcsMapper.map(dataHolder.nonExonicSnvData);
1893
- if (nonExonicData.length > 0) {
1894
- this.nonExonicArcRing = new Ring(
1895
- dataHolder.nonExonicInnerRadius,
1896
- this.settings.rings.nonExonicRingWidth,
1897
- nonExonicData
1898
- );
1899
- }
1900
- this.snvArcsMapper = new SnvArcsMapper(
1901
- dataHolder.snvInnerRadius,
1902
- this.settings.rings.snvRingWidth,
1903
- this.sampleName,
1904
- this.reference
1905
- );
1906
- const snvData = this.snvArcsMapper.map(dataHolder.snvRingDataMap);
1907
- if (snvData.length > 0) {
1908
- this.snvArcRing = new Ring(dataHolder.snvInnerRadius, this.settings.rings.snvRingWidth, snvData);
1909
- }
1910
- const lohMapper = new LohArcMapper(
1911
- dataHolder.lohInnerRadius,
1912
- this.settings.rings.lohRingWidth,
1913
- this.sampleName,
1914
- this.reference
1915
- );
1916
- const lohData = lohMapper.map(dataHolder.lohData);
1917
- if (lohData.length > 0) {
1918
- this.lohArcRing = new Ring(dataHolder.lohInnerRadius, this.settings.rings.lohRingWidth, lohData);
1919
- }
1920
- this.cnvArcsMapper = new CnvArcsMapper(
1921
- dataHolder.cnvInnerRadius,
1922
- this.settings.rings.cnvRingWidth,
1923
- this.settings,
1924
- this.sampleName,
1925
- this.reference,
1926
- dataHolder.percentilePositive,
1927
- dataHolder.percentileNegative,
1928
- dataHolder.cappedCnvMaxAbsValue,
1929
- dataHolder.cnvMaxPercentileAbs,
1930
- this.settings.cnv.unit,
1931
- this.settings.Disco.cnvRenderingType
1932
- );
1933
- const cnvData = this.cnvArcsMapper.map(dataHolder.cnvData);
1934
- if (cnvData.length > 0) {
1935
- this.cnvArcRing = new Ring(dataHolder.cnvInnerRadius, this.settings.rings.cnvRingWidth, cnvData);
1936
- }
1937
- if (this.settings.Disco.mutationWaterfallPlot && dataHolder.mutationWaterfallData?.length && dataHolder.mutationWaterfallInnerRadius !== void 0 && //Added this check to prevent TypeScript error "mutationWaterfallInnerRadius might be undefined"
1938
- (dataHolder.mutationWaterfallInnerRadius ?? 0) > 0 && dataHolder.mutationWaterfallLogRange) {
1939
- const mutationWaterfallMapper = new MutationWaterfallMapper(
1940
- dataHolder.mutationWaterfallInnerRadius,
1941
- this.settings.rings.mutationWaterfallRingWidth,
1942
- this.reference,
1943
- dataHolder.mutationWaterfallLogRange,
1944
- this.settings.Disco.mutationWaterfallColor || "#4d4d4d"
1945
- );
1946
- const waterfallData = mutationWaterfallMapper.map(dataHolder.mutationWaterfallData);
1947
- if (waterfallData.length > 0) {
1948
- this.mutationWaterfallRing = new Ring(
1949
- dataHolder.mutationWaterfallInnerRadius,
1950
- this.settings.rings.mutationWaterfallRingWidth,
1951
- waterfallData
1952
- );
1953
- }
1954
- }
1955
- const fusionMapper = new FusionMapper(dataHolder.fusionRadius, this.sampleName, this.reference);
1956
- const fusions = fusionMapper.map(dataHolder.fusionData);
1957
- let lohLegend;
1958
- if (this.settings.legend.lohLegendEnabled && dataHolder.lohMinValue && dataHolder.lohMaxValue) {
1959
- lohLegend = new LohLegend(dataHolder.lohMinValue, dataHolder.lohMaxValue);
1960
- }
1961
- const legend = new Legend(
1962
- this.settings.legend.snvTitle,
1963
- this.settings.legend.cnvTitle,
1964
- this.settings.legend.lohTitle,
1965
- this.settings.legend.fusionTitle,
1966
- this.settings.Disco.cnvPercentile,
1967
- this.settings.Disco.cnvCutoffMode,
1968
- this.snvArcsMapper ? this.snvArcsMapper.snvClassMap : /* @__PURE__ */ new Map(),
1969
- this.cnvArcsMapper ? this.cnvArcsMapper.cnvClassMap : /* @__PURE__ */ new Map(),
1970
- this.settings.Disco.cnvRenderingType,
1971
- fusions.length > 0,
1972
- this.discoInteractions,
1973
- lohLegend,
1974
- this.settings.Disco.mutationWaterfallPlot && this.mutationWaterfallRing ? {
1975
- color: this.settings.Disco.mutationWaterfallColor || "#4d4d4d",
1976
- onColorChange: this.discoInteractions.onMutationWaterfallColorChange
1977
- } : void 0
1978
- );
1979
- const rings = new Rings(
1980
- labelsRing,
1981
- chromosomesRing,
1982
- this.nonExonicArcRing,
1983
- this.snvArcRing,
1984
- this.cnvArcRing,
1985
- this.lohArcRing,
1986
- this.mutationWaterfallRing
1987
- );
1988
- return new ViewModel(
1989
- this.settings,
1990
- rings,
1991
- legend,
1992
- fusions,
1993
- dataHolder,
1994
- this.genesetName,
1995
- data.filter((i) => i.dt == dtsnvindel).length
1996
- );
1997
- }
1998
- };
1999
-
2000
- // plots/disco/viewmodel/ViewModelMapper.ts
2001
- var ViewModelMapper = class {
2002
- static {
2003
- this.snvClassLayer = {
2004
- M: "exonic",
2005
- E: "exonic",
2006
- F: "exonic",
2007
- N: "exonic",
2008
- S: "exonic",
2009
- D: "exonic",
2010
- I: "exonic",
2011
- P: "exonic",
2012
- L: "exonic",
2013
- Utr3: "exonic",
2014
- Utr5: "exonic",
2015
- ProteinAltering: "exonic",
2016
- mnv: "non-exonic",
2017
- ITD: "non-exonic",
2018
- insertion: "non-exonic",
2019
- deletion: "non-exonic",
2020
- Intron: "non-exonic",
2021
- X: "non-exonic",
2022
- noncoding: "non-exonic"
2023
- };
2024
- }
2025
- constructor(settings, discoInteractions) {
2026
- this.settings = JSON.parse(JSON.stringify(settings));
2027
- this.discoInteractions = discoInteractions;
2028
- }
2029
- applyRadius() {
2030
- const radius = this.settings.Disco.radius;
2031
- if (!radius) return;
2032
- const scale = radius / this.settings.rings.labelLinesInnerRadius;
2033
- this.settings.rings.labelLinesInnerRadius *= scale;
2034
- this.settings.rings.labelsToLinesDistance *= scale;
2035
- this.settings.rings.chromosomeInnerRadius *= scale;
2036
- this.settings.rings.chromosomeWidth *= scale;
2037
- this.settings.rings.nonExonicRingWidth *= scale;
2038
- this.settings.rings.snvRingWidth *= scale;
2039
- this.settings.rings.lohRingWidth *= scale;
2040
- this.settings.rings.cnvRingWidth *= scale;
2041
- this.settings.rings.mutationWaterfallRingWidth *= scale;
2042
- this.settings.label.fontSize *= scale;
2043
- this.settings.legend.fontSize *= scale;
2044
- }
2045
- map(opts) {
2046
- const chrSizes = opts.args.genome.majorchr;
2047
- const chromosomesOverride = {};
2048
- for (const chr of Object.keys(chrSizes)) {
2049
- if (!this.settings.Disco.hiddenChromosomes.includes(chr)) {
2050
- chromosomesOverride[chr] = chrSizes[chr];
2051
- }
2052
- }
2053
- const sampleName = opts.args.sampleName;
2054
- const genome = opts.args.genome;
2055
- const prioritizedGenes = genome?.geneset?.[0] ? genome.geneset[0].lst : [];
2056
- const genesetName = genome?.geneset?.[0] ? genome.geneset[0].name : "";
2057
- const data = opts.args.data;
2058
- this.applyRadius();
2059
- const reference = new Reference(this.settings, chrSizes, chromosomesOverride);
2060
- const dataMapper = new DataMapper(this.settings, reference, sampleName, prioritizedGenes);
2061
- return new ViewModelProvider(
2062
- this.settings,
2063
- dataMapper,
2064
- reference,
2065
- sampleName,
2066
- genesetName,
2067
- this.discoInteractions
2068
- ).map(data);
2069
- }
2070
- };
2071
-
2072
- // plots/disco/legend/LegendJSONMapper.ts
2073
- var LegendJSONMapper = class {
2074
- constructor(cappedCnvMaxAbsValue) {
2075
- this.cappedCnvMaxAbsValue = cappedCnvMaxAbsValue;
2076
- }
2077
- map(legend) {
2078
- const legendJSON = [];
2079
- let order = 0;
2080
- if (legend.snvClassMap) {
2081
- this.mapSnv(legend, legendJSON, order++);
2082
- }
2083
- if (legend.cnvRenderingType == "heatmap" /* heatmap */) {
2084
- this.mapCnvHeatmap(legend, legendJSON, order++);
2085
- } else if (legend.cnvRenderingType == "bar" /* bar */) {
2086
- if (legend.cnvClassMap) {
2087
- this.mapCnvBar(legend, legendJSON, order++);
2088
- }
2089
- }
2090
- if (legend.lohLegend) {
2091
- this.mapLoh(legend, legendJSON, order++);
2092
- }
2093
- if (legend.fusionLegend) {
2094
- this.mapFusion(legend, legendJSON, order++);
2095
- }
2096
- if (legend.mutationWaterfallLegend) {
2097
- this.mapMutationWaterfall(legend, legendJSON, order++);
2098
- }
2099
- return legendJSON;
2100
- }
2101
- mapSnv(legend, legendJSON, order) {
2102
- const snvItems = [];
2103
- let snvOrder = 0;
2104
- for (const [snvKey, snvLegendElement] of legend.snvClassMap) {
2105
- snvItems.push({
2106
- termid: legend.snvTitle,
2107
- key: snvKey,
2108
- text: `${snvLegendElement.snvType} (${snvLegendElement.count})`,
2109
- color: snvLegendElement.color,
2110
- order: snvOrder++,
2111
- border: "1px solid #ccc"
2112
- });
2113
- }
2114
- legendJSON.push({
2115
- name: legend.snvTitle,
2116
- order,
2117
- items: snvItems
2118
- });
2119
- }
2120
- mapCnvBar(legend, legendJSON, order) {
2121
- if (!legend.cnvClassMap) return;
2122
- const gain = legend.cnvClassMap.get(1 /* Gain */);
2123
- const loss = legend.cnvClassMap.get(0 /* Loss */);
2124
- const cap = legend.cnvClassMap.get(2 /* Cap */);
2125
- if (gain && loss && cap) {
2126
- let cnvOrder = 0;
2127
- const cnvItems = [];
2128
- if (gain.value > 0) {
2129
- cnvItems.push({
2130
- termid: legend.cnvTitle,
2131
- key: 1 /* Gain */,
2132
- text: `Max: ${gain.value}`,
2133
- color: gain.color,
2134
- order: cnvOrder++,
2135
- border: "1px solid #ccc"
2136
- });
2137
- }
2138
- if (loss.value < 0) {
2139
- cnvItems.push({
2140
- termid: legend.cnvTitle,
2141
- key: 0 /* Loss */,
2142
- text: `Min: ${loss.value}`,
2143
- color: loss.color,
2144
- order: cnvOrder++,
2145
- border: "1px solid #ccc"
2146
- });
2147
- }
2148
- cnvItems.push({
2149
- termid: legend.cnvTitle,
2150
- key: 2 /* Cap */,
2151
- text: `Capping: ${cap.value}`,
2152
- color: cap.color,
2153
- order: cnvOrder++,
2154
- border: "1px solid #ccc"
2155
- // ,
2156
- // onClickCallback: this.onClickCallback
2157
- });
2158
- legendJSON.push({
2159
- name: legend.cnvTitle,
2160
- id: "sjpp-disco-cnv-legend",
2161
- order,
2162
- items: cnvItems
2163
- });
2164
- }
2165
- }
2166
- mapCnvHeatmap(legend, legendJSON, order) {
2167
- if (!legend.cnvClassMap) return;
2168
- const gain = legend.cnvClassMap.get(1 /* Gain */);
2169
- const loss = legend.cnvClassMap.get(0 /* Loss */);
2170
- const cap = legend.cnvClassMap.get(2 /* Cap */);
2171
- if (gain && loss && cap) {
2172
- let cnvOrder = 0;
2173
- const cnvItems = [];
2174
- const base = {
2175
- termid: legend.cnvTitle,
2176
- width: 100,
2177
- order: cnvOrder++,
2178
- isLegendItem: true,
2179
- dt: 4
2180
- };
2181
- if (gain.value > 0 && loss.value < 0) {
2182
- const maxValue = Math.max(Math.abs(loss.value), gain.value);
2183
- const domain = [-maxValue, 0, maxValue];
2184
- cnvItems.push(
2185
- Object.assign(
2186
- {
2187
- key: 3 /* LossGain */,
2188
- domain,
2189
- scale: linear([-1, 0, 1], [loss.color, "white", gain.color]),
2190
- labels: { left: "Loss", right: "Gain" },
2191
- numericInputs: {
2192
- cutoffMode: legend.cnvCutoffMode,
2193
- defaultPercentile: legend.cnvPercentile,
2194
- callback: (obj) => legend.discoInteractions.colorScaleNumericInputsCallback(obj)
2195
- }
2196
- },
2197
- base
2198
- )
2199
- );
2200
- } else {
2201
- if (gain.value > 0) {
2202
- cnvItems.push(
2203
- Object.assign(
2204
- {
2205
- key: 1 /* Gain */,
2206
- text: "Copy number gain",
2207
- domain: [0, gain.value],
2208
- scale: linear([0, 1], ["white", gain.color])
2209
- },
2210
- base
2211
- )
2212
- );
2213
- }
2214
- if (loss.value < 0) {
2215
- cnvItems.push(
2216
- Object.assign(
2217
- {
2218
- key: 0 /* Loss */,
2219
- text: "Copy number loss",
2220
- domain: [loss.value, 0],
2221
- scale: linear([0, 1], [loss.color, "white"])
2222
- },
2223
- base
2224
- )
2225
- );
2226
- }
2227
- }
2228
- legendJSON.push({
2229
- name: legend.cnvTitle,
2230
- order,
2231
- id: "sjpp-disco-cnv-legend",
2232
- items: cnvItems
2233
- });
2234
- }
2235
- }
2236
- mapLoh(legend, legendJSON, order) {
2237
- if (!legend.lohLegend) return;
2238
- const lohItems = [];
2239
- lohItems.push({
2240
- termid: legend.lohTitle,
2241
- key: "min",
2242
- text: "min",
2243
- color: legend.lohLegend.colorStartValue,
2244
- order: 0,
2245
- border: "1px solid #ccc"
2246
- });
2247
- lohItems.push({
2248
- termid: legend.lohTitle,
2249
- key: "max",
2250
- text: "max",
2251
- color: legend.lohLegend.colorEndValue,
2252
- order: 1,
2253
- border: "1px solid #ccc"
2254
- });
2255
- legendJSON.push({
2256
- name: legend.lohTitle,
2257
- order,
2258
- items: lohItems
2259
- });
2260
- }
2261
- mapFusion(legend, legendJSON, order) {
2262
- const fusionItems = [];
2263
- fusionItems.push({
2264
- termid: legend.fusionTitle,
2265
- key: "#6A3D9A" /* Interchromosomal */,
2266
- text: "Interchromosomal",
2267
- color: "#6A3D9A" /* Interchromosomal */.valueOf(),
2268
- order: 0,
2269
- border: "1px solid #ccc"
2270
- });
2271
- fusionItems.push({
2272
- termid: legend.fusionTitle,
2273
- key: "#1B9E77" /* Intrachromosomal */,
2274
- text: "Intrachromosomal",
2275
- color: "#1B9E77" /* Intrachromosomal */.valueOf(),
2276
- order: 1,
2277
- border: "1px solid #ccc"
2278
- });
2279
- legendJSON.push({
2280
- name: legend.fusionTitle,
2281
- order,
2282
- items: fusionItems
2283
- });
2284
- }
2285
- mapMutationWaterfall(legend, legendJSON, order) {
2286
- if (!legend.mutationWaterfallLegend) return;
2287
- const waterfallItems = [];
2288
- waterfallItems.push({
2289
- termid: "Mutation Waterfall Plot",
2290
- key: "mutation-waterfall-color",
2291
- text: "Dot color",
2292
- color: legend.mutationWaterfallLegend.color,
2293
- order: 0,
2294
- colorPicker: true,
2295
- inputWidth: 28,
2296
- width: 0,
2297
- onColorChange: legend.mutationWaterfallLegend.onColorChange
2298
- });
2299
- waterfallItems.push({
2300
- termid: "Mutation Waterfall Plot",
2301
- key: "mutation-waterfall-axis",
2302
- text: "Axis: log10 intermutation distance",
2303
- order: 1,
2304
- skipIcon: true,
2305
- width: 0
2306
- });
2307
- legendJSON.push({
2308
- name: "Mutation Waterfall Plot",
2309
- order,
2310
- items: waterfallItems
2311
- });
2312
- }
2313
- };
2314
-
2315
- // plots/disco/cnv/renderCnvSourceLegend.ts
2316
- function parseSetLabel(set, index) {
2317
- let text = set.name || `Set ${index + 1}`;
2318
- let href;
2319
- let target = "_blank";
2320
- if (set.nameHtml) {
2321
- const parser = new DOMParser();
2322
- const doc = parser.parseFromString(set.nameHtml, "text/html");
2323
- const anchor = doc.querySelector("a");
2324
- if (anchor) {
2325
- href = anchor.getAttribute("href") || void 0;
2326
- target = anchor.getAttribute("target") || "_blank";
2327
- text = anchor.textContent?.trim() || text;
2328
- } else {
2329
- text = doc.body.textContent?.trim() || text;
2330
- }
2331
- }
2332
- return { text, href, target };
2333
- }
2334
- function renderCnvSourceLegend(legendG, datasets, fontSize, onChange) {
2335
- if (!legendG || legendG.empty()) throw new Error("legendG is required");
2336
- if (!datasets || datasets.length === 0) throw new Error("at least one dataset is required");
2337
- legendG.select("g.sjpp-cnv-source").remove();
2338
- const gBBox = legendG.node().getBBox();
2339
- const cnvSrcWrapper = legendG.append("g").attr("class", "sjpp-cnv-source").attr("transform", `translate(${gBBox.width},${gBBox.y + fontSize})`);
2340
- const btnPaddingX = Math.round(fontSize * 0.8);
2341
- const btnHgt = Math.round(fontSize * 1.8);
2342
- const btnWrapper = cnvSrcWrapper.append("g").attr("transform", `translate(${fontSize},${-btnHgt / 2})`).style("cursor", "pointer").on("click", function(event) {
2343
- event.stopPropagation();
2344
- showCnvMenu(this);
2345
- });
2346
- 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());
2347
- const textW = btnText.node() ? Math.ceil(btnText.node().getBBox().width) : 0;
2348
- const btnWdt = textW + btnPaddingX * 2;
2349
- btnWrapper.insert("rect", ":first-child").attr("width", btnWdt).attr("height", btnHgt).attr("rx", 10).attr("ry", 10).style("fill", "#f2f2f2");
2350
- btnText.attr("x", btnWdt / 2).attr("text-anchor", "middle");
2351
- const cnvMenu = new Menu({
2352
- onHide: () => {
2353
- btnText.text("Select source \u25B2".toUpperCase());
2354
- }
2355
- });
2356
- function showCnvMenu(dom) {
2357
- btnText.text("Select source \u25BC".toUpperCase());
2358
- cnvMenu.clear().showunder(dom);
2359
- cnvMenu.d.append("div").text("Choose data source for CNV:").style("margin", "5px 5px 0 5px");
2360
- const tableHolder = cnvMenu.d.append("div").style("padding", "5px");
2361
- const { columns, rows } = buildTableData(datasets);
2362
- const [, activeIndex] = getActiveDataset(datasets);
2363
- renderTable({
2364
- columns,
2365
- rows,
2366
- div: tableHolder,
2367
- singleMode: true,
2368
- maxWidth: "70vw",
2369
- maxHeight: "60vh",
2370
- selectedRows: [activeIndex],
2371
- header: { allowSort: false },
2372
- noButtonCallback: (rowIndex, node) => {
2373
- const inputIndex = Number(node?.value);
2374
- const selectedIndex = Number.isNaN(inputIndex) ? rowIndex : inputIndex;
2375
- if (!Number.isNaN(selectedIndex)) onChange(selectedIndex);
2376
- cnvMenu.hide();
2377
- }
2378
- });
2379
- }
2380
- }
2381
- function getActiveDataset(datasets) {
2382
- let currentIndex = datasets.findIndex((d) => d.inuse);
2383
- if (currentIndex == -1) currentIndex = 0;
2384
- return [datasets[currentIndex], currentIndex];
2385
- }
2386
- function buildTableData(datasets) {
2387
- const attrKeys = [];
2388
- for (const set of datasets) {
2389
- if (!set.attrs) continue;
2390
- for (const key of Object.keys(set.attrs)) {
2391
- if (!attrKeys.includes(key)) attrKeys.push(key);
2392
- }
2393
- }
2394
- const columns = [{ label: "Source" }];
2395
- for (const key of attrKeys) columns.push({ label: key });
2396
- const rows = datasets.map((set, index) => {
2397
- const sourceInfo = parseSetLabel(set, index);
2398
- const cells = [];
2399
- if (set.nameHtml) cells.push({ html: set.nameHtml });
2400
- else if (sourceInfo.href) cells.push({ value: sourceInfo.text, url: sourceInfo.href });
2401
- else cells.push({ value: sourceInfo.text });
2402
- for (const key of attrKeys) {
2403
- const value = set.attrs?.[key];
2404
- cells.push({ value: value ?? "" });
2405
- }
2406
- return cells;
2407
- });
2408
- return { columns, rows };
2409
- }
2410
-
2411
- // plots/disco/legend/LegendRenderer.ts
2412
- var LegendRenderer = class {
2413
- constructor(cappedCnvMaxAbsValue = 0, fontSize) {
2414
- this.fontSize = fontSize;
2415
- this.legendJSONMapper = new LegendJSONMapper(cappedCnvMaxAbsValue);
2416
- }
2417
- render(holder, legend, xOffset, svgw, svgh, viewModel, onCnvSourceSelect) {
2418
- const svgLegendRenderer = svgLegend({
2419
- holder: holder.append("g").attr("data-testid", "sjpp_disco_plot_legend"),
2420
- rectFillFxn: (d2) => d2.color,
2421
- iconStroke: "#aaa"
2422
- });
2423
- const data = this.legendJSONMapper.map(legend);
2424
- const legendTitles = data.map((d2) => d2.name.trim());
2425
- const maxLabelWidth = getMaxLabelWidth(holder, legendTitles);
2426
- const d = {
2427
- xOffset: maxLabelWidth + xOffset
2428
- };
2429
- svgLegendRenderer(data, {
2430
- settings: Object.assign(
2431
- {},
2432
- {
2433
- svgw,
2434
- svgh,
2435
- dimensions: d,
2436
- fontsize: this.fontSize
2437
- }
2438
- )
2439
- });
2440
- const altCnv = viewModel.appState.args.alternativeDataByDt?.[dtcnv];
2441
- if (altCnv && altCnv.length > 0) {
2442
- const legendG = holder.select('g[data-testid="sjpp_disco_plot_legend"]');
2443
- const cnvLegendG = legendG.select("#sjpp-disco-cnv-legend");
2444
- if (!legendG.empty()) {
2445
- const add2G = cnvLegendG.empty() ? legendG : cnvLegendG;
2446
- renderCnvSourceLegend(add2G, altCnv, this.fontSize, onCnvSourceSelect);
2447
- }
2448
- }
2449
- }
2450
- };
2451
-
2452
- // plots/disco/chromosome/ChromosomesRenderer.ts
2453
- var ChromosomesRenderer = class {
2454
- constructor(padAngle, innerRadius, outerRadius, fontSize) {
2455
- this.padAngle = padAngle;
2456
- this.innerRadius = innerRadius;
2457
- this.outerRadius = outerRadius;
2458
- this.fontSize = fontSize;
2459
- }
2460
- render(holder, elements) {
2461
- const pie = pie_default().padAngle(this.padAngle).value((d) => d.size).sort(null);
2462
- const arcData = pie(elements);
2463
- const arc = arc_default().innerRadius(this.innerRadius).outerRadius(this.outerRadius);
2464
- const arcs = holder.append("g").attr("data-testid", "sjpp_chromosomes_arc_group");
2465
- const menu = MenuProvider.create();
2466
- arcs.selectAll("path").data(arcData).enter().append("path").attr("d", arc).attr("fill", "black").on("mousemove", (event, d) => {
2467
- const [x, y] = pointer_default(event, arcs.node());
2468
- let angle = Math.atan2(y, x) + Math.PI / 2;
2469
- if (angle < 0) angle += 2 * Math.PI;
2470
- const frac = Math.max(0, Math.min(1, (angle - d.data.startAngle) / (d.data.endAngle - d.data.startAngle)));
2471
- const pos = Math.round(frac * d.data.size);
2472
- menu.d.html(`<span style="font-size:.8em">chr${d.data.text}</span> ${bplen(pos)}`).style("padding", "5px");
2473
- menu.show(event.x, event.y);
2474
- }).on("mouseenter", (event) => {
2475
- select_default(event.currentTarget).attr("stroke", "orange").attr("stroke-width", 1);
2476
- }).on("mouseleave", (event) => {
2477
- select_default(event.currentTarget).attr("stroke", null).attr("stroke-width", null);
2478
- menu.hide();
2479
- });
2480
- arcs.selectAll("text").data(arcData).enter().append("text").attr("transform", (d) => {
2481
- return `translate(${arc.centroid(d)}) rotate(${d.data.angle * 180 / Math.PI - 90})${d.data.angle > Math.PI ? "rotate(180)" : ""}`;
2482
- }).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");
2483
- }
2484
- };
2485
-
2486
- // plots/disco/snv/vafTooltip.ts
2487
- function getIntegerCount(v) {
2488
- if (Number.isInteger(v)) return v;
2489
- if (typeof v == "string" && /^-?\d+$/.test(v)) {
2490
- const n = Number(v);
2491
- if (Number.isInteger(n)) return n;
2492
- }
2493
- return null;
2494
- }
2495
- function hasValidReadCounts(refCountValue, altCountValue) {
2496
- const refCount = getIntegerCount(refCountValue);
2497
- const altCount = getIntegerCount(altCountValue);
2498
- return refCount != null && altCount != null && refCount >= 0 && altCount >= 0 && refCount + altCount > 0;
2499
- }
2500
- function getVafEntries(vafs) {
2501
- const entries = [];
2502
- if (Array.isArray(vafs)) {
2503
- for (const vaf of vafs) {
2504
- const label = vaf?.id || vaf?.name;
2505
- const refCount = vaf?.refCount;
2506
- const altCount = vaf?.altCount;
2507
- if (!label || refCount == null || altCount == null) continue;
2508
- entries.push({ label, refCount, altCount });
2509
- }
2510
- }
2511
- return entries;
2512
- }
2513
- function hasAnyValidVafEntry(vafs) {
2514
- return getVafEntries(vafs).some((vaf) => hasValidReadCounts(vaf.refCount, vaf.altCount));
2515
- }
2516
- function appendVafBar(td2, refCountValue, altCountValue, label = "VAF") {
2517
- const refCount = getIntegerCount(refCountValue);
2518
- const altCount = getIntegerCount(altCountValue);
2519
- if (refCount == null || altCount == null) return;
2520
- const totalCount = refCount + altCount;
2521
- const fraction = altCount / totalCount;
2522
- const div = td2.append("div").style("margin-left", "5px").style("margin-top", "4px").style("display", "flex").style("align-items", "center").style("gap", "6px");
2523
- div.append("span").style("font-size", "0.8em").style("color", "#555").text(label);
2524
- fillbar(div, { f: fraction, v1: altCount, v2: totalCount });
2525
- }
2526
- function appendVafBars(td2, vafs) {
2527
- for (const vaf of getVafEntries(vafs)) {
2528
- if (!hasValidReadCounts(vaf.refCount, vaf.altCount)) continue;
2529
- appendVafBar(td2, vaf.refCount, vaf.altCount, vaf.label);
2530
- }
2531
- }
2532
-
2533
- // plots/disco/label/LabelsRenderer.ts
2534
- var LabelsRenderer = class {
2535
- constructor(animationDuration, fontSize, geneClickListener) {
2536
- this.animationDuration = animationDuration;
2537
- this.fontSize = fontSize;
2538
- this.geneClickListener = geneClickListener;
2539
- }
2540
- render(holder, elements, collisions) {
2541
- const labelsG = holder.append("g");
2542
- const lineFunction = line_default().x((point) => point.x).y((point) => point.y);
2543
- const menu = MenuProvider.create();
2544
- labelsG.selectAll(".group").data(elements).enter().append("g").attr("class", "group").each((label, i, nodes) => {
2545
- const g = select_default(nodes[i]);
2546
- g.append("text").attr("class", "chord-text").attr("dy", ".35em").attr("transform", label.transform).style("text-anchor", label.textAnchor).style("font-size", `${this.fontSize}px`).style("fill", label.color).style("cursor", "pointer").text(label.text).on("click", () => {
2547
- if (label.mutationsTooltip) {
2548
- this.geneClickListener(
2549
- label.text,
2550
- label.mutationsTooltip.map((value) => value.mname)
2551
- );
2552
- }
2553
- }).on("mouseover", (mouseEvent) => {
2554
- const table = table2col({ holder: menu.d });
2555
- this.createTooltip(table, label);
2556
- menu.show(mouseEvent.x, mouseEvent.y);
2557
- }).on("mouseout", () => {
2558
- menu.clear();
2559
- menu.hide();
2560
- });
2561
- g.append("path").attr("class", "chord-tick").datum(label.line.points).style("stroke", label.color).style("fill", "none").attr("d", lineFunction);
2562
- });
2563
- labelsG.selectAll(".group").each((label, i, nodes) => {
2564
- const collision = collisions ? collisions.find((l) => l.text === label.text) : void 0;
2565
- if (collision) {
2566
- const g = select_default(nodes[i]);
2567
- g.selectAll(".chord-text").datum(collision).transition().duration(this.animationDuration).attr("transform", collision.transform).style("text-anchor", collision.textAnchor);
2568
- g.selectAll(".chord-tick").datum(collision.line.points).transition().duration(this.animationDuration).style("fill", "none").attr("d", lineFunction);
2569
- }
2570
- });
2571
- }
2572
- createTooltip(table, label) {
2573
- if (label.mutationsTooltip) {
2574
- const [td1, td2] = table.addRow();
2575
- td1.text("Gene");
2576
- td2.append("span").style("margin-left", "5px").text(label.text);
2577
- label.mutationsTooltip.forEach((mutation) => {
2578
- {
2579
- const [td12, td22] = table.addRow();
2580
- td12.text("Mutation");
2581
- 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}`);
2582
- if (hasAnyValidVafEntry(mutation.vafs)) {
2583
- appendVafBars(td22, mutation.vafs);
2584
- }
2585
- }
2586
- });
2587
- }
2588
- if (label.fusionTooltip) {
2589
- const [td1, td2] = table.addRow();
2590
- td1.text("Data type");
2591
- td2.append("span").text("Fusion transcript");
2592
- label.fusionTooltip.forEach((fusionTooltip) => {
2593
- const [td12, td22] = table.addRow();
2594
- td12.text("Position");
2595
- td22.append("span").text(
2596
- ` ${fusionTooltip.geneA ? fusionTooltip.geneA : "?"} ${fusionTooltip.chrA}:${fusionTooltip.posA}
2597
- ${fusionTooltip.strandA == "+" ? "forward" : "reverse"} > ${fusionTooltip.geneB ? fusionTooltip.geneB : "?"} ${fusionTooltip.chrB}:${fusionTooltip.posB} ${fusionTooltip.strandB == "+" ? "forward" : "reverse"} `
2598
- );
2599
- });
2600
- }
2601
- if (label.cnvTooltip) {
2602
- label.cnvTooltip.forEach((cnv) => {
2603
- const [td1, td2] = table.addRow();
2604
- td1.text("CNV");
2605
- td2.append("span").style("margin-left", "5px").style("background-color", cnv.color).html("&nbsp;&nbsp;");
2606
- td2.append("span").style("margin-left", "7.5px").text(cnv.value).append("span").style("margin-left", "7.5px").style("font-size", "0.8em").text(`${cnv.chr}:${cnv.start}-${cnv.stop}`);
2607
- });
2608
- }
2609
- }
2610
- };
2611
-
2612
- // plots/disco/defaults.ts
2613
- function discoDefaults(overrides = {}, app) {
2614
- const hiddenChromosomes = [];
2615
- if (app?.vocabApi?.termdbConfig?.queries?.singleSampleMutation?.discoPlot?.skipChrM) {
2616
- hiddenChromosomes.push("chrM");
2617
- }
2618
- const defaults = {
2619
- downloadImgName: "disco.plot",
2620
- Disco: {
2621
- centerText: null,
2622
- cnvCapping: 5,
2623
- isOpen: false,
2624
- prioritizeGeneLabelsByGeneSets: false,
2625
- showPrioritizeGeneLabelsByGeneSets: false,
2626
- mutationWaterfallPlot: false,
2627
- mutationWaterfallColor: "#4d4d4d",
2628
- cnvRenderingType: "heatmap" /* heatmap */,
2629
- cnvPercentile: 90,
2630
- // 90th percentile for removing outliers
2631
- cnvCutoffMode: "percentile",
2632
- radius: 300,
2633
- fusionOpacity: 1,
2634
- hiddenChromosomes
2635
- },
2636
- rings: {
2637
- nonExonicRingWidth: 20,
2638
- snvRingWidth: 20,
2639
- lohRingWidth: 20,
2640
- cnvRingWidth: 30,
2641
- mutationWaterfallRingWidth: 35,
2642
- snvRingFilters: ["exonic"],
2643
- chromosomeInnerRadius: 190,
2644
- chromosomeWidth: 20,
2645
- labelLinesInnerRadius: 210,
2646
- labelsToLinesDistance: 30,
2647
- labelsToLinesGap: 2,
2648
- nonExonicRingEnabled: true,
2649
- nonExonicFilterValues: ["non-exonic"]
2650
- },
2651
- verticalPadding: 70,
2652
- horizontalPadding: 500,
2653
- layerScaler: 1,
2654
- padAngle: 2e-3,
2655
- //0.01, //0.04,
2656
- label: {
2657
- fontSize: 12,
2658
- maxDeltaAngle: 0.05,
2659
- animationDuration: 1e3,
2660
- overlapAngleFactor: 5
2661
- // 5 is set by testing, because label height is not known before rendering
2662
- },
2663
- cnv: {
2664
- capping: 5,
2665
- percentile: 80,
2666
- ampColor: "#D6683C",
2667
- lossColor: "#67a9cf",
2668
- cappedAmpColor: "#8B0000",
2669
- cappedLossColor: "#00008B",
2670
- unit: "Unit"
2671
- },
2672
- snv: {
2673
- maxMutationCount: 1e4
2674
- },
2675
- legend: {
2676
- snvTitle: "SNV",
2677
- cnvTitle: "CNV",
2678
- lohTitle: "LOH",
2679
- fusionTitle: "SV",
2680
- // Structural Variants (color by co-location)
2681
- lohLegendEnabled: true,
2682
- fontSize: 12,
2683
- rowHeight: 48
2684
- },
2685
- menu: {
2686
- padding: 5
2687
- }
2688
- };
2689
- if (overrides?.Disco?.radius > 1e3 || overrides?.Disco?.radius < 300) {
2690
- console.log(`${overrides?.Disco?.radius} is greater or lower than the min and max for the radius`);
2691
- }
2692
- return copyMerge(defaults, overrides);
2693
- }
2694
-
2695
- // plots/disco/snv/NonExonicSnvRenderer.ts
2696
- var NonExonicSnvRenderer = class {
2697
- constructor(geneClickListener) {
2698
- this.geneClickListener = geneClickListener;
2699
- }
2700
- render(holder, elements) {
2701
- const arcGenerator = arc_default();
2702
- const arcs = holder.append("g");
2703
- const menu = MenuProvider.create();
2704
- arcs.selectAll("path").data(elements).enter().append("path").attr("d", (d) => arcGenerator(d)).attr("fill", (d) => d.color).on("mouseover", (mouseEvent, arc) => {
2705
- const table = table2col({ holder: menu.d });
2706
- const snv = structuredClone(arc);
2707
- snv.dt = dtsnvindel;
2708
- snv.class = arc.dataClass;
2709
- snv.gene = snv.text;
2710
- {
2711
- const [td1, td2] = table.addRow();
2712
- td1.text("Consequence");
2713
- td2.append("span").text(snv.mname);
2714
- td2.append("span").style("margin-left", "5px").style("color", snv.color).style("font-size", ".8em").text(snv.dataClass);
2715
- }
2716
- {
2717
- const [td1, td2] = table.addRow();
2718
- td1.text(snv.ref && snv.alt ? "Mutation" : "Position");
2719
- td2.append("span").text(`${snv.chr}:${snv.pos + 1} ${snv.ref && snv.alt ? snv.ref + ">" + snv.alt : ""}`);
2720
- }
2721
- if (snv.gene) {
2722
- const [td1, td2] = table.addRow();
2723
- td1.text("Gene");
2724
- td2.text(snv.gene);
2725
- }
2726
- if (snv.occurrence > 1) {
2727
- const [td1, td2] = table.addRow();
2728
- td1.text("Occurrence");
2729
- td2.text(snv.occurrence);
2730
- }
2731
- if (hasAnyValidVafEntry(arc.vafs)) {
2732
- const [td1, td2] = table.addRow();
2733
- td1.text("Read count");
2734
- appendVafBars(td2, arc.vafs);
2735
- }
2736
- menu.show(mouseEvent.x, mouseEvent.y);
2737
- }).on("mouseout", () => {
2738
- menu.clear();
2739
- menu.hide();
2740
- }).on("click", (mouseEvent, arc) => {
2741
- this.geneClickListener(arc.text, [arc.mname]);
2742
- });
2743
- }
2744
- };
2745
-
2746
- // plots/disco/snv/SnvRenderer.ts
2747
- var SnvRenderer = class {
2748
- constructor(svnWidth, geneClickListener) {
2749
- this.svnWidth = svnWidth;
2750
- this.geneClickListener = geneClickListener;
2751
- }
2752
- render(holder, elements) {
2753
- if (elements.length > 0) {
2754
- const svnInnerRadius = elements[0].innerRadius;
2755
- const fullArcRenderer = new FullArcRenderer(svnInnerRadius, this.svnWidth, "#6464641A");
2756
- fullArcRenderer.render(holder);
2757
- }
2758
- const arcGenerator = arc_default();
2759
- const arcs = holder.append("g");
2760
- const menu = MenuProvider.create();
2761
- arcs.selectAll("path").data(elements).enter().append("path").attr("d", (d) => arcGenerator(d)).attr("fill", (d) => d.color).on("mouseover", (mouseEvent, arc) => {
2762
- const table = table2col({ holder: menu.d });
2763
- const snv = structuredClone(arc);
2764
- snv.dt = dtsnvindel;
2765
- snv.class = arc.dataClass;
2766
- snv.gene = snv.text;
2767
- {
2768
- const [td1, td2] = table.addRow();
2769
- td1.text("Consequence");
2770
- td2.append("span").text(snv.mname);
2771
- td2.append("span").style("margin-left", "5px").style("color", snv.color).style("font-size", ".8em").text(snv.dataClass);
2772
- }
2773
- {
2774
- const [td1, td2] = table.addRow();
2775
- td1.text(snv.ref && snv.alt ? "Mutation" : "Position");
2776
- td2.append("span").text(`${snv.chr}:${snv.pos + 1} ${snv.ref && snv.alt ? snv.ref + ">" + snv.alt : ""}`);
2777
- }
2778
- if (snv.gene) {
2779
- const [td1, td2] = table.addRow();
2780
- td1.text("Gene");
2781
- td2.text(snv.gene);
2782
- }
2783
- if (snv.occurrence > 1) {
2784
- const [td1, td2] = table.addRow();
2785
- td1.text("Occurrence");
2786
- td2.text(snv.occurrence);
2787
- }
2788
- if (hasAnyValidVafEntry(arc.vafs)) {
2789
- const [td1, td2] = table.addRow();
2790
- td1.text("Read count");
2791
- appendVafBars(td2, arc.vafs);
2792
- }
2793
- menu.show(mouseEvent.x, mouseEvent.y);
2794
- }).on("mouseout", () => {
2795
- menu.clear();
2796
- menu.hide();
2797
- }).on("click", (mouseEvent, arc) => {
2798
- this.geneClickListener(arc.text, [arc.mname]);
2799
- });
2800
- }
2801
- };
2802
-
2803
- // plots/disco/loh/LohRenderer.ts
2804
- var LohRenderer = class {
2805
- render(holder, elements) {
2806
- const arcGenerator = arc_default();
2807
- const arcs = holder.append("g");
2808
- const menu = MenuProvider.create();
2809
- arcs.selectAll("path").data(elements).enter().append("path").attr("d", (d) => arcGenerator(d)).attr("fill", (d) => d.color).on("mouseover", (mouseEvent, arc) => {
2810
- const table = table2col({ holder: menu.d });
2811
- const loh = structuredClone(arc);
2812
- loh.dt = dtloh;
2813
- loh.gene = loh.text;
2814
- {
2815
- const [td12, td22] = table.addRow();
2816
- td12.text("Data type");
2817
- td22.append("span").style("margin-left", "5px").text("Loss of Heterozygosity");
2818
- }
2819
- const [td1, td2] = table.addRow();
2820
- td1.text("Position");
2821
- td2.append("span").text(`${arc.chr}:${arc.start}-${arc.stop}`);
2822
- menu.show(mouseEvent.x, mouseEvent.y);
2823
- }).on("mouseout", () => {
2824
- menu.clear();
2825
- menu.hide();
2826
- });
2827
- }
2828
- };
2829
-
2830
- // plots/disco/cnv/CnvBarRenderer.ts
2831
- var CnvBarRenderer = class {
2832
- render(holder, elements) {
2833
- const arcGenerator = arc_default();
2834
- const arcs = holder.append("g");
2835
- const hoverOverlay = holder.append("g").attr("class", "hover-overlay").style("pointer-events", "none");
2836
- const menu = MenuProvider.create();
2837
- arcs.selectAll("path").data(elements).enter().append("path").attr("d", (d) => arcGenerator(d)).attr("fill", (d) => d.color).on("mouseover", (mouseEvent, arc) => {
2838
- hoverOverlay.selectAll("*").remove();
2839
- hoverOverlay.append("path").datum(arc).attr("d", arcGenerator(arc)).attr("fill", "none").attr("stroke", "black").attr("stroke-width", 1);
2840
- const cnv = structuredClone(arc);
2841
- cnv.dt = dtcnv;
2842
- cnv.samples = [{ sample_id: arc.sampleName }];
2843
- cnv.gene = cnv.text;
2844
- const table = table2col({ holder: menu.d });
2845
- {
2846
- const [c1, c2] = table.addRow();
2847
- c1.text("CNV");
2848
- c2.html(`<span style="background:${cnv.color}">&nbsp;&nbsp;</span> ${cnv.value}`);
2849
- }
2850
- {
2851
- const [c1, c2] = table.addRow();
2852
- c1.text("Position");
2853
- c2.text(cnv.chr + ":" + cnv.start + "-" + cnv.stop);
2854
- }
2855
- {
2856
- const [c1, c2] = table.addRow();
2857
- c1.text("Unit");
2858
- c2.text(cnv.value);
2859
- }
2860
- menu.show(mouseEvent.x, mouseEvent.y);
2861
- }).on("mouseout", () => {
2862
- hoverOverlay.selectAll("*").remove();
2863
- menu.clear();
2864
- menu.hide();
2865
- });
2866
- }
2867
- };
2868
-
2869
- // plots/disco/cnv/CnvHeatmapRenderer.ts
2870
- var CnvHeatmapRenderer = class {
2871
- constructor(positivePercentile = 0, negativePercentile = 0) {
2872
- this.positivePercentile = positivePercentile;
2873
- this.negativePercentile = negativePercentile;
2874
- }
2875
- render(holder, elements) {
2876
- const arcGenerator = arc_default();
2877
- const arcs = holder.append("g");
2878
- const hoverOverlay = holder.append("g").attr("class", "hover-overlay").style("pointer-events", "none");
2879
- const menu = MenuProvider.create();
2880
- arcs.selectAll("path").data(elements).enter().append("path").attr("d", (d) => arcGenerator(d)).attr("fill", (d) => this.getColor(d.color, d.value)).on("mouseenter", (mouseEvent, arc) => {
2881
- hoverOverlay.append("path").datum(arc).attr("d", arcGenerator(arc)).attr("fill", "none").attr("stroke", "black").attr("stroke-width", 1);
2882
- const table = table2col({ holder: menu.d });
2883
- const cnv = structuredClone(arc);
2884
- cnv.dt = dtcnv;
2885
- cnv.samples = [{ sample_id: arc.sampleName }];
2886
- cnv.gene = cnv.text;
2887
- {
2888
- const [c1, c2] = table.addRow();
2889
- c1.text("CNV");
2890
- c2.html(
2891
- `<span style="background:${this.getColor(
2892
- cnv.color,
2893
- cnv.value
2894
- )}; border:solid lightgrey 0.1px;">&nbsp;&nbsp;</span> ${cnv.value}`
2895
- );
2896
- }
2897
- {
2898
- const [c1, c2] = table.addRow();
2899
- c1.text("Position");
2900
- c2.text(cnv.chr + ":" + cnv.start + "-" + cnv.stop);
2901
- }
2902
- menu.show(mouseEvent.x, mouseEvent.y);
2903
- }).on("mouseleave", () => {
2904
- hoverOverlay.selectAll("*").remove();
2905
- menu.clear();
2906
- menu.hide();
2907
- });
2908
- }
2909
- // Computes fill color using linear scale between -P80, 0, and +P80
2910
- getColor(color, value) {
2911
- const maxValue = Math.max(this.positivePercentile, Math.abs(this.negativePercentile));
2912
- return linear(
2913
- [-maxValue, 0, maxValue],
2914
- [color, "white", color]
2915
- // transitions to white in the middle
2916
- ).clamp(true)(value);
2917
- }
2918
- };
2919
-
2920
- // plots/disco/waterfall/MutationWaterfallRenderer.ts
2921
- var MutationWaterfallRenderer = class {
2922
- constructor(dotRadius = 1.5) {
2923
- this.dotRadius = dotRadius;
2924
- }
2925
- render(holder, elements) {
2926
- if (!elements.length) return;
2927
- const ringGroup = holder.append("g").attr("data-testid", "sjpp_mutation_waterfall_ring");
2928
- const menu = MenuProvider.create();
2929
- 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) => {
2930
- const distance = Math.round(Math.pow(10, d.logDistance));
2931
- menu.clear();
2932
- const table = table2col({ holder: menu.d });
2933
- {
2934
- const [td1, td2] = table.addRow();
2935
- td1.text("Intermutation distance");
2936
- td2.text(`${bplen(distance)}`);
2937
- }
2938
- menu.show(event.x, event.y);
2939
- }).on("mouseout", () => {
2940
- menu.clear();
2941
- menu.hide();
2942
- });
2943
- this.renderAxis(ringGroup, elements[0]);
2944
- }
2945
- renderAxis(holder, referencePoint) {
2946
- const { ringInnerRadius, ringWidth, rangeMin, rangeMax } = referencePoint;
2947
- const axisGroup = holder.append("g").attr("class", "sjpp-waterfall-axis");
2948
- const topRadius = ringInnerRadius + ringWidth;
2949
- axisGroup.append("line").attr("x1", 0).attr("y1", -topRadius).attr("x2", 0).attr("y2", -ringInnerRadius).attr("stroke", "#6e6e6e").attr("stroke-width", 1);
2950
- const span = rangeMax - rangeMin || 1;
2951
- const tickValues = rangeMax === rangeMin ? [rangeMin] : ticks(rangeMin, rangeMax, 4);
2952
- tickValues.forEach((value) => {
2953
- const ratio = (value - rangeMin) / span;
2954
- const radius = ringInnerRadius + ringWidth * ratio;
2955
- const y = -radius;
2956
- axisGroup.append("line").attr("x1", -4).attr("x2", 4).attr("y1", y).attr("y2", y).attr("stroke", "#6e6e6e");
2957
- const exponent = Math.round(value * 10) / 10;
2958
- const formatted = Number.isInteger(exponent) ? `${exponent}` : exponent.toFixed(1);
2959
- axisGroup.append("text").attr("x", 6).attr("y", y + 3).style("font-size", "10px").style("fill", "#4d4d4d").text(`10^${formatted} bp`);
2960
- });
2961
- }
2962
- };
2963
-
2964
- // plots/disco/Disco.ts
2965
- var Disco = class {
2966
- constructor(opts) {
2967
- this.recreateViewModel = false;
2968
- this.onCnvSourceSelect = (index) => {
2969
- const state = this.app.getState();
2970
- const args = state.args;
2971
- const alt = args.alternativeDataByDt?.[dtcnv];
2972
- if (!alt) return;
2973
- const altClone = structuredClone(args.alternativeDataByDt);
2974
- altClone[dtcnv].forEach((d, i) => d.inuse = i === index);
2975
- const selected = altClone[dtcnv][index];
2976
- selected.mlst.forEach((d) => d.position = d.pos);
2977
- const baseData = args.data.filter((d) => d.dt != dtcnv && d.dt != dtloh);
2978
- const newData = baseData.concat(selected.mlst);
2979
- this.app.dispatch({
2980
- type: "app_refresh",
2981
- state: { args: { ...args, data: newData, alternativeDataByDt: altClone } }
2982
- });
2983
- };
2984
- this.type = "Disco";
2985
- this.opts = opts;
2986
- this.isOpen = false;
2987
- this.discoInteractions = new DiscoInteractions(this);
2988
- }
2989
- static {
2990
- this.type = "Disco";
2991
- }
2992
- async init() {
2993
- const state = this.app.getState();
2994
- const settings = state.plots.find((p) => p.id === this.id).settings;
2995
- this.stateViewModelMapper = new ViewModelMapper(settings, this.discoInteractions);
2996
- this.viewModel = this.stateViewModelMapper.map(state);
2997
- const holder = this.opts.holder;
2998
- const controlsHolder = holder.append("div").style("display", "inline-block").style("vertical-align", "top");
2999
- const topbar = controlsHolder.append("div");
3000
- const config_div = controlsHolder.append("div");
3001
- const configInputsOptions = this.getConfigInputsOptions(this.viewModel);
3002
- this.features = await multiInit({
3003
- topbar: topBarInit({
3004
- app: this.app,
3005
- id: this.id,
3006
- // TODO change the way svg is selected
3007
- downloadHandler: () => this.discoInteractions.downloadClickListener(holder.select('svg[id="sjpp_disco_plot"]').node()),
3008
- callback: () => this.toggleVisibility(this.isOpen),
3009
- isOpen: () => this.isOpen,
3010
- holder: topbar
3011
- }),
3012
- config: configUiInit({
3013
- app: this.app,
3014
- id: this.id,
3015
- holder: config_div,
3016
- isOpen: () => this.isOpen,
3017
- inputs: configInputsOptions
3018
- })
3019
- });
3020
- this.errorDiv = holder.append("div");
3021
- }
3022
- getConfigInputsOptions(viewModel) {
3023
- const configInputsOptions = [];
3024
- if (viewModel.settings.Disco.showPrioritizeGeneLabelsByGeneSets) {
3025
- const filterMutationsGenesCheckbox = [
3026
- {
3027
- boxLabel: viewModel.genesetName,
3028
- label: `Filter mutations`,
3029
- type: "checkbox",
3030
- chartType: "Disco",
3031
- settingsKey: "prioritizeGeneLabelsByGeneSets",
3032
- title: `Only show mutations for ${viewModel.genesetName} genes`
3033
- }
3034
- ];
3035
- configInputsOptions.push(...filterMutationsGenesCheckbox);
3036
- }
3037
- if (viewModel.cnvMaxValue !== 0 || viewModel.cnvMinValue !== 0) {
3038
- const cnvConfigInputOptions = [
3039
- {
3040
- boxLabel: "",
3041
- label: "CNV rendering type",
3042
- type: "radio",
3043
- chartType: "Disco",
3044
- settingsKey: "cnvRenderingType",
3045
- title: "CNV rendering type",
3046
- options: [
3047
- { label: "Heatmap", value: "heatmap" /* heatmap */ },
3048
- { label: "Bar", value: "bar" /* bar */ }
3049
- ]
3050
- }
3051
- ];
3052
- configInputsOptions.push(...cnvConfigInputOptions);
3053
- }
3054
- const genomeChr = this.app.opts.state.args.genome.majorchr;
3055
- const chromosomeConfigOption = {
3056
- label: "Chromosomes",
3057
- title: "Chromosomes shown in the plot",
3058
- type: "multiCheckbox",
3059
- chartType: "Disco",
3060
- settingsKey: "hiddenChromosomes",
3061
- style: {
3062
- colNum: 4
3063
- },
3064
- options: Object.keys(genomeChr).map((c) => ({ label: c, value: c })),
3065
- processInput: (values = []) => {
3066
- const reverse = Object.keys(genomeChr).filter((c) => !values.includes(c));
3067
- return reverse;
3068
- }
3069
- };
3070
- configInputsOptions.push(chromosomeConfigOption);
3071
- const dimensionOptions = [
3072
- {
3073
- label: "Radius",
3074
- title: "Set the radius of the entire plot, between 300 and 1000 pixels.",
3075
- type: "number",
3076
- chartType: "Disco",
3077
- settingsKey: "radius",
3078
- debounceInterval: 500,
3079
- step: 25,
3080
- min: 300,
3081
- max: 1e3
3082
- },
3083
- {
3084
- label: "Fusion opacity",
3085
- title: "Adjust opacity of fusion arcs, between 0 and 1",
3086
- type: "number",
3087
- chartType: "Disco",
3088
- settingsKey: "fusionOpacity",
3089
- step: 0.01,
3090
- min: 0,
3091
- max: 1,
3092
- debounceInterval: 500
3093
- }
3094
- ];
3095
- configInputsOptions.push(...dimensionOptions);
3096
- if (viewModel.canShowMutationWaterfallPlot && viewModel.snvDataLength > 0) {
3097
- configInputsOptions.push({
3098
- boxLabel: "",
3099
- label: "Mutation Waterfall Plot",
3100
- type: "checkbox",
3101
- chartType: "Disco",
3102
- settingsKey: "mutationWaterfallPlot",
3103
- title: "Render log10 intermutation distance ring for SNV/indel data"
3104
- });
3105
- }
3106
- return configInputsOptions;
3107
- }
3108
- async main() {
3109
- const settings = this.state.settings;
3110
- this.isOpen = settings.Disco.isOpen;
3111
- if (this.recreateViewModel) {
3112
- this.stateViewModelMapper = new ViewModelMapper(settings, this.discoInteractions);
3113
- this.viewModel = this.stateViewModelMapper.map(this.app.getState());
3114
- }
3115
- this.recreateViewModel = true;
3116
- if (this.viewModel) {
3117
- const holder = this.opts.holder;
3118
- holder.select('div[id="sjpp_disco_plot_holder_div"]').remove();
3119
- const svgDiv = holder.append("div").attr("id", "sjpp_disco_plot_holder_div").style("display", "inline-block").style("position", "relative");
3120
- const appState = this.app.getState();
3121
- this.viewModel.svgDiv = svgDiv;
3122
- this.viewModel.appState = appState;
3123
- for (const name in this.features) {
3124
- this.features[name].update({ state: this.state, appState });
3125
- }
3126
- const legendRenderer = new LegendRenderer(this.viewModel.cappedCnvMaxAbsValue, settings.label.fontSize);
3127
- const discoRenderer = new DiscoRenderer(
3128
- this.getRingRenderers(this.viewModel.settings, this.viewModel, this.discoInteractions.geneClickListener),
3129
- legendRenderer,
3130
- this.app.opts.state.args.genome
3131
- );
3132
- discoRenderer.render(svgDiv, this.viewModel, this.onCnvSourceSelect);
3133
- if (this.viewModel.invalidDataInfo?.entries?.length) {
3134
- InvalidDataUI.render(this.errorDiv, this.viewModel.invalidDataInfo);
3135
- }
3136
- }
3137
- }
3138
- getState(appState) {
3139
- const config = appState.plots.find((p) => p.id === this.id);
3140
- if (!config) return config;
3141
- return { ...config, mlst: appState.args.data };
3142
- }
3143
- getRingRenderers(settings, viewModel, geneClickListener) {
3144
- const chromosomesRenderer = new ChromosomesRenderer(
3145
- settings.padAngle,
3146
- settings.rings.chromosomeInnerRadius,
3147
- settings.rings.chromosomeInnerRadius + settings.rings.chromosomeWidth,
3148
- settings.label.fontSize
3149
- );
3150
- const labelsRenderer = new LabelsRenderer(
3151
- settings.label.animationDuration,
3152
- settings.label.fontSize,
3153
- geneClickListener
3154
- );
3155
- const nonExonicSnvRenderer = new NonExonicSnvRenderer(geneClickListener);
3156
- const snvRenderer = new SnvRenderer(settings.rings.snvRingWidth, geneClickListener);
3157
- const cnvRenderer = settings.Disco.cnvRenderingType === "heatmap" /* heatmap */ ? new CnvHeatmapRenderer(viewModel.positivePercentile, viewModel.negativePercentile) : new CnvBarRenderer();
3158
- const lohRenderer = new LohRenderer();
3159
- const mutationWaterfallRenderer = new MutationWaterfallRenderer();
3160
- const renderersMap = /* @__PURE__ */ new Map();
3161
- renderersMap.set(0 /* CHROMOSOME */, chromosomesRenderer);
3162
- renderersMap.set(1 /* LABEL */, labelsRenderer);
3163
- renderersMap.set(2 /* NONEXONICSNV */, nonExonicSnvRenderer);
3164
- renderersMap.set(3 /* SNV */, snvRenderer);
3165
- renderersMap.set(4 /* MUTATION_WATERFALL */, mutationWaterfallRenderer);
3166
- renderersMap.set(5 /* CNV */, cnvRenderer);
3167
- renderersMap.set(6 /* LOH */, lohRenderer);
3168
- return renderersMap;
3169
- }
3170
- toggleVisibility(isOpen) {
3171
- this.app.dispatch({
3172
- type: "plot_edit",
3173
- id: this.opts.id,
3174
- config: {
3175
- settings: {
3176
- Disco: { isOpen: !isOpen }
3177
- }
3178
- }
3179
- });
3180
- }
3181
- };
3182
- var discoInit = getCompInit(Disco);
3183
- var componentInit = discoInit;
3184
- async function getPlotConfig(opts, app) {
3185
- return {
3186
- chartType: "Disco",
3187
- subfolder: "disco",
3188
- extension: "ts",
3189
- settings: discoDefaults(opts.overrides, app)
3190
- };
3191
- }
3192
- export {
3193
- componentInit,
3194
- Disco as default,
3195
- discoInit,
3196
- getPlotConfig
3197
- };
3198
- //# sourceMappingURL=Disco-UNPSOUQ4.js.map