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