@sjcrh/proteinpaint-client 2.185.0 → 2.186.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 (848) hide show
  1. package/dist/2dmaf-F5QNP7AQ.js +1371 -0
  2. package/dist/AIProjectAdmin-ROSQHK6Q.js +827 -0
  3. package/dist/AIProjectAdmin-ROSQHK6Q.js.map +7 -0
  4. package/dist/AppHeader-STVCDLET.js +833 -0
  5. package/dist/BoxPlot-CU7MEBH7.js +1217 -0
  6. package/dist/CorrelationVolcano-OE4R2GS3.js +617 -0
  7. package/dist/DE-SR7PJPKI.js +93 -0
  8. package/dist/DEinput-PRIAIBFH.js +299 -0
  9. package/dist/DEinput-PRIAIBFH.js.map +7 -0
  10. package/dist/DifferentialAnalysis-UWTYK7NU.js +241 -0
  11. package/dist/Disco-IL6REGSA.js +3235 -0
  12. package/dist/Disco.UI-JHHLS5BA.js +242 -0
  13. package/dist/DmrPlot-DDP53T3F.js +640 -0
  14. package/dist/GB-F4LMYMHF.js +1127 -0
  15. package/dist/GB-F4LMYMHF.js.map +7 -0
  16. package/dist/GeneExpInput-ZWBC226P.js +363 -0
  17. package/dist/GeneExpInput-ZWBC226P.js.map +7 -0
  18. package/dist/HicApp-RVFHTYED.js +2248 -0
  19. package/dist/NumBinaryEditor-B3FXQAOH.js +268 -0
  20. package/dist/NumBinaryEditor.unit.spec-75YQJ2U6.js +284 -0
  21. package/dist/NumContEditor-5PYW3OLY.js +105 -0
  22. package/dist/NumContEditor.unit.spec-F7ZRDGBN.js +167 -0
  23. package/dist/NumCustomBinEditor-TBT6GLYQ.js +36 -0
  24. package/dist/NumCustomBinEditor.unit.spec-6YHU45XV.js +282 -0
  25. package/dist/NumDiscreteEditor-N6OJYSJA.js +177 -0
  26. package/dist/NumDiscreteEditor.unit.spec-HQS5RZ6R.js +200 -0
  27. package/dist/NumRegularBinEditor-HSDDKVNG.js +36 -0
  28. package/dist/NumRegularBinEditor.unit.spec-33KN2MVM.js +225 -0
  29. package/dist/NumSplineEditor-XERKOACS.js +190 -0
  30. package/dist/NumSplineEditor.unit.spec-MPVM6KSC.js +197 -0
  31. package/dist/NumericDensity-35EKYW3V.js +36 -0
  32. package/dist/NumericDensity.unit.spec-OR24PPRJ.js +219 -0
  33. package/dist/NumericHandler-D6ZNGRE3.js +37 -0
  34. package/dist/NumericHandler.unit.spec-EKPGVSXI.js +217 -0
  35. package/dist/RunChart2-7DOXOFXV.js +756 -0
  36. package/dist/SC-APZRV4H6.js +826 -0
  37. package/dist/SC-APZRV4H6.js.map +7 -0
  38. package/dist/Volcano-X4ZWK644.js +1344 -0
  39. package/dist/Volcano-X4ZWK644.js.map +7 -0
  40. package/dist/WSIViewer-E247ELKN.js +47971 -0
  41. package/dist/WsiSamplesPlot-3522VRB5.js +163 -0
  42. package/dist/adSandbox-IDFY5P2P.js +36 -0
  43. package/dist/alphaGenome-F3W7GJQ5.js +173 -0
  44. package/dist/app-2HDSFMRM.js +47 -0
  45. package/dist/app-LIWPFL7C.js +35 -0
  46. package/dist/app.js +10 -10
  47. package/dist/bam-TBHHSATL.js +857 -0
  48. package/dist/barchart-HHFCBOZE.js +45 -0
  49. package/dist/barchart.events-UQUSSRXB.js +45 -0
  50. package/dist/barchart.integration.spec-OF3MWFQ5.js +1675 -0
  51. package/dist/barchart2-XRMPCBBU.js +309 -0
  52. package/dist/block-5UEORHFB.js +6200 -0
  53. package/dist/block.init-QSSFUVIT.js +36 -0
  54. package/dist/block.mds.expressionrank-VBIIJHQF.js +357 -0
  55. package/dist/block.mds.geneboxplot-KSBHXBNX.js +826 -0
  56. package/dist/block.mds.junction-FWZWMZJ2.js +1543 -0
  57. package/dist/block.mds.svcnv-UXORVLH2.js +6799 -0
  58. package/dist/block.svg-6KIGW4QH.js +162 -0
  59. package/dist/block.tk.aicheck-DK566Q4C.js +281 -0
  60. package/dist/block.tk.ase-2GB2VJJ6.js +363 -0
  61. package/dist/block.tk.bam-RQNOLY52.js +1904 -0
  62. package/dist/block.tk.bedgraphdot-N4YMZFO4.js +382 -0
  63. package/dist/block.tk.bigwig.ui-4S7L7D7D.js +209 -0
  64. package/dist/block.tk.hicstraw-AHFNQKCS.js +821 -0
  65. package/dist/block.tk.junction-7E6SNQMQ.js +2362 -0
  66. package/dist/block.tk.junction.textmatrixui-3C5JVYX5.js +197 -0
  67. package/dist/block.tk.ld-TOUCLT3W.js +97 -0
  68. package/dist/block.tk.menu-JCV5ORD6.js +1027 -0
  69. package/dist/block.tk.pgv-CUU22U6M.js +942 -0
  70. package/dist/brainImaging-MTQTXNNL.js +421 -0
  71. package/dist/chunk-2UYBBUXK.js +293 -0
  72. package/dist/chunk-2VPEFXEJ.js +4207 -0
  73. package/dist/chunk-2YC6ZVE4.js +20377 -0
  74. package/dist/chunk-2YC6ZVE4.js.map +7 -0
  75. package/dist/chunk-37MD3Y5G.js +1230 -0
  76. package/dist/chunk-37MD3Y5G.js.map +7 -0
  77. package/dist/chunk-3QHIL3V3.js +55 -0
  78. package/dist/chunk-44VXWKYJ.js +129 -0
  79. package/dist/chunk-52D6EGUS.js +95 -0
  80. package/dist/chunk-5FHM3L4I.js +102 -0
  81. package/dist/chunk-62TF2MCH.js +142 -0
  82. package/dist/chunk-67QM2NUK.js +6364 -0
  83. package/dist/chunk-6AAPHEWK.js +676 -0
  84. package/dist/chunk-6KPGMUHS.js +153 -0
  85. package/dist/chunk-6WBIZXNI.js +455 -0
  86. package/dist/chunk-7AAJVXEG.js +302 -0
  87. package/dist/chunk-AFJRAR4N.js +1271 -0
  88. package/dist/chunk-BBNO6JLO.js +200 -0
  89. package/dist/chunk-BBNO6JLO.js.map +7 -0
  90. package/dist/chunk-CVRYZMDE.js +148 -0
  91. package/dist/chunk-DGUTCYH2.js +276 -0
  92. package/dist/chunk-DHNXATHC.js +158 -0
  93. package/dist/chunk-DXHATYHE.js +180 -0
  94. package/dist/chunk-DXHATYHE.js.map +7 -0
  95. package/dist/chunk-E3BI23UK.js +229 -0
  96. package/dist/chunk-E4JDHA3C.js +621 -0
  97. package/dist/chunk-FOJWYEGV.js +228 -0
  98. package/dist/chunk-FTN7Y34O.js +158 -0
  99. package/dist/chunk-GAOUV4ID.js +1943 -0
  100. package/dist/chunk-GAOUV4ID.js.map +7 -0
  101. package/dist/chunk-GRG5MMPN.js +2815 -0
  102. package/dist/chunk-GSU4PZN3.js +482 -0
  103. package/dist/chunk-I55NLUCQ.js +1823 -0
  104. package/dist/chunk-I55NLUCQ.js.map +7 -0
  105. package/dist/chunk-IIRU2JLK.js +217 -0
  106. package/dist/chunk-JCB74ZSK.js +272 -0
  107. package/dist/chunk-JUDWPYMA.js +824 -0
  108. package/dist/chunk-KT6VZBC7.js +1087 -0
  109. package/dist/chunk-L2HBHFTK.js +2370 -0
  110. package/dist/chunk-LKADRF3Q.js +368 -0
  111. package/dist/chunk-MAXFRUGM.js +407 -0
  112. package/dist/chunk-MQN7RYCK.js +37 -0
  113. package/dist/chunk-OEUI4CYZ.js +470 -0
  114. package/dist/chunk-OM36XUQL.js +34 -0
  115. package/dist/chunk-P5LNIH5X.js +54 -0
  116. package/dist/chunk-PG62PRMF.js +102 -0
  117. package/dist/chunk-Q3J3F2NU.js +205 -0
  118. package/dist/chunk-RYCOJY7M.js +188 -0
  119. package/dist/chunk-RYCOJY7M.js.map +7 -0
  120. package/dist/chunk-RZBV6474.js +117 -0
  121. package/dist/chunk-T5V4OC27.js +442 -0
  122. package/dist/chunk-TXJG4N6S.js +4992 -0
  123. package/dist/chunk-TXJG4N6S.js.map +7 -0
  124. package/dist/chunk-UCKSUNSJ.js +335 -0
  125. package/dist/chunk-W4TLYHZO.js +514 -0
  126. package/dist/chunk-WPZUXKIB.js +56 -0
  127. package/dist/chunk-XM47XD6G.js +215 -0
  128. package/dist/chunk-XVA3UOWD.js +263 -0
  129. package/dist/chunk-XVA3UOWD.js.map +7 -0
  130. package/dist/chunk-YIMRBXQK.js +1210 -0
  131. package/dist/chunk-YIMRBXQK.js.map +7 -0
  132. package/dist/chunk-YL7VT4QT.js +1159 -0
  133. package/dist/chunk-YL7VT4QT.js.map +7 -0
  134. package/dist/chunk-YWBUK4B7.js +291 -0
  135. package/dist/chunk-YWBUK4B7.js.map +7 -0
  136. package/dist/chunk-YZHGLSKQ.js +50 -0
  137. package/dist/chunk-ZGOOZK3I.js +203 -0
  138. package/dist/chunk-ZH2VP6Q6.js +95 -0
  139. package/dist/chunk-ZLOQXO5K.js +14 -0
  140. package/dist/chunk-ZMNDBPJU.js +100 -0
  141. package/dist/chunk-ZRTW6X3F.js +2784 -0
  142. package/dist/chunk-ZTT52MBP.js +2681 -0
  143. package/dist/condition-VUACUQYF.js +330 -0
  144. package/dist/controls-N4MPSNO4.js +39 -0
  145. package/dist/controls.config-PRXVODCM.js +37 -0
  146. package/dist/correlation-QJZUYDFH.js +96 -0
  147. package/dist/cuminc-JJHXW55V.js +1147 -0
  148. package/dist/cuminc.integration.spec-IXS2UO2O.js +676 -0
  149. package/dist/customdata.inputui-DUHO6M6I.js +287 -0
  150. package/dist/dataDownload-OFB7TYDB.js +328 -0
  151. package/dist/dataDownload.integration.spec-4HWDQO4C.js +191 -0
  152. package/dist/databrowser.ui-FGZ5SWG3.js +430 -0
  153. package/dist/databrowser.ui-FGZ5SWG3.js.map +7 -0
  154. package/dist/dictionary-BSKN37CP.js +109 -0
  155. package/dist/dnaMethylation-5QNEEGC6.js +36 -0
  156. package/dist/dnaMethylation.integration.spec-YIX3JSA7.js +201 -0
  157. package/dist/dofetch-KFMGQY7G.js +50 -0
  158. package/dist/e2pca-VX42HDYZ.js +348 -0
  159. package/dist/ep-B6ZNETLI.js +1254 -0
  160. package/dist/expclust.gdc.spec-SGECIILQ.js +305 -0
  161. package/dist/facet-2W5SBPGP.js +519 -0
  162. package/dist/gb-67KTSE2W.js +86 -0
  163. package/dist/gb-67KTSE2W.js.map +7 -0
  164. package/dist/geneExpClustering-6A7364T5.js +247 -0
  165. package/dist/geneExpression-NAM2UEYN.js +36 -0
  166. package/dist/geneExpression-WF56ODMZ.js +312 -0
  167. package/dist/geneExpression.unit.spec-DNE2T3WI.js +100 -0
  168. package/dist/geneORA-33FK2YOS.js +276 -0
  169. package/dist/geneVariant-C7PCNBOQ.js +37 -0
  170. package/dist/geneVariant-REELFRRA.js +39 -0
  171. package/dist/geneVariant.integration.spec-GNXUGDKL.js +196 -0
  172. package/dist/genefusion.ui-WO5EPJDS.js +306 -0
  173. package/dist/geneset-4C6ZLVMN.js +201 -0
  174. package/dist/geneset-4C6ZLVMN.js.map +7 -0
  175. package/dist/genomeBrowser.spec-VPAKTUJF.js +279 -0
  176. package/dist/grin2-AJFEBD43.js +852 -0
  177. package/dist/grin2-AJFEBD43.js.map +7 -0
  178. package/dist/grin2-GYHUYNEF.js +1554 -0
  179. package/dist/gsea-PE5WZ5ZI.js +45 -0
  180. package/dist/hierCluster-FH6YJHRT.js +61 -0
  181. package/dist/hierCluster-IFM5I5QN.js +57 -0
  182. package/dist/hierCluster.config-M57ZIWMB.js +38 -0
  183. package/dist/hierCluster.integration.spec-Z64RL7MC.js +393 -0
  184. package/dist/hierCluster.interactivity-CDBAJXOY.js +52 -0
  185. package/dist/imagePlot-NFEE6IGV.js +161 -0
  186. package/dist/imagePlot-NFEE6IGV.js.map +7 -0
  187. package/dist/importPlot-OWKXSK77.js +8 -0
  188. package/dist/isoformExpression-66XLJG73.js +38 -0
  189. package/dist/isoformExpression.unit.spec-QJX2IRHL.js +206 -0
  190. package/dist/launch.adhoc-JCWID253.js +40 -0
  191. package/dist/leftlabel.sample-5NZ6VQDN.js +257 -0
  192. package/dist/lollipop-BPFDEM2R.js +169 -0
  193. package/dist/lollipop-BPFDEM2R.js.map +7 -0
  194. package/dist/maf-HIS2FQXK.js +450 -0
  195. package/dist/maftimeline-UPJJQE23.js +591 -0
  196. package/dist/matrix-62CN2KXR.js +56 -0
  197. package/dist/matrix-SPEDEB3J.js +61 -0
  198. package/dist/matrix.config-XB6WFXUY.js +39 -0
  199. package/dist/matrix.integration.spec-NN7OR5XM.js +3070 -0
  200. package/dist/matrix.interactivity-OWMHUJCX.js +40 -0
  201. package/dist/matrix.layout-27QB6MWK.js +42 -0
  202. package/dist/matrix.renderers-EPXES5E4.js +36 -0
  203. package/dist/matrix.sort.unit.spec-NBT5FSZ6.js +470 -0
  204. package/dist/matrix.sorterUi.unit.spec-QKGUE4RR.js +340 -0
  205. package/dist/mavb-M7Y74OWQ.js +730 -0
  206. package/dist/mds.fimo-WCDFA7HG.js +516 -0
  207. package/dist/mds.samplescatterplot-ZDHQ3MKJ.js +1548 -0
  208. package/dist/mds.survivalplot-R74DL2RA.js +481 -0
  209. package/dist/oncomatrix-MOITJBII.js +293 -0
  210. package/dist/oncomatrix.spec-NALJBPYS.js +446 -0
  211. package/dist/plot.2dvaf-IE2EZEFA.js +375 -0
  212. package/dist/plot.app-HTW6TZEH.js +39 -0
  213. package/dist/plot.barplot-NCQEPEOY.js +100 -0
  214. package/dist/plot.boxplot-WNKVBVJJ.js +150 -0
  215. package/dist/plot.brainImaging-2Z3TOO6J.js +51 -0
  216. package/dist/plot.disco-4JAEIAYK.js +101 -0
  217. package/dist/plot.dzi-ZGLOVJJN.js +33 -0
  218. package/dist/plot.ssgq-IHUILM43.js +137 -0
  219. package/dist/plot.vaf2cov-ZYCQMD27.js +257 -0
  220. package/dist/plot.wsi-3GISVBDH.js +36 -0
  221. package/dist/polar-4AUAZHBV.js +184 -0
  222. package/dist/polar2-SRD4WWXU.js +226 -0
  223. package/dist/profile.spec-TOITKBBZ.js +78 -0
  224. package/dist/profileBarchart-Z4SYIYBE.js +265 -0
  225. package/dist/profileForms-RA7XQ2QT.js +438 -0
  226. package/dist/profilePlot-4BM3XZVK.js +52 -0
  227. package/dist/profileRadar-EYBESEPI.js +261 -0
  228. package/dist/profileRadarFacility-FZYTFM26.js +261 -0
  229. package/dist/proteinView-F6XKT2A5.js +1122 -0
  230. package/dist/proteinView-F6XKT2A5.js.map +7 -0
  231. package/dist/proteomeAbundance-3RJMRXYI.js +68 -0
  232. package/dist/proteomeAbundance-3RJMRXYI.js.map +7 -0
  233. package/dist/proteomeAbundance-65R6M4YQ.js +21 -0
  234. package/dist/qualitative-E7WL6DN4.js +41 -0
  235. package/dist/radar2-I6FN5SUX.js +314 -0
  236. package/dist/radarFacility2-GVK7PT3V.js +323 -0
  237. package/dist/regression-TIR5D354.js +54 -0
  238. package/dist/regression.inputs-2AMJCJ3L.js +46 -0
  239. package/dist/regression.inputs.term-D6D2QEUB.js +46 -0
  240. package/dist/regression.inputs.values.table-M3IPLGDJ.js +43 -0
  241. package/dist/regression.integration.spec-ROUSXLMH.js +782 -0
  242. package/dist/regression.results-YD5S74YS.js +38 -0
  243. package/dist/regression.spec-4OXBBTNO.js +706 -0
  244. package/dist/report-ETNALKTY.js +220 -0
  245. package/dist/sampleScatter.spec-LECMFMI2.js +200 -0
  246. package/dist/sampleView-B5TM7JOW.js +46 -0
  247. package/dist/samplelst-GFQCG4SS.js +109 -0
  248. package/dist/samplematrix-OMTNWCJK.js +2196 -0
  249. package/dist/sc-MIEEZBWG.js +84 -0
  250. package/dist/scatter-ETOZ722F.js +800 -0
  251. package/dist/scatter.integration.spec-TS4PNRLX.js +1194 -0
  252. package/dist/selectGenomeWithTklst-Y5QIM2JB.js +132 -0
  253. package/dist/singleCellCellType-HOJHZF5W.js +36 -0
  254. package/dist/singleCellCellType.unit.spec-MH5V3RPX.js +158 -0
  255. package/dist/singleCellGeneExpression-YVQ5TIKN.js +36 -0
  256. package/dist/singleCellGeneExpression.unit.spec-BMFFT5HO.js +151 -0
  257. package/dist/singleCellPlot-3YFUYA2Y.js +51 -0
  258. package/dist/singlecell-FK5JETW5.js +1570 -0
  259. package/dist/singlecell-RL7V7DIC.js +84 -0
  260. package/dist/snp-FT7HB3XN.js +36 -0
  261. package/dist/snp.unit.spec-CLYVYPPG.js +174 -0
  262. package/dist/snplocus-M5SEQGAC.js +206 -0
  263. package/dist/spliceevent.a53ss.diagram-EJ5CTRCZ.js +149 -0
  264. package/dist/spliceevent.exonskip.diagram-ETXMOHZ3.js +275 -0
  265. package/dist/spliceevent.noeventdiagram-S2O4ZM2Z.js +458 -0
  266. package/dist/ssGSEA-6PMDQDTJ.js +36 -0
  267. package/dist/ssGSEA.unit.spec-JD5T4R2N.js +86 -0
  268. package/dist/summarizeCnvGeneexp-GCHNKTIU.js +161 -0
  269. package/dist/summarizeGeneexpSurvival-R2RYQZ3M.js +106 -0
  270. package/dist/summarizeMutationCnv-LB2BIYRL.js +162 -0
  271. package/dist/summarizeMutationDiagnosis-3JUY75LM.js +38 -0
  272. package/dist/summarizeMutationSurvival-VYLRWTCF.js +97 -0
  273. package/dist/summary-2QQ72IEQ.js +47 -0
  274. package/dist/summary.integration.spec-XXU362UQ.js +412 -0
  275. package/dist/summaryInput-OZHZG3PV.js +233 -0
  276. package/dist/sunburst-CMCJCANX.js +282 -0
  277. package/dist/survival-EBD4DHO7.js +44 -0
  278. package/dist/survival-ISLRRPKU.js +56 -0
  279. package/dist/survival.integration.spec-FS7V4OXK.js +800 -0
  280. package/dist/svgraph-KGLNUM7W.js +1385 -0
  281. package/dist/svmr-NXZ5VLKH.js +3840 -0
  282. package/dist/table-ISOQOI6C.js +198 -0
  283. package/dist/termCollection-7ZSU3I45.js +36 -0
  284. package/dist/termCollection-V2A5BDQB.js +177 -0
  285. package/dist/termCollection.unit.spec-6VLCJGOU.js +206 -0
  286. package/dist/tk-6AB6XYIE.js +44 -0
  287. package/dist/tp.ui-2O4UW5N7.js +1457 -0
  288. package/dist/tvs.dt-CY6TOQVB.js +37 -0
  289. package/dist/tvs.dtcnv.categorical-AYQ432TW.js +38 -0
  290. package/dist/tvs.dtcnv.continuous-XVDL6SG3.js +70 -0
  291. package/dist/tvs.dtfusion-V3AV7A6Q.js +38 -0
  292. package/dist/tvs.dtsnvindel-XM3NXIT7.js +38 -0
  293. package/dist/tvs.dtsv-Z2GYRINW.js +38 -0
  294. package/dist/tvs.samplelst-C4FB63G7.js +102 -0
  295. package/dist/tvs.termCollection-VHTSC2ST.js +157 -0
  296. package/dist/violin-KGGTUQFF.js +44 -0
  297. package/dist/violin.integration.spec-5EW6PLJX.js +1423 -0
  298. package/dist/violin.interactivity-RI4RURGO.js +36 -0
  299. package/dist/violin.renderer-EWU2IFZE.js +38 -0
  300. package/dist/vocabulary-VLIGC7OP.js +39 -0
  301. package/package.json +3 -3
  302. package/src/databrowser/dictionary.parse.js +14 -2
  303. package/dist/2dmaf-X7LATQT7.js +0 -1371
  304. package/dist/AIProjectAdmin-GUBKURGO.js +0 -830
  305. package/dist/AIProjectAdmin-GUBKURGO.js.map +0 -7
  306. package/dist/AppHeader-RDOFP322.js +0 -833
  307. package/dist/BoxPlot-AZF2EMGQ.js +0 -1217
  308. package/dist/CorrelationVolcano-VXW35SXU.js +0 -617
  309. package/dist/DE-NLGMZ44O.js +0 -93
  310. package/dist/DEinput-OJ7P4UMP.js +0 -297
  311. package/dist/DEinput-OJ7P4UMP.js.map +0 -7
  312. package/dist/DifferentialAnalysis-G75VUHDI.js +0 -241
  313. package/dist/Disco-DX4S44SI.js +0 -3235
  314. package/dist/Disco.UI-5FYIACCU.js +0 -242
  315. package/dist/DmrPlot-HWYITHK2.js +0 -640
  316. package/dist/GB-DBTMRVYH.js +0 -1125
  317. package/dist/GB-DBTMRVYH.js.map +0 -7
  318. package/dist/GeneExpInput-DWB7OYT2.js +0 -335
  319. package/dist/GeneExpInput-DWB7OYT2.js.map +0 -7
  320. package/dist/HicApp-XPZVZXB7.js +0 -2248
  321. package/dist/NumBinaryEditor-M6MJYIHK.js +0 -268
  322. package/dist/NumBinaryEditor.unit.spec-W6MMYDAW.js +0 -284
  323. package/dist/NumContEditor-YRVENTS5.js +0 -105
  324. package/dist/NumContEditor.unit.spec-A6OH4TI7.js +0 -167
  325. package/dist/NumCustomBinEditor-BLBOYSCQ.js +0 -36
  326. package/dist/NumCustomBinEditor.unit.spec-55V5CKLB.js +0 -282
  327. package/dist/NumDiscreteEditor-DTRM6VL2.js +0 -177
  328. package/dist/NumDiscreteEditor.unit.spec-YMB6QRER.js +0 -200
  329. package/dist/NumRegularBinEditor-XW4SVA7S.js +0 -36
  330. package/dist/NumRegularBinEditor.unit.spec-VAHC3VOD.js +0 -225
  331. package/dist/NumSplineEditor-H22HTRFR.js +0 -190
  332. package/dist/NumSplineEditor.unit.spec-4JUADXZR.js +0 -197
  333. package/dist/NumericDensity-ECSZCQRX.js +0 -36
  334. package/dist/NumericDensity.unit.spec-SXXCXM4X.js +0 -219
  335. package/dist/NumericHandler-CMBN3FZX.js +0 -37
  336. package/dist/NumericHandler.unit.spec-UYTJG2Z2.js +0 -217
  337. package/dist/RunChart2-MVFWLXZX.js +0 -756
  338. package/dist/SC-BRC3J2O4.js +0 -797
  339. package/dist/SC-BRC3J2O4.js.map +0 -7
  340. package/dist/Volcano-WMNFZSX2.js +0 -1234
  341. package/dist/Volcano-WMNFZSX2.js.map +0 -7
  342. package/dist/WSIViewer-2Z636FMA.js +0 -47971
  343. package/dist/WsiSamplesPlot-LN75PND3.js +0 -163
  344. package/dist/adSandbox-AJ7QUDOI.js +0 -36
  345. package/dist/alphaGenome-PVCRXAQK.js +0 -173
  346. package/dist/app-DWYCAFRP.js +0 -47
  347. package/dist/app-RENXV7VR.js +0 -35
  348. package/dist/bam-5G6IT6OX.js +0 -857
  349. package/dist/barchart-MLCCU6SU.js +0 -45
  350. package/dist/barchart.events-B6HQTLK2.js +0 -45
  351. package/dist/barchart.integration.spec-S43A7C7N.js +0 -1675
  352. package/dist/barchart2-QMKEN6MN.js +0 -309
  353. package/dist/block-IGBB4BJH.js +0 -6200
  354. package/dist/block.init-NLCYAKV4.js +0 -36
  355. package/dist/block.mds.expressionrank-TZWGRDY7.js +0 -357
  356. package/dist/block.mds.geneboxplot-OAFROYDL.js +0 -826
  357. package/dist/block.mds.junction-NSLXTW3D.js +0 -1543
  358. package/dist/block.mds.svcnv-ICPG4BW6.js +0 -6799
  359. package/dist/block.svg-DTFVIAAC.js +0 -162
  360. package/dist/block.tk.aicheck-ZIMIBWHA.js +0 -281
  361. package/dist/block.tk.ase-I7UNK5BK.js +0 -363
  362. package/dist/block.tk.bam-W7JG46RS.js +0 -1904
  363. package/dist/block.tk.bedgraphdot-XAQJPKGJ.js +0 -382
  364. package/dist/block.tk.bigwig.ui-YQOJPJSG.js +0 -209
  365. package/dist/block.tk.hicstraw-OWWGGCHU.js +0 -821
  366. package/dist/block.tk.junction-V63ZQQX6.js +0 -2362
  367. package/dist/block.tk.junction.textmatrixui-B7KXX7WN.js +0 -197
  368. package/dist/block.tk.ld-2J6CT74S.js +0 -97
  369. package/dist/block.tk.menu-6AQLG7PW.js +0 -1027
  370. package/dist/block.tk.pgv-4V6PKVCQ.js +0 -942
  371. package/dist/brainImaging-WRBGYLHK.js +0 -421
  372. package/dist/chat-X2BCTEDF.js +0 -148
  373. package/dist/chat-X2BCTEDF.js.map +0 -7
  374. package/dist/chunk-23VG37CB.js +0 -1939
  375. package/dist/chunk-23VG37CB.js.map +0 -7
  376. package/dist/chunk-2VOHINOC.js +0 -262
  377. package/dist/chunk-2VOHINOC.js.map +0 -7
  378. package/dist/chunk-3AK6GP4M.js +0 -215
  379. package/dist/chunk-3B7EWIVB.js +0 -153
  380. package/dist/chunk-3JAC5CHL.js +0 -407
  381. package/dist/chunk-3QBZ2Y77.js +0 -188
  382. package/dist/chunk-3QBZ2Y77.js.map +0 -7
  383. package/dist/chunk-3T2PCWII.js +0 -442
  384. package/dist/chunk-4BTAI6HQ.js +0 -100
  385. package/dist/chunk-4JVNATQR.js +0 -621
  386. package/dist/chunk-4ZCR6CPK.js +0 -4964
  387. package/dist/chunk-4ZCR6CPK.js.map +0 -7
  388. package/dist/chunk-5MW5VMWD.js +0 -2784
  389. package/dist/chunk-5ZBEDKBD.js +0 -158
  390. package/dist/chunk-65YTZS3R.js +0 -203
  391. package/dist/chunk-6ZCHECOT.js +0 -1816
  392. package/dist/chunk-6ZCHECOT.js.map +0 -7
  393. package/dist/chunk-73ZT6NAT.js +0 -34
  394. package/dist/chunk-7HJ6H7AZ.js +0 -2681
  395. package/dist/chunk-AFXYPMFZ.js +0 -117
  396. package/dist/chunk-BL4ALBZ7.js +0 -37
  397. package/dist/chunk-BRCDZJBQ.js +0 -824
  398. package/dist/chunk-EBGX226R.js +0 -205
  399. package/dist/chunk-EHXI36HJ.js +0 -2815
  400. package/dist/chunk-ENP4FLOX.js +0 -293
  401. package/dist/chunk-FDOSJKDA.js +0 -1209
  402. package/dist/chunk-FDOSJKDA.js.map +0 -7
  403. package/dist/chunk-HP2BASCY.js +0 -1159
  404. package/dist/chunk-HP2BASCY.js.map +0 -7
  405. package/dist/chunk-HROKXT4K.js +0 -14
  406. package/dist/chunk-HTMXVOTH.js +0 -482
  407. package/dist/chunk-IA7S4UL5.js +0 -302
  408. package/dist/chunk-JFIOYO3M.js +0 -272
  409. package/dist/chunk-JMJW3ERE.js +0 -470
  410. package/dist/chunk-K7XWZSQA.js +0 -148
  411. package/dist/chunk-KSN3EVKI.js +0 -102
  412. package/dist/chunk-L5SOHZ5V.js +0 -229
  413. package/dist/chunk-LMGE54CQ.js +0 -54
  414. package/dist/chunk-LOMVTHAM.js +0 -95
  415. package/dist/chunk-MSW7OS2O.js +0 -276
  416. package/dist/chunk-MVCGSYS2.js +0 -50
  417. package/dist/chunk-N2HBIQKU.js +0 -102
  418. package/dist/chunk-NL3DVEVX.js +0 -158
  419. package/dist/chunk-O4WJSZC3.js +0 -1087
  420. package/dist/chunk-OLUDD6EC.js +0 -2370
  421. package/dist/chunk-OVPVPPRG.js +0 -55
  422. package/dist/chunk-OYEISJSJ.js +0 -289
  423. package/dist/chunk-OYEISJSJ.js.map +0 -7
  424. package/dist/chunk-P2JDCMXW.js +0 -4207
  425. package/dist/chunk-PMDXCESS.js +0 -514
  426. package/dist/chunk-PXYYICV7.js +0 -1271
  427. package/dist/chunk-PZ3KIUWJ.js +0 -56
  428. package/dist/chunk-QEWMCAJW.js +0 -335
  429. package/dist/chunk-QLWDUZ5K.js +0 -129
  430. package/dist/chunk-QRSIID3T.js +0 -95
  431. package/dist/chunk-ST644IDH.js +0 -217
  432. package/dist/chunk-UOOMFM7K.js +0 -6364
  433. package/dist/chunk-VGHSLILD.js +0 -368
  434. package/dist/chunk-W35IOI74.js +0 -228
  435. package/dist/chunk-XKF4KMCB.js +0 -146
  436. package/dist/chunk-XKF4KMCB.js.map +0 -7
  437. package/dist/chunk-XVDWYTJ6.js +0 -676
  438. package/dist/chunk-YQVEBFGT.js +0 -455
  439. package/dist/chunk-YWUVCXFS.js +0 -20271
  440. package/dist/chunk-YWUVCXFS.js.map +0 -7
  441. package/dist/chunk-ZT3PB4XX.js +0 -1150
  442. package/dist/chunk-ZT3PB4XX.js.map +0 -7
  443. package/dist/chunk-ZVSXHCGP.js +0 -142
  444. package/dist/condition-CZX2GSN4.js +0 -330
  445. package/dist/controls-BQR3WY5W.js +0 -39
  446. package/dist/controls.config-TAVZDHFZ.js +0 -37
  447. package/dist/correlation-BIWVZNC6.js +0 -96
  448. package/dist/cuminc-EDXOOI5R.js +0 -1147
  449. package/dist/cuminc.integration.spec-UZA7BDTB.js +0 -676
  450. package/dist/customdata.inputui-PEB4CE7J.js +0 -287
  451. package/dist/dataDownload-KANEHJXJ.js +0 -328
  452. package/dist/dataDownload.integration.spec-23WLHSWJ.js +0 -191
  453. package/dist/databrowser.ui-B2TNECC4.js +0 -419
  454. package/dist/databrowser.ui-B2TNECC4.js.map +0 -7
  455. package/dist/dictionary-YOTUFVES.js +0 -109
  456. package/dist/dnaMethylation-TRFAZWRJ.js +0 -36
  457. package/dist/dnaMethylation.integration.spec-SPFZO76D.js +0 -201
  458. package/dist/dofetch-MH4MRMGY.js +0 -50
  459. package/dist/e2pca-AFVAFUJ2.js +0 -348
  460. package/dist/ep-4FXTLWB4.js +0 -1254
  461. package/dist/expclust.gdc.spec-SFOCKBLR.js +0 -305
  462. package/dist/facet-SY6PYSTN.js +0 -519
  463. package/dist/gb-JUV63QCN.js +0 -93
  464. package/dist/gb-JUV63QCN.js.map +0 -7
  465. package/dist/geneExpClustering-FOY77R7P.js +0 -247
  466. package/dist/geneExpression-AHKX57BT.js +0 -312
  467. package/dist/geneExpression-D2F2KVGY.js +0 -36
  468. package/dist/geneExpression.unit.spec-SR2BGZQL.js +0 -100
  469. package/dist/geneORA-VJMYI4BT.js +0 -276
  470. package/dist/geneVariant-LFM5SO2P.js +0 -37
  471. package/dist/geneVariant-OIKEV4JM.js +0 -39
  472. package/dist/geneVariant.integration.spec-T6BINPIN.js +0 -196
  473. package/dist/genefusion.ui-NLMW5XMI.js +0 -306
  474. package/dist/geneset-HKXFHM5K.js +0 -197
  475. package/dist/geneset-HKXFHM5K.js.map +0 -7
  476. package/dist/genomeBrowser.spec-DRYIFJLY.js +0 -279
  477. package/dist/grin2-GJKLNT4J.js +0 -1031
  478. package/dist/grin2-GJKLNT4J.js.map +0 -7
  479. package/dist/grin2-LGI535FF.js +0 -1554
  480. package/dist/gsea-Z7DSDFOA.js +0 -45
  481. package/dist/hierCluster-HC2B5XRR.js +0 -61
  482. package/dist/hierCluster-PLHVN5S3.js +0 -57
  483. package/dist/hierCluster.config-E3DIJWL5.js +0 -38
  484. package/dist/hierCluster.integration.spec-OQLPUQG4.js +0 -393
  485. package/dist/hierCluster.interactivity-LRNPDTEH.js +0 -52
  486. package/dist/imagePlot-GUXRGYQA.js +0 -139
  487. package/dist/imagePlot-GUXRGYQA.js.map +0 -7
  488. package/dist/importPlot-M5HGLHRO.js +0 -8
  489. package/dist/isoformExpression-PADLHHR5.js +0 -38
  490. package/dist/isoformExpression.unit.spec-5BPAL4OS.js +0 -206
  491. package/dist/launch.adhoc-JH6ZZFDB.js +0 -40
  492. package/dist/leftlabel.sample-NS2TBANH.js +0 -257
  493. package/dist/lollipop-W6NOHHCP.js +0 -166
  494. package/dist/lollipop-W6NOHHCP.js.map +0 -7
  495. package/dist/maf-NOHIKTUP.js +0 -450
  496. package/dist/maftimeline-WGWE52EF.js +0 -591
  497. package/dist/matrix-B6NPQFFF.js +0 -61
  498. package/dist/matrix-UAKRJL5A.js +0 -56
  499. package/dist/matrix.config-KJNJXPJJ.js +0 -39
  500. package/dist/matrix.integration.spec-VAXIR3E6.js +0 -3070
  501. package/dist/matrix.interactivity-H4MCMJXU.js +0 -40
  502. package/dist/matrix.layout-RFKQJM5D.js +0 -42
  503. package/dist/matrix.renderers-7JJIC6VC.js +0 -36
  504. package/dist/matrix.sort.unit.spec-MQQVWWNT.js +0 -470
  505. package/dist/matrix.sorterUi.unit.spec-LG4TI7VF.js +0 -340
  506. package/dist/mavb-EIZHS6F4.js +0 -730
  507. package/dist/mds.fimo-XVC6MI7W.js +0 -516
  508. package/dist/mds.samplescatterplot-PRR4TKYI.js +0 -1548
  509. package/dist/mds.survivalplot-3OG4Y2B6.js +0 -481
  510. package/dist/oncomatrix-SO6S6IIB.js +0 -293
  511. package/dist/oncomatrix.spec-VXTF44K5.js +0 -446
  512. package/dist/plot.2dvaf-JW5OJJXV.js +0 -375
  513. package/dist/plot.app-T3GVCFQ3.js +0 -39
  514. package/dist/plot.barplot-2TYP6DPI.js +0 -100
  515. package/dist/plot.boxplot-HOQHM7JF.js +0 -150
  516. package/dist/plot.brainImaging-5AI7BSD4.js +0 -51
  517. package/dist/plot.disco-HNNZHK5Z.js +0 -101
  518. package/dist/plot.dzi-4OQSO7SY.js +0 -33
  519. package/dist/plot.ssgq-VZTTGECT.js +0 -137
  520. package/dist/plot.vaf2cov-ASEELRDV.js +0 -257
  521. package/dist/plot.wsi-MDWYLU4R.js +0 -36
  522. package/dist/polar-QSY6JG4P.js +0 -184
  523. package/dist/polar2-FD6656VD.js +0 -226
  524. package/dist/profile.spec-V7EQBXT2.js +0 -78
  525. package/dist/profileBarchart-EIKHZAPD.js +0 -265
  526. package/dist/profileForms-NGFRXPFF.js +0 -438
  527. package/dist/profilePlot-2UFKJ2OC.js +0 -52
  528. package/dist/profileRadar-B2R7OV5F.js +0 -261
  529. package/dist/profileRadarFacility-ILC7POCI.js +0 -261
  530. package/dist/proteinView-AS6ZV2JT.js +0 -758
  531. package/dist/proteinView-AS6ZV2JT.js.map +0 -7
  532. package/dist/proteomeAbundance-6J5YF4V2.js +0 -63
  533. package/dist/proteomeAbundance-6J5YF4V2.js.map +0 -7
  534. package/dist/proteomeAbundance-OF27N347.js +0 -21
  535. package/dist/qualitative-CSUO2WG5.js +0 -41
  536. package/dist/radar2-L2HGCUYR.js +0 -314
  537. package/dist/radarFacility2-HXUUTRYO.js +0 -323
  538. package/dist/regression-Y4NYGZSA.js +0 -54
  539. package/dist/regression.inputs-RWFIJLNF.js +0 -46
  540. package/dist/regression.inputs.term-QIU5SHTN.js +0 -46
  541. package/dist/regression.inputs.values.table-FM6QTSEV.js +0 -43
  542. package/dist/regression.integration.spec-YRKKU7HL.js +0 -782
  543. package/dist/regression.results-YUDCHUZJ.js +0 -38
  544. package/dist/regression.spec-G4GIIV32.js +0 -706
  545. package/dist/report-2N4FBR4Q.js +0 -220
  546. package/dist/sampleScatter.spec-UIUYO4WR.js +0 -200
  547. package/dist/sampleView-TOK5Y5KU.js +0 -46
  548. package/dist/samplelst-YW5ZS3GJ.js +0 -109
  549. package/dist/samplematrix-447BHSO7.js +0 -2196
  550. package/dist/sc-O2PL3FL2.js +0 -84
  551. package/dist/scatter-4DXHOWVY.js +0 -800
  552. package/dist/scatter.integration.spec-ZPTM3AGQ.js +0 -1194
  553. package/dist/selectGenomeWithTklst-3RLZFW62.js +0 -132
  554. package/dist/singleCellCellType-3LQJXS7H.js +0 -36
  555. package/dist/singleCellCellType.unit.spec-UJM72SP4.js +0 -158
  556. package/dist/singleCellGeneExpression-JOWJWPIQ.js +0 -36
  557. package/dist/singleCellGeneExpression.unit.spec-VY5CGRZH.js +0 -151
  558. package/dist/singleCellPlot-IVLVKOO6.js +0 -51
  559. package/dist/singlecell-VJJZJZF7.js +0 -1570
  560. package/dist/singlecell-VQJ2252L.js +0 -84
  561. package/dist/snp-ALMKZKL2.js +0 -36
  562. package/dist/snp.unit.spec-GJQBAHGQ.js +0 -174
  563. package/dist/snplocus-WCNCMFWZ.js +0 -206
  564. package/dist/spliceevent.a53ss.diagram-4Q4JF4RX.js +0 -149
  565. package/dist/spliceevent.exonskip.diagram-IOYOKELT.js +0 -275
  566. package/dist/spliceevent.noeventdiagram-77ZCOHSF.js +0 -458
  567. package/dist/ssGSEA-QTXXIN4K.js +0 -36
  568. package/dist/ssGSEA.unit.spec-LQESATT3.js +0 -86
  569. package/dist/summarizeCnvGeneexp-YKUQGDQF.js +0 -161
  570. package/dist/summarizeGeneexpSurvival-ARGG5VDC.js +0 -106
  571. package/dist/summarizeMutationCnv-FMZYT3EC.js +0 -162
  572. package/dist/summarizeMutationDiagnosis-ZX7I46SC.js +0 -38
  573. package/dist/summarizeMutationSurvival-RCFMTT43.js +0 -97
  574. package/dist/summary-QLL5YVI2.js +0 -47
  575. package/dist/summary.integration.spec-DHY6XCEJ.js +0 -412
  576. package/dist/summaryInput-ANCUQGIB.js +0 -233
  577. package/dist/sunburst-RDNFBOCK.js +0 -282
  578. package/dist/survival-BG7QV52L.js +0 -44
  579. package/dist/survival-WSN36OQE.js +0 -56
  580. package/dist/survival.integration.spec-37KAJ5IK.js +0 -800
  581. package/dist/svgraph-A5WGHW4S.js +0 -1385
  582. package/dist/svmr-CYRHHWZF.js +0 -3840
  583. package/dist/table-VHO7E5PI.js +0 -198
  584. package/dist/termCollection-E4Q6GLXN.js +0 -177
  585. package/dist/termCollection-HSVSH7TJ.js +0 -36
  586. package/dist/termCollection.unit.spec-ZCE3TUMS.js +0 -206
  587. package/dist/tk-GPRHDN4K.js +0 -44
  588. package/dist/tp.ui-LTUA3FSL.js +0 -1457
  589. package/dist/tvs.dt-G43PAAKD.js +0 -37
  590. package/dist/tvs.dtcnv.categorical-UHDS2TGZ.js +0 -38
  591. package/dist/tvs.dtcnv.continuous-ZNGYQKTD.js +0 -70
  592. package/dist/tvs.dtfusion-JBEEUDUS.js +0 -38
  593. package/dist/tvs.dtsnvindel-XXN5Q7RN.js +0 -38
  594. package/dist/tvs.dtsv-MO6L7HHV.js +0 -38
  595. package/dist/tvs.samplelst-HKY6UUJM.js +0 -102
  596. package/dist/tvs.termCollection-TY6FPL25.js +0 -157
  597. package/dist/violin-YHE3WSGR.js +0 -44
  598. package/dist/violin.integration.spec-F2UD7BHC.js +0 -1423
  599. package/dist/violin.interactivity-LVDTDEPQ.js +0 -36
  600. package/dist/violin.renderer-IIEIUGRI.js +0 -38
  601. package/dist/vocabulary-WQRYXBRO.js +0 -39
  602. /package/dist/{2dmaf-X7LATQT7.js.map → 2dmaf-F5QNP7AQ.js.map} +0 -0
  603. /package/dist/{AppHeader-RDOFP322.js.map → AppHeader-STVCDLET.js.map} +0 -0
  604. /package/dist/{BoxPlot-AZF2EMGQ.js.map → BoxPlot-CU7MEBH7.js.map} +0 -0
  605. /package/dist/{CorrelationVolcano-VXW35SXU.js.map → CorrelationVolcano-OE4R2GS3.js.map} +0 -0
  606. /package/dist/{DE-NLGMZ44O.js.map → DE-SR7PJPKI.js.map} +0 -0
  607. /package/dist/{DifferentialAnalysis-G75VUHDI.js.map → DifferentialAnalysis-UWTYK7NU.js.map} +0 -0
  608. /package/dist/{Disco-DX4S44SI.js.map → Disco-IL6REGSA.js.map} +0 -0
  609. /package/dist/{Disco.UI-5FYIACCU.js.map → Disco.UI-JHHLS5BA.js.map} +0 -0
  610. /package/dist/{DmrPlot-HWYITHK2.js.map → DmrPlot-DDP53T3F.js.map} +0 -0
  611. /package/dist/{HicApp-XPZVZXB7.js.map → HicApp-RVFHTYED.js.map} +0 -0
  612. /package/dist/{NumBinaryEditor-M6MJYIHK.js.map → NumBinaryEditor-B3FXQAOH.js.map} +0 -0
  613. /package/dist/{NumBinaryEditor.unit.spec-W6MMYDAW.js.map → NumBinaryEditor.unit.spec-75YQJ2U6.js.map} +0 -0
  614. /package/dist/{NumContEditor-YRVENTS5.js.map → NumContEditor-5PYW3OLY.js.map} +0 -0
  615. /package/dist/{NumContEditor.unit.spec-A6OH4TI7.js.map → NumContEditor.unit.spec-F7ZRDGBN.js.map} +0 -0
  616. /package/dist/{NumCustomBinEditor-BLBOYSCQ.js.map → NumCustomBinEditor-TBT6GLYQ.js.map} +0 -0
  617. /package/dist/{NumCustomBinEditor.unit.spec-55V5CKLB.js.map → NumCustomBinEditor.unit.spec-6YHU45XV.js.map} +0 -0
  618. /package/dist/{NumDiscreteEditor-DTRM6VL2.js.map → NumDiscreteEditor-N6OJYSJA.js.map} +0 -0
  619. /package/dist/{NumDiscreteEditor.unit.spec-YMB6QRER.js.map → NumDiscreteEditor.unit.spec-HQS5RZ6R.js.map} +0 -0
  620. /package/dist/{NumRegularBinEditor-XW4SVA7S.js.map → NumRegularBinEditor-HSDDKVNG.js.map} +0 -0
  621. /package/dist/{NumRegularBinEditor.unit.spec-VAHC3VOD.js.map → NumRegularBinEditor.unit.spec-33KN2MVM.js.map} +0 -0
  622. /package/dist/{NumSplineEditor-H22HTRFR.js.map → NumSplineEditor-XERKOACS.js.map} +0 -0
  623. /package/dist/{NumSplineEditor.unit.spec-4JUADXZR.js.map → NumSplineEditor.unit.spec-MPVM6KSC.js.map} +0 -0
  624. /package/dist/{NumericDensity-ECSZCQRX.js.map → NumericDensity-35EKYW3V.js.map} +0 -0
  625. /package/dist/{NumericDensity.unit.spec-SXXCXM4X.js.map → NumericDensity.unit.spec-OR24PPRJ.js.map} +0 -0
  626. /package/dist/{NumericHandler-CMBN3FZX.js.map → NumericHandler-D6ZNGRE3.js.map} +0 -0
  627. /package/dist/{NumericHandler.unit.spec-UYTJG2Z2.js.map → NumericHandler.unit.spec-EKPGVSXI.js.map} +0 -0
  628. /package/dist/{RunChart2-MVFWLXZX.js.map → RunChart2-7DOXOFXV.js.map} +0 -0
  629. /package/dist/{WSIViewer-2Z636FMA.js.map → WSIViewer-E247ELKN.js.map} +0 -0
  630. /package/dist/{WsiSamplesPlot-LN75PND3.js.map → WsiSamplesPlot-3522VRB5.js.map} +0 -0
  631. /package/dist/{adSandbox-AJ7QUDOI.js.map → adSandbox-IDFY5P2P.js.map} +0 -0
  632. /package/dist/{alphaGenome-PVCRXAQK.js.map → alphaGenome-F3W7GJQ5.js.map} +0 -0
  633. /package/dist/{app-DWYCAFRP.js.map → app-2HDSFMRM.js.map} +0 -0
  634. /package/dist/{app-RENXV7VR.js.map → app-LIWPFL7C.js.map} +0 -0
  635. /package/dist/{bam-5G6IT6OX.js.map → bam-TBHHSATL.js.map} +0 -0
  636. /package/dist/{barchart-MLCCU6SU.js.map → barchart-HHFCBOZE.js.map} +0 -0
  637. /package/dist/{barchart.events-B6HQTLK2.js.map → barchart.events-UQUSSRXB.js.map} +0 -0
  638. /package/dist/{barchart.integration.spec-S43A7C7N.js.map → barchart.integration.spec-OF3MWFQ5.js.map} +0 -0
  639. /package/dist/{barchart2-QMKEN6MN.js.map → barchart2-XRMPCBBU.js.map} +0 -0
  640. /package/dist/{block-IGBB4BJH.js.map → block-5UEORHFB.js.map} +0 -0
  641. /package/dist/{block.init-NLCYAKV4.js.map → block.init-QSSFUVIT.js.map} +0 -0
  642. /package/dist/{block.mds.expressionrank-TZWGRDY7.js.map → block.mds.expressionrank-VBIIJHQF.js.map} +0 -0
  643. /package/dist/{block.mds.geneboxplot-OAFROYDL.js.map → block.mds.geneboxplot-KSBHXBNX.js.map} +0 -0
  644. /package/dist/{block.mds.junction-NSLXTW3D.js.map → block.mds.junction-FWZWMZJ2.js.map} +0 -0
  645. /package/dist/{block.mds.svcnv-ICPG4BW6.js.map → block.mds.svcnv-UXORVLH2.js.map} +0 -0
  646. /package/dist/{block.svg-DTFVIAAC.js.map → block.svg-6KIGW4QH.js.map} +0 -0
  647. /package/dist/{block.tk.aicheck-ZIMIBWHA.js.map → block.tk.aicheck-DK566Q4C.js.map} +0 -0
  648. /package/dist/{block.tk.ase-I7UNK5BK.js.map → block.tk.ase-2GB2VJJ6.js.map} +0 -0
  649. /package/dist/{block.tk.bam-W7JG46RS.js.map → block.tk.bam-RQNOLY52.js.map} +0 -0
  650. /package/dist/{block.tk.bedgraphdot-XAQJPKGJ.js.map → block.tk.bedgraphdot-N4YMZFO4.js.map} +0 -0
  651. /package/dist/{block.tk.bigwig.ui-YQOJPJSG.js.map → block.tk.bigwig.ui-4S7L7D7D.js.map} +0 -0
  652. /package/dist/{block.tk.hicstraw-OWWGGCHU.js.map → block.tk.hicstraw-AHFNQKCS.js.map} +0 -0
  653. /package/dist/{block.tk.junction-V63ZQQX6.js.map → block.tk.junction-7E6SNQMQ.js.map} +0 -0
  654. /package/dist/{block.tk.junction.textmatrixui-B7KXX7WN.js.map → block.tk.junction.textmatrixui-3C5JVYX5.js.map} +0 -0
  655. /package/dist/{block.tk.ld-2J6CT74S.js.map → block.tk.ld-TOUCLT3W.js.map} +0 -0
  656. /package/dist/{block.tk.menu-6AQLG7PW.js.map → block.tk.menu-JCV5ORD6.js.map} +0 -0
  657. /package/dist/{block.tk.pgv-4V6PKVCQ.js.map → block.tk.pgv-CUU22U6M.js.map} +0 -0
  658. /package/dist/{brainImaging-WRBGYLHK.js.map → brainImaging-MTQTXNNL.js.map} +0 -0
  659. /package/dist/{chunk-ENP4FLOX.js.map → chunk-2UYBBUXK.js.map} +0 -0
  660. /package/dist/{chunk-P2JDCMXW.js.map → chunk-2VPEFXEJ.js.map} +0 -0
  661. /package/dist/{chunk-OVPVPPRG.js.map → chunk-3QHIL3V3.js.map} +0 -0
  662. /package/dist/{chunk-QLWDUZ5K.js.map → chunk-44VXWKYJ.js.map} +0 -0
  663. /package/dist/{chunk-QRSIID3T.js.map → chunk-52D6EGUS.js.map} +0 -0
  664. /package/dist/{chunk-N2HBIQKU.js.map → chunk-5FHM3L4I.js.map} +0 -0
  665. /package/dist/{chunk-ZVSXHCGP.js.map → chunk-62TF2MCH.js.map} +0 -0
  666. /package/dist/{chunk-UOOMFM7K.js.map → chunk-67QM2NUK.js.map} +0 -0
  667. /package/dist/{chunk-XVDWYTJ6.js.map → chunk-6AAPHEWK.js.map} +0 -0
  668. /package/dist/{chunk-3B7EWIVB.js.map → chunk-6KPGMUHS.js.map} +0 -0
  669. /package/dist/{chunk-YQVEBFGT.js.map → chunk-6WBIZXNI.js.map} +0 -0
  670. /package/dist/{chunk-IA7S4UL5.js.map → chunk-7AAJVXEG.js.map} +0 -0
  671. /package/dist/{chunk-PXYYICV7.js.map → chunk-AFJRAR4N.js.map} +0 -0
  672. /package/dist/{chunk-K7XWZSQA.js.map → chunk-CVRYZMDE.js.map} +0 -0
  673. /package/dist/{chunk-MSW7OS2O.js.map → chunk-DGUTCYH2.js.map} +0 -0
  674. /package/dist/{chunk-5ZBEDKBD.js.map → chunk-DHNXATHC.js.map} +0 -0
  675. /package/dist/{chunk-L5SOHZ5V.js.map → chunk-E3BI23UK.js.map} +0 -0
  676. /package/dist/{chunk-4JVNATQR.js.map → chunk-E4JDHA3C.js.map} +0 -0
  677. /package/dist/{chunk-W35IOI74.js.map → chunk-FOJWYEGV.js.map} +0 -0
  678. /package/dist/{chunk-NL3DVEVX.js.map → chunk-FTN7Y34O.js.map} +0 -0
  679. /package/dist/{chunk-EHXI36HJ.js.map → chunk-GRG5MMPN.js.map} +0 -0
  680. /package/dist/{chunk-HTMXVOTH.js.map → chunk-GSU4PZN3.js.map} +0 -0
  681. /package/dist/{chunk-ST644IDH.js.map → chunk-IIRU2JLK.js.map} +0 -0
  682. /package/dist/{chunk-JFIOYO3M.js.map → chunk-JCB74ZSK.js.map} +0 -0
  683. /package/dist/{chunk-BRCDZJBQ.js.map → chunk-JUDWPYMA.js.map} +0 -0
  684. /package/dist/{chunk-O4WJSZC3.js.map → chunk-KT6VZBC7.js.map} +0 -0
  685. /package/dist/{chunk-OLUDD6EC.js.map → chunk-L2HBHFTK.js.map} +0 -0
  686. /package/dist/{chunk-VGHSLILD.js.map → chunk-LKADRF3Q.js.map} +0 -0
  687. /package/dist/{chunk-3JAC5CHL.js.map → chunk-MAXFRUGM.js.map} +0 -0
  688. /package/dist/{chunk-BL4ALBZ7.js.map → chunk-MQN7RYCK.js.map} +0 -0
  689. /package/dist/{chunk-JMJW3ERE.js.map → chunk-OEUI4CYZ.js.map} +0 -0
  690. /package/dist/{chunk-73ZT6NAT.js.map → chunk-OM36XUQL.js.map} +0 -0
  691. /package/dist/{chunk-LMGE54CQ.js.map → chunk-P5LNIH5X.js.map} +0 -0
  692. /package/dist/{chunk-KSN3EVKI.js.map → chunk-PG62PRMF.js.map} +0 -0
  693. /package/dist/{chunk-EBGX226R.js.map → chunk-Q3J3F2NU.js.map} +0 -0
  694. /package/dist/{chunk-AFXYPMFZ.js.map → chunk-RZBV6474.js.map} +0 -0
  695. /package/dist/{chunk-3T2PCWII.js.map → chunk-T5V4OC27.js.map} +0 -0
  696. /package/dist/{chunk-QEWMCAJW.js.map → chunk-UCKSUNSJ.js.map} +0 -0
  697. /package/dist/{chunk-PMDXCESS.js.map → chunk-W4TLYHZO.js.map} +0 -0
  698. /package/dist/{chunk-PZ3KIUWJ.js.map → chunk-WPZUXKIB.js.map} +0 -0
  699. /package/dist/{chunk-3AK6GP4M.js.map → chunk-XM47XD6G.js.map} +0 -0
  700. /package/dist/{chunk-MVCGSYS2.js.map → chunk-YZHGLSKQ.js.map} +0 -0
  701. /package/dist/{chunk-65YTZS3R.js.map → chunk-ZGOOZK3I.js.map} +0 -0
  702. /package/dist/{chunk-LOMVTHAM.js.map → chunk-ZH2VP6Q6.js.map} +0 -0
  703. /package/dist/{chunk-HROKXT4K.js.map → chunk-ZLOQXO5K.js.map} +0 -0
  704. /package/dist/{chunk-4BTAI6HQ.js.map → chunk-ZMNDBPJU.js.map} +0 -0
  705. /package/dist/{chunk-5MW5VMWD.js.map → chunk-ZRTW6X3F.js.map} +0 -0
  706. /package/dist/{chunk-7HJ6H7AZ.js.map → chunk-ZTT52MBP.js.map} +0 -0
  707. /package/dist/{condition-CZX2GSN4.js.map → condition-VUACUQYF.js.map} +0 -0
  708. /package/dist/{controls-BQR3WY5W.js.map → controls-N4MPSNO4.js.map} +0 -0
  709. /package/dist/{controls.config-TAVZDHFZ.js.map → controls.config-PRXVODCM.js.map} +0 -0
  710. /package/dist/{correlation-BIWVZNC6.js.map → correlation-QJZUYDFH.js.map} +0 -0
  711. /package/dist/{cuminc-EDXOOI5R.js.map → cuminc-JJHXW55V.js.map} +0 -0
  712. /package/dist/{cuminc.integration.spec-UZA7BDTB.js.map → cuminc.integration.spec-IXS2UO2O.js.map} +0 -0
  713. /package/dist/{customdata.inputui-PEB4CE7J.js.map → customdata.inputui-DUHO6M6I.js.map} +0 -0
  714. /package/dist/{dataDownload-KANEHJXJ.js.map → dataDownload-OFB7TYDB.js.map} +0 -0
  715. /package/dist/{dataDownload.integration.spec-23WLHSWJ.js.map → dataDownload.integration.spec-4HWDQO4C.js.map} +0 -0
  716. /package/dist/{dictionary-YOTUFVES.js.map → dictionary-BSKN37CP.js.map} +0 -0
  717. /package/dist/{dnaMethylation-TRFAZWRJ.js.map → dnaMethylation-5QNEEGC6.js.map} +0 -0
  718. /package/dist/{dnaMethylation.integration.spec-SPFZO76D.js.map → dnaMethylation.integration.spec-YIX3JSA7.js.map} +0 -0
  719. /package/dist/{dofetch-MH4MRMGY.js.map → dofetch-KFMGQY7G.js.map} +0 -0
  720. /package/dist/{e2pca-AFVAFUJ2.js.map → e2pca-VX42HDYZ.js.map} +0 -0
  721. /package/dist/{ep-4FXTLWB4.js.map → ep-B6ZNETLI.js.map} +0 -0
  722. /package/dist/{expclust.gdc.spec-SFOCKBLR.js.map → expclust.gdc.spec-SGECIILQ.js.map} +0 -0
  723. /package/dist/{facet-SY6PYSTN.js.map → facet-2W5SBPGP.js.map} +0 -0
  724. /package/dist/{geneExpClustering-FOY77R7P.js.map → geneExpClustering-6A7364T5.js.map} +0 -0
  725. /package/dist/{geneExpression-D2F2KVGY.js.map → geneExpression-NAM2UEYN.js.map} +0 -0
  726. /package/dist/{geneExpression-AHKX57BT.js.map → geneExpression-WF56ODMZ.js.map} +0 -0
  727. /package/dist/{geneExpression.unit.spec-SR2BGZQL.js.map → geneExpression.unit.spec-DNE2T3WI.js.map} +0 -0
  728. /package/dist/{geneORA-VJMYI4BT.js.map → geneORA-33FK2YOS.js.map} +0 -0
  729. /package/dist/{geneVariant-LFM5SO2P.js.map → geneVariant-C7PCNBOQ.js.map} +0 -0
  730. /package/dist/{geneVariant-OIKEV4JM.js.map → geneVariant-REELFRRA.js.map} +0 -0
  731. /package/dist/{geneVariant.integration.spec-T6BINPIN.js.map → geneVariant.integration.spec-GNXUGDKL.js.map} +0 -0
  732. /package/dist/{genefusion.ui-NLMW5XMI.js.map → genefusion.ui-WO5EPJDS.js.map} +0 -0
  733. /package/dist/{genomeBrowser.spec-DRYIFJLY.js.map → genomeBrowser.spec-VPAKTUJF.js.map} +0 -0
  734. /package/dist/{grin2-LGI535FF.js.map → grin2-GYHUYNEF.js.map} +0 -0
  735. /package/dist/{gsea-Z7DSDFOA.js.map → gsea-PE5WZ5ZI.js.map} +0 -0
  736. /package/dist/{hierCluster-HC2B5XRR.js.map → hierCluster-FH6YJHRT.js.map} +0 -0
  737. /package/dist/{hierCluster-PLHVN5S3.js.map → hierCluster-IFM5I5QN.js.map} +0 -0
  738. /package/dist/{hierCluster.config-E3DIJWL5.js.map → hierCluster.config-M57ZIWMB.js.map} +0 -0
  739. /package/dist/{hierCluster.integration.spec-OQLPUQG4.js.map → hierCluster.integration.spec-Z64RL7MC.js.map} +0 -0
  740. /package/dist/{hierCluster.interactivity-LRNPDTEH.js.map → hierCluster.interactivity-CDBAJXOY.js.map} +0 -0
  741. /package/dist/{importPlot-M5HGLHRO.js.map → importPlot-OWKXSK77.js.map} +0 -0
  742. /package/dist/{isoformExpression-PADLHHR5.js.map → isoformExpression-66XLJG73.js.map} +0 -0
  743. /package/dist/{isoformExpression.unit.spec-5BPAL4OS.js.map → isoformExpression.unit.spec-QJX2IRHL.js.map} +0 -0
  744. /package/dist/{launch.adhoc-JH6ZZFDB.js.map → launch.adhoc-JCWID253.js.map} +0 -0
  745. /package/dist/{leftlabel.sample-NS2TBANH.js.map → leftlabel.sample-5NZ6VQDN.js.map} +0 -0
  746. /package/dist/{maf-NOHIKTUP.js.map → maf-HIS2FQXK.js.map} +0 -0
  747. /package/dist/{maftimeline-WGWE52EF.js.map → maftimeline-UPJJQE23.js.map} +0 -0
  748. /package/dist/{matrix-B6NPQFFF.js.map → matrix-62CN2KXR.js.map} +0 -0
  749. /package/dist/{matrix-UAKRJL5A.js.map → matrix-SPEDEB3J.js.map} +0 -0
  750. /package/dist/{matrix.config-KJNJXPJJ.js.map → matrix.config-XB6WFXUY.js.map} +0 -0
  751. /package/dist/{matrix.integration.spec-VAXIR3E6.js.map → matrix.integration.spec-NN7OR5XM.js.map} +0 -0
  752. /package/dist/{matrix.interactivity-H4MCMJXU.js.map → matrix.interactivity-OWMHUJCX.js.map} +0 -0
  753. /package/dist/{matrix.layout-RFKQJM5D.js.map → matrix.layout-27QB6MWK.js.map} +0 -0
  754. /package/dist/{matrix.renderers-7JJIC6VC.js.map → matrix.renderers-EPXES5E4.js.map} +0 -0
  755. /package/dist/{matrix.sort.unit.spec-MQQVWWNT.js.map → matrix.sort.unit.spec-NBT5FSZ6.js.map} +0 -0
  756. /package/dist/{matrix.sorterUi.unit.spec-LG4TI7VF.js.map → matrix.sorterUi.unit.spec-QKGUE4RR.js.map} +0 -0
  757. /package/dist/{mavb-EIZHS6F4.js.map → mavb-M7Y74OWQ.js.map} +0 -0
  758. /package/dist/{mds.fimo-XVC6MI7W.js.map → mds.fimo-WCDFA7HG.js.map} +0 -0
  759. /package/dist/{mds.samplescatterplot-PRR4TKYI.js.map → mds.samplescatterplot-ZDHQ3MKJ.js.map} +0 -0
  760. /package/dist/{mds.survivalplot-3OG4Y2B6.js.map → mds.survivalplot-R74DL2RA.js.map} +0 -0
  761. /package/dist/{oncomatrix-SO6S6IIB.js.map → oncomatrix-MOITJBII.js.map} +0 -0
  762. /package/dist/{oncomatrix.spec-VXTF44K5.js.map → oncomatrix.spec-NALJBPYS.js.map} +0 -0
  763. /package/dist/{plot.2dvaf-JW5OJJXV.js.map → plot.2dvaf-IE2EZEFA.js.map} +0 -0
  764. /package/dist/{plot.app-T3GVCFQ3.js.map → plot.app-HTW6TZEH.js.map} +0 -0
  765. /package/dist/{plot.barplot-2TYP6DPI.js.map → plot.barplot-NCQEPEOY.js.map} +0 -0
  766. /package/dist/{plot.boxplot-HOQHM7JF.js.map → plot.boxplot-WNKVBVJJ.js.map} +0 -0
  767. /package/dist/{plot.brainImaging-5AI7BSD4.js.map → plot.brainImaging-2Z3TOO6J.js.map} +0 -0
  768. /package/dist/{plot.disco-HNNZHK5Z.js.map → plot.disco-4JAEIAYK.js.map} +0 -0
  769. /package/dist/{plot.dzi-4OQSO7SY.js.map → plot.dzi-ZGLOVJJN.js.map} +0 -0
  770. /package/dist/{plot.ssgq-VZTTGECT.js.map → plot.ssgq-IHUILM43.js.map} +0 -0
  771. /package/dist/{plot.vaf2cov-ASEELRDV.js.map → plot.vaf2cov-ZYCQMD27.js.map} +0 -0
  772. /package/dist/{plot.wsi-MDWYLU4R.js.map → plot.wsi-3GISVBDH.js.map} +0 -0
  773. /package/dist/{polar-QSY6JG4P.js.map → polar-4AUAZHBV.js.map} +0 -0
  774. /package/dist/{polar2-FD6656VD.js.map → polar2-SRD4WWXU.js.map} +0 -0
  775. /package/dist/{profile.spec-V7EQBXT2.js.map → profile.spec-TOITKBBZ.js.map} +0 -0
  776. /package/dist/{profileBarchart-EIKHZAPD.js.map → profileBarchart-Z4SYIYBE.js.map} +0 -0
  777. /package/dist/{profileForms-NGFRXPFF.js.map → profileForms-RA7XQ2QT.js.map} +0 -0
  778. /package/dist/{profilePlot-2UFKJ2OC.js.map → profilePlot-4BM3XZVK.js.map} +0 -0
  779. /package/dist/{profileRadar-B2R7OV5F.js.map → profileRadar-EYBESEPI.js.map} +0 -0
  780. /package/dist/{profileRadarFacility-ILC7POCI.js.map → profileRadarFacility-FZYTFM26.js.map} +0 -0
  781. /package/dist/{proteomeAbundance-OF27N347.js.map → proteomeAbundance-65R6M4YQ.js.map} +0 -0
  782. /package/dist/{qualitative-CSUO2WG5.js.map → qualitative-E7WL6DN4.js.map} +0 -0
  783. /package/dist/{radar2-L2HGCUYR.js.map → radar2-I6FN5SUX.js.map} +0 -0
  784. /package/dist/{radarFacility2-HXUUTRYO.js.map → radarFacility2-GVK7PT3V.js.map} +0 -0
  785. /package/dist/{regression-Y4NYGZSA.js.map → regression-TIR5D354.js.map} +0 -0
  786. /package/dist/{regression.inputs-RWFIJLNF.js.map → regression.inputs-2AMJCJ3L.js.map} +0 -0
  787. /package/dist/{regression.inputs.term-QIU5SHTN.js.map → regression.inputs.term-D6D2QEUB.js.map} +0 -0
  788. /package/dist/{regression.inputs.values.table-FM6QTSEV.js.map → regression.inputs.values.table-M3IPLGDJ.js.map} +0 -0
  789. /package/dist/{regression.integration.spec-YRKKU7HL.js.map → regression.integration.spec-ROUSXLMH.js.map} +0 -0
  790. /package/dist/{regression.results-YUDCHUZJ.js.map → regression.results-YD5S74YS.js.map} +0 -0
  791. /package/dist/{regression.spec-G4GIIV32.js.map → regression.spec-4OXBBTNO.js.map} +0 -0
  792. /package/dist/{report-2N4FBR4Q.js.map → report-ETNALKTY.js.map} +0 -0
  793. /package/dist/{sampleScatter.spec-UIUYO4WR.js.map → sampleScatter.spec-LECMFMI2.js.map} +0 -0
  794. /package/dist/{sampleView-TOK5Y5KU.js.map → sampleView-B5TM7JOW.js.map} +0 -0
  795. /package/dist/{samplelst-YW5ZS3GJ.js.map → samplelst-GFQCG4SS.js.map} +0 -0
  796. /package/dist/{samplematrix-447BHSO7.js.map → samplematrix-OMTNWCJK.js.map} +0 -0
  797. /package/dist/{sc-O2PL3FL2.js.map → sc-MIEEZBWG.js.map} +0 -0
  798. /package/dist/{scatter-4DXHOWVY.js.map → scatter-ETOZ722F.js.map} +0 -0
  799. /package/dist/{scatter.integration.spec-ZPTM3AGQ.js.map → scatter.integration.spec-TS4PNRLX.js.map} +0 -0
  800. /package/dist/{selectGenomeWithTklst-3RLZFW62.js.map → selectGenomeWithTklst-Y5QIM2JB.js.map} +0 -0
  801. /package/dist/{singleCellCellType-3LQJXS7H.js.map → singleCellCellType-HOJHZF5W.js.map} +0 -0
  802. /package/dist/{singleCellCellType.unit.spec-UJM72SP4.js.map → singleCellCellType.unit.spec-MH5V3RPX.js.map} +0 -0
  803. /package/dist/{singleCellGeneExpression-JOWJWPIQ.js.map → singleCellGeneExpression-YVQ5TIKN.js.map} +0 -0
  804. /package/dist/{singleCellGeneExpression.unit.spec-VY5CGRZH.js.map → singleCellGeneExpression.unit.spec-BMFFT5HO.js.map} +0 -0
  805. /package/dist/{singleCellPlot-IVLVKOO6.js.map → singleCellPlot-3YFUYA2Y.js.map} +0 -0
  806. /package/dist/{singlecell-VJJZJZF7.js.map → singlecell-FK5JETW5.js.map} +0 -0
  807. /package/dist/{singlecell-VQJ2252L.js.map → singlecell-RL7V7DIC.js.map} +0 -0
  808. /package/dist/{snp-ALMKZKL2.js.map → snp-FT7HB3XN.js.map} +0 -0
  809. /package/dist/{snp.unit.spec-GJQBAHGQ.js.map → snp.unit.spec-CLYVYPPG.js.map} +0 -0
  810. /package/dist/{snplocus-WCNCMFWZ.js.map → snplocus-M5SEQGAC.js.map} +0 -0
  811. /package/dist/{spliceevent.a53ss.diagram-4Q4JF4RX.js.map → spliceevent.a53ss.diagram-EJ5CTRCZ.js.map} +0 -0
  812. /package/dist/{spliceevent.exonskip.diagram-IOYOKELT.js.map → spliceevent.exonskip.diagram-ETXMOHZ3.js.map} +0 -0
  813. /package/dist/{spliceevent.noeventdiagram-77ZCOHSF.js.map → spliceevent.noeventdiagram-S2O4ZM2Z.js.map} +0 -0
  814. /package/dist/{ssGSEA-QTXXIN4K.js.map → ssGSEA-6PMDQDTJ.js.map} +0 -0
  815. /package/dist/{ssGSEA.unit.spec-LQESATT3.js.map → ssGSEA.unit.spec-JD5T4R2N.js.map} +0 -0
  816. /package/dist/{summarizeCnvGeneexp-YKUQGDQF.js.map → summarizeCnvGeneexp-GCHNKTIU.js.map} +0 -0
  817. /package/dist/{summarizeGeneexpSurvival-ARGG5VDC.js.map → summarizeGeneexpSurvival-R2RYQZ3M.js.map} +0 -0
  818. /package/dist/{summarizeMutationCnv-FMZYT3EC.js.map → summarizeMutationCnv-LB2BIYRL.js.map} +0 -0
  819. /package/dist/{summarizeMutationDiagnosis-ZX7I46SC.js.map → summarizeMutationDiagnosis-3JUY75LM.js.map} +0 -0
  820. /package/dist/{summarizeMutationSurvival-RCFMTT43.js.map → summarizeMutationSurvival-VYLRWTCF.js.map} +0 -0
  821. /package/dist/{summary-QLL5YVI2.js.map → summary-2QQ72IEQ.js.map} +0 -0
  822. /package/dist/{summary.integration.spec-DHY6XCEJ.js.map → summary.integration.spec-XXU362UQ.js.map} +0 -0
  823. /package/dist/{summaryInput-ANCUQGIB.js.map → summaryInput-OZHZG3PV.js.map} +0 -0
  824. /package/dist/{sunburst-RDNFBOCK.js.map → sunburst-CMCJCANX.js.map} +0 -0
  825. /package/dist/{survival-BG7QV52L.js.map → survival-EBD4DHO7.js.map} +0 -0
  826. /package/dist/{survival-WSN36OQE.js.map → survival-ISLRRPKU.js.map} +0 -0
  827. /package/dist/{survival.integration.spec-37KAJ5IK.js.map → survival.integration.spec-FS7V4OXK.js.map} +0 -0
  828. /package/dist/{svgraph-A5WGHW4S.js.map → svgraph-KGLNUM7W.js.map} +0 -0
  829. /package/dist/{svmr-CYRHHWZF.js.map → svmr-NXZ5VLKH.js.map} +0 -0
  830. /package/dist/{table-VHO7E5PI.js.map → table-ISOQOI6C.js.map} +0 -0
  831. /package/dist/{termCollection-HSVSH7TJ.js.map → termCollection-7ZSU3I45.js.map} +0 -0
  832. /package/dist/{termCollection-E4Q6GLXN.js.map → termCollection-V2A5BDQB.js.map} +0 -0
  833. /package/dist/{termCollection.unit.spec-ZCE3TUMS.js.map → termCollection.unit.spec-6VLCJGOU.js.map} +0 -0
  834. /package/dist/{tk-GPRHDN4K.js.map → tk-6AB6XYIE.js.map} +0 -0
  835. /package/dist/{tp.ui-LTUA3FSL.js.map → tp.ui-2O4UW5N7.js.map} +0 -0
  836. /package/dist/{tvs.dt-G43PAAKD.js.map → tvs.dt-CY6TOQVB.js.map} +0 -0
  837. /package/dist/{tvs.dtcnv.categorical-UHDS2TGZ.js.map → tvs.dtcnv.categorical-AYQ432TW.js.map} +0 -0
  838. /package/dist/{tvs.dtcnv.continuous-ZNGYQKTD.js.map → tvs.dtcnv.continuous-XVDL6SG3.js.map} +0 -0
  839. /package/dist/{tvs.dtfusion-JBEEUDUS.js.map → tvs.dtfusion-V3AV7A6Q.js.map} +0 -0
  840. /package/dist/{tvs.dtsnvindel-XXN5Q7RN.js.map → tvs.dtsnvindel-XM3NXIT7.js.map} +0 -0
  841. /package/dist/{tvs.dtsv-MO6L7HHV.js.map → tvs.dtsv-Z2GYRINW.js.map} +0 -0
  842. /package/dist/{tvs.samplelst-HKY6UUJM.js.map → tvs.samplelst-C4FB63G7.js.map} +0 -0
  843. /package/dist/{tvs.termCollection-TY6FPL25.js.map → tvs.termCollection-VHTSC2ST.js.map} +0 -0
  844. /package/dist/{violin-YHE3WSGR.js.map → violin-KGGTUQFF.js.map} +0 -0
  845. /package/dist/{violin.integration.spec-F2UD7BHC.js.map → violin.integration.spec-5EW6PLJX.js.map} +0 -0
  846. /package/dist/{violin.interactivity-LVDTDEPQ.js.map → violin.interactivity-RI4RURGO.js.map} +0 -0
  847. /package/dist/{violin.renderer-IIEIUGRI.js.map → violin.renderer-EWU2IFZE.js.map} +0 -0
  848. /package/dist/{vocabulary-WQRYXBRO.js.map → vocabulary-VLIGC7OP.js.map} +0 -0
@@ -0,0 +1,2248 @@
1
+ import {
2
+ blocklazyload
3
+ } from "./chunk-ZLOQXO5K.js";
4
+ import {
5
+ hicParseFile
6
+ } from "./chunk-IIRU2JLK.js";
7
+ import {
8
+ AppBase,
9
+ ColorScale,
10
+ axisstyle,
11
+ first_genetrack_tolist,
12
+ font,
13
+ newpane,
14
+ showErrorsWithCounter,
15
+ tkt
16
+ } from "./chunk-2YC6ZVE4.js";
17
+ import "./chunk-HJ6L54YS.js";
18
+ import "./chunk-RYCOJY7M.js";
19
+ import {
20
+ Menu
21
+ } from "./chunk-HYOEWQ5P.js";
22
+ import "./chunk-FN5XPUPH.js";
23
+ import "./chunk-G6O3URDN.js";
24
+ import "./chunk-LSEFWW72.js";
25
+ import "./chunk-KWM6B3NL.js";
26
+ import "./chunk-UCLS2SVB.js";
27
+ import {
28
+ dofetch3
29
+ } from "./chunk-I55NLUCQ.js";
30
+ import {
31
+ StoreBase,
32
+ getAppInit,
33
+ getCompInit,
34
+ getStoreInit
35
+ } from "./chunk-MVTCBVSX.js";
36
+ import "./chunk-2K5DSRBJ.js";
37
+ import "./chunk-X4NI4JLQ.js";
38
+ import "./chunk-L4QG7XZE.js";
39
+ import "./chunk-DQC5FFGV.js";
40
+ import "./chunk-UWYCEYML.js";
41
+ import "./chunk-7UHUOC6F.js";
42
+ import "./chunk-ZYY54HBU.js";
43
+ import "./chunk-EGWVYY7K.js";
44
+ import {
45
+ bplen
46
+ } from "./chunk-AMYSEKPF.js";
47
+ import "./chunk-TV74I3Y5.js";
48
+ import "./chunk-KSGA62R2.js";
49
+ import {
50
+ axisBottom,
51
+ axisRight
52
+ } from "./chunk-LOZEKOES.js";
53
+ import "./chunk-TOU7EVFQ.js";
54
+ import {
55
+ format,
56
+ linear
57
+ } from "./chunk-OAWQ6LOO.js";
58
+ import "./chunk-KYBIQBXE.js";
59
+ import {
60
+ pointer_default,
61
+ select_default
62
+ } from "./chunk-I6Y4O3RR.js";
63
+ import "./chunk-OMR2DT66.js";
64
+ import "./chunk-HFNDKYVF.js";
65
+
66
+ // tracks/hic/HicStore.ts
67
+ var HicStore = class _HicStore extends StoreBase {
68
+ constructor(opts) {
69
+ super(opts);
70
+ this.views = ["genome", "chrpair", "detail", "horizontal"];
71
+ this.type = _HicStore.type;
72
+ this.defaultState = {
73
+ defaultNmeth: "NONE",
74
+ loading: true,
75
+ minBinNum_bp: 200,
76
+ minFragSpan: 200,
77
+ initialBinNum: 20,
78
+ settings: {
79
+ widthHeightPx: 800
80
+ }
81
+ };
82
+ }
83
+ static {
84
+ this.type = "store";
85
+ }
86
+ init() {
87
+ this.state = Object.assign({}, this.defaultState, this.state);
88
+ }
89
+ };
90
+ var hicStoreInit = getStoreInit(HicStore);
91
+ HicStore.prototype.actions = {
92
+ view_create(action) {
93
+ if (!action.view) throw Error("view_create: missing view");
94
+ if (!this.views.some((v) => v == action.view)) throw Error(`view_create: unknown view = ${action.view}`);
95
+ this.state.currView = action.view;
96
+ const opts = Object.assign(this.state, action.config);
97
+ this.state = opts;
98
+ },
99
+ view_update(action) {
100
+ if (action.view) {
101
+ if (!this.views.some((v) => v == action.view)) throw Error(`view_update: unknown view = ${action.view}`);
102
+ const opts = Object.assign(this.state[action.view], action.config);
103
+ this.state[action.view] = opts;
104
+ } else {
105
+ const opts = Object.assign(this.state, action.config);
106
+ this.state = opts;
107
+ }
108
+ },
109
+ loading_active(action) {
110
+ this.state.loading = action.active;
111
+ }
112
+ };
113
+
114
+ // tracks/hic/dom/LoadingOverlay.ts
115
+ var LoadingOverlay = class _LoadingOverlay {
116
+ constructor(opts) {
117
+ this.hasStatePreMain = true;
118
+ this.type = _LoadingOverlay.type;
119
+ this.app = opts.app;
120
+ this.loadingDiv = opts.loadingDiv;
121
+ }
122
+ static {
123
+ this.type = "loadingOverlay";
124
+ }
125
+ reactsTo(action) {
126
+ if (action.type.startsWith("loading")) return true;
127
+ else return false;
128
+ }
129
+ getState(appState) {
130
+ return appState;
131
+ }
132
+ init() {
133
+ this.loadingDiv.append("div").attr("class", "sjpp-spinner").style("display", "");
134
+ }
135
+ main(appState) {
136
+ const loading = this.app.getState(appState).loading;
137
+ this.loadingDiv.style("display", loading ? "" : "none");
138
+ }
139
+ };
140
+ var loadingInit = getCompInit(LoadingOverlay);
141
+
142
+ // tracks/hic/dom/ColorizeElement.ts
143
+ var ColorizeElement = class {
144
+ colorizeElement(xCoord, yCoord, v, obj, width, height, bpMinV, bpMaxV, currView) {
145
+ if (v >= 0) {
146
+ const p = v >= bpMaxV ? 0 : v <= bpMinV ? 255 : Math.floor(255 * (bpMaxV - v) / bpMaxV);
147
+ const positiveFill = `rgb(255, ${p}, ${p})`;
148
+ if (currView === "genome") {
149
+ obj.ctx.fillStyle = positiveFill;
150
+ obj.ctx2.fillStyle = positiveFill;
151
+ } else {
152
+ obj.fillStyle = positiveFill;
153
+ }
154
+ } else {
155
+ const p = v <= bpMinV ? 255 : Math.floor(255 * (bpMaxV + v) / bpMaxV);
156
+ const negativeFill = `rgb(${p}, ${p}, 255)`;
157
+ if (currView === "genome") {
158
+ obj.ctx.fillStyle = negativeFill;
159
+ obj.ctx2.fillStyle = negativeFill;
160
+ } else {
161
+ obj.fillStyle = negativeFill;
162
+ }
163
+ }
164
+ if (currView === "genome") {
165
+ obj.ctx.fillRect(yCoord, xCoord, width, height);
166
+ obj.ctx2.fillRect(xCoord, yCoord, width, height);
167
+ } else {
168
+ obj.fillRect(xCoord, yCoord, width, height);
169
+ }
170
+ }
171
+ };
172
+
173
+ // tracks/hic/data/Resolution.ts
174
+ var Resolution = class {
175
+ constructor(error) {
176
+ this.error = error;
177
+ }
178
+ getResolution(state, hic) {
179
+ if (state.currView == "genome") return hic["bpresolution"][0];
180
+ if (state.currView == "chrpair") {
181
+ const resolution = this.getChrPairResolution(hic, state.x, state.y, state.minBinNum_bp);
182
+ return resolution;
183
+ } else if (state.currView == "detail") {
184
+ const maxBpWidth = Math.max(state.x.stop - state.x.start, state.y.stop - state.y.start);
185
+ let resolution = this.findResFromArray(maxBpWidth, state.minBinNum_bp, hic.bpresolution);
186
+ if (resolution == null && !hic.enzyme) {
187
+ resolution = hic.bpresolution[hic.bpresolution.length - 1];
188
+ }
189
+ return resolution;
190
+ } else {
191
+ this.error(`Unknown view: ${state.currView}`);
192
+ throw `Unknown view: ${state.currView}`;
193
+ }
194
+ }
195
+ getChrPairResolution(hic, x, y, minBinNum_bp) {
196
+ const chrxlen = hic.genome.chrlookup[x.chr.toUpperCase()].len;
197
+ const chrylen = hic.genome.chrlookup[y.chr.toUpperCase()].len;
198
+ const maxchrlen = Math.max(chrxlen, chrylen);
199
+ const resolution = this.findResFromArray(maxchrlen, minBinNum_bp, hic.bpresolution);
200
+ if (resolution == null) {
201
+ this.error(`No suitable resolution for ${x.chr}-${y.chr} pair.`);
202
+ return;
203
+ }
204
+ return resolution;
205
+ }
206
+ findResFromArray(max, defaultValue, resolutionArray, returnNum) {
207
+ let resolution = null;
208
+ for (const res of resolutionArray) {
209
+ if (max / res > defaultValue) {
210
+ resolution = res;
211
+ break;
212
+ }
213
+ }
214
+ if (returnNum && resolution == null) {
215
+ resolution = resolutionArray[resolutionArray.length - 1];
216
+ }
217
+ return resolution;
218
+ }
219
+ getDefaultViewSpan(hic, x, y, initialBinNum, minBinNum_bp) {
220
+ const chrpairResolution = this.getChrPairResolution(hic, x, y, minBinNum_bp);
221
+ if (!chrpairResolution) return;
222
+ return chrpairResolution * initialBinNum;
223
+ }
224
+ };
225
+
226
+ // tracks/hic/data/Positions.ts
227
+ var Positions = class {
228
+ constructor(error, minBinNum_bp) {
229
+ this.error = error;
230
+ this.resolution = new Resolution(this.error);
231
+ this.minBinNum_bp = minBinNum_bp;
232
+ }
233
+ /**
234
+ *
235
+ * @param x x coordinate of pointer
236
+ * @param y y coordinate of pointer
237
+ * @param binpx
238
+ * @param chrx x chr from state
239
+ * @param chry y chr from state
240
+ * @param hic
241
+ * @param initialBinNum Set in the state
242
+ * @returns
243
+ */
244
+ setPosition(x, y, binpx, chrx, chry, hic, initialBinNum) {
245
+ const resolution = this.resolution.getChrPairResolution(hic, chrx, chry, this.minBinNum_bp);
246
+ const viewrangebpw = resolution * initialBinNum;
247
+ let coordx = Math.max(1, Math.floor(x * resolution / binpx) - viewrangebpw / 2);
248
+ let coordy = Math.max(1, Math.floor(y * resolution / binpx) - viewrangebpw / 2);
249
+ {
250
+ const lenx = hic.genome.chrlookup[chrx.chr.toUpperCase()].len;
251
+ if (coordx + viewrangebpw >= lenx) {
252
+ coordx = lenx - viewrangebpw;
253
+ }
254
+ const leny = hic.genome.chrlookup[chry.chr.toUpperCase()].len;
255
+ if (coordy + viewrangebpw > leny) {
256
+ coordy = leny - viewrangebpw;
257
+ }
258
+ }
259
+ const xObj = {
260
+ chr: chrx.chr,
261
+ start: coordx,
262
+ stop: coordx + viewrangebpw
263
+ };
264
+ const yObj = {
265
+ chr: chry.chr,
266
+ start: coordy,
267
+ stop: coordy + viewrangebpw
268
+ };
269
+ return [xObj, yObj];
270
+ }
271
+ };
272
+
273
+ // tracks/hic/data/GridElementsFormattedData.ts
274
+ var GridElementsFormattedData = class {
275
+ /**
276
+ * Format the data for the grid elements.
277
+ * @param items The data to format.
278
+ * @param binpx The bin size in pixels.
279
+ * @param resolution The resolution.
280
+ * @param isFirstChrX Whether the first chromosome is X. Used for chrpair view.
281
+ * @param isIntraChr Whether the data is intra-chromosomal. Used for chrpair view
282
+ * @returns The formatted data.
283
+ */
284
+ formatData(view, items, binpx, resolution, isFirstChrX, isIntraChr) {
285
+ const formattedData = [];
286
+ for (const [xCoord, yCoord, value] of items) {
287
+ const xPx = Math.floor(xCoord / resolution) * binpx;
288
+ const yPx = Math.floor(yCoord / resolution) * binpx;
289
+ if (view == "genome") {
290
+ formattedData.push([xPx, yPx, value]);
291
+ }
292
+ if (view == "chrpair") {
293
+ const x = isFirstChrX ? xPx : yPx;
294
+ const y = isFirstChrX ? yPx : xPx;
295
+ formattedData.push([x, y, value]);
296
+ if (isIntraChr) {
297
+ formattedData.push([y, x, value]);
298
+ }
299
+ }
300
+ }
301
+ return formattedData;
302
+ }
303
+ };
304
+
305
+ // tracks/hic/data/FirstChrX.ts
306
+ var FirstChrX = class {
307
+ constructor(chrorder, chrx, chry) {
308
+ this.chrorder = chrorder;
309
+ this.chrx = chrx;
310
+ this.chry = chry;
311
+ }
312
+ isFirstX() {
313
+ if (this.chrx == this.chry) return true;
314
+ return this.chrorder.indexOf(this.chrx) < this.chrorder.indexOf(this.chry);
315
+ }
316
+ };
317
+
318
+ // tracks/hic/chrpair/ChrPairView.ts
319
+ var ChrPairView = class {
320
+ constructor(opts) {
321
+ this.binpx = 1;
322
+ /** padding on the ends of x/y chr coordinate axes */
323
+ this.axispad = 10;
324
+ this.axisLabelFontSize = 15;
325
+ this.calcResolution = null;
326
+ this.data = [];
327
+ this.app = opts.app;
328
+ this.hic = opts.hic;
329
+ this.plotDiv = opts.plotDiv;
330
+ this.items = opts.items;
331
+ this.parent = opts.parent;
332
+ this.chrxlen = this.hic.genome.chrlookup[this.parent("state").x.chr.toUpperCase()].len;
333
+ this.chrylen = this.hic.genome.chrlookup[this.parent("state").y.chr.toUpperCase()].len;
334
+ this.maxchrlen = Math.max(this.chrxlen, this.chrylen);
335
+ this.colorizeElement = new ColorizeElement();
336
+ this.positions = new Positions(opts.error, this.parent("state").minBinNum_bp);
337
+ this.formattedData = new GridElementsFormattedData();
338
+ }
339
+ setDefaultBinpx() {
340
+ if (this.calcResolution == null) return;
341
+ while (this.binpx * this.maxchrlen / this.calcResolution < 600) {
342
+ this.binpx++;
343
+ }
344
+ }
345
+ renderAxes() {
346
+ if (this.calcResolution == null) return;
347
+ const svgY = this.plotDiv.yAxis.append("svg");
348
+ const h = Math.ceil(this.chrylen / this.calcResolution) * this.binpx;
349
+ svgY.attr("width", 100).attr("height", this.axispad * 2 + h);
350
+ svgY.append("g").attr("data-testid", "sjpp-chrpair-svg-y").attr("transform", "translate(80," + (this.axispad + h / 2) + ")").append("text").text(this.parent("state").y.chr).attr("text-anchor", "middle").attr("font-size", this.axisLabelFontSize).attr("font-family", font).attr("dominant-baseline", "central").attr("transform", "rotate(90)");
351
+ axisstyle({
352
+ axis: svgY.append("g").attr("transform", `translate(1, ${this.axispad})`).call(axisRight(linear().domain([0, this.chrylen]).range([0, h])).tickFormat(format(".2s"))),
353
+ showline: true
354
+ });
355
+ const svgX = this.plotDiv.xAxis.append("svg").style("margin-top", "-4px");
356
+ const w = Math.ceil(this.chrxlen / this.calcResolution) * this.binpx;
357
+ svgX.attr("height", 100).attr("width", this.axispad * 2 + w);
358
+ svgX.append("text").attr("data-testid", "sjpp-chrpair-svg-x").text(this.parent("state").x.chr).attr("font-size", this.axisLabelFontSize).attr("font-family", font).attr("x", this.axispad + w / 2).attr("text-anchor", "middle").attr("y", 60);
359
+ axisstyle({
360
+ axis: svgX.append("g").attr("transform", "translate(" + this.axispad + ",1)").call(axisBottom(linear().domain([0, this.chrxlen]).range([0, w])).tickFormat(format(".2s"))),
361
+ showline: true
362
+ });
363
+ }
364
+ renderCanvas() {
365
+ const initDetailView = this.initDetailView.bind(this);
366
+ this.canvas = this.plotDiv.plot.append("canvas").attr("data-testid", "sjpp-chrpair-canvas").style("margin", this.axispad + "px").on("click", async function(event) {
367
+ const [x, y] = pointer_default(event, this);
368
+ initDetailView(x, y);
369
+ }).node();
370
+ this.canvas.width = Math.ceil(this.chrxlen / this.calcResolution) * this.binpx;
371
+ this.canvas.height = Math.ceil(this.chrylen / this.calcResolution) * this.binpx;
372
+ this.ctx = this.canvas.getContext("2d");
373
+ }
374
+ initDetailView(x, y) {
375
+ const [xObj, yObj] = this.positions.setPosition(
376
+ x,
377
+ y,
378
+ this.binpx,
379
+ this.parent("state").x,
380
+ this.parent("state").y,
381
+ this.hic,
382
+ this.parent("state").initialBinNum
383
+ );
384
+ this.app.dispatch({
385
+ type: "view_create",
386
+ view: "detail",
387
+ config: {
388
+ x: xObj,
389
+ y: yObj
390
+ }
391
+ });
392
+ }
393
+ render() {
394
+ this.calcResolution = this.parent("calcResolution");
395
+ this.setDefaultBinpx();
396
+ this.renderAxes();
397
+ this.renderCanvas();
398
+ this.update(this.items);
399
+ }
400
+ update(items) {
401
+ this.items = items;
402
+ const firstisx = new FirstChrX(this.hic.chrorder, this.parent("state").x.chr, this.parent("state").y.chr).isFirstX();
403
+ const isintrachr = this.parent("state").x.chr === this.parent("state").y.chr;
404
+ this.data = this.formattedData.formatData(
405
+ "chrpair",
406
+ items.items,
407
+ this.binpx,
408
+ this.calcResolution,
409
+ firstisx,
410
+ isintrachr
411
+ );
412
+ this.ctx.clearRect(0, 0, this.canvas.width, this.canvas.height);
413
+ for (const [x, y, v] of this.data) {
414
+ this.colorizeElement.colorizeElement(
415
+ x,
416
+ y,
417
+ v,
418
+ this.ctx,
419
+ this.binpx,
420
+ //width
421
+ this.binpx,
422
+ //height
423
+ this.parent("min"),
424
+ this.parent("max"),
425
+ "chrpair"
426
+ );
427
+ }
428
+ this.app.dispatch({ type: "loading_active", active: false });
429
+ }
430
+ };
431
+
432
+ // tracks/hic/horizontal/HorizontalView.ts
433
+ var HorizontalView = class {
434
+ constructor(opts) {
435
+ /** Defaults*/
436
+ this.maxPercentage = 5;
437
+ this.subPanelPxWidth = 600;
438
+ this.borderColor = "rgba(200,0,0,.1)";
439
+ this.app = opts.app;
440
+ this.hic = opts.hic;
441
+ this.plotDiv = opts.plotDiv;
442
+ this.items = opts.items;
443
+ this.parent = opts.parent;
444
+ }
445
+ setRunPpTracks() {
446
+ const tracks = [
447
+ {
448
+ type: "hicstraw",
449
+ file: this.hic.file,
450
+ url: this.hic.url,
451
+ name: this.hic.name,
452
+ enzyme: this.hic.enzyme,
453
+ maxpercentage: this.maxPercentage,
454
+ pyramindup: 1
455
+ }
456
+ ];
457
+ if (this.hic.tklst) {
458
+ for (const t of this.hic.tklst) {
459
+ tracks.push(t);
460
+ }
461
+ }
462
+ first_genetrack_tolist(this.hic.genome, tracks);
463
+ return tracks;
464
+ }
465
+ setRunPpArgs(tracks) {
466
+ const arg = {
467
+ holder: this.plotDiv.plot,
468
+ hostURL: this.hic.hostURL,
469
+ jwt: this.hic.jwt,
470
+ genome: this.hic.genome,
471
+ nobox: 1,
472
+ tklst: tracks
473
+ };
474
+ const state = this.parent("state");
475
+ if (state.x.chr == state.y.chr && Math.max(state.x.start, state.y.start) < Math.min(state.x.stop, state.y.stop)) {
476
+ arg["chr"] = state.x.chr;
477
+ arg["start"] = Math.min(state.x.start, state.y.start);
478
+ arg["stop"] = Math.max(state.x.stop, state.y.stop);
479
+ } else {
480
+ arg["chr"] = state.x.chr;
481
+ arg["start"] = state.x.start;
482
+ arg["stop"] = state.x.stop;
483
+ arg["width"] = this.subPanelPxWidth;
484
+ arg["subpanels"] = [
485
+ {
486
+ chr: state.y.chr,
487
+ start: state.y.start,
488
+ stop: state.y.stop,
489
+ width: this.subPanelPxWidth,
490
+ leftpad: 10,
491
+ leftborder: this.borderColor
492
+ }
493
+ ];
494
+ }
495
+ return arg;
496
+ }
497
+ render() {
498
+ const tracks = this.setRunPpTracks();
499
+ const arg = this.setRunPpArgs(tracks);
500
+ blocklazyload(arg);
501
+ }
502
+ // update() {
503
+ // //Not required.
504
+ // //If controls are added back. Implement changes here.
505
+ // }
506
+ };
507
+
508
+ // tracks/hic/detail/DetailBlock.ts
509
+ var DetailBlock = class {
510
+ constructor(app, hic, blockwidth, bbmargin, holder, isYblock) {
511
+ /** Defaults */
512
+ this.leftheadw = 20;
513
+ this.rightheadw = 40;
514
+ this.lpad = 1;
515
+ this.rpad = 1;
516
+ this.firstRender = true;
517
+ this.app = app;
518
+ this.hic = hic;
519
+ this.width = blockwidth;
520
+ this.bbmargin = bbmargin;
521
+ this.holder = holder;
522
+ this.isYblock = isYblock;
523
+ this.bbw = this.leftheadw + this.lpad + this.width + this.rpad + this.rightheadw + 2 * this.bbmargin;
524
+ this.defaultLeft = this.bbmargin + this.leftheadw + this.lpad;
525
+ this.defaultTop = this.bbmargin + this.rightheadw + this.rpad;
526
+ }
527
+ setArgs(chrObj) {
528
+ const runPpArgs = {
529
+ hostURL: this.hic.hostURL,
530
+ genome: this.hic.genome,
531
+ holder: this.holder,
532
+ noresize: true,
533
+ nobox: true,
534
+ butrowbottom: true,
535
+ style: {
536
+ margin: `${this.bbmargin}px`
537
+ },
538
+ width: this.width,
539
+ leftheadw: this.leftheadw,
540
+ chr: chrObj.chr,
541
+ start: chrObj.start,
542
+ stop: chrObj.stop,
543
+ rightheadw: this.rightheadw,
544
+ tklst: [],
545
+ rotated: this.isYblock,
546
+ showreverse: this.isYblock
547
+ };
548
+ first_genetrack_tolist(this.hic.genome, runPpArgs.tklst);
549
+ return runPpArgs;
550
+ }
551
+ setMethods(canvasHolder, canvas, sheath) {
552
+ const runPpMethods = {
553
+ onloadalltk_always: () => {
554
+ this.onload(canvasHolder, canvas, sheath);
555
+ },
556
+ onpanning: (xoff) => this.onpanning(xoff, canvas)
557
+ };
558
+ if (this.isYblock) {
559
+ runPpMethods["onsetheight"] = (bbh) => {
560
+ this.holder.transition().style("left", `${bbh + this.bbmargin + 30}px`);
561
+ };
562
+ }
563
+ return runPpMethods;
564
+ }
565
+ onload(canvasHolder, canvas, sheath) {
566
+ this.bbw = this.block.leftheadw + this.block.lpad + this.block.width + this.block.rpad + this.block.rightheadw + 2 * this.bbmargin;
567
+ if (this.isYblock) {
568
+ sheath.transition().style("height", `${this.bbw}px`);
569
+ canvasHolder.style("height", `${this.bbw}px`);
570
+ } else canvasHolder.style("width", `${this.bbw}px`);
571
+ if (this.isYblock) {
572
+ this.defaultTop = this.bbmargin + this.block.rightheadw + this.block.rpad;
573
+ canvas.style("top", `${this.defaultTop}px`);
574
+ } else {
575
+ this.defaultLeft = this.bbmargin + this.block.leftheadw + this.block.lpad;
576
+ canvas.style("left", `${this.defaultLeft}px`);
577
+ }
578
+ const config = {
579
+ [this.isYblock ? "y" : "x"]: {
580
+ chr: this.block.rglst[0].chr,
581
+ start: this.block.rglst[0].start,
582
+ stop: this.block.rglst[0].stop
583
+ }
584
+ };
585
+ if (this.firstRender == false) {
586
+ this.app.dispatch({
587
+ type: "view_update",
588
+ config
589
+ });
590
+ } else {
591
+ this.firstRender = false;
592
+ }
593
+ }
594
+ onpanning(xoff, canvas) {
595
+ if (!this.isYblock) canvas.style("left", `${xoff + this.defaultLeft}px`);
596
+ else canvas.style("top", `${-xoff + this.defaultTop}px`);
597
+ }
598
+ async loadBlock(chrObj, canvasHolder, canvas, sheath) {
599
+ const runPpArgs = this.setArgs(chrObj);
600
+ const runPpMethods = this.isYblock ? this.setMethods(canvasHolder, canvas, sheath) : this.setMethods(canvasHolder, canvas);
601
+ const args = Object.assign(runPpArgs, runPpMethods);
602
+ await blocklazyload(args).then(async (block) => {
603
+ this.block = block;
604
+ });
605
+ }
606
+ };
607
+
608
+ // tracks/hic/data/DetailDataFetcher.ts
609
+ var DetailDataFetcher = class {
610
+ constructor(errList) {
611
+ this.obj = {
612
+ rglst: []
613
+ };
614
+ this.errList = errList;
615
+ }
616
+ isFragData(hic, resolution) {
617
+ if (resolution != null) return;
618
+ if (!hic.enzyme) {
619
+ resolution = hic.bpresolution[hic.bpresolution.length - 1];
620
+ return;
621
+ }
622
+ }
623
+ formatFragArgs(enzymefile, chr) {
624
+ const arg = {
625
+ getdata: 1,
626
+ getBED: 1,
627
+ file: enzymefile,
628
+ rglst: [chr]
629
+ };
630
+ return arg;
631
+ }
632
+ /**
633
+ * @param arg Formated obj from either fn above
634
+ * @param errList
635
+ * @returns
636
+ */
637
+ async getBedData(arg) {
638
+ try {
639
+ return await dofetch3("tkbedj", { method: "POST", body: JSON.stringify(arg) });
640
+ } catch (e) {
641
+ this.errList.push(e.message || e);
642
+ if (e.stack) console.error(e.stack);
643
+ }
644
+ }
645
+ async getXFragData(hic, resolution, chrx) {
646
+ this.isFragData(hic, resolution);
647
+ if (!hic.enzymefile) return;
648
+ const reqArgs = this.formatFragArgs(hic.enzymefile, chrx);
649
+ return await this.getBedData(reqArgs);
650
+ }
651
+ async getYFragData(hic, chry) {
652
+ const reqArgs = this.formatFragArgs(hic.enzymefile, chry);
653
+ return await this.getBedData(reqArgs);
654
+ }
655
+ /**
656
+ * Separate request from data fetch
657
+ * Returns the additional fragment data
658
+ * @param fragCoords
659
+ */
660
+ async fetchData(hic, detailView, resolution, x, y, fragCoords) {
661
+ const fragStrawArgs = {
662
+ matrixType: detailView.matrixType,
663
+ file: hic.file,
664
+ url: hic.url,
665
+ pos1: this.determinePosition(hic, x, fragCoords?.x),
666
+ pos2: this.determinePosition(hic, y, fragCoords?.y),
667
+ nmeth: detailView.nmeth,
668
+ resolution
669
+ };
670
+ if (fragCoords) fragStrawArgs["isfrag"] = true;
671
+ try {
672
+ const data = dofetch3("hicdata?", {
673
+ method: "POST",
674
+ body: JSON.stringify(fragStrawArgs)
675
+ });
676
+ if (data.error) {
677
+ this.errList.push(data.error);
678
+ }
679
+ return data;
680
+ } catch (e) {
681
+ this.errList.push(e.message || e);
682
+ if (e.stack) console.error(e.stack);
683
+ }
684
+ }
685
+ determinePosition(hic, chr, fragCoord) {
686
+ if (fragCoord) {
687
+ return `${hic.nochr ? chr.chr.replace("chr", "") : chr.chr}:${fragCoord.start}:${fragCoord.stop}`;
688
+ } else {
689
+ return `${hic.nochr ? chr.chr.replace("chr", "") : chr.chr}:${chr.start}:${chr.stop}`;
690
+ }
691
+ }
692
+ };
693
+
694
+ // tracks/hic/data/ParseFragData.ts
695
+ var ParseFragData = class {
696
+ constructor(errLst, items) {
697
+ this.id2coord = /* @__PURE__ */ new Map();
698
+ this.min = null;
699
+ this.max = null;
700
+ this.items = [];
701
+ this.errLst = errLst;
702
+ for (const i of items) {
703
+ if (!i.rest || !i.rest[0]) {
704
+ this.errLst.push("items[].rest data problem");
705
+ }
706
+ const id = Number.parseInt(i.rest[0]);
707
+ if (Number.isNaN(id)) {
708
+ this.errLst.push(`${i.start}.${i.stop} invalid fragment id: ${i.rest[0]}`);
709
+ }
710
+ this.id2coord.set(id, [i.start, i.stop]);
711
+ if (this.min == null) {
712
+ this.min = id;
713
+ this.max = id;
714
+ } else {
715
+ this.min = Math.min(this.min, id);
716
+ this.max = Math.max(this.max, id);
717
+ }
718
+ }
719
+ }
720
+ };
721
+
722
+ // tracks/hic/data/DetailDataMapper.ts
723
+ var DetailDataMapper = class {
724
+ constructor(hic, errList, parent) {
725
+ this.frag = {
726
+ x: {},
727
+ y: {}
728
+ };
729
+ this.hic = hic;
730
+ this.errList = errList;
731
+ this.dataFetcher = new DetailDataFetcher(errList);
732
+ this.parent = parent;
733
+ }
734
+ async getFragData(chrx, chry) {
735
+ try {
736
+ const xFragData = await this.dataFetcher.getXFragData(this.hic, this.parent("calcResolution"), chrx);
737
+ if (xFragData) {
738
+ if (!xFragData.items) {
739
+ this.errList.push(`No fragment data returned for ${chrx.chr}:${chrx.start}-${chrx.stop}`);
740
+ return;
741
+ }
742
+ const xParse = new ParseFragData(this.errList, xFragData.items);
743
+ if (this.errList.length) return;
744
+ this.frag.x = {
745
+ id2coord: xParse.id2coord,
746
+ start: xParse.min,
747
+ stop: xParse.max
748
+ };
749
+ const yFragData = await this.dataFetcher.getYFragData(this.hic, chry);
750
+ if (this.errList.length) return;
751
+ if (yFragData) {
752
+ if (!yFragData.items) {
753
+ this.errList.push(`No fragment data returned for ${chry.chr}:${chry.start}-${chry.stop}`);
754
+ return;
755
+ }
756
+ const yParse = new ParseFragData(this.errList, yFragData.items);
757
+ if (this.errList.length) return;
758
+ this.frag.y = {
759
+ id2coord: /* @__PURE__ */ new Map(),
760
+ start: yParse.min,
761
+ stop: yParse.max
762
+ };
763
+ this.determineMap(yParse.id2coord, chrx, chry);
764
+ }
765
+ }
766
+ } catch (e) {
767
+ this.errList.push(e.message || e);
768
+ if (e.stack) console.error(e.stack);
769
+ }
770
+ }
771
+ determineMap(map, chrx, chry) {
772
+ if (chrx.chr == chry.chr) {
773
+ for (const [id, pos] of map) {
774
+ this.frag.x["id2coord"].set(id, pos);
775
+ }
776
+ this.frag.y["id2coord"] = this.frag.x["id2coord"];
777
+ } else {
778
+ this.frag.y["id2coord"] = map;
779
+ }
780
+ }
781
+ async getData(chrx, chry, fragCoords) {
782
+ return await this.dataFetcher.fetchData(
783
+ this.hic,
784
+ this.parent("state")["detail"],
785
+ this.parent("calcResolution"),
786
+ chrx,
787
+ chry,
788
+ fragCoords
789
+ );
790
+ }
791
+ };
792
+
793
+ // tracks/hic/data/DetailCoodinates.ts
794
+ var DetailCoordinates = class {
795
+ constructor(hic, errlist) {
796
+ this.hic = hic;
797
+ this.errlist = errlist;
798
+ }
799
+ getCoordinates(chrx, chry, data, resolution, widthHeightPx, fragData) {
800
+ const isFirstX = new FirstChrX(this.hic.chrorder, chrx.chr, chry.chr).isFirstX();
801
+ const isintrachr = chrx.chr == chry.chr;
802
+ const xpxbp = widthHeightPx / (chrx.stop - chrx.start);
803
+ const ypxbp = widthHeightPx / (chry.stop - chry.start);
804
+ const list = this.calculateCoordinates(isFirstX, isintrachr, xpxbp, ypxbp, resolution, chrx, chry, data, fragData);
805
+ return list;
806
+ }
807
+ calculateCoordinates(isFirstX, isintrachr, xpxbp, ypxbp, resolution, chrx, chry, data, fragData) {
808
+ const list = [];
809
+ for (const [xCoord, yCoord, value] of data.items) {
810
+ let coord1, coord2, span1, span2;
811
+ if (fragData) {
812
+ const idx_start = isFirstX ? xCoord : yCoord;
813
+ const idy_start = isFirstX ? yCoord : xCoord;
814
+ if (fragData.x.id2coord.has(idx_start)) {
815
+ const [a, b] = fragData.x.id2coord.get(idx_start);
816
+ coord1 = a;
817
+ span1 = b - a;
818
+ } else {
819
+ this.errlist.push(`[x id error] x: ${idx_start} y: ${idy_start}`);
820
+ continue;
821
+ }
822
+ {
823
+ const id_stop = idx_start + resolution;
824
+ if (fragData.x.id2coord.has(id_stop)) {
825
+ const ab = fragData.x.id2coord.get(id_stop);
826
+ span1 = ab[1] - coord1;
827
+ }
828
+ }
829
+ if (fragData.y.id2coord.has(idy_start)) {
830
+ const [a, b] = fragData.y.id2coord.get(idy_start);
831
+ coord2 = a;
832
+ span2 = b - a;
833
+ } else {
834
+ this.errlist.push(`[y id error] x: ${idx_start} y: ${idy_start}`);
835
+ continue;
836
+ }
837
+ {
838
+ const id_stop = idy_start + resolution;
839
+ if (fragData.y.id2coord.has(id_stop)) {
840
+ const ab = fragData.y.id2coord.get(id_stop);
841
+ span2 = ab[1] - coord2;
842
+ }
843
+ }
844
+ } else {
845
+ coord1 = isFirstX ? xCoord : yCoord;
846
+ coord2 = isFirstX ? yCoord : xCoord;
847
+ span1 = resolution;
848
+ span2 = resolution;
849
+ }
850
+ if (isintrachr) {
851
+ if (coord1 > chrx.start - span1 && coord1 < chrx.stop && coord2 > chry.start - span2 && coord2 < chry.stop) {
852
+ list.push([
853
+ Math.floor((coord1 - chrx.start) * xpxbp),
854
+ Math.floor((coord2 - chry.start) * ypxbp),
855
+ Math.ceil(span1 * xpxbp),
856
+ Math.ceil(span2 * ypxbp),
857
+ value
858
+ ]);
859
+ }
860
+ if (coord2 > chrx.start - span2 && coord2 < chrx.stop && coord1 > chry.start && coord1 < chry.stop) {
861
+ list.push([
862
+ Math.floor((coord2 - chrx.start) * xpxbp),
863
+ Math.floor((coord1 - chry.start) * ypxbp),
864
+ Math.ceil(span2 * xpxbp),
865
+ Math.ceil(span1 * ypxbp),
866
+ value
867
+ ]);
868
+ }
869
+ continue;
870
+ }
871
+ list.push([
872
+ Math.floor((coord1 - chrx.start) * xpxbp),
873
+ Math.floor((coord2 - chry.start) * ypxbp),
874
+ Math.ceil(span1 * xpxbp),
875
+ Math.ceil(span2 * ypxbp),
876
+ value
877
+ ]);
878
+ }
879
+ return list;
880
+ }
881
+ };
882
+
883
+ // tracks/hic/detail/DetailView.ts
884
+ var DetailView = class {
885
+ constructor(opts) {
886
+ this.calcResolution = null;
887
+ /** Defaults **/
888
+ this.binpx = 2;
889
+ this.bbmargin = 1;
890
+ this.app = opts.app;
891
+ this.hic = opts.hic;
892
+ this.plotDiv = opts.plotDiv;
893
+ this.sheath = opts.plotDiv.yAxis.append("div").style("position", "relative").style("width", "200px").style("height", "800px");
894
+ this.rotor = this.sheath.append("div").style("position", "absolute").style("bottom", "0px").style("transform", "rotate(-90deg)").style("transform-origin", "left bottom");
895
+ this.data = opts.data;
896
+ this.parent = opts.parent;
897
+ this.errList = this.parent("errList");
898
+ this.resolution = new Resolution(opts.error);
899
+ this.colorizeElement = new ColorizeElement();
900
+ this.viewRangeBpW = this.resolution.getDefaultViewSpan(
901
+ this.hic,
902
+ this.parent("state").x,
903
+ this.parent("state").y,
904
+ this.parent("state").initialBinNum,
905
+ this.parent("state").minBinNum_bp
906
+ );
907
+ this.dataMapper = new DetailDataMapper(this.hic, opts.error, opts.parent);
908
+ this.coordinates = new DetailCoordinates(this.hic, this.errList);
909
+ }
910
+ renderCanvas(blockwidth) {
911
+ this.canvasHolder = this.plotDiv.plot.append("div").style("position", "relative").style("width", `${this.xBlock.bbw}px`).style("height", `${this.yBlock.bbw}px`).style("overflow", "hidden");
912
+ this.canvas = this.canvasHolder.append("canvas").style("display", "block").style("position", "absolute").attr("data-testid", "sjpp-hic-detail-canvas").attr("width", blockwidth).attr("height", blockwidth).on("mousedown", (event) => {
913
+ const body = select_default(document.body);
914
+ const x = event.clientX;
915
+ const y = event.clientY;
916
+ const oldx = Number.parseInt(this.canvas.style("left"));
917
+ const oldy = Number.parseInt(this.canvas.style("top"));
918
+ body.on("mousemove", (event2) => {
919
+ const xoff = event2.clientX - x;
920
+ const yoff = event2.clientY - y;
921
+ this.xBlock.block.panning(xoff);
922
+ this.yBlock.block.panning(yoff);
923
+ this.canvas.style("left", `${oldx + xoff}px`).style("top", `${oldy + yoff}px`);
924
+ });
925
+ body.on("mouseup", (event2) => {
926
+ body.on("mousemove", null).on("mouseup", null);
927
+ const xoff = event2.clientX - x;
928
+ const yoff = event2.clientY - y;
929
+ this.xBlock.block.pannedby(xoff);
930
+ this.yBlock.block.pannedby(yoff);
931
+ });
932
+ });
933
+ }
934
+ async render() {
935
+ this.calcResolution = this.parent("calcResolution");
936
+ const state = this.parent("state");
937
+ this.xBlock = new DetailBlock(
938
+ this.app,
939
+ this.hic,
940
+ state.settings.widthHeightPx,
941
+ this.bbmargin,
942
+ this.plotDiv.xAxis,
943
+ false
944
+ );
945
+ this.yBlock = new DetailBlock(this.app, this.hic, state.settings.widthHeightPx, this.bbmargin, this.rotor, true);
946
+ this.renderCanvas(state.settings.widthHeightPx);
947
+ await this.xBlock.loadBlock(state.x, this.canvasHolder, this.canvas);
948
+ await this.yBlock.loadBlock(state.y, this.canvasHolder, this.canvas, this.sheath);
949
+ this.update(this.data);
950
+ }
951
+ async update(data) {
952
+ if (data.items.length == 0) {
953
+ this.app.dispatch({ type: "loading_active", active: false });
954
+ return;
955
+ }
956
+ this.data = data;
957
+ const state = this.parent("state");
958
+ const initialWidth = Number.parseInt(this.canvas.attr("width"));
959
+ const holderChange = Number.parseInt(this.canvasHolder.style("width")) - initialWidth + state.settings.widthHeightPx;
960
+ this.canvasHolder.style("width", `${holderChange}px`).style("height", `${holderChange}px`);
961
+ this.canvas.attr("width", `${state.settings.widthHeightPx}px`).attr("height", `${state.settings.widthHeightPx}px`);
962
+ if (this.xBlock.block.width != state.settings.widthHeightPx) {
963
+ this.xBlock.block.width = state.settings.widthHeightPx;
964
+ this.yBlock.block.width = state.settings.widthHeightPx;
965
+ this.xBlock.block.zoom2px(0, initialWidth);
966
+ this.yBlock.block.zoom2px(0, initialWidth);
967
+ }
968
+ this.ctx = this.canvas.node().getContext("2d");
969
+ const coords = this.coordinates.getCoordinates(
970
+ state.x,
971
+ state.y,
972
+ this.parent("data"),
973
+ this.parent("calcResolution"),
974
+ state.settings.widthHeightPx,
975
+ this.parent("fragData")
976
+ );
977
+ this.coords = coords;
978
+ this.ctx.clearRect(0, 0, state.settings.widthHeightPx, state.settings.widthHeightPx);
979
+ for (const [xCoord, yCoord, width, height, value] of this.coords) {
980
+ this.colorizeElement.colorizeElement(
981
+ xCoord,
982
+ yCoord,
983
+ value,
984
+ this.ctx,
985
+ width,
986
+ height,
987
+ this.parent("min"),
988
+ this.parent("max"),
989
+ "detail"
990
+ );
991
+ }
992
+ this.app.dispatch({ type: "loading_active", active: false });
993
+ }
994
+ };
995
+
996
+ // tracks/hic/axes/Chromosome.ts
997
+ var Chromosome = class {
998
+ constructor(chr, width) {
999
+ this.label = chr;
1000
+ this.width = width;
1001
+ }
1002
+ };
1003
+
1004
+ // tracks/hic/grid/Grid.ts
1005
+ var Grid = class _Grid {
1006
+ constructor(chrlst, resolution, chrlookup, binpx) {
1007
+ this.chromosomeMatrix = /* @__PURE__ */ new Map();
1008
+ this.chromosomeList = [];
1009
+ this.xoff = 0;
1010
+ this.yoff = 0;
1011
+ this.chr2px = [];
1012
+ this.chrlst = chrlst;
1013
+ let totalpx = this.chrlst.length;
1014
+ for (const chr of this.chrlst) {
1015
+ const w = Math.ceil(chrlookup[chr.toUpperCase()].len / resolution) * binpx;
1016
+ const chromosome = new Chromosome(chr, w);
1017
+ this.chromosomeList.push(chromosome);
1018
+ this.chr2px[chr] = w;
1019
+ totalpx += w;
1020
+ }
1021
+ this.totalpx = totalpx;
1022
+ for (let i = 0; i < this.chrlst.length; i++) {
1023
+ const chrx = this.chrlst[i];
1024
+ this.chromosomeMatrix.set(chrx, /* @__PURE__ */ new Map());
1025
+ let yoff = 0;
1026
+ for (let j = 0; j <= i; j++) {
1027
+ const chry = this.chrlst[j];
1028
+ const chrxChrLen = chrlookup[chrx.toUpperCase()].len;
1029
+ const chryChrLen = chrlookup[chry.toUpperCase()].len;
1030
+ const xbins = Math.ceil(chrxChrLen / resolution) * binpx;
1031
+ const ybins = Math.ceil(chryChrLen / resolution) * binpx;
1032
+ this.chromosomeMatrix.get(chrx).set(chry, {
1033
+ x: this.xoff,
1034
+ y: yoff,
1035
+ xbins,
1036
+ ybins,
1037
+ data: []
1038
+ //Empty array of data to fill later
1039
+ });
1040
+ yoff += this.chr2px[chry] + _Grid.borderWidth;
1041
+ }
1042
+ this.yoff = yoff;
1043
+ this.xoff += this.chr2px[chrx] + _Grid.borderWidth;
1044
+ }
1045
+ }
1046
+ static {
1047
+ this.checkerFill = "#DEF3FA";
1048
+ }
1049
+ static {
1050
+ this.spaceColor = "#CCC";
1051
+ }
1052
+ static {
1053
+ this.fontSize = 15;
1054
+ }
1055
+ static {
1056
+ this.font = font;
1057
+ }
1058
+ static {
1059
+ this.borderWidth = 1;
1060
+ }
1061
+ static {
1062
+ this.defaultChrLabWidth = 100;
1063
+ }
1064
+ };
1065
+
1066
+ // tracks/hic/viewmodel/GridViewModel.ts
1067
+ var GridViewModel = class {
1068
+ constructor(opts) {
1069
+ this.grid = new Grid(opts.hic.chrlst, opts.resolution || opts.hic.bpresolution[0], opts.hic.genome.chrlookup, 1);
1070
+ }
1071
+ };
1072
+
1073
+ // tracks/hic/grid/GridRenderer.ts
1074
+ var GridRenderer = class {
1075
+ constructor(svg, layerMap, layerSv, grid) {
1076
+ this.svg = svg;
1077
+ this.layerMap = layerMap.attr("transform", `translate(${Grid.defaultChrLabWidth}, ${Grid.fontSize})`);
1078
+ this.layerSv = layerSv.attr("transform", `translate(${Grid.defaultChrLabWidth}, ${Grid.fontSize})`);
1079
+ this.grid = grid;
1080
+ }
1081
+ render() {
1082
+ this.renderAxisX(this.grid);
1083
+ this.renderAxisY(this.grid);
1084
+ this.svg.attr("width", Grid.defaultChrLabWidth + this.grid.xoff).attr("height", Grid.fontSize + this.grid.yoff);
1085
+ }
1086
+ renderAxisX(grid) {
1087
+ let xoff = 0;
1088
+ this.grid.chromosomeList.forEach((chr, index) => {
1089
+ const chrw = chr.width;
1090
+ if (index % 2 === 0) {
1091
+ this.layerMap.append("rect").attr("x", xoff).attr("width", chrw).attr("height", Grid.fontSize).attr("y", -Grid.fontSize).attr("fill", Grid.checkerFill);
1092
+ }
1093
+ this.layerMap.append("text").attr("data-testid", `sjpp-hic-chr-xAxis-label`).attr("font-family", Grid.font).attr("text-anchor", "middle").attr("font-size", 12).attr("x", xoff + chrw / 2).text(chr.label);
1094
+ xoff += chrw;
1095
+ this.layerSv.append("line").attr("x1", xoff).attr("x2", xoff).attr("y2", grid.totalpx).attr("stroke", Grid.spaceColor).attr("shape-rendering", "crispEdges");
1096
+ xoff += Grid.borderWidth;
1097
+ });
1098
+ }
1099
+ renderAxisY(grid) {
1100
+ let yoff = 0;
1101
+ this.grid.chromosomeList.forEach((chr, index) => {
1102
+ const chrh = chr.width;
1103
+ if (index % 2 === 0) {
1104
+ this.layerMap.append("rect").attr("x", -Grid.defaultChrLabWidth).attr("width", Grid.defaultChrLabWidth).attr("height", chrh).attr("y", yoff).attr("fill", Grid.checkerFill);
1105
+ }
1106
+ this.layerMap.append("text").attr("data-testid", `sjpp-hic-chr-yAxis-label`).attr("font-family", Grid.font).attr("text-anchor", "end").attr("dominant-baseline", "central").attr("font-size", 12).attr("y", yoff + chrh / 2).text(chr.label);
1107
+ yoff += chrh;
1108
+ this.layerSv.append("line").attr("x2", grid.totalpx).attr("y1", yoff).attr("y2", yoff).attr("stroke", Grid.spaceColor).attr("shape-rendering", "crispEdges");
1109
+ yoff += Grid.borderWidth;
1110
+ });
1111
+ }
1112
+ };
1113
+
1114
+ // tracks/hic/genome/ChrsTooltips.ts
1115
+ var ChrsTooltips = class {
1116
+ constructor() {
1117
+ this.chrx_tip = new Menu({ border: "solid 1px #ccc", padding: "0px", offsetX: 0, offsetY: 0 });
1118
+ this.chry_tip = new Menu({ border: "solid 1px #ccc", padding: "0px", offsetX: 0, offsetY: 0 });
1119
+ }
1120
+ render(img, chrx, chry) {
1121
+ const p = img.node().getBoundingClientRect();
1122
+ this.chrx_tip.clear().show(p.left, p.top).d.style("top", null).attr("data-testid", "sjpp-hic-chrx-tooltip").style("bottom", window.innerHeight - p.top - window.pageYOffset + "px").text(chrx);
1123
+ this.chry_tip.clear().show(p.left, p.top).d.style("left", null).attr("data-testid", "sjpp-hic-chry-tooltip").style("right", document.body.clientWidth - p.left - window.pageXOffset + "px").text(chry);
1124
+ }
1125
+ };
1126
+
1127
+ // tracks/hic/grid/GridElementRenderer.ts
1128
+ var GridElementRenderer = class {
1129
+ constructor(layerMap, app) {
1130
+ this.app = app;
1131
+ this.layerMap = layerMap;
1132
+ this.tooltips = new ChrsTooltips();
1133
+ }
1134
+ render(obj, lead, follow, holder) {
1135
+ obj.canvas = holder.append("canvas").style("display", "none").node();
1136
+ obj.ctx = obj.canvas.getContext("2d");
1137
+ obj.canvas.width = obj.xbins;
1138
+ obj.canvas.height = obj.ybins;
1139
+ obj.img = this.layerMap.append("image").attr("width", obj.canvas.width).attr("height", obj.canvas.height).attr("x", obj.x).attr("y", obj.y).on("click", async () => {
1140
+ await this.app.dispatch({
1141
+ type: "view_create",
1142
+ view: "chrpair",
1143
+ config: {
1144
+ x: {
1145
+ chr: lead
1146
+ },
1147
+ y: {
1148
+ chr: follow
1149
+ }
1150
+ }
1151
+ });
1152
+ }).on("mouseover", () => {
1153
+ this.tooltips.render(obj.img, lead, follow);
1154
+ });
1155
+ if (lead != follow) {
1156
+ obj.canvas2 = holder.append("canvas").style("display", "none").node();
1157
+ obj.canvas2.width = obj.ybins;
1158
+ obj.canvas2.height = obj.xbins;
1159
+ obj.ctx2 = obj.canvas2.getContext("2d");
1160
+ obj.img2 = this.layerMap.append("image").attr("width", obj.canvas2.width).attr("height", obj.canvas2.height).attr("x", obj.y).attr("y", obj.x).on("click", async () => {
1161
+ await this.app.dispatch({
1162
+ type: "view_create",
1163
+ view: "chrpair",
1164
+ config: {
1165
+ x: {
1166
+ chr: follow
1167
+ },
1168
+ y: {
1169
+ chr: lead
1170
+ }
1171
+ }
1172
+ });
1173
+ }).on("mouseover", () => {
1174
+ this.tooltips.render(obj.img2, follow, lead);
1175
+ });
1176
+ } else {
1177
+ obj.ctx2 = obj.ctx;
1178
+ }
1179
+ }
1180
+ };
1181
+
1182
+ // tracks/hic/grid/GridElementsRenderer.ts
1183
+ var GridElementsRenderer = class {
1184
+ constructor(grid, layerMap, app) {
1185
+ this.grid = grid;
1186
+ this.gridElementRenderer = new GridElementRenderer(layerMap, app);
1187
+ }
1188
+ render(holder) {
1189
+ for (const [chrx, chryMap] of this.grid.chromosomeMatrix) {
1190
+ for (const [chry, gridElem] of chryMap) {
1191
+ this.gridElementRenderer.render(gridElem, chrx, chry, holder);
1192
+ }
1193
+ }
1194
+ }
1195
+ };
1196
+
1197
+ // tracks/hic/genome/GenomeView.ts
1198
+ var GenomeView = class {
1199
+ constructor(opts) {
1200
+ /** Dom */
1201
+ this.tip = new Menu();
1202
+ this.pica_x = new Menu({ border: "solid 1px #ccc", padding: "0px", offsetX: 0, offsetY: 0 });
1203
+ this.pica_y = new Menu({ border: "solid 1px #ccc", padding: "0px", offsetX: 0, offsetY: 0 });
1204
+ /** Data */
1205
+ /** px width for each chr */
1206
+ this.chr2px = {};
1207
+ this.lead2follow = /* @__PURE__ */ new Map();
1208
+ this.values = [];
1209
+ /** Defaults */
1210
+ this.defaultChrLabWidth = 100;
1211
+ this.borderwidth = 1;
1212
+ this.default_maxVPerc = 5;
1213
+ this.fontsize = 15;
1214
+ this.xoff = 0;
1215
+ this.yoff = 0;
1216
+ this.binpx = 1;
1217
+ this.atdev_chrnum = 8;
1218
+ this.min = 0;
1219
+ this.max = 0;
1220
+ this.app = opts.app;
1221
+ this.hic = opts.hic;
1222
+ this.plotDiv = opts.plotDiv;
1223
+ this.data = opts.data;
1224
+ this.parent = opts.parent;
1225
+ this.resolution = opts.resolution || opts.hic.bpresolution[0];
1226
+ this.svg = this.plotDiv.plot.append("svg").attr("data-testid", "sjpp-hic-genome-svg");
1227
+ this.layer_map = this.svg.append("g").attr("data-testid", "sjpp-hic-layerMap-g");
1228
+ this.layer_sv = this.svg.append("g").attr("data-testid", "sjpp-hic-layerSv-g");
1229
+ this.colorizeElement = new ColorizeElement();
1230
+ this.viewModel = new GridViewModel(opts);
1231
+ this.viewRender = new GridRenderer(this.svg, this.layer_map, this.layer_sv, this.viewModel.grid);
1232
+ this.gridElementsRenderer = new GridElementsRenderer(this.viewModel.grid, this.layer_map, this.app);
1233
+ this.gridFormattedData = new GridElementsFormattedData();
1234
+ }
1235
+ makeSv() {
1236
+ const unknownchr = /* @__PURE__ */ new Set();
1237
+ const radius = 8;
1238
+ for (const item of this.hic.sv.items) {
1239
+ const _o = this.lead2follow.get(item.chr1);
1240
+ if (!_o) {
1241
+ unknownchr.add(item.chr1);
1242
+ continue;
1243
+ }
1244
+ const obj = _o.get(item.chr2);
1245
+ if (!obj) {
1246
+ unknownchr.add(item.chr2);
1247
+ continue;
1248
+ }
1249
+ const p1 = item.position1 / this.resolution;
1250
+ const p2 = item.position2 / this.resolution;
1251
+ this.layer_sv.append("circle").attr("data-testid", "sjpp-hic-genome-view-sv-circle").attr("stroke", "black").attr("fill", "white").attr("fill-opacity", 0).attr("cx", obj.x + p1).attr("cy", obj.y + p2).attr("r", radius).on("mouseover", (event) => {
1252
+ this.tooltipSv(event, item);
1253
+ }).on("mouseout", () => {
1254
+ this.tip.hide();
1255
+ }).on("click", () => {
1256
+ this.clickSv(item);
1257
+ });
1258
+ if (obj.img2) {
1259
+ this.layer_sv.append("circle").attr("data-testid", "sjpp-hic-genome-view-sv-circle-2").attr("stroke", "black").attr("fill", "white").attr("fill-opacity", 0).attr("cy", obj.x + p1).attr("cx", obj.y + p2).attr("r", radius).on("mouseover", (event) => {
1260
+ this.tooltipSv(event, item);
1261
+ }).on("mouseout", () => {
1262
+ this.tip.hide();
1263
+ }).on("click", () => {
1264
+ this.clickSv(item);
1265
+ });
1266
+ }
1267
+ }
1268
+ }
1269
+ tooltipSv(event, item) {
1270
+ this.tip.clear().show(event.clientX, event.clientY).d.append("div").text(
1271
+ item.chr1 == item.chr2 ? `${item.chr1}:${item.position1}-${item.position2}` : `${item.chr1}:${item.position1}>${item.chr2}:${item.position2}`
1272
+ );
1273
+ }
1274
+ clickSv(item) {
1275
+ const default_svpointspan = 5e5;
1276
+ const default_subpanelpxwidth = 600;
1277
+ const subpanel_bordercolor = "rgba(200,0,0,.1)";
1278
+ const pane = newpane({ x: 100, y: 100 });
1279
+ pane.header.text(
1280
+ this.hic.name + " " + (item.chr1 == item.chr2 ? `${item.chr1}:${item.position1}-${item.position2}` : `${item.chr1}:${item.position1}>${item.chr2}:${item.position2}`)
1281
+ );
1282
+ const tracks = [
1283
+ {
1284
+ type: tkt.hicstraw,
1285
+ file: this.hic.file,
1286
+ enzyme: this.hic.enzyme,
1287
+ maxpercentage: this.default_maxVPerc,
1288
+ pyramidup: 1,
1289
+ name: this.hic.name
1290
+ }
1291
+ ];
1292
+ if (this.hic.tklst) {
1293
+ for (const t of this.hic.tklst) {
1294
+ tracks.push(t);
1295
+ }
1296
+ }
1297
+ first_genetrack_tolist(this.hic.genome, tracks);
1298
+ const arg = {
1299
+ holder: pane.body,
1300
+ hostURL: this.hic.hostURL,
1301
+ jwt: this.hic.jwt,
1302
+ genome: this.hic.genome,
1303
+ nobox: 1,
1304
+ tklst: tracks
1305
+ };
1306
+ if (item.chr1 == item.chr2 && Math.abs(item.position2 - item.position1) < default_svpointspan * 2) {
1307
+ arg.chr = item.chr1;
1308
+ const w = Math.abs(item.position2 - item.position1);
1309
+ arg.start = Math.max(1, Math.min(item.position1, item.position2) - w);
1310
+ arg.stop = Math.min(
1311
+ this.hic.genome.chrlookup[item.chr1.toUpperCase()].len,
1312
+ Math.max(item.position1, item.position2) + w
1313
+ );
1314
+ } else {
1315
+ arg.chr = item.chr1;
1316
+ arg.start = Math.max(1, item.position1 - default_svpointspan / 2);
1317
+ arg.stop = Math.min(
1318
+ this.hic.genome.chrlookup[item.chr1.toUpperCase()].len,
1319
+ item.position1 + default_svpointspan / 2
1320
+ );
1321
+ arg.width = default_subpanelpxwidth;
1322
+ arg.subpanels = [
1323
+ {
1324
+ chr: item.chr2,
1325
+ start: Math.max(1, item.position2 - default_svpointspan / 2),
1326
+ stop: Math.min(
1327
+ this.hic.genome.chrlookup[item.chr2.toUpperCase()].len,
1328
+ item.position2 + default_svpointspan / 2
1329
+ ),
1330
+ width: default_subpanelpxwidth,
1331
+ leftpad: 10,
1332
+ leftborder: subpanel_bordercolor
1333
+ }
1334
+ ];
1335
+ }
1336
+ blocklazyload(arg);
1337
+ }
1338
+ render() {
1339
+ this.viewRender.render();
1340
+ this.gridElementsRenderer.render(this.hic.holder);
1341
+ if (this.hic.sv && this.hic.sv.items) {
1342
+ this.makeSv();
1343
+ }
1344
+ this.update(this.data);
1345
+ }
1346
+ update(data) {
1347
+ this.data = data;
1348
+ this.min = this.parent("min");
1349
+ this.max = this.parent("max");
1350
+ for (const data2 of this.data) {
1351
+ if (!this.hic.chrlst.includes(data2.lead) || !this.hic.chrlst.includes(data2.follow)) continue;
1352
+ const obj = this.viewModel.grid.chromosomeMatrix.get(data2.lead).get(data2.follow);
1353
+ if (!obj) continue;
1354
+ obj.ctx.clearRect(0, 0, obj.canvas.width, obj.canvas.height);
1355
+ if (obj.canvas2) {
1356
+ obj.ctx2.clearRect(0, 0, obj.canvas2.width, obj.canvas.height);
1357
+ }
1358
+ obj.data = this.gridFormattedData.formatData("genome", data2.items, this.binpx, this.resolution);
1359
+ for (const [xPx, yPx, value] of obj.data) {
1360
+ this.colorizeElement.colorizeElement(xPx, yPx, value, obj, this.binpx, this.binpx, this.min, this.max, "genome");
1361
+ }
1362
+ obj.img.attr("xlink:href", obj.canvas.toDataURL());
1363
+ if (obj.canvas2) {
1364
+ obj.img2.attr("xlink:href", obj.canvas2.toDataURL());
1365
+ }
1366
+ }
1367
+ this.app.dispatch({ type: "loading_active", active: false });
1368
+ }
1369
+ };
1370
+
1371
+ // tracks/hic/controls/NormalizationMethodControl.ts
1372
+ var NormalizationMethodControl = class {
1373
+ constructor(holder, normalization, defaultNmeth, callback) {
1374
+ this.holder = holder;
1375
+ this.normalization = normalization;
1376
+ this.defaultNmeth = defaultNmeth;
1377
+ this.callback = callback;
1378
+ }
1379
+ render() {
1380
+ if (!this.normalization?.length) {
1381
+ this.nmethSelect = this.holder.text(this.defaultNmeth);
1382
+ } else {
1383
+ this.nmethSelect = this.holder.attr("data-testid", "sjpp-hic-nmeth-select").style("margin-right", "10px").append("select").on("change", async () => {
1384
+ const nmeth = this.nmethSelect.node().value;
1385
+ this.callback(nmeth, "nmeth");
1386
+ });
1387
+ for (const n of this.normalization) {
1388
+ this.nmethSelect.append("option").text(n);
1389
+ }
1390
+ }
1391
+ }
1392
+ update(option) {
1393
+ const options = this.nmethSelect.node().options;
1394
+ if (!options) return;
1395
+ const selectedNmeth = Array.from(options).find((o) => o.value === option);
1396
+ if (!selectedNmeth) throw `Invalid normalization method: ${option}`;
1397
+ selectedNmeth.selected = true;
1398
+ }
1399
+ };
1400
+
1401
+ // tracks/hic/controls/CutoffControl.ts
1402
+ var CutoffControl = class {
1403
+ constructor(holder, value, callback) {
1404
+ this.holder = holder;
1405
+ this.value = value;
1406
+ this.callback = callback;
1407
+ }
1408
+ render(opts) {
1409
+ const cutoffDiv = this.holder.attr("data-testid", "sjpp-hic-cutoff-control").style("margin-right", "10px").append("input").attr("type", "number").style("width", opts && "width" in opts ? opts.width : "80px").style("margin-left", "0px").attr("type", "number").property("value", this.value).on("keyup", async (event) => {
1410
+ if (event.code != "Enter") return;
1411
+ const v = event.target.value;
1412
+ this.callback(v);
1413
+ });
1414
+ return cutoffDiv;
1415
+ }
1416
+ };
1417
+
1418
+ // tracks/hic/controls/MatrixTypeControl.ts
1419
+ var MatrixTypeControl = class {
1420
+ constructor(holder, callback) {
1421
+ this.values = [
1422
+ { label: "Observed", value: "observed" },
1423
+ { label: "Expected", value: "expected" },
1424
+ { label: "Observed/Expected", value: "oe" },
1425
+ { label: "Log(Observed/Expected)", value: "log(oe)" }
1426
+ // TODO: add server side logic to support these options
1427
+ // { label: 'Log(Observed + 1)', value: 'log(obs+1)'},
1428
+ // { label: 'Observed Pearson', value: 'op'}
1429
+ ];
1430
+ this.holder = holder;
1431
+ this.callback = callback;
1432
+ }
1433
+ render() {
1434
+ this.matrixSelect = this.holder.attr("data-testid", "sjpp-hic-matrix-type-select").style("margin-right", "10px").append("select").on("change", async () => {
1435
+ this.callback(this.matrixSelect.node().value, "matrixType");
1436
+ });
1437
+ for (const matrixType of this.values) {
1438
+ this.matrixSelect.append("option").text(matrixType.label).attr("value", matrixType.value);
1439
+ }
1440
+ }
1441
+ update(option) {
1442
+ const options = this.matrixSelect.node().options;
1443
+ if (!options) return;
1444
+ const selectedNmeth = Array.from(options).find((o) => o.value === option);
1445
+ if (!selectedNmeth) throw `Invalid normalization method: ${option}`;
1446
+ selectedNmeth.selected = true;
1447
+ }
1448
+ };
1449
+
1450
+ // tracks/hic/controls/ControlPanel.ts
1451
+ var ControlPanel = class _ControlPanel {
1452
+ constructor(opts) {
1453
+ this.zoomBlockCallback = (bool) => {
1454
+ const detailView = this.parent("detail");
1455
+ detailView.xBlock.block.zoomblock(2, bool);
1456
+ detailView.yBlock.block.zoomblock(2, bool);
1457
+ };
1458
+ this.minCallback = (v) => {
1459
+ if (Number(v) > Number(this.parent("max"))) {
1460
+ this.error("Min cutoff cannot be greater than max cutoff");
1461
+ } else {
1462
+ this.parent("min", Number(v));
1463
+ this.reColorHeatmap();
1464
+ this.parent("infoBar").update();
1465
+ }
1466
+ };
1467
+ this.maxCallback = (v) => {
1468
+ if (Number(v) < Number(this.parent("min"))) {
1469
+ this.error(`Max cutoff cannot be less than min cutoff`);
1470
+ } else if (Number(v) < 0) {
1471
+ this.error(`Max cutoff cannot be less than 0`);
1472
+ } else {
1473
+ this.parent("max", Number(v));
1474
+ this.reColorHeatmap();
1475
+ this.parent("infoBar").update();
1476
+ }
1477
+ };
1478
+ this.reColorHeatmap = () => {
1479
+ if (this.parent("activeView") == "genome") {
1480
+ const genomeView = this.parent("genome");
1481
+ const chrMatrix = genomeView.viewRender.grid.chromosomeMatrix;
1482
+ if (!chrMatrix) return;
1483
+ for (const map of chrMatrix) {
1484
+ const yMap = map[1];
1485
+ for (const obj of yMap) {
1486
+ const canvasObj = obj[1];
1487
+ if (!canvasObj) continue;
1488
+ for (const [leadpx, followpx, val] of canvasObj.data) {
1489
+ this.colorizeElement.colorizeElement(
1490
+ leadpx,
1491
+ followpx,
1492
+ val,
1493
+ canvasObj,
1494
+ 1,
1495
+ 1,
1496
+ this.parent("min"),
1497
+ this.parent("max"),
1498
+ "genome"
1499
+ );
1500
+ }
1501
+ canvasObj.img.attr("xlink:href", canvasObj.canvas.toDataURL());
1502
+ if (canvasObj.canvas2) {
1503
+ canvasObj.img2.attr("xlink:href", canvasObj.canvas2.toDataURL());
1504
+ }
1505
+ }
1506
+ }
1507
+ } else if (this.parent("activeView") == "chrpair") {
1508
+ const view = this.parent("chrpair");
1509
+ for (const [xCoord, yCoord, val] of view.data) {
1510
+ this.colorizeElement.colorizeElement(
1511
+ xCoord,
1512
+ yCoord,
1513
+ val,
1514
+ view.ctx,
1515
+ view.binpx,
1516
+ view.binpx,
1517
+ this.parent("min"),
1518
+ this.parent("max"),
1519
+ "chrpair"
1520
+ );
1521
+ }
1522
+ } else if (this.parent("activeView") == "detail") {
1523
+ const view = this.parent("detail");
1524
+ for (const [xCoord, yCoord, width, height, value] of view.coords) {
1525
+ this.colorizeElement.colorizeElement(
1526
+ xCoord,
1527
+ yCoord,
1528
+ value,
1529
+ view.ctx,
1530
+ width,
1531
+ height,
1532
+ this.parent("min"),
1533
+ this.parent("max"),
1534
+ "detail"
1535
+ );
1536
+ }
1537
+ }
1538
+ };
1539
+ this.dropdownCallback = (v, prop) => {
1540
+ const state = this.app.getState();
1541
+ this.app.dispatch({
1542
+ type: "view_update",
1543
+ view: state.currView,
1544
+ config: { [prop]: v }
1545
+ });
1546
+ };
1547
+ this.type = _ControlPanel.type;
1548
+ this.controls = {};
1549
+ this.app = opts.app;
1550
+ this.controlsDiv = opts.controlsDiv;
1551
+ this.hic = opts.hic;
1552
+ this.colorizeElement = new ColorizeElement();
1553
+ this.parent = opts.parent;
1554
+ this.error = opts.error;
1555
+ }
1556
+ static {
1557
+ this.type = "controlPanel";
1558
+ }
1559
+ getState(appState) {
1560
+ return appState;
1561
+ }
1562
+ addLabel(tr, text) {
1563
+ return tr.append("td").style("color", "#858585").style("font-size", ".8em").style("vertical-align", text.toUpperCase() == "VIEW" ? "top" : "middle").text(text.toUpperCase());
1564
+ }
1565
+ init() {
1566
+ const state = this.app.getState();
1567
+ const menuWrapper = this.controlsDiv.attr("data-testid", "sjpp-hic-control-panel").style("background", "rgb(253, 250, 244)").style("vertical-align", "top").style("padding", "5px").style("border", "solid 0.5px #ccc");
1568
+ let menuVisible = true;
1569
+ this.controlsDiv.append("button").attr("data-testid", "sjpp-hic-burger-btn").style("display", "block").style("border", "none").style("font-size", "1.5em").style("background", "none").html("&#8801;").on("click", () => {
1570
+ menuVisible = !menuVisible;
1571
+ menu.style("display", menuVisible ? "block" : "none");
1572
+ });
1573
+ const menu = menuWrapper.append("div").attr("class", "sjpp-hic-menu").attr("data-testid", "sjpp-hic-menu").style("display", menuVisible ? "block" : "none");
1574
+ const menuTable = menu.append("table").style("border-spacing", "3px");
1575
+ this.controls.normalizationRow = menuTable.append("tr");
1576
+ this.addLabel(this.controls.normalizationRow, "NORMALIZATION");
1577
+ this.controls.nmeth = new NormalizationMethodControl(
1578
+ this.controls.normalizationRow.append("td").attr("class", "sjpp-nmeth-select"),
1579
+ this.hic.normalization,
1580
+ state.defaultNmeth,
1581
+ this.dropdownCallback
1582
+ );
1583
+ this.controls.nmeth.render();
1584
+ this.controls.minCutoffRow = menuTable.append("tr");
1585
+ this.controls.minCutoffLabel = this.addLabel(this.controls.minCutoffRow, "");
1586
+ this.controls.inputBpMinV = new CutoffControl(
1587
+ this.controls.minCutoffRow.append("td"),
1588
+ this.parent("min"),
1589
+ this.minCallback
1590
+ ).render({ width: "120px" });
1591
+ this.controls.maxCutoffRow = menuTable.append("tr");
1592
+ this.controls.maxCutoffLabel = this.addLabel(this.controls.maxCutoffRow, "");
1593
+ this.controls.inputBpMaxV = new CutoffControl(
1594
+ this.controls.maxCutoffRow.append("td"),
1595
+ this.parent("max"),
1596
+ this.maxCallback
1597
+ ).render({ width: "120px" });
1598
+ this.controls.matrixTypeRow = menuTable.append("tr");
1599
+ this.addLabel(this.controls.matrixTypeRow, "matrix type");
1600
+ this.controls.matrixType = new MatrixTypeControl(this.controls.matrixTypeRow.append("td"), this.dropdownCallback);
1601
+ this.controls.matrixType.render();
1602
+ this.controls.widthRow = menuTable.append("tr");
1603
+ this.addLabel(this.controls.widthRow, "WIDTH / height");
1604
+ this.controls.width = this.controls.widthRow.append("td");
1605
+ this.controls.width.attr("data-testid", "sjpp-hic-block-size-input").style("margin-right", "10px").append("input").attr("type", "number").style("width", "80px").style("margin-left", "0px").attr("type", "number").property("value", state.width).on("keyup", async (event) => {
1606
+ if (event.code != "Enter") return;
1607
+ const v = event.target.value;
1608
+ this.app.dispatch({
1609
+ type: "view_update",
1610
+ config: {
1611
+ settings: { widthHeightPx: Number.parseInt(v) }
1612
+ }
1613
+ });
1614
+ });
1615
+ const viewRow = menuTable.append("tr");
1616
+ this.addLabel(viewRow, "VIEW");
1617
+ const viewBtnDiv = viewRow.append("td");
1618
+ this.controls.view = viewBtnDiv.append("span").attr("data-testid", "sjpp-hic-view-span").style("padding-right", "5px").style("display", "block");
1619
+ this.controls.genomeViewBtn = viewBtnDiv.append("button").attr("data-testid", "sjpp-hic-genome-view-btn").style("display", "none").style("padding", "2px").style("margin-top", "4px").html("&#8810; Genome").on("click", async () => {
1620
+ await this.app.dispatch({
1621
+ type: "view_create",
1622
+ view: "genome",
1623
+ config: {
1624
+ x: {},
1625
+ y: {}
1626
+ }
1627
+ });
1628
+ });
1629
+ this.controls.chrpairViewBtn = viewBtnDiv.append("button").attr("data-testid", "sjpp-hic-chrpair-view-btn").style("display", "none").style("padding", "2px").style("margin", "4px 0px").on("click", async () => {
1630
+ const currState = this.app.getState();
1631
+ await this.app.dispatch({
1632
+ type: "view_create",
1633
+ view: "chrpair",
1634
+ config: {
1635
+ x: {
1636
+ chr: currState.x.chr
1637
+ },
1638
+ y: {
1639
+ chr: currState.y.chr
1640
+ }
1641
+ }
1642
+ });
1643
+ });
1644
+ this.controls.horizontalViewBtn = viewBtnDiv.append("button").attr("data-testid", "sjpp-hic-horizontal-view-btn").style("display", "none").style("padding", "2px").style("margin", "4px 0px").html("Horizontal View &#8811;").on("click", async () => {
1645
+ await this.app.dispatch({
1646
+ type: "view_create",
1647
+ view: "horizontal"
1648
+ });
1649
+ });
1650
+ this.controls.detailViewBtn = viewBtnDiv.append("button").attr("data-testid", "sjpp-hic-detail-view-btn").style("display", "none").style("padding", "2px").style("margin", "4px 0px").html("&#8810; Detailed View").on("click", async () => {
1651
+ await this.app.dispatch({
1652
+ type: "view_create",
1653
+ view: "detail"
1654
+ });
1655
+ });
1656
+ this.controls.zoomDiv = menuTable.append("tr").attr("data-testid", "sjpp-hic-zoom-div").style("display", state.currView == "detail" ? "contents" : "none");
1657
+ this.addLabel(this.controls.zoomDiv, "ZOOM");
1658
+ const zoomDiv = this.controls.zoomDiv.append("td");
1659
+ this.controls.zoomIn = zoomDiv.append("button").attr("data-testid", "sjpp-hic-zoom-in-btn").style("margin-right", "10px").text("In").on("click", () => {
1660
+ this.zoomBlockCallback(false);
1661
+ });
1662
+ this.controls.zoomOut = zoomDiv.append("button").attr("data-testid", "sjpp-hic-zoom-out-btn").style("margin-right", "10px").text("Out").on("click", () => {
1663
+ this.zoomBlockCallback(true);
1664
+ });
1665
+ }
1666
+ showBtns() {
1667
+ const state = this.app.getState();
1668
+ this.controls.genomeViewBtn.style("display", state.currView === "genome" ? "none" : "inline-block");
1669
+ if (state.currView === "detail") {
1670
+ this.controls.chrpairViewBtn.html(`&#8810; Entire ${state.x.chr}-${state.y.chr}`).style("display", "block");
1671
+ this.controls.horizontalViewBtn.style("display", "block");
1672
+ this.controls.zoomDiv.style("display", "contents");
1673
+ this.controls.detailViewBtn.style("display", "none");
1674
+ } else if (state.currView === "horizontal") {
1675
+ this.controls.chrpairViewBtn.html(`&#8810; Entire ${state.x.chr}-${state.y.chr}`).style("display", "block");
1676
+ this.controls.detailViewBtn.style("display", "block");
1677
+ this.controls.horizontalViewBtn.style("display", "none");
1678
+ this.controls.zoomDiv.style("display", "none");
1679
+ } else {
1680
+ this.controls.chrpairViewBtn.style("display", "none");
1681
+ this.controls.horizontalViewBtn.style("display", "none");
1682
+ this.controls.detailViewBtn.style("display", "none");
1683
+ this.controls.zoomDiv.style("display", "none");
1684
+ this.controls.widthRow.style("display", "none");
1685
+ }
1686
+ }
1687
+ showHideControls() {
1688
+ const state = this.app.getState();
1689
+ this.controls.normalizationRow.style("display", state.currView == "horizontal" ? "none" : "");
1690
+ this.controls.minCutoffRow.style("display", state.currView == "horizontal" ? "none" : "");
1691
+ this.controls.maxCutoffRow.style("display", state.currView == "horizontal" ? "none" : "");
1692
+ this.controls.matrixTypeRow.style("display", state.currView == "horizontal" ? "none" : "");
1693
+ this.controls.widthRow.style("display", state.currView == "detail" ? "contents" : "none");
1694
+ }
1695
+ main(appState) {
1696
+ const state = this.app.getState(appState);
1697
+ this.controls.nmeth.update(state[state.currView].nmeth);
1698
+ this.controls.matrixType.update(state[state.currView].matrixType);
1699
+ this.controls.zoomDiv.style("display", state.currView == "detail" ? "contents" : "none");
1700
+ if (state.currView == "chrpair") {
1701
+ this.controls.view.text(`${state.x.chr}-${state.y.chr} Pair`);
1702
+ } else {
1703
+ this.controls.view.text(state.currView.charAt(0).toUpperCase() + state.currView.slice(1));
1704
+ }
1705
+ const formatAbsMin = this.parent("absMin") < 1e-5 ? Number(this.parent("absMin")).toExponential(1) : Number(this.parent("absMin").toFixed(6));
1706
+ const formatAbsMax = this.parent("absMax") < 1e-5 ? Number(this.parent("absMax")).toExponential(1) : Number(this.parent("absMax").toFixed(6));
1707
+ this.controls.width.select("input").property("value", state.settings.widthHeightPx);
1708
+ this.controls.inputBpMinV.property("value", this.parent("min"));
1709
+ this.controls.inputBpMaxV.property("value", this.parent("max"));
1710
+ this.controls.minCutoffLabel.html(`MIN CUTOFF <br>(>= ${formatAbsMin})`);
1711
+ this.controls.maxCutoffLabel.html(`MAX CUTOFF <br>(<= ${formatAbsMax})`);
1712
+ this.showBtns();
1713
+ this.showHideControls();
1714
+ }
1715
+ };
1716
+ var controlPanelInit = getCompInit(ControlPanel);
1717
+
1718
+ // tracks/hic/dom/InfoBar.ts
1719
+ var InfoBar = class {
1720
+ constructor(opts) {
1721
+ /** Defaults **/
1722
+ //Color shown on the left of the color scale
1723
+ this.startColor = "white";
1724
+ //Color shown on the right of the color scale
1725
+ this.endColor = "red";
1726
+ this.addLabel = (text) => {
1727
+ return this.labelRow.append("td").attr("data-testid", `sjpp-hic-infobar-${text.toLowerCase().replace(/\s/g, "-")}-label`).style("color", "#858585").style("font-size", ".8em").style("text-align", "center").style("vertical-align", "middle").text(text.toUpperCase());
1728
+ };
1729
+ this.addValue = (text) => {
1730
+ return this.valueRow.append("td").attr("data-testid", `sjpp-hic-infobar-${text.toString().toLowerCase().replace(/\s/g, "-")}-value`).style("font-size", "1em").style("text-align", "center").style("vertical-align", "middle").text(text);
1731
+ };
1732
+ this.type = "infoBar";
1733
+ this.app = opts.app;
1734
+ this.hic = opts.hic;
1735
+ const table = opts.infoBarDiv;
1736
+ this.labelRow = table.append("tr");
1737
+ this.valueRow = table.append("tr");
1738
+ this.parent = opts.parent;
1739
+ }
1740
+ async render() {
1741
+ this.addLabel("Version");
1742
+ this.addValue(this.hic.version);
1743
+ this.addLabel("Enzyme");
1744
+ this.addValue(this.hic.enzyme || "N/A");
1745
+ this.addLabel("Resolution");
1746
+ this.resolutionDiv = this.addValue("");
1747
+ this.colorScaleLabel = this.addLabel("Scale");
1748
+ this.colorScaleDiv = this.valueRow.append("td").attr("data-testid", "sjpp-hic-color-scale");
1749
+ const min = this.parent("min");
1750
+ let max = this.parent("max");
1751
+ if (min == max) max = max + 0.01;
1752
+ this.colorScale = new ColorScale({
1753
+ barheight: 20,
1754
+ barwidth: 100,
1755
+ domain: [min, max],
1756
+ fontSize: 12,
1757
+ height: 40,
1758
+ width: 150,
1759
+ holder: this.colorScaleDiv,
1760
+ colors: [this.startColor, this.endColor],
1761
+ position: "20,0",
1762
+ ticks: 3,
1763
+ tickSize: 5,
1764
+ //Do not use min value here on initialization. It's 0 and will not update later.
1765
+ markedValue: 1
1766
+ });
1767
+ }
1768
+ update() {
1769
+ const res = this.parent("calcResolution");
1770
+ let resolutionText;
1771
+ if (res < this.hic.bpresolution[this.hic.bpresolution.length - 1]) {
1772
+ resolutionText = `${res} fragment${res > 1 ? "s" : ""}`;
1773
+ } else {
1774
+ resolutionText = bplen(res);
1775
+ }
1776
+ this.resolutionDiv.text(resolutionText);
1777
+ if (this.parent("state").currView == "horizontal") {
1778
+ this.colorScaleLabel.style("display", "none");
1779
+ this.colorScaleDiv.style("display", "none");
1780
+ } else {
1781
+ this.colorScaleLabel.style("display", "");
1782
+ this.colorScaleDiv.style("display", "");
1783
+ const min = this.parent("min");
1784
+ const max = this.parent("max");
1785
+ if (min < 0) {
1786
+ this.colorScale.colors = ["blue", "white", "red"];
1787
+ this.colorScale.domain = [min, 0, max];
1788
+ } else {
1789
+ this.colorScale.colors = ["white", "red"];
1790
+ this.colorScale.domain = [0, max];
1791
+ }
1792
+ this.colorScale.markedValue = min;
1793
+ this.colorScale.updateScale();
1794
+ }
1795
+ }
1796
+ };
1797
+
1798
+ // tracks/hic/data/DataMapper.ts
1799
+ var DataMapper = class {
1800
+ constructor(hic, percentile) {
1801
+ this.hic = hic;
1802
+ this.percentile = percentile ? percentile / 100 : 0.99;
1803
+ }
1804
+ sortData(data) {
1805
+ const vlst = [];
1806
+ if (data?.items && data?.items.length) {
1807
+ for (const i of data.items) {
1808
+ vlst.push(i[2]);
1809
+ }
1810
+ } else {
1811
+ const blankChrs = /* @__PURE__ */ new Set();
1812
+ for (const d of data) {
1813
+ if (d.lead == "chrM" && !d.items.length || d.lead == "chrY" && !d.items.length) {
1814
+ blankChrs.add(d.lead);
1815
+ continue;
1816
+ }
1817
+ for (const i of d.items) {
1818
+ vlst.push(i[2]);
1819
+ }
1820
+ }
1821
+ if (blankChrs.size) {
1822
+ for (const c of blankChrs) {
1823
+ const idx = this.hic.chrlst.indexOf(c);
1824
+ this.hic.chrlst.splice(idx, 1);
1825
+ }
1826
+ }
1827
+ }
1828
+ const sortedVlst = vlst.sort((a, b) => a - b);
1829
+ const max = sortedVlst[Math.floor(sortedVlst.length * this.percentile)];
1830
+ const min = sortedVlst[0];
1831
+ return [min, max, sortedVlst[sortedVlst.length - 1]];
1832
+ }
1833
+ };
1834
+
1835
+ // tracks/hic/data/GenomeDataFetcher.ts
1836
+ var GenomeDataFetcher = class {
1837
+ constructor(hic, debugmode, errList = []) {
1838
+ this.data = [];
1839
+ this.hic = hic;
1840
+ this.debugmode = debugmode;
1841
+ this.errList = errList || [];
1842
+ }
1843
+ async getData(obj) {
1844
+ if (this.data.length) this.data = [];
1845
+ if (!obj?.matrixType) obj.matrixType = "observed";
1846
+ try {
1847
+ const res = await dofetch3("hicgenome?", {
1848
+ method: "POST",
1849
+ body: JSON.stringify({
1850
+ chrlst: this.hic.chrlst,
1851
+ nmeth: obj.nmeth,
1852
+ resolution: obj.resolution,
1853
+ matrixType: obj.matrixType,
1854
+ file: this.hic.file,
1855
+ url: this.hic.url,
1856
+ nochr: this.hic.nochr
1857
+ })
1858
+ });
1859
+ if (res.error) {
1860
+ const errs = res.error.split("\n");
1861
+ for (const e of errs) {
1862
+ this.errList.push(e);
1863
+ }
1864
+ }
1865
+ return res.data;
1866
+ } catch (e) {
1867
+ this.errList.push(e.message || e);
1868
+ if (e.stack) console.error(e.stack);
1869
+ }
1870
+ }
1871
+ };
1872
+
1873
+ // tracks/hic/data/DataFetcher.ts
1874
+ var DataFetcher = class {
1875
+ constructor(hic, debugmode, errList = []) {
1876
+ this.hic = hic;
1877
+ this.debugmode = debugmode;
1878
+ this.errList = errList || [];
1879
+ }
1880
+ async getData(obj) {
1881
+ if (!obj?.matrixType) obj.matrixType = "observed";
1882
+ const arg = {
1883
+ matrixType: obj.matrixType,
1884
+ file: this.hic.file,
1885
+ url: this.hic.url,
1886
+ pos1: this.hic.nochr ? obj.lead.replace("chr", "") : obj.lead,
1887
+ pos2: this.hic.nochr ? obj.follow.replace("chr", "") : obj.follow,
1888
+ nmeth: obj.nmeth,
1889
+ resolution: obj.resolution
1890
+ };
1891
+ try {
1892
+ const data = await dofetch3("hicdata?", {
1893
+ method: "POST",
1894
+ body: JSON.stringify(arg)
1895
+ });
1896
+ if (data.error) {
1897
+ throw Error(`${obj.lead} - ${obj.follow}: ${data.error.error}`);
1898
+ }
1899
+ if (!data.items || data.items.length == 0) return;
1900
+ return data;
1901
+ } catch (e) {
1902
+ this.errList.push(e.message || e);
1903
+ if (e.stack) console.error(e.stack);
1904
+ }
1905
+ }
1906
+ };
1907
+
1908
+ // tracks/hic/HicComponent.ts
1909
+ var HicComponent = class _HicComponent {
1910
+ constructor(opts) {
1911
+ this.genomeData = [];
1912
+ this.calcResolution = null;
1913
+ this.firstRender = true;
1914
+ this.min = 0;
1915
+ this.absMin = 0;
1916
+ this.max = 0;
1917
+ this.absMax = 0;
1918
+ this.hasStatePreMain = true;
1919
+ this.type = _HicComponent.type;
1920
+ this.hic = opts.hic;
1921
+ this.state = opts.state;
1922
+ this.dom = opts.dom;
1923
+ this.errList = opts.errList;
1924
+ this.plotDiv = this.dom.plotDiv.append("table").classed("sjpp-hic-plot-main", true);
1925
+ const tr1 = this.plotDiv.append("tr");
1926
+ const tr2 = this.plotDiv.append("tr");
1927
+ this.plotDiv = {
1928
+ plot: tr1.append("td").classed("sjpp-hic-plot", true).attr("data-testid", "sjpp-hic-plot"),
1929
+ yAxis: tr1.append("td").classed("sjpp-hic-plot-yaxis", true).attr("data-testid", "sjpp-hic-yaxis"),
1930
+ xAxis: tr2.append("td").classed("sjpp-hic-plot-xaxis", true).attr("data-testid", "sjpp-hic-xaxis"),
1931
+ blank: tr2.append("td")
1932
+ };
1933
+ this.app = opts.app;
1934
+ this.dataMapper = new DataMapper(this.hic, opts.state.maxCutoffPercentile);
1935
+ this.activeView = this.state.currView;
1936
+ this.error = opts.error;
1937
+ this.resolution = new Resolution(this.error);
1938
+ this.parent = (prop) => {
1939
+ return this[prop];
1940
+ };
1941
+ this.detailDataMapper = new DetailDataMapper(this.hic, this.errList, this.parent);
1942
+ }
1943
+ static {
1944
+ this.type = "view";
1945
+ }
1946
+ getState(appState) {
1947
+ return appState;
1948
+ }
1949
+ reactsTo(action) {
1950
+ if (action.type.startsWith("view")) return true;
1951
+ else return false;
1952
+ }
1953
+ initView() {
1954
+ const opts = {
1955
+ plotDiv: this.plotDiv,
1956
+ hic: this.hic,
1957
+ app: this.app,
1958
+ parent: (prop) => {
1959
+ return this[prop];
1960
+ }
1961
+ };
1962
+ if (this.state.currView == "genome") {
1963
+ opts["data"] = this.data;
1964
+ this.genome = new GenomeView(opts);
1965
+ this.genome.render();
1966
+ } else if (this.state.currView === "chrpair") {
1967
+ opts["items"] = this.data;
1968
+ this.chrpair = new ChrPairView(opts);
1969
+ this.chrpair.render();
1970
+ } else if (this.state.currView === "detail") {
1971
+ opts["data"] = this.data;
1972
+ this.detail = new DetailView(opts);
1973
+ this.detail.render();
1974
+ } else if (this.state.currView === "horizontal") {
1975
+ this.horizontal = new HorizontalView(opts);
1976
+ this.horizontal.render();
1977
+ } else {
1978
+ throw Error(`Unknown view: ${this.state.currView}`);
1979
+ }
1980
+ }
1981
+ async fetchData(obj) {
1982
+ if (this.data?.length) this.data = [];
1983
+ if (this.state.currView == "genome") {
1984
+ if (this.activeView != "genome" && this.genomeData?.length) this.data = this.genomeData;
1985
+ else {
1986
+ const genomeFetcher = new GenomeDataFetcher(this.hic, true, this.errList);
1987
+ this.genomeData = await genomeFetcher.getData(obj);
1988
+ this.data = this.genomeData;
1989
+ }
1990
+ } else if (this.state.currView == "detail") {
1991
+ this.data = await this.detailDataMapper.getData(this.state.x, this.state.y, this.fragData);
1992
+ } else {
1993
+ if (!this.state?.x?.chr || !this.state?.y?.chr) {
1994
+ this.errList.push(`No positions provided for ${this.activeView} view.`);
1995
+ return;
1996
+ } else {
1997
+ const chrx = this.state.x;
1998
+ const chry = this.state.y;
1999
+ obj["lead"] = `${chrx.start && chrx.stop ? `${chrx.chr}:${chrx.start}-${chrx.stop}` : chrx.chr}`;
2000
+ obj["follow"] = `${chry.start && chry.stop ? `${chry.chr}:${chry.start}-${chry.stop}` : chry.chr}`;
2001
+ }
2002
+ const dataFetcher = new DataFetcher(this.hic, true, this.errList);
2003
+ this.data = await dataFetcher.getData(obj);
2004
+ }
2005
+ }
2006
+ async setResolution(appState) {
2007
+ const state = this.app.getState(appState);
2008
+ this.calcResolution = this.resolution.getResolution(state, this.hic);
2009
+ if (state.currView == "detail" && this.calcResolution == null) {
2010
+ await this.detailDataMapper.getFragData(state.x, state.y);
2011
+ this.fragData = this.detailDataMapper.frag;
2012
+ const maxFragSpan = Math.min(
2013
+ this.fragData.x.stop - this.fragData.x.start,
2014
+ this.fragData.y.stop - this.fragData.y.start
2015
+ );
2016
+ this.calcResolution = this.resolution.findResFromArray(
2017
+ maxFragSpan,
2018
+ state.minFragSpan,
2019
+ this.hic.fragresolution,
2020
+ true
2021
+ );
2022
+ } else {
2023
+ this.fragData = null;
2024
+ }
2025
+ return this.calcResolution;
2026
+ }
2027
+ async setDataArgs(appState) {
2028
+ const state = this.app.getState(appState);
2029
+ const currView = state[state.currView];
2030
+ const args = {
2031
+ nmeth: currView.nmeth,
2032
+ resolution: await this.setResolution(appState),
2033
+ matrixType: currView.matrixType
2034
+ };
2035
+ if (state.currView == "chrpair") {
2036
+ args["lead"] = state.x.chr;
2037
+ args["follow"] = state.y.chr;
2038
+ }
2039
+ return args;
2040
+ }
2041
+ async getViewData(appState) {
2042
+ const args = await this.setDataArgs(appState);
2043
+ await this.fetchData(args);
2044
+ if (this.data?.length > 0 || this.data?.items?.length > 0) {
2045
+ const [min, max, absMax] = this.dataMapper.sortData(this.data);
2046
+ this.min = this.absMin = min;
2047
+ this.max = max;
2048
+ this.absMax = absMax;
2049
+ } else {
2050
+ if (this.state.currView != "genome") {
2051
+ const state = this.app.getState(appState);
2052
+ const xPosMessage = state.x?.start ? `${state.x.chr}:${state.x.start}-${state.x.stop}` : state.x.chr;
2053
+ const yPosMessage = state.y?.start ? `${state.y.chr}:${state.y.start}-${state.y.stop}` : state.y.chr;
2054
+ this.errList.push(`No data returned for ${xPosMessage} and ${yPosMessage}`);
2055
+ }
2056
+ }
2057
+ }
2058
+ async init() {
2059
+ this.components = {
2060
+ controls: await controlPanelInit({
2061
+ app: this.app,
2062
+ controlsDiv: this.dom.controlsDiv,
2063
+ hic: this.hic,
2064
+ parent: (prop, value) => {
2065
+ if (value) this[prop] = value;
2066
+ return this[prop];
2067
+ },
2068
+ error: this.error.bind(this)
2069
+ })
2070
+ };
2071
+ this.infoBar = new InfoBar({
2072
+ app: this.app,
2073
+ infoBarDiv: this.dom.infoBarDiv.append("table").style("border-spacing", "3px"),
2074
+ hic: this.hic,
2075
+ parent: (prop) => {
2076
+ return this[prop];
2077
+ }
2078
+ });
2079
+ this.infoBar.render();
2080
+ }
2081
+ async main(appState) {
2082
+ if (this.errList.length) {
2083
+ this.app.dispatch({ type: "loading_active", active: false });
2084
+ return;
2085
+ }
2086
+ const state = this.app.getState(appState);
2087
+ if (this.firstRender == true) {
2088
+ this.firstRender = false;
2089
+ await this.getViewData(appState);
2090
+ this.initView();
2091
+ } else {
2092
+ if (state.currView != "horizontal") {
2093
+ this.app.dispatch({ type: "loading_active", active: true });
2094
+ await this.getViewData(appState);
2095
+ }
2096
+ if (this.activeView != state.currView) {
2097
+ if (this.activeView == "genome") {
2098
+ this.genome.svg.remove();
2099
+ } else {
2100
+ this.plotDiv.xAxis.selectAll("*").remove();
2101
+ this.plotDiv.yAxis.selectAll("*").remove();
2102
+ this.plotDiv.plot.selectAll("*").remove();
2103
+ }
2104
+ this.activeView = state.currView;
2105
+ this.initView();
2106
+ } else {
2107
+ this[state.currView].update(this.data);
2108
+ }
2109
+ }
2110
+ this.infoBar.update();
2111
+ if (this.errList.length) {
2112
+ this.error(this.errList);
2113
+ this.app.dispatch({ type: "loading_active", active: false });
2114
+ }
2115
+ }
2116
+ };
2117
+ var viewCompInit = getCompInit(HicComponent);
2118
+
2119
+ // tracks/hic/HicApp.ts
2120
+ var HicApp = class _HicApp extends AppBase {
2121
+ constructor(opts) {
2122
+ super(opts);
2123
+ this.views = ["genome", "chrpair", "detail", "horizontal"];
2124
+ this.errList = [];
2125
+ /** Required for rx but not in use */
2126
+ this.wasDestroyed = false;
2127
+ this.type = _HicApp.type;
2128
+ this.hic = {
2129
+ enzyme: opts.enzyme,
2130
+ file: opts.file,
2131
+ url: opts.url,
2132
+ genome: opts.genome,
2133
+ holder: opts.holder,
2134
+ hostUrl: opts.hostUrl,
2135
+ jwt: opts.jwt,
2136
+ position1: opts.position1,
2137
+ position2: opts.position2,
2138
+ maxCutoffPercentile: opts.maxCutoffPercentile,
2139
+ name: "name" in opts ? opts.name : "Hi-C",
2140
+ tklist: "tklst" in opts ? opts.tklst : [],
2141
+ state: "state" in opts ? opts.state : {}
2142
+ };
2143
+ this.dom = {
2144
+ errorDiv: opts.holder.append("div").classed("sjpp-hic-error", true),
2145
+ controlsDiv: opts.holder.append("div").classed("sjpp-hic-controls", true).style("display", "inline-block"),
2146
+ infoBarDiv: opts.holder.append("div").classed("sjpp-hic-infobar", true).style("display", "inline-block").style("vertical-align", "top").style("padding", "5px").style("border", "solid 0.5px #ccc"),
2147
+ loadingDiv: select_default("body").append("div").attr("id", "sjpp-loading-overlay"),
2148
+ plotDiv: opts.holder.append("div").classed("sjpp-hic-main", true).style("display", "inline-block"),
2149
+ tip: new Menu()
2150
+ };
2151
+ }
2152
+ static {
2153
+ this.type = "app";
2154
+ }
2155
+ async error(err) {
2156
+ if (err && typeof err == "string") this.errList.push(err);
2157
+ showErrorsWithCounter(this.errList, this.dom.errorDiv);
2158
+ this.errList = [];
2159
+ }
2160
+ determineView() {
2161
+ if (!this.hic.position1 && !this.hic.position2 && !this.hic.state.currView) this.hic.state.currView = "genome";
2162
+ if (!this.hic.position1 && this.hic.position2) this.errList.push("Missing first position");
2163
+ if (this.hic.position1 && !this.hic.position2) this.errList.push("Missing second position");
2164
+ if (this.hic.position1 && this.hic.position2) {
2165
+ const pos1 = this.hic.position1.split(/[:-]/);
2166
+ const pos2 = this.hic.position2.split(/[:-]/);
2167
+ this.hic.state.x = { chr: pos1[0] };
2168
+ this.hic.state.y = { chr: pos2[0] };
2169
+ if (!Number.isNaN(+pos1[1]) && !Number.isNaN(+pos1[2])) {
2170
+ this.hic.state.x.start = +pos1[1];
2171
+ this.hic.state.x.stop = +pos1[2];
2172
+ this.hic.state.y.start = +pos2[1];
2173
+ this.hic.state.y.stop = +pos2[2];
2174
+ this.hic.state.currView = "detail";
2175
+ } else {
2176
+ this.hic.state.currView = "chrpair";
2177
+ }
2178
+ } else {
2179
+ if (!this.views.some((v) => v === this.hic.state.currView)) this.error(`Unknown view: ${this.hic.state.currView}`);
2180
+ else return this.hic.state.currView;
2181
+ }
2182
+ }
2183
+ getViewsConfig() {
2184
+ if (this.hic.maxCutoffPercentile) this.hic.state.maxCutoffPercentile = this.hic.maxCutoffPercentile;
2185
+ let nmeth;
2186
+ if (this.hic["normalization"]?.length > 0) {
2187
+ if (!this.hic["normalization"].includes("NONE")) this.hic["normalization"].unshift("NONE");
2188
+ nmeth = this.hic["normalization"][0];
2189
+ } else {
2190
+ nmeth = "NONE";
2191
+ }
2192
+ if (this.hic.state.currView) {
2193
+ if (!this.hic.state[this.hic.state.currView]) this.hic.state[this.hic.state.currView] = {};
2194
+ if (!this.hic.state[this.hic.state.currView]?.matrixType) {
2195
+ this.hic.state[this.hic.state.currView].matrixType = "observed";
2196
+ }
2197
+ if (!this.hic.state[this.hic.state.currView]?.nmeth) {
2198
+ this.hic.state[this.hic.state.currView].nmeth = nmeth;
2199
+ }
2200
+ }
2201
+ for (const v of this.views) {
2202
+ if (!this.hic.state[v]) {
2203
+ this.hic.state[v] = {
2204
+ matrixType: "observed",
2205
+ nmeth
2206
+ };
2207
+ }
2208
+ }
2209
+ }
2210
+ async init() {
2211
+ this.determineView();
2212
+ try {
2213
+ await hicParseFile(this.hic, true, this.errList);
2214
+ this.getViewsConfig();
2215
+ this.store = await hicStoreInit({ app: this.api, state: this.hic.state });
2216
+ this.state = await this.store.copyState();
2217
+ this.components = {
2218
+ loadingOverlay: await loadingInit({
2219
+ app: this.api,
2220
+ loadingDiv: this.dom.loadingDiv
2221
+ }),
2222
+ view: await viewCompInit({
2223
+ app: this.api,
2224
+ state: this.state,
2225
+ dom: this.dom,
2226
+ hic: this.hic,
2227
+ errList: this.errList,
2228
+ error: this.error
2229
+ })
2230
+ };
2231
+ await this.api.dispatch();
2232
+ } catch (e) {
2233
+ console.error(e.stack || e);
2234
+ }
2235
+ }
2236
+ main() {
2237
+ if (this.errList.length) {
2238
+ this.error(this.errList);
2239
+ this.dom.loadingDiv.style("display", "none");
2240
+ return;
2241
+ }
2242
+ }
2243
+ };
2244
+ var hicInit = getAppInit(HicApp);
2245
+ export {
2246
+ hicInit
2247
+ };
2248
+ //# sourceMappingURL=HicApp-RVFHTYED.js.map