@sjcrh/proteinpaint-client 2.219.1 → 2.221.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 (983) hide show
  1. package/dist/2dmaf-7YU3SNKL.js +1362 -0
  2. package/dist/AggMatrixInput-73CDR5FS.js +402 -0
  3. package/dist/AggregateMatrix-NNULVFBM.js +37 -0
  4. package/dist/AppHeader-EZDDLLXU.js +826 -0
  5. package/dist/BoxPlot-463E7CRY.js +1229 -0
  6. package/dist/CorrelationVolcano-LHIIMBPP.js +613 -0
  7. package/dist/Cuminc-UL2TCIKV.js +1217 -0
  8. package/dist/DE-VRFSKFDW.js +85 -0
  9. package/dist/DEinput-FZTQRWVC.js +479 -0
  10. package/dist/DM-PO7CQZNT.js +86 -0
  11. package/dist/DifferentialAnalysis-WK6HE3YH.js +236 -0
  12. package/dist/Disco-YBNQJQFG.js +3384 -0
  13. package/dist/Disco.UI-HC5XYBFV.js +239 -0
  14. package/dist/DmrPlot-7VJ5C66D.js +361 -0
  15. package/dist/GB-VPFQRDRO.js +1388 -0
  16. package/dist/GSEA-ZEJB3QZQ.js +870 -0
  17. package/dist/GeneExpInput-SBDDIY6G.js +38 -0
  18. package/dist/Geomap-23AHGP2V.js +80 -0
  19. package/dist/HicApp-7AQQE4CM.js +2240 -0
  20. package/dist/IDCViewer-NO5Q6VOB.js +10808 -0
  21. package/dist/NumBinaryEditor-DSRP4OOU.js +274 -0
  22. package/dist/NumBinaryEditor.unit.spec-TT666YL4.js +308 -0
  23. package/dist/NumContEditor-6CURFOCH.js +100 -0
  24. package/dist/NumContEditor.unit.spec-MNVCFCMP.js +160 -0
  25. package/dist/NumCustomBinEditor-SQRR5EFL.js +29 -0
  26. package/dist/NumCustomBinEditor.unit.spec-F7BZWGGT.js +393 -0
  27. package/dist/NumDiscreteEditor-U7Z2QNYP.js +165 -0
  28. package/dist/NumDiscreteEditor.unit.spec-EIEBUZCX.js +229 -0
  29. package/dist/NumRegularBinEditor-CVZSWN6Y.js +29 -0
  30. package/dist/NumRegularBinEditor.unit.spec-ZMAJOIHL.js +274 -0
  31. package/dist/NumSplineEditor-U43D5NBJ.js +205 -0
  32. package/dist/NumSplineEditor.unit.spec-C52AADTS.js +220 -0
  33. package/dist/NumericDensity-PUKDZOVI.js +29 -0
  34. package/dist/NumericDensity.unit.spec-2347S76D.js +414 -0
  35. package/dist/NumericHandler-3RT32PTR.js +30 -0
  36. package/dist/NumericHandler.unit.spec-4PADL4KZ.js +225 -0
  37. package/dist/ProteomeInput-NFV4FW4U.js +610 -0
  38. package/dist/Regression-N7M7N6G4.js +1412 -0
  39. package/dist/RunChart2-UPQ7C6QE.js +744 -0
  40. package/dist/SC-KBW2NHUV.js +1290 -0
  41. package/dist/Violin-GWCOP3ZF.js +1092 -0
  42. package/dist/Volcano-X3HT32GQ.js +2661 -0
  43. package/dist/Volcano-X3HT32GQ.js.map +7 -0
  44. package/dist/Wsi-NXAEOYIS.js +636 -0
  45. package/dist/aboutSunburst-5EKXZV2A.js +86 -0
  46. package/dist/aboutSunburst-5EKXZV2A.js.map +7 -0
  47. package/dist/adSandbox-RPEWEEW7.js +29 -0
  48. package/dist/animatedBubbleChart-ILDMZRBX.js +542 -0
  49. package/dist/app-LOUC4J47.js +28 -0
  50. package/dist/app-MRKXZ6AZ.js +38 -0
  51. package/dist/app.js +15 -15
  52. package/dist/bam-SQWPHCZZ.js +872 -0
  53. package/dist/bam-SQWPHCZZ.js.map +7 -0
  54. package/dist/barchart-CJR37234.js +38 -0
  55. package/dist/barchart2-QQYLTHWR.js +305 -0
  56. package/dist/block-GLF6QNKY.js +6203 -0
  57. package/dist/block-GLF6QNKY.js.map +7 -0
  58. package/dist/block.init-YJQTJIDO.js +29 -0
  59. package/dist/block.mds.expressionrank-GBMEI5KQ.js +350 -0
  60. package/dist/block.mds.geneboxplot-XWE3E5IW.js +819 -0
  61. package/dist/block.mds.junction-QLEHFVPE.js +1534 -0
  62. package/dist/block.mds.svcnv-53DTOPBC.js +6413 -0
  63. package/dist/block.svg-57T37ABS.js +155 -0
  64. package/dist/block.tk.aicheck-6DXJTS3H.js +274 -0
  65. package/dist/block.tk.bam-CJFFQDNX.js +1906 -0
  66. package/dist/block.tk.bam-CJFFQDNX.js.map +7 -0
  67. package/dist/block.tk.bigwig.ui-OYIVXE2L.js +202 -0
  68. package/dist/block.tk.hicstraw-UKTGEBWT.js +814 -0
  69. package/dist/block.tk.junction-ZU5KPFQ3.js +2353 -0
  70. package/dist/block.tk.junction.textmatrixui-P4WXTAZR.js +190 -0
  71. package/dist/block.tk.ld-3PQ4O2AE.js +90 -0
  72. package/dist/block.tk.menu-LLITB6UA.js +1050 -0
  73. package/dist/block.tk.pgv-Y3FBXUO3.js +934 -0
  74. package/dist/brainImaging-4B3WXLNP.js +550 -0
  75. package/dist/brainRegions-7VLONUWN.js +213 -0
  76. package/dist/bubbleHeatmap-DI6GJRR6.js +374 -0
  77. package/dist/cellTypeBubbleHeatmap-HJY53DB2.js +274 -0
  78. package/dist/chunk-226MNBZ2.js +240 -0
  79. package/dist/chunk-2CDFU4MQ.js +536 -0
  80. package/dist/chunk-2CDFU4MQ.js.map +7 -0
  81. package/dist/chunk-2CNFGVHU.js +257 -0
  82. package/dist/chunk-2MC3RNKA.js +2685 -0
  83. package/dist/chunk-2OMX5AYB.js +195 -0
  84. package/dist/chunk-2SL4QWUS.js +50 -0
  85. package/dist/chunk-3KGBC5MK.js +692 -0
  86. package/dist/chunk-3PCRAPUV.js +56 -0
  87. package/dist/chunk-4DBOMSKP.js +102 -0
  88. package/dist/chunk-4TJO2DGU.js +2297 -0
  89. package/dist/chunk-4TJO2DGU.js.map +7 -0
  90. package/dist/chunk-57BS6KNI.js +466 -0
  91. package/dist/chunk-5AXS5G4A.js +2334 -0
  92. package/dist/chunk-5DI4UNH5.js +562 -0
  93. package/dist/chunk-5HJG6ECV.js +237 -0
  94. package/dist/chunk-5ZYANHGX.js +550 -0
  95. package/dist/chunk-6T4MN7LV.js +397 -0
  96. package/dist/chunk-75MRUW2K.js +103 -0
  97. package/dist/chunk-7J3W3KCN.js +255 -0
  98. package/dist/chunk-7SFK32JP.js +398 -0
  99. package/dist/chunk-7SFK32JP.js.map +7 -0
  100. package/dist/chunk-AIZYAKIE.js +182 -0
  101. package/dist/chunk-AJNFI6GA.js +2008 -0
  102. package/dist/chunk-BJAWDZBL.js +2799 -0
  103. package/dist/chunk-C6PVZVIH.js +379 -0
  104. package/dist/chunk-C77X5ZUV.js +176 -0
  105. package/dist/chunk-C7KUMZQM.js +59 -0
  106. package/dist/chunk-C7ROKWV2.js +140 -0
  107. package/dist/chunk-CAH6LJ5Z.js +31 -0
  108. package/dist/chunk-CUCP2GMT.js +102 -0
  109. package/dist/chunk-DTGAMBRJ.js +134 -0
  110. package/dist/chunk-DXT7GDHY.js +55 -0
  111. package/dist/chunk-ENPMWVWG.js +5214 -0
  112. package/dist/chunk-EYKJQJ7R.js +382 -0
  113. package/dist/chunk-FE5TCBIT.js +30 -0
  114. package/dist/chunk-FJ2JV2VK.js +217 -0
  115. package/dist/chunk-FPMJJBLV.js +4389 -0
  116. package/dist/chunk-FPMJJBLV.js.map +7 -0
  117. package/dist/chunk-FZYVPRVQ.js +38 -0
  118. package/dist/chunk-GBKQHVKJ.js +274 -0
  119. package/dist/chunk-GUW7VTUL.js +281 -0
  120. package/dist/chunk-H7F6DMJA.js +70 -0
  121. package/dist/chunk-HH3NUAR2.js +96 -0
  122. package/dist/chunk-HRTPGNOG.js +159 -0
  123. package/dist/chunk-IFPRYTS7.js +848 -0
  124. package/dist/chunk-IJSFSUI4.js +302 -0
  125. package/dist/chunk-IRQKX6DL.js +263 -0
  126. package/dist/chunk-JHLF2ZC2.js +472 -0
  127. package/dist/chunk-JNZL7HKB.js +1219 -0
  128. package/dist/chunk-K2ARLT2A.js +26 -0
  129. package/dist/chunk-K3G56J5R.js +299 -0
  130. package/dist/chunk-KKUCG2QE.js +516 -0
  131. package/dist/chunk-KPXCXBNU.js +626 -0
  132. package/dist/chunk-LF5WBI27.js +418 -0
  133. package/dist/chunk-LF5WBI27.js.map +7 -0
  134. package/dist/chunk-MANAUI7R.js +54 -0
  135. package/dist/chunk-MEUSRAOE.js +170 -0
  136. package/dist/chunk-MHWYRNGA.js +348 -0
  137. package/dist/chunk-MSTYU3QO.js +14 -0
  138. package/dist/chunk-MWARRQT4.js +141 -0
  139. package/dist/chunk-MXKYPTZ7.js +203 -0
  140. package/dist/chunk-NX5IB4IY.js +37 -0
  141. package/dist/chunk-OZUF7O2S.js +133 -0
  142. package/dist/chunk-PRTLCJYF.js +2941 -0
  143. package/dist/chunk-PRTLCJYF.js.map +7 -0
  144. package/dist/chunk-PWYMHUXY.js +116 -0
  145. package/dist/chunk-PWYMHUXY.js.map +7 -0
  146. package/dist/chunk-QNCE6EOK.js +82 -0
  147. package/dist/chunk-RIHO7ZD5.js +119 -0
  148. package/dist/chunk-RV335DF2.js +266 -0
  149. package/dist/chunk-SFPZUBPM.js +2102 -0
  150. package/dist/chunk-SFPZUBPM.js.map +7 -0
  151. package/dist/chunk-THAUD62Q.js +1253 -0
  152. package/dist/chunk-VBTBUXXX.js +6375 -0
  153. package/dist/chunk-VHWJK2MP.js +56 -0
  154. package/dist/chunk-VLIOMJDR.js +276 -0
  155. package/dist/chunk-VMK4RHV5.js +54 -0
  156. package/dist/chunk-WD7FZ5EE.js +26536 -0
  157. package/dist/chunk-WD7FZ5EE.js.map +7 -0
  158. package/dist/chunk-WJLRU5OF.js +5786 -0
  159. package/dist/chunk-WJLRU5OF.js.map +7 -0
  160. package/dist/chunk-WKT7RF3C.js +468 -0
  161. package/dist/chunk-WXSMUSU7.js +184 -0
  162. package/dist/chunk-WXSX5OQJ.js +296 -0
  163. package/dist/chunk-WY3IORKG.js +194 -0
  164. package/dist/chunk-WYSOOKFJ.js +480 -0
  165. package/dist/chunk-XBBFFOLS.js +123 -0
  166. package/dist/chunk-XSRQGX5H.js +340 -0
  167. package/dist/chunk-YLL6CTBL.js +54 -0
  168. package/dist/chunk-YPBY37KD.js +1339 -0
  169. package/dist/chunk-YUNJBIK4.js +243 -0
  170. package/dist/chunk-Z5ECCUNG.js +444 -0
  171. package/dist/chunk-ZAC34BZQ.js +35 -0
  172. package/dist/chunk-ZAC34BZQ.js.map +7 -0
  173. package/dist/cohort-5WL6UJOS.js +66 -0
  174. package/dist/cohortSunburst-R3Z5KJQL.js +402 -0
  175. package/dist/condition-2IILUMVB.js +323 -0
  176. package/dist/controls-G3JITZF5.js +30 -0
  177. package/dist/controls.config-BO7KPPET.js +30 -0
  178. package/dist/correlation-CZILLVEM.js +91 -0
  179. package/dist/customdata.inputui-BXFQAMTR.js +280 -0
  180. package/dist/dataDownload-QTWR4IW7.js +326 -0
  181. package/dist/dataDownload-QTWR4IW7.js.map +7 -0
  182. package/dist/databrowser.ui-V2NJQF3U.js +421 -0
  183. package/dist/dictionary-OVAQX6R3.js +109 -0
  184. package/dist/dnaMethylation-DHPFRXB2.js +29 -0
  185. package/dist/dnaMethylation.integration.spec-PJLIRGN5.js +194 -0
  186. package/dist/dofetch-KBTN6OW4.js +49 -0
  187. package/dist/e2pca-O7SNMJGB.js +340 -0
  188. package/dist/ep-NIVLKG4S.js +1247 -0
  189. package/dist/expclust.gdc.spec-LVCD6C43.js +298 -0
  190. package/dist/facet-LB4SCXE4.js +556 -0
  191. package/dist/gb-3IJ4NCPO.js +77 -0
  192. package/dist/geneExpClustering-SIAC7CMA.js +240 -0
  193. package/dist/geneExpression-KPUOZ4PT.js +309 -0
  194. package/dist/geneExpression-P2TTZXN2.js +29 -0
  195. package/dist/geneExpression.unit.spec-Q5D6XHUF.js +151 -0
  196. package/dist/geneORA-PKUIJKTL.js +269 -0
  197. package/dist/geneRanking-ZGT5MHBV.js +544 -0
  198. package/dist/geneVariant-24YNANTT.js +289 -0
  199. package/dist/geneVariant-CDGENHWQ.js +32 -0
  200. package/dist/geneVariant.integration.spec-7QW4C2WO.js +672 -0
  201. package/dist/genefusion.ui-NVXGSBXD.js +299 -0
  202. package/dist/geneset-7STL6UDD.js +199 -0
  203. package/dist/genomeBrowser.spec-OE2CIP7I.js +272 -0
  204. package/dist/grin2-2HXUIY5O.js +66 -0
  205. package/dist/grin2-32IIJR5E.js +945 -0
  206. package/dist/hierCluster-MDZEI2KB.js +51 -0
  207. package/dist/hierCluster-T3PZUGBI.js +55 -0
  208. package/dist/hierCluster.config-7UN6AYGB.js +32 -0
  209. package/dist/hierCluster.integration.spec-DWOYVK6T.js +479 -0
  210. package/dist/hierCluster.interactivity-5OM6XNFG.js +45 -0
  211. package/dist/hierCluster.renderers-YGX6MZZW.js +18 -0
  212. package/dist/imagePlot-KBRXDV5G.js +152 -0
  213. package/dist/importPlot-DJMIC22L.js +8 -0
  214. package/dist/isoformExpression-SWDWADRC.js +31 -0
  215. package/dist/isoformExpression.unit.spec-2U5KCYBP.js +233 -0
  216. package/dist/junction-NMXVVGRG.js +32 -0
  217. package/dist/junction.customTerm-3R2GNE3A.js +15 -0
  218. package/dist/junction.unit.spec-JTGBPPN7.js +178 -0
  219. package/dist/launch.adhoc-YB5SKMNY.js +33 -0
  220. package/dist/leftlabel.sample-QKXIODCS.js +253 -0
  221. package/dist/lollipop-TSZ62PBH.js +162 -0
  222. package/dist/maf-4L5YN4CG.js +451 -0
  223. package/dist/maftimeline-VOYB3NY3.js +583 -0
  224. package/dist/matrix-IWJECVTF.js +55 -0
  225. package/dist/matrix-MMJAJZA7.js +50 -0
  226. package/dist/matrix.cells-5RTZUJVN.js +25 -0
  227. package/dist/matrix.config-DZGOZWJS.js +33 -0
  228. package/dist/matrix.data-Y5TPRGMW.js +22 -0
  229. package/dist/matrix.groups-6DXCAY4P.js +25 -0
  230. package/dist/matrix.integration.spec-2N237E7T.js +3156 -0
  231. package/dist/matrix.interactivity-FL33UUKR.js +33 -0
  232. package/dist/matrix.layout-7SYHV3KJ.js +35 -0
  233. package/dist/matrix.legend-S3E76TVO.js +19 -0
  234. package/dist/matrix.renderers-3SIBT2RP.js +30 -0
  235. package/dist/matrix.serieses-3UGLZW25.js +18 -0
  236. package/dist/matrix.sort-A7CNLDUJ.js +25 -0
  237. package/dist/matrix.sort.unit.spec-L3H44T6I.js +464 -0
  238. package/dist/matrix.sorterUi-6PZR3YOD.js +15 -0
  239. package/dist/matrix.sorterUi.unit.spec-2NRU5UFH.js +334 -0
  240. package/dist/matrix.unit.spec-HRZIJB6T.js +146 -0
  241. package/dist/mavb-ZVRQSDPS.js +726 -0
  242. package/dist/mds.fimo-ZKETTET7.js +509 -0
  243. package/dist/mds.samplescatterplot-ZV3UNRLP.js +1545 -0
  244. package/dist/mds.survivalplot-OVXZRTU4.js +472 -0
  245. package/dist/multivalue-6BE5IA4F.js +79 -0
  246. package/dist/numericDictTermCluster-6XDVVWLE.js +62 -0
  247. package/dist/oncomatrix-XK62NEOO.js +286 -0
  248. package/dist/oncomatrix.spec-YVTCHOPS.js +439 -0
  249. package/dist/plot.2dvaf-NUOBWMNX.js +368 -0
  250. package/dist/plot.app-G6IQWXTV.js +32 -0
  251. package/dist/plot.barplot-6QJ6HEJR.js +93 -0
  252. package/dist/plot.boxplot-XKQJSW2O.js +142 -0
  253. package/dist/plot.brainImaging-UTHFJFXU.js +51 -0
  254. package/dist/plot.disco-3MSCX7TM.js +98 -0
  255. package/dist/plot.ssgq-4KBVHF42.js +130 -0
  256. package/dist/plot.vaf2cov-OGUQSSDS.js +249 -0
  257. package/dist/polar2-V7M56GTZ.js +228 -0
  258. package/dist/profileForms-TS3BJLHH.js +937 -0
  259. package/dist/profilePlot-DP5272HR.js +45 -0
  260. package/dist/proteinView-K4K4SP3L.js +1346 -0
  261. package/dist/proteomeCohortCompare-SFWVGLFK.js +866 -0
  262. package/dist/pseudbulk.unit.spec-NFOA7J2C.js +82 -0
  263. package/dist/pseudobulk-XKZQEZ4I.js +31 -0
  264. package/dist/qualitative-7OSFNVI5.js +241 -0
  265. package/dist/qualitative-OIIN6E4Y.js +34 -0
  266. package/dist/radar2-AHZJKX7S.js +323 -0
  267. package/dist/radarFacility2-OUW6D5E7.js +331 -0
  268. package/dist/rememberedGvQ.unit.spec-SHTMMZGG.js +210 -0
  269. package/dist/render-7UZSGX3Q.js +29 -0
  270. package/dist/report-J7HKTXZ2.js +213 -0
  271. package/dist/sampleView-6547OUIM.js +39 -0
  272. package/dist/samplelst-UHF23UEB.js +114 -0
  273. package/dist/samplematrix-OOKS3TMR.js +2188 -0
  274. package/dist/sc-WF2BLGNG.js +77 -0
  275. package/dist/scatter-ABCVFGRV.js +84 -0
  276. package/dist/scatter-WF7XM3IA.js +919 -0
  277. package/dist/selectGenomeWithTklst-67HU5KRB.js +125 -0
  278. package/dist/singleCellCellType-3FZPJ25V.js +29 -0
  279. package/dist/singleCellCellType.unit.spec-TOMREHWK.js +150 -0
  280. package/dist/singleCellGeneExpression-NQTJ5KJQ.js +29 -0
  281. package/dist/singleCellGeneExpression.unit.spec-ZWUQTU2N.js +144 -0
  282. package/dist/singleCellNumericValue-VI7H722L.js +29 -0
  283. package/dist/singleCellNumericValue.unit.spec-QGLHES7H.js +412 -0
  284. package/dist/singleCellPlot-RU5T6SJK.js +44 -0
  285. package/dist/singlecell-C3CJVNXP.js +1562 -0
  286. package/dist/singlecell-NRQZ7KC6.js +77 -0
  287. package/dist/snp-X6XY65VS.js +29 -0
  288. package/dist/snp.unit.spec-6EENK7GQ.js +167 -0
  289. package/dist/snplocus-R4JA6TFT.js +200 -0
  290. package/dist/snplst-SOWVHSXH.js +36 -0
  291. package/dist/spliceevent.a53ss.diagram-IRLCCVQZ.js +142 -0
  292. package/dist/spliceevent.exonskip.diagram-4KG7LE5D.js +274 -0
  293. package/dist/spliceevent.noeventdiagram-OWXAJJX7.js +451 -0
  294. package/dist/ssGSEA-EMOKPLMP.js +29 -0
  295. package/dist/ssGSEA.unit.spec-KXQ7R5WH.js +79 -0
  296. package/dist/stattable-H2G7MOZG.js +112 -0
  297. package/dist/studyCatalog-3ITQXWFL.js +457 -0
  298. package/dist/summarizeCnvGeneexp-ZIPU6YDY.js +154 -0
  299. package/dist/summarizeGeneexpSurvival-3RYU226R.js +101 -0
  300. package/dist/summarizeMutationCnv-RGDBUB22.js +155 -0
  301. package/dist/summarizeMutationDiagnosis-Z4MZE6Y4.js +31 -0
  302. package/dist/summarizeMutationSurvival-Z5CNRH7E.js +95 -0
  303. package/dist/summary-6QQCNX3B.js +40 -0
  304. package/dist/summary.integration.spec-3ULXTZUP.js +405 -0
  305. package/dist/summaryInput-4QKR34QB.js +238 -0
  306. package/dist/sunburst-KB3BWC72.js +34 -0
  307. package/dist/sunburst-XTFBHZNH.js +274 -0
  308. package/dist/survival-7O6ZK63E.js +49 -0
  309. package/dist/survival-NNCY4K6C.js +1248 -0
  310. package/dist/survival.integration.spec-ZYZHZAXA.js +609 -0
  311. package/dist/svgraph-ZLSFFEAC.js +1377 -0
  312. package/dist/svmr-REBBDEYM.js +3834 -0
  313. package/dist/swimmer-NUBRIWLI.js +993 -0
  314. package/dist/swimmer-NUBRIWLI.js.map +7 -0
  315. package/dist/table-CWIQQESJ.js +192 -0
  316. package/dist/termCollection-7TYJSQ45.js +29 -0
  317. package/dist/termCollection-7Z55QNL7.js +247 -0
  318. package/dist/termCollection.unit.spec-LQ5MIBDH.js +295 -0
  319. package/dist/termCollectionFractionSelection-24DZYVDU.js +38 -0
  320. package/dist/termCollectionFractionSelection.unit.spec-DCV2CFS5.js +184 -0
  321. package/dist/tk-2WZFPRCP.js +37 -0
  322. package/dist/tk-QTLEYIP7.js +1193 -0
  323. package/dist/tk-QTLEYIP7.js.map +7 -0
  324. package/dist/tp.ui-HXQX2UH4.js +1453 -0
  325. package/dist/tvs.categorical-4D3JI2ER.js +28 -0
  326. package/dist/tvs.condition-62FXFHZ5.js +160 -0
  327. package/dist/tvs.density-IGO4I4T2.js +19 -0
  328. package/dist/tvs.dt-FZSVMJOO.js +34 -0
  329. package/dist/tvs.dtcnv.categorical-PPFQIC42.js +31 -0
  330. package/dist/tvs.dtcnv.continuous-TV2IGHY4.js +72 -0
  331. package/dist/tvs.dtfusion-ON4BA4XJ.js +31 -0
  332. package/dist/tvs.dtitd-VFNROOWQ.js +31 -0
  333. package/dist/tvs.dtsnvindel-ZXOP37T5.js +31 -0
  334. package/dist/tvs.dtsv-EUHPTW7J.js +31 -0
  335. package/dist/tvs.multivalue-NHVXZNDI.js +84 -0
  336. package/dist/tvs.numeric-FPWDPO3J.js +32 -0
  337. package/dist/tvs.samplelst-ZZHRNUP4.js +95 -0
  338. package/dist/tvs.survival-F3KSG3U6.js +110 -0
  339. package/dist/tvs.termCollection-B37DZLDY.js +118 -0
  340. package/dist/vocabulary-XNE5FFDK.js +32 -0
  341. package/dist/vocabulary-XNE5FFDK.js.map +7 -0
  342. package/dist/wsi.direct-3YH3QGQD.js +11514 -0
  343. package/package.json +4 -4
  344. package/dist/2dmaf-O2SQ5RGD.js +0 -1362
  345. package/dist/AggMatrixInput-LUCTWXHU.js +0 -402
  346. package/dist/AggregateMatrix-JVMF27YL.js +0 -37
  347. package/dist/AppHeader-DJU6HRKO.js +0 -826
  348. package/dist/BoxPlot-22RXMPRL.js +0 -1229
  349. package/dist/CorrelationVolcano-PBZWPFSN.js +0 -613
  350. package/dist/Cuminc-EL74X5GY.js +0 -1217
  351. package/dist/DE-W5SAMMRW.js +0 -85
  352. package/dist/DEinput-ZKEFJZQU.js +0 -479
  353. package/dist/DM-ABKDXMDG.js +0 -86
  354. package/dist/DifferentialAnalysis-3JTZ5WCQ.js +0 -236
  355. package/dist/Disco-ME53U25C.js +0 -3384
  356. package/dist/Disco.UI-F7XKJMKR.js +0 -239
  357. package/dist/DmrPlot-OWBXUTON.js +0 -361
  358. package/dist/GB-7X6DBWKS.js +0 -1388
  359. package/dist/GSEA-GAZIEGD7.js +0 -870
  360. package/dist/GeneExpInput-BAOC6ICV.js +0 -38
  361. package/dist/Geomap-OZERLL7V.js +0 -80
  362. package/dist/HicApp-WDH5LVTD.js +0 -2240
  363. package/dist/IDCViewer-XBZFU3BU.js +0 -10808
  364. package/dist/NumBinaryEditor-5R4EUQOZ.js +0 -274
  365. package/dist/NumBinaryEditor.unit.spec-ULBXMOYY.js +0 -308
  366. package/dist/NumContEditor-EN6V4FLQ.js +0 -100
  367. package/dist/NumContEditor.unit.spec-VDWKNIFN.js +0 -160
  368. package/dist/NumCustomBinEditor-UB34ALNZ.js +0 -29
  369. package/dist/NumCustomBinEditor.unit.spec-WZXJ7GEC.js +0 -393
  370. package/dist/NumDiscreteEditor-H6J67YEL.js +0 -165
  371. package/dist/NumDiscreteEditor.unit.spec-KJ7YU22W.js +0 -229
  372. package/dist/NumRegularBinEditor-R5JVUG7J.js +0 -29
  373. package/dist/NumRegularBinEditor.unit.spec-RZ73FMNO.js +0 -274
  374. package/dist/NumSplineEditor-AOR6OAJA.js +0 -205
  375. package/dist/NumSplineEditor.unit.spec-Z6ZEI3UO.js +0 -220
  376. package/dist/NumericDensity-SRTFTDQA.js +0 -29
  377. package/dist/NumericDensity.unit.spec-MRREBAYU.js +0 -414
  378. package/dist/NumericHandler-7RALUACA.js +0 -30
  379. package/dist/NumericHandler.unit.spec-MDO23WRB.js +0 -225
  380. package/dist/ProteomeInput-MOBXHRD5.js +0 -610
  381. package/dist/Regression-XWT4NNTG.js +0 -1412
  382. package/dist/RunChart2-Q7W5MWJS.js +0 -744
  383. package/dist/SC-MM3JTEVL.js +0 -1290
  384. package/dist/Violin-XNTBDUPG.js +0 -1092
  385. package/dist/Volcano-GRKXU3WL.js +0 -2619
  386. package/dist/Volcano-GRKXU3WL.js.map +0 -7
  387. package/dist/Wsi-22KJSFVH.js +0 -636
  388. package/dist/adSandbox-TLYWQOOA.js +0 -29
  389. package/dist/animatedBubbleChart-67SY5JGP.js +0 -542
  390. package/dist/app-FG3KPE4R.js +0 -28
  391. package/dist/app-VK5LYO6B.js +0 -38
  392. package/dist/bam-TNLNISLV.js +0 -872
  393. package/dist/bam-TNLNISLV.js.map +0 -7
  394. package/dist/barchart-IGWRVB6W.js +0 -38
  395. package/dist/barchart2-TT6OBJJP.js +0 -305
  396. package/dist/block-5PV2TYWJ.js +0 -6232
  397. package/dist/block-5PV2TYWJ.js.map +0 -7
  398. package/dist/block.init-2Y6CNK7H.js +0 -29
  399. package/dist/block.mds.expressionrank-VZ4JVPTG.js +0 -350
  400. package/dist/block.mds.geneboxplot-NYMS32JP.js +0 -819
  401. package/dist/block.mds.junction-3R6C3B5W.js +0 -1534
  402. package/dist/block.mds.svcnv-SO5CYYIQ.js +0 -6413
  403. package/dist/block.svg-R4ASXXNW.js +0 -155
  404. package/dist/block.tk.aicheck-LYRTDZRA.js +0 -274
  405. package/dist/block.tk.bam-GR7CHGGQ.js +0 -1897
  406. package/dist/block.tk.bam-GR7CHGGQ.js.map +0 -7
  407. package/dist/block.tk.bedgraphdot-GERXK2O6.js +0 -375
  408. package/dist/block.tk.bedgraphdot-GERXK2O6.js.map +0 -7
  409. package/dist/block.tk.bigwig.ui-3KMMZX2M.js +0 -202
  410. package/dist/block.tk.hicstraw-7HH4PGFY.js +0 -814
  411. package/dist/block.tk.junction-BPEKLYS2.js +0 -2353
  412. package/dist/block.tk.junction.textmatrixui-2QU5DL2X.js +0 -190
  413. package/dist/block.tk.ld-TJREYPNY.js +0 -90
  414. package/dist/block.tk.menu-HDBZK4YP.js +0 -1050
  415. package/dist/block.tk.pgv-G5GCYBK2.js +0 -934
  416. package/dist/brainImaging-ODWHF7WZ.js +0 -550
  417. package/dist/brainRegions-DC7DEA7N.js +0 -213
  418. package/dist/bubbleHeatmap-T5ACULRL.js +0 -374
  419. package/dist/cellTypeBubbleHeatmap-RQINXXTK.js +0 -274
  420. package/dist/chunk-24ZS2XWC.js +0 -176
  421. package/dist/chunk-2EPEWVKQ.js +0 -4378
  422. package/dist/chunk-2EPEWVKQ.js.map +0 -7
  423. package/dist/chunk-2PHFY3VP.js +0 -195
  424. package/dist/chunk-2QFMKWNS.js +0 -281
  425. package/dist/chunk-2UB6JZ3I.js +0 -466
  426. package/dist/chunk-3GQ54XTJ.js +0 -70
  427. package/dist/chunk-3IE6FDVA.js +0 -1253
  428. package/dist/chunk-4ENIOXIT.js +0 -133
  429. package/dist/chunk-4OOQ52ET.js +0 -182
  430. package/dist/chunk-5NI77Z3O.js +0 -119
  431. package/dist/chunk-5TPWMYBG.js +0 -274
  432. package/dist/chunk-64JHE3GV.js +0 -50
  433. package/dist/chunk-6MUJGVOH.js +0 -140
  434. package/dist/chunk-6XKAOSQE.js +0 -116
  435. package/dist/chunk-6XKAOSQE.js.map +0 -7
  436. package/dist/chunk-6YGSVJJD.js +0 -54
  437. package/dist/chunk-7PQVNQFR.js +0 -255
  438. package/dist/chunk-7XW4JWMJ.js +0 -170
  439. package/dist/chunk-7ZEJKFGW.js +0 -55
  440. package/dist/chunk-A6ZUYQHO.js +0 -159
  441. package/dist/chunk-ALIMVUHR.js +0 -1219
  442. package/dist/chunk-ANBGNYNP.js +0 -1339
  443. package/dist/chunk-ATZNXW5F.js +0 -237
  444. package/dist/chunk-AUPTEHV7.js +0 -257
  445. package/dist/chunk-B2KYLEYM.js +0 -30
  446. package/dist/chunk-BJCET6RU.js +0 -263
  447. package/dist/chunk-BKW35Z4U.js +0 -26619
  448. package/dist/chunk-BKW35Z4U.js.map +0 -7
  449. package/dist/chunk-CJHNPYFQ.js +0 -2292
  450. package/dist/chunk-CJHNPYFQ.js.map +0 -7
  451. package/dist/chunk-CTVPW77S.js +0 -194
  452. package/dist/chunk-D6U65W7Q.js +0 -626
  453. package/dist/chunk-DJMDETVU.js +0 -2685
  454. package/dist/chunk-DKPAOVJH.js +0 -243
  455. package/dist/chunk-DRESQF33.js +0 -38
  456. package/dist/chunk-DXM5MQCZ.js +0 -382
  457. package/dist/chunk-ETXOEP4N.js +0 -184
  458. package/dist/chunk-FOUMNTII.js +0 -134
  459. package/dist/chunk-FTGLS763.js +0 -56
  460. package/dist/chunk-GN2A5NL5.js +0 -472
  461. package/dist/chunk-GWNCQ5YI.js +0 -468
  462. package/dist/chunk-GX6G2SSW.js +0 -26
  463. package/dist/chunk-H3YF55ZI.js +0 -848
  464. package/dist/chunk-IANE75G3.js +0 -444
  465. package/dist/chunk-IKZQST6E.js +0 -5213
  466. package/dist/chunk-IPRYYK26.js +0 -96
  467. package/dist/chunk-JL3PYV5F.js +0 -6375
  468. package/dist/chunk-K6VYSDB5.js +0 -276
  469. package/dist/chunk-KSS26PXB.js +0 -54
  470. package/dist/chunk-LO2QBHP6.js +0 -418
  471. package/dist/chunk-LO2QBHP6.js.map +0 -7
  472. package/dist/chunk-LSRFRZNP.js +0 -59
  473. package/dist/chunk-LYX4S6WA.js +0 -266
  474. package/dist/chunk-ME3HB3V6.js +0 -5787
  475. package/dist/chunk-ME3HB3V6.js.map +0 -7
  476. package/dist/chunk-MP7BA3GK.js +0 -14
  477. package/dist/chunk-MVSUESEV.js +0 -141
  478. package/dist/chunk-NQMS7WV3.js +0 -2799
  479. package/dist/chunk-NR6WFCPF.js +0 -348
  480. package/dist/chunk-NS2MZN3C.js +0 -562
  481. package/dist/chunk-NUA66GW7.js +0 -37
  482. package/dist/chunk-NYEFSOKD.js +0 -550
  483. package/dist/chunk-OVHQFZAE.js +0 -34
  484. package/dist/chunk-OVHQFZAE.js.map +0 -7
  485. package/dist/chunk-QM724EG2.js +0 -103
  486. package/dist/chunk-RIL33JCW.js +0 -102
  487. package/dist/chunk-RJAJG5KN.js +0 -2954
  488. package/dist/chunk-RJAJG5KN.js.map +0 -7
  489. package/dist/chunk-SLHXR4BZ.js +0 -82
  490. package/dist/chunk-SO76DLSZ.js +0 -299
  491. package/dist/chunk-T7CKGRGP.js +0 -398
  492. package/dist/chunk-T7CKGRGP.js.map +0 -7
  493. package/dist/chunk-TUO5I6LP.js +0 -123
  494. package/dist/chunk-TWTPWEYL.js +0 -240
  495. package/dist/chunk-U2GHNZ4N.js +0 -54
  496. package/dist/chunk-UAB5PGOP.js +0 -56
  497. package/dist/chunk-UCB3W3OT.js +0 -217
  498. package/dist/chunk-UJIB7QM3.js +0 -2334
  499. package/dist/chunk-UYQGTW7I.js +0 -1857
  500. package/dist/chunk-UYQGTW7I.js.map +0 -7
  501. package/dist/chunk-VBDJG6GZ.js +0 -2008
  502. package/dist/chunk-VOXUMZMG.js +0 -379
  503. package/dist/chunk-WCNMP54T.js +0 -516
  504. package/dist/chunk-WETOH7YW.js +0 -692
  505. package/dist/chunk-WKGKKM6F.js +0 -480
  506. package/dist/chunk-WV44DGEJ.js +0 -397
  507. package/dist/chunk-XVEEMQAT.js +0 -31
  508. package/dist/chunk-YBOHXANC.js +0 -302
  509. package/dist/chunk-YNQFOPS6.js +0 -203
  510. package/dist/chunk-YVQ4USPP.js +0 -340
  511. package/dist/chunk-ZWLT5QS3.js +0 -102
  512. package/dist/chunk-ZYAZHJPZ.js +0 -296
  513. package/dist/cohort-QSLKB4ZO.js +0 -66
  514. package/dist/cohortSunburst-AQFSNJ5K.js +0 -402
  515. package/dist/condition-MLS6TJHV.js +0 -323
  516. package/dist/controls-ZT3GZ667.js +0 -30
  517. package/dist/controls.config-F7NIPLKB.js +0 -30
  518. package/dist/correlation-ZEIQJGSQ.js +0 -91
  519. package/dist/customdata.inputui-6PJSAJK2.js +0 -280
  520. package/dist/dataDownload-CHMPXHBY.js +0 -325
  521. package/dist/dataDownload-CHMPXHBY.js.map +0 -7
  522. package/dist/databrowser.ui-EMZ5L2Y7.js +0 -421
  523. package/dist/dictionary-U2BWGY6B.js +0 -109
  524. package/dist/dnaMethylation-R34E2XNC.js +0 -29
  525. package/dist/dnaMethylation.integration.spec-4Z2AJHWY.js +0 -194
  526. package/dist/dofetch-JY4A7BYI.js +0 -47
  527. package/dist/e2pca-WSSCXX6A.js +0 -340
  528. package/dist/ep-ATUWEHDJ.js +0 -1247
  529. package/dist/expclust.gdc.spec-QRIRRPO7.js +0 -298
  530. package/dist/facet-5VDCSP3S.js +0 -556
  531. package/dist/gb-Y4UG6LFA.js +0 -77
  532. package/dist/geneExpClustering-OO67JNJ2.js +0 -240
  533. package/dist/geneExpression-5KGV3MAA.js +0 -29
  534. package/dist/geneExpression-KPRFXKU7.js +0 -309
  535. package/dist/geneExpression.unit.spec-YV45EZ5O.js +0 -151
  536. package/dist/geneORA-R74JPUTC.js +0 -269
  537. package/dist/geneRanking-IJTXNMHV.js +0 -544
  538. package/dist/geneVariant-HBAHT6LU.js +0 -32
  539. package/dist/geneVariant-JT3EGAIH.js +0 -289
  540. package/dist/geneVariant.integration.spec-TFQYPUAS.js +0 -672
  541. package/dist/genefusion.ui-MMTQMTHC.js +0 -299
  542. package/dist/geneset-VMBICNCZ.js +0 -199
  543. package/dist/genomeBrowser.spec-2XLLIYGA.js +0 -272
  544. package/dist/grin2-2RYPEUWV.js +0 -66
  545. package/dist/grin2-Y6KAFVV2.js +0 -945
  546. package/dist/hierCluster-EKGFBQT4.js +0 -51
  547. package/dist/hierCluster-Z4PVNMGS.js +0 -55
  548. package/dist/hierCluster.config-Q6WUNK2K.js +0 -32
  549. package/dist/hierCluster.integration.spec-2LHSHNFC.js +0 -479
  550. package/dist/hierCluster.interactivity-OGQ3KUY6.js +0 -45
  551. package/dist/hierCluster.renderers-3GJZXG75.js +0 -18
  552. package/dist/imagePlot-ZJEZPBX7.js +0 -152
  553. package/dist/importPlot-GFEFYEHZ.js +0 -8
  554. package/dist/isoformExpression-A2X3DSR6.js +0 -31
  555. package/dist/isoformExpression.unit.spec-VKMEGCL4.js +0 -233
  556. package/dist/junction-HWIHLQU2.js +0 -32
  557. package/dist/junction.customTerm-C3VWXEYH.js +0 -15
  558. package/dist/junction.unit.spec-ZYJGDOXJ.js +0 -178
  559. package/dist/launch.adhoc-HW5AZM4T.js +0 -33
  560. package/dist/leftlabel.sample-MTW2HRRQ.js +0 -253
  561. package/dist/lollipop-VWW5H6CR.js +0 -162
  562. package/dist/maf-KEJYO3H4.js +0 -451
  563. package/dist/maftimeline-MJZDSGSR.js +0 -583
  564. package/dist/matrix-3UJW6LOA.js +0 -50
  565. package/dist/matrix-W4AX5OBM.js +0 -55
  566. package/dist/matrix.cells-5DAIZ3E5.js +0 -25
  567. package/dist/matrix.config-PK26VPQT.js +0 -33
  568. package/dist/matrix.data-UK5DGKBK.js +0 -22
  569. package/dist/matrix.groups-NM4Q5YDN.js +0 -25
  570. package/dist/matrix.integration.spec-FGWNBCRR.js +0 -3156
  571. package/dist/matrix.interactivity-4C37PII5.js +0 -33
  572. package/dist/matrix.layout-ODV7WXUP.js +0 -35
  573. package/dist/matrix.legend-5MY7OXWN.js +0 -19
  574. package/dist/matrix.renderers-QA7W7ZUL.js +0 -30
  575. package/dist/matrix.serieses-4FSFJPCK.js +0 -18
  576. package/dist/matrix.sort-3QLFMBJ5.js +0 -25
  577. package/dist/matrix.sort.unit.spec-HVOC6IYT.js +0 -464
  578. package/dist/matrix.sorterUi-EY3SA6CG.js +0 -15
  579. package/dist/matrix.sorterUi.unit.spec-OAXWPZZI.js +0 -334
  580. package/dist/matrix.unit.spec-RAL7AU22.js +0 -146
  581. package/dist/mavb-KIM63AC4.js +0 -726
  582. package/dist/mds.fimo-DMAVM56P.js +0 -509
  583. package/dist/mds.samplescatterplot-KILTR2C7.js +0 -1545
  584. package/dist/mds.survivalplot-PV76ANBP.js +0 -472
  585. package/dist/multivalue-2V5LMQY7.js +0 -79
  586. package/dist/numericDictTermCluster-TGL4X6UC.js +0 -62
  587. package/dist/oncomatrix-2O7SLXHX.js +0 -286
  588. package/dist/oncomatrix.spec-HZJKOF5G.js +0 -439
  589. package/dist/plot.2dvaf-424NNMMA.js +0 -368
  590. package/dist/plot.app-YBZDNST2.js +0 -32
  591. package/dist/plot.barplot-YZQBYJUY.js +0 -93
  592. package/dist/plot.boxplot-5OW6IBQL.js +0 -142
  593. package/dist/plot.brainImaging-H3ABPPD3.js +0 -51
  594. package/dist/plot.disco-X7KCDWGX.js +0 -98
  595. package/dist/plot.ssgq-GYRVHTC7.js +0 -130
  596. package/dist/plot.vaf2cov-B2TELPHL.js +0 -249
  597. package/dist/polar2-5KNZRLXY.js +0 -228
  598. package/dist/profileForms-FY34KXCL.js +0 -937
  599. package/dist/profilePlot-3FX2TPYC.js +0 -45
  600. package/dist/proteinView-WSEO3LD3.js +0 -1346
  601. package/dist/proteomeCohortCompare-KA2DF3EE.js +0 -866
  602. package/dist/pseudbulk.unit.spec-AT3TFCOW.js +0 -82
  603. package/dist/pseudobulk-4ZRHUC7W.js +0 -31
  604. package/dist/qualitative-3OBGJRP6.js +0 -241
  605. package/dist/qualitative-FHJD44OA.js +0 -34
  606. package/dist/radar2-X757WR6V.js +0 -323
  607. package/dist/radarFacility2-GUBAK4Y3.js +0 -331
  608. package/dist/rememberedGvQ.unit.spec-ADO4Y2OE.js +0 -210
  609. package/dist/render-MZEPNEMU.js +0 -29
  610. package/dist/report-TUAFDGAE.js +0 -213
  611. package/dist/sampleView-X6YKCBE7.js +0 -39
  612. package/dist/samplelst-UPNRALBH.js +0 -114
  613. package/dist/samplematrix-W3HZK3IS.js +0 -2188
  614. package/dist/sc-UL7233UR.js +0 -77
  615. package/dist/scatter-FTJ77NUM.js +0 -919
  616. package/dist/scatter-VQQRIW6N.js +0 -84
  617. package/dist/selectGenomeWithTklst-HPYPSPFI.js +0 -125
  618. package/dist/singleCellCellType-XTKGOH6H.js +0 -29
  619. package/dist/singleCellCellType.unit.spec-A62GT72A.js +0 -150
  620. package/dist/singleCellGeneExpression-X7H5GTU3.js +0 -29
  621. package/dist/singleCellGeneExpression.unit.spec-2KQBHG7O.js +0 -144
  622. package/dist/singleCellNumericValue-6YS42PZ2.js +0 -29
  623. package/dist/singleCellNumericValue.unit.spec-DNVXQFKI.js +0 -412
  624. package/dist/singleCellPlot-MGOQ7EQV.js +0 -44
  625. package/dist/singlecell-CIOB5XON.js +0 -77
  626. package/dist/singlecell-QW3SLQD6.js +0 -1562
  627. package/dist/snp-6B4MIPKL.js +0 -29
  628. package/dist/snp.unit.spec-HNILS56E.js +0 -167
  629. package/dist/snplocus-DDFLYZ2Y.js +0 -200
  630. package/dist/snplst-JYKOV73J.js +0 -36
  631. package/dist/spliceevent.a53ss.diagram-IBD5ITXR.js +0 -142
  632. package/dist/spliceevent.exonskip.diagram-ZJGEVUYW.js +0 -274
  633. package/dist/spliceevent.noeventdiagram-RNLNTFOW.js +0 -451
  634. package/dist/ssGSEA-42VQLAXL.js +0 -29
  635. package/dist/ssGSEA.unit.spec-FBJANIKG.js +0 -79
  636. package/dist/stattable-FROSNTJY.js +0 -112
  637. package/dist/studyCatalog-XIYNJ24U.js +0 -457
  638. package/dist/summarizeCnvGeneexp-N3OFI24L.js +0 -154
  639. package/dist/summarizeGeneexpSurvival-J4DO2AL4.js +0 -101
  640. package/dist/summarizeMutationCnv-Y43BBSI4.js +0 -155
  641. package/dist/summarizeMutationDiagnosis-JAEAUFCA.js +0 -31
  642. package/dist/summarizeMutationSurvival-4QZDDXDV.js +0 -95
  643. package/dist/summary-DTJZ7NNA.js +0 -40
  644. package/dist/summary.integration.spec-HRRE3J45.js +0 -405
  645. package/dist/summaryInput-WCADUZBK.js +0 -238
  646. package/dist/sunburst-BGXSCB63.js +0 -274
  647. package/dist/sunburst-DSFFFP33.js +0 -504
  648. package/dist/sunburst-DSFFFP33.js.map +0 -7
  649. package/dist/survival-LFXQIWRT.js +0 -49
  650. package/dist/survival-ONWZ5RFM.js +0 -1248
  651. package/dist/survival.integration.spec-ZP7XWHQH.js +0 -609
  652. package/dist/svgraph-2SL2SJVU.js +0 -1377
  653. package/dist/svmr-ONIPMLC2.js +0 -3834
  654. package/dist/swimmer-2EJZH5PP.js +0 -785
  655. package/dist/swimmer-2EJZH5PP.js.map +0 -7
  656. package/dist/table-LLCFO4KK.js +0 -192
  657. package/dist/termCollection-DAHJGR5P.js +0 -247
  658. package/dist/termCollection-QIN53TIL.js +0 -29
  659. package/dist/termCollection.unit.spec-FQOX2IVP.js +0 -295
  660. package/dist/termCollectionFractionSelection-UKEVVZXL.js +0 -38
  661. package/dist/termCollectionFractionSelection.unit.spec-URGEYBU2.js +0 -184
  662. package/dist/tk-4PYQ6WJQ.js +0 -1116
  663. package/dist/tk-4PYQ6WJQ.js.map +0 -7
  664. package/dist/tk-GM7CJ2LU.js +0 -37
  665. package/dist/tp.ui-TRUHW6GP.js +0 -1453
  666. package/dist/tvs.categorical-IY6YSFVN.js +0 -28
  667. package/dist/tvs.condition-YTD7GOPW.js +0 -160
  668. package/dist/tvs.density-CB24PXDE.js +0 -19
  669. package/dist/tvs.dt-AQQIZD5Z.js +0 -34
  670. package/dist/tvs.dtcnv.categorical-WOAOGJSW.js +0 -31
  671. package/dist/tvs.dtcnv.continuous-TJBEPJGO.js +0 -72
  672. package/dist/tvs.dtfusion-SFMZQKKU.js +0 -31
  673. package/dist/tvs.dtitd-Q5RQTCLD.js +0 -31
  674. package/dist/tvs.dtsnvindel-UEK4O6WI.js +0 -31
  675. package/dist/tvs.dtsv-ECS4KEYG.js +0 -31
  676. package/dist/tvs.multivalue-CJIZ3I54.js +0 -84
  677. package/dist/tvs.numeric-UFAOJR2B.js +0 -32
  678. package/dist/tvs.samplelst-BVFY2P7Q.js +0 -95
  679. package/dist/tvs.survival-L56B3I55.js +0 -110
  680. package/dist/tvs.termCollection-BFIBVBSA.js +0 -118
  681. package/dist/vocabulary-MTKDDDGB.js +0 -32
  682. package/dist/wsi.direct-OSHY7VL4.js +0 -11514
  683. /package/dist/{2dmaf-O2SQ5RGD.js.map → 2dmaf-7YU3SNKL.js.map} +0 -0
  684. /package/dist/{AggMatrixInput-LUCTWXHU.js.map → AggMatrixInput-73CDR5FS.js.map} +0 -0
  685. /package/dist/{AggregateMatrix-JVMF27YL.js.map → AggregateMatrix-NNULVFBM.js.map} +0 -0
  686. /package/dist/{AppHeader-DJU6HRKO.js.map → AppHeader-EZDDLLXU.js.map} +0 -0
  687. /package/dist/{BoxPlot-22RXMPRL.js.map → BoxPlot-463E7CRY.js.map} +0 -0
  688. /package/dist/{CorrelationVolcano-PBZWPFSN.js.map → CorrelationVolcano-LHIIMBPP.js.map} +0 -0
  689. /package/dist/{Cuminc-EL74X5GY.js.map → Cuminc-UL2TCIKV.js.map} +0 -0
  690. /package/dist/{DE-W5SAMMRW.js.map → DE-VRFSKFDW.js.map} +0 -0
  691. /package/dist/{DEinput-ZKEFJZQU.js.map → DEinput-FZTQRWVC.js.map} +0 -0
  692. /package/dist/{DM-ABKDXMDG.js.map → DM-PO7CQZNT.js.map} +0 -0
  693. /package/dist/{DifferentialAnalysis-3JTZ5WCQ.js.map → DifferentialAnalysis-WK6HE3YH.js.map} +0 -0
  694. /package/dist/{Disco-ME53U25C.js.map → Disco-YBNQJQFG.js.map} +0 -0
  695. /package/dist/{Disco.UI-F7XKJMKR.js.map → Disco.UI-HC5XYBFV.js.map} +0 -0
  696. /package/dist/{DmrPlot-OWBXUTON.js.map → DmrPlot-7VJ5C66D.js.map} +0 -0
  697. /package/dist/{GB-7X6DBWKS.js.map → GB-VPFQRDRO.js.map} +0 -0
  698. /package/dist/{GSEA-GAZIEGD7.js.map → GSEA-ZEJB3QZQ.js.map} +0 -0
  699. /package/dist/{GeneExpInput-BAOC6ICV.js.map → GeneExpInput-SBDDIY6G.js.map} +0 -0
  700. /package/dist/{Geomap-OZERLL7V.js.map → Geomap-23AHGP2V.js.map} +0 -0
  701. /package/dist/{HicApp-WDH5LVTD.js.map → HicApp-7AQQE4CM.js.map} +0 -0
  702. /package/dist/{IDCViewer-XBZFU3BU.js.map → IDCViewer-NO5Q6VOB.js.map} +0 -0
  703. /package/dist/{NumBinaryEditor-5R4EUQOZ.js.map → NumBinaryEditor-DSRP4OOU.js.map} +0 -0
  704. /package/dist/{NumBinaryEditor.unit.spec-ULBXMOYY.js.map → NumBinaryEditor.unit.spec-TT666YL4.js.map} +0 -0
  705. /package/dist/{NumContEditor-EN6V4FLQ.js.map → NumContEditor-6CURFOCH.js.map} +0 -0
  706. /package/dist/{NumContEditor.unit.spec-VDWKNIFN.js.map → NumContEditor.unit.spec-MNVCFCMP.js.map} +0 -0
  707. /package/dist/{NumCustomBinEditor-UB34ALNZ.js.map → NumCustomBinEditor-SQRR5EFL.js.map} +0 -0
  708. /package/dist/{NumCustomBinEditor.unit.spec-WZXJ7GEC.js.map → NumCustomBinEditor.unit.spec-F7BZWGGT.js.map} +0 -0
  709. /package/dist/{NumDiscreteEditor-H6J67YEL.js.map → NumDiscreteEditor-U7Z2QNYP.js.map} +0 -0
  710. /package/dist/{NumDiscreteEditor.unit.spec-KJ7YU22W.js.map → NumDiscreteEditor.unit.spec-EIEBUZCX.js.map} +0 -0
  711. /package/dist/{NumRegularBinEditor-R5JVUG7J.js.map → NumRegularBinEditor-CVZSWN6Y.js.map} +0 -0
  712. /package/dist/{NumRegularBinEditor.unit.spec-RZ73FMNO.js.map → NumRegularBinEditor.unit.spec-ZMAJOIHL.js.map} +0 -0
  713. /package/dist/{NumSplineEditor-AOR6OAJA.js.map → NumSplineEditor-U43D5NBJ.js.map} +0 -0
  714. /package/dist/{NumSplineEditor.unit.spec-Z6ZEI3UO.js.map → NumSplineEditor.unit.spec-C52AADTS.js.map} +0 -0
  715. /package/dist/{NumericDensity-SRTFTDQA.js.map → NumericDensity-PUKDZOVI.js.map} +0 -0
  716. /package/dist/{NumericDensity.unit.spec-MRREBAYU.js.map → NumericDensity.unit.spec-2347S76D.js.map} +0 -0
  717. /package/dist/{NumericHandler-7RALUACA.js.map → NumericHandler-3RT32PTR.js.map} +0 -0
  718. /package/dist/{NumericHandler.unit.spec-MDO23WRB.js.map → NumericHandler.unit.spec-4PADL4KZ.js.map} +0 -0
  719. /package/dist/{ProteomeInput-MOBXHRD5.js.map → ProteomeInput-NFV4FW4U.js.map} +0 -0
  720. /package/dist/{Regression-XWT4NNTG.js.map → Regression-N7M7N6G4.js.map} +0 -0
  721. /package/dist/{RunChart2-Q7W5MWJS.js.map → RunChart2-UPQ7C6QE.js.map} +0 -0
  722. /package/dist/{SC-MM3JTEVL.js.map → SC-KBW2NHUV.js.map} +0 -0
  723. /package/dist/{Violin-XNTBDUPG.js.map → Violin-GWCOP3ZF.js.map} +0 -0
  724. /package/dist/{Wsi-22KJSFVH.js.map → Wsi-NXAEOYIS.js.map} +0 -0
  725. /package/dist/{adSandbox-TLYWQOOA.js.map → adSandbox-RPEWEEW7.js.map} +0 -0
  726. /package/dist/{animatedBubbleChart-67SY5JGP.js.map → animatedBubbleChart-ILDMZRBX.js.map} +0 -0
  727. /package/dist/{app-FG3KPE4R.js.map → app-LOUC4J47.js.map} +0 -0
  728. /package/dist/{app-VK5LYO6B.js.map → app-MRKXZ6AZ.js.map} +0 -0
  729. /package/dist/{barchart-IGWRVB6W.js.map → barchart-CJR37234.js.map} +0 -0
  730. /package/dist/{barchart2-TT6OBJJP.js.map → barchart2-QQYLTHWR.js.map} +0 -0
  731. /package/dist/{block.init-2Y6CNK7H.js.map → block.init-YJQTJIDO.js.map} +0 -0
  732. /package/dist/{block.mds.expressionrank-VZ4JVPTG.js.map → block.mds.expressionrank-GBMEI5KQ.js.map} +0 -0
  733. /package/dist/{block.mds.geneboxplot-NYMS32JP.js.map → block.mds.geneboxplot-XWE3E5IW.js.map} +0 -0
  734. /package/dist/{block.mds.junction-3R6C3B5W.js.map → block.mds.junction-QLEHFVPE.js.map} +0 -0
  735. /package/dist/{block.mds.svcnv-SO5CYYIQ.js.map → block.mds.svcnv-53DTOPBC.js.map} +0 -0
  736. /package/dist/{block.svg-R4ASXXNW.js.map → block.svg-57T37ABS.js.map} +0 -0
  737. /package/dist/{block.tk.aicheck-LYRTDZRA.js.map → block.tk.aicheck-6DXJTS3H.js.map} +0 -0
  738. /package/dist/{block.tk.bigwig.ui-3KMMZX2M.js.map → block.tk.bigwig.ui-OYIVXE2L.js.map} +0 -0
  739. /package/dist/{block.tk.hicstraw-7HH4PGFY.js.map → block.tk.hicstraw-UKTGEBWT.js.map} +0 -0
  740. /package/dist/{block.tk.junction-BPEKLYS2.js.map → block.tk.junction-ZU5KPFQ3.js.map} +0 -0
  741. /package/dist/{block.tk.junction.textmatrixui-2QU5DL2X.js.map → block.tk.junction.textmatrixui-P4WXTAZR.js.map} +0 -0
  742. /package/dist/{block.tk.ld-TJREYPNY.js.map → block.tk.ld-3PQ4O2AE.js.map} +0 -0
  743. /package/dist/{block.tk.menu-HDBZK4YP.js.map → block.tk.menu-LLITB6UA.js.map} +0 -0
  744. /package/dist/{block.tk.pgv-G5GCYBK2.js.map → block.tk.pgv-Y3FBXUO3.js.map} +0 -0
  745. /package/dist/{brainImaging-ODWHF7WZ.js.map → brainImaging-4B3WXLNP.js.map} +0 -0
  746. /package/dist/{brainRegions-DC7DEA7N.js.map → brainRegions-7VLONUWN.js.map} +0 -0
  747. /package/dist/{bubbleHeatmap-T5ACULRL.js.map → bubbleHeatmap-DI6GJRR6.js.map} +0 -0
  748. /package/dist/{cellTypeBubbleHeatmap-RQINXXTK.js.map → cellTypeBubbleHeatmap-HJY53DB2.js.map} +0 -0
  749. /package/dist/{chunk-TWTPWEYL.js.map → chunk-226MNBZ2.js.map} +0 -0
  750. /package/dist/{chunk-AUPTEHV7.js.map → chunk-2CNFGVHU.js.map} +0 -0
  751. /package/dist/{chunk-DJMDETVU.js.map → chunk-2MC3RNKA.js.map} +0 -0
  752. /package/dist/{chunk-2PHFY3VP.js.map → chunk-2OMX5AYB.js.map} +0 -0
  753. /package/dist/{chunk-64JHE3GV.js.map → chunk-2SL4QWUS.js.map} +0 -0
  754. /package/dist/{chunk-WETOH7YW.js.map → chunk-3KGBC5MK.js.map} +0 -0
  755. /package/dist/{chunk-UAB5PGOP.js.map → chunk-3PCRAPUV.js.map} +0 -0
  756. /package/dist/{chunk-ZWLT5QS3.js.map → chunk-4DBOMSKP.js.map} +0 -0
  757. /package/dist/{chunk-2UB6JZ3I.js.map → chunk-57BS6KNI.js.map} +0 -0
  758. /package/dist/{chunk-UJIB7QM3.js.map → chunk-5AXS5G4A.js.map} +0 -0
  759. /package/dist/{chunk-NS2MZN3C.js.map → chunk-5DI4UNH5.js.map} +0 -0
  760. /package/dist/{chunk-ATZNXW5F.js.map → chunk-5HJG6ECV.js.map} +0 -0
  761. /package/dist/{chunk-NYEFSOKD.js.map → chunk-5ZYANHGX.js.map} +0 -0
  762. /package/dist/{chunk-WV44DGEJ.js.map → chunk-6T4MN7LV.js.map} +0 -0
  763. /package/dist/{chunk-QM724EG2.js.map → chunk-75MRUW2K.js.map} +0 -0
  764. /package/dist/{chunk-7PQVNQFR.js.map → chunk-7J3W3KCN.js.map} +0 -0
  765. /package/dist/{chunk-4OOQ52ET.js.map → chunk-AIZYAKIE.js.map} +0 -0
  766. /package/dist/{chunk-VBDJG6GZ.js.map → chunk-AJNFI6GA.js.map} +0 -0
  767. /package/dist/{chunk-NQMS7WV3.js.map → chunk-BJAWDZBL.js.map} +0 -0
  768. /package/dist/{chunk-VOXUMZMG.js.map → chunk-C6PVZVIH.js.map} +0 -0
  769. /package/dist/{chunk-24ZS2XWC.js.map → chunk-C77X5ZUV.js.map} +0 -0
  770. /package/dist/{chunk-LSRFRZNP.js.map → chunk-C7KUMZQM.js.map} +0 -0
  771. /package/dist/{chunk-6MUJGVOH.js.map → chunk-C7ROKWV2.js.map} +0 -0
  772. /package/dist/{chunk-XVEEMQAT.js.map → chunk-CAH6LJ5Z.js.map} +0 -0
  773. /package/dist/{chunk-RIL33JCW.js.map → chunk-CUCP2GMT.js.map} +0 -0
  774. /package/dist/{chunk-FOUMNTII.js.map → chunk-DTGAMBRJ.js.map} +0 -0
  775. /package/dist/{chunk-7ZEJKFGW.js.map → chunk-DXT7GDHY.js.map} +0 -0
  776. /package/dist/{chunk-IKZQST6E.js.map → chunk-ENPMWVWG.js.map} +0 -0
  777. /package/dist/{chunk-DXM5MQCZ.js.map → chunk-EYKJQJ7R.js.map} +0 -0
  778. /package/dist/{chunk-B2KYLEYM.js.map → chunk-FE5TCBIT.js.map} +0 -0
  779. /package/dist/{chunk-UCB3W3OT.js.map → chunk-FJ2JV2VK.js.map} +0 -0
  780. /package/dist/{chunk-DRESQF33.js.map → chunk-FZYVPRVQ.js.map} +0 -0
  781. /package/dist/{chunk-5TPWMYBG.js.map → chunk-GBKQHVKJ.js.map} +0 -0
  782. /package/dist/{chunk-2QFMKWNS.js.map → chunk-GUW7VTUL.js.map} +0 -0
  783. /package/dist/{chunk-3GQ54XTJ.js.map → chunk-H7F6DMJA.js.map} +0 -0
  784. /package/dist/{chunk-IPRYYK26.js.map → chunk-HH3NUAR2.js.map} +0 -0
  785. /package/dist/{chunk-A6ZUYQHO.js.map → chunk-HRTPGNOG.js.map} +0 -0
  786. /package/dist/{chunk-H3YF55ZI.js.map → chunk-IFPRYTS7.js.map} +0 -0
  787. /package/dist/{chunk-YBOHXANC.js.map → chunk-IJSFSUI4.js.map} +0 -0
  788. /package/dist/{chunk-BJCET6RU.js.map → chunk-IRQKX6DL.js.map} +0 -0
  789. /package/dist/{chunk-GN2A5NL5.js.map → chunk-JHLF2ZC2.js.map} +0 -0
  790. /package/dist/{chunk-ALIMVUHR.js.map → chunk-JNZL7HKB.js.map} +0 -0
  791. /package/dist/{chunk-GX6G2SSW.js.map → chunk-K2ARLT2A.js.map} +0 -0
  792. /package/dist/{chunk-SO76DLSZ.js.map → chunk-K3G56J5R.js.map} +0 -0
  793. /package/dist/{chunk-WCNMP54T.js.map → chunk-KKUCG2QE.js.map} +0 -0
  794. /package/dist/{chunk-D6U65W7Q.js.map → chunk-KPXCXBNU.js.map} +0 -0
  795. /package/dist/{chunk-6YGSVJJD.js.map → chunk-MANAUI7R.js.map} +0 -0
  796. /package/dist/{chunk-7XW4JWMJ.js.map → chunk-MEUSRAOE.js.map} +0 -0
  797. /package/dist/{chunk-NR6WFCPF.js.map → chunk-MHWYRNGA.js.map} +0 -0
  798. /package/dist/{chunk-MP7BA3GK.js.map → chunk-MSTYU3QO.js.map} +0 -0
  799. /package/dist/{chunk-MVSUESEV.js.map → chunk-MWARRQT4.js.map} +0 -0
  800. /package/dist/{chunk-YNQFOPS6.js.map → chunk-MXKYPTZ7.js.map} +0 -0
  801. /package/dist/{chunk-NUA66GW7.js.map → chunk-NX5IB4IY.js.map} +0 -0
  802. /package/dist/{chunk-4ENIOXIT.js.map → chunk-OZUF7O2S.js.map} +0 -0
  803. /package/dist/{chunk-SLHXR4BZ.js.map → chunk-QNCE6EOK.js.map} +0 -0
  804. /package/dist/{chunk-5NI77Z3O.js.map → chunk-RIHO7ZD5.js.map} +0 -0
  805. /package/dist/{chunk-LYX4S6WA.js.map → chunk-RV335DF2.js.map} +0 -0
  806. /package/dist/{chunk-3IE6FDVA.js.map → chunk-THAUD62Q.js.map} +0 -0
  807. /package/dist/{chunk-JL3PYV5F.js.map → chunk-VBTBUXXX.js.map} +0 -0
  808. /package/dist/{chunk-FTGLS763.js.map → chunk-VHWJK2MP.js.map} +0 -0
  809. /package/dist/{chunk-K6VYSDB5.js.map → chunk-VLIOMJDR.js.map} +0 -0
  810. /package/dist/{chunk-U2GHNZ4N.js.map → chunk-VMK4RHV5.js.map} +0 -0
  811. /package/dist/{chunk-GWNCQ5YI.js.map → chunk-WKT7RF3C.js.map} +0 -0
  812. /package/dist/{chunk-ETXOEP4N.js.map → chunk-WXSMUSU7.js.map} +0 -0
  813. /package/dist/{chunk-ZYAZHJPZ.js.map → chunk-WXSX5OQJ.js.map} +0 -0
  814. /package/dist/{chunk-CTVPW77S.js.map → chunk-WY3IORKG.js.map} +0 -0
  815. /package/dist/{chunk-WKGKKM6F.js.map → chunk-WYSOOKFJ.js.map} +0 -0
  816. /package/dist/{chunk-TUO5I6LP.js.map → chunk-XBBFFOLS.js.map} +0 -0
  817. /package/dist/{chunk-YVQ4USPP.js.map → chunk-XSRQGX5H.js.map} +0 -0
  818. /package/dist/{chunk-KSS26PXB.js.map → chunk-YLL6CTBL.js.map} +0 -0
  819. /package/dist/{chunk-ANBGNYNP.js.map → chunk-YPBY37KD.js.map} +0 -0
  820. /package/dist/{chunk-DKPAOVJH.js.map → chunk-YUNJBIK4.js.map} +0 -0
  821. /package/dist/{chunk-IANE75G3.js.map → chunk-Z5ECCUNG.js.map} +0 -0
  822. /package/dist/{cohort-QSLKB4ZO.js.map → cohort-5WL6UJOS.js.map} +0 -0
  823. /package/dist/{cohortSunburst-AQFSNJ5K.js.map → cohortSunburst-R3Z5KJQL.js.map} +0 -0
  824. /package/dist/{condition-MLS6TJHV.js.map → condition-2IILUMVB.js.map} +0 -0
  825. /package/dist/{controls-ZT3GZ667.js.map → controls-G3JITZF5.js.map} +0 -0
  826. /package/dist/{controls.config-F7NIPLKB.js.map → controls.config-BO7KPPET.js.map} +0 -0
  827. /package/dist/{correlation-ZEIQJGSQ.js.map → correlation-CZILLVEM.js.map} +0 -0
  828. /package/dist/{customdata.inputui-6PJSAJK2.js.map → customdata.inputui-BXFQAMTR.js.map} +0 -0
  829. /package/dist/{databrowser.ui-EMZ5L2Y7.js.map → databrowser.ui-V2NJQF3U.js.map} +0 -0
  830. /package/dist/{dictionary-U2BWGY6B.js.map → dictionary-OVAQX6R3.js.map} +0 -0
  831. /package/dist/{dnaMethylation-R34E2XNC.js.map → dnaMethylation-DHPFRXB2.js.map} +0 -0
  832. /package/dist/{dnaMethylation.integration.spec-4Z2AJHWY.js.map → dnaMethylation.integration.spec-PJLIRGN5.js.map} +0 -0
  833. /package/dist/{dofetch-JY4A7BYI.js.map → dofetch-KBTN6OW4.js.map} +0 -0
  834. /package/dist/{e2pca-WSSCXX6A.js.map → e2pca-O7SNMJGB.js.map} +0 -0
  835. /package/dist/{ep-ATUWEHDJ.js.map → ep-NIVLKG4S.js.map} +0 -0
  836. /package/dist/{expclust.gdc.spec-QRIRRPO7.js.map → expclust.gdc.spec-LVCD6C43.js.map} +0 -0
  837. /package/dist/{facet-5VDCSP3S.js.map → facet-LB4SCXE4.js.map} +0 -0
  838. /package/dist/{gb-Y4UG6LFA.js.map → gb-3IJ4NCPO.js.map} +0 -0
  839. /package/dist/{geneExpClustering-OO67JNJ2.js.map → geneExpClustering-SIAC7CMA.js.map} +0 -0
  840. /package/dist/{geneExpression-KPRFXKU7.js.map → geneExpression-KPUOZ4PT.js.map} +0 -0
  841. /package/dist/{geneExpression-5KGV3MAA.js.map → geneExpression-P2TTZXN2.js.map} +0 -0
  842. /package/dist/{geneExpression.unit.spec-YV45EZ5O.js.map → geneExpression.unit.spec-Q5D6XHUF.js.map} +0 -0
  843. /package/dist/{geneORA-R74JPUTC.js.map → geneORA-PKUIJKTL.js.map} +0 -0
  844. /package/dist/{geneRanking-IJTXNMHV.js.map → geneRanking-ZGT5MHBV.js.map} +0 -0
  845. /package/dist/{geneVariant-JT3EGAIH.js.map → geneVariant-24YNANTT.js.map} +0 -0
  846. /package/dist/{geneVariant-HBAHT6LU.js.map → geneVariant-CDGENHWQ.js.map} +0 -0
  847. /package/dist/{geneVariant.integration.spec-TFQYPUAS.js.map → geneVariant.integration.spec-7QW4C2WO.js.map} +0 -0
  848. /package/dist/{genefusion.ui-MMTQMTHC.js.map → genefusion.ui-NVXGSBXD.js.map} +0 -0
  849. /package/dist/{geneset-VMBICNCZ.js.map → geneset-7STL6UDD.js.map} +0 -0
  850. /package/dist/{genomeBrowser.spec-2XLLIYGA.js.map → genomeBrowser.spec-OE2CIP7I.js.map} +0 -0
  851. /package/dist/{grin2-2RYPEUWV.js.map → grin2-2HXUIY5O.js.map} +0 -0
  852. /package/dist/{grin2-Y6KAFVV2.js.map → grin2-32IIJR5E.js.map} +0 -0
  853. /package/dist/{hierCluster-EKGFBQT4.js.map → hierCluster-MDZEI2KB.js.map} +0 -0
  854. /package/dist/{hierCluster-Z4PVNMGS.js.map → hierCluster-T3PZUGBI.js.map} +0 -0
  855. /package/dist/{hierCluster.config-Q6WUNK2K.js.map → hierCluster.config-7UN6AYGB.js.map} +0 -0
  856. /package/dist/{hierCluster.integration.spec-2LHSHNFC.js.map → hierCluster.integration.spec-DWOYVK6T.js.map} +0 -0
  857. /package/dist/{hierCluster.interactivity-OGQ3KUY6.js.map → hierCluster.interactivity-5OM6XNFG.js.map} +0 -0
  858. /package/dist/{hierCluster.renderers-3GJZXG75.js.map → hierCluster.renderers-YGX6MZZW.js.map} +0 -0
  859. /package/dist/{imagePlot-ZJEZPBX7.js.map → imagePlot-KBRXDV5G.js.map} +0 -0
  860. /package/dist/{importPlot-GFEFYEHZ.js.map → importPlot-DJMIC22L.js.map} +0 -0
  861. /package/dist/{isoformExpression-A2X3DSR6.js.map → isoformExpression-SWDWADRC.js.map} +0 -0
  862. /package/dist/{isoformExpression.unit.spec-VKMEGCL4.js.map → isoformExpression.unit.spec-2U5KCYBP.js.map} +0 -0
  863. /package/dist/{junction-HWIHLQU2.js.map → junction-NMXVVGRG.js.map} +0 -0
  864. /package/dist/{junction.customTerm-C3VWXEYH.js.map → junction.customTerm-3R2GNE3A.js.map} +0 -0
  865. /package/dist/{junction.unit.spec-ZYJGDOXJ.js.map → junction.unit.spec-JTGBPPN7.js.map} +0 -0
  866. /package/dist/{launch.adhoc-HW5AZM4T.js.map → launch.adhoc-YB5SKMNY.js.map} +0 -0
  867. /package/dist/{leftlabel.sample-MTW2HRRQ.js.map → leftlabel.sample-QKXIODCS.js.map} +0 -0
  868. /package/dist/{lollipop-VWW5H6CR.js.map → lollipop-TSZ62PBH.js.map} +0 -0
  869. /package/dist/{maf-KEJYO3H4.js.map → maf-4L5YN4CG.js.map} +0 -0
  870. /package/dist/{maftimeline-MJZDSGSR.js.map → maftimeline-VOYB3NY3.js.map} +0 -0
  871. /package/dist/{matrix-3UJW6LOA.js.map → matrix-IWJECVTF.js.map} +0 -0
  872. /package/dist/{matrix-W4AX5OBM.js.map → matrix-MMJAJZA7.js.map} +0 -0
  873. /package/dist/{matrix.cells-5DAIZ3E5.js.map → matrix.cells-5RTZUJVN.js.map} +0 -0
  874. /package/dist/{matrix.config-PK26VPQT.js.map → matrix.config-DZGOZWJS.js.map} +0 -0
  875. /package/dist/{matrix.data-UK5DGKBK.js.map → matrix.data-Y5TPRGMW.js.map} +0 -0
  876. /package/dist/{matrix.groups-NM4Q5YDN.js.map → matrix.groups-6DXCAY4P.js.map} +0 -0
  877. /package/dist/{matrix.integration.spec-FGWNBCRR.js.map → matrix.integration.spec-2N237E7T.js.map} +0 -0
  878. /package/dist/{matrix.interactivity-4C37PII5.js.map → matrix.interactivity-FL33UUKR.js.map} +0 -0
  879. /package/dist/{matrix.layout-ODV7WXUP.js.map → matrix.layout-7SYHV3KJ.js.map} +0 -0
  880. /package/dist/{matrix.legend-5MY7OXWN.js.map → matrix.legend-S3E76TVO.js.map} +0 -0
  881. /package/dist/{matrix.renderers-QA7W7ZUL.js.map → matrix.renderers-3SIBT2RP.js.map} +0 -0
  882. /package/dist/{matrix.serieses-4FSFJPCK.js.map → matrix.serieses-3UGLZW25.js.map} +0 -0
  883. /package/dist/{matrix.sort-3QLFMBJ5.js.map → matrix.sort-A7CNLDUJ.js.map} +0 -0
  884. /package/dist/{matrix.sort.unit.spec-HVOC6IYT.js.map → matrix.sort.unit.spec-L3H44T6I.js.map} +0 -0
  885. /package/dist/{matrix.sorterUi-EY3SA6CG.js.map → matrix.sorterUi-6PZR3YOD.js.map} +0 -0
  886. /package/dist/{matrix.sorterUi.unit.spec-OAXWPZZI.js.map → matrix.sorterUi.unit.spec-2NRU5UFH.js.map} +0 -0
  887. /package/dist/{matrix.unit.spec-RAL7AU22.js.map → matrix.unit.spec-HRZIJB6T.js.map} +0 -0
  888. /package/dist/{mavb-KIM63AC4.js.map → mavb-ZVRQSDPS.js.map} +0 -0
  889. /package/dist/{mds.fimo-DMAVM56P.js.map → mds.fimo-ZKETTET7.js.map} +0 -0
  890. /package/dist/{mds.samplescatterplot-KILTR2C7.js.map → mds.samplescatterplot-ZV3UNRLP.js.map} +0 -0
  891. /package/dist/{mds.survivalplot-PV76ANBP.js.map → mds.survivalplot-OVXZRTU4.js.map} +0 -0
  892. /package/dist/{multivalue-2V5LMQY7.js.map → multivalue-6BE5IA4F.js.map} +0 -0
  893. /package/dist/{numericDictTermCluster-TGL4X6UC.js.map → numericDictTermCluster-6XDVVWLE.js.map} +0 -0
  894. /package/dist/{oncomatrix-2O7SLXHX.js.map → oncomatrix-XK62NEOO.js.map} +0 -0
  895. /package/dist/{oncomatrix.spec-HZJKOF5G.js.map → oncomatrix.spec-YVTCHOPS.js.map} +0 -0
  896. /package/dist/{plot.2dvaf-424NNMMA.js.map → plot.2dvaf-NUOBWMNX.js.map} +0 -0
  897. /package/dist/{plot.app-YBZDNST2.js.map → plot.app-G6IQWXTV.js.map} +0 -0
  898. /package/dist/{plot.barplot-YZQBYJUY.js.map → plot.barplot-6QJ6HEJR.js.map} +0 -0
  899. /package/dist/{plot.boxplot-5OW6IBQL.js.map → plot.boxplot-XKQJSW2O.js.map} +0 -0
  900. /package/dist/{plot.brainImaging-H3ABPPD3.js.map → plot.brainImaging-UTHFJFXU.js.map} +0 -0
  901. /package/dist/{plot.disco-X7KCDWGX.js.map → plot.disco-3MSCX7TM.js.map} +0 -0
  902. /package/dist/{plot.ssgq-GYRVHTC7.js.map → plot.ssgq-4KBVHF42.js.map} +0 -0
  903. /package/dist/{plot.vaf2cov-B2TELPHL.js.map → plot.vaf2cov-OGUQSSDS.js.map} +0 -0
  904. /package/dist/{polar2-5KNZRLXY.js.map → polar2-V7M56GTZ.js.map} +0 -0
  905. /package/dist/{profileForms-FY34KXCL.js.map → profileForms-TS3BJLHH.js.map} +0 -0
  906. /package/dist/{profilePlot-3FX2TPYC.js.map → profilePlot-DP5272HR.js.map} +0 -0
  907. /package/dist/{proteinView-WSEO3LD3.js.map → proteinView-K4K4SP3L.js.map} +0 -0
  908. /package/dist/{proteomeCohortCompare-KA2DF3EE.js.map → proteomeCohortCompare-SFWVGLFK.js.map} +0 -0
  909. /package/dist/{pseudbulk.unit.spec-AT3TFCOW.js.map → pseudbulk.unit.spec-NFOA7J2C.js.map} +0 -0
  910. /package/dist/{pseudobulk-4ZRHUC7W.js.map → pseudobulk-XKZQEZ4I.js.map} +0 -0
  911. /package/dist/{qualitative-3OBGJRP6.js.map → qualitative-7OSFNVI5.js.map} +0 -0
  912. /package/dist/{qualitative-FHJD44OA.js.map → qualitative-OIIN6E4Y.js.map} +0 -0
  913. /package/dist/{radar2-X757WR6V.js.map → radar2-AHZJKX7S.js.map} +0 -0
  914. /package/dist/{radarFacility2-GUBAK4Y3.js.map → radarFacility2-OUW6D5E7.js.map} +0 -0
  915. /package/dist/{rememberedGvQ.unit.spec-ADO4Y2OE.js.map → rememberedGvQ.unit.spec-SHTMMZGG.js.map} +0 -0
  916. /package/dist/{render-MZEPNEMU.js.map → render-7UZSGX3Q.js.map} +0 -0
  917. /package/dist/{report-TUAFDGAE.js.map → report-J7HKTXZ2.js.map} +0 -0
  918. /package/dist/{sampleView-X6YKCBE7.js.map → sampleView-6547OUIM.js.map} +0 -0
  919. /package/dist/{samplelst-UPNRALBH.js.map → samplelst-UHF23UEB.js.map} +0 -0
  920. /package/dist/{samplematrix-W3HZK3IS.js.map → samplematrix-OOKS3TMR.js.map} +0 -0
  921. /package/dist/{sc-UL7233UR.js.map → sc-WF2BLGNG.js.map} +0 -0
  922. /package/dist/{scatter-VQQRIW6N.js.map → scatter-ABCVFGRV.js.map} +0 -0
  923. /package/dist/{scatter-FTJ77NUM.js.map → scatter-WF7XM3IA.js.map} +0 -0
  924. /package/dist/{selectGenomeWithTklst-HPYPSPFI.js.map → selectGenomeWithTklst-67HU5KRB.js.map} +0 -0
  925. /package/dist/{singleCellCellType-XTKGOH6H.js.map → singleCellCellType-3FZPJ25V.js.map} +0 -0
  926. /package/dist/{singleCellCellType.unit.spec-A62GT72A.js.map → singleCellCellType.unit.spec-TOMREHWK.js.map} +0 -0
  927. /package/dist/{singleCellGeneExpression-X7H5GTU3.js.map → singleCellGeneExpression-NQTJ5KJQ.js.map} +0 -0
  928. /package/dist/{singleCellGeneExpression.unit.spec-2KQBHG7O.js.map → singleCellGeneExpression.unit.spec-ZWUQTU2N.js.map} +0 -0
  929. /package/dist/{singleCellNumericValue-6YS42PZ2.js.map → singleCellNumericValue-VI7H722L.js.map} +0 -0
  930. /package/dist/{singleCellNumericValue.unit.spec-DNVXQFKI.js.map → singleCellNumericValue.unit.spec-QGLHES7H.js.map} +0 -0
  931. /package/dist/{singleCellPlot-MGOQ7EQV.js.map → singleCellPlot-RU5T6SJK.js.map} +0 -0
  932. /package/dist/{singlecell-QW3SLQD6.js.map → singlecell-C3CJVNXP.js.map} +0 -0
  933. /package/dist/{singlecell-CIOB5XON.js.map → singlecell-NRQZ7KC6.js.map} +0 -0
  934. /package/dist/{snp-6B4MIPKL.js.map → snp-X6XY65VS.js.map} +0 -0
  935. /package/dist/{snp.unit.spec-HNILS56E.js.map → snp.unit.spec-6EENK7GQ.js.map} +0 -0
  936. /package/dist/{snplocus-DDFLYZ2Y.js.map → snplocus-R4JA6TFT.js.map} +0 -0
  937. /package/dist/{snplst-JYKOV73J.js.map → snplst-SOWVHSXH.js.map} +0 -0
  938. /package/dist/{spliceevent.a53ss.diagram-IBD5ITXR.js.map → spliceevent.a53ss.diagram-IRLCCVQZ.js.map} +0 -0
  939. /package/dist/{spliceevent.exonskip.diagram-ZJGEVUYW.js.map → spliceevent.exonskip.diagram-4KG7LE5D.js.map} +0 -0
  940. /package/dist/{spliceevent.noeventdiagram-RNLNTFOW.js.map → spliceevent.noeventdiagram-OWXAJJX7.js.map} +0 -0
  941. /package/dist/{ssGSEA-42VQLAXL.js.map → ssGSEA-EMOKPLMP.js.map} +0 -0
  942. /package/dist/{ssGSEA.unit.spec-FBJANIKG.js.map → ssGSEA.unit.spec-KXQ7R5WH.js.map} +0 -0
  943. /package/dist/{stattable-FROSNTJY.js.map → stattable-H2G7MOZG.js.map} +0 -0
  944. /package/dist/{studyCatalog-XIYNJ24U.js.map → studyCatalog-3ITQXWFL.js.map} +0 -0
  945. /package/dist/{summarizeCnvGeneexp-N3OFI24L.js.map → summarizeCnvGeneexp-ZIPU6YDY.js.map} +0 -0
  946. /package/dist/{summarizeGeneexpSurvival-J4DO2AL4.js.map → summarizeGeneexpSurvival-3RYU226R.js.map} +0 -0
  947. /package/dist/{summarizeMutationCnv-Y43BBSI4.js.map → summarizeMutationCnv-RGDBUB22.js.map} +0 -0
  948. /package/dist/{summarizeMutationDiagnosis-JAEAUFCA.js.map → summarizeMutationDiagnosis-Z4MZE6Y4.js.map} +0 -0
  949. /package/dist/{summarizeMutationSurvival-4QZDDXDV.js.map → summarizeMutationSurvival-Z5CNRH7E.js.map} +0 -0
  950. /package/dist/{summary-DTJZ7NNA.js.map → summary-6QQCNX3B.js.map} +0 -0
  951. /package/dist/{summary.integration.spec-HRRE3J45.js.map → summary.integration.spec-3ULXTZUP.js.map} +0 -0
  952. /package/dist/{summaryInput-WCADUZBK.js.map → summaryInput-4QKR34QB.js.map} +0 -0
  953. /package/dist/{termCollection-QIN53TIL.js.map → sunburst-KB3BWC72.js.map} +0 -0
  954. /package/dist/{sunburst-BGXSCB63.js.map → sunburst-XTFBHZNH.js.map} +0 -0
  955. /package/dist/{survival-LFXQIWRT.js.map → survival-7O6ZK63E.js.map} +0 -0
  956. /package/dist/{survival-ONWZ5RFM.js.map → survival-NNCY4K6C.js.map} +0 -0
  957. /package/dist/{survival.integration.spec-ZP7XWHQH.js.map → survival.integration.spec-ZYZHZAXA.js.map} +0 -0
  958. /package/dist/{svgraph-2SL2SJVU.js.map → svgraph-ZLSFFEAC.js.map} +0 -0
  959. /package/dist/{svmr-ONIPMLC2.js.map → svmr-REBBDEYM.js.map} +0 -0
  960. /package/dist/{table-LLCFO4KK.js.map → table-CWIQQESJ.js.map} +0 -0
  961. /package/dist/{termCollectionFractionSelection-UKEVVZXL.js.map → termCollection-7TYJSQ45.js.map} +0 -0
  962. /package/dist/{termCollection-DAHJGR5P.js.map → termCollection-7Z55QNL7.js.map} +0 -0
  963. /package/dist/{termCollection.unit.spec-FQOX2IVP.js.map → termCollection.unit.spec-LQ5MIBDH.js.map} +0 -0
  964. /package/dist/{tk-GM7CJ2LU.js.map → termCollectionFractionSelection-24DZYVDU.js.map} +0 -0
  965. /package/dist/{termCollectionFractionSelection.unit.spec-URGEYBU2.js.map → termCollectionFractionSelection.unit.spec-DCV2CFS5.js.map} +0 -0
  966. /package/dist/{tvs.categorical-IY6YSFVN.js.map → tk-2WZFPRCP.js.map} +0 -0
  967. /package/dist/{tp.ui-TRUHW6GP.js.map → tp.ui-HXQX2UH4.js.map} +0 -0
  968. /package/dist/{tvs.density-CB24PXDE.js.map → tvs.categorical-4D3JI2ER.js.map} +0 -0
  969. /package/dist/{tvs.condition-YTD7GOPW.js.map → tvs.condition-62FXFHZ5.js.map} +0 -0
  970. /package/dist/{tvs.dt-AQQIZD5Z.js.map → tvs.density-IGO4I4T2.js.map} +0 -0
  971. /package/dist/{tvs.numeric-UFAOJR2B.js.map → tvs.dt-FZSVMJOO.js.map} +0 -0
  972. /package/dist/{tvs.dtcnv.categorical-WOAOGJSW.js.map → tvs.dtcnv.categorical-PPFQIC42.js.map} +0 -0
  973. /package/dist/{tvs.dtcnv.continuous-TJBEPJGO.js.map → tvs.dtcnv.continuous-TV2IGHY4.js.map} +0 -0
  974. /package/dist/{tvs.dtfusion-SFMZQKKU.js.map → tvs.dtfusion-ON4BA4XJ.js.map} +0 -0
  975. /package/dist/{tvs.dtitd-Q5RQTCLD.js.map → tvs.dtitd-VFNROOWQ.js.map} +0 -0
  976. /package/dist/{tvs.dtsnvindel-UEK4O6WI.js.map → tvs.dtsnvindel-ZXOP37T5.js.map} +0 -0
  977. /package/dist/{tvs.dtsv-ECS4KEYG.js.map → tvs.dtsv-EUHPTW7J.js.map} +0 -0
  978. /package/dist/{tvs.multivalue-CJIZ3I54.js.map → tvs.multivalue-NHVXZNDI.js.map} +0 -0
  979. /package/dist/{vocabulary-MTKDDDGB.js.map → tvs.numeric-FPWDPO3J.js.map} +0 -0
  980. /package/dist/{tvs.samplelst-BVFY2P7Q.js.map → tvs.samplelst-ZZHRNUP4.js.map} +0 -0
  981. /package/dist/{tvs.survival-L56B3I55.js.map → tvs.survival-F3KSG3U6.js.map} +0 -0
  982. /package/dist/{tvs.termCollection-BFIBVBSA.js.map → tvs.termCollection-B37DZLDY.js.map} +0 -0
  983. /package/dist/{wsi.direct-OSHY7VL4.js.map → wsi.direct-3YH3QGQD.js.map} +0 -0
@@ -1,2619 +0,0 @@
1
- import {
2
- VolcanoModel,
3
- getGroupColors
4
- } from "./chunk-LYX4S6WA.js";
5
- import {
6
- manhattanLayoutDefaults,
7
- plotManhattan
8
- } from "./chunk-ATZNXW5F.js";
9
- import {
10
- CCRE_TRACK_NAME
11
- } from "./chunk-7PQVNQFR.js";
12
- import {
13
- BACKGROUND_CORRECTION_TITLE,
14
- DATermTypes,
15
- DataPointInteractions,
16
- GeneSetEditUI,
17
- MultiTermWrapperEditUI,
18
- PlotBase,
19
- axisstyle,
20
- controlsInit,
21
- downloadTable,
22
- drawHoverShapes,
23
- enabledTermTypes,
24
- fileDateStamp,
25
- fillTermWrapper,
26
- getCombinedTermFilter,
27
- getDNAMethTermName,
28
- getDNAMethUnit,
29
- getDefaultVolcanoSettings,
30
- getGEunit,
31
- getGroupForRegion,
32
- getSampleNum,
33
- renderTable,
34
- sayerror,
35
- table2col,
36
- to_svg,
37
- validateVolcanoSettings
38
- } from "./chunk-BKW35Z4U.js";
39
- import "./chunk-HJ6L54YS.js";
40
- import "./chunk-ETXOEP4N.js";
41
- import {
42
- Menu
43
- } from "./chunk-CNFTQSNE.js";
44
- import "./chunk-5NI77Z3O.js";
45
- import "./chunk-TVJOSRCH.js";
46
- import "./chunk-3CIL7KH7.js";
47
- import "./chunk-T4XPCSLP.js";
48
- import {
49
- HYPER_COLOR,
50
- HYPO_COLOR,
51
- dofetch3,
52
- formatElapsedTime
53
- } from "./chunk-CJHNPYFQ.js";
54
- import {
55
- uiLabel
56
- } from "./chunk-W5J3LTYS.js";
57
- import "./chunk-NR6WFCPF.js";
58
- import "./chunk-GN2A5NL5.js";
59
- import {
60
- DMR_SCAN_ELEMENT_TYPE,
61
- DNA_METHYLATION,
62
- GENE_EXPRESSION,
63
- JUNCTION,
64
- PROTEOME_DAP,
65
- SINGLECELL_CELLTYPE,
66
- axisBottom,
67
- axisLeft,
68
- bplen
69
- } from "./chunk-ME3HB3V6.js";
70
- import {
71
- copyMerge,
72
- getCompInit
73
- } from "./chunk-HBNB5TRH.js";
74
- import "./chunk-PF4DSFDR.js";
75
- import {
76
- linear
77
- } from "./chunk-4OLM3KSB.js";
78
- import "./chunk-6XKAOSQE.js";
79
- import {
80
- roundValueAuto
81
- } from "./chunk-TLT4YIG3.js";
82
- import "./chunk-5R63Q5KH.js";
83
- import {
84
- selectAll_default,
85
- select_default
86
- } from "./chunk-I6Y4O3RR.js";
87
- import {
88
- rgb
89
- } from "./chunk-Q5RDQNIT.js";
90
- import "./chunk-HS5PO5ZQ.js";
91
-
92
- // plots/volcano/promoterLabel.ts
93
- function elementNoun(elementType) {
94
- switch (elementType) {
95
- case void 0:
96
- case "":
97
- case "promoter":
98
- return { one: "Promoter", many: "promoters" };
99
- /* Two different promoter DEFINITIONS, deliberately given distinct nouns. 'promoter' is
100
- the TSS -1500/+500 window (Bibikova 2011 / Sandoval 2011 -- the 450K array's
101
- TSS1500+TSS200 categories); 'promoter_pls' is the ENCODE cCRE promoter-like element,
102
- ~349 bp, i.e. the CpG-island core with the shores removed. They cover different numbers
103
- of genes and their hit counts are NOT comparable, so the UI must never call both
104
- "promoters". */
105
- case "promoter_pls":
106
- return { one: "cCRE promoter", many: "cCRE promoters" };
107
- case "eqtm_block":
108
- return { one: "eQTM block", many: "eQTM blocks" };
109
- case "enhancer":
110
- return { one: "Enhancer", many: "enhancers" };
111
- /* Distal and proximal are separate ENCODE classes and separate hypotheses -- dELS are
112
- the intronic/intergenic enhancers where myeloma hypermethylation concentrates, pELS sit
113
- within 2 kb of a TSS and behave more promoter-like. There are 4.5x as many dELS, so their
114
- hit counts are not comparable to each other either. Naming them apart keeps a reader from
115
- reading two runs as the same analysis. */
116
- case "enhancer_distal":
117
- return { one: "Distal enhancer", many: "distal enhancers" };
118
- case "enhancer_proximal":
119
- return { one: "Proximal enhancer", many: "proximal enhancers" };
120
- // de novo regions called by the genome scan, not an annotated class at all
121
- case DMR_SCAN_ELEMENT_TYPE:
122
- return { one: "DMR", many: "DMRs" };
123
- default:
124
- return { one: "Element", many: "elements" };
125
- }
126
- }
127
- function formatPromoterLabel(d) {
128
- if (!d) return "";
129
- const id = d.promoter_id || "";
130
- const { chr, start, stop } = d;
131
- if (!chr || !Number.isFinite(start) || !Number.isFinite(stop)) return id;
132
- const region = `${chr}:${start}-${stop}`;
133
- const idx = id.match(/\.(p\d+)_[^_]*:\d+-\d+$/);
134
- return idx ? `${idx[1]} \xB7 ${region}` : region;
135
- }
136
-
137
- // plots/volcano/viewModel/VolcanoViewModel.ts
138
- function shortenGroupName(name) {
139
- if (name.length >= 25) return name.substring(0, 20) + "...";
140
- return name;
141
- }
142
- var VolcanoViewModel = class {
143
- constructor(config, response, settings) {
144
- this.numSignificant = 0;
145
- this.numNonSignificant = 0;
146
- /** The significant count split by direction, from the server so it reflects every
147
- * significant row rather than the maxInteractiveDots-capped `dots`. */
148
- this.numSignificantUp = 0;
149
- this.numSignificantDown = 0;
150
- this.minLogFoldChange = 0;
151
- this.maxLogFoldChange = 0;
152
- //Used for the y axis domain
153
- this.minLogPValue = 0;
154
- this.maxLogPValue = 0;
155
- //Unpadded extents — used for the visible axis labels/ticks (only span real data)
156
- this.minLogFoldChangeAxis = 0;
157
- this.maxLogFoldChangeAxis = 0;
158
- this.minLogPValueAxis = 0;
159
- this.maxLogPValueAxis = 0;
160
- //Dot radius in pixels (from server) — overlay rings size to match the PNG
161
- this.dotRadiusPx = 2;
162
- //Used in place of 0 p values that cannot be log transformed
163
- this.minNonZeroPValue = 1e-9;
164
- this.offset = 10;
165
- this.bottomPad = 60;
166
- this.horizPad = 70;
167
- this.topPad = 40;
168
- this.config = config;
169
- this.response = response;
170
- this.plotX = this.horizPad + this.offset * 2;
171
- this.dataRows = response.data.dots;
172
- const { caseColor, controlColor } = getGroupColors(this.config);
173
- const barplot = { colorNegative: controlColor, colorPositive: caseColor };
174
- this.termType = config.termType;
175
- this.scan = response.scan;
176
- this.singlePValue = config.termType == DATermTypes.PROTEOME_DAP || !!this.scan;
177
- this.pValueLabel = this.setPValueLabel(settings);
178
- this.pValueTable = {
179
- columns: [
180
- // a scan's effect size is delta-beta; the fold change is a difference of logits
181
- { label: this.scan ? "\u0394\u03B2" : "log\u2082(fold-change)", barplot, sortable: true },
182
- // DAP files carry a single FDR (adjusted p-value) and a scan a single p; other term
183
- // types report both a raw and an adjusted p-value.
184
- ...this.singlePValue ? [{ label: this.pValueLabel, sortable: true }] : [
185
- { label: "Original p-value", sortable: true },
186
- { label: "Adjusted p-value", sortable: true }
187
- ]
188
- ],
189
- /** Filled in setPointData(), one row per threshold-passing dot. Populated even when the
190
- * table is hidden — the download reads it. */
191
- rows: [],
192
- rowKeys: /* @__PURE__ */ new Map(),
193
- height: settings.height + this.topPad
194
- };
195
- this.settings = settings;
196
- this.dataType = this.setDataType();
197
- this.setMinMaxValues();
198
- const plotDim = this.setPlotDimensions();
199
- this.setPTableColumns();
200
- const pointData = this.setPointData(plotDim, controlColor, caseColor);
201
- const foldChangeIdx = this.pValueTable.columns.findIndex((c) => c.barplot);
202
- this.pValueTable.rows.sort((a, b) => b[foldChangeIdx].value - a[foldChangeIdx].value);
203
- this.viewData = {
204
- images: response.images || [],
205
- termInfo: this.setTermInfo(plotDim),
206
- plotDim,
207
- pointData,
208
- pValueTableData: this.pValueTable,
209
- statsData: this.setStatsData(),
210
- scan: this.scan,
211
- pValueLabel: this.pValueLabel,
212
- singlePValue: this.singlePValue,
213
- numSignificantUp: this.numSignificantUp,
214
- numSignificantDown: this.numSignificantDown,
215
- xOffset: this.response.data.xOffset ?? 0,
216
- centered: !!this.response.data.centered,
217
- provenance: this.setProvenance(),
218
- userActions: this.setUserActions(),
219
- deltaBetaAxisLabel: this.setDeltaBetaAxisLabel(),
220
- deltaPsiAxisLabel: this.setDeltaPsiAxisLabel(),
221
- volcanoPng: response.data.volcanoPng,
222
- plotExtent: response.data.plotExtent
223
- };
224
- }
225
- /* The delta-beta axis used to read "Δβ (case − control)". Those are positional roles, not
226
- names, so the plot showed the size of an effect but not its direction -- you had to already
227
- know which group landed in which slot, or open a downloaded file and read the provenance line.
228
- Name the groups instead, in subtraction order (case first), so the axis states what it plots.
229
-
230
- Returns undefined when the group names are not available; the view falls back to the old
231
- wording rather than rendering a broken label. */
232
- setDeltaBetaAxisLabel() {
233
- const groups = this.config?.samplelst?.groups;
234
- const control = groups?.[0]?.name;
235
- const cases = groups?.[1]?.name;
236
- if (!control || !cases) return void 0;
237
- const centered = this.response.data.centered ? " \u2212 median" : "";
238
- return `\u0394\u03B2${centered} (${shortenGroupName(cases)} \u2212 ${shortenGroupName(control)})`;
239
- }
240
- // same as setDeltaBetaAxisLabel, for ΔPSI
241
- setDeltaPsiAxisLabel() {
242
- const groups = this.config?.samplelst?.groups;
243
- const control = groups?.[0]?.name;
244
- const cases = groups?.[1]?.name;
245
- if (!control || !cases) return void 0;
246
- return `\u0394PSI (${shortenGroupName(cases)} \u2212 ${shortenGroupName(control)})`;
247
- }
248
- /** What the y axis and the p column are called. Named here once so the axis, the table header,
249
- * the hover rows and the multi-hit table cannot disagree. */
250
- setPValueLabel(settings) {
251
- if (this.termType == DATermTypes.PROTEOME_DAP) return "FDR";
252
- if (this.scan) return this.scan.backgroundCorrection ? "p vs matched background" : "smoothed FDR";
253
- return `${settings.pValueType} p-value`;
254
- }
255
- setDataType() {
256
- if (this.termType == DATermTypes.GENE_EXPRESSION) return "genes";
257
- if (this.termType == DATermTypes.DNA_METHYLATION) return elementNoun(this.settings?.elementType).many;
258
- if (this.termType == DATermTypes.JUNCTION) return "clusters";
259
- if (this.termType == DATermTypes.SINGLECELL_CELLTYPE) return "genes";
260
- if (this.termType == DATermTypes.PROTEOME_DAP) return "proteins";
261
- if (this.termType == DATermTypes.SINGLECELL_GENE_EXPRESSION) return "cells";
262
- throw new Error(`Unknown termType: ${this.termType}`);
263
- }
264
- setMinMaxValues() {
265
- const ext = this.response.data.plotExtent;
266
- this.minLogFoldChange = ext.xMin;
267
- this.maxLogFoldChange = ext.xMax;
268
- this.minLogPValue = ext.yMin;
269
- this.maxLogPValue = ext.yMax;
270
- this.minLogFoldChangeAxis = ext.xMinUnpadded;
271
- this.maxLogFoldChangeAxis = ext.xMaxUnpadded;
272
- this.minLogPValueAxis = ext.yMinUnpadded;
273
- this.maxLogPValueAxis = ext.yMaxUnpadded;
274
- this.dotRadiusPx = ext.dotRadiusPx;
275
- if (ext.minNonZeroPValue > 0) this.minNonZeroPValue = ext.minNonZeroPValue;
276
- }
277
- setPlotDimensions() {
278
- const ext = this.response.data.plotExtent;
279
- const plotW = ext.pixelWidth;
280
- const plotH = ext.pixelHeight;
281
- const xPlotScale = linear().domain([this.minLogFoldChange, this.maxLogFoldChange]).range([0, plotW]);
282
- const yPlotScale = linear().domain([this.minLogPValue, this.maxLogPValue]).range([plotH, 0]);
283
- const xScale = linear().domain([this.minLogFoldChangeAxis, this.maxLogFoldChangeAxis]).range([xPlotScale(this.minLogFoldChangeAxis), xPlotScale(this.maxLogFoldChangeAxis)]);
284
- const yScale = linear().domain([this.minLogPValueAxis, this.maxLogPValueAxis]).range([yPlotScale(this.minLogPValueAxis), yPlotScale(this.maxLogPValueAxis)]);
285
- return {
286
- svg: {
287
- //20 is for the term info above the plot
288
- height: plotH + this.topPad + this.bottomPad * 2 + this.offset * 3,
289
- width: plotW + this.horizPad * 2
290
- },
291
- top: {
292
- x: this.plotX,
293
- y: 5
294
- },
295
- xAxisLabel: {
296
- x: this.horizPad + plotW / 2 + this.offset,
297
- y: this.topPad + plotH + this.bottomPad + this.offset
298
- },
299
- xScale: {
300
- scale: xScale,
301
- x: this.plotX,
302
- y: plotH + this.topPad + this.offset * 2
303
- },
304
- yAxisLabel: {
305
- text: `-log10(${this.pValueLabel})`,
306
- x: this.horizPad / 3,
307
- y: this.topPad + plotH / 2
308
- },
309
- yScale: {
310
- scale: yScale,
311
- x: this.horizPad,
312
- y: this.topPad
313
- },
314
- plot: {
315
- height: plotH,
316
- width: plotW,
317
- x: this.plotX,
318
- y: this.topPad
319
- },
320
- logFoldChangeLine: {
321
- x: xPlotScale(0) + this.plotX,
322
- y1: this.topPad,
323
- y2: plotH + this.offset * 4
324
- },
325
- xPlotScale,
326
- yPlotScale
327
- };
328
- }
329
- setTermInfo(plotDim) {
330
- if (!enabledTermTypes.has(this.termType)) return;
331
- if (this.termType == DATermTypes.PROTEOME_DAP) {
332
- return {
333
- y: plotDim.top.y + 10,
334
- first: {
335
- label: shortenGroupName(`Control (${this.response.sample_size1})`),
336
- x: 0
337
- },
338
- second: {
339
- label: shortenGroupName(`Case (${this.response.sample_size2})`),
340
- x: this.settings.width
341
- }
342
- };
343
- }
344
- if (this.termType == DATermTypes.SINGLECELL_CELLTYPE) {
345
- const groupLabel = `${this.config.termId} ${this.config.categoryName}`;
346
- return {
347
- y: plotDim.top.y + 10,
348
- first: {
349
- label: shortenGroupName(`Not in ${groupLabel}`),
350
- x: 0
351
- },
352
- second: {
353
- label: shortenGroupName(groupLabel),
354
- x: this.settings.width
355
- }
356
- };
357
- }
358
- return {
359
- //Set slightly above the plot
360
- y: plotDim.top.y + 10,
361
- first: {
362
- // color: controlColor || this.settings.defaultSignColor,
363
- label: shortenGroupName(`${this.config.samplelst.groups[0].name} (${this.response.sample_size1})`),
364
- x: 0
365
- // rectX: this.settings.width/2 - 10,
366
- },
367
- second: {
368
- // color: caseColor || this.settings.defaultSignColor,
369
- label: shortenGroupName(`${this.config.samplelst.groups[1].name} (${this.response.sample_size2})`),
370
- x: this.settings.width
371
- // rectX: this.settings.width/2 + 10,
372
- }
373
- };
374
- }
375
- setPointData(_plotDim, controlColor, caseColor) {
376
- const radius = this.dotRadiusPx;
377
- this.pValueTable.rows = [];
378
- this.pValueTable.rowKeys.clear();
379
- const dataCopy = structuredClone(this.dataRows);
380
- for (const d of dataCopy) {
381
- const highlightKey = this.termType === DATermTypes.DNA_METHYLATION ? d.promoter_id : this.termType === DATermTypes.JUNCTION ? d.cluster_id : d.gene_name;
382
- d.highlighted = this.config?.highlightedData?.includes(highlightKey);
383
- d.significant = true;
384
- this.getGenesColor(d, d.significant, controlColor, caseColor);
385
- if (d.significant) {
386
- this.numSignificant++;
387
- const row = this.singlePValue ? [
388
- { value: roundValueAuto(this.scan ? d.delta_beta : d.fold_change) },
389
- { value: roundValueAuto(d.original_p_value) }
390
- ] : [
391
- { value: roundValueAuto(d.fold_change) },
392
- { value: roundValueAuto(d.original_p_value) },
393
- { value: d.adjusted_p_value != void 0 ? roundValueAuto(d.adjusted_p_value) : "" }
394
- ];
395
- if (this.termType == DATermTypes.DNA_METHYLATION) {
396
- if (this.scan) {
397
- row.splice(
398
- 1,
399
- 0,
400
- // fold_change carries the peak per-CpG delta-beta on a scan row
401
- { value: roundValueAuto(d.fold_change) },
402
- { value: d.no_cpgs },
403
- { value: d.stop - d.start },
404
- ...this.scan.backgroundCorrection ? [{ value: d.excess == null ? "" : roundValueAuto(d.excess) }] : []
405
- );
406
- } else {
407
- row.splice(
408
- 1,
409
- 0,
410
- { value: roundValueAuto(d.delta_beta) },
411
- { value: roundValueAuto(d.mean_beta_control) },
412
- { value: roundValueAuto(d.mean_beta_case) }
413
- );
414
- }
415
- row.splice(0, 0, { value: formatPromoterLabel(d) }, { value: d.gene_name || "" });
416
- } else if (this.termType == DATermTypes.JUNCTION) {
417
- row[0] = { value: roundValueAuto(d.delta_psi) };
418
- row.splice(
419
- 1,
420
- 0,
421
- { value: roundValueAuto(d.psi_control) },
422
- { value: roundValueAuto(d.psi_case) },
423
- { value: d.n_junc }
424
- );
425
- row.splice(0, 0, { value: d.cluster_id }, { value: d.genes || "" });
426
- } else if (this.termType == DATermTypes.PROTEOME_DAP) {
427
- row.splice(0, 0, { value: d.gene_name || "" }, { value: d.gene || "" });
428
- } else {
429
- row.splice(0, 0, { value: d.gene_name || "" });
430
- }
431
- this.pValueTable.rows.push(row);
432
- this.pValueTable.rowKeys.set(row, highlightKey);
433
- } else {
434
- this.numNonSignificant++;
435
- }
436
- d.x = d.pixel_x + this.plotX;
437
- d.y = d.pixel_y + this.topPad;
438
- d.radius = radius;
439
- }
440
- this.numSignificant = this.response.data.totalSignificantRows;
441
- this.numNonSignificant = Math.max(0, this.response.data.totalRows - this.numSignificant);
442
- this.numSignificantUp = this.response.data.totalSignificantUp ?? 0;
443
- this.numSignificantDown = this.response.data.totalSignificantDown ?? 0;
444
- dataCopy.sort((a, b) => a.highlighted - b.highlighted);
445
- return dataCopy;
446
- }
447
- getGenesColor(d, significant, controlColor, caseColor) {
448
- if (!d.gene_name && this.termType != DATermTypes.DNA_METHYLATION && this.termType != DATermTypes.JUNCTION)
449
- throw new Error(`Missing gene_name in data: ${JSON.stringify(d)}`);
450
- if (significant) {
451
- const x = this.termType == DATermTypes.JUNCTION ? d.delta_psi : this.termType == DATermTypes.DNA_METHYLATION && this.settings.xAxis === "delta_beta" ? d.delta_beta - (this.response.data.xOffset ?? 0) : d.fold_change;
452
- if (controlColor && caseColor) d.color = x > 0 ? caseColor : controlColor;
453
- else d.color = this.settings.defaultSignColor;
454
- } else d.color = this.settings.defaultNonSignColor;
455
- }
456
- /** One line describing what produced this result: which groups, how many samples actually
457
- * entered the model, and every setting that changes the numbers.
458
- *
459
- * This exists because an exported table is the artifact that outlives the session. Re-running
460
- * a contrast months later and getting different counts is impossible to diagnose when the
461
- * original run's group sizes and options were never written down anywhere -- the file, the
462
- * screenshot and the memory of it all look identical regardless of how it was configured.
463
- * Only settings that can change the result are listed; cosmetic ones are deliberately left
464
- * out so the line stays readable and a difference in it always means a real difference. */
465
- setProvenance() {
466
- const s = this.settings;
467
- const parts = [];
468
- if (this.config.samplelst?.groups?.length == 2) {
469
- const [g1, g2] = this.config.samplelst.groups;
470
- parts.push(`group1 (control) "${g1.name}" n=${this.response.sample_size1}`);
471
- parts.push(`group2 (case) "${g2.name}" n=${this.response.sample_size2}`);
472
- }
473
- const conf = this.config.confounderTws?.map((t) => t?.term?.name || t?.term?.id).filter(Boolean);
474
- parts.push(`confounders: ${conf?.length ? conf.join(" + ") : "none"}`);
475
- if (this.termType == DATermTypes.DNA_METHYLATION) {
476
- parts.push(`element class: ${s.elementType || "promoter"}`);
477
- parts.push(`x axis: ${s.xAxis === "delta_beta" ? "delta-beta" : "log2(fold-change)"}`);
478
- const off = this.response.data.xOffset ?? 0;
479
- if (this.response.data.centered)
480
- parts.push(`centered on median delta-beta ${off > 0 ? "+" : ""}${roundValueAuto(off)}`);
481
- if (this.scan) {
482
- parts.push(`scan: ${s.scanChromosome || "whole genome"}`);
483
- parts.push(`background correction: ${s.backgroundCorrection ? "yes" : "no"}`);
484
- parts.push(`min CpGs per DMR: ${s.minCpgs}`);
485
- } else parts.push(`min samples per group: ${s.minSamplesPerGroup}`);
486
- parts.push(`exclude sex chromosomes: ${s.excludeSexChr ? "yes" : "no"}`);
487
- } else if (this.termType == DATermTypes.GENE_EXPRESSION) {
488
- parts.push(`method: ${s.method}`);
489
- } else if (this.termType == DATermTypes.JUNCTION) {
490
- parts.push(`method: ${this.response.method || s.method}`);
491
- parts.push(`min samples per intron: ${s.minSamplesPerIntron}; min samples per group: ${s.minSamplesPerGroup}`);
492
- parts.push(`min counts per cluster: ${s.minCountsPerCluster}`);
493
- }
494
- const onDeltaBeta = this.termType == DATermTypes.DNA_METHYLATION && s.xAxis === "delta_beta";
495
- const effect = this.termType == DATermTypes.JUNCTION ? `|delta-PSI| > ${s.deltaPsiCutoff}` : onDeltaBeta ? `|delta-beta| > ${s.deltaBetaCutoff}` : `|log2(fold-change)| > ${s.foldChangeCutoff}`;
496
- parts.push(`significance: ${s.pValueType} p < ${roundValueAuto(Math.pow(10, -s.pValue))}, ${effect}`);
497
- return parts.join("; ");
498
- }
499
- setStatsData() {
500
- const tableRows = [
501
- {
502
- label: `Percentage of significant ${this.dataType}`,
503
- value: roundValueAuto(this.numSignificant * 100 / (this.numSignificant + this.numNonSignificant))
504
- },
505
- {
506
- label: `Number of significant ${this.dataType}`,
507
- value: this.numSignificant
508
- },
509
- {
510
- label: `Number of total ${this.dataType}`,
511
- value: this.numSignificant + this.numNonSignificant
512
- }
513
- ];
514
- if (this.termType == DATermTypes.GENE_EXPRESSION || this.termType == DATermTypes.DNA_METHYLATION || this.termType == DATermTypes.JUNCTION) {
515
- tableRows.push(
516
- {
517
- label: this.config.samplelst.groups[0].name + " sample size (control group)",
518
- value: this.response.sample_size1
519
- },
520
- {
521
- label: this.config.samplelst.groups[1].name + " sample size (case group)",
522
- value: this.response.sample_size2
523
- }
524
- );
525
- } else if (this.termType == DATermTypes.PROTEOME_DAP) {
526
- tableRows.push(
527
- {
528
- label: "Control sample size",
529
- value: this.response.sample_size1
530
- },
531
- {
532
- label: "Case sample size",
533
- value: this.response.sample_size2
534
- }
535
- );
536
- }
537
- if (this.response.bcv !== void 0 && this.response.bcv !== null) {
538
- tableRows.push({
539
- label: "Biological coefficient of variation",
540
- value: roundValueAuto(this.response.bcv)
541
- });
542
- }
543
- if (this.scan) tableRows.push(...this.setScanStats(this.scan));
544
- return tableRows;
545
- }
546
- /* The whole-scan facts, every one of them over the scan as returned -- before the volcano's
547
- thresholds -- and over the same set of DMRs (those meeting the CpG floor), so no two lines here
548
- have different denominators. The counts the thresholds select are the three rows above. */
549
- setScanStats(s) {
550
- const rows = [
551
- { label: "Chromosomes scanned", value: s.chromosomes.length },
552
- { label: "CpGs analyzed", value: s.totalProbesAnalyzed },
553
- { label: "DMRs called", value: s.called },
554
- { label: `DMRs with ${s.minCpgs}+ CpGs`, value: s.kept },
555
- { label: "Hypermethylated", value: s.hyper },
556
- { label: "Hypomethylated", value: s.hypo }
557
- ];
558
- if (s.width)
559
- rows.push({
560
- label: "DMR width, median (IQR)",
561
- value: `${bplen(s.width.median)} (${bplen(s.width.q1)} \u2013 ${bplen(s.width.q3)})`
562
- });
563
- if (s.regionMask)
564
- rows.push({
565
- label: `DMRs removed by artifact mask (${s.regionMask.sources.join(", ")}; \u2265${Math.round(
566
- s.regionMask.overlapFrac * 100
567
- )}% masked)`,
568
- value: s.regionMask.dmrsDropped
569
- });
570
- const gm = s.globalMethylation;
571
- if (gm) {
572
- const [g1, g2] = this.config.samplelst?.groups?.map((g) => g.name) || ["group 1", "group 2"];
573
- const one = s.chromosomes.length == 1 ? s.chromosomes[0] : null;
574
- const meanLabel = (g) => one ? `${g} mean \u03B2 on ${one}` : `${g} genome-wide mean \u03B2`;
575
- rows.push(
576
- { label: meanLabel(g1), value: gm.controlMeanBeta.toFixed(4) },
577
- { label: meanLabel(g2), value: gm.caseMeanBeta.toFixed(4) },
578
- {
579
- label: one ? `\u03B2 shift on ${one} (case \u2212 control)` : "Genome-wide \u03B2 shift (case \u2212 control)",
580
- value: `${gm.shift >= 0 ? "+" : ""}${gm.shift.toFixed(4)}`
581
- }
582
- );
583
- }
584
- const bc = s.backgroundCorrection;
585
- if (bc) {
586
- rows.push(
587
- { label: "Intergenic background windows sampled", value: bc.windows },
588
- { label: `DMRs scored against background (matched on ${bc.matchedOn.join(" and ")})`, value: bc.scored },
589
- { label: "DMRs unscored: stratum too thin (not plotted)", value: bc.unscored },
590
- {
591
- label: "DMRs moving more than matched background (p < 0.05)",
592
- value: `${bc.significant.toLocaleString()} of ${bc.scored.toLocaleString()} (${(100 * bc.significant / Math.max(1, bc.scored)).toFixed(1)}%)`
593
- }
594
- );
595
- }
596
- if (s.geneBodyLoss)
597
- rows.push({
598
- // the correction adds the background gate, so the label must say which set this is
599
- label: s.backgroundCorrection ? "Gene-body loss regions beating background \u2192 genes" : "Gene-body loss regions \u2192 genes",
600
- value: `${s.geneBodyLoss.regions.toLocaleString()} \u2192 ${s.geneBodyLoss.genes.length.toLocaleString()}`
601
- });
602
- const pf = s.profileSummary;
603
- if (pf) {
604
- const pct = (v) => `${(100 * v).toFixed(1)}%`;
605
- rows.push(
606
- {
607
- label: `Methylome profile: ${pf.bins.toLocaleString()} bins measured`,
608
- value: `${pct(pf.fractionHyper)} hyper`
609
- },
610
- {
611
- label: "Methylome profile: per-bin \u0394\u03B2, median (IQR)",
612
- value: `${pf.median >= 0 ? "+" : ""}${pf.median.toFixed(4)} (${pf.q1.toFixed(4)} \u2013 ${pf.q3.toFixed(4)})`
613
- },
614
- { label: "Methylome profile: bins moving |\u0394\u03B2| > 0.05", value: pct(pf.fractionBeyond05) },
615
- { label: "Methylome profile: bins moving |\u0394\u03B2| > 0.10", value: pct(pf.fractionBeyond10) }
616
- );
617
- }
618
- const r = s.resources;
619
- if (r) {
620
- const top = r.perChromosome[0];
621
- rows.push(
622
- {
623
- label: "Compute: workers \xD7 threads",
624
- value: `${r.workers} \xD7 ${r.threadsPerWorker} (${r.workers * r.threadsPerWorker} core${r.workers * r.threadsPerWorker == 1 ? "" : "s"})`
625
- },
626
- { label: "Compute: wall time", value: `${(r.wallMs / 1e3).toFixed(1)} s` },
627
- {
628
- label: "Compute: peak memory per worker",
629
- value: `${Math.round(r.peakWorkerMemoryMb).toLocaleString()} MB${top ? ` (${top.chr}, ${top.probes.toLocaleString()} CpGs)` : ""}`
630
- },
631
- { label: "Compute: peak memory, worker pool", value: `${Math.round(r.peakPoolMemoryMb).toLocaleString()} MB` },
632
- { label: "Compute: worker CPU time", value: `${r.workerCpuSeconds.toFixed(1)} s` },
633
- {
634
- label: "Compute: server process",
635
- value: `+${Math.round(r.nodeRssDeltaMb).toLocaleString()} MB, ${r.nodeCpuSeconds.toFixed(1)} s CPU`
636
- }
637
- );
638
- }
639
- return rows;
640
- }
641
- setPTableColumns() {
642
- if (this.termType == DATermTypes.DNA_METHYLATION) {
643
- if (this.scan) {
644
- this.pValueTable.columns.splice(
645
- 1,
646
- 0,
647
- { label: "Peak \u0394\u03B2", sortable: true },
648
- { label: "CpGs", sortable: true },
649
- { label: "Width (bp)", sortable: true },
650
- ...this.scan.backgroundCorrection ? [{ label: "Excess \u0394\u03B2", sortable: true }] : []
651
- );
652
- } else {
653
- this.pValueTable.columns.splice(
654
- 1,
655
- 0,
656
- { label: "\u0394\u03B2", sortable: true },
657
- { label: "Mean \u03B2 (group 1)", sortable: true },
658
- { label: "Mean \u03B2 (group 2)", sortable: true }
659
- );
660
- }
661
- this.pValueTable.columns.splice(
662
- 0,
663
- 0,
664
- { label: elementNoun(this.settings?.elementType).one, sortable: true },
665
- { label: "Gene(s)", sortable: true }
666
- );
667
- } else if (this.termType == DATermTypes.JUNCTION) {
668
- this.pValueTable.columns[0].label = "\u0394PSI";
669
- this.pValueTable.columns.splice(
670
- 1,
671
- 0,
672
- { label: "PSI (group 1)", sortable: true },
673
- { label: "PSI (group 2)", sortable: true },
674
- { label: "Junctions", sortable: true }
675
- );
676
- this.pValueTable.columns.splice(0, 0, { label: "Cluster", sortable: true }, { label: "Gene(s)", sortable: true });
677
- } else if (this.termType == DATermTypes.PROTEOME_DAP) {
678
- this.pValueTable.columns.splice(0, 0, { label: "Identifier", sortable: true }, { label: "Gene", sortable: true });
679
- } else {
680
- this.pValueTable.columns.splice(0, 0, { label: "Gene Name", sortable: true });
681
- }
682
- }
683
- setUserActions() {
684
- const userActions = {
685
- noShow: /* @__PURE__ */ new Set()
686
- };
687
- if (this.scan) userActions.noShow.add("Confounding factors");
688
- if (this.termType == DATermTypes.GENE_EXPRESSION) {
689
- if (this.settings.method == "edgeR" && getSampleNum(this.config) > 100) {
690
- userActions.noShow.add("Confounding factors");
691
- }
692
- if (this.settings.method == "wilcoxon") userActions.noShow.add("Confounding factors");
693
- }
694
- return userActions;
695
- }
696
- };
697
-
698
- // plots/volcano/groupColors.ts
699
- function groupColors(config) {
700
- const g = config?.samplelst?.groups;
701
- if (!g?.length) return {};
702
- const values = config?.tw?.term?.values;
703
- const pick = (i) => values?.[g[i]?.name]?.color || g[i]?.color;
704
- const out = {};
705
- const c1 = pick(0);
706
- const c2 = pick(1);
707
- if (c1) out.group1 = c1;
708
- if (c2) out.group2 = c2;
709
- return out;
710
- }
711
-
712
- // plots/volcano/interactions/VolcanoInteractions.ts
713
- var VolcanoInteractions = class {
714
- constructor(app, id, dom) {
715
- this.app = app;
716
- this.dom = dom;
717
- this.id = id;
718
- this.pValueTableData = [];
719
- this.data = [];
720
- this.totalSignificantRows = 0;
721
- this.provenance = "";
722
- }
723
- /** Launches a multi-term select tree
724
- * On submit, dispatches a plot_edit action with the new confounders */
725
- async confoundersMenu() {
726
- const state = this.app.getState();
727
- const config = state.plots.find((p) => p.id === this.id);
728
- if (config.termType !== GENE_EXPRESSION && config.termType !== DNA_METHYLATION) return;
729
- const allowedGroupNames = /* @__PURE__ */ new Set([config.samplelst.groups[0].name, config.samplelst.groups[1].name]);
730
- const grpTerms = new Set(
731
- (this.app?.vocabApi?.state.groups || []).filter((g) => allowedGroupNames.has(g.name)).flatMap(
732
- (g) => g.filter.lst.flatMap((f) => {
733
- if (f.tvs?.term) return f.tvs.term;
734
- else return f.lst.map((l) => l.tvs.term);
735
- })
736
- )
737
- );
738
- const disable_terms = grpTerms.size ? Array.from(grpTerms) : [];
739
- const maxNum = config.settings.volcano.method == "edgeR" ? 1 : 2;
740
- const ui = new MultiTermWrapperEditUI({
741
- app: this.app,
742
- callback: async (tws) => {
743
- this.dom.actionsTip.hide();
744
- await this.app.dispatch({
745
- type: "plot_edit",
746
- id: this.id,
747
- config: { confounderTws: tws }
748
- });
749
- },
750
- holder: this.dom.actionsTip.d,
751
- headerText: "Select confounders",
752
- maxNum,
753
- state,
754
- twList: config.confounderTws,
755
- disable_terms
756
- });
757
- await ui.renderUI();
758
- }
759
- download(termType) {
760
- this.dom.actionsTip.clear().showunder(this.dom.controls.select("div").node());
761
- const opts = [
762
- {
763
- text: "Download plot",
764
- callback: () => {
765
- const svg = this.dom.holder.select("svg").node();
766
- to_svg(svg, `Differential ${termType} analysis volcano`, { apply_dom_styles: true });
767
- }
768
- },
769
- {
770
- // DAP volcanoes report a single FDR rather than a p-value.
771
- text: termType === PROTEOME_DAP ? "Download FDR table" : "Download p-value table",
772
- callback: (itemDiv) => this.downloadPvalueTable(termType, itemDiv)
773
- }
774
- ];
775
- for (const opt of opts) {
776
- const itemDiv = this.dom.actionsTip.d.append("div").attr("class", "sja_menuoption").text(opt.text);
777
- itemDiv.on("click", () => opt.callback(itemDiv));
778
- }
779
- }
780
- /* The interactive table only holds the most-significant maxInteractiveDots rows, because the
781
- dot overlay has to stay responsive. The download has no such constraint, so it should be the
782
- COMPLETE set of significant rows: when the two differ, re-request with the cap lifted and write
783
- those rows instead.
784
-
785
- That second request is cheap. volcanoRender is deliberately not part of the DA cache key (see
786
- dmKeyInputs in server/routes/termdb.diffMeth.ts), so lifting the cap re-uses the cached R result
787
- and pays only for a re-render.
788
-
789
- If the re-request fails the download still happens, with the capped rows and a note saying so --
790
- losing the file entirely would be a worse outcome than a disclosed subset. */
791
- async downloadPvalueTable(termType, itemDiv) {
792
- const date = fileDateStamp();
793
- const label = termType === PROTEOME_DAP ? "fdr" : "p-value";
794
- let { rows, columns } = this.pValueTableData;
795
- let subsetNote;
796
- 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}).`;
797
- if (this.totalSignificantRows > rows.length) {
798
- if (!this.fetchAllRows) subsetNote = cappedNote("complete set unavailable");
799
- else {
800
- const restore = itemDiv?.text();
801
- itemDiv?.text(`Preparing ${this.totalSignificantRows.toLocaleString()} rows...`);
802
- try {
803
- const full = await this.fetchAllRows();
804
- rows = full.rows;
805
- columns = full.columns;
806
- } catch (e) {
807
- subsetNote = cappedNote(`could not retrieve the complete set: ${e?.message || e}`);
808
- } finally {
809
- if (restore) itemDiv?.text(restore);
810
- }
811
- }
812
- }
813
- const note = [subsetNote, this.provenance && `Run: ${this.provenance}`].filter(Boolean).join(" | ");
814
- downloadTable(rows, columns, `${label}-table-${date}.tsv`, note || void 0);
815
- }
816
- async highlightDataPoint(value) {
817
- const config = this.app.getState().plots.find((p) => p.id === this.id);
818
- const highlightedData = config.highlightedData.includes(value) ? config.highlightedData.filter((d) => d !== value) : [...config.highlightedData, value];
819
- await this.app.dispatch({
820
- type: "plot_edit",
821
- id: this.id,
822
- config: { highlightedData }
823
- });
824
- }
825
- /** When clicking on a data point, launches the box plot in a separate sandbox
826
- * For geneExpression, value == gene symbol */
827
- launchBoxPlot(value) {
828
- const config = this.app.getState().plots.find((p) => p.id === this.id);
829
- const values = {};
830
- for (const group of config.samplelst.groups) {
831
- values[group.name] = {
832
- key: group.name,
833
- label: group.name,
834
- list: group.values
835
- };
836
- }
837
- const setTerm = () => {
838
- if (config.termType == GENE_EXPRESSION) {
839
- return {
840
- q: { mode: "continuous" },
841
- term: {
842
- gene: value,
843
- name: value,
844
- type: config.termType
845
- }
846
- };
847
- } else return config.term;
848
- };
849
- this.app.dispatch({
850
- type: "plot_create",
851
- config: {
852
- chartType: "summary",
853
- childType: "boxplot",
854
- term: setTerm(),
855
- term2: {
856
- q: { groups: config.tw.q.groups, type: "custom-samplelst" },
857
- term: config.tw.term
858
- }
859
- }
860
- });
861
- }
862
- /** Launch a violin plot for a gene expression data point. */
863
- launchViolinGeneExp(value) {
864
- const config = this.app.getState().plots.find((p) => p.id === this.id);
865
- this.app.dispatch({
866
- type: "plot_create",
867
- config: {
868
- chartType: "summary",
869
- childType: "violin",
870
- term: {
871
- q: { mode: "continuous" },
872
- term: {
873
- gene: value,
874
- name: value,
875
- type: config.termType
876
- }
877
- },
878
- term2: {
879
- q: { groups: config.tw.q.groups, type: "custom-samplelst" },
880
- term: config.tw.term
881
- }
882
- }
883
- });
884
- }
885
- launchGeneSetEdit() {
886
- const plotConfig = this.app.getState().plots.find((p) => p.id === this.id);
887
- const holder = this.dom.actionsTip.d.append("div").style("padding", "5px");
888
- const limitedGenesList = plotConfig.termType === DNA_METHYLATION ? this.data.map((d) => d.promoter_id) : this.data.map((d) => d.gene_name);
889
- new GeneSetEditUI({
890
- holder,
891
- genome: this.app.opts.genome,
892
- vocabApi: this.app.vocabApi,
893
- limitedGenesList,
894
- geneList: plotConfig.highlightedData.map((d) => {
895
- return { gene: d };
896
- }),
897
- customInputs: [
898
- {
899
- label: "Cancel highlight",
900
- getDisplayStyle: () => plotConfig.highlightedData.length > 0 ? "" : "none",
901
- showInput: async () => {
902
- await this.app.dispatch({
903
- type: "plot_edit",
904
- id: this.id,
905
- config: { highlightedData: [] }
906
- });
907
- this.dom.actionsTip.hide();
908
- }
909
- }
910
- ],
911
- callback: async (result) => {
912
- const highlightedData = result.geneList.map((d) => d.gene);
913
- await this.app.dispatch({
914
- type: "plot_edit",
915
- id: this.id,
916
- config: { highlightedData }
917
- });
918
- this.dom.actionsTip.hide();
919
- }
920
- });
921
- }
922
- /** When clicking on a DM data point, dispatches a DMR plot that runs DMRCate
923
- * analysis and renders a genome browser Block with DMR regions on their own
924
- * track. */
925
- async launchDmr(d, dmrSettings = {}) {
926
- const config = this.app.getState().plots.find((p) => p.id === this.id);
927
- const colors = groupColors(config);
928
- const label = d.promoterId || `${d.chr}:${d.start}-${d.stop}`;
929
- const dmrConfig = {
930
- chartType: "dmr",
931
- headerText: `DMR: ${label}`,
932
- coordinateOverride: { chr: d.chr, start: d.start, stop: d.stop },
933
- // the samples of each group, or the filter of a group that is defined by one
934
- group1: getGroupForRegion(config.samplelst.groups[0]),
935
- group2: getGroupForRegion(config.samplelst.groups[1]),
936
- group1Name: config.samplelst.groups[0].name,
937
- group2Name: config.samplelst.groups[1].name,
938
- /* Which element matrix to drill into, for a dataset whose methylation is element-level
939
- only. The server ignores it when the dataset has a CpG-level matrix, which is finer. The
940
- scan is not a matrix, so a region opened from a scan names none and the server picks. */
941
- elementType: config?.settings?.volcano?.elementType == DMR_SCAN_ELEMENT_TYPE ? void 0 : config?.settings?.volcano?.elementType,
942
- settings: { colors, ...dmrSettings }
943
- };
944
- this.app.dispatch({
945
- type: "plot_create",
946
- config: dmrConfig
947
- });
948
- }
949
- /* Open a genome browser on a scan's DMR, with the scan's own DMRs as a track. The scan wrote
950
- every DMR it called to a bedj file in the server's cache (at the CpG floor the volcano counts
951
- at), so the track is an ordinary file tk: the browser reads whatever region is in view from it,
952
- including after the reader types another position into the search box. Opened on the DMR with
953
- room either side. */
954
- async launchScanGenomeBrowser(d, scan) {
955
- const tracks = [];
956
- const ccre = (this.app.opts.genome?.tracks || []).find((t) => t.name == CCRE_TRACK_NAME);
957
- if (ccre) tracks.push(structuredClone(ccre));
958
- if (scan.bedjFile) {
959
- tracks.push({
960
- type: "bedj",
961
- name: "Scan DMRs",
962
- // the file is under the server's bedj cache dir, not the tp dir
963
- isCache: true,
964
- file: scan.bedjFile,
965
- stackheight: 14,
966
- // drives both the fill and the block legend, which counts each class in view
967
- categories: {
968
- hyper: { label: "Hypermethylated DMR", color: HYPER_COLOR },
969
- hypo: { label: "Hypomethylated DMR", color: HYPO_COLOR }
970
- }
971
- });
972
- }
973
- const pad = Math.max(5e3, d.stop - d.start);
974
- this.app.dispatch({
975
- type: "plot_create",
976
- config: {
977
- chartType: "genomeBrowser",
978
- geneSearchResult: { chr: d.chr, start: Math.max(0, d.start - pad), stop: d.stop + pad },
979
- tracks
980
- }
981
- });
982
- }
983
- /** Launch a violin/box plot for a DNA methylation promoter.
984
- * Creates a methylation term using the promoter's chr/start/stop coordinates.
985
- * The tw handler fills in id and unit from termdbConfig. */
986
- launchDNAMethViolin(d) {
987
- const config = this.app.getState().plots.find((p) => p.id === this.id);
988
- const elementType = config?.settings?.volcano?.elementType;
989
- const genomicFeatureType = elementType === DMR_SCAN_ELEMENT_TYPE ? "region" : d.promoter_id ? "promoter" : "gene";
990
- const featureName = genomicFeatureType === "gene" ? d.gene_name?.split(",")[0]?.trim() || "" : "";
991
- const term = {
992
- genomicFeatureType,
993
- featureName,
994
- type: DNA_METHYLATION,
995
- chr: d.chr,
996
- start: d.start,
997
- stop: d.stop
998
- };
999
- if (genomicFeatureType === "promoter" && elementType) term.elementType = elementType;
1000
- if (genomicFeatureType !== "gene") {
1001
- const noun = elementNoun(elementType).one;
1002
- const unit = term.elementType && this.app.vocabApi.termdbConfig.queries?.dnaMethylation?.unit || getDNAMethUnit(genomicFeatureType, this.app.vocabApi);
1003
- term.unit = unit;
1004
- term.name = getDNAMethTermName(term, unit, noun);
1005
- }
1006
- this.app.dispatch({
1007
- type: "plot_create",
1008
- config: {
1009
- chartType: "summary",
1010
- childType: "violin",
1011
- term: {
1012
- q: { mode: "continuous" },
1013
- term
1014
- },
1015
- term2: {
1016
- q: { groups: config.tw.q.groups, type: "custom-samplelst" },
1017
- term: config.tw.term
1018
- }
1019
- }
1020
- });
1021
- }
1022
- async launchDEGClustering() {
1023
- const geneIndex = this.pValueTableData.columns.findIndex((col) => col.label === "Gene Name");
1024
- const adjustedPValIndex = this.pValueTableData.columns.findIndex((col) => col.label === "Adjusted p-value");
1025
- const rowsSorted = [...this.pValueTableData.rows].sort((a, b) => {
1026
- const aQVal = Number(a[adjustedPValIndex].value);
1027
- const bQVal = Number(b[adjustedPValIndex].value);
1028
- return aQVal - bQVal;
1029
- });
1030
- const geneList = rowsSorted.slice(0, 100).map((r) => ({ gene: r[geneIndex].value }));
1031
- const tws = geneList.map((d) => {
1032
- const gene = d.gene;
1033
- const unit = getGEunit(this.app.vocabApi);
1034
- const name = `${gene} ${unit}`;
1035
- const term = { gene, name, type: GENE_EXPRESSION };
1036
- return { term, q: {} };
1037
- });
1038
- const group = { lst: tws, type: "hierCluster" };
1039
- const customVariable = this.app.getState().plots.find((p) => p.id === this.id).tw;
1040
- const annotationGroup = { lst: [customVariable] };
1041
- const config = {
1042
- chartType: "hierCluster",
1043
- termgroups: [group, annotationGroup],
1044
- dataType: GENE_EXPRESSION,
1045
- filter: {
1046
- in: true,
1047
- join: "",
1048
- type: "tvslst",
1049
- lst: [{ type: "tvs", tvs: { term: customVariable.term } }]
1050
- }
1051
- };
1052
- await this.app.dispatch({
1053
- type: "plot_create",
1054
- config: structuredClone(config)
1055
- });
1056
- }
1057
- };
1058
-
1059
- // plots/volcano/interactions/geneBodyLossDE.ts
1060
- async function geneBodyLossTest(tip, config, vocab, scan, app) {
1061
- const gb = scan.geneBodyLoss;
1062
- const holder = tip.d;
1063
- const groups = (scan.matchedSamplelst || config?.samplelst)?.groups;
1064
- if (!groups || groups.length != 2) {
1065
- sayerror(holder.append("div"), "Two sample groups are required.");
1066
- return;
1067
- }
1068
- const div = holder.append("div").style("padding", "10px").style("max-width", "900px");
1069
- const wait = div.append("div").style("color", "#777").text("Running differential expression\u2026");
1070
- const de = getDefaultVolcanoSettings({}, { termType: "geneExpression" });
1071
- try {
1072
- const res = await dofetch3("termdb/dmrGeneDE", {
1073
- body: {
1074
- genome: vocab.genome,
1075
- dslabel: vocab.dslabel,
1076
- // `in` is part of the DE cache key, so it must travel or the two runs get separate entries
1077
- samplelst: {
1078
- groups: groups.map((g) => ({
1079
- name: g.name,
1080
- in: g.in,
1081
- values: g.values,
1082
- filter: g.filter,
1083
- filter0: g.filter0,
1084
- mapParent2Children: g.mapParent2Children
1085
- }))
1086
- },
1087
- genes: gb.genes,
1088
- method: de.method,
1089
- min_count: de.minCount,
1090
- min_total_count: de.minTotalCount,
1091
- cpm_cutoff: de.cpmCutoff,
1092
- filter: app.getState().termfilter?.filter,
1093
- filter0: app.getState().termfilter?.filter0
1094
- }
1095
- });
1096
- wait.remove();
1097
- if (res?.error) {
1098
- sayerror(div.append("div"), res.error);
1099
- return;
1100
- }
1101
- renderGeneDE(div, res, gb.regions, config, scan, app, tip);
1102
- } catch (e) {
1103
- wait.remove();
1104
- sayerror(div.append("div"), e?.message || String(e));
1105
- }
1106
- }
1107
- function renderGeneDE(div, res, nRegions, config, scan, app, tip) {
1108
- const gb = scan.geneBodyLoss;
1109
- const samplelst = scan.matchedSamplelst || config.samplelst;
1110
- const nMatched = samplelst.groups.reduce((n, g) => n + (g.values?.length ?? g.sampleCount ?? 0), 0);
1111
- const dir = res.weightedDiff < 0 ? "lower" : "higher";
1112
- div.append("button").attr("class", "sja_menuoption").attr("data-testid", "sjpp-geneBodyLoss-deVolcano").style("margin", "0 0 8px").style("padding", "3px 6px").text(
1113
- `Open as differential expression volcano on the ${nMatched.toLocaleString()} samples with methylation, ${gb.genes.length.toLocaleString()} genes highlighted`
1114
- ).on("click", () => {
1115
- tip.hide();
1116
- app.dispatch({
1117
- type: "plot_create",
1118
- config: structuredClone({
1119
- chartType: "differentialAnalysis",
1120
- termType: "geneExpression",
1121
- state: config.state,
1122
- samplelst,
1123
- tw: config.tw,
1124
- highlightedData: gb.genes,
1125
- /* The default highlight is orange-yellow, which on a case group drawn in orange makes
1126
- the highlighted hits and the up-regulated genes one blob. Use the colour the
1127
- methylation figures give to LOSS instead: these genes are highlighted because they
1128
- lost gene-body methylation, so the fill says the same thing there and here. */
1129
- settings: { volcano: { defaultHighlightColor: HYPO_COLOR } }
1130
- })
1131
- });
1132
- });
1133
- div.append("div").style("font-weight", "bold").style("padding", "4px 0").text(
1134
- `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)}).`
1135
- );
1136
- div.append("div").style("color", "#777").style("font-size", ".92em").text(
1137
- `${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.`
1138
- );
1139
- if (res.sigCount) {
1140
- div.append("div").style("padding", "8px 0 2px").style("font-weight", "bold").text(
1141
- `${res.sigCount.toLocaleString()} of these genes are differentially expressed on their own (p < 0.05), ${res.sigDown.toLocaleString()} of them down.`
1142
- );
1143
- const { caseColor, controlColor } = getGroupColors(config);
1144
- renderTable({
1145
- div: div.append("div"),
1146
- columns: [
1147
- { label: "Gene" },
1148
- { label: "Length (log\u2081\u2080 bp)", barplot: { axisWidth: 90, colorPositive: "#999", tickCount: 3 } },
1149
- { label: "log\u2082FC", barplot: { axisWidth: 110, colorNegative: controlColor, colorPositive: caseColor } },
1150
- { label: res.topGenes[0]?.adjusted ? "Adjusted p" : "p", align: "right" }
1151
- ],
1152
- rows: res.topGenes.map((g) => [
1153
- { value: g.gene },
1154
- { value: g.len ? Number(Math.log10(g.len).toFixed(2)) : NaN },
1155
- { value: Number(g.fc.toFixed(3)) },
1156
- { value: Number(g.p.toPrecision(2)) }
1157
- ]),
1158
- showLines: true,
1159
- maxHeight: "26vh",
1160
- download: { fileName: "gene-body-loss-genes.tsv" }
1161
- });
1162
- if (res.sigCount > res.topGenes.length)
1163
- div.append("div").style("color", "#777").style("font-size", ".9em").text(`Showing the ${res.topGenes.length} most significant of ${res.sigCount.toLocaleString()}.`);
1164
- }
1165
- div.append("div").style("padding", "10px 0 2px").style("font-weight", "bold").text("By gene length");
1166
- renderTable({
1167
- div: div.append("div"),
1168
- columns: [
1169
- { label: "Gene length" },
1170
- { label: "Genes hit", align: "right" },
1171
- { label: "Matched", align: "right" },
1172
- { label: "Median log\u2082FC, hit", align: "right" },
1173
- { label: "Median log\u2082FC, matched", align: "right" },
1174
- { label: "Difference", align: "right" }
1175
- ],
1176
- rows: res.strata.map((s) => [
1177
- { value: `${bplen(s.lenFrom)} \u2013 ${bplen(s.lenTo)}` },
1178
- { value: s.nHit.toLocaleString() },
1179
- { value: s.nOther.toLocaleString() },
1180
- { value: Number(s.medianHit.toFixed(3)) },
1181
- { value: Number(s.medianOther.toFixed(3)) },
1182
- { value: Number(s.diff.toFixed(3)) }
1183
- ]),
1184
- showLines: true,
1185
- maxHeight: "26vh",
1186
- download: { fileName: "gene-body-loss-expression.tsv" }
1187
- });
1188
- }
1189
-
1190
- // plots/volcano/interactions/dmrGeneLink.ts
1191
- async function dmrGeneLinkPanel(tip, config, vocab, scan, app) {
1192
- const div = tip.d.append("div").style("padding", "10px").style("max-width", "1000px");
1193
- const wait = div.append("div").style("color", "#777").text("Linking DMRs to genes and running differential expression\u2026");
1194
- const de = getDefaultVolcanoSettings({}, { termType: "geneExpression" });
1195
- const state = app.getState();
1196
- let res;
1197
- try {
1198
- res = await dofetch3("termdb/dmrGeneLink", {
1199
- body: {
1200
- genome: vocab.genome,
1201
- dslabel: vocab.dslabel,
1202
- cacheId: scan.cacheId,
1203
- minCpgs: scan.minCpgs,
1204
- /* The cohort the scan compared, expanded and matched server-side. The plot state's list can still
1205
- hold a "Not in" group as {in:false} carrying the included group's values, which DE reads as two
1206
- overlapping groups. */
1207
- samplelst: {
1208
- groups: (scan.matchedSamplelst || config.samplelst).groups.map((g) => ({
1209
- name: g.name,
1210
- in: g.in,
1211
- values: g.values,
1212
- filter: g.filter,
1213
- filter0: g.filter0,
1214
- mapParent2Children: g.mapParent2Children
1215
- }))
1216
- },
1217
- method: de.method,
1218
- min_count: de.minCount,
1219
- min_total_count: de.minTotalCount,
1220
- cpm_cutoff: de.cpmCutoff,
1221
- filter: state.termfilter?.filter,
1222
- filter0: state.termfilter?.filter0
1223
- }
1224
- });
1225
- } catch (e) {
1226
- res = { error: e?.message || String(e) };
1227
- }
1228
- wait.remove();
1229
- if (res.error) return sayerror(div.append("div"), res.error);
1230
- div.append("div").style("font-weight", "bold").text(
1231
- `${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`
1232
- );
1233
- div.append("div").style("color", "#777").style("font-size", ".92em").style("padding", "2px 0 6px").text(
1234
- `Promoter = within ${bplen(
1235
- 2e3
1236
- )} 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).`
1237
- );
1238
- const summary = table2col({ holder: div.append("div") });
1239
- for (const context of ["promoter", "body"]) {
1240
- const s = res.summary[context] || {};
1241
- const [td1, td2] = summary.addRow();
1242
- td1.text(context == "promoter" ? "Promoter DMRs" : "Gene-body DMRs");
1243
- td2.text(
1244
- ["concordant", "discordant", "no expression change", "not tested"].map((k) => `${k}: ${(s[k] || 0).toLocaleString()}`).join(" \xB7 ")
1245
- );
1246
- }
1247
- const rows = res.rows;
1248
- const litDiv = div.append("div");
1249
- const recordOf = /* @__PURE__ */ new Map();
1250
- const tableRows = rows.map((r) => {
1251
- const cells = [
1252
- { value: r.gene },
1253
- { value: r.context },
1254
- { value: `${r.dmr.chr}:${r.dmr.start}-${r.dmr.stop}` },
1255
- { value: Number(r.dmr.deltaBeta.toFixed(3)) },
1256
- { value: r.dmr.cpgs },
1257
- { value: r.nDmrs },
1258
- { value: r.fc == null ? "" : Number(r.fc.toFixed(3)) },
1259
- { value: r.p == null ? "" : Number(r.p.toPrecision(2)) },
1260
- { value: r.relationship }
1261
- ];
1262
- recordOf.set(cells, r);
1263
- return cells;
1264
- });
1265
- renderTable({
1266
- div: div.append("div"),
1267
- columns: [
1268
- { label: "Gene" },
1269
- { label: "Context" },
1270
- { label: "Strongest DMR" },
1271
- { label: "\u0394\u03B2", sortable: true },
1272
- { label: "CpGs", sortable: true },
1273
- { label: "DMRs", sortable: true },
1274
- { label: "Expression log\u2082FC", sortable: true },
1275
- { label: "Expression p", sortable: true },
1276
- { label: "Relationship" }
1277
- ],
1278
- rows: tableRows,
1279
- showLines: true,
1280
- maxHeight: "40vh",
1281
- header: { allowSort: true },
1282
- noRadioBtn: true,
1283
- download: { fileName: "dmr-gene-links.tsv" },
1284
- // a click asks PubMed about that row's gene in that row's context
1285
- noButtonCallback: (i) => showLiterature(litDiv, vocab, recordOf.get(tableRows[i]), disease)
1286
- });
1287
- if (rows.length < res.links)
1288
- div.append("div").style("color", "#777").style("font-size", ".9em").text(`Showing the first ${rows.length.toLocaleString()} of ${res.links.toLocaleString()} links.`);
1289
- const hint = litDiv.append("div").style("color", "#777").style("padding", "6px 0");
1290
- hint.append("span").text("Click a row for PubMed articles on that gene and mechanism, optionally within a disease: ");
1291
- const disease = hint.append("input").attr("type", "text").attr("placeholder", "e.g. myeloma").style("width", "120px");
1292
- }
1293
- async function showLiterature(holder, vocab, r, disease) {
1294
- holder.selectAll(".sjpp-dmr-lit").remove();
1295
- const out = holder.append("div").attr("class", "sjpp-dmr-lit");
1296
- const head = out.append("div").style("padding", "8px 0 2px").style("font-weight", "bold");
1297
- const d = String(disease?.property("value") || "").trim();
1298
- const within = d ? ` in ${d}` : "";
1299
- head.text(`PubMed: ${r.gene}, ${r.context} methylation and expression${within}\u2026`);
1300
- const res = await dofetch3("termdb/dmrLiterature", {
1301
- body: { genome: vocab.genome, dslabel: vocab.dslabel, gene: r.gene, context: r.context, disease: d }
1302
- }).catch((e) => ({ error: e?.message || String(e) }));
1303
- holder = out;
1304
- if (res.error) return sayerror(holder.append("div"), res.error);
1305
- head.text(
1306
- `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})`
1307
- );
1308
- if (!res.articles.length) {
1309
- holder.append("div").style("color", "#777").text("No articles match. The link may be unreported rather than unsupported.");
1310
- return;
1311
- }
1312
- const ul = holder.append("ul").style("margin", "2px 0");
1313
- for (const a of res.articles) {
1314
- const li = ul.append("li");
1315
- li.append("span").text(`${a.title} ${a.journal} ${a.year}. `);
1316
- 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}`);
1317
- }
1318
- }
1319
-
1320
- // plots/volcano/view/VolcanoPlotView.ts
1321
- var VolcanoPlotView = class {
1322
- constructor(dom, interactions, termType) {
1323
- this.linked = [];
1324
- this.dom = dom;
1325
- this.interactions = interactions;
1326
- this.termType = termType;
1327
- const actions = this.dom.holder.append("div").attr("id", "sjpp-volcano-actions").style("display", "block").style("z-index", 1).style("position", "relative");
1328
- this.row = this.dom.holder.append("div").attr("id", "sjpp-volcano-row").style("display", "flex").style("align-items", "flex-start");
1329
- const svg = this.row.append("svg").style("display", "inline-block").attr("id", "sjpp-volcano-svg").style("vertical-align", "top");
1330
- this.volcanoDom = {
1331
- actions,
1332
- svg,
1333
- pValueTable: void 0,
1334
- top: void 0,
1335
- xAxis: void 0,
1336
- xAxisLabel: void 0,
1337
- yAxis: void 0,
1338
- yAxisLabel: void 0,
1339
- plot: void 0
1340
- };
1341
- }
1342
- render(settings, viewData) {
1343
- this.settings = settings;
1344
- this.viewData = viewData;
1345
- this.linked = [];
1346
- const plotDim = this.viewData.plotDim;
1347
- this.initDom();
1348
- this.renderUserActions();
1349
- this.renderPlot(plotDim);
1350
- renderDataPoints(this);
1351
- this.renderFoldChangeLine(plotDim);
1352
- this.attachInteractions(plotDim);
1353
- if (this.settings.showPValueTable) this.renderPValueTable();
1354
- if (this.viewData.scan?.manhattan) this.renderScanManhattan();
1355
- }
1356
- initDom() {
1357
- this.volcanoDom.actions.selectAll("*").remove();
1358
- this.volcanoDom.svg.selectAll("*").remove();
1359
- const svg = this.volcanoDom.svg;
1360
- this.volcanoDom.top = svg.append("g").attr("id", "sjpp-volcano-top");
1361
- this.volcanoDom.xAxis = svg.append("g").attr("id", "sjpp-volcano-xAxis");
1362
- this.volcanoDom.yAxis = svg.append("g").attr("id", "sjpp-volcano-yAxis");
1363
- this.volcanoDom.xAxisLabel = svg.append("text").attr("id", "sjpp-volcano-xAxisLabel").attr("text-anchor", "middle");
1364
- this.volcanoDom.yAxisLabel = svg.append("text").attr("id", "sjpp-volcano-yAxisLabel").attr("text-anchor", "middle");
1365
- this.volcanoDom.plot = svg.append("g").attr("id", "sjpp-volcano-plot");
1366
- this.dom.holder.select("#sjpp-volcano-pValueTable").remove();
1367
- this.dom.holder.select("#sjpp-volcano-scanManhattan").remove();
1368
- if (!this.settings.showPValueTable) return;
1369
- 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");
1370
- }
1371
- renderUserActions() {
1372
- this.dom.actionsTip.d.style("overflow", "hidden");
1373
- this.volcanoDom.actions.style("margin-left", "20px").style("padding", "5px");
1374
- this.addActionButton(
1375
- "Confounding factors",
1376
- [DATermTypes.GENE_EXPRESSION, DATermTypes.DNA_METHYLATION],
1377
- () => this.interactions.confoundersMenu()
1378
- );
1379
- this.addActionButton(
1380
- "Highlight genes",
1381
- [DATermTypes.GENE_EXPRESSION, DATermTypes.SINGLECELL_CELLTYPE, DATermTypes.DNA_METHYLATION],
1382
- () => this.interactions.launchGeneSetEdit()
1383
- );
1384
- this.addActionButton(
1385
- "Statistics",
1386
- [DATermTypes.GENE_EXPRESSION, DATermTypes.SINGLECELL_CELLTYPE, DATermTypes.DNA_METHYLATION],
1387
- () => {
1388
- this.renderStatsMenu();
1389
- },
1390
- { whenOpen: "Hide statistics" }
1391
- );
1392
- const gb = this.viewData.scan?.geneBodyLoss;
1393
- if (gb?.genes.length) {
1394
- this.addActionButton(
1395
- `Expression of ${gb.genes.length.toLocaleString()} gene-body loss genes`,
1396
- [DATermTypes.DNA_METHYLATION],
1397
- () => geneBodyLossTest(
1398
- this.dom.actionsTip,
1399
- this.interactions.app.getState().plots.find((p) => p.id == this.interactions.id),
1400
- this.interactions.app.vocabApi.vocab,
1401
- this.viewData.scan,
1402
- this.interactions.app
1403
- )
1404
- );
1405
- }
1406
- if (this.viewData.scan?.cacheId) {
1407
- this.addActionButton(
1408
- "Genes, expression and literature",
1409
- [DATermTypes.DNA_METHYLATION],
1410
- () => dmrGeneLinkPanel(
1411
- this.dom.actionsTip,
1412
- this.interactions.app.getState().plots.find((p) => p.id == this.interactions.id),
1413
- this.interactions.app.vocabApi.vocab,
1414
- this.viewData.scan,
1415
- this.interactions.app
1416
- )
1417
- );
1418
- }
1419
- const dmNoun = elementNoun(this.settings?.elementType);
1420
- const SIG_PREFIX = "Number of significant ";
1421
- const sigRow = this.viewData.statsData.find((d) => d.label.startsWith(SIG_PREFIX));
1422
- const numSigGenes = Number(sigRow?.value ?? 0);
1423
- if (numSigGenes) {
1424
- const n = numSigGenes.toLocaleString();
1425
- const isDM = this.termType == DATermTypes.DNA_METHYLATION;
1426
- const up = this.viewData.numSignificantUp;
1427
- const down = this.viewData.numSignificantDown;
1428
- const split = up + down > 0 ? ` (${up.toLocaleString()} ${isDM ? "hyper" : "up"} / ${down.toLocaleString()} ${isDM ? "hypo" : "down"})` : "";
1429
- const off = this.viewData.xOffset;
1430
- const centered = this.viewData.centered ? `, centered on median \u0394\u03B2 ${off > 0 ? "+" : ""}${off.toFixed(3)}` : "";
1431
- 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)}`;
1432
- const sigText = `${n} ${noun}` + split + centered + ":";
1433
- this.volcanoDom.actions.append("span").text(sigText).style("margin-left", "10px").style("font-weight", "bold");
1434
- const pValueTableButtonText = this.settings.showPValueTable ? "Hide p-value table" : "Show p-value table";
1435
- this.addActionButton(
1436
- pValueTableButtonText,
1437
- [DATermTypes.GENE_EXPRESSION, DATermTypes.SINGLECELL_CELLTYPE, DATermTypes.DNA_METHYLATION],
1438
- async () => {
1439
- const showTable = !this.settings.showPValueTable;
1440
- await this.interactions.app.dispatch({
1441
- type: "plot_edit",
1442
- id: this.interactions.id,
1443
- config: { settings: { volcano: { showPValueTable: showTable } } }
1444
- });
1445
- }
1446
- );
1447
- }
1448
- if (numSigGenes && numSigGenes >= 3) {
1449
- this.addActionButton(
1450
- `Hierarchical clustering of ${numSigGenes > 100 ? "top 100" : numSigGenes} DE genes`,
1451
- [DATermTypes.GENE_EXPRESSION],
1452
- async () => {
1453
- await this.interactions.launchDEGClustering();
1454
- }
1455
- );
1456
- }
1457
- }
1458
- /** Use the termTypes arr to render the buttons in a consistent order.
1459
- *
1460
- * Pass `opts.whenOpen` to make the button a toggle: clicking once opens
1461
- * the actionsTip with the callback's content and swaps the button text
1462
- * to `whenOpen` ("Hide statistics", etc.); clicking again hides the tip
1463
- * and restores the original text. The text also restores when the tip
1464
- * closes via Esc or outside-click (Menu.onHide hook), and when another
1465
- * action button hijacks the tip (the loop below resets all toggles
1466
- * before showing the new content). */
1467
- addActionButton(text, termTypes, callback, opts) {
1468
- if (this.viewData.userActions.noShow.has(text)) return;
1469
- if (!termTypes.includes(this.termType)) return;
1470
- const button = this.volcanoDom.actions.append("button").attr("class", "sja_menuoption").style("margin", "3px").style("padding", "3px").text(text).on("click", async () => {
1471
- const whenOpen = opts?.whenOpen;
1472
- if (whenOpen && button.text() === whenOpen) {
1473
- this.dom.actionsTip.hide();
1474
- return;
1475
- }
1476
- this.volcanoDom.actions.selectAll('button[data-volcano-toggle-open="1"]').each(function() {
1477
- const b = select_default(this);
1478
- const closed = b.attr("data-volcano-toggle-closed");
1479
- if (closed) b.text(closed).attr("data-volcano-toggle-open", null);
1480
- this.parent_menu = void 0;
1481
- const eh = this.__volcanoEscHandler;
1482
- if (eh) {
1483
- document.removeEventListener("keydown", eh);
1484
- this.__volcanoEscHandler = void 0;
1485
- }
1486
- });
1487
- this.dom.actionsTip.clear().showunder(button.node());
1488
- if (whenOpen) {
1489
- button.text(whenOpen).attr("data-volcano-toggle-open", "1").attr("data-volcano-toggle-closed", text);
1490
- button.node().parent_menu = this.dom.actionsTip.dnode;
1491
- const escHandler = (e) => {
1492
- if (e.key === "Escape") this.dom.actionsTip.hide();
1493
- };
1494
- document.addEventListener("keydown", escHandler);
1495
- button.node().__volcanoEscHandler = escHandler;
1496
- this.dom.actionsTip.onHide = () => {
1497
- button.text(text).attr("data-volcano-toggle-open", null);
1498
- button.node().parent_menu = void 0;
1499
- document.removeEventListener("keydown", escHandler);
1500
- button.node().__volcanoEscHandler = void 0;
1501
- };
1502
- } else {
1503
- this.dom.actionsTip.onHide = void 0;
1504
- }
1505
- await callback();
1506
- });
1507
- }
1508
- renderPlot(plotDim) {
1509
- this.volcanoDom.svg.attr("width", plotDim.svg.width).attr("height", plotDim.svg.height);
1510
- this.renderTermInfo(plotDim);
1511
- this.volcanoDom.yAxisLabel.attr(
1512
- "transform",
1513
- `translate(${plotDim.yAxisLabel.x}, ${plotDim.yAxisLabel.y}) rotate(-90)`
1514
- );
1515
- this.setSvgSubscriptLabel(this.volcanoDom.yAxisLabel, "-log", "10", `(${this.viewData.pValueLabel})`);
1516
- this.volcanoDom.xAxisLabel.attr("transform", `translate(${plotDim.xAxisLabel.x}, ${plotDim.xAxisLabel.y})`);
1517
- if (this.termType === DATermTypes.JUNCTION) {
1518
- this.volcanoDom.xAxisLabel.selectAll("*").remove();
1519
- this.volcanoDom.xAxisLabel.text(this.viewData.deltaPsiAxisLabel || "\u0394PSI (case \u2212 control)");
1520
- } else if (this.termType === DATermTypes.DNA_METHYLATION && this.settings.xAxis === "delta_beta") {
1521
- this.volcanoDom.xAxisLabel.selectAll("*").remove();
1522
- this.volcanoDom.xAxisLabel.text(this.viewData.deltaBetaAxisLabel || "\u0394\u03B2 (case \u2212 control)");
1523
- } else {
1524
- this.volcanoDom.xAxisLabel.text(null);
1525
- this.setSvgSubscriptLabel(this.volcanoDom.xAxisLabel, "log", "2", "(fold-change)");
1526
- }
1527
- this.renderScale(plotDim.xScale);
1528
- this.renderScale(plotDim.yScale, true);
1529
- if (this.viewData.volcanoPng) {
1530
- 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");
1531
- }
1532
- }
1533
- renderTermInfo(plotDim) {
1534
- if (this.viewData.termInfo == void 0) return;
1535
- this.volcanoDom.top.attr("transform", `translate(${plotDim.top.x}, ${plotDim.top.y})`);
1536
- const y = this.viewData.termInfo.y;
1537
- const addLabel = (term) => {
1538
- return this.volcanoDom.top.append("text").attr("font-size", "0.9em").attr("transform", `translate(${term.x}, ${y + 10})`).text(term.label);
1539
- };
1540
- const firstTerm = this.viewData.termInfo.first;
1541
- addLabel(firstTerm);
1542
- const secondTerm = this.viewData.termInfo.second;
1543
- const secondLabel = addLabel(secondTerm);
1544
- secondLabel.attr("text-anchor", "end");
1545
- }
1546
- renderScale(scale, isLeft = false) {
1547
- const scaleG = this.volcanoDom[isLeft ? "yAxis" : "xAxis"].append("g").attr("transform", `translate(${scale.x}, ${scale.y})`).call(isLeft ? axisLeft(scale.scale) : axisBottom(scale.scale));
1548
- axisstyle({
1549
- axis: scaleG,
1550
- color: "black",
1551
- showline: true
1552
- });
1553
- }
1554
- renderFoldChangeLine(plotDim) {
1555
- 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);
1556
- }
1557
- renderStatsMenu() {
1558
- for (const img of this.viewData.images || []) {
1559
- 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);
1560
- }
1561
- 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");
1562
- const table = table2col({ holder: tableHolder });
1563
- for (const d of this.viewData.statsData) {
1564
- const [td1, td2] = table.addRow();
1565
- td1.text(d.label);
1566
- td2.style("text-align", "end").text(Number.isInteger(d.value) ? d.value.toLocaleString() : d.value);
1567
- }
1568
- }
1569
- /* Where the DMRs are, along the whole genome: every kept DMR in the server's PNG, hyper above
1570
- the line and hypo below, height = evidence; the most significant thousand are live. A dot is
1571
- the same DMR the volcano shows, so hover and click give the volcano's own rows and actions --
1572
- the violin of that region and the region view, a genome browser with the called DMRs, the
1573
- per-CpG group means and the genes. Same lifecycle as the p-value table: redrawn from each
1574
- response, never left stale. */
1575
- /** What the scan covered, for the figure titles: the chromosome when that is all of it, and "the
1576
- * genome" otherwise. A one-chromosome scan describing itself as genome-wide overstates every
1577
- * number under it, which is what a dev host holding a subset of CpG shards produces. */
1578
- scanSpan() {
1579
- const chrs = this.viewData.scan?.chromosomes || [];
1580
- return chrs.length == 1 ? chrs[0] : "the genome";
1581
- }
1582
- renderScanManhattan() {
1583
- const { manhattan } = this.viewData.scan;
1584
- 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");
1585
- const asRow = (d) => ({
1586
- promoter_id: `${d.chrom}:${d.start}-${d.stop}`,
1587
- gene_name: d.gene_name,
1588
- chr: d.chrom,
1589
- start: d.start,
1590
- stop: d.stop,
1591
- delta_beta: d.delta_beta,
1592
- fold_change: d.fold_change,
1593
- original_p_value: d.p,
1594
- adjusted_p_value: d.p,
1595
- no_cpgs: d.no_cpgs,
1596
- excess: d.excess
1597
- });
1598
- const g2 = this.viewData.scan.matchedSamplelst?.groups?.[1]?.name || "case group";
1599
- const link = {
1600
- points: [],
1601
- highlight: () => {
1602
- },
1603
- region: (d) => ({ chr: d.chrom, start: d.start, stop: d.stop })
1604
- };
1605
- const handle = plotManhattan(
1606
- div,
1607
- { png: manhattan.png, plotData: manhattan.plotData },
1608
- {
1609
- ...manhattanLayoutDefaults,
1610
- plotWidth: manhattan.plotWidth,
1611
- plotHeight: manhattan.plotHeight,
1612
- // the server already picked N per direction; the client must not re-cap by |y|
1613
- interactiveDotsCap: manhattan.plotData.points.length,
1614
- maxTooltipGenes: this.settings.maxTooltipGenes,
1615
- legendItemWidth: 130
1616
- },
1617
- void 0,
1618
- {
1619
- // names the chromosome when that is all the scan covered, rather than "the genome"
1620
- title: `DMRs along ${this.scanSpan()}, direction in ${g2} (top ${manhattan.interactive.toLocaleString()} per direction interactive)`,
1621
- // short, because it runs down a 300 px axis: the legend and title say what the sign means
1622
- yAxisLabel: `\xB1log\u2081\u2080(${this.viewData.pValueLabel.replace("smoothed ", "")})`,
1623
- legend: [
1624
- { label: "Hypermethylated", color: HYPER_COLOR, hollow: true },
1625
- { label: "Hypomethylated", color: HYPO_COLOR, hollow: true }
1626
- ],
1627
- itemNoun: "DMR",
1628
- renderSingleHoverTooltip: (d, container) => {
1629
- const table = table2col({ holder: container.append("table") });
1630
- this.addTooltipRows(asRow(d), table);
1631
- if (d.no_cpgs != null) addTooltipRow(table, "CpGs", d.no_cpgs);
1632
- },
1633
- buildMultiHitTableData: (dots) => this.buildMultiHitTable(dots.map(asRow)),
1634
- getActions: (d) => this.getActionMenuOpts(asRow(d)),
1635
- getRowKey: (d) => `${d.chrom}:${d.start}-${d.stop}`,
1636
- onHover: (dots) => this.mirrorHover(link, dots)
1637
- }
1638
- );
1639
- this.linked.push(Object.assign(link, handle));
1640
- this.renderMethylationProfile(this.viewData.scan.matchedSamplelst?.groups?.[0]?.name || "control group", g2);
1641
- }
1642
- /* The genome-wide methylation profile, under the DMR plot: mean beta per group in 100 kb bins,
1643
- drawn as the per-bin difference. The DMR plot above shows the regions that passed a threshold;
1644
- this shows every bin that was measured, which is what says whether the methylome shifted a
1645
- little everywhere or a lot in a few places.
1646
-
1647
- Same component and the same hover/click layer as the DMR plot, on the bins that moved most in
1648
- each direction: 29,000 dots in a band cannot be read by eye, so a dot has to be able to say
1649
- which 100 kb it is, what each group's mean beta there was, and how many CpGs that rests on.
1650
- Clicking opens the browser on the bin -- the question a standout bin raises is which of the
1651
- scan's DMRs are inside it, and that is the view that answers it. */
1652
- renderMethylationProfile(controlName, caseName) {
1653
- const profile = this.viewData.scan?.profile;
1654
- if (!profile) return;
1655
- const div = this.dom.holder.select("#sjpp-volcano-scanManhattan").append("div").attr("data-testid", "sjpp-volcano-methylationProfile").style("display", "block").style("margin-top", "-70px");
1656
- const region = (d) => ({ chr: d.chrom, start: d.pos, stop: d.pos + profile.binBp });
1657
- const label = (d) => `${d.chrom}:${(d.pos + 1).toLocaleString()}-${(d.pos + profile.binBp).toLocaleString()}`;
1658
- const link = { points: [], highlight: () => {
1659
- }, region };
1660
- const handle = plotManhattan(
1661
- div,
1662
- { png: profile.png, plotData: profile.plotData },
1663
- {
1664
- ...manhattanLayoutDefaults,
1665
- plotWidth: profile.plotWidth,
1666
- plotHeight: profile.plotHeight,
1667
- /* The radius the PNG was drawn at, not the shared default of 2: the hover layer is
1668
- placed in the PNG's own pixel space, and a 1 px mismatch in the padding stretches
1669
- the image against the dot coordinates the server computed. */
1670
- pngDotRadius: profile.dotRadius,
1671
- // the server already picked N per direction; the client must not re-cap by |y|
1672
- interactiveDotsCap: profile.plotData.points.length,
1673
- /* More rows than the volcano's 5. At 100 kb there are ~29,000 bins over 1,000 px, so
1674
- a cursor covers a median of 7 live bins on MMRF however tight the hit radius -- the
1675
- dots genuinely overlap at this scale. 8 shows the whole neighbourhood on a typical
1676
- hover instead of 5 of it. */
1677
- maxTooltipGenes: 8,
1678
- showLegend: false,
1679
- showDownload: false
1680
- },
1681
- void 0,
1682
- {
1683
- /* The width drawn, not the width requested: the server reports back what it binned at,
1684
- and a reader quoting the figure needs the two to agree. The interactive count is the
1685
- live dot count rather than the per-direction rule, because at a coarse width the rule
1686
- reaches every bin and "top 1,000 per direction" would read as a restriction. */
1687
- 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)`,
1688
- yAxisLabel: "\u0394\u03B2 per bin",
1689
- itemNoun: "bin",
1690
- renderSingleHoverTooltip: (d, container) => {
1691
- const table = table2col({ holder: container.append("table") });
1692
- addTooltipRow(table, "Region", label(d));
1693
- addTooltipRow(table, "\u0394\u03B2", roundValueAuto(d.y));
1694
- addTooltipRow(table, `Mean \u03B2, ${controlName}`, roundValueAuto(d.control));
1695
- addTooltipRow(table, `Mean \u03B2, ${caseName}`, roundValueAuto(d.case));
1696
- addTooltipRow(table, "CpGs measured", d.n_probes.toLocaleString());
1697
- },
1698
- buildMultiHitTableData: (dots) => ({
1699
- columns: [{ label: "Region" }, { label: "\u0394\u03B2", sortable: true }, { label: "CpGs", sortable: true }],
1700
- rows: dots.map((d) => [{ value: label(d) }, { value: roundValueAuto(d.y) }, { value: d.n_probes }])
1701
- }),
1702
- getActions: (d) => [
1703
- {
1704
- label: "Genome browser",
1705
- onClick: async () => await this.interactions.launchScanGenomeBrowser(region(d), this.viewData.scan)
1706
- }
1707
- ],
1708
- getRowKey: (d) => label(d),
1709
- onHover: (dots) => this.mirrorHover(link, dots)
1710
- }
1711
- );
1712
- this.linked.push(Object.assign(link, handle));
1713
- }
1714
- /* Ring, on every other figure, the live dots overlapping what the cursor is on. Only live dots can
1715
- be ringed -- the rest are pixels in a PNG -- so a hovered DMR outside another figure's interactive
1716
- top N has nothing to light up there. */
1717
- mirrorHover(src, dots) {
1718
- const hovered = dots.map(src.region);
1719
- for (const p of this.linked) {
1720
- if (p === src) continue;
1721
- p.highlight(
1722
- hovered.length ? p.points.filter((d) => {
1723
- const r = p.region(d);
1724
- return hovered.some((h) => h.chr == r.chr && h.start < r.stop && r.start < h.stop);
1725
- }) : []
1726
- );
1727
- }
1728
- }
1729
- renderPValueTable() {
1730
- if (!this.settings.showPValueTable) return;
1731
- const maxTableRows = 5e3;
1732
- const allRows = this.viewData.pValueTableData.rows;
1733
- const rows = allRows.length > maxTableRows ? allRows.slice(0, maxTableRows) : allRows;
1734
- if (allRows.length > maxTableRows) {
1735
- this.volcanoDom.pValueTable.append("div").style("padding", "5px 10px").style("font-size", ".8em").style("color", "#666").text(
1736
- `Showing top ${maxTableRows.toLocaleString()} of ${allRows.length.toLocaleString()} significant results (sorted by fold-change)`
1737
- );
1738
- }
1739
- renderTable({
1740
- columns: this.viewData.pValueTableData.columns,
1741
- rows,
1742
- div: this.volcanoDom.pValueTable,
1743
- showLines: true,
1744
- maxHeight: `${this.viewData.pValueTableData.height}px`,
1745
- resize: true,
1746
- header: { allowSort: true },
1747
- noRadioBtn: true,
1748
- noButtonCallback: (i) => {
1749
- const key = this.viewData.pValueTableData.rowKeys.get(rows[i]);
1750
- if (!key) return;
1751
- this.interactions.highlightDataPoint(key);
1752
- },
1753
- hoverEffects: (tr, row) => {
1754
- const circles = this.volcanoDom.plot.selectAll("circle").nodes();
1755
- const key = this.viewData.pValueTableData.rowKeys.get(row);
1756
- const dataKey = this.termType === DATermTypes.DNA_METHYLATION ? "promoter_id" : "gene_name";
1757
- const circle = circles.find((d) => d.__data__[dataKey] == key);
1758
- if (!circle || circle.__data__.highlighted) return;
1759
- let clone;
1760
- tr.on("mouseover", () => {
1761
- if (circle.__data__.highlighted || clone) return;
1762
- clone = this.volcanoDom.plot.node()?.appendChild(circle.cloneNode(true));
1763
- clone.setAttribute("fill-opacity", 0.9);
1764
- });
1765
- tr.on("mouseleave", () => {
1766
- if (!clone) return;
1767
- clone.remove();
1768
- clone = null;
1769
- });
1770
- this.volcanoDom.pValueTable.on("mouseover", () => {
1771
- selectAll_default(circles).attr("stroke-opacity", 0.075);
1772
- });
1773
- this.volcanoDom.pValueTable.on("mouseleave", () => {
1774
- selectAll_default(circles).attr("stroke-opacity", (d) => d.significant ? 0.35 : 0.2);
1775
- });
1776
- }
1777
- });
1778
- }
1779
- setSvgSubscriptLabel(textElem, prefix, subscript, suffix) {
1780
- textElem.text(null);
1781
- textElem.append("tspan").text(prefix);
1782
- textElem.append("tspan").attr("baseline-shift", "sub").attr("font-size", "0.7em").text(subscript);
1783
- textElem.append("tspan").text(suffix);
1784
- }
1785
- attachInteractions(plotDim) {
1786
- const points = this.viewData.pointData;
1787
- if (!points || points.length === 0) return;
1788
- const dotRadiusPx = this.viewData.plotExtent.dotRadiusPx;
1789
- const hitRadius = dotRadiusPx + 3;
1790
- const highlightRadius = Math.max(0.5, dotRadiusPx - 0.5);
1791
- const highlightColor = this.settings.defaultHighlightColor;
1792
- const hoverLayer = this.volcanoDom.plot.append("g").attr("id", "sjpp-volcano-hover").style("pointer-events", "none");
1793
- 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");
1794
- const circlePath = (r) => `M${r},0 A${r},${r} 0 1,1 ${-r},0 A${r},${r} 0 1,1 ${r},0 Z`;
1795
- const link = this.viewData.scan ? {
1796
- points,
1797
- region: (d) => ({ chr: d.chr, start: d.start, stop: d.stop }),
1798
- highlight: (dots) => {
1799
- drawHoverShapes(
1800
- linkedLayer,
1801
- dots.map((d) => ({
1802
- path: circlePath(dotRadiusPx + 2),
1803
- transform: `translate(${d.x},${d.y})`,
1804
- stroke: "black",
1805
- strokeWidth: 2
1806
- }))
1807
- );
1808
- }
1809
- } : void 0;
1810
- const linkedLayer = this.volcanoDom.plot.append("g").style("pointer-events", "none");
1811
- if (link) this.linked.push(link);
1812
- new DataPointInteractions({
1813
- cover,
1814
- hoverLayer,
1815
- hoverTip: this.dom.tip,
1816
- points,
1817
- // Quadtree in cover-local space — d.x/d.y are SVG-absolute, so subtract
1818
- // the plot rect's origin once when building the tree.
1819
- getX: (d) => d.x - plotDim.plot.x,
1820
- getY: (d) => d.y - plotDim.plot.y,
1821
- hitRadius,
1822
- toHoverSpec: (d) => ({
1823
- path: circlePath(highlightRadius),
1824
- // Hover layer lives in the same coord space as the dots (SVG-absolute),
1825
- // so translate by d.x/d.y — NOT the cover-local pair.
1826
- transform: `translate(${d.x},${d.y})`,
1827
- fill: highlightColor,
1828
- fillOpacity: 0.9,
1829
- stroke: "none"
1830
- }),
1831
- maxTooltipRows: this.settings.maxTooltipGenes,
1832
- ...link ? { onHover: (dots) => this.mirrorHover(link, dots) } : {},
1833
- itemNoun: "gene",
1834
- renderSingleHoverTooltip: (d, container) => {
1835
- const table = table2col({ holder: container.append("table") });
1836
- this.addTooltipRows(d, table);
1837
- },
1838
- buildMultiHitTableData: (dots) => this.buildMultiHitTable(dots),
1839
- getActions: (d) => this.getActionMenuOpts(d),
1840
- renderSingleHitInfo: (d, container) => {
1841
- const tbl = table2col({ holder: container.append("table") });
1842
- this.addTooltipRows(d, tbl);
1843
- },
1844
- getRowKey: (d) => d.gene_name
1845
- }).attach();
1846
- }
1847
- /** Multi-hit hover table for differential splicing: one row per intron cluster. */
1848
- get onDeltaBeta() {
1849
- return this.termType === DATermTypes.DNA_METHYLATION && this.settings.xAxis === "delta_beta";
1850
- }
1851
- buildSpliceMultiHitTable(dots) {
1852
- const { pValueLabel, singlePValue } = this.viewData;
1853
- const pLabel = pValueLabel.charAt(0).toUpperCase() + pValueLabel.slice(1);
1854
- const pField = singlePValue ? "original_p_value" : `${this.settings.pValueType}_p_value`;
1855
- const columns = [
1856
- { label: "Cluster" },
1857
- { label: "Gene(s)" },
1858
- { label: "\u0394PSI", sortable: true },
1859
- { label: pLabel, sortable: true }
1860
- ];
1861
- const rows = dots.map((d) => [
1862
- { value: d.cluster_id },
1863
- { value: d.genes || "" },
1864
- { value: roundValueAuto(d.delta_psi) },
1865
- { value: roundValueAuto(d[pField]) }
1866
- ]);
1867
- return { columns, rows };
1868
- }
1869
- // p-value rows duplicate those in addTooltipRows
1870
- addSpliceTooltipRows(d, table) {
1871
- const c = d;
1872
- addTooltipRow(table, "Cluster", c.cluster_id);
1873
- if (c.genes) addTooltipRow(table, "Gene(s)", c.genes);
1874
- if (c.chr) addTooltipRow(table, "Position", `${c.chr}:${c.start}-${c.stop}`);
1875
- addTooltipRow(table, "\u0394PSI", roundValueAuto(c.delta_psi));
1876
- if (c.psi_control != null) addTooltipRow(table, "PSI (group 1)", roundValueAuto(c.psi_control));
1877
- if (c.psi_case != null) addTooltipRow(table, "PSI (group 2)", roundValueAuto(c.psi_case));
1878
- if (c.n_junc != null) addTooltipRow(table, "Junctions", c.n_junc);
1879
- if (c.top_intron) addTooltipRow(table, "Top intron", c.top_intron);
1880
- if (this.viewData.singlePValue) {
1881
- addTooltipRow(table, this.viewData.pValueLabel, roundValueAuto(d.original_p_value));
1882
- } else {
1883
- addTooltipRow(table, "Original p-value", roundValueAuto(d.original_p_value));
1884
- if (d.adjusted_p_value != void 0) addTooltipRow(table, "Adjusted p-value", roundValueAuto(d.adjusted_p_value));
1885
- }
1886
- }
1887
- buildMultiHitTable(dots) {
1888
- if (this.termType === DATermTypes.JUNCTION) return this.buildSpliceMultiHitTable(dots);
1889
- const isDM = this.termType === DATermTypes.DNA_METHYLATION;
1890
- const isDAP = this.termType === DATermTypes.PROTEOME_DAP;
1891
- const effectLabel = this.onDeltaBeta ? "\u0394\u03B2" : "log\u2082(FC)";
1892
- const pValueType = this.settings.pValueType;
1893
- const { pValueLabel, singlePValue } = this.viewData;
1894
- const pLabel = pValueLabel.charAt(0).toUpperCase() + pValueLabel.slice(1);
1895
- const pField = singlePValue ? "original_p_value" : `${pValueType}_p_value`;
1896
- const columns = isDM ? [
1897
- { label: elementNoun(this.settings?.elementType).one },
1898
- { label: "Gene(s)" },
1899
- { label: effectLabel, sortable: true },
1900
- { label: pLabel, sortable: true }
1901
- ] : isDAP ? [
1902
- { label: "Identifier" },
1903
- { label: "Gene" },
1904
- { label: effectLabel, sortable: true },
1905
- { label: pLabel, sortable: true }
1906
- ] : [{ label: "Gene" }, { label: effectLabel, sortable: true }, { label: pLabel, sortable: true }];
1907
- const rows = dots.map((d) => {
1908
- const fc = { value: roundValueAuto(this.onDeltaBeta ? d.delta_beta : d.fold_change) };
1909
- const pval = { value: roundValueAuto(d[pField]) };
1910
- if (isDM) {
1911
- return [{ value: formatPromoterLabel(d) }, { value: d.gene_name || "" }, fc, pval];
1912
- }
1913
- if (isDAP) {
1914
- return [{ value: d.gene_name || "" }, { value: d.gene || "" }, fc, pval];
1915
- }
1916
- return [{ value: d.gene_name || "" }, fc, pval];
1917
- });
1918
- return { columns, rows };
1919
- }
1920
- /** Per-data-point action menu items (Violin / DMR / Box-plot). Used by
1921
- * both the single-gene click flow and the multi-gene click-menu rows so
1922
- * the launchers stay in lock-step. */
1923
- getActionMenuOpts(d) {
1924
- const termType = this.termType;
1925
- const interactions = this.interactions;
1926
- const all = [
1927
- {
1928
- label: "Violin plot",
1929
- isVisible: () => termType === DATermTypes.DNA_METHYLATION || termType === DATermTypes.GENE_EXPRESSION,
1930
- onClick: async () => {
1931
- if (termType === DATermTypes.DNA_METHYLATION) interactions.launchDNAMethViolin(d);
1932
- if (termType === DATermTypes.GENE_EXPRESSION) interactions.launchViolinGeneExp(d.gene_name);
1933
- }
1934
- },
1935
- {
1936
- /* A scan has already called every DMR: the browser shows them from the cache, beside
1937
- the genes and cCREs, where the region view would re-fit the chromosome to draw the same
1938
- track. The region view stays for the element classes, whose hits are not yet DMRs. */
1939
- label: "Genome browser",
1940
- isVisible: () => termType === DATermTypes.DNA_METHYLATION && !!this.viewData.scan,
1941
- onClick: async () => {
1942
- const dm = d;
1943
- await interactions.launchScanGenomeBrowser(dm, this.viewData.scan);
1944
- }
1945
- },
1946
- {
1947
- label: "DMR analysis",
1948
- isVisible: () => termType === DATermTypes.DNA_METHYLATION && !this.viewData.scan,
1949
- onClick: async () => {
1950
- const dm = d;
1951
- await interactions.launchDmr({
1952
- chr: dm.chr,
1953
- start: dm.start,
1954
- stop: dm.stop,
1955
- promoterId: dm.promoter_id
1956
- });
1957
- }
1958
- },
1959
- {
1960
- label: "Box plot",
1961
- isVisible: () => termType === DATermTypes.GENE_EXPRESSION,
1962
- onClick: async () => {
1963
- interactions.launchBoxPlot(d.gene_name);
1964
- }
1965
- }
1966
- ];
1967
- return all.filter((o) => o.isVisible()).map(({ label, onClick }) => ({ label, onClick }));
1968
- }
1969
- /** Populates a `table2col` instance with the standard volcano hover rows
1970
- * (gene/promoter, fold-change, original + adjusted p-values). */
1971
- addTooltipRows(d, table) {
1972
- if (this.termType === DATermTypes.JUNCTION) {
1973
- this.addSpliceTooltipRows(d, table);
1974
- return;
1975
- }
1976
- if (this.termType === DATermTypes.DNA_METHYLATION) {
1977
- if ("promoter_id" in d)
1978
- addTooltipRow(table, elementNoun(this.settings?.elementType).one, formatPromoterLabel(d));
1979
- if (d.gene_name) addTooltipRow(table, "Gene(s)", d.gene_name);
1980
- } else if (this.termType === DATermTypes.PROTEOME_DAP) {
1981
- addTooltipRow(table, "Identifier", d.gene_name);
1982
- if ("gene" in d) addTooltipRow(table, "Gene", d.gene);
1983
- } else {
1984
- addTooltipRow(table, "Gene name", d.gene_name);
1985
- }
1986
- if (this.onDeltaBeta) {
1987
- addTooltipRow(table, "\u0394\u03B2", roundValueAuto(d.delta_beta));
1988
- } else {
1989
- addTooltipRow(table, "log<sub>2</sub>(fold-change)", roundValueAuto(d.fold_change));
1990
- }
1991
- if (this.viewData.singlePValue) {
1992
- addTooltipRow(table, this.viewData.pValueLabel, roundValueAuto(d.original_p_value));
1993
- } else {
1994
- addTooltipRow(table, "Original p-value", roundValueAuto(d.original_p_value));
1995
- if (d.adjusted_p_value != void 0) addTooltipRow(table, "Adjusted p-value", roundValueAuto(d.adjusted_p_value));
1996
- }
1997
- }
1998
- };
1999
- function addTooltipRow(table, text, value) {
2000
- const [td1, td2] = table.addRow();
2001
- td1.html(text);
2002
- td2.text(value);
2003
- }
2004
- function renderDataPoints(self) {
2005
- 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");
2006
- }
2007
-
2008
- // plots/volcano/VolcanoControlInputs.ts
2009
- var isScan = (plot) => plot?.settings?.volcano?.elementType == DMR_SCAN_ELEMENT_TYPE;
2010
- var VolcanoControlInputs = class {
2011
- constructor(config, termType, elementTypes, chromosomes) {
2012
- this.config = config;
2013
- if (this.config.termType == GENE_EXPRESSION) this.sampleNum = getSampleNum(config);
2014
- this.termType = termType;
2015
- this.elementTypes = elementTypes || [];
2016
- this.chromosomes = chromosomes || [];
2017
- this.inputs = [
2018
- {
2019
- // DAP volcanoes threshold a single FDR (adjusted p-value); other term types
2020
- // threshold a p-value.
2021
- label: this.config.termType == PROTEOME_DAP ? "FDR significance (-log\u2081\u2080)" : "P value significance (-log\u2081\u2080)",
2022
- type: "number",
2023
- chartType: "volcano",
2024
- settingsKey: "pValue",
2025
- title: this.config.termType == PROTEOME_DAP ? "The FDR threshold to determine statistical significance" : "The p-value threshold to determine statistical significance",
2026
- min: 0,
2027
- // 5e-324 is the smallest positive number greater than 0 representable
2028
- // in IEEE 64-bit floating point (i.e. javascripts native Number.MIN_VALUE)
2029
- // -Math.log10(5e-324) = 323.3
2030
- max: 323.3,
2031
- step: 1
2032
- },
2033
- {
2034
- label: "P value",
2035
- type: "radio",
2036
- chartType: "volcano",
2037
- settingsKey: "pValueType",
2038
- title: "Toggle between original and adjusted pvalues for volcano plot",
2039
- // DAP files carry only a single FDR, and a DMR scan a single p, so there is nothing to
2040
- // toggle between
2041
- getDisplayStyle: (plot) => this.config.termType == PROTEOME_DAP || isScan(plot) ? "none" : "",
2042
- options: [
2043
- { label: "Adjusted", value: "adjusted" },
2044
- { label: "Original", value: "original" }
2045
- ]
2046
- },
2047
- /* Hidden for differential methylation: a DM run plots and thresholds on delta-beta,
2048
- so a log2 cutoff would set a limit in units the plot never shows. Every other term
2049
- type still gets it.
2050
- Splicing is hidden for the same reason -- it plots and thresholds on delta-PSI, and
2051
- supplies its own |dPSI| control in addSplicingControlInputs(). */
2052
- ...this.termType === DNA_METHYLATION || this.termType === JUNCTION ? [] : [
2053
- {
2054
- label: "Fold change (log\u2082)",
2055
- type: "number",
2056
- chartType: "volcano",
2057
- settingsKey: "foldChangeCutoff",
2058
- title: "The fold change threshold to determine biological significance",
2059
- min: -10,
2060
- max: 10
2061
- }
2062
- ],
2063
- {
2064
- label: "Max interactive dots",
2065
- type: "number",
2066
- chartType: "volcano",
2067
- settingsKey: "maxInteractiveDots",
2068
- title: "Cap on the number of top-significant points the server returns as interactive overlay circles. The PNG still shows every dot.",
2069
- min: 0,
2070
- max: 2e4,
2071
- step: 100
2072
- },
2073
- //Preferably, keep all the display (e.g. colors, sizes, etc.) controls
2074
- //at the bottom of the list or at least together
2075
- {
2076
- label: "Plot height",
2077
- type: "number",
2078
- chartType: "volcano",
2079
- settingsKey: "height",
2080
- title: "Height of the plot in pixels",
2081
- min: 300,
2082
- max: 1e3
2083
- },
2084
- {
2085
- label: "Plot width",
2086
- type: "number",
2087
- chartType: "volcano",
2088
- settingsKey: "width",
2089
- title: "Width of the plot in pixels",
2090
- min: 300,
2091
- max: 1e3
2092
- },
2093
- {
2094
- label: "Significant value color",
2095
- type: "color",
2096
- chartType: "volcano",
2097
- title: "Default color for significant data points.",
2098
- settingsKey: "defaultSignColor",
2099
- getDisplayStyle: () => {
2100
- if (this.config.termType == SINGLECELL_CELLTYPE) return "none";
2101
- const controlColor = this.config.tw?.term?.values?.[this.config.samplelst.groups[0].name]?.color;
2102
- const caseColor = this.config.tw?.term?.values?.[this.config.samplelst.groups[1].name].color;
2103
- if (controlColor && caseColor) return "none";
2104
- else return "";
2105
- }
2106
- },
2107
- {
2108
- label: "Non-significant value color",
2109
- type: "color",
2110
- chartType: "volcano",
2111
- title: "Default color for non-significant data points.",
2112
- settingsKey: "defaultNonSignColor"
2113
- },
2114
- {
2115
- label: "Highlight color",
2116
- type: "color",
2117
- chartType: "volcano",
2118
- title: "Default color for highlighted data points.",
2119
- settingsKey: "defaultHighlightColor"
2120
- }
2121
- ];
2122
- this.setVolcanoControlInputs();
2123
- }
2124
- /** Add more term type specific controls here. */
2125
- setVolcanoControlInputs() {
2126
- this.addGeneExpControlInputs();
2127
- this.addDNAMethControlInputs();
2128
- this.addSplicingControlInputs();
2129
- this.addSingleCellCTControlInputs();
2130
- }
2131
- addGeneExpControlInputs() {
2132
- if (this.termType !== GENE_EXPRESSION) return;
2133
- const geInputs = [
2134
- {
2135
- label: "Minimum read count",
2136
- type: "number",
2137
- chartType: "volcano",
2138
- settingsKey: "minCount",
2139
- title: "The smallest number of reads required for a gene to be considered in the analysis",
2140
- min: 0,
2141
- max: 1e4
2142
- },
2143
- {
2144
- label: "Minimum total read count",
2145
- type: "number",
2146
- chartType: "volcano",
2147
- settingsKey: "minTotalCount",
2148
- title: "The smallest total number of reads required for a gene to be considered in the analysis",
2149
- min: 0,
2150
- max: 1e4
2151
- },
2152
- {
2153
- label: "CPM cutoff",
2154
- type: "number",
2155
- chartType: "volcano",
2156
- settingsKey: "cpmCutoff",
2157
- title: "The minimum normalized expression threshold to retain only genes with sufficient expression",
2158
- min: 0
2159
- },
2160
- {
2161
- label: "Method",
2162
- type: "radio",
2163
- chartType: "volcano",
2164
- settingsKey: "method",
2165
- title: "Toggle between analysis methods",
2166
- options: this.getMethodOptions()
2167
- }
2168
- // {
2169
- // label: 'Rank Genes by',
2170
- // type: 'radio',
2171
- // chartType: 'volcano',
2172
- // settingsKey: 'rankBy',
2173
- // title: 'Rank genes by either the absolute value of the fold change or the variance',
2174
- // options: [
2175
- // { label: 'abs(Fold Change)', value: 'abs(foldChange)' },
2176
- // { label: 'Variance', value: 'variance' }
2177
- // ],
2178
- // //TODO: will enable this feature when there is backhand support
2179
- // getDisplayStyle: () => 'none'
2180
- // }
2181
- ];
2182
- this.inputs.splice(0, 0, ...geInputs);
2183
- }
2184
- addDNAMethControlInputs() {
2185
- if (this.termType !== DNA_METHYLATION) return;
2186
- const scanOnly = (plot) => isScan(plot) ? "" : "none";
2187
- const notScan = (plot) => isScan(plot) ? "none" : "";
2188
- const dmInputs = [
2189
- /* Element class comes FIRST because it is categorically different from the
2190
- controls below it: those tune how the test is run, this one changes what is
2191
- being tested. Promoters, eQTM blocks, and cCRE classes are different genomic
2192
- features with different coordinates and different test counts, so switching
2193
- produces a different analysis rather than a refined one.
2194
-
2195
- Hidden unless the dataset offers a genuine choice -- a single class means
2196
- there is nothing to pick, and a dataset using the legacy promoter-only config
2197
- gets no new UI at all. */
2198
- ...this.elementTypes.length > 1 ? [
2199
- {
2200
- label: "Element class",
2201
- type: "dropdown",
2202
- chartType: "volcano",
2203
- settingsKey: "elementType",
2204
- options: this.elementTypes.map((e) => ({ value: e.key, label: e.label })),
2205
- 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."
2206
- }
2207
- ] : [],
2208
- /* The scan's own knobs, shown only while the scan is the selected class. The chromosome
2209
- picker is a plain dropdown rather than the region search box: string2pos() turns a bare
2210
- "chr20" into a 20kb window at the chromosome midpoint, which would silently scan 0.005% of
2211
- the target. chrM is left out -- 16.5 kb of circular DNA that cannot carry a domain. */
2212
- {
2213
- label: "Scan",
2214
- type: "dropdown",
2215
- chartType: "volcano",
2216
- settingsKey: "scanChromosome",
2217
- getDisplayStyle: scanOnly,
2218
- options: [
2219
- { value: "", label: "Whole genome" },
2220
- ...this.chromosomes.filter((c) => c != "chrM" && c != "chrMT").map((c) => ({ value: c, label: c }))
2221
- ],
2222
- title: "Call DMRs de novo across the whole genome, or across one chromosome. A whole-genome scan takes about 1 minute the first time, or about 1.5 to 2 minutes with the background drift correction, and is cached after that."
2223
- },
2224
- {
2225
- label: "Correct for background drift",
2226
- type: "checkbox",
2227
- chartType: "volcano",
2228
- settingsKey: "backgroundCorrection",
2229
- boxLabel: "",
2230
- getDisplayStyle: scanOnly,
2231
- title: BACKGROUND_CORRECTION_TITLE
2232
- },
2233
- {
2234
- label: "Min CpGs per DMR",
2235
- type: "number",
2236
- chartType: "volcano",
2237
- settingsKey: "minCpgs",
2238
- getDisplayStyle: scanOnly,
2239
- min: 1,
2240
- max: 1e3,
2241
- 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."
2242
- },
2243
- /* DMRcate's region-shape knobs. Unlike the CpG floor these change the fit's output, so each
2244
- one refits the scan (and gets its own cache entry). */
2245
- {
2246
- label: "DMR bandwidth \u03BB (bp)",
2247
- type: "number",
2248
- chartType: "volcano",
2249
- settingsKey: "lambda",
2250
- getDisplayStyle: scanOnly,
2251
- min: 50,
2252
- max: 1e5,
2253
- step: 50,
2254
- 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 1 minute genome-wide, or about 1.5 to 2 with the background drift correction)."
2255
- },
2256
- {
2257
- label: "DMR kernel scaling C",
2258
- type: "number",
2259
- chartType: "volcano",
2260
- settingsKey: "C",
2261
- getDisplayStyle: scanOnly,
2262
- min: 0.5,
2263
- max: 50,
2264
- step: 0.5,
2265
- 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."
2266
- },
2267
- {
2268
- label: "Per-CpG FDR cutoff",
2269
- type: "number",
2270
- chartType: "volcano",
2271
- settingsKey: "fdrCutoff",
2272
- getDisplayStyle: scanOnly,
2273
- min: 1e-4,
2274
- max: 0.5,
2275
- step: 0.01,
2276
- 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."
2277
- },
2278
- {
2279
- /* Display width for the methylome-wide profile only. The metric is the 100 kb bin and
2280
- the Statistics rows stay on it whatever this says -- this is here because 29,000 dots
2281
- over 1,000 px overlap however small the dot, so the native figure reads as a band. */
2282
- label: "Profile bin width",
2283
- type: "dropdown",
2284
- chartType: "volcano",
2285
- settingsKey: "profileBinBp",
2286
- getDisplayStyle: scanOnly,
2287
- options: [
2288
- { value: 1e5, label: "100 Kb (native)" },
2289
- { value: 5e5, label: "500 Kb" },
2290
- { value: 1e6, label: "1 Mb" },
2291
- { value: 5e6, label: "5 Mb" }
2292
- ],
2293
- // a <select> hands back its value as a string; the setting is a width in bp
2294
- processInput: (v) => Number(v),
2295
- 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."
2296
- },
2297
- {
2298
- label: "Min samples per group",
2299
- type: "number",
2300
- chartType: "volcano",
2301
- settingsKey: "minSamplesPerGroup",
2302
- title: "Minimum non-NA samples required per group for a promoter to be tested",
2303
- // the scan resolves its own groups (3+ per group, fixed) and has no per-element NA filter
2304
- getDisplayStyle: notScan,
2305
- min: 1,
2306
- max: 100
2307
- },
2308
- {
2309
- label: "Exclude sex chromosomes",
2310
- type: "checkbox",
2311
- chartType: "volcano",
2312
- settingsKey: "excludeSexChr",
2313
- boxLabel: "",
2314
- // the scan honours it too: scanChromosomes() drops chrX/chrY from a whole-genome scan
2315
- 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."
2316
- },
2317
- {
2318
- label: "Center \u0394\u03B2 on median",
2319
- type: "checkbox",
2320
- chartType: "volcano",
2321
- settingsKey: "centerDeltaBeta",
2322
- boxLabel: "",
2323
- // the background correction is the scan's version of this question
2324
- getDisplayStyle: notScan,
2325
- 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.'
2326
- },
2327
- {
2328
- label: "Min \u0394\u03B2",
2329
- type: "number",
2330
- chartType: "volcano",
2331
- settingsKey: "deltaBetaCutoff",
2332
- 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.",
2333
- min: 0,
2334
- max: 1,
2335
- step: 0.01
2336
- }
2337
- ];
2338
- this.inputs.splice(0, 0, ...dmInputs);
2339
- }
2340
- addSingleCellCTControlInputs() {
2341
- if (this.termType !== SINGLECELL_CELLTYPE) return;
2342
- const scctInputs = [];
2343
- this.inputs.splice(0, 0, ...scctInputs);
2344
- }
2345
- addSplicingControlInputs() {
2346
- if (this.termType !== JUNCTION) return;
2347
- const dsInputs = [
2348
- {
2349
- label: "Method",
2350
- type: "radio",
2351
- chartType: "volcano",
2352
- settingsKey: "method",
2353
- title: "Which engine computes the test",
2354
- options: this.getSpliceMethodOptions()
2355
- },
2356
- {
2357
- label: "Minimum counts per cluster",
2358
- type: "number",
2359
- chartType: "volcano",
2360
- settingsKey: "minCountsPerCluster",
2361
- title: "Threshold on each sample's total read count in the cluster",
2362
- min: 0,
2363
- max: 1e4
2364
- },
2365
- {
2366
- /* leafcutter's -i: an intron must be seen in at least this many samples. Defaulted by
2367
- validateDSSettings to a fraction of cohort size rather than a fixed count, because a
2368
- fixed one silently loosens as N grows -- 5 samples is a third of a 15-sample run and
2369
- 0.2% of a 2,500-sample one. Editable here so a user can override that default. */
2370
- label: "Minimum samples per intron",
2371
- type: "number",
2372
- chartType: "volcano",
2373
- settingsKey: "minSamplesPerIntron",
2374
- title: "An intron must be observed in at least this many samples to be kept. Defaults to 2% of the cohort, floor 5.",
2375
- min: 1,
2376
- max: 1e4
2377
- },
2378
- {
2379
- // leafcutter's -g: the same floor, applied within each of the two groups
2380
- label: "Minimum samples per group",
2381
- type: "number",
2382
- chartType: "volcano",
2383
- settingsKey: "minSamplesPerGroup",
2384
- title: "A cluster must have sufficient coverage in at least this many samples in EACH group. Defaults to 1% of the cohort, floor 3.",
2385
- min: 1,
2386
- max: 1e4
2387
- },
2388
- {
2389
- /* The cutoff that actually matters for this term type. At large cohorts the p-value
2390
- stops discriminating -- at ~1000 per group most "significant" clusters shift under a
2391
- percentage point of PSI -- so the effect size is the filter, not the p. The unit is
2392
- named in the title because 0.05 here is 5 percentage points, not a p-value. */
2393
- label: "Minimum |\u0394PSI|",
2394
- type: "number",
2395
- chartType: "volcano",
2396
- settingsKey: "deltaPsiCutoff",
2397
- title: "Clusters must shift at least this much in PSI to count as significant. 0.05 = 5 percentage points.",
2398
- min: 0,
2399
- max: 1,
2400
- step: 0.01
2401
- }
2402
- ];
2403
- this.inputs.splice(0, 0, ...dsInputs);
2404
- }
2405
- // only edgeR is wired; add leafcutter here later
2406
- getSpliceMethodOptions() {
2407
- if (this.termType !== JUNCTION) return;
2408
- return [{ label: "edgeR (diffSplice)", value: "edgeR" }];
2409
- }
2410
- getMethodOptions() {
2411
- if (this.termType !== GENE_EXPRESSION) return;
2412
- const settings = this.config.settings.volcano;
2413
- const features = JSON.parse(sessionStorage.getItem("optionalFeatures"));
2414
- if (features?.runDE_methods?.length) {
2415
- const opts = [];
2416
- for (const m of features.runDE_methods) {
2417
- opts.push({ label: m, value: m.toLowerCase() });
2418
- }
2419
- return opts;
2420
- }
2421
- if (this.sampleNum < settings.sampleNumCutoff) {
2422
- return [
2423
- { label: "edgeR", value: "edgeR" },
2424
- { label: "Wilcoxon", value: "wilcoxon" },
2425
- { label: "Limma", value: "limma" }
2426
- ];
2427
- } else return [{ label: "Wilcoxon", value: "wilcoxon" }];
2428
- }
2429
- };
2430
-
2431
- // plots/volcano/Volcano.ts
2432
- var MIN_WILCOXON_GROUP_SIZE = 20;
2433
- var Volcano = class _Volcano extends PlotBase {
2434
- static {
2435
- this.type = "volcano";
2436
- }
2437
- constructor(opts, api) {
2438
- super(opts, api);
2439
- if (this.opts.parentId) this.parentId = this.opts.parentId;
2440
- this.type = _Volcano.type;
2441
- this.components = {
2442
- controls: {}
2443
- };
2444
- this.termType = opts.termType;
2445
- const holder = opts.holder.classed("sjpp-volcano-main", true).attr("data-testid", `sjpp-volcano-main-${opts.termType}`);
2446
- const controls = typeof opts.controls == "object" ? opts.controls : holder || holder.append("div");
2447
- const error = opts.holder.append("div").attr("id", "sjpp-volcano-error").attr("data-testid", `sjpp-volcano-error-${opts.termType}`).style("opacity", 0.75);
2448
- this.dom = {
2449
- holder,
2450
- controls,
2451
- error,
2452
- 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..."),
2453
- tip: new Menu({ padding: "" }),
2454
- actionsTip: new Menu({ padding: "" })
2455
- };
2456
- }
2457
- getState(appState) {
2458
- const config = appState.plots.find((p) => p.id === this.id);
2459
- if (!config) {
2460
- throw new Error(
2461
- `No plot with id='${this.id}' found. Did you set this.id before this.api = getComponentApi(this)?`
2462
- );
2463
- }
2464
- const parentConfig = this.parentId && appState.plots.find((p) => p.id === this.parentId);
2465
- const termfilter = getCombinedTermFilter(appState, config.filter || parentConfig?.filter);
2466
- return {
2467
- config: Object.assign({}, config, {
2468
- settings: {
2469
- volcano: config.settings.volcano
2470
- }
2471
- }),
2472
- termfilter
2473
- };
2474
- }
2475
- async setControls() {
2476
- const plotConfig = this.app.getState().plots.find((p) => p.id === this.id);
2477
- const controls = new VolcanoControlInputs(
2478
- plotConfig,
2479
- this.termType,
2480
- this.app.vocabApi.termdbConfig?.queries?.dnaMethylation?.elementTypes,
2481
- this.app.opts.genome?.majorchrorder
2482
- );
2483
- this.components.controls = await controlsInit({
2484
- app: this.app,
2485
- id: this.id,
2486
- holder: this.dom.controls.style("display", "inline-block"),
2487
- inputs: controls.inputs
2488
- });
2489
- this.components.controls.on("downloadClick.volcano", () => this.interactions.download(this.termType));
2490
- if (plotConfig.chartType == "differentialAnalysis")
2491
- this.components.controls.on(
2492
- "helpClick.differentialAnalysis",
2493
- () => (
2494
- //Opens the page for the differential analysis wiki
2495
- //Can't put in parent as DA does not have a controls component
2496
- window.open("https://github.com/stjude/proteinpaint/wiki/Differential-analysis")
2497
- )
2498
- );
2499
- }
2500
- async init() {
2501
- this.interactions = new VolcanoInteractions(this.app, this.id, this.dom);
2502
- this.model = new VolcanoModel(this, this.termType);
2503
- this.view = new VolcanoPlotView(this.dom, this.interactions, this.termType);
2504
- await this.setControls();
2505
- }
2506
- async main() {
2507
- if (!this.interactions) throw new Error("Volcano Interactions not initialized");
2508
- if (!this.model) throw new Error("Volcano Model not initialized");
2509
- if (!this.view) throw new Error("Volcano View not initialized");
2510
- const config = structuredClone(this.state.config);
2511
- if (config.chartType != this.type && config.childType != this.type) return;
2512
- const settings = config.settings.volcano;
2513
- let showWait, waitTimer;
2514
- try {
2515
- const isScan2 = settings.elementType == DMR_SCAN_ELEMENT_TYPE;
2516
- const waitText = !isScan2 ? "Loading..." : settings.scanChromosome ? `Scanning ${settings.scanChromosome} for DMRs...` : `Scanning for DMRs... a whole-genome scan ${settings.backgroundCorrection ? "with the background drift correction takes about 1.5 to 2 minutes" : "takes about 1 minute"} the first time, and is cached after that.`;
2517
- this.dom.wait.text(waitText);
2518
- showWait = setTimeout(() => {
2519
- this.dom.wait.style("display", "block");
2520
- }, 500);
2521
- const start = Date.now();
2522
- if (this.termType == DNA_METHYLATION)
2523
- waitTimer = setInterval(() => {
2524
- const ms = Math.round((Date.now() - start) / 1e3) * 1e3;
2525
- this.dom.wait.text(`${waitText} ${formatElapsedTime(ms, 0)} elapsed.`);
2526
- }, 1e3);
2527
- const response = await this.model.getData(config, settings);
2528
- this.dom.error.text("");
2529
- if (!response || response.error || !response.data || !response.data.volcanoPng || !response.data.totalRows) {
2530
- const msg = response?.error || "No data returned from server";
2531
- if (response?.code === "CACHE_BUSY") {
2532
- if (window.confirm(msg)) this.main();
2533
- } else sayerror(this.dom.error, msg);
2534
- return;
2535
- }
2536
- const viewModel = new VolcanoViewModel(config, response, settings);
2537
- this.interactions.pValueTableData = viewModel.viewData.pValueTableData;
2538
- this.interactions.data = response.data.dots;
2539
- this.interactions.totalSignificantRows = response.data.totalSignificantRows;
2540
- this.interactions.provenance = viewModel.viewData.provenance;
2541
- this.interactions.fetchAllRows = async () => {
2542
- const full = await new VolcanoModel(this, this.termType).getData(config, {
2543
- ...settings,
2544
- maxInteractiveDots: null
2545
- });
2546
- if (!full || full.error || !full.data?.dots) throw new Error(full?.error || "no rows returned");
2547
- return new VolcanoViewModel(config, full, settings).viewData.pValueTableData;
2548
- };
2549
- this.view.render(settings, viewModel.viewData);
2550
- const notes = [];
2551
- if (!response.data.dots.length) notes.push("No points passed the significance thresholds.");
2552
- const smallestGroup = Math.min(response.sample_size1, response.sample_size2);
2553
- if (settings.method == "wilcoxon" && smallestGroup < MIN_WILCOXON_GROUP_SIZE) {
2554
- const samplesLabel = uiLabel(this.app.vocabApi.termdbConfig?.uiLabels, "samples", "samples");
2555
- notes.push(
2556
- `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.`
2557
- );
2558
- }
2559
- if (notes.length) this.dom.error.text(notes.join(" ")).style("color", "#555");
2560
- } catch (e) {
2561
- if (e instanceof Error) console.error(e.message || e);
2562
- else if (e.stack) console.log(e.stack);
2563
- throw e;
2564
- } finally {
2565
- clearTimeout(showWait);
2566
- clearInterval(waitTimer);
2567
- this.dom.wait.style("display", "none");
2568
- }
2569
- }
2570
- };
2571
- var volcanoInit = getCompInit(Volcano);
2572
- var componentInit = volcanoInit;
2573
- async function getPlotConfig(opts, app) {
2574
- if (!opts.termType) throw new Error(".termType is required");
2575
- const config = {
2576
- settings: {
2577
- // app is passed through so the defaults can read the dataset's preferred starting
2578
- // element class from termdbConfig; opts alone does not carry it
2579
- volcano: getDefaultVolcanoSettings(opts.overrides, { ...opts, app })
2580
- },
2581
- highlightedData: opts.highlightedData || [],
2582
- termType: opts.termType
2583
- };
2584
- if (opts.termType == GENE_EXPRESSION || opts.termType == DNA_METHYLATION) {
2585
- if (opts.confounderTws) {
2586
- try {
2587
- for (const tw of opts.confounderTws) {
2588
- await fillTermWrapper(tw, app.vocabApi);
2589
- }
2590
- } catch (e) {
2591
- console.error(e.message || e);
2592
- throw new Error(`Volcano getPlotConfig() failed to fill confounder term wrappers: ${e}`);
2593
- }
2594
- }
2595
- Object.assign(config, {
2596
- confounderTws: opts.confounderTws || [],
2597
- samplelst: opts.samplelst
2598
- });
2599
- }
2600
- if (opts.termType == SINGLECELL_CELLTYPE) {
2601
- Object.assign(config, {
2602
- //TODO: Fix this logic
2603
- sample: opts.experimentID || opts.sample || opts.samples?.[0]?.experiments[0]?.experimentID,
2604
- termId: app.vocabApi.termdbConfig.queries.singleCell.DEgenes.termId,
2605
- //TODO: 'Cluster' is a fallback for development
2606
- //Should require opts.categoryName in the future
2607
- categoryName: opts.categoryName || "Cluster"
2608
- });
2609
- }
2610
- validateVolcanoSettings(config, opts);
2611
- return copyMerge(config, opts);
2612
- }
2613
- export {
2614
- Volcano,
2615
- componentInit,
2616
- getPlotConfig,
2617
- volcanoInit
2618
- };
2619
- //# sourceMappingURL=Volcano-GRKXU3WL.js.map