@sjcrh/proteinpaint-client 2.200.0 → 2.201.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.
- package/dist/2dmaf-6MNHNHWX.js +1373 -0
- package/dist/AIProjectAdmin-W36NGUX2.js +958 -0
- package/dist/AggregateMatrix-YH2SN6VN.js +671 -0
- package/dist/AggregateMatrix-YH2SN6VN.js.map +7 -0
- package/dist/AppHeader-I5CFECIL.js +835 -0
- package/dist/BoxPlot-4SXDAOBP.js +1218 -0
- package/dist/CorrelationVolcano-NAWMGG4Q.js +619 -0
- package/dist/DE-VZMT7KEM.js +95 -0
- package/dist/DEinput-TKERM2YD.js +409 -0
- package/dist/DifferentialAnalysis-Y4SU4BVP.js +243 -0
- package/dist/Disco-DLK3BYPV.js +3392 -0
- package/dist/Disco.UI-IKGMFG36.js +248 -0
- package/dist/DmrPlot-JWBZJFS6.js +642 -0
- package/dist/GB-3UZSSIBW.js +1396 -0
- package/dist/GSEA-YLHBZY55.js +846 -0
- package/dist/GeneExpInput-KX5I63YV.js +367 -0
- package/dist/Geomap-QTUHM4VH.js +89 -0
- package/dist/HicApp-M2OCHGRT.js +2250 -0
- package/dist/IDCViewer-SWFBLBZH.js +10817 -0
- package/dist/NumBinaryEditor-ILFP6DR7.js +284 -0
- package/dist/NumBinaryEditor-ILFP6DR7.js.map +7 -0
- package/dist/NumBinaryEditor.unit.spec-TNIH7GQB.js +317 -0
- package/dist/NumBinaryEditor.unit.spec-TNIH7GQB.js.map +7 -0
- package/dist/NumContEditor-7UR3QMO6.js +110 -0
- package/dist/NumContEditor-7UR3QMO6.js.map +7 -0
- package/dist/NumContEditor.unit.spec-P67AFEHM.js +169 -0
- package/dist/NumCustomBinEditor-H22J4K47.js +38 -0
- package/dist/NumCustomBinEditor.unit.spec-CO76BQPZ.js +402 -0
- package/dist/NumCustomBinEditor.unit.spec-CO76BQPZ.js.map +7 -0
- package/dist/NumDiscreteEditor-TSUHVX77.js +175 -0
- package/dist/NumDiscreteEditor-TSUHVX77.js.map +7 -0
- package/dist/NumDiscreteEditor.unit.spec-RGC3GT22.js +238 -0
- package/dist/NumDiscreteEditor.unit.spec-RGC3GT22.js.map +7 -0
- package/dist/NumRegularBinEditor-IRD27CE2.js +38 -0
- package/dist/NumRegularBinEditor.unit.spec-MUHVOK5P.js +283 -0
- package/dist/NumRegularBinEditor.unit.spec-MUHVOK5P.js.map +7 -0
- package/dist/NumSplineEditor-3V7RWHE2.js +215 -0
- package/dist/NumSplineEditor-3V7RWHE2.js.map +7 -0
- package/dist/NumSplineEditor.unit.spec-BUI7NPN4.js +229 -0
- package/dist/NumSplineEditor.unit.spec-BUI7NPN4.js.map +7 -0
- package/dist/NumericDensity-53KMCTDL.js +38 -0
- package/dist/NumericDensity.unit.spec-OKAQPQHR.js +423 -0
- package/dist/NumericDensity.unit.spec-OKAQPQHR.js.map +7 -0
- package/dist/NumericHandler-5QFNXVBA.js +39 -0
- package/dist/NumericHandler.unit.spec-OBITSUU3.js +219 -0
- package/dist/ProteomeInput-MM373EL3.js +394 -0
- package/dist/RunChart2-2L6T3ITZ.js +758 -0
- package/dist/SC-JKD3Z2X5.js +1112 -0
- package/dist/Volcano-STGBS7IJ.js +1404 -0
- package/dist/WSIViewer-LOBVUTOD.js +48562 -0
- package/dist/WsiSamplesPlot-D3L3AILR.js +165 -0
- package/dist/adSandbox-XO5HDSFW.js +38 -0
- package/dist/animatedBubbleChart-XKW6TCZP.js +553 -0
- package/dist/app-H7ABTG6X.js +49 -0
- package/dist/app-HJSPIKRQ.js +37 -0
- package/dist/app.js +19 -19
- package/dist/bam-R5QVHWGY.js +859 -0
- package/dist/barchart-OGCLBPQ2.js +47 -0
- package/dist/barchart.data-VBSWS5N7.js +21 -0
- package/dist/barchart.events-GZTY4IC3.js +47 -0
- package/dist/barchart.integration.spec-Z6ECNFSM.js +2243 -0
- package/dist/barchart2-DT42I747.js +314 -0
- package/dist/block-UYYJXSCM.js +6255 -0
- package/dist/block.init-43M53IMA.js +38 -0
- package/dist/block.mds.expressionrank-YH3IWMKM.js +359 -0
- package/dist/block.mds.geneboxplot-QS2IK37X.js +828 -0
- package/dist/block.mds.junction-7FF5BFEX.js +1545 -0
- package/dist/block.mds.svcnv-MMJYLL2W.js +6801 -0
- package/dist/block.svg-SA6DSUM2.js +164 -0
- package/dist/block.tk.aicheck-ZX5LZ2QO.js +283 -0
- package/dist/block.tk.ase-YXT4BOXK.js +365 -0
- package/dist/block.tk.bam-IMLRIOOV.js +1906 -0
- package/dist/block.tk.bedgraphdot-UYQLL7HM.js +384 -0
- package/dist/block.tk.bigwig.ui-WUVLVRSM.js +211 -0
- package/dist/block.tk.hicstraw-N4SJGF7H.js +823 -0
- package/dist/block.tk.junction-LZWHFKWJ.js +2364 -0
- package/dist/block.tk.junction.textmatrixui-B626NYPA.js +199 -0
- package/dist/block.tk.ld-6VWUMAP6.js +99 -0
- package/dist/block.tk.menu-RRN2UPQX.js +1029 -0
- package/dist/block.tk.pgv-GYG3EI6P.js +944 -0
- package/dist/brainImaging-VIMLETC5.js +423 -0
- package/dist/brainRegions-DRYZT5K5.js +221 -0
- package/dist/bubbleHeatmap-Y4SGMVJY.js +383 -0
- package/dist/cellTypeBubbleHeatmap-QW37ZT5W.js +283 -0
- package/dist/chunk-2Y5C7GJS.js +299 -0
- package/dist/chunk-2ZTCRUOL.js +2899 -0
- package/dist/chunk-3O6XFPUB.js +243 -0
- package/dist/chunk-3O6XFPUB.js.map +7 -0
- package/dist/chunk-3P74DH6P.js +236 -0
- package/dist/chunk-3PPCZPLN.js +98 -0
- package/dist/chunk-4H4WJJ2G.js +54 -0
- package/dist/chunk-4L2OSDQ6.js +626 -0
- package/dist/chunk-4USLEUNR.js +1812 -0
- package/dist/chunk-5ITKSTJX.js +34 -0
- package/dist/chunk-5VMYXVZG.js +272 -0
- package/dist/chunk-75T7ESEO.js +61 -0
- package/dist/chunk-75T7ESEO.js.map +7 -0
- package/dist/chunk-7ZVFLC2V.js +134 -0
- package/dist/chunk-A7OWXDYA.js +129 -0
- package/dist/chunk-A7OWXDYA.js.map +7 -0
- package/dist/chunk-C2JHLAKV.js +222 -0
- package/dist/chunk-C2JHLAKV.js.map +7 -0
- package/dist/chunk-C5IAIOCA.js +102 -0
- package/dist/chunk-CIRCVMWE.js +102 -0
- package/dist/chunk-CLTRQZGJ.js +170 -0
- package/dist/chunk-CRH37PEV.js +203 -0
- package/dist/chunk-DCNDZOI3.js +6364 -0
- package/dist/chunk-DCR4QQ5Y.js +194 -0
- package/dist/chunk-DKAHHMKN.js +5070 -0
- package/dist/chunk-E2GHT7RH.js +39 -0
- package/dist/chunk-EQCVSUAF.js +37 -0
- package/dist/chunk-ETK36FXN.js +384 -0
- package/dist/chunk-FCOX5Q4Q.js +58 -0
- package/dist/chunk-FVL37XFU.js +834 -0
- package/dist/chunk-FXQXCOII.js +101 -0
- package/dist/chunk-FXQXCOII.js.map +7 -0
- package/dist/chunk-FXS4I3Z3.js +176 -0
- package/dist/chunk-FYAY6D3O.js +123 -0
- package/dist/chunk-GEQUQ3GG.js +1652 -0
- package/dist/chunk-GEQUQ3GG.js.map +7 -0
- package/dist/chunk-GL44X7JY.js +302 -0
- package/dist/chunk-HQAJVJCQ.js +195 -0
- package/dist/chunk-HQAJVJCQ.js.map +7 -0
- package/dist/chunk-IQVBMLFI.js +446 -0
- package/dist/chunk-IYT5PNYJ.js +148 -0
- package/dist/chunk-J6EP7JPJ.js +1245 -0
- package/dist/chunk-JKMN7XOP.js +1114 -0
- package/dist/chunk-JKMN7XOP.js.map +7 -0
- package/dist/chunk-JLGCQ2F4.js +480 -0
- package/dist/chunk-JQT67SWE.js +263 -0
- package/dist/chunk-JQYPRW42.js +217 -0
- package/dist/chunk-K4IGOJPT.js +160 -0
- package/dist/chunk-K6OVOHIZ.js +21483 -0
- package/dist/chunk-K6OVOHIZ.js.map +7 -0
- package/dist/chunk-KPTPDZX2.js +56 -0
- package/dist/chunk-KTB7KXC2.js +187 -0
- package/dist/chunk-KW7MKBGF.js +2681 -0
- package/dist/chunk-KZFVYDVK.js +448 -0
- package/dist/chunk-L44P5N4U.js +314 -0
- package/dist/chunk-L44P5N4U.js.map +7 -0
- package/dist/chunk-M77DCLJX.js +100 -0
- package/dist/chunk-MFEYO6FB.js +4306 -0
- package/dist/chunk-MFEYO6FB.js.map +7 -0
- package/dist/chunk-MGGAWPTR.js +54 -0
- package/dist/chunk-MKPU5TWN.js +194 -0
- package/dist/chunk-MKPU5TWN.js.map +7 -0
- package/dist/chunk-MUJMZ6W6.js +129 -0
- package/dist/chunk-NRP55BOF.js +50 -0
- package/dist/chunk-O5KFJBU3.js +1942 -0
- package/dist/chunk-Q4AP5L7R.js +1311 -0
- package/dist/chunk-Q4AP5L7R.js.map +7 -0
- package/dist/chunk-QHPN3JJZ.js +55 -0
- package/dist/chunk-QSGXZEUU.js +465 -0
- package/dist/chunk-R3ARQMM4.js +119 -0
- package/dist/chunk-RIQT2LSR.js +479 -0
- package/dist/chunk-RVRRHEUG.js +26 -0
- package/dist/chunk-SOCGXVIL.js +2327 -0
- package/dist/chunk-SZHFBRRT.js +514 -0
- package/dist/chunk-TOYMIFHN.js +381 -0
- package/dist/chunk-TPVHGI7Q.js +368 -0
- package/dist/chunk-TRQUMV4T.js +254 -0
- package/dist/chunk-UFLJ6PRI.js +387 -0
- package/dist/chunk-UFLJ6PRI.js.map +7 -0
- package/dist/chunk-UJN2RH5R.js +411 -0
- package/dist/chunk-UJN2RH5R.js.map +7 -0
- package/dist/chunk-UO7MD3XA.js +556 -0
- package/dist/chunk-UONOFG2J.js +274 -0
- package/dist/chunk-V2DU2OXH.js +1710 -0
- package/dist/chunk-WWXXSQ2M.js +31 -0
- package/dist/chunk-X6VTVZY7.js +263 -0
- package/dist/chunk-X7KRSZQT.js +2784 -0
- package/dist/chunk-XFAL46LZ.js +102 -0
- package/dist/chunk-XFAL46LZ.js.map +7 -0
- package/dist/chunk-XIBY5I6F.js +240 -0
- package/dist/chunk-XIBY5I6F.js.map +7 -0
- package/dist/chunk-XJBSBIZ4.js +70 -0
- package/dist/chunk-XRQWZJJ3.js +347 -0
- package/dist/chunk-XZ4M3QAV.js +158 -0
- package/dist/chunk-YMP4YKBN.js +142 -0
- package/dist/chunk-YUURGVV3.js +275 -0
- package/dist/chunk-Z7VK2AMA.js +292 -0
- package/dist/chunk-ZFJUVP2N.js +787 -0
- package/dist/chunk-ZH7JPYQE.js +14 -0
- package/dist/chunk-ZVDOSFWU.js +276 -0
- package/dist/cohort-CEYVJJ7E.js +75 -0
- package/dist/condition-QSOFP4MY.js +332 -0
- package/dist/controls-QYHARIEY.js +39 -0
- package/dist/controls.config-3OO3JK6E.js +39 -0
- package/dist/correlation-TOI3TMYL.js +102 -0
- package/dist/cuminc-L7OJTYXC.js +1148 -0
- package/dist/cuminc.integration.spec-LSWV3KOF.js +678 -0
- package/dist/customdata.inputui-VMB3HSSC.js +289 -0
- package/dist/dataDownload-NPSWNOAG.js +330 -0
- package/dist/dataDownload.integration.spec-J6FRFLBK.js +193 -0
- package/dist/databrowser.ui-GVYWG6YI.js +432 -0
- package/dist/dictionary-GD67R72W.js +118 -0
- package/dist/dnaMethylation-S7OSGLAF.js +38 -0
- package/dist/dnaMethylation.integration.spec-ETMMJNDE.js +203 -0
- package/dist/dofetch-7GURQS65.js +51 -0
- package/dist/e2pca-ZIIPBJFN.js +350 -0
- package/dist/ep-A2HAL5WA.js +1256 -0
- package/dist/expclust.gdc.spec-ZSILLYNI.js +307 -0
- package/dist/facet-74LKIPTA.js +521 -0
- package/dist/gb-C3MPQXKN.js +88 -0
- package/dist/geneExpClustering-HYCFUUTU.js +249 -0
- package/dist/geneExpression-GATKMJJ5.js +313 -0
- package/dist/geneExpression-JXSAP2H7.js +38 -0
- package/dist/geneExpression.unit.spec-CODZYFHZ.js +102 -0
- package/dist/geneORA-LJRIR4VV.js +278 -0
- package/dist/geneRanking-TWLBKQZG.js +553 -0
- package/dist/geneVariant-35RQHTCK.js +41 -0
- package/dist/geneVariant-TMJJIMUF.js +39 -0
- package/dist/geneVariant.integration.spec-FIQ7IBSD.js +198 -0
- package/dist/genefusion.ui-SOBESSNO.js +308 -0
- package/dist/geneset-JXEJFEK2.js +208 -0
- package/dist/genomeBrowser.spec-25ZO5S2X.js +281 -0
- package/dist/grin2-CW4RPVPI.js +75 -0
- package/dist/grin2-EI5BVP4E.js +1143 -0
- package/dist/hierCluster-OBBPQH24.js +59 -0
- package/dist/hierCluster-SDH3TJQY.js +63 -0
- package/dist/hierCluster.config-DO67TCXI.js +40 -0
- package/dist/hierCluster.integration.spec-EB24C4VZ.js +488 -0
- package/dist/hierCluster.interactivity-LGEAFT5T.js +54 -0
- package/dist/hierCluster.renderers-FXDCU3PN.js +21 -0
- package/dist/imagePlot-LGLFG2QZ.js +163 -0
- package/dist/importPlot-R2WRZGZU.js +8 -0
- package/dist/isoformExpression-KI3WY5M3.js +40 -0
- package/dist/isoformExpression.unit.spec-OQRG2DDU.js +242 -0
- package/dist/junction-6SWFPNM5.js +41 -0
- package/dist/junction.customTerm-MDBOU6I7.js +18 -0
- package/dist/junction.unit.spec-5TZFITSU.js +187 -0
- package/dist/launch.adhoc-HCX2RQLB.js +42 -0
- package/dist/leftlabel.sample-OI6XCXTQ.js +263 -0
- package/dist/lollipop-SOSOYHYL.js +171 -0
- package/dist/maf-73RLOEVN.js +459 -0
- package/dist/maftimeline-UOMLYUNI.js +593 -0
- package/dist/matrix-5QWDN6SI.js +63 -0
- package/dist/matrix-SKPVVDVR.js +58 -0
- package/dist/matrix.cells-CFSI2NWU.js +28 -0
- package/dist/matrix.config-HE64MAL4.js +41 -0
- package/dist/matrix.data-HTUZXQAM.js +25 -0
- package/dist/matrix.groups-ZFKWVNMX.js +27 -0
- package/dist/matrix.integration.spec-YKJ4LZFY.js +3072 -0
- package/dist/matrix.interactivity-YB5G5W5T.js +42 -0
- package/dist/matrix.layout-MFG65V7K.js +44 -0
- package/dist/matrix.legend-7MIZZJVB.js +22 -0
- package/dist/matrix.renderers-PCZFHDDZ.js +38 -0
- package/dist/matrix.serieses-7KYX3KAY.js +21 -0
- package/dist/matrix.sort-CR3J45MQ.js +27 -0
- package/dist/matrix.sort.unit.spec-GEAM5DSU.js +472 -0
- package/dist/matrix.sorterUi-YSKIX6B6.js +18 -0
- package/dist/matrix.sorterUi.unit.spec-2MW64QS5.js +342 -0
- package/dist/mavb-YMHJXCGA.js +732 -0
- package/dist/mds.fimo-PTEDRMLQ.js +518 -0
- package/dist/mds.samplescatterplot-7R7PLVQJ.js +1550 -0
- package/dist/mds.survivalplot-F3EENMFQ.js +483 -0
- package/dist/numericDictTermCluster-3HXLMURH.js +65 -0
- package/dist/oncomatrix-27VVSMZB.js +295 -0
- package/dist/oncomatrix.spec-F43Y7CWN.js +448 -0
- package/dist/plot.2dvaf-MYFQSWIA.js +377 -0
- package/dist/plot.app-36QWCKXR.js +41 -0
- package/dist/plot.barplot-535EP7XT.js +102 -0
- package/dist/plot.boxplot-6IBP7VEB.js +152 -0
- package/dist/plot.brainImaging-M4HPNXZH.js +51 -0
- package/dist/plot.disco-HIT6GR44.js +102 -0
- package/dist/plot.dzi-W66SBKTH.js +33 -0
- package/dist/plot.ssgq-MI2OMCUY.js +139 -0
- package/dist/plot.vaf2cov-F4CBMLRA.js +259 -0
- package/dist/plot.wsi-7M5KTNFC.js +36 -0
- package/dist/polar2-7VSWGT4U.js +237 -0
- package/dist/profileForms-DFPCNJW2.js +940 -0
- package/dist/profilePlot-ECTPPVB2.js +54 -0
- package/dist/proteinView-6ELOLOIU.js +1568 -0
- package/dist/proteomeCohortCompare-V2FMWI62.js +799 -0
- package/dist/pseudbulk.unit.spec-KV6URTXC.js +91 -0
- package/dist/pseudobulk-6ZRFCE65.js +40 -0
- package/dist/qualitative-3B62RUOB.js +43 -0
- package/dist/qualitative-GJDQBD7L.js +220 -0
- package/dist/radar2-4QQER64E.js +332 -0
- package/dist/radarFacility2-MZKORRDY.js +340 -0
- package/dist/regression-GZ2YNX6Y.js +56 -0
- package/dist/regression.inputs-ZEFDNSVT.js +48 -0
- package/dist/regression.inputs.term-O2FQBX7L.js +48 -0
- package/dist/regression.inputs.values.table-63BQKSZP.js +45 -0
- package/dist/regression.integration.spec-KDHC3KDU.js +838 -0
- package/dist/regression.integration.spec-KDHC3KDU.js.map +7 -0
- package/dist/regression.results-5J3QM4RX.js +40 -0
- package/dist/regression.spec-WZAZTDDA.js +708 -0
- package/dist/render-MZTEXVU5.js +38 -0
- package/dist/report-M5TYHH2W.js +222 -0
- package/dist/sampleView-QYTLYJEW.js +48 -0
- package/dist/samplelst-FN3Q7M7A.js +111 -0
- package/dist/samplematrix-Z5FVODO7.js +2198 -0
- package/dist/sc-4CHP5SYP.js +86 -0
- package/dist/scatter-UOPJYXL3.js +890 -0
- package/dist/scatter-UOPJYXL3.js.map +7 -0
- package/dist/selectGenomeWithTklst-WMAHGT4F.js +134 -0
- package/dist/singleCellCellType-XPWENB6V.js +38 -0
- package/dist/singleCellCellType.unit.spec-QK56PHKW.js +159 -0
- package/dist/singleCellGeneExpression-4CEVDVYF.js +38 -0
- package/dist/singleCellGeneExpression.unit.spec-ZYRLBVF5.js +153 -0
- package/dist/singleCellPlot-JS74VUGC.js +54 -0
- package/dist/singlecell-5XYOHMWJ.js +1572 -0
- package/dist/singlecell-OO77XBDD.js +86 -0
- package/dist/snp-X5ZILM5J.js +38 -0
- package/dist/snp.unit.spec-V23G3JLJ.js +176 -0
- package/dist/snplocus-U5UIIUWR.js +208 -0
- package/dist/spliceevent.a53ss.diagram-YDFVSDMT.js +151 -0
- package/dist/spliceevent.exonskip.diagram-VDKN5JBE.js +283 -0
- package/dist/spliceevent.noeventdiagram-EFPFRUFI.js +460 -0
- package/dist/ssGSEA-LKJW5OQK.js +38 -0
- package/dist/ssGSEA.unit.spec-7WCZVEP2.js +88 -0
- package/dist/studyCatalog-EU33KE5H.js +358 -0
- package/dist/summarizeCnvGeneexp-QL25OQNB.js +163 -0
- package/dist/summarizeGeneexpSurvival-B7HTCH7L.js +110 -0
- package/dist/summarizeMutationCnv-DFAPX2JE.js +164 -0
- package/dist/summarizeMutationDiagnosis-HCSDSVII.js +40 -0
- package/dist/summarizeMutationSurvival-6WEASSA2.js +99 -0
- package/dist/summary-BWYXE77G.js +49 -0
- package/dist/summary.integration.spec-AVGSW5MF.js +414 -0
- package/dist/summaryInput-MOQ6HUCX.js +231 -0
- package/dist/sunburst-EZDHVJCL.js +284 -0
- package/dist/survival-5TFMM7NP.js +1239 -0
- package/dist/survival-IEVELTC4.js +58 -0
- package/dist/survival.integration.spec-HHWP3R4H.js +958 -0
- package/dist/svgraph-55XRIYJW.js +1387 -0
- package/dist/svmr-CMEBFSRO.js +3842 -0
- package/dist/table-LTWQ3TLQ.js +200 -0
- package/dist/termCollection-CPQXYBFA.js +38 -0
- package/dist/termCollection-ZWOH273K.js +257 -0
- package/dist/termCollection.unit.spec-RK7VATLU.js +304 -0
- package/dist/termCollectionFractionSelection-Z4ZRW63R.js +47 -0
- package/dist/termCollectionFractionSelection.unit.spec-3CS7DPNU.js +193 -0
- package/dist/tk-4NNTWWLK.js +46 -0
- package/dist/tk-RHWJJXH2.js +1127 -0
- package/dist/tp.ui-DPN5UN6U.js +1459 -0
- package/dist/tvs.density-LMRZZO4D.js +19 -0
- package/dist/tvs.dt-ARPDFRVM.js +39 -0
- package/dist/tvs.dtcnv.categorical-POS6WQK6.js +40 -0
- package/dist/tvs.dtcnv.continuous-5OETJ7JU.js +72 -0
- package/dist/tvs.dtfusion-ERYVI3DW.js +40 -0
- package/dist/tvs.dtitd-KTZZYEWU.js +40 -0
- package/dist/tvs.dtsnvindel-TGUAX3RN.js +40 -0
- package/dist/tvs.dtsv-AM63OIL6.js +40 -0
- package/dist/tvs.numeric-MQPO5XUQ.js +22 -0
- package/dist/tvs.samplelst-VW2NOQ2C.js +104 -0
- package/dist/tvs.termCollection-O4ZSWJFA.js +129 -0
- package/dist/violin-ZQ3DEYGR.js +46 -0
- package/dist/violin.integration.spec-PVEF77HB.js +1425 -0
- package/dist/violin.interactivity-FYU4TCFO.js +38 -0
- package/dist/violin.renderer-XAERGBMV.js +40 -0
- package/dist/vocabulary-ECJX27W2.js +41 -0
- package/package.json +3 -3
- package/dist/2dmaf-RRV3ORZR.js +0 -1373
- package/dist/AIProjectAdmin-DKLEFCGX.js +0 -958
- package/dist/AppHeader-WQ2F7HZY.js +0 -835
- package/dist/BoxPlot-5JQCYENZ.js +0 -1218
- package/dist/CorrelationVolcano-HR6IP2SZ.js +0 -619
- package/dist/DE-DAW6ZKM7.js +0 -95
- package/dist/DEinput-XCR4VMR3.js +0 -409
- package/dist/DifferentialAnalysis-SETJAZEN.js +0 -243
- package/dist/Disco-QEBEVQS2.js +0 -3392
- package/dist/Disco.UI-OYVL7UBI.js +0 -248
- package/dist/DmrPlot-CWBQDZL7.js +0 -642
- package/dist/GB-5PYCR4SV.js +0 -1396
- package/dist/GSEA-6UKMI6GY.js +0 -846
- package/dist/GeneExpInput-2N62XM7Z.js +0 -367
- package/dist/Geomap-ANMR32HE.js +0 -89
- package/dist/HicApp-WHPUPHEM.js +0 -2250
- package/dist/IDCViewer-FWXRE4AX.js +0 -10817
- package/dist/NumBinaryEditor-VG5KOGDA.js +0 -271
- package/dist/NumBinaryEditor-VG5KOGDA.js.map +0 -7
- package/dist/NumBinaryEditor.unit.spec-UCGFZS3P.js +0 -286
- package/dist/NumBinaryEditor.unit.spec-UCGFZS3P.js.map +0 -7
- package/dist/NumContEditor-J52RON3G.js +0 -109
- package/dist/NumContEditor-J52RON3G.js.map +0 -7
- package/dist/NumContEditor.unit.spec-5GTWUJEL.js +0 -169
- package/dist/NumCustomBinEditor-GM2OJMOX.js +0 -38
- package/dist/NumCustomBinEditor.unit.spec-3PGJ25J4.js +0 -284
- package/dist/NumCustomBinEditor.unit.spec-3PGJ25J4.js.map +0 -7
- package/dist/NumDiscreteEditor-2CAKT3Y4.js +0 -179
- package/dist/NumDiscreteEditor-2CAKT3Y4.js.map +0 -7
- package/dist/NumDiscreteEditor.unit.spec-XCWSJTRT.js +0 -202
- package/dist/NumDiscreteEditor.unit.spec-XCWSJTRT.js.map +0 -7
- package/dist/NumRegularBinEditor-CZYITY5L.js +0 -38
- package/dist/NumRegularBinEditor.unit.spec-OUBZ5XB3.js +0 -227
- package/dist/NumRegularBinEditor.unit.spec-OUBZ5XB3.js.map +0 -7
- package/dist/NumSplineEditor-TWRL5AQQ.js +0 -198
- package/dist/NumSplineEditor-TWRL5AQQ.js.map +0 -7
- package/dist/NumSplineEditor.unit.spec-5P6NQZ3N.js +0 -199
- package/dist/NumSplineEditor.unit.spec-5P6NQZ3N.js.map +0 -7
- package/dist/NumericDensity-JSOFOEH2.js +0 -38
- package/dist/NumericDensity.unit.spec-REUKHMKK.js +0 -221
- package/dist/NumericDensity.unit.spec-REUKHMKK.js.map +0 -7
- package/dist/NumericHandler-UZOGKPKB.js +0 -39
- package/dist/NumericHandler.unit.spec-X2DAED4O.js +0 -219
- package/dist/ProteomeInput-GBVCLNS7.js +0 -394
- package/dist/RunChart2-N4JPWNVV.js +0 -758
- package/dist/SC-RCZT5BRP.js +0 -1112
- package/dist/Volcano-2BQ6SYHO.js +0 -1404
- package/dist/WSIViewer-UDA4WIRT.js +0 -48562
- package/dist/WsiSamplesPlot-DYSFMD22.js +0 -165
- package/dist/adSandbox-5BUDCAER.js +0 -38
- package/dist/animatedBubbleChart-N6MBJ4X3.js +0 -553
- package/dist/app-O64TGDFH.js +0 -37
- package/dist/app-Y2STUISK.js +0 -49
- package/dist/bam-2EOABVGT.js +0 -859
- package/dist/barchart-UHCTYRMJ.js +0 -47
- package/dist/barchart.data-LSK2P2PR.js +0 -21
- package/dist/barchart.events-Y4H2GADS.js +0 -47
- package/dist/barchart.integration.spec-BFGZFECA.js +0 -2243
- package/dist/barchart2-VIZKZRMP.js +0 -314
- package/dist/block-BGSSF6XP.js +0 -6255
- package/dist/block.init-H7RKUIHG.js +0 -38
- package/dist/block.mds.expressionrank-MA3HGT7S.js +0 -359
- package/dist/block.mds.geneboxplot-CWT5DM5T.js +0 -828
- package/dist/block.mds.junction-P4I7O73X.js +0 -1545
- package/dist/block.mds.svcnv-NSPEY43S.js +0 -6801
- package/dist/block.svg-DP4G3LNQ.js +0 -164
- package/dist/block.tk.aicheck-EBLTOWKZ.js +0 -283
- package/dist/block.tk.ase-X7WKQOFS.js +0 -365
- package/dist/block.tk.bam-OIP3TS3N.js +0 -1906
- package/dist/block.tk.bedgraphdot-2DDF55J3.js +0 -384
- package/dist/block.tk.bigwig.ui-S2SMAEXM.js +0 -211
- package/dist/block.tk.hicstraw-4OIG4TBZ.js +0 -823
- package/dist/block.tk.junction-52OWEQUN.js +0 -2364
- package/dist/block.tk.junction.textmatrixui-64YOSZLW.js +0 -199
- package/dist/block.tk.ld-3AMNHBDY.js +0 -99
- package/dist/block.tk.menu-4724DJXL.js +0 -1029
- package/dist/block.tk.pgv-2SIOPWYI.js +0 -944
- package/dist/brainImaging-D43CQQN6.js +0 -423
- package/dist/brainRegions-HJ2VGL3L.js +0 -221
- package/dist/bubbleHeatmap-IL44M4QZ.js +0 -383
- package/dist/cellTypeBubbleHeatmap-NQP7RCZO.js +0 -283
- package/dist/chunk-26APRXD3.js +0 -254
- package/dist/chunk-2GLA2SWU.js +0 -160
- package/dist/chunk-3BGFM7Q4.js +0 -1275
- package/dist/chunk-3BGFM7Q4.js.map +0 -7
- package/dist/chunk-3SHZTAGF.js +0 -193
- package/dist/chunk-3SHZTAGF.js.map +0 -7
- package/dist/chunk-46X6AQ7Z.js +0 -123
- package/dist/chunk-4HZN6PMU.js +0 -129
- package/dist/chunk-4KRGCOTL.js +0 -479
- package/dist/chunk-5DMVORBB.js +0 -98
- package/dist/chunk-5QMBB4SK.js +0 -1245
- package/dist/chunk-5RVA43MN.js +0 -274
- package/dist/chunk-5T3MOOEJ.js +0 -379
- package/dist/chunk-5T3MOOEJ.js.map +0 -7
- package/dist/chunk-5T3ZDRTS.js +0 -70
- package/dist/chunk-5ZTVJSYI.js +0 -834
- package/dist/chunk-6JYQGZ3Y.js +0 -446
- package/dist/chunk-6OUBUUC2.js +0 -626
- package/dist/chunk-6PNPHACF.js +0 -1652
- package/dist/chunk-6PNPHACF.js.map +0 -7
- package/dist/chunk-7JRDJNLR.js +0 -263
- package/dist/chunk-7PIHRWGG.js +0 -102
- package/dist/chunk-7PJNKPQB.js +0 -275
- package/dist/chunk-AGLAYNXP.js +0 -170
- package/dist/chunk-B7VDZ6VF.js +0 -399
- package/dist/chunk-B7VDZ6VF.js.map +0 -7
- package/dist/chunk-BGTBRAJ6.js +0 -50
- package/dist/chunk-BNAO6N5X.js +0 -2899
- package/dist/chunk-BQHPJY2M.js +0 -347
- package/dist/chunk-BZTWTH4Y.js +0 -87
- package/dist/chunk-BZTWTH4Y.js.map +0 -7
- package/dist/chunk-CY4RQ5L6.js +0 -1710
- package/dist/chunk-D565DNJD.js +0 -236
- package/dist/chunk-DH3LAQKT.js +0 -384
- package/dist/chunk-E3VF4RHJ.js +0 -381
- package/dist/chunk-EGPNRSPF.js +0 -292
- package/dist/chunk-FACITNG5.js +0 -142
- package/dist/chunk-GNS6CQMA.js +0 -119
- package/dist/chunk-H3N4KYKL.js +0 -2327
- package/dist/chunk-H3VWJH4U.js +0 -14
- package/dist/chunk-HEVKBSN6.js +0 -222
- package/dist/chunk-HEVKBSN6.js.map +0 -7
- package/dist/chunk-HQUYAZQY.js +0 -514
- package/dist/chunk-IUBBQPO2.js +0 -146
- package/dist/chunk-IUBBQPO2.js.map +0 -7
- package/dist/chunk-J4USU73L.js +0 -26
- package/dist/chunk-JNITUVXP.js +0 -41
- package/dist/chunk-JNITUVXP.js.map +0 -7
- package/dist/chunk-JVPWIVDT.js +0 -1812
- package/dist/chunk-KU7YH7MV.js +0 -217
- package/dist/chunk-KZILNGAV.js +0 -187
- package/dist/chunk-LSEFWW72.js +0 -94
- package/dist/chunk-LSEFWW72.js.map +0 -7
- package/dist/chunk-M66VDGSH.js +0 -272
- package/dist/chunk-MJN6RDXB.js +0 -302
- package/dist/chunk-MPNEZ6EL.js +0 -31
- package/dist/chunk-MPSLUEI4.js +0 -314
- package/dist/chunk-MPSLUEI4.js.map +0 -7
- package/dist/chunk-NIXFCC7X.js +0 -368
- package/dist/chunk-NODQZTWK.js +0 -276
- package/dist/chunk-NRYHIWBS.js +0 -1942
- package/dist/chunk-NUWJ4RN7.js +0 -465
- package/dist/chunk-NVTJ5AUT.js +0 -1102
- package/dist/chunk-NVTJ5AUT.js.map +0 -7
- package/dist/chunk-NZRMHM76.js +0 -158
- package/dist/chunk-OOWXMY7U.js +0 -55
- package/dist/chunk-OTTMHVYH.js +0 -787
- package/dist/chunk-QDX2XUNF.js +0 -58
- package/dist/chunk-QYXCHZ6U.js +0 -4282
- package/dist/chunk-QYXCHZ6U.js.map +0 -7
- package/dist/chunk-R6NM2HSH.js +0 -556
- package/dist/chunk-RJOY6A74.js +0 -56
- package/dist/chunk-ROMW4AK2.js +0 -102
- package/dist/chunk-RR5U35N7.js +0 -230
- package/dist/chunk-RR5U35N7.js.map +0 -7
- package/dist/chunk-RVKADD4L.js +0 -148
- package/dist/chunk-S5ZCK44Z.js +0 -54
- package/dist/chunk-SNRIVNQ3.js +0 -176
- package/dist/chunk-STI7BO3P.js +0 -2681
- package/dist/chunk-TAM7UCAI.js +0 -263
- package/dist/chunk-TDKMBQSM.js +0 -5070
- package/dist/chunk-TKW5TW4Z.js +0 -21449
- package/dist/chunk-TKW5TW4Z.js.map +0 -7
- package/dist/chunk-TQTYW66I.js +0 -2784
- package/dist/chunk-U3NTH4CS.js +0 -54
- package/dist/chunk-UEGQVQD6.js +0 -34
- package/dist/chunk-ULESDMUT.js +0 -480
- package/dist/chunk-UUKSL7QC.js +0 -134
- package/dist/chunk-VUPWQCDR.js +0 -194
- package/dist/chunk-W76X6W73.js +0 -100
- package/dist/chunk-W7OS7BNM.js +0 -203
- package/dist/chunk-WKNI3HRQ.js +0 -39
- package/dist/chunk-WTTD6DUL.js +0 -6364
- package/dist/chunk-WXPFMVU6.js +0 -299
- package/dist/chunk-XNWUI5VL.js +0 -37
- package/dist/chunk-YBLTSYQV.js +0 -216
- package/dist/chunk-YBLTSYQV.js.map +0 -7
- package/dist/chunk-Z7VDFWIP.js +0 -126
- package/dist/chunk-Z7VDFWIP.js.map +0 -7
- package/dist/chunk-ZEKIUYN3.js +0 -448
- package/dist/cohort-OWLNJZVH.js +0 -75
- package/dist/condition-L2IXP6WH.js +0 -332
- package/dist/controls-2S5QVWUC.js +0 -39
- package/dist/controls.config-3AJKR4ZZ.js +0 -39
- package/dist/correlation-DXTAWSLU.js +0 -102
- package/dist/cuminc-WQB6FHVS.js +0 -1148
- package/dist/cuminc.integration.spec-WAYRLHUH.js +0 -678
- package/dist/customdata.inputui-7WH2NJGB.js +0 -289
- package/dist/dataDownload-HM4UYOBO.js +0 -330
- package/dist/dataDownload.integration.spec-F5CO4BWA.js +0 -193
- package/dist/databrowser.ui-E2YOG3L4.js +0 -432
- package/dist/dictionary-EEPTFDYD.js +0 -118
- package/dist/dnaMethylation-N3WNK6XA.js +0 -38
- package/dist/dnaMethylation.integration.spec-AIYRTFMR.js +0 -203
- package/dist/dofetch-YKYPEJTQ.js +0 -51
- package/dist/e2pca-JEZIGVB2.js +0 -350
- package/dist/ep-5FMH2MLV.js +0 -1256
- package/dist/expclust.gdc.spec-FR26VSUA.js +0 -307
- package/dist/facet-5YYY3MUN.js +0 -521
- package/dist/gb-WGEVO7L2.js +0 -88
- package/dist/geneExpClustering-DHE6XJHV.js +0 -249
- package/dist/geneExpression-5NWQXMJ3.js +0 -313
- package/dist/geneExpression-VWUMM2LU.js +0 -38
- package/dist/geneExpression.unit.spec-HBU3WTZ4.js +0 -102
- package/dist/geneORA-3VWFWDYI.js +0 -278
- package/dist/geneRanking-PKDVD5OD.js +0 -553
- package/dist/geneVariant-IFIJQXH4.js +0 -39
- package/dist/geneVariant-WZSOG4GI.js +0 -41
- package/dist/geneVariant.integration.spec-6KQMWVHR.js +0 -198
- package/dist/genefusion.ui-C4NTALL3.js +0 -308
- package/dist/geneset-RJAULSKC.js +0 -208
- package/dist/genomeBrowser.spec-42OTTMGO.js +0 -281
- package/dist/grin2-26O6YDDY.js +0 -75
- package/dist/grin2-FT5BQJMB.js +0 -1143
- package/dist/hierCluster-GJPPMFNR.js +0 -59
- package/dist/hierCluster-HMJF3PBE.js +0 -63
- package/dist/hierCluster.config-TAS7XKTU.js +0 -40
- package/dist/hierCluster.integration.spec-RLHQKX65.js +0 -488
- package/dist/hierCluster.interactivity-IKTAJ6CU.js +0 -54
- package/dist/hierCluster.renderers-I6WFZRNW.js +0 -21
- package/dist/imagePlot-N4OXNMVA.js +0 -163
- package/dist/importPlot-VMYXDP66.js +0 -8
- package/dist/isoformExpression-2KV64KMN.js +0 -40
- package/dist/isoformExpression.unit.spec-RG2VWEMG.js +0 -242
- package/dist/junction-VO4IGMW2.js +0 -41
- package/dist/junction.customTerm-EFMHHVWA.js +0 -18
- package/dist/junction.unit.spec-NB24MR2B.js +0 -187
- package/dist/launch.adhoc-R3MO3VXK.js +0 -42
- package/dist/leftlabel.sample-SI6KMULD.js +0 -263
- package/dist/lollipop-XIVE4ANX.js +0 -171
- package/dist/maf-WRHD4OJF.js +0 -459
- package/dist/maftimeline-IE6YKV7Y.js +0 -593
- package/dist/matrix-ALBCAZP5.js +0 -58
- package/dist/matrix-W72XRUZD.js +0 -63
- package/dist/matrix.cells-DEEUWC74.js +0 -28
- package/dist/matrix.config-JYXQOXDT.js +0 -41
- package/dist/matrix.data-ENXNM6RP.js +0 -25
- package/dist/matrix.groups-EXSNNESB.js +0 -27
- package/dist/matrix.integration.spec-BW6U6PIW.js +0 -3072
- package/dist/matrix.interactivity-G6AL566T.js +0 -42
- package/dist/matrix.layout-UBUPIJ3R.js +0 -44
- package/dist/matrix.legend-S3P4F2DG.js +0 -22
- package/dist/matrix.renderers-IXFGXHJQ.js +0 -38
- package/dist/matrix.serieses-THHXUAPM.js +0 -21
- package/dist/matrix.sort-WJV6LIZI.js +0 -27
- package/dist/matrix.sort.unit.spec-LGMIL2LR.js +0 -472
- package/dist/matrix.sorterUi-VXVCOKEZ.js +0 -18
- package/dist/matrix.sorterUi.unit.spec-CWSEJ62U.js +0 -342
- package/dist/mavb-SXGKASQ5.js +0 -732
- package/dist/mds.fimo-EDOT3TDN.js +0 -518
- package/dist/mds.samplescatterplot-IXHNABKB.js +0 -1550
- package/dist/mds.survivalplot-KTTMHHII.js +0 -483
- package/dist/numericDictTermCluster-H4JSPW22.js +0 -65
- package/dist/oncomatrix-O4EMNUOT.js +0 -295
- package/dist/oncomatrix.spec-BME6CQWF.js +0 -448
- package/dist/plot.2dvaf-FDM4KXGT.js +0 -377
- package/dist/plot.app-UNUXG7ND.js +0 -41
- package/dist/plot.barplot-R333TMG2.js +0 -102
- package/dist/plot.boxplot-KQTYGUN3.js +0 -152
- package/dist/plot.brainImaging-YBYMHCEG.js +0 -51
- package/dist/plot.disco-CMDKRSOM.js +0 -102
- package/dist/plot.dzi-YAZA6RQS.js +0 -33
- package/dist/plot.ssgq-YKCOEXZP.js +0 -139
- package/dist/plot.vaf2cov-3TLMTFZS.js +0 -259
- package/dist/plot.wsi-7ADVYTQS.js +0 -36
- package/dist/polar2-O5SHVLP4.js +0 -237
- package/dist/profileForms-RLB6SMPQ.js +0 -940
- package/dist/profilePlot-AP52VLLO.js +0 -54
- package/dist/proteinView-S7WDBMQU.js +0 -1568
- package/dist/proteomeCohortCompare-ERVUM7RO.js +0 -799
- package/dist/pseudbulk.unit.spec-VSH7IM3R.js +0 -91
- package/dist/pseudobulk-7UKRLKQI.js +0 -40
- package/dist/qualitative-2D7MC4V5.js +0 -43
- package/dist/qualitative-2INAKDTJ.js +0 -220
- package/dist/radar2-ELVGQFZE.js +0 -332
- package/dist/radarFacility2-SDAZHGNG.js +0 -340
- package/dist/regression-CE54AQMY.js +0 -56
- package/dist/regression.inputs-SMC5CNPY.js +0 -48
- package/dist/regression.inputs.term-XS54IQC2.js +0 -48
- package/dist/regression.inputs.values.table-LNPM3MX5.js +0 -45
- package/dist/regression.integration.spec-6QSMYPWJ.js +0 -784
- package/dist/regression.integration.spec-6QSMYPWJ.js.map +0 -7
- package/dist/regression.results-25ZRRDEE.js +0 -40
- package/dist/regression.spec-EDWHFRPY.js +0 -708
- package/dist/render-SEB6GFXQ.js +0 -38
- package/dist/report-U6L3KBYG.js +0 -222
- package/dist/sampleView-QAAJ26KT.js +0 -48
- package/dist/samplelst-KYRXJSZN.js +0 -111
- package/dist/samplematrix-STLF2QA5.js +0 -2198
- package/dist/sc-HL6YSMDX.js +0 -86
- package/dist/scatter-BSGDMOC2.js +0 -851
- package/dist/scatter-BSGDMOC2.js.map +0 -7
- package/dist/selectGenomeWithTklst-4NHQDTE6.js +0 -134
- package/dist/singleCellCellType-3E2IU42J.js +0 -38
- package/dist/singleCellCellType.unit.spec-MC7ZRSMW.js +0 -159
- package/dist/singleCellGeneExpression-53UUGYTK.js +0 -38
- package/dist/singleCellGeneExpression.unit.spec-QSLTXHFE.js +0 -153
- package/dist/singleCellPlot-JDSARDRV.js +0 -54
- package/dist/singlecell-IJR7BJYT.js +0 -1572
- package/dist/singlecell-OK6GJFWL.js +0 -86
- package/dist/snp-H4KJEEOE.js +0 -38
- package/dist/snp.unit.spec-2Y4A3XYI.js +0 -176
- package/dist/snplocus-4GG6VTWX.js +0 -208
- package/dist/spliceevent.a53ss.diagram-JZNRC5UC.js +0 -151
- package/dist/spliceevent.exonskip.diagram-H54N7ZKY.js +0 -283
- package/dist/spliceevent.noeventdiagram-II753XAK.js +0 -460
- package/dist/ssGSEA-JPJ3C4JI.js +0 -38
- package/dist/ssGSEA.unit.spec-45F5OCDK.js +0 -88
- package/dist/studyCatalog-O3VGIKDM.js +0 -358
- package/dist/summarizeCnvGeneexp-55DNXHXA.js +0 -163
- package/dist/summarizeGeneexpSurvival-VLO4DC5M.js +0 -110
- package/dist/summarizeMutationCnv-QX7BADYL.js +0 -164
- package/dist/summarizeMutationDiagnosis-MHFM7RX6.js +0 -40
- package/dist/summarizeMutationSurvival-G4KHSUBN.js +0 -99
- package/dist/summary-PJYRCQNY.js +0 -49
- package/dist/summary.integration.spec-KPKROD6L.js +0 -414
- package/dist/summaryInput-TOAL53EP.js +0 -231
- package/dist/sunburst-IGIV2RBE.js +0 -284
- package/dist/survival-DINCIWW7.js +0 -58
- package/dist/survival-RKV5BPDK.js +0 -1239
- package/dist/survival.integration.spec-7ZYBBZKT.js +0 -958
- package/dist/svgraph-EUEZWGVR.js +0 -1387
- package/dist/svmr-B24LODSC.js +0 -3842
- package/dist/table-XSJJ3UZV.js +0 -200
- package/dist/termCollection-IAB3425K.js +0 -38
- package/dist/termCollection-LGEGHZSJ.js +0 -257
- package/dist/termCollection.unit.spec-4TIRHC44.js +0 -304
- package/dist/termCollectionFractionSelection-35YKAOUY.js +0 -47
- package/dist/termCollectionFractionSelection.unit.spec-SUFEIKJZ.js +0 -193
- package/dist/tk-25EJJDRK.js +0 -46
- package/dist/tk-4E3XJ7CO.js +0 -1127
- package/dist/tp.ui-VGA62NFM.js +0 -1459
- package/dist/tvs.density-G56327WY.js +0 -19
- package/dist/tvs.dt-DFW36WKO.js +0 -39
- package/dist/tvs.dtcnv.categorical-ZP33EO3A.js +0 -40
- package/dist/tvs.dtcnv.continuous-FJTMQF4J.js +0 -72
- package/dist/tvs.dtfusion-FTDQWNKM.js +0 -40
- package/dist/tvs.dtitd-W5VEECJ2.js +0 -40
- package/dist/tvs.dtsnvindel-UOXSLCDZ.js +0 -40
- package/dist/tvs.dtsv-HWCPRVBO.js +0 -40
- package/dist/tvs.numeric-7TGKWQYU.js +0 -22
- package/dist/tvs.samplelst-OWD22ITS.js +0 -104
- package/dist/tvs.termCollection-27BWABYK.js +0 -129
- package/dist/violin-2IAVZGFF.js +0 -46
- package/dist/violin.integration.spec-JVODKUCL.js +0 -1425
- package/dist/violin.interactivity-STOCZMVN.js +0 -38
- package/dist/violin.renderer-MKDTJ3EX.js +0 -40
- package/dist/vocabulary-4IHU6DNN.js +0 -41
- /package/dist/{2dmaf-RRV3ORZR.js.map → 2dmaf-6MNHNHWX.js.map} +0 -0
- /package/dist/{AIProjectAdmin-DKLEFCGX.js.map → AIProjectAdmin-W36NGUX2.js.map} +0 -0
- /package/dist/{AppHeader-WQ2F7HZY.js.map → AppHeader-I5CFECIL.js.map} +0 -0
- /package/dist/{BoxPlot-5JQCYENZ.js.map → BoxPlot-4SXDAOBP.js.map} +0 -0
- /package/dist/{CorrelationVolcano-HR6IP2SZ.js.map → CorrelationVolcano-NAWMGG4Q.js.map} +0 -0
- /package/dist/{DE-DAW6ZKM7.js.map → DE-VZMT7KEM.js.map} +0 -0
- /package/dist/{DEinput-XCR4VMR3.js.map → DEinput-TKERM2YD.js.map} +0 -0
- /package/dist/{DifferentialAnalysis-SETJAZEN.js.map → DifferentialAnalysis-Y4SU4BVP.js.map} +0 -0
- /package/dist/{Disco-QEBEVQS2.js.map → Disco-DLK3BYPV.js.map} +0 -0
- /package/dist/{Disco.UI-OYVL7UBI.js.map → Disco.UI-IKGMFG36.js.map} +0 -0
- /package/dist/{DmrPlot-CWBQDZL7.js.map → DmrPlot-JWBZJFS6.js.map} +0 -0
- /package/dist/{GB-5PYCR4SV.js.map → GB-3UZSSIBW.js.map} +0 -0
- /package/dist/{GSEA-6UKMI6GY.js.map → GSEA-YLHBZY55.js.map} +0 -0
- /package/dist/{GeneExpInput-2N62XM7Z.js.map → GeneExpInput-KX5I63YV.js.map} +0 -0
- /package/dist/{Geomap-ANMR32HE.js.map → Geomap-QTUHM4VH.js.map} +0 -0
- /package/dist/{HicApp-WHPUPHEM.js.map → HicApp-M2OCHGRT.js.map} +0 -0
- /package/dist/{IDCViewer-FWXRE4AX.js.map → IDCViewer-SWFBLBZH.js.map} +0 -0
- /package/dist/{NumContEditor.unit.spec-5GTWUJEL.js.map → NumContEditor.unit.spec-P67AFEHM.js.map} +0 -0
- /package/dist/{NumCustomBinEditor-GM2OJMOX.js.map → NumCustomBinEditor-H22J4K47.js.map} +0 -0
- /package/dist/{NumRegularBinEditor-CZYITY5L.js.map → NumRegularBinEditor-IRD27CE2.js.map} +0 -0
- /package/dist/{NumericDensity-JSOFOEH2.js.map → NumericDensity-53KMCTDL.js.map} +0 -0
- /package/dist/{NumericHandler-UZOGKPKB.js.map → NumericHandler-5QFNXVBA.js.map} +0 -0
- /package/dist/{NumericHandler.unit.spec-X2DAED4O.js.map → NumericHandler.unit.spec-OBITSUU3.js.map} +0 -0
- /package/dist/{ProteomeInput-GBVCLNS7.js.map → ProteomeInput-MM373EL3.js.map} +0 -0
- /package/dist/{RunChart2-N4JPWNVV.js.map → RunChart2-2L6T3ITZ.js.map} +0 -0
- /package/dist/{SC-RCZT5BRP.js.map → SC-JKD3Z2X5.js.map} +0 -0
- /package/dist/{Volcano-2BQ6SYHO.js.map → Volcano-STGBS7IJ.js.map} +0 -0
- /package/dist/{WSIViewer-UDA4WIRT.js.map → WSIViewer-LOBVUTOD.js.map} +0 -0
- /package/dist/{WsiSamplesPlot-DYSFMD22.js.map → WsiSamplesPlot-D3L3AILR.js.map} +0 -0
- /package/dist/{adSandbox-5BUDCAER.js.map → adSandbox-XO5HDSFW.js.map} +0 -0
- /package/dist/{animatedBubbleChart-N6MBJ4X3.js.map → animatedBubbleChart-XKW6TCZP.js.map} +0 -0
- /package/dist/{app-O64TGDFH.js.map → app-H7ABTG6X.js.map} +0 -0
- /package/dist/{app-Y2STUISK.js.map → app-HJSPIKRQ.js.map} +0 -0
- /package/dist/{bam-2EOABVGT.js.map → bam-R5QVHWGY.js.map} +0 -0
- /package/dist/{barchart-UHCTYRMJ.js.map → barchart-OGCLBPQ2.js.map} +0 -0
- /package/dist/{barchart.data-LSK2P2PR.js.map → barchart.data-VBSWS5N7.js.map} +0 -0
- /package/dist/{barchart.events-Y4H2GADS.js.map → barchart.events-GZTY4IC3.js.map} +0 -0
- /package/dist/{barchart.integration.spec-BFGZFECA.js.map → barchart.integration.spec-Z6ECNFSM.js.map} +0 -0
- /package/dist/{barchart2-VIZKZRMP.js.map → barchart2-DT42I747.js.map} +0 -0
- /package/dist/{block-BGSSF6XP.js.map → block-UYYJXSCM.js.map} +0 -0
- /package/dist/{block.init-H7RKUIHG.js.map → block.init-43M53IMA.js.map} +0 -0
- /package/dist/{block.mds.expressionrank-MA3HGT7S.js.map → block.mds.expressionrank-YH3IWMKM.js.map} +0 -0
- /package/dist/{block.mds.geneboxplot-CWT5DM5T.js.map → block.mds.geneboxplot-QS2IK37X.js.map} +0 -0
- /package/dist/{block.mds.junction-P4I7O73X.js.map → block.mds.junction-7FF5BFEX.js.map} +0 -0
- /package/dist/{block.mds.svcnv-NSPEY43S.js.map → block.mds.svcnv-MMJYLL2W.js.map} +0 -0
- /package/dist/{block.svg-DP4G3LNQ.js.map → block.svg-SA6DSUM2.js.map} +0 -0
- /package/dist/{block.tk.aicheck-EBLTOWKZ.js.map → block.tk.aicheck-ZX5LZ2QO.js.map} +0 -0
- /package/dist/{block.tk.ase-X7WKQOFS.js.map → block.tk.ase-YXT4BOXK.js.map} +0 -0
- /package/dist/{block.tk.bam-OIP3TS3N.js.map → block.tk.bam-IMLRIOOV.js.map} +0 -0
- /package/dist/{block.tk.bedgraphdot-2DDF55J3.js.map → block.tk.bedgraphdot-UYQLL7HM.js.map} +0 -0
- /package/dist/{block.tk.bigwig.ui-S2SMAEXM.js.map → block.tk.bigwig.ui-WUVLVRSM.js.map} +0 -0
- /package/dist/{block.tk.hicstraw-4OIG4TBZ.js.map → block.tk.hicstraw-N4SJGF7H.js.map} +0 -0
- /package/dist/{block.tk.junction-52OWEQUN.js.map → block.tk.junction-LZWHFKWJ.js.map} +0 -0
- /package/dist/{block.tk.junction.textmatrixui-64YOSZLW.js.map → block.tk.junction.textmatrixui-B626NYPA.js.map} +0 -0
- /package/dist/{block.tk.ld-3AMNHBDY.js.map → block.tk.ld-6VWUMAP6.js.map} +0 -0
- /package/dist/{block.tk.menu-4724DJXL.js.map → block.tk.menu-RRN2UPQX.js.map} +0 -0
- /package/dist/{block.tk.pgv-2SIOPWYI.js.map → block.tk.pgv-GYG3EI6P.js.map} +0 -0
- /package/dist/{brainImaging-D43CQQN6.js.map → brainImaging-VIMLETC5.js.map} +0 -0
- /package/dist/{brainRegions-HJ2VGL3L.js.map → brainRegions-DRYZT5K5.js.map} +0 -0
- /package/dist/{bubbleHeatmap-IL44M4QZ.js.map → bubbleHeatmap-Y4SGMVJY.js.map} +0 -0
- /package/dist/{cellTypeBubbleHeatmap-NQP7RCZO.js.map → cellTypeBubbleHeatmap-QW37ZT5W.js.map} +0 -0
- /package/dist/{chunk-WXPFMVU6.js.map → chunk-2Y5C7GJS.js.map} +0 -0
- /package/dist/{chunk-BNAO6N5X.js.map → chunk-2ZTCRUOL.js.map} +0 -0
- /package/dist/{chunk-D565DNJD.js.map → chunk-3P74DH6P.js.map} +0 -0
- /package/dist/{chunk-5DMVORBB.js.map → chunk-3PPCZPLN.js.map} +0 -0
- /package/dist/{chunk-S5ZCK44Z.js.map → chunk-4H4WJJ2G.js.map} +0 -0
- /package/dist/{chunk-6OUBUUC2.js.map → chunk-4L2OSDQ6.js.map} +0 -0
- /package/dist/{chunk-JVPWIVDT.js.map → chunk-4USLEUNR.js.map} +0 -0
- /package/dist/{chunk-UEGQVQD6.js.map → chunk-5ITKSTJX.js.map} +0 -0
- /package/dist/{chunk-M66VDGSH.js.map → chunk-5VMYXVZG.js.map} +0 -0
- /package/dist/{chunk-UUKSL7QC.js.map → chunk-7ZVFLC2V.js.map} +0 -0
- /package/dist/{chunk-ROMW4AK2.js.map → chunk-C5IAIOCA.js.map} +0 -0
- /package/dist/{chunk-7PIHRWGG.js.map → chunk-CIRCVMWE.js.map} +0 -0
- /package/dist/{chunk-AGLAYNXP.js.map → chunk-CLTRQZGJ.js.map} +0 -0
- /package/dist/{chunk-W7OS7BNM.js.map → chunk-CRH37PEV.js.map} +0 -0
- /package/dist/{chunk-WTTD6DUL.js.map → chunk-DCNDZOI3.js.map} +0 -0
- /package/dist/{chunk-VUPWQCDR.js.map → chunk-DCR4QQ5Y.js.map} +0 -0
- /package/dist/{chunk-TDKMBQSM.js.map → chunk-DKAHHMKN.js.map} +0 -0
- /package/dist/{chunk-WKNI3HRQ.js.map → chunk-E2GHT7RH.js.map} +0 -0
- /package/dist/{chunk-XNWUI5VL.js.map → chunk-EQCVSUAF.js.map} +0 -0
- /package/dist/{chunk-DH3LAQKT.js.map → chunk-ETK36FXN.js.map} +0 -0
- /package/dist/{chunk-QDX2XUNF.js.map → chunk-FCOX5Q4Q.js.map} +0 -0
- /package/dist/{chunk-5ZTVJSYI.js.map → chunk-FVL37XFU.js.map} +0 -0
- /package/dist/{chunk-SNRIVNQ3.js.map → chunk-FXS4I3Z3.js.map} +0 -0
- /package/dist/{chunk-46X6AQ7Z.js.map → chunk-FYAY6D3O.js.map} +0 -0
- /package/dist/{chunk-MJN6RDXB.js.map → chunk-GL44X7JY.js.map} +0 -0
- /package/dist/{chunk-6JYQGZ3Y.js.map → chunk-IQVBMLFI.js.map} +0 -0
- /package/dist/{chunk-RVKADD4L.js.map → chunk-IYT5PNYJ.js.map} +0 -0
- /package/dist/{chunk-5QMBB4SK.js.map → chunk-J6EP7JPJ.js.map} +0 -0
- /package/dist/{chunk-ULESDMUT.js.map → chunk-JLGCQ2F4.js.map} +0 -0
- /package/dist/{chunk-TAM7UCAI.js.map → chunk-JQT67SWE.js.map} +0 -0
- /package/dist/{chunk-KU7YH7MV.js.map → chunk-JQYPRW42.js.map} +0 -0
- /package/dist/{chunk-2GLA2SWU.js.map → chunk-K4IGOJPT.js.map} +0 -0
- /package/dist/{chunk-RJOY6A74.js.map → chunk-KPTPDZX2.js.map} +0 -0
- /package/dist/{chunk-KZILNGAV.js.map → chunk-KTB7KXC2.js.map} +0 -0
- /package/dist/{chunk-STI7BO3P.js.map → chunk-KW7MKBGF.js.map} +0 -0
- /package/dist/{chunk-ZEKIUYN3.js.map → chunk-KZFVYDVK.js.map} +0 -0
- /package/dist/{chunk-W76X6W73.js.map → chunk-M77DCLJX.js.map} +0 -0
- /package/dist/{chunk-U3NTH4CS.js.map → chunk-MGGAWPTR.js.map} +0 -0
- /package/dist/{chunk-4HZN6PMU.js.map → chunk-MUJMZ6W6.js.map} +0 -0
- /package/dist/{chunk-BGTBRAJ6.js.map → chunk-NRP55BOF.js.map} +0 -0
- /package/dist/{chunk-NRYHIWBS.js.map → chunk-O5KFJBU3.js.map} +0 -0
- /package/dist/{chunk-OOWXMY7U.js.map → chunk-QHPN3JJZ.js.map} +0 -0
- /package/dist/{chunk-NUWJ4RN7.js.map → chunk-QSGXZEUU.js.map} +0 -0
- /package/dist/{chunk-GNS6CQMA.js.map → chunk-R3ARQMM4.js.map} +0 -0
- /package/dist/{chunk-4KRGCOTL.js.map → chunk-RIQT2LSR.js.map} +0 -0
- /package/dist/{chunk-J4USU73L.js.map → chunk-RVRRHEUG.js.map} +0 -0
- /package/dist/{chunk-H3N4KYKL.js.map → chunk-SOCGXVIL.js.map} +0 -0
- /package/dist/{chunk-HQUYAZQY.js.map → chunk-SZHFBRRT.js.map} +0 -0
- /package/dist/{chunk-E3VF4RHJ.js.map → chunk-TOYMIFHN.js.map} +0 -0
- /package/dist/{chunk-NIXFCC7X.js.map → chunk-TPVHGI7Q.js.map} +0 -0
- /package/dist/{chunk-26APRXD3.js.map → chunk-TRQUMV4T.js.map} +0 -0
- /package/dist/{chunk-R6NM2HSH.js.map → chunk-UO7MD3XA.js.map} +0 -0
- /package/dist/{chunk-5RVA43MN.js.map → chunk-UONOFG2J.js.map} +0 -0
- /package/dist/{chunk-CY4RQ5L6.js.map → chunk-V2DU2OXH.js.map} +0 -0
- /package/dist/{chunk-MPNEZ6EL.js.map → chunk-WWXXSQ2M.js.map} +0 -0
- /package/dist/{chunk-7JRDJNLR.js.map → chunk-X6VTVZY7.js.map} +0 -0
- /package/dist/{chunk-TQTYW66I.js.map → chunk-X7KRSZQT.js.map} +0 -0
- /package/dist/{chunk-5T3ZDRTS.js.map → chunk-XJBSBIZ4.js.map} +0 -0
- /package/dist/{chunk-BQHPJY2M.js.map → chunk-XRQWZJJ3.js.map} +0 -0
- /package/dist/{chunk-NZRMHM76.js.map → chunk-XZ4M3QAV.js.map} +0 -0
- /package/dist/{chunk-FACITNG5.js.map → chunk-YMP4YKBN.js.map} +0 -0
- /package/dist/{chunk-7PJNKPQB.js.map → chunk-YUURGVV3.js.map} +0 -0
- /package/dist/{chunk-EGPNRSPF.js.map → chunk-Z7VK2AMA.js.map} +0 -0
- /package/dist/{chunk-OTTMHVYH.js.map → chunk-ZFJUVP2N.js.map} +0 -0
- /package/dist/{chunk-H3VWJH4U.js.map → chunk-ZH7JPYQE.js.map} +0 -0
- /package/dist/{chunk-NODQZTWK.js.map → chunk-ZVDOSFWU.js.map} +0 -0
- /package/dist/{cohort-OWLNJZVH.js.map → cohort-CEYVJJ7E.js.map} +0 -0
- /package/dist/{condition-L2IXP6WH.js.map → condition-QSOFP4MY.js.map} +0 -0
- /package/dist/{controls-2S5QVWUC.js.map → controls-QYHARIEY.js.map} +0 -0
- /package/dist/{controls.config-3AJKR4ZZ.js.map → controls.config-3OO3JK6E.js.map} +0 -0
- /package/dist/{correlation-DXTAWSLU.js.map → correlation-TOI3TMYL.js.map} +0 -0
- /package/dist/{cuminc-WQB6FHVS.js.map → cuminc-L7OJTYXC.js.map} +0 -0
- /package/dist/{cuminc.integration.spec-WAYRLHUH.js.map → cuminc.integration.spec-LSWV3KOF.js.map} +0 -0
- /package/dist/{customdata.inputui-7WH2NJGB.js.map → customdata.inputui-VMB3HSSC.js.map} +0 -0
- /package/dist/{dataDownload-HM4UYOBO.js.map → dataDownload-NPSWNOAG.js.map} +0 -0
- /package/dist/{dataDownload.integration.spec-F5CO4BWA.js.map → dataDownload.integration.spec-J6FRFLBK.js.map} +0 -0
- /package/dist/{databrowser.ui-E2YOG3L4.js.map → databrowser.ui-GVYWG6YI.js.map} +0 -0
- /package/dist/{dictionary-EEPTFDYD.js.map → dictionary-GD67R72W.js.map} +0 -0
- /package/dist/{dnaMethylation-N3WNK6XA.js.map → dnaMethylation-S7OSGLAF.js.map} +0 -0
- /package/dist/{dnaMethylation.integration.spec-AIYRTFMR.js.map → dnaMethylation.integration.spec-ETMMJNDE.js.map} +0 -0
- /package/dist/{dofetch-YKYPEJTQ.js.map → dofetch-7GURQS65.js.map} +0 -0
- /package/dist/{e2pca-JEZIGVB2.js.map → e2pca-ZIIPBJFN.js.map} +0 -0
- /package/dist/{ep-5FMH2MLV.js.map → ep-A2HAL5WA.js.map} +0 -0
- /package/dist/{expclust.gdc.spec-FR26VSUA.js.map → expclust.gdc.spec-ZSILLYNI.js.map} +0 -0
- /package/dist/{facet-5YYY3MUN.js.map → facet-74LKIPTA.js.map} +0 -0
- /package/dist/{gb-WGEVO7L2.js.map → gb-C3MPQXKN.js.map} +0 -0
- /package/dist/{geneExpClustering-DHE6XJHV.js.map → geneExpClustering-HYCFUUTU.js.map} +0 -0
- /package/dist/{geneExpression-5NWQXMJ3.js.map → geneExpression-GATKMJJ5.js.map} +0 -0
- /package/dist/{geneExpression-VWUMM2LU.js.map → geneExpression-JXSAP2H7.js.map} +0 -0
- /package/dist/{geneExpression.unit.spec-HBU3WTZ4.js.map → geneExpression.unit.spec-CODZYFHZ.js.map} +0 -0
- /package/dist/{geneORA-3VWFWDYI.js.map → geneORA-LJRIR4VV.js.map} +0 -0
- /package/dist/{geneRanking-PKDVD5OD.js.map → geneRanking-TWLBKQZG.js.map} +0 -0
- /package/dist/{geneVariant-IFIJQXH4.js.map → geneVariant-35RQHTCK.js.map} +0 -0
- /package/dist/{geneVariant-WZSOG4GI.js.map → geneVariant-TMJJIMUF.js.map} +0 -0
- /package/dist/{geneVariant.integration.spec-6KQMWVHR.js.map → geneVariant.integration.spec-FIQ7IBSD.js.map} +0 -0
- /package/dist/{genefusion.ui-C4NTALL3.js.map → genefusion.ui-SOBESSNO.js.map} +0 -0
- /package/dist/{geneset-RJAULSKC.js.map → geneset-JXEJFEK2.js.map} +0 -0
- /package/dist/{genomeBrowser.spec-42OTTMGO.js.map → genomeBrowser.spec-25ZO5S2X.js.map} +0 -0
- /package/dist/{grin2-26O6YDDY.js.map → grin2-CW4RPVPI.js.map} +0 -0
- /package/dist/{grin2-FT5BQJMB.js.map → grin2-EI5BVP4E.js.map} +0 -0
- /package/dist/{hierCluster-GJPPMFNR.js.map → hierCluster-OBBPQH24.js.map} +0 -0
- /package/dist/{hierCluster-HMJF3PBE.js.map → hierCluster-SDH3TJQY.js.map} +0 -0
- /package/dist/{hierCluster.config-TAS7XKTU.js.map → hierCluster.config-DO67TCXI.js.map} +0 -0
- /package/dist/{hierCluster.integration.spec-RLHQKX65.js.map → hierCluster.integration.spec-EB24C4VZ.js.map} +0 -0
- /package/dist/{hierCluster.interactivity-IKTAJ6CU.js.map → hierCluster.interactivity-LGEAFT5T.js.map} +0 -0
- /package/dist/{hierCluster.renderers-I6WFZRNW.js.map → hierCluster.renderers-FXDCU3PN.js.map} +0 -0
- /package/dist/{imagePlot-N4OXNMVA.js.map → imagePlot-LGLFG2QZ.js.map} +0 -0
- /package/dist/{importPlot-VMYXDP66.js.map → importPlot-R2WRZGZU.js.map} +0 -0
- /package/dist/{isoformExpression-2KV64KMN.js.map → isoformExpression-KI3WY5M3.js.map} +0 -0
- /package/dist/{isoformExpression.unit.spec-RG2VWEMG.js.map → isoformExpression.unit.spec-OQRG2DDU.js.map} +0 -0
- /package/dist/{junction-VO4IGMW2.js.map → junction-6SWFPNM5.js.map} +0 -0
- /package/dist/{junction.customTerm-EFMHHVWA.js.map → junction.customTerm-MDBOU6I7.js.map} +0 -0
- /package/dist/{junction.unit.spec-NB24MR2B.js.map → junction.unit.spec-5TZFITSU.js.map} +0 -0
- /package/dist/{launch.adhoc-R3MO3VXK.js.map → launch.adhoc-HCX2RQLB.js.map} +0 -0
- /package/dist/{leftlabel.sample-SI6KMULD.js.map → leftlabel.sample-OI6XCXTQ.js.map} +0 -0
- /package/dist/{lollipop-XIVE4ANX.js.map → lollipop-SOSOYHYL.js.map} +0 -0
- /package/dist/{maf-WRHD4OJF.js.map → maf-73RLOEVN.js.map} +0 -0
- /package/dist/{maftimeline-IE6YKV7Y.js.map → maftimeline-UOMLYUNI.js.map} +0 -0
- /package/dist/{matrix-ALBCAZP5.js.map → matrix-5QWDN6SI.js.map} +0 -0
- /package/dist/{matrix-W72XRUZD.js.map → matrix-SKPVVDVR.js.map} +0 -0
- /package/dist/{matrix.cells-DEEUWC74.js.map → matrix.cells-CFSI2NWU.js.map} +0 -0
- /package/dist/{matrix.config-JYXQOXDT.js.map → matrix.config-HE64MAL4.js.map} +0 -0
- /package/dist/{matrix.data-ENXNM6RP.js.map → matrix.data-HTUZXQAM.js.map} +0 -0
- /package/dist/{matrix.groups-EXSNNESB.js.map → matrix.groups-ZFKWVNMX.js.map} +0 -0
- /package/dist/{matrix.integration.spec-BW6U6PIW.js.map → matrix.integration.spec-YKJ4LZFY.js.map} +0 -0
- /package/dist/{matrix.interactivity-G6AL566T.js.map → matrix.interactivity-YB5G5W5T.js.map} +0 -0
- /package/dist/{matrix.layout-UBUPIJ3R.js.map → matrix.layout-MFG65V7K.js.map} +0 -0
- /package/dist/{matrix.legend-S3P4F2DG.js.map → matrix.legend-7MIZZJVB.js.map} +0 -0
- /package/dist/{matrix.renderers-IXFGXHJQ.js.map → matrix.renderers-PCZFHDDZ.js.map} +0 -0
- /package/dist/{matrix.serieses-THHXUAPM.js.map → matrix.serieses-7KYX3KAY.js.map} +0 -0
- /package/dist/{matrix.sort-WJV6LIZI.js.map → matrix.sort-CR3J45MQ.js.map} +0 -0
- /package/dist/{matrix.sort.unit.spec-LGMIL2LR.js.map → matrix.sort.unit.spec-GEAM5DSU.js.map} +0 -0
- /package/dist/{matrix.sorterUi-VXVCOKEZ.js.map → matrix.sorterUi-YSKIX6B6.js.map} +0 -0
- /package/dist/{matrix.sorterUi.unit.spec-CWSEJ62U.js.map → matrix.sorterUi.unit.spec-2MW64QS5.js.map} +0 -0
- /package/dist/{mavb-SXGKASQ5.js.map → mavb-YMHJXCGA.js.map} +0 -0
- /package/dist/{mds.fimo-EDOT3TDN.js.map → mds.fimo-PTEDRMLQ.js.map} +0 -0
- /package/dist/{mds.samplescatterplot-IXHNABKB.js.map → mds.samplescatterplot-7R7PLVQJ.js.map} +0 -0
- /package/dist/{mds.survivalplot-KTTMHHII.js.map → mds.survivalplot-F3EENMFQ.js.map} +0 -0
- /package/dist/{numericDictTermCluster-H4JSPW22.js.map → numericDictTermCluster-3HXLMURH.js.map} +0 -0
- /package/dist/{oncomatrix-O4EMNUOT.js.map → oncomatrix-27VVSMZB.js.map} +0 -0
- /package/dist/{oncomatrix.spec-BME6CQWF.js.map → oncomatrix.spec-F43Y7CWN.js.map} +0 -0
- /package/dist/{plot.2dvaf-FDM4KXGT.js.map → plot.2dvaf-MYFQSWIA.js.map} +0 -0
- /package/dist/{plot.app-UNUXG7ND.js.map → plot.app-36QWCKXR.js.map} +0 -0
- /package/dist/{plot.barplot-R333TMG2.js.map → plot.barplot-535EP7XT.js.map} +0 -0
- /package/dist/{plot.boxplot-KQTYGUN3.js.map → plot.boxplot-6IBP7VEB.js.map} +0 -0
- /package/dist/{plot.brainImaging-YBYMHCEG.js.map → plot.brainImaging-M4HPNXZH.js.map} +0 -0
- /package/dist/{plot.disco-CMDKRSOM.js.map → plot.disco-HIT6GR44.js.map} +0 -0
- /package/dist/{plot.dzi-YAZA6RQS.js.map → plot.dzi-W66SBKTH.js.map} +0 -0
- /package/dist/{plot.ssgq-YKCOEXZP.js.map → plot.ssgq-MI2OMCUY.js.map} +0 -0
- /package/dist/{plot.vaf2cov-3TLMTFZS.js.map → plot.vaf2cov-F4CBMLRA.js.map} +0 -0
- /package/dist/{plot.wsi-7ADVYTQS.js.map → plot.wsi-7M5KTNFC.js.map} +0 -0
- /package/dist/{polar2-O5SHVLP4.js.map → polar2-7VSWGT4U.js.map} +0 -0
- /package/dist/{profileForms-RLB6SMPQ.js.map → profileForms-DFPCNJW2.js.map} +0 -0
- /package/dist/{profilePlot-AP52VLLO.js.map → profilePlot-ECTPPVB2.js.map} +0 -0
- /package/dist/{proteinView-S7WDBMQU.js.map → proteinView-6ELOLOIU.js.map} +0 -0
- /package/dist/{proteomeCohortCompare-ERVUM7RO.js.map → proteomeCohortCompare-V2FMWI62.js.map} +0 -0
- /package/dist/{pseudbulk.unit.spec-VSH7IM3R.js.map → pseudbulk.unit.spec-KV6URTXC.js.map} +0 -0
- /package/dist/{pseudobulk-7UKRLKQI.js.map → pseudobulk-6ZRFCE65.js.map} +0 -0
- /package/dist/{qualitative-2D7MC4V5.js.map → qualitative-3B62RUOB.js.map} +0 -0
- /package/dist/{qualitative-2INAKDTJ.js.map → qualitative-GJDQBD7L.js.map} +0 -0
- /package/dist/{radar2-ELVGQFZE.js.map → radar2-4QQER64E.js.map} +0 -0
- /package/dist/{radarFacility2-SDAZHGNG.js.map → radarFacility2-MZKORRDY.js.map} +0 -0
- /package/dist/{regression-CE54AQMY.js.map → regression-GZ2YNX6Y.js.map} +0 -0
- /package/dist/{regression.inputs-SMC5CNPY.js.map → regression.inputs-ZEFDNSVT.js.map} +0 -0
- /package/dist/{regression.inputs.term-XS54IQC2.js.map → regression.inputs.term-O2FQBX7L.js.map} +0 -0
- /package/dist/{regression.inputs.values.table-LNPM3MX5.js.map → regression.inputs.values.table-63BQKSZP.js.map} +0 -0
- /package/dist/{regression.results-25ZRRDEE.js.map → regression.results-5J3QM4RX.js.map} +0 -0
- /package/dist/{regression.spec-EDWHFRPY.js.map → regression.spec-WZAZTDDA.js.map} +0 -0
- /package/dist/{render-SEB6GFXQ.js.map → render-MZTEXVU5.js.map} +0 -0
- /package/dist/{report-U6L3KBYG.js.map → report-M5TYHH2W.js.map} +0 -0
- /package/dist/{sampleView-QAAJ26KT.js.map → sampleView-QYTLYJEW.js.map} +0 -0
- /package/dist/{samplelst-KYRXJSZN.js.map → samplelst-FN3Q7M7A.js.map} +0 -0
- /package/dist/{samplematrix-STLF2QA5.js.map → samplematrix-Z5FVODO7.js.map} +0 -0
- /package/dist/{sc-HL6YSMDX.js.map → sc-4CHP5SYP.js.map} +0 -0
- /package/dist/{selectGenomeWithTklst-4NHQDTE6.js.map → selectGenomeWithTklst-WMAHGT4F.js.map} +0 -0
- /package/dist/{singleCellCellType-3E2IU42J.js.map → singleCellCellType-XPWENB6V.js.map} +0 -0
- /package/dist/{singleCellCellType.unit.spec-MC7ZRSMW.js.map → singleCellCellType.unit.spec-QK56PHKW.js.map} +0 -0
- /package/dist/{singleCellGeneExpression-53UUGYTK.js.map → singleCellGeneExpression-4CEVDVYF.js.map} +0 -0
- /package/dist/{singleCellGeneExpression.unit.spec-QSLTXHFE.js.map → singleCellGeneExpression.unit.spec-ZYRLBVF5.js.map} +0 -0
- /package/dist/{singleCellPlot-JDSARDRV.js.map → singleCellPlot-JS74VUGC.js.map} +0 -0
- /package/dist/{singlecell-IJR7BJYT.js.map → singlecell-5XYOHMWJ.js.map} +0 -0
- /package/dist/{singlecell-OK6GJFWL.js.map → singlecell-OO77XBDD.js.map} +0 -0
- /package/dist/{snp-H4KJEEOE.js.map → snp-X5ZILM5J.js.map} +0 -0
- /package/dist/{snp.unit.spec-2Y4A3XYI.js.map → snp.unit.spec-V23G3JLJ.js.map} +0 -0
- /package/dist/{snplocus-4GG6VTWX.js.map → snplocus-U5UIIUWR.js.map} +0 -0
- /package/dist/{spliceevent.a53ss.diagram-JZNRC5UC.js.map → spliceevent.a53ss.diagram-YDFVSDMT.js.map} +0 -0
- /package/dist/{spliceevent.exonskip.diagram-H54N7ZKY.js.map → spliceevent.exonskip.diagram-VDKN5JBE.js.map} +0 -0
- /package/dist/{spliceevent.noeventdiagram-II753XAK.js.map → spliceevent.noeventdiagram-EFPFRUFI.js.map} +0 -0
- /package/dist/{ssGSEA-JPJ3C4JI.js.map → ssGSEA-LKJW5OQK.js.map} +0 -0
- /package/dist/{ssGSEA.unit.spec-45F5OCDK.js.map → ssGSEA.unit.spec-7WCZVEP2.js.map} +0 -0
- /package/dist/{studyCatalog-O3VGIKDM.js.map → studyCatalog-EU33KE5H.js.map} +0 -0
- /package/dist/{summarizeCnvGeneexp-55DNXHXA.js.map → summarizeCnvGeneexp-QL25OQNB.js.map} +0 -0
- /package/dist/{summarizeGeneexpSurvival-VLO4DC5M.js.map → summarizeGeneexpSurvival-B7HTCH7L.js.map} +0 -0
- /package/dist/{summarizeMutationCnv-QX7BADYL.js.map → summarizeMutationCnv-DFAPX2JE.js.map} +0 -0
- /package/dist/{summarizeMutationDiagnosis-MHFM7RX6.js.map → summarizeMutationDiagnosis-HCSDSVII.js.map} +0 -0
- /package/dist/{summarizeMutationSurvival-G4KHSUBN.js.map → summarizeMutationSurvival-6WEASSA2.js.map} +0 -0
- /package/dist/{summary-PJYRCQNY.js.map → summary-BWYXE77G.js.map} +0 -0
- /package/dist/{summary.integration.spec-KPKROD6L.js.map → summary.integration.spec-AVGSW5MF.js.map} +0 -0
- /package/dist/{summaryInput-TOAL53EP.js.map → summaryInput-MOQ6HUCX.js.map} +0 -0
- /package/dist/{sunburst-IGIV2RBE.js.map → sunburst-EZDHVJCL.js.map} +0 -0
- /package/dist/{survival-RKV5BPDK.js.map → survival-5TFMM7NP.js.map} +0 -0
- /package/dist/{survival-DINCIWW7.js.map → survival-IEVELTC4.js.map} +0 -0
- /package/dist/{survival.integration.spec-7ZYBBZKT.js.map → survival.integration.spec-HHWP3R4H.js.map} +0 -0
- /package/dist/{svgraph-EUEZWGVR.js.map → svgraph-55XRIYJW.js.map} +0 -0
- /package/dist/{svmr-B24LODSC.js.map → svmr-CMEBFSRO.js.map} +0 -0
- /package/dist/{table-XSJJ3UZV.js.map → table-LTWQ3TLQ.js.map} +0 -0
- /package/dist/{termCollection-IAB3425K.js.map → termCollection-CPQXYBFA.js.map} +0 -0
- /package/dist/{termCollection-LGEGHZSJ.js.map → termCollection-ZWOH273K.js.map} +0 -0
- /package/dist/{termCollection.unit.spec-4TIRHC44.js.map → termCollection.unit.spec-RK7VATLU.js.map} +0 -0
- /package/dist/{termCollectionFractionSelection-35YKAOUY.js.map → termCollectionFractionSelection-Z4ZRW63R.js.map} +0 -0
- /package/dist/{termCollectionFractionSelection.unit.spec-SUFEIKJZ.js.map → termCollectionFractionSelection.unit.spec-3CS7DPNU.js.map} +0 -0
- /package/dist/{tk-25EJJDRK.js.map → tk-4NNTWWLK.js.map} +0 -0
- /package/dist/{tk-4E3XJ7CO.js.map → tk-RHWJJXH2.js.map} +0 -0
- /package/dist/{tp.ui-VGA62NFM.js.map → tp.ui-DPN5UN6U.js.map} +0 -0
- /package/dist/{tvs.density-G56327WY.js.map → tvs.density-LMRZZO4D.js.map} +0 -0
- /package/dist/{tvs.dt-DFW36WKO.js.map → tvs.dt-ARPDFRVM.js.map} +0 -0
- /package/dist/{tvs.dtcnv.categorical-ZP33EO3A.js.map → tvs.dtcnv.categorical-POS6WQK6.js.map} +0 -0
- /package/dist/{tvs.dtcnv.continuous-FJTMQF4J.js.map → tvs.dtcnv.continuous-5OETJ7JU.js.map} +0 -0
- /package/dist/{tvs.dtfusion-FTDQWNKM.js.map → tvs.dtfusion-ERYVI3DW.js.map} +0 -0
- /package/dist/{tvs.dtitd-W5VEECJ2.js.map → tvs.dtitd-KTZZYEWU.js.map} +0 -0
- /package/dist/{tvs.dtsnvindel-UOXSLCDZ.js.map → tvs.dtsnvindel-TGUAX3RN.js.map} +0 -0
- /package/dist/{tvs.dtsv-HWCPRVBO.js.map → tvs.dtsv-AM63OIL6.js.map} +0 -0
- /package/dist/{tvs.numeric-7TGKWQYU.js.map → tvs.numeric-MQPO5XUQ.js.map} +0 -0
- /package/dist/{tvs.samplelst-OWD22ITS.js.map → tvs.samplelst-VW2NOQ2C.js.map} +0 -0
- /package/dist/{tvs.termCollection-27BWABYK.js.map → tvs.termCollection-O4ZSWJFA.js.map} +0 -0
- /package/dist/{violin-2IAVZGFF.js.map → violin-ZQ3DEYGR.js.map} +0 -0
- /package/dist/{violin.integration.spec-JVODKUCL.js.map → violin.integration.spec-PVEF77HB.js.map} +0 -0
- /package/dist/{violin.interactivity-STOCZMVN.js.map → violin.interactivity-FYU4TCFO.js.map} +0 -0
- /package/dist/{violin.renderer-MKDTJ3EX.js.map → violin.renderer-XAERGBMV.js.map} +0 -0
- /package/dist/{vocabulary-4IHU6DNN.js.map → vocabulary-ECJX27W2.js.map} +0 -0
|
@@ -0,0 +1,2250 @@
|
|
|
1
|
+
import {
|
|
2
|
+
blocklazyload
|
|
3
|
+
} from "./chunk-ZH7JPYQE.js";
|
|
4
|
+
import {
|
|
5
|
+
hicParseFile
|
|
6
|
+
} from "./chunk-JQYPRW42.js";
|
|
7
|
+
import {
|
|
8
|
+
AppBase,
|
|
9
|
+
ColorScale,
|
|
10
|
+
axisstyle,
|
|
11
|
+
first_genetrack_tolist,
|
|
12
|
+
font,
|
|
13
|
+
newpane,
|
|
14
|
+
showErrorsWithCounter,
|
|
15
|
+
tkt
|
|
16
|
+
} from "./chunk-K6OVOHIZ.js";
|
|
17
|
+
import "./chunk-HJ6L54YS.js";
|
|
18
|
+
import "./chunk-XFAL46LZ.js";
|
|
19
|
+
import "./chunk-HQAJVJCQ.js";
|
|
20
|
+
import {
|
|
21
|
+
Menu
|
|
22
|
+
} from "./chunk-HYOEWQ5P.js";
|
|
23
|
+
import "./chunk-6QCYT6G2.js";
|
|
24
|
+
import "./chunk-FN5XPUPH.js";
|
|
25
|
+
import "./chunk-IIT367QZ.js";
|
|
26
|
+
import "./chunk-RZGEKL77.js";
|
|
27
|
+
import "./chunk-ZFJUVP2N.js";
|
|
28
|
+
import "./chunk-R3ARQMM4.js";
|
|
29
|
+
import {
|
|
30
|
+
dofetch3
|
|
31
|
+
} from "./chunk-4USLEUNR.js";
|
|
32
|
+
import "./chunk-4WF3XDQP.js";
|
|
33
|
+
import "./chunk-X6VTVZY7.js";
|
|
34
|
+
import {
|
|
35
|
+
StoreBase,
|
|
36
|
+
getAppInit,
|
|
37
|
+
getCompInit,
|
|
38
|
+
getStoreInit
|
|
39
|
+
} from "./chunk-M3J4MINX.js";
|
|
40
|
+
import "./chunk-PF4DSFDR.js";
|
|
41
|
+
import "./chunk-L44P5N4U.js";
|
|
42
|
+
import {
|
|
43
|
+
bplen
|
|
44
|
+
} from "./chunk-GEQUQ3GG.js";
|
|
45
|
+
import "./chunk-WPHUM5S5.js";
|
|
46
|
+
import "./chunk-75T7ESEO.js";
|
|
47
|
+
import "./chunk-2KXLYFAO.js";
|
|
48
|
+
import {
|
|
49
|
+
axisBottom,
|
|
50
|
+
axisRight
|
|
51
|
+
} from "./chunk-LOZEKOES.js";
|
|
52
|
+
import "./chunk-VQZ2Z5YU.js";
|
|
53
|
+
import {
|
|
54
|
+
format,
|
|
55
|
+
linear
|
|
56
|
+
} from "./chunk-UJELJXJG.js";
|
|
57
|
+
import "./chunk-FXQXCOII.js";
|
|
58
|
+
import "./chunk-TLT4YIG3.js";
|
|
59
|
+
import "./chunk-5R63Q5KH.js";
|
|
60
|
+
import {
|
|
61
|
+
pointer_default,
|
|
62
|
+
select_default
|
|
63
|
+
} from "./chunk-I6Y4O3RR.js";
|
|
64
|
+
import "./chunk-Q5RDQNIT.js";
|
|
65
|
+
import "./chunk-DQC5FFGV.js";
|
|
66
|
+
import "./chunk-HFNDKYVF.js";
|
|
67
|
+
|
|
68
|
+
// tracks/hic/HicStore.ts
|
|
69
|
+
var HicStore = class _HicStore extends StoreBase {
|
|
70
|
+
constructor(opts) {
|
|
71
|
+
super(opts);
|
|
72
|
+
this.views = ["genome", "chrpair", "detail", "horizontal"];
|
|
73
|
+
this.type = _HicStore.type;
|
|
74
|
+
this.defaultState = {
|
|
75
|
+
defaultNmeth: "NONE",
|
|
76
|
+
loading: true,
|
|
77
|
+
minBinNum_bp: 200,
|
|
78
|
+
minFragSpan: 200,
|
|
79
|
+
initialBinNum: 20,
|
|
80
|
+
settings: {
|
|
81
|
+
widthHeightPx: 800
|
|
82
|
+
}
|
|
83
|
+
};
|
|
84
|
+
}
|
|
85
|
+
static {
|
|
86
|
+
this.type = "store";
|
|
87
|
+
}
|
|
88
|
+
init() {
|
|
89
|
+
this.state = Object.assign({}, this.defaultState, this.state);
|
|
90
|
+
}
|
|
91
|
+
};
|
|
92
|
+
var hicStoreInit = getStoreInit(HicStore);
|
|
93
|
+
HicStore.prototype.actions = {
|
|
94
|
+
view_create(action) {
|
|
95
|
+
if (!action.view) throw Error("view_create: missing view");
|
|
96
|
+
if (!this.views.some((v) => v == action.view)) throw Error(`view_create: unknown view = ${action.view}`);
|
|
97
|
+
this.state.currView = action.view;
|
|
98
|
+
const opts = Object.assign(this.state, action.config);
|
|
99
|
+
this.state = opts;
|
|
100
|
+
},
|
|
101
|
+
view_update(action) {
|
|
102
|
+
if (action.view) {
|
|
103
|
+
if (!this.views.some((v) => v == action.view)) throw Error(`view_update: unknown view = ${action.view}`);
|
|
104
|
+
const opts = Object.assign(this.state[action.view], action.config);
|
|
105
|
+
this.state[action.view] = opts;
|
|
106
|
+
} else {
|
|
107
|
+
const opts = Object.assign(this.state, action.config);
|
|
108
|
+
this.state = opts;
|
|
109
|
+
}
|
|
110
|
+
},
|
|
111
|
+
loading_active(action) {
|
|
112
|
+
this.state.loading = action.active;
|
|
113
|
+
}
|
|
114
|
+
};
|
|
115
|
+
|
|
116
|
+
// tracks/hic/dom/LoadingOverlay.ts
|
|
117
|
+
var LoadingOverlay = class _LoadingOverlay {
|
|
118
|
+
constructor(opts) {
|
|
119
|
+
this.hasStatePreMain = true;
|
|
120
|
+
this.type = _LoadingOverlay.type;
|
|
121
|
+
this.app = opts.app;
|
|
122
|
+
this.loadingDiv = opts.loadingDiv;
|
|
123
|
+
}
|
|
124
|
+
static {
|
|
125
|
+
this.type = "loadingOverlay";
|
|
126
|
+
}
|
|
127
|
+
reactsTo(action) {
|
|
128
|
+
if (action.type.startsWith("loading")) return true;
|
|
129
|
+
else return false;
|
|
130
|
+
}
|
|
131
|
+
getState(appState) {
|
|
132
|
+
return appState;
|
|
133
|
+
}
|
|
134
|
+
init() {
|
|
135
|
+
this.loadingDiv.append("div").attr("class", "sjpp-spinner").style("display", "");
|
|
136
|
+
}
|
|
137
|
+
main(appState) {
|
|
138
|
+
const loading = this.app.getState(appState).loading;
|
|
139
|
+
this.loadingDiv.style("display", loading ? "" : "none");
|
|
140
|
+
}
|
|
141
|
+
};
|
|
142
|
+
var loadingInit = getCompInit(LoadingOverlay);
|
|
143
|
+
|
|
144
|
+
// tracks/hic/dom/ColorizeElement.ts
|
|
145
|
+
var ColorizeElement = class {
|
|
146
|
+
colorizeElement(xCoord, yCoord, v, obj, width, height, bpMinV, bpMaxV, currView) {
|
|
147
|
+
if (v >= 0) {
|
|
148
|
+
const p = v >= bpMaxV ? 0 : v <= bpMinV ? 255 : Math.floor(255 * (bpMaxV - v) / bpMaxV);
|
|
149
|
+
const positiveFill = `rgb(255, ${p}, ${p})`;
|
|
150
|
+
if (currView === "genome") {
|
|
151
|
+
obj.ctx.fillStyle = positiveFill;
|
|
152
|
+
obj.ctx2.fillStyle = positiveFill;
|
|
153
|
+
} else {
|
|
154
|
+
obj.fillStyle = positiveFill;
|
|
155
|
+
}
|
|
156
|
+
} else {
|
|
157
|
+
const p = v <= bpMinV ? 255 : Math.floor(255 * (bpMaxV + v) / bpMaxV);
|
|
158
|
+
const negativeFill = `rgb(${p}, ${p}, 255)`;
|
|
159
|
+
if (currView === "genome") {
|
|
160
|
+
obj.ctx.fillStyle = negativeFill;
|
|
161
|
+
obj.ctx2.fillStyle = negativeFill;
|
|
162
|
+
} else {
|
|
163
|
+
obj.fillStyle = negativeFill;
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
if (currView === "genome") {
|
|
167
|
+
obj.ctx.fillRect(yCoord, xCoord, width, height);
|
|
168
|
+
obj.ctx2.fillRect(xCoord, yCoord, width, height);
|
|
169
|
+
} else {
|
|
170
|
+
obj.fillRect(xCoord, yCoord, width, height);
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
};
|
|
174
|
+
|
|
175
|
+
// tracks/hic/data/Resolution.ts
|
|
176
|
+
var Resolution = class {
|
|
177
|
+
constructor(error) {
|
|
178
|
+
this.error = error;
|
|
179
|
+
}
|
|
180
|
+
getResolution(state, hic) {
|
|
181
|
+
if (state.currView == "genome") return hic["bpresolution"][0];
|
|
182
|
+
if (state.currView == "chrpair") {
|
|
183
|
+
const resolution = this.getChrPairResolution(hic, state.x, state.y, state.minBinNum_bp);
|
|
184
|
+
return resolution;
|
|
185
|
+
} else if (state.currView == "detail") {
|
|
186
|
+
const maxBpWidth = Math.max(state.x.stop - state.x.start, state.y.stop - state.y.start);
|
|
187
|
+
let resolution = this.findResFromArray(maxBpWidth, state.minBinNum_bp, hic.bpresolution);
|
|
188
|
+
if (resolution == null && !hic.enzyme) {
|
|
189
|
+
resolution = hic.bpresolution[hic.bpresolution.length - 1];
|
|
190
|
+
}
|
|
191
|
+
return resolution;
|
|
192
|
+
} else {
|
|
193
|
+
this.error(`Unknown view: ${state.currView}`);
|
|
194
|
+
throw `Unknown view: ${state.currView}`;
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
getChrPairResolution(hic, x, y, minBinNum_bp) {
|
|
198
|
+
const chrxlen = hic.genome.chrlookup[x.chr.toUpperCase()].len;
|
|
199
|
+
const chrylen = hic.genome.chrlookup[y.chr.toUpperCase()].len;
|
|
200
|
+
const maxchrlen = Math.max(chrxlen, chrylen);
|
|
201
|
+
const resolution = this.findResFromArray(maxchrlen, minBinNum_bp, hic.bpresolution);
|
|
202
|
+
if (resolution == null) {
|
|
203
|
+
this.error(`No suitable resolution for ${x.chr}-${y.chr} pair.`);
|
|
204
|
+
return;
|
|
205
|
+
}
|
|
206
|
+
return resolution;
|
|
207
|
+
}
|
|
208
|
+
findResFromArray(max, defaultValue, resolutionArray, returnNum) {
|
|
209
|
+
let resolution = null;
|
|
210
|
+
for (const res of resolutionArray) {
|
|
211
|
+
if (max / res > defaultValue) {
|
|
212
|
+
resolution = res;
|
|
213
|
+
break;
|
|
214
|
+
}
|
|
215
|
+
}
|
|
216
|
+
if (returnNum && resolution == null) {
|
|
217
|
+
resolution = resolutionArray[resolutionArray.length - 1];
|
|
218
|
+
}
|
|
219
|
+
return resolution;
|
|
220
|
+
}
|
|
221
|
+
getDefaultViewSpan(hic, x, y, initialBinNum, minBinNum_bp) {
|
|
222
|
+
const chrpairResolution = this.getChrPairResolution(hic, x, y, minBinNum_bp);
|
|
223
|
+
if (!chrpairResolution) return;
|
|
224
|
+
return chrpairResolution * initialBinNum;
|
|
225
|
+
}
|
|
226
|
+
};
|
|
227
|
+
|
|
228
|
+
// tracks/hic/data/Positions.ts
|
|
229
|
+
var Positions = class {
|
|
230
|
+
constructor(error, minBinNum_bp) {
|
|
231
|
+
this.error = error;
|
|
232
|
+
this.resolution = new Resolution(this.error);
|
|
233
|
+
this.minBinNum_bp = minBinNum_bp;
|
|
234
|
+
}
|
|
235
|
+
/**
|
|
236
|
+
*
|
|
237
|
+
* @param x x coordinate of pointer
|
|
238
|
+
* @param y y coordinate of pointer
|
|
239
|
+
* @param binpx
|
|
240
|
+
* @param chrx x chr from state
|
|
241
|
+
* @param chry y chr from state
|
|
242
|
+
* @param hic
|
|
243
|
+
* @param initialBinNum Set in the state
|
|
244
|
+
* @returns
|
|
245
|
+
*/
|
|
246
|
+
setPosition(x, y, binpx, chrx, chry, hic, initialBinNum) {
|
|
247
|
+
const resolution = this.resolution.getChrPairResolution(hic, chrx, chry, this.minBinNum_bp);
|
|
248
|
+
const viewrangebpw = resolution * initialBinNum;
|
|
249
|
+
let coordx = Math.max(1, Math.floor(x * resolution / binpx) - viewrangebpw / 2);
|
|
250
|
+
let coordy = Math.max(1, Math.floor(y * resolution / binpx) - viewrangebpw / 2);
|
|
251
|
+
{
|
|
252
|
+
const lenx = hic.genome.chrlookup[chrx.chr.toUpperCase()].len;
|
|
253
|
+
if (coordx + viewrangebpw >= lenx) {
|
|
254
|
+
coordx = lenx - viewrangebpw;
|
|
255
|
+
}
|
|
256
|
+
const leny = hic.genome.chrlookup[chry.chr.toUpperCase()].len;
|
|
257
|
+
if (coordy + viewrangebpw > leny) {
|
|
258
|
+
coordy = leny - viewrangebpw;
|
|
259
|
+
}
|
|
260
|
+
}
|
|
261
|
+
const xObj = {
|
|
262
|
+
chr: chrx.chr,
|
|
263
|
+
start: coordx,
|
|
264
|
+
stop: coordx + viewrangebpw
|
|
265
|
+
};
|
|
266
|
+
const yObj = {
|
|
267
|
+
chr: chry.chr,
|
|
268
|
+
start: coordy,
|
|
269
|
+
stop: coordy + viewrangebpw
|
|
270
|
+
};
|
|
271
|
+
return [xObj, yObj];
|
|
272
|
+
}
|
|
273
|
+
};
|
|
274
|
+
|
|
275
|
+
// tracks/hic/data/GridElementsFormattedData.ts
|
|
276
|
+
var GridElementsFormattedData = class {
|
|
277
|
+
/**
|
|
278
|
+
* Format the data for the grid elements.
|
|
279
|
+
* @param items The data to format.
|
|
280
|
+
* @param binpx The bin size in pixels.
|
|
281
|
+
* @param resolution The resolution.
|
|
282
|
+
* @param isFirstChrX Whether the first chromosome is X. Used for chrpair view.
|
|
283
|
+
* @param isIntraChr Whether the data is intra-chromosomal. Used for chrpair view
|
|
284
|
+
* @returns The formatted data.
|
|
285
|
+
*/
|
|
286
|
+
formatData(view, items, binpx, resolution, isFirstChrX, isIntraChr) {
|
|
287
|
+
const formattedData = [];
|
|
288
|
+
for (const [xCoord, yCoord, value] of items) {
|
|
289
|
+
const xPx = Math.floor(xCoord / resolution) * binpx;
|
|
290
|
+
const yPx = Math.floor(yCoord / resolution) * binpx;
|
|
291
|
+
if (view == "genome") {
|
|
292
|
+
formattedData.push([xPx, yPx, value]);
|
|
293
|
+
}
|
|
294
|
+
if (view == "chrpair") {
|
|
295
|
+
const x = isFirstChrX ? xPx : yPx;
|
|
296
|
+
const y = isFirstChrX ? yPx : xPx;
|
|
297
|
+
formattedData.push([x, y, value]);
|
|
298
|
+
if (isIntraChr) {
|
|
299
|
+
formattedData.push([y, x, value]);
|
|
300
|
+
}
|
|
301
|
+
}
|
|
302
|
+
}
|
|
303
|
+
return formattedData;
|
|
304
|
+
}
|
|
305
|
+
};
|
|
306
|
+
|
|
307
|
+
// tracks/hic/data/FirstChrX.ts
|
|
308
|
+
var FirstChrX = class {
|
|
309
|
+
constructor(chrorder, chrx, chry) {
|
|
310
|
+
this.chrorder = chrorder;
|
|
311
|
+
this.chrx = chrx;
|
|
312
|
+
this.chry = chry;
|
|
313
|
+
}
|
|
314
|
+
isFirstX() {
|
|
315
|
+
if (this.chrx == this.chry) return true;
|
|
316
|
+
return this.chrorder.indexOf(this.chrx) < this.chrorder.indexOf(this.chry);
|
|
317
|
+
}
|
|
318
|
+
};
|
|
319
|
+
|
|
320
|
+
// tracks/hic/chrpair/ChrPairView.ts
|
|
321
|
+
var ChrPairView = class {
|
|
322
|
+
constructor(opts) {
|
|
323
|
+
this.binpx = 1;
|
|
324
|
+
/** padding on the ends of x/y chr coordinate axes */
|
|
325
|
+
this.axispad = 10;
|
|
326
|
+
this.axisLabelFontSize = 15;
|
|
327
|
+
this.calcResolution = null;
|
|
328
|
+
this.data = [];
|
|
329
|
+
this.app = opts.app;
|
|
330
|
+
this.hic = opts.hic;
|
|
331
|
+
this.plotDiv = opts.plotDiv;
|
|
332
|
+
this.items = opts.items;
|
|
333
|
+
this.parent = opts.parent;
|
|
334
|
+
this.chrxlen = this.hic.genome.chrlookup[this.parent("state").x.chr.toUpperCase()].len;
|
|
335
|
+
this.chrylen = this.hic.genome.chrlookup[this.parent("state").y.chr.toUpperCase()].len;
|
|
336
|
+
this.maxchrlen = Math.max(this.chrxlen, this.chrylen);
|
|
337
|
+
this.colorizeElement = new ColorizeElement();
|
|
338
|
+
this.positions = new Positions(opts.error, this.parent("state").minBinNum_bp);
|
|
339
|
+
this.formattedData = new GridElementsFormattedData();
|
|
340
|
+
}
|
|
341
|
+
setDefaultBinpx() {
|
|
342
|
+
if (this.calcResolution == null) return;
|
|
343
|
+
while (this.binpx * this.maxchrlen / this.calcResolution < 600) {
|
|
344
|
+
this.binpx++;
|
|
345
|
+
}
|
|
346
|
+
}
|
|
347
|
+
renderAxes() {
|
|
348
|
+
if (this.calcResolution == null) return;
|
|
349
|
+
const svgY = this.plotDiv.yAxis.append("svg");
|
|
350
|
+
const h = Math.ceil(this.chrylen / this.calcResolution) * this.binpx;
|
|
351
|
+
svgY.attr("width", 100).attr("height", this.axispad * 2 + h);
|
|
352
|
+
svgY.append("g").attr("data-testid", "sjpp-chrpair-svg-y").attr("transform", "translate(80," + (this.axispad + h / 2) + ")").append("text").text(this.parent("state").y.chr).attr("text-anchor", "middle").attr("font-size", this.axisLabelFontSize).attr("font-family", font).attr("dominant-baseline", "central").attr("transform", "rotate(90)");
|
|
353
|
+
axisstyle({
|
|
354
|
+
axis: svgY.append("g").attr("transform", `translate(1, ${this.axispad})`).call(axisRight(linear().domain([0, this.chrylen]).range([0, h])).tickFormat(format(".2s"))),
|
|
355
|
+
showline: true
|
|
356
|
+
});
|
|
357
|
+
const svgX = this.plotDiv.xAxis.append("svg").style("margin-top", "-4px");
|
|
358
|
+
const w = Math.ceil(this.chrxlen / this.calcResolution) * this.binpx;
|
|
359
|
+
svgX.attr("height", 100).attr("width", this.axispad * 2 + w);
|
|
360
|
+
svgX.append("text").attr("data-testid", "sjpp-chrpair-svg-x").text(this.parent("state").x.chr).attr("font-size", this.axisLabelFontSize).attr("font-family", font).attr("x", this.axispad + w / 2).attr("text-anchor", "middle").attr("y", 60);
|
|
361
|
+
axisstyle({
|
|
362
|
+
axis: svgX.append("g").attr("transform", "translate(" + this.axispad + ",1)").call(axisBottom(linear().domain([0, this.chrxlen]).range([0, w])).tickFormat(format(".2s"))),
|
|
363
|
+
showline: true
|
|
364
|
+
});
|
|
365
|
+
}
|
|
366
|
+
renderCanvas() {
|
|
367
|
+
const initDetailView = this.initDetailView.bind(this);
|
|
368
|
+
this.canvas = this.plotDiv.plot.append("canvas").attr("data-testid", "sjpp-chrpair-canvas").style("margin", this.axispad + "px").on("click", async function(event) {
|
|
369
|
+
const [x, y] = pointer_default(event, this);
|
|
370
|
+
initDetailView(x, y);
|
|
371
|
+
}).node();
|
|
372
|
+
this.canvas.width = Math.ceil(this.chrxlen / this.calcResolution) * this.binpx;
|
|
373
|
+
this.canvas.height = Math.ceil(this.chrylen / this.calcResolution) * this.binpx;
|
|
374
|
+
this.ctx = this.canvas.getContext("2d");
|
|
375
|
+
}
|
|
376
|
+
initDetailView(x, y) {
|
|
377
|
+
const [xObj, yObj] = this.positions.setPosition(
|
|
378
|
+
x,
|
|
379
|
+
y,
|
|
380
|
+
this.binpx,
|
|
381
|
+
this.parent("state").x,
|
|
382
|
+
this.parent("state").y,
|
|
383
|
+
this.hic,
|
|
384
|
+
this.parent("state").initialBinNum
|
|
385
|
+
);
|
|
386
|
+
this.app.dispatch({
|
|
387
|
+
type: "view_create",
|
|
388
|
+
view: "detail",
|
|
389
|
+
config: {
|
|
390
|
+
x: xObj,
|
|
391
|
+
y: yObj
|
|
392
|
+
}
|
|
393
|
+
});
|
|
394
|
+
}
|
|
395
|
+
render() {
|
|
396
|
+
this.calcResolution = this.parent("calcResolution");
|
|
397
|
+
this.setDefaultBinpx();
|
|
398
|
+
this.renderAxes();
|
|
399
|
+
this.renderCanvas();
|
|
400
|
+
this.update(this.items);
|
|
401
|
+
}
|
|
402
|
+
update(items) {
|
|
403
|
+
this.items = items;
|
|
404
|
+
const firstisx = new FirstChrX(this.hic.chrorder, this.parent("state").x.chr, this.parent("state").y.chr).isFirstX();
|
|
405
|
+
const isintrachr = this.parent("state").x.chr === this.parent("state").y.chr;
|
|
406
|
+
this.data = this.formattedData.formatData(
|
|
407
|
+
"chrpair",
|
|
408
|
+
items.items,
|
|
409
|
+
this.binpx,
|
|
410
|
+
this.calcResolution,
|
|
411
|
+
firstisx,
|
|
412
|
+
isintrachr
|
|
413
|
+
);
|
|
414
|
+
this.ctx.clearRect(0, 0, this.canvas.width, this.canvas.height);
|
|
415
|
+
for (const [x, y, v] of this.data) {
|
|
416
|
+
this.colorizeElement.colorizeElement(
|
|
417
|
+
x,
|
|
418
|
+
y,
|
|
419
|
+
v,
|
|
420
|
+
this.ctx,
|
|
421
|
+
this.binpx,
|
|
422
|
+
//width
|
|
423
|
+
this.binpx,
|
|
424
|
+
//height
|
|
425
|
+
this.parent("min"),
|
|
426
|
+
this.parent("max"),
|
|
427
|
+
"chrpair"
|
|
428
|
+
);
|
|
429
|
+
}
|
|
430
|
+
this.app.dispatch({ type: "loading_active", active: false });
|
|
431
|
+
}
|
|
432
|
+
};
|
|
433
|
+
|
|
434
|
+
// tracks/hic/horizontal/HorizontalView.ts
|
|
435
|
+
var HorizontalView = class {
|
|
436
|
+
constructor(opts) {
|
|
437
|
+
/** Defaults*/
|
|
438
|
+
this.maxPercentage = 5;
|
|
439
|
+
this.subPanelPxWidth = 600;
|
|
440
|
+
this.borderColor = "rgba(200,0,0,.1)";
|
|
441
|
+
this.app = opts.app;
|
|
442
|
+
this.hic = opts.hic;
|
|
443
|
+
this.plotDiv = opts.plotDiv;
|
|
444
|
+
this.items = opts.items;
|
|
445
|
+
this.parent = opts.parent;
|
|
446
|
+
}
|
|
447
|
+
setRunPpTracks() {
|
|
448
|
+
const tracks = [
|
|
449
|
+
{
|
|
450
|
+
type: "hicstraw",
|
|
451
|
+
file: this.hic.file,
|
|
452
|
+
url: this.hic.url,
|
|
453
|
+
name: this.hic.name,
|
|
454
|
+
enzyme: this.hic.enzyme,
|
|
455
|
+
maxpercentage: this.maxPercentage,
|
|
456
|
+
pyramindup: 1
|
|
457
|
+
}
|
|
458
|
+
];
|
|
459
|
+
if (this.hic.tklst) {
|
|
460
|
+
for (const t of this.hic.tklst) {
|
|
461
|
+
tracks.push(t);
|
|
462
|
+
}
|
|
463
|
+
}
|
|
464
|
+
first_genetrack_tolist(this.hic.genome, tracks);
|
|
465
|
+
return tracks;
|
|
466
|
+
}
|
|
467
|
+
setRunPpArgs(tracks) {
|
|
468
|
+
const arg = {
|
|
469
|
+
holder: this.plotDiv.plot,
|
|
470
|
+
hostURL: this.hic.hostURL,
|
|
471
|
+
jwt: this.hic.jwt,
|
|
472
|
+
genome: this.hic.genome,
|
|
473
|
+
nobox: 1,
|
|
474
|
+
tklst: tracks
|
|
475
|
+
};
|
|
476
|
+
const state = this.parent("state");
|
|
477
|
+
if (state.x.chr == state.y.chr && Math.max(state.x.start, state.y.start) < Math.min(state.x.stop, state.y.stop)) {
|
|
478
|
+
arg["chr"] = state.x.chr;
|
|
479
|
+
arg["start"] = Math.min(state.x.start, state.y.start);
|
|
480
|
+
arg["stop"] = Math.max(state.x.stop, state.y.stop);
|
|
481
|
+
} else {
|
|
482
|
+
arg["chr"] = state.x.chr;
|
|
483
|
+
arg["start"] = state.x.start;
|
|
484
|
+
arg["stop"] = state.x.stop;
|
|
485
|
+
arg["width"] = this.subPanelPxWidth;
|
|
486
|
+
arg["subpanels"] = [
|
|
487
|
+
{
|
|
488
|
+
chr: state.y.chr,
|
|
489
|
+
start: state.y.start,
|
|
490
|
+
stop: state.y.stop,
|
|
491
|
+
width: this.subPanelPxWidth,
|
|
492
|
+
leftpad: 10,
|
|
493
|
+
leftborder: this.borderColor
|
|
494
|
+
}
|
|
495
|
+
];
|
|
496
|
+
}
|
|
497
|
+
return arg;
|
|
498
|
+
}
|
|
499
|
+
render() {
|
|
500
|
+
const tracks = this.setRunPpTracks();
|
|
501
|
+
const arg = this.setRunPpArgs(tracks);
|
|
502
|
+
blocklazyload(arg);
|
|
503
|
+
}
|
|
504
|
+
// update() {
|
|
505
|
+
// //Not required.
|
|
506
|
+
// //If controls are added back. Implement changes here.
|
|
507
|
+
// }
|
|
508
|
+
};
|
|
509
|
+
|
|
510
|
+
// tracks/hic/detail/DetailBlock.ts
|
|
511
|
+
var DetailBlock = class {
|
|
512
|
+
constructor(app, hic, blockwidth, bbmargin, holder, isYblock) {
|
|
513
|
+
/** Defaults */
|
|
514
|
+
this.leftheadw = 20;
|
|
515
|
+
this.rightheadw = 40;
|
|
516
|
+
this.lpad = 1;
|
|
517
|
+
this.rpad = 1;
|
|
518
|
+
this.firstRender = true;
|
|
519
|
+
this.app = app;
|
|
520
|
+
this.hic = hic;
|
|
521
|
+
this.width = blockwidth;
|
|
522
|
+
this.bbmargin = bbmargin;
|
|
523
|
+
this.holder = holder;
|
|
524
|
+
this.isYblock = isYblock;
|
|
525
|
+
this.bbw = this.leftheadw + this.lpad + this.width + this.rpad + this.rightheadw + 2 * this.bbmargin;
|
|
526
|
+
this.defaultLeft = this.bbmargin + this.leftheadw + this.lpad;
|
|
527
|
+
this.defaultTop = this.bbmargin + this.rightheadw + this.rpad;
|
|
528
|
+
}
|
|
529
|
+
setArgs(chrObj) {
|
|
530
|
+
const runPpArgs = {
|
|
531
|
+
hostURL: this.hic.hostURL,
|
|
532
|
+
genome: this.hic.genome,
|
|
533
|
+
holder: this.holder,
|
|
534
|
+
noresize: true,
|
|
535
|
+
nobox: true,
|
|
536
|
+
butrowbottom: true,
|
|
537
|
+
style: {
|
|
538
|
+
margin: `${this.bbmargin}px`
|
|
539
|
+
},
|
|
540
|
+
width: this.width,
|
|
541
|
+
leftheadw: this.leftheadw,
|
|
542
|
+
chr: chrObj.chr,
|
|
543
|
+
start: chrObj.start,
|
|
544
|
+
stop: chrObj.stop,
|
|
545
|
+
rightheadw: this.rightheadw,
|
|
546
|
+
tklst: [],
|
|
547
|
+
rotated: this.isYblock,
|
|
548
|
+
showreverse: this.isYblock
|
|
549
|
+
};
|
|
550
|
+
first_genetrack_tolist(this.hic.genome, runPpArgs.tklst);
|
|
551
|
+
return runPpArgs;
|
|
552
|
+
}
|
|
553
|
+
setMethods(canvasHolder, canvas, sheath) {
|
|
554
|
+
const runPpMethods = {
|
|
555
|
+
onloadalltk_always: () => {
|
|
556
|
+
this.onload(canvasHolder, canvas, sheath);
|
|
557
|
+
},
|
|
558
|
+
onpanning: (xoff) => this.onpanning(xoff, canvas)
|
|
559
|
+
};
|
|
560
|
+
if (this.isYblock) {
|
|
561
|
+
runPpMethods["onsetheight"] = (bbh) => {
|
|
562
|
+
this.holder.transition().style("left", `${bbh + this.bbmargin + 30}px`);
|
|
563
|
+
};
|
|
564
|
+
}
|
|
565
|
+
return runPpMethods;
|
|
566
|
+
}
|
|
567
|
+
onload(canvasHolder, canvas, sheath) {
|
|
568
|
+
this.bbw = this.block.leftheadw + this.block.lpad + this.block.width + this.block.rpad + this.block.rightheadw + 2 * this.bbmargin;
|
|
569
|
+
if (this.isYblock) {
|
|
570
|
+
sheath.transition().style("height", `${this.bbw}px`);
|
|
571
|
+
canvasHolder.style("height", `${this.bbw}px`);
|
|
572
|
+
} else canvasHolder.style("width", `${this.bbw}px`);
|
|
573
|
+
if (this.isYblock) {
|
|
574
|
+
this.defaultTop = this.bbmargin + this.block.rightheadw + this.block.rpad;
|
|
575
|
+
canvas.style("top", `${this.defaultTop}px`);
|
|
576
|
+
} else {
|
|
577
|
+
this.defaultLeft = this.bbmargin + this.block.leftheadw + this.block.lpad;
|
|
578
|
+
canvas.style("left", `${this.defaultLeft}px`);
|
|
579
|
+
}
|
|
580
|
+
const config = {
|
|
581
|
+
[this.isYblock ? "y" : "x"]: {
|
|
582
|
+
chr: this.block.rglst[0].chr,
|
|
583
|
+
start: this.block.rglst[0].start,
|
|
584
|
+
stop: this.block.rglst[0].stop
|
|
585
|
+
}
|
|
586
|
+
};
|
|
587
|
+
if (this.firstRender == false) {
|
|
588
|
+
this.app.dispatch({
|
|
589
|
+
type: "view_update",
|
|
590
|
+
config
|
|
591
|
+
});
|
|
592
|
+
} else {
|
|
593
|
+
this.firstRender = false;
|
|
594
|
+
}
|
|
595
|
+
}
|
|
596
|
+
onpanning(xoff, canvas) {
|
|
597
|
+
if (!this.isYblock) canvas.style("left", `${xoff + this.defaultLeft}px`);
|
|
598
|
+
else canvas.style("top", `${-xoff + this.defaultTop}px`);
|
|
599
|
+
}
|
|
600
|
+
async loadBlock(chrObj, canvasHolder, canvas, sheath) {
|
|
601
|
+
const runPpArgs = this.setArgs(chrObj);
|
|
602
|
+
const runPpMethods = this.isYblock ? this.setMethods(canvasHolder, canvas, sheath) : this.setMethods(canvasHolder, canvas);
|
|
603
|
+
const args = Object.assign(runPpArgs, runPpMethods);
|
|
604
|
+
await blocklazyload(args).then(async (block) => {
|
|
605
|
+
this.block = block;
|
|
606
|
+
});
|
|
607
|
+
}
|
|
608
|
+
};
|
|
609
|
+
|
|
610
|
+
// tracks/hic/data/DetailDataFetcher.ts
|
|
611
|
+
var DetailDataFetcher = class {
|
|
612
|
+
constructor(errList) {
|
|
613
|
+
this.obj = {
|
|
614
|
+
rglst: []
|
|
615
|
+
};
|
|
616
|
+
this.errList = errList;
|
|
617
|
+
}
|
|
618
|
+
isFragData(hic, resolution) {
|
|
619
|
+
if (resolution != null) return;
|
|
620
|
+
if (!hic.enzyme) {
|
|
621
|
+
resolution = hic.bpresolution[hic.bpresolution.length - 1];
|
|
622
|
+
return;
|
|
623
|
+
}
|
|
624
|
+
}
|
|
625
|
+
formatFragArgs(enzymefile, chr) {
|
|
626
|
+
const arg = {
|
|
627
|
+
getdata: 1,
|
|
628
|
+
getBED: 1,
|
|
629
|
+
file: enzymefile,
|
|
630
|
+
rglst: [chr]
|
|
631
|
+
};
|
|
632
|
+
return arg;
|
|
633
|
+
}
|
|
634
|
+
/**
|
|
635
|
+
* @param arg Formated obj from either fn above
|
|
636
|
+
* @param errList
|
|
637
|
+
* @returns
|
|
638
|
+
*/
|
|
639
|
+
async getBedData(arg) {
|
|
640
|
+
try {
|
|
641
|
+
return await dofetch3("tkbedj", { method: "POST", body: JSON.stringify(arg) });
|
|
642
|
+
} catch (e) {
|
|
643
|
+
this.errList.push(e.message || e);
|
|
644
|
+
if (e.stack) console.error(e.stack);
|
|
645
|
+
}
|
|
646
|
+
}
|
|
647
|
+
async getXFragData(hic, resolution, chrx) {
|
|
648
|
+
this.isFragData(hic, resolution);
|
|
649
|
+
if (!hic.enzymefile) return;
|
|
650
|
+
const reqArgs = this.formatFragArgs(hic.enzymefile, chrx);
|
|
651
|
+
return await this.getBedData(reqArgs);
|
|
652
|
+
}
|
|
653
|
+
async getYFragData(hic, chry) {
|
|
654
|
+
const reqArgs = this.formatFragArgs(hic.enzymefile, chry);
|
|
655
|
+
return await this.getBedData(reqArgs);
|
|
656
|
+
}
|
|
657
|
+
/**
|
|
658
|
+
* Separate request from data fetch
|
|
659
|
+
* Returns the additional fragment data
|
|
660
|
+
* @param fragCoords
|
|
661
|
+
*/
|
|
662
|
+
async fetchData(hic, detailView, resolution, x, y, fragCoords) {
|
|
663
|
+
const fragStrawArgs = {
|
|
664
|
+
matrixType: detailView.matrixType,
|
|
665
|
+
file: hic.file,
|
|
666
|
+
url: hic.url,
|
|
667
|
+
pos1: this.determinePosition(hic, x, fragCoords?.x),
|
|
668
|
+
pos2: this.determinePosition(hic, y, fragCoords?.y),
|
|
669
|
+
nmeth: detailView.nmeth,
|
|
670
|
+
resolution
|
|
671
|
+
};
|
|
672
|
+
if (fragCoords) fragStrawArgs["isfrag"] = true;
|
|
673
|
+
try {
|
|
674
|
+
const data = dofetch3("hicdata?", {
|
|
675
|
+
method: "POST",
|
|
676
|
+
body: JSON.stringify(fragStrawArgs)
|
|
677
|
+
});
|
|
678
|
+
if (data.error) {
|
|
679
|
+
this.errList.push(data.error);
|
|
680
|
+
}
|
|
681
|
+
return data;
|
|
682
|
+
} catch (e) {
|
|
683
|
+
this.errList.push(e.message || e);
|
|
684
|
+
if (e.stack) console.error(e.stack);
|
|
685
|
+
}
|
|
686
|
+
}
|
|
687
|
+
determinePosition(hic, chr, fragCoord) {
|
|
688
|
+
if (fragCoord) {
|
|
689
|
+
return `${hic.nochr ? chr.chr.replace("chr", "") : chr.chr}:${fragCoord.start}:${fragCoord.stop}`;
|
|
690
|
+
} else {
|
|
691
|
+
return `${hic.nochr ? chr.chr.replace("chr", "") : chr.chr}:${chr.start}:${chr.stop}`;
|
|
692
|
+
}
|
|
693
|
+
}
|
|
694
|
+
};
|
|
695
|
+
|
|
696
|
+
// tracks/hic/data/ParseFragData.ts
|
|
697
|
+
var ParseFragData = class {
|
|
698
|
+
constructor(errLst, items) {
|
|
699
|
+
this.id2coord = /* @__PURE__ */ new Map();
|
|
700
|
+
this.min = null;
|
|
701
|
+
this.max = null;
|
|
702
|
+
this.items = [];
|
|
703
|
+
this.errLst = errLst;
|
|
704
|
+
for (const i of items) {
|
|
705
|
+
if (!i.rest || !i.rest[0]) {
|
|
706
|
+
this.errLst.push("items[].rest data problem");
|
|
707
|
+
}
|
|
708
|
+
const id = Number.parseInt(i.rest[0]);
|
|
709
|
+
if (Number.isNaN(id)) {
|
|
710
|
+
this.errLst.push(`${i.start}.${i.stop} invalid fragment id: ${i.rest[0]}`);
|
|
711
|
+
}
|
|
712
|
+
this.id2coord.set(id, [i.start, i.stop]);
|
|
713
|
+
if (this.min == null) {
|
|
714
|
+
this.min = id;
|
|
715
|
+
this.max = id;
|
|
716
|
+
} else {
|
|
717
|
+
this.min = Math.min(this.min, id);
|
|
718
|
+
this.max = Math.max(this.max, id);
|
|
719
|
+
}
|
|
720
|
+
}
|
|
721
|
+
}
|
|
722
|
+
};
|
|
723
|
+
|
|
724
|
+
// tracks/hic/data/DetailDataMapper.ts
|
|
725
|
+
var DetailDataMapper = class {
|
|
726
|
+
constructor(hic, errList, parent) {
|
|
727
|
+
this.frag = {
|
|
728
|
+
x: {},
|
|
729
|
+
y: {}
|
|
730
|
+
};
|
|
731
|
+
this.hic = hic;
|
|
732
|
+
this.errList = errList;
|
|
733
|
+
this.dataFetcher = new DetailDataFetcher(errList);
|
|
734
|
+
this.parent = parent;
|
|
735
|
+
}
|
|
736
|
+
async getFragData(chrx, chry) {
|
|
737
|
+
try {
|
|
738
|
+
const xFragData = await this.dataFetcher.getXFragData(this.hic, this.parent("calcResolution"), chrx);
|
|
739
|
+
if (xFragData) {
|
|
740
|
+
if (!xFragData.items) {
|
|
741
|
+
this.errList.push(`No fragment data returned for ${chrx.chr}:${chrx.start}-${chrx.stop}`);
|
|
742
|
+
return;
|
|
743
|
+
}
|
|
744
|
+
const xParse = new ParseFragData(this.errList, xFragData.items);
|
|
745
|
+
if (this.errList.length) return;
|
|
746
|
+
this.frag.x = {
|
|
747
|
+
id2coord: xParse.id2coord,
|
|
748
|
+
start: xParse.min,
|
|
749
|
+
stop: xParse.max
|
|
750
|
+
};
|
|
751
|
+
const yFragData = await this.dataFetcher.getYFragData(this.hic, chry);
|
|
752
|
+
if (this.errList.length) return;
|
|
753
|
+
if (yFragData) {
|
|
754
|
+
if (!yFragData.items) {
|
|
755
|
+
this.errList.push(`No fragment data returned for ${chry.chr}:${chry.start}-${chry.stop}`);
|
|
756
|
+
return;
|
|
757
|
+
}
|
|
758
|
+
const yParse = new ParseFragData(this.errList, yFragData.items);
|
|
759
|
+
if (this.errList.length) return;
|
|
760
|
+
this.frag.y = {
|
|
761
|
+
id2coord: /* @__PURE__ */ new Map(),
|
|
762
|
+
start: yParse.min,
|
|
763
|
+
stop: yParse.max
|
|
764
|
+
};
|
|
765
|
+
this.determineMap(yParse.id2coord, chrx, chry);
|
|
766
|
+
}
|
|
767
|
+
}
|
|
768
|
+
} catch (e) {
|
|
769
|
+
this.errList.push(e.message || e);
|
|
770
|
+
if (e.stack) console.error(e.stack);
|
|
771
|
+
}
|
|
772
|
+
}
|
|
773
|
+
determineMap(map, chrx, chry) {
|
|
774
|
+
if (chrx.chr == chry.chr) {
|
|
775
|
+
for (const [id, pos] of map) {
|
|
776
|
+
this.frag.x["id2coord"].set(id, pos);
|
|
777
|
+
}
|
|
778
|
+
this.frag.y["id2coord"] = this.frag.x["id2coord"];
|
|
779
|
+
} else {
|
|
780
|
+
this.frag.y["id2coord"] = map;
|
|
781
|
+
}
|
|
782
|
+
}
|
|
783
|
+
async getData(chrx, chry, fragCoords) {
|
|
784
|
+
return await this.dataFetcher.fetchData(
|
|
785
|
+
this.hic,
|
|
786
|
+
this.parent("state")["detail"],
|
|
787
|
+
this.parent("calcResolution"),
|
|
788
|
+
chrx,
|
|
789
|
+
chry,
|
|
790
|
+
fragCoords
|
|
791
|
+
);
|
|
792
|
+
}
|
|
793
|
+
};
|
|
794
|
+
|
|
795
|
+
// tracks/hic/data/DetailCoodinates.ts
|
|
796
|
+
var DetailCoordinates = class {
|
|
797
|
+
constructor(hic, errlist) {
|
|
798
|
+
this.hic = hic;
|
|
799
|
+
this.errlist = errlist;
|
|
800
|
+
}
|
|
801
|
+
getCoordinates(chrx, chry, data, resolution, widthHeightPx, fragData) {
|
|
802
|
+
const isFirstX = new FirstChrX(this.hic.chrorder, chrx.chr, chry.chr).isFirstX();
|
|
803
|
+
const isintrachr = chrx.chr == chry.chr;
|
|
804
|
+
const xpxbp = widthHeightPx / (chrx.stop - chrx.start);
|
|
805
|
+
const ypxbp = widthHeightPx / (chry.stop - chry.start);
|
|
806
|
+
const list = this.calculateCoordinates(isFirstX, isintrachr, xpxbp, ypxbp, resolution, chrx, chry, data, fragData);
|
|
807
|
+
return list;
|
|
808
|
+
}
|
|
809
|
+
calculateCoordinates(isFirstX, isintrachr, xpxbp, ypxbp, resolution, chrx, chry, data, fragData) {
|
|
810
|
+
const list = [];
|
|
811
|
+
for (const [xCoord, yCoord, value] of data.items) {
|
|
812
|
+
let coord1, coord2, span1, span2;
|
|
813
|
+
if (fragData) {
|
|
814
|
+
const idx_start = isFirstX ? xCoord : yCoord;
|
|
815
|
+
const idy_start = isFirstX ? yCoord : xCoord;
|
|
816
|
+
if (fragData.x.id2coord.has(idx_start)) {
|
|
817
|
+
const [a, b] = fragData.x.id2coord.get(idx_start);
|
|
818
|
+
coord1 = a;
|
|
819
|
+
span1 = b - a;
|
|
820
|
+
} else {
|
|
821
|
+
this.errlist.push(`[x id error] x: ${idx_start} y: ${idy_start}`);
|
|
822
|
+
continue;
|
|
823
|
+
}
|
|
824
|
+
{
|
|
825
|
+
const id_stop = idx_start + resolution;
|
|
826
|
+
if (fragData.x.id2coord.has(id_stop)) {
|
|
827
|
+
const ab = fragData.x.id2coord.get(id_stop);
|
|
828
|
+
span1 = ab[1] - coord1;
|
|
829
|
+
}
|
|
830
|
+
}
|
|
831
|
+
if (fragData.y.id2coord.has(idy_start)) {
|
|
832
|
+
const [a, b] = fragData.y.id2coord.get(idy_start);
|
|
833
|
+
coord2 = a;
|
|
834
|
+
span2 = b - a;
|
|
835
|
+
} else {
|
|
836
|
+
this.errlist.push(`[y id error] x: ${idx_start} y: ${idy_start}`);
|
|
837
|
+
continue;
|
|
838
|
+
}
|
|
839
|
+
{
|
|
840
|
+
const id_stop = idy_start + resolution;
|
|
841
|
+
if (fragData.y.id2coord.has(id_stop)) {
|
|
842
|
+
const ab = fragData.y.id2coord.get(id_stop);
|
|
843
|
+
span2 = ab[1] - coord2;
|
|
844
|
+
}
|
|
845
|
+
}
|
|
846
|
+
} else {
|
|
847
|
+
coord1 = isFirstX ? xCoord : yCoord;
|
|
848
|
+
coord2 = isFirstX ? yCoord : xCoord;
|
|
849
|
+
span1 = resolution;
|
|
850
|
+
span2 = resolution;
|
|
851
|
+
}
|
|
852
|
+
if (isintrachr) {
|
|
853
|
+
if (coord1 > chrx.start - span1 && coord1 < chrx.stop && coord2 > chry.start - span2 && coord2 < chry.stop) {
|
|
854
|
+
list.push([
|
|
855
|
+
Math.floor((coord1 - chrx.start) * xpxbp),
|
|
856
|
+
Math.floor((coord2 - chry.start) * ypxbp),
|
|
857
|
+
Math.ceil(span1 * xpxbp),
|
|
858
|
+
Math.ceil(span2 * ypxbp),
|
|
859
|
+
value
|
|
860
|
+
]);
|
|
861
|
+
}
|
|
862
|
+
if (coord2 > chrx.start - span2 && coord2 < chrx.stop && coord1 > chry.start && coord1 < chry.stop) {
|
|
863
|
+
list.push([
|
|
864
|
+
Math.floor((coord2 - chrx.start) * xpxbp),
|
|
865
|
+
Math.floor((coord1 - chry.start) * ypxbp),
|
|
866
|
+
Math.ceil(span2 * xpxbp),
|
|
867
|
+
Math.ceil(span1 * ypxbp),
|
|
868
|
+
value
|
|
869
|
+
]);
|
|
870
|
+
}
|
|
871
|
+
continue;
|
|
872
|
+
}
|
|
873
|
+
list.push([
|
|
874
|
+
Math.floor((coord1 - chrx.start) * xpxbp),
|
|
875
|
+
Math.floor((coord2 - chry.start) * ypxbp),
|
|
876
|
+
Math.ceil(span1 * xpxbp),
|
|
877
|
+
Math.ceil(span2 * ypxbp),
|
|
878
|
+
value
|
|
879
|
+
]);
|
|
880
|
+
}
|
|
881
|
+
return list;
|
|
882
|
+
}
|
|
883
|
+
};
|
|
884
|
+
|
|
885
|
+
// tracks/hic/detail/DetailView.ts
|
|
886
|
+
var DetailView = class {
|
|
887
|
+
constructor(opts) {
|
|
888
|
+
this.calcResolution = null;
|
|
889
|
+
/** Defaults **/
|
|
890
|
+
this.binpx = 2;
|
|
891
|
+
this.bbmargin = 1;
|
|
892
|
+
this.app = opts.app;
|
|
893
|
+
this.hic = opts.hic;
|
|
894
|
+
this.plotDiv = opts.plotDiv;
|
|
895
|
+
this.sheath = opts.plotDiv.yAxis.append("div").style("position", "relative").style("width", "200px").style("height", "800px");
|
|
896
|
+
this.rotor = this.sheath.append("div").style("position", "absolute").style("bottom", "0px").style("transform", "rotate(-90deg)").style("transform-origin", "left bottom");
|
|
897
|
+
this.data = opts.data;
|
|
898
|
+
this.parent = opts.parent;
|
|
899
|
+
this.errList = this.parent("errList");
|
|
900
|
+
this.resolution = new Resolution(opts.error);
|
|
901
|
+
this.colorizeElement = new ColorizeElement();
|
|
902
|
+
this.viewRangeBpW = this.resolution.getDefaultViewSpan(
|
|
903
|
+
this.hic,
|
|
904
|
+
this.parent("state").x,
|
|
905
|
+
this.parent("state").y,
|
|
906
|
+
this.parent("state").initialBinNum,
|
|
907
|
+
this.parent("state").minBinNum_bp
|
|
908
|
+
);
|
|
909
|
+
this.dataMapper = new DetailDataMapper(this.hic, opts.error, opts.parent);
|
|
910
|
+
this.coordinates = new DetailCoordinates(this.hic, this.errList);
|
|
911
|
+
}
|
|
912
|
+
renderCanvas(blockwidth) {
|
|
913
|
+
this.canvasHolder = this.plotDiv.plot.append("div").style("position", "relative").style("width", `${this.xBlock.bbw}px`).style("height", `${this.yBlock.bbw}px`).style("overflow", "hidden");
|
|
914
|
+
this.canvas = this.canvasHolder.append("canvas").style("display", "block").style("position", "absolute").attr("data-testid", "sjpp-hic-detail-canvas").attr("width", blockwidth).attr("height", blockwidth).on("mousedown", (event) => {
|
|
915
|
+
const body = select_default(document.body);
|
|
916
|
+
const x = event.clientX;
|
|
917
|
+
const y = event.clientY;
|
|
918
|
+
const oldx = Number.parseInt(this.canvas.style("left"));
|
|
919
|
+
const oldy = Number.parseInt(this.canvas.style("top"));
|
|
920
|
+
body.on("mousemove", (event2) => {
|
|
921
|
+
const xoff = event2.clientX - x;
|
|
922
|
+
const yoff = event2.clientY - y;
|
|
923
|
+
this.xBlock.block.panning(xoff);
|
|
924
|
+
this.yBlock.block.panning(yoff);
|
|
925
|
+
this.canvas.style("left", `${oldx + xoff}px`).style("top", `${oldy + yoff}px`);
|
|
926
|
+
});
|
|
927
|
+
body.on("mouseup", (event2) => {
|
|
928
|
+
body.on("mousemove", null).on("mouseup", null);
|
|
929
|
+
const xoff = event2.clientX - x;
|
|
930
|
+
const yoff = event2.clientY - y;
|
|
931
|
+
this.xBlock.block.pannedby(xoff);
|
|
932
|
+
this.yBlock.block.pannedby(yoff);
|
|
933
|
+
});
|
|
934
|
+
});
|
|
935
|
+
}
|
|
936
|
+
async render() {
|
|
937
|
+
this.calcResolution = this.parent("calcResolution");
|
|
938
|
+
const state = this.parent("state");
|
|
939
|
+
this.xBlock = new DetailBlock(
|
|
940
|
+
this.app,
|
|
941
|
+
this.hic,
|
|
942
|
+
state.settings.widthHeightPx,
|
|
943
|
+
this.bbmargin,
|
|
944
|
+
this.plotDiv.xAxis,
|
|
945
|
+
false
|
|
946
|
+
);
|
|
947
|
+
this.yBlock = new DetailBlock(this.app, this.hic, state.settings.widthHeightPx, this.bbmargin, this.rotor, true);
|
|
948
|
+
this.renderCanvas(state.settings.widthHeightPx);
|
|
949
|
+
await this.xBlock.loadBlock(state.x, this.canvasHolder, this.canvas);
|
|
950
|
+
await this.yBlock.loadBlock(state.y, this.canvasHolder, this.canvas, this.sheath);
|
|
951
|
+
this.update(this.data);
|
|
952
|
+
}
|
|
953
|
+
async update(data) {
|
|
954
|
+
if (data.items.length == 0) {
|
|
955
|
+
this.app.dispatch({ type: "loading_active", active: false });
|
|
956
|
+
return;
|
|
957
|
+
}
|
|
958
|
+
this.data = data;
|
|
959
|
+
const state = this.parent("state");
|
|
960
|
+
const initialWidth = Number.parseInt(this.canvas.attr("width"));
|
|
961
|
+
const holderChange = Number.parseInt(this.canvasHolder.style("width")) - initialWidth + state.settings.widthHeightPx;
|
|
962
|
+
this.canvasHolder.style("width", `${holderChange}px`).style("height", `${holderChange}px`);
|
|
963
|
+
this.canvas.attr("width", `${state.settings.widthHeightPx}px`).attr("height", `${state.settings.widthHeightPx}px`);
|
|
964
|
+
if (this.xBlock.block.width != state.settings.widthHeightPx) {
|
|
965
|
+
this.xBlock.block.width = state.settings.widthHeightPx;
|
|
966
|
+
this.yBlock.block.width = state.settings.widthHeightPx;
|
|
967
|
+
this.xBlock.block.zoom2px(0, initialWidth);
|
|
968
|
+
this.yBlock.block.zoom2px(0, initialWidth);
|
|
969
|
+
}
|
|
970
|
+
this.ctx = this.canvas.node().getContext("2d");
|
|
971
|
+
const coords = this.coordinates.getCoordinates(
|
|
972
|
+
state.x,
|
|
973
|
+
state.y,
|
|
974
|
+
this.parent("data"),
|
|
975
|
+
this.parent("calcResolution"),
|
|
976
|
+
state.settings.widthHeightPx,
|
|
977
|
+
this.parent("fragData")
|
|
978
|
+
);
|
|
979
|
+
this.coords = coords;
|
|
980
|
+
this.ctx.clearRect(0, 0, state.settings.widthHeightPx, state.settings.widthHeightPx);
|
|
981
|
+
for (const [xCoord, yCoord, width, height, value] of this.coords) {
|
|
982
|
+
this.colorizeElement.colorizeElement(
|
|
983
|
+
xCoord,
|
|
984
|
+
yCoord,
|
|
985
|
+
value,
|
|
986
|
+
this.ctx,
|
|
987
|
+
width,
|
|
988
|
+
height,
|
|
989
|
+
this.parent("min"),
|
|
990
|
+
this.parent("max"),
|
|
991
|
+
"detail"
|
|
992
|
+
);
|
|
993
|
+
}
|
|
994
|
+
this.app.dispatch({ type: "loading_active", active: false });
|
|
995
|
+
}
|
|
996
|
+
};
|
|
997
|
+
|
|
998
|
+
// tracks/hic/axes/Chromosome.ts
|
|
999
|
+
var Chromosome = class {
|
|
1000
|
+
constructor(chr, width) {
|
|
1001
|
+
this.label = chr;
|
|
1002
|
+
this.width = width;
|
|
1003
|
+
}
|
|
1004
|
+
};
|
|
1005
|
+
|
|
1006
|
+
// tracks/hic/grid/Grid.ts
|
|
1007
|
+
var Grid = class _Grid {
|
|
1008
|
+
constructor(chrlst, resolution, chrlookup, binpx) {
|
|
1009
|
+
this.chromosomeMatrix = /* @__PURE__ */ new Map();
|
|
1010
|
+
this.chromosomeList = [];
|
|
1011
|
+
this.xoff = 0;
|
|
1012
|
+
this.yoff = 0;
|
|
1013
|
+
this.chr2px = [];
|
|
1014
|
+
this.chrlst = chrlst;
|
|
1015
|
+
let totalpx = this.chrlst.length;
|
|
1016
|
+
for (const chr of this.chrlst) {
|
|
1017
|
+
const w = Math.ceil(chrlookup[chr.toUpperCase()].len / resolution) * binpx;
|
|
1018
|
+
const chromosome = new Chromosome(chr, w);
|
|
1019
|
+
this.chromosomeList.push(chromosome);
|
|
1020
|
+
this.chr2px[chr] = w;
|
|
1021
|
+
totalpx += w;
|
|
1022
|
+
}
|
|
1023
|
+
this.totalpx = totalpx;
|
|
1024
|
+
for (let i = 0; i < this.chrlst.length; i++) {
|
|
1025
|
+
const chrx = this.chrlst[i];
|
|
1026
|
+
this.chromosomeMatrix.set(chrx, /* @__PURE__ */ new Map());
|
|
1027
|
+
let yoff = 0;
|
|
1028
|
+
for (let j = 0; j <= i; j++) {
|
|
1029
|
+
const chry = this.chrlst[j];
|
|
1030
|
+
const chrxChrLen = chrlookup[chrx.toUpperCase()].len;
|
|
1031
|
+
const chryChrLen = chrlookup[chry.toUpperCase()].len;
|
|
1032
|
+
const xbins = Math.ceil(chrxChrLen / resolution) * binpx;
|
|
1033
|
+
const ybins = Math.ceil(chryChrLen / resolution) * binpx;
|
|
1034
|
+
this.chromosomeMatrix.get(chrx).set(chry, {
|
|
1035
|
+
x: this.xoff,
|
|
1036
|
+
y: yoff,
|
|
1037
|
+
xbins,
|
|
1038
|
+
ybins,
|
|
1039
|
+
data: []
|
|
1040
|
+
//Empty array of data to fill later
|
|
1041
|
+
});
|
|
1042
|
+
yoff += this.chr2px[chry] + _Grid.borderWidth;
|
|
1043
|
+
}
|
|
1044
|
+
this.yoff = yoff;
|
|
1045
|
+
this.xoff += this.chr2px[chrx] + _Grid.borderWidth;
|
|
1046
|
+
}
|
|
1047
|
+
}
|
|
1048
|
+
static {
|
|
1049
|
+
this.checkerFill = "#DEF3FA";
|
|
1050
|
+
}
|
|
1051
|
+
static {
|
|
1052
|
+
this.spaceColor = "#CCC";
|
|
1053
|
+
}
|
|
1054
|
+
static {
|
|
1055
|
+
this.fontSize = 15;
|
|
1056
|
+
}
|
|
1057
|
+
static {
|
|
1058
|
+
this.font = font;
|
|
1059
|
+
}
|
|
1060
|
+
static {
|
|
1061
|
+
this.borderWidth = 1;
|
|
1062
|
+
}
|
|
1063
|
+
static {
|
|
1064
|
+
this.defaultChrLabWidth = 100;
|
|
1065
|
+
}
|
|
1066
|
+
};
|
|
1067
|
+
|
|
1068
|
+
// tracks/hic/viewmodel/GridViewModel.ts
|
|
1069
|
+
var GridViewModel = class {
|
|
1070
|
+
constructor(opts) {
|
|
1071
|
+
this.grid = new Grid(opts.hic.chrlst, opts.resolution || opts.hic.bpresolution[0], opts.hic.genome.chrlookup, 1);
|
|
1072
|
+
}
|
|
1073
|
+
};
|
|
1074
|
+
|
|
1075
|
+
// tracks/hic/grid/GridRenderer.ts
|
|
1076
|
+
var GridRenderer = class {
|
|
1077
|
+
constructor(svg, layerMap, layerSv, grid) {
|
|
1078
|
+
this.svg = svg;
|
|
1079
|
+
this.layerMap = layerMap.attr("transform", `translate(${Grid.defaultChrLabWidth}, ${Grid.fontSize})`);
|
|
1080
|
+
this.layerSv = layerSv.attr("transform", `translate(${Grid.defaultChrLabWidth}, ${Grid.fontSize})`);
|
|
1081
|
+
this.grid = grid;
|
|
1082
|
+
}
|
|
1083
|
+
render() {
|
|
1084
|
+
this.renderAxisX(this.grid);
|
|
1085
|
+
this.renderAxisY(this.grid);
|
|
1086
|
+
this.svg.attr("width", Grid.defaultChrLabWidth + this.grid.xoff).attr("height", Grid.fontSize + this.grid.yoff);
|
|
1087
|
+
}
|
|
1088
|
+
renderAxisX(grid) {
|
|
1089
|
+
let xoff = 0;
|
|
1090
|
+
this.grid.chromosomeList.forEach((chr, index) => {
|
|
1091
|
+
const chrw = chr.width;
|
|
1092
|
+
if (index % 2 === 0) {
|
|
1093
|
+
this.layerMap.append("rect").attr("x", xoff).attr("width", chrw).attr("height", Grid.fontSize).attr("y", -Grid.fontSize).attr("fill", Grid.checkerFill);
|
|
1094
|
+
}
|
|
1095
|
+
this.layerMap.append("text").attr("data-testid", `sjpp-hic-chr-xAxis-label`).attr("font-family", Grid.font).attr("text-anchor", "middle").attr("font-size", 12).attr("x", xoff + chrw / 2).text(chr.label);
|
|
1096
|
+
xoff += chrw;
|
|
1097
|
+
this.layerSv.append("line").attr("x1", xoff).attr("x2", xoff).attr("y2", grid.totalpx).attr("stroke", Grid.spaceColor).attr("shape-rendering", "crispEdges");
|
|
1098
|
+
xoff += Grid.borderWidth;
|
|
1099
|
+
});
|
|
1100
|
+
}
|
|
1101
|
+
renderAxisY(grid) {
|
|
1102
|
+
let yoff = 0;
|
|
1103
|
+
this.grid.chromosomeList.forEach((chr, index) => {
|
|
1104
|
+
const chrh = chr.width;
|
|
1105
|
+
if (index % 2 === 0) {
|
|
1106
|
+
this.layerMap.append("rect").attr("x", -Grid.defaultChrLabWidth).attr("width", Grid.defaultChrLabWidth).attr("height", chrh).attr("y", yoff).attr("fill", Grid.checkerFill);
|
|
1107
|
+
}
|
|
1108
|
+
this.layerMap.append("text").attr("data-testid", `sjpp-hic-chr-yAxis-label`).attr("font-family", Grid.font).attr("text-anchor", "end").attr("dominant-baseline", "central").attr("font-size", 12).attr("y", yoff + chrh / 2).text(chr.label);
|
|
1109
|
+
yoff += chrh;
|
|
1110
|
+
this.layerSv.append("line").attr("x2", grid.totalpx).attr("y1", yoff).attr("y2", yoff).attr("stroke", Grid.spaceColor).attr("shape-rendering", "crispEdges");
|
|
1111
|
+
yoff += Grid.borderWidth;
|
|
1112
|
+
});
|
|
1113
|
+
}
|
|
1114
|
+
};
|
|
1115
|
+
|
|
1116
|
+
// tracks/hic/genome/ChrsTooltips.ts
|
|
1117
|
+
var ChrsTooltips = class {
|
|
1118
|
+
constructor() {
|
|
1119
|
+
this.chrx_tip = new Menu({ border: "solid 1px #ccc", padding: "0px", offsetX: 0, offsetY: 0 });
|
|
1120
|
+
this.chry_tip = new Menu({ border: "solid 1px #ccc", padding: "0px", offsetX: 0, offsetY: 0 });
|
|
1121
|
+
}
|
|
1122
|
+
render(img, chrx, chry) {
|
|
1123
|
+
const p = img.node().getBoundingClientRect();
|
|
1124
|
+
this.chrx_tip.clear().show(p.left, p.top).d.style("top", null).attr("data-testid", "sjpp-hic-chrx-tooltip").style("bottom", window.innerHeight - p.top - window.pageYOffset + "px").text(chrx);
|
|
1125
|
+
this.chry_tip.clear().show(p.left, p.top).d.style("left", null).attr("data-testid", "sjpp-hic-chry-tooltip").style("right", document.body.clientWidth - p.left - window.pageXOffset + "px").text(chry);
|
|
1126
|
+
}
|
|
1127
|
+
};
|
|
1128
|
+
|
|
1129
|
+
// tracks/hic/grid/GridElementRenderer.ts
|
|
1130
|
+
var GridElementRenderer = class {
|
|
1131
|
+
constructor(layerMap, app) {
|
|
1132
|
+
this.app = app;
|
|
1133
|
+
this.layerMap = layerMap;
|
|
1134
|
+
this.tooltips = new ChrsTooltips();
|
|
1135
|
+
}
|
|
1136
|
+
render(obj, lead, follow, holder) {
|
|
1137
|
+
obj.canvas = holder.append("canvas").style("display", "none").node();
|
|
1138
|
+
obj.ctx = obj.canvas.getContext("2d");
|
|
1139
|
+
obj.canvas.width = obj.xbins;
|
|
1140
|
+
obj.canvas.height = obj.ybins;
|
|
1141
|
+
obj.img = this.layerMap.append("image").attr("width", obj.canvas.width).attr("height", obj.canvas.height).attr("x", obj.x).attr("y", obj.y).on("click", async () => {
|
|
1142
|
+
await this.app.dispatch({
|
|
1143
|
+
type: "view_create",
|
|
1144
|
+
view: "chrpair",
|
|
1145
|
+
config: {
|
|
1146
|
+
x: {
|
|
1147
|
+
chr: lead
|
|
1148
|
+
},
|
|
1149
|
+
y: {
|
|
1150
|
+
chr: follow
|
|
1151
|
+
}
|
|
1152
|
+
}
|
|
1153
|
+
});
|
|
1154
|
+
}).on("mouseover", () => {
|
|
1155
|
+
this.tooltips.render(obj.img, lead, follow);
|
|
1156
|
+
});
|
|
1157
|
+
if (lead != follow) {
|
|
1158
|
+
obj.canvas2 = holder.append("canvas").style("display", "none").node();
|
|
1159
|
+
obj.canvas2.width = obj.ybins;
|
|
1160
|
+
obj.canvas2.height = obj.xbins;
|
|
1161
|
+
obj.ctx2 = obj.canvas2.getContext("2d");
|
|
1162
|
+
obj.img2 = this.layerMap.append("image").attr("width", obj.canvas2.width).attr("height", obj.canvas2.height).attr("x", obj.y).attr("y", obj.x).on("click", async () => {
|
|
1163
|
+
await this.app.dispatch({
|
|
1164
|
+
type: "view_create",
|
|
1165
|
+
view: "chrpair",
|
|
1166
|
+
config: {
|
|
1167
|
+
x: {
|
|
1168
|
+
chr: follow
|
|
1169
|
+
},
|
|
1170
|
+
y: {
|
|
1171
|
+
chr: lead
|
|
1172
|
+
}
|
|
1173
|
+
}
|
|
1174
|
+
});
|
|
1175
|
+
}).on("mouseover", () => {
|
|
1176
|
+
this.tooltips.render(obj.img2, follow, lead);
|
|
1177
|
+
});
|
|
1178
|
+
} else {
|
|
1179
|
+
obj.ctx2 = obj.ctx;
|
|
1180
|
+
}
|
|
1181
|
+
}
|
|
1182
|
+
};
|
|
1183
|
+
|
|
1184
|
+
// tracks/hic/grid/GridElementsRenderer.ts
|
|
1185
|
+
var GridElementsRenderer = class {
|
|
1186
|
+
constructor(grid, layerMap, app) {
|
|
1187
|
+
this.grid = grid;
|
|
1188
|
+
this.gridElementRenderer = new GridElementRenderer(layerMap, app);
|
|
1189
|
+
}
|
|
1190
|
+
render(holder) {
|
|
1191
|
+
for (const [chrx, chryMap] of this.grid.chromosomeMatrix) {
|
|
1192
|
+
for (const [chry, gridElem] of chryMap) {
|
|
1193
|
+
this.gridElementRenderer.render(gridElem, chrx, chry, holder);
|
|
1194
|
+
}
|
|
1195
|
+
}
|
|
1196
|
+
}
|
|
1197
|
+
};
|
|
1198
|
+
|
|
1199
|
+
// tracks/hic/genome/GenomeView.ts
|
|
1200
|
+
var GenomeView = class {
|
|
1201
|
+
constructor(opts) {
|
|
1202
|
+
/** Dom */
|
|
1203
|
+
this.tip = new Menu();
|
|
1204
|
+
this.pica_x = new Menu({ border: "solid 1px #ccc", padding: "0px", offsetX: 0, offsetY: 0 });
|
|
1205
|
+
this.pica_y = new Menu({ border: "solid 1px #ccc", padding: "0px", offsetX: 0, offsetY: 0 });
|
|
1206
|
+
/** Data */
|
|
1207
|
+
/** px width for each chr */
|
|
1208
|
+
this.chr2px = {};
|
|
1209
|
+
this.lead2follow = /* @__PURE__ */ new Map();
|
|
1210
|
+
this.values = [];
|
|
1211
|
+
/** Defaults */
|
|
1212
|
+
this.defaultChrLabWidth = 100;
|
|
1213
|
+
this.borderwidth = 1;
|
|
1214
|
+
this.default_maxVPerc = 5;
|
|
1215
|
+
this.fontsize = 15;
|
|
1216
|
+
this.xoff = 0;
|
|
1217
|
+
this.yoff = 0;
|
|
1218
|
+
this.binpx = 1;
|
|
1219
|
+
this.atdev_chrnum = 8;
|
|
1220
|
+
this.min = 0;
|
|
1221
|
+
this.max = 0;
|
|
1222
|
+
this.app = opts.app;
|
|
1223
|
+
this.hic = opts.hic;
|
|
1224
|
+
this.plotDiv = opts.plotDiv;
|
|
1225
|
+
this.data = opts.data;
|
|
1226
|
+
this.parent = opts.parent;
|
|
1227
|
+
this.resolution = opts.resolution || opts.hic.bpresolution[0];
|
|
1228
|
+
this.svg = this.plotDiv.plot.append("svg").attr("data-testid", "sjpp-hic-genome-svg");
|
|
1229
|
+
this.layer_map = this.svg.append("g").attr("data-testid", "sjpp-hic-layerMap-g");
|
|
1230
|
+
this.layer_sv = this.svg.append("g").attr("data-testid", "sjpp-hic-layerSv-g");
|
|
1231
|
+
this.colorizeElement = new ColorizeElement();
|
|
1232
|
+
this.viewModel = new GridViewModel(opts);
|
|
1233
|
+
this.viewRender = new GridRenderer(this.svg, this.layer_map, this.layer_sv, this.viewModel.grid);
|
|
1234
|
+
this.gridElementsRenderer = new GridElementsRenderer(this.viewModel.grid, this.layer_map, this.app);
|
|
1235
|
+
this.gridFormattedData = new GridElementsFormattedData();
|
|
1236
|
+
}
|
|
1237
|
+
makeSv() {
|
|
1238
|
+
const unknownchr = /* @__PURE__ */ new Set();
|
|
1239
|
+
const radius = 8;
|
|
1240
|
+
for (const item of this.hic.sv.items) {
|
|
1241
|
+
const _o = this.lead2follow.get(item.chr1);
|
|
1242
|
+
if (!_o) {
|
|
1243
|
+
unknownchr.add(item.chr1);
|
|
1244
|
+
continue;
|
|
1245
|
+
}
|
|
1246
|
+
const obj = _o.get(item.chr2);
|
|
1247
|
+
if (!obj) {
|
|
1248
|
+
unknownchr.add(item.chr2);
|
|
1249
|
+
continue;
|
|
1250
|
+
}
|
|
1251
|
+
const p1 = item.position1 / this.resolution;
|
|
1252
|
+
const p2 = item.position2 / this.resolution;
|
|
1253
|
+
this.layer_sv.append("circle").attr("data-testid", "sjpp-hic-genome-view-sv-circle").attr("stroke", "black").attr("fill", "white").attr("fill-opacity", 0).attr("cx", obj.x + p1).attr("cy", obj.y + p2).attr("r", radius).on("mouseover", (event) => {
|
|
1254
|
+
this.tooltipSv(event, item);
|
|
1255
|
+
}).on("mouseout", () => {
|
|
1256
|
+
this.tip.hide();
|
|
1257
|
+
}).on("click", () => {
|
|
1258
|
+
this.clickSv(item);
|
|
1259
|
+
});
|
|
1260
|
+
if (obj.img2) {
|
|
1261
|
+
this.layer_sv.append("circle").attr("data-testid", "sjpp-hic-genome-view-sv-circle-2").attr("stroke", "black").attr("fill", "white").attr("fill-opacity", 0).attr("cy", obj.x + p1).attr("cx", obj.y + p2).attr("r", radius).on("mouseover", (event) => {
|
|
1262
|
+
this.tooltipSv(event, item);
|
|
1263
|
+
}).on("mouseout", () => {
|
|
1264
|
+
this.tip.hide();
|
|
1265
|
+
}).on("click", () => {
|
|
1266
|
+
this.clickSv(item);
|
|
1267
|
+
});
|
|
1268
|
+
}
|
|
1269
|
+
}
|
|
1270
|
+
}
|
|
1271
|
+
tooltipSv(event, item) {
|
|
1272
|
+
this.tip.clear().show(event.clientX, event.clientY).d.append("div").text(
|
|
1273
|
+
item.chr1 == item.chr2 ? `${item.chr1}:${item.position1}-${item.position2}` : `${item.chr1}:${item.position1}>${item.chr2}:${item.position2}`
|
|
1274
|
+
);
|
|
1275
|
+
}
|
|
1276
|
+
clickSv(item) {
|
|
1277
|
+
const default_svpointspan = 5e5;
|
|
1278
|
+
const default_subpanelpxwidth = 600;
|
|
1279
|
+
const subpanel_bordercolor = "rgba(200,0,0,.1)";
|
|
1280
|
+
const pane = newpane({ x: 100, y: 100 });
|
|
1281
|
+
pane.header.text(
|
|
1282
|
+
this.hic.name + " " + (item.chr1 == item.chr2 ? `${item.chr1}:${item.position1}-${item.position2}` : `${item.chr1}:${item.position1}>${item.chr2}:${item.position2}`)
|
|
1283
|
+
);
|
|
1284
|
+
const tracks = [
|
|
1285
|
+
{
|
|
1286
|
+
type: tkt.hicstraw,
|
|
1287
|
+
file: this.hic.file,
|
|
1288
|
+
enzyme: this.hic.enzyme,
|
|
1289
|
+
maxpercentage: this.default_maxVPerc,
|
|
1290
|
+
pyramidup: 1,
|
|
1291
|
+
name: this.hic.name
|
|
1292
|
+
}
|
|
1293
|
+
];
|
|
1294
|
+
if (this.hic.tklst) {
|
|
1295
|
+
for (const t of this.hic.tklst) {
|
|
1296
|
+
tracks.push(t);
|
|
1297
|
+
}
|
|
1298
|
+
}
|
|
1299
|
+
first_genetrack_tolist(this.hic.genome, tracks);
|
|
1300
|
+
const arg = {
|
|
1301
|
+
holder: pane.body,
|
|
1302
|
+
hostURL: this.hic.hostURL,
|
|
1303
|
+
jwt: this.hic.jwt,
|
|
1304
|
+
genome: this.hic.genome,
|
|
1305
|
+
nobox: 1,
|
|
1306
|
+
tklst: tracks
|
|
1307
|
+
};
|
|
1308
|
+
if (item.chr1 == item.chr2 && Math.abs(item.position2 - item.position1) < default_svpointspan * 2) {
|
|
1309
|
+
arg.chr = item.chr1;
|
|
1310
|
+
const w = Math.abs(item.position2 - item.position1);
|
|
1311
|
+
arg.start = Math.max(1, Math.min(item.position1, item.position2) - w);
|
|
1312
|
+
arg.stop = Math.min(
|
|
1313
|
+
this.hic.genome.chrlookup[item.chr1.toUpperCase()].len,
|
|
1314
|
+
Math.max(item.position1, item.position2) + w
|
|
1315
|
+
);
|
|
1316
|
+
} else {
|
|
1317
|
+
arg.chr = item.chr1;
|
|
1318
|
+
arg.start = Math.max(1, item.position1 - default_svpointspan / 2);
|
|
1319
|
+
arg.stop = Math.min(
|
|
1320
|
+
this.hic.genome.chrlookup[item.chr1.toUpperCase()].len,
|
|
1321
|
+
item.position1 + default_svpointspan / 2
|
|
1322
|
+
);
|
|
1323
|
+
arg.width = default_subpanelpxwidth;
|
|
1324
|
+
arg.subpanels = [
|
|
1325
|
+
{
|
|
1326
|
+
chr: item.chr2,
|
|
1327
|
+
start: Math.max(1, item.position2 - default_svpointspan / 2),
|
|
1328
|
+
stop: Math.min(
|
|
1329
|
+
this.hic.genome.chrlookup[item.chr2.toUpperCase()].len,
|
|
1330
|
+
item.position2 + default_svpointspan / 2
|
|
1331
|
+
),
|
|
1332
|
+
width: default_subpanelpxwidth,
|
|
1333
|
+
leftpad: 10,
|
|
1334
|
+
leftborder: subpanel_bordercolor
|
|
1335
|
+
}
|
|
1336
|
+
];
|
|
1337
|
+
}
|
|
1338
|
+
blocklazyload(arg);
|
|
1339
|
+
}
|
|
1340
|
+
render() {
|
|
1341
|
+
this.viewRender.render();
|
|
1342
|
+
this.gridElementsRenderer.render(this.hic.holder);
|
|
1343
|
+
if (this.hic.sv && this.hic.sv.items) {
|
|
1344
|
+
this.makeSv();
|
|
1345
|
+
}
|
|
1346
|
+
this.update(this.data);
|
|
1347
|
+
}
|
|
1348
|
+
update(data) {
|
|
1349
|
+
this.data = data;
|
|
1350
|
+
this.min = this.parent("min");
|
|
1351
|
+
this.max = this.parent("max");
|
|
1352
|
+
for (const data2 of this.data) {
|
|
1353
|
+
if (!this.hic.chrlst.includes(data2.lead) || !this.hic.chrlst.includes(data2.follow)) continue;
|
|
1354
|
+
const obj = this.viewModel.grid.chromosomeMatrix.get(data2.lead).get(data2.follow);
|
|
1355
|
+
if (!obj) continue;
|
|
1356
|
+
obj.ctx.clearRect(0, 0, obj.canvas.width, obj.canvas.height);
|
|
1357
|
+
if (obj.canvas2) {
|
|
1358
|
+
obj.ctx2.clearRect(0, 0, obj.canvas2.width, obj.canvas.height);
|
|
1359
|
+
}
|
|
1360
|
+
obj.data = this.gridFormattedData.formatData("genome", data2.items, this.binpx, this.resolution);
|
|
1361
|
+
for (const [xPx, yPx, value] of obj.data) {
|
|
1362
|
+
this.colorizeElement.colorizeElement(xPx, yPx, value, obj, this.binpx, this.binpx, this.min, this.max, "genome");
|
|
1363
|
+
}
|
|
1364
|
+
obj.img.attr("xlink:href", obj.canvas.toDataURL());
|
|
1365
|
+
if (obj.canvas2) {
|
|
1366
|
+
obj.img2.attr("xlink:href", obj.canvas2.toDataURL());
|
|
1367
|
+
}
|
|
1368
|
+
}
|
|
1369
|
+
this.app.dispatch({ type: "loading_active", active: false });
|
|
1370
|
+
}
|
|
1371
|
+
};
|
|
1372
|
+
|
|
1373
|
+
// tracks/hic/controls/NormalizationMethodControl.ts
|
|
1374
|
+
var NormalizationMethodControl = class {
|
|
1375
|
+
constructor(holder, normalization, defaultNmeth, callback) {
|
|
1376
|
+
this.holder = holder;
|
|
1377
|
+
this.normalization = normalization;
|
|
1378
|
+
this.defaultNmeth = defaultNmeth;
|
|
1379
|
+
this.callback = callback;
|
|
1380
|
+
}
|
|
1381
|
+
render() {
|
|
1382
|
+
if (!this.normalization?.length) {
|
|
1383
|
+
this.nmethSelect = this.holder.text(this.defaultNmeth);
|
|
1384
|
+
} else {
|
|
1385
|
+
this.nmethSelect = this.holder.attr("data-testid", "sjpp-hic-nmeth-select").style("margin-right", "10px").append("select").on("change", async () => {
|
|
1386
|
+
const nmeth = this.nmethSelect.node().value;
|
|
1387
|
+
this.callback(nmeth, "nmeth");
|
|
1388
|
+
});
|
|
1389
|
+
for (const n of this.normalization) {
|
|
1390
|
+
this.nmethSelect.append("option").text(n);
|
|
1391
|
+
}
|
|
1392
|
+
}
|
|
1393
|
+
}
|
|
1394
|
+
update(option) {
|
|
1395
|
+
const options = this.nmethSelect.node().options;
|
|
1396
|
+
if (!options) return;
|
|
1397
|
+
const selectedNmeth = Array.from(options).find((o) => o.value === option);
|
|
1398
|
+
if (!selectedNmeth) throw `Invalid normalization method: ${option}`;
|
|
1399
|
+
selectedNmeth.selected = true;
|
|
1400
|
+
}
|
|
1401
|
+
};
|
|
1402
|
+
|
|
1403
|
+
// tracks/hic/controls/CutoffControl.ts
|
|
1404
|
+
var CutoffControl = class {
|
|
1405
|
+
constructor(holder, value, callback) {
|
|
1406
|
+
this.holder = holder;
|
|
1407
|
+
this.value = value;
|
|
1408
|
+
this.callback = callback;
|
|
1409
|
+
}
|
|
1410
|
+
render(opts) {
|
|
1411
|
+
const cutoffDiv = this.holder.attr("data-testid", "sjpp-hic-cutoff-control").style("margin-right", "10px").append("input").attr("type", "number").style("width", opts && "width" in opts ? opts.width : "80px").style("margin-left", "0px").attr("type", "number").property("value", this.value).on("keyup", async (event) => {
|
|
1412
|
+
if (event.code != "Enter") return;
|
|
1413
|
+
const v = event.target.value;
|
|
1414
|
+
this.callback(v);
|
|
1415
|
+
});
|
|
1416
|
+
return cutoffDiv;
|
|
1417
|
+
}
|
|
1418
|
+
};
|
|
1419
|
+
|
|
1420
|
+
// tracks/hic/controls/MatrixTypeControl.ts
|
|
1421
|
+
var MatrixTypeControl = class {
|
|
1422
|
+
constructor(holder, callback) {
|
|
1423
|
+
this.values = [
|
|
1424
|
+
{ label: "Observed", value: "observed" },
|
|
1425
|
+
{ label: "Expected", value: "expected" },
|
|
1426
|
+
{ label: "Observed/Expected", value: "oe" },
|
|
1427
|
+
{ label: "Log(Observed/Expected)", value: "log(oe)" }
|
|
1428
|
+
// TODO: add server side logic to support these options
|
|
1429
|
+
// { label: 'Log(Observed + 1)', value: 'log(obs+1)'},
|
|
1430
|
+
// { label: 'Observed Pearson', value: 'op'}
|
|
1431
|
+
];
|
|
1432
|
+
this.holder = holder;
|
|
1433
|
+
this.callback = callback;
|
|
1434
|
+
}
|
|
1435
|
+
render() {
|
|
1436
|
+
this.matrixSelect = this.holder.attr("data-testid", "sjpp-hic-matrix-type-select").style("margin-right", "10px").append("select").on("change", async () => {
|
|
1437
|
+
this.callback(this.matrixSelect.node().value, "matrixType");
|
|
1438
|
+
});
|
|
1439
|
+
for (const matrixType of this.values) {
|
|
1440
|
+
this.matrixSelect.append("option").text(matrixType.label).attr("value", matrixType.value);
|
|
1441
|
+
}
|
|
1442
|
+
}
|
|
1443
|
+
update(option) {
|
|
1444
|
+
const options = this.matrixSelect.node().options;
|
|
1445
|
+
if (!options) return;
|
|
1446
|
+
const selectedNmeth = Array.from(options).find((o) => o.value === option);
|
|
1447
|
+
if (!selectedNmeth) throw `Invalid normalization method: ${option}`;
|
|
1448
|
+
selectedNmeth.selected = true;
|
|
1449
|
+
}
|
|
1450
|
+
};
|
|
1451
|
+
|
|
1452
|
+
// tracks/hic/controls/ControlPanel.ts
|
|
1453
|
+
var ControlPanel = class _ControlPanel {
|
|
1454
|
+
constructor(opts) {
|
|
1455
|
+
this.zoomBlockCallback = (bool) => {
|
|
1456
|
+
const detailView = this.parent("detail");
|
|
1457
|
+
detailView.xBlock.block.zoomblock(2, bool);
|
|
1458
|
+
detailView.yBlock.block.zoomblock(2, bool);
|
|
1459
|
+
};
|
|
1460
|
+
this.minCallback = (v) => {
|
|
1461
|
+
if (Number(v) > Number(this.parent("max"))) {
|
|
1462
|
+
this.error("Min cutoff cannot be greater than max cutoff");
|
|
1463
|
+
} else {
|
|
1464
|
+
this.parent("min", Number(v));
|
|
1465
|
+
this.reColorHeatmap();
|
|
1466
|
+
this.parent("infoBar").update();
|
|
1467
|
+
}
|
|
1468
|
+
};
|
|
1469
|
+
this.maxCallback = (v) => {
|
|
1470
|
+
if (Number(v) < Number(this.parent("min"))) {
|
|
1471
|
+
this.error(`Max cutoff cannot be less than min cutoff`);
|
|
1472
|
+
} else if (Number(v) < 0) {
|
|
1473
|
+
this.error(`Max cutoff cannot be less than 0`);
|
|
1474
|
+
} else {
|
|
1475
|
+
this.parent("max", Number(v));
|
|
1476
|
+
this.reColorHeatmap();
|
|
1477
|
+
this.parent("infoBar").update();
|
|
1478
|
+
}
|
|
1479
|
+
};
|
|
1480
|
+
this.reColorHeatmap = () => {
|
|
1481
|
+
if (this.parent("activeView") == "genome") {
|
|
1482
|
+
const genomeView = this.parent("genome");
|
|
1483
|
+
const chrMatrix = genomeView.viewRender.grid.chromosomeMatrix;
|
|
1484
|
+
if (!chrMatrix) return;
|
|
1485
|
+
for (const map of chrMatrix) {
|
|
1486
|
+
const yMap = map[1];
|
|
1487
|
+
for (const obj of yMap) {
|
|
1488
|
+
const canvasObj = obj[1];
|
|
1489
|
+
if (!canvasObj) continue;
|
|
1490
|
+
for (const [leadpx, followpx, val] of canvasObj.data) {
|
|
1491
|
+
this.colorizeElement.colorizeElement(
|
|
1492
|
+
leadpx,
|
|
1493
|
+
followpx,
|
|
1494
|
+
val,
|
|
1495
|
+
canvasObj,
|
|
1496
|
+
1,
|
|
1497
|
+
1,
|
|
1498
|
+
this.parent("min"),
|
|
1499
|
+
this.parent("max"),
|
|
1500
|
+
"genome"
|
|
1501
|
+
);
|
|
1502
|
+
}
|
|
1503
|
+
canvasObj.img.attr("xlink:href", canvasObj.canvas.toDataURL());
|
|
1504
|
+
if (canvasObj.canvas2) {
|
|
1505
|
+
canvasObj.img2.attr("xlink:href", canvasObj.canvas2.toDataURL());
|
|
1506
|
+
}
|
|
1507
|
+
}
|
|
1508
|
+
}
|
|
1509
|
+
} else if (this.parent("activeView") == "chrpair") {
|
|
1510
|
+
const view = this.parent("chrpair");
|
|
1511
|
+
for (const [xCoord, yCoord, val] of view.data) {
|
|
1512
|
+
this.colorizeElement.colorizeElement(
|
|
1513
|
+
xCoord,
|
|
1514
|
+
yCoord,
|
|
1515
|
+
val,
|
|
1516
|
+
view.ctx,
|
|
1517
|
+
view.binpx,
|
|
1518
|
+
view.binpx,
|
|
1519
|
+
this.parent("min"),
|
|
1520
|
+
this.parent("max"),
|
|
1521
|
+
"chrpair"
|
|
1522
|
+
);
|
|
1523
|
+
}
|
|
1524
|
+
} else if (this.parent("activeView") == "detail") {
|
|
1525
|
+
const view = this.parent("detail");
|
|
1526
|
+
for (const [xCoord, yCoord, width, height, value] of view.coords) {
|
|
1527
|
+
this.colorizeElement.colorizeElement(
|
|
1528
|
+
xCoord,
|
|
1529
|
+
yCoord,
|
|
1530
|
+
value,
|
|
1531
|
+
view.ctx,
|
|
1532
|
+
width,
|
|
1533
|
+
height,
|
|
1534
|
+
this.parent("min"),
|
|
1535
|
+
this.parent("max"),
|
|
1536
|
+
"detail"
|
|
1537
|
+
);
|
|
1538
|
+
}
|
|
1539
|
+
}
|
|
1540
|
+
};
|
|
1541
|
+
this.dropdownCallback = (v, prop) => {
|
|
1542
|
+
const state = this.app.getState();
|
|
1543
|
+
this.app.dispatch({
|
|
1544
|
+
type: "view_update",
|
|
1545
|
+
view: state.currView,
|
|
1546
|
+
config: { [prop]: v }
|
|
1547
|
+
});
|
|
1548
|
+
};
|
|
1549
|
+
this.type = _ControlPanel.type;
|
|
1550
|
+
this.controls = {};
|
|
1551
|
+
this.app = opts.app;
|
|
1552
|
+
this.controlsDiv = opts.controlsDiv;
|
|
1553
|
+
this.hic = opts.hic;
|
|
1554
|
+
this.colorizeElement = new ColorizeElement();
|
|
1555
|
+
this.parent = opts.parent;
|
|
1556
|
+
this.error = opts.error;
|
|
1557
|
+
}
|
|
1558
|
+
static {
|
|
1559
|
+
this.type = "controlPanel";
|
|
1560
|
+
}
|
|
1561
|
+
getState(appState) {
|
|
1562
|
+
return appState;
|
|
1563
|
+
}
|
|
1564
|
+
addLabel(tr, text) {
|
|
1565
|
+
return tr.append("td").style("color", "#858585").style("font-size", ".8em").style("vertical-align", text.toUpperCase() == "VIEW" ? "top" : "middle").text(text.toUpperCase());
|
|
1566
|
+
}
|
|
1567
|
+
init() {
|
|
1568
|
+
const state = this.app.getState();
|
|
1569
|
+
const menuWrapper = this.controlsDiv.attr("data-testid", "sjpp-hic-control-panel").style("background", "rgb(253, 250, 244)").style("vertical-align", "top").style("padding", "5px").style("border", "solid 0.5px #ccc");
|
|
1570
|
+
let menuVisible = true;
|
|
1571
|
+
this.controlsDiv.append("button").attr("data-testid", "sjpp-hic-burger-btn").style("display", "block").style("border", "none").style("font-size", "1.5em").style("background", "none").html("≡").on("click", () => {
|
|
1572
|
+
menuVisible = !menuVisible;
|
|
1573
|
+
menu.style("display", menuVisible ? "block" : "none");
|
|
1574
|
+
});
|
|
1575
|
+
const menu = menuWrapper.append("div").attr("class", "sjpp-hic-menu").attr("data-testid", "sjpp-hic-menu").style("display", menuVisible ? "block" : "none");
|
|
1576
|
+
const menuTable = menu.append("table").style("border-spacing", "3px");
|
|
1577
|
+
this.controls.normalizationRow = menuTable.append("tr");
|
|
1578
|
+
this.addLabel(this.controls.normalizationRow, "NORMALIZATION");
|
|
1579
|
+
this.controls.nmeth = new NormalizationMethodControl(
|
|
1580
|
+
this.controls.normalizationRow.append("td").attr("class", "sjpp-nmeth-select"),
|
|
1581
|
+
this.hic.normalization,
|
|
1582
|
+
state.defaultNmeth,
|
|
1583
|
+
this.dropdownCallback
|
|
1584
|
+
);
|
|
1585
|
+
this.controls.nmeth.render();
|
|
1586
|
+
this.controls.minCutoffRow = menuTable.append("tr");
|
|
1587
|
+
this.controls.minCutoffLabel = this.addLabel(this.controls.minCutoffRow, "");
|
|
1588
|
+
this.controls.inputBpMinV = new CutoffControl(
|
|
1589
|
+
this.controls.minCutoffRow.append("td"),
|
|
1590
|
+
this.parent("min"),
|
|
1591
|
+
this.minCallback
|
|
1592
|
+
).render({ width: "120px" });
|
|
1593
|
+
this.controls.maxCutoffRow = menuTable.append("tr");
|
|
1594
|
+
this.controls.maxCutoffLabel = this.addLabel(this.controls.maxCutoffRow, "");
|
|
1595
|
+
this.controls.inputBpMaxV = new CutoffControl(
|
|
1596
|
+
this.controls.maxCutoffRow.append("td"),
|
|
1597
|
+
this.parent("max"),
|
|
1598
|
+
this.maxCallback
|
|
1599
|
+
).render({ width: "120px" });
|
|
1600
|
+
this.controls.matrixTypeRow = menuTable.append("tr");
|
|
1601
|
+
this.addLabel(this.controls.matrixTypeRow, "matrix type");
|
|
1602
|
+
this.controls.matrixType = new MatrixTypeControl(this.controls.matrixTypeRow.append("td"), this.dropdownCallback);
|
|
1603
|
+
this.controls.matrixType.render();
|
|
1604
|
+
this.controls.widthRow = menuTable.append("tr");
|
|
1605
|
+
this.addLabel(this.controls.widthRow, "WIDTH / height");
|
|
1606
|
+
this.controls.width = this.controls.widthRow.append("td");
|
|
1607
|
+
this.controls.width.attr("data-testid", "sjpp-hic-block-size-input").style("margin-right", "10px").append("input").attr("type", "number").style("width", "80px").style("margin-left", "0px").attr("type", "number").property("value", state.width).on("keyup", async (event) => {
|
|
1608
|
+
if (event.code != "Enter") return;
|
|
1609
|
+
const v = event.target.value;
|
|
1610
|
+
this.app.dispatch({
|
|
1611
|
+
type: "view_update",
|
|
1612
|
+
config: {
|
|
1613
|
+
settings: { widthHeightPx: Number.parseInt(v) }
|
|
1614
|
+
}
|
|
1615
|
+
});
|
|
1616
|
+
});
|
|
1617
|
+
const viewRow = menuTable.append("tr");
|
|
1618
|
+
this.addLabel(viewRow, "VIEW");
|
|
1619
|
+
const viewBtnDiv = viewRow.append("td");
|
|
1620
|
+
this.controls.view = viewBtnDiv.append("span").attr("data-testid", "sjpp-hic-view-span").style("padding-right", "5px").style("display", "block");
|
|
1621
|
+
this.controls.genomeViewBtn = viewBtnDiv.append("button").attr("data-testid", "sjpp-hic-genome-view-btn").style("display", "none").style("padding", "2px").style("margin-top", "4px").html("≪ Genome").on("click", async () => {
|
|
1622
|
+
await this.app.dispatch({
|
|
1623
|
+
type: "view_create",
|
|
1624
|
+
view: "genome",
|
|
1625
|
+
config: {
|
|
1626
|
+
x: {},
|
|
1627
|
+
y: {}
|
|
1628
|
+
}
|
|
1629
|
+
});
|
|
1630
|
+
});
|
|
1631
|
+
this.controls.chrpairViewBtn = viewBtnDiv.append("button").attr("data-testid", "sjpp-hic-chrpair-view-btn").style("display", "none").style("padding", "2px").style("margin", "4px 0px").on("click", async () => {
|
|
1632
|
+
const currState = this.app.getState();
|
|
1633
|
+
await this.app.dispatch({
|
|
1634
|
+
type: "view_create",
|
|
1635
|
+
view: "chrpair",
|
|
1636
|
+
config: {
|
|
1637
|
+
x: {
|
|
1638
|
+
chr: currState.x.chr
|
|
1639
|
+
},
|
|
1640
|
+
y: {
|
|
1641
|
+
chr: currState.y.chr
|
|
1642
|
+
}
|
|
1643
|
+
}
|
|
1644
|
+
});
|
|
1645
|
+
});
|
|
1646
|
+
this.controls.horizontalViewBtn = viewBtnDiv.append("button").attr("data-testid", "sjpp-hic-horizontal-view-btn").style("display", "none").style("padding", "2px").style("margin", "4px 0px").html("Horizontal View ≫").on("click", async () => {
|
|
1647
|
+
await this.app.dispatch({
|
|
1648
|
+
type: "view_create",
|
|
1649
|
+
view: "horizontal"
|
|
1650
|
+
});
|
|
1651
|
+
});
|
|
1652
|
+
this.controls.detailViewBtn = viewBtnDiv.append("button").attr("data-testid", "sjpp-hic-detail-view-btn").style("display", "none").style("padding", "2px").style("margin", "4px 0px").html("≪ Detailed View").on("click", async () => {
|
|
1653
|
+
await this.app.dispatch({
|
|
1654
|
+
type: "view_create",
|
|
1655
|
+
view: "detail"
|
|
1656
|
+
});
|
|
1657
|
+
});
|
|
1658
|
+
this.controls.zoomDiv = menuTable.append("tr").attr("data-testid", "sjpp-hic-zoom-div").style("display", state.currView == "detail" ? "contents" : "none");
|
|
1659
|
+
this.addLabel(this.controls.zoomDiv, "ZOOM");
|
|
1660
|
+
const zoomDiv = this.controls.zoomDiv.append("td");
|
|
1661
|
+
this.controls.zoomIn = zoomDiv.append("button").attr("data-testid", "sjpp-hic-zoom-in-btn").style("margin-right", "10px").text("In").on("click", () => {
|
|
1662
|
+
this.zoomBlockCallback(false);
|
|
1663
|
+
});
|
|
1664
|
+
this.controls.zoomOut = zoomDiv.append("button").attr("data-testid", "sjpp-hic-zoom-out-btn").style("margin-right", "10px").text("Out").on("click", () => {
|
|
1665
|
+
this.zoomBlockCallback(true);
|
|
1666
|
+
});
|
|
1667
|
+
}
|
|
1668
|
+
showBtns() {
|
|
1669
|
+
const state = this.app.getState();
|
|
1670
|
+
this.controls.genomeViewBtn.style("display", state.currView === "genome" ? "none" : "inline-block");
|
|
1671
|
+
if (state.currView === "detail") {
|
|
1672
|
+
this.controls.chrpairViewBtn.html(`≪ Entire ${state.x.chr}-${state.y.chr}`).style("display", "block");
|
|
1673
|
+
this.controls.horizontalViewBtn.style("display", "block");
|
|
1674
|
+
this.controls.zoomDiv.style("display", "contents");
|
|
1675
|
+
this.controls.detailViewBtn.style("display", "none");
|
|
1676
|
+
} else if (state.currView === "horizontal") {
|
|
1677
|
+
this.controls.chrpairViewBtn.html(`≪ Entire ${state.x.chr}-${state.y.chr}`).style("display", "block");
|
|
1678
|
+
this.controls.detailViewBtn.style("display", "block");
|
|
1679
|
+
this.controls.horizontalViewBtn.style("display", "none");
|
|
1680
|
+
this.controls.zoomDiv.style("display", "none");
|
|
1681
|
+
} else {
|
|
1682
|
+
this.controls.chrpairViewBtn.style("display", "none");
|
|
1683
|
+
this.controls.horizontalViewBtn.style("display", "none");
|
|
1684
|
+
this.controls.detailViewBtn.style("display", "none");
|
|
1685
|
+
this.controls.zoomDiv.style("display", "none");
|
|
1686
|
+
this.controls.widthRow.style("display", "none");
|
|
1687
|
+
}
|
|
1688
|
+
}
|
|
1689
|
+
showHideControls() {
|
|
1690
|
+
const state = this.app.getState();
|
|
1691
|
+
this.controls.normalizationRow.style("display", state.currView == "horizontal" ? "none" : "");
|
|
1692
|
+
this.controls.minCutoffRow.style("display", state.currView == "horizontal" ? "none" : "");
|
|
1693
|
+
this.controls.maxCutoffRow.style("display", state.currView == "horizontal" ? "none" : "");
|
|
1694
|
+
this.controls.matrixTypeRow.style("display", state.currView == "horizontal" ? "none" : "");
|
|
1695
|
+
this.controls.widthRow.style("display", state.currView == "detail" ? "contents" : "none");
|
|
1696
|
+
}
|
|
1697
|
+
main(appState) {
|
|
1698
|
+
const state = this.app.getState(appState);
|
|
1699
|
+
this.controls.nmeth.update(state[state.currView].nmeth);
|
|
1700
|
+
this.controls.matrixType.update(state[state.currView].matrixType);
|
|
1701
|
+
this.controls.zoomDiv.style("display", state.currView == "detail" ? "contents" : "none");
|
|
1702
|
+
if (state.currView == "chrpair") {
|
|
1703
|
+
this.controls.view.text(`${state.x.chr}-${state.y.chr} Pair`);
|
|
1704
|
+
} else {
|
|
1705
|
+
this.controls.view.text(state.currView.charAt(0).toUpperCase() + state.currView.slice(1));
|
|
1706
|
+
}
|
|
1707
|
+
const formatAbsMin = this.parent("absMin") < 1e-5 ? Number(this.parent("absMin")).toExponential(1) : Number(this.parent("absMin").toFixed(6));
|
|
1708
|
+
const formatAbsMax = this.parent("absMax") < 1e-5 ? Number(this.parent("absMax")).toExponential(1) : Number(this.parent("absMax").toFixed(6));
|
|
1709
|
+
this.controls.width.select("input").property("value", state.settings.widthHeightPx);
|
|
1710
|
+
this.controls.inputBpMinV.property("value", this.parent("min"));
|
|
1711
|
+
this.controls.inputBpMaxV.property("value", this.parent("max"));
|
|
1712
|
+
this.controls.minCutoffLabel.html(`MIN CUTOFF <br>(>= ${formatAbsMin})`);
|
|
1713
|
+
this.controls.maxCutoffLabel.html(`MAX CUTOFF <br>(<= ${formatAbsMax})`);
|
|
1714
|
+
this.showBtns();
|
|
1715
|
+
this.showHideControls();
|
|
1716
|
+
}
|
|
1717
|
+
};
|
|
1718
|
+
var controlPanelInit = getCompInit(ControlPanel);
|
|
1719
|
+
|
|
1720
|
+
// tracks/hic/dom/InfoBar.ts
|
|
1721
|
+
var InfoBar = class {
|
|
1722
|
+
constructor(opts) {
|
|
1723
|
+
/** Defaults **/
|
|
1724
|
+
//Color shown on the left of the color scale
|
|
1725
|
+
this.startColor = "white";
|
|
1726
|
+
//Color shown on the right of the color scale
|
|
1727
|
+
this.endColor = "red";
|
|
1728
|
+
this.addLabel = (text) => {
|
|
1729
|
+
return this.labelRow.append("td").attr("data-testid", `sjpp-hic-infobar-${text.toLowerCase().replace(/\s/g, "-")}-label`).style("color", "#858585").style("font-size", ".8em").style("text-align", "center").style("vertical-align", "middle").text(text.toUpperCase());
|
|
1730
|
+
};
|
|
1731
|
+
this.addValue = (text) => {
|
|
1732
|
+
return this.valueRow.append("td").attr("data-testid", `sjpp-hic-infobar-${text.toString().toLowerCase().replace(/\s/g, "-")}-value`).style("font-size", "1em").style("text-align", "center").style("vertical-align", "middle").text(text);
|
|
1733
|
+
};
|
|
1734
|
+
this.type = "infoBar";
|
|
1735
|
+
this.app = opts.app;
|
|
1736
|
+
this.hic = opts.hic;
|
|
1737
|
+
const table = opts.infoBarDiv;
|
|
1738
|
+
this.labelRow = table.append("tr");
|
|
1739
|
+
this.valueRow = table.append("tr");
|
|
1740
|
+
this.parent = opts.parent;
|
|
1741
|
+
}
|
|
1742
|
+
async render() {
|
|
1743
|
+
this.addLabel("Version");
|
|
1744
|
+
this.addValue(this.hic.version);
|
|
1745
|
+
this.addLabel("Enzyme");
|
|
1746
|
+
this.addValue(this.hic.enzyme || "N/A");
|
|
1747
|
+
this.addLabel("Resolution");
|
|
1748
|
+
this.resolutionDiv = this.addValue("");
|
|
1749
|
+
this.colorScaleLabel = this.addLabel("Scale");
|
|
1750
|
+
this.colorScaleDiv = this.valueRow.append("td").attr("data-testid", "sjpp-hic-color-scale");
|
|
1751
|
+
const min = this.parent("min");
|
|
1752
|
+
let max = this.parent("max");
|
|
1753
|
+
if (min == max) max = max + 0.01;
|
|
1754
|
+
this.colorScale = new ColorScale({
|
|
1755
|
+
barheight: 20,
|
|
1756
|
+
barwidth: 100,
|
|
1757
|
+
domain: [min, max],
|
|
1758
|
+
fontSize: 12,
|
|
1759
|
+
height: 40,
|
|
1760
|
+
width: 150,
|
|
1761
|
+
holder: this.colorScaleDiv,
|
|
1762
|
+
colors: [this.startColor, this.endColor],
|
|
1763
|
+
position: "20,0",
|
|
1764
|
+
ticks: 3,
|
|
1765
|
+
tickSize: 5,
|
|
1766
|
+
//Do not use min value here on initialization. It's 0 and will not update later.
|
|
1767
|
+
markedValue: 1
|
|
1768
|
+
});
|
|
1769
|
+
}
|
|
1770
|
+
update() {
|
|
1771
|
+
const res = this.parent("calcResolution");
|
|
1772
|
+
let resolutionText;
|
|
1773
|
+
if (res < this.hic.bpresolution[this.hic.bpresolution.length - 1]) {
|
|
1774
|
+
resolutionText = `${res} fragment${res > 1 ? "s" : ""}`;
|
|
1775
|
+
} else {
|
|
1776
|
+
resolutionText = bplen(res);
|
|
1777
|
+
}
|
|
1778
|
+
this.resolutionDiv.text(resolutionText);
|
|
1779
|
+
if (this.parent("state").currView == "horizontal") {
|
|
1780
|
+
this.colorScaleLabel.style("display", "none");
|
|
1781
|
+
this.colorScaleDiv.style("display", "none");
|
|
1782
|
+
} else {
|
|
1783
|
+
this.colorScaleLabel.style("display", "");
|
|
1784
|
+
this.colorScaleDiv.style("display", "");
|
|
1785
|
+
const min = this.parent("min");
|
|
1786
|
+
const max = this.parent("max");
|
|
1787
|
+
if (min < 0) {
|
|
1788
|
+
this.colorScale.colors = ["blue", "white", "red"];
|
|
1789
|
+
this.colorScale.domain = [min, 0, max];
|
|
1790
|
+
} else {
|
|
1791
|
+
this.colorScale.colors = ["white", "red"];
|
|
1792
|
+
this.colorScale.domain = [0, max];
|
|
1793
|
+
}
|
|
1794
|
+
this.colorScale.markedValue = min;
|
|
1795
|
+
this.colorScale.updateScale();
|
|
1796
|
+
}
|
|
1797
|
+
}
|
|
1798
|
+
};
|
|
1799
|
+
|
|
1800
|
+
// tracks/hic/data/DataMapper.ts
|
|
1801
|
+
var DataMapper = class {
|
|
1802
|
+
constructor(hic, percentile) {
|
|
1803
|
+
this.hic = hic;
|
|
1804
|
+
this.percentile = percentile ? percentile / 100 : 0.99;
|
|
1805
|
+
}
|
|
1806
|
+
sortData(data) {
|
|
1807
|
+
const vlst = [];
|
|
1808
|
+
if (data?.items && data?.items.length) {
|
|
1809
|
+
for (const i of data.items) {
|
|
1810
|
+
vlst.push(i[2]);
|
|
1811
|
+
}
|
|
1812
|
+
} else {
|
|
1813
|
+
const blankChrs = /* @__PURE__ */ new Set();
|
|
1814
|
+
for (const d of data) {
|
|
1815
|
+
if (d.lead == "chrM" && !d.items.length || d.lead == "chrY" && !d.items.length) {
|
|
1816
|
+
blankChrs.add(d.lead);
|
|
1817
|
+
continue;
|
|
1818
|
+
}
|
|
1819
|
+
for (const i of d.items) {
|
|
1820
|
+
vlst.push(i[2]);
|
|
1821
|
+
}
|
|
1822
|
+
}
|
|
1823
|
+
if (blankChrs.size) {
|
|
1824
|
+
for (const c of blankChrs) {
|
|
1825
|
+
const idx = this.hic.chrlst.indexOf(c);
|
|
1826
|
+
this.hic.chrlst.splice(idx, 1);
|
|
1827
|
+
}
|
|
1828
|
+
}
|
|
1829
|
+
}
|
|
1830
|
+
const sortedVlst = vlst.sort((a, b) => a - b);
|
|
1831
|
+
const max = sortedVlst[Math.floor(sortedVlst.length * this.percentile)];
|
|
1832
|
+
const min = sortedVlst[0];
|
|
1833
|
+
return [min, max, sortedVlst[sortedVlst.length - 1]];
|
|
1834
|
+
}
|
|
1835
|
+
};
|
|
1836
|
+
|
|
1837
|
+
// tracks/hic/data/GenomeDataFetcher.ts
|
|
1838
|
+
var GenomeDataFetcher = class {
|
|
1839
|
+
constructor(hic, debugmode, errList = []) {
|
|
1840
|
+
this.data = [];
|
|
1841
|
+
this.hic = hic;
|
|
1842
|
+
this.debugmode = debugmode;
|
|
1843
|
+
this.errList = errList || [];
|
|
1844
|
+
}
|
|
1845
|
+
async getData(obj) {
|
|
1846
|
+
if (this.data.length) this.data = [];
|
|
1847
|
+
if (!obj?.matrixType) obj.matrixType = "observed";
|
|
1848
|
+
try {
|
|
1849
|
+
const res = await dofetch3("hicgenome?", {
|
|
1850
|
+
method: "POST",
|
|
1851
|
+
body: JSON.stringify({
|
|
1852
|
+
chrlst: this.hic.chrlst,
|
|
1853
|
+
nmeth: obj.nmeth,
|
|
1854
|
+
resolution: obj.resolution,
|
|
1855
|
+
matrixType: obj.matrixType,
|
|
1856
|
+
file: this.hic.file,
|
|
1857
|
+
url: this.hic.url,
|
|
1858
|
+
nochr: this.hic.nochr
|
|
1859
|
+
})
|
|
1860
|
+
});
|
|
1861
|
+
if (res.error) {
|
|
1862
|
+
const errs = res.error.split("\n");
|
|
1863
|
+
for (const e of errs) {
|
|
1864
|
+
this.errList.push(e);
|
|
1865
|
+
}
|
|
1866
|
+
}
|
|
1867
|
+
return res.data;
|
|
1868
|
+
} catch (e) {
|
|
1869
|
+
this.errList.push(e.message || e);
|
|
1870
|
+
if (e.stack) console.error(e.stack);
|
|
1871
|
+
}
|
|
1872
|
+
}
|
|
1873
|
+
};
|
|
1874
|
+
|
|
1875
|
+
// tracks/hic/data/DataFetcher.ts
|
|
1876
|
+
var DataFetcher = class {
|
|
1877
|
+
constructor(hic, debugmode, errList = []) {
|
|
1878
|
+
this.hic = hic;
|
|
1879
|
+
this.debugmode = debugmode;
|
|
1880
|
+
this.errList = errList || [];
|
|
1881
|
+
}
|
|
1882
|
+
async getData(obj) {
|
|
1883
|
+
if (!obj?.matrixType) obj.matrixType = "observed";
|
|
1884
|
+
const arg = {
|
|
1885
|
+
matrixType: obj.matrixType,
|
|
1886
|
+
file: this.hic.file,
|
|
1887
|
+
url: this.hic.url,
|
|
1888
|
+
pos1: this.hic.nochr ? obj.lead.replace("chr", "") : obj.lead,
|
|
1889
|
+
pos2: this.hic.nochr ? obj.follow.replace("chr", "") : obj.follow,
|
|
1890
|
+
nmeth: obj.nmeth,
|
|
1891
|
+
resolution: obj.resolution
|
|
1892
|
+
};
|
|
1893
|
+
try {
|
|
1894
|
+
const data = await dofetch3("hicdata?", {
|
|
1895
|
+
method: "POST",
|
|
1896
|
+
body: JSON.stringify(arg)
|
|
1897
|
+
});
|
|
1898
|
+
if (data.error) {
|
|
1899
|
+
throw Error(`${obj.lead} - ${obj.follow}: ${data.error.error}`);
|
|
1900
|
+
}
|
|
1901
|
+
if (!data.items || data.items.length == 0) return;
|
|
1902
|
+
return data;
|
|
1903
|
+
} catch (e) {
|
|
1904
|
+
this.errList.push(e.message || e);
|
|
1905
|
+
if (e.stack) console.error(e.stack);
|
|
1906
|
+
}
|
|
1907
|
+
}
|
|
1908
|
+
};
|
|
1909
|
+
|
|
1910
|
+
// tracks/hic/HicComponent.ts
|
|
1911
|
+
var HicComponent = class _HicComponent {
|
|
1912
|
+
constructor(opts) {
|
|
1913
|
+
this.genomeData = [];
|
|
1914
|
+
this.calcResolution = null;
|
|
1915
|
+
this.firstRender = true;
|
|
1916
|
+
this.min = 0;
|
|
1917
|
+
this.absMin = 0;
|
|
1918
|
+
this.max = 0;
|
|
1919
|
+
this.absMax = 0;
|
|
1920
|
+
this.hasStatePreMain = true;
|
|
1921
|
+
this.type = _HicComponent.type;
|
|
1922
|
+
this.hic = opts.hic;
|
|
1923
|
+
this.state = opts.state;
|
|
1924
|
+
this.dom = opts.dom;
|
|
1925
|
+
this.errList = opts.errList;
|
|
1926
|
+
this.plotDiv = this.dom.plotDiv.append("table").classed("sjpp-hic-plot-main", true);
|
|
1927
|
+
const tr1 = this.plotDiv.append("tr");
|
|
1928
|
+
const tr2 = this.plotDiv.append("tr");
|
|
1929
|
+
this.plotDiv = {
|
|
1930
|
+
plot: tr1.append("td").classed("sjpp-hic-plot", true).attr("data-testid", "sjpp-hic-plot"),
|
|
1931
|
+
yAxis: tr1.append("td").classed("sjpp-hic-plot-yaxis", true).attr("data-testid", "sjpp-hic-yaxis"),
|
|
1932
|
+
xAxis: tr2.append("td").classed("sjpp-hic-plot-xaxis", true).attr("data-testid", "sjpp-hic-xaxis"),
|
|
1933
|
+
blank: tr2.append("td")
|
|
1934
|
+
};
|
|
1935
|
+
this.app = opts.app;
|
|
1936
|
+
this.dataMapper = new DataMapper(this.hic, opts.state.maxCutoffPercentile);
|
|
1937
|
+
this.activeView = this.state.currView;
|
|
1938
|
+
this.error = opts.error;
|
|
1939
|
+
this.resolution = new Resolution(this.error);
|
|
1940
|
+
this.parent = (prop) => {
|
|
1941
|
+
return this[prop];
|
|
1942
|
+
};
|
|
1943
|
+
this.detailDataMapper = new DetailDataMapper(this.hic, this.errList, this.parent);
|
|
1944
|
+
}
|
|
1945
|
+
static {
|
|
1946
|
+
this.type = "view";
|
|
1947
|
+
}
|
|
1948
|
+
getState(appState) {
|
|
1949
|
+
return appState;
|
|
1950
|
+
}
|
|
1951
|
+
reactsTo(action) {
|
|
1952
|
+
if (action.type.startsWith("view")) return true;
|
|
1953
|
+
else return false;
|
|
1954
|
+
}
|
|
1955
|
+
initView() {
|
|
1956
|
+
const opts = {
|
|
1957
|
+
plotDiv: this.plotDiv,
|
|
1958
|
+
hic: this.hic,
|
|
1959
|
+
app: this.app,
|
|
1960
|
+
parent: (prop) => {
|
|
1961
|
+
return this[prop];
|
|
1962
|
+
}
|
|
1963
|
+
};
|
|
1964
|
+
if (this.state.currView == "genome") {
|
|
1965
|
+
opts["data"] = this.data;
|
|
1966
|
+
this.genome = new GenomeView(opts);
|
|
1967
|
+
this.genome.render();
|
|
1968
|
+
} else if (this.state.currView === "chrpair") {
|
|
1969
|
+
opts["items"] = this.data;
|
|
1970
|
+
this.chrpair = new ChrPairView(opts);
|
|
1971
|
+
this.chrpair.render();
|
|
1972
|
+
} else if (this.state.currView === "detail") {
|
|
1973
|
+
opts["data"] = this.data;
|
|
1974
|
+
this.detail = new DetailView(opts);
|
|
1975
|
+
this.detail.render();
|
|
1976
|
+
} else if (this.state.currView === "horizontal") {
|
|
1977
|
+
this.horizontal = new HorizontalView(opts);
|
|
1978
|
+
this.horizontal.render();
|
|
1979
|
+
} else {
|
|
1980
|
+
throw Error(`Unknown view: ${this.state.currView}`);
|
|
1981
|
+
}
|
|
1982
|
+
}
|
|
1983
|
+
async fetchData(obj) {
|
|
1984
|
+
if (this.data?.length) this.data = [];
|
|
1985
|
+
if (this.state.currView == "genome") {
|
|
1986
|
+
if (this.activeView != "genome" && this.genomeData?.length) this.data = this.genomeData;
|
|
1987
|
+
else {
|
|
1988
|
+
const genomeFetcher = new GenomeDataFetcher(this.hic, true, this.errList);
|
|
1989
|
+
this.genomeData = await genomeFetcher.getData(obj);
|
|
1990
|
+
this.data = this.genomeData;
|
|
1991
|
+
}
|
|
1992
|
+
} else if (this.state.currView == "detail") {
|
|
1993
|
+
this.data = await this.detailDataMapper.getData(this.state.x, this.state.y, this.fragData);
|
|
1994
|
+
} else {
|
|
1995
|
+
if (!this.state?.x?.chr || !this.state?.y?.chr) {
|
|
1996
|
+
this.errList.push(`No positions provided for ${this.activeView} view.`);
|
|
1997
|
+
return;
|
|
1998
|
+
} else {
|
|
1999
|
+
const chrx = this.state.x;
|
|
2000
|
+
const chry = this.state.y;
|
|
2001
|
+
obj["lead"] = `${chrx.start && chrx.stop ? `${chrx.chr}:${chrx.start}-${chrx.stop}` : chrx.chr}`;
|
|
2002
|
+
obj["follow"] = `${chry.start && chry.stop ? `${chry.chr}:${chry.start}-${chry.stop}` : chry.chr}`;
|
|
2003
|
+
}
|
|
2004
|
+
const dataFetcher = new DataFetcher(this.hic, true, this.errList);
|
|
2005
|
+
this.data = await dataFetcher.getData(obj);
|
|
2006
|
+
}
|
|
2007
|
+
}
|
|
2008
|
+
async setResolution(appState) {
|
|
2009
|
+
const state = this.app.getState(appState);
|
|
2010
|
+
this.calcResolution = this.resolution.getResolution(state, this.hic);
|
|
2011
|
+
if (state.currView == "detail" && this.calcResolution == null) {
|
|
2012
|
+
await this.detailDataMapper.getFragData(state.x, state.y);
|
|
2013
|
+
this.fragData = this.detailDataMapper.frag;
|
|
2014
|
+
const maxFragSpan = Math.min(
|
|
2015
|
+
this.fragData.x.stop - this.fragData.x.start,
|
|
2016
|
+
this.fragData.y.stop - this.fragData.y.start
|
|
2017
|
+
);
|
|
2018
|
+
this.calcResolution = this.resolution.findResFromArray(
|
|
2019
|
+
maxFragSpan,
|
|
2020
|
+
state.minFragSpan,
|
|
2021
|
+
this.hic.fragresolution,
|
|
2022
|
+
true
|
|
2023
|
+
);
|
|
2024
|
+
} else {
|
|
2025
|
+
this.fragData = null;
|
|
2026
|
+
}
|
|
2027
|
+
return this.calcResolution;
|
|
2028
|
+
}
|
|
2029
|
+
async setDataArgs(appState) {
|
|
2030
|
+
const state = this.app.getState(appState);
|
|
2031
|
+
const currView = state[state.currView];
|
|
2032
|
+
const args = {
|
|
2033
|
+
nmeth: currView.nmeth,
|
|
2034
|
+
resolution: await this.setResolution(appState),
|
|
2035
|
+
matrixType: currView.matrixType
|
|
2036
|
+
};
|
|
2037
|
+
if (state.currView == "chrpair") {
|
|
2038
|
+
args["lead"] = state.x.chr;
|
|
2039
|
+
args["follow"] = state.y.chr;
|
|
2040
|
+
}
|
|
2041
|
+
return args;
|
|
2042
|
+
}
|
|
2043
|
+
async getViewData(appState) {
|
|
2044
|
+
const args = await this.setDataArgs(appState);
|
|
2045
|
+
await this.fetchData(args);
|
|
2046
|
+
if (this.data?.length > 0 || this.data?.items?.length > 0) {
|
|
2047
|
+
const [min, max, absMax] = this.dataMapper.sortData(this.data);
|
|
2048
|
+
this.min = this.absMin = min;
|
|
2049
|
+
this.max = max;
|
|
2050
|
+
this.absMax = absMax;
|
|
2051
|
+
} else {
|
|
2052
|
+
if (this.state.currView != "genome") {
|
|
2053
|
+
const state = this.app.getState(appState);
|
|
2054
|
+
const xPosMessage = state.x?.start ? `${state.x.chr}:${state.x.start}-${state.x.stop}` : state.x.chr;
|
|
2055
|
+
const yPosMessage = state.y?.start ? `${state.y.chr}:${state.y.start}-${state.y.stop}` : state.y.chr;
|
|
2056
|
+
this.errList.push(`No data returned for ${xPosMessage} and ${yPosMessage}`);
|
|
2057
|
+
}
|
|
2058
|
+
}
|
|
2059
|
+
}
|
|
2060
|
+
async init() {
|
|
2061
|
+
this.components = {
|
|
2062
|
+
controls: await controlPanelInit({
|
|
2063
|
+
app: this.app,
|
|
2064
|
+
controlsDiv: this.dom.controlsDiv,
|
|
2065
|
+
hic: this.hic,
|
|
2066
|
+
parent: (prop, value) => {
|
|
2067
|
+
if (value) this[prop] = value;
|
|
2068
|
+
return this[prop];
|
|
2069
|
+
},
|
|
2070
|
+
error: this.error.bind(this)
|
|
2071
|
+
})
|
|
2072
|
+
};
|
|
2073
|
+
this.infoBar = new InfoBar({
|
|
2074
|
+
app: this.app,
|
|
2075
|
+
infoBarDiv: this.dom.infoBarDiv.append("table").style("border-spacing", "3px"),
|
|
2076
|
+
hic: this.hic,
|
|
2077
|
+
parent: (prop) => {
|
|
2078
|
+
return this[prop];
|
|
2079
|
+
}
|
|
2080
|
+
});
|
|
2081
|
+
this.infoBar.render();
|
|
2082
|
+
}
|
|
2083
|
+
async main(appState) {
|
|
2084
|
+
if (this.errList.length) {
|
|
2085
|
+
this.app.dispatch({ type: "loading_active", active: false });
|
|
2086
|
+
return;
|
|
2087
|
+
}
|
|
2088
|
+
const state = this.app.getState(appState);
|
|
2089
|
+
if (this.firstRender == true) {
|
|
2090
|
+
this.firstRender = false;
|
|
2091
|
+
await this.getViewData(appState);
|
|
2092
|
+
this.initView();
|
|
2093
|
+
} else {
|
|
2094
|
+
if (state.currView != "horizontal") {
|
|
2095
|
+
this.app.dispatch({ type: "loading_active", active: true });
|
|
2096
|
+
await this.getViewData(appState);
|
|
2097
|
+
}
|
|
2098
|
+
if (this.activeView != state.currView) {
|
|
2099
|
+
if (this.activeView == "genome") {
|
|
2100
|
+
this.genome.svg.remove();
|
|
2101
|
+
} else {
|
|
2102
|
+
this.plotDiv.xAxis.selectAll("*").remove();
|
|
2103
|
+
this.plotDiv.yAxis.selectAll("*").remove();
|
|
2104
|
+
this.plotDiv.plot.selectAll("*").remove();
|
|
2105
|
+
}
|
|
2106
|
+
this.activeView = state.currView;
|
|
2107
|
+
this.initView();
|
|
2108
|
+
} else {
|
|
2109
|
+
this[state.currView].update(this.data);
|
|
2110
|
+
}
|
|
2111
|
+
}
|
|
2112
|
+
this.infoBar.update();
|
|
2113
|
+
if (this.errList.length) {
|
|
2114
|
+
this.error(this.errList);
|
|
2115
|
+
this.app.dispatch({ type: "loading_active", active: false });
|
|
2116
|
+
}
|
|
2117
|
+
}
|
|
2118
|
+
};
|
|
2119
|
+
var viewCompInit = getCompInit(HicComponent);
|
|
2120
|
+
|
|
2121
|
+
// tracks/hic/HicApp.ts
|
|
2122
|
+
var HicApp = class _HicApp extends AppBase {
|
|
2123
|
+
constructor(opts) {
|
|
2124
|
+
super(opts);
|
|
2125
|
+
this.views = ["genome", "chrpair", "detail", "horizontal"];
|
|
2126
|
+
this.errList = [];
|
|
2127
|
+
/** Required for rx but not in use */
|
|
2128
|
+
this.wasDestroyed = false;
|
|
2129
|
+
this.type = _HicApp.type;
|
|
2130
|
+
this.hic = {
|
|
2131
|
+
enzyme: opts.enzyme,
|
|
2132
|
+
file: opts.file,
|
|
2133
|
+
url: opts.url,
|
|
2134
|
+
genome: opts.genome,
|
|
2135
|
+
holder: opts.holder,
|
|
2136
|
+
hostUrl: opts.hostUrl,
|
|
2137
|
+
jwt: opts.jwt,
|
|
2138
|
+
position1: opts.position1,
|
|
2139
|
+
position2: opts.position2,
|
|
2140
|
+
maxCutoffPercentile: opts.maxCutoffPercentile,
|
|
2141
|
+
name: "name" in opts ? opts.name : "Hi-C",
|
|
2142
|
+
tklist: "tklst" in opts ? opts.tklst : [],
|
|
2143
|
+
state: "state" in opts ? opts.state : {}
|
|
2144
|
+
};
|
|
2145
|
+
this.dom = {
|
|
2146
|
+
errorDiv: opts.holder.append("div").classed("sjpp-hic-error", true),
|
|
2147
|
+
controlsDiv: opts.holder.append("div").classed("sjpp-hic-controls", true).style("display", "inline-block"),
|
|
2148
|
+
infoBarDiv: opts.holder.append("div").classed("sjpp-hic-infobar", true).style("display", "inline-block").style("vertical-align", "top").style("padding", "5px").style("border", "solid 0.5px #ccc"),
|
|
2149
|
+
loadingDiv: select_default("body").append("div").attr("id", "sjpp-loading-overlay"),
|
|
2150
|
+
plotDiv: opts.holder.append("div").classed("sjpp-hic-main", true).style("display", "inline-block"),
|
|
2151
|
+
tip: new Menu()
|
|
2152
|
+
};
|
|
2153
|
+
}
|
|
2154
|
+
static {
|
|
2155
|
+
this.type = "app";
|
|
2156
|
+
}
|
|
2157
|
+
async error(err) {
|
|
2158
|
+
if (err && typeof err == "string") this.errList.push(err);
|
|
2159
|
+
showErrorsWithCounter(this.errList, this.dom.errorDiv);
|
|
2160
|
+
this.errList = [];
|
|
2161
|
+
}
|
|
2162
|
+
determineView() {
|
|
2163
|
+
if (!this.hic.position1 && !this.hic.position2 && !this.hic.state.currView) this.hic.state.currView = "genome";
|
|
2164
|
+
if (!this.hic.position1 && this.hic.position2) this.errList.push("Missing first position");
|
|
2165
|
+
if (this.hic.position1 && !this.hic.position2) this.errList.push("Missing second position");
|
|
2166
|
+
if (this.hic.position1 && this.hic.position2) {
|
|
2167
|
+
const pos1 = this.hic.position1.split(/[:-]/);
|
|
2168
|
+
const pos2 = this.hic.position2.split(/[:-]/);
|
|
2169
|
+
this.hic.state.x = { chr: pos1[0] };
|
|
2170
|
+
this.hic.state.y = { chr: pos2[0] };
|
|
2171
|
+
if (!Number.isNaN(+pos1[1]) && !Number.isNaN(+pos1[2])) {
|
|
2172
|
+
this.hic.state.x.start = +pos1[1];
|
|
2173
|
+
this.hic.state.x.stop = +pos1[2];
|
|
2174
|
+
this.hic.state.y.start = +pos2[1];
|
|
2175
|
+
this.hic.state.y.stop = +pos2[2];
|
|
2176
|
+
this.hic.state.currView = "detail";
|
|
2177
|
+
} else {
|
|
2178
|
+
this.hic.state.currView = "chrpair";
|
|
2179
|
+
}
|
|
2180
|
+
} else {
|
|
2181
|
+
if (!this.views.some((v) => v === this.hic.state.currView)) this.error(`Unknown view: ${this.hic.state.currView}`);
|
|
2182
|
+
else return this.hic.state.currView;
|
|
2183
|
+
}
|
|
2184
|
+
}
|
|
2185
|
+
getViewsConfig() {
|
|
2186
|
+
if (this.hic.maxCutoffPercentile) this.hic.state.maxCutoffPercentile = this.hic.maxCutoffPercentile;
|
|
2187
|
+
let nmeth;
|
|
2188
|
+
if (this.hic["normalization"]?.length > 0) {
|
|
2189
|
+
if (!this.hic["normalization"].includes("NONE")) this.hic["normalization"].unshift("NONE");
|
|
2190
|
+
nmeth = this.hic["normalization"][0];
|
|
2191
|
+
} else {
|
|
2192
|
+
nmeth = "NONE";
|
|
2193
|
+
}
|
|
2194
|
+
if (this.hic.state.currView) {
|
|
2195
|
+
if (!this.hic.state[this.hic.state.currView]) this.hic.state[this.hic.state.currView] = {};
|
|
2196
|
+
if (!this.hic.state[this.hic.state.currView]?.matrixType) {
|
|
2197
|
+
this.hic.state[this.hic.state.currView].matrixType = "observed";
|
|
2198
|
+
}
|
|
2199
|
+
if (!this.hic.state[this.hic.state.currView]?.nmeth) {
|
|
2200
|
+
this.hic.state[this.hic.state.currView].nmeth = nmeth;
|
|
2201
|
+
}
|
|
2202
|
+
}
|
|
2203
|
+
for (const v of this.views) {
|
|
2204
|
+
if (!this.hic.state[v]) {
|
|
2205
|
+
this.hic.state[v] = {
|
|
2206
|
+
matrixType: "observed",
|
|
2207
|
+
nmeth
|
|
2208
|
+
};
|
|
2209
|
+
}
|
|
2210
|
+
}
|
|
2211
|
+
}
|
|
2212
|
+
async init() {
|
|
2213
|
+
this.determineView();
|
|
2214
|
+
try {
|
|
2215
|
+
await hicParseFile(this.hic, true, this.errList);
|
|
2216
|
+
this.getViewsConfig();
|
|
2217
|
+
this.store = await hicStoreInit({ app: this.api, state: this.hic.state });
|
|
2218
|
+
this.state = await this.store.copyState();
|
|
2219
|
+
this.components = {
|
|
2220
|
+
loadingOverlay: await loadingInit({
|
|
2221
|
+
app: this.api,
|
|
2222
|
+
loadingDiv: this.dom.loadingDiv
|
|
2223
|
+
}),
|
|
2224
|
+
view: await viewCompInit({
|
|
2225
|
+
app: this.api,
|
|
2226
|
+
state: this.state,
|
|
2227
|
+
dom: this.dom,
|
|
2228
|
+
hic: this.hic,
|
|
2229
|
+
errList: this.errList,
|
|
2230
|
+
error: this.error
|
|
2231
|
+
})
|
|
2232
|
+
};
|
|
2233
|
+
await this.api.dispatch();
|
|
2234
|
+
} catch (e) {
|
|
2235
|
+
console.error(e.stack || e);
|
|
2236
|
+
}
|
|
2237
|
+
}
|
|
2238
|
+
main() {
|
|
2239
|
+
if (this.errList.length) {
|
|
2240
|
+
this.error(this.errList);
|
|
2241
|
+
this.dom.loadingDiv.style("display", "none");
|
|
2242
|
+
return;
|
|
2243
|
+
}
|
|
2244
|
+
}
|
|
2245
|
+
};
|
|
2246
|
+
var hicInit = getAppInit(HicApp);
|
|
2247
|
+
export {
|
|
2248
|
+
hicInit
|
|
2249
|
+
};
|
|
2250
|
+
//# sourceMappingURL=HicApp-M2OCHGRT.js.map
|