@sjcrh/proteinpaint-client 2.196.0 → 2.198.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-R3PFZNRN.js +1373 -0
- package/dist/AIProjectAdmin-DM3KG6SR.js +958 -0
- package/dist/AppHeader-6DZQ6YZX.js +835 -0
- package/dist/BoxPlot-76NINVX4.js +1217 -0
- package/dist/CorrelationVolcano-U5UMJNH5.js +619 -0
- package/dist/DE-AXNYWIQK.js +95 -0
- package/dist/DEinput-JH6YY6LS.js +301 -0
- package/dist/DifferentialAnalysis-25P4CGIY.js +242 -0
- package/dist/DifferentialAnalysis-25P4CGIY.js.map +7 -0
- package/dist/Disco-NVMLF3BK.js +3392 -0
- package/dist/Disco-NVMLF3BK.js.map +7 -0
- package/dist/Disco.UI-C7CZINUQ.js +249 -0
- package/dist/DmrPlot-WROR4ENM.js +642 -0
- package/dist/GB-JUABODPH.js +1394 -0
- package/dist/GB-JUABODPH.js.map +7 -0
- package/dist/GSEA-Y5R2THIJ.js +846 -0
- package/dist/GSEA-Y5R2THIJ.js.map +7 -0
- package/dist/GeneExpInput-JDU6EI7K.js +367 -0
- package/dist/Geomap-J763OK2F.js +89 -0
- package/dist/Geomap-J763OK2F.js.map +7 -0
- package/dist/HicApp-UNIJLH4B.js +2250 -0
- package/dist/IDCViewer-KVPCIUDW.js +10803 -0
- package/dist/IDCViewer-KVPCIUDW.js.map +7 -0
- package/dist/NumBinaryEditor-WMN2GGO4.js +271 -0
- package/dist/NumBinaryEditor.unit.spec-TAMXV6SE.js +286 -0
- package/dist/NumContEditor-XYIOJY4E.js +109 -0
- package/dist/NumContEditor.unit.spec-WDZ75BHO.js +169 -0
- package/dist/NumCustomBinEditor-5SY3C4TY.js +38 -0
- package/dist/NumCustomBinEditor.unit.spec-XHTAIXR3.js +284 -0
- package/dist/NumDiscreteEditor-NRDRX4FD.js +179 -0
- package/dist/NumDiscreteEditor.unit.spec-2CJW7OAT.js +202 -0
- package/dist/NumRegularBinEditor-DUDVTNDC.js +38 -0
- package/dist/NumRegularBinEditor.unit.spec-H3GNQHMN.js +227 -0
- package/dist/NumSplineEditor-7Q4AC7KH.js +198 -0
- package/dist/NumSplineEditor.unit.spec-YRZK5PH5.js +199 -0
- package/dist/NumericDensity-NTNWUESG.js +38 -0
- package/dist/NumericDensity.unit.spec-5I5U6T6P.js +221 -0
- package/dist/NumericHandler-MEW2KMPX.js +39 -0
- package/dist/NumericHandler.unit.spec-JFX4BPRG.js +219 -0
- package/dist/ProteomeInput-K2ZHR2U6.js +395 -0
- package/dist/ProteomeInput-K2ZHR2U6.js.map +7 -0
- package/dist/RunChart2-BEBDU7RC.js +758 -0
- package/dist/SC-XCBFJVUJ.js +1120 -0
- package/dist/SC-XCBFJVUJ.js.map +7 -0
- package/dist/Volcano-4Y4TP3UX.js +1385 -0
- package/dist/Volcano-4Y4TP3UX.js.map +7 -0
- package/dist/WSIViewer-ZLQU62PD.js +48562 -0
- package/dist/WsiSamplesPlot-JMBSITOM.js +165 -0
- package/dist/adSandbox-664IRCRL.js +38 -0
- package/dist/animatedBubbleChart-TX7NW34K.js +555 -0
- package/dist/app-63WJ3BMP.js +37 -0
- package/dist/app-77FIZHCG.js +49 -0
- package/dist/app.js +19 -19
- package/dist/bam-IETNVAYD.js +860 -0
- package/dist/barchart-YUVXJNH4.js +47 -0
- package/dist/barchart.data-P4EIQXGE.js +22 -0
- package/dist/barchart.events-JPVCLTIG.js +47 -0
- package/dist/barchart.integration.spec-ZH7DEQI2.js +2196 -0
- package/dist/barchart2-XO2FG76J.js +314 -0
- package/dist/bars.renderer-AUIWUJDH.js +12 -0
- package/dist/block-NBTCOT3H.js +6255 -0
- package/dist/block-NBTCOT3H.js.map +7 -0
- package/dist/block.init-X7Y2EEVR.js +38 -0
- package/dist/block.mds.expressionrank-BIAOZIZ3.js +359 -0
- package/dist/block.mds.geneboxplot-CNICDVLK.js +828 -0
- package/dist/block.mds.junction-PQXCTSUI.js +1545 -0
- package/dist/block.mds.svcnv-32KMVTCT.js +6801 -0
- package/dist/block.svg-LRTOYQK2.js +164 -0
- package/dist/block.tk.aicheck-HDV7ZIUD.js +283 -0
- package/dist/block.tk.ase-JIDWKMYI.js +365 -0
- package/dist/block.tk.bam-5X3OS5HB.js +1906 -0
- package/dist/block.tk.bedgraphdot-T7JX7YQL.js +384 -0
- package/dist/block.tk.bigwig.ui-OSAYEBAE.js +212 -0
- package/dist/block.tk.hicstraw-DEY3VQFK.js +823 -0
- package/dist/block.tk.junction-7UAFEZSJ.js +2364 -0
- package/dist/block.tk.junction.textmatrixui-27LHS33U.js +199 -0
- package/dist/block.tk.ld-DF2PI7OO.js +99 -0
- package/dist/block.tk.menu-L2D5KBIV.js +1029 -0
- package/dist/block.tk.pgv-QO56SKBV.js +944 -0
- package/dist/brainImaging-NIPQWFWO.js +423 -0
- package/dist/brainRegions-ZNZ2WHSU.js +221 -0
- package/dist/bubbleHeatmap-ERWNEKZB.js +383 -0
- package/dist/chunk-2GYWFQML.js +299 -0
- package/dist/chunk-2HYJ4GDH.js +50 -0
- package/dist/chunk-2MG6XE6R.js +272 -0
- package/dist/chunk-2X6W4E3W.js +1507 -0
- package/dist/chunk-2X6W4E3W.js.map +7 -0
- package/dist/chunk-33K5PA52.js +54 -0
- package/dist/chunk-37XDBPOP.js +26 -0
- package/dist/chunk-3EWB3246.js +58 -0
- package/dist/chunk-3RSKOPIY.js +100 -0
- package/dist/chunk-3XVVN66M.js +4085 -0
- package/dist/chunk-3XVVN66M.js.map +7 -0
- package/dist/chunk-4DPVT4NE.js +1102 -0
- package/dist/chunk-4IH7DORZ.js +98 -0
- package/dist/chunk-4QNBFIIR.js +399 -0
- package/dist/chunk-4STKL6SR.js +217 -0
- package/dist/chunk-4TZIVSL5.js +34 -0
- package/dist/chunk-5ABGFJSP.js +467 -0
- package/dist/chunk-5AZNP47R.js +302 -0
- package/dist/chunk-5RL2OHXX.js +5070 -0
- package/dist/chunk-5RL2OHXX.js.map +7 -0
- package/dist/chunk-5VOPABBA.js +20941 -0
- package/dist/chunk-5VOPABBA.js.map +7 -0
- package/dist/chunk-6BB43SIB.js +102 -0
- package/dist/chunk-7OHRR2IE.js +276 -0
- package/dist/chunk-ARBHWDMY.js +226 -0
- package/dist/chunk-ARBHWDMY.js.map +7 -0
- package/dist/chunk-ASATD4T7.js +14 -0
- package/dist/chunk-AZ47Q7BX.js +1223 -0
- package/dist/chunk-AZ47Q7BX.js.map +7 -0
- package/dist/chunk-B5B3LZB3.js +236 -0
- package/dist/chunk-BHGISFCA.js +2681 -0
- package/dist/chunk-BMBOZ64T.js +2786 -0
- package/dist/chunk-BOZJHPJP.js +216 -0
- package/dist/chunk-CDD7LYJM.js +194 -0
- package/dist/chunk-CTQ3IUCA.js +2327 -0
- package/dist/chunk-D7TID3HR.js +158 -0
- package/dist/chunk-DBKNWR4J.js +1561 -0
- package/dist/chunk-DBKNWR4J.js.map +7 -0
- package/dist/chunk-E55LLYRX.js +55 -0
- package/dist/chunk-ESGXULRH.js +386 -0
- package/dist/chunk-EZ4LZ6ZT.js +117 -0
- package/dist/chunk-F3SJTVP5.js +4284 -0
- package/dist/chunk-F5IXNJO7.js +222 -0
- package/dist/chunk-FJYECRHW.js +448 -0
- package/dist/chunk-FPNRUQOU.js +833 -0
- package/dist/chunk-G5S4R77D.js +1942 -0
- package/dist/chunk-G5S4R77D.js.map +7 -0
- package/dist/chunk-G764NXQN.js +170 -0
- package/dist/chunk-GAPI4MML.js +148 -0
- package/dist/chunk-HLUZOZXJ.js +272 -0
- package/dist/chunk-HOKIK2FR.js +375 -0
- package/dist/chunk-I6WR4CG7.js +323 -0
- package/dist/chunk-I6WR4CG7.js.map +7 -0
- package/dist/chunk-KLGL6XZD.js +129 -0
- package/dist/chunk-KTKZSYIH.js +24 -0
- package/dist/chunk-KTKZSYIH.js.map +7 -0
- package/dist/chunk-L7IRWUKT.js +480 -0
- package/dist/chunk-LFCYMSVA.js +314 -0
- package/dist/chunk-LFCYMSVA.js.map +7 -0
- package/dist/chunk-LX6G7HJJ.js +617 -0
- package/dist/chunk-M2G5R4WB.js +142 -0
- package/dist/chunk-M4TTGGT4.js +102 -0
- package/dist/chunk-M6EF3WVV.js +1825 -0
- package/dist/chunk-M6KHT3MM.js +146 -0
- package/dist/chunk-MCZFHWIR.js +230 -0
- package/dist/chunk-MFQACKYU.js +448 -0
- package/dist/chunk-MVGAGTM3.js +343 -0
- package/dist/chunk-NELOT3NJ.js +119 -0
- package/dist/chunk-NRKMXULC.js +54 -0
- package/dist/chunk-NSTL4MY2.js +2110 -0
- package/dist/chunk-NSTL4MY2.js.map +7 -0
- package/dist/chunk-NYRZNRG5.js +177 -0
- package/dist/chunk-ONPKE6DC.js +368 -0
- package/dist/chunk-OXVLWQ6M.js +556 -0
- package/dist/chunk-OXVLWQ6M.js.map +7 -0
- package/dist/chunk-PFRWS4CR.js +203 -0
- package/dist/chunk-PJKQUXEN.js +1275 -0
- package/dist/chunk-Q2L44HK3.js +6364 -0
- package/dist/chunk-QNHT74XC.js +1245 -0
- package/dist/chunk-QNHT74XC.js.map +7 -0
- package/dist/chunk-RKO6BL5N.js +446 -0
- package/dist/chunk-T25QNZHB.js +254 -0
- package/dist/chunk-U7TBYVIQ.js +31 -0
- package/dist/chunk-UGRQXBL4.js +381 -0
- package/dist/chunk-USFSHSCJ.js +477 -0
- package/dist/chunk-VJ6UFVGC.js +2833 -0
- package/dist/chunk-W3WPPOXH.js +292 -0
- package/dist/chunk-WFCSOTBO.js +263 -0
- package/dist/chunk-WHP4AKDM.js +185 -0
- package/dist/chunk-WHP4AKDM.js.map +7 -0
- package/dist/chunk-WZ2L57MB.js +102 -0
- package/dist/chunk-XPY6AWXO.js +787 -0
- package/dist/chunk-XPY6AWXO.js.map +7 -0
- package/dist/chunk-Y4UAKFWC.js +37 -0
- package/dist/chunk-YQBS2ZCK.js +514 -0
- package/dist/chunk-Z5U6HOE4.js +190 -0
- package/dist/chunk-Z5U6HOE4.js.map +7 -0
- package/dist/chunk-ZNEJUKJW.js +140 -0
- package/dist/chunk-ZNEJUKJW.js.map +7 -0
- package/dist/chunk-ZTHM2TKP.js +176 -0
- package/dist/condition-2PASYSUC.js +332 -0
- package/dist/controls-5IMJ6K5L.js +41 -0
- package/dist/controls.config-P5PG2DHW.js +39 -0
- package/dist/correlation-U3EDLNHR.js +102 -0
- package/dist/cuminc-2HUFEROK.js +1149 -0
- package/dist/cuminc.integration.spec-WFWAPTDA.js +678 -0
- package/dist/cuminc.integration.spec-WFWAPTDA.js.map +7 -0
- package/dist/customdata.inputui-ZHWNEPFH.js +289 -0
- package/dist/dataDownload-VBSJBKMP.js +330 -0
- package/dist/dataDownload.integration.spec-LUFSETOP.js +193 -0
- package/dist/databrowser.ui-6H2KMSTJ.js +433 -0
- package/dist/dictionary-V37LXFIP.js +118 -0
- package/dist/dnaMethylation-OIZMHMLK.js +38 -0
- package/dist/dnaMethylation.integration.spec-CWPTJ74H.js +203 -0
- package/dist/dofetch-IWPZQB5N.js +51 -0
- package/dist/e2pca-7SLIAGYW.js +350 -0
- package/dist/ep-7L6KF6K4.js +1256 -0
- package/dist/expclust.gdc.spec-JT452Q3G.js +307 -0
- package/dist/facet-CXOUU5AS.js +521 -0
- package/dist/forms2-VPNCLQOY.js +539 -0
- package/dist/gb-P4VRXRED.js +88 -0
- package/dist/geneExpClustering-FQTCKRJJ.js +249 -0
- package/dist/geneExpression-BHO5326K.js +313 -0
- package/dist/geneExpression-ZMERB64E.js +38 -0
- package/dist/geneExpression.unit.spec-CNVHZWNG.js +102 -0
- package/dist/geneORA-FXVUCXGX.js +278 -0
- package/dist/geneRanking-SFK4UBKQ.js +553 -0
- package/dist/geneVariant-IYEHB4H7.js +41 -0
- package/dist/geneVariant-LIRRLUFR.js +39 -0
- package/dist/geneVariant.integration.spec-Y2NPNTYX.js +198 -0
- package/dist/genefusion.ui-L3HIJM3N.js +309 -0
- package/dist/geneset-A6VUFX63.js +208 -0
- package/dist/genomeBrowser.spec-CB4HHHBN.js +281 -0
- package/dist/grin2-FKBIMH5N.js +75 -0
- package/dist/grin2-V36KLEBU.js +1143 -0
- package/dist/grin2-V36KLEBU.js.map +7 -0
- package/dist/hierCluster-QFPRMHVA.js +63 -0
- package/dist/hierCluster-YWC3XYPV.js +59 -0
- package/dist/hierCluster.config-F7YYZNM3.js +40 -0
- package/dist/hierCluster.integration.spec-AF4L3YT6.js +488 -0
- package/dist/hierCluster.interactivity-RPY74PK6.js +54 -0
- package/dist/hierCluster.renderers-LOKHZ3V2.js +21 -0
- package/dist/imagePlot-BBEXA754.js +163 -0
- package/dist/importPlot-7QGANZGK.js +8 -0
- package/dist/isoformExpression-4SLLCVFD.js +40 -0
- package/dist/isoformExpression.unit.spec-GEL4JJ64.js +208 -0
- package/dist/launch.adhoc-LWLBQJS5.js +42 -0
- package/dist/leftlabel.sample-RTEZOIH2.js +264 -0
- package/dist/legacyDataset-VLD7ZYWI.js +119 -0
- package/dist/lollipop-XKQK5QZU.js +171 -0
- package/dist/maf-AZQPPWDO.js +459 -0
- package/dist/maftimeline-7MSVYKQU.js +593 -0
- package/dist/matrix-BGLWC25D.js +58 -0
- package/dist/matrix-IQR5SRMK.js +63 -0
- package/dist/matrix.cells-5C57NWOY.js +28 -0
- package/dist/matrix.config-2DQXAN2E.js +41 -0
- package/dist/matrix.data-ADCGF5H6.js +25 -0
- package/dist/matrix.groups-V4ITQ5F7.js +27 -0
- package/dist/matrix.integration.spec-IBNOO2WP.js +3072 -0
- package/dist/matrix.integration.spec-IBNOO2WP.js.map +7 -0
- package/dist/matrix.interactivity-JNELJFOV.js +42 -0
- package/dist/matrix.layout-WBVIV6GR.js +44 -0
- package/dist/matrix.legend-YHOWPK77.js +22 -0
- package/dist/matrix.renderers-5BGVRR3M.js +38 -0
- package/dist/matrix.serieses-2GZJOASZ.js +21 -0
- package/dist/matrix.sort-WKIWPJKP.js +27 -0
- package/dist/matrix.sort.unit.spec-L2E4D4AS.js +472 -0
- package/dist/matrix.sorterUi-TEJWWJ64.js +18 -0
- package/dist/matrix.sorterUi.unit.spec-SHP7C4P7.js +342 -0
- package/dist/mavb-4MXNYUEO.js +732 -0
- package/dist/mds.fimo-WHIJIBOI.js +518 -0
- package/dist/mds.samplescatterplot-BRJ6NG2D.js +1550 -0
- package/dist/mds.survivalplot-OPCMB5PB.js +483 -0
- package/dist/numericDictTermCluster-7MIFOP2K.js +65 -0
- package/dist/oncomatrix-BGG6BEUI.js +295 -0
- package/dist/oncomatrix.spec-LYQ4L4F3.js +448 -0
- package/dist/plot.2dvaf-6WVCP2ZI.js +377 -0
- package/dist/plot.app-MLBP6WFP.js +41 -0
- package/dist/plot.barplot-JEPRZSCU.js +102 -0
- package/dist/plot.boxplot-GNFW42VM.js +152 -0
- package/dist/plot.brainImaging-5ACNSD45.js +51 -0
- package/dist/plot.disco-Q2V2KKIH.js +102 -0
- package/dist/plot.dzi-KVT6S7K7.js +33 -0
- package/dist/plot.ssgq-4N3KFJQ2.js +139 -0
- package/dist/plot.vaf2cov-ITRG5U43.js +259 -0
- package/dist/plot.wsi-26YZNU4V.js +36 -0
- package/dist/polar2-J7GVUK4X.js +231 -0
- package/dist/profileForms-VXV2JLXU.js +446 -0
- package/dist/profilePlot-ZZYZK4SY.js +54 -0
- package/dist/proteinView-7KN532D3.js +1568 -0
- package/dist/qualitative-MLRVLIAU.js +43 -0
- package/dist/radar2-WM2ZBOH3.js +326 -0
- package/dist/radarFacility2-3SBR2JJ3.js +334 -0
- package/dist/regression-WMRPQJW2.js +56 -0
- package/dist/regression.inputs-VWZKSYNY.js +48 -0
- package/dist/regression.inputs.term-OWE6GWHM.js +48 -0
- package/dist/regression.inputs.values.table-4INNZQI2.js +45 -0
- package/dist/regression.integration.spec-XKQ2JOOT.js +784 -0
- package/dist/regression.results-VZBYMBYC.js +40 -0
- package/dist/regression.spec-DU3UTDCJ.js +708 -0
- package/dist/render-N5FOF247.js +38 -0
- package/dist/report-DW3OHB67.js +222 -0
- package/dist/sampleScatter.spec-REFSK2V4.js +202 -0
- package/dist/sampleView-ICOT2R6O.js +48 -0
- package/dist/samplelst-TJEVASYG.js +111 -0
- package/dist/samplematrix-6DAWCXQ3.js +2198 -0
- package/dist/sc-53LNOB7N.js +86 -0
- package/dist/scatter-DKYSS4DL.js +851 -0
- package/dist/selectGenomeWithTklst-WTX66TV3.js +134 -0
- package/dist/singleCellCellType-D2CN2BHQ.js +38 -0
- package/dist/singleCellCellType.unit.spec-LADUCI4R.js +160 -0
- package/dist/singleCellGeneExpression-YR2ZT34W.js +38 -0
- package/dist/singleCellGeneExpression.unit.spec-BM63M432.js +153 -0
- package/dist/singleCellPlot-3ICIOILE.js +54 -0
- package/dist/singlecell-6ZUFA3BQ.js +86 -0
- package/dist/singlecell-KX7W4U57.js +1572 -0
- package/dist/snp-VIURB7L3.js +38 -0
- package/dist/snp.unit.spec-ACZNZUNS.js +176 -0
- package/dist/snplocus-3LW4ZUZR.js +208 -0
- package/dist/spliceevent.a53ss.diagram-AKTZGWNM.js +151 -0
- package/dist/spliceevent.exonskip.diagram-XZHXB77R.js +283 -0
- package/dist/spliceevent.exonskip.diagram-XZHXB77R.js.map +7 -0
- package/dist/spliceevent.noeventdiagram-YTXWWNTJ.js +460 -0
- package/dist/ssGSEA-THW4WFMI.js +38 -0
- package/dist/ssGSEA.unit.spec-HTRGQI2K.js +88 -0
- package/dist/summarizeCnvGeneexp-RFYC3H2Z.js +163 -0
- package/dist/summarizeGeneexpSurvival-DQBZUTQ6.js +114 -0
- package/dist/summarizeMutationCnv-7AYEMHAI.js +164 -0
- package/dist/summarizeMutationDiagnosis-AKFJDSAF.js +40 -0
- package/dist/summarizeMutationSurvival-QJHZRQBZ.js +99 -0
- package/dist/summary-A5P7AYK4.js +49 -0
- package/dist/summary.integration.spec-HQISXGNL.js +414 -0
- package/dist/summaryInput-HP675QOQ.js +235 -0
- package/dist/sunburst-65LSYRXX.js +284 -0
- package/dist/survival-QNEI6YVK.js +46 -0
- package/dist/survival-UI74VXSM.js +58 -0
- package/dist/survival.integration.spec-X5N3JQXS.js +915 -0
- package/dist/survival.integration.spec-X5N3JQXS.js.map +7 -0
- package/dist/svgraph-PSX2NER3.js +1387 -0
- package/dist/svmr-QDQ33EFX.js +3842 -0
- package/dist/table-LWAI27UO.js +200 -0
- package/dist/termCollection-3JHR74FG.js +179 -0
- package/dist/termCollection-CDF5LYUG.js +38 -0
- package/dist/termCollection.unit.spec-HOJKYWHF.js +208 -0
- package/dist/tk-GL4QCL4K.js +1019 -0
- package/dist/tk-GL4QCL4K.js.map +7 -0
- package/dist/tk-OEQFO73V.js +46 -0
- package/dist/tp.ui-SHNERDGC.js +1459 -0
- package/dist/tvs.dt-CZDC4TSR.js +39 -0
- package/dist/tvs.dtcnv.categorical-OPBDHZGB.js +40 -0
- package/dist/tvs.dtcnv.continuous-AR6P4EP3.js +72 -0
- package/dist/tvs.dtfusion-2YQ7N6FQ.js +40 -0
- package/dist/tvs.dtitd-ATCHW735.js +40 -0
- package/dist/tvs.dtitd-ATCHW735.js.map +7 -0
- package/dist/tvs.dtsnvindel-WHHWAATJ.js +40 -0
- package/dist/tvs.dtsv-3UMCW65O.js +40 -0
- package/dist/tvs.numeric-TOEPASWN.js +21 -0
- package/dist/tvs.samplelst-M7XKXRTZ.js +104 -0
- package/dist/tvs.termCollection-WT4WZMYR.js +159 -0
- package/dist/violin-2YGXTBDS.js +46 -0
- package/dist/violin.integration.spec-YWNHVAGS.js +1425 -0
- package/dist/violin.interactivity-J6BE2UQL.js +38 -0
- package/dist/violin.renderer-3GRUWP2U.js +40 -0
- package/dist/vocabulary-2INCVPYJ.js +41 -0
- package/package.json +3 -3
- package/dist/2dmaf-SKNV7IHT.js +0 -1373
- package/dist/AIProjectAdmin-AOTVRBNH.js +0 -958
- package/dist/AppHeader-M2ZSS3M3.js +0 -835
- package/dist/BoxPlot-P3EECSQA.js +0 -1217
- package/dist/CorrelationVolcano-YCQ5S6MT.js +0 -619
- package/dist/DE-RBMOQZCR.js +0 -95
- package/dist/DEinput-PTW6RS6U.js +0 -301
- package/dist/DifferentialAnalysis-M6IDWPYX.js +0 -245
- package/dist/DifferentialAnalysis-M6IDWPYX.js.map +0 -7
- package/dist/Disco-GUKDAHUY.js +0 -3297
- package/dist/Disco-GUKDAHUY.js.map +0 -7
- package/dist/Disco.UI-YBIMV7RH.js +0 -249
- package/dist/DmrPlot-JQPLLU6P.js +0 -642
- package/dist/GB-UOTFNVJE.js +0 -1353
- package/dist/GB-UOTFNVJE.js.map +0 -7
- package/dist/GeneExpInput-3OPDDCXR.js +0 -367
- package/dist/HicApp-VFOWRP6G.js +0 -2250
- package/dist/IDCViewer-Y7EOIIBG.js +0 -10455
- package/dist/IDCViewer-Y7EOIIBG.js.map +0 -7
- package/dist/NumBinaryEditor-RL44SO3T.js +0 -271
- package/dist/NumBinaryEditor.unit.spec-P73PGAX5.js +0 -286
- package/dist/NumContEditor-MIC7M73G.js +0 -109
- package/dist/NumContEditor.unit.spec-5XZH7OCG.js +0 -169
- package/dist/NumCustomBinEditor-W357XTIR.js +0 -38
- package/dist/NumCustomBinEditor.unit.spec-CJMK4CYW.js +0 -284
- package/dist/NumDiscreteEditor-PRSUMS3I.js +0 -179
- package/dist/NumDiscreteEditor.unit.spec-A6R56P3Z.js +0 -202
- package/dist/NumRegularBinEditor-7OHUEUCC.js +0 -38
- package/dist/NumRegularBinEditor.unit.spec-NOAX42UZ.js +0 -227
- package/dist/NumSplineEditor-XI7AT5LM.js +0 -198
- package/dist/NumSplineEditor.unit.spec-ZH4M2N2C.js +0 -199
- package/dist/NumericDensity-X6IHQAW3.js +0 -38
- package/dist/NumericDensity.unit.spec-EKVD4AUG.js +0 -221
- package/dist/NumericHandler-5ONBWFJ5.js +0 -39
- package/dist/NumericHandler.unit.spec-SHI6E4VA.js +0 -219
- package/dist/ProteomeInput-HN46MIBP.js +0 -396
- package/dist/ProteomeInput-HN46MIBP.js.map +0 -7
- package/dist/RunChart2-Y6IY6MW2.js +0 -758
- package/dist/SC-JYF564FK.js +0 -1130
- package/dist/SC-JYF564FK.js.map +0 -7
- package/dist/Volcano-WZGAUYGY.js +0 -1380
- package/dist/Volcano-WZGAUYGY.js.map +0 -7
- package/dist/WSIViewer-RLLL7MAL.js +0 -48562
- package/dist/WsiSamplesPlot-FU3TCOTY.js +0 -165
- package/dist/adSandbox-ZINST5DE.js +0 -38
- package/dist/animatedBubbleChart-PIQWCVBJ.js +0 -555
- package/dist/app-N42SVGI2.js +0 -37
- package/dist/app-RWN4XLCP.js +0 -49
- package/dist/bam-QTSTXJ4N.js +0 -860
- package/dist/barchart-27BYTRVI.js +0 -47
- package/dist/barchart.data-OUNVH4JU.js +0 -22
- package/dist/barchart.events-PY4CEDSO.js +0 -47
- package/dist/barchart.integration.spec-H4WGHQ7R.js +0 -2196
- package/dist/barchart2-TIOTRAC2.js +0 -314
- package/dist/bars.renderer-57KSYAAT.js +0 -12
- package/dist/block-YPM767A4.js +0 -6226
- package/dist/block-YPM767A4.js.map +0 -7
- package/dist/block.init-LRZ3QAGC.js +0 -38
- package/dist/block.mds.expressionrank-IV7JLC52.js +0 -359
- package/dist/block.mds.geneboxplot-IBCE5XZU.js +0 -828
- package/dist/block.mds.junction-ISSCJHNF.js +0 -1545
- package/dist/block.mds.svcnv-ZEBVBTL7.js +0 -6801
- package/dist/block.svg-FYWA5VYH.js +0 -164
- package/dist/block.tk.aicheck-AD6DTKXR.js +0 -283
- package/dist/block.tk.ase-LO2J4KRE.js +0 -365
- package/dist/block.tk.bam-XGX22FCN.js +0 -1906
- package/dist/block.tk.bedgraphdot-SUIRFNFL.js +0 -384
- package/dist/block.tk.bigwig.ui-2Q7FAK3V.js +0 -212
- package/dist/block.tk.hicstraw-4MVP2PCL.js +0 -823
- package/dist/block.tk.junction-F54FTEPB.js +0 -2364
- package/dist/block.tk.junction.textmatrixui-ETROZJVK.js +0 -199
- package/dist/block.tk.ld-NJEDKSTU.js +0 -99
- package/dist/block.tk.menu-LZOY4FKT.js +0 -1029
- package/dist/block.tk.pgv-I3XHJ7VU.js +0 -944
- package/dist/brainImaging-BGP6VRFV.js +0 -423
- package/dist/brainRegions-AAN7LM2Y.js +0 -221
- package/dist/bubbleHeatmap-HNEU4CYA.js +0 -383
- package/dist/chunk-25XCVML7.js +0 -236
- package/dist/chunk-2XV6U42J.js +0 -100
- package/dist/chunk-36NAWXQ7.js +0 -5067
- package/dist/chunk-36NAWXQ7.js.map +0 -7
- package/dist/chunk-3LYZMOLO.js +0 -58
- package/dist/chunk-427UL37G.js +0 -222
- package/dist/chunk-4C3XRI6J.js +0 -54
- package/dist/chunk-4O6H4ZHL.js +0 -514
- package/dist/chunk-53JJ7SXN.js +0 -276
- package/dist/chunk-5CR24RTX.js +0 -381
- package/dist/chunk-5HMX4NUJ.js +0 -217
- package/dist/chunk-5QTJUPFS.js +0 -26
- package/dist/chunk-5V2BMEAS.js +0 -55
- package/dist/chunk-6MBTPVIM.js +0 -1275
- package/dist/chunk-6MQWYMPB.js +0 -183
- package/dist/chunk-6MQWYMPB.js.map +0 -7
- package/dist/chunk-7D3WX34I.js +0 -1230
- package/dist/chunk-7D3WX34I.js.map +0 -7
- package/dist/chunk-7FSIZZOX.js +0 -176
- package/dist/chunk-7KRS7L4U.js +0 -1443
- package/dist/chunk-7KRS7L4U.js.map +0 -7
- package/dist/chunk-A3URBFXN.js +0 -119
- package/dist/chunk-A45KH7LP.js +0 -254
- package/dist/chunk-B4GS7OLB.js +0 -4284
- package/dist/chunk-BKPDYW5T.js +0 -177
- package/dist/chunk-BWQV2OBL.js +0 -102
- package/dist/chunk-BXGQXLHP.js +0 -2786
- package/dist/chunk-CDJAHMAN.js +0 -299
- package/dist/chunk-CXHLROWX.js +0 -37
- package/dist/chunk-EKKQMKQI.js +0 -102
- package/dist/chunk-EPWIJEMK.js +0 -158
- package/dist/chunk-F7Y67LK7.js +0 -230
- package/dist/chunk-FDBVAL6K.js +0 -14
- package/dist/chunk-FISP5YN2.js +0 -292
- package/dist/chunk-G3FSS7GR.js +0 -477
- package/dist/chunk-GE4NJDV4.js +0 -98
- package/dist/chunk-GYGU4UT5.js +0 -34
- package/dist/chunk-I5IPJG2R.js +0 -148
- package/dist/chunk-I73KUUYG.js +0 -287
- package/dist/chunk-I73KUUYG.js.map +0 -7
- package/dist/chunk-IFK24IXL.js +0 -194
- package/dist/chunk-ILE6ML2D.js +0 -50
- package/dist/chunk-IRKP6IZ4.js +0 -216
- package/dist/chunk-J6ZOUCWN.js +0 -170
- package/dist/chunk-JFRSVFWO.js +0 -736
- package/dist/chunk-JFRSVFWO.js.map +0 -7
- package/dist/chunk-JNBJG57F.js +0 -448
- package/dist/chunk-K5UVG3FQ.js +0 -117
- package/dist/chunk-KE5B34CS.js +0 -102
- package/dist/chunk-L6A2BEXB.js +0 -2681
- package/dist/chunk-LQJMCE7G.js +0 -467
- package/dist/chunk-LSWU6EAQ.js +0 -31
- package/dist/chunk-LWEGSYDD.js +0 -226
- package/dist/chunk-LWEGSYDD.js.map +0 -7
- package/dist/chunk-LYVLF6HO.js +0 -1825
- package/dist/chunk-MBUQ34CF.js +0 -189
- package/dist/chunk-MBUQ34CF.js.map +0 -7
- package/dist/chunk-MN3KDNHC.js +0 -617
- package/dist/chunk-MNIBZTQE.js +0 -146
- package/dist/chunk-MTHEEXT2.js +0 -1450
- package/dist/chunk-MTHEEXT2.js.map +0 -7
- package/dist/chunk-MTZSN3H4.js +0 -302
- package/dist/chunk-N7O7NPUO.js +0 -534
- package/dist/chunk-N7O7NPUO.js.map +0 -7
- package/dist/chunk-NNFAUP2I.js +0 -315
- package/dist/chunk-NNFAUP2I.js.map +0 -7
- package/dist/chunk-OF5FE6GT.js +0 -142
- package/dist/chunk-OVSKJROY.js +0 -815
- package/dist/chunk-OVSKJROY.js.map +0 -7
- package/dist/chunk-PJ3FCJBZ.js +0 -480
- package/dist/chunk-PU2Q4SZR.js +0 -2327
- package/dist/chunk-PZPS56Z6.js +0 -343
- package/dist/chunk-QKR3ZD3S.js +0 -833
- package/dist/chunk-QMXCK4Y5.js +0 -203
- package/dist/chunk-ROJ3LJLE.js +0 -448
- package/dist/chunk-SLHWUFAW.js +0 -1943
- package/dist/chunk-SLHWUFAW.js.map +0 -7
- package/dist/chunk-SOTB4FRE.js +0 -2098
- package/dist/chunk-SOTB4FRE.js.map +0 -7
- package/dist/chunk-TJYRBEBK.js +0 -2878
- package/dist/chunk-TJYRBEBK.js.map +0 -7
- package/dist/chunk-U3G4JGKJ.js +0 -54
- package/dist/chunk-UN3O2MNB.js +0 -375
- package/dist/chunk-VDZ5QOF6.js +0 -446
- package/dist/chunk-VO5XZ2EG.js +0 -129
- package/dist/chunk-VRH7NP6R.js +0 -263
- package/dist/chunk-VTMJGRT5.js +0 -272
- package/dist/chunk-W5X6C7LY.js +0 -399
- package/dist/chunk-WJGUNGFK.js +0 -272
- package/dist/chunk-WKT46ZJ6.js +0 -368
- package/dist/chunk-WQCQWUUP.js +0 -2833
- package/dist/chunk-WY2PGUVX.js +0 -20898
- package/dist/chunk-WY2PGUVX.js.map +0 -7
- package/dist/chunk-WZ2U5QXJ.js +0 -6364
- package/dist/chunk-WZUWK5Q6.js +0 -1102
- package/dist/chunk-XPMTUVSS.js +0 -1220
- package/dist/chunk-XPMTUVSS.js.map +0 -7
- package/dist/chunk-YYFQPGIE.js +0 -386
- package/dist/condition-GVIEMQG7.js +0 -332
- package/dist/controls-73K3XBDR.js +0 -41
- package/dist/controls.config-FQKY2LRE.js +0 -39
- package/dist/correlation-AOAXIUFJ.js +0 -102
- package/dist/cuminc-OD2PPCEK.js +0 -1149
- package/dist/cuminc.integration.spec-TMIFW7EO.js +0 -678
- package/dist/cuminc.integration.spec-TMIFW7EO.js.map +0 -7
- package/dist/customdata.inputui-SWLGLATL.js +0 -289
- package/dist/dataDownload-456HL2OE.js +0 -330
- package/dist/dataDownload.integration.spec-5YS4MWK5.js +0 -193
- package/dist/databrowser.ui-7APC5MNM.js +0 -433
- package/dist/dictionary-A3HA5MVK.js +0 -118
- package/dist/dnaMethylation-6ONBKARD.js +0 -38
- package/dist/dnaMethylation.integration.spec-T3WEGVX3.js +0 -203
- package/dist/dofetch-RVPQUMVX.js +0 -51
- package/dist/e2pca-75WZ46XG.js +0 -350
- package/dist/ep-QG5CWPTW.js +0 -1256
- package/dist/expclust.gdc.spec-KBBQJR4M.js +0 -307
- package/dist/facet-QGB2Q7YV.js +0 -521
- package/dist/forms2-CJGDCWYH.js +0 -539
- package/dist/gb-NEFAHKQI.js +0 -88
- package/dist/geneExpClustering-ZVR44UZC.js +0 -249
- package/dist/geneExpression-25EX4DFK.js +0 -313
- package/dist/geneExpression-FALOA4GC.js +0 -38
- package/dist/geneExpression.unit.spec-BQLELQUS.js +0 -102
- package/dist/geneORA-K2B7JYWD.js +0 -278
- package/dist/geneRanking-6AXL5ZJS.js +0 -553
- package/dist/geneVariant-RZFDP5J5.js +0 -41
- package/dist/geneVariant-UIBZ5UIQ.js +0 -39
- package/dist/geneVariant.integration.spec-4EZQMPQB.js +0 -198
- package/dist/genefusion.ui-YK4TNS2P.js +0 -309
- package/dist/geneset-47J4D5ID.js +0 -208
- package/dist/genomeBrowser.spec-LFFWRIWG.js +0 -281
- package/dist/grin2-DQB2WW3C.js +0 -75
- package/dist/grin2-TZFU4JM3.js +0 -1078
- package/dist/grin2-TZFU4JM3.js.map +0 -7
- package/dist/gsea-KKLAMLMG.js +0 -47
- package/dist/hierCluster-3MZEJG6B.js +0 -59
- package/dist/hierCluster-YGBC4XCZ.js +0 -63
- package/dist/hierCluster.config-A4N54K3A.js +0 -40
- package/dist/hierCluster.integration.spec-GLKXFZDM.js +0 -488
- package/dist/hierCluster.interactivity-4TPWGIVC.js +0 -54
- package/dist/hierCluster.renderers-WUWSXXHU.js +0 -21
- package/dist/imagePlot-JRPYOV3Q.js +0 -163
- package/dist/importPlot-A3PFUP6K.js +0 -8
- package/dist/isoformExpression-5L4O3WKL.js +0 -40
- package/dist/isoformExpression.unit.spec-SLB6XIX4.js +0 -208
- package/dist/launch.adhoc-QI7TPYSC.js +0 -42
- package/dist/leftlabel.sample-OSIRTJFW.js +0 -264
- package/dist/legacyDataset-TNIIJABK.js +0 -119
- package/dist/lollipop-LAELXNQY.js +0 -171
- package/dist/maf-HZAYVZFO.js +0 -459
- package/dist/maftimeline-BLBNUGAL.js +0 -593
- package/dist/matrix-LVJSHXDM.js +0 -58
- package/dist/matrix-S5QQV4JU.js +0 -63
- package/dist/matrix.cells-JUTRYPG4.js +0 -28
- package/dist/matrix.config-ZTWWYNIZ.js +0 -41
- package/dist/matrix.data-BREYB54F.js +0 -25
- package/dist/matrix.groups-WMHTLOXC.js +0 -27
- package/dist/matrix.integration.spec-S6FIEE2X.js +0 -3072
- package/dist/matrix.integration.spec-S6FIEE2X.js.map +0 -7
- package/dist/matrix.interactivity-TMBVAM5M.js +0 -42
- package/dist/matrix.layout-POK5NOUV.js +0 -44
- package/dist/matrix.legend-6XVQ67AC.js +0 -22
- package/dist/matrix.renderers-G5FQZZ73.js +0 -38
- package/dist/matrix.serieses-XNLQSQS6.js +0 -21
- package/dist/matrix.sort-XNES23OQ.js +0 -27
- package/dist/matrix.sort.unit.spec-65BDBQUV.js +0 -472
- package/dist/matrix.sorterUi-WC2YX7S7.js +0 -18
- package/dist/matrix.sorterUi.unit.spec-GZQBW7F7.js +0 -342
- package/dist/mavb-T2UCRWWM.js +0 -732
- package/dist/mds.fimo-65UUK7ER.js +0 -518
- package/dist/mds.samplescatterplot-4NHGQBJF.js +0 -1550
- package/dist/mds.survivalplot-WVAHDM3Z.js +0 -483
- package/dist/numericDictTermCluster-CXASCSQ6.js +0 -65
- package/dist/oncomatrix-5WMOICWR.js +0 -295
- package/dist/oncomatrix.spec-POVBNFJR.js +0 -448
- package/dist/plot.2dvaf-63K5RSIU.js +0 -377
- package/dist/plot.app-V5IY25QS.js +0 -41
- package/dist/plot.barplot-IQTYHNFE.js +0 -102
- package/dist/plot.boxplot-2RMTO7AS.js +0 -152
- package/dist/plot.brainImaging-DLUHAHHG.js +0 -51
- package/dist/plot.disco-WK6GDLNF.js +0 -102
- package/dist/plot.dzi-3V3FWE7U.js +0 -33
- package/dist/plot.ssgq-TENK2RP4.js +0 -139
- package/dist/plot.vaf2cov-P2QOOZGZ.js +0 -259
- package/dist/plot.wsi-BVRGJF4E.js +0 -36
- package/dist/polar2-NNOZOQQJ.js +0 -231
- package/dist/profileForms-RS4GEZZV.js +0 -446
- package/dist/profilePlot-3DLME3NH.js +0 -54
- package/dist/proteinView-NPKJAQAI.js +0 -1568
- package/dist/qualitative-S45RXXRJ.js +0 -43
- package/dist/radar2-EX7YBNMT.js +0 -326
- package/dist/radarFacility2-WU5O6O77.js +0 -334
- package/dist/regression-7MCOYJVD.js +0 -56
- package/dist/regression.inputs-QHSWJ23R.js +0 -48
- package/dist/regression.inputs.term-EJ4Z5Q5O.js +0 -48
- package/dist/regression.inputs.values.table-YKMAWNXN.js +0 -45
- package/dist/regression.integration.spec-XOX7OXXA.js +0 -784
- package/dist/regression.results-YKPOTPCC.js +0 -40
- package/dist/regression.spec-YIIY2AZA.js +0 -708
- package/dist/report-JEJFCWUU.js +0 -222
- package/dist/sampleScatter.spec-LBAZBDYA.js +0 -202
- package/dist/sampleView-WKZT5ZFE.js +0 -48
- package/dist/samplelst-HXM3H6M4.js +0 -111
- package/dist/samplematrix-LCGHK2EK.js +0 -2198
- package/dist/sc-3OE2G4BU.js +0 -86
- package/dist/scatter-AGVUDTTU.js +0 -851
- package/dist/selectGenomeWithTklst-WF2XZ6GH.js +0 -134
- package/dist/singleCellCellType-2SRGROMS.js +0 -38
- package/dist/singleCellCellType.unit.spec-DCGHNRJI.js +0 -160
- package/dist/singleCellGeneExpression-RASZA4NO.js +0 -38
- package/dist/singleCellGeneExpression.unit.spec-5MRGH2OO.js +0 -153
- package/dist/singleCellPlot-TIYA3GNM.js +0 -54
- package/dist/singlecell-CFA43TTU.js +0 -1572
- package/dist/singlecell-JS5SIZHY.js +0 -86
- package/dist/snp-VXZXPMKS.js +0 -38
- package/dist/snp.unit.spec-TR5TCO7X.js +0 -176
- package/dist/snplocus-VLPH5Y65.js +0 -208
- package/dist/spliceevent.a53ss.diagram-PATK67SH.js +0 -151
- package/dist/spliceevent.exonskip.diagram-7B3SEOAJ.js +0 -277
- package/dist/spliceevent.exonskip.diagram-7B3SEOAJ.js.map +0 -7
- package/dist/spliceevent.noeventdiagram-4NPNZUEN.js +0 -460
- package/dist/ssGSEA-XMW5BLAU.js +0 -38
- package/dist/ssGSEA.unit.spec-ASUWKVUT.js +0 -88
- package/dist/summarizeCnvGeneexp-KWRFGX32.js +0 -163
- package/dist/summarizeGeneexpSurvival-FIPIMEJR.js +0 -114
- package/dist/summarizeMutationCnv-IUYRVLZG.js +0 -164
- package/dist/summarizeMutationDiagnosis-ZFJPCABL.js +0 -40
- package/dist/summarizeMutationSurvival-HFHYB7DT.js +0 -99
- package/dist/summary-AZUNEZ5I.js +0 -49
- package/dist/summary.integration.spec-WLBAJL44.js +0 -414
- package/dist/summaryInput-NJWVXDXW.js +0 -235
- package/dist/sunburst-PXGF4WM6.js +0 -284
- package/dist/survival-RAU4XCKG.js +0 -58
- package/dist/survival-ZZ4QLZHK.js +0 -46
- package/dist/survival.integration.spec-GBQ5X362.js +0 -915
- package/dist/survival.integration.spec-GBQ5X362.js.map +0 -7
- package/dist/svgraph-7UCFRL6A.js +0 -1387
- package/dist/svmr-DB3RY2ID.js +0 -3842
- package/dist/table-HJRWWXGM.js +0 -200
- package/dist/termCollection-AW7M6DTP.js +0 -38
- package/dist/termCollection-WPON7RG3.js +0 -179
- package/dist/termCollection.unit.spec-254ESHOE.js +0 -208
- package/dist/tk-SUAFM5YA.js +0 -46
- package/dist/tp.ui-ELEQGSK2.js +0 -1459
- package/dist/tvs.dt-DCXY66YY.js +0 -39
- package/dist/tvs.dtcnv.categorical-SFQZMYX7.js +0 -40
- package/dist/tvs.dtcnv.continuous-AUZNJMC3.js +0 -72
- package/dist/tvs.dtfusion-5F7MYFHZ.js +0 -40
- package/dist/tvs.dtsnvindel-JJSPL4PH.js +0 -40
- package/dist/tvs.dtsv-DARTSV5H.js +0 -40
- package/dist/tvs.numeric-KYAU5OV3.js +0 -21
- package/dist/tvs.samplelst-HHBIO26C.js +0 -104
- package/dist/tvs.termCollection-KCMALH6B.js +0 -159
- package/dist/violin-C26FW5WK.js +0 -46
- package/dist/violin.integration.spec-QQ43XWHQ.js +0 -1425
- package/dist/violin.interactivity-H2BHC6M4.js +0 -38
- package/dist/violin.renderer-GSG2I7AV.js +0 -40
- package/dist/vocabulary-3G525O5V.js +0 -41
- /package/dist/{2dmaf-SKNV7IHT.js.map → 2dmaf-R3PFZNRN.js.map} +0 -0
- /package/dist/{AIProjectAdmin-AOTVRBNH.js.map → AIProjectAdmin-DM3KG6SR.js.map} +0 -0
- /package/dist/{AppHeader-M2ZSS3M3.js.map → AppHeader-6DZQ6YZX.js.map} +0 -0
- /package/dist/{BoxPlot-P3EECSQA.js.map → BoxPlot-76NINVX4.js.map} +0 -0
- /package/dist/{CorrelationVolcano-YCQ5S6MT.js.map → CorrelationVolcano-U5UMJNH5.js.map} +0 -0
- /package/dist/{DE-RBMOQZCR.js.map → DE-AXNYWIQK.js.map} +0 -0
- /package/dist/{DEinput-PTW6RS6U.js.map → DEinput-JH6YY6LS.js.map} +0 -0
- /package/dist/{Disco.UI-YBIMV7RH.js.map → Disco.UI-C7CZINUQ.js.map} +0 -0
- /package/dist/{DmrPlot-JQPLLU6P.js.map → DmrPlot-WROR4ENM.js.map} +0 -0
- /package/dist/{GeneExpInput-3OPDDCXR.js.map → GeneExpInput-JDU6EI7K.js.map} +0 -0
- /package/dist/{HicApp-VFOWRP6G.js.map → HicApp-UNIJLH4B.js.map} +0 -0
- /package/dist/{NumBinaryEditor-RL44SO3T.js.map → NumBinaryEditor-WMN2GGO4.js.map} +0 -0
- /package/dist/{NumBinaryEditor.unit.spec-P73PGAX5.js.map → NumBinaryEditor.unit.spec-TAMXV6SE.js.map} +0 -0
- /package/dist/{NumContEditor-MIC7M73G.js.map → NumContEditor-XYIOJY4E.js.map} +0 -0
- /package/dist/{NumContEditor.unit.spec-5XZH7OCG.js.map → NumContEditor.unit.spec-WDZ75BHO.js.map} +0 -0
- /package/dist/{NumCustomBinEditor-W357XTIR.js.map → NumCustomBinEditor-5SY3C4TY.js.map} +0 -0
- /package/dist/{NumCustomBinEditor.unit.spec-CJMK4CYW.js.map → NumCustomBinEditor.unit.spec-XHTAIXR3.js.map} +0 -0
- /package/dist/{NumDiscreteEditor-PRSUMS3I.js.map → NumDiscreteEditor-NRDRX4FD.js.map} +0 -0
- /package/dist/{NumDiscreteEditor.unit.spec-A6R56P3Z.js.map → NumDiscreteEditor.unit.spec-2CJW7OAT.js.map} +0 -0
- /package/dist/{NumRegularBinEditor-7OHUEUCC.js.map → NumRegularBinEditor-DUDVTNDC.js.map} +0 -0
- /package/dist/{NumRegularBinEditor.unit.spec-NOAX42UZ.js.map → NumRegularBinEditor.unit.spec-H3GNQHMN.js.map} +0 -0
- /package/dist/{NumSplineEditor-XI7AT5LM.js.map → NumSplineEditor-7Q4AC7KH.js.map} +0 -0
- /package/dist/{NumSplineEditor.unit.spec-ZH4M2N2C.js.map → NumSplineEditor.unit.spec-YRZK5PH5.js.map} +0 -0
- /package/dist/{NumericDensity-X6IHQAW3.js.map → NumericDensity-NTNWUESG.js.map} +0 -0
- /package/dist/{NumericDensity.unit.spec-EKVD4AUG.js.map → NumericDensity.unit.spec-5I5U6T6P.js.map} +0 -0
- /package/dist/{NumericHandler-5ONBWFJ5.js.map → NumericHandler-MEW2KMPX.js.map} +0 -0
- /package/dist/{NumericHandler.unit.spec-SHI6E4VA.js.map → NumericHandler.unit.spec-JFX4BPRG.js.map} +0 -0
- /package/dist/{RunChart2-Y6IY6MW2.js.map → RunChart2-BEBDU7RC.js.map} +0 -0
- /package/dist/{WSIViewer-RLLL7MAL.js.map → WSIViewer-ZLQU62PD.js.map} +0 -0
- /package/dist/{WsiSamplesPlot-FU3TCOTY.js.map → WsiSamplesPlot-JMBSITOM.js.map} +0 -0
- /package/dist/{adSandbox-ZINST5DE.js.map → adSandbox-664IRCRL.js.map} +0 -0
- /package/dist/{animatedBubbleChart-PIQWCVBJ.js.map → animatedBubbleChart-TX7NW34K.js.map} +0 -0
- /package/dist/{app-N42SVGI2.js.map → app-63WJ3BMP.js.map} +0 -0
- /package/dist/{app-RWN4XLCP.js.map → app-77FIZHCG.js.map} +0 -0
- /package/dist/{bam-QTSTXJ4N.js.map → bam-IETNVAYD.js.map} +0 -0
- /package/dist/{barchart-27BYTRVI.js.map → barchart-YUVXJNH4.js.map} +0 -0
- /package/dist/{barchart.data-OUNVH4JU.js.map → barchart.data-P4EIQXGE.js.map} +0 -0
- /package/dist/{barchart.events-PY4CEDSO.js.map → barchart.events-JPVCLTIG.js.map} +0 -0
- /package/dist/{barchart.integration.spec-H4WGHQ7R.js.map → barchart.integration.spec-ZH7DEQI2.js.map} +0 -0
- /package/dist/{barchart2-TIOTRAC2.js.map → barchart2-XO2FG76J.js.map} +0 -0
- /package/dist/{bars.renderer-57KSYAAT.js.map → bars.renderer-AUIWUJDH.js.map} +0 -0
- /package/dist/{block.init-LRZ3QAGC.js.map → block.init-X7Y2EEVR.js.map} +0 -0
- /package/dist/{block.mds.expressionrank-IV7JLC52.js.map → block.mds.expressionrank-BIAOZIZ3.js.map} +0 -0
- /package/dist/{block.mds.geneboxplot-IBCE5XZU.js.map → block.mds.geneboxplot-CNICDVLK.js.map} +0 -0
- /package/dist/{block.mds.junction-ISSCJHNF.js.map → block.mds.junction-PQXCTSUI.js.map} +0 -0
- /package/dist/{block.mds.svcnv-ZEBVBTL7.js.map → block.mds.svcnv-32KMVTCT.js.map} +0 -0
- /package/dist/{block.svg-FYWA5VYH.js.map → block.svg-LRTOYQK2.js.map} +0 -0
- /package/dist/{block.tk.aicheck-AD6DTKXR.js.map → block.tk.aicheck-HDV7ZIUD.js.map} +0 -0
- /package/dist/{block.tk.ase-LO2J4KRE.js.map → block.tk.ase-JIDWKMYI.js.map} +0 -0
- /package/dist/{block.tk.bam-XGX22FCN.js.map → block.tk.bam-5X3OS5HB.js.map} +0 -0
- /package/dist/{block.tk.bedgraphdot-SUIRFNFL.js.map → block.tk.bedgraphdot-T7JX7YQL.js.map} +0 -0
- /package/dist/{block.tk.bigwig.ui-2Q7FAK3V.js.map → block.tk.bigwig.ui-OSAYEBAE.js.map} +0 -0
- /package/dist/{block.tk.hicstraw-4MVP2PCL.js.map → block.tk.hicstraw-DEY3VQFK.js.map} +0 -0
- /package/dist/{block.tk.junction-F54FTEPB.js.map → block.tk.junction-7UAFEZSJ.js.map} +0 -0
- /package/dist/{block.tk.junction.textmatrixui-ETROZJVK.js.map → block.tk.junction.textmatrixui-27LHS33U.js.map} +0 -0
- /package/dist/{block.tk.ld-NJEDKSTU.js.map → block.tk.ld-DF2PI7OO.js.map} +0 -0
- /package/dist/{block.tk.menu-LZOY4FKT.js.map → block.tk.menu-L2D5KBIV.js.map} +0 -0
- /package/dist/{block.tk.pgv-I3XHJ7VU.js.map → block.tk.pgv-QO56SKBV.js.map} +0 -0
- /package/dist/{brainImaging-BGP6VRFV.js.map → brainImaging-NIPQWFWO.js.map} +0 -0
- /package/dist/{brainRegions-AAN7LM2Y.js.map → brainRegions-ZNZ2WHSU.js.map} +0 -0
- /package/dist/{bubbleHeatmap-HNEU4CYA.js.map → bubbleHeatmap-ERWNEKZB.js.map} +0 -0
- /package/dist/{chunk-CDJAHMAN.js.map → chunk-2GYWFQML.js.map} +0 -0
- /package/dist/{chunk-ILE6ML2D.js.map → chunk-2HYJ4GDH.js.map} +0 -0
- /package/dist/{chunk-VTMJGRT5.js.map → chunk-2MG6XE6R.js.map} +0 -0
- /package/dist/{chunk-4C3XRI6J.js.map → chunk-33K5PA52.js.map} +0 -0
- /package/dist/{chunk-5QTJUPFS.js.map → chunk-37XDBPOP.js.map} +0 -0
- /package/dist/{chunk-3LYZMOLO.js.map → chunk-3EWB3246.js.map} +0 -0
- /package/dist/{chunk-2XV6U42J.js.map → chunk-3RSKOPIY.js.map} +0 -0
- /package/dist/{chunk-WZUWK5Q6.js.map → chunk-4DPVT4NE.js.map} +0 -0
- /package/dist/{chunk-GE4NJDV4.js.map → chunk-4IH7DORZ.js.map} +0 -0
- /package/dist/{chunk-W5X6C7LY.js.map → chunk-4QNBFIIR.js.map} +0 -0
- /package/dist/{chunk-5HMX4NUJ.js.map → chunk-4STKL6SR.js.map} +0 -0
- /package/dist/{chunk-GYGU4UT5.js.map → chunk-4TZIVSL5.js.map} +0 -0
- /package/dist/{chunk-LQJMCE7G.js.map → chunk-5ABGFJSP.js.map} +0 -0
- /package/dist/{chunk-MTZSN3H4.js.map → chunk-5AZNP47R.js.map} +0 -0
- /package/dist/{chunk-KE5B34CS.js.map → chunk-6BB43SIB.js.map} +0 -0
- /package/dist/{chunk-53JJ7SXN.js.map → chunk-7OHRR2IE.js.map} +0 -0
- /package/dist/{chunk-FDBVAL6K.js.map → chunk-ASATD4T7.js.map} +0 -0
- /package/dist/{chunk-25XCVML7.js.map → chunk-B5B3LZB3.js.map} +0 -0
- /package/dist/{chunk-L6A2BEXB.js.map → chunk-BHGISFCA.js.map} +0 -0
- /package/dist/{chunk-BXGQXLHP.js.map → chunk-BMBOZ64T.js.map} +0 -0
- /package/dist/{chunk-IRKP6IZ4.js.map → chunk-BOZJHPJP.js.map} +0 -0
- /package/dist/{chunk-IFK24IXL.js.map → chunk-CDD7LYJM.js.map} +0 -0
- /package/dist/{chunk-PU2Q4SZR.js.map → chunk-CTQ3IUCA.js.map} +0 -0
- /package/dist/{chunk-EPWIJEMK.js.map → chunk-D7TID3HR.js.map} +0 -0
- /package/dist/{chunk-5V2BMEAS.js.map → chunk-E55LLYRX.js.map} +0 -0
- /package/dist/{chunk-YYFQPGIE.js.map → chunk-ESGXULRH.js.map} +0 -0
- /package/dist/{chunk-K5UVG3FQ.js.map → chunk-EZ4LZ6ZT.js.map} +0 -0
- /package/dist/{chunk-B4GS7OLB.js.map → chunk-F3SJTVP5.js.map} +0 -0
- /package/dist/{chunk-427UL37G.js.map → chunk-F5IXNJO7.js.map} +0 -0
- /package/dist/{chunk-ROJ3LJLE.js.map → chunk-FJYECRHW.js.map} +0 -0
- /package/dist/{chunk-QKR3ZD3S.js.map → chunk-FPNRUQOU.js.map} +0 -0
- /package/dist/{chunk-J6ZOUCWN.js.map → chunk-G764NXQN.js.map} +0 -0
- /package/dist/{chunk-I5IPJG2R.js.map → chunk-GAPI4MML.js.map} +0 -0
- /package/dist/{chunk-WJGUNGFK.js.map → chunk-HLUZOZXJ.js.map} +0 -0
- /package/dist/{chunk-UN3O2MNB.js.map → chunk-HOKIK2FR.js.map} +0 -0
- /package/dist/{chunk-VO5XZ2EG.js.map → chunk-KLGL6XZD.js.map} +0 -0
- /package/dist/{chunk-PJ3FCJBZ.js.map → chunk-L7IRWUKT.js.map} +0 -0
- /package/dist/{chunk-MN3KDNHC.js.map → chunk-LX6G7HJJ.js.map} +0 -0
- /package/dist/{chunk-OF5FE6GT.js.map → chunk-M2G5R4WB.js.map} +0 -0
- /package/dist/{chunk-EKKQMKQI.js.map → chunk-M4TTGGT4.js.map} +0 -0
- /package/dist/{chunk-LYVLF6HO.js.map → chunk-M6EF3WVV.js.map} +0 -0
- /package/dist/{chunk-MNIBZTQE.js.map → chunk-M6KHT3MM.js.map} +0 -0
- /package/dist/{chunk-F7Y67LK7.js.map → chunk-MCZFHWIR.js.map} +0 -0
- /package/dist/{chunk-JNBJG57F.js.map → chunk-MFQACKYU.js.map} +0 -0
- /package/dist/{chunk-PZPS56Z6.js.map → chunk-MVGAGTM3.js.map} +0 -0
- /package/dist/{chunk-A3URBFXN.js.map → chunk-NELOT3NJ.js.map} +0 -0
- /package/dist/{chunk-U3G4JGKJ.js.map → chunk-NRKMXULC.js.map} +0 -0
- /package/dist/{chunk-BKPDYW5T.js.map → chunk-NYRZNRG5.js.map} +0 -0
- /package/dist/{chunk-WKT46ZJ6.js.map → chunk-ONPKE6DC.js.map} +0 -0
- /package/dist/{chunk-QMXCK4Y5.js.map → chunk-PFRWS4CR.js.map} +0 -0
- /package/dist/{chunk-6MBTPVIM.js.map → chunk-PJKQUXEN.js.map} +0 -0
- /package/dist/{chunk-WZ2U5QXJ.js.map → chunk-Q2L44HK3.js.map} +0 -0
- /package/dist/{chunk-VDZ5QOF6.js.map → chunk-RKO6BL5N.js.map} +0 -0
- /package/dist/{chunk-A45KH7LP.js.map → chunk-T25QNZHB.js.map} +0 -0
- /package/dist/{chunk-LSWU6EAQ.js.map → chunk-U7TBYVIQ.js.map} +0 -0
- /package/dist/{chunk-5CR24RTX.js.map → chunk-UGRQXBL4.js.map} +0 -0
- /package/dist/{chunk-G3FSS7GR.js.map → chunk-USFSHSCJ.js.map} +0 -0
- /package/dist/{chunk-WQCQWUUP.js.map → chunk-VJ6UFVGC.js.map} +0 -0
- /package/dist/{chunk-FISP5YN2.js.map → chunk-W3WPPOXH.js.map} +0 -0
- /package/dist/{chunk-VRH7NP6R.js.map → chunk-WFCSOTBO.js.map} +0 -0
- /package/dist/{chunk-BWQV2OBL.js.map → chunk-WZ2L57MB.js.map} +0 -0
- /package/dist/{chunk-CXHLROWX.js.map → chunk-Y4UAKFWC.js.map} +0 -0
- /package/dist/{chunk-4O6H4ZHL.js.map → chunk-YQBS2ZCK.js.map} +0 -0
- /package/dist/{chunk-7FSIZZOX.js.map → chunk-ZTHM2TKP.js.map} +0 -0
- /package/dist/{condition-GVIEMQG7.js.map → condition-2PASYSUC.js.map} +0 -0
- /package/dist/{controls-73K3XBDR.js.map → controls-5IMJ6K5L.js.map} +0 -0
- /package/dist/{controls.config-FQKY2LRE.js.map → controls.config-P5PG2DHW.js.map} +0 -0
- /package/dist/{correlation-AOAXIUFJ.js.map → correlation-U3EDLNHR.js.map} +0 -0
- /package/dist/{cuminc-OD2PPCEK.js.map → cuminc-2HUFEROK.js.map} +0 -0
- /package/dist/{customdata.inputui-SWLGLATL.js.map → customdata.inputui-ZHWNEPFH.js.map} +0 -0
- /package/dist/{dataDownload-456HL2OE.js.map → dataDownload-VBSJBKMP.js.map} +0 -0
- /package/dist/{dataDownload.integration.spec-5YS4MWK5.js.map → dataDownload.integration.spec-LUFSETOP.js.map} +0 -0
- /package/dist/{databrowser.ui-7APC5MNM.js.map → databrowser.ui-6H2KMSTJ.js.map} +0 -0
- /package/dist/{dictionary-A3HA5MVK.js.map → dictionary-V37LXFIP.js.map} +0 -0
- /package/dist/{dnaMethylation-6ONBKARD.js.map → dnaMethylation-OIZMHMLK.js.map} +0 -0
- /package/dist/{dnaMethylation.integration.spec-T3WEGVX3.js.map → dnaMethylation.integration.spec-CWPTJ74H.js.map} +0 -0
- /package/dist/{dofetch-RVPQUMVX.js.map → dofetch-IWPZQB5N.js.map} +0 -0
- /package/dist/{e2pca-75WZ46XG.js.map → e2pca-7SLIAGYW.js.map} +0 -0
- /package/dist/{ep-QG5CWPTW.js.map → ep-7L6KF6K4.js.map} +0 -0
- /package/dist/{expclust.gdc.spec-KBBQJR4M.js.map → expclust.gdc.spec-JT452Q3G.js.map} +0 -0
- /package/dist/{facet-QGB2Q7YV.js.map → facet-CXOUU5AS.js.map} +0 -0
- /package/dist/{forms2-CJGDCWYH.js.map → forms2-VPNCLQOY.js.map} +0 -0
- /package/dist/{gb-NEFAHKQI.js.map → gb-P4VRXRED.js.map} +0 -0
- /package/dist/{geneExpClustering-ZVR44UZC.js.map → geneExpClustering-FQTCKRJJ.js.map} +0 -0
- /package/dist/{geneExpression-25EX4DFK.js.map → geneExpression-BHO5326K.js.map} +0 -0
- /package/dist/{geneExpression-FALOA4GC.js.map → geneExpression-ZMERB64E.js.map} +0 -0
- /package/dist/{geneExpression.unit.spec-BQLELQUS.js.map → geneExpression.unit.spec-CNVHZWNG.js.map} +0 -0
- /package/dist/{geneORA-K2B7JYWD.js.map → geneORA-FXVUCXGX.js.map} +0 -0
- /package/dist/{geneRanking-6AXL5ZJS.js.map → geneRanking-SFK4UBKQ.js.map} +0 -0
- /package/dist/{geneVariant-RZFDP5J5.js.map → geneVariant-IYEHB4H7.js.map} +0 -0
- /package/dist/{geneVariant-UIBZ5UIQ.js.map → geneVariant-LIRRLUFR.js.map} +0 -0
- /package/dist/{geneVariant.integration.spec-4EZQMPQB.js.map → geneVariant.integration.spec-Y2NPNTYX.js.map} +0 -0
- /package/dist/{genefusion.ui-YK4TNS2P.js.map → genefusion.ui-L3HIJM3N.js.map} +0 -0
- /package/dist/{geneset-47J4D5ID.js.map → geneset-A6VUFX63.js.map} +0 -0
- /package/dist/{genomeBrowser.spec-LFFWRIWG.js.map → genomeBrowser.spec-CB4HHHBN.js.map} +0 -0
- /package/dist/{grin2-DQB2WW3C.js.map → grin2-FKBIMH5N.js.map} +0 -0
- /package/dist/{gsea-KKLAMLMG.js.map → hierCluster-QFPRMHVA.js.map} +0 -0
- /package/dist/{hierCluster-3MZEJG6B.js.map → hierCluster-YWC3XYPV.js.map} +0 -0
- /package/dist/{hierCluster-YGBC4XCZ.js.map → hierCluster.config-F7YYZNM3.js.map} +0 -0
- /package/dist/{hierCluster.integration.spec-GLKXFZDM.js.map → hierCluster.integration.spec-AF4L3YT6.js.map} +0 -0
- /package/dist/{hierCluster.config-A4N54K3A.js.map → hierCluster.interactivity-RPY74PK6.js.map} +0 -0
- /package/dist/{hierCluster.interactivity-4TPWGIVC.js.map → hierCluster.renderers-LOKHZ3V2.js.map} +0 -0
- /package/dist/{imagePlot-JRPYOV3Q.js.map → imagePlot-BBEXA754.js.map} +0 -0
- /package/dist/{hierCluster.renderers-WUWSXXHU.js.map → importPlot-7QGANZGK.js.map} +0 -0
- /package/dist/{importPlot-A3PFUP6K.js.map → isoformExpression-4SLLCVFD.js.map} +0 -0
- /package/dist/{isoformExpression.unit.spec-SLB6XIX4.js.map → isoformExpression.unit.spec-GEL4JJ64.js.map} +0 -0
- /package/dist/{isoformExpression-5L4O3WKL.js.map → launch.adhoc-LWLBQJS5.js.map} +0 -0
- /package/dist/{leftlabel.sample-OSIRTJFW.js.map → leftlabel.sample-RTEZOIH2.js.map} +0 -0
- /package/dist/{legacyDataset-TNIIJABK.js.map → legacyDataset-VLD7ZYWI.js.map} +0 -0
- /package/dist/{lollipop-LAELXNQY.js.map → lollipop-XKQK5QZU.js.map} +0 -0
- /package/dist/{maf-HZAYVZFO.js.map → maf-AZQPPWDO.js.map} +0 -0
- /package/dist/{maftimeline-BLBNUGAL.js.map → maftimeline-7MSVYKQU.js.map} +0 -0
- /package/dist/{launch.adhoc-QI7TPYSC.js.map → matrix-BGLWC25D.js.map} +0 -0
- /package/dist/{matrix-LVJSHXDM.js.map → matrix-IQR5SRMK.js.map} +0 -0
- /package/dist/{matrix-S5QQV4JU.js.map → matrix.cells-5C57NWOY.js.map} +0 -0
- /package/dist/{matrix.cells-JUTRYPG4.js.map → matrix.config-2DQXAN2E.js.map} +0 -0
- /package/dist/{matrix.config-ZTWWYNIZ.js.map → matrix.data-ADCGF5H6.js.map} +0 -0
- /package/dist/{matrix.data-BREYB54F.js.map → matrix.groups-V4ITQ5F7.js.map} +0 -0
- /package/dist/{matrix.groups-WMHTLOXC.js.map → matrix.interactivity-JNELJFOV.js.map} +0 -0
- /package/dist/{matrix.interactivity-TMBVAM5M.js.map → matrix.layout-WBVIV6GR.js.map} +0 -0
- /package/dist/{matrix.layout-POK5NOUV.js.map → matrix.legend-YHOWPK77.js.map} +0 -0
- /package/dist/{matrix.legend-6XVQ67AC.js.map → matrix.renderers-5BGVRR3M.js.map} +0 -0
- /package/dist/{matrix.renderers-G5FQZZ73.js.map → matrix.serieses-2GZJOASZ.js.map} +0 -0
- /package/dist/{matrix.serieses-XNLQSQS6.js.map → matrix.sort-WKIWPJKP.js.map} +0 -0
- /package/dist/{matrix.sort.unit.spec-65BDBQUV.js.map → matrix.sort.unit.spec-L2E4D4AS.js.map} +0 -0
- /package/dist/{matrix.sort-XNES23OQ.js.map → matrix.sorterUi-TEJWWJ64.js.map} +0 -0
- /package/dist/{matrix.sorterUi.unit.spec-GZQBW7F7.js.map → matrix.sorterUi.unit.spec-SHP7C4P7.js.map} +0 -0
- /package/dist/{mavb-T2UCRWWM.js.map → mavb-4MXNYUEO.js.map} +0 -0
- /package/dist/{mds.fimo-65UUK7ER.js.map → mds.fimo-WHIJIBOI.js.map} +0 -0
- /package/dist/{mds.samplescatterplot-4NHGQBJF.js.map → mds.samplescatterplot-BRJ6NG2D.js.map} +0 -0
- /package/dist/{mds.survivalplot-WVAHDM3Z.js.map → mds.survivalplot-OPCMB5PB.js.map} +0 -0
- /package/dist/{numericDictTermCluster-CXASCSQ6.js.map → numericDictTermCluster-7MIFOP2K.js.map} +0 -0
- /package/dist/{oncomatrix-5WMOICWR.js.map → oncomatrix-BGG6BEUI.js.map} +0 -0
- /package/dist/{oncomatrix.spec-POVBNFJR.js.map → oncomatrix.spec-LYQ4L4F3.js.map} +0 -0
- /package/dist/{plot.2dvaf-63K5RSIU.js.map → plot.2dvaf-6WVCP2ZI.js.map} +0 -0
- /package/dist/{matrix.sorterUi-WC2YX7S7.js.map → plot.app-MLBP6WFP.js.map} +0 -0
- /package/dist/{plot.barplot-IQTYHNFE.js.map → plot.barplot-JEPRZSCU.js.map} +0 -0
- /package/dist/{plot.boxplot-2RMTO7AS.js.map → plot.boxplot-GNFW42VM.js.map} +0 -0
- /package/dist/{plot.brainImaging-DLUHAHHG.js.map → plot.brainImaging-5ACNSD45.js.map} +0 -0
- /package/dist/{plot.disco-WK6GDLNF.js.map → plot.disco-Q2V2KKIH.js.map} +0 -0
- /package/dist/{plot.dzi-3V3FWE7U.js.map → plot.dzi-KVT6S7K7.js.map} +0 -0
- /package/dist/{plot.ssgq-TENK2RP4.js.map → plot.ssgq-4N3KFJQ2.js.map} +0 -0
- /package/dist/{plot.vaf2cov-P2QOOZGZ.js.map → plot.vaf2cov-ITRG5U43.js.map} +0 -0
- /package/dist/{plot.wsi-BVRGJF4E.js.map → plot.wsi-26YZNU4V.js.map} +0 -0
- /package/dist/{polar2-NNOZOQQJ.js.map → polar2-J7GVUK4X.js.map} +0 -0
- /package/dist/{profileForms-RS4GEZZV.js.map → profileForms-VXV2JLXU.js.map} +0 -0
- /package/dist/{plot.app-V5IY25QS.js.map → profilePlot-ZZYZK4SY.js.map} +0 -0
- /package/dist/{proteinView-NPKJAQAI.js.map → proteinView-7KN532D3.js.map} +0 -0
- /package/dist/{profilePlot-3DLME3NH.js.map → qualitative-MLRVLIAU.js.map} +0 -0
- /package/dist/{radar2-EX7YBNMT.js.map → radar2-WM2ZBOH3.js.map} +0 -0
- /package/dist/{radarFacility2-WU5O6O77.js.map → radarFacility2-3SBR2JJ3.js.map} +0 -0
- /package/dist/{qualitative-S45RXXRJ.js.map → regression-WMRPQJW2.js.map} +0 -0
- /package/dist/{regression-7MCOYJVD.js.map → regression.inputs-VWZKSYNY.js.map} +0 -0
- /package/dist/{regression.inputs-QHSWJ23R.js.map → regression.inputs.term-OWE6GWHM.js.map} +0 -0
- /package/dist/{regression.inputs.term-EJ4Z5Q5O.js.map → regression.inputs.values.table-4INNZQI2.js.map} +0 -0
- /package/dist/{regression.integration.spec-XOX7OXXA.js.map → regression.integration.spec-XKQ2JOOT.js.map} +0 -0
- /package/dist/{regression.inputs.values.table-YKMAWNXN.js.map → regression.results-VZBYMBYC.js.map} +0 -0
- /package/dist/{regression.spec-YIIY2AZA.js.map → regression.spec-DU3UTDCJ.js.map} +0 -0
- /package/dist/{regression.results-YKPOTPCC.js.map → render-N5FOF247.js.map} +0 -0
- /package/dist/{report-JEJFCWUU.js.map → report-DW3OHB67.js.map} +0 -0
- /package/dist/{sampleScatter.spec-LBAZBDYA.js.map → sampleScatter.spec-REFSK2V4.js.map} +0 -0
- /package/dist/{sampleView-WKZT5ZFE.js.map → sampleView-ICOT2R6O.js.map} +0 -0
- /package/dist/{samplelst-HXM3H6M4.js.map → samplelst-TJEVASYG.js.map} +0 -0
- /package/dist/{samplematrix-LCGHK2EK.js.map → samplematrix-6DAWCXQ3.js.map} +0 -0
- /package/dist/{sc-3OE2G4BU.js.map → sc-53LNOB7N.js.map} +0 -0
- /package/dist/{scatter-AGVUDTTU.js.map → scatter-DKYSS4DL.js.map} +0 -0
- /package/dist/{selectGenomeWithTklst-WF2XZ6GH.js.map → selectGenomeWithTklst-WTX66TV3.js.map} +0 -0
- /package/dist/{singleCellCellType-2SRGROMS.js.map → singleCellCellType-D2CN2BHQ.js.map} +0 -0
- /package/dist/{singleCellCellType.unit.spec-DCGHNRJI.js.map → singleCellCellType.unit.spec-LADUCI4R.js.map} +0 -0
- /package/dist/{singleCellGeneExpression-RASZA4NO.js.map → singleCellGeneExpression-YR2ZT34W.js.map} +0 -0
- /package/dist/{singleCellGeneExpression.unit.spec-5MRGH2OO.js.map → singleCellGeneExpression.unit.spec-BM63M432.js.map} +0 -0
- /package/dist/{singleCellPlot-TIYA3GNM.js.map → singleCellPlot-3ICIOILE.js.map} +0 -0
- /package/dist/{singlecell-JS5SIZHY.js.map → singlecell-6ZUFA3BQ.js.map} +0 -0
- /package/dist/{singlecell-CFA43TTU.js.map → singlecell-KX7W4U57.js.map} +0 -0
- /package/dist/{snp-VXZXPMKS.js.map → snp-VIURB7L3.js.map} +0 -0
- /package/dist/{snp.unit.spec-TR5TCO7X.js.map → snp.unit.spec-ACZNZUNS.js.map} +0 -0
- /package/dist/{snplocus-VLPH5Y65.js.map → snplocus-3LW4ZUZR.js.map} +0 -0
- /package/dist/{spliceevent.a53ss.diagram-PATK67SH.js.map → spliceevent.a53ss.diagram-AKTZGWNM.js.map} +0 -0
- /package/dist/{spliceevent.noeventdiagram-4NPNZUEN.js.map → spliceevent.noeventdiagram-YTXWWNTJ.js.map} +0 -0
- /package/dist/{ssGSEA-XMW5BLAU.js.map → ssGSEA-THW4WFMI.js.map} +0 -0
- /package/dist/{ssGSEA.unit.spec-ASUWKVUT.js.map → ssGSEA.unit.spec-HTRGQI2K.js.map} +0 -0
- /package/dist/{summarizeCnvGeneexp-KWRFGX32.js.map → summarizeCnvGeneexp-RFYC3H2Z.js.map} +0 -0
- /package/dist/{summarizeGeneexpSurvival-FIPIMEJR.js.map → summarizeGeneexpSurvival-DQBZUTQ6.js.map} +0 -0
- /package/dist/{summarizeMutationCnv-IUYRVLZG.js.map → summarizeMutationCnv-7AYEMHAI.js.map} +0 -0
- /package/dist/{summarizeMutationDiagnosis-ZFJPCABL.js.map → summarizeMutationDiagnosis-AKFJDSAF.js.map} +0 -0
- /package/dist/{summarizeMutationSurvival-HFHYB7DT.js.map → summarizeMutationSurvival-QJHZRQBZ.js.map} +0 -0
- /package/dist/{summary-AZUNEZ5I.js.map → summary-A5P7AYK4.js.map} +0 -0
- /package/dist/{summary.integration.spec-WLBAJL44.js.map → summary.integration.spec-HQISXGNL.js.map} +0 -0
- /package/dist/{summaryInput-NJWVXDXW.js.map → summaryInput-HP675QOQ.js.map} +0 -0
- /package/dist/{sunburst-PXGF4WM6.js.map → sunburst-65LSYRXX.js.map} +0 -0
- /package/dist/{survival-ZZ4QLZHK.js.map → survival-QNEI6YVK.js.map} +0 -0
- /package/dist/{survival-RAU4XCKG.js.map → survival-UI74VXSM.js.map} +0 -0
- /package/dist/{svgraph-7UCFRL6A.js.map → svgraph-PSX2NER3.js.map} +0 -0
- /package/dist/{svmr-DB3RY2ID.js.map → svmr-QDQ33EFX.js.map} +0 -0
- /package/dist/{table-HJRWWXGM.js.map → table-LWAI27UO.js.map} +0 -0
- /package/dist/{termCollection-WPON7RG3.js.map → termCollection-3JHR74FG.js.map} +0 -0
- /package/dist/{termCollection-AW7M6DTP.js.map → termCollection-CDF5LYUG.js.map} +0 -0
- /package/dist/{termCollection.unit.spec-254ESHOE.js.map → termCollection.unit.spec-HOJKYWHF.js.map} +0 -0
- /package/dist/{tk-SUAFM5YA.js.map → tk-OEQFO73V.js.map} +0 -0
- /package/dist/{tp.ui-ELEQGSK2.js.map → tp.ui-SHNERDGC.js.map} +0 -0
- /package/dist/{tvs.dt-DCXY66YY.js.map → tvs.dt-CZDC4TSR.js.map} +0 -0
- /package/dist/{tvs.dtcnv.categorical-SFQZMYX7.js.map → tvs.dtcnv.categorical-OPBDHZGB.js.map} +0 -0
- /package/dist/{tvs.dtcnv.continuous-AUZNJMC3.js.map → tvs.dtcnv.continuous-AR6P4EP3.js.map} +0 -0
- /package/dist/{tvs.dtfusion-5F7MYFHZ.js.map → tvs.dtfusion-2YQ7N6FQ.js.map} +0 -0
- /package/dist/{tvs.dtsnvindel-JJSPL4PH.js.map → tvs.dtsnvindel-WHHWAATJ.js.map} +0 -0
- /package/dist/{tvs.dtsv-DARTSV5H.js.map → tvs.dtsv-3UMCW65O.js.map} +0 -0
- /package/dist/{tvs.numeric-KYAU5OV3.js.map → tvs.numeric-TOEPASWN.js.map} +0 -0
- /package/dist/{tvs.samplelst-HHBIO26C.js.map → tvs.samplelst-M7XKXRTZ.js.map} +0 -0
- /package/dist/{tvs.termCollection-KCMALH6B.js.map → tvs.termCollection-WT4WZMYR.js.map} +0 -0
- /package/dist/{violin-C26FW5WK.js.map → violin-2YGXTBDS.js.map} +0 -0
- /package/dist/{violin.integration.spec-QQ43XWHQ.js.map → violin.integration.spec-YWNHVAGS.js.map} +0 -0
- /package/dist/{violin.interactivity-H2BHC6M4.js.map → violin.interactivity-J6BE2UQL.js.map} +0 -0
- /package/dist/{violin.renderer-GSG2I7AV.js.map → violin.renderer-3GRUWP2U.js.map} +0 -0
- /package/dist/{vocabulary-3G525O5V.js.map → vocabulary-2INCVPYJ.js.map} +0 -0
|
@@ -0,0 +1,2250 @@
|
|
|
1
|
+
import {
|
|
2
|
+
blocklazyload
|
|
3
|
+
} from "./chunk-ASATD4T7.js";
|
|
4
|
+
import {
|
|
5
|
+
hicParseFile
|
|
6
|
+
} from "./chunk-4STKL6SR.js";
|
|
7
|
+
import {
|
|
8
|
+
AppBase,
|
|
9
|
+
ColorScale,
|
|
10
|
+
axisstyle,
|
|
11
|
+
first_genetrack_tolist,
|
|
12
|
+
font,
|
|
13
|
+
newpane,
|
|
14
|
+
showErrorsWithCounter,
|
|
15
|
+
tkt
|
|
16
|
+
} from "./chunk-5VOPABBA.js";
|
|
17
|
+
import "./chunk-HJ6L54YS.js";
|
|
18
|
+
import "./chunk-LSEFWW72.js";
|
|
19
|
+
import "./chunk-Z5U6HOE4.js";
|
|
20
|
+
import {
|
|
21
|
+
Menu
|
|
22
|
+
} from "./chunk-HYOEWQ5P.js";
|
|
23
|
+
import "./chunk-HBW42TDT.js";
|
|
24
|
+
import "./chunk-FN5XPUPH.js";
|
|
25
|
+
import "./chunk-5ABGFJSP.js";
|
|
26
|
+
import "./chunk-IIT367QZ.js";
|
|
27
|
+
import "./chunk-RZGEKL77.js";
|
|
28
|
+
import "./chunk-XPY6AWXO.js";
|
|
29
|
+
import "./chunk-NELOT3NJ.js";
|
|
30
|
+
import {
|
|
31
|
+
dofetch3
|
|
32
|
+
} from "./chunk-M6EF3WVV.js";
|
|
33
|
+
import "./chunk-7IYJZZQI.js";
|
|
34
|
+
import {
|
|
35
|
+
StoreBase,
|
|
36
|
+
getAppInit,
|
|
37
|
+
getCompInit,
|
|
38
|
+
getStoreInit
|
|
39
|
+
} from "./chunk-M3J4MINX.js";
|
|
40
|
+
import "./chunk-PF4DSFDR.js";
|
|
41
|
+
import "./chunk-LFCYMSVA.js";
|
|
42
|
+
import "./chunk-I6WR4CG7.js";
|
|
43
|
+
import {
|
|
44
|
+
bplen
|
|
45
|
+
} from "./chunk-2X6W4E3W.js";
|
|
46
|
+
import "./chunk-NYRZNRG5.js";
|
|
47
|
+
import "./chunk-JNITUVXP.js";
|
|
48
|
+
import "./chunk-3XVVN66M.js";
|
|
49
|
+
import {
|
|
50
|
+
axisBottom,
|
|
51
|
+
axisRight
|
|
52
|
+
} from "./chunk-LOZEKOES.js";
|
|
53
|
+
import "./chunk-VQZ2Z5YU.js";
|
|
54
|
+
import {
|
|
55
|
+
format,
|
|
56
|
+
linear
|
|
57
|
+
} from "./chunk-NSTL4MY2.js";
|
|
58
|
+
import "./chunk-TLT4YIG3.js";
|
|
59
|
+
import "./chunk-KYBIQBXE.js";
|
|
60
|
+
import {
|
|
61
|
+
pointer_default,
|
|
62
|
+
select_default
|
|
63
|
+
} from "./chunk-I6Y4O3RR.js";
|
|
64
|
+
import "./chunk-OMR2DT66.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-UNIJLH4B.js.map
|