@sjcrh/proteinpaint-client 2.190.2 → 2.191.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (874) hide show
  1. package/dist/2dmaf-3D2KTSAN.js +1373 -0
  2. package/dist/AIProjectAdmin-IGPLMREH.js +829 -0
  3. package/dist/AppHeader-WT5AXGLC.js +835 -0
  4. package/dist/BoxPlot-AUFITBDB.js +1217 -0
  5. package/dist/CorrelationVolcano-4AZ6Y42O.js +619 -0
  6. package/dist/DE-MWYRMM47.js +95 -0
  7. package/dist/DEinput-F3JFK4HF.js +301 -0
  8. package/dist/DifferentialAnalysis-ZAVYUYOL.js +245 -0
  9. package/dist/Disco-Q3O3A2CU.js +3237 -0
  10. package/dist/Disco.UI-QIKPQKTY.js +245 -0
  11. package/dist/DmrPlot-D7TPJXWH.js +642 -0
  12. package/dist/GB-K57ZGFLA.js +1130 -0
  13. package/dist/GeneExpInput-7UYFJHSX.js +366 -0
  14. package/dist/HicApp-HPIHJDLQ.js +2250 -0
  15. package/dist/NumBinaryEditor-ENHACYTK.js +270 -0
  16. package/dist/NumBinaryEditor.unit.spec-TNIRFCTU.js +286 -0
  17. package/dist/NumContEditor-Y4CDFJM2.js +107 -0
  18. package/dist/NumContEditor.unit.spec-KES6AJHN.js +169 -0
  19. package/dist/NumCustomBinEditor-TRXZ52MH.js +38 -0
  20. package/dist/NumCustomBinEditor.unit.spec-2V5X5YK4.js +284 -0
  21. package/dist/NumDiscreteEditor-RXXL3AQ4.js +179 -0
  22. package/dist/NumDiscreteEditor.unit.spec-EAFEI66P.js +202 -0
  23. package/dist/NumRegularBinEditor-KHIFP2L7.js +38 -0
  24. package/dist/NumRegularBinEditor.unit.spec-ADRNCEAV.js +227 -0
  25. package/dist/NumSplineEditor-33SUCGNJ.js +197 -0
  26. package/dist/NumSplineEditor.unit.spec-7KTMNABP.js +199 -0
  27. package/dist/NumericDensity-PWWJBZUA.js +38 -0
  28. package/dist/NumericDensity.unit.spec-V5C43FCP.js +221 -0
  29. package/dist/NumericHandler-A6QSQAPT.js +39 -0
  30. package/dist/NumericHandler.unit.spec-SRFEDFCC.js +219 -0
  31. package/dist/ProteomeInput-BOI2634T.js +396 -0
  32. package/dist/RunChart2-DJNWYZ5C.js +758 -0
  33. package/dist/SC-ADKHO4MP.js +936 -0
  34. package/dist/Volcano-4GJU2666.js +1379 -0
  35. package/dist/WSIViewer-JQKGSN3D.js +48475 -0
  36. package/dist/WsiSamplesPlot-PSVYIYI7.js +165 -0
  37. package/dist/adSandbox-AFYF5ULQ.js +38 -0
  38. package/dist/app-5KDQSFDE.js +49 -0
  39. package/dist/app-PZ5KGBCR.js +37 -0
  40. package/dist/app.js +13 -13
  41. package/dist/bam-AYX4HVPY.js +860 -0
  42. package/dist/barchart-2BMDZGPJ.js +47 -0
  43. package/dist/barchart.data-I33D7SQC.js +22 -0
  44. package/dist/barchart.events-Z5AL6NU6.js +47 -0
  45. package/dist/barchart.integration.spec-JG7OWI6G.js +1974 -0
  46. package/dist/barchart.integration.spec-JG7OWI6G.js.map +7 -0
  47. package/dist/barchart2-KFMUPMVS.js +311 -0
  48. package/dist/block-7UW7QCRX.js +6202 -0
  49. package/dist/block.init-CZWCEEID.js +38 -0
  50. package/dist/block.mds.expressionrank-2JJYKI2C.js +359 -0
  51. package/dist/block.mds.geneboxplot-NU45ZP4J.js +828 -0
  52. package/dist/block.mds.junction-UVSKHUFR.js +1545 -0
  53. package/dist/block.mds.svcnv-6JXI63CC.js +6801 -0
  54. package/dist/block.svg-KAMDKUQX.js +164 -0
  55. package/dist/block.tk.aicheck-WEKHCRXC.js +283 -0
  56. package/dist/block.tk.ase-MGDGSUQN.js +365 -0
  57. package/dist/block.tk.bam-MB2DAFD7.js +1906 -0
  58. package/dist/block.tk.bedgraphdot-VUSURZ6N.js +384 -0
  59. package/dist/block.tk.bigwig.ui-WQTN44VK.js +212 -0
  60. package/dist/block.tk.hicstraw-T2JXNKWD.js +823 -0
  61. package/dist/block.tk.junction-2JXABLIG.js +2364 -0
  62. package/dist/block.tk.junction.textmatrixui-EEB3JUNU.js +199 -0
  63. package/dist/block.tk.ld-JZBL73US.js +99 -0
  64. package/dist/block.tk.menu-VQEPTCE6.js +1029 -0
  65. package/dist/block.tk.pgv-PYOPQDYL.js +944 -0
  66. package/dist/brainImaging-SYJZZN3K.js +423 -0
  67. package/dist/chunk-26XX7RVV.js +129 -0
  68. package/dist/chunk-2QWELHBX.js +54 -0
  69. package/dist/chunk-3MGF2FZ2.js +1179 -0
  70. package/dist/chunk-3S7ZWGND.js +95 -0
  71. package/dist/chunk-4VCBJC3B.js +203 -0
  72. package/dist/chunk-53WLN75I.js +50 -0
  73. package/dist/chunk-5GOZWJ7S.js +263 -0
  74. package/dist/chunk-5WKIMNGG.js +148 -0
  75. package/dist/chunk-5WM3CC5O.js +117 -0
  76. package/dist/chunk-6FF5VLGO.js +20745 -0
  77. package/dist/chunk-6FF5VLGO.js.map +7 -0
  78. package/dist/chunk-6FOKZFIT.js +613 -0
  79. package/dist/chunk-6FOKZFIT.js.map +7 -0
  80. package/dist/chunk-6GI6MDYV.js +1210 -0
  81. package/dist/chunk-6XOZ4DWL.js +222 -0
  82. package/dist/chunk-6XOZ4DWL.js.map +7 -0
  83. package/dist/chunk-7BOPMRFX.js +482 -0
  84. package/dist/chunk-7C76SLOH.js +1275 -0
  85. package/dist/chunk-7C76SLOH.js.map +7 -0
  86. package/dist/chunk-BYOIIMNZ.js +2327 -0
  87. package/dist/chunk-CGRYUKXD.js +443 -0
  88. package/dist/chunk-CK47VCG5.js +5010 -0
  89. package/dist/chunk-CRUBP5PT.js +446 -0
  90. package/dist/chunk-CW2Q5EA7.js +283 -0
  91. package/dist/chunk-E7UJR2YK.js +158 -0
  92. package/dist/chunk-ENZZUMVY.js +215 -0
  93. package/dist/chunk-FRGACC2C.js +182 -0
  94. package/dist/chunk-FZ63VOSX.js +226 -0
  95. package/dist/chunk-GGRR4NXW.js +1102 -0
  96. package/dist/chunk-H5BIGL3W.js +1815 -0
  97. package/dist/chunk-H5BIGL3W.js.map +7 -0
  98. package/dist/chunk-I2LTCBTM.js +2824 -0
  99. package/dist/chunk-IYOGX7A4.js +158 -0
  100. package/dist/chunk-IYOGX7A4.js.map +7 -0
  101. package/dist/chunk-J5SV3MFB.js +217 -0
  102. package/dist/chunk-J7X5JRRI.js +276 -0
  103. package/dist/chunk-JDPU6NES.js +100 -0
  104. package/dist/chunk-JEZIKGZI.js +386 -0
  105. package/dist/chunk-JPH5EVVW.js +514 -0
  106. package/dist/chunk-JTMU3F2Q.js +184 -0
  107. package/dist/chunk-JTMU3F2Q.js.map +7 -0
  108. package/dist/chunk-KQYXXICJ.js +1332 -0
  109. package/dist/chunk-L72Y4QA2.js +102 -0
  110. package/dist/chunk-LK3BBGUJ.js +2681 -0
  111. package/dist/chunk-LYPDXJPX.js +6364 -0
  112. package/dist/chunk-MEY5OBDJ.js +170 -0
  113. package/dist/chunk-MW3PIRGF.js +229 -0
  114. package/dist/chunk-NNMOXQTU.js +102 -0
  115. package/dist/chunk-NV6JVKDN.js +291 -0
  116. package/dist/chunk-OMBRJBQV.js +1943 -0
  117. package/dist/chunk-PEBOVJSD.js +142 -0
  118. package/dist/chunk-PJXF4IRZ.js +95 -0
  119. package/dist/chunk-PKCYPYWW.js +4272 -0
  120. package/dist/chunk-QIY7HLC5.js +815 -0
  121. package/dist/chunk-QMI2X23H.js +339 -0
  122. package/dist/chunk-QOE7MB4X.js +454 -0
  123. package/dist/chunk-QSMU6K5D.js +34 -0
  124. package/dist/chunk-RBIBHQTL.js +54 -0
  125. package/dist/chunk-RG5ABFA2.js +368 -0
  126. package/dist/chunk-RRJGFE2S.js +407 -0
  127. package/dist/chunk-RTTPFI7N.js +14 -0
  128. package/dist/chunk-T2CG7BVN.js +205 -0
  129. package/dist/chunk-TVADJLMF.js +317 -0
  130. package/dist/chunk-TVADJLMF.js.map +7 -0
  131. package/dist/chunk-U3DKYKV7.js +293 -0
  132. package/dist/chunk-UQHM3F6B.js +37 -0
  133. package/dist/chunk-VXKO2ONI.js +534 -0
  134. package/dist/chunk-W3MCIBAP.js +272 -0
  135. package/dist/chunk-WH236OZ6.js +736 -0
  136. package/dist/chunk-WMELUFVS.js +254 -0
  137. package/dist/chunk-WS3NUPNV.js +119 -0
  138. package/dist/chunk-XIQNS2HN.js +824 -0
  139. package/dist/chunk-YKPLUIWP.js +2786 -0
  140. package/dist/chunk-YRQ5V7DQ.js +302 -0
  141. package/dist/chunk-ZK226W6V.js +194 -0
  142. package/dist/chunk-ZTOABVVA.js +55 -0
  143. package/dist/chunk-ZUTPAYSS.js +477 -0
  144. package/dist/condition-SZZS77TK.js +332 -0
  145. package/dist/controls-ZBDTHWOT.js +41 -0
  146. package/dist/controls.config-MTBN2XPW.js +39 -0
  147. package/dist/correlation-DHEH5FT4.js +99 -0
  148. package/dist/cuminc-TM3SMOJ2.js +1149 -0
  149. package/dist/cuminc.integration.spec-NEBXRMKB.js +678 -0
  150. package/dist/customdata.inputui-5ZEKFWYV.js +289 -0
  151. package/dist/dataDownload-XZ4AC6QY.js +330 -0
  152. package/dist/dataDownload.integration.spec-O4YQKAOJ.js +193 -0
  153. package/dist/databrowser.ui-V4HQMZ4X.js +433 -0
  154. package/dist/dictionary-RAHC3OA7.js +111 -0
  155. package/dist/dnaMethylation-ZUHHG7Q2.js +38 -0
  156. package/dist/dnaMethylation.integration.spec-JZ6ZSF5L.js +203 -0
  157. package/dist/dofetch-77N4NDDM.js +51 -0
  158. package/dist/e2pca-K7IFKNTZ.js +350 -0
  159. package/dist/ep-4OIFIMZH.js +1256 -0
  160. package/dist/expclust.gdc.spec-OJD7ENKA.js +307 -0
  161. package/dist/facet-SZAF3QW6.js +521 -0
  162. package/dist/forms2-TBRF2RI5.js +534 -0
  163. package/dist/gb-I5J74SHP.js +88 -0
  164. package/dist/geneExpClustering-OSS4OCN6.js +249 -0
  165. package/dist/geneExpression-IHVMJGOG.js +38 -0
  166. package/dist/geneExpression-WKYVSE45.js +313 -0
  167. package/dist/geneExpression.unit.spec-QP6CLYHP.js +102 -0
  168. package/dist/geneORA-65PHOTHN.js +278 -0
  169. package/dist/geneRanking-XCU3NX4J.js +551 -0
  170. package/dist/geneVariant-CZM3XP7X.js +39 -0
  171. package/dist/geneVariant-IMDFPV2L.js +41 -0
  172. package/dist/geneVariant.integration.spec-FOONVTYD.js +198 -0
  173. package/dist/genefusion.ui-UZM2YGIR.js +309 -0
  174. package/dist/geneset-IGG77MNZ.js +208 -0
  175. package/dist/genomeBrowser.spec-CN2XNZQF.js +281 -0
  176. package/dist/grin2-367QGSOU.js +1560 -0
  177. package/dist/grin2-S46IRWIP.js +821 -0
  178. package/dist/grin2-S46IRWIP.js.map +7 -0
  179. package/dist/gsea-RJ767G5U.js +47 -0
  180. package/dist/hierCluster-3D425AUU.js +63 -0
  181. package/dist/hierCluster-GIIB6OEC.js +59 -0
  182. package/dist/hierCluster.config-ENEOWYOS.js +40 -0
  183. package/dist/hierCluster.integration.spec-IOA3PVAN.js +395 -0
  184. package/dist/hierCluster.interactivity-VITUF5RM.js +54 -0
  185. package/dist/hierCluster.renderers-G3274UYA.js +21 -0
  186. package/dist/imagePlot-7VH7VFWD.js +163 -0
  187. package/dist/importPlot-OKOYX2NU.js +8 -0
  188. package/dist/isoformExpression-4SJQZFLP.js +40 -0
  189. package/dist/isoformExpression.unit.spec-3MQQZEPZ.js +208 -0
  190. package/dist/launch.adhoc-MQKVVUV7.js +42 -0
  191. package/dist/leftlabel.sample-JPE6CXZU.js +260 -0
  192. package/dist/lollipop-DMM3QYKI.js +171 -0
  193. package/dist/maf-TQKKVLNR.js +452 -0
  194. package/dist/maftimeline-BXBAXKAI.js +593 -0
  195. package/dist/matrix-AWVEEUKZ.js +58 -0
  196. package/dist/matrix-N3YUJXLP.js +63 -0
  197. package/dist/matrix.cells-E3LEVA7U.js +28 -0
  198. package/dist/matrix.config-QPNAC2EY.js +41 -0
  199. package/dist/matrix.data-FIQGPFTI.js +25 -0
  200. package/dist/matrix.groups-BGMZZ6CM.js +27 -0
  201. package/dist/matrix.integration.spec-OA3FJ2PN.js +3072 -0
  202. package/dist/matrix.interactivity-LKLF5ZQN.js +42 -0
  203. package/dist/matrix.layout-ORYBQUKT.js +44 -0
  204. package/dist/matrix.legend-RJAFOZHQ.js +22 -0
  205. package/dist/matrix.renderers-TLZSYHZR.js +38 -0
  206. package/dist/matrix.serieses-GJWHSBG4.js +21 -0
  207. package/dist/matrix.sort-KIJENIT2.js +27 -0
  208. package/dist/matrix.sort.unit.spec-DRFCEZGX.js +472 -0
  209. package/dist/matrix.sorterUi.unit.spec-QQH3ITTW.js +342 -0
  210. package/dist/mavb-ZK5UKXEO.js +732 -0
  211. package/dist/mds.fimo-MHPHQB4X.js +518 -0
  212. package/dist/mds.samplescatterplot-LRL5SXJ5.js +1550 -0
  213. package/dist/mds.survivalplot-R5N6OHZ2.js +483 -0
  214. package/dist/numericDictTermCluster-OMXIURRD.js +72 -0
  215. package/dist/oncomatrix-FA3ELKNE.js +295 -0
  216. package/dist/oncomatrix.spec-3K7ONINO.js +448 -0
  217. package/dist/plot.2dvaf-P6CRZWB7.js +377 -0
  218. package/dist/plot.app-XOQVTISH.js +41 -0
  219. package/dist/plot.barplot-YDT4K3YZ.js +102 -0
  220. package/dist/plot.boxplot-GHEVLVJU.js +152 -0
  221. package/dist/plot.brainImaging-NENXKZEP.js +51 -0
  222. package/dist/plot.disco-3B7LZ2XE.js +102 -0
  223. package/dist/plot.dzi-F7NW65WQ.js +33 -0
  224. package/dist/plot.ssgq-BAUIBB3D.js +139 -0
  225. package/dist/plot.vaf2cov-XBLM7B4M.js +259 -0
  226. package/dist/plot.wsi-YWILGUDN.js +36 -0
  227. package/dist/polar2-WABGZYEV.js +226 -0
  228. package/dist/polar2-WABGZYEV.js.map +7 -0
  229. package/dist/profileForms-LYWVFIVQ.js +441 -0
  230. package/dist/profilePlot-TSXR4EGL.js +54 -0
  231. package/dist/proteinView-ATZI5LXA.js +1320 -0
  232. package/dist/proteinView-ATZI5LXA.js.map +7 -0
  233. package/dist/qualitative-VNY32ONL.js +43 -0
  234. package/dist/radar2-YVHLSCAM.js +321 -0
  235. package/dist/radarFacility2-K4OA7FYK.js +329 -0
  236. package/dist/regression-KKC7Y57Y.js +56 -0
  237. package/dist/regression.inputs-UR2VLW5P.js +48 -0
  238. package/dist/regression.inputs.term-QECG7D3W.js +48 -0
  239. package/dist/regression.inputs.values.table-UANMD46V.js +45 -0
  240. package/dist/regression.integration.spec-UCUHBCZY.js +784 -0
  241. package/dist/regression.results-TNVEGETD.js +40 -0
  242. package/dist/regression.spec-3NSFMTI7.js +708 -0
  243. package/dist/report-2FNKLTYA.js +222 -0
  244. package/dist/sampleScatter.spec-5SC2AJHW.js +202 -0
  245. package/dist/sampleView-SU7VZCJH.js +48 -0
  246. package/dist/samplelst-JGSTML6J.js +111 -0
  247. package/dist/samplematrix-FO4GGDRT.js +2198 -0
  248. package/dist/sc-LDUHVPII.js +86 -0
  249. package/dist/scatter-QAEMBYHW.js +854 -0
  250. package/dist/scatter.integration.spec-FTD4PDMI.js +1196 -0
  251. package/dist/selectGenomeWithTklst-G3XUX3KK.js +134 -0
  252. package/dist/singleCellCellType-QKA4QCLC.js +38 -0
  253. package/dist/singleCellCellType.unit.spec-KIPKWJLB.js +160 -0
  254. package/dist/singleCellGeneExpression-O2QVJOG4.js +38 -0
  255. package/dist/singleCellGeneExpression.unit.spec-6ATWTQTO.js +153 -0
  256. package/dist/singleCellPlot-HZOSW3FB.js +54 -0
  257. package/dist/singlecell-3OX4TSQ4.js +86 -0
  258. package/dist/singlecell-EUUIY2JJ.js +1572 -0
  259. package/dist/snp-UVKGSROJ.js +38 -0
  260. package/dist/snp.unit.spec-YHIZ5ZJW.js +176 -0
  261. package/dist/snplocus-FANKGKI4.js +208 -0
  262. package/dist/spliceevent.a53ss.diagram-QQXYYX7J.js +151 -0
  263. package/dist/spliceevent.exonskip.diagram-R265JOH6.js +277 -0
  264. package/dist/spliceevent.noeventdiagram-UMAQOCVY.js +460 -0
  265. package/dist/ssGSEA-F4BZ3NYO.js +38 -0
  266. package/dist/ssGSEA.unit.spec-OQQGQYPJ.js +88 -0
  267. package/dist/summarizeCnvGeneexp-LX22NXFF.js +163 -0
  268. package/dist/summarizeGeneexpSurvival-N7LXAK2G.js +108 -0
  269. package/dist/summarizeMutationCnv-QC3EARCV.js +164 -0
  270. package/dist/summarizeMutationDiagnosis-H6KJWLLC.js +40 -0
  271. package/dist/summarizeMutationSurvival-JAFSWJVZ.js +99 -0
  272. package/dist/summary-D5MSBQIS.js +49 -0
  273. package/dist/summary.integration.spec-KJPNP7X2.js +414 -0
  274. package/dist/summaryInput-47JBGPNE.js +235 -0
  275. package/dist/sunburst-PUZYZZGK.js +284 -0
  276. package/dist/survival-LGJBYXFR.js +58 -0
  277. package/dist/survival-SMOKVDGO.js +46 -0
  278. package/dist/survival.integration.spec-ORC3LCVK.js +821 -0
  279. package/dist/svgraph-GWDKHIDQ.js +1387 -0
  280. package/dist/svmr-RRA6OUVP.js +3842 -0
  281. package/dist/table-AC2DX55F.js +200 -0
  282. package/dist/termCollection-4OVZAKYZ.js +179 -0
  283. package/dist/termCollection-MPFFNNMF.js +38 -0
  284. package/dist/termCollection.unit.spec-S4QSTY4S.js +208 -0
  285. package/dist/tk-PFWI2HAC.js +46 -0
  286. package/dist/tp.ui-TKAJ7DRO.js +1459 -0
  287. package/dist/tvs.dt-6NDINORK.js +39 -0
  288. package/dist/tvs.dtcnv.categorical-2RHUN643.js +40 -0
  289. package/dist/tvs.dtcnv.continuous-GIPVPDBD.js +72 -0
  290. package/dist/tvs.dtfusion-ZLXTZ7SA.js +40 -0
  291. package/dist/tvs.dtsnvindel-CRS5CL42.js +40 -0
  292. package/dist/tvs.dtsv-SG45TZWQ.js +40 -0
  293. package/dist/tvs.samplelst-NQ5BKEGM.js +104 -0
  294. package/dist/tvs.termCollection-HOVUO7ZH.js +159 -0
  295. package/dist/violin-FGGULOXU.js +46 -0
  296. package/dist/violin.integration.spec-T5Y6URJK.js +1425 -0
  297. package/dist/violin.interactivity-6RGFTQDW.js +38 -0
  298. package/dist/violin.renderer-63UTDZVK.js +40 -0
  299. package/dist/vocabulary-YQXR4H5J.js +41 -0
  300. package/package.json +2 -2
  301. package/dist/2dmaf-ZCIOFNSJ.js +0 -1373
  302. package/dist/AIProjectAdmin-Z7EA2Y74.js +0 -829
  303. package/dist/AppHeader-4AZ76NN3.js +0 -835
  304. package/dist/BoxPlot-BFVBNQNR.js +0 -1217
  305. package/dist/CorrelationVolcano-L5VSJWJF.js +0 -619
  306. package/dist/DE-7TPZWAKI.js +0 -95
  307. package/dist/DEinput-WQJEXWGY.js +0 -301
  308. package/dist/DifferentialAnalysis-FPG7RDNN.js +0 -245
  309. package/dist/Disco-WP2BBL5V.js +0 -3237
  310. package/dist/Disco.UI-ZYSUA57E.js +0 -245
  311. package/dist/DmrPlot-V3E7JMPN.js +0 -642
  312. package/dist/GB-BKLVGYWP.js +0 -1130
  313. package/dist/GeneExpInput-7V72SRDT.js +0 -366
  314. package/dist/HicApp-IT5YNABL.js +0 -2250
  315. package/dist/NumBinaryEditor-7E37MVQO.js +0 -270
  316. package/dist/NumBinaryEditor.unit.spec-C3WVAXMY.js +0 -286
  317. package/dist/NumContEditor-FEVZJUB4.js +0 -107
  318. package/dist/NumContEditor.unit.spec-4IGP657P.js +0 -169
  319. package/dist/NumCustomBinEditor-QC4D63Y5.js +0 -38
  320. package/dist/NumCustomBinEditor.unit.spec-USLECMWI.js +0 -284
  321. package/dist/NumDiscreteEditor-PRAI76XQ.js +0 -179
  322. package/dist/NumDiscreteEditor.unit.spec-IWL3OCTC.js +0 -202
  323. package/dist/NumRegularBinEditor-ESL2HAD7.js +0 -38
  324. package/dist/NumRegularBinEditor.unit.spec-7LLZAW4Z.js +0 -227
  325. package/dist/NumSplineEditor-JZOROO36.js +0 -197
  326. package/dist/NumSplineEditor.unit.spec-3SHSXTC7.js +0 -199
  327. package/dist/NumericDensity-SGYRBDCQ.js +0 -38
  328. package/dist/NumericDensity.unit.spec-Y6JMH6IR.js +0 -221
  329. package/dist/NumericHandler-YG7AMINA.js +0 -39
  330. package/dist/NumericHandler.unit.spec-CABSMERN.js +0 -219
  331. package/dist/ProteomeInput-2WPCK72Z.js +0 -396
  332. package/dist/RunChart2-PJWMDWJR.js +0 -758
  333. package/dist/SC-WVVUFPNU.js +0 -936
  334. package/dist/Volcano-7JI4LUSF.js +0 -1379
  335. package/dist/WSIViewer-GDSOEEA6.js +0 -48475
  336. package/dist/WsiSamplesPlot-Z5C3NPF7.js +0 -165
  337. package/dist/adSandbox-KQKENDNQ.js +0 -38
  338. package/dist/alphaGenome-PN2SEPCK.js +0 -175
  339. package/dist/alphaGenome-PN2SEPCK.js.map +0 -7
  340. package/dist/app-4OEY56FN.js +0 -49
  341. package/dist/app-TGMYXJ4E.js +0 -37
  342. package/dist/bam-3IMX42G5.js +0 -860
  343. package/dist/barchart-44HOJWVS.js +0 -47
  344. package/dist/barchart.data-CHNR4XL2.js +0 -22
  345. package/dist/barchart.events-XW5OZ5MR.js +0 -47
  346. package/dist/barchart.integration.spec-M5PACARH.js +0 -1923
  347. package/dist/barchart.integration.spec-M5PACARH.js.map +0 -7
  348. package/dist/barchart2-4NU7NWJZ.js +0 -311
  349. package/dist/block-OYSZ2JXC.js +0 -6202
  350. package/dist/block.init-WSIQLW7A.js +0 -38
  351. package/dist/block.mds.expressionrank-2KWOWDW4.js +0 -359
  352. package/dist/block.mds.geneboxplot-6ZAD6A5K.js +0 -828
  353. package/dist/block.mds.junction-VQDLHFNG.js +0 -1545
  354. package/dist/block.mds.svcnv-7OIRG7DQ.js +0 -6801
  355. package/dist/block.svg-HXAIFHXM.js +0 -164
  356. package/dist/block.tk.aicheck-GTGHCUEN.js +0 -283
  357. package/dist/block.tk.ase-TAEE2ZHN.js +0 -365
  358. package/dist/block.tk.bam-6A26AZ7S.js +0 -1906
  359. package/dist/block.tk.bedgraphdot-6MYIVRBC.js +0 -384
  360. package/dist/block.tk.bigwig.ui-GJ7JXRH3.js +0 -212
  361. package/dist/block.tk.hicstraw-3TCDZ2GM.js +0 -823
  362. package/dist/block.tk.junction-WDBIP7DK.js +0 -2364
  363. package/dist/block.tk.junction.textmatrixui-QOV3U7AN.js +0 -199
  364. package/dist/block.tk.ld-GCPH66C3.js +0 -99
  365. package/dist/block.tk.menu-YDAIYUGC.js +0 -1029
  366. package/dist/block.tk.pgv-RWOZAUGA.js +0 -944
  367. package/dist/brainImaging-ZAFU6U2Y.js +0 -423
  368. package/dist/chunk-34SAHEQU.js +0 -291
  369. package/dist/chunk-3I7TUGLD.js +0 -226
  370. package/dist/chunk-3JL2HBGE.js +0 -2824
  371. package/dist/chunk-5GMXV4VC.js +0 -5010
  372. package/dist/chunk-5ITQVR2P.js +0 -102
  373. package/dist/chunk-5TKVUSMQ.js +0 -217
  374. package/dist/chunk-5YF3LGLX.js +0 -2327
  375. package/dist/chunk-76PGYH5J.js +0 -203
  376. package/dist/chunk-7JXLWRVZ.js +0 -2681
  377. package/dist/chunk-7YWFO7CJ.js +0 -6364
  378. package/dist/chunk-B3M3AZPL.js +0 -215
  379. package/dist/chunk-BLKF2SE6.js +0 -37
  380. package/dist/chunk-CA2AOIHR.js +0 -142
  381. package/dist/chunk-DBFPAZG3.js +0 -1943
  382. package/dist/chunk-DCJUDSRM.js +0 -446
  383. package/dist/chunk-DNM2DKYE.js +0 -1332
  384. package/dist/chunk-DVH6K2NP.js +0 -14
  385. package/dist/chunk-DYVY7D67.js +0 -263
  386. package/dist/chunk-G6WVVRDA.js +0 -339
  387. package/dist/chunk-GERVYIL4.js +0 -1210
  388. package/dist/chunk-GKBMGKYN.js +0 -117
  389. package/dist/chunk-GRNZWYOJ.js +0 -815
  390. package/dist/chunk-GS7SQKJT.js +0 -102
  391. package/dist/chunk-H5NNQO2V.js +0 -55
  392. package/dist/chunk-HONXMORI.js +0 -368
  393. package/dist/chunk-HURY7IJE.js +0 -4272
  394. package/dist/chunk-I2RRWDYV.js +0 -514
  395. package/dist/chunk-IFA3COXY.js +0 -185
  396. package/dist/chunk-IFA3COXY.js.map +0 -7
  397. package/dist/chunk-IOQV2VX3.js +0 -2786
  398. package/dist/chunk-IWMWT7O7.js +0 -276
  399. package/dist/chunk-JSEMZPAO.js +0 -34
  400. package/dist/chunk-K7UIR22L.js +0 -229
  401. package/dist/chunk-L75HW457.js +0 -824
  402. package/dist/chunk-LO6OYUDE.js +0 -158
  403. package/dist/chunk-LO6OYUDE.js.map +0 -7
  404. package/dist/chunk-LRZ463XM.js +0 -612
  405. package/dist/chunk-LRZ463XM.js.map +0 -7
  406. package/dist/chunk-MQQRTH4U.js +0 -302
  407. package/dist/chunk-NPEQHLVG.js +0 -158
  408. package/dist/chunk-NPTHYZY4.js +0 -205
  409. package/dist/chunk-NZDQV7ZO.js +0 -50
  410. package/dist/chunk-O7Z7SQCS.js +0 -534
  411. package/dist/chunk-OSWTQVAX.js +0 -477
  412. package/dist/chunk-OY4NTIUQ.js +0 -1272
  413. package/dist/chunk-OY4NTIUQ.js.map +0 -7
  414. package/dist/chunk-PSQETQZZ.js +0 -182
  415. package/dist/chunk-QWOZ2QDM.js +0 -386
  416. package/dist/chunk-QZVCFDJ7.js +0 -736
  417. package/dist/chunk-R4BCNWKE.js +0 -54
  418. package/dist/chunk-S6H6OUOA.js +0 -283
  419. package/dist/chunk-S6OIEQXG.js +0 -443
  420. package/dist/chunk-SDMZUHN7.js +0 -482
  421. package/dist/chunk-SKZ37PND.js +0 -129
  422. package/dist/chunk-STQU7XZV.js +0 -1814
  423. package/dist/chunk-STQU7XZV.js.map +0 -7
  424. package/dist/chunk-SY63VCQB.js +0 -95
  425. package/dist/chunk-TEQ2PC7Z.js +0 -100
  426. package/dist/chunk-TRY57CMI.js +0 -148
  427. package/dist/chunk-TXJTOTIQ.js +0 -1102
  428. package/dist/chunk-UK3PTE3P.js +0 -20752
  429. package/dist/chunk-UK3PTE3P.js.map +0 -7
  430. package/dist/chunk-UT2PKKQ4.js +0 -254
  431. package/dist/chunk-VDPQ2ZV2.js +0 -95
  432. package/dist/chunk-VJH3NP42.js +0 -54
  433. package/dist/chunk-W3LVNVG3.js +0 -272
  434. package/dist/chunk-WC62ZAWT.js +0 -293
  435. package/dist/chunk-WKMZ4ZQ3.js +0 -407
  436. package/dist/chunk-X27TRPIZ.js +0 -119
  437. package/dist/chunk-XIIAQQ4T.js +0 -1179
  438. package/dist/chunk-XOCO3LVN.js +0 -317
  439. package/dist/chunk-XOCO3LVN.js.map +0 -7
  440. package/dist/chunk-XUFWJJM5.js +0 -454
  441. package/dist/chunk-Y2Z4XDHA.js +0 -170
  442. package/dist/chunk-YFKJ2TMX.js +0 -194
  443. package/dist/chunk-YPVFTNLG.js +0 -228
  444. package/dist/chunk-YPVFTNLG.js.map +0 -7
  445. package/dist/condition-XKEW2LCM.js +0 -332
  446. package/dist/controls-4RFWTHFH.js +0 -41
  447. package/dist/controls.config-VHH2IGCI.js +0 -39
  448. package/dist/correlation-HGAMIIPH.js +0 -99
  449. package/dist/cuminc-EHW6IH6V.js +0 -1149
  450. package/dist/cuminc.integration.spec-B3EOIE4K.js +0 -678
  451. package/dist/customdata.inputui-IPJHL7BX.js +0 -289
  452. package/dist/dataDownload-GYFEC6XG.js +0 -330
  453. package/dist/dataDownload.integration.spec-V7WQ6AMV.js +0 -193
  454. package/dist/databrowser.ui-TFAJVFFF.js +0 -433
  455. package/dist/dictionary-2ZSMOJCN.js +0 -111
  456. package/dist/dnaMethylation-RHNO5DAC.js +0 -38
  457. package/dist/dnaMethylation.integration.spec-ET7OLMNC.js +0 -203
  458. package/dist/dofetch-UGCQ3OVW.js +0 -51
  459. package/dist/e2pca-SLRCDKF5.js +0 -350
  460. package/dist/ep-FOFTKVBH.js +0 -1256
  461. package/dist/expclust.gdc.spec-FNOOSLCC.js +0 -307
  462. package/dist/facet-UO5A7AGS.js +0 -521
  463. package/dist/forms2-SFV4HHBA.js +0 -534
  464. package/dist/gb-3KR6MAGB.js +0 -88
  465. package/dist/geneExpClustering-BCDXKSNU.js +0 -249
  466. package/dist/geneExpression-5UPKETEZ.js +0 -313
  467. package/dist/geneExpression-CXQ5HFEP.js +0 -38
  468. package/dist/geneExpression.unit.spec-7FVVD4UF.js +0 -102
  469. package/dist/geneORA-UC45CL2U.js +0 -278
  470. package/dist/geneRanking-OOQWVUIG.js +0 -551
  471. package/dist/geneVariant-BQFB7LKZ.js +0 -39
  472. package/dist/geneVariant-BYN7EWTT.js +0 -41
  473. package/dist/geneVariant.integration.spec-OESHXKBV.js +0 -198
  474. package/dist/genefusion.ui-TOSPIGTE.js +0 -309
  475. package/dist/geneset-57DECCND.js +0 -208
  476. package/dist/genomeBrowser.spec-CQP5JG35.js +0 -281
  477. package/dist/grin2-3RDGRV4Z.js +0 -846
  478. package/dist/grin2-3RDGRV4Z.js.map +0 -7
  479. package/dist/grin2-G4MBI5UC.js +0 -1560
  480. package/dist/gsea-VYAXSBM4.js +0 -47
  481. package/dist/hierCluster-4QKMY7GP.js +0 -59
  482. package/dist/hierCluster-GFPFVB3Q.js +0 -63
  483. package/dist/hierCluster.config-3A24DEKA.js +0 -40
  484. package/dist/hierCluster.integration.spec-6NTJYVN4.js +0 -395
  485. package/dist/hierCluster.interactivity-B2T6WS5R.js +0 -54
  486. package/dist/hierCluster.renderers-R3RLK6BI.js +0 -21
  487. package/dist/imagePlot-YZBZRENG.js +0 -163
  488. package/dist/importPlot-LIXKD3WJ.js +0 -8
  489. package/dist/isoformExpression-ZZ5DL6AE.js +0 -40
  490. package/dist/isoformExpression.unit.spec-IH4247TT.js +0 -208
  491. package/dist/launch.adhoc-3YWVAF7R.js +0 -42
  492. package/dist/leftlabel.sample-XFM45ZKO.js +0 -260
  493. package/dist/lollipop-7K5R5KHB.js +0 -171
  494. package/dist/maf-SQVJHNUY.js +0 -452
  495. package/dist/maftimeline-RCPASNN2.js +0 -593
  496. package/dist/matrix-KHTDB56P.js +0 -63
  497. package/dist/matrix-YTHWIMBP.js +0 -58
  498. package/dist/matrix.cells-KNDVYI2S.js +0 -28
  499. package/dist/matrix.config-6BHBCTXE.js +0 -41
  500. package/dist/matrix.data-VWJQ7N4L.js +0 -25
  501. package/dist/matrix.groups-5AUHEO52.js +0 -27
  502. package/dist/matrix.integration.spec-Q2BXNCUO.js +0 -3072
  503. package/dist/matrix.interactivity-FEEWY34M.js +0 -42
  504. package/dist/matrix.layout-FWWM6QQO.js +0 -44
  505. package/dist/matrix.legend-QT3PMREX.js +0 -22
  506. package/dist/matrix.renderers-M6MJO5IU.js +0 -38
  507. package/dist/matrix.serieses-NTKMKT22.js +0 -21
  508. package/dist/matrix.sort-TTHPJ4XC.js +0 -27
  509. package/dist/matrix.sort.unit.spec-XZI2KPNC.js +0 -472
  510. package/dist/matrix.sorterUi.unit.spec-6FVHTGSN.js +0 -342
  511. package/dist/mavb-FZDN27QY.js +0 -732
  512. package/dist/mds.fimo-SSFKQ3BH.js +0 -518
  513. package/dist/mds.samplescatterplot-BMTTX3TB.js +0 -1550
  514. package/dist/mds.survivalplot-PL75RDYI.js +0 -483
  515. package/dist/numericDictTermCluster-NJUXCQYH.js +0 -72
  516. package/dist/oncomatrix-BZDCCEWH.js +0 -295
  517. package/dist/oncomatrix.spec-5A4A4JLV.js +0 -448
  518. package/dist/plot.2dvaf-AC7LW56S.js +0 -377
  519. package/dist/plot.app-DOOWDQ3U.js +0 -41
  520. package/dist/plot.barplot-RNJWREG5.js +0 -102
  521. package/dist/plot.boxplot-CRAEUBQF.js +0 -152
  522. package/dist/plot.brainImaging-ZESEULN6.js +0 -51
  523. package/dist/plot.disco-B4KBP6RK.js +0 -102
  524. package/dist/plot.dzi-2UMRV6IF.js +0 -33
  525. package/dist/plot.ssgq-FVZ27Z2K.js +0 -139
  526. package/dist/plot.vaf2cov-3OXCIEAX.js +0 -259
  527. package/dist/plot.wsi-UKTLZSYW.js +0 -36
  528. package/dist/polar2-D6T34ONJ.js +0 -226
  529. package/dist/polar2-D6T34ONJ.js.map +0 -7
  530. package/dist/profileForms-SBNPRIFT.js +0 -441
  531. package/dist/profilePlot-PPI4IDP4.js +0 -54
  532. package/dist/proteinView-URQEZSH5.js +0 -1320
  533. package/dist/proteinView-URQEZSH5.js.map +0 -7
  534. package/dist/qualitative-4O6KAGEA.js +0 -43
  535. package/dist/radar2-ICKCJY4T.js +0 -321
  536. package/dist/radarFacility2-HEBBSM3T.js +0 -329
  537. package/dist/regression-YFQJE2EP.js +0 -56
  538. package/dist/regression.inputs-A2JVBVZ7.js +0 -48
  539. package/dist/regression.inputs.term-CTVNS5MO.js +0 -48
  540. package/dist/regression.inputs.values.table-X7SI6EDO.js +0 -45
  541. package/dist/regression.integration.spec-NRDEVBWS.js +0 -784
  542. package/dist/regression.results-XVB6CIGW.js +0 -40
  543. package/dist/regression.spec-TNB5HBY5.js +0 -708
  544. package/dist/report-5VDIBC2W.js +0 -222
  545. package/dist/sampleScatter.spec-XDW7SCYA.js +0 -202
  546. package/dist/sampleView-FLUSGZCM.js +0 -48
  547. package/dist/samplelst-4WPG5UBN.js +0 -111
  548. package/dist/samplematrix-YJGMSXUJ.js +0 -2198
  549. package/dist/sc-DHU5KSEJ.js +0 -86
  550. package/dist/scatter-UZMWX3DU.js +0 -854
  551. package/dist/scatter.integration.spec-YX5OC3L2.js +0 -1196
  552. package/dist/selectGenomeWithTklst-BVBMVRMQ.js +0 -134
  553. package/dist/singleCellCellType-DADK5UKZ.js +0 -38
  554. package/dist/singleCellCellType.unit.spec-X25RMBJ3.js +0 -160
  555. package/dist/singleCellGeneExpression-3UEZWI4E.js +0 -38
  556. package/dist/singleCellGeneExpression.unit.spec-5GU3JWE6.js +0 -153
  557. package/dist/singleCellPlot-TFRZG73T.js +0 -54
  558. package/dist/singlecell-HQH6EWJO.js +0 -1572
  559. package/dist/singlecell-KR6JYFAY.js +0 -86
  560. package/dist/snp-ACIZ7D5X.js +0 -38
  561. package/dist/snp.unit.spec-653HGJBM.js +0 -176
  562. package/dist/snplocus-AH6KJCVN.js +0 -208
  563. package/dist/spliceevent.a53ss.diagram-MKJLJDOG.js +0 -151
  564. package/dist/spliceevent.exonskip.diagram-PSEVCDH4.js +0 -277
  565. package/dist/spliceevent.noeventdiagram-T2LHGFN7.js +0 -460
  566. package/dist/ssGSEA-QFMYBITZ.js +0 -38
  567. package/dist/ssGSEA.unit.spec-SQW7KFWE.js +0 -88
  568. package/dist/summarizeCnvGeneexp-EVRTBY3L.js +0 -163
  569. package/dist/summarizeGeneexpSurvival-O3MGRS6K.js +0 -108
  570. package/dist/summarizeMutationCnv-RZ2DZ2XO.js +0 -164
  571. package/dist/summarizeMutationDiagnosis-V2DISQTC.js +0 -40
  572. package/dist/summarizeMutationSurvival-FTTWJBUG.js +0 -99
  573. package/dist/summary-QKBTZINC.js +0 -49
  574. package/dist/summary.integration.spec-54HA7BC2.js +0 -414
  575. package/dist/summaryInput-4RLZT6RW.js +0 -235
  576. package/dist/sunburst-SMKD45XD.js +0 -284
  577. package/dist/survival-BAW5ME6J.js +0 -46
  578. package/dist/survival-YQNA3WP7.js +0 -58
  579. package/dist/survival.integration.spec-2AHXNMH2.js +0 -821
  580. package/dist/svgraph-5Z7VAIVR.js +0 -1387
  581. package/dist/svmr-PHD76RV4.js +0 -3842
  582. package/dist/table-GMRAOIWZ.js +0 -200
  583. package/dist/termCollection-MEBY34TJ.js +0 -179
  584. package/dist/termCollection-QLKTRXUR.js +0 -38
  585. package/dist/termCollection.unit.spec-6B53SW2Q.js +0 -208
  586. package/dist/tk-X46SEOL7.js +0 -46
  587. package/dist/tp.ui-XV7CL7CA.js +0 -1459
  588. package/dist/tvs.dt-U6SIZTXW.js +0 -39
  589. package/dist/tvs.dtcnv.categorical-6YGEKMHW.js +0 -40
  590. package/dist/tvs.dtcnv.continuous-CQFEENBO.js +0 -72
  591. package/dist/tvs.dtfusion-NOBT2JPI.js +0 -40
  592. package/dist/tvs.dtsnvindel-6GTCSVAV.js +0 -40
  593. package/dist/tvs.dtsv-PMI4YVI5.js +0 -40
  594. package/dist/tvs.samplelst-HVNYKHXG.js +0 -104
  595. package/dist/tvs.termCollection-EWGTT75Z.js +0 -159
  596. package/dist/violin-MKWRB25Z.js +0 -46
  597. package/dist/violin.integration.spec-CNWJ43SD.js +0 -1425
  598. package/dist/violin.interactivity-UXOMTGSD.js +0 -38
  599. package/dist/violin.renderer-67Q6YGYQ.js +0 -40
  600. package/dist/vocabulary-AKXE7SNU.js +0 -41
  601. /package/dist/{2dmaf-ZCIOFNSJ.js.map → 2dmaf-3D2KTSAN.js.map} +0 -0
  602. /package/dist/{AIProjectAdmin-Z7EA2Y74.js.map → AIProjectAdmin-IGPLMREH.js.map} +0 -0
  603. /package/dist/{AppHeader-4AZ76NN3.js.map → AppHeader-WT5AXGLC.js.map} +0 -0
  604. /package/dist/{BoxPlot-BFVBNQNR.js.map → BoxPlot-AUFITBDB.js.map} +0 -0
  605. /package/dist/{CorrelationVolcano-L5VSJWJF.js.map → CorrelationVolcano-4AZ6Y42O.js.map} +0 -0
  606. /package/dist/{DE-7TPZWAKI.js.map → DE-MWYRMM47.js.map} +0 -0
  607. /package/dist/{DEinput-WQJEXWGY.js.map → DEinput-F3JFK4HF.js.map} +0 -0
  608. /package/dist/{DifferentialAnalysis-FPG7RDNN.js.map → DifferentialAnalysis-ZAVYUYOL.js.map} +0 -0
  609. /package/dist/{Disco-WP2BBL5V.js.map → Disco-Q3O3A2CU.js.map} +0 -0
  610. /package/dist/{Disco.UI-ZYSUA57E.js.map → Disco.UI-QIKPQKTY.js.map} +0 -0
  611. /package/dist/{DmrPlot-V3E7JMPN.js.map → DmrPlot-D7TPJXWH.js.map} +0 -0
  612. /package/dist/{GB-BKLVGYWP.js.map → GB-K57ZGFLA.js.map} +0 -0
  613. /package/dist/{GeneExpInput-7V72SRDT.js.map → GeneExpInput-7UYFJHSX.js.map} +0 -0
  614. /package/dist/{HicApp-IT5YNABL.js.map → HicApp-HPIHJDLQ.js.map} +0 -0
  615. /package/dist/{NumBinaryEditor-7E37MVQO.js.map → NumBinaryEditor-ENHACYTK.js.map} +0 -0
  616. /package/dist/{NumBinaryEditor.unit.spec-C3WVAXMY.js.map → NumBinaryEditor.unit.spec-TNIRFCTU.js.map} +0 -0
  617. /package/dist/{NumContEditor-FEVZJUB4.js.map → NumContEditor-Y4CDFJM2.js.map} +0 -0
  618. /package/dist/{NumContEditor.unit.spec-4IGP657P.js.map → NumContEditor.unit.spec-KES6AJHN.js.map} +0 -0
  619. /package/dist/{NumCustomBinEditor-QC4D63Y5.js.map → NumCustomBinEditor-TRXZ52MH.js.map} +0 -0
  620. /package/dist/{NumCustomBinEditor.unit.spec-USLECMWI.js.map → NumCustomBinEditor.unit.spec-2V5X5YK4.js.map} +0 -0
  621. /package/dist/{NumDiscreteEditor-PRAI76XQ.js.map → NumDiscreteEditor-RXXL3AQ4.js.map} +0 -0
  622. /package/dist/{NumDiscreteEditor.unit.spec-IWL3OCTC.js.map → NumDiscreteEditor.unit.spec-EAFEI66P.js.map} +0 -0
  623. /package/dist/{NumRegularBinEditor-ESL2HAD7.js.map → NumRegularBinEditor-KHIFP2L7.js.map} +0 -0
  624. /package/dist/{NumRegularBinEditor.unit.spec-7LLZAW4Z.js.map → NumRegularBinEditor.unit.spec-ADRNCEAV.js.map} +0 -0
  625. /package/dist/{NumSplineEditor-JZOROO36.js.map → NumSplineEditor-33SUCGNJ.js.map} +0 -0
  626. /package/dist/{NumSplineEditor.unit.spec-3SHSXTC7.js.map → NumSplineEditor.unit.spec-7KTMNABP.js.map} +0 -0
  627. /package/dist/{NumericDensity-SGYRBDCQ.js.map → NumericDensity-PWWJBZUA.js.map} +0 -0
  628. /package/dist/{NumericDensity.unit.spec-Y6JMH6IR.js.map → NumericDensity.unit.spec-V5C43FCP.js.map} +0 -0
  629. /package/dist/{NumericHandler-YG7AMINA.js.map → NumericHandler-A6QSQAPT.js.map} +0 -0
  630. /package/dist/{NumericHandler.unit.spec-CABSMERN.js.map → NumericHandler.unit.spec-SRFEDFCC.js.map} +0 -0
  631. /package/dist/{ProteomeInput-2WPCK72Z.js.map → ProteomeInput-BOI2634T.js.map} +0 -0
  632. /package/dist/{RunChart2-PJWMDWJR.js.map → RunChart2-DJNWYZ5C.js.map} +0 -0
  633. /package/dist/{SC-WVVUFPNU.js.map → SC-ADKHO4MP.js.map} +0 -0
  634. /package/dist/{Volcano-7JI4LUSF.js.map → Volcano-4GJU2666.js.map} +0 -0
  635. /package/dist/{WSIViewer-GDSOEEA6.js.map → WSIViewer-JQKGSN3D.js.map} +0 -0
  636. /package/dist/{WsiSamplesPlot-Z5C3NPF7.js.map → WsiSamplesPlot-PSVYIYI7.js.map} +0 -0
  637. /package/dist/{adSandbox-KQKENDNQ.js.map → adSandbox-AFYF5ULQ.js.map} +0 -0
  638. /package/dist/{app-4OEY56FN.js.map → app-5KDQSFDE.js.map} +0 -0
  639. /package/dist/{app-TGMYXJ4E.js.map → app-PZ5KGBCR.js.map} +0 -0
  640. /package/dist/{bam-3IMX42G5.js.map → bam-AYX4HVPY.js.map} +0 -0
  641. /package/dist/{barchart-44HOJWVS.js.map → barchart-2BMDZGPJ.js.map} +0 -0
  642. /package/dist/{barchart.data-CHNR4XL2.js.map → barchart.data-I33D7SQC.js.map} +0 -0
  643. /package/dist/{barchart.events-XW5OZ5MR.js.map → barchart.events-Z5AL6NU6.js.map} +0 -0
  644. /package/dist/{barchart2-4NU7NWJZ.js.map → barchart2-KFMUPMVS.js.map} +0 -0
  645. /package/dist/{block-OYSZ2JXC.js.map → block-7UW7QCRX.js.map} +0 -0
  646. /package/dist/{block.init-WSIQLW7A.js.map → block.init-CZWCEEID.js.map} +0 -0
  647. /package/dist/{block.mds.expressionrank-2KWOWDW4.js.map → block.mds.expressionrank-2JJYKI2C.js.map} +0 -0
  648. /package/dist/{block.mds.geneboxplot-6ZAD6A5K.js.map → block.mds.geneboxplot-NU45ZP4J.js.map} +0 -0
  649. /package/dist/{block.mds.junction-VQDLHFNG.js.map → block.mds.junction-UVSKHUFR.js.map} +0 -0
  650. /package/dist/{block.mds.svcnv-7OIRG7DQ.js.map → block.mds.svcnv-6JXI63CC.js.map} +0 -0
  651. /package/dist/{block.svg-HXAIFHXM.js.map → block.svg-KAMDKUQX.js.map} +0 -0
  652. /package/dist/{block.tk.aicheck-GTGHCUEN.js.map → block.tk.aicheck-WEKHCRXC.js.map} +0 -0
  653. /package/dist/{block.tk.ase-TAEE2ZHN.js.map → block.tk.ase-MGDGSUQN.js.map} +0 -0
  654. /package/dist/{block.tk.bam-6A26AZ7S.js.map → block.tk.bam-MB2DAFD7.js.map} +0 -0
  655. /package/dist/{block.tk.bedgraphdot-6MYIVRBC.js.map → block.tk.bedgraphdot-VUSURZ6N.js.map} +0 -0
  656. /package/dist/{block.tk.bigwig.ui-GJ7JXRH3.js.map → block.tk.bigwig.ui-WQTN44VK.js.map} +0 -0
  657. /package/dist/{block.tk.hicstraw-3TCDZ2GM.js.map → block.tk.hicstraw-T2JXNKWD.js.map} +0 -0
  658. /package/dist/{block.tk.junction-WDBIP7DK.js.map → block.tk.junction-2JXABLIG.js.map} +0 -0
  659. /package/dist/{block.tk.junction.textmatrixui-QOV3U7AN.js.map → block.tk.junction.textmatrixui-EEB3JUNU.js.map} +0 -0
  660. /package/dist/{block.tk.ld-GCPH66C3.js.map → block.tk.ld-JZBL73US.js.map} +0 -0
  661. /package/dist/{block.tk.menu-YDAIYUGC.js.map → block.tk.menu-VQEPTCE6.js.map} +0 -0
  662. /package/dist/{block.tk.pgv-RWOZAUGA.js.map → block.tk.pgv-PYOPQDYL.js.map} +0 -0
  663. /package/dist/{brainImaging-ZAFU6U2Y.js.map → brainImaging-SYJZZN3K.js.map} +0 -0
  664. /package/dist/{chunk-SKZ37PND.js.map → chunk-26XX7RVV.js.map} +0 -0
  665. /package/dist/{chunk-R4BCNWKE.js.map → chunk-2QWELHBX.js.map} +0 -0
  666. /package/dist/{chunk-XIIAQQ4T.js.map → chunk-3MGF2FZ2.js.map} +0 -0
  667. /package/dist/{chunk-VDPQ2ZV2.js.map → chunk-3S7ZWGND.js.map} +0 -0
  668. /package/dist/{chunk-76PGYH5J.js.map → chunk-4VCBJC3B.js.map} +0 -0
  669. /package/dist/{chunk-NZDQV7ZO.js.map → chunk-53WLN75I.js.map} +0 -0
  670. /package/dist/{chunk-DYVY7D67.js.map → chunk-5GOZWJ7S.js.map} +0 -0
  671. /package/dist/{chunk-TRY57CMI.js.map → chunk-5WKIMNGG.js.map} +0 -0
  672. /package/dist/{chunk-GKBMGKYN.js.map → chunk-5WM3CC5O.js.map} +0 -0
  673. /package/dist/{chunk-GERVYIL4.js.map → chunk-6GI6MDYV.js.map} +0 -0
  674. /package/dist/{chunk-SDMZUHN7.js.map → chunk-7BOPMRFX.js.map} +0 -0
  675. /package/dist/{chunk-5YF3LGLX.js.map → chunk-BYOIIMNZ.js.map} +0 -0
  676. /package/dist/{chunk-S6OIEQXG.js.map → chunk-CGRYUKXD.js.map} +0 -0
  677. /package/dist/{chunk-5GMXV4VC.js.map → chunk-CK47VCG5.js.map} +0 -0
  678. /package/dist/{chunk-DCJUDSRM.js.map → chunk-CRUBP5PT.js.map} +0 -0
  679. /package/dist/{chunk-S6H6OUOA.js.map → chunk-CW2Q5EA7.js.map} +0 -0
  680. /package/dist/{chunk-NPEQHLVG.js.map → chunk-E7UJR2YK.js.map} +0 -0
  681. /package/dist/{chunk-B3M3AZPL.js.map → chunk-ENZZUMVY.js.map} +0 -0
  682. /package/dist/{chunk-PSQETQZZ.js.map → chunk-FRGACC2C.js.map} +0 -0
  683. /package/dist/{chunk-3I7TUGLD.js.map → chunk-FZ63VOSX.js.map} +0 -0
  684. /package/dist/{chunk-TXJTOTIQ.js.map → chunk-GGRR4NXW.js.map} +0 -0
  685. /package/dist/{chunk-3JL2HBGE.js.map → chunk-I2LTCBTM.js.map} +0 -0
  686. /package/dist/{chunk-5TKVUSMQ.js.map → chunk-J5SV3MFB.js.map} +0 -0
  687. /package/dist/{chunk-IWMWT7O7.js.map → chunk-J7X5JRRI.js.map} +0 -0
  688. /package/dist/{chunk-TEQ2PC7Z.js.map → chunk-JDPU6NES.js.map} +0 -0
  689. /package/dist/{chunk-QWOZ2QDM.js.map → chunk-JEZIKGZI.js.map} +0 -0
  690. /package/dist/{chunk-I2RRWDYV.js.map → chunk-JPH5EVVW.js.map} +0 -0
  691. /package/dist/{chunk-DNM2DKYE.js.map → chunk-KQYXXICJ.js.map} +0 -0
  692. /package/dist/{chunk-5ITQVR2P.js.map → chunk-L72Y4QA2.js.map} +0 -0
  693. /package/dist/{chunk-7JXLWRVZ.js.map → chunk-LK3BBGUJ.js.map} +0 -0
  694. /package/dist/{chunk-7YWFO7CJ.js.map → chunk-LYPDXJPX.js.map} +0 -0
  695. /package/dist/{chunk-Y2Z4XDHA.js.map → chunk-MEY5OBDJ.js.map} +0 -0
  696. /package/dist/{chunk-K7UIR22L.js.map → chunk-MW3PIRGF.js.map} +0 -0
  697. /package/dist/{chunk-GS7SQKJT.js.map → chunk-NNMOXQTU.js.map} +0 -0
  698. /package/dist/{chunk-34SAHEQU.js.map → chunk-NV6JVKDN.js.map} +0 -0
  699. /package/dist/{chunk-DBFPAZG3.js.map → chunk-OMBRJBQV.js.map} +0 -0
  700. /package/dist/{chunk-CA2AOIHR.js.map → chunk-PEBOVJSD.js.map} +0 -0
  701. /package/dist/{chunk-SY63VCQB.js.map → chunk-PJXF4IRZ.js.map} +0 -0
  702. /package/dist/{chunk-HURY7IJE.js.map → chunk-PKCYPYWW.js.map} +0 -0
  703. /package/dist/{chunk-GRNZWYOJ.js.map → chunk-QIY7HLC5.js.map} +0 -0
  704. /package/dist/{chunk-G6WVVRDA.js.map → chunk-QMI2X23H.js.map} +0 -0
  705. /package/dist/{chunk-XUFWJJM5.js.map → chunk-QOE7MB4X.js.map} +0 -0
  706. /package/dist/{chunk-JSEMZPAO.js.map → chunk-QSMU6K5D.js.map} +0 -0
  707. /package/dist/{chunk-VJH3NP42.js.map → chunk-RBIBHQTL.js.map} +0 -0
  708. /package/dist/{chunk-HONXMORI.js.map → chunk-RG5ABFA2.js.map} +0 -0
  709. /package/dist/{chunk-WKMZ4ZQ3.js.map → chunk-RRJGFE2S.js.map} +0 -0
  710. /package/dist/{chunk-DVH6K2NP.js.map → chunk-RTTPFI7N.js.map} +0 -0
  711. /package/dist/{chunk-NPTHYZY4.js.map → chunk-T2CG7BVN.js.map} +0 -0
  712. /package/dist/{chunk-WC62ZAWT.js.map → chunk-U3DKYKV7.js.map} +0 -0
  713. /package/dist/{chunk-BLKF2SE6.js.map → chunk-UQHM3F6B.js.map} +0 -0
  714. /package/dist/{chunk-O7Z7SQCS.js.map → chunk-VXKO2ONI.js.map} +0 -0
  715. /package/dist/{chunk-W3LVNVG3.js.map → chunk-W3MCIBAP.js.map} +0 -0
  716. /package/dist/{chunk-QZVCFDJ7.js.map → chunk-WH236OZ6.js.map} +0 -0
  717. /package/dist/{chunk-UT2PKKQ4.js.map → chunk-WMELUFVS.js.map} +0 -0
  718. /package/dist/{chunk-X27TRPIZ.js.map → chunk-WS3NUPNV.js.map} +0 -0
  719. /package/dist/{chunk-L75HW457.js.map → chunk-XIQNS2HN.js.map} +0 -0
  720. /package/dist/{chunk-IOQV2VX3.js.map → chunk-YKPLUIWP.js.map} +0 -0
  721. /package/dist/{chunk-MQQRTH4U.js.map → chunk-YRQ5V7DQ.js.map} +0 -0
  722. /package/dist/{chunk-YFKJ2TMX.js.map → chunk-ZK226W6V.js.map} +0 -0
  723. /package/dist/{chunk-H5NNQO2V.js.map → chunk-ZTOABVVA.js.map} +0 -0
  724. /package/dist/{chunk-OSWTQVAX.js.map → chunk-ZUTPAYSS.js.map} +0 -0
  725. /package/dist/{condition-XKEW2LCM.js.map → condition-SZZS77TK.js.map} +0 -0
  726. /package/dist/{controls-4RFWTHFH.js.map → controls-ZBDTHWOT.js.map} +0 -0
  727. /package/dist/{controls.config-VHH2IGCI.js.map → controls.config-MTBN2XPW.js.map} +0 -0
  728. /package/dist/{correlation-HGAMIIPH.js.map → correlation-DHEH5FT4.js.map} +0 -0
  729. /package/dist/{cuminc-EHW6IH6V.js.map → cuminc-TM3SMOJ2.js.map} +0 -0
  730. /package/dist/{cuminc.integration.spec-B3EOIE4K.js.map → cuminc.integration.spec-NEBXRMKB.js.map} +0 -0
  731. /package/dist/{customdata.inputui-IPJHL7BX.js.map → customdata.inputui-5ZEKFWYV.js.map} +0 -0
  732. /package/dist/{dataDownload-GYFEC6XG.js.map → dataDownload-XZ4AC6QY.js.map} +0 -0
  733. /package/dist/{dataDownload.integration.spec-V7WQ6AMV.js.map → dataDownload.integration.spec-O4YQKAOJ.js.map} +0 -0
  734. /package/dist/{databrowser.ui-TFAJVFFF.js.map → databrowser.ui-V4HQMZ4X.js.map} +0 -0
  735. /package/dist/{dictionary-2ZSMOJCN.js.map → dictionary-RAHC3OA7.js.map} +0 -0
  736. /package/dist/{dnaMethylation-RHNO5DAC.js.map → dnaMethylation-ZUHHG7Q2.js.map} +0 -0
  737. /package/dist/{dnaMethylation.integration.spec-ET7OLMNC.js.map → dnaMethylation.integration.spec-JZ6ZSF5L.js.map} +0 -0
  738. /package/dist/{dofetch-UGCQ3OVW.js.map → dofetch-77N4NDDM.js.map} +0 -0
  739. /package/dist/{e2pca-SLRCDKF5.js.map → e2pca-K7IFKNTZ.js.map} +0 -0
  740. /package/dist/{ep-FOFTKVBH.js.map → ep-4OIFIMZH.js.map} +0 -0
  741. /package/dist/{expclust.gdc.spec-FNOOSLCC.js.map → expclust.gdc.spec-OJD7ENKA.js.map} +0 -0
  742. /package/dist/{facet-UO5A7AGS.js.map → facet-SZAF3QW6.js.map} +0 -0
  743. /package/dist/{forms2-SFV4HHBA.js.map → forms2-TBRF2RI5.js.map} +0 -0
  744. /package/dist/{gb-3KR6MAGB.js.map → gb-I5J74SHP.js.map} +0 -0
  745. /package/dist/{geneExpClustering-BCDXKSNU.js.map → geneExpClustering-OSS4OCN6.js.map} +0 -0
  746. /package/dist/{geneExpression-CXQ5HFEP.js.map → geneExpression-IHVMJGOG.js.map} +0 -0
  747. /package/dist/{geneExpression-5UPKETEZ.js.map → geneExpression-WKYVSE45.js.map} +0 -0
  748. /package/dist/{geneExpression.unit.spec-7FVVD4UF.js.map → geneExpression.unit.spec-QP6CLYHP.js.map} +0 -0
  749. /package/dist/{geneORA-UC45CL2U.js.map → geneORA-65PHOTHN.js.map} +0 -0
  750. /package/dist/{geneRanking-OOQWVUIG.js.map → geneRanking-XCU3NX4J.js.map} +0 -0
  751. /package/dist/{geneVariant-BQFB7LKZ.js.map → geneVariant-CZM3XP7X.js.map} +0 -0
  752. /package/dist/{geneVariant-BYN7EWTT.js.map → geneVariant-IMDFPV2L.js.map} +0 -0
  753. /package/dist/{geneVariant.integration.spec-OESHXKBV.js.map → geneVariant.integration.spec-FOONVTYD.js.map} +0 -0
  754. /package/dist/{genefusion.ui-TOSPIGTE.js.map → genefusion.ui-UZM2YGIR.js.map} +0 -0
  755. /package/dist/{geneset-57DECCND.js.map → geneset-IGG77MNZ.js.map} +0 -0
  756. /package/dist/{genomeBrowser.spec-CQP5JG35.js.map → genomeBrowser.spec-CN2XNZQF.js.map} +0 -0
  757. /package/dist/{grin2-G4MBI5UC.js.map → grin2-367QGSOU.js.map} +0 -0
  758. /package/dist/{gsea-VYAXSBM4.js.map → gsea-RJ767G5U.js.map} +0 -0
  759. /package/dist/{hierCluster-4QKMY7GP.js.map → hierCluster-3D425AUU.js.map} +0 -0
  760. /package/dist/{hierCluster-GFPFVB3Q.js.map → hierCluster-GIIB6OEC.js.map} +0 -0
  761. /package/dist/{hierCluster.config-3A24DEKA.js.map → hierCluster.config-ENEOWYOS.js.map} +0 -0
  762. /package/dist/{hierCluster.integration.spec-6NTJYVN4.js.map → hierCluster.integration.spec-IOA3PVAN.js.map} +0 -0
  763. /package/dist/{hierCluster.interactivity-B2T6WS5R.js.map → hierCluster.interactivity-VITUF5RM.js.map} +0 -0
  764. /package/dist/{hierCluster.renderers-R3RLK6BI.js.map → hierCluster.renderers-G3274UYA.js.map} +0 -0
  765. /package/dist/{imagePlot-YZBZRENG.js.map → imagePlot-7VH7VFWD.js.map} +0 -0
  766. /package/dist/{importPlot-LIXKD3WJ.js.map → importPlot-OKOYX2NU.js.map} +0 -0
  767. /package/dist/{isoformExpression-ZZ5DL6AE.js.map → isoformExpression-4SJQZFLP.js.map} +0 -0
  768. /package/dist/{isoformExpression.unit.spec-IH4247TT.js.map → isoformExpression.unit.spec-3MQQZEPZ.js.map} +0 -0
  769. /package/dist/{launch.adhoc-3YWVAF7R.js.map → launch.adhoc-MQKVVUV7.js.map} +0 -0
  770. /package/dist/{leftlabel.sample-XFM45ZKO.js.map → leftlabel.sample-JPE6CXZU.js.map} +0 -0
  771. /package/dist/{lollipop-7K5R5KHB.js.map → lollipop-DMM3QYKI.js.map} +0 -0
  772. /package/dist/{maf-SQVJHNUY.js.map → maf-TQKKVLNR.js.map} +0 -0
  773. /package/dist/{maftimeline-RCPASNN2.js.map → maftimeline-BXBAXKAI.js.map} +0 -0
  774. /package/dist/{matrix-KHTDB56P.js.map → matrix-AWVEEUKZ.js.map} +0 -0
  775. /package/dist/{matrix-YTHWIMBP.js.map → matrix-N3YUJXLP.js.map} +0 -0
  776. /package/dist/{matrix.cells-KNDVYI2S.js.map → matrix.cells-E3LEVA7U.js.map} +0 -0
  777. /package/dist/{matrix.config-6BHBCTXE.js.map → matrix.config-QPNAC2EY.js.map} +0 -0
  778. /package/dist/{matrix.data-VWJQ7N4L.js.map → matrix.data-FIQGPFTI.js.map} +0 -0
  779. /package/dist/{matrix.groups-5AUHEO52.js.map → matrix.groups-BGMZZ6CM.js.map} +0 -0
  780. /package/dist/{matrix.integration.spec-Q2BXNCUO.js.map → matrix.integration.spec-OA3FJ2PN.js.map} +0 -0
  781. /package/dist/{matrix.interactivity-FEEWY34M.js.map → matrix.interactivity-LKLF5ZQN.js.map} +0 -0
  782. /package/dist/{matrix.layout-FWWM6QQO.js.map → matrix.layout-ORYBQUKT.js.map} +0 -0
  783. /package/dist/{matrix.legend-QT3PMREX.js.map → matrix.legend-RJAFOZHQ.js.map} +0 -0
  784. /package/dist/{matrix.renderers-M6MJO5IU.js.map → matrix.renderers-TLZSYHZR.js.map} +0 -0
  785. /package/dist/{matrix.serieses-NTKMKT22.js.map → matrix.serieses-GJWHSBG4.js.map} +0 -0
  786. /package/dist/{matrix.sort-TTHPJ4XC.js.map → matrix.sort-KIJENIT2.js.map} +0 -0
  787. /package/dist/{matrix.sort.unit.spec-XZI2KPNC.js.map → matrix.sort.unit.spec-DRFCEZGX.js.map} +0 -0
  788. /package/dist/{matrix.sorterUi.unit.spec-6FVHTGSN.js.map → matrix.sorterUi.unit.spec-QQH3ITTW.js.map} +0 -0
  789. /package/dist/{mavb-FZDN27QY.js.map → mavb-ZK5UKXEO.js.map} +0 -0
  790. /package/dist/{mds.fimo-SSFKQ3BH.js.map → mds.fimo-MHPHQB4X.js.map} +0 -0
  791. /package/dist/{mds.samplescatterplot-BMTTX3TB.js.map → mds.samplescatterplot-LRL5SXJ5.js.map} +0 -0
  792. /package/dist/{mds.survivalplot-PL75RDYI.js.map → mds.survivalplot-R5N6OHZ2.js.map} +0 -0
  793. /package/dist/{numericDictTermCluster-NJUXCQYH.js.map → numericDictTermCluster-OMXIURRD.js.map} +0 -0
  794. /package/dist/{oncomatrix-BZDCCEWH.js.map → oncomatrix-FA3ELKNE.js.map} +0 -0
  795. /package/dist/{oncomatrix.spec-5A4A4JLV.js.map → oncomatrix.spec-3K7ONINO.js.map} +0 -0
  796. /package/dist/{plot.2dvaf-AC7LW56S.js.map → plot.2dvaf-P6CRZWB7.js.map} +0 -0
  797. /package/dist/{plot.app-DOOWDQ3U.js.map → plot.app-XOQVTISH.js.map} +0 -0
  798. /package/dist/{plot.barplot-RNJWREG5.js.map → plot.barplot-YDT4K3YZ.js.map} +0 -0
  799. /package/dist/{plot.boxplot-CRAEUBQF.js.map → plot.boxplot-GHEVLVJU.js.map} +0 -0
  800. /package/dist/{plot.brainImaging-ZESEULN6.js.map → plot.brainImaging-NENXKZEP.js.map} +0 -0
  801. /package/dist/{plot.disco-B4KBP6RK.js.map → plot.disco-3B7LZ2XE.js.map} +0 -0
  802. /package/dist/{plot.dzi-2UMRV6IF.js.map → plot.dzi-F7NW65WQ.js.map} +0 -0
  803. /package/dist/{plot.ssgq-FVZ27Z2K.js.map → plot.ssgq-BAUIBB3D.js.map} +0 -0
  804. /package/dist/{plot.vaf2cov-3OXCIEAX.js.map → plot.vaf2cov-XBLM7B4M.js.map} +0 -0
  805. /package/dist/{plot.wsi-UKTLZSYW.js.map → plot.wsi-YWILGUDN.js.map} +0 -0
  806. /package/dist/{profileForms-SBNPRIFT.js.map → profileForms-LYWVFIVQ.js.map} +0 -0
  807. /package/dist/{profilePlot-PPI4IDP4.js.map → profilePlot-TSXR4EGL.js.map} +0 -0
  808. /package/dist/{qualitative-4O6KAGEA.js.map → qualitative-VNY32ONL.js.map} +0 -0
  809. /package/dist/{radar2-ICKCJY4T.js.map → radar2-YVHLSCAM.js.map} +0 -0
  810. /package/dist/{radarFacility2-HEBBSM3T.js.map → radarFacility2-K4OA7FYK.js.map} +0 -0
  811. /package/dist/{regression-YFQJE2EP.js.map → regression-KKC7Y57Y.js.map} +0 -0
  812. /package/dist/{regression.inputs-A2JVBVZ7.js.map → regression.inputs-UR2VLW5P.js.map} +0 -0
  813. /package/dist/{regression.inputs.term-CTVNS5MO.js.map → regression.inputs.term-QECG7D3W.js.map} +0 -0
  814. /package/dist/{regression.inputs.values.table-X7SI6EDO.js.map → regression.inputs.values.table-UANMD46V.js.map} +0 -0
  815. /package/dist/{regression.integration.spec-NRDEVBWS.js.map → regression.integration.spec-UCUHBCZY.js.map} +0 -0
  816. /package/dist/{regression.results-XVB6CIGW.js.map → regression.results-TNVEGETD.js.map} +0 -0
  817. /package/dist/{regression.spec-TNB5HBY5.js.map → regression.spec-3NSFMTI7.js.map} +0 -0
  818. /package/dist/{report-5VDIBC2W.js.map → report-2FNKLTYA.js.map} +0 -0
  819. /package/dist/{sampleScatter.spec-XDW7SCYA.js.map → sampleScatter.spec-5SC2AJHW.js.map} +0 -0
  820. /package/dist/{sampleView-FLUSGZCM.js.map → sampleView-SU7VZCJH.js.map} +0 -0
  821. /package/dist/{samplelst-4WPG5UBN.js.map → samplelst-JGSTML6J.js.map} +0 -0
  822. /package/dist/{samplematrix-YJGMSXUJ.js.map → samplematrix-FO4GGDRT.js.map} +0 -0
  823. /package/dist/{sc-DHU5KSEJ.js.map → sc-LDUHVPII.js.map} +0 -0
  824. /package/dist/{scatter-UZMWX3DU.js.map → scatter-QAEMBYHW.js.map} +0 -0
  825. /package/dist/{scatter.integration.spec-YX5OC3L2.js.map → scatter.integration.spec-FTD4PDMI.js.map} +0 -0
  826. /package/dist/{selectGenomeWithTklst-BVBMVRMQ.js.map → selectGenomeWithTklst-G3XUX3KK.js.map} +0 -0
  827. /package/dist/{singleCellCellType-DADK5UKZ.js.map → singleCellCellType-QKA4QCLC.js.map} +0 -0
  828. /package/dist/{singleCellCellType.unit.spec-X25RMBJ3.js.map → singleCellCellType.unit.spec-KIPKWJLB.js.map} +0 -0
  829. /package/dist/{singleCellGeneExpression-3UEZWI4E.js.map → singleCellGeneExpression-O2QVJOG4.js.map} +0 -0
  830. /package/dist/{singleCellGeneExpression.unit.spec-5GU3JWE6.js.map → singleCellGeneExpression.unit.spec-6ATWTQTO.js.map} +0 -0
  831. /package/dist/{singleCellPlot-TFRZG73T.js.map → singleCellPlot-HZOSW3FB.js.map} +0 -0
  832. /package/dist/{singlecell-KR6JYFAY.js.map → singlecell-3OX4TSQ4.js.map} +0 -0
  833. /package/dist/{singlecell-HQH6EWJO.js.map → singlecell-EUUIY2JJ.js.map} +0 -0
  834. /package/dist/{snp-ACIZ7D5X.js.map → snp-UVKGSROJ.js.map} +0 -0
  835. /package/dist/{snp.unit.spec-653HGJBM.js.map → snp.unit.spec-YHIZ5ZJW.js.map} +0 -0
  836. /package/dist/{snplocus-AH6KJCVN.js.map → snplocus-FANKGKI4.js.map} +0 -0
  837. /package/dist/{spliceevent.a53ss.diagram-MKJLJDOG.js.map → spliceevent.a53ss.diagram-QQXYYX7J.js.map} +0 -0
  838. /package/dist/{spliceevent.exonskip.diagram-PSEVCDH4.js.map → spliceevent.exonskip.diagram-R265JOH6.js.map} +0 -0
  839. /package/dist/{spliceevent.noeventdiagram-T2LHGFN7.js.map → spliceevent.noeventdiagram-UMAQOCVY.js.map} +0 -0
  840. /package/dist/{ssGSEA-QFMYBITZ.js.map → ssGSEA-F4BZ3NYO.js.map} +0 -0
  841. /package/dist/{ssGSEA.unit.spec-SQW7KFWE.js.map → ssGSEA.unit.spec-OQQGQYPJ.js.map} +0 -0
  842. /package/dist/{summarizeCnvGeneexp-EVRTBY3L.js.map → summarizeCnvGeneexp-LX22NXFF.js.map} +0 -0
  843. /package/dist/{summarizeGeneexpSurvival-O3MGRS6K.js.map → summarizeGeneexpSurvival-N7LXAK2G.js.map} +0 -0
  844. /package/dist/{summarizeMutationCnv-RZ2DZ2XO.js.map → summarizeMutationCnv-QC3EARCV.js.map} +0 -0
  845. /package/dist/{summarizeMutationDiagnosis-V2DISQTC.js.map → summarizeMutationDiagnosis-H6KJWLLC.js.map} +0 -0
  846. /package/dist/{summarizeMutationSurvival-FTTWJBUG.js.map → summarizeMutationSurvival-JAFSWJVZ.js.map} +0 -0
  847. /package/dist/{summary-QKBTZINC.js.map → summary-D5MSBQIS.js.map} +0 -0
  848. /package/dist/{summary.integration.spec-54HA7BC2.js.map → summary.integration.spec-KJPNP7X2.js.map} +0 -0
  849. /package/dist/{summaryInput-4RLZT6RW.js.map → summaryInput-47JBGPNE.js.map} +0 -0
  850. /package/dist/{sunburst-SMKD45XD.js.map → sunburst-PUZYZZGK.js.map} +0 -0
  851. /package/dist/{survival-YQNA3WP7.js.map → survival-LGJBYXFR.js.map} +0 -0
  852. /package/dist/{survival-BAW5ME6J.js.map → survival-SMOKVDGO.js.map} +0 -0
  853. /package/dist/{survival.integration.spec-2AHXNMH2.js.map → survival.integration.spec-ORC3LCVK.js.map} +0 -0
  854. /package/dist/{svgraph-5Z7VAIVR.js.map → svgraph-GWDKHIDQ.js.map} +0 -0
  855. /package/dist/{svmr-PHD76RV4.js.map → svmr-RRA6OUVP.js.map} +0 -0
  856. /package/dist/{table-GMRAOIWZ.js.map → table-AC2DX55F.js.map} +0 -0
  857. /package/dist/{termCollection-MEBY34TJ.js.map → termCollection-4OVZAKYZ.js.map} +0 -0
  858. /package/dist/{termCollection-QLKTRXUR.js.map → termCollection-MPFFNNMF.js.map} +0 -0
  859. /package/dist/{termCollection.unit.spec-6B53SW2Q.js.map → termCollection.unit.spec-S4QSTY4S.js.map} +0 -0
  860. /package/dist/{tk-X46SEOL7.js.map → tk-PFWI2HAC.js.map} +0 -0
  861. /package/dist/{tp.ui-XV7CL7CA.js.map → tp.ui-TKAJ7DRO.js.map} +0 -0
  862. /package/dist/{tvs.dt-U6SIZTXW.js.map → tvs.dt-6NDINORK.js.map} +0 -0
  863. /package/dist/{tvs.dtcnv.categorical-6YGEKMHW.js.map → tvs.dtcnv.categorical-2RHUN643.js.map} +0 -0
  864. /package/dist/{tvs.dtcnv.continuous-CQFEENBO.js.map → tvs.dtcnv.continuous-GIPVPDBD.js.map} +0 -0
  865. /package/dist/{tvs.dtfusion-NOBT2JPI.js.map → tvs.dtfusion-ZLXTZ7SA.js.map} +0 -0
  866. /package/dist/{tvs.dtsnvindel-6GTCSVAV.js.map → tvs.dtsnvindel-CRS5CL42.js.map} +0 -0
  867. /package/dist/{tvs.dtsv-PMI4YVI5.js.map → tvs.dtsv-SG45TZWQ.js.map} +0 -0
  868. /package/dist/{tvs.samplelst-HVNYKHXG.js.map → tvs.samplelst-NQ5BKEGM.js.map} +0 -0
  869. /package/dist/{tvs.termCollection-EWGTT75Z.js.map → tvs.termCollection-HOVUO7ZH.js.map} +0 -0
  870. /package/dist/{violin-MKWRB25Z.js.map → violin-FGGULOXU.js.map} +0 -0
  871. /package/dist/{violin.integration.spec-CNWJ43SD.js.map → violin.integration.spec-T5Y6URJK.js.map} +0 -0
  872. /package/dist/{violin.interactivity-UXOMTGSD.js.map → violin.interactivity-6RGFTQDW.js.map} +0 -0
  873. /package/dist/{violin.renderer-67Q6YGYQ.js.map → violin.renderer-63UTDZVK.js.map} +0 -0
  874. /package/dist/{vocabulary-AKXE7SNU.js.map → vocabulary-YQXR4H5J.js.map} +0 -0
@@ -0,0 +1,2250 @@
1
+ import {
2
+ blocklazyload
3
+ } from "./chunk-RTTPFI7N.js";
4
+ import {
5
+ hicParseFile
6
+ } from "./chunk-J5SV3MFB.js";
7
+ import {
8
+ AppBase,
9
+ ColorScale,
10
+ axisstyle,
11
+ first_genetrack_tolist,
12
+ font,
13
+ newpane,
14
+ showErrorsWithCounter,
15
+ tkt
16
+ } from "./chunk-6FF5VLGO.js";
17
+ import "./chunk-HJ6L54YS.js";
18
+ import "./chunk-LSEFWW72.js";
19
+ import "./chunk-JTMU3F2Q.js";
20
+ import {
21
+ Menu
22
+ } from "./chunk-HYOEWQ5P.js";
23
+ import "./chunk-HBW42TDT.js";
24
+ import "./chunk-G6O3URDN.js";
25
+ import "./chunk-FN5XPUPH.js";
26
+ import "./chunk-5X6J6UAT.js";
27
+ import "./chunk-3L32ZXRS.js";
28
+ import "./chunk-QIY7HLC5.js";
29
+ import "./chunk-WS3NUPNV.js";
30
+ import {
31
+ dofetch3
32
+ } from "./chunk-H5BIGL3W.js";
33
+ import "./chunk-7IYJZZQI.js";
34
+ import {
35
+ StoreBase,
36
+ getAppInit,
37
+ getCompInit,
38
+ getStoreInit
39
+ } from "./chunk-5V43Y2RC.js";
40
+ import "./chunk-PF4DSFDR.js";
41
+ import "./chunk-B4VRYXOQ.js";
42
+ import "./chunk-TVADJLMF.js";
43
+ import {
44
+ bplen
45
+ } from "./chunk-EBKERML3.js";
46
+ import "./chunk-DD4R5P6W.js";
47
+ import "./chunk-JNITUVXP.js";
48
+ import "./chunk-KSGA62R2.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-TLT4YIG3.js";
59
+ import "./chunk-KYBIQBXE.js";
60
+ import {
61
+ pointer_default,
62
+ select_default
63
+ } from "./chunk-I6Y4O3RR.js";
64
+ import "./chunk-OMR2DT66.js";
65
+ import "./chunk-DQC5FFGV.js";
66
+ import "./chunk-HFNDKYVF.js";
67
+
68
+ // tracks/hic/HicStore.ts
69
+ var HicStore = class _HicStore extends StoreBase {
70
+ constructor(opts) {
71
+ super(opts);
72
+ this.views = ["genome", "chrpair", "detail", "horizontal"];
73
+ this.type = _HicStore.type;
74
+ this.defaultState = {
75
+ defaultNmeth: "NONE",
76
+ loading: true,
77
+ minBinNum_bp: 200,
78
+ minFragSpan: 200,
79
+ initialBinNum: 20,
80
+ settings: {
81
+ widthHeightPx: 800
82
+ }
83
+ };
84
+ }
85
+ static {
86
+ this.type = "store";
87
+ }
88
+ init() {
89
+ this.state = Object.assign({}, this.defaultState, this.state);
90
+ }
91
+ };
92
+ var hicStoreInit = getStoreInit(HicStore);
93
+ HicStore.prototype.actions = {
94
+ view_create(action) {
95
+ if (!action.view) throw Error("view_create: missing view");
96
+ if (!this.views.some((v) => v == action.view)) throw Error(`view_create: unknown view = ${action.view}`);
97
+ this.state.currView = action.view;
98
+ const opts = Object.assign(this.state, action.config);
99
+ this.state = opts;
100
+ },
101
+ view_update(action) {
102
+ if (action.view) {
103
+ if (!this.views.some((v) => v == action.view)) throw Error(`view_update: unknown view = ${action.view}`);
104
+ const opts = Object.assign(this.state[action.view], action.config);
105
+ this.state[action.view] = opts;
106
+ } else {
107
+ const opts = Object.assign(this.state, action.config);
108
+ this.state = opts;
109
+ }
110
+ },
111
+ loading_active(action) {
112
+ this.state.loading = action.active;
113
+ }
114
+ };
115
+
116
+ // tracks/hic/dom/LoadingOverlay.ts
117
+ var LoadingOverlay = class _LoadingOverlay {
118
+ constructor(opts) {
119
+ this.hasStatePreMain = true;
120
+ this.type = _LoadingOverlay.type;
121
+ this.app = opts.app;
122
+ this.loadingDiv = opts.loadingDiv;
123
+ }
124
+ static {
125
+ this.type = "loadingOverlay";
126
+ }
127
+ reactsTo(action) {
128
+ if (action.type.startsWith("loading")) return true;
129
+ else return false;
130
+ }
131
+ getState(appState) {
132
+ return appState;
133
+ }
134
+ init() {
135
+ this.loadingDiv.append("div").attr("class", "sjpp-spinner").style("display", "");
136
+ }
137
+ main(appState) {
138
+ const loading = this.app.getState(appState).loading;
139
+ this.loadingDiv.style("display", loading ? "" : "none");
140
+ }
141
+ };
142
+ var loadingInit = getCompInit(LoadingOverlay);
143
+
144
+ // tracks/hic/dom/ColorizeElement.ts
145
+ var ColorizeElement = class {
146
+ colorizeElement(xCoord, yCoord, v, obj, width, height, bpMinV, bpMaxV, currView) {
147
+ if (v >= 0) {
148
+ const p = v >= bpMaxV ? 0 : v <= bpMinV ? 255 : Math.floor(255 * (bpMaxV - v) / bpMaxV);
149
+ const positiveFill = `rgb(255, ${p}, ${p})`;
150
+ if (currView === "genome") {
151
+ obj.ctx.fillStyle = positiveFill;
152
+ obj.ctx2.fillStyle = positiveFill;
153
+ } else {
154
+ obj.fillStyle = positiveFill;
155
+ }
156
+ } else {
157
+ const p = v <= bpMinV ? 255 : Math.floor(255 * (bpMaxV + v) / bpMaxV);
158
+ const negativeFill = `rgb(${p}, ${p}, 255)`;
159
+ if (currView === "genome") {
160
+ obj.ctx.fillStyle = negativeFill;
161
+ obj.ctx2.fillStyle = negativeFill;
162
+ } else {
163
+ obj.fillStyle = negativeFill;
164
+ }
165
+ }
166
+ if (currView === "genome") {
167
+ obj.ctx.fillRect(yCoord, xCoord, width, height);
168
+ obj.ctx2.fillRect(xCoord, yCoord, width, height);
169
+ } else {
170
+ obj.fillRect(xCoord, yCoord, width, height);
171
+ }
172
+ }
173
+ };
174
+
175
+ // tracks/hic/data/Resolution.ts
176
+ var Resolution = class {
177
+ constructor(error) {
178
+ this.error = error;
179
+ }
180
+ getResolution(state, hic) {
181
+ if (state.currView == "genome") return hic["bpresolution"][0];
182
+ if (state.currView == "chrpair") {
183
+ const resolution = this.getChrPairResolution(hic, state.x, state.y, state.minBinNum_bp);
184
+ return resolution;
185
+ } else if (state.currView == "detail") {
186
+ const maxBpWidth = Math.max(state.x.stop - state.x.start, state.y.stop - state.y.start);
187
+ let resolution = this.findResFromArray(maxBpWidth, state.minBinNum_bp, hic.bpresolution);
188
+ if (resolution == null && !hic.enzyme) {
189
+ resolution = hic.bpresolution[hic.bpresolution.length - 1];
190
+ }
191
+ return resolution;
192
+ } else {
193
+ this.error(`Unknown view: ${state.currView}`);
194
+ throw `Unknown view: ${state.currView}`;
195
+ }
196
+ }
197
+ getChrPairResolution(hic, x, y, minBinNum_bp) {
198
+ const chrxlen = hic.genome.chrlookup[x.chr.toUpperCase()].len;
199
+ const chrylen = hic.genome.chrlookup[y.chr.toUpperCase()].len;
200
+ const maxchrlen = Math.max(chrxlen, chrylen);
201
+ const resolution = this.findResFromArray(maxchrlen, minBinNum_bp, hic.bpresolution);
202
+ if (resolution == null) {
203
+ this.error(`No suitable resolution for ${x.chr}-${y.chr} pair.`);
204
+ return;
205
+ }
206
+ return resolution;
207
+ }
208
+ findResFromArray(max, defaultValue, resolutionArray, returnNum) {
209
+ let resolution = null;
210
+ for (const res of resolutionArray) {
211
+ if (max / res > defaultValue) {
212
+ resolution = res;
213
+ break;
214
+ }
215
+ }
216
+ if (returnNum && resolution == null) {
217
+ resolution = resolutionArray[resolutionArray.length - 1];
218
+ }
219
+ return resolution;
220
+ }
221
+ getDefaultViewSpan(hic, x, y, initialBinNum, minBinNum_bp) {
222
+ const chrpairResolution = this.getChrPairResolution(hic, x, y, minBinNum_bp);
223
+ if (!chrpairResolution) return;
224
+ return chrpairResolution * initialBinNum;
225
+ }
226
+ };
227
+
228
+ // tracks/hic/data/Positions.ts
229
+ var Positions = class {
230
+ constructor(error, minBinNum_bp) {
231
+ this.error = error;
232
+ this.resolution = new Resolution(this.error);
233
+ this.minBinNum_bp = minBinNum_bp;
234
+ }
235
+ /**
236
+ *
237
+ * @param x x coordinate of pointer
238
+ * @param y y coordinate of pointer
239
+ * @param binpx
240
+ * @param chrx x chr from state
241
+ * @param chry y chr from state
242
+ * @param hic
243
+ * @param initialBinNum Set in the state
244
+ * @returns
245
+ */
246
+ setPosition(x, y, binpx, chrx, chry, hic, initialBinNum) {
247
+ const resolution = this.resolution.getChrPairResolution(hic, chrx, chry, this.minBinNum_bp);
248
+ const viewrangebpw = resolution * initialBinNum;
249
+ let coordx = Math.max(1, Math.floor(x * resolution / binpx) - viewrangebpw / 2);
250
+ let coordy = Math.max(1, Math.floor(y * resolution / binpx) - viewrangebpw / 2);
251
+ {
252
+ const lenx = hic.genome.chrlookup[chrx.chr.toUpperCase()].len;
253
+ if (coordx + viewrangebpw >= lenx) {
254
+ coordx = lenx - viewrangebpw;
255
+ }
256
+ const leny = hic.genome.chrlookup[chry.chr.toUpperCase()].len;
257
+ if (coordy + viewrangebpw > leny) {
258
+ coordy = leny - viewrangebpw;
259
+ }
260
+ }
261
+ const xObj = {
262
+ chr: chrx.chr,
263
+ start: coordx,
264
+ stop: coordx + viewrangebpw
265
+ };
266
+ const yObj = {
267
+ chr: chry.chr,
268
+ start: coordy,
269
+ stop: coordy + viewrangebpw
270
+ };
271
+ return [xObj, yObj];
272
+ }
273
+ };
274
+
275
+ // tracks/hic/data/GridElementsFormattedData.ts
276
+ var GridElementsFormattedData = class {
277
+ /**
278
+ * Format the data for the grid elements.
279
+ * @param items The data to format.
280
+ * @param binpx The bin size in pixels.
281
+ * @param resolution The resolution.
282
+ * @param isFirstChrX Whether the first chromosome is X. Used for chrpair view.
283
+ * @param isIntraChr Whether the data is intra-chromosomal. Used for chrpair view
284
+ * @returns The formatted data.
285
+ */
286
+ formatData(view, items, binpx, resolution, isFirstChrX, isIntraChr) {
287
+ const formattedData = [];
288
+ for (const [xCoord, yCoord, value] of items) {
289
+ const xPx = Math.floor(xCoord / resolution) * binpx;
290
+ const yPx = Math.floor(yCoord / resolution) * binpx;
291
+ if (view == "genome") {
292
+ formattedData.push([xPx, yPx, value]);
293
+ }
294
+ if (view == "chrpair") {
295
+ const x = isFirstChrX ? xPx : yPx;
296
+ const y = isFirstChrX ? yPx : xPx;
297
+ formattedData.push([x, y, value]);
298
+ if (isIntraChr) {
299
+ formattedData.push([y, x, value]);
300
+ }
301
+ }
302
+ }
303
+ return formattedData;
304
+ }
305
+ };
306
+
307
+ // tracks/hic/data/FirstChrX.ts
308
+ var FirstChrX = class {
309
+ constructor(chrorder, chrx, chry) {
310
+ this.chrorder = chrorder;
311
+ this.chrx = chrx;
312
+ this.chry = chry;
313
+ }
314
+ isFirstX() {
315
+ if (this.chrx == this.chry) return true;
316
+ return this.chrorder.indexOf(this.chrx) < this.chrorder.indexOf(this.chry);
317
+ }
318
+ };
319
+
320
+ // tracks/hic/chrpair/ChrPairView.ts
321
+ var ChrPairView = class {
322
+ constructor(opts) {
323
+ this.binpx = 1;
324
+ /** padding on the ends of x/y chr coordinate axes */
325
+ this.axispad = 10;
326
+ this.axisLabelFontSize = 15;
327
+ this.calcResolution = null;
328
+ this.data = [];
329
+ this.app = opts.app;
330
+ this.hic = opts.hic;
331
+ this.plotDiv = opts.plotDiv;
332
+ this.items = opts.items;
333
+ this.parent = opts.parent;
334
+ this.chrxlen = this.hic.genome.chrlookup[this.parent("state").x.chr.toUpperCase()].len;
335
+ this.chrylen = this.hic.genome.chrlookup[this.parent("state").y.chr.toUpperCase()].len;
336
+ this.maxchrlen = Math.max(this.chrxlen, this.chrylen);
337
+ this.colorizeElement = new ColorizeElement();
338
+ this.positions = new Positions(opts.error, this.parent("state").minBinNum_bp);
339
+ this.formattedData = new GridElementsFormattedData();
340
+ }
341
+ setDefaultBinpx() {
342
+ if (this.calcResolution == null) return;
343
+ while (this.binpx * this.maxchrlen / this.calcResolution < 600) {
344
+ this.binpx++;
345
+ }
346
+ }
347
+ renderAxes() {
348
+ if (this.calcResolution == null) return;
349
+ const svgY = this.plotDiv.yAxis.append("svg");
350
+ const h = Math.ceil(this.chrylen / this.calcResolution) * this.binpx;
351
+ svgY.attr("width", 100).attr("height", this.axispad * 2 + h);
352
+ 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)");
353
+ axisstyle({
354
+ axis: svgY.append("g").attr("transform", `translate(1, ${this.axispad})`).call(axisRight(linear().domain([0, this.chrylen]).range([0, h])).tickFormat(format(".2s"))),
355
+ showline: true
356
+ });
357
+ const svgX = this.plotDiv.xAxis.append("svg").style("margin-top", "-4px");
358
+ const w = Math.ceil(this.chrxlen / this.calcResolution) * this.binpx;
359
+ svgX.attr("height", 100).attr("width", this.axispad * 2 + w);
360
+ 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);
361
+ axisstyle({
362
+ axis: svgX.append("g").attr("transform", "translate(" + this.axispad + ",1)").call(axisBottom(linear().domain([0, this.chrxlen]).range([0, w])).tickFormat(format(".2s"))),
363
+ showline: true
364
+ });
365
+ }
366
+ renderCanvas() {
367
+ const initDetailView = this.initDetailView.bind(this);
368
+ this.canvas = this.plotDiv.plot.append("canvas").attr("data-testid", "sjpp-chrpair-canvas").style("margin", this.axispad + "px").on("click", async function(event) {
369
+ const [x, y] = pointer_default(event, this);
370
+ initDetailView(x, y);
371
+ }).node();
372
+ this.canvas.width = Math.ceil(this.chrxlen / this.calcResolution) * this.binpx;
373
+ this.canvas.height = Math.ceil(this.chrylen / this.calcResolution) * this.binpx;
374
+ this.ctx = this.canvas.getContext("2d");
375
+ }
376
+ initDetailView(x, y) {
377
+ const [xObj, yObj] = this.positions.setPosition(
378
+ x,
379
+ y,
380
+ this.binpx,
381
+ this.parent("state").x,
382
+ this.parent("state").y,
383
+ this.hic,
384
+ this.parent("state").initialBinNum
385
+ );
386
+ this.app.dispatch({
387
+ type: "view_create",
388
+ view: "detail",
389
+ config: {
390
+ x: xObj,
391
+ y: yObj
392
+ }
393
+ });
394
+ }
395
+ render() {
396
+ this.calcResolution = this.parent("calcResolution");
397
+ this.setDefaultBinpx();
398
+ this.renderAxes();
399
+ this.renderCanvas();
400
+ this.update(this.items);
401
+ }
402
+ update(items) {
403
+ this.items = items;
404
+ const firstisx = new FirstChrX(this.hic.chrorder, this.parent("state").x.chr, this.parent("state").y.chr).isFirstX();
405
+ const isintrachr = this.parent("state").x.chr === this.parent("state").y.chr;
406
+ this.data = this.formattedData.formatData(
407
+ "chrpair",
408
+ items.items,
409
+ this.binpx,
410
+ this.calcResolution,
411
+ firstisx,
412
+ isintrachr
413
+ );
414
+ this.ctx.clearRect(0, 0, this.canvas.width, this.canvas.height);
415
+ for (const [x, y, v] of this.data) {
416
+ this.colorizeElement.colorizeElement(
417
+ x,
418
+ y,
419
+ v,
420
+ this.ctx,
421
+ this.binpx,
422
+ //width
423
+ this.binpx,
424
+ //height
425
+ this.parent("min"),
426
+ this.parent("max"),
427
+ "chrpair"
428
+ );
429
+ }
430
+ this.app.dispatch({ type: "loading_active", active: false });
431
+ }
432
+ };
433
+
434
+ // tracks/hic/horizontal/HorizontalView.ts
435
+ var HorizontalView = class {
436
+ constructor(opts) {
437
+ /** Defaults*/
438
+ this.maxPercentage = 5;
439
+ this.subPanelPxWidth = 600;
440
+ this.borderColor = "rgba(200,0,0,.1)";
441
+ this.app = opts.app;
442
+ this.hic = opts.hic;
443
+ this.plotDiv = opts.plotDiv;
444
+ this.items = opts.items;
445
+ this.parent = opts.parent;
446
+ }
447
+ setRunPpTracks() {
448
+ const tracks = [
449
+ {
450
+ type: "hicstraw",
451
+ file: this.hic.file,
452
+ url: this.hic.url,
453
+ name: this.hic.name,
454
+ enzyme: this.hic.enzyme,
455
+ maxpercentage: this.maxPercentage,
456
+ pyramindup: 1
457
+ }
458
+ ];
459
+ if (this.hic.tklst) {
460
+ for (const t of this.hic.tklst) {
461
+ tracks.push(t);
462
+ }
463
+ }
464
+ first_genetrack_tolist(this.hic.genome, tracks);
465
+ return tracks;
466
+ }
467
+ setRunPpArgs(tracks) {
468
+ const arg = {
469
+ holder: this.plotDiv.plot,
470
+ hostURL: this.hic.hostURL,
471
+ jwt: this.hic.jwt,
472
+ genome: this.hic.genome,
473
+ nobox: 1,
474
+ tklst: tracks
475
+ };
476
+ const state = this.parent("state");
477
+ if (state.x.chr == state.y.chr && Math.max(state.x.start, state.y.start) < Math.min(state.x.stop, state.y.stop)) {
478
+ arg["chr"] = state.x.chr;
479
+ arg["start"] = Math.min(state.x.start, state.y.start);
480
+ arg["stop"] = Math.max(state.x.stop, state.y.stop);
481
+ } else {
482
+ arg["chr"] = state.x.chr;
483
+ arg["start"] = state.x.start;
484
+ arg["stop"] = state.x.stop;
485
+ arg["width"] = this.subPanelPxWidth;
486
+ arg["subpanels"] = [
487
+ {
488
+ chr: state.y.chr,
489
+ start: state.y.start,
490
+ stop: state.y.stop,
491
+ width: this.subPanelPxWidth,
492
+ leftpad: 10,
493
+ leftborder: this.borderColor
494
+ }
495
+ ];
496
+ }
497
+ return arg;
498
+ }
499
+ render() {
500
+ const tracks = this.setRunPpTracks();
501
+ const arg = this.setRunPpArgs(tracks);
502
+ blocklazyload(arg);
503
+ }
504
+ // update() {
505
+ // //Not required.
506
+ // //If controls are added back. Implement changes here.
507
+ // }
508
+ };
509
+
510
+ // tracks/hic/detail/DetailBlock.ts
511
+ var DetailBlock = class {
512
+ constructor(app, hic, blockwidth, bbmargin, holder, isYblock) {
513
+ /** Defaults */
514
+ this.leftheadw = 20;
515
+ this.rightheadw = 40;
516
+ this.lpad = 1;
517
+ this.rpad = 1;
518
+ this.firstRender = true;
519
+ this.app = app;
520
+ this.hic = hic;
521
+ this.width = blockwidth;
522
+ this.bbmargin = bbmargin;
523
+ this.holder = holder;
524
+ this.isYblock = isYblock;
525
+ this.bbw = this.leftheadw + this.lpad + this.width + this.rpad + this.rightheadw + 2 * this.bbmargin;
526
+ this.defaultLeft = this.bbmargin + this.leftheadw + this.lpad;
527
+ this.defaultTop = this.bbmargin + this.rightheadw + this.rpad;
528
+ }
529
+ setArgs(chrObj) {
530
+ const runPpArgs = {
531
+ hostURL: this.hic.hostURL,
532
+ genome: this.hic.genome,
533
+ holder: this.holder,
534
+ noresize: true,
535
+ nobox: true,
536
+ butrowbottom: true,
537
+ style: {
538
+ margin: `${this.bbmargin}px`
539
+ },
540
+ width: this.width,
541
+ leftheadw: this.leftheadw,
542
+ chr: chrObj.chr,
543
+ start: chrObj.start,
544
+ stop: chrObj.stop,
545
+ rightheadw: this.rightheadw,
546
+ tklst: [],
547
+ rotated: this.isYblock,
548
+ showreverse: this.isYblock
549
+ };
550
+ first_genetrack_tolist(this.hic.genome, runPpArgs.tklst);
551
+ return runPpArgs;
552
+ }
553
+ setMethods(canvasHolder, canvas, sheath) {
554
+ const runPpMethods = {
555
+ onloadalltk_always: () => {
556
+ this.onload(canvasHolder, canvas, sheath);
557
+ },
558
+ onpanning: (xoff) => this.onpanning(xoff, canvas)
559
+ };
560
+ if (this.isYblock) {
561
+ runPpMethods["onsetheight"] = (bbh) => {
562
+ this.holder.transition().style("left", `${bbh + this.bbmargin + 30}px`);
563
+ };
564
+ }
565
+ return runPpMethods;
566
+ }
567
+ onload(canvasHolder, canvas, sheath) {
568
+ this.bbw = this.block.leftheadw + this.block.lpad + this.block.width + this.block.rpad + this.block.rightheadw + 2 * this.bbmargin;
569
+ if (this.isYblock) {
570
+ sheath.transition().style("height", `${this.bbw}px`);
571
+ canvasHolder.style("height", `${this.bbw}px`);
572
+ } else canvasHolder.style("width", `${this.bbw}px`);
573
+ if (this.isYblock) {
574
+ this.defaultTop = this.bbmargin + this.block.rightheadw + this.block.rpad;
575
+ canvas.style("top", `${this.defaultTop}px`);
576
+ } else {
577
+ this.defaultLeft = this.bbmargin + this.block.leftheadw + this.block.lpad;
578
+ canvas.style("left", `${this.defaultLeft}px`);
579
+ }
580
+ const config = {
581
+ [this.isYblock ? "y" : "x"]: {
582
+ chr: this.block.rglst[0].chr,
583
+ start: this.block.rglst[0].start,
584
+ stop: this.block.rglst[0].stop
585
+ }
586
+ };
587
+ if (this.firstRender == false) {
588
+ this.app.dispatch({
589
+ type: "view_update",
590
+ config
591
+ });
592
+ } else {
593
+ this.firstRender = false;
594
+ }
595
+ }
596
+ onpanning(xoff, canvas) {
597
+ if (!this.isYblock) canvas.style("left", `${xoff + this.defaultLeft}px`);
598
+ else canvas.style("top", `${-xoff + this.defaultTop}px`);
599
+ }
600
+ async loadBlock(chrObj, canvasHolder, canvas, sheath) {
601
+ const runPpArgs = this.setArgs(chrObj);
602
+ const runPpMethods = this.isYblock ? this.setMethods(canvasHolder, canvas, sheath) : this.setMethods(canvasHolder, canvas);
603
+ const args = Object.assign(runPpArgs, runPpMethods);
604
+ await blocklazyload(args).then(async (block) => {
605
+ this.block = block;
606
+ });
607
+ }
608
+ };
609
+
610
+ // tracks/hic/data/DetailDataFetcher.ts
611
+ var DetailDataFetcher = class {
612
+ constructor(errList) {
613
+ this.obj = {
614
+ rglst: []
615
+ };
616
+ this.errList = errList;
617
+ }
618
+ isFragData(hic, resolution) {
619
+ if (resolution != null) return;
620
+ if (!hic.enzyme) {
621
+ resolution = hic.bpresolution[hic.bpresolution.length - 1];
622
+ return;
623
+ }
624
+ }
625
+ formatFragArgs(enzymefile, chr) {
626
+ const arg = {
627
+ getdata: 1,
628
+ getBED: 1,
629
+ file: enzymefile,
630
+ rglst: [chr]
631
+ };
632
+ return arg;
633
+ }
634
+ /**
635
+ * @param arg Formated obj from either fn above
636
+ * @param errList
637
+ * @returns
638
+ */
639
+ async getBedData(arg) {
640
+ try {
641
+ return await dofetch3("tkbedj", { method: "POST", body: JSON.stringify(arg) });
642
+ } catch (e) {
643
+ this.errList.push(e.message || e);
644
+ if (e.stack) console.error(e.stack);
645
+ }
646
+ }
647
+ async getXFragData(hic, resolution, chrx) {
648
+ this.isFragData(hic, resolution);
649
+ if (!hic.enzymefile) return;
650
+ const reqArgs = this.formatFragArgs(hic.enzymefile, chrx);
651
+ return await this.getBedData(reqArgs);
652
+ }
653
+ async getYFragData(hic, chry) {
654
+ const reqArgs = this.formatFragArgs(hic.enzymefile, chry);
655
+ return await this.getBedData(reqArgs);
656
+ }
657
+ /**
658
+ * Separate request from data fetch
659
+ * Returns the additional fragment data
660
+ * @param fragCoords
661
+ */
662
+ async fetchData(hic, detailView, resolution, x, y, fragCoords) {
663
+ const fragStrawArgs = {
664
+ matrixType: detailView.matrixType,
665
+ file: hic.file,
666
+ url: hic.url,
667
+ pos1: this.determinePosition(hic, x, fragCoords?.x),
668
+ pos2: this.determinePosition(hic, y, fragCoords?.y),
669
+ nmeth: detailView.nmeth,
670
+ resolution
671
+ };
672
+ if (fragCoords) fragStrawArgs["isfrag"] = true;
673
+ try {
674
+ const data = dofetch3("hicdata?", {
675
+ method: "POST",
676
+ body: JSON.stringify(fragStrawArgs)
677
+ });
678
+ if (data.error) {
679
+ this.errList.push(data.error);
680
+ }
681
+ return data;
682
+ } catch (e) {
683
+ this.errList.push(e.message || e);
684
+ if (e.stack) console.error(e.stack);
685
+ }
686
+ }
687
+ determinePosition(hic, chr, fragCoord) {
688
+ if (fragCoord) {
689
+ return `${hic.nochr ? chr.chr.replace("chr", "") : chr.chr}:${fragCoord.start}:${fragCoord.stop}`;
690
+ } else {
691
+ return `${hic.nochr ? chr.chr.replace("chr", "") : chr.chr}:${chr.start}:${chr.stop}`;
692
+ }
693
+ }
694
+ };
695
+
696
+ // tracks/hic/data/ParseFragData.ts
697
+ var ParseFragData = class {
698
+ constructor(errLst, items) {
699
+ this.id2coord = /* @__PURE__ */ new Map();
700
+ this.min = null;
701
+ this.max = null;
702
+ this.items = [];
703
+ this.errLst = errLst;
704
+ for (const i of items) {
705
+ if (!i.rest || !i.rest[0]) {
706
+ this.errLst.push("items[].rest data problem");
707
+ }
708
+ const id = Number.parseInt(i.rest[0]);
709
+ if (Number.isNaN(id)) {
710
+ this.errLst.push(`${i.start}.${i.stop} invalid fragment id: ${i.rest[0]}`);
711
+ }
712
+ this.id2coord.set(id, [i.start, i.stop]);
713
+ if (this.min == null) {
714
+ this.min = id;
715
+ this.max = id;
716
+ } else {
717
+ this.min = Math.min(this.min, id);
718
+ this.max = Math.max(this.max, id);
719
+ }
720
+ }
721
+ }
722
+ };
723
+
724
+ // tracks/hic/data/DetailDataMapper.ts
725
+ var DetailDataMapper = class {
726
+ constructor(hic, errList, parent) {
727
+ this.frag = {
728
+ x: {},
729
+ y: {}
730
+ };
731
+ this.hic = hic;
732
+ this.errList = errList;
733
+ this.dataFetcher = new DetailDataFetcher(errList);
734
+ this.parent = parent;
735
+ }
736
+ async getFragData(chrx, chry) {
737
+ try {
738
+ const xFragData = await this.dataFetcher.getXFragData(this.hic, this.parent("calcResolution"), chrx);
739
+ if (xFragData) {
740
+ if (!xFragData.items) {
741
+ this.errList.push(`No fragment data returned for ${chrx.chr}:${chrx.start}-${chrx.stop}`);
742
+ return;
743
+ }
744
+ const xParse = new ParseFragData(this.errList, xFragData.items);
745
+ if (this.errList.length) return;
746
+ this.frag.x = {
747
+ id2coord: xParse.id2coord,
748
+ start: xParse.min,
749
+ stop: xParse.max
750
+ };
751
+ const yFragData = await this.dataFetcher.getYFragData(this.hic, chry);
752
+ if (this.errList.length) return;
753
+ if (yFragData) {
754
+ if (!yFragData.items) {
755
+ this.errList.push(`No fragment data returned for ${chry.chr}:${chry.start}-${chry.stop}`);
756
+ return;
757
+ }
758
+ const yParse = new ParseFragData(this.errList, yFragData.items);
759
+ if (this.errList.length) return;
760
+ this.frag.y = {
761
+ id2coord: /* @__PURE__ */ new Map(),
762
+ start: yParse.min,
763
+ stop: yParse.max
764
+ };
765
+ this.determineMap(yParse.id2coord, chrx, chry);
766
+ }
767
+ }
768
+ } catch (e) {
769
+ this.errList.push(e.message || e);
770
+ if (e.stack) console.error(e.stack);
771
+ }
772
+ }
773
+ determineMap(map, chrx, chry) {
774
+ if (chrx.chr == chry.chr) {
775
+ for (const [id, pos] of map) {
776
+ this.frag.x["id2coord"].set(id, pos);
777
+ }
778
+ this.frag.y["id2coord"] = this.frag.x["id2coord"];
779
+ } else {
780
+ this.frag.y["id2coord"] = map;
781
+ }
782
+ }
783
+ async getData(chrx, chry, fragCoords) {
784
+ return await this.dataFetcher.fetchData(
785
+ this.hic,
786
+ this.parent("state")["detail"],
787
+ this.parent("calcResolution"),
788
+ chrx,
789
+ chry,
790
+ fragCoords
791
+ );
792
+ }
793
+ };
794
+
795
+ // tracks/hic/data/DetailCoodinates.ts
796
+ var DetailCoordinates = class {
797
+ constructor(hic, errlist) {
798
+ this.hic = hic;
799
+ this.errlist = errlist;
800
+ }
801
+ getCoordinates(chrx, chry, data, resolution, widthHeightPx, fragData) {
802
+ const isFirstX = new FirstChrX(this.hic.chrorder, chrx.chr, chry.chr).isFirstX();
803
+ const isintrachr = chrx.chr == chry.chr;
804
+ const xpxbp = widthHeightPx / (chrx.stop - chrx.start);
805
+ const ypxbp = widthHeightPx / (chry.stop - chry.start);
806
+ const list = this.calculateCoordinates(isFirstX, isintrachr, xpxbp, ypxbp, resolution, chrx, chry, data, fragData);
807
+ return list;
808
+ }
809
+ calculateCoordinates(isFirstX, isintrachr, xpxbp, ypxbp, resolution, chrx, chry, data, fragData) {
810
+ const list = [];
811
+ for (const [xCoord, yCoord, value] of data.items) {
812
+ let coord1, coord2, span1, span2;
813
+ if (fragData) {
814
+ const idx_start = isFirstX ? xCoord : yCoord;
815
+ const idy_start = isFirstX ? yCoord : xCoord;
816
+ if (fragData.x.id2coord.has(idx_start)) {
817
+ const [a, b] = fragData.x.id2coord.get(idx_start);
818
+ coord1 = a;
819
+ span1 = b - a;
820
+ } else {
821
+ this.errlist.push(`[x id error] x: ${idx_start} y: ${idy_start}`);
822
+ continue;
823
+ }
824
+ {
825
+ const id_stop = idx_start + resolution;
826
+ if (fragData.x.id2coord.has(id_stop)) {
827
+ const ab = fragData.x.id2coord.get(id_stop);
828
+ span1 = ab[1] - coord1;
829
+ }
830
+ }
831
+ if (fragData.y.id2coord.has(idy_start)) {
832
+ const [a, b] = fragData.y.id2coord.get(idy_start);
833
+ coord2 = a;
834
+ span2 = b - a;
835
+ } else {
836
+ this.errlist.push(`[y id error] x: ${idx_start} y: ${idy_start}`);
837
+ continue;
838
+ }
839
+ {
840
+ const id_stop = idy_start + resolution;
841
+ if (fragData.y.id2coord.has(id_stop)) {
842
+ const ab = fragData.y.id2coord.get(id_stop);
843
+ span2 = ab[1] - coord2;
844
+ }
845
+ }
846
+ } else {
847
+ coord1 = isFirstX ? xCoord : yCoord;
848
+ coord2 = isFirstX ? yCoord : xCoord;
849
+ span1 = resolution;
850
+ span2 = resolution;
851
+ }
852
+ if (isintrachr) {
853
+ if (coord1 > chrx.start - span1 && coord1 < chrx.stop && coord2 > chry.start - span2 && coord2 < chry.stop) {
854
+ list.push([
855
+ Math.floor((coord1 - chrx.start) * xpxbp),
856
+ Math.floor((coord2 - chry.start) * ypxbp),
857
+ Math.ceil(span1 * xpxbp),
858
+ Math.ceil(span2 * ypxbp),
859
+ value
860
+ ]);
861
+ }
862
+ if (coord2 > chrx.start - span2 && coord2 < chrx.stop && coord1 > chry.start && coord1 < chry.stop) {
863
+ list.push([
864
+ Math.floor((coord2 - chrx.start) * xpxbp),
865
+ Math.floor((coord1 - chry.start) * ypxbp),
866
+ Math.ceil(span2 * xpxbp),
867
+ Math.ceil(span1 * ypxbp),
868
+ value
869
+ ]);
870
+ }
871
+ continue;
872
+ }
873
+ list.push([
874
+ Math.floor((coord1 - chrx.start) * xpxbp),
875
+ Math.floor((coord2 - chry.start) * ypxbp),
876
+ Math.ceil(span1 * xpxbp),
877
+ Math.ceil(span2 * ypxbp),
878
+ value
879
+ ]);
880
+ }
881
+ return list;
882
+ }
883
+ };
884
+
885
+ // tracks/hic/detail/DetailView.ts
886
+ var DetailView = class {
887
+ constructor(opts) {
888
+ this.calcResolution = null;
889
+ /** Defaults **/
890
+ this.binpx = 2;
891
+ this.bbmargin = 1;
892
+ this.app = opts.app;
893
+ this.hic = opts.hic;
894
+ this.plotDiv = opts.plotDiv;
895
+ this.sheath = opts.plotDiv.yAxis.append("div").style("position", "relative").style("width", "200px").style("height", "800px");
896
+ this.rotor = this.sheath.append("div").style("position", "absolute").style("bottom", "0px").style("transform", "rotate(-90deg)").style("transform-origin", "left bottom");
897
+ this.data = opts.data;
898
+ this.parent = opts.parent;
899
+ this.errList = this.parent("errList");
900
+ this.resolution = new Resolution(opts.error);
901
+ this.colorizeElement = new ColorizeElement();
902
+ this.viewRangeBpW = this.resolution.getDefaultViewSpan(
903
+ this.hic,
904
+ this.parent("state").x,
905
+ this.parent("state").y,
906
+ this.parent("state").initialBinNum,
907
+ this.parent("state").minBinNum_bp
908
+ );
909
+ this.dataMapper = new DetailDataMapper(this.hic, opts.error, opts.parent);
910
+ this.coordinates = new DetailCoordinates(this.hic, this.errList);
911
+ }
912
+ renderCanvas(blockwidth) {
913
+ 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");
914
+ 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) => {
915
+ const body = select_default(document.body);
916
+ const x = event.clientX;
917
+ const y = event.clientY;
918
+ const oldx = Number.parseInt(this.canvas.style("left"));
919
+ const oldy = Number.parseInt(this.canvas.style("top"));
920
+ body.on("mousemove", (event2) => {
921
+ const xoff = event2.clientX - x;
922
+ const yoff = event2.clientY - y;
923
+ this.xBlock.block.panning(xoff);
924
+ this.yBlock.block.panning(yoff);
925
+ this.canvas.style("left", `${oldx + xoff}px`).style("top", `${oldy + yoff}px`);
926
+ });
927
+ body.on("mouseup", (event2) => {
928
+ body.on("mousemove", null).on("mouseup", null);
929
+ const xoff = event2.clientX - x;
930
+ const yoff = event2.clientY - y;
931
+ this.xBlock.block.pannedby(xoff);
932
+ this.yBlock.block.pannedby(yoff);
933
+ });
934
+ });
935
+ }
936
+ async render() {
937
+ this.calcResolution = this.parent("calcResolution");
938
+ const state = this.parent("state");
939
+ this.xBlock = new DetailBlock(
940
+ this.app,
941
+ this.hic,
942
+ state.settings.widthHeightPx,
943
+ this.bbmargin,
944
+ this.plotDiv.xAxis,
945
+ false
946
+ );
947
+ this.yBlock = new DetailBlock(this.app, this.hic, state.settings.widthHeightPx, this.bbmargin, this.rotor, true);
948
+ this.renderCanvas(state.settings.widthHeightPx);
949
+ await this.xBlock.loadBlock(state.x, this.canvasHolder, this.canvas);
950
+ await this.yBlock.loadBlock(state.y, this.canvasHolder, this.canvas, this.sheath);
951
+ this.update(this.data);
952
+ }
953
+ async update(data) {
954
+ if (data.items.length == 0) {
955
+ this.app.dispatch({ type: "loading_active", active: false });
956
+ return;
957
+ }
958
+ this.data = data;
959
+ const state = this.parent("state");
960
+ const initialWidth = Number.parseInt(this.canvas.attr("width"));
961
+ const holderChange = Number.parseInt(this.canvasHolder.style("width")) - initialWidth + state.settings.widthHeightPx;
962
+ this.canvasHolder.style("width", `${holderChange}px`).style("height", `${holderChange}px`);
963
+ this.canvas.attr("width", `${state.settings.widthHeightPx}px`).attr("height", `${state.settings.widthHeightPx}px`);
964
+ if (this.xBlock.block.width != state.settings.widthHeightPx) {
965
+ this.xBlock.block.width = state.settings.widthHeightPx;
966
+ this.yBlock.block.width = state.settings.widthHeightPx;
967
+ this.xBlock.block.zoom2px(0, initialWidth);
968
+ this.yBlock.block.zoom2px(0, initialWidth);
969
+ }
970
+ this.ctx = this.canvas.node().getContext("2d");
971
+ const coords = this.coordinates.getCoordinates(
972
+ state.x,
973
+ state.y,
974
+ this.parent("data"),
975
+ this.parent("calcResolution"),
976
+ state.settings.widthHeightPx,
977
+ this.parent("fragData")
978
+ );
979
+ this.coords = coords;
980
+ this.ctx.clearRect(0, 0, state.settings.widthHeightPx, state.settings.widthHeightPx);
981
+ for (const [xCoord, yCoord, width, height, value] of this.coords) {
982
+ this.colorizeElement.colorizeElement(
983
+ xCoord,
984
+ yCoord,
985
+ value,
986
+ this.ctx,
987
+ width,
988
+ height,
989
+ this.parent("min"),
990
+ this.parent("max"),
991
+ "detail"
992
+ );
993
+ }
994
+ this.app.dispatch({ type: "loading_active", active: false });
995
+ }
996
+ };
997
+
998
+ // tracks/hic/axes/Chromosome.ts
999
+ var Chromosome = class {
1000
+ constructor(chr, width) {
1001
+ this.label = chr;
1002
+ this.width = width;
1003
+ }
1004
+ };
1005
+
1006
+ // tracks/hic/grid/Grid.ts
1007
+ var Grid = class _Grid {
1008
+ constructor(chrlst, resolution, chrlookup, binpx) {
1009
+ this.chromosomeMatrix = /* @__PURE__ */ new Map();
1010
+ this.chromosomeList = [];
1011
+ this.xoff = 0;
1012
+ this.yoff = 0;
1013
+ this.chr2px = [];
1014
+ this.chrlst = chrlst;
1015
+ let totalpx = this.chrlst.length;
1016
+ for (const chr of this.chrlst) {
1017
+ const w = Math.ceil(chrlookup[chr.toUpperCase()].len / resolution) * binpx;
1018
+ const chromosome = new Chromosome(chr, w);
1019
+ this.chromosomeList.push(chromosome);
1020
+ this.chr2px[chr] = w;
1021
+ totalpx += w;
1022
+ }
1023
+ this.totalpx = totalpx;
1024
+ for (let i = 0; i < this.chrlst.length; i++) {
1025
+ const chrx = this.chrlst[i];
1026
+ this.chromosomeMatrix.set(chrx, /* @__PURE__ */ new Map());
1027
+ let yoff = 0;
1028
+ for (let j = 0; j <= i; j++) {
1029
+ const chry = this.chrlst[j];
1030
+ const chrxChrLen = chrlookup[chrx.toUpperCase()].len;
1031
+ const chryChrLen = chrlookup[chry.toUpperCase()].len;
1032
+ const xbins = Math.ceil(chrxChrLen / resolution) * binpx;
1033
+ const ybins = Math.ceil(chryChrLen / resolution) * binpx;
1034
+ this.chromosomeMatrix.get(chrx).set(chry, {
1035
+ x: this.xoff,
1036
+ y: yoff,
1037
+ xbins,
1038
+ ybins,
1039
+ data: []
1040
+ //Empty array of data to fill later
1041
+ });
1042
+ yoff += this.chr2px[chry] + _Grid.borderWidth;
1043
+ }
1044
+ this.yoff = yoff;
1045
+ this.xoff += this.chr2px[chrx] + _Grid.borderWidth;
1046
+ }
1047
+ }
1048
+ static {
1049
+ this.checkerFill = "#DEF3FA";
1050
+ }
1051
+ static {
1052
+ this.spaceColor = "#CCC";
1053
+ }
1054
+ static {
1055
+ this.fontSize = 15;
1056
+ }
1057
+ static {
1058
+ this.font = font;
1059
+ }
1060
+ static {
1061
+ this.borderWidth = 1;
1062
+ }
1063
+ static {
1064
+ this.defaultChrLabWidth = 100;
1065
+ }
1066
+ };
1067
+
1068
+ // tracks/hic/viewmodel/GridViewModel.ts
1069
+ var GridViewModel = class {
1070
+ constructor(opts) {
1071
+ this.grid = new Grid(opts.hic.chrlst, opts.resolution || opts.hic.bpresolution[0], opts.hic.genome.chrlookup, 1);
1072
+ }
1073
+ };
1074
+
1075
+ // tracks/hic/grid/GridRenderer.ts
1076
+ var GridRenderer = class {
1077
+ constructor(svg, layerMap, layerSv, grid) {
1078
+ this.svg = svg;
1079
+ this.layerMap = layerMap.attr("transform", `translate(${Grid.defaultChrLabWidth}, ${Grid.fontSize})`);
1080
+ this.layerSv = layerSv.attr("transform", `translate(${Grid.defaultChrLabWidth}, ${Grid.fontSize})`);
1081
+ this.grid = grid;
1082
+ }
1083
+ render() {
1084
+ this.renderAxisX(this.grid);
1085
+ this.renderAxisY(this.grid);
1086
+ this.svg.attr("width", Grid.defaultChrLabWidth + this.grid.xoff).attr("height", Grid.fontSize + this.grid.yoff);
1087
+ }
1088
+ renderAxisX(grid) {
1089
+ let xoff = 0;
1090
+ this.grid.chromosomeList.forEach((chr, index) => {
1091
+ const chrw = chr.width;
1092
+ if (index % 2 === 0) {
1093
+ this.layerMap.append("rect").attr("x", xoff).attr("width", chrw).attr("height", Grid.fontSize).attr("y", -Grid.fontSize).attr("fill", Grid.checkerFill);
1094
+ }
1095
+ 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);
1096
+ xoff += chrw;
1097
+ this.layerSv.append("line").attr("x1", xoff).attr("x2", xoff).attr("y2", grid.totalpx).attr("stroke", Grid.spaceColor).attr("shape-rendering", "crispEdges");
1098
+ xoff += Grid.borderWidth;
1099
+ });
1100
+ }
1101
+ renderAxisY(grid) {
1102
+ let yoff = 0;
1103
+ this.grid.chromosomeList.forEach((chr, index) => {
1104
+ const chrh = chr.width;
1105
+ if (index % 2 === 0) {
1106
+ this.layerMap.append("rect").attr("x", -Grid.defaultChrLabWidth).attr("width", Grid.defaultChrLabWidth).attr("height", chrh).attr("y", yoff).attr("fill", Grid.checkerFill);
1107
+ }
1108
+ 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);
1109
+ yoff += chrh;
1110
+ this.layerSv.append("line").attr("x2", grid.totalpx).attr("y1", yoff).attr("y2", yoff).attr("stroke", Grid.spaceColor).attr("shape-rendering", "crispEdges");
1111
+ yoff += Grid.borderWidth;
1112
+ });
1113
+ }
1114
+ };
1115
+
1116
+ // tracks/hic/genome/ChrsTooltips.ts
1117
+ var ChrsTooltips = class {
1118
+ constructor() {
1119
+ this.chrx_tip = new Menu({ border: "solid 1px #ccc", padding: "0px", offsetX: 0, offsetY: 0 });
1120
+ this.chry_tip = new Menu({ border: "solid 1px #ccc", padding: "0px", offsetX: 0, offsetY: 0 });
1121
+ }
1122
+ render(img, chrx, chry) {
1123
+ const p = img.node().getBoundingClientRect();
1124
+ 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);
1125
+ 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);
1126
+ }
1127
+ };
1128
+
1129
+ // tracks/hic/grid/GridElementRenderer.ts
1130
+ var GridElementRenderer = class {
1131
+ constructor(layerMap, app) {
1132
+ this.app = app;
1133
+ this.layerMap = layerMap;
1134
+ this.tooltips = new ChrsTooltips();
1135
+ }
1136
+ render(obj, lead, follow, holder) {
1137
+ obj.canvas = holder.append("canvas").style("display", "none").node();
1138
+ obj.ctx = obj.canvas.getContext("2d");
1139
+ obj.canvas.width = obj.xbins;
1140
+ obj.canvas.height = obj.ybins;
1141
+ 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 () => {
1142
+ await this.app.dispatch({
1143
+ type: "view_create",
1144
+ view: "chrpair",
1145
+ config: {
1146
+ x: {
1147
+ chr: lead
1148
+ },
1149
+ y: {
1150
+ chr: follow
1151
+ }
1152
+ }
1153
+ });
1154
+ }).on("mouseover", () => {
1155
+ this.tooltips.render(obj.img, lead, follow);
1156
+ });
1157
+ if (lead != follow) {
1158
+ obj.canvas2 = holder.append("canvas").style("display", "none").node();
1159
+ obj.canvas2.width = obj.ybins;
1160
+ obj.canvas2.height = obj.xbins;
1161
+ obj.ctx2 = obj.canvas2.getContext("2d");
1162
+ 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 () => {
1163
+ await this.app.dispatch({
1164
+ type: "view_create",
1165
+ view: "chrpair",
1166
+ config: {
1167
+ x: {
1168
+ chr: follow
1169
+ },
1170
+ y: {
1171
+ chr: lead
1172
+ }
1173
+ }
1174
+ });
1175
+ }).on("mouseover", () => {
1176
+ this.tooltips.render(obj.img2, follow, lead);
1177
+ });
1178
+ } else {
1179
+ obj.ctx2 = obj.ctx;
1180
+ }
1181
+ }
1182
+ };
1183
+
1184
+ // tracks/hic/grid/GridElementsRenderer.ts
1185
+ var GridElementsRenderer = class {
1186
+ constructor(grid, layerMap, app) {
1187
+ this.grid = grid;
1188
+ this.gridElementRenderer = new GridElementRenderer(layerMap, app);
1189
+ }
1190
+ render(holder) {
1191
+ for (const [chrx, chryMap] of this.grid.chromosomeMatrix) {
1192
+ for (const [chry, gridElem] of chryMap) {
1193
+ this.gridElementRenderer.render(gridElem, chrx, chry, holder);
1194
+ }
1195
+ }
1196
+ }
1197
+ };
1198
+
1199
+ // tracks/hic/genome/GenomeView.ts
1200
+ var GenomeView = class {
1201
+ constructor(opts) {
1202
+ /** Dom */
1203
+ this.tip = new Menu();
1204
+ this.pica_x = new Menu({ border: "solid 1px #ccc", padding: "0px", offsetX: 0, offsetY: 0 });
1205
+ this.pica_y = new Menu({ border: "solid 1px #ccc", padding: "0px", offsetX: 0, offsetY: 0 });
1206
+ /** Data */
1207
+ /** px width for each chr */
1208
+ this.chr2px = {};
1209
+ this.lead2follow = /* @__PURE__ */ new Map();
1210
+ this.values = [];
1211
+ /** Defaults */
1212
+ this.defaultChrLabWidth = 100;
1213
+ this.borderwidth = 1;
1214
+ this.default_maxVPerc = 5;
1215
+ this.fontsize = 15;
1216
+ this.xoff = 0;
1217
+ this.yoff = 0;
1218
+ this.binpx = 1;
1219
+ this.atdev_chrnum = 8;
1220
+ this.min = 0;
1221
+ this.max = 0;
1222
+ this.app = opts.app;
1223
+ this.hic = opts.hic;
1224
+ this.plotDiv = opts.plotDiv;
1225
+ this.data = opts.data;
1226
+ this.parent = opts.parent;
1227
+ this.resolution = opts.resolution || opts.hic.bpresolution[0];
1228
+ this.svg = this.plotDiv.plot.append("svg").attr("data-testid", "sjpp-hic-genome-svg");
1229
+ this.layer_map = this.svg.append("g").attr("data-testid", "sjpp-hic-layerMap-g");
1230
+ this.layer_sv = this.svg.append("g").attr("data-testid", "sjpp-hic-layerSv-g");
1231
+ this.colorizeElement = new ColorizeElement();
1232
+ this.viewModel = new GridViewModel(opts);
1233
+ this.viewRender = new GridRenderer(this.svg, this.layer_map, this.layer_sv, this.viewModel.grid);
1234
+ this.gridElementsRenderer = new GridElementsRenderer(this.viewModel.grid, this.layer_map, this.app);
1235
+ this.gridFormattedData = new GridElementsFormattedData();
1236
+ }
1237
+ makeSv() {
1238
+ const unknownchr = /* @__PURE__ */ new Set();
1239
+ const radius = 8;
1240
+ for (const item of this.hic.sv.items) {
1241
+ const _o = this.lead2follow.get(item.chr1);
1242
+ if (!_o) {
1243
+ unknownchr.add(item.chr1);
1244
+ continue;
1245
+ }
1246
+ const obj = _o.get(item.chr2);
1247
+ if (!obj) {
1248
+ unknownchr.add(item.chr2);
1249
+ continue;
1250
+ }
1251
+ const p1 = item.position1 / this.resolution;
1252
+ const p2 = item.position2 / this.resolution;
1253
+ 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) => {
1254
+ this.tooltipSv(event, item);
1255
+ }).on("mouseout", () => {
1256
+ this.tip.hide();
1257
+ }).on("click", () => {
1258
+ this.clickSv(item);
1259
+ });
1260
+ if (obj.img2) {
1261
+ 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) => {
1262
+ this.tooltipSv(event, item);
1263
+ }).on("mouseout", () => {
1264
+ this.tip.hide();
1265
+ }).on("click", () => {
1266
+ this.clickSv(item);
1267
+ });
1268
+ }
1269
+ }
1270
+ }
1271
+ tooltipSv(event, item) {
1272
+ this.tip.clear().show(event.clientX, event.clientY).d.append("div").text(
1273
+ item.chr1 == item.chr2 ? `${item.chr1}:${item.position1}-${item.position2}` : `${item.chr1}:${item.position1}>${item.chr2}:${item.position2}`
1274
+ );
1275
+ }
1276
+ clickSv(item) {
1277
+ const default_svpointspan = 5e5;
1278
+ const default_subpanelpxwidth = 600;
1279
+ const subpanel_bordercolor = "rgba(200,0,0,.1)";
1280
+ const pane = newpane({ x: 100, y: 100 });
1281
+ pane.header.text(
1282
+ this.hic.name + " " + (item.chr1 == item.chr2 ? `${item.chr1}:${item.position1}-${item.position2}` : `${item.chr1}:${item.position1}>${item.chr2}:${item.position2}`)
1283
+ );
1284
+ const tracks = [
1285
+ {
1286
+ type: tkt.hicstraw,
1287
+ file: this.hic.file,
1288
+ enzyme: this.hic.enzyme,
1289
+ maxpercentage: this.default_maxVPerc,
1290
+ pyramidup: 1,
1291
+ name: this.hic.name
1292
+ }
1293
+ ];
1294
+ if (this.hic.tklst) {
1295
+ for (const t of this.hic.tklst) {
1296
+ tracks.push(t);
1297
+ }
1298
+ }
1299
+ first_genetrack_tolist(this.hic.genome, tracks);
1300
+ const arg = {
1301
+ holder: pane.body,
1302
+ hostURL: this.hic.hostURL,
1303
+ jwt: this.hic.jwt,
1304
+ genome: this.hic.genome,
1305
+ nobox: 1,
1306
+ tklst: tracks
1307
+ };
1308
+ if (item.chr1 == item.chr2 && Math.abs(item.position2 - item.position1) < default_svpointspan * 2) {
1309
+ arg.chr = item.chr1;
1310
+ const w = Math.abs(item.position2 - item.position1);
1311
+ arg.start = Math.max(1, Math.min(item.position1, item.position2) - w);
1312
+ arg.stop = Math.min(
1313
+ this.hic.genome.chrlookup[item.chr1.toUpperCase()].len,
1314
+ Math.max(item.position1, item.position2) + w
1315
+ );
1316
+ } else {
1317
+ arg.chr = item.chr1;
1318
+ arg.start = Math.max(1, item.position1 - default_svpointspan / 2);
1319
+ arg.stop = Math.min(
1320
+ this.hic.genome.chrlookup[item.chr1.toUpperCase()].len,
1321
+ item.position1 + default_svpointspan / 2
1322
+ );
1323
+ arg.width = default_subpanelpxwidth;
1324
+ arg.subpanels = [
1325
+ {
1326
+ chr: item.chr2,
1327
+ start: Math.max(1, item.position2 - default_svpointspan / 2),
1328
+ stop: Math.min(
1329
+ this.hic.genome.chrlookup[item.chr2.toUpperCase()].len,
1330
+ item.position2 + default_svpointspan / 2
1331
+ ),
1332
+ width: default_subpanelpxwidth,
1333
+ leftpad: 10,
1334
+ leftborder: subpanel_bordercolor
1335
+ }
1336
+ ];
1337
+ }
1338
+ blocklazyload(arg);
1339
+ }
1340
+ render() {
1341
+ this.viewRender.render();
1342
+ this.gridElementsRenderer.render(this.hic.holder);
1343
+ if (this.hic.sv && this.hic.sv.items) {
1344
+ this.makeSv();
1345
+ }
1346
+ this.update(this.data);
1347
+ }
1348
+ update(data) {
1349
+ this.data = data;
1350
+ this.min = this.parent("min");
1351
+ this.max = this.parent("max");
1352
+ for (const data2 of this.data) {
1353
+ if (!this.hic.chrlst.includes(data2.lead) || !this.hic.chrlst.includes(data2.follow)) continue;
1354
+ const obj = this.viewModel.grid.chromosomeMatrix.get(data2.lead).get(data2.follow);
1355
+ if (!obj) continue;
1356
+ obj.ctx.clearRect(0, 0, obj.canvas.width, obj.canvas.height);
1357
+ if (obj.canvas2) {
1358
+ obj.ctx2.clearRect(0, 0, obj.canvas2.width, obj.canvas.height);
1359
+ }
1360
+ obj.data = this.gridFormattedData.formatData("genome", data2.items, this.binpx, this.resolution);
1361
+ for (const [xPx, yPx, value] of obj.data) {
1362
+ this.colorizeElement.colorizeElement(xPx, yPx, value, obj, this.binpx, this.binpx, this.min, this.max, "genome");
1363
+ }
1364
+ obj.img.attr("xlink:href", obj.canvas.toDataURL());
1365
+ if (obj.canvas2) {
1366
+ obj.img2.attr("xlink:href", obj.canvas2.toDataURL());
1367
+ }
1368
+ }
1369
+ this.app.dispatch({ type: "loading_active", active: false });
1370
+ }
1371
+ };
1372
+
1373
+ // tracks/hic/controls/NormalizationMethodControl.ts
1374
+ var NormalizationMethodControl = class {
1375
+ constructor(holder, normalization, defaultNmeth, callback) {
1376
+ this.holder = holder;
1377
+ this.normalization = normalization;
1378
+ this.defaultNmeth = defaultNmeth;
1379
+ this.callback = callback;
1380
+ }
1381
+ render() {
1382
+ if (!this.normalization?.length) {
1383
+ this.nmethSelect = this.holder.text(this.defaultNmeth);
1384
+ } else {
1385
+ this.nmethSelect = this.holder.attr("data-testid", "sjpp-hic-nmeth-select").style("margin-right", "10px").append("select").on("change", async () => {
1386
+ const nmeth = this.nmethSelect.node().value;
1387
+ this.callback(nmeth, "nmeth");
1388
+ });
1389
+ for (const n of this.normalization) {
1390
+ this.nmethSelect.append("option").text(n);
1391
+ }
1392
+ }
1393
+ }
1394
+ update(option) {
1395
+ const options = this.nmethSelect.node().options;
1396
+ if (!options) return;
1397
+ const selectedNmeth = Array.from(options).find((o) => o.value === option);
1398
+ if (!selectedNmeth) throw `Invalid normalization method: ${option}`;
1399
+ selectedNmeth.selected = true;
1400
+ }
1401
+ };
1402
+
1403
+ // tracks/hic/controls/CutoffControl.ts
1404
+ var CutoffControl = class {
1405
+ constructor(holder, value, callback) {
1406
+ this.holder = holder;
1407
+ this.value = value;
1408
+ this.callback = callback;
1409
+ }
1410
+ render(opts) {
1411
+ 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) => {
1412
+ if (event.code != "Enter") return;
1413
+ const v = event.target.value;
1414
+ this.callback(v);
1415
+ });
1416
+ return cutoffDiv;
1417
+ }
1418
+ };
1419
+
1420
+ // tracks/hic/controls/MatrixTypeControl.ts
1421
+ var MatrixTypeControl = class {
1422
+ constructor(holder, callback) {
1423
+ this.values = [
1424
+ { label: "Observed", value: "observed" },
1425
+ { label: "Expected", value: "expected" },
1426
+ { label: "Observed/Expected", value: "oe" },
1427
+ { label: "Log(Observed/Expected)", value: "log(oe)" }
1428
+ // TODO: add server side logic to support these options
1429
+ // { label: 'Log(Observed + 1)', value: 'log(obs+1)'},
1430
+ // { label: 'Observed Pearson', value: 'op'}
1431
+ ];
1432
+ this.holder = holder;
1433
+ this.callback = callback;
1434
+ }
1435
+ render() {
1436
+ this.matrixSelect = this.holder.attr("data-testid", "sjpp-hic-matrix-type-select").style("margin-right", "10px").append("select").on("change", async () => {
1437
+ this.callback(this.matrixSelect.node().value, "matrixType");
1438
+ });
1439
+ for (const matrixType of this.values) {
1440
+ this.matrixSelect.append("option").text(matrixType.label).attr("value", matrixType.value);
1441
+ }
1442
+ }
1443
+ update(option) {
1444
+ const options = this.matrixSelect.node().options;
1445
+ if (!options) return;
1446
+ const selectedNmeth = Array.from(options).find((o) => o.value === option);
1447
+ if (!selectedNmeth) throw `Invalid normalization method: ${option}`;
1448
+ selectedNmeth.selected = true;
1449
+ }
1450
+ };
1451
+
1452
+ // tracks/hic/controls/ControlPanel.ts
1453
+ var ControlPanel = class _ControlPanel {
1454
+ constructor(opts) {
1455
+ this.zoomBlockCallback = (bool) => {
1456
+ const detailView = this.parent("detail");
1457
+ detailView.xBlock.block.zoomblock(2, bool);
1458
+ detailView.yBlock.block.zoomblock(2, bool);
1459
+ };
1460
+ this.minCallback = (v) => {
1461
+ if (Number(v) > Number(this.parent("max"))) {
1462
+ this.error("Min cutoff cannot be greater than max cutoff");
1463
+ } else {
1464
+ this.parent("min", Number(v));
1465
+ this.reColorHeatmap();
1466
+ this.parent("infoBar").update();
1467
+ }
1468
+ };
1469
+ this.maxCallback = (v) => {
1470
+ if (Number(v) < Number(this.parent("min"))) {
1471
+ this.error(`Max cutoff cannot be less than min cutoff`);
1472
+ } else if (Number(v) < 0) {
1473
+ this.error(`Max cutoff cannot be less than 0`);
1474
+ } else {
1475
+ this.parent("max", Number(v));
1476
+ this.reColorHeatmap();
1477
+ this.parent("infoBar").update();
1478
+ }
1479
+ };
1480
+ this.reColorHeatmap = () => {
1481
+ if (this.parent("activeView") == "genome") {
1482
+ const genomeView = this.parent("genome");
1483
+ const chrMatrix = genomeView.viewRender.grid.chromosomeMatrix;
1484
+ if (!chrMatrix) return;
1485
+ for (const map of chrMatrix) {
1486
+ const yMap = map[1];
1487
+ for (const obj of yMap) {
1488
+ const canvasObj = obj[1];
1489
+ if (!canvasObj) continue;
1490
+ for (const [leadpx, followpx, val] of canvasObj.data) {
1491
+ this.colorizeElement.colorizeElement(
1492
+ leadpx,
1493
+ followpx,
1494
+ val,
1495
+ canvasObj,
1496
+ 1,
1497
+ 1,
1498
+ this.parent("min"),
1499
+ this.parent("max"),
1500
+ "genome"
1501
+ );
1502
+ }
1503
+ canvasObj.img.attr("xlink:href", canvasObj.canvas.toDataURL());
1504
+ if (canvasObj.canvas2) {
1505
+ canvasObj.img2.attr("xlink:href", canvasObj.canvas2.toDataURL());
1506
+ }
1507
+ }
1508
+ }
1509
+ } else if (this.parent("activeView") == "chrpair") {
1510
+ const view = this.parent("chrpair");
1511
+ for (const [xCoord, yCoord, val] of view.data) {
1512
+ this.colorizeElement.colorizeElement(
1513
+ xCoord,
1514
+ yCoord,
1515
+ val,
1516
+ view.ctx,
1517
+ view.binpx,
1518
+ view.binpx,
1519
+ this.parent("min"),
1520
+ this.parent("max"),
1521
+ "chrpair"
1522
+ );
1523
+ }
1524
+ } else if (this.parent("activeView") == "detail") {
1525
+ const view = this.parent("detail");
1526
+ for (const [xCoord, yCoord, width, height, value] of view.coords) {
1527
+ this.colorizeElement.colorizeElement(
1528
+ xCoord,
1529
+ yCoord,
1530
+ value,
1531
+ view.ctx,
1532
+ width,
1533
+ height,
1534
+ this.parent("min"),
1535
+ this.parent("max"),
1536
+ "detail"
1537
+ );
1538
+ }
1539
+ }
1540
+ };
1541
+ this.dropdownCallback = (v, prop) => {
1542
+ const state = this.app.getState();
1543
+ this.app.dispatch({
1544
+ type: "view_update",
1545
+ view: state.currView,
1546
+ config: { [prop]: v }
1547
+ });
1548
+ };
1549
+ this.type = _ControlPanel.type;
1550
+ this.controls = {};
1551
+ this.app = opts.app;
1552
+ this.controlsDiv = opts.controlsDiv;
1553
+ this.hic = opts.hic;
1554
+ this.colorizeElement = new ColorizeElement();
1555
+ this.parent = opts.parent;
1556
+ this.error = opts.error;
1557
+ }
1558
+ static {
1559
+ this.type = "controlPanel";
1560
+ }
1561
+ getState(appState) {
1562
+ return appState;
1563
+ }
1564
+ addLabel(tr, text) {
1565
+ return tr.append("td").style("color", "#858585").style("font-size", ".8em").style("vertical-align", text.toUpperCase() == "VIEW" ? "top" : "middle").text(text.toUpperCase());
1566
+ }
1567
+ init() {
1568
+ const state = this.app.getState();
1569
+ 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");
1570
+ let menuVisible = true;
1571
+ 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", () => {
1572
+ menuVisible = !menuVisible;
1573
+ menu.style("display", menuVisible ? "block" : "none");
1574
+ });
1575
+ const menu = menuWrapper.append("div").attr("class", "sjpp-hic-menu").attr("data-testid", "sjpp-hic-menu").style("display", menuVisible ? "block" : "none");
1576
+ const menuTable = menu.append("table").style("border-spacing", "3px");
1577
+ this.controls.normalizationRow = menuTable.append("tr");
1578
+ this.addLabel(this.controls.normalizationRow, "NORMALIZATION");
1579
+ this.controls.nmeth = new NormalizationMethodControl(
1580
+ this.controls.normalizationRow.append("td").attr("class", "sjpp-nmeth-select"),
1581
+ this.hic.normalization,
1582
+ state.defaultNmeth,
1583
+ this.dropdownCallback
1584
+ );
1585
+ this.controls.nmeth.render();
1586
+ this.controls.minCutoffRow = menuTable.append("tr");
1587
+ this.controls.minCutoffLabel = this.addLabel(this.controls.minCutoffRow, "");
1588
+ this.controls.inputBpMinV = new CutoffControl(
1589
+ this.controls.minCutoffRow.append("td"),
1590
+ this.parent("min"),
1591
+ this.minCallback
1592
+ ).render({ width: "120px" });
1593
+ this.controls.maxCutoffRow = menuTable.append("tr");
1594
+ this.controls.maxCutoffLabel = this.addLabel(this.controls.maxCutoffRow, "");
1595
+ this.controls.inputBpMaxV = new CutoffControl(
1596
+ this.controls.maxCutoffRow.append("td"),
1597
+ this.parent("max"),
1598
+ this.maxCallback
1599
+ ).render({ width: "120px" });
1600
+ this.controls.matrixTypeRow = menuTable.append("tr");
1601
+ this.addLabel(this.controls.matrixTypeRow, "matrix type");
1602
+ this.controls.matrixType = new MatrixTypeControl(this.controls.matrixTypeRow.append("td"), this.dropdownCallback);
1603
+ this.controls.matrixType.render();
1604
+ this.controls.widthRow = menuTable.append("tr");
1605
+ this.addLabel(this.controls.widthRow, "WIDTH / height");
1606
+ this.controls.width = this.controls.widthRow.append("td");
1607
+ 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) => {
1608
+ if (event.code != "Enter") return;
1609
+ const v = event.target.value;
1610
+ this.app.dispatch({
1611
+ type: "view_update",
1612
+ config: {
1613
+ settings: { widthHeightPx: Number.parseInt(v) }
1614
+ }
1615
+ });
1616
+ });
1617
+ const viewRow = menuTable.append("tr");
1618
+ this.addLabel(viewRow, "VIEW");
1619
+ const viewBtnDiv = viewRow.append("td");
1620
+ this.controls.view = viewBtnDiv.append("span").attr("data-testid", "sjpp-hic-view-span").style("padding-right", "5px").style("display", "block");
1621
+ 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 () => {
1622
+ await this.app.dispatch({
1623
+ type: "view_create",
1624
+ view: "genome",
1625
+ config: {
1626
+ x: {},
1627
+ y: {}
1628
+ }
1629
+ });
1630
+ });
1631
+ 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 () => {
1632
+ const currState = this.app.getState();
1633
+ await this.app.dispatch({
1634
+ type: "view_create",
1635
+ view: "chrpair",
1636
+ config: {
1637
+ x: {
1638
+ chr: currState.x.chr
1639
+ },
1640
+ y: {
1641
+ chr: currState.y.chr
1642
+ }
1643
+ }
1644
+ });
1645
+ });
1646
+ 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 () => {
1647
+ await this.app.dispatch({
1648
+ type: "view_create",
1649
+ view: "horizontal"
1650
+ });
1651
+ });
1652
+ 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 () => {
1653
+ await this.app.dispatch({
1654
+ type: "view_create",
1655
+ view: "detail"
1656
+ });
1657
+ });
1658
+ this.controls.zoomDiv = menuTable.append("tr").attr("data-testid", "sjpp-hic-zoom-div").style("display", state.currView == "detail" ? "contents" : "none");
1659
+ this.addLabel(this.controls.zoomDiv, "ZOOM");
1660
+ const zoomDiv = this.controls.zoomDiv.append("td");
1661
+ this.controls.zoomIn = zoomDiv.append("button").attr("data-testid", "sjpp-hic-zoom-in-btn").style("margin-right", "10px").text("In").on("click", () => {
1662
+ this.zoomBlockCallback(false);
1663
+ });
1664
+ this.controls.zoomOut = zoomDiv.append("button").attr("data-testid", "sjpp-hic-zoom-out-btn").style("margin-right", "10px").text("Out").on("click", () => {
1665
+ this.zoomBlockCallback(true);
1666
+ });
1667
+ }
1668
+ showBtns() {
1669
+ const state = this.app.getState();
1670
+ this.controls.genomeViewBtn.style("display", state.currView === "genome" ? "none" : "inline-block");
1671
+ if (state.currView === "detail") {
1672
+ this.controls.chrpairViewBtn.html(`&#8810; Entire ${state.x.chr}-${state.y.chr}`).style("display", "block");
1673
+ this.controls.horizontalViewBtn.style("display", "block");
1674
+ this.controls.zoomDiv.style("display", "contents");
1675
+ this.controls.detailViewBtn.style("display", "none");
1676
+ } else if (state.currView === "horizontal") {
1677
+ this.controls.chrpairViewBtn.html(`&#8810; Entire ${state.x.chr}-${state.y.chr}`).style("display", "block");
1678
+ this.controls.detailViewBtn.style("display", "block");
1679
+ this.controls.horizontalViewBtn.style("display", "none");
1680
+ this.controls.zoomDiv.style("display", "none");
1681
+ } else {
1682
+ this.controls.chrpairViewBtn.style("display", "none");
1683
+ this.controls.horizontalViewBtn.style("display", "none");
1684
+ this.controls.detailViewBtn.style("display", "none");
1685
+ this.controls.zoomDiv.style("display", "none");
1686
+ this.controls.widthRow.style("display", "none");
1687
+ }
1688
+ }
1689
+ showHideControls() {
1690
+ const state = this.app.getState();
1691
+ this.controls.normalizationRow.style("display", state.currView == "horizontal" ? "none" : "");
1692
+ this.controls.minCutoffRow.style("display", state.currView == "horizontal" ? "none" : "");
1693
+ this.controls.maxCutoffRow.style("display", state.currView == "horizontal" ? "none" : "");
1694
+ this.controls.matrixTypeRow.style("display", state.currView == "horizontal" ? "none" : "");
1695
+ this.controls.widthRow.style("display", state.currView == "detail" ? "contents" : "none");
1696
+ }
1697
+ main(appState) {
1698
+ const state = this.app.getState(appState);
1699
+ this.controls.nmeth.update(state[state.currView].nmeth);
1700
+ this.controls.matrixType.update(state[state.currView].matrixType);
1701
+ this.controls.zoomDiv.style("display", state.currView == "detail" ? "contents" : "none");
1702
+ if (state.currView == "chrpair") {
1703
+ this.controls.view.text(`${state.x.chr}-${state.y.chr} Pair`);
1704
+ } else {
1705
+ this.controls.view.text(state.currView.charAt(0).toUpperCase() + state.currView.slice(1));
1706
+ }
1707
+ const formatAbsMin = this.parent("absMin") < 1e-5 ? Number(this.parent("absMin")).toExponential(1) : Number(this.parent("absMin").toFixed(6));
1708
+ const formatAbsMax = this.parent("absMax") < 1e-5 ? Number(this.parent("absMax")).toExponential(1) : Number(this.parent("absMax").toFixed(6));
1709
+ this.controls.width.select("input").property("value", state.settings.widthHeightPx);
1710
+ this.controls.inputBpMinV.property("value", this.parent("min"));
1711
+ this.controls.inputBpMaxV.property("value", this.parent("max"));
1712
+ this.controls.minCutoffLabel.html(`MIN CUTOFF <br>(>= ${formatAbsMin})`);
1713
+ this.controls.maxCutoffLabel.html(`MAX CUTOFF <br>(<= ${formatAbsMax})`);
1714
+ this.showBtns();
1715
+ this.showHideControls();
1716
+ }
1717
+ };
1718
+ var controlPanelInit = getCompInit(ControlPanel);
1719
+
1720
+ // tracks/hic/dom/InfoBar.ts
1721
+ var InfoBar = class {
1722
+ constructor(opts) {
1723
+ /** Defaults **/
1724
+ //Color shown on the left of the color scale
1725
+ this.startColor = "white";
1726
+ //Color shown on the right of the color scale
1727
+ this.endColor = "red";
1728
+ this.addLabel = (text) => {
1729
+ 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());
1730
+ };
1731
+ this.addValue = (text) => {
1732
+ 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);
1733
+ };
1734
+ this.type = "infoBar";
1735
+ this.app = opts.app;
1736
+ this.hic = opts.hic;
1737
+ const table = opts.infoBarDiv;
1738
+ this.labelRow = table.append("tr");
1739
+ this.valueRow = table.append("tr");
1740
+ this.parent = opts.parent;
1741
+ }
1742
+ async render() {
1743
+ this.addLabel("Version");
1744
+ this.addValue(this.hic.version);
1745
+ this.addLabel("Enzyme");
1746
+ this.addValue(this.hic.enzyme || "N/A");
1747
+ this.addLabel("Resolution");
1748
+ this.resolutionDiv = this.addValue("");
1749
+ this.colorScaleLabel = this.addLabel("Scale");
1750
+ this.colorScaleDiv = this.valueRow.append("td").attr("data-testid", "sjpp-hic-color-scale");
1751
+ const min = this.parent("min");
1752
+ let max = this.parent("max");
1753
+ if (min == max) max = max + 0.01;
1754
+ this.colorScale = new ColorScale({
1755
+ barheight: 20,
1756
+ barwidth: 100,
1757
+ domain: [min, max],
1758
+ fontSize: 12,
1759
+ height: 40,
1760
+ width: 150,
1761
+ holder: this.colorScaleDiv,
1762
+ colors: [this.startColor, this.endColor],
1763
+ position: "20,0",
1764
+ ticks: 3,
1765
+ tickSize: 5,
1766
+ //Do not use min value here on initialization. It's 0 and will not update later.
1767
+ markedValue: 1
1768
+ });
1769
+ }
1770
+ update() {
1771
+ const res = this.parent("calcResolution");
1772
+ let resolutionText;
1773
+ if (res < this.hic.bpresolution[this.hic.bpresolution.length - 1]) {
1774
+ resolutionText = `${res} fragment${res > 1 ? "s" : ""}`;
1775
+ } else {
1776
+ resolutionText = bplen(res);
1777
+ }
1778
+ this.resolutionDiv.text(resolutionText);
1779
+ if (this.parent("state").currView == "horizontal") {
1780
+ this.colorScaleLabel.style("display", "none");
1781
+ this.colorScaleDiv.style("display", "none");
1782
+ } else {
1783
+ this.colorScaleLabel.style("display", "");
1784
+ this.colorScaleDiv.style("display", "");
1785
+ const min = this.parent("min");
1786
+ const max = this.parent("max");
1787
+ if (min < 0) {
1788
+ this.colorScale.colors = ["blue", "white", "red"];
1789
+ this.colorScale.domain = [min, 0, max];
1790
+ } else {
1791
+ this.colorScale.colors = ["white", "red"];
1792
+ this.colorScale.domain = [0, max];
1793
+ }
1794
+ this.colorScale.markedValue = min;
1795
+ this.colorScale.updateScale();
1796
+ }
1797
+ }
1798
+ };
1799
+
1800
+ // tracks/hic/data/DataMapper.ts
1801
+ var DataMapper = class {
1802
+ constructor(hic, percentile) {
1803
+ this.hic = hic;
1804
+ this.percentile = percentile ? percentile / 100 : 0.99;
1805
+ }
1806
+ sortData(data) {
1807
+ const vlst = [];
1808
+ if (data?.items && data?.items.length) {
1809
+ for (const i of data.items) {
1810
+ vlst.push(i[2]);
1811
+ }
1812
+ } else {
1813
+ const blankChrs = /* @__PURE__ */ new Set();
1814
+ for (const d of data) {
1815
+ if (d.lead == "chrM" && !d.items.length || d.lead == "chrY" && !d.items.length) {
1816
+ blankChrs.add(d.lead);
1817
+ continue;
1818
+ }
1819
+ for (const i of d.items) {
1820
+ vlst.push(i[2]);
1821
+ }
1822
+ }
1823
+ if (blankChrs.size) {
1824
+ for (const c of blankChrs) {
1825
+ const idx = this.hic.chrlst.indexOf(c);
1826
+ this.hic.chrlst.splice(idx, 1);
1827
+ }
1828
+ }
1829
+ }
1830
+ const sortedVlst = vlst.sort((a, b) => a - b);
1831
+ const max = sortedVlst[Math.floor(sortedVlst.length * this.percentile)];
1832
+ const min = sortedVlst[0];
1833
+ return [min, max, sortedVlst[sortedVlst.length - 1]];
1834
+ }
1835
+ };
1836
+
1837
+ // tracks/hic/data/GenomeDataFetcher.ts
1838
+ var GenomeDataFetcher = class {
1839
+ constructor(hic, debugmode, errList = []) {
1840
+ this.data = [];
1841
+ this.hic = hic;
1842
+ this.debugmode = debugmode;
1843
+ this.errList = errList || [];
1844
+ }
1845
+ async getData(obj) {
1846
+ if (this.data.length) this.data = [];
1847
+ if (!obj?.matrixType) obj.matrixType = "observed";
1848
+ try {
1849
+ const res = await dofetch3("hicgenome?", {
1850
+ method: "POST",
1851
+ body: JSON.stringify({
1852
+ chrlst: this.hic.chrlst,
1853
+ nmeth: obj.nmeth,
1854
+ resolution: obj.resolution,
1855
+ matrixType: obj.matrixType,
1856
+ file: this.hic.file,
1857
+ url: this.hic.url,
1858
+ nochr: this.hic.nochr
1859
+ })
1860
+ });
1861
+ if (res.error) {
1862
+ const errs = res.error.split("\n");
1863
+ for (const e of errs) {
1864
+ this.errList.push(e);
1865
+ }
1866
+ }
1867
+ return res.data;
1868
+ } catch (e) {
1869
+ this.errList.push(e.message || e);
1870
+ if (e.stack) console.error(e.stack);
1871
+ }
1872
+ }
1873
+ };
1874
+
1875
+ // tracks/hic/data/DataFetcher.ts
1876
+ var DataFetcher = class {
1877
+ constructor(hic, debugmode, errList = []) {
1878
+ this.hic = hic;
1879
+ this.debugmode = debugmode;
1880
+ this.errList = errList || [];
1881
+ }
1882
+ async getData(obj) {
1883
+ if (!obj?.matrixType) obj.matrixType = "observed";
1884
+ const arg = {
1885
+ matrixType: obj.matrixType,
1886
+ file: this.hic.file,
1887
+ url: this.hic.url,
1888
+ pos1: this.hic.nochr ? obj.lead.replace("chr", "") : obj.lead,
1889
+ pos2: this.hic.nochr ? obj.follow.replace("chr", "") : obj.follow,
1890
+ nmeth: obj.nmeth,
1891
+ resolution: obj.resolution
1892
+ };
1893
+ try {
1894
+ const data = await dofetch3("hicdata?", {
1895
+ method: "POST",
1896
+ body: JSON.stringify(arg)
1897
+ });
1898
+ if (data.error) {
1899
+ throw Error(`${obj.lead} - ${obj.follow}: ${data.error.error}`);
1900
+ }
1901
+ if (!data.items || data.items.length == 0) return;
1902
+ return data;
1903
+ } catch (e) {
1904
+ this.errList.push(e.message || e);
1905
+ if (e.stack) console.error(e.stack);
1906
+ }
1907
+ }
1908
+ };
1909
+
1910
+ // tracks/hic/HicComponent.ts
1911
+ var HicComponent = class _HicComponent {
1912
+ constructor(opts) {
1913
+ this.genomeData = [];
1914
+ this.calcResolution = null;
1915
+ this.firstRender = true;
1916
+ this.min = 0;
1917
+ this.absMin = 0;
1918
+ this.max = 0;
1919
+ this.absMax = 0;
1920
+ this.hasStatePreMain = true;
1921
+ this.type = _HicComponent.type;
1922
+ this.hic = opts.hic;
1923
+ this.state = opts.state;
1924
+ this.dom = opts.dom;
1925
+ this.errList = opts.errList;
1926
+ this.plotDiv = this.dom.plotDiv.append("table").classed("sjpp-hic-plot-main", true);
1927
+ const tr1 = this.plotDiv.append("tr");
1928
+ const tr2 = this.plotDiv.append("tr");
1929
+ this.plotDiv = {
1930
+ plot: tr1.append("td").classed("sjpp-hic-plot", true).attr("data-testid", "sjpp-hic-plot"),
1931
+ yAxis: tr1.append("td").classed("sjpp-hic-plot-yaxis", true).attr("data-testid", "sjpp-hic-yaxis"),
1932
+ xAxis: tr2.append("td").classed("sjpp-hic-plot-xaxis", true).attr("data-testid", "sjpp-hic-xaxis"),
1933
+ blank: tr2.append("td")
1934
+ };
1935
+ this.app = opts.app;
1936
+ this.dataMapper = new DataMapper(this.hic, opts.state.maxCutoffPercentile);
1937
+ this.activeView = this.state.currView;
1938
+ this.error = opts.error;
1939
+ this.resolution = new Resolution(this.error);
1940
+ this.parent = (prop) => {
1941
+ return this[prop];
1942
+ };
1943
+ this.detailDataMapper = new DetailDataMapper(this.hic, this.errList, this.parent);
1944
+ }
1945
+ static {
1946
+ this.type = "view";
1947
+ }
1948
+ getState(appState) {
1949
+ return appState;
1950
+ }
1951
+ reactsTo(action) {
1952
+ if (action.type.startsWith("view")) return true;
1953
+ else return false;
1954
+ }
1955
+ initView() {
1956
+ const opts = {
1957
+ plotDiv: this.plotDiv,
1958
+ hic: this.hic,
1959
+ app: this.app,
1960
+ parent: (prop) => {
1961
+ return this[prop];
1962
+ }
1963
+ };
1964
+ if (this.state.currView == "genome") {
1965
+ opts["data"] = this.data;
1966
+ this.genome = new GenomeView(opts);
1967
+ this.genome.render();
1968
+ } else if (this.state.currView === "chrpair") {
1969
+ opts["items"] = this.data;
1970
+ this.chrpair = new ChrPairView(opts);
1971
+ this.chrpair.render();
1972
+ } else if (this.state.currView === "detail") {
1973
+ opts["data"] = this.data;
1974
+ this.detail = new DetailView(opts);
1975
+ this.detail.render();
1976
+ } else if (this.state.currView === "horizontal") {
1977
+ this.horizontal = new HorizontalView(opts);
1978
+ this.horizontal.render();
1979
+ } else {
1980
+ throw Error(`Unknown view: ${this.state.currView}`);
1981
+ }
1982
+ }
1983
+ async fetchData(obj) {
1984
+ if (this.data?.length) this.data = [];
1985
+ if (this.state.currView == "genome") {
1986
+ if (this.activeView != "genome" && this.genomeData?.length) this.data = this.genomeData;
1987
+ else {
1988
+ const genomeFetcher = new GenomeDataFetcher(this.hic, true, this.errList);
1989
+ this.genomeData = await genomeFetcher.getData(obj);
1990
+ this.data = this.genomeData;
1991
+ }
1992
+ } else if (this.state.currView == "detail") {
1993
+ this.data = await this.detailDataMapper.getData(this.state.x, this.state.y, this.fragData);
1994
+ } else {
1995
+ if (!this.state?.x?.chr || !this.state?.y?.chr) {
1996
+ this.errList.push(`No positions provided for ${this.activeView} view.`);
1997
+ return;
1998
+ } else {
1999
+ const chrx = this.state.x;
2000
+ const chry = this.state.y;
2001
+ obj["lead"] = `${chrx.start && chrx.stop ? `${chrx.chr}:${chrx.start}-${chrx.stop}` : chrx.chr}`;
2002
+ obj["follow"] = `${chry.start && chry.stop ? `${chry.chr}:${chry.start}-${chry.stop}` : chry.chr}`;
2003
+ }
2004
+ const dataFetcher = new DataFetcher(this.hic, true, this.errList);
2005
+ this.data = await dataFetcher.getData(obj);
2006
+ }
2007
+ }
2008
+ async setResolution(appState) {
2009
+ const state = this.app.getState(appState);
2010
+ this.calcResolution = this.resolution.getResolution(state, this.hic);
2011
+ if (state.currView == "detail" && this.calcResolution == null) {
2012
+ await this.detailDataMapper.getFragData(state.x, state.y);
2013
+ this.fragData = this.detailDataMapper.frag;
2014
+ const maxFragSpan = Math.min(
2015
+ this.fragData.x.stop - this.fragData.x.start,
2016
+ this.fragData.y.stop - this.fragData.y.start
2017
+ );
2018
+ this.calcResolution = this.resolution.findResFromArray(
2019
+ maxFragSpan,
2020
+ state.minFragSpan,
2021
+ this.hic.fragresolution,
2022
+ true
2023
+ );
2024
+ } else {
2025
+ this.fragData = null;
2026
+ }
2027
+ return this.calcResolution;
2028
+ }
2029
+ async setDataArgs(appState) {
2030
+ const state = this.app.getState(appState);
2031
+ const currView = state[state.currView];
2032
+ const args = {
2033
+ nmeth: currView.nmeth,
2034
+ resolution: await this.setResolution(appState),
2035
+ matrixType: currView.matrixType
2036
+ };
2037
+ if (state.currView == "chrpair") {
2038
+ args["lead"] = state.x.chr;
2039
+ args["follow"] = state.y.chr;
2040
+ }
2041
+ return args;
2042
+ }
2043
+ async getViewData(appState) {
2044
+ const args = await this.setDataArgs(appState);
2045
+ await this.fetchData(args);
2046
+ if (this.data?.length > 0 || this.data?.items?.length > 0) {
2047
+ const [min, max, absMax] = this.dataMapper.sortData(this.data);
2048
+ this.min = this.absMin = min;
2049
+ this.max = max;
2050
+ this.absMax = absMax;
2051
+ } else {
2052
+ if (this.state.currView != "genome") {
2053
+ const state = this.app.getState(appState);
2054
+ const xPosMessage = state.x?.start ? `${state.x.chr}:${state.x.start}-${state.x.stop}` : state.x.chr;
2055
+ const yPosMessage = state.y?.start ? `${state.y.chr}:${state.y.start}-${state.y.stop}` : state.y.chr;
2056
+ this.errList.push(`No data returned for ${xPosMessage} and ${yPosMessage}`);
2057
+ }
2058
+ }
2059
+ }
2060
+ async init() {
2061
+ this.components = {
2062
+ controls: await controlPanelInit({
2063
+ app: this.app,
2064
+ controlsDiv: this.dom.controlsDiv,
2065
+ hic: this.hic,
2066
+ parent: (prop, value) => {
2067
+ if (value) this[prop] = value;
2068
+ return this[prop];
2069
+ },
2070
+ error: this.error.bind(this)
2071
+ })
2072
+ };
2073
+ this.infoBar = new InfoBar({
2074
+ app: this.app,
2075
+ infoBarDiv: this.dom.infoBarDiv.append("table").style("border-spacing", "3px"),
2076
+ hic: this.hic,
2077
+ parent: (prop) => {
2078
+ return this[prop];
2079
+ }
2080
+ });
2081
+ this.infoBar.render();
2082
+ }
2083
+ async main(appState) {
2084
+ if (this.errList.length) {
2085
+ this.app.dispatch({ type: "loading_active", active: false });
2086
+ return;
2087
+ }
2088
+ const state = this.app.getState(appState);
2089
+ if (this.firstRender == true) {
2090
+ this.firstRender = false;
2091
+ await this.getViewData(appState);
2092
+ this.initView();
2093
+ } else {
2094
+ if (state.currView != "horizontal") {
2095
+ this.app.dispatch({ type: "loading_active", active: true });
2096
+ await this.getViewData(appState);
2097
+ }
2098
+ if (this.activeView != state.currView) {
2099
+ if (this.activeView == "genome") {
2100
+ this.genome.svg.remove();
2101
+ } else {
2102
+ this.plotDiv.xAxis.selectAll("*").remove();
2103
+ this.plotDiv.yAxis.selectAll("*").remove();
2104
+ this.plotDiv.plot.selectAll("*").remove();
2105
+ }
2106
+ this.activeView = state.currView;
2107
+ this.initView();
2108
+ } else {
2109
+ this[state.currView].update(this.data);
2110
+ }
2111
+ }
2112
+ this.infoBar.update();
2113
+ if (this.errList.length) {
2114
+ this.error(this.errList);
2115
+ this.app.dispatch({ type: "loading_active", active: false });
2116
+ }
2117
+ }
2118
+ };
2119
+ var viewCompInit = getCompInit(HicComponent);
2120
+
2121
+ // tracks/hic/HicApp.ts
2122
+ var HicApp = class _HicApp extends AppBase {
2123
+ constructor(opts) {
2124
+ super(opts);
2125
+ this.views = ["genome", "chrpair", "detail", "horizontal"];
2126
+ this.errList = [];
2127
+ /** Required for rx but not in use */
2128
+ this.wasDestroyed = false;
2129
+ this.type = _HicApp.type;
2130
+ this.hic = {
2131
+ enzyme: opts.enzyme,
2132
+ file: opts.file,
2133
+ url: opts.url,
2134
+ genome: opts.genome,
2135
+ holder: opts.holder,
2136
+ hostUrl: opts.hostUrl,
2137
+ jwt: opts.jwt,
2138
+ position1: opts.position1,
2139
+ position2: opts.position2,
2140
+ maxCutoffPercentile: opts.maxCutoffPercentile,
2141
+ name: "name" in opts ? opts.name : "Hi-C",
2142
+ tklist: "tklst" in opts ? opts.tklst : [],
2143
+ state: "state" in opts ? opts.state : {}
2144
+ };
2145
+ this.dom = {
2146
+ errorDiv: opts.holder.append("div").classed("sjpp-hic-error", true),
2147
+ controlsDiv: opts.holder.append("div").classed("sjpp-hic-controls", true).style("display", "inline-block"),
2148
+ 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"),
2149
+ loadingDiv: select_default("body").append("div").attr("id", "sjpp-loading-overlay"),
2150
+ plotDiv: opts.holder.append("div").classed("sjpp-hic-main", true).style("display", "inline-block"),
2151
+ tip: new Menu()
2152
+ };
2153
+ }
2154
+ static {
2155
+ this.type = "app";
2156
+ }
2157
+ async error(err) {
2158
+ if (err && typeof err == "string") this.errList.push(err);
2159
+ showErrorsWithCounter(this.errList, this.dom.errorDiv);
2160
+ this.errList = [];
2161
+ }
2162
+ determineView() {
2163
+ if (!this.hic.position1 && !this.hic.position2 && !this.hic.state.currView) this.hic.state.currView = "genome";
2164
+ if (!this.hic.position1 && this.hic.position2) this.errList.push("Missing first position");
2165
+ if (this.hic.position1 && !this.hic.position2) this.errList.push("Missing second position");
2166
+ if (this.hic.position1 && this.hic.position2) {
2167
+ const pos1 = this.hic.position1.split(/[:-]/);
2168
+ const pos2 = this.hic.position2.split(/[:-]/);
2169
+ this.hic.state.x = { chr: pos1[0] };
2170
+ this.hic.state.y = { chr: pos2[0] };
2171
+ if (!Number.isNaN(+pos1[1]) && !Number.isNaN(+pos1[2])) {
2172
+ this.hic.state.x.start = +pos1[1];
2173
+ this.hic.state.x.stop = +pos1[2];
2174
+ this.hic.state.y.start = +pos2[1];
2175
+ this.hic.state.y.stop = +pos2[2];
2176
+ this.hic.state.currView = "detail";
2177
+ } else {
2178
+ this.hic.state.currView = "chrpair";
2179
+ }
2180
+ } else {
2181
+ if (!this.views.some((v) => v === this.hic.state.currView)) this.error(`Unknown view: ${this.hic.state.currView}`);
2182
+ else return this.hic.state.currView;
2183
+ }
2184
+ }
2185
+ getViewsConfig() {
2186
+ if (this.hic.maxCutoffPercentile) this.hic.state.maxCutoffPercentile = this.hic.maxCutoffPercentile;
2187
+ let nmeth;
2188
+ if (this.hic["normalization"]?.length > 0) {
2189
+ if (!this.hic["normalization"].includes("NONE")) this.hic["normalization"].unshift("NONE");
2190
+ nmeth = this.hic["normalization"][0];
2191
+ } else {
2192
+ nmeth = "NONE";
2193
+ }
2194
+ if (this.hic.state.currView) {
2195
+ if (!this.hic.state[this.hic.state.currView]) this.hic.state[this.hic.state.currView] = {};
2196
+ if (!this.hic.state[this.hic.state.currView]?.matrixType) {
2197
+ this.hic.state[this.hic.state.currView].matrixType = "observed";
2198
+ }
2199
+ if (!this.hic.state[this.hic.state.currView]?.nmeth) {
2200
+ this.hic.state[this.hic.state.currView].nmeth = nmeth;
2201
+ }
2202
+ }
2203
+ for (const v of this.views) {
2204
+ if (!this.hic.state[v]) {
2205
+ this.hic.state[v] = {
2206
+ matrixType: "observed",
2207
+ nmeth
2208
+ };
2209
+ }
2210
+ }
2211
+ }
2212
+ async init() {
2213
+ this.determineView();
2214
+ try {
2215
+ await hicParseFile(this.hic, true, this.errList);
2216
+ this.getViewsConfig();
2217
+ this.store = await hicStoreInit({ app: this.api, state: this.hic.state });
2218
+ this.state = await this.store.copyState();
2219
+ this.components = {
2220
+ loadingOverlay: await loadingInit({
2221
+ app: this.api,
2222
+ loadingDiv: this.dom.loadingDiv
2223
+ }),
2224
+ view: await viewCompInit({
2225
+ app: this.api,
2226
+ state: this.state,
2227
+ dom: this.dom,
2228
+ hic: this.hic,
2229
+ errList: this.errList,
2230
+ error: this.error
2231
+ })
2232
+ };
2233
+ await this.api.dispatch();
2234
+ } catch (e) {
2235
+ console.error(e.stack || e);
2236
+ }
2237
+ }
2238
+ main() {
2239
+ if (this.errList.length) {
2240
+ this.error(this.errList);
2241
+ this.dom.loadingDiv.style("display", "none");
2242
+ return;
2243
+ }
2244
+ }
2245
+ };
2246
+ var hicInit = getAppInit(HicApp);
2247
+ export {
2248
+ hicInit
2249
+ };
2250
+ //# sourceMappingURL=HicApp-HPIHJDLQ.js.map