@sjcrh/proteinpaint-client 2.216.0 → 2.217.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 (956) hide show
  1. package/dist/2dmaf-RRHATFHO.js +1362 -0
  2. package/dist/AggMatrixInput-4UHBCXYH.js +402 -0
  3. package/dist/AggregateMatrix-IJE5CM5Y.js +37 -0
  4. package/dist/AppHeader-UXGLRW6C.js +826 -0
  5. package/dist/BoxPlot-GQYC22KY.js +1233 -0
  6. package/dist/CorrelationVolcano-5CWRWZTI.js +613 -0
  7. package/dist/Cuminc-TYHKAPRK.js +1217 -0
  8. package/dist/DE-UUFQGSOI.js +85 -0
  9. package/dist/DEinput-DU7MF4YY.js +497 -0
  10. package/dist/DM-SSI5KUBC.js +86 -0
  11. package/dist/DifferentialAnalysis-G6FE2MXY.js +235 -0
  12. package/dist/Disco-B3KGNEAW.js +3384 -0
  13. package/dist/Disco.UI-UNPUBQCN.js +239 -0
  14. package/dist/DmrPlot-27NGDMT4.js +358 -0
  15. package/dist/GB-SXACUA4V.js +1388 -0
  16. package/dist/GSEA-EHMBA3TF.js +870 -0
  17. package/dist/GeneExpInput-NDXISF2U.js +38 -0
  18. package/dist/Geomap-3CNT227W.js +80 -0
  19. package/dist/HicApp-VQBUB6EZ.js +2240 -0
  20. package/dist/IDCViewer-DTOE7KDX.js +10808 -0
  21. package/dist/NumBinaryEditor-IVZ4MMQT.js +274 -0
  22. package/dist/NumBinaryEditor.unit.spec-3BSQ6FM4.js +308 -0
  23. package/dist/NumContEditor-CUZHU3IO.js +100 -0
  24. package/dist/NumContEditor.unit.spec-SCQFD2Y7.js +160 -0
  25. package/dist/NumCustomBinEditor-UEEYZ4ZO.js +29 -0
  26. package/dist/NumCustomBinEditor.unit.spec-GYS35OQV.js +393 -0
  27. package/dist/NumDiscreteEditor-IT7NIXTV.js +165 -0
  28. package/dist/NumDiscreteEditor.unit.spec-LB6VLAWO.js +229 -0
  29. package/dist/NumRegularBinEditor-FF6UXZWN.js +29 -0
  30. package/dist/NumRegularBinEditor.unit.spec-Z4S5LH2C.js +274 -0
  31. package/dist/NumSplineEditor-IW5WEN3P.js +205 -0
  32. package/dist/NumSplineEditor.unit.spec-PAEN3SAD.js +220 -0
  33. package/dist/NumericDensity-CPJIQLYT.js +29 -0
  34. package/dist/NumericDensity.unit.spec-4KHECHVU.js +414 -0
  35. package/dist/NumericHandler-SEFTQJDM.js +30 -0
  36. package/dist/NumericHandler.unit.spec-UGDR3476.js +210 -0
  37. package/dist/ProteomeInput-NYPUYVN5.js +610 -0
  38. package/dist/ProteomeInput-NYPUYVN5.js.map +7 -0
  39. package/dist/Regression-WDSISHYL.js +1412 -0
  40. package/dist/RunChart2-2NPADXUR.js +744 -0
  41. package/dist/SC-EWDBPHEL.js +1344 -0
  42. package/dist/Violin-POGGPCZY.js +1095 -0
  43. package/dist/Volcano-U2B4KEUL.js +2452 -0
  44. package/dist/Wsi-G7OCAJ3R.js +625 -0
  45. package/dist/adSandbox-SUCX6DAQ.js +29 -0
  46. package/dist/animatedBubbleChart-SDBWJELZ.js +542 -0
  47. package/dist/app-ATQM5PKI.js +28 -0
  48. package/dist/app-BCKEWJCY.js +38 -0
  49. package/dist/app.js +14 -14
  50. package/dist/bam-QK2ZLZDI.js +872 -0
  51. package/dist/barchart-RHDKI3NZ.js +38 -0
  52. package/dist/barchart2-CS3E6FOY.js +305 -0
  53. package/dist/block-RQ3HTJVP.js +6232 -0
  54. package/dist/block.init-T33F47DO.js +29 -0
  55. package/dist/block.mds.expressionrank-LQD6MN6Z.js +350 -0
  56. package/dist/block.mds.geneboxplot-N5XHHVR7.js +819 -0
  57. package/dist/block.mds.junction-JD4WQUSH.js +1534 -0
  58. package/dist/block.mds.svcnv-LCTYWXL2.js +6408 -0
  59. package/dist/block.svg-2F3RGTI3.js +155 -0
  60. package/dist/block.tk.aicheck-BOF6WZ5E.js +274 -0
  61. package/dist/block.tk.bam-5GBYEQBM.js +1897 -0
  62. package/dist/block.tk.bedgraphdot-LVQEP4RS.js +375 -0
  63. package/dist/block.tk.bigwig.ui-HHBO4JAC.js +202 -0
  64. package/dist/block.tk.hicstraw-JBO4UEOA.js +814 -0
  65. package/dist/block.tk.junction-S5S2N7FK.js +2353 -0
  66. package/dist/block.tk.junction.textmatrixui-DNQL7WB5.js +190 -0
  67. package/dist/block.tk.ld-JHQNR67E.js +90 -0
  68. package/dist/block.tk.menu-7JBJOY2O.js +1050 -0
  69. package/dist/block.tk.pgv-FQPREV6P.js +934 -0
  70. package/dist/brainImaging-HEWGZZNY.js +550 -0
  71. package/dist/brainRegions-QUGB7YUW.js +213 -0
  72. package/dist/bubbleHeatmap-OZRONGAX.js +374 -0
  73. package/dist/cellTypeBubbleHeatmap-N7NDE325.js +274 -0
  74. package/dist/chunk-2FWSNJEN.js +54 -0
  75. package/dist/chunk-2JIKMCJR.js +34 -0
  76. package/dist/chunk-3SPEW6R6.js +102 -0
  77. package/dist/chunk-5G6O5RYM.js +123 -0
  78. package/dist/chunk-65DO5IKM.js +299 -0
  79. package/dist/chunk-6D4HOTG7.js +1844 -0
  80. package/dist/chunk-6D4HOTG7.js.map +7 -0
  81. package/dist/chunk-6Q5SOSSU.js +2685 -0
  82. package/dist/chunk-7JHIUS54.js +626 -0
  83. package/dist/chunk-7X347XMF.js +397 -0
  84. package/dist/chunk-ABLG7GUS.js +55 -0
  85. package/dist/chunk-AFEFZ74T.js +276 -0
  86. package/dist/chunk-AIC43DTG.js +243 -0
  87. package/dist/chunk-AJXP4AV7.js +182 -0
  88. package/dist/chunk-AMW5LCUB.js +424 -0
  89. package/dist/chunk-AV2IH5K2.js +156 -0
  90. package/dist/chunk-B3WLXXGY.js +263 -0
  91. package/dist/chunk-BG6GAROI.js +302 -0
  92. package/dist/chunk-BIJOXCLN.js +2277 -0
  93. package/dist/chunk-BIJOXCLN.js.map +7 -0
  94. package/dist/chunk-BU6PAOGA.js +103 -0
  95. package/dist/chunk-C2TII2FF.js +96 -0
  96. package/dist/chunk-CTFHEDG2.js +550 -0
  97. package/dist/chunk-CXEECHP5.js +37 -0
  98. package/dist/chunk-CZK4EV3Y.js +1339 -0
  99. package/dist/chunk-D35GNF3Y.js +2325 -0
  100. package/dist/chunk-DFZWE3TR.js +170 -0
  101. package/dist/chunk-DX23HAW7.js +1219 -0
  102. package/dist/chunk-DX23HAW7.js.map +7 -0
  103. package/dist/chunk-E7XHA4YL.js +1988 -0
  104. package/dist/chunk-EDFBRXX2.js +54 -0
  105. package/dist/chunk-F23EQSGU.js +26 -0
  106. package/dist/chunk-F2EEQ7KG.js +379 -0
  107. package/dist/chunk-F5FFI7Z7.js +468 -0
  108. package/dist/chunk-FK5NL2DF.js +141 -0
  109. package/dist/chunk-FVZTRWAO.js +692 -0
  110. package/dist/chunk-GDHQVEIO.js +217 -0
  111. package/dist/chunk-GSVB4XNS.js +2799 -0
  112. package/dist/chunk-GVAV4VRI.js +418 -0
  113. package/dist/chunk-H2FELGYK.js +140 -0
  114. package/dist/chunk-HFKZGMVV.js +839 -0
  115. package/dist/chunk-HFKZGMVV.js.map +7 -0
  116. package/dist/chunk-HJARHSDC.js +274 -0
  117. package/dist/chunk-HWNQOADC.js +182 -0
  118. package/dist/chunk-HWNQOADC.js.map +7 -0
  119. package/dist/chunk-HXRG7XYB.js +54 -0
  120. package/dist/chunk-J5KCTRJC.js +80 -0
  121. package/dist/chunk-JMFVXWDX.js +59 -0
  122. package/dist/chunk-KGX2OIR4.js +203 -0
  123. package/dist/chunk-L2NPLA43.js +257 -0
  124. package/dist/chunk-L2WOLNZK.js +339 -0
  125. package/dist/chunk-LQKMDIRB.js +466 -0
  126. package/dist/chunk-LSQ5AQ6Q.js +562 -0
  127. package/dist/chunk-MBQIHLGI.js +1269 -0
  128. package/dist/chunk-MFR4WWDM.js +14 -0
  129. package/dist/chunk-MU4Z2MX2.js +340 -0
  130. package/dist/chunk-MU4Z2MX2.js.map +7 -0
  131. package/dist/chunk-NHMIMTJA.js +281 -0
  132. package/dist/chunk-NNDKYTUV.js +25353 -0
  133. package/dist/chunk-NNDKYTUV.js.map +7 -0
  134. package/dist/chunk-NPBN3PPZ.js +6358 -0
  135. package/dist/chunk-NULQJF73.js +56 -0
  136. package/dist/chunk-NYO7YANQ.js +294 -0
  137. package/dist/chunk-OBNHXAYG.js +194 -0
  138. package/dist/chunk-PETYR7LC.js +134 -0
  139. package/dist/chunk-PLFPXOGX.js +119 -0
  140. package/dist/chunk-PQVHRM4L.js +5213 -0
  141. package/dist/chunk-QLUTQPZE.js +240 -0
  142. package/dist/chunk-QNQ2ZYT7.js +38 -0
  143. package/dist/chunk-QYCPIVCX.js +255 -0
  144. package/dist/chunk-RZ2THVK4.js +516 -0
  145. package/dist/chunk-S4IZ4VM7.js +31 -0
  146. package/dist/chunk-SFUDTUXF.js +382 -0
  147. package/dist/chunk-SUT75MRI.js +102 -0
  148. package/dist/chunk-SYLYLOHK.js +56 -0
  149. package/dist/chunk-TEFWF3SK.js +176 -0
  150. package/dist/chunk-TPSVPMAN.js +70 -0
  151. package/dist/chunk-V4ZKHM6D.js +2960 -0
  152. package/dist/chunk-V7DNHPZD.js +4373 -0
  153. package/dist/chunk-VPMQDTYR.js +194 -0
  154. package/dist/chunk-VV6JIG4D.js +444 -0
  155. package/dist/chunk-WU3YXPRE.js +217 -0
  156. package/dist/chunk-X2HWRISK.js +480 -0
  157. package/dist/chunk-X77QVINS.js +49 -0
  158. package/dist/chunk-XXFLJWTQ.js +237 -0
  159. package/dist/chunk-ZPWBYHNE.js +5799 -0
  160. package/dist/chunk-ZPWBYHNE.js.map +7 -0
  161. package/dist/chunk-ZX75ZAUG.js +45 -0
  162. package/dist/chunk-ZX75ZAUG.js.map +7 -0
  163. package/dist/cohort-ATIZW34H.js +66 -0
  164. package/dist/cohortSunburst-WQK2UV25.js +686 -0
  165. package/dist/cohortSunburst-WQK2UV25.js.map +7 -0
  166. package/dist/condition-SGJIDZNB.js +323 -0
  167. package/dist/controls-JQCMGPXP.js +30 -0
  168. package/dist/controls.config-WQHVQAIJ.js +30 -0
  169. package/dist/correlation-S3MN3L5Q.js +91 -0
  170. package/dist/customdata.inputui-LGTGMJBZ.js +280 -0
  171. package/dist/dataDownload-FAWN2WKE.js +325 -0
  172. package/dist/databrowser.ui-KF3LWQXG.js +421 -0
  173. package/dist/dictionary-EVLEOT72.js +109 -0
  174. package/dist/dnaMethylation-J3SPEM4S.js +29 -0
  175. package/dist/dnaMethylation.integration.spec-CTA53YCT.js +194 -0
  176. package/dist/dofetch-3C3MI5NR.js +47 -0
  177. package/dist/e2pca-PTWPY5WP.js +340 -0
  178. package/dist/ep-MS4LQQDR.js +1245 -0
  179. package/dist/expclust.gdc.spec-S5FE4MMD.js +298 -0
  180. package/dist/facet-FSOIZJCA.js +515 -0
  181. package/dist/gb-YDEOK7NW.js +77 -0
  182. package/dist/geneExpClustering-37JKKFW3.js +240 -0
  183. package/dist/geneExpression-G6ODP3VY.js +29 -0
  184. package/dist/geneExpression-VQPRFNKE.js +309 -0
  185. package/dist/geneExpression.unit.spec-ZHXCUG6Q.js +124 -0
  186. package/dist/geneORA-E3PSS3CI.js +269 -0
  187. package/dist/geneRanking-MK3YYINC.js +544 -0
  188. package/dist/geneVariant-LEMAVFOY.js +32 -0
  189. package/dist/geneVariant-NNSB7JLS.js +285 -0
  190. package/dist/geneVariant.integration.spec-6CC5UAOP.js +499 -0
  191. package/dist/genefusion.ui-5NCQIQPN.js +299 -0
  192. package/dist/geneset-ZX4V3CFB.js +199 -0
  193. package/dist/genomeBrowser.spec-J7ISXY6H.js +272 -0
  194. package/dist/grin2-GN3DQNON.js +945 -0
  195. package/dist/grin2-LBGBBB4L.js +66 -0
  196. package/dist/hierCluster-5JURTKAZ.js +55 -0
  197. package/dist/hierCluster-BJ5VBPXR.js +51 -0
  198. package/dist/hierCluster.config-4EERP4KK.js +32 -0
  199. package/dist/hierCluster.integration.spec-VR4GULRV.js +479 -0
  200. package/dist/hierCluster.interactivity-SMTQOKUY.js +45 -0
  201. package/dist/hierCluster.renderers-PAME7BWU.js +18 -0
  202. package/dist/imagePlot-4LMIKBVE.js +152 -0
  203. package/dist/importPlot-3CG6ASNH.js +8 -0
  204. package/dist/isoformExpression-VCDNKTZ6.js +31 -0
  205. package/dist/isoformExpression.unit.spec-ZXYY37TA.js +233 -0
  206. package/dist/junction-5DXJO4PS.js +32 -0
  207. package/dist/junction.customTerm-UOPUSEOE.js +15 -0
  208. package/dist/junction.unit.spec-F35E3GJW.js +178 -0
  209. package/dist/launch.adhoc-V2HTCQGD.js +33 -0
  210. package/dist/leftlabel.sample-V7O2EC36.js +253 -0
  211. package/dist/lollipop-RNRZLG64.js +162 -0
  212. package/dist/maf-W6SF6BJS.js +451 -0
  213. package/dist/maftimeline-NABCAMHG.js +583 -0
  214. package/dist/matrix-JC6AJT2N.js +55 -0
  215. package/dist/matrix-UCHESWVK.js +50 -0
  216. package/dist/matrix.cells-B4L42TBM.js +25 -0
  217. package/dist/matrix.config-6US3AAH7.js +33 -0
  218. package/dist/matrix.data-FYFXYDA3.js +22 -0
  219. package/dist/matrix.groups-Y7DEG3GS.js +25 -0
  220. package/dist/matrix.integration.spec-KXX7SFX5.js +3156 -0
  221. package/dist/matrix.interactivity-NHWG4WCC.js +33 -0
  222. package/dist/matrix.layout-5DQNT7DD.js +35 -0
  223. package/dist/matrix.legend-OY7IF6AS.js +19 -0
  224. package/dist/matrix.renderers-GYOXGHPU.js +30 -0
  225. package/dist/matrix.serieses-657TLDAV.js +18 -0
  226. package/dist/matrix.sort-IMA2ES3T.js +25 -0
  227. package/dist/matrix.sort.unit.spec-S6BAFYPR.js +464 -0
  228. package/dist/matrix.sorterUi-77F36Q5H.js +15 -0
  229. package/dist/matrix.sorterUi.unit.spec-V5NVQGD5.js +334 -0
  230. package/dist/matrix.unit.spec-R4NMTZYQ.js +146 -0
  231. package/dist/mavb-MRCVMBPD.js +723 -0
  232. package/dist/mds.fimo-5DCH5BEM.js +509 -0
  233. package/dist/mds.samplescatterplot-VIBCS5M6.js +1545 -0
  234. package/dist/mds.survivalplot-AZ7LJDZZ.js +472 -0
  235. package/dist/multivalue-4QKGYYW2.js +79 -0
  236. package/dist/numericDictTermCluster-GLLG6IK2.js +62 -0
  237. package/dist/oncomatrix-R32ZPMX7.js +286 -0
  238. package/dist/oncomatrix.spec-BMK6LMBS.js +439 -0
  239. package/dist/plot.2dvaf-46FT53MF.js +368 -0
  240. package/dist/plot.app-7EE4YCV4.js +32 -0
  241. package/dist/plot.barplot-FK4J2G7K.js +93 -0
  242. package/dist/plot.boxplot-ATY4LK3X.js +142 -0
  243. package/dist/plot.brainImaging-S7B547V4.js +51 -0
  244. package/dist/plot.disco-K5MMC2GD.js +98 -0
  245. package/dist/plot.ssgq-B3OVMZFD.js +130 -0
  246. package/dist/plot.vaf2cov-RBHDQULW.js +249 -0
  247. package/dist/polar2-GECELCTG.js +228 -0
  248. package/dist/profileForms-2USYOA34.js +937 -0
  249. package/dist/profilePlot-YGD2CF6P.js +45 -0
  250. package/dist/proteinView-FCPWJLGU.js +1346 -0
  251. package/dist/proteinView-FCPWJLGU.js.map +7 -0
  252. package/dist/proteomeCohortCompare-TYYUF5A5.js +866 -0
  253. package/dist/proteomeCohortCompare-TYYUF5A5.js.map +7 -0
  254. package/dist/pseudbulk.unit.spec-UVVRP6NR.js +82 -0
  255. package/dist/pseudobulk-ZIN5VJGB.js +31 -0
  256. package/dist/qualitative-27BZGASV.js +34 -0
  257. package/dist/qualitative-N4F6NITI.js +241 -0
  258. package/dist/radar2-X465RPJX.js +323 -0
  259. package/dist/radarFacility2-AE7BA62N.js +331 -0
  260. package/dist/rememberedGvQ.unit.spec-4PDIU5RY.js +210 -0
  261. package/dist/render-TD2QWOHT.js +29 -0
  262. package/dist/report-3Y2OWDF7.js +213 -0
  263. package/dist/sampleView-BUMMYRHJ.js +39 -0
  264. package/dist/samplelst-BWK53BLI.js +102 -0
  265. package/dist/samplematrix-RQU43UYR.js +2188 -0
  266. package/dist/sc-LCBFWCZZ.js +77 -0
  267. package/dist/scatter-6S5I7OW3.js +921 -0
  268. package/dist/scatter-MJELX75N.js +84 -0
  269. package/dist/selectGenomeWithTklst-WAVXHXR5.js +125 -0
  270. package/dist/singleCellCellType-WMCAJ7JF.js +29 -0
  271. package/dist/singleCellCellType.unit.spec-4Z46ZT5Q.js +150 -0
  272. package/dist/singleCellGeneExpression-7Q5ZJT4R.js +29 -0
  273. package/dist/singleCellGeneExpression.unit.spec-6C7PDGRH.js +144 -0
  274. package/dist/singleCellNumericValue-QGYITZRC.js +29 -0
  275. package/dist/singleCellNumericValue.unit.spec-MQUKPEZJ.js +412 -0
  276. package/dist/singleCellPlot-JJMFJ2KQ.js +44 -0
  277. package/dist/singlecell-J23S3JR2.js +1562 -0
  278. package/dist/singlecell-Y4OGUWEC.js +77 -0
  279. package/dist/snp-IO6TKWGD.js +29 -0
  280. package/dist/snp.unit.spec-X7ILEEPO.js +167 -0
  281. package/dist/snplocus-Z2NGIKMO.js +200 -0
  282. package/dist/snplst-XCS2FCQV.js +36 -0
  283. package/dist/spliceevent.a53ss.diagram-F3S4BRVG.js +142 -0
  284. package/dist/spliceevent.exonskip.diagram-AXCDJKH4.js +274 -0
  285. package/dist/spliceevent.noeventdiagram-UK3X667E.js +451 -0
  286. package/dist/ssGSEA-ZRPNQKJ5.js +29 -0
  287. package/dist/ssGSEA.unit.spec-DG5ZHLC7.js +79 -0
  288. package/dist/stattable-XYSC3CYU.js +112 -0
  289. package/dist/studyCatalog-Y75LMI62.js +457 -0
  290. package/dist/studyCatalog-Y75LMI62.js.map +7 -0
  291. package/dist/summarizeCnvGeneexp-H2NP7VLU.js +154 -0
  292. package/dist/summarizeGeneexpSurvival-HTCD3VQQ.js +101 -0
  293. package/dist/summarizeMutationCnv-UEGXWK2P.js +155 -0
  294. package/dist/summarizeMutationDiagnosis-MJGWP7IT.js +31 -0
  295. package/dist/summarizeMutationSurvival-55JW5LA6.js +95 -0
  296. package/dist/summary-HJO23RGB.js +40 -0
  297. package/dist/summary.integration.spec-OWI2C2N5.js +405 -0
  298. package/dist/summaryInput-RL2JXRDE.js +238 -0
  299. package/dist/sunburst-JFY6V5E2.js +274 -0
  300. package/dist/survival-6FLR4YCJ.js +1246 -0
  301. package/dist/survival-PBBU6PA5.js +49 -0
  302. package/dist/survival.integration.spec-WAKTGYGP.js +609 -0
  303. package/dist/svgraph-WD3DUZV7.js +1377 -0
  304. package/dist/svmr-AP6ZFO7S.js +3832 -0
  305. package/dist/swimmer-VPKSBV6V.js +741 -0
  306. package/dist/swimmer-VPKSBV6V.js.map +7 -0
  307. package/dist/table-GX3VJLPZ.js +192 -0
  308. package/dist/termCollection-QE7U5QBD.js +29 -0
  309. package/dist/termCollection-YQ332WKB.js +247 -0
  310. package/dist/termCollection.unit.spec-ELLN7VRA.js +295 -0
  311. package/dist/termCollectionFractionSelection-V3RP5KAT.js +38 -0
  312. package/dist/termCollectionFractionSelection.unit.spec-JR7Q7TJI.js +184 -0
  313. package/dist/tk-GD2KJM5W.js +1116 -0
  314. package/dist/tk-J5VPFEX6.js +37 -0
  315. package/dist/tp.ui-5K3AAXDW.js +1449 -0
  316. package/dist/tvs.categorical-RPACB4VU.js +28 -0
  317. package/dist/tvs.condition-O6JBUM6D.js +160 -0
  318. package/dist/tvs.dt-5EVBSRX3.js +30 -0
  319. package/dist/tvs.dtcnv.categorical-Y5YHBZNC.js +31 -0
  320. package/dist/tvs.dtcnv.continuous-WP322QUP.js +63 -0
  321. package/dist/tvs.dtfusion-CCMUFDMQ.js +31 -0
  322. package/dist/tvs.dtitd-P3ED3MWA.js +31 -0
  323. package/dist/tvs.dtsnvindel-X2MXPLC6.js +31 -0
  324. package/dist/tvs.dtsv-4FOWFNVV.js +31 -0
  325. package/dist/tvs.multivalue-IRF467ZK.js +84 -0
  326. package/dist/tvs.numeric-C7FDCGCS.js +32 -0
  327. package/dist/tvs.samplelst-CBU6ATI5.js +95 -0
  328. package/dist/tvs.survival-3K5ASAXV.js +110 -0
  329. package/dist/tvs.termCollection-MXEWO6KJ.js +118 -0
  330. package/dist/vocabulary-GQBHDP3K.js +32 -0
  331. package/dist/wsi.direct-25JUHWEF.js +8339 -0
  332. package/package.json +3 -3
  333. package/dist/2dmaf-Y4CPQCKD.js +0 -1362
  334. package/dist/AggMatrixInput-XSZSKYJM.js +0 -402
  335. package/dist/AggregateMatrix-BETOEO7U.js +0 -37
  336. package/dist/AppHeader-6X6SNEBI.js +0 -826
  337. package/dist/BoxPlot-J6JKDOH6.js +0 -1233
  338. package/dist/CorrelationVolcano-DMDE4LAP.js +0 -613
  339. package/dist/Cuminc-6WHLJVOC.js +0 -1217
  340. package/dist/DE-EJM6W4Q4.js +0 -85
  341. package/dist/DEinput-AU3E7JM2.js +0 -497
  342. package/dist/DM-FN4WJNDX.js +0 -86
  343. package/dist/DifferentialAnalysis-FD57SA7H.js +0 -235
  344. package/dist/Disco-BMNSQ6YL.js +0 -3384
  345. package/dist/Disco.UI-4VXFHJQV.js +0 -239
  346. package/dist/DmrPlot-P5WKLC5J.js +0 -358
  347. package/dist/GB-BO75K7TF.js +0 -1388
  348. package/dist/GSEA-OEFXDJ23.js +0 -870
  349. package/dist/GeneExpInput-FP7RBRXH.js +0 -38
  350. package/dist/Geomap-ELX6O3IS.js +0 -80
  351. package/dist/HicApp-3JVEBSWO.js +0 -2240
  352. package/dist/IDCViewer-76N6I34Q.js +0 -10808
  353. package/dist/NumBinaryEditor-XLACD6VG.js +0 -274
  354. package/dist/NumBinaryEditor.unit.spec-3Z62H2JG.js +0 -308
  355. package/dist/NumContEditor-Z5ONNXFC.js +0 -100
  356. package/dist/NumContEditor.unit.spec-EJ3L7WH6.js +0 -160
  357. package/dist/NumCustomBinEditor-WKXAK5ZW.js +0 -29
  358. package/dist/NumCustomBinEditor.unit.spec-WXCLBBWT.js +0 -393
  359. package/dist/NumDiscreteEditor-5UBFABFT.js +0 -165
  360. package/dist/NumDiscreteEditor.unit.spec-5EMKOQZU.js +0 -229
  361. package/dist/NumRegularBinEditor-DMOKU5UM.js +0 -29
  362. package/dist/NumRegularBinEditor.unit.spec-QT2WSGNL.js +0 -274
  363. package/dist/NumSplineEditor-G3T26V5H.js +0 -205
  364. package/dist/NumSplineEditor.unit.spec-P4WNWJKE.js +0 -220
  365. package/dist/NumericDensity-AWQK5BKC.js +0 -29
  366. package/dist/NumericDensity.unit.spec-TO5EUJF3.js +0 -414
  367. package/dist/NumericHandler-MZ4WZDMW.js +0 -30
  368. package/dist/NumericHandler.unit.spec-JFLQQ2RI.js +0 -210
  369. package/dist/ProteomeInput-2XRW7WFL.js +0 -384
  370. package/dist/ProteomeInput-2XRW7WFL.js.map +0 -7
  371. package/dist/Regression-QO5EKLTZ.js +0 -1412
  372. package/dist/RunChart2-JLN324L6.js +0 -744
  373. package/dist/SC-W3M6IEDU.js +0 -1344
  374. package/dist/Violin-BCHEWRDU.js +0 -1095
  375. package/dist/Volcano-2PP67BZI.js +0 -2452
  376. package/dist/Wsi-GNGKPGJF.js +0 -625
  377. package/dist/adSandbox-XRWLD73B.js +0 -29
  378. package/dist/animatedBubbleChart-23CVOAXV.js +0 -542
  379. package/dist/app-KRJBODQD.js +0 -28
  380. package/dist/app-YLGQTR3U.js +0 -38
  381. package/dist/bam-3VPOMNJU.js +0 -872
  382. package/dist/barchart-I4S7TYFY.js +0 -38
  383. package/dist/barchart2-VXUP2L4M.js +0 -305
  384. package/dist/block-NVXPY2IK.js +0 -6232
  385. package/dist/block.init-CQ76SLCN.js +0 -29
  386. package/dist/block.mds.expressionrank-CTMM4IFI.js +0 -350
  387. package/dist/block.mds.geneboxplot-XYUU3PUZ.js +0 -819
  388. package/dist/block.mds.junction-LX4ETPO6.js +0 -1534
  389. package/dist/block.mds.svcnv-ABWHJJOA.js +0 -6408
  390. package/dist/block.svg-NY7ZDCUD.js +0 -155
  391. package/dist/block.tk.aicheck-3C52WICS.js +0 -274
  392. package/dist/block.tk.bam-QQHY3KEB.js +0 -1897
  393. package/dist/block.tk.bedgraphdot-EWZAMZ6E.js +0 -375
  394. package/dist/block.tk.bigwig.ui-OW3Q6THD.js +0 -202
  395. package/dist/block.tk.hicstraw-T7GJ7ZV6.js +0 -814
  396. package/dist/block.tk.junction-WKD34BUV.js +0 -2353
  397. package/dist/block.tk.junction.textmatrixui-G6KNHIUC.js +0 -190
  398. package/dist/block.tk.ld-PXXGZMUF.js +0 -90
  399. package/dist/block.tk.menu-W3RFEKFJ.js +0 -1050
  400. package/dist/block.tk.pgv-QVRJDGGG.js +0 -934
  401. package/dist/brainImaging-D42IV6LT.js +0 -550
  402. package/dist/brainRegions-DLXBHC4Y.js +0 -213
  403. package/dist/bubbleHeatmap-LATPOGLF.js +0 -374
  404. package/dist/cellTypeBubbleHeatmap-H7VHFQFD.js +0 -274
  405. package/dist/chunk-2XH5T5HA.js +0 -176
  406. package/dist/chunk-3Z7FX6GQ.js +0 -102
  407. package/dist/chunk-42II4FNQ.js +0 -14
  408. package/dist/chunk-4BQ3HUD2.js +0 -1988
  409. package/dist/chunk-4IWOYJ4D.js +0 -56
  410. package/dist/chunk-5D5Y3XVS.js +0 -56
  411. package/dist/chunk-5KHI46ZP.js +0 -26
  412. package/dist/chunk-5KNC4AJ7.js +0 -103
  413. package/dist/chunk-5MHE7AIV.js +0 -2260
  414. package/dist/chunk-5MHE7AIV.js.map +0 -7
  415. package/dist/chunk-6WYKPBZI.js +0 -339
  416. package/dist/chunk-AIH5PKJN.js +0 -626
  417. package/dist/chunk-AWZOZLFI.js +0 -217
  418. package/dist/chunk-AYZ6BEK4.js +0 -5213
  419. package/dist/chunk-B4NTLUWL.js +0 -2685
  420. package/dist/chunk-BQXK7K5J.js +0 -134
  421. package/dist/chunk-C5YMSIGN.js +0 -6358
  422. package/dist/chunk-CBAU2QMR.js +0 -31
  423. package/dist/chunk-CFHGRMLN.js +0 -468
  424. package/dist/chunk-CNQJ4LOC.js +0 -102
  425. package/dist/chunk-CVT7JE5B.js +0 -123
  426. package/dist/chunk-D4UCM6R7.js +0 -562
  427. package/dist/chunk-DBOJ3TMI.js +0 -424
  428. package/dist/chunk-DDDL46RE.js +0 -550
  429. package/dist/chunk-DURCB2KS.js +0 -141
  430. package/dist/chunk-E64SCL4O.js +0 -418
  431. package/dist/chunk-EAVA7XQL.js +0 -240
  432. package/dist/chunk-EG7HOBJY.js +0 -54
  433. package/dist/chunk-EZFO5UYD.js +0 -5795
  434. package/dist/chunk-EZFO5UYD.js.map +0 -7
  435. package/dist/chunk-F22GGUNI.js +0 -243
  436. package/dist/chunk-F4TEXJ74.js +0 -49
  437. package/dist/chunk-F5ERVYFW.js +0 -783
  438. package/dist/chunk-F5ERVYFW.js.map +0 -7
  439. package/dist/chunk-FIFNXVTS.js +0 -25345
  440. package/dist/chunk-FIFNXVTS.js.map +0 -7
  441. package/dist/chunk-G7YFQ4AK.js +0 -692
  442. package/dist/chunk-GGUCMNZ2.js +0 -339
  443. package/dist/chunk-GGUCMNZ2.js.map +0 -7
  444. package/dist/chunk-HAQGBJZ7.js +0 -156
  445. package/dist/chunk-HCEB7HBL.js +0 -2960
  446. package/dist/chunk-ISYZNLED.js +0 -444
  447. package/dist/chunk-IXQQHAHZ.js +0 -237
  448. package/dist/chunk-JSYPAJVF.js +0 -37
  449. package/dist/chunk-KBEIJEOX.js +0 -194
  450. package/dist/chunk-KE5IMRCJ.js +0 -516
  451. package/dist/chunk-KSWKOKY7.js +0 -38
  452. package/dist/chunk-L2TWQXK2.js +0 -203
  453. package/dist/chunk-L4ORRHDP.js +0 -2325
  454. package/dist/chunk-LH4BM6C7.js +0 -257
  455. package/dist/chunk-LLLRH3MB.js +0 -274
  456. package/dist/chunk-MWDPHZ2K.js +0 -1269
  457. package/dist/chunk-N2FCAFJH.js +0 -178
  458. package/dist/chunk-N2FCAFJH.js.map +0 -7
  459. package/dist/chunk-NT4BDYKQ.js +0 -466
  460. package/dist/chunk-OH33WT6Q.js +0 -119
  461. package/dist/chunk-PEBOVSIC.js +0 -1339
  462. package/dist/chunk-Q37PHHHH.js +0 -59
  463. package/dist/chunk-QCPXDSKH.js +0 -379
  464. package/dist/chunk-QDWEKA5J.js +0 -382
  465. package/dist/chunk-QVQI5DW7.js +0 -1817
  466. package/dist/chunk-QVQI5DW7.js.map +0 -7
  467. package/dist/chunk-R3UYQXJL.js +0 -1233
  468. package/dist/chunk-R3UYQXJL.js.map +0 -7
  469. package/dist/chunk-R47CRASM.js +0 -182
  470. package/dist/chunk-ROLQAMNM.js +0 -96
  471. package/dist/chunk-RXAKFDZM.js +0 -302
  472. package/dist/chunk-STDPI4K3.js +0 -281
  473. package/dist/chunk-SYDK5RV5.js +0 -54
  474. package/dist/chunk-SZ2VC2I2.js +0 -276
  475. package/dist/chunk-TAOTFHMT.js +0 -170
  476. package/dist/chunk-TMEDFIPS.js +0 -2799
  477. package/dist/chunk-TRZVM7OG.js +0 -194
  478. package/dist/chunk-VB47XOA4.js +0 -397
  479. package/dist/chunk-VCXAL36U.js +0 -54
  480. package/dist/chunk-VP3BJXOR.js +0 -55
  481. package/dist/chunk-VZGARY6D.js +0 -255
  482. package/dist/chunk-WO5S6USJ.js +0 -4373
  483. package/dist/chunk-WPR2CMWS.js +0 -34
  484. package/dist/chunk-WTKV6KPV.js +0 -70
  485. package/dist/chunk-XCJHO2PZ.js +0 -263
  486. package/dist/chunk-XVBFTP6A.js +0 -294
  487. package/dist/chunk-YKR3O6TN.js +0 -480
  488. package/dist/chunk-YZO7NVZW.js +0 -299
  489. package/dist/chunk-ZNOQYTF7.js +0 -140
  490. package/dist/chunk-ZOOMCQVD.js +0 -80
  491. package/dist/chunk-ZZTAUDJV.js +0 -217
  492. package/dist/cohort-E2RISYWQ.js +0 -66
  493. package/dist/condition-ZCROOBW2.js +0 -323
  494. package/dist/controls-TRUCBCUG.js +0 -30
  495. package/dist/controls.config-ZWEI3PWR.js +0 -30
  496. package/dist/correlation-ODRXACI5.js +0 -91
  497. package/dist/customdata.inputui-WADNWN4A.js +0 -280
  498. package/dist/dataDownload-TKACVGQG.js +0 -325
  499. package/dist/databrowser.ui-P74LKVPW.js +0 -421
  500. package/dist/dictionary-AR7TU32A.js +0 -109
  501. package/dist/dnaMethylation-FAA5NEAR.js +0 -29
  502. package/dist/dnaMethylation.integration.spec-XO5KTHGG.js +0 -194
  503. package/dist/dofetch-3ZCQBYTP.js +0 -47
  504. package/dist/e2pca-545GHJWM.js +0 -340
  505. package/dist/ep-DFBBKNXP.js +0 -1245
  506. package/dist/expclust.gdc.spec-IW2EKLIJ.js +0 -298
  507. package/dist/facet-JNIRJGUK.js +0 -515
  508. package/dist/gb-C3Z24J7G.js +0 -77
  509. package/dist/geneExpClustering-ZYYXVWEH.js +0 -240
  510. package/dist/geneExpression-AFI6PX7J.js +0 -29
  511. package/dist/geneExpression-QAHT5JK3.js +0 -309
  512. package/dist/geneExpression.unit.spec-QD6FBA7Y.js +0 -124
  513. package/dist/geneORA-UJUDJH33.js +0 -269
  514. package/dist/geneRanking-W4GJTT2D.js +0 -544
  515. package/dist/geneVariant-7TLTYMRN.js +0 -285
  516. package/dist/geneVariant-PIPW23ZL.js +0 -32
  517. package/dist/geneVariant.integration.spec-EWVEPYWR.js +0 -499
  518. package/dist/genefusion.ui-CQMINB6C.js +0 -299
  519. package/dist/geneset-DB2UIWDN.js +0 -199
  520. package/dist/genomeBrowser.spec-5PPCZGJY.js +0 -272
  521. package/dist/grin2-6FKWST7P.js +0 -66
  522. package/dist/grin2-CRHH7XQL.js +0 -945
  523. package/dist/hierCluster-LVVQUFIA.js +0 -55
  524. package/dist/hierCluster-N4BWRDRD.js +0 -51
  525. package/dist/hierCluster.config-RXYYXEKK.js +0 -32
  526. package/dist/hierCluster.integration.spec-32ELKHGP.js +0 -479
  527. package/dist/hierCluster.interactivity-O5PWSGD7.js +0 -45
  528. package/dist/hierCluster.renderers-E6FQE2DK.js +0 -18
  529. package/dist/imagePlot-CJJPFFND.js +0 -152
  530. package/dist/importPlot-IT2VCT3E.js +0 -8
  531. package/dist/isoformExpression-MB7VXNYL.js +0 -31
  532. package/dist/isoformExpression.unit.spec-WBGH5T22.js +0 -233
  533. package/dist/junction-RUMI5YFR.js +0 -32
  534. package/dist/junction.customTerm-LBVLFTOA.js +0 -15
  535. package/dist/junction.unit.spec-VU665JWH.js +0 -178
  536. package/dist/launch.adhoc-PG2VDOP5.js +0 -33
  537. package/dist/leftlabel.sample-O4EI4FEW.js +0 -253
  538. package/dist/lollipop-LWQ3ZPUC.js +0 -162
  539. package/dist/maf-Z7IN4HAW.js +0 -451
  540. package/dist/maftimeline-AQLIVUW3.js +0 -583
  541. package/dist/matrix-LTXFBGFW.js +0 -55
  542. package/dist/matrix-W2XR54DY.js +0 -50
  543. package/dist/matrix.cells-F44JHGOO.js +0 -25
  544. package/dist/matrix.config-Y5OUBSEC.js +0 -33
  545. package/dist/matrix.data-VLIW75OR.js +0 -22
  546. package/dist/matrix.groups-QEWUDMPF.js +0 -25
  547. package/dist/matrix.integration.spec-24DH4HNF.js +0 -3156
  548. package/dist/matrix.interactivity-R3BQYXAY.js +0 -33
  549. package/dist/matrix.layout-TENBEUJ6.js +0 -35
  550. package/dist/matrix.legend-E35GDZWD.js +0 -19
  551. package/dist/matrix.renderers-CMPAIUYT.js +0 -30
  552. package/dist/matrix.serieses-GXVQBJML.js +0 -18
  553. package/dist/matrix.sort-VQS6E6S5.js +0 -25
  554. package/dist/matrix.sort.unit.spec-P5C6EVDC.js +0 -464
  555. package/dist/matrix.sorterUi-4R2TVBUJ.js +0 -15
  556. package/dist/matrix.sorterUi.unit.spec-UMI2N2OG.js +0 -334
  557. package/dist/matrix.unit.spec-HSA7OWME.js +0 -146
  558. package/dist/mavb-ZARQZJJR.js +0 -723
  559. package/dist/mds.fimo-YRNNY5KA.js +0 -509
  560. package/dist/mds.samplescatterplot-ESIALOMA.js +0 -1545
  561. package/dist/mds.survivalplot-5E6ITKIU.js +0 -472
  562. package/dist/multivalue-CT2QWWB4.js +0 -79
  563. package/dist/numericDictTermCluster-CRVSJ6PI.js +0 -62
  564. package/dist/oncomatrix-MX5EHBNW.js +0 -286
  565. package/dist/oncomatrix.spec-DN2RAWGZ.js +0 -439
  566. package/dist/plot.2dvaf-B5QAKDTK.js +0 -368
  567. package/dist/plot.app-V5DZWC6N.js +0 -32
  568. package/dist/plot.barplot-VAJLAU7H.js +0 -93
  569. package/dist/plot.boxplot-PT3BUNVT.js +0 -142
  570. package/dist/plot.brainImaging-2WB7XJJM.js +0 -51
  571. package/dist/plot.disco-64IPBCII.js +0 -98
  572. package/dist/plot.ssgq-ET4OBMUM.js +0 -130
  573. package/dist/plot.vaf2cov-DGMVJ7UN.js +0 -249
  574. package/dist/polar2-CWWDVNZQ.js +0 -228
  575. package/dist/profileForms-FM7D4WO2.js +0 -937
  576. package/dist/profilePlot-LQ6K4EXX.js +0 -45
  577. package/dist/proteinView-WVI3OVDD.js +0 -1352
  578. package/dist/proteinView-WVI3OVDD.js.map +0 -7
  579. package/dist/proteomeCohortCompare-6FWTYPDF.js +0 -908
  580. package/dist/proteomeCohortCompare-6FWTYPDF.js.map +0 -7
  581. package/dist/pseudbulk.unit.spec-IAONX4QR.js +0 -82
  582. package/dist/pseudobulk-NIX4JOOZ.js +0 -31
  583. package/dist/qualitative-GLTKWA6H.js +0 -241
  584. package/dist/qualitative-M3XSQZA2.js +0 -34
  585. package/dist/radar2-JBULXNFQ.js +0 -323
  586. package/dist/radarFacility2-YYIBHZCY.js +0 -331
  587. package/dist/rememberedGvQ.unit.spec-YJV6DVPN.js +0 -210
  588. package/dist/render-ZCH7R3WL.js +0 -29
  589. package/dist/report-YPIAIMND.js +0 -213
  590. package/dist/sampleView-K4GSYMAE.js +0 -39
  591. package/dist/samplelst-F2SLVHFP.js +0 -102
  592. package/dist/samplematrix-Z6F4F7YN.js +0 -2188
  593. package/dist/sc-UM7SEGED.js +0 -77
  594. package/dist/scatter-63XRRLGP.js +0 -921
  595. package/dist/scatter-HFTYLGDP.js +0 -84
  596. package/dist/selectGenomeWithTklst-PJNALPM2.js +0 -125
  597. package/dist/singleCellCellType-HR3R6KBD.js +0 -29
  598. package/dist/singleCellCellType.unit.spec-VK57HQ2O.js +0 -150
  599. package/dist/singleCellGeneExpression-VWOA7MLN.js +0 -29
  600. package/dist/singleCellGeneExpression.unit.spec-YP64T3XD.js +0 -144
  601. package/dist/singleCellNumericValue-3VIUPYPB.js +0 -29
  602. package/dist/singleCellNumericValue.unit.spec-VR5ICRQA.js +0 -412
  603. package/dist/singleCellPlot-36QDY7VL.js +0 -44
  604. package/dist/singlecell-D2MZVFR4.js +0 -77
  605. package/dist/singlecell-EXEOLJ3J.js +0 -1562
  606. package/dist/snp-XHEHXZMB.js +0 -29
  607. package/dist/snp.unit.spec-YR6IDLL7.js +0 -167
  608. package/dist/snplocus-BM7LUK2U.js +0 -200
  609. package/dist/snplst-22VSEZ7R.js +0 -36
  610. package/dist/spliceevent.a53ss.diagram-KERTJ3QA.js +0 -142
  611. package/dist/spliceevent.exonskip.diagram-K74VIUA4.js +0 -274
  612. package/dist/spliceevent.noeventdiagram-W7WGSVVL.js +0 -451
  613. package/dist/ssGSEA-XDEA5TVX.js +0 -29
  614. package/dist/ssGSEA.unit.spec-RDCPXJ5S.js +0 -79
  615. package/dist/stattable-HZ3DOUEM.js +0 -112
  616. package/dist/studyCatalog-FWNHGZUT.js +0 -410
  617. package/dist/studyCatalog-FWNHGZUT.js.map +0 -7
  618. package/dist/summarizeCnvGeneexp-VB4SOJHT.js +0 -154
  619. package/dist/summarizeGeneexpSurvival-5ZWIJ6O4.js +0 -101
  620. package/dist/summarizeMutationCnv-MBPU64C5.js +0 -155
  621. package/dist/summarizeMutationDiagnosis-QRP4ITNL.js +0 -31
  622. package/dist/summarizeMutationSurvival-SSXAY5W4.js +0 -95
  623. package/dist/summary-SRESZS4Z.js +0 -40
  624. package/dist/summary.integration.spec-3V2CEPJM.js +0 -405
  625. package/dist/summaryInput-3VD4KBCU.js +0 -238
  626. package/dist/sunburst-E5IEQQUV.js +0 -274
  627. package/dist/survival-H4HYC6GC.js +0 -1246
  628. package/dist/survival-K5WWAELO.js +0 -49
  629. package/dist/survival.integration.spec-SPN2TSQW.js +0 -609
  630. package/dist/svgraph-USRAYSBN.js +0 -1377
  631. package/dist/svmr-MOKLLJKJ.js +0 -3832
  632. package/dist/table-WD3P3WL2.js +0 -192
  633. package/dist/termCollection-JU4OJRWD.js +0 -29
  634. package/dist/termCollection-VWS5CKVH.js +0 -247
  635. package/dist/termCollection.unit.spec-TPUJWKKW.js +0 -295
  636. package/dist/termCollectionFractionSelection-UWLHDPX2.js +0 -38
  637. package/dist/termCollectionFractionSelection.unit.spec-RBHJY34K.js +0 -184
  638. package/dist/tk-OAOVCATS.js +0 -1116
  639. package/dist/tk-SMOGJUD7.js +0 -37
  640. package/dist/tp.ui-EMWJCGRX.js +0 -1449
  641. package/dist/tvs.categorical-A7J4RIKL.js +0 -28
  642. package/dist/tvs.condition-HFLZES5E.js +0 -160
  643. package/dist/tvs.dt-GBYX2RWX.js +0 -30
  644. package/dist/tvs.dtcnv.categorical-X2K3MIPG.js +0 -31
  645. package/dist/tvs.dtcnv.continuous-5EMX4PBP.js +0 -63
  646. package/dist/tvs.dtfusion-7VVSPNRK.js +0 -31
  647. package/dist/tvs.dtitd-2YGFPXOY.js +0 -31
  648. package/dist/tvs.dtsnvindel-EISO52O6.js +0 -31
  649. package/dist/tvs.dtsv-RTAMAW3G.js +0 -31
  650. package/dist/tvs.multivalue-5N6PSG4L.js +0 -84
  651. package/dist/tvs.numeric-R5UT7ARM.js +0 -32
  652. package/dist/tvs.samplelst-SZDNNFK5.js +0 -95
  653. package/dist/tvs.survival-EUUDDXP7.js +0 -110
  654. package/dist/tvs.termCollection-DAHEYZK2.js +0 -118
  655. package/dist/vocabulary-P4XRHR34.js +0 -32
  656. package/dist/wsi.direct-J7VX5EMI.js +0 -8339
  657. /package/dist/{2dmaf-Y4CPQCKD.js.map → 2dmaf-RRHATFHO.js.map} +0 -0
  658. /package/dist/{AggMatrixInput-XSZSKYJM.js.map → AggMatrixInput-4UHBCXYH.js.map} +0 -0
  659. /package/dist/{AggregateMatrix-BETOEO7U.js.map → AggregateMatrix-IJE5CM5Y.js.map} +0 -0
  660. /package/dist/{AppHeader-6X6SNEBI.js.map → AppHeader-UXGLRW6C.js.map} +0 -0
  661. /package/dist/{BoxPlot-J6JKDOH6.js.map → BoxPlot-GQYC22KY.js.map} +0 -0
  662. /package/dist/{CorrelationVolcano-DMDE4LAP.js.map → CorrelationVolcano-5CWRWZTI.js.map} +0 -0
  663. /package/dist/{Cuminc-6WHLJVOC.js.map → Cuminc-TYHKAPRK.js.map} +0 -0
  664. /package/dist/{DE-EJM6W4Q4.js.map → DE-UUFQGSOI.js.map} +0 -0
  665. /package/dist/{DEinput-AU3E7JM2.js.map → DEinput-DU7MF4YY.js.map} +0 -0
  666. /package/dist/{DM-FN4WJNDX.js.map → DM-SSI5KUBC.js.map} +0 -0
  667. /package/dist/{DifferentialAnalysis-FD57SA7H.js.map → DifferentialAnalysis-G6FE2MXY.js.map} +0 -0
  668. /package/dist/{Disco-BMNSQ6YL.js.map → Disco-B3KGNEAW.js.map} +0 -0
  669. /package/dist/{Disco.UI-4VXFHJQV.js.map → Disco.UI-UNPUBQCN.js.map} +0 -0
  670. /package/dist/{DmrPlot-P5WKLC5J.js.map → DmrPlot-27NGDMT4.js.map} +0 -0
  671. /package/dist/{GB-BO75K7TF.js.map → GB-SXACUA4V.js.map} +0 -0
  672. /package/dist/{GSEA-OEFXDJ23.js.map → GSEA-EHMBA3TF.js.map} +0 -0
  673. /package/dist/{GeneExpInput-FP7RBRXH.js.map → GeneExpInput-NDXISF2U.js.map} +0 -0
  674. /package/dist/{Geomap-ELX6O3IS.js.map → Geomap-3CNT227W.js.map} +0 -0
  675. /package/dist/{HicApp-3JVEBSWO.js.map → HicApp-VQBUB6EZ.js.map} +0 -0
  676. /package/dist/{IDCViewer-76N6I34Q.js.map → IDCViewer-DTOE7KDX.js.map} +0 -0
  677. /package/dist/{NumBinaryEditor-XLACD6VG.js.map → NumBinaryEditor-IVZ4MMQT.js.map} +0 -0
  678. /package/dist/{NumBinaryEditor.unit.spec-3Z62H2JG.js.map → NumBinaryEditor.unit.spec-3BSQ6FM4.js.map} +0 -0
  679. /package/dist/{NumContEditor-Z5ONNXFC.js.map → NumContEditor-CUZHU3IO.js.map} +0 -0
  680. /package/dist/{NumContEditor.unit.spec-EJ3L7WH6.js.map → NumContEditor.unit.spec-SCQFD2Y7.js.map} +0 -0
  681. /package/dist/{NumCustomBinEditor-WKXAK5ZW.js.map → NumCustomBinEditor-UEEYZ4ZO.js.map} +0 -0
  682. /package/dist/{NumCustomBinEditor.unit.spec-WXCLBBWT.js.map → NumCustomBinEditor.unit.spec-GYS35OQV.js.map} +0 -0
  683. /package/dist/{NumDiscreteEditor-5UBFABFT.js.map → NumDiscreteEditor-IT7NIXTV.js.map} +0 -0
  684. /package/dist/{NumDiscreteEditor.unit.spec-5EMKOQZU.js.map → NumDiscreteEditor.unit.spec-LB6VLAWO.js.map} +0 -0
  685. /package/dist/{NumRegularBinEditor-DMOKU5UM.js.map → NumRegularBinEditor-FF6UXZWN.js.map} +0 -0
  686. /package/dist/{NumRegularBinEditor.unit.spec-QT2WSGNL.js.map → NumRegularBinEditor.unit.spec-Z4S5LH2C.js.map} +0 -0
  687. /package/dist/{NumSplineEditor-G3T26V5H.js.map → NumSplineEditor-IW5WEN3P.js.map} +0 -0
  688. /package/dist/{NumSplineEditor.unit.spec-P4WNWJKE.js.map → NumSplineEditor.unit.spec-PAEN3SAD.js.map} +0 -0
  689. /package/dist/{NumericDensity-AWQK5BKC.js.map → NumericDensity-CPJIQLYT.js.map} +0 -0
  690. /package/dist/{NumericDensity.unit.spec-TO5EUJF3.js.map → NumericDensity.unit.spec-4KHECHVU.js.map} +0 -0
  691. /package/dist/{NumericHandler-MZ4WZDMW.js.map → NumericHandler-SEFTQJDM.js.map} +0 -0
  692. /package/dist/{NumericHandler.unit.spec-JFLQQ2RI.js.map → NumericHandler.unit.spec-UGDR3476.js.map} +0 -0
  693. /package/dist/{Regression-QO5EKLTZ.js.map → Regression-WDSISHYL.js.map} +0 -0
  694. /package/dist/{RunChart2-JLN324L6.js.map → RunChart2-2NPADXUR.js.map} +0 -0
  695. /package/dist/{SC-W3M6IEDU.js.map → SC-EWDBPHEL.js.map} +0 -0
  696. /package/dist/{Violin-BCHEWRDU.js.map → Violin-POGGPCZY.js.map} +0 -0
  697. /package/dist/{Volcano-2PP67BZI.js.map → Volcano-U2B4KEUL.js.map} +0 -0
  698. /package/dist/{Wsi-GNGKPGJF.js.map → Wsi-G7OCAJ3R.js.map} +0 -0
  699. /package/dist/{adSandbox-XRWLD73B.js.map → adSandbox-SUCX6DAQ.js.map} +0 -0
  700. /package/dist/{animatedBubbleChart-23CVOAXV.js.map → animatedBubbleChart-SDBWJELZ.js.map} +0 -0
  701. /package/dist/{app-KRJBODQD.js.map → app-ATQM5PKI.js.map} +0 -0
  702. /package/dist/{app-YLGQTR3U.js.map → app-BCKEWJCY.js.map} +0 -0
  703. /package/dist/{bam-3VPOMNJU.js.map → bam-QK2ZLZDI.js.map} +0 -0
  704. /package/dist/{barchart-I4S7TYFY.js.map → barchart-RHDKI3NZ.js.map} +0 -0
  705. /package/dist/{barchart2-VXUP2L4M.js.map → barchart2-CS3E6FOY.js.map} +0 -0
  706. /package/dist/{block-NVXPY2IK.js.map → block-RQ3HTJVP.js.map} +0 -0
  707. /package/dist/{block.init-CQ76SLCN.js.map → block.init-T33F47DO.js.map} +0 -0
  708. /package/dist/{block.mds.expressionrank-CTMM4IFI.js.map → block.mds.expressionrank-LQD6MN6Z.js.map} +0 -0
  709. /package/dist/{block.mds.geneboxplot-XYUU3PUZ.js.map → block.mds.geneboxplot-N5XHHVR7.js.map} +0 -0
  710. /package/dist/{block.mds.junction-LX4ETPO6.js.map → block.mds.junction-JD4WQUSH.js.map} +0 -0
  711. /package/dist/{block.mds.svcnv-ABWHJJOA.js.map → block.mds.svcnv-LCTYWXL2.js.map} +0 -0
  712. /package/dist/{block.svg-NY7ZDCUD.js.map → block.svg-2F3RGTI3.js.map} +0 -0
  713. /package/dist/{block.tk.aicheck-3C52WICS.js.map → block.tk.aicheck-BOF6WZ5E.js.map} +0 -0
  714. /package/dist/{block.tk.bam-QQHY3KEB.js.map → block.tk.bam-5GBYEQBM.js.map} +0 -0
  715. /package/dist/{block.tk.bedgraphdot-EWZAMZ6E.js.map → block.tk.bedgraphdot-LVQEP4RS.js.map} +0 -0
  716. /package/dist/{block.tk.bigwig.ui-OW3Q6THD.js.map → block.tk.bigwig.ui-HHBO4JAC.js.map} +0 -0
  717. /package/dist/{block.tk.hicstraw-T7GJ7ZV6.js.map → block.tk.hicstraw-JBO4UEOA.js.map} +0 -0
  718. /package/dist/{block.tk.junction-WKD34BUV.js.map → block.tk.junction-S5S2N7FK.js.map} +0 -0
  719. /package/dist/{block.tk.junction.textmatrixui-G6KNHIUC.js.map → block.tk.junction.textmatrixui-DNQL7WB5.js.map} +0 -0
  720. /package/dist/{block.tk.ld-PXXGZMUF.js.map → block.tk.ld-JHQNR67E.js.map} +0 -0
  721. /package/dist/{block.tk.menu-W3RFEKFJ.js.map → block.tk.menu-7JBJOY2O.js.map} +0 -0
  722. /package/dist/{block.tk.pgv-QVRJDGGG.js.map → block.tk.pgv-FQPREV6P.js.map} +0 -0
  723. /package/dist/{brainImaging-D42IV6LT.js.map → brainImaging-HEWGZZNY.js.map} +0 -0
  724. /package/dist/{brainRegions-DLXBHC4Y.js.map → brainRegions-QUGB7YUW.js.map} +0 -0
  725. /package/dist/{bubbleHeatmap-LATPOGLF.js.map → bubbleHeatmap-OZRONGAX.js.map} +0 -0
  726. /package/dist/{cellTypeBubbleHeatmap-H7VHFQFD.js.map → cellTypeBubbleHeatmap-N7NDE325.js.map} +0 -0
  727. /package/dist/{chunk-EG7HOBJY.js.map → chunk-2FWSNJEN.js.map} +0 -0
  728. /package/dist/{chunk-WPR2CMWS.js.map → chunk-2JIKMCJR.js.map} +0 -0
  729. /package/dist/{chunk-CNQJ4LOC.js.map → chunk-3SPEW6R6.js.map} +0 -0
  730. /package/dist/{chunk-CVT7JE5B.js.map → chunk-5G6O5RYM.js.map} +0 -0
  731. /package/dist/{chunk-YZO7NVZW.js.map → chunk-65DO5IKM.js.map} +0 -0
  732. /package/dist/{chunk-B4NTLUWL.js.map → chunk-6Q5SOSSU.js.map} +0 -0
  733. /package/dist/{chunk-AIH5PKJN.js.map → chunk-7JHIUS54.js.map} +0 -0
  734. /package/dist/{chunk-VB47XOA4.js.map → chunk-7X347XMF.js.map} +0 -0
  735. /package/dist/{chunk-VP3BJXOR.js.map → chunk-ABLG7GUS.js.map} +0 -0
  736. /package/dist/{chunk-SZ2VC2I2.js.map → chunk-AFEFZ74T.js.map} +0 -0
  737. /package/dist/{chunk-F22GGUNI.js.map → chunk-AIC43DTG.js.map} +0 -0
  738. /package/dist/{chunk-R47CRASM.js.map → chunk-AJXP4AV7.js.map} +0 -0
  739. /package/dist/{chunk-DBOJ3TMI.js.map → chunk-AMW5LCUB.js.map} +0 -0
  740. /package/dist/{chunk-HAQGBJZ7.js.map → chunk-AV2IH5K2.js.map} +0 -0
  741. /package/dist/{chunk-XCJHO2PZ.js.map → chunk-B3WLXXGY.js.map} +0 -0
  742. /package/dist/{chunk-RXAKFDZM.js.map → chunk-BG6GAROI.js.map} +0 -0
  743. /package/dist/{chunk-5KNC4AJ7.js.map → chunk-BU6PAOGA.js.map} +0 -0
  744. /package/dist/{chunk-ROLQAMNM.js.map → chunk-C2TII2FF.js.map} +0 -0
  745. /package/dist/{chunk-DDDL46RE.js.map → chunk-CTFHEDG2.js.map} +0 -0
  746. /package/dist/{chunk-JSYPAJVF.js.map → chunk-CXEECHP5.js.map} +0 -0
  747. /package/dist/{chunk-PEBOVSIC.js.map → chunk-CZK4EV3Y.js.map} +0 -0
  748. /package/dist/{chunk-L4ORRHDP.js.map → chunk-D35GNF3Y.js.map} +0 -0
  749. /package/dist/{chunk-TAOTFHMT.js.map → chunk-DFZWE3TR.js.map} +0 -0
  750. /package/dist/{chunk-4BQ3HUD2.js.map → chunk-E7XHA4YL.js.map} +0 -0
  751. /package/dist/{chunk-SYDK5RV5.js.map → chunk-EDFBRXX2.js.map} +0 -0
  752. /package/dist/{chunk-5KHI46ZP.js.map → chunk-F23EQSGU.js.map} +0 -0
  753. /package/dist/{chunk-QCPXDSKH.js.map → chunk-F2EEQ7KG.js.map} +0 -0
  754. /package/dist/{chunk-CFHGRMLN.js.map → chunk-F5FFI7Z7.js.map} +0 -0
  755. /package/dist/{chunk-DURCB2KS.js.map → chunk-FK5NL2DF.js.map} +0 -0
  756. /package/dist/{chunk-G7YFQ4AK.js.map → chunk-FVZTRWAO.js.map} +0 -0
  757. /package/dist/{chunk-AWZOZLFI.js.map → chunk-GDHQVEIO.js.map} +0 -0
  758. /package/dist/{chunk-TMEDFIPS.js.map → chunk-GSVB4XNS.js.map} +0 -0
  759. /package/dist/{chunk-E64SCL4O.js.map → chunk-GVAV4VRI.js.map} +0 -0
  760. /package/dist/{chunk-ZNOQYTF7.js.map → chunk-H2FELGYK.js.map} +0 -0
  761. /package/dist/{chunk-LLLRH3MB.js.map → chunk-HJARHSDC.js.map} +0 -0
  762. /package/dist/{chunk-VCXAL36U.js.map → chunk-HXRG7XYB.js.map} +0 -0
  763. /package/dist/{chunk-ZOOMCQVD.js.map → chunk-J5KCTRJC.js.map} +0 -0
  764. /package/dist/{chunk-Q37PHHHH.js.map → chunk-JMFVXWDX.js.map} +0 -0
  765. /package/dist/{chunk-L2TWQXK2.js.map → chunk-KGX2OIR4.js.map} +0 -0
  766. /package/dist/{chunk-LH4BM6C7.js.map → chunk-L2NPLA43.js.map} +0 -0
  767. /package/dist/{chunk-6WYKPBZI.js.map → chunk-L2WOLNZK.js.map} +0 -0
  768. /package/dist/{chunk-NT4BDYKQ.js.map → chunk-LQKMDIRB.js.map} +0 -0
  769. /package/dist/{chunk-D4UCM6R7.js.map → chunk-LSQ5AQ6Q.js.map} +0 -0
  770. /package/dist/{chunk-MWDPHZ2K.js.map → chunk-MBQIHLGI.js.map} +0 -0
  771. /package/dist/{chunk-42II4FNQ.js.map → chunk-MFR4WWDM.js.map} +0 -0
  772. /package/dist/{chunk-STDPI4K3.js.map → chunk-NHMIMTJA.js.map} +0 -0
  773. /package/dist/{chunk-C5YMSIGN.js.map → chunk-NPBN3PPZ.js.map} +0 -0
  774. /package/dist/{chunk-5D5Y3XVS.js.map → chunk-NULQJF73.js.map} +0 -0
  775. /package/dist/{chunk-XVBFTP6A.js.map → chunk-NYO7YANQ.js.map} +0 -0
  776. /package/dist/{chunk-TRZVM7OG.js.map → chunk-OBNHXAYG.js.map} +0 -0
  777. /package/dist/{chunk-BQXK7K5J.js.map → chunk-PETYR7LC.js.map} +0 -0
  778. /package/dist/{chunk-OH33WT6Q.js.map → chunk-PLFPXOGX.js.map} +0 -0
  779. /package/dist/{chunk-AYZ6BEK4.js.map → chunk-PQVHRM4L.js.map} +0 -0
  780. /package/dist/{chunk-EAVA7XQL.js.map → chunk-QLUTQPZE.js.map} +0 -0
  781. /package/dist/{chunk-KSWKOKY7.js.map → chunk-QNQ2ZYT7.js.map} +0 -0
  782. /package/dist/{chunk-VZGARY6D.js.map → chunk-QYCPIVCX.js.map} +0 -0
  783. /package/dist/{chunk-KE5IMRCJ.js.map → chunk-RZ2THVK4.js.map} +0 -0
  784. /package/dist/{chunk-CBAU2QMR.js.map → chunk-S4IZ4VM7.js.map} +0 -0
  785. /package/dist/{chunk-QDWEKA5J.js.map → chunk-SFUDTUXF.js.map} +0 -0
  786. /package/dist/{chunk-3Z7FX6GQ.js.map → chunk-SUT75MRI.js.map} +0 -0
  787. /package/dist/{chunk-4IWOYJ4D.js.map → chunk-SYLYLOHK.js.map} +0 -0
  788. /package/dist/{chunk-2XH5T5HA.js.map → chunk-TEFWF3SK.js.map} +0 -0
  789. /package/dist/{chunk-WTKV6KPV.js.map → chunk-TPSVPMAN.js.map} +0 -0
  790. /package/dist/{chunk-HCEB7HBL.js.map → chunk-V4ZKHM6D.js.map} +0 -0
  791. /package/dist/{chunk-WO5S6USJ.js.map → chunk-V7DNHPZD.js.map} +0 -0
  792. /package/dist/{chunk-KBEIJEOX.js.map → chunk-VPMQDTYR.js.map} +0 -0
  793. /package/dist/{chunk-ISYZNLED.js.map → chunk-VV6JIG4D.js.map} +0 -0
  794. /package/dist/{chunk-ZZTAUDJV.js.map → chunk-WU3YXPRE.js.map} +0 -0
  795. /package/dist/{chunk-YKR3O6TN.js.map → chunk-X2HWRISK.js.map} +0 -0
  796. /package/dist/{chunk-F4TEXJ74.js.map → chunk-X77QVINS.js.map} +0 -0
  797. /package/dist/{chunk-IXQQHAHZ.js.map → chunk-XXFLJWTQ.js.map} +0 -0
  798. /package/dist/{cohort-E2RISYWQ.js.map → cohort-ATIZW34H.js.map} +0 -0
  799. /package/dist/{condition-ZCROOBW2.js.map → condition-SGJIDZNB.js.map} +0 -0
  800. /package/dist/{controls-TRUCBCUG.js.map → controls-JQCMGPXP.js.map} +0 -0
  801. /package/dist/{controls.config-ZWEI3PWR.js.map → controls.config-WQHVQAIJ.js.map} +0 -0
  802. /package/dist/{correlation-ODRXACI5.js.map → correlation-S3MN3L5Q.js.map} +0 -0
  803. /package/dist/{customdata.inputui-WADNWN4A.js.map → customdata.inputui-LGTGMJBZ.js.map} +0 -0
  804. /package/dist/{dataDownload-TKACVGQG.js.map → dataDownload-FAWN2WKE.js.map} +0 -0
  805. /package/dist/{databrowser.ui-P74LKVPW.js.map → databrowser.ui-KF3LWQXG.js.map} +0 -0
  806. /package/dist/{dictionary-AR7TU32A.js.map → dictionary-EVLEOT72.js.map} +0 -0
  807. /package/dist/{dnaMethylation-FAA5NEAR.js.map → dnaMethylation-J3SPEM4S.js.map} +0 -0
  808. /package/dist/{dnaMethylation.integration.spec-XO5KTHGG.js.map → dnaMethylation.integration.spec-CTA53YCT.js.map} +0 -0
  809. /package/dist/{dofetch-3ZCQBYTP.js.map → dofetch-3C3MI5NR.js.map} +0 -0
  810. /package/dist/{e2pca-545GHJWM.js.map → e2pca-PTWPY5WP.js.map} +0 -0
  811. /package/dist/{ep-DFBBKNXP.js.map → ep-MS4LQQDR.js.map} +0 -0
  812. /package/dist/{expclust.gdc.spec-IW2EKLIJ.js.map → expclust.gdc.spec-S5FE4MMD.js.map} +0 -0
  813. /package/dist/{facet-JNIRJGUK.js.map → facet-FSOIZJCA.js.map} +0 -0
  814. /package/dist/{gb-C3Z24J7G.js.map → gb-YDEOK7NW.js.map} +0 -0
  815. /package/dist/{geneExpClustering-ZYYXVWEH.js.map → geneExpClustering-37JKKFW3.js.map} +0 -0
  816. /package/dist/{geneExpression-AFI6PX7J.js.map → geneExpression-G6ODP3VY.js.map} +0 -0
  817. /package/dist/{geneExpression-QAHT5JK3.js.map → geneExpression-VQPRFNKE.js.map} +0 -0
  818. /package/dist/{geneExpression.unit.spec-QD6FBA7Y.js.map → geneExpression.unit.spec-ZHXCUG6Q.js.map} +0 -0
  819. /package/dist/{geneORA-UJUDJH33.js.map → geneORA-E3PSS3CI.js.map} +0 -0
  820. /package/dist/{geneRanking-W4GJTT2D.js.map → geneRanking-MK3YYINC.js.map} +0 -0
  821. /package/dist/{geneVariant-PIPW23ZL.js.map → geneVariant-LEMAVFOY.js.map} +0 -0
  822. /package/dist/{geneVariant-7TLTYMRN.js.map → geneVariant-NNSB7JLS.js.map} +0 -0
  823. /package/dist/{geneVariant.integration.spec-EWVEPYWR.js.map → geneVariant.integration.spec-6CC5UAOP.js.map} +0 -0
  824. /package/dist/{genefusion.ui-CQMINB6C.js.map → genefusion.ui-5NCQIQPN.js.map} +0 -0
  825. /package/dist/{geneset-DB2UIWDN.js.map → geneset-ZX4V3CFB.js.map} +0 -0
  826. /package/dist/{genomeBrowser.spec-5PPCZGJY.js.map → genomeBrowser.spec-J7ISXY6H.js.map} +0 -0
  827. /package/dist/{grin2-CRHH7XQL.js.map → grin2-GN3DQNON.js.map} +0 -0
  828. /package/dist/{grin2-6FKWST7P.js.map → grin2-LBGBBB4L.js.map} +0 -0
  829. /package/dist/{hierCluster-LVVQUFIA.js.map → hierCluster-5JURTKAZ.js.map} +0 -0
  830. /package/dist/{hierCluster-N4BWRDRD.js.map → hierCluster-BJ5VBPXR.js.map} +0 -0
  831. /package/dist/{hierCluster.config-RXYYXEKK.js.map → hierCluster.config-4EERP4KK.js.map} +0 -0
  832. /package/dist/{hierCluster.integration.spec-32ELKHGP.js.map → hierCluster.integration.spec-VR4GULRV.js.map} +0 -0
  833. /package/dist/{hierCluster.interactivity-O5PWSGD7.js.map → hierCluster.interactivity-SMTQOKUY.js.map} +0 -0
  834. /package/dist/{hierCluster.renderers-E6FQE2DK.js.map → hierCluster.renderers-PAME7BWU.js.map} +0 -0
  835. /package/dist/{imagePlot-CJJPFFND.js.map → imagePlot-4LMIKBVE.js.map} +0 -0
  836. /package/dist/{importPlot-IT2VCT3E.js.map → importPlot-3CG6ASNH.js.map} +0 -0
  837. /package/dist/{isoformExpression-MB7VXNYL.js.map → isoformExpression-VCDNKTZ6.js.map} +0 -0
  838. /package/dist/{isoformExpression.unit.spec-WBGH5T22.js.map → isoformExpression.unit.spec-ZXYY37TA.js.map} +0 -0
  839. /package/dist/{junction-RUMI5YFR.js.map → junction-5DXJO4PS.js.map} +0 -0
  840. /package/dist/{junction.customTerm-LBVLFTOA.js.map → junction.customTerm-UOPUSEOE.js.map} +0 -0
  841. /package/dist/{junction.unit.spec-VU665JWH.js.map → junction.unit.spec-F35E3GJW.js.map} +0 -0
  842. /package/dist/{launch.adhoc-PG2VDOP5.js.map → launch.adhoc-V2HTCQGD.js.map} +0 -0
  843. /package/dist/{leftlabel.sample-O4EI4FEW.js.map → leftlabel.sample-V7O2EC36.js.map} +0 -0
  844. /package/dist/{lollipop-LWQ3ZPUC.js.map → lollipop-RNRZLG64.js.map} +0 -0
  845. /package/dist/{maf-Z7IN4HAW.js.map → maf-W6SF6BJS.js.map} +0 -0
  846. /package/dist/{maftimeline-AQLIVUW3.js.map → maftimeline-NABCAMHG.js.map} +0 -0
  847. /package/dist/{matrix-LTXFBGFW.js.map → matrix-JC6AJT2N.js.map} +0 -0
  848. /package/dist/{matrix-W2XR54DY.js.map → matrix-UCHESWVK.js.map} +0 -0
  849. /package/dist/{matrix.cells-F44JHGOO.js.map → matrix.cells-B4L42TBM.js.map} +0 -0
  850. /package/dist/{matrix.config-Y5OUBSEC.js.map → matrix.config-6US3AAH7.js.map} +0 -0
  851. /package/dist/{matrix.data-VLIW75OR.js.map → matrix.data-FYFXYDA3.js.map} +0 -0
  852. /package/dist/{matrix.groups-QEWUDMPF.js.map → matrix.groups-Y7DEG3GS.js.map} +0 -0
  853. /package/dist/{matrix.integration.spec-24DH4HNF.js.map → matrix.integration.spec-KXX7SFX5.js.map} +0 -0
  854. /package/dist/{matrix.interactivity-R3BQYXAY.js.map → matrix.interactivity-NHWG4WCC.js.map} +0 -0
  855. /package/dist/{matrix.layout-TENBEUJ6.js.map → matrix.layout-5DQNT7DD.js.map} +0 -0
  856. /package/dist/{matrix.legend-E35GDZWD.js.map → matrix.legend-OY7IF6AS.js.map} +0 -0
  857. /package/dist/{matrix.renderers-CMPAIUYT.js.map → matrix.renderers-GYOXGHPU.js.map} +0 -0
  858. /package/dist/{matrix.serieses-GXVQBJML.js.map → matrix.serieses-657TLDAV.js.map} +0 -0
  859. /package/dist/{matrix.sort-VQS6E6S5.js.map → matrix.sort-IMA2ES3T.js.map} +0 -0
  860. /package/dist/{matrix.sort.unit.spec-P5C6EVDC.js.map → matrix.sort.unit.spec-S6BAFYPR.js.map} +0 -0
  861. /package/dist/{matrix.sorterUi-4R2TVBUJ.js.map → matrix.sorterUi-77F36Q5H.js.map} +0 -0
  862. /package/dist/{matrix.sorterUi.unit.spec-UMI2N2OG.js.map → matrix.sorterUi.unit.spec-V5NVQGD5.js.map} +0 -0
  863. /package/dist/{matrix.unit.spec-HSA7OWME.js.map → matrix.unit.spec-R4NMTZYQ.js.map} +0 -0
  864. /package/dist/{mavb-ZARQZJJR.js.map → mavb-MRCVMBPD.js.map} +0 -0
  865. /package/dist/{mds.fimo-YRNNY5KA.js.map → mds.fimo-5DCH5BEM.js.map} +0 -0
  866. /package/dist/{mds.samplescatterplot-ESIALOMA.js.map → mds.samplescatterplot-VIBCS5M6.js.map} +0 -0
  867. /package/dist/{mds.survivalplot-5E6ITKIU.js.map → mds.survivalplot-AZ7LJDZZ.js.map} +0 -0
  868. /package/dist/{multivalue-CT2QWWB4.js.map → multivalue-4QKGYYW2.js.map} +0 -0
  869. /package/dist/{numericDictTermCluster-CRVSJ6PI.js.map → numericDictTermCluster-GLLG6IK2.js.map} +0 -0
  870. /package/dist/{oncomatrix-MX5EHBNW.js.map → oncomatrix-R32ZPMX7.js.map} +0 -0
  871. /package/dist/{oncomatrix.spec-DN2RAWGZ.js.map → oncomatrix.spec-BMK6LMBS.js.map} +0 -0
  872. /package/dist/{plot.2dvaf-B5QAKDTK.js.map → plot.2dvaf-46FT53MF.js.map} +0 -0
  873. /package/dist/{plot.app-V5DZWC6N.js.map → plot.app-7EE4YCV4.js.map} +0 -0
  874. /package/dist/{plot.barplot-VAJLAU7H.js.map → plot.barplot-FK4J2G7K.js.map} +0 -0
  875. /package/dist/{plot.boxplot-PT3BUNVT.js.map → plot.boxplot-ATY4LK3X.js.map} +0 -0
  876. /package/dist/{plot.brainImaging-2WB7XJJM.js.map → plot.brainImaging-S7B547V4.js.map} +0 -0
  877. /package/dist/{plot.disco-64IPBCII.js.map → plot.disco-K5MMC2GD.js.map} +0 -0
  878. /package/dist/{plot.ssgq-ET4OBMUM.js.map → plot.ssgq-B3OVMZFD.js.map} +0 -0
  879. /package/dist/{plot.vaf2cov-DGMVJ7UN.js.map → plot.vaf2cov-RBHDQULW.js.map} +0 -0
  880. /package/dist/{polar2-CWWDVNZQ.js.map → polar2-GECELCTG.js.map} +0 -0
  881. /package/dist/{profileForms-FM7D4WO2.js.map → profileForms-2USYOA34.js.map} +0 -0
  882. /package/dist/{profilePlot-LQ6K4EXX.js.map → profilePlot-YGD2CF6P.js.map} +0 -0
  883. /package/dist/{pseudbulk.unit.spec-IAONX4QR.js.map → pseudbulk.unit.spec-UVVRP6NR.js.map} +0 -0
  884. /package/dist/{pseudobulk-NIX4JOOZ.js.map → pseudobulk-ZIN5VJGB.js.map} +0 -0
  885. /package/dist/{qualitative-M3XSQZA2.js.map → qualitative-27BZGASV.js.map} +0 -0
  886. /package/dist/{qualitative-GLTKWA6H.js.map → qualitative-N4F6NITI.js.map} +0 -0
  887. /package/dist/{radar2-JBULXNFQ.js.map → radar2-X465RPJX.js.map} +0 -0
  888. /package/dist/{radarFacility2-YYIBHZCY.js.map → radarFacility2-AE7BA62N.js.map} +0 -0
  889. /package/dist/{rememberedGvQ.unit.spec-YJV6DVPN.js.map → rememberedGvQ.unit.spec-4PDIU5RY.js.map} +0 -0
  890. /package/dist/{render-ZCH7R3WL.js.map → render-TD2QWOHT.js.map} +0 -0
  891. /package/dist/{report-YPIAIMND.js.map → report-3Y2OWDF7.js.map} +0 -0
  892. /package/dist/{sampleView-K4GSYMAE.js.map → sampleView-BUMMYRHJ.js.map} +0 -0
  893. /package/dist/{samplelst-F2SLVHFP.js.map → samplelst-BWK53BLI.js.map} +0 -0
  894. /package/dist/{samplematrix-Z6F4F7YN.js.map → samplematrix-RQU43UYR.js.map} +0 -0
  895. /package/dist/{sc-UM7SEGED.js.map → sc-LCBFWCZZ.js.map} +0 -0
  896. /package/dist/{scatter-63XRRLGP.js.map → scatter-6S5I7OW3.js.map} +0 -0
  897. /package/dist/{scatter-HFTYLGDP.js.map → scatter-MJELX75N.js.map} +0 -0
  898. /package/dist/{selectGenomeWithTklst-PJNALPM2.js.map → selectGenomeWithTklst-WAVXHXR5.js.map} +0 -0
  899. /package/dist/{singleCellCellType-HR3R6KBD.js.map → singleCellCellType-WMCAJ7JF.js.map} +0 -0
  900. /package/dist/{singleCellCellType.unit.spec-VK57HQ2O.js.map → singleCellCellType.unit.spec-4Z46ZT5Q.js.map} +0 -0
  901. /package/dist/{singleCellGeneExpression-VWOA7MLN.js.map → singleCellGeneExpression-7Q5ZJT4R.js.map} +0 -0
  902. /package/dist/{singleCellGeneExpression.unit.spec-YP64T3XD.js.map → singleCellGeneExpression.unit.spec-6C7PDGRH.js.map} +0 -0
  903. /package/dist/{singleCellNumericValue-3VIUPYPB.js.map → singleCellNumericValue-QGYITZRC.js.map} +0 -0
  904. /package/dist/{singleCellNumericValue.unit.spec-VR5ICRQA.js.map → singleCellNumericValue.unit.spec-MQUKPEZJ.js.map} +0 -0
  905. /package/dist/{singleCellPlot-36QDY7VL.js.map → singleCellPlot-JJMFJ2KQ.js.map} +0 -0
  906. /package/dist/{singlecell-EXEOLJ3J.js.map → singlecell-J23S3JR2.js.map} +0 -0
  907. /package/dist/{singlecell-D2MZVFR4.js.map → singlecell-Y4OGUWEC.js.map} +0 -0
  908. /package/dist/{snp-XHEHXZMB.js.map → snp-IO6TKWGD.js.map} +0 -0
  909. /package/dist/{snp.unit.spec-YR6IDLL7.js.map → snp.unit.spec-X7ILEEPO.js.map} +0 -0
  910. /package/dist/{snplocus-BM7LUK2U.js.map → snplocus-Z2NGIKMO.js.map} +0 -0
  911. /package/dist/{snplst-22VSEZ7R.js.map → snplst-XCS2FCQV.js.map} +0 -0
  912. /package/dist/{spliceevent.a53ss.diagram-KERTJ3QA.js.map → spliceevent.a53ss.diagram-F3S4BRVG.js.map} +0 -0
  913. /package/dist/{spliceevent.exonskip.diagram-K74VIUA4.js.map → spliceevent.exonskip.diagram-AXCDJKH4.js.map} +0 -0
  914. /package/dist/{spliceevent.noeventdiagram-W7WGSVVL.js.map → spliceevent.noeventdiagram-UK3X667E.js.map} +0 -0
  915. /package/dist/{ssGSEA-XDEA5TVX.js.map → ssGSEA-ZRPNQKJ5.js.map} +0 -0
  916. /package/dist/{ssGSEA.unit.spec-RDCPXJ5S.js.map → ssGSEA.unit.spec-DG5ZHLC7.js.map} +0 -0
  917. /package/dist/{stattable-HZ3DOUEM.js.map → stattable-XYSC3CYU.js.map} +0 -0
  918. /package/dist/{summarizeCnvGeneexp-VB4SOJHT.js.map → summarizeCnvGeneexp-H2NP7VLU.js.map} +0 -0
  919. /package/dist/{summarizeGeneexpSurvival-5ZWIJ6O4.js.map → summarizeGeneexpSurvival-HTCD3VQQ.js.map} +0 -0
  920. /package/dist/{summarizeMutationCnv-MBPU64C5.js.map → summarizeMutationCnv-UEGXWK2P.js.map} +0 -0
  921. /package/dist/{summarizeMutationDiagnosis-QRP4ITNL.js.map → summarizeMutationDiagnosis-MJGWP7IT.js.map} +0 -0
  922. /package/dist/{summarizeMutationSurvival-SSXAY5W4.js.map → summarizeMutationSurvival-55JW5LA6.js.map} +0 -0
  923. /package/dist/{summary-SRESZS4Z.js.map → summary-HJO23RGB.js.map} +0 -0
  924. /package/dist/{summary.integration.spec-3V2CEPJM.js.map → summary.integration.spec-OWI2C2N5.js.map} +0 -0
  925. /package/dist/{summaryInput-3VD4KBCU.js.map → summaryInput-RL2JXRDE.js.map} +0 -0
  926. /package/dist/{sunburst-E5IEQQUV.js.map → sunburst-JFY6V5E2.js.map} +0 -0
  927. /package/dist/{survival-H4HYC6GC.js.map → survival-6FLR4YCJ.js.map} +0 -0
  928. /package/dist/{survival-K5WWAELO.js.map → survival-PBBU6PA5.js.map} +0 -0
  929. /package/dist/{survival.integration.spec-SPN2TSQW.js.map → survival.integration.spec-WAKTGYGP.js.map} +0 -0
  930. /package/dist/{svgraph-USRAYSBN.js.map → svgraph-WD3DUZV7.js.map} +0 -0
  931. /package/dist/{svmr-MOKLLJKJ.js.map → svmr-AP6ZFO7S.js.map} +0 -0
  932. /package/dist/{table-WD3P3WL2.js.map → table-GX3VJLPZ.js.map} +0 -0
  933. /package/dist/{termCollection-JU4OJRWD.js.map → termCollection-QE7U5QBD.js.map} +0 -0
  934. /package/dist/{termCollection-VWS5CKVH.js.map → termCollection-YQ332WKB.js.map} +0 -0
  935. /package/dist/{termCollection.unit.spec-TPUJWKKW.js.map → termCollection.unit.spec-ELLN7VRA.js.map} +0 -0
  936. /package/dist/{termCollectionFractionSelection-UWLHDPX2.js.map → termCollectionFractionSelection-V3RP5KAT.js.map} +0 -0
  937. /package/dist/{termCollectionFractionSelection.unit.spec-RBHJY34K.js.map → termCollectionFractionSelection.unit.spec-JR7Q7TJI.js.map} +0 -0
  938. /package/dist/{tk-OAOVCATS.js.map → tk-GD2KJM5W.js.map} +0 -0
  939. /package/dist/{tk-SMOGJUD7.js.map → tk-J5VPFEX6.js.map} +0 -0
  940. /package/dist/{tp.ui-EMWJCGRX.js.map → tp.ui-5K3AAXDW.js.map} +0 -0
  941. /package/dist/{tvs.categorical-A7J4RIKL.js.map → tvs.categorical-RPACB4VU.js.map} +0 -0
  942. /package/dist/{tvs.condition-HFLZES5E.js.map → tvs.condition-O6JBUM6D.js.map} +0 -0
  943. /package/dist/{tvs.dt-GBYX2RWX.js.map → tvs.dt-5EVBSRX3.js.map} +0 -0
  944. /package/dist/{tvs.dtcnv.categorical-X2K3MIPG.js.map → tvs.dtcnv.categorical-Y5YHBZNC.js.map} +0 -0
  945. /package/dist/{tvs.dtcnv.continuous-5EMX4PBP.js.map → tvs.dtcnv.continuous-WP322QUP.js.map} +0 -0
  946. /package/dist/{tvs.dtfusion-7VVSPNRK.js.map → tvs.dtfusion-CCMUFDMQ.js.map} +0 -0
  947. /package/dist/{tvs.dtitd-2YGFPXOY.js.map → tvs.dtitd-P3ED3MWA.js.map} +0 -0
  948. /package/dist/{tvs.dtsnvindel-EISO52O6.js.map → tvs.dtsnvindel-X2MXPLC6.js.map} +0 -0
  949. /package/dist/{tvs.dtsv-RTAMAW3G.js.map → tvs.dtsv-4FOWFNVV.js.map} +0 -0
  950. /package/dist/{tvs.multivalue-5N6PSG4L.js.map → tvs.multivalue-IRF467ZK.js.map} +0 -0
  951. /package/dist/{tvs.numeric-R5UT7ARM.js.map → tvs.numeric-C7FDCGCS.js.map} +0 -0
  952. /package/dist/{tvs.samplelst-SZDNNFK5.js.map → tvs.samplelst-CBU6ATI5.js.map} +0 -0
  953. /package/dist/{tvs.survival-EUUDDXP7.js.map → tvs.survival-3K5ASAXV.js.map} +0 -0
  954. /package/dist/{tvs.termCollection-DAHEYZK2.js.map → tvs.termCollection-MXEWO6KJ.js.map} +0 -0
  955. /package/dist/{vocabulary-P4XRHR34.js.map → vocabulary-GQBHDP3K.js.map} +0 -0
  956. /package/dist/{wsi.direct-J7VX5EMI.js.map → wsi.direct-25JUHWEF.js.map} +0 -0
@@ -1,2452 +0,0 @@
1
- import {
2
- manhattanLayoutDefaults,
3
- plotManhattan
4
- } from "./chunk-IXQQHAHZ.js";
5
- import {
6
- VolcanoModel,
7
- getGroupColors
8
- } from "./chunk-ZZTAUDJV.js";
9
- import {
10
- CCRE_TRACK_NAME
11
- } from "./chunk-VZGARY6D.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-FIFNXVTS.js";
37
- import "./chunk-HJ6L54YS.js";
38
- import "./chunk-N2FCAFJH.js";
39
- import "./chunk-OH33WT6Q.js";
40
- import {
41
- Menu
42
- } from "./chunk-CNFTQSNE.js";
43
- import "./chunk-EEB5VE2A.js";
44
- import "./chunk-3CIL7KH7.js";
45
- import "./chunk-T4XPCSLP.js";
46
- import {
47
- HYPER_COLOR,
48
- HYPO_COLOR,
49
- dofetch3
50
- } from "./chunk-5MHE7AIV.js";
51
- import "./chunk-6WYKPBZI.js";
52
- import {
53
- uiLabel
54
- } from "./chunk-W5J3LTYS.js";
55
- import "./chunk-DBOJ3TMI.js";
56
- import {
57
- DMR_SCAN_ELEMENT_TYPE,
58
- DNA_METHYLATION,
59
- GENE_EXPRESSION,
60
- PROTEOME_DAP,
61
- SINGLECELL_CELLTYPE,
62
- axisBottom,
63
- axisLeft,
64
- bplen
65
- } from "./chunk-EZFO5UYD.js";
66
- import {
67
- copyMerge,
68
- getCompInit
69
- } from "./chunk-HBNB5TRH.js";
70
- import "./chunk-PF4DSFDR.js";
71
- import {
72
- linear
73
- } from "./chunk-4OLM3KSB.js";
74
- import "./chunk-6XKAOSQE.js";
75
- import {
76
- roundValueAuto
77
- } from "./chunk-TLT4YIG3.js";
78
- import "./chunk-5R63Q5KH.js";
79
- import {
80
- selectAll_default,
81
- select_default
82
- } from "./chunk-I6Y4O3RR.js";
83
- import {
84
- rgb
85
- } from "./chunk-Q5RDQNIT.js";
86
- import "./chunk-HS5PO5ZQ.js";
87
-
88
- // plots/volcano/promoterLabel.ts
89
- function elementNoun(elementType) {
90
- switch (elementType) {
91
- case void 0:
92
- case "":
93
- case "promoter":
94
- return { one: "Promoter", many: "promoters" };
95
- /* Two different promoter DEFINITIONS, deliberately given distinct nouns. 'promoter' is
96
- the TSS -1500/+500 window (Bibikova 2011 / Sandoval 2011 -- the 450K array's
97
- TSS1500+TSS200 categories); 'promoter_pls' is the ENCODE cCRE promoter-like element,
98
- ~349 bp, i.e. the CpG-island core with the shores removed. They cover different numbers
99
- of genes and their hit counts are NOT comparable, so the UI must never call both
100
- "promoters". */
101
- case "promoter_pls":
102
- return { one: "cCRE promoter", many: "cCRE promoters" };
103
- case "eqtm_block":
104
- return { one: "eQTM block", many: "eQTM blocks" };
105
- case "enhancer":
106
- return { one: "Enhancer", many: "enhancers" };
107
- /* Distal and proximal are separate ENCODE classes and separate hypotheses -- dELS are
108
- the intronic/intergenic enhancers where myeloma hypermethylation concentrates, pELS sit
109
- within 2 kb of a TSS and behave more promoter-like. There are 4.5x as many dELS, so their
110
- hit counts are not comparable to each other either. Naming them apart keeps a reader from
111
- reading two runs as the same analysis. */
112
- case "enhancer_distal":
113
- return { one: "Distal enhancer", many: "distal enhancers" };
114
- case "enhancer_proximal":
115
- return { one: "Proximal enhancer", many: "proximal enhancers" };
116
- // de novo regions called by the genome scan, not an annotated class at all
117
- case DMR_SCAN_ELEMENT_TYPE:
118
- return { one: "DMR", many: "DMRs" };
119
- default:
120
- return { one: "Element", many: "elements" };
121
- }
122
- }
123
- function formatPromoterLabel(d) {
124
- if (!d) return "";
125
- const id = d.promoter_id || "";
126
- const { chr, start, stop } = d;
127
- if (!chr || !Number.isFinite(start) || !Number.isFinite(stop)) return id;
128
- const region = `${chr}:${start}-${stop}`;
129
- const idx = id.match(/\.(p\d+)_[^_]*:\d+-\d+$/);
130
- return idx ? `${idx[1]} \xB7 ${region}` : region;
131
- }
132
-
133
- // plots/volcano/viewModel/VolcanoViewModel.ts
134
- function shortenGroupName(name) {
135
- if (name.length >= 25) return name.substring(0, 20) + "...";
136
- return name;
137
- }
138
- var VolcanoViewModel = class {
139
- constructor(config, response, settings) {
140
- this.numSignificant = 0;
141
- this.numNonSignificant = 0;
142
- /** The significant count split by direction, from the server so it reflects every
143
- * significant row rather than the maxInteractiveDots-capped `dots`. */
144
- this.numSignificantUp = 0;
145
- this.numSignificantDown = 0;
146
- this.minLogFoldChange = 0;
147
- this.maxLogFoldChange = 0;
148
- //Used for the y axis domain
149
- this.minLogPValue = 0;
150
- this.maxLogPValue = 0;
151
- //Unpadded extents — used for the visible axis labels/ticks (only span real data)
152
- this.minLogFoldChangeAxis = 0;
153
- this.maxLogFoldChangeAxis = 0;
154
- this.minLogPValueAxis = 0;
155
- this.maxLogPValueAxis = 0;
156
- //Dot radius in pixels (from server) — overlay rings size to match the PNG
157
- this.dotRadiusPx = 2;
158
- //Used in place of 0 p values that cannot be log transformed
159
- this.minNonZeroPValue = 1e-9;
160
- this.offset = 10;
161
- this.bottomPad = 60;
162
- this.horizPad = 70;
163
- this.topPad = 40;
164
- this.config = config;
165
- this.response = response;
166
- this.plotX = this.horizPad + this.offset * 2;
167
- this.dataRows = response.data.dots;
168
- const { caseColor, controlColor } = getGroupColors(this.config);
169
- const barplot = { colorNegative: controlColor, colorPositive: caseColor };
170
- this.termType = config.termType;
171
- this.scan = response.scan;
172
- this.singlePValue = config.termType == DATermTypes.PROTEOME_DAP || !!this.scan;
173
- this.pValueLabel = this.setPValueLabel(settings);
174
- this.pValueTable = {
175
- columns: [
176
- // a scan's effect size is delta-beta; the fold change is a difference of logits
177
- { label: this.scan ? "\u0394\u03B2" : "log\u2082(fold-change)", barplot, sortable: true },
178
- // DAP files carry a single FDR (adjusted p-value) and a scan a single p; other term
179
- // types report both a raw and an adjusted p-value.
180
- ...this.singlePValue ? [{ label: this.pValueLabel, sortable: true }] : [
181
- { label: "Original p-value", sortable: true },
182
- { label: "Adjusted p-value", sortable: true }
183
- ]
184
- ],
185
- /** Filled in setPointData(), one row per threshold-passing dot. Populated even when the
186
- * table is hidden — the download reads it. */
187
- rows: [],
188
- rowKeys: /* @__PURE__ */ new Map(),
189
- height: settings.height + this.topPad
190
- };
191
- this.settings = settings;
192
- this.dataType = this.setDataType();
193
- this.setMinMaxValues();
194
- const plotDim = this.setPlotDimensions();
195
- this.setPTableColumns();
196
- const pointData = this.setPointData(plotDim, controlColor, caseColor);
197
- const foldChangeIdx = this.pValueTable.columns.findIndex((c) => c.barplot);
198
- this.pValueTable.rows.sort((a, b) => b[foldChangeIdx].value - a[foldChangeIdx].value);
199
- this.viewData = {
200
- images: response.images || [],
201
- termInfo: this.setTermInfo(plotDim),
202
- plotDim,
203
- pointData,
204
- pValueTableData: this.pValueTable,
205
- statsData: this.setStatsData(),
206
- scan: this.scan,
207
- pValueLabel: this.pValueLabel,
208
- singlePValue: this.singlePValue,
209
- numSignificantUp: this.numSignificantUp,
210
- numSignificantDown: this.numSignificantDown,
211
- xOffset: this.response.data.xOffset ?? 0,
212
- centered: !!this.response.data.centered,
213
- provenance: this.setProvenance(),
214
- userActions: this.setUserActions(),
215
- deltaBetaAxisLabel: this.setDeltaBetaAxisLabel(),
216
- volcanoPng: response.data.volcanoPng,
217
- plotExtent: response.data.plotExtent
218
- };
219
- }
220
- /* The delta-beta axis used to read "Δβ (case − control)". Those are positional roles, not
221
- names, so the plot showed the size of an effect but not its direction -- you had to already
222
- know which group landed in which slot, or open a downloaded file and read the provenance line.
223
- Name the groups instead, in subtraction order (case first), so the axis states what it plots.
224
-
225
- Returns undefined when the group names are not available; the view falls back to the old
226
- wording rather than rendering a broken label. */
227
- setDeltaBetaAxisLabel() {
228
- const groups = this.config?.samplelst?.groups;
229
- const control = groups?.[0]?.name;
230
- const cases = groups?.[1]?.name;
231
- if (!control || !cases) return void 0;
232
- const centered = this.response.data.centered ? " \u2212 median" : "";
233
- return `\u0394\u03B2${centered} (${shortenGroupName(cases)} \u2212 ${shortenGroupName(control)})`;
234
- }
235
- /** What the y axis and the p column are called. Named here once so the axis, the table header,
236
- * the hover rows and the multi-hit table cannot disagree. */
237
- setPValueLabel(settings) {
238
- if (this.termType == DATermTypes.PROTEOME_DAP) return "FDR";
239
- if (this.scan) return this.scan.backgroundCorrection ? "p vs matched background" : "smoothed FDR";
240
- return `${settings.pValueType} p-value`;
241
- }
242
- setDataType() {
243
- if (this.termType == DATermTypes.GENE_EXPRESSION) return "genes";
244
- if (this.termType == DATermTypes.DNA_METHYLATION) return elementNoun(this.settings?.elementType).many;
245
- if (this.termType == DATermTypes.SINGLECELL_CELLTYPE) return "genes";
246
- if (this.termType == DATermTypes.PROTEOME_DAP) return "proteins";
247
- if (this.termType == DATermTypes.SINGLECELL_GENE_EXPRESSION) return "cells";
248
- throw new Error(`Unknown termType: ${this.termType}`);
249
- }
250
- setMinMaxValues() {
251
- const ext = this.response.data.plotExtent;
252
- this.minLogFoldChange = ext.xMin;
253
- this.maxLogFoldChange = ext.xMax;
254
- this.minLogPValue = ext.yMin;
255
- this.maxLogPValue = ext.yMax;
256
- this.minLogFoldChangeAxis = ext.xMinUnpadded;
257
- this.maxLogFoldChangeAxis = ext.xMaxUnpadded;
258
- this.minLogPValueAxis = ext.yMinUnpadded;
259
- this.maxLogPValueAxis = ext.yMaxUnpadded;
260
- this.dotRadiusPx = ext.dotRadiusPx;
261
- if (ext.minNonZeroPValue > 0) this.minNonZeroPValue = ext.minNonZeroPValue;
262
- }
263
- setPlotDimensions() {
264
- const ext = this.response.data.plotExtent;
265
- const plotW = ext.pixelWidth;
266
- const plotH = ext.pixelHeight;
267
- const xPlotScale = linear().domain([this.minLogFoldChange, this.maxLogFoldChange]).range([0, plotW]);
268
- const yPlotScale = linear().domain([this.minLogPValue, this.maxLogPValue]).range([plotH, 0]);
269
- const xScale = linear().domain([this.minLogFoldChangeAxis, this.maxLogFoldChangeAxis]).range([xPlotScale(this.minLogFoldChangeAxis), xPlotScale(this.maxLogFoldChangeAxis)]);
270
- const yScale = linear().domain([this.minLogPValueAxis, this.maxLogPValueAxis]).range([yPlotScale(this.minLogPValueAxis), yPlotScale(this.maxLogPValueAxis)]);
271
- return {
272
- svg: {
273
- //20 is for the term info above the plot
274
- height: plotH + this.topPad + this.bottomPad * 2 + this.offset * 3,
275
- width: plotW + this.horizPad * 2
276
- },
277
- top: {
278
- x: this.plotX,
279
- y: 5
280
- },
281
- xAxisLabel: {
282
- x: this.horizPad + plotW / 2 + this.offset,
283
- y: this.topPad + plotH + this.bottomPad + this.offset
284
- },
285
- xScale: {
286
- scale: xScale,
287
- x: this.plotX,
288
- y: plotH + this.topPad + this.offset * 2
289
- },
290
- yAxisLabel: {
291
- text: `-log10(${this.pValueLabel})`,
292
- x: this.horizPad / 3,
293
- y: this.topPad + plotH / 2
294
- },
295
- yScale: {
296
- scale: yScale,
297
- x: this.horizPad,
298
- y: this.topPad
299
- },
300
- plot: {
301
- height: plotH,
302
- width: plotW,
303
- x: this.plotX,
304
- y: this.topPad
305
- },
306
- logFoldChangeLine: {
307
- x: xPlotScale(0) + this.plotX,
308
- y1: this.topPad,
309
- y2: plotH + this.offset * 4
310
- },
311
- xPlotScale,
312
- yPlotScale
313
- };
314
- }
315
- setTermInfo(plotDim) {
316
- if (!enabledTermTypes.has(this.termType)) return;
317
- if (this.termType == DATermTypes.PROTEOME_DAP) {
318
- return {
319
- y: plotDim.top.y + 10,
320
- first: {
321
- label: shortenGroupName(`Control (${this.response.sample_size1})`),
322
- x: 0
323
- },
324
- second: {
325
- label: shortenGroupName(`Case (${this.response.sample_size2})`),
326
- x: this.settings.width
327
- }
328
- };
329
- }
330
- if (this.termType == DATermTypes.SINGLECELL_CELLTYPE) {
331
- const groupLabel = `${this.config.termId} ${this.config.categoryName}`;
332
- return {
333
- y: plotDim.top.y + 10,
334
- first: {
335
- label: shortenGroupName(`Not in ${groupLabel}`),
336
- x: 0
337
- },
338
- second: {
339
- label: shortenGroupName(groupLabel),
340
- x: this.settings.width
341
- }
342
- };
343
- }
344
- return {
345
- //Set slightly above the plot
346
- y: plotDim.top.y + 10,
347
- first: {
348
- // color: controlColor || this.settings.defaultSignColor,
349
- label: shortenGroupName(`${this.config.samplelst.groups[0].name} (${this.response.sample_size1})`),
350
- x: 0
351
- // rectX: this.settings.width/2 - 10,
352
- },
353
- second: {
354
- // color: caseColor || this.settings.defaultSignColor,
355
- label: shortenGroupName(`${this.config.samplelst.groups[1].name} (${this.response.sample_size2})`),
356
- x: this.settings.width
357
- // rectX: this.settings.width/2 + 10,
358
- }
359
- };
360
- }
361
- setPointData(_plotDim, controlColor, caseColor) {
362
- const radius = this.dotRadiusPx;
363
- this.pValueTable.rows = [];
364
- this.pValueTable.rowKeys.clear();
365
- const dataCopy = structuredClone(this.dataRows);
366
- for (const d of dataCopy) {
367
- const highlightKey = this.termType === DATermTypes.DNA_METHYLATION ? d.promoter_id : d.gene_name;
368
- d.highlighted = this.config?.highlightedData?.includes(highlightKey);
369
- d.significant = true;
370
- this.getGenesColor(d, d.significant, controlColor, caseColor);
371
- if (d.significant) {
372
- this.numSignificant++;
373
- const row = this.singlePValue ? [
374
- { value: roundValueAuto(this.scan ? d.delta_beta : d.fold_change) },
375
- { value: roundValueAuto(d.original_p_value) }
376
- ] : [
377
- { value: roundValueAuto(d.fold_change) },
378
- { value: roundValueAuto(d.original_p_value) },
379
- { value: d.adjusted_p_value != void 0 ? roundValueAuto(d.adjusted_p_value) : "" }
380
- ];
381
- if (this.termType == DATermTypes.DNA_METHYLATION) {
382
- if (this.scan) {
383
- row.splice(
384
- 1,
385
- 0,
386
- // fold_change carries the peak per-CpG delta-beta on a scan row
387
- { value: roundValueAuto(d.fold_change) },
388
- { value: d.no_cpgs },
389
- { value: d.stop - d.start },
390
- ...this.scan.backgroundCorrection ? [{ value: d.excess == null ? "" : roundValueAuto(d.excess) }] : []
391
- );
392
- } else {
393
- row.splice(
394
- 1,
395
- 0,
396
- { value: roundValueAuto(d.delta_beta) },
397
- { value: roundValueAuto(d.mean_beta_control) },
398
- { value: roundValueAuto(d.mean_beta_case) }
399
- );
400
- }
401
- row.splice(0, 0, { value: formatPromoterLabel(d) }, { value: d.gene_name || "" });
402
- } else if (this.termType == DATermTypes.PROTEOME_DAP) {
403
- row.splice(0, 0, { value: d.gene_name || "" }, { value: d.gene || "" });
404
- } else {
405
- row.splice(0, 0, { value: d.gene_name || "" });
406
- }
407
- this.pValueTable.rows.push(row);
408
- this.pValueTable.rowKeys.set(row, highlightKey);
409
- } else {
410
- this.numNonSignificant++;
411
- }
412
- d.x = d.pixel_x + this.plotX;
413
- d.y = d.pixel_y + this.topPad;
414
- d.radius = radius;
415
- }
416
- this.numSignificant = this.response.data.totalSignificantRows;
417
- this.numNonSignificant = Math.max(0, this.response.data.totalRows - this.numSignificant);
418
- this.numSignificantUp = this.response.data.totalSignificantUp ?? 0;
419
- this.numSignificantDown = this.response.data.totalSignificantDown ?? 0;
420
- dataCopy.sort((a, b) => a.highlighted - b.highlighted);
421
- return dataCopy;
422
- }
423
- getGenesColor(d, significant, controlColor, caseColor) {
424
- if (!d.gene_name && this.termType != DATermTypes.DNA_METHYLATION)
425
- throw new Error(`Missing gene_name in data: ${JSON.stringify(d)}`);
426
- if (significant) {
427
- const x = this.termType == DATermTypes.DNA_METHYLATION && this.settings.xAxis === "delta_beta" ? d.delta_beta - (this.response.data.xOffset ?? 0) : d.fold_change;
428
- if (controlColor && caseColor) d.color = x > 0 ? caseColor : controlColor;
429
- else d.color = this.settings.defaultSignColor;
430
- } else d.color = this.settings.defaultNonSignColor;
431
- }
432
- /** One line describing what produced this result: which groups, how many samples actually
433
- * entered the model, and every setting that changes the numbers.
434
- *
435
- * This exists because an exported table is the artifact that outlives the session. Re-running
436
- * a contrast months later and getting different counts is impossible to diagnose when the
437
- * original run's group sizes and options were never written down anywhere -- the file, the
438
- * screenshot and the memory of it all look identical regardless of how it was configured.
439
- * Only settings that can change the result are listed; cosmetic ones are deliberately left
440
- * out so the line stays readable and a difference in it always means a real difference. */
441
- setProvenance() {
442
- const s = this.settings;
443
- const parts = [];
444
- if (this.config.samplelst?.groups?.length == 2) {
445
- const [g1, g2] = this.config.samplelst.groups;
446
- parts.push(`group1 (control) "${g1.name}" n=${this.response.sample_size1}`);
447
- parts.push(`group2 (case) "${g2.name}" n=${this.response.sample_size2}`);
448
- }
449
- const conf = this.config.confounderTws?.map((t) => t?.term?.name || t?.term?.id).filter(Boolean);
450
- parts.push(`confounders: ${conf?.length ? conf.join(" + ") : "none"}`);
451
- if (this.termType == DATermTypes.DNA_METHYLATION) {
452
- parts.push(`element class: ${s.elementType || "promoter"}`);
453
- parts.push(`x axis: ${s.xAxis === "delta_beta" ? "delta-beta" : "log2(fold-change)"}`);
454
- const off = this.response.data.xOffset ?? 0;
455
- if (this.response.data.centered)
456
- parts.push(`centered on median delta-beta ${off > 0 ? "+" : ""}${roundValueAuto(off)}`);
457
- if (this.scan) {
458
- parts.push(`scan: ${s.scanChromosome || "whole genome"}`);
459
- parts.push(`background correction: ${s.backgroundCorrection ? "yes" : "no"}`);
460
- parts.push(`min CpGs per DMR: ${s.minCpgs}`);
461
- } else parts.push(`min samples per group: ${s.minSamplesPerGroup}`);
462
- parts.push(`exclude sex chromosomes: ${s.excludeSexChr ? "yes" : "no"}`);
463
- } else if (this.termType == DATermTypes.GENE_EXPRESSION) {
464
- parts.push(`method: ${s.method}`);
465
- }
466
- const onDeltaBeta = this.termType == DATermTypes.DNA_METHYLATION && s.xAxis === "delta_beta";
467
- const effect = onDeltaBeta ? `|delta-beta| > ${s.deltaBetaCutoff}` : `|log2(fold-change)| > ${s.foldChangeCutoff}`;
468
- parts.push(`significance: ${s.pValueType} p < ${roundValueAuto(Math.pow(10, -s.pValue))}, ${effect}`);
469
- return parts.join("; ");
470
- }
471
- setStatsData() {
472
- const tableRows = [
473
- {
474
- label: `Percentage of significant ${this.dataType}`,
475
- value: roundValueAuto(this.numSignificant * 100 / (this.numSignificant + this.numNonSignificant))
476
- },
477
- {
478
- label: `Number of significant ${this.dataType}`,
479
- value: this.numSignificant
480
- },
481
- {
482
- label: `Number of total ${this.dataType}`,
483
- value: this.numSignificant + this.numNonSignificant
484
- }
485
- ];
486
- if (this.termType == DATermTypes.GENE_EXPRESSION || this.termType == DATermTypes.DNA_METHYLATION) {
487
- tableRows.push(
488
- {
489
- label: this.config.samplelst.groups[0].name + " sample size (control group)",
490
- value: this.response.sample_size1
491
- },
492
- {
493
- label: this.config.samplelst.groups[1].name + " sample size (case group)",
494
- value: this.response.sample_size2
495
- }
496
- );
497
- } else if (this.termType == DATermTypes.PROTEOME_DAP) {
498
- tableRows.push(
499
- {
500
- label: "Control sample size",
501
- value: this.response.sample_size1
502
- },
503
- {
504
- label: "Case sample size",
505
- value: this.response.sample_size2
506
- }
507
- );
508
- }
509
- if (this.response.bcv !== void 0 && this.response.bcv !== null) {
510
- tableRows.push({
511
- label: "Biological coefficient of variation",
512
- value: roundValueAuto(this.response.bcv)
513
- });
514
- }
515
- if (this.scan) tableRows.push(...this.setScanStats(this.scan));
516
- return tableRows;
517
- }
518
- /* The whole-scan facts, every one of them over the scan as returned -- before the volcano's
519
- thresholds -- and over the same set of DMRs (those meeting the CpG floor), so no two lines here
520
- have different denominators. The counts the thresholds select are the three rows above. */
521
- setScanStats(s) {
522
- const rows = [
523
- { label: "Chromosomes scanned", value: s.chromosomes.length },
524
- { label: "CpGs analyzed", value: s.totalProbesAnalyzed },
525
- { label: "DMRs called", value: s.called },
526
- { label: `DMRs with ${s.minCpgs}+ CpGs`, value: s.kept },
527
- { label: "Hypermethylated", value: s.hyper },
528
- { label: "Hypomethylated", value: s.hypo }
529
- ];
530
- if (s.width)
531
- rows.push({
532
- label: "DMR width, median (IQR)",
533
- value: `${bplen(s.width.median)} (${bplen(s.width.q1)} \u2013 ${bplen(s.width.q3)})`
534
- });
535
- if (s.regionMask)
536
- rows.push({
537
- label: `DMRs removed by artifact mask (${s.regionMask.sources.join(", ")}; \u2265${Math.round(
538
- s.regionMask.overlapFrac * 100
539
- )}% masked)`,
540
- value: s.regionMask.dmrsDropped
541
- });
542
- const gm = s.globalMethylation;
543
- if (gm) {
544
- const [g1, g2] = this.config.samplelst?.groups?.map((g) => g.name) || ["group 1", "group 2"];
545
- const one = s.chromosomes.length == 1 ? s.chromosomes[0] : null;
546
- const meanLabel = (g) => one ? `${g} mean \u03B2 on ${one}` : `${g} genome-wide mean \u03B2`;
547
- rows.push(
548
- { label: meanLabel(g1), value: gm.controlMeanBeta.toFixed(4) },
549
- { label: meanLabel(g2), value: gm.caseMeanBeta.toFixed(4) },
550
- {
551
- label: one ? `\u03B2 shift on ${one} (case \u2212 control)` : "Genome-wide \u03B2 shift (case \u2212 control)",
552
- value: `${gm.shift >= 0 ? "+" : ""}${gm.shift.toFixed(4)}`
553
- }
554
- );
555
- }
556
- const bc = s.backgroundCorrection;
557
- if (bc) {
558
- rows.push(
559
- { label: "Intergenic background windows sampled", value: bc.windows },
560
- { label: `DMRs scored against background (matched on ${bc.matchedOn.join(" and ")})`, value: bc.scored },
561
- { label: "DMRs unscored: stratum too thin (not plotted)", value: bc.unscored },
562
- {
563
- label: "DMRs moving more than matched background (p < 0.05)",
564
- value: `${bc.significant.toLocaleString()} of ${bc.scored.toLocaleString()} (${(100 * bc.significant / Math.max(1, bc.scored)).toFixed(1)}%)`
565
- }
566
- );
567
- }
568
- if (s.geneBodyLoss)
569
- rows.push({
570
- // the correction adds the background gate, so the label must say which set this is
571
- label: s.backgroundCorrection ? "Gene-body loss regions beating background \u2192 genes" : "Gene-body loss regions \u2192 genes",
572
- value: `${s.geneBodyLoss.regions.toLocaleString()} \u2192 ${s.geneBodyLoss.genes.length.toLocaleString()}`
573
- });
574
- const pf = s.profileSummary;
575
- if (pf) {
576
- const pct = (v) => `${(100 * v).toFixed(1)}%`;
577
- rows.push(
578
- {
579
- label: `Methylome profile: ${pf.bins.toLocaleString()} bins measured`,
580
- value: `${pct(pf.fractionHyper)} hyper`
581
- },
582
- {
583
- label: "Methylome profile: per-bin \u0394\u03B2, median (IQR)",
584
- value: `${pf.median >= 0 ? "+" : ""}${pf.median.toFixed(4)} (${pf.q1.toFixed(4)} \u2013 ${pf.q3.toFixed(4)})`
585
- },
586
- { label: "Methylome profile: bins moving |\u0394\u03B2| > 0.05", value: pct(pf.fractionBeyond05) },
587
- { label: "Methylome profile: bins moving |\u0394\u03B2| > 0.10", value: pct(pf.fractionBeyond10) }
588
- );
589
- }
590
- const r = s.resources;
591
- if (r) {
592
- const top = r.perChromosome[0];
593
- rows.push(
594
- {
595
- label: "Compute: workers \xD7 threads",
596
- value: `${r.workers} \xD7 ${r.threadsPerWorker} (${r.workers * r.threadsPerWorker} core${r.workers * r.threadsPerWorker == 1 ? "" : "s"})`
597
- },
598
- { label: "Compute: wall time", value: `${(r.wallMs / 1e3).toFixed(1)} s` },
599
- {
600
- label: "Compute: peak memory per worker",
601
- value: `${Math.round(r.peakWorkerMemoryMb).toLocaleString()} MB${top ? ` (${top.chr}, ${top.probes.toLocaleString()} CpGs)` : ""}`
602
- },
603
- { label: "Compute: peak memory, worker pool", value: `${Math.round(r.peakPoolMemoryMb).toLocaleString()} MB` },
604
- { label: "Compute: worker CPU time", value: `${r.workerCpuSeconds.toFixed(1)} s` },
605
- {
606
- label: "Compute: server process",
607
- value: `+${Math.round(r.nodeRssDeltaMb).toLocaleString()} MB, ${r.nodeCpuSeconds.toFixed(1)} s CPU`
608
- }
609
- );
610
- }
611
- return rows;
612
- }
613
- setPTableColumns() {
614
- if (this.termType == DATermTypes.DNA_METHYLATION) {
615
- if (this.scan) {
616
- this.pValueTable.columns.splice(
617
- 1,
618
- 0,
619
- { label: "Peak \u0394\u03B2", sortable: true },
620
- { label: "CpGs", sortable: true },
621
- { label: "Width (bp)", sortable: true },
622
- ...this.scan.backgroundCorrection ? [{ label: "Excess \u0394\u03B2", sortable: true }] : []
623
- );
624
- } else {
625
- this.pValueTable.columns.splice(
626
- 1,
627
- 0,
628
- { label: "\u0394\u03B2", sortable: true },
629
- { label: "Mean \u03B2 (group 1)", sortable: true },
630
- { label: "Mean \u03B2 (group 2)", sortable: true }
631
- );
632
- }
633
- this.pValueTable.columns.splice(
634
- 0,
635
- 0,
636
- { label: elementNoun(this.settings?.elementType).one, sortable: true },
637
- { label: "Gene(s)", sortable: true }
638
- );
639
- } else if (this.termType == DATermTypes.PROTEOME_DAP) {
640
- this.pValueTable.columns.splice(0, 0, { label: "Identifier", sortable: true }, { label: "Gene", sortable: true });
641
- } else {
642
- this.pValueTable.columns.splice(0, 0, { label: "Gene Name", sortable: true });
643
- }
644
- }
645
- setUserActions() {
646
- const userActions = {
647
- noShow: /* @__PURE__ */ new Set()
648
- };
649
- if (this.scan) userActions.noShow.add("Confounding factors");
650
- if (this.termType == DATermTypes.GENE_EXPRESSION) {
651
- if (this.settings.method == "edgeR" && getSampleNum(this.config) > 100) {
652
- userActions.noShow.add("Confounding factors");
653
- }
654
- if (this.settings.method == "wilcoxon") userActions.noShow.add("Confounding factors");
655
- }
656
- return userActions;
657
- }
658
- };
659
-
660
- // plots/volcano/groupColors.ts
661
- function groupColors(config) {
662
- const g = config?.samplelst?.groups;
663
- if (!g?.length) return {};
664
- const values = config?.tw?.term?.values;
665
- const pick = (i) => values?.[g[i]?.name]?.color || g[i]?.color;
666
- const out = {};
667
- const c1 = pick(0);
668
- const c2 = pick(1);
669
- if (c1) out.group1 = c1;
670
- if (c2) out.group2 = c2;
671
- return out;
672
- }
673
-
674
- // plots/volcano/interactions/VolcanoInteractions.ts
675
- var VolcanoInteractions = class {
676
- constructor(app, id, dom) {
677
- this.app = app;
678
- this.dom = dom;
679
- this.id = id;
680
- this.pValueTableData = [];
681
- this.data = [];
682
- this.totalSignificantRows = 0;
683
- this.provenance = "";
684
- }
685
- /** Launches a multi-term select tree
686
- * On submit, dispatches a plot_edit action with the new confounders */
687
- async confoundersMenu() {
688
- const state = this.app.getState();
689
- const config = state.plots.find((p) => p.id === this.id);
690
- if (config.termType !== GENE_EXPRESSION && config.termType !== DNA_METHYLATION) return;
691
- const allowedGroupNames = /* @__PURE__ */ new Set([config.samplelst.groups[0].name, config.samplelst.groups[1].name]);
692
- const grpTerms = new Set(
693
- (this.app?.vocabApi?.state.groups || []).filter((g) => allowedGroupNames.has(g.name)).flatMap(
694
- (g) => g.filter.lst.flatMap((f) => {
695
- if (f.tvs?.term) return f.tvs.term;
696
- else return f.lst.map((l) => l.tvs.term);
697
- })
698
- )
699
- );
700
- const disable_terms = grpTerms.size ? Array.from(grpTerms) : [];
701
- const maxNum = config.settings.volcano.method == "edgeR" ? 1 : 2;
702
- const ui = new MultiTermWrapperEditUI({
703
- app: this.app,
704
- callback: async (tws) => {
705
- this.dom.actionsTip.hide();
706
- await this.app.dispatch({
707
- type: "plot_edit",
708
- id: this.id,
709
- config: { confounderTws: tws }
710
- });
711
- },
712
- holder: this.dom.actionsTip.d,
713
- headerText: "Select confounders",
714
- maxNum,
715
- state,
716
- twList: config.confounderTws,
717
- disable_terms
718
- });
719
- await ui.renderUI();
720
- }
721
- download(termType) {
722
- this.dom.actionsTip.clear().showunder(this.dom.controls.select("div").node());
723
- const opts = [
724
- {
725
- text: "Download plot",
726
- callback: () => {
727
- const svg = this.dom.holder.select("svg").node();
728
- to_svg(svg, `Differential ${termType} analysis volcano`, { apply_dom_styles: true });
729
- }
730
- },
731
- {
732
- // DAP volcanoes report a single FDR rather than a p-value.
733
- text: termType === PROTEOME_DAP ? "Download FDR table" : "Download p-value table",
734
- callback: (itemDiv) => this.downloadPvalueTable(termType, itemDiv)
735
- }
736
- ];
737
- for (const opt of opts) {
738
- const itemDiv = this.dom.actionsTip.d.append("div").attr("class", "sja_menuoption").text(opt.text);
739
- itemDiv.on("click", () => opt.callback(itemDiv));
740
- }
741
- }
742
- /* The interactive table only holds the most-significant maxInteractiveDots rows, because the
743
- dot overlay has to stay responsive. The download has no such constraint, so it should be the
744
- COMPLETE set of significant rows: when the two differ, re-request with the cap lifted and write
745
- those rows instead.
746
-
747
- That second request is cheap. volcanoRender is deliberately not part of the DA cache key (see
748
- dmKeyInputs in server/routes/termdb.diffMeth.ts), so lifting the cap re-uses the cached R result
749
- and pays only for a re-render.
750
-
751
- If the re-request fails the download still happens, with the capped rows and a note saying so --
752
- losing the file entirely would be a worse outcome than a disclosed subset. */
753
- async downloadPvalueTable(termType, itemDiv) {
754
- const date = fileDateStamp();
755
- const label = termType === PROTEOME_DAP ? "fdr" : "p-value";
756
- let { rows, columns } = this.pValueTableData;
757
- let subsetNote;
758
- 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}).`;
759
- if (this.totalSignificantRows > rows.length) {
760
- if (!this.fetchAllRows) subsetNote = cappedNote("complete set unavailable");
761
- else {
762
- const restore = itemDiv?.text();
763
- itemDiv?.text(`Preparing ${this.totalSignificantRows.toLocaleString()} rows...`);
764
- try {
765
- const full = await this.fetchAllRows();
766
- rows = full.rows;
767
- columns = full.columns;
768
- } catch (e) {
769
- subsetNote = cappedNote(`could not retrieve the complete set: ${e?.message || e}`);
770
- } finally {
771
- if (restore) itemDiv?.text(restore);
772
- }
773
- }
774
- }
775
- const note = [subsetNote, this.provenance && `Run: ${this.provenance}`].filter(Boolean).join(" | ");
776
- downloadTable(rows, columns, `${label}-table-${date}.tsv`, note || void 0);
777
- }
778
- async highlightDataPoint(value) {
779
- const config = this.app.getState().plots.find((p) => p.id === this.id);
780
- const highlightedData = config.highlightedData.includes(value) ? config.highlightedData.filter((d) => d !== value) : [...config.highlightedData, value];
781
- await this.app.dispatch({
782
- type: "plot_edit",
783
- id: this.id,
784
- config: { highlightedData }
785
- });
786
- }
787
- /** When clicking on a data point, launches the box plot in a separate sandbox
788
- * For geneExpression, value == gene symbol */
789
- launchBoxPlot(value) {
790
- const config = this.app.getState().plots.find((p) => p.id === this.id);
791
- const values = {};
792
- for (const group of config.samplelst.groups) {
793
- values[group.name] = {
794
- key: group.name,
795
- label: group.name,
796
- list: group.values
797
- };
798
- }
799
- const setTerm = () => {
800
- if (config.termType == GENE_EXPRESSION) {
801
- return {
802
- q: { mode: "continuous" },
803
- term: {
804
- gene: value,
805
- name: value,
806
- type: config.termType
807
- }
808
- };
809
- } else return config.term;
810
- };
811
- this.app.dispatch({
812
- type: "plot_create",
813
- config: {
814
- chartType: "summary",
815
- childType: "boxplot",
816
- term: setTerm(),
817
- term2: {
818
- q: { groups: config.tw.q.groups, type: "custom-samplelst" },
819
- term: config.tw.term
820
- }
821
- }
822
- });
823
- }
824
- /** Launch a violin plot for a gene expression data point. */
825
- launchViolinGeneExp(value) {
826
- const config = this.app.getState().plots.find((p) => p.id === this.id);
827
- this.app.dispatch({
828
- type: "plot_create",
829
- config: {
830
- chartType: "summary",
831
- childType: "violin",
832
- term: {
833
- q: { mode: "continuous" },
834
- term: {
835
- gene: value,
836
- name: value,
837
- type: config.termType
838
- }
839
- },
840
- term2: {
841
- q: { groups: config.tw.q.groups, type: "custom-samplelst" },
842
- term: config.tw.term
843
- }
844
- }
845
- });
846
- }
847
- launchGeneSetEdit() {
848
- const plotConfig = this.app.getState().plots.find((p) => p.id === this.id);
849
- const holder = this.dom.actionsTip.d.append("div").style("padding", "5px");
850
- const limitedGenesList = plotConfig.termType === DNA_METHYLATION ? this.data.map((d) => d.promoter_id) : this.data.map((d) => d.gene_name);
851
- new GeneSetEditUI({
852
- holder,
853
- genome: this.app.opts.genome,
854
- vocabApi: this.app.vocabApi,
855
- limitedGenesList,
856
- geneList: plotConfig.highlightedData.map((d) => {
857
- return { gene: d };
858
- }),
859
- customInputs: [
860
- {
861
- label: "Cancel highlight",
862
- getDisplayStyle: () => plotConfig.highlightedData.length > 0 ? "" : "none",
863
- showInput: async () => {
864
- await this.app.dispatch({
865
- type: "plot_edit",
866
- id: this.id,
867
- config: { highlightedData: [] }
868
- });
869
- this.dom.actionsTip.hide();
870
- }
871
- }
872
- ],
873
- callback: async (result) => {
874
- const highlightedData = result.geneList.map((d) => d.gene);
875
- await this.app.dispatch({
876
- type: "plot_edit",
877
- id: this.id,
878
- config: { highlightedData }
879
- });
880
- this.dom.actionsTip.hide();
881
- }
882
- });
883
- }
884
- /** When clicking on a DM data point, dispatches a DMR plot that runs DMRCate
885
- * analysis and renders a genome browser Block with DMR regions on their own
886
- * track. */
887
- async launchDmr(d, dmrSettings = {}) {
888
- const config = this.app.getState().plots.find((p) => p.id === this.id);
889
- const colors = groupColors(config);
890
- const label = d.promoterId || `${d.chr}:${d.start}-${d.stop}`;
891
- const dmrConfig = {
892
- chartType: "dmr",
893
- headerText: `DMR: ${label}`,
894
- coordinateOverride: { chr: d.chr, start: d.start, stop: d.stop },
895
- group1: config.samplelst.groups[0].values || [],
896
- group2: config.samplelst.groups[1].values || [],
897
- group1Name: config.samplelst.groups[0].name,
898
- group2Name: config.samplelst.groups[1].name,
899
- /* Which element matrix to drill into, for a dataset whose methylation is element-level
900
- only. The server ignores it when the dataset has a CpG-level matrix, which is finer. The
901
- scan is not a matrix, so a region opened from a scan names none and the server picks. */
902
- elementType: config?.settings?.volcano?.elementType == DMR_SCAN_ELEMENT_TYPE ? void 0 : config?.settings?.volcano?.elementType,
903
- settings: { colors, ...dmrSettings }
904
- };
905
- this.app.dispatch({
906
- type: "plot_create",
907
- config: dmrConfig
908
- });
909
- }
910
- /* Open a genome browser on a scan's DMR, with the scan's own DMRs as a track. The scan wrote
911
- every DMR it called to a bedj file in the server's cache (at the CpG floor the volcano counts
912
- at), so the track is an ordinary file tk: the browser reads whatever region is in view from it,
913
- including after the reader types another position into the search box. Opened on the DMR with
914
- room either side. */
915
- async launchScanGenomeBrowser(d, scan) {
916
- const tracks = [];
917
- const ccre = (this.app.opts.genome?.tracks || []).find((t) => t.name == CCRE_TRACK_NAME);
918
- if (ccre) tracks.push(structuredClone(ccre));
919
- if (scan.bedjFile) {
920
- tracks.push({
921
- type: "bedj",
922
- name: "Scan DMRs",
923
- // the file is under the server's bedj cache dir, not the tp dir
924
- isCache: true,
925
- file: scan.bedjFile,
926
- stackheight: 14,
927
- // drives both the fill and the block legend, which counts each class in view
928
- categories: {
929
- hyper: { label: "Hypermethylated DMR", color: HYPER_COLOR },
930
- hypo: { label: "Hypomethylated DMR", color: HYPO_COLOR }
931
- }
932
- });
933
- }
934
- const pad = Math.max(5e3, d.stop - d.start);
935
- this.app.dispatch({
936
- type: "plot_create",
937
- config: {
938
- chartType: "genomeBrowser",
939
- geneSearchResult: { chr: d.chr, start: Math.max(0, d.start - pad), stop: d.stop + pad },
940
- tracks
941
- }
942
- });
943
- }
944
- /** Launch a violin/box plot for a DNA methylation promoter.
945
- * Creates a methylation term using the promoter's chr/start/stop coordinates.
946
- * The tw handler fills in id and unit from termdbConfig. */
947
- launchDNAMethViolin(d) {
948
- const config = this.app.getState().plots.find((p) => p.id === this.id);
949
- const elementType = config?.settings?.volcano?.elementType;
950
- const genomicFeatureType = elementType === DMR_SCAN_ELEMENT_TYPE ? "region" : d.promoter_id ? "promoter" : "gene";
951
- const featureName = genomicFeatureType === "gene" ? d.gene_name?.split(",")[0]?.trim() || "" : "";
952
- const term = {
953
- genomicFeatureType,
954
- featureName,
955
- type: DNA_METHYLATION,
956
- chr: d.chr,
957
- start: d.start,
958
- stop: d.stop
959
- };
960
- if (genomicFeatureType !== "gene") {
961
- const noun = elementNoun(elementType).one;
962
- const unit = getDNAMethUnit(genomicFeatureType, this.app.vocabApi);
963
- term.unit = unit;
964
- term.name = getDNAMethTermName(term, unit, noun);
965
- }
966
- this.app.dispatch({
967
- type: "plot_create",
968
- config: {
969
- chartType: "summary",
970
- childType: "violin",
971
- term: {
972
- q: { mode: "continuous" },
973
- term
974
- },
975
- term2: {
976
- q: { groups: config.tw.q.groups, type: "custom-samplelst" },
977
- term: config.tw.term
978
- }
979
- }
980
- });
981
- }
982
- async launchDEGClustering() {
983
- const geneIndex = this.pValueTableData.columns.findIndex((col) => col.label === "Gene Name");
984
- const adjustedPValIndex = this.pValueTableData.columns.findIndex((col) => col.label === "Adjusted p-value");
985
- const rowsSorted = [...this.pValueTableData.rows].sort((a, b) => {
986
- const aQVal = Number(a[adjustedPValIndex].value);
987
- const bQVal = Number(b[adjustedPValIndex].value);
988
- return aQVal - bQVal;
989
- });
990
- const geneList = rowsSorted.slice(0, 100).map((r) => ({ gene: r[geneIndex].value }));
991
- const tws = geneList.map((d) => {
992
- const gene = d.gene;
993
- const unit = getGEunit(this.app.vocabApi);
994
- const name = `${gene} ${unit}`;
995
- const term = { gene, name, type: GENE_EXPRESSION };
996
- return { term, q: {} };
997
- });
998
- const group = { lst: tws, type: "hierCluster" };
999
- const customVariable = this.app.getState().plots.find((p) => p.id === this.id).tw;
1000
- const annotationGroup = { lst: [customVariable] };
1001
- const config = {
1002
- chartType: "hierCluster",
1003
- termgroups: [group, annotationGroup],
1004
- dataType: GENE_EXPRESSION,
1005
- filter: {
1006
- in: true,
1007
- join: "",
1008
- type: "tvslst",
1009
- lst: [{ type: "tvs", tvs: { term: customVariable.term } }]
1010
- }
1011
- };
1012
- await this.app.dispatch({
1013
- type: "plot_create",
1014
- config: structuredClone(config)
1015
- });
1016
- }
1017
- };
1018
-
1019
- // plots/volcano/interactions/geneBodyLossDE.ts
1020
- async function geneBodyLossTest(tip, config, vocab, scan, app) {
1021
- const gb = scan.geneBodyLoss;
1022
- const holder = tip.d;
1023
- const groups = (scan.matchedSamplelst || config?.samplelst)?.groups;
1024
- if (!groups || groups.length != 2) {
1025
- sayerror(holder.append("div"), "Two sample groups are required.");
1026
- return;
1027
- }
1028
- const div = holder.append("div").style("padding", "10px").style("max-width", "900px");
1029
- const wait = div.append("div").style("color", "#777").text("Running differential expression\u2026");
1030
- const de = getDefaultVolcanoSettings({}, { termType: "geneExpression" });
1031
- try {
1032
- const res = await dofetch3("termdb/dmrGeneDE", {
1033
- body: {
1034
- genome: vocab.genome,
1035
- dslabel: vocab.dslabel,
1036
- // `in` is part of the DE cache key, so it must travel or the two runs get separate entries
1037
- samplelst: { groups: groups.map((g) => ({ name: g.name, in: g.in, values: g.values })) },
1038
- genes: gb.genes,
1039
- method: de.method,
1040
- min_count: de.minCount,
1041
- min_total_count: de.minTotalCount,
1042
- cpm_cutoff: de.cpmCutoff,
1043
- filter: app.getState().termfilter?.filter,
1044
- filter0: app.getState().termfilter?.filter0
1045
- }
1046
- });
1047
- wait.remove();
1048
- if (res?.error) {
1049
- sayerror(div.append("div"), res.error);
1050
- return;
1051
- }
1052
- renderGeneDE(div, res, gb.regions, config, scan, app, tip);
1053
- } catch (e) {
1054
- wait.remove();
1055
- sayerror(div.append("div"), e?.message || String(e));
1056
- }
1057
- }
1058
- function renderGeneDE(div, res, nRegions, config, scan, app, tip) {
1059
- const gb = scan.geneBodyLoss;
1060
- const samplelst = scan.matchedSamplelst || config.samplelst;
1061
- const nMatched = samplelst.groups.reduce((n, g) => n + g.values.length, 0);
1062
- const dir = res.weightedDiff < 0 ? "lower" : "higher";
1063
- div.append("button").attr("class", "sja_menuoption").attr("data-testid", "sjpp-geneBodyLoss-deVolcano").style("margin", "0 0 8px").style("padding", "3px 6px").text(
1064
- `Open as differential expression volcano on the ${nMatched.toLocaleString()} samples with methylation, ${gb.genes.length.toLocaleString()} genes highlighted`
1065
- ).on("click", () => {
1066
- tip.hide();
1067
- app.dispatch({
1068
- type: "plot_create",
1069
- config: structuredClone({
1070
- chartType: "differentialAnalysis",
1071
- termType: "geneExpression",
1072
- state: config.state,
1073
- samplelst,
1074
- tw: config.tw,
1075
- highlightedData: gb.genes,
1076
- /* The default highlight is orange-yellow, which on a case group drawn in orange makes
1077
- the highlighted hits and the up-regulated genes one blob. Use the colour the
1078
- methylation figures give to LOSS instead: these genes are highlighted because they
1079
- lost gene-body methylation, so the fill says the same thing there and here. */
1080
- settings: { volcano: { defaultHighlightColor: HYPO_COLOR } }
1081
- })
1082
- });
1083
- });
1084
- div.append("div").style("font-weight", "bold").style("padding", "4px 0").text(
1085
- `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)}).`
1086
- );
1087
- div.append("div").style("color", "#777").style("font-size", ".92em").text(
1088
- `${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.`
1089
- );
1090
- if (res.sigCount) {
1091
- div.append("div").style("padding", "8px 0 2px").style("font-weight", "bold").text(
1092
- `${res.sigCount.toLocaleString()} of these genes are differentially expressed on their own (p < 0.05), ${res.sigDown.toLocaleString()} of them down.`
1093
- );
1094
- const { caseColor, controlColor } = getGroupColors(config);
1095
- renderTable({
1096
- div: div.append("div"),
1097
- columns: [
1098
- { label: "Gene" },
1099
- { label: "Length (log\u2081\u2080 bp)", barplot: { axisWidth: 90, colorPositive: "#999", tickCount: 3 } },
1100
- { label: "log\u2082FC", barplot: { axisWidth: 110, colorNegative: controlColor, colorPositive: caseColor } },
1101
- { label: res.topGenes[0]?.adjusted ? "Adjusted p" : "p", align: "right" }
1102
- ],
1103
- rows: res.topGenes.map((g) => [
1104
- { value: g.gene },
1105
- { value: g.len ? Number(Math.log10(g.len).toFixed(2)) : NaN },
1106
- { value: Number(g.fc.toFixed(3)) },
1107
- { value: Number(g.p.toPrecision(2)) }
1108
- ]),
1109
- showLines: true,
1110
- maxHeight: "26vh",
1111
- download: { fileName: "gene-body-loss-genes.tsv" }
1112
- });
1113
- if (res.sigCount > res.topGenes.length)
1114
- div.append("div").style("color", "#777").style("font-size", ".9em").text(`Showing the ${res.topGenes.length} most significant of ${res.sigCount.toLocaleString()}.`);
1115
- }
1116
- div.append("div").style("padding", "10px 0 2px").style("font-weight", "bold").text("By gene length");
1117
- renderTable({
1118
- div: div.append("div"),
1119
- columns: [
1120
- { label: "Gene length" },
1121
- { label: "Genes hit", align: "right" },
1122
- { label: "Matched", align: "right" },
1123
- { label: "Median log\u2082FC, hit", align: "right" },
1124
- { label: "Median log\u2082FC, matched", align: "right" },
1125
- { label: "Difference", align: "right" }
1126
- ],
1127
- rows: res.strata.map((s) => [
1128
- { value: `${bplen(s.lenFrom)} \u2013 ${bplen(s.lenTo)}` },
1129
- { value: s.nHit.toLocaleString() },
1130
- { value: s.nOther.toLocaleString() },
1131
- { value: Number(s.medianHit.toFixed(3)) },
1132
- { value: Number(s.medianOther.toFixed(3)) },
1133
- { value: Number(s.diff.toFixed(3)) }
1134
- ]),
1135
- showLines: true,
1136
- maxHeight: "26vh",
1137
- download: { fileName: "gene-body-loss-expression.tsv" }
1138
- });
1139
- }
1140
-
1141
- // plots/volcano/interactions/dmrGeneLink.ts
1142
- async function dmrGeneLinkPanel(tip, config, vocab, scan, app) {
1143
- const div = tip.d.append("div").style("padding", "10px").style("max-width", "1000px");
1144
- const wait = div.append("div").style("color", "#777").text("Linking DMRs to genes and running differential expression\u2026");
1145
- const de = getDefaultVolcanoSettings({}, { termType: "geneExpression" });
1146
- const state = app.getState();
1147
- let res;
1148
- try {
1149
- res = await dofetch3("termdb/dmrGeneLink", {
1150
- body: {
1151
- genome: vocab.genome,
1152
- dslabel: vocab.dslabel,
1153
- cacheId: scan.cacheId,
1154
- minCpgs: scan.minCpgs,
1155
- /* The cohort the scan compared, expanded and matched server-side. The plot state's list can still
1156
- hold a "Not in" group as {in:false} carrying the included group's values, which DE reads as two
1157
- overlapping groups. */
1158
- samplelst: {
1159
- groups: (scan.matchedSamplelst || config.samplelst).groups.map((g) => ({
1160
- name: g.name,
1161
- in: g.in,
1162
- values: g.values
1163
- }))
1164
- },
1165
- method: de.method,
1166
- min_count: de.minCount,
1167
- min_total_count: de.minTotalCount,
1168
- cpm_cutoff: de.cpmCutoff,
1169
- filter: state.termfilter?.filter,
1170
- filter0: state.termfilter?.filter0
1171
- }
1172
- });
1173
- } catch (e) {
1174
- res = { error: e?.message || String(e) };
1175
- }
1176
- wait.remove();
1177
- if (res.error) return sayerror(div.append("div"), res.error);
1178
- div.append("div").style("font-weight", "bold").text(
1179
- `${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`
1180
- );
1181
- div.append("div").style("color", "#777").style("font-size", ".92em").style("padding", "2px 0 6px").text(
1182
- `Promoter = within ${bplen(
1183
- 2e3
1184
- )} 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).`
1185
- );
1186
- const summary = table2col({ holder: div.append("div") });
1187
- for (const context of ["promoter", "body"]) {
1188
- const s = res.summary[context] || {};
1189
- const [td1, td2] = summary.addRow();
1190
- td1.text(context == "promoter" ? "Promoter DMRs" : "Gene-body DMRs");
1191
- td2.text(
1192
- ["concordant", "discordant", "no expression change", "not tested"].map((k) => `${k}: ${(s[k] || 0).toLocaleString()}`).join(" \xB7 ")
1193
- );
1194
- }
1195
- const rows = res.rows;
1196
- const litDiv = div.append("div");
1197
- const recordOf = /* @__PURE__ */ new Map();
1198
- const tableRows = rows.map((r) => {
1199
- const cells = [
1200
- { value: r.gene },
1201
- { value: r.context },
1202
- { value: `${r.dmr.chr}:${r.dmr.start}-${r.dmr.stop}` },
1203
- { value: Number(r.dmr.deltaBeta.toFixed(3)) },
1204
- { value: r.dmr.cpgs },
1205
- { value: r.nDmrs },
1206
- { value: r.fc == null ? "" : Number(r.fc.toFixed(3)) },
1207
- { value: r.p == null ? "" : Number(r.p.toPrecision(2)) },
1208
- { value: r.relationship }
1209
- ];
1210
- recordOf.set(cells, r);
1211
- return cells;
1212
- });
1213
- renderTable({
1214
- div: div.append("div"),
1215
- columns: [
1216
- { label: "Gene" },
1217
- { label: "Context" },
1218
- { label: "Strongest DMR" },
1219
- { label: "\u0394\u03B2", sortable: true },
1220
- { label: "CpGs", sortable: true },
1221
- { label: "DMRs", sortable: true },
1222
- { label: "Expression log\u2082FC", sortable: true },
1223
- { label: "Expression p", sortable: true },
1224
- { label: "Relationship" }
1225
- ],
1226
- rows: tableRows,
1227
- showLines: true,
1228
- maxHeight: "40vh",
1229
- header: { allowSort: true },
1230
- noRadioBtn: true,
1231
- download: { fileName: "dmr-gene-links.tsv" },
1232
- // a click asks PubMed about that row's gene in that row's context
1233
- noButtonCallback: (i) => showLiterature(litDiv, vocab, recordOf.get(tableRows[i]), disease)
1234
- });
1235
- if (rows.length < res.links)
1236
- div.append("div").style("color", "#777").style("font-size", ".9em").text(`Showing the first ${rows.length.toLocaleString()} of ${res.links.toLocaleString()} links.`);
1237
- const hint = litDiv.append("div").style("color", "#777").style("padding", "6px 0");
1238
- hint.append("span").text("Click a row for PubMed articles on that gene and mechanism, optionally within a disease: ");
1239
- const disease = hint.append("input").attr("type", "text").attr("placeholder", "e.g. myeloma").style("width", "120px");
1240
- }
1241
- async function showLiterature(holder, vocab, r, disease) {
1242
- holder.selectAll(".sjpp-dmr-lit").remove();
1243
- const out = holder.append("div").attr("class", "sjpp-dmr-lit");
1244
- const head = out.append("div").style("padding", "8px 0 2px").style("font-weight", "bold");
1245
- const d = String(disease?.property("value") || "").trim();
1246
- const within = d ? ` in ${d}` : "";
1247
- head.text(`PubMed: ${r.gene}, ${r.context} methylation and expression${within}\u2026`);
1248
- const res = await dofetch3("termdb/dmrLiterature", {
1249
- body: { genome: vocab.genome, dslabel: vocab.dslabel, gene: r.gene, context: r.context, disease: d }
1250
- }).catch((e) => ({ error: e?.message || String(e) }));
1251
- holder = out;
1252
- if (res.error) return sayerror(holder.append("div"), res.error);
1253
- head.text(
1254
- `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})`
1255
- );
1256
- if (!res.articles.length) {
1257
- holder.append("div").style("color", "#777").text("No articles match. The link may be unreported rather than unsupported.");
1258
- return;
1259
- }
1260
- const ul = holder.append("ul").style("margin", "2px 0");
1261
- for (const a of res.articles) {
1262
- const li = ul.append("li");
1263
- li.append("span").text(`${a.title} ${a.journal} ${a.year}. `);
1264
- 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}`);
1265
- }
1266
- }
1267
-
1268
- // plots/volcano/view/VolcanoPlotView.ts
1269
- var VolcanoPlotView = class {
1270
- constructor(dom, interactions, termType) {
1271
- this.linked = [];
1272
- this.dom = dom;
1273
- this.interactions = interactions;
1274
- this.termType = termType;
1275
- const actions = this.dom.holder.append("div").attr("id", "sjpp-volcano-actions").style("display", "block").style("z-index", 1).style("position", "relative");
1276
- this.row = this.dom.holder.append("div").attr("id", "sjpp-volcano-row").style("display", "flex").style("align-items", "flex-start");
1277
- const svg = this.row.append("svg").style("display", "inline-block").attr("id", "sjpp-volcano-svg").style("vertical-align", "top");
1278
- this.volcanoDom = {
1279
- actions,
1280
- svg,
1281
- pValueTable: void 0,
1282
- top: void 0,
1283
- xAxis: void 0,
1284
- xAxisLabel: void 0,
1285
- yAxis: void 0,
1286
- yAxisLabel: void 0,
1287
- plot: void 0
1288
- };
1289
- }
1290
- render(settings, viewData) {
1291
- this.settings = settings;
1292
- this.viewData = viewData;
1293
- this.linked = [];
1294
- const plotDim = this.viewData.plotDim;
1295
- this.initDom();
1296
- this.renderUserActions();
1297
- this.renderPlot(plotDim);
1298
- renderDataPoints(this);
1299
- this.renderFoldChangeLine(plotDim);
1300
- this.attachInteractions(plotDim);
1301
- if (this.settings.showPValueTable) this.renderPValueTable();
1302
- if (this.viewData.scan?.manhattan) this.renderScanManhattan();
1303
- }
1304
- initDom() {
1305
- this.volcanoDom.actions.selectAll("*").remove();
1306
- this.volcanoDom.svg.selectAll("*").remove();
1307
- const svg = this.volcanoDom.svg;
1308
- this.volcanoDom.top = svg.append("g").attr("id", "sjpp-volcano-top");
1309
- this.volcanoDom.xAxis = svg.append("g").attr("id", "sjpp-volcano-xAxis");
1310
- this.volcanoDom.yAxis = svg.append("g").attr("id", "sjpp-volcano-yAxis");
1311
- this.volcanoDom.xAxisLabel = svg.append("text").attr("id", "sjpp-volcano-xAxisLabel").attr("text-anchor", "middle");
1312
- this.volcanoDom.yAxisLabel = svg.append("text").attr("id", "sjpp-volcano-yAxisLabel").attr("text-anchor", "middle");
1313
- this.volcanoDom.plot = svg.append("g").attr("id", "sjpp-volcano-plot");
1314
- this.dom.holder.select("#sjpp-volcano-pValueTable").remove();
1315
- this.dom.holder.select("#sjpp-volcano-scanManhattan").remove();
1316
- if (!this.settings.showPValueTable) return;
1317
- 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");
1318
- }
1319
- renderUserActions() {
1320
- this.dom.actionsTip.d.style("overflow", "hidden");
1321
- this.volcanoDom.actions.style("margin-left", "20px").style("padding", "5px");
1322
- this.addActionButton(
1323
- "Confounding factors",
1324
- [DATermTypes.GENE_EXPRESSION, DATermTypes.DNA_METHYLATION],
1325
- () => this.interactions.confoundersMenu()
1326
- );
1327
- this.addActionButton(
1328
- "Highlight genes",
1329
- [DATermTypes.GENE_EXPRESSION, DATermTypes.SINGLECELL_CELLTYPE, DATermTypes.DNA_METHYLATION],
1330
- () => this.interactions.launchGeneSetEdit()
1331
- );
1332
- this.addActionButton(
1333
- "Statistics",
1334
- [DATermTypes.GENE_EXPRESSION, DATermTypes.SINGLECELL_CELLTYPE, DATermTypes.DNA_METHYLATION],
1335
- () => {
1336
- this.renderStatsMenu();
1337
- },
1338
- { whenOpen: "Hide statistics" }
1339
- );
1340
- const gb = this.viewData.scan?.geneBodyLoss;
1341
- if (gb?.genes.length) {
1342
- this.addActionButton(
1343
- `Expression of ${gb.genes.length.toLocaleString()} gene-body loss genes`,
1344
- [DATermTypes.DNA_METHYLATION],
1345
- () => geneBodyLossTest(
1346
- this.dom.actionsTip,
1347
- this.interactions.app.getState().plots.find((p) => p.id == this.interactions.id),
1348
- this.interactions.app.vocabApi.vocab,
1349
- this.viewData.scan,
1350
- this.interactions.app
1351
- )
1352
- );
1353
- }
1354
- if (this.viewData.scan?.cacheId) {
1355
- this.addActionButton(
1356
- "Genes, expression and literature",
1357
- [DATermTypes.DNA_METHYLATION],
1358
- () => dmrGeneLinkPanel(
1359
- this.dom.actionsTip,
1360
- this.interactions.app.getState().plots.find((p) => p.id == this.interactions.id),
1361
- this.interactions.app.vocabApi.vocab,
1362
- this.viewData.scan,
1363
- this.interactions.app
1364
- )
1365
- );
1366
- }
1367
- const dmNoun = elementNoun(this.settings?.elementType);
1368
- const SIG_PREFIX = "Number of significant ";
1369
- const sigRow = this.viewData.statsData.find((d) => d.label.startsWith(SIG_PREFIX));
1370
- const numSigGenes = Number(sigRow?.value ?? 0);
1371
- if (numSigGenes) {
1372
- const n = numSigGenes.toLocaleString();
1373
- const isDM = this.termType == DATermTypes.DNA_METHYLATION;
1374
- const up = this.viewData.numSignificantUp;
1375
- const down = this.viewData.numSignificantDown;
1376
- const split = up + down > 0 ? ` (${up.toLocaleString()} ${isDM ? "hyper" : "up"} / ${down.toLocaleString()} ${isDM ? "hypo" : "down"})` : "";
1377
- const off = this.viewData.xOffset;
1378
- const centered = this.viewData.centered ? `, centered on median \u0394\u03B2 ${off > 0 ? "+" : ""}${off.toFixed(3)}` : "";
1379
- 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)}`;
1380
- const sigText = `${n} ${noun}` + split + centered + ":";
1381
- this.volcanoDom.actions.append("span").text(sigText).style("margin-left", "10px").style("font-weight", "bold");
1382
- const pValueTableButtonText = this.settings.showPValueTable ? "Hide p-value table" : "Show p-value table";
1383
- this.addActionButton(
1384
- pValueTableButtonText,
1385
- [DATermTypes.GENE_EXPRESSION, DATermTypes.SINGLECELL_CELLTYPE, DATermTypes.DNA_METHYLATION],
1386
- async () => {
1387
- const showTable = !this.settings.showPValueTable;
1388
- await this.interactions.app.dispatch({
1389
- type: "plot_edit",
1390
- id: this.interactions.id,
1391
- config: { settings: { volcano: { showPValueTable: showTable } } }
1392
- });
1393
- }
1394
- );
1395
- }
1396
- if (numSigGenes && numSigGenes >= 3) {
1397
- this.addActionButton(
1398
- `Hierarchical clustering of ${numSigGenes > 100 ? "top 100" : numSigGenes} DE genes`,
1399
- [DATermTypes.GENE_EXPRESSION],
1400
- async () => {
1401
- await this.interactions.launchDEGClustering();
1402
- }
1403
- );
1404
- }
1405
- }
1406
- /** Use the termTypes arr to render the buttons in a consistent order.
1407
- *
1408
- * Pass `opts.whenOpen` to make the button a toggle: clicking once opens
1409
- * the actionsTip with the callback's content and swaps the button text
1410
- * to `whenOpen` ("Hide statistics", etc.); clicking again hides the tip
1411
- * and restores the original text. The text also restores when the tip
1412
- * closes via Esc or outside-click (Menu.onHide hook), and when another
1413
- * action button hijacks the tip (the loop below resets all toggles
1414
- * before showing the new content). */
1415
- addActionButton(text, termTypes, callback, opts) {
1416
- if (this.viewData.userActions.noShow.has(text)) return;
1417
- if (!termTypes.includes(this.termType)) return;
1418
- const button = this.volcanoDom.actions.append("button").attr("class", "sja_menuoption").style("margin", "3px").style("padding", "3px").text(text).on("click", async () => {
1419
- const whenOpen = opts?.whenOpen;
1420
- if (whenOpen && button.text() === whenOpen) {
1421
- this.dom.actionsTip.hide();
1422
- return;
1423
- }
1424
- this.volcanoDom.actions.selectAll('button[data-volcano-toggle-open="1"]').each(function() {
1425
- const b = select_default(this);
1426
- const closed = b.attr("data-volcano-toggle-closed");
1427
- if (closed) b.text(closed).attr("data-volcano-toggle-open", null);
1428
- this.parent_menu = void 0;
1429
- const eh = this.__volcanoEscHandler;
1430
- if (eh) {
1431
- document.removeEventListener("keydown", eh);
1432
- this.__volcanoEscHandler = void 0;
1433
- }
1434
- });
1435
- this.dom.actionsTip.clear().showunder(button.node());
1436
- if (whenOpen) {
1437
- button.text(whenOpen).attr("data-volcano-toggle-open", "1").attr("data-volcano-toggle-closed", text);
1438
- button.node().parent_menu = this.dom.actionsTip.dnode;
1439
- const escHandler = (e) => {
1440
- if (e.key === "Escape") this.dom.actionsTip.hide();
1441
- };
1442
- document.addEventListener("keydown", escHandler);
1443
- button.node().__volcanoEscHandler = escHandler;
1444
- this.dom.actionsTip.onHide = () => {
1445
- button.text(text).attr("data-volcano-toggle-open", null);
1446
- button.node().parent_menu = void 0;
1447
- document.removeEventListener("keydown", escHandler);
1448
- button.node().__volcanoEscHandler = void 0;
1449
- };
1450
- } else {
1451
- this.dom.actionsTip.onHide = void 0;
1452
- }
1453
- await callback();
1454
- });
1455
- }
1456
- renderPlot(plotDim) {
1457
- this.volcanoDom.svg.attr("width", plotDim.svg.width).attr("height", plotDim.svg.height);
1458
- this.renderTermInfo(plotDim);
1459
- this.volcanoDom.yAxisLabel.attr(
1460
- "transform",
1461
- `translate(${plotDim.yAxisLabel.x}, ${plotDim.yAxisLabel.y}) rotate(-90)`
1462
- );
1463
- this.setSvgSubscriptLabel(this.volcanoDom.yAxisLabel, "-log", "10", `(${this.viewData.pValueLabel})`);
1464
- this.volcanoDom.xAxisLabel.attr("transform", `translate(${plotDim.xAxisLabel.x}, ${plotDim.xAxisLabel.y})`);
1465
- if (this.termType === DATermTypes.DNA_METHYLATION && this.settings.xAxis === "delta_beta") {
1466
- this.volcanoDom.xAxisLabel.selectAll("*").remove();
1467
- this.volcanoDom.xAxisLabel.text(this.viewData.deltaBetaAxisLabel || "\u0394\u03B2 (case \u2212 control)");
1468
- } else {
1469
- this.volcanoDom.xAxisLabel.text(null);
1470
- this.setSvgSubscriptLabel(this.volcanoDom.xAxisLabel, "log", "2", "(fold-change)");
1471
- }
1472
- this.renderScale(plotDim.xScale);
1473
- this.renderScale(plotDim.yScale, true);
1474
- if (this.viewData.volcanoPng) {
1475
- 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");
1476
- }
1477
- }
1478
- renderTermInfo(plotDim) {
1479
- if (this.viewData.termInfo == void 0) return;
1480
- this.volcanoDom.top.attr("transform", `translate(${plotDim.top.x}, ${plotDim.top.y})`);
1481
- const y = this.viewData.termInfo.y;
1482
- const addLabel = (term) => {
1483
- return this.volcanoDom.top.append("text").attr("font-size", "0.9em").attr("transform", `translate(${term.x}, ${y + 10})`).text(term.label);
1484
- };
1485
- const firstTerm = this.viewData.termInfo.first;
1486
- addLabel(firstTerm);
1487
- const secondTerm = this.viewData.termInfo.second;
1488
- const secondLabel = addLabel(secondTerm);
1489
- secondLabel.attr("text-anchor", "end");
1490
- }
1491
- renderScale(scale, isLeft = false) {
1492
- const scaleG = this.volcanoDom[isLeft ? "yAxis" : "xAxis"].append("g").attr("transform", `translate(${scale.x}, ${scale.y})`).call(isLeft ? axisLeft(scale.scale) : axisBottom(scale.scale));
1493
- axisstyle({
1494
- axis: scaleG,
1495
- color: "black",
1496
- showline: true
1497
- });
1498
- }
1499
- renderFoldChangeLine(plotDim) {
1500
- 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);
1501
- }
1502
- renderStatsMenu() {
1503
- for (const img of this.viewData.images || []) {
1504
- 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);
1505
- }
1506
- 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");
1507
- const table = table2col({ holder: tableHolder });
1508
- for (const d of this.viewData.statsData) {
1509
- const [td1, td2] = table.addRow();
1510
- td1.text(d.label);
1511
- td2.style("text-align", "end").text(Number.isInteger(d.value) ? d.value.toLocaleString() : d.value);
1512
- }
1513
- }
1514
- /* Where the DMRs are, along the whole genome: every kept DMR in the server's PNG, hyper above
1515
- the line and hypo below, height = evidence; the most significant thousand are live. A dot is
1516
- the same DMR the volcano shows, so hover and click give the volcano's own rows and actions --
1517
- the violin of that region and the region view, a genome browser with the called DMRs, the
1518
- per-CpG group means and the genes. Same lifecycle as the p-value table: redrawn from each
1519
- response, never left stale. */
1520
- /** What the scan covered, for the figure titles: the chromosome when that is all of it, and "the
1521
- * genome" otherwise. A one-chromosome scan describing itself as genome-wide overstates every
1522
- * number under it, which is what a dev host holding a subset of CpG shards produces. */
1523
- scanSpan() {
1524
- const chrs = this.viewData.scan?.chromosomes || [];
1525
- return chrs.length == 1 ? chrs[0] : "the genome";
1526
- }
1527
- renderScanManhattan() {
1528
- const { manhattan } = this.viewData.scan;
1529
- 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");
1530
- const asRow = (d) => ({
1531
- promoter_id: `${d.chrom}:${d.start}-${d.stop}`,
1532
- gene_name: d.gene_name,
1533
- chr: d.chrom,
1534
- start: d.start,
1535
- stop: d.stop,
1536
- delta_beta: d.delta_beta,
1537
- fold_change: d.fold_change,
1538
- original_p_value: d.p,
1539
- adjusted_p_value: d.p,
1540
- no_cpgs: d.no_cpgs,
1541
- excess: d.excess
1542
- });
1543
- const g2 = this.viewData.scan.matchedSamplelst?.groups?.[1]?.name || "case group";
1544
- const link = {
1545
- points: [],
1546
- highlight: () => {
1547
- },
1548
- region: (d) => ({ chr: d.chrom, start: d.start, stop: d.stop })
1549
- };
1550
- const handle = plotManhattan(
1551
- div,
1552
- { png: manhattan.png, plotData: manhattan.plotData },
1553
- {
1554
- ...manhattanLayoutDefaults,
1555
- plotWidth: manhattan.plotWidth,
1556
- plotHeight: manhattan.plotHeight,
1557
- // the server already picked N per direction; the client must not re-cap by |y|
1558
- interactiveDotsCap: manhattan.plotData.points.length,
1559
- maxTooltipGenes: this.settings.maxTooltipGenes,
1560
- legendItemWidth: 130
1561
- },
1562
- void 0,
1563
- {
1564
- // names the chromosome when that is all the scan covered, rather than "the genome"
1565
- title: `DMRs along ${this.scanSpan()}, direction in ${g2} (top ${manhattan.interactive.toLocaleString()} per direction interactive)`,
1566
- // short, because it runs down a 300 px axis: the legend and title say what the sign means
1567
- yAxisLabel: `\xB1log\u2081\u2080(${this.viewData.pValueLabel.replace("smoothed ", "")})`,
1568
- legend: [
1569
- { label: "Hypermethylated", color: HYPER_COLOR, hollow: true },
1570
- { label: "Hypomethylated", color: HYPO_COLOR, hollow: true }
1571
- ],
1572
- itemNoun: "DMR",
1573
- renderSingleHoverTooltip: (d, container) => {
1574
- const table = table2col({ holder: container.append("table") });
1575
- this.addTooltipRows(asRow(d), table);
1576
- if (d.no_cpgs != null) addTooltipRow(table, "CpGs", d.no_cpgs);
1577
- },
1578
- buildMultiHitTableData: (dots) => this.buildMultiHitTable(dots.map(asRow)),
1579
- getActions: (d) => this.getActionMenuOpts(asRow(d)),
1580
- getRowKey: (d) => `${d.chrom}:${d.start}-${d.stop}`,
1581
- onHover: (dots) => this.mirrorHover(link, dots)
1582
- }
1583
- );
1584
- this.linked.push(Object.assign(link, handle));
1585
- this.renderMethylationProfile(this.viewData.scan.matchedSamplelst?.groups?.[0]?.name || "control group", g2);
1586
- }
1587
- /* The genome-wide methylation profile, under the DMR plot: mean beta per group in 100 kb bins,
1588
- drawn as the per-bin difference. The DMR plot above shows the regions that passed a threshold;
1589
- this shows every bin that was measured, which is what says whether the methylome shifted a
1590
- little everywhere or a lot in a few places.
1591
-
1592
- Same component and the same hover/click layer as the DMR plot, on the bins that moved most in
1593
- each direction: 29,000 dots in a band cannot be read by eye, so a dot has to be able to say
1594
- which 100 kb it is, what each group's mean beta there was, and how many CpGs that rests on.
1595
- Clicking opens the browser on the bin -- the question a standout bin raises is which of the
1596
- scan's DMRs are inside it, and that is the view that answers it. */
1597
- renderMethylationProfile(controlName, caseName) {
1598
- const profile = this.viewData.scan?.profile;
1599
- if (!profile) return;
1600
- const div = this.dom.holder.select("#sjpp-volcano-scanManhattan").append("div").attr("data-testid", "sjpp-volcano-methylationProfile").style("display", "block").style("margin-top", "-70px");
1601
- const region = (d) => ({ chr: d.chrom, start: d.pos, stop: d.pos + profile.binBp });
1602
- const label = (d) => `${d.chrom}:${(d.pos + 1).toLocaleString()}-${(d.pos + profile.binBp).toLocaleString()}`;
1603
- const link = { points: [], highlight: () => {
1604
- }, region };
1605
- const handle = plotManhattan(
1606
- div,
1607
- { png: profile.png, plotData: profile.plotData },
1608
- {
1609
- ...manhattanLayoutDefaults,
1610
- plotWidth: profile.plotWidth,
1611
- plotHeight: profile.plotHeight,
1612
- /* The radius the PNG was drawn at, not the shared default of 2: the hover layer is
1613
- placed in the PNG's own pixel space, and a 1 px mismatch in the padding stretches
1614
- the image against the dot coordinates the server computed. */
1615
- pngDotRadius: profile.dotRadius,
1616
- // the server already picked N per direction; the client must not re-cap by |y|
1617
- interactiveDotsCap: profile.plotData.points.length,
1618
- /* More rows than the volcano's 5. At 100 kb there are ~29,000 bins over 1,000 px, so
1619
- a cursor covers a median of 7 live bins on MMRF however tight the hit radius -- the
1620
- dots genuinely overlap at this scale. 8 shows the whole neighbourhood on a typical
1621
- hover instead of 5 of it. */
1622
- maxTooltipGenes: 8,
1623
- showLegend: false,
1624
- showDownload: false
1625
- },
1626
- void 0,
1627
- {
1628
- /* The width drawn, not the width requested: the server reports back what it binned at,
1629
- and a reader quoting the figure needs the two to agree. The interactive count is the
1630
- live dot count rather than the per-direction rule, because at a coarse width the rule
1631
- reaches every bin and "top 1,000 per direction" would read as a restriction. */
1632
- 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)`,
1633
- yAxisLabel: "\u0394\u03B2 per bin",
1634
- itemNoun: "bin",
1635
- renderSingleHoverTooltip: (d, container) => {
1636
- const table = table2col({ holder: container.append("table") });
1637
- addTooltipRow(table, "Region", label(d));
1638
- addTooltipRow(table, "\u0394\u03B2", roundValueAuto(d.y));
1639
- addTooltipRow(table, `Mean \u03B2, ${controlName}`, roundValueAuto(d.control));
1640
- addTooltipRow(table, `Mean \u03B2, ${caseName}`, roundValueAuto(d.case));
1641
- addTooltipRow(table, "CpGs measured", d.n_probes.toLocaleString());
1642
- },
1643
- buildMultiHitTableData: (dots) => ({
1644
- columns: [{ label: "Region" }, { label: "\u0394\u03B2", sortable: true }, { label: "CpGs", sortable: true }],
1645
- rows: dots.map((d) => [{ value: label(d) }, { value: roundValueAuto(d.y) }, { value: d.n_probes }])
1646
- }),
1647
- getActions: (d) => [
1648
- {
1649
- label: "Genome browser",
1650
- onClick: async () => await this.interactions.launchScanGenomeBrowser(region(d), this.viewData.scan)
1651
- }
1652
- ],
1653
- getRowKey: (d) => label(d),
1654
- onHover: (dots) => this.mirrorHover(link, dots)
1655
- }
1656
- );
1657
- this.linked.push(Object.assign(link, handle));
1658
- }
1659
- /* Ring, on every other figure, the live dots overlapping what the cursor is on. Only live dots can
1660
- be ringed -- the rest are pixels in a PNG -- so a hovered DMR outside another figure's interactive
1661
- top N has nothing to light up there. */
1662
- mirrorHover(src, dots) {
1663
- const hovered = dots.map(src.region);
1664
- for (const p of this.linked) {
1665
- if (p === src) continue;
1666
- p.highlight(
1667
- hovered.length ? p.points.filter((d) => {
1668
- const r = p.region(d);
1669
- return hovered.some((h) => h.chr == r.chr && h.start < r.stop && r.start < h.stop);
1670
- }) : []
1671
- );
1672
- }
1673
- }
1674
- renderPValueTable() {
1675
- if (!this.settings.showPValueTable) return;
1676
- const maxTableRows = 5e3;
1677
- const allRows = this.viewData.pValueTableData.rows;
1678
- const rows = allRows.length > maxTableRows ? allRows.slice(0, maxTableRows) : allRows;
1679
- if (allRows.length > maxTableRows) {
1680
- this.volcanoDom.pValueTable.append("div").style("padding", "5px 10px").style("font-size", ".8em").style("color", "#666").text(
1681
- `Showing top ${maxTableRows.toLocaleString()} of ${allRows.length.toLocaleString()} significant results (sorted by fold-change)`
1682
- );
1683
- }
1684
- renderTable({
1685
- columns: this.viewData.pValueTableData.columns,
1686
- rows,
1687
- div: this.volcanoDom.pValueTable,
1688
- showLines: true,
1689
- maxHeight: `${this.viewData.pValueTableData.height}px`,
1690
- resize: true,
1691
- header: { allowSort: true },
1692
- noRadioBtn: true,
1693
- noButtonCallback: (i) => {
1694
- const key = this.viewData.pValueTableData.rowKeys.get(rows[i]);
1695
- if (!key) return;
1696
- this.interactions.highlightDataPoint(key);
1697
- },
1698
- hoverEffects: (tr, row) => {
1699
- const circles = this.volcanoDom.plot.selectAll("circle").nodes();
1700
- const key = this.viewData.pValueTableData.rowKeys.get(row);
1701
- const dataKey = this.termType === DATermTypes.DNA_METHYLATION ? "promoter_id" : "gene_name";
1702
- const circle = circles.find((d) => d.__data__[dataKey] == key);
1703
- if (!circle || circle.__data__.highlighted) return;
1704
- let clone;
1705
- tr.on("mouseover", () => {
1706
- if (circle.__data__.highlighted || clone) return;
1707
- clone = this.volcanoDom.plot.node()?.appendChild(circle.cloneNode(true));
1708
- clone.setAttribute("fill-opacity", 0.9);
1709
- });
1710
- tr.on("mouseleave", () => {
1711
- if (!clone) return;
1712
- clone.remove();
1713
- clone = null;
1714
- });
1715
- this.volcanoDom.pValueTable.on("mouseover", () => {
1716
- selectAll_default(circles).attr("stroke-opacity", 0.075);
1717
- });
1718
- this.volcanoDom.pValueTable.on("mouseleave", () => {
1719
- selectAll_default(circles).attr("stroke-opacity", (d) => d.significant ? 0.35 : 0.2);
1720
- });
1721
- }
1722
- });
1723
- }
1724
- setSvgSubscriptLabel(textElem, prefix, subscript, suffix) {
1725
- textElem.text(null);
1726
- textElem.append("tspan").text(prefix);
1727
- textElem.append("tspan").attr("baseline-shift", "sub").attr("font-size", "0.7em").text(subscript);
1728
- textElem.append("tspan").text(suffix);
1729
- }
1730
- attachInteractions(plotDim) {
1731
- const points = this.viewData.pointData;
1732
- if (!points || points.length === 0) return;
1733
- const dotRadiusPx = this.viewData.plotExtent.dotRadiusPx;
1734
- const hitRadius = dotRadiusPx + 3;
1735
- const highlightRadius = Math.max(0.5, dotRadiusPx - 0.5);
1736
- const highlightColor = this.settings.defaultHighlightColor;
1737
- const hoverLayer = this.volcanoDom.plot.append("g").attr("id", "sjpp-volcano-hover").style("pointer-events", "none");
1738
- 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");
1739
- const circlePath = (r) => `M${r},0 A${r},${r} 0 1,1 ${-r},0 A${r},${r} 0 1,1 ${r},0 Z`;
1740
- const link = this.viewData.scan ? {
1741
- points,
1742
- region: (d) => ({ chr: d.chr, start: d.start, stop: d.stop }),
1743
- highlight: (dots) => {
1744
- drawHoverShapes(
1745
- linkedLayer,
1746
- dots.map((d) => ({
1747
- path: circlePath(dotRadiusPx + 2),
1748
- transform: `translate(${d.x},${d.y})`,
1749
- stroke: "black",
1750
- strokeWidth: 2
1751
- }))
1752
- );
1753
- }
1754
- } : void 0;
1755
- const linkedLayer = this.volcanoDom.plot.append("g").style("pointer-events", "none");
1756
- if (link) this.linked.push(link);
1757
- new DataPointInteractions({
1758
- cover,
1759
- hoverLayer,
1760
- hoverTip: this.dom.tip,
1761
- points,
1762
- // Quadtree in cover-local space — d.x/d.y are SVG-absolute, so subtract
1763
- // the plot rect's origin once when building the tree.
1764
- getX: (d) => d.x - plotDim.plot.x,
1765
- getY: (d) => d.y - plotDim.plot.y,
1766
- hitRadius,
1767
- toHoverSpec: (d) => ({
1768
- path: circlePath(highlightRadius),
1769
- // Hover layer lives in the same coord space as the dots (SVG-absolute),
1770
- // so translate by d.x/d.y — NOT the cover-local pair.
1771
- transform: `translate(${d.x},${d.y})`,
1772
- fill: highlightColor,
1773
- fillOpacity: 0.9,
1774
- stroke: "none"
1775
- }),
1776
- maxTooltipRows: this.settings.maxTooltipGenes,
1777
- ...link ? { onHover: (dots) => this.mirrorHover(link, dots) } : {},
1778
- itemNoun: "gene",
1779
- renderSingleHoverTooltip: (d, container) => {
1780
- const table = table2col({ holder: container.append("table") });
1781
- this.addTooltipRows(d, table);
1782
- },
1783
- buildMultiHitTableData: (dots) => this.buildMultiHitTable(dots),
1784
- getActions: (d) => this.getActionMenuOpts(d),
1785
- renderSingleHitInfo: (d, container) => {
1786
- const tbl = table2col({ holder: container.append("table") });
1787
- this.addTooltipRows(d, tbl);
1788
- },
1789
- getRowKey: (d) => d.gene_name
1790
- }).attach();
1791
- }
1792
- /** Whether the effect size on show is delta-beta rather than log2 fold-change. Methylation
1793
- * fold-change is a difference of logits: it ranks elements correctly but says nothing about
1794
- * how much methylation moved, so it must not be what a reader is handed next to a delta-beta
1795
- * axis. Read by both hover paths -- the single-point tooltip and the multi-point table -- so
1796
- * the two cannot disagree about which number they show. */
1797
- get onDeltaBeta() {
1798
- return this.termType === DATermTypes.DNA_METHYLATION && this.settings.xAxis === "delta_beta";
1799
- }
1800
- buildMultiHitTable(dots) {
1801
- const isDM = this.termType === DATermTypes.DNA_METHYLATION;
1802
- const isDAP = this.termType === DATermTypes.PROTEOME_DAP;
1803
- const effectLabel = this.onDeltaBeta ? "\u0394\u03B2" : "log\u2082(FC)";
1804
- const pValueType = this.settings.pValueType;
1805
- const { pValueLabel, singlePValue } = this.viewData;
1806
- const pLabel = pValueLabel.charAt(0).toUpperCase() + pValueLabel.slice(1);
1807
- const pField = singlePValue ? "original_p_value" : `${pValueType}_p_value`;
1808
- const columns = isDM ? [
1809
- { label: elementNoun(this.settings?.elementType).one },
1810
- { label: "Gene(s)" },
1811
- { label: effectLabel, sortable: true },
1812
- { label: pLabel, sortable: true }
1813
- ] : isDAP ? [
1814
- { label: "Identifier" },
1815
- { label: "Gene" },
1816
- { label: effectLabel, sortable: true },
1817
- { label: pLabel, sortable: true }
1818
- ] : [{ label: "Gene" }, { label: effectLabel, sortable: true }, { label: pLabel, sortable: true }];
1819
- const rows = dots.map((d) => {
1820
- const fc = { value: roundValueAuto(this.onDeltaBeta ? d.delta_beta : d.fold_change) };
1821
- const pval = { value: roundValueAuto(d[pField]) };
1822
- if (isDM) {
1823
- return [{ value: formatPromoterLabel(d) }, { value: d.gene_name || "" }, fc, pval];
1824
- }
1825
- if (isDAP) {
1826
- return [{ value: d.gene_name || "" }, { value: d.gene || "" }, fc, pval];
1827
- }
1828
- return [{ value: d.gene_name || "" }, fc, pval];
1829
- });
1830
- return { columns, rows };
1831
- }
1832
- /** Per-data-point action menu items (Violin / DMR / Box-plot). Used by
1833
- * both the single-gene click flow and the multi-gene click-menu rows so
1834
- * the launchers stay in lock-step. */
1835
- getActionMenuOpts(d) {
1836
- const termType = this.termType;
1837
- const interactions = this.interactions;
1838
- const all = [
1839
- {
1840
- label: "Violin plot",
1841
- isVisible: () => termType === DATermTypes.DNA_METHYLATION || termType === DATermTypes.GENE_EXPRESSION,
1842
- onClick: async () => {
1843
- if (termType === DATermTypes.DNA_METHYLATION) interactions.launchDNAMethViolin(d);
1844
- if (termType === DATermTypes.GENE_EXPRESSION) interactions.launchViolinGeneExp(d.gene_name);
1845
- }
1846
- },
1847
- {
1848
- /* A scan has already called every DMR: the browser shows them from the cache, beside
1849
- the genes and cCREs, where the region view would re-fit the chromosome to draw the same
1850
- track. The region view stays for the element classes, whose hits are not yet DMRs. */
1851
- label: "Genome browser",
1852
- isVisible: () => termType === DATermTypes.DNA_METHYLATION && !!this.viewData.scan,
1853
- onClick: async () => {
1854
- const dm = d;
1855
- await interactions.launchScanGenomeBrowser(dm, this.viewData.scan);
1856
- }
1857
- },
1858
- {
1859
- label: "DMR analysis",
1860
- isVisible: () => termType === DATermTypes.DNA_METHYLATION && !this.viewData.scan,
1861
- onClick: async () => {
1862
- const dm = d;
1863
- await interactions.launchDmr({
1864
- chr: dm.chr,
1865
- start: dm.start,
1866
- stop: dm.stop,
1867
- promoterId: dm.promoter_id
1868
- });
1869
- }
1870
- },
1871
- {
1872
- label: "Box plot",
1873
- isVisible: () => termType === DATermTypes.GENE_EXPRESSION,
1874
- onClick: async () => {
1875
- interactions.launchBoxPlot(d.gene_name);
1876
- }
1877
- }
1878
- ];
1879
- return all.filter((o) => o.isVisible()).map(({ label, onClick }) => ({ label, onClick }));
1880
- }
1881
- /** Populates a `table2col` instance with the standard volcano hover rows
1882
- * (gene/promoter, fold-change, original + adjusted p-values). */
1883
- addTooltipRows(d, table) {
1884
- if (this.termType === DATermTypes.DNA_METHYLATION) {
1885
- if ("promoter_id" in d)
1886
- addTooltipRow(table, elementNoun(this.settings?.elementType).one, formatPromoterLabel(d));
1887
- if (d.gene_name) addTooltipRow(table, "Gene(s)", d.gene_name);
1888
- } else if (this.termType === DATermTypes.PROTEOME_DAP) {
1889
- addTooltipRow(table, "Identifier", d.gene_name);
1890
- if ("gene" in d) addTooltipRow(table, "Gene", d.gene);
1891
- } else {
1892
- addTooltipRow(table, "Gene name", d.gene_name);
1893
- }
1894
- if (this.onDeltaBeta) {
1895
- addTooltipRow(table, "\u0394\u03B2", roundValueAuto(d.delta_beta));
1896
- } else {
1897
- addTooltipRow(table, "log<sub>2</sub>(fold-change)", roundValueAuto(d.fold_change));
1898
- }
1899
- if (this.viewData.singlePValue) {
1900
- addTooltipRow(table, this.viewData.pValueLabel, roundValueAuto(d.original_p_value));
1901
- } else {
1902
- addTooltipRow(table, "Original p-value", roundValueAuto(d.original_p_value));
1903
- if (d.adjusted_p_value != void 0) addTooltipRow(table, "Adjusted p-value", roundValueAuto(d.adjusted_p_value));
1904
- }
1905
- }
1906
- };
1907
- function addTooltipRow(table, text, value) {
1908
- const [td1, td2] = table.addRow();
1909
- td1.html(text);
1910
- td2.text(value);
1911
- }
1912
- function renderDataPoints(self) {
1913
- 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");
1914
- }
1915
-
1916
- // plots/volcano/VolcanoControlInputs.ts
1917
- var isScan = (plot) => plot?.settings?.volcano?.elementType == DMR_SCAN_ELEMENT_TYPE;
1918
- var VolcanoControlInputs = class {
1919
- constructor(config, termType, elementTypes, chromosomes) {
1920
- this.config = config;
1921
- if (this.config.termType == GENE_EXPRESSION) this.sampleNum = getSampleNum(config);
1922
- this.termType = termType;
1923
- this.elementTypes = elementTypes || [];
1924
- this.chromosomes = chromosomes || [];
1925
- this.inputs = [
1926
- {
1927
- // DAP volcanoes threshold a single FDR (adjusted p-value); other term types
1928
- // threshold a p-value.
1929
- label: this.config.termType == PROTEOME_DAP ? "FDR significance (-log\u2081\u2080)" : "P value significance (-log\u2081\u2080)",
1930
- type: "number",
1931
- chartType: "volcano",
1932
- settingsKey: "pValue",
1933
- title: this.config.termType == PROTEOME_DAP ? "The FDR threshold to determine statistical significance" : "The p-value threshold to determine statistical significance",
1934
- min: 0,
1935
- // 5e-324 is the smallest positive number greater than 0 representable
1936
- // in IEEE 64-bit floating point (i.e. javascripts native Number.MIN_VALUE)
1937
- // -Math.log10(5e-324) = 323.3
1938
- max: 323.3,
1939
- step: 1
1940
- },
1941
- {
1942
- label: "P value",
1943
- type: "radio",
1944
- chartType: "volcano",
1945
- settingsKey: "pValueType",
1946
- title: "Toggle between original and adjusted pvalues for volcano plot",
1947
- // DAP files carry only a single FDR, and a DMR scan a single p, so there is nothing to
1948
- // toggle between
1949
- getDisplayStyle: (plot) => this.config.termType == PROTEOME_DAP || isScan(plot) ? "none" : "",
1950
- options: [
1951
- { label: "Adjusted", value: "adjusted" },
1952
- { label: "Original", value: "original" }
1953
- ]
1954
- },
1955
- /* Hidden for differential methylation: a DM run plots and thresholds on delta-beta,
1956
- so a log2 cutoff would set a limit in units the plot never shows. Every other term
1957
- type still gets it. */
1958
- ...this.termType === DNA_METHYLATION ? [] : [
1959
- {
1960
- label: "Fold change (log\u2082)",
1961
- type: "number",
1962
- chartType: "volcano",
1963
- settingsKey: "foldChangeCutoff",
1964
- title: "The fold change threshold to determine biological significance",
1965
- min: -10,
1966
- max: 10
1967
- }
1968
- ],
1969
- {
1970
- label: "Max interactive dots",
1971
- type: "number",
1972
- chartType: "volcano",
1973
- settingsKey: "maxInteractiveDots",
1974
- title: "Cap on the number of top-significant points the server returns as interactive overlay circles. The PNG still shows every dot.",
1975
- min: 0,
1976
- max: 2e4,
1977
- step: 100
1978
- },
1979
- //Preferably, keep all the display (e.g. colors, sizes, etc.) controls
1980
- //at the bottom of the list or at least together
1981
- {
1982
- label: "Plot height",
1983
- type: "number",
1984
- chartType: "volcano",
1985
- settingsKey: "height",
1986
- title: "Height of the plot in pixels",
1987
- min: 300,
1988
- max: 1e3
1989
- },
1990
- {
1991
- label: "Plot width",
1992
- type: "number",
1993
- chartType: "volcano",
1994
- settingsKey: "width",
1995
- title: "Width of the plot in pixels",
1996
- min: 300,
1997
- max: 1e3
1998
- },
1999
- {
2000
- label: "Significant value color",
2001
- type: "color",
2002
- chartType: "volcano",
2003
- title: "Default color for significant data points.",
2004
- settingsKey: "defaultSignColor",
2005
- getDisplayStyle: () => {
2006
- if (this.config.termType == SINGLECELL_CELLTYPE) return "none";
2007
- const controlColor = this.config.tw?.term?.values?.[this.config.samplelst.groups[0].name]?.color;
2008
- const caseColor = this.config.tw?.term?.values?.[this.config.samplelst.groups[1].name].color;
2009
- if (controlColor && caseColor) return "none";
2010
- else return "";
2011
- }
2012
- },
2013
- {
2014
- label: "Non-significant value color",
2015
- type: "color",
2016
- chartType: "volcano",
2017
- title: "Default color for non-significant data points.",
2018
- settingsKey: "defaultNonSignColor"
2019
- },
2020
- {
2021
- label: "Highlight color",
2022
- type: "color",
2023
- chartType: "volcano",
2024
- title: "Default color for highlighted data points.",
2025
- settingsKey: "defaultHighlightColor"
2026
- }
2027
- ];
2028
- this.setVolcanoControlInputs();
2029
- }
2030
- /** Add more term type specific controls here. */
2031
- setVolcanoControlInputs() {
2032
- this.addGeneExpControlInputs();
2033
- this.addDNAMethControlInputs();
2034
- this.addSingleCellCTControlInputs();
2035
- }
2036
- addGeneExpControlInputs() {
2037
- if (this.termType !== GENE_EXPRESSION) return;
2038
- const geInputs = [
2039
- {
2040
- label: "Minimum read count",
2041
- type: "number",
2042
- chartType: "volcano",
2043
- settingsKey: "minCount",
2044
- title: "The smallest number of reads required for a gene to be considered in the analysis",
2045
- min: 0,
2046
- max: 1e4
2047
- },
2048
- {
2049
- label: "Minimum total read count",
2050
- type: "number",
2051
- chartType: "volcano",
2052
- settingsKey: "minTotalCount",
2053
- title: "The smallest total number of reads required for a gene to be considered in the analysis",
2054
- min: 0,
2055
- max: 1e4
2056
- },
2057
- {
2058
- label: "CPM cutoff",
2059
- type: "number",
2060
- chartType: "volcano",
2061
- settingsKey: "cpmCutoff",
2062
- title: "The minimum normalized expression threshold to retain only genes with sufficient expression",
2063
- min: 0
2064
- },
2065
- {
2066
- label: "Method",
2067
- type: "radio",
2068
- chartType: "volcano",
2069
- settingsKey: "method",
2070
- title: "Toggle between analysis methods",
2071
- options: this.getMethodOptions()
2072
- }
2073
- // {
2074
- // label: 'Rank Genes by',
2075
- // type: 'radio',
2076
- // chartType: 'volcano',
2077
- // settingsKey: 'rankBy',
2078
- // title: 'Rank genes by either the absolute value of the fold change or the variance',
2079
- // options: [
2080
- // { label: 'abs(Fold Change)', value: 'abs(foldChange)' },
2081
- // { label: 'Variance', value: 'variance' }
2082
- // ],
2083
- // //TODO: will enable this feature when there is backhand support
2084
- // getDisplayStyle: () => 'none'
2085
- // }
2086
- ];
2087
- this.inputs.splice(0, 0, ...geInputs);
2088
- }
2089
- addDNAMethControlInputs() {
2090
- if (this.termType !== DNA_METHYLATION) return;
2091
- const scanOnly = (plot) => isScan(plot) ? "" : "none";
2092
- const notScan = (plot) => isScan(plot) ? "none" : "";
2093
- const dmInputs = [
2094
- /* Element class comes FIRST because it is categorically different from the
2095
- controls below it: those tune how the test is run, this one changes what is
2096
- being tested. Promoters, eQTM blocks, and cCRE classes are different genomic
2097
- features with different coordinates and different test counts, so switching
2098
- produces a different analysis rather than a refined one.
2099
-
2100
- Hidden unless the dataset offers a genuine choice -- a single class means
2101
- there is nothing to pick, and a dataset using the legacy promoter-only config
2102
- gets no new UI at all. */
2103
- ...this.elementTypes.length > 1 ? [
2104
- {
2105
- label: "Element class",
2106
- type: "dropdown",
2107
- chartType: "volcano",
2108
- settingsKey: "elementType",
2109
- options: this.elementTypes.map((e) => ({ value: e.key, label: e.label })),
2110
- 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."
2111
- }
2112
- ] : [],
2113
- /* The scan's own knobs, shown only while the scan is the selected class. The chromosome
2114
- picker is a plain dropdown rather than the region search box: string2pos() turns a bare
2115
- "chr20" into a 20kb window at the chromosome midpoint, which would silently scan 0.005% of
2116
- the target. chrM is left out -- 16.5 kb of circular DNA that cannot carry a domain. */
2117
- {
2118
- label: "Scan",
2119
- type: "dropdown",
2120
- chartType: "volcano",
2121
- settingsKey: "scanChromosome",
2122
- getDisplayStyle: scanOnly,
2123
- options: [
2124
- { value: "", label: "Whole genome" },
2125
- ...this.chromosomes.filter((c) => c != "chrM" && c != "chrMT").map((c) => ({ value: c, label: c }))
2126
- ],
2127
- 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."
2128
- },
2129
- {
2130
- label: "Correct for background drift",
2131
- type: "checkbox",
2132
- chartType: "volcano",
2133
- settingsKey: "backgroundCorrection",
2134
- boxLabel: "",
2135
- getDisplayStyle: scanOnly,
2136
- 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.'
2137
- },
2138
- {
2139
- label: "Min CpGs per DMR",
2140
- type: "number",
2141
- chartType: "volcano",
2142
- settingsKey: "minCpgs",
2143
- getDisplayStyle: scanOnly,
2144
- min: 1,
2145
- max: 1e3,
2146
- 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."
2147
- },
2148
- /* DMRcate's region-shape knobs. Unlike the CpG floor these change the fit's output, so each
2149
- one refits the scan (and gets its own cache entry). */
2150
- {
2151
- label: "DMR bandwidth \u03BB (bp)",
2152
- type: "number",
2153
- chartType: "volcano",
2154
- settingsKey: "lambda",
2155
- getDisplayStyle: scanOnly,
2156
- min: 50,
2157
- max: 1e5,
2158
- step: 50,
2159
- 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)."
2160
- },
2161
- {
2162
- label: "DMR kernel scaling C",
2163
- type: "number",
2164
- chartType: "volcano",
2165
- settingsKey: "C",
2166
- getDisplayStyle: scanOnly,
2167
- min: 0.5,
2168
- max: 50,
2169
- step: 0.5,
2170
- 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."
2171
- },
2172
- {
2173
- label: "Per-CpG FDR cutoff",
2174
- type: "number",
2175
- chartType: "volcano",
2176
- settingsKey: "fdrCutoff",
2177
- getDisplayStyle: scanOnly,
2178
- min: 1e-4,
2179
- max: 0.5,
2180
- step: 0.01,
2181
- 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."
2182
- },
2183
- {
2184
- /* Display width for the methylome-wide profile only. The metric is the 100 kb bin and
2185
- the Statistics rows stay on it whatever this says -- this is here because 29,000 dots
2186
- over 1,000 px overlap however small the dot, so the native figure reads as a band. */
2187
- label: "Profile bin width",
2188
- type: "dropdown",
2189
- chartType: "volcano",
2190
- settingsKey: "profileBinBp",
2191
- getDisplayStyle: scanOnly,
2192
- options: [
2193
- { value: 1e5, label: "100 Kb (native)" },
2194
- { value: 5e5, label: "500 Kb" },
2195
- { value: 1e6, label: "1 Mb" },
2196
- { value: 5e6, label: "5 Mb" }
2197
- ],
2198
- // a <select> hands back its value as a string; the setting is a width in bp
2199
- processInput: (v) => Number(v),
2200
- 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."
2201
- },
2202
- {
2203
- label: "Min samples per group",
2204
- type: "number",
2205
- chartType: "volcano",
2206
- settingsKey: "minSamplesPerGroup",
2207
- title: "Minimum non-NA samples required per group for a promoter to be tested",
2208
- // the scan resolves its own groups (3+ per group, fixed) and has no per-element NA filter
2209
- getDisplayStyle: notScan,
2210
- min: 1,
2211
- max: 100
2212
- },
2213
- {
2214
- label: "Exclude sex chromosomes",
2215
- type: "checkbox",
2216
- chartType: "volcano",
2217
- settingsKey: "excludeSexChr",
2218
- boxLabel: "",
2219
- // the scan honours it too: scanChromosomes() drops chrX/chrY from a whole-genome scan
2220
- 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."
2221
- },
2222
- {
2223
- label: "Center \u0394\u03B2 on median",
2224
- type: "checkbox",
2225
- chartType: "volcano",
2226
- settingsKey: "centerDeltaBeta",
2227
- boxLabel: "",
2228
- // the background correction is the scan's version of this question
2229
- getDisplayStyle: notScan,
2230
- 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.'
2231
- },
2232
- {
2233
- label: "Min \u0394\u03B2",
2234
- type: "number",
2235
- chartType: "volcano",
2236
- settingsKey: "deltaBetaCutoff",
2237
- 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.",
2238
- min: 0,
2239
- max: 1,
2240
- step: 0.01
2241
- }
2242
- ];
2243
- this.inputs.splice(0, 0, ...dmInputs);
2244
- }
2245
- addSingleCellCTControlInputs() {
2246
- if (this.termType !== SINGLECELL_CELLTYPE) return;
2247
- const scctInputs = [];
2248
- this.inputs.splice(0, 0, ...scctInputs);
2249
- }
2250
- getMethodOptions() {
2251
- if (this.termType !== GENE_EXPRESSION) return;
2252
- const settings = this.config.settings.volcano;
2253
- const features = JSON.parse(sessionStorage.getItem("optionalFeatures"));
2254
- if (features?.runDE_methods?.length) {
2255
- const opts = [];
2256
- for (const m of features.runDE_methods) {
2257
- opts.push({ label: m, value: m.toLowerCase() });
2258
- }
2259
- return opts;
2260
- }
2261
- if (this.sampleNum < settings.sampleNumCutoff) {
2262
- return [
2263
- { label: "edgeR", value: "edgeR" },
2264
- { label: "Wilcoxon", value: "wilcoxon" },
2265
- { label: "Limma", value: "limma" }
2266
- ];
2267
- } else return [{ label: "Wilcoxon", value: "wilcoxon" }];
2268
- }
2269
- };
2270
-
2271
- // plots/volcano/Volcano.ts
2272
- var MIN_WILCOXON_GROUP_SIZE = 20;
2273
- var Volcano = class _Volcano extends PlotBase {
2274
- static {
2275
- this.type = "volcano";
2276
- }
2277
- constructor(opts, api) {
2278
- super(opts, api);
2279
- if (this.opts.parentId) this.parentId = this.opts.parentId;
2280
- this.type = _Volcano.type;
2281
- this.components = {
2282
- controls: {}
2283
- };
2284
- this.termType = opts.termType;
2285
- const holder = opts.holder.classed("sjpp-volcano-main", true).attr("data-testid", `sjpp-volcano-main-${opts.termType}`);
2286
- const controls = typeof opts.controls == "object" ? opts.controls : holder || holder.append("div");
2287
- const error = opts.holder.append("div").attr("id", "sjpp-volcano-error").attr("data-testid", `sjpp-volcano-error-${opts.termType}`).style("opacity", 0.75);
2288
- this.dom = {
2289
- holder,
2290
- controls,
2291
- error,
2292
- 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..."),
2293
- tip: new Menu({ padding: "" }),
2294
- actionsTip: new Menu({ padding: "" })
2295
- };
2296
- }
2297
- getState(appState) {
2298
- const config = appState.plots.find((p) => p.id === this.id);
2299
- if (!config) {
2300
- throw new Error(
2301
- `No plot with id='${this.id}' found. Did you set this.id before this.api = getComponentApi(this)?`
2302
- );
2303
- }
2304
- const parentConfig = this.parentId && appState.plots.find((p) => p.id === this.parentId);
2305
- const termfilter = getCombinedTermFilter(appState, config.filter || parentConfig?.filter);
2306
- return {
2307
- config: Object.assign({}, config, {
2308
- settings: {
2309
- volcano: config.settings.volcano
2310
- }
2311
- }),
2312
- termfilter
2313
- };
2314
- }
2315
- async setControls() {
2316
- const plotConfig = this.app.getState().plots.find((p) => p.id === this.id);
2317
- const controls = new VolcanoControlInputs(
2318
- plotConfig,
2319
- this.termType,
2320
- this.app.vocabApi.termdbConfig?.queries?.dnaMethylation?.elementTypes,
2321
- this.app.opts.genome?.majorchrorder
2322
- );
2323
- this.components.controls = await controlsInit({
2324
- app: this.app,
2325
- id: this.id,
2326
- holder: this.dom.controls.style("display", "inline-block"),
2327
- inputs: controls.inputs
2328
- });
2329
- this.components.controls.on("downloadClick.volcano", () => this.interactions.download(this.termType));
2330
- if (plotConfig.chartType == "differentialAnalysis")
2331
- this.components.controls.on(
2332
- "helpClick.differentialAnalysis",
2333
- () => (
2334
- //Opens the page for the differential analysis wiki
2335
- //Can't put in parent as DA does not have a controls component
2336
- window.open("https://github.com/stjude/proteinpaint/wiki/Differential-analysis")
2337
- )
2338
- );
2339
- }
2340
- async init() {
2341
- this.interactions = new VolcanoInteractions(this.app, this.id, this.dom);
2342
- this.model = new VolcanoModel(this, this.termType);
2343
- this.view = new VolcanoPlotView(this.dom, this.interactions, this.termType);
2344
- await this.setControls();
2345
- }
2346
- async main() {
2347
- if (!this.interactions) throw new Error("Volcano Interactions not initialized");
2348
- if (!this.model) throw new Error("Volcano Model not initialized");
2349
- if (!this.view) throw new Error("Volcano View not initialized");
2350
- const config = structuredClone(this.state.config);
2351
- if (config.chartType != this.type && config.childType != this.type) return;
2352
- const settings = config.settings.volcano;
2353
- try {
2354
- this.dom.wait.text(
2355
- 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..."
2356
- );
2357
- const showWait = setTimeout(() => {
2358
- this.dom.wait.style("display", "block");
2359
- }, 500);
2360
- const response = await this.model.getData(config, settings);
2361
- this.dom.error.text("");
2362
- if (!response || response.error || !response.data || !response.data.volcanoPng || !response.data.totalRows) {
2363
- const msg = response?.error || "No data returned from server";
2364
- if (response?.code === "CACHE_BUSY") {
2365
- if (window.confirm(msg)) this.main();
2366
- } else sayerror(this.dom.error, msg);
2367
- clearTimeout(showWait);
2368
- this.dom.wait.style("display", "none");
2369
- return;
2370
- }
2371
- const viewModel = new VolcanoViewModel(config, response, settings);
2372
- this.interactions.pValueTableData = viewModel.viewData.pValueTableData;
2373
- this.interactions.data = response.data.dots;
2374
- this.interactions.totalSignificantRows = response.data.totalSignificantRows;
2375
- this.interactions.provenance = viewModel.viewData.provenance;
2376
- this.interactions.fetchAllRows = async () => {
2377
- const full = await new VolcanoModel(this, this.termType).getData(config, {
2378
- ...settings,
2379
- maxInteractiveDots: null
2380
- });
2381
- if (!full || full.error || !full.data?.dots) throw new Error(full?.error || "no rows returned");
2382
- return new VolcanoViewModel(config, full, settings).viewData.pValueTableData;
2383
- };
2384
- this.view.render(settings, viewModel.viewData);
2385
- const notes = [];
2386
- if (!response.data.dots.length) notes.push("No points passed the significance thresholds.");
2387
- const smallestGroup = Math.min(response.sample_size1, response.sample_size2);
2388
- if (settings.method == "wilcoxon" && smallestGroup < MIN_WILCOXON_GROUP_SIZE) {
2389
- const samplesLabel = uiLabel(this.app.vocabApi.termdbConfig?.uiLabels, "samples", "samples");
2390
- notes.push(
2391
- `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.`
2392
- );
2393
- }
2394
- if (notes.length) this.dom.error.text(notes.join(" ")).style("color", "#555");
2395
- clearTimeout(showWait);
2396
- this.dom.wait.style("display", "none");
2397
- } catch (e) {
2398
- if (e instanceof Error) console.error(e.message || e);
2399
- else if (e.stack) console.log(e.stack);
2400
- throw e;
2401
- }
2402
- }
2403
- };
2404
- var volcanoInit = getCompInit(Volcano);
2405
- var componentInit = volcanoInit;
2406
- async function getPlotConfig(opts, app) {
2407
- if (!opts.termType) throw new Error(".termType is required");
2408
- const config = {
2409
- settings: {
2410
- // app is passed through so the defaults can read the dataset's preferred starting
2411
- // element class from termdbConfig; opts alone does not carry it
2412
- volcano: getDefaultVolcanoSettings(opts.overrides, { ...opts, app })
2413
- },
2414
- highlightedData: opts.highlightedData || [],
2415
- termType: opts.termType
2416
- };
2417
- if (opts.termType == GENE_EXPRESSION || opts.termType == DNA_METHYLATION) {
2418
- if (opts.confounderTws) {
2419
- try {
2420
- for (const tw of opts.confounderTws) {
2421
- await fillTermWrapper(tw, app.vocabApi);
2422
- }
2423
- } catch (e) {
2424
- console.error(e.message || e);
2425
- throw new Error(`Volcano getPlotConfig() failed to fill confounder term wrappers: ${e}`);
2426
- }
2427
- }
2428
- Object.assign(config, {
2429
- confounderTws: opts.confounderTws || [],
2430
- samplelst: opts.samplelst
2431
- });
2432
- }
2433
- if (opts.termType == SINGLECELL_CELLTYPE) {
2434
- Object.assign(config, {
2435
- //TODO: Fix this logic
2436
- sample: opts.experimentID || opts.sample || opts.samples?.[0]?.experiments[0]?.experimentID,
2437
- termId: app.vocabApi.termdbConfig.queries.singleCell.DEgenes.termId,
2438
- //TODO: 'Cluster' is a fallback for development
2439
- //Should require opts.categoryName in the future
2440
- categoryName: opts.categoryName || "Cluster"
2441
- });
2442
- }
2443
- validateVolcanoSettings(config, opts);
2444
- return copyMerge(config, opts);
2445
- }
2446
- export {
2447
- Volcano,
2448
- componentInit,
2449
- getPlotConfig,
2450
- volcanoInit
2451
- };
2452
- //# sourceMappingURL=Volcano-2PP67BZI.js.map