@sjcrh/proteinpaint-client 2.181.0 → 2.182.1

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 (980) hide show
  1. package/dist/2dmaf-YHYYSSKR.js +1371 -0
  2. package/dist/AIProjectAdmin-D4AASQBM.js +830 -0
  3. package/dist/AIProjectAdmin-D4AASQBM.js.map +7 -0
  4. package/dist/AppHeader-T4ZLY3VG.js +833 -0
  5. package/dist/BoxPlot-DIU4YXNK.js +1217 -0
  6. package/dist/BoxPlot-DIU4YXNK.js.map +7 -0
  7. package/dist/CorrelationVolcano-EXH4P56S.js +617 -0
  8. package/dist/DE-C5K2TVUQ.js +93 -0
  9. package/dist/DE-C5K2TVUQ.js.map +7 -0
  10. package/dist/DEinput-KVILE7QQ.js +297 -0
  11. package/dist/DEinput-KVILE7QQ.js.map +7 -0
  12. package/dist/DifferentialAnalysis-P6GKHAS5.js +238 -0
  13. package/dist/Disco-IMLXEBPG.js +3235 -0
  14. package/dist/Disco-IMLXEBPG.js.map +7 -0
  15. package/dist/Disco.UI-4A2P5Q55.js +242 -0
  16. package/dist/DmrPlot-6EEEGD32.js +640 -0
  17. package/dist/GB-XFO5I6ND.js +1125 -0
  18. package/dist/HicApp-3LFHOOAR.js +2248 -0
  19. package/dist/NumBinaryEditor-74PY52BP.js +268 -0
  20. package/dist/NumBinaryEditor-74PY52BP.js.map +7 -0
  21. package/dist/NumBinaryEditor.unit.spec-2PYZ7P2R.js +284 -0
  22. package/dist/NumContEditor-BMWALLQM.js +105 -0
  23. package/dist/NumContEditor.unit.spec-ETVLVX6A.js +167 -0
  24. package/dist/NumCustomBinEditor-2XJ6GUWY.js +36 -0
  25. package/dist/NumCustomBinEditor.unit.spec-TZVL553E.js +282 -0
  26. package/dist/NumDiscreteEditor-4LNLKAXT.js +177 -0
  27. package/dist/NumDiscreteEditor-4LNLKAXT.js.map +7 -0
  28. package/dist/NumDiscreteEditor.unit.spec-KQND2XAE.js +200 -0
  29. package/dist/NumRegularBinEditor-OYELFDIB.js +36 -0
  30. package/dist/NumRegularBinEditor.unit.spec-44SALKLH.js +225 -0
  31. package/dist/NumSplineEditor-SENQC4P2.js +190 -0
  32. package/dist/NumSplineEditor-SENQC4P2.js.map +7 -0
  33. package/dist/NumSplineEditor.unit.spec-XKB4XXU4.js +197 -0
  34. package/dist/NumericDensity-GCNWO7YS.js +36 -0
  35. package/dist/NumericDensity.unit.spec-7LWNOUYK.js +219 -0
  36. package/dist/NumericHandler-EMQBI5UI.js +37 -0
  37. package/dist/NumericHandler.unit.spec-TEELPRIM.js +217 -0
  38. package/dist/RunChart2-LJBC5X2H.js +756 -0
  39. package/dist/RunChart2-LJBC5X2H.js.map +7 -0
  40. package/dist/SC-3EB6UYIS.js +682 -0
  41. package/dist/SC-3EB6UYIS.js.map +7 -0
  42. package/dist/Volcano-CPULLVYV.js +1185 -0
  43. package/dist/Volcano-CPULLVYV.js.map +7 -0
  44. package/dist/WSIViewer-2YCT4LCM.js +47974 -0
  45. package/dist/WSIViewer-2YCT4LCM.js.map +7 -0
  46. package/dist/WsiSamplesPlot-B2DM7Z3Q.js +163 -0
  47. package/dist/adSandbox-INF3NNEV.js +36 -0
  48. package/dist/alphaGenome-CO4TQHXN.js +173 -0
  49. package/dist/app-63JU2YIT.js +47 -0
  50. package/dist/app-BL3POUOO.js +35 -0
  51. package/dist/app.js +17 -17
  52. package/dist/bam-SVEJYICC.js +857 -0
  53. package/dist/bam-SVEJYICC.js.map +7 -0
  54. package/dist/barchart-PDUXZAIH.js +45 -0
  55. package/dist/barchart.data-EXENRVMU.js +22 -0
  56. package/dist/barchart.events-MQNQTSWI.js +45 -0
  57. package/dist/barchart.integration.spec-DSO2377T.js +1675 -0
  58. package/dist/bars.renderer-S7A7I6BQ.js +12 -0
  59. package/dist/block-OO2NLGUP.js +6200 -0
  60. package/dist/block-OO2NLGUP.js.map +7 -0
  61. package/dist/block.init-7J5OHYKA.js +36 -0
  62. package/dist/block.mds.expressionrank-643H7PN7.js +357 -0
  63. package/dist/block.mds.geneboxplot-C222ODSL.js +826 -0
  64. package/dist/block.mds.junction-C5DJRUOK.js +1543 -0
  65. package/dist/block.mds.svcnv-4G74JQ7Y.js +6799 -0
  66. package/dist/block.svg-35KUC5R7.js +162 -0
  67. package/dist/block.tk.aicheck-LLWT6K6H.js +281 -0
  68. package/dist/block.tk.ase-PQUKY65E.js +363 -0
  69. package/dist/block.tk.bam-EUEOB7BR.js +1904 -0
  70. package/dist/block.tk.bedgraphdot-XAHUY545.js +382 -0
  71. package/dist/block.tk.bigwig.ui-HEOPNL3T.js +209 -0
  72. package/dist/block.tk.hicstraw-EPH3LEX2.js +821 -0
  73. package/dist/block.tk.junction-MIUDAIAR.js +2362 -0
  74. package/dist/block.tk.junction.textmatrixui-AVFUQBDS.js +197 -0
  75. package/dist/block.tk.ld-ED7YMBQ4.js +97 -0
  76. package/dist/block.tk.menu-3CVIECWQ.js +1027 -0
  77. package/dist/block.tk.pgv-HETJVWXH.js +942 -0
  78. package/dist/brainImaging-K3LHK3DD.js +421 -0
  79. package/dist/chat-BYX5ARUK.js +148 -0
  80. package/dist/chunk-25RP5OSE.js +1426 -0
  81. package/dist/chunk-25RP5OSE.js.map +7 -0
  82. package/dist/chunk-2LULD7RN.js +31 -0
  83. package/dist/chunk-2M6JV7YS.js +261 -0
  84. package/dist/chunk-2M6JV7YS.js.map +7 -0
  85. package/dist/chunk-2TJESM3Z.js +158 -0
  86. package/dist/chunk-2TJESM3Z.js.map +7 -0
  87. package/dist/chunk-2VFYZ3EY.js +102 -0
  88. package/dist/chunk-3CD5ZROA.js +4952 -0
  89. package/dist/chunk-3DCABJHB.js +381 -0
  90. package/dist/chunk-3MMKHYUM.js +95 -0
  91. package/dist/chunk-3PRPMJTG.js +55 -0
  92. package/dist/chunk-4JON7TLI.js +176 -0
  93. package/dist/chunk-4JON7TLI.js.map +7 -0
  94. package/dist/chunk-5JD4D5GD.js +215 -0
  95. package/dist/chunk-5JD4D5GD.js.map +7 -0
  96. package/dist/chunk-5UMPBVA6.js +534 -0
  97. package/dist/chunk-64FGLSIM.js +56 -0
  98. package/dist/chunk-64FGLSIM.js.map +7 -0
  99. package/dist/chunk-6ITDJ5UR.js +261 -0
  100. package/dist/chunk-6ITDJ5UR.js.map +7 -0
  101. package/dist/chunk-6LAE5AVA.js +13624 -0
  102. package/dist/chunk-6VLA5NEW.js +335 -0
  103. package/dist/chunk-6VLA5NEW.js.map +7 -0
  104. package/dist/chunk-7FKIAQ4K.js +17 -0
  105. package/dist/chunk-7FKIAQ4K.js.map +7 -0
  106. package/dist/chunk-7FTDQDVF.js +824 -0
  107. package/dist/chunk-7IEZ2KMW.js +142 -0
  108. package/dist/chunk-7RN3L2BX.js +1788 -0
  109. package/dist/chunk-7RN3L2BX.js.map +7 -0
  110. package/dist/chunk-A5AFIW2T.js +14 -0
  111. package/dist/chunk-A6TQGNDQ.js +421 -0
  112. package/dist/chunk-A6TQGNDQ.js.map +7 -0
  113. package/dist/chunk-AIBODF32.js +2784 -0
  114. package/dist/chunk-AWWW6K2I.js +407 -0
  115. package/dist/chunk-AWWW6K2I.js.map +7 -0
  116. package/dist/chunk-BAY47D5E.js +226 -0
  117. package/dist/chunk-CFHKYLDY.js +26 -0
  118. package/dist/chunk-CJZN7HFL.js +293 -0
  119. package/dist/chunk-CXOF4UGH.js +229 -0
  120. package/dist/chunk-CXOF4UGH.js.map +7 -0
  121. package/dist/chunk-D4QFQQWJ.js +170 -0
  122. package/dist/chunk-DNCSPTOQ.js +446 -0
  123. package/dist/chunk-DQGSCCI3.js +100 -0
  124. package/dist/chunk-EWGMLVC7.js +34 -0
  125. package/dist/chunk-F7PB5HGT.js +148 -0
  126. package/dist/chunk-G7QKLA54.js +92 -0
  127. package/dist/chunk-HWHG63LH.js +148 -0
  128. package/dist/chunk-HWHG63LH.js.map +7 -0
  129. package/dist/chunk-HYZG6OPC.js +467 -0
  130. package/dist/chunk-HYZG6OPC.js.map +7 -0
  131. package/dist/chunk-IBBMKCO7.js +526 -0
  132. package/dist/chunk-IBBMKCO7.js.map +7 -0
  133. package/dist/chunk-IQUYTZOA.js +455 -0
  134. package/dist/chunk-IQUYTZOA.js.map +7 -0
  135. package/dist/chunk-J5RINDKS.js +480 -0
  136. package/dist/chunk-JMPSZMDD.js +52 -0
  137. package/dist/chunk-KQMEJUWI.js +815 -0
  138. package/dist/chunk-KWFEGPZL.js +97 -0
  139. package/dist/chunk-KWFEGPZL.js.map +7 -0
  140. package/dist/chunk-LBXZGYU5.js +368 -0
  141. package/dist/chunk-LBXZGYU5.js.map +7 -0
  142. package/dist/chunk-LRBNYEFI.js +50 -0
  143. package/dist/chunk-LRBNYEFI.js.map +7 -0
  144. package/dist/chunk-LRMV5DNW.js +441 -0
  145. package/dist/chunk-LWNOC7AJ.js +54 -0
  146. package/dist/chunk-MICNOSX7.js +129 -0
  147. package/dist/chunk-MLWNMXAV.js +272 -0
  148. package/dist/chunk-MMBLSLQR.js +158 -0
  149. package/dist/chunk-N3QEGDEZ.js +117 -0
  150. package/dist/chunk-N3QEGDEZ.js.map +7 -0
  151. package/dist/chunk-NV5XWADG.js +1150 -0
  152. package/dist/chunk-NVB7MQLH.js +20649 -0
  153. package/dist/chunk-NVB7MQLH.js.map +7 -0
  154. package/dist/chunk-O3255WPP.js +1087 -0
  155. package/dist/chunk-OSM7YS23.js +276 -0
  156. package/dist/chunk-PEWHCKCH.js +1205 -0
  157. package/dist/chunk-PEWHCKCH.js.map +7 -0
  158. package/dist/chunk-Q7PYFSNU.js +107 -0
  159. package/dist/chunk-QEZPKEWB.js +1159 -0
  160. package/dist/chunk-QEZPKEWB.js.map +7 -0
  161. package/dist/chunk-QMI222IJ.js +386 -0
  162. package/dist/chunk-QRIRWDIW.js +252 -0
  163. package/dist/chunk-SJTOSA7E.js +629 -0
  164. package/dist/chunk-SRYFYAXK.js +615 -0
  165. package/dist/chunk-SSPDNHDW.js +398 -0
  166. package/dist/chunk-SSPDNHDW.js.map +7 -0
  167. package/dist/chunk-SYMOQE3X.js +37 -0
  168. package/dist/chunk-SYMOQE3X.js.map +7 -0
  169. package/dist/chunk-TITA4HJA.js +228 -0
  170. package/dist/chunk-U7ZMIMI5.js +2815 -0
  171. package/dist/chunk-UJU3Q7QJ.js +119 -0
  172. package/dist/chunk-UL2ISTHR.js +2672 -0
  173. package/dist/chunk-VIPMLSZP.js +217 -0
  174. package/dist/chunk-VYIO7T6J.js +82 -0
  175. package/dist/chunk-VYIO7T6J.js.map +7 -0
  176. package/dist/chunk-VZPYIG77.js +1271 -0
  177. package/dist/chunk-VZPYIG77.js.map +7 -0
  178. package/dist/chunk-W345H42C.js +273 -0
  179. package/dist/chunk-W345H42C.js.map +7 -0
  180. package/dist/chunk-WGL6FIUE.js +330 -0
  181. package/dist/chunk-WIYKAKWE.js +302 -0
  182. package/dist/chunk-WJGVQJSX.js +514 -0
  183. package/dist/chunk-WJGVQJSX.js.map +7 -0
  184. package/dist/chunk-WPHOEG56.js +194 -0
  185. package/dist/chunk-WU63AOK2.js +4207 -0
  186. package/dist/chunk-WU63AOK2.js.map +7 -0
  187. package/dist/chunk-XS4QWRS3.js +205 -0
  188. package/dist/chunk-XYFDBYOY.js +1658 -0
  189. package/dist/chunk-XYFDBYOY.js.map +7 -0
  190. package/dist/chunk-YDWRIMCT.js +289 -0
  191. package/dist/chunk-YDWRIMCT.js.map +7 -0
  192. package/dist/chunk-YK5NFMHR.js +269 -0
  193. package/dist/chunk-YK5NFMHR.js.map +7 -0
  194. package/dist/chunk-YSW57QDM.js +6364 -0
  195. package/dist/chunk-YXQNZPCO.js +203 -0
  196. package/dist/chunk-YYYJB53A.js +2370 -0
  197. package/dist/chunk-ZTKQLABY.js +470 -0
  198. package/dist/condition-AM523RDR.js +330 -0
  199. package/dist/controls-HTMH5QBP.js +39 -0
  200. package/dist/controls.config-EEK2RBPI.js +37 -0
  201. package/dist/correlation-HKD67SPS.js +96 -0
  202. package/dist/cuminc-66V55MMN.js +1147 -0
  203. package/dist/cuminc.integration.spec-PNTOPB2L.js +676 -0
  204. package/dist/customdata.inputui-Z4WQDU6I.js +285 -0
  205. package/dist/dataDownload-3ZEI22OK.js +328 -0
  206. package/dist/dataDownload.integration.spec-C3JRC6K5.js +191 -0
  207. package/dist/databrowser.ui-Q365SHBG.js +419 -0
  208. package/dist/dictionary-D4E2VEJT.js +109 -0
  209. package/dist/dictionary-D4E2VEJT.js.map +7 -0
  210. package/dist/dnaMethylation-IFZWWBUG.js +36 -0
  211. package/dist/dnaMethylation.integration.spec-UKV4BSIO.js +165 -0
  212. package/dist/dnaMethylation.integration.spec-UKV4BSIO.js.map +7 -0
  213. package/dist/e2pca-I3QXF7EM.js +348 -0
  214. package/dist/ep-2VCQ36GT.js +1254 -0
  215. package/dist/expclust.gdc.spec-VWIQFY67.js +305 -0
  216. package/dist/facet-CHP3VUWS.js +519 -0
  217. package/dist/geneExpClustering-YDIDEH2O.js +246 -0
  218. package/dist/geneExpression-FA5RJRHZ.js +36 -0
  219. package/dist/geneExpression-X2KXJPND.js +312 -0
  220. package/dist/geneExpression.unit.spec-3LVHYZGG.js +100 -0
  221. package/dist/geneORA-4CAYRKSN.js +276 -0
  222. package/dist/geneVariant-OCOTNUH4.js +39 -0
  223. package/dist/geneVariant-Y4L5W5HF.js +37 -0
  224. package/dist/geneVariant.integration.spec-BOJ5MM5K.js +196 -0
  225. package/dist/genefusion.ui-I6HZOBIV.js +249 -0
  226. package/dist/geneset-GEWKDAAT.js +194 -0
  227. package/dist/genomeBrowser.spec-FDEGH4DY.js +279 -0
  228. package/dist/grin2-K56B6XBZ.js +1031 -0
  229. package/dist/grin2-V6FMM44N.js +1554 -0
  230. package/dist/gsea-UNPPRU2U.js +45 -0
  231. package/dist/hierCluster-DXAWRQNI.js +58 -0
  232. package/dist/hierCluster-SPIQA2M2.js +62 -0
  233. package/dist/hierCluster.config-JW6D3T3Q.js +38 -0
  234. package/dist/hierCluster.integration.spec-5NXZY4LG.js +374 -0
  235. package/dist/hierCluster.interactivity-CPPBXHM7.js +52 -0
  236. package/dist/hierCluster.renderers-A6MEGO2B.js +21 -0
  237. package/dist/imagePlot-QLAHCULW.js +139 -0
  238. package/dist/importPlot-6ITZ6U7G.js +8 -0
  239. package/dist/isoformExpression-7GAUF2QV.js +38 -0
  240. package/dist/isoformExpression.unit.spec-3BVXVVNO.js +206 -0
  241. package/dist/isoformExpression.unit.spec-3BVXVVNO.js.map +7 -0
  242. package/dist/jspdf.es.min-FC3BCETM.js +40 -0
  243. package/dist/launch.adhoc-HFHBAUR6.js +40 -0
  244. package/dist/leftlabel.sample-CWPJUCHR.js +257 -0
  245. package/dist/lollipop-QFRQLEER.js +166 -0
  246. package/dist/maf-OEODBT3Y.js +450 -0
  247. package/dist/maf-OEODBT3Y.js.map +7 -0
  248. package/dist/maftimeline-2DFIF4C4.js +591 -0
  249. package/dist/matrix-3HFB5TUU.js +57 -0
  250. package/dist/matrix-MIXK27AD.js +62 -0
  251. package/dist/matrix.cells-U7AQNEBP.js +28 -0
  252. package/dist/matrix.config-FX5MHX6O.js +39 -0
  253. package/dist/matrix.controls-5K7BB5Z4.js +37 -0
  254. package/dist/matrix.data-EEIY6AO4.js +25 -0
  255. package/dist/matrix.dom-6QL3AJMW.js +11 -0
  256. package/dist/matrix.groups-CUB6UWC5.js +26 -0
  257. package/dist/matrix.integration.spec-ML4T7FRG.js +3070 -0
  258. package/dist/matrix.interactivity-QMPWX63Q.js +40 -0
  259. package/dist/matrix.layout-7SEF6MYI.js +42 -0
  260. package/dist/matrix.legend-42LQGAGX.js +22 -0
  261. package/dist/matrix.renderers-ZF7LLER3.js +36 -0
  262. package/dist/matrix.serieses-4B2WB526.js +21 -0
  263. package/dist/matrix.sort-BJACNR7G.js +27 -0
  264. package/dist/matrix.sort.unit.spec-ZGSM7HDJ.js +470 -0
  265. package/dist/matrix.sorterUi-W6XFYZY2.js +18 -0
  266. package/dist/matrix.sorterUi.unit.spec-V34ZZD7A.js +340 -0
  267. package/dist/mavb-NVQVFU6E.js +730 -0
  268. package/dist/mds.fimo-HOCF6U6K.js +516 -0
  269. package/dist/mds.samplescatterplot-ULD5BK5R.js +1548 -0
  270. package/dist/mds.survivalplot-5US32RQD.js +481 -0
  271. package/dist/oncomatrix-Y3G3MUJJ.js +293 -0
  272. package/dist/oncomatrix-Y3G3MUJJ.js.map +7 -0
  273. package/dist/oncomatrix.spec-MFUJLWEP.js +446 -0
  274. package/dist/plot.2dvaf-F4WZ4YPU.js +375 -0
  275. package/dist/plot.app-YFFLLBU5.js +39 -0
  276. package/dist/plot.barplot-2EJ2MWQD.js +100 -0
  277. package/dist/plot.boxplot-AKZM443E.js +150 -0
  278. package/dist/plot.brainImaging-DR6WJNFZ.js +51 -0
  279. package/dist/plot.disco-LBE5H67U.js +101 -0
  280. package/dist/plot.disco-LBE5H67U.js.map +7 -0
  281. package/dist/plot.dzi-R2MR7HAT.js +33 -0
  282. package/dist/plot.ssgq-C52YIUFY.js +137 -0
  283. package/dist/plot.vaf2cov-FOD3K7BC.js +257 -0
  284. package/dist/plot.wsi-D2TXYERK.js +36 -0
  285. package/dist/polar-2LC35O6K.js +184 -0
  286. package/dist/polar2-QPUOEUJZ.js +226 -0
  287. package/dist/profile.spec-3NCDGHLX.js +78 -0
  288. package/dist/profileBarchart-PPQ3NL4D.js +265 -0
  289. package/dist/profileForms-GS3VVW65.js +438 -0
  290. package/dist/profilePlot-DQWFH5NC.js +52 -0
  291. package/dist/profileRadar-KAKRDC4R.js +261 -0
  292. package/dist/profileRadarFacility-FZP62VPV.js +261 -0
  293. package/dist/profileRadarFacility-FZP62VPV.js.map +7 -0
  294. package/dist/proteinView-LWVWJY54.js +444 -0
  295. package/dist/proteinView-LWVWJY54.js.map +7 -0
  296. package/dist/proteomeAbundance-DE4NVBCN.js +21 -0
  297. package/dist/proteomeAbundance-LTB3QR3G.js +63 -0
  298. package/dist/qualitative-YOFAROVR.js +41 -0
  299. package/dist/regression-PF6IAHJK.js +54 -0
  300. package/dist/regression.inputs-77IUYED3.js +46 -0
  301. package/dist/regression.inputs.term-WWCHU6KF.js +46 -0
  302. package/dist/regression.inputs.values.table-I6GM6MU7.js +43 -0
  303. package/dist/regression.integration.spec-DGEZUURU.js +782 -0
  304. package/dist/regression.integration.spec-DGEZUURU.js.map +7 -0
  305. package/dist/regression.results-6GXNKYUS.js +38 -0
  306. package/dist/regression.spec-MEFQNY34.js +706 -0
  307. package/dist/report-LG3UKZHL.js +220 -0
  308. package/dist/sampleScatter.spec-D3IK7MSA.js +200 -0
  309. package/dist/sampleView-XUI2J5EC.js +46 -0
  310. package/dist/samplelst-A7IHCBAX.js +109 -0
  311. package/dist/samplematrix-VGUU7Q75.js +2196 -0
  312. package/dist/sc-UVKVT2RY.js +84 -0
  313. package/dist/scatter-UILUYOGO.js +800 -0
  314. package/dist/scatter.integration.spec-VPNALPUG.js +1194 -0
  315. package/dist/scatter.integration.spec-VPNALPUG.js.map +7 -0
  316. package/dist/selectGenomeWithTklst-LWKIMZEJ.js +132 -0
  317. package/dist/singleCellCellType-TI52WQQ4.js +36 -0
  318. package/dist/singleCellCellType.unit.spec-R3BTRFRU.js +158 -0
  319. package/dist/singleCellCellType.unit.spec-R3BTRFRU.js.map +7 -0
  320. package/dist/singleCellGeneExpression-I5SAHMGI.js +36 -0
  321. package/dist/singleCellGeneExpression.unit.spec-2JTB5HLY.js +151 -0
  322. package/dist/singleCellGeneExpression.unit.spec-2JTB5HLY.js.map +7 -0
  323. package/dist/singleCellPlot-HRWCHYCI.js +51 -0
  324. package/dist/singlecell-BHPP7KCO.js +1570 -0
  325. package/dist/singlecell-PQNKBKR7.js +84 -0
  326. package/dist/snp-V4YGI7B3.js +36 -0
  327. package/dist/snp.unit.spec-JSUCMGNP.js +174 -0
  328. package/dist/snplocus-3YT5NNCH.js +206 -0
  329. package/dist/spliceevent.a53ss.diagram-QEQJ44YH.js +149 -0
  330. package/dist/spliceevent.exonskip.diagram-HMWVSOJG.js +275 -0
  331. package/dist/spliceevent.noeventdiagram-L5HUCT5A.js +458 -0
  332. package/dist/ssGSEA-Z3XRCBYW.js +36 -0
  333. package/dist/ssGSEA.unit.spec-EUCTV2XJ.js +86 -0
  334. package/dist/summarizeCnvGeneexp-O7O2CFW4.js +161 -0
  335. package/dist/summarizeCnvGeneexp-O7O2CFW4.js.map +7 -0
  336. package/dist/summarizeGeneexpSurvival-DDPH56EI.js +106 -0
  337. package/dist/summarizeGeneexpSurvival-DDPH56EI.js.map +7 -0
  338. package/dist/summarizeMutationCnv-6KJQUJWR.js +162 -0
  339. package/dist/summarizeMutationCnv-6KJQUJWR.js.map +7 -0
  340. package/dist/summarizeMutationDiagnosis-HFFYLQOF.js +38 -0
  341. package/dist/summarizeMutationSurvival-OBK6YILP.js +97 -0
  342. package/dist/summary-W55WWIU2.js +47 -0
  343. package/dist/summary.integration.spec-X2PNAUKW.js +412 -0
  344. package/dist/summaryInput-X547Q6C7.js +218 -0
  345. package/dist/sunburst-KWNGYBRI.js +282 -0
  346. package/dist/sunburst-KWNGYBRI.js.map +7 -0
  347. package/dist/survival-PAJZHZPD.js +56 -0
  348. package/dist/survival-TQPWMOD5.js +44 -0
  349. package/dist/survival.integration.spec-YMQASOMX.js +800 -0
  350. package/dist/survival.integration.spec-YMQASOMX.js.map +7 -0
  351. package/dist/svg2pdf.es.min-CYTPRWNB.js +3157 -0
  352. package/dist/svgraph-Y35C2M3D.js +1385 -0
  353. package/dist/svmr-WGCIR7PE.js +3840 -0
  354. package/dist/table-Q3B2YXEN.js +198 -0
  355. package/dist/termCollection-A6YTSM5I.js +177 -0
  356. package/dist/termCollection-NTFNVQ7D.js +36 -0
  357. package/dist/termCollection.unit.spec-BX54PHKT.js +206 -0
  358. package/dist/tk-OCBZ7YR6.js +44 -0
  359. package/dist/tp.ui-ZT47N2CO.js +1457 -0
  360. package/dist/tvs.dt-BFB253O3.js +37 -0
  361. package/dist/tvs.dtcnv.categorical-ARGAYIDO.js +38 -0
  362. package/dist/tvs.dtcnv.continuous-JCU23ERV.js +70 -0
  363. package/dist/tvs.dtfusion-FV64XLZI.js +38 -0
  364. package/dist/tvs.dtsnvindel-DMOXMEVL.js +38 -0
  365. package/dist/tvs.dtsv-53FSZEPV.js +38 -0
  366. package/dist/tvs.samplelst-MVPL6VXX.js +102 -0
  367. package/dist/tvs.termCollection-UGJXTHTG.js +151 -0
  368. package/dist/violin-ZLUDGSQG.js +44 -0
  369. package/dist/violin.integration.spec-KWOFOFLT.js +1423 -0
  370. package/dist/violin.integration.spec-KWOFOFLT.js.map +7 -0
  371. package/dist/violin.interactivity-ULDOCZWW.js +36 -0
  372. package/dist/violin.renderer-KJAXPMIK.js +38 -0
  373. package/dist/vocabulary-34YUQ4ZQ.js +39 -0
  374. package/package.json +3 -3
  375. package/dist/2dmaf-PFPBHIUI.js +0 -1371
  376. package/dist/AIProjectAdmin-H2GB5ZOX.js +0 -830
  377. package/dist/AIProjectAdmin-H2GB5ZOX.js.map +0 -7
  378. package/dist/AppHeader-FCWML6WH.js +0 -833
  379. package/dist/BoxPlot-QKXGF76K.js +0 -1295
  380. package/dist/BoxPlot-QKXGF76K.js.map +0 -7
  381. package/dist/CorrelationVolcano-ZJ7Q6JBC.js +0 -617
  382. package/dist/DifferentialAnalysis-PWCFCWFY.js +0 -238
  383. package/dist/Disco-IE5JKIF2.js +0 -3199
  384. package/dist/Disco-IE5JKIF2.js.map +0 -7
  385. package/dist/Disco.UI-SR7LSJE3.js +0 -242
  386. package/dist/DmrPlot-UDY7GOSY.js +0 -640
  387. package/dist/GB-GNTOP5C6.js +0 -1125
  388. package/dist/HicApp-FZTJL3OA.js +0 -2248
  389. package/dist/NumBinaryEditor-R5QVG3C4.js +0 -266
  390. package/dist/NumBinaryEditor-R5QVG3C4.js.map +0 -7
  391. package/dist/NumBinaryEditor.unit.spec-BMVRI24W.js +0 -284
  392. package/dist/NumContEditor-6JT5D6IW.js +0 -105
  393. package/dist/NumContEditor.unit.spec-XBQF2SW6.js +0 -167
  394. package/dist/NumCustomBinEditor-MEKEFOQI.js +0 -36
  395. package/dist/NumCustomBinEditor.unit.spec-LEMQJHDT.js +0 -282
  396. package/dist/NumDiscreteEditor-U3N37XRQ.js +0 -170
  397. package/dist/NumDiscreteEditor-U3N37XRQ.js.map +0 -7
  398. package/dist/NumDiscreteEditor.unit.spec-WQM4DLKO.js +0 -200
  399. package/dist/NumRegularBinEditor-HQR5Y6P7.js +0 -36
  400. package/dist/NumRegularBinEditor.unit.spec-FL4IFT7L.js +0 -225
  401. package/dist/NumSplineEditor-OESWMWP5.js +0 -188
  402. package/dist/NumSplineEditor-OESWMWP5.js.map +0 -7
  403. package/dist/NumSplineEditor.unit.spec-HYOXO45B.js +0 -197
  404. package/dist/NumericDensity-GJZ4BBJS.js +0 -36
  405. package/dist/NumericDensity.unit.spec-6LXWAXW7.js +0 -219
  406. package/dist/NumericHandler-LZIMPOHS.js +0 -37
  407. package/dist/NumericHandler.unit.spec-ZSU35AMD.js +0 -217
  408. package/dist/RunChart2-7XV6TIFO.js +0 -756
  409. package/dist/RunChart2-7XV6TIFO.js.map +0 -7
  410. package/dist/SC-E4EYAG26.js +0 -733
  411. package/dist/SC-E4EYAG26.js.map +0 -7
  412. package/dist/Volcano-Z7TJK6PW.js +0 -1187
  413. package/dist/Volcano-Z7TJK6PW.js.map +0 -7
  414. package/dist/WSIViewer-ZH2XABLC.js +0 -47933
  415. package/dist/WSIViewer-ZH2XABLC.js.map +0 -7
  416. package/dist/WsiSamplesPlot-BL47MDHQ.js +0 -163
  417. package/dist/adSandbox-V3NTKVBC.js +0 -36
  418. package/dist/alphaGenome-IQVFCSWQ.js +0 -173
  419. package/dist/app-GJLZ2G2U.js +0 -47
  420. package/dist/app-YSD2U64Q.js +0 -35
  421. package/dist/bam-TRIF3AIQ.js +0 -849
  422. package/dist/bam-TRIF3AIQ.js.map +0 -7
  423. package/dist/barchart-GLLUYTAJ.js +0 -45
  424. package/dist/barchart.data-FRYRGKH3.js +0 -22
  425. package/dist/barchart.events-WODVSHRN.js +0 -45
  426. package/dist/barchart.integration.spec-6POS3V3T.js +0 -1675
  427. package/dist/bars.renderer-T5R3UIBW.js +0 -12
  428. package/dist/block-2QM37YSE.js +0 -6300
  429. package/dist/block-2QM37YSE.js.map +0 -7
  430. package/dist/block.init-7HDLKQVX.js +0 -36
  431. package/dist/block.mds.expressionrank-UIB25S6E.js +0 -357
  432. package/dist/block.mds.geneboxplot-4PQYO3MR.js +0 -826
  433. package/dist/block.mds.junction-DWFYZEC2.js +0 -1543
  434. package/dist/block.mds.svcnv-N3KJJ4GQ.js +0 -6799
  435. package/dist/block.svg-2HBDI7BT.js +0 -162
  436. package/dist/block.tk.aicheck-2M4522IQ.js +0 -281
  437. package/dist/block.tk.ase-URIKF6JD.js +0 -363
  438. package/dist/block.tk.bam-HTDMASHX.js +0 -1904
  439. package/dist/block.tk.bedgraphdot-RVKMSFCQ.js +0 -382
  440. package/dist/block.tk.bigwig.ui-7JPEOIKM.js +0 -209
  441. package/dist/block.tk.hicstraw-72J7UJ2J.js +0 -821
  442. package/dist/block.tk.junction-GGFMBCV5.js +0 -2362
  443. package/dist/block.tk.junction.textmatrixui-44SAYYWE.js +0 -197
  444. package/dist/block.tk.ld-XDKJFEOL.js +0 -97
  445. package/dist/block.tk.menu-46FOTM7H.js +0 -1027
  446. package/dist/block.tk.pgv-ZVONRT4B.js +0 -942
  447. package/dist/brainImaging-CSLO7ODJ.js +0 -421
  448. package/dist/chat-GMD22F3K.js +0 -148
  449. package/dist/chunk-22KWZOCN.js +0 -153
  450. package/dist/chunk-22KWZOCN.js.map +0 -7
  451. package/dist/chunk-2NQ4TM74.js +0 -48
  452. package/dist/chunk-2NQ4TM74.js.map +0 -7
  453. package/dist/chunk-2SRMRC6L.js +0 -421
  454. package/dist/chunk-2SRMRC6L.js.map +0 -7
  455. package/dist/chunk-2TIYJ3PH.js +0 -815
  456. package/dist/chunk-2UWHV2SB.js +0 -261
  457. package/dist/chunk-2UWHV2SB.js.map +0 -7
  458. package/dist/chunk-3656ZY4T.js +0 -237
  459. package/dist/chunk-3656ZY4T.js.map +0 -7
  460. package/dist/chunk-3TU6TRLQ.js +0 -98
  461. package/dist/chunk-3TU6TRLQ.js.map +0 -7
  462. package/dist/chunk-4FJ5GS6P.js +0 -4202
  463. package/dist/chunk-4FJ5GS6P.js.map +0 -7
  464. package/dist/chunk-4FO7KZY2.js +0 -534
  465. package/dist/chunk-4OEOQX4L.js +0 -334
  466. package/dist/chunk-4OEOQX4L.js.map +0 -7
  467. package/dist/chunk-5ZICCKEH.js +0 -4952
  468. package/dist/chunk-6UU7VPDO.js +0 -272
  469. package/dist/chunk-6YLQN7FF.js +0 -441
  470. package/dist/chunk-74QJDBIP.js +0 -480
  471. package/dist/chunk-75EBDB7G.js +0 -21
  472. package/dist/chunk-75EBDB7G.js.map +0 -7
  473. package/dist/chunk-7FXPMQRW.js +0 -34
  474. package/dist/chunk-A2Y3GEUH.js +0 -228
  475. package/dist/chunk-AAEXTQT3.js +0 -330
  476. package/dist/chunk-AG6HVFQY.js +0 -504
  477. package/dist/chunk-AG6HVFQY.js.map +0 -7
  478. package/dist/chunk-AHLUW2BN.js +0 -129
  479. package/dist/chunk-AYDXOUFX.js +0 -1275
  480. package/dist/chunk-AYDXOUFX.js.map +0 -7
  481. package/dist/chunk-BBIPZ2UF.js +0 -52
  482. package/dist/chunk-BBVOZ5BY.js +0 -230
  483. package/dist/chunk-BBVOZ5BY.js.map +0 -7
  484. package/dist/chunk-BHVDOW3W.js +0 -470
  485. package/dist/chunk-BNN32RI2.js +0 -36
  486. package/dist/chunk-BNN32RI2.js.map +0 -7
  487. package/dist/chunk-BQLC6QOH.js +0 -368
  488. package/dist/chunk-BQLC6QOH.js.map +0 -7
  489. package/dist/chunk-C5QOWZK6.js +0 -629
  490. package/dist/chunk-CJJ6LDZM.js +0 -170
  491. package/dist/chunk-CJJ6LDZM.js.map +0 -7
  492. package/dist/chunk-D4U5X2QQ.js +0 -261
  493. package/dist/chunk-D4U5X2QQ.js.map +0 -7
  494. package/dist/chunk-DV444SFD.js +0 -26
  495. package/dist/chunk-DWWAB4YQ.js +0 -102
  496. package/dist/chunk-FP5VKE3Z.js +0 -170
  497. package/dist/chunk-G2MAZI6I.js +0 -205
  498. package/dist/chunk-HLRNIO5K.js +0 -158
  499. package/dist/chunk-HTHH2B6D.js +0 -46
  500. package/dist/chunk-HTHH2B6D.js.map +0 -7
  501. package/dist/chunk-I7X6K4OL.js +0 -217
  502. package/dist/chunk-IC7SUXJD.js +0 -82
  503. package/dist/chunk-IC7SUXJD.js.map +0 -7
  504. package/dist/chunk-ITYEOGLB.js +0 -302
  505. package/dist/chunk-J6XKDYNZ.js +0 -276
  506. package/dist/chunk-JDX4E7ZO.js +0 -381
  507. package/dist/chunk-JWX7GYHP.js +0 -95
  508. package/dist/chunk-KISFQDQE.js +0 -258
  509. package/dist/chunk-KISFQDQE.js.map +0 -7
  510. package/dist/chunk-KLFROH3F.js +0 -203
  511. package/dist/chunk-KQSN7PUK.js +0 -215
  512. package/dist/chunk-KQSN7PUK.js.map +0 -7
  513. package/dist/chunk-L2ED35QZ.js +0 -2815
  514. package/dist/chunk-LLPFFNLV.js +0 -526
  515. package/dist/chunk-LLPFFNLV.js.map +0 -7
  516. package/dist/chunk-LRV4VWRF.js +0 -94
  517. package/dist/chunk-LRV4VWRF.js.map +0 -7
  518. package/dist/chunk-M464GTNI.js +0 -615
  519. package/dist/chunk-MDN3K2BG.js +0 -229
  520. package/dist/chunk-MDN3K2BG.js.map +0 -7
  521. package/dist/chunk-N46WTUX7.js +0 -286
  522. package/dist/chunk-N46WTUX7.js.map +0 -7
  523. package/dist/chunk-NBMJ2UMA.js +0 -194
  524. package/dist/chunk-NI7VSKJI.js +0 -293
  525. package/dist/chunk-NTVM4ZPG.js +0 -2784
  526. package/dist/chunk-O64UTRAC.js +0 -252
  527. package/dist/chunk-OM326NV3.js +0 -100
  528. package/dist/chunk-P4ENJUBN.js +0 -386
  529. package/dist/chunk-PEKVBCIH.js +0 -824
  530. package/dist/chunk-PF6MKI4X.js +0 -92
  531. package/dist/chunk-PJTQP6RL.js +0 -54
  532. package/dist/chunk-PVSRVJBE.js +0 -1201
  533. package/dist/chunk-PVSRVJBE.js.map +0 -7
  534. package/dist/chunk-PZ3L3KM6.js +0 -55
  535. package/dist/chunk-QEHUEG4X.js +0 -1788
  536. package/dist/chunk-QEHUEG4X.js.map +0 -7
  537. package/dist/chunk-QXCVG66S.js +0 -2672
  538. package/dist/chunk-RIGZHHCP.js +0 -119
  539. package/dist/chunk-SEIANPCX.js +0 -142
  540. package/dist/chunk-SK7YVOQN.js +0 -148
  541. package/dist/chunk-SPPZB5ZQ.js +0 -158
  542. package/dist/chunk-SPPZB5ZQ.js.map +0 -7
  543. package/dist/chunk-T5KFRIP4.js +0 -1087
  544. package/dist/chunk-TTSNECVD.js +0 -1413
  545. package/dist/chunk-TTSNECVD.js.map +0 -7
  546. package/dist/chunk-TVXESYIR.js +0 -439
  547. package/dist/chunk-TVXESYIR.js.map +0 -7
  548. package/dist/chunk-U3UR3U3F.js +0 -446
  549. package/dist/chunk-UBS5UVIY.js +0 -13624
  550. package/dist/chunk-UFYU7AKL.js +0 -107
  551. package/dist/chunk-VIYGTRUZ.js +0 -6364
  552. package/dist/chunk-WCTH7CB3.js +0 -31
  553. package/dist/chunk-WGSWVYHY.js +0 -1155
  554. package/dist/chunk-WGSWVYHY.js.map +0 -7
  555. package/dist/chunk-WYZ4COTF.js +0 -226
  556. package/dist/chunk-WZRXJ5LL.js +0 -2370
  557. package/dist/chunk-XDI4UFCZ.js +0 -467
  558. package/dist/chunk-XDI4UFCZ.js.map +0 -7
  559. package/dist/chunk-XZZLEHWC.js +0 -20328
  560. package/dist/chunk-XZZLEHWC.js.map +0 -7
  561. package/dist/chunk-Y7JAPSMG.js +0 -406
  562. package/dist/chunk-Y7JAPSMG.js.map +0 -7
  563. package/dist/chunk-YJ2HC4CP.js +0 -1150
  564. package/dist/chunk-ZLH4PJKX.js +0 -1658
  565. package/dist/chunk-ZLH4PJKX.js.map +0 -7
  566. package/dist/chunk-ZZSDYKD5.js +0 -14
  567. package/dist/condition-S52W57ZO.js +0 -330
  568. package/dist/controls-B4MTTPWO.js +0 -39
  569. package/dist/controls.config-6KBCTIPN.js +0 -37
  570. package/dist/correlation-VSBCBFFP.js +0 -96
  571. package/dist/cuminc-T5ZPAGVB.js +0 -1147
  572. package/dist/cuminc.integration.spec-2QT3IPHU.js +0 -676
  573. package/dist/customdata.inputui-5MHQQHJL.js +0 -285
  574. package/dist/dataDownload-S4EBNHMW.js +0 -328
  575. package/dist/dataDownload.integration.spec-OVSIWI34.js +0 -191
  576. package/dist/databrowser.ui-EAJS3NXV.js +0 -419
  577. package/dist/dictionary-CQHSMVYF.js +0 -98
  578. package/dist/dictionary-CQHSMVYF.js.map +0 -7
  579. package/dist/dnaMethylation-G3F2INDH.js +0 -36
  580. package/dist/dnaMethylation.integration.spec-FWF4353K.js +0 -179
  581. package/dist/dnaMethylation.integration.spec-FWF4353K.js.map +0 -7
  582. package/dist/e2pca-SLXGPVHP.js +0 -348
  583. package/dist/ep-4HGUSDGJ.js +0 -1254
  584. package/dist/expclust.gdc.spec-JJ42ESKE.js +0 -305
  585. package/dist/facet-6WVTVKDV.js +0 -519
  586. package/dist/geneExpClustering-5LOZPD5X.js +0 -246
  587. package/dist/geneExpression-BJ46UGXW.js +0 -312
  588. package/dist/geneExpression-PTSZWKCM.js +0 -36
  589. package/dist/geneExpression.unit.spec-NW5HTO7F.js +0 -100
  590. package/dist/geneORA-H65EZ7QO.js +0 -276
  591. package/dist/geneVariant-T6GWOVZD.js +0 -39
  592. package/dist/geneVariant-WTDFZTXG.js +0 -37
  593. package/dist/geneVariant.integration.spec-OPSBRUM3.js +0 -196
  594. package/dist/genefusion.ui-RSBCC37C.js +0 -249
  595. package/dist/geneset-B67PAZVL.js +0 -194
  596. package/dist/genomeBrowser.spec-AUTULF4C.js +0 -279
  597. package/dist/grin2-CMBP7XVH.js +0 -1031
  598. package/dist/grin2-JVCNH3KW.js +0 -1554
  599. package/dist/gsea-H774WVPQ.js +0 -45
  600. package/dist/hierCluster-IQTXQUMI.js +0 -58
  601. package/dist/hierCluster-ZQJDXYBD.js +0 -62
  602. package/dist/hierCluster.config-ZHJTZK5L.js +0 -38
  603. package/dist/hierCluster.integration.spec-MSJ5GHHK.js +0 -374
  604. package/dist/hierCluster.interactivity-H2GNO6AA.js +0 -52
  605. package/dist/hierCluster.renderers-2TE6HMK2.js +0 -21
  606. package/dist/imagePlot-FMNMB7JZ.js +0 -139
  607. package/dist/importPlot-N66G43XX.js +0 -8
  608. package/dist/isoformExpression-B64WLO3H.js +0 -38
  609. package/dist/isoformExpression.unit.spec-D2R6CRKO.js +0 -126
  610. package/dist/isoformExpression.unit.spec-D2R6CRKO.js.map +0 -7
  611. package/dist/jspdf.es.min-DO4YWL2R.js +0 -40
  612. package/dist/launch.adhoc-MPRAJ3GN.js +0 -40
  613. package/dist/leftlabel.sample-4JCKYXED.js +0 -257
  614. package/dist/lollipop-25ADHT7O.js +0 -166
  615. package/dist/maf-POYTGXT4.js +0 -442
  616. package/dist/maf-POYTGXT4.js.map +0 -7
  617. package/dist/maftimeline-FOQF6O3X.js +0 -591
  618. package/dist/matrix-LHLAYDTQ.js +0 -57
  619. package/dist/matrix-ZKF7NRAD.js +0 -62
  620. package/dist/matrix.cells-H4TS74FJ.js +0 -28
  621. package/dist/matrix.config-HE7QUDER.js +0 -39
  622. package/dist/matrix.controls-VILCLNSC.js +0 -37
  623. package/dist/matrix.data-2OUWYD35.js +0 -25
  624. package/dist/matrix.dom-IZFFS4RQ.js +0 -11
  625. package/dist/matrix.groups-5BGJIOOJ.js +0 -26
  626. package/dist/matrix.integration.spec-DSXZHAEY.js +0 -3070
  627. package/dist/matrix.interactivity-VK3NWX5M.js +0 -40
  628. package/dist/matrix.layout-PUNMMNCC.js +0 -42
  629. package/dist/matrix.legend-QMERGVYU.js +0 -22
  630. package/dist/matrix.renderers-2KQ2NXSQ.js +0 -36
  631. package/dist/matrix.serieses-24G3XPJD.js +0 -21
  632. package/dist/matrix.sort-HTVT4K7C.js +0 -27
  633. package/dist/matrix.sort.unit.spec-EUVL76NB.js +0 -470
  634. package/dist/matrix.sorterUi-PJPFXWOJ.js +0 -18
  635. package/dist/matrix.sorterUi.unit.spec-QWL5Y4DQ.js +0 -340
  636. package/dist/mavb-UGM5SHEF.js +0 -730
  637. package/dist/mds.fimo-64US7RTE.js +0 -516
  638. package/dist/mds.samplescatterplot-JMXLXVIE.js +0 -1548
  639. package/dist/mds.survivalplot-RJ5UD3IU.js +0 -481
  640. package/dist/oncomatrix-ZFT3DRAP.js +0 -293
  641. package/dist/oncomatrix-ZFT3DRAP.js.map +0 -7
  642. package/dist/oncomatrix.spec-4YLKDGFE.js +0 -446
  643. package/dist/plot.2dvaf-DYSU6BBN.js +0 -375
  644. package/dist/plot.app-NFBVLAXZ.js +0 -39
  645. package/dist/plot.barplot-DBGTDK7J.js +0 -100
  646. package/dist/plot.boxplot-MCKZUROP.js +0 -150
  647. package/dist/plot.brainImaging-BBAVUEB4.js +0 -51
  648. package/dist/plot.disco-VGOEQYRL.js +0 -101
  649. package/dist/plot.disco-VGOEQYRL.js.map +0 -7
  650. package/dist/plot.dzi-YQIFOTZQ.js +0 -33
  651. package/dist/plot.ssgq-MU3BRTMC.js +0 -137
  652. package/dist/plot.vaf2cov-KDHZ7JXJ.js +0 -257
  653. package/dist/plot.wsi-G2TUGQF7.js +0 -36
  654. package/dist/polar-RCCZXZIU.js +0 -184
  655. package/dist/polar2-COQ3WIGW.js +0 -226
  656. package/dist/profile.spec-A4ZASR2T.js +0 -78
  657. package/dist/profileBarchart-GB4RK5DF.js +0 -265
  658. package/dist/profileForms-O5KBHRF6.js +0 -438
  659. package/dist/profilePlot-COCLCP5B.js +0 -52
  660. package/dist/profileRadar-4EE3YDOH.js +0 -261
  661. package/dist/profileRadarFacility-JYTSGA5H.js +0 -261
  662. package/dist/profileRadarFacility-JYTSGA5H.js.map +0 -7
  663. package/dist/proteomeAbundance-JBVXUSD6.js +0 -19
  664. package/dist/proteomeAbundance-NQVU4DOW.js +0 -63
  665. package/dist/qualitative-QROOPDSI.js +0 -41
  666. package/dist/regression-7FQZ22OO.js +0 -54
  667. package/dist/regression.inputs-F62CES3A.js +0 -46
  668. package/dist/regression.inputs.term-BCGP7PX4.js +0 -46
  669. package/dist/regression.inputs.values.table-D3ZXZSH7.js +0 -43
  670. package/dist/regression.integration.spec-P2BBTT2O.js +0 -784
  671. package/dist/regression.integration.spec-P2BBTT2O.js.map +0 -7
  672. package/dist/regression.results-JX6RJQQP.js +0 -38
  673. package/dist/regression.spec-ROME7T33.js +0 -706
  674. package/dist/report-B6MM4T6B.js +0 -220
  675. package/dist/sampleScatter.spec-EPCMC3SR.js +0 -200
  676. package/dist/sampleView-77EAJ75T.js +0 -46
  677. package/dist/samplelst-CX4NQWA7.js +0 -109
  678. package/dist/samplematrix-PYQFAH64.js +0 -2196
  679. package/dist/sc-X6SI5VVI.js +0 -84
  680. package/dist/scatter-ZFFHAI4F.js +0 -800
  681. package/dist/scatter.integration.spec-NN43OXRN.js +0 -1194
  682. package/dist/scatter.integration.spec-NN43OXRN.js.map +0 -7
  683. package/dist/selectGenomeWithTklst-CZMVTBMD.js +0 -132
  684. package/dist/singleCellCellType-GOBX7JKV.js +0 -36
  685. package/dist/singleCellCellType.unit.spec-F344QMTQ.js +0 -177
  686. package/dist/singleCellCellType.unit.spec-F344QMTQ.js.map +0 -7
  687. package/dist/singleCellGeneExpression-BLMNMEAI.js +0 -36
  688. package/dist/singleCellGeneExpression.unit.spec-6ZEPUFWC.js +0 -163
  689. package/dist/singleCellGeneExpression.unit.spec-6ZEPUFWC.js.map +0 -7
  690. package/dist/singleCellPlot-HLD7PLQH.js +0 -51
  691. package/dist/singlecell-HL4GLGIA.js +0 -1570
  692. package/dist/singlecell-JQFPINRS.js +0 -84
  693. package/dist/snp-EAUNFDAV.js +0 -36
  694. package/dist/snp.unit.spec-AVLPMAWI.js +0 -174
  695. package/dist/snplocus-2J7OA6OL.js +0 -206
  696. package/dist/spliceevent.a53ss.diagram-4DU2U7NW.js +0 -149
  697. package/dist/spliceevent.exonskip.diagram-GG5FGXOK.js +0 -275
  698. package/dist/spliceevent.noeventdiagram-T6RNIMCM.js +0 -458
  699. package/dist/ssGSEA-XJWLRVFQ.js +0 -36
  700. package/dist/ssGSEA.unit.spec-MQ23ODYO.js +0 -86
  701. package/dist/summarizeCnvGeneexp-CJPC76RM.js +0 -158
  702. package/dist/summarizeCnvGeneexp-CJPC76RM.js.map +0 -7
  703. package/dist/summarizeGeneexpSurvival-FGCFZTVG.js +0 -105
  704. package/dist/summarizeGeneexpSurvival-FGCFZTVG.js.map +0 -7
  705. package/dist/summarizeMutationCnv-4E7R2NHQ.js +0 -159
  706. package/dist/summarizeMutationCnv-4E7R2NHQ.js.map +0 -7
  707. package/dist/summarizeMutationDiagnosis-ZVX7AZK7.js +0 -38
  708. package/dist/summarizeMutationSurvival-EWXD7TCT.js +0 -97
  709. package/dist/summary-VUYBKQOC.js +0 -47
  710. package/dist/summary.integration.spec-EPBV5XCT.js +0 -412
  711. package/dist/summaryInput-YX5IRGWM.js +0 -218
  712. package/dist/sunburst-HPDML45I.js +0 -282
  713. package/dist/sunburst-HPDML45I.js.map +0 -7
  714. package/dist/survival-E6SRRXBB.js +0 -44
  715. package/dist/survival-XOXDPXZR.js +0 -56
  716. package/dist/survival.integration.spec-SJBPJZGJ.js +0 -787
  717. package/dist/survival.integration.spec-SJBPJZGJ.js.map +0 -7
  718. package/dist/svg2pdf.es.min-EZ4UYRSH.js +0 -3157
  719. package/dist/svgraph-D23WG3UE.js +0 -1385
  720. package/dist/svmr-UFC4TKWV.js +0 -3840
  721. package/dist/table-US2K6IYZ.js +0 -198
  722. package/dist/termCollection-E7S57CIN.js +0 -177
  723. package/dist/termCollection-ZMP3VE2G.js +0 -36
  724. package/dist/termCollection.unit.spec-MDWK6XH3.js +0 -206
  725. package/dist/tk-TLQJK6R4.js +0 -44
  726. package/dist/tp.ui-NQEAKWUH.js +0 -1457
  727. package/dist/tvs.dt-U2MINIBH.js +0 -37
  728. package/dist/tvs.dtcnv.categorical-2OOAZJKC.js +0 -38
  729. package/dist/tvs.dtcnv.continuous-5ETKBJ52.js +0 -70
  730. package/dist/tvs.dtfusion-EB4PPR3Y.js +0 -38
  731. package/dist/tvs.dtsnvindel-IRQPTKQF.js +0 -38
  732. package/dist/tvs.dtsv-TOVXZJCR.js +0 -38
  733. package/dist/tvs.samplelst-4SCH543Y.js +0 -102
  734. package/dist/tvs.termCollection-GGN5F6HC.js +0 -151
  735. package/dist/violin-7D7DN74I.js +0 -44
  736. package/dist/violin.integration.spec-KE76AL54.js +0 -1417
  737. package/dist/violin.integration.spec-KE76AL54.js.map +0 -7
  738. package/dist/violin.interactivity-YPJ2H6SQ.js +0 -36
  739. package/dist/violin.renderer-UK7WSA2Z.js +0 -38
  740. package/dist/vocabulary-KLWZ6LRP.js +0 -39
  741. /package/dist/{2dmaf-PFPBHIUI.js.map → 2dmaf-YHYYSSKR.js.map} +0 -0
  742. /package/dist/{AppHeader-FCWML6WH.js.map → AppHeader-T4ZLY3VG.js.map} +0 -0
  743. /package/dist/{CorrelationVolcano-ZJ7Q6JBC.js.map → CorrelationVolcano-EXH4P56S.js.map} +0 -0
  744. /package/dist/{DifferentialAnalysis-PWCFCWFY.js.map → DifferentialAnalysis-P6GKHAS5.js.map} +0 -0
  745. /package/dist/{Disco.UI-SR7LSJE3.js.map → Disco.UI-4A2P5Q55.js.map} +0 -0
  746. /package/dist/{DmrPlot-UDY7GOSY.js.map → DmrPlot-6EEEGD32.js.map} +0 -0
  747. /package/dist/{GB-GNTOP5C6.js.map → GB-XFO5I6ND.js.map} +0 -0
  748. /package/dist/{HicApp-FZTJL3OA.js.map → HicApp-3LFHOOAR.js.map} +0 -0
  749. /package/dist/{NumBinaryEditor.unit.spec-BMVRI24W.js.map → NumBinaryEditor.unit.spec-2PYZ7P2R.js.map} +0 -0
  750. /package/dist/{NumContEditor-6JT5D6IW.js.map → NumContEditor-BMWALLQM.js.map} +0 -0
  751. /package/dist/{NumContEditor.unit.spec-XBQF2SW6.js.map → NumContEditor.unit.spec-ETVLVX6A.js.map} +0 -0
  752. /package/dist/{NumCustomBinEditor-MEKEFOQI.js.map → NumCustomBinEditor-2XJ6GUWY.js.map} +0 -0
  753. /package/dist/{NumCustomBinEditor.unit.spec-LEMQJHDT.js.map → NumCustomBinEditor.unit.spec-TZVL553E.js.map} +0 -0
  754. /package/dist/{NumDiscreteEditor.unit.spec-WQM4DLKO.js.map → NumDiscreteEditor.unit.spec-KQND2XAE.js.map} +0 -0
  755. /package/dist/{NumRegularBinEditor-HQR5Y6P7.js.map → NumRegularBinEditor-OYELFDIB.js.map} +0 -0
  756. /package/dist/{NumRegularBinEditor.unit.spec-FL4IFT7L.js.map → NumRegularBinEditor.unit.spec-44SALKLH.js.map} +0 -0
  757. /package/dist/{NumSplineEditor.unit.spec-HYOXO45B.js.map → NumSplineEditor.unit.spec-XKB4XXU4.js.map} +0 -0
  758. /package/dist/{NumericDensity-GJZ4BBJS.js.map → NumericDensity-GCNWO7YS.js.map} +0 -0
  759. /package/dist/{NumericDensity.unit.spec-6LXWAXW7.js.map → NumericDensity.unit.spec-7LWNOUYK.js.map} +0 -0
  760. /package/dist/{NumericHandler-LZIMPOHS.js.map → NumericHandler-EMQBI5UI.js.map} +0 -0
  761. /package/dist/{NumericHandler.unit.spec-ZSU35AMD.js.map → NumericHandler.unit.spec-TEELPRIM.js.map} +0 -0
  762. /package/dist/{WsiSamplesPlot-BL47MDHQ.js.map → WsiSamplesPlot-B2DM7Z3Q.js.map} +0 -0
  763. /package/dist/{adSandbox-V3NTKVBC.js.map → adSandbox-INF3NNEV.js.map} +0 -0
  764. /package/dist/{alphaGenome-IQVFCSWQ.js.map → alphaGenome-CO4TQHXN.js.map} +0 -0
  765. /package/dist/{app-GJLZ2G2U.js.map → app-63JU2YIT.js.map} +0 -0
  766. /package/dist/{app-YSD2U64Q.js.map → app-BL3POUOO.js.map} +0 -0
  767. /package/dist/{barchart-GLLUYTAJ.js.map → barchart-PDUXZAIH.js.map} +0 -0
  768. /package/dist/{barchart.data-FRYRGKH3.js.map → barchart.data-EXENRVMU.js.map} +0 -0
  769. /package/dist/{barchart.events-WODVSHRN.js.map → barchart.events-MQNQTSWI.js.map} +0 -0
  770. /package/dist/{barchart.integration.spec-6POS3V3T.js.map → barchart.integration.spec-DSO2377T.js.map} +0 -0
  771. /package/dist/{bars.renderer-T5R3UIBW.js.map → bars.renderer-S7A7I6BQ.js.map} +0 -0
  772. /package/dist/{block.init-7HDLKQVX.js.map → block.init-7J5OHYKA.js.map} +0 -0
  773. /package/dist/{block.mds.expressionrank-UIB25S6E.js.map → block.mds.expressionrank-643H7PN7.js.map} +0 -0
  774. /package/dist/{block.mds.geneboxplot-4PQYO3MR.js.map → block.mds.geneboxplot-C222ODSL.js.map} +0 -0
  775. /package/dist/{block.mds.junction-DWFYZEC2.js.map → block.mds.junction-C5DJRUOK.js.map} +0 -0
  776. /package/dist/{block.mds.svcnv-N3KJJ4GQ.js.map → block.mds.svcnv-4G74JQ7Y.js.map} +0 -0
  777. /package/dist/{block.svg-2HBDI7BT.js.map → block.svg-35KUC5R7.js.map} +0 -0
  778. /package/dist/{block.tk.aicheck-2M4522IQ.js.map → block.tk.aicheck-LLWT6K6H.js.map} +0 -0
  779. /package/dist/{block.tk.ase-URIKF6JD.js.map → block.tk.ase-PQUKY65E.js.map} +0 -0
  780. /package/dist/{block.tk.bam-HTDMASHX.js.map → block.tk.bam-EUEOB7BR.js.map} +0 -0
  781. /package/dist/{block.tk.bedgraphdot-RVKMSFCQ.js.map → block.tk.bedgraphdot-XAHUY545.js.map} +0 -0
  782. /package/dist/{block.tk.bigwig.ui-7JPEOIKM.js.map → block.tk.bigwig.ui-HEOPNL3T.js.map} +0 -0
  783. /package/dist/{block.tk.hicstraw-72J7UJ2J.js.map → block.tk.hicstraw-EPH3LEX2.js.map} +0 -0
  784. /package/dist/{block.tk.junction-GGFMBCV5.js.map → block.tk.junction-MIUDAIAR.js.map} +0 -0
  785. /package/dist/{block.tk.junction.textmatrixui-44SAYYWE.js.map → block.tk.junction.textmatrixui-AVFUQBDS.js.map} +0 -0
  786. /package/dist/{block.tk.ld-XDKJFEOL.js.map → block.tk.ld-ED7YMBQ4.js.map} +0 -0
  787. /package/dist/{block.tk.menu-46FOTM7H.js.map → block.tk.menu-3CVIECWQ.js.map} +0 -0
  788. /package/dist/{block.tk.pgv-ZVONRT4B.js.map → block.tk.pgv-HETJVWXH.js.map} +0 -0
  789. /package/dist/{brainImaging-CSLO7ODJ.js.map → brainImaging-K3LHK3DD.js.map} +0 -0
  790. /package/dist/{chat-GMD22F3K.js.map → chat-BYX5ARUK.js.map} +0 -0
  791. /package/dist/{chunk-WCTH7CB3.js.map → chunk-2LULD7RN.js.map} +0 -0
  792. /package/dist/{chunk-DWWAB4YQ.js.map → chunk-2VFYZ3EY.js.map} +0 -0
  793. /package/dist/{chunk-5ZICCKEH.js.map → chunk-3CD5ZROA.js.map} +0 -0
  794. /package/dist/{chunk-JDX4E7ZO.js.map → chunk-3DCABJHB.js.map} +0 -0
  795. /package/dist/{chunk-JWX7GYHP.js.map → chunk-3MMKHYUM.js.map} +0 -0
  796. /package/dist/{chunk-PZ3L3KM6.js.map → chunk-3PRPMJTG.js.map} +0 -0
  797. /package/dist/{chunk-4FO7KZY2.js.map → chunk-5UMPBVA6.js.map} +0 -0
  798. /package/dist/{chunk-UBS5UVIY.js.map → chunk-6LAE5AVA.js.map} +0 -0
  799. /package/dist/{chunk-PEKVBCIH.js.map → chunk-7FTDQDVF.js.map} +0 -0
  800. /package/dist/{chunk-SEIANPCX.js.map → chunk-7IEZ2KMW.js.map} +0 -0
  801. /package/dist/{chunk-ZZSDYKD5.js.map → chunk-A5AFIW2T.js.map} +0 -0
  802. /package/dist/{chunk-NTVM4ZPG.js.map → chunk-AIBODF32.js.map} +0 -0
  803. /package/dist/{chunk-WYZ4COTF.js.map → chunk-BAY47D5E.js.map} +0 -0
  804. /package/dist/{chunk-DV444SFD.js.map → chunk-CFHKYLDY.js.map} +0 -0
  805. /package/dist/{chunk-NI7VSKJI.js.map → chunk-CJZN7HFL.js.map} +0 -0
  806. /package/dist/{chunk-FP5VKE3Z.js.map → chunk-D4QFQQWJ.js.map} +0 -0
  807. /package/dist/{chunk-U3UR3U3F.js.map → chunk-DNCSPTOQ.js.map} +0 -0
  808. /package/dist/{chunk-OM326NV3.js.map → chunk-DQGSCCI3.js.map} +0 -0
  809. /package/dist/{chunk-7FXPMQRW.js.map → chunk-EWGMLVC7.js.map} +0 -0
  810. /package/dist/{chunk-SK7YVOQN.js.map → chunk-F7PB5HGT.js.map} +0 -0
  811. /package/dist/{chunk-PF6MKI4X.js.map → chunk-G7QKLA54.js.map} +0 -0
  812. /package/dist/{chunk-74QJDBIP.js.map → chunk-J5RINDKS.js.map} +0 -0
  813. /package/dist/{chunk-BBIPZ2UF.js.map → chunk-JMPSZMDD.js.map} +0 -0
  814. /package/dist/{chunk-2TIYJ3PH.js.map → chunk-KQMEJUWI.js.map} +0 -0
  815. /package/dist/{chunk-6YLQN7FF.js.map → chunk-LRMV5DNW.js.map} +0 -0
  816. /package/dist/{chunk-PJTQP6RL.js.map → chunk-LWNOC7AJ.js.map} +0 -0
  817. /package/dist/{chunk-AHLUW2BN.js.map → chunk-MICNOSX7.js.map} +0 -0
  818. /package/dist/{chunk-6UU7VPDO.js.map → chunk-MLWNMXAV.js.map} +0 -0
  819. /package/dist/{chunk-HLRNIO5K.js.map → chunk-MMBLSLQR.js.map} +0 -0
  820. /package/dist/{chunk-YJ2HC4CP.js.map → chunk-NV5XWADG.js.map} +0 -0
  821. /package/dist/{chunk-T5KFRIP4.js.map → chunk-O3255WPP.js.map} +0 -0
  822. /package/dist/{chunk-J6XKDYNZ.js.map → chunk-OSM7YS23.js.map} +0 -0
  823. /package/dist/{chunk-UFYU7AKL.js.map → chunk-Q7PYFSNU.js.map} +0 -0
  824. /package/dist/{chunk-P4ENJUBN.js.map → chunk-QMI222IJ.js.map} +0 -0
  825. /package/dist/{chunk-O64UTRAC.js.map → chunk-QRIRWDIW.js.map} +0 -0
  826. /package/dist/{chunk-C5QOWZK6.js.map → chunk-SJTOSA7E.js.map} +0 -0
  827. /package/dist/{chunk-M464GTNI.js.map → chunk-SRYFYAXK.js.map} +0 -0
  828. /package/dist/{chunk-A2Y3GEUH.js.map → chunk-TITA4HJA.js.map} +0 -0
  829. /package/dist/{chunk-L2ED35QZ.js.map → chunk-U7ZMIMI5.js.map} +0 -0
  830. /package/dist/{chunk-RIGZHHCP.js.map → chunk-UJU3Q7QJ.js.map} +0 -0
  831. /package/dist/{chunk-QXCVG66S.js.map → chunk-UL2ISTHR.js.map} +0 -0
  832. /package/dist/{chunk-I7X6K4OL.js.map → chunk-VIPMLSZP.js.map} +0 -0
  833. /package/dist/{chunk-AAEXTQT3.js.map → chunk-WGL6FIUE.js.map} +0 -0
  834. /package/dist/{chunk-ITYEOGLB.js.map → chunk-WIYKAKWE.js.map} +0 -0
  835. /package/dist/{chunk-NBMJ2UMA.js.map → chunk-WPHOEG56.js.map} +0 -0
  836. /package/dist/{chunk-G2MAZI6I.js.map → chunk-XS4QWRS3.js.map} +0 -0
  837. /package/dist/{chunk-VIYGTRUZ.js.map → chunk-YSW57QDM.js.map} +0 -0
  838. /package/dist/{chunk-KLFROH3F.js.map → chunk-YXQNZPCO.js.map} +0 -0
  839. /package/dist/{chunk-WZRXJ5LL.js.map → chunk-YYYJB53A.js.map} +0 -0
  840. /package/dist/{chunk-BHVDOW3W.js.map → chunk-ZTKQLABY.js.map} +0 -0
  841. /package/dist/{condition-S52W57ZO.js.map → condition-AM523RDR.js.map} +0 -0
  842. /package/dist/{controls-B4MTTPWO.js.map → controls-HTMH5QBP.js.map} +0 -0
  843. /package/dist/{controls.config-6KBCTIPN.js.map → controls.config-EEK2RBPI.js.map} +0 -0
  844. /package/dist/{correlation-VSBCBFFP.js.map → correlation-HKD67SPS.js.map} +0 -0
  845. /package/dist/{cuminc-T5ZPAGVB.js.map → cuminc-66V55MMN.js.map} +0 -0
  846. /package/dist/{cuminc.integration.spec-2QT3IPHU.js.map → cuminc.integration.spec-PNTOPB2L.js.map} +0 -0
  847. /package/dist/{customdata.inputui-5MHQQHJL.js.map → customdata.inputui-Z4WQDU6I.js.map} +0 -0
  848. /package/dist/{dataDownload-S4EBNHMW.js.map → dataDownload-3ZEI22OK.js.map} +0 -0
  849. /package/dist/{dataDownload.integration.spec-OVSIWI34.js.map → dataDownload.integration.spec-C3JRC6K5.js.map} +0 -0
  850. /package/dist/{databrowser.ui-EAJS3NXV.js.map → databrowser.ui-Q365SHBG.js.map} +0 -0
  851. /package/dist/{dnaMethylation-G3F2INDH.js.map → dnaMethylation-IFZWWBUG.js.map} +0 -0
  852. /package/dist/{e2pca-SLXGPVHP.js.map → e2pca-I3QXF7EM.js.map} +0 -0
  853. /package/dist/{ep-4HGUSDGJ.js.map → ep-2VCQ36GT.js.map} +0 -0
  854. /package/dist/{expclust.gdc.spec-JJ42ESKE.js.map → expclust.gdc.spec-VWIQFY67.js.map} +0 -0
  855. /package/dist/{facet-6WVTVKDV.js.map → facet-CHP3VUWS.js.map} +0 -0
  856. /package/dist/{geneExpClustering-5LOZPD5X.js.map → geneExpClustering-YDIDEH2O.js.map} +0 -0
  857. /package/dist/{geneExpression-PTSZWKCM.js.map → geneExpression-FA5RJRHZ.js.map} +0 -0
  858. /package/dist/{geneExpression-BJ46UGXW.js.map → geneExpression-X2KXJPND.js.map} +0 -0
  859. /package/dist/{geneExpression.unit.spec-NW5HTO7F.js.map → geneExpression.unit.spec-3LVHYZGG.js.map} +0 -0
  860. /package/dist/{geneORA-H65EZ7QO.js.map → geneORA-4CAYRKSN.js.map} +0 -0
  861. /package/dist/{geneVariant-T6GWOVZD.js.map → geneVariant-OCOTNUH4.js.map} +0 -0
  862. /package/dist/{geneVariant-WTDFZTXG.js.map → geneVariant-Y4L5W5HF.js.map} +0 -0
  863. /package/dist/{geneVariant.integration.spec-OPSBRUM3.js.map → geneVariant.integration.spec-BOJ5MM5K.js.map} +0 -0
  864. /package/dist/{genefusion.ui-RSBCC37C.js.map → genefusion.ui-I6HZOBIV.js.map} +0 -0
  865. /package/dist/{geneset-B67PAZVL.js.map → geneset-GEWKDAAT.js.map} +0 -0
  866. /package/dist/{genomeBrowser.spec-AUTULF4C.js.map → genomeBrowser.spec-FDEGH4DY.js.map} +0 -0
  867. /package/dist/{grin2-CMBP7XVH.js.map → grin2-K56B6XBZ.js.map} +0 -0
  868. /package/dist/{grin2-JVCNH3KW.js.map → grin2-V6FMM44N.js.map} +0 -0
  869. /package/dist/{gsea-H774WVPQ.js.map → gsea-UNPPRU2U.js.map} +0 -0
  870. /package/dist/{hierCluster-IQTXQUMI.js.map → hierCluster-DXAWRQNI.js.map} +0 -0
  871. /package/dist/{hierCluster-ZQJDXYBD.js.map → hierCluster-SPIQA2M2.js.map} +0 -0
  872. /package/dist/{hierCluster.config-ZHJTZK5L.js.map → hierCluster.config-JW6D3T3Q.js.map} +0 -0
  873. /package/dist/{hierCluster.integration.spec-MSJ5GHHK.js.map → hierCluster.integration.spec-5NXZY4LG.js.map} +0 -0
  874. /package/dist/{hierCluster.interactivity-H2GNO6AA.js.map → hierCluster.interactivity-CPPBXHM7.js.map} +0 -0
  875. /package/dist/{hierCluster.renderers-2TE6HMK2.js.map → hierCluster.renderers-A6MEGO2B.js.map} +0 -0
  876. /package/dist/{imagePlot-FMNMB7JZ.js.map → imagePlot-QLAHCULW.js.map} +0 -0
  877. /package/dist/{importPlot-N66G43XX.js.map → importPlot-6ITZ6U7G.js.map} +0 -0
  878. /package/dist/{isoformExpression-B64WLO3H.js.map → isoformExpression-7GAUF2QV.js.map} +0 -0
  879. /package/dist/{jspdf.es.min-DO4YWL2R.js.map → jspdf.es.min-FC3BCETM.js.map} +0 -0
  880. /package/dist/{launch.adhoc-MPRAJ3GN.js.map → launch.adhoc-HFHBAUR6.js.map} +0 -0
  881. /package/dist/{leftlabel.sample-4JCKYXED.js.map → leftlabel.sample-CWPJUCHR.js.map} +0 -0
  882. /package/dist/{lollipop-25ADHT7O.js.map → lollipop-QFRQLEER.js.map} +0 -0
  883. /package/dist/{maftimeline-FOQF6O3X.js.map → maftimeline-2DFIF4C4.js.map} +0 -0
  884. /package/dist/{matrix-LHLAYDTQ.js.map → matrix-3HFB5TUU.js.map} +0 -0
  885. /package/dist/{matrix-ZKF7NRAD.js.map → matrix-MIXK27AD.js.map} +0 -0
  886. /package/dist/{matrix.cells-H4TS74FJ.js.map → matrix.cells-U7AQNEBP.js.map} +0 -0
  887. /package/dist/{matrix.config-HE7QUDER.js.map → matrix.config-FX5MHX6O.js.map} +0 -0
  888. /package/dist/{matrix.controls-VILCLNSC.js.map → matrix.controls-5K7BB5Z4.js.map} +0 -0
  889. /package/dist/{matrix.data-2OUWYD35.js.map → matrix.data-EEIY6AO4.js.map} +0 -0
  890. /package/dist/{matrix.dom-IZFFS4RQ.js.map → matrix.dom-6QL3AJMW.js.map} +0 -0
  891. /package/dist/{matrix.groups-5BGJIOOJ.js.map → matrix.groups-CUB6UWC5.js.map} +0 -0
  892. /package/dist/{matrix.integration.spec-DSXZHAEY.js.map → matrix.integration.spec-ML4T7FRG.js.map} +0 -0
  893. /package/dist/{matrix.interactivity-VK3NWX5M.js.map → matrix.interactivity-QMPWX63Q.js.map} +0 -0
  894. /package/dist/{matrix.layout-PUNMMNCC.js.map → matrix.layout-7SEF6MYI.js.map} +0 -0
  895. /package/dist/{matrix.legend-QMERGVYU.js.map → matrix.legend-42LQGAGX.js.map} +0 -0
  896. /package/dist/{matrix.renderers-2KQ2NXSQ.js.map → matrix.renderers-ZF7LLER3.js.map} +0 -0
  897. /package/dist/{matrix.serieses-24G3XPJD.js.map → matrix.serieses-4B2WB526.js.map} +0 -0
  898. /package/dist/{matrix.sort-HTVT4K7C.js.map → matrix.sort-BJACNR7G.js.map} +0 -0
  899. /package/dist/{matrix.sort.unit.spec-EUVL76NB.js.map → matrix.sort.unit.spec-ZGSM7HDJ.js.map} +0 -0
  900. /package/dist/{matrix.sorterUi-PJPFXWOJ.js.map → matrix.sorterUi-W6XFYZY2.js.map} +0 -0
  901. /package/dist/{matrix.sorterUi.unit.spec-QWL5Y4DQ.js.map → matrix.sorterUi.unit.spec-V34ZZD7A.js.map} +0 -0
  902. /package/dist/{mavb-UGM5SHEF.js.map → mavb-NVQVFU6E.js.map} +0 -0
  903. /package/dist/{mds.fimo-64US7RTE.js.map → mds.fimo-HOCF6U6K.js.map} +0 -0
  904. /package/dist/{mds.samplescatterplot-JMXLXVIE.js.map → mds.samplescatterplot-ULD5BK5R.js.map} +0 -0
  905. /package/dist/{mds.survivalplot-RJ5UD3IU.js.map → mds.survivalplot-5US32RQD.js.map} +0 -0
  906. /package/dist/{oncomatrix.spec-4YLKDGFE.js.map → oncomatrix.spec-MFUJLWEP.js.map} +0 -0
  907. /package/dist/{plot.2dvaf-DYSU6BBN.js.map → plot.2dvaf-F4WZ4YPU.js.map} +0 -0
  908. /package/dist/{plot.app-NFBVLAXZ.js.map → plot.app-YFFLLBU5.js.map} +0 -0
  909. /package/dist/{plot.barplot-DBGTDK7J.js.map → plot.barplot-2EJ2MWQD.js.map} +0 -0
  910. /package/dist/{plot.boxplot-MCKZUROP.js.map → plot.boxplot-AKZM443E.js.map} +0 -0
  911. /package/dist/{plot.brainImaging-BBAVUEB4.js.map → plot.brainImaging-DR6WJNFZ.js.map} +0 -0
  912. /package/dist/{plot.dzi-YQIFOTZQ.js.map → plot.dzi-R2MR7HAT.js.map} +0 -0
  913. /package/dist/{plot.ssgq-MU3BRTMC.js.map → plot.ssgq-C52YIUFY.js.map} +0 -0
  914. /package/dist/{plot.vaf2cov-KDHZ7JXJ.js.map → plot.vaf2cov-FOD3K7BC.js.map} +0 -0
  915. /package/dist/{plot.wsi-G2TUGQF7.js.map → plot.wsi-D2TXYERK.js.map} +0 -0
  916. /package/dist/{polar-RCCZXZIU.js.map → polar-2LC35O6K.js.map} +0 -0
  917. /package/dist/{polar2-COQ3WIGW.js.map → polar2-QPUOEUJZ.js.map} +0 -0
  918. /package/dist/{profile.spec-A4ZASR2T.js.map → profile.spec-3NCDGHLX.js.map} +0 -0
  919. /package/dist/{profileBarchart-GB4RK5DF.js.map → profileBarchart-PPQ3NL4D.js.map} +0 -0
  920. /package/dist/{profileForms-O5KBHRF6.js.map → profileForms-GS3VVW65.js.map} +0 -0
  921. /package/dist/{profilePlot-COCLCP5B.js.map → profilePlot-DQWFH5NC.js.map} +0 -0
  922. /package/dist/{profileRadar-4EE3YDOH.js.map → profileRadar-KAKRDC4R.js.map} +0 -0
  923. /package/dist/{proteomeAbundance-JBVXUSD6.js.map → proteomeAbundance-DE4NVBCN.js.map} +0 -0
  924. /package/dist/{proteomeAbundance-NQVU4DOW.js.map → proteomeAbundance-LTB3QR3G.js.map} +0 -0
  925. /package/dist/{qualitative-QROOPDSI.js.map → qualitative-YOFAROVR.js.map} +0 -0
  926. /package/dist/{regression-7FQZ22OO.js.map → regression-PF6IAHJK.js.map} +0 -0
  927. /package/dist/{regression.inputs-F62CES3A.js.map → regression.inputs-77IUYED3.js.map} +0 -0
  928. /package/dist/{regression.inputs.term-BCGP7PX4.js.map → regression.inputs.term-WWCHU6KF.js.map} +0 -0
  929. /package/dist/{regression.inputs.values.table-D3ZXZSH7.js.map → regression.inputs.values.table-I6GM6MU7.js.map} +0 -0
  930. /package/dist/{regression.results-JX6RJQQP.js.map → regression.results-6GXNKYUS.js.map} +0 -0
  931. /package/dist/{regression.spec-ROME7T33.js.map → regression.spec-MEFQNY34.js.map} +0 -0
  932. /package/dist/{report-B6MM4T6B.js.map → report-LG3UKZHL.js.map} +0 -0
  933. /package/dist/{sampleScatter.spec-EPCMC3SR.js.map → sampleScatter.spec-D3IK7MSA.js.map} +0 -0
  934. /package/dist/{sampleView-77EAJ75T.js.map → sampleView-XUI2J5EC.js.map} +0 -0
  935. /package/dist/{samplelst-CX4NQWA7.js.map → samplelst-A7IHCBAX.js.map} +0 -0
  936. /package/dist/{samplematrix-PYQFAH64.js.map → samplematrix-VGUU7Q75.js.map} +0 -0
  937. /package/dist/{sc-X6SI5VVI.js.map → sc-UVKVT2RY.js.map} +0 -0
  938. /package/dist/{scatter-ZFFHAI4F.js.map → scatter-UILUYOGO.js.map} +0 -0
  939. /package/dist/{selectGenomeWithTklst-CZMVTBMD.js.map → selectGenomeWithTklst-LWKIMZEJ.js.map} +0 -0
  940. /package/dist/{singleCellCellType-GOBX7JKV.js.map → singleCellCellType-TI52WQQ4.js.map} +0 -0
  941. /package/dist/{singleCellGeneExpression-BLMNMEAI.js.map → singleCellGeneExpression-I5SAHMGI.js.map} +0 -0
  942. /package/dist/{singleCellPlot-HLD7PLQH.js.map → singleCellPlot-HRWCHYCI.js.map} +0 -0
  943. /package/dist/{singlecell-HL4GLGIA.js.map → singlecell-BHPP7KCO.js.map} +0 -0
  944. /package/dist/{singlecell-JQFPINRS.js.map → singlecell-PQNKBKR7.js.map} +0 -0
  945. /package/dist/{snp-EAUNFDAV.js.map → snp-V4YGI7B3.js.map} +0 -0
  946. /package/dist/{snp.unit.spec-AVLPMAWI.js.map → snp.unit.spec-JSUCMGNP.js.map} +0 -0
  947. /package/dist/{snplocus-2J7OA6OL.js.map → snplocus-3YT5NNCH.js.map} +0 -0
  948. /package/dist/{spliceevent.a53ss.diagram-4DU2U7NW.js.map → spliceevent.a53ss.diagram-QEQJ44YH.js.map} +0 -0
  949. /package/dist/{spliceevent.exonskip.diagram-GG5FGXOK.js.map → spliceevent.exonskip.diagram-HMWVSOJG.js.map} +0 -0
  950. /package/dist/{spliceevent.noeventdiagram-T6RNIMCM.js.map → spliceevent.noeventdiagram-L5HUCT5A.js.map} +0 -0
  951. /package/dist/{ssGSEA-XJWLRVFQ.js.map → ssGSEA-Z3XRCBYW.js.map} +0 -0
  952. /package/dist/{ssGSEA.unit.spec-MQ23ODYO.js.map → ssGSEA.unit.spec-EUCTV2XJ.js.map} +0 -0
  953. /package/dist/{summarizeMutationDiagnosis-ZVX7AZK7.js.map → summarizeMutationDiagnosis-HFFYLQOF.js.map} +0 -0
  954. /package/dist/{summarizeMutationSurvival-EWXD7TCT.js.map → summarizeMutationSurvival-OBK6YILP.js.map} +0 -0
  955. /package/dist/{summary-VUYBKQOC.js.map → summary-W55WWIU2.js.map} +0 -0
  956. /package/dist/{summary.integration.spec-EPBV5XCT.js.map → summary.integration.spec-X2PNAUKW.js.map} +0 -0
  957. /package/dist/{summaryInput-YX5IRGWM.js.map → summaryInput-X547Q6C7.js.map} +0 -0
  958. /package/dist/{survival-XOXDPXZR.js.map → survival-PAJZHZPD.js.map} +0 -0
  959. /package/dist/{survival-E6SRRXBB.js.map → survival-TQPWMOD5.js.map} +0 -0
  960. /package/dist/{svg2pdf.es.min-EZ4UYRSH.js.map → svg2pdf.es.min-CYTPRWNB.js.map} +0 -0
  961. /package/dist/{svgraph-D23WG3UE.js.map → svgraph-Y35C2M3D.js.map} +0 -0
  962. /package/dist/{svmr-UFC4TKWV.js.map → svmr-WGCIR7PE.js.map} +0 -0
  963. /package/dist/{table-US2K6IYZ.js.map → table-Q3B2YXEN.js.map} +0 -0
  964. /package/dist/{termCollection-E7S57CIN.js.map → termCollection-A6YTSM5I.js.map} +0 -0
  965. /package/dist/{termCollection-ZMP3VE2G.js.map → termCollection-NTFNVQ7D.js.map} +0 -0
  966. /package/dist/{termCollection.unit.spec-MDWK6XH3.js.map → termCollection.unit.spec-BX54PHKT.js.map} +0 -0
  967. /package/dist/{tk-TLQJK6R4.js.map → tk-OCBZ7YR6.js.map} +0 -0
  968. /package/dist/{tp.ui-NQEAKWUH.js.map → tp.ui-ZT47N2CO.js.map} +0 -0
  969. /package/dist/{tvs.dt-U2MINIBH.js.map → tvs.dt-BFB253O3.js.map} +0 -0
  970. /package/dist/{tvs.dtcnv.categorical-2OOAZJKC.js.map → tvs.dtcnv.categorical-ARGAYIDO.js.map} +0 -0
  971. /package/dist/{tvs.dtcnv.continuous-5ETKBJ52.js.map → tvs.dtcnv.continuous-JCU23ERV.js.map} +0 -0
  972. /package/dist/{tvs.dtfusion-EB4PPR3Y.js.map → tvs.dtfusion-FV64XLZI.js.map} +0 -0
  973. /package/dist/{tvs.dtsnvindel-IRQPTKQF.js.map → tvs.dtsnvindel-DMOXMEVL.js.map} +0 -0
  974. /package/dist/{tvs.dtsv-TOVXZJCR.js.map → tvs.dtsv-53FSZEPV.js.map} +0 -0
  975. /package/dist/{tvs.samplelst-4SCH543Y.js.map → tvs.samplelst-MVPL6VXX.js.map} +0 -0
  976. /package/dist/{tvs.termCollection-GGN5F6HC.js.map → tvs.termCollection-UGJXTHTG.js.map} +0 -0
  977. /package/dist/{violin-7D7DN74I.js.map → violin-ZLUDGSQG.js.map} +0 -0
  978. /package/dist/{violin.interactivity-YPJ2H6SQ.js.map → violin.interactivity-ULDOCZWW.js.map} +0 -0
  979. /package/dist/{violin.renderer-UK7WSA2Z.js.map → violin.renderer-KJAXPMIK.js.map} +0 -0
  980. /package/dist/{vocabulary-KLWZ6LRP.js.map → vocabulary-34YUQ4ZQ.js.map} +0 -0
@@ -0,0 +1,2248 @@
1
+ import {
2
+ blocklazyload
3
+ } from "./chunk-A5AFIW2T.js";
4
+ import {
5
+ hicParseFile
6
+ } from "./chunk-VIPMLSZP.js";
7
+ import {
8
+ AppBase,
9
+ ColorScale,
10
+ axisstyle,
11
+ first_genetrack_tolist,
12
+ font,
13
+ newpane,
14
+ showErrorsWithCounter,
15
+ tkt
16
+ } from "./chunk-NVB7MQLH.js";
17
+ import "./chunk-HJ6L54YS.js";
18
+ import "./chunk-4JON7TLI.js";
19
+ import {
20
+ dofetch3
21
+ } from "./chunk-7RN3L2BX.js";
22
+ import {
23
+ Menu
24
+ } from "./chunk-A6TQGNDQ.js";
25
+ import "./chunk-HYZG6OPC.js";
26
+ import "./chunk-FN5XPUPH.js";
27
+ import "./chunk-LSEFWW72.js";
28
+ import "./chunk-5EF5U7MX.js";
29
+ import "./chunk-2K5DSRBJ.js";
30
+ import "./chunk-UCLS2SVB.js";
31
+ import {
32
+ StoreBase,
33
+ getAppInit,
34
+ getCompInit,
35
+ getStoreInit
36
+ } from "./chunk-MVTCBVSX.js";
37
+ import "./chunk-SEQLC4AD.js";
38
+ import "./chunk-L4QG7XZE.js";
39
+ import "./chunk-DQC5FFGV.js";
40
+ import "./chunk-KQMEJUWI.js";
41
+ import "./chunk-UJU3Q7QJ.js";
42
+ import "./chunk-WGL6FIUE.js";
43
+ import "./chunk-6ITDJ5UR.js";
44
+ import {
45
+ bplen
46
+ } from "./chunk-XYFDBYOY.js";
47
+ import "./chunk-TV74I3Y5.js";
48
+ import "./chunk-IH7ILDJS.js";
49
+ import {
50
+ axisBottom,
51
+ axisRight
52
+ } from "./chunk-LOZEKOES.js";
53
+ import "./chunk-TOU7EVFQ.js";
54
+ import {
55
+ format,
56
+ linear
57
+ } from "./chunk-OAWQ6LOO.js";
58
+ import "./chunk-SEEYV6P2.js";
59
+ import {
60
+ pointer_default,
61
+ select_default
62
+ } from "./chunk-NDWTN4U5.js";
63
+ import "./chunk-OMR2DT66.js";
64
+ import "./chunk-HFNDKYVF.js";
65
+
66
+ // tracks/hic/HicStore.ts
67
+ var HicStore = class _HicStore extends StoreBase {
68
+ constructor(opts) {
69
+ super(opts);
70
+ this.views = ["genome", "chrpair", "detail", "horizontal"];
71
+ this.type = _HicStore.type;
72
+ this.defaultState = {
73
+ defaultNmeth: "NONE",
74
+ loading: true,
75
+ minBinNum_bp: 200,
76
+ minFragSpan: 200,
77
+ initialBinNum: 20,
78
+ settings: {
79
+ widthHeightPx: 800
80
+ }
81
+ };
82
+ }
83
+ static {
84
+ this.type = "store";
85
+ }
86
+ init() {
87
+ this.state = Object.assign({}, this.defaultState, this.state);
88
+ }
89
+ };
90
+ var hicStoreInit = getStoreInit(HicStore);
91
+ HicStore.prototype.actions = {
92
+ view_create(action) {
93
+ if (!action.view) throw Error("view_create: missing view");
94
+ if (!this.views.some((v) => v == action.view)) throw Error(`view_create: unknown view = ${action.view}`);
95
+ this.state.currView = action.view;
96
+ const opts = Object.assign(this.state, action.config);
97
+ this.state = opts;
98
+ },
99
+ view_update(action) {
100
+ if (action.view) {
101
+ if (!this.views.some((v) => v == action.view)) throw Error(`view_update: unknown view = ${action.view}`);
102
+ const opts = Object.assign(this.state[action.view], action.config);
103
+ this.state[action.view] = opts;
104
+ } else {
105
+ const opts = Object.assign(this.state, action.config);
106
+ this.state = opts;
107
+ }
108
+ },
109
+ loading_active(action) {
110
+ this.state.loading = action.active;
111
+ }
112
+ };
113
+
114
+ // tracks/hic/dom/LoadingOverlay.ts
115
+ var LoadingOverlay = class _LoadingOverlay {
116
+ constructor(opts) {
117
+ this.hasStatePreMain = true;
118
+ this.type = _LoadingOverlay.type;
119
+ this.app = opts.app;
120
+ this.loadingDiv = opts.loadingDiv;
121
+ }
122
+ static {
123
+ this.type = "loadingOverlay";
124
+ }
125
+ reactsTo(action) {
126
+ if (action.type.startsWith("loading")) return true;
127
+ else return false;
128
+ }
129
+ getState(appState) {
130
+ return appState;
131
+ }
132
+ init() {
133
+ this.loadingDiv.append("div").attr("class", "sjpp-spinner").style("display", "");
134
+ }
135
+ main(appState) {
136
+ const loading = this.app.getState(appState).loading;
137
+ this.loadingDiv.style("display", loading ? "" : "none");
138
+ }
139
+ };
140
+ var loadingInit = getCompInit(LoadingOverlay);
141
+
142
+ // tracks/hic/dom/ColorizeElement.ts
143
+ var ColorizeElement = class {
144
+ colorizeElement(xCoord, yCoord, v, obj, width, height, bpMinV, bpMaxV, currView) {
145
+ if (v >= 0) {
146
+ const p = v >= bpMaxV ? 0 : v <= bpMinV ? 255 : Math.floor(255 * (bpMaxV - v) / bpMaxV);
147
+ const positiveFill = `rgb(255, ${p}, ${p})`;
148
+ if (currView === "genome") {
149
+ obj.ctx.fillStyle = positiveFill;
150
+ obj.ctx2.fillStyle = positiveFill;
151
+ } else {
152
+ obj.fillStyle = positiveFill;
153
+ }
154
+ } else {
155
+ const p = v <= bpMinV ? 255 : Math.floor(255 * (bpMaxV + v) / bpMaxV);
156
+ const negativeFill = `rgb(${p}, ${p}, 255)`;
157
+ if (currView === "genome") {
158
+ obj.ctx.fillStyle = negativeFill;
159
+ obj.ctx2.fillStyle = negativeFill;
160
+ } else {
161
+ obj.fillStyle = negativeFill;
162
+ }
163
+ }
164
+ if (currView === "genome") {
165
+ obj.ctx.fillRect(yCoord, xCoord, width, height);
166
+ obj.ctx2.fillRect(xCoord, yCoord, width, height);
167
+ } else {
168
+ obj.fillRect(xCoord, yCoord, width, height);
169
+ }
170
+ }
171
+ };
172
+
173
+ // tracks/hic/data/Resolution.ts
174
+ var Resolution = class {
175
+ constructor(error) {
176
+ this.error = error;
177
+ }
178
+ getResolution(state, hic) {
179
+ if (state.currView == "genome") return hic["bpresolution"][0];
180
+ if (state.currView == "chrpair") {
181
+ const resolution = this.getChrPairResolution(hic, state.x, state.y, state.minBinNum_bp);
182
+ return resolution;
183
+ } else if (state.currView == "detail") {
184
+ const maxBpWidth = Math.max(state.x.stop - state.x.start, state.y.stop - state.y.start);
185
+ let resolution = this.findResFromArray(maxBpWidth, state.minBinNum_bp, hic.bpresolution);
186
+ if (resolution == null && !hic.enzyme) {
187
+ resolution = hic.bpresolution[hic.bpresolution.length - 1];
188
+ }
189
+ return resolution;
190
+ } else {
191
+ this.error(`Unknown view: ${state.currView}`);
192
+ throw `Unknown view: ${state.currView}`;
193
+ }
194
+ }
195
+ getChrPairResolution(hic, x, y, minBinNum_bp) {
196
+ const chrxlen = hic.genome.chrlookup[x.chr.toUpperCase()].len;
197
+ const chrylen = hic.genome.chrlookup[y.chr.toUpperCase()].len;
198
+ const maxchrlen = Math.max(chrxlen, chrylen);
199
+ const resolution = this.findResFromArray(maxchrlen, minBinNum_bp, hic.bpresolution);
200
+ if (resolution == null) {
201
+ this.error(`No suitable resolution for ${x.chr}-${y.chr} pair.`);
202
+ return;
203
+ }
204
+ return resolution;
205
+ }
206
+ findResFromArray(max, defaultValue, resolutionArray, returnNum) {
207
+ let resolution = null;
208
+ for (const res of resolutionArray) {
209
+ if (max / res > defaultValue) {
210
+ resolution = res;
211
+ break;
212
+ }
213
+ }
214
+ if (returnNum && resolution == null) {
215
+ resolution = resolutionArray[resolutionArray.length - 1];
216
+ }
217
+ return resolution;
218
+ }
219
+ getDefaultViewSpan(hic, x, y, initialBinNum, minBinNum_bp) {
220
+ const chrpairResolution = this.getChrPairResolution(hic, x, y, minBinNum_bp);
221
+ if (!chrpairResolution) return;
222
+ return chrpairResolution * initialBinNum;
223
+ }
224
+ };
225
+
226
+ // tracks/hic/data/Positions.ts
227
+ var Positions = class {
228
+ constructor(error, minBinNum_bp) {
229
+ this.error = error;
230
+ this.resolution = new Resolution(this.error);
231
+ this.minBinNum_bp = minBinNum_bp;
232
+ }
233
+ /**
234
+ *
235
+ * @param x x coordinate of pointer
236
+ * @param y y coordinate of pointer
237
+ * @param binpx
238
+ * @param chrx x chr from state
239
+ * @param chry y chr from state
240
+ * @param hic
241
+ * @param initialBinNum Set in the state
242
+ * @returns
243
+ */
244
+ setPosition(x, y, binpx, chrx, chry, hic, initialBinNum) {
245
+ const resolution = this.resolution.getChrPairResolution(hic, chrx, chry, this.minBinNum_bp);
246
+ const viewrangebpw = resolution * initialBinNum;
247
+ let coordx = Math.max(1, Math.floor(x * resolution / binpx) - viewrangebpw / 2);
248
+ let coordy = Math.max(1, Math.floor(y * resolution / binpx) - viewrangebpw / 2);
249
+ {
250
+ const lenx = hic.genome.chrlookup[chrx.chr.toUpperCase()].len;
251
+ if (coordx + viewrangebpw >= lenx) {
252
+ coordx = lenx - viewrangebpw;
253
+ }
254
+ const leny = hic.genome.chrlookup[chry.chr.toUpperCase()].len;
255
+ if (coordy + viewrangebpw > leny) {
256
+ coordy = leny - viewrangebpw;
257
+ }
258
+ }
259
+ const xObj = {
260
+ chr: chrx.chr,
261
+ start: coordx,
262
+ stop: coordx + viewrangebpw
263
+ };
264
+ const yObj = {
265
+ chr: chry.chr,
266
+ start: coordy,
267
+ stop: coordy + viewrangebpw
268
+ };
269
+ return [xObj, yObj];
270
+ }
271
+ };
272
+
273
+ // tracks/hic/data/GridElementsFormattedData.ts
274
+ var GridElementsFormattedData = class {
275
+ /**
276
+ * Format the data for the grid elements.
277
+ * @param items The data to format.
278
+ * @param binpx The bin size in pixels.
279
+ * @param resolution The resolution.
280
+ * @param isFirstChrX Whether the first chromosome is X. Used for chrpair view.
281
+ * @param isIntraChr Whether the data is intra-chromosomal. Used for chrpair view
282
+ * @returns The formatted data.
283
+ */
284
+ formatData(view, items, binpx, resolution, isFirstChrX, isIntraChr) {
285
+ const formattedData = [];
286
+ for (const [xCoord, yCoord, value] of items) {
287
+ const xPx = Math.floor(xCoord / resolution) * binpx;
288
+ const yPx = Math.floor(yCoord / resolution) * binpx;
289
+ if (view == "genome") {
290
+ formattedData.push([xPx, yPx, value]);
291
+ }
292
+ if (view == "chrpair") {
293
+ const x = isFirstChrX ? xPx : yPx;
294
+ const y = isFirstChrX ? yPx : xPx;
295
+ formattedData.push([x, y, value]);
296
+ if (isIntraChr) {
297
+ formattedData.push([y, x, value]);
298
+ }
299
+ }
300
+ }
301
+ return formattedData;
302
+ }
303
+ };
304
+
305
+ // tracks/hic/data/FirstChrX.ts
306
+ var FirstChrX = class {
307
+ constructor(chrorder, chrx, chry) {
308
+ this.chrorder = chrorder;
309
+ this.chrx = chrx;
310
+ this.chry = chry;
311
+ }
312
+ isFirstX() {
313
+ if (this.chrx == this.chry) return true;
314
+ return this.chrorder.indexOf(this.chrx) < this.chrorder.indexOf(this.chry);
315
+ }
316
+ };
317
+
318
+ // tracks/hic/chrpair/ChrPairView.ts
319
+ var ChrPairView = class {
320
+ constructor(opts) {
321
+ this.binpx = 1;
322
+ /** padding on the ends of x/y chr coordinate axes */
323
+ this.axispad = 10;
324
+ this.axisLabelFontSize = 15;
325
+ this.calcResolution = null;
326
+ this.data = [];
327
+ this.app = opts.app;
328
+ this.hic = opts.hic;
329
+ this.plotDiv = opts.plotDiv;
330
+ this.items = opts.items;
331
+ this.parent = opts.parent;
332
+ this.chrxlen = this.hic.genome.chrlookup[this.parent("state").x.chr.toUpperCase()].len;
333
+ this.chrylen = this.hic.genome.chrlookup[this.parent("state").y.chr.toUpperCase()].len;
334
+ this.maxchrlen = Math.max(this.chrxlen, this.chrylen);
335
+ this.colorizeElement = new ColorizeElement();
336
+ this.positions = new Positions(opts.error, this.parent("state").minBinNum_bp);
337
+ this.formattedData = new GridElementsFormattedData();
338
+ }
339
+ setDefaultBinpx() {
340
+ if (this.calcResolution == null) return;
341
+ while (this.binpx * this.maxchrlen / this.calcResolution < 600) {
342
+ this.binpx++;
343
+ }
344
+ }
345
+ renderAxes() {
346
+ if (this.calcResolution == null) return;
347
+ const svgY = this.plotDiv.yAxis.append("svg");
348
+ const h = Math.ceil(this.chrylen / this.calcResolution) * this.binpx;
349
+ svgY.attr("width", 100).attr("height", this.axispad * 2 + h);
350
+ svgY.append("g").attr("data-testid", "sjpp-chrpair-svg-y").attr("transform", "translate(80," + (this.axispad + h / 2) + ")").append("text").text(this.parent("state").y.chr).attr("text-anchor", "middle").attr("font-size", this.axisLabelFontSize).attr("font-family", font).attr("dominant-baseline", "central").attr("transform", "rotate(90)");
351
+ axisstyle({
352
+ axis: svgY.append("g").attr("transform", `translate(1, ${this.axispad})`).call(axisRight(linear().domain([0, this.chrylen]).range([0, h])).tickFormat(format(".2s"))),
353
+ showline: true
354
+ });
355
+ const svgX = this.plotDiv.xAxis.append("svg").style("margin-top", "-4px");
356
+ const w = Math.ceil(this.chrxlen / this.calcResolution) * this.binpx;
357
+ svgX.attr("height", 100).attr("width", this.axispad * 2 + w);
358
+ svgX.append("text").attr("data-testid", "sjpp-chrpair-svg-x").text(this.parent("state").x.chr).attr("font-size", this.axisLabelFontSize).attr("font-family", font).attr("x", this.axispad + w / 2).attr("text-anchor", "middle").attr("y", 60);
359
+ axisstyle({
360
+ axis: svgX.append("g").attr("transform", "translate(" + this.axispad + ",1)").call(axisBottom(linear().domain([0, this.chrxlen]).range([0, w])).tickFormat(format(".2s"))),
361
+ showline: true
362
+ });
363
+ }
364
+ renderCanvas() {
365
+ const initDetailView = this.initDetailView.bind(this);
366
+ this.canvas = this.plotDiv.plot.append("canvas").attr("data-testid", "sjpp-chrpair-canvas").style("margin", this.axispad + "px").on("click", async function(event) {
367
+ const [x, y] = pointer_default(event, this);
368
+ initDetailView(x, y);
369
+ }).node();
370
+ this.canvas.width = Math.ceil(this.chrxlen / this.calcResolution) * this.binpx;
371
+ this.canvas.height = Math.ceil(this.chrylen / this.calcResolution) * this.binpx;
372
+ this.ctx = this.canvas.getContext("2d");
373
+ }
374
+ initDetailView(x, y) {
375
+ const [xObj, yObj] = this.positions.setPosition(
376
+ x,
377
+ y,
378
+ this.binpx,
379
+ this.parent("state").x,
380
+ this.parent("state").y,
381
+ this.hic,
382
+ this.parent("state").initialBinNum
383
+ );
384
+ this.app.dispatch({
385
+ type: "view_create",
386
+ view: "detail",
387
+ config: {
388
+ x: xObj,
389
+ y: yObj
390
+ }
391
+ });
392
+ }
393
+ render() {
394
+ this.calcResolution = this.parent("calcResolution");
395
+ this.setDefaultBinpx();
396
+ this.renderAxes();
397
+ this.renderCanvas();
398
+ this.update(this.items);
399
+ }
400
+ update(items) {
401
+ this.items = items;
402
+ const firstisx = new FirstChrX(this.hic.chrorder, this.parent("state").x.chr, this.parent("state").y.chr).isFirstX();
403
+ const isintrachr = this.parent("state").x.chr === this.parent("state").y.chr;
404
+ this.data = this.formattedData.formatData(
405
+ "chrpair",
406
+ items.items,
407
+ this.binpx,
408
+ this.calcResolution,
409
+ firstisx,
410
+ isintrachr
411
+ );
412
+ this.ctx.clearRect(0, 0, this.canvas.width, this.canvas.height);
413
+ for (const [x, y, v] of this.data) {
414
+ this.colorizeElement.colorizeElement(
415
+ x,
416
+ y,
417
+ v,
418
+ this.ctx,
419
+ this.binpx,
420
+ //width
421
+ this.binpx,
422
+ //height
423
+ this.parent("min"),
424
+ this.parent("max"),
425
+ "chrpair"
426
+ );
427
+ }
428
+ this.app.dispatch({ type: "loading_active", active: false });
429
+ }
430
+ };
431
+
432
+ // tracks/hic/horizontal/HorizontalView.ts
433
+ var HorizontalView = class {
434
+ constructor(opts) {
435
+ /** Defaults*/
436
+ this.maxPercentage = 5;
437
+ this.subPanelPxWidth = 600;
438
+ this.borderColor = "rgba(200,0,0,.1)";
439
+ this.app = opts.app;
440
+ this.hic = opts.hic;
441
+ this.plotDiv = opts.plotDiv;
442
+ this.items = opts.items;
443
+ this.parent = opts.parent;
444
+ }
445
+ setRunPpTracks() {
446
+ const tracks = [
447
+ {
448
+ type: "hicstraw",
449
+ file: this.hic.file,
450
+ url: this.hic.url,
451
+ name: this.hic.name,
452
+ enzyme: this.hic.enzyme,
453
+ maxpercentage: this.maxPercentage,
454
+ pyramindup: 1
455
+ }
456
+ ];
457
+ if (this.hic.tklst) {
458
+ for (const t of this.hic.tklst) {
459
+ tracks.push(t);
460
+ }
461
+ }
462
+ first_genetrack_tolist(this.hic.genome, tracks);
463
+ return tracks;
464
+ }
465
+ setRunPpArgs(tracks) {
466
+ const arg = {
467
+ holder: this.plotDiv.plot,
468
+ hostURL: this.hic.hostURL,
469
+ jwt: this.hic.jwt,
470
+ genome: this.hic.genome,
471
+ nobox: 1,
472
+ tklst: tracks
473
+ };
474
+ const state = this.parent("state");
475
+ if (state.x.chr == state.y.chr && Math.max(state.x.start, state.y.start) < Math.min(state.x.stop, state.y.stop)) {
476
+ arg["chr"] = state.x.chr;
477
+ arg["start"] = Math.min(state.x.start, state.y.start);
478
+ arg["stop"] = Math.max(state.x.stop, state.y.stop);
479
+ } else {
480
+ arg["chr"] = state.x.chr;
481
+ arg["start"] = state.x.start;
482
+ arg["stop"] = state.x.stop;
483
+ arg["width"] = this.subPanelPxWidth;
484
+ arg["subpanels"] = [
485
+ {
486
+ chr: state.y.chr,
487
+ start: state.y.start,
488
+ stop: state.y.stop,
489
+ width: this.subPanelPxWidth,
490
+ leftpad: 10,
491
+ leftborder: this.borderColor
492
+ }
493
+ ];
494
+ }
495
+ return arg;
496
+ }
497
+ render() {
498
+ const tracks = this.setRunPpTracks();
499
+ const arg = this.setRunPpArgs(tracks);
500
+ blocklazyload(arg);
501
+ }
502
+ // update() {
503
+ // //Not required.
504
+ // //If controls are added back. Implement changes here.
505
+ // }
506
+ };
507
+
508
+ // tracks/hic/detail/DetailBlock.ts
509
+ var DetailBlock = class {
510
+ constructor(app, hic, blockwidth, bbmargin, holder, isYblock) {
511
+ /** Defaults */
512
+ this.leftheadw = 20;
513
+ this.rightheadw = 40;
514
+ this.lpad = 1;
515
+ this.rpad = 1;
516
+ this.firstRender = true;
517
+ this.app = app;
518
+ this.hic = hic;
519
+ this.width = blockwidth;
520
+ this.bbmargin = bbmargin;
521
+ this.holder = holder;
522
+ this.isYblock = isYblock;
523
+ this.bbw = this.leftheadw + this.lpad + this.width + this.rpad + this.rightheadw + 2 * this.bbmargin;
524
+ this.defaultLeft = this.bbmargin + this.leftheadw + this.lpad;
525
+ this.defaultTop = this.bbmargin + this.rightheadw + this.rpad;
526
+ }
527
+ setArgs(chrObj) {
528
+ const runPpArgs = {
529
+ hostURL: this.hic.hostURL,
530
+ genome: this.hic.genome,
531
+ holder: this.holder,
532
+ noresize: true,
533
+ nobox: true,
534
+ butrowbottom: true,
535
+ style: {
536
+ margin: `${this.bbmargin}px`
537
+ },
538
+ width: this.width,
539
+ leftheadw: this.leftheadw,
540
+ chr: chrObj.chr,
541
+ start: chrObj.start,
542
+ stop: chrObj.stop,
543
+ rightheadw: this.rightheadw,
544
+ tklst: [],
545
+ rotated: this.isYblock,
546
+ showreverse: this.isYblock
547
+ };
548
+ first_genetrack_tolist(this.hic.genome, runPpArgs.tklst);
549
+ return runPpArgs;
550
+ }
551
+ setMethods(canvasHolder, canvas, sheath) {
552
+ const runPpMethods = {
553
+ onloadalltk_always: () => {
554
+ this.onload(canvasHolder, canvas, sheath);
555
+ },
556
+ onpanning: (xoff) => this.onpanning(xoff, canvas)
557
+ };
558
+ if (this.isYblock) {
559
+ runPpMethods["onsetheight"] = (bbh) => {
560
+ this.holder.transition().style("left", `${bbh + this.bbmargin + 30}px`);
561
+ };
562
+ }
563
+ return runPpMethods;
564
+ }
565
+ onload(canvasHolder, canvas, sheath) {
566
+ this.bbw = this.block.leftheadw + this.block.lpad + this.block.width + this.block.rpad + this.block.rightheadw + 2 * this.bbmargin;
567
+ if (this.isYblock) {
568
+ sheath.transition().style("height", `${this.bbw}px`);
569
+ canvasHolder.style("height", `${this.bbw}px`);
570
+ } else canvasHolder.style("width", `${this.bbw}px`);
571
+ if (this.isYblock) {
572
+ this.defaultTop = this.bbmargin + this.block.rightheadw + this.block.rpad;
573
+ canvas.style("top", `${this.defaultTop}px`);
574
+ } else {
575
+ this.defaultLeft = this.bbmargin + this.block.leftheadw + this.block.lpad;
576
+ canvas.style("left", `${this.defaultLeft}px`);
577
+ }
578
+ const config = {
579
+ [this.isYblock ? "y" : "x"]: {
580
+ chr: this.block.rglst[0].chr,
581
+ start: this.block.rglst[0].start,
582
+ stop: this.block.rglst[0].stop
583
+ }
584
+ };
585
+ if (this.firstRender == false) {
586
+ this.app.dispatch({
587
+ type: "view_update",
588
+ config
589
+ });
590
+ } else {
591
+ this.firstRender = false;
592
+ }
593
+ }
594
+ onpanning(xoff, canvas) {
595
+ if (!this.isYblock) canvas.style("left", `${xoff + this.defaultLeft}px`);
596
+ else canvas.style("top", `${-xoff + this.defaultTop}px`);
597
+ }
598
+ async loadBlock(chrObj, canvasHolder, canvas, sheath) {
599
+ const runPpArgs = this.setArgs(chrObj);
600
+ const runPpMethods = this.isYblock ? this.setMethods(canvasHolder, canvas, sheath) : this.setMethods(canvasHolder, canvas);
601
+ const args = Object.assign(runPpArgs, runPpMethods);
602
+ await blocklazyload(args).then(async (block) => {
603
+ this.block = block;
604
+ });
605
+ }
606
+ };
607
+
608
+ // tracks/hic/data/DetailDataFetcher.ts
609
+ var DetailDataFetcher = class {
610
+ constructor(errList) {
611
+ this.obj = {
612
+ rglst: []
613
+ };
614
+ this.errList = errList;
615
+ }
616
+ isFragData(hic, resolution) {
617
+ if (resolution != null) return;
618
+ if (!hic.enzyme) {
619
+ resolution = hic.bpresolution[hic.bpresolution.length - 1];
620
+ return;
621
+ }
622
+ }
623
+ formatFragArgs(enzymefile, chr) {
624
+ const arg = {
625
+ getdata: 1,
626
+ getBED: 1,
627
+ file: enzymefile,
628
+ rglst: [chr]
629
+ };
630
+ return arg;
631
+ }
632
+ /**
633
+ * @param arg Formated obj from either fn above
634
+ * @param errList
635
+ * @returns
636
+ */
637
+ async getBedData(arg) {
638
+ try {
639
+ return await dofetch3("tkbedj", { method: "POST", body: JSON.stringify(arg) });
640
+ } catch (e) {
641
+ this.errList.push(e.message || e);
642
+ if (e.stack) console.error(e.stack);
643
+ }
644
+ }
645
+ async getXFragData(hic, resolution, chrx) {
646
+ this.isFragData(hic, resolution);
647
+ if (!hic.enzymefile) return;
648
+ const reqArgs = this.formatFragArgs(hic.enzymefile, chrx);
649
+ return await this.getBedData(reqArgs);
650
+ }
651
+ async getYFragData(hic, chry) {
652
+ const reqArgs = this.formatFragArgs(hic.enzymefile, chry);
653
+ return await this.getBedData(reqArgs);
654
+ }
655
+ /**
656
+ * Separate request from data fetch
657
+ * Returns the additional fragment data
658
+ * @param fragCoords
659
+ */
660
+ async fetchData(hic, detailView, resolution, x, y, fragCoords) {
661
+ const fragStrawArgs = {
662
+ matrixType: detailView.matrixType,
663
+ file: hic.file,
664
+ url: hic.url,
665
+ pos1: this.determinePosition(hic, x, fragCoords?.x),
666
+ pos2: this.determinePosition(hic, y, fragCoords?.y),
667
+ nmeth: detailView.nmeth,
668
+ resolution
669
+ };
670
+ if (fragCoords) fragStrawArgs["isfrag"] = true;
671
+ try {
672
+ const data = dofetch3("hicdata?", {
673
+ method: "POST",
674
+ body: JSON.stringify(fragStrawArgs)
675
+ });
676
+ if (data.error) {
677
+ this.errList.push(data.error);
678
+ }
679
+ return data;
680
+ } catch (e) {
681
+ this.errList.push(e.message || e);
682
+ if (e.stack) console.error(e.stack);
683
+ }
684
+ }
685
+ determinePosition(hic, chr, fragCoord) {
686
+ if (fragCoord) {
687
+ return `${hic.nochr ? chr.chr.replace("chr", "") : chr.chr}:${fragCoord.start}:${fragCoord.stop}`;
688
+ } else {
689
+ return `${hic.nochr ? chr.chr.replace("chr", "") : chr.chr}:${chr.start}:${chr.stop}`;
690
+ }
691
+ }
692
+ };
693
+
694
+ // tracks/hic/data/ParseFragData.ts
695
+ var ParseFragData = class {
696
+ constructor(errLst, items) {
697
+ this.id2coord = /* @__PURE__ */ new Map();
698
+ this.min = null;
699
+ this.max = null;
700
+ this.items = [];
701
+ this.errLst = errLst;
702
+ for (const i of items) {
703
+ if (!i.rest || !i.rest[0]) {
704
+ this.errLst.push("items[].rest data problem");
705
+ }
706
+ const id = Number.parseInt(i.rest[0]);
707
+ if (Number.isNaN(id)) {
708
+ this.errLst.push(`${i.start}.${i.stop} invalid fragment id: ${i.rest[0]}`);
709
+ }
710
+ this.id2coord.set(id, [i.start, i.stop]);
711
+ if (this.min == null) {
712
+ this.min = id;
713
+ this.max = id;
714
+ } else {
715
+ this.min = Math.min(this.min, id);
716
+ this.max = Math.max(this.max, id);
717
+ }
718
+ }
719
+ }
720
+ };
721
+
722
+ // tracks/hic/data/DetailDataMapper.ts
723
+ var DetailDataMapper = class {
724
+ constructor(hic, errList, parent) {
725
+ this.frag = {
726
+ x: {},
727
+ y: {}
728
+ };
729
+ this.hic = hic;
730
+ this.errList = errList;
731
+ this.dataFetcher = new DetailDataFetcher(errList);
732
+ this.parent = parent;
733
+ }
734
+ async getFragData(chrx, chry) {
735
+ try {
736
+ const xFragData = await this.dataFetcher.getXFragData(this.hic, this.parent("calcResolution"), chrx);
737
+ if (xFragData) {
738
+ if (!xFragData.items) {
739
+ this.errList.push(`No fragment data returned for ${chrx.chr}:${chrx.start}-${chrx.stop}`);
740
+ return;
741
+ }
742
+ const xParse = new ParseFragData(this.errList, xFragData.items);
743
+ if (this.errList.length) return;
744
+ this.frag.x = {
745
+ id2coord: xParse.id2coord,
746
+ start: xParse.min,
747
+ stop: xParse.max
748
+ };
749
+ const yFragData = await this.dataFetcher.getYFragData(this.hic, chry);
750
+ if (this.errList.length) return;
751
+ if (yFragData) {
752
+ if (!yFragData.items) {
753
+ this.errList.push(`No fragment data returned for ${chry.chr}:${chry.start}-${chry.stop}`);
754
+ return;
755
+ }
756
+ const yParse = new ParseFragData(this.errList, yFragData.items);
757
+ if (this.errList.length) return;
758
+ this.frag.y = {
759
+ id2coord: /* @__PURE__ */ new Map(),
760
+ start: yParse.min,
761
+ stop: yParse.max
762
+ };
763
+ this.determineMap(yParse.id2coord, chrx, chry);
764
+ }
765
+ }
766
+ } catch (e) {
767
+ this.errList.push(e.message || e);
768
+ if (e.stack) console.error(e.stack);
769
+ }
770
+ }
771
+ determineMap(map, chrx, chry) {
772
+ if (chrx.chr == chry.chr) {
773
+ for (const [id, pos] of map) {
774
+ this.frag.x["id2coord"].set(id, pos);
775
+ }
776
+ this.frag.y["id2coord"] = this.frag.x["id2coord"];
777
+ } else {
778
+ this.frag.y["id2coord"] = map;
779
+ }
780
+ }
781
+ async getData(chrx, chry, fragCoords) {
782
+ return await this.dataFetcher.fetchData(
783
+ this.hic,
784
+ this.parent("state")["detail"],
785
+ this.parent("calcResolution"),
786
+ chrx,
787
+ chry,
788
+ fragCoords
789
+ );
790
+ }
791
+ };
792
+
793
+ // tracks/hic/data/DetailCoodinates.ts
794
+ var DetailCoordinates = class {
795
+ constructor(hic, errlist) {
796
+ this.hic = hic;
797
+ this.errlist = errlist;
798
+ }
799
+ getCoordinates(chrx, chry, data, resolution, widthHeightPx, fragData) {
800
+ const isFirstX = new FirstChrX(this.hic.chrorder, chrx.chr, chry.chr).isFirstX();
801
+ const isintrachr = chrx.chr == chry.chr;
802
+ const xpxbp = widthHeightPx / (chrx.stop - chrx.start);
803
+ const ypxbp = widthHeightPx / (chry.stop - chry.start);
804
+ const list = this.calculateCoordinates(isFirstX, isintrachr, xpxbp, ypxbp, resolution, chrx, chry, data, fragData);
805
+ return list;
806
+ }
807
+ calculateCoordinates(isFirstX, isintrachr, xpxbp, ypxbp, resolution, chrx, chry, data, fragData) {
808
+ const list = [];
809
+ for (const [xCoord, yCoord, value] of data.items) {
810
+ let coord1, coord2, span1, span2;
811
+ if (fragData) {
812
+ const idx_start = isFirstX ? xCoord : yCoord;
813
+ const idy_start = isFirstX ? yCoord : xCoord;
814
+ if (fragData.x.id2coord.has(idx_start)) {
815
+ const [a, b] = fragData.x.id2coord.get(idx_start);
816
+ coord1 = a;
817
+ span1 = b - a;
818
+ } else {
819
+ this.errlist.push(`[x id error] x: ${idx_start} y: ${idy_start}`);
820
+ continue;
821
+ }
822
+ {
823
+ const id_stop = idx_start + resolution;
824
+ if (fragData.x.id2coord.has(id_stop)) {
825
+ const ab = fragData.x.id2coord.get(id_stop);
826
+ span1 = ab[1] - coord1;
827
+ }
828
+ }
829
+ if (fragData.y.id2coord.has(idy_start)) {
830
+ const [a, b] = fragData.y.id2coord.get(idy_start);
831
+ coord2 = a;
832
+ span2 = b - a;
833
+ } else {
834
+ this.errlist.push(`[y id error] x: ${idx_start} y: ${idy_start}`);
835
+ continue;
836
+ }
837
+ {
838
+ const id_stop = idy_start + resolution;
839
+ if (fragData.y.id2coord.has(id_stop)) {
840
+ const ab = fragData.y.id2coord.get(id_stop);
841
+ span2 = ab[1] - coord2;
842
+ }
843
+ }
844
+ } else {
845
+ coord1 = isFirstX ? xCoord : yCoord;
846
+ coord2 = isFirstX ? yCoord : xCoord;
847
+ span1 = resolution;
848
+ span2 = resolution;
849
+ }
850
+ if (isintrachr) {
851
+ if (coord1 > chrx.start - span1 && coord1 < chrx.stop && coord2 > chry.start - span2 && coord2 < chry.stop) {
852
+ list.push([
853
+ Math.floor((coord1 - chrx.start) * xpxbp),
854
+ Math.floor((coord2 - chry.start) * ypxbp),
855
+ Math.ceil(span1 * xpxbp),
856
+ Math.ceil(span2 * ypxbp),
857
+ value
858
+ ]);
859
+ }
860
+ if (coord2 > chrx.start - span2 && coord2 < chrx.stop && coord1 > chry.start && coord1 < chry.stop) {
861
+ list.push([
862
+ Math.floor((coord2 - chrx.start) * xpxbp),
863
+ Math.floor((coord1 - chry.start) * ypxbp),
864
+ Math.ceil(span2 * xpxbp),
865
+ Math.ceil(span1 * ypxbp),
866
+ value
867
+ ]);
868
+ }
869
+ continue;
870
+ }
871
+ list.push([
872
+ Math.floor((coord1 - chrx.start) * xpxbp),
873
+ Math.floor((coord2 - chry.start) * ypxbp),
874
+ Math.ceil(span1 * xpxbp),
875
+ Math.ceil(span2 * ypxbp),
876
+ value
877
+ ]);
878
+ }
879
+ return list;
880
+ }
881
+ };
882
+
883
+ // tracks/hic/detail/DetailView.ts
884
+ var DetailView = class {
885
+ constructor(opts) {
886
+ this.calcResolution = null;
887
+ /** Defaults **/
888
+ this.binpx = 2;
889
+ this.bbmargin = 1;
890
+ this.app = opts.app;
891
+ this.hic = opts.hic;
892
+ this.plotDiv = opts.plotDiv;
893
+ this.sheath = opts.plotDiv.yAxis.append("div").style("position", "relative").style("width", "200px").style("height", "800px");
894
+ this.rotor = this.sheath.append("div").style("position", "absolute").style("bottom", "0px").style("transform", "rotate(-90deg)").style("transform-origin", "left bottom");
895
+ this.data = opts.data;
896
+ this.parent = opts.parent;
897
+ this.errList = this.parent("errList");
898
+ this.resolution = new Resolution(opts.error);
899
+ this.colorizeElement = new ColorizeElement();
900
+ this.viewRangeBpW = this.resolution.getDefaultViewSpan(
901
+ this.hic,
902
+ this.parent("state").x,
903
+ this.parent("state").y,
904
+ this.parent("state").initialBinNum,
905
+ this.parent("state").minBinNum_bp
906
+ );
907
+ this.dataMapper = new DetailDataMapper(this.hic, opts.error, opts.parent);
908
+ this.coordinates = new DetailCoordinates(this.hic, this.errList);
909
+ }
910
+ renderCanvas(blockwidth) {
911
+ this.canvasHolder = this.plotDiv.plot.append("div").style("position", "relative").style("width", `${this.xBlock.bbw}px`).style("height", `${this.yBlock.bbw}px`).style("overflow", "hidden");
912
+ this.canvas = this.canvasHolder.append("canvas").style("display", "block").style("position", "absolute").attr("data-testid", "sjpp-hic-detail-canvas").attr("width", blockwidth).attr("height", blockwidth).on("mousedown", (event) => {
913
+ const body = select_default(document.body);
914
+ const x = event.clientX;
915
+ const y = event.clientY;
916
+ const oldx = Number.parseInt(this.canvas.style("left"));
917
+ const oldy = Number.parseInt(this.canvas.style("top"));
918
+ body.on("mousemove", (event2) => {
919
+ const xoff = event2.clientX - x;
920
+ const yoff = event2.clientY - y;
921
+ this.xBlock.block.panning(xoff);
922
+ this.yBlock.block.panning(yoff);
923
+ this.canvas.style("left", `${oldx + xoff}px`).style("top", `${oldy + yoff}px`);
924
+ });
925
+ body.on("mouseup", (event2) => {
926
+ body.on("mousemove", null).on("mouseup", null);
927
+ const xoff = event2.clientX - x;
928
+ const yoff = event2.clientY - y;
929
+ this.xBlock.block.pannedby(xoff);
930
+ this.yBlock.block.pannedby(yoff);
931
+ });
932
+ });
933
+ }
934
+ async render() {
935
+ this.calcResolution = this.parent("calcResolution");
936
+ const state = this.parent("state");
937
+ this.xBlock = new DetailBlock(
938
+ this.app,
939
+ this.hic,
940
+ state.settings.widthHeightPx,
941
+ this.bbmargin,
942
+ this.plotDiv.xAxis,
943
+ false
944
+ );
945
+ this.yBlock = new DetailBlock(this.app, this.hic, state.settings.widthHeightPx, this.bbmargin, this.rotor, true);
946
+ this.renderCanvas(state.settings.widthHeightPx);
947
+ await this.xBlock.loadBlock(state.x, this.canvasHolder, this.canvas);
948
+ await this.yBlock.loadBlock(state.y, this.canvasHolder, this.canvas, this.sheath);
949
+ this.update(this.data);
950
+ }
951
+ async update(data) {
952
+ if (data.items.length == 0) {
953
+ this.app.dispatch({ type: "loading_active", active: false });
954
+ return;
955
+ }
956
+ this.data = data;
957
+ const state = this.parent("state");
958
+ const initialWidth = Number.parseInt(this.canvas.attr("width"));
959
+ const holderChange = Number.parseInt(this.canvasHolder.style("width")) - initialWidth + state.settings.widthHeightPx;
960
+ this.canvasHolder.style("width", `${holderChange}px`).style("height", `${holderChange}px`);
961
+ this.canvas.attr("width", `${state.settings.widthHeightPx}px`).attr("height", `${state.settings.widthHeightPx}px`);
962
+ if (this.xBlock.block.width != state.settings.widthHeightPx) {
963
+ this.xBlock.block.width = state.settings.widthHeightPx;
964
+ this.yBlock.block.width = state.settings.widthHeightPx;
965
+ this.xBlock.block.zoom2px(0, initialWidth);
966
+ this.yBlock.block.zoom2px(0, initialWidth);
967
+ }
968
+ this.ctx = this.canvas.node().getContext("2d");
969
+ const coords = this.coordinates.getCoordinates(
970
+ state.x,
971
+ state.y,
972
+ this.parent("data"),
973
+ this.parent("calcResolution"),
974
+ state.settings.widthHeightPx,
975
+ this.parent("fragData")
976
+ );
977
+ this.coords = coords;
978
+ this.ctx.clearRect(0, 0, state.settings.widthHeightPx, state.settings.widthHeightPx);
979
+ for (const [xCoord, yCoord, width, height, value] of this.coords) {
980
+ this.colorizeElement.colorizeElement(
981
+ xCoord,
982
+ yCoord,
983
+ value,
984
+ this.ctx,
985
+ width,
986
+ height,
987
+ this.parent("min"),
988
+ this.parent("max"),
989
+ "detail"
990
+ );
991
+ }
992
+ this.app.dispatch({ type: "loading_active", active: false });
993
+ }
994
+ };
995
+
996
+ // tracks/hic/axes/Chromosome.ts
997
+ var Chromosome = class {
998
+ constructor(chr, width) {
999
+ this.label = chr;
1000
+ this.width = width;
1001
+ }
1002
+ };
1003
+
1004
+ // tracks/hic/grid/Grid.ts
1005
+ var Grid = class _Grid {
1006
+ constructor(chrlst, resolution, chrlookup, binpx) {
1007
+ this.chromosomeMatrix = /* @__PURE__ */ new Map();
1008
+ this.chromosomeList = [];
1009
+ this.xoff = 0;
1010
+ this.yoff = 0;
1011
+ this.chr2px = [];
1012
+ this.chrlst = chrlst;
1013
+ let totalpx = this.chrlst.length;
1014
+ for (const chr of this.chrlst) {
1015
+ const w = Math.ceil(chrlookup[chr.toUpperCase()].len / resolution) * binpx;
1016
+ const chromosome = new Chromosome(chr, w);
1017
+ this.chromosomeList.push(chromosome);
1018
+ this.chr2px[chr] = w;
1019
+ totalpx += w;
1020
+ }
1021
+ this.totalpx = totalpx;
1022
+ for (let i = 0; i < this.chrlst.length; i++) {
1023
+ const chrx = this.chrlst[i];
1024
+ this.chromosomeMatrix.set(chrx, /* @__PURE__ */ new Map());
1025
+ let yoff = 0;
1026
+ for (let j = 0; j <= i; j++) {
1027
+ const chry = this.chrlst[j];
1028
+ const chrxChrLen = chrlookup[chrx.toUpperCase()].len;
1029
+ const chryChrLen = chrlookup[chry.toUpperCase()].len;
1030
+ const xbins = Math.ceil(chrxChrLen / resolution) * binpx;
1031
+ const ybins = Math.ceil(chryChrLen / resolution) * binpx;
1032
+ this.chromosomeMatrix.get(chrx).set(chry, {
1033
+ x: this.xoff,
1034
+ y: yoff,
1035
+ xbins,
1036
+ ybins,
1037
+ data: []
1038
+ //Empty array of data to fill later
1039
+ });
1040
+ yoff += this.chr2px[chry] + _Grid.borderWidth;
1041
+ }
1042
+ this.yoff = yoff;
1043
+ this.xoff += this.chr2px[chrx] + _Grid.borderWidth;
1044
+ }
1045
+ }
1046
+ static {
1047
+ this.checkerFill = "#DEF3FA";
1048
+ }
1049
+ static {
1050
+ this.spaceColor = "#CCC";
1051
+ }
1052
+ static {
1053
+ this.fontSize = 15;
1054
+ }
1055
+ static {
1056
+ this.font = font;
1057
+ }
1058
+ static {
1059
+ this.borderWidth = 1;
1060
+ }
1061
+ static {
1062
+ this.defaultChrLabWidth = 100;
1063
+ }
1064
+ };
1065
+
1066
+ // tracks/hic/viewmodel/GridViewModel.ts
1067
+ var GridViewModel = class {
1068
+ constructor(opts) {
1069
+ this.grid = new Grid(opts.hic.chrlst, opts.resolution || opts.hic.bpresolution[0], opts.hic.genome.chrlookup, 1);
1070
+ }
1071
+ };
1072
+
1073
+ // tracks/hic/grid/GridRenderer.ts
1074
+ var GridRenderer = class {
1075
+ constructor(svg, layerMap, layerSv, grid) {
1076
+ this.svg = svg;
1077
+ this.layerMap = layerMap.attr("transform", `translate(${Grid.defaultChrLabWidth}, ${Grid.fontSize})`);
1078
+ this.layerSv = layerSv.attr("transform", `translate(${Grid.defaultChrLabWidth}, ${Grid.fontSize})`);
1079
+ this.grid = grid;
1080
+ }
1081
+ render() {
1082
+ this.renderAxisX(this.grid);
1083
+ this.renderAxisY(this.grid);
1084
+ this.svg.attr("width", Grid.defaultChrLabWidth + this.grid.xoff).attr("height", Grid.fontSize + this.grid.yoff);
1085
+ }
1086
+ renderAxisX(grid) {
1087
+ let xoff = 0;
1088
+ this.grid.chromosomeList.forEach((chr, index) => {
1089
+ const chrw = chr.width;
1090
+ if (index % 2 === 0) {
1091
+ this.layerMap.append("rect").attr("x", xoff).attr("width", chrw).attr("height", Grid.fontSize).attr("y", -Grid.fontSize).attr("fill", Grid.checkerFill);
1092
+ }
1093
+ this.layerMap.append("text").attr("data-testid", `sjpp-hic-chr-xAxis-label`).attr("font-family", Grid.font).attr("text-anchor", "middle").attr("font-size", 12).attr("x", xoff + chrw / 2).text(chr.label);
1094
+ xoff += chrw;
1095
+ this.layerSv.append("line").attr("x1", xoff).attr("x2", xoff).attr("y2", grid.totalpx).attr("stroke", Grid.spaceColor).attr("shape-rendering", "crispEdges");
1096
+ xoff += Grid.borderWidth;
1097
+ });
1098
+ }
1099
+ renderAxisY(grid) {
1100
+ let yoff = 0;
1101
+ this.grid.chromosomeList.forEach((chr, index) => {
1102
+ const chrh = chr.width;
1103
+ if (index % 2 === 0) {
1104
+ this.layerMap.append("rect").attr("x", -Grid.defaultChrLabWidth).attr("width", Grid.defaultChrLabWidth).attr("height", chrh).attr("y", yoff).attr("fill", Grid.checkerFill);
1105
+ }
1106
+ this.layerMap.append("text").attr("data-testid", `sjpp-hic-chr-yAxis-label`).attr("font-family", Grid.font).attr("text-anchor", "end").attr("dominant-baseline", "central").attr("font-size", 12).attr("y", yoff + chrh / 2).text(chr.label);
1107
+ yoff += chrh;
1108
+ this.layerSv.append("line").attr("x2", grid.totalpx).attr("y1", yoff).attr("y2", yoff).attr("stroke", Grid.spaceColor).attr("shape-rendering", "crispEdges");
1109
+ yoff += Grid.borderWidth;
1110
+ });
1111
+ }
1112
+ };
1113
+
1114
+ // tracks/hic/genome/ChrsTooltips.ts
1115
+ var ChrsTooltips = class {
1116
+ constructor() {
1117
+ this.chrx_tip = new Menu({ border: "solid 1px #ccc", padding: "0px", offsetX: 0, offsetY: 0 });
1118
+ this.chry_tip = new Menu({ border: "solid 1px #ccc", padding: "0px", offsetX: 0, offsetY: 0 });
1119
+ }
1120
+ render(img, chrx, chry) {
1121
+ const p = img.node().getBoundingClientRect();
1122
+ this.chrx_tip.clear().show(p.left, p.top).d.style("top", null).attr("data-testid", "sjpp-hic-chrx-tooltip").style("bottom", window.innerHeight - p.top - window.pageYOffset + "px").text(chrx);
1123
+ this.chry_tip.clear().show(p.left, p.top).d.style("left", null).attr("data-testid", "sjpp-hic-chry-tooltip").style("right", document.body.clientWidth - p.left - window.pageXOffset + "px").text(chry);
1124
+ }
1125
+ };
1126
+
1127
+ // tracks/hic/grid/GridElementRenderer.ts
1128
+ var GridElementRenderer = class {
1129
+ constructor(layerMap, app) {
1130
+ this.app = app;
1131
+ this.layerMap = layerMap;
1132
+ this.tooltips = new ChrsTooltips();
1133
+ }
1134
+ render(obj, lead, follow, holder) {
1135
+ obj.canvas = holder.append("canvas").style("display", "none").node();
1136
+ obj.ctx = obj.canvas.getContext("2d");
1137
+ obj.canvas.width = obj.xbins;
1138
+ obj.canvas.height = obj.ybins;
1139
+ obj.img = this.layerMap.append("image").attr("width", obj.canvas.width).attr("height", obj.canvas.height).attr("x", obj.x).attr("y", obj.y).on("click", async () => {
1140
+ await this.app.dispatch({
1141
+ type: "view_create",
1142
+ view: "chrpair",
1143
+ config: {
1144
+ x: {
1145
+ chr: lead
1146
+ },
1147
+ y: {
1148
+ chr: follow
1149
+ }
1150
+ }
1151
+ });
1152
+ }).on("mouseover", () => {
1153
+ this.tooltips.render(obj.img, lead, follow);
1154
+ });
1155
+ if (lead != follow) {
1156
+ obj.canvas2 = holder.append("canvas").style("display", "none").node();
1157
+ obj.canvas2.width = obj.ybins;
1158
+ obj.canvas2.height = obj.xbins;
1159
+ obj.ctx2 = obj.canvas2.getContext("2d");
1160
+ obj.img2 = this.layerMap.append("image").attr("width", obj.canvas2.width).attr("height", obj.canvas2.height).attr("x", obj.y).attr("y", obj.x).on("click", async () => {
1161
+ await this.app.dispatch({
1162
+ type: "view_create",
1163
+ view: "chrpair",
1164
+ config: {
1165
+ x: {
1166
+ chr: follow
1167
+ },
1168
+ y: {
1169
+ chr: lead
1170
+ }
1171
+ }
1172
+ });
1173
+ }).on("mouseover", () => {
1174
+ this.tooltips.render(obj.img2, follow, lead);
1175
+ });
1176
+ } else {
1177
+ obj.ctx2 = obj.ctx;
1178
+ }
1179
+ }
1180
+ };
1181
+
1182
+ // tracks/hic/grid/GridElementsRenderer.ts
1183
+ var GridElementsRenderer = class {
1184
+ constructor(grid, layerMap, app) {
1185
+ this.grid = grid;
1186
+ this.gridElementRenderer = new GridElementRenderer(layerMap, app);
1187
+ }
1188
+ render(holder) {
1189
+ for (const [chrx, chryMap] of this.grid.chromosomeMatrix) {
1190
+ for (const [chry, gridElem] of chryMap) {
1191
+ this.gridElementRenderer.render(gridElem, chrx, chry, holder);
1192
+ }
1193
+ }
1194
+ }
1195
+ };
1196
+
1197
+ // tracks/hic/genome/GenomeView.ts
1198
+ var GenomeView = class {
1199
+ constructor(opts) {
1200
+ /** Dom */
1201
+ this.tip = new Menu();
1202
+ this.pica_x = new Menu({ border: "solid 1px #ccc", padding: "0px", offsetX: 0, offsetY: 0 });
1203
+ this.pica_y = new Menu({ border: "solid 1px #ccc", padding: "0px", offsetX: 0, offsetY: 0 });
1204
+ /** Data */
1205
+ /** px width for each chr */
1206
+ this.chr2px = {};
1207
+ this.lead2follow = /* @__PURE__ */ new Map();
1208
+ this.values = [];
1209
+ /** Defaults */
1210
+ this.defaultChrLabWidth = 100;
1211
+ this.borderwidth = 1;
1212
+ this.default_maxVPerc = 5;
1213
+ this.fontsize = 15;
1214
+ this.xoff = 0;
1215
+ this.yoff = 0;
1216
+ this.binpx = 1;
1217
+ this.atdev_chrnum = 8;
1218
+ this.min = 0;
1219
+ this.max = 0;
1220
+ this.app = opts.app;
1221
+ this.hic = opts.hic;
1222
+ this.plotDiv = opts.plotDiv;
1223
+ this.data = opts.data;
1224
+ this.parent = opts.parent;
1225
+ this.resolution = opts.resolution || opts.hic.bpresolution[0];
1226
+ this.svg = this.plotDiv.plot.append("svg").attr("data-testid", "sjpp-hic-genome-svg");
1227
+ this.layer_map = this.svg.append("g").attr("data-testid", "sjpp-hic-layerMap-g");
1228
+ this.layer_sv = this.svg.append("g").attr("data-testid", "sjpp-hic-layerSv-g");
1229
+ this.colorizeElement = new ColorizeElement();
1230
+ this.viewModel = new GridViewModel(opts);
1231
+ this.viewRender = new GridRenderer(this.svg, this.layer_map, this.layer_sv, this.viewModel.grid);
1232
+ this.gridElementsRenderer = new GridElementsRenderer(this.viewModel.grid, this.layer_map, this.app);
1233
+ this.gridFormattedData = new GridElementsFormattedData();
1234
+ }
1235
+ makeSv() {
1236
+ const unknownchr = /* @__PURE__ */ new Set();
1237
+ const radius = 8;
1238
+ for (const item of this.hic.sv.items) {
1239
+ const _o = this.lead2follow.get(item.chr1);
1240
+ if (!_o) {
1241
+ unknownchr.add(item.chr1);
1242
+ continue;
1243
+ }
1244
+ const obj = _o.get(item.chr2);
1245
+ if (!obj) {
1246
+ unknownchr.add(item.chr2);
1247
+ continue;
1248
+ }
1249
+ const p1 = item.position1 / this.resolution;
1250
+ const p2 = item.position2 / this.resolution;
1251
+ this.layer_sv.append("circle").attr("data-testid", "sjpp-hic-genome-view-sv-circle").attr("stroke", "black").attr("fill", "white").attr("fill-opacity", 0).attr("cx", obj.x + p1).attr("cy", obj.y + p2).attr("r", radius).on("mouseover", (event) => {
1252
+ this.tooltipSv(event, item);
1253
+ }).on("mouseout", () => {
1254
+ this.tip.hide();
1255
+ }).on("click", () => {
1256
+ this.clickSv(item);
1257
+ });
1258
+ if (obj.img2) {
1259
+ this.layer_sv.append("circle").attr("data-testid", "sjpp-hic-genome-view-sv-circle-2").attr("stroke", "black").attr("fill", "white").attr("fill-opacity", 0).attr("cy", obj.x + p1).attr("cx", obj.y + p2).attr("r", radius).on("mouseover", (event) => {
1260
+ this.tooltipSv(event, item);
1261
+ }).on("mouseout", () => {
1262
+ this.tip.hide();
1263
+ }).on("click", () => {
1264
+ this.clickSv(item);
1265
+ });
1266
+ }
1267
+ }
1268
+ }
1269
+ tooltipSv(event, item) {
1270
+ this.tip.clear().show(event.clientX, event.clientY).d.append("div").text(
1271
+ item.chr1 == item.chr2 ? `${item.chr1}:${item.position1}-${item.position2}` : `${item.chr1}:${item.position1}>${item.chr2}:${item.position2}`
1272
+ );
1273
+ }
1274
+ clickSv(item) {
1275
+ const default_svpointspan = 5e5;
1276
+ const default_subpanelpxwidth = 600;
1277
+ const subpanel_bordercolor = "rgba(200,0,0,.1)";
1278
+ const pane = newpane({ x: 100, y: 100 });
1279
+ pane.header.text(
1280
+ this.hic.name + " " + (item.chr1 == item.chr2 ? `${item.chr1}:${item.position1}-${item.position2}` : `${item.chr1}:${item.position1}>${item.chr2}:${item.position2}`)
1281
+ );
1282
+ const tracks = [
1283
+ {
1284
+ type: tkt.hicstraw,
1285
+ file: this.hic.file,
1286
+ enzyme: this.hic.enzyme,
1287
+ maxpercentage: this.default_maxVPerc,
1288
+ pyramidup: 1,
1289
+ name: this.hic.name
1290
+ }
1291
+ ];
1292
+ if (this.hic.tklst) {
1293
+ for (const t of this.hic.tklst) {
1294
+ tracks.push(t);
1295
+ }
1296
+ }
1297
+ first_genetrack_tolist(this.hic.genome, tracks);
1298
+ const arg = {
1299
+ holder: pane.body,
1300
+ hostURL: this.hic.hostURL,
1301
+ jwt: this.hic.jwt,
1302
+ genome: this.hic.genome,
1303
+ nobox: 1,
1304
+ tklst: tracks
1305
+ };
1306
+ if (item.chr1 == item.chr2 && Math.abs(item.position2 - item.position1) < default_svpointspan * 2) {
1307
+ arg.chr = item.chr1;
1308
+ const w = Math.abs(item.position2 - item.position1);
1309
+ arg.start = Math.max(1, Math.min(item.position1, item.position2) - w);
1310
+ arg.stop = Math.min(
1311
+ this.hic.genome.chrlookup[item.chr1.toUpperCase()].len,
1312
+ Math.max(item.position1, item.position2) + w
1313
+ );
1314
+ } else {
1315
+ arg.chr = item.chr1;
1316
+ arg.start = Math.max(1, item.position1 - default_svpointspan / 2);
1317
+ arg.stop = Math.min(
1318
+ this.hic.genome.chrlookup[item.chr1.toUpperCase()].len,
1319
+ item.position1 + default_svpointspan / 2
1320
+ );
1321
+ arg.width = default_subpanelpxwidth;
1322
+ arg.subpanels = [
1323
+ {
1324
+ chr: item.chr2,
1325
+ start: Math.max(1, item.position2 - default_svpointspan / 2),
1326
+ stop: Math.min(
1327
+ this.hic.genome.chrlookup[item.chr2.toUpperCase()].len,
1328
+ item.position2 + default_svpointspan / 2
1329
+ ),
1330
+ width: default_subpanelpxwidth,
1331
+ leftpad: 10,
1332
+ leftborder: subpanel_bordercolor
1333
+ }
1334
+ ];
1335
+ }
1336
+ blocklazyload(arg);
1337
+ }
1338
+ render() {
1339
+ this.viewRender.render();
1340
+ this.gridElementsRenderer.render(this.hic.holder);
1341
+ if (this.hic.sv && this.hic.sv.items) {
1342
+ this.makeSv();
1343
+ }
1344
+ this.update(this.data);
1345
+ }
1346
+ update(data) {
1347
+ this.data = data;
1348
+ this.min = this.parent("min");
1349
+ this.max = this.parent("max");
1350
+ for (const data2 of this.data) {
1351
+ if (!this.hic.chrlst.includes(data2.lead) || !this.hic.chrlst.includes(data2.follow)) continue;
1352
+ const obj = this.viewModel.grid.chromosomeMatrix.get(data2.lead).get(data2.follow);
1353
+ if (!obj) continue;
1354
+ obj.ctx.clearRect(0, 0, obj.canvas.width, obj.canvas.height);
1355
+ if (obj.canvas2) {
1356
+ obj.ctx2.clearRect(0, 0, obj.canvas2.width, obj.canvas.height);
1357
+ }
1358
+ obj.data = this.gridFormattedData.formatData("genome", data2.items, this.binpx, this.resolution);
1359
+ for (const [xPx, yPx, value] of obj.data) {
1360
+ this.colorizeElement.colorizeElement(xPx, yPx, value, obj, this.binpx, this.binpx, this.min, this.max, "genome");
1361
+ }
1362
+ obj.img.attr("xlink:href", obj.canvas.toDataURL());
1363
+ if (obj.canvas2) {
1364
+ obj.img2.attr("xlink:href", obj.canvas2.toDataURL());
1365
+ }
1366
+ }
1367
+ this.app.dispatch({ type: "loading_active", active: false });
1368
+ }
1369
+ };
1370
+
1371
+ // tracks/hic/controls/NormalizationMethodControl.ts
1372
+ var NormalizationMethodControl = class {
1373
+ constructor(holder, normalization, defaultNmeth, callback) {
1374
+ this.holder = holder;
1375
+ this.normalization = normalization;
1376
+ this.defaultNmeth = defaultNmeth;
1377
+ this.callback = callback;
1378
+ }
1379
+ render() {
1380
+ if (!this.normalization?.length) {
1381
+ this.nmethSelect = this.holder.text(this.defaultNmeth);
1382
+ } else {
1383
+ this.nmethSelect = this.holder.attr("data-testid", "sjpp-hic-nmeth-select").style("margin-right", "10px").append("select").on("change", async () => {
1384
+ const nmeth = this.nmethSelect.node().value;
1385
+ this.callback(nmeth, "nmeth");
1386
+ });
1387
+ for (const n of this.normalization) {
1388
+ this.nmethSelect.append("option").text(n);
1389
+ }
1390
+ }
1391
+ }
1392
+ update(option) {
1393
+ const options = this.nmethSelect.node().options;
1394
+ if (!options) return;
1395
+ const selectedNmeth = Array.from(options).find((o) => o.value === option);
1396
+ if (!selectedNmeth) throw `Invalid normalization method: ${option}`;
1397
+ selectedNmeth.selected = true;
1398
+ }
1399
+ };
1400
+
1401
+ // tracks/hic/controls/CutoffControl.ts
1402
+ var CutoffControl = class {
1403
+ constructor(holder, value, callback) {
1404
+ this.holder = holder;
1405
+ this.value = value;
1406
+ this.callback = callback;
1407
+ }
1408
+ render(opts) {
1409
+ const cutoffDiv = this.holder.attr("data-testid", "sjpp-hic-cutoff-control").style("margin-right", "10px").append("input").attr("type", "number").style("width", opts && "width" in opts ? opts.width : "80px").style("margin-left", "0px").attr("type", "number").property("value", this.value).on("keyup", async (event) => {
1410
+ if (event.code != "Enter") return;
1411
+ const v = event.target.value;
1412
+ this.callback(v);
1413
+ });
1414
+ return cutoffDiv;
1415
+ }
1416
+ };
1417
+
1418
+ // tracks/hic/controls/MatrixTypeControl.ts
1419
+ var MatrixTypeControl = class {
1420
+ constructor(holder, callback) {
1421
+ this.values = [
1422
+ { label: "Observed", value: "observed" },
1423
+ { label: "Expected", value: "expected" },
1424
+ { label: "Observed/Expected", value: "oe" },
1425
+ { label: "Log(Observed/Expected)", value: "log(oe)" }
1426
+ // TODO: add server side logic to support these options
1427
+ // { label: 'Log(Observed + 1)', value: 'log(obs+1)'},
1428
+ // { label: 'Observed Pearson', value: 'op'}
1429
+ ];
1430
+ this.holder = holder;
1431
+ this.callback = callback;
1432
+ }
1433
+ render() {
1434
+ this.matrixSelect = this.holder.attr("data-testid", "sjpp-hic-matrix-type-select").style("margin-right", "10px").append("select").on("change", async () => {
1435
+ this.callback(this.matrixSelect.node().value, "matrixType");
1436
+ });
1437
+ for (const matrixType of this.values) {
1438
+ this.matrixSelect.append("option").text(matrixType.label).attr("value", matrixType.value);
1439
+ }
1440
+ }
1441
+ update(option) {
1442
+ const options = this.matrixSelect.node().options;
1443
+ if (!options) return;
1444
+ const selectedNmeth = Array.from(options).find((o) => o.value === option);
1445
+ if (!selectedNmeth) throw `Invalid normalization method: ${option}`;
1446
+ selectedNmeth.selected = true;
1447
+ }
1448
+ };
1449
+
1450
+ // tracks/hic/controls/ControlPanel.ts
1451
+ var ControlPanel = class _ControlPanel {
1452
+ constructor(opts) {
1453
+ this.zoomBlockCallback = (bool) => {
1454
+ const detailView = this.parent("detail");
1455
+ detailView.xBlock.block.zoomblock(2, bool);
1456
+ detailView.yBlock.block.zoomblock(2, bool);
1457
+ };
1458
+ this.minCallback = (v) => {
1459
+ if (Number(v) > Number(this.parent("max"))) {
1460
+ this.error("Min cutoff cannot be greater than max cutoff");
1461
+ } else {
1462
+ this.parent("min", Number(v));
1463
+ this.reColorHeatmap();
1464
+ this.parent("infoBar").update();
1465
+ }
1466
+ };
1467
+ this.maxCallback = (v) => {
1468
+ if (Number(v) < Number(this.parent("min"))) {
1469
+ this.error(`Max cutoff cannot be less than min cutoff`);
1470
+ } else if (Number(v) < 0) {
1471
+ this.error(`Max cutoff cannot be less than 0`);
1472
+ } else {
1473
+ this.parent("max", Number(v));
1474
+ this.reColorHeatmap();
1475
+ this.parent("infoBar").update();
1476
+ }
1477
+ };
1478
+ this.reColorHeatmap = () => {
1479
+ if (this.parent("activeView") == "genome") {
1480
+ const genomeView = this.parent("genome");
1481
+ const chrMatrix = genomeView.viewRender.grid.chromosomeMatrix;
1482
+ if (!chrMatrix) return;
1483
+ for (const map of chrMatrix) {
1484
+ const yMap = map[1];
1485
+ for (const obj of yMap) {
1486
+ const canvasObj = obj[1];
1487
+ if (!canvasObj) continue;
1488
+ for (const [leadpx, followpx, val] of canvasObj.data) {
1489
+ this.colorizeElement.colorizeElement(
1490
+ leadpx,
1491
+ followpx,
1492
+ val,
1493
+ canvasObj,
1494
+ 1,
1495
+ 1,
1496
+ this.parent("min"),
1497
+ this.parent("max"),
1498
+ "genome"
1499
+ );
1500
+ }
1501
+ canvasObj.img.attr("xlink:href", canvasObj.canvas.toDataURL());
1502
+ if (canvasObj.canvas2) {
1503
+ canvasObj.img2.attr("xlink:href", canvasObj.canvas2.toDataURL());
1504
+ }
1505
+ }
1506
+ }
1507
+ } else if (this.parent("activeView") == "chrpair") {
1508
+ const view = this.parent("chrpair");
1509
+ for (const [xCoord, yCoord, val] of view.data) {
1510
+ this.colorizeElement.colorizeElement(
1511
+ xCoord,
1512
+ yCoord,
1513
+ val,
1514
+ view.ctx,
1515
+ view.binpx,
1516
+ view.binpx,
1517
+ this.parent("min"),
1518
+ this.parent("max"),
1519
+ "chrpair"
1520
+ );
1521
+ }
1522
+ } else if (this.parent("activeView") == "detail") {
1523
+ const view = this.parent("detail");
1524
+ for (const [xCoord, yCoord, width, height, value] of view.coords) {
1525
+ this.colorizeElement.colorizeElement(
1526
+ xCoord,
1527
+ yCoord,
1528
+ value,
1529
+ view.ctx,
1530
+ width,
1531
+ height,
1532
+ this.parent("min"),
1533
+ this.parent("max"),
1534
+ "detail"
1535
+ );
1536
+ }
1537
+ }
1538
+ };
1539
+ this.dropdownCallback = (v, prop) => {
1540
+ const state = this.app.getState();
1541
+ this.app.dispatch({
1542
+ type: "view_update",
1543
+ view: state.currView,
1544
+ config: { [prop]: v }
1545
+ });
1546
+ };
1547
+ this.type = _ControlPanel.type;
1548
+ this.controls = {};
1549
+ this.app = opts.app;
1550
+ this.controlsDiv = opts.controlsDiv;
1551
+ this.hic = opts.hic;
1552
+ this.colorizeElement = new ColorizeElement();
1553
+ this.parent = opts.parent;
1554
+ this.error = opts.error;
1555
+ }
1556
+ static {
1557
+ this.type = "controlPanel";
1558
+ }
1559
+ getState(appState) {
1560
+ return appState;
1561
+ }
1562
+ addLabel(tr, text) {
1563
+ return tr.append("td").style("color", "#858585").style("font-size", ".8em").style("vertical-align", text.toUpperCase() == "VIEW" ? "top" : "middle").text(text.toUpperCase());
1564
+ }
1565
+ init() {
1566
+ const state = this.app.getState();
1567
+ const menuWrapper = this.controlsDiv.attr("data-testid", "sjpp-hic-control-panel").style("background", "rgb(253, 250, 244)").style("vertical-align", "top").style("padding", "5px").style("border", "solid 0.5px #ccc");
1568
+ let menuVisible = true;
1569
+ this.controlsDiv.append("button").attr("data-testid", "sjpp-hic-burger-btn").style("display", "block").style("border", "none").style("font-size", "1.5em").style("background", "none").html("&#8801;").on("click", () => {
1570
+ menuVisible = !menuVisible;
1571
+ menu.style("display", menuVisible ? "block" : "none");
1572
+ });
1573
+ const menu = menuWrapper.append("div").attr("class", "sjpp-hic-menu").attr("data-testid", "sjpp-hic-menu").style("display", menuVisible ? "block" : "none");
1574
+ const menuTable = menu.append("table").style("border-spacing", "3px");
1575
+ this.controls.normalizationRow = menuTable.append("tr");
1576
+ this.addLabel(this.controls.normalizationRow, "NORMALIZATION");
1577
+ this.controls.nmeth = new NormalizationMethodControl(
1578
+ this.controls.normalizationRow.append("td").attr("class", "sjpp-nmeth-select"),
1579
+ this.hic.normalization,
1580
+ state.defaultNmeth,
1581
+ this.dropdownCallback
1582
+ );
1583
+ this.controls.nmeth.render();
1584
+ this.controls.minCutoffRow = menuTable.append("tr");
1585
+ this.controls.minCutoffLabel = this.addLabel(this.controls.minCutoffRow, "");
1586
+ this.controls.inputBpMinV = new CutoffControl(
1587
+ this.controls.minCutoffRow.append("td"),
1588
+ this.parent("min"),
1589
+ this.minCallback
1590
+ ).render({ width: "120px" });
1591
+ this.controls.maxCutoffRow = menuTable.append("tr");
1592
+ this.controls.maxCutoffLabel = this.addLabel(this.controls.maxCutoffRow, "");
1593
+ this.controls.inputBpMaxV = new CutoffControl(
1594
+ this.controls.maxCutoffRow.append("td"),
1595
+ this.parent("max"),
1596
+ this.maxCallback
1597
+ ).render({ width: "120px" });
1598
+ this.controls.matrixTypeRow = menuTable.append("tr");
1599
+ this.addLabel(this.controls.matrixTypeRow, "matrix type");
1600
+ this.controls.matrixType = new MatrixTypeControl(this.controls.matrixTypeRow.append("td"), this.dropdownCallback);
1601
+ this.controls.matrixType.render();
1602
+ this.controls.widthRow = menuTable.append("tr");
1603
+ this.addLabel(this.controls.widthRow, "WIDTH / height");
1604
+ this.controls.width = this.controls.widthRow.append("td");
1605
+ this.controls.width.attr("data-testid", "sjpp-hic-block-size-input").style("margin-right", "10px").append("input").attr("type", "number").style("width", "80px").style("margin-left", "0px").attr("type", "number").property("value", state.width).on("keyup", async (event) => {
1606
+ if (event.code != "Enter") return;
1607
+ const v = event.target.value;
1608
+ this.app.dispatch({
1609
+ type: "view_update",
1610
+ config: {
1611
+ settings: { widthHeightPx: Number.parseInt(v) }
1612
+ }
1613
+ });
1614
+ });
1615
+ const viewRow = menuTable.append("tr");
1616
+ this.addLabel(viewRow, "VIEW");
1617
+ const viewBtnDiv = viewRow.append("td");
1618
+ this.controls.view = viewBtnDiv.append("span").attr("data-testid", "sjpp-hic-view-span").style("padding-right", "5px").style("display", "block");
1619
+ this.controls.genomeViewBtn = viewBtnDiv.append("button").attr("data-testid", "sjpp-hic-genome-view-btn").style("display", "none").style("padding", "2px").style("margin-top", "4px").html("&#8810; Genome").on("click", async () => {
1620
+ await this.app.dispatch({
1621
+ type: "view_create",
1622
+ view: "genome",
1623
+ config: {
1624
+ x: {},
1625
+ y: {}
1626
+ }
1627
+ });
1628
+ });
1629
+ this.controls.chrpairViewBtn = viewBtnDiv.append("button").attr("data-testid", "sjpp-hic-chrpair-view-btn").style("display", "none").style("padding", "2px").style("margin", "4px 0px").on("click", async () => {
1630
+ const currState = this.app.getState();
1631
+ await this.app.dispatch({
1632
+ type: "view_create",
1633
+ view: "chrpair",
1634
+ config: {
1635
+ x: {
1636
+ chr: currState.x.chr
1637
+ },
1638
+ y: {
1639
+ chr: currState.y.chr
1640
+ }
1641
+ }
1642
+ });
1643
+ });
1644
+ this.controls.horizontalViewBtn = viewBtnDiv.append("button").attr("data-testid", "sjpp-hic-horizontal-view-btn").style("display", "none").style("padding", "2px").style("margin", "4px 0px").html("Horizontal View &#8811;").on("click", async () => {
1645
+ await this.app.dispatch({
1646
+ type: "view_create",
1647
+ view: "horizontal"
1648
+ });
1649
+ });
1650
+ this.controls.detailViewBtn = viewBtnDiv.append("button").attr("data-testid", "sjpp-hic-detail-view-btn").style("display", "none").style("padding", "2px").style("margin", "4px 0px").html("&#8810; Detailed View").on("click", async () => {
1651
+ await this.app.dispatch({
1652
+ type: "view_create",
1653
+ view: "detail"
1654
+ });
1655
+ });
1656
+ this.controls.zoomDiv = menuTable.append("tr").attr("data-testid", "sjpp-hic-zoom-div").style("display", state.currView == "detail" ? "contents" : "none");
1657
+ this.addLabel(this.controls.zoomDiv, "ZOOM");
1658
+ const zoomDiv = this.controls.zoomDiv.append("td");
1659
+ this.controls.zoomIn = zoomDiv.append("button").attr("data-testid", "sjpp-hic-zoom-in-btn").style("margin-right", "10px").text("In").on("click", () => {
1660
+ this.zoomBlockCallback(false);
1661
+ });
1662
+ this.controls.zoomOut = zoomDiv.append("button").attr("data-testid", "sjpp-hic-zoom-out-btn").style("margin-right", "10px").text("Out").on("click", () => {
1663
+ this.zoomBlockCallback(true);
1664
+ });
1665
+ }
1666
+ showBtns() {
1667
+ const state = this.app.getState();
1668
+ this.controls.genomeViewBtn.style("display", state.currView === "genome" ? "none" : "inline-block");
1669
+ if (state.currView === "detail") {
1670
+ this.controls.chrpairViewBtn.html(`&#8810; Entire ${state.x.chr}-${state.y.chr}`).style("display", "block");
1671
+ this.controls.horizontalViewBtn.style("display", "block");
1672
+ this.controls.zoomDiv.style("display", "contents");
1673
+ this.controls.detailViewBtn.style("display", "none");
1674
+ } else if (state.currView === "horizontal") {
1675
+ this.controls.chrpairViewBtn.html(`&#8810; Entire ${state.x.chr}-${state.y.chr}`).style("display", "block");
1676
+ this.controls.detailViewBtn.style("display", "block");
1677
+ this.controls.horizontalViewBtn.style("display", "none");
1678
+ this.controls.zoomDiv.style("display", "none");
1679
+ } else {
1680
+ this.controls.chrpairViewBtn.style("display", "none");
1681
+ this.controls.horizontalViewBtn.style("display", "none");
1682
+ this.controls.detailViewBtn.style("display", "none");
1683
+ this.controls.zoomDiv.style("display", "none");
1684
+ this.controls.widthRow.style("display", "none");
1685
+ }
1686
+ }
1687
+ showHideControls() {
1688
+ const state = this.app.getState();
1689
+ this.controls.normalizationRow.style("display", state.currView == "horizontal" ? "none" : "");
1690
+ this.controls.minCutoffRow.style("display", state.currView == "horizontal" ? "none" : "");
1691
+ this.controls.maxCutoffRow.style("display", state.currView == "horizontal" ? "none" : "");
1692
+ this.controls.matrixTypeRow.style("display", state.currView == "horizontal" ? "none" : "");
1693
+ this.controls.widthRow.style("display", state.currView == "detail" ? "contents" : "none");
1694
+ }
1695
+ main(appState) {
1696
+ const state = this.app.getState(appState);
1697
+ this.controls.nmeth.update(state[state.currView].nmeth);
1698
+ this.controls.matrixType.update(state[state.currView].matrixType);
1699
+ this.controls.zoomDiv.style("display", state.currView == "detail" ? "contents" : "none");
1700
+ if (state.currView == "chrpair") {
1701
+ this.controls.view.text(`${state.x.chr}-${state.y.chr} Pair`);
1702
+ } else {
1703
+ this.controls.view.text(state.currView.charAt(0).toUpperCase() + state.currView.slice(1));
1704
+ }
1705
+ const formatAbsMin = this.parent("absMin") < 1e-5 ? Number(this.parent("absMin")).toExponential(1) : Number(this.parent("absMin").toFixed(6));
1706
+ const formatAbsMax = this.parent("absMax") < 1e-5 ? Number(this.parent("absMax")).toExponential(1) : Number(this.parent("absMax").toFixed(6));
1707
+ this.controls.width.select("input").property("value", state.settings.widthHeightPx);
1708
+ this.controls.inputBpMinV.property("value", this.parent("min"));
1709
+ this.controls.inputBpMaxV.property("value", this.parent("max"));
1710
+ this.controls.minCutoffLabel.html(`MIN CUTOFF <br>(>= ${formatAbsMin})`);
1711
+ this.controls.maxCutoffLabel.html(`MAX CUTOFF <br>(<= ${formatAbsMax})`);
1712
+ this.showBtns();
1713
+ this.showHideControls();
1714
+ }
1715
+ };
1716
+ var controlPanelInit = getCompInit(ControlPanel);
1717
+
1718
+ // tracks/hic/dom/InfoBar.ts
1719
+ var InfoBar = class {
1720
+ constructor(opts) {
1721
+ /** Defaults **/
1722
+ //Color shown on the left of the color scale
1723
+ this.startColor = "white";
1724
+ //Color shown on the right of the color scale
1725
+ this.endColor = "red";
1726
+ this.addLabel = (text) => {
1727
+ return this.labelRow.append("td").attr("data-testid", `sjpp-hic-infobar-${text.toLowerCase().replace(/\s/g, "-")}-label`).style("color", "#858585").style("font-size", ".8em").style("text-align", "center").style("vertical-align", "middle").text(text.toUpperCase());
1728
+ };
1729
+ this.addValue = (text) => {
1730
+ return this.valueRow.append("td").attr("data-testid", `sjpp-hic-infobar-${text.toString().toLowerCase().replace(/\s/g, "-")}-value`).style("font-size", "1em").style("text-align", "center").style("vertical-align", "middle").text(text);
1731
+ };
1732
+ this.type = "infoBar";
1733
+ this.app = opts.app;
1734
+ this.hic = opts.hic;
1735
+ const table = opts.infoBarDiv;
1736
+ this.labelRow = table.append("tr");
1737
+ this.valueRow = table.append("tr");
1738
+ this.parent = opts.parent;
1739
+ }
1740
+ async render() {
1741
+ this.addLabel("Version");
1742
+ this.addValue(this.hic.version);
1743
+ this.addLabel("Enzyme");
1744
+ this.addValue(this.hic.enzyme || "N/A");
1745
+ this.addLabel("Resolution");
1746
+ this.resolutionDiv = this.addValue("");
1747
+ this.colorScaleLabel = this.addLabel("Scale");
1748
+ this.colorScaleDiv = this.valueRow.append("td").attr("data-testid", "sjpp-hic-color-scale");
1749
+ const min = this.parent("min");
1750
+ let max = this.parent("max");
1751
+ if (min == max) max = max + 0.01;
1752
+ this.colorScale = new ColorScale({
1753
+ barheight: 20,
1754
+ barwidth: 100,
1755
+ domain: [min, max],
1756
+ fontSize: 12,
1757
+ height: 40,
1758
+ width: 150,
1759
+ holder: this.colorScaleDiv,
1760
+ colors: [this.startColor, this.endColor],
1761
+ position: "20,0",
1762
+ ticks: 3,
1763
+ tickSize: 5,
1764
+ //Do not use min value here on initialization. It's 0 and will not update later.
1765
+ markedValue: 1
1766
+ });
1767
+ }
1768
+ update() {
1769
+ const res = this.parent("calcResolution");
1770
+ let resolutionText;
1771
+ if (res < this.hic.bpresolution[this.hic.bpresolution.length - 1]) {
1772
+ resolutionText = `${res} fragment${res > 1 ? "s" : ""}`;
1773
+ } else {
1774
+ resolutionText = bplen(res);
1775
+ }
1776
+ this.resolutionDiv.text(resolutionText);
1777
+ if (this.parent("state").currView == "horizontal") {
1778
+ this.colorScaleLabel.style("display", "none");
1779
+ this.colorScaleDiv.style("display", "none");
1780
+ } else {
1781
+ this.colorScaleLabel.style("display", "");
1782
+ this.colorScaleDiv.style("display", "");
1783
+ const min = this.parent("min");
1784
+ const max = this.parent("max");
1785
+ if (min < 0) {
1786
+ this.colorScale.colors = ["blue", "white", "red"];
1787
+ this.colorScale.domain = [min, 0, max];
1788
+ } else {
1789
+ this.colorScale.colors = ["white", "red"];
1790
+ this.colorScale.domain = [0, max];
1791
+ }
1792
+ this.colorScale.markedValue = min;
1793
+ this.colorScale.updateScale();
1794
+ }
1795
+ }
1796
+ };
1797
+
1798
+ // tracks/hic/data/DataMapper.ts
1799
+ var DataMapper = class {
1800
+ constructor(hic, percentile) {
1801
+ this.hic = hic;
1802
+ this.percentile = percentile ? percentile / 100 : 0.99;
1803
+ }
1804
+ sortData(data) {
1805
+ const vlst = [];
1806
+ if (data?.items && data?.items.length) {
1807
+ for (const i of data.items) {
1808
+ vlst.push(i[2]);
1809
+ }
1810
+ } else {
1811
+ const blankChrs = /* @__PURE__ */ new Set();
1812
+ for (const d of data) {
1813
+ if (d.lead == "chrM" && !d.items.length || d.lead == "chrY" && !d.items.length) {
1814
+ blankChrs.add(d.lead);
1815
+ continue;
1816
+ }
1817
+ for (const i of d.items) {
1818
+ vlst.push(i[2]);
1819
+ }
1820
+ }
1821
+ if (blankChrs.size) {
1822
+ for (const c of blankChrs) {
1823
+ const idx = this.hic.chrlst.indexOf(c);
1824
+ this.hic.chrlst.splice(idx, 1);
1825
+ }
1826
+ }
1827
+ }
1828
+ const sortedVlst = vlst.sort((a, b) => a - b);
1829
+ const max = sortedVlst[Math.floor(sortedVlst.length * this.percentile)];
1830
+ const min = sortedVlst[0];
1831
+ return [min, max, sortedVlst[sortedVlst.length - 1]];
1832
+ }
1833
+ };
1834
+
1835
+ // tracks/hic/data/GenomeDataFetcher.ts
1836
+ var GenomeDataFetcher = class {
1837
+ constructor(hic, debugmode, errList = []) {
1838
+ this.data = [];
1839
+ this.hic = hic;
1840
+ this.debugmode = debugmode;
1841
+ this.errList = errList || [];
1842
+ }
1843
+ async getData(obj) {
1844
+ if (this.data.length) this.data = [];
1845
+ if (!obj?.matrixType) obj.matrixType = "observed";
1846
+ try {
1847
+ const res = await dofetch3("hicgenome?", {
1848
+ method: "POST",
1849
+ body: JSON.stringify({
1850
+ chrlst: this.hic.chrlst,
1851
+ nmeth: obj.nmeth,
1852
+ resolution: obj.resolution,
1853
+ matrixType: obj.matrixType,
1854
+ file: this.hic.file,
1855
+ url: this.hic.url,
1856
+ nochr: this.hic.nochr
1857
+ })
1858
+ });
1859
+ if (res.error) {
1860
+ const errs = res.error.split("\n");
1861
+ for (const e of errs) {
1862
+ this.errList.push(e);
1863
+ }
1864
+ }
1865
+ return res.data;
1866
+ } catch (e) {
1867
+ this.errList.push(e.message || e);
1868
+ if (e.stack) console.error(e.stack);
1869
+ }
1870
+ }
1871
+ };
1872
+
1873
+ // tracks/hic/data/DataFetcher.ts
1874
+ var DataFetcher = class {
1875
+ constructor(hic, debugmode, errList = []) {
1876
+ this.hic = hic;
1877
+ this.debugmode = debugmode;
1878
+ this.errList = errList || [];
1879
+ }
1880
+ async getData(obj) {
1881
+ if (!obj?.matrixType) obj.matrixType = "observed";
1882
+ const arg = {
1883
+ matrixType: obj.matrixType,
1884
+ file: this.hic.file,
1885
+ url: this.hic.url,
1886
+ pos1: this.hic.nochr ? obj.lead.replace("chr", "") : obj.lead,
1887
+ pos2: this.hic.nochr ? obj.follow.replace("chr", "") : obj.follow,
1888
+ nmeth: obj.nmeth,
1889
+ resolution: obj.resolution
1890
+ };
1891
+ try {
1892
+ const data = await dofetch3("hicdata?", {
1893
+ method: "POST",
1894
+ body: JSON.stringify(arg)
1895
+ });
1896
+ if (data.error) {
1897
+ throw Error(`${obj.lead} - ${obj.follow}: ${data.error.error}`);
1898
+ }
1899
+ if (!data.items || data.items.length == 0) return;
1900
+ return data;
1901
+ } catch (e) {
1902
+ this.errList.push(e.message || e);
1903
+ if (e.stack) console.error(e.stack);
1904
+ }
1905
+ }
1906
+ };
1907
+
1908
+ // tracks/hic/HicComponent.ts
1909
+ var HicComponent = class _HicComponent {
1910
+ constructor(opts) {
1911
+ this.genomeData = [];
1912
+ this.calcResolution = null;
1913
+ this.firstRender = true;
1914
+ this.min = 0;
1915
+ this.absMin = 0;
1916
+ this.max = 0;
1917
+ this.absMax = 0;
1918
+ this.hasStatePreMain = true;
1919
+ this.type = _HicComponent.type;
1920
+ this.hic = opts.hic;
1921
+ this.state = opts.state;
1922
+ this.dom = opts.dom;
1923
+ this.errList = opts.errList;
1924
+ this.plotDiv = this.dom.plotDiv.append("table").classed("sjpp-hic-plot-main", true);
1925
+ const tr1 = this.plotDiv.append("tr");
1926
+ const tr2 = this.plotDiv.append("tr");
1927
+ this.plotDiv = {
1928
+ plot: tr1.append("td").classed("sjpp-hic-plot", true).attr("data-testid", "sjpp-hic-plot"),
1929
+ yAxis: tr1.append("td").classed("sjpp-hic-plot-yaxis", true).attr("data-testid", "sjpp-hic-yaxis"),
1930
+ xAxis: tr2.append("td").classed("sjpp-hic-plot-xaxis", true).attr("data-testid", "sjpp-hic-xaxis"),
1931
+ blank: tr2.append("td")
1932
+ };
1933
+ this.app = opts.app;
1934
+ this.dataMapper = new DataMapper(this.hic, opts.state.maxCutoffPercentile);
1935
+ this.activeView = this.state.currView;
1936
+ this.error = opts.error;
1937
+ this.resolution = new Resolution(this.error);
1938
+ this.parent = (prop) => {
1939
+ return this[prop];
1940
+ };
1941
+ this.detailDataMapper = new DetailDataMapper(this.hic, this.errList, this.parent);
1942
+ }
1943
+ static {
1944
+ this.type = "view";
1945
+ }
1946
+ getState(appState) {
1947
+ return appState;
1948
+ }
1949
+ reactsTo(action) {
1950
+ if (action.type.startsWith("view")) return true;
1951
+ else return false;
1952
+ }
1953
+ initView() {
1954
+ const opts = {
1955
+ plotDiv: this.plotDiv,
1956
+ hic: this.hic,
1957
+ app: this.app,
1958
+ parent: (prop) => {
1959
+ return this[prop];
1960
+ }
1961
+ };
1962
+ if (this.state.currView == "genome") {
1963
+ opts["data"] = this.data;
1964
+ this.genome = new GenomeView(opts);
1965
+ this.genome.render();
1966
+ } else if (this.state.currView === "chrpair") {
1967
+ opts["items"] = this.data;
1968
+ this.chrpair = new ChrPairView(opts);
1969
+ this.chrpair.render();
1970
+ } else if (this.state.currView === "detail") {
1971
+ opts["data"] = this.data;
1972
+ this.detail = new DetailView(opts);
1973
+ this.detail.render();
1974
+ } else if (this.state.currView === "horizontal") {
1975
+ this.horizontal = new HorizontalView(opts);
1976
+ this.horizontal.render();
1977
+ } else {
1978
+ throw Error(`Unknown view: ${this.state.currView}`);
1979
+ }
1980
+ }
1981
+ async fetchData(obj) {
1982
+ if (this.data?.length) this.data = [];
1983
+ if (this.state.currView == "genome") {
1984
+ if (this.activeView != "genome" && this.genomeData?.length) this.data = this.genomeData;
1985
+ else {
1986
+ const genomeFetcher = new GenomeDataFetcher(this.hic, true, this.errList);
1987
+ this.genomeData = await genomeFetcher.getData(obj);
1988
+ this.data = this.genomeData;
1989
+ }
1990
+ } else if (this.state.currView == "detail") {
1991
+ this.data = await this.detailDataMapper.getData(this.state.x, this.state.y, this.fragData);
1992
+ } else {
1993
+ if (!this.state?.x?.chr || !this.state?.y?.chr) {
1994
+ this.errList.push(`No positions provided for ${this.activeView} view.`);
1995
+ return;
1996
+ } else {
1997
+ const chrx = this.state.x;
1998
+ const chry = this.state.y;
1999
+ obj["lead"] = `${chrx.start && chrx.stop ? `${chrx.chr}:${chrx.start}-${chrx.stop}` : chrx.chr}`;
2000
+ obj["follow"] = `${chry.start && chry.stop ? `${chry.chr}:${chry.start}-${chry.stop}` : chry.chr}`;
2001
+ }
2002
+ const dataFetcher = new DataFetcher(this.hic, true, this.errList);
2003
+ this.data = await dataFetcher.getData(obj);
2004
+ }
2005
+ }
2006
+ async setResolution(appState) {
2007
+ const state = this.app.getState(appState);
2008
+ this.calcResolution = this.resolution.getResolution(state, this.hic);
2009
+ if (state.currView == "detail" && this.calcResolution == null) {
2010
+ await this.detailDataMapper.getFragData(state.x, state.y);
2011
+ this.fragData = this.detailDataMapper.frag;
2012
+ const maxFragSpan = Math.min(
2013
+ this.fragData.x.stop - this.fragData.x.start,
2014
+ this.fragData.y.stop - this.fragData.y.start
2015
+ );
2016
+ this.calcResolution = this.resolution.findResFromArray(
2017
+ maxFragSpan,
2018
+ state.minFragSpan,
2019
+ this.hic.fragresolution,
2020
+ true
2021
+ );
2022
+ } else {
2023
+ this.fragData = null;
2024
+ }
2025
+ return this.calcResolution;
2026
+ }
2027
+ async setDataArgs(appState) {
2028
+ const state = this.app.getState(appState);
2029
+ const currView = state[state.currView];
2030
+ const args = {
2031
+ nmeth: currView.nmeth,
2032
+ resolution: await this.setResolution(appState),
2033
+ matrixType: currView.matrixType
2034
+ };
2035
+ if (state.currView == "chrpair") {
2036
+ args["lead"] = state.x.chr;
2037
+ args["follow"] = state.y.chr;
2038
+ }
2039
+ return args;
2040
+ }
2041
+ async getViewData(appState) {
2042
+ const args = await this.setDataArgs(appState);
2043
+ await this.fetchData(args);
2044
+ if (this.data?.length > 0 || this.data?.items?.length > 0) {
2045
+ const [min, max, absMax] = this.dataMapper.sortData(this.data);
2046
+ this.min = this.absMin = min;
2047
+ this.max = max;
2048
+ this.absMax = absMax;
2049
+ } else {
2050
+ if (this.state.currView != "genome") {
2051
+ const state = this.app.getState(appState);
2052
+ const xPosMessage = state.x?.start ? `${state.x.chr}:${state.x.start}-${state.x.stop}` : state.x.chr;
2053
+ const yPosMessage = state.y?.start ? `${state.y.chr}:${state.y.start}-${state.y.stop}` : state.y.chr;
2054
+ this.errList.push(`No data returned for ${xPosMessage} and ${yPosMessage}`);
2055
+ }
2056
+ }
2057
+ }
2058
+ async init() {
2059
+ this.components = {
2060
+ controls: await controlPanelInit({
2061
+ app: this.app,
2062
+ controlsDiv: this.dom.controlsDiv,
2063
+ hic: this.hic,
2064
+ parent: (prop, value) => {
2065
+ if (value) this[prop] = value;
2066
+ return this[prop];
2067
+ },
2068
+ error: this.error.bind(this)
2069
+ })
2070
+ };
2071
+ this.infoBar = new InfoBar({
2072
+ app: this.app,
2073
+ infoBarDiv: this.dom.infoBarDiv.append("table").style("border-spacing", "3px"),
2074
+ hic: this.hic,
2075
+ parent: (prop) => {
2076
+ return this[prop];
2077
+ }
2078
+ });
2079
+ this.infoBar.render();
2080
+ }
2081
+ async main(appState) {
2082
+ if (this.errList.length) {
2083
+ this.app.dispatch({ type: "loading_active", active: false });
2084
+ return;
2085
+ }
2086
+ const state = this.app.getState(appState);
2087
+ if (this.firstRender == true) {
2088
+ this.firstRender = false;
2089
+ await this.getViewData(appState);
2090
+ this.initView();
2091
+ } else {
2092
+ if (state.currView != "horizontal") {
2093
+ this.app.dispatch({ type: "loading_active", active: true });
2094
+ await this.getViewData(appState);
2095
+ }
2096
+ if (this.activeView != state.currView) {
2097
+ if (this.activeView == "genome") {
2098
+ this.genome.svg.remove();
2099
+ } else {
2100
+ this.plotDiv.xAxis.selectAll("*").remove();
2101
+ this.plotDiv.yAxis.selectAll("*").remove();
2102
+ this.plotDiv.plot.selectAll("*").remove();
2103
+ }
2104
+ this.activeView = state.currView;
2105
+ this.initView();
2106
+ } else {
2107
+ this[state.currView].update(this.data);
2108
+ }
2109
+ }
2110
+ this.infoBar.update();
2111
+ if (this.errList.length) {
2112
+ this.error(this.errList);
2113
+ this.app.dispatch({ type: "loading_active", active: false });
2114
+ }
2115
+ }
2116
+ };
2117
+ var viewCompInit = getCompInit(HicComponent);
2118
+
2119
+ // tracks/hic/HicApp.ts
2120
+ var HicApp = class _HicApp extends AppBase {
2121
+ constructor(opts) {
2122
+ super(opts);
2123
+ this.views = ["genome", "chrpair", "detail", "horizontal"];
2124
+ this.errList = [];
2125
+ /** Required for rx but not in use */
2126
+ this.wasDestroyed = false;
2127
+ this.type = _HicApp.type;
2128
+ this.hic = {
2129
+ enzyme: opts.enzyme,
2130
+ file: opts.file,
2131
+ url: opts.url,
2132
+ genome: opts.genome,
2133
+ holder: opts.holder,
2134
+ hostUrl: opts.hostUrl,
2135
+ jwt: opts.jwt,
2136
+ position1: opts.position1,
2137
+ position2: opts.position2,
2138
+ maxCutoffPercentile: opts.maxCutoffPercentile,
2139
+ name: "name" in opts ? opts.name : "Hi-C",
2140
+ tklist: "tklst" in opts ? opts.tklst : [],
2141
+ state: "state" in opts ? opts.state : {}
2142
+ };
2143
+ this.dom = {
2144
+ errorDiv: opts.holder.append("div").classed("sjpp-hic-error", true),
2145
+ controlsDiv: opts.holder.append("div").classed("sjpp-hic-controls", true).style("display", "inline-block"),
2146
+ infoBarDiv: opts.holder.append("div").classed("sjpp-hic-infobar", true).style("display", "inline-block").style("vertical-align", "top").style("padding", "5px").style("border", "solid 0.5px #ccc"),
2147
+ loadingDiv: select_default("body").append("div").attr("id", "sjpp-loading-overlay"),
2148
+ plotDiv: opts.holder.append("div").classed("sjpp-hic-main", true).style("display", "inline-block"),
2149
+ tip: new Menu()
2150
+ };
2151
+ }
2152
+ static {
2153
+ this.type = "app";
2154
+ }
2155
+ async error(err) {
2156
+ if (err && typeof err == "string") this.errList.push(err);
2157
+ showErrorsWithCounter(this.errList, this.dom.errorDiv);
2158
+ this.errList = [];
2159
+ }
2160
+ determineView() {
2161
+ if (!this.hic.position1 && !this.hic.position2 && !this.hic.state.currView) this.hic.state.currView = "genome";
2162
+ if (!this.hic.position1 && this.hic.position2) this.errList.push("Missing first position");
2163
+ if (this.hic.position1 && !this.hic.position2) this.errList.push("Missing second position");
2164
+ if (this.hic.position1 && this.hic.position2) {
2165
+ const pos1 = this.hic.position1.split(/[:-]/);
2166
+ const pos2 = this.hic.position2.split(/[:-]/);
2167
+ this.hic.state.x = { chr: pos1[0] };
2168
+ this.hic.state.y = { chr: pos2[0] };
2169
+ if (!Number.isNaN(+pos1[1]) && !Number.isNaN(+pos1[2])) {
2170
+ this.hic.state.x.start = +pos1[1];
2171
+ this.hic.state.x.stop = +pos1[2];
2172
+ this.hic.state.y.start = +pos2[1];
2173
+ this.hic.state.y.stop = +pos2[2];
2174
+ this.hic.state.currView = "detail";
2175
+ } else {
2176
+ this.hic.state.currView = "chrpair";
2177
+ }
2178
+ } else {
2179
+ if (!this.views.some((v) => v === this.hic.state.currView)) this.error(`Unknown view: ${this.hic.state.currView}`);
2180
+ else return this.hic.state.currView;
2181
+ }
2182
+ }
2183
+ getViewsConfig() {
2184
+ if (this.hic.maxCutoffPercentile) this.hic.state.maxCutoffPercentile = this.hic.maxCutoffPercentile;
2185
+ let nmeth;
2186
+ if (this.hic["normalization"]?.length > 0) {
2187
+ if (!this.hic["normalization"].includes("NONE")) this.hic["normalization"].unshift("NONE");
2188
+ nmeth = this.hic["normalization"][0];
2189
+ } else {
2190
+ nmeth = "NONE";
2191
+ }
2192
+ if (this.hic.state.currView) {
2193
+ if (!this.hic.state[this.hic.state.currView]) this.hic.state[this.hic.state.currView] = {};
2194
+ if (!this.hic.state[this.hic.state.currView]?.matrixType) {
2195
+ this.hic.state[this.hic.state.currView].matrixType = "observed";
2196
+ }
2197
+ if (!this.hic.state[this.hic.state.currView]?.nmeth) {
2198
+ this.hic.state[this.hic.state.currView].nmeth = nmeth;
2199
+ }
2200
+ }
2201
+ for (const v of this.views) {
2202
+ if (!this.hic.state[v]) {
2203
+ this.hic.state[v] = {
2204
+ matrixType: "observed",
2205
+ nmeth
2206
+ };
2207
+ }
2208
+ }
2209
+ }
2210
+ async init() {
2211
+ this.determineView();
2212
+ try {
2213
+ await hicParseFile(this.hic, true, this.errList);
2214
+ this.getViewsConfig();
2215
+ this.store = await hicStoreInit({ app: this.api, state: this.hic.state });
2216
+ this.state = await this.store.copyState();
2217
+ this.components = {
2218
+ loadingOverlay: await loadingInit({
2219
+ app: this.api,
2220
+ loadingDiv: this.dom.loadingDiv
2221
+ }),
2222
+ view: await viewCompInit({
2223
+ app: this.api,
2224
+ state: this.state,
2225
+ dom: this.dom,
2226
+ hic: this.hic,
2227
+ errList: this.errList,
2228
+ error: this.error
2229
+ })
2230
+ };
2231
+ await this.api.dispatch();
2232
+ } catch (e) {
2233
+ console.error(e.stack || e);
2234
+ }
2235
+ }
2236
+ main() {
2237
+ if (this.errList.length) {
2238
+ this.error(this.errList);
2239
+ this.dom.loadingDiv.style("display", "none");
2240
+ return;
2241
+ }
2242
+ }
2243
+ };
2244
+ var hicInit = getAppInit(HicApp);
2245
+ export {
2246
+ hicInit
2247
+ };
2248
+ //# sourceMappingURL=HicApp-3LFHOOAR.js.map