@sjcrh/proteinpaint-client 2.209.0 → 2.210.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 (888) hide show
  1. package/dist/2dmaf-43QBND66.js +1367 -0
  2. package/dist/AggMatrixInput-X7NGFUHH.js +406 -0
  3. package/dist/AggregateMatrix-M4HRI4PX.js +41 -0
  4. package/dist/AppHeader-QBRQN6PM.js +830 -0
  5. package/dist/BoxPlot-V6SPSEQ2.js +1211 -0
  6. package/dist/CorrelationVolcano-UFPCYC77.js +617 -0
  7. package/dist/Cuminc-KXGXGLKZ.js +1219 -0
  8. package/dist/DE-K2YXHOOW.js +89 -0
  9. package/dist/DEinput-O6LBFAAH.js +501 -0
  10. package/dist/DEinput-O6LBFAAH.js.map +7 -0
  11. package/dist/DM-C7VN3RWB.js +90 -0
  12. package/dist/DifferentialAnalysis-A2BU4WB3.js +239 -0
  13. package/dist/Disco-HECQVKXG.js +3389 -0
  14. package/dist/Disco.UI-XF2GEKRW.js +243 -0
  15. package/dist/DmrPlot-TVXVXOHL.js +362 -0
  16. package/dist/GB-66ZGJ5ST.js +1428 -0
  17. package/dist/GSEA-Z4YPI4HY.js +875 -0
  18. package/dist/GeneExpInput-VBIZZV27.js +42 -0
  19. package/dist/Geomap-UIIOLRFA.js +84 -0
  20. package/dist/HicApp-73ESVNBA.js +2245 -0
  21. package/dist/IDCViewer-RBYN5A4P.js +10812 -0
  22. package/dist/NumBinaryEditor-DJLSNSLE.js +279 -0
  23. package/dist/NumBinaryEditor.unit.spec-LCJHL3XM.js +312 -0
  24. package/dist/NumContEditor-SVLDJ2ML.js +105 -0
  25. package/dist/NumContEditor.unit.spec-JDMSK4HY.js +164 -0
  26. package/dist/NumCustomBinEditor-BI63AH3R.js +33 -0
  27. package/dist/NumCustomBinEditor.unit.spec-5433G7Y2.js +397 -0
  28. package/dist/NumDiscreteEditor-LEZTGXAV.js +170 -0
  29. package/dist/NumDiscreteEditor.unit.spec-5OEORHJ4.js +233 -0
  30. package/dist/NumRegularBinEditor-EXWHIWPM.js +33 -0
  31. package/dist/NumRegularBinEditor.unit.spec-QY25Z2TT.js +278 -0
  32. package/dist/NumSplineEditor-XPPMYYAD.js +210 -0
  33. package/dist/NumSplineEditor.unit.spec-GOGBKWMN.js +224 -0
  34. package/dist/NumericDensity-RKY2IQ72.js +33 -0
  35. package/dist/NumericDensity.unit.spec-5ZM6ICXM.js +418 -0
  36. package/dist/NumericHandler-FXF3M5M3.js +34 -0
  37. package/dist/NumericHandler.unit.spec-M2OQTBJX.js +214 -0
  38. package/dist/ProteomeInput-TMZ3THRL.js +388 -0
  39. package/dist/Regression-GQGAATHG.js +1416 -0
  40. package/dist/RunChart2-7GNDWRKC.js +749 -0
  41. package/dist/SC-R2I2EMHA.js +1183 -0
  42. package/dist/Violin-GKKEB55L.js +1081 -0
  43. package/dist/Volcano-HRG5EFWH.js +2443 -0
  44. package/dist/Wsi-OHRCGYYD.js +629 -0
  45. package/dist/adSandbox-H56B25WR.js +33 -0
  46. package/dist/animatedBubbleChart-7SXFHU4J.js +547 -0
  47. package/dist/app-22JCSULA.js +42 -0
  48. package/dist/app-RGZJB6LN.js +32 -0
  49. package/dist/app.js +12 -12
  50. package/dist/bam-HA65TRGX.js +876 -0
  51. package/dist/barchart-6XO75OMA.js +42 -0
  52. package/dist/barchart2-6E5BIRHD.js +309 -0
  53. package/dist/block-43KNTXZ5.js +6250 -0
  54. package/dist/block.init-TPU5QIPA.js +33 -0
  55. package/dist/block.mds.expressionrank-QZDRFXCH.js +354 -0
  56. package/dist/block.mds.geneboxplot-64QVBK5Q.js +823 -0
  57. package/dist/block.mds.junction-I4J6VXNT.js +1539 -0
  58. package/dist/block.mds.svcnv-GDQMSQFF.js +6796 -0
  59. package/dist/block.svg-2MZFT5QP.js +159 -0
  60. package/dist/block.tk.aicheck-2MKHF6LX.js +278 -0
  61. package/dist/block.tk.ase-CLYGKFTS.js +360 -0
  62. package/dist/block.tk.bam-XTR4QA5Z.js +1901 -0
  63. package/dist/block.tk.bedgraphdot-A2P2CXRU.js +379 -0
  64. package/dist/block.tk.bigwig.ui-YZH6JXEO.js +206 -0
  65. package/dist/block.tk.hicstraw-QBK5VWGU.js +818 -0
  66. package/dist/block.tk.junction-5DEVBA7G.js +2358 -0
  67. package/dist/block.tk.junction.textmatrixui-7TTQMO6W.js +194 -0
  68. package/dist/block.tk.ld-PRIVUPKL.js +94 -0
  69. package/dist/block.tk.menu-JGBRFSS3.js +1024 -0
  70. package/dist/block.tk.pgv-KQJCJMVD.js +938 -0
  71. package/dist/brainImaging-4SLVJ2HV.js +555 -0
  72. package/dist/brainRegions-BDIVM2SG.js +217 -0
  73. package/dist/bubbleHeatmap-ORKFJNEQ.js +378 -0
  74. package/dist/cellTypeBubbleHeatmap-VOHLI4P7.js +278 -0
  75. package/dist/chunk-26N3B2JO.js +194 -0
  76. package/dist/chunk-2HNJF5ZI.js +240 -0
  77. package/dist/chunk-2LNGHIOC.js +281 -0
  78. package/dist/chunk-3SCQGODD.js +274 -0
  79. package/dist/chunk-47STLK7K.js +518 -0
  80. package/dist/chunk-4XYQG3XU.js +276 -0
  81. package/dist/chunk-53XNEXR6.js +34 -0
  82. package/dist/chunk-55FABQU2.js +24955 -0
  83. package/dist/chunk-55FABQU2.js.map +7 -0
  84. package/dist/chunk-5UB5H7A3.js +123 -0
  85. package/dist/chunk-6FYQYTV6.js +141 -0
  86. package/dist/chunk-6RP6CR4Q.js +182 -0
  87. package/dist/chunk-A5D37SIL.js +103 -0
  88. package/dist/chunk-ADRFQ5AL.js +102 -0
  89. package/dist/chunk-AUZ63NKJ.js +70 -0
  90. package/dist/chunk-B563DUNQ.js +217 -0
  91. package/dist/chunk-BK6UDL7F.js +339 -0
  92. package/dist/chunk-CT4IG5IR.js +339 -0
  93. package/dist/chunk-D6UBH77N.js +1731 -0
  94. package/dist/chunk-DS4GLMJL.js +170 -0
  95. package/dist/chunk-DSBRHWZ7.js +2853 -0
  96. package/dist/chunk-DX35MKPR.js +272 -0
  97. package/dist/chunk-EDZJ3VNZ.js +54 -0
  98. package/dist/chunk-F47A4CVK.js +1339 -0
  99. package/dist/chunk-G4H34RNK.js +446 -0
  100. package/dist/chunk-G7RUMSHL.js +263 -0
  101. package/dist/chunk-GXFS25SK.js +480 -0
  102. package/dist/chunk-I25LKYC4.js +379 -0
  103. package/dist/chunk-I25LKYC4.js.map +7 -0
  104. package/dist/chunk-IAB2PRIH.js +396 -0
  105. package/dist/chunk-IAB2PRIH.js.map +7 -0
  106. package/dist/chunk-IBT6WRY6.js +692 -0
  107. package/dist/chunk-IJ7AIDEO.js +302 -0
  108. package/dist/chunk-JBFVJHZN.js +1233 -0
  109. package/dist/chunk-JDVBUIEU.js +56 -0
  110. package/dist/chunk-K7RW5TPU.js +4375 -0
  111. package/dist/chunk-KIAMLQ7S.js +424 -0
  112. package/dist/chunk-KIAMLQ7S.js.map +7 -0
  113. package/dist/chunk-LBCIXRI2.js +49 -0
  114. package/dist/chunk-MNXL2UV5.js +98 -0
  115. package/dist/chunk-NI5CVN43.js +203 -0
  116. package/dist/chunk-NOBXDQDU.js +397 -0
  117. package/dist/chunk-NQNVLZOA.js +6360 -0
  118. package/dist/chunk-NULFGPE3.js +158 -0
  119. package/dist/chunk-OUIXGM3K.js +299 -0
  120. package/dist/chunk-P4LGA36F.js +14 -0
  121. package/dist/chunk-PU5FQWAY.js +55 -0
  122. package/dist/chunk-PZ2OSHBF.js +56 -0
  123. package/dist/chunk-QBNDPW7O.js +5071 -0
  124. package/dist/chunk-R5PKBL7V.js +80 -0
  125. package/dist/chunk-RFSOP75Z.js +1988 -0
  126. package/dist/chunk-RFSOP75Z.js.map +7 -0
  127. package/dist/chunk-RI65SIN3.js +626 -0
  128. package/dist/chunk-RPGLLO4T.js +2676 -0
  129. package/dist/chunk-RXNZK7MF.js +134 -0
  130. package/dist/chunk-S2ICJ3RZ.js +550 -0
  131. package/dist/chunk-SFHG6H2D.js +129 -0
  132. package/dist/chunk-TQ2DVEQO.js +783 -0
  133. package/dist/chunk-U6BJ4ZNU.js +176 -0
  134. package/dist/chunk-UXD6G6G4.js +178 -0
  135. package/dist/chunk-VA57CUC7.js +2146 -0
  136. package/dist/chunk-VH5W6ODW.js +294 -0
  137. package/dist/chunk-VROF55EH.js +255 -0
  138. package/dist/chunk-VWA7BYSV.js +217 -0
  139. package/dist/chunk-X37BRSGS.js +102 -0
  140. package/dist/chunk-XQYDXA47.js +562 -0
  141. package/dist/chunk-XXPUZVS4.js +237 -0
  142. package/dist/chunk-Y7V5AIUH.js +468 -0
  143. package/dist/chunk-YBNIOGUE.js +243 -0
  144. package/dist/chunk-YEYMNF7V.js +2327 -0
  145. package/dist/chunk-YJ74QATP.js +1278 -0
  146. package/dist/chunk-ZG2HCGAO.js +2784 -0
  147. package/dist/chunk-ZZN7ZD7J.js +54 -0
  148. package/dist/cohort-6OCRQQ2S.js +70 -0
  149. package/dist/condition-SZVXH3VU.js +327 -0
  150. package/dist/controls-MO6ZND76.js +34 -0
  151. package/dist/controls.config-P4MSTGL4.js +34 -0
  152. package/dist/correlation-NMI3CM3T.js +95 -0
  153. package/dist/customdata.inputui-VCHSCA65.js +284 -0
  154. package/dist/dataDownload-VQHOTQ5D.js +329 -0
  155. package/dist/databrowser.ui-ZFOCAG32.js +425 -0
  156. package/dist/dictionary-S5YCFUWH.js +113 -0
  157. package/dist/dnaMethylation-MQZLZRGT.js +33 -0
  158. package/dist/dnaMethylation.integration.spec-H546EBUO.js +198 -0
  159. package/dist/dofetch-QZIYSC7H.js +48 -0
  160. package/dist/e2pca-XOXOS3PN.js +344 -0
  161. package/dist/ep-U6KRL7FR.js +1249 -0
  162. package/dist/expclust.gdc.spec-HCK65C63.js +302 -0
  163. package/dist/facet-DCC25KJO.js +519 -0
  164. package/dist/gb-TIFWFD4Y.js +81 -0
  165. package/dist/geneExpClustering-6DQEOTOY.js +244 -0
  166. package/dist/geneExpression-EASRAN6B.js +310 -0
  167. package/dist/geneExpression-G4YMDCBH.js +33 -0
  168. package/dist/geneExpression.unit.spec-XVEJYMPX.js +128 -0
  169. package/dist/geneORA-6UBS5GSC.js +273 -0
  170. package/dist/geneRanking-UXXYWHNB.js +548 -0
  171. package/dist/geneVariant-SZRJOXVC.js +289 -0
  172. package/dist/geneVariant-TKFKARZK.js +36 -0
  173. package/dist/geneVariant.integration.spec-PXMAYJN3.js +503 -0
  174. package/dist/geneVariant.integration.spec-PXMAYJN3.js.map +7 -0
  175. package/dist/genefusion.ui-TJLYXSVL.js +303 -0
  176. package/dist/geneset-YTBDLEIH.js +203 -0
  177. package/dist/genomeBrowser.spec-ZO4LFIXE.js +276 -0
  178. package/dist/grin2-FC4VYU54.js +949 -0
  179. package/dist/grin2-LIFKBMVK.js +70 -0
  180. package/dist/hierCluster-56EGAPOR.js +59 -0
  181. package/dist/hierCluster-DR5NWCXA.js +55 -0
  182. package/dist/hierCluster.config-NACE3FH2.js +36 -0
  183. package/dist/hierCluster.integration.spec-PEEXPAS6.js +483 -0
  184. package/dist/hierCluster.interactivity-OCBGLUJM.js +49 -0
  185. package/dist/hierCluster.renderers-JNQUSAP4.js +19 -0
  186. package/dist/imagePlot-GR4JNUGG.js +156 -0
  187. package/dist/importPlot-4R4BSPVD.js +8 -0
  188. package/dist/isoformExpression-ST5ZW2NE.js +35 -0
  189. package/dist/isoformExpression.unit.spec-PPFC5Z7N.js +237 -0
  190. package/dist/junction-7AKZHOHV.js +36 -0
  191. package/dist/junction.unit.spec-SZUJXRQ2.js +182 -0
  192. package/dist/launch.adhoc-RWJQUOJ6.js +37 -0
  193. package/dist/leftlabel.sample-WRHLVQAQ.js +258 -0
  194. package/dist/lollipop-ZZWXTM23.js +166 -0
  195. package/dist/maf-N4XPZTQU.js +455 -0
  196. package/dist/maftimeline-2FBS6RWS.js +587 -0
  197. package/dist/matrix-5KEQPB5H.js +59 -0
  198. package/dist/matrix-RJUNXB5N.js +54 -0
  199. package/dist/matrix.cells-WXTPOJYB.js +26 -0
  200. package/dist/matrix.config-ZZFLLD6Z.js +37 -0
  201. package/dist/matrix.data-3PQ73GVJ.js +23 -0
  202. package/dist/matrix.groups-U6CKS6WW.js +26 -0
  203. package/dist/matrix.integration.spec-T53PMVHC.js +3160 -0
  204. package/dist/matrix.interactivity-3LDZV3F7.js +37 -0
  205. package/dist/matrix.layout-MINLYQCA.js +39 -0
  206. package/dist/matrix.legend-6GSDFZHS.js +20 -0
  207. package/dist/matrix.renderers-5BKOXDE3.js +34 -0
  208. package/dist/matrix.serieses-6FCFIFAQ.js +19 -0
  209. package/dist/matrix.sort-EHVVYDZ3.js +26 -0
  210. package/dist/matrix.sort.unit.spec-BCWE4AFX.js +468 -0
  211. package/dist/matrix.sorterUi.unit.spec-XJR5KXRL.js +338 -0
  212. package/dist/matrix.unit.spec-TUCKPE26.js +150 -0
  213. package/dist/mavb-GWSNRBLM.js +727 -0
  214. package/dist/mds.fimo-OMAQRSMW.js +513 -0
  215. package/dist/mds.samplescatterplot-4UW3CC45.js +1545 -0
  216. package/dist/mds.survivalplot-2CJYJBD2.js +477 -0
  217. package/dist/multivalue-G44MHEYI.js +83 -0
  218. package/dist/numericDictTermCluster-5BDRGVQG.js +63 -0
  219. package/dist/oncomatrix-ZTVO23ZH.js +290 -0
  220. package/dist/oncomatrix.spec-2QVK2A3Q.js +443 -0
  221. package/dist/plot.2dvaf-CL5YUXKH.js +372 -0
  222. package/dist/plot.app-4ANKPSNP.js +36 -0
  223. package/dist/plot.barplot-BMGDNZRA.js +97 -0
  224. package/dist/plot.boxplot-GMLQCDP6.js +146 -0
  225. package/dist/plot.brainImaging-RZXX3NUZ.js +51 -0
  226. package/dist/plot.disco-3MD4J4C7.js +99 -0
  227. package/dist/plot.ssgq-ZC4UYKOT.js +134 -0
  228. package/dist/plot.vaf2cov-4DHFMYQV.js +253 -0
  229. package/dist/polar2-TMB5EITR.js +232 -0
  230. package/dist/profileForms-GD7BIOOD.js +941 -0
  231. package/dist/profilePlot-CZLK5E74.js +49 -0
  232. package/dist/proteinView-FEEEXLKT.js +1357 -0
  233. package/dist/proteomeCohortCompare-NVLJ2FXX.js +912 -0
  234. package/dist/pseudbulk.unit.spec-GHQZPNAH.js +86 -0
  235. package/dist/pseudobulk-G5UQIRKL.js +35 -0
  236. package/dist/qualitative-EAUUCKU5.js +38 -0
  237. package/dist/radar2-CJQ2L6KE.js +327 -0
  238. package/dist/radarFacility2-BLVRZE4V.js +335 -0
  239. package/dist/render-KKAQPH6Y.js +33 -0
  240. package/dist/report-OSOJHTSD.js +217 -0
  241. package/dist/sampleView-WB74RLD7.js +43 -0
  242. package/dist/samplelst-ZKXV5WOD.js +106 -0
  243. package/dist/samplematrix-WJFYMWLT.js +2193 -0
  244. package/dist/sc-RBRBUCLR.js +81 -0
  245. package/dist/scatter-5K3QTIDK.js +88 -0
  246. package/dist/scatter-SM7GQENM.js +925 -0
  247. package/dist/selectGenomeWithTklst-ZZUJ7AQ7.js +129 -0
  248. package/dist/singleCellCellType-LCF2JNZ2.js +33 -0
  249. package/dist/singleCellCellType.unit.spec-T6DYH4BC.js +154 -0
  250. package/dist/singleCellGeneExpression-2XUYTH4C.js +33 -0
  251. package/dist/singleCellGeneExpression.unit.spec-SMRCLOF4.js +148 -0
  252. package/dist/singleCellNumericValue-57I33FZT.js +33 -0
  253. package/dist/singleCellNumericValue.unit.spec-4YNB4OEV.js +416 -0
  254. package/dist/singleCellPlot-L6TKQHGD.js +48 -0
  255. package/dist/singlecell-LZKR3UDV.js +81 -0
  256. package/dist/singlecell-UKN2VCXQ.js +1566 -0
  257. package/dist/snp-3LJITU5B.js +33 -0
  258. package/dist/snp.unit.spec-ZQNU6XRM.js +171 -0
  259. package/dist/snplocus-OME7UQBW.js +203 -0
  260. package/dist/spliceevent.a53ss.diagram-C32IEFMU.js +146 -0
  261. package/dist/spliceevent.exonskip.diagram-CZ7MVRLK.js +278 -0
  262. package/dist/spliceevent.noeventdiagram-ZO6R3776.js +455 -0
  263. package/dist/ssGSEA-BGPQ2PFY.js +33 -0
  264. package/dist/ssGSEA.unit.spec-U7TBUSSK.js +83 -0
  265. package/dist/stattable-FISGQCED.js +117 -0
  266. package/dist/studyCatalog-UHFUT2CJ.js +414 -0
  267. package/dist/summarizeCnvGeneexp-OVZO6KIB.js +158 -0
  268. package/dist/summarizeGeneexpSurvival-KVQ4JGWK.js +105 -0
  269. package/dist/summarizeMutationCnv-RAKGHNLE.js +159 -0
  270. package/dist/summarizeMutationDiagnosis-LGCINAGG.js +35 -0
  271. package/dist/summarizeMutationSurvival-J7H7L4FX.js +99 -0
  272. package/dist/summary-2632JZXH.js +44 -0
  273. package/dist/summary.integration.spec-5WBS2ZRP.js +409 -0
  274. package/dist/summaryInput-BH6C3ATV.js +242 -0
  275. package/dist/sunburst-AMRR2IHM.js +278 -0
  276. package/dist/survival-2RNJQVFS.js +1248 -0
  277. package/dist/survival-WYCH4QOQ.js +53 -0
  278. package/dist/survival.integration.spec-7IFPY4I4.js +613 -0
  279. package/dist/svgraph-YQWS52ZJ.js +1382 -0
  280. package/dist/svmr-NRN6LGKK.js +3837 -0
  281. package/dist/table-3QOMV2NN.js +197 -0
  282. package/dist/termCollection-2ZJ7TJGO.js +33 -0
  283. package/dist/termCollection-3MCVR7BA.js +252 -0
  284. package/dist/termCollection.unit.spec-QYOEA3X6.js +299 -0
  285. package/dist/termCollectionFractionSelection-5AH6EF4L.js +42 -0
  286. package/dist/termCollectionFractionSelection.unit.spec-WPGW4WJN.js +188 -0
  287. package/dist/tk-DQ7D5UEO.js +41 -0
  288. package/dist/tk-ONKYBG6R.js +1121 -0
  289. package/dist/tp.ui-C7BTMHEI.js +1454 -0
  290. package/dist/tvs.dt-PLRMK7OT.js +34 -0
  291. package/dist/tvs.dtcnv.categorical-IZUY2AQO.js +35 -0
  292. package/dist/tvs.dtcnv.continuous-ENV3RHHA.js +67 -0
  293. package/dist/tvs.dtfusion-2DVCV6AM.js +35 -0
  294. package/dist/tvs.dtitd-XNDIRQYU.js +35 -0
  295. package/dist/tvs.dtsnvindel-4D3G7XSF.js +35 -0
  296. package/dist/tvs.dtsv-QYMIMC4Z.js +35 -0
  297. package/dist/tvs.numeric-M5LH3PRH.js +20 -0
  298. package/dist/tvs.samplelst-2KEU2ZWB.js +98 -0
  299. package/dist/tvs.termCollection-FEY746V5.js +124 -0
  300. package/dist/vocabulary-BR4NJDPS.js +36 -0
  301. package/dist/wsi.direct-JWDUNHIO.js +8343 -0
  302. package/package.json +3 -3
  303. package/dist/2dmaf-VTMPVZGT.js +0 -1367
  304. package/dist/AggMatrixInput-CH3RQ2QC.js +0 -406
  305. package/dist/AggregateMatrix-DPCHUOMF.js +0 -41
  306. package/dist/AppHeader-RA7T467G.js +0 -830
  307. package/dist/BoxPlot-7Q7SMT26.js +0 -1211
  308. package/dist/CorrelationVolcano-YV4UHOAX.js +0 -617
  309. package/dist/Cuminc-ZN53C3MD.js +0 -1219
  310. package/dist/DE-BEWW5AIG.js +0 -89
  311. package/dist/DEinput-SJITUJF2.js +0 -499
  312. package/dist/DEinput-SJITUJF2.js.map +0 -7
  313. package/dist/DM-2LBNE4WE.js +0 -90
  314. package/dist/DifferentialAnalysis-WE4LBHEF.js +0 -239
  315. package/dist/Disco-PTZQF7IM.js +0 -3389
  316. package/dist/Disco.UI-NBR67N5M.js +0 -243
  317. package/dist/DmrPlot-QROLI66S.js +0 -362
  318. package/dist/GB-FEBSFX5U.js +0 -1428
  319. package/dist/GSEA-KOXOVC5V.js +0 -875
  320. package/dist/GeneExpInput-DYBK54HC.js +0 -42
  321. package/dist/Geomap-QRD2WZVL.js +0 -84
  322. package/dist/HicApp-VKET4QHD.js +0 -2245
  323. package/dist/IDCViewer-RLLTXGD7.js +0 -10812
  324. package/dist/NumBinaryEditor-GYHOYPQL.js +0 -279
  325. package/dist/NumBinaryEditor.unit.spec-E2HKBWOO.js +0 -312
  326. package/dist/NumContEditor-3V76ZSEY.js +0 -105
  327. package/dist/NumContEditor.unit.spec-RTT5Q5E5.js +0 -164
  328. package/dist/NumCustomBinEditor-O5DMPY7H.js +0 -33
  329. package/dist/NumCustomBinEditor.unit.spec-5LZBP2JL.js +0 -397
  330. package/dist/NumDiscreteEditor-DFOJ7AIH.js +0 -170
  331. package/dist/NumDiscreteEditor.unit.spec-PPJGEBFX.js +0 -233
  332. package/dist/NumRegularBinEditor-O6RDO32C.js +0 -33
  333. package/dist/NumRegularBinEditor.unit.spec-GOB3BF25.js +0 -278
  334. package/dist/NumSplineEditor-PUXJF2RW.js +0 -210
  335. package/dist/NumSplineEditor.unit.spec-4VOAAMOU.js +0 -224
  336. package/dist/NumericDensity-E6MH2THZ.js +0 -33
  337. package/dist/NumericDensity.unit.spec-IRPFBQUS.js +0 -418
  338. package/dist/NumericHandler-42RR54X3.js +0 -34
  339. package/dist/NumericHandler.unit.spec-YYOO7XVT.js +0 -214
  340. package/dist/ProteomeInput-4N2G6IFX.js +0 -388
  341. package/dist/Regression-LIWUWAGQ.js +0 -1416
  342. package/dist/RunChart2-VAX5JGZY.js +0 -749
  343. package/dist/SC-UHBZ3HRO.js +0 -1183
  344. package/dist/Violin-V23VZR6B.js +0 -1081
  345. package/dist/Volcano-64S4AW66.js +0 -2443
  346. package/dist/Wsi-FOJCKDCP.js +0 -629
  347. package/dist/adSandbox-CLMUYNC3.js +0 -33
  348. package/dist/animatedBubbleChart-GMLNYTQC.js +0 -547
  349. package/dist/app-2SFDRDN2.js +0 -32
  350. package/dist/app-QOZ36UR4.js +0 -42
  351. package/dist/bam-LLAK7FVG.js +0 -876
  352. package/dist/barchart-SEC6VKQ2.js +0 -42
  353. package/dist/barchart2-D4FXZCTU.js +0 -309
  354. package/dist/block-XGK6TEGH.js +0 -6250
  355. package/dist/block.init-UMRCAKCF.js +0 -33
  356. package/dist/block.mds.expressionrank-LFPJ52SX.js +0 -354
  357. package/dist/block.mds.geneboxplot-2QIEN6AH.js +0 -823
  358. package/dist/block.mds.junction-Z4HUFSG2.js +0 -1539
  359. package/dist/block.mds.svcnv-3GXGY6ET.js +0 -6796
  360. package/dist/block.svg-7RCJLMAP.js +0 -159
  361. package/dist/block.tk.aicheck-5N6EGZ6F.js +0 -278
  362. package/dist/block.tk.ase-V3AJRYT6.js +0 -360
  363. package/dist/block.tk.bam-W6QOVVEU.js +0 -1901
  364. package/dist/block.tk.bedgraphdot-FKTPJZTH.js +0 -379
  365. package/dist/block.tk.bigwig.ui-Y3M2TDM2.js +0 -206
  366. package/dist/block.tk.hicstraw-3SWYTMFQ.js +0 -818
  367. package/dist/block.tk.junction-OXB22PDS.js +0 -2358
  368. package/dist/block.tk.junction.textmatrixui-PWBLRGCO.js +0 -194
  369. package/dist/block.tk.ld-NTRJL5GA.js +0 -94
  370. package/dist/block.tk.menu-JIHSGGIO.js +0 -1024
  371. package/dist/block.tk.pgv-4Q6CY6QN.js +0 -938
  372. package/dist/brainImaging-MBI4XTTU.js +0 -555
  373. package/dist/brainRegions-YVTAESRP.js +0 -217
  374. package/dist/bubbleHeatmap-ZKTA3AIG.js +0 -378
  375. package/dist/cellTypeBubbleHeatmap-GJZNXDG4.js +0 -278
  376. package/dist/chunk-2PDBU42F.js +0 -4375
  377. package/dist/chunk-2RMSV4BS.js +0 -6360
  378. package/dist/chunk-33BE7AYS.js +0 -299
  379. package/dist/chunk-3XBG5HIV.js +0 -424
  380. package/dist/chunk-3XBG5HIV.js.map +0 -7
  381. package/dist/chunk-5FRETII3.js +0 -281
  382. package/dist/chunk-5LYVIIYR.js +0 -170
  383. package/dist/chunk-6FG6JFZP.js +0 -339
  384. package/dist/chunk-6G45AUSV.js +0 -237
  385. package/dist/chunk-6LDKSKYQ.js +0 -70
  386. package/dist/chunk-7FFTAYT4.js +0 -272
  387. package/dist/chunk-7GDRMBNO.js +0 -339
  388. package/dist/chunk-A2UUXYH6.js +0 -1986
  389. package/dist/chunk-A2UUXYH6.js.map +0 -7
  390. package/dist/chunk-AFQKYV4D.js +0 -2853
  391. package/dist/chunk-ANACCKCQ.js +0 -276
  392. package/dist/chunk-AR3HXZIW.js +0 -562
  393. package/dist/chunk-AVCEHJG7.js +0 -446
  394. package/dist/chunk-AVCIZWH5.js +0 -692
  395. package/dist/chunk-B6UXFX73.js +0 -178
  396. package/dist/chunk-BCCFJYPE.js +0 -54
  397. package/dist/chunk-BG3SGGVB.js +0 -134
  398. package/dist/chunk-C3HEDQPT.js +0 -24921
  399. package/dist/chunk-C3HEDQPT.js.map +0 -7
  400. package/dist/chunk-CN6KJORZ.js +0 -397
  401. package/dist/chunk-CYWEYHJQ.js +0 -203
  402. package/dist/chunk-D5ETVOOE.js +0 -158
  403. package/dist/chunk-DANF4CC5.js +0 -102
  404. package/dist/chunk-DNCFJTPI.js +0 -1339
  405. package/dist/chunk-FNW6BKOA.js +0 -480
  406. package/dist/chunk-FR5USNAT.js +0 -54
  407. package/dist/chunk-GYE6FU7P.js +0 -626
  408. package/dist/chunk-IEIGHCZS.js +0 -1278
  409. package/dist/chunk-J5GQGWYX.js +0 -1731
  410. package/dist/chunk-JMDUO47F.js +0 -5071
  411. package/dist/chunk-JTQPPUDG.js +0 -379
  412. package/dist/chunk-JTQPPUDG.js.map +0 -7
  413. package/dist/chunk-K32DV4QI.js +0 -302
  414. package/dist/chunk-K77W4SSI.js +0 -98
  415. package/dist/chunk-KEHVNCFK.js +0 -102
  416. package/dist/chunk-MMKSXXU2.js +0 -55
  417. package/dist/chunk-NGMM2MNC.js +0 -518
  418. package/dist/chunk-OASGOTRM.js +0 -80
  419. package/dist/chunk-OBDIJ4QS.js +0 -2146
  420. package/dist/chunk-OEBGQKQR.js +0 -2676
  421. package/dist/chunk-OI5KBFBE.js +0 -468
  422. package/dist/chunk-OWEBE64A.js +0 -243
  423. package/dist/chunk-P7X4LDW4.js +0 -783
  424. package/dist/chunk-Q4HTEL2O.js +0 -56
  425. package/dist/chunk-QGH5BM2D.js +0 -141
  426. package/dist/chunk-QSOFGLWZ.js +0 -240
  427. package/dist/chunk-QXDGIQYA.js +0 -217
  428. package/dist/chunk-R2QE6ROO.js +0 -176
  429. package/dist/chunk-RMHUDMZ7.js +0 -103
  430. package/dist/chunk-SXB4IZQ7.js +0 -123
  431. package/dist/chunk-SYPSS3JQ.js +0 -387
  432. package/dist/chunk-SYPSS3JQ.js.map +0 -7
  433. package/dist/chunk-T6Q76PDN.js +0 -182
  434. package/dist/chunk-TYR355RM.js +0 -263
  435. package/dist/chunk-ULZPHJYD.js +0 -2784
  436. package/dist/chunk-V3SOBDIT.js +0 -255
  437. package/dist/chunk-VFUSBU43.js +0 -14
  438. package/dist/chunk-VOF6NWTS.js +0 -274
  439. package/dist/chunk-WGDJX7WZ.js +0 -2327
  440. package/dist/chunk-WIQVSCD5.js +0 -294
  441. package/dist/chunk-WXXRVJSP.js +0 -56
  442. package/dist/chunk-X4MV2M5F.js +0 -129
  443. package/dist/chunk-XVVVNCXS.js +0 -217
  444. package/dist/chunk-YHP7MYB7.js +0 -49
  445. package/dist/chunk-YHWQWVWX.js +0 -550
  446. package/dist/chunk-YKZOQTT4.js +0 -1233
  447. package/dist/chunk-Z5HU276I.js +0 -34
  448. package/dist/chunk-Z6MCBFDM.js +0 -194
  449. package/dist/cohort-GVAJTICQ.js +0 -70
  450. package/dist/condition-EGPNMM47.js +0 -327
  451. package/dist/controls-HBROSXHF.js +0 -34
  452. package/dist/controls.config-FWKV66TU.js +0 -34
  453. package/dist/correlation-CEHE66EC.js +0 -95
  454. package/dist/customdata.inputui-LFT3N5FD.js +0 -284
  455. package/dist/dataDownload-ZPAIAAE4.js +0 -329
  456. package/dist/databrowser.ui-W5JGFBE6.js +0 -425
  457. package/dist/dictionary-RBE2CIZI.js +0 -113
  458. package/dist/dnaMethylation-CX22TSRO.js +0 -33
  459. package/dist/dnaMethylation.integration.spec-KEE6ZZRT.js +0 -198
  460. package/dist/dofetch-6NAGX5EG.js +0 -48
  461. package/dist/e2pca-XDGPTEXL.js +0 -344
  462. package/dist/ep-IUIDMIGW.js +0 -1249
  463. package/dist/expclust.gdc.spec-BMN2PTJX.js +0 -302
  464. package/dist/facet-DTJKZOBA.js +0 -519
  465. package/dist/gb-MV7MUJWO.js +0 -81
  466. package/dist/geneExpClustering-NFH5FS3S.js +0 -244
  467. package/dist/geneExpression-XVOLNYVN.js +0 -310
  468. package/dist/geneExpression-ZP2VWHED.js +0 -33
  469. package/dist/geneExpression.unit.spec-2NSK4ARK.js +0 -128
  470. package/dist/geneORA-HQ7FLMEJ.js +0 -273
  471. package/dist/geneRanking-MIABUKTN.js +0 -548
  472. package/dist/geneVariant-H52UUK6Z.js +0 -289
  473. package/dist/geneVariant-HDFWLALZ.js +0 -36
  474. package/dist/geneVariant.integration.spec-O36JK4B7.js +0 -503
  475. package/dist/geneVariant.integration.spec-O36JK4B7.js.map +0 -7
  476. package/dist/genefusion.ui-HSDZQHJA.js +0 -303
  477. package/dist/geneset-WKV3X2EJ.js +0 -203
  478. package/dist/genomeBrowser.spec-UTAHAU76.js +0 -276
  479. package/dist/grin2-M2JDZVYU.js +0 -70
  480. package/dist/grin2-N2QM3XTG.js +0 -949
  481. package/dist/hierCluster-LZI6OTRS.js +0 -59
  482. package/dist/hierCluster-VVXPOTQU.js +0 -55
  483. package/dist/hierCluster.config-NCYH3Y7Z.js +0 -36
  484. package/dist/hierCluster.integration.spec-ZDOOCTV3.js +0 -483
  485. package/dist/hierCluster.interactivity-4HP3JCON.js +0 -49
  486. package/dist/hierCluster.renderers-3F5GMEXA.js +0 -19
  487. package/dist/imagePlot-OA4WTMLU.js +0 -156
  488. package/dist/importPlot-OSTC2GPO.js +0 -8
  489. package/dist/isoformExpression-LZ5RTUS5.js +0 -35
  490. package/dist/isoformExpression.unit.spec-L6YDBKYM.js +0 -237
  491. package/dist/junction-UR6COY3A.js +0 -36
  492. package/dist/junction.unit.spec-NVBJTGA4.js +0 -182
  493. package/dist/launch.adhoc-AZG6QJG7.js +0 -37
  494. package/dist/leftlabel.sample-LYZG25RT.js +0 -258
  495. package/dist/lollipop-FJXVP5QM.js +0 -166
  496. package/dist/maf-OXJIJD6D.js +0 -455
  497. package/dist/maftimeline-75N6ZXEM.js +0 -587
  498. package/dist/matrix-QFKGEW5A.js +0 -54
  499. package/dist/matrix-XT7LUV5K.js +0 -59
  500. package/dist/matrix.cells-NB7LKKXV.js +0 -26
  501. package/dist/matrix.config-X6HS4UGD.js +0 -37
  502. package/dist/matrix.data-VLFF34SS.js +0 -23
  503. package/dist/matrix.groups-F62TSKIG.js +0 -26
  504. package/dist/matrix.integration.spec-7QBYWHW6.js +0 -3160
  505. package/dist/matrix.interactivity-2FBXB52E.js +0 -37
  506. package/dist/matrix.layout-6TPVKLSX.js +0 -39
  507. package/dist/matrix.legend-L4ULBMGX.js +0 -20
  508. package/dist/matrix.renderers-DK6YRLO2.js +0 -34
  509. package/dist/matrix.serieses-DCRJLJ3H.js +0 -19
  510. package/dist/matrix.sort-XSGPH44J.js +0 -26
  511. package/dist/matrix.sort.unit.spec-JF75F4I4.js +0 -468
  512. package/dist/matrix.sorterUi.unit.spec-66JMV5BK.js +0 -338
  513. package/dist/matrix.unit.spec-36AR4I43.js +0 -150
  514. package/dist/mavb-ZH4RO77H.js +0 -727
  515. package/dist/mds.fimo-MVP2G5PS.js +0 -513
  516. package/dist/mds.samplescatterplot-GYJ3OI4N.js +0 -1545
  517. package/dist/mds.survivalplot-Q6MYQGTB.js +0 -477
  518. package/dist/multivalue-BGFMPH4X.js +0 -83
  519. package/dist/numericDictTermCluster-FNNVLIWB.js +0 -63
  520. package/dist/oncomatrix-LIIALWWN.js +0 -290
  521. package/dist/oncomatrix.spec-NEMLM2ZN.js +0 -443
  522. package/dist/plot.2dvaf-HJO3SKNK.js +0 -372
  523. package/dist/plot.app-WSLFOFSR.js +0 -36
  524. package/dist/plot.barplot-SPI5JA37.js +0 -97
  525. package/dist/plot.boxplot-4W3XEY5I.js +0 -146
  526. package/dist/plot.brainImaging-KEOUTYIB.js +0 -51
  527. package/dist/plot.disco-7IDMKNAQ.js +0 -99
  528. package/dist/plot.ssgq-IOKUGDC4.js +0 -134
  529. package/dist/plot.vaf2cov-SFSZ6M43.js +0 -253
  530. package/dist/polar2-PLPE5TX5.js +0 -232
  531. package/dist/profileForms-ZDHG67GM.js +0 -941
  532. package/dist/profilePlot-UUZA2YG6.js +0 -49
  533. package/dist/proteinView-GHS3XARL.js +0 -1357
  534. package/dist/proteomeCohortCompare-TQ3BGIPS.js +0 -912
  535. package/dist/pseudbulk.unit.spec-HFESRN7A.js +0 -86
  536. package/dist/pseudobulk-ODXYIUD5.js +0 -35
  537. package/dist/qualitative-WOSYAIGQ.js +0 -38
  538. package/dist/radar2-2KXBS3Y3.js +0 -327
  539. package/dist/radarFacility2-JCOKJQQF.js +0 -335
  540. package/dist/render-IJ6GE3NE.js +0 -33
  541. package/dist/report-WLLFUA7L.js +0 -217
  542. package/dist/sampleView-LPKSYUNF.js +0 -43
  543. package/dist/samplelst-MNI2MGMT.js +0 -106
  544. package/dist/samplematrix-KEKJP2B4.js +0 -2193
  545. package/dist/sc-ZYKFRJU4.js +0 -81
  546. package/dist/scatter-BAEZOFWA.js +0 -88
  547. package/dist/scatter-IGFBIZ3B.js +0 -925
  548. package/dist/selectGenomeWithTklst-HBHRXEDY.js +0 -129
  549. package/dist/singleCellCellType-PMFDV24B.js +0 -33
  550. package/dist/singleCellCellType.unit.spec-ZLYDUDIY.js +0 -154
  551. package/dist/singleCellGeneExpression-SUYO3HR3.js +0 -33
  552. package/dist/singleCellGeneExpression.unit.spec-3N3HRXFN.js +0 -148
  553. package/dist/singleCellNumericValue-BV7C6Y34.js +0 -33
  554. package/dist/singleCellNumericValue.unit.spec-7VJOMYQ6.js +0 -416
  555. package/dist/singleCellPlot-BG7UJOHA.js +0 -48
  556. package/dist/singlecell-BANNFGBS.js +0 -81
  557. package/dist/singlecell-ZUTL5ZWE.js +0 -1566
  558. package/dist/snp-BHG4NVK4.js +0 -33
  559. package/dist/snp.unit.spec-Q3AZHQRC.js +0 -171
  560. package/dist/snplocus-HTJL63M3.js +0 -203
  561. package/dist/spliceevent.a53ss.diagram-UKRIP7EP.js +0 -146
  562. package/dist/spliceevent.exonskip.diagram-CU777CXQ.js +0 -278
  563. package/dist/spliceevent.noeventdiagram-LGLXCF25.js +0 -455
  564. package/dist/ssGSEA-BIEEKAKX.js +0 -33
  565. package/dist/ssGSEA.unit.spec-YD4UDIRH.js +0 -83
  566. package/dist/stattable-LFR3RSD6.js +0 -117
  567. package/dist/studyCatalog-RINIZ277.js +0 -414
  568. package/dist/summarizeCnvGeneexp-ZQFNPR65.js +0 -158
  569. package/dist/summarizeGeneexpSurvival-GIS7XMMH.js +0 -105
  570. package/dist/summarizeMutationCnv-FWF7YIGR.js +0 -159
  571. package/dist/summarizeMutationDiagnosis-V5L2OKTK.js +0 -35
  572. package/dist/summarizeMutationSurvival-LAUUF6XN.js +0 -99
  573. package/dist/summary-OMU3ACNE.js +0 -44
  574. package/dist/summary.integration.spec-6JZAT73L.js +0 -409
  575. package/dist/summaryInput-QIKL3HDD.js +0 -242
  576. package/dist/sunburst-32IW2R57.js +0 -278
  577. package/dist/survival-BMOPVAN2.js +0 -53
  578. package/dist/survival-H5AWMQ36.js +0 -1248
  579. package/dist/survival.integration.spec-66UOWSZG.js +0 -613
  580. package/dist/svgraph-B75FS3BB.js +0 -1382
  581. package/dist/svmr-IUEUOHVO.js +0 -3837
  582. package/dist/table-YAAH7WR6.js +0 -197
  583. package/dist/termCollection-7F5ZG2DB.js +0 -252
  584. package/dist/termCollection-KNFUELYY.js +0 -33
  585. package/dist/termCollection.unit.spec-S6M6QC4C.js +0 -299
  586. package/dist/termCollectionFractionSelection-X22VMJWY.js +0 -42
  587. package/dist/termCollectionFractionSelection.unit.spec-ELU6SD7P.js +0 -188
  588. package/dist/tk-TT666UVE.js +0 -41
  589. package/dist/tk-UOPNJ323.js +0 -1121
  590. package/dist/tp.ui-HGAHRKO5.js +0 -1454
  591. package/dist/tvs.dt-H7YYR4EB.js +0 -34
  592. package/dist/tvs.dtcnv.categorical-IPJTKGMF.js +0 -35
  593. package/dist/tvs.dtcnv.continuous-XY5XZ4GH.js +0 -67
  594. package/dist/tvs.dtfusion-VFCBMXRM.js +0 -35
  595. package/dist/tvs.dtitd-RZVW6FTR.js +0 -35
  596. package/dist/tvs.dtsnvindel-IDPJWSGC.js +0 -35
  597. package/dist/tvs.dtsv-QERP756F.js +0 -35
  598. package/dist/tvs.numeric-22AHXO5K.js +0 -20
  599. package/dist/tvs.samplelst-6KNDHBIU.js +0 -98
  600. package/dist/tvs.termCollection-GWPJK3NE.js +0 -124
  601. package/dist/vocabulary-C5FIZMPQ.js +0 -36
  602. package/dist/wsi.direct-2RBCBXDA.js +0 -8343
  603. /package/dist/{2dmaf-VTMPVZGT.js.map → 2dmaf-43QBND66.js.map} +0 -0
  604. /package/dist/{AggMatrixInput-CH3RQ2QC.js.map → AggMatrixInput-X7NGFUHH.js.map} +0 -0
  605. /package/dist/{AggregateMatrix-DPCHUOMF.js.map → AggregateMatrix-M4HRI4PX.js.map} +0 -0
  606. /package/dist/{AppHeader-RA7T467G.js.map → AppHeader-QBRQN6PM.js.map} +0 -0
  607. /package/dist/{BoxPlot-7Q7SMT26.js.map → BoxPlot-V6SPSEQ2.js.map} +0 -0
  608. /package/dist/{CorrelationVolcano-YV4UHOAX.js.map → CorrelationVolcano-UFPCYC77.js.map} +0 -0
  609. /package/dist/{Cuminc-ZN53C3MD.js.map → Cuminc-KXGXGLKZ.js.map} +0 -0
  610. /package/dist/{DE-BEWW5AIG.js.map → DE-K2YXHOOW.js.map} +0 -0
  611. /package/dist/{DM-2LBNE4WE.js.map → DM-C7VN3RWB.js.map} +0 -0
  612. /package/dist/{DifferentialAnalysis-WE4LBHEF.js.map → DifferentialAnalysis-A2BU4WB3.js.map} +0 -0
  613. /package/dist/{Disco-PTZQF7IM.js.map → Disco-HECQVKXG.js.map} +0 -0
  614. /package/dist/{Disco.UI-NBR67N5M.js.map → Disco.UI-XF2GEKRW.js.map} +0 -0
  615. /package/dist/{DmrPlot-QROLI66S.js.map → DmrPlot-TVXVXOHL.js.map} +0 -0
  616. /package/dist/{GB-FEBSFX5U.js.map → GB-66ZGJ5ST.js.map} +0 -0
  617. /package/dist/{GSEA-KOXOVC5V.js.map → GSEA-Z4YPI4HY.js.map} +0 -0
  618. /package/dist/{GeneExpInput-DYBK54HC.js.map → GeneExpInput-VBIZZV27.js.map} +0 -0
  619. /package/dist/{Geomap-QRD2WZVL.js.map → Geomap-UIIOLRFA.js.map} +0 -0
  620. /package/dist/{HicApp-VKET4QHD.js.map → HicApp-73ESVNBA.js.map} +0 -0
  621. /package/dist/{IDCViewer-RLLTXGD7.js.map → IDCViewer-RBYN5A4P.js.map} +0 -0
  622. /package/dist/{NumBinaryEditor-GYHOYPQL.js.map → NumBinaryEditor-DJLSNSLE.js.map} +0 -0
  623. /package/dist/{NumBinaryEditor.unit.spec-E2HKBWOO.js.map → NumBinaryEditor.unit.spec-LCJHL3XM.js.map} +0 -0
  624. /package/dist/{NumContEditor-3V76ZSEY.js.map → NumContEditor-SVLDJ2ML.js.map} +0 -0
  625. /package/dist/{NumContEditor.unit.spec-RTT5Q5E5.js.map → NumContEditor.unit.spec-JDMSK4HY.js.map} +0 -0
  626. /package/dist/{NumCustomBinEditor-O5DMPY7H.js.map → NumCustomBinEditor-BI63AH3R.js.map} +0 -0
  627. /package/dist/{NumCustomBinEditor.unit.spec-5LZBP2JL.js.map → NumCustomBinEditor.unit.spec-5433G7Y2.js.map} +0 -0
  628. /package/dist/{NumDiscreteEditor-DFOJ7AIH.js.map → NumDiscreteEditor-LEZTGXAV.js.map} +0 -0
  629. /package/dist/{NumDiscreteEditor.unit.spec-PPJGEBFX.js.map → NumDiscreteEditor.unit.spec-5OEORHJ4.js.map} +0 -0
  630. /package/dist/{NumRegularBinEditor-O6RDO32C.js.map → NumRegularBinEditor-EXWHIWPM.js.map} +0 -0
  631. /package/dist/{NumRegularBinEditor.unit.spec-GOB3BF25.js.map → NumRegularBinEditor.unit.spec-QY25Z2TT.js.map} +0 -0
  632. /package/dist/{NumSplineEditor-PUXJF2RW.js.map → NumSplineEditor-XPPMYYAD.js.map} +0 -0
  633. /package/dist/{NumSplineEditor.unit.spec-4VOAAMOU.js.map → NumSplineEditor.unit.spec-GOGBKWMN.js.map} +0 -0
  634. /package/dist/{NumericDensity-E6MH2THZ.js.map → NumericDensity-RKY2IQ72.js.map} +0 -0
  635. /package/dist/{NumericDensity.unit.spec-IRPFBQUS.js.map → NumericDensity.unit.spec-5ZM6ICXM.js.map} +0 -0
  636. /package/dist/{NumericHandler-42RR54X3.js.map → NumericHandler-FXF3M5M3.js.map} +0 -0
  637. /package/dist/{NumericHandler.unit.spec-YYOO7XVT.js.map → NumericHandler.unit.spec-M2OQTBJX.js.map} +0 -0
  638. /package/dist/{ProteomeInput-4N2G6IFX.js.map → ProteomeInput-TMZ3THRL.js.map} +0 -0
  639. /package/dist/{Regression-LIWUWAGQ.js.map → Regression-GQGAATHG.js.map} +0 -0
  640. /package/dist/{RunChart2-VAX5JGZY.js.map → RunChart2-7GNDWRKC.js.map} +0 -0
  641. /package/dist/{SC-UHBZ3HRO.js.map → SC-R2I2EMHA.js.map} +0 -0
  642. /package/dist/{Violin-V23VZR6B.js.map → Violin-GKKEB55L.js.map} +0 -0
  643. /package/dist/{Volcano-64S4AW66.js.map → Volcano-HRG5EFWH.js.map} +0 -0
  644. /package/dist/{Wsi-FOJCKDCP.js.map → Wsi-OHRCGYYD.js.map} +0 -0
  645. /package/dist/{adSandbox-CLMUYNC3.js.map → adSandbox-H56B25WR.js.map} +0 -0
  646. /package/dist/{animatedBubbleChart-GMLNYTQC.js.map → animatedBubbleChart-7SXFHU4J.js.map} +0 -0
  647. /package/dist/{app-2SFDRDN2.js.map → app-22JCSULA.js.map} +0 -0
  648. /package/dist/{app-QOZ36UR4.js.map → app-RGZJB6LN.js.map} +0 -0
  649. /package/dist/{bam-LLAK7FVG.js.map → bam-HA65TRGX.js.map} +0 -0
  650. /package/dist/{barchart-SEC6VKQ2.js.map → barchart-6XO75OMA.js.map} +0 -0
  651. /package/dist/{barchart2-D4FXZCTU.js.map → barchart2-6E5BIRHD.js.map} +0 -0
  652. /package/dist/{block-XGK6TEGH.js.map → block-43KNTXZ5.js.map} +0 -0
  653. /package/dist/{block.init-UMRCAKCF.js.map → block.init-TPU5QIPA.js.map} +0 -0
  654. /package/dist/{block.mds.expressionrank-LFPJ52SX.js.map → block.mds.expressionrank-QZDRFXCH.js.map} +0 -0
  655. /package/dist/{block.mds.geneboxplot-2QIEN6AH.js.map → block.mds.geneboxplot-64QVBK5Q.js.map} +0 -0
  656. /package/dist/{block.mds.junction-Z4HUFSG2.js.map → block.mds.junction-I4J6VXNT.js.map} +0 -0
  657. /package/dist/{block.mds.svcnv-3GXGY6ET.js.map → block.mds.svcnv-GDQMSQFF.js.map} +0 -0
  658. /package/dist/{block.svg-7RCJLMAP.js.map → block.svg-2MZFT5QP.js.map} +0 -0
  659. /package/dist/{block.tk.aicheck-5N6EGZ6F.js.map → block.tk.aicheck-2MKHF6LX.js.map} +0 -0
  660. /package/dist/{block.tk.ase-V3AJRYT6.js.map → block.tk.ase-CLYGKFTS.js.map} +0 -0
  661. /package/dist/{block.tk.bam-W6QOVVEU.js.map → block.tk.bam-XTR4QA5Z.js.map} +0 -0
  662. /package/dist/{block.tk.bedgraphdot-FKTPJZTH.js.map → block.tk.bedgraphdot-A2P2CXRU.js.map} +0 -0
  663. /package/dist/{block.tk.bigwig.ui-Y3M2TDM2.js.map → block.tk.bigwig.ui-YZH6JXEO.js.map} +0 -0
  664. /package/dist/{block.tk.hicstraw-3SWYTMFQ.js.map → block.tk.hicstraw-QBK5VWGU.js.map} +0 -0
  665. /package/dist/{block.tk.junction-OXB22PDS.js.map → block.tk.junction-5DEVBA7G.js.map} +0 -0
  666. /package/dist/{block.tk.junction.textmatrixui-PWBLRGCO.js.map → block.tk.junction.textmatrixui-7TTQMO6W.js.map} +0 -0
  667. /package/dist/{block.tk.ld-NTRJL5GA.js.map → block.tk.ld-PRIVUPKL.js.map} +0 -0
  668. /package/dist/{block.tk.menu-JIHSGGIO.js.map → block.tk.menu-JGBRFSS3.js.map} +0 -0
  669. /package/dist/{block.tk.pgv-4Q6CY6QN.js.map → block.tk.pgv-KQJCJMVD.js.map} +0 -0
  670. /package/dist/{brainImaging-MBI4XTTU.js.map → brainImaging-4SLVJ2HV.js.map} +0 -0
  671. /package/dist/{brainRegions-YVTAESRP.js.map → brainRegions-BDIVM2SG.js.map} +0 -0
  672. /package/dist/{bubbleHeatmap-ZKTA3AIG.js.map → bubbleHeatmap-ORKFJNEQ.js.map} +0 -0
  673. /package/dist/{cellTypeBubbleHeatmap-GJZNXDG4.js.map → cellTypeBubbleHeatmap-VOHLI4P7.js.map} +0 -0
  674. /package/dist/{chunk-Z6MCBFDM.js.map → chunk-26N3B2JO.js.map} +0 -0
  675. /package/dist/{chunk-QSOFGLWZ.js.map → chunk-2HNJF5ZI.js.map} +0 -0
  676. /package/dist/{chunk-5FRETII3.js.map → chunk-2LNGHIOC.js.map} +0 -0
  677. /package/dist/{chunk-VOF6NWTS.js.map → chunk-3SCQGODD.js.map} +0 -0
  678. /package/dist/{chunk-NGMM2MNC.js.map → chunk-47STLK7K.js.map} +0 -0
  679. /package/dist/{chunk-ANACCKCQ.js.map → chunk-4XYQG3XU.js.map} +0 -0
  680. /package/dist/{chunk-Z5HU276I.js.map → chunk-53XNEXR6.js.map} +0 -0
  681. /package/dist/{chunk-SXB4IZQ7.js.map → chunk-5UB5H7A3.js.map} +0 -0
  682. /package/dist/{chunk-QGH5BM2D.js.map → chunk-6FYQYTV6.js.map} +0 -0
  683. /package/dist/{chunk-T6Q76PDN.js.map → chunk-6RP6CR4Q.js.map} +0 -0
  684. /package/dist/{chunk-RMHUDMZ7.js.map → chunk-A5D37SIL.js.map} +0 -0
  685. /package/dist/{chunk-DANF4CC5.js.map → chunk-ADRFQ5AL.js.map} +0 -0
  686. /package/dist/{chunk-6LDKSKYQ.js.map → chunk-AUZ63NKJ.js.map} +0 -0
  687. /package/dist/{chunk-XVVVNCXS.js.map → chunk-B563DUNQ.js.map} +0 -0
  688. /package/dist/{chunk-6FG6JFZP.js.map → chunk-BK6UDL7F.js.map} +0 -0
  689. /package/dist/{chunk-7GDRMBNO.js.map → chunk-CT4IG5IR.js.map} +0 -0
  690. /package/dist/{chunk-J5GQGWYX.js.map → chunk-D6UBH77N.js.map} +0 -0
  691. /package/dist/{chunk-5LYVIIYR.js.map → chunk-DS4GLMJL.js.map} +0 -0
  692. /package/dist/{chunk-AFQKYV4D.js.map → chunk-DSBRHWZ7.js.map} +0 -0
  693. /package/dist/{chunk-7FFTAYT4.js.map → chunk-DX35MKPR.js.map} +0 -0
  694. /package/dist/{chunk-BCCFJYPE.js.map → chunk-EDZJ3VNZ.js.map} +0 -0
  695. /package/dist/{chunk-DNCFJTPI.js.map → chunk-F47A4CVK.js.map} +0 -0
  696. /package/dist/{chunk-AVCEHJG7.js.map → chunk-G4H34RNK.js.map} +0 -0
  697. /package/dist/{chunk-TYR355RM.js.map → chunk-G7RUMSHL.js.map} +0 -0
  698. /package/dist/{chunk-FNW6BKOA.js.map → chunk-GXFS25SK.js.map} +0 -0
  699. /package/dist/{chunk-AVCIZWH5.js.map → chunk-IBT6WRY6.js.map} +0 -0
  700. /package/dist/{chunk-K32DV4QI.js.map → chunk-IJ7AIDEO.js.map} +0 -0
  701. /package/dist/{chunk-YKZOQTT4.js.map → chunk-JBFVJHZN.js.map} +0 -0
  702. /package/dist/{chunk-WXXRVJSP.js.map → chunk-JDVBUIEU.js.map} +0 -0
  703. /package/dist/{chunk-2PDBU42F.js.map → chunk-K7RW5TPU.js.map} +0 -0
  704. /package/dist/{chunk-YHP7MYB7.js.map → chunk-LBCIXRI2.js.map} +0 -0
  705. /package/dist/{chunk-K77W4SSI.js.map → chunk-MNXL2UV5.js.map} +0 -0
  706. /package/dist/{chunk-CYWEYHJQ.js.map → chunk-NI5CVN43.js.map} +0 -0
  707. /package/dist/{chunk-CN6KJORZ.js.map → chunk-NOBXDQDU.js.map} +0 -0
  708. /package/dist/{chunk-2RMSV4BS.js.map → chunk-NQNVLZOA.js.map} +0 -0
  709. /package/dist/{chunk-D5ETVOOE.js.map → chunk-NULFGPE3.js.map} +0 -0
  710. /package/dist/{chunk-33BE7AYS.js.map → chunk-OUIXGM3K.js.map} +0 -0
  711. /package/dist/{chunk-VFUSBU43.js.map → chunk-P4LGA36F.js.map} +0 -0
  712. /package/dist/{chunk-MMKSXXU2.js.map → chunk-PU5FQWAY.js.map} +0 -0
  713. /package/dist/{chunk-Q4HTEL2O.js.map → chunk-PZ2OSHBF.js.map} +0 -0
  714. /package/dist/{chunk-JMDUO47F.js.map → chunk-QBNDPW7O.js.map} +0 -0
  715. /package/dist/{chunk-OASGOTRM.js.map → chunk-R5PKBL7V.js.map} +0 -0
  716. /package/dist/{chunk-GYE6FU7P.js.map → chunk-RI65SIN3.js.map} +0 -0
  717. /package/dist/{chunk-OEBGQKQR.js.map → chunk-RPGLLO4T.js.map} +0 -0
  718. /package/dist/{chunk-BG3SGGVB.js.map → chunk-RXNZK7MF.js.map} +0 -0
  719. /package/dist/{chunk-YHWQWVWX.js.map → chunk-S2ICJ3RZ.js.map} +0 -0
  720. /package/dist/{chunk-X4MV2M5F.js.map → chunk-SFHG6H2D.js.map} +0 -0
  721. /package/dist/{chunk-P7X4LDW4.js.map → chunk-TQ2DVEQO.js.map} +0 -0
  722. /package/dist/{chunk-R2QE6ROO.js.map → chunk-U6BJ4ZNU.js.map} +0 -0
  723. /package/dist/{chunk-B6UXFX73.js.map → chunk-UXD6G6G4.js.map} +0 -0
  724. /package/dist/{chunk-OBDIJ4QS.js.map → chunk-VA57CUC7.js.map} +0 -0
  725. /package/dist/{chunk-WIQVSCD5.js.map → chunk-VH5W6ODW.js.map} +0 -0
  726. /package/dist/{chunk-V3SOBDIT.js.map → chunk-VROF55EH.js.map} +0 -0
  727. /package/dist/{chunk-QXDGIQYA.js.map → chunk-VWA7BYSV.js.map} +0 -0
  728. /package/dist/{chunk-KEHVNCFK.js.map → chunk-X37BRSGS.js.map} +0 -0
  729. /package/dist/{chunk-AR3HXZIW.js.map → chunk-XQYDXA47.js.map} +0 -0
  730. /package/dist/{chunk-6G45AUSV.js.map → chunk-XXPUZVS4.js.map} +0 -0
  731. /package/dist/{chunk-OI5KBFBE.js.map → chunk-Y7V5AIUH.js.map} +0 -0
  732. /package/dist/{chunk-OWEBE64A.js.map → chunk-YBNIOGUE.js.map} +0 -0
  733. /package/dist/{chunk-WGDJX7WZ.js.map → chunk-YEYMNF7V.js.map} +0 -0
  734. /package/dist/{chunk-IEIGHCZS.js.map → chunk-YJ74QATP.js.map} +0 -0
  735. /package/dist/{chunk-ULZPHJYD.js.map → chunk-ZG2HCGAO.js.map} +0 -0
  736. /package/dist/{chunk-FR5USNAT.js.map → chunk-ZZN7ZD7J.js.map} +0 -0
  737. /package/dist/{cohort-GVAJTICQ.js.map → cohort-6OCRQQ2S.js.map} +0 -0
  738. /package/dist/{condition-EGPNMM47.js.map → condition-SZVXH3VU.js.map} +0 -0
  739. /package/dist/{controls-HBROSXHF.js.map → controls-MO6ZND76.js.map} +0 -0
  740. /package/dist/{controls.config-FWKV66TU.js.map → controls.config-P4MSTGL4.js.map} +0 -0
  741. /package/dist/{correlation-CEHE66EC.js.map → correlation-NMI3CM3T.js.map} +0 -0
  742. /package/dist/{customdata.inputui-LFT3N5FD.js.map → customdata.inputui-VCHSCA65.js.map} +0 -0
  743. /package/dist/{dataDownload-ZPAIAAE4.js.map → dataDownload-VQHOTQ5D.js.map} +0 -0
  744. /package/dist/{databrowser.ui-W5JGFBE6.js.map → databrowser.ui-ZFOCAG32.js.map} +0 -0
  745. /package/dist/{dictionary-RBE2CIZI.js.map → dictionary-S5YCFUWH.js.map} +0 -0
  746. /package/dist/{dnaMethylation-CX22TSRO.js.map → dnaMethylation-MQZLZRGT.js.map} +0 -0
  747. /package/dist/{dnaMethylation.integration.spec-KEE6ZZRT.js.map → dnaMethylation.integration.spec-H546EBUO.js.map} +0 -0
  748. /package/dist/{dofetch-6NAGX5EG.js.map → dofetch-QZIYSC7H.js.map} +0 -0
  749. /package/dist/{e2pca-XDGPTEXL.js.map → e2pca-XOXOS3PN.js.map} +0 -0
  750. /package/dist/{ep-IUIDMIGW.js.map → ep-U6KRL7FR.js.map} +0 -0
  751. /package/dist/{expclust.gdc.spec-BMN2PTJX.js.map → expclust.gdc.spec-HCK65C63.js.map} +0 -0
  752. /package/dist/{facet-DTJKZOBA.js.map → facet-DCC25KJO.js.map} +0 -0
  753. /package/dist/{gb-MV7MUJWO.js.map → gb-TIFWFD4Y.js.map} +0 -0
  754. /package/dist/{geneExpClustering-NFH5FS3S.js.map → geneExpClustering-6DQEOTOY.js.map} +0 -0
  755. /package/dist/{geneExpression-XVOLNYVN.js.map → geneExpression-EASRAN6B.js.map} +0 -0
  756. /package/dist/{geneExpression-ZP2VWHED.js.map → geneExpression-G4YMDCBH.js.map} +0 -0
  757. /package/dist/{geneExpression.unit.spec-2NSK4ARK.js.map → geneExpression.unit.spec-XVEJYMPX.js.map} +0 -0
  758. /package/dist/{geneORA-HQ7FLMEJ.js.map → geneORA-6UBS5GSC.js.map} +0 -0
  759. /package/dist/{geneRanking-MIABUKTN.js.map → geneRanking-UXXYWHNB.js.map} +0 -0
  760. /package/dist/{geneVariant-H52UUK6Z.js.map → geneVariant-SZRJOXVC.js.map} +0 -0
  761. /package/dist/{geneVariant-HDFWLALZ.js.map → geneVariant-TKFKARZK.js.map} +0 -0
  762. /package/dist/{genefusion.ui-HSDZQHJA.js.map → genefusion.ui-TJLYXSVL.js.map} +0 -0
  763. /package/dist/{geneset-WKV3X2EJ.js.map → geneset-YTBDLEIH.js.map} +0 -0
  764. /package/dist/{genomeBrowser.spec-UTAHAU76.js.map → genomeBrowser.spec-ZO4LFIXE.js.map} +0 -0
  765. /package/dist/{grin2-N2QM3XTG.js.map → grin2-FC4VYU54.js.map} +0 -0
  766. /package/dist/{grin2-M2JDZVYU.js.map → grin2-LIFKBMVK.js.map} +0 -0
  767. /package/dist/{hierCluster-LZI6OTRS.js.map → hierCluster-56EGAPOR.js.map} +0 -0
  768. /package/dist/{hierCluster-VVXPOTQU.js.map → hierCluster-DR5NWCXA.js.map} +0 -0
  769. /package/dist/{hierCluster.config-NCYH3Y7Z.js.map → hierCluster.config-NACE3FH2.js.map} +0 -0
  770. /package/dist/{hierCluster.integration.spec-ZDOOCTV3.js.map → hierCluster.integration.spec-PEEXPAS6.js.map} +0 -0
  771. /package/dist/{hierCluster.interactivity-4HP3JCON.js.map → hierCluster.interactivity-OCBGLUJM.js.map} +0 -0
  772. /package/dist/{hierCluster.renderers-3F5GMEXA.js.map → hierCluster.renderers-JNQUSAP4.js.map} +0 -0
  773. /package/dist/{imagePlot-OA4WTMLU.js.map → imagePlot-GR4JNUGG.js.map} +0 -0
  774. /package/dist/{importPlot-OSTC2GPO.js.map → importPlot-4R4BSPVD.js.map} +0 -0
  775. /package/dist/{isoformExpression-LZ5RTUS5.js.map → isoformExpression-ST5ZW2NE.js.map} +0 -0
  776. /package/dist/{isoformExpression.unit.spec-L6YDBKYM.js.map → isoformExpression.unit.spec-PPFC5Z7N.js.map} +0 -0
  777. /package/dist/{junction-UR6COY3A.js.map → junction-7AKZHOHV.js.map} +0 -0
  778. /package/dist/{junction.unit.spec-NVBJTGA4.js.map → junction.unit.spec-SZUJXRQ2.js.map} +0 -0
  779. /package/dist/{launch.adhoc-AZG6QJG7.js.map → launch.adhoc-RWJQUOJ6.js.map} +0 -0
  780. /package/dist/{leftlabel.sample-LYZG25RT.js.map → leftlabel.sample-WRHLVQAQ.js.map} +0 -0
  781. /package/dist/{lollipop-FJXVP5QM.js.map → lollipop-ZZWXTM23.js.map} +0 -0
  782. /package/dist/{maf-OXJIJD6D.js.map → maf-N4XPZTQU.js.map} +0 -0
  783. /package/dist/{maftimeline-75N6ZXEM.js.map → maftimeline-2FBS6RWS.js.map} +0 -0
  784. /package/dist/{matrix-QFKGEW5A.js.map → matrix-5KEQPB5H.js.map} +0 -0
  785. /package/dist/{matrix-XT7LUV5K.js.map → matrix-RJUNXB5N.js.map} +0 -0
  786. /package/dist/{matrix.cells-NB7LKKXV.js.map → matrix.cells-WXTPOJYB.js.map} +0 -0
  787. /package/dist/{matrix.config-X6HS4UGD.js.map → matrix.config-ZZFLLD6Z.js.map} +0 -0
  788. /package/dist/{matrix.data-VLFF34SS.js.map → matrix.data-3PQ73GVJ.js.map} +0 -0
  789. /package/dist/{matrix.groups-F62TSKIG.js.map → matrix.groups-U6CKS6WW.js.map} +0 -0
  790. /package/dist/{matrix.integration.spec-7QBYWHW6.js.map → matrix.integration.spec-T53PMVHC.js.map} +0 -0
  791. /package/dist/{matrix.interactivity-2FBXB52E.js.map → matrix.interactivity-3LDZV3F7.js.map} +0 -0
  792. /package/dist/{matrix.layout-6TPVKLSX.js.map → matrix.layout-MINLYQCA.js.map} +0 -0
  793. /package/dist/{matrix.legend-L4ULBMGX.js.map → matrix.legend-6GSDFZHS.js.map} +0 -0
  794. /package/dist/{matrix.renderers-DK6YRLO2.js.map → matrix.renderers-5BKOXDE3.js.map} +0 -0
  795. /package/dist/{matrix.serieses-DCRJLJ3H.js.map → matrix.serieses-6FCFIFAQ.js.map} +0 -0
  796. /package/dist/{matrix.sort-XSGPH44J.js.map → matrix.sort-EHVVYDZ3.js.map} +0 -0
  797. /package/dist/{matrix.sort.unit.spec-JF75F4I4.js.map → matrix.sort.unit.spec-BCWE4AFX.js.map} +0 -0
  798. /package/dist/{matrix.sorterUi.unit.spec-66JMV5BK.js.map → matrix.sorterUi.unit.spec-XJR5KXRL.js.map} +0 -0
  799. /package/dist/{matrix.unit.spec-36AR4I43.js.map → matrix.unit.spec-TUCKPE26.js.map} +0 -0
  800. /package/dist/{mavb-ZH4RO77H.js.map → mavb-GWSNRBLM.js.map} +0 -0
  801. /package/dist/{mds.fimo-MVP2G5PS.js.map → mds.fimo-OMAQRSMW.js.map} +0 -0
  802. /package/dist/{mds.samplescatterplot-GYJ3OI4N.js.map → mds.samplescatterplot-4UW3CC45.js.map} +0 -0
  803. /package/dist/{mds.survivalplot-Q6MYQGTB.js.map → mds.survivalplot-2CJYJBD2.js.map} +0 -0
  804. /package/dist/{multivalue-BGFMPH4X.js.map → multivalue-G44MHEYI.js.map} +0 -0
  805. /package/dist/{numericDictTermCluster-FNNVLIWB.js.map → numericDictTermCluster-5BDRGVQG.js.map} +0 -0
  806. /package/dist/{oncomatrix-LIIALWWN.js.map → oncomatrix-ZTVO23ZH.js.map} +0 -0
  807. /package/dist/{oncomatrix.spec-NEMLM2ZN.js.map → oncomatrix.spec-2QVK2A3Q.js.map} +0 -0
  808. /package/dist/{plot.2dvaf-HJO3SKNK.js.map → plot.2dvaf-CL5YUXKH.js.map} +0 -0
  809. /package/dist/{plot.app-WSLFOFSR.js.map → plot.app-4ANKPSNP.js.map} +0 -0
  810. /package/dist/{plot.barplot-SPI5JA37.js.map → plot.barplot-BMGDNZRA.js.map} +0 -0
  811. /package/dist/{plot.boxplot-4W3XEY5I.js.map → plot.boxplot-GMLQCDP6.js.map} +0 -0
  812. /package/dist/{plot.brainImaging-KEOUTYIB.js.map → plot.brainImaging-RZXX3NUZ.js.map} +0 -0
  813. /package/dist/{plot.disco-7IDMKNAQ.js.map → plot.disco-3MD4J4C7.js.map} +0 -0
  814. /package/dist/{plot.ssgq-IOKUGDC4.js.map → plot.ssgq-ZC4UYKOT.js.map} +0 -0
  815. /package/dist/{plot.vaf2cov-SFSZ6M43.js.map → plot.vaf2cov-4DHFMYQV.js.map} +0 -0
  816. /package/dist/{polar2-PLPE5TX5.js.map → polar2-TMB5EITR.js.map} +0 -0
  817. /package/dist/{profileForms-ZDHG67GM.js.map → profileForms-GD7BIOOD.js.map} +0 -0
  818. /package/dist/{profilePlot-UUZA2YG6.js.map → profilePlot-CZLK5E74.js.map} +0 -0
  819. /package/dist/{proteinView-GHS3XARL.js.map → proteinView-FEEEXLKT.js.map} +0 -0
  820. /package/dist/{proteomeCohortCompare-TQ3BGIPS.js.map → proteomeCohortCompare-NVLJ2FXX.js.map} +0 -0
  821. /package/dist/{pseudbulk.unit.spec-HFESRN7A.js.map → pseudbulk.unit.spec-GHQZPNAH.js.map} +0 -0
  822. /package/dist/{pseudobulk-ODXYIUD5.js.map → pseudobulk-G5UQIRKL.js.map} +0 -0
  823. /package/dist/{qualitative-WOSYAIGQ.js.map → qualitative-EAUUCKU5.js.map} +0 -0
  824. /package/dist/{radar2-2KXBS3Y3.js.map → radar2-CJQ2L6KE.js.map} +0 -0
  825. /package/dist/{radarFacility2-JCOKJQQF.js.map → radarFacility2-BLVRZE4V.js.map} +0 -0
  826. /package/dist/{render-IJ6GE3NE.js.map → render-KKAQPH6Y.js.map} +0 -0
  827. /package/dist/{report-WLLFUA7L.js.map → report-OSOJHTSD.js.map} +0 -0
  828. /package/dist/{sampleView-LPKSYUNF.js.map → sampleView-WB74RLD7.js.map} +0 -0
  829. /package/dist/{samplelst-MNI2MGMT.js.map → samplelst-ZKXV5WOD.js.map} +0 -0
  830. /package/dist/{samplematrix-KEKJP2B4.js.map → samplematrix-WJFYMWLT.js.map} +0 -0
  831. /package/dist/{sc-ZYKFRJU4.js.map → sc-RBRBUCLR.js.map} +0 -0
  832. /package/dist/{scatter-BAEZOFWA.js.map → scatter-5K3QTIDK.js.map} +0 -0
  833. /package/dist/{scatter-IGFBIZ3B.js.map → scatter-SM7GQENM.js.map} +0 -0
  834. /package/dist/{selectGenomeWithTklst-HBHRXEDY.js.map → selectGenomeWithTklst-ZZUJ7AQ7.js.map} +0 -0
  835. /package/dist/{singleCellCellType-PMFDV24B.js.map → singleCellCellType-LCF2JNZ2.js.map} +0 -0
  836. /package/dist/{singleCellCellType.unit.spec-ZLYDUDIY.js.map → singleCellCellType.unit.spec-T6DYH4BC.js.map} +0 -0
  837. /package/dist/{singleCellGeneExpression-SUYO3HR3.js.map → singleCellGeneExpression-2XUYTH4C.js.map} +0 -0
  838. /package/dist/{singleCellGeneExpression.unit.spec-3N3HRXFN.js.map → singleCellGeneExpression.unit.spec-SMRCLOF4.js.map} +0 -0
  839. /package/dist/{singleCellNumericValue-BV7C6Y34.js.map → singleCellNumericValue-57I33FZT.js.map} +0 -0
  840. /package/dist/{singleCellNumericValue.unit.spec-7VJOMYQ6.js.map → singleCellNumericValue.unit.spec-4YNB4OEV.js.map} +0 -0
  841. /package/dist/{singleCellPlot-BG7UJOHA.js.map → singleCellPlot-L6TKQHGD.js.map} +0 -0
  842. /package/dist/{singlecell-BANNFGBS.js.map → singlecell-LZKR3UDV.js.map} +0 -0
  843. /package/dist/{singlecell-ZUTL5ZWE.js.map → singlecell-UKN2VCXQ.js.map} +0 -0
  844. /package/dist/{snp-BHG4NVK4.js.map → snp-3LJITU5B.js.map} +0 -0
  845. /package/dist/{snp.unit.spec-Q3AZHQRC.js.map → snp.unit.spec-ZQNU6XRM.js.map} +0 -0
  846. /package/dist/{snplocus-HTJL63M3.js.map → snplocus-OME7UQBW.js.map} +0 -0
  847. /package/dist/{spliceevent.a53ss.diagram-UKRIP7EP.js.map → spliceevent.a53ss.diagram-C32IEFMU.js.map} +0 -0
  848. /package/dist/{spliceevent.exonskip.diagram-CU777CXQ.js.map → spliceevent.exonskip.diagram-CZ7MVRLK.js.map} +0 -0
  849. /package/dist/{spliceevent.noeventdiagram-LGLXCF25.js.map → spliceevent.noeventdiagram-ZO6R3776.js.map} +0 -0
  850. /package/dist/{ssGSEA-BIEEKAKX.js.map → ssGSEA-BGPQ2PFY.js.map} +0 -0
  851. /package/dist/{ssGSEA.unit.spec-YD4UDIRH.js.map → ssGSEA.unit.spec-U7TBUSSK.js.map} +0 -0
  852. /package/dist/{stattable-LFR3RSD6.js.map → stattable-FISGQCED.js.map} +0 -0
  853. /package/dist/{studyCatalog-RINIZ277.js.map → studyCatalog-UHFUT2CJ.js.map} +0 -0
  854. /package/dist/{summarizeCnvGeneexp-ZQFNPR65.js.map → summarizeCnvGeneexp-OVZO6KIB.js.map} +0 -0
  855. /package/dist/{summarizeGeneexpSurvival-GIS7XMMH.js.map → summarizeGeneexpSurvival-KVQ4JGWK.js.map} +0 -0
  856. /package/dist/{summarizeMutationCnv-FWF7YIGR.js.map → summarizeMutationCnv-RAKGHNLE.js.map} +0 -0
  857. /package/dist/{summarizeMutationDiagnosis-V5L2OKTK.js.map → summarizeMutationDiagnosis-LGCINAGG.js.map} +0 -0
  858. /package/dist/{summarizeMutationSurvival-LAUUF6XN.js.map → summarizeMutationSurvival-J7H7L4FX.js.map} +0 -0
  859. /package/dist/{summary-OMU3ACNE.js.map → summary-2632JZXH.js.map} +0 -0
  860. /package/dist/{summary.integration.spec-6JZAT73L.js.map → summary.integration.spec-5WBS2ZRP.js.map} +0 -0
  861. /package/dist/{summaryInput-QIKL3HDD.js.map → summaryInput-BH6C3ATV.js.map} +0 -0
  862. /package/dist/{sunburst-32IW2R57.js.map → sunburst-AMRR2IHM.js.map} +0 -0
  863. /package/dist/{survival-H5AWMQ36.js.map → survival-2RNJQVFS.js.map} +0 -0
  864. /package/dist/{survival-BMOPVAN2.js.map → survival-WYCH4QOQ.js.map} +0 -0
  865. /package/dist/{survival.integration.spec-66UOWSZG.js.map → survival.integration.spec-7IFPY4I4.js.map} +0 -0
  866. /package/dist/{svgraph-B75FS3BB.js.map → svgraph-YQWS52ZJ.js.map} +0 -0
  867. /package/dist/{svmr-IUEUOHVO.js.map → svmr-NRN6LGKK.js.map} +0 -0
  868. /package/dist/{table-YAAH7WR6.js.map → table-3QOMV2NN.js.map} +0 -0
  869. /package/dist/{termCollection-KNFUELYY.js.map → termCollection-2ZJ7TJGO.js.map} +0 -0
  870. /package/dist/{termCollection-7F5ZG2DB.js.map → termCollection-3MCVR7BA.js.map} +0 -0
  871. /package/dist/{termCollection.unit.spec-S6M6QC4C.js.map → termCollection.unit.spec-QYOEA3X6.js.map} +0 -0
  872. /package/dist/{termCollectionFractionSelection-X22VMJWY.js.map → termCollectionFractionSelection-5AH6EF4L.js.map} +0 -0
  873. /package/dist/{termCollectionFractionSelection.unit.spec-ELU6SD7P.js.map → termCollectionFractionSelection.unit.spec-WPGW4WJN.js.map} +0 -0
  874. /package/dist/{tk-TT666UVE.js.map → tk-DQ7D5UEO.js.map} +0 -0
  875. /package/dist/{tk-UOPNJ323.js.map → tk-ONKYBG6R.js.map} +0 -0
  876. /package/dist/{tp.ui-HGAHRKO5.js.map → tp.ui-C7BTMHEI.js.map} +0 -0
  877. /package/dist/{tvs.dt-H7YYR4EB.js.map → tvs.dt-PLRMK7OT.js.map} +0 -0
  878. /package/dist/{tvs.dtcnv.categorical-IPJTKGMF.js.map → tvs.dtcnv.categorical-IZUY2AQO.js.map} +0 -0
  879. /package/dist/{tvs.dtcnv.continuous-XY5XZ4GH.js.map → tvs.dtcnv.continuous-ENV3RHHA.js.map} +0 -0
  880. /package/dist/{tvs.dtfusion-VFCBMXRM.js.map → tvs.dtfusion-2DVCV6AM.js.map} +0 -0
  881. /package/dist/{tvs.dtitd-RZVW6FTR.js.map → tvs.dtitd-XNDIRQYU.js.map} +0 -0
  882. /package/dist/{tvs.dtsnvindel-IDPJWSGC.js.map → tvs.dtsnvindel-4D3G7XSF.js.map} +0 -0
  883. /package/dist/{tvs.dtsv-QERP756F.js.map → tvs.dtsv-QYMIMC4Z.js.map} +0 -0
  884. /package/dist/{tvs.numeric-22AHXO5K.js.map → tvs.numeric-M5LH3PRH.js.map} +0 -0
  885. /package/dist/{tvs.samplelst-6KNDHBIU.js.map → tvs.samplelst-2KEU2ZWB.js.map} +0 -0
  886. /package/dist/{tvs.termCollection-GWPJK3NE.js.map → tvs.termCollection-FEY746V5.js.map} +0 -0
  887. /package/dist/{vocabulary-C5FIZMPQ.js.map → vocabulary-BR4NJDPS.js.map} +0 -0
  888. /package/dist/{wsi.direct-2RBCBXDA.js.map → wsi.direct-JWDUNHIO.js.map} +0 -0
@@ -0,0 +1,2245 @@
1
+ import {
2
+ blocklazyload
3
+ } from "./chunk-P4LGA36F.js";
4
+ import {
5
+ hicParseFile
6
+ } from "./chunk-VWA7BYSV.js";
7
+ import {
8
+ AppBase,
9
+ ColorScale,
10
+ axisstyle,
11
+ first_genetrack_tolist,
12
+ font,
13
+ newpane,
14
+ showErrorsWithCounter,
15
+ tkt
16
+ } from "./chunk-55FABQU2.js";
17
+ import "./chunk-HJ6L54YS.js";
18
+ import "./chunk-KV4W2ACA.js";
19
+ import "./chunk-UXD6G6G4.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-VA57CUC7.js";
30
+ import "./chunk-BK6UDL7F.js";
31
+ import "./chunk-KIAMLQ7S.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-73ESVNBA.js.map