@sjcrh/proteinpaint-client 2.187.0 → 2.188.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 (963) hide show
  1. package/dist/2dmaf-6YIEXAIG.js +1372 -0
  2. package/dist/AIProjectAdmin-5K5NIQNT.js +828 -0
  3. package/dist/AppHeader-4SN5M6SZ.js +834 -0
  4. package/dist/BoxPlot-DBJA6TQF.js +1218 -0
  5. package/dist/CorrelationVolcano-MDMTMTT5.js +618 -0
  6. package/dist/DE-S5AFNI4I.js +94 -0
  7. package/dist/DEinput-XVBBA74N.js +300 -0
  8. package/dist/DifferentialAnalysis-TUBGPAB2.js +244 -0
  9. package/dist/DifferentialAnalysis-TUBGPAB2.js.map +7 -0
  10. package/dist/Disco-VV7FQ7WW.js +3236 -0
  11. package/dist/Disco.UI-JDJFJFEY.js +244 -0
  12. package/dist/DmrPlot-XOG67W74.js +641 -0
  13. package/dist/GB-K3AWZQFF.js +1129 -0
  14. package/dist/GeneExpInput-Y7MDS2CA.js +365 -0
  15. package/dist/HicApp-53OTZ3YU.js +2249 -0
  16. package/dist/NumBinaryEditor-SB4YR3JM.js +269 -0
  17. package/dist/NumBinaryEditor.unit.spec-V2W2OZYP.js +285 -0
  18. package/dist/NumContEditor-RZZBM7PR.js +106 -0
  19. package/dist/NumContEditor.unit.spec-GAAW3ZZN.js +168 -0
  20. package/dist/NumCustomBinEditor-GFCGPRPI.js +37 -0
  21. package/dist/NumCustomBinEditor.unit.spec-24MXSO3L.js +283 -0
  22. package/dist/NumDiscreteEditor-HAHIOFNC.js +178 -0
  23. package/dist/NumDiscreteEditor.unit.spec-JYN2CWSI.js +201 -0
  24. package/dist/NumRegularBinEditor-7DOE64RB.js +37 -0
  25. package/dist/NumRegularBinEditor.unit.spec-2WU4GGNT.js +226 -0
  26. package/dist/NumSplineEditor-JLRD5TVX.js +191 -0
  27. package/dist/NumSplineEditor.unit.spec-LOG7CECJ.js +198 -0
  28. package/dist/NumericDensity-IDOP7I34.js +37 -0
  29. package/dist/NumericDensity.unit.spec-HTJQRPVH.js +220 -0
  30. package/dist/NumericHandler-DWVVGLLB.js +38 -0
  31. package/dist/NumericHandler.unit.spec-BDDFTHOF.js +218 -0
  32. package/dist/ProteomeInput-PK4ZM3SZ.js +395 -0
  33. package/dist/ProteomeInput-PK4ZM3SZ.js.map +7 -0
  34. package/dist/RunChart2-PBJ56YX3.js +757 -0
  35. package/dist/SC-UC3HP2MY.js +830 -0
  36. package/dist/SC-UC3HP2MY.js.map +7 -0
  37. package/dist/Volcano-BZJCA53R.js +1314 -0
  38. package/dist/Volcano-BZJCA53R.js.map +7 -0
  39. package/dist/WSIViewer-OHOP2DZT.js +48475 -0
  40. package/dist/WSIViewer-OHOP2DZT.js.map +7 -0
  41. package/dist/WsiSamplesPlot-FOMPMEXK.js +164 -0
  42. package/dist/adSandbox-SRPPCYYR.js +37 -0
  43. package/dist/alphaGenome-IS2WAJCK.js +174 -0
  44. package/dist/app-GTHYSGWI.js +36 -0
  45. package/dist/app-XEKETNLG.js +48 -0
  46. package/dist/app.js +20 -20
  47. package/dist/bam-GQBFL6A7.js +859 -0
  48. package/dist/barchart-AESC4JSX.js +46 -0
  49. package/dist/barchart.data-RE34IC4G.js +22 -0
  50. package/dist/barchart.events-KM4J5ISO.js +46 -0
  51. package/dist/barchart.integration.spec-DFVSBGO3.js +1676 -0
  52. package/dist/barchart2-NNTL4RQZ.js +310 -0
  53. package/dist/block-EHZM3FUX.js +6201 -0
  54. package/dist/block.init-EAEFNNF6.js +37 -0
  55. package/dist/block.mds.expressionrank-ZBHA2CFE.js +358 -0
  56. package/dist/block.mds.geneboxplot-4ZU3QUAK.js +827 -0
  57. package/dist/block.mds.junction-PDH55JXO.js +1544 -0
  58. package/dist/block.mds.svcnv-QWBU54XQ.js +6800 -0
  59. package/dist/block.svg-HUGBYWXU.js +163 -0
  60. package/dist/block.tk.aicheck-SDCWXQZF.js +282 -0
  61. package/dist/block.tk.ase-HMUTHCJS.js +364 -0
  62. package/dist/block.tk.bam-Q7B2YQLI.js +1905 -0
  63. package/dist/block.tk.bedgraphdot-QBGBSVHN.js +383 -0
  64. package/dist/block.tk.bigwig.ui-767A3MUH.js +211 -0
  65. package/dist/block.tk.hicstraw-LEZUZHLF.js +822 -0
  66. package/dist/block.tk.junction-GQHCZOYR.js +2363 -0
  67. package/dist/block.tk.junction.textmatrixui-D5QUO7KQ.js +198 -0
  68. package/dist/block.tk.ld-E3MHZOG5.js +98 -0
  69. package/dist/block.tk.menu-XE7PFYGR.js +1028 -0
  70. package/dist/block.tk.pgv-MPPMPDED.js +943 -0
  71. package/dist/brainImaging-YQ443NOL.js +422 -0
  72. package/dist/chunk-26WXJBSR.js +228 -0
  73. package/dist/chunk-2P6Z7JFC.js +119 -0
  74. package/dist/chunk-2QQO4RRD.js +2681 -0
  75. package/dist/chunk-2T7VYQLY.js +281 -0
  76. package/dist/chunk-2T7VYQLY.js.map +7 -0
  77. package/dist/chunk-2XPDA6NL.js +20652 -0
  78. package/dist/chunk-2XPDA6NL.js.map +7 -0
  79. package/dist/chunk-37ARSZOI.js +2815 -0
  80. package/dist/chunk-42Q53PXE.js +381 -0
  81. package/dist/chunk-46ASPS5Y.js +386 -0
  82. package/dist/chunk-4KPI7PB5.js +142 -0
  83. package/dist/chunk-4MDNMCGZ.js +102 -0
  84. package/dist/chunk-5IG3E4DT.js +272 -0
  85. package/dist/chunk-5MIR7IHI.js +52 -0
  86. package/dist/chunk-5MZVXJVA.js +55 -0
  87. package/dist/chunk-66D5GRS5.js +263 -0
  88. package/dist/chunk-6ATE2TRC.js +534 -0
  89. package/dist/chunk-6BFR6MK3.js +158 -0
  90. package/dist/chunk-6NJMCO4X.js +335 -0
  91. package/dist/chunk-6ON5KAMO.js +54 -0
  92. package/dist/chunk-76GPYMHZ.js +102 -0
  93. package/dist/chunk-7AAFBFOH.js +147 -0
  94. package/dist/chunk-7OOZHEUC.js +302 -0
  95. package/dist/chunk-A4VLWLYF.js +226 -0
  96. package/dist/chunk-A6EFWGWD.js +444 -0
  97. package/dist/chunk-ALW5XXVW.js +170 -0
  98. package/dist/chunk-ANCT2BGO.js +34 -0
  99. package/dist/chunk-AROMXWCY.js +291 -0
  100. package/dist/chunk-AY4UBGLC.js +815 -0
  101. package/dist/chunk-B43MTEYB.js +84 -0
  102. package/dist/chunk-B43MTEYB.js.map +7 -0
  103. package/dist/chunk-BMVLR3TM.js +1210 -0
  104. package/dist/chunk-BR7JA2EO.js +621 -0
  105. package/dist/chunk-C3SYSMNE.js +42 -0
  106. package/dist/chunk-C3SYSMNE.js.map +7 -0
  107. package/dist/chunk-D3HJXMTH.js +17 -0
  108. package/dist/chunk-DKUEZ4XD.js +205 -0
  109. package/dist/chunk-DT3MMC5U.js +31 -0
  110. package/dist/chunk-DYVKN7EE.js +5000 -0
  111. package/dist/chunk-EF37UZY6.js +37 -0
  112. package/dist/chunk-ESXMS7FW.js +229 -0
  113. package/dist/chunk-FDK4UJMN.js +263 -0
  114. package/dist/chunk-FDK4UJMN.js.map +7 -0
  115. package/dist/chunk-FUSVXQ6C.js +368 -0
  116. package/dist/chunk-G7JRRTS5.js +170 -0
  117. package/dist/chunk-G7JRRTS5.js.map +7 -0
  118. package/dist/chunk-GHWHLSUX.js +192 -0
  119. package/dist/chunk-GHWHLSUX.js.map +7 -0
  120. package/dist/chunk-GXKVAPGP.js +2786 -0
  121. package/dist/chunk-H4JIENLQ.js +39 -0
  122. package/dist/chunk-H7YJG4YM.js +470 -0
  123. package/dist/chunk-I24KPIDD.js +148 -0
  124. package/dist/chunk-IENFDUWD.js +203 -0
  125. package/dist/chunk-IKHIY6IZ.js +2327 -0
  126. package/dist/chunk-IKHIY6IZ.js.map +7 -0
  127. package/dist/chunk-J7BISJTL.js +50 -0
  128. package/dist/chunk-J7KYOSEK.js +824 -0
  129. package/dist/chunk-JGPZ5254.js +371 -0
  130. package/dist/chunk-JUIPCWAM.js +194 -0
  131. package/dist/chunk-LO4NMQ7W.js +293 -0
  132. package/dist/chunk-LSSLS5HV.js +95 -0
  133. package/dist/chunk-MDLRB3MR.js +407 -0
  134. package/dist/chunk-MJLKGZ27.js +129 -0
  135. package/dist/chunk-MYWJQRTD.js +1849 -0
  136. package/dist/chunk-MYWJQRTD.js.map +7 -0
  137. package/dist/chunk-NL5T3SBK.js +4209 -0
  138. package/dist/chunk-NMBIT4IK.js +46 -0
  139. package/dist/chunk-NMBIT4IK.js.map +7 -0
  140. package/dist/chunk-ONAYJVN2.js +217 -0
  141. package/dist/chunk-PP7K4R2E.js +141 -0
  142. package/dist/chunk-PP7K4R2E.js.map +7 -0
  143. package/dist/chunk-PSMFOARZ.js +14 -0
  144. package/dist/chunk-QX3GF2IA.js +514 -0
  145. package/dist/chunk-QZ2U4BOS.js +1159 -0
  146. package/dist/chunk-RBZBBNLL.js +1087 -0
  147. package/dist/chunk-RQ2ZJ66W.js +276 -0
  148. package/dist/chunk-RQ2ZJ66W.js.map +7 -0
  149. package/dist/chunk-RZTFQXWV.js +117 -0
  150. package/dist/chunk-SJC2C77V.js +177 -0
  151. package/dist/chunk-THUXB7EE.js +698 -0
  152. package/dist/chunk-THUXB7EE.js.map +7 -0
  153. package/dist/chunk-TVXVP4M6.js +215 -0
  154. package/dist/chunk-UTDPKDIY.js +482 -0
  155. package/dist/chunk-UVIUB7QI.js +280 -0
  156. package/dist/chunk-VAUSRBL5.js +6364 -0
  157. package/dist/chunk-VP3IZVQA.js +54 -0
  158. package/dist/chunk-VP3IZVQA.js.map +7 -0
  159. package/dist/chunk-WP22GYZ2.js +446 -0
  160. package/dist/chunk-WUNX3VST.js +1271 -0
  161. package/dist/chunk-X7GDCYND.js +1561 -0
  162. package/dist/chunk-X7GDCYND.js.map +7 -0
  163. package/dist/chunk-XB3V6S2X.js +1230 -0
  164. package/dist/chunk-XB3V6S2X.js.map +7 -0
  165. package/dist/chunk-XD4TBJK2.js +455 -0
  166. package/dist/chunk-Y6DSXMPB.js +121 -0
  167. package/dist/chunk-YBIZRASR.js +252 -0
  168. package/dist/chunk-YI2YH7ZK.js +158 -0
  169. package/dist/chunk-YLDE3PVC.js +1943 -0
  170. package/dist/chunk-Z736NYXL.js +26 -0
  171. package/dist/chunk-ZEJB7CPC.js +95 -0
  172. package/dist/chunk-ZGWEBKZ4.js +100 -0
  173. package/dist/condition-FSF6ROJV.js +331 -0
  174. package/dist/controls-OPSBFDFZ.js +40 -0
  175. package/dist/controls.config-3QRV5363.js +38 -0
  176. package/dist/correlation-WLOI7Z35.js +97 -0
  177. package/dist/cuminc-G2UGJUUA.js +1148 -0
  178. package/dist/cuminc.integration.spec-X5NEZ6S5.js +677 -0
  179. package/dist/customdata.inputui-RNW3AO3Z.js +288 -0
  180. package/dist/dataDownload-4U3TGDMH.js +329 -0
  181. package/dist/dataDownload.integration.spec-6FUI2SJ4.js +192 -0
  182. package/dist/databrowser.ui-4GVJVJWG.js +432 -0
  183. package/dist/dictionary-NSDS7Z4K.js +110 -0
  184. package/dist/dnaMethylation-OYQB75LD.js +37 -0
  185. package/dist/dnaMethylation.integration.spec-6TTLV34N.js +202 -0
  186. package/dist/dofetch-4TO3QMT6.js +50 -0
  187. package/dist/e2pca-NYBVR6PL.js +349 -0
  188. package/dist/ep-RTDVEA4D.js +1255 -0
  189. package/dist/expclust.gdc.spec-JVIRESTP.js +306 -0
  190. package/dist/facet-OVBF2QMO.js +520 -0
  191. package/dist/forms2-HTLS54CX.js +533 -0
  192. package/dist/gb-Y3546HMZ.js +87 -0
  193. package/dist/geneExpClustering-PH3PWH3K.js +248 -0
  194. package/dist/geneExpression-2Z2EV3XM.js +37 -0
  195. package/dist/geneExpression-6CFXOCGW.js +312 -0
  196. package/dist/geneExpression.unit.spec-WKUTHRHC.js +101 -0
  197. package/dist/geneORA-SHLZESLB.js +277 -0
  198. package/dist/geneVariant-FHZUIFPM.js +38 -0
  199. package/dist/geneVariant-Y7ZUBEOX.js +40 -0
  200. package/dist/geneVariant.integration.spec-N7TZUOY3.js +197 -0
  201. package/dist/genefusion.ui-7PDVZPZ2.js +308 -0
  202. package/dist/geneset-HLVOGYUI.js +202 -0
  203. package/dist/genomeBrowser.spec-7IVIMUR5.js +280 -0
  204. package/dist/grin2-2GNWIYFU.js +845 -0
  205. package/dist/grin2-2GNWIYFU.js.map +7 -0
  206. package/dist/grin2-Z5O7254R.js +1555 -0
  207. package/dist/gsea-TFC3MBRW.js +46 -0
  208. package/dist/hierCluster-ERSE5I4I.js +62 -0
  209. package/dist/hierCluster-QQZQU5ZG.js +58 -0
  210. package/dist/hierCluster.config-WPINWW37.js +39 -0
  211. package/dist/hierCluster.integration.spec-Y6OHSKPW.js +394 -0
  212. package/dist/hierCluster.interactivity-HS3G5QC5.js +53 -0
  213. package/dist/hierCluster.renderers-W63ZKZTT.js +21 -0
  214. package/dist/imagePlot-QFVN25PM.js +162 -0
  215. package/dist/importPlot-MIDM5APH.js +8 -0
  216. package/dist/isoformExpression-L4TRNT4A.js +39 -0
  217. package/dist/isoformExpression.unit.spec-QQG323LA.js +207 -0
  218. package/dist/launch.adhoc-4NQ6GGGL.js +41 -0
  219. package/dist/leftlabel.sample-JU7AIPZL.js +259 -0
  220. package/dist/legacyDataset-TT4CHF23.js +119 -0
  221. package/dist/lollipop-JG74M6PJ.js +170 -0
  222. package/dist/maf-PDL2EGHI.js +451 -0
  223. package/dist/maftimeline-V43NQEEE.js +592 -0
  224. package/dist/matrix-EB2EFP4S.js +57 -0
  225. package/dist/matrix-Q57FU5FE.js +62 -0
  226. package/dist/matrix.cells-NJIMPD32.js +28 -0
  227. package/dist/matrix.config-GLDEQD3H.js +40 -0
  228. package/dist/matrix.data-6SHAKOQU.js +25 -0
  229. package/dist/matrix.groups-MTDEANQA.js +26 -0
  230. package/dist/matrix.integration.spec-JCZ5VQJU.js +3071 -0
  231. package/dist/matrix.interactivity-SVRNWL6V.js +41 -0
  232. package/dist/matrix.layout-2HREO42N.js +43 -0
  233. package/dist/matrix.legend-QHVKT3MP.js +22 -0
  234. package/dist/matrix.renderers-IYR3ZY6V.js +37 -0
  235. package/dist/matrix.serieses-2VMTQXL2.js +21 -0
  236. package/dist/matrix.sort-PWA2RQQR.js +27 -0
  237. package/dist/matrix.sort.unit.spec-3OYIPTFY.js +471 -0
  238. package/dist/matrix.sorterUi-Y5QLO75X.js +18 -0
  239. package/dist/matrix.sorterUi.unit.spec-BNEXQHLP.js +341 -0
  240. package/dist/mavb-IZDDU4KK.js +731 -0
  241. package/dist/mds.fimo-FWBL7JE6.js +517 -0
  242. package/dist/mds.samplescatterplot-T47C7DJB.js +1549 -0
  243. package/dist/mds.survivalplot-MFZJCGS6.js +482 -0
  244. package/dist/numericDictTermCluster-I2W67RGA.js +72 -0
  245. package/dist/oncomatrix-6W7IBAED.js +294 -0
  246. package/dist/oncomatrix.spec-CEFH5IGH.js +447 -0
  247. package/dist/plot.2dvaf-BN6CFLNU.js +376 -0
  248. package/dist/plot.app-7EYWUCZV.js +40 -0
  249. package/dist/plot.barplot-MDIARSQD.js +101 -0
  250. package/dist/plot.boxplot-RUHGXC54.js +151 -0
  251. package/dist/plot.brainImaging-JEE32ZBV.js +51 -0
  252. package/dist/plot.disco-2RPNPX6E.js +101 -0
  253. package/dist/plot.dzi-7VTYYGGW.js +33 -0
  254. package/dist/plot.ssgq-FHE5KU5C.js +138 -0
  255. package/dist/plot.vaf2cov-WDJJM5Q4.js +258 -0
  256. package/dist/plot.wsi-FQZWHNSF.js +36 -0
  257. package/dist/polar-M7EGINN4.js +185 -0
  258. package/dist/polar2-JFYY43K2.js +227 -0
  259. package/dist/profile.spec-SIOHASOX.js +79 -0
  260. package/dist/profileBarchart-6JLEKVJV.js +266 -0
  261. package/dist/profileForms-G6CH73RV.js +440 -0
  262. package/dist/profilePlot-NQYJOBVV.js +53 -0
  263. package/dist/profileRadar-4TNWIXDB.js +262 -0
  264. package/dist/profileRadarFacility-XPH3LCBQ.js +262 -0
  265. package/dist/proteinView-OZLHO45J.js +1222 -0
  266. package/dist/proteinView-OZLHO45J.js.map +7 -0
  267. package/dist/proteomeAbundance-NQ4635NL.js +12 -0
  268. package/dist/proteomeAbundance-OV24UTZN.js +59 -0
  269. package/dist/proteomeAbundance-OV24UTZN.js.map +7 -0
  270. package/dist/qualitative-DL4WJG3O.js +42 -0
  271. package/dist/radar2-YNOQWHBT.js +315 -0
  272. package/dist/radarFacility2-24UPSI7S.js +324 -0
  273. package/dist/regression-URAUTLTD.js +55 -0
  274. package/dist/regression.inputs-UDVOU7FB.js +47 -0
  275. package/dist/regression.inputs.term-BWW6W34R.js +47 -0
  276. package/dist/regression.inputs.values.table-UKGIZTXG.js +44 -0
  277. package/dist/regression.integration.spec-EBHQTNA3.js +783 -0
  278. package/dist/regression.results-XTOSWIP6.js +39 -0
  279. package/dist/regression.spec-KG2I53VR.js +707 -0
  280. package/dist/report-KH7SNPVF.js +221 -0
  281. package/dist/sampleScatter.spec-PIXGS3LG.js +201 -0
  282. package/dist/sampleView-TWS6VT55.js +47 -0
  283. package/dist/samplelst-6AB5Y4WR.js +110 -0
  284. package/dist/samplematrix-AJAF555E.js +2197 -0
  285. package/dist/sc-PMNYZKXA.js +85 -0
  286. package/dist/scatter-Q2GH3ZJD.js +801 -0
  287. package/dist/scatter.integration.spec-SMMYKWH3.js +1195 -0
  288. package/dist/selectGenomeWithTklst-VE4SDYY7.js +133 -0
  289. package/dist/singleCellCellType-S324GCKW.js +37 -0
  290. package/dist/singleCellCellType.unit.spec-NXC2GELH.js +159 -0
  291. package/dist/singleCellGeneExpression-6H4HRKIA.js +37 -0
  292. package/dist/singleCellGeneExpression.unit.spec-HIJXVUWJ.js +152 -0
  293. package/dist/singleCellPlot-H7PCZ2DP.js +52 -0
  294. package/dist/singlecell-4LH3MQVL.js +85 -0
  295. package/dist/singlecell-MOSYT3RI.js +1571 -0
  296. package/dist/snp-IKLGTD4Q.js +37 -0
  297. package/dist/snp.unit.spec-GC74MUVM.js +175 -0
  298. package/dist/snplocus-RIABFSBQ.js +207 -0
  299. package/dist/spliceevent.a53ss.diagram-4E2IYYHL.js +150 -0
  300. package/dist/spliceevent.exonskip.diagram-C56R6XLQ.js +276 -0
  301. package/dist/spliceevent.noeventdiagram-SIPMAKXI.js +459 -0
  302. package/dist/ssGSEA-5QNHLSOI.js +37 -0
  303. package/dist/ssGSEA.unit.spec-KVPN553B.js +87 -0
  304. package/dist/summarizeCnvGeneexp-K4VGJSW6.js +162 -0
  305. package/dist/summarizeGeneexpSurvival-HGHX65FN.js +107 -0
  306. package/dist/summarizeMutationCnv-3K4Z6R2X.js +163 -0
  307. package/dist/summarizeMutationDiagnosis-M2MHUPRT.js +39 -0
  308. package/dist/summarizeMutationSurvival-WVBUP3GA.js +98 -0
  309. package/dist/summary-RZHZXCU5.js +48 -0
  310. package/dist/summary.integration.spec-FGZP7DY7.js +413 -0
  311. package/dist/summaryInput-UGM7MMCR.js +234 -0
  312. package/dist/sunburst-L27U7LV7.js +283 -0
  313. package/dist/survival-5ZMEBV6O.js +57 -0
  314. package/dist/survival-JWRRGTJT.js +45 -0
  315. package/dist/survival.integration.spec-Z5542I4V.js +801 -0
  316. package/dist/svgraph-O6ZVLNNN.js +1386 -0
  317. package/dist/svmr-ULFV7OSH.js +3841 -0
  318. package/dist/table-CHRQH2GH.js +199 -0
  319. package/dist/termCollection-FAO6ZA6F.js +178 -0
  320. package/dist/termCollection-GBXS3GOY.js +37 -0
  321. package/dist/termCollection.unit.spec-4WRTOV6E.js +207 -0
  322. package/dist/tk-KNUBWRNK.js +45 -0
  323. package/dist/tp.ui-2PPYOQYL.js +1458 -0
  324. package/dist/tvs.density-BZ5SKDQS.js +18 -0
  325. package/dist/tvs.dt-TDNSTGQR.js +38 -0
  326. package/dist/tvs.dtcnv.categorical-P2IGIE4I.js +39 -0
  327. package/dist/tvs.dtcnv.continuous-2XUCRBDR.js +71 -0
  328. package/dist/tvs.dtfusion-PRHZVMOG.js +39 -0
  329. package/dist/tvs.dtsnvindel-KGKBW5JS.js +39 -0
  330. package/dist/tvs.dtsv-M3CY5TZF.js +39 -0
  331. package/dist/tvs.numeric-W74JCC5P.js +21 -0
  332. package/dist/tvs.samplelst-BTWFBBAN.js +103 -0
  333. package/dist/tvs.termCollection-Y64QIKOA.js +158 -0
  334. package/dist/violin-3LLHHV3L.js +45 -0
  335. package/dist/violin.integration.spec-6NF5FDLQ.js +1424 -0
  336. package/dist/violin.interactivity-W2AKZ24D.js +37 -0
  337. package/dist/violin.renderer-CRFYYZRI.js +39 -0
  338. package/dist/vocabulary-AUJOAVYS.js +40 -0
  339. package/package.json +4 -3
  340. package/dist/2dmaf-DTWWXOZC.js +0 -1372
  341. package/dist/AIProjectAdmin-BCYIWOXD.js +0 -828
  342. package/dist/AppHeader-H3L2MRWP.js +0 -834
  343. package/dist/BoxPlot-INZ6IN3V.js +0 -1218
  344. package/dist/CorrelationVolcano-AK3XW4ZH.js +0 -618
  345. package/dist/DE-IBSFUKNG.js +0 -94
  346. package/dist/DEinput-H4GMQWDY.js +0 -300
  347. package/dist/DifferentialAnalysis-3DSL5LQC.js +0 -243
  348. package/dist/DifferentialAnalysis-3DSL5LQC.js.map +0 -7
  349. package/dist/Disco-5PXXMGGQ.js +0 -3236
  350. package/dist/Disco.UI-23LOT2U6.js +0 -244
  351. package/dist/DmrPlot-PBCU2XNF.js +0 -641
  352. package/dist/GB-HIEPWNPV.js +0 -1129
  353. package/dist/GeneExpInput-A4JNX7PU.js +0 -365
  354. package/dist/HicApp-IDH2A4BC.js +0 -2249
  355. package/dist/NumBinaryEditor-CZ54X7J3.js +0 -269
  356. package/dist/NumBinaryEditor.unit.spec-QLBRM7MJ.js +0 -285
  357. package/dist/NumContEditor-Z5MGLQ2I.js +0 -106
  358. package/dist/NumContEditor.unit.spec-TR7D7ULV.js +0 -168
  359. package/dist/NumCustomBinEditor-B7JID42Y.js +0 -37
  360. package/dist/NumCustomBinEditor.unit.spec-GZJIVY4K.js +0 -283
  361. package/dist/NumDiscreteEditor-LWHZ36T6.js +0 -178
  362. package/dist/NumDiscreteEditor.unit.spec-QCQCMEWO.js +0 -201
  363. package/dist/NumRegularBinEditor-IATRIUKD.js +0 -37
  364. package/dist/NumRegularBinEditor.unit.spec-J6UTQO76.js +0 -226
  365. package/dist/NumSplineEditor-2KMU6SRO.js +0 -191
  366. package/dist/NumSplineEditor.unit.spec-MX7Y4MTD.js +0 -198
  367. package/dist/NumericDensity-JCH7F5FV.js +0 -37
  368. package/dist/NumericDensity.unit.spec-4TKKRKHF.js +0 -220
  369. package/dist/NumericHandler-7FB3RJM7.js +0 -38
  370. package/dist/NumericHandler.unit.spec-U6DCADZY.js +0 -218
  371. package/dist/RunChart2-VQTIVMKM.js +0 -757
  372. package/dist/SC-XW272KAP.js +0 -827
  373. package/dist/SC-XW272KAP.js.map +0 -7
  374. package/dist/Volcano-Y4U3L6D2.js +0 -1352
  375. package/dist/Volcano-Y4U3L6D2.js.map +0 -7
  376. package/dist/WSIViewer-UFB7TI2D.js +0 -47972
  377. package/dist/WSIViewer-UFB7TI2D.js.map +0 -7
  378. package/dist/WsiSamplesPlot-2OAR57YB.js +0 -164
  379. package/dist/adSandbox-IKKFYRF7.js +0 -37
  380. package/dist/alphaGenome-WJNFQGGK.js +0 -174
  381. package/dist/app-UHGTFH6D.js +0 -48
  382. package/dist/app-YETYAR45.js +0 -36
  383. package/dist/bam-S6U7VNJP.js +0 -859
  384. package/dist/barchart-3NJDGHXU.js +0 -46
  385. package/dist/barchart.data-MVVKPDLE.js +0 -22
  386. package/dist/barchart.events-WQGA4CGB.js +0 -46
  387. package/dist/barchart.integration.spec-E6CJTWRN.js +0 -1676
  388. package/dist/barchart2-UNHFOYKB.js +0 -310
  389. package/dist/block-2XHZLY26.js +0 -6201
  390. package/dist/block.init-CMG4V6RB.js +0 -37
  391. package/dist/block.mds.expressionrank-QX2JOEMV.js +0 -358
  392. package/dist/block.mds.geneboxplot-USVQSDBT.js +0 -827
  393. package/dist/block.mds.junction-R6GJO75N.js +0 -1544
  394. package/dist/block.mds.svcnv-MRISSDAX.js +0 -6800
  395. package/dist/block.svg-Z5KKZTDB.js +0 -163
  396. package/dist/block.tk.aicheck-SOFJYYZX.js +0 -282
  397. package/dist/block.tk.ase-EHX5FV2Y.js +0 -364
  398. package/dist/block.tk.bam-DJS6LODM.js +0 -1905
  399. package/dist/block.tk.bedgraphdot-R2YHPXZA.js +0 -383
  400. package/dist/block.tk.bigwig.ui-VPEEQJLS.js +0 -211
  401. package/dist/block.tk.hicstraw-BDYN573B.js +0 -822
  402. package/dist/block.tk.junction-BONB4BXU.js +0 -2363
  403. package/dist/block.tk.junction.textmatrixui-Y5R6KY4N.js +0 -198
  404. package/dist/block.tk.ld-EGVVSXCB.js +0 -98
  405. package/dist/block.tk.menu-4YBMB5JT.js +0 -1028
  406. package/dist/block.tk.pgv-SBHGL6UH.js +0 -943
  407. package/dist/brainImaging-G3WZDYG6.js +0 -422
  408. package/dist/chunk-2K5DSRBJ.js +0 -84
  409. package/dist/chunk-2K5DSRBJ.js.map +0 -7
  410. package/dist/chunk-2O6JF76T.js +0 -121
  411. package/dist/chunk-2QULGYVE.js +0 -368
  412. package/dist/chunk-2VLGHVOL.js +0 -215
  413. package/dist/chunk-32TTOWY6.js +0 -1210
  414. package/dist/chunk-43PMSEMV.js +0 -50
  415. package/dist/chunk-4KSU6NBP.js +0 -194
  416. package/dist/chunk-4SFX42S7.js +0 -1271
  417. package/dist/chunk-4Y444IRJ.js +0 -272
  418. package/dist/chunk-56AN5PPQ.js +0 -679
  419. package/dist/chunk-56AN5PPQ.js.map +0 -7
  420. package/dist/chunk-5FO3NKA4.js +0 -155
  421. package/dist/chunk-5FO3NKA4.js.map +0 -7
  422. package/dist/chunk-5HOR6JQ2.js +0 -100
  423. package/dist/chunk-5LZKQFLO.js +0 -180
  424. package/dist/chunk-5LZKQFLO.js.map +0 -7
  425. package/dist/chunk-5RE3J6HK.js +0 -293
  426. package/dist/chunk-5SMOOFRW.js +0 -386
  427. package/dist/chunk-64Z22QAH.js +0 -14
  428. package/dist/chunk-6NMH6WPB.js +0 -446
  429. package/dist/chunk-7FKIAQ4K.js +0 -17
  430. package/dist/chunk-7NOKTEHK.js +0 -407
  431. package/dist/chunk-7UHUOC6F.js +0 -119
  432. package/dist/chunk-AMYSEKPF.js +0 -1658
  433. package/dist/chunk-AMYSEKPF.js.map +0 -7
  434. package/dist/chunk-ANGDY7VC.js +0 -170
  435. package/dist/chunk-AQ4OP4GR.js +0 -39
  436. package/dist/chunk-AQVOYTLS.js +0 -177
  437. package/dist/chunk-ARINZFQG.js +0 -276
  438. package/dist/chunk-ARINZFQG.js.map +0 -7
  439. package/dist/chunk-BQJVLXEL.js +0 -55
  440. package/dist/chunk-BRMASRRS.js +0 -455
  441. package/dist/chunk-BT4OOYPT.js +0 -280
  442. package/dist/chunk-BTJFVY3R.js +0 -190
  443. package/dist/chunk-BTJFVY3R.js.map +0 -7
  444. package/dist/chunk-C62CSWMV.js +0 -335
  445. package/dist/chunk-CAWDQURD.js +0 -6364
  446. package/dist/chunk-DMAHNBGN.js +0 -1230
  447. package/dist/chunk-DMAHNBGN.js.map +0 -7
  448. package/dist/chunk-EGWVYY7K.js +0 -264
  449. package/dist/chunk-EGWVYY7K.js.map +0 -7
  450. package/dist/chunk-ENWVV6EU.js +0 -2681
  451. package/dist/chunk-EPOELG75.js +0 -56
  452. package/dist/chunk-EPOELG75.js.map +0 -7
  453. package/dist/chunk-FA44G3GZ.js +0 -470
  454. package/dist/chunk-GD7FKXOA.js +0 -148
  455. package/dist/chunk-GF4OSOYW.js +0 -2815
  456. package/dist/chunk-GQOBT2W7.js +0 -203
  457. package/dist/chunk-GTBL7UHX.js +0 -2786
  458. package/dist/chunk-HE7CD7BD.js +0 -482
  459. package/dist/chunk-I7JDV4ZC.js +0 -226
  460. package/dist/chunk-IABWKPRK.js +0 -534
  461. package/dist/chunk-IPDH4FHY.js +0 -54
  462. package/dist/chunk-JNOOLCYB.js +0 -1159
  463. package/dist/chunk-JPKYHLNI.js +0 -158
  464. package/dist/chunk-KMQ6GQ3I.js +0 -1943
  465. package/dist/chunk-KTCW3JA6.js +0 -4209
  466. package/dist/chunk-L4QG7XZE.js +0 -46
  467. package/dist/chunk-L4QG7XZE.js.map +0 -7
  468. package/dist/chunk-LGUE54VX.js +0 -302
  469. package/dist/chunk-LJ4AUJXC.js +0 -95
  470. package/dist/chunk-LN3QYBGI.js +0 -20495
  471. package/dist/chunk-LN3QYBGI.js.map +0 -7
  472. package/dist/chunk-LQQSRNR5.js +0 -228
  473. package/dist/chunk-LSV4Z473.js +0 -31
  474. package/dist/chunk-LTSR7SLO.js +0 -514
  475. package/dist/chunk-LY7GD74F.js +0 -381
  476. package/dist/chunk-MHCTLVGE.js +0 -26
  477. package/dist/chunk-MSAMGAQF.js +0 -2370
  478. package/dist/chunk-MSAMGAQF.js.map +0 -7
  479. package/dist/chunk-NYX4B5CO.js +0 -291
  480. package/dist/chunk-OPPNZXYG.js +0 -129
  481. package/dist/chunk-P6TPXUMP.js +0 -117
  482. package/dist/chunk-PL2CM7RY.js +0 -621
  483. package/dist/chunk-PSGQWZN4.js +0 -147
  484. package/dist/chunk-PZLYNNST.js +0 -371
  485. package/dist/chunk-RA4RQYXQ.js +0 -142
  486. package/dist/chunk-RAJZYWFN.js +0 -95
  487. package/dist/chunk-ROLVOPVR.js +0 -252
  488. package/dist/chunk-RQZJIBIH.js +0 -34
  489. package/dist/chunk-RSE2FOKW.js +0 -217
  490. package/dist/chunk-SDLRTORS.js +0 -263
  491. package/dist/chunk-TF4EDNQO.js +0 -158
  492. package/dist/chunk-TV74I3Y5.js +0 -43
  493. package/dist/chunk-TV74I3Y5.js.map +0 -7
  494. package/dist/chunk-UPPBAFUK.js +0 -5000
  495. package/dist/chunk-UVPAZM3G.js +0 -52
  496. package/dist/chunk-UWYCEYML.js +0 -815
  497. package/dist/chunk-VB3SRNBK.js +0 -37
  498. package/dist/chunk-W6XQR5UL.js +0 -444
  499. package/dist/chunk-XBBUQW52.js +0 -824
  500. package/dist/chunk-XSA3VIEQ.js +0 -205
  501. package/dist/chunk-XZ6MGJQ3.js +0 -102
  502. package/dist/chunk-YC6ZJ7RP.js +0 -1842
  503. package/dist/chunk-YC6ZJ7RP.js.map +0 -7
  504. package/dist/chunk-YEMIL6QU.js +0 -1087
  505. package/dist/chunk-ZD47FENE.js +0 -229
  506. package/dist/chunk-ZYBM24FU.js +0 -102
  507. package/dist/chunk-ZYY54HBU.js +0 -330
  508. package/dist/chunk-ZYY54HBU.js.map +0 -7
  509. package/dist/condition-ARCN26MF.js +0 -331
  510. package/dist/controls-PKWN2JGN.js +0 -40
  511. package/dist/controls.config-NFRPXFUJ.js +0 -38
  512. package/dist/correlation-DPT6XL2U.js +0 -97
  513. package/dist/cuminc-M4U7LQD5.js +0 -1148
  514. package/dist/cuminc.integration.spec-MH4OFYDJ.js +0 -677
  515. package/dist/customdata.inputui-6TAHAMSV.js +0 -288
  516. package/dist/dataDownload-7GZEYSUT.js +0 -329
  517. package/dist/dataDownload.integration.spec-NAIJRFTV.js +0 -192
  518. package/dist/databrowser.ui-LLXHZ5O6.js +0 -432
  519. package/dist/dictionary-MUAURMYE.js +0 -110
  520. package/dist/dnaMethylation-AU5D3U3E.js +0 -37
  521. package/dist/dnaMethylation.integration.spec-JIDBRA6P.js +0 -202
  522. package/dist/dofetch-WSYK5OTB.js +0 -50
  523. package/dist/e2pca-ICG35YR5.js +0 -349
  524. package/dist/ep-CSSSQOUP.js +0 -1255
  525. package/dist/expclust.gdc.spec-4WPQUXH4.js +0 -306
  526. package/dist/facet-JAGILNY6.js +0 -520
  527. package/dist/forms2-IMVDB6AT.js +0 -533
  528. package/dist/gb-36LTYICV.js +0 -87
  529. package/dist/geneExpClustering-CGMENTHI.js +0 -248
  530. package/dist/geneExpression-AD2L46J4.js +0 -37
  531. package/dist/geneExpression-G2FHBDUQ.js +0 -312
  532. package/dist/geneExpression.unit.spec-XWCB7K5L.js +0 -101
  533. package/dist/geneORA-GVHQF7DF.js +0 -277
  534. package/dist/geneVariant-HE22CH76.js +0 -40
  535. package/dist/geneVariant-SQD5QUFH.js +0 -38
  536. package/dist/geneVariant.integration.spec-66XFLDNN.js +0 -197
  537. package/dist/genefusion.ui-TD32NWD4.js +0 -308
  538. package/dist/geneset-NSYPDXS3.js +0 -202
  539. package/dist/genomeBrowser.spec-CYFONLNQ.js +0 -280
  540. package/dist/grin2-3QB57OPH.js +0 -1555
  541. package/dist/grin2-FLQNWPMZ.js +0 -851
  542. package/dist/grin2-FLQNWPMZ.js.map +0 -7
  543. package/dist/gsea-RMTU5I3U.js +0 -46
  544. package/dist/hierCluster-LSQL6PGC.js +0 -58
  545. package/dist/hierCluster-XTEBDEVO.js +0 -62
  546. package/dist/hierCluster.config-SHXFSPOH.js +0 -39
  547. package/dist/hierCluster.integration.spec-KNMIYWV3.js +0 -394
  548. package/dist/hierCluster.interactivity-6NAKTUR5.js +0 -53
  549. package/dist/hierCluster.renderers-FWOV4Q47.js +0 -21
  550. package/dist/imagePlot-3IVG4SFN.js +0 -162
  551. package/dist/importPlot-HEMDRIVF.js +0 -8
  552. package/dist/isoformExpression-FJ3GEU6D.js +0 -39
  553. package/dist/isoformExpression.unit.spec-L7D22UDB.js +0 -207
  554. package/dist/launch.adhoc-PDGQF2UP.js +0 -41
  555. package/dist/leftlabel.sample-ZBI4NHCV.js +0 -259
  556. package/dist/legacyDataset-PBCPC5I7.js +0 -119
  557. package/dist/lollipop-K7S6ASFE.js +0 -170
  558. package/dist/maf-JEW6PPJB.js +0 -451
  559. package/dist/maftimeline-7URL27MC.js +0 -592
  560. package/dist/matrix-6EK5WGIG.js +0 -57
  561. package/dist/matrix-DKBD5RIL.js +0 -62
  562. package/dist/matrix.cells-KEIOXJQ7.js +0 -28
  563. package/dist/matrix.config-FGJB4VVM.js +0 -40
  564. package/dist/matrix.data-QGCGFLD7.js +0 -25
  565. package/dist/matrix.groups-HBPLZ2QX.js +0 -26
  566. package/dist/matrix.integration.spec-R4PF67KF.js +0 -3071
  567. package/dist/matrix.interactivity-M3SY33ET.js +0 -41
  568. package/dist/matrix.layout-H6WQ3ZMW.js +0 -43
  569. package/dist/matrix.legend-UCL7HM26.js +0 -22
  570. package/dist/matrix.renderers-3PPFSS7Z.js +0 -37
  571. package/dist/matrix.serieses-S2TJ3E6P.js +0 -21
  572. package/dist/matrix.sort-CFA4UWBJ.js +0 -27
  573. package/dist/matrix.sort.unit.spec-562VIWDS.js +0 -471
  574. package/dist/matrix.sorterUi-FT7K5664.js +0 -18
  575. package/dist/matrix.sorterUi.unit.spec-GAHHUN3K.js +0 -341
  576. package/dist/mavb-HPW5X55U.js +0 -731
  577. package/dist/mds.fimo-HSBKLIOX.js +0 -517
  578. package/dist/mds.samplescatterplot-DE27OMJE.js +0 -1549
  579. package/dist/mds.survivalplot-IW22UGCE.js +0 -482
  580. package/dist/numericDictTermCluster-DOD66G3A.js +0 -72
  581. package/dist/oncomatrix-BZCVCPR4.js +0 -294
  582. package/dist/oncomatrix.spec-IHYCIAP4.js +0 -447
  583. package/dist/plot.2dvaf-QLOZ54VC.js +0 -376
  584. package/dist/plot.app-XDVDR23J.js +0 -40
  585. package/dist/plot.barplot-XOESF7OQ.js +0 -101
  586. package/dist/plot.boxplot-VNOC2CHT.js +0 -151
  587. package/dist/plot.brainImaging-7ZEOY4UR.js +0 -51
  588. package/dist/plot.disco-6GVDYK7A.js +0 -101
  589. package/dist/plot.dzi-TEFPPPL6.js +0 -33
  590. package/dist/plot.ssgq-OG4TODLO.js +0 -138
  591. package/dist/plot.vaf2cov-VMZRJULA.js +0 -258
  592. package/dist/plot.wsi-2CHZZ7AC.js +0 -36
  593. package/dist/polar-QUYQRQOQ.js +0 -185
  594. package/dist/polar2-OXXLAXJC.js +0 -227
  595. package/dist/profile.spec-TI6PRHNJ.js +0 -79
  596. package/dist/profileBarchart-GEK77XEB.js +0 -266
  597. package/dist/profileForms-NR3VNHKM.js +0 -440
  598. package/dist/profilePlot-GGKO3IW5.js +0 -53
  599. package/dist/profileRadar-MN3LX5ER.js +0 -262
  600. package/dist/profileRadarFacility-3G2HWB2L.js +0 -262
  601. package/dist/proteinView-TZ5BGOTA.js +0 -1188
  602. package/dist/proteinView-TZ5BGOTA.js.map +0 -7
  603. package/dist/proteomeAbundance-JXNECXF7.js +0 -68
  604. package/dist/proteomeAbundance-JXNECXF7.js.map +0 -7
  605. package/dist/proteomeAbundance-O4BB55O3.js +0 -21
  606. package/dist/qualitative-Q3TT73O7.js +0 -42
  607. package/dist/radar2-LSD3VPZT.js +0 -315
  608. package/dist/radarFacility2-LZGIXY7A.js +0 -324
  609. package/dist/regression-J3XDAPAZ.js +0 -55
  610. package/dist/regression.inputs-BBZYI5OI.js +0 -47
  611. package/dist/regression.inputs.term-7BW6XGLG.js +0 -47
  612. package/dist/regression.inputs.values.table-DYX2YU4H.js +0 -44
  613. package/dist/regression.integration.spec-WLXZYKWW.js +0 -783
  614. package/dist/regression.results-K5Q2N2KW.js +0 -39
  615. package/dist/regression.spec-VT7T6KBY.js +0 -707
  616. package/dist/report-3D3L573D.js +0 -221
  617. package/dist/sampleScatter.spec-6IPJQLM2.js +0 -201
  618. package/dist/sampleView-5JMFI4HF.js +0 -47
  619. package/dist/samplelst-SUCB5WOZ.js +0 -110
  620. package/dist/samplematrix-A5SZBKO6.js +0 -2197
  621. package/dist/sc-NAA6ESO6.js +0 -85
  622. package/dist/scatter-EQCN2HYE.js +0 -801
  623. package/dist/scatter.integration.spec-7NXIYS67.js +0 -1195
  624. package/dist/selectGenomeWithTklst-KXODNCY6.js +0 -133
  625. package/dist/singleCellCellType-HMIW76YB.js +0 -37
  626. package/dist/singleCellCellType.unit.spec-ZCZET56X.js +0 -159
  627. package/dist/singleCellGeneExpression-IUCUHF6R.js +0 -37
  628. package/dist/singleCellGeneExpression.unit.spec-J4D6F2N3.js +0 -152
  629. package/dist/singleCellPlot-L6W3MDGG.js +0 -52
  630. package/dist/singlecell-A6ECAAPI.js +0 -85
  631. package/dist/singlecell-KBABNXC5.js +0 -1571
  632. package/dist/snp-RO7ATG6E.js +0 -37
  633. package/dist/snp.unit.spec-ZJLRGJD4.js +0 -175
  634. package/dist/snplocus-N3CU6NRP.js +0 -207
  635. package/dist/spliceevent.a53ss.diagram-7PHT4COB.js +0 -150
  636. package/dist/spliceevent.exonskip.diagram-3CZTY6QD.js +0 -276
  637. package/dist/spliceevent.noeventdiagram-GQE256DT.js +0 -459
  638. package/dist/ssGSEA-4I3L5MX2.js +0 -37
  639. package/dist/ssGSEA.unit.spec-PZCC5YU7.js +0 -87
  640. package/dist/summarizeCnvGeneexp-ASXUQW56.js +0 -162
  641. package/dist/summarizeGeneexpSurvival-ULGUOW5V.js +0 -107
  642. package/dist/summarizeMutationCnv-VDUCIUGM.js +0 -163
  643. package/dist/summarizeMutationDiagnosis-FMAAMCZC.js +0 -39
  644. package/dist/summarizeMutationSurvival-GZ4NGDJT.js +0 -98
  645. package/dist/summary-2WNZ6JSB.js +0 -48
  646. package/dist/summary.integration.spec-XPMYB6GM.js +0 -413
  647. package/dist/summaryInput-2UGXEA5C.js +0 -234
  648. package/dist/sunburst-76WCQLTT.js +0 -283
  649. package/dist/survival-23IZM4ML.js +0 -45
  650. package/dist/survival-3EAMPHSX.js +0 -57
  651. package/dist/survival.integration.spec-YNVAKBV3.js +0 -801
  652. package/dist/svgraph-G2M5LXEP.js +0 -1386
  653. package/dist/svmr-BUDBVU34.js +0 -3841
  654. package/dist/table-QJSZ6YFK.js +0 -199
  655. package/dist/termCollection-2YAY3RLZ.js +0 -178
  656. package/dist/termCollection-MAMDMEDD.js +0 -37
  657. package/dist/termCollection.unit.spec-UY7G2BHG.js +0 -207
  658. package/dist/tk-GFGP3F76.js +0 -45
  659. package/dist/tp.ui-OQ757UIE.js +0 -1458
  660. package/dist/tvs.density-BJK23JYJ.js +0 -18
  661. package/dist/tvs.dt-TOYEFKNT.js +0 -38
  662. package/dist/tvs.dtcnv.categorical-EO2VLFL2.js +0 -39
  663. package/dist/tvs.dtcnv.continuous-ZAHTKZ4Y.js +0 -71
  664. package/dist/tvs.dtfusion-BY3AHBL3.js +0 -39
  665. package/dist/tvs.dtsnvindel-UM5LQ4FR.js +0 -39
  666. package/dist/tvs.dtsv-H7ZVHLS5.js +0 -39
  667. package/dist/tvs.numeric-66FP6RRH.js +0 -21
  668. package/dist/tvs.samplelst-Q5ECTZOY.js +0 -103
  669. package/dist/tvs.termCollection-FYNMKZTR.js +0 -158
  670. package/dist/violin-EGWLAJVM.js +0 -45
  671. package/dist/violin.integration.spec-3P4TYHBR.js +0 -1424
  672. package/dist/violin.interactivity-VWDR4LYB.js +0 -37
  673. package/dist/violin.renderer-WWTU6J7X.js +0 -39
  674. package/dist/vocabulary-JG4ZITOH.js +0 -40
  675. /package/dist/{2dmaf-DTWWXOZC.js.map → 2dmaf-6YIEXAIG.js.map} +0 -0
  676. /package/dist/{AIProjectAdmin-BCYIWOXD.js.map → AIProjectAdmin-5K5NIQNT.js.map} +0 -0
  677. /package/dist/{AppHeader-H3L2MRWP.js.map → AppHeader-4SN5M6SZ.js.map} +0 -0
  678. /package/dist/{BoxPlot-INZ6IN3V.js.map → BoxPlot-DBJA6TQF.js.map} +0 -0
  679. /package/dist/{CorrelationVolcano-AK3XW4ZH.js.map → CorrelationVolcano-MDMTMTT5.js.map} +0 -0
  680. /package/dist/{DE-IBSFUKNG.js.map → DE-S5AFNI4I.js.map} +0 -0
  681. /package/dist/{DEinput-H4GMQWDY.js.map → DEinput-XVBBA74N.js.map} +0 -0
  682. /package/dist/{Disco-5PXXMGGQ.js.map → Disco-VV7FQ7WW.js.map} +0 -0
  683. /package/dist/{Disco.UI-23LOT2U6.js.map → Disco.UI-JDJFJFEY.js.map} +0 -0
  684. /package/dist/{DmrPlot-PBCU2XNF.js.map → DmrPlot-XOG67W74.js.map} +0 -0
  685. /package/dist/{GB-HIEPWNPV.js.map → GB-K3AWZQFF.js.map} +0 -0
  686. /package/dist/{GeneExpInput-A4JNX7PU.js.map → GeneExpInput-Y7MDS2CA.js.map} +0 -0
  687. /package/dist/{HicApp-IDH2A4BC.js.map → HicApp-53OTZ3YU.js.map} +0 -0
  688. /package/dist/{NumBinaryEditor-CZ54X7J3.js.map → NumBinaryEditor-SB4YR3JM.js.map} +0 -0
  689. /package/dist/{NumBinaryEditor.unit.spec-QLBRM7MJ.js.map → NumBinaryEditor.unit.spec-V2W2OZYP.js.map} +0 -0
  690. /package/dist/{NumContEditor-Z5MGLQ2I.js.map → NumContEditor-RZZBM7PR.js.map} +0 -0
  691. /package/dist/{NumContEditor.unit.spec-TR7D7ULV.js.map → NumContEditor.unit.spec-GAAW3ZZN.js.map} +0 -0
  692. /package/dist/{NumCustomBinEditor-B7JID42Y.js.map → NumCustomBinEditor-GFCGPRPI.js.map} +0 -0
  693. /package/dist/{NumCustomBinEditor.unit.spec-GZJIVY4K.js.map → NumCustomBinEditor.unit.spec-24MXSO3L.js.map} +0 -0
  694. /package/dist/{NumDiscreteEditor-LWHZ36T6.js.map → NumDiscreteEditor-HAHIOFNC.js.map} +0 -0
  695. /package/dist/{NumDiscreteEditor.unit.spec-QCQCMEWO.js.map → NumDiscreteEditor.unit.spec-JYN2CWSI.js.map} +0 -0
  696. /package/dist/{NumRegularBinEditor-IATRIUKD.js.map → NumRegularBinEditor-7DOE64RB.js.map} +0 -0
  697. /package/dist/{NumRegularBinEditor.unit.spec-J6UTQO76.js.map → NumRegularBinEditor.unit.spec-2WU4GGNT.js.map} +0 -0
  698. /package/dist/{NumSplineEditor-2KMU6SRO.js.map → NumSplineEditor-JLRD5TVX.js.map} +0 -0
  699. /package/dist/{NumSplineEditor.unit.spec-MX7Y4MTD.js.map → NumSplineEditor.unit.spec-LOG7CECJ.js.map} +0 -0
  700. /package/dist/{NumericDensity-JCH7F5FV.js.map → NumericDensity-IDOP7I34.js.map} +0 -0
  701. /package/dist/{NumericDensity.unit.spec-4TKKRKHF.js.map → NumericDensity.unit.spec-HTJQRPVH.js.map} +0 -0
  702. /package/dist/{NumericHandler-7FB3RJM7.js.map → NumericHandler-DWVVGLLB.js.map} +0 -0
  703. /package/dist/{NumericHandler.unit.spec-U6DCADZY.js.map → NumericHandler.unit.spec-BDDFTHOF.js.map} +0 -0
  704. /package/dist/{RunChart2-VQTIVMKM.js.map → RunChart2-PBJ56YX3.js.map} +0 -0
  705. /package/dist/{WsiSamplesPlot-2OAR57YB.js.map → WsiSamplesPlot-FOMPMEXK.js.map} +0 -0
  706. /package/dist/{adSandbox-IKKFYRF7.js.map → adSandbox-SRPPCYYR.js.map} +0 -0
  707. /package/dist/{alphaGenome-WJNFQGGK.js.map → alphaGenome-IS2WAJCK.js.map} +0 -0
  708. /package/dist/{app-UHGTFH6D.js.map → app-GTHYSGWI.js.map} +0 -0
  709. /package/dist/{app-YETYAR45.js.map → app-XEKETNLG.js.map} +0 -0
  710. /package/dist/{bam-S6U7VNJP.js.map → bam-GQBFL6A7.js.map} +0 -0
  711. /package/dist/{barchart-3NJDGHXU.js.map → barchart-AESC4JSX.js.map} +0 -0
  712. /package/dist/{barchart.data-MVVKPDLE.js.map → barchart.data-RE34IC4G.js.map} +0 -0
  713. /package/dist/{barchart.events-WQGA4CGB.js.map → barchart.events-KM4J5ISO.js.map} +0 -0
  714. /package/dist/{barchart.integration.spec-E6CJTWRN.js.map → barchart.integration.spec-DFVSBGO3.js.map} +0 -0
  715. /package/dist/{barchart2-UNHFOYKB.js.map → barchart2-NNTL4RQZ.js.map} +0 -0
  716. /package/dist/{block-2XHZLY26.js.map → block-EHZM3FUX.js.map} +0 -0
  717. /package/dist/{block.init-CMG4V6RB.js.map → block.init-EAEFNNF6.js.map} +0 -0
  718. /package/dist/{block.mds.expressionrank-QX2JOEMV.js.map → block.mds.expressionrank-ZBHA2CFE.js.map} +0 -0
  719. /package/dist/{block.mds.geneboxplot-USVQSDBT.js.map → block.mds.geneboxplot-4ZU3QUAK.js.map} +0 -0
  720. /package/dist/{block.mds.junction-R6GJO75N.js.map → block.mds.junction-PDH55JXO.js.map} +0 -0
  721. /package/dist/{block.mds.svcnv-MRISSDAX.js.map → block.mds.svcnv-QWBU54XQ.js.map} +0 -0
  722. /package/dist/{block.svg-Z5KKZTDB.js.map → block.svg-HUGBYWXU.js.map} +0 -0
  723. /package/dist/{block.tk.aicheck-SOFJYYZX.js.map → block.tk.aicheck-SDCWXQZF.js.map} +0 -0
  724. /package/dist/{block.tk.ase-EHX5FV2Y.js.map → block.tk.ase-HMUTHCJS.js.map} +0 -0
  725. /package/dist/{block.tk.bam-DJS6LODM.js.map → block.tk.bam-Q7B2YQLI.js.map} +0 -0
  726. /package/dist/{block.tk.bedgraphdot-R2YHPXZA.js.map → block.tk.bedgraphdot-QBGBSVHN.js.map} +0 -0
  727. /package/dist/{block.tk.bigwig.ui-VPEEQJLS.js.map → block.tk.bigwig.ui-767A3MUH.js.map} +0 -0
  728. /package/dist/{block.tk.hicstraw-BDYN573B.js.map → block.tk.hicstraw-LEZUZHLF.js.map} +0 -0
  729. /package/dist/{block.tk.junction-BONB4BXU.js.map → block.tk.junction-GQHCZOYR.js.map} +0 -0
  730. /package/dist/{block.tk.junction.textmatrixui-Y5R6KY4N.js.map → block.tk.junction.textmatrixui-D5QUO7KQ.js.map} +0 -0
  731. /package/dist/{block.tk.ld-EGVVSXCB.js.map → block.tk.ld-E3MHZOG5.js.map} +0 -0
  732. /package/dist/{block.tk.menu-4YBMB5JT.js.map → block.tk.menu-XE7PFYGR.js.map} +0 -0
  733. /package/dist/{block.tk.pgv-SBHGL6UH.js.map → block.tk.pgv-MPPMPDED.js.map} +0 -0
  734. /package/dist/{brainImaging-G3WZDYG6.js.map → brainImaging-YQ443NOL.js.map} +0 -0
  735. /package/dist/{chunk-LQQSRNR5.js.map → chunk-26WXJBSR.js.map} +0 -0
  736. /package/dist/{chunk-7UHUOC6F.js.map → chunk-2P6Z7JFC.js.map} +0 -0
  737. /package/dist/{chunk-ENWVV6EU.js.map → chunk-2QQO4RRD.js.map} +0 -0
  738. /package/dist/{chunk-GF4OSOYW.js.map → chunk-37ARSZOI.js.map} +0 -0
  739. /package/dist/{chunk-LY7GD74F.js.map → chunk-42Q53PXE.js.map} +0 -0
  740. /package/dist/{chunk-5SMOOFRW.js.map → chunk-46ASPS5Y.js.map} +0 -0
  741. /package/dist/{chunk-RA4RQYXQ.js.map → chunk-4KPI7PB5.js.map} +0 -0
  742. /package/dist/{chunk-XZ6MGJQ3.js.map → chunk-4MDNMCGZ.js.map} +0 -0
  743. /package/dist/{chunk-4Y444IRJ.js.map → chunk-5IG3E4DT.js.map} +0 -0
  744. /package/dist/{chunk-UVPAZM3G.js.map → chunk-5MIR7IHI.js.map} +0 -0
  745. /package/dist/{chunk-BQJVLXEL.js.map → chunk-5MZVXJVA.js.map} +0 -0
  746. /package/dist/{chunk-SDLRTORS.js.map → chunk-66D5GRS5.js.map} +0 -0
  747. /package/dist/{chunk-IABWKPRK.js.map → chunk-6ATE2TRC.js.map} +0 -0
  748. /package/dist/{chunk-JPKYHLNI.js.map → chunk-6BFR6MK3.js.map} +0 -0
  749. /package/dist/{chunk-C62CSWMV.js.map → chunk-6NJMCO4X.js.map} +0 -0
  750. /package/dist/{chunk-IPDH4FHY.js.map → chunk-6ON5KAMO.js.map} +0 -0
  751. /package/dist/{chunk-ZYBM24FU.js.map → chunk-76GPYMHZ.js.map} +0 -0
  752. /package/dist/{chunk-PSGQWZN4.js.map → chunk-7AAFBFOH.js.map} +0 -0
  753. /package/dist/{chunk-LGUE54VX.js.map → chunk-7OOZHEUC.js.map} +0 -0
  754. /package/dist/{chunk-I7JDV4ZC.js.map → chunk-A4VLWLYF.js.map} +0 -0
  755. /package/dist/{chunk-W6XQR5UL.js.map → chunk-A6EFWGWD.js.map} +0 -0
  756. /package/dist/{chunk-ANGDY7VC.js.map → chunk-ALW5XXVW.js.map} +0 -0
  757. /package/dist/{chunk-RQZJIBIH.js.map → chunk-ANCT2BGO.js.map} +0 -0
  758. /package/dist/{chunk-NYX4B5CO.js.map → chunk-AROMXWCY.js.map} +0 -0
  759. /package/dist/{chunk-UWYCEYML.js.map → chunk-AY4UBGLC.js.map} +0 -0
  760. /package/dist/{chunk-32TTOWY6.js.map → chunk-BMVLR3TM.js.map} +0 -0
  761. /package/dist/{chunk-PL2CM7RY.js.map → chunk-BR7JA2EO.js.map} +0 -0
  762. /package/dist/{chunk-7FKIAQ4K.js.map → chunk-D3HJXMTH.js.map} +0 -0
  763. /package/dist/{chunk-XSA3VIEQ.js.map → chunk-DKUEZ4XD.js.map} +0 -0
  764. /package/dist/{chunk-LSV4Z473.js.map → chunk-DT3MMC5U.js.map} +0 -0
  765. /package/dist/{chunk-UPPBAFUK.js.map → chunk-DYVKN7EE.js.map} +0 -0
  766. /package/dist/{chunk-VB3SRNBK.js.map → chunk-EF37UZY6.js.map} +0 -0
  767. /package/dist/{chunk-ZD47FENE.js.map → chunk-ESXMS7FW.js.map} +0 -0
  768. /package/dist/{chunk-2QULGYVE.js.map → chunk-FUSVXQ6C.js.map} +0 -0
  769. /package/dist/{chunk-GTBL7UHX.js.map → chunk-GXKVAPGP.js.map} +0 -0
  770. /package/dist/{chunk-AQ4OP4GR.js.map → chunk-H4JIENLQ.js.map} +0 -0
  771. /package/dist/{chunk-FA44G3GZ.js.map → chunk-H7YJG4YM.js.map} +0 -0
  772. /package/dist/{chunk-GD7FKXOA.js.map → chunk-I24KPIDD.js.map} +0 -0
  773. /package/dist/{chunk-GQOBT2W7.js.map → chunk-IENFDUWD.js.map} +0 -0
  774. /package/dist/{chunk-43PMSEMV.js.map → chunk-J7BISJTL.js.map} +0 -0
  775. /package/dist/{chunk-XBBUQW52.js.map → chunk-J7KYOSEK.js.map} +0 -0
  776. /package/dist/{chunk-PZLYNNST.js.map → chunk-JGPZ5254.js.map} +0 -0
  777. /package/dist/{chunk-4KSU6NBP.js.map → chunk-JUIPCWAM.js.map} +0 -0
  778. /package/dist/{chunk-5RE3J6HK.js.map → chunk-LO4NMQ7W.js.map} +0 -0
  779. /package/dist/{chunk-RAJZYWFN.js.map → chunk-LSSLS5HV.js.map} +0 -0
  780. /package/dist/{chunk-7NOKTEHK.js.map → chunk-MDLRB3MR.js.map} +0 -0
  781. /package/dist/{chunk-OPPNZXYG.js.map → chunk-MJLKGZ27.js.map} +0 -0
  782. /package/dist/{chunk-KTCW3JA6.js.map → chunk-NL5T3SBK.js.map} +0 -0
  783. /package/dist/{chunk-RSE2FOKW.js.map → chunk-ONAYJVN2.js.map} +0 -0
  784. /package/dist/{chunk-64Z22QAH.js.map → chunk-PSMFOARZ.js.map} +0 -0
  785. /package/dist/{chunk-LTSR7SLO.js.map → chunk-QX3GF2IA.js.map} +0 -0
  786. /package/dist/{chunk-JNOOLCYB.js.map → chunk-QZ2U4BOS.js.map} +0 -0
  787. /package/dist/{chunk-YEMIL6QU.js.map → chunk-RBZBBNLL.js.map} +0 -0
  788. /package/dist/{chunk-P6TPXUMP.js.map → chunk-RZTFQXWV.js.map} +0 -0
  789. /package/dist/{chunk-AQVOYTLS.js.map → chunk-SJC2C77V.js.map} +0 -0
  790. /package/dist/{chunk-2VLGHVOL.js.map → chunk-TVXVP4M6.js.map} +0 -0
  791. /package/dist/{chunk-HE7CD7BD.js.map → chunk-UTDPKDIY.js.map} +0 -0
  792. /package/dist/{chunk-BT4OOYPT.js.map → chunk-UVIUB7QI.js.map} +0 -0
  793. /package/dist/{chunk-CAWDQURD.js.map → chunk-VAUSRBL5.js.map} +0 -0
  794. /package/dist/{chunk-6NMH6WPB.js.map → chunk-WP22GYZ2.js.map} +0 -0
  795. /package/dist/{chunk-4SFX42S7.js.map → chunk-WUNX3VST.js.map} +0 -0
  796. /package/dist/{chunk-BRMASRRS.js.map → chunk-XD4TBJK2.js.map} +0 -0
  797. /package/dist/{chunk-2O6JF76T.js.map → chunk-Y6DSXMPB.js.map} +0 -0
  798. /package/dist/{chunk-ROLVOPVR.js.map → chunk-YBIZRASR.js.map} +0 -0
  799. /package/dist/{chunk-TF4EDNQO.js.map → chunk-YI2YH7ZK.js.map} +0 -0
  800. /package/dist/{chunk-KMQ6GQ3I.js.map → chunk-YLDE3PVC.js.map} +0 -0
  801. /package/dist/{chunk-MHCTLVGE.js.map → chunk-Z736NYXL.js.map} +0 -0
  802. /package/dist/{chunk-LJ4AUJXC.js.map → chunk-ZEJB7CPC.js.map} +0 -0
  803. /package/dist/{chunk-5HOR6JQ2.js.map → chunk-ZGWEBKZ4.js.map} +0 -0
  804. /package/dist/{condition-ARCN26MF.js.map → condition-FSF6ROJV.js.map} +0 -0
  805. /package/dist/{controls-PKWN2JGN.js.map → controls-OPSBFDFZ.js.map} +0 -0
  806. /package/dist/{controls.config-NFRPXFUJ.js.map → controls.config-3QRV5363.js.map} +0 -0
  807. /package/dist/{correlation-DPT6XL2U.js.map → correlation-WLOI7Z35.js.map} +0 -0
  808. /package/dist/{cuminc-M4U7LQD5.js.map → cuminc-G2UGJUUA.js.map} +0 -0
  809. /package/dist/{cuminc.integration.spec-MH4OFYDJ.js.map → cuminc.integration.spec-X5NEZ6S5.js.map} +0 -0
  810. /package/dist/{customdata.inputui-6TAHAMSV.js.map → customdata.inputui-RNW3AO3Z.js.map} +0 -0
  811. /package/dist/{dataDownload-7GZEYSUT.js.map → dataDownload-4U3TGDMH.js.map} +0 -0
  812. /package/dist/{dataDownload.integration.spec-NAIJRFTV.js.map → dataDownload.integration.spec-6FUI2SJ4.js.map} +0 -0
  813. /package/dist/{databrowser.ui-LLXHZ5O6.js.map → databrowser.ui-4GVJVJWG.js.map} +0 -0
  814. /package/dist/{dictionary-MUAURMYE.js.map → dictionary-NSDS7Z4K.js.map} +0 -0
  815. /package/dist/{dnaMethylation-AU5D3U3E.js.map → dnaMethylation-OYQB75LD.js.map} +0 -0
  816. /package/dist/{dnaMethylation.integration.spec-JIDBRA6P.js.map → dnaMethylation.integration.spec-6TTLV34N.js.map} +0 -0
  817. /package/dist/{dofetch-WSYK5OTB.js.map → dofetch-4TO3QMT6.js.map} +0 -0
  818. /package/dist/{e2pca-ICG35YR5.js.map → e2pca-NYBVR6PL.js.map} +0 -0
  819. /package/dist/{ep-CSSSQOUP.js.map → ep-RTDVEA4D.js.map} +0 -0
  820. /package/dist/{expclust.gdc.spec-4WPQUXH4.js.map → expclust.gdc.spec-JVIRESTP.js.map} +0 -0
  821. /package/dist/{facet-JAGILNY6.js.map → facet-OVBF2QMO.js.map} +0 -0
  822. /package/dist/{forms2-IMVDB6AT.js.map → forms2-HTLS54CX.js.map} +0 -0
  823. /package/dist/{gb-36LTYICV.js.map → gb-Y3546HMZ.js.map} +0 -0
  824. /package/dist/{geneExpClustering-CGMENTHI.js.map → geneExpClustering-PH3PWH3K.js.map} +0 -0
  825. /package/dist/{geneExpression-AD2L46J4.js.map → geneExpression-2Z2EV3XM.js.map} +0 -0
  826. /package/dist/{geneExpression-G2FHBDUQ.js.map → geneExpression-6CFXOCGW.js.map} +0 -0
  827. /package/dist/{geneExpression.unit.spec-XWCB7K5L.js.map → geneExpression.unit.spec-WKUTHRHC.js.map} +0 -0
  828. /package/dist/{geneORA-GVHQF7DF.js.map → geneORA-SHLZESLB.js.map} +0 -0
  829. /package/dist/{geneVariant-HE22CH76.js.map → geneVariant-FHZUIFPM.js.map} +0 -0
  830. /package/dist/{geneVariant-SQD5QUFH.js.map → geneVariant-Y7ZUBEOX.js.map} +0 -0
  831. /package/dist/{geneVariant.integration.spec-66XFLDNN.js.map → geneVariant.integration.spec-N7TZUOY3.js.map} +0 -0
  832. /package/dist/{genefusion.ui-TD32NWD4.js.map → genefusion.ui-7PDVZPZ2.js.map} +0 -0
  833. /package/dist/{geneset-NSYPDXS3.js.map → geneset-HLVOGYUI.js.map} +0 -0
  834. /package/dist/{genomeBrowser.spec-CYFONLNQ.js.map → genomeBrowser.spec-7IVIMUR5.js.map} +0 -0
  835. /package/dist/{grin2-3QB57OPH.js.map → grin2-Z5O7254R.js.map} +0 -0
  836. /package/dist/{gsea-RMTU5I3U.js.map → gsea-TFC3MBRW.js.map} +0 -0
  837. /package/dist/{hierCluster-LSQL6PGC.js.map → hierCluster-ERSE5I4I.js.map} +0 -0
  838. /package/dist/{hierCluster-XTEBDEVO.js.map → hierCluster-QQZQU5ZG.js.map} +0 -0
  839. /package/dist/{hierCluster.config-SHXFSPOH.js.map → hierCluster.config-WPINWW37.js.map} +0 -0
  840. /package/dist/{hierCluster.integration.spec-KNMIYWV3.js.map → hierCluster.integration.spec-Y6OHSKPW.js.map} +0 -0
  841. /package/dist/{hierCluster.interactivity-6NAKTUR5.js.map → hierCluster.interactivity-HS3G5QC5.js.map} +0 -0
  842. /package/dist/{hierCluster.renderers-FWOV4Q47.js.map → hierCluster.renderers-W63ZKZTT.js.map} +0 -0
  843. /package/dist/{imagePlot-3IVG4SFN.js.map → imagePlot-QFVN25PM.js.map} +0 -0
  844. /package/dist/{importPlot-HEMDRIVF.js.map → importPlot-MIDM5APH.js.map} +0 -0
  845. /package/dist/{isoformExpression-FJ3GEU6D.js.map → isoformExpression-L4TRNT4A.js.map} +0 -0
  846. /package/dist/{isoformExpression.unit.spec-L7D22UDB.js.map → isoformExpression.unit.spec-QQG323LA.js.map} +0 -0
  847. /package/dist/{launch.adhoc-PDGQF2UP.js.map → launch.adhoc-4NQ6GGGL.js.map} +0 -0
  848. /package/dist/{leftlabel.sample-ZBI4NHCV.js.map → leftlabel.sample-JU7AIPZL.js.map} +0 -0
  849. /package/dist/{legacyDataset-PBCPC5I7.js.map → legacyDataset-TT4CHF23.js.map} +0 -0
  850. /package/dist/{lollipop-K7S6ASFE.js.map → lollipop-JG74M6PJ.js.map} +0 -0
  851. /package/dist/{maf-JEW6PPJB.js.map → maf-PDL2EGHI.js.map} +0 -0
  852. /package/dist/{maftimeline-7URL27MC.js.map → maftimeline-V43NQEEE.js.map} +0 -0
  853. /package/dist/{matrix-6EK5WGIG.js.map → matrix-EB2EFP4S.js.map} +0 -0
  854. /package/dist/{matrix-DKBD5RIL.js.map → matrix-Q57FU5FE.js.map} +0 -0
  855. /package/dist/{matrix.cells-KEIOXJQ7.js.map → matrix.cells-NJIMPD32.js.map} +0 -0
  856. /package/dist/{matrix.config-FGJB4VVM.js.map → matrix.config-GLDEQD3H.js.map} +0 -0
  857. /package/dist/{matrix.data-QGCGFLD7.js.map → matrix.data-6SHAKOQU.js.map} +0 -0
  858. /package/dist/{matrix.groups-HBPLZ2QX.js.map → matrix.groups-MTDEANQA.js.map} +0 -0
  859. /package/dist/{matrix.integration.spec-R4PF67KF.js.map → matrix.integration.spec-JCZ5VQJU.js.map} +0 -0
  860. /package/dist/{matrix.interactivity-M3SY33ET.js.map → matrix.interactivity-SVRNWL6V.js.map} +0 -0
  861. /package/dist/{matrix.layout-H6WQ3ZMW.js.map → matrix.layout-2HREO42N.js.map} +0 -0
  862. /package/dist/{matrix.legend-UCL7HM26.js.map → matrix.legend-QHVKT3MP.js.map} +0 -0
  863. /package/dist/{matrix.renderers-3PPFSS7Z.js.map → matrix.renderers-IYR3ZY6V.js.map} +0 -0
  864. /package/dist/{matrix.serieses-S2TJ3E6P.js.map → matrix.serieses-2VMTQXL2.js.map} +0 -0
  865. /package/dist/{matrix.sort-CFA4UWBJ.js.map → matrix.sort-PWA2RQQR.js.map} +0 -0
  866. /package/dist/{matrix.sort.unit.spec-562VIWDS.js.map → matrix.sort.unit.spec-3OYIPTFY.js.map} +0 -0
  867. /package/dist/{matrix.sorterUi-FT7K5664.js.map → matrix.sorterUi-Y5QLO75X.js.map} +0 -0
  868. /package/dist/{matrix.sorterUi.unit.spec-GAHHUN3K.js.map → matrix.sorterUi.unit.spec-BNEXQHLP.js.map} +0 -0
  869. /package/dist/{mavb-HPW5X55U.js.map → mavb-IZDDU4KK.js.map} +0 -0
  870. /package/dist/{mds.fimo-HSBKLIOX.js.map → mds.fimo-FWBL7JE6.js.map} +0 -0
  871. /package/dist/{mds.samplescatterplot-DE27OMJE.js.map → mds.samplescatterplot-T47C7DJB.js.map} +0 -0
  872. /package/dist/{mds.survivalplot-IW22UGCE.js.map → mds.survivalplot-MFZJCGS6.js.map} +0 -0
  873. /package/dist/{numericDictTermCluster-DOD66G3A.js.map → numericDictTermCluster-I2W67RGA.js.map} +0 -0
  874. /package/dist/{oncomatrix-BZCVCPR4.js.map → oncomatrix-6W7IBAED.js.map} +0 -0
  875. /package/dist/{oncomatrix.spec-IHYCIAP4.js.map → oncomatrix.spec-CEFH5IGH.js.map} +0 -0
  876. /package/dist/{plot.2dvaf-QLOZ54VC.js.map → plot.2dvaf-BN6CFLNU.js.map} +0 -0
  877. /package/dist/{plot.app-XDVDR23J.js.map → plot.app-7EYWUCZV.js.map} +0 -0
  878. /package/dist/{plot.barplot-XOESF7OQ.js.map → plot.barplot-MDIARSQD.js.map} +0 -0
  879. /package/dist/{plot.boxplot-VNOC2CHT.js.map → plot.boxplot-RUHGXC54.js.map} +0 -0
  880. /package/dist/{plot.brainImaging-7ZEOY4UR.js.map → plot.brainImaging-JEE32ZBV.js.map} +0 -0
  881. /package/dist/{plot.disco-6GVDYK7A.js.map → plot.disco-2RPNPX6E.js.map} +0 -0
  882. /package/dist/{plot.dzi-TEFPPPL6.js.map → plot.dzi-7VTYYGGW.js.map} +0 -0
  883. /package/dist/{plot.ssgq-OG4TODLO.js.map → plot.ssgq-FHE5KU5C.js.map} +0 -0
  884. /package/dist/{plot.vaf2cov-VMZRJULA.js.map → plot.vaf2cov-WDJJM5Q4.js.map} +0 -0
  885. /package/dist/{plot.wsi-2CHZZ7AC.js.map → plot.wsi-FQZWHNSF.js.map} +0 -0
  886. /package/dist/{polar-QUYQRQOQ.js.map → polar-M7EGINN4.js.map} +0 -0
  887. /package/dist/{polar2-OXXLAXJC.js.map → polar2-JFYY43K2.js.map} +0 -0
  888. /package/dist/{profile.spec-TI6PRHNJ.js.map → profile.spec-SIOHASOX.js.map} +0 -0
  889. /package/dist/{profileBarchart-GEK77XEB.js.map → profileBarchart-6JLEKVJV.js.map} +0 -0
  890. /package/dist/{profileForms-NR3VNHKM.js.map → profileForms-G6CH73RV.js.map} +0 -0
  891. /package/dist/{profilePlot-GGKO3IW5.js.map → profilePlot-NQYJOBVV.js.map} +0 -0
  892. /package/dist/{profileRadar-MN3LX5ER.js.map → profileRadar-4TNWIXDB.js.map} +0 -0
  893. /package/dist/{profileRadarFacility-3G2HWB2L.js.map → profileRadarFacility-XPH3LCBQ.js.map} +0 -0
  894. /package/dist/{proteomeAbundance-O4BB55O3.js.map → proteomeAbundance-NQ4635NL.js.map} +0 -0
  895. /package/dist/{qualitative-Q3TT73O7.js.map → qualitative-DL4WJG3O.js.map} +0 -0
  896. /package/dist/{radar2-LSD3VPZT.js.map → radar2-YNOQWHBT.js.map} +0 -0
  897. /package/dist/{radarFacility2-LZGIXY7A.js.map → radarFacility2-24UPSI7S.js.map} +0 -0
  898. /package/dist/{regression-J3XDAPAZ.js.map → regression-URAUTLTD.js.map} +0 -0
  899. /package/dist/{regression.inputs-BBZYI5OI.js.map → regression.inputs-UDVOU7FB.js.map} +0 -0
  900. /package/dist/{regression.inputs.term-7BW6XGLG.js.map → regression.inputs.term-BWW6W34R.js.map} +0 -0
  901. /package/dist/{regression.inputs.values.table-DYX2YU4H.js.map → regression.inputs.values.table-UKGIZTXG.js.map} +0 -0
  902. /package/dist/{regression.integration.spec-WLXZYKWW.js.map → regression.integration.spec-EBHQTNA3.js.map} +0 -0
  903. /package/dist/{regression.results-K5Q2N2KW.js.map → regression.results-XTOSWIP6.js.map} +0 -0
  904. /package/dist/{regression.spec-VT7T6KBY.js.map → regression.spec-KG2I53VR.js.map} +0 -0
  905. /package/dist/{report-3D3L573D.js.map → report-KH7SNPVF.js.map} +0 -0
  906. /package/dist/{sampleScatter.spec-6IPJQLM2.js.map → sampleScatter.spec-PIXGS3LG.js.map} +0 -0
  907. /package/dist/{sampleView-5JMFI4HF.js.map → sampleView-TWS6VT55.js.map} +0 -0
  908. /package/dist/{samplelst-SUCB5WOZ.js.map → samplelst-6AB5Y4WR.js.map} +0 -0
  909. /package/dist/{samplematrix-A5SZBKO6.js.map → samplematrix-AJAF555E.js.map} +0 -0
  910. /package/dist/{sc-NAA6ESO6.js.map → sc-PMNYZKXA.js.map} +0 -0
  911. /package/dist/{scatter-EQCN2HYE.js.map → scatter-Q2GH3ZJD.js.map} +0 -0
  912. /package/dist/{scatter.integration.spec-7NXIYS67.js.map → scatter.integration.spec-SMMYKWH3.js.map} +0 -0
  913. /package/dist/{selectGenomeWithTklst-KXODNCY6.js.map → selectGenomeWithTklst-VE4SDYY7.js.map} +0 -0
  914. /package/dist/{singleCellCellType-HMIW76YB.js.map → singleCellCellType-S324GCKW.js.map} +0 -0
  915. /package/dist/{singleCellCellType.unit.spec-ZCZET56X.js.map → singleCellCellType.unit.spec-NXC2GELH.js.map} +0 -0
  916. /package/dist/{singleCellGeneExpression-IUCUHF6R.js.map → singleCellGeneExpression-6H4HRKIA.js.map} +0 -0
  917. /package/dist/{singleCellGeneExpression.unit.spec-J4D6F2N3.js.map → singleCellGeneExpression.unit.spec-HIJXVUWJ.js.map} +0 -0
  918. /package/dist/{singleCellPlot-L6W3MDGG.js.map → singleCellPlot-H7PCZ2DP.js.map} +0 -0
  919. /package/dist/{singlecell-A6ECAAPI.js.map → singlecell-4LH3MQVL.js.map} +0 -0
  920. /package/dist/{singlecell-KBABNXC5.js.map → singlecell-MOSYT3RI.js.map} +0 -0
  921. /package/dist/{snp-RO7ATG6E.js.map → snp-IKLGTD4Q.js.map} +0 -0
  922. /package/dist/{snp.unit.spec-ZJLRGJD4.js.map → snp.unit.spec-GC74MUVM.js.map} +0 -0
  923. /package/dist/{snplocus-N3CU6NRP.js.map → snplocus-RIABFSBQ.js.map} +0 -0
  924. /package/dist/{spliceevent.a53ss.diagram-7PHT4COB.js.map → spliceevent.a53ss.diagram-4E2IYYHL.js.map} +0 -0
  925. /package/dist/{spliceevent.exonskip.diagram-3CZTY6QD.js.map → spliceevent.exonskip.diagram-C56R6XLQ.js.map} +0 -0
  926. /package/dist/{spliceevent.noeventdiagram-GQE256DT.js.map → spliceevent.noeventdiagram-SIPMAKXI.js.map} +0 -0
  927. /package/dist/{ssGSEA-4I3L5MX2.js.map → ssGSEA-5QNHLSOI.js.map} +0 -0
  928. /package/dist/{ssGSEA.unit.spec-PZCC5YU7.js.map → ssGSEA.unit.spec-KVPN553B.js.map} +0 -0
  929. /package/dist/{summarizeCnvGeneexp-ASXUQW56.js.map → summarizeCnvGeneexp-K4VGJSW6.js.map} +0 -0
  930. /package/dist/{summarizeGeneexpSurvival-ULGUOW5V.js.map → summarizeGeneexpSurvival-HGHX65FN.js.map} +0 -0
  931. /package/dist/{summarizeMutationCnv-VDUCIUGM.js.map → summarizeMutationCnv-3K4Z6R2X.js.map} +0 -0
  932. /package/dist/{summarizeMutationDiagnosis-FMAAMCZC.js.map → summarizeMutationDiagnosis-M2MHUPRT.js.map} +0 -0
  933. /package/dist/{summarizeMutationSurvival-GZ4NGDJT.js.map → summarizeMutationSurvival-WVBUP3GA.js.map} +0 -0
  934. /package/dist/{summary-2WNZ6JSB.js.map → summary-RZHZXCU5.js.map} +0 -0
  935. /package/dist/{summary.integration.spec-XPMYB6GM.js.map → summary.integration.spec-FGZP7DY7.js.map} +0 -0
  936. /package/dist/{summaryInput-2UGXEA5C.js.map → summaryInput-UGM7MMCR.js.map} +0 -0
  937. /package/dist/{sunburst-76WCQLTT.js.map → sunburst-L27U7LV7.js.map} +0 -0
  938. /package/dist/{survival-3EAMPHSX.js.map → survival-5ZMEBV6O.js.map} +0 -0
  939. /package/dist/{survival-23IZM4ML.js.map → survival-JWRRGTJT.js.map} +0 -0
  940. /package/dist/{survival.integration.spec-YNVAKBV3.js.map → survival.integration.spec-Z5542I4V.js.map} +0 -0
  941. /package/dist/{svgraph-G2M5LXEP.js.map → svgraph-O6ZVLNNN.js.map} +0 -0
  942. /package/dist/{svmr-BUDBVU34.js.map → svmr-ULFV7OSH.js.map} +0 -0
  943. /package/dist/{table-QJSZ6YFK.js.map → table-CHRQH2GH.js.map} +0 -0
  944. /package/dist/{termCollection-2YAY3RLZ.js.map → termCollection-FAO6ZA6F.js.map} +0 -0
  945. /package/dist/{termCollection-MAMDMEDD.js.map → termCollection-GBXS3GOY.js.map} +0 -0
  946. /package/dist/{termCollection.unit.spec-UY7G2BHG.js.map → termCollection.unit.spec-4WRTOV6E.js.map} +0 -0
  947. /package/dist/{tk-GFGP3F76.js.map → tk-KNUBWRNK.js.map} +0 -0
  948. /package/dist/{tp.ui-OQ757UIE.js.map → tp.ui-2PPYOQYL.js.map} +0 -0
  949. /package/dist/{tvs.density-BJK23JYJ.js.map → tvs.density-BZ5SKDQS.js.map} +0 -0
  950. /package/dist/{tvs.dt-TOYEFKNT.js.map → tvs.dt-TDNSTGQR.js.map} +0 -0
  951. /package/dist/{tvs.dtcnv.categorical-EO2VLFL2.js.map → tvs.dtcnv.categorical-P2IGIE4I.js.map} +0 -0
  952. /package/dist/{tvs.dtcnv.continuous-ZAHTKZ4Y.js.map → tvs.dtcnv.continuous-2XUCRBDR.js.map} +0 -0
  953. /package/dist/{tvs.dtfusion-BY3AHBL3.js.map → tvs.dtfusion-PRHZVMOG.js.map} +0 -0
  954. /package/dist/{tvs.dtsnvindel-UM5LQ4FR.js.map → tvs.dtsnvindel-KGKBW5JS.js.map} +0 -0
  955. /package/dist/{tvs.dtsv-H7ZVHLS5.js.map → tvs.dtsv-M3CY5TZF.js.map} +0 -0
  956. /package/dist/{tvs.numeric-66FP6RRH.js.map → tvs.numeric-W74JCC5P.js.map} +0 -0
  957. /package/dist/{tvs.samplelst-Q5ECTZOY.js.map → tvs.samplelst-BTWFBBAN.js.map} +0 -0
  958. /package/dist/{tvs.termCollection-FYNMKZTR.js.map → tvs.termCollection-Y64QIKOA.js.map} +0 -0
  959. /package/dist/{violin-EGWLAJVM.js.map → violin-3LLHHV3L.js.map} +0 -0
  960. /package/dist/{violin.integration.spec-3P4TYHBR.js.map → violin.integration.spec-6NF5FDLQ.js.map} +0 -0
  961. /package/dist/{violin.interactivity-VWDR4LYB.js.map → violin.interactivity-W2AKZ24D.js.map} +0 -0
  962. /package/dist/{violin.renderer-WWTU6J7X.js.map → violin.renderer-CRFYYZRI.js.map} +0 -0
  963. /package/dist/{vocabulary-JG4ZITOH.js.map → vocabulary-AUJOAVYS.js.map} +0 -0
@@ -1,3236 +0,0 @@
1
- import {
2
- InvalidDataUI,
3
- configUiInit,
4
- fillbar,
5
- getMaxLabelWidth,
6
- getNormalRoot,
7
- renderTable,
8
- svgLegend,
9
- table2col
10
- } from "./chunk-LN3QYBGI.js";
11
- import "./chunk-HJ6L54YS.js";
12
- import "./chunk-LSEFWW72.js";
13
- import "./chunk-BTJFVY3R.js";
14
- import {
15
- Menu
16
- } from "./chunk-HYOEWQ5P.js";
17
- import "./chunk-HBW42TDT.js";
18
- import "./chunk-G6O3URDN.js";
19
- import "./chunk-FN5XPUPH.js";
20
- import {
21
- topBarInit
22
- } from "./chunk-KWM6B3NL.js";
23
- import "./chunk-UCLS2SVB.js";
24
- import "./chunk-UWYCEYML.js";
25
- import "./chunk-7UHUOC6F.js";
26
- import {
27
- dofetch3
28
- } from "./chunk-YC6ZJ7RP.js";
29
- import {
30
- copyMerge,
31
- getCompInit,
32
- multiInit
33
- } from "./chunk-MVTCBVSX.js";
34
- import "./chunk-2K5DSRBJ.js";
35
- import "./chunk-ZYY54HBU.js";
36
- import "./chunk-EGWVYY7K.js";
37
- import {
38
- bplen,
39
- dtcnv,
40
- dtfusionrna,
41
- dtloh,
42
- dtsnvindel,
43
- dtsv,
44
- mclass
45
- } from "./chunk-AMYSEKPF.js";
46
- import "./chunk-AQVOYTLS.js";
47
- import "./chunk-TV74I3Y5.js";
48
- import {
49
- arc_default,
50
- line_default,
51
- pie_default,
52
- ribbon_default
53
- } from "./chunk-KSGA62R2.js";
54
- import "./chunk-LOZEKOES.js";
55
- import "./chunk-TOU7EVFQ.js";
56
- import {
57
- linear,
58
- ticks
59
- } from "./chunk-OAWQ6LOO.js";
60
- import "./chunk-L4QG7XZE.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-DQC5FFGV.js";
68
- import "./chunk-HFNDKYVF.js";
69
-
70
- // plots/disco/arc/FullArcRenderer.ts
71
- var FullArcRenderer = class {
72
- constructor(radius, width, color) {
73
- this.radius = radius;
74
- this.width = width;
75
- this.color = color;
76
- }
77
- render(holder) {
78
- const donutGenerator = arc_default();
79
- const arc = {
80
- startAngle: 0,
81
- endAngle: Math.PI * 2,
82
- innerRadius: this.radius,
83
- outerRadius: this.radius + this.width,
84
- color: this.color,
85
- text: "No label"
86
- };
87
- const array = [];
88
- array.push(arc);
89
- const donutArc = holder.append("g");
90
- donutArc.selectAll("path").data(array).enter().append("path").attr("d", (d) => donutGenerator(d)).attr("fill", (d) => d.color);
91
- }
92
- };
93
-
94
- // plots/disco/menu/MenuProvider.ts
95
- var MenuProvider = class {
96
- static create() {
97
- const menu = new Menu({ padding: 5 });
98
- menu.d.style("border", "1px solid #FFF").style("position", "absolute").style("z-index", 1001);
99
- return menu;
100
- }
101
- };
102
-
103
- // plots/disco/fusion/FusionColorProvider.ts
104
- var FusionColorProvider = class {
105
- static getColor(chrA, chrB) {
106
- if (chrA != chrB) {
107
- return "#6A3D9A" /* Interchromosomal */.valueOf();
108
- } else {
109
- return "#1B9E77" /* Intrachromosomal */.valueOf();
110
- }
111
- }
112
- };
113
-
114
- // plots/disco/fusion/FusionRenderer.ts
115
- var FusionRenderer = class {
116
- constructor(genome) {
117
- this.genome = genome;
118
- }
119
- render(holder, fusions, opacity = 1) {
120
- let radius = 0;
121
- const fusionsWithTarget = fusions.filter((f) => f.target);
122
- if (fusionsWithTarget.length > 0) {
123
- radius = fusionsWithTarget[0].target.radius;
124
- const fullArcRenderer = new FullArcRenderer(radius, 2, "#6464641A");
125
- fullArcRenderer.render(holder);
126
- } else return;
127
- const ribbon = ribbon_default().radius(radius);
128
- const ribbons = holder.selectAll(".chord").data(fusions);
129
- const menu = MenuProvider.create();
130
- const createTooltip = this.createTooltip.bind(this);
131
- const genome = this.genome;
132
- ribbons.enter().append("path").attr("class", "chord").attr("d", ribbon).attr("fill", (fusion) => {
133
- return FusionColorProvider.getColor(
134
- fusion.source.positionInChromosome.chromosome,
135
- fusion.target.positionInChromosome.chromosome
136
- );
137
- }).style("opacity", opacity).each(function(d) {
138
- const path = select_default(this);
139
- const tip = MenuProvider.create();
140
- path.on("click", async function(event) {
141
- tip.clear().show(event.x, event.y);
142
- const div = tip.d.append("div");
143
- await makeSvgraph(d, div, genome);
144
- });
145
- }).on("mouseover", async function(mouseEvent, fusion) {
146
- const table = table2col({ holder: menu.d });
147
- createTooltip(table, fusion);
148
- menu.show(mouseEvent.x, mouseEvent.y);
149
- }).on("mouseout", () => {
150
- menu.clear();
151
- menu.hide();
152
- });
153
- }
154
- createTooltip(table, fusion) {
155
- {
156
- const [td1, td2] = table.addRow();
157
- td1.text("Data type");
158
- td2.append("span").style("margin-left", "5px").text("Fusion transcript");
159
- }
160
- {
161
- const positionInChromosomeSource = fusion.source.positionInChromosome;
162
- const positionInChromosomeTarget = fusion.target.positionInChromosome;
163
- const [td1, td2] = table.addRow();
164
- td1.text("Position");
165
- td2.append("span").style("margin-left", "5px").text(
166
- ` ${fusion.source.gene || ""} ${positionInChromosomeSource.chromosome}:${positionInChromosomeSource.position} ${fusion.source.strand === "+" ? "forward" : "reverse"} > ${fusion.target.gene || ""} ${positionInChromosomeTarget.chromosome}:${positionInChromosomeTarget.position} ${fusion.target.strand === "+" ? "forward" : "reverse"} `
167
- );
168
- }
169
- }
170
- };
171
- async function makeSvgraph(fusion, div, genome) {
172
- const wait = div.append("div").text("Loading...");
173
- const svpair = {
174
- a: {
175
- chr: fusion.source.positionInChromosome.chromosome,
176
- position: fusion.source.positionInChromosome.position,
177
- strand: fusion.source.strand
178
- },
179
- b: {
180
- chr: fusion.target.positionInChromosome.chromosome,
181
- position: fusion.target.positionInChromosome.position,
182
- strand: fusion.target.strand
183
- }
184
- };
185
- await getGm(svpair.a, genome.name, fusion.source.gene);
186
- await getGm(svpair.b, genome.name, fusion.target.gene);
187
- wait.remove();
188
- const _ = await import("./svgraph-G2M5LXEP.js");
189
- _.default({
190
- pairlst: [svpair],
191
- genome,
192
- holder: div
193
- });
194
- }
195
- async function getGm(p, genome, name) {
196
- const d = await dofetch3("isoformbycoord", {
197
- body: { genome, chr: p.chr, pos: p.position }
198
- });
199
- if (d.error) throw d.error;
200
- const u = d.lst.find((i) => i.isdefault && name === i.name) || d.lst[0];
201
- if (u) {
202
- p.name = u.name;
203
- p.gm = { isoform: u.isoform };
204
- }
205
- }
206
-
207
- // plots/disco/DiscoRenderer.ts
208
- var DiscoRenderer = class {
209
- constructor(renders, legendRenderer, genome) {
210
- this.renders = renders;
211
- this.legendRenderer = legendRenderer;
212
- this.fusionRenderer = new FusionRenderer(genome);
213
- }
214
- render(holder, viewModel, onCnvSourceSelect) {
215
- const svgDiv = holder.append("div").style("display", "inline-block").style("font-family", "Arial");
216
- 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);
217
- const mainG = svg.append("g").attr("class", "mainG").attr(
218
- "transform",
219
- `translate(${viewModel.settings.rings.labelLinesInnerRadius + viewModel.settings.rings.labelsToLinesDistance + 100},${viewModel.height / 2})`
220
- );
221
- for (const [ringType, renderer] of this.renders) {
222
- const elements = viewModel.getElements(ringType);
223
- const collisions = viewModel.getCollisions(ringType);
224
- renderer.render(mainG, elements, collisions);
225
- }
226
- this.fusionRenderer.render(mainG, viewModel.fusions, viewModel.settings.Disco.fusionOpacity);
227
- if (viewModel.settings.Disco.centerText) {
228
- const chrRingBbox = mainG.select('[data-testid="sjpp_chromosomes_arc_group"]').node().getBBox();
229
- const text = viewModel.settings.Disco.centerText.length > 20 ? viewModel.settings.Disco.centerText.slice(0, 20) + "..." : viewModel.settings.Disco.centerText;
230
- const textElem = mainG.append("text").attr("class", "sjpp-disco-center-text").text(text);
231
- const textBbox = textElem.node().getBBox();
232
- textElem.attr("transform", `translate(${chrRingBbox.x + chrRingBbox.width / 2 - textBbox.width / 2},0)`);
233
- }
234
- this.legendRenderer.render(
235
- mainG,
236
- viewModel.legend,
237
- -1 * (viewModel.settings.rings.labelLinesInnerRadius + viewModel.settings.rings.labelsToLinesDistance + 75),
238
- viewModel.width,
239
- viewModel.height / 2,
240
- viewModel,
241
- onCnvSourceSelect
242
- );
243
- }
244
- };
245
-
246
- // plots/disco/interactions/DiscoInteractions.ts
247
- var DiscoInteractions = class {
248
- constructor(discoApp) {
249
- this.discoApp = discoApp;
250
- this.downloadClickListener = (svg) => {
251
- const downloadImgName = this.discoApp.state.settings.downloadImgName || "disco.plot";
252
- const a = document.createElement("a");
253
- document.body.appendChild(a);
254
- a.addEventListener(
255
- "click",
256
- () => {
257
- const serializer = new XMLSerializer();
258
- const svg_blob = new Blob([serializer.serializeToString(svg)], {
259
- type: "image/svg+xml"
260
- });
261
- a.download = downloadImgName + ".svg";
262
- a.href = URL.createObjectURL(svg_blob);
263
- document.body.removeChild(a);
264
- },
265
- false
266
- );
267
- a.click();
268
- };
269
- this.geneClickListener = async (gene, mnames) => {
270
- const { filter, filter0 } = this.discoApp.app.getState().termfilter;
271
- const arg = {
272
- holder: this.discoApp.app.opts.holder,
273
- genome: this.discoApp.app.opts.state.args.genome,
274
- nobox: true,
275
- query: gene,
276
- tklst: [
277
- {
278
- type: "mds3",
279
- dslabel: this.discoApp.app.opts.state.vocab.dslabel,
280
- hlaachange: mnames.join(","),
281
- filter0,
282
- filterObj: getNormalRoot(filter)
283
- // must not pass filter as frozen. pass unfrozen, normalized copy so mds3 code will work
284
- }
285
- ]
286
- };
287
- const _ = await import("./block.init-CMG4V6RB.js");
288
- await _.default(arg);
289
- };
290
- this.colorScaleNumericInputsCallback = async (obj) => {
291
- const callAppDispatch = (settings) => {
292
- this.discoApp.app.dispatch({
293
- type: "plot_edit",
294
- id: this.discoApp.id,
295
- config: { settings: { Disco: Object.assign({ cnvCutoffMode: obj.cutoffMode }, settings) } }
296
- });
297
- };
298
- if (obj.cutoffMode == "auto") {
299
- if (obj.min == null || obj.max == null)
300
- throw new Error('Color scale must return min and max if cutoffMode "auto"');
301
- callAppDispatch({
302
- cnvCapping: this.discoApp.state.settings.cnv.capping,
303
- cnvPercentile: this.discoApp.state.settings.cnv.percentile
304
- });
305
- } else if (obj.cutoffMode == "fixed") {
306
- if (obj.min == null || obj.max == null)
307
- throw new Error('Color scale must return min and max if cutoffMode "fixed"');
308
- const diffValue = obj.max !== this.discoApp.state.settings.cnv.capping ? obj.max : Math.abs(obj.min);
309
- callAppDispatch({
310
- cnvCapping: diffValue
311
- });
312
- } else if (obj.cutoffMode == "percentile") callAppDispatch({ cnvPercentile: obj.percentile });
313
- else throw new Error("Unknown cutoff mode returned from dom/ColorScale");
314
- };
315
- this.onMutationWaterfallColorChange = (color) => {
316
- this.discoApp.app.dispatch({
317
- type: "plot_edit",
318
- id: this.discoApp.id,
319
- config: { settings: { Disco: { mutationWaterfallColor: color } } }
320
- });
321
- };
322
- }
323
- };
324
-
325
- // plots/disco/chromosome/Reference.ts
326
- var Reference = class {
327
- /**
328
- * Creates a Reference object that contains information about chromosomes.
329
- * @param settings State settings
330
- * @param chromosomes Chromosome order. This function formats into an obj with `chr` removed.
331
- * @param chromosomeOverride Obj of chromsome keys and sizes. Filtered to remove hidden chromosomes in settings.
332
- */
333
- constructor(settings, chromosomes, chromosomeOverride) {
334
- this.chromosomes = [];
335
- this.chromosomesOrder = [];
336
- this.keysArray = [];
337
- this.totalSizeArray = [];
338
- this.chrSizesArray = [];
339
- const chrSizes = chromosomeOverride || chromosomes;
340
- this.settings = settings;
341
- this.chromosomesOrder = [];
342
- let totalSize = 0;
343
- this.totalPadAngle = Object.keys(chrSizes).length * this.settings.padAngle;
344
- this.totalChromosomesAngle = 2 * Math.PI - this.totalPadAngle;
345
- for (const chr in chrSizes) {
346
- const key = chr.slice(0, 3) === "chr" ? chr.slice(3) : chr;
347
- this.chromosomesOrder.push(chr);
348
- this.keysArray.push(key);
349
- this.totalSizeArray.push(totalSize);
350
- this.chrSizesArray.push(chrSizes[chr]);
351
- totalSize += chrSizes[chr];
352
- }
353
- this.totalSize = totalSize;
354
- let lastAngle = 0;
355
- for (let i = 0; i < this.keysArray.length; i++) {
356
- const chromosomeAngle = this.totalChromosomesAngle * (this.chrSizesArray[i] / totalSize);
357
- const startAngle = i == 0 ? this.settings.padAngle / 2 : lastAngle + this.settings.padAngle;
358
- const endAngle = i == 0 ? this.settings.padAngle / 2 + chromosomeAngle : lastAngle + this.settings.padAngle + chromosomeAngle;
359
- const chromosome = {
360
- start: this.totalSizeArray[i],
361
- size: this.chrSizesArray[i],
362
- factor: 1,
363
- startAngle,
364
- endAngle,
365
- angle: (startAngle + endAngle) / 2,
366
- innerRadius: this.settings.rings.chromosomeInnerRadius,
367
- outerRadius: this.settings.rings.chromosomeInnerRadius + this.settings.rings.chromosomeWidth,
368
- color: "#AAA",
369
- text: this.keysArray[i]
370
- };
371
- this.chromosomes.push(chromosome);
372
- if (chromosome.endAngle != null) {
373
- lastAngle = chromosome.endAngle;
374
- }
375
- }
376
- }
377
- };
378
-
379
- // plots/disco/data/DataObjectMapper.ts
380
- var DataObjectMapper = class {
381
- constructor(sampleName, prioritizedGenes) {
382
- this.sampleName = sampleName;
383
- this.prioritizedGenes = prioritizedGenes;
384
- }
385
- map(dObject) {
386
- return {
387
- dt: dObject.dt,
388
- mname: dObject.mname,
389
- mClass: dObject.class,
390
- gene: dObject.gene,
391
- chr: dObject.chr,
392
- ref: dObject.ref,
393
- alt: dObject.alt,
394
- vafs: dObject.vafs,
395
- position: dObject.pos ? dObject.pos : dObject.position,
396
- poschr: dObject.poschr,
397
- posbins: dObject.posbins,
398
- poslabel: dObject.poslabel,
399
- sampleName: this.sampleName,
400
- ssm_id: dObject.ssm_id,
401
- start: dObject.start,
402
- stop: dObject.stop,
403
- value: dObject.value,
404
- segmean: dObject.segmean,
405
- isPrioritized: this.prioritizedGenes.some((cancerGene) => cancerGene == dObject.gene),
406
- chrA: dObject.chrA,
407
- chrB: dObject.chrB,
408
- geneA: dObject.geneA,
409
- geneB: dObject.geneB,
410
- posA: dObject.posA,
411
- posB: dObject.posB,
412
- strandA: dObject.strandA,
413
- strandB: dObject.strandB
414
- };
415
- }
416
- };
417
-
418
- // plots/disco/data/PercentileMapper.ts
419
- var PercentileMapper = class {
420
- map(data, percentile) {
421
- return this.calculatePercentileForPositivesAndNegatives(data, percentile);
422
- }
423
- calculatePercentileForPositivesAndNegatives(data, percentile) {
424
- const positives = data.filter((x) => x > 0);
425
- const negatives = data.filter((x) => x < 0).map((x) => -1 * x);
426
- let positive = NaN;
427
- let negative = NaN;
428
- if (positives.length > 0) {
429
- positive = this.calculatePercentile(positives, percentile);
430
- }
431
- if (negatives.length > 0) {
432
- negative = -1 * this.calculatePercentile(negatives, percentile);
433
- }
434
- return { positive, negative };
435
- }
436
- calculatePercentile(data, percentile) {
437
- if (data.length === 0) {
438
- throw new Error("Array must contain at least one element.");
439
- }
440
- const sortedValues = data.sort((a, b) => a - b);
441
- const index = percentile / 100 * (sortedValues.length - 1);
442
- const lowerIndex = Math.floor(index);
443
- const upperIndex = Math.ceil(index);
444
- const fraction = index - lowerIndex;
445
- if (lowerIndex === upperIndex) {
446
- return sortedValues[lowerIndex];
447
- }
448
- return sortedValues[lowerIndex] + fraction * (sortedValues[upperIndex] - sortedValues[lowerIndex]);
449
- }
450
- };
451
-
452
- // plots/disco/data/DataMapper.ts
453
- var DataMapper = class _DataMapper {
454
- constructor(settings, reference, sample, prioritizedGenes = []) {
455
- // remove fields and extract filters to seperate classes
456
- this.labelData = [];
457
- this.nonExonicSnvData = [];
458
- this.nonExonicInnerRadius = 0;
459
- this.snvRingDataMap = /* @__PURE__ */ new Map();
460
- this.snvInnerRadius = 0;
461
- this.snvData = [];
462
- this.bpx = 0;
463
- this.onePxArcAngle = 0;
464
- this.filteredSnvData = [];
465
- this.filteredSnvCountByChr = /* @__PURE__ */ new Map();
466
- this.lohData = [];
467
- this.lohInnerRadius = 0;
468
- this.cnvData = [];
469
- this.cnvInnerRadius = 0;
470
- this.fusionData = [];
471
- this.fusionRadius = 0;
472
- this.hasPrioritizedGenes = false;
473
- this.hasWaterfallEligibleChromosome = false;
474
- this.invalidEntries = [];
475
- this.cnvLossMaxValue = 0;
476
- this.cnvGainMaxValue = 0;
477
- this.percentilePositive = 0;
478
- this.percentileNegative = 0;
479
- this.cnvMaxPercentileAbs = 0;
480
- this.mutationWaterfallData = [];
481
- this.mutationWaterfallInnerRadius = 0;
482
- this.mutationWaterfallRangeMin = Infinity;
483
- this.mutationWaterfallRangeMax = -Infinity;
484
- this.lohMaxValue = void 0;
485
- this.lohMinValue = void 0;
486
- this.snvFilter = (data) => data.dt == dtsnvindel;
487
- this.fusionFilter = (data) => data.dt == dtfusionrna || data.dt == dtsv;
488
- this.cnvFilter = (data) => data.dt == dtcnv;
489
- this.lohFilter = (data) => data.dt == dtloh;
490
- this.compareData = (a, b) => {
491
- const chrDiff = this.reference.chromosomesOrder.indexOf(a.chr) - this.reference.chromosomesOrder.indexOf(b.chr);
492
- if (chrDiff != 0) {
493
- return chrDiff;
494
- }
495
- const aPos = a.pos ? a.pos : a.start;
496
- const bPos = b.pos ? b.pos : b.start;
497
- return aPos - bPos;
498
- };
499
- this.settings = settings;
500
- this.reference = reference;
501
- this.sample = sample;
502
- this.excludedChromosomes = this.settings.Disco.hiddenChromosomes;
503
- this.lastInnerRadious = this.settings.rings.chromosomeInnerRadius;
504
- this.gainCapped = this.settings.Disco.cnvCapping;
505
- this.lossCapped = -1 * this.settings.Disco.cnvCapping;
506
- this.nonExonicFilter = (data) => {
507
- if (prioritizedGenes.length > 0 && this.settings.Disco.prioritizeGeneLabelsByGeneSets) {
508
- return prioritizedGenes.includes(data.gene) && settings.rings.nonExonicFilterValues.includes(ViewModelMapper.snvClassLayer[data.mClass]);
509
- } else {
510
- return settings.rings.nonExonicFilterValues.includes(ViewModelMapper.snvClassLayer[data.mClass]);
511
- }
512
- };
513
- this.snvRingFilter = (data) => {
514
- if (prioritizedGenes.length > 0 && this.settings.Disco.prioritizeGeneLabelsByGeneSets) {
515
- return prioritizedGenes.includes(data.gene) && settings.rings.snvRingFilters.includes(ViewModelMapper.snvClassLayer[data.mClass]);
516
- } else {
517
- return settings.rings.snvRingFilters.includes(ViewModelMapper.snvClassLayer[data.mClass]);
518
- }
519
- };
520
- this.dataObjectMapper = new DataObjectMapper(sample, prioritizedGenes);
521
- }
522
- map(data) {
523
- const dataArray = [];
524
- this.filteredSnvCountByChr.clear();
525
- this.hasWaterfallEligibleChromosome = false;
526
- this.mutationWaterfallData = [];
527
- this.mutationWaterfallInnerRadius = 0;
528
- this.mutationWaterfallRangeMin = Infinity;
529
- this.mutationWaterfallRangeMax = -Infinity;
530
- data.forEach((dObject) => {
531
- const index = this.reference.chromosomesOrder.indexOf(dObject.chr);
532
- const indexA = this.reference.chromosomesOrder.indexOf(dObject.chrA);
533
- const indexB = this.reference.chromosomesOrder.indexOf(dObject.chrB);
534
- if (dObject.dt == dtsnvindel) {
535
- if (index != -1 && this.snvData.length < this.settings.snv.maxMutationCount) {
536
- const pos = dObject.pos ?? dObject.position;
537
- const chrSize = this.reference.chromosomes[index].size;
538
- if (Number.isFinite(pos) && pos >= 0 && pos <= chrSize) {
539
- this.addData(dObject, dataArray);
540
- } else {
541
- this.invalidEntries.push({ dataType: "SNV", reason: `Position ${pos} outside of ${dObject.chr}` });
542
- }
543
- } else if (index == -1) {
544
- if (!this.excludedChromosomes.includes(dObject.chr)) {
545
- this.invalidEntries.push({ dataType: "SNV", reason: `Unknown chr ${dObject.chr}` });
546
- }
547
- }
548
- } else if (dObject.dt == dtfusionrna || dObject.dt == dtsv) {
549
- if (indexA != -1 && indexB != -1) {
550
- const posA = dObject.posA;
551
- const posB = dObject.posB;
552
- const chrSizeA = this.reference.chromosomes[indexA].size;
553
- const chrSizeB = this.reference.chromosomes[indexB].size;
554
- if (Number.isFinite(posA) && Number.isFinite(posB) && posA >= 0 && posA <= chrSizeA && posB >= 0 && posB <= chrSizeB) {
555
- this.addData(dObject, dataArray);
556
- } else {
557
- const reasonParts = [];
558
- if (!(Number.isFinite(posA) && posA >= 0 && posA <= chrSizeA))
559
- reasonParts.push(`Position ${posA} outside of ${dObject.chrA}`);
560
- if (!(Number.isFinite(posB) && posB >= 0 && posB <= chrSizeB))
561
- reasonParts.push(`Position ${posB} outside of ${dObject.chrB}`);
562
- this.invalidEntries.push({ dataType: "Fusion", reason: reasonParts.join("; ") });
563
- }
564
- } else {
565
- const missing = [];
566
- if (indexA == -1 && !this.excludedChromosomes.includes(dObject.chrA)) missing.push(dObject.chrA);
567
- if (indexB == -1 && !this.excludedChromosomes.includes(dObject.chrB)) missing.push(dObject.chrB);
568
- if (missing.length) this.invalidEntries.push({ dataType: "Fusion", reason: "Unknown chr in fusion" });
569
- }
570
- } else if ([dtcnv, dtloh].includes(Number(dObject.dt))) {
571
- const idx = this.reference.chromosomesOrder.indexOf(dObject.chr);
572
- if (dObject.chr && idx != -1) {
573
- const chrSize = this.reference.chromosomes[idx].size;
574
- const start = dObject.start;
575
- const stop = dObject.stop;
576
- if (Number.isFinite(start) && Number.isFinite(stop) && start >= 0 && stop <= chrSize && start <= stop) {
577
- this.addData(dObject, dataArray);
578
- } else {
579
- this.invalidEntries.push({
580
- dataType: dObject.dt == dtcnv ? "CNV" : "LOH",
581
- reason: `Position ${start}-${stop} outside of ${dObject.chr}`
582
- });
583
- }
584
- } else {
585
- if (!this.excludedChromosomes.includes(dObject.chr)) {
586
- this.invalidEntries.push({
587
- dataType: dObject.dt == dtcnv ? "CNV" : "LOH",
588
- reason: `Unknown chr ${dObject.chr}`
589
- });
590
- }
591
- }
592
- } else {
593
- throw Error("Unknown mutation type!");
594
- }
595
- });
596
- const sortedData = dataArray.sort(this.compareData);
597
- if (this.settings.rings.nonExonicRingEnabled) {
598
- sortedData.forEach((data2) => {
599
- this.filterNonExonicSnvData(data2);
600
- });
601
- }
602
- if (this.nonExonicSnvData.length > 0) {
603
- this.nonExonicInnerRadius = this.lastInnerRadious - this.settings.rings.nonExonicRingWidth;
604
- this.lastInnerRadious = this.nonExonicInnerRadius;
605
- }
606
- sortedData.forEach((data2) => {
607
- this.filterSnvs(data2);
608
- });
609
- this.hasWaterfallEligibleChromosome = Array.from(this.filteredSnvCountByChr.values()).some((count) => count >= 2);
610
- if (this.settings.Disco.mutationWaterfallPlot && this.hasWaterfallEligibleChromosome) {
611
- this.prepareMutationWaterfallData();
612
- }
613
- sortedData.forEach((data2) => {
614
- this.filterLohs(data2);
615
- });
616
- if (this.lohData.length > 0) {
617
- this.lohInnerRadius = this.lastInnerRadious - this.settings.rings.lohRingWidth;
618
- this.lastInnerRadious = this.lohInnerRadius;
619
- }
620
- sortedData.forEach((data2) => {
621
- this.filterCnvs(data2);
622
- });
623
- if (this.cnvData.length > 0) {
624
- this.cnvInnerRadius = this.lastInnerRadious - this.settings.rings.cnvRingWidth;
625
- this.lastInnerRadious = this.cnvInnerRadius;
626
- this.cappedCnvMaxAbsValue = Math.min(
627
- this.settings.Disco.cnvCapping,
628
- Math.max(
629
- Math.abs(_DataMapper.capMaxValue(this.cnvLossMaxValue, this.gainCapped, this.lossCapped)),
630
- Math.abs(_DataMapper.capMaxValue(this.cnvGainMaxValue, this.gainCapped, this.lossCapped))
631
- )
632
- );
633
- const percentilePair = new PercentileMapper().map(
634
- this.cnvData.map((data2) => data2.value),
635
- this.settings.Disco.cnvPercentile
636
- );
637
- this.percentilePositive = _DataMapper.capMaxValue(percentilePair.positive, this.gainCapped, this.lossCapped);
638
- this.percentileNegative = _DataMapper.capMaxValue(percentilePair.negative, this.gainCapped, this.lossCapped);
639
- this.cnvMaxPercentileAbs = Math.min(
640
- this.settings.Disco.cnvCapping,
641
- Math.max(this.percentilePositive, Math.abs(this.percentileNegative))
642
- );
643
- }
644
- sortedData.forEach((data2) => {
645
- this.filterFusion(data2);
646
- });
647
- if (this.fusionData.length > 0) {
648
- this.fusionRadius = this.lastInnerRadious;
649
- }
650
- const dataHolder = {
651
- labelData: this.labelData,
652
- nonExonicSnvData: this.nonExonicSnvData,
653
- nonExonicInnerRadius: this.nonExonicInnerRadius,
654
- snvRingDataMap: this.snvRingDataMap,
655
- snvInnerRadius: this.snvInnerRadius,
656
- snvData: this.snvData,
657
- bpx: this.bpx,
658
- onePxArcAngle: this.onePxArcAngle,
659
- filteredSnvData: this.filteredSnvData,
660
- lohData: this.lohData,
661
- lohInnerRadius: this.lohInnerRadius,
662
- cnvData: this.cnvData,
663
- cnvInnerRadius: this.cnvInnerRadius,
664
- fusionData: this.fusionData,
665
- fusionRadius: this.fusionRadius,
666
- hasPrioritizedGenes: this.hasPrioritizedGenes,
667
- hasWaterfallEligibleChromosome: this.hasWaterfallEligibleChromosome,
668
- cnvGainMaxValue: this.cnvGainMaxValue,
669
- cnvLossMaxValue: this.cnvLossMaxValue,
670
- cappedCnvMaxAbsValue: this.cappedCnvMaxAbsValue,
671
- percentilePositive: this.percentilePositive,
672
- percentileNegative: this.percentileNegative,
673
- cnvMaxPercentileAbs: this.cnvMaxPercentileAbs,
674
- lohMaxValue: this.lohMaxValue,
675
- lohMinValue: this.lohMinValue,
676
- mutationWaterfallData: this.mutationWaterfallData,
677
- mutationWaterfallInnerRadius: this.mutationWaterfallInnerRadius,
678
- mutationWaterfallLogRange: this.mutationWaterfallData.length ? { min: this.mutationWaterfallRangeMin, max: this.mutationWaterfallRangeMax } : void 0,
679
- invalidDataInfo: {
680
- entries: this.invalidEntries,
681
- errorMsg: `Entries listed above were skipped due to invalid or unsupported chromosome information.`
682
- }
683
- };
684
- return dataHolder;
685
- }
686
- addData(dObject, dataArray) {
687
- const instance = this.dataObjectMapper.map(dObject);
688
- if (instance.isPrioritized) {
689
- this.hasPrioritizedGenes = true;
690
- }
691
- dataArray.push(instance);
692
- }
693
- filterNonExonicSnvData(data) {
694
- if (this.snvFilter(data)) {
695
- if (this.settings.rings.nonExonicRingEnabled && this.nonExonicFilter(data)) {
696
- this.nonExonicSnvData.push(data);
697
- }
698
- }
699
- }
700
- filterSnvs(data) {
701
- if (this.snvFilter(data)) {
702
- this.snvData.push(data);
703
- if (this.snvRingFilter(data)) {
704
- if (this.snvInnerRadius == 0) {
705
- this.snvInnerRadius = this.lastInnerRadious - this.settings.rings.snvRingWidth;
706
- this.lastInnerRadious = this.snvInnerRadius;
707
- this.bpx = Math.floor(this.reference.totalSize / (this.reference.totalChromosomesAngle * this.snvInnerRadius));
708
- this.onePxArcAngle = 1 / this.snvInnerRadius;
709
- }
710
- this.filteredSnvData.push(data);
711
- this.labelData.push(data);
712
- const currentCount = this.filteredSnvCountByChr.get(data.chr) || 0;
713
- this.filteredSnvCountByChr.set(data.chr, currentCount + 1);
714
- const arcAngle = this.calculateArcAngle(data);
715
- let dataArray = this.snvRingDataMap.get(arcAngle);
716
- if (!dataArray) {
717
- dataArray = new Array();
718
- }
719
- dataArray.push(data);
720
- this.snvRingDataMap.set(arcAngle, dataArray);
721
- }
722
- }
723
- }
724
- filterFusion(data) {
725
- if (this.fusionFilter(data)) {
726
- data.isPrioritized = true;
727
- this.fusionData.push(data);
728
- this.labelData.push(data);
729
- }
730
- }
731
- filterLohs(data) {
732
- if (this.lohFilter(data)) {
733
- if (this.lohMaxValue == void 0 || this.lohMaxValue < data.value) {
734
- this.lohMaxValue = data.segmean;
735
- }
736
- if (this.lohMinValue == void 0 || this.lohMinValue > data.value) {
737
- this.lohMinValue = data.segmean;
738
- }
739
- this.lohData.push(data);
740
- }
741
- }
742
- filterCnvs(data) {
743
- if (this.cnvFilter(data)) {
744
- if (!data.chr || this.reference.chromosomesOrder.indexOf(data.chr) == -1) {
745
- return;
746
- }
747
- if (this.cnvGainMaxValue == void 0 || this.cnvGainMaxValue < data.value) {
748
- this.cnvGainMaxValue = data.value;
749
- }
750
- if (this.cnvLossMaxValue == void 0 || this.cnvLossMaxValue > data.value) {
751
- this.cnvLossMaxValue = data.value;
752
- }
753
- this.cnvData.push(data);
754
- }
755
- }
756
- prepareMutationWaterfallData() {
757
- this.mutationWaterfallInnerRadius = this.lastInnerRadious - this.settings.rings.mutationWaterfallRingWidth;
758
- this.lastInnerRadious = this.mutationWaterfallInnerRadius;
759
- const groupedSnvs = /* @__PURE__ */ new Map();
760
- const firstMutationByChr = [];
761
- for (const snv of this.filteredSnvData) {
762
- const list = groupedSnvs.get(snv.chr) || [];
763
- list.push(snv);
764
- groupedSnvs.set(snv.chr, list);
765
- }
766
- for (const [, snvs] of groupedSnvs) {
767
- if (snvs.length < 2) continue;
768
- snvs.sort((a, b) => a.position - b.position);
769
- firstMutationByChr.push({
770
- chr: snvs[0].chr,
771
- position: snvs[0].position,
772
- logDistance: 0
773
- // placeholder updated after range computed
774
- });
775
- for (let i = 1; i < snvs.length; i++) {
776
- const prev = snvs[i - 1];
777
- const curr = snvs[i];
778
- const distance = Math.max(1, Math.abs(curr.position - prev.position));
779
- const logDistance = Math.log10(distance);
780
- this.mutationWaterfallData.push({
781
- chr: curr.chr,
782
- position: curr.position,
783
- logDistance
784
- });
785
- if (logDistance < this.mutationWaterfallRangeMin) {
786
- this.mutationWaterfallRangeMin = logDistance;
787
- }
788
- if (logDistance > this.mutationWaterfallRangeMax) {
789
- this.mutationWaterfallRangeMax = logDistance;
790
- }
791
- }
792
- }
793
- if (!this.mutationWaterfallData.length) {
794
- this.mutationWaterfallRangeMin = 0;
795
- this.mutationWaterfallRangeMax = 0;
796
- }
797
- const topLogDistance = this.mutationWaterfallRangeMax;
798
- for (const first of firstMutationByChr) {
799
- this.mutationWaterfallData.push({
800
- ...first,
801
- logDistance: topLogDistance
802
- });
803
- }
804
- }
805
- calculateArcAngle(data) {
806
- const currentChromosome = this.reference.chromosomes[this.reference.chromosomesOrder.findIndex((chromosomeOrder) => data.chr == chromosomeOrder)];
807
- const dataAnglePos = Math.floor(data.position / this.bpx);
808
- return currentChromosome.startAngle + dataAnglePos * this.onePxArcAngle;
809
- }
810
- static capMaxValue(value, gainCapped, lossCapped) {
811
- if (value && Math.sign(value) == 1) {
812
- return value > gainCapped ? gainCapped : value;
813
- }
814
- if (Math.sign(value) == -1) {
815
- return value < lossCapped ? lossCapped : value;
816
- }
817
- return 0;
818
- }
819
- static capMinValue(value, capMinValue = 1) {
820
- if (Math.sign(value) == 1) {
821
- return value > capMinValue ? value : capMinValue;
822
- }
823
- if (Math.sign(value) == -1) {
824
- return value < -1 * capMinValue ? value : -1 * capMinValue;
825
- }
826
- return 1;
827
- }
828
- };
829
-
830
- // plots/disco/legend/Legend.ts
831
- var Legend = class {
832
- constructor(snvTitle, cnvTitle, lohTitle, fusionTitle, cnvPercentile, cnvCutoffmode, snvClassMap, cnvClassMap, cnvRenderingType, fusionLegend, discoInteractions, lohLegend, mutationWaterfallLegend) {
833
- this.snvTitle = snvTitle;
834
- this.cnvTitle = cnvTitle;
835
- this.lohTitle = lohTitle;
836
- this.fusionTitle = fusionTitle;
837
- this.cnvPercentile = cnvPercentile;
838
- this.cnvCutoffMode = cnvCutoffmode;
839
- this.snvClassMap = snvClassMap;
840
- this.cnvClassMap = cnvClassMap;
841
- this.cnvRenderingType = cnvRenderingType;
842
- this.lohLegend = lohLegend;
843
- this.fusionLegend = fusionLegend;
844
- this.discoInteractions = discoInteractions;
845
- this.mutationWaterfallLegend = mutationWaterfallLegend;
846
- }
847
- legendCount() {
848
- 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);
849
- }
850
- };
851
-
852
- // plots/disco/fusion/Fusion.ts
853
- var Fusion = class {
854
- constructor(source, target, genes, count, endpts) {
855
- this.source = source;
856
- this.target = target;
857
- this.genes = genes;
858
- this.count = count;
859
- this.endpts = endpts;
860
- }
861
- };
862
-
863
- // plots/disco/fusion/FusionSubgroup.ts
864
- var FusionSubgroup = class {
865
- constructor(startAngle, endAngle, radius, gene, value, genes, positionInChromosome, strand) {
866
- this.startAngle = startAngle;
867
- this.endAngle = endAngle;
868
- this.radius = radius;
869
- this.gene = gene;
870
- this.value = value;
871
- this.genes = genes;
872
- this.positionInChromosome = positionInChromosome;
873
- this.strand = strand;
874
- }
875
- };
876
-
877
- // plots/disco/fusion/FusionMapper.ts
878
- var FusionMapper = class {
879
- constructor(radius, sampleName, reference) {
880
- this.radius = radius;
881
- this.sampleName = sampleName;
882
- this.reference = reference;
883
- }
884
- map(fusionData) {
885
- const fusions = [];
886
- fusionData.forEach((data) => {
887
- const genes = /* @__PURE__ */ new Set();
888
- genes.add(data.geneA);
889
- genes.add(data.geneB);
890
- const startAngle = this.calculateStartAngle(data.chrA, data.posA);
891
- const endAngle = this.calculateEndAngle(data.chrA, data.posA);
892
- if (startAngle === null || endAngle === null) return;
893
- const source = new FusionSubgroup(
894
- startAngle,
895
- endAngle,
896
- this.radius,
897
- data.geneA,
898
- data.value,
899
- genes,
900
- {
901
- chromosome: data.chrA,
902
- position: data.posA
903
- },
904
- data.strandA
905
- );
906
- let target;
907
- if (data.chrB && data.posB) {
908
- const startAngle2 = this.calculateStartAngle(data.chrB, data.posB);
909
- const endAngle2 = this.calculateEndAngle(data.chrB, data.posB);
910
- if (startAngle2 === null || endAngle2 === null) return;
911
- target = new FusionSubgroup(
912
- startAngle2,
913
- endAngle2,
914
- this.radius,
915
- data.geneB,
916
- data.value,
917
- genes,
918
- {
919
- chromosome: data.chrB,
920
- position: data.posB
921
- },
922
- data.strandB
923
- );
924
- }
925
- const fusion = new Fusion(source, target, "genes", -1, "Endpoints");
926
- fusions.push(fusion);
927
- });
928
- return fusions;
929
- }
930
- calculateStartAngle(chr, pos) {
931
- const index = this.reference.chromosomesOrder.indexOf(chr);
932
- if (index === -1) return null;
933
- const chromosome = this.reference.chromosomes[index];
934
- return chromosome.startAngle + (chromosome.endAngle - chromosome.startAngle) * (Number(pos) / chromosome.size) - 0.01;
935
- }
936
- calculateEndAngle(chr, pos) {
937
- const index = this.reference.chromosomesOrder.indexOf(chr);
938
- if (index === -1) return null;
939
- const chromosome = this.reference.chromosomes[index];
940
- return 0.01 + chromosome.startAngle + (chromosome.endAngle - chromosome.startAngle) * (Number(pos) / chromosome.size);
941
- }
942
- };
943
-
944
- // plots/disco/loh/GradientColorProvider.ts
945
- var GradientColorProvider = class {
946
- static provide(value) {
947
- const clampedValue = Math.min(Math.max(value, 0), 1);
948
- const colorValue = Math.round(clampedValue * 255);
949
- return `rgb(${colorValue}, ${colorValue}, ${colorValue})`;
950
- }
951
- };
952
-
953
- // plots/disco/loh/LohLegend.ts
954
- var LohLegend = class {
955
- constructor(minValue, maxValue) {
956
- this.minValue = minValue;
957
- this.maxValue = maxValue;
958
- this.colorStartValue = GradientColorProvider.provide(minValue);
959
- this.colorEndValue = GradientColorProvider.provide(maxValue);
960
- }
961
- };
962
-
963
- // plots/disco/viewmodel/ViewModel.ts
964
- var ViewModel = class {
965
- constructor(settings, rings, legend, fusions, dataHolder, genesetName, snvDataLengthAll) {
966
- this.settings = settings;
967
- this.rings = rings;
968
- this.legend = legend;
969
- this.fusions = fusions;
970
- this.genesetName = genesetName;
971
- const tempHolder = select_default("body").append("div").style("position", "absolute").style("visibility", "hidden");
972
- const tempSvg = tempHolder.append("svg");
973
- const labels = rings.labelsRing?.elementsToDisplay?.map((l) => l.text) || [];
974
- const maxLabelSpace = getMaxLabelWidth(tempSvg, labels);
975
- tempHolder.remove();
976
- this.width = 2 * (this.settings.horizontalPadding + this.settings.rings.labelLinesInnerRadius + this.settings.rings.labelsToLinesDistance + maxLabelSpace);
977
- this.height = 2 * (this.settings.rings.labelLinesInnerRadius + this.settings.rings.labelsToLinesDistance + this.settings.verticalPadding + this.settings.label.fontSize * 2 + maxLabelSpace);
978
- this.legendHeight = this.calculateLegendHeight(legend);
979
- this.snvDataLength = dataHolder.snvData.length;
980
- this.filteredSnvDataLength = dataHolder.filteredSnvData.length;
981
- this.snvDataLengthAll = snvDataLengthAll;
982
- this.cnvMaxValue = dataHolder.cnvGainMaxValue;
983
- this.cnvMinValue = dataHolder.cnvLossMaxValue;
984
- this.cappedCnvMaxAbsValue = dataHolder.cappedCnvMaxAbsValue;
985
- this.negativePercentile = dataHolder.percentileNegative;
986
- this.positivePercentile = dataHolder.percentilePositive;
987
- this.invalidDataInfo = dataHolder.invalidDataInfo;
988
- this.canShowMutationWaterfallPlot = dataHolder.hasWaterfallEligibleChromosome;
989
- }
990
- getElements(ringType) {
991
- switch (ringType) {
992
- case 0 /* CHROMOSOME */:
993
- return this.rings.chromosomesRing ? this.rings.chromosomesRing.elements : [];
994
- case 1 /* LABEL */:
995
- return this.rings.labelsRing.elementsToDisplay;
996
- case 2 /* NONEXONICSNV */:
997
- return this.rings.nonExonicArcRing ? this.rings.nonExonicArcRing.elements : [];
998
- case 3 /* SNV */:
999
- return this.rings.snvArcRing ? this.rings.snvArcRing.elements : [];
1000
- case 5 /* CNV */:
1001
- return this.rings.cnvArcRing ? this.rings.cnvArcRing.elements : [];
1002
- case 6 /* LOH */:
1003
- return this.rings.lohArcRing ? this.rings.lohArcRing.elements : [];
1004
- case 4 /* MUTATION_WATERFALL */:
1005
- return this.rings.mutationWaterfallRing ? this.rings.mutationWaterfallRing.elements : [];
1006
- default:
1007
- throw new Error(`ringType ${ringType} not defined`);
1008
- }
1009
- }
1010
- getCollisions(ringType) {
1011
- if (ringType == 1 /* LABEL */) {
1012
- return this.rings.labelsRing.collisions;
1013
- } else {
1014
- return void 0;
1015
- }
1016
- }
1017
- calculateLegendHeight(legend) {
1018
- const rawHeight = this.settings.legend.rowHeight;
1019
- return rawHeight * legend.legendCount();
1020
- }
1021
- };
1022
-
1023
- // plots/disco/ring/Ring.ts
1024
- var Ring = class {
1025
- constructor(innerRadius, width, elements) {
1026
- this.innerRadius = innerRadius;
1027
- this.outerRadius = innerRadius + width;
1028
- this.width = width;
1029
- this.elements = elements;
1030
- }
1031
- };
1032
-
1033
- // plots/disco/label/MLabel.ts
1034
- var MLabel = class _MLabel {
1035
- /**
1036
- * The Singleton's constructor should always be private to prevent direct
1037
- * construction calls with the `new` operator.
1038
- */
1039
- constructor() {
1040
- const mlabel = {};
1041
- for (const key in mclass) {
1042
- mlabel[mclass[key].label] = mclass[key];
1043
- mlabel[key] = mclass[key];
1044
- }
1045
- this.mlabel = mlabel;
1046
- }
1047
- /**
1048
- * The static method that controls the access to the singleton instance.
1049
- *
1050
- * This implementation let you subclass the Singleton class while keeping
1051
- * just one instance of each subclass around.
1052
- */
1053
- static getInstance() {
1054
- if (!_MLabel.instance) {
1055
- _MLabel.instance = new _MLabel();
1056
- }
1057
- return _MLabel.instance;
1058
- }
1059
- };
1060
-
1061
- // plots/disco/snv/SnvLegendElement.ts
1062
- var SnvLegendElement = class {
1063
- constructor(snvType, color, count) {
1064
- this.snvType = snvType;
1065
- this.color = color;
1066
- this.count = count;
1067
- }
1068
- };
1069
-
1070
- // plots/disco/snv/SnvArcsMapper.ts
1071
- var SnvArcsMapper = class {
1072
- constructor(svnInnerRadius, svnWidth, sampleName, reference) {
1073
- this.snvClassMap = /* @__PURE__ */ new Map();
1074
- this.svnInnerRadius = svnInnerRadius;
1075
- this.svnWidth = svnWidth;
1076
- this.sampleName = sampleName;
1077
- this.reference = reference;
1078
- this.bpx = Math.floor(this.reference.totalSize / (this.reference.totalChromosomesAngle * svnInnerRadius));
1079
- this.onePxArcAngle = 1 / svnInnerRadius;
1080
- }
1081
- map(exonicSnvDataMap) {
1082
- const snvArray = [];
1083
- for (const angle of exonicSnvDataMap.keys()) {
1084
- const array = exonicSnvDataMap.get(angle);
1085
- if (array) {
1086
- const arraySize = array.length;
1087
- for (let i = 0; i < array.length; i++) {
1088
- const data = array[i];
1089
- const snvLegendElement = this.snvClassMap.get(data.mClass);
1090
- if (snvLegendElement) {
1091
- this.snvClassMap.set(data.mClass, this.createSnvLegend(data.mClass, ++snvLegendElement.count));
1092
- } else {
1093
- this.snvClassMap.set(data.mClass, this.createSnvLegend(data.mClass, 1));
1094
- }
1095
- const startAngle = angle;
1096
- const endAngle = angle + this.onePxArcAngle;
1097
- const mLabel = MLabel.getInstance().mlabel ? MLabel.getInstance().mlabel[data.mClass] : void 0;
1098
- const arc = {
1099
- startAngle,
1100
- endAngle,
1101
- innerRadius: this.svnInnerRadius + i * this.svnWidth / arraySize,
1102
- outerRadius: this.svnInnerRadius + (i + 1) * this.svnWidth / arraySize,
1103
- color: mLabel.color,
1104
- text: data.gene,
1105
- dataClass: mLabel.label,
1106
- mname: data.mname,
1107
- chr: data.chr,
1108
- pos: data.position,
1109
- vafs: data.vafs,
1110
- sampleName: [data.sampleName]
1111
- };
1112
- snvArray.push(arc);
1113
- }
1114
- }
1115
- }
1116
- return snvArray;
1117
- }
1118
- createSnvLegend(dataClass, count) {
1119
- const mClass = MLabel.getInstance().mlabel[dataClass];
1120
- return new SnvLegendElement(mClass.label, mClass.color, count);
1121
- }
1122
- };
1123
-
1124
- // plots/disco/cnv/CnvLegend.ts
1125
- var CnvLegend = class {
1126
- constructor(text, cnvType, color, value) {
1127
- this.text = text;
1128
- this.cnvType = cnvType;
1129
- this.color = color;
1130
- this.value = value;
1131
- }
1132
- };
1133
-
1134
- // plots/disco/cnv/CnvColorProvider.ts
1135
- var CnvColorProvider = class {
1136
- static getColor(value, settings, cnvMaxPercentileAbs = 0) {
1137
- const cnv = settings.cnv;
1138
- const gainCapped = settings.Disco.cnvRenderingType == "heatmap" /* heatmap */ ? settings.Disco.cnvCapping : cnvMaxPercentileAbs;
1139
- const lossCapped = settings.Disco.cnvRenderingType == "heatmap" /* heatmap */ ? -1 * settings.Disco.cnvCapping : -1 * cnvMaxPercentileAbs;
1140
- if (value < lossCapped) {
1141
- return cnv.cappedLossColor;
1142
- } else if (value >= lossCapped && value <= 0) {
1143
- return cnv.lossColor;
1144
- } else if (value > 0 && value <= gainCapped) {
1145
- return cnv.ampColor;
1146
- } else {
1147
- return cnv.cappedAmpColor;
1148
- }
1149
- }
1150
- };
1151
-
1152
- // plots/disco/cnv/CnvArcsMapper.ts
1153
- var CnvArcsMapper = class {
1154
- constructor(cnvInnerRadius, cnvWidth, settings, sampleName, reference, cnvMaxValue = 0, cnvMinValue = 0, cnvMaxAbsValue = 0, cnvAbsPercentile = 0, cnvUnit = "", cnvRenderingType) {
1155
- this.cnvClassMap = /* @__PURE__ */ new Map();
1156
- this.cnvInnerRadius = cnvInnerRadius;
1157
- this.cnvWidth = cnvWidth;
1158
- this.settings = settings;
1159
- this.sampleName = sampleName;
1160
- this.reference = reference;
1161
- this.cnvMaxValue = cnvMaxValue;
1162
- this.cnvMinValue = cnvMinValue;
1163
- this.cnvMaxAbsValue = cnvMaxAbsValue;
1164
- this.cnvAbsPercentile = cnvAbsPercentile;
1165
- this.cnvUnit = cnvUnit;
1166
- this.cnvRenderingType = cnvRenderingType;
1167
- this.gainCapped = Math.min(cnvAbsPercentile, this.settings.Disco.cnvCapping);
1168
- this.lossCapped = -1 * Math.min(cnvAbsPercentile, this.settings.Disco.cnvCapping);
1169
- this.lossOnly = cnvMaxValue <= 0;
1170
- this.gainOnly = cnvMinValue >= 0;
1171
- this.onePxArcAngle = 1 / this.cnvInnerRadius;
1172
- const gain = new CnvLegend(
1173
- "Max",
1174
- cnvMaxValue > 0 ? 1 /* Gain */ : 0 /* Loss */,
1175
- this.getColor(cnvMaxValue),
1176
- cnvMaxValue
1177
- );
1178
- const loss = new CnvLegend(
1179
- "Min",
1180
- cnvMinValue > 0 ? 1 /* Gain */ : 0 /* Loss */,
1181
- this.getColor(cnvMinValue),
1182
- cnvMinValue
1183
- );
1184
- const cap = new CnvLegend(
1185
- "Capping",
1186
- 0 /* Loss */,
1187
- this.getColor(cnvMinValue > 0 ? cnvMinValue : cnvMaxValue),
1188
- this.settings.Disco.cnvCapping
1189
- );
1190
- this.cnvClassMap.set(1 /* Gain */, gain);
1191
- this.cnvClassMap.set(0 /* Loss */, loss);
1192
- this.cnvClassMap.set(2 /* Cap */, cap);
1193
- }
1194
- map(arcData) {
1195
- const arcs = [];
1196
- arcData.forEach((data) => {
1197
- let startAngle = this.calculateStartAngle(data);
1198
- let endAngle = this.calculateEndAngle(data);
1199
- if (startAngle === null || endAngle === null) return;
1200
- if (endAngle - startAngle < this.onePxArcAngle) {
1201
- const restAngle = this.onePxArcAngle - (endAngle - startAngle);
1202
- startAngle = startAngle - restAngle / 2;
1203
- endAngle = startAngle + restAngle / 2;
1204
- }
1205
- const innerRadius = this.calculateInnerRadius(data);
1206
- const outerRadius = this.calculateOuterRadius(data);
1207
- const color = this.getColor(data.value);
1208
- const arc = {
1209
- startAngle,
1210
- endAngle,
1211
- innerRadius,
1212
- outerRadius,
1213
- color,
1214
- text: data.gene,
1215
- chr: data.chr,
1216
- start: data.start,
1217
- stop: data.stop,
1218
- value: data.value,
1219
- unit: this.cnvUnit,
1220
- sampleName: [this.sampleName]
1221
- };
1222
- arcs.push(arc);
1223
- });
1224
- return arcs;
1225
- }
1226
- calculateStartAngle(data) {
1227
- const index = this.reference.chromosomesOrder.indexOf(data.chr);
1228
- if (index == -1) return null;
1229
- const chromosome = this.reference.chromosomes[index];
1230
- return chromosome.startAngle + (chromosome.endAngle - chromosome.startAngle) * (Number(data.start) / chromosome.size);
1231
- }
1232
- calculateEndAngle(data) {
1233
- const index = this.reference.chromosomesOrder.indexOf(data.chr);
1234
- const chromosome = this.reference.chromosomes[index];
1235
- return chromosome.startAngle + (chromosome.endAngle - chromosome.startAngle) * (Number(data.stop) / chromosome.size);
1236
- }
1237
- getColor(value) {
1238
- return CnvColorProvider.getColor(value, this.settings, this.cnvAbsPercentile);
1239
- }
1240
- calculateInnerRadius(data) {
1241
- if (this.cnvRenderingType == "heatmap" /* heatmap */) {
1242
- return this.cnvInnerRadius;
1243
- }
1244
- if (this.gainOnly) {
1245
- return this.cnvInnerRadius;
1246
- }
1247
- if (this.lossOnly) {
1248
- const outerRadius = this.cnvInnerRadius + this.cnvWidth;
1249
- return outerRadius + DataMapper.capMinValue(
1250
- this.cnvWidth * DataMapper.capMaxValue(data.value, this.gainCapped, this.lossCapped) / this.cnvAbsPercentile
1251
- );
1252
- }
1253
- const centerRadius = this.cnvInnerRadius + this.cnvWidth / 2;
1254
- if (Math.sign(data.value) == 1) {
1255
- return centerRadius;
1256
- }
1257
- if (Math.sign(data.value) == -1) {
1258
- return centerRadius + DataMapper.capMinValue(
1259
- DataMapper.capMaxValue(data.value, this.gainCapped, this.lossCapped) / this.cnvAbsPercentile * (this.cnvWidth / 2)
1260
- );
1261
- }
1262
- return 1;
1263
- }
1264
- calculateOuterRadius(data) {
1265
- const maxOuterRadius = this.cnvInnerRadius + this.cnvWidth;
1266
- if (this.cnvRenderingType == "heatmap" /* heatmap */) {
1267
- return maxOuterRadius;
1268
- }
1269
- if (this.gainOnly) {
1270
- return this.cnvInnerRadius + DataMapper.capMinValue(
1271
- this.cnvWidth * DataMapper.capMaxValue(data.value, this.gainCapped, this.lossCapped) / this.cnvAbsPercentile
1272
- );
1273
- }
1274
- if (this.lossOnly) {
1275
- return maxOuterRadius;
1276
- }
1277
- const centerRadius = this.cnvInnerRadius + this.cnvWidth / 2;
1278
- if (Math.sign(data.value) == 1) {
1279
- return centerRadius + DataMapper.capMinValue(
1280
- DataMapper.capMaxValue(data.value, this.gainCapped, this.lossCapped) / this.cnvMaxAbsValue * (this.cnvWidth / 2)
1281
- );
1282
- }
1283
- if (Math.sign(data.value) == -1) {
1284
- return centerRadius;
1285
- }
1286
- return 1;
1287
- }
1288
- };
1289
-
1290
- // plots/disco/label/Line.ts
1291
- var Line = class {
1292
- constructor(points, color) {
1293
- this.points = new Array();
1294
- this.points = points;
1295
- this.color = color;
1296
- }
1297
- };
1298
-
1299
- // plots/disco/label/LabelFactory.ts
1300
- var LabelFactory = class {
1301
- static createLabel(startAngle, endAngle, innerRadius, outerRadius, value, gene, color, dataClass, chr, position, isPrioritized = false, labelsToLinesGap, mutationTooltip, fusionTooltip) {
1302
- const angle = (startAngle + endAngle) / 2;
1303
- const ccAngle = angle - Math.PI / 2;
1304
- const transform = `rotate(${angle * 180 / Math.PI - 90}) translate(${outerRadius})${angle > Math.PI ? "rotate(180)" : ""}`;
1305
- const textAnchor = angle > Math.PI ? "end" : "";
1306
- const r0 = innerRadius;
1307
- const r1 = outerRadius - labelsToLinesGap;
1308
- const points = [];
1309
- const point0 = {
1310
- x: r0 * Math.cos(ccAngle),
1311
- y: r0 * Math.sin(ccAngle)
1312
- };
1313
- const point1 = {
1314
- x: r1 * Math.cos(ccAngle),
1315
- y: r1 * Math.sin(ccAngle)
1316
- };
1317
- points.push(point0);
1318
- points.push(point1);
1319
- const line = new Line(points, color);
1320
- const label = {
1321
- startAngle,
1322
- endAngle,
1323
- innerRadius,
1324
- outerRadius,
1325
- angle,
1326
- value,
1327
- text: gene,
1328
- color,
1329
- transform,
1330
- textAnchor,
1331
- ccAngle,
1332
- line,
1333
- isPrioritized,
1334
- start: position,
1335
- stop: position,
1336
- chr,
1337
- mutationsTooltip: mutationTooltip ? [mutationTooltip] : void 0,
1338
- fusionTooltip: fusionTooltip ? [fusionTooltip] : void 0
1339
- };
1340
- return label;
1341
- }
1342
- static createMovedLabel(element, overlap) {
1343
- const startAngle = element.startAngle + overlap;
1344
- const endAngle = element.endAngle + overlap;
1345
- const angle = (startAngle + endAngle) / 2;
1346
- const ccAngle = angle - Math.PI / 2;
1347
- const r0 = element.innerRadius;
1348
- const r1 = element.outerRadius - 2;
1349
- const dr = (r1 - r0) / 3;
1350
- const cos0 = Math.cos(element.ccAngle);
1351
- const sin0 = Math.sin(element.ccAngle);
1352
- const cos1 = Math.cos(element.ccAngle + overlap);
1353
- const sin1 = Math.sin(element.ccAngle + overlap);
1354
- const points = [];
1355
- const point0 = {
1356
- x: r0 * cos0,
1357
- y: r0 * sin0
1358
- };
1359
- const point1 = {
1360
- x: (r0 + dr) * cos0,
1361
- y: (r0 + dr) * sin0
1362
- };
1363
- const point2 = {
1364
- x: (r0 + 2 * dr) * cos1,
1365
- y: (r0 + 2 * dr) * sin1
1366
- };
1367
- const point3 = {
1368
- x: (r0 + 3 * dr) * cos1,
1369
- y: (r0 + 3 * dr) * sin1
1370
- };
1371
- points.push(point0);
1372
- points.push(point1);
1373
- points.push(point2);
1374
- points.push(point3);
1375
- const line = new Line(points, element.color);
1376
- const transform = "rotate(" + (angle * 180 / Math.PI - 90) + ")translate(" + element.outerRadius + ")" + (angle > Math.PI ? "rotate(180)" : "");
1377
- const textAnchor = angle > Math.PI ? "end" : "";
1378
- const color = element.mutationsTooltip ? element.mutationsTooltip[0].color : element.fusionTooltip ? element.fusionTooltip[0].color : void 0;
1379
- const label = {
1380
- startAngle,
1381
- endAngle,
1382
- innerRadius: element.innerRadius,
1383
- outerRadius: element.outerRadius,
1384
- angle,
1385
- value: element.value,
1386
- text: element.text,
1387
- transform,
1388
- textAnchor,
1389
- ccAngle,
1390
- color,
1391
- line,
1392
- isPrioritized: element.isPrioritized,
1393
- start: element.start,
1394
- stop: element.stop,
1395
- chr: element.chr,
1396
- mutationsTooltip: element.mutationsTooltip,
1397
- fusionTooltip: element.fusionTooltip
1398
- };
1399
- return label;
1400
- }
1401
- };
1402
-
1403
- // plots/disco/label/LabelsMapper.ts
1404
- var LabelsMapper = class {
1405
- constructor(settings, sampleName, reference, cnvMaxPercentileAbs = 0) {
1406
- this.labelMap = /* @__PURE__ */ new Map();
1407
- this.settings = settings;
1408
- this.sampleName = sampleName;
1409
- this.reference = reference;
1410
- this.cnvMaxPercentileAbs = cnvMaxPercentileAbs;
1411
- }
1412
- map(data, cnvData = []) {
1413
- const innerRadius = this.settings.rings.labelLinesInnerRadius;
1414
- const outerRadius = innerRadius + this.settings.rings.labelsToLinesDistance;
1415
- data.forEach((data2) => {
1416
- if (data2.dt == dtsnvindel) {
1417
- const startAngle = this.calculateStartAngle(data2.chr, data2.position);
1418
- const endAngle = this.calculateEndAngle(data2.chr, data2.position);
1419
- if (startAngle === null || endAngle === null) return;
1420
- const mLabel = MLabel.getInstance().mlabel ? MLabel.getInstance().mlabel[data2.mClass] : void 0;
1421
- this.addLabelOrMutation(
1422
- data2,
1423
- data2.gene,
1424
- data2.mname,
1425
- startAngle,
1426
- endAngle,
1427
- innerRadius,
1428
- outerRadius,
1429
- mLabel.color,
1430
- mLabel.label
1431
- );
1432
- }
1433
- if (data2.dt == dtfusionrna) {
1434
- const color = FusionColorProvider.getColor(data2.chrA, data2.chrB);
1435
- if (data2.geneA) {
1436
- const startAngleSource = this.calculateStartAngle(data2.chrA, data2.posA);
1437
- const endAngleSource = this.calculateEndAngle(data2.chrA, data2.posA);
1438
- if (startAngleSource === null || endAngleSource === null) return;
1439
- this.addLabelOrFusion(
1440
- data2,
1441
- data2.geneA,
1442
- data2.posA,
1443
- startAngleSource,
1444
- endAngleSource,
1445
- innerRadius,
1446
- outerRadius,
1447
- color
1448
- );
1449
- }
1450
- if (data2.geneB && data2.geneA != data2.geneB) {
1451
- const startAngleTarget = this.calculateStartAngle(data2.chrB, data2.posB);
1452
- const endAngleTarget = this.calculateEndAngle(data2.chrB, data2.posB);
1453
- if (startAngleTarget == null || endAngleTarget == null) return;
1454
- this.addLabelOrFusion(
1455
- data2,
1456
- data2.geneB,
1457
- data2.posB,
1458
- startAngleTarget,
1459
- endAngleTarget,
1460
- innerRadius,
1461
- outerRadius,
1462
- color
1463
- );
1464
- }
1465
- }
1466
- });
1467
- const labelsArray = Array.from(this.labelMap.values());
1468
- labelsArray.forEach((label) => {
1469
- cnvData.forEach((cnv) => {
1470
- if (label.stop >= cnv.start && cnv.stop >= label.start && label.chr == cnv.chr) {
1471
- const mutation = {
1472
- value: cnv.value,
1473
- color: CnvColorProvider.getColor(cnv.value, this.settings, this.cnvMaxPercentileAbs),
1474
- chr: cnv.chr,
1475
- start: cnv.start,
1476
- stop: cnv.stop
1477
- };
1478
- if (label.cnvTooltip) {
1479
- label.cnvTooltip.push(mutation);
1480
- } else {
1481
- label.cnvTooltip = [];
1482
- label.cnvTooltip.push(mutation);
1483
- }
1484
- }
1485
- });
1486
- });
1487
- return Array.from(this.labelMap.values());
1488
- }
1489
- addLabelOrMutation(data, gene, mname, startAngle, endAngle, innerRadius, outerRadius, color, dataClass) {
1490
- const label = this.labelMap.get(gene);
1491
- const mutation = {
1492
- mname,
1493
- color,
1494
- dataClass,
1495
- chr: data.chr,
1496
- position: data.position,
1497
- vafs: data.vafs
1498
- };
1499
- if (!label) {
1500
- this.labelMap.set(
1501
- gene,
1502
- LabelFactory.createLabel(
1503
- startAngle,
1504
- endAngle,
1505
- innerRadius,
1506
- outerRadius,
1507
- data.value,
1508
- gene,
1509
- color,
1510
- dataClass,
1511
- data.chr,
1512
- data.position,
1513
- data.isPrioritized,
1514
- this.settings.rings.labelsToLinesGap,
1515
- mutation
1516
- )
1517
- );
1518
- } else {
1519
- if (label.mutationsTooltip) {
1520
- label.start = Math.min(label.start, data.position);
1521
- label.stop = Math.max(label.stop, data.position);
1522
- label.mutationsTooltip.push(mutation);
1523
- } else {
1524
- label.mutationsTooltip = [];
1525
- label.start = Math.min(label.start, data.position);
1526
- label.stop = Math.max(label.stop, data.position);
1527
- label.mutationsTooltip.push(mutation);
1528
- }
1529
- }
1530
- }
1531
- addLabelOrFusion(data, gene, position, startAngle, endAngle, innerRadius, outerRadius, color) {
1532
- const label = this.labelMap.get(gene);
1533
- const fusionTooltip = {
1534
- color,
1535
- chrA: data.chrA,
1536
- chrB: data.chrB,
1537
- posA: data.posA,
1538
- posB: data.posB,
1539
- geneA: data.geneA,
1540
- geneB: data.geneB,
1541
- strandA: data.strandA,
1542
- strandB: data.strandB
1543
- };
1544
- if (!label) {
1545
- this.labelMap.set(
1546
- gene,
1547
- LabelFactory.createLabel(
1548
- startAngle,
1549
- endAngle,
1550
- innerRadius,
1551
- outerRadius,
1552
- data.value,
1553
- gene,
1554
- color,
1555
- "Fusion transcript",
1556
- data.chr,
1557
- data.position,
1558
- data.isPrioritized,
1559
- this.settings.rings.labelsToLinesGap,
1560
- void 0,
1561
- fusionTooltip
1562
- )
1563
- );
1564
- } else {
1565
- if (label.fusionTooltip) {
1566
- label.start = Math.min(label.start, position);
1567
- label.stop = Math.max(label.stop, position);
1568
- label.fusionTooltip.push(fusionTooltip);
1569
- } else {
1570
- label.fusionTooltip = [];
1571
- label.start = Math.min(label.start, position);
1572
- label.stop = Math.max(label.stop, position);
1573
- label.fusionTooltip.push(fusionTooltip);
1574
- }
1575
- }
1576
- }
1577
- calculateStartAngle(chr, position) {
1578
- const index = this.reference.chromosomesOrder.findIndex((element) => element == chr);
1579
- if (index === -1) return null;
1580
- const chromosome = this.reference.chromosomes[index];
1581
- return chromosome.startAngle + (chromosome.endAngle - chromosome.startAngle) * (Number(position) / chromosome.size);
1582
- }
1583
- calculateEndAngle(chr, position) {
1584
- const index = this.reference.chromosomesOrder.findIndex((element) => element == chr);
1585
- if (index === -1) return null;
1586
- const chromosome = this.reference.chromosomes[index];
1587
- return chromosome.startAngle + (chromosome.endAngle - chromosome.startAngle) * (Number(position) / chromosome.size);
1588
- }
1589
- };
1590
-
1591
- // plots/disco/label/Labels.ts
1592
- var Labels = class extends Ring {
1593
- constructor(settings, elements, hasPrioritizedGenes) {
1594
- super(
1595
- settings.rings.labelLinesInnerRadius,
1596
- settings.rings.labelsToLinesDistance,
1597
- elements.sort((a, b) => {
1598
- return a.startAngle < b.startAngle ? -1 : a.startAngle > b.startAngle ? 1 : 0;
1599
- })
1600
- );
1601
- this.elementsToDisplay = [];
1602
- this.settings = settings;
1603
- this.hasPrioritizedGenes = hasPrioritizedGenes;
1604
- const circumference = 2 * Math.PI * (settings.rings.labelLinesInnerRadius + settings.rings.labelsToLinesDistance);
1605
- this.overlapAngle = this.settings.label.overlapAngleFactor * this.settings.label.fontSize / circumference;
1606
- this.calculateCollisions();
1607
- }
1608
- calculateCollisions() {
1609
- this.collisions = [];
1610
- let hasPrioritizedGenesList = [];
1611
- hasPrioritizedGenesList = this.elements.filter((label) => label.isPrioritized);
1612
- if (this.settings.label.prioritizeGeneLabelsByGeneSets) {
1613
- this.elementsToDisplay = this.getLabelsWithPrioritizedGenes(hasPrioritizedGenesList);
1614
- } else if (this.hasPrioritizedGenes) {
1615
- const prioritizedGenesList = this.elements.filter((label) => label.isPrioritized);
1616
- const filteredPrioritizedGenesList = this.getLabelsWithPrioritizedGenes(prioritizedGenesList);
1617
- const withoutPrioritizedGenesList = this.elements.filter((label) => !label.isPrioritized);
1618
- const combinedAndSortedList = [...withoutPrioritizedGenesList, ...filteredPrioritizedGenesList].sort(
1619
- (a, b) => a.startAngle - b.startAngle
1620
- );
1621
- this.elementsToDisplay = this.getAllLabels(combinedAndSortedList);
1622
- } else {
1623
- this.elementsToDisplay = this.getLabelsWithPrioritizedGenes(this.elements);
1624
- }
1625
- }
1626
- getLabelsWithPrioritizedGenes(elemenets) {
1627
- const filteredList = [];
1628
- let prev = { endAngle: 0 };
1629
- elemenets.forEach((element, index) => {
1630
- if (index == 0) {
1631
- filteredList.push(element);
1632
- prev = element;
1633
- } else {
1634
- const overlap = prev.endAngle - element.startAngle + this.overlapAngle;
1635
- if (overlap > 0 && overlap < this.settings.label.maxDeltaAngle) {
1636
- const labelCopy = LabelFactory.createMovedLabel(element, overlap);
1637
- filteredList?.push(labelCopy);
1638
- prev = labelCopy;
1639
- }
1640
- if (overlap <= 0) {
1641
- filteredList.push(element);
1642
- prev = element;
1643
- }
1644
- }
1645
- });
1646
- return filteredList;
1647
- }
1648
- getAllLabels(elemenets) {
1649
- const filteredList = [];
1650
- let prev = { endAngle: 0 };
1651
- const elemenetsLength = elemenets.length;
1652
- let lastCancerGeneLabelIndex = -1;
1653
- for (let index = 0; index < elemenets.length; index++) {
1654
- const element = elemenets[index];
1655
- if (element.isPrioritized) {
1656
- filteredList.push(element);
1657
- lastCancerGeneLabelIndex = index;
1658
- prev = element;
1659
- continue;
1660
- }
1661
- if (index == 0) {
1662
- if (elemenetsLength > 1) {
1663
- if (this.isElementOverlappingNextCancerGene(elemenets, lastCancerGeneLabelIndex, element, 0)) {
1664
- continue;
1665
- }
1666
- filteredList.push(element);
1667
- prev = element;
1668
- }
1669
- continue;
1670
- }
1671
- const prevOverlap = prev.endAngle - element.startAngle + this.overlapAngle;
1672
- if (prevOverlap > 0 && prevOverlap < this.settings.label.maxDeltaAngle) {
1673
- if (index == length - 1) {
1674
- filteredList.push(element);
1675
- continue;
1676
- }
1677
- if (this.isElementOverlappingNextCancerGene(elemenets, lastCancerGeneLabelIndex, element, prevOverlap)) {
1678
- continue;
1679
- }
1680
- const labelCopy = LabelFactory.createMovedLabel(element, prevOverlap);
1681
- this.collisions?.push(labelCopy);
1682
- filteredList.push(element);
1683
- prev = labelCopy;
1684
- }
1685
- if (prevOverlap <= 0) {
1686
- if (this.isElementOverlappingNextCancerGene(elemenets, lastCancerGeneLabelIndex, element, 0)) {
1687
- continue;
1688
- }
1689
- filteredList.push(element);
1690
- prev = element;
1691
- }
1692
- }
1693
- return filteredList;
1694
- }
1695
- isElementOverlappingNextCancerGene(elemenets, lastCancerGeneLabelIndex, element, prevOverlap) {
1696
- const nextLabelWithCancerGene = this.getNextLabelWithCancerGene(elemenets, lastCancerGeneLabelIndex);
1697
- if (nextLabelWithCancerGene) {
1698
- const nextOverlap = element.endAngle + prevOverlap - nextLabelWithCancerGene.startAngle + this.overlapAngle;
1699
- if (nextOverlap > 0) {
1700
- return true;
1701
- }
1702
- }
1703
- return false;
1704
- }
1705
- getNextLabelWithCancerGene(elemenets, lastCancerGeneLabelIndex) {
1706
- return elemenets.find((label, index) => label.isPrioritized && index > lastCancerGeneLabelIndex);
1707
- }
1708
- };
1709
-
1710
- // plots/disco/snv/NonExonicSnvArcsMapper.ts
1711
- var NonExonicSnvArcsMapper = class {
1712
- constructor(nonExonicInnerRadius, nonExonicWidht, sampleName, reference) {
1713
- this.nonExonicInnerRadius = nonExonicInnerRadius;
1714
- this.nonExonicWidht = nonExonicWidht;
1715
- this.sampleName = sampleName;
1716
- this.reference = reference;
1717
- this.onePxArcAngle = 1 / nonExonicInnerRadius;
1718
- }
1719
- map(arcData) {
1720
- const innerRadius = this.nonExonicInnerRadius;
1721
- const outerRadius = innerRadius + this.nonExonicWidht;
1722
- const arcs = [];
1723
- arcData.forEach((data) => {
1724
- const mLabel = MLabel.getInstance().mlabel ? MLabel.getInstance().mlabel[data.mClass] : void 0;
1725
- const startAngle = this.calculateStartAngle(data);
1726
- const endAngle = this.calculateEndAngle(data);
1727
- if (startAngle === null || endAngle === null) return;
1728
- const arc = {
1729
- startAngle,
1730
- endAngle,
1731
- innerRadius,
1732
- outerRadius,
1733
- color: mLabel.color,
1734
- text: data.gene,
1735
- dataClass: mLabel.label,
1736
- mname: data.mname,
1737
- chr: data.chr,
1738
- pos: data.position,
1739
- vafs: data.vafs,
1740
- sampleName: [data.sampleName]
1741
- };
1742
- arcs.push(arc);
1743
- });
1744
- return arcs;
1745
- }
1746
- calculateStartAngle(data) {
1747
- const index = this.reference.chromosomesOrder.indexOf(data.chr);
1748
- if (index === -1) return null;
1749
- const chromosome = this.reference.chromosomes[index];
1750
- return chromosome.startAngle + (chromosome.endAngle - chromosome.startAngle) * (Number(data.position) / chromosome.size) - this.onePxArcAngle;
1751
- }
1752
- calculateEndAngle(data) {
1753
- const index = this.reference.chromosomesOrder.indexOf(data.chr);
1754
- const chromosome = this.reference.chromosomes[index];
1755
- return this.onePxArcAngle + chromosome.startAngle + (chromosome.endAngle - chromosome.startAngle) * (Number(data.position) / chromosome.size);
1756
- }
1757
- };
1758
-
1759
- // plots/disco/loh/LohArcMapper.ts
1760
- var LohArcMapper = class {
1761
- constructor(lohInnerRadius, lohWidth, sampleName, reference) {
1762
- this.lohInnerRadius = lohInnerRadius;
1763
- this.lohWidth = lohWidth;
1764
- this.sampleName = sampleName;
1765
- this.reference = reference;
1766
- }
1767
- map(arcData) {
1768
- const arcs = [];
1769
- arcData.forEach((data) => {
1770
- const startAngle = this.calculateStartAngle(data);
1771
- const endAngle = this.calculateEndAngle(data);
1772
- if (startAngle === null || endAngle === null) return;
1773
- const innerRadius = this.lohInnerRadius;
1774
- const outerRadius = innerRadius + this.lohWidth;
1775
- const color = GradientColorProvider.provide(data.segmean);
1776
- const arc = {
1777
- startAngle,
1778
- endAngle,
1779
- innerRadius,
1780
- outerRadius,
1781
- color,
1782
- text: data.gene,
1783
- chr: data.chr,
1784
- start: data.start,
1785
- stop: data.stop,
1786
- value: data.segmean
1787
- };
1788
- arcs.push(arc);
1789
- });
1790
- return arcs;
1791
- }
1792
- calculateStartAngle(data) {
1793
- const index = this.reference.chromosomesOrder.indexOf(data.chr);
1794
- if (index === -1) return null;
1795
- const chromosome = this.reference.chromosomes[index];
1796
- return chromosome.startAngle + (chromosome.endAngle - chromosome.startAngle) * (Number(data.start) / chromosome.size);
1797
- }
1798
- calculateEndAngle(data) {
1799
- const index = this.reference.chromosomesOrder.indexOf(data.chr);
1800
- const chromosome = this.reference.chromosomes[index];
1801
- return chromosome.startAngle + (chromosome.endAngle - chromosome.startAngle) * (Number(data.stop) / chromosome.size);
1802
- }
1803
- };
1804
-
1805
- // plots/disco/ring/Rings.ts
1806
- var Rings = class {
1807
- constructor(labelsRing, chromosomesRing, nonExonicArcRing, snvArcRing, cnvArcRing, lohArcRing, mutationWaterfallRing) {
1808
- this.labelsRing = labelsRing;
1809
- this.chromosomesRing = chromosomesRing;
1810
- this.nonExonicArcRing = nonExonicArcRing;
1811
- this.snvArcRing = snvArcRing;
1812
- this.cnvArcRing = cnvArcRing;
1813
- this.lohArcRing = lohArcRing;
1814
- this.mutationWaterfallRing = mutationWaterfallRing;
1815
- }
1816
- };
1817
-
1818
- // plots/disco/waterfall/MutationWaterfallMapper.ts
1819
- var MutationWaterfallMapper = class {
1820
- constructor(innerRadius, ringWidth, reference, logRange, color = "#4d4d4d") {
1821
- this.innerRadius = innerRadius;
1822
- this.ringWidth = ringWidth;
1823
- this.reference = reference;
1824
- this.logRange = logRange;
1825
- this.color = color;
1826
- }
1827
- map(data = []) {
1828
- if (!data.length) return [];
1829
- const min = this.logRange?.min ?? 0;
1830
- const max = this.logRange?.max ?? min + 1;
1831
- const span = max - min || 1;
1832
- const points = [];
1833
- for (const datum of data) {
1834
- const chrIndex = this.reference.chromosomesOrder.indexOf(datum.chr);
1835
- if (chrIndex === -1) continue;
1836
- const chromosome = this.reference.chromosomes[chrIndex];
1837
- const chrAngleSpan = chromosome.endAngle - chromosome.startAngle;
1838
- const relPos = chromosome.size > 0 ? datum.position / chromosome.size : 0;
1839
- const angle = chromosome.startAngle + chrAngleSpan * relPos;
1840
- const normalized = Math.max(0, Math.min(1, (datum.logDistance - min) / span));
1841
- const radius = this.innerRadius + this.ringWidth * normalized;
1842
- points.push({
1843
- startAngle: angle,
1844
- endAngle: angle,
1845
- innerRadius: radius,
1846
- outerRadius: radius,
1847
- text: chromosome.text,
1848
- color: this.color,
1849
- chr: datum.chr,
1850
- position: datum.position,
1851
- logDistance: datum.logDistance,
1852
- ringInnerRadius: this.innerRadius,
1853
- ringWidth: this.ringWidth,
1854
- rangeMin: min,
1855
- rangeMax: max
1856
- });
1857
- }
1858
- return points;
1859
- }
1860
- };
1861
-
1862
- // plots/disco/viewmodel/ViewModelProvider.ts
1863
- var ViewModelProvider = class {
1864
- constructor(settings, dataMapper, reference, sampleName, genesetName, discoInteractions) {
1865
- this.nonExonicArcRing = void 0;
1866
- this.settings = settings;
1867
- this.dataMapper = dataMapper;
1868
- this.reference = reference;
1869
- this.sampleName = sampleName;
1870
- this.genesetName = genesetName;
1871
- this.discoInteractions = discoInteractions;
1872
- }
1873
- map(data) {
1874
- const dataHolder = this.dataMapper.map(data);
1875
- let labelsRing;
1876
- if (this.settings.Disco.showGeneNames) {
1877
- const labelsMapper = new LabelsMapper(
1878
- this.settings,
1879
- this.sampleName,
1880
- this.reference,
1881
- dataHolder.cnvMaxPercentileAbs
1882
- );
1883
- const labelsData = labelsMapper.map(dataHolder.labelData, dataHolder.cnvData);
1884
- labelsRing = new Labels(this.settings, labelsData, dataHolder.hasPrioritizedGenes);
1885
- } else {
1886
- labelsRing = new Labels(this.settings, [], false);
1887
- }
1888
- const chromosomesRing = new Ring(
1889
- this.settings.rings.chromosomeInnerRadius,
1890
- this.settings.rings.chromosomeWidth,
1891
- this.reference.chromosomes
1892
- );
1893
- const nonExonicSnvArcsMapper = new NonExonicSnvArcsMapper(
1894
- dataHolder.nonExonicInnerRadius,
1895
- this.settings.rings.nonExonicRingWidth,
1896
- this.sampleName,
1897
- this.reference
1898
- );
1899
- const nonExonicData = nonExonicSnvArcsMapper.map(dataHolder.nonExonicSnvData);
1900
- if (nonExonicData.length > 0) {
1901
- this.nonExonicArcRing = new Ring(
1902
- dataHolder.nonExonicInnerRadius,
1903
- this.settings.rings.nonExonicRingWidth,
1904
- nonExonicData
1905
- );
1906
- }
1907
- this.snvArcsMapper = new SnvArcsMapper(
1908
- dataHolder.snvInnerRadius,
1909
- this.settings.rings.snvRingWidth,
1910
- this.sampleName,
1911
- this.reference
1912
- );
1913
- const snvData = this.snvArcsMapper.map(dataHolder.snvRingDataMap);
1914
- if (snvData.length > 0) {
1915
- this.snvArcRing = new Ring(dataHolder.snvInnerRadius, this.settings.rings.snvRingWidth, snvData);
1916
- }
1917
- const lohMapper = new LohArcMapper(
1918
- dataHolder.lohInnerRadius,
1919
- this.settings.rings.lohRingWidth,
1920
- this.sampleName,
1921
- this.reference
1922
- );
1923
- const lohData = lohMapper.map(dataHolder.lohData);
1924
- if (lohData.length > 0) {
1925
- this.lohArcRing = new Ring(dataHolder.lohInnerRadius, this.settings.rings.lohRingWidth, lohData);
1926
- }
1927
- this.cnvArcsMapper = new CnvArcsMapper(
1928
- dataHolder.cnvInnerRadius,
1929
- this.settings.rings.cnvRingWidth,
1930
- this.settings,
1931
- this.sampleName,
1932
- this.reference,
1933
- dataHolder.percentilePositive,
1934
- dataHolder.percentileNegative,
1935
- dataHolder.cappedCnvMaxAbsValue,
1936
- dataHolder.cnvMaxPercentileAbs,
1937
- this.settings.cnv.unit,
1938
- this.settings.Disco.cnvRenderingType
1939
- );
1940
- const cnvData = this.cnvArcsMapper.map(dataHolder.cnvData);
1941
- if (cnvData.length > 0) {
1942
- this.cnvArcRing = new Ring(dataHolder.cnvInnerRadius, this.settings.rings.cnvRingWidth, cnvData);
1943
- }
1944
- if (this.settings.Disco.mutationWaterfallPlot && dataHolder.mutationWaterfallData?.length && dataHolder.mutationWaterfallInnerRadius !== void 0 && //Added this check to prevent TypeScript error "mutationWaterfallInnerRadius might be undefined"
1945
- (dataHolder.mutationWaterfallInnerRadius ?? 0) > 0 && dataHolder.mutationWaterfallLogRange) {
1946
- const mutationWaterfallMapper = new MutationWaterfallMapper(
1947
- dataHolder.mutationWaterfallInnerRadius,
1948
- this.settings.rings.mutationWaterfallRingWidth,
1949
- this.reference,
1950
- dataHolder.mutationWaterfallLogRange,
1951
- this.settings.Disco.mutationWaterfallColor || "#4d4d4d"
1952
- );
1953
- const waterfallData = mutationWaterfallMapper.map(dataHolder.mutationWaterfallData);
1954
- if (waterfallData.length > 0) {
1955
- this.mutationWaterfallRing = new Ring(
1956
- dataHolder.mutationWaterfallInnerRadius,
1957
- this.settings.rings.mutationWaterfallRingWidth,
1958
- waterfallData
1959
- );
1960
- }
1961
- }
1962
- const fusionMapper = new FusionMapper(dataHolder.fusionRadius, this.sampleName, this.reference);
1963
- const fusions = fusionMapper.map(dataHolder.fusionData);
1964
- let lohLegend;
1965
- if (this.settings.legend.lohLegendEnabled && dataHolder.lohMinValue && dataHolder.lohMaxValue) {
1966
- lohLegend = new LohLegend(dataHolder.lohMinValue, dataHolder.lohMaxValue);
1967
- }
1968
- const legend = new Legend(
1969
- this.settings.legend.snvTitle,
1970
- this.settings.legend.cnvTitle,
1971
- this.settings.legend.lohTitle,
1972
- this.settings.legend.fusionTitle,
1973
- this.settings.Disco.cnvPercentile,
1974
- this.settings.Disco.cnvCutoffMode,
1975
- this.snvArcsMapper ? this.snvArcsMapper.snvClassMap : /* @__PURE__ */ new Map(),
1976
- this.cnvArcsMapper ? this.cnvArcsMapper.cnvClassMap : /* @__PURE__ */ new Map(),
1977
- this.settings.Disco.cnvRenderingType,
1978
- fusions.length > 0,
1979
- this.discoInteractions,
1980
- lohLegend,
1981
- this.settings.Disco.mutationWaterfallPlot && this.mutationWaterfallRing ? {
1982
- color: this.settings.Disco.mutationWaterfallColor || "#4d4d4d",
1983
- onColorChange: this.discoInteractions.onMutationWaterfallColorChange
1984
- } : void 0
1985
- );
1986
- const rings = new Rings(
1987
- labelsRing,
1988
- chromosomesRing,
1989
- this.nonExonicArcRing,
1990
- this.snvArcRing,
1991
- this.cnvArcRing,
1992
- this.lohArcRing,
1993
- this.mutationWaterfallRing
1994
- );
1995
- return new ViewModel(
1996
- this.settings,
1997
- rings,
1998
- legend,
1999
- fusions,
2000
- dataHolder,
2001
- this.genesetName,
2002
- data.filter((i) => i.dt == dtsnvindel).length
2003
- );
2004
- }
2005
- };
2006
-
2007
- // plots/disco/viewmodel/ViewModelMapper.ts
2008
- var ViewModelMapper = class _ViewModelMapper {
2009
- static {
2010
- this.snvClassLayer = {
2011
- M: "exonic",
2012
- E: "exonic",
2013
- F: "exonic",
2014
- N: "exonic",
2015
- S: "exonic",
2016
- D: "exonic",
2017
- I: "exonic",
2018
- P: "exonic",
2019
- L: "exonic",
2020
- Utr3: "exonic",
2021
- Utr5: "exonic",
2022
- ProteinAltering: "exonic",
2023
- mnv: "non-exonic",
2024
- ITD: "non-exonic",
2025
- insertion: "non-exonic",
2026
- deletion: "non-exonic",
2027
- Intron: "non-exonic",
2028
- X: "non-exonic",
2029
- noncoding: "non-exonic"
2030
- };
2031
- }
2032
- constructor(settings, discoInteractions) {
2033
- this.settings = JSON.parse(JSON.stringify(settings));
2034
- this.discoInteractions = discoInteractions;
2035
- }
2036
- applyRadius() {
2037
- const radius = this.settings.Disco.radius;
2038
- if (!radius) return;
2039
- const scale = radius / this.settings.rings.labelLinesInnerRadius;
2040
- this.settings.rings.labelLinesInnerRadius *= scale;
2041
- this.settings.rings.labelsToLinesDistance *= scale;
2042
- this.settings.rings.chromosomeInnerRadius *= scale;
2043
- this.settings.rings.chromosomeWidth *= scale;
2044
- this.settings.rings.nonExonicRingWidth *= scale;
2045
- this.settings.rings.snvRingWidth *= scale;
2046
- this.settings.rings.lohRingWidth *= scale;
2047
- this.settings.rings.cnvRingWidth *= scale;
2048
- this.settings.rings.mutationWaterfallRingWidth *= scale;
2049
- this.settings.label.fontSize *= scale;
2050
- this.settings.legend.fontSize *= scale;
2051
- }
2052
- static computeDynamicRadius(data) {
2053
- let ringCount = 0;
2054
- if (data.some((d) => d.dt == dtsnvindel)) ringCount++;
2055
- if (data.some((d) => d.dt == dtcnv)) ringCount++;
2056
- if (data.some((d) => d.dt == dtloh)) ringCount++;
2057
- if (ringCount <= 1) return 200;
2058
- if (ringCount == 2) return 250;
2059
- return 300;
2060
- }
2061
- map(opts) {
2062
- const chrSizes = opts.args.genome.majorchr;
2063
- const chromosomesOverride = {};
2064
- for (const chr of Object.keys(chrSizes)) {
2065
- if (!this.settings.Disco.hiddenChromosomes.includes(chr)) {
2066
- chromosomesOverride[chr] = chrSizes[chr];
2067
- }
2068
- }
2069
- const sampleName = opts.args.sampleName;
2070
- const genome = opts.args.genome;
2071
- const prioritizedGenes = genome?.geneset?.[0] ? genome.geneset[0].lst : [];
2072
- const genesetName = genome?.geneset?.[0] ? genome.geneset[0].name : "";
2073
- const data = opts.args.data;
2074
- if (this.settings.Disco.autoRadius) {
2075
- this.settings.Disco.radius = _ViewModelMapper.computeDynamicRadius(data);
2076
- }
2077
- this.applyRadius();
2078
- const reference = new Reference(this.settings, chrSizes, chromosomesOverride);
2079
- const dataMapper = new DataMapper(this.settings, reference, sampleName, prioritizedGenes);
2080
- return new ViewModelProvider(
2081
- this.settings,
2082
- dataMapper,
2083
- reference,
2084
- sampleName,
2085
- genesetName,
2086
- this.discoInteractions
2087
- ).map(data);
2088
- }
2089
- };
2090
-
2091
- // plots/disco/legend/LegendJSONMapper.ts
2092
- var LegendJSONMapper = class {
2093
- constructor(cappedCnvMaxAbsValue) {
2094
- this.cappedCnvMaxAbsValue = cappedCnvMaxAbsValue;
2095
- }
2096
- map(legend) {
2097
- const legendJSON = [];
2098
- let order = 0;
2099
- if (legend.snvClassMap) {
2100
- this.mapSnv(legend, legendJSON, order++);
2101
- }
2102
- if (legend.cnvRenderingType == "heatmap" /* heatmap */) {
2103
- this.mapCnvHeatmap(legend, legendJSON, order++);
2104
- } else if (legend.cnvRenderingType == "bar" /* bar */) {
2105
- if (legend.cnvClassMap) {
2106
- this.mapCnvBar(legend, legendJSON, order++);
2107
- }
2108
- }
2109
- if (legend.lohLegend) {
2110
- this.mapLoh(legend, legendJSON, order++);
2111
- }
2112
- if (legend.fusionLegend) {
2113
- this.mapFusion(legend, legendJSON, order++);
2114
- }
2115
- if (legend.mutationWaterfallLegend) {
2116
- this.mapMutationWaterfall(legend, legendJSON, order++);
2117
- }
2118
- return legendJSON;
2119
- }
2120
- mapSnv(legend, legendJSON, order) {
2121
- const snvItems = [];
2122
- let snvOrder = 0;
2123
- for (const [snvKey, snvLegendElement] of legend.snvClassMap) {
2124
- snvItems.push({
2125
- termid: legend.snvTitle,
2126
- key: snvKey,
2127
- text: `${snvLegendElement.snvType} (${snvLegendElement.count})`,
2128
- color: snvLegendElement.color,
2129
- order: snvOrder++,
2130
- border: "1px solid #ccc"
2131
- });
2132
- }
2133
- legendJSON.push({
2134
- name: legend.snvTitle,
2135
- order,
2136
- items: snvItems
2137
- });
2138
- }
2139
- mapCnvBar(legend, legendJSON, order) {
2140
- if (!legend.cnvClassMap) return;
2141
- const gain = legend.cnvClassMap.get(1 /* Gain */);
2142
- const loss = legend.cnvClassMap.get(0 /* Loss */);
2143
- const cap = legend.cnvClassMap.get(2 /* Cap */);
2144
- if (gain && loss && cap) {
2145
- let cnvOrder = 0;
2146
- const cnvItems = [];
2147
- if (gain.value > 0) {
2148
- cnvItems.push({
2149
- termid: legend.cnvTitle,
2150
- key: 1 /* Gain */,
2151
- text: `Max: ${gain.value}`,
2152
- color: gain.color,
2153
- order: cnvOrder++,
2154
- border: "1px solid #ccc"
2155
- });
2156
- }
2157
- if (loss.value < 0) {
2158
- cnvItems.push({
2159
- termid: legend.cnvTitle,
2160
- key: 0 /* Loss */,
2161
- text: `Min: ${loss.value}`,
2162
- color: loss.color,
2163
- order: cnvOrder++,
2164
- border: "1px solid #ccc"
2165
- });
2166
- }
2167
- cnvItems.push({
2168
- termid: legend.cnvTitle,
2169
- key: 2 /* Cap */,
2170
- text: `Capping: ${cap.value}`,
2171
- color: cap.color,
2172
- order: cnvOrder++,
2173
- border: "1px solid #ccc"
2174
- // ,
2175
- // onClickCallback: this.onClickCallback
2176
- });
2177
- legendJSON.push({
2178
- name: legend.cnvTitle,
2179
- id: "sjpp-disco-cnv-legend",
2180
- order,
2181
- items: cnvItems
2182
- });
2183
- }
2184
- }
2185
- mapCnvHeatmap(legend, legendJSON, order) {
2186
- if (!legend.cnvClassMap) return;
2187
- const gain = legend.cnvClassMap.get(1 /* Gain */);
2188
- const loss = legend.cnvClassMap.get(0 /* Loss */);
2189
- const cap = legend.cnvClassMap.get(2 /* Cap */);
2190
- if (gain && loss && cap) {
2191
- let cnvOrder = 0;
2192
- const cnvItems = [];
2193
- const base = {
2194
- termid: legend.cnvTitle,
2195
- width: 100,
2196
- order: cnvOrder++,
2197
- isLegendItem: true,
2198
- dt: 4
2199
- };
2200
- if (gain.value > 0 && loss.value < 0) {
2201
- const maxValue = Math.max(Math.abs(loss.value), gain.value);
2202
- const domain = [-maxValue, 0, maxValue];
2203
- cnvItems.push(
2204
- Object.assign(
2205
- {
2206
- key: 3 /* LossGain */,
2207
- domain,
2208
- scale: linear([-1, 0, 1], [loss.color, "white", gain.color]),
2209
- labels: { left: "Loss", right: "Gain" },
2210
- numericInputs: {
2211
- cutoffMode: legend.cnvCutoffMode,
2212
- defaultPercentile: legend.cnvPercentile,
2213
- callback: (obj) => legend.discoInteractions.colorScaleNumericInputsCallback(obj)
2214
- }
2215
- },
2216
- base
2217
- )
2218
- );
2219
- } else {
2220
- if (gain.value > 0) {
2221
- cnvItems.push(
2222
- Object.assign(
2223
- {
2224
- key: 1 /* Gain */,
2225
- text: "Copy number gain",
2226
- domain: [0, gain.value],
2227
- scale: linear([0, 1], ["white", gain.color])
2228
- },
2229
- base
2230
- )
2231
- );
2232
- }
2233
- if (loss.value < 0) {
2234
- cnvItems.push(
2235
- Object.assign(
2236
- {
2237
- key: 0 /* Loss */,
2238
- text: "Copy number loss",
2239
- domain: [loss.value, 0],
2240
- scale: linear([0, 1], [loss.color, "white"])
2241
- },
2242
- base
2243
- )
2244
- );
2245
- }
2246
- }
2247
- legendJSON.push({
2248
- name: legend.cnvTitle,
2249
- order,
2250
- id: "sjpp-disco-cnv-legend",
2251
- items: cnvItems
2252
- });
2253
- }
2254
- }
2255
- mapLoh(legend, legendJSON, order) {
2256
- if (!legend.lohLegend) return;
2257
- const lohItems = [];
2258
- lohItems.push({
2259
- termid: legend.lohTitle,
2260
- key: "min",
2261
- text: "min",
2262
- color: legend.lohLegend.colorStartValue,
2263
- order: 0,
2264
- border: "1px solid #ccc"
2265
- });
2266
- lohItems.push({
2267
- termid: legend.lohTitle,
2268
- key: "max",
2269
- text: "max",
2270
- color: legend.lohLegend.colorEndValue,
2271
- order: 1,
2272
- border: "1px solid #ccc"
2273
- });
2274
- legendJSON.push({
2275
- name: legend.lohTitle,
2276
- order,
2277
- items: lohItems
2278
- });
2279
- }
2280
- mapFusion(legend, legendJSON, order) {
2281
- const fusionItems = [];
2282
- fusionItems.push({
2283
- termid: legend.fusionTitle,
2284
- key: "#6A3D9A" /* Interchromosomal */,
2285
- text: "Interchromosomal",
2286
- color: "#6A3D9A" /* Interchromosomal */.valueOf(),
2287
- order: 0,
2288
- border: "1px solid #ccc"
2289
- });
2290
- fusionItems.push({
2291
- termid: legend.fusionTitle,
2292
- key: "#1B9E77" /* Intrachromosomal */,
2293
- text: "Intrachromosomal",
2294
- color: "#1B9E77" /* Intrachromosomal */.valueOf(),
2295
- order: 1,
2296
- border: "1px solid #ccc"
2297
- });
2298
- legendJSON.push({
2299
- name: legend.fusionTitle,
2300
- order,
2301
- items: fusionItems
2302
- });
2303
- }
2304
- mapMutationWaterfall(legend, legendJSON, order) {
2305
- if (!legend.mutationWaterfallLegend) return;
2306
- const waterfallItems = [];
2307
- waterfallItems.push({
2308
- termid: "Mutation Waterfall Plot",
2309
- key: "mutation-waterfall-color",
2310
- text: "Dot color",
2311
- color: legend.mutationWaterfallLegend.color,
2312
- order: 0,
2313
- colorPicker: true,
2314
- inputWidth: 28,
2315
- width: 0,
2316
- onColorChange: legend.mutationWaterfallLegend.onColorChange
2317
- });
2318
- waterfallItems.push({
2319
- termid: "Mutation Waterfall Plot",
2320
- key: "mutation-waterfall-axis",
2321
- text: "Axis: log10 intermutation distance",
2322
- order: 1,
2323
- skipIcon: true,
2324
- width: 0
2325
- });
2326
- legendJSON.push({
2327
- name: "Mutation Waterfall Plot",
2328
- order,
2329
- items: waterfallItems
2330
- });
2331
- }
2332
- };
2333
-
2334
- // plots/disco/cnv/renderCnvSourceLegend.ts
2335
- function parseSetLabel(set, index) {
2336
- let text = set.name || `Set ${index + 1}`;
2337
- let href;
2338
- let target = "_blank";
2339
- if (set.nameHtml) {
2340
- const parser = new DOMParser();
2341
- const doc = parser.parseFromString(set.nameHtml, "text/html");
2342
- const anchor = doc.querySelector("a");
2343
- if (anchor) {
2344
- href = anchor.getAttribute("href") || void 0;
2345
- target = anchor.getAttribute("target") || "_blank";
2346
- text = anchor.textContent?.trim() || text;
2347
- } else {
2348
- text = doc.body.textContent?.trim() || text;
2349
- }
2350
- }
2351
- return { text, href, target };
2352
- }
2353
- function renderCnvSourceLegend(legendG, datasets, fontSize, onChange) {
2354
- if (!legendG || legendG.empty()) throw new Error("legendG is required");
2355
- if (!datasets || datasets.length === 0) throw new Error("at least one dataset is required");
2356
- legendG.select("g.sjpp-cnv-source").remove();
2357
- const gBBox = legendG.node().getBBox();
2358
- const cnvSrcWrapper = legendG.append("g").attr("class", "sjpp-cnv-source").attr("transform", `translate(${gBBox.width},${gBBox.y + fontSize})`);
2359
- const btnPaddingX = Math.round(fontSize * 0.8);
2360
- const btnHgt = Math.round(fontSize * 1.8);
2361
- const btnWrapper = cnvSrcWrapper.append("g").attr("transform", `translate(${fontSize},${-btnHgt / 2})`).style("cursor", "pointer").on("click", function(event) {
2362
- event.stopPropagation();
2363
- showCnvMenu(this);
2364
- });
2365
- 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());
2366
- const textW = btnText.node() ? Math.ceil(btnText.node().getBBox().width) : 0;
2367
- const btnWdt = textW + btnPaddingX * 2;
2368
- btnWrapper.insert("rect", ":first-child").attr("width", btnWdt).attr("height", btnHgt).attr("rx", 10).attr("ry", 10).style("fill", "#f2f2f2");
2369
- btnText.attr("x", btnWdt / 2).attr("text-anchor", "middle");
2370
- const cnvMenu = new Menu({
2371
- onHide: () => {
2372
- btnText.text("Select source \u25B2".toUpperCase());
2373
- }
2374
- });
2375
- function showCnvMenu(dom) {
2376
- btnText.text("Select source \u25BC".toUpperCase());
2377
- cnvMenu.clear().showunder(dom);
2378
- cnvMenu.d.append("div").text("Choose data source for CNV:").style("margin", "5px 5px 0 5px");
2379
- const tableHolder = cnvMenu.d.append("div").style("padding", "5px");
2380
- const { columns, rows } = buildTableData(datasets);
2381
- const [, activeIndex] = getActiveDataset(datasets);
2382
- renderTable({
2383
- columns,
2384
- rows,
2385
- div: tableHolder,
2386
- singleMode: true,
2387
- maxWidth: "70vw",
2388
- maxHeight: "60vh",
2389
- selectedRows: [activeIndex],
2390
- header: { allowSort: false },
2391
- noButtonCallback: (rowIndex, node) => {
2392
- const inputIndex = Number(node?.value);
2393
- const selectedIndex = Number.isNaN(inputIndex) ? rowIndex : inputIndex;
2394
- if (!Number.isNaN(selectedIndex)) onChange(selectedIndex);
2395
- cnvMenu.hide();
2396
- }
2397
- });
2398
- }
2399
- }
2400
- function getActiveDataset(datasets) {
2401
- let currentIndex = datasets.findIndex((d) => d.inuse);
2402
- if (currentIndex == -1) currentIndex = 0;
2403
- return [datasets[currentIndex], currentIndex];
2404
- }
2405
- function buildTableData(datasets) {
2406
- const attrKeys = [];
2407
- for (const set of datasets) {
2408
- if (!set.attrs) continue;
2409
- for (const key of Object.keys(set.attrs)) {
2410
- if (!attrKeys.includes(key)) attrKeys.push(key);
2411
- }
2412
- }
2413
- const columns = [{ label: "Source" }];
2414
- for (const key of attrKeys) columns.push({ label: key });
2415
- const rows = datasets.map((set, index) => {
2416
- const sourceInfo = parseSetLabel(set, index);
2417
- const cells = [];
2418
- if (set.nameHtml) cells.push({ html: set.nameHtml });
2419
- else if (sourceInfo.href) cells.push({ value: sourceInfo.text, url: sourceInfo.href });
2420
- else cells.push({ value: sourceInfo.text });
2421
- for (const key of attrKeys) {
2422
- const value = set.attrs?.[key];
2423
- cells.push({ value: value ?? "" });
2424
- }
2425
- return cells;
2426
- });
2427
- return { columns, rows };
2428
- }
2429
-
2430
- // plots/disco/legend/LegendRenderer.ts
2431
- var LegendRenderer = class {
2432
- constructor(cappedCnvMaxAbsValue = 0, fontSize) {
2433
- this.fontSize = fontSize;
2434
- this.legendJSONMapper = new LegendJSONMapper(cappedCnvMaxAbsValue);
2435
- }
2436
- render(holder, legend, xOffset, svgw, svgh, viewModel, onCnvSourceSelect) {
2437
- const svgLegendRenderer = svgLegend({
2438
- holder: holder.append("g").attr("data-testid", "sjpp_disco_plot_legend"),
2439
- rectFillFxn: (d2) => d2.color,
2440
- iconStroke: "#aaa"
2441
- });
2442
- const data = this.legendJSONMapper.map(legend);
2443
- const legendTitles = data.map((d2) => d2.name.trim());
2444
- const maxLabelWidth = getMaxLabelWidth(holder, legendTitles);
2445
- const d = {
2446
- xOffset: maxLabelWidth + xOffset
2447
- };
2448
- svgLegendRenderer(data, {
2449
- settings: Object.assign(
2450
- {},
2451
- {
2452
- svgw,
2453
- svgh,
2454
- dimensions: d,
2455
- fontsize: this.fontSize
2456
- }
2457
- )
2458
- });
2459
- const altCnv = viewModel.appState.args.alternativeDataByDt?.[dtcnv];
2460
- if (altCnv && altCnv.length > 0) {
2461
- const legendG = holder.select('g[data-testid="sjpp_disco_plot_legend"]');
2462
- const cnvLegendG = legendG.select("#sjpp-disco-cnv-legend");
2463
- if (!legendG.empty()) {
2464
- const add2G = cnvLegendG.empty() ? legendG : cnvLegendG;
2465
- renderCnvSourceLegend(add2G, altCnv, this.fontSize, onCnvSourceSelect);
2466
- }
2467
- }
2468
- }
2469
- };
2470
-
2471
- // plots/disco/chromosome/ChromosomesRenderer.ts
2472
- var ChromosomesRenderer = class {
2473
- constructor(padAngle, innerRadius, outerRadius, fontSize) {
2474
- this.padAngle = padAngle;
2475
- this.innerRadius = innerRadius;
2476
- this.outerRadius = outerRadius;
2477
- this.fontSize = fontSize;
2478
- }
2479
- render(holder, elements) {
2480
- const pie = pie_default().padAngle(this.padAngle).value((d) => d.size).sort(null);
2481
- const arcData = pie(elements);
2482
- const arc = arc_default().innerRadius(this.innerRadius).outerRadius(this.outerRadius);
2483
- const arcs = holder.append("g").attr("data-testid", "sjpp_chromosomes_arc_group");
2484
- const menu = MenuProvider.create();
2485
- arcs.selectAll("path").data(arcData).enter().append("path").attr("d", arc).attr("fill", "black").on("mousemove", (event, d) => {
2486
- const [x, y] = pointer_default(event, arcs.node());
2487
- let angle = Math.atan2(y, x) + Math.PI / 2;
2488
- if (angle < 0) angle += 2 * Math.PI;
2489
- const frac = Math.max(0, Math.min(1, (angle - d.data.startAngle) / (d.data.endAngle - d.data.startAngle)));
2490
- const pos = Math.round(frac * d.data.size);
2491
- menu.d.html(`<span style="font-size:.8em">chr${d.data.text}</span> ${bplen(pos)}`).style("padding", "5px");
2492
- menu.show(event.x, event.y);
2493
- }).on("mouseenter", (event) => {
2494
- select_default(event.currentTarget).attr("stroke", "orange").attr("stroke-width", 1);
2495
- }).on("mouseleave", (event) => {
2496
- select_default(event.currentTarget).attr("stroke", null).attr("stroke-width", null);
2497
- menu.hide();
2498
- });
2499
- arcs.selectAll("text").data(arcData).enter().append("text").attr("transform", (d) => {
2500
- return `translate(${arc.centroid(d)}) rotate(${d.data.angle * 180 / Math.PI - 90})${d.data.angle > Math.PI ? "rotate(180)" : ""}`;
2501
- }).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");
2502
- }
2503
- };
2504
-
2505
- // plots/disco/snv/vafTooltip.ts
2506
- function getIntegerCount(v) {
2507
- if (Number.isInteger(v)) return v;
2508
- if (typeof v == "string" && /^-?\d+$/.test(v)) {
2509
- const n = Number(v);
2510
- if (Number.isInteger(n)) return n;
2511
- }
2512
- return null;
2513
- }
2514
- function hasValidReadCounts(refCountValue, altCountValue) {
2515
- const refCount = getIntegerCount(refCountValue);
2516
- const altCount = getIntegerCount(altCountValue);
2517
- return refCount != null && altCount != null && refCount >= 0 && altCount >= 0 && refCount + altCount > 0;
2518
- }
2519
- function getVafEntries(vafs) {
2520
- const entries = [];
2521
- if (Array.isArray(vafs)) {
2522
- for (const vaf of vafs) {
2523
- const label = vaf?.id || vaf?.name;
2524
- const refCount = vaf?.refCount;
2525
- const altCount = vaf?.altCount;
2526
- if (!label || refCount == null || altCount == null) continue;
2527
- entries.push({ label, refCount, altCount });
2528
- }
2529
- }
2530
- return entries;
2531
- }
2532
- function hasAnyValidVafEntry(vafs) {
2533
- return getVafEntries(vafs).some((vaf) => hasValidReadCounts(vaf.refCount, vaf.altCount));
2534
- }
2535
- function appendVafBar(td2, refCountValue, altCountValue, label = "VAF") {
2536
- const refCount = getIntegerCount(refCountValue);
2537
- const altCount = getIntegerCount(altCountValue);
2538
- if (refCount == null || altCount == null) return;
2539
- const totalCount = refCount + altCount;
2540
- const fraction = altCount / totalCount;
2541
- const div = td2.append("div").style("margin-left", "5px").style("margin-top", "4px").style("display", "flex").style("align-items", "center").style("gap", "6px");
2542
- div.append("span").style("font-size", "0.8em").style("color", "#555").text(label);
2543
- fillbar(div, { f: fraction, v1: altCount, v2: totalCount });
2544
- }
2545
- function appendVafBars(td2, vafs) {
2546
- for (const vaf of getVafEntries(vafs)) {
2547
- if (!hasValidReadCounts(vaf.refCount, vaf.altCount)) continue;
2548
- appendVafBar(td2, vaf.refCount, vaf.altCount, vaf.label);
2549
- }
2550
- }
2551
-
2552
- // plots/disco/label/LabelsRenderer.ts
2553
- var LabelsRenderer = class {
2554
- constructor(animationDuration, fontSize, geneClickListener) {
2555
- this.animationDuration = animationDuration;
2556
- this.fontSize = fontSize;
2557
- this.geneClickListener = geneClickListener;
2558
- }
2559
- render(holder, elements, collisions) {
2560
- const labelsG = holder.append("g");
2561
- const lineFunction = line_default().x((point) => point.x).y((point) => point.y);
2562
- const menu = MenuProvider.create();
2563
- labelsG.selectAll(".group").data(elements).enter().append("g").attr("class", "group").each((label, i, nodes) => {
2564
- const g = select_default(nodes[i]);
2565
- 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", () => {
2566
- if (label.mutationsTooltip) {
2567
- this.geneClickListener(
2568
- label.text,
2569
- label.mutationsTooltip.map((value) => value.mname)
2570
- );
2571
- }
2572
- }).on("mouseover", (mouseEvent) => {
2573
- const table = table2col({ holder: menu.d });
2574
- this.createTooltip(table, label);
2575
- menu.show(mouseEvent.x, mouseEvent.y);
2576
- }).on("mouseout", () => {
2577
- menu.clear();
2578
- menu.hide();
2579
- });
2580
- g.append("path").attr("class", "chord-tick").datum(label.line.points).style("stroke", label.color).style("fill", "none").attr("d", lineFunction);
2581
- });
2582
- labelsG.selectAll(".group").each((label, i, nodes) => {
2583
- const collision = collisions ? collisions.find((l) => l.text === label.text) : void 0;
2584
- if (collision) {
2585
- const g = select_default(nodes[i]);
2586
- g.selectAll(".chord-text").datum(collision).transition().duration(this.animationDuration).attr("transform", collision.transform).style("text-anchor", collision.textAnchor);
2587
- g.selectAll(".chord-tick").datum(collision.line.points).transition().duration(this.animationDuration).style("fill", "none").attr("d", lineFunction);
2588
- }
2589
- });
2590
- }
2591
- createTooltip(table, label) {
2592
- if (label.mutationsTooltip) {
2593
- const [td1, td2] = table.addRow();
2594
- td1.text("Gene");
2595
- td2.append("span").style("margin-left", "5px").text(label.text);
2596
- label.mutationsTooltip.forEach((mutation) => {
2597
- {
2598
- const [td12, td22] = table.addRow();
2599
- td12.text("Mutation");
2600
- 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}`);
2601
- if (hasAnyValidVafEntry(mutation.vafs)) {
2602
- appendVafBars(td22, mutation.vafs);
2603
- }
2604
- }
2605
- });
2606
- }
2607
- if (label.fusionTooltip) {
2608
- const [td1, td2] = table.addRow();
2609
- td1.text("Data type");
2610
- td2.append("span").text("Fusion transcript");
2611
- label.fusionTooltip.forEach((fusionTooltip) => {
2612
- const [td12, td22] = table.addRow();
2613
- td12.text("Position");
2614
- td22.append("span").text(
2615
- ` ${fusionTooltip.geneA ? fusionTooltip.geneA : "?"} ${fusionTooltip.chrA}:${fusionTooltip.posA}
2616
- ${fusionTooltip.strandA == "+" ? "forward" : "reverse"} > ${fusionTooltip.geneB ? fusionTooltip.geneB : "?"} ${fusionTooltip.chrB}:${fusionTooltip.posB} ${fusionTooltip.strandB == "+" ? "forward" : "reverse"} `
2617
- );
2618
- });
2619
- }
2620
- if (label.cnvTooltip) {
2621
- label.cnvTooltip.forEach((cnv) => {
2622
- const [td1, td2] = table.addRow();
2623
- td1.text("CNV");
2624
- td2.append("span").style("margin-left", "5px").style("background-color", cnv.color).html("&nbsp;&nbsp;");
2625
- 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}`);
2626
- });
2627
- }
2628
- }
2629
- };
2630
-
2631
- // plots/disco/defaults.ts
2632
- function discoDefaults(overrides = {}, app) {
2633
- const hiddenChromosomes = [];
2634
- if (app?.vocabApi?.termdbConfig?.queries?.singleSampleMutation?.discoPlot?.skipChrM) {
2635
- hiddenChromosomes.push("chrM");
2636
- }
2637
- const defaults = {
2638
- downloadImgName: "disco.plot",
2639
- Disco: {
2640
- centerText: null,
2641
- cnvCapping: 5,
2642
- isOpen: false,
2643
- prioritizeGeneLabelsByGeneSets: false,
2644
- showPrioritizeGeneLabelsByGeneSets: false,
2645
- showGeneNames: true,
2646
- mutationWaterfallPlot: false,
2647
- mutationWaterfallColor: "#4d4d4d",
2648
- cnvRenderingType: "heatmap" /* heatmap */,
2649
- cnvPercentile: 90,
2650
- // 90th percentile for removing outliers
2651
- cnvCutoffMode: "percentile",
2652
- autoRadius: true,
2653
- radius: 300,
2654
- fusionOpacity: 1,
2655
- hiddenChromosomes
2656
- },
2657
- rings: {
2658
- nonExonicRingWidth: 20,
2659
- snvRingWidth: 20,
2660
- lohRingWidth: 20,
2661
- cnvRingWidth: 30,
2662
- mutationWaterfallRingWidth: 35,
2663
- snvRingFilters: ["exonic"],
2664
- chromosomeInnerRadius: 190,
2665
- chromosomeWidth: 20,
2666
- labelLinesInnerRadius: 210,
2667
- labelsToLinesDistance: 30,
2668
- labelsToLinesGap: 2,
2669
- nonExonicRingEnabled: true,
2670
- nonExonicFilterValues: ["non-exonic"]
2671
- },
2672
- verticalPadding: 0,
2673
- horizontalPadding: 50,
2674
- layerScaler: 1,
2675
- padAngle: 2e-3,
2676
- //0.01, //0.04,
2677
- label: {
2678
- fontSize: 12,
2679
- maxDeltaAngle: 0.05,
2680
- animationDuration: 1e3,
2681
- overlapAngleFactor: 5
2682
- // 5 is set by testing, because label height is not known before rendering
2683
- },
2684
- cnv: {
2685
- capping: 5,
2686
- percentile: 80,
2687
- ampColor: "#D6683C",
2688
- lossColor: "#67a9cf",
2689
- cappedAmpColor: "#8B0000",
2690
- cappedLossColor: "#00008B",
2691
- unit: "Unit"
2692
- },
2693
- snv: {
2694
- maxMutationCount: 1e4
2695
- },
2696
- legend: {
2697
- snvTitle: "SNV",
2698
- cnvTitle: "CNV",
2699
- lohTitle: "LOH",
2700
- fusionTitle: "SV",
2701
- // Structural Variants (color by co-location)
2702
- lohLegendEnabled: true,
2703
- fontSize: 12,
2704
- rowHeight: 48
2705
- },
2706
- menu: {
2707
- padding: 5
2708
- }
2709
- };
2710
- if (overrides?.Disco?.radius != null && (overrides.Disco.radius > 1e3 || overrides.Disco.radius < 200)) {
2711
- console.log(`${overrides?.Disco?.radius} is greater or lower than the min and max for the radius`);
2712
- }
2713
- return copyMerge(defaults, overrides);
2714
- }
2715
-
2716
- // plots/disco/snv/NonExonicSnvRenderer.ts
2717
- var NonExonicSnvRenderer = class {
2718
- constructor(geneClickListener) {
2719
- this.geneClickListener = geneClickListener;
2720
- }
2721
- render(holder, elements) {
2722
- const arcGenerator = arc_default();
2723
- const arcs = holder.append("g");
2724
- const menu = MenuProvider.create();
2725
- arcs.selectAll("path").data(elements).enter().append("path").attr("d", (d) => arcGenerator(d)).attr("fill", (d) => d.color).on("mouseover", (mouseEvent, arc) => {
2726
- const table = table2col({ holder: menu.d });
2727
- const snv = structuredClone(arc);
2728
- snv.dt = dtsnvindel;
2729
- snv.class = arc.dataClass;
2730
- snv.gene = snv.text;
2731
- {
2732
- const [td1, td2] = table.addRow();
2733
- td1.text("Consequence");
2734
- td2.append("span").text(snv.mname);
2735
- td2.append("span").style("margin-left", "5px").style("color", snv.color).style("font-size", ".8em").text(snv.dataClass);
2736
- }
2737
- {
2738
- const [td1, td2] = table.addRow();
2739
- td1.text(snv.ref && snv.alt ? "Mutation" : "Position");
2740
- td2.append("span").text(`${snv.chr}:${snv.pos + 1} ${snv.ref && snv.alt ? snv.ref + ">" + snv.alt : ""}`);
2741
- }
2742
- if (snv.gene) {
2743
- const [td1, td2] = table.addRow();
2744
- td1.text("Gene");
2745
- td2.text(snv.gene);
2746
- }
2747
- if (snv.occurrence > 1) {
2748
- const [td1, td2] = table.addRow();
2749
- td1.text("Occurrence");
2750
- td2.text(snv.occurrence);
2751
- }
2752
- if (hasAnyValidVafEntry(arc.vafs)) {
2753
- const [td1, td2] = table.addRow();
2754
- td1.text("Read count");
2755
- appendVafBars(td2, arc.vafs);
2756
- }
2757
- menu.show(mouseEvent.x, mouseEvent.y);
2758
- }).on("mouseout", () => {
2759
- menu.clear();
2760
- menu.hide();
2761
- }).on("click", (mouseEvent, arc) => {
2762
- this.geneClickListener(arc.text, [arc.mname]);
2763
- });
2764
- }
2765
- };
2766
-
2767
- // plots/disco/snv/SnvRenderer.ts
2768
- var SnvRenderer = class {
2769
- constructor(svnWidth, geneClickListener) {
2770
- this.svnWidth = svnWidth;
2771
- this.geneClickListener = geneClickListener;
2772
- }
2773
- render(holder, elements) {
2774
- if (elements.length > 0) {
2775
- const svnInnerRadius = elements[0].innerRadius;
2776
- const fullArcRenderer = new FullArcRenderer(svnInnerRadius, this.svnWidth, "#6464641A");
2777
- fullArcRenderer.render(holder);
2778
- }
2779
- const arcGenerator = arc_default();
2780
- const arcs = holder.append("g");
2781
- const menu = MenuProvider.create();
2782
- arcs.selectAll("path").data(elements).enter().append("path").attr("d", (d) => arcGenerator(d)).attr("fill", (d) => d.color).on("mouseover", (mouseEvent, arc) => {
2783
- const table = table2col({ holder: menu.d });
2784
- const snv = structuredClone(arc);
2785
- snv.dt = dtsnvindel;
2786
- snv.class = arc.dataClass;
2787
- snv.gene = snv.text;
2788
- {
2789
- const [td1, td2] = table.addRow();
2790
- td1.text("Consequence");
2791
- td2.append("span").text(snv.mname);
2792
- td2.append("span").style("margin-left", "5px").style("color", snv.color).style("font-size", ".8em").text(snv.dataClass);
2793
- }
2794
- {
2795
- const [td1, td2] = table.addRow();
2796
- td1.text(snv.ref && snv.alt ? "Mutation" : "Position");
2797
- td2.append("span").text(`${snv.chr}:${snv.pos + 1} ${snv.ref && snv.alt ? snv.ref + ">" + snv.alt : ""}`);
2798
- }
2799
- if (snv.gene) {
2800
- const [td1, td2] = table.addRow();
2801
- td1.text("Gene");
2802
- td2.text(snv.gene);
2803
- }
2804
- if (snv.occurrence > 1) {
2805
- const [td1, td2] = table.addRow();
2806
- td1.text("Occurrence");
2807
- td2.text(snv.occurrence);
2808
- }
2809
- if (hasAnyValidVafEntry(arc.vafs)) {
2810
- const [td1, td2] = table.addRow();
2811
- td1.text("Read count");
2812
- appendVafBars(td2, arc.vafs);
2813
- }
2814
- menu.show(mouseEvent.x, mouseEvent.y);
2815
- }).on("mouseout", () => {
2816
- menu.clear();
2817
- menu.hide();
2818
- }).on("click", (mouseEvent, arc) => {
2819
- this.geneClickListener(arc.text, [arc.mname]);
2820
- });
2821
- }
2822
- };
2823
-
2824
- // plots/disco/loh/LohRenderer.ts
2825
- var LohRenderer = class {
2826
- render(holder, elements) {
2827
- const arcGenerator = arc_default();
2828
- const arcs = holder.append("g");
2829
- const menu = MenuProvider.create();
2830
- arcs.selectAll("path").data(elements).enter().append("path").attr("d", (d) => arcGenerator(d)).attr("fill", (d) => d.color).on("mouseover", (mouseEvent, arc) => {
2831
- const table = table2col({ holder: menu.d });
2832
- const loh = structuredClone(arc);
2833
- loh.dt = dtloh;
2834
- loh.gene = loh.text;
2835
- {
2836
- const [td12, td22] = table.addRow();
2837
- td12.text("Data type");
2838
- td22.append("span").style("margin-left", "5px").text("Loss of Heterozygosity");
2839
- }
2840
- const [td1, td2] = table.addRow();
2841
- td1.text("Position");
2842
- td2.append("span").text(`${arc.chr}:${arc.start}-${arc.stop}`);
2843
- menu.show(mouseEvent.x, mouseEvent.y);
2844
- }).on("mouseout", () => {
2845
- menu.clear();
2846
- menu.hide();
2847
- });
2848
- }
2849
- };
2850
-
2851
- // plots/disco/cnv/CnvBarRenderer.ts
2852
- var CnvBarRenderer = class {
2853
- render(holder, elements) {
2854
- const arcGenerator = arc_default();
2855
- const arcs = holder.append("g");
2856
- const hoverOverlay = holder.append("g").attr("class", "hover-overlay").style("pointer-events", "none");
2857
- const menu = MenuProvider.create();
2858
- arcs.selectAll("path").data(elements).enter().append("path").attr("d", (d) => arcGenerator(d)).attr("fill", (d) => d.color).on("mouseover", (mouseEvent, arc) => {
2859
- hoverOverlay.selectAll("*").remove();
2860
- hoverOverlay.append("path").datum(arc).attr("d", arcGenerator(arc)).attr("fill", "none").attr("stroke", "black").attr("stroke-width", 1);
2861
- const cnv = structuredClone(arc);
2862
- cnv.dt = dtcnv;
2863
- cnv.samples = [{ sample_id: arc.sampleName }];
2864
- cnv.gene = cnv.text;
2865
- const table = table2col({ holder: menu.d });
2866
- {
2867
- const [c1, c2] = table.addRow();
2868
- c1.text("CNV");
2869
- c2.html(`<span style="background:${cnv.color}">&nbsp;&nbsp;</span> ${cnv.value}`);
2870
- }
2871
- {
2872
- const [c1, c2] = table.addRow();
2873
- c1.text("Position");
2874
- c2.text(cnv.chr + ":" + cnv.start + "-" + cnv.stop);
2875
- }
2876
- {
2877
- const [c1, c2] = table.addRow();
2878
- c1.text("Unit");
2879
- c2.text(cnv.value);
2880
- }
2881
- menu.show(mouseEvent.x, mouseEvent.y);
2882
- }).on("mouseout", () => {
2883
- hoverOverlay.selectAll("*").remove();
2884
- menu.clear();
2885
- menu.hide();
2886
- });
2887
- }
2888
- };
2889
-
2890
- // plots/disco/cnv/CnvHeatmapRenderer.ts
2891
- var CnvHeatmapRenderer = class {
2892
- constructor(positivePercentile = 0, negativePercentile = 0) {
2893
- this.positivePercentile = positivePercentile;
2894
- this.negativePercentile = negativePercentile;
2895
- }
2896
- render(holder, elements) {
2897
- const arcGenerator = arc_default();
2898
- const arcs = holder.append("g");
2899
- const hoverOverlay = holder.append("g").attr("class", "hover-overlay").style("pointer-events", "none");
2900
- const menu = MenuProvider.create();
2901
- 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) => {
2902
- hoverOverlay.append("path").datum(arc).attr("d", arcGenerator(arc)).attr("fill", "none").attr("stroke", "black").attr("stroke-width", 1);
2903
- const table = table2col({ holder: menu.d });
2904
- const cnv = structuredClone(arc);
2905
- cnv.dt = dtcnv;
2906
- cnv.samples = [{ sample_id: arc.sampleName }];
2907
- cnv.gene = cnv.text;
2908
- {
2909
- const [c1, c2] = table.addRow();
2910
- c1.text("CNV");
2911
- c2.html(
2912
- `<span style="background:${this.getColor(
2913
- cnv.color,
2914
- cnv.value
2915
- )}; border:solid lightgrey 0.1px;">&nbsp;&nbsp;</span> ${cnv.value}`
2916
- );
2917
- }
2918
- {
2919
- const [c1, c2] = table.addRow();
2920
- c1.text("Position");
2921
- c2.text(cnv.chr + ":" + cnv.start + "-" + cnv.stop);
2922
- }
2923
- menu.show(mouseEvent.x, mouseEvent.y);
2924
- }).on("mouseleave", () => {
2925
- hoverOverlay.selectAll("*").remove();
2926
- menu.clear();
2927
- menu.hide();
2928
- });
2929
- }
2930
- // Computes fill color using linear scale between -P80, 0, and +P80
2931
- getColor(color, value) {
2932
- const maxValue = Math.max(this.positivePercentile, Math.abs(this.negativePercentile));
2933
- return linear(
2934
- [-maxValue, 0, maxValue],
2935
- [color, "white", color]
2936
- // transitions to white in the middle
2937
- ).clamp(true)(value);
2938
- }
2939
- };
2940
-
2941
- // plots/disco/waterfall/MutationWaterfallRenderer.ts
2942
- var MutationWaterfallRenderer = class {
2943
- constructor(dotRadius = 1.5) {
2944
- this.dotRadius = dotRadius;
2945
- }
2946
- render(holder, elements) {
2947
- if (!elements.length) return;
2948
- const ringGroup = holder.append("g").attr("data-testid", "sjpp_mutation_waterfall_ring");
2949
- const menu = MenuProvider.create();
2950
- 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) => {
2951
- const distance = Math.round(Math.pow(10, d.logDistance));
2952
- menu.clear();
2953
- const table = table2col({ holder: menu.d });
2954
- {
2955
- const [td1, td2] = table.addRow();
2956
- td1.text("Intermutation distance");
2957
- td2.text(`${bplen(distance)}`);
2958
- }
2959
- menu.show(event.x, event.y);
2960
- }).on("mouseout", () => {
2961
- menu.clear();
2962
- menu.hide();
2963
- });
2964
- this.renderAxis(ringGroup, elements[0]);
2965
- }
2966
- renderAxis(holder, referencePoint) {
2967
- const { ringInnerRadius, ringWidth, rangeMin, rangeMax } = referencePoint;
2968
- const axisGroup = holder.append("g").attr("class", "sjpp-waterfall-axis");
2969
- const topRadius = ringInnerRadius + ringWidth;
2970
- axisGroup.append("line").attr("x1", 0).attr("y1", -topRadius).attr("x2", 0).attr("y2", -ringInnerRadius).attr("stroke", "#6e6e6e").attr("stroke-width", 1);
2971
- const span = rangeMax - rangeMin || 1;
2972
- const tickValues = rangeMax === rangeMin ? [rangeMin] : ticks(rangeMin, rangeMax, 4);
2973
- tickValues.forEach((value) => {
2974
- const ratio = (value - rangeMin) / span;
2975
- const radius = ringInnerRadius + ringWidth * ratio;
2976
- const y = -radius;
2977
- axisGroup.append("line").attr("x1", -4).attr("x2", 4).attr("y1", y).attr("y2", y).attr("stroke", "#6e6e6e");
2978
- const exponent = Math.round(value * 10) / 10;
2979
- const formatted = Number.isInteger(exponent) ? `${exponent}` : exponent.toFixed(1);
2980
- axisGroup.append("text").attr("x", 6).attr("y", y + 3).style("font-size", "10px").style("fill", "#4d4d4d").text(`10^${formatted} bp`);
2981
- });
2982
- }
2983
- };
2984
-
2985
- // plots/disco/Disco.ts
2986
- var Disco = class {
2987
- constructor(opts) {
2988
- this.recreateViewModel = false;
2989
- this.onCnvSourceSelect = (index) => {
2990
- const state = this.app.getState();
2991
- const args = state.args;
2992
- const alt = args.alternativeDataByDt?.[dtcnv];
2993
- if (!alt) return;
2994
- const altClone = structuredClone(args.alternativeDataByDt);
2995
- altClone[dtcnv].forEach((d, i) => d.inuse = i === index);
2996
- const selected = altClone[dtcnv][index];
2997
- selected.mlst.forEach((d) => d.position = d.pos);
2998
- const baseData = args.data.filter((d) => d.dt != dtcnv && d.dt != dtloh);
2999
- const newData = baseData.concat(selected.mlst);
3000
- this.app.dispatch({
3001
- type: "app_refresh",
3002
- state: { args: { ...args, data: newData, alternativeDataByDt: altClone } }
3003
- });
3004
- };
3005
- this.type = "Disco";
3006
- this.opts = opts;
3007
- this.isOpen = false;
3008
- this.discoInteractions = new DiscoInteractions(this);
3009
- }
3010
- static {
3011
- this.type = "Disco";
3012
- }
3013
- async init() {
3014
- const state = this.app.getState();
3015
- const settings = state.plots.find((p) => p.id === this.id).settings;
3016
- this.stateViewModelMapper = new ViewModelMapper(settings, this.discoInteractions);
3017
- this.viewModel = this.stateViewModelMapper.map(state);
3018
- const holder = this.opts.holder;
3019
- const controlsHolder = holder.append("div").style("display", "inline-block").style("vertical-align", "top");
3020
- const mainDiv = holder.append("div").style("display", "inline-block");
3021
- const topbar = controlsHolder.append("div");
3022
- const config_div = controlsHolder.append("div");
3023
- const configInputsOptions = this.getConfigInputsOptions(this.viewModel);
3024
- this.features = await multiInit({
3025
- topbar: topBarInit({
3026
- app: this.app,
3027
- id: this.id,
3028
- // TODO change the way svg is selected
3029
- downloadHandler: () => this.discoInteractions.downloadClickListener(holder.select('svg[id="sjpp_disco_plot"]').node()),
3030
- callback: () => this.toggleVisibility(this.isOpen),
3031
- isOpen: () => this.isOpen,
3032
- holder: topbar
3033
- }),
3034
- config: configUiInit({
3035
- app: this.app,
3036
- id: this.id,
3037
- holder: config_div,
3038
- isOpen: () => this.isOpen,
3039
- inputs: configInputsOptions
3040
- })
3041
- });
3042
- this.errorDiv = mainDiv.append("div").attr("data-testid", "sjpp-disco-errorDiv");
3043
- this.svgDiv = mainDiv.append("div").attr("data-testid", "sjpp-disco-svgDiv");
3044
- }
3045
- getConfigInputsOptions(viewModel) {
3046
- const configInputsOptions = [];
3047
- if (viewModel.settings.Disco.showPrioritizeGeneLabelsByGeneSets) {
3048
- const filterMutationsGenesCheckbox = [
3049
- {
3050
- boxLabel: viewModel.genesetName,
3051
- label: `Filter mutations`,
3052
- type: "checkbox",
3053
- chartType: "Disco",
3054
- settingsKey: "prioritizeGeneLabelsByGeneSets",
3055
- title: `Only show mutations for ${viewModel.genesetName} genes`
3056
- }
3057
- ];
3058
- configInputsOptions.push(...filterMutationsGenesCheckbox);
3059
- }
3060
- if (viewModel.cnvMaxValue !== 0 || viewModel.cnvMinValue !== 0) {
3061
- const cnvConfigInputOptions = [
3062
- {
3063
- boxLabel: "",
3064
- label: "CNV rendering type",
3065
- type: "radio",
3066
- chartType: "Disco",
3067
- settingsKey: "cnvRenderingType",
3068
- title: "CNV rendering type",
3069
- options: [
3070
- { label: "Heatmap", value: "heatmap" /* heatmap */ },
3071
- { label: "Bar", value: "bar" /* bar */ }
3072
- ]
3073
- }
3074
- ];
3075
- configInputsOptions.push(...cnvConfigInputOptions);
3076
- }
3077
- configInputsOptions.push({
3078
- boxLabel: "",
3079
- label: "Show gene names",
3080
- type: "checkbox",
3081
- chartType: "Disco",
3082
- settingsKey: "showGeneNames",
3083
- title: "Show gene name labels on the outside of the plot"
3084
- });
3085
- const genomeChr = this.app.opts.state.args.genome.majorchr;
3086
- const chromosomeConfigOption = {
3087
- label: "Chromosomes",
3088
- title: "Chromosomes shown in the plot",
3089
- type: "multiCheckbox",
3090
- chartType: "Disco",
3091
- settingsKey: "hiddenChromosomes",
3092
- style: {
3093
- colNum: 4
3094
- },
3095
- options: Object.keys(genomeChr).map((c) => ({ label: c, value: c })),
3096
- processInput: (values = []) => {
3097
- const reverse = Object.keys(genomeChr).filter((c) => !values.includes(c));
3098
- return reverse;
3099
- }
3100
- };
3101
- configInputsOptions.push(chromosomeConfigOption);
3102
- configInputsOptions.push({
3103
- boxLabel: "",
3104
- label: "Auto radius",
3105
- type: "checkbox",
3106
- chartType: "Disco",
3107
- settingsKey: "autoRadius",
3108
- title: "Automatically set the radius based on the number of data rings"
3109
- });
3110
- const dimensionOptions = [
3111
- {
3112
- label: "Radius",
3113
- title: "Set the radius of the entire plot, between 200 and 1000 pixels.",
3114
- type: "number",
3115
- chartType: "Disco",
3116
- settingsKey: "radius",
3117
- debounceInterval: 500,
3118
- step: 25,
3119
- min: 200,
3120
- max: 1e3,
3121
- getDisplayStyle: (plot) => plot.settings.Disco.autoRadius ? "none" : "table-row"
3122
- },
3123
- {
3124
- label: "Fusion opacity",
3125
- title: "Adjust opacity of fusion arcs, between 0 and 1",
3126
- type: "number",
3127
- chartType: "Disco",
3128
- settingsKey: "fusionOpacity",
3129
- step: 0.01,
3130
- min: 0,
3131
- max: 1,
3132
- debounceInterval: 500
3133
- }
3134
- ];
3135
- configInputsOptions.push(...dimensionOptions);
3136
- if (viewModel.canShowMutationWaterfallPlot && viewModel.snvDataLength > 0) {
3137
- configInputsOptions.push({
3138
- boxLabel: "",
3139
- label: "Mutation Waterfall Plot",
3140
- type: "checkbox",
3141
- chartType: "Disco",
3142
- settingsKey: "mutationWaterfallPlot",
3143
- title: "Render log10 intermutation distance ring for SNV/indel data"
3144
- });
3145
- }
3146
- return configInputsOptions;
3147
- }
3148
- async main() {
3149
- const settings = this.state.settings;
3150
- this.isOpen = settings.Disco.isOpen;
3151
- if (this.recreateViewModel) {
3152
- this.stateViewModelMapper = new ViewModelMapper(settings, this.discoInteractions);
3153
- this.viewModel = this.stateViewModelMapper.map(this.app.getState());
3154
- }
3155
- this.recreateViewModel = true;
3156
- if (this.viewModel) {
3157
- this.svgDiv.selectAll("*").remove();
3158
- const appState = this.app.getState();
3159
- this.viewModel.svgDiv = this.svgDiv;
3160
- this.viewModel.appState = appState;
3161
- for (const name in this.features) {
3162
- this.features[name].update({ state: this.state, appState });
3163
- }
3164
- const legendRenderer = new LegendRenderer(this.viewModel.cappedCnvMaxAbsValue, settings.label.fontSize);
3165
- const discoRenderer = new DiscoRenderer(
3166
- this.getRingRenderers(this.viewModel.settings, this.viewModel, this.discoInteractions.geneClickListener),
3167
- legendRenderer,
3168
- this.app.opts.state.args.genome
3169
- );
3170
- discoRenderer.render(this.svgDiv, this.viewModel, this.onCnvSourceSelect);
3171
- if (this.viewModel.invalidDataInfo?.entries?.length) {
3172
- InvalidDataUI.render(this.errorDiv, this.viewModel.invalidDataInfo);
3173
- }
3174
- }
3175
- }
3176
- getState(appState) {
3177
- const config = appState.plots.find((p) => p.id === this.id);
3178
- if (!config) return config;
3179
- return { ...config, mlst: appState.args.data };
3180
- }
3181
- getRingRenderers(settings, viewModel, geneClickListener) {
3182
- const chromosomesRenderer = new ChromosomesRenderer(
3183
- settings.padAngle,
3184
- settings.rings.chromosomeInnerRadius,
3185
- settings.rings.chromosomeInnerRadius + settings.rings.chromosomeWidth,
3186
- settings.label.fontSize
3187
- );
3188
- const labelsRenderer = new LabelsRenderer(
3189
- settings.label.animationDuration,
3190
- settings.label.fontSize,
3191
- geneClickListener
3192
- );
3193
- const nonExonicSnvRenderer = new NonExonicSnvRenderer(geneClickListener);
3194
- const snvRenderer = new SnvRenderer(settings.rings.snvRingWidth, geneClickListener);
3195
- const cnvRenderer = settings.Disco.cnvRenderingType === "heatmap" /* heatmap */ ? new CnvHeatmapRenderer(viewModel.positivePercentile, viewModel.negativePercentile) : new CnvBarRenderer();
3196
- const lohRenderer = new LohRenderer();
3197
- const mutationWaterfallRenderer = new MutationWaterfallRenderer();
3198
- const renderersMap = /* @__PURE__ */ new Map();
3199
- renderersMap.set(0 /* CHROMOSOME */, chromosomesRenderer);
3200
- renderersMap.set(1 /* LABEL */, labelsRenderer);
3201
- renderersMap.set(2 /* NONEXONICSNV */, nonExonicSnvRenderer);
3202
- renderersMap.set(3 /* SNV */, snvRenderer);
3203
- renderersMap.set(4 /* MUTATION_WATERFALL */, mutationWaterfallRenderer);
3204
- renderersMap.set(5 /* CNV */, cnvRenderer);
3205
- renderersMap.set(6 /* LOH */, lohRenderer);
3206
- return renderersMap;
3207
- }
3208
- toggleVisibility(isOpen) {
3209
- this.app.dispatch({
3210
- type: "plot_edit",
3211
- id: this.opts.id,
3212
- config: {
3213
- settings: {
3214
- Disco: { isOpen: !isOpen }
3215
- }
3216
- }
3217
- });
3218
- }
3219
- };
3220
- var discoInit = getCompInit(Disco);
3221
- var componentInit = discoInit;
3222
- async function getPlotConfig(opts, app) {
3223
- return {
3224
- chartType: "Disco",
3225
- subfolder: "disco",
3226
- extension: "ts",
3227
- settings: discoDefaults(opts.overrides, app)
3228
- };
3229
- }
3230
- export {
3231
- componentInit,
3232
- Disco as default,
3233
- discoInit,
3234
- getPlotConfig
3235
- };
3236
- //# sourceMappingURL=Disco-5PXXMGGQ.js.map