@sjcrh/proteinpaint-client 2.185.0 → 2.186.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (848) hide show
  1. package/dist/2dmaf-F5QNP7AQ.js +1371 -0
  2. package/dist/AIProjectAdmin-ROSQHK6Q.js +827 -0
  3. package/dist/AIProjectAdmin-ROSQHK6Q.js.map +7 -0
  4. package/dist/AppHeader-STVCDLET.js +833 -0
  5. package/dist/BoxPlot-CU7MEBH7.js +1217 -0
  6. package/dist/CorrelationVolcano-OE4R2GS3.js +617 -0
  7. package/dist/DE-SR7PJPKI.js +93 -0
  8. package/dist/DEinput-PRIAIBFH.js +299 -0
  9. package/dist/DEinput-PRIAIBFH.js.map +7 -0
  10. package/dist/DifferentialAnalysis-UWTYK7NU.js +241 -0
  11. package/dist/Disco-IL6REGSA.js +3235 -0
  12. package/dist/Disco.UI-JHHLS5BA.js +242 -0
  13. package/dist/DmrPlot-DDP53T3F.js +640 -0
  14. package/dist/GB-F4LMYMHF.js +1127 -0
  15. package/dist/GB-F4LMYMHF.js.map +7 -0
  16. package/dist/GeneExpInput-ZWBC226P.js +363 -0
  17. package/dist/GeneExpInput-ZWBC226P.js.map +7 -0
  18. package/dist/HicApp-RVFHTYED.js +2248 -0
  19. package/dist/NumBinaryEditor-B3FXQAOH.js +268 -0
  20. package/dist/NumBinaryEditor.unit.spec-75YQJ2U6.js +284 -0
  21. package/dist/NumContEditor-5PYW3OLY.js +105 -0
  22. package/dist/NumContEditor.unit.spec-F7ZRDGBN.js +167 -0
  23. package/dist/NumCustomBinEditor-TBT6GLYQ.js +36 -0
  24. package/dist/NumCustomBinEditor.unit.spec-6YHU45XV.js +282 -0
  25. package/dist/NumDiscreteEditor-N6OJYSJA.js +177 -0
  26. package/dist/NumDiscreteEditor.unit.spec-HQS5RZ6R.js +200 -0
  27. package/dist/NumRegularBinEditor-HSDDKVNG.js +36 -0
  28. package/dist/NumRegularBinEditor.unit.spec-33KN2MVM.js +225 -0
  29. package/dist/NumSplineEditor-XERKOACS.js +190 -0
  30. package/dist/NumSplineEditor.unit.spec-MPVM6KSC.js +197 -0
  31. package/dist/NumericDensity-35EKYW3V.js +36 -0
  32. package/dist/NumericDensity.unit.spec-OR24PPRJ.js +219 -0
  33. package/dist/NumericHandler-D6ZNGRE3.js +37 -0
  34. package/dist/NumericHandler.unit.spec-EKPGVSXI.js +217 -0
  35. package/dist/RunChart2-7DOXOFXV.js +756 -0
  36. package/dist/SC-APZRV4H6.js +826 -0
  37. package/dist/SC-APZRV4H6.js.map +7 -0
  38. package/dist/Volcano-X4ZWK644.js +1344 -0
  39. package/dist/Volcano-X4ZWK644.js.map +7 -0
  40. package/dist/WSIViewer-E247ELKN.js +47971 -0
  41. package/dist/WsiSamplesPlot-3522VRB5.js +163 -0
  42. package/dist/adSandbox-IDFY5P2P.js +36 -0
  43. package/dist/alphaGenome-F3W7GJQ5.js +173 -0
  44. package/dist/app-2HDSFMRM.js +47 -0
  45. package/dist/app-LIWPFL7C.js +35 -0
  46. package/dist/app.js +10 -10
  47. package/dist/bam-TBHHSATL.js +857 -0
  48. package/dist/barchart-HHFCBOZE.js +45 -0
  49. package/dist/barchart.events-UQUSSRXB.js +45 -0
  50. package/dist/barchart.integration.spec-OF3MWFQ5.js +1675 -0
  51. package/dist/barchart2-XRMPCBBU.js +309 -0
  52. package/dist/block-5UEORHFB.js +6200 -0
  53. package/dist/block.init-QSSFUVIT.js +36 -0
  54. package/dist/block.mds.expressionrank-VBIIJHQF.js +357 -0
  55. package/dist/block.mds.geneboxplot-KSBHXBNX.js +826 -0
  56. package/dist/block.mds.junction-FWZWMZJ2.js +1543 -0
  57. package/dist/block.mds.svcnv-UXORVLH2.js +6799 -0
  58. package/dist/block.svg-6KIGW4QH.js +162 -0
  59. package/dist/block.tk.aicheck-DK566Q4C.js +281 -0
  60. package/dist/block.tk.ase-2GB2VJJ6.js +363 -0
  61. package/dist/block.tk.bam-RQNOLY52.js +1904 -0
  62. package/dist/block.tk.bedgraphdot-N4YMZFO4.js +382 -0
  63. package/dist/block.tk.bigwig.ui-4S7L7D7D.js +209 -0
  64. package/dist/block.tk.hicstraw-AHFNQKCS.js +821 -0
  65. package/dist/block.tk.junction-7E6SNQMQ.js +2362 -0
  66. package/dist/block.tk.junction.textmatrixui-3C5JVYX5.js +197 -0
  67. package/dist/block.tk.ld-TOUCLT3W.js +97 -0
  68. package/dist/block.tk.menu-JCV5ORD6.js +1027 -0
  69. package/dist/block.tk.pgv-CUU22U6M.js +942 -0
  70. package/dist/brainImaging-MTQTXNNL.js +421 -0
  71. package/dist/chunk-2UYBBUXK.js +293 -0
  72. package/dist/chunk-2VPEFXEJ.js +4207 -0
  73. package/dist/chunk-2YC6ZVE4.js +20377 -0
  74. package/dist/chunk-2YC6ZVE4.js.map +7 -0
  75. package/dist/chunk-37MD3Y5G.js +1230 -0
  76. package/dist/chunk-37MD3Y5G.js.map +7 -0
  77. package/dist/chunk-3QHIL3V3.js +55 -0
  78. package/dist/chunk-44VXWKYJ.js +129 -0
  79. package/dist/chunk-52D6EGUS.js +95 -0
  80. package/dist/chunk-5FHM3L4I.js +102 -0
  81. package/dist/chunk-62TF2MCH.js +142 -0
  82. package/dist/chunk-67QM2NUK.js +6364 -0
  83. package/dist/chunk-6AAPHEWK.js +676 -0
  84. package/dist/chunk-6KPGMUHS.js +153 -0
  85. package/dist/chunk-6WBIZXNI.js +455 -0
  86. package/dist/chunk-7AAJVXEG.js +302 -0
  87. package/dist/chunk-AFJRAR4N.js +1271 -0
  88. package/dist/chunk-BBNO6JLO.js +200 -0
  89. package/dist/chunk-BBNO6JLO.js.map +7 -0
  90. package/dist/chunk-CVRYZMDE.js +148 -0
  91. package/dist/chunk-DGUTCYH2.js +276 -0
  92. package/dist/chunk-DHNXATHC.js +158 -0
  93. package/dist/chunk-DXHATYHE.js +180 -0
  94. package/dist/chunk-DXHATYHE.js.map +7 -0
  95. package/dist/chunk-E3BI23UK.js +229 -0
  96. package/dist/chunk-E4JDHA3C.js +621 -0
  97. package/dist/chunk-FOJWYEGV.js +228 -0
  98. package/dist/chunk-FTN7Y34O.js +158 -0
  99. package/dist/chunk-GAOUV4ID.js +1943 -0
  100. package/dist/chunk-GAOUV4ID.js.map +7 -0
  101. package/dist/chunk-GRG5MMPN.js +2815 -0
  102. package/dist/chunk-GSU4PZN3.js +482 -0
  103. package/dist/chunk-I55NLUCQ.js +1823 -0
  104. package/dist/chunk-I55NLUCQ.js.map +7 -0
  105. package/dist/chunk-IIRU2JLK.js +217 -0
  106. package/dist/chunk-JCB74ZSK.js +272 -0
  107. package/dist/chunk-JUDWPYMA.js +824 -0
  108. package/dist/chunk-KT6VZBC7.js +1087 -0
  109. package/dist/chunk-L2HBHFTK.js +2370 -0
  110. package/dist/chunk-LKADRF3Q.js +368 -0
  111. package/dist/chunk-MAXFRUGM.js +407 -0
  112. package/dist/chunk-MQN7RYCK.js +37 -0
  113. package/dist/chunk-OEUI4CYZ.js +470 -0
  114. package/dist/chunk-OM36XUQL.js +34 -0
  115. package/dist/chunk-P5LNIH5X.js +54 -0
  116. package/dist/chunk-PG62PRMF.js +102 -0
  117. package/dist/chunk-Q3J3F2NU.js +205 -0
  118. package/dist/chunk-RYCOJY7M.js +188 -0
  119. package/dist/chunk-RYCOJY7M.js.map +7 -0
  120. package/dist/chunk-RZBV6474.js +117 -0
  121. package/dist/chunk-T5V4OC27.js +442 -0
  122. package/dist/chunk-TXJG4N6S.js +4992 -0
  123. package/dist/chunk-TXJG4N6S.js.map +7 -0
  124. package/dist/chunk-UCKSUNSJ.js +335 -0
  125. package/dist/chunk-W4TLYHZO.js +514 -0
  126. package/dist/chunk-WPZUXKIB.js +56 -0
  127. package/dist/chunk-XM47XD6G.js +215 -0
  128. package/dist/chunk-XVA3UOWD.js +263 -0
  129. package/dist/chunk-XVA3UOWD.js.map +7 -0
  130. package/dist/chunk-YIMRBXQK.js +1210 -0
  131. package/dist/chunk-YIMRBXQK.js.map +7 -0
  132. package/dist/chunk-YL7VT4QT.js +1159 -0
  133. package/dist/chunk-YL7VT4QT.js.map +7 -0
  134. package/dist/chunk-YWBUK4B7.js +291 -0
  135. package/dist/chunk-YWBUK4B7.js.map +7 -0
  136. package/dist/chunk-YZHGLSKQ.js +50 -0
  137. package/dist/chunk-ZGOOZK3I.js +203 -0
  138. package/dist/chunk-ZH2VP6Q6.js +95 -0
  139. package/dist/chunk-ZLOQXO5K.js +14 -0
  140. package/dist/chunk-ZMNDBPJU.js +100 -0
  141. package/dist/chunk-ZRTW6X3F.js +2784 -0
  142. package/dist/chunk-ZTT52MBP.js +2681 -0
  143. package/dist/condition-VUACUQYF.js +330 -0
  144. package/dist/controls-N4MPSNO4.js +39 -0
  145. package/dist/controls.config-PRXVODCM.js +37 -0
  146. package/dist/correlation-QJZUYDFH.js +96 -0
  147. package/dist/cuminc-JJHXW55V.js +1147 -0
  148. package/dist/cuminc.integration.spec-IXS2UO2O.js +676 -0
  149. package/dist/customdata.inputui-DUHO6M6I.js +287 -0
  150. package/dist/dataDownload-OFB7TYDB.js +328 -0
  151. package/dist/dataDownload.integration.spec-4HWDQO4C.js +191 -0
  152. package/dist/databrowser.ui-FGZ5SWG3.js +430 -0
  153. package/dist/databrowser.ui-FGZ5SWG3.js.map +7 -0
  154. package/dist/dictionary-BSKN37CP.js +109 -0
  155. package/dist/dnaMethylation-5QNEEGC6.js +36 -0
  156. package/dist/dnaMethylation.integration.spec-YIX3JSA7.js +201 -0
  157. package/dist/dofetch-KFMGQY7G.js +50 -0
  158. package/dist/e2pca-VX42HDYZ.js +348 -0
  159. package/dist/ep-B6ZNETLI.js +1254 -0
  160. package/dist/expclust.gdc.spec-SGECIILQ.js +305 -0
  161. package/dist/facet-2W5SBPGP.js +519 -0
  162. package/dist/gb-67KTSE2W.js +86 -0
  163. package/dist/gb-67KTSE2W.js.map +7 -0
  164. package/dist/geneExpClustering-6A7364T5.js +247 -0
  165. package/dist/geneExpression-NAM2UEYN.js +36 -0
  166. package/dist/geneExpression-WF56ODMZ.js +312 -0
  167. package/dist/geneExpression.unit.spec-DNE2T3WI.js +100 -0
  168. package/dist/geneORA-33FK2YOS.js +276 -0
  169. package/dist/geneVariant-C7PCNBOQ.js +37 -0
  170. package/dist/geneVariant-REELFRRA.js +39 -0
  171. package/dist/geneVariant.integration.spec-GNXUGDKL.js +196 -0
  172. package/dist/genefusion.ui-WO5EPJDS.js +306 -0
  173. package/dist/geneset-4C6ZLVMN.js +201 -0
  174. package/dist/geneset-4C6ZLVMN.js.map +7 -0
  175. package/dist/genomeBrowser.spec-VPAKTUJF.js +279 -0
  176. package/dist/grin2-AJFEBD43.js +852 -0
  177. package/dist/grin2-AJFEBD43.js.map +7 -0
  178. package/dist/grin2-GYHUYNEF.js +1554 -0
  179. package/dist/gsea-PE5WZ5ZI.js +45 -0
  180. package/dist/hierCluster-FH6YJHRT.js +61 -0
  181. package/dist/hierCluster-IFM5I5QN.js +57 -0
  182. package/dist/hierCluster.config-M57ZIWMB.js +38 -0
  183. package/dist/hierCluster.integration.spec-Z64RL7MC.js +393 -0
  184. package/dist/hierCluster.interactivity-CDBAJXOY.js +52 -0
  185. package/dist/imagePlot-NFEE6IGV.js +161 -0
  186. package/dist/imagePlot-NFEE6IGV.js.map +7 -0
  187. package/dist/importPlot-OWKXSK77.js +8 -0
  188. package/dist/isoformExpression-66XLJG73.js +38 -0
  189. package/dist/isoformExpression.unit.spec-QJX2IRHL.js +206 -0
  190. package/dist/launch.adhoc-JCWID253.js +40 -0
  191. package/dist/leftlabel.sample-5NZ6VQDN.js +257 -0
  192. package/dist/lollipop-BPFDEM2R.js +169 -0
  193. package/dist/lollipop-BPFDEM2R.js.map +7 -0
  194. package/dist/maf-HIS2FQXK.js +450 -0
  195. package/dist/maftimeline-UPJJQE23.js +591 -0
  196. package/dist/matrix-62CN2KXR.js +56 -0
  197. package/dist/matrix-SPEDEB3J.js +61 -0
  198. package/dist/matrix.config-XB6WFXUY.js +39 -0
  199. package/dist/matrix.integration.spec-NN7OR5XM.js +3070 -0
  200. package/dist/matrix.interactivity-OWMHUJCX.js +40 -0
  201. package/dist/matrix.layout-27QB6MWK.js +42 -0
  202. package/dist/matrix.renderers-EPXES5E4.js +36 -0
  203. package/dist/matrix.sort.unit.spec-NBT5FSZ6.js +470 -0
  204. package/dist/matrix.sorterUi.unit.spec-QKGUE4RR.js +340 -0
  205. package/dist/mavb-M7Y74OWQ.js +730 -0
  206. package/dist/mds.fimo-WCDFA7HG.js +516 -0
  207. package/dist/mds.samplescatterplot-ZDHQ3MKJ.js +1548 -0
  208. package/dist/mds.survivalplot-R74DL2RA.js +481 -0
  209. package/dist/oncomatrix-MOITJBII.js +293 -0
  210. package/dist/oncomatrix.spec-NALJBPYS.js +446 -0
  211. package/dist/plot.2dvaf-IE2EZEFA.js +375 -0
  212. package/dist/plot.app-HTW6TZEH.js +39 -0
  213. package/dist/plot.barplot-NCQEPEOY.js +100 -0
  214. package/dist/plot.boxplot-WNKVBVJJ.js +150 -0
  215. package/dist/plot.brainImaging-2Z3TOO6J.js +51 -0
  216. package/dist/plot.disco-4JAEIAYK.js +101 -0
  217. package/dist/plot.dzi-ZGLOVJJN.js +33 -0
  218. package/dist/plot.ssgq-IHUILM43.js +137 -0
  219. package/dist/plot.vaf2cov-ZYCQMD27.js +257 -0
  220. package/dist/plot.wsi-3GISVBDH.js +36 -0
  221. package/dist/polar-4AUAZHBV.js +184 -0
  222. package/dist/polar2-SRD4WWXU.js +226 -0
  223. package/dist/profile.spec-TOITKBBZ.js +78 -0
  224. package/dist/profileBarchart-Z4SYIYBE.js +265 -0
  225. package/dist/profileForms-RA7XQ2QT.js +438 -0
  226. package/dist/profilePlot-4BM3XZVK.js +52 -0
  227. package/dist/profileRadar-EYBESEPI.js +261 -0
  228. package/dist/profileRadarFacility-FZYTFM26.js +261 -0
  229. package/dist/proteinView-F6XKT2A5.js +1122 -0
  230. package/dist/proteinView-F6XKT2A5.js.map +7 -0
  231. package/dist/proteomeAbundance-3RJMRXYI.js +68 -0
  232. package/dist/proteomeAbundance-3RJMRXYI.js.map +7 -0
  233. package/dist/proteomeAbundance-65R6M4YQ.js +21 -0
  234. package/dist/qualitative-E7WL6DN4.js +41 -0
  235. package/dist/radar2-I6FN5SUX.js +314 -0
  236. package/dist/radarFacility2-GVK7PT3V.js +323 -0
  237. package/dist/regression-TIR5D354.js +54 -0
  238. package/dist/regression.inputs-2AMJCJ3L.js +46 -0
  239. package/dist/regression.inputs.term-D6D2QEUB.js +46 -0
  240. package/dist/regression.inputs.values.table-M3IPLGDJ.js +43 -0
  241. package/dist/regression.integration.spec-ROUSXLMH.js +782 -0
  242. package/dist/regression.results-YD5S74YS.js +38 -0
  243. package/dist/regression.spec-4OXBBTNO.js +706 -0
  244. package/dist/report-ETNALKTY.js +220 -0
  245. package/dist/sampleScatter.spec-LECMFMI2.js +200 -0
  246. package/dist/sampleView-B5TM7JOW.js +46 -0
  247. package/dist/samplelst-GFQCG4SS.js +109 -0
  248. package/dist/samplematrix-OMTNWCJK.js +2196 -0
  249. package/dist/sc-MIEEZBWG.js +84 -0
  250. package/dist/scatter-ETOZ722F.js +800 -0
  251. package/dist/scatter.integration.spec-TS4PNRLX.js +1194 -0
  252. package/dist/selectGenomeWithTklst-Y5QIM2JB.js +132 -0
  253. package/dist/singleCellCellType-HOJHZF5W.js +36 -0
  254. package/dist/singleCellCellType.unit.spec-MH5V3RPX.js +158 -0
  255. package/dist/singleCellGeneExpression-YVQ5TIKN.js +36 -0
  256. package/dist/singleCellGeneExpression.unit.spec-BMFFT5HO.js +151 -0
  257. package/dist/singleCellPlot-3YFUYA2Y.js +51 -0
  258. package/dist/singlecell-FK5JETW5.js +1570 -0
  259. package/dist/singlecell-RL7V7DIC.js +84 -0
  260. package/dist/snp-FT7HB3XN.js +36 -0
  261. package/dist/snp.unit.spec-CLYVYPPG.js +174 -0
  262. package/dist/snplocus-M5SEQGAC.js +206 -0
  263. package/dist/spliceevent.a53ss.diagram-EJ5CTRCZ.js +149 -0
  264. package/dist/spliceevent.exonskip.diagram-ETXMOHZ3.js +275 -0
  265. package/dist/spliceevent.noeventdiagram-S2O4ZM2Z.js +458 -0
  266. package/dist/ssGSEA-6PMDQDTJ.js +36 -0
  267. package/dist/ssGSEA.unit.spec-JD5T4R2N.js +86 -0
  268. package/dist/summarizeCnvGeneexp-GCHNKTIU.js +161 -0
  269. package/dist/summarizeGeneexpSurvival-R2RYQZ3M.js +106 -0
  270. package/dist/summarizeMutationCnv-LB2BIYRL.js +162 -0
  271. package/dist/summarizeMutationDiagnosis-3JUY75LM.js +38 -0
  272. package/dist/summarizeMutationSurvival-VYLRWTCF.js +97 -0
  273. package/dist/summary-2QQ72IEQ.js +47 -0
  274. package/dist/summary.integration.spec-XXU362UQ.js +412 -0
  275. package/dist/summaryInput-OZHZG3PV.js +233 -0
  276. package/dist/sunburst-CMCJCANX.js +282 -0
  277. package/dist/survival-EBD4DHO7.js +44 -0
  278. package/dist/survival-ISLRRPKU.js +56 -0
  279. package/dist/survival.integration.spec-FS7V4OXK.js +800 -0
  280. package/dist/svgraph-KGLNUM7W.js +1385 -0
  281. package/dist/svmr-NXZ5VLKH.js +3840 -0
  282. package/dist/table-ISOQOI6C.js +198 -0
  283. package/dist/termCollection-7ZSU3I45.js +36 -0
  284. package/dist/termCollection-V2A5BDQB.js +177 -0
  285. package/dist/termCollection.unit.spec-6VLCJGOU.js +206 -0
  286. package/dist/tk-6AB6XYIE.js +44 -0
  287. package/dist/tp.ui-2O4UW5N7.js +1457 -0
  288. package/dist/tvs.dt-CY6TOQVB.js +37 -0
  289. package/dist/tvs.dtcnv.categorical-AYQ432TW.js +38 -0
  290. package/dist/tvs.dtcnv.continuous-XVDL6SG3.js +70 -0
  291. package/dist/tvs.dtfusion-V3AV7A6Q.js +38 -0
  292. package/dist/tvs.dtsnvindel-XM3NXIT7.js +38 -0
  293. package/dist/tvs.dtsv-Z2GYRINW.js +38 -0
  294. package/dist/tvs.samplelst-C4FB63G7.js +102 -0
  295. package/dist/tvs.termCollection-VHTSC2ST.js +157 -0
  296. package/dist/violin-KGGTUQFF.js +44 -0
  297. package/dist/violin.integration.spec-5EW6PLJX.js +1423 -0
  298. package/dist/violin.interactivity-RI4RURGO.js +36 -0
  299. package/dist/violin.renderer-EWU2IFZE.js +38 -0
  300. package/dist/vocabulary-VLIGC7OP.js +39 -0
  301. package/package.json +3 -3
  302. package/src/databrowser/dictionary.parse.js +14 -2
  303. package/dist/2dmaf-X7LATQT7.js +0 -1371
  304. package/dist/AIProjectAdmin-GUBKURGO.js +0 -830
  305. package/dist/AIProjectAdmin-GUBKURGO.js.map +0 -7
  306. package/dist/AppHeader-RDOFP322.js +0 -833
  307. package/dist/BoxPlot-AZF2EMGQ.js +0 -1217
  308. package/dist/CorrelationVolcano-VXW35SXU.js +0 -617
  309. package/dist/DE-NLGMZ44O.js +0 -93
  310. package/dist/DEinput-OJ7P4UMP.js +0 -297
  311. package/dist/DEinput-OJ7P4UMP.js.map +0 -7
  312. package/dist/DifferentialAnalysis-G75VUHDI.js +0 -241
  313. package/dist/Disco-DX4S44SI.js +0 -3235
  314. package/dist/Disco.UI-5FYIACCU.js +0 -242
  315. package/dist/DmrPlot-HWYITHK2.js +0 -640
  316. package/dist/GB-DBTMRVYH.js +0 -1125
  317. package/dist/GB-DBTMRVYH.js.map +0 -7
  318. package/dist/GeneExpInput-DWB7OYT2.js +0 -335
  319. package/dist/GeneExpInput-DWB7OYT2.js.map +0 -7
  320. package/dist/HicApp-XPZVZXB7.js +0 -2248
  321. package/dist/NumBinaryEditor-M6MJYIHK.js +0 -268
  322. package/dist/NumBinaryEditor.unit.spec-W6MMYDAW.js +0 -284
  323. package/dist/NumContEditor-YRVENTS5.js +0 -105
  324. package/dist/NumContEditor.unit.spec-A6OH4TI7.js +0 -167
  325. package/dist/NumCustomBinEditor-BLBOYSCQ.js +0 -36
  326. package/dist/NumCustomBinEditor.unit.spec-55V5CKLB.js +0 -282
  327. package/dist/NumDiscreteEditor-DTRM6VL2.js +0 -177
  328. package/dist/NumDiscreteEditor.unit.spec-YMB6QRER.js +0 -200
  329. package/dist/NumRegularBinEditor-XW4SVA7S.js +0 -36
  330. package/dist/NumRegularBinEditor.unit.spec-VAHC3VOD.js +0 -225
  331. package/dist/NumSplineEditor-H22HTRFR.js +0 -190
  332. package/dist/NumSplineEditor.unit.spec-4JUADXZR.js +0 -197
  333. package/dist/NumericDensity-ECSZCQRX.js +0 -36
  334. package/dist/NumericDensity.unit.spec-SXXCXM4X.js +0 -219
  335. package/dist/NumericHandler-CMBN3FZX.js +0 -37
  336. package/dist/NumericHandler.unit.spec-UYTJG2Z2.js +0 -217
  337. package/dist/RunChart2-MVFWLXZX.js +0 -756
  338. package/dist/SC-BRC3J2O4.js +0 -797
  339. package/dist/SC-BRC3J2O4.js.map +0 -7
  340. package/dist/Volcano-WMNFZSX2.js +0 -1234
  341. package/dist/Volcano-WMNFZSX2.js.map +0 -7
  342. package/dist/WSIViewer-2Z636FMA.js +0 -47971
  343. package/dist/WsiSamplesPlot-LN75PND3.js +0 -163
  344. package/dist/adSandbox-AJ7QUDOI.js +0 -36
  345. package/dist/alphaGenome-PVCRXAQK.js +0 -173
  346. package/dist/app-DWYCAFRP.js +0 -47
  347. package/dist/app-RENXV7VR.js +0 -35
  348. package/dist/bam-5G6IT6OX.js +0 -857
  349. package/dist/barchart-MLCCU6SU.js +0 -45
  350. package/dist/barchart.events-B6HQTLK2.js +0 -45
  351. package/dist/barchart.integration.spec-S43A7C7N.js +0 -1675
  352. package/dist/barchart2-QMKEN6MN.js +0 -309
  353. package/dist/block-IGBB4BJH.js +0 -6200
  354. package/dist/block.init-NLCYAKV4.js +0 -36
  355. package/dist/block.mds.expressionrank-TZWGRDY7.js +0 -357
  356. package/dist/block.mds.geneboxplot-OAFROYDL.js +0 -826
  357. package/dist/block.mds.junction-NSLXTW3D.js +0 -1543
  358. package/dist/block.mds.svcnv-ICPG4BW6.js +0 -6799
  359. package/dist/block.svg-DTFVIAAC.js +0 -162
  360. package/dist/block.tk.aicheck-ZIMIBWHA.js +0 -281
  361. package/dist/block.tk.ase-I7UNK5BK.js +0 -363
  362. package/dist/block.tk.bam-W7JG46RS.js +0 -1904
  363. package/dist/block.tk.bedgraphdot-XAQJPKGJ.js +0 -382
  364. package/dist/block.tk.bigwig.ui-YQOJPJSG.js +0 -209
  365. package/dist/block.tk.hicstraw-OWWGGCHU.js +0 -821
  366. package/dist/block.tk.junction-V63ZQQX6.js +0 -2362
  367. package/dist/block.tk.junction.textmatrixui-B7KXX7WN.js +0 -197
  368. package/dist/block.tk.ld-2J6CT74S.js +0 -97
  369. package/dist/block.tk.menu-6AQLG7PW.js +0 -1027
  370. package/dist/block.tk.pgv-4V6PKVCQ.js +0 -942
  371. package/dist/brainImaging-WRBGYLHK.js +0 -421
  372. package/dist/chat-X2BCTEDF.js +0 -148
  373. package/dist/chat-X2BCTEDF.js.map +0 -7
  374. package/dist/chunk-23VG37CB.js +0 -1939
  375. package/dist/chunk-23VG37CB.js.map +0 -7
  376. package/dist/chunk-2VOHINOC.js +0 -262
  377. package/dist/chunk-2VOHINOC.js.map +0 -7
  378. package/dist/chunk-3AK6GP4M.js +0 -215
  379. package/dist/chunk-3B7EWIVB.js +0 -153
  380. package/dist/chunk-3JAC5CHL.js +0 -407
  381. package/dist/chunk-3QBZ2Y77.js +0 -188
  382. package/dist/chunk-3QBZ2Y77.js.map +0 -7
  383. package/dist/chunk-3T2PCWII.js +0 -442
  384. package/dist/chunk-4BTAI6HQ.js +0 -100
  385. package/dist/chunk-4JVNATQR.js +0 -621
  386. package/dist/chunk-4ZCR6CPK.js +0 -4964
  387. package/dist/chunk-4ZCR6CPK.js.map +0 -7
  388. package/dist/chunk-5MW5VMWD.js +0 -2784
  389. package/dist/chunk-5ZBEDKBD.js +0 -158
  390. package/dist/chunk-65YTZS3R.js +0 -203
  391. package/dist/chunk-6ZCHECOT.js +0 -1816
  392. package/dist/chunk-6ZCHECOT.js.map +0 -7
  393. package/dist/chunk-73ZT6NAT.js +0 -34
  394. package/dist/chunk-7HJ6H7AZ.js +0 -2681
  395. package/dist/chunk-AFXYPMFZ.js +0 -117
  396. package/dist/chunk-BL4ALBZ7.js +0 -37
  397. package/dist/chunk-BRCDZJBQ.js +0 -824
  398. package/dist/chunk-EBGX226R.js +0 -205
  399. package/dist/chunk-EHXI36HJ.js +0 -2815
  400. package/dist/chunk-ENP4FLOX.js +0 -293
  401. package/dist/chunk-FDOSJKDA.js +0 -1209
  402. package/dist/chunk-FDOSJKDA.js.map +0 -7
  403. package/dist/chunk-HP2BASCY.js +0 -1159
  404. package/dist/chunk-HP2BASCY.js.map +0 -7
  405. package/dist/chunk-HROKXT4K.js +0 -14
  406. package/dist/chunk-HTMXVOTH.js +0 -482
  407. package/dist/chunk-IA7S4UL5.js +0 -302
  408. package/dist/chunk-JFIOYO3M.js +0 -272
  409. package/dist/chunk-JMJW3ERE.js +0 -470
  410. package/dist/chunk-K7XWZSQA.js +0 -148
  411. package/dist/chunk-KSN3EVKI.js +0 -102
  412. package/dist/chunk-L5SOHZ5V.js +0 -229
  413. package/dist/chunk-LMGE54CQ.js +0 -54
  414. package/dist/chunk-LOMVTHAM.js +0 -95
  415. package/dist/chunk-MSW7OS2O.js +0 -276
  416. package/dist/chunk-MVCGSYS2.js +0 -50
  417. package/dist/chunk-N2HBIQKU.js +0 -102
  418. package/dist/chunk-NL3DVEVX.js +0 -158
  419. package/dist/chunk-O4WJSZC3.js +0 -1087
  420. package/dist/chunk-OLUDD6EC.js +0 -2370
  421. package/dist/chunk-OVPVPPRG.js +0 -55
  422. package/dist/chunk-OYEISJSJ.js +0 -289
  423. package/dist/chunk-OYEISJSJ.js.map +0 -7
  424. package/dist/chunk-P2JDCMXW.js +0 -4207
  425. package/dist/chunk-PMDXCESS.js +0 -514
  426. package/dist/chunk-PXYYICV7.js +0 -1271
  427. package/dist/chunk-PZ3KIUWJ.js +0 -56
  428. package/dist/chunk-QEWMCAJW.js +0 -335
  429. package/dist/chunk-QLWDUZ5K.js +0 -129
  430. package/dist/chunk-QRSIID3T.js +0 -95
  431. package/dist/chunk-ST644IDH.js +0 -217
  432. package/dist/chunk-UOOMFM7K.js +0 -6364
  433. package/dist/chunk-VGHSLILD.js +0 -368
  434. package/dist/chunk-W35IOI74.js +0 -228
  435. package/dist/chunk-XKF4KMCB.js +0 -146
  436. package/dist/chunk-XKF4KMCB.js.map +0 -7
  437. package/dist/chunk-XVDWYTJ6.js +0 -676
  438. package/dist/chunk-YQVEBFGT.js +0 -455
  439. package/dist/chunk-YWUVCXFS.js +0 -20271
  440. package/dist/chunk-YWUVCXFS.js.map +0 -7
  441. package/dist/chunk-ZT3PB4XX.js +0 -1150
  442. package/dist/chunk-ZT3PB4XX.js.map +0 -7
  443. package/dist/chunk-ZVSXHCGP.js +0 -142
  444. package/dist/condition-CZX2GSN4.js +0 -330
  445. package/dist/controls-BQR3WY5W.js +0 -39
  446. package/dist/controls.config-TAVZDHFZ.js +0 -37
  447. package/dist/correlation-BIWVZNC6.js +0 -96
  448. package/dist/cuminc-EDXOOI5R.js +0 -1147
  449. package/dist/cuminc.integration.spec-UZA7BDTB.js +0 -676
  450. package/dist/customdata.inputui-PEB4CE7J.js +0 -287
  451. package/dist/dataDownload-KANEHJXJ.js +0 -328
  452. package/dist/dataDownload.integration.spec-23WLHSWJ.js +0 -191
  453. package/dist/databrowser.ui-B2TNECC4.js +0 -419
  454. package/dist/databrowser.ui-B2TNECC4.js.map +0 -7
  455. package/dist/dictionary-YOTUFVES.js +0 -109
  456. package/dist/dnaMethylation-TRFAZWRJ.js +0 -36
  457. package/dist/dnaMethylation.integration.spec-SPFZO76D.js +0 -201
  458. package/dist/dofetch-MH4MRMGY.js +0 -50
  459. package/dist/e2pca-AFVAFUJ2.js +0 -348
  460. package/dist/ep-4FXTLWB4.js +0 -1254
  461. package/dist/expclust.gdc.spec-SFOCKBLR.js +0 -305
  462. package/dist/facet-SY6PYSTN.js +0 -519
  463. package/dist/gb-JUV63QCN.js +0 -93
  464. package/dist/gb-JUV63QCN.js.map +0 -7
  465. package/dist/geneExpClustering-FOY77R7P.js +0 -247
  466. package/dist/geneExpression-AHKX57BT.js +0 -312
  467. package/dist/geneExpression-D2F2KVGY.js +0 -36
  468. package/dist/geneExpression.unit.spec-SR2BGZQL.js +0 -100
  469. package/dist/geneORA-VJMYI4BT.js +0 -276
  470. package/dist/geneVariant-LFM5SO2P.js +0 -37
  471. package/dist/geneVariant-OIKEV4JM.js +0 -39
  472. package/dist/geneVariant.integration.spec-T6BINPIN.js +0 -196
  473. package/dist/genefusion.ui-NLMW5XMI.js +0 -306
  474. package/dist/geneset-HKXFHM5K.js +0 -197
  475. package/dist/geneset-HKXFHM5K.js.map +0 -7
  476. package/dist/genomeBrowser.spec-DRYIFJLY.js +0 -279
  477. package/dist/grin2-GJKLNT4J.js +0 -1031
  478. package/dist/grin2-GJKLNT4J.js.map +0 -7
  479. package/dist/grin2-LGI535FF.js +0 -1554
  480. package/dist/gsea-Z7DSDFOA.js +0 -45
  481. package/dist/hierCluster-HC2B5XRR.js +0 -61
  482. package/dist/hierCluster-PLHVN5S3.js +0 -57
  483. package/dist/hierCluster.config-E3DIJWL5.js +0 -38
  484. package/dist/hierCluster.integration.spec-OQLPUQG4.js +0 -393
  485. package/dist/hierCluster.interactivity-LRNPDTEH.js +0 -52
  486. package/dist/imagePlot-GUXRGYQA.js +0 -139
  487. package/dist/imagePlot-GUXRGYQA.js.map +0 -7
  488. package/dist/importPlot-M5HGLHRO.js +0 -8
  489. package/dist/isoformExpression-PADLHHR5.js +0 -38
  490. package/dist/isoformExpression.unit.spec-5BPAL4OS.js +0 -206
  491. package/dist/launch.adhoc-JH6ZZFDB.js +0 -40
  492. package/dist/leftlabel.sample-NS2TBANH.js +0 -257
  493. package/dist/lollipop-W6NOHHCP.js +0 -166
  494. package/dist/lollipop-W6NOHHCP.js.map +0 -7
  495. package/dist/maf-NOHIKTUP.js +0 -450
  496. package/dist/maftimeline-WGWE52EF.js +0 -591
  497. package/dist/matrix-B6NPQFFF.js +0 -61
  498. package/dist/matrix-UAKRJL5A.js +0 -56
  499. package/dist/matrix.config-KJNJXPJJ.js +0 -39
  500. package/dist/matrix.integration.spec-VAXIR3E6.js +0 -3070
  501. package/dist/matrix.interactivity-H4MCMJXU.js +0 -40
  502. package/dist/matrix.layout-RFKQJM5D.js +0 -42
  503. package/dist/matrix.renderers-7JJIC6VC.js +0 -36
  504. package/dist/matrix.sort.unit.spec-MQQVWWNT.js +0 -470
  505. package/dist/matrix.sorterUi.unit.spec-LG4TI7VF.js +0 -340
  506. package/dist/mavb-EIZHS6F4.js +0 -730
  507. package/dist/mds.fimo-XVC6MI7W.js +0 -516
  508. package/dist/mds.samplescatterplot-PRR4TKYI.js +0 -1548
  509. package/dist/mds.survivalplot-3OG4Y2B6.js +0 -481
  510. package/dist/oncomatrix-SO6S6IIB.js +0 -293
  511. package/dist/oncomatrix.spec-VXTF44K5.js +0 -446
  512. package/dist/plot.2dvaf-JW5OJJXV.js +0 -375
  513. package/dist/plot.app-T3GVCFQ3.js +0 -39
  514. package/dist/plot.barplot-2TYP6DPI.js +0 -100
  515. package/dist/plot.boxplot-HOQHM7JF.js +0 -150
  516. package/dist/plot.brainImaging-5AI7BSD4.js +0 -51
  517. package/dist/plot.disco-HNNZHK5Z.js +0 -101
  518. package/dist/plot.dzi-4OQSO7SY.js +0 -33
  519. package/dist/plot.ssgq-VZTTGECT.js +0 -137
  520. package/dist/plot.vaf2cov-ASEELRDV.js +0 -257
  521. package/dist/plot.wsi-MDWYLU4R.js +0 -36
  522. package/dist/polar-QSY6JG4P.js +0 -184
  523. package/dist/polar2-FD6656VD.js +0 -226
  524. package/dist/profile.spec-V7EQBXT2.js +0 -78
  525. package/dist/profileBarchart-EIKHZAPD.js +0 -265
  526. package/dist/profileForms-NGFRXPFF.js +0 -438
  527. package/dist/profilePlot-2UFKJ2OC.js +0 -52
  528. package/dist/profileRadar-B2R7OV5F.js +0 -261
  529. package/dist/profileRadarFacility-ILC7POCI.js +0 -261
  530. package/dist/proteinView-AS6ZV2JT.js +0 -758
  531. package/dist/proteinView-AS6ZV2JT.js.map +0 -7
  532. package/dist/proteomeAbundance-6J5YF4V2.js +0 -63
  533. package/dist/proteomeAbundance-6J5YF4V2.js.map +0 -7
  534. package/dist/proteomeAbundance-OF27N347.js +0 -21
  535. package/dist/qualitative-CSUO2WG5.js +0 -41
  536. package/dist/radar2-L2HGCUYR.js +0 -314
  537. package/dist/radarFacility2-HXUUTRYO.js +0 -323
  538. package/dist/regression-Y4NYGZSA.js +0 -54
  539. package/dist/regression.inputs-RWFIJLNF.js +0 -46
  540. package/dist/regression.inputs.term-QIU5SHTN.js +0 -46
  541. package/dist/regression.inputs.values.table-FM6QTSEV.js +0 -43
  542. package/dist/regression.integration.spec-YRKKU7HL.js +0 -782
  543. package/dist/regression.results-YUDCHUZJ.js +0 -38
  544. package/dist/regression.spec-G4GIIV32.js +0 -706
  545. package/dist/report-2N4FBR4Q.js +0 -220
  546. package/dist/sampleScatter.spec-UIUYO4WR.js +0 -200
  547. package/dist/sampleView-TOK5Y5KU.js +0 -46
  548. package/dist/samplelst-YW5ZS3GJ.js +0 -109
  549. package/dist/samplematrix-447BHSO7.js +0 -2196
  550. package/dist/sc-O2PL3FL2.js +0 -84
  551. package/dist/scatter-4DXHOWVY.js +0 -800
  552. package/dist/scatter.integration.spec-ZPTM3AGQ.js +0 -1194
  553. package/dist/selectGenomeWithTklst-3RLZFW62.js +0 -132
  554. package/dist/singleCellCellType-3LQJXS7H.js +0 -36
  555. package/dist/singleCellCellType.unit.spec-UJM72SP4.js +0 -158
  556. package/dist/singleCellGeneExpression-JOWJWPIQ.js +0 -36
  557. package/dist/singleCellGeneExpression.unit.spec-VY5CGRZH.js +0 -151
  558. package/dist/singleCellPlot-IVLVKOO6.js +0 -51
  559. package/dist/singlecell-VJJZJZF7.js +0 -1570
  560. package/dist/singlecell-VQJ2252L.js +0 -84
  561. package/dist/snp-ALMKZKL2.js +0 -36
  562. package/dist/snp.unit.spec-GJQBAHGQ.js +0 -174
  563. package/dist/snplocus-WCNCMFWZ.js +0 -206
  564. package/dist/spliceevent.a53ss.diagram-4Q4JF4RX.js +0 -149
  565. package/dist/spliceevent.exonskip.diagram-IOYOKELT.js +0 -275
  566. package/dist/spliceevent.noeventdiagram-77ZCOHSF.js +0 -458
  567. package/dist/ssGSEA-QTXXIN4K.js +0 -36
  568. package/dist/ssGSEA.unit.spec-LQESATT3.js +0 -86
  569. package/dist/summarizeCnvGeneexp-YKUQGDQF.js +0 -161
  570. package/dist/summarizeGeneexpSurvival-ARGG5VDC.js +0 -106
  571. package/dist/summarizeMutationCnv-FMZYT3EC.js +0 -162
  572. package/dist/summarizeMutationDiagnosis-ZX7I46SC.js +0 -38
  573. package/dist/summarizeMutationSurvival-RCFMTT43.js +0 -97
  574. package/dist/summary-QLL5YVI2.js +0 -47
  575. package/dist/summary.integration.spec-DHY6XCEJ.js +0 -412
  576. package/dist/summaryInput-ANCUQGIB.js +0 -233
  577. package/dist/sunburst-RDNFBOCK.js +0 -282
  578. package/dist/survival-BG7QV52L.js +0 -44
  579. package/dist/survival-WSN36OQE.js +0 -56
  580. package/dist/survival.integration.spec-37KAJ5IK.js +0 -800
  581. package/dist/svgraph-A5WGHW4S.js +0 -1385
  582. package/dist/svmr-CYRHHWZF.js +0 -3840
  583. package/dist/table-VHO7E5PI.js +0 -198
  584. package/dist/termCollection-E4Q6GLXN.js +0 -177
  585. package/dist/termCollection-HSVSH7TJ.js +0 -36
  586. package/dist/termCollection.unit.spec-ZCE3TUMS.js +0 -206
  587. package/dist/tk-GPRHDN4K.js +0 -44
  588. package/dist/tp.ui-LTUA3FSL.js +0 -1457
  589. package/dist/tvs.dt-G43PAAKD.js +0 -37
  590. package/dist/tvs.dtcnv.categorical-UHDS2TGZ.js +0 -38
  591. package/dist/tvs.dtcnv.continuous-ZNGYQKTD.js +0 -70
  592. package/dist/tvs.dtfusion-JBEEUDUS.js +0 -38
  593. package/dist/tvs.dtsnvindel-XXN5Q7RN.js +0 -38
  594. package/dist/tvs.dtsv-MO6L7HHV.js +0 -38
  595. package/dist/tvs.samplelst-HKY6UUJM.js +0 -102
  596. package/dist/tvs.termCollection-TY6FPL25.js +0 -157
  597. package/dist/violin-YHE3WSGR.js +0 -44
  598. package/dist/violin.integration.spec-F2UD7BHC.js +0 -1423
  599. package/dist/violin.interactivity-LVDTDEPQ.js +0 -36
  600. package/dist/violin.renderer-IIEIUGRI.js +0 -38
  601. package/dist/vocabulary-WQRYXBRO.js +0 -39
  602. /package/dist/{2dmaf-X7LATQT7.js.map → 2dmaf-F5QNP7AQ.js.map} +0 -0
  603. /package/dist/{AppHeader-RDOFP322.js.map → AppHeader-STVCDLET.js.map} +0 -0
  604. /package/dist/{BoxPlot-AZF2EMGQ.js.map → BoxPlot-CU7MEBH7.js.map} +0 -0
  605. /package/dist/{CorrelationVolcano-VXW35SXU.js.map → CorrelationVolcano-OE4R2GS3.js.map} +0 -0
  606. /package/dist/{DE-NLGMZ44O.js.map → DE-SR7PJPKI.js.map} +0 -0
  607. /package/dist/{DifferentialAnalysis-G75VUHDI.js.map → DifferentialAnalysis-UWTYK7NU.js.map} +0 -0
  608. /package/dist/{Disco-DX4S44SI.js.map → Disco-IL6REGSA.js.map} +0 -0
  609. /package/dist/{Disco.UI-5FYIACCU.js.map → Disco.UI-JHHLS5BA.js.map} +0 -0
  610. /package/dist/{DmrPlot-HWYITHK2.js.map → DmrPlot-DDP53T3F.js.map} +0 -0
  611. /package/dist/{HicApp-XPZVZXB7.js.map → HicApp-RVFHTYED.js.map} +0 -0
  612. /package/dist/{NumBinaryEditor-M6MJYIHK.js.map → NumBinaryEditor-B3FXQAOH.js.map} +0 -0
  613. /package/dist/{NumBinaryEditor.unit.spec-W6MMYDAW.js.map → NumBinaryEditor.unit.spec-75YQJ2U6.js.map} +0 -0
  614. /package/dist/{NumContEditor-YRVENTS5.js.map → NumContEditor-5PYW3OLY.js.map} +0 -0
  615. /package/dist/{NumContEditor.unit.spec-A6OH4TI7.js.map → NumContEditor.unit.spec-F7ZRDGBN.js.map} +0 -0
  616. /package/dist/{NumCustomBinEditor-BLBOYSCQ.js.map → NumCustomBinEditor-TBT6GLYQ.js.map} +0 -0
  617. /package/dist/{NumCustomBinEditor.unit.spec-55V5CKLB.js.map → NumCustomBinEditor.unit.spec-6YHU45XV.js.map} +0 -0
  618. /package/dist/{NumDiscreteEditor-DTRM6VL2.js.map → NumDiscreteEditor-N6OJYSJA.js.map} +0 -0
  619. /package/dist/{NumDiscreteEditor.unit.spec-YMB6QRER.js.map → NumDiscreteEditor.unit.spec-HQS5RZ6R.js.map} +0 -0
  620. /package/dist/{NumRegularBinEditor-XW4SVA7S.js.map → NumRegularBinEditor-HSDDKVNG.js.map} +0 -0
  621. /package/dist/{NumRegularBinEditor.unit.spec-VAHC3VOD.js.map → NumRegularBinEditor.unit.spec-33KN2MVM.js.map} +0 -0
  622. /package/dist/{NumSplineEditor-H22HTRFR.js.map → NumSplineEditor-XERKOACS.js.map} +0 -0
  623. /package/dist/{NumSplineEditor.unit.spec-4JUADXZR.js.map → NumSplineEditor.unit.spec-MPVM6KSC.js.map} +0 -0
  624. /package/dist/{NumericDensity-ECSZCQRX.js.map → NumericDensity-35EKYW3V.js.map} +0 -0
  625. /package/dist/{NumericDensity.unit.spec-SXXCXM4X.js.map → NumericDensity.unit.spec-OR24PPRJ.js.map} +0 -0
  626. /package/dist/{NumericHandler-CMBN3FZX.js.map → NumericHandler-D6ZNGRE3.js.map} +0 -0
  627. /package/dist/{NumericHandler.unit.spec-UYTJG2Z2.js.map → NumericHandler.unit.spec-EKPGVSXI.js.map} +0 -0
  628. /package/dist/{RunChart2-MVFWLXZX.js.map → RunChart2-7DOXOFXV.js.map} +0 -0
  629. /package/dist/{WSIViewer-2Z636FMA.js.map → WSIViewer-E247ELKN.js.map} +0 -0
  630. /package/dist/{WsiSamplesPlot-LN75PND3.js.map → WsiSamplesPlot-3522VRB5.js.map} +0 -0
  631. /package/dist/{adSandbox-AJ7QUDOI.js.map → adSandbox-IDFY5P2P.js.map} +0 -0
  632. /package/dist/{alphaGenome-PVCRXAQK.js.map → alphaGenome-F3W7GJQ5.js.map} +0 -0
  633. /package/dist/{app-DWYCAFRP.js.map → app-2HDSFMRM.js.map} +0 -0
  634. /package/dist/{app-RENXV7VR.js.map → app-LIWPFL7C.js.map} +0 -0
  635. /package/dist/{bam-5G6IT6OX.js.map → bam-TBHHSATL.js.map} +0 -0
  636. /package/dist/{barchart-MLCCU6SU.js.map → barchart-HHFCBOZE.js.map} +0 -0
  637. /package/dist/{barchart.events-B6HQTLK2.js.map → barchart.events-UQUSSRXB.js.map} +0 -0
  638. /package/dist/{barchart.integration.spec-S43A7C7N.js.map → barchart.integration.spec-OF3MWFQ5.js.map} +0 -0
  639. /package/dist/{barchart2-QMKEN6MN.js.map → barchart2-XRMPCBBU.js.map} +0 -0
  640. /package/dist/{block-IGBB4BJH.js.map → block-5UEORHFB.js.map} +0 -0
  641. /package/dist/{block.init-NLCYAKV4.js.map → block.init-QSSFUVIT.js.map} +0 -0
  642. /package/dist/{block.mds.expressionrank-TZWGRDY7.js.map → block.mds.expressionrank-VBIIJHQF.js.map} +0 -0
  643. /package/dist/{block.mds.geneboxplot-OAFROYDL.js.map → block.mds.geneboxplot-KSBHXBNX.js.map} +0 -0
  644. /package/dist/{block.mds.junction-NSLXTW3D.js.map → block.mds.junction-FWZWMZJ2.js.map} +0 -0
  645. /package/dist/{block.mds.svcnv-ICPG4BW6.js.map → block.mds.svcnv-UXORVLH2.js.map} +0 -0
  646. /package/dist/{block.svg-DTFVIAAC.js.map → block.svg-6KIGW4QH.js.map} +0 -0
  647. /package/dist/{block.tk.aicheck-ZIMIBWHA.js.map → block.tk.aicheck-DK566Q4C.js.map} +0 -0
  648. /package/dist/{block.tk.ase-I7UNK5BK.js.map → block.tk.ase-2GB2VJJ6.js.map} +0 -0
  649. /package/dist/{block.tk.bam-W7JG46RS.js.map → block.tk.bam-RQNOLY52.js.map} +0 -0
  650. /package/dist/{block.tk.bedgraphdot-XAQJPKGJ.js.map → block.tk.bedgraphdot-N4YMZFO4.js.map} +0 -0
  651. /package/dist/{block.tk.bigwig.ui-YQOJPJSG.js.map → block.tk.bigwig.ui-4S7L7D7D.js.map} +0 -0
  652. /package/dist/{block.tk.hicstraw-OWWGGCHU.js.map → block.tk.hicstraw-AHFNQKCS.js.map} +0 -0
  653. /package/dist/{block.tk.junction-V63ZQQX6.js.map → block.tk.junction-7E6SNQMQ.js.map} +0 -0
  654. /package/dist/{block.tk.junction.textmatrixui-B7KXX7WN.js.map → block.tk.junction.textmatrixui-3C5JVYX5.js.map} +0 -0
  655. /package/dist/{block.tk.ld-2J6CT74S.js.map → block.tk.ld-TOUCLT3W.js.map} +0 -0
  656. /package/dist/{block.tk.menu-6AQLG7PW.js.map → block.tk.menu-JCV5ORD6.js.map} +0 -0
  657. /package/dist/{block.tk.pgv-4V6PKVCQ.js.map → block.tk.pgv-CUU22U6M.js.map} +0 -0
  658. /package/dist/{brainImaging-WRBGYLHK.js.map → brainImaging-MTQTXNNL.js.map} +0 -0
  659. /package/dist/{chunk-ENP4FLOX.js.map → chunk-2UYBBUXK.js.map} +0 -0
  660. /package/dist/{chunk-P2JDCMXW.js.map → chunk-2VPEFXEJ.js.map} +0 -0
  661. /package/dist/{chunk-OVPVPPRG.js.map → chunk-3QHIL3V3.js.map} +0 -0
  662. /package/dist/{chunk-QLWDUZ5K.js.map → chunk-44VXWKYJ.js.map} +0 -0
  663. /package/dist/{chunk-QRSIID3T.js.map → chunk-52D6EGUS.js.map} +0 -0
  664. /package/dist/{chunk-N2HBIQKU.js.map → chunk-5FHM3L4I.js.map} +0 -0
  665. /package/dist/{chunk-ZVSXHCGP.js.map → chunk-62TF2MCH.js.map} +0 -0
  666. /package/dist/{chunk-UOOMFM7K.js.map → chunk-67QM2NUK.js.map} +0 -0
  667. /package/dist/{chunk-XVDWYTJ6.js.map → chunk-6AAPHEWK.js.map} +0 -0
  668. /package/dist/{chunk-3B7EWIVB.js.map → chunk-6KPGMUHS.js.map} +0 -0
  669. /package/dist/{chunk-YQVEBFGT.js.map → chunk-6WBIZXNI.js.map} +0 -0
  670. /package/dist/{chunk-IA7S4UL5.js.map → chunk-7AAJVXEG.js.map} +0 -0
  671. /package/dist/{chunk-PXYYICV7.js.map → chunk-AFJRAR4N.js.map} +0 -0
  672. /package/dist/{chunk-K7XWZSQA.js.map → chunk-CVRYZMDE.js.map} +0 -0
  673. /package/dist/{chunk-MSW7OS2O.js.map → chunk-DGUTCYH2.js.map} +0 -0
  674. /package/dist/{chunk-5ZBEDKBD.js.map → chunk-DHNXATHC.js.map} +0 -0
  675. /package/dist/{chunk-L5SOHZ5V.js.map → chunk-E3BI23UK.js.map} +0 -0
  676. /package/dist/{chunk-4JVNATQR.js.map → chunk-E4JDHA3C.js.map} +0 -0
  677. /package/dist/{chunk-W35IOI74.js.map → chunk-FOJWYEGV.js.map} +0 -0
  678. /package/dist/{chunk-NL3DVEVX.js.map → chunk-FTN7Y34O.js.map} +0 -0
  679. /package/dist/{chunk-EHXI36HJ.js.map → chunk-GRG5MMPN.js.map} +0 -0
  680. /package/dist/{chunk-HTMXVOTH.js.map → chunk-GSU4PZN3.js.map} +0 -0
  681. /package/dist/{chunk-ST644IDH.js.map → chunk-IIRU2JLK.js.map} +0 -0
  682. /package/dist/{chunk-JFIOYO3M.js.map → chunk-JCB74ZSK.js.map} +0 -0
  683. /package/dist/{chunk-BRCDZJBQ.js.map → chunk-JUDWPYMA.js.map} +0 -0
  684. /package/dist/{chunk-O4WJSZC3.js.map → chunk-KT6VZBC7.js.map} +0 -0
  685. /package/dist/{chunk-OLUDD6EC.js.map → chunk-L2HBHFTK.js.map} +0 -0
  686. /package/dist/{chunk-VGHSLILD.js.map → chunk-LKADRF3Q.js.map} +0 -0
  687. /package/dist/{chunk-3JAC5CHL.js.map → chunk-MAXFRUGM.js.map} +0 -0
  688. /package/dist/{chunk-BL4ALBZ7.js.map → chunk-MQN7RYCK.js.map} +0 -0
  689. /package/dist/{chunk-JMJW3ERE.js.map → chunk-OEUI4CYZ.js.map} +0 -0
  690. /package/dist/{chunk-73ZT6NAT.js.map → chunk-OM36XUQL.js.map} +0 -0
  691. /package/dist/{chunk-LMGE54CQ.js.map → chunk-P5LNIH5X.js.map} +0 -0
  692. /package/dist/{chunk-KSN3EVKI.js.map → chunk-PG62PRMF.js.map} +0 -0
  693. /package/dist/{chunk-EBGX226R.js.map → chunk-Q3J3F2NU.js.map} +0 -0
  694. /package/dist/{chunk-AFXYPMFZ.js.map → chunk-RZBV6474.js.map} +0 -0
  695. /package/dist/{chunk-3T2PCWII.js.map → chunk-T5V4OC27.js.map} +0 -0
  696. /package/dist/{chunk-QEWMCAJW.js.map → chunk-UCKSUNSJ.js.map} +0 -0
  697. /package/dist/{chunk-PMDXCESS.js.map → chunk-W4TLYHZO.js.map} +0 -0
  698. /package/dist/{chunk-PZ3KIUWJ.js.map → chunk-WPZUXKIB.js.map} +0 -0
  699. /package/dist/{chunk-3AK6GP4M.js.map → chunk-XM47XD6G.js.map} +0 -0
  700. /package/dist/{chunk-MVCGSYS2.js.map → chunk-YZHGLSKQ.js.map} +0 -0
  701. /package/dist/{chunk-65YTZS3R.js.map → chunk-ZGOOZK3I.js.map} +0 -0
  702. /package/dist/{chunk-LOMVTHAM.js.map → chunk-ZH2VP6Q6.js.map} +0 -0
  703. /package/dist/{chunk-HROKXT4K.js.map → chunk-ZLOQXO5K.js.map} +0 -0
  704. /package/dist/{chunk-4BTAI6HQ.js.map → chunk-ZMNDBPJU.js.map} +0 -0
  705. /package/dist/{chunk-5MW5VMWD.js.map → chunk-ZRTW6X3F.js.map} +0 -0
  706. /package/dist/{chunk-7HJ6H7AZ.js.map → chunk-ZTT52MBP.js.map} +0 -0
  707. /package/dist/{condition-CZX2GSN4.js.map → condition-VUACUQYF.js.map} +0 -0
  708. /package/dist/{controls-BQR3WY5W.js.map → controls-N4MPSNO4.js.map} +0 -0
  709. /package/dist/{controls.config-TAVZDHFZ.js.map → controls.config-PRXVODCM.js.map} +0 -0
  710. /package/dist/{correlation-BIWVZNC6.js.map → correlation-QJZUYDFH.js.map} +0 -0
  711. /package/dist/{cuminc-EDXOOI5R.js.map → cuminc-JJHXW55V.js.map} +0 -0
  712. /package/dist/{cuminc.integration.spec-UZA7BDTB.js.map → cuminc.integration.spec-IXS2UO2O.js.map} +0 -0
  713. /package/dist/{customdata.inputui-PEB4CE7J.js.map → customdata.inputui-DUHO6M6I.js.map} +0 -0
  714. /package/dist/{dataDownload-KANEHJXJ.js.map → dataDownload-OFB7TYDB.js.map} +0 -0
  715. /package/dist/{dataDownload.integration.spec-23WLHSWJ.js.map → dataDownload.integration.spec-4HWDQO4C.js.map} +0 -0
  716. /package/dist/{dictionary-YOTUFVES.js.map → dictionary-BSKN37CP.js.map} +0 -0
  717. /package/dist/{dnaMethylation-TRFAZWRJ.js.map → dnaMethylation-5QNEEGC6.js.map} +0 -0
  718. /package/dist/{dnaMethylation.integration.spec-SPFZO76D.js.map → dnaMethylation.integration.spec-YIX3JSA7.js.map} +0 -0
  719. /package/dist/{dofetch-MH4MRMGY.js.map → dofetch-KFMGQY7G.js.map} +0 -0
  720. /package/dist/{e2pca-AFVAFUJ2.js.map → e2pca-VX42HDYZ.js.map} +0 -0
  721. /package/dist/{ep-4FXTLWB4.js.map → ep-B6ZNETLI.js.map} +0 -0
  722. /package/dist/{expclust.gdc.spec-SFOCKBLR.js.map → expclust.gdc.spec-SGECIILQ.js.map} +0 -0
  723. /package/dist/{facet-SY6PYSTN.js.map → facet-2W5SBPGP.js.map} +0 -0
  724. /package/dist/{geneExpClustering-FOY77R7P.js.map → geneExpClustering-6A7364T5.js.map} +0 -0
  725. /package/dist/{geneExpression-D2F2KVGY.js.map → geneExpression-NAM2UEYN.js.map} +0 -0
  726. /package/dist/{geneExpression-AHKX57BT.js.map → geneExpression-WF56ODMZ.js.map} +0 -0
  727. /package/dist/{geneExpression.unit.spec-SR2BGZQL.js.map → geneExpression.unit.spec-DNE2T3WI.js.map} +0 -0
  728. /package/dist/{geneORA-VJMYI4BT.js.map → geneORA-33FK2YOS.js.map} +0 -0
  729. /package/dist/{geneVariant-LFM5SO2P.js.map → geneVariant-C7PCNBOQ.js.map} +0 -0
  730. /package/dist/{geneVariant-OIKEV4JM.js.map → geneVariant-REELFRRA.js.map} +0 -0
  731. /package/dist/{geneVariant.integration.spec-T6BINPIN.js.map → geneVariant.integration.spec-GNXUGDKL.js.map} +0 -0
  732. /package/dist/{genefusion.ui-NLMW5XMI.js.map → genefusion.ui-WO5EPJDS.js.map} +0 -0
  733. /package/dist/{genomeBrowser.spec-DRYIFJLY.js.map → genomeBrowser.spec-VPAKTUJF.js.map} +0 -0
  734. /package/dist/{grin2-LGI535FF.js.map → grin2-GYHUYNEF.js.map} +0 -0
  735. /package/dist/{gsea-Z7DSDFOA.js.map → gsea-PE5WZ5ZI.js.map} +0 -0
  736. /package/dist/{hierCluster-HC2B5XRR.js.map → hierCluster-FH6YJHRT.js.map} +0 -0
  737. /package/dist/{hierCluster-PLHVN5S3.js.map → hierCluster-IFM5I5QN.js.map} +0 -0
  738. /package/dist/{hierCluster.config-E3DIJWL5.js.map → hierCluster.config-M57ZIWMB.js.map} +0 -0
  739. /package/dist/{hierCluster.integration.spec-OQLPUQG4.js.map → hierCluster.integration.spec-Z64RL7MC.js.map} +0 -0
  740. /package/dist/{hierCluster.interactivity-LRNPDTEH.js.map → hierCluster.interactivity-CDBAJXOY.js.map} +0 -0
  741. /package/dist/{importPlot-M5HGLHRO.js.map → importPlot-OWKXSK77.js.map} +0 -0
  742. /package/dist/{isoformExpression-PADLHHR5.js.map → isoformExpression-66XLJG73.js.map} +0 -0
  743. /package/dist/{isoformExpression.unit.spec-5BPAL4OS.js.map → isoformExpression.unit.spec-QJX2IRHL.js.map} +0 -0
  744. /package/dist/{launch.adhoc-JH6ZZFDB.js.map → launch.adhoc-JCWID253.js.map} +0 -0
  745. /package/dist/{leftlabel.sample-NS2TBANH.js.map → leftlabel.sample-5NZ6VQDN.js.map} +0 -0
  746. /package/dist/{maf-NOHIKTUP.js.map → maf-HIS2FQXK.js.map} +0 -0
  747. /package/dist/{maftimeline-WGWE52EF.js.map → maftimeline-UPJJQE23.js.map} +0 -0
  748. /package/dist/{matrix-B6NPQFFF.js.map → matrix-62CN2KXR.js.map} +0 -0
  749. /package/dist/{matrix-UAKRJL5A.js.map → matrix-SPEDEB3J.js.map} +0 -0
  750. /package/dist/{matrix.config-KJNJXPJJ.js.map → matrix.config-XB6WFXUY.js.map} +0 -0
  751. /package/dist/{matrix.integration.spec-VAXIR3E6.js.map → matrix.integration.spec-NN7OR5XM.js.map} +0 -0
  752. /package/dist/{matrix.interactivity-H4MCMJXU.js.map → matrix.interactivity-OWMHUJCX.js.map} +0 -0
  753. /package/dist/{matrix.layout-RFKQJM5D.js.map → matrix.layout-27QB6MWK.js.map} +0 -0
  754. /package/dist/{matrix.renderers-7JJIC6VC.js.map → matrix.renderers-EPXES5E4.js.map} +0 -0
  755. /package/dist/{matrix.sort.unit.spec-MQQVWWNT.js.map → matrix.sort.unit.spec-NBT5FSZ6.js.map} +0 -0
  756. /package/dist/{matrix.sorterUi.unit.spec-LG4TI7VF.js.map → matrix.sorterUi.unit.spec-QKGUE4RR.js.map} +0 -0
  757. /package/dist/{mavb-EIZHS6F4.js.map → mavb-M7Y74OWQ.js.map} +0 -0
  758. /package/dist/{mds.fimo-XVC6MI7W.js.map → mds.fimo-WCDFA7HG.js.map} +0 -0
  759. /package/dist/{mds.samplescatterplot-PRR4TKYI.js.map → mds.samplescatterplot-ZDHQ3MKJ.js.map} +0 -0
  760. /package/dist/{mds.survivalplot-3OG4Y2B6.js.map → mds.survivalplot-R74DL2RA.js.map} +0 -0
  761. /package/dist/{oncomatrix-SO6S6IIB.js.map → oncomatrix-MOITJBII.js.map} +0 -0
  762. /package/dist/{oncomatrix.spec-VXTF44K5.js.map → oncomatrix.spec-NALJBPYS.js.map} +0 -0
  763. /package/dist/{plot.2dvaf-JW5OJJXV.js.map → plot.2dvaf-IE2EZEFA.js.map} +0 -0
  764. /package/dist/{plot.app-T3GVCFQ3.js.map → plot.app-HTW6TZEH.js.map} +0 -0
  765. /package/dist/{plot.barplot-2TYP6DPI.js.map → plot.barplot-NCQEPEOY.js.map} +0 -0
  766. /package/dist/{plot.boxplot-HOQHM7JF.js.map → plot.boxplot-WNKVBVJJ.js.map} +0 -0
  767. /package/dist/{plot.brainImaging-5AI7BSD4.js.map → plot.brainImaging-2Z3TOO6J.js.map} +0 -0
  768. /package/dist/{plot.disco-HNNZHK5Z.js.map → plot.disco-4JAEIAYK.js.map} +0 -0
  769. /package/dist/{plot.dzi-4OQSO7SY.js.map → plot.dzi-ZGLOVJJN.js.map} +0 -0
  770. /package/dist/{plot.ssgq-VZTTGECT.js.map → plot.ssgq-IHUILM43.js.map} +0 -0
  771. /package/dist/{plot.vaf2cov-ASEELRDV.js.map → plot.vaf2cov-ZYCQMD27.js.map} +0 -0
  772. /package/dist/{plot.wsi-MDWYLU4R.js.map → plot.wsi-3GISVBDH.js.map} +0 -0
  773. /package/dist/{polar-QSY6JG4P.js.map → polar-4AUAZHBV.js.map} +0 -0
  774. /package/dist/{polar2-FD6656VD.js.map → polar2-SRD4WWXU.js.map} +0 -0
  775. /package/dist/{profile.spec-V7EQBXT2.js.map → profile.spec-TOITKBBZ.js.map} +0 -0
  776. /package/dist/{profileBarchart-EIKHZAPD.js.map → profileBarchart-Z4SYIYBE.js.map} +0 -0
  777. /package/dist/{profileForms-NGFRXPFF.js.map → profileForms-RA7XQ2QT.js.map} +0 -0
  778. /package/dist/{profilePlot-2UFKJ2OC.js.map → profilePlot-4BM3XZVK.js.map} +0 -0
  779. /package/dist/{profileRadar-B2R7OV5F.js.map → profileRadar-EYBESEPI.js.map} +0 -0
  780. /package/dist/{profileRadarFacility-ILC7POCI.js.map → profileRadarFacility-FZYTFM26.js.map} +0 -0
  781. /package/dist/{proteomeAbundance-OF27N347.js.map → proteomeAbundance-65R6M4YQ.js.map} +0 -0
  782. /package/dist/{qualitative-CSUO2WG5.js.map → qualitative-E7WL6DN4.js.map} +0 -0
  783. /package/dist/{radar2-L2HGCUYR.js.map → radar2-I6FN5SUX.js.map} +0 -0
  784. /package/dist/{radarFacility2-HXUUTRYO.js.map → radarFacility2-GVK7PT3V.js.map} +0 -0
  785. /package/dist/{regression-Y4NYGZSA.js.map → regression-TIR5D354.js.map} +0 -0
  786. /package/dist/{regression.inputs-RWFIJLNF.js.map → regression.inputs-2AMJCJ3L.js.map} +0 -0
  787. /package/dist/{regression.inputs.term-QIU5SHTN.js.map → regression.inputs.term-D6D2QEUB.js.map} +0 -0
  788. /package/dist/{regression.inputs.values.table-FM6QTSEV.js.map → regression.inputs.values.table-M3IPLGDJ.js.map} +0 -0
  789. /package/dist/{regression.integration.spec-YRKKU7HL.js.map → regression.integration.spec-ROUSXLMH.js.map} +0 -0
  790. /package/dist/{regression.results-YUDCHUZJ.js.map → regression.results-YD5S74YS.js.map} +0 -0
  791. /package/dist/{regression.spec-G4GIIV32.js.map → regression.spec-4OXBBTNO.js.map} +0 -0
  792. /package/dist/{report-2N4FBR4Q.js.map → report-ETNALKTY.js.map} +0 -0
  793. /package/dist/{sampleScatter.spec-UIUYO4WR.js.map → sampleScatter.spec-LECMFMI2.js.map} +0 -0
  794. /package/dist/{sampleView-TOK5Y5KU.js.map → sampleView-B5TM7JOW.js.map} +0 -0
  795. /package/dist/{samplelst-YW5ZS3GJ.js.map → samplelst-GFQCG4SS.js.map} +0 -0
  796. /package/dist/{samplematrix-447BHSO7.js.map → samplematrix-OMTNWCJK.js.map} +0 -0
  797. /package/dist/{sc-O2PL3FL2.js.map → sc-MIEEZBWG.js.map} +0 -0
  798. /package/dist/{scatter-4DXHOWVY.js.map → scatter-ETOZ722F.js.map} +0 -0
  799. /package/dist/{scatter.integration.spec-ZPTM3AGQ.js.map → scatter.integration.spec-TS4PNRLX.js.map} +0 -0
  800. /package/dist/{selectGenomeWithTklst-3RLZFW62.js.map → selectGenomeWithTklst-Y5QIM2JB.js.map} +0 -0
  801. /package/dist/{singleCellCellType-3LQJXS7H.js.map → singleCellCellType-HOJHZF5W.js.map} +0 -0
  802. /package/dist/{singleCellCellType.unit.spec-UJM72SP4.js.map → singleCellCellType.unit.spec-MH5V3RPX.js.map} +0 -0
  803. /package/dist/{singleCellGeneExpression-JOWJWPIQ.js.map → singleCellGeneExpression-YVQ5TIKN.js.map} +0 -0
  804. /package/dist/{singleCellGeneExpression.unit.spec-VY5CGRZH.js.map → singleCellGeneExpression.unit.spec-BMFFT5HO.js.map} +0 -0
  805. /package/dist/{singleCellPlot-IVLVKOO6.js.map → singleCellPlot-3YFUYA2Y.js.map} +0 -0
  806. /package/dist/{singlecell-VJJZJZF7.js.map → singlecell-FK5JETW5.js.map} +0 -0
  807. /package/dist/{singlecell-VQJ2252L.js.map → singlecell-RL7V7DIC.js.map} +0 -0
  808. /package/dist/{snp-ALMKZKL2.js.map → snp-FT7HB3XN.js.map} +0 -0
  809. /package/dist/{snp.unit.spec-GJQBAHGQ.js.map → snp.unit.spec-CLYVYPPG.js.map} +0 -0
  810. /package/dist/{snplocus-WCNCMFWZ.js.map → snplocus-M5SEQGAC.js.map} +0 -0
  811. /package/dist/{spliceevent.a53ss.diagram-4Q4JF4RX.js.map → spliceevent.a53ss.diagram-EJ5CTRCZ.js.map} +0 -0
  812. /package/dist/{spliceevent.exonskip.diagram-IOYOKELT.js.map → spliceevent.exonskip.diagram-ETXMOHZ3.js.map} +0 -0
  813. /package/dist/{spliceevent.noeventdiagram-77ZCOHSF.js.map → spliceevent.noeventdiagram-S2O4ZM2Z.js.map} +0 -0
  814. /package/dist/{ssGSEA-QTXXIN4K.js.map → ssGSEA-6PMDQDTJ.js.map} +0 -0
  815. /package/dist/{ssGSEA.unit.spec-LQESATT3.js.map → ssGSEA.unit.spec-JD5T4R2N.js.map} +0 -0
  816. /package/dist/{summarizeCnvGeneexp-YKUQGDQF.js.map → summarizeCnvGeneexp-GCHNKTIU.js.map} +0 -0
  817. /package/dist/{summarizeGeneexpSurvival-ARGG5VDC.js.map → summarizeGeneexpSurvival-R2RYQZ3M.js.map} +0 -0
  818. /package/dist/{summarizeMutationCnv-FMZYT3EC.js.map → summarizeMutationCnv-LB2BIYRL.js.map} +0 -0
  819. /package/dist/{summarizeMutationDiagnosis-ZX7I46SC.js.map → summarizeMutationDiagnosis-3JUY75LM.js.map} +0 -0
  820. /package/dist/{summarizeMutationSurvival-RCFMTT43.js.map → summarizeMutationSurvival-VYLRWTCF.js.map} +0 -0
  821. /package/dist/{summary-QLL5YVI2.js.map → summary-2QQ72IEQ.js.map} +0 -0
  822. /package/dist/{summary.integration.spec-DHY6XCEJ.js.map → summary.integration.spec-XXU362UQ.js.map} +0 -0
  823. /package/dist/{summaryInput-ANCUQGIB.js.map → summaryInput-OZHZG3PV.js.map} +0 -0
  824. /package/dist/{sunburst-RDNFBOCK.js.map → sunburst-CMCJCANX.js.map} +0 -0
  825. /package/dist/{survival-BG7QV52L.js.map → survival-EBD4DHO7.js.map} +0 -0
  826. /package/dist/{survival-WSN36OQE.js.map → survival-ISLRRPKU.js.map} +0 -0
  827. /package/dist/{survival.integration.spec-37KAJ5IK.js.map → survival.integration.spec-FS7V4OXK.js.map} +0 -0
  828. /package/dist/{svgraph-A5WGHW4S.js.map → svgraph-KGLNUM7W.js.map} +0 -0
  829. /package/dist/{svmr-CYRHHWZF.js.map → svmr-NXZ5VLKH.js.map} +0 -0
  830. /package/dist/{table-VHO7E5PI.js.map → table-ISOQOI6C.js.map} +0 -0
  831. /package/dist/{termCollection-HSVSH7TJ.js.map → termCollection-7ZSU3I45.js.map} +0 -0
  832. /package/dist/{termCollection-E4Q6GLXN.js.map → termCollection-V2A5BDQB.js.map} +0 -0
  833. /package/dist/{termCollection.unit.spec-ZCE3TUMS.js.map → termCollection.unit.spec-6VLCJGOU.js.map} +0 -0
  834. /package/dist/{tk-GPRHDN4K.js.map → tk-6AB6XYIE.js.map} +0 -0
  835. /package/dist/{tp.ui-LTUA3FSL.js.map → tp.ui-2O4UW5N7.js.map} +0 -0
  836. /package/dist/{tvs.dt-G43PAAKD.js.map → tvs.dt-CY6TOQVB.js.map} +0 -0
  837. /package/dist/{tvs.dtcnv.categorical-UHDS2TGZ.js.map → tvs.dtcnv.categorical-AYQ432TW.js.map} +0 -0
  838. /package/dist/{tvs.dtcnv.continuous-ZNGYQKTD.js.map → tvs.dtcnv.continuous-XVDL6SG3.js.map} +0 -0
  839. /package/dist/{tvs.dtfusion-JBEEUDUS.js.map → tvs.dtfusion-V3AV7A6Q.js.map} +0 -0
  840. /package/dist/{tvs.dtsnvindel-XXN5Q7RN.js.map → tvs.dtsnvindel-XM3NXIT7.js.map} +0 -0
  841. /package/dist/{tvs.dtsv-MO6L7HHV.js.map → tvs.dtsv-Z2GYRINW.js.map} +0 -0
  842. /package/dist/{tvs.samplelst-HKY6UUJM.js.map → tvs.samplelst-C4FB63G7.js.map} +0 -0
  843. /package/dist/{tvs.termCollection-TY6FPL25.js.map → tvs.termCollection-VHTSC2ST.js.map} +0 -0
  844. /package/dist/{violin-YHE3WSGR.js.map → violin-KGGTUQFF.js.map} +0 -0
  845. /package/dist/{violin.integration.spec-F2UD7BHC.js.map → violin.integration.spec-5EW6PLJX.js.map} +0 -0
  846. /package/dist/{violin.interactivity-LVDTDEPQ.js.map → violin.interactivity-RI4RURGO.js.map} +0 -0
  847. /package/dist/{violin.renderer-IIEIUGRI.js.map → violin.renderer-EWU2IFZE.js.map} +0 -0
  848. /package/dist/{vocabulary-WQRYXBRO.js.map → vocabulary-VLIGC7OP.js.map} +0 -0
@@ -1,3235 +0,0 @@
1
- import {
2
- InvalidDataUI,
3
- configUiInit,
4
- fillbar,
5
- getMaxLabelWidth,
6
- getNormalRoot,
7
- renderTable,
8
- svgLegend,
9
- table2col
10
- } from "./chunk-YWUVCXFS.js";
11
- import "./chunk-HJ6L54YS.js";
12
- import "./chunk-3QBZ2Y77.js";
13
- import {
14
- Menu
15
- } from "./chunk-HYOEWQ5P.js";
16
- import "./chunk-FN5XPUPH.js";
17
- import "./chunk-G6O3URDN.js";
18
- import "./chunk-LSEFWW72.js";
19
- import {
20
- topBarInit
21
- } from "./chunk-KWM6B3NL.js";
22
- import "./chunk-UCLS2SVB.js";
23
- import {
24
- dofetch3
25
- } from "./chunk-6ZCHECOT.js";
26
- import {
27
- copyMerge,
28
- getCompInit,
29
- multiInit
30
- } from "./chunk-MVTCBVSX.js";
31
- import "./chunk-2K5DSRBJ.js";
32
- import "./chunk-X4NI4JLQ.js";
33
- import "./chunk-L4QG7XZE.js";
34
- import "./chunk-DQC5FFGV.js";
35
- import "./chunk-UWYCEYML.js";
36
- import "./chunk-7UHUOC6F.js";
37
- import "./chunk-ZYY54HBU.js";
38
- import "./chunk-EGWVYY7K.js";
39
- import {
40
- bplen,
41
- dtcnv,
42
- dtfusionrna,
43
- dtloh,
44
- dtsnvindel,
45
- dtsv,
46
- mclass
47
- } from "./chunk-AMYSEKPF.js";
48
- import "./chunk-TV74I3Y5.js";
49
- import {
50
- arc_default,
51
- line_default,
52
- pie_default,
53
- ribbon_default
54
- } from "./chunk-KSGA62R2.js";
55
- import "./chunk-LOZEKOES.js";
56
- import "./chunk-TOU7EVFQ.js";
57
- import {
58
- linear,
59
- ticks
60
- } from "./chunk-OAWQ6LOO.js";
61
- import "./chunk-KYBIQBXE.js";
62
- import {
63
- pointer_default,
64
- select_default
65
- } from "./chunk-I6Y4O3RR.js";
66
- import "./chunk-OMR2DT66.js";
67
- import "./chunk-HFNDKYVF.js";
68
-
69
- // plots/disco/arc/FullArcRenderer.ts
70
- var FullArcRenderer = class {
71
- constructor(radius, width, color) {
72
- this.radius = radius;
73
- this.width = width;
74
- this.color = color;
75
- }
76
- render(holder) {
77
- const donutGenerator = arc_default();
78
- const arc = {
79
- startAngle: 0,
80
- endAngle: Math.PI * 2,
81
- innerRadius: this.radius,
82
- outerRadius: this.radius + this.width,
83
- color: this.color,
84
- text: "No label"
85
- };
86
- const array = [];
87
- array.push(arc);
88
- const donutArc = holder.append("g");
89
- donutArc.selectAll("path").data(array).enter().append("path").attr("d", (d) => donutGenerator(d)).attr("fill", (d) => d.color);
90
- }
91
- };
92
-
93
- // plots/disco/menu/MenuProvider.ts
94
- var MenuProvider = class {
95
- static create() {
96
- const menu = new Menu({ padding: 5 });
97
- menu.d.style("border", "1px solid #FFF").style("position", "absolute").style("z-index", 1001);
98
- return menu;
99
- }
100
- };
101
-
102
- // plots/disco/fusion/FusionColorProvider.ts
103
- var FusionColorProvider = class {
104
- static getColor(chrA, chrB) {
105
- if (chrA != chrB) {
106
- return "#6A3D9A" /* Interchromosomal */.valueOf();
107
- } else {
108
- return "#1B9E77" /* Intrachromosomal */.valueOf();
109
- }
110
- }
111
- };
112
-
113
- // plots/disco/fusion/FusionRenderer.ts
114
- var FusionRenderer = class {
115
- constructor(genome) {
116
- this.genome = genome;
117
- }
118
- render(holder, fusions, opacity = 1) {
119
- let radius = 0;
120
- const fusionsWithTarget = fusions.filter((f) => f.target);
121
- if (fusionsWithTarget.length > 0) {
122
- radius = fusionsWithTarget[0].target.radius;
123
- const fullArcRenderer = new FullArcRenderer(radius, 2, "#6464641A");
124
- fullArcRenderer.render(holder);
125
- } else return;
126
- const ribbon = ribbon_default().radius(radius);
127
- const ribbons = holder.selectAll(".chord").data(fusions);
128
- const menu = MenuProvider.create();
129
- const createTooltip = this.createTooltip.bind(this);
130
- const genome = this.genome;
131
- ribbons.enter().append("path").attr("class", "chord").attr("d", ribbon).attr("fill", (fusion) => {
132
- return FusionColorProvider.getColor(
133
- fusion.source.positionInChromosome.chromosome,
134
- fusion.target.positionInChromosome.chromosome
135
- );
136
- }).style("opacity", opacity).each(function(d) {
137
- const path = select_default(this);
138
- const tip = MenuProvider.create();
139
- path.on("click", async function(event) {
140
- tip.clear().show(event.x, event.y);
141
- const div = tip.d.append("div");
142
- await makeSvgraph(d, div, genome);
143
- });
144
- }).on("mouseover", async function(mouseEvent, fusion) {
145
- const table = table2col({ holder: menu.d });
146
- createTooltip(table, fusion);
147
- menu.show(mouseEvent.x, mouseEvent.y);
148
- }).on("mouseout", () => {
149
- menu.clear();
150
- menu.hide();
151
- });
152
- }
153
- createTooltip(table, fusion) {
154
- {
155
- const [td1, td2] = table.addRow();
156
- td1.text("Data type");
157
- td2.append("span").style("margin-left", "5px").text("Fusion transcript");
158
- }
159
- {
160
- const positionInChromosomeSource = fusion.source.positionInChromosome;
161
- const positionInChromosomeTarget = fusion.target.positionInChromosome;
162
- const [td1, td2] = table.addRow();
163
- td1.text("Position");
164
- td2.append("span").style("margin-left", "5px").text(
165
- ` ${fusion.source.gene || ""} ${positionInChromosomeSource.chromosome}:${positionInChromosomeSource.position} ${fusion.source.strand === "+" ? "forward" : "reverse"} > ${fusion.target.gene || ""} ${positionInChromosomeTarget.chromosome}:${positionInChromosomeTarget.position} ${fusion.target.strand === "+" ? "forward" : "reverse"} `
166
- );
167
- }
168
- }
169
- };
170
- async function makeSvgraph(fusion, div, genome) {
171
- const wait = div.append("div").text("Loading...");
172
- const svpair = {
173
- a: {
174
- chr: fusion.source.positionInChromosome.chromosome,
175
- position: fusion.source.positionInChromosome.position,
176
- strand: fusion.source.strand
177
- },
178
- b: {
179
- chr: fusion.target.positionInChromosome.chromosome,
180
- position: fusion.target.positionInChromosome.position,
181
- strand: fusion.target.strand
182
- }
183
- };
184
- await getGm(svpair.a, genome.name, fusion.source.gene);
185
- await getGm(svpair.b, genome.name, fusion.target.gene);
186
- wait.remove();
187
- const _ = await import("./svgraph-A5WGHW4S.js");
188
- _.default({
189
- pairlst: [svpair],
190
- genome,
191
- holder: div
192
- });
193
- }
194
- async function getGm(p, genome, name) {
195
- const d = await dofetch3("isoformbycoord", {
196
- body: { genome, chr: p.chr, pos: p.position }
197
- });
198
- if (d.error) throw d.error;
199
- const u = d.lst.find((i) => i.isdefault && name === i.name) || d.lst[0];
200
- if (u) {
201
- p.name = u.name;
202
- p.gm = { isoform: u.isoform };
203
- }
204
- }
205
-
206
- // plots/disco/DiscoRenderer.ts
207
- var DiscoRenderer = class {
208
- constructor(renders, legendRenderer, genome) {
209
- this.renders = renders;
210
- this.legendRenderer = legendRenderer;
211
- this.fusionRenderer = new FusionRenderer(genome);
212
- }
213
- render(holder, viewModel, onCnvSourceSelect) {
214
- const svgDiv = holder.append("div").style("display", "inline-block").style("font-family", "Arial");
215
- const svg = svgDiv.append("svg").attr("id", "sjpp_disco_plot").attr("data-testid", "sjpp_disco_plot").attr("width", viewModel.width).attr("height", viewModel.height + viewModel.legendHeight);
216
- const mainG = svg.append("g").attr("class", "mainG").attr(
217
- "transform",
218
- `translate(${viewModel.settings.rings.labelLinesInnerRadius + viewModel.settings.rings.labelsToLinesDistance + 100},${viewModel.height / 2})`
219
- );
220
- for (const [ringType, renderer] of this.renders) {
221
- const elements = viewModel.getElements(ringType);
222
- const collisions = viewModel.getCollisions(ringType);
223
- renderer.render(mainG, elements, collisions);
224
- }
225
- this.fusionRenderer.render(mainG, viewModel.fusions, viewModel.settings.Disco.fusionOpacity);
226
- if (viewModel.settings.Disco.centerText) {
227
- const chrRingBbox = mainG.select('[data-testid="sjpp_chromosomes_arc_group"]').node().getBBox();
228
- const text = viewModel.settings.Disco.centerText.length > 20 ? viewModel.settings.Disco.centerText.slice(0, 20) + "..." : viewModel.settings.Disco.centerText;
229
- const textElem = mainG.append("text").attr("class", "sjpp-disco-center-text").text(text);
230
- const textBbox = textElem.node().getBBox();
231
- textElem.attr("transform", `translate(${chrRingBbox.x + chrRingBbox.width / 2 - textBbox.width / 2},0)`);
232
- }
233
- this.legendRenderer.render(
234
- mainG,
235
- viewModel.legend,
236
- -1 * (viewModel.settings.rings.labelLinesInnerRadius + viewModel.settings.rings.labelsToLinesDistance + 75),
237
- viewModel.width,
238
- viewModel.height / 2,
239
- viewModel,
240
- onCnvSourceSelect
241
- );
242
- }
243
- };
244
-
245
- // plots/disco/interactions/DiscoInteractions.ts
246
- var DiscoInteractions = class {
247
- constructor(discoApp) {
248
- this.discoApp = discoApp;
249
- this.downloadClickListener = (svg) => {
250
- const downloadImgName = this.discoApp.state.settings.downloadImgName || "disco.plot";
251
- const a = document.createElement("a");
252
- document.body.appendChild(a);
253
- a.addEventListener(
254
- "click",
255
- () => {
256
- const serializer = new XMLSerializer();
257
- const svg_blob = new Blob([serializer.serializeToString(svg)], {
258
- type: "image/svg+xml"
259
- });
260
- a.download = downloadImgName + ".svg";
261
- a.href = URL.createObjectURL(svg_blob);
262
- document.body.removeChild(a);
263
- },
264
- false
265
- );
266
- a.click();
267
- };
268
- this.geneClickListener = async (gene, mnames) => {
269
- const { filter, filter0 } = this.discoApp.app.getState().termfilter;
270
- const arg = {
271
- holder: this.discoApp.app.opts.holder,
272
- genome: this.discoApp.app.opts.state.args.genome,
273
- nobox: true,
274
- query: gene,
275
- tklst: [
276
- {
277
- type: "mds3",
278
- dslabel: this.discoApp.app.opts.state.vocab.dslabel,
279
- hlaachange: mnames.join(","),
280
- filter0,
281
- filterObj: getNormalRoot(filter)
282
- // must not pass filter as frozen. pass unfrozen, normalized copy so mds3 code will work
283
- }
284
- ]
285
- };
286
- const _ = await import("./block.init-NLCYAKV4.js");
287
- await _.default(arg);
288
- };
289
- this.colorScaleNumericInputsCallback = async (obj) => {
290
- const callAppDispatch = (settings) => {
291
- this.discoApp.app.dispatch({
292
- type: "plot_edit",
293
- id: this.discoApp.id,
294
- config: { settings: { Disco: Object.assign({ cnvCutoffMode: obj.cutoffMode }, settings) } }
295
- });
296
- };
297
- if (obj.cutoffMode == "auto") {
298
- if (obj.min == null || obj.max == null)
299
- throw new Error('Color scale must return min and max if cutoffMode "auto"');
300
- callAppDispatch({
301
- cnvCapping: this.discoApp.state.settings.cnv.capping,
302
- cnvPercentile: this.discoApp.state.settings.cnv.percentile
303
- });
304
- } else if (obj.cutoffMode == "fixed") {
305
- if (obj.min == null || obj.max == null)
306
- throw new Error('Color scale must return min and max if cutoffMode "fixed"');
307
- const diffValue = obj.max !== this.discoApp.state.settings.cnv.capping ? obj.max : Math.abs(obj.min);
308
- callAppDispatch({
309
- cnvCapping: diffValue
310
- });
311
- } else if (obj.cutoffMode == "percentile") callAppDispatch({ cnvPercentile: obj.percentile });
312
- else throw new Error("Unknown cutoff mode returned from dom/ColorScale");
313
- };
314
- this.onMutationWaterfallColorChange = (color) => {
315
- this.discoApp.app.dispatch({
316
- type: "plot_edit",
317
- id: this.discoApp.id,
318
- config: { settings: { Disco: { mutationWaterfallColor: color } } }
319
- });
320
- };
321
- }
322
- };
323
-
324
- // plots/disco/chromosome/Reference.ts
325
- var Reference = class {
326
- /**
327
- * Creates a Reference object that contains information about chromosomes.
328
- * @param settings State settings
329
- * @param chromosomes Chromosome order. This function formats into an obj with `chr` removed.
330
- * @param chromosomeOverride Obj of chromsome keys and sizes. Filtered to remove hidden chromosomes in settings.
331
- */
332
- constructor(settings, chromosomes, chromosomeOverride) {
333
- this.chromosomes = [];
334
- this.chromosomesOrder = [];
335
- this.keysArray = [];
336
- this.totalSizeArray = [];
337
- this.chrSizesArray = [];
338
- const chrSizes = chromosomeOverride || chromosomes;
339
- this.settings = settings;
340
- this.chromosomesOrder = [];
341
- let totalSize = 0;
342
- this.totalPadAngle = Object.keys(chrSizes).length * this.settings.padAngle;
343
- this.totalChromosomesAngle = 2 * Math.PI - this.totalPadAngle;
344
- for (const chr in chrSizes) {
345
- const key = chr.slice(0, 3) === "chr" ? chr.slice(3) : chr;
346
- this.chromosomesOrder.push(chr);
347
- this.keysArray.push(key);
348
- this.totalSizeArray.push(totalSize);
349
- this.chrSizesArray.push(chrSizes[chr]);
350
- totalSize += chrSizes[chr];
351
- }
352
- this.totalSize = totalSize;
353
- let lastAngle = 0;
354
- for (let i = 0; i < this.keysArray.length; i++) {
355
- const chromosomeAngle = this.totalChromosomesAngle * (this.chrSizesArray[i] / totalSize);
356
- const startAngle = i == 0 ? this.settings.padAngle / 2 : lastAngle + this.settings.padAngle;
357
- const endAngle = i == 0 ? this.settings.padAngle / 2 + chromosomeAngle : lastAngle + this.settings.padAngle + chromosomeAngle;
358
- const chromosome = {
359
- start: this.totalSizeArray[i],
360
- size: this.chrSizesArray[i],
361
- factor: 1,
362
- startAngle,
363
- endAngle,
364
- angle: (startAngle + endAngle) / 2,
365
- innerRadius: this.settings.rings.chromosomeInnerRadius,
366
- outerRadius: this.settings.rings.chromosomeInnerRadius + this.settings.rings.chromosomeWidth,
367
- color: "#AAA",
368
- text: this.keysArray[i]
369
- };
370
- this.chromosomes.push(chromosome);
371
- if (chromosome.endAngle != null) {
372
- lastAngle = chromosome.endAngle;
373
- }
374
- }
375
- }
376
- };
377
-
378
- // plots/disco/data/DataObjectMapper.ts
379
- var DataObjectMapper = class {
380
- constructor(sampleName, prioritizedGenes) {
381
- this.sampleName = sampleName;
382
- this.prioritizedGenes = prioritizedGenes;
383
- }
384
- map(dObject) {
385
- return {
386
- dt: dObject.dt,
387
- mname: dObject.mname,
388
- mClass: dObject.class,
389
- gene: dObject.gene,
390
- chr: dObject.chr,
391
- ref: dObject.ref,
392
- alt: dObject.alt,
393
- vafs: dObject.vafs,
394
- position: dObject.pos ? dObject.pos : dObject.position,
395
- poschr: dObject.poschr,
396
- posbins: dObject.posbins,
397
- poslabel: dObject.poslabel,
398
- sampleName: this.sampleName,
399
- ssm_id: dObject.ssm_id,
400
- start: dObject.start,
401
- stop: dObject.stop,
402
- value: dObject.value,
403
- segmean: dObject.segmean,
404
- isPrioritized: this.prioritizedGenes.some((cancerGene) => cancerGene == dObject.gene),
405
- chrA: dObject.chrA,
406
- chrB: dObject.chrB,
407
- geneA: dObject.geneA,
408
- geneB: dObject.geneB,
409
- posA: dObject.posA,
410
- posB: dObject.posB,
411
- strandA: dObject.strandA,
412
- strandB: dObject.strandB
413
- };
414
- }
415
- };
416
-
417
- // plots/disco/data/PercentileMapper.ts
418
- var PercentileMapper = class {
419
- map(data, percentile) {
420
- return this.calculatePercentileForPositivesAndNegatives(data, percentile);
421
- }
422
- calculatePercentileForPositivesAndNegatives(data, percentile) {
423
- const positives = data.filter((x) => x > 0);
424
- const negatives = data.filter((x) => x < 0).map((x) => -1 * x);
425
- let positive = NaN;
426
- let negative = NaN;
427
- if (positives.length > 0) {
428
- positive = this.calculatePercentile(positives, percentile);
429
- }
430
- if (negatives.length > 0) {
431
- negative = -1 * this.calculatePercentile(negatives, percentile);
432
- }
433
- return { positive, negative };
434
- }
435
- calculatePercentile(data, percentile) {
436
- if (data.length === 0) {
437
- throw new Error("Array must contain at least one element.");
438
- }
439
- const sortedValues = data.sort((a, b) => a - b);
440
- const index = percentile / 100 * (sortedValues.length - 1);
441
- const lowerIndex = Math.floor(index);
442
- const upperIndex = Math.ceil(index);
443
- const fraction = index - lowerIndex;
444
- if (lowerIndex === upperIndex) {
445
- return sortedValues[lowerIndex];
446
- }
447
- return sortedValues[lowerIndex] + fraction * (sortedValues[upperIndex] - sortedValues[lowerIndex]);
448
- }
449
- };
450
-
451
- // plots/disco/data/DataMapper.ts
452
- var DataMapper = class _DataMapper {
453
- constructor(settings, reference, sample, prioritizedGenes = []) {
454
- // remove fields and extract filters to seperate classes
455
- this.labelData = [];
456
- this.nonExonicSnvData = [];
457
- this.nonExonicInnerRadius = 0;
458
- this.snvRingDataMap = /* @__PURE__ */ new Map();
459
- this.snvInnerRadius = 0;
460
- this.snvData = [];
461
- this.bpx = 0;
462
- this.onePxArcAngle = 0;
463
- this.filteredSnvData = [];
464
- this.filteredSnvCountByChr = /* @__PURE__ */ new Map();
465
- this.lohData = [];
466
- this.lohInnerRadius = 0;
467
- this.cnvData = [];
468
- this.cnvInnerRadius = 0;
469
- this.fusionData = [];
470
- this.fusionRadius = 0;
471
- this.hasPrioritizedGenes = false;
472
- this.hasWaterfallEligibleChromosome = false;
473
- this.invalidEntries = [];
474
- this.cnvLossMaxValue = 0;
475
- this.cnvGainMaxValue = 0;
476
- this.percentilePositive = 0;
477
- this.percentileNegative = 0;
478
- this.cnvMaxPercentileAbs = 0;
479
- this.mutationWaterfallData = [];
480
- this.mutationWaterfallInnerRadius = 0;
481
- this.mutationWaterfallRangeMin = Infinity;
482
- this.mutationWaterfallRangeMax = -Infinity;
483
- this.lohMaxValue = void 0;
484
- this.lohMinValue = void 0;
485
- this.snvFilter = (data) => data.dt == dtsnvindel;
486
- this.fusionFilter = (data) => data.dt == dtfusionrna || data.dt == dtsv;
487
- this.cnvFilter = (data) => data.dt == dtcnv;
488
- this.lohFilter = (data) => data.dt == dtloh;
489
- this.compareData = (a, b) => {
490
- const chrDiff = this.reference.chromosomesOrder.indexOf(a.chr) - this.reference.chromosomesOrder.indexOf(b.chr);
491
- if (chrDiff != 0) {
492
- return chrDiff;
493
- }
494
- const aPos = a.pos ? a.pos : a.start;
495
- const bPos = b.pos ? b.pos : b.start;
496
- return aPos - bPos;
497
- };
498
- this.settings = settings;
499
- this.reference = reference;
500
- this.sample = sample;
501
- this.excludedChromosomes = this.settings.Disco.hiddenChromosomes;
502
- this.lastInnerRadious = this.settings.rings.chromosomeInnerRadius;
503
- this.gainCapped = this.settings.Disco.cnvCapping;
504
- this.lossCapped = -1 * this.settings.Disco.cnvCapping;
505
- this.nonExonicFilter = (data) => {
506
- if (prioritizedGenes.length > 0 && this.settings.Disco.prioritizeGeneLabelsByGeneSets) {
507
- return prioritizedGenes.includes(data.gene) && settings.rings.nonExonicFilterValues.includes(ViewModelMapper.snvClassLayer[data.mClass]);
508
- } else {
509
- return settings.rings.nonExonicFilterValues.includes(ViewModelMapper.snvClassLayer[data.mClass]);
510
- }
511
- };
512
- this.snvRingFilter = (data) => {
513
- if (prioritizedGenes.length > 0 && this.settings.Disco.prioritizeGeneLabelsByGeneSets) {
514
- return prioritizedGenes.includes(data.gene) && settings.rings.snvRingFilters.includes(ViewModelMapper.snvClassLayer[data.mClass]);
515
- } else {
516
- return settings.rings.snvRingFilters.includes(ViewModelMapper.snvClassLayer[data.mClass]);
517
- }
518
- };
519
- this.dataObjectMapper = new DataObjectMapper(sample, prioritizedGenes);
520
- }
521
- map(data) {
522
- const dataArray = [];
523
- this.filteredSnvCountByChr.clear();
524
- this.hasWaterfallEligibleChromosome = false;
525
- this.mutationWaterfallData = [];
526
- this.mutationWaterfallInnerRadius = 0;
527
- this.mutationWaterfallRangeMin = Infinity;
528
- this.mutationWaterfallRangeMax = -Infinity;
529
- data.forEach((dObject) => {
530
- const index = this.reference.chromosomesOrder.indexOf(dObject.chr);
531
- const indexA = this.reference.chromosomesOrder.indexOf(dObject.chrA);
532
- const indexB = this.reference.chromosomesOrder.indexOf(dObject.chrB);
533
- if (dObject.dt == dtsnvindel) {
534
- if (index != -1 && this.snvData.length < this.settings.snv.maxMutationCount) {
535
- const pos = dObject.pos ?? dObject.position;
536
- const chrSize = this.reference.chromosomes[index].size;
537
- if (Number.isFinite(pos) && pos >= 0 && pos <= chrSize) {
538
- this.addData(dObject, dataArray);
539
- } else {
540
- this.invalidEntries.push({ dataType: "SNV", reason: `Position ${pos} outside of ${dObject.chr}` });
541
- }
542
- } else if (index == -1) {
543
- if (!this.excludedChromosomes.includes(dObject.chr)) {
544
- this.invalidEntries.push({ dataType: "SNV", reason: `Unknown chr ${dObject.chr}` });
545
- }
546
- }
547
- } else if (dObject.dt == dtfusionrna || dObject.dt == dtsv) {
548
- if (indexA != -1 && indexB != -1) {
549
- const posA = dObject.posA;
550
- const posB = dObject.posB;
551
- const chrSizeA = this.reference.chromosomes[indexA].size;
552
- const chrSizeB = this.reference.chromosomes[indexB].size;
553
- if (Number.isFinite(posA) && Number.isFinite(posB) && posA >= 0 && posA <= chrSizeA && posB >= 0 && posB <= chrSizeB) {
554
- this.addData(dObject, dataArray);
555
- } else {
556
- const reasonParts = [];
557
- if (!(Number.isFinite(posA) && posA >= 0 && posA <= chrSizeA))
558
- reasonParts.push(`Position ${posA} outside of ${dObject.chrA}`);
559
- if (!(Number.isFinite(posB) && posB >= 0 && posB <= chrSizeB))
560
- reasonParts.push(`Position ${posB} outside of ${dObject.chrB}`);
561
- this.invalidEntries.push({ dataType: "Fusion", reason: reasonParts.join("; ") });
562
- }
563
- } else {
564
- const missing = [];
565
- if (indexA == -1 && !this.excludedChromosomes.includes(dObject.chrA)) missing.push(dObject.chrA);
566
- if (indexB == -1 && !this.excludedChromosomes.includes(dObject.chrB)) missing.push(dObject.chrB);
567
- if (missing.length) this.invalidEntries.push({ dataType: "Fusion", reason: "Unknown chr in fusion" });
568
- }
569
- } else if ([dtcnv, dtloh].includes(Number(dObject.dt))) {
570
- const idx = this.reference.chromosomesOrder.indexOf(dObject.chr);
571
- if (dObject.chr && idx != -1) {
572
- const chrSize = this.reference.chromosomes[idx].size;
573
- const start = dObject.start;
574
- const stop = dObject.stop;
575
- if (Number.isFinite(start) && Number.isFinite(stop) && start >= 0 && stop <= chrSize && start <= stop) {
576
- this.addData(dObject, dataArray);
577
- } else {
578
- this.invalidEntries.push({
579
- dataType: dObject.dt == dtcnv ? "CNV" : "LOH",
580
- reason: `Position ${start}-${stop} outside of ${dObject.chr}`
581
- });
582
- }
583
- } else {
584
- if (!this.excludedChromosomes.includes(dObject.chr)) {
585
- this.invalidEntries.push({
586
- dataType: dObject.dt == dtcnv ? "CNV" : "LOH",
587
- reason: `Unknown chr ${dObject.chr}`
588
- });
589
- }
590
- }
591
- } else {
592
- throw Error("Unknown mutation type!");
593
- }
594
- });
595
- const sortedData = dataArray.sort(this.compareData);
596
- if (this.settings.rings.nonExonicRingEnabled) {
597
- sortedData.forEach((data2) => {
598
- this.filterNonExonicSnvData(data2);
599
- });
600
- }
601
- if (this.nonExonicSnvData.length > 0) {
602
- this.nonExonicInnerRadius = this.lastInnerRadious - this.settings.rings.nonExonicRingWidth;
603
- this.lastInnerRadious = this.nonExonicInnerRadius;
604
- }
605
- sortedData.forEach((data2) => {
606
- this.filterSnvs(data2);
607
- });
608
- this.hasWaterfallEligibleChromosome = Array.from(this.filteredSnvCountByChr.values()).some((count) => count >= 2);
609
- if (this.settings.Disco.mutationWaterfallPlot && this.hasWaterfallEligibleChromosome) {
610
- this.prepareMutationWaterfallData();
611
- }
612
- sortedData.forEach((data2) => {
613
- this.filterLohs(data2);
614
- });
615
- if (this.lohData.length > 0) {
616
- this.lohInnerRadius = this.lastInnerRadious - this.settings.rings.lohRingWidth;
617
- this.lastInnerRadious = this.lohInnerRadius;
618
- }
619
- sortedData.forEach((data2) => {
620
- this.filterCnvs(data2);
621
- });
622
- if (this.cnvData.length > 0) {
623
- this.cnvInnerRadius = this.lastInnerRadious - this.settings.rings.cnvRingWidth;
624
- this.lastInnerRadious = this.cnvInnerRadius;
625
- this.cappedCnvMaxAbsValue = Math.min(
626
- this.settings.Disco.cnvCapping,
627
- Math.max(
628
- Math.abs(_DataMapper.capMaxValue(this.cnvLossMaxValue, this.gainCapped, this.lossCapped)),
629
- Math.abs(_DataMapper.capMaxValue(this.cnvGainMaxValue, this.gainCapped, this.lossCapped))
630
- )
631
- );
632
- const percentilePair = new PercentileMapper().map(
633
- this.cnvData.map((data2) => data2.value),
634
- this.settings.Disco.cnvPercentile
635
- );
636
- this.percentilePositive = _DataMapper.capMaxValue(percentilePair.positive, this.gainCapped, this.lossCapped);
637
- this.percentileNegative = _DataMapper.capMaxValue(percentilePair.negative, this.gainCapped, this.lossCapped);
638
- this.cnvMaxPercentileAbs = Math.min(
639
- this.settings.Disco.cnvCapping,
640
- Math.max(this.percentilePositive, Math.abs(this.percentileNegative))
641
- );
642
- }
643
- sortedData.forEach((data2) => {
644
- this.filterFusion(data2);
645
- });
646
- if (this.fusionData.length > 0) {
647
- this.fusionRadius = this.lastInnerRadious;
648
- }
649
- const dataHolder = {
650
- labelData: this.labelData,
651
- nonExonicSnvData: this.nonExonicSnvData,
652
- nonExonicInnerRadius: this.nonExonicInnerRadius,
653
- snvRingDataMap: this.snvRingDataMap,
654
- snvInnerRadius: this.snvInnerRadius,
655
- snvData: this.snvData,
656
- bpx: this.bpx,
657
- onePxArcAngle: this.onePxArcAngle,
658
- filteredSnvData: this.filteredSnvData,
659
- lohData: this.lohData,
660
- lohInnerRadius: this.lohInnerRadius,
661
- cnvData: this.cnvData,
662
- cnvInnerRadius: this.cnvInnerRadius,
663
- fusionData: this.fusionData,
664
- fusionRadius: this.fusionRadius,
665
- hasPrioritizedGenes: this.hasPrioritizedGenes,
666
- hasWaterfallEligibleChromosome: this.hasWaterfallEligibleChromosome,
667
- cnvGainMaxValue: this.cnvGainMaxValue,
668
- cnvLossMaxValue: this.cnvLossMaxValue,
669
- cappedCnvMaxAbsValue: this.cappedCnvMaxAbsValue,
670
- percentilePositive: this.percentilePositive,
671
- percentileNegative: this.percentileNegative,
672
- cnvMaxPercentileAbs: this.cnvMaxPercentileAbs,
673
- lohMaxValue: this.lohMaxValue,
674
- lohMinValue: this.lohMinValue,
675
- mutationWaterfallData: this.mutationWaterfallData,
676
- mutationWaterfallInnerRadius: this.mutationWaterfallInnerRadius,
677
- mutationWaterfallLogRange: this.mutationWaterfallData.length ? { min: this.mutationWaterfallRangeMin, max: this.mutationWaterfallRangeMax } : void 0,
678
- invalidDataInfo: {
679
- entries: this.invalidEntries,
680
- errorMsg: `Entries listed above were skipped due to invalid or unsupported chromosome information.`
681
- }
682
- };
683
- return dataHolder;
684
- }
685
- addData(dObject, dataArray) {
686
- const instance = this.dataObjectMapper.map(dObject);
687
- if (instance.isPrioritized) {
688
- this.hasPrioritizedGenes = true;
689
- }
690
- dataArray.push(instance);
691
- }
692
- filterNonExonicSnvData(data) {
693
- if (this.snvFilter(data)) {
694
- if (this.settings.rings.nonExonicRingEnabled && this.nonExonicFilter(data)) {
695
- this.nonExonicSnvData.push(data);
696
- }
697
- }
698
- }
699
- filterSnvs(data) {
700
- if (this.snvFilter(data)) {
701
- this.snvData.push(data);
702
- if (this.snvRingFilter(data)) {
703
- if (this.snvInnerRadius == 0) {
704
- this.snvInnerRadius = this.lastInnerRadious - this.settings.rings.snvRingWidth;
705
- this.lastInnerRadious = this.snvInnerRadius;
706
- this.bpx = Math.floor(this.reference.totalSize / (this.reference.totalChromosomesAngle * this.snvInnerRadius));
707
- this.onePxArcAngle = 1 / this.snvInnerRadius;
708
- }
709
- this.filteredSnvData.push(data);
710
- this.labelData.push(data);
711
- const currentCount = this.filteredSnvCountByChr.get(data.chr) || 0;
712
- this.filteredSnvCountByChr.set(data.chr, currentCount + 1);
713
- const arcAngle = this.calculateArcAngle(data);
714
- let dataArray = this.snvRingDataMap.get(arcAngle);
715
- if (!dataArray) {
716
- dataArray = new Array();
717
- }
718
- dataArray.push(data);
719
- this.snvRingDataMap.set(arcAngle, dataArray);
720
- }
721
- }
722
- }
723
- filterFusion(data) {
724
- if (this.fusionFilter(data)) {
725
- data.isPrioritized = true;
726
- this.fusionData.push(data);
727
- this.labelData.push(data);
728
- }
729
- }
730
- filterLohs(data) {
731
- if (this.lohFilter(data)) {
732
- if (this.lohMaxValue == void 0 || this.lohMaxValue < data.value) {
733
- this.lohMaxValue = data.segmean;
734
- }
735
- if (this.lohMinValue == void 0 || this.lohMinValue > data.value) {
736
- this.lohMinValue = data.segmean;
737
- }
738
- this.lohData.push(data);
739
- }
740
- }
741
- filterCnvs(data) {
742
- if (this.cnvFilter(data)) {
743
- if (!data.chr || this.reference.chromosomesOrder.indexOf(data.chr) == -1) {
744
- return;
745
- }
746
- if (this.cnvGainMaxValue == void 0 || this.cnvGainMaxValue < data.value) {
747
- this.cnvGainMaxValue = data.value;
748
- }
749
- if (this.cnvLossMaxValue == void 0 || this.cnvLossMaxValue > data.value) {
750
- this.cnvLossMaxValue = data.value;
751
- }
752
- this.cnvData.push(data);
753
- }
754
- }
755
- prepareMutationWaterfallData() {
756
- this.mutationWaterfallInnerRadius = this.lastInnerRadious - this.settings.rings.mutationWaterfallRingWidth;
757
- this.lastInnerRadious = this.mutationWaterfallInnerRadius;
758
- const groupedSnvs = /* @__PURE__ */ new Map();
759
- const firstMutationByChr = [];
760
- for (const snv of this.filteredSnvData) {
761
- const list = groupedSnvs.get(snv.chr) || [];
762
- list.push(snv);
763
- groupedSnvs.set(snv.chr, list);
764
- }
765
- for (const [, snvs] of groupedSnvs) {
766
- if (snvs.length < 2) continue;
767
- snvs.sort((a, b) => a.position - b.position);
768
- firstMutationByChr.push({
769
- chr: snvs[0].chr,
770
- position: snvs[0].position,
771
- logDistance: 0
772
- // placeholder updated after range computed
773
- });
774
- for (let i = 1; i < snvs.length; i++) {
775
- const prev = snvs[i - 1];
776
- const curr = snvs[i];
777
- const distance = Math.max(1, Math.abs(curr.position - prev.position));
778
- const logDistance = Math.log10(distance);
779
- this.mutationWaterfallData.push({
780
- chr: curr.chr,
781
- position: curr.position,
782
- logDistance
783
- });
784
- if (logDistance < this.mutationWaterfallRangeMin) {
785
- this.mutationWaterfallRangeMin = logDistance;
786
- }
787
- if (logDistance > this.mutationWaterfallRangeMax) {
788
- this.mutationWaterfallRangeMax = logDistance;
789
- }
790
- }
791
- }
792
- if (!this.mutationWaterfallData.length) {
793
- this.mutationWaterfallRangeMin = 0;
794
- this.mutationWaterfallRangeMax = 0;
795
- }
796
- const topLogDistance = this.mutationWaterfallRangeMax;
797
- for (const first of firstMutationByChr) {
798
- this.mutationWaterfallData.push({
799
- ...first,
800
- logDistance: topLogDistance
801
- });
802
- }
803
- }
804
- calculateArcAngle(data) {
805
- const currentChromosome = this.reference.chromosomes[this.reference.chromosomesOrder.findIndex((chromosomeOrder) => data.chr == chromosomeOrder)];
806
- const dataAnglePos = Math.floor(data.position / this.bpx);
807
- return currentChromosome.startAngle + dataAnglePos * this.onePxArcAngle;
808
- }
809
- static capMaxValue(value, gainCapped, lossCapped) {
810
- if (value && Math.sign(value) == 1) {
811
- return value > gainCapped ? gainCapped : value;
812
- }
813
- if (Math.sign(value) == -1) {
814
- return value < lossCapped ? lossCapped : value;
815
- }
816
- return 0;
817
- }
818
- static capMinValue(value, capMinValue = 1) {
819
- if (Math.sign(value) == 1) {
820
- return value > capMinValue ? value : capMinValue;
821
- }
822
- if (Math.sign(value) == -1) {
823
- return value < -1 * capMinValue ? value : -1 * capMinValue;
824
- }
825
- return 1;
826
- }
827
- };
828
-
829
- // plots/disco/legend/Legend.ts
830
- var Legend = class {
831
- constructor(snvTitle, cnvTitle, lohTitle, fusionTitle, cnvPercentile, cnvCutoffmode, snvClassMap, cnvClassMap, cnvRenderingType, fusionLegend, discoInteractions, lohLegend, mutationWaterfallLegend) {
832
- this.snvTitle = snvTitle;
833
- this.cnvTitle = cnvTitle;
834
- this.lohTitle = lohTitle;
835
- this.fusionTitle = fusionTitle;
836
- this.cnvPercentile = cnvPercentile;
837
- this.cnvCutoffMode = cnvCutoffmode;
838
- this.snvClassMap = snvClassMap;
839
- this.cnvClassMap = cnvClassMap;
840
- this.cnvRenderingType = cnvRenderingType;
841
- this.lohLegend = lohLegend;
842
- this.fusionLegend = fusionLegend;
843
- this.discoInteractions = discoInteractions;
844
- this.mutationWaterfallLegend = mutationWaterfallLegend;
845
- }
846
- legendCount() {
847
- return (this.snvClassMap.size > 0 ? 1 : 0) + (this.cnvClassMap.size > 0 ? 1 : 0) + (this.lohLegend ? 1 : 0) + (this.fusionLegend ? 1 : 0) + (this.mutationWaterfallLegend ? 1 : 0);
848
- }
849
- };
850
-
851
- // plots/disco/fusion/Fusion.ts
852
- var Fusion = class {
853
- constructor(source, target, genes, count, endpts) {
854
- this.source = source;
855
- this.target = target;
856
- this.genes = genes;
857
- this.count = count;
858
- this.endpts = endpts;
859
- }
860
- };
861
-
862
- // plots/disco/fusion/FusionSubgroup.ts
863
- var FusionSubgroup = class {
864
- constructor(startAngle, endAngle, radius, gene, value, genes, positionInChromosome, strand) {
865
- this.startAngle = startAngle;
866
- this.endAngle = endAngle;
867
- this.radius = radius;
868
- this.gene = gene;
869
- this.value = value;
870
- this.genes = genes;
871
- this.positionInChromosome = positionInChromosome;
872
- this.strand = strand;
873
- }
874
- };
875
-
876
- // plots/disco/fusion/FusionMapper.ts
877
- var FusionMapper = class {
878
- constructor(radius, sampleName, reference) {
879
- this.radius = radius;
880
- this.sampleName = sampleName;
881
- this.reference = reference;
882
- }
883
- map(fusionData) {
884
- const fusions = [];
885
- fusionData.forEach((data) => {
886
- const genes = /* @__PURE__ */ new Set();
887
- genes.add(data.geneA);
888
- genes.add(data.geneB);
889
- const startAngle = this.calculateStartAngle(data.chrA, data.posA);
890
- const endAngle = this.calculateEndAngle(data.chrA, data.posA);
891
- if (startAngle === null || endAngle === null) return;
892
- const source = new FusionSubgroup(
893
- startAngle,
894
- endAngle,
895
- this.radius,
896
- data.geneA,
897
- data.value,
898
- genes,
899
- {
900
- chromosome: data.chrA,
901
- position: data.posA
902
- },
903
- data.strandA
904
- );
905
- let target;
906
- if (data.chrB && data.posB) {
907
- const startAngle2 = this.calculateStartAngle(data.chrB, data.posB);
908
- const endAngle2 = this.calculateEndAngle(data.chrB, data.posB);
909
- if (startAngle2 === null || endAngle2 === null) return;
910
- target = new FusionSubgroup(
911
- startAngle2,
912
- endAngle2,
913
- this.radius,
914
- data.geneB,
915
- data.value,
916
- genes,
917
- {
918
- chromosome: data.chrB,
919
- position: data.posB
920
- },
921
- data.strandB
922
- );
923
- }
924
- const fusion = new Fusion(source, target, "genes", -1, "Endpoints");
925
- fusions.push(fusion);
926
- });
927
- return fusions;
928
- }
929
- calculateStartAngle(chr, pos) {
930
- const index = this.reference.chromosomesOrder.indexOf(chr);
931
- if (index === -1) return null;
932
- const chromosome = this.reference.chromosomes[index];
933
- return chromosome.startAngle + (chromosome.endAngle - chromosome.startAngle) * (Number(pos) / chromosome.size) - 0.01;
934
- }
935
- calculateEndAngle(chr, pos) {
936
- const index = this.reference.chromosomesOrder.indexOf(chr);
937
- if (index === -1) return null;
938
- const chromosome = this.reference.chromosomes[index];
939
- return 0.01 + chromosome.startAngle + (chromosome.endAngle - chromosome.startAngle) * (Number(pos) / chromosome.size);
940
- }
941
- };
942
-
943
- // plots/disco/loh/GradientColorProvider.ts
944
- var GradientColorProvider = class {
945
- static provide(value) {
946
- const clampedValue = Math.min(Math.max(value, 0), 1);
947
- const colorValue = Math.round(clampedValue * 255);
948
- return `rgb(${colorValue}, ${colorValue}, ${colorValue})`;
949
- }
950
- };
951
-
952
- // plots/disco/loh/LohLegend.ts
953
- var LohLegend = class {
954
- constructor(minValue, maxValue) {
955
- this.minValue = minValue;
956
- this.maxValue = maxValue;
957
- this.colorStartValue = GradientColorProvider.provide(minValue);
958
- this.colorEndValue = GradientColorProvider.provide(maxValue);
959
- }
960
- };
961
-
962
- // plots/disco/viewmodel/ViewModel.ts
963
- var ViewModel = class {
964
- constructor(settings, rings, legend, fusions, dataHolder, genesetName, snvDataLengthAll) {
965
- this.settings = settings;
966
- this.rings = rings;
967
- this.legend = legend;
968
- this.fusions = fusions;
969
- this.genesetName = genesetName;
970
- const tempHolder = select_default("body").append("div").style("position", "absolute").style("visibility", "hidden");
971
- const tempSvg = tempHolder.append("svg");
972
- const labels = rings.labelsRing?.elementsToDisplay?.map((l) => l.text) || [];
973
- const maxLabelSpace = getMaxLabelWidth(tempSvg, labels);
974
- tempHolder.remove();
975
- this.width = 2 * (this.settings.horizontalPadding + this.settings.rings.labelLinesInnerRadius + this.settings.rings.labelsToLinesDistance + maxLabelSpace);
976
- this.height = 2 * (this.settings.rings.labelLinesInnerRadius + this.settings.rings.labelsToLinesDistance + this.settings.verticalPadding + this.settings.label.fontSize * 2 + maxLabelSpace);
977
- this.legendHeight = this.calculateLegendHeight(legend);
978
- this.snvDataLength = dataHolder.snvData.length;
979
- this.filteredSnvDataLength = dataHolder.filteredSnvData.length;
980
- this.snvDataLengthAll = snvDataLengthAll;
981
- this.cnvMaxValue = dataHolder.cnvGainMaxValue;
982
- this.cnvMinValue = dataHolder.cnvLossMaxValue;
983
- this.cappedCnvMaxAbsValue = dataHolder.cappedCnvMaxAbsValue;
984
- this.negativePercentile = dataHolder.percentileNegative;
985
- this.positivePercentile = dataHolder.percentilePositive;
986
- this.invalidDataInfo = dataHolder.invalidDataInfo;
987
- this.canShowMutationWaterfallPlot = dataHolder.hasWaterfallEligibleChromosome;
988
- }
989
- getElements(ringType) {
990
- switch (ringType) {
991
- case 0 /* CHROMOSOME */:
992
- return this.rings.chromosomesRing ? this.rings.chromosomesRing.elements : [];
993
- case 1 /* LABEL */:
994
- return this.rings.labelsRing.elementsToDisplay;
995
- case 2 /* NONEXONICSNV */:
996
- return this.rings.nonExonicArcRing ? this.rings.nonExonicArcRing.elements : [];
997
- case 3 /* SNV */:
998
- return this.rings.snvArcRing ? this.rings.snvArcRing.elements : [];
999
- case 5 /* CNV */:
1000
- return this.rings.cnvArcRing ? this.rings.cnvArcRing.elements : [];
1001
- case 6 /* LOH */:
1002
- return this.rings.lohArcRing ? this.rings.lohArcRing.elements : [];
1003
- case 4 /* MUTATION_WATERFALL */:
1004
- return this.rings.mutationWaterfallRing ? this.rings.mutationWaterfallRing.elements : [];
1005
- default:
1006
- throw new Error(`ringType ${ringType} not defined`);
1007
- }
1008
- }
1009
- getCollisions(ringType) {
1010
- if (ringType == 1 /* LABEL */) {
1011
- return this.rings.labelsRing.collisions;
1012
- } else {
1013
- return void 0;
1014
- }
1015
- }
1016
- calculateLegendHeight(legend) {
1017
- const rawHeight = this.settings.legend.rowHeight;
1018
- return rawHeight * legend.legendCount();
1019
- }
1020
- };
1021
-
1022
- // plots/disco/ring/Ring.ts
1023
- var Ring = class {
1024
- constructor(innerRadius, width, elements) {
1025
- this.innerRadius = innerRadius;
1026
- this.outerRadius = innerRadius + width;
1027
- this.width = width;
1028
- this.elements = elements;
1029
- }
1030
- };
1031
-
1032
- // plots/disco/label/MLabel.ts
1033
- var MLabel = class _MLabel {
1034
- /**
1035
- * The Singleton's constructor should always be private to prevent direct
1036
- * construction calls with the `new` operator.
1037
- */
1038
- constructor() {
1039
- const mlabel = {};
1040
- for (const key in mclass) {
1041
- mlabel[mclass[key].label] = mclass[key];
1042
- mlabel[key] = mclass[key];
1043
- }
1044
- this.mlabel = mlabel;
1045
- }
1046
- /**
1047
- * The static method that controls the access to the singleton instance.
1048
- *
1049
- * This implementation let you subclass the Singleton class while keeping
1050
- * just one instance of each subclass around.
1051
- */
1052
- static getInstance() {
1053
- if (!_MLabel.instance) {
1054
- _MLabel.instance = new _MLabel();
1055
- }
1056
- return _MLabel.instance;
1057
- }
1058
- };
1059
-
1060
- // plots/disco/snv/SnvLegendElement.ts
1061
- var SnvLegendElement = class {
1062
- constructor(snvType, color, count) {
1063
- this.snvType = snvType;
1064
- this.color = color;
1065
- this.count = count;
1066
- }
1067
- };
1068
-
1069
- // plots/disco/snv/SnvArcsMapper.ts
1070
- var SnvArcsMapper = class {
1071
- constructor(svnInnerRadius, svnWidth, sampleName, reference) {
1072
- this.snvClassMap = /* @__PURE__ */ new Map();
1073
- this.svnInnerRadius = svnInnerRadius;
1074
- this.svnWidth = svnWidth;
1075
- this.sampleName = sampleName;
1076
- this.reference = reference;
1077
- this.bpx = Math.floor(this.reference.totalSize / (this.reference.totalChromosomesAngle * svnInnerRadius));
1078
- this.onePxArcAngle = 1 / svnInnerRadius;
1079
- }
1080
- map(exonicSnvDataMap) {
1081
- const snvArray = [];
1082
- for (const angle of exonicSnvDataMap.keys()) {
1083
- const array = exonicSnvDataMap.get(angle);
1084
- if (array) {
1085
- const arraySize = array.length;
1086
- for (let i = 0; i < array.length; i++) {
1087
- const data = array[i];
1088
- const snvLegendElement = this.snvClassMap.get(data.mClass);
1089
- if (snvLegendElement) {
1090
- this.snvClassMap.set(data.mClass, this.createSnvLegend(data.mClass, ++snvLegendElement.count));
1091
- } else {
1092
- this.snvClassMap.set(data.mClass, this.createSnvLegend(data.mClass, 1));
1093
- }
1094
- const startAngle = angle;
1095
- const endAngle = angle + this.onePxArcAngle;
1096
- const mLabel = MLabel.getInstance().mlabel ? MLabel.getInstance().mlabel[data.mClass] : void 0;
1097
- const arc = {
1098
- startAngle,
1099
- endAngle,
1100
- innerRadius: this.svnInnerRadius + i * this.svnWidth / arraySize,
1101
- outerRadius: this.svnInnerRadius + (i + 1) * this.svnWidth / arraySize,
1102
- color: mLabel.color,
1103
- text: data.gene,
1104
- dataClass: mLabel.label,
1105
- mname: data.mname,
1106
- chr: data.chr,
1107
- pos: data.position,
1108
- vafs: data.vafs,
1109
- sampleName: [data.sampleName]
1110
- };
1111
- snvArray.push(arc);
1112
- }
1113
- }
1114
- }
1115
- return snvArray;
1116
- }
1117
- createSnvLegend(dataClass, count) {
1118
- const mClass = MLabel.getInstance().mlabel[dataClass];
1119
- return new SnvLegendElement(mClass.label, mClass.color, count);
1120
- }
1121
- };
1122
-
1123
- // plots/disco/cnv/CnvLegend.ts
1124
- var CnvLegend = class {
1125
- constructor(text, cnvType, color, value) {
1126
- this.text = text;
1127
- this.cnvType = cnvType;
1128
- this.color = color;
1129
- this.value = value;
1130
- }
1131
- };
1132
-
1133
- // plots/disco/cnv/CnvColorProvider.ts
1134
- var CnvColorProvider = class {
1135
- static getColor(value, settings, cnvMaxPercentileAbs = 0) {
1136
- const cnv = settings.cnv;
1137
- const gainCapped = settings.Disco.cnvRenderingType == "heatmap" /* heatmap */ ? settings.Disco.cnvCapping : cnvMaxPercentileAbs;
1138
- const lossCapped = settings.Disco.cnvRenderingType == "heatmap" /* heatmap */ ? -1 * settings.Disco.cnvCapping : -1 * cnvMaxPercentileAbs;
1139
- if (value < lossCapped) {
1140
- return cnv.cappedLossColor;
1141
- } else if (value >= lossCapped && value <= 0) {
1142
- return cnv.lossColor;
1143
- } else if (value > 0 && value <= gainCapped) {
1144
- return cnv.ampColor;
1145
- } else {
1146
- return cnv.cappedAmpColor;
1147
- }
1148
- }
1149
- };
1150
-
1151
- // plots/disco/cnv/CnvArcsMapper.ts
1152
- var CnvArcsMapper = class {
1153
- constructor(cnvInnerRadius, cnvWidth, settings, sampleName, reference, cnvMaxValue = 0, cnvMinValue = 0, cnvMaxAbsValue = 0, cnvAbsPercentile = 0, cnvUnit = "", cnvRenderingType) {
1154
- this.cnvClassMap = /* @__PURE__ */ new Map();
1155
- this.cnvInnerRadius = cnvInnerRadius;
1156
- this.cnvWidth = cnvWidth;
1157
- this.settings = settings;
1158
- this.sampleName = sampleName;
1159
- this.reference = reference;
1160
- this.cnvMaxValue = cnvMaxValue;
1161
- this.cnvMinValue = cnvMinValue;
1162
- this.cnvMaxAbsValue = cnvMaxAbsValue;
1163
- this.cnvAbsPercentile = cnvAbsPercentile;
1164
- this.cnvUnit = cnvUnit;
1165
- this.cnvRenderingType = cnvRenderingType;
1166
- this.gainCapped = Math.min(cnvAbsPercentile, this.settings.Disco.cnvCapping);
1167
- this.lossCapped = -1 * Math.min(cnvAbsPercentile, this.settings.Disco.cnvCapping);
1168
- this.lossOnly = cnvMaxValue <= 0;
1169
- this.gainOnly = cnvMinValue >= 0;
1170
- this.onePxArcAngle = 1 / this.cnvInnerRadius;
1171
- const gain = new CnvLegend(
1172
- "Max",
1173
- cnvMaxValue > 0 ? 1 /* Gain */ : 0 /* Loss */,
1174
- this.getColor(cnvMaxValue),
1175
- cnvMaxValue
1176
- );
1177
- const loss = new CnvLegend(
1178
- "Min",
1179
- cnvMinValue > 0 ? 1 /* Gain */ : 0 /* Loss */,
1180
- this.getColor(cnvMinValue),
1181
- cnvMinValue
1182
- );
1183
- const cap = new CnvLegend(
1184
- "Capping",
1185
- 0 /* Loss */,
1186
- this.getColor(cnvMinValue > 0 ? cnvMinValue : cnvMaxValue),
1187
- this.settings.Disco.cnvCapping
1188
- );
1189
- this.cnvClassMap.set(1 /* Gain */, gain);
1190
- this.cnvClassMap.set(0 /* Loss */, loss);
1191
- this.cnvClassMap.set(2 /* Cap */, cap);
1192
- }
1193
- map(arcData) {
1194
- const arcs = [];
1195
- arcData.forEach((data) => {
1196
- let startAngle = this.calculateStartAngle(data);
1197
- let endAngle = this.calculateEndAngle(data);
1198
- if (startAngle === null || endAngle === null) return;
1199
- if (endAngle - startAngle < this.onePxArcAngle) {
1200
- const restAngle = this.onePxArcAngle - (endAngle - startAngle);
1201
- startAngle = startAngle - restAngle / 2;
1202
- endAngle = startAngle + restAngle / 2;
1203
- }
1204
- const innerRadius = this.calculateInnerRadius(data);
1205
- const outerRadius = this.calculateOuterRadius(data);
1206
- const color = this.getColor(data.value);
1207
- const arc = {
1208
- startAngle,
1209
- endAngle,
1210
- innerRadius,
1211
- outerRadius,
1212
- color,
1213
- text: data.gene,
1214
- chr: data.chr,
1215
- start: data.start,
1216
- stop: data.stop,
1217
- value: data.value,
1218
- unit: this.cnvUnit,
1219
- sampleName: [this.sampleName]
1220
- };
1221
- arcs.push(arc);
1222
- });
1223
- return arcs;
1224
- }
1225
- calculateStartAngle(data) {
1226
- const index = this.reference.chromosomesOrder.indexOf(data.chr);
1227
- if (index == -1) return null;
1228
- const chromosome = this.reference.chromosomes[index];
1229
- return chromosome.startAngle + (chromosome.endAngle - chromosome.startAngle) * (Number(data.start) / chromosome.size);
1230
- }
1231
- calculateEndAngle(data) {
1232
- const index = this.reference.chromosomesOrder.indexOf(data.chr);
1233
- const chromosome = this.reference.chromosomes[index];
1234
- return chromosome.startAngle + (chromosome.endAngle - chromosome.startAngle) * (Number(data.stop) / chromosome.size);
1235
- }
1236
- getColor(value) {
1237
- return CnvColorProvider.getColor(value, this.settings, this.cnvAbsPercentile);
1238
- }
1239
- calculateInnerRadius(data) {
1240
- if (this.cnvRenderingType == "heatmap" /* heatmap */) {
1241
- return this.cnvInnerRadius;
1242
- }
1243
- if (this.gainOnly) {
1244
- return this.cnvInnerRadius;
1245
- }
1246
- if (this.lossOnly) {
1247
- const outerRadius = this.cnvInnerRadius + this.cnvWidth;
1248
- return outerRadius + DataMapper.capMinValue(
1249
- this.cnvWidth * DataMapper.capMaxValue(data.value, this.gainCapped, this.lossCapped) / this.cnvAbsPercentile
1250
- );
1251
- }
1252
- const centerRadius = this.cnvInnerRadius + this.cnvWidth / 2;
1253
- if (Math.sign(data.value) == 1) {
1254
- return centerRadius;
1255
- }
1256
- if (Math.sign(data.value) == -1) {
1257
- return centerRadius + DataMapper.capMinValue(
1258
- DataMapper.capMaxValue(data.value, this.gainCapped, this.lossCapped) / this.cnvAbsPercentile * (this.cnvWidth / 2)
1259
- );
1260
- }
1261
- return 1;
1262
- }
1263
- calculateOuterRadius(data) {
1264
- const maxOuterRadius = this.cnvInnerRadius + this.cnvWidth;
1265
- if (this.cnvRenderingType == "heatmap" /* heatmap */) {
1266
- return maxOuterRadius;
1267
- }
1268
- if (this.gainOnly) {
1269
- return this.cnvInnerRadius + DataMapper.capMinValue(
1270
- this.cnvWidth * DataMapper.capMaxValue(data.value, this.gainCapped, this.lossCapped) / this.cnvAbsPercentile
1271
- );
1272
- }
1273
- if (this.lossOnly) {
1274
- return maxOuterRadius;
1275
- }
1276
- const centerRadius = this.cnvInnerRadius + this.cnvWidth / 2;
1277
- if (Math.sign(data.value) == 1) {
1278
- return centerRadius + DataMapper.capMinValue(
1279
- DataMapper.capMaxValue(data.value, this.gainCapped, this.lossCapped) / this.cnvMaxAbsValue * (this.cnvWidth / 2)
1280
- );
1281
- }
1282
- if (Math.sign(data.value) == -1) {
1283
- return centerRadius;
1284
- }
1285
- return 1;
1286
- }
1287
- };
1288
-
1289
- // plots/disco/label/Line.ts
1290
- var Line = class {
1291
- constructor(points, color) {
1292
- this.points = new Array();
1293
- this.points = points;
1294
- this.color = color;
1295
- }
1296
- };
1297
-
1298
- // plots/disco/label/LabelFactory.ts
1299
- var LabelFactory = class {
1300
- static createLabel(startAngle, endAngle, innerRadius, outerRadius, value, gene, color, dataClass, chr, position, isPrioritized = false, labelsToLinesGap, mutationTooltip, fusionTooltip) {
1301
- const angle = (startAngle + endAngle) / 2;
1302
- const ccAngle = angle - Math.PI / 2;
1303
- const transform = `rotate(${angle * 180 / Math.PI - 90}) translate(${outerRadius})${angle > Math.PI ? "rotate(180)" : ""}`;
1304
- const textAnchor = angle > Math.PI ? "end" : "";
1305
- const r0 = innerRadius;
1306
- const r1 = outerRadius - labelsToLinesGap;
1307
- const points = [];
1308
- const point0 = {
1309
- x: r0 * Math.cos(ccAngle),
1310
- y: r0 * Math.sin(ccAngle)
1311
- };
1312
- const point1 = {
1313
- x: r1 * Math.cos(ccAngle),
1314
- y: r1 * Math.sin(ccAngle)
1315
- };
1316
- points.push(point0);
1317
- points.push(point1);
1318
- const line = new Line(points, color);
1319
- const label = {
1320
- startAngle,
1321
- endAngle,
1322
- innerRadius,
1323
- outerRadius,
1324
- angle,
1325
- value,
1326
- text: gene,
1327
- color,
1328
- transform,
1329
- textAnchor,
1330
- ccAngle,
1331
- line,
1332
- isPrioritized,
1333
- start: position,
1334
- stop: position,
1335
- chr,
1336
- mutationsTooltip: mutationTooltip ? [mutationTooltip] : void 0,
1337
- fusionTooltip: fusionTooltip ? [fusionTooltip] : void 0
1338
- };
1339
- return label;
1340
- }
1341
- static createMovedLabel(element, overlap) {
1342
- const startAngle = element.startAngle + overlap;
1343
- const endAngle = element.endAngle + overlap;
1344
- const angle = (startAngle + endAngle) / 2;
1345
- const ccAngle = angle - Math.PI / 2;
1346
- const r0 = element.innerRadius;
1347
- const r1 = element.outerRadius - 2;
1348
- const dr = (r1 - r0) / 3;
1349
- const cos0 = Math.cos(element.ccAngle);
1350
- const sin0 = Math.sin(element.ccAngle);
1351
- const cos1 = Math.cos(element.ccAngle + overlap);
1352
- const sin1 = Math.sin(element.ccAngle + overlap);
1353
- const points = [];
1354
- const point0 = {
1355
- x: r0 * cos0,
1356
- y: r0 * sin0
1357
- };
1358
- const point1 = {
1359
- x: (r0 + dr) * cos0,
1360
- y: (r0 + dr) * sin0
1361
- };
1362
- const point2 = {
1363
- x: (r0 + 2 * dr) * cos1,
1364
- y: (r0 + 2 * dr) * sin1
1365
- };
1366
- const point3 = {
1367
- x: (r0 + 3 * dr) * cos1,
1368
- y: (r0 + 3 * dr) * sin1
1369
- };
1370
- points.push(point0);
1371
- points.push(point1);
1372
- points.push(point2);
1373
- points.push(point3);
1374
- const line = new Line(points, element.color);
1375
- const transform = "rotate(" + (angle * 180 / Math.PI - 90) + ")translate(" + element.outerRadius + ")" + (angle > Math.PI ? "rotate(180)" : "");
1376
- const textAnchor = angle > Math.PI ? "end" : "";
1377
- const color = element.mutationsTooltip ? element.mutationsTooltip[0].color : element.fusionTooltip ? element.fusionTooltip[0].color : void 0;
1378
- const label = {
1379
- startAngle,
1380
- endAngle,
1381
- innerRadius: element.innerRadius,
1382
- outerRadius: element.outerRadius,
1383
- angle,
1384
- value: element.value,
1385
- text: element.text,
1386
- transform,
1387
- textAnchor,
1388
- ccAngle,
1389
- color,
1390
- line,
1391
- isPrioritized: element.isPrioritized,
1392
- start: element.start,
1393
- stop: element.stop,
1394
- chr: element.chr,
1395
- mutationsTooltip: element.mutationsTooltip,
1396
- fusionTooltip: element.fusionTooltip
1397
- };
1398
- return label;
1399
- }
1400
- };
1401
-
1402
- // plots/disco/label/LabelsMapper.ts
1403
- var LabelsMapper = class {
1404
- constructor(settings, sampleName, reference, cnvMaxPercentileAbs = 0) {
1405
- this.labelMap = /* @__PURE__ */ new Map();
1406
- this.settings = settings;
1407
- this.sampleName = sampleName;
1408
- this.reference = reference;
1409
- this.cnvMaxPercentileAbs = cnvMaxPercentileAbs;
1410
- }
1411
- map(data, cnvData = []) {
1412
- const innerRadius = this.settings.rings.labelLinesInnerRadius;
1413
- const outerRadius = innerRadius + this.settings.rings.labelsToLinesDistance;
1414
- data.forEach((data2) => {
1415
- if (data2.dt == dtsnvindel) {
1416
- const startAngle = this.calculateStartAngle(data2.chr, data2.position);
1417
- const endAngle = this.calculateEndAngle(data2.chr, data2.position);
1418
- if (startAngle === null || endAngle === null) return;
1419
- const mLabel = MLabel.getInstance().mlabel ? MLabel.getInstance().mlabel[data2.mClass] : void 0;
1420
- this.addLabelOrMutation(
1421
- data2,
1422
- data2.gene,
1423
- data2.mname,
1424
- startAngle,
1425
- endAngle,
1426
- innerRadius,
1427
- outerRadius,
1428
- mLabel.color,
1429
- mLabel.label
1430
- );
1431
- }
1432
- if (data2.dt == dtfusionrna) {
1433
- const color = FusionColorProvider.getColor(data2.chrA, data2.chrB);
1434
- if (data2.geneA) {
1435
- const startAngleSource = this.calculateStartAngle(data2.chrA, data2.posA);
1436
- const endAngleSource = this.calculateEndAngle(data2.chrA, data2.posA);
1437
- if (startAngleSource === null || endAngleSource === null) return;
1438
- this.addLabelOrFusion(
1439
- data2,
1440
- data2.geneA,
1441
- data2.posA,
1442
- startAngleSource,
1443
- endAngleSource,
1444
- innerRadius,
1445
- outerRadius,
1446
- color
1447
- );
1448
- }
1449
- if (data2.geneB && data2.geneA != data2.geneB) {
1450
- const startAngleTarget = this.calculateStartAngle(data2.chrB, data2.posB);
1451
- const endAngleTarget = this.calculateEndAngle(data2.chrB, data2.posB);
1452
- if (startAngleTarget == null || endAngleTarget == null) return;
1453
- this.addLabelOrFusion(
1454
- data2,
1455
- data2.geneB,
1456
- data2.posB,
1457
- startAngleTarget,
1458
- endAngleTarget,
1459
- innerRadius,
1460
- outerRadius,
1461
- color
1462
- );
1463
- }
1464
- }
1465
- });
1466
- const labelsArray = Array.from(this.labelMap.values());
1467
- labelsArray.forEach((label) => {
1468
- cnvData.forEach((cnv) => {
1469
- if (label.stop >= cnv.start && cnv.stop >= label.start && label.chr == cnv.chr) {
1470
- const mutation = {
1471
- value: cnv.value,
1472
- color: CnvColorProvider.getColor(cnv.value, this.settings, this.cnvMaxPercentileAbs),
1473
- chr: cnv.chr,
1474
- start: cnv.start,
1475
- stop: cnv.stop
1476
- };
1477
- if (label.cnvTooltip) {
1478
- label.cnvTooltip.push(mutation);
1479
- } else {
1480
- label.cnvTooltip = [];
1481
- label.cnvTooltip.push(mutation);
1482
- }
1483
- }
1484
- });
1485
- });
1486
- return Array.from(this.labelMap.values());
1487
- }
1488
- addLabelOrMutation(data, gene, mname, startAngle, endAngle, innerRadius, outerRadius, color, dataClass) {
1489
- const label = this.labelMap.get(gene);
1490
- const mutation = {
1491
- mname,
1492
- color,
1493
- dataClass,
1494
- chr: data.chr,
1495
- position: data.position,
1496
- vafs: data.vafs
1497
- };
1498
- if (!label) {
1499
- this.labelMap.set(
1500
- gene,
1501
- LabelFactory.createLabel(
1502
- startAngle,
1503
- endAngle,
1504
- innerRadius,
1505
- outerRadius,
1506
- data.value,
1507
- gene,
1508
- color,
1509
- dataClass,
1510
- data.chr,
1511
- data.position,
1512
- data.isPrioritized,
1513
- this.settings.rings.labelsToLinesGap,
1514
- mutation
1515
- )
1516
- );
1517
- } else {
1518
- if (label.mutationsTooltip) {
1519
- label.start = Math.min(label.start, data.position);
1520
- label.stop = Math.max(label.stop, data.position);
1521
- label.mutationsTooltip.push(mutation);
1522
- } else {
1523
- label.mutationsTooltip = [];
1524
- label.start = Math.min(label.start, data.position);
1525
- label.stop = Math.max(label.stop, data.position);
1526
- label.mutationsTooltip.push(mutation);
1527
- }
1528
- }
1529
- }
1530
- addLabelOrFusion(data, gene, position, startAngle, endAngle, innerRadius, outerRadius, color) {
1531
- const label = this.labelMap.get(gene);
1532
- const fusionTooltip = {
1533
- color,
1534
- chrA: data.chrA,
1535
- chrB: data.chrB,
1536
- posA: data.posA,
1537
- posB: data.posB,
1538
- geneA: data.geneA,
1539
- geneB: data.geneB,
1540
- strandA: data.strandA,
1541
- strandB: data.strandB
1542
- };
1543
- if (!label) {
1544
- this.labelMap.set(
1545
- gene,
1546
- LabelFactory.createLabel(
1547
- startAngle,
1548
- endAngle,
1549
- innerRadius,
1550
- outerRadius,
1551
- data.value,
1552
- gene,
1553
- color,
1554
- "Fusion transcript",
1555
- data.chr,
1556
- data.position,
1557
- data.isPrioritized,
1558
- this.settings.rings.labelsToLinesGap,
1559
- void 0,
1560
- fusionTooltip
1561
- )
1562
- );
1563
- } else {
1564
- if (label.fusionTooltip) {
1565
- label.start = Math.min(label.start, position);
1566
- label.stop = Math.max(label.stop, position);
1567
- label.fusionTooltip.push(fusionTooltip);
1568
- } else {
1569
- label.fusionTooltip = [];
1570
- label.start = Math.min(label.start, position);
1571
- label.stop = Math.max(label.stop, position);
1572
- label.fusionTooltip.push(fusionTooltip);
1573
- }
1574
- }
1575
- }
1576
- calculateStartAngle(chr, position) {
1577
- const index = this.reference.chromosomesOrder.findIndex((element) => element == chr);
1578
- if (index === -1) return null;
1579
- const chromosome = this.reference.chromosomes[index];
1580
- return chromosome.startAngle + (chromosome.endAngle - chromosome.startAngle) * (Number(position) / chromosome.size);
1581
- }
1582
- calculateEndAngle(chr, position) {
1583
- const index = this.reference.chromosomesOrder.findIndex((element) => element == chr);
1584
- if (index === -1) return null;
1585
- const chromosome = this.reference.chromosomes[index];
1586
- return chromosome.startAngle + (chromosome.endAngle - chromosome.startAngle) * (Number(position) / chromosome.size);
1587
- }
1588
- };
1589
-
1590
- // plots/disco/label/Labels.ts
1591
- var Labels = class extends Ring {
1592
- constructor(settings, elements, hasPrioritizedGenes) {
1593
- super(
1594
- settings.rings.labelLinesInnerRadius,
1595
- settings.rings.labelsToLinesDistance,
1596
- elements.sort((a, b) => {
1597
- return a.startAngle < b.startAngle ? -1 : a.startAngle > b.startAngle ? 1 : 0;
1598
- })
1599
- );
1600
- this.elementsToDisplay = [];
1601
- this.settings = settings;
1602
- this.hasPrioritizedGenes = hasPrioritizedGenes;
1603
- const circumference = 2 * Math.PI * (settings.rings.labelLinesInnerRadius + settings.rings.labelsToLinesDistance);
1604
- this.overlapAngle = this.settings.label.overlapAngleFactor * this.settings.label.fontSize / circumference;
1605
- this.calculateCollisions();
1606
- }
1607
- calculateCollisions() {
1608
- this.collisions = [];
1609
- let hasPrioritizedGenesList = [];
1610
- hasPrioritizedGenesList = this.elements.filter((label) => label.isPrioritized);
1611
- if (this.settings.label.prioritizeGeneLabelsByGeneSets) {
1612
- this.elementsToDisplay = this.getLabelsWithPrioritizedGenes(hasPrioritizedGenesList);
1613
- } else if (this.hasPrioritizedGenes) {
1614
- const prioritizedGenesList = this.elements.filter((label) => label.isPrioritized);
1615
- const filteredPrioritizedGenesList = this.getLabelsWithPrioritizedGenes(prioritizedGenesList);
1616
- const withoutPrioritizedGenesList = this.elements.filter((label) => !label.isPrioritized);
1617
- const combinedAndSortedList = [...withoutPrioritizedGenesList, ...filteredPrioritizedGenesList].sort(
1618
- (a, b) => a.startAngle - b.startAngle
1619
- );
1620
- this.elementsToDisplay = this.getAllLabels(combinedAndSortedList);
1621
- } else {
1622
- this.elementsToDisplay = this.getLabelsWithPrioritizedGenes(this.elements);
1623
- }
1624
- }
1625
- getLabelsWithPrioritizedGenes(elemenets) {
1626
- const filteredList = [];
1627
- let prev = { endAngle: 0 };
1628
- elemenets.forEach((element, index) => {
1629
- if (index == 0) {
1630
- filteredList.push(element);
1631
- prev = element;
1632
- } else {
1633
- const overlap = prev.endAngle - element.startAngle + this.overlapAngle;
1634
- if (overlap > 0 && overlap < this.settings.label.maxDeltaAngle) {
1635
- const labelCopy = LabelFactory.createMovedLabel(element, overlap);
1636
- filteredList?.push(labelCopy);
1637
- prev = labelCopy;
1638
- }
1639
- if (overlap <= 0) {
1640
- filteredList.push(element);
1641
- prev = element;
1642
- }
1643
- }
1644
- });
1645
- return filteredList;
1646
- }
1647
- getAllLabels(elemenets) {
1648
- const filteredList = [];
1649
- let prev = { endAngle: 0 };
1650
- const elemenetsLength = elemenets.length;
1651
- let lastCancerGeneLabelIndex = -1;
1652
- for (let index = 0; index < elemenets.length; index++) {
1653
- const element = elemenets[index];
1654
- if (element.isPrioritized) {
1655
- filteredList.push(element);
1656
- lastCancerGeneLabelIndex = index;
1657
- prev = element;
1658
- continue;
1659
- }
1660
- if (index == 0) {
1661
- if (elemenetsLength > 1) {
1662
- if (this.isElementOverlappingNextCancerGene(elemenets, lastCancerGeneLabelIndex, element, 0)) {
1663
- continue;
1664
- }
1665
- filteredList.push(element);
1666
- prev = element;
1667
- }
1668
- continue;
1669
- }
1670
- const prevOverlap = prev.endAngle - element.startAngle + this.overlapAngle;
1671
- if (prevOverlap > 0 && prevOverlap < this.settings.label.maxDeltaAngle) {
1672
- if (index == length - 1) {
1673
- filteredList.push(element);
1674
- continue;
1675
- }
1676
- if (this.isElementOverlappingNextCancerGene(elemenets, lastCancerGeneLabelIndex, element, prevOverlap)) {
1677
- continue;
1678
- }
1679
- const labelCopy = LabelFactory.createMovedLabel(element, prevOverlap);
1680
- this.collisions?.push(labelCopy);
1681
- filteredList.push(element);
1682
- prev = labelCopy;
1683
- }
1684
- if (prevOverlap <= 0) {
1685
- if (this.isElementOverlappingNextCancerGene(elemenets, lastCancerGeneLabelIndex, element, 0)) {
1686
- continue;
1687
- }
1688
- filteredList.push(element);
1689
- prev = element;
1690
- }
1691
- }
1692
- return filteredList;
1693
- }
1694
- isElementOverlappingNextCancerGene(elemenets, lastCancerGeneLabelIndex, element, prevOverlap) {
1695
- const nextLabelWithCancerGene = this.getNextLabelWithCancerGene(elemenets, lastCancerGeneLabelIndex);
1696
- if (nextLabelWithCancerGene) {
1697
- const nextOverlap = element.endAngle + prevOverlap - nextLabelWithCancerGene.startAngle + this.overlapAngle;
1698
- if (nextOverlap > 0) {
1699
- return true;
1700
- }
1701
- }
1702
- return false;
1703
- }
1704
- getNextLabelWithCancerGene(elemenets, lastCancerGeneLabelIndex) {
1705
- return elemenets.find((label, index) => label.isPrioritized && index > lastCancerGeneLabelIndex);
1706
- }
1707
- };
1708
-
1709
- // plots/disco/snv/NonExonicSnvArcsMapper.ts
1710
- var NonExonicSnvArcsMapper = class {
1711
- constructor(nonExonicInnerRadius, nonExonicWidht, sampleName, reference) {
1712
- this.nonExonicInnerRadius = nonExonicInnerRadius;
1713
- this.nonExonicWidht = nonExonicWidht;
1714
- this.sampleName = sampleName;
1715
- this.reference = reference;
1716
- this.onePxArcAngle = 1 / nonExonicInnerRadius;
1717
- }
1718
- map(arcData) {
1719
- const innerRadius = this.nonExonicInnerRadius;
1720
- const outerRadius = innerRadius + this.nonExonicWidht;
1721
- const arcs = [];
1722
- arcData.forEach((data) => {
1723
- const mLabel = MLabel.getInstance().mlabel ? MLabel.getInstance().mlabel[data.mClass] : void 0;
1724
- const startAngle = this.calculateStartAngle(data);
1725
- const endAngle = this.calculateEndAngle(data);
1726
- if (startAngle === null || endAngle === null) return;
1727
- const arc = {
1728
- startAngle,
1729
- endAngle,
1730
- innerRadius,
1731
- outerRadius,
1732
- color: mLabel.color,
1733
- text: data.gene,
1734
- dataClass: mLabel.label,
1735
- mname: data.mname,
1736
- chr: data.chr,
1737
- pos: data.position,
1738
- vafs: data.vafs,
1739
- sampleName: [data.sampleName]
1740
- };
1741
- arcs.push(arc);
1742
- });
1743
- return arcs;
1744
- }
1745
- calculateStartAngle(data) {
1746
- const index = this.reference.chromosomesOrder.indexOf(data.chr);
1747
- if (index === -1) return null;
1748
- const chromosome = this.reference.chromosomes[index];
1749
- return chromosome.startAngle + (chromosome.endAngle - chromosome.startAngle) * (Number(data.position) / chromosome.size) - this.onePxArcAngle;
1750
- }
1751
- calculateEndAngle(data) {
1752
- const index = this.reference.chromosomesOrder.indexOf(data.chr);
1753
- const chromosome = this.reference.chromosomes[index];
1754
- return this.onePxArcAngle + chromosome.startAngle + (chromosome.endAngle - chromosome.startAngle) * (Number(data.position) / chromosome.size);
1755
- }
1756
- };
1757
-
1758
- // plots/disco/loh/LohArcMapper.ts
1759
- var LohArcMapper = class {
1760
- constructor(lohInnerRadius, lohWidth, sampleName, reference) {
1761
- this.lohInnerRadius = lohInnerRadius;
1762
- this.lohWidth = lohWidth;
1763
- this.sampleName = sampleName;
1764
- this.reference = reference;
1765
- }
1766
- map(arcData) {
1767
- const arcs = [];
1768
- arcData.forEach((data) => {
1769
- const startAngle = this.calculateStartAngle(data);
1770
- const endAngle = this.calculateEndAngle(data);
1771
- if (startAngle === null || endAngle === null) return;
1772
- const innerRadius = this.lohInnerRadius;
1773
- const outerRadius = innerRadius + this.lohWidth;
1774
- const color = GradientColorProvider.provide(data.segmean);
1775
- const arc = {
1776
- startAngle,
1777
- endAngle,
1778
- innerRadius,
1779
- outerRadius,
1780
- color,
1781
- text: data.gene,
1782
- chr: data.chr,
1783
- start: data.start,
1784
- stop: data.stop,
1785
- value: data.segmean
1786
- };
1787
- arcs.push(arc);
1788
- });
1789
- return arcs;
1790
- }
1791
- calculateStartAngle(data) {
1792
- const index = this.reference.chromosomesOrder.indexOf(data.chr);
1793
- if (index === -1) return null;
1794
- const chromosome = this.reference.chromosomes[index];
1795
- return chromosome.startAngle + (chromosome.endAngle - chromosome.startAngle) * (Number(data.start) / chromosome.size);
1796
- }
1797
- calculateEndAngle(data) {
1798
- const index = this.reference.chromosomesOrder.indexOf(data.chr);
1799
- const chromosome = this.reference.chromosomes[index];
1800
- return chromosome.startAngle + (chromosome.endAngle - chromosome.startAngle) * (Number(data.stop) / chromosome.size);
1801
- }
1802
- };
1803
-
1804
- // plots/disco/ring/Rings.ts
1805
- var Rings = class {
1806
- constructor(labelsRing, chromosomesRing, nonExonicArcRing, snvArcRing, cnvArcRing, lohArcRing, mutationWaterfallRing) {
1807
- this.labelsRing = labelsRing;
1808
- this.chromosomesRing = chromosomesRing;
1809
- this.nonExonicArcRing = nonExonicArcRing;
1810
- this.snvArcRing = snvArcRing;
1811
- this.cnvArcRing = cnvArcRing;
1812
- this.lohArcRing = lohArcRing;
1813
- this.mutationWaterfallRing = mutationWaterfallRing;
1814
- }
1815
- };
1816
-
1817
- // plots/disco/waterfall/MutationWaterfallMapper.ts
1818
- var MutationWaterfallMapper = class {
1819
- constructor(innerRadius, ringWidth, reference, logRange, color = "#4d4d4d") {
1820
- this.innerRadius = innerRadius;
1821
- this.ringWidth = ringWidth;
1822
- this.reference = reference;
1823
- this.logRange = logRange;
1824
- this.color = color;
1825
- }
1826
- map(data = []) {
1827
- if (!data.length) return [];
1828
- const min = this.logRange?.min ?? 0;
1829
- const max = this.logRange?.max ?? min + 1;
1830
- const span = max - min || 1;
1831
- const points = [];
1832
- for (const datum of data) {
1833
- const chrIndex = this.reference.chromosomesOrder.indexOf(datum.chr);
1834
- if (chrIndex === -1) continue;
1835
- const chromosome = this.reference.chromosomes[chrIndex];
1836
- const chrAngleSpan = chromosome.endAngle - chromosome.startAngle;
1837
- const relPos = chromosome.size > 0 ? datum.position / chromosome.size : 0;
1838
- const angle = chromosome.startAngle + chrAngleSpan * relPos;
1839
- const normalized = Math.max(0, Math.min(1, (datum.logDistance - min) / span));
1840
- const radius = this.innerRadius + this.ringWidth * normalized;
1841
- points.push({
1842
- startAngle: angle,
1843
- endAngle: angle,
1844
- innerRadius: radius,
1845
- outerRadius: radius,
1846
- text: chromosome.text,
1847
- color: this.color,
1848
- chr: datum.chr,
1849
- position: datum.position,
1850
- logDistance: datum.logDistance,
1851
- ringInnerRadius: this.innerRadius,
1852
- ringWidth: this.ringWidth,
1853
- rangeMin: min,
1854
- rangeMax: max
1855
- });
1856
- }
1857
- return points;
1858
- }
1859
- };
1860
-
1861
- // plots/disco/viewmodel/ViewModelProvider.ts
1862
- var ViewModelProvider = class {
1863
- constructor(settings, dataMapper, reference, sampleName, genesetName, discoInteractions) {
1864
- this.nonExonicArcRing = void 0;
1865
- this.settings = settings;
1866
- this.dataMapper = dataMapper;
1867
- this.reference = reference;
1868
- this.sampleName = sampleName;
1869
- this.genesetName = genesetName;
1870
- this.discoInteractions = discoInteractions;
1871
- }
1872
- map(data) {
1873
- const dataHolder = this.dataMapper.map(data);
1874
- let labelsRing;
1875
- if (this.settings.Disco.showGeneNames) {
1876
- const labelsMapper = new LabelsMapper(
1877
- this.settings,
1878
- this.sampleName,
1879
- this.reference,
1880
- dataHolder.cnvMaxPercentileAbs
1881
- );
1882
- const labelsData = labelsMapper.map(dataHolder.labelData, dataHolder.cnvData);
1883
- labelsRing = new Labels(this.settings, labelsData, dataHolder.hasPrioritizedGenes);
1884
- } else {
1885
- labelsRing = new Labels(this.settings, [], false);
1886
- }
1887
- const chromosomesRing = new Ring(
1888
- this.settings.rings.chromosomeInnerRadius,
1889
- this.settings.rings.chromosomeWidth,
1890
- this.reference.chromosomes
1891
- );
1892
- const nonExonicSnvArcsMapper = new NonExonicSnvArcsMapper(
1893
- dataHolder.nonExonicInnerRadius,
1894
- this.settings.rings.nonExonicRingWidth,
1895
- this.sampleName,
1896
- this.reference
1897
- );
1898
- const nonExonicData = nonExonicSnvArcsMapper.map(dataHolder.nonExonicSnvData);
1899
- if (nonExonicData.length > 0) {
1900
- this.nonExonicArcRing = new Ring(
1901
- dataHolder.nonExonicInnerRadius,
1902
- this.settings.rings.nonExonicRingWidth,
1903
- nonExonicData
1904
- );
1905
- }
1906
- this.snvArcsMapper = new SnvArcsMapper(
1907
- dataHolder.snvInnerRadius,
1908
- this.settings.rings.snvRingWidth,
1909
- this.sampleName,
1910
- this.reference
1911
- );
1912
- const snvData = this.snvArcsMapper.map(dataHolder.snvRingDataMap);
1913
- if (snvData.length > 0) {
1914
- this.snvArcRing = new Ring(dataHolder.snvInnerRadius, this.settings.rings.snvRingWidth, snvData);
1915
- }
1916
- const lohMapper = new LohArcMapper(
1917
- dataHolder.lohInnerRadius,
1918
- this.settings.rings.lohRingWidth,
1919
- this.sampleName,
1920
- this.reference
1921
- );
1922
- const lohData = lohMapper.map(dataHolder.lohData);
1923
- if (lohData.length > 0) {
1924
- this.lohArcRing = new Ring(dataHolder.lohInnerRadius, this.settings.rings.lohRingWidth, lohData);
1925
- }
1926
- this.cnvArcsMapper = new CnvArcsMapper(
1927
- dataHolder.cnvInnerRadius,
1928
- this.settings.rings.cnvRingWidth,
1929
- this.settings,
1930
- this.sampleName,
1931
- this.reference,
1932
- dataHolder.percentilePositive,
1933
- dataHolder.percentileNegative,
1934
- dataHolder.cappedCnvMaxAbsValue,
1935
- dataHolder.cnvMaxPercentileAbs,
1936
- this.settings.cnv.unit,
1937
- this.settings.Disco.cnvRenderingType
1938
- );
1939
- const cnvData = this.cnvArcsMapper.map(dataHolder.cnvData);
1940
- if (cnvData.length > 0) {
1941
- this.cnvArcRing = new Ring(dataHolder.cnvInnerRadius, this.settings.rings.cnvRingWidth, cnvData);
1942
- }
1943
- if (this.settings.Disco.mutationWaterfallPlot && dataHolder.mutationWaterfallData?.length && dataHolder.mutationWaterfallInnerRadius !== void 0 && //Added this check to prevent TypeScript error "mutationWaterfallInnerRadius might be undefined"
1944
- (dataHolder.mutationWaterfallInnerRadius ?? 0) > 0 && dataHolder.mutationWaterfallLogRange) {
1945
- const mutationWaterfallMapper = new MutationWaterfallMapper(
1946
- dataHolder.mutationWaterfallInnerRadius,
1947
- this.settings.rings.mutationWaterfallRingWidth,
1948
- this.reference,
1949
- dataHolder.mutationWaterfallLogRange,
1950
- this.settings.Disco.mutationWaterfallColor || "#4d4d4d"
1951
- );
1952
- const waterfallData = mutationWaterfallMapper.map(dataHolder.mutationWaterfallData);
1953
- if (waterfallData.length > 0) {
1954
- this.mutationWaterfallRing = new Ring(
1955
- dataHolder.mutationWaterfallInnerRadius,
1956
- this.settings.rings.mutationWaterfallRingWidth,
1957
- waterfallData
1958
- );
1959
- }
1960
- }
1961
- const fusionMapper = new FusionMapper(dataHolder.fusionRadius, this.sampleName, this.reference);
1962
- const fusions = fusionMapper.map(dataHolder.fusionData);
1963
- let lohLegend;
1964
- if (this.settings.legend.lohLegendEnabled && dataHolder.lohMinValue && dataHolder.lohMaxValue) {
1965
- lohLegend = new LohLegend(dataHolder.lohMinValue, dataHolder.lohMaxValue);
1966
- }
1967
- const legend = new Legend(
1968
- this.settings.legend.snvTitle,
1969
- this.settings.legend.cnvTitle,
1970
- this.settings.legend.lohTitle,
1971
- this.settings.legend.fusionTitle,
1972
- this.settings.Disco.cnvPercentile,
1973
- this.settings.Disco.cnvCutoffMode,
1974
- this.snvArcsMapper ? this.snvArcsMapper.snvClassMap : /* @__PURE__ */ new Map(),
1975
- this.cnvArcsMapper ? this.cnvArcsMapper.cnvClassMap : /* @__PURE__ */ new Map(),
1976
- this.settings.Disco.cnvRenderingType,
1977
- fusions.length > 0,
1978
- this.discoInteractions,
1979
- lohLegend,
1980
- this.settings.Disco.mutationWaterfallPlot && this.mutationWaterfallRing ? {
1981
- color: this.settings.Disco.mutationWaterfallColor || "#4d4d4d",
1982
- onColorChange: this.discoInteractions.onMutationWaterfallColorChange
1983
- } : void 0
1984
- );
1985
- const rings = new Rings(
1986
- labelsRing,
1987
- chromosomesRing,
1988
- this.nonExonicArcRing,
1989
- this.snvArcRing,
1990
- this.cnvArcRing,
1991
- this.lohArcRing,
1992
- this.mutationWaterfallRing
1993
- );
1994
- return new ViewModel(
1995
- this.settings,
1996
- rings,
1997
- legend,
1998
- fusions,
1999
- dataHolder,
2000
- this.genesetName,
2001
- data.filter((i) => i.dt == dtsnvindel).length
2002
- );
2003
- }
2004
- };
2005
-
2006
- // plots/disco/viewmodel/ViewModelMapper.ts
2007
- var ViewModelMapper = class _ViewModelMapper {
2008
- static {
2009
- this.snvClassLayer = {
2010
- M: "exonic",
2011
- E: "exonic",
2012
- F: "exonic",
2013
- N: "exonic",
2014
- S: "exonic",
2015
- D: "exonic",
2016
- I: "exonic",
2017
- P: "exonic",
2018
- L: "exonic",
2019
- Utr3: "exonic",
2020
- Utr5: "exonic",
2021
- ProteinAltering: "exonic",
2022
- mnv: "non-exonic",
2023
- ITD: "non-exonic",
2024
- insertion: "non-exonic",
2025
- deletion: "non-exonic",
2026
- Intron: "non-exonic",
2027
- X: "non-exonic",
2028
- noncoding: "non-exonic"
2029
- };
2030
- }
2031
- constructor(settings, discoInteractions) {
2032
- this.settings = JSON.parse(JSON.stringify(settings));
2033
- this.discoInteractions = discoInteractions;
2034
- }
2035
- applyRadius() {
2036
- const radius = this.settings.Disco.radius;
2037
- if (!radius) return;
2038
- const scale = radius / this.settings.rings.labelLinesInnerRadius;
2039
- this.settings.rings.labelLinesInnerRadius *= scale;
2040
- this.settings.rings.labelsToLinesDistance *= scale;
2041
- this.settings.rings.chromosomeInnerRadius *= scale;
2042
- this.settings.rings.chromosomeWidth *= scale;
2043
- this.settings.rings.nonExonicRingWidth *= scale;
2044
- this.settings.rings.snvRingWidth *= scale;
2045
- this.settings.rings.lohRingWidth *= scale;
2046
- this.settings.rings.cnvRingWidth *= scale;
2047
- this.settings.rings.mutationWaterfallRingWidth *= scale;
2048
- this.settings.label.fontSize *= scale;
2049
- this.settings.legend.fontSize *= scale;
2050
- }
2051
- static computeDynamicRadius(data) {
2052
- let ringCount = 0;
2053
- if (data.some((d) => d.dt == dtsnvindel)) ringCount++;
2054
- if (data.some((d) => d.dt == dtcnv)) ringCount++;
2055
- if (data.some((d) => d.dt == dtloh)) ringCount++;
2056
- if (ringCount <= 1) return 200;
2057
- if (ringCount == 2) return 250;
2058
- return 300;
2059
- }
2060
- map(opts) {
2061
- const chrSizes = opts.args.genome.majorchr;
2062
- const chromosomesOverride = {};
2063
- for (const chr of Object.keys(chrSizes)) {
2064
- if (!this.settings.Disco.hiddenChromosomes.includes(chr)) {
2065
- chromosomesOverride[chr] = chrSizes[chr];
2066
- }
2067
- }
2068
- const sampleName = opts.args.sampleName;
2069
- const genome = opts.args.genome;
2070
- const prioritizedGenes = genome?.geneset?.[0] ? genome.geneset[0].lst : [];
2071
- const genesetName = genome?.geneset?.[0] ? genome.geneset[0].name : "";
2072
- const data = opts.args.data;
2073
- if (this.settings.Disco.autoRadius) {
2074
- this.settings.Disco.radius = _ViewModelMapper.computeDynamicRadius(data);
2075
- }
2076
- this.applyRadius();
2077
- const reference = new Reference(this.settings, chrSizes, chromosomesOverride);
2078
- const dataMapper = new DataMapper(this.settings, reference, sampleName, prioritizedGenes);
2079
- return new ViewModelProvider(
2080
- this.settings,
2081
- dataMapper,
2082
- reference,
2083
- sampleName,
2084
- genesetName,
2085
- this.discoInteractions
2086
- ).map(data);
2087
- }
2088
- };
2089
-
2090
- // plots/disco/legend/LegendJSONMapper.ts
2091
- var LegendJSONMapper = class {
2092
- constructor(cappedCnvMaxAbsValue) {
2093
- this.cappedCnvMaxAbsValue = cappedCnvMaxAbsValue;
2094
- }
2095
- map(legend) {
2096
- const legendJSON = [];
2097
- let order = 0;
2098
- if (legend.snvClassMap) {
2099
- this.mapSnv(legend, legendJSON, order++);
2100
- }
2101
- if (legend.cnvRenderingType == "heatmap" /* heatmap */) {
2102
- this.mapCnvHeatmap(legend, legendJSON, order++);
2103
- } else if (legend.cnvRenderingType == "bar" /* bar */) {
2104
- if (legend.cnvClassMap) {
2105
- this.mapCnvBar(legend, legendJSON, order++);
2106
- }
2107
- }
2108
- if (legend.lohLegend) {
2109
- this.mapLoh(legend, legendJSON, order++);
2110
- }
2111
- if (legend.fusionLegend) {
2112
- this.mapFusion(legend, legendJSON, order++);
2113
- }
2114
- if (legend.mutationWaterfallLegend) {
2115
- this.mapMutationWaterfall(legend, legendJSON, order++);
2116
- }
2117
- return legendJSON;
2118
- }
2119
- mapSnv(legend, legendJSON, order) {
2120
- const snvItems = [];
2121
- let snvOrder = 0;
2122
- for (const [snvKey, snvLegendElement] of legend.snvClassMap) {
2123
- snvItems.push({
2124
- termid: legend.snvTitle,
2125
- key: snvKey,
2126
- text: `${snvLegendElement.snvType} (${snvLegendElement.count})`,
2127
- color: snvLegendElement.color,
2128
- order: snvOrder++,
2129
- border: "1px solid #ccc"
2130
- });
2131
- }
2132
- legendJSON.push({
2133
- name: legend.snvTitle,
2134
- order,
2135
- items: snvItems
2136
- });
2137
- }
2138
- mapCnvBar(legend, legendJSON, order) {
2139
- if (!legend.cnvClassMap) return;
2140
- const gain = legend.cnvClassMap.get(1 /* Gain */);
2141
- const loss = legend.cnvClassMap.get(0 /* Loss */);
2142
- const cap = legend.cnvClassMap.get(2 /* Cap */);
2143
- if (gain && loss && cap) {
2144
- let cnvOrder = 0;
2145
- const cnvItems = [];
2146
- if (gain.value > 0) {
2147
- cnvItems.push({
2148
- termid: legend.cnvTitle,
2149
- key: 1 /* Gain */,
2150
- text: `Max: ${gain.value}`,
2151
- color: gain.color,
2152
- order: cnvOrder++,
2153
- border: "1px solid #ccc"
2154
- });
2155
- }
2156
- if (loss.value < 0) {
2157
- cnvItems.push({
2158
- termid: legend.cnvTitle,
2159
- key: 0 /* Loss */,
2160
- text: `Min: ${loss.value}`,
2161
- color: loss.color,
2162
- order: cnvOrder++,
2163
- border: "1px solid #ccc"
2164
- });
2165
- }
2166
- cnvItems.push({
2167
- termid: legend.cnvTitle,
2168
- key: 2 /* Cap */,
2169
- text: `Capping: ${cap.value}`,
2170
- color: cap.color,
2171
- order: cnvOrder++,
2172
- border: "1px solid #ccc"
2173
- // ,
2174
- // onClickCallback: this.onClickCallback
2175
- });
2176
- legendJSON.push({
2177
- name: legend.cnvTitle,
2178
- id: "sjpp-disco-cnv-legend",
2179
- order,
2180
- items: cnvItems
2181
- });
2182
- }
2183
- }
2184
- mapCnvHeatmap(legend, legendJSON, order) {
2185
- if (!legend.cnvClassMap) return;
2186
- const gain = legend.cnvClassMap.get(1 /* Gain */);
2187
- const loss = legend.cnvClassMap.get(0 /* Loss */);
2188
- const cap = legend.cnvClassMap.get(2 /* Cap */);
2189
- if (gain && loss && cap) {
2190
- let cnvOrder = 0;
2191
- const cnvItems = [];
2192
- const base = {
2193
- termid: legend.cnvTitle,
2194
- width: 100,
2195
- order: cnvOrder++,
2196
- isLegendItem: true,
2197
- dt: 4
2198
- };
2199
- if (gain.value > 0 && loss.value < 0) {
2200
- const maxValue = Math.max(Math.abs(loss.value), gain.value);
2201
- const domain = [-maxValue, 0, maxValue];
2202
- cnvItems.push(
2203
- Object.assign(
2204
- {
2205
- key: 3 /* LossGain */,
2206
- domain,
2207
- scale: linear([-1, 0, 1], [loss.color, "white", gain.color]),
2208
- labels: { left: "Loss", right: "Gain" },
2209
- numericInputs: {
2210
- cutoffMode: legend.cnvCutoffMode,
2211
- defaultPercentile: legend.cnvPercentile,
2212
- callback: (obj) => legend.discoInteractions.colorScaleNumericInputsCallback(obj)
2213
- }
2214
- },
2215
- base
2216
- )
2217
- );
2218
- } else {
2219
- if (gain.value > 0) {
2220
- cnvItems.push(
2221
- Object.assign(
2222
- {
2223
- key: 1 /* Gain */,
2224
- text: "Copy number gain",
2225
- domain: [0, gain.value],
2226
- scale: linear([0, 1], ["white", gain.color])
2227
- },
2228
- base
2229
- )
2230
- );
2231
- }
2232
- if (loss.value < 0) {
2233
- cnvItems.push(
2234
- Object.assign(
2235
- {
2236
- key: 0 /* Loss */,
2237
- text: "Copy number loss",
2238
- domain: [loss.value, 0],
2239
- scale: linear([0, 1], [loss.color, "white"])
2240
- },
2241
- base
2242
- )
2243
- );
2244
- }
2245
- }
2246
- legendJSON.push({
2247
- name: legend.cnvTitle,
2248
- order,
2249
- id: "sjpp-disco-cnv-legend",
2250
- items: cnvItems
2251
- });
2252
- }
2253
- }
2254
- mapLoh(legend, legendJSON, order) {
2255
- if (!legend.lohLegend) return;
2256
- const lohItems = [];
2257
- lohItems.push({
2258
- termid: legend.lohTitle,
2259
- key: "min",
2260
- text: "min",
2261
- color: legend.lohLegend.colorStartValue,
2262
- order: 0,
2263
- border: "1px solid #ccc"
2264
- });
2265
- lohItems.push({
2266
- termid: legend.lohTitle,
2267
- key: "max",
2268
- text: "max",
2269
- color: legend.lohLegend.colorEndValue,
2270
- order: 1,
2271
- border: "1px solid #ccc"
2272
- });
2273
- legendJSON.push({
2274
- name: legend.lohTitle,
2275
- order,
2276
- items: lohItems
2277
- });
2278
- }
2279
- mapFusion(legend, legendJSON, order) {
2280
- const fusionItems = [];
2281
- fusionItems.push({
2282
- termid: legend.fusionTitle,
2283
- key: "#6A3D9A" /* Interchromosomal */,
2284
- text: "Interchromosomal",
2285
- color: "#6A3D9A" /* Interchromosomal */.valueOf(),
2286
- order: 0,
2287
- border: "1px solid #ccc"
2288
- });
2289
- fusionItems.push({
2290
- termid: legend.fusionTitle,
2291
- key: "#1B9E77" /* Intrachromosomal */,
2292
- text: "Intrachromosomal",
2293
- color: "#1B9E77" /* Intrachromosomal */.valueOf(),
2294
- order: 1,
2295
- border: "1px solid #ccc"
2296
- });
2297
- legendJSON.push({
2298
- name: legend.fusionTitle,
2299
- order,
2300
- items: fusionItems
2301
- });
2302
- }
2303
- mapMutationWaterfall(legend, legendJSON, order) {
2304
- if (!legend.mutationWaterfallLegend) return;
2305
- const waterfallItems = [];
2306
- waterfallItems.push({
2307
- termid: "Mutation Waterfall Plot",
2308
- key: "mutation-waterfall-color",
2309
- text: "Dot color",
2310
- color: legend.mutationWaterfallLegend.color,
2311
- order: 0,
2312
- colorPicker: true,
2313
- inputWidth: 28,
2314
- width: 0,
2315
- onColorChange: legend.mutationWaterfallLegend.onColorChange
2316
- });
2317
- waterfallItems.push({
2318
- termid: "Mutation Waterfall Plot",
2319
- key: "mutation-waterfall-axis",
2320
- text: "Axis: log10 intermutation distance",
2321
- order: 1,
2322
- skipIcon: true,
2323
- width: 0
2324
- });
2325
- legendJSON.push({
2326
- name: "Mutation Waterfall Plot",
2327
- order,
2328
- items: waterfallItems
2329
- });
2330
- }
2331
- };
2332
-
2333
- // plots/disco/cnv/renderCnvSourceLegend.ts
2334
- function parseSetLabel(set, index) {
2335
- let text = set.name || `Set ${index + 1}`;
2336
- let href;
2337
- let target = "_blank";
2338
- if (set.nameHtml) {
2339
- const parser = new DOMParser();
2340
- const doc = parser.parseFromString(set.nameHtml, "text/html");
2341
- const anchor = doc.querySelector("a");
2342
- if (anchor) {
2343
- href = anchor.getAttribute("href") || void 0;
2344
- target = anchor.getAttribute("target") || "_blank";
2345
- text = anchor.textContent?.trim() || text;
2346
- } else {
2347
- text = doc.body.textContent?.trim() || text;
2348
- }
2349
- }
2350
- return { text, href, target };
2351
- }
2352
- function renderCnvSourceLegend(legendG, datasets, fontSize, onChange) {
2353
- if (!legendG || legendG.empty()) throw new Error("legendG is required");
2354
- if (!datasets || datasets.length === 0) throw new Error("at least one dataset is required");
2355
- legendG.select("g.sjpp-cnv-source").remove();
2356
- const gBBox = legendG.node().getBBox();
2357
- const cnvSrcWrapper = legendG.append("g").attr("class", "sjpp-cnv-source").attr("transform", `translate(${gBBox.width},${gBBox.y + fontSize})`);
2358
- const btnPaddingX = Math.round(fontSize * 0.8);
2359
- const btnHgt = Math.round(fontSize * 1.8);
2360
- const btnWrapper = cnvSrcWrapper.append("g").attr("transform", `translate(${fontSize},${-btnHgt / 2})`).style("cursor", "pointer").on("click", function(event) {
2361
- event.stopPropagation();
2362
- showCnvMenu(this);
2363
- });
2364
- const btnText = btnWrapper.append("text").attr("x", 0).attr("y", btnHgt / 2).attr("font-size", fontSize).attr("text-anchor", "start").attr("dominant-baseline", "middle").text("Select source \u25B2".toUpperCase());
2365
- const textW = btnText.node() ? Math.ceil(btnText.node().getBBox().width) : 0;
2366
- const btnWdt = textW + btnPaddingX * 2;
2367
- btnWrapper.insert("rect", ":first-child").attr("width", btnWdt).attr("height", btnHgt).attr("rx", 10).attr("ry", 10).style("fill", "#f2f2f2");
2368
- btnText.attr("x", btnWdt / 2).attr("text-anchor", "middle");
2369
- const cnvMenu = new Menu({
2370
- onHide: () => {
2371
- btnText.text("Select source \u25B2".toUpperCase());
2372
- }
2373
- });
2374
- function showCnvMenu(dom) {
2375
- btnText.text("Select source \u25BC".toUpperCase());
2376
- cnvMenu.clear().showunder(dom);
2377
- cnvMenu.d.append("div").text("Choose data source for CNV:").style("margin", "5px 5px 0 5px");
2378
- const tableHolder = cnvMenu.d.append("div").style("padding", "5px");
2379
- const { columns, rows } = buildTableData(datasets);
2380
- const [, activeIndex] = getActiveDataset(datasets);
2381
- renderTable({
2382
- columns,
2383
- rows,
2384
- div: tableHolder,
2385
- singleMode: true,
2386
- maxWidth: "70vw",
2387
- maxHeight: "60vh",
2388
- selectedRows: [activeIndex],
2389
- header: { allowSort: false },
2390
- noButtonCallback: (rowIndex, node) => {
2391
- const inputIndex = Number(node?.value);
2392
- const selectedIndex = Number.isNaN(inputIndex) ? rowIndex : inputIndex;
2393
- if (!Number.isNaN(selectedIndex)) onChange(selectedIndex);
2394
- cnvMenu.hide();
2395
- }
2396
- });
2397
- }
2398
- }
2399
- function getActiveDataset(datasets) {
2400
- let currentIndex = datasets.findIndex((d) => d.inuse);
2401
- if (currentIndex == -1) currentIndex = 0;
2402
- return [datasets[currentIndex], currentIndex];
2403
- }
2404
- function buildTableData(datasets) {
2405
- const attrKeys = [];
2406
- for (const set of datasets) {
2407
- if (!set.attrs) continue;
2408
- for (const key of Object.keys(set.attrs)) {
2409
- if (!attrKeys.includes(key)) attrKeys.push(key);
2410
- }
2411
- }
2412
- const columns = [{ label: "Source" }];
2413
- for (const key of attrKeys) columns.push({ label: key });
2414
- const rows = datasets.map((set, index) => {
2415
- const sourceInfo = parseSetLabel(set, index);
2416
- const cells = [];
2417
- if (set.nameHtml) cells.push({ html: set.nameHtml });
2418
- else if (sourceInfo.href) cells.push({ value: sourceInfo.text, url: sourceInfo.href });
2419
- else cells.push({ value: sourceInfo.text });
2420
- for (const key of attrKeys) {
2421
- const value = set.attrs?.[key];
2422
- cells.push({ value: value ?? "" });
2423
- }
2424
- return cells;
2425
- });
2426
- return { columns, rows };
2427
- }
2428
-
2429
- // plots/disco/legend/LegendRenderer.ts
2430
- var LegendRenderer = class {
2431
- constructor(cappedCnvMaxAbsValue = 0, fontSize) {
2432
- this.fontSize = fontSize;
2433
- this.legendJSONMapper = new LegendJSONMapper(cappedCnvMaxAbsValue);
2434
- }
2435
- render(holder, legend, xOffset, svgw, svgh, viewModel, onCnvSourceSelect) {
2436
- const svgLegendRenderer = svgLegend({
2437
- holder: holder.append("g").attr("data-testid", "sjpp_disco_plot_legend"),
2438
- rectFillFxn: (d2) => d2.color,
2439
- iconStroke: "#aaa"
2440
- });
2441
- const data = this.legendJSONMapper.map(legend);
2442
- const legendTitles = data.map((d2) => d2.name.trim());
2443
- const maxLabelWidth = getMaxLabelWidth(holder, legendTitles);
2444
- const d = {
2445
- xOffset: maxLabelWidth + xOffset
2446
- };
2447
- svgLegendRenderer(data, {
2448
- settings: Object.assign(
2449
- {},
2450
- {
2451
- svgw,
2452
- svgh,
2453
- dimensions: d,
2454
- fontsize: this.fontSize
2455
- }
2456
- )
2457
- });
2458
- const altCnv = viewModel.appState.args.alternativeDataByDt?.[dtcnv];
2459
- if (altCnv && altCnv.length > 0) {
2460
- const legendG = holder.select('g[data-testid="sjpp_disco_plot_legend"]');
2461
- const cnvLegendG = legendG.select("#sjpp-disco-cnv-legend");
2462
- if (!legendG.empty()) {
2463
- const add2G = cnvLegendG.empty() ? legendG : cnvLegendG;
2464
- renderCnvSourceLegend(add2G, altCnv, this.fontSize, onCnvSourceSelect);
2465
- }
2466
- }
2467
- }
2468
- };
2469
-
2470
- // plots/disco/chromosome/ChromosomesRenderer.ts
2471
- var ChromosomesRenderer = class {
2472
- constructor(padAngle, innerRadius, outerRadius, fontSize) {
2473
- this.padAngle = padAngle;
2474
- this.innerRadius = innerRadius;
2475
- this.outerRadius = outerRadius;
2476
- this.fontSize = fontSize;
2477
- }
2478
- render(holder, elements) {
2479
- const pie = pie_default().padAngle(this.padAngle).value((d) => d.size).sort(null);
2480
- const arcData = pie(elements);
2481
- const arc = arc_default().innerRadius(this.innerRadius).outerRadius(this.outerRadius);
2482
- const arcs = holder.append("g").attr("data-testid", "sjpp_chromosomes_arc_group");
2483
- const menu = MenuProvider.create();
2484
- arcs.selectAll("path").data(arcData).enter().append("path").attr("d", arc).attr("fill", "black").on("mousemove", (event, d) => {
2485
- const [x, y] = pointer_default(event, arcs.node());
2486
- let angle = Math.atan2(y, x) + Math.PI / 2;
2487
- if (angle < 0) angle += 2 * Math.PI;
2488
- const frac = Math.max(0, Math.min(1, (angle - d.data.startAngle) / (d.data.endAngle - d.data.startAngle)));
2489
- const pos = Math.round(frac * d.data.size);
2490
- menu.d.html(`<span style="font-size:.8em">chr${d.data.text}</span> ${bplen(pos)}`).style("padding", "5px");
2491
- menu.show(event.x, event.y);
2492
- }).on("mouseenter", (event) => {
2493
- select_default(event.currentTarget).attr("stroke", "orange").attr("stroke-width", 1);
2494
- }).on("mouseleave", (event) => {
2495
- select_default(event.currentTarget).attr("stroke", null).attr("stroke-width", null);
2496
- menu.hide();
2497
- });
2498
- arcs.selectAll("text").data(arcData).enter().append("text").attr("transform", (d) => {
2499
- return `translate(${arc.centroid(d)}) rotate(${d.data.angle * 180 / Math.PI - 90})${d.data.angle > Math.PI ? "rotate(180)" : ""}`;
2500
- }).attr("dy", "0.35em").attr("text-anchor", "middle").text((d) => d.data.text).style("fill", "white").style("font-size", `${this.fontSize}px`).style("padding", "500px").style("pointer-events", "none").style("padding", "500px");
2501
- }
2502
- };
2503
-
2504
- // plots/disco/snv/vafTooltip.ts
2505
- function getIntegerCount(v) {
2506
- if (Number.isInteger(v)) return v;
2507
- if (typeof v == "string" && /^-?\d+$/.test(v)) {
2508
- const n = Number(v);
2509
- if (Number.isInteger(n)) return n;
2510
- }
2511
- return null;
2512
- }
2513
- function hasValidReadCounts(refCountValue, altCountValue) {
2514
- const refCount = getIntegerCount(refCountValue);
2515
- const altCount = getIntegerCount(altCountValue);
2516
- return refCount != null && altCount != null && refCount >= 0 && altCount >= 0 && refCount + altCount > 0;
2517
- }
2518
- function getVafEntries(vafs) {
2519
- const entries = [];
2520
- if (Array.isArray(vafs)) {
2521
- for (const vaf of vafs) {
2522
- const label = vaf?.id || vaf?.name;
2523
- const refCount = vaf?.refCount;
2524
- const altCount = vaf?.altCount;
2525
- if (!label || refCount == null || altCount == null) continue;
2526
- entries.push({ label, refCount, altCount });
2527
- }
2528
- }
2529
- return entries;
2530
- }
2531
- function hasAnyValidVafEntry(vafs) {
2532
- return getVafEntries(vafs).some((vaf) => hasValidReadCounts(vaf.refCount, vaf.altCount));
2533
- }
2534
- function appendVafBar(td2, refCountValue, altCountValue, label = "VAF") {
2535
- const refCount = getIntegerCount(refCountValue);
2536
- const altCount = getIntegerCount(altCountValue);
2537
- if (refCount == null || altCount == null) return;
2538
- const totalCount = refCount + altCount;
2539
- const fraction = altCount / totalCount;
2540
- const div = td2.append("div").style("margin-left", "5px").style("margin-top", "4px").style("display", "flex").style("align-items", "center").style("gap", "6px");
2541
- div.append("span").style("font-size", "0.8em").style("color", "#555").text(label);
2542
- fillbar(div, { f: fraction, v1: altCount, v2: totalCount });
2543
- }
2544
- function appendVafBars(td2, vafs) {
2545
- for (const vaf of getVafEntries(vafs)) {
2546
- if (!hasValidReadCounts(vaf.refCount, vaf.altCount)) continue;
2547
- appendVafBar(td2, vaf.refCount, vaf.altCount, vaf.label);
2548
- }
2549
- }
2550
-
2551
- // plots/disco/label/LabelsRenderer.ts
2552
- var LabelsRenderer = class {
2553
- constructor(animationDuration, fontSize, geneClickListener) {
2554
- this.animationDuration = animationDuration;
2555
- this.fontSize = fontSize;
2556
- this.geneClickListener = geneClickListener;
2557
- }
2558
- render(holder, elements, collisions) {
2559
- const labelsG = holder.append("g");
2560
- const lineFunction = line_default().x((point) => point.x).y((point) => point.y);
2561
- const menu = MenuProvider.create();
2562
- labelsG.selectAll(".group").data(elements).enter().append("g").attr("class", "group").each((label, i, nodes) => {
2563
- const g = select_default(nodes[i]);
2564
- g.append("text").attr("class", "chord-text").attr("dy", ".35em").attr("transform", label.transform).style("text-anchor", label.textAnchor).style("font-size", `${this.fontSize}px`).style("fill", label.color).style("cursor", "pointer").text(label.text).on("click", () => {
2565
- if (label.mutationsTooltip) {
2566
- this.geneClickListener(
2567
- label.text,
2568
- label.mutationsTooltip.map((value) => value.mname)
2569
- );
2570
- }
2571
- }).on("mouseover", (mouseEvent) => {
2572
- const table = table2col({ holder: menu.d });
2573
- this.createTooltip(table, label);
2574
- menu.show(mouseEvent.x, mouseEvent.y);
2575
- }).on("mouseout", () => {
2576
- menu.clear();
2577
- menu.hide();
2578
- });
2579
- g.append("path").attr("class", "chord-tick").datum(label.line.points).style("stroke", label.color).style("fill", "none").attr("d", lineFunction);
2580
- });
2581
- labelsG.selectAll(".group").each((label, i, nodes) => {
2582
- const collision = collisions ? collisions.find((l) => l.text === label.text) : void 0;
2583
- if (collision) {
2584
- const g = select_default(nodes[i]);
2585
- g.selectAll(".chord-text").datum(collision).transition().duration(this.animationDuration).attr("transform", collision.transform).style("text-anchor", collision.textAnchor);
2586
- g.selectAll(".chord-tick").datum(collision.line.points).transition().duration(this.animationDuration).style("fill", "none").attr("d", lineFunction);
2587
- }
2588
- });
2589
- }
2590
- createTooltip(table, label) {
2591
- if (label.mutationsTooltip) {
2592
- const [td1, td2] = table.addRow();
2593
- td1.text("Gene");
2594
- td2.append("span").style("margin-left", "5px").text(label.text);
2595
- label.mutationsTooltip.forEach((mutation) => {
2596
- {
2597
- const [td12, td22] = table.addRow();
2598
- td12.text("Mutation");
2599
- td22.append("span").style("margin-left", "5px").text(mutation.mname).append("span").style("margin-left", "5px").style("color", mutation.color).text(`${mutation.dataClass}`).append("span").style("margin-left", "5px").style("color", "black").style("font-size", "0.8em").text(` ${mutation.chr}:${mutation.position}`);
2600
- if (hasAnyValidVafEntry(mutation.vafs)) {
2601
- appendVafBars(td22, mutation.vafs);
2602
- }
2603
- }
2604
- });
2605
- }
2606
- if (label.fusionTooltip) {
2607
- const [td1, td2] = table.addRow();
2608
- td1.text("Data type");
2609
- td2.append("span").text("Fusion transcript");
2610
- label.fusionTooltip.forEach((fusionTooltip) => {
2611
- const [td12, td22] = table.addRow();
2612
- td12.text("Position");
2613
- td22.append("span").text(
2614
- ` ${fusionTooltip.geneA ? fusionTooltip.geneA : "?"} ${fusionTooltip.chrA}:${fusionTooltip.posA}
2615
- ${fusionTooltip.strandA == "+" ? "forward" : "reverse"} > ${fusionTooltip.geneB ? fusionTooltip.geneB : "?"} ${fusionTooltip.chrB}:${fusionTooltip.posB} ${fusionTooltip.strandB == "+" ? "forward" : "reverse"} `
2616
- );
2617
- });
2618
- }
2619
- if (label.cnvTooltip) {
2620
- label.cnvTooltip.forEach((cnv) => {
2621
- const [td1, td2] = table.addRow();
2622
- td1.text("CNV");
2623
- td2.append("span").style("margin-left", "5px").style("background-color", cnv.color).html("&nbsp;&nbsp;");
2624
- td2.append("span").style("margin-left", "7.5px").text(cnv.value).append("span").style("margin-left", "7.5px").style("font-size", "0.8em").text(`${cnv.chr}:${cnv.start}-${cnv.stop}`);
2625
- });
2626
- }
2627
- }
2628
- };
2629
-
2630
- // plots/disco/defaults.ts
2631
- function discoDefaults(overrides = {}, app) {
2632
- const hiddenChromosomes = [];
2633
- if (app?.vocabApi?.termdbConfig?.queries?.singleSampleMutation?.discoPlot?.skipChrM) {
2634
- hiddenChromosomes.push("chrM");
2635
- }
2636
- const defaults = {
2637
- downloadImgName: "disco.plot",
2638
- Disco: {
2639
- centerText: null,
2640
- cnvCapping: 5,
2641
- isOpen: false,
2642
- prioritizeGeneLabelsByGeneSets: false,
2643
- showPrioritizeGeneLabelsByGeneSets: false,
2644
- showGeneNames: true,
2645
- mutationWaterfallPlot: false,
2646
- mutationWaterfallColor: "#4d4d4d",
2647
- cnvRenderingType: "heatmap" /* heatmap */,
2648
- cnvPercentile: 90,
2649
- // 90th percentile for removing outliers
2650
- cnvCutoffMode: "percentile",
2651
- autoRadius: true,
2652
- radius: 300,
2653
- fusionOpacity: 1,
2654
- hiddenChromosomes
2655
- },
2656
- rings: {
2657
- nonExonicRingWidth: 20,
2658
- snvRingWidth: 20,
2659
- lohRingWidth: 20,
2660
- cnvRingWidth: 30,
2661
- mutationWaterfallRingWidth: 35,
2662
- snvRingFilters: ["exonic"],
2663
- chromosomeInnerRadius: 190,
2664
- chromosomeWidth: 20,
2665
- labelLinesInnerRadius: 210,
2666
- labelsToLinesDistance: 30,
2667
- labelsToLinesGap: 2,
2668
- nonExonicRingEnabled: true,
2669
- nonExonicFilterValues: ["non-exonic"]
2670
- },
2671
- verticalPadding: 0,
2672
- horizontalPadding: 50,
2673
- layerScaler: 1,
2674
- padAngle: 2e-3,
2675
- //0.01, //0.04,
2676
- label: {
2677
- fontSize: 12,
2678
- maxDeltaAngle: 0.05,
2679
- animationDuration: 1e3,
2680
- overlapAngleFactor: 5
2681
- // 5 is set by testing, because label height is not known before rendering
2682
- },
2683
- cnv: {
2684
- capping: 5,
2685
- percentile: 80,
2686
- ampColor: "#D6683C",
2687
- lossColor: "#67a9cf",
2688
- cappedAmpColor: "#8B0000",
2689
- cappedLossColor: "#00008B",
2690
- unit: "Unit"
2691
- },
2692
- snv: {
2693
- maxMutationCount: 1e4
2694
- },
2695
- legend: {
2696
- snvTitle: "SNV",
2697
- cnvTitle: "CNV",
2698
- lohTitle: "LOH",
2699
- fusionTitle: "SV",
2700
- // Structural Variants (color by co-location)
2701
- lohLegendEnabled: true,
2702
- fontSize: 12,
2703
- rowHeight: 48
2704
- },
2705
- menu: {
2706
- padding: 5
2707
- }
2708
- };
2709
- if (overrides?.Disco?.radius != null && (overrides.Disco.radius > 1e3 || overrides.Disco.radius < 200)) {
2710
- console.log(`${overrides?.Disco?.radius} is greater or lower than the min and max for the radius`);
2711
- }
2712
- return copyMerge(defaults, overrides);
2713
- }
2714
-
2715
- // plots/disco/snv/NonExonicSnvRenderer.ts
2716
- var NonExonicSnvRenderer = class {
2717
- constructor(geneClickListener) {
2718
- this.geneClickListener = geneClickListener;
2719
- }
2720
- render(holder, elements) {
2721
- const arcGenerator = arc_default();
2722
- const arcs = holder.append("g");
2723
- const menu = MenuProvider.create();
2724
- arcs.selectAll("path").data(elements).enter().append("path").attr("d", (d) => arcGenerator(d)).attr("fill", (d) => d.color).on("mouseover", (mouseEvent, arc) => {
2725
- const table = table2col({ holder: menu.d });
2726
- const snv = structuredClone(arc);
2727
- snv.dt = dtsnvindel;
2728
- snv.class = arc.dataClass;
2729
- snv.gene = snv.text;
2730
- {
2731
- const [td1, td2] = table.addRow();
2732
- td1.text("Consequence");
2733
- td2.append("span").text(snv.mname);
2734
- td2.append("span").style("margin-left", "5px").style("color", snv.color).style("font-size", ".8em").text(snv.dataClass);
2735
- }
2736
- {
2737
- const [td1, td2] = table.addRow();
2738
- td1.text(snv.ref && snv.alt ? "Mutation" : "Position");
2739
- td2.append("span").text(`${snv.chr}:${snv.pos + 1} ${snv.ref && snv.alt ? snv.ref + ">" + snv.alt : ""}`);
2740
- }
2741
- if (snv.gene) {
2742
- const [td1, td2] = table.addRow();
2743
- td1.text("Gene");
2744
- td2.text(snv.gene);
2745
- }
2746
- if (snv.occurrence > 1) {
2747
- const [td1, td2] = table.addRow();
2748
- td1.text("Occurrence");
2749
- td2.text(snv.occurrence);
2750
- }
2751
- if (hasAnyValidVafEntry(arc.vafs)) {
2752
- const [td1, td2] = table.addRow();
2753
- td1.text("Read count");
2754
- appendVafBars(td2, arc.vafs);
2755
- }
2756
- menu.show(mouseEvent.x, mouseEvent.y);
2757
- }).on("mouseout", () => {
2758
- menu.clear();
2759
- menu.hide();
2760
- }).on("click", (mouseEvent, arc) => {
2761
- this.geneClickListener(arc.text, [arc.mname]);
2762
- });
2763
- }
2764
- };
2765
-
2766
- // plots/disco/snv/SnvRenderer.ts
2767
- var SnvRenderer = class {
2768
- constructor(svnWidth, geneClickListener) {
2769
- this.svnWidth = svnWidth;
2770
- this.geneClickListener = geneClickListener;
2771
- }
2772
- render(holder, elements) {
2773
- if (elements.length > 0) {
2774
- const svnInnerRadius = elements[0].innerRadius;
2775
- const fullArcRenderer = new FullArcRenderer(svnInnerRadius, this.svnWidth, "#6464641A");
2776
- fullArcRenderer.render(holder);
2777
- }
2778
- const arcGenerator = arc_default();
2779
- const arcs = holder.append("g");
2780
- const menu = MenuProvider.create();
2781
- arcs.selectAll("path").data(elements).enter().append("path").attr("d", (d) => arcGenerator(d)).attr("fill", (d) => d.color).on("mouseover", (mouseEvent, arc) => {
2782
- const table = table2col({ holder: menu.d });
2783
- const snv = structuredClone(arc);
2784
- snv.dt = dtsnvindel;
2785
- snv.class = arc.dataClass;
2786
- snv.gene = snv.text;
2787
- {
2788
- const [td1, td2] = table.addRow();
2789
- td1.text("Consequence");
2790
- td2.append("span").text(snv.mname);
2791
- td2.append("span").style("margin-left", "5px").style("color", snv.color).style("font-size", ".8em").text(snv.dataClass);
2792
- }
2793
- {
2794
- const [td1, td2] = table.addRow();
2795
- td1.text(snv.ref && snv.alt ? "Mutation" : "Position");
2796
- td2.append("span").text(`${snv.chr}:${snv.pos + 1} ${snv.ref && snv.alt ? snv.ref + ">" + snv.alt : ""}`);
2797
- }
2798
- if (snv.gene) {
2799
- const [td1, td2] = table.addRow();
2800
- td1.text("Gene");
2801
- td2.text(snv.gene);
2802
- }
2803
- if (snv.occurrence > 1) {
2804
- const [td1, td2] = table.addRow();
2805
- td1.text("Occurrence");
2806
- td2.text(snv.occurrence);
2807
- }
2808
- if (hasAnyValidVafEntry(arc.vafs)) {
2809
- const [td1, td2] = table.addRow();
2810
- td1.text("Read count");
2811
- appendVafBars(td2, arc.vafs);
2812
- }
2813
- menu.show(mouseEvent.x, mouseEvent.y);
2814
- }).on("mouseout", () => {
2815
- menu.clear();
2816
- menu.hide();
2817
- }).on("click", (mouseEvent, arc) => {
2818
- this.geneClickListener(arc.text, [arc.mname]);
2819
- });
2820
- }
2821
- };
2822
-
2823
- // plots/disco/loh/LohRenderer.ts
2824
- var LohRenderer = class {
2825
- render(holder, elements) {
2826
- const arcGenerator = arc_default();
2827
- const arcs = holder.append("g");
2828
- const menu = MenuProvider.create();
2829
- arcs.selectAll("path").data(elements).enter().append("path").attr("d", (d) => arcGenerator(d)).attr("fill", (d) => d.color).on("mouseover", (mouseEvent, arc) => {
2830
- const table = table2col({ holder: menu.d });
2831
- const loh = structuredClone(arc);
2832
- loh.dt = dtloh;
2833
- loh.gene = loh.text;
2834
- {
2835
- const [td12, td22] = table.addRow();
2836
- td12.text("Data type");
2837
- td22.append("span").style("margin-left", "5px").text("Loss of Heterozygosity");
2838
- }
2839
- const [td1, td2] = table.addRow();
2840
- td1.text("Position");
2841
- td2.append("span").text(`${arc.chr}:${arc.start}-${arc.stop}`);
2842
- menu.show(mouseEvent.x, mouseEvent.y);
2843
- }).on("mouseout", () => {
2844
- menu.clear();
2845
- menu.hide();
2846
- });
2847
- }
2848
- };
2849
-
2850
- // plots/disco/cnv/CnvBarRenderer.ts
2851
- var CnvBarRenderer = class {
2852
- render(holder, elements) {
2853
- const arcGenerator = arc_default();
2854
- const arcs = holder.append("g");
2855
- const hoverOverlay = holder.append("g").attr("class", "hover-overlay").style("pointer-events", "none");
2856
- const menu = MenuProvider.create();
2857
- arcs.selectAll("path").data(elements).enter().append("path").attr("d", (d) => arcGenerator(d)).attr("fill", (d) => d.color).on("mouseover", (mouseEvent, arc) => {
2858
- hoverOverlay.selectAll("*").remove();
2859
- hoverOverlay.append("path").datum(arc).attr("d", arcGenerator(arc)).attr("fill", "none").attr("stroke", "black").attr("stroke-width", 1);
2860
- const cnv = structuredClone(arc);
2861
- cnv.dt = dtcnv;
2862
- cnv.samples = [{ sample_id: arc.sampleName }];
2863
- cnv.gene = cnv.text;
2864
- const table = table2col({ holder: menu.d });
2865
- {
2866
- const [c1, c2] = table.addRow();
2867
- c1.text("CNV");
2868
- c2.html(`<span style="background:${cnv.color}">&nbsp;&nbsp;</span> ${cnv.value}`);
2869
- }
2870
- {
2871
- const [c1, c2] = table.addRow();
2872
- c1.text("Position");
2873
- c2.text(cnv.chr + ":" + cnv.start + "-" + cnv.stop);
2874
- }
2875
- {
2876
- const [c1, c2] = table.addRow();
2877
- c1.text("Unit");
2878
- c2.text(cnv.value);
2879
- }
2880
- menu.show(mouseEvent.x, mouseEvent.y);
2881
- }).on("mouseout", () => {
2882
- hoverOverlay.selectAll("*").remove();
2883
- menu.clear();
2884
- menu.hide();
2885
- });
2886
- }
2887
- };
2888
-
2889
- // plots/disco/cnv/CnvHeatmapRenderer.ts
2890
- var CnvHeatmapRenderer = class {
2891
- constructor(positivePercentile = 0, negativePercentile = 0) {
2892
- this.positivePercentile = positivePercentile;
2893
- this.negativePercentile = negativePercentile;
2894
- }
2895
- render(holder, elements) {
2896
- const arcGenerator = arc_default();
2897
- const arcs = holder.append("g");
2898
- const hoverOverlay = holder.append("g").attr("class", "hover-overlay").style("pointer-events", "none");
2899
- const menu = MenuProvider.create();
2900
- arcs.selectAll("path").data(elements).enter().append("path").attr("d", (d) => arcGenerator(d)).attr("fill", (d) => this.getColor(d.color, d.value)).on("mouseenter", (mouseEvent, arc) => {
2901
- hoverOverlay.append("path").datum(arc).attr("d", arcGenerator(arc)).attr("fill", "none").attr("stroke", "black").attr("stroke-width", 1);
2902
- const table = table2col({ holder: menu.d });
2903
- const cnv = structuredClone(arc);
2904
- cnv.dt = dtcnv;
2905
- cnv.samples = [{ sample_id: arc.sampleName }];
2906
- cnv.gene = cnv.text;
2907
- {
2908
- const [c1, c2] = table.addRow();
2909
- c1.text("CNV");
2910
- c2.html(
2911
- `<span style="background:${this.getColor(
2912
- cnv.color,
2913
- cnv.value
2914
- )}; border:solid lightgrey 0.1px;">&nbsp;&nbsp;</span> ${cnv.value}`
2915
- );
2916
- }
2917
- {
2918
- const [c1, c2] = table.addRow();
2919
- c1.text("Position");
2920
- c2.text(cnv.chr + ":" + cnv.start + "-" + cnv.stop);
2921
- }
2922
- menu.show(mouseEvent.x, mouseEvent.y);
2923
- }).on("mouseleave", () => {
2924
- hoverOverlay.selectAll("*").remove();
2925
- menu.clear();
2926
- menu.hide();
2927
- });
2928
- }
2929
- // Computes fill color using linear scale between -P80, 0, and +P80
2930
- getColor(color, value) {
2931
- const maxValue = Math.max(this.positivePercentile, Math.abs(this.negativePercentile));
2932
- return linear(
2933
- [-maxValue, 0, maxValue],
2934
- [color, "white", color]
2935
- // transitions to white in the middle
2936
- ).clamp(true)(value);
2937
- }
2938
- };
2939
-
2940
- // plots/disco/waterfall/MutationWaterfallRenderer.ts
2941
- var MutationWaterfallRenderer = class {
2942
- constructor(dotRadius = 1.5) {
2943
- this.dotRadius = dotRadius;
2944
- }
2945
- render(holder, elements) {
2946
- if (!elements.length) return;
2947
- const ringGroup = holder.append("g").attr("data-testid", "sjpp_mutation_waterfall_ring");
2948
- const menu = MenuProvider.create();
2949
- ringGroup.append("g").selectAll("circle").data(elements).enter().append("circle").attr("cx", (d) => Math.cos(d.startAngle - Math.PI / 2) * d.innerRadius).attr("cy", (d) => Math.sin(d.startAngle - Math.PI / 2) * d.innerRadius).attr("r", this.dotRadius).attr("fill", (d) => d.color).attr("opacity", 0.9).on("mouseover", (event, d) => {
2950
- const distance = Math.round(Math.pow(10, d.logDistance));
2951
- menu.clear();
2952
- const table = table2col({ holder: menu.d });
2953
- {
2954
- const [td1, td2] = table.addRow();
2955
- td1.text("Intermutation distance");
2956
- td2.text(`${bplen(distance)}`);
2957
- }
2958
- menu.show(event.x, event.y);
2959
- }).on("mouseout", () => {
2960
- menu.clear();
2961
- menu.hide();
2962
- });
2963
- this.renderAxis(ringGroup, elements[0]);
2964
- }
2965
- renderAxis(holder, referencePoint) {
2966
- const { ringInnerRadius, ringWidth, rangeMin, rangeMax } = referencePoint;
2967
- const axisGroup = holder.append("g").attr("class", "sjpp-waterfall-axis");
2968
- const topRadius = ringInnerRadius + ringWidth;
2969
- axisGroup.append("line").attr("x1", 0).attr("y1", -topRadius).attr("x2", 0).attr("y2", -ringInnerRadius).attr("stroke", "#6e6e6e").attr("stroke-width", 1);
2970
- const span = rangeMax - rangeMin || 1;
2971
- const tickValues = rangeMax === rangeMin ? [rangeMin] : ticks(rangeMin, rangeMax, 4);
2972
- tickValues.forEach((value) => {
2973
- const ratio = (value - rangeMin) / span;
2974
- const radius = ringInnerRadius + ringWidth * ratio;
2975
- const y = -radius;
2976
- axisGroup.append("line").attr("x1", -4).attr("x2", 4).attr("y1", y).attr("y2", y).attr("stroke", "#6e6e6e");
2977
- const exponent = Math.round(value * 10) / 10;
2978
- const formatted = Number.isInteger(exponent) ? `${exponent}` : exponent.toFixed(1);
2979
- axisGroup.append("text").attr("x", 6).attr("y", y + 3).style("font-size", "10px").style("fill", "#4d4d4d").text(`10^${formatted} bp`);
2980
- });
2981
- }
2982
- };
2983
-
2984
- // plots/disco/Disco.ts
2985
- var Disco = class {
2986
- constructor(opts) {
2987
- this.recreateViewModel = false;
2988
- this.onCnvSourceSelect = (index) => {
2989
- const state = this.app.getState();
2990
- const args = state.args;
2991
- const alt = args.alternativeDataByDt?.[dtcnv];
2992
- if (!alt) return;
2993
- const altClone = structuredClone(args.alternativeDataByDt);
2994
- altClone[dtcnv].forEach((d, i) => d.inuse = i === index);
2995
- const selected = altClone[dtcnv][index];
2996
- selected.mlst.forEach((d) => d.position = d.pos);
2997
- const baseData = args.data.filter((d) => d.dt != dtcnv && d.dt != dtloh);
2998
- const newData = baseData.concat(selected.mlst);
2999
- this.app.dispatch({
3000
- type: "app_refresh",
3001
- state: { args: { ...args, data: newData, alternativeDataByDt: altClone } }
3002
- });
3003
- };
3004
- this.type = "Disco";
3005
- this.opts = opts;
3006
- this.isOpen = false;
3007
- this.discoInteractions = new DiscoInteractions(this);
3008
- }
3009
- static {
3010
- this.type = "Disco";
3011
- }
3012
- async init() {
3013
- const state = this.app.getState();
3014
- const settings = state.plots.find((p) => p.id === this.id).settings;
3015
- this.stateViewModelMapper = new ViewModelMapper(settings, this.discoInteractions);
3016
- this.viewModel = this.stateViewModelMapper.map(state);
3017
- const holder = this.opts.holder;
3018
- const controlsHolder = holder.append("div").style("display", "inline-block").style("vertical-align", "top");
3019
- const mainDiv = holder.append("div").style("display", "inline-block");
3020
- const topbar = controlsHolder.append("div");
3021
- const config_div = controlsHolder.append("div");
3022
- const configInputsOptions = this.getConfigInputsOptions(this.viewModel);
3023
- this.features = await multiInit({
3024
- topbar: topBarInit({
3025
- app: this.app,
3026
- id: this.id,
3027
- // TODO change the way svg is selected
3028
- downloadHandler: () => this.discoInteractions.downloadClickListener(holder.select('svg[id="sjpp_disco_plot"]').node()),
3029
- callback: () => this.toggleVisibility(this.isOpen),
3030
- isOpen: () => this.isOpen,
3031
- holder: topbar
3032
- }),
3033
- config: configUiInit({
3034
- app: this.app,
3035
- id: this.id,
3036
- holder: config_div,
3037
- isOpen: () => this.isOpen,
3038
- inputs: configInputsOptions
3039
- })
3040
- });
3041
- this.errorDiv = mainDiv.append("div").attr("data-testid", "sjpp-disco-errorDiv");
3042
- this.svgDiv = mainDiv.append("div").attr("data-testid", "sjpp-disco-svgDiv");
3043
- }
3044
- getConfigInputsOptions(viewModel) {
3045
- const configInputsOptions = [];
3046
- if (viewModel.settings.Disco.showPrioritizeGeneLabelsByGeneSets) {
3047
- const filterMutationsGenesCheckbox = [
3048
- {
3049
- boxLabel: viewModel.genesetName,
3050
- label: `Filter mutations`,
3051
- type: "checkbox",
3052
- chartType: "Disco",
3053
- settingsKey: "prioritizeGeneLabelsByGeneSets",
3054
- title: `Only show mutations for ${viewModel.genesetName} genes`
3055
- }
3056
- ];
3057
- configInputsOptions.push(...filterMutationsGenesCheckbox);
3058
- }
3059
- if (viewModel.cnvMaxValue !== 0 || viewModel.cnvMinValue !== 0) {
3060
- const cnvConfigInputOptions = [
3061
- {
3062
- boxLabel: "",
3063
- label: "CNV rendering type",
3064
- type: "radio",
3065
- chartType: "Disco",
3066
- settingsKey: "cnvRenderingType",
3067
- title: "CNV rendering type",
3068
- options: [
3069
- { label: "Heatmap", value: "heatmap" /* heatmap */ },
3070
- { label: "Bar", value: "bar" /* bar */ }
3071
- ]
3072
- }
3073
- ];
3074
- configInputsOptions.push(...cnvConfigInputOptions);
3075
- }
3076
- configInputsOptions.push({
3077
- boxLabel: "",
3078
- label: "Show gene names",
3079
- type: "checkbox",
3080
- chartType: "Disco",
3081
- settingsKey: "showGeneNames",
3082
- title: "Show gene name labels on the outside of the plot"
3083
- });
3084
- const genomeChr = this.app.opts.state.args.genome.majorchr;
3085
- const chromosomeConfigOption = {
3086
- label: "Chromosomes",
3087
- title: "Chromosomes shown in the plot",
3088
- type: "multiCheckbox",
3089
- chartType: "Disco",
3090
- settingsKey: "hiddenChromosomes",
3091
- style: {
3092
- colNum: 4
3093
- },
3094
- options: Object.keys(genomeChr).map((c) => ({ label: c, value: c })),
3095
- processInput: (values = []) => {
3096
- const reverse = Object.keys(genomeChr).filter((c) => !values.includes(c));
3097
- return reverse;
3098
- }
3099
- };
3100
- configInputsOptions.push(chromosomeConfigOption);
3101
- configInputsOptions.push({
3102
- boxLabel: "",
3103
- label: "Auto radius",
3104
- type: "checkbox",
3105
- chartType: "Disco",
3106
- settingsKey: "autoRadius",
3107
- title: "Automatically set the radius based on the number of data rings"
3108
- });
3109
- const dimensionOptions = [
3110
- {
3111
- label: "Radius",
3112
- title: "Set the radius of the entire plot, between 200 and 1000 pixels.",
3113
- type: "number",
3114
- chartType: "Disco",
3115
- settingsKey: "radius",
3116
- debounceInterval: 500,
3117
- step: 25,
3118
- min: 200,
3119
- max: 1e3,
3120
- getDisplayStyle: (plot) => plot.settings.Disco.autoRadius ? "none" : "table-row"
3121
- },
3122
- {
3123
- label: "Fusion opacity",
3124
- title: "Adjust opacity of fusion arcs, between 0 and 1",
3125
- type: "number",
3126
- chartType: "Disco",
3127
- settingsKey: "fusionOpacity",
3128
- step: 0.01,
3129
- min: 0,
3130
- max: 1,
3131
- debounceInterval: 500
3132
- }
3133
- ];
3134
- configInputsOptions.push(...dimensionOptions);
3135
- if (viewModel.canShowMutationWaterfallPlot && viewModel.snvDataLength > 0) {
3136
- configInputsOptions.push({
3137
- boxLabel: "",
3138
- label: "Mutation Waterfall Plot",
3139
- type: "checkbox",
3140
- chartType: "Disco",
3141
- settingsKey: "mutationWaterfallPlot",
3142
- title: "Render log10 intermutation distance ring for SNV/indel data"
3143
- });
3144
- }
3145
- return configInputsOptions;
3146
- }
3147
- async main() {
3148
- const settings = this.state.settings;
3149
- this.isOpen = settings.Disco.isOpen;
3150
- if (this.recreateViewModel) {
3151
- this.stateViewModelMapper = new ViewModelMapper(settings, this.discoInteractions);
3152
- this.viewModel = this.stateViewModelMapper.map(this.app.getState());
3153
- }
3154
- this.recreateViewModel = true;
3155
- if (this.viewModel) {
3156
- this.svgDiv.selectAll("*").remove();
3157
- const appState = this.app.getState();
3158
- this.viewModel.svgDiv = this.svgDiv;
3159
- this.viewModel.appState = appState;
3160
- for (const name in this.features) {
3161
- this.features[name].update({ state: this.state, appState });
3162
- }
3163
- const legendRenderer = new LegendRenderer(this.viewModel.cappedCnvMaxAbsValue, settings.label.fontSize);
3164
- const discoRenderer = new DiscoRenderer(
3165
- this.getRingRenderers(this.viewModel.settings, this.viewModel, this.discoInteractions.geneClickListener),
3166
- legendRenderer,
3167
- this.app.opts.state.args.genome
3168
- );
3169
- discoRenderer.render(this.svgDiv, this.viewModel, this.onCnvSourceSelect);
3170
- if (this.viewModel.invalidDataInfo?.entries?.length) {
3171
- InvalidDataUI.render(this.errorDiv, this.viewModel.invalidDataInfo);
3172
- }
3173
- }
3174
- }
3175
- getState(appState) {
3176
- const config = appState.plots.find((p) => p.id === this.id);
3177
- if (!config) return config;
3178
- return { ...config, mlst: appState.args.data };
3179
- }
3180
- getRingRenderers(settings, viewModel, geneClickListener) {
3181
- const chromosomesRenderer = new ChromosomesRenderer(
3182
- settings.padAngle,
3183
- settings.rings.chromosomeInnerRadius,
3184
- settings.rings.chromosomeInnerRadius + settings.rings.chromosomeWidth,
3185
- settings.label.fontSize
3186
- );
3187
- const labelsRenderer = new LabelsRenderer(
3188
- settings.label.animationDuration,
3189
- settings.label.fontSize,
3190
- geneClickListener
3191
- );
3192
- const nonExonicSnvRenderer = new NonExonicSnvRenderer(geneClickListener);
3193
- const snvRenderer = new SnvRenderer(settings.rings.snvRingWidth, geneClickListener);
3194
- const cnvRenderer = settings.Disco.cnvRenderingType === "heatmap" /* heatmap */ ? new CnvHeatmapRenderer(viewModel.positivePercentile, viewModel.negativePercentile) : new CnvBarRenderer();
3195
- const lohRenderer = new LohRenderer();
3196
- const mutationWaterfallRenderer = new MutationWaterfallRenderer();
3197
- const renderersMap = /* @__PURE__ */ new Map();
3198
- renderersMap.set(0 /* CHROMOSOME */, chromosomesRenderer);
3199
- renderersMap.set(1 /* LABEL */, labelsRenderer);
3200
- renderersMap.set(2 /* NONEXONICSNV */, nonExonicSnvRenderer);
3201
- renderersMap.set(3 /* SNV */, snvRenderer);
3202
- renderersMap.set(4 /* MUTATION_WATERFALL */, mutationWaterfallRenderer);
3203
- renderersMap.set(5 /* CNV */, cnvRenderer);
3204
- renderersMap.set(6 /* LOH */, lohRenderer);
3205
- return renderersMap;
3206
- }
3207
- toggleVisibility(isOpen) {
3208
- this.app.dispatch({
3209
- type: "plot_edit",
3210
- id: this.opts.id,
3211
- config: {
3212
- settings: {
3213
- Disco: { isOpen: !isOpen }
3214
- }
3215
- }
3216
- });
3217
- }
3218
- };
3219
- var discoInit = getCompInit(Disco);
3220
- var componentInit = discoInit;
3221
- async function getPlotConfig(opts, app) {
3222
- return {
3223
- chartType: "Disco",
3224
- subfolder: "disco",
3225
- extension: "ts",
3226
- settings: discoDefaults(opts.overrides, app)
3227
- };
3228
- }
3229
- export {
3230
- componentInit,
3231
- Disco as default,
3232
- discoInit,
3233
- getPlotConfig
3234
- };
3235
- //# sourceMappingURL=Disco-DX4S44SI.js.map