@sjcrh/proteinpaint-client 2.210.1 → 2.211.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 (954) hide show
  1. package/dist/2dmaf-FEZRNHDF.js +1367 -0
  2. package/dist/AggMatrixInput-6FJIELYO.js +406 -0
  3. package/dist/AggregateMatrix-MUPBUGIZ.js +41 -0
  4. package/dist/AppHeader-ZTNZ62UL.js +830 -0
  5. package/dist/BoxPlot-P5SVFYSB.js +1208 -0
  6. package/dist/BoxPlot-P5SVFYSB.js.map +7 -0
  7. package/dist/CorrelationVolcano-42NYXAXG.js +617 -0
  8. package/dist/Cuminc-6AKLT6HF.js +1219 -0
  9. package/dist/DE-KJHFZWND.js +89 -0
  10. package/dist/DEinput-HXB3LYZW.js +501 -0
  11. package/dist/DM-AAHX4PLH.js +90 -0
  12. package/dist/DifferentialAnalysis-JX4EDEOY.js +239 -0
  13. package/dist/Disco-GXKO4QQH.js +3389 -0
  14. package/dist/Disco.UI-DGD4RXJP.js +243 -0
  15. package/dist/DmrPlot-DQ3XTMTN.js +362 -0
  16. package/dist/GB-OUWNNBBK.js +1392 -0
  17. package/dist/GSEA-DSKGFAPG.js +875 -0
  18. package/dist/GeneExpInput-FZLOBE2Q.js +42 -0
  19. package/dist/Geomap-GP5KD3OX.js +84 -0
  20. package/dist/HicApp-2N6WYWZX.js +2245 -0
  21. package/dist/IDCViewer-MSUC7IXX.js +10812 -0
  22. package/dist/NumBinaryEditor-C4G2IH36.js +279 -0
  23. package/dist/NumBinaryEditor.unit.spec-ZAVAUGXA.js +312 -0
  24. package/dist/NumContEditor-VEEMMWHX.js +105 -0
  25. package/dist/NumContEditor.unit.spec-65ORC42O.js +164 -0
  26. package/dist/NumCustomBinEditor-YIUHJAXP.js +33 -0
  27. package/dist/NumCustomBinEditor.unit.spec-NT5VK2LO.js +397 -0
  28. package/dist/NumDiscreteEditor-A4WELAJH.js +170 -0
  29. package/dist/NumDiscreteEditor.unit.spec-7QABM6KK.js +233 -0
  30. package/dist/NumRegularBinEditor-IPVPLSQY.js +33 -0
  31. package/dist/NumRegularBinEditor.unit.spec-Q4DMWATB.js +278 -0
  32. package/dist/NumSplineEditor-5E6CIWLP.js +210 -0
  33. package/dist/NumSplineEditor.unit.spec-DHJF5F6H.js +224 -0
  34. package/dist/NumericDensity-GXMWWK2A.js +33 -0
  35. package/dist/NumericDensity.unit.spec-OAPOMSEW.js +418 -0
  36. package/dist/NumericHandler-H5WHGFXD.js +34 -0
  37. package/dist/NumericHandler.unit.spec-PBNOJEMS.js +214 -0
  38. package/dist/ProteomeInput-ZA7R5S43.js +388 -0
  39. package/dist/Regression-WSWTSXFX.js +1416 -0
  40. package/dist/RunChart2-J5CTJI5C.js +749 -0
  41. package/dist/SC-POCQDMWZ.js +1181 -0
  42. package/dist/SC-POCQDMWZ.js.map +7 -0
  43. package/dist/Violin-VA6FBRUQ.js +1064 -0
  44. package/dist/Violin-VA6FBRUQ.js.map +7 -0
  45. package/dist/Volcano-4IEQIEDS.js +2456 -0
  46. package/dist/Wsi-LJ6AY5RI.js +629 -0
  47. package/dist/adSandbox-EIN4KEML.js +33 -0
  48. package/dist/animatedBubbleChart-LINYUKMD.js +547 -0
  49. package/dist/app-SE7UQ5DB.js +42 -0
  50. package/dist/app-VGMZNGWP.js +32 -0
  51. package/dist/app.js +16 -16
  52. package/dist/bam-ZXEZWRSZ.js +876 -0
  53. package/dist/barchart-N4B4C2FO.js +42 -0
  54. package/dist/barchart2-EDVEWTVX.js +309 -0
  55. package/dist/block-E7YUGCHL.js +6250 -0
  56. package/dist/block.init-FSOCF2IM.js +33 -0
  57. package/dist/block.mds.expressionrank-EDBTITXU.js +354 -0
  58. package/dist/block.mds.geneboxplot-GG5672SY.js +823 -0
  59. package/dist/block.mds.junction-HUC4S24K.js +1539 -0
  60. package/dist/block.mds.svcnv-EQHYCIBU.js +6796 -0
  61. package/dist/block.svg-HBVPUQJ2.js +159 -0
  62. package/dist/block.tk.aicheck-TRJ5IIWZ.js +278 -0
  63. package/dist/block.tk.ase-COV7YYYO.js +360 -0
  64. package/dist/block.tk.bam-MDSLY6NH.js +1901 -0
  65. package/dist/block.tk.bedgraphdot-MKWEL53X.js +379 -0
  66. package/dist/block.tk.bigwig.ui-UKKJX7TA.js +206 -0
  67. package/dist/block.tk.hicstraw-6LNXEIOF.js +818 -0
  68. package/dist/block.tk.junction-F3SERFFD.js +2358 -0
  69. package/dist/block.tk.junction.textmatrixui-2XUMSKLS.js +194 -0
  70. package/dist/block.tk.ld-COP5RUJJ.js +94 -0
  71. package/dist/block.tk.menu-SRDPD44N.js +1024 -0
  72. package/dist/block.tk.pgv-3SVINTXN.js +938 -0
  73. package/dist/brainImaging-UNBA4KA3.js +555 -0
  74. package/dist/brainRegions-DC6TQB53.js +217 -0
  75. package/dist/bubbleHeatmap-X3W3AZJY.js +378 -0
  76. package/dist/cellTypeBubbleHeatmap-LFI6TGOO.js +278 -0
  77. package/dist/chunk-2ANFUNS3.js +102 -0
  78. package/dist/chunk-2G4SFRWC.js +1278 -0
  79. package/dist/chunk-2WKGE7BO.js +54 -0
  80. package/dist/chunk-3CGMCYZB.js +237 -0
  81. package/dist/chunk-3I4DBVLM.js +55 -0
  82. package/dist/chunk-42VFF74T.js +397 -0
  83. package/dist/chunk-4ENIOXIT.js +133 -0
  84. package/dist/chunk-4ENIOXIT.js.map +7 -0
  85. package/dist/chunk-4HTRCXLS.js +98 -0
  86. package/dist/chunk-55T2AMJ3.js +281 -0
  87. package/dist/chunk-57Z4VYLM.js +1616 -0
  88. package/dist/chunk-57Z4VYLM.js.map +7 -0
  89. package/dist/chunk-5JDG5NNA.js +203 -0
  90. package/dist/chunk-6AFMWQXZ.js +339 -0
  91. package/dist/chunk-6ECKCC4X.js +294 -0
  92. package/dist/chunk-6QMC7LFA.js +299 -0
  93. package/dist/chunk-6XKAOSQE.js +116 -0
  94. package/dist/chunk-6XKAOSQE.js.map +7 -0
  95. package/dist/chunk-72L6NTNT.js +14 -0
  96. package/dist/chunk-7ISAV37C.js +194 -0
  97. package/dist/chunk-7MFY22IZ.js +2902 -0
  98. package/dist/chunk-7MFY22IZ.js.map +7 -0
  99. package/dist/chunk-7XZA2XR2.js +424 -0
  100. package/dist/chunk-7XZA2XR2.js.map +7 -0
  101. package/dist/chunk-A32XQLMP.js +49 -0
  102. package/dist/chunk-A3MYBXG3.js +274 -0
  103. package/dist/chunk-AU3Y6IQF.js +1339 -0
  104. package/dist/chunk-AXL3CC4U.js +468 -0
  105. package/dist/chunk-BSWVDH75.js +26 -0
  106. package/dist/chunk-CME6DYDH.js +424 -0
  107. package/dist/chunk-D637XDOT.js +417 -0
  108. package/dist/chunk-D637XDOT.js.map +7 -0
  109. package/dist/chunk-DD3DWHUY.js +119 -0
  110. package/dist/chunk-DKED35KW.js +2327 -0
  111. package/dist/chunk-DPGALT5N.js +255 -0
  112. package/dist/chunk-DPTGY4BW.js +129 -0
  113. package/dist/chunk-DQD4MTK4.js +379 -0
  114. package/dist/chunk-EFLRT7JY.js +243 -0
  115. package/dist/chunk-EMSO3BNW.js +34 -0
  116. package/dist/chunk-F2LWFF7V.js +158 -0
  117. package/dist/chunk-F2LWFF7V.js.map +7 -0
  118. package/dist/chunk-F5QB5YEE.js +276 -0
  119. package/dist/chunk-FKSR53VK.js +182 -0
  120. package/dist/chunk-FSWBNSQD.js +178 -0
  121. package/dist/chunk-G6ZIO5T3.js +37 -0
  122. package/dist/chunk-GP4VLNMZ.js +2149 -0
  123. package/dist/chunk-GP4VLNMZ.js.map +7 -0
  124. package/dist/chunk-HTZJQNHP.js +562 -0
  125. package/dist/chunk-ITYNHDDD.js +56 -0
  126. package/dist/chunk-IWVCFZHQ.js +170 -0
  127. package/dist/chunk-J4WRX5G6.js +263 -0
  128. package/dist/chunk-JZLIHI6A.js +339 -0
  129. package/dist/chunk-K7HFOAR7.js +25008 -0
  130. package/dist/chunk-K7HFOAR7.js.map +7 -0
  131. package/dist/chunk-KJGYGPJZ.js +103 -0
  132. package/dist/chunk-L3UFI52T.js +217 -0
  133. package/dist/chunk-L4ZPMF7E.js +692 -0
  134. package/dist/chunk-L62JI5UL.js +302 -0
  135. package/dist/chunk-MRPYHLFW.js +518 -0
  136. package/dist/chunk-MVWJHZ5G.js +783 -0
  137. package/dist/chunk-NGWU4QLU.js +134 -0
  138. package/dist/chunk-OC2FSBFB.js +176 -0
  139. package/dist/chunk-OGRDLK57.js +140 -0
  140. package/dist/chunk-OYBYKZUR.js +6360 -0
  141. package/dist/chunk-PFRPC2SY.js +382 -0
  142. package/dist/chunk-PLHOCPJD.js +272 -0
  143. package/dist/chunk-PQDZLOY7.js +102 -0
  144. package/dist/chunk-QDNUIS2Y.js +70 -0
  145. package/dist/chunk-RHOMR2GY.js +2676 -0
  146. package/dist/chunk-SKF6HQ74.js +31 -0
  147. package/dist/chunk-SLPZ6SBN.js +626 -0
  148. package/dist/chunk-SLPZ6SBN.js.map +7 -0
  149. package/dist/chunk-SPFK5XZH.js +446 -0
  150. package/dist/chunk-SQGAWR2L.js +141 -0
  151. package/dist/chunk-TGKWEAUE.js +84 -0
  152. package/dist/chunk-UKOOGNUF.js +1233 -0
  153. package/dist/chunk-UL5PEVZW.js +123 -0
  154. package/dist/chunk-UTMIX2H2.js +2784 -0
  155. package/dist/chunk-UZNFOCE7.js +56 -0
  156. package/dist/chunk-V7UVHM57.js +550 -0
  157. package/dist/chunk-VP2JWT5W.js +1988 -0
  158. package/dist/chunk-VSTHBKQW.js +480 -0
  159. package/dist/chunk-W7A4QXZ7.js +38 -0
  160. package/dist/chunk-WKCVZIN7.js +59 -0
  161. package/dist/chunk-X7TJBXJJ.js +54 -0
  162. package/dist/chunk-XEEMCYP6.js +4375 -0
  163. package/dist/chunk-XTQWAVWJ.js +54 -0
  164. package/dist/chunk-YAN2MOON.js +5071 -0
  165. package/dist/chunk-YCBENC6R.js +1769 -0
  166. package/dist/chunk-YCBENC6R.js.map +7 -0
  167. package/dist/chunk-YCORHJ64.js +240 -0
  168. package/dist/chunk-YOBTHZVU.js +80 -0
  169. package/dist/chunk-ZTT6ZHU5.js +217 -0
  170. package/dist/cohort-RF4FT2NT.js +70 -0
  171. package/dist/condition-WXE2CFYT.js +327 -0
  172. package/dist/controls-AYF4H7UG.js +34 -0
  173. package/dist/controls.config-TXZKQNYC.js +34 -0
  174. package/dist/correlation-UAYMVVUS.js +95 -0
  175. package/dist/customdata.inputui-I7RFOGYM.js +284 -0
  176. package/dist/dataDownload-4AGSDSEO.js +329 -0
  177. package/dist/databrowser.ui-RGJEA2BI.js +425 -0
  178. package/dist/dictionary-AWWQXIRP.js +113 -0
  179. package/dist/dnaMethylation-PICKZS2M.js +33 -0
  180. package/dist/dnaMethylation.integration.spec-JUSB3CFZ.js +198 -0
  181. package/dist/dofetch-ZJMKEYN2.js +48 -0
  182. package/dist/e2pca-K4W7ZJZG.js +344 -0
  183. package/dist/ep-OY5YQMEF.js +1249 -0
  184. package/dist/expclust.gdc.spec-LYDBM3TZ.js +302 -0
  185. package/dist/facet-7NJHLLCZ.js +519 -0
  186. package/dist/gb-COV44BMA.js +81 -0
  187. package/dist/geneExpClustering-EQR5XX4J.js +244 -0
  188. package/dist/geneExpression-2BNDQ6S6.js +310 -0
  189. package/dist/geneExpression-PGB6WF5H.js +33 -0
  190. package/dist/geneExpression.unit.spec-OUNGGOJP.js +128 -0
  191. package/dist/geneORA-EKNEVQOS.js +273 -0
  192. package/dist/geneRanking-XUXLRERA.js +548 -0
  193. package/dist/geneVariant-JZDYV6LS.js +36 -0
  194. package/dist/geneVariant-KPZ2FYLK.js +289 -0
  195. package/dist/geneVariant.integration.spec-ISMLGTKC.js +503 -0
  196. package/dist/genefusion.ui-GRUXFC4U.js +303 -0
  197. package/dist/geneset-RM4XIX23.js +203 -0
  198. package/dist/genomeBrowser.spec-X7EOK2LS.js +276 -0
  199. package/dist/grin2-5XRUMYQO.js +949 -0
  200. package/dist/grin2-SWZLKD52.js +70 -0
  201. package/dist/hierCluster-I6T4XD3P.js +55 -0
  202. package/dist/hierCluster-XVDGUOW7.js +59 -0
  203. package/dist/hierCluster.config-66CKAAPG.js +36 -0
  204. package/dist/hierCluster.integration.spec-OEHHO2RT.js +483 -0
  205. package/dist/hierCluster.integration.spec-OEHHO2RT.js.map +7 -0
  206. package/dist/hierCluster.interactivity-B5ZNFF4R.js +49 -0
  207. package/dist/hierCluster.renderers-R2DTKTLI.js +19 -0
  208. package/dist/imagePlot-ZM4IVDJT.js +156 -0
  209. package/dist/importPlot-FQ65CZRI.js +8 -0
  210. package/dist/isoformExpression-BFCLGD2U.js +35 -0
  211. package/dist/isoformExpression.unit.spec-KYI4HI7U.js +237 -0
  212. package/dist/junction-BKH6RWOP.js +36 -0
  213. package/dist/junction.customTerm-VNQKP5I4.js +16 -0
  214. package/dist/junction.unit.spec-MQIHKSNE.js +182 -0
  215. package/dist/launch.adhoc-AHTCA2BP.js +37 -0
  216. package/dist/leftlabel.sample-LIBMKP22.js +258 -0
  217. package/dist/lollipop-26ZQH3EL.js +166 -0
  218. package/dist/maf-W3W2XJ5B.js +455 -0
  219. package/dist/maftimeline-LCJD5O2M.js +587 -0
  220. package/dist/matrix-H634EZWK.js +59 -0
  221. package/dist/matrix-O2AINT5M.js +54 -0
  222. package/dist/matrix.cells-3U3CUU5I.js +26 -0
  223. package/dist/matrix.config-F6IPB5B5.js +37 -0
  224. package/dist/matrix.data-KQNBNYC6.js +23 -0
  225. package/dist/matrix.dom-YQNX4IQO.js +11 -0
  226. package/dist/matrix.groups-QFL2ZDHD.js +26 -0
  227. package/dist/matrix.integration.spec-OVGSXJWO.js +3160 -0
  228. package/dist/matrix.interactivity-Q5ODZPDL.js +37 -0
  229. package/dist/matrix.layout-YPYM7FRY.js +39 -0
  230. package/dist/matrix.legend-ZO57ENXP.js +20 -0
  231. package/dist/matrix.renderers-NIGONKWO.js +34 -0
  232. package/dist/matrix.serieses-ZQD2U6RF.js +19 -0
  233. package/dist/matrix.sort-RZU65LR2.js +26 -0
  234. package/dist/matrix.sort.unit.spec-NDFK2A5C.js +468 -0
  235. package/dist/matrix.sorterUi-MVUI25W7.js +16 -0
  236. package/dist/matrix.sorterUi.unit.spec-4ZKNOV2L.js +338 -0
  237. package/dist/matrix.unit.spec-V5XNLECG.js +150 -0
  238. package/dist/mavb-LF7A7BDK.js +727 -0
  239. package/dist/mds.fimo-KJ4HPMZP.js +513 -0
  240. package/dist/mds.samplescatterplot-ZHNWWWYI.js +1545 -0
  241. package/dist/mds.survivalplot-DNG7I22N.js +477 -0
  242. package/dist/multivalue-SJQF7PHU.js +83 -0
  243. package/dist/numericDictTermCluster-O6PKT2FJ.js +63 -0
  244. package/dist/oncomatrix-YJCPKS72.js +290 -0
  245. package/dist/oncomatrix.spec-MWGBQCIQ.js +443 -0
  246. package/dist/plot.2dvaf-KIPQYNEH.js +372 -0
  247. package/dist/plot.app-WHG3SEOG.js +36 -0
  248. package/dist/plot.barplot-DTSYFUPC.js +97 -0
  249. package/dist/plot.boxplot-MQDULP3P.js +146 -0
  250. package/dist/plot.brainImaging-DGVJQSCH.js +51 -0
  251. package/dist/plot.disco-HYPRBLMQ.js +99 -0
  252. package/dist/plot.ssgq-J5MMN7OD.js +134 -0
  253. package/dist/plot.vaf2cov-CID7GQB5.js +253 -0
  254. package/dist/polar2-QTSO2HCB.js +232 -0
  255. package/dist/profileForms-SRR2M5OS.js +941 -0
  256. package/dist/profilePlot-NDC4S2SC.js +49 -0
  257. package/dist/proteinView-EFNQL3LD.js +1357 -0
  258. package/dist/proteomeCohortCompare-WMR53HEL.js +912 -0
  259. package/dist/pseudbulk.unit.spec-6MRZNXFI.js +86 -0
  260. package/dist/pseudobulk-O5EC44RY.js +35 -0
  261. package/dist/qualitative-W6MFYG7Z.js +38 -0
  262. package/dist/radar2-GIQILMWK.js +327 -0
  263. package/dist/radarFacility2-5YJZ5JCK.js +335 -0
  264. package/dist/rememberedGvQ.unit.spec-B6RQM5LQ.js +211 -0
  265. package/dist/render-2J4LR3UI.js +33 -0
  266. package/dist/report-MUMQK6XY.js +217 -0
  267. package/dist/sampleView-NKZMNBMH.js +43 -0
  268. package/dist/samplelst-X74JZMTR.js +106 -0
  269. package/dist/samplematrix-QDQXB5ZG.js +2193 -0
  270. package/dist/sc-FGHV5CBJ.js +81 -0
  271. package/dist/scatter-QFVRBA7F.js +925 -0
  272. package/dist/scatter-YXF5VQGZ.js +88 -0
  273. package/dist/selectGenomeWithTklst-DP4RPV7U.js +129 -0
  274. package/dist/singleCellCellType-XCHCMRR6.js +33 -0
  275. package/dist/singleCellCellType.unit.spec-S3JTP235.js +154 -0
  276. package/dist/singleCellGeneExpression-FD6REV7Y.js +33 -0
  277. package/dist/singleCellGeneExpression.unit.spec-PVMZYD4G.js +148 -0
  278. package/dist/singleCellNumericValue-SIITQPMD.js +33 -0
  279. package/dist/singleCellNumericValue.unit.spec-7PJEHLF7.js +416 -0
  280. package/dist/singleCellPlot-YJCFAYJW.js +48 -0
  281. package/dist/singlecell-6R7YK5P3.js +1566 -0
  282. package/dist/singlecell-KHMH732Y.js +81 -0
  283. package/dist/snp-HXCVSW2F.js +33 -0
  284. package/dist/snp.unit.spec-HXMFR4QS.js +171 -0
  285. package/dist/snplocus-YQVHAKBC.js +203 -0
  286. package/dist/spliceevent.a53ss.diagram-4IBTR3JD.js +146 -0
  287. package/dist/spliceevent.exonskip.diagram-5ZTG65CE.js +278 -0
  288. package/dist/spliceevent.noeventdiagram-WO5KSC45.js +455 -0
  289. package/dist/ssGSEA-VJ3LVYJV.js +33 -0
  290. package/dist/ssGSEA.unit.spec-JQIJ4NZP.js +83 -0
  291. package/dist/stattable-COVQSHRZ.js +117 -0
  292. package/dist/studyCatalog-EXVRH4FI.js +414 -0
  293. package/dist/summarizeCnvGeneexp-UJBTMXXH.js +158 -0
  294. package/dist/summarizeGeneexpSurvival-XLQJGDRY.js +105 -0
  295. package/dist/summarizeMutationCnv-7RWSXB6F.js +159 -0
  296. package/dist/summarizeMutationDiagnosis-42MG737O.js +35 -0
  297. package/dist/summarizeMutationSurvival-FWVKVEHK.js +99 -0
  298. package/dist/summary-NR26ZPQB.js +44 -0
  299. package/dist/summary.integration.spec-Z7JSUTGK.js +409 -0
  300. package/dist/summaryInput-DGKUOJVC.js +242 -0
  301. package/dist/sunburst-C5JNGFT7.js +278 -0
  302. package/dist/survival-GCEX3EAZ.js +53 -0
  303. package/dist/survival-OAQA5JQN.js +1248 -0
  304. package/dist/survival.integration.spec-ZX5RD6VQ.js +613 -0
  305. package/dist/svgraph-XCFZ2WAG.js +1382 -0
  306. package/dist/svmr-4XTTURHA.js +3837 -0
  307. package/dist/table-FQZ4UAH6.js +197 -0
  308. package/dist/termCollection-5QCR6LED.js +33 -0
  309. package/dist/termCollection-DN6A6HJU.js +252 -0
  310. package/dist/termCollection.unit.spec-RSSSXDHU.js +299 -0
  311. package/dist/termCollectionFractionSelection-OSN7FITY.js +42 -0
  312. package/dist/termCollectionFractionSelection.unit.spec-UW6D3DVK.js +188 -0
  313. package/dist/tk-4CZCVYBP.js +41 -0
  314. package/dist/tk-BIPJNXBZ.js +1121 -0
  315. package/dist/tp.ui-NI4U7567.js +1454 -0
  316. package/dist/tvs.density-CB24PXDE.js +19 -0
  317. package/dist/tvs.dt-YRDNDXUU.js +34 -0
  318. package/dist/tvs.dtcnv.categorical-REP4T33P.js +35 -0
  319. package/dist/tvs.dtcnv.continuous-K7OREEP5.js +67 -0
  320. package/dist/tvs.dtfusion-AB5MPH3Q.js +35 -0
  321. package/dist/tvs.dtitd-AFWU7ACY.js +35 -0
  322. package/dist/tvs.dtsnvindel-G7XQEKEO.js +35 -0
  323. package/dist/tvs.dtsv-Y6BEY4J2.js +35 -0
  324. package/dist/tvs.numeric-GF4XF5OF.js +20 -0
  325. package/dist/tvs.samplelst-XRRWPC2E.js +98 -0
  326. package/dist/tvs.termCollection-PL4AN3GA.js +122 -0
  327. package/dist/tvs.termCollection-PL4AN3GA.js.map +7 -0
  328. package/dist/vocabulary-DJZWOO6Q.js +36 -0
  329. package/dist/wsi.direct-XUWANMKV.js +8343 -0
  330. package/package.json +2 -2
  331. package/dist/2dmaf-7VZ536T5.js +0 -1367
  332. package/dist/AggMatrixInput-UTUOXTGA.js +0 -406
  333. package/dist/AggregateMatrix-X75HUZYO.js +0 -41
  334. package/dist/AppHeader-X2DR6VSM.js +0 -830
  335. package/dist/BoxPlot-NQMPJICU.js +0 -1211
  336. package/dist/BoxPlot-NQMPJICU.js.map +0 -7
  337. package/dist/CorrelationVolcano-IDBUJH2E.js +0 -617
  338. package/dist/Cuminc-BYFIMOLO.js +0 -1219
  339. package/dist/DE-BI7DHHW4.js +0 -89
  340. package/dist/DEinput-W66CT4U2.js +0 -501
  341. package/dist/DM-62TEJA3C.js +0 -90
  342. package/dist/DifferentialAnalysis-PRTA6CYW.js +0 -239
  343. package/dist/Disco-4JQP3FRW.js +0 -3389
  344. package/dist/Disco.UI-6RHAA5KU.js +0 -243
  345. package/dist/DmrPlot-VYQYMTQ7.js +0 -362
  346. package/dist/GB-LULUM5LH.js +0 -1392
  347. package/dist/GSEA-DT3SYXOZ.js +0 -875
  348. package/dist/GeneExpInput-UILWAGRH.js +0 -42
  349. package/dist/Geomap-AFKEGMR5.js +0 -84
  350. package/dist/HicApp-APDL5POY.js +0 -2245
  351. package/dist/IDCViewer-DQXAORHT.js +0 -10812
  352. package/dist/NumBinaryEditor-OUVIOEH7.js +0 -279
  353. package/dist/NumBinaryEditor.unit.spec-VBX2X4CT.js +0 -312
  354. package/dist/NumContEditor-JVPRBZPW.js +0 -105
  355. package/dist/NumContEditor.unit.spec-EQNB6RMI.js +0 -164
  356. package/dist/NumCustomBinEditor-E2SXZDF4.js +0 -33
  357. package/dist/NumCustomBinEditor.unit.spec-VLR7MGNL.js +0 -397
  358. package/dist/NumDiscreteEditor-CUA55FU3.js +0 -170
  359. package/dist/NumDiscreteEditor.unit.spec-7IPCMUDQ.js +0 -233
  360. package/dist/NumRegularBinEditor-CWU7YBEP.js +0 -33
  361. package/dist/NumRegularBinEditor.unit.spec-RGV3EUPC.js +0 -278
  362. package/dist/NumSplineEditor-PC5X7AUJ.js +0 -210
  363. package/dist/NumSplineEditor.unit.spec-QCR3RL5W.js +0 -224
  364. package/dist/NumericDensity-CFUEE5ZN.js +0 -33
  365. package/dist/NumericDensity.unit.spec-JOCVEC32.js +0 -418
  366. package/dist/NumericHandler-VL2Z55KF.js +0 -34
  367. package/dist/NumericHandler.unit.spec-ULM5FSSA.js +0 -214
  368. package/dist/ProteomeInput-3WKTVCYT.js +0 -388
  369. package/dist/Regression-M7AQTYXL.js +0 -1416
  370. package/dist/RunChart2-54SVOXJR.js +0 -749
  371. package/dist/SC-QRWDGHB2.js +0 -1183
  372. package/dist/SC-QRWDGHB2.js.map +0 -7
  373. package/dist/Violin-2AD6QRJB.js +0 -1081
  374. package/dist/Violin-2AD6QRJB.js.map +0 -7
  375. package/dist/Volcano-T57VFSWR.js +0 -2456
  376. package/dist/Wsi-U3U3EILE.js +0 -629
  377. package/dist/adSandbox-S3JP7XF3.js +0 -33
  378. package/dist/animatedBubbleChart-LZKNERIM.js +0 -547
  379. package/dist/app-2MERLGNJ.js +0 -42
  380. package/dist/app-ZNSUUOFJ.js +0 -32
  381. package/dist/bam-ESRPS4TQ.js +0 -876
  382. package/dist/barchart-BPUEO4RK.js +0 -42
  383. package/dist/barchart2-Z36PNSM2.js +0 -309
  384. package/dist/block-GEG4UUOU.js +0 -6250
  385. package/dist/block.init-SB6OX35E.js +0 -33
  386. package/dist/block.mds.expressionrank-2JLMS334.js +0 -354
  387. package/dist/block.mds.geneboxplot-BZMGG6G3.js +0 -823
  388. package/dist/block.mds.junction-636PWE2O.js +0 -1539
  389. package/dist/block.mds.svcnv-S4L2HMZW.js +0 -6796
  390. package/dist/block.svg-A7EABUXG.js +0 -159
  391. package/dist/block.tk.aicheck-KNFJVUTW.js +0 -278
  392. package/dist/block.tk.ase-BPU25OLX.js +0 -360
  393. package/dist/block.tk.bam-VC4CZCUS.js +0 -1901
  394. package/dist/block.tk.bedgraphdot-FQS4Z4RC.js +0 -379
  395. package/dist/block.tk.bigwig.ui-7STXSD3X.js +0 -206
  396. package/dist/block.tk.hicstraw-CVDCOMPP.js +0 -818
  397. package/dist/block.tk.junction-PG4RZFH3.js +0 -2358
  398. package/dist/block.tk.junction.textmatrixui-JRW4ZJIK.js +0 -194
  399. package/dist/block.tk.ld-DLDP2NHJ.js +0 -94
  400. package/dist/block.tk.menu-PWGFMKBQ.js +0 -1024
  401. package/dist/block.tk.pgv-HOBOXQIN.js +0 -938
  402. package/dist/brainImaging-GUQTOHQF.js +0 -555
  403. package/dist/brainRegions-JWBIBCTG.js +0 -217
  404. package/dist/bubbleHeatmap-EUO3DUVT.js +0 -378
  405. package/dist/cellTypeBubbleHeatmap-TIBGPZTB.js +0 -278
  406. package/dist/chunk-3CGAABHZ.js +0 -176
  407. package/dist/chunk-3ELYMSGO.js +0 -26
  408. package/dist/chunk-3QL3U6FU.js +0 -2853
  409. package/dist/chunk-3QL3U6FU.js.map +0 -7
  410. package/dist/chunk-3TV5WWUN.js +0 -339
  411. package/dist/chunk-4Y5W26UF.js +0 -424
  412. package/dist/chunk-5XE3WSUX.js +0 -6360
  413. package/dist/chunk-665X7R7S.js +0 -382
  414. package/dist/chunk-67URJYN7.js +0 -84
  415. package/dist/chunk-6MQPXWOR.js +0 -55
  416. package/dist/chunk-7DSL65G7.js +0 -14
  417. package/dist/chunk-A6F3CSXP.js +0 -626
  418. package/dist/chunk-A6F3CSXP.js.map +0 -7
  419. package/dist/chunk-A7OWXDYA.js +0 -129
  420. package/dist/chunk-A7OWXDYA.js.map +0 -7
  421. package/dist/chunk-AB6JQFIQ.js +0 -129
  422. package/dist/chunk-ACOHIDWO.js +0 -240
  423. package/dist/chunk-AIVPAC5Q.js +0 -102
  424. package/dist/chunk-AKKJFMW5.js +0 -4375
  425. package/dist/chunk-AR2UIN77.js +0 -255
  426. package/dist/chunk-AXF6SVNQ.js +0 -56
  427. package/dist/chunk-BLYD6SQO.js +0 -98
  428. package/dist/chunk-BSWPONNA.js +0 -550
  429. package/dist/chunk-BX3P73XH.js +0 -299
  430. package/dist/chunk-CSAS3PVJ.js +0 -24956
  431. package/dist/chunk-CSAS3PVJ.js.map +0 -7
  432. package/dist/chunk-CW35X5ZL.js +0 -5071
  433. package/dist/chunk-D4XHYQNS.js +0 -281
  434. package/dist/chunk-DH74ZT37.js +0 -141
  435. package/dist/chunk-E76UYIT2.js +0 -182
  436. package/dist/chunk-ELJX3QIQ.js +0 -424
  437. package/dist/chunk-ELJX3QIQ.js.map +0 -7
  438. package/dist/chunk-EM6KUVI5.js +0 -194
  439. package/dist/chunk-F4GYWCRF.js +0 -302
  440. package/dist/chunk-FJ3JD7B3.js +0 -59
  441. package/dist/chunk-FW3ME75U.js +0 -54
  442. package/dist/chunk-FXQXCOII.js +0 -101
  443. package/dist/chunk-FXQXCOII.js.map +0 -7
  444. package/dist/chunk-G2X2PN74.js +0 -783
  445. package/dist/chunk-G3QKTYUT.js +0 -2676
  446. package/dist/chunk-G5USS6FI.js +0 -56
  447. package/dist/chunk-GLPTPX45.js +0 -203
  448. package/dist/chunk-GPY6SBCX.js +0 -339
  449. package/dist/chunk-GWHIKECP.js +0 -1731
  450. package/dist/chunk-GWHIKECP.js.map +0 -7
  451. package/dist/chunk-GWVVEOYX.js +0 -263
  452. package/dist/chunk-HDV3LHCN.js +0 -379
  453. package/dist/chunk-HGXSYPU6.js +0 -2327
  454. package/dist/chunk-HMKEVTRM.js +0 -446
  455. package/dist/chunk-HPCKKXRK.js +0 -1233
  456. package/dist/chunk-IAB2PRIH.js +0 -396
  457. package/dist/chunk-IAB2PRIH.js.map +0 -7
  458. package/dist/chunk-J5JBHGRN.js +0 -31
  459. package/dist/chunk-JHOGTGIS.js +0 -1988
  460. package/dist/chunk-KCX54MGS.js +0 -480
  461. package/dist/chunk-KVRSO2OZ.js +0 -34
  462. package/dist/chunk-M367Y7ML.js +0 -140
  463. package/dist/chunk-M4PUW3ML.js +0 -243
  464. package/dist/chunk-ME325OQC.js +0 -562
  465. package/dist/chunk-NJWNKBRC.js +0 -468
  466. package/dist/chunk-O5FUHCNU.js +0 -397
  467. package/dist/chunk-ODHQPTHU.js +0 -134
  468. package/dist/chunk-PTQ4GQCS.js +0 -692
  469. package/dist/chunk-PUSSP76H.js +0 -70
  470. package/dist/chunk-Q3PAXUCU.js +0 -54
  471. package/dist/chunk-QWBKN2IC.js +0 -80
  472. package/dist/chunk-R4E7BXC6.js +0 -49
  473. package/dist/chunk-SDYFM3UL.js +0 -274
  474. package/dist/chunk-SP6WCXY6.js +0 -217
  475. package/dist/chunk-SRTZQOK7.js +0 -102
  476. package/dist/chunk-T4RYLTR3.js +0 -178
  477. package/dist/chunk-TANWA6SU.js +0 -54
  478. package/dist/chunk-TBIHBC5V.js +0 -170
  479. package/dist/chunk-TGTCOCPF.js +0 -1278
  480. package/dist/chunk-TOFOT2BN.js +0 -294
  481. package/dist/chunk-UOYIPBTX.js +0 -217
  482. package/dist/chunk-USULBM4V.js +0 -2784
  483. package/dist/chunk-UYKJOBRO.js +0 -1616
  484. package/dist/chunk-UYKJOBRO.js.map +0 -7
  485. package/dist/chunk-V3WSMWBF.js +0 -123
  486. package/dist/chunk-VTHZGUSZ.js +0 -2146
  487. package/dist/chunk-VTHZGUSZ.js.map +0 -7
  488. package/dist/chunk-WMQDFVJK.js +0 -103
  489. package/dist/chunk-WTQQWFV4.js +0 -38
  490. package/dist/chunk-XDLKYVYU.js +0 -276
  491. package/dist/chunk-XNJN5J3U.js +0 -37
  492. package/dist/chunk-XQLOEZ7T.js +0 -158
  493. package/dist/chunk-XQLOEZ7T.js.map +0 -7
  494. package/dist/chunk-Y3SDMRDX.js +0 -119
  495. package/dist/chunk-Y5FE3G6J.js +0 -518
  496. package/dist/chunk-YMEWZVRG.js +0 -237
  497. package/dist/chunk-YPHFEKWI.js +0 -1339
  498. package/dist/chunk-Z4HW3FEE.js +0 -272
  499. package/dist/cohort-NYFUILFO.js +0 -70
  500. package/dist/condition-6M4AVISY.js +0 -327
  501. package/dist/controls-LMTWS3SY.js +0 -34
  502. package/dist/controls.config-4PK7HLFJ.js +0 -34
  503. package/dist/correlation-X6GB6ITK.js +0 -95
  504. package/dist/customdata.inputui-MDG3BTTG.js +0 -284
  505. package/dist/dataDownload-TFRI3VFM.js +0 -329
  506. package/dist/databrowser.ui-L2K7VVDW.js +0 -425
  507. package/dist/dictionary-MS6R3VNY.js +0 -113
  508. package/dist/dnaMethylation-2KYSQWNE.js +0 -33
  509. package/dist/dnaMethylation.integration.spec-2BHNKOGN.js +0 -198
  510. package/dist/dofetch-BETN7HEX.js +0 -48
  511. package/dist/e2pca-QC2EI5JM.js +0 -344
  512. package/dist/ep-BTRMR4OT.js +0 -1249
  513. package/dist/expclust.gdc.spec-C5ZMBCGO.js +0 -302
  514. package/dist/facet-LPXKLX53.js +0 -519
  515. package/dist/gb-PHJ2SM5D.js +0 -81
  516. package/dist/geneExpClustering-OXZJHEPD.js +0 -244
  517. package/dist/geneExpression-54RGEGML.js +0 -310
  518. package/dist/geneExpression-FLBQXMSX.js +0 -33
  519. package/dist/geneExpression.unit.spec-ZCE7G6HI.js +0 -128
  520. package/dist/geneORA-TELI5AFV.js +0 -273
  521. package/dist/geneRanking-7YZA5GNG.js +0 -548
  522. package/dist/geneVariant-NJYUEY4C.js +0 -36
  523. package/dist/geneVariant-VKWTXUMK.js +0 -289
  524. package/dist/geneVariant.integration.spec-RWYP523U.js +0 -503
  525. package/dist/genefusion.ui-B6J7I3RA.js +0 -303
  526. package/dist/geneset-VG4SFYML.js +0 -203
  527. package/dist/genomeBrowser.spec-5IS5Y2NG.js +0 -276
  528. package/dist/grin2-3T6KRC34.js +0 -70
  529. package/dist/grin2-FOOH736B.js +0 -949
  530. package/dist/hierCluster-WLAFGZAT.js +0 -55
  531. package/dist/hierCluster-XBL2TOOL.js +0 -59
  532. package/dist/hierCluster.config-VCBRBGDZ.js +0 -36
  533. package/dist/hierCluster.integration.spec-TNJD2QT6.js +0 -483
  534. package/dist/hierCluster.integration.spec-TNJD2QT6.js.map +0 -7
  535. package/dist/hierCluster.interactivity-PEEJ3BRC.js +0 -49
  536. package/dist/hierCluster.renderers-7ESGKIGM.js +0 -19
  537. package/dist/imagePlot-LWL6JMKM.js +0 -156
  538. package/dist/importPlot-CLBY6QZN.js +0 -8
  539. package/dist/isoformExpression-36P3BBN7.js +0 -35
  540. package/dist/isoformExpression.unit.spec-SF2SPTRC.js +0 -237
  541. package/dist/junction-B7DSIG4E.js +0 -36
  542. package/dist/junction.customTerm-7VZS4JDE.js +0 -16
  543. package/dist/junction.unit.spec-4MWU36MR.js +0 -182
  544. package/dist/launch.adhoc-3B34GV4S.js +0 -37
  545. package/dist/leftlabel.sample-6OM5H67E.js +0 -258
  546. package/dist/lollipop-SL2F5G6K.js +0 -166
  547. package/dist/maf-FRYGN5GR.js +0 -455
  548. package/dist/maftimeline-3UFWS73J.js +0 -587
  549. package/dist/matrix-DDKSOJ4C.js +0 -59
  550. package/dist/matrix-H2ZH2QKC.js +0 -54
  551. package/dist/matrix.cells-JTMC35SK.js +0 -26
  552. package/dist/matrix.config-EUBXWEBS.js +0 -37
  553. package/dist/matrix.data-CO5RBWY5.js +0 -23
  554. package/dist/matrix.dom-2SA43BPT.js +0 -11
  555. package/dist/matrix.groups-AKOJ2W6U.js +0 -26
  556. package/dist/matrix.integration.spec-66KNZO3S.js +0 -3160
  557. package/dist/matrix.interactivity-DY5YJIYB.js +0 -37
  558. package/dist/matrix.layout-MQQNHBI2.js +0 -39
  559. package/dist/matrix.legend-CGU7T6GF.js +0 -20
  560. package/dist/matrix.renderers-HC7PJN4B.js +0 -34
  561. package/dist/matrix.serieses-W4L6ZO37.js +0 -19
  562. package/dist/matrix.sort-T74DWFB2.js +0 -26
  563. package/dist/matrix.sort.unit.spec-EQEHQXTO.js +0 -468
  564. package/dist/matrix.sorterUi-GFQG4HFV.js +0 -16
  565. package/dist/matrix.sorterUi.unit.spec-XQHFOEYE.js +0 -338
  566. package/dist/matrix.unit.spec-4ZWUGZUC.js +0 -150
  567. package/dist/mavb-3CL5OHWB.js +0 -727
  568. package/dist/mds.fimo-2RFJQKJM.js +0 -513
  569. package/dist/mds.samplescatterplot-X6CXMY4C.js +0 -1545
  570. package/dist/mds.survivalplot-57NIKSSH.js +0 -477
  571. package/dist/multivalue-3TUGYL4J.js +0 -83
  572. package/dist/numericDictTermCluster-RLX5CLTN.js +0 -63
  573. package/dist/oncomatrix-COK76MJN.js +0 -290
  574. package/dist/oncomatrix.spec-SO3ZN5BF.js +0 -443
  575. package/dist/plot.2dvaf-TETCE4VG.js +0 -372
  576. package/dist/plot.app-5YUAVZA4.js +0 -36
  577. package/dist/plot.barplot-JUGY5Z7A.js +0 -97
  578. package/dist/plot.boxplot-QZXICT7J.js +0 -146
  579. package/dist/plot.brainImaging-2F6E6QS4.js +0 -51
  580. package/dist/plot.disco-H4P4B6QS.js +0 -99
  581. package/dist/plot.ssgq-LEQF3STZ.js +0 -134
  582. package/dist/plot.vaf2cov-UBMD2CN7.js +0 -253
  583. package/dist/polar2-AVEZM2T5.js +0 -232
  584. package/dist/profileForms-CUSUGTPC.js +0 -941
  585. package/dist/profilePlot-67Z7AXQ4.js +0 -49
  586. package/dist/proteinView-7K7VHGX3.js +0 -1357
  587. package/dist/proteomeCohortCompare-MRGH6HHI.js +0 -912
  588. package/dist/pseudbulk.unit.spec-ZHDL6GIM.js +0 -86
  589. package/dist/pseudobulk-ZNXPF7QB.js +0 -35
  590. package/dist/qualitative-QXMZHDWU.js +0 -38
  591. package/dist/radar2-QJDGNLED.js +0 -327
  592. package/dist/radarFacility2-LGGOOWX4.js +0 -335
  593. package/dist/rememberedGvQ.unit.spec-YKUMMYFT.js +0 -211
  594. package/dist/render-LSSRZJY3.js +0 -33
  595. package/dist/report-TTECPO44.js +0 -217
  596. package/dist/sampleView-EFS2UBRS.js +0 -43
  597. package/dist/samplelst-FXULLJBO.js +0 -106
  598. package/dist/samplematrix-MNFCXOWO.js +0 -2193
  599. package/dist/sc-2BUOXML2.js +0 -81
  600. package/dist/scatter-AVRTALYY.js +0 -925
  601. package/dist/scatter-CPEIVL3K.js +0 -88
  602. package/dist/selectGenomeWithTklst-3BG2ZPPN.js +0 -129
  603. package/dist/singleCellCellType-QLAEBVN2.js +0 -33
  604. package/dist/singleCellCellType.unit.spec-P4NAWYKL.js +0 -154
  605. package/dist/singleCellGeneExpression-IZ2PMDDL.js +0 -33
  606. package/dist/singleCellGeneExpression.unit.spec-DKBZICJM.js +0 -148
  607. package/dist/singleCellNumericValue-NB3QFH7H.js +0 -33
  608. package/dist/singleCellNumericValue.unit.spec-ZKK2KWRQ.js +0 -416
  609. package/dist/singleCellPlot-ZU655L4Z.js +0 -48
  610. package/dist/singlecell-NKPTXVHW.js +0 -1566
  611. package/dist/singlecell-PEIEFXVU.js +0 -81
  612. package/dist/snp-G55JGINX.js +0 -33
  613. package/dist/snp.unit.spec-47CCZKJO.js +0 -171
  614. package/dist/snplocus-TRVAEAPF.js +0 -203
  615. package/dist/spliceevent.a53ss.diagram-FL2R6F22.js +0 -146
  616. package/dist/spliceevent.exonskip.diagram-XDZWTJXR.js +0 -278
  617. package/dist/spliceevent.noeventdiagram-L322N534.js +0 -455
  618. package/dist/ssGSEA-DZY4LFQY.js +0 -33
  619. package/dist/ssGSEA.unit.spec-P6C3VTVZ.js +0 -83
  620. package/dist/stattable-R7O6OIMB.js +0 -117
  621. package/dist/studyCatalog-OMDE4JRD.js +0 -414
  622. package/dist/summarizeCnvGeneexp-A7HW6FJI.js +0 -158
  623. package/dist/summarizeGeneexpSurvival-ODI4HGFH.js +0 -105
  624. package/dist/summarizeMutationCnv-C2YB73OL.js +0 -159
  625. package/dist/summarizeMutationDiagnosis-4Y322NYU.js +0 -35
  626. package/dist/summarizeMutationSurvival-7IHNURLC.js +0 -99
  627. package/dist/summary-E4L5MZTF.js +0 -44
  628. package/dist/summary.integration.spec-SDCGE6BQ.js +0 -409
  629. package/dist/summaryInput-DHIMU5DM.js +0 -242
  630. package/dist/sunburst-ULNPFEAM.js +0 -278
  631. package/dist/survival-CU4N5KZO.js +0 -53
  632. package/dist/survival-KWWH6REE.js +0 -1248
  633. package/dist/survival.integration.spec-UW6SYVLP.js +0 -613
  634. package/dist/svgraph-HFI6NNF3.js +0 -1382
  635. package/dist/svmr-VHS7Z4SO.js +0 -3837
  636. package/dist/table-GJUXHKQI.js +0 -197
  637. package/dist/termCollection-CCZ4BFIU.js +0 -33
  638. package/dist/termCollection-O5CQ472U.js +0 -252
  639. package/dist/termCollection.unit.spec-KR5G6JFU.js +0 -299
  640. package/dist/termCollectionFractionSelection-IKU5MFBT.js +0 -42
  641. package/dist/termCollectionFractionSelection.unit.spec-6ZWHNGES.js +0 -188
  642. package/dist/tk-3DLMAFW7.js +0 -41
  643. package/dist/tk-CAYWF7LX.js +0 -1121
  644. package/dist/tp.ui-NF5ZYOHW.js +0 -1454
  645. package/dist/tvs.density-V6ZXSFGF.js +0 -19
  646. package/dist/tvs.dt-43A4SSLG.js +0 -34
  647. package/dist/tvs.dtcnv.categorical-DYXHUNP2.js +0 -35
  648. package/dist/tvs.dtcnv.continuous-NOKNP4UG.js +0 -67
  649. package/dist/tvs.dtfusion-4NAOCC2X.js +0 -35
  650. package/dist/tvs.dtitd-SZC6EITI.js +0 -35
  651. package/dist/tvs.dtsnvindel-EYSBCNQK.js +0 -35
  652. package/dist/tvs.dtsv-VSPWIIFO.js +0 -35
  653. package/dist/tvs.numeric-M5LH3PRH.js +0 -20
  654. package/dist/tvs.samplelst-3YQ4GKNG.js +0 -98
  655. package/dist/tvs.termCollection-EVM4ATPW.js +0 -124
  656. package/dist/tvs.termCollection-EVM4ATPW.js.map +0 -7
  657. package/dist/vocabulary-HCPEIO2P.js +0 -36
  658. package/dist/wsi.direct-K2J6GGWY.js +0 -8343
  659. /package/dist/{2dmaf-7VZ536T5.js.map → 2dmaf-FEZRNHDF.js.map} +0 -0
  660. /package/dist/{AggMatrixInput-UTUOXTGA.js.map → AggMatrixInput-6FJIELYO.js.map} +0 -0
  661. /package/dist/{AggregateMatrix-X75HUZYO.js.map → AggregateMatrix-MUPBUGIZ.js.map} +0 -0
  662. /package/dist/{AppHeader-X2DR6VSM.js.map → AppHeader-ZTNZ62UL.js.map} +0 -0
  663. /package/dist/{CorrelationVolcano-IDBUJH2E.js.map → CorrelationVolcano-42NYXAXG.js.map} +0 -0
  664. /package/dist/{Cuminc-BYFIMOLO.js.map → Cuminc-6AKLT6HF.js.map} +0 -0
  665. /package/dist/{DE-BI7DHHW4.js.map → DE-KJHFZWND.js.map} +0 -0
  666. /package/dist/{DEinput-W66CT4U2.js.map → DEinput-HXB3LYZW.js.map} +0 -0
  667. /package/dist/{DM-62TEJA3C.js.map → DM-AAHX4PLH.js.map} +0 -0
  668. /package/dist/{DifferentialAnalysis-PRTA6CYW.js.map → DifferentialAnalysis-JX4EDEOY.js.map} +0 -0
  669. /package/dist/{Disco-4JQP3FRW.js.map → Disco-GXKO4QQH.js.map} +0 -0
  670. /package/dist/{Disco.UI-6RHAA5KU.js.map → Disco.UI-DGD4RXJP.js.map} +0 -0
  671. /package/dist/{DmrPlot-VYQYMTQ7.js.map → DmrPlot-DQ3XTMTN.js.map} +0 -0
  672. /package/dist/{GB-LULUM5LH.js.map → GB-OUWNNBBK.js.map} +0 -0
  673. /package/dist/{GSEA-DT3SYXOZ.js.map → GSEA-DSKGFAPG.js.map} +0 -0
  674. /package/dist/{GeneExpInput-UILWAGRH.js.map → GeneExpInput-FZLOBE2Q.js.map} +0 -0
  675. /package/dist/{Geomap-AFKEGMR5.js.map → Geomap-GP5KD3OX.js.map} +0 -0
  676. /package/dist/{HicApp-APDL5POY.js.map → HicApp-2N6WYWZX.js.map} +0 -0
  677. /package/dist/{IDCViewer-DQXAORHT.js.map → IDCViewer-MSUC7IXX.js.map} +0 -0
  678. /package/dist/{NumBinaryEditor-OUVIOEH7.js.map → NumBinaryEditor-C4G2IH36.js.map} +0 -0
  679. /package/dist/{NumBinaryEditor.unit.spec-VBX2X4CT.js.map → NumBinaryEditor.unit.spec-ZAVAUGXA.js.map} +0 -0
  680. /package/dist/{NumContEditor-JVPRBZPW.js.map → NumContEditor-VEEMMWHX.js.map} +0 -0
  681. /package/dist/{NumContEditor.unit.spec-EQNB6RMI.js.map → NumContEditor.unit.spec-65ORC42O.js.map} +0 -0
  682. /package/dist/{NumCustomBinEditor-E2SXZDF4.js.map → NumCustomBinEditor-YIUHJAXP.js.map} +0 -0
  683. /package/dist/{NumCustomBinEditor.unit.spec-VLR7MGNL.js.map → NumCustomBinEditor.unit.spec-NT5VK2LO.js.map} +0 -0
  684. /package/dist/{NumDiscreteEditor-CUA55FU3.js.map → NumDiscreteEditor-A4WELAJH.js.map} +0 -0
  685. /package/dist/{NumDiscreteEditor.unit.spec-7IPCMUDQ.js.map → NumDiscreteEditor.unit.spec-7QABM6KK.js.map} +0 -0
  686. /package/dist/{NumRegularBinEditor-CWU7YBEP.js.map → NumRegularBinEditor-IPVPLSQY.js.map} +0 -0
  687. /package/dist/{NumRegularBinEditor.unit.spec-RGV3EUPC.js.map → NumRegularBinEditor.unit.spec-Q4DMWATB.js.map} +0 -0
  688. /package/dist/{NumSplineEditor-PC5X7AUJ.js.map → NumSplineEditor-5E6CIWLP.js.map} +0 -0
  689. /package/dist/{NumSplineEditor.unit.spec-QCR3RL5W.js.map → NumSplineEditor.unit.spec-DHJF5F6H.js.map} +0 -0
  690. /package/dist/{NumericDensity-CFUEE5ZN.js.map → NumericDensity-GXMWWK2A.js.map} +0 -0
  691. /package/dist/{NumericDensity.unit.spec-JOCVEC32.js.map → NumericDensity.unit.spec-OAPOMSEW.js.map} +0 -0
  692. /package/dist/{NumericHandler-VL2Z55KF.js.map → NumericHandler-H5WHGFXD.js.map} +0 -0
  693. /package/dist/{NumericHandler.unit.spec-ULM5FSSA.js.map → NumericHandler.unit.spec-PBNOJEMS.js.map} +0 -0
  694. /package/dist/{ProteomeInput-3WKTVCYT.js.map → ProteomeInput-ZA7R5S43.js.map} +0 -0
  695. /package/dist/{Regression-M7AQTYXL.js.map → Regression-WSWTSXFX.js.map} +0 -0
  696. /package/dist/{RunChart2-54SVOXJR.js.map → RunChart2-J5CTJI5C.js.map} +0 -0
  697. /package/dist/{Volcano-T57VFSWR.js.map → Volcano-4IEQIEDS.js.map} +0 -0
  698. /package/dist/{Wsi-U3U3EILE.js.map → Wsi-LJ6AY5RI.js.map} +0 -0
  699. /package/dist/{adSandbox-S3JP7XF3.js.map → adSandbox-EIN4KEML.js.map} +0 -0
  700. /package/dist/{animatedBubbleChart-LZKNERIM.js.map → animatedBubbleChart-LINYUKMD.js.map} +0 -0
  701. /package/dist/{app-2MERLGNJ.js.map → app-SE7UQ5DB.js.map} +0 -0
  702. /package/dist/{app-ZNSUUOFJ.js.map → app-VGMZNGWP.js.map} +0 -0
  703. /package/dist/{bam-ESRPS4TQ.js.map → bam-ZXEZWRSZ.js.map} +0 -0
  704. /package/dist/{barchart-BPUEO4RK.js.map → barchart-N4B4C2FO.js.map} +0 -0
  705. /package/dist/{barchart2-Z36PNSM2.js.map → barchart2-EDVEWTVX.js.map} +0 -0
  706. /package/dist/{block-GEG4UUOU.js.map → block-E7YUGCHL.js.map} +0 -0
  707. /package/dist/{block.init-SB6OX35E.js.map → block.init-FSOCF2IM.js.map} +0 -0
  708. /package/dist/{block.mds.expressionrank-2JLMS334.js.map → block.mds.expressionrank-EDBTITXU.js.map} +0 -0
  709. /package/dist/{block.mds.geneboxplot-BZMGG6G3.js.map → block.mds.geneboxplot-GG5672SY.js.map} +0 -0
  710. /package/dist/{block.mds.junction-636PWE2O.js.map → block.mds.junction-HUC4S24K.js.map} +0 -0
  711. /package/dist/{block.mds.svcnv-S4L2HMZW.js.map → block.mds.svcnv-EQHYCIBU.js.map} +0 -0
  712. /package/dist/{block.svg-A7EABUXG.js.map → block.svg-HBVPUQJ2.js.map} +0 -0
  713. /package/dist/{block.tk.aicheck-KNFJVUTW.js.map → block.tk.aicheck-TRJ5IIWZ.js.map} +0 -0
  714. /package/dist/{block.tk.ase-BPU25OLX.js.map → block.tk.ase-COV7YYYO.js.map} +0 -0
  715. /package/dist/{block.tk.bam-VC4CZCUS.js.map → block.tk.bam-MDSLY6NH.js.map} +0 -0
  716. /package/dist/{block.tk.bedgraphdot-FQS4Z4RC.js.map → block.tk.bedgraphdot-MKWEL53X.js.map} +0 -0
  717. /package/dist/{block.tk.bigwig.ui-7STXSD3X.js.map → block.tk.bigwig.ui-UKKJX7TA.js.map} +0 -0
  718. /package/dist/{block.tk.hicstraw-CVDCOMPP.js.map → block.tk.hicstraw-6LNXEIOF.js.map} +0 -0
  719. /package/dist/{block.tk.junction-PG4RZFH3.js.map → block.tk.junction-F3SERFFD.js.map} +0 -0
  720. /package/dist/{block.tk.junction.textmatrixui-JRW4ZJIK.js.map → block.tk.junction.textmatrixui-2XUMSKLS.js.map} +0 -0
  721. /package/dist/{block.tk.ld-DLDP2NHJ.js.map → block.tk.ld-COP5RUJJ.js.map} +0 -0
  722. /package/dist/{block.tk.menu-PWGFMKBQ.js.map → block.tk.menu-SRDPD44N.js.map} +0 -0
  723. /package/dist/{block.tk.pgv-HOBOXQIN.js.map → block.tk.pgv-3SVINTXN.js.map} +0 -0
  724. /package/dist/{brainImaging-GUQTOHQF.js.map → brainImaging-UNBA4KA3.js.map} +0 -0
  725. /package/dist/{brainRegions-JWBIBCTG.js.map → brainRegions-DC6TQB53.js.map} +0 -0
  726. /package/dist/{bubbleHeatmap-EUO3DUVT.js.map → bubbleHeatmap-X3W3AZJY.js.map} +0 -0
  727. /package/dist/{cellTypeBubbleHeatmap-TIBGPZTB.js.map → cellTypeBubbleHeatmap-LFI6TGOO.js.map} +0 -0
  728. /package/dist/{chunk-SRTZQOK7.js.map → chunk-2ANFUNS3.js.map} +0 -0
  729. /package/dist/{chunk-TGTCOCPF.js.map → chunk-2G4SFRWC.js.map} +0 -0
  730. /package/dist/{chunk-Q3PAXUCU.js.map → chunk-2WKGE7BO.js.map} +0 -0
  731. /package/dist/{chunk-YMEWZVRG.js.map → chunk-3CGMCYZB.js.map} +0 -0
  732. /package/dist/{chunk-6MQPXWOR.js.map → chunk-3I4DBVLM.js.map} +0 -0
  733. /package/dist/{chunk-O5FUHCNU.js.map → chunk-42VFF74T.js.map} +0 -0
  734. /package/dist/{chunk-BLYD6SQO.js.map → chunk-4HTRCXLS.js.map} +0 -0
  735. /package/dist/{chunk-D4XHYQNS.js.map → chunk-55T2AMJ3.js.map} +0 -0
  736. /package/dist/{chunk-GLPTPX45.js.map → chunk-5JDG5NNA.js.map} +0 -0
  737. /package/dist/{chunk-3TV5WWUN.js.map → chunk-6AFMWQXZ.js.map} +0 -0
  738. /package/dist/{chunk-TOFOT2BN.js.map → chunk-6ECKCC4X.js.map} +0 -0
  739. /package/dist/{chunk-BX3P73XH.js.map → chunk-6QMC7LFA.js.map} +0 -0
  740. /package/dist/{chunk-7DSL65G7.js.map → chunk-72L6NTNT.js.map} +0 -0
  741. /package/dist/{chunk-EM6KUVI5.js.map → chunk-7ISAV37C.js.map} +0 -0
  742. /package/dist/{chunk-R4E7BXC6.js.map → chunk-A32XQLMP.js.map} +0 -0
  743. /package/dist/{chunk-SDYFM3UL.js.map → chunk-A3MYBXG3.js.map} +0 -0
  744. /package/dist/{chunk-YPHFEKWI.js.map → chunk-AU3Y6IQF.js.map} +0 -0
  745. /package/dist/{chunk-NJWNKBRC.js.map → chunk-AXL3CC4U.js.map} +0 -0
  746. /package/dist/{chunk-3ELYMSGO.js.map → chunk-BSWVDH75.js.map} +0 -0
  747. /package/dist/{chunk-4Y5W26UF.js.map → chunk-CME6DYDH.js.map} +0 -0
  748. /package/dist/{chunk-Y3SDMRDX.js.map → chunk-DD3DWHUY.js.map} +0 -0
  749. /package/dist/{chunk-HGXSYPU6.js.map → chunk-DKED35KW.js.map} +0 -0
  750. /package/dist/{chunk-AR2UIN77.js.map → chunk-DPGALT5N.js.map} +0 -0
  751. /package/dist/{chunk-AB6JQFIQ.js.map → chunk-DPTGY4BW.js.map} +0 -0
  752. /package/dist/{chunk-HDV3LHCN.js.map → chunk-DQD4MTK4.js.map} +0 -0
  753. /package/dist/{chunk-M4PUW3ML.js.map → chunk-EFLRT7JY.js.map} +0 -0
  754. /package/dist/{chunk-KVRSO2OZ.js.map → chunk-EMSO3BNW.js.map} +0 -0
  755. /package/dist/{chunk-XDLKYVYU.js.map → chunk-F5QB5YEE.js.map} +0 -0
  756. /package/dist/{chunk-E76UYIT2.js.map → chunk-FKSR53VK.js.map} +0 -0
  757. /package/dist/{chunk-T4RYLTR3.js.map → chunk-FSWBNSQD.js.map} +0 -0
  758. /package/dist/{chunk-XNJN5J3U.js.map → chunk-G6ZIO5T3.js.map} +0 -0
  759. /package/dist/{chunk-ME325OQC.js.map → chunk-HTZJQNHP.js.map} +0 -0
  760. /package/dist/{chunk-G5USS6FI.js.map → chunk-ITYNHDDD.js.map} +0 -0
  761. /package/dist/{chunk-TBIHBC5V.js.map → chunk-IWVCFZHQ.js.map} +0 -0
  762. /package/dist/{chunk-GWVVEOYX.js.map → chunk-J4WRX5G6.js.map} +0 -0
  763. /package/dist/{chunk-GPY6SBCX.js.map → chunk-JZLIHI6A.js.map} +0 -0
  764. /package/dist/{chunk-WMQDFVJK.js.map → chunk-KJGYGPJZ.js.map} +0 -0
  765. /package/dist/{chunk-UOYIPBTX.js.map → chunk-L3UFI52T.js.map} +0 -0
  766. /package/dist/{chunk-PTQ4GQCS.js.map → chunk-L4ZPMF7E.js.map} +0 -0
  767. /package/dist/{chunk-F4GYWCRF.js.map → chunk-L62JI5UL.js.map} +0 -0
  768. /package/dist/{chunk-Y5FE3G6J.js.map → chunk-MRPYHLFW.js.map} +0 -0
  769. /package/dist/{chunk-G2X2PN74.js.map → chunk-MVWJHZ5G.js.map} +0 -0
  770. /package/dist/{chunk-ODHQPTHU.js.map → chunk-NGWU4QLU.js.map} +0 -0
  771. /package/dist/{chunk-3CGAABHZ.js.map → chunk-OC2FSBFB.js.map} +0 -0
  772. /package/dist/{chunk-M367Y7ML.js.map → chunk-OGRDLK57.js.map} +0 -0
  773. /package/dist/{chunk-5XE3WSUX.js.map → chunk-OYBYKZUR.js.map} +0 -0
  774. /package/dist/{chunk-665X7R7S.js.map → chunk-PFRPC2SY.js.map} +0 -0
  775. /package/dist/{chunk-Z4HW3FEE.js.map → chunk-PLHOCPJD.js.map} +0 -0
  776. /package/dist/{chunk-AIVPAC5Q.js.map → chunk-PQDZLOY7.js.map} +0 -0
  777. /package/dist/{chunk-PUSSP76H.js.map → chunk-QDNUIS2Y.js.map} +0 -0
  778. /package/dist/{chunk-G3QKTYUT.js.map → chunk-RHOMR2GY.js.map} +0 -0
  779. /package/dist/{chunk-J5JBHGRN.js.map → chunk-SKF6HQ74.js.map} +0 -0
  780. /package/dist/{chunk-HMKEVTRM.js.map → chunk-SPFK5XZH.js.map} +0 -0
  781. /package/dist/{chunk-DH74ZT37.js.map → chunk-SQGAWR2L.js.map} +0 -0
  782. /package/dist/{chunk-67URJYN7.js.map → chunk-TGKWEAUE.js.map} +0 -0
  783. /package/dist/{chunk-HPCKKXRK.js.map → chunk-UKOOGNUF.js.map} +0 -0
  784. /package/dist/{chunk-V3WSMWBF.js.map → chunk-UL5PEVZW.js.map} +0 -0
  785. /package/dist/{chunk-USULBM4V.js.map → chunk-UTMIX2H2.js.map} +0 -0
  786. /package/dist/{chunk-AXF6SVNQ.js.map → chunk-UZNFOCE7.js.map} +0 -0
  787. /package/dist/{chunk-BSWPONNA.js.map → chunk-V7UVHM57.js.map} +0 -0
  788. /package/dist/{chunk-JHOGTGIS.js.map → chunk-VP2JWT5W.js.map} +0 -0
  789. /package/dist/{chunk-KCX54MGS.js.map → chunk-VSTHBKQW.js.map} +0 -0
  790. /package/dist/{chunk-WTQQWFV4.js.map → chunk-W7A4QXZ7.js.map} +0 -0
  791. /package/dist/{chunk-FJ3JD7B3.js.map → chunk-WKCVZIN7.js.map} +0 -0
  792. /package/dist/{chunk-TANWA6SU.js.map → chunk-X7TJBXJJ.js.map} +0 -0
  793. /package/dist/{chunk-AKKJFMW5.js.map → chunk-XEEMCYP6.js.map} +0 -0
  794. /package/dist/{chunk-FW3ME75U.js.map → chunk-XTQWAVWJ.js.map} +0 -0
  795. /package/dist/{chunk-CW35X5ZL.js.map → chunk-YAN2MOON.js.map} +0 -0
  796. /package/dist/{chunk-ACOHIDWO.js.map → chunk-YCORHJ64.js.map} +0 -0
  797. /package/dist/{chunk-QWBKN2IC.js.map → chunk-YOBTHZVU.js.map} +0 -0
  798. /package/dist/{chunk-SP6WCXY6.js.map → chunk-ZTT6ZHU5.js.map} +0 -0
  799. /package/dist/{cohort-NYFUILFO.js.map → cohort-RF4FT2NT.js.map} +0 -0
  800. /package/dist/{condition-6M4AVISY.js.map → condition-WXE2CFYT.js.map} +0 -0
  801. /package/dist/{controls-LMTWS3SY.js.map → controls-AYF4H7UG.js.map} +0 -0
  802. /package/dist/{controls.config-4PK7HLFJ.js.map → controls.config-TXZKQNYC.js.map} +0 -0
  803. /package/dist/{correlation-X6GB6ITK.js.map → correlation-UAYMVVUS.js.map} +0 -0
  804. /package/dist/{customdata.inputui-MDG3BTTG.js.map → customdata.inputui-I7RFOGYM.js.map} +0 -0
  805. /package/dist/{dataDownload-TFRI3VFM.js.map → dataDownload-4AGSDSEO.js.map} +0 -0
  806. /package/dist/{databrowser.ui-L2K7VVDW.js.map → databrowser.ui-RGJEA2BI.js.map} +0 -0
  807. /package/dist/{dictionary-MS6R3VNY.js.map → dictionary-AWWQXIRP.js.map} +0 -0
  808. /package/dist/{dnaMethylation-2KYSQWNE.js.map → dnaMethylation-PICKZS2M.js.map} +0 -0
  809. /package/dist/{dnaMethylation.integration.spec-2BHNKOGN.js.map → dnaMethylation.integration.spec-JUSB3CFZ.js.map} +0 -0
  810. /package/dist/{dofetch-BETN7HEX.js.map → dofetch-ZJMKEYN2.js.map} +0 -0
  811. /package/dist/{e2pca-QC2EI5JM.js.map → e2pca-K4W7ZJZG.js.map} +0 -0
  812. /package/dist/{ep-BTRMR4OT.js.map → ep-OY5YQMEF.js.map} +0 -0
  813. /package/dist/{expclust.gdc.spec-C5ZMBCGO.js.map → expclust.gdc.spec-LYDBM3TZ.js.map} +0 -0
  814. /package/dist/{facet-LPXKLX53.js.map → facet-7NJHLLCZ.js.map} +0 -0
  815. /package/dist/{gb-PHJ2SM5D.js.map → gb-COV44BMA.js.map} +0 -0
  816. /package/dist/{geneExpClustering-OXZJHEPD.js.map → geneExpClustering-EQR5XX4J.js.map} +0 -0
  817. /package/dist/{geneExpression-54RGEGML.js.map → geneExpression-2BNDQ6S6.js.map} +0 -0
  818. /package/dist/{geneExpression-FLBQXMSX.js.map → geneExpression-PGB6WF5H.js.map} +0 -0
  819. /package/dist/{geneExpression.unit.spec-ZCE7G6HI.js.map → geneExpression.unit.spec-OUNGGOJP.js.map} +0 -0
  820. /package/dist/{geneORA-TELI5AFV.js.map → geneORA-EKNEVQOS.js.map} +0 -0
  821. /package/dist/{geneRanking-7YZA5GNG.js.map → geneRanking-XUXLRERA.js.map} +0 -0
  822. /package/dist/{geneVariant-NJYUEY4C.js.map → geneVariant-JZDYV6LS.js.map} +0 -0
  823. /package/dist/{geneVariant-VKWTXUMK.js.map → geneVariant-KPZ2FYLK.js.map} +0 -0
  824. /package/dist/{geneVariant.integration.spec-RWYP523U.js.map → geneVariant.integration.spec-ISMLGTKC.js.map} +0 -0
  825. /package/dist/{genefusion.ui-B6J7I3RA.js.map → genefusion.ui-GRUXFC4U.js.map} +0 -0
  826. /package/dist/{geneset-VG4SFYML.js.map → geneset-RM4XIX23.js.map} +0 -0
  827. /package/dist/{genomeBrowser.spec-5IS5Y2NG.js.map → genomeBrowser.spec-X7EOK2LS.js.map} +0 -0
  828. /package/dist/{grin2-FOOH736B.js.map → grin2-5XRUMYQO.js.map} +0 -0
  829. /package/dist/{grin2-3T6KRC34.js.map → grin2-SWZLKD52.js.map} +0 -0
  830. /package/dist/{hierCluster-WLAFGZAT.js.map → hierCluster-I6T4XD3P.js.map} +0 -0
  831. /package/dist/{hierCluster-XBL2TOOL.js.map → hierCluster-XVDGUOW7.js.map} +0 -0
  832. /package/dist/{hierCluster.config-VCBRBGDZ.js.map → hierCluster.config-66CKAAPG.js.map} +0 -0
  833. /package/dist/{hierCluster.interactivity-PEEJ3BRC.js.map → hierCluster.interactivity-B5ZNFF4R.js.map} +0 -0
  834. /package/dist/{hierCluster.renderers-7ESGKIGM.js.map → hierCluster.renderers-R2DTKTLI.js.map} +0 -0
  835. /package/dist/{imagePlot-LWL6JMKM.js.map → imagePlot-ZM4IVDJT.js.map} +0 -0
  836. /package/dist/{importPlot-CLBY6QZN.js.map → importPlot-FQ65CZRI.js.map} +0 -0
  837. /package/dist/{isoformExpression-36P3BBN7.js.map → isoformExpression-BFCLGD2U.js.map} +0 -0
  838. /package/dist/{isoformExpression.unit.spec-SF2SPTRC.js.map → isoformExpression.unit.spec-KYI4HI7U.js.map} +0 -0
  839. /package/dist/{junction-B7DSIG4E.js.map → junction-BKH6RWOP.js.map} +0 -0
  840. /package/dist/{junction.customTerm-7VZS4JDE.js.map → junction.customTerm-VNQKP5I4.js.map} +0 -0
  841. /package/dist/{junction.unit.spec-4MWU36MR.js.map → junction.unit.spec-MQIHKSNE.js.map} +0 -0
  842. /package/dist/{launch.adhoc-3B34GV4S.js.map → launch.adhoc-AHTCA2BP.js.map} +0 -0
  843. /package/dist/{leftlabel.sample-6OM5H67E.js.map → leftlabel.sample-LIBMKP22.js.map} +0 -0
  844. /package/dist/{lollipop-SL2F5G6K.js.map → lollipop-26ZQH3EL.js.map} +0 -0
  845. /package/dist/{maf-FRYGN5GR.js.map → maf-W3W2XJ5B.js.map} +0 -0
  846. /package/dist/{maftimeline-3UFWS73J.js.map → maftimeline-LCJD5O2M.js.map} +0 -0
  847. /package/dist/{matrix-DDKSOJ4C.js.map → matrix-H634EZWK.js.map} +0 -0
  848. /package/dist/{matrix-H2ZH2QKC.js.map → matrix-O2AINT5M.js.map} +0 -0
  849. /package/dist/{matrix.cells-JTMC35SK.js.map → matrix.cells-3U3CUU5I.js.map} +0 -0
  850. /package/dist/{matrix.config-EUBXWEBS.js.map → matrix.config-F6IPB5B5.js.map} +0 -0
  851. /package/dist/{matrix.data-CO5RBWY5.js.map → matrix.data-KQNBNYC6.js.map} +0 -0
  852. /package/dist/{matrix.dom-2SA43BPT.js.map → matrix.dom-YQNX4IQO.js.map} +0 -0
  853. /package/dist/{matrix.groups-AKOJ2W6U.js.map → matrix.groups-QFL2ZDHD.js.map} +0 -0
  854. /package/dist/{matrix.integration.spec-66KNZO3S.js.map → matrix.integration.spec-OVGSXJWO.js.map} +0 -0
  855. /package/dist/{matrix.interactivity-DY5YJIYB.js.map → matrix.interactivity-Q5ODZPDL.js.map} +0 -0
  856. /package/dist/{matrix.layout-MQQNHBI2.js.map → matrix.layout-YPYM7FRY.js.map} +0 -0
  857. /package/dist/{matrix.legend-CGU7T6GF.js.map → matrix.legend-ZO57ENXP.js.map} +0 -0
  858. /package/dist/{matrix.renderers-HC7PJN4B.js.map → matrix.renderers-NIGONKWO.js.map} +0 -0
  859. /package/dist/{matrix.serieses-W4L6ZO37.js.map → matrix.serieses-ZQD2U6RF.js.map} +0 -0
  860. /package/dist/{matrix.sort-T74DWFB2.js.map → matrix.sort-RZU65LR2.js.map} +0 -0
  861. /package/dist/{matrix.sort.unit.spec-EQEHQXTO.js.map → matrix.sort.unit.spec-NDFK2A5C.js.map} +0 -0
  862. /package/dist/{matrix.sorterUi-GFQG4HFV.js.map → matrix.sorterUi-MVUI25W7.js.map} +0 -0
  863. /package/dist/{matrix.sorterUi.unit.spec-XQHFOEYE.js.map → matrix.sorterUi.unit.spec-4ZKNOV2L.js.map} +0 -0
  864. /package/dist/{matrix.unit.spec-4ZWUGZUC.js.map → matrix.unit.spec-V5XNLECG.js.map} +0 -0
  865. /package/dist/{mavb-3CL5OHWB.js.map → mavb-LF7A7BDK.js.map} +0 -0
  866. /package/dist/{mds.fimo-2RFJQKJM.js.map → mds.fimo-KJ4HPMZP.js.map} +0 -0
  867. /package/dist/{mds.samplescatterplot-X6CXMY4C.js.map → mds.samplescatterplot-ZHNWWWYI.js.map} +0 -0
  868. /package/dist/{mds.survivalplot-57NIKSSH.js.map → mds.survivalplot-DNG7I22N.js.map} +0 -0
  869. /package/dist/{multivalue-3TUGYL4J.js.map → multivalue-SJQF7PHU.js.map} +0 -0
  870. /package/dist/{numericDictTermCluster-RLX5CLTN.js.map → numericDictTermCluster-O6PKT2FJ.js.map} +0 -0
  871. /package/dist/{oncomatrix-COK76MJN.js.map → oncomatrix-YJCPKS72.js.map} +0 -0
  872. /package/dist/{oncomatrix.spec-SO3ZN5BF.js.map → oncomatrix.spec-MWGBQCIQ.js.map} +0 -0
  873. /package/dist/{plot.2dvaf-TETCE4VG.js.map → plot.2dvaf-KIPQYNEH.js.map} +0 -0
  874. /package/dist/{plot.app-5YUAVZA4.js.map → plot.app-WHG3SEOG.js.map} +0 -0
  875. /package/dist/{plot.barplot-JUGY5Z7A.js.map → plot.barplot-DTSYFUPC.js.map} +0 -0
  876. /package/dist/{plot.boxplot-QZXICT7J.js.map → plot.boxplot-MQDULP3P.js.map} +0 -0
  877. /package/dist/{plot.brainImaging-2F6E6QS4.js.map → plot.brainImaging-DGVJQSCH.js.map} +0 -0
  878. /package/dist/{plot.disco-H4P4B6QS.js.map → plot.disco-HYPRBLMQ.js.map} +0 -0
  879. /package/dist/{plot.ssgq-LEQF3STZ.js.map → plot.ssgq-J5MMN7OD.js.map} +0 -0
  880. /package/dist/{plot.vaf2cov-UBMD2CN7.js.map → plot.vaf2cov-CID7GQB5.js.map} +0 -0
  881. /package/dist/{polar2-AVEZM2T5.js.map → polar2-QTSO2HCB.js.map} +0 -0
  882. /package/dist/{profileForms-CUSUGTPC.js.map → profileForms-SRR2M5OS.js.map} +0 -0
  883. /package/dist/{profilePlot-67Z7AXQ4.js.map → profilePlot-NDC4S2SC.js.map} +0 -0
  884. /package/dist/{proteinView-7K7VHGX3.js.map → proteinView-EFNQL3LD.js.map} +0 -0
  885. /package/dist/{proteomeCohortCompare-MRGH6HHI.js.map → proteomeCohortCompare-WMR53HEL.js.map} +0 -0
  886. /package/dist/{pseudbulk.unit.spec-ZHDL6GIM.js.map → pseudbulk.unit.spec-6MRZNXFI.js.map} +0 -0
  887. /package/dist/{pseudobulk-ZNXPF7QB.js.map → pseudobulk-O5EC44RY.js.map} +0 -0
  888. /package/dist/{qualitative-QXMZHDWU.js.map → qualitative-W6MFYG7Z.js.map} +0 -0
  889. /package/dist/{radar2-QJDGNLED.js.map → radar2-GIQILMWK.js.map} +0 -0
  890. /package/dist/{radarFacility2-LGGOOWX4.js.map → radarFacility2-5YJZ5JCK.js.map} +0 -0
  891. /package/dist/{rememberedGvQ.unit.spec-YKUMMYFT.js.map → rememberedGvQ.unit.spec-B6RQM5LQ.js.map} +0 -0
  892. /package/dist/{render-LSSRZJY3.js.map → render-2J4LR3UI.js.map} +0 -0
  893. /package/dist/{report-TTECPO44.js.map → report-MUMQK6XY.js.map} +0 -0
  894. /package/dist/{sampleView-EFS2UBRS.js.map → sampleView-NKZMNBMH.js.map} +0 -0
  895. /package/dist/{samplelst-FXULLJBO.js.map → samplelst-X74JZMTR.js.map} +0 -0
  896. /package/dist/{samplematrix-MNFCXOWO.js.map → samplematrix-QDQXB5ZG.js.map} +0 -0
  897. /package/dist/{sc-2BUOXML2.js.map → sc-FGHV5CBJ.js.map} +0 -0
  898. /package/dist/{scatter-AVRTALYY.js.map → scatter-QFVRBA7F.js.map} +0 -0
  899. /package/dist/{scatter-CPEIVL3K.js.map → scatter-YXF5VQGZ.js.map} +0 -0
  900. /package/dist/{selectGenomeWithTklst-3BG2ZPPN.js.map → selectGenomeWithTklst-DP4RPV7U.js.map} +0 -0
  901. /package/dist/{singleCellCellType-QLAEBVN2.js.map → singleCellCellType-XCHCMRR6.js.map} +0 -0
  902. /package/dist/{singleCellCellType.unit.spec-P4NAWYKL.js.map → singleCellCellType.unit.spec-S3JTP235.js.map} +0 -0
  903. /package/dist/{singleCellGeneExpression-IZ2PMDDL.js.map → singleCellGeneExpression-FD6REV7Y.js.map} +0 -0
  904. /package/dist/{singleCellGeneExpression.unit.spec-DKBZICJM.js.map → singleCellGeneExpression.unit.spec-PVMZYD4G.js.map} +0 -0
  905. /package/dist/{singleCellNumericValue-NB3QFH7H.js.map → singleCellNumericValue-SIITQPMD.js.map} +0 -0
  906. /package/dist/{singleCellNumericValue.unit.spec-ZKK2KWRQ.js.map → singleCellNumericValue.unit.spec-7PJEHLF7.js.map} +0 -0
  907. /package/dist/{singleCellPlot-ZU655L4Z.js.map → singleCellPlot-YJCFAYJW.js.map} +0 -0
  908. /package/dist/{singlecell-NKPTXVHW.js.map → singlecell-6R7YK5P3.js.map} +0 -0
  909. /package/dist/{singlecell-PEIEFXVU.js.map → singlecell-KHMH732Y.js.map} +0 -0
  910. /package/dist/{snp-G55JGINX.js.map → snp-HXCVSW2F.js.map} +0 -0
  911. /package/dist/{snp.unit.spec-47CCZKJO.js.map → snp.unit.spec-HXMFR4QS.js.map} +0 -0
  912. /package/dist/{snplocus-TRVAEAPF.js.map → snplocus-YQVHAKBC.js.map} +0 -0
  913. /package/dist/{spliceevent.a53ss.diagram-FL2R6F22.js.map → spliceevent.a53ss.diagram-4IBTR3JD.js.map} +0 -0
  914. /package/dist/{spliceevent.exonskip.diagram-XDZWTJXR.js.map → spliceevent.exonskip.diagram-5ZTG65CE.js.map} +0 -0
  915. /package/dist/{spliceevent.noeventdiagram-L322N534.js.map → spliceevent.noeventdiagram-WO5KSC45.js.map} +0 -0
  916. /package/dist/{ssGSEA-DZY4LFQY.js.map → ssGSEA-VJ3LVYJV.js.map} +0 -0
  917. /package/dist/{ssGSEA.unit.spec-P6C3VTVZ.js.map → ssGSEA.unit.spec-JQIJ4NZP.js.map} +0 -0
  918. /package/dist/{stattable-R7O6OIMB.js.map → stattable-COVQSHRZ.js.map} +0 -0
  919. /package/dist/{studyCatalog-OMDE4JRD.js.map → studyCatalog-EXVRH4FI.js.map} +0 -0
  920. /package/dist/{summarizeCnvGeneexp-A7HW6FJI.js.map → summarizeCnvGeneexp-UJBTMXXH.js.map} +0 -0
  921. /package/dist/{summarizeGeneexpSurvival-ODI4HGFH.js.map → summarizeGeneexpSurvival-XLQJGDRY.js.map} +0 -0
  922. /package/dist/{summarizeMutationCnv-C2YB73OL.js.map → summarizeMutationCnv-7RWSXB6F.js.map} +0 -0
  923. /package/dist/{summarizeMutationDiagnosis-4Y322NYU.js.map → summarizeMutationDiagnosis-42MG737O.js.map} +0 -0
  924. /package/dist/{summarizeMutationSurvival-7IHNURLC.js.map → summarizeMutationSurvival-FWVKVEHK.js.map} +0 -0
  925. /package/dist/{summary-E4L5MZTF.js.map → summary-NR26ZPQB.js.map} +0 -0
  926. /package/dist/{summary.integration.spec-SDCGE6BQ.js.map → summary.integration.spec-Z7JSUTGK.js.map} +0 -0
  927. /package/dist/{summaryInput-DHIMU5DM.js.map → summaryInput-DGKUOJVC.js.map} +0 -0
  928. /package/dist/{sunburst-ULNPFEAM.js.map → sunburst-C5JNGFT7.js.map} +0 -0
  929. /package/dist/{survival-CU4N5KZO.js.map → survival-GCEX3EAZ.js.map} +0 -0
  930. /package/dist/{survival-KWWH6REE.js.map → survival-OAQA5JQN.js.map} +0 -0
  931. /package/dist/{survival.integration.spec-UW6SYVLP.js.map → survival.integration.spec-ZX5RD6VQ.js.map} +0 -0
  932. /package/dist/{svgraph-HFI6NNF3.js.map → svgraph-XCFZ2WAG.js.map} +0 -0
  933. /package/dist/{svmr-VHS7Z4SO.js.map → svmr-4XTTURHA.js.map} +0 -0
  934. /package/dist/{table-GJUXHKQI.js.map → table-FQZ4UAH6.js.map} +0 -0
  935. /package/dist/{termCollection-CCZ4BFIU.js.map → termCollection-5QCR6LED.js.map} +0 -0
  936. /package/dist/{termCollection-O5CQ472U.js.map → termCollection-DN6A6HJU.js.map} +0 -0
  937. /package/dist/{termCollection.unit.spec-KR5G6JFU.js.map → termCollection.unit.spec-RSSSXDHU.js.map} +0 -0
  938. /package/dist/{termCollectionFractionSelection-IKU5MFBT.js.map → termCollectionFractionSelection-OSN7FITY.js.map} +0 -0
  939. /package/dist/{termCollectionFractionSelection.unit.spec-6ZWHNGES.js.map → termCollectionFractionSelection.unit.spec-UW6D3DVK.js.map} +0 -0
  940. /package/dist/{tk-3DLMAFW7.js.map → tk-4CZCVYBP.js.map} +0 -0
  941. /package/dist/{tk-CAYWF7LX.js.map → tk-BIPJNXBZ.js.map} +0 -0
  942. /package/dist/{tp.ui-NF5ZYOHW.js.map → tp.ui-NI4U7567.js.map} +0 -0
  943. /package/dist/{tvs.density-V6ZXSFGF.js.map → tvs.density-CB24PXDE.js.map} +0 -0
  944. /package/dist/{tvs.dt-43A4SSLG.js.map → tvs.dt-YRDNDXUU.js.map} +0 -0
  945. /package/dist/{tvs.dtcnv.categorical-DYXHUNP2.js.map → tvs.dtcnv.categorical-REP4T33P.js.map} +0 -0
  946. /package/dist/{tvs.dtcnv.continuous-NOKNP4UG.js.map → tvs.dtcnv.continuous-K7OREEP5.js.map} +0 -0
  947. /package/dist/{tvs.dtfusion-4NAOCC2X.js.map → tvs.dtfusion-AB5MPH3Q.js.map} +0 -0
  948. /package/dist/{tvs.dtitd-SZC6EITI.js.map → tvs.dtitd-AFWU7ACY.js.map} +0 -0
  949. /package/dist/{tvs.dtsnvindel-EYSBCNQK.js.map → tvs.dtsnvindel-G7XQEKEO.js.map} +0 -0
  950. /package/dist/{tvs.dtsv-VSPWIIFO.js.map → tvs.dtsv-Y6BEY4J2.js.map} +0 -0
  951. /package/dist/{tvs.numeric-M5LH3PRH.js.map → tvs.numeric-GF4XF5OF.js.map} +0 -0
  952. /package/dist/{tvs.samplelst-3YQ4GKNG.js.map → tvs.samplelst-XRRWPC2E.js.map} +0 -0
  953. /package/dist/{vocabulary-HCPEIO2P.js.map → vocabulary-DJZWOO6Q.js.map} +0 -0
  954. /package/dist/{wsi.direct-K2J6GGWY.js.map → wsi.direct-XUWANMKV.js.map} +0 -0
@@ -0,0 +1,2456 @@
1
+ import {
2
+ VolcanoModel,
3
+ getGroupColors
4
+ } from "./chunk-L3UFI52T.js";
5
+ import {
6
+ manhattanLayoutDefaults,
7
+ plotManhattan
8
+ } from "./chunk-3CGMCYZB.js";
9
+ import {
10
+ CCRE_TRACK_NAME
11
+ } from "./chunk-DPGALT5N.js";
12
+ import {
13
+ DATermTypes,
14
+ DataPointInteractions,
15
+ GeneSetEditUI,
16
+ MultiTermWrapperEditUI,
17
+ PlotBase,
18
+ axisstyle,
19
+ controlsInit,
20
+ downloadTable,
21
+ drawHoverShapes,
22
+ enabledTermTypes,
23
+ fileDateStamp,
24
+ fillTermWrapper,
25
+ getCombinedTermFilter,
26
+ getDNAMethTermName,
27
+ getDNAMethUnit,
28
+ getDefaultVolcanoSettings,
29
+ getGEunit,
30
+ getSampleNum,
31
+ renderTable,
32
+ sayerror,
33
+ table2col,
34
+ to_svg,
35
+ validateVolcanoSettings
36
+ } from "./chunk-K7HFOAR7.js";
37
+ import "./chunk-HJ6L54YS.js";
38
+ import "./chunk-KV4W2ACA.js";
39
+ import "./chunk-FSWBNSQD.js";
40
+ import {
41
+ Menu
42
+ } from "./chunk-7XZA2XR2.js";
43
+ import "./chunk-DD3DWHUY.js";
44
+ import "./chunk-EEB5VE2A.js";
45
+ import "./chunk-6RRZRISL.js";
46
+ import "./chunk-2KM4PRQM.js";
47
+ import {
48
+ HYPER_COLOR,
49
+ HYPO_COLOR,
50
+ dofetch3
51
+ } from "./chunk-GP4VLNMZ.js";
52
+ import "./chunk-6AFMWQXZ.js";
53
+ import "./chunk-CME6DYDH.js";
54
+ import {
55
+ DMR_SCAN_ELEMENT_TYPE,
56
+ DNA_METHYLATION,
57
+ GENE_EXPRESSION,
58
+ PROTEOME_DAP,
59
+ SINGLECELL_CELLTYPE,
60
+ bplen
61
+ } from "./chunk-57Z4VYLM.js";
62
+ import {
63
+ copyMerge,
64
+ getCompInit
65
+ } from "./chunk-WINIL2KN.js";
66
+ import "./chunk-PF4DSFDR.js";
67
+ import "./chunk-7X6NF7NI.js";
68
+ import {
69
+ uiLabel
70
+ } from "./chunk-W5J3LTYS.js";
71
+ import {
72
+ axisBottom,
73
+ axisLeft
74
+ } from "./chunk-Z2ZITHT4.js";
75
+ import {
76
+ linear
77
+ } from "./chunk-4OLM3KSB.js";
78
+ import "./chunk-6XKAOSQE.js";
79
+ import {
80
+ roundValueAuto
81
+ } from "./chunk-TLT4YIG3.js";
82
+ import "./chunk-5R63Q5KH.js";
83
+ import {
84
+ selectAll_default,
85
+ select_default
86
+ } from "./chunk-I6Y4O3RR.js";
87
+ import {
88
+ rgb
89
+ } from "./chunk-Q5RDQNIT.js";
90
+ import "./chunk-DQC5FFGV.js";
91
+ import "./chunk-HS5PO5ZQ.js";
92
+
93
+ // plots/volcano/promoterLabel.ts
94
+ function elementNoun(elementType) {
95
+ switch (elementType) {
96
+ case void 0:
97
+ case "":
98
+ case "promoter":
99
+ return { one: "Promoter", many: "promoters" };
100
+ /* Two different promoter DEFINITIONS, deliberately given distinct nouns. 'promoter' is
101
+ the TSS -1500/+500 window (Bibikova 2011 / Sandoval 2011 -- the 450K array's
102
+ TSS1500+TSS200 categories); 'promoter_pls' is the ENCODE cCRE promoter-like element,
103
+ ~349 bp, i.e. the CpG-island core with the shores removed. They cover different numbers
104
+ of genes and their hit counts are NOT comparable, so the UI must never call both
105
+ "promoters". */
106
+ case "promoter_pls":
107
+ return { one: "cCRE promoter", many: "cCRE promoters" };
108
+ case "eqtm_block":
109
+ return { one: "eQTM block", many: "eQTM blocks" };
110
+ case "enhancer":
111
+ return { one: "Enhancer", many: "enhancers" };
112
+ /* Distal and proximal are separate ENCODE classes and separate hypotheses -- dELS are
113
+ the intronic/intergenic enhancers where myeloma hypermethylation concentrates, pELS sit
114
+ within 2 kb of a TSS and behave more promoter-like. There are 4.5x as many dELS, so their
115
+ hit counts are not comparable to each other either. Naming them apart keeps a reader from
116
+ reading two runs as the same analysis. */
117
+ case "enhancer_distal":
118
+ return { one: "Distal enhancer", many: "distal enhancers" };
119
+ case "enhancer_proximal":
120
+ return { one: "Proximal enhancer", many: "proximal enhancers" };
121
+ // de novo regions called by the genome scan, not an annotated class at all
122
+ case DMR_SCAN_ELEMENT_TYPE:
123
+ return { one: "DMR", many: "DMRs" };
124
+ default:
125
+ return { one: "Element", many: "elements" };
126
+ }
127
+ }
128
+ function formatPromoterLabel(d) {
129
+ if (!d) return "";
130
+ const id = d.promoter_id || "";
131
+ const { chr, start, stop } = d;
132
+ if (!chr || !Number.isFinite(start) || !Number.isFinite(stop)) return id;
133
+ const region = `${chr}:${start}-${stop}`;
134
+ const idx = id.match(/\.(p\d+)_[^_]*:\d+-\d+$/);
135
+ return idx ? `${idx[1]} \xB7 ${region}` : region;
136
+ }
137
+
138
+ // plots/volcano/viewModel/VolcanoViewModel.ts
139
+ function shortenGroupName(name) {
140
+ if (name.length >= 25) return name.substring(0, 20) + "...";
141
+ return name;
142
+ }
143
+ var VolcanoViewModel = class {
144
+ constructor(config, response, settings) {
145
+ this.numSignificant = 0;
146
+ this.numNonSignificant = 0;
147
+ /** The significant count split by direction, from the server so it reflects every
148
+ * significant row rather than the maxInteractiveDots-capped `dots`. */
149
+ this.numSignificantUp = 0;
150
+ this.numSignificantDown = 0;
151
+ this.minLogFoldChange = 0;
152
+ this.maxLogFoldChange = 0;
153
+ //Used for the y axis domain
154
+ this.minLogPValue = 0;
155
+ this.maxLogPValue = 0;
156
+ //Unpadded extents — used for the visible axis labels/ticks (only span real data)
157
+ this.minLogFoldChangeAxis = 0;
158
+ this.maxLogFoldChangeAxis = 0;
159
+ this.minLogPValueAxis = 0;
160
+ this.maxLogPValueAxis = 0;
161
+ //Dot radius in pixels (from server) — overlay rings size to match the PNG
162
+ this.dotRadiusPx = 2;
163
+ //Used in place of 0 p values that cannot be log transformed
164
+ this.minNonZeroPValue = 1e-9;
165
+ this.offset = 10;
166
+ this.bottomPad = 60;
167
+ this.horizPad = 70;
168
+ this.topPad = 40;
169
+ this.config = config;
170
+ this.response = response;
171
+ this.plotX = this.horizPad + this.offset * 2;
172
+ this.dataRows = response.data.dots;
173
+ const { caseColor, controlColor } = getGroupColors(this.config);
174
+ const barplot = { colorNegative: controlColor, colorPositive: caseColor };
175
+ this.termType = config.termType;
176
+ this.scan = response.scan;
177
+ this.singlePValue = config.termType == DATermTypes.PROTEOME_DAP || !!this.scan;
178
+ this.pValueLabel = this.setPValueLabel(settings);
179
+ this.pValueTable = {
180
+ columns: [
181
+ // a scan's effect size is delta-beta; the fold change is a difference of logits
182
+ { label: this.scan ? "\u0394\u03B2" : "log\u2082(fold-change)", barplot, sortable: true },
183
+ // DAP files carry a single FDR (adjusted p-value) and a scan a single p; other term
184
+ // types report both a raw and an adjusted p-value.
185
+ ...this.singlePValue ? [{ label: this.pValueLabel, sortable: true }] : [
186
+ { label: "Original p-value", sortable: true },
187
+ { label: "Adjusted p-value", sortable: true }
188
+ ]
189
+ ],
190
+ /** Filled in setPointData(), one row per threshold-passing dot. Populated even when the
191
+ * table is hidden — the download reads it. */
192
+ rows: [],
193
+ rowKeys: /* @__PURE__ */ new Map(),
194
+ height: settings.height + this.topPad
195
+ };
196
+ this.settings = settings;
197
+ this.dataType = this.setDataType();
198
+ this.setMinMaxValues();
199
+ const plotDim = this.setPlotDimensions();
200
+ this.setPTableColumns();
201
+ const pointData = this.setPointData(plotDim, controlColor, caseColor);
202
+ const foldChangeIdx = this.pValueTable.columns.findIndex((c) => c.barplot);
203
+ this.pValueTable.rows.sort((a, b) => b[foldChangeIdx].value - a[foldChangeIdx].value);
204
+ this.viewData = {
205
+ images: response.images || [],
206
+ termInfo: this.setTermInfo(plotDim),
207
+ plotDim,
208
+ pointData,
209
+ pValueTableData: this.pValueTable,
210
+ statsData: this.setStatsData(),
211
+ scan: this.scan,
212
+ pValueLabel: this.pValueLabel,
213
+ singlePValue: this.singlePValue,
214
+ numSignificantUp: this.numSignificantUp,
215
+ numSignificantDown: this.numSignificantDown,
216
+ xOffset: this.response.data.xOffset ?? 0,
217
+ centered: !!this.response.data.centered,
218
+ provenance: this.setProvenance(),
219
+ userActions: this.setUserActions(),
220
+ deltaBetaAxisLabel: this.setDeltaBetaAxisLabel(),
221
+ volcanoPng: response.data.volcanoPng,
222
+ plotExtent: response.data.plotExtent
223
+ };
224
+ }
225
+ /* The delta-beta axis used to read "Δβ (case − control)". Those are positional roles, not
226
+ names, so the plot showed the size of an effect but not its direction -- you had to already
227
+ know which group landed in which slot, or open a downloaded file and read the provenance line.
228
+ Name the groups instead, in subtraction order (case first), so the axis states what it plots.
229
+
230
+ Returns undefined when the group names are not available; the view falls back to the old
231
+ wording rather than rendering a broken label. */
232
+ setDeltaBetaAxisLabel() {
233
+ const groups = this.config?.samplelst?.groups;
234
+ const control = groups?.[0]?.name;
235
+ const cases = groups?.[1]?.name;
236
+ if (!control || !cases) return void 0;
237
+ const centered = this.response.data.centered ? " \u2212 median" : "";
238
+ return `\u0394\u03B2${centered} (${shortenGroupName(cases)} \u2212 ${shortenGroupName(control)})`;
239
+ }
240
+ /** What the y axis and the p column are called. Named here once so the axis, the table header,
241
+ * the hover rows and the multi-hit table cannot disagree. */
242
+ setPValueLabel(settings) {
243
+ if (this.termType == DATermTypes.PROTEOME_DAP) return "FDR";
244
+ if (this.scan) return this.scan.backgroundCorrection ? "p vs matched background" : "smoothed FDR";
245
+ return `${settings.pValueType} p-value`;
246
+ }
247
+ setDataType() {
248
+ if (this.termType == DATermTypes.GENE_EXPRESSION) return "genes";
249
+ if (this.termType == DATermTypes.DNA_METHYLATION) return elementNoun(this.settings?.elementType).many;
250
+ if (this.termType == DATermTypes.SINGLECELL_CELLTYPE) return "genes";
251
+ if (this.termType == DATermTypes.PROTEOME_DAP) return "proteins";
252
+ if (this.termType == DATermTypes.SINGLECELL_GENE_EXPRESSION) return "cells";
253
+ throw new Error(`Unknown termType: ${this.termType}`);
254
+ }
255
+ setMinMaxValues() {
256
+ const ext = this.response.data.plotExtent;
257
+ this.minLogFoldChange = ext.xMin;
258
+ this.maxLogFoldChange = ext.xMax;
259
+ this.minLogPValue = ext.yMin;
260
+ this.maxLogPValue = ext.yMax;
261
+ this.minLogFoldChangeAxis = ext.xMinUnpadded;
262
+ this.maxLogFoldChangeAxis = ext.xMaxUnpadded;
263
+ this.minLogPValueAxis = ext.yMinUnpadded;
264
+ this.maxLogPValueAxis = ext.yMaxUnpadded;
265
+ this.dotRadiusPx = ext.dotRadiusPx;
266
+ if (ext.minNonZeroPValue > 0) this.minNonZeroPValue = ext.minNonZeroPValue;
267
+ }
268
+ setPlotDimensions() {
269
+ const ext = this.response.data.plotExtent;
270
+ const plotW = ext.pixelWidth;
271
+ const plotH = ext.pixelHeight;
272
+ const xPlotScale = linear().domain([this.minLogFoldChange, this.maxLogFoldChange]).range([0, plotW]);
273
+ const yPlotScale = linear().domain([this.minLogPValue, this.maxLogPValue]).range([plotH, 0]);
274
+ const xScale = linear().domain([this.minLogFoldChangeAxis, this.maxLogFoldChangeAxis]).range([xPlotScale(this.minLogFoldChangeAxis), xPlotScale(this.maxLogFoldChangeAxis)]);
275
+ const yScale = linear().domain([this.minLogPValueAxis, this.maxLogPValueAxis]).range([yPlotScale(this.minLogPValueAxis), yPlotScale(this.maxLogPValueAxis)]);
276
+ return {
277
+ svg: {
278
+ //20 is for the term info above the plot
279
+ height: plotH + this.topPad + this.bottomPad * 2 + this.offset * 3,
280
+ width: plotW + this.horizPad * 2
281
+ },
282
+ top: {
283
+ x: this.plotX,
284
+ y: 5
285
+ },
286
+ xAxisLabel: {
287
+ x: this.horizPad + plotW / 2 + this.offset,
288
+ y: this.topPad + plotH + this.bottomPad + this.offset
289
+ },
290
+ xScale: {
291
+ scale: xScale,
292
+ x: this.plotX,
293
+ y: plotH + this.topPad + this.offset * 2
294
+ },
295
+ yAxisLabel: {
296
+ text: `-log10(${this.pValueLabel})`,
297
+ x: this.horizPad / 3,
298
+ y: this.topPad + plotH / 2
299
+ },
300
+ yScale: {
301
+ scale: yScale,
302
+ x: this.horizPad,
303
+ y: this.topPad
304
+ },
305
+ plot: {
306
+ height: plotH,
307
+ width: plotW,
308
+ x: this.plotX,
309
+ y: this.topPad
310
+ },
311
+ logFoldChangeLine: {
312
+ x: xPlotScale(0) + this.plotX,
313
+ y1: this.topPad,
314
+ y2: plotH + this.offset * 4
315
+ },
316
+ xPlotScale,
317
+ yPlotScale
318
+ };
319
+ }
320
+ setTermInfo(plotDim) {
321
+ if (!enabledTermTypes.has(this.termType)) return;
322
+ if (this.termType == DATermTypes.PROTEOME_DAP) {
323
+ return {
324
+ y: plotDim.top.y + 10,
325
+ first: {
326
+ label: shortenGroupName(`Control (${this.response.sample_size1})`),
327
+ x: 0
328
+ },
329
+ second: {
330
+ label: shortenGroupName(`Case (${this.response.sample_size2})`),
331
+ x: this.settings.width
332
+ }
333
+ };
334
+ }
335
+ if (this.termType == DATermTypes.SINGLECELL_CELLTYPE) {
336
+ const groupLabel = `${this.config.termId} ${this.config.categoryName}`;
337
+ return {
338
+ y: plotDim.top.y + 10,
339
+ first: {
340
+ label: shortenGroupName(`Not in ${groupLabel}`),
341
+ x: 0
342
+ },
343
+ second: {
344
+ label: shortenGroupName(groupLabel),
345
+ x: this.settings.width
346
+ }
347
+ };
348
+ }
349
+ return {
350
+ //Set slightly above the plot
351
+ y: plotDim.top.y + 10,
352
+ first: {
353
+ // color: controlColor || this.settings.defaultSignColor,
354
+ label: shortenGroupName(`${this.config.samplelst.groups[0].name} (${this.response.sample_size1})`),
355
+ x: 0
356
+ // rectX: this.settings.width/2 - 10,
357
+ },
358
+ second: {
359
+ // color: caseColor || this.settings.defaultSignColor,
360
+ label: shortenGroupName(`${this.config.samplelst.groups[1].name} (${this.response.sample_size2})`),
361
+ x: this.settings.width
362
+ // rectX: this.settings.width/2 + 10,
363
+ }
364
+ };
365
+ }
366
+ setPointData(_plotDim, controlColor, caseColor) {
367
+ const radius = this.dotRadiusPx;
368
+ this.pValueTable.rows = [];
369
+ this.pValueTable.rowKeys.clear();
370
+ const dataCopy = structuredClone(this.dataRows);
371
+ for (const d of dataCopy) {
372
+ const highlightKey = this.termType === DATermTypes.DNA_METHYLATION ? d.promoter_id : d.gene_name;
373
+ d.highlighted = this.config?.highlightedData?.includes(highlightKey);
374
+ d.significant = true;
375
+ this.getGenesColor(d, d.significant, controlColor, caseColor);
376
+ if (d.significant) {
377
+ this.numSignificant++;
378
+ const row = this.singlePValue ? [
379
+ { value: roundValueAuto(this.scan ? d.delta_beta : d.fold_change) },
380
+ { value: roundValueAuto(d.original_p_value) }
381
+ ] : [
382
+ { value: roundValueAuto(d.fold_change) },
383
+ { value: roundValueAuto(d.original_p_value) },
384
+ { value: d.adjusted_p_value != void 0 ? roundValueAuto(d.adjusted_p_value) : "" }
385
+ ];
386
+ if (this.termType == DATermTypes.DNA_METHYLATION) {
387
+ if (this.scan) {
388
+ row.splice(
389
+ 1,
390
+ 0,
391
+ // fold_change carries the peak per-CpG delta-beta on a scan row
392
+ { value: roundValueAuto(d.fold_change) },
393
+ { value: d.no_cpgs },
394
+ { value: d.stop - d.start },
395
+ ...this.scan.backgroundCorrection ? [{ value: d.excess == null ? "" : roundValueAuto(d.excess) }] : []
396
+ );
397
+ } else {
398
+ row.splice(
399
+ 1,
400
+ 0,
401
+ { value: roundValueAuto(d.delta_beta) },
402
+ { value: roundValueAuto(d.mean_beta_control) },
403
+ { value: roundValueAuto(d.mean_beta_case) }
404
+ );
405
+ }
406
+ row.splice(0, 0, { value: formatPromoterLabel(d) }, { value: d.gene_name || "" });
407
+ } else if (this.termType == DATermTypes.PROTEOME_DAP) {
408
+ row.splice(0, 0, { value: d.gene_name || "" }, { value: d.gene || "" });
409
+ } else {
410
+ row.splice(0, 0, { value: d.gene_name || "" });
411
+ }
412
+ this.pValueTable.rows.push(row);
413
+ this.pValueTable.rowKeys.set(row, highlightKey);
414
+ } else {
415
+ this.numNonSignificant++;
416
+ }
417
+ d.x = d.pixel_x + this.plotX;
418
+ d.y = d.pixel_y + this.topPad;
419
+ d.radius = radius;
420
+ }
421
+ this.numSignificant = this.response.data.totalSignificantRows;
422
+ this.numNonSignificant = Math.max(0, this.response.data.totalRows - this.numSignificant);
423
+ this.numSignificantUp = this.response.data.totalSignificantUp ?? 0;
424
+ this.numSignificantDown = this.response.data.totalSignificantDown ?? 0;
425
+ dataCopy.sort((a, b) => a.highlighted - b.highlighted);
426
+ return dataCopy;
427
+ }
428
+ getGenesColor(d, significant, controlColor, caseColor) {
429
+ if (!d.gene_name && this.termType != DATermTypes.DNA_METHYLATION)
430
+ throw new Error(`Missing gene_name in data: ${JSON.stringify(d)}`);
431
+ if (significant) {
432
+ const x = this.termType == DATermTypes.DNA_METHYLATION && this.settings.xAxis === "delta_beta" ? d.delta_beta - (this.response.data.xOffset ?? 0) : d.fold_change;
433
+ if (controlColor && caseColor) d.color = x > 0 ? caseColor : controlColor;
434
+ else d.color = this.settings.defaultSignColor;
435
+ } else d.color = this.settings.defaultNonSignColor;
436
+ }
437
+ /** One line describing what produced this result: which groups, how many samples actually
438
+ * entered the model, and every setting that changes the numbers.
439
+ *
440
+ * This exists because an exported table is the artifact that outlives the session. Re-running
441
+ * a contrast months later and getting different counts is impossible to diagnose when the
442
+ * original run's group sizes and options were never written down anywhere -- the file, the
443
+ * screenshot and the memory of it all look identical regardless of how it was configured.
444
+ * Only settings that can change the result are listed; cosmetic ones are deliberately left
445
+ * out so the line stays readable and a difference in it always means a real difference. */
446
+ setProvenance() {
447
+ const s = this.settings;
448
+ const parts = [];
449
+ if (this.config.samplelst?.groups?.length == 2) {
450
+ const [g1, g2] = this.config.samplelst.groups;
451
+ parts.push(`group1 (control) "${g1.name}" n=${this.response.sample_size1}`);
452
+ parts.push(`group2 (case) "${g2.name}" n=${this.response.sample_size2}`);
453
+ }
454
+ const conf = this.config.confounderTws?.map((t) => t?.term?.name || t?.term?.id).filter(Boolean);
455
+ parts.push(`confounders: ${conf?.length ? conf.join(" + ") : "none"}`);
456
+ if (this.termType == DATermTypes.DNA_METHYLATION) {
457
+ parts.push(`element class: ${s.elementType || "promoter"}`);
458
+ parts.push(`x axis: ${s.xAxis === "delta_beta" ? "delta-beta" : "log2(fold-change)"}`);
459
+ const off = this.response.data.xOffset ?? 0;
460
+ if (this.response.data.centered)
461
+ parts.push(`centered on median delta-beta ${off > 0 ? "+" : ""}${roundValueAuto(off)}`);
462
+ if (this.scan) {
463
+ parts.push(`scan: ${s.scanChromosome || "whole genome"}`);
464
+ parts.push(`background correction: ${s.backgroundCorrection ? "yes" : "no"}`);
465
+ parts.push(`min CpGs per DMR: ${s.minCpgs}`);
466
+ } else parts.push(`min samples per group: ${s.minSamplesPerGroup}`);
467
+ parts.push(`exclude sex chromosomes: ${s.excludeSexChr ? "yes" : "no"}`);
468
+ } else if (this.termType == DATermTypes.GENE_EXPRESSION) {
469
+ parts.push(`method: ${s.method}`);
470
+ }
471
+ const onDeltaBeta = this.termType == DATermTypes.DNA_METHYLATION && s.xAxis === "delta_beta";
472
+ const effect = onDeltaBeta ? `|delta-beta| > ${s.deltaBetaCutoff}` : `|log2(fold-change)| > ${s.foldChangeCutoff}`;
473
+ parts.push(`significance: ${s.pValueType} p < ${roundValueAuto(Math.pow(10, -s.pValue))}, ${effect}`);
474
+ return parts.join("; ");
475
+ }
476
+ setStatsData() {
477
+ const tableRows = [
478
+ {
479
+ label: `Percentage of significant ${this.dataType}`,
480
+ value: roundValueAuto(this.numSignificant * 100 / (this.numSignificant + this.numNonSignificant))
481
+ },
482
+ {
483
+ label: `Number of significant ${this.dataType}`,
484
+ value: this.numSignificant
485
+ },
486
+ {
487
+ label: `Number of total ${this.dataType}`,
488
+ value: this.numSignificant + this.numNonSignificant
489
+ }
490
+ ];
491
+ if (this.termType == DATermTypes.GENE_EXPRESSION || this.termType == DATermTypes.DNA_METHYLATION) {
492
+ tableRows.push(
493
+ {
494
+ label: this.config.samplelst.groups[0].name + " sample size (control group)",
495
+ value: this.response.sample_size1
496
+ },
497
+ {
498
+ label: this.config.samplelst.groups[1].name + " sample size (case group)",
499
+ value: this.response.sample_size2
500
+ }
501
+ );
502
+ } else if (this.termType == DATermTypes.PROTEOME_DAP) {
503
+ tableRows.push(
504
+ {
505
+ label: "Control sample size",
506
+ value: this.response.sample_size1
507
+ },
508
+ {
509
+ label: "Case sample size",
510
+ value: this.response.sample_size2
511
+ }
512
+ );
513
+ }
514
+ if (this.response.bcv !== void 0 && this.response.bcv !== null) {
515
+ tableRows.push({
516
+ label: "Biological coefficient of variation",
517
+ value: roundValueAuto(this.response.bcv)
518
+ });
519
+ }
520
+ if (this.scan) tableRows.push(...this.setScanStats(this.scan));
521
+ return tableRows;
522
+ }
523
+ /* The whole-scan facts, every one of them over the scan as returned -- before the volcano's
524
+ thresholds -- and over the same set of DMRs (those meeting the CpG floor), so no two lines here
525
+ have different denominators. The counts the thresholds select are the three rows above. */
526
+ setScanStats(s) {
527
+ const rows = [
528
+ { label: "Chromosomes scanned", value: s.chromosomes.length },
529
+ { label: "CpGs analyzed", value: s.totalProbesAnalyzed },
530
+ { label: "DMRs called", value: s.called },
531
+ { label: `DMRs with ${s.minCpgs}+ CpGs`, value: s.kept },
532
+ { label: "Hypermethylated", value: s.hyper },
533
+ { label: "Hypomethylated", value: s.hypo }
534
+ ];
535
+ if (s.width)
536
+ rows.push({
537
+ label: "DMR width, median (IQR)",
538
+ value: `${bplen(s.width.median)} (${bplen(s.width.q1)} \u2013 ${bplen(s.width.q3)})`
539
+ });
540
+ if (s.regionMask)
541
+ rows.push({
542
+ label: `DMRs removed by artifact mask (${s.regionMask.sources.join(", ")}; \u2265${Math.round(
543
+ s.regionMask.overlapFrac * 100
544
+ )}% masked)`,
545
+ value: s.regionMask.dmrsDropped
546
+ });
547
+ const gm = s.globalMethylation;
548
+ if (gm) {
549
+ const [g1, g2] = this.config.samplelst?.groups?.map((g) => g.name) || ["group 1", "group 2"];
550
+ const one = s.chromosomes.length == 1 ? s.chromosomes[0] : null;
551
+ const meanLabel = (g) => one ? `${g} mean \u03B2 on ${one}` : `${g} genome-wide mean \u03B2`;
552
+ rows.push(
553
+ { label: meanLabel(g1), value: gm.controlMeanBeta.toFixed(4) },
554
+ { label: meanLabel(g2), value: gm.caseMeanBeta.toFixed(4) },
555
+ {
556
+ label: one ? `\u03B2 shift on ${one} (case \u2212 control)` : "Genome-wide \u03B2 shift (case \u2212 control)",
557
+ value: `${gm.shift >= 0 ? "+" : ""}${gm.shift.toFixed(4)}`
558
+ }
559
+ );
560
+ }
561
+ const bc = s.backgroundCorrection;
562
+ if (bc) {
563
+ rows.push(
564
+ { label: "Intergenic background windows sampled", value: bc.windows },
565
+ { label: `DMRs scored against background (matched on ${bc.matchedOn.join(" and ")})`, value: bc.scored },
566
+ { label: "DMRs unscored: stratum too thin (not plotted)", value: bc.unscored },
567
+ {
568
+ label: "DMRs moving more than matched background (p < 0.05)",
569
+ value: `${bc.significant.toLocaleString()} of ${bc.scored.toLocaleString()} (${(100 * bc.significant / Math.max(1, bc.scored)).toFixed(1)}%)`
570
+ }
571
+ );
572
+ }
573
+ if (s.geneBodyLoss)
574
+ rows.push({
575
+ // the correction adds the background gate, so the label must say which set this is
576
+ label: s.backgroundCorrection ? "Gene-body loss regions beating background \u2192 genes" : "Gene-body loss regions \u2192 genes",
577
+ value: `${s.geneBodyLoss.regions.toLocaleString()} \u2192 ${s.geneBodyLoss.genes.length.toLocaleString()}`
578
+ });
579
+ const pf = s.profileSummary;
580
+ if (pf) {
581
+ const pct = (v) => `${(100 * v).toFixed(1)}%`;
582
+ rows.push(
583
+ {
584
+ label: `Methylome profile: ${pf.bins.toLocaleString()} bins measured`,
585
+ value: `${pct(pf.fractionHyper)} hyper`
586
+ },
587
+ {
588
+ label: "Methylome profile: per-bin \u0394\u03B2, median (IQR)",
589
+ value: `${pf.median >= 0 ? "+" : ""}${pf.median.toFixed(4)} (${pf.q1.toFixed(4)} \u2013 ${pf.q3.toFixed(4)})`
590
+ },
591
+ { label: "Methylome profile: bins moving |\u0394\u03B2| > 0.05", value: pct(pf.fractionBeyond05) },
592
+ { label: "Methylome profile: bins moving |\u0394\u03B2| > 0.10", value: pct(pf.fractionBeyond10) }
593
+ );
594
+ }
595
+ const r = s.resources;
596
+ if (r) {
597
+ const top = r.perChromosome[0];
598
+ rows.push(
599
+ {
600
+ label: "Compute: workers \xD7 threads",
601
+ value: `${r.workers} \xD7 ${r.threadsPerWorker} (${r.workers * r.threadsPerWorker} core${r.workers * r.threadsPerWorker == 1 ? "" : "s"})`
602
+ },
603
+ { label: "Compute: wall time", value: `${(r.wallMs / 1e3).toFixed(1)} s` },
604
+ {
605
+ label: "Compute: peak memory per worker",
606
+ value: `${Math.round(r.peakWorkerMemoryMb).toLocaleString()} MB${top ? ` (${top.chr}, ${top.probes.toLocaleString()} CpGs)` : ""}`
607
+ },
608
+ { label: "Compute: peak memory, worker pool", value: `${Math.round(r.peakPoolMemoryMb).toLocaleString()} MB` },
609
+ { label: "Compute: worker CPU time", value: `${r.workerCpuSeconds.toFixed(1)} s` },
610
+ {
611
+ label: "Compute: server process",
612
+ value: `+${Math.round(r.nodeRssDeltaMb).toLocaleString()} MB, ${r.nodeCpuSeconds.toFixed(1)} s CPU`
613
+ }
614
+ );
615
+ }
616
+ return rows;
617
+ }
618
+ setPTableColumns() {
619
+ if (this.termType == DATermTypes.DNA_METHYLATION) {
620
+ if (this.scan) {
621
+ this.pValueTable.columns.splice(
622
+ 1,
623
+ 0,
624
+ { label: "Peak \u0394\u03B2", sortable: true },
625
+ { label: "CpGs", sortable: true },
626
+ { label: "Width (bp)", sortable: true },
627
+ ...this.scan.backgroundCorrection ? [{ label: "Excess \u0394\u03B2", sortable: true }] : []
628
+ );
629
+ } else {
630
+ this.pValueTable.columns.splice(
631
+ 1,
632
+ 0,
633
+ { label: "\u0394\u03B2", sortable: true },
634
+ { label: "Mean \u03B2 (group 1)", sortable: true },
635
+ { label: "Mean \u03B2 (group 2)", sortable: true }
636
+ );
637
+ }
638
+ this.pValueTable.columns.splice(
639
+ 0,
640
+ 0,
641
+ { label: elementNoun(this.settings?.elementType).one, sortable: true },
642
+ { label: "Gene(s)", sortable: true }
643
+ );
644
+ } else if (this.termType == DATermTypes.PROTEOME_DAP) {
645
+ this.pValueTable.columns.splice(0, 0, { label: "Identifier", sortable: true }, { label: "Gene", sortable: true });
646
+ } else {
647
+ this.pValueTable.columns.splice(0, 0, { label: "Gene Name", sortable: true });
648
+ }
649
+ }
650
+ setUserActions() {
651
+ const userActions = {
652
+ noShow: /* @__PURE__ */ new Set()
653
+ };
654
+ if (this.scan) userActions.noShow.add("Confounding factors");
655
+ if (this.termType == DATermTypes.GENE_EXPRESSION) {
656
+ if (this.settings.method == "edgeR" && getSampleNum(this.config) > 100) {
657
+ userActions.noShow.add("Confounding factors");
658
+ }
659
+ if (this.settings.method == "wilcoxon") userActions.noShow.add("Confounding factors");
660
+ }
661
+ return userActions;
662
+ }
663
+ };
664
+
665
+ // plots/volcano/groupColors.ts
666
+ function groupColors(config) {
667
+ const g = config?.samplelst?.groups;
668
+ if (!g?.length) return {};
669
+ const values = config?.tw?.term?.values;
670
+ const pick = (i) => values?.[g[i]?.name]?.color || g[i]?.color;
671
+ const out = {};
672
+ const c1 = pick(0);
673
+ const c2 = pick(1);
674
+ if (c1) out.group1 = c1;
675
+ if (c2) out.group2 = c2;
676
+ return out;
677
+ }
678
+
679
+ // plots/volcano/interactions/VolcanoInteractions.ts
680
+ var VolcanoInteractions = class {
681
+ constructor(app, id, dom) {
682
+ this.app = app;
683
+ this.dom = dom;
684
+ this.id = id;
685
+ this.pValueTableData = [];
686
+ this.data = [];
687
+ this.totalSignificantRows = 0;
688
+ this.provenance = "";
689
+ }
690
+ /** Launches a multi-term select tree
691
+ * On submit, dispatches a plot_edit action with the new confounders */
692
+ async confoundersMenu() {
693
+ const state = this.app.getState();
694
+ const config = state.plots.find((p) => p.id === this.id);
695
+ if (config.termType !== GENE_EXPRESSION && config.termType !== DNA_METHYLATION) return;
696
+ const allowedGroupNames = /* @__PURE__ */ new Set([config.samplelst.groups[0].name, config.samplelst.groups[1].name]);
697
+ const grpTerms = new Set(
698
+ (this.app?.vocabApi?.state.groups || []).filter((g) => allowedGroupNames.has(g.name)).flatMap(
699
+ (g) => g.filter.lst.flatMap((f) => {
700
+ if (f.tvs?.term) return f.tvs.term;
701
+ else return f.lst.map((l) => l.tvs.term);
702
+ })
703
+ )
704
+ );
705
+ const disable_terms = grpTerms.size ? Array.from(grpTerms) : [];
706
+ const maxNum = config.settings.volcano.method == "edgeR" ? 1 : 2;
707
+ const ui = new MultiTermWrapperEditUI({
708
+ app: this.app,
709
+ callback: async (tws) => {
710
+ this.dom.actionsTip.hide();
711
+ await this.app.dispatch({
712
+ type: "plot_edit",
713
+ id: this.id,
714
+ config: { confounderTws: tws }
715
+ });
716
+ },
717
+ holder: this.dom.actionsTip.d,
718
+ headerText: "Select confounders",
719
+ maxNum,
720
+ state,
721
+ twList: config.confounderTws,
722
+ disable_terms
723
+ });
724
+ await ui.renderUI();
725
+ }
726
+ download(termType) {
727
+ this.dom.actionsTip.clear().showunder(this.dom.controls.select("div").node());
728
+ const opts = [
729
+ {
730
+ text: "Download plot",
731
+ callback: () => {
732
+ const svg = this.dom.holder.select("svg").node();
733
+ to_svg(svg, `Differential ${termType} analysis volcano`, { apply_dom_styles: true });
734
+ }
735
+ },
736
+ {
737
+ // DAP volcanoes report a single FDR rather than a p-value.
738
+ text: termType === PROTEOME_DAP ? "Download FDR table" : "Download p-value table",
739
+ callback: (itemDiv) => this.downloadPvalueTable(termType, itemDiv)
740
+ }
741
+ ];
742
+ for (const opt of opts) {
743
+ const itemDiv = this.dom.actionsTip.d.append("div").attr("class", "sja_menuoption").text(opt.text);
744
+ itemDiv.on("click", () => opt.callback(itemDiv));
745
+ }
746
+ }
747
+ /* The interactive table only holds the most-significant maxInteractiveDots rows, because the
748
+ dot overlay has to stay responsive. The download has no such constraint, so it should be the
749
+ COMPLETE set of significant rows: when the two differ, re-request with the cap lifted and write
750
+ those rows instead.
751
+
752
+ That second request is cheap. volcanoRender is deliberately not part of the DA cache key (see
753
+ dmKeyInputs in server/routes/termdb.diffMeth.ts), so lifting the cap re-uses the cached R result
754
+ and pays only for a re-render.
755
+
756
+ If the re-request fails the download still happens, with the capped rows and a note saying so --
757
+ losing the file entirely would be a worse outcome than a disclosed subset. */
758
+ async downloadPvalueTable(termType, itemDiv) {
759
+ const date = fileDateStamp();
760
+ const label = termType === PROTEOME_DAP ? "fdr" : "p-value";
761
+ let { rows, columns } = this.pValueTableData;
762
+ let subsetNote;
763
+ const cappedNote = (reason) => `Top ${rows.length.toLocaleString()} of ${this.totalSignificantRows.toLocaleString()} significant results, selected by adjusted p-value and sorted by fold-change. This file is not the complete result set (${reason}).`;
764
+ if (this.totalSignificantRows > rows.length) {
765
+ if (!this.fetchAllRows) subsetNote = cappedNote("complete set unavailable");
766
+ else {
767
+ const restore = itemDiv?.text();
768
+ itemDiv?.text(`Preparing ${this.totalSignificantRows.toLocaleString()} rows...`);
769
+ try {
770
+ const full = await this.fetchAllRows();
771
+ rows = full.rows;
772
+ columns = full.columns;
773
+ } catch (e) {
774
+ subsetNote = cappedNote(`could not retrieve the complete set: ${e?.message || e}`);
775
+ } finally {
776
+ if (restore) itemDiv?.text(restore);
777
+ }
778
+ }
779
+ }
780
+ const note = [subsetNote, this.provenance && `Run: ${this.provenance}`].filter(Boolean).join(" | ");
781
+ downloadTable(rows, columns, `${label}-table-${date}.tsv`, note || void 0);
782
+ }
783
+ async highlightDataPoint(value) {
784
+ const config = this.app.getState().plots.find((p) => p.id === this.id);
785
+ const highlightedData = config.highlightedData.includes(value) ? config.highlightedData.filter((d) => d !== value) : [...config.highlightedData, value];
786
+ await this.app.dispatch({
787
+ type: "plot_edit",
788
+ id: this.id,
789
+ config: { highlightedData }
790
+ });
791
+ }
792
+ /** When clicking on a data point, launches the box plot in a separate sandbox
793
+ * For geneExpression, value == gene symbol */
794
+ launchBoxPlot(value) {
795
+ const config = this.app.getState().plots.find((p) => p.id === this.id);
796
+ const values = {};
797
+ for (const group of config.samplelst.groups) {
798
+ values[group.name] = {
799
+ key: group.name,
800
+ label: group.name,
801
+ list: group.values
802
+ };
803
+ }
804
+ const setTerm = () => {
805
+ if (config.termType == GENE_EXPRESSION) {
806
+ return {
807
+ q: { mode: "continuous" },
808
+ term: {
809
+ gene: value,
810
+ name: value,
811
+ type: config.termType
812
+ }
813
+ };
814
+ } else return config.term;
815
+ };
816
+ this.app.dispatch({
817
+ type: "plot_create",
818
+ config: {
819
+ chartType: "summary",
820
+ childType: "boxplot",
821
+ term: setTerm(),
822
+ term2: {
823
+ q: { groups: config.tw.q.groups, type: "custom-samplelst" },
824
+ term: config.tw.term
825
+ }
826
+ }
827
+ });
828
+ }
829
+ /** Launch a violin plot for a gene expression data point. */
830
+ launchViolinGeneExp(value) {
831
+ const config = this.app.getState().plots.find((p) => p.id === this.id);
832
+ this.app.dispatch({
833
+ type: "plot_create",
834
+ config: {
835
+ chartType: "summary",
836
+ childType: "violin",
837
+ term: {
838
+ q: { mode: "continuous" },
839
+ term: {
840
+ gene: value,
841
+ name: value,
842
+ type: config.termType
843
+ }
844
+ },
845
+ term2: {
846
+ q: { groups: config.tw.q.groups, type: "custom-samplelst" },
847
+ term: config.tw.term
848
+ }
849
+ }
850
+ });
851
+ }
852
+ launchGeneSetEdit() {
853
+ const plotConfig = this.app.getState().plots.find((p) => p.id === this.id);
854
+ const holder = this.dom.actionsTip.d.append("div").style("padding", "5px");
855
+ const limitedGenesList = plotConfig.termType === DNA_METHYLATION ? this.data.map((d) => d.promoter_id) : this.data.map((d) => d.gene_name);
856
+ new GeneSetEditUI({
857
+ holder,
858
+ genome: this.app.opts.genome,
859
+ vocabApi: this.app.vocabApi,
860
+ limitedGenesList,
861
+ geneList: plotConfig.highlightedData.map((d) => {
862
+ return { gene: d };
863
+ }),
864
+ customInputs: [
865
+ {
866
+ label: "Cancel highlight",
867
+ getDisplayStyle: () => plotConfig.highlightedData.length > 0 ? "" : "none",
868
+ showInput: async () => {
869
+ await this.app.dispatch({
870
+ type: "plot_edit",
871
+ id: this.id,
872
+ config: { highlightedData: [] }
873
+ });
874
+ this.dom.actionsTip.hide();
875
+ }
876
+ }
877
+ ],
878
+ callback: async (result) => {
879
+ const highlightedData = result.geneList.map((d) => d.gene);
880
+ await this.app.dispatch({
881
+ type: "plot_edit",
882
+ id: this.id,
883
+ config: { highlightedData }
884
+ });
885
+ this.dom.actionsTip.hide();
886
+ }
887
+ });
888
+ }
889
+ /** When clicking on a DM data point, dispatches a DMR plot that runs DMRCate
890
+ * analysis and renders a genome browser Block with DMR regions on their own
891
+ * track. */
892
+ async launchDmr(d, dmrSettings = {}) {
893
+ const config = this.app.getState().plots.find((p) => p.id === this.id);
894
+ const colors = groupColors(config);
895
+ const label = d.promoterId || `${d.chr}:${d.start}-${d.stop}`;
896
+ const dmrConfig = {
897
+ chartType: "dmr",
898
+ headerText: `DMR: ${label}`,
899
+ coordinateOverride: { chr: d.chr, start: d.start, stop: d.stop },
900
+ group1: config.samplelst.groups[0].values || [],
901
+ group2: config.samplelst.groups[1].values || [],
902
+ group1Name: config.samplelst.groups[0].name,
903
+ group2Name: config.samplelst.groups[1].name,
904
+ /* Which element matrix to drill into, for a dataset whose methylation is element-level
905
+ only. The server ignores it when the dataset has a CpG-level matrix, which is finer. The
906
+ scan is not a matrix, so a region opened from a scan names none and the server picks. */
907
+ elementType: config?.settings?.volcano?.elementType == DMR_SCAN_ELEMENT_TYPE ? void 0 : config?.settings?.volcano?.elementType,
908
+ settings: { colors, ...dmrSettings }
909
+ };
910
+ this.app.dispatch({
911
+ type: "plot_create",
912
+ config: dmrConfig
913
+ });
914
+ }
915
+ /* Open a genome browser on a scan's DMR, with the scan's own DMRs as a track. The scan wrote
916
+ every DMR it called to a bedj file in the server's cache (at the CpG floor the volcano counts
917
+ at), so the track is an ordinary file tk: the browser reads whatever region is in view from it,
918
+ including after the reader types another position into the search box. Opened on the DMR with
919
+ room either side. */
920
+ async launchScanGenomeBrowser(d, scan) {
921
+ const tracks = [];
922
+ const ccre = (this.app.opts.genome?.tracks || []).find((t) => t.name == CCRE_TRACK_NAME);
923
+ if (ccre) tracks.push(structuredClone(ccre));
924
+ if (scan.bedjFile) {
925
+ tracks.push({
926
+ type: "bedj",
927
+ name: "Scan DMRs",
928
+ // the file is under the server's bedj cache dir, not the tp dir
929
+ isCache: true,
930
+ file: scan.bedjFile,
931
+ stackheight: 14,
932
+ // drives both the fill and the block legend, which counts each class in view
933
+ categories: {
934
+ hyper: { label: "Hypermethylated DMR", color: HYPER_COLOR },
935
+ hypo: { label: "Hypomethylated DMR", color: HYPO_COLOR }
936
+ }
937
+ });
938
+ }
939
+ const pad = Math.max(5e3, d.stop - d.start);
940
+ this.app.dispatch({
941
+ type: "plot_create",
942
+ config: {
943
+ chartType: "genomeBrowser",
944
+ geneSearchResult: { chr: d.chr, start: Math.max(0, d.start - pad), stop: d.stop + pad },
945
+ tracks
946
+ }
947
+ });
948
+ }
949
+ /** Launch a violin/box plot for a DNA methylation promoter.
950
+ * Creates a methylation term using the promoter's chr/start/stop coordinates.
951
+ * The tw handler fills in id and unit from termdbConfig. */
952
+ launchDNAMethViolin(d) {
953
+ const config = this.app.getState().plots.find((p) => p.id === this.id);
954
+ const genomicFeatureType = d.promoter_id ? "promoter" : "gene";
955
+ const featureName = genomicFeatureType === "gene" ? d.gene_name?.split(",")[0]?.trim() || "" : "";
956
+ const term = {
957
+ genomicFeatureType,
958
+ featureName,
959
+ type: DNA_METHYLATION,
960
+ chr: d.chr,
961
+ start: d.start,
962
+ stop: d.stop
963
+ };
964
+ if (genomicFeatureType === "promoter") {
965
+ const noun = elementNoun(config?.settings?.volcano?.elementType).one;
966
+ const unit = getDNAMethUnit(genomicFeatureType, this.app.vocabApi);
967
+ term.unit = unit;
968
+ term.name = getDNAMethTermName(term, unit, noun);
969
+ }
970
+ this.app.dispatch({
971
+ type: "plot_create",
972
+ config: {
973
+ chartType: "summary",
974
+ childType: "violin",
975
+ term: {
976
+ q: { mode: "continuous" },
977
+ term
978
+ },
979
+ term2: {
980
+ q: { groups: config.tw.q.groups, type: "custom-samplelst" },
981
+ term: config.tw.term
982
+ }
983
+ }
984
+ });
985
+ }
986
+ async launchDEGClustering() {
987
+ const geneIndex = this.pValueTableData.columns.findIndex((col) => col.label === "Gene Name");
988
+ const adjustedPValIndex = this.pValueTableData.columns.findIndex((col) => col.label === "Adjusted p-value");
989
+ const rowsSorted = [...this.pValueTableData.rows].sort((a, b) => {
990
+ const aQVal = Number(a[adjustedPValIndex].value);
991
+ const bQVal = Number(b[adjustedPValIndex].value);
992
+ return aQVal - bQVal;
993
+ });
994
+ const geneList = rowsSorted.slice(0, 100).map((r) => ({ gene: r[geneIndex].value }));
995
+ const tws = geneList.map((d) => {
996
+ const gene = d.gene;
997
+ const unit = getGEunit(this.app.vocabApi);
998
+ const name = `${gene} ${unit}`;
999
+ const term = { gene, name, type: GENE_EXPRESSION };
1000
+ return { term, q: {} };
1001
+ });
1002
+ const group = { lst: tws, type: "hierCluster" };
1003
+ const customVariable = this.app.getState().plots.find((p) => p.id === this.id).tw;
1004
+ const annotationGroup = { lst: [customVariable] };
1005
+ const config = {
1006
+ chartType: "hierCluster",
1007
+ termgroups: [group, annotationGroup],
1008
+ dataType: GENE_EXPRESSION,
1009
+ filter: {
1010
+ in: true,
1011
+ join: "",
1012
+ type: "tvslst",
1013
+ lst: [{ type: "tvs", tvs: { term: customVariable.term } }]
1014
+ }
1015
+ };
1016
+ await this.app.dispatch({
1017
+ type: "plot_create",
1018
+ config: structuredClone(config)
1019
+ });
1020
+ }
1021
+ };
1022
+
1023
+ // plots/volcano/interactions/geneBodyLossDE.ts
1024
+ async function geneBodyLossTest(tip, config, vocab, scan, app) {
1025
+ const gb = scan.geneBodyLoss;
1026
+ const holder = tip.d;
1027
+ const groups = (scan.matchedSamplelst || config?.samplelst)?.groups;
1028
+ if (!groups || groups.length != 2) {
1029
+ sayerror(holder.append("div"), "Two sample groups are required.");
1030
+ return;
1031
+ }
1032
+ const div = holder.append("div").style("padding", "10px").style("max-width", "900px");
1033
+ const wait = div.append("div").style("color", "#777").text("Running differential expression\u2026");
1034
+ const de = getDefaultVolcanoSettings({}, { termType: "geneExpression" });
1035
+ try {
1036
+ const res = await dofetch3("termdb/dmrGeneDE", {
1037
+ body: {
1038
+ genome: vocab.genome,
1039
+ dslabel: vocab.dslabel,
1040
+ // `in` is part of the DE cache key, so it must travel or the two runs get separate entries
1041
+ samplelst: { groups: groups.map((g) => ({ name: g.name, in: g.in, values: g.values })) },
1042
+ genes: gb.genes,
1043
+ method: de.method,
1044
+ min_count: de.minCount,
1045
+ min_total_count: de.minTotalCount,
1046
+ cpm_cutoff: de.cpmCutoff,
1047
+ filter: app.getState().termfilter?.filter,
1048
+ filter0: app.getState().termfilter?.filter0
1049
+ }
1050
+ });
1051
+ wait.remove();
1052
+ if (res?.error) {
1053
+ sayerror(div.append("div"), res.error);
1054
+ return;
1055
+ }
1056
+ renderGeneDE(div, res, gb.regions, config, scan, app, tip);
1057
+ } catch (e) {
1058
+ wait.remove();
1059
+ sayerror(div.append("div"), e?.message || String(e));
1060
+ }
1061
+ }
1062
+ function renderGeneDE(div, res, nRegions, config, scan, app, tip) {
1063
+ const gb = scan.geneBodyLoss;
1064
+ const samplelst = scan.matchedSamplelst || config.samplelst;
1065
+ const nMatched = samplelst.groups.reduce((n, g) => n + g.values.length, 0);
1066
+ const dir = res.weightedDiff < 0 ? "lower" : "higher";
1067
+ div.append("button").attr("class", "sja_menuoption").attr("data-testid", "sjpp-geneBodyLoss-deVolcano").style("margin", "0 0 8px").style("padding", "3px 6px").text(
1068
+ `Open as differential expression volcano on the ${nMatched.toLocaleString()} samples with methylation, ${gb.genes.length.toLocaleString()} genes highlighted`
1069
+ ).on("click", () => {
1070
+ tip.hide();
1071
+ app.dispatch({
1072
+ type: "plot_create",
1073
+ config: structuredClone({
1074
+ chartType: "differentialAnalysis",
1075
+ termType: "geneExpression",
1076
+ state: config.state,
1077
+ samplelst,
1078
+ tw: config.tw,
1079
+ highlightedData: gb.genes,
1080
+ /* The default highlight is orange-yellow, which on a case group drawn in orange makes
1081
+ the highlighted hits and the up-regulated genes one blob. Use the colour the
1082
+ methylation figures give to LOSS instead: these genes are highlighted because they
1083
+ lost gene-body methylation, so the fill says the same thing there and here. */
1084
+ settings: { volcano: { defaultHighlightColor: HYPO_COLOR } }
1085
+ })
1086
+ });
1087
+ });
1088
+ div.append("div").style("font-weight", "bold").style("padding", "4px 0").text(
1089
+ `Genes under a gene-body loss region are expressed ${dir} in the case group: ${res.weightedDiff >= 0 ? "+" : ""}${res.weightedDiff.toFixed(3)} log\u2082 fold change within matched gene length (p = ${res.p < 1e-3 ? res.p.toExponential(1) : res.p.toFixed(4)}).`
1090
+ );
1091
+ div.append("div").style("color", "#777").style("font-size", ".92em").text(
1092
+ `${nRegions.toLocaleString()} regions \u2192 ${res.genesRequested.toLocaleString()} genes; ${res.nHit.toLocaleString()} compared against ${res.nOther.toLocaleString()} genes of matched length across ${res.strata.length} strata. ${res.genesNotInDE.toLocaleString()} were not tested by DE (low count or absent from the expression matrix) and ${res.unmatchedHits.toLocaleString()} fell in strata too thin to match. Comparing hits to all other genes instead would recover gene length.`
1093
+ );
1094
+ if (res.sigCount) {
1095
+ div.append("div").style("padding", "8px 0 2px").style("font-weight", "bold").text(
1096
+ `${res.sigCount.toLocaleString()} of these genes are differentially expressed on their own (p < 0.05), ${res.sigDown.toLocaleString()} of them down.`
1097
+ );
1098
+ const { caseColor, controlColor } = getGroupColors(config);
1099
+ renderTable({
1100
+ div: div.append("div"),
1101
+ columns: [
1102
+ { label: "Gene" },
1103
+ { label: "Length (log\u2081\u2080 bp)", barplot: { axisWidth: 90, colorPositive: "#999", tickCount: 3 } },
1104
+ { label: "log\u2082FC", barplot: { axisWidth: 110, colorNegative: controlColor, colorPositive: caseColor } },
1105
+ { label: res.topGenes[0]?.adjusted ? "Adjusted p" : "p", align: "right" }
1106
+ ],
1107
+ rows: res.topGenes.map((g) => [
1108
+ { value: g.gene },
1109
+ { value: g.len ? Number(Math.log10(g.len).toFixed(2)) : NaN },
1110
+ { value: Number(g.fc.toFixed(3)) },
1111
+ { value: Number(g.p.toPrecision(2)) }
1112
+ ]),
1113
+ showLines: true,
1114
+ maxHeight: "26vh",
1115
+ download: { fileName: "gene-body-loss-genes.tsv" }
1116
+ });
1117
+ if (res.sigCount > res.topGenes.length)
1118
+ div.append("div").style("color", "#777").style("font-size", ".9em").text(`Showing the ${res.topGenes.length} most significant of ${res.sigCount.toLocaleString()}.`);
1119
+ }
1120
+ div.append("div").style("padding", "10px 0 2px").style("font-weight", "bold").text("By gene length");
1121
+ renderTable({
1122
+ div: div.append("div"),
1123
+ columns: [
1124
+ { label: "Gene length" },
1125
+ { label: "Genes hit", align: "right" },
1126
+ { label: "Matched", align: "right" },
1127
+ { label: "Median log\u2082FC, hit", align: "right" },
1128
+ { label: "Median log\u2082FC, matched", align: "right" },
1129
+ { label: "Difference", align: "right" }
1130
+ ],
1131
+ rows: res.strata.map((s) => [
1132
+ { value: `${bplen(s.lenFrom)} \u2013 ${bplen(s.lenTo)}` },
1133
+ { value: s.nHit.toLocaleString() },
1134
+ { value: s.nOther.toLocaleString() },
1135
+ { value: Number(s.medianHit.toFixed(3)) },
1136
+ { value: Number(s.medianOther.toFixed(3)) },
1137
+ { value: Number(s.diff.toFixed(3)) }
1138
+ ]),
1139
+ showLines: true,
1140
+ maxHeight: "26vh",
1141
+ download: { fileName: "gene-body-loss-expression.tsv" }
1142
+ });
1143
+ }
1144
+
1145
+ // plots/volcano/interactions/dmrGeneLink.ts
1146
+ async function dmrGeneLinkPanel(tip, config, vocab, scan, app) {
1147
+ const div = tip.d.append("div").style("padding", "10px").style("max-width", "1000px");
1148
+ const wait = div.append("div").style("color", "#777").text("Linking DMRs to genes and running differential expression\u2026");
1149
+ const de = getDefaultVolcanoSettings({}, { termType: "geneExpression" });
1150
+ const state = app.getState();
1151
+ let res;
1152
+ try {
1153
+ res = await dofetch3("termdb/dmrGeneLink", {
1154
+ body: {
1155
+ genome: vocab.genome,
1156
+ dslabel: vocab.dslabel,
1157
+ cacheId: scan.cacheId,
1158
+ minCpgs: scan.minCpgs,
1159
+ /* The cohort the scan compared, expanded and matched server-side. The plot state's list can still
1160
+ hold a "Not in" group as {in:false} carrying the included group's values, which DE reads as two
1161
+ overlapping groups. */
1162
+ samplelst: {
1163
+ groups: (scan.matchedSamplelst || config.samplelst).groups.map((g) => ({
1164
+ name: g.name,
1165
+ in: g.in,
1166
+ values: g.values
1167
+ }))
1168
+ },
1169
+ method: de.method,
1170
+ min_count: de.minCount,
1171
+ min_total_count: de.minTotalCount,
1172
+ cpm_cutoff: de.cpmCutoff,
1173
+ filter: state.termfilter?.filter,
1174
+ filter0: state.termfilter?.filter0
1175
+ }
1176
+ });
1177
+ } catch (e) {
1178
+ res = { error: e?.message || String(e) };
1179
+ }
1180
+ wait.remove();
1181
+ if (res.error) return sayerror(div.append("div"), res.error);
1182
+ div.append("div").style("font-weight", "bold").text(
1183
+ `${res.genes.toLocaleString()} genes touched by DMRs of ${scan.minCpgs}+ CpGs (${res.links.toLocaleString()} gene-context links), read against ${res.deMethod || "differential"} expression on the samples with methylation`
1184
+ );
1185
+ div.append("div").style("color", "#777").style("font-size", ".92em").style("padding", "2px 0 6px").text(
1186
+ `Promoter = within ${bplen(
1187
+ 2e3
1188
+ )} of the TSS; body = the rest of the gene. Concordant: promoter \u0394\u03B2 and expression change in opposite directions, or gene-body \u0394\u03B2 and expression in the same direction (expression adjusted p < 0.05).`
1189
+ );
1190
+ const summary = table2col({ holder: div.append("div") });
1191
+ for (const context of ["promoter", "body"]) {
1192
+ const s = res.summary[context] || {};
1193
+ const [td1, td2] = summary.addRow();
1194
+ td1.text(context == "promoter" ? "Promoter DMRs" : "Gene-body DMRs");
1195
+ td2.text(
1196
+ ["concordant", "discordant", "no expression change", "not tested"].map((k) => `${k}: ${(s[k] || 0).toLocaleString()}`).join(" \xB7 ")
1197
+ );
1198
+ }
1199
+ const rows = res.rows;
1200
+ const litDiv = div.append("div");
1201
+ const recordOf = /* @__PURE__ */ new Map();
1202
+ const tableRows = rows.map((r) => {
1203
+ const cells = [
1204
+ { value: r.gene },
1205
+ { value: r.context },
1206
+ { value: `${r.dmr.chr}:${r.dmr.start}-${r.dmr.stop}` },
1207
+ { value: Number(r.dmr.deltaBeta.toFixed(3)) },
1208
+ { value: r.dmr.cpgs },
1209
+ { value: r.nDmrs },
1210
+ { value: r.fc == null ? "" : Number(r.fc.toFixed(3)) },
1211
+ { value: r.p == null ? "" : Number(r.p.toPrecision(2)) },
1212
+ { value: r.relationship }
1213
+ ];
1214
+ recordOf.set(cells, r);
1215
+ return cells;
1216
+ });
1217
+ renderTable({
1218
+ div: div.append("div"),
1219
+ columns: [
1220
+ { label: "Gene" },
1221
+ { label: "Context" },
1222
+ { label: "Strongest DMR" },
1223
+ { label: "\u0394\u03B2", sortable: true },
1224
+ { label: "CpGs", sortable: true },
1225
+ { label: "DMRs", sortable: true },
1226
+ { label: "Expression log\u2082FC", sortable: true },
1227
+ { label: "Expression p", sortable: true },
1228
+ { label: "Relationship" }
1229
+ ],
1230
+ rows: tableRows,
1231
+ showLines: true,
1232
+ maxHeight: "40vh",
1233
+ header: { allowSort: true },
1234
+ noRadioBtn: true,
1235
+ download: { fileName: "dmr-gene-links.tsv" },
1236
+ // a click asks PubMed about that row's gene in that row's context
1237
+ noButtonCallback: (i) => showLiterature(litDiv, vocab, recordOf.get(tableRows[i]), disease)
1238
+ });
1239
+ if (rows.length < res.links)
1240
+ div.append("div").style("color", "#777").style("font-size", ".9em").text(`Showing the first ${rows.length.toLocaleString()} of ${res.links.toLocaleString()} links.`);
1241
+ const hint = litDiv.append("div").style("color", "#777").style("padding", "6px 0");
1242
+ hint.append("span").text("Click a row for PubMed articles on that gene and mechanism, optionally within a disease: ");
1243
+ const disease = hint.append("input").attr("type", "text").attr("placeholder", "e.g. myeloma").style("width", "120px");
1244
+ }
1245
+ async function showLiterature(holder, vocab, r, disease) {
1246
+ holder.selectAll(".sjpp-dmr-lit").remove();
1247
+ const out = holder.append("div").attr("class", "sjpp-dmr-lit");
1248
+ const head = out.append("div").style("padding", "8px 0 2px").style("font-weight", "bold");
1249
+ const d = String(disease?.property("value") || "").trim();
1250
+ const within = d ? ` in ${d}` : "";
1251
+ head.text(`PubMed: ${r.gene}, ${r.context} methylation and expression${within}\u2026`);
1252
+ const res = await dofetch3("termdb/dmrLiterature", {
1253
+ body: { genome: vocab.genome, dslabel: vocab.dslabel, gene: r.gene, context: r.context, disease: d }
1254
+ }).catch((e) => ({ error: e?.message || String(e) }));
1255
+ holder = out;
1256
+ if (res.error) return sayerror(holder.append("div"), res.error);
1257
+ head.text(
1258
+ `PubMed: ${r.gene}, ${r.context} methylation and expression${within} (${res.count.toLocaleString()} article${res.count == 1 ? "" : "s"}${res.count > res.articles.length ? `, ${res.articles.length} most relevant shown` : ""}; this link is ${r.relationship})`
1259
+ );
1260
+ if (!res.articles.length) {
1261
+ holder.append("div").style("color", "#777").text("No articles match. The link may be unreported rather than unsupported.");
1262
+ return;
1263
+ }
1264
+ const ul = holder.append("ul").style("margin", "2px 0");
1265
+ for (const a of res.articles) {
1266
+ const li = ul.append("li");
1267
+ li.append("span").text(`${a.title} ${a.journal} ${a.year}. `);
1268
+ li.append("a").attr("href", a.doi ? `https://doi.org/${a.doi}` : `https://pubmed.ncbi.nlm.nih.gov/${a.pmid}/`).attr("target", "_blank").text(a.doi ? `doi:${a.doi}` : `PMID ${a.pmid}`);
1269
+ }
1270
+ }
1271
+
1272
+ // plots/volcano/view/VolcanoPlotView.ts
1273
+ var VolcanoPlotView = class {
1274
+ constructor(dom, interactions, termType) {
1275
+ this.linked = [];
1276
+ this.dom = dom;
1277
+ this.interactions = interactions;
1278
+ this.termType = termType;
1279
+ const actions = this.dom.holder.append("div").attr("id", "sjpp-volcano-actions").style("display", "block").style("z-index", 1).style("position", "relative");
1280
+ this.row = this.dom.holder.append("div").attr("id", "sjpp-volcano-row").style("display", "flex").style("align-items", "flex-start");
1281
+ const svg = this.row.append("svg").style("display", "inline-block").attr("id", "sjpp-volcano-svg").style("vertical-align", "top");
1282
+ this.volcanoDom = {
1283
+ actions,
1284
+ svg,
1285
+ pValueTable: void 0,
1286
+ top: void 0,
1287
+ xAxis: void 0,
1288
+ xAxisLabel: void 0,
1289
+ yAxis: void 0,
1290
+ yAxisLabel: void 0,
1291
+ plot: void 0
1292
+ };
1293
+ }
1294
+ render(settings, viewData) {
1295
+ this.settings = settings;
1296
+ this.viewData = viewData;
1297
+ this.linked = [];
1298
+ const plotDim = this.viewData.plotDim;
1299
+ this.initDom();
1300
+ this.renderUserActions();
1301
+ this.renderPlot(plotDim);
1302
+ renderDataPoints(this);
1303
+ this.renderFoldChangeLine(plotDim);
1304
+ this.attachInteractions(plotDim);
1305
+ if (this.settings.showPValueTable) this.renderPValueTable();
1306
+ if (this.viewData.scan?.manhattan) this.renderScanManhattan();
1307
+ }
1308
+ initDom() {
1309
+ this.volcanoDom.actions.selectAll("*").remove();
1310
+ this.volcanoDom.svg.selectAll("*").remove();
1311
+ const svg = this.volcanoDom.svg;
1312
+ this.volcanoDom.top = svg.append("g").attr("id", "sjpp-volcano-top");
1313
+ this.volcanoDom.xAxis = svg.append("g").attr("id", "sjpp-volcano-xAxis");
1314
+ this.volcanoDom.yAxis = svg.append("g").attr("id", "sjpp-volcano-yAxis");
1315
+ this.volcanoDom.xAxisLabel = svg.append("text").attr("id", "sjpp-volcano-xAxisLabel").attr("text-anchor", "middle");
1316
+ this.volcanoDom.yAxisLabel = svg.append("text").attr("id", "sjpp-volcano-yAxisLabel").attr("text-anchor", "middle");
1317
+ this.volcanoDom.plot = svg.append("g").attr("id", "sjpp-volcano-plot");
1318
+ this.dom.holder.select("#sjpp-volcano-pValueTable").remove();
1319
+ this.dom.holder.select("#sjpp-volcano-scanManhattan").remove();
1320
+ if (!this.settings.showPValueTable) return;
1321
+ this.volcanoDom.pValueTable = this.row.append("div").attr("id", "sjpp-volcano-pValueTable").attr("data-testid", "sjpp-volcano-pValueTable").style("display", "inline-block").style("vertical-align", "top");
1322
+ }
1323
+ renderUserActions() {
1324
+ this.dom.actionsTip.d.style("overflow", "hidden");
1325
+ this.volcanoDom.actions.style("margin-left", "20px").style("padding", "5px");
1326
+ this.addActionButton(
1327
+ "Confounding factors",
1328
+ [DATermTypes.GENE_EXPRESSION, DATermTypes.DNA_METHYLATION],
1329
+ () => this.interactions.confoundersMenu()
1330
+ );
1331
+ this.addActionButton(
1332
+ "Highlight genes",
1333
+ [DATermTypes.GENE_EXPRESSION, DATermTypes.SINGLECELL_CELLTYPE, DATermTypes.DNA_METHYLATION],
1334
+ () => this.interactions.launchGeneSetEdit()
1335
+ );
1336
+ this.addActionButton(
1337
+ "Statistics",
1338
+ [DATermTypes.GENE_EXPRESSION, DATermTypes.SINGLECELL_CELLTYPE, DATermTypes.DNA_METHYLATION],
1339
+ () => {
1340
+ this.renderStatsMenu();
1341
+ },
1342
+ { whenOpen: "Hide statistics" }
1343
+ );
1344
+ const gb = this.viewData.scan?.geneBodyLoss;
1345
+ if (gb?.genes.length) {
1346
+ this.addActionButton(
1347
+ `Expression of ${gb.genes.length.toLocaleString()} gene-body loss genes`,
1348
+ [DATermTypes.DNA_METHYLATION],
1349
+ () => geneBodyLossTest(
1350
+ this.dom.actionsTip,
1351
+ this.interactions.app.getState().plots.find((p) => p.id == this.interactions.id),
1352
+ this.interactions.app.vocabApi.vocab,
1353
+ this.viewData.scan,
1354
+ this.interactions.app
1355
+ )
1356
+ );
1357
+ }
1358
+ if (this.viewData.scan?.cacheId) {
1359
+ this.addActionButton(
1360
+ "Genes, expression and literature",
1361
+ [DATermTypes.DNA_METHYLATION],
1362
+ () => dmrGeneLinkPanel(
1363
+ this.dom.actionsTip,
1364
+ this.interactions.app.getState().plots.find((p) => p.id == this.interactions.id),
1365
+ this.interactions.app.vocabApi.vocab,
1366
+ this.viewData.scan,
1367
+ this.interactions.app
1368
+ )
1369
+ );
1370
+ }
1371
+ const dmNoun = elementNoun(this.settings?.elementType);
1372
+ const SIG_PREFIX = "Number of significant ";
1373
+ const sigRow = this.viewData.statsData.find((d) => d.label.startsWith(SIG_PREFIX));
1374
+ const numSigGenes = Number(sigRow?.value ?? 0);
1375
+ if (numSigGenes) {
1376
+ const n = numSigGenes.toLocaleString();
1377
+ const isDM = this.termType == DATermTypes.DNA_METHYLATION;
1378
+ const up = this.viewData.numSignificantUp;
1379
+ const down = this.viewData.numSignificantDown;
1380
+ const split = up + down > 0 ? ` (${up.toLocaleString()} ${isDM ? "hyper" : "up"} / ${down.toLocaleString()} ${isDM ? "hypo" : "down"})` : "";
1381
+ const off = this.viewData.xOffset;
1382
+ const centered = this.viewData.centered ? `, centered on median \u0394\u03B2 ${off > 0 ? "+" : ""}${off.toFixed(3)}` : "";
1383
+ const noun = isDM ? this.viewData.scan ? dmNoun.many : `DM ${dmNoun.many}` : this.termType == DATermTypes.GENE_EXPRESSION ? "DE genes" : `significant ${sigRow.label.slice(SIG_PREFIX.length)}`;
1384
+ const sigText = `${n} ${noun}` + split + centered + ":";
1385
+ this.volcanoDom.actions.append("span").text(sigText).style("margin-left", "10px").style("font-weight", "bold");
1386
+ const pValueTableButtonText = this.settings.showPValueTable ? "Hide p-value table" : "Show p-value table";
1387
+ this.addActionButton(
1388
+ pValueTableButtonText,
1389
+ [DATermTypes.GENE_EXPRESSION, DATermTypes.SINGLECELL_CELLTYPE, DATermTypes.DNA_METHYLATION],
1390
+ async () => {
1391
+ const showTable = !this.settings.showPValueTable;
1392
+ await this.interactions.app.dispatch({
1393
+ type: "plot_edit",
1394
+ id: this.interactions.id,
1395
+ config: { settings: { volcano: { showPValueTable: showTable } } }
1396
+ });
1397
+ }
1398
+ );
1399
+ }
1400
+ if (numSigGenes && numSigGenes >= 3) {
1401
+ this.addActionButton(
1402
+ `Hierarchical clustering of ${numSigGenes > 100 ? "top 100" : numSigGenes} DE genes`,
1403
+ [DATermTypes.GENE_EXPRESSION],
1404
+ async () => {
1405
+ await this.interactions.launchDEGClustering();
1406
+ }
1407
+ );
1408
+ }
1409
+ }
1410
+ /** Use the termTypes arr to render the buttons in a consistent order.
1411
+ *
1412
+ * Pass `opts.whenOpen` to make the button a toggle: clicking once opens
1413
+ * the actionsTip with the callback's content and swaps the button text
1414
+ * to `whenOpen` ("Hide statistics", etc.); clicking again hides the tip
1415
+ * and restores the original text. The text also restores when the tip
1416
+ * closes via Esc or outside-click (Menu.onHide hook), and when another
1417
+ * action button hijacks the tip (the loop below resets all toggles
1418
+ * before showing the new content). */
1419
+ addActionButton(text, termTypes, callback, opts) {
1420
+ if (this.viewData.userActions.noShow.has(text)) return;
1421
+ if (!termTypes.includes(this.termType)) return;
1422
+ const button = this.volcanoDom.actions.append("button").attr("class", "sja_menuoption").style("margin", "3px").style("padding", "3px").text(text).on("click", async () => {
1423
+ const whenOpen = opts?.whenOpen;
1424
+ if (whenOpen && button.text() === whenOpen) {
1425
+ this.dom.actionsTip.hide();
1426
+ return;
1427
+ }
1428
+ this.volcanoDom.actions.selectAll('button[data-volcano-toggle-open="1"]').each(function() {
1429
+ const b = select_default(this);
1430
+ const closed = b.attr("data-volcano-toggle-closed");
1431
+ if (closed) b.text(closed).attr("data-volcano-toggle-open", null);
1432
+ this.parent_menu = void 0;
1433
+ const eh = this.__volcanoEscHandler;
1434
+ if (eh) {
1435
+ document.removeEventListener("keydown", eh);
1436
+ this.__volcanoEscHandler = void 0;
1437
+ }
1438
+ });
1439
+ this.dom.actionsTip.clear().showunder(button.node());
1440
+ if (whenOpen) {
1441
+ button.text(whenOpen).attr("data-volcano-toggle-open", "1").attr("data-volcano-toggle-closed", text);
1442
+ button.node().parent_menu = this.dom.actionsTip.dnode;
1443
+ const escHandler = (e) => {
1444
+ if (e.key === "Escape") this.dom.actionsTip.hide();
1445
+ };
1446
+ document.addEventListener("keydown", escHandler);
1447
+ button.node().__volcanoEscHandler = escHandler;
1448
+ this.dom.actionsTip.onHide = () => {
1449
+ button.text(text).attr("data-volcano-toggle-open", null);
1450
+ button.node().parent_menu = void 0;
1451
+ document.removeEventListener("keydown", escHandler);
1452
+ button.node().__volcanoEscHandler = void 0;
1453
+ };
1454
+ } else {
1455
+ this.dom.actionsTip.onHide = void 0;
1456
+ }
1457
+ await callback();
1458
+ });
1459
+ }
1460
+ renderPlot(plotDim) {
1461
+ this.volcanoDom.svg.attr("width", plotDim.svg.width).attr("height", plotDim.svg.height);
1462
+ this.renderTermInfo(plotDim);
1463
+ this.volcanoDom.yAxisLabel.attr(
1464
+ "transform",
1465
+ `translate(${plotDim.yAxisLabel.x}, ${plotDim.yAxisLabel.y}) rotate(-90)`
1466
+ );
1467
+ this.setSvgSubscriptLabel(this.volcanoDom.yAxisLabel, "-log", "10", `(${this.viewData.pValueLabel})`);
1468
+ this.volcanoDom.xAxisLabel.attr("transform", `translate(${plotDim.xAxisLabel.x}, ${plotDim.xAxisLabel.y})`);
1469
+ if (this.termType === DATermTypes.DNA_METHYLATION && this.settings.xAxis === "delta_beta") {
1470
+ this.volcanoDom.xAxisLabel.selectAll("*").remove();
1471
+ this.volcanoDom.xAxisLabel.text(this.viewData.deltaBetaAxisLabel || "\u0394\u03B2 (case \u2212 control)");
1472
+ } else {
1473
+ this.volcanoDom.xAxisLabel.text(null);
1474
+ this.setSvgSubscriptLabel(this.volcanoDom.xAxisLabel, "log", "2", "(fold-change)");
1475
+ }
1476
+ this.renderScale(plotDim.xScale);
1477
+ this.renderScale(plotDim.yScale, true);
1478
+ if (this.viewData.volcanoPng) {
1479
+ this.volcanoDom.plot.append("image").attr("href", `data:image/png;base64,${this.viewData.volcanoPng}`).attr("x", plotDim.plot.x).attr("y", plotDim.plot.y).attr("width", plotDim.plot.width).attr("height", plotDim.plot.height).attr("preserveAspectRatio", "none");
1480
+ }
1481
+ }
1482
+ renderTermInfo(plotDim) {
1483
+ if (this.viewData.termInfo == void 0) return;
1484
+ this.volcanoDom.top.attr("transform", `translate(${plotDim.top.x}, ${plotDim.top.y})`);
1485
+ const y = this.viewData.termInfo.y;
1486
+ const addLabel = (term) => {
1487
+ return this.volcanoDom.top.append("text").attr("font-size", "0.9em").attr("transform", `translate(${term.x}, ${y + 10})`).text(term.label);
1488
+ };
1489
+ const firstTerm = this.viewData.termInfo.first;
1490
+ addLabel(firstTerm);
1491
+ const secondTerm = this.viewData.termInfo.second;
1492
+ const secondLabel = addLabel(secondTerm);
1493
+ secondLabel.attr("text-anchor", "end");
1494
+ }
1495
+ renderScale(scale, isLeft = false) {
1496
+ const scaleG = this.volcanoDom[isLeft ? "yAxis" : "xAxis"].append("g").attr("transform", `translate(${scale.x}, ${scale.y})`).call(isLeft ? axisLeft(scale.scale) : axisBottom(scale.scale));
1497
+ axisstyle({
1498
+ axis: scaleG,
1499
+ color: "black",
1500
+ showline: true
1501
+ });
1502
+ }
1503
+ renderFoldChangeLine(plotDim) {
1504
+ this.volcanoDom.plot.append("line").attr("stroke", "#ccc").attr("shape-rendering", "crispEdges").attr("x1", plotDim.logFoldChangeLine.x).attr("x2", plotDim.logFoldChangeLine.x).attr("y1", plotDim.logFoldChangeLine.y1).attr("y2", plotDim.logFoldChangeLine.y2);
1505
+ }
1506
+ renderStatsMenu() {
1507
+ for (const img of this.viewData.images || []) {
1508
+ this.dom.actionsTip.d.append("img").style("display", "inline-block").style("margin-left", "10px").style("margin-top", "-30px").attr("width", 450).attr("height", 450).attr("src", img.src);
1509
+ }
1510
+ const tableHolder = this.dom.actionsTip.d.append("div").style("display", this.viewData.images.length == 1 ? "inline-block" : "block").style("margin", `${this.viewData.images.length == 1 ? `40px 10px` : `0px 0px`} 0px 5px`).style("vertical-align", "top");
1511
+ const table = table2col({ holder: tableHolder });
1512
+ for (const d of this.viewData.statsData) {
1513
+ const [td1, td2] = table.addRow();
1514
+ td1.text(d.label);
1515
+ td2.style("text-align", "end").text(Number.isInteger(d.value) ? d.value.toLocaleString() : d.value);
1516
+ }
1517
+ }
1518
+ /* Where the DMRs are, along the whole genome: every kept DMR in the server's PNG, hyper above
1519
+ the line and hypo below, height = evidence; the most significant thousand are live. A dot is
1520
+ the same DMR the volcano shows, so hover and click give the volcano's own rows and actions --
1521
+ the violin of that region and the region view, a genome browser with the called DMRs, the
1522
+ per-CpG group means and the genes. Same lifecycle as the p-value table: redrawn from each
1523
+ response, never left stale. */
1524
+ /** What the scan covered, for the figure titles: the chromosome when that is all of it, and "the
1525
+ * genome" otherwise. A one-chromosome scan describing itself as genome-wide overstates every
1526
+ * number under it, which is what a dev host holding a subset of CpG shards produces. */
1527
+ scanSpan() {
1528
+ const chrs = this.viewData.scan?.chromosomes || [];
1529
+ return chrs.length == 1 ? chrs[0] : "the genome";
1530
+ }
1531
+ renderScanManhattan() {
1532
+ const { manhattan } = this.viewData.scan;
1533
+ const div = this.row.insert("div", "#sjpp-volcano-pValueTable").attr("id", "sjpp-volcano-scanManhattan").attr("data-testid", "sjpp-volcano-scanManhattan").style("display", "block").style("margin", "0 0 0 20px");
1534
+ const asRow = (d) => ({
1535
+ promoter_id: `${d.chrom}:${d.start}-${d.stop}`,
1536
+ gene_name: d.gene_name,
1537
+ chr: d.chrom,
1538
+ start: d.start,
1539
+ stop: d.stop,
1540
+ delta_beta: d.delta_beta,
1541
+ fold_change: d.fold_change,
1542
+ original_p_value: d.p,
1543
+ adjusted_p_value: d.p,
1544
+ no_cpgs: d.no_cpgs,
1545
+ excess: d.excess
1546
+ });
1547
+ const g2 = this.viewData.scan.matchedSamplelst?.groups?.[1]?.name || "case group";
1548
+ const link = {
1549
+ points: [],
1550
+ highlight: () => {
1551
+ },
1552
+ region: (d) => ({ chr: d.chrom, start: d.start, stop: d.stop })
1553
+ };
1554
+ const handle = plotManhattan(
1555
+ div,
1556
+ { png: manhattan.png, plotData: manhattan.plotData },
1557
+ {
1558
+ ...manhattanLayoutDefaults,
1559
+ plotWidth: manhattan.plotWidth,
1560
+ plotHeight: manhattan.plotHeight,
1561
+ // the server already picked N per direction; the client must not re-cap by |y|
1562
+ interactiveDotsCap: manhattan.plotData.points.length,
1563
+ maxTooltipGenes: this.settings.maxTooltipGenes,
1564
+ legendItemWidth: 130
1565
+ },
1566
+ void 0,
1567
+ {
1568
+ // names the chromosome when that is all the scan covered, rather than "the genome"
1569
+ title: `DMRs along ${this.scanSpan()}, direction in ${g2} (top ${manhattan.interactive.toLocaleString()} per direction interactive)`,
1570
+ // short, because it runs down a 300 px axis: the legend and title say what the sign means
1571
+ yAxisLabel: `\xB1log\u2081\u2080(${this.viewData.pValueLabel.replace("smoothed ", "")})`,
1572
+ legend: [
1573
+ { label: "Hypermethylated", color: HYPER_COLOR, hollow: true },
1574
+ { label: "Hypomethylated", color: HYPO_COLOR, hollow: true }
1575
+ ],
1576
+ itemNoun: "DMR",
1577
+ renderSingleHoverTooltip: (d, container) => {
1578
+ const table = table2col({ holder: container.append("table") });
1579
+ this.addTooltipRows(asRow(d), table);
1580
+ if (d.no_cpgs != null) addTooltipRow(table, "CpGs", d.no_cpgs);
1581
+ },
1582
+ buildMultiHitTableData: (dots) => this.buildMultiHitTable(dots.map(asRow)),
1583
+ getActions: (d) => this.getActionMenuOpts(asRow(d)),
1584
+ getRowKey: (d) => `${d.chrom}:${d.start}-${d.stop}`,
1585
+ onHover: (dots) => this.mirrorHover(link, dots)
1586
+ }
1587
+ );
1588
+ this.linked.push(Object.assign(link, handle));
1589
+ this.renderMethylationProfile(this.viewData.scan.matchedSamplelst?.groups?.[0]?.name || "control group", g2);
1590
+ }
1591
+ /* The genome-wide methylation profile, under the DMR plot: mean beta per group in 100 kb bins,
1592
+ drawn as the per-bin difference. The DMR plot above shows the regions that passed a threshold;
1593
+ this shows every bin that was measured, which is what says whether the methylome shifted a
1594
+ little everywhere or a lot in a few places.
1595
+
1596
+ Same component and the same hover/click layer as the DMR plot, on the bins that moved most in
1597
+ each direction: 29,000 dots in a band cannot be read by eye, so a dot has to be able to say
1598
+ which 100 kb it is, what each group's mean beta there was, and how many CpGs that rests on.
1599
+ Clicking opens the browser on the bin -- the question a standout bin raises is which of the
1600
+ scan's DMRs are inside it, and that is the view that answers it. */
1601
+ renderMethylationProfile(controlName, caseName) {
1602
+ const profile = this.viewData.scan?.profile;
1603
+ if (!profile) return;
1604
+ const div = this.dom.holder.select("#sjpp-volcano-scanManhattan").append("div").attr("data-testid", "sjpp-volcano-methylationProfile").style("display", "block").style("margin-top", "-70px");
1605
+ const region = (d) => ({ chr: d.chrom, start: d.pos, stop: d.pos + profile.binBp });
1606
+ const label = (d) => `${d.chrom}:${(d.pos + 1).toLocaleString()}-${(d.pos + profile.binBp).toLocaleString()}`;
1607
+ const link = { points: [], highlight: () => {
1608
+ }, region };
1609
+ const handle = plotManhattan(
1610
+ div,
1611
+ { png: profile.png, plotData: profile.plotData },
1612
+ {
1613
+ ...manhattanLayoutDefaults,
1614
+ plotWidth: profile.plotWidth,
1615
+ plotHeight: profile.plotHeight,
1616
+ /* The radius the PNG was drawn at, not the shared default of 2: the hover layer is
1617
+ placed in the PNG's own pixel space, and a 1 px mismatch in the padding stretches
1618
+ the image against the dot coordinates the server computed. */
1619
+ pngDotRadius: profile.dotRadius,
1620
+ // the server already picked N per direction; the client must not re-cap by |y|
1621
+ interactiveDotsCap: profile.plotData.points.length,
1622
+ /* More rows than the volcano's 5. At 100 kb there are ~29,000 bins over 1,000 px, so
1623
+ a cursor covers a median of 7 live bins on MMRF however tight the hit radius -- the
1624
+ dots genuinely overlap at this scale. 8 shows the whole neighbourhood on a typical
1625
+ hover instead of 5 of it. */
1626
+ maxTooltipGenes: 8,
1627
+ showLegend: false,
1628
+ showDownload: false
1629
+ },
1630
+ void 0,
1631
+ {
1632
+ /* The width drawn, not the width requested: the server reports back what it binned at,
1633
+ and a reader quoting the figure needs the two to agree. The interactive count is the
1634
+ live dot count rather than the per-direction rule, because at a coarse width the rule
1635
+ reaches every bin and "top 1,000 per direction" would read as a restriction. */
1636
+ title: `${this.scanSpan() == "the genome" ? "Methylome-wide" : `${this.scanSpan()}-wide`} profile: mean \u0394\u03B2 per ${bplen(profile.binBp)} bin in ${caseName} (${profile.interactive.toLocaleString()} of ${profile.bins.toLocaleString()} bins interactive)`,
1637
+ yAxisLabel: "\u0394\u03B2 per bin",
1638
+ itemNoun: "bin",
1639
+ renderSingleHoverTooltip: (d, container) => {
1640
+ const table = table2col({ holder: container.append("table") });
1641
+ addTooltipRow(table, "Region", label(d));
1642
+ addTooltipRow(table, "\u0394\u03B2", roundValueAuto(d.y));
1643
+ addTooltipRow(table, `Mean \u03B2, ${controlName}`, roundValueAuto(d.control));
1644
+ addTooltipRow(table, `Mean \u03B2, ${caseName}`, roundValueAuto(d.case));
1645
+ addTooltipRow(table, "CpGs measured", d.n_probes.toLocaleString());
1646
+ },
1647
+ buildMultiHitTableData: (dots) => ({
1648
+ columns: [{ label: "Region" }, { label: "\u0394\u03B2", sortable: true }, { label: "CpGs", sortable: true }],
1649
+ rows: dots.map((d) => [{ value: label(d) }, { value: roundValueAuto(d.y) }, { value: d.n_probes }])
1650
+ }),
1651
+ getActions: (d) => [
1652
+ {
1653
+ label: "Genome browser",
1654
+ onClick: async () => await this.interactions.launchScanGenomeBrowser(region(d), this.viewData.scan)
1655
+ }
1656
+ ],
1657
+ getRowKey: (d) => label(d),
1658
+ onHover: (dots) => this.mirrorHover(link, dots)
1659
+ }
1660
+ );
1661
+ this.linked.push(Object.assign(link, handle));
1662
+ }
1663
+ /* Ring, on every other figure, the live dots overlapping what the cursor is on. Only live dots can
1664
+ be ringed -- the rest are pixels in a PNG -- so a hovered DMR outside another figure's interactive
1665
+ top N has nothing to light up there. */
1666
+ mirrorHover(src, dots) {
1667
+ const hovered = dots.map(src.region);
1668
+ for (const p of this.linked) {
1669
+ if (p === src) continue;
1670
+ p.highlight(
1671
+ hovered.length ? p.points.filter((d) => {
1672
+ const r = p.region(d);
1673
+ return hovered.some((h) => h.chr == r.chr && h.start < r.stop && r.start < h.stop);
1674
+ }) : []
1675
+ );
1676
+ }
1677
+ }
1678
+ renderPValueTable() {
1679
+ if (!this.settings.showPValueTable) return;
1680
+ const maxTableRows = 5e3;
1681
+ const allRows = this.viewData.pValueTableData.rows;
1682
+ const rows = allRows.length > maxTableRows ? allRows.slice(0, maxTableRows) : allRows;
1683
+ if (allRows.length > maxTableRows) {
1684
+ this.volcanoDom.pValueTable.append("div").style("padding", "5px 10px").style("font-size", ".8em").style("color", "#666").text(
1685
+ `Showing top ${maxTableRows.toLocaleString()} of ${allRows.length.toLocaleString()} significant results (sorted by fold-change)`
1686
+ );
1687
+ }
1688
+ renderTable({
1689
+ columns: this.viewData.pValueTableData.columns,
1690
+ rows,
1691
+ div: this.volcanoDom.pValueTable,
1692
+ showLines: true,
1693
+ maxHeight: `${this.viewData.pValueTableData.height}px`,
1694
+ resize: true,
1695
+ header: { allowSort: true },
1696
+ noRadioBtn: true,
1697
+ noButtonCallback: (i) => {
1698
+ const key = this.viewData.pValueTableData.rowKeys.get(rows[i]);
1699
+ if (!key) return;
1700
+ this.interactions.highlightDataPoint(key);
1701
+ },
1702
+ hoverEffects: (tr, row) => {
1703
+ const circles = this.volcanoDom.plot.selectAll("circle").nodes();
1704
+ const key = this.viewData.pValueTableData.rowKeys.get(row);
1705
+ const dataKey = this.termType === DATermTypes.DNA_METHYLATION ? "promoter_id" : "gene_name";
1706
+ const circle = circles.find((d) => d.__data__[dataKey] == key);
1707
+ if (!circle || circle.__data__.highlighted) return;
1708
+ let clone;
1709
+ tr.on("mouseover", () => {
1710
+ if (circle.__data__.highlighted || clone) return;
1711
+ clone = this.volcanoDom.plot.node()?.appendChild(circle.cloneNode(true));
1712
+ clone.setAttribute("fill-opacity", 0.9);
1713
+ });
1714
+ tr.on("mouseleave", () => {
1715
+ if (!clone) return;
1716
+ clone.remove();
1717
+ clone = null;
1718
+ });
1719
+ this.volcanoDom.pValueTable.on("mouseover", () => {
1720
+ selectAll_default(circles).attr("stroke-opacity", 0.075);
1721
+ });
1722
+ this.volcanoDom.pValueTable.on("mouseleave", () => {
1723
+ selectAll_default(circles).attr("stroke-opacity", (d) => d.significant ? 0.35 : 0.2);
1724
+ });
1725
+ }
1726
+ });
1727
+ }
1728
+ setSvgSubscriptLabel(textElem, prefix, subscript, suffix) {
1729
+ textElem.text(null);
1730
+ textElem.append("tspan").text(prefix);
1731
+ textElem.append("tspan").attr("baseline-shift", "sub").attr("font-size", "0.7em").text(subscript);
1732
+ textElem.append("tspan").text(suffix);
1733
+ }
1734
+ attachInteractions(plotDim) {
1735
+ const points = this.viewData.pointData;
1736
+ if (!points || points.length === 0) return;
1737
+ const dotRadiusPx = this.viewData.plotExtent.dotRadiusPx;
1738
+ const hitRadius = dotRadiusPx + 3;
1739
+ const highlightRadius = Math.max(0.5, dotRadiusPx - 0.5);
1740
+ const highlightColor = this.settings.defaultHighlightColor;
1741
+ const hoverLayer = this.volcanoDom.plot.append("g").attr("id", "sjpp-volcano-hover").style("pointer-events", "none");
1742
+ const cover = this.volcanoDom.plot.append("rect").attr("id", "sjpp-volcano-cover").attr("x", plotDim.plot.x).attr("y", plotDim.plot.y).attr("width", plotDim.plot.width).attr("height", plotDim.plot.height).attr("fill", "transparent").style("pointer-events", "all").style("cursor", "default");
1743
+ const circlePath = (r) => `M${r},0 A${r},${r} 0 1,1 ${-r},0 A${r},${r} 0 1,1 ${r},0 Z`;
1744
+ const link = this.viewData.scan ? {
1745
+ points,
1746
+ region: (d) => ({ chr: d.chr, start: d.start, stop: d.stop }),
1747
+ highlight: (dots) => {
1748
+ drawHoverShapes(
1749
+ linkedLayer,
1750
+ dots.map((d) => ({
1751
+ path: circlePath(dotRadiusPx + 2),
1752
+ transform: `translate(${d.x},${d.y})`,
1753
+ stroke: "black",
1754
+ strokeWidth: 2
1755
+ }))
1756
+ );
1757
+ }
1758
+ } : void 0;
1759
+ const linkedLayer = this.volcanoDom.plot.append("g").style("pointer-events", "none");
1760
+ if (link) this.linked.push(link);
1761
+ new DataPointInteractions({
1762
+ cover,
1763
+ hoverLayer,
1764
+ hoverTip: this.dom.tip,
1765
+ points,
1766
+ // Quadtree in cover-local space — d.x/d.y are SVG-absolute, so subtract
1767
+ // the plot rect's origin once when building the tree.
1768
+ getX: (d) => d.x - plotDim.plot.x,
1769
+ getY: (d) => d.y - plotDim.plot.y,
1770
+ hitRadius,
1771
+ toHoverSpec: (d) => ({
1772
+ path: circlePath(highlightRadius),
1773
+ // Hover layer lives in the same coord space as the dots (SVG-absolute),
1774
+ // so translate by d.x/d.y — NOT the cover-local pair.
1775
+ transform: `translate(${d.x},${d.y})`,
1776
+ fill: highlightColor,
1777
+ fillOpacity: 0.9,
1778
+ stroke: "none"
1779
+ }),
1780
+ maxTooltipRows: this.settings.maxTooltipGenes,
1781
+ ...link ? { onHover: (dots) => this.mirrorHover(link, dots) } : {},
1782
+ itemNoun: "gene",
1783
+ renderSingleHoverTooltip: (d, container) => {
1784
+ const table = table2col({ holder: container.append("table") });
1785
+ this.addTooltipRows(d, table);
1786
+ },
1787
+ buildMultiHitTableData: (dots) => this.buildMultiHitTable(dots),
1788
+ getActions: (d) => this.getActionMenuOpts(d),
1789
+ renderSingleHitInfo: (d, container) => {
1790
+ const tbl = table2col({ holder: container.append("table") });
1791
+ this.addTooltipRows(d, tbl);
1792
+ },
1793
+ getRowKey: (d) => d.gene_name
1794
+ }).attach();
1795
+ }
1796
+ /** Whether the effect size on show is delta-beta rather than log2 fold-change. Methylation
1797
+ * fold-change is a difference of logits: it ranks elements correctly but says nothing about
1798
+ * how much methylation moved, so it must not be what a reader is handed next to a delta-beta
1799
+ * axis. Read by both hover paths -- the single-point tooltip and the multi-point table -- so
1800
+ * the two cannot disagree about which number they show. */
1801
+ get onDeltaBeta() {
1802
+ return this.termType === DATermTypes.DNA_METHYLATION && this.settings.xAxis === "delta_beta";
1803
+ }
1804
+ buildMultiHitTable(dots) {
1805
+ const isDM = this.termType === DATermTypes.DNA_METHYLATION;
1806
+ const isDAP = this.termType === DATermTypes.PROTEOME_DAP;
1807
+ const effectLabel = this.onDeltaBeta ? "\u0394\u03B2" : "log\u2082(FC)";
1808
+ const pValueType = this.settings.pValueType;
1809
+ const { pValueLabel, singlePValue } = this.viewData;
1810
+ const pLabel = pValueLabel.charAt(0).toUpperCase() + pValueLabel.slice(1);
1811
+ const pField = singlePValue ? "original_p_value" : `${pValueType}_p_value`;
1812
+ const columns = isDM ? [
1813
+ { label: elementNoun(this.settings?.elementType).one },
1814
+ { label: "Gene(s)" },
1815
+ { label: effectLabel, sortable: true },
1816
+ { label: pLabel, sortable: true }
1817
+ ] : isDAP ? [
1818
+ { label: "Identifier" },
1819
+ { label: "Gene" },
1820
+ { label: effectLabel, sortable: true },
1821
+ { label: pLabel, sortable: true }
1822
+ ] : [{ label: "Gene" }, { label: effectLabel, sortable: true }, { label: pLabel, sortable: true }];
1823
+ const rows = dots.map((d) => {
1824
+ const fc = { value: roundValueAuto(this.onDeltaBeta ? d.delta_beta : d.fold_change) };
1825
+ const pval = { value: roundValueAuto(d[pField]) };
1826
+ if (isDM) {
1827
+ return [{ value: formatPromoterLabel(d) }, { value: d.gene_name || "" }, fc, pval];
1828
+ }
1829
+ if (isDAP) {
1830
+ return [{ value: d.gene_name || "" }, { value: d.gene || "" }, fc, pval];
1831
+ }
1832
+ return [{ value: d.gene_name || "" }, fc, pval];
1833
+ });
1834
+ return { columns, rows };
1835
+ }
1836
+ /** Per-data-point action menu items (Violin / DMR / Box-plot). Used by
1837
+ * both the single-gene click flow and the multi-gene click-menu rows so
1838
+ * the launchers stay in lock-step. */
1839
+ getActionMenuOpts(d) {
1840
+ const termType = this.termType;
1841
+ const interactions = this.interactions;
1842
+ const all = [
1843
+ {
1844
+ label: "Violin plot",
1845
+ isVisible: () => termType === DATermTypes.DNA_METHYLATION || termType === DATermTypes.GENE_EXPRESSION,
1846
+ onClick: async () => {
1847
+ if (termType === DATermTypes.DNA_METHYLATION) interactions.launchDNAMethViolin(d);
1848
+ if (termType === DATermTypes.GENE_EXPRESSION) interactions.launchViolinGeneExp(d.gene_name);
1849
+ }
1850
+ },
1851
+ {
1852
+ /* A scan has already called every DMR: the browser shows them from the cache, beside
1853
+ the genes and cCREs, where the region view would re-fit the chromosome to draw the same
1854
+ track. The region view stays for the element classes, whose hits are not yet DMRs. */
1855
+ label: "Genome browser",
1856
+ isVisible: () => termType === DATermTypes.DNA_METHYLATION && !!this.viewData.scan,
1857
+ onClick: async () => {
1858
+ const dm = d;
1859
+ await interactions.launchScanGenomeBrowser(dm, this.viewData.scan);
1860
+ }
1861
+ },
1862
+ {
1863
+ label: "DMR analysis",
1864
+ isVisible: () => termType === DATermTypes.DNA_METHYLATION && !this.viewData.scan,
1865
+ onClick: async () => {
1866
+ const dm = d;
1867
+ await interactions.launchDmr({
1868
+ chr: dm.chr,
1869
+ start: dm.start,
1870
+ stop: dm.stop,
1871
+ promoterId: dm.promoter_id
1872
+ });
1873
+ }
1874
+ },
1875
+ {
1876
+ label: "Box plot",
1877
+ isVisible: () => termType === DATermTypes.GENE_EXPRESSION,
1878
+ onClick: async () => {
1879
+ interactions.launchBoxPlot(d.gene_name);
1880
+ }
1881
+ }
1882
+ ];
1883
+ return all.filter((o) => o.isVisible()).map(({ label, onClick }) => ({ label, onClick }));
1884
+ }
1885
+ /** Populates a `table2col` instance with the standard volcano hover rows
1886
+ * (gene/promoter, fold-change, original + adjusted p-values). */
1887
+ addTooltipRows(d, table) {
1888
+ if (this.termType === DATermTypes.DNA_METHYLATION) {
1889
+ if ("promoter_id" in d)
1890
+ addTooltipRow(table, elementNoun(this.settings?.elementType).one, formatPromoterLabel(d));
1891
+ if (d.gene_name) addTooltipRow(table, "Gene(s)", d.gene_name);
1892
+ } else if (this.termType === DATermTypes.PROTEOME_DAP) {
1893
+ addTooltipRow(table, "Identifier", d.gene_name);
1894
+ if ("gene" in d) addTooltipRow(table, "Gene", d.gene);
1895
+ } else {
1896
+ addTooltipRow(table, "Gene name", d.gene_name);
1897
+ }
1898
+ if (this.onDeltaBeta) {
1899
+ addTooltipRow(table, "\u0394\u03B2", roundValueAuto(d.delta_beta));
1900
+ } else {
1901
+ addTooltipRow(table, "log<sub>2</sub>(fold-change)", roundValueAuto(d.fold_change));
1902
+ }
1903
+ if (this.viewData.singlePValue) {
1904
+ addTooltipRow(table, this.viewData.pValueLabel, roundValueAuto(d.original_p_value));
1905
+ } else {
1906
+ addTooltipRow(table, "Original p-value", roundValueAuto(d.original_p_value));
1907
+ if (d.adjusted_p_value != void 0) addTooltipRow(table, "Adjusted p-value", roundValueAuto(d.adjusted_p_value));
1908
+ }
1909
+ }
1910
+ };
1911
+ function addTooltipRow(table, text, value) {
1912
+ const [td1, td2] = table.addRow();
1913
+ td1.html(text);
1914
+ td2.text(value);
1915
+ }
1916
+ function renderDataPoints(self) {
1917
+ self.volcanoDom.plot.selectAll("circle").data(self.viewData.pointData).enter().append("circle").attr("stroke", (d) => rgb(d.color).formatHex()).attr("stroke-opacity", (d) => d.significant ? 0.35 : 0.2).attr("stroke-width", 1).attr("fill", self.settings.defaultHighlightColor).attr("fill-opacity", (d) => d.highlighted ? 0.9 : 0).attr("cx", (d) => d.x).attr("cy", (d) => d.y).attr("r", (d) => d.radius).style("pointer-events", "none");
1918
+ }
1919
+
1920
+ // plots/volcano/VolcanoControlInputs.ts
1921
+ var isScan = (plot) => plot?.settings?.volcano?.elementType == DMR_SCAN_ELEMENT_TYPE;
1922
+ var VolcanoControlInputs = class {
1923
+ constructor(config, termType, elementTypes, chromosomes) {
1924
+ this.config = config;
1925
+ if (this.config.termType == GENE_EXPRESSION) this.sampleNum = getSampleNum(config);
1926
+ this.termType = termType;
1927
+ this.elementTypes = elementTypes || [];
1928
+ this.chromosomes = chromosomes || [];
1929
+ this.inputs = [
1930
+ {
1931
+ // DAP volcanoes threshold a single FDR (adjusted p-value); other term types
1932
+ // threshold a p-value.
1933
+ label: this.config.termType == PROTEOME_DAP ? "FDR significance (-log\u2081\u2080)" : "P value significance (-log\u2081\u2080)",
1934
+ type: "number",
1935
+ chartType: "volcano",
1936
+ settingsKey: "pValue",
1937
+ title: this.config.termType == PROTEOME_DAP ? "The FDR threshold to determine statistical significance" : "The p-value threshold to determine statistical significance",
1938
+ min: 0,
1939
+ // 5e-324 is the smallest positive number greater than 0 representable
1940
+ // in IEEE 64-bit floating point (i.e. javascripts native Number.MIN_VALUE)
1941
+ // -Math.log10(5e-324) = 323.3
1942
+ max: 323.3,
1943
+ step: 1
1944
+ },
1945
+ {
1946
+ label: "P value",
1947
+ type: "radio",
1948
+ chartType: "volcano",
1949
+ settingsKey: "pValueType",
1950
+ title: "Toggle between original and adjusted pvalues for volcano plot",
1951
+ // DAP files carry only a single FDR, and a DMR scan a single p, so there is nothing to
1952
+ // toggle between
1953
+ getDisplayStyle: (plot) => this.config.termType == PROTEOME_DAP || isScan(plot) ? "none" : "",
1954
+ options: [
1955
+ { label: "Adjusted", value: "adjusted" },
1956
+ { label: "Original", value: "original" }
1957
+ ]
1958
+ },
1959
+ /* Hidden for differential methylation: a DM run plots and thresholds on delta-beta,
1960
+ so a log2 cutoff would set a limit in units the plot never shows. Every other term
1961
+ type still gets it. */
1962
+ ...this.termType === DNA_METHYLATION ? [] : [
1963
+ {
1964
+ label: "Fold change (log\u2082)",
1965
+ type: "number",
1966
+ chartType: "volcano",
1967
+ settingsKey: "foldChangeCutoff",
1968
+ title: "The fold change threshold to determine biological significance",
1969
+ min: -10,
1970
+ max: 10
1971
+ }
1972
+ ],
1973
+ {
1974
+ label: "Max interactive dots",
1975
+ type: "number",
1976
+ chartType: "volcano",
1977
+ settingsKey: "maxInteractiveDots",
1978
+ title: "Cap on the number of top-significant points the server returns as interactive overlay circles. The PNG still shows every dot.",
1979
+ min: 0,
1980
+ max: 2e4,
1981
+ step: 100
1982
+ },
1983
+ //Preferably, keep all the display (e.g. colors, sizes, etc.) controls
1984
+ //at the bottom of the list or at least together
1985
+ {
1986
+ label: "Plot height",
1987
+ type: "number",
1988
+ chartType: "volcano",
1989
+ settingsKey: "height",
1990
+ title: "Height of the plot in pixels",
1991
+ min: 300,
1992
+ max: 1e3
1993
+ },
1994
+ {
1995
+ label: "Plot width",
1996
+ type: "number",
1997
+ chartType: "volcano",
1998
+ settingsKey: "width",
1999
+ title: "Width of the plot in pixels",
2000
+ min: 300,
2001
+ max: 1e3
2002
+ },
2003
+ {
2004
+ label: "Significant value color",
2005
+ type: "color",
2006
+ chartType: "volcano",
2007
+ title: "Default color for significant data points.",
2008
+ settingsKey: "defaultSignColor",
2009
+ getDisplayStyle: () => {
2010
+ if (this.config.termType == SINGLECELL_CELLTYPE) return "none";
2011
+ const controlColor = this.config.tw?.term?.values?.[this.config.samplelst.groups[0].name]?.color;
2012
+ const caseColor = this.config.tw?.term?.values?.[this.config.samplelst.groups[1].name].color;
2013
+ if (controlColor && caseColor) return "none";
2014
+ else return "";
2015
+ }
2016
+ },
2017
+ {
2018
+ label: "Non-significant value color",
2019
+ type: "color",
2020
+ chartType: "volcano",
2021
+ title: "Default color for non-significant data points.",
2022
+ settingsKey: "defaultNonSignColor"
2023
+ },
2024
+ {
2025
+ label: "Highlight color",
2026
+ type: "color",
2027
+ chartType: "volcano",
2028
+ title: "Default color for highlighted data points.",
2029
+ settingsKey: "defaultHighlightColor"
2030
+ }
2031
+ ];
2032
+ this.setVolcanoControlInputs();
2033
+ }
2034
+ /** Add more term type specific controls here. */
2035
+ setVolcanoControlInputs() {
2036
+ this.addGeneExpControlInputs();
2037
+ this.addDNAMethControlInputs();
2038
+ this.addSingleCellCTControlInputs();
2039
+ }
2040
+ addGeneExpControlInputs() {
2041
+ if (this.termType !== GENE_EXPRESSION) return;
2042
+ const geInputs = [
2043
+ {
2044
+ label: "Minimum read count",
2045
+ type: "number",
2046
+ chartType: "volcano",
2047
+ settingsKey: "minCount",
2048
+ title: "The smallest number of reads required for a gene to be considered in the analysis",
2049
+ min: 0,
2050
+ max: 1e4
2051
+ },
2052
+ {
2053
+ label: "Minimum total read count",
2054
+ type: "number",
2055
+ chartType: "volcano",
2056
+ settingsKey: "minTotalCount",
2057
+ title: "The smallest total number of reads required for a gene to be considered in the analysis",
2058
+ min: 0,
2059
+ max: 1e4
2060
+ },
2061
+ {
2062
+ label: "CPM cutoff",
2063
+ type: "number",
2064
+ chartType: "volcano",
2065
+ settingsKey: "cpmCutoff",
2066
+ title: "The minimum normalized expression threshold to retain only genes with sufficient expression",
2067
+ min: 0
2068
+ },
2069
+ {
2070
+ label: "Method",
2071
+ type: "radio",
2072
+ chartType: "volcano",
2073
+ settingsKey: "method",
2074
+ title: "Toggle between analysis methods",
2075
+ options: this.getMethodOptions()
2076
+ }
2077
+ // {
2078
+ // label: 'Rank Genes by',
2079
+ // type: 'radio',
2080
+ // chartType: 'volcano',
2081
+ // settingsKey: 'rankBy',
2082
+ // title: 'Rank genes by either the absolute value of the fold change or the variance',
2083
+ // options: [
2084
+ // { label: 'abs(Fold Change)', value: 'abs(foldChange)' },
2085
+ // { label: 'Variance', value: 'variance' }
2086
+ // ],
2087
+ // //TODO: will enable this feature when there is backhand support
2088
+ // getDisplayStyle: () => 'none'
2089
+ // }
2090
+ ];
2091
+ this.inputs.splice(0, 0, ...geInputs);
2092
+ }
2093
+ addDNAMethControlInputs() {
2094
+ if (this.termType !== DNA_METHYLATION) return;
2095
+ const scanOnly = (plot) => isScan(plot) ? "" : "none";
2096
+ const notScan = (plot) => isScan(plot) ? "none" : "";
2097
+ const dmInputs = [
2098
+ /* Element class comes FIRST because it is categorically different from the
2099
+ controls below it: those tune how the test is run, this one changes what is
2100
+ being tested. Promoters, eQTM blocks, and cCRE classes are different genomic
2101
+ features with different coordinates and different test counts, so switching
2102
+ produces a different analysis rather than a refined one.
2103
+
2104
+ Hidden unless the dataset offers a genuine choice -- a single class means
2105
+ there is nothing to pick, and a dataset using the legacy promoter-only config
2106
+ gets no new UI at all. */
2107
+ ...this.elementTypes.length > 1 ? [
2108
+ {
2109
+ label: "Element class",
2110
+ type: "dropdown",
2111
+ chartType: "volcano",
2112
+ settingsKey: "elementType",
2113
+ options: this.elementTypes.map((e) => ({ value: e.key, label: e.label })),
2114
+ title: "Which regulatory elements to test. This changes the features being analysed, not just the thresholds: promoters are TSS windows (-1500/+500 bp, the 450K array definition), cCRE promoters are the ~349 bp ENCODE promoter-like elements (the CpG-island core, no shores), eQTM blocks are runs of CpGs whose methylation correlates with a gene, and the other cCRE classes are ENCODE enhancer and CTCF annotations. Hit counts are not comparable across classes because the number of tests and the genes covered both differ. Narrow elements recover focal signal that a wide window averages away; wide windows do better on broad marks."
2115
+ }
2116
+ ] : [],
2117
+ /* The scan's own knobs, shown only while the scan is the selected class. The chromosome
2118
+ picker is a plain dropdown rather than the region search box: string2pos() turns a bare
2119
+ "chr20" into a 20kb window at the chromosome midpoint, which would silently scan 0.005% of
2120
+ the target. chrM is left out -- 16.5 kb of circular DNA that cannot carry a domain. */
2121
+ {
2122
+ label: "Scan",
2123
+ type: "dropdown",
2124
+ chartType: "volcano",
2125
+ settingsKey: "scanChromosome",
2126
+ getDisplayStyle: scanOnly,
2127
+ options: [
2128
+ { value: "", label: "Whole genome" },
2129
+ ...this.chromosomes.filter((c) => c != "chrM" && c != "chrMT").map((c) => ({ value: c, label: c }))
2130
+ ],
2131
+ title: "Call DMRs de novo across the whole genome, or across one chromosome. A whole-genome scan takes about 45 seconds the first time and is cached after that."
2132
+ },
2133
+ {
2134
+ label: "Correct for background drift",
2135
+ type: "checkbox",
2136
+ chartType: "volcano",
2137
+ settingsKey: "backgroundCorrection",
2138
+ boxLabel: "",
2139
+ getDisplayStyle: scanOnly,
2140
+ title: 'Score each DMR against width- and CpG-density-matched intergenic background instead of against zero, so the y axis asks "did this region move MORE than a region like it drifts" rather than "did it move". On a cohort whose whole genome shifts, the two questions have different answers -- on MMRF NSD2-high the hyper:hypo direction inverts. DMRs whose stratum holds too little background to score are counted in Statistics but not plotted. Roughly doubles the scan time.'
2141
+ },
2142
+ {
2143
+ label: "Min CpGs per DMR",
2144
+ type: "number",
2145
+ chartType: "volcano",
2146
+ settingsKey: "minCpgs",
2147
+ getDisplayStyle: scanOnly,
2148
+ min: 1,
2149
+ max: 1e3,
2150
+ title: "Drop DMRs called from fewer CpGs. Two-CpG calls carry the largest effect sizes and no direction (51.5% hyper on MMRF chr1, a coin flip, against 58% for 10+ CpG calls), so a \u0394\u03B2-sorted table would lead with the rows that mean least. Applied to the cached scan, so changing it redraws rather than refits."
2151
+ },
2152
+ /* DMRcate's region-shape knobs. Unlike the CpG floor these change the fit's output, so each
2153
+ one refits the scan (and gets its own cache entry). */
2154
+ {
2155
+ label: "DMR bandwidth \u03BB (bp)",
2156
+ type: "number",
2157
+ chartType: "volcano",
2158
+ settingsKey: "lambda",
2159
+ getDisplayStyle: scanOnly,
2160
+ min: 50,
2161
+ max: 1e5,
2162
+ step: 50,
2163
+ title: "DMRcate lambda. Two things at once: the width of the Gaussian kernel that smooths per-CpG statistics along the genome, and the largest gap allowed between significant CpGs chained into one DMR. Larger values merge nearby signal into fewer, wider DMRs and recover broad domains; smaller values split them into narrow, focal regions. DMRcate recommends 1000 bp for CpG-resolution data. Changing it refits the scan (about 45 seconds genome-wide)."
2164
+ },
2165
+ {
2166
+ label: "DMR kernel scaling C",
2167
+ type: "number",
2168
+ chartType: "volcano",
2169
+ settingsKey: "C",
2170
+ getDisplayStyle: scanOnly,
2171
+ min: 0.5,
2172
+ max: 50,
2173
+ step: 0.5,
2174
+ title: "DMRcate C: the kernel standard deviation is lambda / C. A larger C gives a narrower kernel, so each CpG borrows evidence from fewer neighbours: sharper boundaries and more, smaller DMRs, at the cost of power in sparse regions. A smaller C smooths further. DMRcate recommends 2. Changing it refits the scan."
2175
+ },
2176
+ {
2177
+ label: "Per-CpG FDR cutoff",
2178
+ type: "number",
2179
+ chartType: "volcano",
2180
+ settingsKey: "fdrCutoff",
2181
+ getDisplayStyle: scanOnly,
2182
+ min: 1e-4,
2183
+ max: 0.5,
2184
+ step: 0.01,
2185
+ title: "The FDR a CpG's smoothed statistic must pass to take part in a DMR. Raising it lets weaker CpGs join, which extends DMRs and bridges gaps between them; lowering it keeps only the strongest CpGs, giving shorter, fewer DMRs. DMRcate's default is 0.05. This is not the volcano's significance threshold, which is applied afterwards to each DMR. Changing it refits the scan."
2186
+ },
2187
+ {
2188
+ /* Display width for the methylome-wide profile only. The metric is the 100 kb bin and
2189
+ the Statistics rows stay on it whatever this says -- this is here because 29,000 dots
2190
+ over 1,000 px overlap however small the dot, so the native figure reads as a band. */
2191
+ label: "Profile bin width",
2192
+ type: "dropdown",
2193
+ chartType: "volcano",
2194
+ settingsKey: "profileBinBp",
2195
+ getDisplayStyle: scanOnly,
2196
+ options: [
2197
+ { value: 1e5, label: "100 Kb (native)" },
2198
+ { value: 5e5, label: "500 Kb" },
2199
+ { value: 1e6, label: "1 Mb" },
2200
+ { value: 5e6, label: "5 Mb" }
2201
+ ],
2202
+ // a <select> hands back its value as a string; the setting is a width in bp
2203
+ processInput: (v) => Number(v),
2204
+ title: "How wide a bin the methylome-wide profile draws. 100 kb is the width the metric is computed and reported at (Zhou 2018); the coarser widths average neighbouring bins into one dot, weighted by the CpGs each rests on, so a genome-wide shift is legible instead of hidden in a band of overlapping dots. Display only: the Statistics rows and the fraction-of-bins-moved figures stay on the 100 kb bins, and changing this redraws the cached scan rather than refitting it. The most extreme 1,000 bins per direction stay hoverable at any width."
2205
+ },
2206
+ {
2207
+ label: "Min samples per group",
2208
+ type: "number",
2209
+ chartType: "volcano",
2210
+ settingsKey: "minSamplesPerGroup",
2211
+ title: "Minimum non-NA samples required per group for a promoter to be tested",
2212
+ // the scan resolves its own groups (3+ per group, fixed) and has no per-element NA filter
2213
+ getDisplayStyle: notScan,
2214
+ min: 1,
2215
+ max: 100
2216
+ },
2217
+ {
2218
+ label: "Exclude sex chromosomes",
2219
+ type: "checkbox",
2220
+ chartType: "volcano",
2221
+ settingsKey: "excludeSexChr",
2222
+ boxLabel: "",
2223
+ // the scan honours it too: scanChromosomes() drops chrX/chrY from a whole-genome scan
2224
+ title: "Drop chrX and chrY (promoters, elements, or whole chromosomes from a DMR scan). Recommended for mixed-sex cohorts \u2014 X-inactivation makes chrX methylation strongly sex-dependent, so a sex-imbalanced comparison reports sex rather than the grouping variable. On a scan, autosomal DMRs are unchanged (each chromosome is fitted on its own); gene links and gene set enrichment lose the X-linked genes."
2225
+ },
2226
+ {
2227
+ label: "Center \u0394\u03B2 on median",
2228
+ type: "checkbox",
2229
+ chartType: "volcano",
2230
+ settingsKey: "centerDeltaBeta",
2231
+ boxLabel: "",
2232
+ // the background correction is the scan's version of this question
2233
+ getDisplayStyle: notScan,
2234
+ title: 'Move the \u0394\u03B2 origin to the median across all tested elements, so 0 is the typical element rather than no change. Use it to ask "which elements moved MORE than the typical one" \u2014 at a symmetric cutoff, a contrast whose whole distribution sits off zero clears the hyper threshold more easily than the hypo one, which skews the hyper:hypo ratio on its own. Leave it off to ask "which elements gained or lost methylation", since a genuine genome-wide shift is itself a result and centering would subtract it. The \u0394\u03B2 values in the table and its download are unaffected either way.'
2235
+ },
2236
+ {
2237
+ label: "Min \u0394\u03B2",
2238
+ type: "number",
2239
+ chartType: "volcano",
2240
+ settingsKey: "deltaBetaCutoff",
2241
+ title: "Effect-size cutoff for differential methylation, applied to \u0394\u03B2. 0.1 is a 10-percentage-point change in methylation, the conventional floor for calling a region differentially methylated. Kept separate from the log\u2082 cutoff because the two are not interchangeable.",
2242
+ min: 0,
2243
+ max: 1,
2244
+ step: 0.01
2245
+ }
2246
+ ];
2247
+ this.inputs.splice(0, 0, ...dmInputs);
2248
+ }
2249
+ addSingleCellCTControlInputs() {
2250
+ if (this.termType !== SINGLECELL_CELLTYPE) return;
2251
+ const scctInputs = [];
2252
+ this.inputs.splice(0, 0, ...scctInputs);
2253
+ }
2254
+ getMethodOptions() {
2255
+ if (this.termType !== GENE_EXPRESSION) return;
2256
+ const settings = this.config.settings.volcano;
2257
+ const features = JSON.parse(sessionStorage.getItem("optionalFeatures"));
2258
+ if (features?.runDE_methods?.length) {
2259
+ const opts = [];
2260
+ for (const m of features.runDE_methods) {
2261
+ opts.push({ label: m, value: m.toLowerCase() });
2262
+ }
2263
+ return opts;
2264
+ }
2265
+ if (this.sampleNum < settings.sampleNumCutoff) {
2266
+ return [
2267
+ { label: "edgeR", value: "edgeR" },
2268
+ { label: "Wilcoxon", value: "wilcoxon" },
2269
+ { label: "Limma", value: "limma" }
2270
+ ];
2271
+ } else return [{ label: "Wilcoxon", value: "wilcoxon" }];
2272
+ }
2273
+ };
2274
+
2275
+ // plots/volcano/Volcano.ts
2276
+ var MIN_WILCOXON_GROUP_SIZE = 20;
2277
+ var Volcano = class _Volcano extends PlotBase {
2278
+ static {
2279
+ this.type = "volcano";
2280
+ }
2281
+ constructor(opts, api) {
2282
+ super(opts, api);
2283
+ if (this.opts.parentId) this.parentId = this.opts.parentId;
2284
+ this.type = _Volcano.type;
2285
+ this.components = {
2286
+ controls: {}
2287
+ };
2288
+ this.termType = opts.termType;
2289
+ const holder = opts.holder.classed("sjpp-volcano-main", true).attr("data-testid", `sjpp-volcano-main-${opts.termType}`);
2290
+ const controls = typeof opts.controls == "object" ? opts.controls : holder || holder.append("div");
2291
+ const error = opts.holder.append("div").attr("id", "sjpp-volcano-error").attr("data-testid", `sjpp-volcano-error-${opts.termType}`).style("opacity", 0.75);
2292
+ this.dom = {
2293
+ holder,
2294
+ controls,
2295
+ error,
2296
+ wait: holder.append("div").attr("id", "sjpp-volcano-wait").attr("data-testid", `sjpp-volcano-wait-${opts.termType}`).style("opacity", 0.75).style("padding", "20px").text("Loading..."),
2297
+ tip: new Menu({ padding: "" }),
2298
+ actionsTip: new Menu({ padding: "" })
2299
+ };
2300
+ }
2301
+ getState(appState) {
2302
+ const config = appState.plots.find((p) => p.id === this.id);
2303
+ if (!config) {
2304
+ throw new Error(
2305
+ `No plot with id='${this.id}' found. Did you set this.id before this.api = getComponentApi(this)?`
2306
+ );
2307
+ }
2308
+ const parentConfig = this.parentId && appState.plots.find((p) => p.id === this.parentId);
2309
+ const termfilter = getCombinedTermFilter(appState, config.filter || parentConfig?.filter);
2310
+ return {
2311
+ config: Object.assign({}, config, {
2312
+ settings: {
2313
+ volcano: config.settings.volcano
2314
+ }
2315
+ }),
2316
+ termfilter
2317
+ };
2318
+ }
2319
+ async setControls() {
2320
+ const plotConfig = this.app.getState().plots.find((p) => p.id === this.id);
2321
+ const controls = new VolcanoControlInputs(
2322
+ plotConfig,
2323
+ this.termType,
2324
+ this.app.vocabApi.termdbConfig?.queries?.dnaMethylation?.elementTypes,
2325
+ this.app.opts.genome?.majorchrorder
2326
+ );
2327
+ this.components.controls = await controlsInit({
2328
+ app: this.app,
2329
+ id: this.id,
2330
+ holder: this.dom.controls.style("display", "inline-block"),
2331
+ inputs: controls.inputs
2332
+ });
2333
+ this.components.controls.on("downloadClick.volcano", () => this.interactions.download(this.termType));
2334
+ if (plotConfig.chartType == "differentialAnalysis")
2335
+ this.components.controls.on(
2336
+ "helpClick.differentialAnalysis",
2337
+ () => (
2338
+ //Opens the page for the differential analysis wiki
2339
+ //Can't put in parent as DA does not have a controls component
2340
+ window.open("https://github.com/stjude/proteinpaint/wiki/Differential-analysis")
2341
+ )
2342
+ );
2343
+ }
2344
+ async init() {
2345
+ this.interactions = new VolcanoInteractions(this.app, this.id, this.dom);
2346
+ this.model = new VolcanoModel(this, this.termType);
2347
+ this.view = new VolcanoPlotView(this.dom, this.interactions, this.termType);
2348
+ await this.setControls();
2349
+ }
2350
+ async main() {
2351
+ if (!this.interactions) throw new Error("Volcano Interactions not initialized");
2352
+ if (!this.model) throw new Error("Volcano Model not initialized");
2353
+ if (!this.view) throw new Error("Volcano View not initialized");
2354
+ const config = structuredClone(this.state.config);
2355
+ if (config.chartType != this.type && config.childType != this.type) return;
2356
+ const settings = config.settings.volcano;
2357
+ try {
2358
+ this.dom.wait.text(
2359
+ settings.elementType == DMR_SCAN_ELEMENT_TYPE ? "Scanning for DMRs... a whole-genome scan takes about 45 seconds the first time, and is cached after that." : "Loading..."
2360
+ );
2361
+ const showWait = setTimeout(() => {
2362
+ this.dom.wait.style("display", "block");
2363
+ }, 500);
2364
+ const response = await this.model.getData(config, settings);
2365
+ this.dom.error.text("");
2366
+ if (!response || response.error || !response.data || !response.data.volcanoPng || !response.data.totalRows) {
2367
+ const msg = response?.error || "No data returned from server";
2368
+ if (response?.code === "CACHE_BUSY") {
2369
+ if (window.confirm(msg)) this.main();
2370
+ } else sayerror(this.dom.error, msg);
2371
+ clearTimeout(showWait);
2372
+ this.dom.wait.style("display", "none");
2373
+ return;
2374
+ }
2375
+ const viewModel = new VolcanoViewModel(config, response, settings);
2376
+ this.interactions.pValueTableData = viewModel.viewData.pValueTableData;
2377
+ this.interactions.data = response.data.dots;
2378
+ this.interactions.totalSignificantRows = response.data.totalSignificantRows;
2379
+ this.interactions.provenance = viewModel.viewData.provenance;
2380
+ this.interactions.fetchAllRows = async () => {
2381
+ const full = await new VolcanoModel(this, this.termType).getData(config, {
2382
+ ...settings,
2383
+ maxInteractiveDots: null
2384
+ });
2385
+ if (!full || full.error || !full.data?.dots) throw new Error(full?.error || "no rows returned");
2386
+ return new VolcanoViewModel(config, full, settings).viewData.pValueTableData;
2387
+ };
2388
+ this.view.render(settings, viewModel.viewData);
2389
+ const notes = [];
2390
+ if (!response.data.dots.length) notes.push("No points passed the significance thresholds.");
2391
+ const smallestGroup = Math.min(response.sample_size1, response.sample_size2);
2392
+ if (settings.method == "wilcoxon" && smallestGroup < MIN_WILCOXON_GROUP_SIZE) {
2393
+ const samplesLabel = uiLabel(this.app.vocabApi.termdbConfig?.uiLabels, "samples", "samples");
2394
+ notes.push(
2395
+ `The smaller group has ${smallestGroup.toLocaleString()} ${samplesLabel}. Wilcoxon p-values are approximated here, and a gene that is zero in most ${samplesLabel} can be assigned a p-value far smaller than its group sizes can support. Rank these results by fold change rather than by p-value magnitude, and do not compare the p-values against another analysis.`
2396
+ );
2397
+ }
2398
+ if (notes.length) this.dom.error.text(notes.join(" ")).style("color", "#555");
2399
+ clearTimeout(showWait);
2400
+ this.dom.wait.style("display", "none");
2401
+ } catch (e) {
2402
+ if (e instanceof Error) console.error(e.message || e);
2403
+ else if (e.stack) console.log(e.stack);
2404
+ throw e;
2405
+ }
2406
+ }
2407
+ };
2408
+ var volcanoInit = getCompInit(Volcano);
2409
+ var componentInit = volcanoInit;
2410
+ async function getPlotConfig(opts, app) {
2411
+ if (!opts.termType) throw new Error(".termType is required");
2412
+ const config = {
2413
+ settings: {
2414
+ // app is passed through so the defaults can read the dataset's preferred starting
2415
+ // element class from termdbConfig; opts alone does not carry it
2416
+ volcano: getDefaultVolcanoSettings(opts.overrides, { ...opts, app })
2417
+ },
2418
+ highlightedData: opts.highlightedData || [],
2419
+ termType: opts.termType
2420
+ };
2421
+ if (opts.termType == GENE_EXPRESSION || opts.termType == DNA_METHYLATION) {
2422
+ if (opts.confounderTws) {
2423
+ try {
2424
+ for (const tw of opts.confounderTws) {
2425
+ await fillTermWrapper(tw, app.vocabApi);
2426
+ }
2427
+ } catch (e) {
2428
+ console.error(e.message || e);
2429
+ throw new Error(`Volcano getPlotConfig() failed to fill confounder term wrappers: ${e}`);
2430
+ }
2431
+ }
2432
+ Object.assign(config, {
2433
+ confounderTws: opts.confounderTws || [],
2434
+ samplelst: opts.samplelst
2435
+ });
2436
+ }
2437
+ if (opts.termType == SINGLECELL_CELLTYPE) {
2438
+ Object.assign(config, {
2439
+ //TODO: Fix this logic
2440
+ sample: opts.experimentID || opts.sample || opts.samples?.[0]?.experiments[0]?.experimentID,
2441
+ termId: app.vocabApi.termdbConfig.queries.singleCell.DEgenes.termId,
2442
+ //TODO: 'Cluster' is a fallback for development
2443
+ //Should require opts.categoryName in the future
2444
+ categoryName: opts.categoryName || "Cluster"
2445
+ });
2446
+ }
2447
+ validateVolcanoSettings(config, opts);
2448
+ return copyMerge(config, opts);
2449
+ }
2450
+ export {
2451
+ Volcano,
2452
+ componentInit,
2453
+ getPlotConfig,
2454
+ volcanoInit
2455
+ };
2456
+ //# sourceMappingURL=Volcano-4IEQIEDS.js.map