@sjcrh/proteinpaint-client 2.209.0 → 2.210.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 (888) hide show
  1. package/dist/2dmaf-43QBND66.js +1367 -0
  2. package/dist/AggMatrixInput-X7NGFUHH.js +406 -0
  3. package/dist/AggregateMatrix-M4HRI4PX.js +41 -0
  4. package/dist/AppHeader-QBRQN6PM.js +830 -0
  5. package/dist/BoxPlot-V6SPSEQ2.js +1211 -0
  6. package/dist/CorrelationVolcano-UFPCYC77.js +617 -0
  7. package/dist/Cuminc-KXGXGLKZ.js +1219 -0
  8. package/dist/DE-K2YXHOOW.js +89 -0
  9. package/dist/DEinput-O6LBFAAH.js +501 -0
  10. package/dist/DEinput-O6LBFAAH.js.map +7 -0
  11. package/dist/DM-C7VN3RWB.js +90 -0
  12. package/dist/DifferentialAnalysis-A2BU4WB3.js +239 -0
  13. package/dist/Disco-HECQVKXG.js +3389 -0
  14. package/dist/Disco.UI-XF2GEKRW.js +243 -0
  15. package/dist/DmrPlot-TVXVXOHL.js +362 -0
  16. package/dist/GB-66ZGJ5ST.js +1428 -0
  17. package/dist/GSEA-Z4YPI4HY.js +875 -0
  18. package/dist/GeneExpInput-VBIZZV27.js +42 -0
  19. package/dist/Geomap-UIIOLRFA.js +84 -0
  20. package/dist/HicApp-73ESVNBA.js +2245 -0
  21. package/dist/IDCViewer-RBYN5A4P.js +10812 -0
  22. package/dist/NumBinaryEditor-DJLSNSLE.js +279 -0
  23. package/dist/NumBinaryEditor.unit.spec-LCJHL3XM.js +312 -0
  24. package/dist/NumContEditor-SVLDJ2ML.js +105 -0
  25. package/dist/NumContEditor.unit.spec-JDMSK4HY.js +164 -0
  26. package/dist/NumCustomBinEditor-BI63AH3R.js +33 -0
  27. package/dist/NumCustomBinEditor.unit.spec-5433G7Y2.js +397 -0
  28. package/dist/NumDiscreteEditor-LEZTGXAV.js +170 -0
  29. package/dist/NumDiscreteEditor.unit.spec-5OEORHJ4.js +233 -0
  30. package/dist/NumRegularBinEditor-EXWHIWPM.js +33 -0
  31. package/dist/NumRegularBinEditor.unit.spec-QY25Z2TT.js +278 -0
  32. package/dist/NumSplineEditor-XPPMYYAD.js +210 -0
  33. package/dist/NumSplineEditor.unit.spec-GOGBKWMN.js +224 -0
  34. package/dist/NumericDensity-RKY2IQ72.js +33 -0
  35. package/dist/NumericDensity.unit.spec-5ZM6ICXM.js +418 -0
  36. package/dist/NumericHandler-FXF3M5M3.js +34 -0
  37. package/dist/NumericHandler.unit.spec-M2OQTBJX.js +214 -0
  38. package/dist/ProteomeInput-TMZ3THRL.js +388 -0
  39. package/dist/Regression-GQGAATHG.js +1416 -0
  40. package/dist/RunChart2-7GNDWRKC.js +749 -0
  41. package/dist/SC-R2I2EMHA.js +1183 -0
  42. package/dist/Violin-GKKEB55L.js +1081 -0
  43. package/dist/Volcano-HRG5EFWH.js +2443 -0
  44. package/dist/Wsi-OHRCGYYD.js +629 -0
  45. package/dist/adSandbox-H56B25WR.js +33 -0
  46. package/dist/animatedBubbleChart-7SXFHU4J.js +547 -0
  47. package/dist/app-22JCSULA.js +42 -0
  48. package/dist/app-RGZJB6LN.js +32 -0
  49. package/dist/app.js +12 -12
  50. package/dist/bam-HA65TRGX.js +876 -0
  51. package/dist/barchart-6XO75OMA.js +42 -0
  52. package/dist/barchart2-6E5BIRHD.js +309 -0
  53. package/dist/block-43KNTXZ5.js +6250 -0
  54. package/dist/block.init-TPU5QIPA.js +33 -0
  55. package/dist/block.mds.expressionrank-QZDRFXCH.js +354 -0
  56. package/dist/block.mds.geneboxplot-64QVBK5Q.js +823 -0
  57. package/dist/block.mds.junction-I4J6VXNT.js +1539 -0
  58. package/dist/block.mds.svcnv-GDQMSQFF.js +6796 -0
  59. package/dist/block.svg-2MZFT5QP.js +159 -0
  60. package/dist/block.tk.aicheck-2MKHF6LX.js +278 -0
  61. package/dist/block.tk.ase-CLYGKFTS.js +360 -0
  62. package/dist/block.tk.bam-XTR4QA5Z.js +1901 -0
  63. package/dist/block.tk.bedgraphdot-A2P2CXRU.js +379 -0
  64. package/dist/block.tk.bigwig.ui-YZH6JXEO.js +206 -0
  65. package/dist/block.tk.hicstraw-QBK5VWGU.js +818 -0
  66. package/dist/block.tk.junction-5DEVBA7G.js +2358 -0
  67. package/dist/block.tk.junction.textmatrixui-7TTQMO6W.js +194 -0
  68. package/dist/block.tk.ld-PRIVUPKL.js +94 -0
  69. package/dist/block.tk.menu-JGBRFSS3.js +1024 -0
  70. package/dist/block.tk.pgv-KQJCJMVD.js +938 -0
  71. package/dist/brainImaging-4SLVJ2HV.js +555 -0
  72. package/dist/brainRegions-BDIVM2SG.js +217 -0
  73. package/dist/bubbleHeatmap-ORKFJNEQ.js +378 -0
  74. package/dist/cellTypeBubbleHeatmap-VOHLI4P7.js +278 -0
  75. package/dist/chunk-26N3B2JO.js +194 -0
  76. package/dist/chunk-2HNJF5ZI.js +240 -0
  77. package/dist/chunk-2LNGHIOC.js +281 -0
  78. package/dist/chunk-3SCQGODD.js +274 -0
  79. package/dist/chunk-47STLK7K.js +518 -0
  80. package/dist/chunk-4XYQG3XU.js +276 -0
  81. package/dist/chunk-53XNEXR6.js +34 -0
  82. package/dist/chunk-55FABQU2.js +24955 -0
  83. package/dist/chunk-55FABQU2.js.map +7 -0
  84. package/dist/chunk-5UB5H7A3.js +123 -0
  85. package/dist/chunk-6FYQYTV6.js +141 -0
  86. package/dist/chunk-6RP6CR4Q.js +182 -0
  87. package/dist/chunk-A5D37SIL.js +103 -0
  88. package/dist/chunk-ADRFQ5AL.js +102 -0
  89. package/dist/chunk-AUZ63NKJ.js +70 -0
  90. package/dist/chunk-B563DUNQ.js +217 -0
  91. package/dist/chunk-BK6UDL7F.js +339 -0
  92. package/dist/chunk-CT4IG5IR.js +339 -0
  93. package/dist/chunk-D6UBH77N.js +1731 -0
  94. package/dist/chunk-DS4GLMJL.js +170 -0
  95. package/dist/chunk-DSBRHWZ7.js +2853 -0
  96. package/dist/chunk-DX35MKPR.js +272 -0
  97. package/dist/chunk-EDZJ3VNZ.js +54 -0
  98. package/dist/chunk-F47A4CVK.js +1339 -0
  99. package/dist/chunk-G4H34RNK.js +446 -0
  100. package/dist/chunk-G7RUMSHL.js +263 -0
  101. package/dist/chunk-GXFS25SK.js +480 -0
  102. package/dist/chunk-I25LKYC4.js +379 -0
  103. package/dist/chunk-I25LKYC4.js.map +7 -0
  104. package/dist/chunk-IAB2PRIH.js +396 -0
  105. package/dist/chunk-IAB2PRIH.js.map +7 -0
  106. package/dist/chunk-IBT6WRY6.js +692 -0
  107. package/dist/chunk-IJ7AIDEO.js +302 -0
  108. package/dist/chunk-JBFVJHZN.js +1233 -0
  109. package/dist/chunk-JDVBUIEU.js +56 -0
  110. package/dist/chunk-K7RW5TPU.js +4375 -0
  111. package/dist/chunk-KIAMLQ7S.js +424 -0
  112. package/dist/chunk-KIAMLQ7S.js.map +7 -0
  113. package/dist/chunk-LBCIXRI2.js +49 -0
  114. package/dist/chunk-MNXL2UV5.js +98 -0
  115. package/dist/chunk-NI5CVN43.js +203 -0
  116. package/dist/chunk-NOBXDQDU.js +397 -0
  117. package/dist/chunk-NQNVLZOA.js +6360 -0
  118. package/dist/chunk-NULFGPE3.js +158 -0
  119. package/dist/chunk-OUIXGM3K.js +299 -0
  120. package/dist/chunk-P4LGA36F.js +14 -0
  121. package/dist/chunk-PU5FQWAY.js +55 -0
  122. package/dist/chunk-PZ2OSHBF.js +56 -0
  123. package/dist/chunk-QBNDPW7O.js +5071 -0
  124. package/dist/chunk-R5PKBL7V.js +80 -0
  125. package/dist/chunk-RFSOP75Z.js +1988 -0
  126. package/dist/chunk-RFSOP75Z.js.map +7 -0
  127. package/dist/chunk-RI65SIN3.js +626 -0
  128. package/dist/chunk-RPGLLO4T.js +2676 -0
  129. package/dist/chunk-RXNZK7MF.js +134 -0
  130. package/dist/chunk-S2ICJ3RZ.js +550 -0
  131. package/dist/chunk-SFHG6H2D.js +129 -0
  132. package/dist/chunk-TQ2DVEQO.js +783 -0
  133. package/dist/chunk-U6BJ4ZNU.js +176 -0
  134. package/dist/chunk-UXD6G6G4.js +178 -0
  135. package/dist/chunk-VA57CUC7.js +2146 -0
  136. package/dist/chunk-VH5W6ODW.js +294 -0
  137. package/dist/chunk-VROF55EH.js +255 -0
  138. package/dist/chunk-VWA7BYSV.js +217 -0
  139. package/dist/chunk-X37BRSGS.js +102 -0
  140. package/dist/chunk-XQYDXA47.js +562 -0
  141. package/dist/chunk-XXPUZVS4.js +237 -0
  142. package/dist/chunk-Y7V5AIUH.js +468 -0
  143. package/dist/chunk-YBNIOGUE.js +243 -0
  144. package/dist/chunk-YEYMNF7V.js +2327 -0
  145. package/dist/chunk-YJ74QATP.js +1278 -0
  146. package/dist/chunk-ZG2HCGAO.js +2784 -0
  147. package/dist/chunk-ZZN7ZD7J.js +54 -0
  148. package/dist/cohort-6OCRQQ2S.js +70 -0
  149. package/dist/condition-SZVXH3VU.js +327 -0
  150. package/dist/controls-MO6ZND76.js +34 -0
  151. package/dist/controls.config-P4MSTGL4.js +34 -0
  152. package/dist/correlation-NMI3CM3T.js +95 -0
  153. package/dist/customdata.inputui-VCHSCA65.js +284 -0
  154. package/dist/dataDownload-VQHOTQ5D.js +329 -0
  155. package/dist/databrowser.ui-ZFOCAG32.js +425 -0
  156. package/dist/dictionary-S5YCFUWH.js +113 -0
  157. package/dist/dnaMethylation-MQZLZRGT.js +33 -0
  158. package/dist/dnaMethylation.integration.spec-H546EBUO.js +198 -0
  159. package/dist/dofetch-QZIYSC7H.js +48 -0
  160. package/dist/e2pca-XOXOS3PN.js +344 -0
  161. package/dist/ep-U6KRL7FR.js +1249 -0
  162. package/dist/expclust.gdc.spec-HCK65C63.js +302 -0
  163. package/dist/facet-DCC25KJO.js +519 -0
  164. package/dist/gb-TIFWFD4Y.js +81 -0
  165. package/dist/geneExpClustering-6DQEOTOY.js +244 -0
  166. package/dist/geneExpression-EASRAN6B.js +310 -0
  167. package/dist/geneExpression-G4YMDCBH.js +33 -0
  168. package/dist/geneExpression.unit.spec-XVEJYMPX.js +128 -0
  169. package/dist/geneORA-6UBS5GSC.js +273 -0
  170. package/dist/geneRanking-UXXYWHNB.js +548 -0
  171. package/dist/geneVariant-SZRJOXVC.js +289 -0
  172. package/dist/geneVariant-TKFKARZK.js +36 -0
  173. package/dist/geneVariant.integration.spec-PXMAYJN3.js +503 -0
  174. package/dist/geneVariant.integration.spec-PXMAYJN3.js.map +7 -0
  175. package/dist/genefusion.ui-TJLYXSVL.js +303 -0
  176. package/dist/geneset-YTBDLEIH.js +203 -0
  177. package/dist/genomeBrowser.spec-ZO4LFIXE.js +276 -0
  178. package/dist/grin2-FC4VYU54.js +949 -0
  179. package/dist/grin2-LIFKBMVK.js +70 -0
  180. package/dist/hierCluster-56EGAPOR.js +59 -0
  181. package/dist/hierCluster-DR5NWCXA.js +55 -0
  182. package/dist/hierCluster.config-NACE3FH2.js +36 -0
  183. package/dist/hierCluster.integration.spec-PEEXPAS6.js +483 -0
  184. package/dist/hierCluster.interactivity-OCBGLUJM.js +49 -0
  185. package/dist/hierCluster.renderers-JNQUSAP4.js +19 -0
  186. package/dist/imagePlot-GR4JNUGG.js +156 -0
  187. package/dist/importPlot-4R4BSPVD.js +8 -0
  188. package/dist/isoformExpression-ST5ZW2NE.js +35 -0
  189. package/dist/isoformExpression.unit.spec-PPFC5Z7N.js +237 -0
  190. package/dist/junction-7AKZHOHV.js +36 -0
  191. package/dist/junction.unit.spec-SZUJXRQ2.js +182 -0
  192. package/dist/launch.adhoc-RWJQUOJ6.js +37 -0
  193. package/dist/leftlabel.sample-WRHLVQAQ.js +258 -0
  194. package/dist/lollipop-ZZWXTM23.js +166 -0
  195. package/dist/maf-N4XPZTQU.js +455 -0
  196. package/dist/maftimeline-2FBS6RWS.js +587 -0
  197. package/dist/matrix-5KEQPB5H.js +59 -0
  198. package/dist/matrix-RJUNXB5N.js +54 -0
  199. package/dist/matrix.cells-WXTPOJYB.js +26 -0
  200. package/dist/matrix.config-ZZFLLD6Z.js +37 -0
  201. package/dist/matrix.data-3PQ73GVJ.js +23 -0
  202. package/dist/matrix.groups-U6CKS6WW.js +26 -0
  203. package/dist/matrix.integration.spec-T53PMVHC.js +3160 -0
  204. package/dist/matrix.interactivity-3LDZV3F7.js +37 -0
  205. package/dist/matrix.layout-MINLYQCA.js +39 -0
  206. package/dist/matrix.legend-6GSDFZHS.js +20 -0
  207. package/dist/matrix.renderers-5BKOXDE3.js +34 -0
  208. package/dist/matrix.serieses-6FCFIFAQ.js +19 -0
  209. package/dist/matrix.sort-EHVVYDZ3.js +26 -0
  210. package/dist/matrix.sort.unit.spec-BCWE4AFX.js +468 -0
  211. package/dist/matrix.sorterUi.unit.spec-XJR5KXRL.js +338 -0
  212. package/dist/matrix.unit.spec-TUCKPE26.js +150 -0
  213. package/dist/mavb-GWSNRBLM.js +727 -0
  214. package/dist/mds.fimo-OMAQRSMW.js +513 -0
  215. package/dist/mds.samplescatterplot-4UW3CC45.js +1545 -0
  216. package/dist/mds.survivalplot-2CJYJBD2.js +477 -0
  217. package/dist/multivalue-G44MHEYI.js +83 -0
  218. package/dist/numericDictTermCluster-5BDRGVQG.js +63 -0
  219. package/dist/oncomatrix-ZTVO23ZH.js +290 -0
  220. package/dist/oncomatrix.spec-2QVK2A3Q.js +443 -0
  221. package/dist/plot.2dvaf-CL5YUXKH.js +372 -0
  222. package/dist/plot.app-4ANKPSNP.js +36 -0
  223. package/dist/plot.barplot-BMGDNZRA.js +97 -0
  224. package/dist/plot.boxplot-GMLQCDP6.js +146 -0
  225. package/dist/plot.brainImaging-RZXX3NUZ.js +51 -0
  226. package/dist/plot.disco-3MD4J4C7.js +99 -0
  227. package/dist/plot.ssgq-ZC4UYKOT.js +134 -0
  228. package/dist/plot.vaf2cov-4DHFMYQV.js +253 -0
  229. package/dist/polar2-TMB5EITR.js +232 -0
  230. package/dist/profileForms-GD7BIOOD.js +941 -0
  231. package/dist/profilePlot-CZLK5E74.js +49 -0
  232. package/dist/proteinView-FEEEXLKT.js +1357 -0
  233. package/dist/proteomeCohortCompare-NVLJ2FXX.js +912 -0
  234. package/dist/pseudbulk.unit.spec-GHQZPNAH.js +86 -0
  235. package/dist/pseudobulk-G5UQIRKL.js +35 -0
  236. package/dist/qualitative-EAUUCKU5.js +38 -0
  237. package/dist/radar2-CJQ2L6KE.js +327 -0
  238. package/dist/radarFacility2-BLVRZE4V.js +335 -0
  239. package/dist/render-KKAQPH6Y.js +33 -0
  240. package/dist/report-OSOJHTSD.js +217 -0
  241. package/dist/sampleView-WB74RLD7.js +43 -0
  242. package/dist/samplelst-ZKXV5WOD.js +106 -0
  243. package/dist/samplematrix-WJFYMWLT.js +2193 -0
  244. package/dist/sc-RBRBUCLR.js +81 -0
  245. package/dist/scatter-5K3QTIDK.js +88 -0
  246. package/dist/scatter-SM7GQENM.js +925 -0
  247. package/dist/selectGenomeWithTklst-ZZUJ7AQ7.js +129 -0
  248. package/dist/singleCellCellType-LCF2JNZ2.js +33 -0
  249. package/dist/singleCellCellType.unit.spec-T6DYH4BC.js +154 -0
  250. package/dist/singleCellGeneExpression-2XUYTH4C.js +33 -0
  251. package/dist/singleCellGeneExpression.unit.spec-SMRCLOF4.js +148 -0
  252. package/dist/singleCellNumericValue-57I33FZT.js +33 -0
  253. package/dist/singleCellNumericValue.unit.spec-4YNB4OEV.js +416 -0
  254. package/dist/singleCellPlot-L6TKQHGD.js +48 -0
  255. package/dist/singlecell-LZKR3UDV.js +81 -0
  256. package/dist/singlecell-UKN2VCXQ.js +1566 -0
  257. package/dist/snp-3LJITU5B.js +33 -0
  258. package/dist/snp.unit.spec-ZQNU6XRM.js +171 -0
  259. package/dist/snplocus-OME7UQBW.js +203 -0
  260. package/dist/spliceevent.a53ss.diagram-C32IEFMU.js +146 -0
  261. package/dist/spliceevent.exonskip.diagram-CZ7MVRLK.js +278 -0
  262. package/dist/spliceevent.noeventdiagram-ZO6R3776.js +455 -0
  263. package/dist/ssGSEA-BGPQ2PFY.js +33 -0
  264. package/dist/ssGSEA.unit.spec-U7TBUSSK.js +83 -0
  265. package/dist/stattable-FISGQCED.js +117 -0
  266. package/dist/studyCatalog-UHFUT2CJ.js +414 -0
  267. package/dist/summarizeCnvGeneexp-OVZO6KIB.js +158 -0
  268. package/dist/summarizeGeneexpSurvival-KVQ4JGWK.js +105 -0
  269. package/dist/summarizeMutationCnv-RAKGHNLE.js +159 -0
  270. package/dist/summarizeMutationDiagnosis-LGCINAGG.js +35 -0
  271. package/dist/summarizeMutationSurvival-J7H7L4FX.js +99 -0
  272. package/dist/summary-2632JZXH.js +44 -0
  273. package/dist/summary.integration.spec-5WBS2ZRP.js +409 -0
  274. package/dist/summaryInput-BH6C3ATV.js +242 -0
  275. package/dist/sunburst-AMRR2IHM.js +278 -0
  276. package/dist/survival-2RNJQVFS.js +1248 -0
  277. package/dist/survival-WYCH4QOQ.js +53 -0
  278. package/dist/survival.integration.spec-7IFPY4I4.js +613 -0
  279. package/dist/svgraph-YQWS52ZJ.js +1382 -0
  280. package/dist/svmr-NRN6LGKK.js +3837 -0
  281. package/dist/table-3QOMV2NN.js +197 -0
  282. package/dist/termCollection-2ZJ7TJGO.js +33 -0
  283. package/dist/termCollection-3MCVR7BA.js +252 -0
  284. package/dist/termCollection.unit.spec-QYOEA3X6.js +299 -0
  285. package/dist/termCollectionFractionSelection-5AH6EF4L.js +42 -0
  286. package/dist/termCollectionFractionSelection.unit.spec-WPGW4WJN.js +188 -0
  287. package/dist/tk-DQ7D5UEO.js +41 -0
  288. package/dist/tk-ONKYBG6R.js +1121 -0
  289. package/dist/tp.ui-C7BTMHEI.js +1454 -0
  290. package/dist/tvs.dt-PLRMK7OT.js +34 -0
  291. package/dist/tvs.dtcnv.categorical-IZUY2AQO.js +35 -0
  292. package/dist/tvs.dtcnv.continuous-ENV3RHHA.js +67 -0
  293. package/dist/tvs.dtfusion-2DVCV6AM.js +35 -0
  294. package/dist/tvs.dtitd-XNDIRQYU.js +35 -0
  295. package/dist/tvs.dtsnvindel-4D3G7XSF.js +35 -0
  296. package/dist/tvs.dtsv-QYMIMC4Z.js +35 -0
  297. package/dist/tvs.numeric-M5LH3PRH.js +20 -0
  298. package/dist/tvs.samplelst-2KEU2ZWB.js +98 -0
  299. package/dist/tvs.termCollection-FEY746V5.js +124 -0
  300. package/dist/vocabulary-BR4NJDPS.js +36 -0
  301. package/dist/wsi.direct-JWDUNHIO.js +8343 -0
  302. package/package.json +3 -3
  303. package/dist/2dmaf-VTMPVZGT.js +0 -1367
  304. package/dist/AggMatrixInput-CH3RQ2QC.js +0 -406
  305. package/dist/AggregateMatrix-DPCHUOMF.js +0 -41
  306. package/dist/AppHeader-RA7T467G.js +0 -830
  307. package/dist/BoxPlot-7Q7SMT26.js +0 -1211
  308. package/dist/CorrelationVolcano-YV4UHOAX.js +0 -617
  309. package/dist/Cuminc-ZN53C3MD.js +0 -1219
  310. package/dist/DE-BEWW5AIG.js +0 -89
  311. package/dist/DEinput-SJITUJF2.js +0 -499
  312. package/dist/DEinput-SJITUJF2.js.map +0 -7
  313. package/dist/DM-2LBNE4WE.js +0 -90
  314. package/dist/DifferentialAnalysis-WE4LBHEF.js +0 -239
  315. package/dist/Disco-PTZQF7IM.js +0 -3389
  316. package/dist/Disco.UI-NBR67N5M.js +0 -243
  317. package/dist/DmrPlot-QROLI66S.js +0 -362
  318. package/dist/GB-FEBSFX5U.js +0 -1428
  319. package/dist/GSEA-KOXOVC5V.js +0 -875
  320. package/dist/GeneExpInput-DYBK54HC.js +0 -42
  321. package/dist/Geomap-QRD2WZVL.js +0 -84
  322. package/dist/HicApp-VKET4QHD.js +0 -2245
  323. package/dist/IDCViewer-RLLTXGD7.js +0 -10812
  324. package/dist/NumBinaryEditor-GYHOYPQL.js +0 -279
  325. package/dist/NumBinaryEditor.unit.spec-E2HKBWOO.js +0 -312
  326. package/dist/NumContEditor-3V76ZSEY.js +0 -105
  327. package/dist/NumContEditor.unit.spec-RTT5Q5E5.js +0 -164
  328. package/dist/NumCustomBinEditor-O5DMPY7H.js +0 -33
  329. package/dist/NumCustomBinEditor.unit.spec-5LZBP2JL.js +0 -397
  330. package/dist/NumDiscreteEditor-DFOJ7AIH.js +0 -170
  331. package/dist/NumDiscreteEditor.unit.spec-PPJGEBFX.js +0 -233
  332. package/dist/NumRegularBinEditor-O6RDO32C.js +0 -33
  333. package/dist/NumRegularBinEditor.unit.spec-GOB3BF25.js +0 -278
  334. package/dist/NumSplineEditor-PUXJF2RW.js +0 -210
  335. package/dist/NumSplineEditor.unit.spec-4VOAAMOU.js +0 -224
  336. package/dist/NumericDensity-E6MH2THZ.js +0 -33
  337. package/dist/NumericDensity.unit.spec-IRPFBQUS.js +0 -418
  338. package/dist/NumericHandler-42RR54X3.js +0 -34
  339. package/dist/NumericHandler.unit.spec-YYOO7XVT.js +0 -214
  340. package/dist/ProteomeInput-4N2G6IFX.js +0 -388
  341. package/dist/Regression-LIWUWAGQ.js +0 -1416
  342. package/dist/RunChart2-VAX5JGZY.js +0 -749
  343. package/dist/SC-UHBZ3HRO.js +0 -1183
  344. package/dist/Violin-V23VZR6B.js +0 -1081
  345. package/dist/Volcano-64S4AW66.js +0 -2443
  346. package/dist/Wsi-FOJCKDCP.js +0 -629
  347. package/dist/adSandbox-CLMUYNC3.js +0 -33
  348. package/dist/animatedBubbleChart-GMLNYTQC.js +0 -547
  349. package/dist/app-2SFDRDN2.js +0 -32
  350. package/dist/app-QOZ36UR4.js +0 -42
  351. package/dist/bam-LLAK7FVG.js +0 -876
  352. package/dist/barchart-SEC6VKQ2.js +0 -42
  353. package/dist/barchart2-D4FXZCTU.js +0 -309
  354. package/dist/block-XGK6TEGH.js +0 -6250
  355. package/dist/block.init-UMRCAKCF.js +0 -33
  356. package/dist/block.mds.expressionrank-LFPJ52SX.js +0 -354
  357. package/dist/block.mds.geneboxplot-2QIEN6AH.js +0 -823
  358. package/dist/block.mds.junction-Z4HUFSG2.js +0 -1539
  359. package/dist/block.mds.svcnv-3GXGY6ET.js +0 -6796
  360. package/dist/block.svg-7RCJLMAP.js +0 -159
  361. package/dist/block.tk.aicheck-5N6EGZ6F.js +0 -278
  362. package/dist/block.tk.ase-V3AJRYT6.js +0 -360
  363. package/dist/block.tk.bam-W6QOVVEU.js +0 -1901
  364. package/dist/block.tk.bedgraphdot-FKTPJZTH.js +0 -379
  365. package/dist/block.tk.bigwig.ui-Y3M2TDM2.js +0 -206
  366. package/dist/block.tk.hicstraw-3SWYTMFQ.js +0 -818
  367. package/dist/block.tk.junction-OXB22PDS.js +0 -2358
  368. package/dist/block.tk.junction.textmatrixui-PWBLRGCO.js +0 -194
  369. package/dist/block.tk.ld-NTRJL5GA.js +0 -94
  370. package/dist/block.tk.menu-JIHSGGIO.js +0 -1024
  371. package/dist/block.tk.pgv-4Q6CY6QN.js +0 -938
  372. package/dist/brainImaging-MBI4XTTU.js +0 -555
  373. package/dist/brainRegions-YVTAESRP.js +0 -217
  374. package/dist/bubbleHeatmap-ZKTA3AIG.js +0 -378
  375. package/dist/cellTypeBubbleHeatmap-GJZNXDG4.js +0 -278
  376. package/dist/chunk-2PDBU42F.js +0 -4375
  377. package/dist/chunk-2RMSV4BS.js +0 -6360
  378. package/dist/chunk-33BE7AYS.js +0 -299
  379. package/dist/chunk-3XBG5HIV.js +0 -424
  380. package/dist/chunk-3XBG5HIV.js.map +0 -7
  381. package/dist/chunk-5FRETII3.js +0 -281
  382. package/dist/chunk-5LYVIIYR.js +0 -170
  383. package/dist/chunk-6FG6JFZP.js +0 -339
  384. package/dist/chunk-6G45AUSV.js +0 -237
  385. package/dist/chunk-6LDKSKYQ.js +0 -70
  386. package/dist/chunk-7FFTAYT4.js +0 -272
  387. package/dist/chunk-7GDRMBNO.js +0 -339
  388. package/dist/chunk-A2UUXYH6.js +0 -1986
  389. package/dist/chunk-A2UUXYH6.js.map +0 -7
  390. package/dist/chunk-AFQKYV4D.js +0 -2853
  391. package/dist/chunk-ANACCKCQ.js +0 -276
  392. package/dist/chunk-AR3HXZIW.js +0 -562
  393. package/dist/chunk-AVCEHJG7.js +0 -446
  394. package/dist/chunk-AVCIZWH5.js +0 -692
  395. package/dist/chunk-B6UXFX73.js +0 -178
  396. package/dist/chunk-BCCFJYPE.js +0 -54
  397. package/dist/chunk-BG3SGGVB.js +0 -134
  398. package/dist/chunk-C3HEDQPT.js +0 -24921
  399. package/dist/chunk-C3HEDQPT.js.map +0 -7
  400. package/dist/chunk-CN6KJORZ.js +0 -397
  401. package/dist/chunk-CYWEYHJQ.js +0 -203
  402. package/dist/chunk-D5ETVOOE.js +0 -158
  403. package/dist/chunk-DANF4CC5.js +0 -102
  404. package/dist/chunk-DNCFJTPI.js +0 -1339
  405. package/dist/chunk-FNW6BKOA.js +0 -480
  406. package/dist/chunk-FR5USNAT.js +0 -54
  407. package/dist/chunk-GYE6FU7P.js +0 -626
  408. package/dist/chunk-IEIGHCZS.js +0 -1278
  409. package/dist/chunk-J5GQGWYX.js +0 -1731
  410. package/dist/chunk-JMDUO47F.js +0 -5071
  411. package/dist/chunk-JTQPPUDG.js +0 -379
  412. package/dist/chunk-JTQPPUDG.js.map +0 -7
  413. package/dist/chunk-K32DV4QI.js +0 -302
  414. package/dist/chunk-K77W4SSI.js +0 -98
  415. package/dist/chunk-KEHVNCFK.js +0 -102
  416. package/dist/chunk-MMKSXXU2.js +0 -55
  417. package/dist/chunk-NGMM2MNC.js +0 -518
  418. package/dist/chunk-OASGOTRM.js +0 -80
  419. package/dist/chunk-OBDIJ4QS.js +0 -2146
  420. package/dist/chunk-OEBGQKQR.js +0 -2676
  421. package/dist/chunk-OI5KBFBE.js +0 -468
  422. package/dist/chunk-OWEBE64A.js +0 -243
  423. package/dist/chunk-P7X4LDW4.js +0 -783
  424. package/dist/chunk-Q4HTEL2O.js +0 -56
  425. package/dist/chunk-QGH5BM2D.js +0 -141
  426. package/dist/chunk-QSOFGLWZ.js +0 -240
  427. package/dist/chunk-QXDGIQYA.js +0 -217
  428. package/dist/chunk-R2QE6ROO.js +0 -176
  429. package/dist/chunk-RMHUDMZ7.js +0 -103
  430. package/dist/chunk-SXB4IZQ7.js +0 -123
  431. package/dist/chunk-SYPSS3JQ.js +0 -387
  432. package/dist/chunk-SYPSS3JQ.js.map +0 -7
  433. package/dist/chunk-T6Q76PDN.js +0 -182
  434. package/dist/chunk-TYR355RM.js +0 -263
  435. package/dist/chunk-ULZPHJYD.js +0 -2784
  436. package/dist/chunk-V3SOBDIT.js +0 -255
  437. package/dist/chunk-VFUSBU43.js +0 -14
  438. package/dist/chunk-VOF6NWTS.js +0 -274
  439. package/dist/chunk-WGDJX7WZ.js +0 -2327
  440. package/dist/chunk-WIQVSCD5.js +0 -294
  441. package/dist/chunk-WXXRVJSP.js +0 -56
  442. package/dist/chunk-X4MV2M5F.js +0 -129
  443. package/dist/chunk-XVVVNCXS.js +0 -217
  444. package/dist/chunk-YHP7MYB7.js +0 -49
  445. package/dist/chunk-YHWQWVWX.js +0 -550
  446. package/dist/chunk-YKZOQTT4.js +0 -1233
  447. package/dist/chunk-Z5HU276I.js +0 -34
  448. package/dist/chunk-Z6MCBFDM.js +0 -194
  449. package/dist/cohort-GVAJTICQ.js +0 -70
  450. package/dist/condition-EGPNMM47.js +0 -327
  451. package/dist/controls-HBROSXHF.js +0 -34
  452. package/dist/controls.config-FWKV66TU.js +0 -34
  453. package/dist/correlation-CEHE66EC.js +0 -95
  454. package/dist/customdata.inputui-LFT3N5FD.js +0 -284
  455. package/dist/dataDownload-ZPAIAAE4.js +0 -329
  456. package/dist/databrowser.ui-W5JGFBE6.js +0 -425
  457. package/dist/dictionary-RBE2CIZI.js +0 -113
  458. package/dist/dnaMethylation-CX22TSRO.js +0 -33
  459. package/dist/dnaMethylation.integration.spec-KEE6ZZRT.js +0 -198
  460. package/dist/dofetch-6NAGX5EG.js +0 -48
  461. package/dist/e2pca-XDGPTEXL.js +0 -344
  462. package/dist/ep-IUIDMIGW.js +0 -1249
  463. package/dist/expclust.gdc.spec-BMN2PTJX.js +0 -302
  464. package/dist/facet-DTJKZOBA.js +0 -519
  465. package/dist/gb-MV7MUJWO.js +0 -81
  466. package/dist/geneExpClustering-NFH5FS3S.js +0 -244
  467. package/dist/geneExpression-XVOLNYVN.js +0 -310
  468. package/dist/geneExpression-ZP2VWHED.js +0 -33
  469. package/dist/geneExpression.unit.spec-2NSK4ARK.js +0 -128
  470. package/dist/geneORA-HQ7FLMEJ.js +0 -273
  471. package/dist/geneRanking-MIABUKTN.js +0 -548
  472. package/dist/geneVariant-H52UUK6Z.js +0 -289
  473. package/dist/geneVariant-HDFWLALZ.js +0 -36
  474. package/dist/geneVariant.integration.spec-O36JK4B7.js +0 -503
  475. package/dist/geneVariant.integration.spec-O36JK4B7.js.map +0 -7
  476. package/dist/genefusion.ui-HSDZQHJA.js +0 -303
  477. package/dist/geneset-WKV3X2EJ.js +0 -203
  478. package/dist/genomeBrowser.spec-UTAHAU76.js +0 -276
  479. package/dist/grin2-M2JDZVYU.js +0 -70
  480. package/dist/grin2-N2QM3XTG.js +0 -949
  481. package/dist/hierCluster-LZI6OTRS.js +0 -59
  482. package/dist/hierCluster-VVXPOTQU.js +0 -55
  483. package/dist/hierCluster.config-NCYH3Y7Z.js +0 -36
  484. package/dist/hierCluster.integration.spec-ZDOOCTV3.js +0 -483
  485. package/dist/hierCluster.interactivity-4HP3JCON.js +0 -49
  486. package/dist/hierCluster.renderers-3F5GMEXA.js +0 -19
  487. package/dist/imagePlot-OA4WTMLU.js +0 -156
  488. package/dist/importPlot-OSTC2GPO.js +0 -8
  489. package/dist/isoformExpression-LZ5RTUS5.js +0 -35
  490. package/dist/isoformExpression.unit.spec-L6YDBKYM.js +0 -237
  491. package/dist/junction-UR6COY3A.js +0 -36
  492. package/dist/junction.unit.spec-NVBJTGA4.js +0 -182
  493. package/dist/launch.adhoc-AZG6QJG7.js +0 -37
  494. package/dist/leftlabel.sample-LYZG25RT.js +0 -258
  495. package/dist/lollipop-FJXVP5QM.js +0 -166
  496. package/dist/maf-OXJIJD6D.js +0 -455
  497. package/dist/maftimeline-75N6ZXEM.js +0 -587
  498. package/dist/matrix-QFKGEW5A.js +0 -54
  499. package/dist/matrix-XT7LUV5K.js +0 -59
  500. package/dist/matrix.cells-NB7LKKXV.js +0 -26
  501. package/dist/matrix.config-X6HS4UGD.js +0 -37
  502. package/dist/matrix.data-VLFF34SS.js +0 -23
  503. package/dist/matrix.groups-F62TSKIG.js +0 -26
  504. package/dist/matrix.integration.spec-7QBYWHW6.js +0 -3160
  505. package/dist/matrix.interactivity-2FBXB52E.js +0 -37
  506. package/dist/matrix.layout-6TPVKLSX.js +0 -39
  507. package/dist/matrix.legend-L4ULBMGX.js +0 -20
  508. package/dist/matrix.renderers-DK6YRLO2.js +0 -34
  509. package/dist/matrix.serieses-DCRJLJ3H.js +0 -19
  510. package/dist/matrix.sort-XSGPH44J.js +0 -26
  511. package/dist/matrix.sort.unit.spec-JF75F4I4.js +0 -468
  512. package/dist/matrix.sorterUi.unit.spec-66JMV5BK.js +0 -338
  513. package/dist/matrix.unit.spec-36AR4I43.js +0 -150
  514. package/dist/mavb-ZH4RO77H.js +0 -727
  515. package/dist/mds.fimo-MVP2G5PS.js +0 -513
  516. package/dist/mds.samplescatterplot-GYJ3OI4N.js +0 -1545
  517. package/dist/mds.survivalplot-Q6MYQGTB.js +0 -477
  518. package/dist/multivalue-BGFMPH4X.js +0 -83
  519. package/dist/numericDictTermCluster-FNNVLIWB.js +0 -63
  520. package/dist/oncomatrix-LIIALWWN.js +0 -290
  521. package/dist/oncomatrix.spec-NEMLM2ZN.js +0 -443
  522. package/dist/plot.2dvaf-HJO3SKNK.js +0 -372
  523. package/dist/plot.app-WSLFOFSR.js +0 -36
  524. package/dist/plot.barplot-SPI5JA37.js +0 -97
  525. package/dist/plot.boxplot-4W3XEY5I.js +0 -146
  526. package/dist/plot.brainImaging-KEOUTYIB.js +0 -51
  527. package/dist/plot.disco-7IDMKNAQ.js +0 -99
  528. package/dist/plot.ssgq-IOKUGDC4.js +0 -134
  529. package/dist/plot.vaf2cov-SFSZ6M43.js +0 -253
  530. package/dist/polar2-PLPE5TX5.js +0 -232
  531. package/dist/profileForms-ZDHG67GM.js +0 -941
  532. package/dist/profilePlot-UUZA2YG6.js +0 -49
  533. package/dist/proteinView-GHS3XARL.js +0 -1357
  534. package/dist/proteomeCohortCompare-TQ3BGIPS.js +0 -912
  535. package/dist/pseudbulk.unit.spec-HFESRN7A.js +0 -86
  536. package/dist/pseudobulk-ODXYIUD5.js +0 -35
  537. package/dist/qualitative-WOSYAIGQ.js +0 -38
  538. package/dist/radar2-2KXBS3Y3.js +0 -327
  539. package/dist/radarFacility2-JCOKJQQF.js +0 -335
  540. package/dist/render-IJ6GE3NE.js +0 -33
  541. package/dist/report-WLLFUA7L.js +0 -217
  542. package/dist/sampleView-LPKSYUNF.js +0 -43
  543. package/dist/samplelst-MNI2MGMT.js +0 -106
  544. package/dist/samplematrix-KEKJP2B4.js +0 -2193
  545. package/dist/sc-ZYKFRJU4.js +0 -81
  546. package/dist/scatter-BAEZOFWA.js +0 -88
  547. package/dist/scatter-IGFBIZ3B.js +0 -925
  548. package/dist/selectGenomeWithTklst-HBHRXEDY.js +0 -129
  549. package/dist/singleCellCellType-PMFDV24B.js +0 -33
  550. package/dist/singleCellCellType.unit.spec-ZLYDUDIY.js +0 -154
  551. package/dist/singleCellGeneExpression-SUYO3HR3.js +0 -33
  552. package/dist/singleCellGeneExpression.unit.spec-3N3HRXFN.js +0 -148
  553. package/dist/singleCellNumericValue-BV7C6Y34.js +0 -33
  554. package/dist/singleCellNumericValue.unit.spec-7VJOMYQ6.js +0 -416
  555. package/dist/singleCellPlot-BG7UJOHA.js +0 -48
  556. package/dist/singlecell-BANNFGBS.js +0 -81
  557. package/dist/singlecell-ZUTL5ZWE.js +0 -1566
  558. package/dist/snp-BHG4NVK4.js +0 -33
  559. package/dist/snp.unit.spec-Q3AZHQRC.js +0 -171
  560. package/dist/snplocus-HTJL63M3.js +0 -203
  561. package/dist/spliceevent.a53ss.diagram-UKRIP7EP.js +0 -146
  562. package/dist/spliceevent.exonskip.diagram-CU777CXQ.js +0 -278
  563. package/dist/spliceevent.noeventdiagram-LGLXCF25.js +0 -455
  564. package/dist/ssGSEA-BIEEKAKX.js +0 -33
  565. package/dist/ssGSEA.unit.spec-YD4UDIRH.js +0 -83
  566. package/dist/stattable-LFR3RSD6.js +0 -117
  567. package/dist/studyCatalog-RINIZ277.js +0 -414
  568. package/dist/summarizeCnvGeneexp-ZQFNPR65.js +0 -158
  569. package/dist/summarizeGeneexpSurvival-GIS7XMMH.js +0 -105
  570. package/dist/summarizeMutationCnv-FWF7YIGR.js +0 -159
  571. package/dist/summarizeMutationDiagnosis-V5L2OKTK.js +0 -35
  572. package/dist/summarizeMutationSurvival-LAUUF6XN.js +0 -99
  573. package/dist/summary-OMU3ACNE.js +0 -44
  574. package/dist/summary.integration.spec-6JZAT73L.js +0 -409
  575. package/dist/summaryInput-QIKL3HDD.js +0 -242
  576. package/dist/sunburst-32IW2R57.js +0 -278
  577. package/dist/survival-BMOPVAN2.js +0 -53
  578. package/dist/survival-H5AWMQ36.js +0 -1248
  579. package/dist/survival.integration.spec-66UOWSZG.js +0 -613
  580. package/dist/svgraph-B75FS3BB.js +0 -1382
  581. package/dist/svmr-IUEUOHVO.js +0 -3837
  582. package/dist/table-YAAH7WR6.js +0 -197
  583. package/dist/termCollection-7F5ZG2DB.js +0 -252
  584. package/dist/termCollection-KNFUELYY.js +0 -33
  585. package/dist/termCollection.unit.spec-S6M6QC4C.js +0 -299
  586. package/dist/termCollectionFractionSelection-X22VMJWY.js +0 -42
  587. package/dist/termCollectionFractionSelection.unit.spec-ELU6SD7P.js +0 -188
  588. package/dist/tk-TT666UVE.js +0 -41
  589. package/dist/tk-UOPNJ323.js +0 -1121
  590. package/dist/tp.ui-HGAHRKO5.js +0 -1454
  591. package/dist/tvs.dt-H7YYR4EB.js +0 -34
  592. package/dist/tvs.dtcnv.categorical-IPJTKGMF.js +0 -35
  593. package/dist/tvs.dtcnv.continuous-XY5XZ4GH.js +0 -67
  594. package/dist/tvs.dtfusion-VFCBMXRM.js +0 -35
  595. package/dist/tvs.dtitd-RZVW6FTR.js +0 -35
  596. package/dist/tvs.dtsnvindel-IDPJWSGC.js +0 -35
  597. package/dist/tvs.dtsv-QERP756F.js +0 -35
  598. package/dist/tvs.numeric-22AHXO5K.js +0 -20
  599. package/dist/tvs.samplelst-6KNDHBIU.js +0 -98
  600. package/dist/tvs.termCollection-GWPJK3NE.js +0 -124
  601. package/dist/vocabulary-C5FIZMPQ.js +0 -36
  602. package/dist/wsi.direct-2RBCBXDA.js +0 -8343
  603. /package/dist/{2dmaf-VTMPVZGT.js.map → 2dmaf-43QBND66.js.map} +0 -0
  604. /package/dist/{AggMatrixInput-CH3RQ2QC.js.map → AggMatrixInput-X7NGFUHH.js.map} +0 -0
  605. /package/dist/{AggregateMatrix-DPCHUOMF.js.map → AggregateMatrix-M4HRI4PX.js.map} +0 -0
  606. /package/dist/{AppHeader-RA7T467G.js.map → AppHeader-QBRQN6PM.js.map} +0 -0
  607. /package/dist/{BoxPlot-7Q7SMT26.js.map → BoxPlot-V6SPSEQ2.js.map} +0 -0
  608. /package/dist/{CorrelationVolcano-YV4UHOAX.js.map → CorrelationVolcano-UFPCYC77.js.map} +0 -0
  609. /package/dist/{Cuminc-ZN53C3MD.js.map → Cuminc-KXGXGLKZ.js.map} +0 -0
  610. /package/dist/{DE-BEWW5AIG.js.map → DE-K2YXHOOW.js.map} +0 -0
  611. /package/dist/{DM-2LBNE4WE.js.map → DM-C7VN3RWB.js.map} +0 -0
  612. /package/dist/{DifferentialAnalysis-WE4LBHEF.js.map → DifferentialAnalysis-A2BU4WB3.js.map} +0 -0
  613. /package/dist/{Disco-PTZQF7IM.js.map → Disco-HECQVKXG.js.map} +0 -0
  614. /package/dist/{Disco.UI-NBR67N5M.js.map → Disco.UI-XF2GEKRW.js.map} +0 -0
  615. /package/dist/{DmrPlot-QROLI66S.js.map → DmrPlot-TVXVXOHL.js.map} +0 -0
  616. /package/dist/{GB-FEBSFX5U.js.map → GB-66ZGJ5ST.js.map} +0 -0
  617. /package/dist/{GSEA-KOXOVC5V.js.map → GSEA-Z4YPI4HY.js.map} +0 -0
  618. /package/dist/{GeneExpInput-DYBK54HC.js.map → GeneExpInput-VBIZZV27.js.map} +0 -0
  619. /package/dist/{Geomap-QRD2WZVL.js.map → Geomap-UIIOLRFA.js.map} +0 -0
  620. /package/dist/{HicApp-VKET4QHD.js.map → HicApp-73ESVNBA.js.map} +0 -0
  621. /package/dist/{IDCViewer-RLLTXGD7.js.map → IDCViewer-RBYN5A4P.js.map} +0 -0
  622. /package/dist/{NumBinaryEditor-GYHOYPQL.js.map → NumBinaryEditor-DJLSNSLE.js.map} +0 -0
  623. /package/dist/{NumBinaryEditor.unit.spec-E2HKBWOO.js.map → NumBinaryEditor.unit.spec-LCJHL3XM.js.map} +0 -0
  624. /package/dist/{NumContEditor-3V76ZSEY.js.map → NumContEditor-SVLDJ2ML.js.map} +0 -0
  625. /package/dist/{NumContEditor.unit.spec-RTT5Q5E5.js.map → NumContEditor.unit.spec-JDMSK4HY.js.map} +0 -0
  626. /package/dist/{NumCustomBinEditor-O5DMPY7H.js.map → NumCustomBinEditor-BI63AH3R.js.map} +0 -0
  627. /package/dist/{NumCustomBinEditor.unit.spec-5LZBP2JL.js.map → NumCustomBinEditor.unit.spec-5433G7Y2.js.map} +0 -0
  628. /package/dist/{NumDiscreteEditor-DFOJ7AIH.js.map → NumDiscreteEditor-LEZTGXAV.js.map} +0 -0
  629. /package/dist/{NumDiscreteEditor.unit.spec-PPJGEBFX.js.map → NumDiscreteEditor.unit.spec-5OEORHJ4.js.map} +0 -0
  630. /package/dist/{NumRegularBinEditor-O6RDO32C.js.map → NumRegularBinEditor-EXWHIWPM.js.map} +0 -0
  631. /package/dist/{NumRegularBinEditor.unit.spec-GOB3BF25.js.map → NumRegularBinEditor.unit.spec-QY25Z2TT.js.map} +0 -0
  632. /package/dist/{NumSplineEditor-PUXJF2RW.js.map → NumSplineEditor-XPPMYYAD.js.map} +0 -0
  633. /package/dist/{NumSplineEditor.unit.spec-4VOAAMOU.js.map → NumSplineEditor.unit.spec-GOGBKWMN.js.map} +0 -0
  634. /package/dist/{NumericDensity-E6MH2THZ.js.map → NumericDensity-RKY2IQ72.js.map} +0 -0
  635. /package/dist/{NumericDensity.unit.spec-IRPFBQUS.js.map → NumericDensity.unit.spec-5ZM6ICXM.js.map} +0 -0
  636. /package/dist/{NumericHandler-42RR54X3.js.map → NumericHandler-FXF3M5M3.js.map} +0 -0
  637. /package/dist/{NumericHandler.unit.spec-YYOO7XVT.js.map → NumericHandler.unit.spec-M2OQTBJX.js.map} +0 -0
  638. /package/dist/{ProteomeInput-4N2G6IFX.js.map → ProteomeInput-TMZ3THRL.js.map} +0 -0
  639. /package/dist/{Regression-LIWUWAGQ.js.map → Regression-GQGAATHG.js.map} +0 -0
  640. /package/dist/{RunChart2-VAX5JGZY.js.map → RunChart2-7GNDWRKC.js.map} +0 -0
  641. /package/dist/{SC-UHBZ3HRO.js.map → SC-R2I2EMHA.js.map} +0 -0
  642. /package/dist/{Violin-V23VZR6B.js.map → Violin-GKKEB55L.js.map} +0 -0
  643. /package/dist/{Volcano-64S4AW66.js.map → Volcano-HRG5EFWH.js.map} +0 -0
  644. /package/dist/{Wsi-FOJCKDCP.js.map → Wsi-OHRCGYYD.js.map} +0 -0
  645. /package/dist/{adSandbox-CLMUYNC3.js.map → adSandbox-H56B25WR.js.map} +0 -0
  646. /package/dist/{animatedBubbleChart-GMLNYTQC.js.map → animatedBubbleChart-7SXFHU4J.js.map} +0 -0
  647. /package/dist/{app-2SFDRDN2.js.map → app-22JCSULA.js.map} +0 -0
  648. /package/dist/{app-QOZ36UR4.js.map → app-RGZJB6LN.js.map} +0 -0
  649. /package/dist/{bam-LLAK7FVG.js.map → bam-HA65TRGX.js.map} +0 -0
  650. /package/dist/{barchart-SEC6VKQ2.js.map → barchart-6XO75OMA.js.map} +0 -0
  651. /package/dist/{barchart2-D4FXZCTU.js.map → barchart2-6E5BIRHD.js.map} +0 -0
  652. /package/dist/{block-XGK6TEGH.js.map → block-43KNTXZ5.js.map} +0 -0
  653. /package/dist/{block.init-UMRCAKCF.js.map → block.init-TPU5QIPA.js.map} +0 -0
  654. /package/dist/{block.mds.expressionrank-LFPJ52SX.js.map → block.mds.expressionrank-QZDRFXCH.js.map} +0 -0
  655. /package/dist/{block.mds.geneboxplot-2QIEN6AH.js.map → block.mds.geneboxplot-64QVBK5Q.js.map} +0 -0
  656. /package/dist/{block.mds.junction-Z4HUFSG2.js.map → block.mds.junction-I4J6VXNT.js.map} +0 -0
  657. /package/dist/{block.mds.svcnv-3GXGY6ET.js.map → block.mds.svcnv-GDQMSQFF.js.map} +0 -0
  658. /package/dist/{block.svg-7RCJLMAP.js.map → block.svg-2MZFT5QP.js.map} +0 -0
  659. /package/dist/{block.tk.aicheck-5N6EGZ6F.js.map → block.tk.aicheck-2MKHF6LX.js.map} +0 -0
  660. /package/dist/{block.tk.ase-V3AJRYT6.js.map → block.tk.ase-CLYGKFTS.js.map} +0 -0
  661. /package/dist/{block.tk.bam-W6QOVVEU.js.map → block.tk.bam-XTR4QA5Z.js.map} +0 -0
  662. /package/dist/{block.tk.bedgraphdot-FKTPJZTH.js.map → block.tk.bedgraphdot-A2P2CXRU.js.map} +0 -0
  663. /package/dist/{block.tk.bigwig.ui-Y3M2TDM2.js.map → block.tk.bigwig.ui-YZH6JXEO.js.map} +0 -0
  664. /package/dist/{block.tk.hicstraw-3SWYTMFQ.js.map → block.tk.hicstraw-QBK5VWGU.js.map} +0 -0
  665. /package/dist/{block.tk.junction-OXB22PDS.js.map → block.tk.junction-5DEVBA7G.js.map} +0 -0
  666. /package/dist/{block.tk.junction.textmatrixui-PWBLRGCO.js.map → block.tk.junction.textmatrixui-7TTQMO6W.js.map} +0 -0
  667. /package/dist/{block.tk.ld-NTRJL5GA.js.map → block.tk.ld-PRIVUPKL.js.map} +0 -0
  668. /package/dist/{block.tk.menu-JIHSGGIO.js.map → block.tk.menu-JGBRFSS3.js.map} +0 -0
  669. /package/dist/{block.tk.pgv-4Q6CY6QN.js.map → block.tk.pgv-KQJCJMVD.js.map} +0 -0
  670. /package/dist/{brainImaging-MBI4XTTU.js.map → brainImaging-4SLVJ2HV.js.map} +0 -0
  671. /package/dist/{brainRegions-YVTAESRP.js.map → brainRegions-BDIVM2SG.js.map} +0 -0
  672. /package/dist/{bubbleHeatmap-ZKTA3AIG.js.map → bubbleHeatmap-ORKFJNEQ.js.map} +0 -0
  673. /package/dist/{cellTypeBubbleHeatmap-GJZNXDG4.js.map → cellTypeBubbleHeatmap-VOHLI4P7.js.map} +0 -0
  674. /package/dist/{chunk-Z6MCBFDM.js.map → chunk-26N3B2JO.js.map} +0 -0
  675. /package/dist/{chunk-QSOFGLWZ.js.map → chunk-2HNJF5ZI.js.map} +0 -0
  676. /package/dist/{chunk-5FRETII3.js.map → chunk-2LNGHIOC.js.map} +0 -0
  677. /package/dist/{chunk-VOF6NWTS.js.map → chunk-3SCQGODD.js.map} +0 -0
  678. /package/dist/{chunk-NGMM2MNC.js.map → chunk-47STLK7K.js.map} +0 -0
  679. /package/dist/{chunk-ANACCKCQ.js.map → chunk-4XYQG3XU.js.map} +0 -0
  680. /package/dist/{chunk-Z5HU276I.js.map → chunk-53XNEXR6.js.map} +0 -0
  681. /package/dist/{chunk-SXB4IZQ7.js.map → chunk-5UB5H7A3.js.map} +0 -0
  682. /package/dist/{chunk-QGH5BM2D.js.map → chunk-6FYQYTV6.js.map} +0 -0
  683. /package/dist/{chunk-T6Q76PDN.js.map → chunk-6RP6CR4Q.js.map} +0 -0
  684. /package/dist/{chunk-RMHUDMZ7.js.map → chunk-A5D37SIL.js.map} +0 -0
  685. /package/dist/{chunk-DANF4CC5.js.map → chunk-ADRFQ5AL.js.map} +0 -0
  686. /package/dist/{chunk-6LDKSKYQ.js.map → chunk-AUZ63NKJ.js.map} +0 -0
  687. /package/dist/{chunk-XVVVNCXS.js.map → chunk-B563DUNQ.js.map} +0 -0
  688. /package/dist/{chunk-6FG6JFZP.js.map → chunk-BK6UDL7F.js.map} +0 -0
  689. /package/dist/{chunk-7GDRMBNO.js.map → chunk-CT4IG5IR.js.map} +0 -0
  690. /package/dist/{chunk-J5GQGWYX.js.map → chunk-D6UBH77N.js.map} +0 -0
  691. /package/dist/{chunk-5LYVIIYR.js.map → chunk-DS4GLMJL.js.map} +0 -0
  692. /package/dist/{chunk-AFQKYV4D.js.map → chunk-DSBRHWZ7.js.map} +0 -0
  693. /package/dist/{chunk-7FFTAYT4.js.map → chunk-DX35MKPR.js.map} +0 -0
  694. /package/dist/{chunk-BCCFJYPE.js.map → chunk-EDZJ3VNZ.js.map} +0 -0
  695. /package/dist/{chunk-DNCFJTPI.js.map → chunk-F47A4CVK.js.map} +0 -0
  696. /package/dist/{chunk-AVCEHJG7.js.map → chunk-G4H34RNK.js.map} +0 -0
  697. /package/dist/{chunk-TYR355RM.js.map → chunk-G7RUMSHL.js.map} +0 -0
  698. /package/dist/{chunk-FNW6BKOA.js.map → chunk-GXFS25SK.js.map} +0 -0
  699. /package/dist/{chunk-AVCIZWH5.js.map → chunk-IBT6WRY6.js.map} +0 -0
  700. /package/dist/{chunk-K32DV4QI.js.map → chunk-IJ7AIDEO.js.map} +0 -0
  701. /package/dist/{chunk-YKZOQTT4.js.map → chunk-JBFVJHZN.js.map} +0 -0
  702. /package/dist/{chunk-WXXRVJSP.js.map → chunk-JDVBUIEU.js.map} +0 -0
  703. /package/dist/{chunk-2PDBU42F.js.map → chunk-K7RW5TPU.js.map} +0 -0
  704. /package/dist/{chunk-YHP7MYB7.js.map → chunk-LBCIXRI2.js.map} +0 -0
  705. /package/dist/{chunk-K77W4SSI.js.map → chunk-MNXL2UV5.js.map} +0 -0
  706. /package/dist/{chunk-CYWEYHJQ.js.map → chunk-NI5CVN43.js.map} +0 -0
  707. /package/dist/{chunk-CN6KJORZ.js.map → chunk-NOBXDQDU.js.map} +0 -0
  708. /package/dist/{chunk-2RMSV4BS.js.map → chunk-NQNVLZOA.js.map} +0 -0
  709. /package/dist/{chunk-D5ETVOOE.js.map → chunk-NULFGPE3.js.map} +0 -0
  710. /package/dist/{chunk-33BE7AYS.js.map → chunk-OUIXGM3K.js.map} +0 -0
  711. /package/dist/{chunk-VFUSBU43.js.map → chunk-P4LGA36F.js.map} +0 -0
  712. /package/dist/{chunk-MMKSXXU2.js.map → chunk-PU5FQWAY.js.map} +0 -0
  713. /package/dist/{chunk-Q4HTEL2O.js.map → chunk-PZ2OSHBF.js.map} +0 -0
  714. /package/dist/{chunk-JMDUO47F.js.map → chunk-QBNDPW7O.js.map} +0 -0
  715. /package/dist/{chunk-OASGOTRM.js.map → chunk-R5PKBL7V.js.map} +0 -0
  716. /package/dist/{chunk-GYE6FU7P.js.map → chunk-RI65SIN3.js.map} +0 -0
  717. /package/dist/{chunk-OEBGQKQR.js.map → chunk-RPGLLO4T.js.map} +0 -0
  718. /package/dist/{chunk-BG3SGGVB.js.map → chunk-RXNZK7MF.js.map} +0 -0
  719. /package/dist/{chunk-YHWQWVWX.js.map → chunk-S2ICJ3RZ.js.map} +0 -0
  720. /package/dist/{chunk-X4MV2M5F.js.map → chunk-SFHG6H2D.js.map} +0 -0
  721. /package/dist/{chunk-P7X4LDW4.js.map → chunk-TQ2DVEQO.js.map} +0 -0
  722. /package/dist/{chunk-R2QE6ROO.js.map → chunk-U6BJ4ZNU.js.map} +0 -0
  723. /package/dist/{chunk-B6UXFX73.js.map → chunk-UXD6G6G4.js.map} +0 -0
  724. /package/dist/{chunk-OBDIJ4QS.js.map → chunk-VA57CUC7.js.map} +0 -0
  725. /package/dist/{chunk-WIQVSCD5.js.map → chunk-VH5W6ODW.js.map} +0 -0
  726. /package/dist/{chunk-V3SOBDIT.js.map → chunk-VROF55EH.js.map} +0 -0
  727. /package/dist/{chunk-QXDGIQYA.js.map → chunk-VWA7BYSV.js.map} +0 -0
  728. /package/dist/{chunk-KEHVNCFK.js.map → chunk-X37BRSGS.js.map} +0 -0
  729. /package/dist/{chunk-AR3HXZIW.js.map → chunk-XQYDXA47.js.map} +0 -0
  730. /package/dist/{chunk-6G45AUSV.js.map → chunk-XXPUZVS4.js.map} +0 -0
  731. /package/dist/{chunk-OI5KBFBE.js.map → chunk-Y7V5AIUH.js.map} +0 -0
  732. /package/dist/{chunk-OWEBE64A.js.map → chunk-YBNIOGUE.js.map} +0 -0
  733. /package/dist/{chunk-WGDJX7WZ.js.map → chunk-YEYMNF7V.js.map} +0 -0
  734. /package/dist/{chunk-IEIGHCZS.js.map → chunk-YJ74QATP.js.map} +0 -0
  735. /package/dist/{chunk-ULZPHJYD.js.map → chunk-ZG2HCGAO.js.map} +0 -0
  736. /package/dist/{chunk-FR5USNAT.js.map → chunk-ZZN7ZD7J.js.map} +0 -0
  737. /package/dist/{cohort-GVAJTICQ.js.map → cohort-6OCRQQ2S.js.map} +0 -0
  738. /package/dist/{condition-EGPNMM47.js.map → condition-SZVXH3VU.js.map} +0 -0
  739. /package/dist/{controls-HBROSXHF.js.map → controls-MO6ZND76.js.map} +0 -0
  740. /package/dist/{controls.config-FWKV66TU.js.map → controls.config-P4MSTGL4.js.map} +0 -0
  741. /package/dist/{correlation-CEHE66EC.js.map → correlation-NMI3CM3T.js.map} +0 -0
  742. /package/dist/{customdata.inputui-LFT3N5FD.js.map → customdata.inputui-VCHSCA65.js.map} +0 -0
  743. /package/dist/{dataDownload-ZPAIAAE4.js.map → dataDownload-VQHOTQ5D.js.map} +0 -0
  744. /package/dist/{databrowser.ui-W5JGFBE6.js.map → databrowser.ui-ZFOCAG32.js.map} +0 -0
  745. /package/dist/{dictionary-RBE2CIZI.js.map → dictionary-S5YCFUWH.js.map} +0 -0
  746. /package/dist/{dnaMethylation-CX22TSRO.js.map → dnaMethylation-MQZLZRGT.js.map} +0 -0
  747. /package/dist/{dnaMethylation.integration.spec-KEE6ZZRT.js.map → dnaMethylation.integration.spec-H546EBUO.js.map} +0 -0
  748. /package/dist/{dofetch-6NAGX5EG.js.map → dofetch-QZIYSC7H.js.map} +0 -0
  749. /package/dist/{e2pca-XDGPTEXL.js.map → e2pca-XOXOS3PN.js.map} +0 -0
  750. /package/dist/{ep-IUIDMIGW.js.map → ep-U6KRL7FR.js.map} +0 -0
  751. /package/dist/{expclust.gdc.spec-BMN2PTJX.js.map → expclust.gdc.spec-HCK65C63.js.map} +0 -0
  752. /package/dist/{facet-DTJKZOBA.js.map → facet-DCC25KJO.js.map} +0 -0
  753. /package/dist/{gb-MV7MUJWO.js.map → gb-TIFWFD4Y.js.map} +0 -0
  754. /package/dist/{geneExpClustering-NFH5FS3S.js.map → geneExpClustering-6DQEOTOY.js.map} +0 -0
  755. /package/dist/{geneExpression-XVOLNYVN.js.map → geneExpression-EASRAN6B.js.map} +0 -0
  756. /package/dist/{geneExpression-ZP2VWHED.js.map → geneExpression-G4YMDCBH.js.map} +0 -0
  757. /package/dist/{geneExpression.unit.spec-2NSK4ARK.js.map → geneExpression.unit.spec-XVEJYMPX.js.map} +0 -0
  758. /package/dist/{geneORA-HQ7FLMEJ.js.map → geneORA-6UBS5GSC.js.map} +0 -0
  759. /package/dist/{geneRanking-MIABUKTN.js.map → geneRanking-UXXYWHNB.js.map} +0 -0
  760. /package/dist/{geneVariant-H52UUK6Z.js.map → geneVariant-SZRJOXVC.js.map} +0 -0
  761. /package/dist/{geneVariant-HDFWLALZ.js.map → geneVariant-TKFKARZK.js.map} +0 -0
  762. /package/dist/{genefusion.ui-HSDZQHJA.js.map → genefusion.ui-TJLYXSVL.js.map} +0 -0
  763. /package/dist/{geneset-WKV3X2EJ.js.map → geneset-YTBDLEIH.js.map} +0 -0
  764. /package/dist/{genomeBrowser.spec-UTAHAU76.js.map → genomeBrowser.spec-ZO4LFIXE.js.map} +0 -0
  765. /package/dist/{grin2-N2QM3XTG.js.map → grin2-FC4VYU54.js.map} +0 -0
  766. /package/dist/{grin2-M2JDZVYU.js.map → grin2-LIFKBMVK.js.map} +0 -0
  767. /package/dist/{hierCluster-LZI6OTRS.js.map → hierCluster-56EGAPOR.js.map} +0 -0
  768. /package/dist/{hierCluster-VVXPOTQU.js.map → hierCluster-DR5NWCXA.js.map} +0 -0
  769. /package/dist/{hierCluster.config-NCYH3Y7Z.js.map → hierCluster.config-NACE3FH2.js.map} +0 -0
  770. /package/dist/{hierCluster.integration.spec-ZDOOCTV3.js.map → hierCluster.integration.spec-PEEXPAS6.js.map} +0 -0
  771. /package/dist/{hierCluster.interactivity-4HP3JCON.js.map → hierCluster.interactivity-OCBGLUJM.js.map} +0 -0
  772. /package/dist/{hierCluster.renderers-3F5GMEXA.js.map → hierCluster.renderers-JNQUSAP4.js.map} +0 -0
  773. /package/dist/{imagePlot-OA4WTMLU.js.map → imagePlot-GR4JNUGG.js.map} +0 -0
  774. /package/dist/{importPlot-OSTC2GPO.js.map → importPlot-4R4BSPVD.js.map} +0 -0
  775. /package/dist/{isoformExpression-LZ5RTUS5.js.map → isoformExpression-ST5ZW2NE.js.map} +0 -0
  776. /package/dist/{isoformExpression.unit.spec-L6YDBKYM.js.map → isoformExpression.unit.spec-PPFC5Z7N.js.map} +0 -0
  777. /package/dist/{junction-UR6COY3A.js.map → junction-7AKZHOHV.js.map} +0 -0
  778. /package/dist/{junction.unit.spec-NVBJTGA4.js.map → junction.unit.spec-SZUJXRQ2.js.map} +0 -0
  779. /package/dist/{launch.adhoc-AZG6QJG7.js.map → launch.adhoc-RWJQUOJ6.js.map} +0 -0
  780. /package/dist/{leftlabel.sample-LYZG25RT.js.map → leftlabel.sample-WRHLVQAQ.js.map} +0 -0
  781. /package/dist/{lollipop-FJXVP5QM.js.map → lollipop-ZZWXTM23.js.map} +0 -0
  782. /package/dist/{maf-OXJIJD6D.js.map → maf-N4XPZTQU.js.map} +0 -0
  783. /package/dist/{maftimeline-75N6ZXEM.js.map → maftimeline-2FBS6RWS.js.map} +0 -0
  784. /package/dist/{matrix-QFKGEW5A.js.map → matrix-5KEQPB5H.js.map} +0 -0
  785. /package/dist/{matrix-XT7LUV5K.js.map → matrix-RJUNXB5N.js.map} +0 -0
  786. /package/dist/{matrix.cells-NB7LKKXV.js.map → matrix.cells-WXTPOJYB.js.map} +0 -0
  787. /package/dist/{matrix.config-X6HS4UGD.js.map → matrix.config-ZZFLLD6Z.js.map} +0 -0
  788. /package/dist/{matrix.data-VLFF34SS.js.map → matrix.data-3PQ73GVJ.js.map} +0 -0
  789. /package/dist/{matrix.groups-F62TSKIG.js.map → matrix.groups-U6CKS6WW.js.map} +0 -0
  790. /package/dist/{matrix.integration.spec-7QBYWHW6.js.map → matrix.integration.spec-T53PMVHC.js.map} +0 -0
  791. /package/dist/{matrix.interactivity-2FBXB52E.js.map → matrix.interactivity-3LDZV3F7.js.map} +0 -0
  792. /package/dist/{matrix.layout-6TPVKLSX.js.map → matrix.layout-MINLYQCA.js.map} +0 -0
  793. /package/dist/{matrix.legend-L4ULBMGX.js.map → matrix.legend-6GSDFZHS.js.map} +0 -0
  794. /package/dist/{matrix.renderers-DK6YRLO2.js.map → matrix.renderers-5BKOXDE3.js.map} +0 -0
  795. /package/dist/{matrix.serieses-DCRJLJ3H.js.map → matrix.serieses-6FCFIFAQ.js.map} +0 -0
  796. /package/dist/{matrix.sort-XSGPH44J.js.map → matrix.sort-EHVVYDZ3.js.map} +0 -0
  797. /package/dist/{matrix.sort.unit.spec-JF75F4I4.js.map → matrix.sort.unit.spec-BCWE4AFX.js.map} +0 -0
  798. /package/dist/{matrix.sorterUi.unit.spec-66JMV5BK.js.map → matrix.sorterUi.unit.spec-XJR5KXRL.js.map} +0 -0
  799. /package/dist/{matrix.unit.spec-36AR4I43.js.map → matrix.unit.spec-TUCKPE26.js.map} +0 -0
  800. /package/dist/{mavb-ZH4RO77H.js.map → mavb-GWSNRBLM.js.map} +0 -0
  801. /package/dist/{mds.fimo-MVP2G5PS.js.map → mds.fimo-OMAQRSMW.js.map} +0 -0
  802. /package/dist/{mds.samplescatterplot-GYJ3OI4N.js.map → mds.samplescatterplot-4UW3CC45.js.map} +0 -0
  803. /package/dist/{mds.survivalplot-Q6MYQGTB.js.map → mds.survivalplot-2CJYJBD2.js.map} +0 -0
  804. /package/dist/{multivalue-BGFMPH4X.js.map → multivalue-G44MHEYI.js.map} +0 -0
  805. /package/dist/{numericDictTermCluster-FNNVLIWB.js.map → numericDictTermCluster-5BDRGVQG.js.map} +0 -0
  806. /package/dist/{oncomatrix-LIIALWWN.js.map → oncomatrix-ZTVO23ZH.js.map} +0 -0
  807. /package/dist/{oncomatrix.spec-NEMLM2ZN.js.map → oncomatrix.spec-2QVK2A3Q.js.map} +0 -0
  808. /package/dist/{plot.2dvaf-HJO3SKNK.js.map → plot.2dvaf-CL5YUXKH.js.map} +0 -0
  809. /package/dist/{plot.app-WSLFOFSR.js.map → plot.app-4ANKPSNP.js.map} +0 -0
  810. /package/dist/{plot.barplot-SPI5JA37.js.map → plot.barplot-BMGDNZRA.js.map} +0 -0
  811. /package/dist/{plot.boxplot-4W3XEY5I.js.map → plot.boxplot-GMLQCDP6.js.map} +0 -0
  812. /package/dist/{plot.brainImaging-KEOUTYIB.js.map → plot.brainImaging-RZXX3NUZ.js.map} +0 -0
  813. /package/dist/{plot.disco-7IDMKNAQ.js.map → plot.disco-3MD4J4C7.js.map} +0 -0
  814. /package/dist/{plot.ssgq-IOKUGDC4.js.map → plot.ssgq-ZC4UYKOT.js.map} +0 -0
  815. /package/dist/{plot.vaf2cov-SFSZ6M43.js.map → plot.vaf2cov-4DHFMYQV.js.map} +0 -0
  816. /package/dist/{polar2-PLPE5TX5.js.map → polar2-TMB5EITR.js.map} +0 -0
  817. /package/dist/{profileForms-ZDHG67GM.js.map → profileForms-GD7BIOOD.js.map} +0 -0
  818. /package/dist/{profilePlot-UUZA2YG6.js.map → profilePlot-CZLK5E74.js.map} +0 -0
  819. /package/dist/{proteinView-GHS3XARL.js.map → proteinView-FEEEXLKT.js.map} +0 -0
  820. /package/dist/{proteomeCohortCompare-TQ3BGIPS.js.map → proteomeCohortCompare-NVLJ2FXX.js.map} +0 -0
  821. /package/dist/{pseudbulk.unit.spec-HFESRN7A.js.map → pseudbulk.unit.spec-GHQZPNAH.js.map} +0 -0
  822. /package/dist/{pseudobulk-ODXYIUD5.js.map → pseudobulk-G5UQIRKL.js.map} +0 -0
  823. /package/dist/{qualitative-WOSYAIGQ.js.map → qualitative-EAUUCKU5.js.map} +0 -0
  824. /package/dist/{radar2-2KXBS3Y3.js.map → radar2-CJQ2L6KE.js.map} +0 -0
  825. /package/dist/{radarFacility2-JCOKJQQF.js.map → radarFacility2-BLVRZE4V.js.map} +0 -0
  826. /package/dist/{render-IJ6GE3NE.js.map → render-KKAQPH6Y.js.map} +0 -0
  827. /package/dist/{report-WLLFUA7L.js.map → report-OSOJHTSD.js.map} +0 -0
  828. /package/dist/{sampleView-LPKSYUNF.js.map → sampleView-WB74RLD7.js.map} +0 -0
  829. /package/dist/{samplelst-MNI2MGMT.js.map → samplelst-ZKXV5WOD.js.map} +0 -0
  830. /package/dist/{samplematrix-KEKJP2B4.js.map → samplematrix-WJFYMWLT.js.map} +0 -0
  831. /package/dist/{sc-ZYKFRJU4.js.map → sc-RBRBUCLR.js.map} +0 -0
  832. /package/dist/{scatter-BAEZOFWA.js.map → scatter-5K3QTIDK.js.map} +0 -0
  833. /package/dist/{scatter-IGFBIZ3B.js.map → scatter-SM7GQENM.js.map} +0 -0
  834. /package/dist/{selectGenomeWithTklst-HBHRXEDY.js.map → selectGenomeWithTklst-ZZUJ7AQ7.js.map} +0 -0
  835. /package/dist/{singleCellCellType-PMFDV24B.js.map → singleCellCellType-LCF2JNZ2.js.map} +0 -0
  836. /package/dist/{singleCellCellType.unit.spec-ZLYDUDIY.js.map → singleCellCellType.unit.spec-T6DYH4BC.js.map} +0 -0
  837. /package/dist/{singleCellGeneExpression-SUYO3HR3.js.map → singleCellGeneExpression-2XUYTH4C.js.map} +0 -0
  838. /package/dist/{singleCellGeneExpression.unit.spec-3N3HRXFN.js.map → singleCellGeneExpression.unit.spec-SMRCLOF4.js.map} +0 -0
  839. /package/dist/{singleCellNumericValue-BV7C6Y34.js.map → singleCellNumericValue-57I33FZT.js.map} +0 -0
  840. /package/dist/{singleCellNumericValue.unit.spec-7VJOMYQ6.js.map → singleCellNumericValue.unit.spec-4YNB4OEV.js.map} +0 -0
  841. /package/dist/{singleCellPlot-BG7UJOHA.js.map → singleCellPlot-L6TKQHGD.js.map} +0 -0
  842. /package/dist/{singlecell-BANNFGBS.js.map → singlecell-LZKR3UDV.js.map} +0 -0
  843. /package/dist/{singlecell-ZUTL5ZWE.js.map → singlecell-UKN2VCXQ.js.map} +0 -0
  844. /package/dist/{snp-BHG4NVK4.js.map → snp-3LJITU5B.js.map} +0 -0
  845. /package/dist/{snp.unit.spec-Q3AZHQRC.js.map → snp.unit.spec-ZQNU6XRM.js.map} +0 -0
  846. /package/dist/{snplocus-HTJL63M3.js.map → snplocus-OME7UQBW.js.map} +0 -0
  847. /package/dist/{spliceevent.a53ss.diagram-UKRIP7EP.js.map → spliceevent.a53ss.diagram-C32IEFMU.js.map} +0 -0
  848. /package/dist/{spliceevent.exonskip.diagram-CU777CXQ.js.map → spliceevent.exonskip.diagram-CZ7MVRLK.js.map} +0 -0
  849. /package/dist/{spliceevent.noeventdiagram-LGLXCF25.js.map → spliceevent.noeventdiagram-ZO6R3776.js.map} +0 -0
  850. /package/dist/{ssGSEA-BIEEKAKX.js.map → ssGSEA-BGPQ2PFY.js.map} +0 -0
  851. /package/dist/{ssGSEA.unit.spec-YD4UDIRH.js.map → ssGSEA.unit.spec-U7TBUSSK.js.map} +0 -0
  852. /package/dist/{stattable-LFR3RSD6.js.map → stattable-FISGQCED.js.map} +0 -0
  853. /package/dist/{studyCatalog-RINIZ277.js.map → studyCatalog-UHFUT2CJ.js.map} +0 -0
  854. /package/dist/{summarizeCnvGeneexp-ZQFNPR65.js.map → summarizeCnvGeneexp-OVZO6KIB.js.map} +0 -0
  855. /package/dist/{summarizeGeneexpSurvival-GIS7XMMH.js.map → summarizeGeneexpSurvival-KVQ4JGWK.js.map} +0 -0
  856. /package/dist/{summarizeMutationCnv-FWF7YIGR.js.map → summarizeMutationCnv-RAKGHNLE.js.map} +0 -0
  857. /package/dist/{summarizeMutationDiagnosis-V5L2OKTK.js.map → summarizeMutationDiagnosis-LGCINAGG.js.map} +0 -0
  858. /package/dist/{summarizeMutationSurvival-LAUUF6XN.js.map → summarizeMutationSurvival-J7H7L4FX.js.map} +0 -0
  859. /package/dist/{summary-OMU3ACNE.js.map → summary-2632JZXH.js.map} +0 -0
  860. /package/dist/{summary.integration.spec-6JZAT73L.js.map → summary.integration.spec-5WBS2ZRP.js.map} +0 -0
  861. /package/dist/{summaryInput-QIKL3HDD.js.map → summaryInput-BH6C3ATV.js.map} +0 -0
  862. /package/dist/{sunburst-32IW2R57.js.map → sunburst-AMRR2IHM.js.map} +0 -0
  863. /package/dist/{survival-H5AWMQ36.js.map → survival-2RNJQVFS.js.map} +0 -0
  864. /package/dist/{survival-BMOPVAN2.js.map → survival-WYCH4QOQ.js.map} +0 -0
  865. /package/dist/{survival.integration.spec-66UOWSZG.js.map → survival.integration.spec-7IFPY4I4.js.map} +0 -0
  866. /package/dist/{svgraph-B75FS3BB.js.map → svgraph-YQWS52ZJ.js.map} +0 -0
  867. /package/dist/{svmr-IUEUOHVO.js.map → svmr-NRN6LGKK.js.map} +0 -0
  868. /package/dist/{table-YAAH7WR6.js.map → table-3QOMV2NN.js.map} +0 -0
  869. /package/dist/{termCollection-KNFUELYY.js.map → termCollection-2ZJ7TJGO.js.map} +0 -0
  870. /package/dist/{termCollection-7F5ZG2DB.js.map → termCollection-3MCVR7BA.js.map} +0 -0
  871. /package/dist/{termCollection.unit.spec-S6M6QC4C.js.map → termCollection.unit.spec-QYOEA3X6.js.map} +0 -0
  872. /package/dist/{termCollectionFractionSelection-X22VMJWY.js.map → termCollectionFractionSelection-5AH6EF4L.js.map} +0 -0
  873. /package/dist/{termCollectionFractionSelection.unit.spec-ELU6SD7P.js.map → termCollectionFractionSelection.unit.spec-WPGW4WJN.js.map} +0 -0
  874. /package/dist/{tk-TT666UVE.js.map → tk-DQ7D5UEO.js.map} +0 -0
  875. /package/dist/{tk-UOPNJ323.js.map → tk-ONKYBG6R.js.map} +0 -0
  876. /package/dist/{tp.ui-HGAHRKO5.js.map → tp.ui-C7BTMHEI.js.map} +0 -0
  877. /package/dist/{tvs.dt-H7YYR4EB.js.map → tvs.dt-PLRMK7OT.js.map} +0 -0
  878. /package/dist/{tvs.dtcnv.categorical-IPJTKGMF.js.map → tvs.dtcnv.categorical-IZUY2AQO.js.map} +0 -0
  879. /package/dist/{tvs.dtcnv.continuous-XY5XZ4GH.js.map → tvs.dtcnv.continuous-ENV3RHHA.js.map} +0 -0
  880. /package/dist/{tvs.dtfusion-VFCBMXRM.js.map → tvs.dtfusion-2DVCV6AM.js.map} +0 -0
  881. /package/dist/{tvs.dtitd-RZVW6FTR.js.map → tvs.dtitd-XNDIRQYU.js.map} +0 -0
  882. /package/dist/{tvs.dtsnvindel-IDPJWSGC.js.map → tvs.dtsnvindel-4D3G7XSF.js.map} +0 -0
  883. /package/dist/{tvs.dtsv-QERP756F.js.map → tvs.dtsv-QYMIMC4Z.js.map} +0 -0
  884. /package/dist/{tvs.numeric-22AHXO5K.js.map → tvs.numeric-M5LH3PRH.js.map} +0 -0
  885. /package/dist/{tvs.samplelst-6KNDHBIU.js.map → tvs.samplelst-2KEU2ZWB.js.map} +0 -0
  886. /package/dist/{tvs.termCollection-GWPJK3NE.js.map → tvs.termCollection-FEY746V5.js.map} +0 -0
  887. /package/dist/{vocabulary-C5FIZMPQ.js.map → vocabulary-BR4NJDPS.js.map} +0 -0
  888. /package/dist/{wsi.direct-2RBCBXDA.js.map → wsi.direct-JWDUNHIO.js.map} +0 -0
@@ -0,0 +1,2443 @@
1
+ import {
2
+ VolcanoModel,
3
+ getGroupColors
4
+ } from "./chunk-B563DUNQ.js";
5
+ import {
6
+ manhattanLayoutDefaults,
7
+ plotManhattan
8
+ } from "./chunk-XXPUZVS4.js";
9
+ import {
10
+ CCRE_TRACK_NAME
11
+ } from "./chunk-VROF55EH.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-55FABQU2.js";
37
+ import "./chunk-HJ6L54YS.js";
38
+ import "./chunk-KV4W2ACA.js";
39
+ import "./chunk-UXD6G6G4.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-VA57CUC7.js";
52
+ import "./chunk-BK6UDL7F.js";
53
+ import "./chunk-KIAMLQ7S.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-HRG5EFWH.js.map