@sjcrh/proteinpaint-client 2.196.0 → 2.197.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 (920) hide show
  1. package/dist/2dmaf-HV22W5N3.js +1373 -0
  2. package/dist/AIProjectAdmin-7QGTPN3B.js +958 -0
  3. package/dist/AppHeader-NOKET4YE.js +835 -0
  4. package/dist/BoxPlot-SPG66F4C.js +1217 -0
  5. package/dist/CorrelationVolcano-3LEMTFXP.js +619 -0
  6. package/dist/DE-WCCADMXA.js +95 -0
  7. package/dist/DEinput-IZNPYPKH.js +301 -0
  8. package/dist/DifferentialAnalysis-SDZXIUXP.js +242 -0
  9. package/dist/DifferentialAnalysis-SDZXIUXP.js.map +7 -0
  10. package/dist/Disco-M5RNUOWG.js +3297 -0
  11. package/dist/Disco.UI-RVUOPT6Y.js +249 -0
  12. package/dist/DmrPlot-R2N534FS.js +642 -0
  13. package/dist/GB-DY6XWOJE.js +1356 -0
  14. package/dist/GB-DY6XWOJE.js.map +7 -0
  15. package/dist/GSEA-3TB3PYEV.js +846 -0
  16. package/dist/GSEA-3TB3PYEV.js.map +7 -0
  17. package/dist/GeneExpInput-VWCPHOVO.js +367 -0
  18. package/dist/HicApp-F2MY3NXP.js +2250 -0
  19. package/dist/IDCViewer-PT7IV6T2.js +10799 -0
  20. package/dist/IDCViewer-PT7IV6T2.js.map +7 -0
  21. package/dist/NumBinaryEditor-AL2NWII2.js +271 -0
  22. package/dist/NumBinaryEditor.unit.spec-NFRJHFNX.js +286 -0
  23. package/dist/NumContEditor-CTFJVIHU.js +109 -0
  24. package/dist/NumContEditor.unit.spec-FXGGCMTD.js +169 -0
  25. package/dist/NumCustomBinEditor-JFIJ2X6E.js +38 -0
  26. package/dist/NumCustomBinEditor.unit.spec-ZKIZXS53.js +284 -0
  27. package/dist/NumDiscreteEditor-E7SPHF55.js +179 -0
  28. package/dist/NumDiscreteEditor.unit.spec-QKKRZJMU.js +202 -0
  29. package/dist/NumRegularBinEditor-JSLTZIAQ.js +38 -0
  30. package/dist/NumRegularBinEditor.unit.spec-W73BA6L4.js +227 -0
  31. package/dist/NumSplineEditor-ZEXYGKKF.js +198 -0
  32. package/dist/NumSplineEditor.unit.spec-EHKI4CY7.js +199 -0
  33. package/dist/NumericDensity-ZXM6TB33.js +38 -0
  34. package/dist/NumericDensity.unit.spec-PUFRE5XA.js +221 -0
  35. package/dist/NumericHandler-73TUDM3R.js +39 -0
  36. package/dist/NumericHandler.unit.spec-EITBD47U.js +219 -0
  37. package/dist/ProteomeInput-QICOUSRW.js +395 -0
  38. package/dist/ProteomeInput-QICOUSRW.js.map +7 -0
  39. package/dist/RunChart2-4JYV2Z7B.js +758 -0
  40. package/dist/SC-77HA6SBW.js +1120 -0
  41. package/dist/SC-77HA6SBW.js.map +7 -0
  42. package/dist/Volcano-3546I4MG.js +1385 -0
  43. package/dist/Volcano-3546I4MG.js.map +7 -0
  44. package/dist/WSIViewer-DQAXX7QJ.js +48562 -0
  45. package/dist/WsiSamplesPlot-AGOLPLK3.js +165 -0
  46. package/dist/adSandbox-ZE5QOTN5.js +38 -0
  47. package/dist/animatedBubbleChart-ILMDNAVK.js +555 -0
  48. package/dist/app-JBFRJ5OO.js +49 -0
  49. package/dist/app-YVNRAZWU.js +37 -0
  50. package/dist/app.js +16 -16
  51. package/dist/bam-A2PVAF3J.js +860 -0
  52. package/dist/barchart-2XQ7F6LT.js +47 -0
  53. package/dist/barchart.data-6XLK7D63.js +22 -0
  54. package/dist/barchart.events-DKJDKSPN.js +47 -0
  55. package/dist/barchart.integration.spec-UTTCQJRL.js +2196 -0
  56. package/dist/barchart2-2FRVUVJG.js +314 -0
  57. package/dist/block-3KOPYQ25.js +6255 -0
  58. package/dist/block-3KOPYQ25.js.map +7 -0
  59. package/dist/block.init-3KLLFGGV.js +38 -0
  60. package/dist/block.mds.expressionrank-XU3MBIOX.js +359 -0
  61. package/dist/block.mds.geneboxplot-VQTBL7T4.js +828 -0
  62. package/dist/block.mds.junction-IYWWRIJD.js +1545 -0
  63. package/dist/block.mds.svcnv-BMY5DCAM.js +6801 -0
  64. package/dist/block.svg-AT4GYQHX.js +164 -0
  65. package/dist/block.tk.aicheck-RANOFGDZ.js +283 -0
  66. package/dist/block.tk.ase-CBWJA3RN.js +365 -0
  67. package/dist/block.tk.bam-D7JBRNFQ.js +1906 -0
  68. package/dist/block.tk.bedgraphdot-IEHNIGVI.js +384 -0
  69. package/dist/block.tk.bigwig.ui-3SAXUJU4.js +212 -0
  70. package/dist/block.tk.hicstraw-R5EHQFGM.js +823 -0
  71. package/dist/block.tk.junction-JFCEXZZC.js +2364 -0
  72. package/dist/block.tk.junction.textmatrixui-4V7MV6TD.js +199 -0
  73. package/dist/block.tk.ld-LP4DIHAJ.js +99 -0
  74. package/dist/block.tk.menu-FTVZU2HA.js +1029 -0
  75. package/dist/block.tk.pgv-CRAMVKU4.js +944 -0
  76. package/dist/brainImaging-DXLK5XZ6.js +423 -0
  77. package/dist/brainRegions-AMSXQT3T.js +221 -0
  78. package/dist/bubbleHeatmap-SXBARILL.js +383 -0
  79. package/dist/chunk-23AEAG37.js +314 -0
  80. package/dist/chunk-23AEAG37.js.map +7 -0
  81. package/dist/chunk-2AHDWWQO.js +276 -0
  82. package/dist/chunk-2OJ577BB.js +299 -0
  83. package/dist/chunk-433DTQ6C.js +26 -0
  84. package/dist/chunk-46CPDZSW.js +617 -0
  85. package/dist/chunk-47EYZQA7.js +98 -0
  86. package/dist/chunk-4M22UIJQ.js +2327 -0
  87. package/dist/chunk-4YDERN37.js +194 -0
  88. package/dist/chunk-5ERYRSVV.js +1825 -0
  89. package/dist/chunk-6W6UMGAV.js +230 -0
  90. package/dist/chunk-6Z4XHMZV.js +54 -0
  91. package/dist/chunk-7P4DUYAQ.js +1245 -0
  92. package/dist/chunk-7P4DUYAQ.js.map +7 -0
  93. package/dist/chunk-7YWPWCHD.js +448 -0
  94. package/dist/chunk-7Z6E3NA5.js +787 -0
  95. package/dist/chunk-7Z6E3NA5.js.map +7 -0
  96. package/dist/chunk-AC3RAKUI.js +102 -0
  97. package/dist/chunk-BSOB3BVG.js +217 -0
  98. package/dist/chunk-CJJA6RVM.js +254 -0
  99. package/dist/chunk-CUXOQIUA.js +1102 -0
  100. package/dist/chunk-D5ZYSW45.js +216 -0
  101. package/dist/chunk-DA6RR5IR.js +170 -0
  102. package/dist/chunk-DD6KDZVR.js +302 -0
  103. package/dist/chunk-DI5ULDWN.js +54 -0
  104. package/dist/chunk-DXM5IMGV.js +446 -0
  105. package/dist/chunk-FYY3T565.js +188 -0
  106. package/dist/chunk-FYY3T565.js.map +7 -0
  107. package/dist/chunk-GFETCJ7S.js +176 -0
  108. package/dist/chunk-H42SJNXA.js +1535 -0
  109. package/dist/chunk-H42SJNXA.js.map +7 -0
  110. package/dist/chunk-HCNF7EFT.js +292 -0
  111. package/dist/chunk-I62GOCNI.js +31 -0
  112. package/dist/chunk-IBYOP2FV.js +2833 -0
  113. package/dist/chunk-JD2ECQ3Z.js +2681 -0
  114. package/dist/chunk-JF47NF5G.js +236 -0
  115. package/dist/chunk-JHZK6IDA.js +20904 -0
  116. package/dist/chunk-JHZK6IDA.js.map +7 -0
  117. package/dist/chunk-JOA4KJTM.js +222 -0
  118. package/dist/chunk-JT7HC65V.js +556 -0
  119. package/dist/chunk-JT7HC65V.js.map +7 -0
  120. package/dist/chunk-K6AW4GFM.js +37 -0
  121. package/dist/chunk-K7QY24X2.js +1223 -0
  122. package/dist/chunk-K7QY24X2.js.map +7 -0
  123. package/dist/chunk-KOLVLBMI.js +100 -0
  124. package/dist/chunk-KQ6EF3FG.js +448 -0
  125. package/dist/chunk-KTKZSYIH.js +24 -0
  126. package/dist/chunk-KTKZSYIH.js.map +7 -0
  127. package/dist/chunk-LBWKMNVU.js +129 -0
  128. package/dist/chunk-LFGIMCUD.js +55 -0
  129. package/dist/chunk-LKB3DITY.js +343 -0
  130. package/dist/chunk-M2PPUO4E.js +315 -0
  131. package/dist/chunk-M2PPUO4E.js.map +7 -0
  132. package/dist/chunk-MCXQL4W2.js +226 -0
  133. package/dist/chunk-MLYSQG3C.js +833 -0
  134. package/dist/chunk-MYZJUT2H.js +272 -0
  135. package/dist/chunk-NOCLG6IN.js +5070 -0
  136. package/dist/chunk-NOCLG6IN.js.map +7 -0
  137. package/dist/chunk-NVRLD4TF.js +2786 -0
  138. package/dist/chunk-NZCX4A7X.js +14 -0
  139. package/dist/chunk-OVHCUTQM.js +102 -0
  140. package/dist/chunk-P3NKHTNT.js +34 -0
  141. package/dist/chunk-PFOCEOVT.js +477 -0
  142. package/dist/chunk-PJSOYF5U.js +158 -0
  143. package/dist/chunk-PK5HXJ3S.js +272 -0
  144. package/dist/chunk-Q555GFBW.js +1942 -0
  145. package/dist/chunk-Q555GFBW.js.map +7 -0
  146. package/dist/chunk-QAVZUWY3.js +399 -0
  147. package/dist/chunk-QOAUM6UV.js +148 -0
  148. package/dist/chunk-QOEPKNVD.js +185 -0
  149. package/dist/chunk-QOEPKNVD.js.map +7 -0
  150. package/dist/chunk-QXPJLSAD.js +4284 -0
  151. package/dist/chunk-QZLP27O6.js +50 -0
  152. package/dist/chunk-SENZWOCC.js +203 -0
  153. package/dist/chunk-SFIX7XVT.js +514 -0
  154. package/dist/chunk-SJWAMUL5.js +117 -0
  155. package/dist/chunk-U3CMLIGB.js +6364 -0
  156. package/dist/chunk-UF6ZP6UR.js +381 -0
  157. package/dist/chunk-UVWUP6N7.js +1275 -0
  158. package/dist/chunk-UYEJ5DEZ.js +142 -0
  159. package/dist/chunk-V2ET64EJ.js +119 -0
  160. package/dist/chunk-WQEGWR63.js +102 -0
  161. package/dist/chunk-WYSEBR5S.js +58 -0
  162. package/dist/chunk-XB6F5OUB.js +386 -0
  163. package/dist/chunk-XVYSEXFV.js +368 -0
  164. package/dist/chunk-YGKVY5IU.js +480 -0
  165. package/dist/chunk-ZPXSPJV2.js +263 -0
  166. package/dist/chunk-ZRSJVACE.js +1500 -0
  167. package/dist/chunk-ZRSJVACE.js.map +7 -0
  168. package/dist/condition-YCPNILTV.js +332 -0
  169. package/dist/controls-RW5MWSLN.js +41 -0
  170. package/dist/controls.config-MP3CSYR4.js +39 -0
  171. package/dist/correlation-7AQRU4YR.js +102 -0
  172. package/dist/cuminc-WYLKIOXR.js +1149 -0
  173. package/dist/cuminc.integration.spec-MSAWDLD7.js +678 -0
  174. package/dist/cuminc.integration.spec-MSAWDLD7.js.map +7 -0
  175. package/dist/customdata.inputui-YU4IQJOV.js +289 -0
  176. package/dist/dataDownload-72DIPZ45.js +330 -0
  177. package/dist/dataDownload.integration.spec-HRLMWQN7.js +193 -0
  178. package/dist/databrowser.ui-3PE25HK4.js +433 -0
  179. package/dist/dictionary-Y3ICL4AE.js +118 -0
  180. package/dist/dnaMethylation-SVGDW64U.js +38 -0
  181. package/dist/dnaMethylation.integration.spec-B7GLAFZI.js +203 -0
  182. package/dist/dofetch-42KOXNPF.js +51 -0
  183. package/dist/e2pca-CLFGEFJH.js +350 -0
  184. package/dist/ep-PUHV2DMO.js +1256 -0
  185. package/dist/expclust.gdc.spec-N7YDJAOZ.js +307 -0
  186. package/dist/facet-JFFJJCNT.js +521 -0
  187. package/dist/forms2-XZAWW3RN.js +539 -0
  188. package/dist/gb-SQJ5PWOH.js +88 -0
  189. package/dist/geneExpClustering-EG2BLMQX.js +249 -0
  190. package/dist/geneExpression-J42BGP3B.js +38 -0
  191. package/dist/geneExpression-QRK3LNMV.js +313 -0
  192. package/dist/geneExpression.unit.spec-X7HVIFZA.js +102 -0
  193. package/dist/geneORA-SVBPO66K.js +278 -0
  194. package/dist/geneRanking-HNMMLZIX.js +553 -0
  195. package/dist/geneVariant-RVQKNVQO.js +39 -0
  196. package/dist/geneVariant-SO5FEJUZ.js +41 -0
  197. package/dist/geneVariant.integration.spec-DOMX4GMP.js +198 -0
  198. package/dist/genefusion.ui-QS7AG46F.js +309 -0
  199. package/dist/geneset-JKOX3VIW.js +208 -0
  200. package/dist/genomeBrowser.spec-IRSTT2OX.js +281 -0
  201. package/dist/grin2-G6DA4M7Q.js +1095 -0
  202. package/dist/grin2-G6DA4M7Q.js.map +7 -0
  203. package/dist/grin2-VZLCISPM.js +75 -0
  204. package/dist/hierCluster-6AW23EB5.js +63 -0
  205. package/dist/hierCluster-REXTCODR.js +59 -0
  206. package/dist/hierCluster.config-3Z3R66XH.js +40 -0
  207. package/dist/hierCluster.integration.spec-XE47Q64Z.js +488 -0
  208. package/dist/hierCluster.interactivity-2YJYYKVK.js +54 -0
  209. package/dist/hierCluster.renderers-LE7W2AL6.js +21 -0
  210. package/dist/imagePlot-WMZJJ5CJ.js +163 -0
  211. package/dist/importPlot-P35EGIJJ.js +8 -0
  212. package/dist/isoformExpression-3TFPEXB4.js +40 -0
  213. package/dist/isoformExpression.unit.spec-SPQFK3EA.js +208 -0
  214. package/dist/launch.adhoc-ZQSJBLMJ.js +42 -0
  215. package/dist/leftlabel.sample-SJRQ6LJ2.js +264 -0
  216. package/dist/lollipop-RXM6UBZ7.js +171 -0
  217. package/dist/maf-NWXJWBNF.js +459 -0
  218. package/dist/maftimeline-D7UENAP5.js +593 -0
  219. package/dist/matrix-77LNADX2.js +63 -0
  220. package/dist/matrix-YDOLKY6G.js +58 -0
  221. package/dist/matrix.cells-VEC5LEWV.js +28 -0
  222. package/dist/matrix.config-GTAAAUGQ.js +41 -0
  223. package/dist/matrix.data-T4GEX6ZH.js +25 -0
  224. package/dist/matrix.groups-7NWHHP5Q.js +27 -0
  225. package/dist/matrix.integration.spec-5GBTFRZA.js +3072 -0
  226. package/dist/matrix.integration.spec-5GBTFRZA.js.map +7 -0
  227. package/dist/matrix.interactivity-ONT6WCRU.js +42 -0
  228. package/dist/matrix.layout-LDXHGOHF.js +44 -0
  229. package/dist/matrix.legend-5MDW65HV.js +22 -0
  230. package/dist/matrix.renderers-OEPLQG3C.js +38 -0
  231. package/dist/matrix.serieses-4RX7TUQ7.js +21 -0
  232. package/dist/matrix.sort-UKMMECBZ.js +27 -0
  233. package/dist/matrix.sort.unit.spec-VWOXPVRE.js +472 -0
  234. package/dist/matrix.sorterUi-H64DDQIL.js +18 -0
  235. package/dist/matrix.sorterUi.unit.spec-DH4434FK.js +342 -0
  236. package/dist/mavb-ARUWOZES.js +732 -0
  237. package/dist/mds.fimo-ZEAE5BC3.js +518 -0
  238. package/dist/mds.samplescatterplot-C5EBKBVF.js +1550 -0
  239. package/dist/mds.survivalplot-RS7Z3J3Q.js +483 -0
  240. package/dist/numericDictTermCluster-CSQOV4TM.js +65 -0
  241. package/dist/oncomatrix-5UVM3KUA.js +295 -0
  242. package/dist/oncomatrix.spec-CU3EZCMO.js +448 -0
  243. package/dist/plot.2dvaf-JD27DSDS.js +377 -0
  244. package/dist/plot.app-NMPMG3S2.js +41 -0
  245. package/dist/plot.barplot-T4LPKFXW.js +102 -0
  246. package/dist/plot.boxplot-22ETOHNI.js +152 -0
  247. package/dist/plot.brainImaging-Q7S7KSHW.js +51 -0
  248. package/dist/plot.disco-NIPBER5N.js +102 -0
  249. package/dist/plot.dzi-DAX7GUTF.js +33 -0
  250. package/dist/plot.ssgq-7J6S35RW.js +139 -0
  251. package/dist/plot.vaf2cov-7EWFTD72.js +259 -0
  252. package/dist/plot.wsi-E45KZGKD.js +36 -0
  253. package/dist/polar2-LPT2XMD2.js +231 -0
  254. package/dist/profileForms-EYN2KLSY.js +446 -0
  255. package/dist/profilePlot-I7VQM3CH.js +54 -0
  256. package/dist/proteinView-JP5TF3ZK.js +1568 -0
  257. package/dist/qualitative-7X3ECW7Q.js +43 -0
  258. package/dist/radar2-V3FYBFAG.js +326 -0
  259. package/dist/radarFacility2-O6GQLBBN.js +334 -0
  260. package/dist/regression-CLG6NYVF.js +56 -0
  261. package/dist/regression.inputs-RLOBIRJH.js +48 -0
  262. package/dist/regression.inputs.term-ZKIP6KDO.js +48 -0
  263. package/dist/regression.inputs.values.table-2VD4AO5T.js +45 -0
  264. package/dist/regression.integration.spec-JEIMN7MS.js +784 -0
  265. package/dist/regression.results-FT6VSWGR.js +40 -0
  266. package/dist/regression.spec-V4S52JQM.js +708 -0
  267. package/dist/report-UPQFSI4D.js +222 -0
  268. package/dist/sampleScatter.spec-QSRF3STG.js +202 -0
  269. package/dist/sampleView-JIGZ7GTP.js +48 -0
  270. package/dist/samplelst-VJMYHVXI.js +111 -0
  271. package/dist/samplematrix-LO4QB37V.js +2198 -0
  272. package/dist/sc-4VZBGFZP.js +86 -0
  273. package/dist/scatter-LQECXZLB.js +851 -0
  274. package/dist/selectGenomeWithTklst-IJTCLRIN.js +134 -0
  275. package/dist/singleCellCellType-FJ53DRXD.js +38 -0
  276. package/dist/singleCellCellType.unit.spec-VOE4KY6L.js +160 -0
  277. package/dist/singleCellGeneExpression-RZE5UVL4.js +38 -0
  278. package/dist/singleCellGeneExpression.unit.spec-2DASF7PD.js +153 -0
  279. package/dist/singleCellPlot-Q5UNIW3M.js +54 -0
  280. package/dist/singlecell-N7F5KVIB.js +1572 -0
  281. package/dist/singlecell-TX5AQ4WM.js +86 -0
  282. package/dist/snp-S4O7SVDD.js +38 -0
  283. package/dist/snp.unit.spec-WSQMZSTE.js +176 -0
  284. package/dist/snplocus-Y2R5C4ZP.js +208 -0
  285. package/dist/spliceevent.a53ss.diagram-FGRQR73W.js +151 -0
  286. package/dist/spliceevent.exonskip.diagram-TVH44RNL.js +277 -0
  287. package/dist/spliceevent.noeventdiagram-G2CMYYE7.js +460 -0
  288. package/dist/ssGSEA-BH53XGEZ.js +38 -0
  289. package/dist/ssGSEA.unit.spec-BYIVB7FZ.js +88 -0
  290. package/dist/summarizeCnvGeneexp-IZNOX4E7.js +163 -0
  291. package/dist/summarizeGeneexpSurvival-DJZ2R24E.js +114 -0
  292. package/dist/summarizeMutationCnv-CO2TVWOI.js +164 -0
  293. package/dist/summarizeMutationDiagnosis-EUZXCSZP.js +40 -0
  294. package/dist/summarizeMutationSurvival-CXFT3HWL.js +99 -0
  295. package/dist/summary-JHZCDE35.js +49 -0
  296. package/dist/summary.integration.spec-WBEYSDCA.js +414 -0
  297. package/dist/summaryInput-JVH3R54R.js +235 -0
  298. package/dist/sunburst-CTJTXHSA.js +284 -0
  299. package/dist/survival-DLLVUG2P.js +46 -0
  300. package/dist/survival-XFVYNI6S.js +58 -0
  301. package/dist/survival.integration.spec-KVXHHAA3.js +915 -0
  302. package/dist/survival.integration.spec-KVXHHAA3.js.map +7 -0
  303. package/dist/svgraph-ACEBMDIX.js +1387 -0
  304. package/dist/svmr-IQEDSZ2C.js +3842 -0
  305. package/dist/table-2IF6UGHR.js +200 -0
  306. package/dist/termCollection-JOLQJYJ3.js +38 -0
  307. package/dist/termCollection-PSXFFR32.js +179 -0
  308. package/dist/termCollection.unit.spec-4SOZP4FY.js +208 -0
  309. package/dist/tk-AAIHEQO6.js +46 -0
  310. package/dist/tk-IRXFL5NV.js +997 -0
  311. package/dist/tk-IRXFL5NV.js.map +7 -0
  312. package/dist/tp.ui-6STLQEXX.js +1459 -0
  313. package/dist/tvs.dt-FSA7KPSQ.js +39 -0
  314. package/dist/tvs.dtcnv.categorical-FSPGH7DP.js +40 -0
  315. package/dist/tvs.dtcnv.continuous-T4ZMSDB4.js +72 -0
  316. package/dist/tvs.dtfusion-UL3YENUM.js +40 -0
  317. package/dist/tvs.dtitd-XJOSZUWG.js +40 -0
  318. package/dist/tvs.dtitd-XJOSZUWG.js.map +7 -0
  319. package/dist/tvs.dtsnvindel-5TPUT5RJ.js +40 -0
  320. package/dist/tvs.dtsv-OTNHXYOJ.js +40 -0
  321. package/dist/tvs.samplelst-FQKTAQZF.js +104 -0
  322. package/dist/tvs.termCollection-ZAPCUMUW.js +159 -0
  323. package/dist/violin-HEFFKPL5.js +46 -0
  324. package/dist/violin.integration.spec-774N4G5A.js +1425 -0
  325. package/dist/violin.interactivity-XNYJSK53.js +38 -0
  326. package/dist/violin.renderer-R74VSGRC.js +40 -0
  327. package/dist/vocabulary-OHMC6NWL.js +41 -0
  328. package/package.json +3 -3
  329. package/dist/2dmaf-SKNV7IHT.js +0 -1373
  330. package/dist/AIProjectAdmin-AOTVRBNH.js +0 -958
  331. package/dist/AppHeader-M2ZSS3M3.js +0 -835
  332. package/dist/BoxPlot-P3EECSQA.js +0 -1217
  333. package/dist/CorrelationVolcano-YCQ5S6MT.js +0 -619
  334. package/dist/DE-RBMOQZCR.js +0 -95
  335. package/dist/DEinput-PTW6RS6U.js +0 -301
  336. package/dist/DifferentialAnalysis-M6IDWPYX.js +0 -245
  337. package/dist/DifferentialAnalysis-M6IDWPYX.js.map +0 -7
  338. package/dist/Disco-GUKDAHUY.js +0 -3297
  339. package/dist/Disco.UI-YBIMV7RH.js +0 -249
  340. package/dist/DmrPlot-JQPLLU6P.js +0 -642
  341. package/dist/GB-UOTFNVJE.js +0 -1353
  342. package/dist/GB-UOTFNVJE.js.map +0 -7
  343. package/dist/GeneExpInput-3OPDDCXR.js +0 -367
  344. package/dist/HicApp-VFOWRP6G.js +0 -2250
  345. package/dist/IDCViewer-Y7EOIIBG.js +0 -10455
  346. package/dist/IDCViewer-Y7EOIIBG.js.map +0 -7
  347. package/dist/NumBinaryEditor-RL44SO3T.js +0 -271
  348. package/dist/NumBinaryEditor.unit.spec-P73PGAX5.js +0 -286
  349. package/dist/NumContEditor-MIC7M73G.js +0 -109
  350. package/dist/NumContEditor.unit.spec-5XZH7OCG.js +0 -169
  351. package/dist/NumCustomBinEditor-W357XTIR.js +0 -38
  352. package/dist/NumCustomBinEditor.unit.spec-CJMK4CYW.js +0 -284
  353. package/dist/NumDiscreteEditor-PRSUMS3I.js +0 -179
  354. package/dist/NumDiscreteEditor.unit.spec-A6R56P3Z.js +0 -202
  355. package/dist/NumRegularBinEditor-7OHUEUCC.js +0 -38
  356. package/dist/NumRegularBinEditor.unit.spec-NOAX42UZ.js +0 -227
  357. package/dist/NumSplineEditor-XI7AT5LM.js +0 -198
  358. package/dist/NumSplineEditor.unit.spec-ZH4M2N2C.js +0 -199
  359. package/dist/NumericDensity-X6IHQAW3.js +0 -38
  360. package/dist/NumericDensity.unit.spec-EKVD4AUG.js +0 -221
  361. package/dist/NumericHandler-5ONBWFJ5.js +0 -39
  362. package/dist/NumericHandler.unit.spec-SHI6E4VA.js +0 -219
  363. package/dist/ProteomeInput-HN46MIBP.js +0 -396
  364. package/dist/ProteomeInput-HN46MIBP.js.map +0 -7
  365. package/dist/RunChart2-Y6IY6MW2.js +0 -758
  366. package/dist/SC-JYF564FK.js +0 -1130
  367. package/dist/SC-JYF564FK.js.map +0 -7
  368. package/dist/Volcano-WZGAUYGY.js +0 -1380
  369. package/dist/Volcano-WZGAUYGY.js.map +0 -7
  370. package/dist/WSIViewer-RLLL7MAL.js +0 -48562
  371. package/dist/WsiSamplesPlot-FU3TCOTY.js +0 -165
  372. package/dist/adSandbox-ZINST5DE.js +0 -38
  373. package/dist/animatedBubbleChart-PIQWCVBJ.js +0 -555
  374. package/dist/app-N42SVGI2.js +0 -37
  375. package/dist/app-RWN4XLCP.js +0 -49
  376. package/dist/bam-QTSTXJ4N.js +0 -860
  377. package/dist/barchart-27BYTRVI.js +0 -47
  378. package/dist/barchart.data-OUNVH4JU.js +0 -22
  379. package/dist/barchart.events-PY4CEDSO.js +0 -47
  380. package/dist/barchart.integration.spec-H4WGHQ7R.js +0 -2196
  381. package/dist/barchart2-TIOTRAC2.js +0 -314
  382. package/dist/block-YPM767A4.js +0 -6226
  383. package/dist/block-YPM767A4.js.map +0 -7
  384. package/dist/block.init-LRZ3QAGC.js +0 -38
  385. package/dist/block.mds.expressionrank-IV7JLC52.js +0 -359
  386. package/dist/block.mds.geneboxplot-IBCE5XZU.js +0 -828
  387. package/dist/block.mds.junction-ISSCJHNF.js +0 -1545
  388. package/dist/block.mds.svcnv-ZEBVBTL7.js +0 -6801
  389. package/dist/block.svg-FYWA5VYH.js +0 -164
  390. package/dist/block.tk.aicheck-AD6DTKXR.js +0 -283
  391. package/dist/block.tk.ase-LO2J4KRE.js +0 -365
  392. package/dist/block.tk.bam-XGX22FCN.js +0 -1906
  393. package/dist/block.tk.bedgraphdot-SUIRFNFL.js +0 -384
  394. package/dist/block.tk.bigwig.ui-2Q7FAK3V.js +0 -212
  395. package/dist/block.tk.hicstraw-4MVP2PCL.js +0 -823
  396. package/dist/block.tk.junction-F54FTEPB.js +0 -2364
  397. package/dist/block.tk.junction.textmatrixui-ETROZJVK.js +0 -199
  398. package/dist/block.tk.ld-NJEDKSTU.js +0 -99
  399. package/dist/block.tk.menu-LZOY4FKT.js +0 -1029
  400. package/dist/block.tk.pgv-I3XHJ7VU.js +0 -944
  401. package/dist/brainImaging-BGP6VRFV.js +0 -423
  402. package/dist/brainRegions-AAN7LM2Y.js +0 -221
  403. package/dist/bubbleHeatmap-HNEU4CYA.js +0 -383
  404. package/dist/chunk-25XCVML7.js +0 -236
  405. package/dist/chunk-2XV6U42J.js +0 -100
  406. package/dist/chunk-36NAWXQ7.js +0 -5067
  407. package/dist/chunk-36NAWXQ7.js.map +0 -7
  408. package/dist/chunk-3LYZMOLO.js +0 -58
  409. package/dist/chunk-427UL37G.js +0 -222
  410. package/dist/chunk-4C3XRI6J.js +0 -54
  411. package/dist/chunk-4O6H4ZHL.js +0 -514
  412. package/dist/chunk-53JJ7SXN.js +0 -276
  413. package/dist/chunk-5CR24RTX.js +0 -381
  414. package/dist/chunk-5HMX4NUJ.js +0 -217
  415. package/dist/chunk-5QTJUPFS.js +0 -26
  416. package/dist/chunk-5V2BMEAS.js +0 -55
  417. package/dist/chunk-6MBTPVIM.js +0 -1275
  418. package/dist/chunk-6MQWYMPB.js +0 -183
  419. package/dist/chunk-6MQWYMPB.js.map +0 -7
  420. package/dist/chunk-7D3WX34I.js +0 -1230
  421. package/dist/chunk-7D3WX34I.js.map +0 -7
  422. package/dist/chunk-7FSIZZOX.js +0 -176
  423. package/dist/chunk-7KRS7L4U.js +0 -1443
  424. package/dist/chunk-7KRS7L4U.js.map +0 -7
  425. package/dist/chunk-A3URBFXN.js +0 -119
  426. package/dist/chunk-A45KH7LP.js +0 -254
  427. package/dist/chunk-B4GS7OLB.js +0 -4284
  428. package/dist/chunk-BWQV2OBL.js +0 -102
  429. package/dist/chunk-BXGQXLHP.js +0 -2786
  430. package/dist/chunk-CDJAHMAN.js +0 -299
  431. package/dist/chunk-CXHLROWX.js +0 -37
  432. package/dist/chunk-EKKQMKQI.js +0 -102
  433. package/dist/chunk-EPWIJEMK.js +0 -158
  434. package/dist/chunk-F7Y67LK7.js +0 -230
  435. package/dist/chunk-FDBVAL6K.js +0 -14
  436. package/dist/chunk-FISP5YN2.js +0 -292
  437. package/dist/chunk-G3FSS7GR.js +0 -477
  438. package/dist/chunk-GE4NJDV4.js +0 -98
  439. package/dist/chunk-GYGU4UT5.js +0 -34
  440. package/dist/chunk-I5IPJG2R.js +0 -148
  441. package/dist/chunk-I73KUUYG.js +0 -287
  442. package/dist/chunk-I73KUUYG.js.map +0 -7
  443. package/dist/chunk-IFK24IXL.js +0 -194
  444. package/dist/chunk-ILE6ML2D.js +0 -50
  445. package/dist/chunk-IRKP6IZ4.js +0 -216
  446. package/dist/chunk-J6ZOUCWN.js +0 -170
  447. package/dist/chunk-JFRSVFWO.js +0 -736
  448. package/dist/chunk-JFRSVFWO.js.map +0 -7
  449. package/dist/chunk-JNBJG57F.js +0 -448
  450. package/dist/chunk-K5UVG3FQ.js +0 -117
  451. package/dist/chunk-KE5B34CS.js +0 -102
  452. package/dist/chunk-L6A2BEXB.js +0 -2681
  453. package/dist/chunk-LSWU6EAQ.js +0 -31
  454. package/dist/chunk-LWEGSYDD.js +0 -226
  455. package/dist/chunk-LYVLF6HO.js +0 -1825
  456. package/dist/chunk-MBUQ34CF.js +0 -189
  457. package/dist/chunk-MBUQ34CF.js.map +0 -7
  458. package/dist/chunk-MN3KDNHC.js +0 -617
  459. package/dist/chunk-MTHEEXT2.js +0 -1450
  460. package/dist/chunk-MTHEEXT2.js.map +0 -7
  461. package/dist/chunk-MTZSN3H4.js +0 -302
  462. package/dist/chunk-N7O7NPUO.js +0 -534
  463. package/dist/chunk-N7O7NPUO.js.map +0 -7
  464. package/dist/chunk-NNFAUP2I.js +0 -315
  465. package/dist/chunk-NNFAUP2I.js.map +0 -7
  466. package/dist/chunk-OF5FE6GT.js +0 -142
  467. package/dist/chunk-OVSKJROY.js +0 -815
  468. package/dist/chunk-OVSKJROY.js.map +0 -7
  469. package/dist/chunk-PJ3FCJBZ.js +0 -480
  470. package/dist/chunk-PU2Q4SZR.js +0 -2327
  471. package/dist/chunk-PZPS56Z6.js +0 -343
  472. package/dist/chunk-QKR3ZD3S.js +0 -833
  473. package/dist/chunk-QMXCK4Y5.js +0 -203
  474. package/dist/chunk-ROJ3LJLE.js +0 -448
  475. package/dist/chunk-SLHWUFAW.js +0 -1943
  476. package/dist/chunk-SLHWUFAW.js.map +0 -7
  477. package/dist/chunk-U3G4JGKJ.js +0 -54
  478. package/dist/chunk-VDZ5QOF6.js +0 -446
  479. package/dist/chunk-VO5XZ2EG.js +0 -129
  480. package/dist/chunk-VRH7NP6R.js +0 -263
  481. package/dist/chunk-VTMJGRT5.js +0 -272
  482. package/dist/chunk-W5X6C7LY.js +0 -399
  483. package/dist/chunk-WJGUNGFK.js +0 -272
  484. package/dist/chunk-WKT46ZJ6.js +0 -368
  485. package/dist/chunk-WQCQWUUP.js +0 -2833
  486. package/dist/chunk-WY2PGUVX.js +0 -20898
  487. package/dist/chunk-WY2PGUVX.js.map +0 -7
  488. package/dist/chunk-WZ2U5QXJ.js +0 -6364
  489. package/dist/chunk-WZUWK5Q6.js +0 -1102
  490. package/dist/chunk-XPMTUVSS.js +0 -1220
  491. package/dist/chunk-XPMTUVSS.js.map +0 -7
  492. package/dist/chunk-YYFQPGIE.js +0 -386
  493. package/dist/condition-GVIEMQG7.js +0 -332
  494. package/dist/controls-73K3XBDR.js +0 -41
  495. package/dist/controls.config-FQKY2LRE.js +0 -39
  496. package/dist/correlation-AOAXIUFJ.js +0 -102
  497. package/dist/cuminc-OD2PPCEK.js +0 -1149
  498. package/dist/cuminc.integration.spec-TMIFW7EO.js +0 -678
  499. package/dist/cuminc.integration.spec-TMIFW7EO.js.map +0 -7
  500. package/dist/customdata.inputui-SWLGLATL.js +0 -289
  501. package/dist/dataDownload-456HL2OE.js +0 -330
  502. package/dist/dataDownload.integration.spec-5YS4MWK5.js +0 -193
  503. package/dist/databrowser.ui-7APC5MNM.js +0 -433
  504. package/dist/dictionary-A3HA5MVK.js +0 -118
  505. package/dist/dnaMethylation-6ONBKARD.js +0 -38
  506. package/dist/dnaMethylation.integration.spec-T3WEGVX3.js +0 -203
  507. package/dist/dofetch-RVPQUMVX.js +0 -51
  508. package/dist/e2pca-75WZ46XG.js +0 -350
  509. package/dist/ep-QG5CWPTW.js +0 -1256
  510. package/dist/expclust.gdc.spec-KBBQJR4M.js +0 -307
  511. package/dist/facet-QGB2Q7YV.js +0 -521
  512. package/dist/forms2-CJGDCWYH.js +0 -539
  513. package/dist/gb-NEFAHKQI.js +0 -88
  514. package/dist/geneExpClustering-ZVR44UZC.js +0 -249
  515. package/dist/geneExpression-25EX4DFK.js +0 -313
  516. package/dist/geneExpression-FALOA4GC.js +0 -38
  517. package/dist/geneExpression.unit.spec-BQLELQUS.js +0 -102
  518. package/dist/geneORA-K2B7JYWD.js +0 -278
  519. package/dist/geneRanking-6AXL5ZJS.js +0 -553
  520. package/dist/geneVariant-RZFDP5J5.js +0 -41
  521. package/dist/geneVariant-UIBZ5UIQ.js +0 -39
  522. package/dist/geneVariant.integration.spec-4EZQMPQB.js +0 -198
  523. package/dist/genefusion.ui-YK4TNS2P.js +0 -309
  524. package/dist/geneset-47J4D5ID.js +0 -208
  525. package/dist/genomeBrowser.spec-LFFWRIWG.js +0 -281
  526. package/dist/grin2-DQB2WW3C.js +0 -75
  527. package/dist/grin2-TZFU4JM3.js +0 -1078
  528. package/dist/grin2-TZFU4JM3.js.map +0 -7
  529. package/dist/gsea-KKLAMLMG.js +0 -47
  530. package/dist/hierCluster-3MZEJG6B.js +0 -59
  531. package/dist/hierCluster-YGBC4XCZ.js +0 -63
  532. package/dist/hierCluster.config-A4N54K3A.js +0 -40
  533. package/dist/hierCluster.integration.spec-GLKXFZDM.js +0 -488
  534. package/dist/hierCluster.interactivity-4TPWGIVC.js +0 -54
  535. package/dist/hierCluster.renderers-WUWSXXHU.js +0 -21
  536. package/dist/imagePlot-JRPYOV3Q.js +0 -163
  537. package/dist/importPlot-A3PFUP6K.js +0 -8
  538. package/dist/isoformExpression-5L4O3WKL.js +0 -40
  539. package/dist/isoformExpression.unit.spec-SLB6XIX4.js +0 -208
  540. package/dist/launch.adhoc-QI7TPYSC.js +0 -42
  541. package/dist/leftlabel.sample-OSIRTJFW.js +0 -264
  542. package/dist/lollipop-LAELXNQY.js +0 -171
  543. package/dist/maf-HZAYVZFO.js +0 -459
  544. package/dist/maftimeline-BLBNUGAL.js +0 -593
  545. package/dist/matrix-LVJSHXDM.js +0 -58
  546. package/dist/matrix-S5QQV4JU.js +0 -63
  547. package/dist/matrix.cells-JUTRYPG4.js +0 -28
  548. package/dist/matrix.config-ZTWWYNIZ.js +0 -41
  549. package/dist/matrix.data-BREYB54F.js +0 -25
  550. package/dist/matrix.groups-WMHTLOXC.js +0 -27
  551. package/dist/matrix.integration.spec-S6FIEE2X.js +0 -3072
  552. package/dist/matrix.integration.spec-S6FIEE2X.js.map +0 -7
  553. package/dist/matrix.interactivity-TMBVAM5M.js +0 -42
  554. package/dist/matrix.layout-POK5NOUV.js +0 -44
  555. package/dist/matrix.legend-6XVQ67AC.js +0 -22
  556. package/dist/matrix.renderers-G5FQZZ73.js +0 -38
  557. package/dist/matrix.serieses-XNLQSQS6.js +0 -21
  558. package/dist/matrix.sort-XNES23OQ.js +0 -27
  559. package/dist/matrix.sort.unit.spec-65BDBQUV.js +0 -472
  560. package/dist/matrix.sorterUi-WC2YX7S7.js +0 -18
  561. package/dist/matrix.sorterUi.unit.spec-GZQBW7F7.js +0 -342
  562. package/dist/mavb-T2UCRWWM.js +0 -732
  563. package/dist/mds.fimo-65UUK7ER.js +0 -518
  564. package/dist/mds.samplescatterplot-4NHGQBJF.js +0 -1550
  565. package/dist/mds.survivalplot-WVAHDM3Z.js +0 -483
  566. package/dist/numericDictTermCluster-CXASCSQ6.js +0 -65
  567. package/dist/oncomatrix-5WMOICWR.js +0 -295
  568. package/dist/oncomatrix.spec-POVBNFJR.js +0 -448
  569. package/dist/plot.2dvaf-63K5RSIU.js +0 -377
  570. package/dist/plot.app-V5IY25QS.js +0 -41
  571. package/dist/plot.barplot-IQTYHNFE.js +0 -102
  572. package/dist/plot.boxplot-2RMTO7AS.js +0 -152
  573. package/dist/plot.brainImaging-DLUHAHHG.js +0 -51
  574. package/dist/plot.disco-WK6GDLNF.js +0 -102
  575. package/dist/plot.dzi-3V3FWE7U.js +0 -33
  576. package/dist/plot.ssgq-TENK2RP4.js +0 -139
  577. package/dist/plot.vaf2cov-P2QOOZGZ.js +0 -259
  578. package/dist/plot.wsi-BVRGJF4E.js +0 -36
  579. package/dist/polar2-NNOZOQQJ.js +0 -231
  580. package/dist/profileForms-RS4GEZZV.js +0 -446
  581. package/dist/profilePlot-3DLME3NH.js +0 -54
  582. package/dist/proteinView-NPKJAQAI.js +0 -1568
  583. package/dist/qualitative-S45RXXRJ.js +0 -43
  584. package/dist/radar2-EX7YBNMT.js +0 -326
  585. package/dist/radarFacility2-WU5O6O77.js +0 -334
  586. package/dist/regression-7MCOYJVD.js +0 -56
  587. package/dist/regression.inputs-QHSWJ23R.js +0 -48
  588. package/dist/regression.inputs.term-EJ4Z5Q5O.js +0 -48
  589. package/dist/regression.inputs.values.table-YKMAWNXN.js +0 -45
  590. package/dist/regression.integration.spec-XOX7OXXA.js +0 -784
  591. package/dist/regression.results-YKPOTPCC.js +0 -40
  592. package/dist/regression.spec-YIIY2AZA.js +0 -708
  593. package/dist/report-JEJFCWUU.js +0 -222
  594. package/dist/sampleScatter.spec-LBAZBDYA.js +0 -202
  595. package/dist/sampleView-WKZT5ZFE.js +0 -48
  596. package/dist/samplelst-HXM3H6M4.js +0 -111
  597. package/dist/samplematrix-LCGHK2EK.js +0 -2198
  598. package/dist/sc-3OE2G4BU.js +0 -86
  599. package/dist/scatter-AGVUDTTU.js +0 -851
  600. package/dist/selectGenomeWithTklst-WF2XZ6GH.js +0 -134
  601. package/dist/singleCellCellType-2SRGROMS.js +0 -38
  602. package/dist/singleCellCellType.unit.spec-DCGHNRJI.js +0 -160
  603. package/dist/singleCellGeneExpression-RASZA4NO.js +0 -38
  604. package/dist/singleCellGeneExpression.unit.spec-5MRGH2OO.js +0 -153
  605. package/dist/singleCellPlot-TIYA3GNM.js +0 -54
  606. package/dist/singlecell-CFA43TTU.js +0 -1572
  607. package/dist/singlecell-JS5SIZHY.js +0 -86
  608. package/dist/snp-VXZXPMKS.js +0 -38
  609. package/dist/snp.unit.spec-TR5TCO7X.js +0 -176
  610. package/dist/snplocus-VLPH5Y65.js +0 -208
  611. package/dist/spliceevent.a53ss.diagram-PATK67SH.js +0 -151
  612. package/dist/spliceevent.exonskip.diagram-7B3SEOAJ.js +0 -277
  613. package/dist/spliceevent.noeventdiagram-4NPNZUEN.js +0 -460
  614. package/dist/ssGSEA-XMW5BLAU.js +0 -38
  615. package/dist/ssGSEA.unit.spec-ASUWKVUT.js +0 -88
  616. package/dist/summarizeCnvGeneexp-KWRFGX32.js +0 -163
  617. package/dist/summarizeGeneexpSurvival-FIPIMEJR.js +0 -114
  618. package/dist/summarizeMutationCnv-IUYRVLZG.js +0 -164
  619. package/dist/summarizeMutationDiagnosis-ZFJPCABL.js +0 -40
  620. package/dist/summarizeMutationSurvival-HFHYB7DT.js +0 -99
  621. package/dist/summary-AZUNEZ5I.js +0 -49
  622. package/dist/summary.integration.spec-WLBAJL44.js +0 -414
  623. package/dist/summaryInput-NJWVXDXW.js +0 -235
  624. package/dist/sunburst-PXGF4WM6.js +0 -284
  625. package/dist/survival-RAU4XCKG.js +0 -58
  626. package/dist/survival-ZZ4QLZHK.js +0 -46
  627. package/dist/survival.integration.spec-GBQ5X362.js +0 -915
  628. package/dist/survival.integration.spec-GBQ5X362.js.map +0 -7
  629. package/dist/svgraph-7UCFRL6A.js +0 -1387
  630. package/dist/svmr-DB3RY2ID.js +0 -3842
  631. package/dist/table-HJRWWXGM.js +0 -200
  632. package/dist/termCollection-AW7M6DTP.js +0 -38
  633. package/dist/termCollection-WPON7RG3.js +0 -179
  634. package/dist/termCollection.unit.spec-254ESHOE.js +0 -208
  635. package/dist/tk-SUAFM5YA.js +0 -46
  636. package/dist/tp.ui-ELEQGSK2.js +0 -1459
  637. package/dist/tvs.dt-DCXY66YY.js +0 -39
  638. package/dist/tvs.dtcnv.categorical-SFQZMYX7.js +0 -40
  639. package/dist/tvs.dtcnv.continuous-AUZNJMC3.js +0 -72
  640. package/dist/tvs.dtfusion-5F7MYFHZ.js +0 -40
  641. package/dist/tvs.dtsnvindel-JJSPL4PH.js +0 -40
  642. package/dist/tvs.dtsv-DARTSV5H.js +0 -40
  643. package/dist/tvs.samplelst-HHBIO26C.js +0 -104
  644. package/dist/tvs.termCollection-KCMALH6B.js +0 -159
  645. package/dist/violin-C26FW5WK.js +0 -46
  646. package/dist/violin.integration.spec-QQ43XWHQ.js +0 -1425
  647. package/dist/violin.interactivity-H2BHC6M4.js +0 -38
  648. package/dist/violin.renderer-GSG2I7AV.js +0 -40
  649. package/dist/vocabulary-3G525O5V.js +0 -41
  650. package/dist/vocabulary-3G525O5V.js.map +0 -7
  651. /package/dist/{2dmaf-SKNV7IHT.js.map → 2dmaf-HV22W5N3.js.map} +0 -0
  652. /package/dist/{AIProjectAdmin-AOTVRBNH.js.map → AIProjectAdmin-7QGTPN3B.js.map} +0 -0
  653. /package/dist/{AppHeader-M2ZSS3M3.js.map → AppHeader-NOKET4YE.js.map} +0 -0
  654. /package/dist/{BoxPlot-P3EECSQA.js.map → BoxPlot-SPG66F4C.js.map} +0 -0
  655. /package/dist/{CorrelationVolcano-YCQ5S6MT.js.map → CorrelationVolcano-3LEMTFXP.js.map} +0 -0
  656. /package/dist/{DE-RBMOQZCR.js.map → DE-WCCADMXA.js.map} +0 -0
  657. /package/dist/{DEinput-PTW6RS6U.js.map → DEinput-IZNPYPKH.js.map} +0 -0
  658. /package/dist/{Disco-GUKDAHUY.js.map → Disco-M5RNUOWG.js.map} +0 -0
  659. /package/dist/{Disco.UI-YBIMV7RH.js.map → Disco.UI-RVUOPT6Y.js.map} +0 -0
  660. /package/dist/{DmrPlot-JQPLLU6P.js.map → DmrPlot-R2N534FS.js.map} +0 -0
  661. /package/dist/{GeneExpInput-3OPDDCXR.js.map → GeneExpInput-VWCPHOVO.js.map} +0 -0
  662. /package/dist/{HicApp-VFOWRP6G.js.map → HicApp-F2MY3NXP.js.map} +0 -0
  663. /package/dist/{NumBinaryEditor-RL44SO3T.js.map → NumBinaryEditor-AL2NWII2.js.map} +0 -0
  664. /package/dist/{NumBinaryEditor.unit.spec-P73PGAX5.js.map → NumBinaryEditor.unit.spec-NFRJHFNX.js.map} +0 -0
  665. /package/dist/{NumContEditor-MIC7M73G.js.map → NumContEditor-CTFJVIHU.js.map} +0 -0
  666. /package/dist/{NumContEditor.unit.spec-5XZH7OCG.js.map → NumContEditor.unit.spec-FXGGCMTD.js.map} +0 -0
  667. /package/dist/{NumCustomBinEditor-W357XTIR.js.map → NumCustomBinEditor-JFIJ2X6E.js.map} +0 -0
  668. /package/dist/{NumCustomBinEditor.unit.spec-CJMK4CYW.js.map → NumCustomBinEditor.unit.spec-ZKIZXS53.js.map} +0 -0
  669. /package/dist/{NumDiscreteEditor-PRSUMS3I.js.map → NumDiscreteEditor-E7SPHF55.js.map} +0 -0
  670. /package/dist/{NumDiscreteEditor.unit.spec-A6R56P3Z.js.map → NumDiscreteEditor.unit.spec-QKKRZJMU.js.map} +0 -0
  671. /package/dist/{NumRegularBinEditor-7OHUEUCC.js.map → NumRegularBinEditor-JSLTZIAQ.js.map} +0 -0
  672. /package/dist/{NumRegularBinEditor.unit.spec-NOAX42UZ.js.map → NumRegularBinEditor.unit.spec-W73BA6L4.js.map} +0 -0
  673. /package/dist/{NumSplineEditor-XI7AT5LM.js.map → NumSplineEditor-ZEXYGKKF.js.map} +0 -0
  674. /package/dist/{NumSplineEditor.unit.spec-ZH4M2N2C.js.map → NumSplineEditor.unit.spec-EHKI4CY7.js.map} +0 -0
  675. /package/dist/{NumericDensity-X6IHQAW3.js.map → NumericDensity-ZXM6TB33.js.map} +0 -0
  676. /package/dist/{NumericDensity.unit.spec-EKVD4AUG.js.map → NumericDensity.unit.spec-PUFRE5XA.js.map} +0 -0
  677. /package/dist/{NumericHandler-5ONBWFJ5.js.map → NumericHandler-73TUDM3R.js.map} +0 -0
  678. /package/dist/{NumericHandler.unit.spec-SHI6E4VA.js.map → NumericHandler.unit.spec-EITBD47U.js.map} +0 -0
  679. /package/dist/{RunChart2-Y6IY6MW2.js.map → RunChart2-4JYV2Z7B.js.map} +0 -0
  680. /package/dist/{WSIViewer-RLLL7MAL.js.map → WSIViewer-DQAXX7QJ.js.map} +0 -0
  681. /package/dist/{WsiSamplesPlot-FU3TCOTY.js.map → WsiSamplesPlot-AGOLPLK3.js.map} +0 -0
  682. /package/dist/{adSandbox-ZINST5DE.js.map → adSandbox-ZE5QOTN5.js.map} +0 -0
  683. /package/dist/{animatedBubbleChart-PIQWCVBJ.js.map → animatedBubbleChart-ILMDNAVK.js.map} +0 -0
  684. /package/dist/{app-N42SVGI2.js.map → app-JBFRJ5OO.js.map} +0 -0
  685. /package/dist/{app-RWN4XLCP.js.map → app-YVNRAZWU.js.map} +0 -0
  686. /package/dist/{bam-QTSTXJ4N.js.map → bam-A2PVAF3J.js.map} +0 -0
  687. /package/dist/{barchart-27BYTRVI.js.map → barchart-2XQ7F6LT.js.map} +0 -0
  688. /package/dist/{barchart.data-OUNVH4JU.js.map → barchart.data-6XLK7D63.js.map} +0 -0
  689. /package/dist/{barchart.events-PY4CEDSO.js.map → barchart.events-DKJDKSPN.js.map} +0 -0
  690. /package/dist/{barchart.integration.spec-H4WGHQ7R.js.map → barchart.integration.spec-UTTCQJRL.js.map} +0 -0
  691. /package/dist/{barchart2-TIOTRAC2.js.map → barchart2-2FRVUVJG.js.map} +0 -0
  692. /package/dist/{block.init-LRZ3QAGC.js.map → block.init-3KLLFGGV.js.map} +0 -0
  693. /package/dist/{block.mds.expressionrank-IV7JLC52.js.map → block.mds.expressionrank-XU3MBIOX.js.map} +0 -0
  694. /package/dist/{block.mds.geneboxplot-IBCE5XZU.js.map → block.mds.geneboxplot-VQTBL7T4.js.map} +0 -0
  695. /package/dist/{block.mds.junction-ISSCJHNF.js.map → block.mds.junction-IYWWRIJD.js.map} +0 -0
  696. /package/dist/{block.mds.svcnv-ZEBVBTL7.js.map → block.mds.svcnv-BMY5DCAM.js.map} +0 -0
  697. /package/dist/{block.svg-FYWA5VYH.js.map → block.svg-AT4GYQHX.js.map} +0 -0
  698. /package/dist/{block.tk.aicheck-AD6DTKXR.js.map → block.tk.aicheck-RANOFGDZ.js.map} +0 -0
  699. /package/dist/{block.tk.ase-LO2J4KRE.js.map → block.tk.ase-CBWJA3RN.js.map} +0 -0
  700. /package/dist/{block.tk.bam-XGX22FCN.js.map → block.tk.bam-D7JBRNFQ.js.map} +0 -0
  701. /package/dist/{block.tk.bedgraphdot-SUIRFNFL.js.map → block.tk.bedgraphdot-IEHNIGVI.js.map} +0 -0
  702. /package/dist/{block.tk.bigwig.ui-2Q7FAK3V.js.map → block.tk.bigwig.ui-3SAXUJU4.js.map} +0 -0
  703. /package/dist/{block.tk.hicstraw-4MVP2PCL.js.map → block.tk.hicstraw-R5EHQFGM.js.map} +0 -0
  704. /package/dist/{block.tk.junction-F54FTEPB.js.map → block.tk.junction-JFCEXZZC.js.map} +0 -0
  705. /package/dist/{block.tk.junction.textmatrixui-ETROZJVK.js.map → block.tk.junction.textmatrixui-4V7MV6TD.js.map} +0 -0
  706. /package/dist/{block.tk.ld-NJEDKSTU.js.map → block.tk.ld-LP4DIHAJ.js.map} +0 -0
  707. /package/dist/{block.tk.menu-LZOY4FKT.js.map → block.tk.menu-FTVZU2HA.js.map} +0 -0
  708. /package/dist/{block.tk.pgv-I3XHJ7VU.js.map → block.tk.pgv-CRAMVKU4.js.map} +0 -0
  709. /package/dist/{brainImaging-BGP6VRFV.js.map → brainImaging-DXLK5XZ6.js.map} +0 -0
  710. /package/dist/{brainRegions-AAN7LM2Y.js.map → brainRegions-AMSXQT3T.js.map} +0 -0
  711. /package/dist/{bubbleHeatmap-HNEU4CYA.js.map → bubbleHeatmap-SXBARILL.js.map} +0 -0
  712. /package/dist/{chunk-53JJ7SXN.js.map → chunk-2AHDWWQO.js.map} +0 -0
  713. /package/dist/{chunk-CDJAHMAN.js.map → chunk-2OJ577BB.js.map} +0 -0
  714. /package/dist/{chunk-5QTJUPFS.js.map → chunk-433DTQ6C.js.map} +0 -0
  715. /package/dist/{chunk-MN3KDNHC.js.map → chunk-46CPDZSW.js.map} +0 -0
  716. /package/dist/{chunk-GE4NJDV4.js.map → chunk-47EYZQA7.js.map} +0 -0
  717. /package/dist/{chunk-PU2Q4SZR.js.map → chunk-4M22UIJQ.js.map} +0 -0
  718. /package/dist/{chunk-IFK24IXL.js.map → chunk-4YDERN37.js.map} +0 -0
  719. /package/dist/{chunk-LYVLF6HO.js.map → chunk-5ERYRSVV.js.map} +0 -0
  720. /package/dist/{chunk-F7Y67LK7.js.map → chunk-6W6UMGAV.js.map} +0 -0
  721. /package/dist/{chunk-U3G4JGKJ.js.map → chunk-6Z4XHMZV.js.map} +0 -0
  722. /package/dist/{chunk-JNBJG57F.js.map → chunk-7YWPWCHD.js.map} +0 -0
  723. /package/dist/{chunk-EKKQMKQI.js.map → chunk-AC3RAKUI.js.map} +0 -0
  724. /package/dist/{chunk-5HMX4NUJ.js.map → chunk-BSOB3BVG.js.map} +0 -0
  725. /package/dist/{chunk-A45KH7LP.js.map → chunk-CJJA6RVM.js.map} +0 -0
  726. /package/dist/{chunk-WZUWK5Q6.js.map → chunk-CUXOQIUA.js.map} +0 -0
  727. /package/dist/{chunk-IRKP6IZ4.js.map → chunk-D5ZYSW45.js.map} +0 -0
  728. /package/dist/{chunk-J6ZOUCWN.js.map → chunk-DA6RR5IR.js.map} +0 -0
  729. /package/dist/{chunk-MTZSN3H4.js.map → chunk-DD6KDZVR.js.map} +0 -0
  730. /package/dist/{chunk-4C3XRI6J.js.map → chunk-DI5ULDWN.js.map} +0 -0
  731. /package/dist/{chunk-VDZ5QOF6.js.map → chunk-DXM5IMGV.js.map} +0 -0
  732. /package/dist/{chunk-7FSIZZOX.js.map → chunk-GFETCJ7S.js.map} +0 -0
  733. /package/dist/{chunk-FISP5YN2.js.map → chunk-HCNF7EFT.js.map} +0 -0
  734. /package/dist/{chunk-LSWU6EAQ.js.map → chunk-I62GOCNI.js.map} +0 -0
  735. /package/dist/{chunk-WQCQWUUP.js.map → chunk-IBYOP2FV.js.map} +0 -0
  736. /package/dist/{chunk-L6A2BEXB.js.map → chunk-JD2ECQ3Z.js.map} +0 -0
  737. /package/dist/{chunk-25XCVML7.js.map → chunk-JF47NF5G.js.map} +0 -0
  738. /package/dist/{chunk-427UL37G.js.map → chunk-JOA4KJTM.js.map} +0 -0
  739. /package/dist/{chunk-CXHLROWX.js.map → chunk-K6AW4GFM.js.map} +0 -0
  740. /package/dist/{chunk-2XV6U42J.js.map → chunk-KOLVLBMI.js.map} +0 -0
  741. /package/dist/{chunk-ROJ3LJLE.js.map → chunk-KQ6EF3FG.js.map} +0 -0
  742. /package/dist/{chunk-VO5XZ2EG.js.map → chunk-LBWKMNVU.js.map} +0 -0
  743. /package/dist/{chunk-5V2BMEAS.js.map → chunk-LFGIMCUD.js.map} +0 -0
  744. /package/dist/{chunk-PZPS56Z6.js.map → chunk-LKB3DITY.js.map} +0 -0
  745. /package/dist/{chunk-LWEGSYDD.js.map → chunk-MCXQL4W2.js.map} +0 -0
  746. /package/dist/{chunk-QKR3ZD3S.js.map → chunk-MLYSQG3C.js.map} +0 -0
  747. /package/dist/{chunk-VTMJGRT5.js.map → chunk-MYZJUT2H.js.map} +0 -0
  748. /package/dist/{chunk-BXGQXLHP.js.map → chunk-NVRLD4TF.js.map} +0 -0
  749. /package/dist/{chunk-FDBVAL6K.js.map → chunk-NZCX4A7X.js.map} +0 -0
  750. /package/dist/{chunk-BWQV2OBL.js.map → chunk-OVHCUTQM.js.map} +0 -0
  751. /package/dist/{chunk-GYGU4UT5.js.map → chunk-P3NKHTNT.js.map} +0 -0
  752. /package/dist/{chunk-G3FSS7GR.js.map → chunk-PFOCEOVT.js.map} +0 -0
  753. /package/dist/{chunk-EPWIJEMK.js.map → chunk-PJSOYF5U.js.map} +0 -0
  754. /package/dist/{chunk-WJGUNGFK.js.map → chunk-PK5HXJ3S.js.map} +0 -0
  755. /package/dist/{chunk-W5X6C7LY.js.map → chunk-QAVZUWY3.js.map} +0 -0
  756. /package/dist/{chunk-I5IPJG2R.js.map → chunk-QOAUM6UV.js.map} +0 -0
  757. /package/dist/{chunk-B4GS7OLB.js.map → chunk-QXPJLSAD.js.map} +0 -0
  758. /package/dist/{chunk-ILE6ML2D.js.map → chunk-QZLP27O6.js.map} +0 -0
  759. /package/dist/{chunk-QMXCK4Y5.js.map → chunk-SENZWOCC.js.map} +0 -0
  760. /package/dist/{chunk-4O6H4ZHL.js.map → chunk-SFIX7XVT.js.map} +0 -0
  761. /package/dist/{chunk-K5UVG3FQ.js.map → chunk-SJWAMUL5.js.map} +0 -0
  762. /package/dist/{chunk-WZ2U5QXJ.js.map → chunk-U3CMLIGB.js.map} +0 -0
  763. /package/dist/{chunk-5CR24RTX.js.map → chunk-UF6ZP6UR.js.map} +0 -0
  764. /package/dist/{chunk-6MBTPVIM.js.map → chunk-UVWUP6N7.js.map} +0 -0
  765. /package/dist/{chunk-OF5FE6GT.js.map → chunk-UYEJ5DEZ.js.map} +0 -0
  766. /package/dist/{chunk-A3URBFXN.js.map → chunk-V2ET64EJ.js.map} +0 -0
  767. /package/dist/{chunk-KE5B34CS.js.map → chunk-WQEGWR63.js.map} +0 -0
  768. /package/dist/{chunk-3LYZMOLO.js.map → chunk-WYSEBR5S.js.map} +0 -0
  769. /package/dist/{chunk-YYFQPGIE.js.map → chunk-XB6F5OUB.js.map} +0 -0
  770. /package/dist/{chunk-WKT46ZJ6.js.map → chunk-XVYSEXFV.js.map} +0 -0
  771. /package/dist/{chunk-PJ3FCJBZ.js.map → chunk-YGKVY5IU.js.map} +0 -0
  772. /package/dist/{chunk-VRH7NP6R.js.map → chunk-ZPXSPJV2.js.map} +0 -0
  773. /package/dist/{condition-GVIEMQG7.js.map → condition-YCPNILTV.js.map} +0 -0
  774. /package/dist/{controls-73K3XBDR.js.map → controls-RW5MWSLN.js.map} +0 -0
  775. /package/dist/{controls.config-FQKY2LRE.js.map → controls.config-MP3CSYR4.js.map} +0 -0
  776. /package/dist/{correlation-AOAXIUFJ.js.map → correlation-7AQRU4YR.js.map} +0 -0
  777. /package/dist/{cuminc-OD2PPCEK.js.map → cuminc-WYLKIOXR.js.map} +0 -0
  778. /package/dist/{customdata.inputui-SWLGLATL.js.map → customdata.inputui-YU4IQJOV.js.map} +0 -0
  779. /package/dist/{dataDownload-456HL2OE.js.map → dataDownload-72DIPZ45.js.map} +0 -0
  780. /package/dist/{dataDownload.integration.spec-5YS4MWK5.js.map → dataDownload.integration.spec-HRLMWQN7.js.map} +0 -0
  781. /package/dist/{databrowser.ui-7APC5MNM.js.map → databrowser.ui-3PE25HK4.js.map} +0 -0
  782. /package/dist/{dictionary-A3HA5MVK.js.map → dictionary-Y3ICL4AE.js.map} +0 -0
  783. /package/dist/{dnaMethylation-6ONBKARD.js.map → dnaMethylation-SVGDW64U.js.map} +0 -0
  784. /package/dist/{dnaMethylation.integration.spec-T3WEGVX3.js.map → dnaMethylation.integration.spec-B7GLAFZI.js.map} +0 -0
  785. /package/dist/{dofetch-RVPQUMVX.js.map → dofetch-42KOXNPF.js.map} +0 -0
  786. /package/dist/{e2pca-75WZ46XG.js.map → e2pca-CLFGEFJH.js.map} +0 -0
  787. /package/dist/{ep-QG5CWPTW.js.map → ep-PUHV2DMO.js.map} +0 -0
  788. /package/dist/{expclust.gdc.spec-KBBQJR4M.js.map → expclust.gdc.spec-N7YDJAOZ.js.map} +0 -0
  789. /package/dist/{facet-QGB2Q7YV.js.map → facet-JFFJJCNT.js.map} +0 -0
  790. /package/dist/{forms2-CJGDCWYH.js.map → forms2-XZAWW3RN.js.map} +0 -0
  791. /package/dist/{gb-NEFAHKQI.js.map → gb-SQJ5PWOH.js.map} +0 -0
  792. /package/dist/{geneExpClustering-ZVR44UZC.js.map → geneExpClustering-EG2BLMQX.js.map} +0 -0
  793. /package/dist/{geneExpression-FALOA4GC.js.map → geneExpression-J42BGP3B.js.map} +0 -0
  794. /package/dist/{geneExpression-25EX4DFK.js.map → geneExpression-QRK3LNMV.js.map} +0 -0
  795. /package/dist/{geneExpression.unit.spec-BQLELQUS.js.map → geneExpression.unit.spec-X7HVIFZA.js.map} +0 -0
  796. /package/dist/{geneORA-K2B7JYWD.js.map → geneORA-SVBPO66K.js.map} +0 -0
  797. /package/dist/{geneRanking-6AXL5ZJS.js.map → geneRanking-HNMMLZIX.js.map} +0 -0
  798. /package/dist/{geneVariant-RZFDP5J5.js.map → geneVariant-RVQKNVQO.js.map} +0 -0
  799. /package/dist/{geneVariant-UIBZ5UIQ.js.map → geneVariant-SO5FEJUZ.js.map} +0 -0
  800. /package/dist/{geneVariant.integration.spec-4EZQMPQB.js.map → geneVariant.integration.spec-DOMX4GMP.js.map} +0 -0
  801. /package/dist/{genefusion.ui-YK4TNS2P.js.map → genefusion.ui-QS7AG46F.js.map} +0 -0
  802. /package/dist/{geneset-47J4D5ID.js.map → geneset-JKOX3VIW.js.map} +0 -0
  803. /package/dist/{genomeBrowser.spec-LFFWRIWG.js.map → genomeBrowser.spec-IRSTT2OX.js.map} +0 -0
  804. /package/dist/{grin2-DQB2WW3C.js.map → grin2-VZLCISPM.js.map} +0 -0
  805. /package/dist/{gsea-KKLAMLMG.js.map → hierCluster-6AW23EB5.js.map} +0 -0
  806. /package/dist/{hierCluster-3MZEJG6B.js.map → hierCluster-REXTCODR.js.map} +0 -0
  807. /package/dist/{hierCluster-YGBC4XCZ.js.map → hierCluster.config-3Z3R66XH.js.map} +0 -0
  808. /package/dist/{hierCluster.integration.spec-GLKXFZDM.js.map → hierCluster.integration.spec-XE47Q64Z.js.map} +0 -0
  809. /package/dist/{hierCluster.config-A4N54K3A.js.map → hierCluster.interactivity-2YJYYKVK.js.map} +0 -0
  810. /package/dist/{hierCluster.interactivity-4TPWGIVC.js.map → hierCluster.renderers-LE7W2AL6.js.map} +0 -0
  811. /package/dist/{imagePlot-JRPYOV3Q.js.map → imagePlot-WMZJJ5CJ.js.map} +0 -0
  812. /package/dist/{hierCluster.renderers-WUWSXXHU.js.map → importPlot-P35EGIJJ.js.map} +0 -0
  813. /package/dist/{importPlot-A3PFUP6K.js.map → isoformExpression-3TFPEXB4.js.map} +0 -0
  814. /package/dist/{isoformExpression.unit.spec-SLB6XIX4.js.map → isoformExpression.unit.spec-SPQFK3EA.js.map} +0 -0
  815. /package/dist/{isoformExpression-5L4O3WKL.js.map → launch.adhoc-ZQSJBLMJ.js.map} +0 -0
  816. /package/dist/{leftlabel.sample-OSIRTJFW.js.map → leftlabel.sample-SJRQ6LJ2.js.map} +0 -0
  817. /package/dist/{lollipop-LAELXNQY.js.map → lollipop-RXM6UBZ7.js.map} +0 -0
  818. /package/dist/{maf-HZAYVZFO.js.map → maf-NWXJWBNF.js.map} +0 -0
  819. /package/dist/{maftimeline-BLBNUGAL.js.map → maftimeline-D7UENAP5.js.map} +0 -0
  820. /package/dist/{launch.adhoc-QI7TPYSC.js.map → matrix-77LNADX2.js.map} +0 -0
  821. /package/dist/{matrix-LVJSHXDM.js.map → matrix-YDOLKY6G.js.map} +0 -0
  822. /package/dist/{matrix-S5QQV4JU.js.map → matrix.cells-VEC5LEWV.js.map} +0 -0
  823. /package/dist/{matrix.cells-JUTRYPG4.js.map → matrix.config-GTAAAUGQ.js.map} +0 -0
  824. /package/dist/{matrix.config-ZTWWYNIZ.js.map → matrix.data-T4GEX6ZH.js.map} +0 -0
  825. /package/dist/{matrix.data-BREYB54F.js.map → matrix.groups-7NWHHP5Q.js.map} +0 -0
  826. /package/dist/{matrix.groups-WMHTLOXC.js.map → matrix.interactivity-ONT6WCRU.js.map} +0 -0
  827. /package/dist/{matrix.interactivity-TMBVAM5M.js.map → matrix.layout-LDXHGOHF.js.map} +0 -0
  828. /package/dist/{matrix.layout-POK5NOUV.js.map → matrix.legend-5MDW65HV.js.map} +0 -0
  829. /package/dist/{matrix.legend-6XVQ67AC.js.map → matrix.renderers-OEPLQG3C.js.map} +0 -0
  830. /package/dist/{matrix.renderers-G5FQZZ73.js.map → matrix.serieses-4RX7TUQ7.js.map} +0 -0
  831. /package/dist/{matrix.serieses-XNLQSQS6.js.map → matrix.sort-UKMMECBZ.js.map} +0 -0
  832. /package/dist/{matrix.sort.unit.spec-65BDBQUV.js.map → matrix.sort.unit.spec-VWOXPVRE.js.map} +0 -0
  833. /package/dist/{matrix.sort-XNES23OQ.js.map → matrix.sorterUi-H64DDQIL.js.map} +0 -0
  834. /package/dist/{matrix.sorterUi.unit.spec-GZQBW7F7.js.map → matrix.sorterUi.unit.spec-DH4434FK.js.map} +0 -0
  835. /package/dist/{mavb-T2UCRWWM.js.map → mavb-ARUWOZES.js.map} +0 -0
  836. /package/dist/{mds.fimo-65UUK7ER.js.map → mds.fimo-ZEAE5BC3.js.map} +0 -0
  837. /package/dist/{mds.samplescatterplot-4NHGQBJF.js.map → mds.samplescatterplot-C5EBKBVF.js.map} +0 -0
  838. /package/dist/{mds.survivalplot-WVAHDM3Z.js.map → mds.survivalplot-RS7Z3J3Q.js.map} +0 -0
  839. /package/dist/{numericDictTermCluster-CXASCSQ6.js.map → numericDictTermCluster-CSQOV4TM.js.map} +0 -0
  840. /package/dist/{oncomatrix-5WMOICWR.js.map → oncomatrix-5UVM3KUA.js.map} +0 -0
  841. /package/dist/{oncomatrix.spec-POVBNFJR.js.map → oncomatrix.spec-CU3EZCMO.js.map} +0 -0
  842. /package/dist/{plot.2dvaf-63K5RSIU.js.map → plot.2dvaf-JD27DSDS.js.map} +0 -0
  843. /package/dist/{matrix.sorterUi-WC2YX7S7.js.map → plot.app-NMPMG3S2.js.map} +0 -0
  844. /package/dist/{plot.barplot-IQTYHNFE.js.map → plot.barplot-T4LPKFXW.js.map} +0 -0
  845. /package/dist/{plot.boxplot-2RMTO7AS.js.map → plot.boxplot-22ETOHNI.js.map} +0 -0
  846. /package/dist/{plot.brainImaging-DLUHAHHG.js.map → plot.brainImaging-Q7S7KSHW.js.map} +0 -0
  847. /package/dist/{plot.disco-WK6GDLNF.js.map → plot.disco-NIPBER5N.js.map} +0 -0
  848. /package/dist/{plot.dzi-3V3FWE7U.js.map → plot.dzi-DAX7GUTF.js.map} +0 -0
  849. /package/dist/{plot.ssgq-TENK2RP4.js.map → plot.ssgq-7J6S35RW.js.map} +0 -0
  850. /package/dist/{plot.vaf2cov-P2QOOZGZ.js.map → plot.vaf2cov-7EWFTD72.js.map} +0 -0
  851. /package/dist/{plot.wsi-BVRGJF4E.js.map → plot.wsi-E45KZGKD.js.map} +0 -0
  852. /package/dist/{polar2-NNOZOQQJ.js.map → polar2-LPT2XMD2.js.map} +0 -0
  853. /package/dist/{profileForms-RS4GEZZV.js.map → profileForms-EYN2KLSY.js.map} +0 -0
  854. /package/dist/{plot.app-V5IY25QS.js.map → profilePlot-I7VQM3CH.js.map} +0 -0
  855. /package/dist/{proteinView-NPKJAQAI.js.map → proteinView-JP5TF3ZK.js.map} +0 -0
  856. /package/dist/{profilePlot-3DLME3NH.js.map → qualitative-7X3ECW7Q.js.map} +0 -0
  857. /package/dist/{radar2-EX7YBNMT.js.map → radar2-V3FYBFAG.js.map} +0 -0
  858. /package/dist/{radarFacility2-WU5O6O77.js.map → radarFacility2-O6GQLBBN.js.map} +0 -0
  859. /package/dist/{qualitative-S45RXXRJ.js.map → regression-CLG6NYVF.js.map} +0 -0
  860. /package/dist/{regression-7MCOYJVD.js.map → regression.inputs-RLOBIRJH.js.map} +0 -0
  861. /package/dist/{regression.inputs-QHSWJ23R.js.map → regression.inputs.term-ZKIP6KDO.js.map} +0 -0
  862. /package/dist/{regression.inputs.term-EJ4Z5Q5O.js.map → regression.inputs.values.table-2VD4AO5T.js.map} +0 -0
  863. /package/dist/{regression.integration.spec-XOX7OXXA.js.map → regression.integration.spec-JEIMN7MS.js.map} +0 -0
  864. /package/dist/{regression.inputs.values.table-YKMAWNXN.js.map → regression.results-FT6VSWGR.js.map} +0 -0
  865. /package/dist/{regression.spec-YIIY2AZA.js.map → regression.spec-V4S52JQM.js.map} +0 -0
  866. /package/dist/{report-JEJFCWUU.js.map → report-UPQFSI4D.js.map} +0 -0
  867. /package/dist/{sampleScatter.spec-LBAZBDYA.js.map → sampleScatter.spec-QSRF3STG.js.map} +0 -0
  868. /package/dist/{regression.results-YKPOTPCC.js.map → sampleView-JIGZ7GTP.js.map} +0 -0
  869. /package/dist/{samplelst-HXM3H6M4.js.map → samplelst-VJMYHVXI.js.map} +0 -0
  870. /package/dist/{samplematrix-LCGHK2EK.js.map → samplematrix-LO4QB37V.js.map} +0 -0
  871. /package/dist/{sc-3OE2G4BU.js.map → sc-4VZBGFZP.js.map} +0 -0
  872. /package/dist/{scatter-AGVUDTTU.js.map → scatter-LQECXZLB.js.map} +0 -0
  873. /package/dist/{selectGenomeWithTklst-WF2XZ6GH.js.map → selectGenomeWithTklst-IJTCLRIN.js.map} +0 -0
  874. /package/dist/{sampleView-WKZT5ZFE.js.map → singleCellCellType-FJ53DRXD.js.map} +0 -0
  875. /package/dist/{singleCellCellType.unit.spec-DCGHNRJI.js.map → singleCellCellType.unit.spec-VOE4KY6L.js.map} +0 -0
  876. /package/dist/{singleCellCellType-2SRGROMS.js.map → singleCellGeneExpression-RZE5UVL4.js.map} +0 -0
  877. /package/dist/{singleCellGeneExpression.unit.spec-5MRGH2OO.js.map → singleCellGeneExpression.unit.spec-2DASF7PD.js.map} +0 -0
  878. /package/dist/{singleCellGeneExpression-RASZA4NO.js.map → singleCellPlot-Q5UNIW3M.js.map} +0 -0
  879. /package/dist/{singlecell-CFA43TTU.js.map → singlecell-N7F5KVIB.js.map} +0 -0
  880. /package/dist/{singlecell-JS5SIZHY.js.map → singlecell-TX5AQ4WM.js.map} +0 -0
  881. /package/dist/{singleCellPlot-TIYA3GNM.js.map → snp-S4O7SVDD.js.map} +0 -0
  882. /package/dist/{snp.unit.spec-TR5TCO7X.js.map → snp.unit.spec-WSQMZSTE.js.map} +0 -0
  883. /package/dist/{snplocus-VLPH5Y65.js.map → snplocus-Y2R5C4ZP.js.map} +0 -0
  884. /package/dist/{spliceevent.a53ss.diagram-PATK67SH.js.map → spliceevent.a53ss.diagram-FGRQR73W.js.map} +0 -0
  885. /package/dist/{spliceevent.exonskip.diagram-7B3SEOAJ.js.map → spliceevent.exonskip.diagram-TVH44RNL.js.map} +0 -0
  886. /package/dist/{spliceevent.noeventdiagram-4NPNZUEN.js.map → spliceevent.noeventdiagram-G2CMYYE7.js.map} +0 -0
  887. /package/dist/{snp-VXZXPMKS.js.map → ssGSEA-BH53XGEZ.js.map} +0 -0
  888. /package/dist/{ssGSEA.unit.spec-ASUWKVUT.js.map → ssGSEA.unit.spec-BYIVB7FZ.js.map} +0 -0
  889. /package/dist/{summarizeCnvGeneexp-KWRFGX32.js.map → summarizeCnvGeneexp-IZNOX4E7.js.map} +0 -0
  890. /package/dist/{summarizeGeneexpSurvival-FIPIMEJR.js.map → summarizeGeneexpSurvival-DJZ2R24E.js.map} +0 -0
  891. /package/dist/{summarizeMutationCnv-IUYRVLZG.js.map → summarizeMutationCnv-CO2TVWOI.js.map} +0 -0
  892. /package/dist/{ssGSEA-XMW5BLAU.js.map → summarizeMutationDiagnosis-EUZXCSZP.js.map} +0 -0
  893. /package/dist/{summarizeMutationSurvival-HFHYB7DT.js.map → summarizeMutationSurvival-CXFT3HWL.js.map} +0 -0
  894. /package/dist/{summarizeMutationDiagnosis-ZFJPCABL.js.map → summary-JHZCDE35.js.map} +0 -0
  895. /package/dist/{summary.integration.spec-WLBAJL44.js.map → summary.integration.spec-WBEYSDCA.js.map} +0 -0
  896. /package/dist/{summaryInput-NJWVXDXW.js.map → summaryInput-JVH3R54R.js.map} +0 -0
  897. /package/dist/{sunburst-PXGF4WM6.js.map → sunburst-CTJTXHSA.js.map} +0 -0
  898. /package/dist/{summary-AZUNEZ5I.js.map → survival-DLLVUG2P.js.map} +0 -0
  899. /package/dist/{survival-RAU4XCKG.js.map → survival-XFVYNI6S.js.map} +0 -0
  900. /package/dist/{svgraph-7UCFRL6A.js.map → svgraph-ACEBMDIX.js.map} +0 -0
  901. /package/dist/{svmr-DB3RY2ID.js.map → svmr-IQEDSZ2C.js.map} +0 -0
  902. /package/dist/{table-HJRWWXGM.js.map → table-2IF6UGHR.js.map} +0 -0
  903. /package/dist/{survival-ZZ4QLZHK.js.map → termCollection-JOLQJYJ3.js.map} +0 -0
  904. /package/dist/{termCollection-WPON7RG3.js.map → termCollection-PSXFFR32.js.map} +0 -0
  905. /package/dist/{termCollection.unit.spec-254ESHOE.js.map → termCollection.unit.spec-4SOZP4FY.js.map} +0 -0
  906. /package/dist/{termCollection-AW7M6DTP.js.map → tk-AAIHEQO6.js.map} +0 -0
  907. /package/dist/{tp.ui-ELEQGSK2.js.map → tp.ui-6STLQEXX.js.map} +0 -0
  908. /package/dist/{tk-SUAFM5YA.js.map → tvs.dt-FSA7KPSQ.js.map} +0 -0
  909. /package/dist/{tvs.dtcnv.categorical-SFQZMYX7.js.map → tvs.dtcnv.categorical-FSPGH7DP.js.map} +0 -0
  910. /package/dist/{tvs.dtcnv.continuous-AUZNJMC3.js.map → tvs.dtcnv.continuous-T4ZMSDB4.js.map} +0 -0
  911. /package/dist/{tvs.dtfusion-5F7MYFHZ.js.map → tvs.dtfusion-UL3YENUM.js.map} +0 -0
  912. /package/dist/{tvs.dtsnvindel-JJSPL4PH.js.map → tvs.dtsnvindel-5TPUT5RJ.js.map} +0 -0
  913. /package/dist/{tvs.dtsv-DARTSV5H.js.map → tvs.dtsv-OTNHXYOJ.js.map} +0 -0
  914. /package/dist/{tvs.samplelst-HHBIO26C.js.map → tvs.samplelst-FQKTAQZF.js.map} +0 -0
  915. /package/dist/{tvs.termCollection-KCMALH6B.js.map → tvs.termCollection-ZAPCUMUW.js.map} +0 -0
  916. /package/dist/{tvs.dt-DCXY66YY.js.map → violin-HEFFKPL5.js.map} +0 -0
  917. /package/dist/{violin.integration.spec-QQ43XWHQ.js.map → violin.integration.spec-774N4G5A.js.map} +0 -0
  918. /package/dist/{violin-C26FW5WK.js.map → violin.interactivity-XNYJSK53.js.map} +0 -0
  919. /package/dist/{violin.interactivity-H2BHC6M4.js.map → violin.renderer-R74VSGRC.js.map} +0 -0
  920. /package/dist/{violin.renderer-GSG2I7AV.js.map → vocabulary-OHMC6NWL.js.map} +0 -0
@@ -1,3297 +0,0 @@
1
- import {
2
- InvalidDataUI,
3
- configUiInit,
4
- fillbar,
5
- getMaxLabelWidth,
6
- getNormalRoot,
7
- renderTable,
8
- svgLegend,
9
- table2col
10
- } from "./chunk-WY2PGUVX.js";
11
- import "./chunk-HJ6L54YS.js";
12
- import "./chunk-LSEFWW72.js";
13
- import "./chunk-MBUQ34CF.js";
14
- import {
15
- Menu
16
- } from "./chunk-HYOEWQ5P.js";
17
- import "./chunk-HBW42TDT.js";
18
- import "./chunk-LQJMCE7G.js";
19
- import "./chunk-FN5XPUPH.js";
20
- import {
21
- topBarInit
22
- } from "./chunk-IIT367QZ.js";
23
- import "./chunk-RZGEKL77.js";
24
- import "./chunk-OVSKJROY.js";
25
- import "./chunk-A3URBFXN.js";
26
- import {
27
- dofetch3
28
- } from "./chunk-LYVLF6HO.js";
29
- import "./chunk-7IYJZZQI.js";
30
- import {
31
- copyMerge,
32
- getCompInit,
33
- multiInit
34
- } from "./chunk-M3J4MINX.js";
35
- import "./chunk-PF4DSFDR.js";
36
- import "./chunk-I73KUUYG.js";
37
- import "./chunk-NNFAUP2I.js";
38
- import {
39
- bplen,
40
- dtcnv,
41
- dtfusionrna,
42
- dtloh,
43
- dtsnvindel,
44
- dtsv,
45
- mclass
46
- } from "./chunk-7KRS7L4U.js";
47
- import "./chunk-BKPDYW5T.js";
48
- import "./chunk-JNITUVXP.js";
49
- import {
50
- arc_default,
51
- line_default,
52
- pie_default,
53
- ribbon_default
54
- } from "./chunk-TJYRBEBK.js";
55
- import "./chunk-LOZEKOES.js";
56
- import "./chunk-VQZ2Z5YU.js";
57
- import {
58
- linear,
59
- ticks
60
- } from "./chunk-SOTB4FRE.js";
61
- import "./chunk-TLT4YIG3.js";
62
- import "./chunk-KYBIQBXE.js";
63
- import {
64
- pointer_default,
65
- select_default
66
- } from "./chunk-I6Y4O3RR.js";
67
- import "./chunk-OMR2DT66.js";
68
- import "./chunk-DQC5FFGV.js";
69
- import "./chunk-HFNDKYVF.js";
70
-
71
- // plots/disco/arc/FullArcRenderer.ts
72
- var FullArcRenderer = class {
73
- constructor(radius, width, color) {
74
- this.radius = radius;
75
- this.width = width;
76
- this.color = color;
77
- }
78
- render(holder) {
79
- const donutGenerator = arc_default();
80
- const arc = {
81
- startAngle: 0,
82
- endAngle: Math.PI * 2,
83
- innerRadius: this.radius,
84
- outerRadius: this.radius + this.width,
85
- color: this.color,
86
- text: "No label"
87
- };
88
- const array = [];
89
- array.push(arc);
90
- const donutArc = holder.append("g");
91
- donutArc.selectAll("path").data(array).enter().append("path").attr("d", (d) => donutGenerator(d)).attr("fill", (d) => d.color);
92
- }
93
- };
94
-
95
- // plots/disco/menu/MenuProvider.ts
96
- var MenuProvider = class {
97
- static create() {
98
- const menu = new Menu({ padding: 5 });
99
- menu.d.style("border", "1px solid #FFF").style("position", "absolute").style("z-index", 1001);
100
- return menu;
101
- }
102
- };
103
-
104
- // plots/disco/fusion/FusionColorProvider.ts
105
- var FusionColorProvider = class {
106
- static getColor(chrA, chrB) {
107
- if (chrA != chrB) {
108
- return "#6A3D9A" /* Interchromosomal */.valueOf();
109
- } else {
110
- return "#1B9E77" /* Intrachromosomal */.valueOf();
111
- }
112
- }
113
- };
114
-
115
- // plots/disco/fusion/FusionRenderer.ts
116
- var FusionRenderer = class {
117
- constructor(genome) {
118
- this.genome = genome;
119
- }
120
- render(holder, fusions, opacity = 1) {
121
- let radius = 0;
122
- const fusionsWithTarget = fusions.filter((f) => f.target);
123
- if (fusionsWithTarget.length > 0) {
124
- radius = fusionsWithTarget[0].target.radius;
125
- const fullArcRenderer = new FullArcRenderer(radius, 2, "#6464641A");
126
- fullArcRenderer.render(holder);
127
- } else return;
128
- const ribbon = ribbon_default().radius(radius);
129
- const ribbons = holder.selectAll(".chord").data(fusions);
130
- const menu = MenuProvider.create();
131
- const createTooltip = this.createTooltip.bind(this);
132
- const genome = this.genome;
133
- ribbons.enter().append("path").attr("class", "chord").attr("d", ribbon).attr("fill", (fusion) => {
134
- return FusionColorProvider.getColor(
135
- fusion.source.positionInChromosome.chromosome,
136
- fusion.target.positionInChromosome.chromosome
137
- );
138
- }).style("opacity", opacity).each(function(d) {
139
- const path = select_default(this);
140
- const tip = MenuProvider.create();
141
- path.on("click", async function(event) {
142
- tip.clear().show(event.x, event.y);
143
- const div = tip.d.append("div");
144
- await makeSvgraph(d, div, genome);
145
- });
146
- }).on("mouseover", async function(mouseEvent, fusion) {
147
- const table = table2col({ holder: menu.d });
148
- createTooltip(table, fusion);
149
- menu.show(mouseEvent.x, mouseEvent.y);
150
- }).on("mouseout", () => {
151
- menu.clear();
152
- menu.hide();
153
- });
154
- }
155
- createTooltip(table, fusion) {
156
- {
157
- const [td1, td2] = table.addRow();
158
- td1.text("Data type");
159
- td2.append("span").style("margin-left", "5px").text("Fusion transcript");
160
- }
161
- {
162
- const positionInChromosomeSource = fusion.source.positionInChromosome;
163
- const positionInChromosomeTarget = fusion.target.positionInChromosome;
164
- const [td1, td2] = table.addRow();
165
- td1.text("Position");
166
- td2.append("span").style("margin-left", "5px").text(
167
- ` ${fusion.source.gene || ""} ${positionInChromosomeSource.chromosome}:${positionInChromosomeSource.position} ${fusion.source.strand === "+" ? "forward" : "reverse"} > ${fusion.target.gene || ""} ${positionInChromosomeTarget.chromosome}:${positionInChromosomeTarget.position} ${fusion.target.strand === "+" ? "forward" : "reverse"} `
168
- );
169
- }
170
- }
171
- };
172
- async function makeSvgraph(fusion, div, genome) {
173
- const wait = div.append("div").text("Loading...");
174
- const svpair = {
175
- a: {
176
- chr: fusion.source.positionInChromosome.chromosome,
177
- position: fusion.source.positionInChromosome.position,
178
- strand: fusion.source.strand
179
- },
180
- b: {
181
- chr: fusion.target.positionInChromosome.chromosome,
182
- position: fusion.target.positionInChromosome.position,
183
- strand: fusion.target.strand
184
- }
185
- };
186
- await getGm(svpair.a, genome.name, fusion.source.gene);
187
- await getGm(svpair.b, genome.name, fusion.target.gene);
188
- wait.remove();
189
- const _ = await import("./svgraph-7UCFRL6A.js");
190
- _.default({
191
- pairlst: [svpair],
192
- genome,
193
- holder: div
194
- });
195
- }
196
- async function getGm(p, genome, name) {
197
- const d = await dofetch3("isoformbycoord", {
198
- body: { genome, chr: p.chr, pos: p.position }
199
- });
200
- if (d.error) throw d.error;
201
- const u = d.lst.find((i) => i.isdefault && name === i.name) || d.lst[0];
202
- if (u) {
203
- p.name = u.name;
204
- p.gm = { isoform: u.isoform };
205
- }
206
- }
207
-
208
- // plots/disco/DiscoRenderer.ts
209
- var DiscoRenderer = class {
210
- constructor(renders, legendRenderer, genome) {
211
- this.renders = renders;
212
- this.legendRenderer = legendRenderer;
213
- this.fusionRenderer = new FusionRenderer(genome);
214
- }
215
- render(holder, viewModel, onCnvSourceSelect) {
216
- const svgDiv = holder.append("div").style("display", "inline-block").style("font-family", "Arial");
217
- 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);
218
- const mainG = svg.append("g").attr("class", "mainG").attr(
219
- "transform",
220
- `translate(${viewModel.settings.rings.labelLinesInnerRadius + viewModel.settings.rings.labelsToLinesDistance + 100},${viewModel.height / 2})`
221
- );
222
- for (const [ringType, renderer] of this.renders) {
223
- const elements = viewModel.getElements(ringType);
224
- const collisions = viewModel.getCollisions(ringType);
225
- renderer.render(mainG, elements, collisions);
226
- }
227
- this.fusionRenderer.render(mainG, viewModel.fusions, viewModel.settings.Disco.fusionOpacity);
228
- if (viewModel.settings.Disco.centerText) {
229
- const chrRingBbox = mainG.select('[data-testid="sjpp_chromosomes_arc_group"]').node().getBBox();
230
- const text = viewModel.settings.Disco.centerText.length > 20 ? viewModel.settings.Disco.centerText.slice(0, 20) + "..." : viewModel.settings.Disco.centerText;
231
- const textElem = mainG.append("text").attr("class", "sjpp-disco-center-text").text(text);
232
- const textBbox = textElem.node().getBBox();
233
- textElem.attr("transform", `translate(${chrRingBbox.x + chrRingBbox.width / 2 - textBbox.width / 2},0)`);
234
- }
235
- this.legendRenderer.render(
236
- mainG,
237
- viewModel.legend,
238
- -1 * (viewModel.settings.rings.labelLinesInnerRadius + viewModel.settings.rings.labelsToLinesDistance + 75),
239
- viewModel.width,
240
- viewModel.height / 2,
241
- viewModel,
242
- onCnvSourceSelect
243
- );
244
- }
245
- };
246
-
247
- // plots/disco/interactions/DiscoInteractions.ts
248
- var DiscoInteractions = class {
249
- constructor(discoApp) {
250
- this.discoApp = discoApp;
251
- this.downloadClickListener = (svg) => {
252
- const downloadImgName = this.discoApp.state.settings.downloadImgName || "disco.plot";
253
- const a = document.createElement("a");
254
- document.body.appendChild(a);
255
- a.addEventListener(
256
- "click",
257
- () => {
258
- const serializer = new XMLSerializer();
259
- const svg_blob = new Blob([serializer.serializeToString(svg)], {
260
- type: "image/svg+xml"
261
- });
262
- a.download = downloadImgName + ".svg";
263
- a.href = URL.createObjectURL(svg_blob);
264
- document.body.removeChild(a);
265
- },
266
- false
267
- );
268
- a.click();
269
- };
270
- this.geneClickListener = async (gene, mnames) => {
271
- const { filter, filter0 } = this.discoApp.app.getState().termfilter;
272
- const arg = {
273
- holder: this.discoApp.app.opts.holder,
274
- genome: this.discoApp.app.opts.state.args.genome,
275
- nobox: true,
276
- query: gene,
277
- tklst: [
278
- {
279
- type: "mds3",
280
- dslabel: this.discoApp.app.opts.state.vocab.dslabel,
281
- hlaachange: mnames.join(","),
282
- filter0,
283
- filterObj: getNormalRoot(filter)
284
- // must not pass filter as frozen. pass unfrozen, normalized copy so mds3 code will work
285
- }
286
- ]
287
- };
288
- const _ = await import("./block.init-LRZ3QAGC.js");
289
- await _.default(arg);
290
- };
291
- this.colorScaleNumericInputsCallback = async (obj) => {
292
- const callAppDispatch = (settings) => {
293
- this.discoApp.app.dispatch({
294
- type: "plot_edit",
295
- id: this.discoApp.id,
296
- config: { settings: { Disco: Object.assign({ cnvCutoffMode: obj.cutoffMode }, settings) } }
297
- });
298
- };
299
- if (obj.cutoffMode == "auto") {
300
- if (obj.min == null || obj.max == null)
301
- throw new Error('Color scale must return min and max if cutoffMode "auto"');
302
- callAppDispatch({
303
- cnvCapping: this.discoApp.state.settings.cnv.capping,
304
- cnvPercentile: this.discoApp.state.settings.cnv.percentile
305
- });
306
- } else if (obj.cutoffMode == "fixed") {
307
- if (obj.min == null || obj.max == null)
308
- throw new Error('Color scale must return min and max if cutoffMode "fixed"');
309
- const diffValue = obj.max !== this.discoApp.state.settings.cnv.capping ? obj.max : Math.abs(obj.min);
310
- callAppDispatch({
311
- cnvCapping: diffValue
312
- });
313
- } else if (obj.cutoffMode == "percentile") callAppDispatch({ cnvPercentile: obj.percentile });
314
- else throw new Error("Unknown cutoff mode returned from dom/ColorScale");
315
- };
316
- this.onMutationWaterfallColorChange = (color) => {
317
- this.discoApp.app.dispatch({
318
- type: "plot_edit",
319
- id: this.discoApp.id,
320
- config: { settings: { Disco: { mutationWaterfallColor: color } } }
321
- });
322
- };
323
- }
324
- };
325
-
326
- // plots/disco/chromosome/Reference.ts
327
- var Reference = class {
328
- /**
329
- * Creates a Reference object that contains information about chromosomes.
330
- * @param settings State settings
331
- * @param chromosomes Chromosome order. This function formats into an obj with `chr` removed.
332
- * @param chromosomeOverride Obj of chromsome keys and sizes. Filtered to remove hidden chromosomes in settings.
333
- */
334
- constructor(settings, chromosomes, chromosomeOverride) {
335
- this.chromosomes = [];
336
- this.chromosomesOrder = [];
337
- this.keysArray = [];
338
- this.totalSizeArray = [];
339
- this.chrSizesArray = [];
340
- const chrSizes = chromosomeOverride || chromosomes;
341
- this.settings = settings;
342
- this.chromosomesOrder = [];
343
- let totalSize = 0;
344
- this.totalPadAngle = Object.keys(chrSizes).length * this.settings.padAngle;
345
- this.totalChromosomesAngle = 2 * Math.PI - this.totalPadAngle;
346
- for (const chr in chrSizes) {
347
- const key = chr.slice(0, 3) === "chr" ? chr.slice(3) : chr;
348
- this.chromosomesOrder.push(chr);
349
- this.keysArray.push(key);
350
- this.totalSizeArray.push(totalSize);
351
- this.chrSizesArray.push(chrSizes[chr]);
352
- totalSize += chrSizes[chr];
353
- }
354
- this.totalSize = totalSize;
355
- let lastAngle = 0;
356
- for (let i = 0; i < this.keysArray.length; i++) {
357
- const chromosomeAngle = this.totalChromosomesAngle * (this.chrSizesArray[i] / totalSize);
358
- const startAngle = i == 0 ? this.settings.padAngle / 2 : lastAngle + this.settings.padAngle;
359
- const endAngle = i == 0 ? this.settings.padAngle / 2 + chromosomeAngle : lastAngle + this.settings.padAngle + chromosomeAngle;
360
- const chromosome = {
361
- start: this.totalSizeArray[i],
362
- size: this.chrSizesArray[i],
363
- factor: 1,
364
- startAngle,
365
- endAngle,
366
- angle: (startAngle + endAngle) / 2,
367
- innerRadius: this.settings.rings.chromosomeInnerRadius,
368
- outerRadius: this.settings.rings.chromosomeInnerRadius + this.settings.rings.chromosomeWidth,
369
- color: "#AAA",
370
- text: this.keysArray[i]
371
- };
372
- this.chromosomes.push(chromosome);
373
- if (chromosome.endAngle != null) {
374
- lastAngle = chromosome.endAngle;
375
- }
376
- }
377
- }
378
- };
379
-
380
- // plots/disco/data/DataObjectMapper.ts
381
- var DataObjectMapper = class {
382
- constructor(sampleName, prioritizedGenes) {
383
- this.sampleName = sampleName;
384
- this.prioritizedGenes = prioritizedGenes;
385
- }
386
- map(dObject) {
387
- return {
388
- dt: dObject.dt,
389
- mname: dObject.mname,
390
- mClass: dObject.class,
391
- gene: dObject.gene,
392
- chr: dObject.chr,
393
- ref: dObject.ref,
394
- alt: dObject.alt,
395
- vafs: dObject.vafs,
396
- position: dObject.pos ? dObject.pos : dObject.position,
397
- poschr: dObject.poschr,
398
- posbins: dObject.posbins,
399
- poslabel: dObject.poslabel,
400
- sampleName: this.sampleName,
401
- ssm_id: dObject.ssm_id,
402
- start: dObject.start,
403
- stop: dObject.stop,
404
- value: dObject.value,
405
- segmean: dObject.segmean,
406
- isPrioritized: this.prioritizedGenes.some((cancerGene) => cancerGene == dObject.gene),
407
- chrA: dObject.chrA,
408
- chrB: dObject.chrB,
409
- geneA: dObject.geneA,
410
- geneB: dObject.geneB,
411
- posA: dObject.posA,
412
- posB: dObject.posB,
413
- strandA: dObject.strandA,
414
- strandB: dObject.strandB
415
- };
416
- }
417
- };
418
-
419
- // plots/disco/data/PercentileMapper.ts
420
- var PercentileMapper = class {
421
- map(data, percentile) {
422
- return this.calculatePercentileForPositivesAndNegatives(data, percentile);
423
- }
424
- calculatePercentileForPositivesAndNegatives(data, percentile) {
425
- const positives = data.filter((x) => x > 0);
426
- const negatives = data.filter((x) => x < 0).map((x) => -1 * x);
427
- let positive = NaN;
428
- let negative = NaN;
429
- if (positives.length > 0) {
430
- positive = this.calculatePercentile(positives, percentile);
431
- }
432
- if (negatives.length > 0) {
433
- negative = -1 * this.calculatePercentile(negatives, percentile);
434
- }
435
- return { positive, negative };
436
- }
437
- calculatePercentile(data, percentile) {
438
- if (data.length === 0) {
439
- throw new Error("Array must contain at least one element.");
440
- }
441
- const sortedValues = data.sort((a, b) => a - b);
442
- const index = percentile / 100 * (sortedValues.length - 1);
443
- const lowerIndex = Math.floor(index);
444
- const upperIndex = Math.ceil(index);
445
- const fraction = index - lowerIndex;
446
- if (lowerIndex === upperIndex) {
447
- return sortedValues[lowerIndex];
448
- }
449
- return sortedValues[lowerIndex] + fraction * (sortedValues[upperIndex] - sortedValues[lowerIndex]);
450
- }
451
- };
452
-
453
- // plots/disco/snv/vafTooltip.ts
454
- function getIntegerCount(v) {
455
- if (Number.isInteger(v)) return v;
456
- if (typeof v == "string" && /^-?\d+$/.test(v)) {
457
- const n = Number(v);
458
- if (Number.isInteger(n)) return n;
459
- }
460
- return null;
461
- }
462
- function getReadCounts(refCountValue, altCountValue, totalCountValue) {
463
- const altCount = getIntegerCount(altCountValue);
464
- if (altCount == null || altCount < 0) return null;
465
- const totalCount = getIntegerCount(totalCountValue);
466
- if (totalCount != null) {
467
- if (totalCount <= 0 || totalCount < altCount) return null;
468
- return { altCount, refCount: totalCount - altCount, totalCount };
469
- }
470
- const refCount = getIntegerCount(refCountValue);
471
- if (refCount == null || refCount < 0 || refCount + altCount <= 0) return null;
472
- return { altCount, refCount, totalCount: refCount + altCount };
473
- }
474
- function hasValidReadCounts(refCountValue, altCountValue, totalCountValue) {
475
- return getReadCounts(refCountValue, altCountValue, totalCountValue) != null;
476
- }
477
- function getVafEntries(vafs) {
478
- const entries = [];
479
- if (Array.isArray(vafs)) {
480
- for (const vaf of vafs) {
481
- const label = vaf?.id || vaf?.name;
482
- const refCount = vaf?.refCount;
483
- const totalCount = vaf?.totalCount;
484
- const altCount = vaf?.altCount;
485
- if (!label || altCount == null || refCount == null && totalCount == null) continue;
486
- const entry = { label, altCount };
487
- if (refCount != null) entry.refCount = refCount;
488
- if (totalCount != null) entry.totalCount = totalCount;
489
- entries.push(entry);
490
- }
491
- }
492
- return entries;
493
- }
494
- function getNumericFraction(v) {
495
- if (typeof v != "number" && typeof v != "string") return null;
496
- const n = Number(v);
497
- return Number.isFinite(n) && n >= 0 && n <= 1 ? n : null;
498
- }
499
- function getMutationFractions(vafs) {
500
- const fractions = [];
501
- if (!Array.isArray(vafs)) return fractions;
502
- for (const vaf of vafs) {
503
- const explicitFraction = getNumericFraction(vaf?.fraction ?? vaf?.mutationFraction);
504
- if (explicitFraction != null) {
505
- fractions.push(explicitFraction);
506
- continue;
507
- }
508
- const counts = getReadCounts(vaf?.refCount, vaf?.altCount, vaf?.totalCount);
509
- if (!counts) continue;
510
- fractions.push(counts.altCount / counts.totalCount);
511
- }
512
- return fractions;
513
- }
514
- function getMaxMutationFraction(vafs) {
515
- const fractions = getMutationFractions(vafs);
516
- return fractions.length ? Math.max(...fractions) : null;
517
- }
518
- function hasAnyValidVafEntry(vafs) {
519
- return getVafEntries(vafs).some((vaf) => hasValidReadCounts(vaf.refCount, vaf.altCount, vaf.totalCount));
520
- }
521
- function appendVafBar(td2, refCountValue, altCountValue, label = "VAF", totalCountValue) {
522
- const counts = getReadCounts(refCountValue, altCountValue, totalCountValue);
523
- if (!counts) return;
524
- const fraction = counts.altCount / counts.totalCount;
525
- const div = td2.append("div").style("margin-left", "5px").style("margin-top", "4px").style("display", "flex").style("align-items", "center").style("gap", "6px");
526
- div.append("span").style("font-size", "0.8em").style("color", "#555").text(label);
527
- fillbar(div, { f: fraction, v1: counts.altCount, v2: counts.totalCount });
528
- }
529
- function appendVafBars(td2, vafs) {
530
- for (const vaf of getVafEntries(vafs)) {
531
- if (!hasValidReadCounts(vaf.refCount, vaf.altCount, vaf.totalCount)) continue;
532
- appendVafBar(td2, vaf.refCount, vaf.altCount, vaf.label, vaf.totalCount);
533
- }
534
- }
535
-
536
- // plots/disco/data/DataMapper.ts
537
- var DataMapper = class _DataMapper {
538
- constructor(settings, reference, sample, prioritizedGenes = []) {
539
- // remove fields and extract filters to seperate classes
540
- this.labelData = [];
541
- this.nonExonicSnvData = [];
542
- this.nonExonicInnerRadius = 0;
543
- this.snvRingDataMap = /* @__PURE__ */ new Map();
544
- this.snvInnerRadius = 0;
545
- this.snvData = [];
546
- this.bpx = 0;
547
- this.onePxArcAngle = 0;
548
- this.filteredSnvData = [];
549
- this.filteredSnvCountByChr = /* @__PURE__ */ new Map();
550
- this.lohData = [];
551
- this.lohInnerRadius = 0;
552
- this.cnvData = [];
553
- this.cnvInnerRadius = 0;
554
- this.fusionData = [];
555
- this.fusionRadius = 0;
556
- this.hasPrioritizedGenes = false;
557
- this.hasWaterfallEligibleChromosome = false;
558
- this.invalidEntries = [];
559
- this.cnvLossMaxValue = 0;
560
- this.cnvGainMaxValue = 0;
561
- this.percentilePositive = 0;
562
- this.percentileNegative = 0;
563
- this.cnvMaxPercentileAbs = 0;
564
- this.mutationWaterfallData = [];
565
- this.hasMutationFractionData = false;
566
- this.mutationWaterfallInnerRadius = 0;
567
- this.mutationWaterfallRangeMin = Infinity;
568
- this.mutationWaterfallRangeMax = -Infinity;
569
- this.lohMaxValue = void 0;
570
- this.lohMinValue = void 0;
571
- this.snvFilter = (data) => data.dt == dtsnvindel;
572
- this.fusionFilter = (data) => data.dt == dtfusionrna || data.dt == dtsv;
573
- this.cnvFilter = (data) => data.dt == dtcnv;
574
- this.lohFilter = (data) => data.dt == dtloh;
575
- this.compareData = (a, b) => {
576
- const chrDiff = this.reference.chromosomesOrder.indexOf(a.chr) - this.reference.chromosomesOrder.indexOf(b.chr);
577
- if (chrDiff != 0) {
578
- return chrDiff;
579
- }
580
- const aPos = a.pos ? a.pos : a.start;
581
- const bPos = b.pos ? b.pos : b.start;
582
- return aPos - bPos;
583
- };
584
- this.settings = settings;
585
- this.reference = reference;
586
- this.sample = sample;
587
- this.excludedChromosomes = this.settings.Disco.hiddenChromosomes;
588
- this.lastInnerRadious = this.settings.rings.chromosomeInnerRadius;
589
- this.gainCapped = this.settings.Disco.cnvCapping;
590
- this.lossCapped = -1 * this.settings.Disco.cnvCapping;
591
- this.nonExonicFilter = (data) => {
592
- if (prioritizedGenes.length > 0 && this.settings.Disco.prioritizeGeneLabelsByGeneSets) {
593
- return prioritizedGenes.includes(data.gene) && settings.rings.nonExonicFilterValues.includes(ViewModelMapper.snvClassLayer[data.mClass]);
594
- } else {
595
- return settings.rings.nonExonicFilterValues.includes(ViewModelMapper.snvClassLayer[data.mClass]);
596
- }
597
- };
598
- this.snvRingFilter = (data) => {
599
- if (prioritizedGenes.length > 0 && this.settings.Disco.prioritizeGeneLabelsByGeneSets) {
600
- return prioritizedGenes.includes(data.gene) && settings.rings.snvRingFilters.includes(ViewModelMapper.snvClassLayer[data.mClass]);
601
- } else {
602
- return settings.rings.snvRingFilters.includes(ViewModelMapper.snvClassLayer[data.mClass]);
603
- }
604
- };
605
- this.dataObjectMapper = new DataObjectMapper(sample, prioritizedGenes);
606
- }
607
- map(data) {
608
- const dataArray = [];
609
- this.filteredSnvCountByChr.clear();
610
- this.hasWaterfallEligibleChromosome = false;
611
- this.mutationWaterfallData = [];
612
- this.mutationWaterfallInnerRadius = 0;
613
- this.mutationWaterfallRangeMin = Infinity;
614
- this.mutationWaterfallRangeMax = -Infinity;
615
- this.hasMutationFractionData = false;
616
- data.forEach((dObject) => {
617
- if (dObject.dt == dtsnvindel && getMaxMutationFraction(dObject.vafs) != null) {
618
- this.hasMutationFractionData = true;
619
- }
620
- const index = this.reference.chromosomesOrder.indexOf(dObject.chr);
621
- const indexA = this.reference.chromosomesOrder.indexOf(dObject.chrA);
622
- const indexB = this.reference.chromosomesOrder.indexOf(dObject.chrB);
623
- if (dObject.dt == dtsnvindel) {
624
- if (index != -1 && this.snvData.length < this.settings.snv.maxMutationCount) {
625
- const pos = dObject.pos ?? dObject.position;
626
- const chrSize = this.reference.chromosomes[index].size;
627
- if (Number.isFinite(pos) && pos >= 0 && pos <= chrSize) {
628
- this.addData(dObject, dataArray);
629
- } else {
630
- this.invalidEntries.push({ dataType: "SNV", reason: `Position ${pos} outside of ${dObject.chr}` });
631
- }
632
- } else if (index == -1) {
633
- if (!this.excludedChromosomes.includes(dObject.chr)) {
634
- this.invalidEntries.push({ dataType: "SNV", reason: `Unknown chr ${dObject.chr}` });
635
- }
636
- }
637
- } else if (dObject.dt == dtfusionrna || dObject.dt == dtsv) {
638
- if (indexA != -1 && indexB != -1) {
639
- const posA = dObject.posA;
640
- const posB = dObject.posB;
641
- const chrSizeA = this.reference.chromosomes[indexA].size;
642
- const chrSizeB = this.reference.chromosomes[indexB].size;
643
- if (Number.isFinite(posA) && Number.isFinite(posB) && posA >= 0 && posA <= chrSizeA && posB >= 0 && posB <= chrSizeB) {
644
- this.addData(dObject, dataArray);
645
- } else {
646
- const reasonParts = [];
647
- if (!(Number.isFinite(posA) && posA >= 0 && posA <= chrSizeA))
648
- reasonParts.push(`Position ${posA} outside of ${dObject.chrA}`);
649
- if (!(Number.isFinite(posB) && posB >= 0 && posB <= chrSizeB))
650
- reasonParts.push(`Position ${posB} outside of ${dObject.chrB}`);
651
- this.invalidEntries.push({ dataType: "Fusion", reason: reasonParts.join("; ") });
652
- }
653
- } else {
654
- const missing = [];
655
- if (indexA == -1 && !this.excludedChromosomes.includes(dObject.chrA)) missing.push(dObject.chrA);
656
- if (indexB == -1 && !this.excludedChromosomes.includes(dObject.chrB)) missing.push(dObject.chrB);
657
- if (missing.length) this.invalidEntries.push({ dataType: "Fusion", reason: "Unknown chr in fusion" });
658
- }
659
- } else if ([dtcnv, dtloh].includes(Number(dObject.dt))) {
660
- const idx = this.reference.chromosomesOrder.indexOf(dObject.chr);
661
- if (dObject.chr && idx != -1) {
662
- const chrSize = this.reference.chromosomes[idx].size;
663
- const start = dObject.start;
664
- const stop = dObject.stop;
665
- if (Number.isFinite(start) && Number.isFinite(stop) && start >= 0 && stop <= chrSize && start <= stop) {
666
- this.addData(dObject, dataArray);
667
- } else {
668
- this.invalidEntries.push({
669
- dataType: dObject.dt == dtcnv ? "CNV" : "LOH",
670
- reason: `Position ${start}-${stop} outside of ${dObject.chr}`
671
- });
672
- }
673
- } else {
674
- if (!this.excludedChromosomes.includes(dObject.chr)) {
675
- this.invalidEntries.push({
676
- dataType: dObject.dt == dtcnv ? "CNV" : "LOH",
677
- reason: `Unknown chr ${dObject.chr}`
678
- });
679
- }
680
- }
681
- } else {
682
- throw Error("Unknown mutation type!");
683
- }
684
- });
685
- const sortedData = dataArray.sort(this.compareData);
686
- if (this.settings.rings.nonExonicRingEnabled) {
687
- sortedData.forEach((data2) => {
688
- this.filterNonExonicSnvData(data2);
689
- });
690
- }
691
- if (this.nonExonicSnvData.length > 0) {
692
- this.nonExonicInnerRadius = this.lastInnerRadious - this.settings.rings.nonExonicRingWidth;
693
- this.lastInnerRadious = this.nonExonicInnerRadius;
694
- }
695
- sortedData.forEach((data2) => {
696
- this.filterSnvs(data2);
697
- });
698
- this.hasWaterfallEligibleChromosome = Array.from(this.filteredSnvCountByChr.values()).some((count) => count >= 2);
699
- if (this.settings.Disco.mutationWaterfallPlot && this.hasWaterfallEligibleChromosome) {
700
- this.prepareMutationWaterfallData();
701
- }
702
- sortedData.forEach((data2) => {
703
- this.filterLohs(data2);
704
- });
705
- if (this.lohData.length > 0) {
706
- this.lohInnerRadius = this.lastInnerRadious - this.settings.rings.lohRingWidth;
707
- this.lastInnerRadious = this.lohInnerRadius;
708
- }
709
- sortedData.forEach((data2) => {
710
- this.filterCnvs(data2);
711
- });
712
- if (this.cnvData.length > 0) {
713
- this.cnvInnerRadius = this.lastInnerRadious - this.settings.rings.cnvRingWidth;
714
- this.lastInnerRadious = this.cnvInnerRadius;
715
- this.cappedCnvMaxAbsValue = Math.min(
716
- this.settings.Disco.cnvCapping,
717
- Math.max(
718
- Math.abs(_DataMapper.capMaxValue(this.cnvLossMaxValue, this.gainCapped, this.lossCapped)),
719
- Math.abs(_DataMapper.capMaxValue(this.cnvGainMaxValue, this.gainCapped, this.lossCapped))
720
- )
721
- );
722
- const percentilePair = new PercentileMapper().map(
723
- this.cnvData.map((data2) => data2.value),
724
- this.settings.Disco.cnvPercentile
725
- );
726
- this.percentilePositive = _DataMapper.capMaxValue(percentilePair.positive, this.gainCapped, this.lossCapped);
727
- this.percentileNegative = _DataMapper.capMaxValue(percentilePair.negative, this.gainCapped, this.lossCapped);
728
- this.cnvMaxPercentileAbs = Math.min(
729
- this.settings.Disco.cnvCapping,
730
- Math.max(this.percentilePositive, Math.abs(this.percentileNegative))
731
- );
732
- }
733
- sortedData.forEach((data2) => {
734
- this.filterFusion(data2);
735
- });
736
- if (this.fusionData.length > 0) {
737
- this.fusionRadius = this.lastInnerRadious;
738
- }
739
- const dataHolder = {
740
- labelData: this.labelData,
741
- nonExonicSnvData: this.nonExonicSnvData,
742
- nonExonicInnerRadius: this.nonExonicInnerRadius,
743
- snvRingDataMap: this.snvRingDataMap,
744
- snvInnerRadius: this.snvInnerRadius,
745
- snvData: this.snvData,
746
- bpx: this.bpx,
747
- onePxArcAngle: this.onePxArcAngle,
748
- filteredSnvData: this.filteredSnvData,
749
- lohData: this.lohData,
750
- lohInnerRadius: this.lohInnerRadius,
751
- cnvData: this.cnvData,
752
- cnvInnerRadius: this.cnvInnerRadius,
753
- fusionData: this.fusionData,
754
- fusionRadius: this.fusionRadius,
755
- hasPrioritizedGenes: this.hasPrioritizedGenes,
756
- hasWaterfallEligibleChromosome: this.hasWaterfallEligibleChromosome,
757
- cnvGainMaxValue: this.cnvGainMaxValue,
758
- cnvLossMaxValue: this.cnvLossMaxValue,
759
- cappedCnvMaxAbsValue: this.cappedCnvMaxAbsValue,
760
- percentilePositive: this.percentilePositive,
761
- percentileNegative: this.percentileNegative,
762
- cnvMaxPercentileAbs: this.cnvMaxPercentileAbs,
763
- lohMaxValue: this.lohMaxValue,
764
- lohMinValue: this.lohMinValue,
765
- hasMutationFractionData: this.hasMutationFractionData,
766
- mutationWaterfallData: this.mutationWaterfallData,
767
- mutationWaterfallInnerRadius: this.mutationWaterfallInnerRadius,
768
- mutationWaterfallLogRange: this.mutationWaterfallData.length ? { min: this.mutationWaterfallRangeMin, max: this.mutationWaterfallRangeMax } : void 0,
769
- invalidDataInfo: {
770
- entries: this.invalidEntries,
771
- errorMsg: `Entries listed above were skipped due to invalid or unsupported chromosome information.`
772
- }
773
- };
774
- return dataHolder;
775
- }
776
- addData(dObject, dataArray) {
777
- const instance = this.dataObjectMapper.map(dObject);
778
- if (instance.isPrioritized) {
779
- this.hasPrioritizedGenes = true;
780
- }
781
- dataArray.push(instance);
782
- }
783
- filterNonExonicSnvData(data) {
784
- if (this.snvFilter(data) && this.passesMutationFractionFilter(data)) {
785
- if (this.settings.rings.nonExonicRingEnabled && this.nonExonicFilter(data)) {
786
- this.nonExonicSnvData.push(data);
787
- }
788
- }
789
- }
790
- filterSnvs(data) {
791
- if (this.snvFilter(data)) {
792
- this.snvData.push(data);
793
- if (this.passesMutationFractionFilter(data) && this.snvRingFilter(data)) {
794
- if (this.snvInnerRadius == 0) {
795
- this.snvInnerRadius = this.lastInnerRadious - this.settings.rings.snvRingWidth;
796
- this.lastInnerRadious = this.snvInnerRadius;
797
- this.bpx = Math.floor(this.reference.totalSize / (this.reference.totalChromosomesAngle * this.snvInnerRadius));
798
- this.onePxArcAngle = 1 / this.snvInnerRadius;
799
- }
800
- this.filteredSnvData.push(data);
801
- this.labelData.push(data);
802
- const currentCount = this.filteredSnvCountByChr.get(data.chr) || 0;
803
- this.filteredSnvCountByChr.set(data.chr, currentCount + 1);
804
- const arcAngle = this.calculateArcAngle(data);
805
- let dataArray = this.snvRingDataMap.get(arcAngle);
806
- if (!dataArray) {
807
- dataArray = new Array();
808
- }
809
- dataArray.push(data);
810
- this.snvRingDataMap.set(arcAngle, dataArray);
811
- }
812
- }
813
- }
814
- passesMutationFractionFilter(data) {
815
- if (!this.hasMutationFractionData) return true;
816
- const minMutationFraction = this.settings.Disco.minMutationFraction || 0;
817
- if (minMutationFraction <= 0) return true;
818
- const fraction = getMaxMutationFraction(data.vafs);
819
- return fraction != null && fraction >= minMutationFraction;
820
- }
821
- filterFusion(data) {
822
- if (this.fusionFilter(data)) {
823
- data.isPrioritized = true;
824
- this.fusionData.push(data);
825
- this.labelData.push(data);
826
- }
827
- }
828
- filterLohs(data) {
829
- if (this.lohFilter(data)) {
830
- if (this.lohMaxValue == void 0 || this.lohMaxValue < data.value) {
831
- this.lohMaxValue = data.segmean;
832
- }
833
- if (this.lohMinValue == void 0 || this.lohMinValue > data.value) {
834
- this.lohMinValue = data.segmean;
835
- }
836
- this.lohData.push(data);
837
- }
838
- }
839
- filterCnvs(data) {
840
- if (this.cnvFilter(data)) {
841
- if (!data.chr || this.reference.chromosomesOrder.indexOf(data.chr) == -1) {
842
- return;
843
- }
844
- if (this.cnvGainMaxValue == void 0 || this.cnvGainMaxValue < data.value) {
845
- this.cnvGainMaxValue = data.value;
846
- }
847
- if (this.cnvLossMaxValue == void 0 || this.cnvLossMaxValue > data.value) {
848
- this.cnvLossMaxValue = data.value;
849
- }
850
- this.cnvData.push(data);
851
- }
852
- }
853
- prepareMutationWaterfallData() {
854
- this.mutationWaterfallInnerRadius = this.lastInnerRadious - this.settings.rings.mutationWaterfallRingWidth;
855
- this.lastInnerRadious = this.mutationWaterfallInnerRadius;
856
- const groupedSnvs = /* @__PURE__ */ new Map();
857
- const firstMutationByChr = [];
858
- for (const snv of this.filteredSnvData) {
859
- const list = groupedSnvs.get(snv.chr) || [];
860
- list.push(snv);
861
- groupedSnvs.set(snv.chr, list);
862
- }
863
- for (const [, snvs] of groupedSnvs) {
864
- if (snvs.length < 2) continue;
865
- snvs.sort((a, b) => a.position - b.position);
866
- firstMutationByChr.push({
867
- chr: snvs[0].chr,
868
- position: snvs[0].position,
869
- logDistance: 0
870
- // placeholder updated after range computed
871
- });
872
- for (let i = 1; i < snvs.length; i++) {
873
- const prev = snvs[i - 1];
874
- const curr = snvs[i];
875
- const distance = Math.max(1, Math.abs(curr.position - prev.position));
876
- const logDistance = Math.log10(distance);
877
- this.mutationWaterfallData.push({
878
- chr: curr.chr,
879
- position: curr.position,
880
- logDistance
881
- });
882
- if (logDistance < this.mutationWaterfallRangeMin) {
883
- this.mutationWaterfallRangeMin = logDistance;
884
- }
885
- if (logDistance > this.mutationWaterfallRangeMax) {
886
- this.mutationWaterfallRangeMax = logDistance;
887
- }
888
- }
889
- }
890
- if (!this.mutationWaterfallData.length) {
891
- this.mutationWaterfallRangeMin = 0;
892
- this.mutationWaterfallRangeMax = 0;
893
- }
894
- const topLogDistance = this.mutationWaterfallRangeMax;
895
- for (const first of firstMutationByChr) {
896
- this.mutationWaterfallData.push({
897
- ...first,
898
- logDistance: topLogDistance
899
- });
900
- }
901
- }
902
- calculateArcAngle(data) {
903
- const currentChromosome = this.reference.chromosomes[this.reference.chromosomesOrder.findIndex((chromosomeOrder) => data.chr == chromosomeOrder)];
904
- const dataAnglePos = Math.floor(data.position / this.bpx);
905
- return currentChromosome.startAngle + dataAnglePos * this.onePxArcAngle;
906
- }
907
- static capMaxValue(value, gainCapped, lossCapped) {
908
- if (value && Math.sign(value) == 1) {
909
- return value > gainCapped ? gainCapped : value;
910
- }
911
- if (Math.sign(value) == -1) {
912
- return value < lossCapped ? lossCapped : value;
913
- }
914
- return 0;
915
- }
916
- static capMinValue(value, capMinValue = 1) {
917
- if (Math.sign(value) == 1) {
918
- return value > capMinValue ? value : capMinValue;
919
- }
920
- if (Math.sign(value) == -1) {
921
- return value < -1 * capMinValue ? value : -1 * capMinValue;
922
- }
923
- return 1;
924
- }
925
- };
926
-
927
- // plots/disco/legend/Legend.ts
928
- var Legend = class {
929
- constructor(snvTitle, cnvTitle, lohTitle, fusionTitle, cnvPercentile, cnvCutoffmode, snvClassMap, cnvClassMap, cnvRenderingType, fusionLegend, discoInteractions, lohLegend, mutationWaterfallLegend, fusionLegendCounts = { interchromosomal: 0, intrachromosomal: 0 }) {
930
- this.snvTitle = snvTitle;
931
- this.cnvTitle = cnvTitle;
932
- this.lohTitle = lohTitle;
933
- this.fusionTitle = fusionTitle;
934
- this.cnvPercentile = cnvPercentile;
935
- this.cnvCutoffMode = cnvCutoffmode;
936
- this.snvClassMap = snvClassMap;
937
- this.cnvClassMap = cnvClassMap;
938
- this.cnvRenderingType = cnvRenderingType;
939
- this.lohLegend = lohLegend;
940
- this.fusionLegend = fusionLegend;
941
- this.fusionLegendCounts = fusionLegendCounts;
942
- this.discoInteractions = discoInteractions;
943
- this.mutationWaterfallLegend = mutationWaterfallLegend;
944
- }
945
- legendCount() {
946
- 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);
947
- }
948
- };
949
-
950
- // plots/disco/fusion/Fusion.ts
951
- var Fusion = class {
952
- constructor(source, target, genes, count, endpts) {
953
- this.source = source;
954
- this.target = target;
955
- this.genes = genes;
956
- this.count = count;
957
- this.endpts = endpts;
958
- }
959
- };
960
-
961
- // plots/disco/fusion/FusionSubgroup.ts
962
- var FusionSubgroup = class {
963
- constructor(startAngle, endAngle, radius, gene, value, genes, positionInChromosome, strand) {
964
- this.startAngle = startAngle;
965
- this.endAngle = endAngle;
966
- this.radius = radius;
967
- this.gene = gene;
968
- this.value = value;
969
- this.genes = genes;
970
- this.positionInChromosome = positionInChromosome;
971
- this.strand = strand;
972
- }
973
- };
974
-
975
- // plots/disco/fusion/FusionMapper.ts
976
- var FusionMapper = class {
977
- constructor(radius, sampleName, reference) {
978
- this.radius = radius;
979
- this.sampleName = sampleName;
980
- this.reference = reference;
981
- }
982
- map(fusionData) {
983
- const fusions = [];
984
- fusionData.forEach((data) => {
985
- const genes = /* @__PURE__ */ new Set();
986
- genes.add(data.geneA);
987
- genes.add(data.geneB);
988
- const startAngle = this.calculateStartAngle(data.chrA, data.posA);
989
- const endAngle = this.calculateEndAngle(data.chrA, data.posA);
990
- if (startAngle === null || endAngle === null) return;
991
- const source = new FusionSubgroup(
992
- startAngle,
993
- endAngle,
994
- this.radius,
995
- data.geneA,
996
- data.value,
997
- genes,
998
- {
999
- chromosome: data.chrA,
1000
- position: data.posA
1001
- },
1002
- data.strandA
1003
- );
1004
- let target;
1005
- if (data.chrB && data.posB) {
1006
- const startAngle2 = this.calculateStartAngle(data.chrB, data.posB);
1007
- const endAngle2 = this.calculateEndAngle(data.chrB, data.posB);
1008
- if (startAngle2 === null || endAngle2 === null) return;
1009
- target = new FusionSubgroup(
1010
- startAngle2,
1011
- endAngle2,
1012
- this.radius,
1013
- data.geneB,
1014
- data.value,
1015
- genes,
1016
- {
1017
- chromosome: data.chrB,
1018
- position: data.posB
1019
- },
1020
- data.strandB
1021
- );
1022
- }
1023
- const fusion = new Fusion(source, target, "genes", -1, "Endpoints");
1024
- fusions.push(fusion);
1025
- });
1026
- return fusions;
1027
- }
1028
- calculateStartAngle(chr, pos) {
1029
- const index = this.reference.chromosomesOrder.indexOf(chr);
1030
- if (index === -1) return null;
1031
- const chromosome = this.reference.chromosomes[index];
1032
- return chromosome.startAngle + (chromosome.endAngle - chromosome.startAngle) * (Number(pos) / chromosome.size) - 0.01;
1033
- }
1034
- calculateEndAngle(chr, pos) {
1035
- const index = this.reference.chromosomesOrder.indexOf(chr);
1036
- if (index === -1) return null;
1037
- const chromosome = this.reference.chromosomes[index];
1038
- return 0.01 + chromosome.startAngle + (chromosome.endAngle - chromosome.startAngle) * (Number(pos) / chromosome.size);
1039
- }
1040
- };
1041
-
1042
- // plots/disco/loh/GradientColorProvider.ts
1043
- var GradientColorProvider = class {
1044
- static provide(value) {
1045
- const clampedValue = Math.min(Math.max(value, 0), 1);
1046
- const colorValue = Math.round(clampedValue * 255);
1047
- return `rgb(${colorValue}, ${colorValue}, ${colorValue})`;
1048
- }
1049
- };
1050
-
1051
- // plots/disco/loh/LohLegend.ts
1052
- var LohLegend = class {
1053
- constructor(minValue, maxValue) {
1054
- this.minValue = minValue;
1055
- this.maxValue = maxValue;
1056
- this.colorStartValue = GradientColorProvider.provide(minValue);
1057
- this.colorEndValue = GradientColorProvider.provide(maxValue);
1058
- }
1059
- };
1060
-
1061
- // plots/disco/viewmodel/ViewModel.ts
1062
- var ViewModel = class {
1063
- constructor(settings, rings, legend, fusions, dataHolder, genesetName, snvDataLengthAll) {
1064
- this.settings = settings;
1065
- this.rings = rings;
1066
- this.legend = legend;
1067
- this.fusions = fusions;
1068
- this.genesetName = genesetName;
1069
- const tempHolder = select_default("body").append("div").style("position", "absolute").style("visibility", "hidden");
1070
- const tempSvg = tempHolder.append("svg");
1071
- const labels = rings.labelsRing?.elementsToDisplay?.map((l) => l.text) || [];
1072
- const maxLabelSpace = getMaxLabelWidth(tempSvg, labels);
1073
- tempHolder.remove();
1074
- this.width = 2 * (this.settings.horizontalPadding + this.settings.rings.labelLinesInnerRadius + this.settings.rings.labelsToLinesDistance + maxLabelSpace);
1075
- this.height = 2 * (this.settings.rings.labelLinesInnerRadius + this.settings.rings.labelsToLinesDistance + this.settings.verticalPadding + this.settings.label.fontSize * 2 + maxLabelSpace);
1076
- this.legendHeight = this.calculateLegendHeight(legend);
1077
- this.snvDataLength = dataHolder.snvData.length;
1078
- this.filteredSnvDataLength = dataHolder.filteredSnvData.length;
1079
- this.snvDataLengthAll = snvDataLengthAll;
1080
- this.cnvMaxValue = dataHolder.cnvGainMaxValue;
1081
- this.cnvMinValue = dataHolder.cnvLossMaxValue;
1082
- this.cappedCnvMaxAbsValue = dataHolder.cappedCnvMaxAbsValue;
1083
- this.negativePercentile = dataHolder.percentileNegative;
1084
- this.positivePercentile = dataHolder.percentilePositive;
1085
- this.invalidDataInfo = dataHolder.invalidDataInfo;
1086
- this.canShowMutationWaterfallPlot = dataHolder.hasWaterfallEligibleChromosome;
1087
- this.hasMutationFractionData = dataHolder.hasMutationFractionData;
1088
- }
1089
- getElements(ringType) {
1090
- switch (ringType) {
1091
- case 0 /* CHROMOSOME */:
1092
- return this.rings.chromosomesRing ? this.rings.chromosomesRing.elements : [];
1093
- case 1 /* LABEL */:
1094
- return this.rings.labelsRing.elementsToDisplay;
1095
- case 2 /* NONEXONICSNV */:
1096
- return this.rings.nonExonicArcRing ? this.rings.nonExonicArcRing.elements : [];
1097
- case 3 /* SNV */:
1098
- return this.rings.snvArcRing ? this.rings.snvArcRing.elements : [];
1099
- case 5 /* CNV */:
1100
- return this.rings.cnvArcRing ? this.rings.cnvArcRing.elements : [];
1101
- case 6 /* LOH */:
1102
- return this.rings.lohArcRing ? this.rings.lohArcRing.elements : [];
1103
- case 4 /* MUTATION_WATERFALL */:
1104
- return this.rings.mutationWaterfallRing ? this.rings.mutationWaterfallRing.elements : [];
1105
- default:
1106
- throw new Error(`ringType ${ringType} not defined`);
1107
- }
1108
- }
1109
- getCollisions(ringType) {
1110
- if (ringType == 1 /* LABEL */) {
1111
- return this.rings.labelsRing.collisions;
1112
- } else {
1113
- return void 0;
1114
- }
1115
- }
1116
- calculateLegendHeight(legend) {
1117
- const rawHeight = this.settings.legend.rowHeight;
1118
- return rawHeight * legend.legendCount();
1119
- }
1120
- };
1121
-
1122
- // plots/disco/ring/Ring.ts
1123
- var Ring = class {
1124
- constructor(innerRadius, width, elements) {
1125
- this.innerRadius = innerRadius;
1126
- this.outerRadius = innerRadius + width;
1127
- this.width = width;
1128
- this.elements = elements;
1129
- }
1130
- };
1131
-
1132
- // plots/disco/label/MLabel.ts
1133
- var MLabel = class _MLabel {
1134
- /**
1135
- * The Singleton's constructor should always be private to prevent direct
1136
- * construction calls with the `new` operator.
1137
- */
1138
- constructor() {
1139
- const mlabel = {};
1140
- for (const key in mclass) {
1141
- mlabel[mclass[key].label] = mclass[key];
1142
- mlabel[key] = mclass[key];
1143
- }
1144
- this.mlabel = mlabel;
1145
- }
1146
- /**
1147
- * The static method that controls the access to the singleton instance.
1148
- *
1149
- * This implementation let you subclass the Singleton class while keeping
1150
- * just one instance of each subclass around.
1151
- */
1152
- static getInstance() {
1153
- if (!_MLabel.instance) {
1154
- _MLabel.instance = new _MLabel();
1155
- }
1156
- return _MLabel.instance;
1157
- }
1158
- };
1159
-
1160
- // plots/disco/snv/SnvLegendElement.ts
1161
- var SnvLegendElement = class {
1162
- constructor(snvType, color, count) {
1163
- this.snvType = snvType;
1164
- this.color = color;
1165
- this.count = count;
1166
- }
1167
- };
1168
-
1169
- // plots/disco/snv/SnvArcsMapper.ts
1170
- var SnvArcsMapper = class {
1171
- constructor(svnInnerRadius, svnWidth, sampleName, reference) {
1172
- this.snvClassMap = /* @__PURE__ */ new Map();
1173
- this.svnInnerRadius = svnInnerRadius;
1174
- this.svnWidth = svnWidth;
1175
- this.sampleName = sampleName;
1176
- this.reference = reference;
1177
- this.bpx = Math.floor(this.reference.totalSize / (this.reference.totalChromosomesAngle * svnInnerRadius));
1178
- this.onePxArcAngle = 1 / svnInnerRadius;
1179
- }
1180
- map(exonicSnvDataMap) {
1181
- const snvArray = [];
1182
- for (const angle of exonicSnvDataMap.keys()) {
1183
- const array = exonicSnvDataMap.get(angle);
1184
- if (array) {
1185
- const arraySize = array.length;
1186
- for (let i = 0; i < array.length; i++) {
1187
- const data = array[i];
1188
- const snvLegendElement = this.snvClassMap.get(data.mClass);
1189
- if (snvLegendElement) {
1190
- this.snvClassMap.set(data.mClass, this.createSnvLegend(data.mClass, ++snvLegendElement.count));
1191
- } else {
1192
- this.snvClassMap.set(data.mClass, this.createSnvLegend(data.mClass, 1));
1193
- }
1194
- const startAngle = angle;
1195
- const endAngle = angle + this.onePxArcAngle;
1196
- const mLabel = MLabel.getInstance().mlabel ? MLabel.getInstance().mlabel[data.mClass] : void 0;
1197
- const arc = {
1198
- startAngle,
1199
- endAngle,
1200
- innerRadius: this.svnInnerRadius + i * this.svnWidth / arraySize,
1201
- outerRadius: this.svnInnerRadius + (i + 1) * this.svnWidth / arraySize,
1202
- color: mLabel.color,
1203
- text: data.gene,
1204
- dataClass: mLabel.label,
1205
- mname: data.mname,
1206
- chr: data.chr,
1207
- pos: data.position,
1208
- vafs: data.vafs,
1209
- sampleName: [data.sampleName]
1210
- };
1211
- snvArray.push(arc);
1212
- }
1213
- }
1214
- }
1215
- return snvArray;
1216
- }
1217
- createSnvLegend(dataClass, count) {
1218
- const mClass = MLabel.getInstance().mlabel[dataClass];
1219
- return new SnvLegendElement(mClass.label, mClass.color, count);
1220
- }
1221
- };
1222
-
1223
- // plots/disco/cnv/CnvLegend.ts
1224
- var CnvLegend = class {
1225
- constructor(text, cnvType, color, value) {
1226
- this.text = text;
1227
- this.cnvType = cnvType;
1228
- this.color = color;
1229
- this.value = value;
1230
- }
1231
- };
1232
-
1233
- // plots/disco/cnv/CnvColorProvider.ts
1234
- var CnvColorProvider = class {
1235
- static getColor(value, settings, cnvMaxPercentileAbs = 0) {
1236
- const cnv = settings.cnv;
1237
- const gainCapped = settings.Disco.cnvRenderingType == "heatmap" /* heatmap */ ? settings.Disco.cnvCapping : cnvMaxPercentileAbs;
1238
- const lossCapped = settings.Disco.cnvRenderingType == "heatmap" /* heatmap */ ? -1 * settings.Disco.cnvCapping : -1 * cnvMaxPercentileAbs;
1239
- if (value < lossCapped) {
1240
- return cnv.cappedLossColor;
1241
- } else if (value >= lossCapped && value <= 0) {
1242
- return cnv.lossColor;
1243
- } else if (value > 0 && value <= gainCapped) {
1244
- return cnv.ampColor;
1245
- } else {
1246
- return cnv.cappedAmpColor;
1247
- }
1248
- }
1249
- };
1250
-
1251
- // plots/disco/cnv/CnvArcsMapper.ts
1252
- var CnvArcsMapper = class {
1253
- constructor(cnvInnerRadius, cnvWidth, settings, sampleName, reference, cnvMaxValue = 0, cnvMinValue = 0, cnvMaxAbsValue = 0, cnvAbsPercentile = 0, cnvUnit = "", cnvRenderingType) {
1254
- this.cnvClassMap = /* @__PURE__ */ new Map();
1255
- this.cnvInnerRadius = cnvInnerRadius;
1256
- this.cnvWidth = cnvWidth;
1257
- this.settings = settings;
1258
- this.sampleName = sampleName;
1259
- this.reference = reference;
1260
- this.cnvMaxValue = cnvMaxValue;
1261
- this.cnvMinValue = cnvMinValue;
1262
- this.cnvMaxAbsValue = cnvMaxAbsValue;
1263
- this.cnvAbsPercentile = cnvAbsPercentile;
1264
- this.cnvUnit = cnvUnit;
1265
- this.cnvRenderingType = cnvRenderingType;
1266
- this.gainCapped = Math.min(cnvAbsPercentile, this.settings.Disco.cnvCapping);
1267
- this.lossCapped = -1 * Math.min(cnvAbsPercentile, this.settings.Disco.cnvCapping);
1268
- this.lossOnly = cnvMaxValue <= 0;
1269
- this.gainOnly = cnvMinValue >= 0;
1270
- this.onePxArcAngle = 1 / this.cnvInnerRadius;
1271
- const gain = new CnvLegend(
1272
- "Max",
1273
- cnvMaxValue > 0 ? 1 /* Gain */ : 0 /* Loss */,
1274
- this.getColor(cnvMaxValue),
1275
- cnvMaxValue
1276
- );
1277
- const loss = new CnvLegend(
1278
- "Min",
1279
- cnvMinValue > 0 ? 1 /* Gain */ : 0 /* Loss */,
1280
- this.getColor(cnvMinValue),
1281
- cnvMinValue
1282
- );
1283
- const cap = new CnvLegend(
1284
- "Capping",
1285
- 0 /* Loss */,
1286
- this.getColor(cnvMinValue > 0 ? cnvMinValue : cnvMaxValue),
1287
- this.settings.Disco.cnvCapping
1288
- );
1289
- this.cnvClassMap.set(1 /* Gain */, gain);
1290
- this.cnvClassMap.set(0 /* Loss */, loss);
1291
- this.cnvClassMap.set(2 /* Cap */, cap);
1292
- }
1293
- map(arcData) {
1294
- const arcs = [];
1295
- arcData.forEach((data) => {
1296
- let startAngle = this.calculateStartAngle(data);
1297
- let endAngle = this.calculateEndAngle(data);
1298
- if (startAngle === null || endAngle === null) return;
1299
- if (endAngle - startAngle < this.onePxArcAngle) {
1300
- const restAngle = this.onePxArcAngle - (endAngle - startAngle);
1301
- startAngle = startAngle - restAngle / 2;
1302
- endAngle = startAngle + restAngle / 2;
1303
- }
1304
- const innerRadius = this.calculateInnerRadius(data);
1305
- const outerRadius = this.calculateOuterRadius(data);
1306
- const color = this.getColor(data.value);
1307
- const arc = {
1308
- startAngle,
1309
- endAngle,
1310
- innerRadius,
1311
- outerRadius,
1312
- color,
1313
- text: data.gene,
1314
- chr: data.chr,
1315
- start: data.start,
1316
- stop: data.stop,
1317
- value: data.value,
1318
- unit: this.cnvUnit,
1319
- sampleName: [this.sampleName]
1320
- };
1321
- arcs.push(arc);
1322
- });
1323
- return arcs;
1324
- }
1325
- calculateStartAngle(data) {
1326
- const index = this.reference.chromosomesOrder.indexOf(data.chr);
1327
- if (index == -1) return null;
1328
- const chromosome = this.reference.chromosomes[index];
1329
- return chromosome.startAngle + (chromosome.endAngle - chromosome.startAngle) * (Number(data.start) / chromosome.size);
1330
- }
1331
- calculateEndAngle(data) {
1332
- const index = this.reference.chromosomesOrder.indexOf(data.chr);
1333
- const chromosome = this.reference.chromosomes[index];
1334
- return chromosome.startAngle + (chromosome.endAngle - chromosome.startAngle) * (Number(data.stop) / chromosome.size);
1335
- }
1336
- getColor(value) {
1337
- return CnvColorProvider.getColor(value, this.settings, this.cnvAbsPercentile);
1338
- }
1339
- calculateInnerRadius(data) {
1340
- if (this.cnvRenderingType == "heatmap" /* heatmap */) {
1341
- return this.cnvInnerRadius;
1342
- }
1343
- if (this.gainOnly) {
1344
- return this.cnvInnerRadius;
1345
- }
1346
- if (this.lossOnly) {
1347
- const outerRadius = this.cnvInnerRadius + this.cnvWidth;
1348
- return outerRadius + DataMapper.capMinValue(
1349
- this.cnvWidth * DataMapper.capMaxValue(data.value, this.gainCapped, this.lossCapped) / this.cnvAbsPercentile
1350
- );
1351
- }
1352
- const centerRadius = this.cnvInnerRadius + this.cnvWidth / 2;
1353
- if (Math.sign(data.value) == 1) {
1354
- return centerRadius;
1355
- }
1356
- if (Math.sign(data.value) == -1) {
1357
- return centerRadius + DataMapper.capMinValue(
1358
- DataMapper.capMaxValue(data.value, this.gainCapped, this.lossCapped) / this.cnvAbsPercentile * (this.cnvWidth / 2)
1359
- );
1360
- }
1361
- return 1;
1362
- }
1363
- calculateOuterRadius(data) {
1364
- const maxOuterRadius = this.cnvInnerRadius + this.cnvWidth;
1365
- if (this.cnvRenderingType == "heatmap" /* heatmap */) {
1366
- return maxOuterRadius;
1367
- }
1368
- if (this.gainOnly) {
1369
- return this.cnvInnerRadius + DataMapper.capMinValue(
1370
- this.cnvWidth * DataMapper.capMaxValue(data.value, this.gainCapped, this.lossCapped) / this.cnvAbsPercentile
1371
- );
1372
- }
1373
- if (this.lossOnly) {
1374
- return maxOuterRadius;
1375
- }
1376
- const centerRadius = this.cnvInnerRadius + this.cnvWidth / 2;
1377
- if (Math.sign(data.value) == 1) {
1378
- return centerRadius + DataMapper.capMinValue(
1379
- DataMapper.capMaxValue(data.value, this.gainCapped, this.lossCapped) / this.cnvMaxAbsValue * (this.cnvWidth / 2)
1380
- );
1381
- }
1382
- if (Math.sign(data.value) == -1) {
1383
- return centerRadius;
1384
- }
1385
- return 1;
1386
- }
1387
- };
1388
-
1389
- // plots/disco/label/Line.ts
1390
- var Line = class {
1391
- constructor(points, color) {
1392
- this.points = new Array();
1393
- this.points = points;
1394
- this.color = color;
1395
- }
1396
- };
1397
-
1398
- // plots/disco/label/LabelFactory.ts
1399
- var LabelFactory = class {
1400
- static createLabel(startAngle, endAngle, innerRadius, outerRadius, value, gene, color, dataClass, chr, position, isPrioritized = false, labelsToLinesGap, mutationTooltip, fusionTooltip) {
1401
- const angle = (startAngle + endAngle) / 2;
1402
- const ccAngle = angle - Math.PI / 2;
1403
- const transform = `rotate(${angle * 180 / Math.PI - 90}) translate(${outerRadius})${angle > Math.PI ? "rotate(180)" : ""}`;
1404
- const textAnchor = angle > Math.PI ? "end" : "";
1405
- const r0 = innerRadius;
1406
- const r1 = outerRadius - labelsToLinesGap;
1407
- const points = [];
1408
- const point0 = {
1409
- x: r0 * Math.cos(ccAngle),
1410
- y: r0 * Math.sin(ccAngle)
1411
- };
1412
- const point1 = {
1413
- x: r1 * Math.cos(ccAngle),
1414
- y: r1 * Math.sin(ccAngle)
1415
- };
1416
- points.push(point0);
1417
- points.push(point1);
1418
- const line = new Line(points, color);
1419
- const label = {
1420
- startAngle,
1421
- endAngle,
1422
- innerRadius,
1423
- outerRadius,
1424
- angle,
1425
- value,
1426
- text: gene,
1427
- color,
1428
- transform,
1429
- textAnchor,
1430
- ccAngle,
1431
- line,
1432
- isPrioritized,
1433
- start: position,
1434
- stop: position,
1435
- chr,
1436
- mutationsTooltip: mutationTooltip ? [mutationTooltip] : void 0,
1437
- fusionTooltip: fusionTooltip ? [fusionTooltip] : void 0
1438
- };
1439
- return label;
1440
- }
1441
- static createMovedLabel(element, overlap) {
1442
- const startAngle = element.startAngle + overlap;
1443
- const endAngle = element.endAngle + overlap;
1444
- const angle = (startAngle + endAngle) / 2;
1445
- const ccAngle = angle - Math.PI / 2;
1446
- const r0 = element.innerRadius;
1447
- const r1 = element.outerRadius - 2;
1448
- const dr = (r1 - r0) / 3;
1449
- const cos0 = Math.cos(element.ccAngle);
1450
- const sin0 = Math.sin(element.ccAngle);
1451
- const cos1 = Math.cos(element.ccAngle + overlap);
1452
- const sin1 = Math.sin(element.ccAngle + overlap);
1453
- const points = [];
1454
- const point0 = {
1455
- x: r0 * cos0,
1456
- y: r0 * sin0
1457
- };
1458
- const point1 = {
1459
- x: (r0 + dr) * cos0,
1460
- y: (r0 + dr) * sin0
1461
- };
1462
- const point2 = {
1463
- x: (r0 + 2 * dr) * cos1,
1464
- y: (r0 + 2 * dr) * sin1
1465
- };
1466
- const point3 = {
1467
- x: (r0 + 3 * dr) * cos1,
1468
- y: (r0 + 3 * dr) * sin1
1469
- };
1470
- points.push(point0);
1471
- points.push(point1);
1472
- points.push(point2);
1473
- points.push(point3);
1474
- const line = new Line(points, element.color);
1475
- const transform = "rotate(" + (angle * 180 / Math.PI - 90) + ")translate(" + element.outerRadius + ")" + (angle > Math.PI ? "rotate(180)" : "");
1476
- const textAnchor = angle > Math.PI ? "end" : "";
1477
- const color = element.mutationsTooltip ? element.mutationsTooltip[0].color : element.fusionTooltip ? element.fusionTooltip[0].color : void 0;
1478
- const label = {
1479
- startAngle,
1480
- endAngle,
1481
- innerRadius: element.innerRadius,
1482
- outerRadius: element.outerRadius,
1483
- angle,
1484
- value: element.value,
1485
- text: element.text,
1486
- transform,
1487
- textAnchor,
1488
- ccAngle,
1489
- color,
1490
- line,
1491
- isPrioritized: element.isPrioritized,
1492
- start: element.start,
1493
- stop: element.stop,
1494
- chr: element.chr,
1495
- mutationsTooltip: element.mutationsTooltip,
1496
- fusionTooltip: element.fusionTooltip
1497
- };
1498
- return label;
1499
- }
1500
- };
1501
-
1502
- // plots/disco/label/LabelsMapper.ts
1503
- var LabelsMapper = class {
1504
- constructor(settings, sampleName, reference, cnvMaxPercentileAbs = 0) {
1505
- this.labelMap = /* @__PURE__ */ new Map();
1506
- this.settings = settings;
1507
- this.sampleName = sampleName;
1508
- this.reference = reference;
1509
- this.cnvMaxPercentileAbs = cnvMaxPercentileAbs;
1510
- }
1511
- map(data, cnvData = []) {
1512
- const innerRadius = this.settings.rings.labelLinesInnerRadius;
1513
- const outerRadius = innerRadius + this.settings.rings.labelsToLinesDistance;
1514
- data.forEach((data2) => {
1515
- if (data2.dt == dtsnvindel) {
1516
- const startAngle = this.calculateStartAngle(data2.chr, data2.position);
1517
- const endAngle = this.calculateEndAngle(data2.chr, data2.position);
1518
- if (startAngle === null || endAngle === null) return;
1519
- const mLabel = MLabel.getInstance().mlabel ? MLabel.getInstance().mlabel[data2.mClass] : void 0;
1520
- this.addLabelOrMutation(
1521
- data2,
1522
- data2.gene,
1523
- data2.mname,
1524
- startAngle,
1525
- endAngle,
1526
- innerRadius,
1527
- outerRadius,
1528
- mLabel.color,
1529
- mLabel.label
1530
- );
1531
- }
1532
- if (data2.dt == dtfusionrna) {
1533
- const color = FusionColorProvider.getColor(data2.chrA, data2.chrB);
1534
- if (data2.geneA) {
1535
- const startAngleSource = this.calculateStartAngle(data2.chrA, data2.posA);
1536
- const endAngleSource = this.calculateEndAngle(data2.chrA, data2.posA);
1537
- if (startAngleSource === null || endAngleSource === null) return;
1538
- this.addLabelOrFusion(
1539
- data2,
1540
- data2.geneA,
1541
- data2.posA,
1542
- startAngleSource,
1543
- endAngleSource,
1544
- innerRadius,
1545
- outerRadius,
1546
- color
1547
- );
1548
- }
1549
- if (data2.geneB && data2.geneA != data2.geneB) {
1550
- const startAngleTarget = this.calculateStartAngle(data2.chrB, data2.posB);
1551
- const endAngleTarget = this.calculateEndAngle(data2.chrB, data2.posB);
1552
- if (startAngleTarget == null || endAngleTarget == null) return;
1553
- this.addLabelOrFusion(
1554
- data2,
1555
- data2.geneB,
1556
- data2.posB,
1557
- startAngleTarget,
1558
- endAngleTarget,
1559
- innerRadius,
1560
- outerRadius,
1561
- color
1562
- );
1563
- }
1564
- }
1565
- });
1566
- const labelsArray = Array.from(this.labelMap.values());
1567
- labelsArray.forEach((label) => {
1568
- cnvData.forEach((cnv) => {
1569
- if (label.stop >= cnv.start && cnv.stop >= label.start && label.chr == cnv.chr) {
1570
- const mutation = {
1571
- value: cnv.value,
1572
- color: CnvColorProvider.getColor(cnv.value, this.settings, this.cnvMaxPercentileAbs),
1573
- chr: cnv.chr,
1574
- start: cnv.start,
1575
- stop: cnv.stop
1576
- };
1577
- if (label.cnvTooltip) {
1578
- label.cnvTooltip.push(mutation);
1579
- } else {
1580
- label.cnvTooltip = [];
1581
- label.cnvTooltip.push(mutation);
1582
- }
1583
- }
1584
- });
1585
- });
1586
- return Array.from(this.labelMap.values());
1587
- }
1588
- addLabelOrMutation(data, gene, mname, startAngle, endAngle, innerRadius, outerRadius, color, dataClass) {
1589
- const label = this.labelMap.get(gene);
1590
- const mutation = {
1591
- mname,
1592
- color,
1593
- dataClass,
1594
- chr: data.chr,
1595
- position: data.position,
1596
- vafs: data.vafs
1597
- };
1598
- if (!label) {
1599
- this.labelMap.set(
1600
- gene,
1601
- LabelFactory.createLabel(
1602
- startAngle,
1603
- endAngle,
1604
- innerRadius,
1605
- outerRadius,
1606
- data.value,
1607
- gene,
1608
- color,
1609
- dataClass,
1610
- data.chr,
1611
- data.position,
1612
- data.isPrioritized,
1613
- this.settings.rings.labelsToLinesGap,
1614
- mutation
1615
- )
1616
- );
1617
- } else {
1618
- if (label.mutationsTooltip) {
1619
- label.start = Math.min(label.start, data.position);
1620
- label.stop = Math.max(label.stop, data.position);
1621
- label.mutationsTooltip.push(mutation);
1622
- } else {
1623
- label.mutationsTooltip = [];
1624
- label.start = Math.min(label.start, data.position);
1625
- label.stop = Math.max(label.stop, data.position);
1626
- label.mutationsTooltip.push(mutation);
1627
- }
1628
- }
1629
- }
1630
- addLabelOrFusion(data, gene, position, startAngle, endAngle, innerRadius, outerRadius, color) {
1631
- const label = this.labelMap.get(gene);
1632
- const fusionTooltip = {
1633
- color,
1634
- chrA: data.chrA,
1635
- chrB: data.chrB,
1636
- posA: data.posA,
1637
- posB: data.posB,
1638
- geneA: data.geneA,
1639
- geneB: data.geneB,
1640
- strandA: data.strandA,
1641
- strandB: data.strandB
1642
- };
1643
- if (!label) {
1644
- this.labelMap.set(
1645
- gene,
1646
- LabelFactory.createLabel(
1647
- startAngle,
1648
- endAngle,
1649
- innerRadius,
1650
- outerRadius,
1651
- data.value,
1652
- gene,
1653
- color,
1654
- "Fusion transcript",
1655
- data.chr,
1656
- data.position,
1657
- data.isPrioritized,
1658
- this.settings.rings.labelsToLinesGap,
1659
- void 0,
1660
- fusionTooltip
1661
- )
1662
- );
1663
- } else {
1664
- if (label.fusionTooltip) {
1665
- label.start = Math.min(label.start, position);
1666
- label.stop = Math.max(label.stop, position);
1667
- label.fusionTooltip.push(fusionTooltip);
1668
- } else {
1669
- label.fusionTooltip = [];
1670
- label.start = Math.min(label.start, position);
1671
- label.stop = Math.max(label.stop, position);
1672
- label.fusionTooltip.push(fusionTooltip);
1673
- }
1674
- }
1675
- }
1676
- calculateStartAngle(chr, position) {
1677
- const index = this.reference.chromosomesOrder.findIndex((element) => element == chr);
1678
- if (index === -1) return null;
1679
- const chromosome = this.reference.chromosomes[index];
1680
- return chromosome.startAngle + (chromosome.endAngle - chromosome.startAngle) * (Number(position) / chromosome.size);
1681
- }
1682
- calculateEndAngle(chr, position) {
1683
- const index = this.reference.chromosomesOrder.findIndex((element) => element == chr);
1684
- if (index === -1) return null;
1685
- const chromosome = this.reference.chromosomes[index];
1686
- return chromosome.startAngle + (chromosome.endAngle - chromosome.startAngle) * (Number(position) / chromosome.size);
1687
- }
1688
- };
1689
-
1690
- // plots/disco/label/Labels.ts
1691
- var Labels = class extends Ring {
1692
- constructor(settings, elements, hasPrioritizedGenes) {
1693
- super(
1694
- settings.rings.labelLinesInnerRadius,
1695
- settings.rings.labelsToLinesDistance,
1696
- elements.sort((a, b) => {
1697
- return a.startAngle < b.startAngle ? -1 : a.startAngle > b.startAngle ? 1 : 0;
1698
- })
1699
- );
1700
- this.elementsToDisplay = [];
1701
- this.settings = settings;
1702
- this.hasPrioritizedGenes = hasPrioritizedGenes;
1703
- const circumference = 2 * Math.PI * (settings.rings.labelLinesInnerRadius + settings.rings.labelsToLinesDistance);
1704
- this.overlapAngle = this.settings.label.overlapAngleFactor * this.settings.label.fontSize / circumference;
1705
- this.calculateCollisions();
1706
- }
1707
- calculateCollisions() {
1708
- this.collisions = [];
1709
- let hasPrioritizedGenesList = [];
1710
- hasPrioritizedGenesList = this.elements.filter((label) => label.isPrioritized);
1711
- if (this.settings.label.prioritizeGeneLabelsByGeneSets) {
1712
- this.elementsToDisplay = this.getLabelsWithPrioritizedGenes(hasPrioritizedGenesList);
1713
- } else if (this.hasPrioritizedGenes) {
1714
- const prioritizedGenesList = this.elements.filter((label) => label.isPrioritized);
1715
- const filteredPrioritizedGenesList = this.getLabelsWithPrioritizedGenes(prioritizedGenesList);
1716
- const withoutPrioritizedGenesList = this.elements.filter((label) => !label.isPrioritized);
1717
- const combinedAndSortedList = [...withoutPrioritizedGenesList, ...filteredPrioritizedGenesList].sort(
1718
- (a, b) => a.startAngle - b.startAngle
1719
- );
1720
- this.elementsToDisplay = this.getAllLabels(combinedAndSortedList);
1721
- } else {
1722
- this.elementsToDisplay = this.getLabelsWithPrioritizedGenes(this.elements);
1723
- }
1724
- }
1725
- getLabelsWithPrioritizedGenes(elemenets) {
1726
- const filteredList = [];
1727
- let prev = { endAngle: 0 };
1728
- elemenets.forEach((element, index) => {
1729
- if (index == 0) {
1730
- filteredList.push(element);
1731
- prev = element;
1732
- } else {
1733
- const overlap = prev.endAngle - element.startAngle + this.overlapAngle;
1734
- if (overlap > 0 && overlap < this.settings.label.maxDeltaAngle) {
1735
- const labelCopy = LabelFactory.createMovedLabel(element, overlap);
1736
- filteredList?.push(labelCopy);
1737
- prev = labelCopy;
1738
- }
1739
- if (overlap <= 0) {
1740
- filteredList.push(element);
1741
- prev = element;
1742
- }
1743
- }
1744
- });
1745
- return filteredList;
1746
- }
1747
- getAllLabels(elemenets) {
1748
- const filteredList = [];
1749
- let prev = { endAngle: 0 };
1750
- const elemenetsLength = elemenets.length;
1751
- let lastCancerGeneLabelIndex = -1;
1752
- for (let index = 0; index < elemenets.length; index++) {
1753
- const element = elemenets[index];
1754
- if (element.isPrioritized) {
1755
- filteredList.push(element);
1756
- lastCancerGeneLabelIndex = index;
1757
- prev = element;
1758
- continue;
1759
- }
1760
- if (index == 0) {
1761
- if (elemenetsLength > 1) {
1762
- if (this.isElementOverlappingNextCancerGene(elemenets, lastCancerGeneLabelIndex, element, 0)) {
1763
- continue;
1764
- }
1765
- filteredList.push(element);
1766
- prev = element;
1767
- }
1768
- continue;
1769
- }
1770
- const prevOverlap = prev.endAngle - element.startAngle + this.overlapAngle;
1771
- if (prevOverlap > 0 && prevOverlap < this.settings.label.maxDeltaAngle) {
1772
- if (index == length - 1) {
1773
- filteredList.push(element);
1774
- continue;
1775
- }
1776
- if (this.isElementOverlappingNextCancerGene(elemenets, lastCancerGeneLabelIndex, element, prevOverlap)) {
1777
- continue;
1778
- }
1779
- const labelCopy = LabelFactory.createMovedLabel(element, prevOverlap);
1780
- this.collisions?.push(labelCopy);
1781
- filteredList.push(element);
1782
- prev = labelCopy;
1783
- }
1784
- if (prevOverlap <= 0) {
1785
- if (this.isElementOverlappingNextCancerGene(elemenets, lastCancerGeneLabelIndex, element, 0)) {
1786
- continue;
1787
- }
1788
- filteredList.push(element);
1789
- prev = element;
1790
- }
1791
- }
1792
- return filteredList;
1793
- }
1794
- isElementOverlappingNextCancerGene(elemenets, lastCancerGeneLabelIndex, element, prevOverlap) {
1795
- const nextLabelWithCancerGene = this.getNextLabelWithCancerGene(elemenets, lastCancerGeneLabelIndex);
1796
- if (nextLabelWithCancerGene) {
1797
- const nextOverlap = element.endAngle + prevOverlap - nextLabelWithCancerGene.startAngle + this.overlapAngle;
1798
- if (nextOverlap > 0) {
1799
- return true;
1800
- }
1801
- }
1802
- return false;
1803
- }
1804
- getNextLabelWithCancerGene(elemenets, lastCancerGeneLabelIndex) {
1805
- return elemenets.find((label, index) => label.isPrioritized && index > lastCancerGeneLabelIndex);
1806
- }
1807
- };
1808
-
1809
- // plots/disco/snv/NonExonicSnvArcsMapper.ts
1810
- var NonExonicSnvArcsMapper = class {
1811
- constructor(nonExonicInnerRadius, nonExonicWidht, sampleName, reference) {
1812
- this.nonExonicInnerRadius = nonExonicInnerRadius;
1813
- this.nonExonicWidht = nonExonicWidht;
1814
- this.sampleName = sampleName;
1815
- this.reference = reference;
1816
- this.onePxArcAngle = 1 / nonExonicInnerRadius;
1817
- }
1818
- map(arcData) {
1819
- const innerRadius = this.nonExonicInnerRadius;
1820
- const outerRadius = innerRadius + this.nonExonicWidht;
1821
- const arcs = [];
1822
- arcData.forEach((data) => {
1823
- const mLabel = MLabel.getInstance().mlabel ? MLabel.getInstance().mlabel[data.mClass] : void 0;
1824
- const startAngle = this.calculateStartAngle(data);
1825
- const endAngle = this.calculateEndAngle(data);
1826
- if (startAngle === null || endAngle === null) return;
1827
- const arc = {
1828
- startAngle,
1829
- endAngle,
1830
- innerRadius,
1831
- outerRadius,
1832
- color: mLabel.color,
1833
- text: data.gene,
1834
- dataClass: mLabel.label,
1835
- mname: data.mname,
1836
- chr: data.chr,
1837
- pos: data.position,
1838
- vafs: data.vafs,
1839
- sampleName: [data.sampleName]
1840
- };
1841
- arcs.push(arc);
1842
- });
1843
- return arcs;
1844
- }
1845
- calculateStartAngle(data) {
1846
- const index = this.reference.chromosomesOrder.indexOf(data.chr);
1847
- if (index === -1) return null;
1848
- const chromosome = this.reference.chromosomes[index];
1849
- return chromosome.startAngle + (chromosome.endAngle - chromosome.startAngle) * (Number(data.position) / chromosome.size) - this.onePxArcAngle;
1850
- }
1851
- calculateEndAngle(data) {
1852
- const index = this.reference.chromosomesOrder.indexOf(data.chr);
1853
- const chromosome = this.reference.chromosomes[index];
1854
- return this.onePxArcAngle + chromosome.startAngle + (chromosome.endAngle - chromosome.startAngle) * (Number(data.position) / chromosome.size);
1855
- }
1856
- };
1857
-
1858
- // plots/disco/loh/LohArcMapper.ts
1859
- var LohArcMapper = class {
1860
- constructor(lohInnerRadius, lohWidth, sampleName, reference) {
1861
- this.lohInnerRadius = lohInnerRadius;
1862
- this.lohWidth = lohWidth;
1863
- this.sampleName = sampleName;
1864
- this.reference = reference;
1865
- }
1866
- map(arcData) {
1867
- const arcs = [];
1868
- arcData.forEach((data) => {
1869
- const startAngle = this.calculateStartAngle(data);
1870
- const endAngle = this.calculateEndAngle(data);
1871
- if (startAngle === null || endAngle === null) return;
1872
- const innerRadius = this.lohInnerRadius;
1873
- const outerRadius = innerRadius + this.lohWidth;
1874
- const color = GradientColorProvider.provide(data.segmean);
1875
- const arc = {
1876
- startAngle,
1877
- endAngle,
1878
- innerRadius,
1879
- outerRadius,
1880
- color,
1881
- text: data.gene,
1882
- chr: data.chr,
1883
- start: data.start,
1884
- stop: data.stop,
1885
- value: data.segmean
1886
- };
1887
- arcs.push(arc);
1888
- });
1889
- return arcs;
1890
- }
1891
- calculateStartAngle(data) {
1892
- const index = this.reference.chromosomesOrder.indexOf(data.chr);
1893
- if (index === -1) return null;
1894
- const chromosome = this.reference.chromosomes[index];
1895
- return chromosome.startAngle + (chromosome.endAngle - chromosome.startAngle) * (Number(data.start) / chromosome.size);
1896
- }
1897
- calculateEndAngle(data) {
1898
- const index = this.reference.chromosomesOrder.indexOf(data.chr);
1899
- const chromosome = this.reference.chromosomes[index];
1900
- return chromosome.startAngle + (chromosome.endAngle - chromosome.startAngle) * (Number(data.stop) / chromosome.size);
1901
- }
1902
- };
1903
-
1904
- // plots/disco/ring/Rings.ts
1905
- var Rings = class {
1906
- constructor(labelsRing, chromosomesRing, nonExonicArcRing, snvArcRing, cnvArcRing, lohArcRing, mutationWaterfallRing) {
1907
- this.labelsRing = labelsRing;
1908
- this.chromosomesRing = chromosomesRing;
1909
- this.nonExonicArcRing = nonExonicArcRing;
1910
- this.snvArcRing = snvArcRing;
1911
- this.cnvArcRing = cnvArcRing;
1912
- this.lohArcRing = lohArcRing;
1913
- this.mutationWaterfallRing = mutationWaterfallRing;
1914
- }
1915
- };
1916
-
1917
- // plots/disco/waterfall/MutationWaterfallMapper.ts
1918
- var MutationWaterfallMapper = class {
1919
- constructor(innerRadius, ringWidth, reference, logRange, color = "#4d4d4d") {
1920
- this.innerRadius = innerRadius;
1921
- this.ringWidth = ringWidth;
1922
- this.reference = reference;
1923
- this.logRange = logRange;
1924
- this.color = color;
1925
- }
1926
- map(data = []) {
1927
- if (!data.length) return [];
1928
- const min = this.logRange?.min ?? 0;
1929
- const max = this.logRange?.max ?? min + 1;
1930
- const span = max - min || 1;
1931
- const points = [];
1932
- for (const datum of data) {
1933
- const chrIndex = this.reference.chromosomesOrder.indexOf(datum.chr);
1934
- if (chrIndex === -1) continue;
1935
- const chromosome = this.reference.chromosomes[chrIndex];
1936
- const chrAngleSpan = chromosome.endAngle - chromosome.startAngle;
1937
- const relPos = chromosome.size > 0 ? datum.position / chromosome.size : 0;
1938
- const angle = chromosome.startAngle + chrAngleSpan * relPos;
1939
- const normalized = Math.max(0, Math.min(1, (datum.logDistance - min) / span));
1940
- const radius = this.innerRadius + this.ringWidth * normalized;
1941
- points.push({
1942
- startAngle: angle,
1943
- endAngle: angle,
1944
- innerRadius: radius,
1945
- outerRadius: radius,
1946
- text: chromosome.text,
1947
- color: this.color,
1948
- chr: datum.chr,
1949
- position: datum.position,
1950
- logDistance: datum.logDistance,
1951
- ringInnerRadius: this.innerRadius,
1952
- ringWidth: this.ringWidth,
1953
- rangeMin: min,
1954
- rangeMax: max
1955
- });
1956
- }
1957
- return points;
1958
- }
1959
- };
1960
-
1961
- // plots/disco/viewmodel/ViewModelProvider.ts
1962
- var ViewModelProvider = class {
1963
- constructor(settings, dataMapper, reference, sampleName, genesetName, discoInteractions) {
1964
- this.nonExonicArcRing = void 0;
1965
- this.settings = settings;
1966
- this.dataMapper = dataMapper;
1967
- this.reference = reference;
1968
- this.sampleName = sampleName;
1969
- this.genesetName = genesetName;
1970
- this.discoInteractions = discoInteractions;
1971
- }
1972
- map(data) {
1973
- const dataHolder = this.dataMapper.map(data);
1974
- let labelsRing;
1975
- if (this.settings.Disco.showGeneNames) {
1976
- const labelsMapper = new LabelsMapper(
1977
- this.settings,
1978
- this.sampleName,
1979
- this.reference,
1980
- dataHolder.cnvMaxPercentileAbs
1981
- );
1982
- const labelsData = labelsMapper.map(dataHolder.labelData, dataHolder.cnvData);
1983
- labelsRing = new Labels(this.settings, labelsData, dataHolder.hasPrioritizedGenes);
1984
- } else {
1985
- labelsRing = new Labels(this.settings, [], false);
1986
- }
1987
- const chromosomesRing = new Ring(
1988
- this.settings.rings.chromosomeInnerRadius,
1989
- this.settings.rings.chromosomeWidth,
1990
- this.reference.chromosomes
1991
- );
1992
- const nonExonicSnvArcsMapper = new NonExonicSnvArcsMapper(
1993
- dataHolder.nonExonicInnerRadius,
1994
- this.settings.rings.nonExonicRingWidth,
1995
- this.sampleName,
1996
- this.reference
1997
- );
1998
- const nonExonicData = nonExonicSnvArcsMapper.map(dataHolder.nonExonicSnvData);
1999
- if (nonExonicData.length > 0) {
2000
- this.nonExonicArcRing = new Ring(
2001
- dataHolder.nonExonicInnerRadius,
2002
- this.settings.rings.nonExonicRingWidth,
2003
- nonExonicData
2004
- );
2005
- }
2006
- this.snvArcsMapper = new SnvArcsMapper(
2007
- dataHolder.snvInnerRadius,
2008
- this.settings.rings.snvRingWidth,
2009
- this.sampleName,
2010
- this.reference
2011
- );
2012
- const snvData = this.snvArcsMapper.map(dataHolder.snvRingDataMap);
2013
- if (snvData.length > 0) {
2014
- this.snvArcRing = new Ring(dataHolder.snvInnerRadius, this.settings.rings.snvRingWidth, snvData);
2015
- }
2016
- const lohMapper = new LohArcMapper(
2017
- dataHolder.lohInnerRadius,
2018
- this.settings.rings.lohRingWidth,
2019
- this.sampleName,
2020
- this.reference
2021
- );
2022
- const lohData = lohMapper.map(dataHolder.lohData);
2023
- if (lohData.length > 0) {
2024
- this.lohArcRing = new Ring(dataHolder.lohInnerRadius, this.settings.rings.lohRingWidth, lohData);
2025
- }
2026
- this.cnvArcsMapper = new CnvArcsMapper(
2027
- dataHolder.cnvInnerRadius,
2028
- this.settings.rings.cnvRingWidth,
2029
- this.settings,
2030
- this.sampleName,
2031
- this.reference,
2032
- dataHolder.percentilePositive,
2033
- dataHolder.percentileNegative,
2034
- dataHolder.cappedCnvMaxAbsValue,
2035
- dataHolder.cnvMaxPercentileAbs,
2036
- this.settings.cnv.unit,
2037
- this.settings.Disco.cnvRenderingType
2038
- );
2039
- const cnvData = this.cnvArcsMapper.map(dataHolder.cnvData);
2040
- if (cnvData.length > 0) {
2041
- this.cnvArcRing = new Ring(dataHolder.cnvInnerRadius, this.settings.rings.cnvRingWidth, cnvData);
2042
- }
2043
- if (this.settings.Disco.mutationWaterfallPlot && dataHolder.mutationWaterfallData?.length && dataHolder.mutationWaterfallInnerRadius !== void 0 && //Added this check to prevent TypeScript error "mutationWaterfallInnerRadius might be undefined"
2044
- (dataHolder.mutationWaterfallInnerRadius ?? 0) > 0 && dataHolder.mutationWaterfallLogRange) {
2045
- const mutationWaterfallMapper = new MutationWaterfallMapper(
2046
- dataHolder.mutationWaterfallInnerRadius,
2047
- this.settings.rings.mutationWaterfallRingWidth,
2048
- this.reference,
2049
- dataHolder.mutationWaterfallLogRange,
2050
- this.settings.Disco.mutationWaterfallColor || "#4d4d4d"
2051
- );
2052
- const waterfallData = mutationWaterfallMapper.map(dataHolder.mutationWaterfallData);
2053
- if (waterfallData.length > 0) {
2054
- this.mutationWaterfallRing = new Ring(
2055
- dataHolder.mutationWaterfallInnerRadius,
2056
- this.settings.rings.mutationWaterfallRingWidth,
2057
- waterfallData
2058
- );
2059
- }
2060
- }
2061
- const fusionMapper = new FusionMapper(dataHolder.fusionRadius, this.sampleName, this.reference);
2062
- const fusions = fusionMapper.map(dataHolder.fusionData);
2063
- let lohLegend;
2064
- if (this.settings.legend.lohLegendEnabled && dataHolder.lohMinValue && dataHolder.lohMaxValue) {
2065
- lohLegend = new LohLegend(dataHolder.lohMinValue, dataHolder.lohMaxValue);
2066
- }
2067
- const fusionLegendCounts = fusions.reduce(
2068
- (counts, fusion) => {
2069
- if (fusion.target && fusion.source.positionInChromosome.chromosome == fusion.target.positionInChromosome.chromosome)
2070
- counts.intrachromosomal++;
2071
- else counts.interchromosomal++;
2072
- return counts;
2073
- },
2074
- { interchromosomal: 0, intrachromosomal: 0 }
2075
- );
2076
- const legend = new Legend(
2077
- this.settings.legend.snvTitle,
2078
- this.settings.legend.cnvTitle,
2079
- this.settings.legend.lohTitle,
2080
- this.settings.legend.fusionTitle,
2081
- this.settings.Disco.cnvPercentile,
2082
- this.settings.Disco.cnvCutoffMode,
2083
- this.snvArcsMapper ? this.snvArcsMapper.snvClassMap : /* @__PURE__ */ new Map(),
2084
- this.cnvArcsMapper ? this.cnvArcsMapper.cnvClassMap : /* @__PURE__ */ new Map(),
2085
- this.settings.Disco.cnvRenderingType,
2086
- fusions.length > 0,
2087
- this.discoInteractions,
2088
- lohLegend,
2089
- this.settings.Disco.mutationWaterfallPlot && this.mutationWaterfallRing ? {
2090
- color: this.settings.Disco.mutationWaterfallColor || "#4d4d4d",
2091
- onColorChange: this.discoInteractions.onMutationWaterfallColorChange
2092
- } : void 0,
2093
- fusionLegendCounts
2094
- );
2095
- const rings = new Rings(
2096
- labelsRing,
2097
- chromosomesRing,
2098
- this.nonExonicArcRing,
2099
- this.snvArcRing,
2100
- this.cnvArcRing,
2101
- this.lohArcRing,
2102
- this.mutationWaterfallRing
2103
- );
2104
- return new ViewModel(
2105
- this.settings,
2106
- rings,
2107
- legend,
2108
- fusions,
2109
- dataHolder,
2110
- this.genesetName,
2111
- data.filter((i) => i.dt == dtsnvindel).length
2112
- );
2113
- }
2114
- };
2115
-
2116
- // plots/disco/viewmodel/ViewModelMapper.ts
2117
- var ViewModelMapper = class _ViewModelMapper {
2118
- static {
2119
- this.snvClassLayer = {
2120
- M: "exonic",
2121
- E: "exonic",
2122
- F: "exonic",
2123
- N: "exonic",
2124
- S: "exonic",
2125
- D: "exonic",
2126
- I: "exonic",
2127
- P: "exonic",
2128
- L: "exonic",
2129
- Utr3: "exonic",
2130
- Utr5: "exonic",
2131
- ProteinAltering: "exonic",
2132
- mnv: "non-exonic",
2133
- ITD: "non-exonic",
2134
- insertion: "non-exonic",
2135
- deletion: "non-exonic",
2136
- Intron: "non-exonic",
2137
- X: "non-exonic",
2138
- noncoding: "non-exonic"
2139
- };
2140
- }
2141
- constructor(settings, discoInteractions) {
2142
- this.settings = JSON.parse(JSON.stringify(settings));
2143
- this.discoInteractions = discoInteractions;
2144
- }
2145
- applyRadius() {
2146
- const radius = this.settings.Disco.radius;
2147
- if (!radius) return;
2148
- const scale = radius / this.settings.rings.labelLinesInnerRadius;
2149
- this.settings.rings.labelLinesInnerRadius *= scale;
2150
- this.settings.rings.labelsToLinesDistance *= scale;
2151
- this.settings.rings.chromosomeInnerRadius *= scale;
2152
- }
2153
- static computeDynamicRadius(data) {
2154
- let ringCount = 0;
2155
- if (data.some((d) => d.dt == dtsnvindel)) ringCount++;
2156
- if (data.some((d) => d.dt == dtcnv)) ringCount++;
2157
- if (data.some((d) => d.dt == dtloh)) ringCount++;
2158
- if (ringCount <= 1) return 200;
2159
- if (ringCount == 2) return 250;
2160
- return 300;
2161
- }
2162
- map(opts) {
2163
- const chrSizes = opts.args.genome.majorchr;
2164
- const chromosomesOverride = {};
2165
- for (const chr of Object.keys(chrSizes)) {
2166
- if (!this.settings.Disco.hiddenChromosomes.includes(chr)) {
2167
- chromosomesOverride[chr] = chrSizes[chr];
2168
- }
2169
- }
2170
- const sampleName = opts.args.sampleName;
2171
- const genome = opts.args.genome;
2172
- const prioritizedGenes = genome?.geneset?.[0] ? genome.geneset[0].lst : [];
2173
- const genesetName = genome?.geneset?.[0] ? genome.geneset[0].name : "";
2174
- const data = opts.args.data;
2175
- if (this.settings.Disco.autoRadius) {
2176
- this.settings.Disco.radius = _ViewModelMapper.computeDynamicRadius(data);
2177
- }
2178
- this.applyRadius();
2179
- const reference = new Reference(this.settings, chrSizes, chromosomesOverride);
2180
- const dataMapper = new DataMapper(this.settings, reference, sampleName, prioritizedGenes);
2181
- return new ViewModelProvider(
2182
- this.settings,
2183
- dataMapper,
2184
- reference,
2185
- sampleName,
2186
- genesetName,
2187
- this.discoInteractions
2188
- ).map(data);
2189
- }
2190
- };
2191
-
2192
- // plots/disco/legend/LegendJSONMapper.ts
2193
- var LegendJSONMapper = class {
2194
- constructor(cappedCnvMaxAbsValue) {
2195
- this.cappedCnvMaxAbsValue = cappedCnvMaxAbsValue;
2196
- }
2197
- map(legend) {
2198
- const legendJSON = [];
2199
- let order = 0;
2200
- if (legend.snvClassMap) {
2201
- this.mapSnv(legend, legendJSON, order++);
2202
- }
2203
- if (legend.cnvRenderingType == "heatmap" /* heatmap */) {
2204
- this.mapCnvHeatmap(legend, legendJSON, order++);
2205
- } else if (legend.cnvRenderingType == "bar" /* bar */) {
2206
- if (legend.cnvClassMap) {
2207
- this.mapCnvBar(legend, legendJSON, order++);
2208
- }
2209
- }
2210
- if (legend.lohLegend) {
2211
- this.mapLoh(legend, legendJSON, order++);
2212
- }
2213
- if (legend.fusionLegend) {
2214
- this.mapFusion(legend, legendJSON, order++);
2215
- }
2216
- if (legend.mutationWaterfallLegend) {
2217
- this.mapMutationWaterfall(legend, legendJSON, order++);
2218
- }
2219
- return legendJSON;
2220
- }
2221
- mapSnv(legend, legendJSON, order) {
2222
- const snvItems = [];
2223
- let snvOrder = 0;
2224
- for (const [snvKey, snvLegendElement] of legend.snvClassMap) {
2225
- snvItems.push({
2226
- termid: legend.snvTitle,
2227
- key: snvKey,
2228
- text: `${snvLegendElement.snvType} (${snvLegendElement.count})`,
2229
- color: snvLegendElement.color,
2230
- order: snvOrder++
2231
- });
2232
- }
2233
- legendJSON.push({
2234
- name: legend.snvTitle,
2235
- order,
2236
- items: snvItems
2237
- });
2238
- }
2239
- mapCnvBar(legend, legendJSON, order) {
2240
- if (!legend.cnvClassMap) return;
2241
- const gain = legend.cnvClassMap.get(1 /* Gain */);
2242
- const loss = legend.cnvClassMap.get(0 /* Loss */);
2243
- const cap = legend.cnvClassMap.get(2 /* Cap */);
2244
- if (gain && loss && cap) {
2245
- let cnvOrder = 0;
2246
- const cnvItems = [];
2247
- if (gain.value > 0) {
2248
- cnvItems.push({
2249
- termid: legend.cnvTitle,
2250
- key: 1 /* Gain */,
2251
- text: `Max: ${gain.value}`,
2252
- color: gain.color,
2253
- order: cnvOrder++
2254
- });
2255
- }
2256
- if (loss.value < 0) {
2257
- cnvItems.push({
2258
- termid: legend.cnvTitle,
2259
- key: 0 /* Loss */,
2260
- text: `Min: ${loss.value}`,
2261
- color: loss.color,
2262
- order: cnvOrder++
2263
- });
2264
- }
2265
- cnvItems.push({
2266
- termid: legend.cnvTitle,
2267
- key: 2 /* Cap */,
2268
- text: `Capping: ${cap.value}`,
2269
- color: cap.color,
2270
- order: cnvOrder++
2271
- // ,
2272
- // onClickCallback: this.onClickCallback
2273
- });
2274
- legendJSON.push({
2275
- name: legend.cnvTitle,
2276
- id: "sjpp-disco-cnv-legend",
2277
- order,
2278
- items: cnvItems
2279
- });
2280
- }
2281
- }
2282
- mapCnvHeatmap(legend, legendJSON, order) {
2283
- if (!legend.cnvClassMap) return;
2284
- const gain = legend.cnvClassMap.get(1 /* Gain */);
2285
- const loss = legend.cnvClassMap.get(0 /* Loss */);
2286
- const cap = legend.cnvClassMap.get(2 /* Cap */);
2287
- if (gain && loss && cap) {
2288
- let cnvOrder = 0;
2289
- const cnvItems = [];
2290
- const base = {
2291
- termid: legend.cnvTitle,
2292
- width: 100,
2293
- order: cnvOrder++,
2294
- isLegendItem: true,
2295
- dt: 4
2296
- };
2297
- if (gain.value > 0 && loss.value < 0) {
2298
- const maxValue = Math.max(Math.abs(loss.value), gain.value);
2299
- const domain = [-maxValue, 0, maxValue];
2300
- cnvItems.push(
2301
- Object.assign(
2302
- {
2303
- key: 3 /* LossGain */,
2304
- domain,
2305
- scale: linear([-1, 0, 1], [loss.color, "white", gain.color]),
2306
- labels: { left: "Loss", right: "Gain" },
2307
- numericInputs: {
2308
- cutoffMode: legend.cnvCutoffMode,
2309
- defaultPercentile: legend.cnvPercentile,
2310
- callback: (obj) => legend.discoInteractions.colorScaleNumericInputsCallback(obj)
2311
- }
2312
- },
2313
- base
2314
- )
2315
- );
2316
- } else {
2317
- if (gain.value > 0) {
2318
- cnvItems.push(
2319
- Object.assign(
2320
- {
2321
- key: 1 /* Gain */,
2322
- text: "Copy number gain",
2323
- domain: [0, gain.value],
2324
- scale: linear([0, 1], ["white", gain.color])
2325
- },
2326
- base
2327
- )
2328
- );
2329
- }
2330
- if (loss.value < 0) {
2331
- cnvItems.push(
2332
- Object.assign(
2333
- {
2334
- key: 0 /* Loss */,
2335
- text: "Copy number loss",
2336
- domain: [loss.value, 0],
2337
- scale: linear([0, 1], [loss.color, "white"])
2338
- },
2339
- base
2340
- )
2341
- );
2342
- }
2343
- }
2344
- legendJSON.push({
2345
- name: legend.cnvTitle,
2346
- order,
2347
- id: "sjpp-disco-cnv-legend",
2348
- items: cnvItems
2349
- });
2350
- }
2351
- }
2352
- mapLoh(legend, legendJSON, order) {
2353
- if (!legend.lohLegend) return;
2354
- const lohItems = [];
2355
- lohItems.push({
2356
- termid: legend.lohTitle,
2357
- key: "min",
2358
- text: "min",
2359
- color: legend.lohLegend.colorStartValue,
2360
- order: 0
2361
- });
2362
- lohItems.push({
2363
- termid: legend.lohTitle,
2364
- key: "max",
2365
- text: "max",
2366
- color: legend.lohLegend.colorEndValue,
2367
- order: 1
2368
- });
2369
- legendJSON.push({
2370
- name: legend.lohTitle,
2371
- order,
2372
- items: lohItems
2373
- });
2374
- }
2375
- mapFusion(legend, legendJSON, order) {
2376
- const fusionItems = [];
2377
- fusionItems.push({
2378
- termid: legend.fusionTitle,
2379
- key: "#6A3D9A" /* Interchromosomal */,
2380
- text: `Interchromosomal (${legend.fusionLegendCounts.interchromosomal})`,
2381
- color: "#6A3D9A" /* Interchromosomal */.valueOf(),
2382
- order: 0
2383
- });
2384
- fusionItems.push({
2385
- termid: legend.fusionTitle,
2386
- key: "#1B9E77" /* Intrachromosomal */,
2387
- text: `Intrachromosomal (${legend.fusionLegendCounts.intrachromosomal})`,
2388
- color: "#1B9E77" /* Intrachromosomal */.valueOf(),
2389
- order: 1
2390
- });
2391
- legendJSON.push({
2392
- name: legend.fusionTitle,
2393
- order,
2394
- items: fusionItems
2395
- });
2396
- }
2397
- mapMutationWaterfall(legend, legendJSON, order) {
2398
- if (!legend.mutationWaterfallLegend) return;
2399
- const waterfallItems = [];
2400
- waterfallItems.push({
2401
- termid: "Mutation Waterfall Plot",
2402
- key: "mutation-waterfall-color",
2403
- text: "Dot color",
2404
- color: legend.mutationWaterfallLegend.color,
2405
- order: 0,
2406
- colorPicker: true,
2407
- inputWidth: 28,
2408
- width: 0,
2409
- onColorChange: legend.mutationWaterfallLegend.onColorChange
2410
- });
2411
- waterfallItems.push({
2412
- termid: "Mutation Waterfall Plot",
2413
- key: "mutation-waterfall-axis",
2414
- text: "Axis: log10 intermutation distance",
2415
- order: 1,
2416
- skipIcon: true,
2417
- width: 0
2418
- });
2419
- legendJSON.push({
2420
- name: "Mutation Waterfall Plot",
2421
- order,
2422
- items: waterfallItems
2423
- });
2424
- }
2425
- };
2426
-
2427
- // plots/disco/cnv/renderCnvSourceLegend.ts
2428
- function parseSetLabel(set, index) {
2429
- let text = set.name || `Set ${index + 1}`;
2430
- let href;
2431
- let target = "_blank";
2432
- if (set.nameHtml) {
2433
- const parser = new DOMParser();
2434
- const doc = parser.parseFromString(set.nameHtml, "text/html");
2435
- const anchor = doc.querySelector("a");
2436
- if (anchor) {
2437
- href = anchor.getAttribute("href") || void 0;
2438
- target = anchor.getAttribute("target") || "_blank";
2439
- text = anchor.textContent?.trim() || text;
2440
- } else {
2441
- text = doc.body.textContent?.trim() || text;
2442
- }
2443
- }
2444
- return { text, href, target };
2445
- }
2446
- function renderCnvSourceLegend(legendG, datasets, fontSize, onChange) {
2447
- if (!legendG || legendG.empty()) throw new Error("legendG is required");
2448
- if (!datasets || datasets.length === 0) throw new Error("at least one dataset is required");
2449
- legendG.select("g.sjpp-cnv-source").remove();
2450
- const gBBox = legendG.node().getBBox();
2451
- const cnvSrcWrapper = legendG.append("g").attr("class", "sjpp-cnv-source").attr("transform", `translate(${gBBox.width},${gBBox.y + fontSize})`);
2452
- const btnPaddingX = Math.round(fontSize * 0.8);
2453
- const btnHgt = Math.round(fontSize * 1.8);
2454
- const btnWrapper = cnvSrcWrapper.append("g").attr("transform", `translate(${fontSize},${-btnHgt / 2})`).style("cursor", "pointer").on("click", function(event) {
2455
- event.stopPropagation();
2456
- showCnvMenu(this);
2457
- });
2458
- 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());
2459
- const textW = btnText.node() ? Math.ceil(btnText.node().getBBox().width) : 0;
2460
- const btnWdt = textW + btnPaddingX * 2;
2461
- btnWrapper.insert("rect", ":first-child").attr("width", btnWdt).attr("height", btnHgt).attr("rx", 10).attr("ry", 10).style("fill", "#f2f2f2");
2462
- btnText.attr("x", btnWdt / 2).attr("text-anchor", "middle");
2463
- const cnvMenu = new Menu({
2464
- onHide: () => {
2465
- btnText.text("Select source \u25B2".toUpperCase());
2466
- }
2467
- });
2468
- function showCnvMenu(dom) {
2469
- btnText.text("Select source \u25BC".toUpperCase());
2470
- cnvMenu.clear().showunder(dom);
2471
- cnvMenu.d.append("div").text("Choose data source for CNV:").style("margin", "5px 5px 0 5px");
2472
- const tableHolder = cnvMenu.d.append("div").style("padding", "5px");
2473
- const { columns, rows } = buildTableData(datasets);
2474
- const [, activeIndex] = getActiveDataset(datasets);
2475
- renderTable({
2476
- columns,
2477
- rows,
2478
- div: tableHolder,
2479
- singleMode: true,
2480
- maxWidth: "70vw",
2481
- maxHeight: "60vh",
2482
- selectedRows: [activeIndex],
2483
- header: { allowSort: false },
2484
- noButtonCallback: (rowIndex, node) => {
2485
- const inputIndex = Number(node?.value);
2486
- const selectedIndex = Number.isNaN(inputIndex) ? rowIndex : inputIndex;
2487
- if (!Number.isNaN(selectedIndex)) onChange(selectedIndex);
2488
- cnvMenu.hide();
2489
- }
2490
- });
2491
- }
2492
- }
2493
- function getActiveDataset(datasets) {
2494
- let currentIndex = datasets.findIndex((d) => d.inuse);
2495
- if (currentIndex == -1) currentIndex = 0;
2496
- return [datasets[currentIndex], currentIndex];
2497
- }
2498
- function buildTableData(datasets) {
2499
- const attrKeys = [];
2500
- for (const set of datasets) {
2501
- if (!set.attrs) continue;
2502
- for (const key of Object.keys(set.attrs)) {
2503
- if (!attrKeys.includes(key)) attrKeys.push(key);
2504
- }
2505
- }
2506
- const columns = [{ label: "Source" }];
2507
- for (const key of attrKeys) columns.push({ label: key });
2508
- const rows = datasets.map((set, index) => {
2509
- const sourceInfo = parseSetLabel(set, index);
2510
- const cells = [];
2511
- if (set.nameHtml) cells.push({ html: set.nameHtml });
2512
- else if (sourceInfo.href) cells.push({ value: sourceInfo.text, url: sourceInfo.href });
2513
- else cells.push({ value: sourceInfo.text });
2514
- for (const key of attrKeys) {
2515
- const value = set.attrs?.[key];
2516
- cells.push({ value: value ?? "" });
2517
- }
2518
- return cells;
2519
- });
2520
- return { columns, rows };
2521
- }
2522
-
2523
- // plots/disco/legend/LegendRenderer.ts
2524
- var LegendRenderer = class {
2525
- constructor(cappedCnvMaxAbsValue = 0, fontSize) {
2526
- this.fontSize = fontSize;
2527
- this.legendJSONMapper = new LegendJSONMapper(cappedCnvMaxAbsValue);
2528
- }
2529
- render(holder, legend, xOffset, svgw, svgh, viewModel, onCnvSourceSelect) {
2530
- const svgLegendRenderer = svgLegend({
2531
- holder: holder.append("g").attr("data-testid", "sjpp_disco_plot_legend"),
2532
- rectFillFxn: (d2) => d2.color,
2533
- iconStroke: "#aaa"
2534
- });
2535
- const data = this.legendJSONMapper.map(legend);
2536
- const legendTitles = data.map((d2) => d2.name.trim());
2537
- const maxLabelWidth = getMaxLabelWidth(holder, legendTitles);
2538
- const d = {
2539
- xOffset: maxLabelWidth + xOffset
2540
- };
2541
- svgLegendRenderer(data, {
2542
- settings: Object.assign(
2543
- {},
2544
- {
2545
- svgw,
2546
- svgh,
2547
- dimensions: d,
2548
- fontsize: this.fontSize
2549
- }
2550
- )
2551
- });
2552
- const altCnv = viewModel.appState.args.alternativeDataByDt?.[dtcnv];
2553
- if (altCnv && altCnv.length > 0) {
2554
- const legendG = holder.select('g[data-testid="sjpp_disco_plot_legend"]');
2555
- const cnvLegendG = legendG.select("#sjpp-disco-cnv-legend");
2556
- if (!legendG.empty()) {
2557
- const add2G = cnvLegendG.empty() ? legendG : cnvLegendG;
2558
- renderCnvSourceLegend(add2G, altCnv, this.fontSize, onCnvSourceSelect);
2559
- }
2560
- }
2561
- }
2562
- };
2563
-
2564
- // plots/disco/chromosome/ChromosomesRenderer.ts
2565
- var ChromosomesRenderer = class {
2566
- constructor(padAngle, innerRadius, outerRadius, fontSize) {
2567
- this.padAngle = padAngle;
2568
- this.innerRadius = innerRadius;
2569
- this.outerRadius = outerRadius;
2570
- this.fontSize = fontSize;
2571
- }
2572
- render(holder, elements) {
2573
- const pie = pie_default().padAngle(this.padAngle).value((d) => d.size).sort(null);
2574
- const arcData = pie(elements);
2575
- const arc = arc_default().innerRadius(this.innerRadius).outerRadius(this.outerRadius);
2576
- const arcs = holder.append("g").attr("data-testid", "sjpp_chromosomes_arc_group");
2577
- const menu = MenuProvider.create();
2578
- arcs.selectAll("path").data(arcData).enter().append("path").attr("d", arc).attr("fill", "black").on("mousemove", (event, d) => {
2579
- const [x, y] = pointer_default(event, arcs.node());
2580
- let angle = Math.atan2(y, x) + Math.PI / 2;
2581
- if (angle < 0) angle += 2 * Math.PI;
2582
- const frac = Math.max(0, Math.min(1, (angle - d.data.startAngle) / (d.data.endAngle - d.data.startAngle)));
2583
- const pos = Math.round(frac * d.data.size);
2584
- menu.d.html(`<span style="font-size:.8em">chr${d.data.text}</span> ${bplen(pos)}`).style("padding", "5px");
2585
- menu.show(event.x, event.y);
2586
- }).on("mouseenter", (event) => {
2587
- select_default(event.currentTarget).attr("stroke", "orange").attr("stroke-width", 1);
2588
- }).on("mouseleave", (event) => {
2589
- select_default(event.currentTarget).attr("stroke", null).attr("stroke-width", null);
2590
- menu.hide();
2591
- });
2592
- arcs.selectAll("text").data(arcData).enter().append("text").attr("transform", (d) => {
2593
- return `translate(${arc.centroid(d)}) rotate(${d.data.angle * 180 / Math.PI - 90})${d.data.angle > Math.PI ? "rotate(180)" : ""}`;
2594
- }).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");
2595
- }
2596
- };
2597
-
2598
- // plots/disco/label/LabelsRenderer.ts
2599
- var LabelsRenderer = class {
2600
- constructor(animationDuration, fontSize, geneClickListener) {
2601
- this.animationDuration = animationDuration;
2602
- this.fontSize = fontSize;
2603
- this.geneClickListener = geneClickListener;
2604
- }
2605
- render(holder, elements, collisions) {
2606
- const labelsG = holder.append("g");
2607
- const lineFunction = line_default().x((point) => point.x).y((point) => point.y);
2608
- const menu = MenuProvider.create();
2609
- labelsG.selectAll(".group").data(elements).enter().append("g").attr("class", "group").each((label, i, nodes) => {
2610
- const g = select_default(nodes[i]);
2611
- 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", () => {
2612
- if (label.mutationsTooltip) {
2613
- this.geneClickListener(
2614
- label.text,
2615
- label.mutationsTooltip.map((value) => value.mname)
2616
- );
2617
- }
2618
- }).on("mouseover", (mouseEvent) => {
2619
- const table = table2col({ holder: menu.d });
2620
- this.createTooltip(table, label);
2621
- menu.show(mouseEvent.x, mouseEvent.y);
2622
- }).on("mouseout", () => {
2623
- menu.clear();
2624
- menu.hide();
2625
- });
2626
- g.append("path").attr("class", "chord-tick").datum(label.line.points).style("stroke", label.color).style("fill", "none").attr("d", lineFunction);
2627
- });
2628
- labelsG.selectAll(".group").each((label, i, nodes) => {
2629
- const collision = collisions ? collisions.find((l) => l.text === label.text) : void 0;
2630
- if (collision) {
2631
- const g = select_default(nodes[i]);
2632
- g.selectAll(".chord-text").datum(collision).transition().duration(this.animationDuration).attr("transform", collision.transform).style("text-anchor", collision.textAnchor);
2633
- g.selectAll(".chord-tick").datum(collision.line.points).transition().duration(this.animationDuration).style("fill", "none").attr("d", lineFunction);
2634
- }
2635
- });
2636
- }
2637
- createTooltip(table, label) {
2638
- if (label.mutationsTooltip) {
2639
- const [td1, td2] = table.addRow();
2640
- td1.text("Gene");
2641
- td2.append("span").style("margin-left", "5px").text(label.text);
2642
- label.mutationsTooltip.forEach((mutation) => {
2643
- {
2644
- const [td12, td22] = table.addRow();
2645
- td12.text("Mutation");
2646
- 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}`);
2647
- if (hasAnyValidVafEntry(mutation.vafs)) {
2648
- appendVafBars(td22, mutation.vafs);
2649
- }
2650
- }
2651
- });
2652
- }
2653
- if (label.fusionTooltip) {
2654
- const [td1, td2] = table.addRow();
2655
- td1.text("Data type");
2656
- td2.append("span").text("Fusion transcript");
2657
- label.fusionTooltip.forEach((fusionTooltip) => {
2658
- const [td12, td22] = table.addRow();
2659
- td12.text("Position");
2660
- td22.append("span").text(
2661
- ` ${fusionTooltip.geneA ? fusionTooltip.geneA : "?"} ${fusionTooltip.chrA}:${fusionTooltip.posA}
2662
- ${fusionTooltip.strandA == "+" ? "forward" : "reverse"} > ${fusionTooltip.geneB ? fusionTooltip.geneB : "?"} ${fusionTooltip.chrB}:${fusionTooltip.posB} ${fusionTooltip.strandB == "+" ? "forward" : "reverse"} `
2663
- );
2664
- });
2665
- }
2666
- if (label.cnvTooltip) {
2667
- label.cnvTooltip.forEach((cnv) => {
2668
- const [td1, td2] = table.addRow();
2669
- td1.text("CNV");
2670
- td2.append("span").style("margin-left", "5px").style("background-color", cnv.color).html("&nbsp;&nbsp;");
2671
- 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}`);
2672
- });
2673
- }
2674
- }
2675
- };
2676
-
2677
- // plots/disco/defaults.ts
2678
- function discoDefaults(overrides = {}, app) {
2679
- const hiddenChromosomes = [];
2680
- if (app?.vocabApi?.termdbConfig?.queries?.singleSampleMutation?.discoPlot?.skipChrM) {
2681
- hiddenChromosomes.push("chrM");
2682
- }
2683
- const defaults = {
2684
- downloadImgName: "disco.plot",
2685
- Disco: {
2686
- centerText: null,
2687
- cnvCapping: 5,
2688
- isOpen: false,
2689
- prioritizeGeneLabelsByGeneSets: false,
2690
- showPrioritizeGeneLabelsByGeneSets: false,
2691
- showGeneNames: true,
2692
- mutationWaterfallPlot: false,
2693
- mutationWaterfallColor: "#4d4d4d",
2694
- minMutationFraction: 0,
2695
- cnvRenderingType: "heatmap" /* heatmap */,
2696
- cnvPercentile: 90,
2697
- // 90th percentile for removing outliers
2698
- cnvCutoffMode: "percentile",
2699
- autoRadius: true,
2700
- radius: 300,
2701
- fusionOpacity: 1,
2702
- hiddenChromosomes
2703
- },
2704
- rings: {
2705
- nonExonicRingWidth: 20,
2706
- snvRingWidth: 20,
2707
- lohRingWidth: 20,
2708
- cnvRingWidth: 30,
2709
- mutationWaterfallRingWidth: 35,
2710
- snvRingFilters: ["exonic"],
2711
- chromosomeInnerRadius: 190,
2712
- chromosomeWidth: 20,
2713
- labelLinesInnerRadius: 210,
2714
- labelsToLinesDistance: 30,
2715
- labelsToLinesGap: 2,
2716
- nonExonicRingEnabled: true,
2717
- nonExonicFilterValues: ["non-exonic"]
2718
- },
2719
- verticalPadding: 0,
2720
- horizontalPadding: 50,
2721
- layerScaler: 1,
2722
- padAngle: 2e-3,
2723
- //0.01, //0.04,
2724
- label: {
2725
- fontSize: 12,
2726
- maxDeltaAngle: 0.05,
2727
- animationDuration: 1e3,
2728
- overlapAngleFactor: 5
2729
- // 5 is set by testing, because label height is not known before rendering
2730
- },
2731
- cnv: {
2732
- capping: 5,
2733
- percentile: 80,
2734
- ampColor: "#D6683C",
2735
- lossColor: "#67a9cf",
2736
- cappedAmpColor: "#8B0000",
2737
- cappedLossColor: "#00008B",
2738
- unit: "Unit"
2739
- },
2740
- snv: {
2741
- maxMutationCount: 1e4
2742
- },
2743
- legend: {
2744
- snvTitle: "Mutations",
2745
- cnvTitle: "CNV",
2746
- lohTitle: "LOH",
2747
- fusionTitle: "SV",
2748
- // Structural Variants (color by co-location)
2749
- lohLegendEnabled: true,
2750
- fontSize: 12,
2751
- rowHeight: 48
2752
- },
2753
- menu: {
2754
- padding: 5
2755
- }
2756
- };
2757
- if (overrides?.Disco?.radius != null && (overrides.Disco.radius > 1e3 || overrides.Disco.radius < 200)) {
2758
- console.log(`${overrides?.Disco?.radius} is greater or lower than the min and max for the radius`);
2759
- }
2760
- return copyMerge(defaults, overrides);
2761
- }
2762
-
2763
- // plots/disco/snv/NonExonicSnvRenderer.ts
2764
- var NonExonicSnvRenderer = class {
2765
- constructor(geneClickListener) {
2766
- this.geneClickListener = geneClickListener;
2767
- }
2768
- render(holder, elements) {
2769
- const arcGenerator = arc_default();
2770
- const arcs = holder.append("g");
2771
- const menu = MenuProvider.create();
2772
- arcs.selectAll("path").data(elements).enter().append("path").attr("d", (d) => arcGenerator(d)).attr("fill", (d) => d.color).on("mouseover", (mouseEvent, arc) => {
2773
- const table = table2col({ holder: menu.d });
2774
- const snv = structuredClone(arc);
2775
- snv.dt = dtsnvindel;
2776
- snv.class = arc.dataClass;
2777
- snv.gene = snv.text;
2778
- {
2779
- const [td1, td2] = table.addRow();
2780
- td1.text("Consequence");
2781
- td2.append("span").text(snv.mname);
2782
- td2.append("span").style("margin-left", "5px").style("color", snv.color).style("font-size", ".8em").text(snv.dataClass);
2783
- }
2784
- {
2785
- const [td1, td2] = table.addRow();
2786
- td1.text(snv.ref && snv.alt ? "Mutation" : "Position");
2787
- td2.append("span").text(`${snv.chr}:${snv.pos + 1} ${snv.ref && snv.alt ? snv.ref + ">" + snv.alt : ""}`);
2788
- }
2789
- if (snv.gene) {
2790
- const [td1, td2] = table.addRow();
2791
- td1.text("Gene");
2792
- td2.text(snv.gene);
2793
- }
2794
- if (snv.occurrence > 1) {
2795
- const [td1, td2] = table.addRow();
2796
- td1.text("Occurrence");
2797
- td2.text(snv.occurrence);
2798
- }
2799
- if (hasAnyValidVafEntry(arc.vafs)) {
2800
- const [td1, td2] = table.addRow();
2801
- td1.text("Read count");
2802
- appendVafBars(td2, arc.vafs);
2803
- }
2804
- menu.show(mouseEvent.x, mouseEvent.y);
2805
- }).on("mouseout", () => {
2806
- menu.clear();
2807
- menu.hide();
2808
- }).on("click", (mouseEvent, arc) => {
2809
- this.geneClickListener(arc.text, [arc.mname]);
2810
- });
2811
- }
2812
- };
2813
-
2814
- // plots/disco/snv/SnvRenderer.ts
2815
- var SnvRenderer = class {
2816
- constructor(svnWidth, geneClickListener) {
2817
- this.svnWidth = svnWidth;
2818
- this.geneClickListener = geneClickListener;
2819
- }
2820
- render(holder, elements) {
2821
- if (elements.length > 0) {
2822
- const svnInnerRadius = elements[0].innerRadius;
2823
- const fullArcRenderer = new FullArcRenderer(svnInnerRadius, this.svnWidth, "#6464641A");
2824
- fullArcRenderer.render(holder);
2825
- }
2826
- const arcGenerator = arc_default();
2827
- const arcs = holder.append("g");
2828
- const menu = MenuProvider.create();
2829
- arcs.selectAll("path").data(elements).enter().append("path").attr("d", (d) => arcGenerator(d)).attr("fill", (d) => d.color).on("mouseover", (mouseEvent, arc) => {
2830
- const table = table2col({ holder: menu.d });
2831
- const snv = structuredClone(arc);
2832
- snv.dt = dtsnvindel;
2833
- snv.class = arc.dataClass;
2834
- snv.gene = snv.text;
2835
- {
2836
- const [td1, td2] = table.addRow();
2837
- td1.text("Consequence");
2838
- td2.append("span").text(snv.mname);
2839
- td2.append("span").style("margin-left", "5px").style("color", snv.color).style("font-size", ".8em").text(snv.dataClass);
2840
- }
2841
- {
2842
- const [td1, td2] = table.addRow();
2843
- td1.text(snv.ref && snv.alt ? "Mutation" : "Position");
2844
- td2.append("span").text(`${snv.chr}:${snv.pos + 1} ${snv.ref && snv.alt ? snv.ref + ">" + snv.alt : ""}`);
2845
- }
2846
- if (snv.gene) {
2847
- const [td1, td2] = table.addRow();
2848
- td1.text("Gene");
2849
- td2.text(snv.gene);
2850
- }
2851
- if (snv.occurrence > 1) {
2852
- const [td1, td2] = table.addRow();
2853
- td1.text("Occurrence");
2854
- td2.text(snv.occurrence);
2855
- }
2856
- if (hasAnyValidVafEntry(arc.vafs)) {
2857
- const [td1, td2] = table.addRow();
2858
- td1.text("Read count");
2859
- appendVafBars(td2, arc.vafs);
2860
- }
2861
- menu.show(mouseEvent.x, mouseEvent.y);
2862
- }).on("mouseout", () => {
2863
- menu.clear();
2864
- menu.hide();
2865
- }).on("click", (mouseEvent, arc) => {
2866
- this.geneClickListener(arc.text, [arc.mname]);
2867
- });
2868
- }
2869
- };
2870
-
2871
- // plots/disco/loh/LohRenderer.ts
2872
- var LohRenderer = class {
2873
- render(holder, elements) {
2874
- const arcGenerator = arc_default();
2875
- const arcs = holder.append("g");
2876
- const menu = MenuProvider.create();
2877
- arcs.selectAll("path").data(elements).enter().append("path").attr("d", (d) => arcGenerator(d)).attr("fill", (d) => d.color).on("mouseover", (mouseEvent, arc) => {
2878
- const table = table2col({ holder: menu.d });
2879
- const loh = structuredClone(arc);
2880
- loh.dt = dtloh;
2881
- loh.gene = loh.text;
2882
- {
2883
- const [td12, td22] = table.addRow();
2884
- td12.text("Data type");
2885
- td22.append("span").style("margin-left", "5px").text("Loss of Heterozygosity");
2886
- }
2887
- const [td1, td2] = table.addRow();
2888
- td1.text("Position");
2889
- td2.append("span").text(`${arc.chr}:${arc.start}-${arc.stop}`);
2890
- menu.show(mouseEvent.x, mouseEvent.y);
2891
- }).on("mouseout", () => {
2892
- menu.clear();
2893
- menu.hide();
2894
- });
2895
- }
2896
- };
2897
-
2898
- // plots/disco/cnv/CnvBarRenderer.ts
2899
- var CnvBarRenderer = class {
2900
- render(holder, elements) {
2901
- const arcGenerator = arc_default();
2902
- const arcs = holder.append("g");
2903
- const hoverOverlay = holder.append("g").attr("class", "hover-overlay").style("pointer-events", "none");
2904
- const menu = MenuProvider.create();
2905
- arcs.selectAll("path").data(elements).enter().append("path").attr("d", (d) => arcGenerator(d)).attr("fill", (d) => d.color).on("mouseover", (mouseEvent, arc) => {
2906
- hoverOverlay.selectAll("*").remove();
2907
- hoverOverlay.append("path").datum(arc).attr("d", arcGenerator(arc)).attr("fill", "none").attr("stroke", "black").attr("stroke-width", 1);
2908
- const cnv = structuredClone(arc);
2909
- cnv.dt = dtcnv;
2910
- cnv.samples = [{ sample_id: arc.sampleName }];
2911
- cnv.gene = cnv.text;
2912
- const table = table2col({ holder: menu.d });
2913
- {
2914
- const [c1, c2] = table.addRow();
2915
- c1.text("CNV");
2916
- c2.html(`<span style="background:${cnv.color}">&nbsp;&nbsp;</span> ${cnv.value}`);
2917
- }
2918
- {
2919
- const [c1, c2] = table.addRow();
2920
- c1.text("Position");
2921
- c2.text(cnv.chr + ":" + cnv.start + "-" + cnv.stop);
2922
- }
2923
- {
2924
- const [c1, c2] = table.addRow();
2925
- c1.text("Unit");
2926
- c2.text(cnv.value);
2927
- }
2928
- menu.show(mouseEvent.x, mouseEvent.y);
2929
- }).on("mouseout", () => {
2930
- hoverOverlay.selectAll("*").remove();
2931
- menu.clear();
2932
- menu.hide();
2933
- });
2934
- }
2935
- };
2936
-
2937
- // plots/disco/cnv/CnvHeatmapRenderer.ts
2938
- var CnvHeatmapRenderer = class {
2939
- constructor(positivePercentile = 0, negativePercentile = 0) {
2940
- this.positivePercentile = positivePercentile;
2941
- this.negativePercentile = negativePercentile;
2942
- }
2943
- render(holder, elements) {
2944
- const arcGenerator = arc_default();
2945
- const arcs = holder.append("g");
2946
- const hoverOverlay = holder.append("g").attr("class", "hover-overlay").style("pointer-events", "none");
2947
- const menu = MenuProvider.create();
2948
- 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) => {
2949
- hoverOverlay.append("path").datum(arc).attr("d", arcGenerator(arc)).attr("fill", "none").attr("stroke", "black").attr("stroke-width", 1);
2950
- const table = table2col({ holder: menu.d });
2951
- const cnv = structuredClone(arc);
2952
- cnv.dt = dtcnv;
2953
- cnv.samples = [{ sample_id: arc.sampleName }];
2954
- cnv.gene = cnv.text;
2955
- {
2956
- const [c1, c2] = table.addRow();
2957
- c1.text("CNV");
2958
- c2.html(
2959
- `<span style="background:${this.getColor(
2960
- cnv.color,
2961
- cnv.value
2962
- )}; border:solid lightgrey 0.1px;">&nbsp;&nbsp;</span> ${cnv.value}`
2963
- );
2964
- }
2965
- {
2966
- const [c1, c2] = table.addRow();
2967
- c1.text("Position");
2968
- c2.text(cnv.chr + ":" + cnv.start + "-" + cnv.stop);
2969
- }
2970
- menu.show(mouseEvent.x, mouseEvent.y);
2971
- }).on("mouseleave", () => {
2972
- hoverOverlay.selectAll("*").remove();
2973
- menu.clear();
2974
- menu.hide();
2975
- });
2976
- }
2977
- // Computes fill color using linear scale between -P80, 0, and +P80
2978
- getColor(color, value) {
2979
- const maxValue = Math.max(this.positivePercentile, Math.abs(this.negativePercentile));
2980
- return linear(
2981
- [-maxValue, 0, maxValue],
2982
- [color, "white", color]
2983
- // transitions to white in the middle
2984
- ).clamp(true)(value);
2985
- }
2986
- };
2987
-
2988
- // plots/disco/waterfall/MutationWaterfallRenderer.ts
2989
- var MutationWaterfallRenderer = class {
2990
- constructor(dotRadius = 1.5) {
2991
- this.dotRadius = dotRadius;
2992
- }
2993
- render(holder, elements) {
2994
- if (!elements.length) return;
2995
- const ringGroup = holder.append("g").attr("data-testid", "sjpp_mutation_waterfall_ring");
2996
- const menu = MenuProvider.create();
2997
- 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) => {
2998
- const distance = Math.round(Math.pow(10, d.logDistance));
2999
- menu.clear();
3000
- const table = table2col({ holder: menu.d });
3001
- {
3002
- const [td1, td2] = table.addRow();
3003
- td1.text("Intermutation distance");
3004
- td2.text(`${bplen(distance)}`);
3005
- }
3006
- menu.show(event.x, event.y);
3007
- }).on("mouseout", () => {
3008
- menu.clear();
3009
- menu.hide();
3010
- });
3011
- this.renderAxis(ringGroup, elements[0]);
3012
- }
3013
- renderAxis(holder, referencePoint) {
3014
- const { ringInnerRadius, ringWidth, rangeMin, rangeMax } = referencePoint;
3015
- const axisGroup = holder.append("g").attr("class", "sjpp-waterfall-axis");
3016
- const topRadius = ringInnerRadius + ringWidth;
3017
- axisGroup.append("line").attr("x1", 0).attr("y1", -topRadius).attr("x2", 0).attr("y2", -ringInnerRadius).attr("stroke", "#6e6e6e").attr("stroke-width", 1);
3018
- const span = rangeMax - rangeMin || 1;
3019
- const tickValues = rangeMax === rangeMin ? [rangeMin] : ticks(rangeMin, rangeMax, 4);
3020
- tickValues.forEach((value) => {
3021
- const ratio = (value - rangeMin) / span;
3022
- const radius = ringInnerRadius + ringWidth * ratio;
3023
- const y = -radius;
3024
- axisGroup.append("line").attr("x1", -4).attr("x2", 4).attr("y1", y).attr("y2", y).attr("stroke", "#6e6e6e");
3025
- const exponent = Math.round(value * 10) / 10;
3026
- const formatted = Number.isInteger(exponent) ? `${exponent}` : exponent.toFixed(1);
3027
- axisGroup.append("text").attr("x", 6).attr("y", y + 3).style("font-size", "10px").style("fill", "#4d4d4d").text(`10^${formatted} bp`);
3028
- });
3029
- }
3030
- };
3031
-
3032
- // plots/disco/Disco.ts
3033
- var Disco = class {
3034
- constructor(opts) {
3035
- this.recreateViewModel = false;
3036
- this.onCnvSourceSelect = (index) => {
3037
- const state = this.app.getState();
3038
- const args = state.args;
3039
- const alt = args.alternativeDataByDt?.[dtcnv];
3040
- if (!alt) return;
3041
- const altClone = structuredClone(args.alternativeDataByDt);
3042
- altClone[dtcnv].forEach((d, i) => d.inuse = i === index);
3043
- const selected = altClone[dtcnv][index];
3044
- selected.mlst.forEach((d) => d.position = d.pos);
3045
- const baseData = args.data.filter((d) => d.dt != dtcnv && d.dt != dtloh);
3046
- const newData = baseData.concat(selected.mlst);
3047
- this.app.dispatch({
3048
- type: "app_refresh",
3049
- state: { args: { ...args, data: newData, alternativeDataByDt: altClone } }
3050
- });
3051
- };
3052
- this.type = "Disco";
3053
- this.opts = opts;
3054
- this.isOpen = false;
3055
- this.discoInteractions = new DiscoInteractions(this);
3056
- }
3057
- static {
3058
- this.type = "Disco";
3059
- }
3060
- async init() {
3061
- const state = this.app.getState();
3062
- const settings = state.plots.find((p) => p.id === this.id).settings;
3063
- this.stateViewModelMapper = new ViewModelMapper(settings, this.discoInteractions);
3064
- this.viewModel = this.stateViewModelMapper.map(state);
3065
- const holder = this.opts.holder;
3066
- const controlsHolder = holder.append("div").style("display", "inline-block").style("vertical-align", "top");
3067
- const mainDiv = holder.append("div").style("display", "inline-block");
3068
- const topbar = controlsHolder.append("div");
3069
- const config_div = controlsHolder.append("div");
3070
- const configInputsOptions = this.getConfigInputsOptions(this.viewModel);
3071
- this.features = await multiInit({
3072
- topbar: topBarInit({
3073
- app: this.app,
3074
- id: this.id,
3075
- // TODO change the way svg is selected
3076
- downloadHandler: () => this.discoInteractions.downloadClickListener(holder.select('svg[id="sjpp_disco_plot"]').node()),
3077
- callback: () => this.toggleVisibility(this.isOpen),
3078
- isOpen: () => this.isOpen,
3079
- holder: topbar
3080
- }),
3081
- config: configUiInit({
3082
- app: this.app,
3083
- id: this.id,
3084
- holder: config_div,
3085
- isOpen: () => this.isOpen,
3086
- inputs: configInputsOptions
3087
- })
3088
- });
3089
- this.errorDiv = mainDiv.append("div").attr("data-testid", "sjpp-disco-errorDiv");
3090
- this.svgDiv = mainDiv.append("div").attr("data-testid", "sjpp-disco-svgDiv");
3091
- }
3092
- getConfigInputsOptions(viewModel) {
3093
- const configInputsOptions = [];
3094
- if (viewModel.settings.Disco.showPrioritizeGeneLabelsByGeneSets) {
3095
- const filterMutationsGenesCheckbox = [
3096
- {
3097
- boxLabel: viewModel.genesetName,
3098
- label: `Filter mutations`,
3099
- type: "checkbox",
3100
- chartType: "Disco",
3101
- settingsKey: "prioritizeGeneLabelsByGeneSets",
3102
- title: `Only show mutations for ${viewModel.genesetName} genes`
3103
- }
3104
- ];
3105
- configInputsOptions.push(...filterMutationsGenesCheckbox);
3106
- }
3107
- if (viewModel.cnvMaxValue !== 0 || viewModel.cnvMinValue !== 0) {
3108
- const cnvConfigInputOptions = [
3109
- {
3110
- boxLabel: "",
3111
- label: "CNV rendering type",
3112
- type: "radio",
3113
- chartType: "Disco",
3114
- settingsKey: "cnvRenderingType",
3115
- title: "CNV rendering type",
3116
- options: [
3117
- { label: "Heatmap", value: "heatmap" /* heatmap */ },
3118
- { label: "Bar", value: "bar" /* bar */ }
3119
- ]
3120
- }
3121
- ];
3122
- configInputsOptions.push(...cnvConfigInputOptions);
3123
- }
3124
- if (viewModel.hasMutationFractionData) {
3125
- configInputsOptions.push({
3126
- boxLabel: "",
3127
- label: "Minimum mutation fraction",
3128
- type: "number",
3129
- chartType: "Disco",
3130
- settingsKey: "minMutationFraction",
3131
- title: "Only show SNV/indel mutations with at least one DNA/RNA mutation fraction at or above this value.",
3132
- step: 0.01,
3133
- min: 0,
3134
- max: 1,
3135
- debounceInterval: 500
3136
- });
3137
- }
3138
- configInputsOptions.push({
3139
- boxLabel: "",
3140
- label: "Show gene names",
3141
- type: "checkbox",
3142
- chartType: "Disco",
3143
- settingsKey: "showGeneNames",
3144
- title: "Show gene name labels on the outside of the plot"
3145
- });
3146
- const genomeChr = this.app.opts.state.args.genome.majorchr;
3147
- const chromosomeConfigOption = {
3148
- label: "Chromosomes",
3149
- title: "Chromosomes shown in the plot",
3150
- type: "multiCheckbox",
3151
- chartType: "Disco",
3152
- settingsKey: "hiddenChromosomes",
3153
- style: {
3154
- colNum: 4
3155
- },
3156
- options: Object.keys(genomeChr).map((c) => ({ label: c, value: c })),
3157
- processInput: (values = []) => {
3158
- const reverse = Object.keys(genomeChr).filter((c) => !values.includes(c));
3159
- return reverse;
3160
- }
3161
- };
3162
- configInputsOptions.push(chromosomeConfigOption);
3163
- configInputsOptions.push({
3164
- boxLabel: "",
3165
- label: "Auto radius",
3166
- type: "checkbox",
3167
- chartType: "Disco",
3168
- settingsKey: "autoRadius",
3169
- title: "Automatically set the radius based on the number of data rings"
3170
- });
3171
- const dimensionOptions = [
3172
- {
3173
- label: "Radius",
3174
- title: "Set the radius of the entire plot, between 200 and 1000 pixels.",
3175
- type: "number",
3176
- chartType: "Disco",
3177
- settingsKey: "radius",
3178
- debounceInterval: 500,
3179
- step: 25,
3180
- min: 200,
3181
- max: 1e3,
3182
- getDisplayStyle: (plot) => plot.settings.Disco.autoRadius ? "none" : "table-row"
3183
- },
3184
- {
3185
- label: "Fusion opacity",
3186
- title: "Adjust opacity of fusion arcs, between 0 and 1",
3187
- type: "number",
3188
- chartType: "Disco",
3189
- settingsKey: "fusionOpacity",
3190
- step: 0.01,
3191
- min: 0,
3192
- max: 1,
3193
- debounceInterval: 500
3194
- }
3195
- ];
3196
- configInputsOptions.push(...dimensionOptions);
3197
- if (viewModel.canShowMutationWaterfallPlot && viewModel.snvDataLength > 0) {
3198
- configInputsOptions.push({
3199
- boxLabel: "",
3200
- label: "Mutation Waterfall Plot",
3201
- type: "checkbox",
3202
- chartType: "Disco",
3203
- settingsKey: "mutationWaterfallPlot",
3204
- title: "Render log10 intermutation distance ring for SNV/indel data"
3205
- });
3206
- }
3207
- return configInputsOptions;
3208
- }
3209
- async main() {
3210
- const settings = this.state.settings;
3211
- this.isOpen = settings.Disco.isOpen;
3212
- if (this.recreateViewModel) {
3213
- this.stateViewModelMapper = new ViewModelMapper(settings, this.discoInteractions);
3214
- this.viewModel = this.stateViewModelMapper.map(this.app.getState());
3215
- }
3216
- this.recreateViewModel = true;
3217
- if (this.viewModel) {
3218
- this.svgDiv.selectAll("*").remove();
3219
- const appState = this.app.getState();
3220
- this.viewModel.svgDiv = this.svgDiv;
3221
- this.viewModel.appState = appState;
3222
- for (const name in this.features) {
3223
- this.features[name].update({ state: this.state, appState });
3224
- }
3225
- const legendRenderer = new LegendRenderer(this.viewModel.cappedCnvMaxAbsValue, settings.label.fontSize);
3226
- const discoRenderer = new DiscoRenderer(
3227
- this.getRingRenderers(this.viewModel.settings, this.viewModel, this.discoInteractions.geneClickListener),
3228
- legendRenderer,
3229
- this.app.opts.state.args.genome
3230
- );
3231
- discoRenderer.render(this.svgDiv, this.viewModel, this.onCnvSourceSelect);
3232
- if (this.viewModel.invalidDataInfo?.entries?.length) {
3233
- InvalidDataUI.render(this.errorDiv, this.viewModel.invalidDataInfo);
3234
- }
3235
- }
3236
- }
3237
- getState(appState) {
3238
- const config = appState.plots.find((p) => p.id === this.id);
3239
- if (!config) return config;
3240
- return { ...config, mlst: appState.args.data };
3241
- }
3242
- getRingRenderers(settings, viewModel, geneClickListener) {
3243
- const chromosomesRenderer = new ChromosomesRenderer(
3244
- settings.padAngle,
3245
- settings.rings.chromosomeInnerRadius,
3246
- settings.rings.chromosomeInnerRadius + settings.rings.chromosomeWidth,
3247
- settings.label.fontSize
3248
- );
3249
- const labelsRenderer = new LabelsRenderer(
3250
- settings.label.animationDuration,
3251
- settings.label.fontSize,
3252
- geneClickListener
3253
- );
3254
- const nonExonicSnvRenderer = new NonExonicSnvRenderer(geneClickListener);
3255
- const snvRenderer = new SnvRenderer(settings.rings.snvRingWidth, geneClickListener);
3256
- const cnvRenderer = settings.Disco.cnvRenderingType === "heatmap" /* heatmap */ ? new CnvHeatmapRenderer(viewModel.positivePercentile, viewModel.negativePercentile) : new CnvBarRenderer();
3257
- const lohRenderer = new LohRenderer();
3258
- const mutationWaterfallRenderer = new MutationWaterfallRenderer();
3259
- const renderersMap = /* @__PURE__ */ new Map();
3260
- renderersMap.set(0 /* CHROMOSOME */, chromosomesRenderer);
3261
- renderersMap.set(1 /* LABEL */, labelsRenderer);
3262
- renderersMap.set(2 /* NONEXONICSNV */, nonExonicSnvRenderer);
3263
- renderersMap.set(3 /* SNV */, snvRenderer);
3264
- renderersMap.set(4 /* MUTATION_WATERFALL */, mutationWaterfallRenderer);
3265
- renderersMap.set(5 /* CNV */, cnvRenderer);
3266
- renderersMap.set(6 /* LOH */, lohRenderer);
3267
- return renderersMap;
3268
- }
3269
- toggleVisibility(isOpen) {
3270
- this.app.dispatch({
3271
- type: "plot_edit",
3272
- id: this.opts.id,
3273
- config: {
3274
- settings: {
3275
- Disco: { isOpen: !isOpen }
3276
- }
3277
- }
3278
- });
3279
- }
3280
- };
3281
- var discoInit = getCompInit(Disco);
3282
- var componentInit = discoInit;
3283
- async function getPlotConfig(opts, app) {
3284
- return {
3285
- chartType: "Disco",
3286
- subfolder: "disco",
3287
- extension: "ts",
3288
- settings: discoDefaults(opts.overrides, app)
3289
- };
3290
- }
3291
- export {
3292
- componentInit,
3293
- Disco as default,
3294
- discoInit,
3295
- getPlotConfig
3296
- };
3297
- //# sourceMappingURL=Disco-GUKDAHUY.js.map