@sjcrh/proteinpaint-client 2.207.1 → 2.209.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (940) hide show
  1. package/dist/2dmaf-VTMPVZGT.js +1367 -0
  2. package/dist/AggMatrixInput-CH3RQ2QC.js +406 -0
  3. package/dist/AggMatrixInput-CH3RQ2QC.js.map +7 -0
  4. package/dist/AggregateMatrix-DPCHUOMF.js +41 -0
  5. package/dist/AppHeader-RA7T467G.js +830 -0
  6. package/dist/BoxPlot-7Q7SMT26.js +1211 -0
  7. package/dist/CorrelationVolcano-YV4UHOAX.js +617 -0
  8. package/dist/CorrelationVolcano-YV4UHOAX.js.map +7 -0
  9. package/dist/Cuminc-ZN53C3MD.js +1219 -0
  10. package/dist/DE-BEWW5AIG.js +89 -0
  11. package/dist/DEinput-SJITUJF2.js +499 -0
  12. package/dist/DM-2LBNE4WE.js +90 -0
  13. package/dist/DifferentialAnalysis-WE4LBHEF.js +239 -0
  14. package/dist/DifferentialAnalysis-WE4LBHEF.js.map +7 -0
  15. package/dist/Disco-PTZQF7IM.js +3389 -0
  16. package/dist/Disco.UI-NBR67N5M.js +243 -0
  17. package/dist/DmrPlot-QROLI66S.js +362 -0
  18. package/dist/DmrPlot-QROLI66S.js.map +7 -0
  19. package/dist/GB-FEBSFX5U.js +1428 -0
  20. package/dist/GB-FEBSFX5U.js.map +7 -0
  21. package/dist/GSEA-KOXOVC5V.js +875 -0
  22. package/dist/GSEA-KOXOVC5V.js.map +7 -0
  23. package/dist/GeneExpInput-DYBK54HC.js +42 -0
  24. package/dist/Geomap-QRD2WZVL.js +84 -0
  25. package/dist/HicApp-VKET4QHD.js +2245 -0
  26. package/dist/IDCViewer-RLLTXGD7.js +10812 -0
  27. package/dist/NumBinaryEditor-GYHOYPQL.js +279 -0
  28. package/dist/NumBinaryEditor.unit.spec-E2HKBWOO.js +312 -0
  29. package/dist/NumContEditor-3V76ZSEY.js +105 -0
  30. package/dist/NumContEditor.unit.spec-RTT5Q5E5.js +164 -0
  31. package/dist/NumCustomBinEditor-O5DMPY7H.js +33 -0
  32. package/dist/NumCustomBinEditor.unit.spec-5LZBP2JL.js +397 -0
  33. package/dist/NumDiscreteEditor-DFOJ7AIH.js +170 -0
  34. package/dist/NumDiscreteEditor.unit.spec-PPJGEBFX.js +233 -0
  35. package/dist/NumRegularBinEditor-O6RDO32C.js +33 -0
  36. package/dist/NumRegularBinEditor.unit.spec-GOB3BF25.js +278 -0
  37. package/dist/NumSplineEditor-PUXJF2RW.js +210 -0
  38. package/dist/NumSplineEditor.unit.spec-4VOAAMOU.js +224 -0
  39. package/dist/NumericDensity-E6MH2THZ.js +33 -0
  40. package/dist/NumericDensity.unit.spec-IRPFBQUS.js +418 -0
  41. package/dist/NumericHandler-42RR54X3.js +34 -0
  42. package/dist/NumericHandler.unit.spec-YYOO7XVT.js +214 -0
  43. package/dist/ProteomeInput-4N2G6IFX.js +388 -0
  44. package/dist/Regression-LIWUWAGQ.js +1416 -0
  45. package/dist/Regression-LIWUWAGQ.js.map +7 -0
  46. package/dist/RunChart2-VAX5JGZY.js +749 -0
  47. package/dist/SC-UHBZ3HRO.js +1183 -0
  48. package/dist/SC-UHBZ3HRO.js.map +7 -0
  49. package/dist/Violin-V23VZR6B.js +1081 -0
  50. package/dist/Violin-V23VZR6B.js.map +7 -0
  51. package/dist/Volcano-64S4AW66.js +2443 -0
  52. package/dist/Volcano-64S4AW66.js.map +7 -0
  53. package/dist/Wsi-FOJCKDCP.js +629 -0
  54. package/dist/Wsi-FOJCKDCP.js.map +7 -0
  55. package/dist/adSandbox-CLMUYNC3.js +33 -0
  56. package/dist/animatedBubbleChart-GMLNYTQC.js +547 -0
  57. package/dist/app-2SFDRDN2.js +32 -0
  58. package/dist/app-QOZ36UR4.js +42 -0
  59. package/dist/app.js +14 -14
  60. package/dist/bam-LLAK7FVG.js +876 -0
  61. package/dist/barchart-SEC6VKQ2.js +42 -0
  62. package/dist/barchart2-D4FXZCTU.js +309 -0
  63. package/dist/block-XGK6TEGH.js +6250 -0
  64. package/dist/block-XGK6TEGH.js.map +7 -0
  65. package/dist/block.init-UMRCAKCF.js +33 -0
  66. package/dist/block.mds.expressionrank-LFPJ52SX.js +354 -0
  67. package/dist/block.mds.geneboxplot-2QIEN6AH.js +823 -0
  68. package/dist/block.mds.junction-Z4HUFSG2.js +1539 -0
  69. package/dist/block.mds.svcnv-3GXGY6ET.js +6796 -0
  70. package/dist/block.svg-7RCJLMAP.js +159 -0
  71. package/dist/block.tk.aicheck-5N6EGZ6F.js +278 -0
  72. package/dist/block.tk.ase-V3AJRYT6.js +360 -0
  73. package/dist/block.tk.bam-W6QOVVEU.js +1901 -0
  74. package/dist/block.tk.bedgraphdot-FKTPJZTH.js +379 -0
  75. package/dist/block.tk.bigwig.ui-Y3M2TDM2.js +206 -0
  76. package/dist/block.tk.hicstraw-3SWYTMFQ.js +818 -0
  77. package/dist/block.tk.junction-OXB22PDS.js +2358 -0
  78. package/dist/block.tk.junction.textmatrixui-PWBLRGCO.js +194 -0
  79. package/dist/block.tk.ld-NTRJL5GA.js +94 -0
  80. package/dist/block.tk.menu-JIHSGGIO.js +1024 -0
  81. package/dist/block.tk.pgv-4Q6CY6QN.js +938 -0
  82. package/dist/brainImaging-MBI4XTTU.js +555 -0
  83. package/dist/brainRegions-YVTAESRP.js +217 -0
  84. package/dist/bubbleHeatmap-ZKTA3AIG.js +378 -0
  85. package/dist/cellTypeBubbleHeatmap-GJZNXDG4.js +278 -0
  86. package/dist/chunk-2PDBU42F.js +4375 -0
  87. package/dist/chunk-2PDBU42F.js.map +7 -0
  88. package/dist/chunk-2RMSV4BS.js +6360 -0
  89. package/dist/chunk-33BE7AYS.js +299 -0
  90. package/dist/chunk-3FEP6B5T.js +119 -0
  91. package/dist/chunk-3XBG5HIV.js +424 -0
  92. package/dist/chunk-3XBG5HIV.js.map +7 -0
  93. package/dist/chunk-4G73CMUL.js +38 -0
  94. package/dist/chunk-5FRETII3.js +281 -0
  95. package/dist/chunk-5LYVIIYR.js +170 -0
  96. package/dist/chunk-6FG6JFZP.js +339 -0
  97. package/dist/chunk-6G45AUSV.js +237 -0
  98. package/dist/chunk-6G45AUSV.js.map +7 -0
  99. package/dist/chunk-6LDKSKYQ.js +70 -0
  100. package/dist/chunk-7FFTAYT4.js +272 -0
  101. package/dist/chunk-7GDRMBNO.js +339 -0
  102. package/dist/chunk-A2UUXYH6.js +1986 -0
  103. package/dist/chunk-AFQKYV4D.js +2853 -0
  104. package/dist/chunk-ANACCKCQ.js +276 -0
  105. package/dist/chunk-AR3HXZIW.js +562 -0
  106. package/dist/chunk-AVCEHJG7.js +446 -0
  107. package/dist/chunk-AVCIZWH5.js +692 -0
  108. package/dist/chunk-AVCIZWH5.js.map +7 -0
  109. package/dist/chunk-B6UXFX73.js +178 -0
  110. package/dist/chunk-B6UXFX73.js.map +7 -0
  111. package/dist/chunk-BCCFJYPE.js +54 -0
  112. package/dist/chunk-BCCFJYPE.js.map +7 -0
  113. package/dist/chunk-BG3SGGVB.js +134 -0
  114. package/dist/chunk-C3HEDQPT.js +24921 -0
  115. package/dist/chunk-C3HEDQPT.js.map +7 -0
  116. package/dist/chunk-CFZ2ZW3E.js +382 -0
  117. package/dist/chunk-CKOU3P27.js +26 -0
  118. package/dist/chunk-CN6KJORZ.js +397 -0
  119. package/dist/chunk-CYWEYHJQ.js +203 -0
  120. package/dist/chunk-D5ETVOOE.js +158 -0
  121. package/dist/chunk-DANF4CC5.js +102 -0
  122. package/dist/chunk-DNCFJTPI.js +1339 -0
  123. package/dist/chunk-FNW6BKOA.js +480 -0
  124. package/dist/chunk-FR5USNAT.js +54 -0
  125. package/dist/chunk-FSLOUTTK.js +37 -0
  126. package/dist/chunk-FSLOUTTK.js.map +7 -0
  127. package/dist/chunk-GYE6FU7P.js +626 -0
  128. package/dist/chunk-IEIGHCZS.js +1278 -0
  129. package/dist/chunk-J5GQGWYX.js +1731 -0
  130. package/dist/chunk-J5GQGWYX.js.map +7 -0
  131. package/dist/chunk-JMDUO47F.js +5071 -0
  132. package/dist/chunk-JTANDSTD.js +54 -0
  133. package/dist/chunk-JTQPPUDG.js +379 -0
  134. package/dist/chunk-K32DV4QI.js +302 -0
  135. package/dist/chunk-K77W4SSI.js +98 -0
  136. package/dist/chunk-KEHVNCFK.js +102 -0
  137. package/dist/chunk-MMKSXXU2.js +55 -0
  138. package/dist/chunk-NDOKW2HJ.js +31 -0
  139. package/dist/chunk-NGMM2MNC.js +518 -0
  140. package/dist/chunk-OASGOTRM.js +80 -0
  141. package/dist/chunk-OASGOTRM.js.map +7 -0
  142. package/dist/chunk-OBDIJ4QS.js +2146 -0
  143. package/dist/chunk-OBDIJ4QS.js.map +7 -0
  144. package/dist/chunk-OEBGQKQR.js +2676 -0
  145. package/dist/chunk-OI5KBFBE.js +468 -0
  146. package/dist/chunk-OWEBE64A.js +243 -0
  147. package/dist/chunk-P7X4LDW4.js +783 -0
  148. package/dist/chunk-Q4HTEL2O.js +56 -0
  149. package/dist/chunk-Q4HTEL2O.js.map +7 -0
  150. package/dist/chunk-QD75Q5LM.js +59 -0
  151. package/dist/chunk-QGH5BM2D.js +141 -0
  152. package/dist/chunk-QSOFGLWZ.js +240 -0
  153. package/dist/chunk-QXDGIQYA.js +217 -0
  154. package/dist/chunk-R2QE6ROO.js +176 -0
  155. package/dist/chunk-RMHUDMZ7.js +103 -0
  156. package/dist/chunk-SB36AUG7.js +1614 -0
  157. package/dist/chunk-SB36AUG7.js.map +7 -0
  158. package/dist/chunk-SXB4IZQ7.js +123 -0
  159. package/dist/chunk-T6Q76PDN.js +182 -0
  160. package/dist/chunk-T6Q76PDN.js.map +7 -0
  161. package/dist/chunk-TYR355RM.js +263 -0
  162. package/dist/chunk-ULZPHJYD.js +2784 -0
  163. package/dist/chunk-V3SOBDIT.js +255 -0
  164. package/dist/chunk-V3SOBDIT.js.map +7 -0
  165. package/dist/chunk-VFUSBU43.js +14 -0
  166. package/dist/chunk-VOF6NWTS.js +274 -0
  167. package/dist/chunk-WGDJX7WZ.js +2327 -0
  168. package/dist/chunk-WIQVSCD5.js +294 -0
  169. package/dist/chunk-WXXRVJSP.js +56 -0
  170. package/dist/chunk-WXXRVJSP.js.map +7 -0
  171. package/dist/chunk-X4MV2M5F.js +129 -0
  172. package/dist/chunk-XVVVNCXS.js +217 -0
  173. package/dist/chunk-XVVVNCXS.js.map +7 -0
  174. package/dist/chunk-YHP7MYB7.js +49 -0
  175. package/dist/chunk-YHWQWVWX.js +550 -0
  176. package/dist/chunk-YKZOQTT4.js +1233 -0
  177. package/dist/chunk-Z5HU276I.js +34 -0
  178. package/dist/chunk-Z6MCBFDM.js +194 -0
  179. package/dist/cohort-GVAJTICQ.js +70 -0
  180. package/dist/condition-EGPNMM47.js +327 -0
  181. package/dist/controls-HBROSXHF.js +34 -0
  182. package/dist/controls.config-FWKV66TU.js +34 -0
  183. package/dist/correlation-CEHE66EC.js +95 -0
  184. package/dist/customdata.inputui-LFT3N5FD.js +284 -0
  185. package/dist/dataDownload-ZPAIAAE4.js +329 -0
  186. package/dist/databrowser.ui-W5JGFBE6.js +425 -0
  187. package/dist/dictionary-RBE2CIZI.js +113 -0
  188. package/dist/dnaMethylation-CX22TSRO.js +33 -0
  189. package/dist/dnaMethylation.integration.spec-KEE6ZZRT.js +198 -0
  190. package/dist/dofetch-6NAGX5EG.js +48 -0
  191. package/dist/e2pca-XDGPTEXL.js +344 -0
  192. package/dist/ep-IUIDMIGW.js +1249 -0
  193. package/dist/expclust.gdc.spec-BMN2PTJX.js +302 -0
  194. package/dist/facet-DTJKZOBA.js +519 -0
  195. package/dist/gb-MV7MUJWO.js +81 -0
  196. package/dist/geneExpClustering-NFH5FS3S.js +244 -0
  197. package/dist/geneExpression-XVOLNYVN.js +310 -0
  198. package/dist/geneExpression-ZP2VWHED.js +33 -0
  199. package/dist/geneExpression.unit.spec-2NSK4ARK.js +128 -0
  200. package/dist/geneExpression.unit.spec-2NSK4ARK.js.map +7 -0
  201. package/dist/geneORA-HQ7FLMEJ.js +273 -0
  202. package/dist/geneRanking-MIABUKTN.js +548 -0
  203. package/dist/geneVariant-H52UUK6Z.js +289 -0
  204. package/dist/geneVariant-H52UUK6Z.js.map +7 -0
  205. package/dist/geneVariant-HDFWLALZ.js +36 -0
  206. package/dist/geneVariant.integration.spec-O36JK4B7.js +503 -0
  207. package/dist/geneVariant.integration.spec-O36JK4B7.js.map +7 -0
  208. package/dist/genefusion.ui-HSDZQHJA.js +303 -0
  209. package/dist/geneset-WKV3X2EJ.js +203 -0
  210. package/dist/genomeBrowser.spec-UTAHAU76.js +276 -0
  211. package/dist/grin2-M2JDZVYU.js +70 -0
  212. package/dist/grin2-N2QM3XTG.js +949 -0
  213. package/dist/grin2-N2QM3XTG.js.map +7 -0
  214. package/dist/hierCluster-LZI6OTRS.js +59 -0
  215. package/dist/hierCluster-VVXPOTQU.js +55 -0
  216. package/dist/hierCluster.config-NCYH3Y7Z.js +36 -0
  217. package/dist/hierCluster.integration.spec-ZDOOCTV3.js +483 -0
  218. package/dist/hierCluster.interactivity-4HP3JCON.js +49 -0
  219. package/dist/hierCluster.renderers-3F5GMEXA.js +19 -0
  220. package/dist/imagePlot-OA4WTMLU.js +156 -0
  221. package/dist/importPlot-OSTC2GPO.js +8 -0
  222. package/dist/isoformExpression-LZ5RTUS5.js +35 -0
  223. package/dist/isoformExpression.unit.spec-L6YDBKYM.js +237 -0
  224. package/dist/junction-UR6COY3A.js +36 -0
  225. package/dist/junction.customTerm-TMV43R7Z.js +16 -0
  226. package/dist/junction.unit.spec-NVBJTGA4.js +182 -0
  227. package/dist/launch.adhoc-AZG6QJG7.js +37 -0
  228. package/dist/leftlabel.sample-LYZG25RT.js +258 -0
  229. package/dist/lollipop-FJXVP5QM.js +166 -0
  230. package/dist/maf-OXJIJD6D.js +455 -0
  231. package/dist/maftimeline-75N6ZXEM.js +587 -0
  232. package/dist/matrix-QFKGEW5A.js +54 -0
  233. package/dist/matrix-XT7LUV5K.js +59 -0
  234. package/dist/matrix.cells-NB7LKKXV.js +26 -0
  235. package/dist/matrix.config-X6HS4UGD.js +37 -0
  236. package/dist/matrix.data-VLFF34SS.js +23 -0
  237. package/dist/matrix.groups-F62TSKIG.js +26 -0
  238. package/dist/matrix.integration.spec-7QBYWHW6.js +3160 -0
  239. package/dist/matrix.integration.spec-7QBYWHW6.js.map +7 -0
  240. package/dist/matrix.interactivity-2FBXB52E.js +37 -0
  241. package/dist/matrix.layout-6TPVKLSX.js +39 -0
  242. package/dist/matrix.legend-L4ULBMGX.js +20 -0
  243. package/dist/matrix.renderers-DK6YRLO2.js +34 -0
  244. package/dist/matrix.serieses-DCRJLJ3H.js +19 -0
  245. package/dist/matrix.sort-XSGPH44J.js +26 -0
  246. package/dist/matrix.sort.unit.spec-JF75F4I4.js +468 -0
  247. package/dist/matrix.sorterUi-WL5I6S3K.js +16 -0
  248. package/dist/matrix.sorterUi.unit.spec-66JMV5BK.js +338 -0
  249. package/dist/matrix.unit.spec-36AR4I43.js +150 -0
  250. package/dist/mavb-ZH4RO77H.js +727 -0
  251. package/dist/mds.fimo-MVP2G5PS.js +513 -0
  252. package/dist/mds.samplescatterplot-GYJ3OI4N.js +1545 -0
  253. package/dist/mds.survivalplot-Q6MYQGTB.js +477 -0
  254. package/dist/multivalue-BGFMPH4X.js +83 -0
  255. package/dist/numericDictTermCluster-FNNVLIWB.js +63 -0
  256. package/dist/oncomatrix-LIIALWWN.js +290 -0
  257. package/dist/oncomatrix.spec-NEMLM2ZN.js +443 -0
  258. package/dist/plot.2dvaf-HJO3SKNK.js +372 -0
  259. package/dist/plot.app-WSLFOFSR.js +36 -0
  260. package/dist/plot.barplot-SPI5JA37.js +97 -0
  261. package/dist/plot.boxplot-4W3XEY5I.js +146 -0
  262. package/dist/plot.brainImaging-KEOUTYIB.js +51 -0
  263. package/dist/plot.disco-7IDMKNAQ.js +99 -0
  264. package/dist/plot.ssgq-IOKUGDC4.js +134 -0
  265. package/dist/plot.vaf2cov-SFSZ6M43.js +253 -0
  266. package/dist/polar2-PLPE5TX5.js +232 -0
  267. package/dist/profileForms-ZDHG67GM.js +941 -0
  268. package/dist/profilePlot-UUZA2YG6.js +49 -0
  269. package/dist/proteinView-GHS3XARL.js +1357 -0
  270. package/dist/proteomeCohortCompare-TQ3BGIPS.js +912 -0
  271. package/dist/pseudbulk.unit.spec-HFESRN7A.js +86 -0
  272. package/dist/pseudbulk.unit.spec-HFESRN7A.js.map +7 -0
  273. package/dist/pseudobulk-ODXYIUD5.js +35 -0
  274. package/dist/qualitative-WOSYAIGQ.js +38 -0
  275. package/dist/radar2-2KXBS3Y3.js +327 -0
  276. package/dist/radarFacility2-JCOKJQQF.js +335 -0
  277. package/dist/rememberedGvQ.unit.spec-DYRO2LO5.js +211 -0
  278. package/dist/render-IJ6GE3NE.js +33 -0
  279. package/dist/report-WLLFUA7L.js +217 -0
  280. package/dist/sampleView-LPKSYUNF.js +43 -0
  281. package/dist/samplelst-MNI2MGMT.js +106 -0
  282. package/dist/samplematrix-KEKJP2B4.js +2193 -0
  283. package/dist/sc-ZYKFRJU4.js +81 -0
  284. package/dist/scatter-BAEZOFWA.js +88 -0
  285. package/dist/scatter-IGFBIZ3B.js +925 -0
  286. package/dist/scatter-IGFBIZ3B.js.map +7 -0
  287. package/dist/selectGenomeWithTklst-HBHRXEDY.js +129 -0
  288. package/dist/singleCellCellType-PMFDV24B.js +33 -0
  289. package/dist/singleCellCellType.unit.spec-ZLYDUDIY.js +154 -0
  290. package/dist/singleCellGeneExpression-SUYO3HR3.js +33 -0
  291. package/dist/singleCellGeneExpression.unit.spec-3N3HRXFN.js +148 -0
  292. package/dist/singleCellNumericValue-BV7C6Y34.js +33 -0
  293. package/dist/singleCellNumericValue.unit.spec-7VJOMYQ6.js +416 -0
  294. package/dist/singleCellNumericValue.unit.spec-7VJOMYQ6.js.map +7 -0
  295. package/dist/singleCellPlot-BG7UJOHA.js +48 -0
  296. package/dist/singlecell-BANNFGBS.js +81 -0
  297. package/dist/singlecell-ZUTL5ZWE.js +1566 -0
  298. package/dist/snp-BHG4NVK4.js +33 -0
  299. package/dist/snp.unit.spec-Q3AZHQRC.js +171 -0
  300. package/dist/snplocus-HTJL63M3.js +203 -0
  301. package/dist/spliceevent.a53ss.diagram-UKRIP7EP.js +146 -0
  302. package/dist/spliceevent.exonskip.diagram-CU777CXQ.js +278 -0
  303. package/dist/spliceevent.noeventdiagram-LGLXCF25.js +455 -0
  304. package/dist/ssGSEA-BIEEKAKX.js +33 -0
  305. package/dist/ssGSEA.unit.spec-YD4UDIRH.js +83 -0
  306. package/dist/stattable-LFR3RSD6.js +117 -0
  307. package/dist/studyCatalog-RINIZ277.js +414 -0
  308. package/dist/summarizeCnvGeneexp-ZQFNPR65.js +158 -0
  309. package/dist/summarizeGeneexpSurvival-GIS7XMMH.js +105 -0
  310. package/dist/summarizeMutationCnv-FWF7YIGR.js +159 -0
  311. package/dist/summarizeMutationDiagnosis-V5L2OKTK.js +35 -0
  312. package/dist/summarizeMutationSurvival-LAUUF6XN.js +99 -0
  313. package/dist/summary-OMU3ACNE.js +44 -0
  314. package/dist/summary.integration.spec-6JZAT73L.js +409 -0
  315. package/dist/summaryInput-QIKL3HDD.js +242 -0
  316. package/dist/sunburst-32IW2R57.js +278 -0
  317. package/dist/survival-BMOPVAN2.js +53 -0
  318. package/dist/survival-H5AWMQ36.js +1248 -0
  319. package/dist/survival.integration.spec-66UOWSZG.js +613 -0
  320. package/dist/survival.integration.spec-66UOWSZG.js.map +7 -0
  321. package/dist/svgraph-B75FS3BB.js +1382 -0
  322. package/dist/svmr-IUEUOHVO.js +3837 -0
  323. package/dist/table-YAAH7WR6.js +197 -0
  324. package/dist/termCollection-7F5ZG2DB.js +252 -0
  325. package/dist/termCollection-KNFUELYY.js +33 -0
  326. package/dist/termCollection.unit.spec-S6M6QC4C.js +299 -0
  327. package/dist/termCollectionFractionSelection-X22VMJWY.js +42 -0
  328. package/dist/termCollectionFractionSelection.unit.spec-ELU6SD7P.js +188 -0
  329. package/dist/tk-TT666UVE.js +41 -0
  330. package/dist/tk-UOPNJ323.js +1121 -0
  331. package/dist/tp.ui-HGAHRKO5.js +1454 -0
  332. package/dist/tvs.dt-H7YYR4EB.js +34 -0
  333. package/dist/tvs.dtcnv.categorical-IPJTKGMF.js +35 -0
  334. package/dist/tvs.dtcnv.continuous-XY5XZ4GH.js +67 -0
  335. package/dist/tvs.dtfusion-VFCBMXRM.js +35 -0
  336. package/dist/tvs.dtitd-RZVW6FTR.js +35 -0
  337. package/dist/tvs.dtsnvindel-IDPJWSGC.js +35 -0
  338. package/dist/tvs.dtsv-QERP756F.js +35 -0
  339. package/dist/tvs.samplelst-6KNDHBIU.js +98 -0
  340. package/dist/tvs.termCollection-GWPJK3NE.js +124 -0
  341. package/dist/vocabulary-C5FIZMPQ.js +36 -0
  342. package/dist/vocabulary-C5FIZMPQ.js.map +7 -0
  343. package/dist/wsi.direct-2RBCBXDA.js +8343 -0
  344. package/package.json +3 -3
  345. package/dist/2dmaf-32F56QBJ.js +0 -1367
  346. package/dist/AggMatrixInput-RDFMGV47.js +0 -277
  347. package/dist/AggMatrixInput-RDFMGV47.js.map +0 -7
  348. package/dist/AggregateMatrix-TPXNNWVD.js +0 -41
  349. package/dist/AppHeader-SEJXDJE3.js +0 -830
  350. package/dist/BoxPlot-LOAO2MDO.js +0 -1211
  351. package/dist/CorrelationVolcano-AU6ZAFPG.js +0 -614
  352. package/dist/CorrelationVolcano-AU6ZAFPG.js.map +0 -7
  353. package/dist/Cuminc-O533BXFY.js +0 -1219
  354. package/dist/DE-FDAUNOWU.js +0 -89
  355. package/dist/DEinput-TF2VYTIJ.js +0 -499
  356. package/dist/DM-42YN3OEO.js +0 -90
  357. package/dist/DifferentialAnalysis-H5NBPR3P.js +0 -237
  358. package/dist/DifferentialAnalysis-H5NBPR3P.js.map +0 -7
  359. package/dist/Disco-FGFHIKUR.js +0 -3389
  360. package/dist/Disco.UI-YGIU2JPM.js +0 -243
  361. package/dist/DmrPlot-EQFXMAW5.js +0 -637
  362. package/dist/DmrPlot-EQFXMAW5.js.map +0 -7
  363. package/dist/GB-244UT5VU.js +0 -1391
  364. package/dist/GB-244UT5VU.js.map +0 -7
  365. package/dist/GSEA-KXQBR3HH.js +0 -851
  366. package/dist/GSEA-KXQBR3HH.js.map +0 -7
  367. package/dist/GeneExpInput-ZY6SHXTX.js +0 -42
  368. package/dist/Geomap-6ZV4AM23.js +0 -84
  369. package/dist/HicApp-4UHX2YGP.js +0 -2245
  370. package/dist/IDCViewer-AB6LLO64.js +0 -10812
  371. package/dist/NumBinaryEditor-CGSO2T4L.js +0 -279
  372. package/dist/NumBinaryEditor.unit.spec-3QHARZQJ.js +0 -312
  373. package/dist/NumContEditor-YLKSC4Y2.js +0 -105
  374. package/dist/NumContEditor.unit.spec-L3GC3ZTJ.js +0 -164
  375. package/dist/NumCustomBinEditor-K3XSFHCC.js +0 -33
  376. package/dist/NumCustomBinEditor.unit.spec-2FUHE6BX.js +0 -397
  377. package/dist/NumDiscreteEditor-RJCSIW4R.js +0 -170
  378. package/dist/NumDiscreteEditor.unit.spec-CUA6BOIS.js +0 -233
  379. package/dist/NumRegularBinEditor-C3VIFDS4.js +0 -33
  380. package/dist/NumRegularBinEditor.unit.spec-V2UJ5FLH.js +0 -278
  381. package/dist/NumSplineEditor-XBE7OV7P.js +0 -210
  382. package/dist/NumSplineEditor.unit.spec-CKRRI4US.js +0 -224
  383. package/dist/NumericDensity-ZL7UY7TL.js +0 -33
  384. package/dist/NumericDensity.unit.spec-CWTMSR56.js +0 -418
  385. package/dist/NumericHandler-56ENFMNK.js +0 -34
  386. package/dist/NumericHandler.unit.spec-3YW34TTJ.js +0 -214
  387. package/dist/ProteomeInput-HIS4GYWH.js +0 -388
  388. package/dist/Regression-C5GZYLEN.js +0 -1416
  389. package/dist/Regression-C5GZYLEN.js.map +0 -7
  390. package/dist/RunChart2-X5WKYLPQ.js +0 -749
  391. package/dist/SC-3Y5J65DT.js +0 -1107
  392. package/dist/SC-3Y5J65DT.js.map +0 -7
  393. package/dist/Violin-F3QS2EMJ.js +0 -1082
  394. package/dist/Violin-F3QS2EMJ.js.map +0 -7
  395. package/dist/Volcano-ZNYDKP2O.js +0 -1649
  396. package/dist/Volcano-ZNYDKP2O.js.map +0 -7
  397. package/dist/Wsi-B6EIGTI2.js +0 -609
  398. package/dist/Wsi-B6EIGTI2.js.map +0 -7
  399. package/dist/adSandbox-A52OQSOW.js +0 -33
  400. package/dist/animatedBubbleChart-OQOZ3WFK.js +0 -547
  401. package/dist/app-4KIKXQX4.js +0 -32
  402. package/dist/app-NZUNKWKK.js +0 -42
  403. package/dist/bam-SME7YD3E.js +0 -876
  404. package/dist/barchart-ESY6FOS4.js +0 -42
  405. package/dist/barchart2-XEJZGCES.js +0 -309
  406. package/dist/block-747IK2EW.js +0 -6249
  407. package/dist/block-747IK2EW.js.map +0 -7
  408. package/dist/block.init-ITZ42K43.js +0 -33
  409. package/dist/block.mds.expressionrank-Q63IJAJK.js +0 -354
  410. package/dist/block.mds.geneboxplot-EZIKAIKC.js +0 -823
  411. package/dist/block.mds.junction-TJXFKZ2Q.js +0 -1539
  412. package/dist/block.mds.svcnv-WSIEAII6.js +0 -6796
  413. package/dist/block.svg-CQX5W6R4.js +0 -159
  414. package/dist/block.tk.aicheck-J4MQ4BSD.js +0 -278
  415. package/dist/block.tk.ase-2JFNPWCZ.js +0 -360
  416. package/dist/block.tk.bam-RBQ4AXSQ.js +0 -1901
  417. package/dist/block.tk.bedgraphdot-ZQBOMVTO.js +0 -379
  418. package/dist/block.tk.bigwig.ui-U5IBO3VF.js +0 -206
  419. package/dist/block.tk.hicstraw-ZRZMFLLX.js +0 -818
  420. package/dist/block.tk.junction-7U7ABE4O.js +0 -2358
  421. package/dist/block.tk.junction.textmatrixui-AEXZ7W3U.js +0 -194
  422. package/dist/block.tk.ld-E7WPFL5P.js +0 -94
  423. package/dist/block.tk.menu-AITMEZTZ.js +0 -1024
  424. package/dist/block.tk.pgv-EDPZHI5L.js +0 -938
  425. package/dist/brainImaging-35LPNBDR.js +0 -555
  426. package/dist/brainRegions-JMTQT4X3.js +0 -217
  427. package/dist/bubbleHeatmap-FMBKMDUL.js +0 -378
  428. package/dist/cellTypeBubbleHeatmap-ZPTAGEWW.js +0 -278
  429. package/dist/chunk-2GBG3KA7.js +0 -129
  430. package/dist/chunk-2IVN5DWA.js +0 -302
  431. package/dist/chunk-36AAUYZE.js +0 -194
  432. package/dist/chunk-3K7AYA3M.js +0 -54
  433. package/dist/chunk-4JFFFGL3.js +0 -468
  434. package/dist/chunk-4KJSNR5E.js +0 -562
  435. package/dist/chunk-52QHIKH2.js +0 -2139
  436. package/dist/chunk-52QHIKH2.js.map +0 -7
  437. package/dist/chunk-5ALGKNTQ.js +0 -6360
  438. package/dist/chunk-5JCTTSV4.js +0 -480
  439. package/dist/chunk-5W7K7STT.js +0 -26
  440. package/dist/chunk-6CIGRV5K.js +0 -677
  441. package/dist/chunk-6CIGRV5K.js.map +0 -7
  442. package/dist/chunk-6U2OPC6J.js +0 -176
  443. package/dist/chunk-7AHTS4BP.js +0 -382
  444. package/dist/chunk-7HFAEB3C.js +0 -55
  445. package/dist/chunk-7HGZRJZZ.js +0 -98
  446. package/dist/chunk-A2ORIMUJ.js +0 -339
  447. package/dist/chunk-A32SGNCT.js +0 -1233
  448. package/dist/chunk-AKA6RWLC.js +0 -217
  449. package/dist/chunk-AMVZ6KT5.js +0 -240
  450. package/dist/chunk-ASXUC6SM.js +0 -54
  451. package/dist/chunk-BCO5T43J.js +0 -379
  452. package/dist/chunk-BDQPMVKD.js +0 -783
  453. package/dist/chunk-BOQZOLRA.js +0 -274
  454. package/dist/chunk-BSCMVKBP.js +0 -5071
  455. package/dist/chunk-BZN2O76M.js +0 -119
  456. package/dist/chunk-BZZZQFTI.js +0 -34
  457. package/dist/chunk-CRHGXVUQ.js +0 -272
  458. package/dist/chunk-D6AB63O3.js +0 -216
  459. package/dist/chunk-D6AB63O3.js.map +0 -7
  460. package/dist/chunk-DPQP2GUW.js +0 -626
  461. package/dist/chunk-EKQ7NYOU.js +0 -276
  462. package/dist/chunk-EUQEQOFE.js +0 -141
  463. package/dist/chunk-FKA55PHV.js +0 -281
  464. package/dist/chunk-GVLWCGXX.js +0 -397
  465. package/dist/chunk-HLVWCJRO.js +0 -518
  466. package/dist/chunk-HPAW7XDM.js +0 -178
  467. package/dist/chunk-HPAW7XDM.js.map +0 -7
  468. package/dist/chunk-IV57XNTG.js +0 -123
  469. package/dist/chunk-JMAFJKGG.js +0 -243
  470. package/dist/chunk-JZHRVYNS.js +0 -2676
  471. package/dist/chunk-K6YUMBDY.js +0 -55
  472. package/dist/chunk-K6YUMBDY.js.map +0 -7
  473. package/dist/chunk-KTKZSYIH.js +0 -24
  474. package/dist/chunk-KTKZSYIH.js.map +0 -7
  475. package/dist/chunk-L6WNBKYN.js +0 -158
  476. package/dist/chunk-LGR6CJTW.js +0 -2853
  477. package/dist/chunk-LOWJQFCC.js +0 -550
  478. package/dist/chunk-M5SYLBBC.js +0 -2327
  479. package/dist/chunk-MKAILEWO.js +0 -59
  480. package/dist/chunk-N4PDPZWQ.js +0 -4366
  481. package/dist/chunk-N4PDPZWQ.js.map +0 -7
  482. package/dist/chunk-OIJ6GRVS.js +0 -134
  483. package/dist/chunk-ONVIVITY.js +0 -203
  484. package/dist/chunk-OQX3HO46.js +0 -56
  485. package/dist/chunk-OQX3HO46.js.map +0 -7
  486. package/dist/chunk-OYLGAFFY.js +0 -31
  487. package/dist/chunk-P7DIIYCX.js +0 -197
  488. package/dist/chunk-P7DIIYCX.js.map +0 -7
  489. package/dist/chunk-PC4MFDHP.js +0 -24613
  490. package/dist/chunk-PC4MFDHP.js.map +0 -7
  491. package/dist/chunk-PGKOJYV6.js +0 -50
  492. package/dist/chunk-PGKOJYV6.js.map +0 -7
  493. package/dist/chunk-PPSWNLMG.js +0 -402
  494. package/dist/chunk-PPSWNLMG.js.map +0 -7
  495. package/dist/chunk-R624P2GE.js +0 -263
  496. package/dist/chunk-RBSAEAQV.js +0 -446
  497. package/dist/chunk-RUBZCKIX.js +0 -1608
  498. package/dist/chunk-RUBZCKIX.js.map +0 -7
  499. package/dist/chunk-RZ3KEFZ2.js +0 -339
  500. package/dist/chunk-SS66BHGA.js +0 -103
  501. package/dist/chunk-SU63FEY6.js +0 -294
  502. package/dist/chunk-SVC65ZPG.js +0 -102
  503. package/dist/chunk-TG3QBMDK.js +0 -102
  504. package/dist/chunk-TMXW5HVE.js +0 -1278
  505. package/dist/chunk-TPDBOH3A.js +0 -1339
  506. package/dist/chunk-U5RWKZVS.js +0 -1720
  507. package/dist/chunk-U5RWKZVS.js.map +0 -7
  508. package/dist/chunk-UYKZ5HXA.js +0 -1986
  509. package/dist/chunk-VOYUJJQ6.js +0 -70
  510. package/dist/chunk-W4RYRU5D.js +0 -38
  511. package/dist/chunk-WFSMIVJT.js +0 -2784
  512. package/dist/chunk-Y4PX2ECH.js +0 -299
  513. package/dist/chunk-YKM46UX5.js +0 -170
  514. package/dist/chunk-Z7AO6A7M.js +0 -14
  515. package/dist/chunk-ZENZ5H2Q.js +0 -49
  516. package/dist/cohort-Q7TW5XTY.js +0 -70
  517. package/dist/condition-H6LBUHIF.js +0 -327
  518. package/dist/controls-DWDKFDXY.js +0 -34
  519. package/dist/controls.config-KF7PHZSG.js +0 -34
  520. package/dist/correlation-YMSARIER.js +0 -95
  521. package/dist/customdata.inputui-KEFE7ZHS.js +0 -284
  522. package/dist/dataDownload-G7TGPFGL.js +0 -329
  523. package/dist/databrowser.ui-NFIIFQJZ.js +0 -425
  524. package/dist/dictionary-ERJQMALC.js +0 -113
  525. package/dist/dnaMethylation-KVCXKAU3.js +0 -33
  526. package/dist/dnaMethylation.integration.spec-3NXGGG4J.js +0 -198
  527. package/dist/dofetch-YRWLEQEH.js +0 -48
  528. package/dist/e2pca-M2F2CI6I.js +0 -344
  529. package/dist/ep-QAEG4RV4.js +0 -1249
  530. package/dist/expclust.gdc.spec-P77T6JR2.js +0 -302
  531. package/dist/facet-LJTSTASE.js +0 -519
  532. package/dist/gb-KSB2DQHH.js +0 -81
  533. package/dist/geneExpClustering-KHDCPE65.js +0 -244
  534. package/dist/geneExpression-AWWMOUAR.js +0 -310
  535. package/dist/geneExpression-Z2EDR6EN.js +0 -33
  536. package/dist/geneExpression.unit.spec-WB2ESPKT.js +0 -128
  537. package/dist/geneExpression.unit.spec-WB2ESPKT.js.map +0 -7
  538. package/dist/geneORA-NGZTMFSJ.js +0 -273
  539. package/dist/geneRanking-AYNBGFKU.js +0 -548
  540. package/dist/geneVariant-AL64NDHH.js +0 -36
  541. package/dist/geneVariant-QMKR3LUV.js +0 -286
  542. package/dist/geneVariant-QMKR3LUV.js.map +0 -7
  543. package/dist/geneVariant.integration.spec-N3U5CIRT.js +0 -489
  544. package/dist/geneVariant.integration.spec-N3U5CIRT.js.map +0 -7
  545. package/dist/genefusion.ui-IWJMF2BM.js +0 -303
  546. package/dist/geneset-APCO4BRX.js +0 -203
  547. package/dist/genomeBrowser.spec-JTCVUTO5.js +0 -276
  548. package/dist/grin2-FVX6AIST.js +0 -70
  549. package/dist/grin2-LF46UKFY.js +0 -1137
  550. package/dist/grin2-LF46UKFY.js.map +0 -7
  551. package/dist/hierCluster-4DRHXD6W.js +0 -55
  552. package/dist/hierCluster-SFRQK3PS.js +0 -59
  553. package/dist/hierCluster.config-G2TFGBYF.js +0 -36
  554. package/dist/hierCluster.integration.spec-ZUZKCG6A.js +0 -483
  555. package/dist/hierCluster.interactivity-LQA6J56H.js +0 -49
  556. package/dist/hierCluster.renderers-TZZJEVFO.js +0 -19
  557. package/dist/imagePlot-OUHFWYKT.js +0 -156
  558. package/dist/importPlot-7V456QK7.js +0 -8
  559. package/dist/isoformExpression-NGUJJ6VI.js +0 -35
  560. package/dist/isoformExpression.unit.spec-DCRPXPBY.js +0 -237
  561. package/dist/junction-QYKLNXIW.js +0 -36
  562. package/dist/junction.customTerm-EHOOBR4V.js +0 -16
  563. package/dist/junction.unit.spec-LDNY7OFK.js +0 -182
  564. package/dist/launch.adhoc-FF7B3UG6.js +0 -37
  565. package/dist/leftlabel.sample-BTHMKLGF.js +0 -258
  566. package/dist/lollipop-H3UCNMHN.js +0 -166
  567. package/dist/maf-KWGUTPKO.js +0 -455
  568. package/dist/maftimeline-UD5VE4UW.js +0 -587
  569. package/dist/matrix-DLCX6GOO.js +0 -59
  570. package/dist/matrix-TIV42IQB.js +0 -54
  571. package/dist/matrix.cells-J3QZ7C6U.js +0 -26
  572. package/dist/matrix.config-VNMS6B7J.js +0 -37
  573. package/dist/matrix.data-PIE3TLKD.js +0 -23
  574. package/dist/matrix.groups-URBU775S.js +0 -26
  575. package/dist/matrix.integration.spec-LC6YMEKP.js +0 -3160
  576. package/dist/matrix.integration.spec-LC6YMEKP.js.map +0 -7
  577. package/dist/matrix.interactivity-W5AFOAQN.js +0 -37
  578. package/dist/matrix.layout-LU3NIJAL.js +0 -39
  579. package/dist/matrix.legend-LTP6ETZO.js +0 -20
  580. package/dist/matrix.renderers-762XI65L.js +0 -34
  581. package/dist/matrix.serieses-FHDBRPZA.js +0 -19
  582. package/dist/matrix.sort-Q6A6UWMY.js +0 -26
  583. package/dist/matrix.sort.unit.spec-CTCOPKVS.js +0 -468
  584. package/dist/matrix.sorterUi-4M5AU5EL.js +0 -16
  585. package/dist/matrix.sorterUi.unit.spec-Y7GC3PM5.js +0 -338
  586. package/dist/matrix.unit.spec-DROPHFTM.js +0 -150
  587. package/dist/mavb-BWA73N3U.js +0 -727
  588. package/dist/mds.fimo-3UJWIH2J.js +0 -513
  589. package/dist/mds.samplescatterplot-EUS7DCSQ.js +0 -1545
  590. package/dist/mds.survivalplot-77UEBQIC.js +0 -477
  591. package/dist/multivalue-KZ2DMVIR.js +0 -83
  592. package/dist/numericDictTermCluster-C2MYJYPZ.js +0 -63
  593. package/dist/oncomatrix-6LGB3M7R.js +0 -290
  594. package/dist/oncomatrix.spec-UWMSLOHW.js +0 -443
  595. package/dist/plot.2dvaf-LZAVWH65.js +0 -372
  596. package/dist/plot.app-OEWE3AYV.js +0 -36
  597. package/dist/plot.barplot-VIBHGTUT.js +0 -97
  598. package/dist/plot.boxplot-NQI3PSKR.js +0 -146
  599. package/dist/plot.brainImaging-3MTTCZHI.js +0 -51
  600. package/dist/plot.disco-HODBY7SO.js +0 -99
  601. package/dist/plot.ssgq-4URQE673.js +0 -134
  602. package/dist/plot.vaf2cov-QIJNEKCK.js +0 -253
  603. package/dist/polar2-GVFQNSLK.js +0 -232
  604. package/dist/profileForms-Z22CJXI4.js +0 -941
  605. package/dist/profilePlot-IVQZBSID.js +0 -49
  606. package/dist/proteinView-AUK634AU.js +0 -1357
  607. package/dist/proteomeCohortCompare-7G2F35H5.js +0 -912
  608. package/dist/pseudbulk.unit.spec-JDKUQUCM.js +0 -106
  609. package/dist/pseudbulk.unit.spec-JDKUQUCM.js.map +0 -7
  610. package/dist/pseudobulk-QTCUSH5I.js +0 -37
  611. package/dist/qualitative-7ST7SSBT.js +0 -38
  612. package/dist/radar2-CEE6SNBS.js +0 -327
  613. package/dist/radarFacility2-OSKDYIK7.js +0 -335
  614. package/dist/rememberedGvQ.unit.spec-RYFUJ2NW.js +0 -211
  615. package/dist/render-MAD3WMVD.js +0 -33
  616. package/dist/report-6JXJVSEB.js +0 -217
  617. package/dist/sampleView-SG3QYZKQ.js +0 -43
  618. package/dist/samplelst-R765UFP6.js +0 -106
  619. package/dist/samplematrix-EBJYE5SM.js +0 -2193
  620. package/dist/sc-7ZXPFDHD.js +0 -81
  621. package/dist/scatter-3GUL4KF3.js +0 -88
  622. package/dist/scatter-RHUVER53.js +0 -920
  623. package/dist/scatter-RHUVER53.js.map +0 -7
  624. package/dist/selectGenomeWithTklst-K4YXGJYG.js +0 -129
  625. package/dist/singleCellCellType-TU5VTPLP.js +0 -33
  626. package/dist/singleCellCellType.unit.spec-IRITQIGT.js +0 -154
  627. package/dist/singleCellGeneExpression-3IL52QDK.js +0 -33
  628. package/dist/singleCellGeneExpression.unit.spec-WXC4C37T.js +0 -148
  629. package/dist/singleCellPlot-XG3HZS7I.js +0 -48
  630. package/dist/singlecell-BRF2HAV2.js +0 -81
  631. package/dist/singlecell-KVCJF2HI.js +0 -1566
  632. package/dist/snp-RMZRB426.js +0 -33
  633. package/dist/snp.unit.spec-JF6KR2NT.js +0 -171
  634. package/dist/snplocus-AHUFHQ3Q.js +0 -203
  635. package/dist/spliceevent.a53ss.diagram-OSZZ2CF2.js +0 -146
  636. package/dist/spliceevent.exonskip.diagram-AMA2D2OL.js +0 -278
  637. package/dist/spliceevent.noeventdiagram-RKTUXH5D.js +0 -455
  638. package/dist/ssGSEA-7RKWYZKX.js +0 -33
  639. package/dist/ssGSEA.unit.spec-XLCZHH7S.js +0 -83
  640. package/dist/stattable-NDYUCLVZ.js +0 -117
  641. package/dist/studyCatalog-TAXRF5NS.js +0 -414
  642. package/dist/summarizeCnvGeneexp-3QLHU6N7.js +0 -158
  643. package/dist/summarizeGeneexpSurvival-ARI4MPFX.js +0 -105
  644. package/dist/summarizeMutationCnv-W7V7CKPI.js +0 -159
  645. package/dist/summarizeMutationDiagnosis-GCL4SRON.js +0 -35
  646. package/dist/summarizeMutationSurvival-6TTMSRRX.js +0 -99
  647. package/dist/summary-OUYDWLBF.js +0 -44
  648. package/dist/summary.integration.spec-4GTCG6HY.js +0 -409
  649. package/dist/summaryInput-UK3TLC7M.js +0 -242
  650. package/dist/sunburst-2UFHMNH3.js +0 -278
  651. package/dist/survival-SPWYSDVB.js +0 -53
  652. package/dist/survival-TL6UZ6FQ.js +0 -1248
  653. package/dist/survival.integration.spec-WWZELTKZ.js +0 -613
  654. package/dist/survival.integration.spec-WWZELTKZ.js.map +0 -7
  655. package/dist/svgraph-Z543MLIN.js +0 -1382
  656. package/dist/svmr-SZCAOAIF.js +0 -3837
  657. package/dist/table-IAQ6J4DO.js +0 -197
  658. package/dist/termCollection-3NGHR7QN.js +0 -252
  659. package/dist/termCollection-7P3WU6X6.js +0 -33
  660. package/dist/termCollection.unit.spec-EPYC7LOA.js +0 -299
  661. package/dist/termCollectionFractionSelection-YKIE6BME.js +0 -42
  662. package/dist/termCollectionFractionSelection.unit.spec-AG2CZPGZ.js +0 -188
  663. package/dist/tk-TOXMU4GT.js +0 -1121
  664. package/dist/tk-X454XH5N.js +0 -41
  665. package/dist/tp.ui-FDQ76KPL.js +0 -1454
  666. package/dist/tvs.dt-U77PCG6X.js +0 -34
  667. package/dist/tvs.dtcnv.categorical-XYZU4XLO.js +0 -35
  668. package/dist/tvs.dtcnv.continuous-4GJILFGP.js +0 -67
  669. package/dist/tvs.dtfusion-7YROAHVI.js +0 -35
  670. package/dist/tvs.dtitd-MIYU4ZHH.js +0 -35
  671. package/dist/tvs.dtsnvindel-XLDY7KWB.js +0 -35
  672. package/dist/tvs.dtsv-YMLJ37YR.js +0 -35
  673. package/dist/tvs.samplelst-KIVEXJKD.js +0 -98
  674. package/dist/tvs.termCollection-4CQV3EB3.js +0 -124
  675. package/dist/vocabulary-64GO4YDB.js +0 -36
  676. package/dist/wsi.direct-5MQVRJZX.js +0 -8343
  677. /package/dist/{2dmaf-32F56QBJ.js.map → 2dmaf-VTMPVZGT.js.map} +0 -0
  678. /package/dist/{AggregateMatrix-TPXNNWVD.js.map → AggregateMatrix-DPCHUOMF.js.map} +0 -0
  679. /package/dist/{AppHeader-SEJXDJE3.js.map → AppHeader-RA7T467G.js.map} +0 -0
  680. /package/dist/{BoxPlot-LOAO2MDO.js.map → BoxPlot-7Q7SMT26.js.map} +0 -0
  681. /package/dist/{Cuminc-O533BXFY.js.map → Cuminc-ZN53C3MD.js.map} +0 -0
  682. /package/dist/{DE-FDAUNOWU.js.map → DE-BEWW5AIG.js.map} +0 -0
  683. /package/dist/{DEinput-TF2VYTIJ.js.map → DEinput-SJITUJF2.js.map} +0 -0
  684. /package/dist/{DM-42YN3OEO.js.map → DM-2LBNE4WE.js.map} +0 -0
  685. /package/dist/{Disco-FGFHIKUR.js.map → Disco-PTZQF7IM.js.map} +0 -0
  686. /package/dist/{Disco.UI-YGIU2JPM.js.map → Disco.UI-NBR67N5M.js.map} +0 -0
  687. /package/dist/{GeneExpInput-ZY6SHXTX.js.map → GeneExpInput-DYBK54HC.js.map} +0 -0
  688. /package/dist/{Geomap-6ZV4AM23.js.map → Geomap-QRD2WZVL.js.map} +0 -0
  689. /package/dist/{HicApp-4UHX2YGP.js.map → HicApp-VKET4QHD.js.map} +0 -0
  690. /package/dist/{IDCViewer-AB6LLO64.js.map → IDCViewer-RLLTXGD7.js.map} +0 -0
  691. /package/dist/{NumBinaryEditor-CGSO2T4L.js.map → NumBinaryEditor-GYHOYPQL.js.map} +0 -0
  692. /package/dist/{NumBinaryEditor.unit.spec-3QHARZQJ.js.map → NumBinaryEditor.unit.spec-E2HKBWOO.js.map} +0 -0
  693. /package/dist/{NumContEditor-YLKSC4Y2.js.map → NumContEditor-3V76ZSEY.js.map} +0 -0
  694. /package/dist/{NumContEditor.unit.spec-L3GC3ZTJ.js.map → NumContEditor.unit.spec-RTT5Q5E5.js.map} +0 -0
  695. /package/dist/{NumCustomBinEditor-K3XSFHCC.js.map → NumCustomBinEditor-O5DMPY7H.js.map} +0 -0
  696. /package/dist/{NumCustomBinEditor.unit.spec-2FUHE6BX.js.map → NumCustomBinEditor.unit.spec-5LZBP2JL.js.map} +0 -0
  697. /package/dist/{NumDiscreteEditor-RJCSIW4R.js.map → NumDiscreteEditor-DFOJ7AIH.js.map} +0 -0
  698. /package/dist/{NumDiscreteEditor.unit.spec-CUA6BOIS.js.map → NumDiscreteEditor.unit.spec-PPJGEBFX.js.map} +0 -0
  699. /package/dist/{NumRegularBinEditor-C3VIFDS4.js.map → NumRegularBinEditor-O6RDO32C.js.map} +0 -0
  700. /package/dist/{NumRegularBinEditor.unit.spec-V2UJ5FLH.js.map → NumRegularBinEditor.unit.spec-GOB3BF25.js.map} +0 -0
  701. /package/dist/{NumSplineEditor-XBE7OV7P.js.map → NumSplineEditor-PUXJF2RW.js.map} +0 -0
  702. /package/dist/{NumSplineEditor.unit.spec-CKRRI4US.js.map → NumSplineEditor.unit.spec-4VOAAMOU.js.map} +0 -0
  703. /package/dist/{NumericDensity-ZL7UY7TL.js.map → NumericDensity-E6MH2THZ.js.map} +0 -0
  704. /package/dist/{NumericDensity.unit.spec-CWTMSR56.js.map → NumericDensity.unit.spec-IRPFBQUS.js.map} +0 -0
  705. /package/dist/{NumericHandler-56ENFMNK.js.map → NumericHandler-42RR54X3.js.map} +0 -0
  706. /package/dist/{NumericHandler.unit.spec-3YW34TTJ.js.map → NumericHandler.unit.spec-YYOO7XVT.js.map} +0 -0
  707. /package/dist/{ProteomeInput-HIS4GYWH.js.map → ProteomeInput-4N2G6IFX.js.map} +0 -0
  708. /package/dist/{RunChart2-X5WKYLPQ.js.map → RunChart2-VAX5JGZY.js.map} +0 -0
  709. /package/dist/{adSandbox-A52OQSOW.js.map → adSandbox-CLMUYNC3.js.map} +0 -0
  710. /package/dist/{animatedBubbleChart-OQOZ3WFK.js.map → animatedBubbleChart-GMLNYTQC.js.map} +0 -0
  711. /package/dist/{app-4KIKXQX4.js.map → app-2SFDRDN2.js.map} +0 -0
  712. /package/dist/{app-NZUNKWKK.js.map → app-QOZ36UR4.js.map} +0 -0
  713. /package/dist/{bam-SME7YD3E.js.map → bam-LLAK7FVG.js.map} +0 -0
  714. /package/dist/{barchart-ESY6FOS4.js.map → barchart-SEC6VKQ2.js.map} +0 -0
  715. /package/dist/{barchart2-XEJZGCES.js.map → barchart2-D4FXZCTU.js.map} +0 -0
  716. /package/dist/{block.init-ITZ42K43.js.map → block.init-UMRCAKCF.js.map} +0 -0
  717. /package/dist/{block.mds.expressionrank-Q63IJAJK.js.map → block.mds.expressionrank-LFPJ52SX.js.map} +0 -0
  718. /package/dist/{block.mds.geneboxplot-EZIKAIKC.js.map → block.mds.geneboxplot-2QIEN6AH.js.map} +0 -0
  719. /package/dist/{block.mds.junction-TJXFKZ2Q.js.map → block.mds.junction-Z4HUFSG2.js.map} +0 -0
  720. /package/dist/{block.mds.svcnv-WSIEAII6.js.map → block.mds.svcnv-3GXGY6ET.js.map} +0 -0
  721. /package/dist/{block.svg-CQX5W6R4.js.map → block.svg-7RCJLMAP.js.map} +0 -0
  722. /package/dist/{block.tk.aicheck-J4MQ4BSD.js.map → block.tk.aicheck-5N6EGZ6F.js.map} +0 -0
  723. /package/dist/{block.tk.ase-2JFNPWCZ.js.map → block.tk.ase-V3AJRYT6.js.map} +0 -0
  724. /package/dist/{block.tk.bam-RBQ4AXSQ.js.map → block.tk.bam-W6QOVVEU.js.map} +0 -0
  725. /package/dist/{block.tk.bedgraphdot-ZQBOMVTO.js.map → block.tk.bedgraphdot-FKTPJZTH.js.map} +0 -0
  726. /package/dist/{block.tk.bigwig.ui-U5IBO3VF.js.map → block.tk.bigwig.ui-Y3M2TDM2.js.map} +0 -0
  727. /package/dist/{block.tk.hicstraw-ZRZMFLLX.js.map → block.tk.hicstraw-3SWYTMFQ.js.map} +0 -0
  728. /package/dist/{block.tk.junction-7U7ABE4O.js.map → block.tk.junction-OXB22PDS.js.map} +0 -0
  729. /package/dist/{block.tk.junction.textmatrixui-AEXZ7W3U.js.map → block.tk.junction.textmatrixui-PWBLRGCO.js.map} +0 -0
  730. /package/dist/{block.tk.ld-E7WPFL5P.js.map → block.tk.ld-NTRJL5GA.js.map} +0 -0
  731. /package/dist/{block.tk.menu-AITMEZTZ.js.map → block.tk.menu-JIHSGGIO.js.map} +0 -0
  732. /package/dist/{block.tk.pgv-EDPZHI5L.js.map → block.tk.pgv-4Q6CY6QN.js.map} +0 -0
  733. /package/dist/{brainImaging-35LPNBDR.js.map → brainImaging-MBI4XTTU.js.map} +0 -0
  734. /package/dist/{brainRegions-JMTQT4X3.js.map → brainRegions-YVTAESRP.js.map} +0 -0
  735. /package/dist/{bubbleHeatmap-FMBKMDUL.js.map → bubbleHeatmap-ZKTA3AIG.js.map} +0 -0
  736. /package/dist/{cellTypeBubbleHeatmap-ZPTAGEWW.js.map → cellTypeBubbleHeatmap-GJZNXDG4.js.map} +0 -0
  737. /package/dist/{chunk-5ALGKNTQ.js.map → chunk-2RMSV4BS.js.map} +0 -0
  738. /package/dist/{chunk-Y4PX2ECH.js.map → chunk-33BE7AYS.js.map} +0 -0
  739. /package/dist/{chunk-BZN2O76M.js.map → chunk-3FEP6B5T.js.map} +0 -0
  740. /package/dist/{chunk-W4RYRU5D.js.map → chunk-4G73CMUL.js.map} +0 -0
  741. /package/dist/{chunk-FKA55PHV.js.map → chunk-5FRETII3.js.map} +0 -0
  742. /package/dist/{chunk-YKM46UX5.js.map → chunk-5LYVIIYR.js.map} +0 -0
  743. /package/dist/{chunk-A2ORIMUJ.js.map → chunk-6FG6JFZP.js.map} +0 -0
  744. /package/dist/{chunk-VOYUJJQ6.js.map → chunk-6LDKSKYQ.js.map} +0 -0
  745. /package/dist/{chunk-CRHGXVUQ.js.map → chunk-7FFTAYT4.js.map} +0 -0
  746. /package/dist/{chunk-RZ3KEFZ2.js.map → chunk-7GDRMBNO.js.map} +0 -0
  747. /package/dist/{chunk-UYKZ5HXA.js.map → chunk-A2UUXYH6.js.map} +0 -0
  748. /package/dist/{chunk-LGR6CJTW.js.map → chunk-AFQKYV4D.js.map} +0 -0
  749. /package/dist/{chunk-EKQ7NYOU.js.map → chunk-ANACCKCQ.js.map} +0 -0
  750. /package/dist/{chunk-4KJSNR5E.js.map → chunk-AR3HXZIW.js.map} +0 -0
  751. /package/dist/{chunk-RBSAEAQV.js.map → chunk-AVCEHJG7.js.map} +0 -0
  752. /package/dist/{chunk-OIJ6GRVS.js.map → chunk-BG3SGGVB.js.map} +0 -0
  753. /package/dist/{chunk-7AHTS4BP.js.map → chunk-CFZ2ZW3E.js.map} +0 -0
  754. /package/dist/{chunk-5W7K7STT.js.map → chunk-CKOU3P27.js.map} +0 -0
  755. /package/dist/{chunk-GVLWCGXX.js.map → chunk-CN6KJORZ.js.map} +0 -0
  756. /package/dist/{chunk-ONVIVITY.js.map → chunk-CYWEYHJQ.js.map} +0 -0
  757. /package/dist/{chunk-L6WNBKYN.js.map → chunk-D5ETVOOE.js.map} +0 -0
  758. /package/dist/{chunk-TG3QBMDK.js.map → chunk-DANF4CC5.js.map} +0 -0
  759. /package/dist/{chunk-TPDBOH3A.js.map → chunk-DNCFJTPI.js.map} +0 -0
  760. /package/dist/{chunk-5JCTTSV4.js.map → chunk-FNW6BKOA.js.map} +0 -0
  761. /package/dist/{chunk-3K7AYA3M.js.map → chunk-FR5USNAT.js.map} +0 -0
  762. /package/dist/{chunk-DPQP2GUW.js.map → chunk-GYE6FU7P.js.map} +0 -0
  763. /package/dist/{chunk-TMXW5HVE.js.map → chunk-IEIGHCZS.js.map} +0 -0
  764. /package/dist/{chunk-BSCMVKBP.js.map → chunk-JMDUO47F.js.map} +0 -0
  765. /package/dist/{chunk-ASXUC6SM.js.map → chunk-JTANDSTD.js.map} +0 -0
  766. /package/dist/{chunk-BCO5T43J.js.map → chunk-JTQPPUDG.js.map} +0 -0
  767. /package/dist/{chunk-2IVN5DWA.js.map → chunk-K32DV4QI.js.map} +0 -0
  768. /package/dist/{chunk-7HGZRJZZ.js.map → chunk-K77W4SSI.js.map} +0 -0
  769. /package/dist/{chunk-SVC65ZPG.js.map → chunk-KEHVNCFK.js.map} +0 -0
  770. /package/dist/{chunk-7HFAEB3C.js.map → chunk-MMKSXXU2.js.map} +0 -0
  771. /package/dist/{chunk-OYLGAFFY.js.map → chunk-NDOKW2HJ.js.map} +0 -0
  772. /package/dist/{chunk-HLVWCJRO.js.map → chunk-NGMM2MNC.js.map} +0 -0
  773. /package/dist/{chunk-JZHRVYNS.js.map → chunk-OEBGQKQR.js.map} +0 -0
  774. /package/dist/{chunk-4JFFFGL3.js.map → chunk-OI5KBFBE.js.map} +0 -0
  775. /package/dist/{chunk-JMAFJKGG.js.map → chunk-OWEBE64A.js.map} +0 -0
  776. /package/dist/{chunk-BDQPMVKD.js.map → chunk-P7X4LDW4.js.map} +0 -0
  777. /package/dist/{chunk-MKAILEWO.js.map → chunk-QD75Q5LM.js.map} +0 -0
  778. /package/dist/{chunk-EUQEQOFE.js.map → chunk-QGH5BM2D.js.map} +0 -0
  779. /package/dist/{chunk-AMVZ6KT5.js.map → chunk-QSOFGLWZ.js.map} +0 -0
  780. /package/dist/{chunk-AKA6RWLC.js.map → chunk-QXDGIQYA.js.map} +0 -0
  781. /package/dist/{chunk-6U2OPC6J.js.map → chunk-R2QE6ROO.js.map} +0 -0
  782. /package/dist/{chunk-SS66BHGA.js.map → chunk-RMHUDMZ7.js.map} +0 -0
  783. /package/dist/{chunk-IV57XNTG.js.map → chunk-SXB4IZQ7.js.map} +0 -0
  784. /package/dist/{chunk-R624P2GE.js.map → chunk-TYR355RM.js.map} +0 -0
  785. /package/dist/{chunk-WFSMIVJT.js.map → chunk-ULZPHJYD.js.map} +0 -0
  786. /package/dist/{chunk-Z7AO6A7M.js.map → chunk-VFUSBU43.js.map} +0 -0
  787. /package/dist/{chunk-BOQZOLRA.js.map → chunk-VOF6NWTS.js.map} +0 -0
  788. /package/dist/{chunk-M5SYLBBC.js.map → chunk-WGDJX7WZ.js.map} +0 -0
  789. /package/dist/{chunk-SU63FEY6.js.map → chunk-WIQVSCD5.js.map} +0 -0
  790. /package/dist/{chunk-2GBG3KA7.js.map → chunk-X4MV2M5F.js.map} +0 -0
  791. /package/dist/{chunk-ZENZ5H2Q.js.map → chunk-YHP7MYB7.js.map} +0 -0
  792. /package/dist/{chunk-LOWJQFCC.js.map → chunk-YHWQWVWX.js.map} +0 -0
  793. /package/dist/{chunk-A32SGNCT.js.map → chunk-YKZOQTT4.js.map} +0 -0
  794. /package/dist/{chunk-BZZZQFTI.js.map → chunk-Z5HU276I.js.map} +0 -0
  795. /package/dist/{chunk-36AAUYZE.js.map → chunk-Z6MCBFDM.js.map} +0 -0
  796. /package/dist/{cohort-Q7TW5XTY.js.map → cohort-GVAJTICQ.js.map} +0 -0
  797. /package/dist/{condition-H6LBUHIF.js.map → condition-EGPNMM47.js.map} +0 -0
  798. /package/dist/{controls-DWDKFDXY.js.map → controls-HBROSXHF.js.map} +0 -0
  799. /package/dist/{controls.config-KF7PHZSG.js.map → controls.config-FWKV66TU.js.map} +0 -0
  800. /package/dist/{correlation-YMSARIER.js.map → correlation-CEHE66EC.js.map} +0 -0
  801. /package/dist/{customdata.inputui-KEFE7ZHS.js.map → customdata.inputui-LFT3N5FD.js.map} +0 -0
  802. /package/dist/{dataDownload-G7TGPFGL.js.map → dataDownload-ZPAIAAE4.js.map} +0 -0
  803. /package/dist/{databrowser.ui-NFIIFQJZ.js.map → databrowser.ui-W5JGFBE6.js.map} +0 -0
  804. /package/dist/{dictionary-ERJQMALC.js.map → dictionary-RBE2CIZI.js.map} +0 -0
  805. /package/dist/{dnaMethylation-KVCXKAU3.js.map → dnaMethylation-CX22TSRO.js.map} +0 -0
  806. /package/dist/{dnaMethylation.integration.spec-3NXGGG4J.js.map → dnaMethylation.integration.spec-KEE6ZZRT.js.map} +0 -0
  807. /package/dist/{dofetch-YRWLEQEH.js.map → dofetch-6NAGX5EG.js.map} +0 -0
  808. /package/dist/{e2pca-M2F2CI6I.js.map → e2pca-XDGPTEXL.js.map} +0 -0
  809. /package/dist/{ep-QAEG4RV4.js.map → ep-IUIDMIGW.js.map} +0 -0
  810. /package/dist/{expclust.gdc.spec-P77T6JR2.js.map → expclust.gdc.spec-BMN2PTJX.js.map} +0 -0
  811. /package/dist/{facet-LJTSTASE.js.map → facet-DTJKZOBA.js.map} +0 -0
  812. /package/dist/{gb-KSB2DQHH.js.map → gb-MV7MUJWO.js.map} +0 -0
  813. /package/dist/{geneExpClustering-KHDCPE65.js.map → geneExpClustering-NFH5FS3S.js.map} +0 -0
  814. /package/dist/{geneExpression-AWWMOUAR.js.map → geneExpression-XVOLNYVN.js.map} +0 -0
  815. /package/dist/{geneExpression-Z2EDR6EN.js.map → geneExpression-ZP2VWHED.js.map} +0 -0
  816. /package/dist/{geneORA-NGZTMFSJ.js.map → geneORA-HQ7FLMEJ.js.map} +0 -0
  817. /package/dist/{geneRanking-AYNBGFKU.js.map → geneRanking-MIABUKTN.js.map} +0 -0
  818. /package/dist/{geneVariant-AL64NDHH.js.map → geneVariant-HDFWLALZ.js.map} +0 -0
  819. /package/dist/{genefusion.ui-IWJMF2BM.js.map → genefusion.ui-HSDZQHJA.js.map} +0 -0
  820. /package/dist/{geneset-APCO4BRX.js.map → geneset-WKV3X2EJ.js.map} +0 -0
  821. /package/dist/{genomeBrowser.spec-JTCVUTO5.js.map → genomeBrowser.spec-UTAHAU76.js.map} +0 -0
  822. /package/dist/{grin2-FVX6AIST.js.map → grin2-M2JDZVYU.js.map} +0 -0
  823. /package/dist/{hierCluster-4DRHXD6W.js.map → hierCluster-LZI6OTRS.js.map} +0 -0
  824. /package/dist/{hierCluster-SFRQK3PS.js.map → hierCluster-VVXPOTQU.js.map} +0 -0
  825. /package/dist/{hierCluster.config-G2TFGBYF.js.map → hierCluster.config-NCYH3Y7Z.js.map} +0 -0
  826. /package/dist/{hierCluster.integration.spec-ZUZKCG6A.js.map → hierCluster.integration.spec-ZDOOCTV3.js.map} +0 -0
  827. /package/dist/{hierCluster.interactivity-LQA6J56H.js.map → hierCluster.interactivity-4HP3JCON.js.map} +0 -0
  828. /package/dist/{hierCluster.renderers-TZZJEVFO.js.map → hierCluster.renderers-3F5GMEXA.js.map} +0 -0
  829. /package/dist/{imagePlot-OUHFWYKT.js.map → imagePlot-OA4WTMLU.js.map} +0 -0
  830. /package/dist/{importPlot-7V456QK7.js.map → importPlot-OSTC2GPO.js.map} +0 -0
  831. /package/dist/{isoformExpression-NGUJJ6VI.js.map → isoformExpression-LZ5RTUS5.js.map} +0 -0
  832. /package/dist/{isoformExpression.unit.spec-DCRPXPBY.js.map → isoformExpression.unit.spec-L6YDBKYM.js.map} +0 -0
  833. /package/dist/{junction-QYKLNXIW.js.map → junction-UR6COY3A.js.map} +0 -0
  834. /package/dist/{junction.customTerm-EHOOBR4V.js.map → junction.customTerm-TMV43R7Z.js.map} +0 -0
  835. /package/dist/{junction.unit.spec-LDNY7OFK.js.map → junction.unit.spec-NVBJTGA4.js.map} +0 -0
  836. /package/dist/{launch.adhoc-FF7B3UG6.js.map → launch.adhoc-AZG6QJG7.js.map} +0 -0
  837. /package/dist/{leftlabel.sample-BTHMKLGF.js.map → leftlabel.sample-LYZG25RT.js.map} +0 -0
  838. /package/dist/{lollipop-H3UCNMHN.js.map → lollipop-FJXVP5QM.js.map} +0 -0
  839. /package/dist/{maf-KWGUTPKO.js.map → maf-OXJIJD6D.js.map} +0 -0
  840. /package/dist/{maftimeline-UD5VE4UW.js.map → maftimeline-75N6ZXEM.js.map} +0 -0
  841. /package/dist/{matrix-DLCX6GOO.js.map → matrix-QFKGEW5A.js.map} +0 -0
  842. /package/dist/{matrix-TIV42IQB.js.map → matrix-XT7LUV5K.js.map} +0 -0
  843. /package/dist/{matrix.cells-J3QZ7C6U.js.map → matrix.cells-NB7LKKXV.js.map} +0 -0
  844. /package/dist/{matrix.config-VNMS6B7J.js.map → matrix.config-X6HS4UGD.js.map} +0 -0
  845. /package/dist/{matrix.data-PIE3TLKD.js.map → matrix.data-VLFF34SS.js.map} +0 -0
  846. /package/dist/{matrix.groups-URBU775S.js.map → matrix.groups-F62TSKIG.js.map} +0 -0
  847. /package/dist/{matrix.interactivity-W5AFOAQN.js.map → matrix.interactivity-2FBXB52E.js.map} +0 -0
  848. /package/dist/{matrix.layout-LU3NIJAL.js.map → matrix.layout-6TPVKLSX.js.map} +0 -0
  849. /package/dist/{matrix.legend-LTP6ETZO.js.map → matrix.legend-L4ULBMGX.js.map} +0 -0
  850. /package/dist/{matrix.renderers-762XI65L.js.map → matrix.renderers-DK6YRLO2.js.map} +0 -0
  851. /package/dist/{matrix.serieses-FHDBRPZA.js.map → matrix.serieses-DCRJLJ3H.js.map} +0 -0
  852. /package/dist/{matrix.sort-Q6A6UWMY.js.map → matrix.sort-XSGPH44J.js.map} +0 -0
  853. /package/dist/{matrix.sort.unit.spec-CTCOPKVS.js.map → matrix.sort.unit.spec-JF75F4I4.js.map} +0 -0
  854. /package/dist/{matrix.sorterUi-4M5AU5EL.js.map → matrix.sorterUi-WL5I6S3K.js.map} +0 -0
  855. /package/dist/{matrix.sorterUi.unit.spec-Y7GC3PM5.js.map → matrix.sorterUi.unit.spec-66JMV5BK.js.map} +0 -0
  856. /package/dist/{matrix.unit.spec-DROPHFTM.js.map → matrix.unit.spec-36AR4I43.js.map} +0 -0
  857. /package/dist/{mavb-BWA73N3U.js.map → mavb-ZH4RO77H.js.map} +0 -0
  858. /package/dist/{mds.fimo-3UJWIH2J.js.map → mds.fimo-MVP2G5PS.js.map} +0 -0
  859. /package/dist/{mds.samplescatterplot-EUS7DCSQ.js.map → mds.samplescatterplot-GYJ3OI4N.js.map} +0 -0
  860. /package/dist/{mds.survivalplot-77UEBQIC.js.map → mds.survivalplot-Q6MYQGTB.js.map} +0 -0
  861. /package/dist/{multivalue-KZ2DMVIR.js.map → multivalue-BGFMPH4X.js.map} +0 -0
  862. /package/dist/{numericDictTermCluster-C2MYJYPZ.js.map → numericDictTermCluster-FNNVLIWB.js.map} +0 -0
  863. /package/dist/{oncomatrix-6LGB3M7R.js.map → oncomatrix-LIIALWWN.js.map} +0 -0
  864. /package/dist/{oncomatrix.spec-UWMSLOHW.js.map → oncomatrix.spec-NEMLM2ZN.js.map} +0 -0
  865. /package/dist/{plot.2dvaf-LZAVWH65.js.map → plot.2dvaf-HJO3SKNK.js.map} +0 -0
  866. /package/dist/{plot.app-OEWE3AYV.js.map → plot.app-WSLFOFSR.js.map} +0 -0
  867. /package/dist/{plot.barplot-VIBHGTUT.js.map → plot.barplot-SPI5JA37.js.map} +0 -0
  868. /package/dist/{plot.boxplot-NQI3PSKR.js.map → plot.boxplot-4W3XEY5I.js.map} +0 -0
  869. /package/dist/{plot.brainImaging-3MTTCZHI.js.map → plot.brainImaging-KEOUTYIB.js.map} +0 -0
  870. /package/dist/{plot.disco-HODBY7SO.js.map → plot.disco-7IDMKNAQ.js.map} +0 -0
  871. /package/dist/{plot.ssgq-4URQE673.js.map → plot.ssgq-IOKUGDC4.js.map} +0 -0
  872. /package/dist/{plot.vaf2cov-QIJNEKCK.js.map → plot.vaf2cov-SFSZ6M43.js.map} +0 -0
  873. /package/dist/{polar2-GVFQNSLK.js.map → polar2-PLPE5TX5.js.map} +0 -0
  874. /package/dist/{profileForms-Z22CJXI4.js.map → profileForms-ZDHG67GM.js.map} +0 -0
  875. /package/dist/{profilePlot-IVQZBSID.js.map → profilePlot-UUZA2YG6.js.map} +0 -0
  876. /package/dist/{proteinView-AUK634AU.js.map → proteinView-GHS3XARL.js.map} +0 -0
  877. /package/dist/{proteomeCohortCompare-7G2F35H5.js.map → proteomeCohortCompare-TQ3BGIPS.js.map} +0 -0
  878. /package/dist/{pseudobulk-QTCUSH5I.js.map → pseudobulk-ODXYIUD5.js.map} +0 -0
  879. /package/dist/{qualitative-7ST7SSBT.js.map → qualitative-WOSYAIGQ.js.map} +0 -0
  880. /package/dist/{radar2-CEE6SNBS.js.map → radar2-2KXBS3Y3.js.map} +0 -0
  881. /package/dist/{radarFacility2-OSKDYIK7.js.map → radarFacility2-JCOKJQQF.js.map} +0 -0
  882. /package/dist/{rememberedGvQ.unit.spec-RYFUJ2NW.js.map → rememberedGvQ.unit.spec-DYRO2LO5.js.map} +0 -0
  883. /package/dist/{render-MAD3WMVD.js.map → render-IJ6GE3NE.js.map} +0 -0
  884. /package/dist/{report-6JXJVSEB.js.map → report-WLLFUA7L.js.map} +0 -0
  885. /package/dist/{sampleView-SG3QYZKQ.js.map → sampleView-LPKSYUNF.js.map} +0 -0
  886. /package/dist/{samplelst-R765UFP6.js.map → samplelst-MNI2MGMT.js.map} +0 -0
  887. /package/dist/{samplematrix-EBJYE5SM.js.map → samplematrix-KEKJP2B4.js.map} +0 -0
  888. /package/dist/{sc-7ZXPFDHD.js.map → sc-ZYKFRJU4.js.map} +0 -0
  889. /package/dist/{scatter-3GUL4KF3.js.map → scatter-BAEZOFWA.js.map} +0 -0
  890. /package/dist/{selectGenomeWithTklst-K4YXGJYG.js.map → selectGenomeWithTklst-HBHRXEDY.js.map} +0 -0
  891. /package/dist/{singleCellCellType-TU5VTPLP.js.map → singleCellCellType-PMFDV24B.js.map} +0 -0
  892. /package/dist/{singleCellCellType.unit.spec-IRITQIGT.js.map → singleCellCellType.unit.spec-ZLYDUDIY.js.map} +0 -0
  893. /package/dist/{singleCellGeneExpression-3IL52QDK.js.map → singleCellGeneExpression-SUYO3HR3.js.map} +0 -0
  894. /package/dist/{singleCellGeneExpression.unit.spec-WXC4C37T.js.map → singleCellGeneExpression.unit.spec-3N3HRXFN.js.map} +0 -0
  895. /package/dist/{singleCellPlot-XG3HZS7I.js.map → singleCellNumericValue-BV7C6Y34.js.map} +0 -0
  896. /package/dist/{snp-RMZRB426.js.map → singleCellPlot-BG7UJOHA.js.map} +0 -0
  897. /package/dist/{singlecell-BRF2HAV2.js.map → singlecell-BANNFGBS.js.map} +0 -0
  898. /package/dist/{singlecell-KVCJF2HI.js.map → singlecell-ZUTL5ZWE.js.map} +0 -0
  899. /package/dist/{ssGSEA-7RKWYZKX.js.map → snp-BHG4NVK4.js.map} +0 -0
  900. /package/dist/{snp.unit.spec-JF6KR2NT.js.map → snp.unit.spec-Q3AZHQRC.js.map} +0 -0
  901. /package/dist/{snplocus-AHUFHQ3Q.js.map → snplocus-HTJL63M3.js.map} +0 -0
  902. /package/dist/{spliceevent.a53ss.diagram-OSZZ2CF2.js.map → spliceevent.a53ss.diagram-UKRIP7EP.js.map} +0 -0
  903. /package/dist/{spliceevent.exonskip.diagram-AMA2D2OL.js.map → spliceevent.exonskip.diagram-CU777CXQ.js.map} +0 -0
  904. /package/dist/{spliceevent.noeventdiagram-RKTUXH5D.js.map → spliceevent.noeventdiagram-LGLXCF25.js.map} +0 -0
  905. /package/dist/{summarizeMutationDiagnosis-GCL4SRON.js.map → ssGSEA-BIEEKAKX.js.map} +0 -0
  906. /package/dist/{ssGSEA.unit.spec-XLCZHH7S.js.map → ssGSEA.unit.spec-YD4UDIRH.js.map} +0 -0
  907. /package/dist/{stattable-NDYUCLVZ.js.map → stattable-LFR3RSD6.js.map} +0 -0
  908. /package/dist/{studyCatalog-TAXRF5NS.js.map → studyCatalog-RINIZ277.js.map} +0 -0
  909. /package/dist/{summarizeCnvGeneexp-3QLHU6N7.js.map → summarizeCnvGeneexp-ZQFNPR65.js.map} +0 -0
  910. /package/dist/{summarizeGeneexpSurvival-ARI4MPFX.js.map → summarizeGeneexpSurvival-GIS7XMMH.js.map} +0 -0
  911. /package/dist/{summarizeMutationCnv-W7V7CKPI.js.map → summarizeMutationCnv-FWF7YIGR.js.map} +0 -0
  912. /package/dist/{summary-OUYDWLBF.js.map → summarizeMutationDiagnosis-V5L2OKTK.js.map} +0 -0
  913. /package/dist/{summarizeMutationSurvival-6TTMSRRX.js.map → summarizeMutationSurvival-LAUUF6XN.js.map} +0 -0
  914. /package/dist/{termCollection-7P3WU6X6.js.map → summary-OMU3ACNE.js.map} +0 -0
  915. /package/dist/{summary.integration.spec-4GTCG6HY.js.map → summary.integration.spec-6JZAT73L.js.map} +0 -0
  916. /package/dist/{summaryInput-UK3TLC7M.js.map → summaryInput-QIKL3HDD.js.map} +0 -0
  917. /package/dist/{sunburst-2UFHMNH3.js.map → sunburst-32IW2R57.js.map} +0 -0
  918. /package/dist/{survival-SPWYSDVB.js.map → survival-BMOPVAN2.js.map} +0 -0
  919. /package/dist/{survival-TL6UZ6FQ.js.map → survival-H5AWMQ36.js.map} +0 -0
  920. /package/dist/{svgraph-Z543MLIN.js.map → svgraph-B75FS3BB.js.map} +0 -0
  921. /package/dist/{svmr-SZCAOAIF.js.map → svmr-IUEUOHVO.js.map} +0 -0
  922. /package/dist/{table-IAQ6J4DO.js.map → table-YAAH7WR6.js.map} +0 -0
  923. /package/dist/{termCollection-3NGHR7QN.js.map → termCollection-7F5ZG2DB.js.map} +0 -0
  924. /package/dist/{termCollectionFractionSelection-YKIE6BME.js.map → termCollection-KNFUELYY.js.map} +0 -0
  925. /package/dist/{termCollection.unit.spec-EPYC7LOA.js.map → termCollection.unit.spec-S6M6QC4C.js.map} +0 -0
  926. /package/dist/{tk-X454XH5N.js.map → termCollectionFractionSelection-X22VMJWY.js.map} +0 -0
  927. /package/dist/{termCollectionFractionSelection.unit.spec-AG2CZPGZ.js.map → termCollectionFractionSelection.unit.spec-ELU6SD7P.js.map} +0 -0
  928. /package/dist/{tvs.dt-U77PCG6X.js.map → tk-TT666UVE.js.map} +0 -0
  929. /package/dist/{tk-TOXMU4GT.js.map → tk-UOPNJ323.js.map} +0 -0
  930. /package/dist/{tp.ui-FDQ76KPL.js.map → tp.ui-HGAHRKO5.js.map} +0 -0
  931. /package/dist/{vocabulary-64GO4YDB.js.map → tvs.dt-H7YYR4EB.js.map} +0 -0
  932. /package/dist/{tvs.dtcnv.categorical-XYZU4XLO.js.map → tvs.dtcnv.categorical-IPJTKGMF.js.map} +0 -0
  933. /package/dist/{tvs.dtcnv.continuous-4GJILFGP.js.map → tvs.dtcnv.continuous-XY5XZ4GH.js.map} +0 -0
  934. /package/dist/{tvs.dtfusion-7YROAHVI.js.map → tvs.dtfusion-VFCBMXRM.js.map} +0 -0
  935. /package/dist/{tvs.dtitd-MIYU4ZHH.js.map → tvs.dtitd-RZVW6FTR.js.map} +0 -0
  936. /package/dist/{tvs.dtsnvindel-XLDY7KWB.js.map → tvs.dtsnvindel-IDPJWSGC.js.map} +0 -0
  937. /package/dist/{tvs.dtsv-YMLJ37YR.js.map → tvs.dtsv-QERP756F.js.map} +0 -0
  938. /package/dist/{tvs.samplelst-KIVEXJKD.js.map → tvs.samplelst-6KNDHBIU.js.map} +0 -0
  939. /package/dist/{tvs.termCollection-4CQV3EB3.js.map → tvs.termCollection-GWPJK3NE.js.map} +0 -0
  940. /package/dist/{wsi.direct-5MQVRJZX.js.map → wsi.direct-2RBCBXDA.js.map} +0 -0
@@ -0,0 +1,2245 @@
1
+ import {
2
+ blocklazyload
3
+ } from "./chunk-VFUSBU43.js";
4
+ import {
5
+ hicParseFile
6
+ } from "./chunk-QXDGIQYA.js";
7
+ import {
8
+ AppBase,
9
+ ColorScale,
10
+ axisstyle,
11
+ first_genetrack_tolist,
12
+ font,
13
+ newpane,
14
+ showErrorsWithCounter,
15
+ tkt
16
+ } from "./chunk-C3HEDQPT.js";
17
+ import "./chunk-HJ6L54YS.js";
18
+ import "./chunk-KV4W2ACA.js";
19
+ import "./chunk-B6UXFX73.js";
20
+ import {
21
+ Menu
22
+ } from "./chunk-ELJX3QIQ.js";
23
+ import "./chunk-3FEP6B5T.js";
24
+ import "./chunk-EEB5VE2A.js";
25
+ import "./chunk-6RRZRISL.js";
26
+ import "./chunk-2KM4PRQM.js";
27
+ import {
28
+ dofetch3
29
+ } from "./chunk-OBDIJ4QS.js";
30
+ import "./chunk-6FG6JFZP.js";
31
+ import "./chunk-3XBG5HIV.js";
32
+ import {
33
+ bplen
34
+ } from "./chunk-SB36AUG7.js";
35
+ import {
36
+ StoreBase,
37
+ getAppInit,
38
+ getCompInit,
39
+ getStoreInit
40
+ } from "./chunk-WINIL2KN.js";
41
+ import "./chunk-PF4DSFDR.js";
42
+ import "./chunk-7X6NF7NI.js";
43
+ import "./chunk-W5J3LTYS.js";
44
+ import {
45
+ axisBottom,
46
+ axisRight
47
+ } from "./chunk-Z2ZITHT4.js";
48
+ import {
49
+ format,
50
+ linear
51
+ } from "./chunk-4OLM3KSB.js";
52
+ import "./chunk-FXQXCOII.js";
53
+ import "./chunk-TLT4YIG3.js";
54
+ import "./chunk-5R63Q5KH.js";
55
+ import {
56
+ pointer_default,
57
+ select_default
58
+ } from "./chunk-I6Y4O3RR.js";
59
+ import "./chunk-Q5RDQNIT.js";
60
+ import "./chunk-DQC5FFGV.js";
61
+ import "./chunk-HS5PO5ZQ.js";
62
+
63
+ // tracks/hic/HicStore.ts
64
+ var HicStore = class _HicStore extends StoreBase {
65
+ constructor(opts) {
66
+ super(opts);
67
+ this.views = ["genome", "chrpair", "detail", "horizontal"];
68
+ this.type = _HicStore.type;
69
+ this.defaultState = {
70
+ defaultNmeth: "NONE",
71
+ loading: true,
72
+ minBinNum_bp: 200,
73
+ minFragSpan: 200,
74
+ initialBinNum: 20,
75
+ settings: {
76
+ widthHeightPx: 800
77
+ }
78
+ };
79
+ }
80
+ static {
81
+ this.type = "store";
82
+ }
83
+ init() {
84
+ this.state = Object.assign({}, this.defaultState, this.state);
85
+ }
86
+ };
87
+ var hicStoreInit = getStoreInit(HicStore);
88
+ HicStore.prototype.actions = {
89
+ view_create(action) {
90
+ if (!action.view) throw Error("view_create: missing view");
91
+ if (!this.views.some((v) => v == action.view)) throw Error(`view_create: unknown view = ${action.view}`);
92
+ this.state.currView = action.view;
93
+ const opts = Object.assign(this.state, action.config);
94
+ this.state = opts;
95
+ },
96
+ view_update(action) {
97
+ if (action.view) {
98
+ if (!this.views.some((v) => v == action.view)) throw Error(`view_update: unknown view = ${action.view}`);
99
+ const opts = Object.assign(this.state[action.view], action.config);
100
+ this.state[action.view] = opts;
101
+ } else {
102
+ const opts = Object.assign(this.state, action.config);
103
+ this.state = opts;
104
+ }
105
+ },
106
+ loading_active(action) {
107
+ this.state.loading = action.active;
108
+ }
109
+ };
110
+
111
+ // tracks/hic/dom/LoadingOverlay.ts
112
+ var LoadingOverlay = class _LoadingOverlay {
113
+ constructor(opts) {
114
+ this.hasStatePreMain = true;
115
+ this.type = _LoadingOverlay.type;
116
+ this.app = opts.app;
117
+ this.loadingDiv = opts.loadingDiv;
118
+ }
119
+ static {
120
+ this.type = "loadingOverlay";
121
+ }
122
+ reactsTo(action) {
123
+ if (action.type.startsWith("loading")) return true;
124
+ else return false;
125
+ }
126
+ getState(appState) {
127
+ return appState;
128
+ }
129
+ init() {
130
+ this.loadingDiv.append("div").attr("class", "sjpp-spinner").style("display", "");
131
+ }
132
+ main(appState) {
133
+ const loading = this.app.getState(appState).loading;
134
+ this.loadingDiv.style("display", loading ? "" : "none");
135
+ }
136
+ };
137
+ var loadingInit = getCompInit(LoadingOverlay);
138
+
139
+ // tracks/hic/dom/ColorizeElement.ts
140
+ var ColorizeElement = class {
141
+ colorizeElement(xCoord, yCoord, v, obj, width, height, bpMinV, bpMaxV, currView) {
142
+ if (v >= 0) {
143
+ const p = v >= bpMaxV ? 0 : v <= bpMinV ? 255 : Math.floor(255 * (bpMaxV - v) / bpMaxV);
144
+ const positiveFill = `rgb(255, ${p}, ${p})`;
145
+ if (currView === "genome") {
146
+ obj.ctx.fillStyle = positiveFill;
147
+ obj.ctx2.fillStyle = positiveFill;
148
+ } else {
149
+ obj.fillStyle = positiveFill;
150
+ }
151
+ } else {
152
+ const p = v <= bpMinV ? 255 : Math.floor(255 * (bpMaxV + v) / bpMaxV);
153
+ const negativeFill = `rgb(${p}, ${p}, 255)`;
154
+ if (currView === "genome") {
155
+ obj.ctx.fillStyle = negativeFill;
156
+ obj.ctx2.fillStyle = negativeFill;
157
+ } else {
158
+ obj.fillStyle = negativeFill;
159
+ }
160
+ }
161
+ if (currView === "genome") {
162
+ obj.ctx.fillRect(yCoord, xCoord, width, height);
163
+ obj.ctx2.fillRect(xCoord, yCoord, width, height);
164
+ } else {
165
+ obj.fillRect(xCoord, yCoord, width, height);
166
+ }
167
+ }
168
+ };
169
+
170
+ // tracks/hic/data/Resolution.ts
171
+ var Resolution = class {
172
+ constructor(error) {
173
+ this.error = error;
174
+ }
175
+ getResolution(state, hic) {
176
+ if (state.currView == "genome") return hic["bpresolution"][0];
177
+ if (state.currView == "chrpair") {
178
+ const resolution = this.getChrPairResolution(hic, state.x, state.y, state.minBinNum_bp);
179
+ return resolution;
180
+ } else if (state.currView == "detail") {
181
+ const maxBpWidth = Math.max(state.x.stop - state.x.start, state.y.stop - state.y.start);
182
+ let resolution = this.findResFromArray(maxBpWidth, state.minBinNum_bp, hic.bpresolution);
183
+ if (resolution == null && !hic.enzyme) {
184
+ resolution = hic.bpresolution[hic.bpresolution.length - 1];
185
+ }
186
+ return resolution;
187
+ } else {
188
+ this.error(`Unknown view: ${state.currView}`);
189
+ throw `Unknown view: ${state.currView}`;
190
+ }
191
+ }
192
+ getChrPairResolution(hic, x, y, minBinNum_bp) {
193
+ const chrxlen = hic.genome.chrlookup[x.chr.toUpperCase()].len;
194
+ const chrylen = hic.genome.chrlookup[y.chr.toUpperCase()].len;
195
+ const maxchrlen = Math.max(chrxlen, chrylen);
196
+ const resolution = this.findResFromArray(maxchrlen, minBinNum_bp, hic.bpresolution);
197
+ if (resolution == null) {
198
+ this.error(`No suitable resolution for ${x.chr}-${y.chr} pair.`);
199
+ return;
200
+ }
201
+ return resolution;
202
+ }
203
+ findResFromArray(max, defaultValue, resolutionArray, returnNum) {
204
+ let resolution = null;
205
+ for (const res of resolutionArray) {
206
+ if (max / res > defaultValue) {
207
+ resolution = res;
208
+ break;
209
+ }
210
+ }
211
+ if (returnNum && resolution == null) {
212
+ resolution = resolutionArray[resolutionArray.length - 1];
213
+ }
214
+ return resolution;
215
+ }
216
+ getDefaultViewSpan(hic, x, y, initialBinNum, minBinNum_bp) {
217
+ const chrpairResolution = this.getChrPairResolution(hic, x, y, minBinNum_bp);
218
+ if (!chrpairResolution) return;
219
+ return chrpairResolution * initialBinNum;
220
+ }
221
+ };
222
+
223
+ // tracks/hic/data/Positions.ts
224
+ var Positions = class {
225
+ constructor(error, minBinNum_bp) {
226
+ this.error = error;
227
+ this.resolution = new Resolution(this.error);
228
+ this.minBinNum_bp = minBinNum_bp;
229
+ }
230
+ /**
231
+ *
232
+ * @param x x coordinate of pointer
233
+ * @param y y coordinate of pointer
234
+ * @param binpx
235
+ * @param chrx x chr from state
236
+ * @param chry y chr from state
237
+ * @param hic
238
+ * @param initialBinNum Set in the state
239
+ * @returns
240
+ */
241
+ setPosition(x, y, binpx, chrx, chry, hic, initialBinNum) {
242
+ const resolution = this.resolution.getChrPairResolution(hic, chrx, chry, this.minBinNum_bp);
243
+ const viewrangebpw = resolution * initialBinNum;
244
+ let coordx = Math.max(1, Math.floor(x * resolution / binpx) - viewrangebpw / 2);
245
+ let coordy = Math.max(1, Math.floor(y * resolution / binpx) - viewrangebpw / 2);
246
+ {
247
+ const lenx = hic.genome.chrlookup[chrx.chr.toUpperCase()].len;
248
+ if (coordx + viewrangebpw >= lenx) {
249
+ coordx = lenx - viewrangebpw;
250
+ }
251
+ const leny = hic.genome.chrlookup[chry.chr.toUpperCase()].len;
252
+ if (coordy + viewrangebpw > leny) {
253
+ coordy = leny - viewrangebpw;
254
+ }
255
+ }
256
+ const xObj = {
257
+ chr: chrx.chr,
258
+ start: coordx,
259
+ stop: coordx + viewrangebpw
260
+ };
261
+ const yObj = {
262
+ chr: chry.chr,
263
+ start: coordy,
264
+ stop: coordy + viewrangebpw
265
+ };
266
+ return [xObj, yObj];
267
+ }
268
+ };
269
+
270
+ // tracks/hic/data/GridElementsFormattedData.ts
271
+ var GridElementsFormattedData = class {
272
+ /**
273
+ * Format the data for the grid elements.
274
+ * @param items The data to format.
275
+ * @param binpx The bin size in pixels.
276
+ * @param resolution The resolution.
277
+ * @param isFirstChrX Whether the first chromosome is X. Used for chrpair view.
278
+ * @param isIntraChr Whether the data is intra-chromosomal. Used for chrpair view
279
+ * @returns The formatted data.
280
+ */
281
+ formatData(view, items, binpx, resolution, isFirstChrX, isIntraChr) {
282
+ const formattedData = [];
283
+ for (const [xCoord, yCoord, value] of items) {
284
+ const xPx = Math.floor(xCoord / resolution) * binpx;
285
+ const yPx = Math.floor(yCoord / resolution) * binpx;
286
+ if (view == "genome") {
287
+ formattedData.push([xPx, yPx, value]);
288
+ }
289
+ if (view == "chrpair") {
290
+ const x = isFirstChrX ? xPx : yPx;
291
+ const y = isFirstChrX ? yPx : xPx;
292
+ formattedData.push([x, y, value]);
293
+ if (isIntraChr) {
294
+ formattedData.push([y, x, value]);
295
+ }
296
+ }
297
+ }
298
+ return formattedData;
299
+ }
300
+ };
301
+
302
+ // tracks/hic/data/FirstChrX.ts
303
+ var FirstChrX = class {
304
+ constructor(chrorder, chrx, chry) {
305
+ this.chrorder = chrorder;
306
+ this.chrx = chrx;
307
+ this.chry = chry;
308
+ }
309
+ isFirstX() {
310
+ if (this.chrx == this.chry) return true;
311
+ return this.chrorder.indexOf(this.chrx) < this.chrorder.indexOf(this.chry);
312
+ }
313
+ };
314
+
315
+ // tracks/hic/chrpair/ChrPairView.ts
316
+ var ChrPairView = class {
317
+ constructor(opts) {
318
+ this.binpx = 1;
319
+ /** padding on the ends of x/y chr coordinate axes */
320
+ this.axispad = 10;
321
+ this.axisLabelFontSize = 15;
322
+ this.calcResolution = null;
323
+ this.data = [];
324
+ this.app = opts.app;
325
+ this.hic = opts.hic;
326
+ this.plotDiv = opts.plotDiv;
327
+ this.items = opts.items;
328
+ this.parent = opts.parent;
329
+ this.chrxlen = this.hic.genome.chrlookup[this.parent("state").x.chr.toUpperCase()].len;
330
+ this.chrylen = this.hic.genome.chrlookup[this.parent("state").y.chr.toUpperCase()].len;
331
+ this.maxchrlen = Math.max(this.chrxlen, this.chrylen);
332
+ this.colorizeElement = new ColorizeElement();
333
+ this.positions = new Positions(opts.error, this.parent("state").minBinNum_bp);
334
+ this.formattedData = new GridElementsFormattedData();
335
+ }
336
+ setDefaultBinpx() {
337
+ if (this.calcResolution == null) return;
338
+ while (this.binpx * this.maxchrlen / this.calcResolution < 600) {
339
+ this.binpx++;
340
+ }
341
+ }
342
+ renderAxes() {
343
+ if (this.calcResolution == null) return;
344
+ const svgY = this.plotDiv.yAxis.append("svg");
345
+ const h = Math.ceil(this.chrylen / this.calcResolution) * this.binpx;
346
+ svgY.attr("width", 100).attr("height", this.axispad * 2 + h);
347
+ 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)");
348
+ axisstyle({
349
+ axis: svgY.append("g").attr("transform", `translate(1, ${this.axispad})`).call(axisRight(linear().domain([0, this.chrylen]).range([0, h])).tickFormat(format(".2s"))),
350
+ showline: true
351
+ });
352
+ const svgX = this.plotDiv.xAxis.append("svg").style("margin-top", "-4px");
353
+ const w = Math.ceil(this.chrxlen / this.calcResolution) * this.binpx;
354
+ svgX.attr("height", 100).attr("width", this.axispad * 2 + w);
355
+ 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);
356
+ axisstyle({
357
+ axis: svgX.append("g").attr("transform", "translate(" + this.axispad + ",1)").call(axisBottom(linear().domain([0, this.chrxlen]).range([0, w])).tickFormat(format(".2s"))),
358
+ showline: true
359
+ });
360
+ }
361
+ renderCanvas() {
362
+ const initDetailView = this.initDetailView.bind(this);
363
+ this.canvas = this.plotDiv.plot.append("canvas").attr("data-testid", "sjpp-chrpair-canvas").style("margin", this.axispad + "px").on("click", async function(event) {
364
+ const [x, y] = pointer_default(event, this);
365
+ initDetailView(x, y);
366
+ }).node();
367
+ this.canvas.width = Math.ceil(this.chrxlen / this.calcResolution) * this.binpx;
368
+ this.canvas.height = Math.ceil(this.chrylen / this.calcResolution) * this.binpx;
369
+ this.ctx = this.canvas.getContext("2d");
370
+ }
371
+ initDetailView(x, y) {
372
+ const [xObj, yObj] = this.positions.setPosition(
373
+ x,
374
+ y,
375
+ this.binpx,
376
+ this.parent("state").x,
377
+ this.parent("state").y,
378
+ this.hic,
379
+ this.parent("state").initialBinNum
380
+ );
381
+ this.app.dispatch({
382
+ type: "view_create",
383
+ view: "detail",
384
+ config: {
385
+ x: xObj,
386
+ y: yObj
387
+ }
388
+ });
389
+ }
390
+ render() {
391
+ this.calcResolution = this.parent("calcResolution");
392
+ this.setDefaultBinpx();
393
+ this.renderAxes();
394
+ this.renderCanvas();
395
+ this.update(this.items);
396
+ }
397
+ update(items) {
398
+ this.items = items;
399
+ const firstisx = new FirstChrX(this.hic.chrorder, this.parent("state").x.chr, this.parent("state").y.chr).isFirstX();
400
+ const isintrachr = this.parent("state").x.chr === this.parent("state").y.chr;
401
+ this.data = this.formattedData.formatData(
402
+ "chrpair",
403
+ items.items,
404
+ this.binpx,
405
+ this.calcResolution,
406
+ firstisx,
407
+ isintrachr
408
+ );
409
+ this.ctx.clearRect(0, 0, this.canvas.width, this.canvas.height);
410
+ for (const [x, y, v] of this.data) {
411
+ this.colorizeElement.colorizeElement(
412
+ x,
413
+ y,
414
+ v,
415
+ this.ctx,
416
+ this.binpx,
417
+ //width
418
+ this.binpx,
419
+ //height
420
+ this.parent("min"),
421
+ this.parent("max"),
422
+ "chrpair"
423
+ );
424
+ }
425
+ this.app.dispatch({ type: "loading_active", active: false });
426
+ }
427
+ };
428
+
429
+ // tracks/hic/horizontal/HorizontalView.ts
430
+ var HorizontalView = class {
431
+ constructor(opts) {
432
+ /** Defaults*/
433
+ this.maxPercentage = 5;
434
+ this.subPanelPxWidth = 600;
435
+ this.borderColor = "rgba(200,0,0,.1)";
436
+ this.app = opts.app;
437
+ this.hic = opts.hic;
438
+ this.plotDiv = opts.plotDiv;
439
+ this.items = opts.items;
440
+ this.parent = opts.parent;
441
+ }
442
+ setRunPpTracks() {
443
+ const tracks = [
444
+ {
445
+ type: "hicstraw",
446
+ file: this.hic.file,
447
+ url: this.hic.url,
448
+ name: this.hic.name,
449
+ enzyme: this.hic.enzyme,
450
+ maxpercentage: this.maxPercentage,
451
+ pyramindup: 1
452
+ }
453
+ ];
454
+ if (this.hic.tklst) {
455
+ for (const t of this.hic.tklst) {
456
+ tracks.push(t);
457
+ }
458
+ }
459
+ first_genetrack_tolist(this.hic.genome, tracks);
460
+ return tracks;
461
+ }
462
+ setRunPpArgs(tracks) {
463
+ const arg = {
464
+ holder: this.plotDiv.plot,
465
+ hostURL: this.hic.hostURL,
466
+ jwt: this.hic.jwt,
467
+ genome: this.hic.genome,
468
+ nobox: 1,
469
+ tklst: tracks
470
+ };
471
+ const state = this.parent("state");
472
+ if (state.x.chr == state.y.chr && Math.max(state.x.start, state.y.start) < Math.min(state.x.stop, state.y.stop)) {
473
+ arg["chr"] = state.x.chr;
474
+ arg["start"] = Math.min(state.x.start, state.y.start);
475
+ arg["stop"] = Math.max(state.x.stop, state.y.stop);
476
+ } else {
477
+ arg["chr"] = state.x.chr;
478
+ arg["start"] = state.x.start;
479
+ arg["stop"] = state.x.stop;
480
+ arg["width"] = this.subPanelPxWidth;
481
+ arg["subpanels"] = [
482
+ {
483
+ chr: state.y.chr,
484
+ start: state.y.start,
485
+ stop: state.y.stop,
486
+ width: this.subPanelPxWidth,
487
+ leftpad: 10,
488
+ leftborder: this.borderColor
489
+ }
490
+ ];
491
+ }
492
+ return arg;
493
+ }
494
+ render() {
495
+ const tracks = this.setRunPpTracks();
496
+ const arg = this.setRunPpArgs(tracks);
497
+ blocklazyload(arg);
498
+ }
499
+ // update() {
500
+ // //Not required.
501
+ // //If controls are added back. Implement changes here.
502
+ // }
503
+ };
504
+
505
+ // tracks/hic/detail/DetailBlock.ts
506
+ var DetailBlock = class {
507
+ constructor(app, hic, blockwidth, bbmargin, holder, isYblock) {
508
+ /** Defaults */
509
+ this.leftheadw = 20;
510
+ this.rightheadw = 40;
511
+ this.lpad = 1;
512
+ this.rpad = 1;
513
+ this.firstRender = true;
514
+ this.app = app;
515
+ this.hic = hic;
516
+ this.width = blockwidth;
517
+ this.bbmargin = bbmargin;
518
+ this.holder = holder;
519
+ this.isYblock = isYblock;
520
+ this.bbw = this.leftheadw + this.lpad + this.width + this.rpad + this.rightheadw + 2 * this.bbmargin;
521
+ this.defaultLeft = this.bbmargin + this.leftheadw + this.lpad;
522
+ this.defaultTop = this.bbmargin + this.rightheadw + this.rpad;
523
+ }
524
+ setArgs(chrObj) {
525
+ const runPpArgs = {
526
+ hostURL: this.hic.hostURL,
527
+ genome: this.hic.genome,
528
+ holder: this.holder,
529
+ noresize: true,
530
+ nobox: true,
531
+ butrowbottom: true,
532
+ style: {
533
+ margin: `${this.bbmargin}px`
534
+ },
535
+ width: this.width,
536
+ leftheadw: this.leftheadw,
537
+ chr: chrObj.chr,
538
+ start: chrObj.start,
539
+ stop: chrObj.stop,
540
+ rightheadw: this.rightheadw,
541
+ tklst: [],
542
+ rotated: this.isYblock,
543
+ showreverse: this.isYblock
544
+ };
545
+ first_genetrack_tolist(this.hic.genome, runPpArgs.tklst);
546
+ return runPpArgs;
547
+ }
548
+ setMethods(canvasHolder, canvas, sheath) {
549
+ const runPpMethods = {
550
+ onloadalltk_always: () => {
551
+ this.onload(canvasHolder, canvas, sheath);
552
+ },
553
+ onpanning: (xoff) => this.onpanning(xoff, canvas)
554
+ };
555
+ if (this.isYblock) {
556
+ runPpMethods["onsetheight"] = (bbh) => {
557
+ this.holder.transition().style("left", `${bbh + this.bbmargin + 30}px`);
558
+ };
559
+ }
560
+ return runPpMethods;
561
+ }
562
+ onload(canvasHolder, canvas, sheath) {
563
+ this.bbw = this.block.leftheadw + this.block.lpad + this.block.width + this.block.rpad + this.block.rightheadw + 2 * this.bbmargin;
564
+ if (this.isYblock) {
565
+ sheath.transition().style("height", `${this.bbw}px`);
566
+ canvasHolder.style("height", `${this.bbw}px`);
567
+ } else canvasHolder.style("width", `${this.bbw}px`);
568
+ if (this.isYblock) {
569
+ this.defaultTop = this.bbmargin + this.block.rightheadw + this.block.rpad;
570
+ canvas.style("top", `${this.defaultTop}px`);
571
+ } else {
572
+ this.defaultLeft = this.bbmargin + this.block.leftheadw + this.block.lpad;
573
+ canvas.style("left", `${this.defaultLeft}px`);
574
+ }
575
+ const config = {
576
+ [this.isYblock ? "y" : "x"]: {
577
+ chr: this.block.rglst[0].chr,
578
+ start: this.block.rglst[0].start,
579
+ stop: this.block.rglst[0].stop
580
+ }
581
+ };
582
+ if (this.firstRender == false) {
583
+ this.app.dispatch({
584
+ type: "view_update",
585
+ config
586
+ });
587
+ } else {
588
+ this.firstRender = false;
589
+ }
590
+ }
591
+ onpanning(xoff, canvas) {
592
+ if (!this.isYblock) canvas.style("left", `${xoff + this.defaultLeft}px`);
593
+ else canvas.style("top", `${-xoff + this.defaultTop}px`);
594
+ }
595
+ async loadBlock(chrObj, canvasHolder, canvas, sheath) {
596
+ const runPpArgs = this.setArgs(chrObj);
597
+ const runPpMethods = this.isYblock ? this.setMethods(canvasHolder, canvas, sheath) : this.setMethods(canvasHolder, canvas);
598
+ const args = Object.assign(runPpArgs, runPpMethods);
599
+ await blocklazyload(args).then(async (block) => {
600
+ this.block = block;
601
+ });
602
+ }
603
+ };
604
+
605
+ // tracks/hic/data/DetailDataFetcher.ts
606
+ var DetailDataFetcher = class {
607
+ constructor(errList) {
608
+ this.obj = {
609
+ rglst: []
610
+ };
611
+ this.errList = errList;
612
+ }
613
+ isFragData(hic, resolution) {
614
+ if (resolution != null) return;
615
+ if (!hic.enzyme) {
616
+ resolution = hic.bpresolution[hic.bpresolution.length - 1];
617
+ return;
618
+ }
619
+ }
620
+ formatFragArgs(enzymefile, chr) {
621
+ const arg = {
622
+ getdata: 1,
623
+ getBED: 1,
624
+ file: enzymefile,
625
+ rglst: [chr]
626
+ };
627
+ return arg;
628
+ }
629
+ /**
630
+ * @param arg Formated obj from either fn above
631
+ * @param errList
632
+ * @returns
633
+ */
634
+ async getBedData(arg) {
635
+ try {
636
+ return await dofetch3("tkbedj", { method: "POST", body: JSON.stringify(arg) });
637
+ } catch (e) {
638
+ this.errList.push(e.message || e);
639
+ if (e.stack) console.error(e.stack);
640
+ }
641
+ }
642
+ async getXFragData(hic, resolution, chrx) {
643
+ this.isFragData(hic, resolution);
644
+ if (!hic.enzymefile) return;
645
+ const reqArgs = this.formatFragArgs(hic.enzymefile, chrx);
646
+ return await this.getBedData(reqArgs);
647
+ }
648
+ async getYFragData(hic, chry) {
649
+ const reqArgs = this.formatFragArgs(hic.enzymefile, chry);
650
+ return await this.getBedData(reqArgs);
651
+ }
652
+ /**
653
+ * Separate request from data fetch
654
+ * Returns the additional fragment data
655
+ * @param fragCoords
656
+ */
657
+ async fetchData(hic, detailView, resolution, x, y, fragCoords) {
658
+ const fragStrawArgs = {
659
+ matrixType: detailView.matrixType,
660
+ file: hic.file,
661
+ url: hic.url,
662
+ pos1: this.determinePosition(hic, x, fragCoords?.x),
663
+ pos2: this.determinePosition(hic, y, fragCoords?.y),
664
+ nmeth: detailView.nmeth,
665
+ resolution
666
+ };
667
+ if (fragCoords) fragStrawArgs["isfrag"] = true;
668
+ try {
669
+ const data = dofetch3("hicdata?", {
670
+ method: "POST",
671
+ body: JSON.stringify(fragStrawArgs)
672
+ });
673
+ if (data.error) {
674
+ this.errList.push(data.error);
675
+ }
676
+ return data;
677
+ } catch (e) {
678
+ this.errList.push(e.message || e);
679
+ if (e.stack) console.error(e.stack);
680
+ }
681
+ }
682
+ determinePosition(hic, chr, fragCoord) {
683
+ if (fragCoord) {
684
+ return `${hic.nochr ? chr.chr.replace("chr", "") : chr.chr}:${fragCoord.start}:${fragCoord.stop}`;
685
+ } else {
686
+ return `${hic.nochr ? chr.chr.replace("chr", "") : chr.chr}:${chr.start}:${chr.stop}`;
687
+ }
688
+ }
689
+ };
690
+
691
+ // tracks/hic/data/ParseFragData.ts
692
+ var ParseFragData = class {
693
+ constructor(errLst, items) {
694
+ this.id2coord = /* @__PURE__ */ new Map();
695
+ this.min = null;
696
+ this.max = null;
697
+ this.items = [];
698
+ this.errLst = errLst;
699
+ for (const i of items) {
700
+ if (!i.rest || !i.rest[0]) {
701
+ this.errLst.push("items[].rest data problem");
702
+ }
703
+ const id = Number.parseInt(i.rest[0]);
704
+ if (Number.isNaN(id)) {
705
+ this.errLst.push(`${i.start}.${i.stop} invalid fragment id: ${i.rest[0]}`);
706
+ }
707
+ this.id2coord.set(id, [i.start, i.stop]);
708
+ if (this.min == null) {
709
+ this.min = id;
710
+ this.max = id;
711
+ } else {
712
+ this.min = Math.min(this.min, id);
713
+ this.max = Math.max(this.max, id);
714
+ }
715
+ }
716
+ }
717
+ };
718
+
719
+ // tracks/hic/data/DetailDataMapper.ts
720
+ var DetailDataMapper = class {
721
+ constructor(hic, errList, parent) {
722
+ this.frag = {
723
+ x: {},
724
+ y: {}
725
+ };
726
+ this.hic = hic;
727
+ this.errList = errList;
728
+ this.dataFetcher = new DetailDataFetcher(errList);
729
+ this.parent = parent;
730
+ }
731
+ async getFragData(chrx, chry) {
732
+ try {
733
+ const xFragData = await this.dataFetcher.getXFragData(this.hic, this.parent("calcResolution"), chrx);
734
+ if (xFragData) {
735
+ if (!xFragData.items) {
736
+ this.errList.push(`No fragment data returned for ${chrx.chr}:${chrx.start}-${chrx.stop}`);
737
+ return;
738
+ }
739
+ const xParse = new ParseFragData(this.errList, xFragData.items);
740
+ if (this.errList.length) return;
741
+ this.frag.x = {
742
+ id2coord: xParse.id2coord,
743
+ start: xParse.min,
744
+ stop: xParse.max
745
+ };
746
+ const yFragData = await this.dataFetcher.getYFragData(this.hic, chry);
747
+ if (this.errList.length) return;
748
+ if (yFragData) {
749
+ if (!yFragData.items) {
750
+ this.errList.push(`No fragment data returned for ${chry.chr}:${chry.start}-${chry.stop}`);
751
+ return;
752
+ }
753
+ const yParse = new ParseFragData(this.errList, yFragData.items);
754
+ if (this.errList.length) return;
755
+ this.frag.y = {
756
+ id2coord: /* @__PURE__ */ new Map(),
757
+ start: yParse.min,
758
+ stop: yParse.max
759
+ };
760
+ this.determineMap(yParse.id2coord, chrx, chry);
761
+ }
762
+ }
763
+ } catch (e) {
764
+ this.errList.push(e.message || e);
765
+ if (e.stack) console.error(e.stack);
766
+ }
767
+ }
768
+ determineMap(map, chrx, chry) {
769
+ if (chrx.chr == chry.chr) {
770
+ for (const [id, pos] of map) {
771
+ this.frag.x["id2coord"].set(id, pos);
772
+ }
773
+ this.frag.y["id2coord"] = this.frag.x["id2coord"];
774
+ } else {
775
+ this.frag.y["id2coord"] = map;
776
+ }
777
+ }
778
+ async getData(chrx, chry, fragCoords) {
779
+ return await this.dataFetcher.fetchData(
780
+ this.hic,
781
+ this.parent("state")["detail"],
782
+ this.parent("calcResolution"),
783
+ chrx,
784
+ chry,
785
+ fragCoords
786
+ );
787
+ }
788
+ };
789
+
790
+ // tracks/hic/data/DetailCoodinates.ts
791
+ var DetailCoordinates = class {
792
+ constructor(hic, errlist) {
793
+ this.hic = hic;
794
+ this.errlist = errlist;
795
+ }
796
+ getCoordinates(chrx, chry, data, resolution, widthHeightPx, fragData) {
797
+ const isFirstX = new FirstChrX(this.hic.chrorder, chrx.chr, chry.chr).isFirstX();
798
+ const isintrachr = chrx.chr == chry.chr;
799
+ const xpxbp = widthHeightPx / (chrx.stop - chrx.start);
800
+ const ypxbp = widthHeightPx / (chry.stop - chry.start);
801
+ const list = this.calculateCoordinates(isFirstX, isintrachr, xpxbp, ypxbp, resolution, chrx, chry, data, fragData);
802
+ return list;
803
+ }
804
+ calculateCoordinates(isFirstX, isintrachr, xpxbp, ypxbp, resolution, chrx, chry, data, fragData) {
805
+ const list = [];
806
+ for (const [xCoord, yCoord, value] of data.items) {
807
+ let coord1, coord2, span1, span2;
808
+ if (fragData) {
809
+ const idx_start = isFirstX ? xCoord : yCoord;
810
+ const idy_start = isFirstX ? yCoord : xCoord;
811
+ if (fragData.x.id2coord.has(idx_start)) {
812
+ const [a, b] = fragData.x.id2coord.get(idx_start);
813
+ coord1 = a;
814
+ span1 = b - a;
815
+ } else {
816
+ this.errlist.push(`[x id error] x: ${idx_start} y: ${idy_start}`);
817
+ continue;
818
+ }
819
+ {
820
+ const id_stop = idx_start + resolution;
821
+ if (fragData.x.id2coord.has(id_stop)) {
822
+ const ab = fragData.x.id2coord.get(id_stop);
823
+ span1 = ab[1] - coord1;
824
+ }
825
+ }
826
+ if (fragData.y.id2coord.has(idy_start)) {
827
+ const [a, b] = fragData.y.id2coord.get(idy_start);
828
+ coord2 = a;
829
+ span2 = b - a;
830
+ } else {
831
+ this.errlist.push(`[y id error] x: ${idx_start} y: ${idy_start}`);
832
+ continue;
833
+ }
834
+ {
835
+ const id_stop = idy_start + resolution;
836
+ if (fragData.y.id2coord.has(id_stop)) {
837
+ const ab = fragData.y.id2coord.get(id_stop);
838
+ span2 = ab[1] - coord2;
839
+ }
840
+ }
841
+ } else {
842
+ coord1 = isFirstX ? xCoord : yCoord;
843
+ coord2 = isFirstX ? yCoord : xCoord;
844
+ span1 = resolution;
845
+ span2 = resolution;
846
+ }
847
+ if (isintrachr) {
848
+ if (coord1 > chrx.start - span1 && coord1 < chrx.stop && coord2 > chry.start - span2 && coord2 < chry.stop) {
849
+ list.push([
850
+ Math.floor((coord1 - chrx.start) * xpxbp),
851
+ Math.floor((coord2 - chry.start) * ypxbp),
852
+ Math.ceil(span1 * xpxbp),
853
+ Math.ceil(span2 * ypxbp),
854
+ value
855
+ ]);
856
+ }
857
+ if (coord2 > chrx.start - span2 && coord2 < chrx.stop && coord1 > chry.start && coord1 < chry.stop) {
858
+ list.push([
859
+ Math.floor((coord2 - chrx.start) * xpxbp),
860
+ Math.floor((coord1 - chry.start) * ypxbp),
861
+ Math.ceil(span2 * xpxbp),
862
+ Math.ceil(span1 * ypxbp),
863
+ value
864
+ ]);
865
+ }
866
+ continue;
867
+ }
868
+ list.push([
869
+ Math.floor((coord1 - chrx.start) * xpxbp),
870
+ Math.floor((coord2 - chry.start) * ypxbp),
871
+ Math.ceil(span1 * xpxbp),
872
+ Math.ceil(span2 * ypxbp),
873
+ value
874
+ ]);
875
+ }
876
+ return list;
877
+ }
878
+ };
879
+
880
+ // tracks/hic/detail/DetailView.ts
881
+ var DetailView = class {
882
+ constructor(opts) {
883
+ this.calcResolution = null;
884
+ /** Defaults **/
885
+ this.binpx = 2;
886
+ this.bbmargin = 1;
887
+ this.app = opts.app;
888
+ this.hic = opts.hic;
889
+ this.plotDiv = opts.plotDiv;
890
+ this.sheath = opts.plotDiv.yAxis.append("div").style("position", "relative").style("width", "200px").style("height", "800px");
891
+ this.rotor = this.sheath.append("div").style("position", "absolute").style("bottom", "0px").style("transform", "rotate(-90deg)").style("transform-origin", "left bottom");
892
+ this.data = opts.data;
893
+ this.parent = opts.parent;
894
+ this.errList = this.parent("errList");
895
+ this.resolution = new Resolution(opts.error);
896
+ this.colorizeElement = new ColorizeElement();
897
+ this.viewRangeBpW = this.resolution.getDefaultViewSpan(
898
+ this.hic,
899
+ this.parent("state").x,
900
+ this.parent("state").y,
901
+ this.parent("state").initialBinNum,
902
+ this.parent("state").minBinNum_bp
903
+ );
904
+ this.dataMapper = new DetailDataMapper(this.hic, opts.error, opts.parent);
905
+ this.coordinates = new DetailCoordinates(this.hic, this.errList);
906
+ }
907
+ renderCanvas(blockwidth) {
908
+ 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");
909
+ 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) => {
910
+ const body = select_default(document.body);
911
+ const x = event.clientX;
912
+ const y = event.clientY;
913
+ const oldx = Number.parseInt(this.canvas.style("left"));
914
+ const oldy = Number.parseInt(this.canvas.style("top"));
915
+ body.on("mousemove", (event2) => {
916
+ const xoff = event2.clientX - x;
917
+ const yoff = event2.clientY - y;
918
+ this.xBlock.block.panning(xoff);
919
+ this.yBlock.block.panning(yoff);
920
+ this.canvas.style("left", `${oldx + xoff}px`).style("top", `${oldy + yoff}px`);
921
+ });
922
+ body.on("mouseup", (event2) => {
923
+ body.on("mousemove", null).on("mouseup", null);
924
+ const xoff = event2.clientX - x;
925
+ const yoff = event2.clientY - y;
926
+ this.xBlock.block.pannedby(xoff);
927
+ this.yBlock.block.pannedby(yoff);
928
+ });
929
+ });
930
+ }
931
+ async render() {
932
+ this.calcResolution = this.parent("calcResolution");
933
+ const state = this.parent("state");
934
+ this.xBlock = new DetailBlock(
935
+ this.app,
936
+ this.hic,
937
+ state.settings.widthHeightPx,
938
+ this.bbmargin,
939
+ this.plotDiv.xAxis,
940
+ false
941
+ );
942
+ this.yBlock = new DetailBlock(this.app, this.hic, state.settings.widthHeightPx, this.bbmargin, this.rotor, true);
943
+ this.renderCanvas(state.settings.widthHeightPx);
944
+ await this.xBlock.loadBlock(state.x, this.canvasHolder, this.canvas);
945
+ await this.yBlock.loadBlock(state.y, this.canvasHolder, this.canvas, this.sheath);
946
+ this.update(this.data);
947
+ }
948
+ async update(data) {
949
+ if (data.items.length == 0) {
950
+ this.app.dispatch({ type: "loading_active", active: false });
951
+ return;
952
+ }
953
+ this.data = data;
954
+ const state = this.parent("state");
955
+ const initialWidth = Number.parseInt(this.canvas.attr("width"));
956
+ const holderChange = Number.parseInt(this.canvasHolder.style("width")) - initialWidth + state.settings.widthHeightPx;
957
+ this.canvasHolder.style("width", `${holderChange}px`).style("height", `${holderChange}px`);
958
+ this.canvas.attr("width", `${state.settings.widthHeightPx}px`).attr("height", `${state.settings.widthHeightPx}px`);
959
+ if (this.xBlock.block.width != state.settings.widthHeightPx) {
960
+ this.xBlock.block.width = state.settings.widthHeightPx;
961
+ this.yBlock.block.width = state.settings.widthHeightPx;
962
+ this.xBlock.block.zoom2px(0, initialWidth);
963
+ this.yBlock.block.zoom2px(0, initialWidth);
964
+ }
965
+ this.ctx = this.canvas.node().getContext("2d");
966
+ const coords = this.coordinates.getCoordinates(
967
+ state.x,
968
+ state.y,
969
+ this.parent("data"),
970
+ this.parent("calcResolution"),
971
+ state.settings.widthHeightPx,
972
+ this.parent("fragData")
973
+ );
974
+ this.coords = coords;
975
+ this.ctx.clearRect(0, 0, state.settings.widthHeightPx, state.settings.widthHeightPx);
976
+ for (const [xCoord, yCoord, width, height, value] of this.coords) {
977
+ this.colorizeElement.colorizeElement(
978
+ xCoord,
979
+ yCoord,
980
+ value,
981
+ this.ctx,
982
+ width,
983
+ height,
984
+ this.parent("min"),
985
+ this.parent("max"),
986
+ "detail"
987
+ );
988
+ }
989
+ this.app.dispatch({ type: "loading_active", active: false });
990
+ }
991
+ };
992
+
993
+ // tracks/hic/axes/Chromosome.ts
994
+ var Chromosome = class {
995
+ constructor(chr, width) {
996
+ this.label = chr;
997
+ this.width = width;
998
+ }
999
+ };
1000
+
1001
+ // tracks/hic/grid/Grid.ts
1002
+ var Grid = class _Grid {
1003
+ constructor(chrlst, resolution, chrlookup, binpx) {
1004
+ this.chromosomeMatrix = /* @__PURE__ */ new Map();
1005
+ this.chromosomeList = [];
1006
+ this.xoff = 0;
1007
+ this.yoff = 0;
1008
+ this.chr2px = [];
1009
+ this.chrlst = chrlst;
1010
+ let totalpx = this.chrlst.length;
1011
+ for (const chr of this.chrlst) {
1012
+ const w = Math.ceil(chrlookup[chr.toUpperCase()].len / resolution) * binpx;
1013
+ const chromosome = new Chromosome(chr, w);
1014
+ this.chromosomeList.push(chromosome);
1015
+ this.chr2px[chr] = w;
1016
+ totalpx += w;
1017
+ }
1018
+ this.totalpx = totalpx;
1019
+ for (let i = 0; i < this.chrlst.length; i++) {
1020
+ const chrx = this.chrlst[i];
1021
+ this.chromosomeMatrix.set(chrx, /* @__PURE__ */ new Map());
1022
+ let yoff = 0;
1023
+ for (let j = 0; j <= i; j++) {
1024
+ const chry = this.chrlst[j];
1025
+ const chrxChrLen = chrlookup[chrx.toUpperCase()].len;
1026
+ const chryChrLen = chrlookup[chry.toUpperCase()].len;
1027
+ const xbins = Math.ceil(chrxChrLen / resolution) * binpx;
1028
+ const ybins = Math.ceil(chryChrLen / resolution) * binpx;
1029
+ this.chromosomeMatrix.get(chrx).set(chry, {
1030
+ x: this.xoff,
1031
+ y: yoff,
1032
+ xbins,
1033
+ ybins,
1034
+ data: []
1035
+ //Empty array of data to fill later
1036
+ });
1037
+ yoff += this.chr2px[chry] + _Grid.borderWidth;
1038
+ }
1039
+ this.yoff = yoff;
1040
+ this.xoff += this.chr2px[chrx] + _Grid.borderWidth;
1041
+ }
1042
+ }
1043
+ static {
1044
+ this.checkerFill = "#DEF3FA";
1045
+ }
1046
+ static {
1047
+ this.spaceColor = "#CCC";
1048
+ }
1049
+ static {
1050
+ this.fontSize = 15;
1051
+ }
1052
+ static {
1053
+ this.font = font;
1054
+ }
1055
+ static {
1056
+ this.borderWidth = 1;
1057
+ }
1058
+ static {
1059
+ this.defaultChrLabWidth = 100;
1060
+ }
1061
+ };
1062
+
1063
+ // tracks/hic/viewmodel/GridViewModel.ts
1064
+ var GridViewModel = class {
1065
+ constructor(opts) {
1066
+ this.grid = new Grid(opts.hic.chrlst, opts.resolution || opts.hic.bpresolution[0], opts.hic.genome.chrlookup, 1);
1067
+ }
1068
+ };
1069
+
1070
+ // tracks/hic/grid/GridRenderer.ts
1071
+ var GridRenderer = class {
1072
+ constructor(svg, layerMap, layerSv, grid) {
1073
+ this.svg = svg;
1074
+ this.layerMap = layerMap.attr("transform", `translate(${Grid.defaultChrLabWidth}, ${Grid.fontSize})`);
1075
+ this.layerSv = layerSv.attr("transform", `translate(${Grid.defaultChrLabWidth}, ${Grid.fontSize})`);
1076
+ this.grid = grid;
1077
+ }
1078
+ render() {
1079
+ this.renderAxisX(this.grid);
1080
+ this.renderAxisY(this.grid);
1081
+ this.svg.attr("width", Grid.defaultChrLabWidth + this.grid.xoff).attr("height", Grid.fontSize + this.grid.yoff);
1082
+ }
1083
+ renderAxisX(grid) {
1084
+ let xoff = 0;
1085
+ this.grid.chromosomeList.forEach((chr, index) => {
1086
+ const chrw = chr.width;
1087
+ if (index % 2 === 0) {
1088
+ this.layerMap.append("rect").attr("x", xoff).attr("width", chrw).attr("height", Grid.fontSize).attr("y", -Grid.fontSize).attr("fill", Grid.checkerFill);
1089
+ }
1090
+ 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);
1091
+ xoff += chrw;
1092
+ this.layerSv.append("line").attr("x1", xoff).attr("x2", xoff).attr("y2", grid.totalpx).attr("stroke", Grid.spaceColor).attr("shape-rendering", "crispEdges");
1093
+ xoff += Grid.borderWidth;
1094
+ });
1095
+ }
1096
+ renderAxisY(grid) {
1097
+ let yoff = 0;
1098
+ this.grid.chromosomeList.forEach((chr, index) => {
1099
+ const chrh = chr.width;
1100
+ if (index % 2 === 0) {
1101
+ this.layerMap.append("rect").attr("x", -Grid.defaultChrLabWidth).attr("width", Grid.defaultChrLabWidth).attr("height", chrh).attr("y", yoff).attr("fill", Grid.checkerFill);
1102
+ }
1103
+ 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);
1104
+ yoff += chrh;
1105
+ this.layerSv.append("line").attr("x2", grid.totalpx).attr("y1", yoff).attr("y2", yoff).attr("stroke", Grid.spaceColor).attr("shape-rendering", "crispEdges");
1106
+ yoff += Grid.borderWidth;
1107
+ });
1108
+ }
1109
+ };
1110
+
1111
+ // tracks/hic/genome/ChrsTooltips.ts
1112
+ var ChrsTooltips = class {
1113
+ constructor() {
1114
+ this.chrx_tip = new Menu({ border: "solid 1px #ccc", padding: "0px", offsetX: 0, offsetY: 0 });
1115
+ this.chry_tip = new Menu({ border: "solid 1px #ccc", padding: "0px", offsetX: 0, offsetY: 0 });
1116
+ }
1117
+ render(img, chrx, chry) {
1118
+ const p = img.node().getBoundingClientRect();
1119
+ 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);
1120
+ 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);
1121
+ }
1122
+ };
1123
+
1124
+ // tracks/hic/grid/GridElementRenderer.ts
1125
+ var GridElementRenderer = class {
1126
+ constructor(layerMap, app) {
1127
+ this.app = app;
1128
+ this.layerMap = layerMap;
1129
+ this.tooltips = new ChrsTooltips();
1130
+ }
1131
+ render(obj, lead, follow, holder) {
1132
+ obj.canvas = holder.append("canvas").style("display", "none").node();
1133
+ obj.ctx = obj.canvas.getContext("2d");
1134
+ obj.canvas.width = obj.xbins;
1135
+ obj.canvas.height = obj.ybins;
1136
+ 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 () => {
1137
+ await this.app.dispatch({
1138
+ type: "view_create",
1139
+ view: "chrpair",
1140
+ config: {
1141
+ x: {
1142
+ chr: lead
1143
+ },
1144
+ y: {
1145
+ chr: follow
1146
+ }
1147
+ }
1148
+ });
1149
+ }).on("mouseover", () => {
1150
+ this.tooltips.render(obj.img, lead, follow);
1151
+ });
1152
+ if (lead != follow) {
1153
+ obj.canvas2 = holder.append("canvas").style("display", "none").node();
1154
+ obj.canvas2.width = obj.ybins;
1155
+ obj.canvas2.height = obj.xbins;
1156
+ obj.ctx2 = obj.canvas2.getContext("2d");
1157
+ 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 () => {
1158
+ await this.app.dispatch({
1159
+ type: "view_create",
1160
+ view: "chrpair",
1161
+ config: {
1162
+ x: {
1163
+ chr: follow
1164
+ },
1165
+ y: {
1166
+ chr: lead
1167
+ }
1168
+ }
1169
+ });
1170
+ }).on("mouseover", () => {
1171
+ this.tooltips.render(obj.img2, follow, lead);
1172
+ });
1173
+ } else {
1174
+ obj.ctx2 = obj.ctx;
1175
+ }
1176
+ }
1177
+ };
1178
+
1179
+ // tracks/hic/grid/GridElementsRenderer.ts
1180
+ var GridElementsRenderer = class {
1181
+ constructor(grid, layerMap, app) {
1182
+ this.grid = grid;
1183
+ this.gridElementRenderer = new GridElementRenderer(layerMap, app);
1184
+ }
1185
+ render(holder) {
1186
+ for (const [chrx, chryMap] of this.grid.chromosomeMatrix) {
1187
+ for (const [chry, gridElem] of chryMap) {
1188
+ this.gridElementRenderer.render(gridElem, chrx, chry, holder);
1189
+ }
1190
+ }
1191
+ }
1192
+ };
1193
+
1194
+ // tracks/hic/genome/GenomeView.ts
1195
+ var GenomeView = class {
1196
+ constructor(opts) {
1197
+ /** Dom */
1198
+ this.tip = new Menu();
1199
+ this.pica_x = new Menu({ border: "solid 1px #ccc", padding: "0px", offsetX: 0, offsetY: 0 });
1200
+ this.pica_y = new Menu({ border: "solid 1px #ccc", padding: "0px", offsetX: 0, offsetY: 0 });
1201
+ /** Data */
1202
+ /** px width for each chr */
1203
+ this.chr2px = {};
1204
+ this.lead2follow = /* @__PURE__ */ new Map();
1205
+ this.values = [];
1206
+ /** Defaults */
1207
+ this.defaultChrLabWidth = 100;
1208
+ this.borderwidth = 1;
1209
+ this.default_maxVPerc = 5;
1210
+ this.fontsize = 15;
1211
+ this.xoff = 0;
1212
+ this.yoff = 0;
1213
+ this.binpx = 1;
1214
+ this.atdev_chrnum = 8;
1215
+ this.min = 0;
1216
+ this.max = 0;
1217
+ this.app = opts.app;
1218
+ this.hic = opts.hic;
1219
+ this.plotDiv = opts.plotDiv;
1220
+ this.data = opts.data;
1221
+ this.parent = opts.parent;
1222
+ this.resolution = opts.resolution || opts.hic.bpresolution[0];
1223
+ this.svg = this.plotDiv.plot.append("svg").attr("data-testid", "sjpp-hic-genome-svg");
1224
+ this.layer_map = this.svg.append("g").attr("data-testid", "sjpp-hic-layerMap-g");
1225
+ this.layer_sv = this.svg.append("g").attr("data-testid", "sjpp-hic-layerSv-g");
1226
+ this.colorizeElement = new ColorizeElement();
1227
+ this.viewModel = new GridViewModel(opts);
1228
+ this.viewRender = new GridRenderer(this.svg, this.layer_map, this.layer_sv, this.viewModel.grid);
1229
+ this.gridElementsRenderer = new GridElementsRenderer(this.viewModel.grid, this.layer_map, this.app);
1230
+ this.gridFormattedData = new GridElementsFormattedData();
1231
+ }
1232
+ makeSv() {
1233
+ const unknownchr = /* @__PURE__ */ new Set();
1234
+ const radius = 8;
1235
+ for (const item of this.hic.sv.items) {
1236
+ const _o = this.lead2follow.get(item.chr1);
1237
+ if (!_o) {
1238
+ unknownchr.add(item.chr1);
1239
+ continue;
1240
+ }
1241
+ const obj = _o.get(item.chr2);
1242
+ if (!obj) {
1243
+ unknownchr.add(item.chr2);
1244
+ continue;
1245
+ }
1246
+ const p1 = item.position1 / this.resolution;
1247
+ const p2 = item.position2 / this.resolution;
1248
+ 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) => {
1249
+ this.tooltipSv(event, item);
1250
+ }).on("mouseout", () => {
1251
+ this.tip.hide();
1252
+ }).on("click", () => {
1253
+ this.clickSv(item);
1254
+ });
1255
+ if (obj.img2) {
1256
+ 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) => {
1257
+ this.tooltipSv(event, item);
1258
+ }).on("mouseout", () => {
1259
+ this.tip.hide();
1260
+ }).on("click", () => {
1261
+ this.clickSv(item);
1262
+ });
1263
+ }
1264
+ }
1265
+ }
1266
+ tooltipSv(event, item) {
1267
+ this.tip.clear().show(event.clientX, event.clientY).d.append("div").text(
1268
+ item.chr1 == item.chr2 ? `${item.chr1}:${item.position1}-${item.position2}` : `${item.chr1}:${item.position1}>${item.chr2}:${item.position2}`
1269
+ );
1270
+ }
1271
+ clickSv(item) {
1272
+ const default_svpointspan = 5e5;
1273
+ const default_subpanelpxwidth = 600;
1274
+ const subpanel_bordercolor = "rgba(200,0,0,.1)";
1275
+ const pane = newpane({ x: 100, y: 100 });
1276
+ pane.header.text(
1277
+ this.hic.name + " " + (item.chr1 == item.chr2 ? `${item.chr1}:${item.position1}-${item.position2}` : `${item.chr1}:${item.position1}>${item.chr2}:${item.position2}`)
1278
+ );
1279
+ const tracks = [
1280
+ {
1281
+ type: tkt.hicstraw,
1282
+ file: this.hic.file,
1283
+ enzyme: this.hic.enzyme,
1284
+ maxpercentage: this.default_maxVPerc,
1285
+ pyramidup: 1,
1286
+ name: this.hic.name
1287
+ }
1288
+ ];
1289
+ if (this.hic.tklst) {
1290
+ for (const t of this.hic.tklst) {
1291
+ tracks.push(t);
1292
+ }
1293
+ }
1294
+ first_genetrack_tolist(this.hic.genome, tracks);
1295
+ const arg = {
1296
+ holder: pane.body,
1297
+ hostURL: this.hic.hostURL,
1298
+ jwt: this.hic.jwt,
1299
+ genome: this.hic.genome,
1300
+ nobox: 1,
1301
+ tklst: tracks
1302
+ };
1303
+ if (item.chr1 == item.chr2 && Math.abs(item.position2 - item.position1) < default_svpointspan * 2) {
1304
+ arg.chr = item.chr1;
1305
+ const w = Math.abs(item.position2 - item.position1);
1306
+ arg.start = Math.max(1, Math.min(item.position1, item.position2) - w);
1307
+ arg.stop = Math.min(
1308
+ this.hic.genome.chrlookup[item.chr1.toUpperCase()].len,
1309
+ Math.max(item.position1, item.position2) + w
1310
+ );
1311
+ } else {
1312
+ arg.chr = item.chr1;
1313
+ arg.start = Math.max(1, item.position1 - default_svpointspan / 2);
1314
+ arg.stop = Math.min(
1315
+ this.hic.genome.chrlookup[item.chr1.toUpperCase()].len,
1316
+ item.position1 + default_svpointspan / 2
1317
+ );
1318
+ arg.width = default_subpanelpxwidth;
1319
+ arg.subpanels = [
1320
+ {
1321
+ chr: item.chr2,
1322
+ start: Math.max(1, item.position2 - default_svpointspan / 2),
1323
+ stop: Math.min(
1324
+ this.hic.genome.chrlookup[item.chr2.toUpperCase()].len,
1325
+ item.position2 + default_svpointspan / 2
1326
+ ),
1327
+ width: default_subpanelpxwidth,
1328
+ leftpad: 10,
1329
+ leftborder: subpanel_bordercolor
1330
+ }
1331
+ ];
1332
+ }
1333
+ blocklazyload(arg);
1334
+ }
1335
+ render() {
1336
+ this.viewRender.render();
1337
+ this.gridElementsRenderer.render(this.hic.holder);
1338
+ if (this.hic.sv && this.hic.sv.items) {
1339
+ this.makeSv();
1340
+ }
1341
+ this.update(this.data);
1342
+ }
1343
+ update(data) {
1344
+ this.data = data;
1345
+ this.min = this.parent("min");
1346
+ this.max = this.parent("max");
1347
+ for (const data2 of this.data) {
1348
+ if (!this.hic.chrlst.includes(data2.lead) || !this.hic.chrlst.includes(data2.follow)) continue;
1349
+ const obj = this.viewModel.grid.chromosomeMatrix.get(data2.lead).get(data2.follow);
1350
+ if (!obj) continue;
1351
+ obj.ctx.clearRect(0, 0, obj.canvas.width, obj.canvas.height);
1352
+ if (obj.canvas2) {
1353
+ obj.ctx2.clearRect(0, 0, obj.canvas2.width, obj.canvas.height);
1354
+ }
1355
+ obj.data = this.gridFormattedData.formatData("genome", data2.items, this.binpx, this.resolution);
1356
+ for (const [xPx, yPx, value] of obj.data) {
1357
+ this.colorizeElement.colorizeElement(xPx, yPx, value, obj, this.binpx, this.binpx, this.min, this.max, "genome");
1358
+ }
1359
+ obj.img.attr("xlink:href", obj.canvas.toDataURL());
1360
+ if (obj.canvas2) {
1361
+ obj.img2.attr("xlink:href", obj.canvas2.toDataURL());
1362
+ }
1363
+ }
1364
+ this.app.dispatch({ type: "loading_active", active: false });
1365
+ }
1366
+ };
1367
+
1368
+ // tracks/hic/controls/NormalizationMethodControl.ts
1369
+ var NormalizationMethodControl = class {
1370
+ constructor(holder, normalization, defaultNmeth, callback) {
1371
+ this.holder = holder;
1372
+ this.normalization = normalization;
1373
+ this.defaultNmeth = defaultNmeth;
1374
+ this.callback = callback;
1375
+ }
1376
+ render() {
1377
+ if (!this.normalization?.length) {
1378
+ this.nmethSelect = this.holder.text(this.defaultNmeth);
1379
+ } else {
1380
+ this.nmethSelect = this.holder.attr("data-testid", "sjpp-hic-nmeth-select").style("margin-right", "10px").append("select").on("change", async () => {
1381
+ const nmeth = this.nmethSelect.node().value;
1382
+ this.callback(nmeth, "nmeth");
1383
+ });
1384
+ for (const n of this.normalization) {
1385
+ this.nmethSelect.append("option").text(n);
1386
+ }
1387
+ }
1388
+ }
1389
+ update(option) {
1390
+ const options = this.nmethSelect.node().options;
1391
+ if (!options) return;
1392
+ const selectedNmeth = Array.from(options).find((o) => o.value === option);
1393
+ if (!selectedNmeth) throw `Invalid normalization method: ${option}`;
1394
+ selectedNmeth.selected = true;
1395
+ }
1396
+ };
1397
+
1398
+ // tracks/hic/controls/CutoffControl.ts
1399
+ var CutoffControl = class {
1400
+ constructor(holder, value, callback) {
1401
+ this.holder = holder;
1402
+ this.value = value;
1403
+ this.callback = callback;
1404
+ }
1405
+ render(opts) {
1406
+ 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) => {
1407
+ if (event.code != "Enter") return;
1408
+ const v = event.target.value;
1409
+ this.callback(v);
1410
+ });
1411
+ return cutoffDiv;
1412
+ }
1413
+ };
1414
+
1415
+ // tracks/hic/controls/MatrixTypeControl.ts
1416
+ var MatrixTypeControl = class {
1417
+ constructor(holder, callback) {
1418
+ this.values = [
1419
+ { label: "Observed", value: "observed" },
1420
+ { label: "Expected", value: "expected" },
1421
+ { label: "Observed/Expected", value: "oe" },
1422
+ { label: "Log(Observed/Expected)", value: "log(oe)" }
1423
+ // TODO: add server side logic to support these options
1424
+ // { label: 'Log(Observed + 1)', value: 'log(obs+1)'},
1425
+ // { label: 'Observed Pearson', value: 'op'}
1426
+ ];
1427
+ this.holder = holder;
1428
+ this.callback = callback;
1429
+ }
1430
+ render() {
1431
+ this.matrixSelect = this.holder.attr("data-testid", "sjpp-hic-matrix-type-select").style("margin-right", "10px").append("select").on("change", async () => {
1432
+ this.callback(this.matrixSelect.node().value, "matrixType");
1433
+ });
1434
+ for (const matrixType of this.values) {
1435
+ this.matrixSelect.append("option").text(matrixType.label).attr("value", matrixType.value);
1436
+ }
1437
+ }
1438
+ update(option) {
1439
+ const options = this.matrixSelect.node().options;
1440
+ if (!options) return;
1441
+ const selectedNmeth = Array.from(options).find((o) => o.value === option);
1442
+ if (!selectedNmeth) throw `Invalid normalization method: ${option}`;
1443
+ selectedNmeth.selected = true;
1444
+ }
1445
+ };
1446
+
1447
+ // tracks/hic/controls/ControlPanel.ts
1448
+ var ControlPanel = class _ControlPanel {
1449
+ constructor(opts) {
1450
+ this.zoomBlockCallback = (bool) => {
1451
+ const detailView = this.parent("detail");
1452
+ detailView.xBlock.block.zoomblock(2, bool);
1453
+ detailView.yBlock.block.zoomblock(2, bool);
1454
+ };
1455
+ this.minCallback = (v) => {
1456
+ if (Number(v) > Number(this.parent("max"))) {
1457
+ this.error("Min cutoff cannot be greater than max cutoff");
1458
+ } else {
1459
+ this.parent("min", Number(v));
1460
+ this.reColorHeatmap();
1461
+ this.parent("infoBar").update();
1462
+ }
1463
+ };
1464
+ this.maxCallback = (v) => {
1465
+ if (Number(v) < Number(this.parent("min"))) {
1466
+ this.error(`Max cutoff cannot be less than min cutoff`);
1467
+ } else if (Number(v) < 0) {
1468
+ this.error(`Max cutoff cannot be less than 0`);
1469
+ } else {
1470
+ this.parent("max", Number(v));
1471
+ this.reColorHeatmap();
1472
+ this.parent("infoBar").update();
1473
+ }
1474
+ };
1475
+ this.reColorHeatmap = () => {
1476
+ if (this.parent("activeView") == "genome") {
1477
+ const genomeView = this.parent("genome");
1478
+ const chrMatrix = genomeView.viewRender.grid.chromosomeMatrix;
1479
+ if (!chrMatrix) return;
1480
+ for (const map of chrMatrix) {
1481
+ const yMap = map[1];
1482
+ for (const obj of yMap) {
1483
+ const canvasObj = obj[1];
1484
+ if (!canvasObj) continue;
1485
+ for (const [leadpx, followpx, val] of canvasObj.data) {
1486
+ this.colorizeElement.colorizeElement(
1487
+ leadpx,
1488
+ followpx,
1489
+ val,
1490
+ canvasObj,
1491
+ 1,
1492
+ 1,
1493
+ this.parent("min"),
1494
+ this.parent("max"),
1495
+ "genome"
1496
+ );
1497
+ }
1498
+ canvasObj.img.attr("xlink:href", canvasObj.canvas.toDataURL());
1499
+ if (canvasObj.canvas2) {
1500
+ canvasObj.img2.attr("xlink:href", canvasObj.canvas2.toDataURL());
1501
+ }
1502
+ }
1503
+ }
1504
+ } else if (this.parent("activeView") == "chrpair") {
1505
+ const view = this.parent("chrpair");
1506
+ for (const [xCoord, yCoord, val] of view.data) {
1507
+ this.colorizeElement.colorizeElement(
1508
+ xCoord,
1509
+ yCoord,
1510
+ val,
1511
+ view.ctx,
1512
+ view.binpx,
1513
+ view.binpx,
1514
+ this.parent("min"),
1515
+ this.parent("max"),
1516
+ "chrpair"
1517
+ );
1518
+ }
1519
+ } else if (this.parent("activeView") == "detail") {
1520
+ const view = this.parent("detail");
1521
+ for (const [xCoord, yCoord, width, height, value] of view.coords) {
1522
+ this.colorizeElement.colorizeElement(
1523
+ xCoord,
1524
+ yCoord,
1525
+ value,
1526
+ view.ctx,
1527
+ width,
1528
+ height,
1529
+ this.parent("min"),
1530
+ this.parent("max"),
1531
+ "detail"
1532
+ );
1533
+ }
1534
+ }
1535
+ };
1536
+ this.dropdownCallback = (v, prop) => {
1537
+ const state = this.app.getState();
1538
+ this.app.dispatch({
1539
+ type: "view_update",
1540
+ view: state.currView,
1541
+ config: { [prop]: v }
1542
+ });
1543
+ };
1544
+ this.type = _ControlPanel.type;
1545
+ this.controls = {};
1546
+ this.app = opts.app;
1547
+ this.controlsDiv = opts.controlsDiv;
1548
+ this.hic = opts.hic;
1549
+ this.colorizeElement = new ColorizeElement();
1550
+ this.parent = opts.parent;
1551
+ this.error = opts.error;
1552
+ }
1553
+ static {
1554
+ this.type = "controlPanel";
1555
+ }
1556
+ getState(appState) {
1557
+ return appState;
1558
+ }
1559
+ addLabel(tr, text) {
1560
+ return tr.append("td").style("color", "#858585").style("font-size", ".8em").style("vertical-align", text.toUpperCase() == "VIEW" ? "top" : "middle").text(text.toUpperCase());
1561
+ }
1562
+ init() {
1563
+ const state = this.app.getState();
1564
+ 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");
1565
+ let menuVisible = true;
1566
+ 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", () => {
1567
+ menuVisible = !menuVisible;
1568
+ menu.style("display", menuVisible ? "block" : "none");
1569
+ });
1570
+ const menu = menuWrapper.append("div").attr("class", "sjpp-hic-menu").attr("data-testid", "sjpp-hic-menu").style("display", menuVisible ? "block" : "none");
1571
+ const menuTable = menu.append("table").style("border-spacing", "3px");
1572
+ this.controls.normalizationRow = menuTable.append("tr");
1573
+ this.addLabel(this.controls.normalizationRow, "NORMALIZATION");
1574
+ this.controls.nmeth = new NormalizationMethodControl(
1575
+ this.controls.normalizationRow.append("td").attr("class", "sjpp-nmeth-select"),
1576
+ this.hic.normalization,
1577
+ state.defaultNmeth,
1578
+ this.dropdownCallback
1579
+ );
1580
+ this.controls.nmeth.render();
1581
+ this.controls.minCutoffRow = menuTable.append("tr");
1582
+ this.controls.minCutoffLabel = this.addLabel(this.controls.minCutoffRow, "");
1583
+ this.controls.inputBpMinV = new CutoffControl(
1584
+ this.controls.minCutoffRow.append("td"),
1585
+ this.parent("min"),
1586
+ this.minCallback
1587
+ ).render({ width: "120px" });
1588
+ this.controls.maxCutoffRow = menuTable.append("tr");
1589
+ this.controls.maxCutoffLabel = this.addLabel(this.controls.maxCutoffRow, "");
1590
+ this.controls.inputBpMaxV = new CutoffControl(
1591
+ this.controls.maxCutoffRow.append("td"),
1592
+ this.parent("max"),
1593
+ this.maxCallback
1594
+ ).render({ width: "120px" });
1595
+ this.controls.matrixTypeRow = menuTable.append("tr");
1596
+ this.addLabel(this.controls.matrixTypeRow, "matrix type");
1597
+ this.controls.matrixType = new MatrixTypeControl(this.controls.matrixTypeRow.append("td"), this.dropdownCallback);
1598
+ this.controls.matrixType.render();
1599
+ this.controls.widthRow = menuTable.append("tr");
1600
+ this.addLabel(this.controls.widthRow, "WIDTH / height");
1601
+ this.controls.width = this.controls.widthRow.append("td");
1602
+ 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) => {
1603
+ if (event.code != "Enter") return;
1604
+ const v = event.target.value;
1605
+ this.app.dispatch({
1606
+ type: "view_update",
1607
+ config: {
1608
+ settings: { widthHeightPx: Number.parseInt(v) }
1609
+ }
1610
+ });
1611
+ });
1612
+ const viewRow = menuTable.append("tr");
1613
+ this.addLabel(viewRow, "VIEW");
1614
+ const viewBtnDiv = viewRow.append("td");
1615
+ this.controls.view = viewBtnDiv.append("span").attr("data-testid", "sjpp-hic-view-span").style("padding-right", "5px").style("display", "block");
1616
+ 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 () => {
1617
+ await this.app.dispatch({
1618
+ type: "view_create",
1619
+ view: "genome",
1620
+ config: {
1621
+ x: {},
1622
+ y: {}
1623
+ }
1624
+ });
1625
+ });
1626
+ 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 () => {
1627
+ const currState = this.app.getState();
1628
+ await this.app.dispatch({
1629
+ type: "view_create",
1630
+ view: "chrpair",
1631
+ config: {
1632
+ x: {
1633
+ chr: currState.x.chr
1634
+ },
1635
+ y: {
1636
+ chr: currState.y.chr
1637
+ }
1638
+ }
1639
+ });
1640
+ });
1641
+ 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 () => {
1642
+ await this.app.dispatch({
1643
+ type: "view_create",
1644
+ view: "horizontal"
1645
+ });
1646
+ });
1647
+ 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 () => {
1648
+ await this.app.dispatch({
1649
+ type: "view_create",
1650
+ view: "detail"
1651
+ });
1652
+ });
1653
+ this.controls.zoomDiv = menuTable.append("tr").attr("data-testid", "sjpp-hic-zoom-div").style("display", state.currView == "detail" ? "contents" : "none");
1654
+ this.addLabel(this.controls.zoomDiv, "ZOOM");
1655
+ const zoomDiv = this.controls.zoomDiv.append("td");
1656
+ this.controls.zoomIn = zoomDiv.append("button").attr("data-testid", "sjpp-hic-zoom-in-btn").style("margin-right", "10px").text("In").on("click", () => {
1657
+ this.zoomBlockCallback(false);
1658
+ });
1659
+ this.controls.zoomOut = zoomDiv.append("button").attr("data-testid", "sjpp-hic-zoom-out-btn").style("margin-right", "10px").text("Out").on("click", () => {
1660
+ this.zoomBlockCallback(true);
1661
+ });
1662
+ }
1663
+ showBtns() {
1664
+ const state = this.app.getState();
1665
+ this.controls.genomeViewBtn.style("display", state.currView === "genome" ? "none" : "inline-block");
1666
+ if (state.currView === "detail") {
1667
+ this.controls.chrpairViewBtn.html(`&#8810; Entire ${state.x.chr}-${state.y.chr}`).style("display", "block");
1668
+ this.controls.horizontalViewBtn.style("display", "block");
1669
+ this.controls.zoomDiv.style("display", "contents");
1670
+ this.controls.detailViewBtn.style("display", "none");
1671
+ } else if (state.currView === "horizontal") {
1672
+ this.controls.chrpairViewBtn.html(`&#8810; Entire ${state.x.chr}-${state.y.chr}`).style("display", "block");
1673
+ this.controls.detailViewBtn.style("display", "block");
1674
+ this.controls.horizontalViewBtn.style("display", "none");
1675
+ this.controls.zoomDiv.style("display", "none");
1676
+ } else {
1677
+ this.controls.chrpairViewBtn.style("display", "none");
1678
+ this.controls.horizontalViewBtn.style("display", "none");
1679
+ this.controls.detailViewBtn.style("display", "none");
1680
+ this.controls.zoomDiv.style("display", "none");
1681
+ this.controls.widthRow.style("display", "none");
1682
+ }
1683
+ }
1684
+ showHideControls() {
1685
+ const state = this.app.getState();
1686
+ this.controls.normalizationRow.style("display", state.currView == "horizontal" ? "none" : "");
1687
+ this.controls.minCutoffRow.style("display", state.currView == "horizontal" ? "none" : "");
1688
+ this.controls.maxCutoffRow.style("display", state.currView == "horizontal" ? "none" : "");
1689
+ this.controls.matrixTypeRow.style("display", state.currView == "horizontal" ? "none" : "");
1690
+ this.controls.widthRow.style("display", state.currView == "detail" ? "contents" : "none");
1691
+ }
1692
+ main(appState) {
1693
+ const state = this.app.getState(appState);
1694
+ this.controls.nmeth.update(state[state.currView].nmeth);
1695
+ this.controls.matrixType.update(state[state.currView].matrixType);
1696
+ this.controls.zoomDiv.style("display", state.currView == "detail" ? "contents" : "none");
1697
+ if (state.currView == "chrpair") {
1698
+ this.controls.view.text(`${state.x.chr}-${state.y.chr} Pair`);
1699
+ } else {
1700
+ this.controls.view.text(state.currView.charAt(0).toUpperCase() + state.currView.slice(1));
1701
+ }
1702
+ const formatAbsMin = this.parent("absMin") < 1e-5 ? Number(this.parent("absMin")).toExponential(1) : Number(this.parent("absMin").toFixed(6));
1703
+ const formatAbsMax = this.parent("absMax") < 1e-5 ? Number(this.parent("absMax")).toExponential(1) : Number(this.parent("absMax").toFixed(6));
1704
+ this.controls.width.select("input").property("value", state.settings.widthHeightPx);
1705
+ this.controls.inputBpMinV.property("value", this.parent("min"));
1706
+ this.controls.inputBpMaxV.property("value", this.parent("max"));
1707
+ this.controls.minCutoffLabel.html(`MIN CUTOFF <br>(>= ${formatAbsMin})`);
1708
+ this.controls.maxCutoffLabel.html(`MAX CUTOFF <br>(<= ${formatAbsMax})`);
1709
+ this.showBtns();
1710
+ this.showHideControls();
1711
+ }
1712
+ };
1713
+ var controlPanelInit = getCompInit(ControlPanel);
1714
+
1715
+ // tracks/hic/dom/InfoBar.ts
1716
+ var InfoBar = class {
1717
+ constructor(opts) {
1718
+ /** Defaults **/
1719
+ //Color shown on the left of the color scale
1720
+ this.startColor = "white";
1721
+ //Color shown on the right of the color scale
1722
+ this.endColor = "red";
1723
+ this.addLabel = (text) => {
1724
+ 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());
1725
+ };
1726
+ this.addValue = (text) => {
1727
+ 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);
1728
+ };
1729
+ this.type = "infoBar";
1730
+ this.app = opts.app;
1731
+ this.hic = opts.hic;
1732
+ const table = opts.infoBarDiv;
1733
+ this.labelRow = table.append("tr");
1734
+ this.valueRow = table.append("tr");
1735
+ this.parent = opts.parent;
1736
+ }
1737
+ async render() {
1738
+ this.addLabel("Version");
1739
+ this.addValue(this.hic.version);
1740
+ this.addLabel("Enzyme");
1741
+ this.addValue(this.hic.enzyme || "N/A");
1742
+ this.addLabel("Resolution");
1743
+ this.resolutionDiv = this.addValue("");
1744
+ this.colorScaleLabel = this.addLabel("Scale");
1745
+ this.colorScaleDiv = this.valueRow.append("td").attr("data-testid", "sjpp-hic-color-scale");
1746
+ const min = this.parent("min");
1747
+ let max = this.parent("max");
1748
+ if (min == max) max = max + 0.01;
1749
+ this.colorScale = new ColorScale({
1750
+ barheight: 20,
1751
+ barwidth: 100,
1752
+ domain: [min, max],
1753
+ fontSize: 12,
1754
+ height: 40,
1755
+ width: 150,
1756
+ holder: this.colorScaleDiv,
1757
+ colors: [this.startColor, this.endColor],
1758
+ position: "20,0",
1759
+ ticks: 3,
1760
+ tickSize: 5,
1761
+ //Do not use min value here on initialization. It's 0 and will not update later.
1762
+ markedValue: 1
1763
+ });
1764
+ }
1765
+ update() {
1766
+ const res = this.parent("calcResolution");
1767
+ let resolutionText;
1768
+ if (res < this.hic.bpresolution[this.hic.bpresolution.length - 1]) {
1769
+ resolutionText = `${res} fragment${res > 1 ? "s" : ""}`;
1770
+ } else {
1771
+ resolutionText = bplen(res);
1772
+ }
1773
+ this.resolutionDiv.text(resolutionText);
1774
+ if (this.parent("state").currView == "horizontal") {
1775
+ this.colorScaleLabel.style("display", "none");
1776
+ this.colorScaleDiv.style("display", "none");
1777
+ } else {
1778
+ this.colorScaleLabel.style("display", "");
1779
+ this.colorScaleDiv.style("display", "");
1780
+ const min = this.parent("min");
1781
+ const max = this.parent("max");
1782
+ if (min < 0) {
1783
+ this.colorScale.colors = ["blue", "white", "red"];
1784
+ this.colorScale.domain = [min, 0, max];
1785
+ } else {
1786
+ this.colorScale.colors = ["white", "red"];
1787
+ this.colorScale.domain = [0, max];
1788
+ }
1789
+ this.colorScale.markedValue = min;
1790
+ this.colorScale.updateScale();
1791
+ }
1792
+ }
1793
+ };
1794
+
1795
+ // tracks/hic/data/DataMapper.ts
1796
+ var DataMapper = class {
1797
+ constructor(hic, percentile) {
1798
+ this.hic = hic;
1799
+ this.percentile = percentile ? percentile / 100 : 0.99;
1800
+ }
1801
+ sortData(data) {
1802
+ const vlst = [];
1803
+ if (data?.items && data?.items.length) {
1804
+ for (const i of data.items) {
1805
+ vlst.push(i[2]);
1806
+ }
1807
+ } else {
1808
+ const blankChrs = /* @__PURE__ */ new Set();
1809
+ for (const d of data) {
1810
+ if (d.lead == "chrM" && !d.items.length || d.lead == "chrY" && !d.items.length) {
1811
+ blankChrs.add(d.lead);
1812
+ continue;
1813
+ }
1814
+ for (const i of d.items) {
1815
+ vlst.push(i[2]);
1816
+ }
1817
+ }
1818
+ if (blankChrs.size) {
1819
+ for (const c of blankChrs) {
1820
+ const idx = this.hic.chrlst.indexOf(c);
1821
+ this.hic.chrlst.splice(idx, 1);
1822
+ }
1823
+ }
1824
+ }
1825
+ const sortedVlst = vlst.sort((a, b) => a - b);
1826
+ const max = sortedVlst[Math.floor(sortedVlst.length * this.percentile)];
1827
+ const min = sortedVlst[0];
1828
+ return [min, max, sortedVlst[sortedVlst.length - 1]];
1829
+ }
1830
+ };
1831
+
1832
+ // tracks/hic/data/GenomeDataFetcher.ts
1833
+ var GenomeDataFetcher = class {
1834
+ constructor(hic, debugmode, errList = []) {
1835
+ this.data = [];
1836
+ this.hic = hic;
1837
+ this.debugmode = debugmode;
1838
+ this.errList = errList || [];
1839
+ }
1840
+ async getData(obj) {
1841
+ if (this.data.length) this.data = [];
1842
+ if (!obj?.matrixType) obj.matrixType = "observed";
1843
+ try {
1844
+ const res = await dofetch3("hicgenome?", {
1845
+ method: "POST",
1846
+ body: JSON.stringify({
1847
+ chrlst: this.hic.chrlst,
1848
+ nmeth: obj.nmeth,
1849
+ resolution: obj.resolution,
1850
+ matrixType: obj.matrixType,
1851
+ file: this.hic.file,
1852
+ url: this.hic.url,
1853
+ nochr: this.hic.nochr
1854
+ })
1855
+ });
1856
+ if (res.error) {
1857
+ const errs = res.error.split("\n");
1858
+ for (const e of errs) {
1859
+ this.errList.push(e);
1860
+ }
1861
+ }
1862
+ return res.data;
1863
+ } catch (e) {
1864
+ this.errList.push(e.message || e);
1865
+ if (e.stack) console.error(e.stack);
1866
+ }
1867
+ }
1868
+ };
1869
+
1870
+ // tracks/hic/data/DataFetcher.ts
1871
+ var DataFetcher = class {
1872
+ constructor(hic, debugmode, errList = []) {
1873
+ this.hic = hic;
1874
+ this.debugmode = debugmode;
1875
+ this.errList = errList || [];
1876
+ }
1877
+ async getData(obj) {
1878
+ if (!obj?.matrixType) obj.matrixType = "observed";
1879
+ const arg = {
1880
+ matrixType: obj.matrixType,
1881
+ file: this.hic.file,
1882
+ url: this.hic.url,
1883
+ pos1: this.hic.nochr ? obj.lead.replace("chr", "") : obj.lead,
1884
+ pos2: this.hic.nochr ? obj.follow.replace("chr", "") : obj.follow,
1885
+ nmeth: obj.nmeth,
1886
+ resolution: obj.resolution
1887
+ };
1888
+ try {
1889
+ const data = await dofetch3("hicdata?", {
1890
+ method: "POST",
1891
+ body: JSON.stringify(arg)
1892
+ });
1893
+ if (data.error) {
1894
+ throw Error(`${obj.lead} - ${obj.follow}: ${data.error.error}`);
1895
+ }
1896
+ if (!data.items || data.items.length == 0) return;
1897
+ return data;
1898
+ } catch (e) {
1899
+ this.errList.push(e.message || e);
1900
+ if (e.stack) console.error(e.stack);
1901
+ }
1902
+ }
1903
+ };
1904
+
1905
+ // tracks/hic/HicComponent.ts
1906
+ var HicComponent = class _HicComponent {
1907
+ constructor(opts) {
1908
+ this.genomeData = [];
1909
+ this.calcResolution = null;
1910
+ this.firstRender = true;
1911
+ this.min = 0;
1912
+ this.absMin = 0;
1913
+ this.max = 0;
1914
+ this.absMax = 0;
1915
+ this.hasStatePreMain = true;
1916
+ this.type = _HicComponent.type;
1917
+ this.hic = opts.hic;
1918
+ this.state = opts.state;
1919
+ this.dom = opts.dom;
1920
+ this.errList = opts.errList;
1921
+ this.plotDiv = this.dom.plotDiv.append("table").classed("sjpp-hic-plot-main", true);
1922
+ const tr1 = this.plotDiv.append("tr");
1923
+ const tr2 = this.plotDiv.append("tr");
1924
+ this.plotDiv = {
1925
+ plot: tr1.append("td").classed("sjpp-hic-plot", true).attr("data-testid", "sjpp-hic-plot"),
1926
+ yAxis: tr1.append("td").classed("sjpp-hic-plot-yaxis", true).attr("data-testid", "sjpp-hic-yaxis"),
1927
+ xAxis: tr2.append("td").classed("sjpp-hic-plot-xaxis", true).attr("data-testid", "sjpp-hic-xaxis"),
1928
+ blank: tr2.append("td")
1929
+ };
1930
+ this.app = opts.app;
1931
+ this.dataMapper = new DataMapper(this.hic, opts.state.maxCutoffPercentile);
1932
+ this.activeView = this.state.currView;
1933
+ this.error = opts.error;
1934
+ this.resolution = new Resolution(this.error);
1935
+ this.parent = (prop) => {
1936
+ return this[prop];
1937
+ };
1938
+ this.detailDataMapper = new DetailDataMapper(this.hic, this.errList, this.parent);
1939
+ }
1940
+ static {
1941
+ this.type = "view";
1942
+ }
1943
+ getState(appState) {
1944
+ return appState;
1945
+ }
1946
+ reactsTo(action) {
1947
+ if (action.type.startsWith("view")) return true;
1948
+ else return false;
1949
+ }
1950
+ initView() {
1951
+ const opts = {
1952
+ plotDiv: this.plotDiv,
1953
+ hic: this.hic,
1954
+ app: this.app,
1955
+ parent: (prop) => {
1956
+ return this[prop];
1957
+ }
1958
+ };
1959
+ if (this.state.currView == "genome") {
1960
+ opts["data"] = this.data;
1961
+ this.genome = new GenomeView(opts);
1962
+ this.genome.render();
1963
+ } else if (this.state.currView === "chrpair") {
1964
+ opts["items"] = this.data;
1965
+ this.chrpair = new ChrPairView(opts);
1966
+ this.chrpair.render();
1967
+ } else if (this.state.currView === "detail") {
1968
+ opts["data"] = this.data;
1969
+ this.detail = new DetailView(opts);
1970
+ this.detail.render();
1971
+ } else if (this.state.currView === "horizontal") {
1972
+ this.horizontal = new HorizontalView(opts);
1973
+ this.horizontal.render();
1974
+ } else {
1975
+ throw Error(`Unknown view: ${this.state.currView}`);
1976
+ }
1977
+ }
1978
+ async fetchData(obj) {
1979
+ if (this.data?.length) this.data = [];
1980
+ if (this.state.currView == "genome") {
1981
+ if (this.activeView != "genome" && this.genomeData?.length) this.data = this.genomeData;
1982
+ else {
1983
+ const genomeFetcher = new GenomeDataFetcher(this.hic, true, this.errList);
1984
+ this.genomeData = await genomeFetcher.getData(obj);
1985
+ this.data = this.genomeData;
1986
+ }
1987
+ } else if (this.state.currView == "detail") {
1988
+ this.data = await this.detailDataMapper.getData(this.state.x, this.state.y, this.fragData);
1989
+ } else {
1990
+ if (!this.state?.x?.chr || !this.state?.y?.chr) {
1991
+ this.errList.push(`No positions provided for ${this.activeView} view.`);
1992
+ return;
1993
+ } else {
1994
+ const chrx = this.state.x;
1995
+ const chry = this.state.y;
1996
+ obj["lead"] = `${chrx.start && chrx.stop ? `${chrx.chr}:${chrx.start}-${chrx.stop}` : chrx.chr}`;
1997
+ obj["follow"] = `${chry.start && chry.stop ? `${chry.chr}:${chry.start}-${chry.stop}` : chry.chr}`;
1998
+ }
1999
+ const dataFetcher = new DataFetcher(this.hic, true, this.errList);
2000
+ this.data = await dataFetcher.getData(obj);
2001
+ }
2002
+ }
2003
+ async setResolution(appState) {
2004
+ const state = this.app.getState(appState);
2005
+ this.calcResolution = this.resolution.getResolution(state, this.hic);
2006
+ if (state.currView == "detail" && this.calcResolution == null) {
2007
+ await this.detailDataMapper.getFragData(state.x, state.y);
2008
+ this.fragData = this.detailDataMapper.frag;
2009
+ const maxFragSpan = Math.min(
2010
+ this.fragData.x.stop - this.fragData.x.start,
2011
+ this.fragData.y.stop - this.fragData.y.start
2012
+ );
2013
+ this.calcResolution = this.resolution.findResFromArray(
2014
+ maxFragSpan,
2015
+ state.minFragSpan,
2016
+ this.hic.fragresolution,
2017
+ true
2018
+ );
2019
+ } else {
2020
+ this.fragData = null;
2021
+ }
2022
+ return this.calcResolution;
2023
+ }
2024
+ async setDataArgs(appState) {
2025
+ const state = this.app.getState(appState);
2026
+ const currView = state[state.currView];
2027
+ const args = {
2028
+ nmeth: currView.nmeth,
2029
+ resolution: await this.setResolution(appState),
2030
+ matrixType: currView.matrixType
2031
+ };
2032
+ if (state.currView == "chrpair") {
2033
+ args["lead"] = state.x.chr;
2034
+ args["follow"] = state.y.chr;
2035
+ }
2036
+ return args;
2037
+ }
2038
+ async getViewData(appState) {
2039
+ const args = await this.setDataArgs(appState);
2040
+ await this.fetchData(args);
2041
+ if (this.data?.length > 0 || this.data?.items?.length > 0) {
2042
+ const [min, max, absMax] = this.dataMapper.sortData(this.data);
2043
+ this.min = this.absMin = min;
2044
+ this.max = max;
2045
+ this.absMax = absMax;
2046
+ } else {
2047
+ if (this.state.currView != "genome") {
2048
+ const state = this.app.getState(appState);
2049
+ const xPosMessage = state.x?.start ? `${state.x.chr}:${state.x.start}-${state.x.stop}` : state.x.chr;
2050
+ const yPosMessage = state.y?.start ? `${state.y.chr}:${state.y.start}-${state.y.stop}` : state.y.chr;
2051
+ this.errList.push(`No data returned for ${xPosMessage} and ${yPosMessage}`);
2052
+ }
2053
+ }
2054
+ }
2055
+ async init() {
2056
+ this.components = {
2057
+ controls: await controlPanelInit({
2058
+ app: this.app,
2059
+ controlsDiv: this.dom.controlsDiv,
2060
+ hic: this.hic,
2061
+ parent: (prop, value) => {
2062
+ if (value) this[prop] = value;
2063
+ return this[prop];
2064
+ },
2065
+ error: this.error.bind(this)
2066
+ })
2067
+ };
2068
+ this.infoBar = new InfoBar({
2069
+ app: this.app,
2070
+ infoBarDiv: this.dom.infoBarDiv.append("table").style("border-spacing", "3px"),
2071
+ hic: this.hic,
2072
+ parent: (prop) => {
2073
+ return this[prop];
2074
+ }
2075
+ });
2076
+ this.infoBar.render();
2077
+ }
2078
+ async main(appState) {
2079
+ if (this.errList.length) {
2080
+ this.app.dispatch({ type: "loading_active", active: false });
2081
+ return;
2082
+ }
2083
+ const state = this.app.getState(appState);
2084
+ if (this.firstRender == true) {
2085
+ this.firstRender = false;
2086
+ await this.getViewData(appState);
2087
+ this.initView();
2088
+ } else {
2089
+ if (state.currView != "horizontal") {
2090
+ this.app.dispatch({ type: "loading_active", active: true });
2091
+ await this.getViewData(appState);
2092
+ }
2093
+ if (this.activeView != state.currView) {
2094
+ if (this.activeView == "genome") {
2095
+ this.genome.svg.remove();
2096
+ } else {
2097
+ this.plotDiv.xAxis.selectAll("*").remove();
2098
+ this.plotDiv.yAxis.selectAll("*").remove();
2099
+ this.plotDiv.plot.selectAll("*").remove();
2100
+ }
2101
+ this.activeView = state.currView;
2102
+ this.initView();
2103
+ } else {
2104
+ this[state.currView].update(this.data);
2105
+ }
2106
+ }
2107
+ this.infoBar.update();
2108
+ if (this.errList.length) {
2109
+ this.error(this.errList);
2110
+ this.app.dispatch({ type: "loading_active", active: false });
2111
+ }
2112
+ }
2113
+ };
2114
+ var viewCompInit = getCompInit(HicComponent);
2115
+
2116
+ // tracks/hic/HicApp.ts
2117
+ var HicApp = class _HicApp extends AppBase {
2118
+ constructor(opts) {
2119
+ super(opts);
2120
+ this.views = ["genome", "chrpair", "detail", "horizontal"];
2121
+ this.errList = [];
2122
+ /** Required for rx but not in use */
2123
+ this.wasDestroyed = false;
2124
+ this.type = _HicApp.type;
2125
+ this.hic = {
2126
+ enzyme: opts.enzyme,
2127
+ file: opts.file,
2128
+ url: opts.url,
2129
+ genome: opts.genome,
2130
+ holder: opts.holder,
2131
+ hostUrl: opts.hostUrl,
2132
+ jwt: opts.jwt,
2133
+ position1: opts.position1,
2134
+ position2: opts.position2,
2135
+ maxCutoffPercentile: opts.maxCutoffPercentile,
2136
+ name: "name" in opts ? opts.name : "Hi-C",
2137
+ tklist: "tklst" in opts ? opts.tklst : [],
2138
+ state: "state" in opts ? opts.state : {}
2139
+ };
2140
+ this.dom = {
2141
+ errorDiv: opts.holder.append("div").classed("sjpp-hic-error", true),
2142
+ controlsDiv: opts.holder.append("div").classed("sjpp-hic-controls", true).style("display", "inline-block"),
2143
+ 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"),
2144
+ loadingDiv: select_default("body").append("div").attr("id", "sjpp-loading-overlay"),
2145
+ plotDiv: opts.holder.append("div").classed("sjpp-hic-main", true).style("display", "inline-block"),
2146
+ tip: new Menu()
2147
+ };
2148
+ }
2149
+ static {
2150
+ this.type = "app";
2151
+ }
2152
+ async error(err) {
2153
+ if (err && typeof err == "string") this.errList.push(err);
2154
+ showErrorsWithCounter(this.errList, this.dom.errorDiv);
2155
+ this.errList = [];
2156
+ }
2157
+ determineView() {
2158
+ if (!this.hic.position1 && !this.hic.position2 && !this.hic.state.currView) this.hic.state.currView = "genome";
2159
+ if (!this.hic.position1 && this.hic.position2) this.errList.push("Missing first position");
2160
+ if (this.hic.position1 && !this.hic.position2) this.errList.push("Missing second position");
2161
+ if (this.hic.position1 && this.hic.position2) {
2162
+ const pos1 = this.hic.position1.split(/[:-]/);
2163
+ const pos2 = this.hic.position2.split(/[:-]/);
2164
+ this.hic.state.x = { chr: pos1[0] };
2165
+ this.hic.state.y = { chr: pos2[0] };
2166
+ if (!Number.isNaN(+pos1[1]) && !Number.isNaN(+pos1[2])) {
2167
+ this.hic.state.x.start = +pos1[1];
2168
+ this.hic.state.x.stop = +pos1[2];
2169
+ this.hic.state.y.start = +pos2[1];
2170
+ this.hic.state.y.stop = +pos2[2];
2171
+ this.hic.state.currView = "detail";
2172
+ } else {
2173
+ this.hic.state.currView = "chrpair";
2174
+ }
2175
+ } else {
2176
+ if (!this.views.some((v) => v === this.hic.state.currView)) this.error(`Unknown view: ${this.hic.state.currView}`);
2177
+ else return this.hic.state.currView;
2178
+ }
2179
+ }
2180
+ getViewsConfig() {
2181
+ if (this.hic.maxCutoffPercentile) this.hic.state.maxCutoffPercentile = this.hic.maxCutoffPercentile;
2182
+ let nmeth;
2183
+ if (this.hic["normalization"]?.length > 0) {
2184
+ if (!this.hic["normalization"].includes("NONE")) this.hic["normalization"].unshift("NONE");
2185
+ nmeth = this.hic["normalization"][0];
2186
+ } else {
2187
+ nmeth = "NONE";
2188
+ }
2189
+ if (this.hic.state.currView) {
2190
+ if (!this.hic.state[this.hic.state.currView]) this.hic.state[this.hic.state.currView] = {};
2191
+ if (!this.hic.state[this.hic.state.currView]?.matrixType) {
2192
+ this.hic.state[this.hic.state.currView].matrixType = "observed";
2193
+ }
2194
+ if (!this.hic.state[this.hic.state.currView]?.nmeth) {
2195
+ this.hic.state[this.hic.state.currView].nmeth = nmeth;
2196
+ }
2197
+ }
2198
+ for (const v of this.views) {
2199
+ if (!this.hic.state[v]) {
2200
+ this.hic.state[v] = {
2201
+ matrixType: "observed",
2202
+ nmeth
2203
+ };
2204
+ }
2205
+ }
2206
+ }
2207
+ async init() {
2208
+ this.determineView();
2209
+ try {
2210
+ await hicParseFile(this.hic, true, this.errList);
2211
+ this.getViewsConfig();
2212
+ this.store = await hicStoreInit({ app: this.api, state: this.hic.state });
2213
+ this.state = await this.store.copyState();
2214
+ this.components = {
2215
+ loadingOverlay: await loadingInit({
2216
+ app: this.api,
2217
+ loadingDiv: this.dom.loadingDiv
2218
+ }),
2219
+ view: await viewCompInit({
2220
+ app: this.api,
2221
+ state: this.state,
2222
+ dom: this.dom,
2223
+ hic: this.hic,
2224
+ errList: this.errList,
2225
+ error: this.error
2226
+ })
2227
+ };
2228
+ await this.api.dispatch();
2229
+ } catch (e) {
2230
+ console.error(e.stack || e);
2231
+ }
2232
+ }
2233
+ main() {
2234
+ if (this.errList.length) {
2235
+ this.error(this.errList);
2236
+ this.dom.loadingDiv.style("display", "none");
2237
+ return;
2238
+ }
2239
+ }
2240
+ };
2241
+ var hicInit = getAppInit(HicApp);
2242
+ export {
2243
+ hicInit
2244
+ };
2245
+ //# sourceMappingURL=HicApp-VKET4QHD.js.map