@sjcrh/proteinpaint-client 2.208.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 (940) 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/DifferentialAnalysis-A2BU4WB3.js.map +7 -0
  14. package/dist/Disco-HECQVKXG.js +3389 -0
  15. package/dist/Disco.UI-XF2GEKRW.js +243 -0
  16. package/dist/DmrPlot-TVXVXOHL.js +362 -0
  17. package/dist/DmrPlot-TVXVXOHL.js.map +7 -0
  18. package/dist/GB-66ZGJ5ST.js +1428 -0
  19. package/dist/GB-66ZGJ5ST.js.map +7 -0
  20. package/dist/GSEA-Z4YPI4HY.js +875 -0
  21. package/dist/GSEA-Z4YPI4HY.js.map +7 -0
  22. package/dist/GeneExpInput-VBIZZV27.js +42 -0
  23. package/dist/Geomap-UIIOLRFA.js +84 -0
  24. package/dist/HicApp-73ESVNBA.js +2245 -0
  25. package/dist/IDCViewer-RBYN5A4P.js +10812 -0
  26. package/dist/NumBinaryEditor-DJLSNSLE.js +279 -0
  27. package/dist/NumBinaryEditor.unit.spec-LCJHL3XM.js +312 -0
  28. package/dist/NumContEditor-SVLDJ2ML.js +105 -0
  29. package/dist/NumContEditor.unit.spec-JDMSK4HY.js +164 -0
  30. package/dist/NumCustomBinEditor-BI63AH3R.js +33 -0
  31. package/dist/NumCustomBinEditor.unit.spec-5433G7Y2.js +397 -0
  32. package/dist/NumDiscreteEditor-LEZTGXAV.js +170 -0
  33. package/dist/NumDiscreteEditor.unit.spec-5OEORHJ4.js +233 -0
  34. package/dist/NumRegularBinEditor-EXWHIWPM.js +33 -0
  35. package/dist/NumRegularBinEditor.unit.spec-QY25Z2TT.js +278 -0
  36. package/dist/NumSplineEditor-XPPMYYAD.js +210 -0
  37. package/dist/NumSplineEditor.unit.spec-GOGBKWMN.js +224 -0
  38. package/dist/NumericDensity-RKY2IQ72.js +33 -0
  39. package/dist/NumericDensity.unit.spec-5ZM6ICXM.js +418 -0
  40. package/dist/NumericHandler-FXF3M5M3.js +34 -0
  41. package/dist/NumericHandler.unit.spec-M2OQTBJX.js +214 -0
  42. package/dist/ProteomeInput-TMZ3THRL.js +388 -0
  43. package/dist/Regression-GQGAATHG.js +1416 -0
  44. package/dist/Regression-GQGAATHG.js.map +7 -0
  45. package/dist/RunChart2-7GNDWRKC.js +749 -0
  46. package/dist/SC-R2I2EMHA.js +1183 -0
  47. package/dist/SC-R2I2EMHA.js.map +7 -0
  48. package/dist/Violin-GKKEB55L.js +1081 -0
  49. package/dist/Violin-GKKEB55L.js.map +7 -0
  50. package/dist/Volcano-HRG5EFWH.js +2443 -0
  51. package/dist/Volcano-HRG5EFWH.js.map +7 -0
  52. package/dist/Wsi-OHRCGYYD.js +629 -0
  53. package/dist/adSandbox-H56B25WR.js +33 -0
  54. package/dist/animatedBubbleChart-7SXFHU4J.js +547 -0
  55. package/dist/app-22JCSULA.js +42 -0
  56. package/dist/app-RGZJB6LN.js +32 -0
  57. package/dist/app.js +14 -14
  58. package/dist/bam-HA65TRGX.js +876 -0
  59. package/dist/barchart-6XO75OMA.js +42 -0
  60. package/dist/barchart2-6E5BIRHD.js +309 -0
  61. package/dist/block-43KNTXZ5.js +6250 -0
  62. package/dist/block-43KNTXZ5.js.map +7 -0
  63. package/dist/block.init-TPU5QIPA.js +33 -0
  64. package/dist/block.mds.expressionrank-QZDRFXCH.js +354 -0
  65. package/dist/block.mds.geneboxplot-64QVBK5Q.js +823 -0
  66. package/dist/block.mds.junction-I4J6VXNT.js +1539 -0
  67. package/dist/block.mds.svcnv-GDQMSQFF.js +6796 -0
  68. package/dist/block.svg-2MZFT5QP.js +159 -0
  69. package/dist/block.tk.aicheck-2MKHF6LX.js +278 -0
  70. package/dist/block.tk.ase-CLYGKFTS.js +360 -0
  71. package/dist/block.tk.bam-XTR4QA5Z.js +1901 -0
  72. package/dist/block.tk.bedgraphdot-A2P2CXRU.js +379 -0
  73. package/dist/block.tk.bigwig.ui-YZH6JXEO.js +206 -0
  74. package/dist/block.tk.hicstraw-QBK5VWGU.js +818 -0
  75. package/dist/block.tk.junction-5DEVBA7G.js +2358 -0
  76. package/dist/block.tk.junction.textmatrixui-7TTQMO6W.js +194 -0
  77. package/dist/block.tk.ld-PRIVUPKL.js +94 -0
  78. package/dist/block.tk.menu-JGBRFSS3.js +1024 -0
  79. package/dist/block.tk.pgv-KQJCJMVD.js +938 -0
  80. package/dist/brainImaging-4SLVJ2HV.js +555 -0
  81. package/dist/brainRegions-BDIVM2SG.js +217 -0
  82. package/dist/bubbleHeatmap-ORKFJNEQ.js +378 -0
  83. package/dist/cellTypeBubbleHeatmap-VOHLI4P7.js +278 -0
  84. package/dist/chunk-26N3B2JO.js +194 -0
  85. package/dist/chunk-2HNJF5ZI.js +240 -0
  86. package/dist/chunk-2LNGHIOC.js +281 -0
  87. package/dist/chunk-3FEP6B5T.js +119 -0
  88. package/dist/chunk-3SCQGODD.js +274 -0
  89. package/dist/chunk-47STLK7K.js +518 -0
  90. package/dist/chunk-4G73CMUL.js +38 -0
  91. package/dist/chunk-4XYQG3XU.js +276 -0
  92. package/dist/chunk-53XNEXR6.js +34 -0
  93. package/dist/chunk-55FABQU2.js +24955 -0
  94. package/dist/chunk-55FABQU2.js.map +7 -0
  95. package/dist/chunk-5UB5H7A3.js +123 -0
  96. package/dist/chunk-6FYQYTV6.js +141 -0
  97. package/dist/chunk-6RP6CR4Q.js +182 -0
  98. package/dist/chunk-A5D37SIL.js +103 -0
  99. package/dist/chunk-ADRFQ5AL.js +102 -0
  100. package/dist/chunk-AUZ63NKJ.js +70 -0
  101. package/dist/chunk-B563DUNQ.js +217 -0
  102. package/dist/chunk-B563DUNQ.js.map +7 -0
  103. package/dist/chunk-BK6UDL7F.js +339 -0
  104. package/dist/chunk-CFZ2ZW3E.js +382 -0
  105. package/dist/chunk-CKOU3P27.js +26 -0
  106. package/dist/chunk-CT4IG5IR.js +339 -0
  107. package/dist/chunk-D6UBH77N.js +1731 -0
  108. package/dist/chunk-DS4GLMJL.js +170 -0
  109. package/dist/chunk-DSBRHWZ7.js +2853 -0
  110. package/dist/chunk-DX35MKPR.js +272 -0
  111. package/dist/chunk-EDZJ3VNZ.js +54 -0
  112. package/dist/chunk-F47A4CVK.js +1339 -0
  113. package/dist/chunk-FSLOUTTK.js +37 -0
  114. package/dist/chunk-FSLOUTTK.js.map +7 -0
  115. package/dist/chunk-G4H34RNK.js +446 -0
  116. package/dist/chunk-G7RUMSHL.js +263 -0
  117. package/dist/chunk-GXFS25SK.js +480 -0
  118. package/dist/chunk-I25LKYC4.js +379 -0
  119. package/dist/chunk-I25LKYC4.js.map +7 -0
  120. package/dist/chunk-IAB2PRIH.js +396 -0
  121. package/dist/chunk-IAB2PRIH.js.map +7 -0
  122. package/dist/chunk-IBT6WRY6.js +692 -0
  123. package/dist/chunk-IJ7AIDEO.js +302 -0
  124. package/dist/chunk-JBFVJHZN.js +1233 -0
  125. package/dist/chunk-JDVBUIEU.js +56 -0
  126. package/dist/chunk-JTANDSTD.js +54 -0
  127. package/dist/chunk-K7RW5TPU.js +4375 -0
  128. package/dist/chunk-KIAMLQ7S.js +424 -0
  129. package/dist/chunk-KIAMLQ7S.js.map +7 -0
  130. package/dist/chunk-LBCIXRI2.js +49 -0
  131. package/dist/chunk-MNXL2UV5.js +98 -0
  132. package/dist/chunk-NDOKW2HJ.js +31 -0
  133. package/dist/chunk-NI5CVN43.js +203 -0
  134. package/dist/chunk-NOBXDQDU.js +397 -0
  135. package/dist/chunk-NQNVLZOA.js +6360 -0
  136. package/dist/chunk-NULFGPE3.js +158 -0
  137. package/dist/chunk-OUIXGM3K.js +299 -0
  138. package/dist/chunk-P4LGA36F.js +14 -0
  139. package/dist/chunk-PU5FQWAY.js +55 -0
  140. package/dist/chunk-PZ2OSHBF.js +56 -0
  141. package/dist/chunk-QBNDPW7O.js +5071 -0
  142. package/dist/chunk-QD75Q5LM.js +59 -0
  143. package/dist/chunk-R5PKBL7V.js +80 -0
  144. package/dist/chunk-R5PKBL7V.js.map +7 -0
  145. package/dist/chunk-RFSOP75Z.js +1988 -0
  146. package/dist/chunk-RFSOP75Z.js.map +7 -0
  147. package/dist/chunk-RI65SIN3.js +626 -0
  148. package/dist/chunk-RPGLLO4T.js +2676 -0
  149. package/dist/chunk-RXNZK7MF.js +134 -0
  150. package/dist/chunk-S2ICJ3RZ.js +550 -0
  151. package/dist/chunk-SB36AUG7.js +1614 -0
  152. package/dist/chunk-SB36AUG7.js.map +7 -0
  153. package/dist/chunk-SFHG6H2D.js +129 -0
  154. package/dist/chunk-TQ2DVEQO.js +783 -0
  155. package/dist/chunk-U6BJ4ZNU.js +176 -0
  156. package/dist/chunk-UXD6G6G4.js +178 -0
  157. package/dist/chunk-VA57CUC7.js +2146 -0
  158. package/dist/chunk-VA57CUC7.js.map +7 -0
  159. package/dist/chunk-VH5W6ODW.js +294 -0
  160. package/dist/chunk-VROF55EH.js +255 -0
  161. package/dist/chunk-VROF55EH.js.map +7 -0
  162. package/dist/chunk-VWA7BYSV.js +217 -0
  163. package/dist/chunk-X37BRSGS.js +102 -0
  164. package/dist/chunk-XQYDXA47.js +562 -0
  165. package/dist/chunk-XXPUZVS4.js +237 -0
  166. package/dist/chunk-XXPUZVS4.js.map +7 -0
  167. package/dist/chunk-Y7V5AIUH.js +468 -0
  168. package/dist/chunk-YBNIOGUE.js +243 -0
  169. package/dist/chunk-YEYMNF7V.js +2327 -0
  170. package/dist/chunk-YJ74QATP.js +1278 -0
  171. package/dist/chunk-ZG2HCGAO.js +2784 -0
  172. package/dist/chunk-ZZN7ZD7J.js +54 -0
  173. package/dist/cohort-6OCRQQ2S.js +70 -0
  174. package/dist/condition-SZVXH3VU.js +327 -0
  175. package/dist/controls-MO6ZND76.js +34 -0
  176. package/dist/controls.config-P4MSTGL4.js +34 -0
  177. package/dist/correlation-NMI3CM3T.js +95 -0
  178. package/dist/customdata.inputui-VCHSCA65.js +284 -0
  179. package/dist/dataDownload-VQHOTQ5D.js +329 -0
  180. package/dist/databrowser.ui-ZFOCAG32.js +425 -0
  181. package/dist/dictionary-S5YCFUWH.js +113 -0
  182. package/dist/dnaMethylation-MQZLZRGT.js +33 -0
  183. package/dist/dnaMethylation.integration.spec-H546EBUO.js +198 -0
  184. package/dist/dofetch-QZIYSC7H.js +48 -0
  185. package/dist/e2pca-XOXOS3PN.js +344 -0
  186. package/dist/ep-U6KRL7FR.js +1249 -0
  187. package/dist/expclust.gdc.spec-HCK65C63.js +302 -0
  188. package/dist/facet-DCC25KJO.js +519 -0
  189. package/dist/gb-TIFWFD4Y.js +81 -0
  190. package/dist/geneExpClustering-6DQEOTOY.js +244 -0
  191. package/dist/geneExpression-EASRAN6B.js +310 -0
  192. package/dist/geneExpression-G4YMDCBH.js +33 -0
  193. package/dist/geneExpression.unit.spec-XVEJYMPX.js +128 -0
  194. package/dist/geneExpression.unit.spec-XVEJYMPX.js.map +7 -0
  195. package/dist/geneORA-6UBS5GSC.js +273 -0
  196. package/dist/geneRanking-UXXYWHNB.js +548 -0
  197. package/dist/geneVariant-SZRJOXVC.js +289 -0
  198. package/dist/geneVariant-SZRJOXVC.js.map +7 -0
  199. package/dist/geneVariant-TKFKARZK.js +36 -0
  200. package/dist/geneVariant.integration.spec-PXMAYJN3.js +503 -0
  201. package/dist/geneVariant.integration.spec-PXMAYJN3.js.map +7 -0
  202. package/dist/genefusion.ui-TJLYXSVL.js +303 -0
  203. package/dist/geneset-YTBDLEIH.js +203 -0
  204. package/dist/genomeBrowser.spec-ZO4LFIXE.js +276 -0
  205. package/dist/grin2-FC4VYU54.js +949 -0
  206. package/dist/grin2-FC4VYU54.js.map +7 -0
  207. package/dist/grin2-LIFKBMVK.js +70 -0
  208. package/dist/hierCluster-56EGAPOR.js +59 -0
  209. package/dist/hierCluster-DR5NWCXA.js +55 -0
  210. package/dist/hierCluster.config-NACE3FH2.js +36 -0
  211. package/dist/hierCluster.integration.spec-PEEXPAS6.js +483 -0
  212. package/dist/hierCluster.interactivity-OCBGLUJM.js +49 -0
  213. package/dist/hierCluster.renderers-JNQUSAP4.js +19 -0
  214. package/dist/imagePlot-GR4JNUGG.js +156 -0
  215. package/dist/importPlot-4R4BSPVD.js +8 -0
  216. package/dist/isoformExpression-ST5ZW2NE.js +35 -0
  217. package/dist/isoformExpression.unit.spec-PPFC5Z7N.js +237 -0
  218. package/dist/junction-7AKZHOHV.js +36 -0
  219. package/dist/junction.customTerm-TMV43R7Z.js +16 -0
  220. package/dist/junction.unit.spec-SZUJXRQ2.js +182 -0
  221. package/dist/launch.adhoc-RWJQUOJ6.js +37 -0
  222. package/dist/leftlabel.sample-WRHLVQAQ.js +258 -0
  223. package/dist/lollipop-ZZWXTM23.js +166 -0
  224. package/dist/maf-N4XPZTQU.js +455 -0
  225. package/dist/maftimeline-2FBS6RWS.js +587 -0
  226. package/dist/matrix-5KEQPB5H.js +59 -0
  227. package/dist/matrix-RJUNXB5N.js +54 -0
  228. package/dist/matrix.cells-WXTPOJYB.js +26 -0
  229. package/dist/matrix.config-ZZFLLD6Z.js +37 -0
  230. package/dist/matrix.data-3PQ73GVJ.js +23 -0
  231. package/dist/matrix.groups-U6CKS6WW.js +26 -0
  232. package/dist/matrix.integration.spec-T53PMVHC.js +3160 -0
  233. package/dist/matrix.integration.spec-T53PMVHC.js.map +7 -0
  234. package/dist/matrix.interactivity-3LDZV3F7.js +37 -0
  235. package/dist/matrix.layout-MINLYQCA.js +39 -0
  236. package/dist/matrix.legend-6GSDFZHS.js +20 -0
  237. package/dist/matrix.renderers-5BKOXDE3.js +34 -0
  238. package/dist/matrix.serieses-6FCFIFAQ.js +19 -0
  239. package/dist/matrix.sort-EHVVYDZ3.js +26 -0
  240. package/dist/matrix.sort.unit.spec-BCWE4AFX.js +468 -0
  241. package/dist/matrix.sorterUi-WL5I6S3K.js +16 -0
  242. package/dist/matrix.sorterUi.unit.spec-XJR5KXRL.js +338 -0
  243. package/dist/matrix.unit.spec-TUCKPE26.js +150 -0
  244. package/dist/mavb-GWSNRBLM.js +727 -0
  245. package/dist/mds.fimo-OMAQRSMW.js +513 -0
  246. package/dist/mds.samplescatterplot-4UW3CC45.js +1545 -0
  247. package/dist/mds.survivalplot-2CJYJBD2.js +477 -0
  248. package/dist/multivalue-G44MHEYI.js +83 -0
  249. package/dist/numericDictTermCluster-5BDRGVQG.js +63 -0
  250. package/dist/oncomatrix-ZTVO23ZH.js +290 -0
  251. package/dist/oncomatrix.spec-2QVK2A3Q.js +443 -0
  252. package/dist/plot.2dvaf-CL5YUXKH.js +372 -0
  253. package/dist/plot.app-4ANKPSNP.js +36 -0
  254. package/dist/plot.barplot-BMGDNZRA.js +97 -0
  255. package/dist/plot.boxplot-GMLQCDP6.js +146 -0
  256. package/dist/plot.brainImaging-RZXX3NUZ.js +51 -0
  257. package/dist/plot.disco-3MD4J4C7.js +99 -0
  258. package/dist/plot.ssgq-ZC4UYKOT.js +134 -0
  259. package/dist/plot.vaf2cov-4DHFMYQV.js +253 -0
  260. package/dist/polar2-TMB5EITR.js +232 -0
  261. package/dist/profileForms-GD7BIOOD.js +941 -0
  262. package/dist/profilePlot-CZLK5E74.js +49 -0
  263. package/dist/proteinView-FEEEXLKT.js +1357 -0
  264. package/dist/proteomeCohortCompare-NVLJ2FXX.js +912 -0
  265. package/dist/pseudbulk.unit.spec-GHQZPNAH.js +86 -0
  266. package/dist/pseudobulk-G5UQIRKL.js +35 -0
  267. package/dist/qualitative-EAUUCKU5.js +38 -0
  268. package/dist/radar2-CJQ2L6KE.js +327 -0
  269. package/dist/radarFacility2-BLVRZE4V.js +335 -0
  270. package/dist/rememberedGvQ.unit.spec-DYRO2LO5.js +211 -0
  271. package/dist/render-KKAQPH6Y.js +33 -0
  272. package/dist/report-OSOJHTSD.js +217 -0
  273. package/dist/sampleView-WB74RLD7.js +43 -0
  274. package/dist/samplelst-ZKXV5WOD.js +106 -0
  275. package/dist/samplematrix-WJFYMWLT.js +2193 -0
  276. package/dist/sc-RBRBUCLR.js +81 -0
  277. package/dist/scatter-5K3QTIDK.js +88 -0
  278. package/dist/scatter-SM7GQENM.js +925 -0
  279. package/dist/selectGenomeWithTklst-ZZUJ7AQ7.js +129 -0
  280. package/dist/singleCellCellType-LCF2JNZ2.js +33 -0
  281. package/dist/singleCellCellType.unit.spec-T6DYH4BC.js +154 -0
  282. package/dist/singleCellGeneExpression-2XUYTH4C.js +33 -0
  283. package/dist/singleCellGeneExpression.unit.spec-SMRCLOF4.js +148 -0
  284. package/dist/singleCellNumericValue-57I33FZT.js +33 -0
  285. package/dist/singleCellNumericValue.unit.spec-4YNB4OEV.js +416 -0
  286. package/dist/singleCellPlot-L6TKQHGD.js +48 -0
  287. package/dist/singlecell-LZKR3UDV.js +81 -0
  288. package/dist/singlecell-UKN2VCXQ.js +1566 -0
  289. package/dist/snp-3LJITU5B.js +33 -0
  290. package/dist/snp.unit.spec-ZQNU6XRM.js +171 -0
  291. package/dist/snplocus-OME7UQBW.js +203 -0
  292. package/dist/spliceevent.a53ss.diagram-C32IEFMU.js +146 -0
  293. package/dist/spliceevent.exonskip.diagram-CZ7MVRLK.js +278 -0
  294. package/dist/spliceevent.noeventdiagram-ZO6R3776.js +455 -0
  295. package/dist/ssGSEA-BGPQ2PFY.js +33 -0
  296. package/dist/ssGSEA.unit.spec-U7TBUSSK.js +83 -0
  297. package/dist/stattable-FISGQCED.js +117 -0
  298. package/dist/studyCatalog-UHFUT2CJ.js +414 -0
  299. package/dist/summarizeCnvGeneexp-OVZO6KIB.js +158 -0
  300. package/dist/summarizeGeneexpSurvival-KVQ4JGWK.js +105 -0
  301. package/dist/summarizeMutationCnv-RAKGHNLE.js +159 -0
  302. package/dist/summarizeMutationDiagnosis-LGCINAGG.js +35 -0
  303. package/dist/summarizeMutationSurvival-J7H7L4FX.js +99 -0
  304. package/dist/summary-2632JZXH.js +44 -0
  305. package/dist/summary.integration.spec-5WBS2ZRP.js +409 -0
  306. package/dist/summaryInput-BH6C3ATV.js +242 -0
  307. package/dist/sunburst-AMRR2IHM.js +278 -0
  308. package/dist/survival-2RNJQVFS.js +1248 -0
  309. package/dist/survival-WYCH4QOQ.js +53 -0
  310. package/dist/survival.integration.spec-7IFPY4I4.js +613 -0
  311. package/dist/svgraph-YQWS52ZJ.js +1382 -0
  312. package/dist/svmr-NRN6LGKK.js +3837 -0
  313. package/dist/table-3QOMV2NN.js +197 -0
  314. package/dist/termCollection-2ZJ7TJGO.js +33 -0
  315. package/dist/termCollection-3MCVR7BA.js +252 -0
  316. package/dist/termCollection.unit.spec-QYOEA3X6.js +299 -0
  317. package/dist/termCollectionFractionSelection-5AH6EF4L.js +42 -0
  318. package/dist/termCollectionFractionSelection.unit.spec-WPGW4WJN.js +188 -0
  319. package/dist/tk-DQ7D5UEO.js +41 -0
  320. package/dist/tk-ONKYBG6R.js +1121 -0
  321. package/dist/tp.ui-C7BTMHEI.js +1454 -0
  322. package/dist/tvs.dt-PLRMK7OT.js +34 -0
  323. package/dist/tvs.dtcnv.categorical-IZUY2AQO.js +35 -0
  324. package/dist/tvs.dtcnv.continuous-ENV3RHHA.js +67 -0
  325. package/dist/tvs.dtfusion-2DVCV6AM.js +35 -0
  326. package/dist/tvs.dtitd-XNDIRQYU.js +35 -0
  327. package/dist/tvs.dtsnvindel-4D3G7XSF.js +35 -0
  328. package/dist/tvs.dtsv-QYMIMC4Z.js +35 -0
  329. package/dist/tvs.numeric-M5LH3PRH.js +20 -0
  330. package/dist/tvs.samplelst-2KEU2ZWB.js +98 -0
  331. package/dist/tvs.termCollection-FEY746V5.js +124 -0
  332. package/dist/vocabulary-BR4NJDPS.js +36 -0
  333. package/dist/wsi.direct-JWDUNHIO.js +8343 -0
  334. package/package.json +3 -3
  335. package/dist/2dmaf-PN5YS362.js +0 -1367
  336. package/dist/AggMatrixInput-NJHU4FU2.js +0 -406
  337. package/dist/AggregateMatrix-IBWOJWOC.js +0 -41
  338. package/dist/AppHeader-XV6S7GG5.js +0 -830
  339. package/dist/BoxPlot-ZIVA55SK.js +0 -1211
  340. package/dist/CorrelationVolcano-33I4FC44.js +0 -617
  341. package/dist/Cuminc-WKY35UGV.js +0 -1219
  342. package/dist/DE-E256DHID.js +0 -89
  343. package/dist/DEinput-YU3W72K7.js +0 -499
  344. package/dist/DEinput-YU3W72K7.js.map +0 -7
  345. package/dist/DM-W7PXTIKY.js +0 -90
  346. package/dist/DifferentialAnalysis-SHMQHWJL.js +0 -236
  347. package/dist/DifferentialAnalysis-SHMQHWJL.js.map +0 -7
  348. package/dist/Disco-OZY5GW2Z.js +0 -3389
  349. package/dist/Disco.UI-NRALEYXK.js +0 -243
  350. package/dist/DmrPlot-QKUX5XUW.js +0 -637
  351. package/dist/DmrPlot-QKUX5XUW.js.map +0 -7
  352. package/dist/GB-ZYH7PGHT.js +0 -1391
  353. package/dist/GB-ZYH7PGHT.js.map +0 -7
  354. package/dist/GSEA-VQTD4MLY.js +0 -851
  355. package/dist/GSEA-VQTD4MLY.js.map +0 -7
  356. package/dist/GeneExpInput-XEFUTLFU.js +0 -42
  357. package/dist/Geomap-GEK7UEDU.js +0 -84
  358. package/dist/HicApp-ZY7UHV5H.js +0 -2245
  359. package/dist/IDCViewer-YNKG4V46.js +0 -10812
  360. package/dist/NumBinaryEditor-NEL727DX.js +0 -279
  361. package/dist/NumBinaryEditor.unit.spec-GCGZMJYF.js +0 -312
  362. package/dist/NumContEditor-IM6RRDGU.js +0 -105
  363. package/dist/NumContEditor.unit.spec-B5AJXANS.js +0 -164
  364. package/dist/NumCustomBinEditor-EZT5DRKP.js +0 -33
  365. package/dist/NumCustomBinEditor.unit.spec-KLUDS6TH.js +0 -397
  366. package/dist/NumDiscreteEditor-2M6Q5AAZ.js +0 -170
  367. package/dist/NumDiscreteEditor.unit.spec-2JYZYJUX.js +0 -233
  368. package/dist/NumRegularBinEditor-AQDHA2PU.js +0 -33
  369. package/dist/NumRegularBinEditor.unit.spec-62BYFNYG.js +0 -278
  370. package/dist/NumSplineEditor-6Y5TZSTO.js +0 -210
  371. package/dist/NumSplineEditor.unit.spec-S65AV5EK.js +0 -224
  372. package/dist/NumericDensity-5ES4SDWZ.js +0 -33
  373. package/dist/NumericDensity.unit.spec-J6KZSE2P.js +0 -418
  374. package/dist/NumericHandler-ZTLDPP2F.js +0 -34
  375. package/dist/NumericHandler.unit.spec-BZFBVHGU.js +0 -214
  376. package/dist/ProteomeInput-IKEXPCGV.js +0 -388
  377. package/dist/Regression-6F6YP3AX.js +0 -1416
  378. package/dist/Regression-6F6YP3AX.js.map +0 -7
  379. package/dist/RunChart2-CVRPXQH5.js +0 -749
  380. package/dist/SC-FPXVXBXF.js +0 -1175
  381. package/dist/SC-FPXVXBXF.js.map +0 -7
  382. package/dist/Violin-BAS6DQHL.js +0 -1081
  383. package/dist/Violin-BAS6DQHL.js.map +0 -7
  384. package/dist/Volcano-FCCWUMX7.js +0 -1649
  385. package/dist/Volcano-FCCWUMX7.js.map +0 -7
  386. package/dist/Wsi-3YTFABWG.js +0 -629
  387. package/dist/adSandbox-QYIG6637.js +0 -33
  388. package/dist/animatedBubbleChart-X53PR73H.js +0 -547
  389. package/dist/app-HJLTRZPI.js +0 -32
  390. package/dist/app-MGY6A4DM.js +0 -42
  391. package/dist/bam-VRQHRCP5.js +0 -876
  392. package/dist/barchart-TWMOUZFL.js +0 -42
  393. package/dist/barchart2-CV7RMMRG.js +0 -309
  394. package/dist/block-L53P4UGQ.js +0 -6249
  395. package/dist/block-L53P4UGQ.js.map +0 -7
  396. package/dist/block.init-XYOJTXKP.js +0 -33
  397. package/dist/block.mds.expressionrank-77FSBDHA.js +0 -354
  398. package/dist/block.mds.geneboxplot-4TSYV4WS.js +0 -823
  399. package/dist/block.mds.junction-P4MYDET6.js +0 -1539
  400. package/dist/block.mds.svcnv-CYOFAS2T.js +0 -6796
  401. package/dist/block.svg-IT3ELCF4.js +0 -159
  402. package/dist/block.tk.aicheck-GULHJLV5.js +0 -278
  403. package/dist/block.tk.ase-RW5YL6HN.js +0 -360
  404. package/dist/block.tk.bam-MPGQW6KB.js +0 -1901
  405. package/dist/block.tk.bedgraphdot-EYRY374P.js +0 -379
  406. package/dist/block.tk.bigwig.ui-BKSXCDNM.js +0 -206
  407. package/dist/block.tk.hicstraw-76PV6NM3.js +0 -818
  408. package/dist/block.tk.junction-Z52QHQJQ.js +0 -2358
  409. package/dist/block.tk.junction.textmatrixui-K32OOTZC.js +0 -194
  410. package/dist/block.tk.ld-DDGLRHPO.js +0 -94
  411. package/dist/block.tk.menu-MO6TESKI.js +0 -1024
  412. package/dist/block.tk.pgv-AKLKKSEP.js +0 -938
  413. package/dist/brainImaging-KSTJQJAB.js +0 -555
  414. package/dist/brainRegions-WCRMMSK4.js +0 -217
  415. package/dist/bubbleHeatmap-4YOQ3BAB.js +0 -378
  416. package/dist/cellTypeBubbleHeatmap-O6YZ2RW4.js +0 -278
  417. package/dist/chunk-3GUVLDUS.js +0 -299
  418. package/dist/chunk-3PQDD5HM.js +0 -446
  419. package/dist/chunk-3WYUHDDP.js +0 -1986
  420. package/dist/chunk-3WYUHDDP.js.map +0 -7
  421. package/dist/chunk-4C7MA5Q3.js +0 -158
  422. package/dist/chunk-4EZLVENZ.js +0 -1612
  423. package/dist/chunk-4EZLVENZ.js.map +0 -7
  424. package/dist/chunk-4PB5ZEOB.js +0 -102
  425. package/dist/chunk-5IMFPVGT.js +0 -119
  426. package/dist/chunk-6DPELKO5.js +0 -518
  427. package/dist/chunk-6HGTVMZM.js +0 -54
  428. package/dist/chunk-72P6O537.js +0 -1731
  429. package/dist/chunk-74C6G6JD.js +0 -397
  430. package/dist/chunk-A7TXS6JR.js +0 -276
  431. package/dist/chunk-AAJXHERO.js +0 -123
  432. package/dist/chunk-AVS4IXEA.js +0 -692
  433. package/dist/chunk-BFXZBZEV.js +0 -176
  434. package/dist/chunk-BGVGN73F.js +0 -480
  435. package/dist/chunk-BL7EYUZC.js +0 -6360
  436. package/dist/chunk-BPGZUNLL.js +0 -274
  437. package/dist/chunk-CPIPN5F6.js +0 -141
  438. package/dist/chunk-D5MSWPAZ.js +0 -217
  439. package/dist/chunk-DFT2PAIU.js +0 -243
  440. package/dist/chunk-DMWOK4DS.js +0 -178
  441. package/dist/chunk-E7NVJ44Z.js +0 -263
  442. package/dist/chunk-EMMGUSJB.js +0 -54
  443. package/dist/chunk-G3CCQOLH.js +0 -240
  444. package/dist/chunk-GGQVDHYF.js +0 -379
  445. package/dist/chunk-GGQVDHYF.js.map +0 -7
  446. package/dist/chunk-GMRIEUBW.js +0 -408
  447. package/dist/chunk-GMRIEUBW.js.map +0 -7
  448. package/dist/chunk-GPZYAJQH.js +0 -2676
  449. package/dist/chunk-GS6ZMPKP.js +0 -272
  450. package/dist/chunk-GUXKLMLM.js +0 -102
  451. package/dist/chunk-HELEV3LT.js +0 -2853
  452. package/dist/chunk-HKKTNIMX.js +0 -339
  453. package/dist/chunk-HKSRIEWJ.js +0 -26
  454. package/dist/chunk-IELQ3HMN.js +0 -70
  455. package/dist/chunk-IISNWG4X.js +0 -103
  456. package/dist/chunk-J7KB2MH3.js +0 -34
  457. package/dist/chunk-JEJV7V7M.js +0 -2327
  458. package/dist/chunk-JIZ3B32T.js +0 -626
  459. package/dist/chunk-KAY2ODXX.js +0 -38
  460. package/dist/chunk-KJM6PLXM.js +0 -5071
  461. package/dist/chunk-KTKZSYIH.js +0 -24
  462. package/dist/chunk-KTKZSYIH.js.map +0 -7
  463. package/dist/chunk-KZHF3MQX.js +0 -1278
  464. package/dist/chunk-MC674TS2.js +0 -194
  465. package/dist/chunk-MLKQZ3RL.js +0 -1339
  466. package/dist/chunk-MSSPT5YM.js +0 -550
  467. package/dist/chunk-N6IWVSFP.js +0 -4375
  468. package/dist/chunk-NBGVEZNX.js +0 -56
  469. package/dist/chunk-OBBR4UYN.js +0 -54
  470. package/dist/chunk-PQA3C2NY.js +0 -294
  471. package/dist/chunk-QJ2VBXFB.js +0 -134
  472. package/dist/chunk-QJ3HYZH3.js +0 -24772
  473. package/dist/chunk-QJ3HYZH3.js.map +0 -7
  474. package/dist/chunk-QP7EJXSU.js +0 -55
  475. package/dist/chunk-QUHXX7JE.js +0 -56
  476. package/dist/chunk-REPQKF5L.js +0 -182
  477. package/dist/chunk-SHXJW27D.js +0 -2784
  478. package/dist/chunk-SUNDNTVY.js +0 -302
  479. package/dist/chunk-SYPSS3JQ.js +0 -387
  480. package/dist/chunk-SYPSS3JQ.js.map +0 -7
  481. package/dist/chunk-TSI4W6XO.js +0 -98
  482. package/dist/chunk-TXIQ5PHR.js +0 -468
  483. package/dist/chunk-U45R6QNT.js +0 -562
  484. package/dist/chunk-UMZJQWWK.js +0 -1233
  485. package/dist/chunk-VMRO6DMC.js +0 -2140
  486. package/dist/chunk-VMRO6DMC.js.map +0 -7
  487. package/dist/chunk-VO7Q4WMM.js +0 -55
  488. package/dist/chunk-VO7Q4WMM.js.map +0 -7
  489. package/dist/chunk-VWGRKOVJ.js +0 -170
  490. package/dist/chunk-WCTKHF5T.js +0 -197
  491. package/dist/chunk-WCTKHF5T.js.map +0 -7
  492. package/dist/chunk-WOMERKMR.js +0 -31
  493. package/dist/chunk-WXX2YD4Q.js +0 -59
  494. package/dist/chunk-X44AR557.js +0 -382
  495. package/dist/chunk-XEU5HXOY.js +0 -783
  496. package/dist/chunk-XGYQZHNX.js +0 -281
  497. package/dist/chunk-XOND7UIK.js +0 -49
  498. package/dist/chunk-XRMUUWLS.js +0 -339
  499. package/dist/chunk-XTOGCXPD.js +0 -129
  500. package/dist/chunk-Y5BBFDC3.js +0 -14
  501. package/dist/chunk-Z2FSHODI.js +0 -203
  502. package/dist/cohort-JWIQOO7U.js +0 -70
  503. package/dist/condition-ZUAQYF5C.js +0 -327
  504. package/dist/controls-ZPQ6SXD2.js +0 -34
  505. package/dist/controls.config-NELL5HY5.js +0 -34
  506. package/dist/correlation-2X76UI3K.js +0 -95
  507. package/dist/customdata.inputui-V6QIGFRP.js +0 -284
  508. package/dist/dataDownload-NSDY4MSL.js +0 -329
  509. package/dist/databrowser.ui-DDLFQB6K.js +0 -425
  510. package/dist/dictionary-WSDD6TFI.js +0 -113
  511. package/dist/dnaMethylation-3IM4OACZ.js +0 -33
  512. package/dist/dnaMethylation.integration.spec-5CSJA67S.js +0 -198
  513. package/dist/dofetch-GZ7POIBV.js +0 -48
  514. package/dist/e2pca-AX7U2DOI.js +0 -344
  515. package/dist/ep-UKACHFJU.js +0 -1249
  516. package/dist/expclust.gdc.spec-46HDKH2Q.js +0 -302
  517. package/dist/facet-3EONZDDE.js +0 -519
  518. package/dist/gb-W7GX5NWS.js +0 -81
  519. package/dist/geneExpClustering-PJA6Y5GW.js +0 -244
  520. package/dist/geneExpression-EMLVPVNK.js +0 -310
  521. package/dist/geneExpression-JMGYBT53.js +0 -33
  522. package/dist/geneExpression.unit.spec-DDZVZJVC.js +0 -128
  523. package/dist/geneExpression.unit.spec-DDZVZJVC.js.map +0 -7
  524. package/dist/geneORA-CIAFQQWB.js +0 -273
  525. package/dist/geneRanking-JRAU6FMJ.js +0 -548
  526. package/dist/geneVariant-3DZTWQFG.js +0 -36
  527. package/dist/geneVariant-YWURIZ72.js +0 -286
  528. package/dist/geneVariant-YWURIZ72.js.map +0 -7
  529. package/dist/geneVariant.integration.spec-V3KECZMM.js +0 -489
  530. package/dist/geneVariant.integration.spec-V3KECZMM.js.map +0 -7
  531. package/dist/genefusion.ui-AO3TUDTL.js +0 -303
  532. package/dist/geneset-RCIP2GZH.js +0 -203
  533. package/dist/genomeBrowser.spec-7PZCNBL3.js +0 -276
  534. package/dist/grin2-EUBCNH4Q.js +0 -70
  535. package/dist/grin2-YYBB5XJK.js +0 -1137
  536. package/dist/grin2-YYBB5XJK.js.map +0 -7
  537. package/dist/hierCluster-AV5NO2GW.js +0 -59
  538. package/dist/hierCluster-W2MVN34V.js +0 -55
  539. package/dist/hierCluster.config-4MBWG6RZ.js +0 -36
  540. package/dist/hierCluster.integration.spec-JUIBIUKH.js +0 -483
  541. package/dist/hierCluster.interactivity-6PJE64PF.js +0 -49
  542. package/dist/hierCluster.renderers-RWDQ5SHY.js +0 -19
  543. package/dist/imagePlot-XLDQNUJA.js +0 -156
  544. package/dist/importPlot-7FISAQKR.js +0 -8
  545. package/dist/isoformExpression-WOQAOVZS.js +0 -35
  546. package/dist/isoformExpression.unit.spec-BMEGJNCO.js +0 -237
  547. package/dist/junction-6NO36IPU.js +0 -36
  548. package/dist/junction.customTerm-N6JAOWZO.js +0 -16
  549. package/dist/junction.unit.spec-UKGSQHO4.js +0 -182
  550. package/dist/launch.adhoc-42PUNEA6.js +0 -37
  551. package/dist/leftlabel.sample-EXAUDPSB.js +0 -258
  552. package/dist/lollipop-4ASTA5HO.js +0 -166
  553. package/dist/maf-HPXANL3M.js +0 -455
  554. package/dist/maftimeline-2SXFX3HF.js +0 -587
  555. package/dist/matrix-DX4W5XMX.js +0 -59
  556. package/dist/matrix-S34ITAPJ.js +0 -54
  557. package/dist/matrix.cells-BLULUGSZ.js +0 -26
  558. package/dist/matrix.config-Z3LWYH74.js +0 -37
  559. package/dist/matrix.data-73HY7Y2V.js +0 -23
  560. package/dist/matrix.groups-NOUMYNFY.js +0 -26
  561. package/dist/matrix.integration.spec-VTXYJ46U.js +0 -3160
  562. package/dist/matrix.integration.spec-VTXYJ46U.js.map +0 -7
  563. package/dist/matrix.interactivity-YHDIO5A2.js +0 -37
  564. package/dist/matrix.layout-25HYKUF2.js +0 -39
  565. package/dist/matrix.legend-IMK7DH4V.js +0 -20
  566. package/dist/matrix.renderers-3RZRN6HO.js +0 -34
  567. package/dist/matrix.serieses-ZTVHQ7QA.js +0 -19
  568. package/dist/matrix.sort-EDXHT6NZ.js +0 -26
  569. package/dist/matrix.sort.unit.spec-LSNY7PHU.js +0 -468
  570. package/dist/matrix.sorterUi-3DRNHG5Z.js +0 -16
  571. package/dist/matrix.sorterUi.unit.spec-GNIIWGRJ.js +0 -338
  572. package/dist/matrix.unit.spec-7A6ZFRXI.js +0 -150
  573. package/dist/mavb-M5AXPLYX.js +0 -727
  574. package/dist/mds.fimo-QE5OFA22.js +0 -513
  575. package/dist/mds.samplescatterplot-664EOHX2.js +0 -1545
  576. package/dist/mds.survivalplot-H4TJD44D.js +0 -477
  577. package/dist/multivalue-JD3CNQJR.js +0 -83
  578. package/dist/numericDictTermCluster-XPKEYXD7.js +0 -63
  579. package/dist/oncomatrix-TX5PZQ76.js +0 -290
  580. package/dist/oncomatrix.spec-6X2WAHL7.js +0 -443
  581. package/dist/plot.2dvaf-5OHUFTMK.js +0 -372
  582. package/dist/plot.app-XIVVJHWG.js +0 -36
  583. package/dist/plot.barplot-PSODLAXD.js +0 -97
  584. package/dist/plot.boxplot-W3ASYFOG.js +0 -146
  585. package/dist/plot.brainImaging-JGDLKLR7.js +0 -51
  586. package/dist/plot.disco-TPMXTTZK.js +0 -99
  587. package/dist/plot.ssgq-KIZIOZIF.js +0 -134
  588. package/dist/plot.vaf2cov-MSMW72IY.js +0 -253
  589. package/dist/polar2-LA4MSRRN.js +0 -232
  590. package/dist/profileForms-BJRNB2ZF.js +0 -941
  591. package/dist/profilePlot-DDO53C4T.js +0 -49
  592. package/dist/proteinView-NFUR42XQ.js +0 -1357
  593. package/dist/proteomeCohortCompare-OZVF3X66.js +0 -912
  594. package/dist/pseudbulk.unit.spec-RY72JF7A.js +0 -86
  595. package/dist/pseudobulk-UVT5G2VL.js +0 -35
  596. package/dist/qualitative-X3VXNC7X.js +0 -38
  597. package/dist/radar2-RTVUJ3AN.js +0 -327
  598. package/dist/radarFacility2-ZGLZ5AKM.js +0 -335
  599. package/dist/rememberedGvQ.unit.spec-RLLLWU5M.js +0 -211
  600. package/dist/render-LR5BOYW6.js +0 -33
  601. package/dist/report-37W5OXUM.js +0 -217
  602. package/dist/sampleView-BDC2WPH7.js +0 -43
  603. package/dist/samplelst-V2EIVZC5.js +0 -106
  604. package/dist/samplematrix-XOSKILUL.js +0 -2193
  605. package/dist/sc-ZVZPWQY7.js +0 -81
  606. package/dist/scatter-2ZE5MCYH.js +0 -88
  607. package/dist/scatter-ZOWFPGIS.js +0 -925
  608. package/dist/selectGenomeWithTklst-EF7WYEAJ.js +0 -129
  609. package/dist/singleCellCellType-TKCGC3G3.js +0 -33
  610. package/dist/singleCellCellType.unit.spec-JZ6UHC5F.js +0 -154
  611. package/dist/singleCellGeneExpression-I2INGXGI.js +0 -33
  612. package/dist/singleCellGeneExpression.unit.spec-KL77FSHZ.js +0 -148
  613. package/dist/singleCellNumericValue-2X5NCEHL.js +0 -33
  614. package/dist/singleCellNumericValue.unit.spec-OUDBX5MY.js +0 -416
  615. package/dist/singleCellPlot-Q6INE54V.js +0 -48
  616. package/dist/singlecell-5N2P5ZAT.js +0 -81
  617. package/dist/singlecell-NPSWMNI3.js +0 -1566
  618. package/dist/snp-2WPJYPDE.js +0 -33
  619. package/dist/snp.unit.spec-PPWIIOX6.js +0 -171
  620. package/dist/snplocus-T3HZFZWA.js +0 -203
  621. package/dist/spliceevent.a53ss.diagram-APCF4LV5.js +0 -146
  622. package/dist/spliceevent.exonskip.diagram-TT5JGBSC.js +0 -278
  623. package/dist/spliceevent.noeventdiagram-CPXQSX3Z.js +0 -455
  624. package/dist/ssGSEA-FSX6P7HA.js +0 -33
  625. package/dist/ssGSEA.unit.spec-TXYT665R.js +0 -83
  626. package/dist/stattable-BD64SFYV.js +0 -117
  627. package/dist/studyCatalog-6BOWO4PO.js +0 -414
  628. package/dist/summarizeCnvGeneexp-AMLYJIPU.js +0 -158
  629. package/dist/summarizeGeneexpSurvival-IDM7T333.js +0 -105
  630. package/dist/summarizeMutationCnv-R6SYSJQC.js +0 -159
  631. package/dist/summarizeMutationDiagnosis-XZJ4JLW2.js +0 -35
  632. package/dist/summarizeMutationSurvival-ABJ5RL4L.js +0 -99
  633. package/dist/summary-NVYCTE6P.js +0 -44
  634. package/dist/summary.integration.spec-SSLTLVNW.js +0 -409
  635. package/dist/summaryInput-SJOZETRP.js +0 -242
  636. package/dist/sunburst-RU5ZPJKW.js +0 -278
  637. package/dist/survival-BHJQMXKI.js +0 -53
  638. package/dist/survival-DVG6Y2FV.js +0 -1248
  639. package/dist/survival.integration.spec-OJUPTY5N.js +0 -613
  640. package/dist/svgraph-ETFA4GRX.js +0 -1382
  641. package/dist/svmr-AI3RU4JK.js +0 -3837
  642. package/dist/table-YCTSMLQL.js +0 -197
  643. package/dist/termCollection-GMKEZR6D.js +0 -252
  644. package/dist/termCollection-VEVKKJZD.js +0 -33
  645. package/dist/termCollection.unit.spec-EU6YCEPX.js +0 -299
  646. package/dist/termCollectionFractionSelection-UBS74X36.js +0 -42
  647. package/dist/termCollectionFractionSelection.unit.spec-Y5OJFGDD.js +0 -188
  648. package/dist/tk-HMF4HCNV.js +0 -1121
  649. package/dist/tk-W6Z4FJMW.js +0 -41
  650. package/dist/tp.ui-NECRDJCS.js +0 -1454
  651. package/dist/tvs.dt-2JEH3F35.js +0 -34
  652. package/dist/tvs.dtcnv.categorical-YBXKEBR2.js +0 -35
  653. package/dist/tvs.dtcnv.continuous-AD3SJ6BY.js +0 -67
  654. package/dist/tvs.dtfusion-ODI3CLQS.js +0 -35
  655. package/dist/tvs.dtitd-V3LYLPJY.js +0 -35
  656. package/dist/tvs.dtsnvindel-R3V5LTNL.js +0 -35
  657. package/dist/tvs.dtsv-ZQLKEDLJ.js +0 -35
  658. package/dist/tvs.numeric-22AHXO5K.js +0 -20
  659. package/dist/tvs.samplelst-G25A7HM6.js +0 -98
  660. package/dist/tvs.termCollection-WLVCWDEJ.js +0 -124
  661. package/dist/vocabulary-6K537FJM.js +0 -36
  662. package/dist/wsi.direct-SNPPQPVO.js +0 -8343
  663. /package/dist/{2dmaf-PN5YS362.js.map → 2dmaf-43QBND66.js.map} +0 -0
  664. /package/dist/{AggMatrixInput-NJHU4FU2.js.map → AggMatrixInput-X7NGFUHH.js.map} +0 -0
  665. /package/dist/{AggregateMatrix-IBWOJWOC.js.map → AggregateMatrix-M4HRI4PX.js.map} +0 -0
  666. /package/dist/{AppHeader-XV6S7GG5.js.map → AppHeader-QBRQN6PM.js.map} +0 -0
  667. /package/dist/{BoxPlot-ZIVA55SK.js.map → BoxPlot-V6SPSEQ2.js.map} +0 -0
  668. /package/dist/{CorrelationVolcano-33I4FC44.js.map → CorrelationVolcano-UFPCYC77.js.map} +0 -0
  669. /package/dist/{Cuminc-WKY35UGV.js.map → Cuminc-KXGXGLKZ.js.map} +0 -0
  670. /package/dist/{DE-E256DHID.js.map → DE-K2YXHOOW.js.map} +0 -0
  671. /package/dist/{DM-W7PXTIKY.js.map → DM-C7VN3RWB.js.map} +0 -0
  672. /package/dist/{Disco-OZY5GW2Z.js.map → Disco-HECQVKXG.js.map} +0 -0
  673. /package/dist/{Disco.UI-NRALEYXK.js.map → Disco.UI-XF2GEKRW.js.map} +0 -0
  674. /package/dist/{GeneExpInput-XEFUTLFU.js.map → GeneExpInput-VBIZZV27.js.map} +0 -0
  675. /package/dist/{Geomap-GEK7UEDU.js.map → Geomap-UIIOLRFA.js.map} +0 -0
  676. /package/dist/{HicApp-ZY7UHV5H.js.map → HicApp-73ESVNBA.js.map} +0 -0
  677. /package/dist/{IDCViewer-YNKG4V46.js.map → IDCViewer-RBYN5A4P.js.map} +0 -0
  678. /package/dist/{NumBinaryEditor-NEL727DX.js.map → NumBinaryEditor-DJLSNSLE.js.map} +0 -0
  679. /package/dist/{NumBinaryEditor.unit.spec-GCGZMJYF.js.map → NumBinaryEditor.unit.spec-LCJHL3XM.js.map} +0 -0
  680. /package/dist/{NumContEditor-IM6RRDGU.js.map → NumContEditor-SVLDJ2ML.js.map} +0 -0
  681. /package/dist/{NumContEditor.unit.spec-B5AJXANS.js.map → NumContEditor.unit.spec-JDMSK4HY.js.map} +0 -0
  682. /package/dist/{NumCustomBinEditor-EZT5DRKP.js.map → NumCustomBinEditor-BI63AH3R.js.map} +0 -0
  683. /package/dist/{NumCustomBinEditor.unit.spec-KLUDS6TH.js.map → NumCustomBinEditor.unit.spec-5433G7Y2.js.map} +0 -0
  684. /package/dist/{NumDiscreteEditor-2M6Q5AAZ.js.map → NumDiscreteEditor-LEZTGXAV.js.map} +0 -0
  685. /package/dist/{NumDiscreteEditor.unit.spec-2JYZYJUX.js.map → NumDiscreteEditor.unit.spec-5OEORHJ4.js.map} +0 -0
  686. /package/dist/{NumRegularBinEditor-AQDHA2PU.js.map → NumRegularBinEditor-EXWHIWPM.js.map} +0 -0
  687. /package/dist/{NumRegularBinEditor.unit.spec-62BYFNYG.js.map → NumRegularBinEditor.unit.spec-QY25Z2TT.js.map} +0 -0
  688. /package/dist/{NumSplineEditor-6Y5TZSTO.js.map → NumSplineEditor-XPPMYYAD.js.map} +0 -0
  689. /package/dist/{NumSplineEditor.unit.spec-S65AV5EK.js.map → NumSplineEditor.unit.spec-GOGBKWMN.js.map} +0 -0
  690. /package/dist/{NumericDensity-5ES4SDWZ.js.map → NumericDensity-RKY2IQ72.js.map} +0 -0
  691. /package/dist/{NumericDensity.unit.spec-J6KZSE2P.js.map → NumericDensity.unit.spec-5ZM6ICXM.js.map} +0 -0
  692. /package/dist/{NumericHandler-ZTLDPP2F.js.map → NumericHandler-FXF3M5M3.js.map} +0 -0
  693. /package/dist/{NumericHandler.unit.spec-BZFBVHGU.js.map → NumericHandler.unit.spec-M2OQTBJX.js.map} +0 -0
  694. /package/dist/{ProteomeInput-IKEXPCGV.js.map → ProteomeInput-TMZ3THRL.js.map} +0 -0
  695. /package/dist/{RunChart2-CVRPXQH5.js.map → RunChart2-7GNDWRKC.js.map} +0 -0
  696. /package/dist/{Wsi-3YTFABWG.js.map → Wsi-OHRCGYYD.js.map} +0 -0
  697. /package/dist/{adSandbox-QYIG6637.js.map → adSandbox-H56B25WR.js.map} +0 -0
  698. /package/dist/{animatedBubbleChart-X53PR73H.js.map → animatedBubbleChart-7SXFHU4J.js.map} +0 -0
  699. /package/dist/{app-HJLTRZPI.js.map → app-22JCSULA.js.map} +0 -0
  700. /package/dist/{app-MGY6A4DM.js.map → app-RGZJB6LN.js.map} +0 -0
  701. /package/dist/{bam-VRQHRCP5.js.map → bam-HA65TRGX.js.map} +0 -0
  702. /package/dist/{barchart-TWMOUZFL.js.map → barchart-6XO75OMA.js.map} +0 -0
  703. /package/dist/{barchart2-CV7RMMRG.js.map → barchart2-6E5BIRHD.js.map} +0 -0
  704. /package/dist/{block.init-XYOJTXKP.js.map → block.init-TPU5QIPA.js.map} +0 -0
  705. /package/dist/{block.mds.expressionrank-77FSBDHA.js.map → block.mds.expressionrank-QZDRFXCH.js.map} +0 -0
  706. /package/dist/{block.mds.geneboxplot-4TSYV4WS.js.map → block.mds.geneboxplot-64QVBK5Q.js.map} +0 -0
  707. /package/dist/{block.mds.junction-P4MYDET6.js.map → block.mds.junction-I4J6VXNT.js.map} +0 -0
  708. /package/dist/{block.mds.svcnv-CYOFAS2T.js.map → block.mds.svcnv-GDQMSQFF.js.map} +0 -0
  709. /package/dist/{block.svg-IT3ELCF4.js.map → block.svg-2MZFT5QP.js.map} +0 -0
  710. /package/dist/{block.tk.aicheck-GULHJLV5.js.map → block.tk.aicheck-2MKHF6LX.js.map} +0 -0
  711. /package/dist/{block.tk.ase-RW5YL6HN.js.map → block.tk.ase-CLYGKFTS.js.map} +0 -0
  712. /package/dist/{block.tk.bam-MPGQW6KB.js.map → block.tk.bam-XTR4QA5Z.js.map} +0 -0
  713. /package/dist/{block.tk.bedgraphdot-EYRY374P.js.map → block.tk.bedgraphdot-A2P2CXRU.js.map} +0 -0
  714. /package/dist/{block.tk.bigwig.ui-BKSXCDNM.js.map → block.tk.bigwig.ui-YZH6JXEO.js.map} +0 -0
  715. /package/dist/{block.tk.hicstraw-76PV6NM3.js.map → block.tk.hicstraw-QBK5VWGU.js.map} +0 -0
  716. /package/dist/{block.tk.junction-Z52QHQJQ.js.map → block.tk.junction-5DEVBA7G.js.map} +0 -0
  717. /package/dist/{block.tk.junction.textmatrixui-K32OOTZC.js.map → block.tk.junction.textmatrixui-7TTQMO6W.js.map} +0 -0
  718. /package/dist/{block.tk.ld-DDGLRHPO.js.map → block.tk.ld-PRIVUPKL.js.map} +0 -0
  719. /package/dist/{block.tk.menu-MO6TESKI.js.map → block.tk.menu-JGBRFSS3.js.map} +0 -0
  720. /package/dist/{block.tk.pgv-AKLKKSEP.js.map → block.tk.pgv-KQJCJMVD.js.map} +0 -0
  721. /package/dist/{brainImaging-KSTJQJAB.js.map → brainImaging-4SLVJ2HV.js.map} +0 -0
  722. /package/dist/{brainRegions-WCRMMSK4.js.map → brainRegions-BDIVM2SG.js.map} +0 -0
  723. /package/dist/{bubbleHeatmap-4YOQ3BAB.js.map → bubbleHeatmap-ORKFJNEQ.js.map} +0 -0
  724. /package/dist/{cellTypeBubbleHeatmap-O6YZ2RW4.js.map → cellTypeBubbleHeatmap-VOHLI4P7.js.map} +0 -0
  725. /package/dist/{chunk-MC674TS2.js.map → chunk-26N3B2JO.js.map} +0 -0
  726. /package/dist/{chunk-G3CCQOLH.js.map → chunk-2HNJF5ZI.js.map} +0 -0
  727. /package/dist/{chunk-XGYQZHNX.js.map → chunk-2LNGHIOC.js.map} +0 -0
  728. /package/dist/{chunk-5IMFPVGT.js.map → chunk-3FEP6B5T.js.map} +0 -0
  729. /package/dist/{chunk-BPGZUNLL.js.map → chunk-3SCQGODD.js.map} +0 -0
  730. /package/dist/{chunk-6DPELKO5.js.map → chunk-47STLK7K.js.map} +0 -0
  731. /package/dist/{chunk-KAY2ODXX.js.map → chunk-4G73CMUL.js.map} +0 -0
  732. /package/dist/{chunk-A7TXS6JR.js.map → chunk-4XYQG3XU.js.map} +0 -0
  733. /package/dist/{chunk-J7KB2MH3.js.map → chunk-53XNEXR6.js.map} +0 -0
  734. /package/dist/{chunk-AAJXHERO.js.map → chunk-5UB5H7A3.js.map} +0 -0
  735. /package/dist/{chunk-CPIPN5F6.js.map → chunk-6FYQYTV6.js.map} +0 -0
  736. /package/dist/{chunk-REPQKF5L.js.map → chunk-6RP6CR4Q.js.map} +0 -0
  737. /package/dist/{chunk-IISNWG4X.js.map → chunk-A5D37SIL.js.map} +0 -0
  738. /package/dist/{chunk-4PB5ZEOB.js.map → chunk-ADRFQ5AL.js.map} +0 -0
  739. /package/dist/{chunk-IELQ3HMN.js.map → chunk-AUZ63NKJ.js.map} +0 -0
  740. /package/dist/{chunk-HKKTNIMX.js.map → chunk-BK6UDL7F.js.map} +0 -0
  741. /package/dist/{chunk-X44AR557.js.map → chunk-CFZ2ZW3E.js.map} +0 -0
  742. /package/dist/{chunk-HKSRIEWJ.js.map → chunk-CKOU3P27.js.map} +0 -0
  743. /package/dist/{chunk-XRMUUWLS.js.map → chunk-CT4IG5IR.js.map} +0 -0
  744. /package/dist/{chunk-72P6O537.js.map → chunk-D6UBH77N.js.map} +0 -0
  745. /package/dist/{chunk-VWGRKOVJ.js.map → chunk-DS4GLMJL.js.map} +0 -0
  746. /package/dist/{chunk-HELEV3LT.js.map → chunk-DSBRHWZ7.js.map} +0 -0
  747. /package/dist/{chunk-GS6ZMPKP.js.map → chunk-DX35MKPR.js.map} +0 -0
  748. /package/dist/{chunk-6HGTVMZM.js.map → chunk-EDZJ3VNZ.js.map} +0 -0
  749. /package/dist/{chunk-MLKQZ3RL.js.map → chunk-F47A4CVK.js.map} +0 -0
  750. /package/dist/{chunk-3PQDD5HM.js.map → chunk-G4H34RNK.js.map} +0 -0
  751. /package/dist/{chunk-E7NVJ44Z.js.map → chunk-G7RUMSHL.js.map} +0 -0
  752. /package/dist/{chunk-BGVGN73F.js.map → chunk-GXFS25SK.js.map} +0 -0
  753. /package/dist/{chunk-AVS4IXEA.js.map → chunk-IBT6WRY6.js.map} +0 -0
  754. /package/dist/{chunk-SUNDNTVY.js.map → chunk-IJ7AIDEO.js.map} +0 -0
  755. /package/dist/{chunk-UMZJQWWK.js.map → chunk-JBFVJHZN.js.map} +0 -0
  756. /package/dist/{chunk-NBGVEZNX.js.map → chunk-JDVBUIEU.js.map} +0 -0
  757. /package/dist/{chunk-OBBR4UYN.js.map → chunk-JTANDSTD.js.map} +0 -0
  758. /package/dist/{chunk-N6IWVSFP.js.map → chunk-K7RW5TPU.js.map} +0 -0
  759. /package/dist/{chunk-XOND7UIK.js.map → chunk-LBCIXRI2.js.map} +0 -0
  760. /package/dist/{chunk-TSI4W6XO.js.map → chunk-MNXL2UV5.js.map} +0 -0
  761. /package/dist/{chunk-WOMERKMR.js.map → chunk-NDOKW2HJ.js.map} +0 -0
  762. /package/dist/{chunk-Z2FSHODI.js.map → chunk-NI5CVN43.js.map} +0 -0
  763. /package/dist/{chunk-74C6G6JD.js.map → chunk-NOBXDQDU.js.map} +0 -0
  764. /package/dist/{chunk-BL7EYUZC.js.map → chunk-NQNVLZOA.js.map} +0 -0
  765. /package/dist/{chunk-4C7MA5Q3.js.map → chunk-NULFGPE3.js.map} +0 -0
  766. /package/dist/{chunk-3GUVLDUS.js.map → chunk-OUIXGM3K.js.map} +0 -0
  767. /package/dist/{chunk-Y5BBFDC3.js.map → chunk-P4LGA36F.js.map} +0 -0
  768. /package/dist/{chunk-QP7EJXSU.js.map → chunk-PU5FQWAY.js.map} +0 -0
  769. /package/dist/{chunk-QUHXX7JE.js.map → chunk-PZ2OSHBF.js.map} +0 -0
  770. /package/dist/{chunk-KJM6PLXM.js.map → chunk-QBNDPW7O.js.map} +0 -0
  771. /package/dist/{chunk-WXX2YD4Q.js.map → chunk-QD75Q5LM.js.map} +0 -0
  772. /package/dist/{chunk-JIZ3B32T.js.map → chunk-RI65SIN3.js.map} +0 -0
  773. /package/dist/{chunk-GPZYAJQH.js.map → chunk-RPGLLO4T.js.map} +0 -0
  774. /package/dist/{chunk-QJ2VBXFB.js.map → chunk-RXNZK7MF.js.map} +0 -0
  775. /package/dist/{chunk-MSSPT5YM.js.map → chunk-S2ICJ3RZ.js.map} +0 -0
  776. /package/dist/{chunk-XTOGCXPD.js.map → chunk-SFHG6H2D.js.map} +0 -0
  777. /package/dist/{chunk-XEU5HXOY.js.map → chunk-TQ2DVEQO.js.map} +0 -0
  778. /package/dist/{chunk-BFXZBZEV.js.map → chunk-U6BJ4ZNU.js.map} +0 -0
  779. /package/dist/{chunk-DMWOK4DS.js.map → chunk-UXD6G6G4.js.map} +0 -0
  780. /package/dist/{chunk-PQA3C2NY.js.map → chunk-VH5W6ODW.js.map} +0 -0
  781. /package/dist/{chunk-D5MSWPAZ.js.map → chunk-VWA7BYSV.js.map} +0 -0
  782. /package/dist/{chunk-GUXKLMLM.js.map → chunk-X37BRSGS.js.map} +0 -0
  783. /package/dist/{chunk-U45R6QNT.js.map → chunk-XQYDXA47.js.map} +0 -0
  784. /package/dist/{chunk-TXIQ5PHR.js.map → chunk-Y7V5AIUH.js.map} +0 -0
  785. /package/dist/{chunk-DFT2PAIU.js.map → chunk-YBNIOGUE.js.map} +0 -0
  786. /package/dist/{chunk-JEJV7V7M.js.map → chunk-YEYMNF7V.js.map} +0 -0
  787. /package/dist/{chunk-KZHF3MQX.js.map → chunk-YJ74QATP.js.map} +0 -0
  788. /package/dist/{chunk-SHXJW27D.js.map → chunk-ZG2HCGAO.js.map} +0 -0
  789. /package/dist/{chunk-EMMGUSJB.js.map → chunk-ZZN7ZD7J.js.map} +0 -0
  790. /package/dist/{cohort-JWIQOO7U.js.map → cohort-6OCRQQ2S.js.map} +0 -0
  791. /package/dist/{condition-ZUAQYF5C.js.map → condition-SZVXH3VU.js.map} +0 -0
  792. /package/dist/{controls-ZPQ6SXD2.js.map → controls-MO6ZND76.js.map} +0 -0
  793. /package/dist/{controls.config-NELL5HY5.js.map → controls.config-P4MSTGL4.js.map} +0 -0
  794. /package/dist/{correlation-2X76UI3K.js.map → correlation-NMI3CM3T.js.map} +0 -0
  795. /package/dist/{customdata.inputui-V6QIGFRP.js.map → customdata.inputui-VCHSCA65.js.map} +0 -0
  796. /package/dist/{dataDownload-NSDY4MSL.js.map → dataDownload-VQHOTQ5D.js.map} +0 -0
  797. /package/dist/{databrowser.ui-DDLFQB6K.js.map → databrowser.ui-ZFOCAG32.js.map} +0 -0
  798. /package/dist/{dictionary-WSDD6TFI.js.map → dictionary-S5YCFUWH.js.map} +0 -0
  799. /package/dist/{dnaMethylation-3IM4OACZ.js.map → dnaMethylation-MQZLZRGT.js.map} +0 -0
  800. /package/dist/{dnaMethylation.integration.spec-5CSJA67S.js.map → dnaMethylation.integration.spec-H546EBUO.js.map} +0 -0
  801. /package/dist/{dofetch-GZ7POIBV.js.map → dofetch-QZIYSC7H.js.map} +0 -0
  802. /package/dist/{e2pca-AX7U2DOI.js.map → e2pca-XOXOS3PN.js.map} +0 -0
  803. /package/dist/{ep-UKACHFJU.js.map → ep-U6KRL7FR.js.map} +0 -0
  804. /package/dist/{expclust.gdc.spec-46HDKH2Q.js.map → expclust.gdc.spec-HCK65C63.js.map} +0 -0
  805. /package/dist/{facet-3EONZDDE.js.map → facet-DCC25KJO.js.map} +0 -0
  806. /package/dist/{gb-W7GX5NWS.js.map → gb-TIFWFD4Y.js.map} +0 -0
  807. /package/dist/{geneExpClustering-PJA6Y5GW.js.map → geneExpClustering-6DQEOTOY.js.map} +0 -0
  808. /package/dist/{geneExpression-EMLVPVNK.js.map → geneExpression-EASRAN6B.js.map} +0 -0
  809. /package/dist/{geneExpression-JMGYBT53.js.map → geneExpression-G4YMDCBH.js.map} +0 -0
  810. /package/dist/{geneORA-CIAFQQWB.js.map → geneORA-6UBS5GSC.js.map} +0 -0
  811. /package/dist/{geneRanking-JRAU6FMJ.js.map → geneRanking-UXXYWHNB.js.map} +0 -0
  812. /package/dist/{geneVariant-3DZTWQFG.js.map → geneVariant-TKFKARZK.js.map} +0 -0
  813. /package/dist/{genefusion.ui-AO3TUDTL.js.map → genefusion.ui-TJLYXSVL.js.map} +0 -0
  814. /package/dist/{geneset-RCIP2GZH.js.map → geneset-YTBDLEIH.js.map} +0 -0
  815. /package/dist/{genomeBrowser.spec-7PZCNBL3.js.map → genomeBrowser.spec-ZO4LFIXE.js.map} +0 -0
  816. /package/dist/{grin2-EUBCNH4Q.js.map → grin2-LIFKBMVK.js.map} +0 -0
  817. /package/dist/{hierCluster-AV5NO2GW.js.map → hierCluster-56EGAPOR.js.map} +0 -0
  818. /package/dist/{hierCluster-W2MVN34V.js.map → hierCluster-DR5NWCXA.js.map} +0 -0
  819. /package/dist/{hierCluster.config-4MBWG6RZ.js.map → hierCluster.config-NACE3FH2.js.map} +0 -0
  820. /package/dist/{hierCluster.integration.spec-JUIBIUKH.js.map → hierCluster.integration.spec-PEEXPAS6.js.map} +0 -0
  821. /package/dist/{hierCluster.interactivity-6PJE64PF.js.map → hierCluster.interactivity-OCBGLUJM.js.map} +0 -0
  822. /package/dist/{hierCluster.renderers-RWDQ5SHY.js.map → hierCluster.renderers-JNQUSAP4.js.map} +0 -0
  823. /package/dist/{imagePlot-XLDQNUJA.js.map → imagePlot-GR4JNUGG.js.map} +0 -0
  824. /package/dist/{importPlot-7FISAQKR.js.map → importPlot-4R4BSPVD.js.map} +0 -0
  825. /package/dist/{isoformExpression-WOQAOVZS.js.map → isoformExpression-ST5ZW2NE.js.map} +0 -0
  826. /package/dist/{isoformExpression.unit.spec-BMEGJNCO.js.map → isoformExpression.unit.spec-PPFC5Z7N.js.map} +0 -0
  827. /package/dist/{junction-6NO36IPU.js.map → junction-7AKZHOHV.js.map} +0 -0
  828. /package/dist/{junction.customTerm-N6JAOWZO.js.map → junction.customTerm-TMV43R7Z.js.map} +0 -0
  829. /package/dist/{junction.unit.spec-UKGSQHO4.js.map → junction.unit.spec-SZUJXRQ2.js.map} +0 -0
  830. /package/dist/{launch.adhoc-42PUNEA6.js.map → launch.adhoc-RWJQUOJ6.js.map} +0 -0
  831. /package/dist/{leftlabel.sample-EXAUDPSB.js.map → leftlabel.sample-WRHLVQAQ.js.map} +0 -0
  832. /package/dist/{lollipop-4ASTA5HO.js.map → lollipop-ZZWXTM23.js.map} +0 -0
  833. /package/dist/{maf-HPXANL3M.js.map → maf-N4XPZTQU.js.map} +0 -0
  834. /package/dist/{maftimeline-2SXFX3HF.js.map → maftimeline-2FBS6RWS.js.map} +0 -0
  835. /package/dist/{matrix-DX4W5XMX.js.map → matrix-5KEQPB5H.js.map} +0 -0
  836. /package/dist/{matrix-S34ITAPJ.js.map → matrix-RJUNXB5N.js.map} +0 -0
  837. /package/dist/{matrix.cells-BLULUGSZ.js.map → matrix.cells-WXTPOJYB.js.map} +0 -0
  838. /package/dist/{matrix.config-Z3LWYH74.js.map → matrix.config-ZZFLLD6Z.js.map} +0 -0
  839. /package/dist/{matrix.data-73HY7Y2V.js.map → matrix.data-3PQ73GVJ.js.map} +0 -0
  840. /package/dist/{matrix.groups-NOUMYNFY.js.map → matrix.groups-U6CKS6WW.js.map} +0 -0
  841. /package/dist/{matrix.interactivity-YHDIO5A2.js.map → matrix.interactivity-3LDZV3F7.js.map} +0 -0
  842. /package/dist/{matrix.layout-25HYKUF2.js.map → matrix.layout-MINLYQCA.js.map} +0 -0
  843. /package/dist/{matrix.legend-IMK7DH4V.js.map → matrix.legend-6GSDFZHS.js.map} +0 -0
  844. /package/dist/{matrix.renderers-3RZRN6HO.js.map → matrix.renderers-5BKOXDE3.js.map} +0 -0
  845. /package/dist/{matrix.serieses-ZTVHQ7QA.js.map → matrix.serieses-6FCFIFAQ.js.map} +0 -0
  846. /package/dist/{matrix.sort-EDXHT6NZ.js.map → matrix.sort-EHVVYDZ3.js.map} +0 -0
  847. /package/dist/{matrix.sort.unit.spec-LSNY7PHU.js.map → matrix.sort.unit.spec-BCWE4AFX.js.map} +0 -0
  848. /package/dist/{matrix.sorterUi-3DRNHG5Z.js.map → matrix.sorterUi-WL5I6S3K.js.map} +0 -0
  849. /package/dist/{matrix.sorterUi.unit.spec-GNIIWGRJ.js.map → matrix.sorterUi.unit.spec-XJR5KXRL.js.map} +0 -0
  850. /package/dist/{matrix.unit.spec-7A6ZFRXI.js.map → matrix.unit.spec-TUCKPE26.js.map} +0 -0
  851. /package/dist/{mavb-M5AXPLYX.js.map → mavb-GWSNRBLM.js.map} +0 -0
  852. /package/dist/{mds.fimo-QE5OFA22.js.map → mds.fimo-OMAQRSMW.js.map} +0 -0
  853. /package/dist/{mds.samplescatterplot-664EOHX2.js.map → mds.samplescatterplot-4UW3CC45.js.map} +0 -0
  854. /package/dist/{mds.survivalplot-H4TJD44D.js.map → mds.survivalplot-2CJYJBD2.js.map} +0 -0
  855. /package/dist/{multivalue-JD3CNQJR.js.map → multivalue-G44MHEYI.js.map} +0 -0
  856. /package/dist/{numericDictTermCluster-XPKEYXD7.js.map → numericDictTermCluster-5BDRGVQG.js.map} +0 -0
  857. /package/dist/{oncomatrix-TX5PZQ76.js.map → oncomatrix-ZTVO23ZH.js.map} +0 -0
  858. /package/dist/{oncomatrix.spec-6X2WAHL7.js.map → oncomatrix.spec-2QVK2A3Q.js.map} +0 -0
  859. /package/dist/{plot.2dvaf-5OHUFTMK.js.map → plot.2dvaf-CL5YUXKH.js.map} +0 -0
  860. /package/dist/{plot.app-XIVVJHWG.js.map → plot.app-4ANKPSNP.js.map} +0 -0
  861. /package/dist/{plot.barplot-PSODLAXD.js.map → plot.barplot-BMGDNZRA.js.map} +0 -0
  862. /package/dist/{plot.boxplot-W3ASYFOG.js.map → plot.boxplot-GMLQCDP6.js.map} +0 -0
  863. /package/dist/{plot.brainImaging-JGDLKLR7.js.map → plot.brainImaging-RZXX3NUZ.js.map} +0 -0
  864. /package/dist/{plot.disco-TPMXTTZK.js.map → plot.disco-3MD4J4C7.js.map} +0 -0
  865. /package/dist/{plot.ssgq-KIZIOZIF.js.map → plot.ssgq-ZC4UYKOT.js.map} +0 -0
  866. /package/dist/{plot.vaf2cov-MSMW72IY.js.map → plot.vaf2cov-4DHFMYQV.js.map} +0 -0
  867. /package/dist/{polar2-LA4MSRRN.js.map → polar2-TMB5EITR.js.map} +0 -0
  868. /package/dist/{profileForms-BJRNB2ZF.js.map → profileForms-GD7BIOOD.js.map} +0 -0
  869. /package/dist/{profilePlot-DDO53C4T.js.map → profilePlot-CZLK5E74.js.map} +0 -0
  870. /package/dist/{proteinView-NFUR42XQ.js.map → proteinView-FEEEXLKT.js.map} +0 -0
  871. /package/dist/{proteomeCohortCompare-OZVF3X66.js.map → proteomeCohortCompare-NVLJ2FXX.js.map} +0 -0
  872. /package/dist/{pseudbulk.unit.spec-RY72JF7A.js.map → pseudbulk.unit.spec-GHQZPNAH.js.map} +0 -0
  873. /package/dist/{pseudobulk-UVT5G2VL.js.map → pseudobulk-G5UQIRKL.js.map} +0 -0
  874. /package/dist/{qualitative-X3VXNC7X.js.map → qualitative-EAUUCKU5.js.map} +0 -0
  875. /package/dist/{radar2-RTVUJ3AN.js.map → radar2-CJQ2L6KE.js.map} +0 -0
  876. /package/dist/{radarFacility2-ZGLZ5AKM.js.map → radarFacility2-BLVRZE4V.js.map} +0 -0
  877. /package/dist/{rememberedGvQ.unit.spec-RLLLWU5M.js.map → rememberedGvQ.unit.spec-DYRO2LO5.js.map} +0 -0
  878. /package/dist/{render-LR5BOYW6.js.map → render-KKAQPH6Y.js.map} +0 -0
  879. /package/dist/{report-37W5OXUM.js.map → report-OSOJHTSD.js.map} +0 -0
  880. /package/dist/{sampleView-BDC2WPH7.js.map → sampleView-WB74RLD7.js.map} +0 -0
  881. /package/dist/{samplelst-V2EIVZC5.js.map → samplelst-ZKXV5WOD.js.map} +0 -0
  882. /package/dist/{samplematrix-XOSKILUL.js.map → samplematrix-WJFYMWLT.js.map} +0 -0
  883. /package/dist/{sc-ZVZPWQY7.js.map → sc-RBRBUCLR.js.map} +0 -0
  884. /package/dist/{scatter-2ZE5MCYH.js.map → scatter-5K3QTIDK.js.map} +0 -0
  885. /package/dist/{scatter-ZOWFPGIS.js.map → scatter-SM7GQENM.js.map} +0 -0
  886. /package/dist/{selectGenomeWithTklst-EF7WYEAJ.js.map → selectGenomeWithTklst-ZZUJ7AQ7.js.map} +0 -0
  887. /package/dist/{singleCellCellType-TKCGC3G3.js.map → singleCellCellType-LCF2JNZ2.js.map} +0 -0
  888. /package/dist/{singleCellCellType.unit.spec-JZ6UHC5F.js.map → singleCellCellType.unit.spec-T6DYH4BC.js.map} +0 -0
  889. /package/dist/{singleCellGeneExpression-I2INGXGI.js.map → singleCellGeneExpression-2XUYTH4C.js.map} +0 -0
  890. /package/dist/{singleCellGeneExpression.unit.spec-KL77FSHZ.js.map → singleCellGeneExpression.unit.spec-SMRCLOF4.js.map} +0 -0
  891. /package/dist/{singleCellNumericValue-2X5NCEHL.js.map → singleCellNumericValue-57I33FZT.js.map} +0 -0
  892. /package/dist/{singleCellNumericValue.unit.spec-OUDBX5MY.js.map → singleCellNumericValue.unit.spec-4YNB4OEV.js.map} +0 -0
  893. /package/dist/{singleCellPlot-Q6INE54V.js.map → singleCellPlot-L6TKQHGD.js.map} +0 -0
  894. /package/dist/{singlecell-5N2P5ZAT.js.map → singlecell-LZKR3UDV.js.map} +0 -0
  895. /package/dist/{singlecell-NPSWMNI3.js.map → singlecell-UKN2VCXQ.js.map} +0 -0
  896. /package/dist/{snp-2WPJYPDE.js.map → snp-3LJITU5B.js.map} +0 -0
  897. /package/dist/{snp.unit.spec-PPWIIOX6.js.map → snp.unit.spec-ZQNU6XRM.js.map} +0 -0
  898. /package/dist/{snplocus-T3HZFZWA.js.map → snplocus-OME7UQBW.js.map} +0 -0
  899. /package/dist/{spliceevent.a53ss.diagram-APCF4LV5.js.map → spliceevent.a53ss.diagram-C32IEFMU.js.map} +0 -0
  900. /package/dist/{spliceevent.exonskip.diagram-TT5JGBSC.js.map → spliceevent.exonskip.diagram-CZ7MVRLK.js.map} +0 -0
  901. /package/dist/{spliceevent.noeventdiagram-CPXQSX3Z.js.map → spliceevent.noeventdiagram-ZO6R3776.js.map} +0 -0
  902. /package/dist/{ssGSEA-FSX6P7HA.js.map → ssGSEA-BGPQ2PFY.js.map} +0 -0
  903. /package/dist/{ssGSEA.unit.spec-TXYT665R.js.map → ssGSEA.unit.spec-U7TBUSSK.js.map} +0 -0
  904. /package/dist/{stattable-BD64SFYV.js.map → stattable-FISGQCED.js.map} +0 -0
  905. /package/dist/{studyCatalog-6BOWO4PO.js.map → studyCatalog-UHFUT2CJ.js.map} +0 -0
  906. /package/dist/{summarizeCnvGeneexp-AMLYJIPU.js.map → summarizeCnvGeneexp-OVZO6KIB.js.map} +0 -0
  907. /package/dist/{summarizeGeneexpSurvival-IDM7T333.js.map → summarizeGeneexpSurvival-KVQ4JGWK.js.map} +0 -0
  908. /package/dist/{summarizeMutationCnv-R6SYSJQC.js.map → summarizeMutationCnv-RAKGHNLE.js.map} +0 -0
  909. /package/dist/{summarizeMutationDiagnosis-XZJ4JLW2.js.map → summarizeMutationDiagnosis-LGCINAGG.js.map} +0 -0
  910. /package/dist/{summarizeMutationSurvival-ABJ5RL4L.js.map → summarizeMutationSurvival-J7H7L4FX.js.map} +0 -0
  911. /package/dist/{summary-NVYCTE6P.js.map → summary-2632JZXH.js.map} +0 -0
  912. /package/dist/{summary.integration.spec-SSLTLVNW.js.map → summary.integration.spec-5WBS2ZRP.js.map} +0 -0
  913. /package/dist/{summaryInput-SJOZETRP.js.map → summaryInput-BH6C3ATV.js.map} +0 -0
  914. /package/dist/{sunburst-RU5ZPJKW.js.map → sunburst-AMRR2IHM.js.map} +0 -0
  915. /package/dist/{survival-DVG6Y2FV.js.map → survival-2RNJQVFS.js.map} +0 -0
  916. /package/dist/{survival-BHJQMXKI.js.map → survival-WYCH4QOQ.js.map} +0 -0
  917. /package/dist/{survival.integration.spec-OJUPTY5N.js.map → survival.integration.spec-7IFPY4I4.js.map} +0 -0
  918. /package/dist/{svgraph-ETFA4GRX.js.map → svgraph-YQWS52ZJ.js.map} +0 -0
  919. /package/dist/{svmr-AI3RU4JK.js.map → svmr-NRN6LGKK.js.map} +0 -0
  920. /package/dist/{table-YCTSMLQL.js.map → table-3QOMV2NN.js.map} +0 -0
  921. /package/dist/{termCollection-VEVKKJZD.js.map → termCollection-2ZJ7TJGO.js.map} +0 -0
  922. /package/dist/{termCollection-GMKEZR6D.js.map → termCollection-3MCVR7BA.js.map} +0 -0
  923. /package/dist/{termCollection.unit.spec-EU6YCEPX.js.map → termCollection.unit.spec-QYOEA3X6.js.map} +0 -0
  924. /package/dist/{termCollectionFractionSelection-UBS74X36.js.map → termCollectionFractionSelection-5AH6EF4L.js.map} +0 -0
  925. /package/dist/{termCollectionFractionSelection.unit.spec-Y5OJFGDD.js.map → termCollectionFractionSelection.unit.spec-WPGW4WJN.js.map} +0 -0
  926. /package/dist/{tk-W6Z4FJMW.js.map → tk-DQ7D5UEO.js.map} +0 -0
  927. /package/dist/{tk-HMF4HCNV.js.map → tk-ONKYBG6R.js.map} +0 -0
  928. /package/dist/{tp.ui-NECRDJCS.js.map → tp.ui-C7BTMHEI.js.map} +0 -0
  929. /package/dist/{tvs.dt-2JEH3F35.js.map → tvs.dt-PLRMK7OT.js.map} +0 -0
  930. /package/dist/{tvs.dtcnv.categorical-YBXKEBR2.js.map → tvs.dtcnv.categorical-IZUY2AQO.js.map} +0 -0
  931. /package/dist/{tvs.dtcnv.continuous-AD3SJ6BY.js.map → tvs.dtcnv.continuous-ENV3RHHA.js.map} +0 -0
  932. /package/dist/{tvs.dtfusion-ODI3CLQS.js.map → tvs.dtfusion-2DVCV6AM.js.map} +0 -0
  933. /package/dist/{tvs.dtitd-V3LYLPJY.js.map → tvs.dtitd-XNDIRQYU.js.map} +0 -0
  934. /package/dist/{tvs.dtsnvindel-R3V5LTNL.js.map → tvs.dtsnvindel-4D3G7XSF.js.map} +0 -0
  935. /package/dist/{tvs.dtsv-ZQLKEDLJ.js.map → tvs.dtsv-QYMIMC4Z.js.map} +0 -0
  936. /package/dist/{tvs.numeric-22AHXO5K.js.map → tvs.numeric-M5LH3PRH.js.map} +0 -0
  937. /package/dist/{tvs.samplelst-G25A7HM6.js.map → tvs.samplelst-2KEU2ZWB.js.map} +0 -0
  938. /package/dist/{tvs.termCollection-WLVCWDEJ.js.map → tvs.termCollection-FEY746V5.js.map} +0 -0
  939. /package/dist/{vocabulary-6K537FJM.js.map → vocabulary-BR4NJDPS.js.map} +0 -0
  940. /package/dist/{wsi.direct-SNPPQPVO.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