@sjcrh/proteinpaint-client 2.200.0 → 2.201.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/2dmaf-6MNHNHWX.js +1373 -0
- package/dist/AIProjectAdmin-W36NGUX2.js +958 -0
- package/dist/AggregateMatrix-YH2SN6VN.js +671 -0
- package/dist/AggregateMatrix-YH2SN6VN.js.map +7 -0
- package/dist/AppHeader-I5CFECIL.js +835 -0
- package/dist/BoxPlot-4SXDAOBP.js +1218 -0
- package/dist/CorrelationVolcano-NAWMGG4Q.js +619 -0
- package/dist/DE-VZMT7KEM.js +95 -0
- package/dist/DEinput-TKERM2YD.js +409 -0
- package/dist/DifferentialAnalysis-Y4SU4BVP.js +243 -0
- package/dist/Disco-DLK3BYPV.js +3392 -0
- package/dist/Disco.UI-IKGMFG36.js +248 -0
- package/dist/DmrPlot-JWBZJFS6.js +642 -0
- package/dist/GB-3UZSSIBW.js +1396 -0
- package/dist/GSEA-YLHBZY55.js +846 -0
- package/dist/GeneExpInput-KX5I63YV.js +367 -0
- package/dist/Geomap-QTUHM4VH.js +89 -0
- package/dist/HicApp-M2OCHGRT.js +2250 -0
- package/dist/IDCViewer-SWFBLBZH.js +10817 -0
- package/dist/NumBinaryEditor-ILFP6DR7.js +284 -0
- package/dist/NumBinaryEditor-ILFP6DR7.js.map +7 -0
- package/dist/NumBinaryEditor.unit.spec-TNIH7GQB.js +317 -0
- package/dist/NumBinaryEditor.unit.spec-TNIH7GQB.js.map +7 -0
- package/dist/NumContEditor-7UR3QMO6.js +110 -0
- package/dist/NumContEditor-7UR3QMO6.js.map +7 -0
- package/dist/NumContEditor.unit.spec-P67AFEHM.js +169 -0
- package/dist/NumCustomBinEditor-H22J4K47.js +38 -0
- package/dist/NumCustomBinEditor.unit.spec-CO76BQPZ.js +402 -0
- package/dist/NumCustomBinEditor.unit.spec-CO76BQPZ.js.map +7 -0
- package/dist/NumDiscreteEditor-TSUHVX77.js +175 -0
- package/dist/NumDiscreteEditor-TSUHVX77.js.map +7 -0
- package/dist/NumDiscreteEditor.unit.spec-RGC3GT22.js +238 -0
- package/dist/NumDiscreteEditor.unit.spec-RGC3GT22.js.map +7 -0
- package/dist/NumRegularBinEditor-IRD27CE2.js +38 -0
- package/dist/NumRegularBinEditor.unit.spec-MUHVOK5P.js +283 -0
- package/dist/NumRegularBinEditor.unit.spec-MUHVOK5P.js.map +7 -0
- package/dist/NumSplineEditor-3V7RWHE2.js +215 -0
- package/dist/NumSplineEditor-3V7RWHE2.js.map +7 -0
- package/dist/NumSplineEditor.unit.spec-BUI7NPN4.js +229 -0
- package/dist/NumSplineEditor.unit.spec-BUI7NPN4.js.map +7 -0
- package/dist/NumericDensity-53KMCTDL.js +38 -0
- package/dist/NumericDensity.unit.spec-OKAQPQHR.js +423 -0
- package/dist/NumericDensity.unit.spec-OKAQPQHR.js.map +7 -0
- package/dist/NumericHandler-5QFNXVBA.js +39 -0
- package/dist/NumericHandler.unit.spec-OBITSUU3.js +219 -0
- package/dist/ProteomeInput-MM373EL3.js +394 -0
- package/dist/RunChart2-2L6T3ITZ.js +758 -0
- package/dist/SC-JKD3Z2X5.js +1112 -0
- package/dist/Volcano-STGBS7IJ.js +1404 -0
- package/dist/WSIViewer-LOBVUTOD.js +48562 -0
- package/dist/WsiSamplesPlot-D3L3AILR.js +165 -0
- package/dist/adSandbox-XO5HDSFW.js +38 -0
- package/dist/animatedBubbleChart-XKW6TCZP.js +553 -0
- package/dist/app-H7ABTG6X.js +49 -0
- package/dist/app-HJSPIKRQ.js +37 -0
- package/dist/app.js +19 -19
- package/dist/bam-R5QVHWGY.js +859 -0
- package/dist/barchart-OGCLBPQ2.js +47 -0
- package/dist/barchart.data-VBSWS5N7.js +21 -0
- package/dist/barchart.events-GZTY4IC3.js +47 -0
- package/dist/barchart.integration.spec-Z6ECNFSM.js +2243 -0
- package/dist/barchart2-DT42I747.js +314 -0
- package/dist/block-UYYJXSCM.js +6255 -0
- package/dist/block.init-43M53IMA.js +38 -0
- package/dist/block.mds.expressionrank-YH3IWMKM.js +359 -0
- package/dist/block.mds.geneboxplot-QS2IK37X.js +828 -0
- package/dist/block.mds.junction-7FF5BFEX.js +1545 -0
- package/dist/block.mds.svcnv-MMJYLL2W.js +6801 -0
- package/dist/block.svg-SA6DSUM2.js +164 -0
- package/dist/block.tk.aicheck-ZX5LZ2QO.js +283 -0
- package/dist/block.tk.ase-YXT4BOXK.js +365 -0
- package/dist/block.tk.bam-IMLRIOOV.js +1906 -0
- package/dist/block.tk.bedgraphdot-UYQLL7HM.js +384 -0
- package/dist/block.tk.bigwig.ui-WUVLVRSM.js +211 -0
- package/dist/block.tk.hicstraw-N4SJGF7H.js +823 -0
- package/dist/block.tk.junction-LZWHFKWJ.js +2364 -0
- package/dist/block.tk.junction.textmatrixui-B626NYPA.js +199 -0
- package/dist/block.tk.ld-6VWUMAP6.js +99 -0
- package/dist/block.tk.menu-RRN2UPQX.js +1029 -0
- package/dist/block.tk.pgv-GYG3EI6P.js +944 -0
- package/dist/brainImaging-VIMLETC5.js +423 -0
- package/dist/brainRegions-DRYZT5K5.js +221 -0
- package/dist/bubbleHeatmap-Y4SGMVJY.js +383 -0
- package/dist/cellTypeBubbleHeatmap-QW37ZT5W.js +283 -0
- package/dist/chunk-2Y5C7GJS.js +299 -0
- package/dist/chunk-2ZTCRUOL.js +2899 -0
- package/dist/chunk-3O6XFPUB.js +243 -0
- package/dist/chunk-3O6XFPUB.js.map +7 -0
- package/dist/chunk-3P74DH6P.js +236 -0
- package/dist/chunk-3PPCZPLN.js +98 -0
- package/dist/chunk-4H4WJJ2G.js +54 -0
- package/dist/chunk-4L2OSDQ6.js +626 -0
- package/dist/chunk-4USLEUNR.js +1812 -0
- package/dist/chunk-5ITKSTJX.js +34 -0
- package/dist/chunk-5VMYXVZG.js +272 -0
- package/dist/chunk-75T7ESEO.js +61 -0
- package/dist/chunk-75T7ESEO.js.map +7 -0
- package/dist/chunk-7ZVFLC2V.js +134 -0
- package/dist/chunk-A7OWXDYA.js +129 -0
- package/dist/chunk-A7OWXDYA.js.map +7 -0
- package/dist/chunk-C2JHLAKV.js +222 -0
- package/dist/chunk-C2JHLAKV.js.map +7 -0
- package/dist/chunk-C5IAIOCA.js +102 -0
- package/dist/chunk-CIRCVMWE.js +102 -0
- package/dist/chunk-CLTRQZGJ.js +170 -0
- package/dist/chunk-CRH37PEV.js +203 -0
- package/dist/chunk-DCNDZOI3.js +6364 -0
- package/dist/chunk-DCR4QQ5Y.js +194 -0
- package/dist/chunk-DKAHHMKN.js +5070 -0
- package/dist/chunk-E2GHT7RH.js +39 -0
- package/dist/chunk-EQCVSUAF.js +37 -0
- package/dist/chunk-ETK36FXN.js +384 -0
- package/dist/chunk-FCOX5Q4Q.js +58 -0
- package/dist/chunk-FVL37XFU.js +834 -0
- package/dist/chunk-FXQXCOII.js +101 -0
- package/dist/chunk-FXQXCOII.js.map +7 -0
- package/dist/chunk-FXS4I3Z3.js +176 -0
- package/dist/chunk-FYAY6D3O.js +123 -0
- package/dist/chunk-GEQUQ3GG.js +1652 -0
- package/dist/chunk-GEQUQ3GG.js.map +7 -0
- package/dist/chunk-GL44X7JY.js +302 -0
- package/dist/chunk-HQAJVJCQ.js +195 -0
- package/dist/chunk-HQAJVJCQ.js.map +7 -0
- package/dist/chunk-IQVBMLFI.js +446 -0
- package/dist/chunk-IYT5PNYJ.js +148 -0
- package/dist/chunk-J6EP7JPJ.js +1245 -0
- package/dist/chunk-JKMN7XOP.js +1114 -0
- package/dist/chunk-JKMN7XOP.js.map +7 -0
- package/dist/chunk-JLGCQ2F4.js +480 -0
- package/dist/chunk-JQT67SWE.js +263 -0
- package/dist/chunk-JQYPRW42.js +217 -0
- package/dist/chunk-K4IGOJPT.js +160 -0
- package/dist/chunk-K6OVOHIZ.js +21483 -0
- package/dist/chunk-K6OVOHIZ.js.map +7 -0
- package/dist/chunk-KPTPDZX2.js +56 -0
- package/dist/chunk-KTB7KXC2.js +187 -0
- package/dist/chunk-KW7MKBGF.js +2681 -0
- package/dist/chunk-KZFVYDVK.js +448 -0
- package/dist/chunk-L44P5N4U.js +314 -0
- package/dist/chunk-L44P5N4U.js.map +7 -0
- package/dist/chunk-M77DCLJX.js +100 -0
- package/dist/chunk-MFEYO6FB.js +4306 -0
- package/dist/chunk-MFEYO6FB.js.map +7 -0
- package/dist/chunk-MGGAWPTR.js +54 -0
- package/dist/chunk-MKPU5TWN.js +194 -0
- package/dist/chunk-MKPU5TWN.js.map +7 -0
- package/dist/chunk-MUJMZ6W6.js +129 -0
- package/dist/chunk-NRP55BOF.js +50 -0
- package/dist/chunk-O5KFJBU3.js +1942 -0
- package/dist/chunk-Q4AP5L7R.js +1311 -0
- package/dist/chunk-Q4AP5L7R.js.map +7 -0
- package/dist/chunk-QHPN3JJZ.js +55 -0
- package/dist/chunk-QSGXZEUU.js +465 -0
- package/dist/chunk-R3ARQMM4.js +119 -0
- package/dist/chunk-RIQT2LSR.js +479 -0
- package/dist/chunk-RVRRHEUG.js +26 -0
- package/dist/chunk-SOCGXVIL.js +2327 -0
- package/dist/chunk-SZHFBRRT.js +514 -0
- package/dist/chunk-TOYMIFHN.js +381 -0
- package/dist/chunk-TPVHGI7Q.js +368 -0
- package/dist/chunk-TRQUMV4T.js +254 -0
- package/dist/chunk-UFLJ6PRI.js +387 -0
- package/dist/chunk-UFLJ6PRI.js.map +7 -0
- package/dist/chunk-UJN2RH5R.js +411 -0
- package/dist/chunk-UJN2RH5R.js.map +7 -0
- package/dist/chunk-UO7MD3XA.js +556 -0
- package/dist/chunk-UONOFG2J.js +274 -0
- package/dist/chunk-V2DU2OXH.js +1710 -0
- package/dist/chunk-WWXXSQ2M.js +31 -0
- package/dist/chunk-X6VTVZY7.js +263 -0
- package/dist/chunk-X7KRSZQT.js +2784 -0
- package/dist/chunk-XFAL46LZ.js +102 -0
- package/dist/chunk-XFAL46LZ.js.map +7 -0
- package/dist/chunk-XIBY5I6F.js +240 -0
- package/dist/chunk-XIBY5I6F.js.map +7 -0
- package/dist/chunk-XJBSBIZ4.js +70 -0
- package/dist/chunk-XRQWZJJ3.js +347 -0
- package/dist/chunk-XZ4M3QAV.js +158 -0
- package/dist/chunk-YMP4YKBN.js +142 -0
- package/dist/chunk-YUURGVV3.js +275 -0
- package/dist/chunk-Z7VK2AMA.js +292 -0
- package/dist/chunk-ZFJUVP2N.js +787 -0
- package/dist/chunk-ZH7JPYQE.js +14 -0
- package/dist/chunk-ZVDOSFWU.js +276 -0
- package/dist/cohort-CEYVJJ7E.js +75 -0
- package/dist/condition-QSOFP4MY.js +332 -0
- package/dist/controls-QYHARIEY.js +39 -0
- package/dist/controls.config-3OO3JK6E.js +39 -0
- package/dist/correlation-TOI3TMYL.js +102 -0
- package/dist/cuminc-L7OJTYXC.js +1148 -0
- package/dist/cuminc.integration.spec-LSWV3KOF.js +678 -0
- package/dist/customdata.inputui-VMB3HSSC.js +289 -0
- package/dist/dataDownload-NPSWNOAG.js +330 -0
- package/dist/dataDownload.integration.spec-J6FRFLBK.js +193 -0
- package/dist/databrowser.ui-GVYWG6YI.js +432 -0
- package/dist/dictionary-GD67R72W.js +118 -0
- package/dist/dnaMethylation-S7OSGLAF.js +38 -0
- package/dist/dnaMethylation.integration.spec-ETMMJNDE.js +203 -0
- package/dist/dofetch-7GURQS65.js +51 -0
- package/dist/e2pca-ZIIPBJFN.js +350 -0
- package/dist/ep-A2HAL5WA.js +1256 -0
- package/dist/expclust.gdc.spec-ZSILLYNI.js +307 -0
- package/dist/facet-74LKIPTA.js +521 -0
- package/dist/gb-C3MPQXKN.js +88 -0
- package/dist/geneExpClustering-HYCFUUTU.js +249 -0
- package/dist/geneExpression-GATKMJJ5.js +313 -0
- package/dist/geneExpression-JXSAP2H7.js +38 -0
- package/dist/geneExpression.unit.spec-CODZYFHZ.js +102 -0
- package/dist/geneORA-LJRIR4VV.js +278 -0
- package/dist/geneRanking-TWLBKQZG.js +553 -0
- package/dist/geneVariant-35RQHTCK.js +41 -0
- package/dist/geneVariant-TMJJIMUF.js +39 -0
- package/dist/geneVariant.integration.spec-FIQ7IBSD.js +198 -0
- package/dist/genefusion.ui-SOBESSNO.js +308 -0
- package/dist/geneset-JXEJFEK2.js +208 -0
- package/dist/genomeBrowser.spec-25ZO5S2X.js +281 -0
- package/dist/grin2-CW4RPVPI.js +75 -0
- package/dist/grin2-EI5BVP4E.js +1143 -0
- package/dist/hierCluster-OBBPQH24.js +59 -0
- package/dist/hierCluster-SDH3TJQY.js +63 -0
- package/dist/hierCluster.config-DO67TCXI.js +40 -0
- package/dist/hierCluster.integration.spec-EB24C4VZ.js +488 -0
- package/dist/hierCluster.interactivity-LGEAFT5T.js +54 -0
- package/dist/hierCluster.renderers-FXDCU3PN.js +21 -0
- package/dist/imagePlot-LGLFG2QZ.js +163 -0
- package/dist/importPlot-R2WRZGZU.js +8 -0
- package/dist/isoformExpression-KI3WY5M3.js +40 -0
- package/dist/isoformExpression.unit.spec-OQRG2DDU.js +242 -0
- package/dist/junction-6SWFPNM5.js +41 -0
- package/dist/junction.customTerm-MDBOU6I7.js +18 -0
- package/dist/junction.unit.spec-5TZFITSU.js +187 -0
- package/dist/launch.adhoc-HCX2RQLB.js +42 -0
- package/dist/leftlabel.sample-OI6XCXTQ.js +263 -0
- package/dist/lollipop-SOSOYHYL.js +171 -0
- package/dist/maf-73RLOEVN.js +459 -0
- package/dist/maftimeline-UOMLYUNI.js +593 -0
- package/dist/matrix-5QWDN6SI.js +63 -0
- package/dist/matrix-SKPVVDVR.js +58 -0
- package/dist/matrix.cells-CFSI2NWU.js +28 -0
- package/dist/matrix.config-HE64MAL4.js +41 -0
- package/dist/matrix.data-HTUZXQAM.js +25 -0
- package/dist/matrix.groups-ZFKWVNMX.js +27 -0
- package/dist/matrix.integration.spec-YKJ4LZFY.js +3072 -0
- package/dist/matrix.interactivity-YB5G5W5T.js +42 -0
- package/dist/matrix.layout-MFG65V7K.js +44 -0
- package/dist/matrix.legend-7MIZZJVB.js +22 -0
- package/dist/matrix.renderers-PCZFHDDZ.js +38 -0
- package/dist/matrix.serieses-7KYX3KAY.js +21 -0
- package/dist/matrix.sort-CR3J45MQ.js +27 -0
- package/dist/matrix.sort.unit.spec-GEAM5DSU.js +472 -0
- package/dist/matrix.sorterUi-YSKIX6B6.js +18 -0
- package/dist/matrix.sorterUi.unit.spec-2MW64QS5.js +342 -0
- package/dist/mavb-YMHJXCGA.js +732 -0
- package/dist/mds.fimo-PTEDRMLQ.js +518 -0
- package/dist/mds.samplescatterplot-7R7PLVQJ.js +1550 -0
- package/dist/mds.survivalplot-F3EENMFQ.js +483 -0
- package/dist/numericDictTermCluster-3HXLMURH.js +65 -0
- package/dist/oncomatrix-27VVSMZB.js +295 -0
- package/dist/oncomatrix.spec-F43Y7CWN.js +448 -0
- package/dist/plot.2dvaf-MYFQSWIA.js +377 -0
- package/dist/plot.app-36QWCKXR.js +41 -0
- package/dist/plot.barplot-535EP7XT.js +102 -0
- package/dist/plot.boxplot-6IBP7VEB.js +152 -0
- package/dist/plot.brainImaging-M4HPNXZH.js +51 -0
- package/dist/plot.disco-HIT6GR44.js +102 -0
- package/dist/plot.dzi-W66SBKTH.js +33 -0
- package/dist/plot.ssgq-MI2OMCUY.js +139 -0
- package/dist/plot.vaf2cov-F4CBMLRA.js +259 -0
- package/dist/plot.wsi-7M5KTNFC.js +36 -0
- package/dist/polar2-7VSWGT4U.js +237 -0
- package/dist/profileForms-DFPCNJW2.js +940 -0
- package/dist/profilePlot-ECTPPVB2.js +54 -0
- package/dist/proteinView-6ELOLOIU.js +1568 -0
- package/dist/proteomeCohortCompare-V2FMWI62.js +799 -0
- package/dist/pseudbulk.unit.spec-KV6URTXC.js +91 -0
- package/dist/pseudobulk-6ZRFCE65.js +40 -0
- package/dist/qualitative-3B62RUOB.js +43 -0
- package/dist/qualitative-GJDQBD7L.js +220 -0
- package/dist/radar2-4QQER64E.js +332 -0
- package/dist/radarFacility2-MZKORRDY.js +340 -0
- package/dist/regression-GZ2YNX6Y.js +56 -0
- package/dist/regression.inputs-ZEFDNSVT.js +48 -0
- package/dist/regression.inputs.term-O2FQBX7L.js +48 -0
- package/dist/regression.inputs.values.table-63BQKSZP.js +45 -0
- package/dist/regression.integration.spec-KDHC3KDU.js +838 -0
- package/dist/regression.integration.spec-KDHC3KDU.js.map +7 -0
- package/dist/regression.results-5J3QM4RX.js +40 -0
- package/dist/regression.spec-WZAZTDDA.js +708 -0
- package/dist/render-MZTEXVU5.js +38 -0
- package/dist/report-M5TYHH2W.js +222 -0
- package/dist/sampleView-QYTLYJEW.js +48 -0
- package/dist/samplelst-FN3Q7M7A.js +111 -0
- package/dist/samplematrix-Z5FVODO7.js +2198 -0
- package/dist/sc-4CHP5SYP.js +86 -0
- package/dist/scatter-UOPJYXL3.js +890 -0
- package/dist/scatter-UOPJYXL3.js.map +7 -0
- package/dist/selectGenomeWithTklst-WMAHGT4F.js +134 -0
- package/dist/singleCellCellType-XPWENB6V.js +38 -0
- package/dist/singleCellCellType.unit.spec-QK56PHKW.js +159 -0
- package/dist/singleCellGeneExpression-4CEVDVYF.js +38 -0
- package/dist/singleCellGeneExpression.unit.spec-ZYRLBVF5.js +153 -0
- package/dist/singleCellPlot-JS74VUGC.js +54 -0
- package/dist/singlecell-5XYOHMWJ.js +1572 -0
- package/dist/singlecell-OO77XBDD.js +86 -0
- package/dist/snp-X5ZILM5J.js +38 -0
- package/dist/snp.unit.spec-V23G3JLJ.js +176 -0
- package/dist/snplocus-U5UIIUWR.js +208 -0
- package/dist/spliceevent.a53ss.diagram-YDFVSDMT.js +151 -0
- package/dist/spliceevent.exonskip.diagram-VDKN5JBE.js +283 -0
- package/dist/spliceevent.noeventdiagram-EFPFRUFI.js +460 -0
- package/dist/ssGSEA-LKJW5OQK.js +38 -0
- package/dist/ssGSEA.unit.spec-7WCZVEP2.js +88 -0
- package/dist/studyCatalog-EU33KE5H.js +358 -0
- package/dist/summarizeCnvGeneexp-QL25OQNB.js +163 -0
- package/dist/summarizeGeneexpSurvival-B7HTCH7L.js +110 -0
- package/dist/summarizeMutationCnv-DFAPX2JE.js +164 -0
- package/dist/summarizeMutationDiagnosis-HCSDSVII.js +40 -0
- package/dist/summarizeMutationSurvival-6WEASSA2.js +99 -0
- package/dist/summary-BWYXE77G.js +49 -0
- package/dist/summary.integration.spec-AVGSW5MF.js +414 -0
- package/dist/summaryInput-MOQ6HUCX.js +231 -0
- package/dist/sunburst-EZDHVJCL.js +284 -0
- package/dist/survival-5TFMM7NP.js +1239 -0
- package/dist/survival-IEVELTC4.js +58 -0
- package/dist/survival.integration.spec-HHWP3R4H.js +958 -0
- package/dist/svgraph-55XRIYJW.js +1387 -0
- package/dist/svmr-CMEBFSRO.js +3842 -0
- package/dist/table-LTWQ3TLQ.js +200 -0
- package/dist/termCollection-CPQXYBFA.js +38 -0
- package/dist/termCollection-ZWOH273K.js +257 -0
- package/dist/termCollection.unit.spec-RK7VATLU.js +304 -0
- package/dist/termCollectionFractionSelection-Z4ZRW63R.js +47 -0
- package/dist/termCollectionFractionSelection.unit.spec-3CS7DPNU.js +193 -0
- package/dist/tk-4NNTWWLK.js +46 -0
- package/dist/tk-RHWJJXH2.js +1127 -0
- package/dist/tp.ui-DPN5UN6U.js +1459 -0
- package/dist/tvs.density-LMRZZO4D.js +19 -0
- package/dist/tvs.dt-ARPDFRVM.js +39 -0
- package/dist/tvs.dtcnv.categorical-POS6WQK6.js +40 -0
- package/dist/tvs.dtcnv.continuous-5OETJ7JU.js +72 -0
- package/dist/tvs.dtfusion-ERYVI3DW.js +40 -0
- package/dist/tvs.dtitd-KTZZYEWU.js +40 -0
- package/dist/tvs.dtsnvindel-TGUAX3RN.js +40 -0
- package/dist/tvs.dtsv-AM63OIL6.js +40 -0
- package/dist/tvs.numeric-MQPO5XUQ.js +22 -0
- package/dist/tvs.samplelst-VW2NOQ2C.js +104 -0
- package/dist/tvs.termCollection-O4ZSWJFA.js +129 -0
- package/dist/violin-ZQ3DEYGR.js +46 -0
- package/dist/violin.integration.spec-PVEF77HB.js +1425 -0
- package/dist/violin.interactivity-FYU4TCFO.js +38 -0
- package/dist/violin.renderer-XAERGBMV.js +40 -0
- package/dist/vocabulary-ECJX27W2.js +41 -0
- package/package.json +3 -3
- package/dist/2dmaf-RRV3ORZR.js +0 -1373
- package/dist/AIProjectAdmin-DKLEFCGX.js +0 -958
- package/dist/AppHeader-WQ2F7HZY.js +0 -835
- package/dist/BoxPlot-5JQCYENZ.js +0 -1218
- package/dist/CorrelationVolcano-HR6IP2SZ.js +0 -619
- package/dist/DE-DAW6ZKM7.js +0 -95
- package/dist/DEinput-XCR4VMR3.js +0 -409
- package/dist/DifferentialAnalysis-SETJAZEN.js +0 -243
- package/dist/Disco-QEBEVQS2.js +0 -3392
- package/dist/Disco.UI-OYVL7UBI.js +0 -248
- package/dist/DmrPlot-CWBQDZL7.js +0 -642
- package/dist/GB-5PYCR4SV.js +0 -1396
- package/dist/GSEA-6UKMI6GY.js +0 -846
- package/dist/GeneExpInput-2N62XM7Z.js +0 -367
- package/dist/Geomap-ANMR32HE.js +0 -89
- package/dist/HicApp-WHPUPHEM.js +0 -2250
- package/dist/IDCViewer-FWXRE4AX.js +0 -10817
- package/dist/NumBinaryEditor-VG5KOGDA.js +0 -271
- package/dist/NumBinaryEditor-VG5KOGDA.js.map +0 -7
- package/dist/NumBinaryEditor.unit.spec-UCGFZS3P.js +0 -286
- package/dist/NumBinaryEditor.unit.spec-UCGFZS3P.js.map +0 -7
- package/dist/NumContEditor-J52RON3G.js +0 -109
- package/dist/NumContEditor-J52RON3G.js.map +0 -7
- package/dist/NumContEditor.unit.spec-5GTWUJEL.js +0 -169
- package/dist/NumCustomBinEditor-GM2OJMOX.js +0 -38
- package/dist/NumCustomBinEditor.unit.spec-3PGJ25J4.js +0 -284
- package/dist/NumCustomBinEditor.unit.spec-3PGJ25J4.js.map +0 -7
- package/dist/NumDiscreteEditor-2CAKT3Y4.js +0 -179
- package/dist/NumDiscreteEditor-2CAKT3Y4.js.map +0 -7
- package/dist/NumDiscreteEditor.unit.spec-XCWSJTRT.js +0 -202
- package/dist/NumDiscreteEditor.unit.spec-XCWSJTRT.js.map +0 -7
- package/dist/NumRegularBinEditor-CZYITY5L.js +0 -38
- package/dist/NumRegularBinEditor.unit.spec-OUBZ5XB3.js +0 -227
- package/dist/NumRegularBinEditor.unit.spec-OUBZ5XB3.js.map +0 -7
- package/dist/NumSplineEditor-TWRL5AQQ.js +0 -198
- package/dist/NumSplineEditor-TWRL5AQQ.js.map +0 -7
- package/dist/NumSplineEditor.unit.spec-5P6NQZ3N.js +0 -199
- package/dist/NumSplineEditor.unit.spec-5P6NQZ3N.js.map +0 -7
- package/dist/NumericDensity-JSOFOEH2.js +0 -38
- package/dist/NumericDensity.unit.spec-REUKHMKK.js +0 -221
- package/dist/NumericDensity.unit.spec-REUKHMKK.js.map +0 -7
- package/dist/NumericHandler-UZOGKPKB.js +0 -39
- package/dist/NumericHandler.unit.spec-X2DAED4O.js +0 -219
- package/dist/ProteomeInput-GBVCLNS7.js +0 -394
- package/dist/RunChart2-N4JPWNVV.js +0 -758
- package/dist/SC-RCZT5BRP.js +0 -1112
- package/dist/Volcano-2BQ6SYHO.js +0 -1404
- package/dist/WSIViewer-UDA4WIRT.js +0 -48562
- package/dist/WsiSamplesPlot-DYSFMD22.js +0 -165
- package/dist/adSandbox-5BUDCAER.js +0 -38
- package/dist/animatedBubbleChart-N6MBJ4X3.js +0 -553
- package/dist/app-O64TGDFH.js +0 -37
- package/dist/app-Y2STUISK.js +0 -49
- package/dist/bam-2EOABVGT.js +0 -859
- package/dist/barchart-UHCTYRMJ.js +0 -47
- package/dist/barchart.data-LSK2P2PR.js +0 -21
- package/dist/barchart.events-Y4H2GADS.js +0 -47
- package/dist/barchart.integration.spec-BFGZFECA.js +0 -2243
- package/dist/barchart2-VIZKZRMP.js +0 -314
- package/dist/block-BGSSF6XP.js +0 -6255
- package/dist/block.init-H7RKUIHG.js +0 -38
- package/dist/block.mds.expressionrank-MA3HGT7S.js +0 -359
- package/dist/block.mds.geneboxplot-CWT5DM5T.js +0 -828
- package/dist/block.mds.junction-P4I7O73X.js +0 -1545
- package/dist/block.mds.svcnv-NSPEY43S.js +0 -6801
- package/dist/block.svg-DP4G3LNQ.js +0 -164
- package/dist/block.tk.aicheck-EBLTOWKZ.js +0 -283
- package/dist/block.tk.ase-X7WKQOFS.js +0 -365
- package/dist/block.tk.bam-OIP3TS3N.js +0 -1906
- package/dist/block.tk.bedgraphdot-2DDF55J3.js +0 -384
- package/dist/block.tk.bigwig.ui-S2SMAEXM.js +0 -211
- package/dist/block.tk.hicstraw-4OIG4TBZ.js +0 -823
- package/dist/block.tk.junction-52OWEQUN.js +0 -2364
- package/dist/block.tk.junction.textmatrixui-64YOSZLW.js +0 -199
- package/dist/block.tk.ld-3AMNHBDY.js +0 -99
- package/dist/block.tk.menu-4724DJXL.js +0 -1029
- package/dist/block.tk.pgv-2SIOPWYI.js +0 -944
- package/dist/brainImaging-D43CQQN6.js +0 -423
- package/dist/brainRegions-HJ2VGL3L.js +0 -221
- package/dist/bubbleHeatmap-IL44M4QZ.js +0 -383
- package/dist/cellTypeBubbleHeatmap-NQP7RCZO.js +0 -283
- package/dist/chunk-26APRXD3.js +0 -254
- package/dist/chunk-2GLA2SWU.js +0 -160
- package/dist/chunk-3BGFM7Q4.js +0 -1275
- package/dist/chunk-3BGFM7Q4.js.map +0 -7
- package/dist/chunk-3SHZTAGF.js +0 -193
- package/dist/chunk-3SHZTAGF.js.map +0 -7
- package/dist/chunk-46X6AQ7Z.js +0 -123
- package/dist/chunk-4HZN6PMU.js +0 -129
- package/dist/chunk-4KRGCOTL.js +0 -479
- package/dist/chunk-5DMVORBB.js +0 -98
- package/dist/chunk-5QMBB4SK.js +0 -1245
- package/dist/chunk-5RVA43MN.js +0 -274
- package/dist/chunk-5T3MOOEJ.js +0 -379
- package/dist/chunk-5T3MOOEJ.js.map +0 -7
- package/dist/chunk-5T3ZDRTS.js +0 -70
- package/dist/chunk-5ZTVJSYI.js +0 -834
- package/dist/chunk-6JYQGZ3Y.js +0 -446
- package/dist/chunk-6OUBUUC2.js +0 -626
- package/dist/chunk-6PNPHACF.js +0 -1652
- package/dist/chunk-6PNPHACF.js.map +0 -7
- package/dist/chunk-7JRDJNLR.js +0 -263
- package/dist/chunk-7PIHRWGG.js +0 -102
- package/dist/chunk-7PJNKPQB.js +0 -275
- package/dist/chunk-AGLAYNXP.js +0 -170
- package/dist/chunk-B7VDZ6VF.js +0 -399
- package/dist/chunk-B7VDZ6VF.js.map +0 -7
- package/dist/chunk-BGTBRAJ6.js +0 -50
- package/dist/chunk-BNAO6N5X.js +0 -2899
- package/dist/chunk-BQHPJY2M.js +0 -347
- package/dist/chunk-BZTWTH4Y.js +0 -87
- package/dist/chunk-BZTWTH4Y.js.map +0 -7
- package/dist/chunk-CY4RQ5L6.js +0 -1710
- package/dist/chunk-D565DNJD.js +0 -236
- package/dist/chunk-DH3LAQKT.js +0 -384
- package/dist/chunk-E3VF4RHJ.js +0 -381
- package/dist/chunk-EGPNRSPF.js +0 -292
- package/dist/chunk-FACITNG5.js +0 -142
- package/dist/chunk-GNS6CQMA.js +0 -119
- package/dist/chunk-H3N4KYKL.js +0 -2327
- package/dist/chunk-H3VWJH4U.js +0 -14
- package/dist/chunk-HEVKBSN6.js +0 -222
- package/dist/chunk-HEVKBSN6.js.map +0 -7
- package/dist/chunk-HQUYAZQY.js +0 -514
- package/dist/chunk-IUBBQPO2.js +0 -146
- package/dist/chunk-IUBBQPO2.js.map +0 -7
- package/dist/chunk-J4USU73L.js +0 -26
- package/dist/chunk-JNITUVXP.js +0 -41
- package/dist/chunk-JNITUVXP.js.map +0 -7
- package/dist/chunk-JVPWIVDT.js +0 -1812
- package/dist/chunk-KU7YH7MV.js +0 -217
- package/dist/chunk-KZILNGAV.js +0 -187
- package/dist/chunk-LSEFWW72.js +0 -94
- package/dist/chunk-LSEFWW72.js.map +0 -7
- package/dist/chunk-M66VDGSH.js +0 -272
- package/dist/chunk-MJN6RDXB.js +0 -302
- package/dist/chunk-MPNEZ6EL.js +0 -31
- package/dist/chunk-MPSLUEI4.js +0 -314
- package/dist/chunk-MPSLUEI4.js.map +0 -7
- package/dist/chunk-NIXFCC7X.js +0 -368
- package/dist/chunk-NODQZTWK.js +0 -276
- package/dist/chunk-NRYHIWBS.js +0 -1942
- package/dist/chunk-NUWJ4RN7.js +0 -465
- package/dist/chunk-NVTJ5AUT.js +0 -1102
- package/dist/chunk-NVTJ5AUT.js.map +0 -7
- package/dist/chunk-NZRMHM76.js +0 -158
- package/dist/chunk-OOWXMY7U.js +0 -55
- package/dist/chunk-OTTMHVYH.js +0 -787
- package/dist/chunk-QDX2XUNF.js +0 -58
- package/dist/chunk-QYXCHZ6U.js +0 -4282
- package/dist/chunk-QYXCHZ6U.js.map +0 -7
- package/dist/chunk-R6NM2HSH.js +0 -556
- package/dist/chunk-RJOY6A74.js +0 -56
- package/dist/chunk-ROMW4AK2.js +0 -102
- package/dist/chunk-RR5U35N7.js +0 -230
- package/dist/chunk-RR5U35N7.js.map +0 -7
- package/dist/chunk-RVKADD4L.js +0 -148
- package/dist/chunk-S5ZCK44Z.js +0 -54
- package/dist/chunk-SNRIVNQ3.js +0 -176
- package/dist/chunk-STI7BO3P.js +0 -2681
- package/dist/chunk-TAM7UCAI.js +0 -263
- package/dist/chunk-TDKMBQSM.js +0 -5070
- package/dist/chunk-TKW5TW4Z.js +0 -21449
- package/dist/chunk-TKW5TW4Z.js.map +0 -7
- package/dist/chunk-TQTYW66I.js +0 -2784
- package/dist/chunk-U3NTH4CS.js +0 -54
- package/dist/chunk-UEGQVQD6.js +0 -34
- package/dist/chunk-ULESDMUT.js +0 -480
- package/dist/chunk-UUKSL7QC.js +0 -134
- package/dist/chunk-VUPWQCDR.js +0 -194
- package/dist/chunk-W76X6W73.js +0 -100
- package/dist/chunk-W7OS7BNM.js +0 -203
- package/dist/chunk-WKNI3HRQ.js +0 -39
- package/dist/chunk-WTTD6DUL.js +0 -6364
- package/dist/chunk-WXPFMVU6.js +0 -299
- package/dist/chunk-XNWUI5VL.js +0 -37
- package/dist/chunk-YBLTSYQV.js +0 -216
- package/dist/chunk-YBLTSYQV.js.map +0 -7
- package/dist/chunk-Z7VDFWIP.js +0 -126
- package/dist/chunk-Z7VDFWIP.js.map +0 -7
- package/dist/chunk-ZEKIUYN3.js +0 -448
- package/dist/cohort-OWLNJZVH.js +0 -75
- package/dist/condition-L2IXP6WH.js +0 -332
- package/dist/controls-2S5QVWUC.js +0 -39
- package/dist/controls.config-3AJKR4ZZ.js +0 -39
- package/dist/correlation-DXTAWSLU.js +0 -102
- package/dist/cuminc-WQB6FHVS.js +0 -1148
- package/dist/cuminc.integration.spec-WAYRLHUH.js +0 -678
- package/dist/customdata.inputui-7WH2NJGB.js +0 -289
- package/dist/dataDownload-HM4UYOBO.js +0 -330
- package/dist/dataDownload.integration.spec-F5CO4BWA.js +0 -193
- package/dist/databrowser.ui-E2YOG3L4.js +0 -432
- package/dist/dictionary-EEPTFDYD.js +0 -118
- package/dist/dnaMethylation-N3WNK6XA.js +0 -38
- package/dist/dnaMethylation.integration.spec-AIYRTFMR.js +0 -203
- package/dist/dofetch-YKYPEJTQ.js +0 -51
- package/dist/e2pca-JEZIGVB2.js +0 -350
- package/dist/ep-5FMH2MLV.js +0 -1256
- package/dist/expclust.gdc.spec-FR26VSUA.js +0 -307
- package/dist/facet-5YYY3MUN.js +0 -521
- package/dist/gb-WGEVO7L2.js +0 -88
- package/dist/geneExpClustering-DHE6XJHV.js +0 -249
- package/dist/geneExpression-5NWQXMJ3.js +0 -313
- package/dist/geneExpression-VWUMM2LU.js +0 -38
- package/dist/geneExpression.unit.spec-HBU3WTZ4.js +0 -102
- package/dist/geneORA-3VWFWDYI.js +0 -278
- package/dist/geneRanking-PKDVD5OD.js +0 -553
- package/dist/geneVariant-IFIJQXH4.js +0 -39
- package/dist/geneVariant-WZSOG4GI.js +0 -41
- package/dist/geneVariant.integration.spec-6KQMWVHR.js +0 -198
- package/dist/genefusion.ui-C4NTALL3.js +0 -308
- package/dist/geneset-RJAULSKC.js +0 -208
- package/dist/genomeBrowser.spec-42OTTMGO.js +0 -281
- package/dist/grin2-26O6YDDY.js +0 -75
- package/dist/grin2-FT5BQJMB.js +0 -1143
- package/dist/hierCluster-GJPPMFNR.js +0 -59
- package/dist/hierCluster-HMJF3PBE.js +0 -63
- package/dist/hierCluster.config-TAS7XKTU.js +0 -40
- package/dist/hierCluster.integration.spec-RLHQKX65.js +0 -488
- package/dist/hierCluster.interactivity-IKTAJ6CU.js +0 -54
- package/dist/hierCluster.renderers-I6WFZRNW.js +0 -21
- package/dist/imagePlot-N4OXNMVA.js +0 -163
- package/dist/importPlot-VMYXDP66.js +0 -8
- package/dist/isoformExpression-2KV64KMN.js +0 -40
- package/dist/isoformExpression.unit.spec-RG2VWEMG.js +0 -242
- package/dist/junction-VO4IGMW2.js +0 -41
- package/dist/junction.customTerm-EFMHHVWA.js +0 -18
- package/dist/junction.unit.spec-NB24MR2B.js +0 -187
- package/dist/launch.adhoc-R3MO3VXK.js +0 -42
- package/dist/leftlabel.sample-SI6KMULD.js +0 -263
- package/dist/lollipop-XIVE4ANX.js +0 -171
- package/dist/maf-WRHD4OJF.js +0 -459
- package/dist/maftimeline-IE6YKV7Y.js +0 -593
- package/dist/matrix-ALBCAZP5.js +0 -58
- package/dist/matrix-W72XRUZD.js +0 -63
- package/dist/matrix.cells-DEEUWC74.js +0 -28
- package/dist/matrix.config-JYXQOXDT.js +0 -41
- package/dist/matrix.data-ENXNM6RP.js +0 -25
- package/dist/matrix.groups-EXSNNESB.js +0 -27
- package/dist/matrix.integration.spec-BW6U6PIW.js +0 -3072
- package/dist/matrix.interactivity-G6AL566T.js +0 -42
- package/dist/matrix.layout-UBUPIJ3R.js +0 -44
- package/dist/matrix.legend-S3P4F2DG.js +0 -22
- package/dist/matrix.renderers-IXFGXHJQ.js +0 -38
- package/dist/matrix.serieses-THHXUAPM.js +0 -21
- package/dist/matrix.sort-WJV6LIZI.js +0 -27
- package/dist/matrix.sort.unit.spec-LGMIL2LR.js +0 -472
- package/dist/matrix.sorterUi-VXVCOKEZ.js +0 -18
- package/dist/matrix.sorterUi.unit.spec-CWSEJ62U.js +0 -342
- package/dist/mavb-SXGKASQ5.js +0 -732
- package/dist/mds.fimo-EDOT3TDN.js +0 -518
- package/dist/mds.samplescatterplot-IXHNABKB.js +0 -1550
- package/dist/mds.survivalplot-KTTMHHII.js +0 -483
- package/dist/numericDictTermCluster-H4JSPW22.js +0 -65
- package/dist/oncomatrix-O4EMNUOT.js +0 -295
- package/dist/oncomatrix.spec-BME6CQWF.js +0 -448
- package/dist/plot.2dvaf-FDM4KXGT.js +0 -377
- package/dist/plot.app-UNUXG7ND.js +0 -41
- package/dist/plot.barplot-R333TMG2.js +0 -102
- package/dist/plot.boxplot-KQTYGUN3.js +0 -152
- package/dist/plot.brainImaging-YBYMHCEG.js +0 -51
- package/dist/plot.disco-CMDKRSOM.js +0 -102
- package/dist/plot.dzi-YAZA6RQS.js +0 -33
- package/dist/plot.ssgq-YKCOEXZP.js +0 -139
- package/dist/plot.vaf2cov-3TLMTFZS.js +0 -259
- package/dist/plot.wsi-7ADVYTQS.js +0 -36
- package/dist/polar2-O5SHVLP4.js +0 -237
- package/dist/profileForms-RLB6SMPQ.js +0 -940
- package/dist/profilePlot-AP52VLLO.js +0 -54
- package/dist/proteinView-S7WDBMQU.js +0 -1568
- package/dist/proteomeCohortCompare-ERVUM7RO.js +0 -799
- package/dist/pseudbulk.unit.spec-VSH7IM3R.js +0 -91
- package/dist/pseudobulk-7UKRLKQI.js +0 -40
- package/dist/qualitative-2D7MC4V5.js +0 -43
- package/dist/qualitative-2INAKDTJ.js +0 -220
- package/dist/radar2-ELVGQFZE.js +0 -332
- package/dist/radarFacility2-SDAZHGNG.js +0 -340
- package/dist/regression-CE54AQMY.js +0 -56
- package/dist/regression.inputs-SMC5CNPY.js +0 -48
- package/dist/regression.inputs.term-XS54IQC2.js +0 -48
- package/dist/regression.inputs.values.table-LNPM3MX5.js +0 -45
- package/dist/regression.integration.spec-6QSMYPWJ.js +0 -784
- package/dist/regression.integration.spec-6QSMYPWJ.js.map +0 -7
- package/dist/regression.results-25ZRRDEE.js +0 -40
- package/dist/regression.spec-EDWHFRPY.js +0 -708
- package/dist/render-SEB6GFXQ.js +0 -38
- package/dist/report-U6L3KBYG.js +0 -222
- package/dist/sampleView-QAAJ26KT.js +0 -48
- package/dist/samplelst-KYRXJSZN.js +0 -111
- package/dist/samplematrix-STLF2QA5.js +0 -2198
- package/dist/sc-HL6YSMDX.js +0 -86
- package/dist/scatter-BSGDMOC2.js +0 -851
- package/dist/scatter-BSGDMOC2.js.map +0 -7
- package/dist/selectGenomeWithTklst-4NHQDTE6.js +0 -134
- package/dist/singleCellCellType-3E2IU42J.js +0 -38
- package/dist/singleCellCellType.unit.spec-MC7ZRSMW.js +0 -159
- package/dist/singleCellGeneExpression-53UUGYTK.js +0 -38
- package/dist/singleCellGeneExpression.unit.spec-QSLTXHFE.js +0 -153
- package/dist/singleCellPlot-JDSARDRV.js +0 -54
- package/dist/singlecell-IJR7BJYT.js +0 -1572
- package/dist/singlecell-OK6GJFWL.js +0 -86
- package/dist/snp-H4KJEEOE.js +0 -38
- package/dist/snp.unit.spec-2Y4A3XYI.js +0 -176
- package/dist/snplocus-4GG6VTWX.js +0 -208
- package/dist/spliceevent.a53ss.diagram-JZNRC5UC.js +0 -151
- package/dist/spliceevent.exonskip.diagram-H54N7ZKY.js +0 -283
- package/dist/spliceevent.noeventdiagram-II753XAK.js +0 -460
- package/dist/ssGSEA-JPJ3C4JI.js +0 -38
- package/dist/ssGSEA.unit.spec-45F5OCDK.js +0 -88
- package/dist/studyCatalog-O3VGIKDM.js +0 -358
- package/dist/summarizeCnvGeneexp-55DNXHXA.js +0 -163
- package/dist/summarizeGeneexpSurvival-VLO4DC5M.js +0 -110
- package/dist/summarizeMutationCnv-QX7BADYL.js +0 -164
- package/dist/summarizeMutationDiagnosis-MHFM7RX6.js +0 -40
- package/dist/summarizeMutationSurvival-G4KHSUBN.js +0 -99
- package/dist/summary-PJYRCQNY.js +0 -49
- package/dist/summary.integration.spec-KPKROD6L.js +0 -414
- package/dist/summaryInput-TOAL53EP.js +0 -231
- package/dist/sunburst-IGIV2RBE.js +0 -284
- package/dist/survival-DINCIWW7.js +0 -58
- package/dist/survival-RKV5BPDK.js +0 -1239
- package/dist/survival.integration.spec-7ZYBBZKT.js +0 -958
- package/dist/svgraph-EUEZWGVR.js +0 -1387
- package/dist/svmr-B24LODSC.js +0 -3842
- package/dist/table-XSJJ3UZV.js +0 -200
- package/dist/termCollection-IAB3425K.js +0 -38
- package/dist/termCollection-LGEGHZSJ.js +0 -257
- package/dist/termCollection.unit.spec-4TIRHC44.js +0 -304
- package/dist/termCollectionFractionSelection-35YKAOUY.js +0 -47
- package/dist/termCollectionFractionSelection.unit.spec-SUFEIKJZ.js +0 -193
- package/dist/tk-25EJJDRK.js +0 -46
- package/dist/tk-4E3XJ7CO.js +0 -1127
- package/dist/tp.ui-VGA62NFM.js +0 -1459
- package/dist/tvs.density-G56327WY.js +0 -19
- package/dist/tvs.dt-DFW36WKO.js +0 -39
- package/dist/tvs.dtcnv.categorical-ZP33EO3A.js +0 -40
- package/dist/tvs.dtcnv.continuous-FJTMQF4J.js +0 -72
- package/dist/tvs.dtfusion-FTDQWNKM.js +0 -40
- package/dist/tvs.dtitd-W5VEECJ2.js +0 -40
- package/dist/tvs.dtsnvindel-UOXSLCDZ.js +0 -40
- package/dist/tvs.dtsv-HWCPRVBO.js +0 -40
- package/dist/tvs.numeric-7TGKWQYU.js +0 -22
- package/dist/tvs.samplelst-OWD22ITS.js +0 -104
- package/dist/tvs.termCollection-27BWABYK.js +0 -129
- package/dist/violin-2IAVZGFF.js +0 -46
- package/dist/violin.integration.spec-JVODKUCL.js +0 -1425
- package/dist/violin.interactivity-STOCZMVN.js +0 -38
- package/dist/violin.renderer-MKDTJ3EX.js +0 -40
- package/dist/vocabulary-4IHU6DNN.js +0 -41
- /package/dist/{2dmaf-RRV3ORZR.js.map → 2dmaf-6MNHNHWX.js.map} +0 -0
- /package/dist/{AIProjectAdmin-DKLEFCGX.js.map → AIProjectAdmin-W36NGUX2.js.map} +0 -0
- /package/dist/{AppHeader-WQ2F7HZY.js.map → AppHeader-I5CFECIL.js.map} +0 -0
- /package/dist/{BoxPlot-5JQCYENZ.js.map → BoxPlot-4SXDAOBP.js.map} +0 -0
- /package/dist/{CorrelationVolcano-HR6IP2SZ.js.map → CorrelationVolcano-NAWMGG4Q.js.map} +0 -0
- /package/dist/{DE-DAW6ZKM7.js.map → DE-VZMT7KEM.js.map} +0 -0
- /package/dist/{DEinput-XCR4VMR3.js.map → DEinput-TKERM2YD.js.map} +0 -0
- /package/dist/{DifferentialAnalysis-SETJAZEN.js.map → DifferentialAnalysis-Y4SU4BVP.js.map} +0 -0
- /package/dist/{Disco-QEBEVQS2.js.map → Disco-DLK3BYPV.js.map} +0 -0
- /package/dist/{Disco.UI-OYVL7UBI.js.map → Disco.UI-IKGMFG36.js.map} +0 -0
- /package/dist/{DmrPlot-CWBQDZL7.js.map → DmrPlot-JWBZJFS6.js.map} +0 -0
- /package/dist/{GB-5PYCR4SV.js.map → GB-3UZSSIBW.js.map} +0 -0
- /package/dist/{GSEA-6UKMI6GY.js.map → GSEA-YLHBZY55.js.map} +0 -0
- /package/dist/{GeneExpInput-2N62XM7Z.js.map → GeneExpInput-KX5I63YV.js.map} +0 -0
- /package/dist/{Geomap-ANMR32HE.js.map → Geomap-QTUHM4VH.js.map} +0 -0
- /package/dist/{HicApp-WHPUPHEM.js.map → HicApp-M2OCHGRT.js.map} +0 -0
- /package/dist/{IDCViewer-FWXRE4AX.js.map → IDCViewer-SWFBLBZH.js.map} +0 -0
- /package/dist/{NumContEditor.unit.spec-5GTWUJEL.js.map → NumContEditor.unit.spec-P67AFEHM.js.map} +0 -0
- /package/dist/{NumCustomBinEditor-GM2OJMOX.js.map → NumCustomBinEditor-H22J4K47.js.map} +0 -0
- /package/dist/{NumRegularBinEditor-CZYITY5L.js.map → NumRegularBinEditor-IRD27CE2.js.map} +0 -0
- /package/dist/{NumericDensity-JSOFOEH2.js.map → NumericDensity-53KMCTDL.js.map} +0 -0
- /package/dist/{NumericHandler-UZOGKPKB.js.map → NumericHandler-5QFNXVBA.js.map} +0 -0
- /package/dist/{NumericHandler.unit.spec-X2DAED4O.js.map → NumericHandler.unit.spec-OBITSUU3.js.map} +0 -0
- /package/dist/{ProteomeInput-GBVCLNS7.js.map → ProteomeInput-MM373EL3.js.map} +0 -0
- /package/dist/{RunChart2-N4JPWNVV.js.map → RunChart2-2L6T3ITZ.js.map} +0 -0
- /package/dist/{SC-RCZT5BRP.js.map → SC-JKD3Z2X5.js.map} +0 -0
- /package/dist/{Volcano-2BQ6SYHO.js.map → Volcano-STGBS7IJ.js.map} +0 -0
- /package/dist/{WSIViewer-UDA4WIRT.js.map → WSIViewer-LOBVUTOD.js.map} +0 -0
- /package/dist/{WsiSamplesPlot-DYSFMD22.js.map → WsiSamplesPlot-D3L3AILR.js.map} +0 -0
- /package/dist/{adSandbox-5BUDCAER.js.map → adSandbox-XO5HDSFW.js.map} +0 -0
- /package/dist/{animatedBubbleChart-N6MBJ4X3.js.map → animatedBubbleChart-XKW6TCZP.js.map} +0 -0
- /package/dist/{app-O64TGDFH.js.map → app-H7ABTG6X.js.map} +0 -0
- /package/dist/{app-Y2STUISK.js.map → app-HJSPIKRQ.js.map} +0 -0
- /package/dist/{bam-2EOABVGT.js.map → bam-R5QVHWGY.js.map} +0 -0
- /package/dist/{barchart-UHCTYRMJ.js.map → barchart-OGCLBPQ2.js.map} +0 -0
- /package/dist/{barchart.data-LSK2P2PR.js.map → barchart.data-VBSWS5N7.js.map} +0 -0
- /package/dist/{barchart.events-Y4H2GADS.js.map → barchart.events-GZTY4IC3.js.map} +0 -0
- /package/dist/{barchart.integration.spec-BFGZFECA.js.map → barchart.integration.spec-Z6ECNFSM.js.map} +0 -0
- /package/dist/{barchart2-VIZKZRMP.js.map → barchart2-DT42I747.js.map} +0 -0
- /package/dist/{block-BGSSF6XP.js.map → block-UYYJXSCM.js.map} +0 -0
- /package/dist/{block.init-H7RKUIHG.js.map → block.init-43M53IMA.js.map} +0 -0
- /package/dist/{block.mds.expressionrank-MA3HGT7S.js.map → block.mds.expressionrank-YH3IWMKM.js.map} +0 -0
- /package/dist/{block.mds.geneboxplot-CWT5DM5T.js.map → block.mds.geneboxplot-QS2IK37X.js.map} +0 -0
- /package/dist/{block.mds.junction-P4I7O73X.js.map → block.mds.junction-7FF5BFEX.js.map} +0 -0
- /package/dist/{block.mds.svcnv-NSPEY43S.js.map → block.mds.svcnv-MMJYLL2W.js.map} +0 -0
- /package/dist/{block.svg-DP4G3LNQ.js.map → block.svg-SA6DSUM2.js.map} +0 -0
- /package/dist/{block.tk.aicheck-EBLTOWKZ.js.map → block.tk.aicheck-ZX5LZ2QO.js.map} +0 -0
- /package/dist/{block.tk.ase-X7WKQOFS.js.map → block.tk.ase-YXT4BOXK.js.map} +0 -0
- /package/dist/{block.tk.bam-OIP3TS3N.js.map → block.tk.bam-IMLRIOOV.js.map} +0 -0
- /package/dist/{block.tk.bedgraphdot-2DDF55J3.js.map → block.tk.bedgraphdot-UYQLL7HM.js.map} +0 -0
- /package/dist/{block.tk.bigwig.ui-S2SMAEXM.js.map → block.tk.bigwig.ui-WUVLVRSM.js.map} +0 -0
- /package/dist/{block.tk.hicstraw-4OIG4TBZ.js.map → block.tk.hicstraw-N4SJGF7H.js.map} +0 -0
- /package/dist/{block.tk.junction-52OWEQUN.js.map → block.tk.junction-LZWHFKWJ.js.map} +0 -0
- /package/dist/{block.tk.junction.textmatrixui-64YOSZLW.js.map → block.tk.junction.textmatrixui-B626NYPA.js.map} +0 -0
- /package/dist/{block.tk.ld-3AMNHBDY.js.map → block.tk.ld-6VWUMAP6.js.map} +0 -0
- /package/dist/{block.tk.menu-4724DJXL.js.map → block.tk.menu-RRN2UPQX.js.map} +0 -0
- /package/dist/{block.tk.pgv-2SIOPWYI.js.map → block.tk.pgv-GYG3EI6P.js.map} +0 -0
- /package/dist/{brainImaging-D43CQQN6.js.map → brainImaging-VIMLETC5.js.map} +0 -0
- /package/dist/{brainRegions-HJ2VGL3L.js.map → brainRegions-DRYZT5K5.js.map} +0 -0
- /package/dist/{bubbleHeatmap-IL44M4QZ.js.map → bubbleHeatmap-Y4SGMVJY.js.map} +0 -0
- /package/dist/{cellTypeBubbleHeatmap-NQP7RCZO.js.map → cellTypeBubbleHeatmap-QW37ZT5W.js.map} +0 -0
- /package/dist/{chunk-WXPFMVU6.js.map → chunk-2Y5C7GJS.js.map} +0 -0
- /package/dist/{chunk-BNAO6N5X.js.map → chunk-2ZTCRUOL.js.map} +0 -0
- /package/dist/{chunk-D565DNJD.js.map → chunk-3P74DH6P.js.map} +0 -0
- /package/dist/{chunk-5DMVORBB.js.map → chunk-3PPCZPLN.js.map} +0 -0
- /package/dist/{chunk-S5ZCK44Z.js.map → chunk-4H4WJJ2G.js.map} +0 -0
- /package/dist/{chunk-6OUBUUC2.js.map → chunk-4L2OSDQ6.js.map} +0 -0
- /package/dist/{chunk-JVPWIVDT.js.map → chunk-4USLEUNR.js.map} +0 -0
- /package/dist/{chunk-UEGQVQD6.js.map → chunk-5ITKSTJX.js.map} +0 -0
- /package/dist/{chunk-M66VDGSH.js.map → chunk-5VMYXVZG.js.map} +0 -0
- /package/dist/{chunk-UUKSL7QC.js.map → chunk-7ZVFLC2V.js.map} +0 -0
- /package/dist/{chunk-ROMW4AK2.js.map → chunk-C5IAIOCA.js.map} +0 -0
- /package/dist/{chunk-7PIHRWGG.js.map → chunk-CIRCVMWE.js.map} +0 -0
- /package/dist/{chunk-AGLAYNXP.js.map → chunk-CLTRQZGJ.js.map} +0 -0
- /package/dist/{chunk-W7OS7BNM.js.map → chunk-CRH37PEV.js.map} +0 -0
- /package/dist/{chunk-WTTD6DUL.js.map → chunk-DCNDZOI3.js.map} +0 -0
- /package/dist/{chunk-VUPWQCDR.js.map → chunk-DCR4QQ5Y.js.map} +0 -0
- /package/dist/{chunk-TDKMBQSM.js.map → chunk-DKAHHMKN.js.map} +0 -0
- /package/dist/{chunk-WKNI3HRQ.js.map → chunk-E2GHT7RH.js.map} +0 -0
- /package/dist/{chunk-XNWUI5VL.js.map → chunk-EQCVSUAF.js.map} +0 -0
- /package/dist/{chunk-DH3LAQKT.js.map → chunk-ETK36FXN.js.map} +0 -0
- /package/dist/{chunk-QDX2XUNF.js.map → chunk-FCOX5Q4Q.js.map} +0 -0
- /package/dist/{chunk-5ZTVJSYI.js.map → chunk-FVL37XFU.js.map} +0 -0
- /package/dist/{chunk-SNRIVNQ3.js.map → chunk-FXS4I3Z3.js.map} +0 -0
- /package/dist/{chunk-46X6AQ7Z.js.map → chunk-FYAY6D3O.js.map} +0 -0
- /package/dist/{chunk-MJN6RDXB.js.map → chunk-GL44X7JY.js.map} +0 -0
- /package/dist/{chunk-6JYQGZ3Y.js.map → chunk-IQVBMLFI.js.map} +0 -0
- /package/dist/{chunk-RVKADD4L.js.map → chunk-IYT5PNYJ.js.map} +0 -0
- /package/dist/{chunk-5QMBB4SK.js.map → chunk-J6EP7JPJ.js.map} +0 -0
- /package/dist/{chunk-ULESDMUT.js.map → chunk-JLGCQ2F4.js.map} +0 -0
- /package/dist/{chunk-TAM7UCAI.js.map → chunk-JQT67SWE.js.map} +0 -0
- /package/dist/{chunk-KU7YH7MV.js.map → chunk-JQYPRW42.js.map} +0 -0
- /package/dist/{chunk-2GLA2SWU.js.map → chunk-K4IGOJPT.js.map} +0 -0
- /package/dist/{chunk-RJOY6A74.js.map → chunk-KPTPDZX2.js.map} +0 -0
- /package/dist/{chunk-KZILNGAV.js.map → chunk-KTB7KXC2.js.map} +0 -0
- /package/dist/{chunk-STI7BO3P.js.map → chunk-KW7MKBGF.js.map} +0 -0
- /package/dist/{chunk-ZEKIUYN3.js.map → chunk-KZFVYDVK.js.map} +0 -0
- /package/dist/{chunk-W76X6W73.js.map → chunk-M77DCLJX.js.map} +0 -0
- /package/dist/{chunk-U3NTH4CS.js.map → chunk-MGGAWPTR.js.map} +0 -0
- /package/dist/{chunk-4HZN6PMU.js.map → chunk-MUJMZ6W6.js.map} +0 -0
- /package/dist/{chunk-BGTBRAJ6.js.map → chunk-NRP55BOF.js.map} +0 -0
- /package/dist/{chunk-NRYHIWBS.js.map → chunk-O5KFJBU3.js.map} +0 -0
- /package/dist/{chunk-OOWXMY7U.js.map → chunk-QHPN3JJZ.js.map} +0 -0
- /package/dist/{chunk-NUWJ4RN7.js.map → chunk-QSGXZEUU.js.map} +0 -0
- /package/dist/{chunk-GNS6CQMA.js.map → chunk-R3ARQMM4.js.map} +0 -0
- /package/dist/{chunk-4KRGCOTL.js.map → chunk-RIQT2LSR.js.map} +0 -0
- /package/dist/{chunk-J4USU73L.js.map → chunk-RVRRHEUG.js.map} +0 -0
- /package/dist/{chunk-H3N4KYKL.js.map → chunk-SOCGXVIL.js.map} +0 -0
- /package/dist/{chunk-HQUYAZQY.js.map → chunk-SZHFBRRT.js.map} +0 -0
- /package/dist/{chunk-E3VF4RHJ.js.map → chunk-TOYMIFHN.js.map} +0 -0
- /package/dist/{chunk-NIXFCC7X.js.map → chunk-TPVHGI7Q.js.map} +0 -0
- /package/dist/{chunk-26APRXD3.js.map → chunk-TRQUMV4T.js.map} +0 -0
- /package/dist/{chunk-R6NM2HSH.js.map → chunk-UO7MD3XA.js.map} +0 -0
- /package/dist/{chunk-5RVA43MN.js.map → chunk-UONOFG2J.js.map} +0 -0
- /package/dist/{chunk-CY4RQ5L6.js.map → chunk-V2DU2OXH.js.map} +0 -0
- /package/dist/{chunk-MPNEZ6EL.js.map → chunk-WWXXSQ2M.js.map} +0 -0
- /package/dist/{chunk-7JRDJNLR.js.map → chunk-X6VTVZY7.js.map} +0 -0
- /package/dist/{chunk-TQTYW66I.js.map → chunk-X7KRSZQT.js.map} +0 -0
- /package/dist/{chunk-5T3ZDRTS.js.map → chunk-XJBSBIZ4.js.map} +0 -0
- /package/dist/{chunk-BQHPJY2M.js.map → chunk-XRQWZJJ3.js.map} +0 -0
- /package/dist/{chunk-NZRMHM76.js.map → chunk-XZ4M3QAV.js.map} +0 -0
- /package/dist/{chunk-FACITNG5.js.map → chunk-YMP4YKBN.js.map} +0 -0
- /package/dist/{chunk-7PJNKPQB.js.map → chunk-YUURGVV3.js.map} +0 -0
- /package/dist/{chunk-EGPNRSPF.js.map → chunk-Z7VK2AMA.js.map} +0 -0
- /package/dist/{chunk-OTTMHVYH.js.map → chunk-ZFJUVP2N.js.map} +0 -0
- /package/dist/{chunk-H3VWJH4U.js.map → chunk-ZH7JPYQE.js.map} +0 -0
- /package/dist/{chunk-NODQZTWK.js.map → chunk-ZVDOSFWU.js.map} +0 -0
- /package/dist/{cohort-OWLNJZVH.js.map → cohort-CEYVJJ7E.js.map} +0 -0
- /package/dist/{condition-L2IXP6WH.js.map → condition-QSOFP4MY.js.map} +0 -0
- /package/dist/{controls-2S5QVWUC.js.map → controls-QYHARIEY.js.map} +0 -0
- /package/dist/{controls.config-3AJKR4ZZ.js.map → controls.config-3OO3JK6E.js.map} +0 -0
- /package/dist/{correlation-DXTAWSLU.js.map → correlation-TOI3TMYL.js.map} +0 -0
- /package/dist/{cuminc-WQB6FHVS.js.map → cuminc-L7OJTYXC.js.map} +0 -0
- /package/dist/{cuminc.integration.spec-WAYRLHUH.js.map → cuminc.integration.spec-LSWV3KOF.js.map} +0 -0
- /package/dist/{customdata.inputui-7WH2NJGB.js.map → customdata.inputui-VMB3HSSC.js.map} +0 -0
- /package/dist/{dataDownload-HM4UYOBO.js.map → dataDownload-NPSWNOAG.js.map} +0 -0
- /package/dist/{dataDownload.integration.spec-F5CO4BWA.js.map → dataDownload.integration.spec-J6FRFLBK.js.map} +0 -0
- /package/dist/{databrowser.ui-E2YOG3L4.js.map → databrowser.ui-GVYWG6YI.js.map} +0 -0
- /package/dist/{dictionary-EEPTFDYD.js.map → dictionary-GD67R72W.js.map} +0 -0
- /package/dist/{dnaMethylation-N3WNK6XA.js.map → dnaMethylation-S7OSGLAF.js.map} +0 -0
- /package/dist/{dnaMethylation.integration.spec-AIYRTFMR.js.map → dnaMethylation.integration.spec-ETMMJNDE.js.map} +0 -0
- /package/dist/{dofetch-YKYPEJTQ.js.map → dofetch-7GURQS65.js.map} +0 -0
- /package/dist/{e2pca-JEZIGVB2.js.map → e2pca-ZIIPBJFN.js.map} +0 -0
- /package/dist/{ep-5FMH2MLV.js.map → ep-A2HAL5WA.js.map} +0 -0
- /package/dist/{expclust.gdc.spec-FR26VSUA.js.map → expclust.gdc.spec-ZSILLYNI.js.map} +0 -0
- /package/dist/{facet-5YYY3MUN.js.map → facet-74LKIPTA.js.map} +0 -0
- /package/dist/{gb-WGEVO7L2.js.map → gb-C3MPQXKN.js.map} +0 -0
- /package/dist/{geneExpClustering-DHE6XJHV.js.map → geneExpClustering-HYCFUUTU.js.map} +0 -0
- /package/dist/{geneExpression-5NWQXMJ3.js.map → geneExpression-GATKMJJ5.js.map} +0 -0
- /package/dist/{geneExpression-VWUMM2LU.js.map → geneExpression-JXSAP2H7.js.map} +0 -0
- /package/dist/{geneExpression.unit.spec-HBU3WTZ4.js.map → geneExpression.unit.spec-CODZYFHZ.js.map} +0 -0
- /package/dist/{geneORA-3VWFWDYI.js.map → geneORA-LJRIR4VV.js.map} +0 -0
- /package/dist/{geneRanking-PKDVD5OD.js.map → geneRanking-TWLBKQZG.js.map} +0 -0
- /package/dist/{geneVariant-IFIJQXH4.js.map → geneVariant-35RQHTCK.js.map} +0 -0
- /package/dist/{geneVariant-WZSOG4GI.js.map → geneVariant-TMJJIMUF.js.map} +0 -0
- /package/dist/{geneVariant.integration.spec-6KQMWVHR.js.map → geneVariant.integration.spec-FIQ7IBSD.js.map} +0 -0
- /package/dist/{genefusion.ui-C4NTALL3.js.map → genefusion.ui-SOBESSNO.js.map} +0 -0
- /package/dist/{geneset-RJAULSKC.js.map → geneset-JXEJFEK2.js.map} +0 -0
- /package/dist/{genomeBrowser.spec-42OTTMGO.js.map → genomeBrowser.spec-25ZO5S2X.js.map} +0 -0
- /package/dist/{grin2-26O6YDDY.js.map → grin2-CW4RPVPI.js.map} +0 -0
- /package/dist/{grin2-FT5BQJMB.js.map → grin2-EI5BVP4E.js.map} +0 -0
- /package/dist/{hierCluster-GJPPMFNR.js.map → hierCluster-OBBPQH24.js.map} +0 -0
- /package/dist/{hierCluster-HMJF3PBE.js.map → hierCluster-SDH3TJQY.js.map} +0 -0
- /package/dist/{hierCluster.config-TAS7XKTU.js.map → hierCluster.config-DO67TCXI.js.map} +0 -0
- /package/dist/{hierCluster.integration.spec-RLHQKX65.js.map → hierCluster.integration.spec-EB24C4VZ.js.map} +0 -0
- /package/dist/{hierCluster.interactivity-IKTAJ6CU.js.map → hierCluster.interactivity-LGEAFT5T.js.map} +0 -0
- /package/dist/{hierCluster.renderers-I6WFZRNW.js.map → hierCluster.renderers-FXDCU3PN.js.map} +0 -0
- /package/dist/{imagePlot-N4OXNMVA.js.map → imagePlot-LGLFG2QZ.js.map} +0 -0
- /package/dist/{importPlot-VMYXDP66.js.map → importPlot-R2WRZGZU.js.map} +0 -0
- /package/dist/{isoformExpression-2KV64KMN.js.map → isoformExpression-KI3WY5M3.js.map} +0 -0
- /package/dist/{isoformExpression.unit.spec-RG2VWEMG.js.map → isoformExpression.unit.spec-OQRG2DDU.js.map} +0 -0
- /package/dist/{junction-VO4IGMW2.js.map → junction-6SWFPNM5.js.map} +0 -0
- /package/dist/{junction.customTerm-EFMHHVWA.js.map → junction.customTerm-MDBOU6I7.js.map} +0 -0
- /package/dist/{junction.unit.spec-NB24MR2B.js.map → junction.unit.spec-5TZFITSU.js.map} +0 -0
- /package/dist/{launch.adhoc-R3MO3VXK.js.map → launch.adhoc-HCX2RQLB.js.map} +0 -0
- /package/dist/{leftlabel.sample-SI6KMULD.js.map → leftlabel.sample-OI6XCXTQ.js.map} +0 -0
- /package/dist/{lollipop-XIVE4ANX.js.map → lollipop-SOSOYHYL.js.map} +0 -0
- /package/dist/{maf-WRHD4OJF.js.map → maf-73RLOEVN.js.map} +0 -0
- /package/dist/{maftimeline-IE6YKV7Y.js.map → maftimeline-UOMLYUNI.js.map} +0 -0
- /package/dist/{matrix-ALBCAZP5.js.map → matrix-5QWDN6SI.js.map} +0 -0
- /package/dist/{matrix-W72XRUZD.js.map → matrix-SKPVVDVR.js.map} +0 -0
- /package/dist/{matrix.cells-DEEUWC74.js.map → matrix.cells-CFSI2NWU.js.map} +0 -0
- /package/dist/{matrix.config-JYXQOXDT.js.map → matrix.config-HE64MAL4.js.map} +0 -0
- /package/dist/{matrix.data-ENXNM6RP.js.map → matrix.data-HTUZXQAM.js.map} +0 -0
- /package/dist/{matrix.groups-EXSNNESB.js.map → matrix.groups-ZFKWVNMX.js.map} +0 -0
- /package/dist/{matrix.integration.spec-BW6U6PIW.js.map → matrix.integration.spec-YKJ4LZFY.js.map} +0 -0
- /package/dist/{matrix.interactivity-G6AL566T.js.map → matrix.interactivity-YB5G5W5T.js.map} +0 -0
- /package/dist/{matrix.layout-UBUPIJ3R.js.map → matrix.layout-MFG65V7K.js.map} +0 -0
- /package/dist/{matrix.legend-S3P4F2DG.js.map → matrix.legend-7MIZZJVB.js.map} +0 -0
- /package/dist/{matrix.renderers-IXFGXHJQ.js.map → matrix.renderers-PCZFHDDZ.js.map} +0 -0
- /package/dist/{matrix.serieses-THHXUAPM.js.map → matrix.serieses-7KYX3KAY.js.map} +0 -0
- /package/dist/{matrix.sort-WJV6LIZI.js.map → matrix.sort-CR3J45MQ.js.map} +0 -0
- /package/dist/{matrix.sort.unit.spec-LGMIL2LR.js.map → matrix.sort.unit.spec-GEAM5DSU.js.map} +0 -0
- /package/dist/{matrix.sorterUi-VXVCOKEZ.js.map → matrix.sorterUi-YSKIX6B6.js.map} +0 -0
- /package/dist/{matrix.sorterUi.unit.spec-CWSEJ62U.js.map → matrix.sorterUi.unit.spec-2MW64QS5.js.map} +0 -0
- /package/dist/{mavb-SXGKASQ5.js.map → mavb-YMHJXCGA.js.map} +0 -0
- /package/dist/{mds.fimo-EDOT3TDN.js.map → mds.fimo-PTEDRMLQ.js.map} +0 -0
- /package/dist/{mds.samplescatterplot-IXHNABKB.js.map → mds.samplescatterplot-7R7PLVQJ.js.map} +0 -0
- /package/dist/{mds.survivalplot-KTTMHHII.js.map → mds.survivalplot-F3EENMFQ.js.map} +0 -0
- /package/dist/{numericDictTermCluster-H4JSPW22.js.map → numericDictTermCluster-3HXLMURH.js.map} +0 -0
- /package/dist/{oncomatrix-O4EMNUOT.js.map → oncomatrix-27VVSMZB.js.map} +0 -0
- /package/dist/{oncomatrix.spec-BME6CQWF.js.map → oncomatrix.spec-F43Y7CWN.js.map} +0 -0
- /package/dist/{plot.2dvaf-FDM4KXGT.js.map → plot.2dvaf-MYFQSWIA.js.map} +0 -0
- /package/dist/{plot.app-UNUXG7ND.js.map → plot.app-36QWCKXR.js.map} +0 -0
- /package/dist/{plot.barplot-R333TMG2.js.map → plot.barplot-535EP7XT.js.map} +0 -0
- /package/dist/{plot.boxplot-KQTYGUN3.js.map → plot.boxplot-6IBP7VEB.js.map} +0 -0
- /package/dist/{plot.brainImaging-YBYMHCEG.js.map → plot.brainImaging-M4HPNXZH.js.map} +0 -0
- /package/dist/{plot.disco-CMDKRSOM.js.map → plot.disco-HIT6GR44.js.map} +0 -0
- /package/dist/{plot.dzi-YAZA6RQS.js.map → plot.dzi-W66SBKTH.js.map} +0 -0
- /package/dist/{plot.ssgq-YKCOEXZP.js.map → plot.ssgq-MI2OMCUY.js.map} +0 -0
- /package/dist/{plot.vaf2cov-3TLMTFZS.js.map → plot.vaf2cov-F4CBMLRA.js.map} +0 -0
- /package/dist/{plot.wsi-7ADVYTQS.js.map → plot.wsi-7M5KTNFC.js.map} +0 -0
- /package/dist/{polar2-O5SHVLP4.js.map → polar2-7VSWGT4U.js.map} +0 -0
- /package/dist/{profileForms-RLB6SMPQ.js.map → profileForms-DFPCNJW2.js.map} +0 -0
- /package/dist/{profilePlot-AP52VLLO.js.map → profilePlot-ECTPPVB2.js.map} +0 -0
- /package/dist/{proteinView-S7WDBMQU.js.map → proteinView-6ELOLOIU.js.map} +0 -0
- /package/dist/{proteomeCohortCompare-ERVUM7RO.js.map → proteomeCohortCompare-V2FMWI62.js.map} +0 -0
- /package/dist/{pseudbulk.unit.spec-VSH7IM3R.js.map → pseudbulk.unit.spec-KV6URTXC.js.map} +0 -0
- /package/dist/{pseudobulk-7UKRLKQI.js.map → pseudobulk-6ZRFCE65.js.map} +0 -0
- /package/dist/{qualitative-2D7MC4V5.js.map → qualitative-3B62RUOB.js.map} +0 -0
- /package/dist/{qualitative-2INAKDTJ.js.map → qualitative-GJDQBD7L.js.map} +0 -0
- /package/dist/{radar2-ELVGQFZE.js.map → radar2-4QQER64E.js.map} +0 -0
- /package/dist/{radarFacility2-SDAZHGNG.js.map → radarFacility2-MZKORRDY.js.map} +0 -0
- /package/dist/{regression-CE54AQMY.js.map → regression-GZ2YNX6Y.js.map} +0 -0
- /package/dist/{regression.inputs-SMC5CNPY.js.map → regression.inputs-ZEFDNSVT.js.map} +0 -0
- /package/dist/{regression.inputs.term-XS54IQC2.js.map → regression.inputs.term-O2FQBX7L.js.map} +0 -0
- /package/dist/{regression.inputs.values.table-LNPM3MX5.js.map → regression.inputs.values.table-63BQKSZP.js.map} +0 -0
- /package/dist/{regression.results-25ZRRDEE.js.map → regression.results-5J3QM4RX.js.map} +0 -0
- /package/dist/{regression.spec-EDWHFRPY.js.map → regression.spec-WZAZTDDA.js.map} +0 -0
- /package/dist/{render-SEB6GFXQ.js.map → render-MZTEXVU5.js.map} +0 -0
- /package/dist/{report-U6L3KBYG.js.map → report-M5TYHH2W.js.map} +0 -0
- /package/dist/{sampleView-QAAJ26KT.js.map → sampleView-QYTLYJEW.js.map} +0 -0
- /package/dist/{samplelst-KYRXJSZN.js.map → samplelst-FN3Q7M7A.js.map} +0 -0
- /package/dist/{samplematrix-STLF2QA5.js.map → samplematrix-Z5FVODO7.js.map} +0 -0
- /package/dist/{sc-HL6YSMDX.js.map → sc-4CHP5SYP.js.map} +0 -0
- /package/dist/{selectGenomeWithTklst-4NHQDTE6.js.map → selectGenomeWithTklst-WMAHGT4F.js.map} +0 -0
- /package/dist/{singleCellCellType-3E2IU42J.js.map → singleCellCellType-XPWENB6V.js.map} +0 -0
- /package/dist/{singleCellCellType.unit.spec-MC7ZRSMW.js.map → singleCellCellType.unit.spec-QK56PHKW.js.map} +0 -0
- /package/dist/{singleCellGeneExpression-53UUGYTK.js.map → singleCellGeneExpression-4CEVDVYF.js.map} +0 -0
- /package/dist/{singleCellGeneExpression.unit.spec-QSLTXHFE.js.map → singleCellGeneExpression.unit.spec-ZYRLBVF5.js.map} +0 -0
- /package/dist/{singleCellPlot-JDSARDRV.js.map → singleCellPlot-JS74VUGC.js.map} +0 -0
- /package/dist/{singlecell-IJR7BJYT.js.map → singlecell-5XYOHMWJ.js.map} +0 -0
- /package/dist/{singlecell-OK6GJFWL.js.map → singlecell-OO77XBDD.js.map} +0 -0
- /package/dist/{snp-H4KJEEOE.js.map → snp-X5ZILM5J.js.map} +0 -0
- /package/dist/{snp.unit.spec-2Y4A3XYI.js.map → snp.unit.spec-V23G3JLJ.js.map} +0 -0
- /package/dist/{snplocus-4GG6VTWX.js.map → snplocus-U5UIIUWR.js.map} +0 -0
- /package/dist/{spliceevent.a53ss.diagram-JZNRC5UC.js.map → spliceevent.a53ss.diagram-YDFVSDMT.js.map} +0 -0
- /package/dist/{spliceevent.exonskip.diagram-H54N7ZKY.js.map → spliceevent.exonskip.diagram-VDKN5JBE.js.map} +0 -0
- /package/dist/{spliceevent.noeventdiagram-II753XAK.js.map → spliceevent.noeventdiagram-EFPFRUFI.js.map} +0 -0
- /package/dist/{ssGSEA-JPJ3C4JI.js.map → ssGSEA-LKJW5OQK.js.map} +0 -0
- /package/dist/{ssGSEA.unit.spec-45F5OCDK.js.map → ssGSEA.unit.spec-7WCZVEP2.js.map} +0 -0
- /package/dist/{studyCatalog-O3VGIKDM.js.map → studyCatalog-EU33KE5H.js.map} +0 -0
- /package/dist/{summarizeCnvGeneexp-55DNXHXA.js.map → summarizeCnvGeneexp-QL25OQNB.js.map} +0 -0
- /package/dist/{summarizeGeneexpSurvival-VLO4DC5M.js.map → summarizeGeneexpSurvival-B7HTCH7L.js.map} +0 -0
- /package/dist/{summarizeMutationCnv-QX7BADYL.js.map → summarizeMutationCnv-DFAPX2JE.js.map} +0 -0
- /package/dist/{summarizeMutationDiagnosis-MHFM7RX6.js.map → summarizeMutationDiagnosis-HCSDSVII.js.map} +0 -0
- /package/dist/{summarizeMutationSurvival-G4KHSUBN.js.map → summarizeMutationSurvival-6WEASSA2.js.map} +0 -0
- /package/dist/{summary-PJYRCQNY.js.map → summary-BWYXE77G.js.map} +0 -0
- /package/dist/{summary.integration.spec-KPKROD6L.js.map → summary.integration.spec-AVGSW5MF.js.map} +0 -0
- /package/dist/{summaryInput-TOAL53EP.js.map → summaryInput-MOQ6HUCX.js.map} +0 -0
- /package/dist/{sunburst-IGIV2RBE.js.map → sunburst-EZDHVJCL.js.map} +0 -0
- /package/dist/{survival-RKV5BPDK.js.map → survival-5TFMM7NP.js.map} +0 -0
- /package/dist/{survival-DINCIWW7.js.map → survival-IEVELTC4.js.map} +0 -0
- /package/dist/{survival.integration.spec-7ZYBBZKT.js.map → survival.integration.spec-HHWP3R4H.js.map} +0 -0
- /package/dist/{svgraph-EUEZWGVR.js.map → svgraph-55XRIYJW.js.map} +0 -0
- /package/dist/{svmr-B24LODSC.js.map → svmr-CMEBFSRO.js.map} +0 -0
- /package/dist/{table-XSJJ3UZV.js.map → table-LTWQ3TLQ.js.map} +0 -0
- /package/dist/{termCollection-IAB3425K.js.map → termCollection-CPQXYBFA.js.map} +0 -0
- /package/dist/{termCollection-LGEGHZSJ.js.map → termCollection-ZWOH273K.js.map} +0 -0
- /package/dist/{termCollection.unit.spec-4TIRHC44.js.map → termCollection.unit.spec-RK7VATLU.js.map} +0 -0
- /package/dist/{termCollectionFractionSelection-35YKAOUY.js.map → termCollectionFractionSelection-Z4ZRW63R.js.map} +0 -0
- /package/dist/{termCollectionFractionSelection.unit.spec-SUFEIKJZ.js.map → termCollectionFractionSelection.unit.spec-3CS7DPNU.js.map} +0 -0
- /package/dist/{tk-25EJJDRK.js.map → tk-4NNTWWLK.js.map} +0 -0
- /package/dist/{tk-4E3XJ7CO.js.map → tk-RHWJJXH2.js.map} +0 -0
- /package/dist/{tp.ui-VGA62NFM.js.map → tp.ui-DPN5UN6U.js.map} +0 -0
- /package/dist/{tvs.density-G56327WY.js.map → tvs.density-LMRZZO4D.js.map} +0 -0
- /package/dist/{tvs.dt-DFW36WKO.js.map → tvs.dt-ARPDFRVM.js.map} +0 -0
- /package/dist/{tvs.dtcnv.categorical-ZP33EO3A.js.map → tvs.dtcnv.categorical-POS6WQK6.js.map} +0 -0
- /package/dist/{tvs.dtcnv.continuous-FJTMQF4J.js.map → tvs.dtcnv.continuous-5OETJ7JU.js.map} +0 -0
- /package/dist/{tvs.dtfusion-FTDQWNKM.js.map → tvs.dtfusion-ERYVI3DW.js.map} +0 -0
- /package/dist/{tvs.dtitd-W5VEECJ2.js.map → tvs.dtitd-KTZZYEWU.js.map} +0 -0
- /package/dist/{tvs.dtsnvindel-UOXSLCDZ.js.map → tvs.dtsnvindel-TGUAX3RN.js.map} +0 -0
- /package/dist/{tvs.dtsv-HWCPRVBO.js.map → tvs.dtsv-AM63OIL6.js.map} +0 -0
- /package/dist/{tvs.numeric-7TGKWQYU.js.map → tvs.numeric-MQPO5XUQ.js.map} +0 -0
- /package/dist/{tvs.samplelst-OWD22ITS.js.map → tvs.samplelst-VW2NOQ2C.js.map} +0 -0
- /package/dist/{tvs.termCollection-27BWABYK.js.map → tvs.termCollection-O4ZSWJFA.js.map} +0 -0
- /package/dist/{violin-2IAVZGFF.js.map → violin-ZQ3DEYGR.js.map} +0 -0
- /package/dist/{violin.integration.spec-JVODKUCL.js.map → violin.integration.spec-PVEF77HB.js.map} +0 -0
- /package/dist/{violin.interactivity-STOCZMVN.js.map → violin.interactivity-FYU4TCFO.js.map} +0 -0
- /package/dist/{violin.renderer-MKDTJ3EX.js.map → violin.renderer-XAERGBMV.js.map} +0 -0
- /package/dist/{vocabulary-4IHU6DNN.js.map → vocabulary-ECJX27W2.js.map} +0 -0
|
@@ -0,0 +1,1710 @@
|
|
|
1
|
+
import {
|
|
2
|
+
recoverInit
|
|
3
|
+
} from "./chunk-4KY4XKJV.js";
|
|
4
|
+
import {
|
|
5
|
+
parentCorsMessage
|
|
6
|
+
} from "./chunk-PRZWSBMA.js";
|
|
7
|
+
import {
|
|
8
|
+
chartsInit,
|
|
9
|
+
fillTermWrapper,
|
|
10
|
+
filterRxCompInit,
|
|
11
|
+
first_genetrack_tolist,
|
|
12
|
+
getDNAMethUnit,
|
|
13
|
+
getFilterItemByTag,
|
|
14
|
+
getSampleFilter,
|
|
15
|
+
groupsInit,
|
|
16
|
+
keyupEnter,
|
|
17
|
+
renderTable,
|
|
18
|
+
sayerror,
|
|
19
|
+
to_textfile
|
|
20
|
+
} from "./chunk-K6OVOHIZ.js";
|
|
21
|
+
import {
|
|
22
|
+
importPlot
|
|
23
|
+
} from "./chunk-HQAJVJCQ.js";
|
|
24
|
+
import {
|
|
25
|
+
Menu
|
|
26
|
+
} from "./chunk-HYOEWQ5P.js";
|
|
27
|
+
import {
|
|
28
|
+
icons
|
|
29
|
+
} from "./chunk-IIT367QZ.js";
|
|
30
|
+
import {
|
|
31
|
+
dofetch3
|
|
32
|
+
} from "./chunk-4USLEUNR.js";
|
|
33
|
+
import {
|
|
34
|
+
getCompInit,
|
|
35
|
+
multiInit
|
|
36
|
+
} from "./chunk-M3J4MINX.js";
|
|
37
|
+
import {
|
|
38
|
+
DNA_METHYLATION,
|
|
39
|
+
dtcnv,
|
|
40
|
+
dtfusionrna,
|
|
41
|
+
dtsnvindel,
|
|
42
|
+
dtsv
|
|
43
|
+
} from "./chunk-GEQUQ3GG.js";
|
|
44
|
+
import {
|
|
45
|
+
select_default
|
|
46
|
+
} from "./chunk-I6Y4O3RR.js";
|
|
47
|
+
|
|
48
|
+
// mass/sessionBtn.js
|
|
49
|
+
var MassSessionBtn = class _MassSessionBtn {
|
|
50
|
+
static type = "sessionBtn";
|
|
51
|
+
constructor() {
|
|
52
|
+
this.type = _MassSessionBtn.type;
|
|
53
|
+
this.route = "termdb";
|
|
54
|
+
this.embedderOrigin = window.location.origin;
|
|
55
|
+
this.hostURL = sessionStorage.getItem("hostURL") || this.embedderOrigin;
|
|
56
|
+
}
|
|
57
|
+
async init(appState) {
|
|
58
|
+
const tip = new Menu({ padding: "0px" });
|
|
59
|
+
const copytip = new Menu({ padding: "5px" });
|
|
60
|
+
this.dom = {
|
|
61
|
+
button: this.opts.button,
|
|
62
|
+
tip,
|
|
63
|
+
copytip
|
|
64
|
+
};
|
|
65
|
+
this.dom.button.on("click", (event2) => {
|
|
66
|
+
event2.stopPropagation();
|
|
67
|
+
this.dom.tip.clear();
|
|
68
|
+
this.showMenu();
|
|
69
|
+
});
|
|
70
|
+
this.dslabel = appState.vocab.dslabel;
|
|
71
|
+
this.savedSessions = JSON.parse(localStorage.getItem("savedMassSessions") || `{}`);
|
|
72
|
+
this.requiredAuth = appState.termdbConfig?.requiredAuth?.find((a) => a.route == this.route && a.type == "jwt");
|
|
73
|
+
}
|
|
74
|
+
async showMenu() {
|
|
75
|
+
this.dom.tip.clear().d.style("padding", 0);
|
|
76
|
+
this.dom.tip.d.attr("id", "sjpp-session-menu");
|
|
77
|
+
const gt = `<span style='margin-left: 24px; float: right'>></span>`;
|
|
78
|
+
const options = [
|
|
79
|
+
{ label: `Open`, title: "Recover a saved session", callback: this.open },
|
|
80
|
+
{ label: `Save`, title: "Save the current view", callback: this.save },
|
|
81
|
+
{ label: `Share`, title: "Share the current view", callback: this.getSessionUrl }
|
|
82
|
+
];
|
|
83
|
+
if (!this.serverCachedSessions) await this.setServerCachedSessions();
|
|
84
|
+
if (Object.keys(this.savedSessions).length || Object.keys(this.serverCachedSessions).length) {
|
|
85
|
+
options.push({ label: `Delete`, title: "Delete a saved session", callback: this.delete });
|
|
86
|
+
}
|
|
87
|
+
this.dom.tip.clear().d.selectAll(".sja_menuoption sja_sharp_border").data(options).enter().append("div").attr("class", "sja_menuoption sja_sharp_border").attr("data-testid", (d) => `sjpp-session-btn-${d.label.toLowerCase().replace(/\s/g, "-")}`).attr("aria-label", (d) => d.title).html((d) => d.label).on("click", (event2, d) => {
|
|
88
|
+
this.dom.tip.clear().d.style("padding", "10px");
|
|
89
|
+
event2.stopPropagation();
|
|
90
|
+
this.showBackBtn();
|
|
91
|
+
d.callback.call(this);
|
|
92
|
+
});
|
|
93
|
+
this.dom.tip.showunder(this.dom.button.node());
|
|
94
|
+
}
|
|
95
|
+
async open() {
|
|
96
|
+
const radioName = `sjpp-session-open-radio-` + Math.random().toString().slice(-6);
|
|
97
|
+
this.dom.tip.d.append("div").style("display", "none").style("padding", "3px 9px").html(`
|
|
98
|
+
<b>Open in</b>
|
|
99
|
+
<label>
|
|
100
|
+
<input type='radio' name='${radioName}' value='new' style='margin-right: 0; vertical-align: bottom'/>
|
|
101
|
+
<span>a new tab</span>
|
|
102
|
+
</label>
|
|
103
|
+
<label style='margin-left: 5px'>
|
|
104
|
+
<input type='radio' name='${radioName}' value='current' checked=checked style='margin-right: 0; vertical-align: bottom'/>
|
|
105
|
+
<span>current tab</span>
|
|
106
|
+
</label>
|
|
107
|
+
`);
|
|
108
|
+
const t = await this.listSessions({
|
|
109
|
+
trClickHandler: async (event2, d) => {
|
|
110
|
+
const { loc, id: id2 } = d;
|
|
111
|
+
if (!id2) return;
|
|
112
|
+
if (loc.includes("browser")) {
|
|
113
|
+
this.sessionName = id2;
|
|
114
|
+
const state = structuredClone(this.savedSessions[id2]);
|
|
115
|
+
await preprocessState(state, this.app);
|
|
116
|
+
const targetWindow = this.dom.tip.d.node().querySelector(`[name="${radioName}"]:checked`).value;
|
|
117
|
+
if (targetWindow == "current") {
|
|
118
|
+
this.app.dispatch({ type: "app_refresh", state });
|
|
119
|
+
} else if (window.location.origin == this.hostURL) {
|
|
120
|
+
window.open(`/?mass-session-id=${id2}&src=browser`);
|
|
121
|
+
} else {
|
|
122
|
+
if (state.embedder) parentCorsMessage({ state });
|
|
123
|
+
else {
|
|
124
|
+
const { protocol, host, search, origin, href } = window.location;
|
|
125
|
+
const embedder = { protocol, host, search, origin, href };
|
|
126
|
+
parentCorsMessage({ state: Object.assign({ embedder }, state) });
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
this.dom.tip.hide();
|
|
130
|
+
} else if (loc == "server") {
|
|
131
|
+
const headers = await this.app.vocabApi.mayGetAuthHeaders(this.route);
|
|
132
|
+
const body = { id: id2, route: this.route, dslabel: this.dslabel, embedder: window.location.hostname };
|
|
133
|
+
const res = await dofetch3(`/massSession?`, { headers, body });
|
|
134
|
+
if (!res.state) throw res.error || "unable to get the cached session from the server";
|
|
135
|
+
await preprocessState(res.state, this.app);
|
|
136
|
+
this.savedSessions[id2] = res.state;
|
|
137
|
+
const targetWindow = this.dom.tip.d.node().querySelector(`[name="${radioName}"]:checked`).value;
|
|
138
|
+
if (targetWindow == "current") {
|
|
139
|
+
this.app.dispatch({ type: "app_refresh", state: res.state });
|
|
140
|
+
} else if (window.location.origin == this.hostURL) {
|
|
141
|
+
window.open(`/?mass-session-id=${id2}&src=cred&dslabel=${this.dslabel}&route=${this.route}`);
|
|
142
|
+
} else {
|
|
143
|
+
parentCorsMessage(res);
|
|
144
|
+
}
|
|
145
|
+
this.dom.tip.hide();
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
});
|
|
149
|
+
t.headtr.select("th").html("Open from");
|
|
150
|
+
const tr1 = t.tbody.insert("tr", "tr");
|
|
151
|
+
tr1.append("td").style("text-align", "center").style("padding", "3px 9px").html("Local file");
|
|
152
|
+
const label = tr1.append("td").style("text-align", "left").append("label");
|
|
153
|
+
label.append("span").style("padding", "3px 9px").style("text-decoration", "underline").style("cursor", "pointer").html("Choose File");
|
|
154
|
+
label.append("input").attr("type", "file").attr("placeholder", "file name").style("opacity", 0).style("width", "0.1px").style("height", "0.1px").style("position", "absolute").on("change", async () => {
|
|
155
|
+
const file = event.target.files.item(0);
|
|
156
|
+
const json = await file.text();
|
|
157
|
+
let sessionName = file.name;
|
|
158
|
+
if (this.savedSessions[sessionName]) {
|
|
159
|
+
sessionName = prompt(
|
|
160
|
+
`Leave as-is to overwrite a session with the same name, or enter a different session name.`,
|
|
161
|
+
sessionName
|
|
162
|
+
);
|
|
163
|
+
}
|
|
164
|
+
this.sessionName = sessionName;
|
|
165
|
+
const state = JSON.parse(json);
|
|
166
|
+
await preprocessState(state, this.app);
|
|
167
|
+
this.savedSessions[sessionName] = state;
|
|
168
|
+
localStorage.setItem("savedMassSessions", JSON.stringify(this.savedSessions));
|
|
169
|
+
const targetWindow = this.dom.tip.d.node().querySelector(`[name="${radioName}"]:checked`).value;
|
|
170
|
+
if (targetWindow == "current") {
|
|
171
|
+
this.app.dispatch({ type: "app_refresh", state });
|
|
172
|
+
} else if (window.location.origin == this.hostURL) {
|
|
173
|
+
window.open(`/?mass-session-id=${sessionName}&src=browser`);
|
|
174
|
+
} else {
|
|
175
|
+
if (state.embedder) parentCorsMessage({ state });
|
|
176
|
+
else {
|
|
177
|
+
const { protocol, host, search, origin, href } = window.location;
|
|
178
|
+
const embedder = { protocol, host, search, origin, href };
|
|
179
|
+
parentCorsMessage({ state: Object.assign({ embedder }, state) });
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
this.dom.tip.hide();
|
|
183
|
+
});
|
|
184
|
+
}
|
|
185
|
+
async listSessions(opts = {}) {
|
|
186
|
+
const table = this.dom.tip.d.append("table").attr("class", "sjpp-controls-table");
|
|
187
|
+
const headtr = table.append("thead").append("tr");
|
|
188
|
+
headtr.selectAll("th").data(["Cache Location", "Session ID"]).enter().append("th").style("text-align", (d, i) => i === 0 ? "center" : "left").style("padding", "3px 9px").html((d) => d);
|
|
189
|
+
const sessionIds = Object.keys(this.savedSessions).map((id2) => ({ loc: "browser", id: id2 }));
|
|
190
|
+
if (!this.serverCachedSessions) await this.setServerCachedSessions();
|
|
191
|
+
sessionIds.push(...this.serverCachedSessions.map((id2) => ({ loc: "server", id: id2 })));
|
|
192
|
+
const tbody = table.append("tbody");
|
|
193
|
+
const trs = tbody.selectAll("tr").data(sessionIds).enter().append("tr").on("click", opts.trClickHandler || null);
|
|
194
|
+
trs.selectAll("td").data((d) => [d, d]).enter().append("td").style("text-align", (d, i) => i === 0 ? "center" : "left").style("padding", "3px 9px").style("cursor", "pointer").html((d, i) => i === 0 ? d.loc : d.id);
|
|
195
|
+
if (!this.serverCachedSessions.length && this.requiredAuth && !this.app.vocabApi.hasVerifiedToken()) {
|
|
196
|
+
const tbody2 = table.append("tbody").append("tr").selectAll("td").data(["server", "requires sign-in"]).enter().append("td").style("text-align", (d, i) => i === 0 ? "center" : "left").style("padding", "3px 9px").html((d) => d);
|
|
197
|
+
}
|
|
198
|
+
return { table, headtr, tbody, trs };
|
|
199
|
+
}
|
|
200
|
+
async setServerCachedSessions() {
|
|
201
|
+
const state = this.app.getState();
|
|
202
|
+
this.requiredAuth = state.termdbConfig?.requiredAuth?.find((a) => a.route == this.route && a.type == "jwt");
|
|
203
|
+
if (!this.requiredAuth) {
|
|
204
|
+
this.serverCachedSessions = [];
|
|
205
|
+
return;
|
|
206
|
+
}
|
|
207
|
+
const headers = this.app.vocabApi.mayGetAuthHeaders(this.route);
|
|
208
|
+
const body = { route: this.route, dslabel: this.dslabel, embedder: window.location.hostname };
|
|
209
|
+
const res = await dofetch3("/sessionIds", { headers, body });
|
|
210
|
+
this.serverCachedSessions = res.sessionIds || [];
|
|
211
|
+
}
|
|
212
|
+
async save(d) {
|
|
213
|
+
const div = this.dom.tip.d;
|
|
214
|
+
const inputDiv = div.append("div");
|
|
215
|
+
inputDiv.append("span").html("Save as");
|
|
216
|
+
const sessionNames = Object.keys(this.savedSessions);
|
|
217
|
+
if (!this.serverCachedSessions) await this.setServerCachedSessions();
|
|
218
|
+
sessionNames.push(...this.serverCachedSessions.filter((d2) => !sessionNames.includes(d2)));
|
|
219
|
+
const placeholder = this.sessionName || "unnamed-session";
|
|
220
|
+
const input = inputDiv.append("input").attr("type", "text").attr("placeholder", placeholder).style("width", "220px").on("input", () => {
|
|
221
|
+
searchResultDiv.selectAll("*").remove();
|
|
222
|
+
const value = input.property("value");
|
|
223
|
+
const exactMatch = sessionNames.filter((s) => s === value);
|
|
224
|
+
const startsWith = sessionNames.filter((s) => s.startsWith(value));
|
|
225
|
+
const includes = sessionNames.filter((s) => s.includes(value) && s !== value && !startsWith.includes(s));
|
|
226
|
+
searchResultDiv.selectAll("div").data([...exactMatch, ...startsWith, ...includes]).enter().append("div").attr("class", "sja_menuoption").attr("data-testid", `sjpp-save-session-option`).html((d2) => d2).on("click", (event2, d2) => {
|
|
227
|
+
input.property("value", d2);
|
|
228
|
+
searchResultDiv.selectAll("*").remove();
|
|
229
|
+
});
|
|
230
|
+
});
|
|
231
|
+
const searchResultDiv = div.append("div");
|
|
232
|
+
const submitDiv = div.append("div");
|
|
233
|
+
submitDiv.append("span").html("Save to ");
|
|
234
|
+
submitDiv.append("button").style("min-width", "80px").html("Browser").attr(
|
|
235
|
+
"title",
|
|
236
|
+
`Save the session in your current browser's cache. The session can be easily recovered, but not shared among your other devices`
|
|
237
|
+
).on("click", () => {
|
|
238
|
+
this.sessionName = input.property("value") || placeholder;
|
|
239
|
+
this.savedSessions[this.sessionName] = this.app.getState();
|
|
240
|
+
localStorage.setItem("savedMassSessions", JSON.stringify(this.savedSessions));
|
|
241
|
+
this.confirmAction(`Cached '<b>${this.sessionName}</b>' in browser`);
|
|
242
|
+
});
|
|
243
|
+
submitDiv.append("button").style("min-width", "80px").html("File").attr(
|
|
244
|
+
"title",
|
|
245
|
+
`Save the session into a local file. The session can be easily recoved using the 'Open from local file' option.`
|
|
246
|
+
).on("click", () => {
|
|
247
|
+
const name = input.property("value") || placeholder;
|
|
248
|
+
this.savedSessions[name] = this.app.getState();
|
|
249
|
+
this.download(name);
|
|
250
|
+
this.confirmAction(`Downloaded '<b>${name}</b>'`);
|
|
251
|
+
});
|
|
252
|
+
if (this.requiredAuth) {
|
|
253
|
+
const requiresSignIn = this.app.vocabApi.hasVerifiedToken() ? "" : "Requires sign-in. ";
|
|
254
|
+
submitDiv.append("button").style("min-width", "80px").html("Server").attr(
|
|
255
|
+
"title",
|
|
256
|
+
`${requiresSignIn}Save the session into a remote server. The session can be easily shared across your different devices and recovered using the 'Open from server' option.`
|
|
257
|
+
).property("disabled", !this.app.vocabApi.hasVerifiedToken()).on("click", async () => {
|
|
258
|
+
if (!this.app.vocabApi.hasVerifiedToken()) {
|
|
259
|
+
alert("Requires sign-in");
|
|
260
|
+
return;
|
|
261
|
+
}
|
|
262
|
+
const name = input.property("value") || placeholder;
|
|
263
|
+
this.savedSessions[name] = this.app.getState();
|
|
264
|
+
const res = await this.getSessionUrl(name);
|
|
265
|
+
if (res.id != name) throw `error saving ${name}`;
|
|
266
|
+
this.confirmAction(`Saved '<b>${name}</b>' on the server`);
|
|
267
|
+
});
|
|
268
|
+
}
|
|
269
|
+
}
|
|
270
|
+
download(name = "") {
|
|
271
|
+
const sessionName = name || this.sessionName;
|
|
272
|
+
const ext = sessionName?.endsWith(".txt") ? "" : ".txt";
|
|
273
|
+
const filename = `${sessionName}${ext}`;
|
|
274
|
+
to_textfile(filename, JSON.stringify(this.savedSessions[sessionName]));
|
|
275
|
+
}
|
|
276
|
+
async getSessionUrl(filename = "") {
|
|
277
|
+
const headers = await this.app.vocabApi.mayGetAuthHeaders("termdb");
|
|
278
|
+
const state = structuredClone(this.app.getState());
|
|
279
|
+
const { protocol, host, search, origin, href } = window.location;
|
|
280
|
+
state.embedder = { protocol, host, search, origin, href };
|
|
281
|
+
if (filename) {
|
|
282
|
+
state.__sessionFor__ = {
|
|
283
|
+
route: this.route,
|
|
284
|
+
filename,
|
|
285
|
+
dslabel: this.dslabel,
|
|
286
|
+
embedder: window.location.hostname
|
|
287
|
+
};
|
|
288
|
+
}
|
|
289
|
+
const res = await dofetch3("/massSession", {
|
|
290
|
+
headers,
|
|
291
|
+
method: "POST",
|
|
292
|
+
body: JSON.stringify(state)
|
|
293
|
+
});
|
|
294
|
+
if (filename) {
|
|
295
|
+
return res;
|
|
296
|
+
} else {
|
|
297
|
+
const url = `${this.hostURL}/?mass-session-id=${res.id}&noheader=1`;
|
|
298
|
+
this.dom.tip.showunder(this.dom.button.node());
|
|
299
|
+
const linkDiv = this.dom.tip.d.append("div").style("margin", "10px");
|
|
300
|
+
linkDiv.append("div").style("display", "flex").style("margin-bottom", "12px").html(`Open or copy the session link.`);
|
|
301
|
+
const a = linkDiv.append("a").style("display", "none").attr("href", url).attr("target", "_blank").html(res.id);
|
|
302
|
+
linkDiv.append("button").style("cursor", "pointer").text("Open link").on("click", () => {
|
|
303
|
+
a.node().click();
|
|
304
|
+
});
|
|
305
|
+
linkDiv.append("button").style("cursor", "pointer").style("margin-left", "10px").text("Copy link").on("click", async (event2) => {
|
|
306
|
+
await navigator.clipboard.writeText(url);
|
|
307
|
+
this.dom.copytip.clear().showunder(event2.target);
|
|
308
|
+
this.dom.copytip.d.append("div").html("✓");
|
|
309
|
+
setTimeout(() => {
|
|
310
|
+
this.dom.copytip.hide();
|
|
311
|
+
}, 1e3);
|
|
312
|
+
});
|
|
313
|
+
if (this.hostURL != window.location.origin) {
|
|
314
|
+
a.on("click", (event2) => {
|
|
315
|
+
event2.preventDefault();
|
|
316
|
+
parentCorsMessage({ state }, "noredirect");
|
|
317
|
+
return false;
|
|
318
|
+
});
|
|
319
|
+
}
|
|
320
|
+
linkDiv.append("div").html(`
|
|
321
|
+
<br>
|
|
322
|
+
<div style="max-width: 400px; font-size: 1em; opacity:.6">
|
|
323
|
+
<span>NOTES</span>
|
|
324
|
+
<ul>
|
|
325
|
+
<li>A recovered session may hide data or views to users that are not authorized to access the saved datasets or features.</li>
|
|
326
|
+
<li>This session will be saved for ${this.opts.massSessionDuration} days.</li>
|
|
327
|
+
</ul>
|
|
328
|
+
</div>`);
|
|
329
|
+
setTimeout(() => {
|
|
330
|
+
this.dom.button.property("disabled", false);
|
|
331
|
+
}, 1e3);
|
|
332
|
+
}
|
|
333
|
+
}
|
|
334
|
+
async delete() {
|
|
335
|
+
const t = await this.listSessions({
|
|
336
|
+
trClickHandler: function(event2) {
|
|
337
|
+
const input = this.lastChild.querySelector("input");
|
|
338
|
+
const checked = event2.target == input ? input.checked : !input.checked;
|
|
339
|
+
select_default(this).style("text-decoration", checked ? "line-through" : "");
|
|
340
|
+
if (event2.target != input) input.checked = checked;
|
|
341
|
+
const checkedRows = t.table.node().querySelectorAll("input:checked");
|
|
342
|
+
submitBtn.property("disabled", checkedRows.length ? false : true);
|
|
343
|
+
}
|
|
344
|
+
});
|
|
345
|
+
t.headtr.append("th").html("Delete");
|
|
346
|
+
t.trs.each(function(d) {
|
|
347
|
+
select_default(this).append("td").style("text-align", "center").append("input").attr("type", "checkbox").attr("value", d.id);
|
|
348
|
+
});
|
|
349
|
+
const submitBtn = this.dom.tip.d.append("div").style("text-align", "center").append("button").html("Delete selected sessions").property("disabled", true).on("click", async () => {
|
|
350
|
+
const inputs = t.table.node().querySelectorAll("input");
|
|
351
|
+
const sessionIdsDeletedFromServer = [];
|
|
352
|
+
for (const input of inputs) {
|
|
353
|
+
if (select_default(input).property("checked")) {
|
|
354
|
+
const d = input.parentNode.parentNode.__data__;
|
|
355
|
+
if (d.loc == "browser") {
|
|
356
|
+
delete this.savedSessions[input.value];
|
|
357
|
+
} else if (d.loc == "server") {
|
|
358
|
+
delete this.serverCachedSessions[input.value];
|
|
359
|
+
sessionIdsDeletedFromServer.push(input.value);
|
|
360
|
+
} else throw `unknown cache location=${d.loc}`;
|
|
361
|
+
}
|
|
362
|
+
}
|
|
363
|
+
localStorage.setItem("savedMassSessions", JSON.stringify(this.savedSessions));
|
|
364
|
+
try {
|
|
365
|
+
const headers = await this.app.vocabApi.mayGetAuthHeaders("termdb");
|
|
366
|
+
const body = {
|
|
367
|
+
ids: sessionIdsDeletedFromServer,
|
|
368
|
+
route: this.route,
|
|
369
|
+
dslabel: this.dslabel,
|
|
370
|
+
embedder: window.location.hostname
|
|
371
|
+
};
|
|
372
|
+
const res = dofetch3(`/massSession?`, { method: "DELETE", headers, body });
|
|
373
|
+
} catch (e) {
|
|
374
|
+
throw e;
|
|
375
|
+
}
|
|
376
|
+
this.dom.tip.hide();
|
|
377
|
+
});
|
|
378
|
+
}
|
|
379
|
+
showBackBtn() {
|
|
380
|
+
this.dom.tip.d.append("div").attr("class", "sja_clbtext2").style("margin-bottom", "10px").style("cursor", "pointer").html(`< Session Menu`).on("click", () => this.showMenu());
|
|
381
|
+
}
|
|
382
|
+
confirmAction(html) {
|
|
383
|
+
this.dom.tip.clear().d.append("div").html(html).transition().delay(3e3).duration(1e3).style("opacity", 0);
|
|
384
|
+
setTimeout(() => {
|
|
385
|
+
this.dom.tip.hide();
|
|
386
|
+
}, 3500);
|
|
387
|
+
}
|
|
388
|
+
};
|
|
389
|
+
async function preprocessState(state, app) {
|
|
390
|
+
delete state.termdbConfig;
|
|
391
|
+
if (state.plots) {
|
|
392
|
+
const promises = [];
|
|
393
|
+
for (const plot of state.plots) {
|
|
394
|
+
promises.push(
|
|
395
|
+
(async () => {
|
|
396
|
+
const _ = await importPlot(plot.chartType);
|
|
397
|
+
return await _.getPlotConfig(plot, app);
|
|
398
|
+
})()
|
|
399
|
+
);
|
|
400
|
+
}
|
|
401
|
+
try {
|
|
402
|
+
await Promise.all(promises);
|
|
403
|
+
} catch (e) {
|
|
404
|
+
console.log(e);
|
|
405
|
+
app.printError(e);
|
|
406
|
+
}
|
|
407
|
+
}
|
|
408
|
+
}
|
|
409
|
+
var sessionBtnInit = getCompInit(MassSessionBtn);
|
|
410
|
+
|
|
411
|
+
// mass/about.ts
|
|
412
|
+
var cohortTableActiveColor = "yellow";
|
|
413
|
+
var MassAbout = class _MassAbout {
|
|
414
|
+
constructor(opts) {
|
|
415
|
+
this.initCohort = (appState) => {
|
|
416
|
+
if (this.selectCohort == null) return;
|
|
417
|
+
if (!this.selectCohort.values) return;
|
|
418
|
+
const instanceNum2 = this.instanceNum;
|
|
419
|
+
const activeCohort = appState.activeCohort;
|
|
420
|
+
const app = this.app;
|
|
421
|
+
this.dom.cohortOpts.append("table").attr("data-testid", "sjpp-about-cohort-options-table").selectAll("tr").data(this.selectCohort.values).enter().append("tr").each(function(d, i, nodes) {
|
|
422
|
+
const tr = select_default(nodes[i]);
|
|
423
|
+
const td0 = tr.append("td");
|
|
424
|
+
const radioName = "sja-termdb-cohort-" + instanceNum2;
|
|
425
|
+
const radioId = radioName + "-" + i;
|
|
426
|
+
td0.append("input").style("scale", "1.2").attr("type", "radio").attr("name", radioName).attr("id", radioId).attr("value", i).property("checked", i === activeCohort).style("margin-right", "5px").style("margin-left", "0px").on("click", async (event2) => {
|
|
427
|
+
const state = app.getState();
|
|
428
|
+
const clearOnChange = state.termdbConfig.selectCohort.clearOnChange;
|
|
429
|
+
if (clearOnChange) {
|
|
430
|
+
const subactions = [];
|
|
431
|
+
const toBeCleared = [];
|
|
432
|
+
const plots = state.plots;
|
|
433
|
+
const filter = state.termfilter.filter.lst.find((f) => f.tag == "filterUiRoot")?.lst;
|
|
434
|
+
const groups = state.groups;
|
|
435
|
+
if (clearOnChange.plots && plots?.length) toBeCleared.push("plots");
|
|
436
|
+
for (const plot of plots) {
|
|
437
|
+
subactions.push({
|
|
438
|
+
type: "plot_delete",
|
|
439
|
+
id: plot.id
|
|
440
|
+
});
|
|
441
|
+
}
|
|
442
|
+
if (clearOnChange.filter && filter?.length) toBeCleared.push("filters");
|
|
443
|
+
subactions.push({
|
|
444
|
+
type: "filter_replace",
|
|
445
|
+
filter: {
|
|
446
|
+
type: "tvslst",
|
|
447
|
+
in: true,
|
|
448
|
+
join: "",
|
|
449
|
+
tag: "filterUiRoot",
|
|
450
|
+
lst: []
|
|
451
|
+
}
|
|
452
|
+
});
|
|
453
|
+
if (clearOnChange.groups && groups?.length) {
|
|
454
|
+
toBeCleared.push("groups");
|
|
455
|
+
for (const group of groups) {
|
|
456
|
+
subactions.push({
|
|
457
|
+
type: "delete_group",
|
|
458
|
+
name: group.name
|
|
459
|
+
});
|
|
460
|
+
}
|
|
461
|
+
for (const term of state.customTerms) {
|
|
462
|
+
subactions.push({
|
|
463
|
+
type: "delete_customTerm",
|
|
464
|
+
name: term.name
|
|
465
|
+
});
|
|
466
|
+
}
|
|
467
|
+
}
|
|
468
|
+
subactions.push({ type: "cohort_set", activeCohort: i });
|
|
469
|
+
if (toBeCleared.length) {
|
|
470
|
+
const confirm = window.confirm(
|
|
471
|
+
`Changing the cohort will clear all ${joinByComma(
|
|
472
|
+
toBeCleared
|
|
473
|
+
)}. To proceed, click "OK". To save the session, click "Cancel" and then click the "Session" button at the top of the page.`
|
|
474
|
+
);
|
|
475
|
+
if (!confirm) {
|
|
476
|
+
event2.preventDefault();
|
|
477
|
+
return;
|
|
478
|
+
}
|
|
479
|
+
}
|
|
480
|
+
app.dispatch({
|
|
481
|
+
type: "app_refresh",
|
|
482
|
+
subactions
|
|
483
|
+
});
|
|
484
|
+
} else app.dispatch({ type: "cohort_set", activeCohort: i });
|
|
485
|
+
});
|
|
486
|
+
td0.append("label").style("font-size", "1.4em").attr("for", radioId).attr("colspan", 2).style("cursor", "pointer").html((d2) => d2.label);
|
|
487
|
+
tr.selectAll("td").style("max-width", "600px").style("padding-bottom", "10px").style("padding-right", "20px").style("vertical-align", "top");
|
|
488
|
+
});
|
|
489
|
+
this.dom.cohortTable = this.subheader.append("div").attr("data-testid", "sjpp-about-cohort-table").style("margin-left", "12px");
|
|
490
|
+
if (this.selectCohort.asterisk) {
|
|
491
|
+
this.dom.cohortAsterisk = this.subheader.append("div").attr("data-testid", "sjpp-about-cohort-asterisk").style("margin", "10px").style("font-size", ".8em").text(this.selectCohort.asterisk);
|
|
492
|
+
}
|
|
493
|
+
};
|
|
494
|
+
this.renderCohortsTable = async () => {
|
|
495
|
+
if (!this.dom.cohortTable) return;
|
|
496
|
+
this.dom.cohortTable.selectAll("*").remove();
|
|
497
|
+
const columns = [{ label: "Feature" }];
|
|
498
|
+
const rows = [];
|
|
499
|
+
const result = await this.app.vocabApi.getCohortsData();
|
|
500
|
+
if ("error" in result) throw result.error;
|
|
501
|
+
if (this.selectCohort?.values) {
|
|
502
|
+
const values = this.selectCohort.values;
|
|
503
|
+
result.cohorts.sort((a, b) => {
|
|
504
|
+
const aIndex = values.findIndex((v) => v.keys.toString() == a.cohort);
|
|
505
|
+
const bIndex = values.findIndex((v) => v.keys.toString() == b.cohort);
|
|
506
|
+
if (aIndex < bIndex) return -1;
|
|
507
|
+
if (aIndex > bIndex) return 1;
|
|
508
|
+
return 0;
|
|
509
|
+
});
|
|
510
|
+
}
|
|
511
|
+
if (!result.cfeatures.length) return;
|
|
512
|
+
for (const feature of result.features) rows.push([{ value: feature.name }]);
|
|
513
|
+
for (const cohort of result.cohorts) {
|
|
514
|
+
if (cohort.subcohorts?.length) continue;
|
|
515
|
+
columns.push({ label: cohort.name });
|
|
516
|
+
for (const [i, feature] of result.features.entries()) {
|
|
517
|
+
const cf = result.cfeatures.find((cf2) => cf2.idfeature === feature.idfeature && cf2.cohort === cohort.cohort);
|
|
518
|
+
if (cf) rows[i].push({ value: cf.value });
|
|
519
|
+
}
|
|
520
|
+
}
|
|
521
|
+
renderTable({
|
|
522
|
+
rows,
|
|
523
|
+
columns,
|
|
524
|
+
div: this.dom.cohortTable,
|
|
525
|
+
showLines: false,
|
|
526
|
+
maxHeight: "60vh",
|
|
527
|
+
header: { style: { "font-size": "1.2em", "font-weight": "bold" } }
|
|
528
|
+
});
|
|
529
|
+
this.dom.cohortTable.select("table").style("border-collapse", "collapse");
|
|
530
|
+
this.dom.cohortTable.selectAll(`tbody > tr > td`).style("background-color", "transparent").style("padding", "6px");
|
|
531
|
+
const state = this.app.getState();
|
|
532
|
+
const selectCohort = state.termdbConfig.selectCohort;
|
|
533
|
+
const activeCohort = state.activeCohort;
|
|
534
|
+
const keys = selectCohort.values[activeCohort].keys;
|
|
535
|
+
let selector = `tbody > tr > td:nth-child(${activeCohort + 2})`;
|
|
536
|
+
const combined = keys.length > 1;
|
|
537
|
+
if (combined) {
|
|
538
|
+
selector = "";
|
|
539
|
+
for (const key of keys) {
|
|
540
|
+
const i = result.cohorts.map((c) => c.cohort).indexOf(key);
|
|
541
|
+
if (selector !== "") selector += ",";
|
|
542
|
+
selector += `tbody > tr > td:nth-child(${i + 2})`;
|
|
543
|
+
}
|
|
544
|
+
}
|
|
545
|
+
const activeColumns = this.dom.cohortTable.selectAll(selector);
|
|
546
|
+
const color = state.termdbConfig.massNav?.activeColor || cohortTableActiveColor;
|
|
547
|
+
activeColumns.style("background-color", color);
|
|
548
|
+
};
|
|
549
|
+
this.initCustomHtml = () => {
|
|
550
|
+
if (this.selectCohort != null) return;
|
|
551
|
+
if (!this.aboutOverrides?.html) return;
|
|
552
|
+
this.subheader.append("div").attr("data-testid", "sjpp-custom-about-content").style("padding", "10px").html(this.aboutOverrides.html);
|
|
553
|
+
};
|
|
554
|
+
// render the world map (from termdbConfig.geomap) directly on the landing tab when the dataset opts in.
|
|
555
|
+
// the renderer (and its ~170KB world.json basemap) is dynamically imported so it never loads for
|
|
556
|
+
// datasets that don't enable the map.
|
|
557
|
+
this.initGeomap = async (appState) => {
|
|
558
|
+
if (!this.aboutOverrides?.showGeomap) return;
|
|
559
|
+
const geomap = appState.termdbConfig?.geomap;
|
|
560
|
+
if (!geomap?.sites?.length) return;
|
|
561
|
+
const holder = this.subheader.append("div").attr("data-testid", "sjpp-about-geomap").style("padding", "10px");
|
|
562
|
+
const { renderGeomap } = await import("./render-MZTEXVU5.js");
|
|
563
|
+
renderGeomap(holder, geomap);
|
|
564
|
+
};
|
|
565
|
+
this.initActiveItems = () => {
|
|
566
|
+
if (!this.aboutOverrides?.activeItems) return;
|
|
567
|
+
if (this.aboutOverrides.activeItems.layout == "cards") {
|
|
568
|
+
this.initActiveItemCards();
|
|
569
|
+
return;
|
|
570
|
+
}
|
|
571
|
+
const div = this.subheader.append("div").attr("data-testid", "sjpp-custom-about-activeItems").style("padding", "0px 0px 10px 20px");
|
|
572
|
+
for (const item of this.aboutOverrides.activeItems.items) {
|
|
573
|
+
const btn = div.append("div").style("display", "inline-block").style("margin", "5px").attr("class", "sja_menuoption").attr("data-testid", "sjpp-custom-active-item-btn").html(item.title);
|
|
574
|
+
this.makeActivatable(btn, () => this.launchActiveItem(item, btn.node()));
|
|
575
|
+
}
|
|
576
|
+
};
|
|
577
|
+
// render activeItems as large square tiles (homepage style) that lift on hover
|
|
578
|
+
this.initActiveItemCards = () => {
|
|
579
|
+
const items = this.aboutOverrides.activeItems.items;
|
|
580
|
+
const holder = this.subheader.append("div").attr("data-testid", "sjpp-custom-about-activeItems").style("display", "flex").style("flex-wrap", "wrap").style("justify-content", "center").style("gap", "24px").style("padding", "20px 20px 30px 20px");
|
|
581
|
+
for (const item of items) {
|
|
582
|
+
const card = holder.append("div").attr("class", "sjpp-about-card").attr("data-testid", "sjpp-custom-active-item-card");
|
|
583
|
+
if (item.icon) card.append("div").attr("class", "sjpp-about-card-icon").html(item.icon);
|
|
584
|
+
card.append("div").attr("class", "sjpp-about-card-title").html(item.title);
|
|
585
|
+
card.append("div").attr("class", "sjpp-about-card-subtitle").text(item.subtitle || "");
|
|
586
|
+
this.makeActivatable(card, () => this.launchActiveItem(item, card.node()));
|
|
587
|
+
}
|
|
588
|
+
};
|
|
589
|
+
// make a non-native clickable element (a styled <div>) operable like a button:
|
|
590
|
+
this.makeActivatable = (sel, onActivate) => {
|
|
591
|
+
sel.attr("role", "button").attr("tabindex", 0).on("click", () => onActivate()).on("keydown", (event2) => {
|
|
592
|
+
if (event2.key == "Enter" || event2.key == " ") {
|
|
593
|
+
event2.preventDefault();
|
|
594
|
+
onActivate();
|
|
595
|
+
}
|
|
596
|
+
});
|
|
597
|
+
};
|
|
598
|
+
// launch behavior shared by button and card layouts
|
|
599
|
+
this.launchActiveItem = async (item, anchorEl) => {
|
|
600
|
+
if (item.openChartMenu) {
|
|
601
|
+
await this.openChartMenu(item.openChartMenu, anchorEl);
|
|
602
|
+
return;
|
|
603
|
+
}
|
|
604
|
+
if (!item.plot) {
|
|
605
|
+
console.error("about activeItem has neither .plot nor .openChartMenu", item);
|
|
606
|
+
return;
|
|
607
|
+
}
|
|
608
|
+
await this.app.dispatch({
|
|
609
|
+
type: "tab_set",
|
|
610
|
+
activeTab: 1
|
|
611
|
+
});
|
|
612
|
+
this.app.dispatch({
|
|
613
|
+
type: "plot_create",
|
|
614
|
+
id: getId(),
|
|
615
|
+
config: structuredClone(item.plot)
|
|
616
|
+
});
|
|
617
|
+
};
|
|
618
|
+
// open a chart-specific launch menu (e.g. gene search for proteinView) anchored to the tile.
|
|
619
|
+
// the chart module is dynamically imported so its code only loads when the tile is clicked.
|
|
620
|
+
this.openChartMenu = async (chartType, anchorEl) => {
|
|
621
|
+
const menu = this.chartMenu || (this.chartMenu = new Menu({ padding: "0px" }));
|
|
622
|
+
menu.clear();
|
|
623
|
+
const shimApp = {
|
|
624
|
+
opts: this.app.opts,
|
|
625
|
+
dispatch: async (action) => {
|
|
626
|
+
if (action.type == "plot_create") await this.app.dispatch({ type: "tab_set", activeTab: 1 });
|
|
627
|
+
return this.app.dispatch(action);
|
|
628
|
+
}
|
|
629
|
+
};
|
|
630
|
+
const chartsInstanceShim = { app: shimApp, dom: { tip: menu } };
|
|
631
|
+
const _ = await importPlot(chartType);
|
|
632
|
+
if (typeof _.makeChartBtnMenu != "function")
|
|
633
|
+
throw `about activeItem openChartMenu: chart '${chartType}' has no makeChartBtnMenu`;
|
|
634
|
+
_.makeChartBtnMenu(menu.d.append("div"), chartsInstanceShim, chartType);
|
|
635
|
+
menu.showunder(anchorEl);
|
|
636
|
+
};
|
|
637
|
+
this.initDisclaimer = () => {
|
|
638
|
+
const d = this.aboutOverrides?.disclaimer;
|
|
639
|
+
if (!d) return;
|
|
640
|
+
const div = this.subheader.append("div").attr("data-testid", "sjpp-custom-about-disclaimer").style("margin", "10px 0 20px 10px").style("opacity", 0.7).style("padding", "10px").style("background-color", "#f8f9fa").style("border-left", "4px solid #6c757d").style("font-size", "0.8em");
|
|
641
|
+
div.append("div").style("margin-bottom", "8px").style("font-weight", "bold").text("DISCLAIMER");
|
|
642
|
+
div.append("div").text(d.text);
|
|
643
|
+
};
|
|
644
|
+
this.showServerInfo = () => {
|
|
645
|
+
const state = this.app.getState();
|
|
646
|
+
const about = state.termdbConfig.massNav?.tabs?.about;
|
|
647
|
+
if (!about && !this.app.opts.pkgver && !this.app.opts.launchDate) return;
|
|
648
|
+
const dataRelease = about?.dataRelease;
|
|
649
|
+
const additionalInfo = about?.additionalInfo;
|
|
650
|
+
const div = this.subheader.append("div").attr("data-testid", "sjpp-about-server-info").style("margin", "10px").style("font-size", ".8em");
|
|
651
|
+
const htmlArr = [];
|
|
652
|
+
if (dataRelease) {
|
|
653
|
+
htmlArr.push(`Data Release: <a href=${dataRelease.link} target=_blank>${dataRelease.version}</a>`);
|
|
654
|
+
}
|
|
655
|
+
if (this.app.opts.pkgver) {
|
|
656
|
+
htmlArr.push(
|
|
657
|
+
`Software Release: <a href=https://github.com/stjude/proteinpaint/pkgs/container/ppfull target=_blank>${this.app.opts.pkgver}</a>`
|
|
658
|
+
);
|
|
659
|
+
}
|
|
660
|
+
if (this.app.opts.launchDate) {
|
|
661
|
+
htmlArr.push(`Server Launched: ${this.app.opts.launchDate}`);
|
|
662
|
+
}
|
|
663
|
+
if (additionalInfo) {
|
|
664
|
+
htmlArr.push(additionalInfo);
|
|
665
|
+
}
|
|
666
|
+
div.append("div").html(htmlArr.join("; "));
|
|
667
|
+
};
|
|
668
|
+
this.opts = opts;
|
|
669
|
+
this.type = _MassAbout.type;
|
|
670
|
+
this.app = opts.app;
|
|
671
|
+
this.subheader = opts.subheader;
|
|
672
|
+
this.instanceNum = opts.instanceNum;
|
|
673
|
+
this.aboutOverrides = opts.aboutOverrides;
|
|
674
|
+
this.selectCohort = opts.selectCohort;
|
|
675
|
+
this.dom = {
|
|
676
|
+
cohortDescription: this.subheader.append("div").attr("data-testid", "sjpp-about-cohort-desc").style("margin-left", "10px")
|
|
677
|
+
};
|
|
678
|
+
if (opts?.selectCohort?.title) {
|
|
679
|
+
this.dom.cohortTitle = opts.subheader.append("h2").attr("data-testid", "sjpp-about-cohort-title").style("margin-left", "10px").text(opts.selectCohort.title);
|
|
680
|
+
}
|
|
681
|
+
if (opts.selectCohort?.prompt) {
|
|
682
|
+
this.dom.cohortPrompt = this.subheader.append("div").attr("data-testid", "sjpp-about-cohort-prompt").style("margin-left", "10px").style("padding-top", "30px").style("padding-bottom", "10px").style("font-weight", "bold").style("font-size", "1.2em").text(opts.selectCohort.prompt);
|
|
683
|
+
}
|
|
684
|
+
if (opts.selectCohort) {
|
|
685
|
+
this.dom.cohortOpts = this.subheader.append("div").style("margin-bottom", "30px").style("margin-left", "10px");
|
|
686
|
+
}
|
|
687
|
+
}
|
|
688
|
+
static {
|
|
689
|
+
this.type = "about";
|
|
690
|
+
}
|
|
691
|
+
/* render all contents into this.subheader
|
|
692
|
+
do it through init() means that contents are rendered just once on launching mass ui and won't be rerendered or updated
|
|
693
|
+
since there's no reason to update about tab contents while user is interacting with mass ui
|
|
694
|
+
*/
|
|
695
|
+
init(appState) {
|
|
696
|
+
this.initCohort(appState);
|
|
697
|
+
this.initCustomHtml();
|
|
698
|
+
this.initGeomap(appState);
|
|
699
|
+
this.initActiveItems();
|
|
700
|
+
this.initDisclaimer();
|
|
701
|
+
this.showServerInfo();
|
|
702
|
+
}
|
|
703
|
+
async main() {
|
|
704
|
+
if (this.state.nav.activeTab !== 0) return;
|
|
705
|
+
await this.renderCohortsTable();
|
|
706
|
+
if (this.opts.selectCohort) {
|
|
707
|
+
if (this.opts.selectCohort.description) {
|
|
708
|
+
this.dom.cohortDescription.html(this.opts.selectCohort.description);
|
|
709
|
+
} else if (this.opts.selectCohort.descriptionByCohort) {
|
|
710
|
+
this.dom.cohortDescription.html(
|
|
711
|
+
this.opts.selectCohort.descriptionByCohort[this.state.termdbConfig.selectCohort.values[this.state.activeCohort].keys.join(",")]
|
|
712
|
+
);
|
|
713
|
+
}
|
|
714
|
+
}
|
|
715
|
+
}
|
|
716
|
+
};
|
|
717
|
+
var aboutInit = getCompInit(MassAbout);
|
|
718
|
+
function joinByComma(arr) {
|
|
719
|
+
if (!arr.length) return "";
|
|
720
|
+
else if (arr.length == 1) return arr[0];
|
|
721
|
+
else if (arr.length == 2) return arr.join(" and ");
|
|
722
|
+
else return `${arr.slice(0, -1).join(", ")}, and ${arr.slice(-1)}`;
|
|
723
|
+
}
|
|
724
|
+
|
|
725
|
+
// mass/search.ts
|
|
726
|
+
var MIN_PROMPT_LENGTH_FOR_GENE_SEARCH = 1;
|
|
727
|
+
var MIN_PROMPT_LENGTH_FOR_OTHER_SEARCH = 3;
|
|
728
|
+
var MAX_PROMPT_LENGTH_FOR_OMNISEARCH = 20;
|
|
729
|
+
function makeMethylationRegionTerm(opts, vocabApi) {
|
|
730
|
+
const { chr, start, stop } = opts;
|
|
731
|
+
if (!chr || !Number.isInteger(start) || !Number.isInteger(stop)) throw new Error("invalid coordinate");
|
|
732
|
+
return {
|
|
733
|
+
chr,
|
|
734
|
+
start,
|
|
735
|
+
stop,
|
|
736
|
+
type: DNA_METHYLATION,
|
|
737
|
+
unit: getDNAMethUnit("region", vocabApi),
|
|
738
|
+
genomicFeatureType: "region"
|
|
739
|
+
};
|
|
740
|
+
}
|
|
741
|
+
async function embedMethylationRegionPicker(opts) {
|
|
742
|
+
const { holder, genomeObj, vocabApi, chr, start, stop, callback } = opts;
|
|
743
|
+
if (!chr || !Number.isInteger(start) || !Number.isInteger(stop)) throw new Error("unable to retrieve gene coordinate");
|
|
744
|
+
holder.selectAll("*").remove();
|
|
745
|
+
holder.style("display", "block");
|
|
746
|
+
holder.append("div").style("opacity", 0.6).text("Navigate genome browser to desired region");
|
|
747
|
+
const arg = {
|
|
748
|
+
holder,
|
|
749
|
+
genome: genomeObj,
|
|
750
|
+
// genome obj
|
|
751
|
+
chr,
|
|
752
|
+
start,
|
|
753
|
+
stop,
|
|
754
|
+
tklst: [],
|
|
755
|
+
nobox: true,
|
|
756
|
+
width: 500,
|
|
757
|
+
hidegenelegend: true,
|
|
758
|
+
debugmode: opts.debug
|
|
759
|
+
};
|
|
760
|
+
first_genetrack_tolist(genomeObj, arg.tklst);
|
|
761
|
+
const _ = await import("./block-UYYJXSCM.js");
|
|
762
|
+
const blockInstance = new _.Block(arg);
|
|
763
|
+
holder.append("div").attr("data-testid", "sjpp-dnaMethylation-submitDiv").style("margin", "10px 0px").append("button").style("border", "none").style("border-radius", "20px").style("padding", "10px 15px").text("Submit Region").on("click", async () => {
|
|
764
|
+
const { chr: chr2, start: start2, stop: stop2 } = blockInstance.rglst[0];
|
|
765
|
+
await callback(makeMethylationRegionTerm({ chr: chr2, start: start2, stop: stop2 }, vocabApi));
|
|
766
|
+
});
|
|
767
|
+
return blockInstance;
|
|
768
|
+
}
|
|
769
|
+
function parseCoordCandidates(prompt2) {
|
|
770
|
+
const m = /^\s*(\w+)\s*:\s*([\d,]+)\s*-\s*([\d,]+)\s*$/.exec(prompt2);
|
|
771
|
+
if (!m) return null;
|
|
772
|
+
const [, chrToken, start, stop] = m;
|
|
773
|
+
const chrCandidates = /^chr/i.test(chrToken) ? [chrToken, chrToken.replace(/^chr/i, "")] : [chrToken, "chr" + chrToken];
|
|
774
|
+
return chrCandidates.map((chr) => `${chr}:${start}-${stop}`);
|
|
775
|
+
}
|
|
776
|
+
async function handleOmnisearchKeyup(self, event2) {
|
|
777
|
+
if (keyupEnter(event2)) return;
|
|
778
|
+
const prompt2 = event2.target.value.trim();
|
|
779
|
+
if (!prompt2) {
|
|
780
|
+
self.dom.noMatchShown = false;
|
|
781
|
+
self.clear({ hide: true });
|
|
782
|
+
return;
|
|
783
|
+
}
|
|
784
|
+
const coordCandidates = parseCoordCandidates(prompt2);
|
|
785
|
+
if (coordCandidates || MIN_PROMPT_LENGTH_FOR_GENE_SEARCH <= prompt2.length && prompt2.length <= MAX_PROMPT_LENGTH_FOR_OMNISEARCH) {
|
|
786
|
+
try {
|
|
787
|
+
await doSearch(self, prompt2, coordCandidates);
|
|
788
|
+
} catch (e) {
|
|
789
|
+
if (e.stack) console.log(e.stack);
|
|
790
|
+
sayerror(self.dom.resultDiv, "Error: " + (e.message || e));
|
|
791
|
+
}
|
|
792
|
+
} else {
|
|
793
|
+
self.dom.noMatchShown = false;
|
|
794
|
+
self.clear({ hide: true });
|
|
795
|
+
}
|
|
796
|
+
}
|
|
797
|
+
async function fetchOmnisearch(opts) {
|
|
798
|
+
const data = await dofetch3("termdb/chat", {
|
|
799
|
+
body: {
|
|
800
|
+
genome: opts.genome,
|
|
801
|
+
dslabel: opts.dslabel,
|
|
802
|
+
omnisearch: true,
|
|
803
|
+
prompt: opts.prompt,
|
|
804
|
+
cohortStr: opts.cohortStr,
|
|
805
|
+
usecase: opts.usecase,
|
|
806
|
+
treeFilter: opts.treeFilter,
|
|
807
|
+
coordCandidates: opts.coordCandidates || void 0,
|
|
808
|
+
// gene search runs from 1 char; dictionary + sample search only once the prompt reaches the
|
|
809
|
+
// longer cutoff, so the server skips them (and their all-samples scan) for short prompts
|
|
810
|
+
includeDictAndSampleSearch: opts.prompt.trim().length >= MIN_PROMPT_LENGTH_FOR_OTHER_SEARCH
|
|
811
|
+
}
|
|
812
|
+
});
|
|
813
|
+
if (data.error) throw data.error;
|
|
814
|
+
return data;
|
|
815
|
+
}
|
|
816
|
+
function renderOmnisearchResults(self, data) {
|
|
817
|
+
const coord = data.coord || null;
|
|
818
|
+
const dictItems = Array.isArray(data.dictionaryTerms) ? data.dictionaryTerms : [];
|
|
819
|
+
const genes = Array.isArray(data.genes) ? data.genes : [];
|
|
820
|
+
const dictNames = new Set(dictItems.map((t) => t.name?.toUpperCase()));
|
|
821
|
+
const geneMap = /* @__PURE__ */ new Map();
|
|
822
|
+
for (const g of genes) {
|
|
823
|
+
const gene = g?.gene;
|
|
824
|
+
if (!gene || dictNames.has(gene.toUpperCase())) continue;
|
|
825
|
+
const dt = g.dataTypes || {};
|
|
826
|
+
const geneVariantTypes = [];
|
|
827
|
+
if (dt.snvindel) geneVariantTypes.push({ label: "SNV/indel", testid: "snvindel", dtCandidates: [dtsnvindel] });
|
|
828
|
+
if (dt.cnv) geneVariantTypes.push({ label: "CNV", testid: "cnv", dtCandidates: [dtcnv] });
|
|
829
|
+
if (dt.svfusion)
|
|
830
|
+
geneVariantTypes.push({ label: "SV/fusion", testid: "svfusion", dtCandidates: [dtsv, dtfusionrna] });
|
|
831
|
+
const entry = { name: gene, gene, isGene: true };
|
|
832
|
+
if (dt.geneExpression) entry.isGeneExpression = true;
|
|
833
|
+
if (geneVariantTypes.length) {
|
|
834
|
+
entry.isGeneVariant = true;
|
|
835
|
+
entry.geneVariantTypes = geneVariantTypes;
|
|
836
|
+
}
|
|
837
|
+
if (dt.genomeBrowser) {
|
|
838
|
+
entry.isGenomeBrowser = true;
|
|
839
|
+
entry.coord = g.coord;
|
|
840
|
+
}
|
|
841
|
+
if (dt.dnaMethylation) {
|
|
842
|
+
entry.isMethylation = true;
|
|
843
|
+
entry.coord = g.coord;
|
|
844
|
+
}
|
|
845
|
+
if (entry.isGeneExpression || entry.isGeneVariant || entry.isGenomeBrowser || entry.isMethylation) {
|
|
846
|
+
geneMap.set(gene.toUpperCase(), entry);
|
|
847
|
+
}
|
|
848
|
+
}
|
|
849
|
+
const geneItems = [...geneMap.values()];
|
|
850
|
+
const sampleItems = (Array.isArray(data.samples) ? data.samples : []).filter((s) => s?.name).map((s) => ({
|
|
851
|
+
isSample: true,
|
|
852
|
+
name: s.name,
|
|
853
|
+
sampleId: s.id,
|
|
854
|
+
singleCell: s.singleCell,
|
|
855
|
+
facetTracks: s.assays
|
|
856
|
+
}));
|
|
857
|
+
const coordItems = coord ? [{ isCoord: true, name: `${coord.chr}:${coord.start.toLocaleString()}-${coord.stop.toLocaleString()}`, coord }] : [];
|
|
858
|
+
const totals = data.totals || {};
|
|
859
|
+
const lst = [];
|
|
860
|
+
for (const group of [
|
|
861
|
+
{
|
|
862
|
+
key: "dictionary",
|
|
863
|
+
heading: "Dictionary",
|
|
864
|
+
noun: "dictionary variable",
|
|
865
|
+
items: dictItems,
|
|
866
|
+
returned: dictItems.length,
|
|
867
|
+
total: totals.dictionaryTerms
|
|
868
|
+
},
|
|
869
|
+
{
|
|
870
|
+
key: "genes",
|
|
871
|
+
heading: "Genes",
|
|
872
|
+
noun: "gene",
|
|
873
|
+
items: geneItems,
|
|
874
|
+
returned: Array.isArray(data.genes) ? data.genes.length : 0,
|
|
875
|
+
total: totals.genes
|
|
876
|
+
},
|
|
877
|
+
{
|
|
878
|
+
key: "samples",
|
|
879
|
+
heading: "Samples",
|
|
880
|
+
noun: "sample",
|
|
881
|
+
items: sampleItems,
|
|
882
|
+
returned: sampleItems.length,
|
|
883
|
+
total: totals.samples
|
|
884
|
+
},
|
|
885
|
+
{
|
|
886
|
+
key: "coord",
|
|
887
|
+
heading: "Genomic region",
|
|
888
|
+
noun: "",
|
|
889
|
+
items: coordItems,
|
|
890
|
+
returned: coordItems.length,
|
|
891
|
+
total: void 0
|
|
892
|
+
}
|
|
893
|
+
]) {
|
|
894
|
+
if (!group.items.length) continue;
|
|
895
|
+
lst.push({ isHeading: true, name: group.heading });
|
|
896
|
+
for (const item of group.items) lst.push(item);
|
|
897
|
+
if (typeof group.total == "number" && group.total > group.returned) {
|
|
898
|
+
lst.push({
|
|
899
|
+
isNote: true,
|
|
900
|
+
testid: `sjpp-mass-chat-note-${group.key}`,
|
|
901
|
+
name: `Displaying ${group.items.length} out of a total of ${group.total} ${group.noun} matches`
|
|
902
|
+
});
|
|
903
|
+
}
|
|
904
|
+
}
|
|
905
|
+
if (!lst.length) {
|
|
906
|
+
if (!self.dom.noMatchShown) {
|
|
907
|
+
self.dom.noMatchShown = true;
|
|
908
|
+
self.noResult();
|
|
909
|
+
}
|
|
910
|
+
} else {
|
|
911
|
+
self.dom.noMatchShown = false;
|
|
912
|
+
self.showTerms({ lst });
|
|
913
|
+
}
|
|
914
|
+
}
|
|
915
|
+
async function doSearch(self, prompt2, coordCandidates) {
|
|
916
|
+
if (!prompt2) {
|
|
917
|
+
self.clear({ hide: true });
|
|
918
|
+
return;
|
|
919
|
+
}
|
|
920
|
+
const seq = self.omnisearchSeq = (self.omnisearchSeq || 0) + 1;
|
|
921
|
+
const data = await fetchOmnisearch({
|
|
922
|
+
genome: self.app.vocabApi.vocab.genome,
|
|
923
|
+
dslabel: self.app.vocabApi.vocab.dslabel,
|
|
924
|
+
prompt: prompt2,
|
|
925
|
+
cohortStr: self.getState(self.app.getState()).cohortStr,
|
|
926
|
+
usecase: self.opts.usecase,
|
|
927
|
+
treeFilter: self.app.vocabApi.state?.treeFilter,
|
|
928
|
+
coordCandidates
|
|
929
|
+
});
|
|
930
|
+
if (seq !== self.omnisearchSeq) return;
|
|
931
|
+
renderOmnisearchResults(self, data);
|
|
932
|
+
}
|
|
933
|
+
function setSearchRenderers(self) {
|
|
934
|
+
let text = "No match";
|
|
935
|
+
if (self.isChat) {
|
|
936
|
+
text = "No match. Using the chatbot...";
|
|
937
|
+
}
|
|
938
|
+
self.noResult = () => {
|
|
939
|
+
self.clear();
|
|
940
|
+
self.dom.resultDiv.append("div").text(text).style("padding", "3px 3px 3px 0px").style("opacity", 0.5);
|
|
941
|
+
clearTimeout(self.noResultTimer);
|
|
942
|
+
self.noResultTimer = setTimeout(() => {
|
|
943
|
+
self.clear({ hide: true });
|
|
944
|
+
}, 1500);
|
|
945
|
+
};
|
|
946
|
+
self.showTerms = (data) => {
|
|
947
|
+
clearTimeout(self.noResultTimer);
|
|
948
|
+
if (self.opts.disable_terms)
|
|
949
|
+
data.lst.forEach((t) => {
|
|
950
|
+
if (t.disabled) self.opts.disable_terms.push(t);
|
|
951
|
+
});
|
|
952
|
+
self.clear({ hide: !data.lst.length });
|
|
953
|
+
if (data.lst.length) {
|
|
954
|
+
self.dom.resultDiv.append("table").selectAll().data(data.lst).enter().append("tr").each(self.showTerm);
|
|
955
|
+
}
|
|
956
|
+
};
|
|
957
|
+
self.launchPlot = async (config) => {
|
|
958
|
+
if (self.state?.nav?.activeTab == 0) {
|
|
959
|
+
await self.app.dispatch({ type: "tab_set", activeTab: 1 });
|
|
960
|
+
}
|
|
961
|
+
self.app.dispatch({ type: "plot_create", config });
|
|
962
|
+
self.dom.inputNode.value = "";
|
|
963
|
+
self.clear({ hide: true });
|
|
964
|
+
};
|
|
965
|
+
self.launchGeneVariantPlot = async (gene, dtCandidates) => {
|
|
966
|
+
let tw;
|
|
967
|
+
let lastErr;
|
|
968
|
+
for (const dt of dtCandidates) {
|
|
969
|
+
const candidate = {
|
|
970
|
+
term: {
|
|
971
|
+
id: gene,
|
|
972
|
+
name: gene,
|
|
973
|
+
genes: [{ kind: "gene", id: gene, gene, name: gene, type: "geneVariant" }],
|
|
974
|
+
type: "geneVariant"
|
|
975
|
+
},
|
|
976
|
+
q: { type: "predefined-groupset", dtLst: [dt] }
|
|
977
|
+
};
|
|
978
|
+
try {
|
|
979
|
+
await fillTermWrapper(candidate, self.app.vocabApi);
|
|
980
|
+
tw = candidate;
|
|
981
|
+
break;
|
|
982
|
+
} catch (e) {
|
|
983
|
+
lastErr = e;
|
|
984
|
+
}
|
|
985
|
+
}
|
|
986
|
+
if (!tw) throw lastErr;
|
|
987
|
+
await self.launchPlot({ chartType: "summary", term: tw });
|
|
988
|
+
};
|
|
989
|
+
self.launchGenomeBrowserView = async (mode, opts) => {
|
|
990
|
+
if (mode == "protein") {
|
|
991
|
+
if (!opts.gene) throw new Error("gene symbol required for protein view");
|
|
992
|
+
await self.launchPlot({
|
|
993
|
+
chartType: "genomeBrowser",
|
|
994
|
+
geneSearchResult: { geneSymbol: opts.gene },
|
|
995
|
+
blockIsProteinMode: true
|
|
996
|
+
});
|
|
997
|
+
return;
|
|
998
|
+
}
|
|
999
|
+
if (!opts.coord) throw new Error("coordinate required for genomic view");
|
|
1000
|
+
await self.launchPlot({
|
|
1001
|
+
chartType: "genomeBrowser",
|
|
1002
|
+
geneSearchResult: { chr: opts.coord.chr, start: opts.coord.start, stop: opts.coord.stop },
|
|
1003
|
+
blockIsProteinMode: false
|
|
1004
|
+
});
|
|
1005
|
+
};
|
|
1006
|
+
self.launchGenomeBrowser = async (gene, coord) => {
|
|
1007
|
+
const gbRestrictMode = self.app.getState().termdbConfig?.queries?.gbRestrictMode;
|
|
1008
|
+
if (gbRestrictMode == "protein") {
|
|
1009
|
+
await self.launchGenomeBrowserView("protein", { gene });
|
|
1010
|
+
return;
|
|
1011
|
+
}
|
|
1012
|
+
if (gbRestrictMode == "genomic") {
|
|
1013
|
+
if (!coord) throw new Error(`Unable to resolve genomic coordinates for gene "${gene}".`);
|
|
1014
|
+
await self.launchGenomeBrowserView("genomic", { coord });
|
|
1015
|
+
return;
|
|
1016
|
+
}
|
|
1017
|
+
self.dom.tip.clear();
|
|
1018
|
+
self.dom.tip.showunder(self.dom.inputNode);
|
|
1019
|
+
const holder = self.dom.resultDiv.append("div").style("margin", "10px");
|
|
1020
|
+
holder.append("div").style("margin-bottom", "5px").text(gene);
|
|
1021
|
+
const btndiv = holder.append("div");
|
|
1022
|
+
const addViewBtn = (label, testid, mode) => {
|
|
1023
|
+
btndiv.append("button").attr("data-testid", testid).style("margin-right", "10px").text(label).on(
|
|
1024
|
+
"click",
|
|
1025
|
+
() => void self.launchGenomeBrowserView(mode, { gene, coord }).catch((e) => sayerror(self.dom.resultDiv, "Error: " + (e?.message || e)))
|
|
1026
|
+
);
|
|
1027
|
+
};
|
|
1028
|
+
addViewBtn(`Protein view of ${gene}`, `sjpp-mass-chat-gb-protein-${gene}`, "protein");
|
|
1029
|
+
if (coord) addViewBtn(`Genomic view of ${gene}`, `sjpp-mass-chat-gb-genomic-${gene}`, "genomic");
|
|
1030
|
+
};
|
|
1031
|
+
self.launchMethylationPlot = async (gene, coord) => {
|
|
1032
|
+
if (!coord) throw new Error(`Could not resolve coordinates for gene "${gene}"`);
|
|
1033
|
+
self.dom.tip.clear();
|
|
1034
|
+
self.dom.tip.showunder(self.dom.inputNode);
|
|
1035
|
+
const holder = self.dom.resultDiv.append("div").style("margin", "10px");
|
|
1036
|
+
holder.append("div").style("margin-bottom", "5px").text(gene);
|
|
1037
|
+
await embedMethylationRegionPicker({
|
|
1038
|
+
holder: holder.append("div"),
|
|
1039
|
+
genomeObj: self.app.opts.genome,
|
|
1040
|
+
vocabApi: self.app.vocabApi,
|
|
1041
|
+
chr: coord.chr,
|
|
1042
|
+
start: coord.start,
|
|
1043
|
+
stop: coord.stop,
|
|
1044
|
+
callback: async (term) => {
|
|
1045
|
+
await self.launchPlot({ chartType: "summary", term: { term } });
|
|
1046
|
+
}
|
|
1047
|
+
});
|
|
1048
|
+
};
|
|
1049
|
+
self.showTerm = function(item) {
|
|
1050
|
+
const tr = select_default(this);
|
|
1051
|
+
if (item.isHeading) {
|
|
1052
|
+
tr.append("td").attr("colspan", 2).attr("data-testid", `sjpp-mass-chat-heading-${item.name.toLowerCase().replace(/\s+/g, "-")}`).text(item.name).style("padding", "6px 10px 2px").style("font-weight", "bold").style("font-size", "0.85em").style("text-transform", "uppercase").style("opacity", 0.5);
|
|
1053
|
+
return;
|
|
1054
|
+
}
|
|
1055
|
+
if (item.isNote) {
|
|
1056
|
+
tr.append("td").attr("colspan", 2).attr("data-testid", item.testid || "sjpp-mass-chat-note").text(item.name).style("padding", "2px 10px 6px").style("font-size", "0.8em").style("font-style", "italic").style("opacity", 0.6);
|
|
1057
|
+
return;
|
|
1058
|
+
}
|
|
1059
|
+
if (item.isCoord) {
|
|
1060
|
+
tr.append("td").text(item.name).style("padding", "5px 10px");
|
|
1061
|
+
tr.append("td").append("span").attr("class", "sja_menuoption").attr("data-testid", "sjpp-mass-chat-coord-genomebrowser").style("display", "inline-block").style("margin", "0px 3px").style("padding", "5px 10px").style("border-radius", "5px").style("cursor", "pointer").text("Genome Browser").on(
|
|
1062
|
+
"click",
|
|
1063
|
+
() => void self.launchGenomeBrowserView("genomic", { coord: item.coord }).catch((e) => sayerror(self.dom.resultDiv, "Error: " + (e?.message || e)))
|
|
1064
|
+
);
|
|
1065
|
+
return;
|
|
1066
|
+
}
|
|
1067
|
+
if (item.isSample) {
|
|
1068
|
+
tr.append("td").text(item.name).style("padding", "5px 10px");
|
|
1069
|
+
tr.append("td").append("span").attr("class", "sja_menuoption").attr("data-testid", `sjpp-mass-chat-sample-view-${item.sampleId}`).style("display", "inline-block").style("margin", "0px 3px").style("padding", "5px 10px").style("border-radius", "5px").style("cursor", "pointer").text("Sample View").on(
|
|
1070
|
+
"click",
|
|
1071
|
+
() => void self.launchPlot({
|
|
1072
|
+
chartType: "sampleView",
|
|
1073
|
+
sample: { sampleId: item.sampleId, sampleName: item.name }
|
|
1074
|
+
}).catch((e) => sayerror(self.dom.resultDiv, "Error: " + (e?.message || e)))
|
|
1075
|
+
);
|
|
1076
|
+
if (item.singleCell) {
|
|
1077
|
+
tr.select("td:nth-child(2)").append("button").attr("type", "button").attr("class", "sja_menuoption").attr("data-testid", `sjpp-mass-chat-single-cell-${item.sampleId}`).style("display", "inline-block").style("margin", "0px 3px").style("padding", "5px 10px").style("border-radius", "5px").style("border", "0").style("cursor", "pointer").text("Single cell").on(
|
|
1078
|
+
"click",
|
|
1079
|
+
() => void self.launchPlot({
|
|
1080
|
+
chartType: "sc",
|
|
1081
|
+
settings: { sc: { item: item.singleCell } }
|
|
1082
|
+
}).catch((e) => sayerror(self.dom.resultDiv, "Error: " + (e?.message || e)))
|
|
1083
|
+
);
|
|
1084
|
+
}
|
|
1085
|
+
if (item.facetTracks?.length) {
|
|
1086
|
+
tr.select("td:nth-child(2)").append("button").attr("type", "button").attr("class", "sja_menuoption").attr("data-testid", `sjpp-mass-chat-assays-${item.sampleId}`).style("display", "inline-block").style("margin", "0px 3px").style("padding", "5px 10px").style("border-radius", "5px").style("cursor", "pointer").text("Facet Table").on(
|
|
1087
|
+
"click",
|
|
1088
|
+
() => void self.launchPlot({
|
|
1089
|
+
chartType: "genomeBrowser",
|
|
1090
|
+
hidePlotFilter: true,
|
|
1091
|
+
filter: getSampleFilter(item.sampleId)
|
|
1092
|
+
}).catch((e) => sayerror(self.dom.resultDiv, "Error: " + (e?.message || e)))
|
|
1093
|
+
);
|
|
1094
|
+
}
|
|
1095
|
+
return;
|
|
1096
|
+
}
|
|
1097
|
+
if (item.isGene) {
|
|
1098
|
+
tr.append("td").text(item.name).style("padding", "5px 10px");
|
|
1099
|
+
const btnTd = tr.append("td");
|
|
1100
|
+
const addBtn = (label, testid, onClick) => {
|
|
1101
|
+
btnTd.append("span").attr("class", "sja_menuoption").attr("data-testid", testid).style("display", "inline-block").style("margin", "0px 3px").style("padding", "5px 10px").style("border-radius", "5px").style("cursor", "pointer").text(label).on("click", () => void onClick().catch((e) => sayerror(self.dom.resultDiv, "Error: " + (e?.message || e))));
|
|
1102
|
+
};
|
|
1103
|
+
if (item.isGeneExpression) {
|
|
1104
|
+
addBtn("Gene expression", `sjpp-mass-chat-gene-exp-${item.gene}`, async () => {
|
|
1105
|
+
await self.launchPlot({
|
|
1106
|
+
chartType: "summary",
|
|
1107
|
+
term: { term: { gene: item.gene, name: item.name, type: "geneExpression" } }
|
|
1108
|
+
});
|
|
1109
|
+
});
|
|
1110
|
+
}
|
|
1111
|
+
if (item.isGeneVariant) {
|
|
1112
|
+
for (const vt of item.geneVariantTypes || []) {
|
|
1113
|
+
addBtn(vt.label, `sjpp-mass-chat-gene-${vt.testid}-${item.gene}`, async () => {
|
|
1114
|
+
await self.launchGeneVariantPlot(item.gene, vt.dtCandidates);
|
|
1115
|
+
});
|
|
1116
|
+
}
|
|
1117
|
+
}
|
|
1118
|
+
if (item.isGenomeBrowser) {
|
|
1119
|
+
addBtn("Genome Browser", `sjpp-mass-chat-gene-genomebrowser-${item.gene}`, async () => {
|
|
1120
|
+
await self.launchGenomeBrowser(item.gene, item.coord);
|
|
1121
|
+
});
|
|
1122
|
+
}
|
|
1123
|
+
if (item.isMethylation) {
|
|
1124
|
+
addBtn("DNA methylation", `sjpp-mass-chat-gene-methylation-${item.gene}`, async () => {
|
|
1125
|
+
await self.launchMethylationPlot(item.gene, item.coord);
|
|
1126
|
+
});
|
|
1127
|
+
}
|
|
1128
|
+
return;
|
|
1129
|
+
}
|
|
1130
|
+
const button = tr.append("td").text(item.name);
|
|
1131
|
+
if (item.type) {
|
|
1132
|
+
button.style("cursor", "pointer").attr("class", "sja_menuoption").attr("data-testid", `sjpp-mass-chat-term-${item.id}`).on("click", async () => {
|
|
1133
|
+
await self.launchPlot({
|
|
1134
|
+
chartType: item.type == "survival" ? "survival" : "summary",
|
|
1135
|
+
term: { term: item }
|
|
1136
|
+
});
|
|
1137
|
+
});
|
|
1138
|
+
} else {
|
|
1139
|
+
button.style("padding", "5px 10px").style("opacity", 0.5);
|
|
1140
|
+
}
|
|
1141
|
+
tr.append("td").text((item.__ancestorNames || []).join(" > ")).style("opacity", 0.5).style("font-size", ".7em");
|
|
1142
|
+
};
|
|
1143
|
+
self.clear = (opts = {}) => {
|
|
1144
|
+
self.dom.tip.clear();
|
|
1145
|
+
if (opts.hide) self.dom.tip.hide();
|
|
1146
|
+
else self.dom.tip.showunder(self.dom.inputNode);
|
|
1147
|
+
};
|
|
1148
|
+
}
|
|
1149
|
+
|
|
1150
|
+
// mass/chat.ts
|
|
1151
|
+
var MIN_PROMPT_LENGTH_FOR_CHAT = 5;
|
|
1152
|
+
var MassAiChatBot = class _MassAiChatBot {
|
|
1153
|
+
static {
|
|
1154
|
+
this.type = "chat";
|
|
1155
|
+
}
|
|
1156
|
+
constructor(opts) {
|
|
1157
|
+
this.type = _MassAiChatBot.type;
|
|
1158
|
+
this.opts = opts;
|
|
1159
|
+
this.app = opts.app;
|
|
1160
|
+
this.opts.usecase = this.opts.usecase || { target: "dictionary", detail: "term" };
|
|
1161
|
+
this.opts.targetType = this.opts.targetType ? this.opts.targetType : "Dictionary Variables";
|
|
1162
|
+
this.isChat = this.app.getState().termdbConfig?.queries?.chat;
|
|
1163
|
+
setSearchRenderers(this);
|
|
1164
|
+
}
|
|
1165
|
+
getState(appState) {
|
|
1166
|
+
return {
|
|
1167
|
+
cohortStr: appState.activeCohort == -1 || !appState.termdbConfig.selectCohort ? "" : appState.termdbConfig.selectCohort.values[appState.activeCohort].keys.slice().sort().join(","),
|
|
1168
|
+
search: appState.search,
|
|
1169
|
+
nav: appState.nav
|
|
1170
|
+
};
|
|
1171
|
+
}
|
|
1172
|
+
async init() {
|
|
1173
|
+
this.initDom();
|
|
1174
|
+
}
|
|
1175
|
+
initDom() {
|
|
1176
|
+
let text = "Search an item";
|
|
1177
|
+
let height = "1px";
|
|
1178
|
+
if (this.isChat) {
|
|
1179
|
+
text = "Ask a question";
|
|
1180
|
+
height = "200px";
|
|
1181
|
+
}
|
|
1182
|
+
this.dom = {
|
|
1183
|
+
tip: new Menu({ padding: "5px" }),
|
|
1184
|
+
div: this.opts.subheader,
|
|
1185
|
+
error: this.opts.subheader.append("div").attr("id", "sjpp-corrVolcano-error").style("opacity", 0.75),
|
|
1186
|
+
bubbleDiv: this.opts.subheader.append("div").attr("class", "sjpp_show_scrollbar").style("margin", "5px 20px 0px 20px").style("height", height).style("overflow", "auto").style("scroll-behavior", "smooth")
|
|
1187
|
+
};
|
|
1188
|
+
const inputSel = this.dom.div.append("input").attr("type", "search").attr("data-testid", "sjpp-mass-omnisearch-input").style("margin", "15px").style("padding", "17px").style("border-radius", "34px").attr("size", 70).attr("placeholder", text);
|
|
1189
|
+
this.dom.inputNode = inputSel.node();
|
|
1190
|
+
this.dom.resultDiv = this.dom.tip.d.style("border-left", "solid 1px rgb(133,182,225)").style("padding-left", "5px").attr("tabindex", -1);
|
|
1191
|
+
inputSel.on("keyup.search", (event2) => handleOmnisearchKeyup(this, event2)).on("keyup.submit", async (event2) => {
|
|
1192
|
+
if (!keyupEnter(event2)) return;
|
|
1193
|
+
if (!this.isChat) {
|
|
1194
|
+
return;
|
|
1195
|
+
}
|
|
1196
|
+
const prompt2 = event2.target.value.trim();
|
|
1197
|
+
if (!prompt2) return;
|
|
1198
|
+
this.addBubble({ msg: escapeHtml(prompt2), me: 1 });
|
|
1199
|
+
event2.target.value = "";
|
|
1200
|
+
const serverBubble = this.addBubble({ msg: "..." });
|
|
1201
|
+
if (prompt2.length <= MIN_PROMPT_LENGTH_FOR_CHAT) {
|
|
1202
|
+
serverBubble.text("Your prompt is too short. Enter a longer prompt.");
|
|
1203
|
+
return;
|
|
1204
|
+
}
|
|
1205
|
+
const body = {
|
|
1206
|
+
genome: this.app.vocabApi.vocab.genome,
|
|
1207
|
+
dslabel: this.app.vocabApi.vocab.dslabel,
|
|
1208
|
+
filter: this.app.vocabApi.state.termfilter?.filter,
|
|
1209
|
+
prompt: prompt2
|
|
1210
|
+
};
|
|
1211
|
+
try {
|
|
1212
|
+
const data = await dofetch3("termdb/chat", { body });
|
|
1213
|
+
if (data.error) throw data.error;
|
|
1214
|
+
const result = data;
|
|
1215
|
+
if (result.type === "text") {
|
|
1216
|
+
serverBubble.text(result.text);
|
|
1217
|
+
} else if (result.type === "html") {
|
|
1218
|
+
serverBubble.html(result.html);
|
|
1219
|
+
} else if (result.type === "plot") {
|
|
1220
|
+
const optionField = findPossibleOptionsField(result.plot);
|
|
1221
|
+
if (optionField) {
|
|
1222
|
+
this.showPossibleOptions(serverBubble, result.plot, optionField, result.msg);
|
|
1223
|
+
} else {
|
|
1224
|
+
this.app.dispatch({
|
|
1225
|
+
type: "plot_create",
|
|
1226
|
+
config: result.plot
|
|
1227
|
+
});
|
|
1228
|
+
serverBubble.text(`${result.msg ? result.msg + ". " : ""}Please refer to the plot generated below.`);
|
|
1229
|
+
}
|
|
1230
|
+
}
|
|
1231
|
+
} catch (e) {
|
|
1232
|
+
if (e.stack) console.log(e.stack);
|
|
1233
|
+
serverBubble.html(`Error: ${e.message || e}`);
|
|
1234
|
+
}
|
|
1235
|
+
}).node().focus();
|
|
1236
|
+
}
|
|
1237
|
+
addBubble(arg) {
|
|
1238
|
+
const bubble = this.dom.bubbleDiv.append("div").style("padding", "10px").html(`${arg.me ? '<span style="font-size:.7em">[ME]</span> ' : ""}${arg.msg}`);
|
|
1239
|
+
if (arg.me) bubble.style("background", "#f1f1f1");
|
|
1240
|
+
const n = this.dom.bubbleDiv.node();
|
|
1241
|
+
n.scrollTop = n.scrollHeight;
|
|
1242
|
+
return bubble;
|
|
1243
|
+
}
|
|
1244
|
+
// Render click boxes for an incomplete plot state. `fieldKey` is the field of `plot` whose
|
|
1245
|
+
// value holds `possible_options`. Clicking a box completes the plot state and dispatches plot_create.
|
|
1246
|
+
// Each option completes the plot in one of two ways:
|
|
1247
|
+
// - opt.config: a config patch merged into the plot (the incomplete field is dropped). Used when the
|
|
1248
|
+
// choice sets other fields, e.g. the genome browser view sets blockIsProteinMode: true|false.
|
|
1249
|
+
// - otherwise: the incomplete field is set to { id: opt.id }, e.g. survival term selection -> term:{id}.
|
|
1250
|
+
showPossibleOptions(bubble, plot, fieldKey, msg) {
|
|
1251
|
+
const options = plot[fieldKey].possible_options || [];
|
|
1252
|
+
bubble.text(`${msg ? msg + ". " : ""}Multiple options are available. Please select one:`);
|
|
1253
|
+
const boxDiv = bubble.append("div").style("margin-top", "5px");
|
|
1254
|
+
for (const opt of options) {
|
|
1255
|
+
boxDiv.append("div").attr("class", "sja_menuoption").attr("data-testid", `sjpp-mass-chat-option-${opt.id}`).style("display", "inline-block").style("margin", "3px").style("padding", "5px 10px").style("border-radius", "5px").style("cursor", "pointer").text(opt.name).on("click", () => {
|
|
1256
|
+
const config = JSON.parse(JSON.stringify(plot));
|
|
1257
|
+
if (opt.config) {
|
|
1258
|
+
delete config[fieldKey];
|
|
1259
|
+
Object.assign(config, opt.config);
|
|
1260
|
+
} else {
|
|
1261
|
+
config[fieldKey] = { id: opt.id };
|
|
1262
|
+
}
|
|
1263
|
+
this.app.dispatch({
|
|
1264
|
+
type: "plot_create",
|
|
1265
|
+
config
|
|
1266
|
+
});
|
|
1267
|
+
bubble.selectAll("*").remove();
|
|
1268
|
+
bubble.text(`Selected "${opt.name}". Please refer to the plot generated below.`);
|
|
1269
|
+
});
|
|
1270
|
+
}
|
|
1271
|
+
}
|
|
1272
|
+
main() {
|
|
1273
|
+
if (this.opts.subheader.style("display") == "none") {
|
|
1274
|
+
this.dom.inputNode.blur();
|
|
1275
|
+
this.dom.tip.hide();
|
|
1276
|
+
return;
|
|
1277
|
+
}
|
|
1278
|
+
if (this.opts?.focus != "off") this.dom.inputNode.focus();
|
|
1279
|
+
}
|
|
1280
|
+
};
|
|
1281
|
+
var chatInit = getCompInit(MassAiChatBot);
|
|
1282
|
+
function escapeHtml(s) {
|
|
1283
|
+
return s.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """).replace(/'/g, "'");
|
|
1284
|
+
}
|
|
1285
|
+
function findPossibleOptionsField(plot) {
|
|
1286
|
+
if (!plot || typeof plot !== "object") return null;
|
|
1287
|
+
for (const key of Object.keys(plot)) {
|
|
1288
|
+
const val = plot[key];
|
|
1289
|
+
if (val && typeof val === "object" && Array.isArray(val.possible_options)) return key;
|
|
1290
|
+
}
|
|
1291
|
+
return null;
|
|
1292
|
+
}
|
|
1293
|
+
|
|
1294
|
+
// mass/nav.js
|
|
1295
|
+
var activeTabBgColor = "#ececec";
|
|
1296
|
+
var activeTabBgColorHover = "#e0e0e0";
|
|
1297
|
+
var activeTabTextColor = "black";
|
|
1298
|
+
var inactiveTabBgColorHover = "#fcfced";
|
|
1299
|
+
var inactiveTabTextColor = "gray";
|
|
1300
|
+
var instanceNum = 0;
|
|
1301
|
+
var idPrefix = "_MASS_AUTOID_" + Math.random().toString().slice(-6);
|
|
1302
|
+
var id = (+/* @__PURE__ */ new Date()).toString().slice(-8);
|
|
1303
|
+
var headtip = new Menu({ padding: "0px", offsetX: 0, offsetY: 0 });
|
|
1304
|
+
headtip.d.style("z-index", 5555);
|
|
1305
|
+
var aboutTab = { top: "ABOUT", mid: "", btm: "", subheader: "about" };
|
|
1306
|
+
var chartTab = { top: "CHARTS", mid: "NONE", btm: "", subheader: "charts" };
|
|
1307
|
+
var groupsTab = { top: "GROUPS", mid: "NONE", btm: "", subheader: "groups" };
|
|
1308
|
+
var filterTab = { top: "FILTER", mid: "NONE", btm: "", subheader: "filter" };
|
|
1309
|
+
function getId() {
|
|
1310
|
+
return idPrefix + "_" + id++;
|
|
1311
|
+
}
|
|
1312
|
+
var TdbNav = class _TdbNav {
|
|
1313
|
+
static type = "nav";
|
|
1314
|
+
constructor(opts) {
|
|
1315
|
+
this.type = _TdbNav.type;
|
|
1316
|
+
this.instanceNum = instanceNum++;
|
|
1317
|
+
this.tabs = [];
|
|
1318
|
+
this.activeTab = 0;
|
|
1319
|
+
this.activeCohort = 0;
|
|
1320
|
+
this.samplecounts = {};
|
|
1321
|
+
this.searching = false;
|
|
1322
|
+
this.massSessionDuration = opts.massSessionDuration;
|
|
1323
|
+
this.sessionDaysLeft = opts.app.opts.sessionDaysLeft || null;
|
|
1324
|
+
this.sessionId = opts.app.opts.sessionId || null;
|
|
1325
|
+
this.pkgver = opts.pkgver || null;
|
|
1326
|
+
setInteractivity(this);
|
|
1327
|
+
setRenderers(this);
|
|
1328
|
+
}
|
|
1329
|
+
async init(appState) {
|
|
1330
|
+
try {
|
|
1331
|
+
this.cohortFilter = getFilterItemByTag(appState.termfilter.filter, "cohortFilter");
|
|
1332
|
+
this.initUI(appState);
|
|
1333
|
+
if (appState?.termdbConfig?.selectCohort) {
|
|
1334
|
+
this.dom.tds.filter((d) => d.colNum === 0).style("display", "");
|
|
1335
|
+
this.cohortNames = appState.termdbConfig.selectCohort.values.map((d) => d.keys.slice().sort().join(","));
|
|
1336
|
+
}
|
|
1337
|
+
this.components = await multiInit({
|
|
1338
|
+
filter: filterRxCompInit({
|
|
1339
|
+
app: this.app,
|
|
1340
|
+
vocabApi: this.app.vocabApi,
|
|
1341
|
+
holder: this.dom.subheader.filter.append("div").style("margin", "5px"),
|
|
1342
|
+
hideLabel: this.opts.header_mode === "with_tabs",
|
|
1343
|
+
emptyLabel: "+Add new filter",
|
|
1344
|
+
callback: (filter) => {
|
|
1345
|
+
this.app.dispatch({
|
|
1346
|
+
type: "filter_replace",
|
|
1347
|
+
filter
|
|
1348
|
+
});
|
|
1349
|
+
}
|
|
1350
|
+
}),
|
|
1351
|
+
charts: chartsInit({
|
|
1352
|
+
app: this.app,
|
|
1353
|
+
holder: this.dom.subheader.charts,
|
|
1354
|
+
vocab: this.opts.vocab
|
|
1355
|
+
}),
|
|
1356
|
+
groups: groupsInit({
|
|
1357
|
+
app: this.app,
|
|
1358
|
+
holder: this.dom.subheader.groups,
|
|
1359
|
+
vocab: this.opts.vocab
|
|
1360
|
+
}),
|
|
1361
|
+
recover: recoverInit({
|
|
1362
|
+
app: this.app,
|
|
1363
|
+
holder: this.dom.recoverDiv,
|
|
1364
|
+
// TODO: ???? may limit the tracked state to only the filter, activeCohort ???
|
|
1365
|
+
getState: (appState2) => appState2,
|
|
1366
|
+
reactsTo: (action) => action.type != "plot_edit",
|
|
1367
|
+
maxHistoryLen: 5
|
|
1368
|
+
}),
|
|
1369
|
+
sessionBtn: sessionBtnInit({
|
|
1370
|
+
app: this.app,
|
|
1371
|
+
button: this.dom.saveBtn,
|
|
1372
|
+
massSessionDuration: this.opts.massSessionDuration,
|
|
1373
|
+
sessionDaysLeft: this.app.opts.sessionDaysLeft || null
|
|
1374
|
+
}),
|
|
1375
|
+
about: aboutInit({
|
|
1376
|
+
app: this.app,
|
|
1377
|
+
subheader: this.dom.subheader.about,
|
|
1378
|
+
instanceNum: this.instanceNum,
|
|
1379
|
+
aboutOverrides: appState?.termdbConfig?.massNav?.tabs?.about || null,
|
|
1380
|
+
selectCohort: appState?.termdbConfig?.selectCohort || null
|
|
1381
|
+
}),
|
|
1382
|
+
chat: chatInit({
|
|
1383
|
+
app: this.app,
|
|
1384
|
+
subheader: this.dom.subheader.chat
|
|
1385
|
+
})
|
|
1386
|
+
});
|
|
1387
|
+
this.mayShowMessage_sessionDaysLeft();
|
|
1388
|
+
} catch (e) {
|
|
1389
|
+
throw e;
|
|
1390
|
+
}
|
|
1391
|
+
}
|
|
1392
|
+
reactsTo(action) {
|
|
1393
|
+
if (action.type.includes("cache_termq")) return true;
|
|
1394
|
+
if (action.type.startsWith("filter")) return true;
|
|
1395
|
+
if (action.type.startsWith("cohort")) return true;
|
|
1396
|
+
if (action.type.startsWith("tab")) return true;
|
|
1397
|
+
if (action.type == "plot_prep") return true;
|
|
1398
|
+
if (action.type == "plot_create") return true;
|
|
1399
|
+
if (action.type == "plot_delete") return true;
|
|
1400
|
+
if (action.type == "app_refresh") return true;
|
|
1401
|
+
if (action.type.endsWith("_customTerm")) return true;
|
|
1402
|
+
if (action.type.endsWith("_group")) return true;
|
|
1403
|
+
}
|
|
1404
|
+
getState(appState) {
|
|
1405
|
+
return {
|
|
1406
|
+
searching: this.searching,
|
|
1407
|
+
// for detection of internal state change
|
|
1408
|
+
nav: appState.nav,
|
|
1409
|
+
activeCohort: appState.activeCohort,
|
|
1410
|
+
termdbConfig: appState.termdbConfig,
|
|
1411
|
+
filter: appState.termfilter.filter,
|
|
1412
|
+
plots: appState.plots,
|
|
1413
|
+
groups: appState.groups
|
|
1414
|
+
};
|
|
1415
|
+
}
|
|
1416
|
+
async main() {
|
|
1417
|
+
this.dom.tabDiv.style("display", this.state.nav.header_mode === "with_tabs" ? "inline-block" : "none");
|
|
1418
|
+
this.dom.tip.hide();
|
|
1419
|
+
this.activeTab = this.state.nav.activeTab;
|
|
1420
|
+
this.prevCohort = this.activeCohort;
|
|
1421
|
+
this.activeCohort = +this.state.activeCohort;
|
|
1422
|
+
this.filterUiRoot = getFilterItemByTag(this.state.filter, "filterUiRoot");
|
|
1423
|
+
this.cohortFilter = getFilterItemByTag(this.state.filter, "cohortFilter");
|
|
1424
|
+
if (this.cohortNames) {
|
|
1425
|
+
this.activeCohortName = this.cohortNames[this.activeCohort];
|
|
1426
|
+
if (this.activeCohort !== -1)
|
|
1427
|
+
this.activeCohortLabel = this.state.termdbConfig.selectCohort.values[this.activeCohort].shortLabel;
|
|
1428
|
+
}
|
|
1429
|
+
this.filterJSON = JSON.stringify(this.state.filter);
|
|
1430
|
+
this.cohortsData = await this.app.vocabApi.getCohortsData();
|
|
1431
|
+
if (this.state.nav.header_mode === "with_tabs") {
|
|
1432
|
+
if (!(this.activeCohort in this.samplecounts)) {
|
|
1433
|
+
this.samplecounts[this.activeCohort] = await this.app.vocabApi.getCohortSampleCount(this.activeCohortName);
|
|
1434
|
+
}
|
|
1435
|
+
if (!(this.filterJSON in this.samplecounts)) {
|
|
1436
|
+
if (!this.filterUiRoot || !this.filterUiRoot.lst.length) {
|
|
1437
|
+
this.samplecounts[this.filterJSON] = this.samplecounts[this.activeCohort];
|
|
1438
|
+
} else {
|
|
1439
|
+
const n = await this.app.vocabApi.getFilteredSampleCount(this.filterJSON);
|
|
1440
|
+
this.samplecounts[this.filterJSON] = n;
|
|
1441
|
+
}
|
|
1442
|
+
}
|
|
1443
|
+
}
|
|
1444
|
+
this.updateUI();
|
|
1445
|
+
}
|
|
1446
|
+
};
|
|
1447
|
+
var navInit = getCompInit(TdbNav);
|
|
1448
|
+
function setRenderers(self) {
|
|
1449
|
+
self.initUI = (appState) => {
|
|
1450
|
+
const verifiedToken = self.app.vocabApi.verifiedToken;
|
|
1451
|
+
const invalidTokenErrorHandling = appState.termdbConfig.invalidTokenErrorHandling;
|
|
1452
|
+
if (!verifiedToken && invalidTokenErrorHandling?.affectedCharts?.includes("*"))
|
|
1453
|
+
throw new Error(appState.termdbConfig.invalidTokenErrorHandling.errorMessage);
|
|
1454
|
+
const header = self.opts.holder.append("div").style("white-space", "nowrap");
|
|
1455
|
+
const massNav = appState.termdbConfig?.massNav || {};
|
|
1456
|
+
let titleDiv = header.append("div").style("display", "inline-block").style("float", "right").style("font-size", "1.1em").style("margin", "50px 10px 0 0").text(massNav?.title?.text);
|
|
1457
|
+
const tabDiv = header.append("div").style("display", "none").style("vertical-align", "bottom");
|
|
1458
|
+
const controlsDiv = header.append("div").style("vertical-align", "top").style("margin", "10px").style("display", "inline-block").style("float", "right");
|
|
1459
|
+
if (self.opts.header_mode === "only_buttons") {
|
|
1460
|
+
tabDiv.style("display", "none");
|
|
1461
|
+
titleDiv.style("display", "none");
|
|
1462
|
+
controlsDiv.style("display", "none");
|
|
1463
|
+
}
|
|
1464
|
+
self.opts.holder.attr("class", "sjpp-nav");
|
|
1465
|
+
self.dom = {
|
|
1466
|
+
holder: self.opts.holder,
|
|
1467
|
+
header,
|
|
1468
|
+
tabDiv,
|
|
1469
|
+
controlsDiv,
|
|
1470
|
+
searchDiv: controlsDiv.append("div").style("margin", "10px"),
|
|
1471
|
+
sessionDiv: controlsDiv.append("div").style("display", "inline-block"),
|
|
1472
|
+
recoverDiv: controlsDiv.append("div").style("display", "inline-block"),
|
|
1473
|
+
pdfDiv: controlsDiv.append("div").style("display", "inline-block").style("padding", "4px").style("vertical-align", "middle"),
|
|
1474
|
+
deleteAllDiv: controlsDiv.append("div").style("display", "inline-block").style("padding", "4px").style("vertical-align", "middle"),
|
|
1475
|
+
helpDiv: controlsDiv.append("div").style("display", "none"),
|
|
1476
|
+
sessionElapsedMessageDiv: controlsDiv.append("div").style("display", "none"),
|
|
1477
|
+
subheaderDiv: self.opts.holder.append("div").style("display", "block").style("border-bottom", "1px solid #000"),
|
|
1478
|
+
messageDiv: self.opts.holder.append("div").style("margin", "30px").style("display", "none"),
|
|
1479
|
+
titleDiv,
|
|
1480
|
+
tip: new Menu({ padding: "5px" })
|
|
1481
|
+
};
|
|
1482
|
+
icons["trash"](self.dom.deleteAllDiv, {
|
|
1483
|
+
handler: self.deletePlots,
|
|
1484
|
+
title: "Delete all plots. To revert, click Undo button"
|
|
1485
|
+
});
|
|
1486
|
+
icons["pdf"](self.dom.pdfDiv, {
|
|
1487
|
+
handler: self.opts.downloadPlots,
|
|
1488
|
+
title: "Generate a PDF of all the plots opened"
|
|
1489
|
+
});
|
|
1490
|
+
if (self.opts.header_mode === "with_cohortHtmlSelect") {
|
|
1491
|
+
self.dom.cohortStandaloneDiv = header.append("div").style("display", "inline-block").style("margin", "10px").style("vertical-align", "top");
|
|
1492
|
+
self.dom.cohortStandaloneDiv.append("label").html("Cohort: ");
|
|
1493
|
+
self.dom.cohortSelect = self.dom.cohortStandaloneDiv.append("select").on("change", async function() {
|
|
1494
|
+
self.app.dispatch({ type: "cohort_set", activeCohort: +this.value });
|
|
1495
|
+
});
|
|
1496
|
+
self.dom.cohortSelect.selectAll("option").data(appState.termdbConfig.selectCohort.values).enter().append("option").attr("value", (d, i) => i).property("selected", (d, i) => i === appState.activeCohort).html((d) => d.shortLabel);
|
|
1497
|
+
}
|
|
1498
|
+
self.dom.subheader = Object.freeze({
|
|
1499
|
+
// For either the COHORT or ABOUT tab
|
|
1500
|
+
about: self.dom.subheaderDiv.append("div").attr("data-testid", "sjpp-mass-nav-subheader-about").style("display", "none"),
|
|
1501
|
+
search: self.dom.subheaderDiv.append("div").attr("data-testid", "sjpp-mass-nav-subheader-search").style("display", "none"),
|
|
1502
|
+
groups: self.dom.subheaderDiv.append("div").attr("data-testid", "sjpp-mass-nav-subheader-groups").style("display", "none"),
|
|
1503
|
+
charts: self.dom.subheaderDiv.append("div").attr("data-testid", "sjpp-mass-nav-subheader-charts").style("display", "none"),
|
|
1504
|
+
filter: self.dom.subheaderDiv.append("div").attr("data-testid", "sjpp-mass-nav-subheader-filter").style("display", "none"),
|
|
1505
|
+
chat: self.dom.subheaderDiv.append("div").attr("data-testid", "sjpp-mass-nav-subheader-chat").style("display", "none")
|
|
1506
|
+
// cart: self.dom.subheaderDiv.append('div').style('display', 'none').html('<br/>Cart feature under construction - work in progress<br/> <br/>'),
|
|
1507
|
+
});
|
|
1508
|
+
if (!massNav.tabs?.about?.hide) {
|
|
1509
|
+
self.tabs.push(aboutTab);
|
|
1510
|
+
const override = Object.assign({}, massNav.tabs?.about);
|
|
1511
|
+
if (appState.termdbConfig?.selectCohort) {
|
|
1512
|
+
if (!override.top) override.top = "COHORT";
|
|
1513
|
+
} else {
|
|
1514
|
+
if (!override.mid) override.mid = self.pickDatasetLabel(appState);
|
|
1515
|
+
}
|
|
1516
|
+
Object.assign(aboutTab, override);
|
|
1517
|
+
}
|
|
1518
|
+
if (!massNav.tabs?.charts?.hide) {
|
|
1519
|
+
self.tabs.push(chartTab);
|
|
1520
|
+
Object.assign(chartTab, massNav.tabs?.charts);
|
|
1521
|
+
}
|
|
1522
|
+
if (!massNav.tabs?.groups?.hide) {
|
|
1523
|
+
self.tabs.push(groupsTab);
|
|
1524
|
+
Object.assign(groupsTab, massNav.tabs?.groups);
|
|
1525
|
+
}
|
|
1526
|
+
if (!massNav.tabs?.filter?.hide) {
|
|
1527
|
+
self.tabs.push(filterTab);
|
|
1528
|
+
Object.assign(filterTab, massNav.tabs?.filter);
|
|
1529
|
+
}
|
|
1530
|
+
if (!massNav.tabs?.chat?.hide) {
|
|
1531
|
+
if (appState.termdbConfig?.queries?.chat) {
|
|
1532
|
+
const chatTab = { top: "CHAT", mid: "", btm: "", subheader: "chat" };
|
|
1533
|
+
Object.assign(chatTab, massNav.tabs?.chat);
|
|
1534
|
+
chatTab.top = "CHAT";
|
|
1535
|
+
self.tabs.push(chatTab);
|
|
1536
|
+
} else {
|
|
1537
|
+
const searchTab = { top: "SEARCH", mid: "", btm: "", subheader: "chat" };
|
|
1538
|
+
Object.assign(searchTab, massNav.tabs?.chat);
|
|
1539
|
+
searchTab.top = "SEARCH";
|
|
1540
|
+
self.tabs.push(searchTab);
|
|
1541
|
+
}
|
|
1542
|
+
}
|
|
1543
|
+
const table = self.dom.tabDiv.append("table").attr("data-testid", "sjpp-nav-tabs-table").style("border-collapse", "collapse");
|
|
1544
|
+
table.selectAll("tr").data(["top", "mid", "btm"]).enter().append("tr").attr("class", (d, i) => `sjpp-nav-tabs-row-${i}`).style("font-size", (d, i) => i == 1 ? "20px" : "12px").selectAll("td").data(
|
|
1545
|
+
(key, i) => self.tabs.map((row, colNum) => {
|
|
1546
|
+
return {
|
|
1547
|
+
rowNum: i,
|
|
1548
|
+
key,
|
|
1549
|
+
colNum,
|
|
1550
|
+
label: row[key],
|
|
1551
|
+
subheader: row.subheader,
|
|
1552
|
+
disabled: row.disabled,
|
|
1553
|
+
disabledMessage: row.disabledMessage
|
|
1554
|
+
};
|
|
1555
|
+
})
|
|
1556
|
+
).enter().append("td").attr("class", (d) => `sjpp-nav-tab-col-${d.colNum}`).style("display", "none").style("width", "100px").style("padding", (d) => d.rowNum === 0 ? "12px 12px 3px 12px" : "3px 12px").style("text-align", "center").style("border-left", "1px solid #ccc").style("border-right", "1px solid #ccc").style("color", "#aaa").style("opacity", (d) => d.disabled ? 0.5 : 1).style("cursor", (d) => d.disabled ? "not-allowed" : "pointer").attr("title", (d) => d.disabledMessage || "").html((d) => d.label).on("click", (event2, d) => {
|
|
1557
|
+
self.setTab(event2, d);
|
|
1558
|
+
}).on("mouseover", (event2, d) => {
|
|
1559
|
+
self.mouseover(event2, d);
|
|
1560
|
+
}).on("mouseout", () => {
|
|
1561
|
+
self.mouseout();
|
|
1562
|
+
});
|
|
1563
|
+
self.dom.trs = table.selectAll("tr");
|
|
1564
|
+
self.dom.tds = table.selectAll("td");
|
|
1565
|
+
self.subheaderKeys = self.tabs.map((d) => d.subheader);
|
|
1566
|
+
self.dom.saveBtn = self.dom.sessionDiv.append("button").attr("data-testid", "sjpp-nav-session-btn").style("margin", "10px").text("Session \u25BC");
|
|
1567
|
+
if (self.sessionDaysLeft != null) {
|
|
1568
|
+
self.dom.fileBtn = self.dom.sessionDiv.append("button").attr("data-testid", "sjpp-nav-file-btn").style("margin", "10px").text("Export Session").on("click", (event2) => {
|
|
1569
|
+
self.getSessionFile(event2);
|
|
1570
|
+
});
|
|
1571
|
+
}
|
|
1572
|
+
};
|
|
1573
|
+
self.deletePlots = () => {
|
|
1574
|
+
const state = self.app.getState();
|
|
1575
|
+
const subactions = [];
|
|
1576
|
+
for (const plot of state.plots) subactions.push({ type: "plot_delete", id: plot.id });
|
|
1577
|
+
self.app.dispatch({ type: "app_refresh", subactions });
|
|
1578
|
+
};
|
|
1579
|
+
self.mayShowMessage_sessionDaysLeft = () => {
|
|
1580
|
+
if (!Number.isFinite(self.sessionDaysLeft)) {
|
|
1581
|
+
return;
|
|
1582
|
+
}
|
|
1583
|
+
self.dom.sessionElapsedMessageDiv.style("display", "block");
|
|
1584
|
+
self.dom.remainingDaysMessage = self.dom.sessionElapsedMessageDiv.append("div").style("display", "block").style("opacity", "0.65").html(
|
|
1585
|
+
`<u>${self.sessionDaysLeft} days</u> left until this session is removed. Click the "Session \u25BC" button and select "Save" option to create a new one.`
|
|
1586
|
+
);
|
|
1587
|
+
};
|
|
1588
|
+
self.updateUI = async () => {
|
|
1589
|
+
if (!self.dom.subheaderDiv) return;
|
|
1590
|
+
if (self.activeTab && self.state.termdbConfig.selectCohort && self.activeCohort == -1) {
|
|
1591
|
+
self.dom.subheaderDiv.style("display", "none");
|
|
1592
|
+
self.dom.messageDiv.selectAll("text").remove();
|
|
1593
|
+
self.dom.messageDiv.style("display", "").text('No cohort selected. Please select a cohort in the "COHORT" tab.');
|
|
1594
|
+
} else {
|
|
1595
|
+
if (self.dom.subheaderDiv) self.dom.subheaderDiv.style("display", self.activeTab != -1 ? "block" : "none");
|
|
1596
|
+
if (self.dom.messageDiv) self.dom.messageDiv.style("display", "none");
|
|
1597
|
+
}
|
|
1598
|
+
const selectCohort = self.state.termdbConfig.selectCohort;
|
|
1599
|
+
const massNav = self.state.termdbConfig.massNav;
|
|
1600
|
+
self.dom.searchDiv.style("display", selectCohort && self.activeCohort == -1 ? "none" : "inline-block");
|
|
1601
|
+
self.dom.header.style("border-bottom", self.state.nav.header_mode === "with_tabs" ? "1px solid #000" : "");
|
|
1602
|
+
self.dom.tds.style("display", "").style("color", (d) => d.colNum == self.activeTab ? activeTabTextColor : inactiveTabTextColor).style(
|
|
1603
|
+
"background-color",
|
|
1604
|
+
(d) => d.colNum == self.activeTab && self.dom.subheaderDiv.style("display") != "none" ? self.state.termdbConfig.massNav?.activeColor || activeTabBgColor : "transparent"
|
|
1605
|
+
).html(function(d, i) {
|
|
1606
|
+
if (d.key == "top") return this.innerHTML;
|
|
1607
|
+
if (d.subheader == "groups") {
|
|
1608
|
+
if (d.key == "mid") return self.state.groups.length || "NONE";
|
|
1609
|
+
return "";
|
|
1610
|
+
}
|
|
1611
|
+
if (d.subheader === "charts") {
|
|
1612
|
+
const n = self.state.plots.filter((p) => !p.parentId).length;
|
|
1613
|
+
if (d.key == "mid") return !n ? "NONE" : n;
|
|
1614
|
+
else return "";
|
|
1615
|
+
} else if (d.subheader === "about") {
|
|
1616
|
+
if (self.activeCohort != -1 && self.activeCohort in self.samplecounts) {
|
|
1617
|
+
const aboutMap = {
|
|
1618
|
+
top: this.innerHTML,
|
|
1619
|
+
mid: self.activeCohortLabel,
|
|
1620
|
+
btm: self.samplecounts[self.activeCohort]
|
|
1621
|
+
};
|
|
1622
|
+
return aboutMap[d.key] || "";
|
|
1623
|
+
} else if (!selectCohort) {
|
|
1624
|
+
const aboutMap = {
|
|
1625
|
+
top: massNav?.tabs?.about?.top || "ABOUT",
|
|
1626
|
+
mid: massNav?.tabs?.about?.mid || this.innerHTML,
|
|
1627
|
+
btm: massNav?.tabs?.about?.btm || self.samplecounts[self.activeCohort]
|
|
1628
|
+
};
|
|
1629
|
+
return aboutMap[d.key] || "";
|
|
1630
|
+
} else {
|
|
1631
|
+
return d.key === "mid" ? "NONE" : this.innerHTML;
|
|
1632
|
+
}
|
|
1633
|
+
} else if (d.subheader === "filter") {
|
|
1634
|
+
const filter = self.filterUiRoot ? self.filterUiRoot : { lst: [] };
|
|
1635
|
+
if (filter.lst.length === 0) {
|
|
1636
|
+
return d.key === "mid" ? "NONE" : "";
|
|
1637
|
+
} else {
|
|
1638
|
+
const n = self.samplecounts[self.filterJSON] != void 0 ? "" + self.samplecounts[self.filterJSON] : "";
|
|
1639
|
+
return d.key === "mid" ? filter.lst.length : n;
|
|
1640
|
+
}
|
|
1641
|
+
} else {
|
|
1642
|
+
return d.key === "mid" ? this.innerHTML : " ";
|
|
1643
|
+
}
|
|
1644
|
+
});
|
|
1645
|
+
for (const key in self.dom.subheader) {
|
|
1646
|
+
self.dom.subheader[key].style(
|
|
1647
|
+
"display",
|
|
1648
|
+
self.activeTab == -1 ? "none" : self.tabs[self.activeTab].subheader === key ? "block" : "none"
|
|
1649
|
+
);
|
|
1650
|
+
}
|
|
1651
|
+
if (self.opts.header_mode === "with_cohortHtmlSelect") {
|
|
1652
|
+
self.dom.cohortSelect.selectAll("option").property("value", self.activeCohort);
|
|
1653
|
+
}
|
|
1654
|
+
};
|
|
1655
|
+
}
|
|
1656
|
+
function setInteractivity(self) {
|
|
1657
|
+
self.setTab = async (event2, d) => {
|
|
1658
|
+
if (d.disabled) return;
|
|
1659
|
+
if (d.colNum === self.activeTab && !self.searching) {
|
|
1660
|
+
if (self.activeTab == 0) return;
|
|
1661
|
+
self.prevCohort = self.activeCohort;
|
|
1662
|
+
await self.updateUI();
|
|
1663
|
+
self.app.dispatch({ type: "tab_set", activeTab: -1 });
|
|
1664
|
+
return;
|
|
1665
|
+
}
|
|
1666
|
+
self.activeTab = d.colNum;
|
|
1667
|
+
self.searching = false;
|
|
1668
|
+
self.app.dispatch({ type: "tab_set", activeTab: self.activeTab });
|
|
1669
|
+
const chartsIdx = self.subheaderKeys.indexOf("charts");
|
|
1670
|
+
if (self.activeTab == chartsIdx && self.activeCohort != -1 && !self.state.plots.length) {
|
|
1671
|
+
const defaultChartType = self.state.termdbConfig.defaultChartType || "dictionary";
|
|
1672
|
+
self.app.dispatch({
|
|
1673
|
+
type: "plot_create",
|
|
1674
|
+
id: getId(),
|
|
1675
|
+
config: { chartType: defaultChartType }
|
|
1676
|
+
});
|
|
1677
|
+
}
|
|
1678
|
+
};
|
|
1679
|
+
self.mouseover = (event2, d) => {
|
|
1680
|
+
const defaultActiveColor = self.state.termdbConfig.massNav?.activeColor || activeTabBgColor;
|
|
1681
|
+
self.dom.tds.style("background-color", (t) => {
|
|
1682
|
+
if (t.colNum === d.colNum)
|
|
1683
|
+
return self.activeTab == t.colNum ? self.state.termdbConfig.massNav?.activeColorHover || activeTabBgColorHover : inactiveTabBgColorHover;
|
|
1684
|
+
return self.activeTab == t.colNum ? defaultActiveColor : "transparent";
|
|
1685
|
+
});
|
|
1686
|
+
};
|
|
1687
|
+
self.mouseout = () => {
|
|
1688
|
+
const defaultActiveColor = self.state.termdbConfig.massNav?.activeColor || activeTabBgColor;
|
|
1689
|
+
self.dom.tds.style("background-color", (t) => self.activeTab == t.colNum ? defaultActiveColor : "transparent");
|
|
1690
|
+
};
|
|
1691
|
+
self.getSessionFile = async (event2) => {
|
|
1692
|
+
const res = await dofetch3(`/massSession?id=${self.sessionId}`);
|
|
1693
|
+
const a = document.createElement("a");
|
|
1694
|
+
const dataStr = "data:application/json;charset=utf-8," + encodeURIComponent(JSON.stringify(res.state));
|
|
1695
|
+
a.setAttribute("href", dataStr);
|
|
1696
|
+
a.download = `${self.sessionId}.json`;
|
|
1697
|
+
a.click();
|
|
1698
|
+
a.remove();
|
|
1699
|
+
};
|
|
1700
|
+
self.pickDatasetLabel = (appState) => {
|
|
1701
|
+
const dslabel = appState.vocab.dslabel.toUpperCase();
|
|
1702
|
+
return dslabel.length > 10 ? `${dslabel.slice(0, 10)}...` : dslabel;
|
|
1703
|
+
};
|
|
1704
|
+
}
|
|
1705
|
+
|
|
1706
|
+
export {
|
|
1707
|
+
getId,
|
|
1708
|
+
navInit
|
|
1709
|
+
};
|
|
1710
|
+
//# sourceMappingURL=chunk-V2DU2OXH.js.map
|