@sjcrh/proteinpaint-client 2.203.0 → 2.203.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (884) hide show
  1. package/dist/2dmaf-6CEBP4SA.js +1366 -0
  2. package/dist/AIProjectAdmin-2CKKFC3A.js +951 -0
  3. package/dist/AggregateMatrix-5TBUMFE5.js +665 -0
  4. package/dist/AppHeader-5YBPWF44.js +829 -0
  5. package/dist/BoxPlot-UOJS5SJV.js +1210 -0
  6. package/dist/CorrelationVolcano-KX6JPZMT.js +613 -0
  7. package/dist/Cuminc-TLOOLZWR.js +1208 -0
  8. package/dist/DE-HUQLQ2Z3.js +87 -0
  9. package/dist/DEinput-WWUISAF2.js +404 -0
  10. package/dist/DifferentialAnalysis-6DTAGCEY.js +237 -0
  11. package/dist/Disco-P6ZLPYLF.js +3388 -0
  12. package/dist/Disco.UI-WGTMAFK2.js +242 -0
  13. package/dist/DmrPlot-3FRU5KUK.js +636 -0
  14. package/dist/GB-NWOBARL3.js +1390 -0
  15. package/dist/GSEA-DEEUAAMI.js +850 -0
  16. package/dist/GeneExpInput-6QWGEAFV.js +361 -0
  17. package/dist/Geomap-6HT2B7RH.js +83 -0
  18. package/dist/HicApp-PCNOUULF.js +2244 -0
  19. package/dist/IDCViewer-H3QPXVM3.js +10811 -0
  20. package/dist/NumBinaryEditor-IU6OLMKN.js +278 -0
  21. package/dist/NumBinaryEditor.unit.spec-YUPUILIV.js +311 -0
  22. package/dist/NumContEditor-KFDA76QN.js +104 -0
  23. package/dist/NumContEditor.unit.spec-QBOT5QHU.js +163 -0
  24. package/dist/NumCustomBinEditor-EOSTEXLB.js +32 -0
  25. package/dist/NumCustomBinEditor.unit.spec-B46XWFYH.js +396 -0
  26. package/dist/NumDiscreteEditor-Y4EAADXC.js +169 -0
  27. package/dist/NumDiscreteEditor.unit.spec-SJGHLWSM.js +232 -0
  28. package/dist/NumRegularBinEditor-3BNG7DIN.js +32 -0
  29. package/dist/NumRegularBinEditor.unit.spec-KM45QXXG.js +277 -0
  30. package/dist/NumSplineEditor-K4KPDC4S.js +209 -0
  31. package/dist/NumSplineEditor.unit.spec-TKQP5XTS.js +223 -0
  32. package/dist/NumericDensity-Z6JFVN3D.js +32 -0
  33. package/dist/NumericDensity.unit.spec-YEYBVLEP.js +417 -0
  34. package/dist/NumericHandler-ITT6HMPN.js +33 -0
  35. package/dist/NumericHandler.unit.spec-QVONMXY4.js +213 -0
  36. package/dist/ProteomeInput-PRS3DEMZ.js +387 -0
  37. package/dist/Regression-LJJJBBT6.js +1413 -0
  38. package/dist/Regression-LJJJBBT6.js.map +7 -0
  39. package/dist/RunChart2-AMM2JFF5.js +749 -0
  40. package/dist/SC-F7IE66VZ.js +1106 -0
  41. package/dist/Violin-RJ6OJZ4F.js +1073 -0
  42. package/dist/Volcano-BJA5HN5Y.js +1414 -0
  43. package/dist/WSIViewer-RJZGRUIR.js +26194 -0
  44. package/dist/Wsi-DXP6KOQA.js +232 -0
  45. package/dist/WsiSamplesPlot-2IAWV2B6.js +159 -0
  46. package/dist/adSandbox-RGWOIV3W.js +32 -0
  47. package/dist/animatedBubbleChart-J4Q2NAEW.js +546 -0
  48. package/dist/app-3QXNR4VG.js +31 -0
  49. package/dist/app-B4B7YNP3.js +41 -0
  50. package/dist/app.js +12 -12
  51. package/dist/bam-LRUMN45P.js +875 -0
  52. package/dist/barchart-L2G6GEHK.js +41 -0
  53. package/dist/barchart2-DWNVAZAJ.js +308 -0
  54. package/dist/block-TVEVAXNP.js +6248 -0
  55. package/dist/block.init-YOHAKPRI.js +32 -0
  56. package/dist/block.mds.expressionrank-PU6JH4W5.js +353 -0
  57. package/dist/block.mds.geneboxplot-WYYFDNE3.js +822 -0
  58. package/dist/block.mds.junction-4WCTL7Y4.js +1538 -0
  59. package/dist/block.mds.svcnv-MR3VCYUW.js +6795 -0
  60. package/dist/block.svg-LR3Y4ZO7.js +158 -0
  61. package/dist/block.tk.aicheck-A5AWKJZI.js +277 -0
  62. package/dist/block.tk.ase-AQBBAQEH.js +359 -0
  63. package/dist/block.tk.bam-QBTA2O3V.js +1900 -0
  64. package/dist/block.tk.bedgraphdot-4ALZG2MY.js +378 -0
  65. package/dist/block.tk.bigwig.ui-32W6XW37.js +205 -0
  66. package/dist/block.tk.hicstraw-PKBHBAG2.js +817 -0
  67. package/dist/block.tk.junction-AO5CXUCU.js +2357 -0
  68. package/dist/block.tk.junction.textmatrixui-RORVUIPI.js +193 -0
  69. package/dist/block.tk.ld-TNBSR4FT.js +93 -0
  70. package/dist/block.tk.menu-QDJO54J5.js +1023 -0
  71. package/dist/block.tk.pgv-6222WWYR.js +937 -0
  72. package/dist/brainImaging-2TPE7MXB.js +426 -0
  73. package/dist/brainImaging-2TPE7MXB.js.map +7 -0
  74. package/dist/brainRegions-KTFH6DE2.js +215 -0
  75. package/dist/bubbleHeatmap-LNXZLFY6.js +377 -0
  76. package/dist/cellTypeBubbleHeatmap-SRHUNX3S.js +277 -0
  77. package/dist/chunk-3TXVDBGN.js +626 -0
  78. package/dist/chunk-4HLHKBHP.js +274 -0
  79. package/dist/chunk-5GG7Q2ZG.js +397 -0
  80. package/dist/chunk-5HVAVJKW.js +518 -0
  81. package/dist/chunk-5HVAVJKW.js.map +7 -0
  82. package/dist/chunk-5PMFCQKC.js +98 -0
  83. package/dist/chunk-67URJYN7.js +84 -0
  84. package/dist/chunk-67URJYN7.js.map +7 -0
  85. package/dist/chunk-6AKSOLBX.js +5071 -0
  86. package/dist/chunk-6AKSOLBX.js.map +7 -0
  87. package/dist/chunk-6X7PP7A4.js +2126 -0
  88. package/dist/chunk-A3EDLRUN.js +54 -0
  89. package/dist/chunk-ACXFPMJP.js +14 -0
  90. package/dist/chunk-ASRW3UJ5.js +102 -0
  91. package/dist/chunk-BBILSUDX.js +176 -0
  92. package/dist/chunk-BOWI37X2.js +100 -0
  93. package/dist/chunk-BVA26EFK.js +368 -0
  94. package/dist/chunk-D5J57ENI.js +797 -0
  95. package/dist/chunk-D5PX2UDG.js +23878 -0
  96. package/dist/chunk-D5PX2UDG.js.map +7 -0
  97. package/dist/chunk-DAGONMWK.js +261 -0
  98. package/dist/chunk-DAGONMWK.js.map +7 -0
  99. package/dist/chunk-DXLO4OAB.js +357 -0
  100. package/dist/chunk-DXLO4OAB.js.map +7 -0
  101. package/dist/chunk-E5BFGDLA.js +292 -0
  102. package/dist/chunk-ECISCOPF.js +134 -0
  103. package/dist/chunk-ECLUUJVE.js +158 -0
  104. package/dist/chunk-EGDQ5I54.js +272 -0
  105. package/dist/chunk-ELNVTA7O.js +56 -0
  106. package/dist/chunk-EO6M3LY3.js +339 -0
  107. package/dist/chunk-EO6M3LY3.js.map +7 -0
  108. package/dist/chunk-F4PMOAQK.js +494 -0
  109. package/dist/chunk-FISQTHD4.js +2327 -0
  110. package/dist/chunk-FXT2XM4E.js +1337 -0
  111. package/dist/chunk-FXT2XM4E.js.map +7 -0
  112. package/dist/chunk-HIWTGMTE.js +1721 -0
  113. package/dist/chunk-HIWTGMTE.js.map +7 -0
  114. package/dist/chunk-HL6GJIOH.js +1254 -0
  115. package/dist/chunk-IGZAOCTU.js +55 -0
  116. package/dist/chunk-JMDJI7KM.js +6360 -0
  117. package/dist/chunk-JQVA264Z.js +49 -0
  118. package/dist/chunk-JRF7SRLB.js +2784 -0
  119. package/dist/chunk-KLWSW6CC.js +203 -0
  120. package/dist/chunk-KNNSOOTG.js +194 -0
  121. package/dist/chunk-KTPXQH2N.js +170 -0
  122. package/dist/chunk-LGKXSWY4.js +276 -0
  123. package/dist/chunk-LP2GIXVK.js +4274 -0
  124. package/dist/chunk-M2ZZL5EV.js +2669 -0
  125. package/dist/chunk-M2ZZL5EV.js.map +7 -0
  126. package/dist/chunk-MBHERRJR.js +302 -0
  127. package/dist/chunk-MLYQDJUQ.js +480 -0
  128. package/dist/chunk-NBGDLLMX.js +446 -0
  129. package/dist/chunk-OPMMU6DQ.js +183 -0
  130. package/dist/chunk-OPMMU6DQ.js.map +7 -0
  131. package/dist/chunk-P3JEXVBT.js +50 -0
  132. package/dist/chunk-PZPPJY4K.js +34 -0
  133. package/dist/chunk-Q6JF4ZLT.js +141 -0
  134. package/dist/chunk-QF5IH7PC.js +263 -0
  135. package/dist/chunk-QJ6SO7CF.js +465 -0
  136. package/dist/chunk-QQUOVIOM.js +2899 -0
  137. package/dist/chunk-R3OBOAOF.js +240 -0
  138. package/dist/chunk-SNCZRDS5.js +557 -0
  139. package/dist/chunk-SNCZRDS5.js.map +7 -0
  140. package/dist/chunk-SPDNUC76.js +70 -0
  141. package/dist/chunk-T3663ZQL.js +37 -0
  142. package/dist/chunk-TSK4ZTFK.js +340 -0
  143. package/dist/chunk-USW6WRDZ.js +217 -0
  144. package/dist/chunk-WBMYHNKH.js +299 -0
  145. package/dist/chunk-X46LAU4Q.js +187 -0
  146. package/dist/chunk-XE6E526E.js +129 -0
  147. package/dist/chunk-XWCWBHLB.js +123 -0
  148. package/dist/chunk-YCECQV3T.js +160 -0
  149. package/dist/chunk-YROOKO3Q.js +1954 -0
  150. package/dist/chunk-YROOKO3Q.js.map +7 -0
  151. package/dist/chunk-Z4NADGZX.js +243 -0
  152. package/dist/chunk-Z53KOPRJ.js +102 -0
  153. package/dist/cohort-U7M6Q2UX.js +69 -0
  154. package/dist/condition-EGAV2PMJ.js +326 -0
  155. package/dist/controls-PTMYWUZV.js +33 -0
  156. package/dist/controls.config-DOA6PTP2.js +33 -0
  157. package/dist/correlation-Y3EL6GB7.js +94 -0
  158. package/dist/customdata.inputui-4NDDG6FL.js +283 -0
  159. package/dist/dataDownload-EQGUAOK2.js +328 -0
  160. package/dist/databrowser.ui-ABGOJUWQ.js +424 -0
  161. package/dist/dictionary-YOLLEDE5.js +112 -0
  162. package/dist/dnaMethylation-JZT63UHO.js +32 -0
  163. package/dist/dnaMethylation.integration.spec-EATCABJW.js +197 -0
  164. package/dist/dofetch-YNBIUFV5.js +48 -0
  165. package/dist/e2pca-RD6COCRL.js +343 -0
  166. package/dist/ep-BAI7WUET.js +1248 -0
  167. package/dist/expclust.gdc.spec-LKV2CQA5.js +301 -0
  168. package/dist/facet-X3SXQIAC.js +518 -0
  169. package/dist/gb-K324K7XB.js +80 -0
  170. package/dist/geneExpClustering-BJD5U3KG.js +243 -0
  171. package/dist/geneExpression-2TK3XLZ5.js +310 -0
  172. package/dist/geneExpression-F6NRTHZ4.js +32 -0
  173. package/dist/geneExpression.unit.spec-IFZN3J6A.js +96 -0
  174. package/dist/geneORA-DUEP735U.js +272 -0
  175. package/dist/geneRanking-LURDNT7L.js +547 -0
  176. package/dist/geneVariant-EAVCWQAZ.js +35 -0
  177. package/dist/geneVariant-IZTFYAG6.js +284 -0
  178. package/dist/geneVariant-IZTFYAG6.js.map +7 -0
  179. package/dist/geneVariant.integration.spec-LHL4ERFO.js +192 -0
  180. package/dist/genefusion.ui-4T5R7DT7.js +302 -0
  181. package/dist/geneset-3PWXPBG2.js +202 -0
  182. package/dist/genomeBrowser.spec-5SEN7R2P.js +275 -0
  183. package/dist/grin2-EXBG7TMS.js +1136 -0
  184. package/dist/grin2-XIXVFVWO.js +69 -0
  185. package/dist/hierCluster-5XQIWXAY.js +57 -0
  186. package/dist/hierCluster-I4TAQWPF.js +53 -0
  187. package/dist/hierCluster.config-T7HVAWES.js +34 -0
  188. package/dist/hierCluster.integration.spec-XWX43K4D.js +482 -0
  189. package/dist/hierCluster.interactivity-MYIDHFSL.js +48 -0
  190. package/dist/hierCluster.renderers-YRXA5ZUK.js +19 -0
  191. package/dist/imagePlot-4JQB6JUG.js +155 -0
  192. package/dist/importPlot-D3MXCCLN.js +8 -0
  193. package/dist/isoformExpression-WNGGUVIZ.js +34 -0
  194. package/dist/isoformExpression.unit.spec-NVJ5TIKM.js +236 -0
  195. package/dist/junction-O7N57JE3.js +35 -0
  196. package/dist/junction.unit.spec-Z63DRTRR.js +181 -0
  197. package/dist/launch.adhoc-MBDRXD3B.js +36 -0
  198. package/dist/leftlabel.sample-IG6FOQ26.js +257 -0
  199. package/dist/lollipop-ZUYBLPGN.js +165 -0
  200. package/dist/maf-QOS5LURG.js +454 -0
  201. package/dist/maftimeline-FEHP2J55.js +586 -0
  202. package/dist/matrix-BG4J4RXA.js +57 -0
  203. package/dist/matrix-PX4LWTGN.js +52 -0
  204. package/dist/matrix.cells-PTIDQVCI.js +26 -0
  205. package/dist/matrix.config-NHW7BLIE.js +35 -0
  206. package/dist/matrix.data-FMIQRXOA.js +23 -0
  207. package/dist/matrix.dom-4S2UYJOU.js +11 -0
  208. package/dist/matrix.groups-QMID5XAO.js +25 -0
  209. package/dist/matrix.integration.spec-H6T7KP5R.js +3066 -0
  210. package/dist/matrix.interactivity-WQUO25HB.js +36 -0
  211. package/dist/matrix.layout-CTPVZZ34.js +38 -0
  212. package/dist/matrix.legend-K6EYUN6L.js +20 -0
  213. package/dist/matrix.renderers-5DIAUY6R.js +32 -0
  214. package/dist/matrix.serieses-LRMN2J52.js +19 -0
  215. package/dist/matrix.sort-RGAGEA6Z.js +25 -0
  216. package/dist/matrix.sort.unit.spec-RGICZZJL.js +466 -0
  217. package/dist/matrix.sorterUi.unit.spec-45QPEGWE.js +336 -0
  218. package/dist/matrix.unit.spec-TMRZM5DU.js +148 -0
  219. package/dist/matrix.unit.spec-TMRZM5DU.js.map +7 -0
  220. package/dist/mavb-VEIVB62L.js +726 -0
  221. package/dist/mds.fimo-BG4LTWFB.js +512 -0
  222. package/dist/mds.samplescatterplot-PWADJZ2J.js +1544 -0
  223. package/dist/mds.survivalplot-BX4HZ23K.js +476 -0
  224. package/dist/multivalue-OZALSBFW.js +82 -0
  225. package/dist/numericDictTermCluster-7PGJ7KV4.js +63 -0
  226. package/dist/oncomatrix-Q2EQZPLS.js +289 -0
  227. package/dist/oncomatrix.spec-YEQOQRPW.js +442 -0
  228. package/dist/plot.2dvaf-NJSB3HNH.js +371 -0
  229. package/dist/plot.app-AEUR6XGI.js +35 -0
  230. package/dist/plot.barplot-OXN2P5KL.js +96 -0
  231. package/dist/plot.boxplot-2KHEVVFE.js +145 -0
  232. package/dist/plot.brainImaging-JWDX4BZG.js +51 -0
  233. package/dist/plot.disco-LUFC5GGC.js +99 -0
  234. package/dist/plot.ssgq-FMM3IRNA.js +133 -0
  235. package/dist/plot.vaf2cov-K5TAQUC5.js +252 -0
  236. package/dist/plot.wsi-CNQCNZ4Z.js +36 -0
  237. package/dist/polar2-AB6SVYRS.js +231 -0
  238. package/dist/profileForms-AIEHZ4GC.js +933 -0
  239. package/dist/profilePlot-PZDFGXKZ.js +48 -0
  240. package/dist/proteinView-7GWHQYXC.js +1561 -0
  241. package/dist/proteomeCohortCompare-BTN4HHFL.js +779 -0
  242. package/dist/proteomeCohortCompare-BTN4HHFL.js.map +7 -0
  243. package/dist/pseudbulk.unit.spec-NFT4VNTI.js +85 -0
  244. package/dist/pseudobulk-WDGWTXW4.js +34 -0
  245. package/dist/qualitative-PZYJENE7.js +37 -0
  246. package/dist/radar2-QHRGH3YS.js +326 -0
  247. package/dist/radarFacility2-2JD26FL6.js +334 -0
  248. package/dist/render-YA4Z56LT.js +32 -0
  249. package/dist/report-2NUKFJTF.js +216 -0
  250. package/dist/sampleView-2XVPJTVR.js +42 -0
  251. package/dist/samplelst-DMILFDT5.js +105 -0
  252. package/dist/samplematrix-LYA5XTUM.js +2192 -0
  253. package/dist/sc-CM2C34MN.js +80 -0
  254. package/dist/scatter-C3CH3HTF.js +879 -0
  255. package/dist/scatter-GO6LV6NY.js +87 -0
  256. package/dist/selectGenomeWithTklst-5C7UBTGZ.js +128 -0
  257. package/dist/singleCellCellType-EZYESBVZ.js +32 -0
  258. package/dist/singleCellCellType.unit.spec-DB6FM4XR.js +153 -0
  259. package/dist/singleCellGeneExpression-DZLEFPW4.js +32 -0
  260. package/dist/singleCellGeneExpression.unit.spec-ZTBK3V43.js +147 -0
  261. package/dist/singleCellPlot-VF4TZ4FT.js +48 -0
  262. package/dist/singlecell-2MHROPBN.js +1565 -0
  263. package/dist/singlecell-GPAFNOUZ.js +80 -0
  264. package/dist/snp-K4EAEVW4.js +32 -0
  265. package/dist/snp.unit.spec-BUVQLVOY.js +170 -0
  266. package/dist/snplocus-GEVISN6Z.js +202 -0
  267. package/dist/spliceevent.a53ss.diagram-5UPWNAZF.js +145 -0
  268. package/dist/spliceevent.exonskip.diagram-7TKAQURC.js +277 -0
  269. package/dist/spliceevent.noeventdiagram-CDXZLR3Z.js +454 -0
  270. package/dist/ssGSEA-NMCJUQXT.js +32 -0
  271. package/dist/ssGSEA.unit.spec-3FQALTPQ.js +82 -0
  272. package/dist/stattable-2RXQPWKK.js +116 -0
  273. package/dist/studyCatalog-WWFCTTX7.js +377 -0
  274. package/dist/studyCatalog-WWFCTTX7.js.map +7 -0
  275. package/dist/summarizeCnvGeneexp-4BQS5AFM.js +157 -0
  276. package/dist/summarizeGeneexpSurvival-HTBZQFB5.js +104 -0
  277. package/dist/summarizeMutationCnv-XUWZGPCM.js +158 -0
  278. package/dist/summarizeMutationDiagnosis-QUJX42TO.js +34 -0
  279. package/dist/summarizeMutationSurvival-3R47TTR6.js +93 -0
  280. package/dist/summary-6UUB63QR.js +41 -0
  281. package/dist/summary.integration.spec-JJDE6SRV.js +408 -0
  282. package/dist/summaryInput-JG4AW6FW.js +225 -0
  283. package/dist/sunburst-YKB42RZX.js +277 -0
  284. package/dist/survival-3IFFTDQA.js +52 -0
  285. package/dist/survival-HOFNJENX.js +1236 -0
  286. package/dist/survival.integration.spec-7YZYKEUW.js +612 -0
  287. package/dist/survival.integration.spec-7YZYKEUW.js.map +7 -0
  288. package/dist/svgraph-WFEY4ZIZ.js +1381 -0
  289. package/dist/svmr-44EIX7YD.js +3836 -0
  290. package/dist/table-6MKVJUNC.js +196 -0
  291. package/dist/termCollection-6JBVQL6Y.js +251 -0
  292. package/dist/termCollection-TTELZVC5.js +32 -0
  293. package/dist/termCollection.unit.spec-6Z7X646L.js +298 -0
  294. package/dist/termCollectionFractionSelection-5DVIJBM5.js +41 -0
  295. package/dist/termCollectionFractionSelection.unit.spec-3HIM5BIF.js +187 -0
  296. package/dist/tk-HSYWJCGQ.js +40 -0
  297. package/dist/tk-PNOVG2XS.js +1120 -0
  298. package/dist/tp.ui-COBBSUPB.js +1453 -0
  299. package/dist/tvs.dt-35AKURFI.js +33 -0
  300. package/dist/tvs.dtcnv.categorical-3EHXYROL.js +34 -0
  301. package/dist/tvs.dtcnv.continuous-AXQ2GU6S.js +66 -0
  302. package/dist/tvs.dtfusion-PLJIMPNX.js +34 -0
  303. package/dist/tvs.dtitd-JS6RFBV5.js +34 -0
  304. package/dist/tvs.dtsnvindel-MDEM5MPT.js +34 -0
  305. package/dist/tvs.dtsv-OU756YLO.js +34 -0
  306. package/dist/tvs.samplelst-5NDICES4.js +98 -0
  307. package/dist/tvs.termCollection-5URPDPH6.js +123 -0
  308. package/dist/vocabulary-CHCVMPK5.js +35 -0
  309. package/dist/wsi.direct-JSKV4H4X.js +75 -0
  310. package/package.json +4 -4
  311. package/dist/2dmaf-I4HBWRNQ.js +0 -1366
  312. package/dist/AIProjectAdmin-SZYSG7HR.js +0 -951
  313. package/dist/AggregateMatrix-U7HHALFR.js +0 -665
  314. package/dist/AppHeader-O4RBZQZF.js +0 -829
  315. package/dist/BoxPlot-NOXWAGX6.js +0 -1210
  316. package/dist/CorrelationVolcano-IJ5UT6N5.js +0 -613
  317. package/dist/Cuminc-NGUDAOAD.js +0 -1208
  318. package/dist/DE-MIAHOI5J.js +0 -87
  319. package/dist/DEinput-FYBSL2ER.js +0 -404
  320. package/dist/DifferentialAnalysis-I6S5YQXY.js +0 -237
  321. package/dist/Disco-VLUBOZDC.js +0 -3388
  322. package/dist/Disco.UI-QQYWQEW7.js +0 -242
  323. package/dist/DmrPlot-DFOBEN7A.js +0 -636
  324. package/dist/GB-5FSXJMEZ.js +0 -1390
  325. package/dist/GSEA-JISHQOVY.js +0 -850
  326. package/dist/GeneExpInput-5YEX22VD.js +0 -361
  327. package/dist/Geomap-YVF6YBK5.js +0 -83
  328. package/dist/HicApp-ZCMOOKTY.js +0 -2244
  329. package/dist/IDCViewer-5ZNTAEUG.js +0 -10811
  330. package/dist/NumBinaryEditor-BEF5YCKI.js +0 -278
  331. package/dist/NumBinaryEditor.unit.spec-GCYZGHB2.js +0 -311
  332. package/dist/NumContEditor-TUXPB6YJ.js +0 -104
  333. package/dist/NumContEditor.unit.spec-5CMHHWIP.js +0 -163
  334. package/dist/NumCustomBinEditor-HS7RSGFV.js +0 -32
  335. package/dist/NumCustomBinEditor.unit.spec-MM3JJXT4.js +0 -396
  336. package/dist/NumDiscreteEditor-ZL7PP6ZT.js +0 -169
  337. package/dist/NumDiscreteEditor.unit.spec-OEWX2KJC.js +0 -232
  338. package/dist/NumRegularBinEditor-YBXK7YV6.js +0 -32
  339. package/dist/NumRegularBinEditor.unit.spec-FVHN4J5L.js +0 -277
  340. package/dist/NumSplineEditor-VN4XBTTI.js +0 -209
  341. package/dist/NumSplineEditor.unit.spec-AI642DWP.js +0 -223
  342. package/dist/NumericDensity-2KTY7DGH.js +0 -32
  343. package/dist/NumericDensity.unit.spec-6EA72A24.js +0 -417
  344. package/dist/NumericHandler-62EN6AD3.js +0 -33
  345. package/dist/NumericHandler.unit.spec-FXOJ2L2L.js +0 -213
  346. package/dist/ProteomeInput-MBBDXO2Z.js +0 -387
  347. package/dist/Regression-OQETMZPL.js +0 -1408
  348. package/dist/Regression-OQETMZPL.js.map +0 -7
  349. package/dist/RunChart2-RHZFHH4M.js +0 -749
  350. package/dist/SC-FAQXOHO4.js +0 -1106
  351. package/dist/Violin-2A3ICNBP.js +0 -1073
  352. package/dist/Volcano-X5KGHLHZ.js +0 -1414
  353. package/dist/WSIViewer-F2SD6LLP.js +0 -26194
  354. package/dist/Wsi-KAFAC3Q5.js +0 -232
  355. package/dist/WsiSamplesPlot-VKPMLDZI.js +0 -159
  356. package/dist/adSandbox-QKG5EA23.js +0 -32
  357. package/dist/animatedBubbleChart-ES62XWMN.js +0 -546
  358. package/dist/app-2HLLOBTD.js +0 -41
  359. package/dist/app-GJL6K6V4.js +0 -31
  360. package/dist/bam-DCPAAVPX.js +0 -875
  361. package/dist/barchart-DCVGCEZO.js +0 -41
  362. package/dist/barchart2-5X57VSIN.js +0 -308
  363. package/dist/block-XYSUTBXJ.js +0 -6248
  364. package/dist/block.init-5B27QKPU.js +0 -32
  365. package/dist/block.mds.expressionrank-Z7BGGPZ7.js +0 -353
  366. package/dist/block.mds.geneboxplot-4U4UZH2J.js +0 -822
  367. package/dist/block.mds.junction-ZPCUEQZJ.js +0 -1538
  368. package/dist/block.mds.svcnv-OGGPBOL2.js +0 -6795
  369. package/dist/block.svg-BWGAMNDS.js +0 -158
  370. package/dist/block.tk.aicheck-XHHW7WST.js +0 -277
  371. package/dist/block.tk.ase-BZ2IL3CQ.js +0 -359
  372. package/dist/block.tk.bam-WRHOOWXN.js +0 -1900
  373. package/dist/block.tk.bedgraphdot-B536STRA.js +0 -378
  374. package/dist/block.tk.bigwig.ui-K5X3BSQC.js +0 -205
  375. package/dist/block.tk.hicstraw-OYOKZ45W.js +0 -817
  376. package/dist/block.tk.junction-S5JMMMR6.js +0 -2357
  377. package/dist/block.tk.junction.textmatrixui-OLZY5BYR.js +0 -193
  378. package/dist/block.tk.ld-KINDO5UU.js +0 -93
  379. package/dist/block.tk.menu-3FNBVZ7J.js +0 -1023
  380. package/dist/block.tk.pgv-UHDY3T4G.js +0 -937
  381. package/dist/brainImaging-KWFRX3XB.js +0 -422
  382. package/dist/brainImaging-KWFRX3XB.js.map +0 -7
  383. package/dist/brainRegions-YI7K4OVE.js +0 -215
  384. package/dist/bubbleHeatmap-EQ44CSG5.js +0 -377
  385. package/dist/cellTypeBubbleHeatmap-O3KL2YBF.js +0 -277
  386. package/dist/chunk-254KEDDH.js +0 -129
  387. package/dist/chunk-25RPYQRT.js +0 -203
  388. package/dist/chunk-2OEMKKLP.js +0 -272
  389. package/dist/chunk-34AV6DED.js +0 -299
  390. package/dist/chunk-3UOSDVFJ.js +0 -1710
  391. package/dist/chunk-3UOSDVFJ.js.map +0 -7
  392. package/dist/chunk-4GN3CSDT.js +0 -98
  393. package/dist/chunk-4KUGV44F.js +0 -397
  394. package/dist/chunk-4WF3XDQP.js +0 -220
  395. package/dist/chunk-4WF3XDQP.js.map +0 -7
  396. package/dist/chunk-55PGOBTR.js +0 -123
  397. package/dist/chunk-5RHE36DQ.js +0 -37
  398. package/dist/chunk-6456HESK.js +0 -160
  399. package/dist/chunk-6THPWBBU.js +0 -102
  400. package/dist/chunk-6ZLCBVJA.js +0 -54
  401. package/dist/chunk-7AYGTMED.js +0 -182
  402. package/dist/chunk-7AYGTMED.js.map +0 -7
  403. package/dist/chunk-7ROMS7YT.js +0 -626
  404. package/dist/chunk-7UFK4GVI.js +0 -263
  405. package/dist/chunk-7UFK4GVI.js.map +0 -7
  406. package/dist/chunk-ALXSSRGI.js +0 -263
  407. package/dist/chunk-AT7HWXMW.js +0 -302
  408. package/dist/chunk-AVR4LFOO.js +0 -194
  409. package/dist/chunk-BY5B5BM5.js +0 -170
  410. package/dist/chunk-BZ36NJHA.js +0 -797
  411. package/dist/chunk-BZKHE26Z.js +0 -340
  412. package/dist/chunk-CBRZIMNF.js +0 -217
  413. package/dist/chunk-CTO247UZ.js +0 -5069
  414. package/dist/chunk-CTO247UZ.js.map +0 -7
  415. package/dist/chunk-D27C6HZW.js +0 -50
  416. package/dist/chunk-D73PJ4WC.js +0 -512
  417. package/dist/chunk-D73PJ4WC.js.map +0 -7
  418. package/dist/chunk-DLXMO6EK.js +0 -494
  419. package/dist/chunk-EK7CQC3P.js +0 -100
  420. package/dist/chunk-FCMHDCMO.js +0 -56
  421. package/dist/chunk-GJFG2MML.js +0 -1254
  422. package/dist/chunk-GQQ4R6BI.js +0 -24060
  423. package/dist/chunk-GQQ4R6BI.js.map +0 -7
  424. package/dist/chunk-HENLCRVM.js +0 -2126
  425. package/dist/chunk-I56CSICA.js +0 -292
  426. package/dist/chunk-I5KBI5PC.js +0 -274
  427. package/dist/chunk-IHDVUZFC.js +0 -1947
  428. package/dist/chunk-IHDVUZFC.js.map +0 -7
  429. package/dist/chunk-IUA3PSTK.js +0 -6360
  430. package/dist/chunk-J3TIXBCS.js +0 -276
  431. package/dist/chunk-JJHMFHRC.js +0 -257
  432. package/dist/chunk-JJHMFHRC.js.map +0 -7
  433. package/dist/chunk-JPQSDB2H.js +0 -102
  434. package/dist/chunk-LIMDUEVX.js +0 -1336
  435. package/dist/chunk-LIMDUEVX.js.map +0 -7
  436. package/dist/chunk-MECQLU4J.js +0 -243
  437. package/dist/chunk-MEJMWIBD.js +0 -187
  438. package/dist/chunk-MT5MHYL3.js +0 -480
  439. package/dist/chunk-NVH5I6EP.js +0 -176
  440. package/dist/chunk-OGQMELRU.js +0 -14
  441. package/dist/chunk-PBRW6QLS.js +0 -4274
  442. package/dist/chunk-PPJMCBVT.js +0 -82
  443. package/dist/chunk-PPJMCBVT.js.map +0 -7
  444. package/dist/chunk-RRI3RX4A.js +0 -2669
  445. package/dist/chunk-RRI3RX4A.js.map +0 -7
  446. package/dist/chunk-S2D6GH6D.js +0 -465
  447. package/dist/chunk-SACNULB3.js +0 -368
  448. package/dist/chunk-SEJGXC2L.js +0 -141
  449. package/dist/chunk-TMZZ4Z7L.js +0 -34
  450. package/dist/chunk-TRWFL52W.js +0 -446
  451. package/dist/chunk-VP2FPPLA.js +0 -70
  452. package/dist/chunk-VTYMSJGY.js +0 -49
  453. package/dist/chunk-WEF6INPI.js +0 -2784
  454. package/dist/chunk-WO4CL5JL.js +0 -240
  455. package/dist/chunk-WVVH56ZU.js +0 -2327
  456. package/dist/chunk-WZTZJNSG.js +0 -2899
  457. package/dist/chunk-XPSUKXMF.js +0 -556
  458. package/dist/chunk-XPSUKXMF.js.map +0 -7
  459. package/dist/chunk-XXITHNR2.js +0 -134
  460. package/dist/chunk-YCLNEB4L.js +0 -158
  461. package/dist/chunk-ZPFN3CYR.js +0 -55
  462. package/dist/cohort-JCMVMOBQ.js +0 -69
  463. package/dist/condition-SHRWEMG7.js +0 -326
  464. package/dist/controls-EKIHLQS6.js +0 -33
  465. package/dist/controls.config-WSVX6UC6.js +0 -33
  466. package/dist/correlation-ALFFZLKD.js +0 -94
  467. package/dist/customdata.inputui-L2UAIU6I.js +0 -283
  468. package/dist/dataDownload-73N5364T.js +0 -328
  469. package/dist/databrowser.ui-NTOGXDYE.js +0 -424
  470. package/dist/dictionary-CUAU2X6Q.js +0 -112
  471. package/dist/dnaMethylation-AGWAGXVD.js +0 -32
  472. package/dist/dnaMethylation.integration.spec-K22XXOU4.js +0 -197
  473. package/dist/dofetch-BVJ77SP7.js +0 -48
  474. package/dist/e2pca-4HIJWLSC.js +0 -343
  475. package/dist/ep-U4RGH62P.js +0 -1248
  476. package/dist/expclust.gdc.spec-JJGGQDQK.js +0 -301
  477. package/dist/facet-NNUPVXCG.js +0 -518
  478. package/dist/gb-2MYXJEMY.js +0 -80
  479. package/dist/geneExpClustering-6ORRRH43.js +0 -243
  480. package/dist/geneExpression-4JVWKJWP.js +0 -310
  481. package/dist/geneExpression-MARWAIHW.js +0 -32
  482. package/dist/geneExpression.unit.spec-3CQTUSDK.js +0 -96
  483. package/dist/geneORA-M2L2YEX3.js +0 -272
  484. package/dist/geneRanking-S2B3LSTU.js +0 -547
  485. package/dist/geneVariant-D2ANGINP.js +0 -35
  486. package/dist/geneVariant-T4NG72OL.js +0 -33
  487. package/dist/geneVariant.integration.spec-62NJS7GD.js +0 -192
  488. package/dist/genefusion.ui-4ZZNKANU.js +0 -302
  489. package/dist/geneset-QCLFANPD.js +0 -202
  490. package/dist/genomeBrowser.spec-BV5M6JFN.js +0 -275
  491. package/dist/grin2-J4VDS2JT.js +0 -1136
  492. package/dist/grin2-K5G3N5XP.js +0 -69
  493. package/dist/hierCluster-FMK524WF.js +0 -57
  494. package/dist/hierCluster-XF7ZWVKD.js +0 -53
  495. package/dist/hierCluster.config-LYAQCO3L.js +0 -34
  496. package/dist/hierCluster.integration.spec-NSLTJBL4.js +0 -482
  497. package/dist/hierCluster.interactivity-VKAOR2DR.js +0 -48
  498. package/dist/hierCluster.renderers-6C5F7LRL.js +0 -19
  499. package/dist/imagePlot-IPTIFVLT.js +0 -155
  500. package/dist/importPlot-V3P6DCUR.js +0 -8
  501. package/dist/isoformExpression-6IIPJI4M.js +0 -34
  502. package/dist/isoformExpression.unit.spec-IYZWSLO5.js +0 -236
  503. package/dist/junction-E6FB2OP4.js +0 -35
  504. package/dist/junction.unit.spec-M4EN7KPG.js +0 -181
  505. package/dist/launch.adhoc-SU5L2YXN.js +0 -36
  506. package/dist/leftlabel.sample-5WTK5NBD.js +0 -257
  507. package/dist/lollipop-L64ZTEEX.js +0 -165
  508. package/dist/maf-QLNFANWO.js +0 -454
  509. package/dist/maftimeline-U7FMTMTV.js +0 -586
  510. package/dist/matrix-GFVK3PEB.js +0 -57
  511. package/dist/matrix-HFJQGPJJ.js +0 -52
  512. package/dist/matrix.cells-5JKTBI3X.js +0 -26
  513. package/dist/matrix.config-QPTQ22RR.js +0 -35
  514. package/dist/matrix.data-MXIUMSRR.js +0 -23
  515. package/dist/matrix.dom-ENBFB4CW.js +0 -11
  516. package/dist/matrix.groups-6DYTBVGR.js +0 -25
  517. package/dist/matrix.integration.spec-X4HM67TN.js +0 -3066
  518. package/dist/matrix.interactivity-QTB56LXE.js +0 -36
  519. package/dist/matrix.layout-VQAORIIH.js +0 -38
  520. package/dist/matrix.legend-SDJXYNHE.js +0 -20
  521. package/dist/matrix.renderers-6PMYIP2S.js +0 -32
  522. package/dist/matrix.serieses-WWY7474U.js +0 -19
  523. package/dist/matrix.sort-V46C2MAZ.js +0 -25
  524. package/dist/matrix.sort.unit.spec-3RM7V6CS.js +0 -466
  525. package/dist/matrix.sorterUi.unit.spec-YOV6FBRT.js +0 -336
  526. package/dist/mavb-PJA76T7F.js +0 -726
  527. package/dist/mds.fimo-GW7XPJGQ.js +0 -512
  528. package/dist/mds.samplescatterplot-ZAIEWPO4.js +0 -1544
  529. package/dist/mds.survivalplot-ETLLFDWR.js +0 -476
  530. package/dist/multivalue-AZPAQJQD.js +0 -82
  531. package/dist/numericDictTermCluster-KOJODGZT.js +0 -63
  532. package/dist/oncomatrix-2TRXETOJ.js +0 -289
  533. package/dist/oncomatrix.spec-DOVKLS24.js +0 -442
  534. package/dist/plot.2dvaf-RQN6QADW.js +0 -371
  535. package/dist/plot.app-MOIVGIS6.js +0 -35
  536. package/dist/plot.barplot-46QRWJOX.js +0 -96
  537. package/dist/plot.boxplot-54J4UWQX.js +0 -145
  538. package/dist/plot.brainImaging-Y32KQFLS.js +0 -51
  539. package/dist/plot.disco-4R5J7Z5S.js +0 -99
  540. package/dist/plot.ssgq-6LCKYRYD.js +0 -133
  541. package/dist/plot.vaf2cov-UCBH4NSC.js +0 -252
  542. package/dist/plot.wsi-DAC7NUQE.js +0 -36
  543. package/dist/polar2-JKV74QV5.js +0 -231
  544. package/dist/profileForms-VDYCFH4M.js +0 -933
  545. package/dist/profilePlot-PR3LVRYU.js +0 -48
  546. package/dist/proteinView-A3EM6OR5.js +0 -1561
  547. package/dist/proteomeCohortCompare-QGFEJTDQ.js +0 -793
  548. package/dist/proteomeCohortCompare-QGFEJTDQ.js.map +0 -7
  549. package/dist/pseudbulk.unit.spec-CUMTLAH7.js +0 -85
  550. package/dist/pseudobulk-5E5MSMU3.js +0 -34
  551. package/dist/qualitative-WPXUBISK.js +0 -37
  552. package/dist/radar2-A5OYMORS.js +0 -326
  553. package/dist/radarFacility2-4TPJB6M4.js +0 -334
  554. package/dist/render-XQBWWS33.js +0 -32
  555. package/dist/report-NCJOTYIC.js +0 -216
  556. package/dist/sampleView-2PUSMG4W.js +0 -42
  557. package/dist/samplelst-FV7BAUN5.js +0 -105
  558. package/dist/samplematrix-DFD3PNI4.js +0 -2192
  559. package/dist/sc-GIMTDVLG.js +0 -80
  560. package/dist/scatter-4GJ5HKUY.js +0 -879
  561. package/dist/scatter-P3ISZB3R.js +0 -87
  562. package/dist/selectGenomeWithTklst-ZZ4CEHDU.js +0 -128
  563. package/dist/singleCellCellType-CEERCVTR.js +0 -32
  564. package/dist/singleCellCellType.unit.spec-JNEIICK5.js +0 -153
  565. package/dist/singleCellGeneExpression-G5B7DDES.js +0 -32
  566. package/dist/singleCellGeneExpression.unit.spec-CGRZGY66.js +0 -147
  567. package/dist/singleCellPlot-US5KTHS4.js +0 -48
  568. package/dist/singlecell-IPTSIKNA.js +0 -1565
  569. package/dist/singlecell-VB4KLPJF.js +0 -80
  570. package/dist/snp-6V2SCCRN.js +0 -32
  571. package/dist/snp.unit.spec-Q537NGVG.js +0 -170
  572. package/dist/snplocus-BV6WJTVP.js +0 -202
  573. package/dist/spliceevent.a53ss.diagram-3BUQVK4Q.js +0 -145
  574. package/dist/spliceevent.exonskip.diagram-CQZ2DFQ5.js +0 -277
  575. package/dist/spliceevent.noeventdiagram-QAEPR6LD.js +0 -454
  576. package/dist/ssGSEA-XNI5S7AC.js +0 -32
  577. package/dist/ssGSEA.unit.spec-A337IMC7.js +0 -82
  578. package/dist/stattable-J4ZQKJFM.js +0 -116
  579. package/dist/studyCatalog-BJTJJGBC.js +0 -352
  580. package/dist/studyCatalog-BJTJJGBC.js.map +0 -7
  581. package/dist/summarizeCnvGeneexp-76UJXLA4.js +0 -157
  582. package/dist/summarizeGeneexpSurvival-ZUEHXA2R.js +0 -104
  583. package/dist/summarizeMutationCnv-EBCBVMG6.js +0 -158
  584. package/dist/summarizeMutationDiagnosis-VLFI2ZIZ.js +0 -34
  585. package/dist/summarizeMutationSurvival-QRFMJLLO.js +0 -93
  586. package/dist/summary-U3YKEMZC.js +0 -41
  587. package/dist/summary.integration.spec-52WP6SNY.js +0 -408
  588. package/dist/summaryInput-WUJNHCGH.js +0 -225
  589. package/dist/sunburst-IJ3ZG2BC.js +0 -277
  590. package/dist/survival-F2B5JKOO.js +0 -1236
  591. package/dist/survival-SQRYWGWZ.js +0 -52
  592. package/dist/survival.integration.spec-YGRZJ2OL.js +0 -967
  593. package/dist/survival.integration.spec-YGRZJ2OL.js.map +0 -7
  594. package/dist/svgraph-HVCMF6KI.js +0 -1381
  595. package/dist/svmr-PROHTMTP.js +0 -3836
  596. package/dist/table-3E64OJNV.js +0 -196
  597. package/dist/termCollection-MUH7P6B5.js +0 -32
  598. package/dist/termCollection-WKT6ESMI.js +0 -251
  599. package/dist/termCollection.unit.spec-XMOCMVER.js +0 -298
  600. package/dist/termCollectionFractionSelection-P5G6WIJJ.js +0 -41
  601. package/dist/termCollectionFractionSelection.unit.spec-MG7E3EIZ.js +0 -187
  602. package/dist/tk-HWUPUGOS.js +0 -1120
  603. package/dist/tk-SBM2GN3S.js +0 -40
  604. package/dist/tp.ui-RRB5MJRD.js +0 -1453
  605. package/dist/tvs.dt-I2ECKHQ2.js +0 -33
  606. package/dist/tvs.dtcnv.categorical-7RJPQKMX.js +0 -34
  607. package/dist/tvs.dtcnv.continuous-FW4ZXIYY.js +0 -66
  608. package/dist/tvs.dtfusion-3GDWW3ML.js +0 -34
  609. package/dist/tvs.dtitd-FER4H4UO.js +0 -34
  610. package/dist/tvs.dtsnvindel-ISEOJ5UA.js +0 -34
  611. package/dist/tvs.dtsv-JDML7EWE.js +0 -34
  612. package/dist/tvs.samplelst-MJTM6GSV.js +0 -98
  613. package/dist/tvs.termCollection-GMOXBJWF.js +0 -123
  614. package/dist/vocabulary-5EJMLXI2.js +0 -35
  615. package/dist/vocabulary-5EJMLXI2.js.map +0 -7
  616. package/dist/wsi.direct-IVPACPNT.js +0 -75
  617. /package/dist/{2dmaf-I4HBWRNQ.js.map → 2dmaf-6CEBP4SA.js.map} +0 -0
  618. /package/dist/{AIProjectAdmin-SZYSG7HR.js.map → AIProjectAdmin-2CKKFC3A.js.map} +0 -0
  619. /package/dist/{AggregateMatrix-U7HHALFR.js.map → AggregateMatrix-5TBUMFE5.js.map} +0 -0
  620. /package/dist/{AppHeader-O4RBZQZF.js.map → AppHeader-5YBPWF44.js.map} +0 -0
  621. /package/dist/{BoxPlot-NOXWAGX6.js.map → BoxPlot-UOJS5SJV.js.map} +0 -0
  622. /package/dist/{CorrelationVolcano-IJ5UT6N5.js.map → CorrelationVolcano-KX6JPZMT.js.map} +0 -0
  623. /package/dist/{Cuminc-NGUDAOAD.js.map → Cuminc-TLOOLZWR.js.map} +0 -0
  624. /package/dist/{DE-MIAHOI5J.js.map → DE-HUQLQ2Z3.js.map} +0 -0
  625. /package/dist/{DEinput-FYBSL2ER.js.map → DEinput-WWUISAF2.js.map} +0 -0
  626. /package/dist/{DifferentialAnalysis-I6S5YQXY.js.map → DifferentialAnalysis-6DTAGCEY.js.map} +0 -0
  627. /package/dist/{Disco-VLUBOZDC.js.map → Disco-P6ZLPYLF.js.map} +0 -0
  628. /package/dist/{Disco.UI-QQYWQEW7.js.map → Disco.UI-WGTMAFK2.js.map} +0 -0
  629. /package/dist/{DmrPlot-DFOBEN7A.js.map → DmrPlot-3FRU5KUK.js.map} +0 -0
  630. /package/dist/{GB-5FSXJMEZ.js.map → GB-NWOBARL3.js.map} +0 -0
  631. /package/dist/{GSEA-JISHQOVY.js.map → GSEA-DEEUAAMI.js.map} +0 -0
  632. /package/dist/{GeneExpInput-5YEX22VD.js.map → GeneExpInput-6QWGEAFV.js.map} +0 -0
  633. /package/dist/{Geomap-YVF6YBK5.js.map → Geomap-6HT2B7RH.js.map} +0 -0
  634. /package/dist/{HicApp-ZCMOOKTY.js.map → HicApp-PCNOUULF.js.map} +0 -0
  635. /package/dist/{IDCViewer-5ZNTAEUG.js.map → IDCViewer-H3QPXVM3.js.map} +0 -0
  636. /package/dist/{NumBinaryEditor-BEF5YCKI.js.map → NumBinaryEditor-IU6OLMKN.js.map} +0 -0
  637. /package/dist/{NumBinaryEditor.unit.spec-GCYZGHB2.js.map → NumBinaryEditor.unit.spec-YUPUILIV.js.map} +0 -0
  638. /package/dist/{NumContEditor-TUXPB6YJ.js.map → NumContEditor-KFDA76QN.js.map} +0 -0
  639. /package/dist/{NumContEditor.unit.spec-5CMHHWIP.js.map → NumContEditor.unit.spec-QBOT5QHU.js.map} +0 -0
  640. /package/dist/{NumCustomBinEditor-HS7RSGFV.js.map → NumCustomBinEditor-EOSTEXLB.js.map} +0 -0
  641. /package/dist/{NumCustomBinEditor.unit.spec-MM3JJXT4.js.map → NumCustomBinEditor.unit.spec-B46XWFYH.js.map} +0 -0
  642. /package/dist/{NumDiscreteEditor-ZL7PP6ZT.js.map → NumDiscreteEditor-Y4EAADXC.js.map} +0 -0
  643. /package/dist/{NumDiscreteEditor.unit.spec-OEWX2KJC.js.map → NumDiscreteEditor.unit.spec-SJGHLWSM.js.map} +0 -0
  644. /package/dist/{NumRegularBinEditor-YBXK7YV6.js.map → NumRegularBinEditor-3BNG7DIN.js.map} +0 -0
  645. /package/dist/{NumRegularBinEditor.unit.spec-FVHN4J5L.js.map → NumRegularBinEditor.unit.spec-KM45QXXG.js.map} +0 -0
  646. /package/dist/{NumSplineEditor-VN4XBTTI.js.map → NumSplineEditor-K4KPDC4S.js.map} +0 -0
  647. /package/dist/{NumSplineEditor.unit.spec-AI642DWP.js.map → NumSplineEditor.unit.spec-TKQP5XTS.js.map} +0 -0
  648. /package/dist/{NumericDensity-2KTY7DGH.js.map → NumericDensity-Z6JFVN3D.js.map} +0 -0
  649. /package/dist/{NumericDensity.unit.spec-6EA72A24.js.map → NumericDensity.unit.spec-YEYBVLEP.js.map} +0 -0
  650. /package/dist/{NumericHandler-62EN6AD3.js.map → NumericHandler-ITT6HMPN.js.map} +0 -0
  651. /package/dist/{NumericHandler.unit.spec-FXOJ2L2L.js.map → NumericHandler.unit.spec-QVONMXY4.js.map} +0 -0
  652. /package/dist/{ProteomeInput-MBBDXO2Z.js.map → ProteomeInput-PRS3DEMZ.js.map} +0 -0
  653. /package/dist/{RunChart2-RHZFHH4M.js.map → RunChart2-AMM2JFF5.js.map} +0 -0
  654. /package/dist/{SC-FAQXOHO4.js.map → SC-F7IE66VZ.js.map} +0 -0
  655. /package/dist/{Violin-2A3ICNBP.js.map → Violin-RJ6OJZ4F.js.map} +0 -0
  656. /package/dist/{Volcano-X5KGHLHZ.js.map → Volcano-BJA5HN5Y.js.map} +0 -0
  657. /package/dist/{WSIViewer-F2SD6LLP.js.map → WSIViewer-RJZGRUIR.js.map} +0 -0
  658. /package/dist/{Wsi-KAFAC3Q5.js.map → Wsi-DXP6KOQA.js.map} +0 -0
  659. /package/dist/{WsiSamplesPlot-VKPMLDZI.js.map → WsiSamplesPlot-2IAWV2B6.js.map} +0 -0
  660. /package/dist/{adSandbox-QKG5EA23.js.map → adSandbox-RGWOIV3W.js.map} +0 -0
  661. /package/dist/{animatedBubbleChart-ES62XWMN.js.map → animatedBubbleChart-J4Q2NAEW.js.map} +0 -0
  662. /package/dist/{app-2HLLOBTD.js.map → app-3QXNR4VG.js.map} +0 -0
  663. /package/dist/{app-GJL6K6V4.js.map → app-B4B7YNP3.js.map} +0 -0
  664. /package/dist/{bam-DCPAAVPX.js.map → bam-LRUMN45P.js.map} +0 -0
  665. /package/dist/{barchart-DCVGCEZO.js.map → barchart-L2G6GEHK.js.map} +0 -0
  666. /package/dist/{barchart2-5X57VSIN.js.map → barchart2-DWNVAZAJ.js.map} +0 -0
  667. /package/dist/{block-XYSUTBXJ.js.map → block-TVEVAXNP.js.map} +0 -0
  668. /package/dist/{block.init-5B27QKPU.js.map → block.init-YOHAKPRI.js.map} +0 -0
  669. /package/dist/{block.mds.expressionrank-Z7BGGPZ7.js.map → block.mds.expressionrank-PU6JH4W5.js.map} +0 -0
  670. /package/dist/{block.mds.geneboxplot-4U4UZH2J.js.map → block.mds.geneboxplot-WYYFDNE3.js.map} +0 -0
  671. /package/dist/{block.mds.junction-ZPCUEQZJ.js.map → block.mds.junction-4WCTL7Y4.js.map} +0 -0
  672. /package/dist/{block.mds.svcnv-OGGPBOL2.js.map → block.mds.svcnv-MR3VCYUW.js.map} +0 -0
  673. /package/dist/{block.svg-BWGAMNDS.js.map → block.svg-LR3Y4ZO7.js.map} +0 -0
  674. /package/dist/{block.tk.aicheck-XHHW7WST.js.map → block.tk.aicheck-A5AWKJZI.js.map} +0 -0
  675. /package/dist/{block.tk.ase-BZ2IL3CQ.js.map → block.tk.ase-AQBBAQEH.js.map} +0 -0
  676. /package/dist/{block.tk.bam-WRHOOWXN.js.map → block.tk.bam-QBTA2O3V.js.map} +0 -0
  677. /package/dist/{block.tk.bedgraphdot-B536STRA.js.map → block.tk.bedgraphdot-4ALZG2MY.js.map} +0 -0
  678. /package/dist/{block.tk.bigwig.ui-K5X3BSQC.js.map → block.tk.bigwig.ui-32W6XW37.js.map} +0 -0
  679. /package/dist/{block.tk.hicstraw-OYOKZ45W.js.map → block.tk.hicstraw-PKBHBAG2.js.map} +0 -0
  680. /package/dist/{block.tk.junction-S5JMMMR6.js.map → block.tk.junction-AO5CXUCU.js.map} +0 -0
  681. /package/dist/{block.tk.junction.textmatrixui-OLZY5BYR.js.map → block.tk.junction.textmatrixui-RORVUIPI.js.map} +0 -0
  682. /package/dist/{block.tk.ld-KINDO5UU.js.map → block.tk.ld-TNBSR4FT.js.map} +0 -0
  683. /package/dist/{block.tk.menu-3FNBVZ7J.js.map → block.tk.menu-QDJO54J5.js.map} +0 -0
  684. /package/dist/{block.tk.pgv-UHDY3T4G.js.map → block.tk.pgv-6222WWYR.js.map} +0 -0
  685. /package/dist/{brainRegions-YI7K4OVE.js.map → brainRegions-KTFH6DE2.js.map} +0 -0
  686. /package/dist/{bubbleHeatmap-EQ44CSG5.js.map → bubbleHeatmap-LNXZLFY6.js.map} +0 -0
  687. /package/dist/{cellTypeBubbleHeatmap-O3KL2YBF.js.map → cellTypeBubbleHeatmap-SRHUNX3S.js.map} +0 -0
  688. /package/dist/{chunk-7ROMS7YT.js.map → chunk-3TXVDBGN.js.map} +0 -0
  689. /package/dist/{chunk-I5KBI5PC.js.map → chunk-4HLHKBHP.js.map} +0 -0
  690. /package/dist/{chunk-4KUGV44F.js.map → chunk-5GG7Q2ZG.js.map} +0 -0
  691. /package/dist/{chunk-4GN3CSDT.js.map → chunk-5PMFCQKC.js.map} +0 -0
  692. /package/dist/{chunk-HENLCRVM.js.map → chunk-6X7PP7A4.js.map} +0 -0
  693. /package/dist/{chunk-6ZLCBVJA.js.map → chunk-A3EDLRUN.js.map} +0 -0
  694. /package/dist/{chunk-OGQMELRU.js.map → chunk-ACXFPMJP.js.map} +0 -0
  695. /package/dist/{chunk-JPQSDB2H.js.map → chunk-ASRW3UJ5.js.map} +0 -0
  696. /package/dist/{chunk-NVH5I6EP.js.map → chunk-BBILSUDX.js.map} +0 -0
  697. /package/dist/{chunk-EK7CQC3P.js.map → chunk-BOWI37X2.js.map} +0 -0
  698. /package/dist/{chunk-SACNULB3.js.map → chunk-BVA26EFK.js.map} +0 -0
  699. /package/dist/{chunk-BZ36NJHA.js.map → chunk-D5J57ENI.js.map} +0 -0
  700. /package/dist/{chunk-I56CSICA.js.map → chunk-E5BFGDLA.js.map} +0 -0
  701. /package/dist/{chunk-XXITHNR2.js.map → chunk-ECISCOPF.js.map} +0 -0
  702. /package/dist/{chunk-YCLNEB4L.js.map → chunk-ECLUUJVE.js.map} +0 -0
  703. /package/dist/{chunk-2OEMKKLP.js.map → chunk-EGDQ5I54.js.map} +0 -0
  704. /package/dist/{chunk-FCMHDCMO.js.map → chunk-ELNVTA7O.js.map} +0 -0
  705. /package/dist/{chunk-DLXMO6EK.js.map → chunk-F4PMOAQK.js.map} +0 -0
  706. /package/dist/{chunk-WVVH56ZU.js.map → chunk-FISQTHD4.js.map} +0 -0
  707. /package/dist/{chunk-GJFG2MML.js.map → chunk-HL6GJIOH.js.map} +0 -0
  708. /package/dist/{chunk-ZPFN3CYR.js.map → chunk-IGZAOCTU.js.map} +0 -0
  709. /package/dist/{chunk-IUA3PSTK.js.map → chunk-JMDJI7KM.js.map} +0 -0
  710. /package/dist/{chunk-VTYMSJGY.js.map → chunk-JQVA264Z.js.map} +0 -0
  711. /package/dist/{chunk-WEF6INPI.js.map → chunk-JRF7SRLB.js.map} +0 -0
  712. /package/dist/{chunk-25RPYQRT.js.map → chunk-KLWSW6CC.js.map} +0 -0
  713. /package/dist/{chunk-AVR4LFOO.js.map → chunk-KNNSOOTG.js.map} +0 -0
  714. /package/dist/{chunk-BY5B5BM5.js.map → chunk-KTPXQH2N.js.map} +0 -0
  715. /package/dist/{chunk-J3TIXBCS.js.map → chunk-LGKXSWY4.js.map} +0 -0
  716. /package/dist/{chunk-PBRW6QLS.js.map → chunk-LP2GIXVK.js.map} +0 -0
  717. /package/dist/{chunk-AT7HWXMW.js.map → chunk-MBHERRJR.js.map} +0 -0
  718. /package/dist/{chunk-MT5MHYL3.js.map → chunk-MLYQDJUQ.js.map} +0 -0
  719. /package/dist/{chunk-TRWFL52W.js.map → chunk-NBGDLLMX.js.map} +0 -0
  720. /package/dist/{chunk-D27C6HZW.js.map → chunk-P3JEXVBT.js.map} +0 -0
  721. /package/dist/{chunk-TMZZ4Z7L.js.map → chunk-PZPPJY4K.js.map} +0 -0
  722. /package/dist/{chunk-SEJGXC2L.js.map → chunk-Q6JF4ZLT.js.map} +0 -0
  723. /package/dist/{chunk-ALXSSRGI.js.map → chunk-QF5IH7PC.js.map} +0 -0
  724. /package/dist/{chunk-S2D6GH6D.js.map → chunk-QJ6SO7CF.js.map} +0 -0
  725. /package/dist/{chunk-WZTZJNSG.js.map → chunk-QQUOVIOM.js.map} +0 -0
  726. /package/dist/{chunk-WO4CL5JL.js.map → chunk-R3OBOAOF.js.map} +0 -0
  727. /package/dist/{chunk-VP2FPPLA.js.map → chunk-SPDNUC76.js.map} +0 -0
  728. /package/dist/{chunk-5RHE36DQ.js.map → chunk-T3663ZQL.js.map} +0 -0
  729. /package/dist/{chunk-BZKHE26Z.js.map → chunk-TSK4ZTFK.js.map} +0 -0
  730. /package/dist/{chunk-CBRZIMNF.js.map → chunk-USW6WRDZ.js.map} +0 -0
  731. /package/dist/{chunk-34AV6DED.js.map → chunk-WBMYHNKH.js.map} +0 -0
  732. /package/dist/{chunk-MEJMWIBD.js.map → chunk-X46LAU4Q.js.map} +0 -0
  733. /package/dist/{chunk-254KEDDH.js.map → chunk-XE6E526E.js.map} +0 -0
  734. /package/dist/{chunk-55PGOBTR.js.map → chunk-XWCWBHLB.js.map} +0 -0
  735. /package/dist/{chunk-6456HESK.js.map → chunk-YCECQV3T.js.map} +0 -0
  736. /package/dist/{chunk-MECQLU4J.js.map → chunk-Z4NADGZX.js.map} +0 -0
  737. /package/dist/{chunk-6THPWBBU.js.map → chunk-Z53KOPRJ.js.map} +0 -0
  738. /package/dist/{cohort-JCMVMOBQ.js.map → cohort-U7M6Q2UX.js.map} +0 -0
  739. /package/dist/{condition-SHRWEMG7.js.map → condition-EGAV2PMJ.js.map} +0 -0
  740. /package/dist/{controls-EKIHLQS6.js.map → controls-PTMYWUZV.js.map} +0 -0
  741. /package/dist/{controls.config-WSVX6UC6.js.map → controls.config-DOA6PTP2.js.map} +0 -0
  742. /package/dist/{correlation-ALFFZLKD.js.map → correlation-Y3EL6GB7.js.map} +0 -0
  743. /package/dist/{customdata.inputui-L2UAIU6I.js.map → customdata.inputui-4NDDG6FL.js.map} +0 -0
  744. /package/dist/{dataDownload-73N5364T.js.map → dataDownload-EQGUAOK2.js.map} +0 -0
  745. /package/dist/{databrowser.ui-NTOGXDYE.js.map → databrowser.ui-ABGOJUWQ.js.map} +0 -0
  746. /package/dist/{dictionary-CUAU2X6Q.js.map → dictionary-YOLLEDE5.js.map} +0 -0
  747. /package/dist/{dnaMethylation-AGWAGXVD.js.map → dnaMethylation-JZT63UHO.js.map} +0 -0
  748. /package/dist/{dnaMethylation.integration.spec-K22XXOU4.js.map → dnaMethylation.integration.spec-EATCABJW.js.map} +0 -0
  749. /package/dist/{dofetch-BVJ77SP7.js.map → dofetch-YNBIUFV5.js.map} +0 -0
  750. /package/dist/{e2pca-4HIJWLSC.js.map → e2pca-RD6COCRL.js.map} +0 -0
  751. /package/dist/{ep-U4RGH62P.js.map → ep-BAI7WUET.js.map} +0 -0
  752. /package/dist/{expclust.gdc.spec-JJGGQDQK.js.map → expclust.gdc.spec-LKV2CQA5.js.map} +0 -0
  753. /package/dist/{facet-NNUPVXCG.js.map → facet-X3SXQIAC.js.map} +0 -0
  754. /package/dist/{gb-2MYXJEMY.js.map → gb-K324K7XB.js.map} +0 -0
  755. /package/dist/{geneExpClustering-6ORRRH43.js.map → geneExpClustering-BJD5U3KG.js.map} +0 -0
  756. /package/dist/{geneExpression-4JVWKJWP.js.map → geneExpression-2TK3XLZ5.js.map} +0 -0
  757. /package/dist/{geneExpression-MARWAIHW.js.map → geneExpression-F6NRTHZ4.js.map} +0 -0
  758. /package/dist/{geneExpression.unit.spec-3CQTUSDK.js.map → geneExpression.unit.spec-IFZN3J6A.js.map} +0 -0
  759. /package/dist/{geneORA-M2L2YEX3.js.map → geneORA-DUEP735U.js.map} +0 -0
  760. /package/dist/{geneRanking-S2B3LSTU.js.map → geneRanking-LURDNT7L.js.map} +0 -0
  761. /package/dist/{geneVariant-D2ANGINP.js.map → geneVariant-EAVCWQAZ.js.map} +0 -0
  762. /package/dist/{geneVariant.integration.spec-62NJS7GD.js.map → geneVariant.integration.spec-LHL4ERFO.js.map} +0 -0
  763. /package/dist/{genefusion.ui-4ZZNKANU.js.map → genefusion.ui-4T5R7DT7.js.map} +0 -0
  764. /package/dist/{geneset-QCLFANPD.js.map → geneset-3PWXPBG2.js.map} +0 -0
  765. /package/dist/{genomeBrowser.spec-BV5M6JFN.js.map → genomeBrowser.spec-5SEN7R2P.js.map} +0 -0
  766. /package/dist/{grin2-J4VDS2JT.js.map → grin2-EXBG7TMS.js.map} +0 -0
  767. /package/dist/{grin2-K5G3N5XP.js.map → grin2-XIXVFVWO.js.map} +0 -0
  768. /package/dist/{geneVariant-T4NG72OL.js.map → hierCluster-5XQIWXAY.js.map} +0 -0
  769. /package/dist/{hierCluster-FMK524WF.js.map → hierCluster-I4TAQWPF.js.map} +0 -0
  770. /package/dist/{hierCluster-XF7ZWVKD.js.map → hierCluster.config-T7HVAWES.js.map} +0 -0
  771. /package/dist/{hierCluster.integration.spec-NSLTJBL4.js.map → hierCluster.integration.spec-XWX43K4D.js.map} +0 -0
  772. /package/dist/{hierCluster.config-LYAQCO3L.js.map → hierCluster.interactivity-MYIDHFSL.js.map} +0 -0
  773. /package/dist/{hierCluster.interactivity-VKAOR2DR.js.map → hierCluster.renderers-YRXA5ZUK.js.map} +0 -0
  774. /package/dist/{imagePlot-IPTIFVLT.js.map → imagePlot-4JQB6JUG.js.map} +0 -0
  775. /package/dist/{hierCluster.renderers-6C5F7LRL.js.map → importPlot-D3MXCCLN.js.map} +0 -0
  776. /package/dist/{importPlot-V3P6DCUR.js.map → isoformExpression-WNGGUVIZ.js.map} +0 -0
  777. /package/dist/{isoformExpression.unit.spec-IYZWSLO5.js.map → isoformExpression.unit.spec-NVJ5TIKM.js.map} +0 -0
  778. /package/dist/{isoformExpression-6IIPJI4M.js.map → junction-O7N57JE3.js.map} +0 -0
  779. /package/dist/{junction.unit.spec-M4EN7KPG.js.map → junction.unit.spec-Z63DRTRR.js.map} +0 -0
  780. /package/dist/{junction-E6FB2OP4.js.map → launch.adhoc-MBDRXD3B.js.map} +0 -0
  781. /package/dist/{leftlabel.sample-5WTK5NBD.js.map → leftlabel.sample-IG6FOQ26.js.map} +0 -0
  782. /package/dist/{lollipop-L64ZTEEX.js.map → lollipop-ZUYBLPGN.js.map} +0 -0
  783. /package/dist/{maf-QLNFANWO.js.map → maf-QOS5LURG.js.map} +0 -0
  784. /package/dist/{maftimeline-U7FMTMTV.js.map → maftimeline-FEHP2J55.js.map} +0 -0
  785. /package/dist/{launch.adhoc-SU5L2YXN.js.map → matrix-BG4J4RXA.js.map} +0 -0
  786. /package/dist/{matrix-GFVK3PEB.js.map → matrix-PX4LWTGN.js.map} +0 -0
  787. /package/dist/{matrix-HFJQGPJJ.js.map → matrix.cells-PTIDQVCI.js.map} +0 -0
  788. /package/dist/{matrix.cells-5JKTBI3X.js.map → matrix.config-NHW7BLIE.js.map} +0 -0
  789. /package/dist/{matrix.config-QPTQ22RR.js.map → matrix.data-FMIQRXOA.js.map} +0 -0
  790. /package/dist/{matrix.data-MXIUMSRR.js.map → matrix.dom-4S2UYJOU.js.map} +0 -0
  791. /package/dist/{matrix.dom-ENBFB4CW.js.map → matrix.groups-QMID5XAO.js.map} +0 -0
  792. /package/dist/{matrix.integration.spec-X4HM67TN.js.map → matrix.integration.spec-H6T7KP5R.js.map} +0 -0
  793. /package/dist/{matrix.groups-6DYTBVGR.js.map → matrix.interactivity-WQUO25HB.js.map} +0 -0
  794. /package/dist/{matrix.interactivity-QTB56LXE.js.map → matrix.layout-CTPVZZ34.js.map} +0 -0
  795. /package/dist/{matrix.layout-VQAORIIH.js.map → matrix.legend-K6EYUN6L.js.map} +0 -0
  796. /package/dist/{matrix.legend-SDJXYNHE.js.map → matrix.renderers-5DIAUY6R.js.map} +0 -0
  797. /package/dist/{matrix.renderers-6PMYIP2S.js.map → matrix.serieses-LRMN2J52.js.map} +0 -0
  798. /package/dist/{matrix.serieses-WWY7474U.js.map → matrix.sort-RGAGEA6Z.js.map} +0 -0
  799. /package/dist/{matrix.sort.unit.spec-3RM7V6CS.js.map → matrix.sort.unit.spec-RGICZZJL.js.map} +0 -0
  800. /package/dist/{matrix.sorterUi.unit.spec-YOV6FBRT.js.map → matrix.sorterUi.unit.spec-45QPEGWE.js.map} +0 -0
  801. /package/dist/{mavb-PJA76T7F.js.map → mavb-VEIVB62L.js.map} +0 -0
  802. /package/dist/{mds.fimo-GW7XPJGQ.js.map → mds.fimo-BG4LTWFB.js.map} +0 -0
  803. /package/dist/{mds.samplescatterplot-ZAIEWPO4.js.map → mds.samplescatterplot-PWADJZ2J.js.map} +0 -0
  804. /package/dist/{mds.survivalplot-ETLLFDWR.js.map → mds.survivalplot-BX4HZ23K.js.map} +0 -0
  805. /package/dist/{multivalue-AZPAQJQD.js.map → multivalue-OZALSBFW.js.map} +0 -0
  806. /package/dist/{numericDictTermCluster-KOJODGZT.js.map → numericDictTermCluster-7PGJ7KV4.js.map} +0 -0
  807. /package/dist/{oncomatrix-2TRXETOJ.js.map → oncomatrix-Q2EQZPLS.js.map} +0 -0
  808. /package/dist/{oncomatrix.spec-DOVKLS24.js.map → oncomatrix.spec-YEQOQRPW.js.map} +0 -0
  809. /package/dist/{plot.2dvaf-RQN6QADW.js.map → plot.2dvaf-NJSB3HNH.js.map} +0 -0
  810. /package/dist/{matrix.sort-V46C2MAZ.js.map → plot.app-AEUR6XGI.js.map} +0 -0
  811. /package/dist/{plot.barplot-46QRWJOX.js.map → plot.barplot-OXN2P5KL.js.map} +0 -0
  812. /package/dist/{plot.boxplot-54J4UWQX.js.map → plot.boxplot-2KHEVVFE.js.map} +0 -0
  813. /package/dist/{plot.brainImaging-Y32KQFLS.js.map → plot.brainImaging-JWDX4BZG.js.map} +0 -0
  814. /package/dist/{plot.disco-4R5J7Z5S.js.map → plot.disco-LUFC5GGC.js.map} +0 -0
  815. /package/dist/{plot.ssgq-6LCKYRYD.js.map → plot.ssgq-FMM3IRNA.js.map} +0 -0
  816. /package/dist/{plot.vaf2cov-UCBH4NSC.js.map → plot.vaf2cov-K5TAQUC5.js.map} +0 -0
  817. /package/dist/{plot.wsi-DAC7NUQE.js.map → plot.wsi-CNQCNZ4Z.js.map} +0 -0
  818. /package/dist/{polar2-JKV74QV5.js.map → polar2-AB6SVYRS.js.map} +0 -0
  819. /package/dist/{profileForms-VDYCFH4M.js.map → profileForms-AIEHZ4GC.js.map} +0 -0
  820. /package/dist/{plot.app-MOIVGIS6.js.map → profilePlot-PZDFGXKZ.js.map} +0 -0
  821. /package/dist/{proteinView-A3EM6OR5.js.map → proteinView-7GWHQYXC.js.map} +0 -0
  822. /package/dist/{pseudbulk.unit.spec-CUMTLAH7.js.map → pseudbulk.unit.spec-NFT4VNTI.js.map} +0 -0
  823. /package/dist/{profilePlot-PR3LVRYU.js.map → pseudobulk-WDGWTXW4.js.map} +0 -0
  824. /package/dist/{pseudobulk-5E5MSMU3.js.map → qualitative-PZYJENE7.js.map} +0 -0
  825. /package/dist/{radar2-A5OYMORS.js.map → radar2-QHRGH3YS.js.map} +0 -0
  826. /package/dist/{radarFacility2-4TPJB6M4.js.map → radarFacility2-2JD26FL6.js.map} +0 -0
  827. /package/dist/{qualitative-WPXUBISK.js.map → render-YA4Z56LT.js.map} +0 -0
  828. /package/dist/{report-NCJOTYIC.js.map → report-2NUKFJTF.js.map} +0 -0
  829. /package/dist/{render-XQBWWS33.js.map → sampleView-2XVPJTVR.js.map} +0 -0
  830. /package/dist/{samplelst-FV7BAUN5.js.map → samplelst-DMILFDT5.js.map} +0 -0
  831. /package/dist/{samplematrix-DFD3PNI4.js.map → samplematrix-LYA5XTUM.js.map} +0 -0
  832. /package/dist/{sc-GIMTDVLG.js.map → sc-CM2C34MN.js.map} +0 -0
  833. /package/dist/{scatter-4GJ5HKUY.js.map → scatter-C3CH3HTF.js.map} +0 -0
  834. /package/dist/{scatter-P3ISZB3R.js.map → scatter-GO6LV6NY.js.map} +0 -0
  835. /package/dist/{selectGenomeWithTklst-ZZ4CEHDU.js.map → selectGenomeWithTklst-5C7UBTGZ.js.map} +0 -0
  836. /package/dist/{sampleView-2PUSMG4W.js.map → singleCellCellType-EZYESBVZ.js.map} +0 -0
  837. /package/dist/{singleCellCellType.unit.spec-JNEIICK5.js.map → singleCellCellType.unit.spec-DB6FM4XR.js.map} +0 -0
  838. /package/dist/{singleCellCellType-CEERCVTR.js.map → singleCellGeneExpression-DZLEFPW4.js.map} +0 -0
  839. /package/dist/{singleCellGeneExpression.unit.spec-CGRZGY66.js.map → singleCellGeneExpression.unit.spec-ZTBK3V43.js.map} +0 -0
  840. /package/dist/{singleCellGeneExpression-G5B7DDES.js.map → singleCellPlot-VF4TZ4FT.js.map} +0 -0
  841. /package/dist/{singlecell-IPTSIKNA.js.map → singlecell-2MHROPBN.js.map} +0 -0
  842. /package/dist/{singlecell-VB4KLPJF.js.map → singlecell-GPAFNOUZ.js.map} +0 -0
  843. /package/dist/{singleCellPlot-US5KTHS4.js.map → snp-K4EAEVW4.js.map} +0 -0
  844. /package/dist/{snp.unit.spec-Q537NGVG.js.map → snp.unit.spec-BUVQLVOY.js.map} +0 -0
  845. /package/dist/{snplocus-BV6WJTVP.js.map → snplocus-GEVISN6Z.js.map} +0 -0
  846. /package/dist/{spliceevent.a53ss.diagram-3BUQVK4Q.js.map → spliceevent.a53ss.diagram-5UPWNAZF.js.map} +0 -0
  847. /package/dist/{spliceevent.exonskip.diagram-CQZ2DFQ5.js.map → spliceevent.exonskip.diagram-7TKAQURC.js.map} +0 -0
  848. /package/dist/{spliceevent.noeventdiagram-QAEPR6LD.js.map → spliceevent.noeventdiagram-CDXZLR3Z.js.map} +0 -0
  849. /package/dist/{snp-6V2SCCRN.js.map → ssGSEA-NMCJUQXT.js.map} +0 -0
  850. /package/dist/{ssGSEA.unit.spec-A337IMC7.js.map → ssGSEA.unit.spec-3FQALTPQ.js.map} +0 -0
  851. /package/dist/{stattable-J4ZQKJFM.js.map → stattable-2RXQPWKK.js.map} +0 -0
  852. /package/dist/{summarizeCnvGeneexp-76UJXLA4.js.map → summarizeCnvGeneexp-4BQS5AFM.js.map} +0 -0
  853. /package/dist/{summarizeGeneexpSurvival-ZUEHXA2R.js.map → summarizeGeneexpSurvival-HTBZQFB5.js.map} +0 -0
  854. /package/dist/{summarizeMutationCnv-EBCBVMG6.js.map → summarizeMutationCnv-XUWZGPCM.js.map} +0 -0
  855. /package/dist/{ssGSEA-XNI5S7AC.js.map → summarizeMutationDiagnosis-QUJX42TO.js.map} +0 -0
  856. /package/dist/{summarizeMutationSurvival-QRFMJLLO.js.map → summarizeMutationSurvival-3R47TTR6.js.map} +0 -0
  857. /package/dist/{summarizeMutationDiagnosis-VLFI2ZIZ.js.map → summary-6UUB63QR.js.map} +0 -0
  858. /package/dist/{summary.integration.spec-52WP6SNY.js.map → summary.integration.spec-JJDE6SRV.js.map} +0 -0
  859. /package/dist/{summaryInput-WUJNHCGH.js.map → summaryInput-JG4AW6FW.js.map} +0 -0
  860. /package/dist/{sunburst-IJ3ZG2BC.js.map → sunburst-YKB42RZX.js.map} +0 -0
  861. /package/dist/{survival-SQRYWGWZ.js.map → survival-3IFFTDQA.js.map} +0 -0
  862. /package/dist/{survival-F2B5JKOO.js.map → survival-HOFNJENX.js.map} +0 -0
  863. /package/dist/{svgraph-HVCMF6KI.js.map → svgraph-WFEY4ZIZ.js.map} +0 -0
  864. /package/dist/{svmr-PROHTMTP.js.map → svmr-44EIX7YD.js.map} +0 -0
  865. /package/dist/{table-3E64OJNV.js.map → table-6MKVJUNC.js.map} +0 -0
  866. /package/dist/{termCollection-WKT6ESMI.js.map → termCollection-6JBVQL6Y.js.map} +0 -0
  867. /package/dist/{summary-U3YKEMZC.js.map → termCollection-TTELZVC5.js.map} +0 -0
  868. /package/dist/{termCollection.unit.spec-XMOCMVER.js.map → termCollection.unit.spec-6Z7X646L.js.map} +0 -0
  869. /package/dist/{termCollection-MUH7P6B5.js.map → termCollectionFractionSelection-5DVIJBM5.js.map} +0 -0
  870. /package/dist/{termCollectionFractionSelection.unit.spec-MG7E3EIZ.js.map → termCollectionFractionSelection.unit.spec-3HIM5BIF.js.map} +0 -0
  871. /package/dist/{termCollectionFractionSelection-P5G6WIJJ.js.map → tk-HSYWJCGQ.js.map} +0 -0
  872. /package/dist/{tk-HWUPUGOS.js.map → tk-PNOVG2XS.js.map} +0 -0
  873. /package/dist/{tp.ui-RRB5MJRD.js.map → tp.ui-COBBSUPB.js.map} +0 -0
  874. /package/dist/{tk-SBM2GN3S.js.map → tvs.dt-35AKURFI.js.map} +0 -0
  875. /package/dist/{tvs.dtcnv.categorical-7RJPQKMX.js.map → tvs.dtcnv.categorical-3EHXYROL.js.map} +0 -0
  876. /package/dist/{tvs.dtcnv.continuous-FW4ZXIYY.js.map → tvs.dtcnv.continuous-AXQ2GU6S.js.map} +0 -0
  877. /package/dist/{tvs.dtfusion-3GDWW3ML.js.map → tvs.dtfusion-PLJIMPNX.js.map} +0 -0
  878. /package/dist/{tvs.dtitd-FER4H4UO.js.map → tvs.dtitd-JS6RFBV5.js.map} +0 -0
  879. /package/dist/{tvs.dtsnvindel-ISEOJ5UA.js.map → tvs.dtsnvindel-MDEM5MPT.js.map} +0 -0
  880. /package/dist/{tvs.dtsv-JDML7EWE.js.map → tvs.dtsv-OU756YLO.js.map} +0 -0
  881. /package/dist/{tvs.samplelst-MJTM6GSV.js.map → tvs.samplelst-5NDICES4.js.map} +0 -0
  882. /package/dist/{tvs.termCollection-GMOXBJWF.js.map → tvs.termCollection-5URPDPH6.js.map} +0 -0
  883. /package/dist/{tvs.dt-I2ECKHQ2.js.map → vocabulary-CHCVMPK5.js.map} +0 -0
  884. /package/dist/{wsi.direct-IVPACPNT.js.map → wsi.direct-JSKV4H4X.js.map} +0 -0
@@ -0,0 +1,2244 @@
1
+ import {
2
+ blocklazyload
3
+ } from "./chunk-ACXFPMJP.js";
4
+ import {
5
+ hicParseFile
6
+ } from "./chunk-USW6WRDZ.js";
7
+ import {
8
+ AppBase,
9
+ ColorScale,
10
+ axisstyle,
11
+ first_genetrack_tolist,
12
+ font,
13
+ newpane,
14
+ showErrorsWithCounter,
15
+ tkt
16
+ } from "./chunk-D5PX2UDG.js";
17
+ import "./chunk-HJ6L54YS.js";
18
+ import "./chunk-XFAL46LZ.js";
19
+ import "./chunk-OPMMU6DQ.js";
20
+ import {
21
+ Menu
22
+ } from "./chunk-ELJX3QIQ.js";
23
+ import "./chunk-7BLXK3GI.js";
24
+ import "./chunk-VSSZJHOR.js";
25
+ import "./chunk-5RUVBYLK.js";
26
+ import {
27
+ dofetch3
28
+ } from "./chunk-6X7PP7A4.js";
29
+ import "./chunk-EO6M3LY3.js";
30
+ import "./chunk-DXLO4OAB.js";
31
+ import {
32
+ bplen
33
+ } from "./chunk-4QBRVM4V.js";
34
+ import {
35
+ StoreBase,
36
+ getAppInit,
37
+ getCompInit,
38
+ getStoreInit
39
+ } from "./chunk-H6INPPUC.js";
40
+ import "./chunk-PF4DSFDR.js";
41
+ import "./chunk-IMYSFDE5.js";
42
+ import "./chunk-W5J3LTYS.js";
43
+ import {
44
+ axisBottom,
45
+ axisRight
46
+ } from "./chunk-4ZL6IBXM.js";
47
+ import {
48
+ format,
49
+ linear
50
+ } from "./chunk-OZVWP4ZR.js";
51
+ import "./chunk-FXQXCOII.js";
52
+ import "./chunk-TLT4YIG3.js";
53
+ import "./chunk-5R63Q5KH.js";
54
+ import {
55
+ pointer_default,
56
+ select_default
57
+ } from "./chunk-I6Y4O3RR.js";
58
+ import "./chunk-Q5RDQNIT.js";
59
+ import "./chunk-DQC5FFGV.js";
60
+ import "./chunk-HFNDKYVF.js";
61
+
62
+ // tracks/hic/HicStore.ts
63
+ var HicStore = class _HicStore extends StoreBase {
64
+ constructor(opts) {
65
+ super(opts);
66
+ this.views = ["genome", "chrpair", "detail", "horizontal"];
67
+ this.type = _HicStore.type;
68
+ this.defaultState = {
69
+ defaultNmeth: "NONE",
70
+ loading: true,
71
+ minBinNum_bp: 200,
72
+ minFragSpan: 200,
73
+ initialBinNum: 20,
74
+ settings: {
75
+ widthHeightPx: 800
76
+ }
77
+ };
78
+ }
79
+ static {
80
+ this.type = "store";
81
+ }
82
+ init() {
83
+ this.state = Object.assign({}, this.defaultState, this.state);
84
+ }
85
+ };
86
+ var hicStoreInit = getStoreInit(HicStore);
87
+ HicStore.prototype.actions = {
88
+ view_create(action) {
89
+ if (!action.view) throw Error("view_create: missing view");
90
+ if (!this.views.some((v) => v == action.view)) throw Error(`view_create: unknown view = ${action.view}`);
91
+ this.state.currView = action.view;
92
+ const opts = Object.assign(this.state, action.config);
93
+ this.state = opts;
94
+ },
95
+ view_update(action) {
96
+ if (action.view) {
97
+ if (!this.views.some((v) => v == action.view)) throw Error(`view_update: unknown view = ${action.view}`);
98
+ const opts = Object.assign(this.state[action.view], action.config);
99
+ this.state[action.view] = opts;
100
+ } else {
101
+ const opts = Object.assign(this.state, action.config);
102
+ this.state = opts;
103
+ }
104
+ },
105
+ loading_active(action) {
106
+ this.state.loading = action.active;
107
+ }
108
+ };
109
+
110
+ // tracks/hic/dom/LoadingOverlay.ts
111
+ var LoadingOverlay = class _LoadingOverlay {
112
+ constructor(opts) {
113
+ this.hasStatePreMain = true;
114
+ this.type = _LoadingOverlay.type;
115
+ this.app = opts.app;
116
+ this.loadingDiv = opts.loadingDiv;
117
+ }
118
+ static {
119
+ this.type = "loadingOverlay";
120
+ }
121
+ reactsTo(action) {
122
+ if (action.type.startsWith("loading")) return true;
123
+ else return false;
124
+ }
125
+ getState(appState) {
126
+ return appState;
127
+ }
128
+ init() {
129
+ this.loadingDiv.append("div").attr("class", "sjpp-spinner").style("display", "");
130
+ }
131
+ main(appState) {
132
+ const loading = this.app.getState(appState).loading;
133
+ this.loadingDiv.style("display", loading ? "" : "none");
134
+ }
135
+ };
136
+ var loadingInit = getCompInit(LoadingOverlay);
137
+
138
+ // tracks/hic/dom/ColorizeElement.ts
139
+ var ColorizeElement = class {
140
+ colorizeElement(xCoord, yCoord, v, obj, width, height, bpMinV, bpMaxV, currView) {
141
+ if (v >= 0) {
142
+ const p = v >= bpMaxV ? 0 : v <= bpMinV ? 255 : Math.floor(255 * (bpMaxV - v) / bpMaxV);
143
+ const positiveFill = `rgb(255, ${p}, ${p})`;
144
+ if (currView === "genome") {
145
+ obj.ctx.fillStyle = positiveFill;
146
+ obj.ctx2.fillStyle = positiveFill;
147
+ } else {
148
+ obj.fillStyle = positiveFill;
149
+ }
150
+ } else {
151
+ const p = v <= bpMinV ? 255 : Math.floor(255 * (bpMaxV + v) / bpMaxV);
152
+ const negativeFill = `rgb(${p}, ${p}, 255)`;
153
+ if (currView === "genome") {
154
+ obj.ctx.fillStyle = negativeFill;
155
+ obj.ctx2.fillStyle = negativeFill;
156
+ } else {
157
+ obj.fillStyle = negativeFill;
158
+ }
159
+ }
160
+ if (currView === "genome") {
161
+ obj.ctx.fillRect(yCoord, xCoord, width, height);
162
+ obj.ctx2.fillRect(xCoord, yCoord, width, height);
163
+ } else {
164
+ obj.fillRect(xCoord, yCoord, width, height);
165
+ }
166
+ }
167
+ };
168
+
169
+ // tracks/hic/data/Resolution.ts
170
+ var Resolution = class {
171
+ constructor(error) {
172
+ this.error = error;
173
+ }
174
+ getResolution(state, hic) {
175
+ if (state.currView == "genome") return hic["bpresolution"][0];
176
+ if (state.currView == "chrpair") {
177
+ const resolution = this.getChrPairResolution(hic, state.x, state.y, state.minBinNum_bp);
178
+ return resolution;
179
+ } else if (state.currView == "detail") {
180
+ const maxBpWidth = Math.max(state.x.stop - state.x.start, state.y.stop - state.y.start);
181
+ let resolution = this.findResFromArray(maxBpWidth, state.minBinNum_bp, hic.bpresolution);
182
+ if (resolution == null && !hic.enzyme) {
183
+ resolution = hic.bpresolution[hic.bpresolution.length - 1];
184
+ }
185
+ return resolution;
186
+ } else {
187
+ this.error(`Unknown view: ${state.currView}`);
188
+ throw `Unknown view: ${state.currView}`;
189
+ }
190
+ }
191
+ getChrPairResolution(hic, x, y, minBinNum_bp) {
192
+ const chrxlen = hic.genome.chrlookup[x.chr.toUpperCase()].len;
193
+ const chrylen = hic.genome.chrlookup[y.chr.toUpperCase()].len;
194
+ const maxchrlen = Math.max(chrxlen, chrylen);
195
+ const resolution = this.findResFromArray(maxchrlen, minBinNum_bp, hic.bpresolution);
196
+ if (resolution == null) {
197
+ this.error(`No suitable resolution for ${x.chr}-${y.chr} pair.`);
198
+ return;
199
+ }
200
+ return resolution;
201
+ }
202
+ findResFromArray(max, defaultValue, resolutionArray, returnNum) {
203
+ let resolution = null;
204
+ for (const res of resolutionArray) {
205
+ if (max / res > defaultValue) {
206
+ resolution = res;
207
+ break;
208
+ }
209
+ }
210
+ if (returnNum && resolution == null) {
211
+ resolution = resolutionArray[resolutionArray.length - 1];
212
+ }
213
+ return resolution;
214
+ }
215
+ getDefaultViewSpan(hic, x, y, initialBinNum, minBinNum_bp) {
216
+ const chrpairResolution = this.getChrPairResolution(hic, x, y, minBinNum_bp);
217
+ if (!chrpairResolution) return;
218
+ return chrpairResolution * initialBinNum;
219
+ }
220
+ };
221
+
222
+ // tracks/hic/data/Positions.ts
223
+ var Positions = class {
224
+ constructor(error, minBinNum_bp) {
225
+ this.error = error;
226
+ this.resolution = new Resolution(this.error);
227
+ this.minBinNum_bp = minBinNum_bp;
228
+ }
229
+ /**
230
+ *
231
+ * @param x x coordinate of pointer
232
+ * @param y y coordinate of pointer
233
+ * @param binpx
234
+ * @param chrx x chr from state
235
+ * @param chry y chr from state
236
+ * @param hic
237
+ * @param initialBinNum Set in the state
238
+ * @returns
239
+ */
240
+ setPosition(x, y, binpx, chrx, chry, hic, initialBinNum) {
241
+ const resolution = this.resolution.getChrPairResolution(hic, chrx, chry, this.minBinNum_bp);
242
+ const viewrangebpw = resolution * initialBinNum;
243
+ let coordx = Math.max(1, Math.floor(x * resolution / binpx) - viewrangebpw / 2);
244
+ let coordy = Math.max(1, Math.floor(y * resolution / binpx) - viewrangebpw / 2);
245
+ {
246
+ const lenx = hic.genome.chrlookup[chrx.chr.toUpperCase()].len;
247
+ if (coordx + viewrangebpw >= lenx) {
248
+ coordx = lenx - viewrangebpw;
249
+ }
250
+ const leny = hic.genome.chrlookup[chry.chr.toUpperCase()].len;
251
+ if (coordy + viewrangebpw > leny) {
252
+ coordy = leny - viewrangebpw;
253
+ }
254
+ }
255
+ const xObj = {
256
+ chr: chrx.chr,
257
+ start: coordx,
258
+ stop: coordx + viewrangebpw
259
+ };
260
+ const yObj = {
261
+ chr: chry.chr,
262
+ start: coordy,
263
+ stop: coordy + viewrangebpw
264
+ };
265
+ return [xObj, yObj];
266
+ }
267
+ };
268
+
269
+ // tracks/hic/data/GridElementsFormattedData.ts
270
+ var GridElementsFormattedData = class {
271
+ /**
272
+ * Format the data for the grid elements.
273
+ * @param items The data to format.
274
+ * @param binpx The bin size in pixels.
275
+ * @param resolution The resolution.
276
+ * @param isFirstChrX Whether the first chromosome is X. Used for chrpair view.
277
+ * @param isIntraChr Whether the data is intra-chromosomal. Used for chrpair view
278
+ * @returns The formatted data.
279
+ */
280
+ formatData(view, items, binpx, resolution, isFirstChrX, isIntraChr) {
281
+ const formattedData = [];
282
+ for (const [xCoord, yCoord, value] of items) {
283
+ const xPx = Math.floor(xCoord / resolution) * binpx;
284
+ const yPx = Math.floor(yCoord / resolution) * binpx;
285
+ if (view == "genome") {
286
+ formattedData.push([xPx, yPx, value]);
287
+ }
288
+ if (view == "chrpair") {
289
+ const x = isFirstChrX ? xPx : yPx;
290
+ const y = isFirstChrX ? yPx : xPx;
291
+ formattedData.push([x, y, value]);
292
+ if (isIntraChr) {
293
+ formattedData.push([y, x, value]);
294
+ }
295
+ }
296
+ }
297
+ return formattedData;
298
+ }
299
+ };
300
+
301
+ // tracks/hic/data/FirstChrX.ts
302
+ var FirstChrX = class {
303
+ constructor(chrorder, chrx, chry) {
304
+ this.chrorder = chrorder;
305
+ this.chrx = chrx;
306
+ this.chry = chry;
307
+ }
308
+ isFirstX() {
309
+ if (this.chrx == this.chry) return true;
310
+ return this.chrorder.indexOf(this.chrx) < this.chrorder.indexOf(this.chry);
311
+ }
312
+ };
313
+
314
+ // tracks/hic/chrpair/ChrPairView.ts
315
+ var ChrPairView = class {
316
+ constructor(opts) {
317
+ this.binpx = 1;
318
+ /** padding on the ends of x/y chr coordinate axes */
319
+ this.axispad = 10;
320
+ this.axisLabelFontSize = 15;
321
+ this.calcResolution = null;
322
+ this.data = [];
323
+ this.app = opts.app;
324
+ this.hic = opts.hic;
325
+ this.plotDiv = opts.plotDiv;
326
+ this.items = opts.items;
327
+ this.parent = opts.parent;
328
+ this.chrxlen = this.hic.genome.chrlookup[this.parent("state").x.chr.toUpperCase()].len;
329
+ this.chrylen = this.hic.genome.chrlookup[this.parent("state").y.chr.toUpperCase()].len;
330
+ this.maxchrlen = Math.max(this.chrxlen, this.chrylen);
331
+ this.colorizeElement = new ColorizeElement();
332
+ this.positions = new Positions(opts.error, this.parent("state").minBinNum_bp);
333
+ this.formattedData = new GridElementsFormattedData();
334
+ }
335
+ setDefaultBinpx() {
336
+ if (this.calcResolution == null) return;
337
+ while (this.binpx * this.maxchrlen / this.calcResolution < 600) {
338
+ this.binpx++;
339
+ }
340
+ }
341
+ renderAxes() {
342
+ if (this.calcResolution == null) return;
343
+ const svgY = this.plotDiv.yAxis.append("svg");
344
+ const h = Math.ceil(this.chrylen / this.calcResolution) * this.binpx;
345
+ svgY.attr("width", 100).attr("height", this.axispad * 2 + h);
346
+ 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)");
347
+ axisstyle({
348
+ axis: svgY.append("g").attr("transform", `translate(1, ${this.axispad})`).call(axisRight(linear().domain([0, this.chrylen]).range([0, h])).tickFormat(format(".2s"))),
349
+ showline: true
350
+ });
351
+ const svgX = this.plotDiv.xAxis.append("svg").style("margin-top", "-4px");
352
+ const w = Math.ceil(this.chrxlen / this.calcResolution) * this.binpx;
353
+ svgX.attr("height", 100).attr("width", this.axispad * 2 + w);
354
+ 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);
355
+ axisstyle({
356
+ axis: svgX.append("g").attr("transform", "translate(" + this.axispad + ",1)").call(axisBottom(linear().domain([0, this.chrxlen]).range([0, w])).tickFormat(format(".2s"))),
357
+ showline: true
358
+ });
359
+ }
360
+ renderCanvas() {
361
+ const initDetailView = this.initDetailView.bind(this);
362
+ this.canvas = this.plotDiv.plot.append("canvas").attr("data-testid", "sjpp-chrpair-canvas").style("margin", this.axispad + "px").on("click", async function(event) {
363
+ const [x, y] = pointer_default(event, this);
364
+ initDetailView(x, y);
365
+ }).node();
366
+ this.canvas.width = Math.ceil(this.chrxlen / this.calcResolution) * this.binpx;
367
+ this.canvas.height = Math.ceil(this.chrylen / this.calcResolution) * this.binpx;
368
+ this.ctx = this.canvas.getContext("2d");
369
+ }
370
+ initDetailView(x, y) {
371
+ const [xObj, yObj] = this.positions.setPosition(
372
+ x,
373
+ y,
374
+ this.binpx,
375
+ this.parent("state").x,
376
+ this.parent("state").y,
377
+ this.hic,
378
+ this.parent("state").initialBinNum
379
+ );
380
+ this.app.dispatch({
381
+ type: "view_create",
382
+ view: "detail",
383
+ config: {
384
+ x: xObj,
385
+ y: yObj
386
+ }
387
+ });
388
+ }
389
+ render() {
390
+ this.calcResolution = this.parent("calcResolution");
391
+ this.setDefaultBinpx();
392
+ this.renderAxes();
393
+ this.renderCanvas();
394
+ this.update(this.items);
395
+ }
396
+ update(items) {
397
+ this.items = items;
398
+ const firstisx = new FirstChrX(this.hic.chrorder, this.parent("state").x.chr, this.parent("state").y.chr).isFirstX();
399
+ const isintrachr = this.parent("state").x.chr === this.parent("state").y.chr;
400
+ this.data = this.formattedData.formatData(
401
+ "chrpair",
402
+ items.items,
403
+ this.binpx,
404
+ this.calcResolution,
405
+ firstisx,
406
+ isintrachr
407
+ );
408
+ this.ctx.clearRect(0, 0, this.canvas.width, this.canvas.height);
409
+ for (const [x, y, v] of this.data) {
410
+ this.colorizeElement.colorizeElement(
411
+ x,
412
+ y,
413
+ v,
414
+ this.ctx,
415
+ this.binpx,
416
+ //width
417
+ this.binpx,
418
+ //height
419
+ this.parent("min"),
420
+ this.parent("max"),
421
+ "chrpair"
422
+ );
423
+ }
424
+ this.app.dispatch({ type: "loading_active", active: false });
425
+ }
426
+ };
427
+
428
+ // tracks/hic/horizontal/HorizontalView.ts
429
+ var HorizontalView = class {
430
+ constructor(opts) {
431
+ /** Defaults*/
432
+ this.maxPercentage = 5;
433
+ this.subPanelPxWidth = 600;
434
+ this.borderColor = "rgba(200,0,0,.1)";
435
+ this.app = opts.app;
436
+ this.hic = opts.hic;
437
+ this.plotDiv = opts.plotDiv;
438
+ this.items = opts.items;
439
+ this.parent = opts.parent;
440
+ }
441
+ setRunPpTracks() {
442
+ const tracks = [
443
+ {
444
+ type: "hicstraw",
445
+ file: this.hic.file,
446
+ url: this.hic.url,
447
+ name: this.hic.name,
448
+ enzyme: this.hic.enzyme,
449
+ maxpercentage: this.maxPercentage,
450
+ pyramindup: 1
451
+ }
452
+ ];
453
+ if (this.hic.tklst) {
454
+ for (const t of this.hic.tklst) {
455
+ tracks.push(t);
456
+ }
457
+ }
458
+ first_genetrack_tolist(this.hic.genome, tracks);
459
+ return tracks;
460
+ }
461
+ setRunPpArgs(tracks) {
462
+ const arg = {
463
+ holder: this.plotDiv.plot,
464
+ hostURL: this.hic.hostURL,
465
+ jwt: this.hic.jwt,
466
+ genome: this.hic.genome,
467
+ nobox: 1,
468
+ tklst: tracks
469
+ };
470
+ const state = this.parent("state");
471
+ if (state.x.chr == state.y.chr && Math.max(state.x.start, state.y.start) < Math.min(state.x.stop, state.y.stop)) {
472
+ arg["chr"] = state.x.chr;
473
+ arg["start"] = Math.min(state.x.start, state.y.start);
474
+ arg["stop"] = Math.max(state.x.stop, state.y.stop);
475
+ } else {
476
+ arg["chr"] = state.x.chr;
477
+ arg["start"] = state.x.start;
478
+ arg["stop"] = state.x.stop;
479
+ arg["width"] = this.subPanelPxWidth;
480
+ arg["subpanels"] = [
481
+ {
482
+ chr: state.y.chr,
483
+ start: state.y.start,
484
+ stop: state.y.stop,
485
+ width: this.subPanelPxWidth,
486
+ leftpad: 10,
487
+ leftborder: this.borderColor
488
+ }
489
+ ];
490
+ }
491
+ return arg;
492
+ }
493
+ render() {
494
+ const tracks = this.setRunPpTracks();
495
+ const arg = this.setRunPpArgs(tracks);
496
+ blocklazyload(arg);
497
+ }
498
+ // update() {
499
+ // //Not required.
500
+ // //If controls are added back. Implement changes here.
501
+ // }
502
+ };
503
+
504
+ // tracks/hic/detail/DetailBlock.ts
505
+ var DetailBlock = class {
506
+ constructor(app, hic, blockwidth, bbmargin, holder, isYblock) {
507
+ /** Defaults */
508
+ this.leftheadw = 20;
509
+ this.rightheadw = 40;
510
+ this.lpad = 1;
511
+ this.rpad = 1;
512
+ this.firstRender = true;
513
+ this.app = app;
514
+ this.hic = hic;
515
+ this.width = blockwidth;
516
+ this.bbmargin = bbmargin;
517
+ this.holder = holder;
518
+ this.isYblock = isYblock;
519
+ this.bbw = this.leftheadw + this.lpad + this.width + this.rpad + this.rightheadw + 2 * this.bbmargin;
520
+ this.defaultLeft = this.bbmargin + this.leftheadw + this.lpad;
521
+ this.defaultTop = this.bbmargin + this.rightheadw + this.rpad;
522
+ }
523
+ setArgs(chrObj) {
524
+ const runPpArgs = {
525
+ hostURL: this.hic.hostURL,
526
+ genome: this.hic.genome,
527
+ holder: this.holder,
528
+ noresize: true,
529
+ nobox: true,
530
+ butrowbottom: true,
531
+ style: {
532
+ margin: `${this.bbmargin}px`
533
+ },
534
+ width: this.width,
535
+ leftheadw: this.leftheadw,
536
+ chr: chrObj.chr,
537
+ start: chrObj.start,
538
+ stop: chrObj.stop,
539
+ rightheadw: this.rightheadw,
540
+ tklst: [],
541
+ rotated: this.isYblock,
542
+ showreverse: this.isYblock
543
+ };
544
+ first_genetrack_tolist(this.hic.genome, runPpArgs.tklst);
545
+ return runPpArgs;
546
+ }
547
+ setMethods(canvasHolder, canvas, sheath) {
548
+ const runPpMethods = {
549
+ onloadalltk_always: () => {
550
+ this.onload(canvasHolder, canvas, sheath);
551
+ },
552
+ onpanning: (xoff) => this.onpanning(xoff, canvas)
553
+ };
554
+ if (this.isYblock) {
555
+ runPpMethods["onsetheight"] = (bbh) => {
556
+ this.holder.transition().style("left", `${bbh + this.bbmargin + 30}px`);
557
+ };
558
+ }
559
+ return runPpMethods;
560
+ }
561
+ onload(canvasHolder, canvas, sheath) {
562
+ this.bbw = this.block.leftheadw + this.block.lpad + this.block.width + this.block.rpad + this.block.rightheadw + 2 * this.bbmargin;
563
+ if (this.isYblock) {
564
+ sheath.transition().style("height", `${this.bbw}px`);
565
+ canvasHolder.style("height", `${this.bbw}px`);
566
+ } else canvasHolder.style("width", `${this.bbw}px`);
567
+ if (this.isYblock) {
568
+ this.defaultTop = this.bbmargin + this.block.rightheadw + this.block.rpad;
569
+ canvas.style("top", `${this.defaultTop}px`);
570
+ } else {
571
+ this.defaultLeft = this.bbmargin + this.block.leftheadw + this.block.lpad;
572
+ canvas.style("left", `${this.defaultLeft}px`);
573
+ }
574
+ const config = {
575
+ [this.isYblock ? "y" : "x"]: {
576
+ chr: this.block.rglst[0].chr,
577
+ start: this.block.rglst[0].start,
578
+ stop: this.block.rglst[0].stop
579
+ }
580
+ };
581
+ if (this.firstRender == false) {
582
+ this.app.dispatch({
583
+ type: "view_update",
584
+ config
585
+ });
586
+ } else {
587
+ this.firstRender = false;
588
+ }
589
+ }
590
+ onpanning(xoff, canvas) {
591
+ if (!this.isYblock) canvas.style("left", `${xoff + this.defaultLeft}px`);
592
+ else canvas.style("top", `${-xoff + this.defaultTop}px`);
593
+ }
594
+ async loadBlock(chrObj, canvasHolder, canvas, sheath) {
595
+ const runPpArgs = this.setArgs(chrObj);
596
+ const runPpMethods = this.isYblock ? this.setMethods(canvasHolder, canvas, sheath) : this.setMethods(canvasHolder, canvas);
597
+ const args = Object.assign(runPpArgs, runPpMethods);
598
+ await blocklazyload(args).then(async (block) => {
599
+ this.block = block;
600
+ });
601
+ }
602
+ };
603
+
604
+ // tracks/hic/data/DetailDataFetcher.ts
605
+ var DetailDataFetcher = class {
606
+ constructor(errList) {
607
+ this.obj = {
608
+ rglst: []
609
+ };
610
+ this.errList = errList;
611
+ }
612
+ isFragData(hic, resolution) {
613
+ if (resolution != null) return;
614
+ if (!hic.enzyme) {
615
+ resolution = hic.bpresolution[hic.bpresolution.length - 1];
616
+ return;
617
+ }
618
+ }
619
+ formatFragArgs(enzymefile, chr) {
620
+ const arg = {
621
+ getdata: 1,
622
+ getBED: 1,
623
+ file: enzymefile,
624
+ rglst: [chr]
625
+ };
626
+ return arg;
627
+ }
628
+ /**
629
+ * @param arg Formated obj from either fn above
630
+ * @param errList
631
+ * @returns
632
+ */
633
+ async getBedData(arg) {
634
+ try {
635
+ return await dofetch3("tkbedj", { method: "POST", body: JSON.stringify(arg) });
636
+ } catch (e) {
637
+ this.errList.push(e.message || e);
638
+ if (e.stack) console.error(e.stack);
639
+ }
640
+ }
641
+ async getXFragData(hic, resolution, chrx) {
642
+ this.isFragData(hic, resolution);
643
+ if (!hic.enzymefile) return;
644
+ const reqArgs = this.formatFragArgs(hic.enzymefile, chrx);
645
+ return await this.getBedData(reqArgs);
646
+ }
647
+ async getYFragData(hic, chry) {
648
+ const reqArgs = this.formatFragArgs(hic.enzymefile, chry);
649
+ return await this.getBedData(reqArgs);
650
+ }
651
+ /**
652
+ * Separate request from data fetch
653
+ * Returns the additional fragment data
654
+ * @param fragCoords
655
+ */
656
+ async fetchData(hic, detailView, resolution, x, y, fragCoords) {
657
+ const fragStrawArgs = {
658
+ matrixType: detailView.matrixType,
659
+ file: hic.file,
660
+ url: hic.url,
661
+ pos1: this.determinePosition(hic, x, fragCoords?.x),
662
+ pos2: this.determinePosition(hic, y, fragCoords?.y),
663
+ nmeth: detailView.nmeth,
664
+ resolution
665
+ };
666
+ if (fragCoords) fragStrawArgs["isfrag"] = true;
667
+ try {
668
+ const data = dofetch3("hicdata?", {
669
+ method: "POST",
670
+ body: JSON.stringify(fragStrawArgs)
671
+ });
672
+ if (data.error) {
673
+ this.errList.push(data.error);
674
+ }
675
+ return data;
676
+ } catch (e) {
677
+ this.errList.push(e.message || e);
678
+ if (e.stack) console.error(e.stack);
679
+ }
680
+ }
681
+ determinePosition(hic, chr, fragCoord) {
682
+ if (fragCoord) {
683
+ return `${hic.nochr ? chr.chr.replace("chr", "") : chr.chr}:${fragCoord.start}:${fragCoord.stop}`;
684
+ } else {
685
+ return `${hic.nochr ? chr.chr.replace("chr", "") : chr.chr}:${chr.start}:${chr.stop}`;
686
+ }
687
+ }
688
+ };
689
+
690
+ // tracks/hic/data/ParseFragData.ts
691
+ var ParseFragData = class {
692
+ constructor(errLst, items) {
693
+ this.id2coord = /* @__PURE__ */ new Map();
694
+ this.min = null;
695
+ this.max = null;
696
+ this.items = [];
697
+ this.errLst = errLst;
698
+ for (const i of items) {
699
+ if (!i.rest || !i.rest[0]) {
700
+ this.errLst.push("items[].rest data problem");
701
+ }
702
+ const id = Number.parseInt(i.rest[0]);
703
+ if (Number.isNaN(id)) {
704
+ this.errLst.push(`${i.start}.${i.stop} invalid fragment id: ${i.rest[0]}`);
705
+ }
706
+ this.id2coord.set(id, [i.start, i.stop]);
707
+ if (this.min == null) {
708
+ this.min = id;
709
+ this.max = id;
710
+ } else {
711
+ this.min = Math.min(this.min, id);
712
+ this.max = Math.max(this.max, id);
713
+ }
714
+ }
715
+ }
716
+ };
717
+
718
+ // tracks/hic/data/DetailDataMapper.ts
719
+ var DetailDataMapper = class {
720
+ constructor(hic, errList, parent) {
721
+ this.frag = {
722
+ x: {},
723
+ y: {}
724
+ };
725
+ this.hic = hic;
726
+ this.errList = errList;
727
+ this.dataFetcher = new DetailDataFetcher(errList);
728
+ this.parent = parent;
729
+ }
730
+ async getFragData(chrx, chry) {
731
+ try {
732
+ const xFragData = await this.dataFetcher.getXFragData(this.hic, this.parent("calcResolution"), chrx);
733
+ if (xFragData) {
734
+ if (!xFragData.items) {
735
+ this.errList.push(`No fragment data returned for ${chrx.chr}:${chrx.start}-${chrx.stop}`);
736
+ return;
737
+ }
738
+ const xParse = new ParseFragData(this.errList, xFragData.items);
739
+ if (this.errList.length) return;
740
+ this.frag.x = {
741
+ id2coord: xParse.id2coord,
742
+ start: xParse.min,
743
+ stop: xParse.max
744
+ };
745
+ const yFragData = await this.dataFetcher.getYFragData(this.hic, chry);
746
+ if (this.errList.length) return;
747
+ if (yFragData) {
748
+ if (!yFragData.items) {
749
+ this.errList.push(`No fragment data returned for ${chry.chr}:${chry.start}-${chry.stop}`);
750
+ return;
751
+ }
752
+ const yParse = new ParseFragData(this.errList, yFragData.items);
753
+ if (this.errList.length) return;
754
+ this.frag.y = {
755
+ id2coord: /* @__PURE__ */ new Map(),
756
+ start: yParse.min,
757
+ stop: yParse.max
758
+ };
759
+ this.determineMap(yParse.id2coord, chrx, chry);
760
+ }
761
+ }
762
+ } catch (e) {
763
+ this.errList.push(e.message || e);
764
+ if (e.stack) console.error(e.stack);
765
+ }
766
+ }
767
+ determineMap(map, chrx, chry) {
768
+ if (chrx.chr == chry.chr) {
769
+ for (const [id, pos] of map) {
770
+ this.frag.x["id2coord"].set(id, pos);
771
+ }
772
+ this.frag.y["id2coord"] = this.frag.x["id2coord"];
773
+ } else {
774
+ this.frag.y["id2coord"] = map;
775
+ }
776
+ }
777
+ async getData(chrx, chry, fragCoords) {
778
+ return await this.dataFetcher.fetchData(
779
+ this.hic,
780
+ this.parent("state")["detail"],
781
+ this.parent("calcResolution"),
782
+ chrx,
783
+ chry,
784
+ fragCoords
785
+ );
786
+ }
787
+ };
788
+
789
+ // tracks/hic/data/DetailCoodinates.ts
790
+ var DetailCoordinates = class {
791
+ constructor(hic, errlist) {
792
+ this.hic = hic;
793
+ this.errlist = errlist;
794
+ }
795
+ getCoordinates(chrx, chry, data, resolution, widthHeightPx, fragData) {
796
+ const isFirstX = new FirstChrX(this.hic.chrorder, chrx.chr, chry.chr).isFirstX();
797
+ const isintrachr = chrx.chr == chry.chr;
798
+ const xpxbp = widthHeightPx / (chrx.stop - chrx.start);
799
+ const ypxbp = widthHeightPx / (chry.stop - chry.start);
800
+ const list = this.calculateCoordinates(isFirstX, isintrachr, xpxbp, ypxbp, resolution, chrx, chry, data, fragData);
801
+ return list;
802
+ }
803
+ calculateCoordinates(isFirstX, isintrachr, xpxbp, ypxbp, resolution, chrx, chry, data, fragData) {
804
+ const list = [];
805
+ for (const [xCoord, yCoord, value] of data.items) {
806
+ let coord1, coord2, span1, span2;
807
+ if (fragData) {
808
+ const idx_start = isFirstX ? xCoord : yCoord;
809
+ const idy_start = isFirstX ? yCoord : xCoord;
810
+ if (fragData.x.id2coord.has(idx_start)) {
811
+ const [a, b] = fragData.x.id2coord.get(idx_start);
812
+ coord1 = a;
813
+ span1 = b - a;
814
+ } else {
815
+ this.errlist.push(`[x id error] x: ${idx_start} y: ${idy_start}`);
816
+ continue;
817
+ }
818
+ {
819
+ const id_stop = idx_start + resolution;
820
+ if (fragData.x.id2coord.has(id_stop)) {
821
+ const ab = fragData.x.id2coord.get(id_stop);
822
+ span1 = ab[1] - coord1;
823
+ }
824
+ }
825
+ if (fragData.y.id2coord.has(idy_start)) {
826
+ const [a, b] = fragData.y.id2coord.get(idy_start);
827
+ coord2 = a;
828
+ span2 = b - a;
829
+ } else {
830
+ this.errlist.push(`[y id error] x: ${idx_start} y: ${idy_start}`);
831
+ continue;
832
+ }
833
+ {
834
+ const id_stop = idy_start + resolution;
835
+ if (fragData.y.id2coord.has(id_stop)) {
836
+ const ab = fragData.y.id2coord.get(id_stop);
837
+ span2 = ab[1] - coord2;
838
+ }
839
+ }
840
+ } else {
841
+ coord1 = isFirstX ? xCoord : yCoord;
842
+ coord2 = isFirstX ? yCoord : xCoord;
843
+ span1 = resolution;
844
+ span2 = resolution;
845
+ }
846
+ if (isintrachr) {
847
+ if (coord1 > chrx.start - span1 && coord1 < chrx.stop && coord2 > chry.start - span2 && coord2 < chry.stop) {
848
+ list.push([
849
+ Math.floor((coord1 - chrx.start) * xpxbp),
850
+ Math.floor((coord2 - chry.start) * ypxbp),
851
+ Math.ceil(span1 * xpxbp),
852
+ Math.ceil(span2 * ypxbp),
853
+ value
854
+ ]);
855
+ }
856
+ if (coord2 > chrx.start - span2 && coord2 < chrx.stop && coord1 > chry.start && coord1 < chry.stop) {
857
+ list.push([
858
+ Math.floor((coord2 - chrx.start) * xpxbp),
859
+ Math.floor((coord1 - chry.start) * ypxbp),
860
+ Math.ceil(span2 * xpxbp),
861
+ Math.ceil(span1 * ypxbp),
862
+ value
863
+ ]);
864
+ }
865
+ continue;
866
+ }
867
+ list.push([
868
+ Math.floor((coord1 - chrx.start) * xpxbp),
869
+ Math.floor((coord2 - chry.start) * ypxbp),
870
+ Math.ceil(span1 * xpxbp),
871
+ Math.ceil(span2 * ypxbp),
872
+ value
873
+ ]);
874
+ }
875
+ return list;
876
+ }
877
+ };
878
+
879
+ // tracks/hic/detail/DetailView.ts
880
+ var DetailView = class {
881
+ constructor(opts) {
882
+ this.calcResolution = null;
883
+ /** Defaults **/
884
+ this.binpx = 2;
885
+ this.bbmargin = 1;
886
+ this.app = opts.app;
887
+ this.hic = opts.hic;
888
+ this.plotDiv = opts.plotDiv;
889
+ this.sheath = opts.plotDiv.yAxis.append("div").style("position", "relative").style("width", "200px").style("height", "800px");
890
+ this.rotor = this.sheath.append("div").style("position", "absolute").style("bottom", "0px").style("transform", "rotate(-90deg)").style("transform-origin", "left bottom");
891
+ this.data = opts.data;
892
+ this.parent = opts.parent;
893
+ this.errList = this.parent("errList");
894
+ this.resolution = new Resolution(opts.error);
895
+ this.colorizeElement = new ColorizeElement();
896
+ this.viewRangeBpW = this.resolution.getDefaultViewSpan(
897
+ this.hic,
898
+ this.parent("state").x,
899
+ this.parent("state").y,
900
+ this.parent("state").initialBinNum,
901
+ this.parent("state").minBinNum_bp
902
+ );
903
+ this.dataMapper = new DetailDataMapper(this.hic, opts.error, opts.parent);
904
+ this.coordinates = new DetailCoordinates(this.hic, this.errList);
905
+ }
906
+ renderCanvas(blockwidth) {
907
+ 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");
908
+ 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) => {
909
+ const body = select_default(document.body);
910
+ const x = event.clientX;
911
+ const y = event.clientY;
912
+ const oldx = Number.parseInt(this.canvas.style("left"));
913
+ const oldy = Number.parseInt(this.canvas.style("top"));
914
+ body.on("mousemove", (event2) => {
915
+ const xoff = event2.clientX - x;
916
+ const yoff = event2.clientY - y;
917
+ this.xBlock.block.panning(xoff);
918
+ this.yBlock.block.panning(yoff);
919
+ this.canvas.style("left", `${oldx + xoff}px`).style("top", `${oldy + yoff}px`);
920
+ });
921
+ body.on("mouseup", (event2) => {
922
+ body.on("mousemove", null).on("mouseup", null);
923
+ const xoff = event2.clientX - x;
924
+ const yoff = event2.clientY - y;
925
+ this.xBlock.block.pannedby(xoff);
926
+ this.yBlock.block.pannedby(yoff);
927
+ });
928
+ });
929
+ }
930
+ async render() {
931
+ this.calcResolution = this.parent("calcResolution");
932
+ const state = this.parent("state");
933
+ this.xBlock = new DetailBlock(
934
+ this.app,
935
+ this.hic,
936
+ state.settings.widthHeightPx,
937
+ this.bbmargin,
938
+ this.plotDiv.xAxis,
939
+ false
940
+ );
941
+ this.yBlock = new DetailBlock(this.app, this.hic, state.settings.widthHeightPx, this.bbmargin, this.rotor, true);
942
+ this.renderCanvas(state.settings.widthHeightPx);
943
+ await this.xBlock.loadBlock(state.x, this.canvasHolder, this.canvas);
944
+ await this.yBlock.loadBlock(state.y, this.canvasHolder, this.canvas, this.sheath);
945
+ this.update(this.data);
946
+ }
947
+ async update(data) {
948
+ if (data.items.length == 0) {
949
+ this.app.dispatch({ type: "loading_active", active: false });
950
+ return;
951
+ }
952
+ this.data = data;
953
+ const state = this.parent("state");
954
+ const initialWidth = Number.parseInt(this.canvas.attr("width"));
955
+ const holderChange = Number.parseInt(this.canvasHolder.style("width")) - initialWidth + state.settings.widthHeightPx;
956
+ this.canvasHolder.style("width", `${holderChange}px`).style("height", `${holderChange}px`);
957
+ this.canvas.attr("width", `${state.settings.widthHeightPx}px`).attr("height", `${state.settings.widthHeightPx}px`);
958
+ if (this.xBlock.block.width != state.settings.widthHeightPx) {
959
+ this.xBlock.block.width = state.settings.widthHeightPx;
960
+ this.yBlock.block.width = state.settings.widthHeightPx;
961
+ this.xBlock.block.zoom2px(0, initialWidth);
962
+ this.yBlock.block.zoom2px(0, initialWidth);
963
+ }
964
+ this.ctx = this.canvas.node().getContext("2d");
965
+ const coords = this.coordinates.getCoordinates(
966
+ state.x,
967
+ state.y,
968
+ this.parent("data"),
969
+ this.parent("calcResolution"),
970
+ state.settings.widthHeightPx,
971
+ this.parent("fragData")
972
+ );
973
+ this.coords = coords;
974
+ this.ctx.clearRect(0, 0, state.settings.widthHeightPx, state.settings.widthHeightPx);
975
+ for (const [xCoord, yCoord, width, height, value] of this.coords) {
976
+ this.colorizeElement.colorizeElement(
977
+ xCoord,
978
+ yCoord,
979
+ value,
980
+ this.ctx,
981
+ width,
982
+ height,
983
+ this.parent("min"),
984
+ this.parent("max"),
985
+ "detail"
986
+ );
987
+ }
988
+ this.app.dispatch({ type: "loading_active", active: false });
989
+ }
990
+ };
991
+
992
+ // tracks/hic/axes/Chromosome.ts
993
+ var Chromosome = class {
994
+ constructor(chr, width) {
995
+ this.label = chr;
996
+ this.width = width;
997
+ }
998
+ };
999
+
1000
+ // tracks/hic/grid/Grid.ts
1001
+ var Grid = class _Grid {
1002
+ constructor(chrlst, resolution, chrlookup, binpx) {
1003
+ this.chromosomeMatrix = /* @__PURE__ */ new Map();
1004
+ this.chromosomeList = [];
1005
+ this.xoff = 0;
1006
+ this.yoff = 0;
1007
+ this.chr2px = [];
1008
+ this.chrlst = chrlst;
1009
+ let totalpx = this.chrlst.length;
1010
+ for (const chr of this.chrlst) {
1011
+ const w = Math.ceil(chrlookup[chr.toUpperCase()].len / resolution) * binpx;
1012
+ const chromosome = new Chromosome(chr, w);
1013
+ this.chromosomeList.push(chromosome);
1014
+ this.chr2px[chr] = w;
1015
+ totalpx += w;
1016
+ }
1017
+ this.totalpx = totalpx;
1018
+ for (let i = 0; i < this.chrlst.length; i++) {
1019
+ const chrx = this.chrlst[i];
1020
+ this.chromosomeMatrix.set(chrx, /* @__PURE__ */ new Map());
1021
+ let yoff = 0;
1022
+ for (let j = 0; j <= i; j++) {
1023
+ const chry = this.chrlst[j];
1024
+ const chrxChrLen = chrlookup[chrx.toUpperCase()].len;
1025
+ const chryChrLen = chrlookup[chry.toUpperCase()].len;
1026
+ const xbins = Math.ceil(chrxChrLen / resolution) * binpx;
1027
+ const ybins = Math.ceil(chryChrLen / resolution) * binpx;
1028
+ this.chromosomeMatrix.get(chrx).set(chry, {
1029
+ x: this.xoff,
1030
+ y: yoff,
1031
+ xbins,
1032
+ ybins,
1033
+ data: []
1034
+ //Empty array of data to fill later
1035
+ });
1036
+ yoff += this.chr2px[chry] + _Grid.borderWidth;
1037
+ }
1038
+ this.yoff = yoff;
1039
+ this.xoff += this.chr2px[chrx] + _Grid.borderWidth;
1040
+ }
1041
+ }
1042
+ static {
1043
+ this.checkerFill = "#DEF3FA";
1044
+ }
1045
+ static {
1046
+ this.spaceColor = "#CCC";
1047
+ }
1048
+ static {
1049
+ this.fontSize = 15;
1050
+ }
1051
+ static {
1052
+ this.font = font;
1053
+ }
1054
+ static {
1055
+ this.borderWidth = 1;
1056
+ }
1057
+ static {
1058
+ this.defaultChrLabWidth = 100;
1059
+ }
1060
+ };
1061
+
1062
+ // tracks/hic/viewmodel/GridViewModel.ts
1063
+ var GridViewModel = class {
1064
+ constructor(opts) {
1065
+ this.grid = new Grid(opts.hic.chrlst, opts.resolution || opts.hic.bpresolution[0], opts.hic.genome.chrlookup, 1);
1066
+ }
1067
+ };
1068
+
1069
+ // tracks/hic/grid/GridRenderer.ts
1070
+ var GridRenderer = class {
1071
+ constructor(svg, layerMap, layerSv, grid) {
1072
+ this.svg = svg;
1073
+ this.layerMap = layerMap.attr("transform", `translate(${Grid.defaultChrLabWidth}, ${Grid.fontSize})`);
1074
+ this.layerSv = layerSv.attr("transform", `translate(${Grid.defaultChrLabWidth}, ${Grid.fontSize})`);
1075
+ this.grid = grid;
1076
+ }
1077
+ render() {
1078
+ this.renderAxisX(this.grid);
1079
+ this.renderAxisY(this.grid);
1080
+ this.svg.attr("width", Grid.defaultChrLabWidth + this.grid.xoff).attr("height", Grid.fontSize + this.grid.yoff);
1081
+ }
1082
+ renderAxisX(grid) {
1083
+ let xoff = 0;
1084
+ this.grid.chromosomeList.forEach((chr, index) => {
1085
+ const chrw = chr.width;
1086
+ if (index % 2 === 0) {
1087
+ this.layerMap.append("rect").attr("x", xoff).attr("width", chrw).attr("height", Grid.fontSize).attr("y", -Grid.fontSize).attr("fill", Grid.checkerFill);
1088
+ }
1089
+ 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);
1090
+ xoff += chrw;
1091
+ this.layerSv.append("line").attr("x1", xoff).attr("x2", xoff).attr("y2", grid.totalpx).attr("stroke", Grid.spaceColor).attr("shape-rendering", "crispEdges");
1092
+ xoff += Grid.borderWidth;
1093
+ });
1094
+ }
1095
+ renderAxisY(grid) {
1096
+ let yoff = 0;
1097
+ this.grid.chromosomeList.forEach((chr, index) => {
1098
+ const chrh = chr.width;
1099
+ if (index % 2 === 0) {
1100
+ this.layerMap.append("rect").attr("x", -Grid.defaultChrLabWidth).attr("width", Grid.defaultChrLabWidth).attr("height", chrh).attr("y", yoff).attr("fill", Grid.checkerFill);
1101
+ }
1102
+ 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);
1103
+ yoff += chrh;
1104
+ this.layerSv.append("line").attr("x2", grid.totalpx).attr("y1", yoff).attr("y2", yoff).attr("stroke", Grid.spaceColor).attr("shape-rendering", "crispEdges");
1105
+ yoff += Grid.borderWidth;
1106
+ });
1107
+ }
1108
+ };
1109
+
1110
+ // tracks/hic/genome/ChrsTooltips.ts
1111
+ var ChrsTooltips = class {
1112
+ constructor() {
1113
+ this.chrx_tip = new Menu({ border: "solid 1px #ccc", padding: "0px", offsetX: 0, offsetY: 0 });
1114
+ this.chry_tip = new Menu({ border: "solid 1px #ccc", padding: "0px", offsetX: 0, offsetY: 0 });
1115
+ }
1116
+ render(img, chrx, chry) {
1117
+ const p = img.node().getBoundingClientRect();
1118
+ 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);
1119
+ 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);
1120
+ }
1121
+ };
1122
+
1123
+ // tracks/hic/grid/GridElementRenderer.ts
1124
+ var GridElementRenderer = class {
1125
+ constructor(layerMap, app) {
1126
+ this.app = app;
1127
+ this.layerMap = layerMap;
1128
+ this.tooltips = new ChrsTooltips();
1129
+ }
1130
+ render(obj, lead, follow, holder) {
1131
+ obj.canvas = holder.append("canvas").style("display", "none").node();
1132
+ obj.ctx = obj.canvas.getContext("2d");
1133
+ obj.canvas.width = obj.xbins;
1134
+ obj.canvas.height = obj.ybins;
1135
+ 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 () => {
1136
+ await this.app.dispatch({
1137
+ type: "view_create",
1138
+ view: "chrpair",
1139
+ config: {
1140
+ x: {
1141
+ chr: lead
1142
+ },
1143
+ y: {
1144
+ chr: follow
1145
+ }
1146
+ }
1147
+ });
1148
+ }).on("mouseover", () => {
1149
+ this.tooltips.render(obj.img, lead, follow);
1150
+ });
1151
+ if (lead != follow) {
1152
+ obj.canvas2 = holder.append("canvas").style("display", "none").node();
1153
+ obj.canvas2.width = obj.ybins;
1154
+ obj.canvas2.height = obj.xbins;
1155
+ obj.ctx2 = obj.canvas2.getContext("2d");
1156
+ 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 () => {
1157
+ await this.app.dispatch({
1158
+ type: "view_create",
1159
+ view: "chrpair",
1160
+ config: {
1161
+ x: {
1162
+ chr: follow
1163
+ },
1164
+ y: {
1165
+ chr: lead
1166
+ }
1167
+ }
1168
+ });
1169
+ }).on("mouseover", () => {
1170
+ this.tooltips.render(obj.img2, follow, lead);
1171
+ });
1172
+ } else {
1173
+ obj.ctx2 = obj.ctx;
1174
+ }
1175
+ }
1176
+ };
1177
+
1178
+ // tracks/hic/grid/GridElementsRenderer.ts
1179
+ var GridElementsRenderer = class {
1180
+ constructor(grid, layerMap, app) {
1181
+ this.grid = grid;
1182
+ this.gridElementRenderer = new GridElementRenderer(layerMap, app);
1183
+ }
1184
+ render(holder) {
1185
+ for (const [chrx, chryMap] of this.grid.chromosomeMatrix) {
1186
+ for (const [chry, gridElem] of chryMap) {
1187
+ this.gridElementRenderer.render(gridElem, chrx, chry, holder);
1188
+ }
1189
+ }
1190
+ }
1191
+ };
1192
+
1193
+ // tracks/hic/genome/GenomeView.ts
1194
+ var GenomeView = class {
1195
+ constructor(opts) {
1196
+ /** Dom */
1197
+ this.tip = new Menu();
1198
+ this.pica_x = new Menu({ border: "solid 1px #ccc", padding: "0px", offsetX: 0, offsetY: 0 });
1199
+ this.pica_y = new Menu({ border: "solid 1px #ccc", padding: "0px", offsetX: 0, offsetY: 0 });
1200
+ /** Data */
1201
+ /** px width for each chr */
1202
+ this.chr2px = {};
1203
+ this.lead2follow = /* @__PURE__ */ new Map();
1204
+ this.values = [];
1205
+ /** Defaults */
1206
+ this.defaultChrLabWidth = 100;
1207
+ this.borderwidth = 1;
1208
+ this.default_maxVPerc = 5;
1209
+ this.fontsize = 15;
1210
+ this.xoff = 0;
1211
+ this.yoff = 0;
1212
+ this.binpx = 1;
1213
+ this.atdev_chrnum = 8;
1214
+ this.min = 0;
1215
+ this.max = 0;
1216
+ this.app = opts.app;
1217
+ this.hic = opts.hic;
1218
+ this.plotDiv = opts.plotDiv;
1219
+ this.data = opts.data;
1220
+ this.parent = opts.parent;
1221
+ this.resolution = opts.resolution || opts.hic.bpresolution[0];
1222
+ this.svg = this.plotDiv.plot.append("svg").attr("data-testid", "sjpp-hic-genome-svg");
1223
+ this.layer_map = this.svg.append("g").attr("data-testid", "sjpp-hic-layerMap-g");
1224
+ this.layer_sv = this.svg.append("g").attr("data-testid", "sjpp-hic-layerSv-g");
1225
+ this.colorizeElement = new ColorizeElement();
1226
+ this.viewModel = new GridViewModel(opts);
1227
+ this.viewRender = new GridRenderer(this.svg, this.layer_map, this.layer_sv, this.viewModel.grid);
1228
+ this.gridElementsRenderer = new GridElementsRenderer(this.viewModel.grid, this.layer_map, this.app);
1229
+ this.gridFormattedData = new GridElementsFormattedData();
1230
+ }
1231
+ makeSv() {
1232
+ const unknownchr = /* @__PURE__ */ new Set();
1233
+ const radius = 8;
1234
+ for (const item of this.hic.sv.items) {
1235
+ const _o = this.lead2follow.get(item.chr1);
1236
+ if (!_o) {
1237
+ unknownchr.add(item.chr1);
1238
+ continue;
1239
+ }
1240
+ const obj = _o.get(item.chr2);
1241
+ if (!obj) {
1242
+ unknownchr.add(item.chr2);
1243
+ continue;
1244
+ }
1245
+ const p1 = item.position1 / this.resolution;
1246
+ const p2 = item.position2 / this.resolution;
1247
+ 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) => {
1248
+ this.tooltipSv(event, item);
1249
+ }).on("mouseout", () => {
1250
+ this.tip.hide();
1251
+ }).on("click", () => {
1252
+ this.clickSv(item);
1253
+ });
1254
+ if (obj.img2) {
1255
+ 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) => {
1256
+ this.tooltipSv(event, item);
1257
+ }).on("mouseout", () => {
1258
+ this.tip.hide();
1259
+ }).on("click", () => {
1260
+ this.clickSv(item);
1261
+ });
1262
+ }
1263
+ }
1264
+ }
1265
+ tooltipSv(event, item) {
1266
+ this.tip.clear().show(event.clientX, event.clientY).d.append("div").text(
1267
+ item.chr1 == item.chr2 ? `${item.chr1}:${item.position1}-${item.position2}` : `${item.chr1}:${item.position1}>${item.chr2}:${item.position2}`
1268
+ );
1269
+ }
1270
+ clickSv(item) {
1271
+ const default_svpointspan = 5e5;
1272
+ const default_subpanelpxwidth = 600;
1273
+ const subpanel_bordercolor = "rgba(200,0,0,.1)";
1274
+ const pane = newpane({ x: 100, y: 100 });
1275
+ pane.header.text(
1276
+ this.hic.name + " " + (item.chr1 == item.chr2 ? `${item.chr1}:${item.position1}-${item.position2}` : `${item.chr1}:${item.position1}>${item.chr2}:${item.position2}`)
1277
+ );
1278
+ const tracks = [
1279
+ {
1280
+ type: tkt.hicstraw,
1281
+ file: this.hic.file,
1282
+ enzyme: this.hic.enzyme,
1283
+ maxpercentage: this.default_maxVPerc,
1284
+ pyramidup: 1,
1285
+ name: this.hic.name
1286
+ }
1287
+ ];
1288
+ if (this.hic.tklst) {
1289
+ for (const t of this.hic.tklst) {
1290
+ tracks.push(t);
1291
+ }
1292
+ }
1293
+ first_genetrack_tolist(this.hic.genome, tracks);
1294
+ const arg = {
1295
+ holder: pane.body,
1296
+ hostURL: this.hic.hostURL,
1297
+ jwt: this.hic.jwt,
1298
+ genome: this.hic.genome,
1299
+ nobox: 1,
1300
+ tklst: tracks
1301
+ };
1302
+ if (item.chr1 == item.chr2 && Math.abs(item.position2 - item.position1) < default_svpointspan * 2) {
1303
+ arg.chr = item.chr1;
1304
+ const w = Math.abs(item.position2 - item.position1);
1305
+ arg.start = Math.max(1, Math.min(item.position1, item.position2) - w);
1306
+ arg.stop = Math.min(
1307
+ this.hic.genome.chrlookup[item.chr1.toUpperCase()].len,
1308
+ Math.max(item.position1, item.position2) + w
1309
+ );
1310
+ } else {
1311
+ arg.chr = item.chr1;
1312
+ arg.start = Math.max(1, item.position1 - default_svpointspan / 2);
1313
+ arg.stop = Math.min(
1314
+ this.hic.genome.chrlookup[item.chr1.toUpperCase()].len,
1315
+ item.position1 + default_svpointspan / 2
1316
+ );
1317
+ arg.width = default_subpanelpxwidth;
1318
+ arg.subpanels = [
1319
+ {
1320
+ chr: item.chr2,
1321
+ start: Math.max(1, item.position2 - default_svpointspan / 2),
1322
+ stop: Math.min(
1323
+ this.hic.genome.chrlookup[item.chr2.toUpperCase()].len,
1324
+ item.position2 + default_svpointspan / 2
1325
+ ),
1326
+ width: default_subpanelpxwidth,
1327
+ leftpad: 10,
1328
+ leftborder: subpanel_bordercolor
1329
+ }
1330
+ ];
1331
+ }
1332
+ blocklazyload(arg);
1333
+ }
1334
+ render() {
1335
+ this.viewRender.render();
1336
+ this.gridElementsRenderer.render(this.hic.holder);
1337
+ if (this.hic.sv && this.hic.sv.items) {
1338
+ this.makeSv();
1339
+ }
1340
+ this.update(this.data);
1341
+ }
1342
+ update(data) {
1343
+ this.data = data;
1344
+ this.min = this.parent("min");
1345
+ this.max = this.parent("max");
1346
+ for (const data2 of this.data) {
1347
+ if (!this.hic.chrlst.includes(data2.lead) || !this.hic.chrlst.includes(data2.follow)) continue;
1348
+ const obj = this.viewModel.grid.chromosomeMatrix.get(data2.lead).get(data2.follow);
1349
+ if (!obj) continue;
1350
+ obj.ctx.clearRect(0, 0, obj.canvas.width, obj.canvas.height);
1351
+ if (obj.canvas2) {
1352
+ obj.ctx2.clearRect(0, 0, obj.canvas2.width, obj.canvas.height);
1353
+ }
1354
+ obj.data = this.gridFormattedData.formatData("genome", data2.items, this.binpx, this.resolution);
1355
+ for (const [xPx, yPx, value] of obj.data) {
1356
+ this.colorizeElement.colorizeElement(xPx, yPx, value, obj, this.binpx, this.binpx, this.min, this.max, "genome");
1357
+ }
1358
+ obj.img.attr("xlink:href", obj.canvas.toDataURL());
1359
+ if (obj.canvas2) {
1360
+ obj.img2.attr("xlink:href", obj.canvas2.toDataURL());
1361
+ }
1362
+ }
1363
+ this.app.dispatch({ type: "loading_active", active: false });
1364
+ }
1365
+ };
1366
+
1367
+ // tracks/hic/controls/NormalizationMethodControl.ts
1368
+ var NormalizationMethodControl = class {
1369
+ constructor(holder, normalization, defaultNmeth, callback) {
1370
+ this.holder = holder;
1371
+ this.normalization = normalization;
1372
+ this.defaultNmeth = defaultNmeth;
1373
+ this.callback = callback;
1374
+ }
1375
+ render() {
1376
+ if (!this.normalization?.length) {
1377
+ this.nmethSelect = this.holder.text(this.defaultNmeth);
1378
+ } else {
1379
+ this.nmethSelect = this.holder.attr("data-testid", "sjpp-hic-nmeth-select").style("margin-right", "10px").append("select").on("change", async () => {
1380
+ const nmeth = this.nmethSelect.node().value;
1381
+ this.callback(nmeth, "nmeth");
1382
+ });
1383
+ for (const n of this.normalization) {
1384
+ this.nmethSelect.append("option").text(n);
1385
+ }
1386
+ }
1387
+ }
1388
+ update(option) {
1389
+ const options = this.nmethSelect.node().options;
1390
+ if (!options) return;
1391
+ const selectedNmeth = Array.from(options).find((o) => o.value === option);
1392
+ if (!selectedNmeth) throw `Invalid normalization method: ${option}`;
1393
+ selectedNmeth.selected = true;
1394
+ }
1395
+ };
1396
+
1397
+ // tracks/hic/controls/CutoffControl.ts
1398
+ var CutoffControl = class {
1399
+ constructor(holder, value, callback) {
1400
+ this.holder = holder;
1401
+ this.value = value;
1402
+ this.callback = callback;
1403
+ }
1404
+ render(opts) {
1405
+ 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) => {
1406
+ if (event.code != "Enter") return;
1407
+ const v = event.target.value;
1408
+ this.callback(v);
1409
+ });
1410
+ return cutoffDiv;
1411
+ }
1412
+ };
1413
+
1414
+ // tracks/hic/controls/MatrixTypeControl.ts
1415
+ var MatrixTypeControl = class {
1416
+ constructor(holder, callback) {
1417
+ this.values = [
1418
+ { label: "Observed", value: "observed" },
1419
+ { label: "Expected", value: "expected" },
1420
+ { label: "Observed/Expected", value: "oe" },
1421
+ { label: "Log(Observed/Expected)", value: "log(oe)" }
1422
+ // TODO: add server side logic to support these options
1423
+ // { label: 'Log(Observed + 1)', value: 'log(obs+1)'},
1424
+ // { label: 'Observed Pearson', value: 'op'}
1425
+ ];
1426
+ this.holder = holder;
1427
+ this.callback = callback;
1428
+ }
1429
+ render() {
1430
+ this.matrixSelect = this.holder.attr("data-testid", "sjpp-hic-matrix-type-select").style("margin-right", "10px").append("select").on("change", async () => {
1431
+ this.callback(this.matrixSelect.node().value, "matrixType");
1432
+ });
1433
+ for (const matrixType of this.values) {
1434
+ this.matrixSelect.append("option").text(matrixType.label).attr("value", matrixType.value);
1435
+ }
1436
+ }
1437
+ update(option) {
1438
+ const options = this.matrixSelect.node().options;
1439
+ if (!options) return;
1440
+ const selectedNmeth = Array.from(options).find((o) => o.value === option);
1441
+ if (!selectedNmeth) throw `Invalid normalization method: ${option}`;
1442
+ selectedNmeth.selected = true;
1443
+ }
1444
+ };
1445
+
1446
+ // tracks/hic/controls/ControlPanel.ts
1447
+ var ControlPanel = class _ControlPanel {
1448
+ constructor(opts) {
1449
+ this.zoomBlockCallback = (bool) => {
1450
+ const detailView = this.parent("detail");
1451
+ detailView.xBlock.block.zoomblock(2, bool);
1452
+ detailView.yBlock.block.zoomblock(2, bool);
1453
+ };
1454
+ this.minCallback = (v) => {
1455
+ if (Number(v) > Number(this.parent("max"))) {
1456
+ this.error("Min cutoff cannot be greater than max cutoff");
1457
+ } else {
1458
+ this.parent("min", Number(v));
1459
+ this.reColorHeatmap();
1460
+ this.parent("infoBar").update();
1461
+ }
1462
+ };
1463
+ this.maxCallback = (v) => {
1464
+ if (Number(v) < Number(this.parent("min"))) {
1465
+ this.error(`Max cutoff cannot be less than min cutoff`);
1466
+ } else if (Number(v) < 0) {
1467
+ this.error(`Max cutoff cannot be less than 0`);
1468
+ } else {
1469
+ this.parent("max", Number(v));
1470
+ this.reColorHeatmap();
1471
+ this.parent("infoBar").update();
1472
+ }
1473
+ };
1474
+ this.reColorHeatmap = () => {
1475
+ if (this.parent("activeView") == "genome") {
1476
+ const genomeView = this.parent("genome");
1477
+ const chrMatrix = genomeView.viewRender.grid.chromosomeMatrix;
1478
+ if (!chrMatrix) return;
1479
+ for (const map of chrMatrix) {
1480
+ const yMap = map[1];
1481
+ for (const obj of yMap) {
1482
+ const canvasObj = obj[1];
1483
+ if (!canvasObj) continue;
1484
+ for (const [leadpx, followpx, val] of canvasObj.data) {
1485
+ this.colorizeElement.colorizeElement(
1486
+ leadpx,
1487
+ followpx,
1488
+ val,
1489
+ canvasObj,
1490
+ 1,
1491
+ 1,
1492
+ this.parent("min"),
1493
+ this.parent("max"),
1494
+ "genome"
1495
+ );
1496
+ }
1497
+ canvasObj.img.attr("xlink:href", canvasObj.canvas.toDataURL());
1498
+ if (canvasObj.canvas2) {
1499
+ canvasObj.img2.attr("xlink:href", canvasObj.canvas2.toDataURL());
1500
+ }
1501
+ }
1502
+ }
1503
+ } else if (this.parent("activeView") == "chrpair") {
1504
+ const view = this.parent("chrpair");
1505
+ for (const [xCoord, yCoord, val] of view.data) {
1506
+ this.colorizeElement.colorizeElement(
1507
+ xCoord,
1508
+ yCoord,
1509
+ val,
1510
+ view.ctx,
1511
+ view.binpx,
1512
+ view.binpx,
1513
+ this.parent("min"),
1514
+ this.parent("max"),
1515
+ "chrpair"
1516
+ );
1517
+ }
1518
+ } else if (this.parent("activeView") == "detail") {
1519
+ const view = this.parent("detail");
1520
+ for (const [xCoord, yCoord, width, height, value] of view.coords) {
1521
+ this.colorizeElement.colorizeElement(
1522
+ xCoord,
1523
+ yCoord,
1524
+ value,
1525
+ view.ctx,
1526
+ width,
1527
+ height,
1528
+ this.parent("min"),
1529
+ this.parent("max"),
1530
+ "detail"
1531
+ );
1532
+ }
1533
+ }
1534
+ };
1535
+ this.dropdownCallback = (v, prop) => {
1536
+ const state = this.app.getState();
1537
+ this.app.dispatch({
1538
+ type: "view_update",
1539
+ view: state.currView,
1540
+ config: { [prop]: v }
1541
+ });
1542
+ };
1543
+ this.type = _ControlPanel.type;
1544
+ this.controls = {};
1545
+ this.app = opts.app;
1546
+ this.controlsDiv = opts.controlsDiv;
1547
+ this.hic = opts.hic;
1548
+ this.colorizeElement = new ColorizeElement();
1549
+ this.parent = opts.parent;
1550
+ this.error = opts.error;
1551
+ }
1552
+ static {
1553
+ this.type = "controlPanel";
1554
+ }
1555
+ getState(appState) {
1556
+ return appState;
1557
+ }
1558
+ addLabel(tr, text) {
1559
+ return tr.append("td").style("color", "#858585").style("font-size", ".8em").style("vertical-align", text.toUpperCase() == "VIEW" ? "top" : "middle").text(text.toUpperCase());
1560
+ }
1561
+ init() {
1562
+ const state = this.app.getState();
1563
+ 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");
1564
+ let menuVisible = true;
1565
+ 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", () => {
1566
+ menuVisible = !menuVisible;
1567
+ menu.style("display", menuVisible ? "block" : "none");
1568
+ });
1569
+ const menu = menuWrapper.append("div").attr("class", "sjpp-hic-menu").attr("data-testid", "sjpp-hic-menu").style("display", menuVisible ? "block" : "none");
1570
+ const menuTable = menu.append("table").style("border-spacing", "3px");
1571
+ this.controls.normalizationRow = menuTable.append("tr");
1572
+ this.addLabel(this.controls.normalizationRow, "NORMALIZATION");
1573
+ this.controls.nmeth = new NormalizationMethodControl(
1574
+ this.controls.normalizationRow.append("td").attr("class", "sjpp-nmeth-select"),
1575
+ this.hic.normalization,
1576
+ state.defaultNmeth,
1577
+ this.dropdownCallback
1578
+ );
1579
+ this.controls.nmeth.render();
1580
+ this.controls.minCutoffRow = menuTable.append("tr");
1581
+ this.controls.minCutoffLabel = this.addLabel(this.controls.minCutoffRow, "");
1582
+ this.controls.inputBpMinV = new CutoffControl(
1583
+ this.controls.minCutoffRow.append("td"),
1584
+ this.parent("min"),
1585
+ this.minCallback
1586
+ ).render({ width: "120px" });
1587
+ this.controls.maxCutoffRow = menuTable.append("tr");
1588
+ this.controls.maxCutoffLabel = this.addLabel(this.controls.maxCutoffRow, "");
1589
+ this.controls.inputBpMaxV = new CutoffControl(
1590
+ this.controls.maxCutoffRow.append("td"),
1591
+ this.parent("max"),
1592
+ this.maxCallback
1593
+ ).render({ width: "120px" });
1594
+ this.controls.matrixTypeRow = menuTable.append("tr");
1595
+ this.addLabel(this.controls.matrixTypeRow, "matrix type");
1596
+ this.controls.matrixType = new MatrixTypeControl(this.controls.matrixTypeRow.append("td"), this.dropdownCallback);
1597
+ this.controls.matrixType.render();
1598
+ this.controls.widthRow = menuTable.append("tr");
1599
+ this.addLabel(this.controls.widthRow, "WIDTH / height");
1600
+ this.controls.width = this.controls.widthRow.append("td");
1601
+ 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) => {
1602
+ if (event.code != "Enter") return;
1603
+ const v = event.target.value;
1604
+ this.app.dispatch({
1605
+ type: "view_update",
1606
+ config: {
1607
+ settings: { widthHeightPx: Number.parseInt(v) }
1608
+ }
1609
+ });
1610
+ });
1611
+ const viewRow = menuTable.append("tr");
1612
+ this.addLabel(viewRow, "VIEW");
1613
+ const viewBtnDiv = viewRow.append("td");
1614
+ this.controls.view = viewBtnDiv.append("span").attr("data-testid", "sjpp-hic-view-span").style("padding-right", "5px").style("display", "block");
1615
+ 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 () => {
1616
+ await this.app.dispatch({
1617
+ type: "view_create",
1618
+ view: "genome",
1619
+ config: {
1620
+ x: {},
1621
+ y: {}
1622
+ }
1623
+ });
1624
+ });
1625
+ 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 () => {
1626
+ const currState = this.app.getState();
1627
+ await this.app.dispatch({
1628
+ type: "view_create",
1629
+ view: "chrpair",
1630
+ config: {
1631
+ x: {
1632
+ chr: currState.x.chr
1633
+ },
1634
+ y: {
1635
+ chr: currState.y.chr
1636
+ }
1637
+ }
1638
+ });
1639
+ });
1640
+ 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 () => {
1641
+ await this.app.dispatch({
1642
+ type: "view_create",
1643
+ view: "horizontal"
1644
+ });
1645
+ });
1646
+ 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 () => {
1647
+ await this.app.dispatch({
1648
+ type: "view_create",
1649
+ view: "detail"
1650
+ });
1651
+ });
1652
+ this.controls.zoomDiv = menuTable.append("tr").attr("data-testid", "sjpp-hic-zoom-div").style("display", state.currView == "detail" ? "contents" : "none");
1653
+ this.addLabel(this.controls.zoomDiv, "ZOOM");
1654
+ const zoomDiv = this.controls.zoomDiv.append("td");
1655
+ this.controls.zoomIn = zoomDiv.append("button").attr("data-testid", "sjpp-hic-zoom-in-btn").style("margin-right", "10px").text("In").on("click", () => {
1656
+ this.zoomBlockCallback(false);
1657
+ });
1658
+ this.controls.zoomOut = zoomDiv.append("button").attr("data-testid", "sjpp-hic-zoom-out-btn").style("margin-right", "10px").text("Out").on("click", () => {
1659
+ this.zoomBlockCallback(true);
1660
+ });
1661
+ }
1662
+ showBtns() {
1663
+ const state = this.app.getState();
1664
+ this.controls.genomeViewBtn.style("display", state.currView === "genome" ? "none" : "inline-block");
1665
+ if (state.currView === "detail") {
1666
+ this.controls.chrpairViewBtn.html(`&#8810; Entire ${state.x.chr}-${state.y.chr}`).style("display", "block");
1667
+ this.controls.horizontalViewBtn.style("display", "block");
1668
+ this.controls.zoomDiv.style("display", "contents");
1669
+ this.controls.detailViewBtn.style("display", "none");
1670
+ } else if (state.currView === "horizontal") {
1671
+ this.controls.chrpairViewBtn.html(`&#8810; Entire ${state.x.chr}-${state.y.chr}`).style("display", "block");
1672
+ this.controls.detailViewBtn.style("display", "block");
1673
+ this.controls.horizontalViewBtn.style("display", "none");
1674
+ this.controls.zoomDiv.style("display", "none");
1675
+ } else {
1676
+ this.controls.chrpairViewBtn.style("display", "none");
1677
+ this.controls.horizontalViewBtn.style("display", "none");
1678
+ this.controls.detailViewBtn.style("display", "none");
1679
+ this.controls.zoomDiv.style("display", "none");
1680
+ this.controls.widthRow.style("display", "none");
1681
+ }
1682
+ }
1683
+ showHideControls() {
1684
+ const state = this.app.getState();
1685
+ this.controls.normalizationRow.style("display", state.currView == "horizontal" ? "none" : "");
1686
+ this.controls.minCutoffRow.style("display", state.currView == "horizontal" ? "none" : "");
1687
+ this.controls.maxCutoffRow.style("display", state.currView == "horizontal" ? "none" : "");
1688
+ this.controls.matrixTypeRow.style("display", state.currView == "horizontal" ? "none" : "");
1689
+ this.controls.widthRow.style("display", state.currView == "detail" ? "contents" : "none");
1690
+ }
1691
+ main(appState) {
1692
+ const state = this.app.getState(appState);
1693
+ this.controls.nmeth.update(state[state.currView].nmeth);
1694
+ this.controls.matrixType.update(state[state.currView].matrixType);
1695
+ this.controls.zoomDiv.style("display", state.currView == "detail" ? "contents" : "none");
1696
+ if (state.currView == "chrpair") {
1697
+ this.controls.view.text(`${state.x.chr}-${state.y.chr} Pair`);
1698
+ } else {
1699
+ this.controls.view.text(state.currView.charAt(0).toUpperCase() + state.currView.slice(1));
1700
+ }
1701
+ const formatAbsMin = this.parent("absMin") < 1e-5 ? Number(this.parent("absMin")).toExponential(1) : Number(this.parent("absMin").toFixed(6));
1702
+ const formatAbsMax = this.parent("absMax") < 1e-5 ? Number(this.parent("absMax")).toExponential(1) : Number(this.parent("absMax").toFixed(6));
1703
+ this.controls.width.select("input").property("value", state.settings.widthHeightPx);
1704
+ this.controls.inputBpMinV.property("value", this.parent("min"));
1705
+ this.controls.inputBpMaxV.property("value", this.parent("max"));
1706
+ this.controls.minCutoffLabel.html(`MIN CUTOFF <br>(>= ${formatAbsMin})`);
1707
+ this.controls.maxCutoffLabel.html(`MAX CUTOFF <br>(<= ${formatAbsMax})`);
1708
+ this.showBtns();
1709
+ this.showHideControls();
1710
+ }
1711
+ };
1712
+ var controlPanelInit = getCompInit(ControlPanel);
1713
+
1714
+ // tracks/hic/dom/InfoBar.ts
1715
+ var InfoBar = class {
1716
+ constructor(opts) {
1717
+ /** Defaults **/
1718
+ //Color shown on the left of the color scale
1719
+ this.startColor = "white";
1720
+ //Color shown on the right of the color scale
1721
+ this.endColor = "red";
1722
+ this.addLabel = (text) => {
1723
+ 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());
1724
+ };
1725
+ this.addValue = (text) => {
1726
+ 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);
1727
+ };
1728
+ this.type = "infoBar";
1729
+ this.app = opts.app;
1730
+ this.hic = opts.hic;
1731
+ const table = opts.infoBarDiv;
1732
+ this.labelRow = table.append("tr");
1733
+ this.valueRow = table.append("tr");
1734
+ this.parent = opts.parent;
1735
+ }
1736
+ async render() {
1737
+ this.addLabel("Version");
1738
+ this.addValue(this.hic.version);
1739
+ this.addLabel("Enzyme");
1740
+ this.addValue(this.hic.enzyme || "N/A");
1741
+ this.addLabel("Resolution");
1742
+ this.resolutionDiv = this.addValue("");
1743
+ this.colorScaleLabel = this.addLabel("Scale");
1744
+ this.colorScaleDiv = this.valueRow.append("td").attr("data-testid", "sjpp-hic-color-scale");
1745
+ const min = this.parent("min");
1746
+ let max = this.parent("max");
1747
+ if (min == max) max = max + 0.01;
1748
+ this.colorScale = new ColorScale({
1749
+ barheight: 20,
1750
+ barwidth: 100,
1751
+ domain: [min, max],
1752
+ fontSize: 12,
1753
+ height: 40,
1754
+ width: 150,
1755
+ holder: this.colorScaleDiv,
1756
+ colors: [this.startColor, this.endColor],
1757
+ position: "20,0",
1758
+ ticks: 3,
1759
+ tickSize: 5,
1760
+ //Do not use min value here on initialization. It's 0 and will not update later.
1761
+ markedValue: 1
1762
+ });
1763
+ }
1764
+ update() {
1765
+ const res = this.parent("calcResolution");
1766
+ let resolutionText;
1767
+ if (res < this.hic.bpresolution[this.hic.bpresolution.length - 1]) {
1768
+ resolutionText = `${res} fragment${res > 1 ? "s" : ""}`;
1769
+ } else {
1770
+ resolutionText = bplen(res);
1771
+ }
1772
+ this.resolutionDiv.text(resolutionText);
1773
+ if (this.parent("state").currView == "horizontal") {
1774
+ this.colorScaleLabel.style("display", "none");
1775
+ this.colorScaleDiv.style("display", "none");
1776
+ } else {
1777
+ this.colorScaleLabel.style("display", "");
1778
+ this.colorScaleDiv.style("display", "");
1779
+ const min = this.parent("min");
1780
+ const max = this.parent("max");
1781
+ if (min < 0) {
1782
+ this.colorScale.colors = ["blue", "white", "red"];
1783
+ this.colorScale.domain = [min, 0, max];
1784
+ } else {
1785
+ this.colorScale.colors = ["white", "red"];
1786
+ this.colorScale.domain = [0, max];
1787
+ }
1788
+ this.colorScale.markedValue = min;
1789
+ this.colorScale.updateScale();
1790
+ }
1791
+ }
1792
+ };
1793
+
1794
+ // tracks/hic/data/DataMapper.ts
1795
+ var DataMapper = class {
1796
+ constructor(hic, percentile) {
1797
+ this.hic = hic;
1798
+ this.percentile = percentile ? percentile / 100 : 0.99;
1799
+ }
1800
+ sortData(data) {
1801
+ const vlst = [];
1802
+ if (data?.items && data?.items.length) {
1803
+ for (const i of data.items) {
1804
+ vlst.push(i[2]);
1805
+ }
1806
+ } else {
1807
+ const blankChrs = /* @__PURE__ */ new Set();
1808
+ for (const d of data) {
1809
+ if (d.lead == "chrM" && !d.items.length || d.lead == "chrY" && !d.items.length) {
1810
+ blankChrs.add(d.lead);
1811
+ continue;
1812
+ }
1813
+ for (const i of d.items) {
1814
+ vlst.push(i[2]);
1815
+ }
1816
+ }
1817
+ if (blankChrs.size) {
1818
+ for (const c of blankChrs) {
1819
+ const idx = this.hic.chrlst.indexOf(c);
1820
+ this.hic.chrlst.splice(idx, 1);
1821
+ }
1822
+ }
1823
+ }
1824
+ const sortedVlst = vlst.sort((a, b) => a - b);
1825
+ const max = sortedVlst[Math.floor(sortedVlst.length * this.percentile)];
1826
+ const min = sortedVlst[0];
1827
+ return [min, max, sortedVlst[sortedVlst.length - 1]];
1828
+ }
1829
+ };
1830
+
1831
+ // tracks/hic/data/GenomeDataFetcher.ts
1832
+ var GenomeDataFetcher = class {
1833
+ constructor(hic, debugmode, errList = []) {
1834
+ this.data = [];
1835
+ this.hic = hic;
1836
+ this.debugmode = debugmode;
1837
+ this.errList = errList || [];
1838
+ }
1839
+ async getData(obj) {
1840
+ if (this.data.length) this.data = [];
1841
+ if (!obj?.matrixType) obj.matrixType = "observed";
1842
+ try {
1843
+ const res = await dofetch3("hicgenome?", {
1844
+ method: "POST",
1845
+ body: JSON.stringify({
1846
+ chrlst: this.hic.chrlst,
1847
+ nmeth: obj.nmeth,
1848
+ resolution: obj.resolution,
1849
+ matrixType: obj.matrixType,
1850
+ file: this.hic.file,
1851
+ url: this.hic.url,
1852
+ nochr: this.hic.nochr
1853
+ })
1854
+ });
1855
+ if (res.error) {
1856
+ const errs = res.error.split("\n");
1857
+ for (const e of errs) {
1858
+ this.errList.push(e);
1859
+ }
1860
+ }
1861
+ return res.data;
1862
+ } catch (e) {
1863
+ this.errList.push(e.message || e);
1864
+ if (e.stack) console.error(e.stack);
1865
+ }
1866
+ }
1867
+ };
1868
+
1869
+ // tracks/hic/data/DataFetcher.ts
1870
+ var DataFetcher = class {
1871
+ constructor(hic, debugmode, errList = []) {
1872
+ this.hic = hic;
1873
+ this.debugmode = debugmode;
1874
+ this.errList = errList || [];
1875
+ }
1876
+ async getData(obj) {
1877
+ if (!obj?.matrixType) obj.matrixType = "observed";
1878
+ const arg = {
1879
+ matrixType: obj.matrixType,
1880
+ file: this.hic.file,
1881
+ url: this.hic.url,
1882
+ pos1: this.hic.nochr ? obj.lead.replace("chr", "") : obj.lead,
1883
+ pos2: this.hic.nochr ? obj.follow.replace("chr", "") : obj.follow,
1884
+ nmeth: obj.nmeth,
1885
+ resolution: obj.resolution
1886
+ };
1887
+ try {
1888
+ const data = await dofetch3("hicdata?", {
1889
+ method: "POST",
1890
+ body: JSON.stringify(arg)
1891
+ });
1892
+ if (data.error) {
1893
+ throw Error(`${obj.lead} - ${obj.follow}: ${data.error.error}`);
1894
+ }
1895
+ if (!data.items || data.items.length == 0) return;
1896
+ return data;
1897
+ } catch (e) {
1898
+ this.errList.push(e.message || e);
1899
+ if (e.stack) console.error(e.stack);
1900
+ }
1901
+ }
1902
+ };
1903
+
1904
+ // tracks/hic/HicComponent.ts
1905
+ var HicComponent = class _HicComponent {
1906
+ constructor(opts) {
1907
+ this.genomeData = [];
1908
+ this.calcResolution = null;
1909
+ this.firstRender = true;
1910
+ this.min = 0;
1911
+ this.absMin = 0;
1912
+ this.max = 0;
1913
+ this.absMax = 0;
1914
+ this.hasStatePreMain = true;
1915
+ this.type = _HicComponent.type;
1916
+ this.hic = opts.hic;
1917
+ this.state = opts.state;
1918
+ this.dom = opts.dom;
1919
+ this.errList = opts.errList;
1920
+ this.plotDiv = this.dom.plotDiv.append("table").classed("sjpp-hic-plot-main", true);
1921
+ const tr1 = this.plotDiv.append("tr");
1922
+ const tr2 = this.plotDiv.append("tr");
1923
+ this.plotDiv = {
1924
+ plot: tr1.append("td").classed("sjpp-hic-plot", true).attr("data-testid", "sjpp-hic-plot"),
1925
+ yAxis: tr1.append("td").classed("sjpp-hic-plot-yaxis", true).attr("data-testid", "sjpp-hic-yaxis"),
1926
+ xAxis: tr2.append("td").classed("sjpp-hic-plot-xaxis", true).attr("data-testid", "sjpp-hic-xaxis"),
1927
+ blank: tr2.append("td")
1928
+ };
1929
+ this.app = opts.app;
1930
+ this.dataMapper = new DataMapper(this.hic, opts.state.maxCutoffPercentile);
1931
+ this.activeView = this.state.currView;
1932
+ this.error = opts.error;
1933
+ this.resolution = new Resolution(this.error);
1934
+ this.parent = (prop) => {
1935
+ return this[prop];
1936
+ };
1937
+ this.detailDataMapper = new DetailDataMapper(this.hic, this.errList, this.parent);
1938
+ }
1939
+ static {
1940
+ this.type = "view";
1941
+ }
1942
+ getState(appState) {
1943
+ return appState;
1944
+ }
1945
+ reactsTo(action) {
1946
+ if (action.type.startsWith("view")) return true;
1947
+ else return false;
1948
+ }
1949
+ initView() {
1950
+ const opts = {
1951
+ plotDiv: this.plotDiv,
1952
+ hic: this.hic,
1953
+ app: this.app,
1954
+ parent: (prop) => {
1955
+ return this[prop];
1956
+ }
1957
+ };
1958
+ if (this.state.currView == "genome") {
1959
+ opts["data"] = this.data;
1960
+ this.genome = new GenomeView(opts);
1961
+ this.genome.render();
1962
+ } else if (this.state.currView === "chrpair") {
1963
+ opts["items"] = this.data;
1964
+ this.chrpair = new ChrPairView(opts);
1965
+ this.chrpair.render();
1966
+ } else if (this.state.currView === "detail") {
1967
+ opts["data"] = this.data;
1968
+ this.detail = new DetailView(opts);
1969
+ this.detail.render();
1970
+ } else if (this.state.currView === "horizontal") {
1971
+ this.horizontal = new HorizontalView(opts);
1972
+ this.horizontal.render();
1973
+ } else {
1974
+ throw Error(`Unknown view: ${this.state.currView}`);
1975
+ }
1976
+ }
1977
+ async fetchData(obj) {
1978
+ if (this.data?.length) this.data = [];
1979
+ if (this.state.currView == "genome") {
1980
+ if (this.activeView != "genome" && this.genomeData?.length) this.data = this.genomeData;
1981
+ else {
1982
+ const genomeFetcher = new GenomeDataFetcher(this.hic, true, this.errList);
1983
+ this.genomeData = await genomeFetcher.getData(obj);
1984
+ this.data = this.genomeData;
1985
+ }
1986
+ } else if (this.state.currView == "detail") {
1987
+ this.data = await this.detailDataMapper.getData(this.state.x, this.state.y, this.fragData);
1988
+ } else {
1989
+ if (!this.state?.x?.chr || !this.state?.y?.chr) {
1990
+ this.errList.push(`No positions provided for ${this.activeView} view.`);
1991
+ return;
1992
+ } else {
1993
+ const chrx = this.state.x;
1994
+ const chry = this.state.y;
1995
+ obj["lead"] = `${chrx.start && chrx.stop ? `${chrx.chr}:${chrx.start}-${chrx.stop}` : chrx.chr}`;
1996
+ obj["follow"] = `${chry.start && chry.stop ? `${chry.chr}:${chry.start}-${chry.stop}` : chry.chr}`;
1997
+ }
1998
+ const dataFetcher = new DataFetcher(this.hic, true, this.errList);
1999
+ this.data = await dataFetcher.getData(obj);
2000
+ }
2001
+ }
2002
+ async setResolution(appState) {
2003
+ const state = this.app.getState(appState);
2004
+ this.calcResolution = this.resolution.getResolution(state, this.hic);
2005
+ if (state.currView == "detail" && this.calcResolution == null) {
2006
+ await this.detailDataMapper.getFragData(state.x, state.y);
2007
+ this.fragData = this.detailDataMapper.frag;
2008
+ const maxFragSpan = Math.min(
2009
+ this.fragData.x.stop - this.fragData.x.start,
2010
+ this.fragData.y.stop - this.fragData.y.start
2011
+ );
2012
+ this.calcResolution = this.resolution.findResFromArray(
2013
+ maxFragSpan,
2014
+ state.minFragSpan,
2015
+ this.hic.fragresolution,
2016
+ true
2017
+ );
2018
+ } else {
2019
+ this.fragData = null;
2020
+ }
2021
+ return this.calcResolution;
2022
+ }
2023
+ async setDataArgs(appState) {
2024
+ const state = this.app.getState(appState);
2025
+ const currView = state[state.currView];
2026
+ const args = {
2027
+ nmeth: currView.nmeth,
2028
+ resolution: await this.setResolution(appState),
2029
+ matrixType: currView.matrixType
2030
+ };
2031
+ if (state.currView == "chrpair") {
2032
+ args["lead"] = state.x.chr;
2033
+ args["follow"] = state.y.chr;
2034
+ }
2035
+ return args;
2036
+ }
2037
+ async getViewData(appState) {
2038
+ const args = await this.setDataArgs(appState);
2039
+ await this.fetchData(args);
2040
+ if (this.data?.length > 0 || this.data?.items?.length > 0) {
2041
+ const [min, max, absMax] = this.dataMapper.sortData(this.data);
2042
+ this.min = this.absMin = min;
2043
+ this.max = max;
2044
+ this.absMax = absMax;
2045
+ } else {
2046
+ if (this.state.currView != "genome") {
2047
+ const state = this.app.getState(appState);
2048
+ const xPosMessage = state.x?.start ? `${state.x.chr}:${state.x.start}-${state.x.stop}` : state.x.chr;
2049
+ const yPosMessage = state.y?.start ? `${state.y.chr}:${state.y.start}-${state.y.stop}` : state.y.chr;
2050
+ this.errList.push(`No data returned for ${xPosMessage} and ${yPosMessage}`);
2051
+ }
2052
+ }
2053
+ }
2054
+ async init() {
2055
+ this.components = {
2056
+ controls: await controlPanelInit({
2057
+ app: this.app,
2058
+ controlsDiv: this.dom.controlsDiv,
2059
+ hic: this.hic,
2060
+ parent: (prop, value) => {
2061
+ if (value) this[prop] = value;
2062
+ return this[prop];
2063
+ },
2064
+ error: this.error.bind(this)
2065
+ })
2066
+ };
2067
+ this.infoBar = new InfoBar({
2068
+ app: this.app,
2069
+ infoBarDiv: this.dom.infoBarDiv.append("table").style("border-spacing", "3px"),
2070
+ hic: this.hic,
2071
+ parent: (prop) => {
2072
+ return this[prop];
2073
+ }
2074
+ });
2075
+ this.infoBar.render();
2076
+ }
2077
+ async main(appState) {
2078
+ if (this.errList.length) {
2079
+ this.app.dispatch({ type: "loading_active", active: false });
2080
+ return;
2081
+ }
2082
+ const state = this.app.getState(appState);
2083
+ if (this.firstRender == true) {
2084
+ this.firstRender = false;
2085
+ await this.getViewData(appState);
2086
+ this.initView();
2087
+ } else {
2088
+ if (state.currView != "horizontal") {
2089
+ this.app.dispatch({ type: "loading_active", active: true });
2090
+ await this.getViewData(appState);
2091
+ }
2092
+ if (this.activeView != state.currView) {
2093
+ if (this.activeView == "genome") {
2094
+ this.genome.svg.remove();
2095
+ } else {
2096
+ this.plotDiv.xAxis.selectAll("*").remove();
2097
+ this.plotDiv.yAxis.selectAll("*").remove();
2098
+ this.plotDiv.plot.selectAll("*").remove();
2099
+ }
2100
+ this.activeView = state.currView;
2101
+ this.initView();
2102
+ } else {
2103
+ this[state.currView].update(this.data);
2104
+ }
2105
+ }
2106
+ this.infoBar.update();
2107
+ if (this.errList.length) {
2108
+ this.error(this.errList);
2109
+ this.app.dispatch({ type: "loading_active", active: false });
2110
+ }
2111
+ }
2112
+ };
2113
+ var viewCompInit = getCompInit(HicComponent);
2114
+
2115
+ // tracks/hic/HicApp.ts
2116
+ var HicApp = class _HicApp extends AppBase {
2117
+ constructor(opts) {
2118
+ super(opts);
2119
+ this.views = ["genome", "chrpair", "detail", "horizontal"];
2120
+ this.errList = [];
2121
+ /** Required for rx but not in use */
2122
+ this.wasDestroyed = false;
2123
+ this.type = _HicApp.type;
2124
+ this.hic = {
2125
+ enzyme: opts.enzyme,
2126
+ file: opts.file,
2127
+ url: opts.url,
2128
+ genome: opts.genome,
2129
+ holder: opts.holder,
2130
+ hostUrl: opts.hostUrl,
2131
+ jwt: opts.jwt,
2132
+ position1: opts.position1,
2133
+ position2: opts.position2,
2134
+ maxCutoffPercentile: opts.maxCutoffPercentile,
2135
+ name: "name" in opts ? opts.name : "Hi-C",
2136
+ tklist: "tklst" in opts ? opts.tklst : [],
2137
+ state: "state" in opts ? opts.state : {}
2138
+ };
2139
+ this.dom = {
2140
+ errorDiv: opts.holder.append("div").classed("sjpp-hic-error", true),
2141
+ controlsDiv: opts.holder.append("div").classed("sjpp-hic-controls", true).style("display", "inline-block"),
2142
+ 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"),
2143
+ loadingDiv: select_default("body").append("div").attr("id", "sjpp-loading-overlay"),
2144
+ plotDiv: opts.holder.append("div").classed("sjpp-hic-main", true).style("display", "inline-block"),
2145
+ tip: new Menu()
2146
+ };
2147
+ }
2148
+ static {
2149
+ this.type = "app";
2150
+ }
2151
+ async error(err) {
2152
+ if (err && typeof err == "string") this.errList.push(err);
2153
+ showErrorsWithCounter(this.errList, this.dom.errorDiv);
2154
+ this.errList = [];
2155
+ }
2156
+ determineView() {
2157
+ if (!this.hic.position1 && !this.hic.position2 && !this.hic.state.currView) this.hic.state.currView = "genome";
2158
+ if (!this.hic.position1 && this.hic.position2) this.errList.push("Missing first position");
2159
+ if (this.hic.position1 && !this.hic.position2) this.errList.push("Missing second position");
2160
+ if (this.hic.position1 && this.hic.position2) {
2161
+ const pos1 = this.hic.position1.split(/[:-]/);
2162
+ const pos2 = this.hic.position2.split(/[:-]/);
2163
+ this.hic.state.x = { chr: pos1[0] };
2164
+ this.hic.state.y = { chr: pos2[0] };
2165
+ if (!Number.isNaN(+pos1[1]) && !Number.isNaN(+pos1[2])) {
2166
+ this.hic.state.x.start = +pos1[1];
2167
+ this.hic.state.x.stop = +pos1[2];
2168
+ this.hic.state.y.start = +pos2[1];
2169
+ this.hic.state.y.stop = +pos2[2];
2170
+ this.hic.state.currView = "detail";
2171
+ } else {
2172
+ this.hic.state.currView = "chrpair";
2173
+ }
2174
+ } else {
2175
+ if (!this.views.some((v) => v === this.hic.state.currView)) this.error(`Unknown view: ${this.hic.state.currView}`);
2176
+ else return this.hic.state.currView;
2177
+ }
2178
+ }
2179
+ getViewsConfig() {
2180
+ if (this.hic.maxCutoffPercentile) this.hic.state.maxCutoffPercentile = this.hic.maxCutoffPercentile;
2181
+ let nmeth;
2182
+ if (this.hic["normalization"]?.length > 0) {
2183
+ if (!this.hic["normalization"].includes("NONE")) this.hic["normalization"].unshift("NONE");
2184
+ nmeth = this.hic["normalization"][0];
2185
+ } else {
2186
+ nmeth = "NONE";
2187
+ }
2188
+ if (this.hic.state.currView) {
2189
+ if (!this.hic.state[this.hic.state.currView]) this.hic.state[this.hic.state.currView] = {};
2190
+ if (!this.hic.state[this.hic.state.currView]?.matrixType) {
2191
+ this.hic.state[this.hic.state.currView].matrixType = "observed";
2192
+ }
2193
+ if (!this.hic.state[this.hic.state.currView]?.nmeth) {
2194
+ this.hic.state[this.hic.state.currView].nmeth = nmeth;
2195
+ }
2196
+ }
2197
+ for (const v of this.views) {
2198
+ if (!this.hic.state[v]) {
2199
+ this.hic.state[v] = {
2200
+ matrixType: "observed",
2201
+ nmeth
2202
+ };
2203
+ }
2204
+ }
2205
+ }
2206
+ async init() {
2207
+ this.determineView();
2208
+ try {
2209
+ await hicParseFile(this.hic, true, this.errList);
2210
+ this.getViewsConfig();
2211
+ this.store = await hicStoreInit({ app: this.api, state: this.hic.state });
2212
+ this.state = await this.store.copyState();
2213
+ this.components = {
2214
+ loadingOverlay: await loadingInit({
2215
+ app: this.api,
2216
+ loadingDiv: this.dom.loadingDiv
2217
+ }),
2218
+ view: await viewCompInit({
2219
+ app: this.api,
2220
+ state: this.state,
2221
+ dom: this.dom,
2222
+ hic: this.hic,
2223
+ errList: this.errList,
2224
+ error: this.error
2225
+ })
2226
+ };
2227
+ await this.api.dispatch();
2228
+ } catch (e) {
2229
+ console.error(e.stack || e);
2230
+ }
2231
+ }
2232
+ main() {
2233
+ if (this.errList.length) {
2234
+ this.error(this.errList);
2235
+ this.dom.loadingDiv.style("display", "none");
2236
+ return;
2237
+ }
2238
+ }
2239
+ };
2240
+ var hicInit = getAppInit(HicApp);
2241
+ export {
2242
+ hicInit
2243
+ };
2244
+ //# sourceMappingURL=HicApp-PCNOUULF.js.map