@sjcrh/proteinpaint-client 2.208.0 → 2.209.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 (930) hide show
  1. package/dist/2dmaf-VTMPVZGT.js +1367 -0
  2. package/dist/AggMatrixInput-CH3RQ2QC.js +406 -0
  3. package/dist/AggregateMatrix-DPCHUOMF.js +41 -0
  4. package/dist/AppHeader-RA7T467G.js +830 -0
  5. package/dist/BoxPlot-7Q7SMT26.js +1211 -0
  6. package/dist/CorrelationVolcano-YV4UHOAX.js +617 -0
  7. package/dist/Cuminc-ZN53C3MD.js +1219 -0
  8. package/dist/DE-BEWW5AIG.js +89 -0
  9. package/dist/DEinput-SJITUJF2.js +499 -0
  10. package/dist/DM-2LBNE4WE.js +90 -0
  11. package/dist/DifferentialAnalysis-WE4LBHEF.js +239 -0
  12. package/dist/DifferentialAnalysis-WE4LBHEF.js.map +7 -0
  13. package/dist/Disco-PTZQF7IM.js +3389 -0
  14. package/dist/Disco.UI-NBR67N5M.js +243 -0
  15. package/dist/DmrPlot-QROLI66S.js +362 -0
  16. package/dist/DmrPlot-QROLI66S.js.map +7 -0
  17. package/dist/GB-FEBSFX5U.js +1428 -0
  18. package/dist/GB-FEBSFX5U.js.map +7 -0
  19. package/dist/GSEA-KOXOVC5V.js +875 -0
  20. package/dist/GSEA-KOXOVC5V.js.map +7 -0
  21. package/dist/GeneExpInput-DYBK54HC.js +42 -0
  22. package/dist/Geomap-QRD2WZVL.js +84 -0
  23. package/dist/HicApp-VKET4QHD.js +2245 -0
  24. package/dist/IDCViewer-RLLTXGD7.js +10812 -0
  25. package/dist/NumBinaryEditor-GYHOYPQL.js +279 -0
  26. package/dist/NumBinaryEditor.unit.spec-E2HKBWOO.js +312 -0
  27. package/dist/NumContEditor-3V76ZSEY.js +105 -0
  28. package/dist/NumContEditor.unit.spec-RTT5Q5E5.js +164 -0
  29. package/dist/NumCustomBinEditor-O5DMPY7H.js +33 -0
  30. package/dist/NumCustomBinEditor.unit.spec-5LZBP2JL.js +397 -0
  31. package/dist/NumDiscreteEditor-DFOJ7AIH.js +170 -0
  32. package/dist/NumDiscreteEditor.unit.spec-PPJGEBFX.js +233 -0
  33. package/dist/NumRegularBinEditor-O6RDO32C.js +33 -0
  34. package/dist/NumRegularBinEditor.unit.spec-GOB3BF25.js +278 -0
  35. package/dist/NumSplineEditor-PUXJF2RW.js +210 -0
  36. package/dist/NumSplineEditor.unit.spec-4VOAAMOU.js +224 -0
  37. package/dist/NumericDensity-E6MH2THZ.js +33 -0
  38. package/dist/NumericDensity.unit.spec-IRPFBQUS.js +418 -0
  39. package/dist/NumericHandler-42RR54X3.js +34 -0
  40. package/dist/NumericHandler.unit.spec-YYOO7XVT.js +214 -0
  41. package/dist/ProteomeInput-4N2G6IFX.js +388 -0
  42. package/dist/Regression-LIWUWAGQ.js +1416 -0
  43. package/dist/Regression-LIWUWAGQ.js.map +7 -0
  44. package/dist/RunChart2-VAX5JGZY.js +749 -0
  45. package/dist/SC-UHBZ3HRO.js +1183 -0
  46. package/dist/SC-UHBZ3HRO.js.map +7 -0
  47. package/dist/Violin-V23VZR6B.js +1081 -0
  48. package/dist/Violin-V23VZR6B.js.map +7 -0
  49. package/dist/Volcano-64S4AW66.js +2443 -0
  50. package/dist/Volcano-64S4AW66.js.map +7 -0
  51. package/dist/Wsi-FOJCKDCP.js +629 -0
  52. package/dist/adSandbox-CLMUYNC3.js +33 -0
  53. package/dist/animatedBubbleChart-GMLNYTQC.js +547 -0
  54. package/dist/app-2SFDRDN2.js +32 -0
  55. package/dist/app-QOZ36UR4.js +42 -0
  56. package/dist/app.js +14 -14
  57. package/dist/bam-LLAK7FVG.js +876 -0
  58. package/dist/barchart-SEC6VKQ2.js +42 -0
  59. package/dist/barchart2-D4FXZCTU.js +309 -0
  60. package/dist/block-XGK6TEGH.js +6250 -0
  61. package/dist/block-XGK6TEGH.js.map +7 -0
  62. package/dist/block.init-UMRCAKCF.js +33 -0
  63. package/dist/block.mds.expressionrank-LFPJ52SX.js +354 -0
  64. package/dist/block.mds.geneboxplot-2QIEN6AH.js +823 -0
  65. package/dist/block.mds.junction-Z4HUFSG2.js +1539 -0
  66. package/dist/block.mds.svcnv-3GXGY6ET.js +6796 -0
  67. package/dist/block.svg-7RCJLMAP.js +159 -0
  68. package/dist/block.tk.aicheck-5N6EGZ6F.js +278 -0
  69. package/dist/block.tk.ase-V3AJRYT6.js +360 -0
  70. package/dist/block.tk.bam-W6QOVVEU.js +1901 -0
  71. package/dist/block.tk.bedgraphdot-FKTPJZTH.js +379 -0
  72. package/dist/block.tk.bigwig.ui-Y3M2TDM2.js +206 -0
  73. package/dist/block.tk.hicstraw-3SWYTMFQ.js +818 -0
  74. package/dist/block.tk.junction-OXB22PDS.js +2358 -0
  75. package/dist/block.tk.junction.textmatrixui-PWBLRGCO.js +194 -0
  76. package/dist/block.tk.ld-NTRJL5GA.js +94 -0
  77. package/dist/block.tk.menu-JIHSGGIO.js +1024 -0
  78. package/dist/block.tk.pgv-4Q6CY6QN.js +938 -0
  79. package/dist/brainImaging-MBI4XTTU.js +555 -0
  80. package/dist/brainRegions-YVTAESRP.js +217 -0
  81. package/dist/bubbleHeatmap-ZKTA3AIG.js +378 -0
  82. package/dist/cellTypeBubbleHeatmap-GJZNXDG4.js +278 -0
  83. package/dist/chunk-2PDBU42F.js +4375 -0
  84. package/dist/chunk-2RMSV4BS.js +6360 -0
  85. package/dist/chunk-33BE7AYS.js +299 -0
  86. package/dist/chunk-3FEP6B5T.js +119 -0
  87. package/dist/chunk-3XBG5HIV.js +424 -0
  88. package/dist/chunk-3XBG5HIV.js.map +7 -0
  89. package/dist/chunk-4G73CMUL.js +38 -0
  90. package/dist/chunk-5FRETII3.js +281 -0
  91. package/dist/chunk-5LYVIIYR.js +170 -0
  92. package/dist/chunk-6FG6JFZP.js +339 -0
  93. package/dist/chunk-6G45AUSV.js +237 -0
  94. package/dist/chunk-6G45AUSV.js.map +7 -0
  95. package/dist/chunk-6LDKSKYQ.js +70 -0
  96. package/dist/chunk-7FFTAYT4.js +272 -0
  97. package/dist/chunk-7GDRMBNO.js +339 -0
  98. package/dist/chunk-A2UUXYH6.js +1986 -0
  99. package/dist/chunk-AFQKYV4D.js +2853 -0
  100. package/dist/chunk-ANACCKCQ.js +276 -0
  101. package/dist/chunk-AR3HXZIW.js +562 -0
  102. package/dist/chunk-AVCEHJG7.js +446 -0
  103. package/dist/chunk-AVCIZWH5.js +692 -0
  104. package/dist/chunk-B6UXFX73.js +178 -0
  105. package/dist/chunk-BCCFJYPE.js +54 -0
  106. package/dist/chunk-BG3SGGVB.js +134 -0
  107. package/dist/chunk-C3HEDQPT.js +24921 -0
  108. package/dist/chunk-C3HEDQPT.js.map +7 -0
  109. package/dist/chunk-CFZ2ZW3E.js +382 -0
  110. package/dist/chunk-CKOU3P27.js +26 -0
  111. package/dist/chunk-CN6KJORZ.js +397 -0
  112. package/dist/chunk-CYWEYHJQ.js +203 -0
  113. package/dist/chunk-D5ETVOOE.js +158 -0
  114. package/dist/chunk-DANF4CC5.js +102 -0
  115. package/dist/chunk-DNCFJTPI.js +1339 -0
  116. package/dist/chunk-FNW6BKOA.js +480 -0
  117. package/dist/chunk-FR5USNAT.js +54 -0
  118. package/dist/chunk-FSLOUTTK.js +37 -0
  119. package/dist/chunk-FSLOUTTK.js.map +7 -0
  120. package/dist/chunk-GYE6FU7P.js +626 -0
  121. package/dist/chunk-IEIGHCZS.js +1278 -0
  122. package/dist/chunk-J5GQGWYX.js +1731 -0
  123. package/dist/chunk-JMDUO47F.js +5071 -0
  124. package/dist/chunk-JTANDSTD.js +54 -0
  125. package/dist/chunk-JTQPPUDG.js +379 -0
  126. package/dist/chunk-K32DV4QI.js +302 -0
  127. package/dist/chunk-K77W4SSI.js +98 -0
  128. package/dist/chunk-KEHVNCFK.js +102 -0
  129. package/dist/chunk-MMKSXXU2.js +55 -0
  130. package/dist/chunk-NDOKW2HJ.js +31 -0
  131. package/dist/chunk-NGMM2MNC.js +518 -0
  132. package/dist/chunk-OASGOTRM.js +80 -0
  133. package/dist/chunk-OASGOTRM.js.map +7 -0
  134. package/dist/chunk-OBDIJ4QS.js +2146 -0
  135. package/dist/chunk-OBDIJ4QS.js.map +7 -0
  136. package/dist/chunk-OEBGQKQR.js +2676 -0
  137. package/dist/chunk-OI5KBFBE.js +468 -0
  138. package/dist/chunk-OWEBE64A.js +243 -0
  139. package/dist/chunk-P7X4LDW4.js +783 -0
  140. package/dist/chunk-Q4HTEL2O.js +56 -0
  141. package/dist/chunk-QD75Q5LM.js +59 -0
  142. package/dist/chunk-QGH5BM2D.js +141 -0
  143. package/dist/chunk-QSOFGLWZ.js +240 -0
  144. package/dist/chunk-QXDGIQYA.js +217 -0
  145. package/dist/chunk-R2QE6ROO.js +176 -0
  146. package/dist/chunk-RMHUDMZ7.js +103 -0
  147. package/dist/chunk-SB36AUG7.js +1614 -0
  148. package/dist/chunk-SB36AUG7.js.map +7 -0
  149. package/dist/chunk-SXB4IZQ7.js +123 -0
  150. package/dist/chunk-T6Q76PDN.js +182 -0
  151. package/dist/chunk-TYR355RM.js +263 -0
  152. package/dist/chunk-ULZPHJYD.js +2784 -0
  153. package/dist/chunk-V3SOBDIT.js +255 -0
  154. package/dist/chunk-V3SOBDIT.js.map +7 -0
  155. package/dist/chunk-VFUSBU43.js +14 -0
  156. package/dist/chunk-VOF6NWTS.js +274 -0
  157. package/dist/chunk-WGDJX7WZ.js +2327 -0
  158. package/dist/chunk-WIQVSCD5.js +294 -0
  159. package/dist/chunk-WXXRVJSP.js +56 -0
  160. package/dist/chunk-X4MV2M5F.js +129 -0
  161. package/dist/chunk-XVVVNCXS.js +217 -0
  162. package/dist/chunk-XVVVNCXS.js.map +7 -0
  163. package/dist/chunk-YHP7MYB7.js +49 -0
  164. package/dist/chunk-YHWQWVWX.js +550 -0
  165. package/dist/chunk-YKZOQTT4.js +1233 -0
  166. package/dist/chunk-Z5HU276I.js +34 -0
  167. package/dist/chunk-Z6MCBFDM.js +194 -0
  168. package/dist/cohort-GVAJTICQ.js +70 -0
  169. package/dist/condition-EGPNMM47.js +327 -0
  170. package/dist/controls-HBROSXHF.js +34 -0
  171. package/dist/controls.config-FWKV66TU.js +34 -0
  172. package/dist/correlation-CEHE66EC.js +95 -0
  173. package/dist/customdata.inputui-LFT3N5FD.js +284 -0
  174. package/dist/dataDownload-ZPAIAAE4.js +329 -0
  175. package/dist/databrowser.ui-W5JGFBE6.js +425 -0
  176. package/dist/dictionary-RBE2CIZI.js +113 -0
  177. package/dist/dnaMethylation-CX22TSRO.js +33 -0
  178. package/dist/dnaMethylation.integration.spec-KEE6ZZRT.js +198 -0
  179. package/dist/dofetch-6NAGX5EG.js +48 -0
  180. package/dist/e2pca-XDGPTEXL.js +344 -0
  181. package/dist/ep-IUIDMIGW.js +1249 -0
  182. package/dist/expclust.gdc.spec-BMN2PTJX.js +302 -0
  183. package/dist/facet-DTJKZOBA.js +519 -0
  184. package/dist/gb-MV7MUJWO.js +81 -0
  185. package/dist/geneExpClustering-NFH5FS3S.js +244 -0
  186. package/dist/geneExpression-XVOLNYVN.js +310 -0
  187. package/dist/geneExpression-ZP2VWHED.js +33 -0
  188. package/dist/geneExpression.unit.spec-2NSK4ARK.js +128 -0
  189. package/dist/geneExpression.unit.spec-2NSK4ARK.js.map +7 -0
  190. package/dist/geneORA-HQ7FLMEJ.js +273 -0
  191. package/dist/geneRanking-MIABUKTN.js +548 -0
  192. package/dist/geneVariant-H52UUK6Z.js +289 -0
  193. package/dist/geneVariant-H52UUK6Z.js.map +7 -0
  194. package/dist/geneVariant-HDFWLALZ.js +36 -0
  195. package/dist/geneVariant.integration.spec-O36JK4B7.js +503 -0
  196. package/dist/geneVariant.integration.spec-O36JK4B7.js.map +7 -0
  197. package/dist/genefusion.ui-HSDZQHJA.js +303 -0
  198. package/dist/geneset-WKV3X2EJ.js +203 -0
  199. package/dist/genomeBrowser.spec-UTAHAU76.js +276 -0
  200. package/dist/grin2-M2JDZVYU.js +70 -0
  201. package/dist/grin2-N2QM3XTG.js +949 -0
  202. package/dist/grin2-N2QM3XTG.js.map +7 -0
  203. package/dist/hierCluster-LZI6OTRS.js +59 -0
  204. package/dist/hierCluster-VVXPOTQU.js +55 -0
  205. package/dist/hierCluster.config-NCYH3Y7Z.js +36 -0
  206. package/dist/hierCluster.integration.spec-ZDOOCTV3.js +483 -0
  207. package/dist/hierCluster.interactivity-4HP3JCON.js +49 -0
  208. package/dist/hierCluster.renderers-3F5GMEXA.js +19 -0
  209. package/dist/imagePlot-OA4WTMLU.js +156 -0
  210. package/dist/importPlot-OSTC2GPO.js +8 -0
  211. package/dist/isoformExpression-LZ5RTUS5.js +35 -0
  212. package/dist/isoformExpression.unit.spec-L6YDBKYM.js +237 -0
  213. package/dist/junction-UR6COY3A.js +36 -0
  214. package/dist/junction.customTerm-TMV43R7Z.js +16 -0
  215. package/dist/junction.unit.spec-NVBJTGA4.js +182 -0
  216. package/dist/launch.adhoc-AZG6QJG7.js +37 -0
  217. package/dist/leftlabel.sample-LYZG25RT.js +258 -0
  218. package/dist/lollipop-FJXVP5QM.js +166 -0
  219. package/dist/maf-OXJIJD6D.js +455 -0
  220. package/dist/maftimeline-75N6ZXEM.js +587 -0
  221. package/dist/matrix-QFKGEW5A.js +54 -0
  222. package/dist/matrix-XT7LUV5K.js +59 -0
  223. package/dist/matrix.cells-NB7LKKXV.js +26 -0
  224. package/dist/matrix.config-X6HS4UGD.js +37 -0
  225. package/dist/matrix.data-VLFF34SS.js +23 -0
  226. package/dist/matrix.groups-F62TSKIG.js +26 -0
  227. package/dist/matrix.integration.spec-7QBYWHW6.js +3160 -0
  228. package/dist/matrix.integration.spec-7QBYWHW6.js.map +7 -0
  229. package/dist/matrix.interactivity-2FBXB52E.js +37 -0
  230. package/dist/matrix.layout-6TPVKLSX.js +39 -0
  231. package/dist/matrix.legend-L4ULBMGX.js +20 -0
  232. package/dist/matrix.renderers-DK6YRLO2.js +34 -0
  233. package/dist/matrix.serieses-DCRJLJ3H.js +19 -0
  234. package/dist/matrix.sort-XSGPH44J.js +26 -0
  235. package/dist/matrix.sort.unit.spec-JF75F4I4.js +468 -0
  236. package/dist/matrix.sorterUi-WL5I6S3K.js +16 -0
  237. package/dist/matrix.sorterUi.unit.spec-66JMV5BK.js +338 -0
  238. package/dist/matrix.unit.spec-36AR4I43.js +150 -0
  239. package/dist/mavb-ZH4RO77H.js +727 -0
  240. package/dist/mds.fimo-MVP2G5PS.js +513 -0
  241. package/dist/mds.samplescatterplot-GYJ3OI4N.js +1545 -0
  242. package/dist/mds.survivalplot-Q6MYQGTB.js +477 -0
  243. package/dist/multivalue-BGFMPH4X.js +83 -0
  244. package/dist/numericDictTermCluster-FNNVLIWB.js +63 -0
  245. package/dist/oncomatrix-LIIALWWN.js +290 -0
  246. package/dist/oncomatrix.spec-NEMLM2ZN.js +443 -0
  247. package/dist/plot.2dvaf-HJO3SKNK.js +372 -0
  248. package/dist/plot.app-WSLFOFSR.js +36 -0
  249. package/dist/plot.barplot-SPI5JA37.js +97 -0
  250. package/dist/plot.boxplot-4W3XEY5I.js +146 -0
  251. package/dist/plot.brainImaging-KEOUTYIB.js +51 -0
  252. package/dist/plot.disco-7IDMKNAQ.js +99 -0
  253. package/dist/plot.ssgq-IOKUGDC4.js +134 -0
  254. package/dist/plot.vaf2cov-SFSZ6M43.js +253 -0
  255. package/dist/polar2-PLPE5TX5.js +232 -0
  256. package/dist/profileForms-ZDHG67GM.js +941 -0
  257. package/dist/profilePlot-UUZA2YG6.js +49 -0
  258. package/dist/proteinView-GHS3XARL.js +1357 -0
  259. package/dist/proteomeCohortCompare-TQ3BGIPS.js +912 -0
  260. package/dist/pseudbulk.unit.spec-HFESRN7A.js +86 -0
  261. package/dist/pseudobulk-ODXYIUD5.js +35 -0
  262. package/dist/qualitative-WOSYAIGQ.js +38 -0
  263. package/dist/radar2-2KXBS3Y3.js +327 -0
  264. package/dist/radarFacility2-JCOKJQQF.js +335 -0
  265. package/dist/rememberedGvQ.unit.spec-DYRO2LO5.js +211 -0
  266. package/dist/render-IJ6GE3NE.js +33 -0
  267. package/dist/report-WLLFUA7L.js +217 -0
  268. package/dist/sampleView-LPKSYUNF.js +43 -0
  269. package/dist/samplelst-MNI2MGMT.js +106 -0
  270. package/dist/samplematrix-KEKJP2B4.js +2193 -0
  271. package/dist/sc-ZYKFRJU4.js +81 -0
  272. package/dist/scatter-BAEZOFWA.js +88 -0
  273. package/dist/scatter-IGFBIZ3B.js +925 -0
  274. package/dist/selectGenomeWithTklst-HBHRXEDY.js +129 -0
  275. package/dist/singleCellCellType-PMFDV24B.js +33 -0
  276. package/dist/singleCellCellType.unit.spec-ZLYDUDIY.js +154 -0
  277. package/dist/singleCellGeneExpression-SUYO3HR3.js +33 -0
  278. package/dist/singleCellGeneExpression.unit.spec-3N3HRXFN.js +148 -0
  279. package/dist/singleCellNumericValue-BV7C6Y34.js +33 -0
  280. package/dist/singleCellNumericValue.unit.spec-7VJOMYQ6.js +416 -0
  281. package/dist/singleCellPlot-BG7UJOHA.js +48 -0
  282. package/dist/singlecell-BANNFGBS.js +81 -0
  283. package/dist/singlecell-ZUTL5ZWE.js +1566 -0
  284. package/dist/snp-BHG4NVK4.js +33 -0
  285. package/dist/snp.unit.spec-Q3AZHQRC.js +171 -0
  286. package/dist/snplocus-HTJL63M3.js +203 -0
  287. package/dist/spliceevent.a53ss.diagram-UKRIP7EP.js +146 -0
  288. package/dist/spliceevent.exonskip.diagram-CU777CXQ.js +278 -0
  289. package/dist/spliceevent.noeventdiagram-LGLXCF25.js +455 -0
  290. package/dist/ssGSEA-BIEEKAKX.js +33 -0
  291. package/dist/ssGSEA.unit.spec-YD4UDIRH.js +83 -0
  292. package/dist/stattable-LFR3RSD6.js +117 -0
  293. package/dist/studyCatalog-RINIZ277.js +414 -0
  294. package/dist/summarizeCnvGeneexp-ZQFNPR65.js +158 -0
  295. package/dist/summarizeGeneexpSurvival-GIS7XMMH.js +105 -0
  296. package/dist/summarizeMutationCnv-FWF7YIGR.js +159 -0
  297. package/dist/summarizeMutationDiagnosis-V5L2OKTK.js +35 -0
  298. package/dist/summarizeMutationSurvival-LAUUF6XN.js +99 -0
  299. package/dist/summary-OMU3ACNE.js +44 -0
  300. package/dist/summary.integration.spec-6JZAT73L.js +409 -0
  301. package/dist/summaryInput-QIKL3HDD.js +242 -0
  302. package/dist/sunburst-32IW2R57.js +278 -0
  303. package/dist/survival-BMOPVAN2.js +53 -0
  304. package/dist/survival-H5AWMQ36.js +1248 -0
  305. package/dist/survival.integration.spec-66UOWSZG.js +613 -0
  306. package/dist/svgraph-B75FS3BB.js +1382 -0
  307. package/dist/svmr-IUEUOHVO.js +3837 -0
  308. package/dist/table-YAAH7WR6.js +197 -0
  309. package/dist/termCollection-7F5ZG2DB.js +252 -0
  310. package/dist/termCollection-KNFUELYY.js +33 -0
  311. package/dist/termCollection.unit.spec-S6M6QC4C.js +299 -0
  312. package/dist/termCollectionFractionSelection-X22VMJWY.js +42 -0
  313. package/dist/termCollectionFractionSelection.unit.spec-ELU6SD7P.js +188 -0
  314. package/dist/tk-TT666UVE.js +41 -0
  315. package/dist/tk-UOPNJ323.js +1121 -0
  316. package/dist/tp.ui-HGAHRKO5.js +1454 -0
  317. package/dist/tvs.dt-H7YYR4EB.js +34 -0
  318. package/dist/tvs.dtcnv.categorical-IPJTKGMF.js +35 -0
  319. package/dist/tvs.dtcnv.continuous-XY5XZ4GH.js +67 -0
  320. package/dist/tvs.dtfusion-VFCBMXRM.js +35 -0
  321. package/dist/tvs.dtitd-RZVW6FTR.js +35 -0
  322. package/dist/tvs.dtsnvindel-IDPJWSGC.js +35 -0
  323. package/dist/tvs.dtsv-QERP756F.js +35 -0
  324. package/dist/tvs.samplelst-6KNDHBIU.js +98 -0
  325. package/dist/tvs.termCollection-GWPJK3NE.js +124 -0
  326. package/dist/vocabulary-C5FIZMPQ.js +36 -0
  327. package/dist/wsi.direct-2RBCBXDA.js +8343 -0
  328. package/package.json +3 -3
  329. package/dist/2dmaf-PN5YS362.js +0 -1367
  330. package/dist/AggMatrixInput-NJHU4FU2.js +0 -406
  331. package/dist/AggregateMatrix-IBWOJWOC.js +0 -41
  332. package/dist/AppHeader-XV6S7GG5.js +0 -830
  333. package/dist/BoxPlot-ZIVA55SK.js +0 -1211
  334. package/dist/CorrelationVolcano-33I4FC44.js +0 -617
  335. package/dist/Cuminc-WKY35UGV.js +0 -1219
  336. package/dist/DE-E256DHID.js +0 -89
  337. package/dist/DEinput-YU3W72K7.js +0 -499
  338. package/dist/DM-W7PXTIKY.js +0 -90
  339. package/dist/DifferentialAnalysis-SHMQHWJL.js +0 -236
  340. package/dist/DifferentialAnalysis-SHMQHWJL.js.map +0 -7
  341. package/dist/Disco-OZY5GW2Z.js +0 -3389
  342. package/dist/Disco.UI-NRALEYXK.js +0 -243
  343. package/dist/DmrPlot-QKUX5XUW.js +0 -637
  344. package/dist/DmrPlot-QKUX5XUW.js.map +0 -7
  345. package/dist/GB-ZYH7PGHT.js +0 -1391
  346. package/dist/GB-ZYH7PGHT.js.map +0 -7
  347. package/dist/GSEA-VQTD4MLY.js +0 -851
  348. package/dist/GSEA-VQTD4MLY.js.map +0 -7
  349. package/dist/GeneExpInput-XEFUTLFU.js +0 -42
  350. package/dist/Geomap-GEK7UEDU.js +0 -84
  351. package/dist/HicApp-ZY7UHV5H.js +0 -2245
  352. package/dist/IDCViewer-YNKG4V46.js +0 -10812
  353. package/dist/NumBinaryEditor-NEL727DX.js +0 -279
  354. package/dist/NumBinaryEditor.unit.spec-GCGZMJYF.js +0 -312
  355. package/dist/NumContEditor-IM6RRDGU.js +0 -105
  356. package/dist/NumContEditor.unit.spec-B5AJXANS.js +0 -164
  357. package/dist/NumCustomBinEditor-EZT5DRKP.js +0 -33
  358. package/dist/NumCustomBinEditor.unit.spec-KLUDS6TH.js +0 -397
  359. package/dist/NumDiscreteEditor-2M6Q5AAZ.js +0 -170
  360. package/dist/NumDiscreteEditor.unit.spec-2JYZYJUX.js +0 -233
  361. package/dist/NumRegularBinEditor-AQDHA2PU.js +0 -33
  362. package/dist/NumRegularBinEditor.unit.spec-62BYFNYG.js +0 -278
  363. package/dist/NumSplineEditor-6Y5TZSTO.js +0 -210
  364. package/dist/NumSplineEditor.unit.spec-S65AV5EK.js +0 -224
  365. package/dist/NumericDensity-5ES4SDWZ.js +0 -33
  366. package/dist/NumericDensity.unit.spec-J6KZSE2P.js +0 -418
  367. package/dist/NumericHandler-ZTLDPP2F.js +0 -34
  368. package/dist/NumericHandler.unit.spec-BZFBVHGU.js +0 -214
  369. package/dist/ProteomeInput-IKEXPCGV.js +0 -388
  370. package/dist/Regression-6F6YP3AX.js +0 -1416
  371. package/dist/Regression-6F6YP3AX.js.map +0 -7
  372. package/dist/RunChart2-CVRPXQH5.js +0 -749
  373. package/dist/SC-FPXVXBXF.js +0 -1175
  374. package/dist/SC-FPXVXBXF.js.map +0 -7
  375. package/dist/Violin-BAS6DQHL.js +0 -1081
  376. package/dist/Violin-BAS6DQHL.js.map +0 -7
  377. package/dist/Volcano-FCCWUMX7.js +0 -1649
  378. package/dist/Volcano-FCCWUMX7.js.map +0 -7
  379. package/dist/Wsi-3YTFABWG.js +0 -629
  380. package/dist/adSandbox-QYIG6637.js +0 -33
  381. package/dist/animatedBubbleChart-X53PR73H.js +0 -547
  382. package/dist/app-HJLTRZPI.js +0 -32
  383. package/dist/app-MGY6A4DM.js +0 -42
  384. package/dist/bam-VRQHRCP5.js +0 -876
  385. package/dist/barchart-TWMOUZFL.js +0 -42
  386. package/dist/barchart2-CV7RMMRG.js +0 -309
  387. package/dist/block-L53P4UGQ.js +0 -6249
  388. package/dist/block-L53P4UGQ.js.map +0 -7
  389. package/dist/block.init-XYOJTXKP.js +0 -33
  390. package/dist/block.mds.expressionrank-77FSBDHA.js +0 -354
  391. package/dist/block.mds.geneboxplot-4TSYV4WS.js +0 -823
  392. package/dist/block.mds.junction-P4MYDET6.js +0 -1539
  393. package/dist/block.mds.svcnv-CYOFAS2T.js +0 -6796
  394. package/dist/block.svg-IT3ELCF4.js +0 -159
  395. package/dist/block.tk.aicheck-GULHJLV5.js +0 -278
  396. package/dist/block.tk.ase-RW5YL6HN.js +0 -360
  397. package/dist/block.tk.bam-MPGQW6KB.js +0 -1901
  398. package/dist/block.tk.bedgraphdot-EYRY374P.js +0 -379
  399. package/dist/block.tk.bigwig.ui-BKSXCDNM.js +0 -206
  400. package/dist/block.tk.hicstraw-76PV6NM3.js +0 -818
  401. package/dist/block.tk.junction-Z52QHQJQ.js +0 -2358
  402. package/dist/block.tk.junction.textmatrixui-K32OOTZC.js +0 -194
  403. package/dist/block.tk.ld-DDGLRHPO.js +0 -94
  404. package/dist/block.tk.menu-MO6TESKI.js +0 -1024
  405. package/dist/block.tk.pgv-AKLKKSEP.js +0 -938
  406. package/dist/brainImaging-KSTJQJAB.js +0 -555
  407. package/dist/brainRegions-WCRMMSK4.js +0 -217
  408. package/dist/bubbleHeatmap-4YOQ3BAB.js +0 -378
  409. package/dist/cellTypeBubbleHeatmap-O6YZ2RW4.js +0 -278
  410. package/dist/chunk-3GUVLDUS.js +0 -299
  411. package/dist/chunk-3PQDD5HM.js +0 -446
  412. package/dist/chunk-3WYUHDDP.js +0 -1986
  413. package/dist/chunk-4C7MA5Q3.js +0 -158
  414. package/dist/chunk-4EZLVENZ.js +0 -1612
  415. package/dist/chunk-4EZLVENZ.js.map +0 -7
  416. package/dist/chunk-4PB5ZEOB.js +0 -102
  417. package/dist/chunk-5IMFPVGT.js +0 -119
  418. package/dist/chunk-6DPELKO5.js +0 -518
  419. package/dist/chunk-6HGTVMZM.js +0 -54
  420. package/dist/chunk-72P6O537.js +0 -1731
  421. package/dist/chunk-74C6G6JD.js +0 -397
  422. package/dist/chunk-A7TXS6JR.js +0 -276
  423. package/dist/chunk-AAJXHERO.js +0 -123
  424. package/dist/chunk-AVS4IXEA.js +0 -692
  425. package/dist/chunk-BFXZBZEV.js +0 -176
  426. package/dist/chunk-BGVGN73F.js +0 -480
  427. package/dist/chunk-BL7EYUZC.js +0 -6360
  428. package/dist/chunk-BPGZUNLL.js +0 -274
  429. package/dist/chunk-CPIPN5F6.js +0 -141
  430. package/dist/chunk-D5MSWPAZ.js +0 -217
  431. package/dist/chunk-DFT2PAIU.js +0 -243
  432. package/dist/chunk-DMWOK4DS.js +0 -178
  433. package/dist/chunk-E7NVJ44Z.js +0 -263
  434. package/dist/chunk-EMMGUSJB.js +0 -54
  435. package/dist/chunk-G3CCQOLH.js +0 -240
  436. package/dist/chunk-GGQVDHYF.js +0 -379
  437. package/dist/chunk-GMRIEUBW.js +0 -408
  438. package/dist/chunk-GMRIEUBW.js.map +0 -7
  439. package/dist/chunk-GPZYAJQH.js +0 -2676
  440. package/dist/chunk-GS6ZMPKP.js +0 -272
  441. package/dist/chunk-GUXKLMLM.js +0 -102
  442. package/dist/chunk-HELEV3LT.js +0 -2853
  443. package/dist/chunk-HKKTNIMX.js +0 -339
  444. package/dist/chunk-HKSRIEWJ.js +0 -26
  445. package/dist/chunk-IELQ3HMN.js +0 -70
  446. package/dist/chunk-IISNWG4X.js +0 -103
  447. package/dist/chunk-J7KB2MH3.js +0 -34
  448. package/dist/chunk-JEJV7V7M.js +0 -2327
  449. package/dist/chunk-JIZ3B32T.js +0 -626
  450. package/dist/chunk-KAY2ODXX.js +0 -38
  451. package/dist/chunk-KJM6PLXM.js +0 -5071
  452. package/dist/chunk-KTKZSYIH.js +0 -24
  453. package/dist/chunk-KTKZSYIH.js.map +0 -7
  454. package/dist/chunk-KZHF3MQX.js +0 -1278
  455. package/dist/chunk-MC674TS2.js +0 -194
  456. package/dist/chunk-MLKQZ3RL.js +0 -1339
  457. package/dist/chunk-MSSPT5YM.js +0 -550
  458. package/dist/chunk-N6IWVSFP.js +0 -4375
  459. package/dist/chunk-NBGVEZNX.js +0 -56
  460. package/dist/chunk-OBBR4UYN.js +0 -54
  461. package/dist/chunk-PQA3C2NY.js +0 -294
  462. package/dist/chunk-QJ2VBXFB.js +0 -134
  463. package/dist/chunk-QJ3HYZH3.js +0 -24772
  464. package/dist/chunk-QJ3HYZH3.js.map +0 -7
  465. package/dist/chunk-QP7EJXSU.js +0 -55
  466. package/dist/chunk-QUHXX7JE.js +0 -56
  467. package/dist/chunk-REPQKF5L.js +0 -182
  468. package/dist/chunk-SHXJW27D.js +0 -2784
  469. package/dist/chunk-SUNDNTVY.js +0 -302
  470. package/dist/chunk-TSI4W6XO.js +0 -98
  471. package/dist/chunk-TXIQ5PHR.js +0 -468
  472. package/dist/chunk-U45R6QNT.js +0 -562
  473. package/dist/chunk-UMZJQWWK.js +0 -1233
  474. package/dist/chunk-VMRO6DMC.js +0 -2140
  475. package/dist/chunk-VMRO6DMC.js.map +0 -7
  476. package/dist/chunk-VO7Q4WMM.js +0 -55
  477. package/dist/chunk-VO7Q4WMM.js.map +0 -7
  478. package/dist/chunk-VWGRKOVJ.js +0 -170
  479. package/dist/chunk-WCTKHF5T.js +0 -197
  480. package/dist/chunk-WCTKHF5T.js.map +0 -7
  481. package/dist/chunk-WOMERKMR.js +0 -31
  482. package/dist/chunk-WXX2YD4Q.js +0 -59
  483. package/dist/chunk-X44AR557.js +0 -382
  484. package/dist/chunk-XEU5HXOY.js +0 -783
  485. package/dist/chunk-XGYQZHNX.js +0 -281
  486. package/dist/chunk-XOND7UIK.js +0 -49
  487. package/dist/chunk-XRMUUWLS.js +0 -339
  488. package/dist/chunk-XTOGCXPD.js +0 -129
  489. package/dist/chunk-Y5BBFDC3.js +0 -14
  490. package/dist/chunk-Z2FSHODI.js +0 -203
  491. package/dist/cohort-JWIQOO7U.js +0 -70
  492. package/dist/condition-ZUAQYF5C.js +0 -327
  493. package/dist/controls-ZPQ6SXD2.js +0 -34
  494. package/dist/controls.config-NELL5HY5.js +0 -34
  495. package/dist/correlation-2X76UI3K.js +0 -95
  496. package/dist/customdata.inputui-V6QIGFRP.js +0 -284
  497. package/dist/dataDownload-NSDY4MSL.js +0 -329
  498. package/dist/databrowser.ui-DDLFQB6K.js +0 -425
  499. package/dist/dictionary-WSDD6TFI.js +0 -113
  500. package/dist/dnaMethylation-3IM4OACZ.js +0 -33
  501. package/dist/dnaMethylation.integration.spec-5CSJA67S.js +0 -198
  502. package/dist/dofetch-GZ7POIBV.js +0 -48
  503. package/dist/e2pca-AX7U2DOI.js +0 -344
  504. package/dist/ep-UKACHFJU.js +0 -1249
  505. package/dist/expclust.gdc.spec-46HDKH2Q.js +0 -302
  506. package/dist/facet-3EONZDDE.js +0 -519
  507. package/dist/gb-W7GX5NWS.js +0 -81
  508. package/dist/geneExpClustering-PJA6Y5GW.js +0 -244
  509. package/dist/geneExpression-EMLVPVNK.js +0 -310
  510. package/dist/geneExpression-JMGYBT53.js +0 -33
  511. package/dist/geneExpression.unit.spec-DDZVZJVC.js +0 -128
  512. package/dist/geneExpression.unit.spec-DDZVZJVC.js.map +0 -7
  513. package/dist/geneORA-CIAFQQWB.js +0 -273
  514. package/dist/geneRanking-JRAU6FMJ.js +0 -548
  515. package/dist/geneVariant-3DZTWQFG.js +0 -36
  516. package/dist/geneVariant-YWURIZ72.js +0 -286
  517. package/dist/geneVariant-YWURIZ72.js.map +0 -7
  518. package/dist/geneVariant.integration.spec-V3KECZMM.js +0 -489
  519. package/dist/geneVariant.integration.spec-V3KECZMM.js.map +0 -7
  520. package/dist/genefusion.ui-AO3TUDTL.js +0 -303
  521. package/dist/geneset-RCIP2GZH.js +0 -203
  522. package/dist/genomeBrowser.spec-7PZCNBL3.js +0 -276
  523. package/dist/grin2-EUBCNH4Q.js +0 -70
  524. package/dist/grin2-YYBB5XJK.js +0 -1137
  525. package/dist/grin2-YYBB5XJK.js.map +0 -7
  526. package/dist/hierCluster-AV5NO2GW.js +0 -59
  527. package/dist/hierCluster-W2MVN34V.js +0 -55
  528. package/dist/hierCluster.config-4MBWG6RZ.js +0 -36
  529. package/dist/hierCluster.integration.spec-JUIBIUKH.js +0 -483
  530. package/dist/hierCluster.interactivity-6PJE64PF.js +0 -49
  531. package/dist/hierCluster.renderers-RWDQ5SHY.js +0 -19
  532. package/dist/imagePlot-XLDQNUJA.js +0 -156
  533. package/dist/importPlot-7FISAQKR.js +0 -8
  534. package/dist/isoformExpression-WOQAOVZS.js +0 -35
  535. package/dist/isoformExpression.unit.spec-BMEGJNCO.js +0 -237
  536. package/dist/junction-6NO36IPU.js +0 -36
  537. package/dist/junction.customTerm-N6JAOWZO.js +0 -16
  538. package/dist/junction.unit.spec-UKGSQHO4.js +0 -182
  539. package/dist/launch.adhoc-42PUNEA6.js +0 -37
  540. package/dist/leftlabel.sample-EXAUDPSB.js +0 -258
  541. package/dist/lollipop-4ASTA5HO.js +0 -166
  542. package/dist/maf-HPXANL3M.js +0 -455
  543. package/dist/maftimeline-2SXFX3HF.js +0 -587
  544. package/dist/matrix-DX4W5XMX.js +0 -59
  545. package/dist/matrix-S34ITAPJ.js +0 -54
  546. package/dist/matrix.cells-BLULUGSZ.js +0 -26
  547. package/dist/matrix.config-Z3LWYH74.js +0 -37
  548. package/dist/matrix.data-73HY7Y2V.js +0 -23
  549. package/dist/matrix.groups-NOUMYNFY.js +0 -26
  550. package/dist/matrix.integration.spec-VTXYJ46U.js +0 -3160
  551. package/dist/matrix.integration.spec-VTXYJ46U.js.map +0 -7
  552. package/dist/matrix.interactivity-YHDIO5A2.js +0 -37
  553. package/dist/matrix.layout-25HYKUF2.js +0 -39
  554. package/dist/matrix.legend-IMK7DH4V.js +0 -20
  555. package/dist/matrix.renderers-3RZRN6HO.js +0 -34
  556. package/dist/matrix.serieses-ZTVHQ7QA.js +0 -19
  557. package/dist/matrix.sort-EDXHT6NZ.js +0 -26
  558. package/dist/matrix.sort.unit.spec-LSNY7PHU.js +0 -468
  559. package/dist/matrix.sorterUi-3DRNHG5Z.js +0 -16
  560. package/dist/matrix.sorterUi.unit.spec-GNIIWGRJ.js +0 -338
  561. package/dist/matrix.unit.spec-7A6ZFRXI.js +0 -150
  562. package/dist/mavb-M5AXPLYX.js +0 -727
  563. package/dist/mds.fimo-QE5OFA22.js +0 -513
  564. package/dist/mds.samplescatterplot-664EOHX2.js +0 -1545
  565. package/dist/mds.survivalplot-H4TJD44D.js +0 -477
  566. package/dist/multivalue-JD3CNQJR.js +0 -83
  567. package/dist/numericDictTermCluster-XPKEYXD7.js +0 -63
  568. package/dist/oncomatrix-TX5PZQ76.js +0 -290
  569. package/dist/oncomatrix.spec-6X2WAHL7.js +0 -443
  570. package/dist/plot.2dvaf-5OHUFTMK.js +0 -372
  571. package/dist/plot.app-XIVVJHWG.js +0 -36
  572. package/dist/plot.barplot-PSODLAXD.js +0 -97
  573. package/dist/plot.boxplot-W3ASYFOG.js +0 -146
  574. package/dist/plot.brainImaging-JGDLKLR7.js +0 -51
  575. package/dist/plot.disco-TPMXTTZK.js +0 -99
  576. package/dist/plot.ssgq-KIZIOZIF.js +0 -134
  577. package/dist/plot.vaf2cov-MSMW72IY.js +0 -253
  578. package/dist/polar2-LA4MSRRN.js +0 -232
  579. package/dist/profileForms-BJRNB2ZF.js +0 -941
  580. package/dist/profilePlot-DDO53C4T.js +0 -49
  581. package/dist/proteinView-NFUR42XQ.js +0 -1357
  582. package/dist/proteomeCohortCompare-OZVF3X66.js +0 -912
  583. package/dist/pseudbulk.unit.spec-RY72JF7A.js +0 -86
  584. package/dist/pseudobulk-UVT5G2VL.js +0 -35
  585. package/dist/qualitative-X3VXNC7X.js +0 -38
  586. package/dist/radar2-RTVUJ3AN.js +0 -327
  587. package/dist/radarFacility2-ZGLZ5AKM.js +0 -335
  588. package/dist/rememberedGvQ.unit.spec-RLLLWU5M.js +0 -211
  589. package/dist/render-LR5BOYW6.js +0 -33
  590. package/dist/report-37W5OXUM.js +0 -217
  591. package/dist/sampleView-BDC2WPH7.js +0 -43
  592. package/dist/samplelst-V2EIVZC5.js +0 -106
  593. package/dist/samplematrix-XOSKILUL.js +0 -2193
  594. package/dist/sc-ZVZPWQY7.js +0 -81
  595. package/dist/scatter-2ZE5MCYH.js +0 -88
  596. package/dist/scatter-ZOWFPGIS.js +0 -925
  597. package/dist/selectGenomeWithTklst-EF7WYEAJ.js +0 -129
  598. package/dist/singleCellCellType-TKCGC3G3.js +0 -33
  599. package/dist/singleCellCellType.unit.spec-JZ6UHC5F.js +0 -154
  600. package/dist/singleCellGeneExpression-I2INGXGI.js +0 -33
  601. package/dist/singleCellGeneExpression.unit.spec-KL77FSHZ.js +0 -148
  602. package/dist/singleCellNumericValue-2X5NCEHL.js +0 -33
  603. package/dist/singleCellNumericValue.unit.spec-OUDBX5MY.js +0 -416
  604. package/dist/singleCellPlot-Q6INE54V.js +0 -48
  605. package/dist/singlecell-5N2P5ZAT.js +0 -81
  606. package/dist/singlecell-NPSWMNI3.js +0 -1566
  607. package/dist/snp-2WPJYPDE.js +0 -33
  608. package/dist/snp.unit.spec-PPWIIOX6.js +0 -171
  609. package/dist/snplocus-T3HZFZWA.js +0 -203
  610. package/dist/spliceevent.a53ss.diagram-APCF4LV5.js +0 -146
  611. package/dist/spliceevent.exonskip.diagram-TT5JGBSC.js +0 -278
  612. package/dist/spliceevent.noeventdiagram-CPXQSX3Z.js +0 -455
  613. package/dist/ssGSEA-FSX6P7HA.js +0 -33
  614. package/dist/ssGSEA.unit.spec-TXYT665R.js +0 -83
  615. package/dist/stattable-BD64SFYV.js +0 -117
  616. package/dist/studyCatalog-6BOWO4PO.js +0 -414
  617. package/dist/summarizeCnvGeneexp-AMLYJIPU.js +0 -158
  618. package/dist/summarizeGeneexpSurvival-IDM7T333.js +0 -105
  619. package/dist/summarizeMutationCnv-R6SYSJQC.js +0 -159
  620. package/dist/summarizeMutationDiagnosis-XZJ4JLW2.js +0 -35
  621. package/dist/summarizeMutationSurvival-ABJ5RL4L.js +0 -99
  622. package/dist/summary-NVYCTE6P.js +0 -44
  623. package/dist/summary.integration.spec-SSLTLVNW.js +0 -409
  624. package/dist/summaryInput-SJOZETRP.js +0 -242
  625. package/dist/sunburst-RU5ZPJKW.js +0 -278
  626. package/dist/survival-BHJQMXKI.js +0 -53
  627. package/dist/survival-DVG6Y2FV.js +0 -1248
  628. package/dist/survival.integration.spec-OJUPTY5N.js +0 -613
  629. package/dist/svgraph-ETFA4GRX.js +0 -1382
  630. package/dist/svmr-AI3RU4JK.js +0 -3837
  631. package/dist/table-YCTSMLQL.js +0 -197
  632. package/dist/termCollection-GMKEZR6D.js +0 -252
  633. package/dist/termCollection-VEVKKJZD.js +0 -33
  634. package/dist/termCollection.unit.spec-EU6YCEPX.js +0 -299
  635. package/dist/termCollectionFractionSelection-UBS74X36.js +0 -42
  636. package/dist/termCollectionFractionSelection.unit.spec-Y5OJFGDD.js +0 -188
  637. package/dist/tk-HMF4HCNV.js +0 -1121
  638. package/dist/tk-W6Z4FJMW.js +0 -41
  639. package/dist/tp.ui-NECRDJCS.js +0 -1454
  640. package/dist/tvs.dt-2JEH3F35.js +0 -34
  641. package/dist/tvs.dtcnv.categorical-YBXKEBR2.js +0 -35
  642. package/dist/tvs.dtcnv.continuous-AD3SJ6BY.js +0 -67
  643. package/dist/tvs.dtfusion-ODI3CLQS.js +0 -35
  644. package/dist/tvs.dtitd-V3LYLPJY.js +0 -35
  645. package/dist/tvs.dtsnvindel-R3V5LTNL.js +0 -35
  646. package/dist/tvs.dtsv-ZQLKEDLJ.js +0 -35
  647. package/dist/tvs.samplelst-G25A7HM6.js +0 -98
  648. package/dist/tvs.termCollection-WLVCWDEJ.js +0 -124
  649. package/dist/vocabulary-6K537FJM.js +0 -36
  650. package/dist/wsi.direct-SNPPQPVO.js +0 -8343
  651. /package/dist/{2dmaf-PN5YS362.js.map → 2dmaf-VTMPVZGT.js.map} +0 -0
  652. /package/dist/{AggMatrixInput-NJHU4FU2.js.map → AggMatrixInput-CH3RQ2QC.js.map} +0 -0
  653. /package/dist/{AggregateMatrix-IBWOJWOC.js.map → AggregateMatrix-DPCHUOMF.js.map} +0 -0
  654. /package/dist/{AppHeader-XV6S7GG5.js.map → AppHeader-RA7T467G.js.map} +0 -0
  655. /package/dist/{BoxPlot-ZIVA55SK.js.map → BoxPlot-7Q7SMT26.js.map} +0 -0
  656. /package/dist/{CorrelationVolcano-33I4FC44.js.map → CorrelationVolcano-YV4UHOAX.js.map} +0 -0
  657. /package/dist/{Cuminc-WKY35UGV.js.map → Cuminc-ZN53C3MD.js.map} +0 -0
  658. /package/dist/{DE-E256DHID.js.map → DE-BEWW5AIG.js.map} +0 -0
  659. /package/dist/{DEinput-YU3W72K7.js.map → DEinput-SJITUJF2.js.map} +0 -0
  660. /package/dist/{DM-W7PXTIKY.js.map → DM-2LBNE4WE.js.map} +0 -0
  661. /package/dist/{Disco-OZY5GW2Z.js.map → Disco-PTZQF7IM.js.map} +0 -0
  662. /package/dist/{Disco.UI-NRALEYXK.js.map → Disco.UI-NBR67N5M.js.map} +0 -0
  663. /package/dist/{GeneExpInput-XEFUTLFU.js.map → GeneExpInput-DYBK54HC.js.map} +0 -0
  664. /package/dist/{Geomap-GEK7UEDU.js.map → Geomap-QRD2WZVL.js.map} +0 -0
  665. /package/dist/{HicApp-ZY7UHV5H.js.map → HicApp-VKET4QHD.js.map} +0 -0
  666. /package/dist/{IDCViewer-YNKG4V46.js.map → IDCViewer-RLLTXGD7.js.map} +0 -0
  667. /package/dist/{NumBinaryEditor-NEL727DX.js.map → NumBinaryEditor-GYHOYPQL.js.map} +0 -0
  668. /package/dist/{NumBinaryEditor.unit.spec-GCGZMJYF.js.map → NumBinaryEditor.unit.spec-E2HKBWOO.js.map} +0 -0
  669. /package/dist/{NumContEditor-IM6RRDGU.js.map → NumContEditor-3V76ZSEY.js.map} +0 -0
  670. /package/dist/{NumContEditor.unit.spec-B5AJXANS.js.map → NumContEditor.unit.spec-RTT5Q5E5.js.map} +0 -0
  671. /package/dist/{NumCustomBinEditor-EZT5DRKP.js.map → NumCustomBinEditor-O5DMPY7H.js.map} +0 -0
  672. /package/dist/{NumCustomBinEditor.unit.spec-KLUDS6TH.js.map → NumCustomBinEditor.unit.spec-5LZBP2JL.js.map} +0 -0
  673. /package/dist/{NumDiscreteEditor-2M6Q5AAZ.js.map → NumDiscreteEditor-DFOJ7AIH.js.map} +0 -0
  674. /package/dist/{NumDiscreteEditor.unit.spec-2JYZYJUX.js.map → NumDiscreteEditor.unit.spec-PPJGEBFX.js.map} +0 -0
  675. /package/dist/{NumRegularBinEditor-AQDHA2PU.js.map → NumRegularBinEditor-O6RDO32C.js.map} +0 -0
  676. /package/dist/{NumRegularBinEditor.unit.spec-62BYFNYG.js.map → NumRegularBinEditor.unit.spec-GOB3BF25.js.map} +0 -0
  677. /package/dist/{NumSplineEditor-6Y5TZSTO.js.map → NumSplineEditor-PUXJF2RW.js.map} +0 -0
  678. /package/dist/{NumSplineEditor.unit.spec-S65AV5EK.js.map → NumSplineEditor.unit.spec-4VOAAMOU.js.map} +0 -0
  679. /package/dist/{NumericDensity-5ES4SDWZ.js.map → NumericDensity-E6MH2THZ.js.map} +0 -0
  680. /package/dist/{NumericDensity.unit.spec-J6KZSE2P.js.map → NumericDensity.unit.spec-IRPFBQUS.js.map} +0 -0
  681. /package/dist/{NumericHandler-ZTLDPP2F.js.map → NumericHandler-42RR54X3.js.map} +0 -0
  682. /package/dist/{NumericHandler.unit.spec-BZFBVHGU.js.map → NumericHandler.unit.spec-YYOO7XVT.js.map} +0 -0
  683. /package/dist/{ProteomeInput-IKEXPCGV.js.map → ProteomeInput-4N2G6IFX.js.map} +0 -0
  684. /package/dist/{RunChart2-CVRPXQH5.js.map → RunChart2-VAX5JGZY.js.map} +0 -0
  685. /package/dist/{Wsi-3YTFABWG.js.map → Wsi-FOJCKDCP.js.map} +0 -0
  686. /package/dist/{adSandbox-QYIG6637.js.map → adSandbox-CLMUYNC3.js.map} +0 -0
  687. /package/dist/{animatedBubbleChart-X53PR73H.js.map → animatedBubbleChart-GMLNYTQC.js.map} +0 -0
  688. /package/dist/{app-HJLTRZPI.js.map → app-2SFDRDN2.js.map} +0 -0
  689. /package/dist/{app-MGY6A4DM.js.map → app-QOZ36UR4.js.map} +0 -0
  690. /package/dist/{bam-VRQHRCP5.js.map → bam-LLAK7FVG.js.map} +0 -0
  691. /package/dist/{barchart-TWMOUZFL.js.map → barchart-SEC6VKQ2.js.map} +0 -0
  692. /package/dist/{barchart2-CV7RMMRG.js.map → barchart2-D4FXZCTU.js.map} +0 -0
  693. /package/dist/{block.init-XYOJTXKP.js.map → block.init-UMRCAKCF.js.map} +0 -0
  694. /package/dist/{block.mds.expressionrank-77FSBDHA.js.map → block.mds.expressionrank-LFPJ52SX.js.map} +0 -0
  695. /package/dist/{block.mds.geneboxplot-4TSYV4WS.js.map → block.mds.geneboxplot-2QIEN6AH.js.map} +0 -0
  696. /package/dist/{block.mds.junction-P4MYDET6.js.map → block.mds.junction-Z4HUFSG2.js.map} +0 -0
  697. /package/dist/{block.mds.svcnv-CYOFAS2T.js.map → block.mds.svcnv-3GXGY6ET.js.map} +0 -0
  698. /package/dist/{block.svg-IT3ELCF4.js.map → block.svg-7RCJLMAP.js.map} +0 -0
  699. /package/dist/{block.tk.aicheck-GULHJLV5.js.map → block.tk.aicheck-5N6EGZ6F.js.map} +0 -0
  700. /package/dist/{block.tk.ase-RW5YL6HN.js.map → block.tk.ase-V3AJRYT6.js.map} +0 -0
  701. /package/dist/{block.tk.bam-MPGQW6KB.js.map → block.tk.bam-W6QOVVEU.js.map} +0 -0
  702. /package/dist/{block.tk.bedgraphdot-EYRY374P.js.map → block.tk.bedgraphdot-FKTPJZTH.js.map} +0 -0
  703. /package/dist/{block.tk.bigwig.ui-BKSXCDNM.js.map → block.tk.bigwig.ui-Y3M2TDM2.js.map} +0 -0
  704. /package/dist/{block.tk.hicstraw-76PV6NM3.js.map → block.tk.hicstraw-3SWYTMFQ.js.map} +0 -0
  705. /package/dist/{block.tk.junction-Z52QHQJQ.js.map → block.tk.junction-OXB22PDS.js.map} +0 -0
  706. /package/dist/{block.tk.junction.textmatrixui-K32OOTZC.js.map → block.tk.junction.textmatrixui-PWBLRGCO.js.map} +0 -0
  707. /package/dist/{block.tk.ld-DDGLRHPO.js.map → block.tk.ld-NTRJL5GA.js.map} +0 -0
  708. /package/dist/{block.tk.menu-MO6TESKI.js.map → block.tk.menu-JIHSGGIO.js.map} +0 -0
  709. /package/dist/{block.tk.pgv-AKLKKSEP.js.map → block.tk.pgv-4Q6CY6QN.js.map} +0 -0
  710. /package/dist/{brainImaging-KSTJQJAB.js.map → brainImaging-MBI4XTTU.js.map} +0 -0
  711. /package/dist/{brainRegions-WCRMMSK4.js.map → brainRegions-YVTAESRP.js.map} +0 -0
  712. /package/dist/{bubbleHeatmap-4YOQ3BAB.js.map → bubbleHeatmap-ZKTA3AIG.js.map} +0 -0
  713. /package/dist/{cellTypeBubbleHeatmap-O6YZ2RW4.js.map → cellTypeBubbleHeatmap-GJZNXDG4.js.map} +0 -0
  714. /package/dist/{chunk-N6IWVSFP.js.map → chunk-2PDBU42F.js.map} +0 -0
  715. /package/dist/{chunk-BL7EYUZC.js.map → chunk-2RMSV4BS.js.map} +0 -0
  716. /package/dist/{chunk-3GUVLDUS.js.map → chunk-33BE7AYS.js.map} +0 -0
  717. /package/dist/{chunk-5IMFPVGT.js.map → chunk-3FEP6B5T.js.map} +0 -0
  718. /package/dist/{chunk-KAY2ODXX.js.map → chunk-4G73CMUL.js.map} +0 -0
  719. /package/dist/{chunk-XGYQZHNX.js.map → chunk-5FRETII3.js.map} +0 -0
  720. /package/dist/{chunk-VWGRKOVJ.js.map → chunk-5LYVIIYR.js.map} +0 -0
  721. /package/dist/{chunk-HKKTNIMX.js.map → chunk-6FG6JFZP.js.map} +0 -0
  722. /package/dist/{chunk-IELQ3HMN.js.map → chunk-6LDKSKYQ.js.map} +0 -0
  723. /package/dist/{chunk-GS6ZMPKP.js.map → chunk-7FFTAYT4.js.map} +0 -0
  724. /package/dist/{chunk-XRMUUWLS.js.map → chunk-7GDRMBNO.js.map} +0 -0
  725. /package/dist/{chunk-3WYUHDDP.js.map → chunk-A2UUXYH6.js.map} +0 -0
  726. /package/dist/{chunk-HELEV3LT.js.map → chunk-AFQKYV4D.js.map} +0 -0
  727. /package/dist/{chunk-A7TXS6JR.js.map → chunk-ANACCKCQ.js.map} +0 -0
  728. /package/dist/{chunk-U45R6QNT.js.map → chunk-AR3HXZIW.js.map} +0 -0
  729. /package/dist/{chunk-3PQDD5HM.js.map → chunk-AVCEHJG7.js.map} +0 -0
  730. /package/dist/{chunk-AVS4IXEA.js.map → chunk-AVCIZWH5.js.map} +0 -0
  731. /package/dist/{chunk-DMWOK4DS.js.map → chunk-B6UXFX73.js.map} +0 -0
  732. /package/dist/{chunk-6HGTVMZM.js.map → chunk-BCCFJYPE.js.map} +0 -0
  733. /package/dist/{chunk-QJ2VBXFB.js.map → chunk-BG3SGGVB.js.map} +0 -0
  734. /package/dist/{chunk-X44AR557.js.map → chunk-CFZ2ZW3E.js.map} +0 -0
  735. /package/dist/{chunk-HKSRIEWJ.js.map → chunk-CKOU3P27.js.map} +0 -0
  736. /package/dist/{chunk-74C6G6JD.js.map → chunk-CN6KJORZ.js.map} +0 -0
  737. /package/dist/{chunk-Z2FSHODI.js.map → chunk-CYWEYHJQ.js.map} +0 -0
  738. /package/dist/{chunk-4C7MA5Q3.js.map → chunk-D5ETVOOE.js.map} +0 -0
  739. /package/dist/{chunk-4PB5ZEOB.js.map → chunk-DANF4CC5.js.map} +0 -0
  740. /package/dist/{chunk-MLKQZ3RL.js.map → chunk-DNCFJTPI.js.map} +0 -0
  741. /package/dist/{chunk-BGVGN73F.js.map → chunk-FNW6BKOA.js.map} +0 -0
  742. /package/dist/{chunk-EMMGUSJB.js.map → chunk-FR5USNAT.js.map} +0 -0
  743. /package/dist/{chunk-JIZ3B32T.js.map → chunk-GYE6FU7P.js.map} +0 -0
  744. /package/dist/{chunk-KZHF3MQX.js.map → chunk-IEIGHCZS.js.map} +0 -0
  745. /package/dist/{chunk-72P6O537.js.map → chunk-J5GQGWYX.js.map} +0 -0
  746. /package/dist/{chunk-KJM6PLXM.js.map → chunk-JMDUO47F.js.map} +0 -0
  747. /package/dist/{chunk-OBBR4UYN.js.map → chunk-JTANDSTD.js.map} +0 -0
  748. /package/dist/{chunk-GGQVDHYF.js.map → chunk-JTQPPUDG.js.map} +0 -0
  749. /package/dist/{chunk-SUNDNTVY.js.map → chunk-K32DV4QI.js.map} +0 -0
  750. /package/dist/{chunk-TSI4W6XO.js.map → chunk-K77W4SSI.js.map} +0 -0
  751. /package/dist/{chunk-GUXKLMLM.js.map → chunk-KEHVNCFK.js.map} +0 -0
  752. /package/dist/{chunk-QP7EJXSU.js.map → chunk-MMKSXXU2.js.map} +0 -0
  753. /package/dist/{chunk-WOMERKMR.js.map → chunk-NDOKW2HJ.js.map} +0 -0
  754. /package/dist/{chunk-6DPELKO5.js.map → chunk-NGMM2MNC.js.map} +0 -0
  755. /package/dist/{chunk-GPZYAJQH.js.map → chunk-OEBGQKQR.js.map} +0 -0
  756. /package/dist/{chunk-TXIQ5PHR.js.map → chunk-OI5KBFBE.js.map} +0 -0
  757. /package/dist/{chunk-DFT2PAIU.js.map → chunk-OWEBE64A.js.map} +0 -0
  758. /package/dist/{chunk-XEU5HXOY.js.map → chunk-P7X4LDW4.js.map} +0 -0
  759. /package/dist/{chunk-QUHXX7JE.js.map → chunk-Q4HTEL2O.js.map} +0 -0
  760. /package/dist/{chunk-WXX2YD4Q.js.map → chunk-QD75Q5LM.js.map} +0 -0
  761. /package/dist/{chunk-CPIPN5F6.js.map → chunk-QGH5BM2D.js.map} +0 -0
  762. /package/dist/{chunk-G3CCQOLH.js.map → chunk-QSOFGLWZ.js.map} +0 -0
  763. /package/dist/{chunk-D5MSWPAZ.js.map → chunk-QXDGIQYA.js.map} +0 -0
  764. /package/dist/{chunk-BFXZBZEV.js.map → chunk-R2QE6ROO.js.map} +0 -0
  765. /package/dist/{chunk-IISNWG4X.js.map → chunk-RMHUDMZ7.js.map} +0 -0
  766. /package/dist/{chunk-AAJXHERO.js.map → chunk-SXB4IZQ7.js.map} +0 -0
  767. /package/dist/{chunk-REPQKF5L.js.map → chunk-T6Q76PDN.js.map} +0 -0
  768. /package/dist/{chunk-E7NVJ44Z.js.map → chunk-TYR355RM.js.map} +0 -0
  769. /package/dist/{chunk-SHXJW27D.js.map → chunk-ULZPHJYD.js.map} +0 -0
  770. /package/dist/{chunk-Y5BBFDC3.js.map → chunk-VFUSBU43.js.map} +0 -0
  771. /package/dist/{chunk-BPGZUNLL.js.map → chunk-VOF6NWTS.js.map} +0 -0
  772. /package/dist/{chunk-JEJV7V7M.js.map → chunk-WGDJX7WZ.js.map} +0 -0
  773. /package/dist/{chunk-PQA3C2NY.js.map → chunk-WIQVSCD5.js.map} +0 -0
  774. /package/dist/{chunk-NBGVEZNX.js.map → chunk-WXXRVJSP.js.map} +0 -0
  775. /package/dist/{chunk-XTOGCXPD.js.map → chunk-X4MV2M5F.js.map} +0 -0
  776. /package/dist/{chunk-XOND7UIK.js.map → chunk-YHP7MYB7.js.map} +0 -0
  777. /package/dist/{chunk-MSSPT5YM.js.map → chunk-YHWQWVWX.js.map} +0 -0
  778. /package/dist/{chunk-UMZJQWWK.js.map → chunk-YKZOQTT4.js.map} +0 -0
  779. /package/dist/{chunk-J7KB2MH3.js.map → chunk-Z5HU276I.js.map} +0 -0
  780. /package/dist/{chunk-MC674TS2.js.map → chunk-Z6MCBFDM.js.map} +0 -0
  781. /package/dist/{cohort-JWIQOO7U.js.map → cohort-GVAJTICQ.js.map} +0 -0
  782. /package/dist/{condition-ZUAQYF5C.js.map → condition-EGPNMM47.js.map} +0 -0
  783. /package/dist/{controls-ZPQ6SXD2.js.map → controls-HBROSXHF.js.map} +0 -0
  784. /package/dist/{controls.config-NELL5HY5.js.map → controls.config-FWKV66TU.js.map} +0 -0
  785. /package/dist/{correlation-2X76UI3K.js.map → correlation-CEHE66EC.js.map} +0 -0
  786. /package/dist/{customdata.inputui-V6QIGFRP.js.map → customdata.inputui-LFT3N5FD.js.map} +0 -0
  787. /package/dist/{dataDownload-NSDY4MSL.js.map → dataDownload-ZPAIAAE4.js.map} +0 -0
  788. /package/dist/{databrowser.ui-DDLFQB6K.js.map → databrowser.ui-W5JGFBE6.js.map} +0 -0
  789. /package/dist/{dictionary-WSDD6TFI.js.map → dictionary-RBE2CIZI.js.map} +0 -0
  790. /package/dist/{dnaMethylation-3IM4OACZ.js.map → dnaMethylation-CX22TSRO.js.map} +0 -0
  791. /package/dist/{dnaMethylation.integration.spec-5CSJA67S.js.map → dnaMethylation.integration.spec-KEE6ZZRT.js.map} +0 -0
  792. /package/dist/{dofetch-GZ7POIBV.js.map → dofetch-6NAGX5EG.js.map} +0 -0
  793. /package/dist/{e2pca-AX7U2DOI.js.map → e2pca-XDGPTEXL.js.map} +0 -0
  794. /package/dist/{ep-UKACHFJU.js.map → ep-IUIDMIGW.js.map} +0 -0
  795. /package/dist/{expclust.gdc.spec-46HDKH2Q.js.map → expclust.gdc.spec-BMN2PTJX.js.map} +0 -0
  796. /package/dist/{facet-3EONZDDE.js.map → facet-DTJKZOBA.js.map} +0 -0
  797. /package/dist/{gb-W7GX5NWS.js.map → gb-MV7MUJWO.js.map} +0 -0
  798. /package/dist/{geneExpClustering-PJA6Y5GW.js.map → geneExpClustering-NFH5FS3S.js.map} +0 -0
  799. /package/dist/{geneExpression-EMLVPVNK.js.map → geneExpression-XVOLNYVN.js.map} +0 -0
  800. /package/dist/{geneExpression-JMGYBT53.js.map → geneExpression-ZP2VWHED.js.map} +0 -0
  801. /package/dist/{geneORA-CIAFQQWB.js.map → geneORA-HQ7FLMEJ.js.map} +0 -0
  802. /package/dist/{geneRanking-JRAU6FMJ.js.map → geneRanking-MIABUKTN.js.map} +0 -0
  803. /package/dist/{geneVariant-3DZTWQFG.js.map → geneVariant-HDFWLALZ.js.map} +0 -0
  804. /package/dist/{genefusion.ui-AO3TUDTL.js.map → genefusion.ui-HSDZQHJA.js.map} +0 -0
  805. /package/dist/{geneset-RCIP2GZH.js.map → geneset-WKV3X2EJ.js.map} +0 -0
  806. /package/dist/{genomeBrowser.spec-7PZCNBL3.js.map → genomeBrowser.spec-UTAHAU76.js.map} +0 -0
  807. /package/dist/{grin2-EUBCNH4Q.js.map → grin2-M2JDZVYU.js.map} +0 -0
  808. /package/dist/{hierCluster-AV5NO2GW.js.map → hierCluster-LZI6OTRS.js.map} +0 -0
  809. /package/dist/{hierCluster-W2MVN34V.js.map → hierCluster-VVXPOTQU.js.map} +0 -0
  810. /package/dist/{hierCluster.config-4MBWG6RZ.js.map → hierCluster.config-NCYH3Y7Z.js.map} +0 -0
  811. /package/dist/{hierCluster.integration.spec-JUIBIUKH.js.map → hierCluster.integration.spec-ZDOOCTV3.js.map} +0 -0
  812. /package/dist/{hierCluster.interactivity-6PJE64PF.js.map → hierCluster.interactivity-4HP3JCON.js.map} +0 -0
  813. /package/dist/{hierCluster.renderers-RWDQ5SHY.js.map → hierCluster.renderers-3F5GMEXA.js.map} +0 -0
  814. /package/dist/{imagePlot-XLDQNUJA.js.map → imagePlot-OA4WTMLU.js.map} +0 -0
  815. /package/dist/{importPlot-7FISAQKR.js.map → importPlot-OSTC2GPO.js.map} +0 -0
  816. /package/dist/{isoformExpression-WOQAOVZS.js.map → isoformExpression-LZ5RTUS5.js.map} +0 -0
  817. /package/dist/{isoformExpression.unit.spec-BMEGJNCO.js.map → isoformExpression.unit.spec-L6YDBKYM.js.map} +0 -0
  818. /package/dist/{junction-6NO36IPU.js.map → junction-UR6COY3A.js.map} +0 -0
  819. /package/dist/{junction.customTerm-N6JAOWZO.js.map → junction.customTerm-TMV43R7Z.js.map} +0 -0
  820. /package/dist/{junction.unit.spec-UKGSQHO4.js.map → junction.unit.spec-NVBJTGA4.js.map} +0 -0
  821. /package/dist/{launch.adhoc-42PUNEA6.js.map → launch.adhoc-AZG6QJG7.js.map} +0 -0
  822. /package/dist/{leftlabel.sample-EXAUDPSB.js.map → leftlabel.sample-LYZG25RT.js.map} +0 -0
  823. /package/dist/{lollipop-4ASTA5HO.js.map → lollipop-FJXVP5QM.js.map} +0 -0
  824. /package/dist/{maf-HPXANL3M.js.map → maf-OXJIJD6D.js.map} +0 -0
  825. /package/dist/{maftimeline-2SXFX3HF.js.map → maftimeline-75N6ZXEM.js.map} +0 -0
  826. /package/dist/{matrix-DX4W5XMX.js.map → matrix-QFKGEW5A.js.map} +0 -0
  827. /package/dist/{matrix-S34ITAPJ.js.map → matrix-XT7LUV5K.js.map} +0 -0
  828. /package/dist/{matrix.cells-BLULUGSZ.js.map → matrix.cells-NB7LKKXV.js.map} +0 -0
  829. /package/dist/{matrix.config-Z3LWYH74.js.map → matrix.config-X6HS4UGD.js.map} +0 -0
  830. /package/dist/{matrix.data-73HY7Y2V.js.map → matrix.data-VLFF34SS.js.map} +0 -0
  831. /package/dist/{matrix.groups-NOUMYNFY.js.map → matrix.groups-F62TSKIG.js.map} +0 -0
  832. /package/dist/{matrix.interactivity-YHDIO5A2.js.map → matrix.interactivity-2FBXB52E.js.map} +0 -0
  833. /package/dist/{matrix.layout-25HYKUF2.js.map → matrix.layout-6TPVKLSX.js.map} +0 -0
  834. /package/dist/{matrix.legend-IMK7DH4V.js.map → matrix.legend-L4ULBMGX.js.map} +0 -0
  835. /package/dist/{matrix.renderers-3RZRN6HO.js.map → matrix.renderers-DK6YRLO2.js.map} +0 -0
  836. /package/dist/{matrix.serieses-ZTVHQ7QA.js.map → matrix.serieses-DCRJLJ3H.js.map} +0 -0
  837. /package/dist/{matrix.sort-EDXHT6NZ.js.map → matrix.sort-XSGPH44J.js.map} +0 -0
  838. /package/dist/{matrix.sort.unit.spec-LSNY7PHU.js.map → matrix.sort.unit.spec-JF75F4I4.js.map} +0 -0
  839. /package/dist/{matrix.sorterUi-3DRNHG5Z.js.map → matrix.sorterUi-WL5I6S3K.js.map} +0 -0
  840. /package/dist/{matrix.sorterUi.unit.spec-GNIIWGRJ.js.map → matrix.sorterUi.unit.spec-66JMV5BK.js.map} +0 -0
  841. /package/dist/{matrix.unit.spec-7A6ZFRXI.js.map → matrix.unit.spec-36AR4I43.js.map} +0 -0
  842. /package/dist/{mavb-M5AXPLYX.js.map → mavb-ZH4RO77H.js.map} +0 -0
  843. /package/dist/{mds.fimo-QE5OFA22.js.map → mds.fimo-MVP2G5PS.js.map} +0 -0
  844. /package/dist/{mds.samplescatterplot-664EOHX2.js.map → mds.samplescatterplot-GYJ3OI4N.js.map} +0 -0
  845. /package/dist/{mds.survivalplot-H4TJD44D.js.map → mds.survivalplot-Q6MYQGTB.js.map} +0 -0
  846. /package/dist/{multivalue-JD3CNQJR.js.map → multivalue-BGFMPH4X.js.map} +0 -0
  847. /package/dist/{numericDictTermCluster-XPKEYXD7.js.map → numericDictTermCluster-FNNVLIWB.js.map} +0 -0
  848. /package/dist/{oncomatrix-TX5PZQ76.js.map → oncomatrix-LIIALWWN.js.map} +0 -0
  849. /package/dist/{oncomatrix.spec-6X2WAHL7.js.map → oncomatrix.spec-NEMLM2ZN.js.map} +0 -0
  850. /package/dist/{plot.2dvaf-5OHUFTMK.js.map → plot.2dvaf-HJO3SKNK.js.map} +0 -0
  851. /package/dist/{plot.app-XIVVJHWG.js.map → plot.app-WSLFOFSR.js.map} +0 -0
  852. /package/dist/{plot.barplot-PSODLAXD.js.map → plot.barplot-SPI5JA37.js.map} +0 -0
  853. /package/dist/{plot.boxplot-W3ASYFOG.js.map → plot.boxplot-4W3XEY5I.js.map} +0 -0
  854. /package/dist/{plot.brainImaging-JGDLKLR7.js.map → plot.brainImaging-KEOUTYIB.js.map} +0 -0
  855. /package/dist/{plot.disco-TPMXTTZK.js.map → plot.disco-7IDMKNAQ.js.map} +0 -0
  856. /package/dist/{plot.ssgq-KIZIOZIF.js.map → plot.ssgq-IOKUGDC4.js.map} +0 -0
  857. /package/dist/{plot.vaf2cov-MSMW72IY.js.map → plot.vaf2cov-SFSZ6M43.js.map} +0 -0
  858. /package/dist/{polar2-LA4MSRRN.js.map → polar2-PLPE5TX5.js.map} +0 -0
  859. /package/dist/{profileForms-BJRNB2ZF.js.map → profileForms-ZDHG67GM.js.map} +0 -0
  860. /package/dist/{profilePlot-DDO53C4T.js.map → profilePlot-UUZA2YG6.js.map} +0 -0
  861. /package/dist/{proteinView-NFUR42XQ.js.map → proteinView-GHS3XARL.js.map} +0 -0
  862. /package/dist/{proteomeCohortCompare-OZVF3X66.js.map → proteomeCohortCompare-TQ3BGIPS.js.map} +0 -0
  863. /package/dist/{pseudbulk.unit.spec-RY72JF7A.js.map → pseudbulk.unit.spec-HFESRN7A.js.map} +0 -0
  864. /package/dist/{pseudobulk-UVT5G2VL.js.map → pseudobulk-ODXYIUD5.js.map} +0 -0
  865. /package/dist/{qualitative-X3VXNC7X.js.map → qualitative-WOSYAIGQ.js.map} +0 -0
  866. /package/dist/{radar2-RTVUJ3AN.js.map → radar2-2KXBS3Y3.js.map} +0 -0
  867. /package/dist/{radarFacility2-ZGLZ5AKM.js.map → radarFacility2-JCOKJQQF.js.map} +0 -0
  868. /package/dist/{rememberedGvQ.unit.spec-RLLLWU5M.js.map → rememberedGvQ.unit.spec-DYRO2LO5.js.map} +0 -0
  869. /package/dist/{render-LR5BOYW6.js.map → render-IJ6GE3NE.js.map} +0 -0
  870. /package/dist/{report-37W5OXUM.js.map → report-WLLFUA7L.js.map} +0 -0
  871. /package/dist/{sampleView-BDC2WPH7.js.map → sampleView-LPKSYUNF.js.map} +0 -0
  872. /package/dist/{samplelst-V2EIVZC5.js.map → samplelst-MNI2MGMT.js.map} +0 -0
  873. /package/dist/{samplematrix-XOSKILUL.js.map → samplematrix-KEKJP2B4.js.map} +0 -0
  874. /package/dist/{sc-ZVZPWQY7.js.map → sc-ZYKFRJU4.js.map} +0 -0
  875. /package/dist/{scatter-2ZE5MCYH.js.map → scatter-BAEZOFWA.js.map} +0 -0
  876. /package/dist/{scatter-ZOWFPGIS.js.map → scatter-IGFBIZ3B.js.map} +0 -0
  877. /package/dist/{selectGenomeWithTklst-EF7WYEAJ.js.map → selectGenomeWithTklst-HBHRXEDY.js.map} +0 -0
  878. /package/dist/{singleCellCellType-TKCGC3G3.js.map → singleCellCellType-PMFDV24B.js.map} +0 -0
  879. /package/dist/{singleCellCellType.unit.spec-JZ6UHC5F.js.map → singleCellCellType.unit.spec-ZLYDUDIY.js.map} +0 -0
  880. /package/dist/{singleCellGeneExpression-I2INGXGI.js.map → singleCellGeneExpression-SUYO3HR3.js.map} +0 -0
  881. /package/dist/{singleCellGeneExpression.unit.spec-KL77FSHZ.js.map → singleCellGeneExpression.unit.spec-3N3HRXFN.js.map} +0 -0
  882. /package/dist/{singleCellNumericValue-2X5NCEHL.js.map → singleCellNumericValue-BV7C6Y34.js.map} +0 -0
  883. /package/dist/{singleCellNumericValue.unit.spec-OUDBX5MY.js.map → singleCellNumericValue.unit.spec-7VJOMYQ6.js.map} +0 -0
  884. /package/dist/{singleCellPlot-Q6INE54V.js.map → singleCellPlot-BG7UJOHA.js.map} +0 -0
  885. /package/dist/{singlecell-5N2P5ZAT.js.map → singlecell-BANNFGBS.js.map} +0 -0
  886. /package/dist/{singlecell-NPSWMNI3.js.map → singlecell-ZUTL5ZWE.js.map} +0 -0
  887. /package/dist/{snp-2WPJYPDE.js.map → snp-BHG4NVK4.js.map} +0 -0
  888. /package/dist/{snp.unit.spec-PPWIIOX6.js.map → snp.unit.spec-Q3AZHQRC.js.map} +0 -0
  889. /package/dist/{snplocus-T3HZFZWA.js.map → snplocus-HTJL63M3.js.map} +0 -0
  890. /package/dist/{spliceevent.a53ss.diagram-APCF4LV5.js.map → spliceevent.a53ss.diagram-UKRIP7EP.js.map} +0 -0
  891. /package/dist/{spliceevent.exonskip.diagram-TT5JGBSC.js.map → spliceevent.exonskip.diagram-CU777CXQ.js.map} +0 -0
  892. /package/dist/{spliceevent.noeventdiagram-CPXQSX3Z.js.map → spliceevent.noeventdiagram-LGLXCF25.js.map} +0 -0
  893. /package/dist/{ssGSEA-FSX6P7HA.js.map → ssGSEA-BIEEKAKX.js.map} +0 -0
  894. /package/dist/{ssGSEA.unit.spec-TXYT665R.js.map → ssGSEA.unit.spec-YD4UDIRH.js.map} +0 -0
  895. /package/dist/{stattable-BD64SFYV.js.map → stattable-LFR3RSD6.js.map} +0 -0
  896. /package/dist/{studyCatalog-6BOWO4PO.js.map → studyCatalog-RINIZ277.js.map} +0 -0
  897. /package/dist/{summarizeCnvGeneexp-AMLYJIPU.js.map → summarizeCnvGeneexp-ZQFNPR65.js.map} +0 -0
  898. /package/dist/{summarizeGeneexpSurvival-IDM7T333.js.map → summarizeGeneexpSurvival-GIS7XMMH.js.map} +0 -0
  899. /package/dist/{summarizeMutationCnv-R6SYSJQC.js.map → summarizeMutationCnv-FWF7YIGR.js.map} +0 -0
  900. /package/dist/{summarizeMutationDiagnosis-XZJ4JLW2.js.map → summarizeMutationDiagnosis-V5L2OKTK.js.map} +0 -0
  901. /package/dist/{summarizeMutationSurvival-ABJ5RL4L.js.map → summarizeMutationSurvival-LAUUF6XN.js.map} +0 -0
  902. /package/dist/{summary-NVYCTE6P.js.map → summary-OMU3ACNE.js.map} +0 -0
  903. /package/dist/{summary.integration.spec-SSLTLVNW.js.map → summary.integration.spec-6JZAT73L.js.map} +0 -0
  904. /package/dist/{summaryInput-SJOZETRP.js.map → summaryInput-QIKL3HDD.js.map} +0 -0
  905. /package/dist/{sunburst-RU5ZPJKW.js.map → sunburst-32IW2R57.js.map} +0 -0
  906. /package/dist/{survival-BHJQMXKI.js.map → survival-BMOPVAN2.js.map} +0 -0
  907. /package/dist/{survival-DVG6Y2FV.js.map → survival-H5AWMQ36.js.map} +0 -0
  908. /package/dist/{survival.integration.spec-OJUPTY5N.js.map → survival.integration.spec-66UOWSZG.js.map} +0 -0
  909. /package/dist/{svgraph-ETFA4GRX.js.map → svgraph-B75FS3BB.js.map} +0 -0
  910. /package/dist/{svmr-AI3RU4JK.js.map → svmr-IUEUOHVO.js.map} +0 -0
  911. /package/dist/{table-YCTSMLQL.js.map → table-YAAH7WR6.js.map} +0 -0
  912. /package/dist/{termCollection-GMKEZR6D.js.map → termCollection-7F5ZG2DB.js.map} +0 -0
  913. /package/dist/{termCollection-VEVKKJZD.js.map → termCollection-KNFUELYY.js.map} +0 -0
  914. /package/dist/{termCollection.unit.spec-EU6YCEPX.js.map → termCollection.unit.spec-S6M6QC4C.js.map} +0 -0
  915. /package/dist/{termCollectionFractionSelection-UBS74X36.js.map → termCollectionFractionSelection-X22VMJWY.js.map} +0 -0
  916. /package/dist/{termCollectionFractionSelection.unit.spec-Y5OJFGDD.js.map → termCollectionFractionSelection.unit.spec-ELU6SD7P.js.map} +0 -0
  917. /package/dist/{tk-W6Z4FJMW.js.map → tk-TT666UVE.js.map} +0 -0
  918. /package/dist/{tk-HMF4HCNV.js.map → tk-UOPNJ323.js.map} +0 -0
  919. /package/dist/{tp.ui-NECRDJCS.js.map → tp.ui-HGAHRKO5.js.map} +0 -0
  920. /package/dist/{tvs.dt-2JEH3F35.js.map → tvs.dt-H7YYR4EB.js.map} +0 -0
  921. /package/dist/{tvs.dtcnv.categorical-YBXKEBR2.js.map → tvs.dtcnv.categorical-IPJTKGMF.js.map} +0 -0
  922. /package/dist/{tvs.dtcnv.continuous-AD3SJ6BY.js.map → tvs.dtcnv.continuous-XY5XZ4GH.js.map} +0 -0
  923. /package/dist/{tvs.dtfusion-ODI3CLQS.js.map → tvs.dtfusion-VFCBMXRM.js.map} +0 -0
  924. /package/dist/{tvs.dtitd-V3LYLPJY.js.map → tvs.dtitd-RZVW6FTR.js.map} +0 -0
  925. /package/dist/{tvs.dtsnvindel-R3V5LTNL.js.map → tvs.dtsnvindel-IDPJWSGC.js.map} +0 -0
  926. /package/dist/{tvs.dtsv-ZQLKEDLJ.js.map → tvs.dtsv-QERP756F.js.map} +0 -0
  927. /package/dist/{tvs.samplelst-G25A7HM6.js.map → tvs.samplelst-6KNDHBIU.js.map} +0 -0
  928. /package/dist/{tvs.termCollection-WLVCWDEJ.js.map → tvs.termCollection-GWPJK3NE.js.map} +0 -0
  929. /package/dist/{vocabulary-6K537FJM.js.map → vocabulary-C5FIZMPQ.js.map} +0 -0
  930. /package/dist/{wsi.direct-SNPPQPVO.js.map → wsi.direct-2RBCBXDA.js.map} +0 -0
@@ -0,0 +1,2443 @@
1
+ import {
2
+ VolcanoModel,
3
+ getGroupColors
4
+ } from "./chunk-XVVVNCXS.js";
5
+ import {
6
+ manhattanLayoutDefaults,
7
+ plotManhattan
8
+ } from "./chunk-6G45AUSV.js";
9
+ import {
10
+ CCRE_TRACK_NAME
11
+ } from "./chunk-V3SOBDIT.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-C3HEDQPT.js";
37
+ import "./chunk-HJ6L54YS.js";
38
+ import "./chunk-KV4W2ACA.js";
39
+ import "./chunk-B6UXFX73.js";
40
+ import {
41
+ Menu
42
+ } from "./chunk-ELJX3QIQ.js";
43
+ import "./chunk-3FEP6B5T.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-OBDIJ4QS.js";
52
+ import "./chunk-6FG6JFZP.js";
53
+ import "./chunk-3XBG5HIV.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-SB36AUG7.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-FXQXCOII.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 region view
916
+ re-fits the chromosome to draw its DMR track; a scan has already called every DMR and cached
917
+ them, so the browser names the cached scan (scanDmrTrack) and fetches the DMRs of whatever
918
+ chromosome is on screen from it -- including after the reader types another position into the
919
+ search box. Opened on the DMR with 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
+ const pad = Math.max(5e3, d.stop - d.start);
925
+ this.app.dispatch({
926
+ type: "plot_create",
927
+ config: {
928
+ chartType: "genomeBrowser",
929
+ geneSearchResult: { chr: d.chr, start: Math.max(0, d.start - pad), stop: d.stop + pad },
930
+ // the CpG floor the scan was rendered with, so the track shows the DMRs the volcano counts
931
+ scanDmrTrack: { cacheId: scan.cacheId, minCpgs: scan.minCpgs },
932
+ tracks
933
+ }
934
+ });
935
+ }
936
+ /** Launch a violin/box plot for a DNA methylation promoter.
937
+ * Creates a methylation term using the promoter's chr/start/stop coordinates.
938
+ * The tw handler fills in id and unit from termdbConfig. */
939
+ launchDNAMethViolin(d) {
940
+ const config = this.app.getState().plots.find((p) => p.id === this.id);
941
+ const genomicFeatureType = d.promoter_id ? "promoter" : "gene";
942
+ const featureName = genomicFeatureType === "gene" ? d.gene_name?.split(",")[0]?.trim() || "" : "";
943
+ const term = {
944
+ genomicFeatureType,
945
+ featureName,
946
+ type: DNA_METHYLATION,
947
+ chr: d.chr,
948
+ start: d.start,
949
+ stop: d.stop
950
+ };
951
+ if (genomicFeatureType === "promoter") {
952
+ const noun = elementNoun(config?.settings?.volcano?.elementType).one;
953
+ const unit = getDNAMethUnit(genomicFeatureType, this.app.vocabApi);
954
+ term.unit = unit;
955
+ term.name = getDNAMethTermName(term, unit, noun);
956
+ }
957
+ this.app.dispatch({
958
+ type: "plot_create",
959
+ config: {
960
+ chartType: "summary",
961
+ childType: "violin",
962
+ term: {
963
+ q: { mode: "continuous" },
964
+ term
965
+ },
966
+ term2: {
967
+ q: { groups: config.tw.q.groups, type: "custom-samplelst" },
968
+ term: config.tw.term
969
+ }
970
+ }
971
+ });
972
+ }
973
+ async launchDEGClustering() {
974
+ const geneIndex = this.pValueTableData.columns.findIndex((col) => col.label === "Gene Name");
975
+ const adjustedPValIndex = this.pValueTableData.columns.findIndex((col) => col.label === "Adjusted p-value");
976
+ const rowsSorted = [...this.pValueTableData.rows].sort((a, b) => {
977
+ const aQVal = Number(a[adjustedPValIndex].value);
978
+ const bQVal = Number(b[adjustedPValIndex].value);
979
+ return aQVal - bQVal;
980
+ });
981
+ const geneList = rowsSorted.slice(0, 100).map((r) => ({ gene: r[geneIndex].value }));
982
+ const tws = geneList.map((d) => {
983
+ const gene = d.gene;
984
+ const unit = getGEunit(this.app.vocabApi);
985
+ const name = `${gene} ${unit}`;
986
+ const term = { gene, name, type: GENE_EXPRESSION };
987
+ return { term, q: {} };
988
+ });
989
+ const group = { lst: tws, type: "hierCluster" };
990
+ const customVariable = this.app.getState().plots.find((p) => p.id === this.id).tw;
991
+ const annotationGroup = { lst: [customVariable] };
992
+ const config = {
993
+ chartType: "hierCluster",
994
+ termgroups: [group, annotationGroup],
995
+ dataType: GENE_EXPRESSION,
996
+ filter: {
997
+ in: true,
998
+ join: "",
999
+ type: "tvslst",
1000
+ lst: [{ type: "tvs", tvs: { term: customVariable.term } }]
1001
+ }
1002
+ };
1003
+ await this.app.dispatch({
1004
+ type: "plot_create",
1005
+ config: structuredClone(config)
1006
+ });
1007
+ }
1008
+ };
1009
+
1010
+ // plots/volcano/interactions/geneBodyLossDE.ts
1011
+ async function geneBodyLossTest(tip, config, vocab, scan, app) {
1012
+ const gb = scan.geneBodyLoss;
1013
+ const holder = tip.d;
1014
+ const groups = (scan.matchedSamplelst || config?.samplelst)?.groups;
1015
+ if (!groups || groups.length != 2) {
1016
+ sayerror(holder.append("div"), "Two sample groups are required.");
1017
+ return;
1018
+ }
1019
+ const div = holder.append("div").style("padding", "10px").style("max-width", "900px");
1020
+ const wait = div.append("div").style("color", "#777").text("Running differential expression\u2026");
1021
+ const de = getDefaultVolcanoSettings({}, { termType: "geneExpression" });
1022
+ try {
1023
+ const res = await dofetch3("termdb/dmrGeneDE", {
1024
+ body: {
1025
+ genome: vocab.genome,
1026
+ dslabel: vocab.dslabel,
1027
+ // `in` is part of the DE cache key, so it must travel or the two runs get separate entries
1028
+ samplelst: { groups: groups.map((g) => ({ name: g.name, in: g.in, values: g.values })) },
1029
+ genes: gb.genes,
1030
+ method: de.method,
1031
+ min_count: de.minCount,
1032
+ min_total_count: de.minTotalCount,
1033
+ cpm_cutoff: de.cpmCutoff,
1034
+ filter: app.getState().termfilter?.filter,
1035
+ filter0: app.getState().termfilter?.filter0
1036
+ }
1037
+ });
1038
+ wait.remove();
1039
+ if (res?.error) {
1040
+ sayerror(div.append("div"), res.error);
1041
+ return;
1042
+ }
1043
+ renderGeneDE(div, res, gb.regions, config, scan, app, tip);
1044
+ } catch (e) {
1045
+ wait.remove();
1046
+ sayerror(div.append("div"), e?.message || String(e));
1047
+ }
1048
+ }
1049
+ function renderGeneDE(div, res, nRegions, config, scan, app, tip) {
1050
+ const gb = scan.geneBodyLoss;
1051
+ const samplelst = scan.matchedSamplelst || config.samplelst;
1052
+ const nMatched = samplelst.groups.reduce((n, g) => n + g.values.length, 0);
1053
+ const dir = res.weightedDiff < 0 ? "lower" : "higher";
1054
+ div.append("button").attr("class", "sja_menuoption").attr("data-testid", "sjpp-geneBodyLoss-deVolcano").style("margin", "0 0 8px").style("padding", "3px 6px").text(
1055
+ `Open as differential expression volcano on the ${nMatched.toLocaleString()} samples with methylation, ${gb.genes.length.toLocaleString()} genes highlighted`
1056
+ ).on("click", () => {
1057
+ tip.hide();
1058
+ app.dispatch({
1059
+ type: "plot_create",
1060
+ config: structuredClone({
1061
+ chartType: "differentialAnalysis",
1062
+ termType: "geneExpression",
1063
+ state: config.state,
1064
+ samplelst,
1065
+ tw: config.tw,
1066
+ highlightedData: gb.genes,
1067
+ /* The default highlight is orange-yellow, which on a case group drawn in orange makes
1068
+ the highlighted hits and the up-regulated genes one blob. Use the colour the
1069
+ methylation figures give to LOSS instead: these genes are highlighted because they
1070
+ lost gene-body methylation, so the fill says the same thing there and here. */
1071
+ settings: { volcano: { defaultHighlightColor: HYPO_COLOR } }
1072
+ })
1073
+ });
1074
+ });
1075
+ div.append("div").style("font-weight", "bold").style("padding", "4px 0").text(
1076
+ `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)}).`
1077
+ );
1078
+ div.append("div").style("color", "#777").style("font-size", ".92em").text(
1079
+ `${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.`
1080
+ );
1081
+ if (res.sigCount) {
1082
+ div.append("div").style("padding", "8px 0 2px").style("font-weight", "bold").text(
1083
+ `${res.sigCount.toLocaleString()} of these genes are differentially expressed on their own (p < 0.05), ${res.sigDown.toLocaleString()} of them down.`
1084
+ );
1085
+ const { caseColor, controlColor } = getGroupColors(config);
1086
+ renderTable({
1087
+ div: div.append("div"),
1088
+ columns: [
1089
+ { label: "Gene" },
1090
+ { label: "Length (log\u2081\u2080 bp)", barplot: { axisWidth: 90, colorPositive: "#999", tickCount: 3 } },
1091
+ { label: "log\u2082FC", barplot: { axisWidth: 110, colorNegative: controlColor, colorPositive: caseColor } },
1092
+ { label: res.topGenes[0]?.adjusted ? "Adjusted p" : "p", align: "right" }
1093
+ ],
1094
+ rows: res.topGenes.map((g) => [
1095
+ { value: g.gene },
1096
+ { value: g.len ? Number(Math.log10(g.len).toFixed(2)) : NaN },
1097
+ { value: Number(g.fc.toFixed(3)) },
1098
+ { value: Number(g.p.toPrecision(2)) }
1099
+ ]),
1100
+ showLines: true,
1101
+ maxHeight: "26vh",
1102
+ download: { fileName: "gene-body-loss-genes.tsv" }
1103
+ });
1104
+ if (res.sigCount > res.topGenes.length)
1105
+ div.append("div").style("color", "#777").style("font-size", ".9em").text(`Showing the ${res.topGenes.length} most significant of ${res.sigCount.toLocaleString()}.`);
1106
+ }
1107
+ div.append("div").style("padding", "10px 0 2px").style("font-weight", "bold").text("By gene length");
1108
+ renderTable({
1109
+ div: div.append("div"),
1110
+ columns: [
1111
+ { label: "Gene length" },
1112
+ { label: "Genes hit", align: "right" },
1113
+ { label: "Matched", align: "right" },
1114
+ { label: "Median log\u2082FC, hit", align: "right" },
1115
+ { label: "Median log\u2082FC, matched", align: "right" },
1116
+ { label: "Difference", align: "right" }
1117
+ ],
1118
+ rows: res.strata.map((s) => [
1119
+ { value: `${bplen(s.lenFrom)} \u2013 ${bplen(s.lenTo)}` },
1120
+ { value: s.nHit.toLocaleString() },
1121
+ { value: s.nOther.toLocaleString() },
1122
+ { value: Number(s.medianHit.toFixed(3)) },
1123
+ { value: Number(s.medianOther.toFixed(3)) },
1124
+ { value: Number(s.diff.toFixed(3)) }
1125
+ ]),
1126
+ showLines: true,
1127
+ maxHeight: "26vh",
1128
+ download: { fileName: "gene-body-loss-expression.tsv" }
1129
+ });
1130
+ }
1131
+
1132
+ // plots/volcano/interactions/dmrGeneLink.ts
1133
+ async function dmrGeneLinkPanel(tip, config, vocab, scan, app) {
1134
+ const div = tip.d.append("div").style("padding", "10px").style("max-width", "1000px");
1135
+ const wait = div.append("div").style("color", "#777").text("Linking DMRs to genes and running differential expression\u2026");
1136
+ const de = getDefaultVolcanoSettings({}, { termType: "geneExpression" });
1137
+ const state = app.getState();
1138
+ let res;
1139
+ try {
1140
+ res = await dofetch3("termdb/dmrGeneLink", {
1141
+ body: {
1142
+ genome: vocab.genome,
1143
+ dslabel: vocab.dslabel,
1144
+ cacheId: scan.cacheId,
1145
+ minCpgs: scan.minCpgs,
1146
+ /* The cohort the scan compared, expanded and matched server-side. The plot state's list can still
1147
+ hold a "Not in" group as {in:false} carrying the included group's values, which DE reads as two
1148
+ overlapping groups. */
1149
+ samplelst: {
1150
+ groups: (scan.matchedSamplelst || config.samplelst).groups.map((g) => ({
1151
+ name: g.name,
1152
+ in: g.in,
1153
+ values: g.values
1154
+ }))
1155
+ },
1156
+ method: de.method,
1157
+ min_count: de.minCount,
1158
+ min_total_count: de.minTotalCount,
1159
+ cpm_cutoff: de.cpmCutoff,
1160
+ filter: state.termfilter?.filter,
1161
+ filter0: state.termfilter?.filter0
1162
+ }
1163
+ });
1164
+ } catch (e) {
1165
+ res = { error: e?.message || String(e) };
1166
+ }
1167
+ wait.remove();
1168
+ if (res.error) return sayerror(div.append("div"), res.error);
1169
+ div.append("div").style("font-weight", "bold").text(
1170
+ `${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`
1171
+ );
1172
+ div.append("div").style("color", "#777").style("font-size", ".92em").style("padding", "2px 0 6px").text(
1173
+ `Promoter = within ${bplen(
1174
+ 2e3
1175
+ )} 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).`
1176
+ );
1177
+ const summary = table2col({ holder: div.append("div") });
1178
+ for (const context of ["promoter", "body"]) {
1179
+ const s = res.summary[context] || {};
1180
+ const [td1, td2] = summary.addRow();
1181
+ td1.text(context == "promoter" ? "Promoter DMRs" : "Gene-body DMRs");
1182
+ td2.text(
1183
+ ["concordant", "discordant", "no expression change", "not tested"].map((k) => `${k}: ${(s[k] || 0).toLocaleString()}`).join(" \xB7 ")
1184
+ );
1185
+ }
1186
+ const rows = res.rows;
1187
+ const litDiv = div.append("div");
1188
+ const recordOf = /* @__PURE__ */ new Map();
1189
+ const tableRows = rows.map((r) => {
1190
+ const cells = [
1191
+ { value: r.gene },
1192
+ { value: r.context },
1193
+ { value: `${r.dmr.chr}:${r.dmr.start}-${r.dmr.stop}` },
1194
+ { value: Number(r.dmr.deltaBeta.toFixed(3)) },
1195
+ { value: r.dmr.cpgs },
1196
+ { value: r.nDmrs },
1197
+ { value: r.fc == null ? "" : Number(r.fc.toFixed(3)) },
1198
+ { value: r.p == null ? "" : Number(r.p.toPrecision(2)) },
1199
+ { value: r.relationship }
1200
+ ];
1201
+ recordOf.set(cells, r);
1202
+ return cells;
1203
+ });
1204
+ renderTable({
1205
+ div: div.append("div"),
1206
+ columns: [
1207
+ { label: "Gene" },
1208
+ { label: "Context" },
1209
+ { label: "Strongest DMR" },
1210
+ { label: "\u0394\u03B2", sortable: true },
1211
+ { label: "CpGs", sortable: true },
1212
+ { label: "DMRs", sortable: true },
1213
+ { label: "Expression log\u2082FC", sortable: true },
1214
+ { label: "Expression p", sortable: true },
1215
+ { label: "Relationship" }
1216
+ ],
1217
+ rows: tableRows,
1218
+ showLines: true,
1219
+ maxHeight: "40vh",
1220
+ header: { allowSort: true },
1221
+ noRadioBtn: true,
1222
+ download: { fileName: "dmr-gene-links.tsv" },
1223
+ // a click asks PubMed about that row's gene in that row's context
1224
+ noButtonCallback: (i) => showLiterature(litDiv, vocab, recordOf.get(tableRows[i]), disease)
1225
+ });
1226
+ if (rows.length < res.links)
1227
+ div.append("div").style("color", "#777").style("font-size", ".9em").text(`Showing the first ${rows.length.toLocaleString()} of ${res.links.toLocaleString()} links.`);
1228
+ const hint = litDiv.append("div").style("color", "#777").style("padding", "6px 0");
1229
+ hint.append("span").text("Click a row for PubMed articles on that gene and mechanism, optionally within a disease: ");
1230
+ const disease = hint.append("input").attr("type", "text").attr("placeholder", "e.g. myeloma").style("width", "120px");
1231
+ }
1232
+ async function showLiterature(holder, vocab, r, disease) {
1233
+ holder.selectAll(".sjpp-dmr-lit").remove();
1234
+ const out = holder.append("div").attr("class", "sjpp-dmr-lit");
1235
+ const head = out.append("div").style("padding", "8px 0 2px").style("font-weight", "bold");
1236
+ const d = String(disease?.property("value") || "").trim();
1237
+ const within = d ? ` in ${d}` : "";
1238
+ head.text(`PubMed: ${r.gene}, ${r.context} methylation and expression${within}\u2026`);
1239
+ const res = await dofetch3("termdb/dmrLiterature", {
1240
+ body: { genome: vocab.genome, dslabel: vocab.dslabel, gene: r.gene, context: r.context, disease: d }
1241
+ }).catch((e) => ({ error: e?.message || String(e) }));
1242
+ holder = out;
1243
+ if (res.error) return sayerror(holder.append("div"), res.error);
1244
+ head.text(
1245
+ `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})`
1246
+ );
1247
+ if (!res.articles.length) {
1248
+ holder.append("div").style("color", "#777").text("No articles match. The link may be unreported rather than unsupported.");
1249
+ return;
1250
+ }
1251
+ const ul = holder.append("ul").style("margin", "2px 0");
1252
+ for (const a of res.articles) {
1253
+ const li = ul.append("li");
1254
+ li.append("span").text(`${a.title} ${a.journal} ${a.year}. `);
1255
+ 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}`);
1256
+ }
1257
+ }
1258
+
1259
+ // plots/volcano/view/VolcanoPlotView.ts
1260
+ var VolcanoPlotView = class {
1261
+ constructor(dom, interactions, termType) {
1262
+ this.linked = [];
1263
+ this.dom = dom;
1264
+ this.interactions = interactions;
1265
+ this.termType = termType;
1266
+ const actions = this.dom.holder.append("div").attr("id", "sjpp-volcano-actions").style("display", "block").style("z-index", 1).style("position", "relative");
1267
+ this.row = this.dom.holder.append("div").attr("id", "sjpp-volcano-row").style("display", "flex").style("align-items", "flex-start");
1268
+ const svg = this.row.append("svg").style("display", "inline-block").attr("id", "sjpp-volcano-svg").style("vertical-align", "top");
1269
+ this.volcanoDom = {
1270
+ actions,
1271
+ svg,
1272
+ pValueTable: void 0,
1273
+ top: void 0,
1274
+ xAxis: void 0,
1275
+ xAxisLabel: void 0,
1276
+ yAxis: void 0,
1277
+ yAxisLabel: void 0,
1278
+ plot: void 0
1279
+ };
1280
+ }
1281
+ render(settings, viewData) {
1282
+ this.settings = settings;
1283
+ this.viewData = viewData;
1284
+ this.linked = [];
1285
+ const plotDim = this.viewData.plotDim;
1286
+ this.initDom();
1287
+ this.renderUserActions();
1288
+ this.renderPlot(plotDim);
1289
+ renderDataPoints(this);
1290
+ this.renderFoldChangeLine(plotDim);
1291
+ this.attachInteractions(plotDim);
1292
+ if (this.settings.showPValueTable) this.renderPValueTable();
1293
+ if (this.viewData.scan?.manhattan) this.renderScanManhattan();
1294
+ }
1295
+ initDom() {
1296
+ this.volcanoDom.actions.selectAll("*").remove();
1297
+ this.volcanoDom.svg.selectAll("*").remove();
1298
+ const svg = this.volcanoDom.svg;
1299
+ this.volcanoDom.top = svg.append("g").attr("id", "sjpp-volcano-top");
1300
+ this.volcanoDom.xAxis = svg.append("g").attr("id", "sjpp-volcano-xAxis");
1301
+ this.volcanoDom.yAxis = svg.append("g").attr("id", "sjpp-volcano-yAxis");
1302
+ this.volcanoDom.xAxisLabel = svg.append("text").attr("id", "sjpp-volcano-xAxisLabel").attr("text-anchor", "middle");
1303
+ this.volcanoDom.yAxisLabel = svg.append("text").attr("id", "sjpp-volcano-yAxisLabel").attr("text-anchor", "middle");
1304
+ this.volcanoDom.plot = svg.append("g").attr("id", "sjpp-volcano-plot");
1305
+ this.dom.holder.select("#sjpp-volcano-pValueTable").remove();
1306
+ this.dom.holder.select("#sjpp-volcano-scanManhattan").remove();
1307
+ if (!this.settings.showPValueTable) return;
1308
+ 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");
1309
+ }
1310
+ renderUserActions() {
1311
+ this.dom.actionsTip.d.style("overflow", "hidden");
1312
+ this.volcanoDom.actions.style("margin-left", "20px").style("padding", "5px");
1313
+ this.addActionButton(
1314
+ "Confounding factors",
1315
+ [DATermTypes.GENE_EXPRESSION, DATermTypes.DNA_METHYLATION],
1316
+ () => this.interactions.confoundersMenu()
1317
+ );
1318
+ this.addActionButton(
1319
+ "Highlight genes",
1320
+ [DATermTypes.GENE_EXPRESSION, DATermTypes.SINGLECELL_CELLTYPE, DATermTypes.DNA_METHYLATION],
1321
+ () => this.interactions.launchGeneSetEdit()
1322
+ );
1323
+ this.addActionButton(
1324
+ "Statistics",
1325
+ [DATermTypes.GENE_EXPRESSION, DATermTypes.SINGLECELL_CELLTYPE, DATermTypes.DNA_METHYLATION],
1326
+ () => {
1327
+ this.renderStatsMenu();
1328
+ },
1329
+ { whenOpen: "Hide statistics" }
1330
+ );
1331
+ const gb = this.viewData.scan?.geneBodyLoss;
1332
+ if (gb?.genes.length) {
1333
+ this.addActionButton(
1334
+ `Expression of ${gb.genes.length.toLocaleString()} gene-body loss genes`,
1335
+ [DATermTypes.DNA_METHYLATION],
1336
+ () => geneBodyLossTest(
1337
+ this.dom.actionsTip,
1338
+ this.interactions.app.getState().plots.find((p) => p.id == this.interactions.id),
1339
+ this.interactions.app.vocabApi.vocab,
1340
+ this.viewData.scan,
1341
+ this.interactions.app
1342
+ )
1343
+ );
1344
+ }
1345
+ if (this.viewData.scan?.cacheId) {
1346
+ this.addActionButton(
1347
+ "Genes, expression and literature",
1348
+ [DATermTypes.DNA_METHYLATION],
1349
+ () => dmrGeneLinkPanel(
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
+ const dmNoun = elementNoun(this.settings?.elementType);
1359
+ const SIG_PREFIX = "Number of significant ";
1360
+ const sigRow = this.viewData.statsData.find((d) => d.label.startsWith(SIG_PREFIX));
1361
+ const numSigGenes = Number(sigRow?.value ?? 0);
1362
+ if (numSigGenes) {
1363
+ const n = numSigGenes.toLocaleString();
1364
+ const isDM = this.termType == DATermTypes.DNA_METHYLATION;
1365
+ const up = this.viewData.numSignificantUp;
1366
+ const down = this.viewData.numSignificantDown;
1367
+ const split = up + down > 0 ? ` (${up.toLocaleString()} ${isDM ? "hyper" : "up"} / ${down.toLocaleString()} ${isDM ? "hypo" : "down"})` : "";
1368
+ const off = this.viewData.xOffset;
1369
+ const centered = this.viewData.centered ? `, centered on median \u0394\u03B2 ${off > 0 ? "+" : ""}${off.toFixed(3)}` : "";
1370
+ 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)}`;
1371
+ const sigText = `${n} ${noun}` + split + centered + ":";
1372
+ this.volcanoDom.actions.append("span").text(sigText).style("margin-left", "10px").style("font-weight", "bold");
1373
+ const pValueTableButtonText = this.settings.showPValueTable ? "Hide p-value table" : "Show p-value table";
1374
+ this.addActionButton(
1375
+ pValueTableButtonText,
1376
+ [DATermTypes.GENE_EXPRESSION, DATermTypes.SINGLECELL_CELLTYPE, DATermTypes.DNA_METHYLATION],
1377
+ async () => {
1378
+ const showTable = !this.settings.showPValueTable;
1379
+ await this.interactions.app.dispatch({
1380
+ type: "plot_edit",
1381
+ id: this.interactions.id,
1382
+ config: { settings: { volcano: { showPValueTable: showTable } } }
1383
+ });
1384
+ }
1385
+ );
1386
+ }
1387
+ if (numSigGenes && numSigGenes >= 3) {
1388
+ this.addActionButton(
1389
+ `Hierarchical clustering of ${numSigGenes > 100 ? "top 100" : numSigGenes} DE genes`,
1390
+ [DATermTypes.GENE_EXPRESSION],
1391
+ async () => {
1392
+ await this.interactions.launchDEGClustering();
1393
+ }
1394
+ );
1395
+ }
1396
+ }
1397
+ /** Use the termTypes arr to render the buttons in a consistent order.
1398
+ *
1399
+ * Pass `opts.whenOpen` to make the button a toggle: clicking once opens
1400
+ * the actionsTip with the callback's content and swaps the button text
1401
+ * to `whenOpen` ("Hide statistics", etc.); clicking again hides the tip
1402
+ * and restores the original text. The text also restores when the tip
1403
+ * closes via Esc or outside-click (Menu.onHide hook), and when another
1404
+ * action button hijacks the tip (the loop below resets all toggles
1405
+ * before showing the new content). */
1406
+ addActionButton(text, termTypes, callback, opts) {
1407
+ if (this.viewData.userActions.noShow.has(text)) return;
1408
+ if (!termTypes.includes(this.termType)) return;
1409
+ const button = this.volcanoDom.actions.append("button").attr("class", "sja_menuoption").style("margin", "3px").style("padding", "3px").text(text).on("click", async () => {
1410
+ const whenOpen = opts?.whenOpen;
1411
+ if (whenOpen && button.text() === whenOpen) {
1412
+ this.dom.actionsTip.hide();
1413
+ return;
1414
+ }
1415
+ this.volcanoDom.actions.selectAll('button[data-volcano-toggle-open="1"]').each(function() {
1416
+ const b = select_default(this);
1417
+ const closed = b.attr("data-volcano-toggle-closed");
1418
+ if (closed) b.text(closed).attr("data-volcano-toggle-open", null);
1419
+ this.parent_menu = void 0;
1420
+ const eh = this.__volcanoEscHandler;
1421
+ if (eh) {
1422
+ document.removeEventListener("keydown", eh);
1423
+ this.__volcanoEscHandler = void 0;
1424
+ }
1425
+ });
1426
+ this.dom.actionsTip.clear().showunder(button.node());
1427
+ if (whenOpen) {
1428
+ button.text(whenOpen).attr("data-volcano-toggle-open", "1").attr("data-volcano-toggle-closed", text);
1429
+ button.node().parent_menu = this.dom.actionsTip.dnode;
1430
+ const escHandler = (e) => {
1431
+ if (e.key === "Escape") this.dom.actionsTip.hide();
1432
+ };
1433
+ document.addEventListener("keydown", escHandler);
1434
+ button.node().__volcanoEscHandler = escHandler;
1435
+ this.dom.actionsTip.onHide = () => {
1436
+ button.text(text).attr("data-volcano-toggle-open", null);
1437
+ button.node().parent_menu = void 0;
1438
+ document.removeEventListener("keydown", escHandler);
1439
+ button.node().__volcanoEscHandler = void 0;
1440
+ };
1441
+ } else {
1442
+ this.dom.actionsTip.onHide = void 0;
1443
+ }
1444
+ await callback();
1445
+ });
1446
+ }
1447
+ renderPlot(plotDim) {
1448
+ this.volcanoDom.svg.attr("width", plotDim.svg.width).attr("height", plotDim.svg.height);
1449
+ this.renderTermInfo(plotDim);
1450
+ this.volcanoDom.yAxisLabel.attr(
1451
+ "transform",
1452
+ `translate(${plotDim.yAxisLabel.x}, ${plotDim.yAxisLabel.y}) rotate(-90)`
1453
+ );
1454
+ this.setSvgSubscriptLabel(this.volcanoDom.yAxisLabel, "-log", "10", `(${this.viewData.pValueLabel})`);
1455
+ this.volcanoDom.xAxisLabel.attr("transform", `translate(${plotDim.xAxisLabel.x}, ${plotDim.xAxisLabel.y})`);
1456
+ if (this.termType === DATermTypes.DNA_METHYLATION && this.settings.xAxis === "delta_beta") {
1457
+ this.volcanoDom.xAxisLabel.selectAll("*").remove();
1458
+ this.volcanoDom.xAxisLabel.text(this.viewData.deltaBetaAxisLabel || "\u0394\u03B2 (case \u2212 control)");
1459
+ } else {
1460
+ this.volcanoDom.xAxisLabel.text(null);
1461
+ this.setSvgSubscriptLabel(this.volcanoDom.xAxisLabel, "log", "2", "(fold-change)");
1462
+ }
1463
+ this.renderScale(plotDim.xScale);
1464
+ this.renderScale(plotDim.yScale, true);
1465
+ if (this.viewData.volcanoPng) {
1466
+ 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");
1467
+ }
1468
+ }
1469
+ renderTermInfo(plotDim) {
1470
+ if (this.viewData.termInfo == void 0) return;
1471
+ this.volcanoDom.top.attr("transform", `translate(${plotDim.top.x}, ${plotDim.top.y})`);
1472
+ const y = this.viewData.termInfo.y;
1473
+ const addLabel = (term) => {
1474
+ return this.volcanoDom.top.append("text").attr("font-size", "0.9em").attr("transform", `translate(${term.x}, ${y + 10})`).text(term.label);
1475
+ };
1476
+ const firstTerm = this.viewData.termInfo.first;
1477
+ addLabel(firstTerm);
1478
+ const secondTerm = this.viewData.termInfo.second;
1479
+ const secondLabel = addLabel(secondTerm);
1480
+ secondLabel.attr("text-anchor", "end");
1481
+ }
1482
+ renderScale(scale, isLeft = false) {
1483
+ const scaleG = this.volcanoDom[isLeft ? "yAxis" : "xAxis"].append("g").attr("transform", `translate(${scale.x}, ${scale.y})`).call(isLeft ? axisLeft(scale.scale) : axisBottom(scale.scale));
1484
+ axisstyle({
1485
+ axis: scaleG,
1486
+ color: "black",
1487
+ showline: true
1488
+ });
1489
+ }
1490
+ renderFoldChangeLine(plotDim) {
1491
+ 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);
1492
+ }
1493
+ renderStatsMenu() {
1494
+ for (const img of this.viewData.images || []) {
1495
+ 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);
1496
+ }
1497
+ 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");
1498
+ const table = table2col({ holder: tableHolder });
1499
+ for (const d of this.viewData.statsData) {
1500
+ const [td1, td2] = table.addRow();
1501
+ td1.text(d.label);
1502
+ td2.style("text-align", "end").text(Number.isInteger(d.value) ? d.value.toLocaleString() : d.value);
1503
+ }
1504
+ }
1505
+ /* Where the DMRs are, along the whole genome: every kept DMR in the server's PNG, hyper above
1506
+ the line and hypo below, height = evidence; the most significant thousand are live. A dot is
1507
+ the same DMR the volcano shows, so hover and click give the volcano's own rows and actions --
1508
+ the violin of that region and the region view, a genome browser with the called DMRs, the
1509
+ per-CpG group means and the genes. Same lifecycle as the p-value table: redrawn from each
1510
+ response, never left stale. */
1511
+ /** What the scan covered, for the figure titles: the chromosome when that is all of it, and "the
1512
+ * genome" otherwise. A one-chromosome scan describing itself as genome-wide overstates every
1513
+ * number under it, which is what a dev host holding a subset of CpG shards produces. */
1514
+ scanSpan() {
1515
+ const chrs = this.viewData.scan?.chromosomes || [];
1516
+ return chrs.length == 1 ? chrs[0] : "the genome";
1517
+ }
1518
+ renderScanManhattan() {
1519
+ const { manhattan } = this.viewData.scan;
1520
+ 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");
1521
+ const asRow = (d) => ({
1522
+ promoter_id: `${d.chrom}:${d.start}-${d.stop}`,
1523
+ gene_name: d.gene_name,
1524
+ chr: d.chrom,
1525
+ start: d.start,
1526
+ stop: d.stop,
1527
+ delta_beta: d.delta_beta,
1528
+ fold_change: d.fold_change,
1529
+ original_p_value: d.p,
1530
+ adjusted_p_value: d.p,
1531
+ no_cpgs: d.no_cpgs,
1532
+ excess: d.excess
1533
+ });
1534
+ const g2 = this.viewData.scan.matchedSamplelst?.groups?.[1]?.name || "case group";
1535
+ const link = {
1536
+ points: [],
1537
+ highlight: () => {
1538
+ },
1539
+ region: (d) => ({ chr: d.chrom, start: d.start, stop: d.stop })
1540
+ };
1541
+ const handle = plotManhattan(
1542
+ div,
1543
+ { png: manhattan.png, plotData: manhattan.plotData },
1544
+ {
1545
+ ...manhattanLayoutDefaults,
1546
+ plotWidth: manhattan.plotWidth,
1547
+ plotHeight: manhattan.plotHeight,
1548
+ // the server already picked N per direction; the client must not re-cap by |y|
1549
+ interactiveDotsCap: manhattan.plotData.points.length,
1550
+ maxTooltipGenes: this.settings.maxTooltipGenes,
1551
+ legendItemWidth: 130
1552
+ },
1553
+ void 0,
1554
+ {
1555
+ // names the chromosome when that is all the scan covered, rather than "the genome"
1556
+ title: `DMRs along ${this.scanSpan()}, direction in ${g2} (top ${manhattan.interactive.toLocaleString()} per direction interactive)`,
1557
+ // short, because it runs down a 300 px axis: the legend and title say what the sign means
1558
+ yAxisLabel: `\xB1log\u2081\u2080(${this.viewData.pValueLabel.replace("smoothed ", "")})`,
1559
+ legend: [
1560
+ { label: "Hypermethylated", color: HYPER_COLOR, hollow: true },
1561
+ { label: "Hypomethylated", color: HYPO_COLOR, hollow: true }
1562
+ ],
1563
+ itemNoun: "DMR",
1564
+ renderSingleHoverTooltip: (d, container) => {
1565
+ const table = table2col({ holder: container.append("table") });
1566
+ this.addTooltipRows(asRow(d), table);
1567
+ if (d.no_cpgs != null) addTooltipRow(table, "CpGs", d.no_cpgs);
1568
+ },
1569
+ buildMultiHitTableData: (dots) => this.buildMultiHitTable(dots.map(asRow)),
1570
+ getActions: (d) => this.getActionMenuOpts(asRow(d)),
1571
+ getRowKey: (d) => `${d.chrom}:${d.start}-${d.stop}`,
1572
+ onHover: (dots) => this.mirrorHover(link, dots)
1573
+ }
1574
+ );
1575
+ this.linked.push(Object.assign(link, handle));
1576
+ this.renderMethylationProfile(this.viewData.scan.matchedSamplelst?.groups?.[0]?.name || "control group", g2);
1577
+ }
1578
+ /* The genome-wide methylation profile, under the DMR plot: mean beta per group in 100 kb bins,
1579
+ drawn as the per-bin difference. The DMR plot above shows the regions that passed a threshold;
1580
+ this shows every bin that was measured, which is what says whether the methylome shifted a
1581
+ little everywhere or a lot in a few places.
1582
+
1583
+ Same component and the same hover/click layer as the DMR plot, on the bins that moved most in
1584
+ each direction: 29,000 dots in a band cannot be read by eye, so a dot has to be able to say
1585
+ which 100 kb it is, what each group's mean beta there was, and how many CpGs that rests on.
1586
+ Clicking opens the browser on the bin -- the question a standout bin raises is which of the
1587
+ scan's DMRs are inside it, and that is the view that answers it. */
1588
+ renderMethylationProfile(controlName, caseName) {
1589
+ const profile = this.viewData.scan?.profile;
1590
+ if (!profile) return;
1591
+ const div = this.dom.holder.select("#sjpp-volcano-scanManhattan").append("div").attr("data-testid", "sjpp-volcano-methylationProfile").style("display", "block").style("margin-top", "-70px");
1592
+ const region = (d) => ({ chr: d.chrom, start: d.pos, stop: d.pos + profile.binBp });
1593
+ const label = (d) => `${d.chrom}:${(d.pos + 1).toLocaleString()}-${(d.pos + profile.binBp).toLocaleString()}`;
1594
+ const link = { points: [], highlight: () => {
1595
+ }, region };
1596
+ const handle = plotManhattan(
1597
+ div,
1598
+ { png: profile.png, plotData: profile.plotData },
1599
+ {
1600
+ ...manhattanLayoutDefaults,
1601
+ plotWidth: profile.plotWidth,
1602
+ plotHeight: profile.plotHeight,
1603
+ /* The radius the PNG was drawn at, not the shared default of 2: the hover layer is
1604
+ placed in the PNG's own pixel space, and a 1 px mismatch in the padding stretches
1605
+ the image against the dot coordinates the server computed. */
1606
+ pngDotRadius: profile.dotRadius,
1607
+ // the server already picked N per direction; the client must not re-cap by |y|
1608
+ interactiveDotsCap: profile.plotData.points.length,
1609
+ /* More rows than the volcano's 5. At 100 kb there are ~29,000 bins over 1,000 px, so
1610
+ a cursor covers a median of 7 live bins on MMRF however tight the hit radius -- the
1611
+ dots genuinely overlap at this scale. 8 shows the whole neighbourhood on a typical
1612
+ hover instead of 5 of it. */
1613
+ maxTooltipGenes: 8,
1614
+ showLegend: false,
1615
+ showDownload: false
1616
+ },
1617
+ void 0,
1618
+ {
1619
+ /* The width drawn, not the width requested: the server reports back what it binned at,
1620
+ and a reader quoting the figure needs the two to agree. The interactive count is the
1621
+ live dot count rather than the per-direction rule, because at a coarse width the rule
1622
+ reaches every bin and "top 1,000 per direction" would read as a restriction. */
1623
+ 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)`,
1624
+ yAxisLabel: "\u0394\u03B2 per bin",
1625
+ itemNoun: "bin",
1626
+ renderSingleHoverTooltip: (d, container) => {
1627
+ const table = table2col({ holder: container.append("table") });
1628
+ addTooltipRow(table, "Region", label(d));
1629
+ addTooltipRow(table, "\u0394\u03B2", roundValueAuto(d.y));
1630
+ addTooltipRow(table, `Mean \u03B2, ${controlName}`, roundValueAuto(d.control));
1631
+ addTooltipRow(table, `Mean \u03B2, ${caseName}`, roundValueAuto(d.case));
1632
+ addTooltipRow(table, "CpGs measured", d.n_probes.toLocaleString());
1633
+ },
1634
+ buildMultiHitTableData: (dots) => ({
1635
+ columns: [{ label: "Region" }, { label: "\u0394\u03B2", sortable: true }, { label: "CpGs", sortable: true }],
1636
+ rows: dots.map((d) => [{ value: label(d) }, { value: roundValueAuto(d.y) }, { value: d.n_probes }])
1637
+ }),
1638
+ getActions: (d) => [
1639
+ {
1640
+ label: "Genome browser",
1641
+ onClick: async () => await this.interactions.launchScanGenomeBrowser(region(d), this.viewData.scan)
1642
+ }
1643
+ ],
1644
+ getRowKey: (d) => label(d),
1645
+ onHover: (dots) => this.mirrorHover(link, dots)
1646
+ }
1647
+ );
1648
+ this.linked.push(Object.assign(link, handle));
1649
+ }
1650
+ /* Ring, on every other figure, the live dots overlapping what the cursor is on. Only live dots can
1651
+ be ringed -- the rest are pixels in a PNG -- so a hovered DMR outside another figure's interactive
1652
+ top N has nothing to light up there. */
1653
+ mirrorHover(src, dots) {
1654
+ const hovered = dots.map(src.region);
1655
+ for (const p of this.linked) {
1656
+ if (p === src) continue;
1657
+ p.highlight(
1658
+ hovered.length ? p.points.filter((d) => {
1659
+ const r = p.region(d);
1660
+ return hovered.some((h) => h.chr == r.chr && h.start < r.stop && r.start < h.stop);
1661
+ }) : []
1662
+ );
1663
+ }
1664
+ }
1665
+ renderPValueTable() {
1666
+ if (!this.settings.showPValueTable) return;
1667
+ const maxTableRows = 5e3;
1668
+ const allRows = this.viewData.pValueTableData.rows;
1669
+ const rows = allRows.length > maxTableRows ? allRows.slice(0, maxTableRows) : allRows;
1670
+ if (allRows.length > maxTableRows) {
1671
+ this.volcanoDom.pValueTable.append("div").style("padding", "5px 10px").style("font-size", ".8em").style("color", "#666").text(
1672
+ `Showing top ${maxTableRows.toLocaleString()} of ${allRows.length.toLocaleString()} significant results (sorted by fold-change)`
1673
+ );
1674
+ }
1675
+ renderTable({
1676
+ columns: this.viewData.pValueTableData.columns,
1677
+ rows,
1678
+ div: this.volcanoDom.pValueTable,
1679
+ showLines: true,
1680
+ maxHeight: `${this.viewData.pValueTableData.height}px`,
1681
+ resize: true,
1682
+ header: { allowSort: true },
1683
+ noRadioBtn: true,
1684
+ noButtonCallback: (i) => {
1685
+ const key = this.viewData.pValueTableData.rowKeys.get(rows[i]);
1686
+ if (!key) return;
1687
+ this.interactions.highlightDataPoint(key);
1688
+ },
1689
+ hoverEffects: (tr, row) => {
1690
+ const circles = this.volcanoDom.plot.selectAll("circle").nodes();
1691
+ const key = this.viewData.pValueTableData.rowKeys.get(row);
1692
+ const dataKey = this.termType === DATermTypes.DNA_METHYLATION ? "promoter_id" : "gene_name";
1693
+ const circle = circles.find((d) => d.__data__[dataKey] == key);
1694
+ if (!circle || circle.__data__.highlighted) return;
1695
+ let clone;
1696
+ tr.on("mouseover", () => {
1697
+ if (circle.__data__.highlighted || clone) return;
1698
+ clone = this.volcanoDom.plot.node()?.appendChild(circle.cloneNode(true));
1699
+ clone.setAttribute("fill-opacity", 0.9);
1700
+ });
1701
+ tr.on("mouseleave", () => {
1702
+ if (!clone) return;
1703
+ clone.remove();
1704
+ clone = null;
1705
+ });
1706
+ this.volcanoDom.pValueTable.on("mouseover", () => {
1707
+ selectAll_default(circles).attr("stroke-opacity", 0.075);
1708
+ });
1709
+ this.volcanoDom.pValueTable.on("mouseleave", () => {
1710
+ selectAll_default(circles).attr("stroke-opacity", (d) => d.significant ? 0.35 : 0.2);
1711
+ });
1712
+ }
1713
+ });
1714
+ }
1715
+ setSvgSubscriptLabel(textElem, prefix, subscript, suffix) {
1716
+ textElem.text(null);
1717
+ textElem.append("tspan").text(prefix);
1718
+ textElem.append("tspan").attr("baseline-shift", "sub").attr("font-size", "0.7em").text(subscript);
1719
+ textElem.append("tspan").text(suffix);
1720
+ }
1721
+ attachInteractions(plotDim) {
1722
+ const points = this.viewData.pointData;
1723
+ if (!points || points.length === 0) return;
1724
+ const dotRadiusPx = this.viewData.plotExtent.dotRadiusPx;
1725
+ const hitRadius = dotRadiusPx + 3;
1726
+ const highlightRadius = Math.max(0.5, dotRadiusPx - 0.5);
1727
+ const highlightColor = this.settings.defaultHighlightColor;
1728
+ const hoverLayer = this.volcanoDom.plot.append("g").attr("id", "sjpp-volcano-hover").style("pointer-events", "none");
1729
+ 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");
1730
+ const circlePath = (r) => `M${r},0 A${r},${r} 0 1,1 ${-r},0 A${r},${r} 0 1,1 ${r},0 Z`;
1731
+ const link = this.viewData.scan ? {
1732
+ points,
1733
+ region: (d) => ({ chr: d.chr, start: d.start, stop: d.stop }),
1734
+ highlight: (dots) => {
1735
+ drawHoverShapes(
1736
+ linkedLayer,
1737
+ dots.map((d) => ({
1738
+ path: circlePath(dotRadiusPx + 2),
1739
+ transform: `translate(${d.x},${d.y})`,
1740
+ stroke: "black",
1741
+ strokeWidth: 2
1742
+ }))
1743
+ );
1744
+ }
1745
+ } : void 0;
1746
+ const linkedLayer = this.volcanoDom.plot.append("g").style("pointer-events", "none");
1747
+ if (link) this.linked.push(link);
1748
+ new DataPointInteractions({
1749
+ cover,
1750
+ hoverLayer,
1751
+ hoverTip: this.dom.tip,
1752
+ points,
1753
+ // Quadtree in cover-local space — d.x/d.y are SVG-absolute, so subtract
1754
+ // the plot rect's origin once when building the tree.
1755
+ getX: (d) => d.x - plotDim.plot.x,
1756
+ getY: (d) => d.y - plotDim.plot.y,
1757
+ hitRadius,
1758
+ toHoverSpec: (d) => ({
1759
+ path: circlePath(highlightRadius),
1760
+ // Hover layer lives in the same coord space as the dots (SVG-absolute),
1761
+ // so translate by d.x/d.y — NOT the cover-local pair.
1762
+ transform: `translate(${d.x},${d.y})`,
1763
+ fill: highlightColor,
1764
+ fillOpacity: 0.9,
1765
+ stroke: "none"
1766
+ }),
1767
+ maxTooltipRows: this.settings.maxTooltipGenes,
1768
+ ...link ? { onHover: (dots) => this.mirrorHover(link, dots) } : {},
1769
+ itemNoun: "gene",
1770
+ renderSingleHoverTooltip: (d, container) => {
1771
+ const table = table2col({ holder: container.append("table") });
1772
+ this.addTooltipRows(d, table);
1773
+ },
1774
+ buildMultiHitTableData: (dots) => this.buildMultiHitTable(dots),
1775
+ getActions: (d) => this.getActionMenuOpts(d),
1776
+ renderSingleHitInfo: (d, container) => {
1777
+ const tbl = table2col({ holder: container.append("table") });
1778
+ this.addTooltipRows(d, tbl);
1779
+ },
1780
+ getRowKey: (d) => d.gene_name
1781
+ }).attach();
1782
+ }
1783
+ /** Whether the effect size on show is delta-beta rather than log2 fold-change. Methylation
1784
+ * fold-change is a difference of logits: it ranks elements correctly but says nothing about
1785
+ * how much methylation moved, so it must not be what a reader is handed next to a delta-beta
1786
+ * axis. Read by both hover paths -- the single-point tooltip and the multi-point table -- so
1787
+ * the two cannot disagree about which number they show. */
1788
+ get onDeltaBeta() {
1789
+ return this.termType === DATermTypes.DNA_METHYLATION && this.settings.xAxis === "delta_beta";
1790
+ }
1791
+ buildMultiHitTable(dots) {
1792
+ const isDM = this.termType === DATermTypes.DNA_METHYLATION;
1793
+ const isDAP = this.termType === DATermTypes.PROTEOME_DAP;
1794
+ const effectLabel = this.onDeltaBeta ? "\u0394\u03B2" : "log\u2082(FC)";
1795
+ const pValueType = this.settings.pValueType;
1796
+ const { pValueLabel, singlePValue } = this.viewData;
1797
+ const pLabel = pValueLabel.charAt(0).toUpperCase() + pValueLabel.slice(1);
1798
+ const pField = singlePValue ? "original_p_value" : `${pValueType}_p_value`;
1799
+ const columns = isDM ? [
1800
+ { label: elementNoun(this.settings?.elementType).one },
1801
+ { label: "Gene(s)" },
1802
+ { label: effectLabel, sortable: true },
1803
+ { label: pLabel, sortable: true }
1804
+ ] : isDAP ? [
1805
+ { label: "Identifier" },
1806
+ { label: "Gene" },
1807
+ { label: effectLabel, sortable: true },
1808
+ { label: pLabel, sortable: true }
1809
+ ] : [{ label: "Gene" }, { label: effectLabel, sortable: true }, { label: pLabel, sortable: true }];
1810
+ const rows = dots.map((d) => {
1811
+ const fc = { value: roundValueAuto(this.onDeltaBeta ? d.delta_beta : d.fold_change) };
1812
+ const pval = { value: roundValueAuto(d[pField]) };
1813
+ if (isDM) {
1814
+ return [{ value: formatPromoterLabel(d) }, { value: d.gene_name || "" }, fc, pval];
1815
+ }
1816
+ if (isDAP) {
1817
+ return [{ value: d.gene_name || "" }, { value: d.gene || "" }, fc, pval];
1818
+ }
1819
+ return [{ value: d.gene_name || "" }, fc, pval];
1820
+ });
1821
+ return { columns, rows };
1822
+ }
1823
+ /** Per-data-point action menu items (Violin / DMR / Box-plot). Used by
1824
+ * both the single-gene click flow and the multi-gene click-menu rows so
1825
+ * the launchers stay in lock-step. */
1826
+ getActionMenuOpts(d) {
1827
+ const termType = this.termType;
1828
+ const interactions = this.interactions;
1829
+ const all = [
1830
+ {
1831
+ label: "Violin plot",
1832
+ isVisible: () => termType === DATermTypes.DNA_METHYLATION || termType === DATermTypes.GENE_EXPRESSION,
1833
+ onClick: async () => {
1834
+ if (termType === DATermTypes.DNA_METHYLATION) interactions.launchDNAMethViolin(d);
1835
+ if (termType === DATermTypes.GENE_EXPRESSION) interactions.launchViolinGeneExp(d.gene_name);
1836
+ }
1837
+ },
1838
+ {
1839
+ /* A scan has already called every DMR: the browser shows them from the cache, beside
1840
+ the genes and cCREs, where the region view would re-fit the chromosome to draw the same
1841
+ track. The region view stays for the element classes, whose hits are not yet DMRs. */
1842
+ label: "Genome browser",
1843
+ isVisible: () => termType === DATermTypes.DNA_METHYLATION && !!this.viewData.scan,
1844
+ onClick: async () => {
1845
+ const dm = d;
1846
+ await interactions.launchScanGenomeBrowser(dm, this.viewData.scan);
1847
+ }
1848
+ },
1849
+ {
1850
+ label: "DMR analysis",
1851
+ isVisible: () => termType === DATermTypes.DNA_METHYLATION && !this.viewData.scan,
1852
+ onClick: async () => {
1853
+ const dm = d;
1854
+ await interactions.launchDmr({
1855
+ chr: dm.chr,
1856
+ start: dm.start,
1857
+ stop: dm.stop,
1858
+ promoterId: dm.promoter_id
1859
+ });
1860
+ }
1861
+ },
1862
+ {
1863
+ label: "Box plot",
1864
+ isVisible: () => termType === DATermTypes.GENE_EXPRESSION,
1865
+ onClick: async () => {
1866
+ interactions.launchBoxPlot(d.gene_name);
1867
+ }
1868
+ }
1869
+ ];
1870
+ return all.filter((o) => o.isVisible()).map(({ label, onClick }) => ({ label, onClick }));
1871
+ }
1872
+ /** Populates a `table2col` instance with the standard volcano hover rows
1873
+ * (gene/promoter, fold-change, original + adjusted p-values). */
1874
+ addTooltipRows(d, table) {
1875
+ if (this.termType === DATermTypes.DNA_METHYLATION) {
1876
+ if ("promoter_id" in d)
1877
+ addTooltipRow(table, elementNoun(this.settings?.elementType).one, formatPromoterLabel(d));
1878
+ if (d.gene_name) addTooltipRow(table, "Gene(s)", d.gene_name);
1879
+ } else if (this.termType === DATermTypes.PROTEOME_DAP) {
1880
+ addTooltipRow(table, "Identifier", d.gene_name);
1881
+ if ("gene" in d) addTooltipRow(table, "Gene", d.gene);
1882
+ } else {
1883
+ addTooltipRow(table, "Gene name", d.gene_name);
1884
+ }
1885
+ if (this.onDeltaBeta) {
1886
+ addTooltipRow(table, "\u0394\u03B2", roundValueAuto(d.delta_beta));
1887
+ } else {
1888
+ addTooltipRow(table, "log<sub>2</sub>(fold-change)", roundValueAuto(d.fold_change));
1889
+ }
1890
+ if (this.viewData.singlePValue) {
1891
+ addTooltipRow(table, this.viewData.pValueLabel, roundValueAuto(d.original_p_value));
1892
+ } else {
1893
+ addTooltipRow(table, "Original p-value", roundValueAuto(d.original_p_value));
1894
+ if (d.adjusted_p_value != void 0) addTooltipRow(table, "Adjusted p-value", roundValueAuto(d.adjusted_p_value));
1895
+ }
1896
+ }
1897
+ };
1898
+ function addTooltipRow(table, text, value) {
1899
+ const [td1, td2] = table.addRow();
1900
+ td1.html(text);
1901
+ td2.text(value);
1902
+ }
1903
+ function renderDataPoints(self) {
1904
+ 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");
1905
+ }
1906
+
1907
+ // plots/volcano/VolcanoControlInputs.ts
1908
+ var isScan = (plot) => plot?.settings?.volcano?.elementType == DMR_SCAN_ELEMENT_TYPE;
1909
+ var VolcanoControlInputs = class {
1910
+ constructor(config, termType, elementTypes, chromosomes) {
1911
+ this.config = config;
1912
+ if (this.config.termType == GENE_EXPRESSION) this.sampleNum = getSampleNum(config);
1913
+ this.termType = termType;
1914
+ this.elementTypes = elementTypes || [];
1915
+ this.chromosomes = chromosomes || [];
1916
+ this.inputs = [
1917
+ {
1918
+ // DAP volcanoes threshold a single FDR (adjusted p-value); other term types
1919
+ // threshold a p-value.
1920
+ label: this.config.termType == PROTEOME_DAP ? "FDR significance (-log\u2081\u2080)" : "P value significance (-log\u2081\u2080)",
1921
+ type: "number",
1922
+ chartType: "volcano",
1923
+ settingsKey: "pValue",
1924
+ title: this.config.termType == PROTEOME_DAP ? "The FDR threshold to determine statistical significance" : "The p-value threshold to determine statistical significance",
1925
+ min: 0,
1926
+ // 5e-324 is the smallest positive number greater than 0 representable
1927
+ // in IEEE 64-bit floating point (i.e. javascripts native Number.MIN_VALUE)
1928
+ // -Math.log10(5e-324) = 323.3
1929
+ max: 323.3,
1930
+ step: 1
1931
+ },
1932
+ {
1933
+ label: "P value",
1934
+ type: "radio",
1935
+ chartType: "volcano",
1936
+ settingsKey: "pValueType",
1937
+ title: "Toggle between original and adjusted pvalues for volcano plot",
1938
+ // DAP files carry only a single FDR, and a DMR scan a single p, so there is nothing to
1939
+ // toggle between
1940
+ getDisplayStyle: (plot) => this.config.termType == PROTEOME_DAP || isScan(plot) ? "none" : "",
1941
+ options: [
1942
+ { label: "Adjusted", value: "adjusted" },
1943
+ { label: "Original", value: "original" }
1944
+ ]
1945
+ },
1946
+ /* Hidden for differential methylation: a DM run plots and thresholds on delta-beta,
1947
+ so a log2 cutoff would set a limit in units the plot never shows. Every other term
1948
+ type still gets it. */
1949
+ ...this.termType === DNA_METHYLATION ? [] : [
1950
+ {
1951
+ label: "Fold change (log\u2082)",
1952
+ type: "number",
1953
+ chartType: "volcano",
1954
+ settingsKey: "foldChangeCutoff",
1955
+ title: "The fold change threshold to determine biological significance",
1956
+ min: -10,
1957
+ max: 10
1958
+ }
1959
+ ],
1960
+ {
1961
+ label: "Max interactive dots",
1962
+ type: "number",
1963
+ chartType: "volcano",
1964
+ settingsKey: "maxInteractiveDots",
1965
+ title: "Cap on the number of top-significant points the server returns as interactive overlay circles. The PNG still shows every dot.",
1966
+ min: 0,
1967
+ max: 2e4,
1968
+ step: 100
1969
+ },
1970
+ //Preferably, keep all the display (e.g. colors, sizes, etc.) controls
1971
+ //at the bottom of the list or at least together
1972
+ {
1973
+ label: "Plot height",
1974
+ type: "number",
1975
+ chartType: "volcano",
1976
+ settingsKey: "height",
1977
+ title: "Height of the plot in pixels",
1978
+ min: 300,
1979
+ max: 1e3
1980
+ },
1981
+ {
1982
+ label: "Plot width",
1983
+ type: "number",
1984
+ chartType: "volcano",
1985
+ settingsKey: "width",
1986
+ title: "Width of the plot in pixels",
1987
+ min: 300,
1988
+ max: 1e3
1989
+ },
1990
+ {
1991
+ label: "Significant value color",
1992
+ type: "color",
1993
+ chartType: "volcano",
1994
+ title: "Default color for significant data points.",
1995
+ settingsKey: "defaultSignColor",
1996
+ getDisplayStyle: () => {
1997
+ if (this.config.termType == SINGLECELL_CELLTYPE) return "none";
1998
+ const controlColor = this.config.tw?.term?.values?.[this.config.samplelst.groups[0].name]?.color;
1999
+ const caseColor = this.config.tw?.term?.values?.[this.config.samplelst.groups[1].name].color;
2000
+ if (controlColor && caseColor) return "none";
2001
+ else return "";
2002
+ }
2003
+ },
2004
+ {
2005
+ label: "Non-significant value color",
2006
+ type: "color",
2007
+ chartType: "volcano",
2008
+ title: "Default color for non-significant data points.",
2009
+ settingsKey: "defaultNonSignColor"
2010
+ },
2011
+ {
2012
+ label: "Highlight color",
2013
+ type: "color",
2014
+ chartType: "volcano",
2015
+ title: "Default color for highlighted data points.",
2016
+ settingsKey: "defaultHighlightColor"
2017
+ }
2018
+ ];
2019
+ this.setVolcanoControlInputs();
2020
+ }
2021
+ /** Add more term type specific controls here. */
2022
+ setVolcanoControlInputs() {
2023
+ this.addGeneExpControlInputs();
2024
+ this.addDNAMethControlInputs();
2025
+ this.addSingleCellCTControlInputs();
2026
+ }
2027
+ addGeneExpControlInputs() {
2028
+ if (this.termType !== GENE_EXPRESSION) return;
2029
+ const geInputs = [
2030
+ {
2031
+ label: "Minimum read count",
2032
+ type: "number",
2033
+ chartType: "volcano",
2034
+ settingsKey: "minCount",
2035
+ title: "The smallest number of reads required for a gene to be considered in the analysis",
2036
+ min: 0,
2037
+ max: 1e4
2038
+ },
2039
+ {
2040
+ label: "Minimum total read count",
2041
+ type: "number",
2042
+ chartType: "volcano",
2043
+ settingsKey: "minTotalCount",
2044
+ title: "The smallest total number of reads required for a gene to be considered in the analysis",
2045
+ min: 0,
2046
+ max: 1e4
2047
+ },
2048
+ {
2049
+ label: "CPM cutoff",
2050
+ type: "number",
2051
+ chartType: "volcano",
2052
+ settingsKey: "cpmCutoff",
2053
+ title: "The minimum normalized expression threshold to retain only genes with sufficient expression",
2054
+ min: 0
2055
+ },
2056
+ {
2057
+ label: "Method",
2058
+ type: "radio",
2059
+ chartType: "volcano",
2060
+ settingsKey: "method",
2061
+ title: "Toggle between analysis methods",
2062
+ options: this.getMethodOptions()
2063
+ }
2064
+ // {
2065
+ // label: 'Rank Genes by',
2066
+ // type: 'radio',
2067
+ // chartType: 'volcano',
2068
+ // settingsKey: 'rankBy',
2069
+ // title: 'Rank genes by either the absolute value of the fold change or the variance',
2070
+ // options: [
2071
+ // { label: 'abs(Fold Change)', value: 'abs(foldChange)' },
2072
+ // { label: 'Variance', value: 'variance' }
2073
+ // ],
2074
+ // //TODO: will enable this feature when there is backhand support
2075
+ // getDisplayStyle: () => 'none'
2076
+ // }
2077
+ ];
2078
+ this.inputs.splice(0, 0, ...geInputs);
2079
+ }
2080
+ addDNAMethControlInputs() {
2081
+ if (this.termType !== DNA_METHYLATION) return;
2082
+ const scanOnly = (plot) => isScan(plot) ? "" : "none";
2083
+ const notScan = (plot) => isScan(plot) ? "none" : "";
2084
+ const dmInputs = [
2085
+ /* Element class comes FIRST because it is categorically different from the
2086
+ controls below it: those tune how the test is run, this one changes what is
2087
+ being tested. Promoters, eQTM blocks, and cCRE classes are different genomic
2088
+ features with different coordinates and different test counts, so switching
2089
+ produces a different analysis rather than a refined one.
2090
+
2091
+ Hidden unless the dataset offers a genuine choice -- a single class means
2092
+ there is nothing to pick, and a dataset using the legacy promoter-only config
2093
+ gets no new UI at all. */
2094
+ ...this.elementTypes.length > 1 ? [
2095
+ {
2096
+ label: "Element class",
2097
+ type: "dropdown",
2098
+ chartType: "volcano",
2099
+ settingsKey: "elementType",
2100
+ options: this.elementTypes.map((e) => ({ value: e.key, label: e.label })),
2101
+ 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."
2102
+ }
2103
+ ] : [],
2104
+ /* The scan's own knobs, shown only while the scan is the selected class. The chromosome
2105
+ picker is a plain dropdown rather than the region search box: string2pos() turns a bare
2106
+ "chr20" into a 20kb window at the chromosome midpoint, which would silently scan 0.005% of
2107
+ the target. chrM is left out -- 16.5 kb of circular DNA that cannot carry a domain. */
2108
+ {
2109
+ label: "Scan",
2110
+ type: "dropdown",
2111
+ chartType: "volcano",
2112
+ settingsKey: "scanChromosome",
2113
+ getDisplayStyle: scanOnly,
2114
+ options: [
2115
+ { value: "", label: "Whole genome" },
2116
+ ...this.chromosomes.filter((c) => c != "chrM" && c != "chrMT").map((c) => ({ value: c, label: c }))
2117
+ ],
2118
+ 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."
2119
+ },
2120
+ {
2121
+ label: "Correct for background drift",
2122
+ type: "checkbox",
2123
+ chartType: "volcano",
2124
+ settingsKey: "backgroundCorrection",
2125
+ boxLabel: "",
2126
+ getDisplayStyle: scanOnly,
2127
+ 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.'
2128
+ },
2129
+ {
2130
+ label: "Min CpGs per DMR",
2131
+ type: "number",
2132
+ chartType: "volcano",
2133
+ settingsKey: "minCpgs",
2134
+ getDisplayStyle: scanOnly,
2135
+ min: 1,
2136
+ max: 1e3,
2137
+ 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."
2138
+ },
2139
+ /* DMRcate's region-shape knobs. Unlike the CpG floor these change the fit's output, so each
2140
+ one refits the scan (and gets its own cache entry). */
2141
+ {
2142
+ label: "DMR bandwidth \u03BB (bp)",
2143
+ type: "number",
2144
+ chartType: "volcano",
2145
+ settingsKey: "lambda",
2146
+ getDisplayStyle: scanOnly,
2147
+ min: 50,
2148
+ max: 1e5,
2149
+ step: 50,
2150
+ 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)."
2151
+ },
2152
+ {
2153
+ label: "DMR kernel scaling C",
2154
+ type: "number",
2155
+ chartType: "volcano",
2156
+ settingsKey: "C",
2157
+ getDisplayStyle: scanOnly,
2158
+ min: 0.5,
2159
+ max: 50,
2160
+ step: 0.5,
2161
+ 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."
2162
+ },
2163
+ {
2164
+ label: "Per-CpG FDR cutoff",
2165
+ type: "number",
2166
+ chartType: "volcano",
2167
+ settingsKey: "fdrCutoff",
2168
+ getDisplayStyle: scanOnly,
2169
+ min: 1e-4,
2170
+ max: 0.5,
2171
+ step: 0.01,
2172
+ 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."
2173
+ },
2174
+ {
2175
+ /* Display width for the methylome-wide profile only. The metric is the 100 kb bin and
2176
+ the Statistics rows stay on it whatever this says -- this is here because 29,000 dots
2177
+ over 1,000 px overlap however small the dot, so the native figure reads as a band. */
2178
+ label: "Profile bin width",
2179
+ type: "dropdown",
2180
+ chartType: "volcano",
2181
+ settingsKey: "profileBinBp",
2182
+ getDisplayStyle: scanOnly,
2183
+ options: [
2184
+ { value: 1e5, label: "100 Kb (native)" },
2185
+ { value: 5e5, label: "500 Kb" },
2186
+ { value: 1e6, label: "1 Mb" },
2187
+ { value: 5e6, label: "5 Mb" }
2188
+ ],
2189
+ // a <select> hands back its value as a string; the setting is a width in bp
2190
+ processInput: (v) => Number(v),
2191
+ 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."
2192
+ },
2193
+ {
2194
+ label: "Min samples per group",
2195
+ type: "number",
2196
+ chartType: "volcano",
2197
+ settingsKey: "minSamplesPerGroup",
2198
+ title: "Minimum non-NA samples required per group for a promoter to be tested",
2199
+ // the scan resolves its own groups (3+ per group, fixed) and has no per-element NA filter
2200
+ getDisplayStyle: notScan,
2201
+ min: 1,
2202
+ max: 100
2203
+ },
2204
+ {
2205
+ label: "Exclude sex chromosomes",
2206
+ type: "checkbox",
2207
+ chartType: "volcano",
2208
+ settingsKey: "excludeSexChr",
2209
+ boxLabel: "",
2210
+ // the scan honours it too: scanChromosomes() drops chrX/chrY from a whole-genome scan
2211
+ 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."
2212
+ },
2213
+ {
2214
+ label: "Center \u0394\u03B2 on median",
2215
+ type: "checkbox",
2216
+ chartType: "volcano",
2217
+ settingsKey: "centerDeltaBeta",
2218
+ boxLabel: "",
2219
+ // the background correction is the scan's version of this question
2220
+ getDisplayStyle: notScan,
2221
+ 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.'
2222
+ },
2223
+ {
2224
+ label: "Min \u0394\u03B2",
2225
+ type: "number",
2226
+ chartType: "volcano",
2227
+ settingsKey: "deltaBetaCutoff",
2228
+ 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.",
2229
+ min: 0,
2230
+ max: 1,
2231
+ step: 0.01
2232
+ }
2233
+ ];
2234
+ this.inputs.splice(0, 0, ...dmInputs);
2235
+ }
2236
+ addSingleCellCTControlInputs() {
2237
+ if (this.termType !== SINGLECELL_CELLTYPE) return;
2238
+ const scctInputs = [];
2239
+ this.inputs.splice(0, 0, ...scctInputs);
2240
+ }
2241
+ getMethodOptions() {
2242
+ if (this.termType !== GENE_EXPRESSION) return;
2243
+ const settings = this.config.settings.volcano;
2244
+ const features = JSON.parse(sessionStorage.getItem("optionalFeatures"));
2245
+ if (features?.runDE_methods?.length) {
2246
+ const opts = [];
2247
+ for (const m of features.runDE_methods) {
2248
+ opts.push({ label: m, value: m.toLowerCase() });
2249
+ }
2250
+ return opts;
2251
+ }
2252
+ if (this.sampleNum < settings.sampleNumCutoff) {
2253
+ return [
2254
+ { label: "edgeR", value: "edgeR" },
2255
+ { label: "Wilcoxon", value: "wilcoxon" },
2256
+ { label: "Limma", value: "limma" }
2257
+ ];
2258
+ } else return [{ label: "Wilcoxon", value: "wilcoxon" }];
2259
+ }
2260
+ };
2261
+
2262
+ // plots/volcano/Volcano.ts
2263
+ var MIN_WILCOXON_GROUP_SIZE = 20;
2264
+ var Volcano = class _Volcano extends PlotBase {
2265
+ static {
2266
+ this.type = "volcano";
2267
+ }
2268
+ constructor(opts, api) {
2269
+ super(opts, api);
2270
+ if (this.opts.parentId) this.parentId = this.opts.parentId;
2271
+ this.type = _Volcano.type;
2272
+ this.components = {
2273
+ controls: {}
2274
+ };
2275
+ this.termType = opts.termType;
2276
+ const holder = opts.holder.classed("sjpp-volcano-main", true).attr("data-testid", `sjpp-volcano-main-${opts.termType}`);
2277
+ const controls = typeof opts.controls == "object" ? opts.controls : holder || holder.append("div");
2278
+ const error = opts.holder.append("div").attr("id", "sjpp-volcano-error").attr("data-testid", `sjpp-volcano-error-${opts.termType}`).style("opacity", 0.75);
2279
+ this.dom = {
2280
+ holder,
2281
+ controls,
2282
+ error,
2283
+ 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..."),
2284
+ tip: new Menu({ padding: "" }),
2285
+ actionsTip: new Menu({ padding: "" })
2286
+ };
2287
+ }
2288
+ getState(appState) {
2289
+ const config = appState.plots.find((p) => p.id === this.id);
2290
+ if (!config) {
2291
+ throw new Error(
2292
+ `No plot with id='${this.id}' found. Did you set this.id before this.api = getComponentApi(this)?`
2293
+ );
2294
+ }
2295
+ const parentConfig = this.parentId && appState.plots.find((p) => p.id === this.parentId);
2296
+ const termfilter = getCombinedTermFilter(appState, config.filter || parentConfig?.filter);
2297
+ return {
2298
+ config: Object.assign({}, config, {
2299
+ settings: {
2300
+ volcano: config.settings.volcano
2301
+ }
2302
+ }),
2303
+ termfilter
2304
+ };
2305
+ }
2306
+ async setControls() {
2307
+ const plotConfig = this.app.getState().plots.find((p) => p.id === this.id);
2308
+ const controls = new VolcanoControlInputs(
2309
+ plotConfig,
2310
+ this.termType,
2311
+ this.app.vocabApi.termdbConfig?.queries?.dnaMethylation?.elementTypes,
2312
+ this.app.opts.genome?.majorchrorder
2313
+ );
2314
+ this.components.controls = await controlsInit({
2315
+ app: this.app,
2316
+ id: this.id,
2317
+ holder: this.dom.controls.style("display", "inline-block"),
2318
+ inputs: controls.inputs
2319
+ });
2320
+ this.components.controls.on("downloadClick.volcano", () => this.interactions.download(this.termType));
2321
+ if (plotConfig.chartType == "differentialAnalysis")
2322
+ this.components.controls.on(
2323
+ "helpClick.differentialAnalysis",
2324
+ () => (
2325
+ //Opens the page for the differential analysis wiki
2326
+ //Can't put in parent as DA does not have a controls component
2327
+ window.open("https://github.com/stjude/proteinpaint/wiki/Differential-analysis")
2328
+ )
2329
+ );
2330
+ }
2331
+ async init() {
2332
+ this.interactions = new VolcanoInteractions(this.app, this.id, this.dom);
2333
+ this.model = new VolcanoModel(this, this.termType);
2334
+ this.view = new VolcanoPlotView(this.dom, this.interactions, this.termType);
2335
+ await this.setControls();
2336
+ }
2337
+ async main() {
2338
+ if (!this.interactions) throw new Error("Volcano Interactions not initialized");
2339
+ if (!this.model) throw new Error("Volcano Model not initialized");
2340
+ if (!this.view) throw new Error("Volcano View not initialized");
2341
+ const config = structuredClone(this.state.config);
2342
+ if (config.chartType != this.type && config.childType != this.type) return;
2343
+ const settings = config.settings.volcano;
2344
+ try {
2345
+ this.dom.wait.text(
2346
+ 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..."
2347
+ );
2348
+ const showWait = setTimeout(() => {
2349
+ this.dom.wait.style("display", "block");
2350
+ }, 500);
2351
+ const response = await this.model.getData(config, settings);
2352
+ this.dom.error.text("");
2353
+ if (!response || response.error || !response.data || !response.data.volcanoPng || !response.data.totalRows) {
2354
+ const msg = response?.error || "No data returned from server";
2355
+ if (response?.code === "CACHE_BUSY") {
2356
+ if (window.confirm(msg)) this.main();
2357
+ } else sayerror(this.dom.error, msg);
2358
+ clearTimeout(showWait);
2359
+ this.dom.wait.style("display", "none");
2360
+ return;
2361
+ }
2362
+ const viewModel = new VolcanoViewModel(config, response, settings);
2363
+ this.interactions.pValueTableData = viewModel.viewData.pValueTableData;
2364
+ this.interactions.data = response.data.dots;
2365
+ this.interactions.totalSignificantRows = response.data.totalSignificantRows;
2366
+ this.interactions.provenance = viewModel.viewData.provenance;
2367
+ this.interactions.fetchAllRows = async () => {
2368
+ const full = await new VolcanoModel(this, this.termType).getData(config, {
2369
+ ...settings,
2370
+ maxInteractiveDots: null
2371
+ });
2372
+ if (!full || full.error || !full.data?.dots) throw new Error(full?.error || "no rows returned");
2373
+ return new VolcanoViewModel(config, full, settings).viewData.pValueTableData;
2374
+ };
2375
+ this.view.render(settings, viewModel.viewData);
2376
+ const notes = [];
2377
+ if (!response.data.dots.length) notes.push("No points passed the significance thresholds.");
2378
+ const smallestGroup = Math.min(response.sample_size1, response.sample_size2);
2379
+ if (settings.method == "wilcoxon" && smallestGroup < MIN_WILCOXON_GROUP_SIZE) {
2380
+ const samplesLabel = uiLabel(this.app.vocabApi.termdbConfig?.uiLabels, "samples", "samples");
2381
+ notes.push(
2382
+ `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.`
2383
+ );
2384
+ }
2385
+ if (notes.length) this.dom.error.text(notes.join(" ")).style("color", "#555");
2386
+ clearTimeout(showWait);
2387
+ this.dom.wait.style("display", "none");
2388
+ } catch (e) {
2389
+ if (e instanceof Error) console.error(e.message || e);
2390
+ else if (e.stack) console.log(e.stack);
2391
+ throw e;
2392
+ }
2393
+ }
2394
+ };
2395
+ var volcanoInit = getCompInit(Volcano);
2396
+ var componentInit = volcanoInit;
2397
+ async function getPlotConfig(opts, app) {
2398
+ if (!opts.termType) throw new Error(".termType is required");
2399
+ const config = {
2400
+ settings: {
2401
+ // app is passed through so the defaults can read the dataset's preferred starting
2402
+ // element class from termdbConfig; opts alone does not carry it
2403
+ volcano: getDefaultVolcanoSettings(opts.overrides, { ...opts, app })
2404
+ },
2405
+ highlightedData: opts.highlightedData || [],
2406
+ termType: opts.termType
2407
+ };
2408
+ if (opts.termType == GENE_EXPRESSION || opts.termType == DNA_METHYLATION) {
2409
+ if (opts.confounderTws) {
2410
+ try {
2411
+ for (const tw of opts.confounderTws) {
2412
+ await fillTermWrapper(tw, app.vocabApi);
2413
+ }
2414
+ } catch (e) {
2415
+ console.error(e.message || e);
2416
+ throw new Error(`Volcano getPlotConfig() failed to fill confounder term wrappers: ${e}`);
2417
+ }
2418
+ }
2419
+ Object.assign(config, {
2420
+ confounderTws: opts.confounderTws || [],
2421
+ samplelst: opts.samplelst
2422
+ });
2423
+ }
2424
+ if (opts.termType == SINGLECELL_CELLTYPE) {
2425
+ Object.assign(config, {
2426
+ //TODO: Fix this logic
2427
+ sample: opts.experimentID || opts.sample || opts.samples?.[0]?.experiments[0]?.experimentID,
2428
+ termId: app.vocabApi.termdbConfig.queries.singleCell.DEgenes.termId,
2429
+ //TODO: 'Cluster' is a fallback for development
2430
+ //Should require opts.categoryName in the future
2431
+ categoryName: opts.categoryName || "Cluster"
2432
+ });
2433
+ }
2434
+ validateVolcanoSettings(config, opts);
2435
+ return copyMerge(config, opts);
2436
+ }
2437
+ export {
2438
+ Volcano,
2439
+ componentInit,
2440
+ getPlotConfig,
2441
+ volcanoInit
2442
+ };
2443
+ //# sourceMappingURL=Volcano-64S4AW66.js.map