@sjcrh/proteinpaint-client 2.210.1 → 2.211.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-FEZRNHDF.js +1367 -0
- package/dist/AggMatrixInput-6FJIELYO.js +406 -0
- package/dist/AggregateMatrix-MUPBUGIZ.js +41 -0
- package/dist/AppHeader-ZTNZ62UL.js +830 -0
- package/dist/BoxPlot-P5SVFYSB.js +1208 -0
- package/dist/BoxPlot-P5SVFYSB.js.map +7 -0
- package/dist/CorrelationVolcano-42NYXAXG.js +617 -0
- package/dist/Cuminc-6AKLT6HF.js +1219 -0
- package/dist/DE-KJHFZWND.js +89 -0
- package/dist/DEinput-HXB3LYZW.js +501 -0
- package/dist/DM-AAHX4PLH.js +90 -0
- package/dist/DifferentialAnalysis-JX4EDEOY.js +239 -0
- package/dist/Disco-GXKO4QQH.js +3389 -0
- package/dist/Disco.UI-DGD4RXJP.js +243 -0
- package/dist/DmrPlot-DQ3XTMTN.js +362 -0
- package/dist/GB-OUWNNBBK.js +1392 -0
- package/dist/GSEA-DSKGFAPG.js +875 -0
- package/dist/GeneExpInput-FZLOBE2Q.js +42 -0
- package/dist/Geomap-GP5KD3OX.js +84 -0
- package/dist/HicApp-2N6WYWZX.js +2245 -0
- package/dist/IDCViewer-MSUC7IXX.js +10812 -0
- package/dist/NumBinaryEditor-C4G2IH36.js +279 -0
- package/dist/NumBinaryEditor.unit.spec-ZAVAUGXA.js +312 -0
- package/dist/NumContEditor-VEEMMWHX.js +105 -0
- package/dist/NumContEditor.unit.spec-65ORC42O.js +164 -0
- package/dist/NumCustomBinEditor-YIUHJAXP.js +33 -0
- package/dist/NumCustomBinEditor.unit.spec-NT5VK2LO.js +397 -0
- package/dist/NumDiscreteEditor-A4WELAJH.js +170 -0
- package/dist/NumDiscreteEditor.unit.spec-7QABM6KK.js +233 -0
- package/dist/NumRegularBinEditor-IPVPLSQY.js +33 -0
- package/dist/NumRegularBinEditor.unit.spec-Q4DMWATB.js +278 -0
- package/dist/NumSplineEditor-5E6CIWLP.js +210 -0
- package/dist/NumSplineEditor.unit.spec-DHJF5F6H.js +224 -0
- package/dist/NumericDensity-GXMWWK2A.js +33 -0
- package/dist/NumericDensity.unit.spec-OAPOMSEW.js +418 -0
- package/dist/NumericHandler-H5WHGFXD.js +34 -0
- package/dist/NumericHandler.unit.spec-PBNOJEMS.js +214 -0
- package/dist/ProteomeInput-ZA7R5S43.js +388 -0
- package/dist/Regression-WSWTSXFX.js +1416 -0
- package/dist/RunChart2-J5CTJI5C.js +749 -0
- package/dist/SC-POCQDMWZ.js +1181 -0
- package/dist/SC-POCQDMWZ.js.map +7 -0
- package/dist/Violin-VA6FBRUQ.js +1064 -0
- package/dist/Violin-VA6FBRUQ.js.map +7 -0
- package/dist/Volcano-4IEQIEDS.js +2456 -0
- package/dist/Wsi-LJ6AY5RI.js +629 -0
- package/dist/adSandbox-EIN4KEML.js +33 -0
- package/dist/animatedBubbleChart-LINYUKMD.js +547 -0
- package/dist/app-SE7UQ5DB.js +42 -0
- package/dist/app-VGMZNGWP.js +32 -0
- package/dist/app.js +16 -16
- package/dist/bam-ZXEZWRSZ.js +876 -0
- package/dist/barchart-N4B4C2FO.js +42 -0
- package/dist/barchart2-EDVEWTVX.js +309 -0
- package/dist/block-E7YUGCHL.js +6250 -0
- package/dist/block.init-FSOCF2IM.js +33 -0
- package/dist/block.mds.expressionrank-EDBTITXU.js +354 -0
- package/dist/block.mds.geneboxplot-GG5672SY.js +823 -0
- package/dist/block.mds.junction-HUC4S24K.js +1539 -0
- package/dist/block.mds.svcnv-EQHYCIBU.js +6796 -0
- package/dist/block.svg-HBVPUQJ2.js +159 -0
- package/dist/block.tk.aicheck-TRJ5IIWZ.js +278 -0
- package/dist/block.tk.ase-COV7YYYO.js +360 -0
- package/dist/block.tk.bam-MDSLY6NH.js +1901 -0
- package/dist/block.tk.bedgraphdot-MKWEL53X.js +379 -0
- package/dist/block.tk.bigwig.ui-UKKJX7TA.js +206 -0
- package/dist/block.tk.hicstraw-6LNXEIOF.js +818 -0
- package/dist/block.tk.junction-F3SERFFD.js +2358 -0
- package/dist/block.tk.junction.textmatrixui-2XUMSKLS.js +194 -0
- package/dist/block.tk.ld-COP5RUJJ.js +94 -0
- package/dist/block.tk.menu-SRDPD44N.js +1024 -0
- package/dist/block.tk.pgv-3SVINTXN.js +938 -0
- package/dist/brainImaging-UNBA4KA3.js +555 -0
- package/dist/brainRegions-DC6TQB53.js +217 -0
- package/dist/bubbleHeatmap-X3W3AZJY.js +378 -0
- package/dist/cellTypeBubbleHeatmap-LFI6TGOO.js +278 -0
- package/dist/chunk-2ANFUNS3.js +102 -0
- package/dist/chunk-2G4SFRWC.js +1278 -0
- package/dist/chunk-2WKGE7BO.js +54 -0
- package/dist/chunk-3CGMCYZB.js +237 -0
- package/dist/chunk-3I4DBVLM.js +55 -0
- package/dist/chunk-42VFF74T.js +397 -0
- package/dist/chunk-4ENIOXIT.js +133 -0
- package/dist/chunk-4ENIOXIT.js.map +7 -0
- package/dist/chunk-4HTRCXLS.js +98 -0
- package/dist/chunk-55T2AMJ3.js +281 -0
- package/dist/chunk-57Z4VYLM.js +1616 -0
- package/dist/chunk-57Z4VYLM.js.map +7 -0
- package/dist/chunk-5JDG5NNA.js +203 -0
- package/dist/chunk-6AFMWQXZ.js +339 -0
- package/dist/chunk-6ECKCC4X.js +294 -0
- package/dist/chunk-6QMC7LFA.js +299 -0
- package/dist/chunk-6XKAOSQE.js +116 -0
- package/dist/chunk-6XKAOSQE.js.map +7 -0
- package/dist/chunk-72L6NTNT.js +14 -0
- package/dist/chunk-7ISAV37C.js +194 -0
- package/dist/chunk-7MFY22IZ.js +2902 -0
- package/dist/chunk-7MFY22IZ.js.map +7 -0
- package/dist/chunk-7XZA2XR2.js +424 -0
- package/dist/chunk-7XZA2XR2.js.map +7 -0
- package/dist/chunk-A32XQLMP.js +49 -0
- package/dist/chunk-A3MYBXG3.js +274 -0
- package/dist/chunk-AU3Y6IQF.js +1339 -0
- package/dist/chunk-AXL3CC4U.js +468 -0
- package/dist/chunk-BSWVDH75.js +26 -0
- package/dist/chunk-CME6DYDH.js +424 -0
- package/dist/chunk-D637XDOT.js +417 -0
- package/dist/chunk-D637XDOT.js.map +7 -0
- package/dist/chunk-DD3DWHUY.js +119 -0
- package/dist/chunk-DKED35KW.js +2327 -0
- package/dist/chunk-DPGALT5N.js +255 -0
- package/dist/chunk-DPTGY4BW.js +129 -0
- package/dist/chunk-DQD4MTK4.js +379 -0
- package/dist/chunk-EFLRT7JY.js +243 -0
- package/dist/chunk-EMSO3BNW.js +34 -0
- package/dist/chunk-F2LWFF7V.js +158 -0
- package/dist/chunk-F2LWFF7V.js.map +7 -0
- package/dist/chunk-F5QB5YEE.js +276 -0
- package/dist/chunk-FKSR53VK.js +182 -0
- package/dist/chunk-FSWBNSQD.js +178 -0
- package/dist/chunk-G6ZIO5T3.js +37 -0
- package/dist/chunk-GP4VLNMZ.js +2149 -0
- package/dist/chunk-GP4VLNMZ.js.map +7 -0
- package/dist/chunk-HTZJQNHP.js +562 -0
- package/dist/chunk-ITYNHDDD.js +56 -0
- package/dist/chunk-IWVCFZHQ.js +170 -0
- package/dist/chunk-J4WRX5G6.js +263 -0
- package/dist/chunk-JZLIHI6A.js +339 -0
- package/dist/chunk-K7HFOAR7.js +25008 -0
- package/dist/chunk-K7HFOAR7.js.map +7 -0
- package/dist/chunk-KJGYGPJZ.js +103 -0
- package/dist/chunk-L3UFI52T.js +217 -0
- package/dist/chunk-L4ZPMF7E.js +692 -0
- package/dist/chunk-L62JI5UL.js +302 -0
- package/dist/chunk-MRPYHLFW.js +518 -0
- package/dist/chunk-MVWJHZ5G.js +783 -0
- package/dist/chunk-NGWU4QLU.js +134 -0
- package/dist/chunk-OC2FSBFB.js +176 -0
- package/dist/chunk-OGRDLK57.js +140 -0
- package/dist/chunk-OYBYKZUR.js +6360 -0
- package/dist/chunk-PFRPC2SY.js +382 -0
- package/dist/chunk-PLHOCPJD.js +272 -0
- package/dist/chunk-PQDZLOY7.js +102 -0
- package/dist/chunk-QDNUIS2Y.js +70 -0
- package/dist/chunk-RHOMR2GY.js +2676 -0
- package/dist/chunk-SKF6HQ74.js +31 -0
- package/dist/chunk-SLPZ6SBN.js +626 -0
- package/dist/chunk-SLPZ6SBN.js.map +7 -0
- package/dist/chunk-SPFK5XZH.js +446 -0
- package/dist/chunk-SQGAWR2L.js +141 -0
- package/dist/chunk-TGKWEAUE.js +84 -0
- package/dist/chunk-UKOOGNUF.js +1233 -0
- package/dist/chunk-UL5PEVZW.js +123 -0
- package/dist/chunk-UTMIX2H2.js +2784 -0
- package/dist/chunk-UZNFOCE7.js +56 -0
- package/dist/chunk-V7UVHM57.js +550 -0
- package/dist/chunk-VP2JWT5W.js +1988 -0
- package/dist/chunk-VSTHBKQW.js +480 -0
- package/dist/chunk-W7A4QXZ7.js +38 -0
- package/dist/chunk-WKCVZIN7.js +59 -0
- package/dist/chunk-X7TJBXJJ.js +54 -0
- package/dist/chunk-XEEMCYP6.js +4375 -0
- package/dist/chunk-XTQWAVWJ.js +54 -0
- package/dist/chunk-YAN2MOON.js +5071 -0
- package/dist/chunk-YCBENC6R.js +1769 -0
- package/dist/chunk-YCBENC6R.js.map +7 -0
- package/dist/chunk-YCORHJ64.js +240 -0
- package/dist/chunk-YOBTHZVU.js +80 -0
- package/dist/chunk-ZTT6ZHU5.js +217 -0
- package/dist/cohort-RF4FT2NT.js +70 -0
- package/dist/condition-WXE2CFYT.js +327 -0
- package/dist/controls-AYF4H7UG.js +34 -0
- package/dist/controls.config-TXZKQNYC.js +34 -0
- package/dist/correlation-UAYMVVUS.js +95 -0
- package/dist/customdata.inputui-I7RFOGYM.js +284 -0
- package/dist/dataDownload-4AGSDSEO.js +329 -0
- package/dist/databrowser.ui-RGJEA2BI.js +425 -0
- package/dist/dictionary-AWWQXIRP.js +113 -0
- package/dist/dnaMethylation-PICKZS2M.js +33 -0
- package/dist/dnaMethylation.integration.spec-JUSB3CFZ.js +198 -0
- package/dist/dofetch-ZJMKEYN2.js +48 -0
- package/dist/e2pca-K4W7ZJZG.js +344 -0
- package/dist/ep-OY5YQMEF.js +1249 -0
- package/dist/expclust.gdc.spec-LYDBM3TZ.js +302 -0
- package/dist/facet-7NJHLLCZ.js +519 -0
- package/dist/gb-COV44BMA.js +81 -0
- package/dist/geneExpClustering-EQR5XX4J.js +244 -0
- package/dist/geneExpression-2BNDQ6S6.js +310 -0
- package/dist/geneExpression-PGB6WF5H.js +33 -0
- package/dist/geneExpression.unit.spec-OUNGGOJP.js +128 -0
- package/dist/geneORA-EKNEVQOS.js +273 -0
- package/dist/geneRanking-XUXLRERA.js +548 -0
- package/dist/geneVariant-JZDYV6LS.js +36 -0
- package/dist/geneVariant-KPZ2FYLK.js +289 -0
- package/dist/geneVariant.integration.spec-ISMLGTKC.js +503 -0
- package/dist/genefusion.ui-GRUXFC4U.js +303 -0
- package/dist/geneset-RM4XIX23.js +203 -0
- package/dist/genomeBrowser.spec-X7EOK2LS.js +276 -0
- package/dist/grin2-5XRUMYQO.js +949 -0
- package/dist/grin2-SWZLKD52.js +70 -0
- package/dist/hierCluster-I6T4XD3P.js +55 -0
- package/dist/hierCluster-XVDGUOW7.js +59 -0
- package/dist/hierCluster.config-66CKAAPG.js +36 -0
- package/dist/hierCluster.integration.spec-OEHHO2RT.js +483 -0
- package/dist/hierCluster.integration.spec-OEHHO2RT.js.map +7 -0
- package/dist/hierCluster.interactivity-B5ZNFF4R.js +49 -0
- package/dist/hierCluster.renderers-R2DTKTLI.js +19 -0
- package/dist/imagePlot-ZM4IVDJT.js +156 -0
- package/dist/importPlot-FQ65CZRI.js +8 -0
- package/dist/isoformExpression-BFCLGD2U.js +35 -0
- package/dist/isoformExpression.unit.spec-KYI4HI7U.js +237 -0
- package/dist/junction-BKH6RWOP.js +36 -0
- package/dist/junction.customTerm-VNQKP5I4.js +16 -0
- package/dist/junction.unit.spec-MQIHKSNE.js +182 -0
- package/dist/launch.adhoc-AHTCA2BP.js +37 -0
- package/dist/leftlabel.sample-LIBMKP22.js +258 -0
- package/dist/lollipop-26ZQH3EL.js +166 -0
- package/dist/maf-W3W2XJ5B.js +455 -0
- package/dist/maftimeline-LCJD5O2M.js +587 -0
- package/dist/matrix-H634EZWK.js +59 -0
- package/dist/matrix-O2AINT5M.js +54 -0
- package/dist/matrix.cells-3U3CUU5I.js +26 -0
- package/dist/matrix.config-F6IPB5B5.js +37 -0
- package/dist/matrix.data-KQNBNYC6.js +23 -0
- package/dist/matrix.dom-YQNX4IQO.js +11 -0
- package/dist/matrix.groups-QFL2ZDHD.js +26 -0
- package/dist/matrix.integration.spec-OVGSXJWO.js +3160 -0
- package/dist/matrix.interactivity-Q5ODZPDL.js +37 -0
- package/dist/matrix.layout-YPYM7FRY.js +39 -0
- package/dist/matrix.legend-ZO57ENXP.js +20 -0
- package/dist/matrix.renderers-NIGONKWO.js +34 -0
- package/dist/matrix.serieses-ZQD2U6RF.js +19 -0
- package/dist/matrix.sort-RZU65LR2.js +26 -0
- package/dist/matrix.sort.unit.spec-NDFK2A5C.js +468 -0
- package/dist/matrix.sorterUi-MVUI25W7.js +16 -0
- package/dist/matrix.sorterUi.unit.spec-4ZKNOV2L.js +338 -0
- package/dist/matrix.unit.spec-V5XNLECG.js +150 -0
- package/dist/mavb-LF7A7BDK.js +727 -0
- package/dist/mds.fimo-KJ4HPMZP.js +513 -0
- package/dist/mds.samplescatterplot-ZHNWWWYI.js +1545 -0
- package/dist/mds.survivalplot-DNG7I22N.js +477 -0
- package/dist/multivalue-SJQF7PHU.js +83 -0
- package/dist/numericDictTermCluster-O6PKT2FJ.js +63 -0
- package/dist/oncomatrix-YJCPKS72.js +290 -0
- package/dist/oncomatrix.spec-MWGBQCIQ.js +443 -0
- package/dist/plot.2dvaf-KIPQYNEH.js +372 -0
- package/dist/plot.app-WHG3SEOG.js +36 -0
- package/dist/plot.barplot-DTSYFUPC.js +97 -0
- package/dist/plot.boxplot-MQDULP3P.js +146 -0
- package/dist/plot.brainImaging-DGVJQSCH.js +51 -0
- package/dist/plot.disco-HYPRBLMQ.js +99 -0
- package/dist/plot.ssgq-J5MMN7OD.js +134 -0
- package/dist/plot.vaf2cov-CID7GQB5.js +253 -0
- package/dist/polar2-QTSO2HCB.js +232 -0
- package/dist/profileForms-SRR2M5OS.js +941 -0
- package/dist/profilePlot-NDC4S2SC.js +49 -0
- package/dist/proteinView-EFNQL3LD.js +1357 -0
- package/dist/proteomeCohortCompare-WMR53HEL.js +912 -0
- package/dist/pseudbulk.unit.spec-6MRZNXFI.js +86 -0
- package/dist/pseudobulk-O5EC44RY.js +35 -0
- package/dist/qualitative-W6MFYG7Z.js +38 -0
- package/dist/radar2-GIQILMWK.js +327 -0
- package/dist/radarFacility2-5YJZ5JCK.js +335 -0
- package/dist/rememberedGvQ.unit.spec-B6RQM5LQ.js +211 -0
- package/dist/render-2J4LR3UI.js +33 -0
- package/dist/report-MUMQK6XY.js +217 -0
- package/dist/sampleView-NKZMNBMH.js +43 -0
- package/dist/samplelst-X74JZMTR.js +106 -0
- package/dist/samplematrix-QDQXB5ZG.js +2193 -0
- package/dist/sc-FGHV5CBJ.js +81 -0
- package/dist/scatter-QFVRBA7F.js +925 -0
- package/dist/scatter-YXF5VQGZ.js +88 -0
- package/dist/selectGenomeWithTklst-DP4RPV7U.js +129 -0
- package/dist/singleCellCellType-XCHCMRR6.js +33 -0
- package/dist/singleCellCellType.unit.spec-S3JTP235.js +154 -0
- package/dist/singleCellGeneExpression-FD6REV7Y.js +33 -0
- package/dist/singleCellGeneExpression.unit.spec-PVMZYD4G.js +148 -0
- package/dist/singleCellNumericValue-SIITQPMD.js +33 -0
- package/dist/singleCellNumericValue.unit.spec-7PJEHLF7.js +416 -0
- package/dist/singleCellPlot-YJCFAYJW.js +48 -0
- package/dist/singlecell-6R7YK5P3.js +1566 -0
- package/dist/singlecell-KHMH732Y.js +81 -0
- package/dist/snp-HXCVSW2F.js +33 -0
- package/dist/snp.unit.spec-HXMFR4QS.js +171 -0
- package/dist/snplocus-YQVHAKBC.js +203 -0
- package/dist/spliceevent.a53ss.diagram-4IBTR3JD.js +146 -0
- package/dist/spliceevent.exonskip.diagram-5ZTG65CE.js +278 -0
- package/dist/spliceevent.noeventdiagram-WO5KSC45.js +455 -0
- package/dist/ssGSEA-VJ3LVYJV.js +33 -0
- package/dist/ssGSEA.unit.spec-JQIJ4NZP.js +83 -0
- package/dist/stattable-COVQSHRZ.js +117 -0
- package/dist/studyCatalog-EXVRH4FI.js +414 -0
- package/dist/summarizeCnvGeneexp-UJBTMXXH.js +158 -0
- package/dist/summarizeGeneexpSurvival-XLQJGDRY.js +105 -0
- package/dist/summarizeMutationCnv-7RWSXB6F.js +159 -0
- package/dist/summarizeMutationDiagnosis-42MG737O.js +35 -0
- package/dist/summarizeMutationSurvival-FWVKVEHK.js +99 -0
- package/dist/summary-NR26ZPQB.js +44 -0
- package/dist/summary.integration.spec-Z7JSUTGK.js +409 -0
- package/dist/summaryInput-DGKUOJVC.js +242 -0
- package/dist/sunburst-C5JNGFT7.js +278 -0
- package/dist/survival-GCEX3EAZ.js +53 -0
- package/dist/survival-OAQA5JQN.js +1248 -0
- package/dist/survival.integration.spec-ZX5RD6VQ.js +613 -0
- package/dist/svgraph-XCFZ2WAG.js +1382 -0
- package/dist/svmr-4XTTURHA.js +3837 -0
- package/dist/table-FQZ4UAH6.js +197 -0
- package/dist/termCollection-5QCR6LED.js +33 -0
- package/dist/termCollection-DN6A6HJU.js +252 -0
- package/dist/termCollection.unit.spec-RSSSXDHU.js +299 -0
- package/dist/termCollectionFractionSelection-OSN7FITY.js +42 -0
- package/dist/termCollectionFractionSelection.unit.spec-UW6D3DVK.js +188 -0
- package/dist/tk-4CZCVYBP.js +41 -0
- package/dist/tk-BIPJNXBZ.js +1121 -0
- package/dist/tp.ui-NI4U7567.js +1454 -0
- package/dist/tvs.density-CB24PXDE.js +19 -0
- package/dist/tvs.dt-YRDNDXUU.js +34 -0
- package/dist/tvs.dtcnv.categorical-REP4T33P.js +35 -0
- package/dist/tvs.dtcnv.continuous-K7OREEP5.js +67 -0
- package/dist/tvs.dtfusion-AB5MPH3Q.js +35 -0
- package/dist/tvs.dtitd-AFWU7ACY.js +35 -0
- package/dist/tvs.dtsnvindel-G7XQEKEO.js +35 -0
- package/dist/tvs.dtsv-Y6BEY4J2.js +35 -0
- package/dist/tvs.numeric-GF4XF5OF.js +20 -0
- package/dist/tvs.samplelst-XRRWPC2E.js +98 -0
- package/dist/tvs.termCollection-PL4AN3GA.js +122 -0
- package/dist/tvs.termCollection-PL4AN3GA.js.map +7 -0
- package/dist/vocabulary-DJZWOO6Q.js +36 -0
- package/dist/wsi.direct-XUWANMKV.js +8343 -0
- package/package.json +2 -2
- package/dist/2dmaf-7VZ536T5.js +0 -1367
- package/dist/AggMatrixInput-UTUOXTGA.js +0 -406
- package/dist/AggregateMatrix-X75HUZYO.js +0 -41
- package/dist/AppHeader-X2DR6VSM.js +0 -830
- package/dist/BoxPlot-NQMPJICU.js +0 -1211
- package/dist/BoxPlot-NQMPJICU.js.map +0 -7
- package/dist/CorrelationVolcano-IDBUJH2E.js +0 -617
- package/dist/Cuminc-BYFIMOLO.js +0 -1219
- package/dist/DE-BI7DHHW4.js +0 -89
- package/dist/DEinput-W66CT4U2.js +0 -501
- package/dist/DM-62TEJA3C.js +0 -90
- package/dist/DifferentialAnalysis-PRTA6CYW.js +0 -239
- package/dist/Disco-4JQP3FRW.js +0 -3389
- package/dist/Disco.UI-6RHAA5KU.js +0 -243
- package/dist/DmrPlot-VYQYMTQ7.js +0 -362
- package/dist/GB-LULUM5LH.js +0 -1392
- package/dist/GSEA-DT3SYXOZ.js +0 -875
- package/dist/GeneExpInput-UILWAGRH.js +0 -42
- package/dist/Geomap-AFKEGMR5.js +0 -84
- package/dist/HicApp-APDL5POY.js +0 -2245
- package/dist/IDCViewer-DQXAORHT.js +0 -10812
- package/dist/NumBinaryEditor-OUVIOEH7.js +0 -279
- package/dist/NumBinaryEditor.unit.spec-VBX2X4CT.js +0 -312
- package/dist/NumContEditor-JVPRBZPW.js +0 -105
- package/dist/NumContEditor.unit.spec-EQNB6RMI.js +0 -164
- package/dist/NumCustomBinEditor-E2SXZDF4.js +0 -33
- package/dist/NumCustomBinEditor.unit.spec-VLR7MGNL.js +0 -397
- package/dist/NumDiscreteEditor-CUA55FU3.js +0 -170
- package/dist/NumDiscreteEditor.unit.spec-7IPCMUDQ.js +0 -233
- package/dist/NumRegularBinEditor-CWU7YBEP.js +0 -33
- package/dist/NumRegularBinEditor.unit.spec-RGV3EUPC.js +0 -278
- package/dist/NumSplineEditor-PC5X7AUJ.js +0 -210
- package/dist/NumSplineEditor.unit.spec-QCR3RL5W.js +0 -224
- package/dist/NumericDensity-CFUEE5ZN.js +0 -33
- package/dist/NumericDensity.unit.spec-JOCVEC32.js +0 -418
- package/dist/NumericHandler-VL2Z55KF.js +0 -34
- package/dist/NumericHandler.unit.spec-ULM5FSSA.js +0 -214
- package/dist/ProteomeInput-3WKTVCYT.js +0 -388
- package/dist/Regression-M7AQTYXL.js +0 -1416
- package/dist/RunChart2-54SVOXJR.js +0 -749
- package/dist/SC-QRWDGHB2.js +0 -1183
- package/dist/SC-QRWDGHB2.js.map +0 -7
- package/dist/Violin-2AD6QRJB.js +0 -1081
- package/dist/Violin-2AD6QRJB.js.map +0 -7
- package/dist/Volcano-T57VFSWR.js +0 -2456
- package/dist/Wsi-U3U3EILE.js +0 -629
- package/dist/adSandbox-S3JP7XF3.js +0 -33
- package/dist/animatedBubbleChart-LZKNERIM.js +0 -547
- package/dist/app-2MERLGNJ.js +0 -42
- package/dist/app-ZNSUUOFJ.js +0 -32
- package/dist/bam-ESRPS4TQ.js +0 -876
- package/dist/barchart-BPUEO4RK.js +0 -42
- package/dist/barchart2-Z36PNSM2.js +0 -309
- package/dist/block-GEG4UUOU.js +0 -6250
- package/dist/block.init-SB6OX35E.js +0 -33
- package/dist/block.mds.expressionrank-2JLMS334.js +0 -354
- package/dist/block.mds.geneboxplot-BZMGG6G3.js +0 -823
- package/dist/block.mds.junction-636PWE2O.js +0 -1539
- package/dist/block.mds.svcnv-S4L2HMZW.js +0 -6796
- package/dist/block.svg-A7EABUXG.js +0 -159
- package/dist/block.tk.aicheck-KNFJVUTW.js +0 -278
- package/dist/block.tk.ase-BPU25OLX.js +0 -360
- package/dist/block.tk.bam-VC4CZCUS.js +0 -1901
- package/dist/block.tk.bedgraphdot-FQS4Z4RC.js +0 -379
- package/dist/block.tk.bigwig.ui-7STXSD3X.js +0 -206
- package/dist/block.tk.hicstraw-CVDCOMPP.js +0 -818
- package/dist/block.tk.junction-PG4RZFH3.js +0 -2358
- package/dist/block.tk.junction.textmatrixui-JRW4ZJIK.js +0 -194
- package/dist/block.tk.ld-DLDP2NHJ.js +0 -94
- package/dist/block.tk.menu-PWGFMKBQ.js +0 -1024
- package/dist/block.tk.pgv-HOBOXQIN.js +0 -938
- package/dist/brainImaging-GUQTOHQF.js +0 -555
- package/dist/brainRegions-JWBIBCTG.js +0 -217
- package/dist/bubbleHeatmap-EUO3DUVT.js +0 -378
- package/dist/cellTypeBubbleHeatmap-TIBGPZTB.js +0 -278
- package/dist/chunk-3CGAABHZ.js +0 -176
- package/dist/chunk-3ELYMSGO.js +0 -26
- package/dist/chunk-3QL3U6FU.js +0 -2853
- package/dist/chunk-3QL3U6FU.js.map +0 -7
- package/dist/chunk-3TV5WWUN.js +0 -339
- package/dist/chunk-4Y5W26UF.js +0 -424
- package/dist/chunk-5XE3WSUX.js +0 -6360
- package/dist/chunk-665X7R7S.js +0 -382
- package/dist/chunk-67URJYN7.js +0 -84
- package/dist/chunk-6MQPXWOR.js +0 -55
- package/dist/chunk-7DSL65G7.js +0 -14
- package/dist/chunk-A6F3CSXP.js +0 -626
- package/dist/chunk-A6F3CSXP.js.map +0 -7
- package/dist/chunk-A7OWXDYA.js +0 -129
- package/dist/chunk-A7OWXDYA.js.map +0 -7
- package/dist/chunk-AB6JQFIQ.js +0 -129
- package/dist/chunk-ACOHIDWO.js +0 -240
- package/dist/chunk-AIVPAC5Q.js +0 -102
- package/dist/chunk-AKKJFMW5.js +0 -4375
- package/dist/chunk-AR2UIN77.js +0 -255
- package/dist/chunk-AXF6SVNQ.js +0 -56
- package/dist/chunk-BLYD6SQO.js +0 -98
- package/dist/chunk-BSWPONNA.js +0 -550
- package/dist/chunk-BX3P73XH.js +0 -299
- package/dist/chunk-CSAS3PVJ.js +0 -24956
- package/dist/chunk-CSAS3PVJ.js.map +0 -7
- package/dist/chunk-CW35X5ZL.js +0 -5071
- package/dist/chunk-D4XHYQNS.js +0 -281
- package/dist/chunk-DH74ZT37.js +0 -141
- package/dist/chunk-E76UYIT2.js +0 -182
- package/dist/chunk-ELJX3QIQ.js +0 -424
- package/dist/chunk-ELJX3QIQ.js.map +0 -7
- package/dist/chunk-EM6KUVI5.js +0 -194
- package/dist/chunk-F4GYWCRF.js +0 -302
- package/dist/chunk-FJ3JD7B3.js +0 -59
- package/dist/chunk-FW3ME75U.js +0 -54
- package/dist/chunk-FXQXCOII.js +0 -101
- package/dist/chunk-FXQXCOII.js.map +0 -7
- package/dist/chunk-G2X2PN74.js +0 -783
- package/dist/chunk-G3QKTYUT.js +0 -2676
- package/dist/chunk-G5USS6FI.js +0 -56
- package/dist/chunk-GLPTPX45.js +0 -203
- package/dist/chunk-GPY6SBCX.js +0 -339
- package/dist/chunk-GWHIKECP.js +0 -1731
- package/dist/chunk-GWHIKECP.js.map +0 -7
- package/dist/chunk-GWVVEOYX.js +0 -263
- package/dist/chunk-HDV3LHCN.js +0 -379
- package/dist/chunk-HGXSYPU6.js +0 -2327
- package/dist/chunk-HMKEVTRM.js +0 -446
- package/dist/chunk-HPCKKXRK.js +0 -1233
- package/dist/chunk-IAB2PRIH.js +0 -396
- package/dist/chunk-IAB2PRIH.js.map +0 -7
- package/dist/chunk-J5JBHGRN.js +0 -31
- package/dist/chunk-JHOGTGIS.js +0 -1988
- package/dist/chunk-KCX54MGS.js +0 -480
- package/dist/chunk-KVRSO2OZ.js +0 -34
- package/dist/chunk-M367Y7ML.js +0 -140
- package/dist/chunk-M4PUW3ML.js +0 -243
- package/dist/chunk-ME325OQC.js +0 -562
- package/dist/chunk-NJWNKBRC.js +0 -468
- package/dist/chunk-O5FUHCNU.js +0 -397
- package/dist/chunk-ODHQPTHU.js +0 -134
- package/dist/chunk-PTQ4GQCS.js +0 -692
- package/dist/chunk-PUSSP76H.js +0 -70
- package/dist/chunk-Q3PAXUCU.js +0 -54
- package/dist/chunk-QWBKN2IC.js +0 -80
- package/dist/chunk-R4E7BXC6.js +0 -49
- package/dist/chunk-SDYFM3UL.js +0 -274
- package/dist/chunk-SP6WCXY6.js +0 -217
- package/dist/chunk-SRTZQOK7.js +0 -102
- package/dist/chunk-T4RYLTR3.js +0 -178
- package/dist/chunk-TANWA6SU.js +0 -54
- package/dist/chunk-TBIHBC5V.js +0 -170
- package/dist/chunk-TGTCOCPF.js +0 -1278
- package/dist/chunk-TOFOT2BN.js +0 -294
- package/dist/chunk-UOYIPBTX.js +0 -217
- package/dist/chunk-USULBM4V.js +0 -2784
- package/dist/chunk-UYKJOBRO.js +0 -1616
- package/dist/chunk-UYKJOBRO.js.map +0 -7
- package/dist/chunk-V3WSMWBF.js +0 -123
- package/dist/chunk-VTHZGUSZ.js +0 -2146
- package/dist/chunk-VTHZGUSZ.js.map +0 -7
- package/dist/chunk-WMQDFVJK.js +0 -103
- package/dist/chunk-WTQQWFV4.js +0 -38
- package/dist/chunk-XDLKYVYU.js +0 -276
- package/dist/chunk-XNJN5J3U.js +0 -37
- package/dist/chunk-XQLOEZ7T.js +0 -158
- package/dist/chunk-XQLOEZ7T.js.map +0 -7
- package/dist/chunk-Y3SDMRDX.js +0 -119
- package/dist/chunk-Y5FE3G6J.js +0 -518
- package/dist/chunk-YMEWZVRG.js +0 -237
- package/dist/chunk-YPHFEKWI.js +0 -1339
- package/dist/chunk-Z4HW3FEE.js +0 -272
- package/dist/cohort-NYFUILFO.js +0 -70
- package/dist/condition-6M4AVISY.js +0 -327
- package/dist/controls-LMTWS3SY.js +0 -34
- package/dist/controls.config-4PK7HLFJ.js +0 -34
- package/dist/correlation-X6GB6ITK.js +0 -95
- package/dist/customdata.inputui-MDG3BTTG.js +0 -284
- package/dist/dataDownload-TFRI3VFM.js +0 -329
- package/dist/databrowser.ui-L2K7VVDW.js +0 -425
- package/dist/dictionary-MS6R3VNY.js +0 -113
- package/dist/dnaMethylation-2KYSQWNE.js +0 -33
- package/dist/dnaMethylation.integration.spec-2BHNKOGN.js +0 -198
- package/dist/dofetch-BETN7HEX.js +0 -48
- package/dist/e2pca-QC2EI5JM.js +0 -344
- package/dist/ep-BTRMR4OT.js +0 -1249
- package/dist/expclust.gdc.spec-C5ZMBCGO.js +0 -302
- package/dist/facet-LPXKLX53.js +0 -519
- package/dist/gb-PHJ2SM5D.js +0 -81
- package/dist/geneExpClustering-OXZJHEPD.js +0 -244
- package/dist/geneExpression-54RGEGML.js +0 -310
- package/dist/geneExpression-FLBQXMSX.js +0 -33
- package/dist/geneExpression.unit.spec-ZCE7G6HI.js +0 -128
- package/dist/geneORA-TELI5AFV.js +0 -273
- package/dist/geneRanking-7YZA5GNG.js +0 -548
- package/dist/geneVariant-NJYUEY4C.js +0 -36
- package/dist/geneVariant-VKWTXUMK.js +0 -289
- package/dist/geneVariant.integration.spec-RWYP523U.js +0 -503
- package/dist/genefusion.ui-B6J7I3RA.js +0 -303
- package/dist/geneset-VG4SFYML.js +0 -203
- package/dist/genomeBrowser.spec-5IS5Y2NG.js +0 -276
- package/dist/grin2-3T6KRC34.js +0 -70
- package/dist/grin2-FOOH736B.js +0 -949
- package/dist/hierCluster-WLAFGZAT.js +0 -55
- package/dist/hierCluster-XBL2TOOL.js +0 -59
- package/dist/hierCluster.config-VCBRBGDZ.js +0 -36
- package/dist/hierCluster.integration.spec-TNJD2QT6.js +0 -483
- package/dist/hierCluster.integration.spec-TNJD2QT6.js.map +0 -7
- package/dist/hierCluster.interactivity-PEEJ3BRC.js +0 -49
- package/dist/hierCluster.renderers-7ESGKIGM.js +0 -19
- package/dist/imagePlot-LWL6JMKM.js +0 -156
- package/dist/importPlot-CLBY6QZN.js +0 -8
- package/dist/isoformExpression-36P3BBN7.js +0 -35
- package/dist/isoformExpression.unit.spec-SF2SPTRC.js +0 -237
- package/dist/junction-B7DSIG4E.js +0 -36
- package/dist/junction.customTerm-7VZS4JDE.js +0 -16
- package/dist/junction.unit.spec-4MWU36MR.js +0 -182
- package/dist/launch.adhoc-3B34GV4S.js +0 -37
- package/dist/leftlabel.sample-6OM5H67E.js +0 -258
- package/dist/lollipop-SL2F5G6K.js +0 -166
- package/dist/maf-FRYGN5GR.js +0 -455
- package/dist/maftimeline-3UFWS73J.js +0 -587
- package/dist/matrix-DDKSOJ4C.js +0 -59
- package/dist/matrix-H2ZH2QKC.js +0 -54
- package/dist/matrix.cells-JTMC35SK.js +0 -26
- package/dist/matrix.config-EUBXWEBS.js +0 -37
- package/dist/matrix.data-CO5RBWY5.js +0 -23
- package/dist/matrix.dom-2SA43BPT.js +0 -11
- package/dist/matrix.groups-AKOJ2W6U.js +0 -26
- package/dist/matrix.integration.spec-66KNZO3S.js +0 -3160
- package/dist/matrix.interactivity-DY5YJIYB.js +0 -37
- package/dist/matrix.layout-MQQNHBI2.js +0 -39
- package/dist/matrix.legend-CGU7T6GF.js +0 -20
- package/dist/matrix.renderers-HC7PJN4B.js +0 -34
- package/dist/matrix.serieses-W4L6ZO37.js +0 -19
- package/dist/matrix.sort-T74DWFB2.js +0 -26
- package/dist/matrix.sort.unit.spec-EQEHQXTO.js +0 -468
- package/dist/matrix.sorterUi-GFQG4HFV.js +0 -16
- package/dist/matrix.sorterUi.unit.spec-XQHFOEYE.js +0 -338
- package/dist/matrix.unit.spec-4ZWUGZUC.js +0 -150
- package/dist/mavb-3CL5OHWB.js +0 -727
- package/dist/mds.fimo-2RFJQKJM.js +0 -513
- package/dist/mds.samplescatterplot-X6CXMY4C.js +0 -1545
- package/dist/mds.survivalplot-57NIKSSH.js +0 -477
- package/dist/multivalue-3TUGYL4J.js +0 -83
- package/dist/numericDictTermCluster-RLX5CLTN.js +0 -63
- package/dist/oncomatrix-COK76MJN.js +0 -290
- package/dist/oncomatrix.spec-SO3ZN5BF.js +0 -443
- package/dist/plot.2dvaf-TETCE4VG.js +0 -372
- package/dist/plot.app-5YUAVZA4.js +0 -36
- package/dist/plot.barplot-JUGY5Z7A.js +0 -97
- package/dist/plot.boxplot-QZXICT7J.js +0 -146
- package/dist/plot.brainImaging-2F6E6QS4.js +0 -51
- package/dist/plot.disco-H4P4B6QS.js +0 -99
- package/dist/plot.ssgq-LEQF3STZ.js +0 -134
- package/dist/plot.vaf2cov-UBMD2CN7.js +0 -253
- package/dist/polar2-AVEZM2T5.js +0 -232
- package/dist/profileForms-CUSUGTPC.js +0 -941
- package/dist/profilePlot-67Z7AXQ4.js +0 -49
- package/dist/proteinView-7K7VHGX3.js +0 -1357
- package/dist/proteomeCohortCompare-MRGH6HHI.js +0 -912
- package/dist/pseudbulk.unit.spec-ZHDL6GIM.js +0 -86
- package/dist/pseudobulk-ZNXPF7QB.js +0 -35
- package/dist/qualitative-QXMZHDWU.js +0 -38
- package/dist/radar2-QJDGNLED.js +0 -327
- package/dist/radarFacility2-LGGOOWX4.js +0 -335
- package/dist/rememberedGvQ.unit.spec-YKUMMYFT.js +0 -211
- package/dist/render-LSSRZJY3.js +0 -33
- package/dist/report-TTECPO44.js +0 -217
- package/dist/sampleView-EFS2UBRS.js +0 -43
- package/dist/samplelst-FXULLJBO.js +0 -106
- package/dist/samplematrix-MNFCXOWO.js +0 -2193
- package/dist/sc-2BUOXML2.js +0 -81
- package/dist/scatter-AVRTALYY.js +0 -925
- package/dist/scatter-CPEIVL3K.js +0 -88
- package/dist/selectGenomeWithTklst-3BG2ZPPN.js +0 -129
- package/dist/singleCellCellType-QLAEBVN2.js +0 -33
- package/dist/singleCellCellType.unit.spec-P4NAWYKL.js +0 -154
- package/dist/singleCellGeneExpression-IZ2PMDDL.js +0 -33
- package/dist/singleCellGeneExpression.unit.spec-DKBZICJM.js +0 -148
- package/dist/singleCellNumericValue-NB3QFH7H.js +0 -33
- package/dist/singleCellNumericValue.unit.spec-ZKK2KWRQ.js +0 -416
- package/dist/singleCellPlot-ZU655L4Z.js +0 -48
- package/dist/singlecell-NKPTXVHW.js +0 -1566
- package/dist/singlecell-PEIEFXVU.js +0 -81
- package/dist/snp-G55JGINX.js +0 -33
- package/dist/snp.unit.spec-47CCZKJO.js +0 -171
- package/dist/snplocus-TRVAEAPF.js +0 -203
- package/dist/spliceevent.a53ss.diagram-FL2R6F22.js +0 -146
- package/dist/spliceevent.exonskip.diagram-XDZWTJXR.js +0 -278
- package/dist/spliceevent.noeventdiagram-L322N534.js +0 -455
- package/dist/ssGSEA-DZY4LFQY.js +0 -33
- package/dist/ssGSEA.unit.spec-P6C3VTVZ.js +0 -83
- package/dist/stattable-R7O6OIMB.js +0 -117
- package/dist/studyCatalog-OMDE4JRD.js +0 -414
- package/dist/summarizeCnvGeneexp-A7HW6FJI.js +0 -158
- package/dist/summarizeGeneexpSurvival-ODI4HGFH.js +0 -105
- package/dist/summarizeMutationCnv-C2YB73OL.js +0 -159
- package/dist/summarizeMutationDiagnosis-4Y322NYU.js +0 -35
- package/dist/summarizeMutationSurvival-7IHNURLC.js +0 -99
- package/dist/summary-E4L5MZTF.js +0 -44
- package/dist/summary.integration.spec-SDCGE6BQ.js +0 -409
- package/dist/summaryInput-DHIMU5DM.js +0 -242
- package/dist/sunburst-ULNPFEAM.js +0 -278
- package/dist/survival-CU4N5KZO.js +0 -53
- package/dist/survival-KWWH6REE.js +0 -1248
- package/dist/survival.integration.spec-UW6SYVLP.js +0 -613
- package/dist/svgraph-HFI6NNF3.js +0 -1382
- package/dist/svmr-VHS7Z4SO.js +0 -3837
- package/dist/table-GJUXHKQI.js +0 -197
- package/dist/termCollection-CCZ4BFIU.js +0 -33
- package/dist/termCollection-O5CQ472U.js +0 -252
- package/dist/termCollection.unit.spec-KR5G6JFU.js +0 -299
- package/dist/termCollectionFractionSelection-IKU5MFBT.js +0 -42
- package/dist/termCollectionFractionSelection.unit.spec-6ZWHNGES.js +0 -188
- package/dist/tk-3DLMAFW7.js +0 -41
- package/dist/tk-CAYWF7LX.js +0 -1121
- package/dist/tp.ui-NF5ZYOHW.js +0 -1454
- package/dist/tvs.density-V6ZXSFGF.js +0 -19
- package/dist/tvs.dt-43A4SSLG.js +0 -34
- package/dist/tvs.dtcnv.categorical-DYXHUNP2.js +0 -35
- package/dist/tvs.dtcnv.continuous-NOKNP4UG.js +0 -67
- package/dist/tvs.dtfusion-4NAOCC2X.js +0 -35
- package/dist/tvs.dtitd-SZC6EITI.js +0 -35
- package/dist/tvs.dtsnvindel-EYSBCNQK.js +0 -35
- package/dist/tvs.dtsv-VSPWIIFO.js +0 -35
- package/dist/tvs.numeric-M5LH3PRH.js +0 -20
- package/dist/tvs.samplelst-3YQ4GKNG.js +0 -98
- package/dist/tvs.termCollection-EVM4ATPW.js +0 -124
- package/dist/tvs.termCollection-EVM4ATPW.js.map +0 -7
- package/dist/vocabulary-HCPEIO2P.js +0 -36
- package/dist/wsi.direct-K2J6GGWY.js +0 -8343
- /package/dist/{2dmaf-7VZ536T5.js.map → 2dmaf-FEZRNHDF.js.map} +0 -0
- /package/dist/{AggMatrixInput-UTUOXTGA.js.map → AggMatrixInput-6FJIELYO.js.map} +0 -0
- /package/dist/{AggregateMatrix-X75HUZYO.js.map → AggregateMatrix-MUPBUGIZ.js.map} +0 -0
- /package/dist/{AppHeader-X2DR6VSM.js.map → AppHeader-ZTNZ62UL.js.map} +0 -0
- /package/dist/{CorrelationVolcano-IDBUJH2E.js.map → CorrelationVolcano-42NYXAXG.js.map} +0 -0
- /package/dist/{Cuminc-BYFIMOLO.js.map → Cuminc-6AKLT6HF.js.map} +0 -0
- /package/dist/{DE-BI7DHHW4.js.map → DE-KJHFZWND.js.map} +0 -0
- /package/dist/{DEinput-W66CT4U2.js.map → DEinput-HXB3LYZW.js.map} +0 -0
- /package/dist/{DM-62TEJA3C.js.map → DM-AAHX4PLH.js.map} +0 -0
- /package/dist/{DifferentialAnalysis-PRTA6CYW.js.map → DifferentialAnalysis-JX4EDEOY.js.map} +0 -0
- /package/dist/{Disco-4JQP3FRW.js.map → Disco-GXKO4QQH.js.map} +0 -0
- /package/dist/{Disco.UI-6RHAA5KU.js.map → Disco.UI-DGD4RXJP.js.map} +0 -0
- /package/dist/{DmrPlot-VYQYMTQ7.js.map → DmrPlot-DQ3XTMTN.js.map} +0 -0
- /package/dist/{GB-LULUM5LH.js.map → GB-OUWNNBBK.js.map} +0 -0
- /package/dist/{GSEA-DT3SYXOZ.js.map → GSEA-DSKGFAPG.js.map} +0 -0
- /package/dist/{GeneExpInput-UILWAGRH.js.map → GeneExpInput-FZLOBE2Q.js.map} +0 -0
- /package/dist/{Geomap-AFKEGMR5.js.map → Geomap-GP5KD3OX.js.map} +0 -0
- /package/dist/{HicApp-APDL5POY.js.map → HicApp-2N6WYWZX.js.map} +0 -0
- /package/dist/{IDCViewer-DQXAORHT.js.map → IDCViewer-MSUC7IXX.js.map} +0 -0
- /package/dist/{NumBinaryEditor-OUVIOEH7.js.map → NumBinaryEditor-C4G2IH36.js.map} +0 -0
- /package/dist/{NumBinaryEditor.unit.spec-VBX2X4CT.js.map → NumBinaryEditor.unit.spec-ZAVAUGXA.js.map} +0 -0
- /package/dist/{NumContEditor-JVPRBZPW.js.map → NumContEditor-VEEMMWHX.js.map} +0 -0
- /package/dist/{NumContEditor.unit.spec-EQNB6RMI.js.map → NumContEditor.unit.spec-65ORC42O.js.map} +0 -0
- /package/dist/{NumCustomBinEditor-E2SXZDF4.js.map → NumCustomBinEditor-YIUHJAXP.js.map} +0 -0
- /package/dist/{NumCustomBinEditor.unit.spec-VLR7MGNL.js.map → NumCustomBinEditor.unit.spec-NT5VK2LO.js.map} +0 -0
- /package/dist/{NumDiscreteEditor-CUA55FU3.js.map → NumDiscreteEditor-A4WELAJH.js.map} +0 -0
- /package/dist/{NumDiscreteEditor.unit.spec-7IPCMUDQ.js.map → NumDiscreteEditor.unit.spec-7QABM6KK.js.map} +0 -0
- /package/dist/{NumRegularBinEditor-CWU7YBEP.js.map → NumRegularBinEditor-IPVPLSQY.js.map} +0 -0
- /package/dist/{NumRegularBinEditor.unit.spec-RGV3EUPC.js.map → NumRegularBinEditor.unit.spec-Q4DMWATB.js.map} +0 -0
- /package/dist/{NumSplineEditor-PC5X7AUJ.js.map → NumSplineEditor-5E6CIWLP.js.map} +0 -0
- /package/dist/{NumSplineEditor.unit.spec-QCR3RL5W.js.map → NumSplineEditor.unit.spec-DHJF5F6H.js.map} +0 -0
- /package/dist/{NumericDensity-CFUEE5ZN.js.map → NumericDensity-GXMWWK2A.js.map} +0 -0
- /package/dist/{NumericDensity.unit.spec-JOCVEC32.js.map → NumericDensity.unit.spec-OAPOMSEW.js.map} +0 -0
- /package/dist/{NumericHandler-VL2Z55KF.js.map → NumericHandler-H5WHGFXD.js.map} +0 -0
- /package/dist/{NumericHandler.unit.spec-ULM5FSSA.js.map → NumericHandler.unit.spec-PBNOJEMS.js.map} +0 -0
- /package/dist/{ProteomeInput-3WKTVCYT.js.map → ProteomeInput-ZA7R5S43.js.map} +0 -0
- /package/dist/{Regression-M7AQTYXL.js.map → Regression-WSWTSXFX.js.map} +0 -0
- /package/dist/{RunChart2-54SVOXJR.js.map → RunChart2-J5CTJI5C.js.map} +0 -0
- /package/dist/{Volcano-T57VFSWR.js.map → Volcano-4IEQIEDS.js.map} +0 -0
- /package/dist/{Wsi-U3U3EILE.js.map → Wsi-LJ6AY5RI.js.map} +0 -0
- /package/dist/{adSandbox-S3JP7XF3.js.map → adSandbox-EIN4KEML.js.map} +0 -0
- /package/dist/{animatedBubbleChart-LZKNERIM.js.map → animatedBubbleChart-LINYUKMD.js.map} +0 -0
- /package/dist/{app-2MERLGNJ.js.map → app-SE7UQ5DB.js.map} +0 -0
- /package/dist/{app-ZNSUUOFJ.js.map → app-VGMZNGWP.js.map} +0 -0
- /package/dist/{bam-ESRPS4TQ.js.map → bam-ZXEZWRSZ.js.map} +0 -0
- /package/dist/{barchart-BPUEO4RK.js.map → barchart-N4B4C2FO.js.map} +0 -0
- /package/dist/{barchart2-Z36PNSM2.js.map → barchart2-EDVEWTVX.js.map} +0 -0
- /package/dist/{block-GEG4UUOU.js.map → block-E7YUGCHL.js.map} +0 -0
- /package/dist/{block.init-SB6OX35E.js.map → block.init-FSOCF2IM.js.map} +0 -0
- /package/dist/{block.mds.expressionrank-2JLMS334.js.map → block.mds.expressionrank-EDBTITXU.js.map} +0 -0
- /package/dist/{block.mds.geneboxplot-BZMGG6G3.js.map → block.mds.geneboxplot-GG5672SY.js.map} +0 -0
- /package/dist/{block.mds.junction-636PWE2O.js.map → block.mds.junction-HUC4S24K.js.map} +0 -0
- /package/dist/{block.mds.svcnv-S4L2HMZW.js.map → block.mds.svcnv-EQHYCIBU.js.map} +0 -0
- /package/dist/{block.svg-A7EABUXG.js.map → block.svg-HBVPUQJ2.js.map} +0 -0
- /package/dist/{block.tk.aicheck-KNFJVUTW.js.map → block.tk.aicheck-TRJ5IIWZ.js.map} +0 -0
- /package/dist/{block.tk.ase-BPU25OLX.js.map → block.tk.ase-COV7YYYO.js.map} +0 -0
- /package/dist/{block.tk.bam-VC4CZCUS.js.map → block.tk.bam-MDSLY6NH.js.map} +0 -0
- /package/dist/{block.tk.bedgraphdot-FQS4Z4RC.js.map → block.tk.bedgraphdot-MKWEL53X.js.map} +0 -0
- /package/dist/{block.tk.bigwig.ui-7STXSD3X.js.map → block.tk.bigwig.ui-UKKJX7TA.js.map} +0 -0
- /package/dist/{block.tk.hicstraw-CVDCOMPP.js.map → block.tk.hicstraw-6LNXEIOF.js.map} +0 -0
- /package/dist/{block.tk.junction-PG4RZFH3.js.map → block.tk.junction-F3SERFFD.js.map} +0 -0
- /package/dist/{block.tk.junction.textmatrixui-JRW4ZJIK.js.map → block.tk.junction.textmatrixui-2XUMSKLS.js.map} +0 -0
- /package/dist/{block.tk.ld-DLDP2NHJ.js.map → block.tk.ld-COP5RUJJ.js.map} +0 -0
- /package/dist/{block.tk.menu-PWGFMKBQ.js.map → block.tk.menu-SRDPD44N.js.map} +0 -0
- /package/dist/{block.tk.pgv-HOBOXQIN.js.map → block.tk.pgv-3SVINTXN.js.map} +0 -0
- /package/dist/{brainImaging-GUQTOHQF.js.map → brainImaging-UNBA4KA3.js.map} +0 -0
- /package/dist/{brainRegions-JWBIBCTG.js.map → brainRegions-DC6TQB53.js.map} +0 -0
- /package/dist/{bubbleHeatmap-EUO3DUVT.js.map → bubbleHeatmap-X3W3AZJY.js.map} +0 -0
- /package/dist/{cellTypeBubbleHeatmap-TIBGPZTB.js.map → cellTypeBubbleHeatmap-LFI6TGOO.js.map} +0 -0
- /package/dist/{chunk-SRTZQOK7.js.map → chunk-2ANFUNS3.js.map} +0 -0
- /package/dist/{chunk-TGTCOCPF.js.map → chunk-2G4SFRWC.js.map} +0 -0
- /package/dist/{chunk-Q3PAXUCU.js.map → chunk-2WKGE7BO.js.map} +0 -0
- /package/dist/{chunk-YMEWZVRG.js.map → chunk-3CGMCYZB.js.map} +0 -0
- /package/dist/{chunk-6MQPXWOR.js.map → chunk-3I4DBVLM.js.map} +0 -0
- /package/dist/{chunk-O5FUHCNU.js.map → chunk-42VFF74T.js.map} +0 -0
- /package/dist/{chunk-BLYD6SQO.js.map → chunk-4HTRCXLS.js.map} +0 -0
- /package/dist/{chunk-D4XHYQNS.js.map → chunk-55T2AMJ3.js.map} +0 -0
- /package/dist/{chunk-GLPTPX45.js.map → chunk-5JDG5NNA.js.map} +0 -0
- /package/dist/{chunk-3TV5WWUN.js.map → chunk-6AFMWQXZ.js.map} +0 -0
- /package/dist/{chunk-TOFOT2BN.js.map → chunk-6ECKCC4X.js.map} +0 -0
- /package/dist/{chunk-BX3P73XH.js.map → chunk-6QMC7LFA.js.map} +0 -0
- /package/dist/{chunk-7DSL65G7.js.map → chunk-72L6NTNT.js.map} +0 -0
- /package/dist/{chunk-EM6KUVI5.js.map → chunk-7ISAV37C.js.map} +0 -0
- /package/dist/{chunk-R4E7BXC6.js.map → chunk-A32XQLMP.js.map} +0 -0
- /package/dist/{chunk-SDYFM3UL.js.map → chunk-A3MYBXG3.js.map} +0 -0
- /package/dist/{chunk-YPHFEKWI.js.map → chunk-AU3Y6IQF.js.map} +0 -0
- /package/dist/{chunk-NJWNKBRC.js.map → chunk-AXL3CC4U.js.map} +0 -0
- /package/dist/{chunk-3ELYMSGO.js.map → chunk-BSWVDH75.js.map} +0 -0
- /package/dist/{chunk-4Y5W26UF.js.map → chunk-CME6DYDH.js.map} +0 -0
- /package/dist/{chunk-Y3SDMRDX.js.map → chunk-DD3DWHUY.js.map} +0 -0
- /package/dist/{chunk-HGXSYPU6.js.map → chunk-DKED35KW.js.map} +0 -0
- /package/dist/{chunk-AR2UIN77.js.map → chunk-DPGALT5N.js.map} +0 -0
- /package/dist/{chunk-AB6JQFIQ.js.map → chunk-DPTGY4BW.js.map} +0 -0
- /package/dist/{chunk-HDV3LHCN.js.map → chunk-DQD4MTK4.js.map} +0 -0
- /package/dist/{chunk-M4PUW3ML.js.map → chunk-EFLRT7JY.js.map} +0 -0
- /package/dist/{chunk-KVRSO2OZ.js.map → chunk-EMSO3BNW.js.map} +0 -0
- /package/dist/{chunk-XDLKYVYU.js.map → chunk-F5QB5YEE.js.map} +0 -0
- /package/dist/{chunk-E76UYIT2.js.map → chunk-FKSR53VK.js.map} +0 -0
- /package/dist/{chunk-T4RYLTR3.js.map → chunk-FSWBNSQD.js.map} +0 -0
- /package/dist/{chunk-XNJN5J3U.js.map → chunk-G6ZIO5T3.js.map} +0 -0
- /package/dist/{chunk-ME325OQC.js.map → chunk-HTZJQNHP.js.map} +0 -0
- /package/dist/{chunk-G5USS6FI.js.map → chunk-ITYNHDDD.js.map} +0 -0
- /package/dist/{chunk-TBIHBC5V.js.map → chunk-IWVCFZHQ.js.map} +0 -0
- /package/dist/{chunk-GWVVEOYX.js.map → chunk-J4WRX5G6.js.map} +0 -0
- /package/dist/{chunk-GPY6SBCX.js.map → chunk-JZLIHI6A.js.map} +0 -0
- /package/dist/{chunk-WMQDFVJK.js.map → chunk-KJGYGPJZ.js.map} +0 -0
- /package/dist/{chunk-UOYIPBTX.js.map → chunk-L3UFI52T.js.map} +0 -0
- /package/dist/{chunk-PTQ4GQCS.js.map → chunk-L4ZPMF7E.js.map} +0 -0
- /package/dist/{chunk-F4GYWCRF.js.map → chunk-L62JI5UL.js.map} +0 -0
- /package/dist/{chunk-Y5FE3G6J.js.map → chunk-MRPYHLFW.js.map} +0 -0
- /package/dist/{chunk-G2X2PN74.js.map → chunk-MVWJHZ5G.js.map} +0 -0
- /package/dist/{chunk-ODHQPTHU.js.map → chunk-NGWU4QLU.js.map} +0 -0
- /package/dist/{chunk-3CGAABHZ.js.map → chunk-OC2FSBFB.js.map} +0 -0
- /package/dist/{chunk-M367Y7ML.js.map → chunk-OGRDLK57.js.map} +0 -0
- /package/dist/{chunk-5XE3WSUX.js.map → chunk-OYBYKZUR.js.map} +0 -0
- /package/dist/{chunk-665X7R7S.js.map → chunk-PFRPC2SY.js.map} +0 -0
- /package/dist/{chunk-Z4HW3FEE.js.map → chunk-PLHOCPJD.js.map} +0 -0
- /package/dist/{chunk-AIVPAC5Q.js.map → chunk-PQDZLOY7.js.map} +0 -0
- /package/dist/{chunk-PUSSP76H.js.map → chunk-QDNUIS2Y.js.map} +0 -0
- /package/dist/{chunk-G3QKTYUT.js.map → chunk-RHOMR2GY.js.map} +0 -0
- /package/dist/{chunk-J5JBHGRN.js.map → chunk-SKF6HQ74.js.map} +0 -0
- /package/dist/{chunk-HMKEVTRM.js.map → chunk-SPFK5XZH.js.map} +0 -0
- /package/dist/{chunk-DH74ZT37.js.map → chunk-SQGAWR2L.js.map} +0 -0
- /package/dist/{chunk-67URJYN7.js.map → chunk-TGKWEAUE.js.map} +0 -0
- /package/dist/{chunk-HPCKKXRK.js.map → chunk-UKOOGNUF.js.map} +0 -0
- /package/dist/{chunk-V3WSMWBF.js.map → chunk-UL5PEVZW.js.map} +0 -0
- /package/dist/{chunk-USULBM4V.js.map → chunk-UTMIX2H2.js.map} +0 -0
- /package/dist/{chunk-AXF6SVNQ.js.map → chunk-UZNFOCE7.js.map} +0 -0
- /package/dist/{chunk-BSWPONNA.js.map → chunk-V7UVHM57.js.map} +0 -0
- /package/dist/{chunk-JHOGTGIS.js.map → chunk-VP2JWT5W.js.map} +0 -0
- /package/dist/{chunk-KCX54MGS.js.map → chunk-VSTHBKQW.js.map} +0 -0
- /package/dist/{chunk-WTQQWFV4.js.map → chunk-W7A4QXZ7.js.map} +0 -0
- /package/dist/{chunk-FJ3JD7B3.js.map → chunk-WKCVZIN7.js.map} +0 -0
- /package/dist/{chunk-TANWA6SU.js.map → chunk-X7TJBXJJ.js.map} +0 -0
- /package/dist/{chunk-AKKJFMW5.js.map → chunk-XEEMCYP6.js.map} +0 -0
- /package/dist/{chunk-FW3ME75U.js.map → chunk-XTQWAVWJ.js.map} +0 -0
- /package/dist/{chunk-CW35X5ZL.js.map → chunk-YAN2MOON.js.map} +0 -0
- /package/dist/{chunk-ACOHIDWO.js.map → chunk-YCORHJ64.js.map} +0 -0
- /package/dist/{chunk-QWBKN2IC.js.map → chunk-YOBTHZVU.js.map} +0 -0
- /package/dist/{chunk-SP6WCXY6.js.map → chunk-ZTT6ZHU5.js.map} +0 -0
- /package/dist/{cohort-NYFUILFO.js.map → cohort-RF4FT2NT.js.map} +0 -0
- /package/dist/{condition-6M4AVISY.js.map → condition-WXE2CFYT.js.map} +0 -0
- /package/dist/{controls-LMTWS3SY.js.map → controls-AYF4H7UG.js.map} +0 -0
- /package/dist/{controls.config-4PK7HLFJ.js.map → controls.config-TXZKQNYC.js.map} +0 -0
- /package/dist/{correlation-X6GB6ITK.js.map → correlation-UAYMVVUS.js.map} +0 -0
- /package/dist/{customdata.inputui-MDG3BTTG.js.map → customdata.inputui-I7RFOGYM.js.map} +0 -0
- /package/dist/{dataDownload-TFRI3VFM.js.map → dataDownload-4AGSDSEO.js.map} +0 -0
- /package/dist/{databrowser.ui-L2K7VVDW.js.map → databrowser.ui-RGJEA2BI.js.map} +0 -0
- /package/dist/{dictionary-MS6R3VNY.js.map → dictionary-AWWQXIRP.js.map} +0 -0
- /package/dist/{dnaMethylation-2KYSQWNE.js.map → dnaMethylation-PICKZS2M.js.map} +0 -0
- /package/dist/{dnaMethylation.integration.spec-2BHNKOGN.js.map → dnaMethylation.integration.spec-JUSB3CFZ.js.map} +0 -0
- /package/dist/{dofetch-BETN7HEX.js.map → dofetch-ZJMKEYN2.js.map} +0 -0
- /package/dist/{e2pca-QC2EI5JM.js.map → e2pca-K4W7ZJZG.js.map} +0 -0
- /package/dist/{ep-BTRMR4OT.js.map → ep-OY5YQMEF.js.map} +0 -0
- /package/dist/{expclust.gdc.spec-C5ZMBCGO.js.map → expclust.gdc.spec-LYDBM3TZ.js.map} +0 -0
- /package/dist/{facet-LPXKLX53.js.map → facet-7NJHLLCZ.js.map} +0 -0
- /package/dist/{gb-PHJ2SM5D.js.map → gb-COV44BMA.js.map} +0 -0
- /package/dist/{geneExpClustering-OXZJHEPD.js.map → geneExpClustering-EQR5XX4J.js.map} +0 -0
- /package/dist/{geneExpression-54RGEGML.js.map → geneExpression-2BNDQ6S6.js.map} +0 -0
- /package/dist/{geneExpression-FLBQXMSX.js.map → geneExpression-PGB6WF5H.js.map} +0 -0
- /package/dist/{geneExpression.unit.spec-ZCE7G6HI.js.map → geneExpression.unit.spec-OUNGGOJP.js.map} +0 -0
- /package/dist/{geneORA-TELI5AFV.js.map → geneORA-EKNEVQOS.js.map} +0 -0
- /package/dist/{geneRanking-7YZA5GNG.js.map → geneRanking-XUXLRERA.js.map} +0 -0
- /package/dist/{geneVariant-NJYUEY4C.js.map → geneVariant-JZDYV6LS.js.map} +0 -0
- /package/dist/{geneVariant-VKWTXUMK.js.map → geneVariant-KPZ2FYLK.js.map} +0 -0
- /package/dist/{geneVariant.integration.spec-RWYP523U.js.map → geneVariant.integration.spec-ISMLGTKC.js.map} +0 -0
- /package/dist/{genefusion.ui-B6J7I3RA.js.map → genefusion.ui-GRUXFC4U.js.map} +0 -0
- /package/dist/{geneset-VG4SFYML.js.map → geneset-RM4XIX23.js.map} +0 -0
- /package/dist/{genomeBrowser.spec-5IS5Y2NG.js.map → genomeBrowser.spec-X7EOK2LS.js.map} +0 -0
- /package/dist/{grin2-FOOH736B.js.map → grin2-5XRUMYQO.js.map} +0 -0
- /package/dist/{grin2-3T6KRC34.js.map → grin2-SWZLKD52.js.map} +0 -0
- /package/dist/{hierCluster-WLAFGZAT.js.map → hierCluster-I6T4XD3P.js.map} +0 -0
- /package/dist/{hierCluster-XBL2TOOL.js.map → hierCluster-XVDGUOW7.js.map} +0 -0
- /package/dist/{hierCluster.config-VCBRBGDZ.js.map → hierCluster.config-66CKAAPG.js.map} +0 -0
- /package/dist/{hierCluster.interactivity-PEEJ3BRC.js.map → hierCluster.interactivity-B5ZNFF4R.js.map} +0 -0
- /package/dist/{hierCluster.renderers-7ESGKIGM.js.map → hierCluster.renderers-R2DTKTLI.js.map} +0 -0
- /package/dist/{imagePlot-LWL6JMKM.js.map → imagePlot-ZM4IVDJT.js.map} +0 -0
- /package/dist/{importPlot-CLBY6QZN.js.map → importPlot-FQ65CZRI.js.map} +0 -0
- /package/dist/{isoformExpression-36P3BBN7.js.map → isoformExpression-BFCLGD2U.js.map} +0 -0
- /package/dist/{isoformExpression.unit.spec-SF2SPTRC.js.map → isoformExpression.unit.spec-KYI4HI7U.js.map} +0 -0
- /package/dist/{junction-B7DSIG4E.js.map → junction-BKH6RWOP.js.map} +0 -0
- /package/dist/{junction.customTerm-7VZS4JDE.js.map → junction.customTerm-VNQKP5I4.js.map} +0 -0
- /package/dist/{junction.unit.spec-4MWU36MR.js.map → junction.unit.spec-MQIHKSNE.js.map} +0 -0
- /package/dist/{launch.adhoc-3B34GV4S.js.map → launch.adhoc-AHTCA2BP.js.map} +0 -0
- /package/dist/{leftlabel.sample-6OM5H67E.js.map → leftlabel.sample-LIBMKP22.js.map} +0 -0
- /package/dist/{lollipop-SL2F5G6K.js.map → lollipop-26ZQH3EL.js.map} +0 -0
- /package/dist/{maf-FRYGN5GR.js.map → maf-W3W2XJ5B.js.map} +0 -0
- /package/dist/{maftimeline-3UFWS73J.js.map → maftimeline-LCJD5O2M.js.map} +0 -0
- /package/dist/{matrix-DDKSOJ4C.js.map → matrix-H634EZWK.js.map} +0 -0
- /package/dist/{matrix-H2ZH2QKC.js.map → matrix-O2AINT5M.js.map} +0 -0
- /package/dist/{matrix.cells-JTMC35SK.js.map → matrix.cells-3U3CUU5I.js.map} +0 -0
- /package/dist/{matrix.config-EUBXWEBS.js.map → matrix.config-F6IPB5B5.js.map} +0 -0
- /package/dist/{matrix.data-CO5RBWY5.js.map → matrix.data-KQNBNYC6.js.map} +0 -0
- /package/dist/{matrix.dom-2SA43BPT.js.map → matrix.dom-YQNX4IQO.js.map} +0 -0
- /package/dist/{matrix.groups-AKOJ2W6U.js.map → matrix.groups-QFL2ZDHD.js.map} +0 -0
- /package/dist/{matrix.integration.spec-66KNZO3S.js.map → matrix.integration.spec-OVGSXJWO.js.map} +0 -0
- /package/dist/{matrix.interactivity-DY5YJIYB.js.map → matrix.interactivity-Q5ODZPDL.js.map} +0 -0
- /package/dist/{matrix.layout-MQQNHBI2.js.map → matrix.layout-YPYM7FRY.js.map} +0 -0
- /package/dist/{matrix.legend-CGU7T6GF.js.map → matrix.legend-ZO57ENXP.js.map} +0 -0
- /package/dist/{matrix.renderers-HC7PJN4B.js.map → matrix.renderers-NIGONKWO.js.map} +0 -0
- /package/dist/{matrix.serieses-W4L6ZO37.js.map → matrix.serieses-ZQD2U6RF.js.map} +0 -0
- /package/dist/{matrix.sort-T74DWFB2.js.map → matrix.sort-RZU65LR2.js.map} +0 -0
- /package/dist/{matrix.sort.unit.spec-EQEHQXTO.js.map → matrix.sort.unit.spec-NDFK2A5C.js.map} +0 -0
- /package/dist/{matrix.sorterUi-GFQG4HFV.js.map → matrix.sorterUi-MVUI25W7.js.map} +0 -0
- /package/dist/{matrix.sorterUi.unit.spec-XQHFOEYE.js.map → matrix.sorterUi.unit.spec-4ZKNOV2L.js.map} +0 -0
- /package/dist/{matrix.unit.spec-4ZWUGZUC.js.map → matrix.unit.spec-V5XNLECG.js.map} +0 -0
- /package/dist/{mavb-3CL5OHWB.js.map → mavb-LF7A7BDK.js.map} +0 -0
- /package/dist/{mds.fimo-2RFJQKJM.js.map → mds.fimo-KJ4HPMZP.js.map} +0 -0
- /package/dist/{mds.samplescatterplot-X6CXMY4C.js.map → mds.samplescatterplot-ZHNWWWYI.js.map} +0 -0
- /package/dist/{mds.survivalplot-57NIKSSH.js.map → mds.survivalplot-DNG7I22N.js.map} +0 -0
- /package/dist/{multivalue-3TUGYL4J.js.map → multivalue-SJQF7PHU.js.map} +0 -0
- /package/dist/{numericDictTermCluster-RLX5CLTN.js.map → numericDictTermCluster-O6PKT2FJ.js.map} +0 -0
- /package/dist/{oncomatrix-COK76MJN.js.map → oncomatrix-YJCPKS72.js.map} +0 -0
- /package/dist/{oncomatrix.spec-SO3ZN5BF.js.map → oncomatrix.spec-MWGBQCIQ.js.map} +0 -0
- /package/dist/{plot.2dvaf-TETCE4VG.js.map → plot.2dvaf-KIPQYNEH.js.map} +0 -0
- /package/dist/{plot.app-5YUAVZA4.js.map → plot.app-WHG3SEOG.js.map} +0 -0
- /package/dist/{plot.barplot-JUGY5Z7A.js.map → plot.barplot-DTSYFUPC.js.map} +0 -0
- /package/dist/{plot.boxplot-QZXICT7J.js.map → plot.boxplot-MQDULP3P.js.map} +0 -0
- /package/dist/{plot.brainImaging-2F6E6QS4.js.map → plot.brainImaging-DGVJQSCH.js.map} +0 -0
- /package/dist/{plot.disco-H4P4B6QS.js.map → plot.disco-HYPRBLMQ.js.map} +0 -0
- /package/dist/{plot.ssgq-LEQF3STZ.js.map → plot.ssgq-J5MMN7OD.js.map} +0 -0
- /package/dist/{plot.vaf2cov-UBMD2CN7.js.map → plot.vaf2cov-CID7GQB5.js.map} +0 -0
- /package/dist/{polar2-AVEZM2T5.js.map → polar2-QTSO2HCB.js.map} +0 -0
- /package/dist/{profileForms-CUSUGTPC.js.map → profileForms-SRR2M5OS.js.map} +0 -0
- /package/dist/{profilePlot-67Z7AXQ4.js.map → profilePlot-NDC4S2SC.js.map} +0 -0
- /package/dist/{proteinView-7K7VHGX3.js.map → proteinView-EFNQL3LD.js.map} +0 -0
- /package/dist/{proteomeCohortCompare-MRGH6HHI.js.map → proteomeCohortCompare-WMR53HEL.js.map} +0 -0
- /package/dist/{pseudbulk.unit.spec-ZHDL6GIM.js.map → pseudbulk.unit.spec-6MRZNXFI.js.map} +0 -0
- /package/dist/{pseudobulk-ZNXPF7QB.js.map → pseudobulk-O5EC44RY.js.map} +0 -0
- /package/dist/{qualitative-QXMZHDWU.js.map → qualitative-W6MFYG7Z.js.map} +0 -0
- /package/dist/{radar2-QJDGNLED.js.map → radar2-GIQILMWK.js.map} +0 -0
- /package/dist/{radarFacility2-LGGOOWX4.js.map → radarFacility2-5YJZ5JCK.js.map} +0 -0
- /package/dist/{rememberedGvQ.unit.spec-YKUMMYFT.js.map → rememberedGvQ.unit.spec-B6RQM5LQ.js.map} +0 -0
- /package/dist/{render-LSSRZJY3.js.map → render-2J4LR3UI.js.map} +0 -0
- /package/dist/{report-TTECPO44.js.map → report-MUMQK6XY.js.map} +0 -0
- /package/dist/{sampleView-EFS2UBRS.js.map → sampleView-NKZMNBMH.js.map} +0 -0
- /package/dist/{samplelst-FXULLJBO.js.map → samplelst-X74JZMTR.js.map} +0 -0
- /package/dist/{samplematrix-MNFCXOWO.js.map → samplematrix-QDQXB5ZG.js.map} +0 -0
- /package/dist/{sc-2BUOXML2.js.map → sc-FGHV5CBJ.js.map} +0 -0
- /package/dist/{scatter-AVRTALYY.js.map → scatter-QFVRBA7F.js.map} +0 -0
- /package/dist/{scatter-CPEIVL3K.js.map → scatter-YXF5VQGZ.js.map} +0 -0
- /package/dist/{selectGenomeWithTklst-3BG2ZPPN.js.map → selectGenomeWithTklst-DP4RPV7U.js.map} +0 -0
- /package/dist/{singleCellCellType-QLAEBVN2.js.map → singleCellCellType-XCHCMRR6.js.map} +0 -0
- /package/dist/{singleCellCellType.unit.spec-P4NAWYKL.js.map → singleCellCellType.unit.spec-S3JTP235.js.map} +0 -0
- /package/dist/{singleCellGeneExpression-IZ2PMDDL.js.map → singleCellGeneExpression-FD6REV7Y.js.map} +0 -0
- /package/dist/{singleCellGeneExpression.unit.spec-DKBZICJM.js.map → singleCellGeneExpression.unit.spec-PVMZYD4G.js.map} +0 -0
- /package/dist/{singleCellNumericValue-NB3QFH7H.js.map → singleCellNumericValue-SIITQPMD.js.map} +0 -0
- /package/dist/{singleCellNumericValue.unit.spec-ZKK2KWRQ.js.map → singleCellNumericValue.unit.spec-7PJEHLF7.js.map} +0 -0
- /package/dist/{singleCellPlot-ZU655L4Z.js.map → singleCellPlot-YJCFAYJW.js.map} +0 -0
- /package/dist/{singlecell-NKPTXVHW.js.map → singlecell-6R7YK5P3.js.map} +0 -0
- /package/dist/{singlecell-PEIEFXVU.js.map → singlecell-KHMH732Y.js.map} +0 -0
- /package/dist/{snp-G55JGINX.js.map → snp-HXCVSW2F.js.map} +0 -0
- /package/dist/{snp.unit.spec-47CCZKJO.js.map → snp.unit.spec-HXMFR4QS.js.map} +0 -0
- /package/dist/{snplocus-TRVAEAPF.js.map → snplocus-YQVHAKBC.js.map} +0 -0
- /package/dist/{spliceevent.a53ss.diagram-FL2R6F22.js.map → spliceevent.a53ss.diagram-4IBTR3JD.js.map} +0 -0
- /package/dist/{spliceevent.exonskip.diagram-XDZWTJXR.js.map → spliceevent.exonskip.diagram-5ZTG65CE.js.map} +0 -0
- /package/dist/{spliceevent.noeventdiagram-L322N534.js.map → spliceevent.noeventdiagram-WO5KSC45.js.map} +0 -0
- /package/dist/{ssGSEA-DZY4LFQY.js.map → ssGSEA-VJ3LVYJV.js.map} +0 -0
- /package/dist/{ssGSEA.unit.spec-P6C3VTVZ.js.map → ssGSEA.unit.spec-JQIJ4NZP.js.map} +0 -0
- /package/dist/{stattable-R7O6OIMB.js.map → stattable-COVQSHRZ.js.map} +0 -0
- /package/dist/{studyCatalog-OMDE4JRD.js.map → studyCatalog-EXVRH4FI.js.map} +0 -0
- /package/dist/{summarizeCnvGeneexp-A7HW6FJI.js.map → summarizeCnvGeneexp-UJBTMXXH.js.map} +0 -0
- /package/dist/{summarizeGeneexpSurvival-ODI4HGFH.js.map → summarizeGeneexpSurvival-XLQJGDRY.js.map} +0 -0
- /package/dist/{summarizeMutationCnv-C2YB73OL.js.map → summarizeMutationCnv-7RWSXB6F.js.map} +0 -0
- /package/dist/{summarizeMutationDiagnosis-4Y322NYU.js.map → summarizeMutationDiagnosis-42MG737O.js.map} +0 -0
- /package/dist/{summarizeMutationSurvival-7IHNURLC.js.map → summarizeMutationSurvival-FWVKVEHK.js.map} +0 -0
- /package/dist/{summary-E4L5MZTF.js.map → summary-NR26ZPQB.js.map} +0 -0
- /package/dist/{summary.integration.spec-SDCGE6BQ.js.map → summary.integration.spec-Z7JSUTGK.js.map} +0 -0
- /package/dist/{summaryInput-DHIMU5DM.js.map → summaryInput-DGKUOJVC.js.map} +0 -0
- /package/dist/{sunburst-ULNPFEAM.js.map → sunburst-C5JNGFT7.js.map} +0 -0
- /package/dist/{survival-CU4N5KZO.js.map → survival-GCEX3EAZ.js.map} +0 -0
- /package/dist/{survival-KWWH6REE.js.map → survival-OAQA5JQN.js.map} +0 -0
- /package/dist/{survival.integration.spec-UW6SYVLP.js.map → survival.integration.spec-ZX5RD6VQ.js.map} +0 -0
- /package/dist/{svgraph-HFI6NNF3.js.map → svgraph-XCFZ2WAG.js.map} +0 -0
- /package/dist/{svmr-VHS7Z4SO.js.map → svmr-4XTTURHA.js.map} +0 -0
- /package/dist/{table-GJUXHKQI.js.map → table-FQZ4UAH6.js.map} +0 -0
- /package/dist/{termCollection-CCZ4BFIU.js.map → termCollection-5QCR6LED.js.map} +0 -0
- /package/dist/{termCollection-O5CQ472U.js.map → termCollection-DN6A6HJU.js.map} +0 -0
- /package/dist/{termCollection.unit.spec-KR5G6JFU.js.map → termCollection.unit.spec-RSSSXDHU.js.map} +0 -0
- /package/dist/{termCollectionFractionSelection-IKU5MFBT.js.map → termCollectionFractionSelection-OSN7FITY.js.map} +0 -0
- /package/dist/{termCollectionFractionSelection.unit.spec-6ZWHNGES.js.map → termCollectionFractionSelection.unit.spec-UW6D3DVK.js.map} +0 -0
- /package/dist/{tk-3DLMAFW7.js.map → tk-4CZCVYBP.js.map} +0 -0
- /package/dist/{tk-CAYWF7LX.js.map → tk-BIPJNXBZ.js.map} +0 -0
- /package/dist/{tp.ui-NF5ZYOHW.js.map → tp.ui-NI4U7567.js.map} +0 -0
- /package/dist/{tvs.density-V6ZXSFGF.js.map → tvs.density-CB24PXDE.js.map} +0 -0
- /package/dist/{tvs.dt-43A4SSLG.js.map → tvs.dt-YRDNDXUU.js.map} +0 -0
- /package/dist/{tvs.dtcnv.categorical-DYXHUNP2.js.map → tvs.dtcnv.categorical-REP4T33P.js.map} +0 -0
- /package/dist/{tvs.dtcnv.continuous-NOKNP4UG.js.map → tvs.dtcnv.continuous-K7OREEP5.js.map} +0 -0
- /package/dist/{tvs.dtfusion-4NAOCC2X.js.map → tvs.dtfusion-AB5MPH3Q.js.map} +0 -0
- /package/dist/{tvs.dtitd-SZC6EITI.js.map → tvs.dtitd-AFWU7ACY.js.map} +0 -0
- /package/dist/{tvs.dtsnvindel-EYSBCNQK.js.map → tvs.dtsnvindel-G7XQEKEO.js.map} +0 -0
- /package/dist/{tvs.dtsv-VSPWIIFO.js.map → tvs.dtsv-Y6BEY4J2.js.map} +0 -0
- /package/dist/{tvs.numeric-M5LH3PRH.js.map → tvs.numeric-GF4XF5OF.js.map} +0 -0
- /package/dist/{tvs.samplelst-3YQ4GKNG.js.map → tvs.samplelst-XRRWPC2E.js.map} +0 -0
- /package/dist/{vocabulary-HCPEIO2P.js.map → vocabulary-DJZWOO6Q.js.map} +0 -0
- /package/dist/{wsi.direct-K2J6GGWY.js.map → wsi.direct-XUWANMKV.js.map} +0 -0
|
@@ -0,0 +1,1769 @@
|
|
|
1
|
+
import {
|
|
2
|
+
recoverInit
|
|
3
|
+
} from "./chunk-X46YA4CB.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-K7HFOAR7.js";
|
|
21
|
+
import {
|
|
22
|
+
importPlot
|
|
23
|
+
} from "./chunk-FSWBNSQD.js";
|
|
24
|
+
import {
|
|
25
|
+
Menu
|
|
26
|
+
} from "./chunk-7XZA2XR2.js";
|
|
27
|
+
import {
|
|
28
|
+
icons
|
|
29
|
+
} from "./chunk-6RRZRISL.js";
|
|
30
|
+
import {
|
|
31
|
+
dofetch3
|
|
32
|
+
} from "./chunk-GP4VLNMZ.js";
|
|
33
|
+
import {
|
|
34
|
+
trimGvTermsForSave
|
|
35
|
+
} from "./chunk-CME6DYDH.js";
|
|
36
|
+
import {
|
|
37
|
+
DNA_METHYLATION,
|
|
38
|
+
dtcnv,
|
|
39
|
+
dtfusionrna,
|
|
40
|
+
dtsnvindel,
|
|
41
|
+
dtsv
|
|
42
|
+
} from "./chunk-57Z4VYLM.js";
|
|
43
|
+
import {
|
|
44
|
+
getCompInit,
|
|
45
|
+
multiInit
|
|
46
|
+
} from "./chunk-WINIL2KN.js";
|
|
47
|
+
import {
|
|
48
|
+
select_default
|
|
49
|
+
} from "./chunk-I6Y4O3RR.js";
|
|
50
|
+
|
|
51
|
+
// mass/sessionBtn.js
|
|
52
|
+
var MassSessionBtn = class _MassSessionBtn {
|
|
53
|
+
static type = "sessionBtn";
|
|
54
|
+
constructor() {
|
|
55
|
+
this.type = _MassSessionBtn.type;
|
|
56
|
+
this.route = "termdb";
|
|
57
|
+
this.embedderOrigin = window.location.origin;
|
|
58
|
+
this.hostURL = sessionStorage.getItem("hostURL") || this.embedderOrigin;
|
|
59
|
+
}
|
|
60
|
+
async init(appState) {
|
|
61
|
+
const tip = new Menu({ padding: "0px" });
|
|
62
|
+
const copytip = new Menu({ padding: "5px" });
|
|
63
|
+
this.dom = {
|
|
64
|
+
button: this.opts.button,
|
|
65
|
+
tip,
|
|
66
|
+
copytip
|
|
67
|
+
};
|
|
68
|
+
this.dom.button.on("click", (event2) => {
|
|
69
|
+
event2.stopPropagation();
|
|
70
|
+
this.dom.tip.clear();
|
|
71
|
+
this.showMenu();
|
|
72
|
+
});
|
|
73
|
+
this.dslabel = appState.vocab.dslabel;
|
|
74
|
+
this.savedSessions = JSON.parse(localStorage.getItem("savedMassSessions") || `{}`);
|
|
75
|
+
this.requiredAuth = appState.termdbConfig?.requiredAuth?.find((a) => a.route == this.route && a.type == "jwt");
|
|
76
|
+
}
|
|
77
|
+
async showMenu() {
|
|
78
|
+
this.dom.tip.clear().d.style("padding", 0);
|
|
79
|
+
this.dom.tip.d.attr("id", "sjpp-session-menu");
|
|
80
|
+
const gt = `<span style='margin-left: 24px; float: right'>></span>`;
|
|
81
|
+
const options = [
|
|
82
|
+
{ label: `Open`, title: "Recover a saved session", callback: this.open },
|
|
83
|
+
{ label: `Save`, title: "Save the current view", callback: this.save },
|
|
84
|
+
{ label: `Share`, title: "Share the current view", callback: this.getSessionUrl }
|
|
85
|
+
];
|
|
86
|
+
if (!this.serverCachedSessions) await this.setServerCachedSessions();
|
|
87
|
+
if (Object.keys(this.savedSessions).length || Object.keys(this.serverCachedSessions).length) {
|
|
88
|
+
options.push({ label: `Delete`, title: "Delete a saved session", callback: this.delete });
|
|
89
|
+
}
|
|
90
|
+
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) => {
|
|
91
|
+
this.dom.tip.clear().d.style("padding", "10px");
|
|
92
|
+
event2.stopPropagation();
|
|
93
|
+
this.showBackBtn();
|
|
94
|
+
d.callback.call(this);
|
|
95
|
+
});
|
|
96
|
+
this.dom.tip.showunder(this.dom.button.node());
|
|
97
|
+
}
|
|
98
|
+
async open() {
|
|
99
|
+
const radioName = `sjpp-session-open-radio-` + Math.random().toString().slice(-6);
|
|
100
|
+
this.dom.tip.d.append("div").style("display", "none").style("padding", "3px 9px").html(`
|
|
101
|
+
<b>Open in</b>
|
|
102
|
+
<label>
|
|
103
|
+
<input type='radio' name='${radioName}' value='new' style='margin-right: 0; vertical-align: bottom'/>
|
|
104
|
+
<span>a new tab</span>
|
|
105
|
+
</label>
|
|
106
|
+
<label style='margin-left: 5px'>
|
|
107
|
+
<input type='radio' name='${radioName}' value='current' checked=checked style='margin-right: 0; vertical-align: bottom'/>
|
|
108
|
+
<span>current tab</span>
|
|
109
|
+
</label>
|
|
110
|
+
`);
|
|
111
|
+
const t = await this.listSessions({
|
|
112
|
+
trClickHandler: async (event2, d) => {
|
|
113
|
+
const { loc, id: id2 } = d;
|
|
114
|
+
if (!id2) return;
|
|
115
|
+
if (loc.includes("browser")) {
|
|
116
|
+
this.sessionName = id2;
|
|
117
|
+
const state = structuredClone(this.savedSessions[id2]);
|
|
118
|
+
await preprocessState(state, this.app);
|
|
119
|
+
const targetWindow = this.dom.tip.d.node().querySelector(`[name="${radioName}"]:checked`).value;
|
|
120
|
+
if (targetWindow == "current") {
|
|
121
|
+
this.app.dispatch({ type: "app_refresh", state });
|
|
122
|
+
} else if (window.location.origin == this.hostURL) {
|
|
123
|
+
window.open(`/?mass-session-id=${id2}&src=browser`);
|
|
124
|
+
} else {
|
|
125
|
+
if (state.embedder) parentCorsMessage({ state });
|
|
126
|
+
else {
|
|
127
|
+
const { protocol, host, search, origin, href } = window.location;
|
|
128
|
+
const embedder = { protocol, host, search, origin, href };
|
|
129
|
+
parentCorsMessage({ state: Object.assign({ embedder }, state) });
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
this.dom.tip.hide();
|
|
133
|
+
} else if (loc == "server") {
|
|
134
|
+
const headers = await this.app.vocabApi.mayGetAuthHeaders(this.route);
|
|
135
|
+
const body = { id: id2, route: this.route, dslabel: this.dslabel, embedder: window.location.hostname };
|
|
136
|
+
const res = await dofetch3(`/massSession?`, { headers, body });
|
|
137
|
+
if (!res.state) throw res.error || "unable to get the cached session from the server";
|
|
138
|
+
await preprocessState(res.state, this.app);
|
|
139
|
+
this.savedSessions[id2] = res.state;
|
|
140
|
+
const targetWindow = this.dom.tip.d.node().querySelector(`[name="${radioName}"]:checked`).value;
|
|
141
|
+
if (targetWindow == "current") {
|
|
142
|
+
this.app.dispatch({ type: "app_refresh", state: res.state });
|
|
143
|
+
} else if (window.location.origin == this.hostURL) {
|
|
144
|
+
window.open(`/?mass-session-id=${id2}&src=cred&dslabel=${this.dslabel}&route=${this.route}`);
|
|
145
|
+
} else {
|
|
146
|
+
parentCorsMessage(res);
|
|
147
|
+
}
|
|
148
|
+
this.dom.tip.hide();
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
});
|
|
152
|
+
t.headtr.select("th").html("Open from");
|
|
153
|
+
const tr1 = t.tbody.insert("tr", "tr");
|
|
154
|
+
tr1.append("td").style("text-align", "center").style("padding", "3px 9px").html("Local file");
|
|
155
|
+
const label = tr1.append("td").style("text-align", "left").append("label");
|
|
156
|
+
label.append("span").style("padding", "3px 9px").style("text-decoration", "underline").style("cursor", "pointer").html("Choose File");
|
|
157
|
+
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 () => {
|
|
158
|
+
const file = event.target.files.item(0);
|
|
159
|
+
const json = await file.text();
|
|
160
|
+
let sessionName = file.name;
|
|
161
|
+
if (this.savedSessions[sessionName]) {
|
|
162
|
+
sessionName = prompt(
|
|
163
|
+
`Leave as-is to overwrite a session with the same name, or enter a different session name.`,
|
|
164
|
+
sessionName
|
|
165
|
+
);
|
|
166
|
+
}
|
|
167
|
+
this.sessionName = sessionName;
|
|
168
|
+
const state = JSON.parse(json);
|
|
169
|
+
await preprocessState(state, this.app);
|
|
170
|
+
this.savedSessions[sessionName] = state;
|
|
171
|
+
localStorage.setItem("savedMassSessions", JSON.stringify(this.savedSessions));
|
|
172
|
+
const targetWindow = this.dom.tip.d.node().querySelector(`[name="${radioName}"]:checked`).value;
|
|
173
|
+
if (targetWindow == "current") {
|
|
174
|
+
this.app.dispatch({ type: "app_refresh", state });
|
|
175
|
+
} else if (window.location.origin == this.hostURL) {
|
|
176
|
+
window.open(`/?mass-session-id=${sessionName}&src=browser`);
|
|
177
|
+
} else {
|
|
178
|
+
if (state.embedder) parentCorsMessage({ state });
|
|
179
|
+
else {
|
|
180
|
+
const { protocol, host, search, origin, href } = window.location;
|
|
181
|
+
const embedder = { protocol, host, search, origin, href };
|
|
182
|
+
parentCorsMessage({ state: Object.assign({ embedder }, state) });
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
this.dom.tip.hide();
|
|
186
|
+
});
|
|
187
|
+
}
|
|
188
|
+
async listSessions(opts = {}) {
|
|
189
|
+
const table = this.dom.tip.d.append("table").attr("class", "sjpp-controls-table");
|
|
190
|
+
const headtr = table.append("thead").append("tr");
|
|
191
|
+
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);
|
|
192
|
+
const sessionIds = Object.keys(this.savedSessions).map((id2) => ({ loc: "browser", id: id2 }));
|
|
193
|
+
if (!this.serverCachedSessions) await this.setServerCachedSessions();
|
|
194
|
+
sessionIds.push(...this.serverCachedSessions.map((id2) => ({ loc: "server", id: id2 })));
|
|
195
|
+
const tbody = table.append("tbody");
|
|
196
|
+
const trs = tbody.selectAll("tr").data(sessionIds).enter().append("tr").on("click", opts.trClickHandler || null);
|
|
197
|
+
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);
|
|
198
|
+
if (!this.serverCachedSessions.length && this.requiredAuth && !this.app.vocabApi.hasVerifiedToken()) {
|
|
199
|
+
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);
|
|
200
|
+
}
|
|
201
|
+
return { table, headtr, tbody, trs };
|
|
202
|
+
}
|
|
203
|
+
async setServerCachedSessions() {
|
|
204
|
+
const state = this.app.getState();
|
|
205
|
+
this.requiredAuth = state.termdbConfig?.requiredAuth?.find((a) => a.route == this.route && a.type == "jwt");
|
|
206
|
+
if (!this.requiredAuth) {
|
|
207
|
+
this.serverCachedSessions = [];
|
|
208
|
+
return;
|
|
209
|
+
}
|
|
210
|
+
const headers = this.app.vocabApi.mayGetAuthHeaders(this.route);
|
|
211
|
+
const body = { route: this.route, dslabel: this.dslabel, embedder: window.location.hostname };
|
|
212
|
+
const res = await dofetch3("/sessionIds", { headers, body });
|
|
213
|
+
this.serverCachedSessions = res.sessionIds || [];
|
|
214
|
+
}
|
|
215
|
+
async save(d) {
|
|
216
|
+
const div = this.dom.tip.d;
|
|
217
|
+
const inputDiv = div.append("div");
|
|
218
|
+
inputDiv.append("span").html("Save as");
|
|
219
|
+
const sessionNames = Object.keys(this.savedSessions);
|
|
220
|
+
if (!this.serverCachedSessions) await this.setServerCachedSessions();
|
|
221
|
+
sessionNames.push(...this.serverCachedSessions.filter((d2) => !sessionNames.includes(d2)));
|
|
222
|
+
const placeholder = this.sessionName || "unnamed-session";
|
|
223
|
+
const input = inputDiv.append("input").attr("type", "text").attr("placeholder", placeholder).style("width", "220px").on("input", () => {
|
|
224
|
+
searchResultDiv.selectAll("*").remove();
|
|
225
|
+
const value = input.property("value");
|
|
226
|
+
const exactMatch = sessionNames.filter((s) => s === value);
|
|
227
|
+
const startsWith = sessionNames.filter((s) => s.startsWith(value));
|
|
228
|
+
const includes = sessionNames.filter((s) => s.includes(value) && s !== value && !startsWith.includes(s));
|
|
229
|
+
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) => {
|
|
230
|
+
input.property("value", d2);
|
|
231
|
+
searchResultDiv.selectAll("*").remove();
|
|
232
|
+
});
|
|
233
|
+
});
|
|
234
|
+
const searchResultDiv = div.append("div");
|
|
235
|
+
const submitDiv = div.append("div");
|
|
236
|
+
submitDiv.append("span").html("Save to ");
|
|
237
|
+
submitDiv.append("button").style("min-width", "80px").html("Browser").attr(
|
|
238
|
+
"title",
|
|
239
|
+
`Save the session in your current browser's cache. The session can be easily recovered, but not shared among your other devices`
|
|
240
|
+
).on("click", () => {
|
|
241
|
+
this.sessionName = input.property("value") || placeholder;
|
|
242
|
+
this.savedSessions[this.sessionName] = this.getSavableState();
|
|
243
|
+
localStorage.setItem("savedMassSessions", JSON.stringify(this.savedSessions));
|
|
244
|
+
this.confirmAction(`Cached '<b>${this.sessionName}</b>' in browser`);
|
|
245
|
+
});
|
|
246
|
+
submitDiv.append("button").style("min-width", "80px").html("File").attr(
|
|
247
|
+
"title",
|
|
248
|
+
`Save the session into a local file. The session can be easily recoved using the 'Open from local file' option.`
|
|
249
|
+
).on("click", () => {
|
|
250
|
+
const name = input.property("value") || placeholder;
|
|
251
|
+
this.savedSessions[name] = this.getSavableState();
|
|
252
|
+
this.download(name);
|
|
253
|
+
this.confirmAction(`Downloaded '<b>${name}</b>'`);
|
|
254
|
+
});
|
|
255
|
+
if (this.requiredAuth) {
|
|
256
|
+
const requiresSignIn = this.app.vocabApi.hasVerifiedToken() ? "" : "Requires sign-in. ";
|
|
257
|
+
submitDiv.append("button").style("min-width", "80px").html("Server").attr(
|
|
258
|
+
"title",
|
|
259
|
+
`${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.`
|
|
260
|
+
).property("disabled", !this.app.vocabApi.hasVerifiedToken()).on("click", async () => {
|
|
261
|
+
if (!this.app.vocabApi.hasVerifiedToken()) {
|
|
262
|
+
alert("Requires sign-in");
|
|
263
|
+
return;
|
|
264
|
+
}
|
|
265
|
+
const name = input.property("value") || placeholder;
|
|
266
|
+
this.savedSessions[name] = this.getSavableState();
|
|
267
|
+
const res = await this.getSessionUrl(name);
|
|
268
|
+
if (res.id != name) throw `error saving ${name}`;
|
|
269
|
+
this.confirmAction(`Saved '<b>${name}</b>' on the server`);
|
|
270
|
+
});
|
|
271
|
+
}
|
|
272
|
+
}
|
|
273
|
+
/* the state to serialize into a saved session: a detached copy of the app state, since
|
|
274
|
+
getState() returns a deeply frozen one, minus everything that opening the session
|
|
275
|
+
rebuilds anyway */
|
|
276
|
+
getSavableState() {
|
|
277
|
+
const state = structuredClone(this.app.getState());
|
|
278
|
+
delete state.termdbConfig;
|
|
279
|
+
return trimGvTermsForSave(state);
|
|
280
|
+
}
|
|
281
|
+
download(name = "") {
|
|
282
|
+
const sessionName = name || this.sessionName;
|
|
283
|
+
const ext = sessionName?.endsWith(".txt") ? "" : ".txt";
|
|
284
|
+
const filename = `${sessionName}${ext}`;
|
|
285
|
+
to_textfile(filename, JSON.stringify(this.savedSessions[sessionName]));
|
|
286
|
+
}
|
|
287
|
+
async getSessionUrl(filename = "") {
|
|
288
|
+
const headers = await this.app.vocabApi.mayGetAuthHeaders("termdb");
|
|
289
|
+
const state = this.getSavableState();
|
|
290
|
+
const { protocol, host, search, origin, href } = window.location;
|
|
291
|
+
state.embedder = { protocol, host, search, origin, href };
|
|
292
|
+
if (filename) {
|
|
293
|
+
state.__sessionFor__ = {
|
|
294
|
+
route: this.route,
|
|
295
|
+
filename,
|
|
296
|
+
dslabel: this.dslabel,
|
|
297
|
+
embedder: window.location.hostname
|
|
298
|
+
};
|
|
299
|
+
}
|
|
300
|
+
const res = await dofetch3("/massSession", {
|
|
301
|
+
headers,
|
|
302
|
+
method: "POST",
|
|
303
|
+
body: JSON.stringify(state)
|
|
304
|
+
});
|
|
305
|
+
if (filename) {
|
|
306
|
+
return res;
|
|
307
|
+
} else {
|
|
308
|
+
const url = `${this.hostURL}/?mass-session-id=${res.id}&noheader=1`;
|
|
309
|
+
this.dom.tip.showunder(this.dom.button.node());
|
|
310
|
+
const linkDiv = this.dom.tip.d.append("div").style("margin", "10px");
|
|
311
|
+
linkDiv.append("div").style("display", "flex").style("margin-bottom", "12px").html(`Open or copy the session link.`);
|
|
312
|
+
const a = linkDiv.append("a").style("display", "none").attr("href", url).attr("target", "_blank").html(res.id);
|
|
313
|
+
linkDiv.append("button").style("cursor", "pointer").text("Open link").on("click", () => {
|
|
314
|
+
a.node().click();
|
|
315
|
+
});
|
|
316
|
+
linkDiv.append("button").style("cursor", "pointer").style("margin-left", "10px").text("Copy link").on("click", async (event2) => {
|
|
317
|
+
await navigator.clipboard.writeText(url);
|
|
318
|
+
this.dom.copytip.clear().showunder(event2.target);
|
|
319
|
+
this.dom.copytip.d.append("div").html("✓");
|
|
320
|
+
setTimeout(() => {
|
|
321
|
+
this.dom.copytip.hide();
|
|
322
|
+
}, 1e3);
|
|
323
|
+
});
|
|
324
|
+
if (this.hostURL != window.location.origin) {
|
|
325
|
+
a.on("click", (event2) => {
|
|
326
|
+
event2.preventDefault();
|
|
327
|
+
parentCorsMessage({ state }, "noredirect");
|
|
328
|
+
return false;
|
|
329
|
+
});
|
|
330
|
+
}
|
|
331
|
+
linkDiv.append("div").html(`
|
|
332
|
+
<br>
|
|
333
|
+
<div style="max-width: 400px; font-size: 1em; opacity:.6">
|
|
334
|
+
<span>NOTES</span>
|
|
335
|
+
<ul>
|
|
336
|
+
<li>A recovered session may hide data or views to users that are not authorized to access the saved datasets or features.</li>
|
|
337
|
+
<li>This session will be saved for ${this.opts.massSessionDuration} days.</li>
|
|
338
|
+
</ul>
|
|
339
|
+
</div>`);
|
|
340
|
+
setTimeout(() => {
|
|
341
|
+
this.dom.button.property("disabled", false);
|
|
342
|
+
}, 1e3);
|
|
343
|
+
}
|
|
344
|
+
}
|
|
345
|
+
async delete() {
|
|
346
|
+
const t = await this.listSessions({
|
|
347
|
+
trClickHandler: function(event2) {
|
|
348
|
+
const input = this.lastChild.querySelector("input");
|
|
349
|
+
const checked = event2.target == input ? input.checked : !input.checked;
|
|
350
|
+
select_default(this).style("text-decoration", checked ? "line-through" : "");
|
|
351
|
+
if (event2.target != input) input.checked = checked;
|
|
352
|
+
const checkedRows = t.table.node().querySelectorAll("input:checked");
|
|
353
|
+
submitBtn.property("disabled", checkedRows.length ? false : true);
|
|
354
|
+
}
|
|
355
|
+
});
|
|
356
|
+
t.headtr.append("th").html("Delete");
|
|
357
|
+
t.trs.each(function(d) {
|
|
358
|
+
select_default(this).append("td").style("text-align", "center").append("input").attr("type", "checkbox").attr("value", d.id);
|
|
359
|
+
});
|
|
360
|
+
const submitBtn = this.dom.tip.d.append("div").style("text-align", "center").append("button").html("Delete selected sessions").property("disabled", true).on("click", async () => {
|
|
361
|
+
errorDiv.selectAll("*").remove();
|
|
362
|
+
const inputs = t.table.node().querySelectorAll("input");
|
|
363
|
+
const sessionIdsDeletedFromServer = [];
|
|
364
|
+
for (const input of inputs) {
|
|
365
|
+
if (select_default(input).property("checked")) {
|
|
366
|
+
const d = input.parentNode.parentNode.__data__;
|
|
367
|
+
if (d.loc == "browser") {
|
|
368
|
+
delete this.savedSessions[input.value];
|
|
369
|
+
} else if (d.loc == "server") {
|
|
370
|
+
sessionIdsDeletedFromServer.push(input.value);
|
|
371
|
+
} else throw `unknown cache location=${d.loc}`;
|
|
372
|
+
}
|
|
373
|
+
}
|
|
374
|
+
localStorage.setItem("savedMassSessions", JSON.stringify(this.savedSessions));
|
|
375
|
+
if (sessionIdsDeletedFromServer.length) {
|
|
376
|
+
submitBtn.property("disabled", true);
|
|
377
|
+
let error, failedIds;
|
|
378
|
+
try {
|
|
379
|
+
const headers = await this.app.vocabApi.mayGetAuthHeaders("termdb");
|
|
380
|
+
const errors = [];
|
|
381
|
+
failedIds = [];
|
|
382
|
+
for (const ids of getDeletionBatches(sessionIdsDeletedFromServer)) {
|
|
383
|
+
const body = { ids, route: this.route, dslabel: this.dslabel, embedder: window.location.hostname };
|
|
384
|
+
try {
|
|
385
|
+
const res = await dofetch3(`/massSession?`, { method: "DELETE", headers, body });
|
|
386
|
+
if (res.error) {
|
|
387
|
+
errors.push(res.error);
|
|
388
|
+
failedIds.push(...res.failedIds || ids);
|
|
389
|
+
}
|
|
390
|
+
} catch (e) {
|
|
391
|
+
errors.push(e.message || e);
|
|
392
|
+
failedIds.push(...ids);
|
|
393
|
+
}
|
|
394
|
+
}
|
|
395
|
+
if (errors.length) error = errors.join("; ");
|
|
396
|
+
} catch (e) {
|
|
397
|
+
error = e.message || e;
|
|
398
|
+
failedIds = sessionIdsDeletedFromServer;
|
|
399
|
+
}
|
|
400
|
+
const deletedIds = sessionIdsDeletedFromServer.filter((id2) => !failedIds?.includes(id2));
|
|
401
|
+
this.serverCachedSessions = this.serverCachedSessions.filter((id2) => !deletedIds.includes(id2));
|
|
402
|
+
if (error) {
|
|
403
|
+
t.trs.filter((d) => d.loc == "browser" ? !this.savedSessions[d.id] : deletedIds.includes(d.id)).remove();
|
|
404
|
+
const checkedRows = t.table.node().querySelectorAll("input:checked");
|
|
405
|
+
submitBtn.property("disabled", !checkedRows.length);
|
|
406
|
+
sayerror(errorDiv, `Error deleting server session(s): ${error}`);
|
|
407
|
+
return;
|
|
408
|
+
}
|
|
409
|
+
}
|
|
410
|
+
this.dom.tip.hide();
|
|
411
|
+
});
|
|
412
|
+
const errorDiv = this.dom.tip.d.append("div");
|
|
413
|
+
}
|
|
414
|
+
showBackBtn() {
|
|
415
|
+
this.dom.tip.d.append("div").attr("class", "sja_clbtext2").style("margin-bottom", "10px").style("cursor", "pointer").html(`< Session Menu`).on("click", () => this.showMenu());
|
|
416
|
+
}
|
|
417
|
+
confirmAction(html) {
|
|
418
|
+
this.dom.tip.clear().d.append("div").html(html).transition().delay(3e3).duration(1e3).style("opacity", 0);
|
|
419
|
+
setTimeout(() => {
|
|
420
|
+
this.dom.tip.hide();
|
|
421
|
+
}, 3500);
|
|
422
|
+
}
|
|
423
|
+
};
|
|
424
|
+
function getDeletionBatches(ids) {
|
|
425
|
+
const maxEncodedIdsLength = 1e3;
|
|
426
|
+
const batches = [];
|
|
427
|
+
let batch = [];
|
|
428
|
+
for (const id2 of ids) {
|
|
429
|
+
if (batch.length && encodeURIComponent(JSON.stringify([...batch, id2])).length > maxEncodedIdsLength) {
|
|
430
|
+
batches.push(batch);
|
|
431
|
+
batch = [];
|
|
432
|
+
}
|
|
433
|
+
batch.push(id2);
|
|
434
|
+
}
|
|
435
|
+
if (batch.length) batches.push(batch);
|
|
436
|
+
return batches;
|
|
437
|
+
}
|
|
438
|
+
async function preprocessState(state, app) {
|
|
439
|
+
delete state.termdbConfig;
|
|
440
|
+
if (state.plots) {
|
|
441
|
+
const promises = [];
|
|
442
|
+
for (const plot of state.plots) {
|
|
443
|
+
promises.push(
|
|
444
|
+
(async () => {
|
|
445
|
+
const _ = await importPlot(plot.chartType);
|
|
446
|
+
return await _.getPlotConfig(plot, app);
|
|
447
|
+
})()
|
|
448
|
+
);
|
|
449
|
+
}
|
|
450
|
+
try {
|
|
451
|
+
await Promise.all(promises);
|
|
452
|
+
} catch (e) {
|
|
453
|
+
console.log(e);
|
|
454
|
+
app.printError(e);
|
|
455
|
+
}
|
|
456
|
+
}
|
|
457
|
+
}
|
|
458
|
+
var sessionBtnInit = getCompInit(MassSessionBtn);
|
|
459
|
+
|
|
460
|
+
// mass/about.ts
|
|
461
|
+
var cohortTableActiveColor = "yellow";
|
|
462
|
+
var MassAbout = class _MassAbout {
|
|
463
|
+
constructor(opts) {
|
|
464
|
+
this.initCohort = (appState) => {
|
|
465
|
+
if (this.selectCohort == null) return;
|
|
466
|
+
if (!this.selectCohort.values) return;
|
|
467
|
+
const instanceNum2 = this.instanceNum;
|
|
468
|
+
const activeCohort = appState.activeCohort;
|
|
469
|
+
const app = this.app;
|
|
470
|
+
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) {
|
|
471
|
+
const tr = select_default(nodes[i]);
|
|
472
|
+
const td0 = tr.append("td");
|
|
473
|
+
const radioName = "sja-termdb-cohort-" + instanceNum2;
|
|
474
|
+
const radioId = radioName + "-" + i;
|
|
475
|
+
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) => {
|
|
476
|
+
const state = app.getState();
|
|
477
|
+
const clearOnChange = state.termdbConfig.selectCohort.clearOnChange;
|
|
478
|
+
if (clearOnChange) {
|
|
479
|
+
const subactions = [];
|
|
480
|
+
const toBeCleared = [];
|
|
481
|
+
const plots = state.plots;
|
|
482
|
+
const filter = state.termfilter.filter.lst.find((f) => f.tag == "filterUiRoot")?.lst;
|
|
483
|
+
const groups = state.groups;
|
|
484
|
+
if (clearOnChange.plots && plots?.length) toBeCleared.push("plots");
|
|
485
|
+
for (const plot of plots) {
|
|
486
|
+
subactions.push({
|
|
487
|
+
type: "plot_delete",
|
|
488
|
+
id: plot.id
|
|
489
|
+
});
|
|
490
|
+
}
|
|
491
|
+
if (clearOnChange.filter && filter?.length) toBeCleared.push("filters");
|
|
492
|
+
subactions.push({
|
|
493
|
+
type: "filter_replace",
|
|
494
|
+
filter: {
|
|
495
|
+
type: "tvslst",
|
|
496
|
+
in: true,
|
|
497
|
+
join: "",
|
|
498
|
+
tag: "filterUiRoot",
|
|
499
|
+
lst: []
|
|
500
|
+
}
|
|
501
|
+
});
|
|
502
|
+
if (clearOnChange.groups && groups?.length) {
|
|
503
|
+
toBeCleared.push("groups");
|
|
504
|
+
for (const group of groups) {
|
|
505
|
+
subactions.push({
|
|
506
|
+
type: "delete_group",
|
|
507
|
+
name: group.name
|
|
508
|
+
});
|
|
509
|
+
}
|
|
510
|
+
for (const term of state.customTerms) {
|
|
511
|
+
subactions.push({
|
|
512
|
+
type: "delete_customTerm",
|
|
513
|
+
name: term.name
|
|
514
|
+
});
|
|
515
|
+
}
|
|
516
|
+
}
|
|
517
|
+
subactions.push({ type: "cohort_set", activeCohort: i });
|
|
518
|
+
if (toBeCleared.length) {
|
|
519
|
+
const confirm = window.confirm(
|
|
520
|
+
`Changing the cohort will clear all ${joinByComma(
|
|
521
|
+
toBeCleared
|
|
522
|
+
)}. To proceed, click "OK". To save the session, click "Cancel" and then click the "Session" button at the top of the page.`
|
|
523
|
+
);
|
|
524
|
+
if (!confirm) {
|
|
525
|
+
event2.preventDefault();
|
|
526
|
+
return;
|
|
527
|
+
}
|
|
528
|
+
}
|
|
529
|
+
app.dispatch({
|
|
530
|
+
type: "app_refresh",
|
|
531
|
+
subactions
|
|
532
|
+
});
|
|
533
|
+
} else app.dispatch({ type: "cohort_set", activeCohort: i });
|
|
534
|
+
});
|
|
535
|
+
td0.append("label").style("font-size", "1.4em").attr("for", radioId).attr("colspan", 2).style("cursor", "pointer").html((d2) => d2.label);
|
|
536
|
+
tr.selectAll("td").style("max-width", "600px").style("padding-bottom", "10px").style("padding-right", "20px").style("vertical-align", "top");
|
|
537
|
+
});
|
|
538
|
+
this.dom.cohortTable = this.subheader.append("div").attr("data-testid", "sjpp-about-cohort-table").style("margin-left", "12px");
|
|
539
|
+
if (this.selectCohort.asterisk) {
|
|
540
|
+
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);
|
|
541
|
+
}
|
|
542
|
+
};
|
|
543
|
+
this.renderCohortsTable = async () => {
|
|
544
|
+
if (!this.dom.cohortTable) return;
|
|
545
|
+
this.dom.cohortTable.selectAll("*").remove();
|
|
546
|
+
const columns = [{ label: "Feature" }];
|
|
547
|
+
const rows = [];
|
|
548
|
+
const result = await this.app.vocabApi.getCohortsData();
|
|
549
|
+
if ("error" in result) throw result.error;
|
|
550
|
+
if (this.selectCohort?.values) {
|
|
551
|
+
const values = this.selectCohort.values;
|
|
552
|
+
result.cohorts.sort((a, b) => {
|
|
553
|
+
const aIndex = values.findIndex((v) => v.keys.toString() == a.cohort);
|
|
554
|
+
const bIndex = values.findIndex((v) => v.keys.toString() == b.cohort);
|
|
555
|
+
if (aIndex < bIndex) return -1;
|
|
556
|
+
if (aIndex > bIndex) return 1;
|
|
557
|
+
return 0;
|
|
558
|
+
});
|
|
559
|
+
}
|
|
560
|
+
if (!result.cfeatures.length) return;
|
|
561
|
+
for (const feature of result.features) rows.push([{ value: feature.name }]);
|
|
562
|
+
for (const cohort of result.cohorts) {
|
|
563
|
+
if (cohort.subcohorts?.length) continue;
|
|
564
|
+
columns.push({ label: cohort.name });
|
|
565
|
+
for (const [i, feature] of result.features.entries()) {
|
|
566
|
+
const cf = result.cfeatures.find((cf2) => cf2.idfeature === feature.idfeature && cf2.cohort === cohort.cohort);
|
|
567
|
+
if (cf) rows[i].push({ value: cf.value });
|
|
568
|
+
}
|
|
569
|
+
}
|
|
570
|
+
renderTable({
|
|
571
|
+
rows,
|
|
572
|
+
columns,
|
|
573
|
+
div: this.dom.cohortTable,
|
|
574
|
+
showLines: false,
|
|
575
|
+
maxHeight: "60vh",
|
|
576
|
+
header: { style: { "font-size": "1.2em", "font-weight": "bold" } }
|
|
577
|
+
});
|
|
578
|
+
this.dom.cohortTable.select("table").style("border-collapse", "collapse");
|
|
579
|
+
this.dom.cohortTable.selectAll(`tbody > tr > td`).style("background-color", "transparent").style("padding", "6px");
|
|
580
|
+
const state = this.app.getState();
|
|
581
|
+
const selectCohort = state.termdbConfig.selectCohort;
|
|
582
|
+
const activeCohort = state.activeCohort;
|
|
583
|
+
const keys = selectCohort.values[activeCohort].keys;
|
|
584
|
+
let selector = `tbody > tr > td:nth-child(${activeCohort + 2})`;
|
|
585
|
+
const combined = keys.length > 1;
|
|
586
|
+
if (combined) {
|
|
587
|
+
selector = "";
|
|
588
|
+
for (const key of keys) {
|
|
589
|
+
const i = result.cohorts.map((c) => c.cohort).indexOf(key);
|
|
590
|
+
if (selector !== "") selector += ",";
|
|
591
|
+
selector += `tbody > tr > td:nth-child(${i + 2})`;
|
|
592
|
+
}
|
|
593
|
+
}
|
|
594
|
+
const activeColumns = this.dom.cohortTable.selectAll(selector);
|
|
595
|
+
const color = state.termdbConfig.massNav?.activeColor || cohortTableActiveColor;
|
|
596
|
+
activeColumns.style("background-color", color);
|
|
597
|
+
};
|
|
598
|
+
this.initCustomHtml = () => {
|
|
599
|
+
if (this.selectCohort != null) return;
|
|
600
|
+
if (!this.aboutOverrides?.html) return;
|
|
601
|
+
this.subheader.append("div").attr("data-testid", "sjpp-custom-about-content").style("padding", "10px").html(this.aboutOverrides.html);
|
|
602
|
+
};
|
|
603
|
+
// render the world map (from termdbConfig.geomap) directly on the landing tab when the dataset opts in.
|
|
604
|
+
// the renderer (and its ~170KB world.json basemap) is dynamically imported so it never loads for
|
|
605
|
+
// datasets that don't enable the map.
|
|
606
|
+
this.initGeomap = async (appState) => {
|
|
607
|
+
if (!this.aboutOverrides?.showGeomap) return;
|
|
608
|
+
const geomap = appState.termdbConfig?.geomap;
|
|
609
|
+
if (!geomap?.sites?.length) return;
|
|
610
|
+
const holder = this.subheader.append("div").attr("data-testid", "sjpp-about-geomap").style("padding", "10px");
|
|
611
|
+
const { renderGeomap } = await import("./render-2J4LR3UI.js");
|
|
612
|
+
renderGeomap(holder, geomap);
|
|
613
|
+
};
|
|
614
|
+
this.initActiveItems = () => {
|
|
615
|
+
if (!this.aboutOverrides?.activeItems) return;
|
|
616
|
+
if (this.aboutOverrides.activeItems.layout == "cards") {
|
|
617
|
+
this.initActiveItemCards();
|
|
618
|
+
return;
|
|
619
|
+
}
|
|
620
|
+
const div = this.subheader.append("div").attr("data-testid", "sjpp-custom-about-activeItems").style("padding", "0px 0px 10px 20px");
|
|
621
|
+
for (const item of this.aboutOverrides.activeItems.items) {
|
|
622
|
+
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);
|
|
623
|
+
this.makeActivatable(btn, () => this.launchActiveItem(item, btn.node()));
|
|
624
|
+
}
|
|
625
|
+
};
|
|
626
|
+
// render activeItems as large square tiles (homepage style) that lift on hover
|
|
627
|
+
this.initActiveItemCards = () => {
|
|
628
|
+
const items = this.aboutOverrides.activeItems.items;
|
|
629
|
+
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");
|
|
630
|
+
for (const item of items) {
|
|
631
|
+
const card = holder.append("div").attr("class", "sjpp-about-card").attr("data-testid", "sjpp-custom-active-item-card");
|
|
632
|
+
if (item.icon) card.append("div").attr("class", "sjpp-about-card-icon").html(item.icon);
|
|
633
|
+
card.append("div").attr("class", "sjpp-about-card-title").html(item.title);
|
|
634
|
+
card.append("div").attr("class", "sjpp-about-card-subtitle").text(item.subtitle || "");
|
|
635
|
+
this.makeActivatable(card, () => this.launchActiveItem(item, card.node()));
|
|
636
|
+
}
|
|
637
|
+
};
|
|
638
|
+
// make a non-native clickable element (a styled <div>) operable like a button:
|
|
639
|
+
this.makeActivatable = (sel, onActivate) => {
|
|
640
|
+
sel.attr("role", "button").attr("tabindex", 0).on("click", () => onActivate()).on("keydown", (event2) => {
|
|
641
|
+
if (event2.key == "Enter" || event2.key == " ") {
|
|
642
|
+
event2.preventDefault();
|
|
643
|
+
onActivate();
|
|
644
|
+
}
|
|
645
|
+
});
|
|
646
|
+
};
|
|
647
|
+
// launch behavior shared by button and card layouts
|
|
648
|
+
this.launchActiveItem = async (item, anchorEl) => {
|
|
649
|
+
if (item.openChartMenu) {
|
|
650
|
+
await this.openChartMenu(item.openChartMenu, anchorEl);
|
|
651
|
+
return;
|
|
652
|
+
}
|
|
653
|
+
if (!item.plot) {
|
|
654
|
+
console.error("about activeItem has neither .plot nor .openChartMenu", item);
|
|
655
|
+
return;
|
|
656
|
+
}
|
|
657
|
+
await this.app.dispatch({
|
|
658
|
+
type: "tab_set",
|
|
659
|
+
activeTab: 1
|
|
660
|
+
});
|
|
661
|
+
this.app.dispatch({
|
|
662
|
+
type: "plot_create",
|
|
663
|
+
id: getId(),
|
|
664
|
+
config: structuredClone(item.plot)
|
|
665
|
+
});
|
|
666
|
+
};
|
|
667
|
+
// open a chart-specific launch menu (e.g. gene search for proteinView) anchored to the tile.
|
|
668
|
+
// the chart module is dynamically imported so its code only loads when the tile is clicked.
|
|
669
|
+
this.openChartMenu = async (chartType, anchorEl) => {
|
|
670
|
+
const menu = this.chartMenu || (this.chartMenu = new Menu({ padding: "0px" }));
|
|
671
|
+
menu.clear();
|
|
672
|
+
const shimApp = {
|
|
673
|
+
opts: this.app.opts,
|
|
674
|
+
dispatch: async (action) => {
|
|
675
|
+
if (action.type == "plot_create") await this.app.dispatch({ type: "tab_set", activeTab: 1 });
|
|
676
|
+
return this.app.dispatch(action);
|
|
677
|
+
}
|
|
678
|
+
};
|
|
679
|
+
const chartsInstanceShim = { app: shimApp, dom: { tip: menu } };
|
|
680
|
+
const _ = await importPlot(chartType);
|
|
681
|
+
if (typeof _.makeChartBtnMenu != "function")
|
|
682
|
+
throw `about activeItem openChartMenu: chart '${chartType}' has no makeChartBtnMenu`;
|
|
683
|
+
_.makeChartBtnMenu(menu.d.append("div"), chartsInstanceShim, chartType);
|
|
684
|
+
menu.showunder(anchorEl);
|
|
685
|
+
};
|
|
686
|
+
this.initDisclaimer = () => {
|
|
687
|
+
const d = this.aboutOverrides?.disclaimer;
|
|
688
|
+
if (!d) return;
|
|
689
|
+
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");
|
|
690
|
+
div.append("div").style("margin-bottom", "8px").style("font-weight", "bold").text("DISCLAIMER");
|
|
691
|
+
div.append("div").text(d.text);
|
|
692
|
+
};
|
|
693
|
+
this.showServerInfo = () => {
|
|
694
|
+
const state = this.app.getState();
|
|
695
|
+
const about = state.termdbConfig.massNav?.tabs?.about;
|
|
696
|
+
if (!about && !this.app.opts.pkgver && !this.app.opts.launchDate) return;
|
|
697
|
+
const dataRelease = about?.dataRelease;
|
|
698
|
+
const additionalInfo = about?.additionalInfo;
|
|
699
|
+
const div = this.subheader.append("div").attr("data-testid", "sjpp-about-server-info").style("margin", "10px").style("font-size", ".8em");
|
|
700
|
+
const htmlArr = [];
|
|
701
|
+
if (dataRelease) {
|
|
702
|
+
htmlArr.push(`Data Release: <a href=${dataRelease.link} target=_blank>${dataRelease.version}</a>`);
|
|
703
|
+
}
|
|
704
|
+
if (this.app.opts.pkgver) {
|
|
705
|
+
htmlArr.push(
|
|
706
|
+
`Software Release: <a href=https://github.com/stjude/proteinpaint/pkgs/container/ppfull target=_blank>${this.app.opts.pkgver}</a>`
|
|
707
|
+
);
|
|
708
|
+
}
|
|
709
|
+
if (this.app.opts.launchDate) {
|
|
710
|
+
htmlArr.push(`Server Launched: ${this.app.opts.launchDate}`);
|
|
711
|
+
}
|
|
712
|
+
if (additionalInfo) {
|
|
713
|
+
htmlArr.push(additionalInfo);
|
|
714
|
+
}
|
|
715
|
+
div.append("div").html(htmlArr.join("; "));
|
|
716
|
+
};
|
|
717
|
+
this.opts = opts;
|
|
718
|
+
this.type = _MassAbout.type;
|
|
719
|
+
this.app = opts.app;
|
|
720
|
+
this.subheader = opts.subheader;
|
|
721
|
+
this.instanceNum = opts.instanceNum;
|
|
722
|
+
this.aboutOverrides = opts.aboutOverrides;
|
|
723
|
+
this.selectCohort = opts.selectCohort;
|
|
724
|
+
this.dom = {
|
|
725
|
+
cohortDescription: this.subheader.append("div").attr("data-testid", "sjpp-about-cohort-desc").style("margin-left", "10px")
|
|
726
|
+
};
|
|
727
|
+
if (opts?.selectCohort?.title) {
|
|
728
|
+
this.dom.cohortTitle = opts.subheader.append("h2").attr("data-testid", "sjpp-about-cohort-title").style("margin-left", "10px").text(opts.selectCohort.title);
|
|
729
|
+
}
|
|
730
|
+
if (opts.selectCohort?.prompt) {
|
|
731
|
+
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);
|
|
732
|
+
}
|
|
733
|
+
if (opts.selectCohort) {
|
|
734
|
+
this.dom.cohortOpts = this.subheader.append("div").style("margin-bottom", "30px").style("margin-left", "10px");
|
|
735
|
+
}
|
|
736
|
+
}
|
|
737
|
+
static {
|
|
738
|
+
this.type = "about";
|
|
739
|
+
}
|
|
740
|
+
/* render all contents into this.subheader
|
|
741
|
+
do it through init() means that contents are rendered just once on launching mass ui and won't be rerendered or updated
|
|
742
|
+
since there's no reason to update about tab contents while user is interacting with mass ui
|
|
743
|
+
*/
|
|
744
|
+
init(appState) {
|
|
745
|
+
this.initCohort(appState);
|
|
746
|
+
this.initCustomHtml();
|
|
747
|
+
this.initGeomap(appState);
|
|
748
|
+
this.initActiveItems();
|
|
749
|
+
this.initDisclaimer();
|
|
750
|
+
this.showServerInfo();
|
|
751
|
+
}
|
|
752
|
+
async main() {
|
|
753
|
+
if (this.state.nav.activeTab !== 0) return;
|
|
754
|
+
await this.renderCohortsTable();
|
|
755
|
+
if (this.opts.selectCohort) {
|
|
756
|
+
if (this.opts.selectCohort.description) {
|
|
757
|
+
this.dom.cohortDescription.html(this.opts.selectCohort.description);
|
|
758
|
+
} else if (this.opts.selectCohort.descriptionByCohort) {
|
|
759
|
+
this.dom.cohortDescription.html(
|
|
760
|
+
this.opts.selectCohort.descriptionByCohort[this.state.termdbConfig.selectCohort.values[this.state.activeCohort].keys.join(",")]
|
|
761
|
+
);
|
|
762
|
+
}
|
|
763
|
+
}
|
|
764
|
+
}
|
|
765
|
+
};
|
|
766
|
+
var aboutInit = getCompInit(MassAbout);
|
|
767
|
+
function joinByComma(arr) {
|
|
768
|
+
if (!arr.length) return "";
|
|
769
|
+
else if (arr.length == 1) return arr[0];
|
|
770
|
+
else if (arr.length == 2) return arr.join(" and ");
|
|
771
|
+
else return `${arr.slice(0, -1).join(", ")}, and ${arr.slice(-1)}`;
|
|
772
|
+
}
|
|
773
|
+
|
|
774
|
+
// mass/search.ts
|
|
775
|
+
var MIN_PROMPT_LENGTH_FOR_GENE_SEARCH = 1;
|
|
776
|
+
var MIN_PROMPT_LENGTH_FOR_OTHER_SEARCH = 3;
|
|
777
|
+
var MAX_PROMPT_LENGTH_FOR_OMNISEARCH = 20;
|
|
778
|
+
function makeMethylationRegionTerm(opts, vocabApi) {
|
|
779
|
+
const { chr, start, stop } = opts;
|
|
780
|
+
if (!chr || !Number.isInteger(start) || !Number.isInteger(stop)) throw new Error("invalid coordinate");
|
|
781
|
+
return {
|
|
782
|
+
chr,
|
|
783
|
+
start,
|
|
784
|
+
stop,
|
|
785
|
+
type: DNA_METHYLATION,
|
|
786
|
+
unit: getDNAMethUnit("region", vocabApi),
|
|
787
|
+
genomicFeatureType: "region"
|
|
788
|
+
};
|
|
789
|
+
}
|
|
790
|
+
async function embedMethylationRegionPicker(opts) {
|
|
791
|
+
const { holder, genomeObj, vocabApi, chr, start, stop, callback } = opts;
|
|
792
|
+
if (!chr || !Number.isInteger(start) || !Number.isInteger(stop)) throw new Error("unable to retrieve gene coordinate");
|
|
793
|
+
holder.selectAll("*").remove();
|
|
794
|
+
holder.style("display", "block");
|
|
795
|
+
holder.append("div").style("opacity", 0.6).text("Navigate genome browser to desired region");
|
|
796
|
+
const arg = {
|
|
797
|
+
holder,
|
|
798
|
+
genome: genomeObj,
|
|
799
|
+
// genome obj
|
|
800
|
+
chr,
|
|
801
|
+
start,
|
|
802
|
+
stop,
|
|
803
|
+
tklst: [],
|
|
804
|
+
nobox: true,
|
|
805
|
+
width: 500,
|
|
806
|
+
hidegenelegend: true,
|
|
807
|
+
debugmode: opts.debug
|
|
808
|
+
};
|
|
809
|
+
first_genetrack_tolist(genomeObj, arg.tklst);
|
|
810
|
+
const _ = await import("./block-E7YUGCHL.js");
|
|
811
|
+
const blockInstance = new _.Block(arg);
|
|
812
|
+
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 () => {
|
|
813
|
+
const { chr: chr2, start: start2, stop: stop2 } = blockInstance.rglst[0];
|
|
814
|
+
await callback(makeMethylationRegionTerm({ chr: chr2, start: start2, stop: stop2 }, vocabApi));
|
|
815
|
+
});
|
|
816
|
+
return blockInstance;
|
|
817
|
+
}
|
|
818
|
+
function parseCoordCandidates(prompt2) {
|
|
819
|
+
const m = /^\s*(\w+)\s*:\s*([\d,]+)\s*-\s*([\d,]+)\s*$/.exec(prompt2);
|
|
820
|
+
if (!m) return null;
|
|
821
|
+
const [, chrToken, start, stop] = m;
|
|
822
|
+
const chrCandidates = /^chr/i.test(chrToken) ? [chrToken, chrToken.replace(/^chr/i, "")] : [chrToken, "chr" + chrToken];
|
|
823
|
+
return chrCandidates.map((chr) => `${chr}:${start}-${stop}`);
|
|
824
|
+
}
|
|
825
|
+
async function handleOmnisearchKeyup(self, event2) {
|
|
826
|
+
if (keyupEnter(event2)) return;
|
|
827
|
+
const prompt2 = event2.target.value.trim();
|
|
828
|
+
if (!prompt2) {
|
|
829
|
+
self.dom.noMatchShown = false;
|
|
830
|
+
self.clear({ hide: true });
|
|
831
|
+
return;
|
|
832
|
+
}
|
|
833
|
+
const coordCandidates = parseCoordCandidates(prompt2);
|
|
834
|
+
if (coordCandidates || MIN_PROMPT_LENGTH_FOR_GENE_SEARCH <= prompt2.length && prompt2.length <= MAX_PROMPT_LENGTH_FOR_OMNISEARCH) {
|
|
835
|
+
try {
|
|
836
|
+
await doSearch(self, prompt2, coordCandidates);
|
|
837
|
+
} catch (e) {
|
|
838
|
+
if (e.stack) console.log(e.stack);
|
|
839
|
+
sayerror(self.dom.resultDiv, "Error: " + (e.message || e));
|
|
840
|
+
}
|
|
841
|
+
} else {
|
|
842
|
+
self.dom.noMatchShown = false;
|
|
843
|
+
self.clear({ hide: true });
|
|
844
|
+
}
|
|
845
|
+
}
|
|
846
|
+
async function fetchOmnisearch(opts) {
|
|
847
|
+
const data = await dofetch3("termdb/chat", {
|
|
848
|
+
body: {
|
|
849
|
+
genome: opts.genome,
|
|
850
|
+
dslabel: opts.dslabel,
|
|
851
|
+
omnisearch: true,
|
|
852
|
+
prompt: opts.prompt,
|
|
853
|
+
cohortStr: opts.cohortStr,
|
|
854
|
+
usecase: opts.usecase,
|
|
855
|
+
treeFilter: opts.treeFilter,
|
|
856
|
+
coordCandidates: opts.coordCandidates || void 0,
|
|
857
|
+
// gene search runs from 1 char; dictionary + sample search only once the prompt reaches the
|
|
858
|
+
// longer cutoff, so the server skips them (and their all-samples scan) for short prompts
|
|
859
|
+
includeDictAndSampleSearch: opts.prompt.trim().length >= MIN_PROMPT_LENGTH_FOR_OTHER_SEARCH
|
|
860
|
+
}
|
|
861
|
+
});
|
|
862
|
+
if (data.error) throw data.error;
|
|
863
|
+
return data;
|
|
864
|
+
}
|
|
865
|
+
function renderOmnisearchResults(self, data) {
|
|
866
|
+
const coord = data.coord || null;
|
|
867
|
+
const dictItems = Array.isArray(data.dictionaryTerms) ? data.dictionaryTerms : [];
|
|
868
|
+
const genes = Array.isArray(data.genes) ? data.genes : [];
|
|
869
|
+
const dictNames = new Set(dictItems.map((t) => t.name?.toUpperCase()));
|
|
870
|
+
const geneMap = /* @__PURE__ */ new Map();
|
|
871
|
+
for (const g of genes) {
|
|
872
|
+
const gene = g?.gene;
|
|
873
|
+
if (!gene || dictNames.has(gene.toUpperCase())) continue;
|
|
874
|
+
const dt = g.dataTypes || {};
|
|
875
|
+
const geneVariantTypes = [];
|
|
876
|
+
if (dt.snvindel) geneVariantTypes.push({ label: "SNV/indel", testid: "snvindel", dtCandidates: [dtsnvindel] });
|
|
877
|
+
if (dt.cnv) geneVariantTypes.push({ label: "CNV", testid: "cnv", dtCandidates: [dtcnv] });
|
|
878
|
+
if (dt.svfusion)
|
|
879
|
+
geneVariantTypes.push({ label: "SV/fusion", testid: "svfusion", dtCandidates: [dtsv, dtfusionrna] });
|
|
880
|
+
const entry = { name: gene, gene, isGene: true };
|
|
881
|
+
if (dt.geneExpression) entry.isGeneExpression = true;
|
|
882
|
+
if (geneVariantTypes.length) {
|
|
883
|
+
entry.isGeneVariant = true;
|
|
884
|
+
entry.geneVariantTypes = geneVariantTypes;
|
|
885
|
+
}
|
|
886
|
+
if (dt.genomeBrowser) {
|
|
887
|
+
entry.isGenomeBrowser = true;
|
|
888
|
+
entry.coord = g.coord;
|
|
889
|
+
}
|
|
890
|
+
if (dt.dnaMethylation) {
|
|
891
|
+
entry.isMethylation = true;
|
|
892
|
+
entry.coord = g.coord;
|
|
893
|
+
}
|
|
894
|
+
if (entry.isGeneExpression || entry.isGeneVariant || entry.isGenomeBrowser || entry.isMethylation) {
|
|
895
|
+
geneMap.set(gene.toUpperCase(), entry);
|
|
896
|
+
}
|
|
897
|
+
}
|
|
898
|
+
const geneItems = [...geneMap.values()];
|
|
899
|
+
const sampleItems = (Array.isArray(data.samples) ? data.samples : []).filter((s) => s?.name).map((s) => ({
|
|
900
|
+
isSample: true,
|
|
901
|
+
name: s.name,
|
|
902
|
+
sampleId: s.id,
|
|
903
|
+
singleCell: s.singleCell,
|
|
904
|
+
facetTracks: s.assays,
|
|
905
|
+
wsimages: s.wsimages
|
|
906
|
+
}));
|
|
907
|
+
const coordItems = coord ? [{ isCoord: true, name: `${coord.chr}:${coord.start.toLocaleString()}-${coord.stop.toLocaleString()}`, coord }] : [];
|
|
908
|
+
const totals = data.totals || {};
|
|
909
|
+
const lst = [];
|
|
910
|
+
for (const group of [
|
|
911
|
+
{
|
|
912
|
+
key: "dictionary",
|
|
913
|
+
heading: "Dictionary",
|
|
914
|
+
noun: "dictionary variable",
|
|
915
|
+
items: dictItems,
|
|
916
|
+
returned: dictItems.length,
|
|
917
|
+
total: totals.dictionaryTerms
|
|
918
|
+
},
|
|
919
|
+
{
|
|
920
|
+
key: "genes",
|
|
921
|
+
heading: "Genes",
|
|
922
|
+
noun: "gene",
|
|
923
|
+
items: geneItems,
|
|
924
|
+
returned: Array.isArray(data.genes) ? data.genes.length : 0,
|
|
925
|
+
total: totals.genes
|
|
926
|
+
},
|
|
927
|
+
{
|
|
928
|
+
key: "samples",
|
|
929
|
+
heading: "Samples",
|
|
930
|
+
noun: "sample",
|
|
931
|
+
items: sampleItems,
|
|
932
|
+
returned: sampleItems.length,
|
|
933
|
+
total: totals.samples
|
|
934
|
+
},
|
|
935
|
+
{
|
|
936
|
+
key: "coord",
|
|
937
|
+
heading: "Genomic region",
|
|
938
|
+
noun: "",
|
|
939
|
+
items: coordItems,
|
|
940
|
+
returned: coordItems.length,
|
|
941
|
+
total: void 0
|
|
942
|
+
}
|
|
943
|
+
]) {
|
|
944
|
+
if (!group.items.length) continue;
|
|
945
|
+
lst.push({ isHeading: true, name: group.heading });
|
|
946
|
+
for (const item of group.items) lst.push(item);
|
|
947
|
+
if (typeof group.total == "number" && group.total > group.returned) {
|
|
948
|
+
lst.push({
|
|
949
|
+
isNote: true,
|
|
950
|
+
testid: `sjpp-mass-chat-note-${group.key}`,
|
|
951
|
+
name: `Displaying ${group.items.length} out of a total of ${group.total} ${group.noun} matches`
|
|
952
|
+
});
|
|
953
|
+
}
|
|
954
|
+
}
|
|
955
|
+
if (!lst.length) {
|
|
956
|
+
if (!self.dom.noMatchShown) {
|
|
957
|
+
self.dom.noMatchShown = true;
|
|
958
|
+
self.noResult();
|
|
959
|
+
}
|
|
960
|
+
} else {
|
|
961
|
+
self.dom.noMatchShown = false;
|
|
962
|
+
self.showTerms({ lst });
|
|
963
|
+
}
|
|
964
|
+
}
|
|
965
|
+
async function doSearch(self, prompt2, coordCandidates) {
|
|
966
|
+
if (!prompt2) {
|
|
967
|
+
self.clear({ hide: true });
|
|
968
|
+
return;
|
|
969
|
+
}
|
|
970
|
+
const seq = self.omnisearchSeq = (self.omnisearchSeq || 0) + 1;
|
|
971
|
+
const data = await fetchOmnisearch({
|
|
972
|
+
genome: self.app.vocabApi.vocab.genome,
|
|
973
|
+
dslabel: self.app.vocabApi.vocab.dslabel,
|
|
974
|
+
prompt: prompt2,
|
|
975
|
+
cohortStr: self.getState(self.app.getState()).cohortStr,
|
|
976
|
+
usecase: self.opts.usecase,
|
|
977
|
+
treeFilter: self.app.vocabApi.state?.treeFilter,
|
|
978
|
+
coordCandidates
|
|
979
|
+
});
|
|
980
|
+
if (seq !== self.omnisearchSeq) return;
|
|
981
|
+
renderOmnisearchResults(self, data);
|
|
982
|
+
}
|
|
983
|
+
function setSearchRenderers(self) {
|
|
984
|
+
let text = "No match";
|
|
985
|
+
if (self.isChat) {
|
|
986
|
+
text = "No match. Using the chatbot...";
|
|
987
|
+
}
|
|
988
|
+
self.noResult = () => {
|
|
989
|
+
self.clear();
|
|
990
|
+
self.dom.resultDiv.append("div").text(text).style("padding", "3px 3px 3px 0px").style("opacity", 0.5);
|
|
991
|
+
clearTimeout(self.noResultTimer);
|
|
992
|
+
self.noResultTimer = setTimeout(() => {
|
|
993
|
+
self.clear({ hide: true });
|
|
994
|
+
}, 1500);
|
|
995
|
+
};
|
|
996
|
+
self.showTerms = (data) => {
|
|
997
|
+
clearTimeout(self.noResultTimer);
|
|
998
|
+
if (self.opts.disable_terms)
|
|
999
|
+
data.lst.forEach((t) => {
|
|
1000
|
+
if (t.disabled) self.opts.disable_terms.push(t);
|
|
1001
|
+
});
|
|
1002
|
+
self.clear({ hide: !data.lst.length });
|
|
1003
|
+
if (data.lst.length) {
|
|
1004
|
+
self.dom.resultDiv.append("table").selectAll().data(data.lst).enter().append("tr").each(self.showTerm);
|
|
1005
|
+
}
|
|
1006
|
+
};
|
|
1007
|
+
self.launchPlot = async (config) => {
|
|
1008
|
+
if (self.state?.nav?.activeTab == 0) {
|
|
1009
|
+
await self.app.dispatch({ type: "tab_set", activeTab: 1 });
|
|
1010
|
+
}
|
|
1011
|
+
self.app.dispatch({ type: "plot_create", config });
|
|
1012
|
+
self.dom.inputNode.value = "";
|
|
1013
|
+
self.clear({ hide: true });
|
|
1014
|
+
};
|
|
1015
|
+
self.launchGeneVariantPlot = async (gene, dtCandidates) => {
|
|
1016
|
+
let tw;
|
|
1017
|
+
let lastErr;
|
|
1018
|
+
for (const dt of dtCandidates) {
|
|
1019
|
+
const candidate = {
|
|
1020
|
+
term: {
|
|
1021
|
+
id: gene,
|
|
1022
|
+
name: gene,
|
|
1023
|
+
genes: [{ kind: "gene", id: gene, gene, name: gene, type: "geneVariant" }],
|
|
1024
|
+
type: "geneVariant"
|
|
1025
|
+
},
|
|
1026
|
+
q: { type: "predefined-groupset", dtLst: [dt] }
|
|
1027
|
+
};
|
|
1028
|
+
try {
|
|
1029
|
+
await fillTermWrapper(candidate, self.app.vocabApi);
|
|
1030
|
+
tw = candidate;
|
|
1031
|
+
break;
|
|
1032
|
+
} catch (e) {
|
|
1033
|
+
lastErr = e;
|
|
1034
|
+
}
|
|
1035
|
+
}
|
|
1036
|
+
if (!tw) throw lastErr;
|
|
1037
|
+
await self.launchPlot({ chartType: "summary", term: tw });
|
|
1038
|
+
};
|
|
1039
|
+
self.launchGenomeBrowserView = async (mode, opts) => {
|
|
1040
|
+
if (mode == "protein") {
|
|
1041
|
+
if (!opts.gene) throw new Error("gene symbol required for protein view");
|
|
1042
|
+
await self.launchPlot({
|
|
1043
|
+
chartType: "genomeBrowser",
|
|
1044
|
+
geneSearchResult: { geneSymbol: opts.gene },
|
|
1045
|
+
blockIsProteinMode: true
|
|
1046
|
+
});
|
|
1047
|
+
return;
|
|
1048
|
+
}
|
|
1049
|
+
if (!opts.coord) throw new Error("coordinate required for genomic view");
|
|
1050
|
+
await self.launchPlot({
|
|
1051
|
+
chartType: "genomeBrowser",
|
|
1052
|
+
geneSearchResult: { chr: opts.coord.chr, start: opts.coord.start, stop: opts.coord.stop },
|
|
1053
|
+
blockIsProteinMode: false
|
|
1054
|
+
});
|
|
1055
|
+
};
|
|
1056
|
+
self.launchGenomeBrowser = async (gene, coord) => {
|
|
1057
|
+
const gbRestrictMode = self.app.getState().termdbConfig?.queries?.gbRestrictMode;
|
|
1058
|
+
if (gbRestrictMode == "protein") {
|
|
1059
|
+
await self.launchGenomeBrowserView("protein", { gene });
|
|
1060
|
+
return;
|
|
1061
|
+
}
|
|
1062
|
+
if (gbRestrictMode == "genomic") {
|
|
1063
|
+
if (!coord) throw new Error(`Unable to resolve genomic coordinates for gene "${gene}".`);
|
|
1064
|
+
await self.launchGenomeBrowserView("genomic", { coord });
|
|
1065
|
+
return;
|
|
1066
|
+
}
|
|
1067
|
+
self.dom.tip.clear();
|
|
1068
|
+
self.dom.tip.showunder(self.dom.inputNode);
|
|
1069
|
+
const holder = self.dom.resultDiv.append("div").style("margin", "10px");
|
|
1070
|
+
holder.append("div").style("margin-bottom", "5px").text(gene);
|
|
1071
|
+
const btndiv = holder.append("div");
|
|
1072
|
+
const addViewBtn = (label, testid, mode) => {
|
|
1073
|
+
btndiv.append("button").attr("data-testid", testid).style("margin-right", "10px").text(label).on(
|
|
1074
|
+
"click",
|
|
1075
|
+
() => void self.launchGenomeBrowserView(mode, { gene, coord }).catch((e) => sayerror(self.dom.resultDiv, "Error: " + (e?.message || e)))
|
|
1076
|
+
);
|
|
1077
|
+
};
|
|
1078
|
+
addViewBtn(`Protein view of ${gene}`, `sjpp-mass-chat-gb-protein-${gene}`, "protein");
|
|
1079
|
+
if (coord) addViewBtn(`Genomic view of ${gene}`, `sjpp-mass-chat-gb-genomic-${gene}`, "genomic");
|
|
1080
|
+
};
|
|
1081
|
+
self.launchMethylationPlot = async (gene, coord) => {
|
|
1082
|
+
if (!coord) throw new Error(`Could not resolve coordinates for gene "${gene}"`);
|
|
1083
|
+
self.dom.tip.clear();
|
|
1084
|
+
self.dom.tip.showunder(self.dom.inputNode);
|
|
1085
|
+
const holder = self.dom.resultDiv.append("div").style("margin", "10px");
|
|
1086
|
+
holder.append("div").style("margin-bottom", "5px").text(gene);
|
|
1087
|
+
await embedMethylationRegionPicker({
|
|
1088
|
+
holder: holder.append("div"),
|
|
1089
|
+
genomeObj: self.app.opts.genome,
|
|
1090
|
+
vocabApi: self.app.vocabApi,
|
|
1091
|
+
chr: coord.chr,
|
|
1092
|
+
start: coord.start,
|
|
1093
|
+
stop: coord.stop,
|
|
1094
|
+
callback: async (term) => {
|
|
1095
|
+
await self.launchPlot({ chartType: "summary", term: { term } });
|
|
1096
|
+
}
|
|
1097
|
+
});
|
|
1098
|
+
};
|
|
1099
|
+
self.showTerm = function(item) {
|
|
1100
|
+
const tr = select_default(this);
|
|
1101
|
+
if (item.isHeading) {
|
|
1102
|
+
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);
|
|
1103
|
+
return;
|
|
1104
|
+
}
|
|
1105
|
+
if (item.isNote) {
|
|
1106
|
+
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);
|
|
1107
|
+
return;
|
|
1108
|
+
}
|
|
1109
|
+
if (item.isCoord) {
|
|
1110
|
+
tr.append("td").text(item.name).style("padding", "5px 10px");
|
|
1111
|
+
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(
|
|
1112
|
+
"click",
|
|
1113
|
+
() => void self.launchGenomeBrowserView("genomic", { coord: item.coord }).catch((e) => sayerror(self.dom.resultDiv, "Error: " + (e?.message || e)))
|
|
1114
|
+
);
|
|
1115
|
+
return;
|
|
1116
|
+
}
|
|
1117
|
+
if (item.isSample) {
|
|
1118
|
+
tr.append("td").text(item.name).style("padding", "5px 10px");
|
|
1119
|
+
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(
|
|
1120
|
+
"click",
|
|
1121
|
+
() => void self.launchPlot({
|
|
1122
|
+
chartType: "sampleView",
|
|
1123
|
+
sample: { sampleId: item.sampleId, sampleName: item.name }
|
|
1124
|
+
}).catch((e) => sayerror(self.dom.resultDiv, "Error: " + (e?.message || e)))
|
|
1125
|
+
);
|
|
1126
|
+
if (item.singleCell) {
|
|
1127
|
+
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(
|
|
1128
|
+
"click",
|
|
1129
|
+
() => void self.launchPlot({
|
|
1130
|
+
chartType: "sc",
|
|
1131
|
+
settings: { sc: { item: item.singleCell } }
|
|
1132
|
+
}).catch((e) => sayerror(self.dom.resultDiv, "Error: " + (e?.message || e)))
|
|
1133
|
+
);
|
|
1134
|
+
}
|
|
1135
|
+
if (item.wsimages) {
|
|
1136
|
+
tr.select("td:nth-child(2)").append("button").attr("type", "button").attr("class", "sja_menuoption").attr("data-testid", `sjpp-mass-chat-wsimages-${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("Whole Slide Images").on(
|
|
1137
|
+
"click",
|
|
1138
|
+
() => void self.launchPlot({
|
|
1139
|
+
chartType: "wsi",
|
|
1140
|
+
sample: { sID: item.name },
|
|
1141
|
+
imageType: "wsi"
|
|
1142
|
+
}).catch((e) => sayerror(self.dom.resultDiv, "Error: " + (e?.message || e)))
|
|
1143
|
+
);
|
|
1144
|
+
}
|
|
1145
|
+
if (item.facetTracks?.length) {
|
|
1146
|
+
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(
|
|
1147
|
+
"click",
|
|
1148
|
+
() => void self.launchPlot({
|
|
1149
|
+
chartType: "genomeBrowser",
|
|
1150
|
+
hidePlotFilter: true,
|
|
1151
|
+
filter: getSampleFilter(item.sampleId)
|
|
1152
|
+
}).catch((e) => sayerror(self.dom.resultDiv, "Error: " + (e?.message || e)))
|
|
1153
|
+
);
|
|
1154
|
+
}
|
|
1155
|
+
return;
|
|
1156
|
+
}
|
|
1157
|
+
if (item.isGene) {
|
|
1158
|
+
tr.append("td").text(item.name).style("padding", "5px 10px");
|
|
1159
|
+
const btnTd = tr.append("td");
|
|
1160
|
+
const addBtn = (label, testid, onClick) => {
|
|
1161
|
+
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))));
|
|
1162
|
+
};
|
|
1163
|
+
if (item.isGeneExpression) {
|
|
1164
|
+
addBtn("Gene expression", `sjpp-mass-chat-gene-exp-${item.gene}`, async () => {
|
|
1165
|
+
await self.launchPlot({
|
|
1166
|
+
chartType: "summary",
|
|
1167
|
+
term: { term: { gene: item.gene, name: item.name, type: "geneExpression" } }
|
|
1168
|
+
});
|
|
1169
|
+
});
|
|
1170
|
+
}
|
|
1171
|
+
if (item.isGeneVariant) {
|
|
1172
|
+
for (const vt of item.geneVariantTypes || []) {
|
|
1173
|
+
addBtn(vt.label, `sjpp-mass-chat-gene-${vt.testid}-${item.gene}`, async () => {
|
|
1174
|
+
await self.launchGeneVariantPlot(item.gene, vt.dtCandidates);
|
|
1175
|
+
});
|
|
1176
|
+
}
|
|
1177
|
+
}
|
|
1178
|
+
if (item.isGenomeBrowser) {
|
|
1179
|
+
addBtn("Genome Browser", `sjpp-mass-chat-gene-genomebrowser-${item.gene}`, async () => {
|
|
1180
|
+
await self.launchGenomeBrowser(item.gene, item.coord);
|
|
1181
|
+
});
|
|
1182
|
+
}
|
|
1183
|
+
if (item.isMethylation) {
|
|
1184
|
+
addBtn("DNA methylation", `sjpp-mass-chat-gene-methylation-${item.gene}`, async () => {
|
|
1185
|
+
await self.launchMethylationPlot(item.gene, item.coord);
|
|
1186
|
+
});
|
|
1187
|
+
}
|
|
1188
|
+
return;
|
|
1189
|
+
}
|
|
1190
|
+
const button = tr.append("td").text(item.name);
|
|
1191
|
+
if (item.type) {
|
|
1192
|
+
button.style("cursor", "pointer").attr("class", "sja_menuoption").attr("data-testid", `sjpp-mass-chat-term-${item.id}`).on("click", async () => {
|
|
1193
|
+
await self.launchPlot({
|
|
1194
|
+
chartType: item.type == "survival" ? "survival" : "summary",
|
|
1195
|
+
term: { term: item }
|
|
1196
|
+
});
|
|
1197
|
+
});
|
|
1198
|
+
} else {
|
|
1199
|
+
button.style("padding", "5px 10px").style("opacity", 0.5);
|
|
1200
|
+
}
|
|
1201
|
+
tr.append("td").text((item.__ancestorNames || []).join(" > ")).style("opacity", 0.5).style("font-size", ".7em");
|
|
1202
|
+
};
|
|
1203
|
+
self.clear = (opts = {}) => {
|
|
1204
|
+
self.dom.tip.clear();
|
|
1205
|
+
if (opts.hide) self.dom.tip.hide();
|
|
1206
|
+
else self.dom.tip.showunder(self.dom.inputNode);
|
|
1207
|
+
};
|
|
1208
|
+
}
|
|
1209
|
+
|
|
1210
|
+
// mass/chat.ts
|
|
1211
|
+
var MIN_PROMPT_LENGTH_FOR_CHAT = 5;
|
|
1212
|
+
var MassAiChatBot = class _MassAiChatBot {
|
|
1213
|
+
static {
|
|
1214
|
+
this.type = "chat";
|
|
1215
|
+
}
|
|
1216
|
+
constructor(opts) {
|
|
1217
|
+
this.type = _MassAiChatBot.type;
|
|
1218
|
+
this.opts = opts;
|
|
1219
|
+
this.app = opts.app;
|
|
1220
|
+
this.opts.usecase = this.opts.usecase || { target: "dictionary", detail: "term" };
|
|
1221
|
+
this.opts.targetType = this.opts.targetType ? this.opts.targetType : "Dictionary Variables";
|
|
1222
|
+
this.isChat = this.app.getState().termdbConfig?.queries?.chat;
|
|
1223
|
+
setSearchRenderers(this);
|
|
1224
|
+
}
|
|
1225
|
+
getState(appState) {
|
|
1226
|
+
return {
|
|
1227
|
+
cohortStr: appState.activeCohort == -1 || !appState.termdbConfig.selectCohort ? "" : appState.termdbConfig.selectCohort.values[appState.activeCohort].keys.slice().sort().join(","),
|
|
1228
|
+
search: appState.search,
|
|
1229
|
+
nav: appState.nav
|
|
1230
|
+
};
|
|
1231
|
+
}
|
|
1232
|
+
async init() {
|
|
1233
|
+
this.initDom();
|
|
1234
|
+
}
|
|
1235
|
+
initDom() {
|
|
1236
|
+
let text = "Search an item";
|
|
1237
|
+
let height = "1px";
|
|
1238
|
+
if (this.isChat) {
|
|
1239
|
+
text = "Ask a question";
|
|
1240
|
+
height = "200px";
|
|
1241
|
+
}
|
|
1242
|
+
this.dom = {
|
|
1243
|
+
tip: new Menu({ padding: "5px" }),
|
|
1244
|
+
div: this.opts.subheader,
|
|
1245
|
+
error: this.opts.subheader.append("div").attr("id", "sjpp-corrVolcano-error").style("opacity", 0.75),
|
|
1246
|
+
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")
|
|
1247
|
+
};
|
|
1248
|
+
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);
|
|
1249
|
+
this.dom.inputNode = inputSel.node();
|
|
1250
|
+
this.dom.resultDiv = this.dom.tip.d.style("border-left", "solid 1px rgb(133,182,225)").style("padding-left", "5px").attr("tabindex", -1);
|
|
1251
|
+
inputSel.on("keyup.search", (event2) => handleOmnisearchKeyup(this, event2)).on("keyup.submit", async (event2) => {
|
|
1252
|
+
if (!keyupEnter(event2)) return;
|
|
1253
|
+
if (!this.isChat) {
|
|
1254
|
+
return;
|
|
1255
|
+
}
|
|
1256
|
+
const prompt2 = event2.target.value.trim();
|
|
1257
|
+
if (!prompt2) return;
|
|
1258
|
+
this.addBubble({ msg: escapeHtml(prompt2), me: 1 });
|
|
1259
|
+
event2.target.value = "";
|
|
1260
|
+
const serverBubble = this.addBubble({ msg: "..." });
|
|
1261
|
+
if (prompt2.length <= MIN_PROMPT_LENGTH_FOR_CHAT) {
|
|
1262
|
+
serverBubble.text("Your prompt is too short. Enter a longer prompt.");
|
|
1263
|
+
return;
|
|
1264
|
+
}
|
|
1265
|
+
const body = {
|
|
1266
|
+
genome: this.app.vocabApi.vocab.genome,
|
|
1267
|
+
dslabel: this.app.vocabApi.vocab.dslabel,
|
|
1268
|
+
filter: this.app.vocabApi.state.termfilter?.filter,
|
|
1269
|
+
prompt: prompt2
|
|
1270
|
+
};
|
|
1271
|
+
try {
|
|
1272
|
+
const data = await dofetch3("termdb/chat", { body });
|
|
1273
|
+
if (data.error) throw data.error;
|
|
1274
|
+
const result = data;
|
|
1275
|
+
if (result.type === "text") {
|
|
1276
|
+
serverBubble.text(result.text);
|
|
1277
|
+
} else if (result.type === "html") {
|
|
1278
|
+
serverBubble.html(result.html);
|
|
1279
|
+
} else if (result.type === "plot") {
|
|
1280
|
+
const optionField = findPossibleOptionsField(result.plot);
|
|
1281
|
+
if (optionField) {
|
|
1282
|
+
this.showPossibleOptions(serverBubble, result.plot, optionField, result.msg);
|
|
1283
|
+
} else {
|
|
1284
|
+
this.app.dispatch({
|
|
1285
|
+
type: "plot_create",
|
|
1286
|
+
config: result.plot
|
|
1287
|
+
});
|
|
1288
|
+
serverBubble.text(`${result.msg ? result.msg + ". " : ""}Please refer to the plot generated below.`);
|
|
1289
|
+
}
|
|
1290
|
+
}
|
|
1291
|
+
} catch (e) {
|
|
1292
|
+
if (e.stack) console.log(e.stack);
|
|
1293
|
+
serverBubble.html(`Error: ${e.message || e}`);
|
|
1294
|
+
}
|
|
1295
|
+
}).node().focus();
|
|
1296
|
+
}
|
|
1297
|
+
addBubble(arg) {
|
|
1298
|
+
const bubble = this.dom.bubbleDiv.append("div").style("padding", "10px").html(`${arg.me ? '<span style="font-size:.7em">[ME]</span> ' : ""}${arg.msg}`);
|
|
1299
|
+
if (arg.me) bubble.style("background", "#f1f1f1");
|
|
1300
|
+
const n = this.dom.bubbleDiv.node();
|
|
1301
|
+
n.scrollTop = n.scrollHeight;
|
|
1302
|
+
return bubble;
|
|
1303
|
+
}
|
|
1304
|
+
// Render click boxes for an incomplete plot state. `fieldKey` is the field of `plot` whose
|
|
1305
|
+
// value holds `possible_options`. Clicking a box completes the plot state and dispatches plot_create.
|
|
1306
|
+
// Each option completes the plot in one of two ways:
|
|
1307
|
+
// - opt.config: a config patch merged into the plot (the incomplete field is dropped). Used when the
|
|
1308
|
+
// choice sets other fields, e.g. the genome browser view sets blockIsProteinMode: true|false.
|
|
1309
|
+
// - otherwise: the incomplete field is set to { id: opt.id }, e.g. survival term selection -> term:{id}.
|
|
1310
|
+
showPossibleOptions(bubble, plot, fieldKey, msg) {
|
|
1311
|
+
const options = plot[fieldKey].possible_options || [];
|
|
1312
|
+
bubble.text(`${msg ? msg + ". " : ""}Multiple options are available. Please select one:`);
|
|
1313
|
+
const boxDiv = bubble.append("div").style("margin-top", "5px");
|
|
1314
|
+
for (const opt of options) {
|
|
1315
|
+
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", () => {
|
|
1316
|
+
const config = JSON.parse(JSON.stringify(plot));
|
|
1317
|
+
if (opt.config) {
|
|
1318
|
+
delete config[fieldKey];
|
|
1319
|
+
Object.assign(config, opt.config);
|
|
1320
|
+
} else {
|
|
1321
|
+
config[fieldKey] = { id: opt.id };
|
|
1322
|
+
}
|
|
1323
|
+
this.app.dispatch({
|
|
1324
|
+
type: "plot_create",
|
|
1325
|
+
config
|
|
1326
|
+
});
|
|
1327
|
+
bubble.selectAll("*").remove();
|
|
1328
|
+
bubble.text(`Selected "${opt.name}". Please refer to the plot generated below.`);
|
|
1329
|
+
});
|
|
1330
|
+
}
|
|
1331
|
+
}
|
|
1332
|
+
main() {
|
|
1333
|
+
if (this.opts.subheader.style("display") == "none") {
|
|
1334
|
+
this.dom.inputNode.blur();
|
|
1335
|
+
this.dom.tip.hide();
|
|
1336
|
+
return;
|
|
1337
|
+
}
|
|
1338
|
+
if (this.opts?.focus != "off") this.dom.inputNode.focus();
|
|
1339
|
+
}
|
|
1340
|
+
};
|
|
1341
|
+
var chatInit = getCompInit(MassAiChatBot);
|
|
1342
|
+
function escapeHtml(s) {
|
|
1343
|
+
return s.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """).replace(/'/g, "'");
|
|
1344
|
+
}
|
|
1345
|
+
function findPossibleOptionsField(plot) {
|
|
1346
|
+
if (!plot || typeof plot !== "object") return null;
|
|
1347
|
+
for (const key of Object.keys(plot)) {
|
|
1348
|
+
const val = plot[key];
|
|
1349
|
+
if (val && typeof val === "object" && Array.isArray(val.possible_options)) return key;
|
|
1350
|
+
}
|
|
1351
|
+
return null;
|
|
1352
|
+
}
|
|
1353
|
+
|
|
1354
|
+
// mass/nav.js
|
|
1355
|
+
var activeTabBgColor = "#ececec";
|
|
1356
|
+
var activeTabBgColorHover = "#e0e0e0";
|
|
1357
|
+
var activeTabTextColor = "black";
|
|
1358
|
+
var inactiveTabBgColorHover = "#fcfced";
|
|
1359
|
+
var inactiveTabTextColor = "gray";
|
|
1360
|
+
var instanceNum = 0;
|
|
1361
|
+
var idPrefix = "_MASS_AUTOID_" + Math.random().toString().slice(-6);
|
|
1362
|
+
var id = (+/* @__PURE__ */ new Date()).toString().slice(-8);
|
|
1363
|
+
var headtip = new Menu({ padding: "0px", offsetX: 0, offsetY: 0 });
|
|
1364
|
+
headtip.d.style("z-index", 5555);
|
|
1365
|
+
var aboutTab = { top: "ABOUT", mid: "", btm: "", subheader: "about" };
|
|
1366
|
+
var chartTab = { top: "CHARTS", mid: "NONE", btm: "", subheader: "charts" };
|
|
1367
|
+
var groupsTab = { top: "GROUPS", mid: "NONE", btm: "", subheader: "groups" };
|
|
1368
|
+
var filterTab = { top: "FILTER", mid: "NONE", btm: "", subheader: "filter" };
|
|
1369
|
+
function getId() {
|
|
1370
|
+
return idPrefix + "_" + id++;
|
|
1371
|
+
}
|
|
1372
|
+
var TdbNav = class _TdbNav {
|
|
1373
|
+
static type = "nav";
|
|
1374
|
+
constructor(opts) {
|
|
1375
|
+
this.type = _TdbNav.type;
|
|
1376
|
+
this.instanceNum = instanceNum++;
|
|
1377
|
+
this.tabs = [];
|
|
1378
|
+
this.activeTab = 0;
|
|
1379
|
+
this.activeCohort = 0;
|
|
1380
|
+
this.samplecounts = {};
|
|
1381
|
+
this.searching = false;
|
|
1382
|
+
this.massSessionDuration = opts.massSessionDuration;
|
|
1383
|
+
this.sessionDaysLeft = opts.app.opts.sessionDaysLeft || null;
|
|
1384
|
+
this.sessionId = opts.app.opts.sessionId || null;
|
|
1385
|
+
this.pkgver = opts.pkgver || null;
|
|
1386
|
+
setInteractivity(this);
|
|
1387
|
+
setRenderers(this);
|
|
1388
|
+
}
|
|
1389
|
+
async init(appState) {
|
|
1390
|
+
try {
|
|
1391
|
+
this.cohortFilter = getFilterItemByTag(appState.termfilter.filter, "cohortFilter");
|
|
1392
|
+
this.initUI(appState);
|
|
1393
|
+
if (appState?.termdbConfig?.selectCohort) {
|
|
1394
|
+
this.dom.tds.filter((d) => d.colNum === 0).style("display", "");
|
|
1395
|
+
this.cohortNames = appState.termdbConfig.selectCohort.values.map((d) => d.keys.slice().sort().join(","));
|
|
1396
|
+
}
|
|
1397
|
+
this.components = await multiInit({
|
|
1398
|
+
filter: filterRxCompInit({
|
|
1399
|
+
app: this.app,
|
|
1400
|
+
vocabApi: this.app.vocabApi,
|
|
1401
|
+
holder: this.dom.subheader.filter.append("div").style("margin", "5px"),
|
|
1402
|
+
hideLabel: this.opts.header_mode === "with_tabs",
|
|
1403
|
+
emptyLabel: "+Add new filter",
|
|
1404
|
+
callback: (filter) => {
|
|
1405
|
+
this.app.dispatch({
|
|
1406
|
+
type: "filter_replace",
|
|
1407
|
+
filter
|
|
1408
|
+
});
|
|
1409
|
+
}
|
|
1410
|
+
}),
|
|
1411
|
+
charts: chartsInit({
|
|
1412
|
+
app: this.app,
|
|
1413
|
+
holder: this.dom.subheader.charts,
|
|
1414
|
+
vocab: this.opts.vocab
|
|
1415
|
+
}),
|
|
1416
|
+
groups: groupsInit({
|
|
1417
|
+
app: this.app,
|
|
1418
|
+
holder: this.dom.subheader.groups,
|
|
1419
|
+
vocab: this.opts.vocab
|
|
1420
|
+
}),
|
|
1421
|
+
recover: recoverInit({
|
|
1422
|
+
app: this.app,
|
|
1423
|
+
holder: this.dom.recoverDiv,
|
|
1424
|
+
// TODO: ???? may limit the tracked state to only the filter, activeCohort ???
|
|
1425
|
+
getState: (appState2) => appState2,
|
|
1426
|
+
reactsTo: (action) => action.type != "plot_edit",
|
|
1427
|
+
maxHistoryLen: 5
|
|
1428
|
+
}),
|
|
1429
|
+
sessionBtn: sessionBtnInit({
|
|
1430
|
+
app: this.app,
|
|
1431
|
+
button: this.dom.saveBtn,
|
|
1432
|
+
massSessionDuration: this.opts.massSessionDuration,
|
|
1433
|
+
sessionDaysLeft: this.app.opts.sessionDaysLeft || null
|
|
1434
|
+
}),
|
|
1435
|
+
about: aboutInit({
|
|
1436
|
+
app: this.app,
|
|
1437
|
+
subheader: this.dom.subheader.about,
|
|
1438
|
+
instanceNum: this.instanceNum,
|
|
1439
|
+
aboutOverrides: appState?.termdbConfig?.massNav?.tabs?.about || null,
|
|
1440
|
+
selectCohort: appState?.termdbConfig?.selectCohort || null
|
|
1441
|
+
}),
|
|
1442
|
+
chat: chatInit({
|
|
1443
|
+
app: this.app,
|
|
1444
|
+
subheader: this.dom.subheader.chat
|
|
1445
|
+
})
|
|
1446
|
+
});
|
|
1447
|
+
this.mayShowMessage_sessionDaysLeft();
|
|
1448
|
+
} catch (e) {
|
|
1449
|
+
throw e;
|
|
1450
|
+
}
|
|
1451
|
+
}
|
|
1452
|
+
reactsTo(action) {
|
|
1453
|
+
if (action.type.startsWith("filter")) return true;
|
|
1454
|
+
if (action.type.startsWith("cohort")) return true;
|
|
1455
|
+
if (action.type.startsWith("tab")) return true;
|
|
1456
|
+
if (action.type == "plot_prep") return true;
|
|
1457
|
+
if (action.type == "plot_create") return true;
|
|
1458
|
+
if (action.type == "plot_delete") return true;
|
|
1459
|
+
if (action.type == "app_refresh") return true;
|
|
1460
|
+
if (action.type.endsWith("_customTerm")) return true;
|
|
1461
|
+
if (action.type.endsWith("_group")) return true;
|
|
1462
|
+
}
|
|
1463
|
+
getState(appState) {
|
|
1464
|
+
return {
|
|
1465
|
+
searching: this.searching,
|
|
1466
|
+
// for detection of internal state change
|
|
1467
|
+
nav: appState.nav,
|
|
1468
|
+
activeCohort: appState.activeCohort,
|
|
1469
|
+
termdbConfig: appState.termdbConfig,
|
|
1470
|
+
filter: appState.termfilter.filter,
|
|
1471
|
+
plots: appState.plots,
|
|
1472
|
+
groups: appState.groups
|
|
1473
|
+
};
|
|
1474
|
+
}
|
|
1475
|
+
async main() {
|
|
1476
|
+
this.dom.tabDiv.style("display", this.state.nav.header_mode === "with_tabs" ? "inline-block" : "none");
|
|
1477
|
+
this.dom.tip.hide();
|
|
1478
|
+
this.activeTab = this.state.nav.activeTab;
|
|
1479
|
+
this.prevCohort = this.activeCohort;
|
|
1480
|
+
this.activeCohort = +this.state.activeCohort;
|
|
1481
|
+
this.filterUiRoot = getFilterItemByTag(this.state.filter, "filterUiRoot");
|
|
1482
|
+
this.cohortFilter = getFilterItemByTag(this.state.filter, "cohortFilter");
|
|
1483
|
+
if (this.cohortNames) {
|
|
1484
|
+
this.activeCohortName = this.cohortNames[this.activeCohort];
|
|
1485
|
+
if (this.activeCohort !== -1)
|
|
1486
|
+
this.activeCohortLabel = this.state.termdbConfig.selectCohort.values[this.activeCohort].shortLabel;
|
|
1487
|
+
}
|
|
1488
|
+
this.filterJSON = JSON.stringify(this.state.filter);
|
|
1489
|
+
this.cohortsData = await this.app.vocabApi.getCohortsData();
|
|
1490
|
+
if (this.state.nav.header_mode === "with_tabs") {
|
|
1491
|
+
if (!(this.activeCohort in this.samplecounts)) {
|
|
1492
|
+
this.samplecounts[this.activeCohort] = await this.app.vocabApi.getCohortSampleCount(this.activeCohortName);
|
|
1493
|
+
}
|
|
1494
|
+
if (!(this.filterJSON in this.samplecounts)) {
|
|
1495
|
+
if (!this.filterUiRoot || !this.filterUiRoot.lst.length) {
|
|
1496
|
+
this.samplecounts[this.filterJSON] = this.samplecounts[this.activeCohort];
|
|
1497
|
+
} else {
|
|
1498
|
+
const n = await this.app.vocabApi.getFilteredSampleCount(this.filterJSON);
|
|
1499
|
+
this.samplecounts[this.filterJSON] = n;
|
|
1500
|
+
}
|
|
1501
|
+
}
|
|
1502
|
+
}
|
|
1503
|
+
this.updateUI();
|
|
1504
|
+
}
|
|
1505
|
+
};
|
|
1506
|
+
var navInit = getCompInit(TdbNav);
|
|
1507
|
+
function setRenderers(self) {
|
|
1508
|
+
self.initUI = (appState) => {
|
|
1509
|
+
const verifiedToken = self.app.vocabApi.verifiedToken;
|
|
1510
|
+
const invalidTokenErrorHandling = appState.termdbConfig.invalidTokenErrorHandling;
|
|
1511
|
+
if (!verifiedToken && invalidTokenErrorHandling?.affectedCharts?.includes("*"))
|
|
1512
|
+
throw new Error(appState.termdbConfig.invalidTokenErrorHandling.errorMessage);
|
|
1513
|
+
const header = self.opts.holder.append("div").style("white-space", "nowrap");
|
|
1514
|
+
const massNav = appState.termdbConfig?.massNav || {};
|
|
1515
|
+
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);
|
|
1516
|
+
const tabDiv = header.append("div").style("display", "none").style("vertical-align", "bottom");
|
|
1517
|
+
const controlsDiv = header.append("div").style("vertical-align", "top").style("margin", "10px").style("display", "inline-block").style("float", "right");
|
|
1518
|
+
if (self.opts.header_mode === "only_buttons") {
|
|
1519
|
+
tabDiv.style("display", "none");
|
|
1520
|
+
titleDiv.style("display", "none");
|
|
1521
|
+
controlsDiv.style("display", "none");
|
|
1522
|
+
}
|
|
1523
|
+
self.opts.holder.attr("class", "sjpp-nav");
|
|
1524
|
+
self.dom = {
|
|
1525
|
+
holder: self.opts.holder,
|
|
1526
|
+
header,
|
|
1527
|
+
tabDiv,
|
|
1528
|
+
controlsDiv,
|
|
1529
|
+
searchDiv: controlsDiv.append("div").style("margin", "10px"),
|
|
1530
|
+
sessionDiv: controlsDiv.append("div").style("display", "inline-block"),
|
|
1531
|
+
recoverDiv: controlsDiv.append("div").style("display", "inline-block"),
|
|
1532
|
+
pdfDiv: controlsDiv.append("div").style("display", "inline-block").style("padding", "4px").style("vertical-align", "middle"),
|
|
1533
|
+
deleteAllDiv: controlsDiv.append("div").style("display", "inline-block").style("padding", "4px").style("vertical-align", "middle"),
|
|
1534
|
+
helpDiv: controlsDiv.append("div").style("display", "none"),
|
|
1535
|
+
sessionElapsedMessageDiv: controlsDiv.append("div").style("display", "none"),
|
|
1536
|
+
subheaderDiv: self.opts.holder.append("div").style("display", "block").style("border-bottom", "1px solid #000"),
|
|
1537
|
+
messageDiv: self.opts.holder.append("div").style("margin", "30px").style("display", "none"),
|
|
1538
|
+
titleDiv,
|
|
1539
|
+
tip: new Menu({ padding: "5px" })
|
|
1540
|
+
};
|
|
1541
|
+
icons["trash"](self.dom.deleteAllDiv, {
|
|
1542
|
+
handler: self.deletePlots,
|
|
1543
|
+
title: "Delete all plots. To revert, click Undo button"
|
|
1544
|
+
});
|
|
1545
|
+
icons["pdf"](self.dom.pdfDiv, {
|
|
1546
|
+
handler: self.opts.downloadPlots,
|
|
1547
|
+
title: "Generate a PDF of all the plots opened"
|
|
1548
|
+
});
|
|
1549
|
+
if (self.opts.header_mode === "with_cohortHtmlSelect") {
|
|
1550
|
+
self.dom.cohortStandaloneDiv = header.append("div").style("display", "inline-block").style("margin", "10px").style("vertical-align", "top");
|
|
1551
|
+
self.dom.cohortStandaloneDiv.append("label").html("Cohort: ");
|
|
1552
|
+
self.dom.cohortSelect = self.dom.cohortStandaloneDiv.append("select").on("change", async function() {
|
|
1553
|
+
self.app.dispatch({ type: "cohort_set", activeCohort: +this.value });
|
|
1554
|
+
});
|
|
1555
|
+
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);
|
|
1556
|
+
}
|
|
1557
|
+
self.dom.subheader = Object.freeze({
|
|
1558
|
+
// For either the COHORT or ABOUT tab
|
|
1559
|
+
about: self.dom.subheaderDiv.append("div").attr("data-testid", "sjpp-mass-nav-subheader-about").style("display", "none"),
|
|
1560
|
+
search: self.dom.subheaderDiv.append("div").attr("data-testid", "sjpp-mass-nav-subheader-search").style("display", "none"),
|
|
1561
|
+
groups: self.dom.subheaderDiv.append("div").attr("data-testid", "sjpp-mass-nav-subheader-groups").style("display", "none"),
|
|
1562
|
+
charts: self.dom.subheaderDiv.append("div").attr("data-testid", "sjpp-mass-nav-subheader-charts").style("display", "none"),
|
|
1563
|
+
filter: self.dom.subheaderDiv.append("div").attr("data-testid", "sjpp-mass-nav-subheader-filter").style("display", "none"),
|
|
1564
|
+
chat: self.dom.subheaderDiv.append("div").attr("data-testid", "sjpp-mass-nav-subheader-chat").style("display", "none")
|
|
1565
|
+
// cart: self.dom.subheaderDiv.append('div').style('display', 'none').html('<br/>Cart feature under construction - work in progress<br/> <br/>'),
|
|
1566
|
+
});
|
|
1567
|
+
if (!massNav.tabs?.about?.hide) {
|
|
1568
|
+
self.tabs.push(aboutTab);
|
|
1569
|
+
const override = Object.assign({}, massNav.tabs?.about);
|
|
1570
|
+
if (appState.termdbConfig?.selectCohort) {
|
|
1571
|
+
if (!override.top) override.top = "COHORT";
|
|
1572
|
+
} else {
|
|
1573
|
+
if (!override.mid) override.mid = self.pickDatasetLabel(appState);
|
|
1574
|
+
}
|
|
1575
|
+
Object.assign(aboutTab, override);
|
|
1576
|
+
}
|
|
1577
|
+
if (!massNav.tabs?.charts?.hide) {
|
|
1578
|
+
self.tabs.push(chartTab);
|
|
1579
|
+
Object.assign(chartTab, massNav.tabs?.charts);
|
|
1580
|
+
}
|
|
1581
|
+
if (!massNav.tabs?.groups?.hide) {
|
|
1582
|
+
self.tabs.push(groupsTab);
|
|
1583
|
+
Object.assign(groupsTab, massNav.tabs?.groups);
|
|
1584
|
+
}
|
|
1585
|
+
if (!massNav.tabs?.filter?.hide) {
|
|
1586
|
+
self.tabs.push(filterTab);
|
|
1587
|
+
Object.assign(filterTab, massNav.tabs?.filter);
|
|
1588
|
+
}
|
|
1589
|
+
if (!massNav.tabs?.chat?.hide) {
|
|
1590
|
+
if (appState.termdbConfig?.queries?.chat) {
|
|
1591
|
+
const chatTab = { top: "CHAT", mid: "", btm: "", subheader: "chat" };
|
|
1592
|
+
Object.assign(chatTab, massNav.tabs?.chat);
|
|
1593
|
+
chatTab.top = "CHAT";
|
|
1594
|
+
self.tabs.push(chatTab);
|
|
1595
|
+
} else {
|
|
1596
|
+
const searchTab = { top: "SEARCH", mid: "", btm: "", subheader: "chat" };
|
|
1597
|
+
Object.assign(searchTab, massNav.tabs?.chat);
|
|
1598
|
+
searchTab.top = "SEARCH";
|
|
1599
|
+
self.tabs.push(searchTab);
|
|
1600
|
+
}
|
|
1601
|
+
}
|
|
1602
|
+
const table = self.dom.tabDiv.append("table").attr("data-testid", "sjpp-nav-tabs-table").style("border-collapse", "collapse");
|
|
1603
|
+
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(
|
|
1604
|
+
(key, i) => self.tabs.map((row, colNum) => {
|
|
1605
|
+
return {
|
|
1606
|
+
rowNum: i,
|
|
1607
|
+
key,
|
|
1608
|
+
colNum,
|
|
1609
|
+
label: row[key],
|
|
1610
|
+
subheader: row.subheader,
|
|
1611
|
+
disabled: row.disabled,
|
|
1612
|
+
disabledMessage: row.disabledMessage
|
|
1613
|
+
};
|
|
1614
|
+
})
|
|
1615
|
+
).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) => {
|
|
1616
|
+
self.setTab(event2, d);
|
|
1617
|
+
}).on("mouseover", (event2, d) => {
|
|
1618
|
+
self.mouseover(event2, d);
|
|
1619
|
+
}).on("mouseout", () => {
|
|
1620
|
+
self.mouseout();
|
|
1621
|
+
});
|
|
1622
|
+
self.dom.trs = table.selectAll("tr");
|
|
1623
|
+
self.dom.tds = table.selectAll("td");
|
|
1624
|
+
self.subheaderKeys = self.tabs.map((d) => d.subheader);
|
|
1625
|
+
self.dom.saveBtn = self.dom.sessionDiv.append("button").attr("data-testid", "sjpp-nav-session-btn").style("margin", "10px").text("Session \u25BC");
|
|
1626
|
+
if (self.sessionDaysLeft != null) {
|
|
1627
|
+
self.dom.fileBtn = self.dom.sessionDiv.append("button").attr("data-testid", "sjpp-nav-file-btn").style("margin", "10px").text("Export Session").on("click", (event2) => {
|
|
1628
|
+
self.getSessionFile(event2);
|
|
1629
|
+
});
|
|
1630
|
+
}
|
|
1631
|
+
};
|
|
1632
|
+
self.deletePlots = () => {
|
|
1633
|
+
const state = self.app.getState();
|
|
1634
|
+
const subactions = [];
|
|
1635
|
+
for (const plot of state.plots) subactions.push({ type: "plot_delete", id: plot.id });
|
|
1636
|
+
self.app.dispatch({ type: "app_refresh", subactions });
|
|
1637
|
+
};
|
|
1638
|
+
self.mayShowMessage_sessionDaysLeft = () => {
|
|
1639
|
+
if (!Number.isFinite(self.sessionDaysLeft)) {
|
|
1640
|
+
return;
|
|
1641
|
+
}
|
|
1642
|
+
self.dom.sessionElapsedMessageDiv.style("display", "block");
|
|
1643
|
+
self.dom.remainingDaysMessage = self.dom.sessionElapsedMessageDiv.append("div").style("display", "block").style("opacity", "0.65").html(
|
|
1644
|
+
`<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.`
|
|
1645
|
+
);
|
|
1646
|
+
};
|
|
1647
|
+
self.updateUI = async () => {
|
|
1648
|
+
if (!self.dom.subheaderDiv) return;
|
|
1649
|
+
if (self.activeTab && self.state.termdbConfig.selectCohort && self.activeCohort == -1) {
|
|
1650
|
+
self.dom.subheaderDiv.style("display", "none");
|
|
1651
|
+
self.dom.messageDiv.selectAll("text").remove();
|
|
1652
|
+
self.dom.messageDiv.style("display", "").text('No cohort selected. Please select a cohort in the "COHORT" tab.');
|
|
1653
|
+
} else {
|
|
1654
|
+
if (self.dom.subheaderDiv) self.dom.subheaderDiv.style("display", self.activeTab != -1 ? "block" : "none");
|
|
1655
|
+
if (self.dom.messageDiv) self.dom.messageDiv.style("display", "none");
|
|
1656
|
+
}
|
|
1657
|
+
const selectCohort = self.state.termdbConfig.selectCohort;
|
|
1658
|
+
const massNav = self.state.termdbConfig.massNav;
|
|
1659
|
+
self.dom.searchDiv.style("display", selectCohort && self.activeCohort == -1 ? "none" : "inline-block");
|
|
1660
|
+
self.dom.header.style("border-bottom", self.state.nav.header_mode === "with_tabs" ? "1px solid #000" : "");
|
|
1661
|
+
self.dom.tds.style("display", "").style("color", (d) => d.colNum == self.activeTab ? activeTabTextColor : inactiveTabTextColor).style(
|
|
1662
|
+
"background-color",
|
|
1663
|
+
(d) => d.colNum == self.activeTab && self.dom.subheaderDiv.style("display") != "none" ? self.state.termdbConfig.massNav?.activeColor || activeTabBgColor : "transparent"
|
|
1664
|
+
).html(function(d, i) {
|
|
1665
|
+
if (d.key == "top") return this.innerHTML;
|
|
1666
|
+
if (d.subheader == "groups") {
|
|
1667
|
+
if (d.key == "mid") return self.state.groups.length || "NONE";
|
|
1668
|
+
return "";
|
|
1669
|
+
}
|
|
1670
|
+
if (d.subheader === "charts") {
|
|
1671
|
+
const n = self.state.plots.filter((p) => !p.parentId).length;
|
|
1672
|
+
if (d.key == "mid") return !n ? "NONE" : n;
|
|
1673
|
+
else return "";
|
|
1674
|
+
} else if (d.subheader === "about") {
|
|
1675
|
+
if (self.activeCohort != -1 && self.activeCohort in self.samplecounts) {
|
|
1676
|
+
const aboutMap = {
|
|
1677
|
+
top: this.innerHTML,
|
|
1678
|
+
mid: self.activeCohortLabel,
|
|
1679
|
+
btm: self.samplecounts[self.activeCohort]
|
|
1680
|
+
};
|
|
1681
|
+
return aboutMap[d.key] || "";
|
|
1682
|
+
} else if (!selectCohort) {
|
|
1683
|
+
const aboutMap = {
|
|
1684
|
+
top: massNav?.tabs?.about?.top || "ABOUT",
|
|
1685
|
+
mid: massNav?.tabs?.about?.mid || this.innerHTML,
|
|
1686
|
+
btm: massNav?.tabs?.about?.btm || self.samplecounts[self.activeCohort]
|
|
1687
|
+
};
|
|
1688
|
+
return aboutMap[d.key] || "";
|
|
1689
|
+
} else {
|
|
1690
|
+
return d.key === "mid" ? "NONE" : this.innerHTML;
|
|
1691
|
+
}
|
|
1692
|
+
} else if (d.subheader === "filter") {
|
|
1693
|
+
const filter = self.filterUiRoot ? self.filterUiRoot : { lst: [] };
|
|
1694
|
+
if (filter.lst.length === 0) {
|
|
1695
|
+
return d.key === "mid" ? "NONE" : "";
|
|
1696
|
+
} else {
|
|
1697
|
+
const n = self.samplecounts[self.filterJSON] != void 0 ? "" + self.samplecounts[self.filterJSON] : "";
|
|
1698
|
+
return d.key === "mid" ? filter.lst.length : n;
|
|
1699
|
+
}
|
|
1700
|
+
} else {
|
|
1701
|
+
return d.key === "mid" ? this.innerHTML : " ";
|
|
1702
|
+
}
|
|
1703
|
+
});
|
|
1704
|
+
for (const key in self.dom.subheader) {
|
|
1705
|
+
self.dom.subheader[key].style(
|
|
1706
|
+
"display",
|
|
1707
|
+
self.activeTab == -1 ? "none" : self.tabs[self.activeTab].subheader === key ? "block" : "none"
|
|
1708
|
+
);
|
|
1709
|
+
}
|
|
1710
|
+
if (self.opts.header_mode === "with_cohortHtmlSelect") {
|
|
1711
|
+
self.dom.cohortSelect.selectAll("option").property("value", self.activeCohort);
|
|
1712
|
+
}
|
|
1713
|
+
};
|
|
1714
|
+
}
|
|
1715
|
+
function setInteractivity(self) {
|
|
1716
|
+
self.setTab = async (event2, d) => {
|
|
1717
|
+
if (d.disabled) return;
|
|
1718
|
+
if (d.colNum === self.activeTab && !self.searching) {
|
|
1719
|
+
if (self.activeTab == 0) return;
|
|
1720
|
+
self.prevCohort = self.activeCohort;
|
|
1721
|
+
await self.updateUI();
|
|
1722
|
+
self.app.dispatch({ type: "tab_set", activeTab: -1 });
|
|
1723
|
+
return;
|
|
1724
|
+
}
|
|
1725
|
+
self.activeTab = d.colNum;
|
|
1726
|
+
self.searching = false;
|
|
1727
|
+
self.app.dispatch({ type: "tab_set", activeTab: self.activeTab });
|
|
1728
|
+
const chartsIdx = self.subheaderKeys.indexOf("charts");
|
|
1729
|
+
if (self.activeTab == chartsIdx && self.activeCohort != -1 && !self.state.plots.length) {
|
|
1730
|
+
const defaultChartType = self.state.termdbConfig.defaultChartType || "dictionary";
|
|
1731
|
+
self.app.dispatch({
|
|
1732
|
+
type: "plot_create",
|
|
1733
|
+
id: getId(),
|
|
1734
|
+
config: { chartType: defaultChartType }
|
|
1735
|
+
});
|
|
1736
|
+
}
|
|
1737
|
+
};
|
|
1738
|
+
self.mouseover = (event2, d) => {
|
|
1739
|
+
const defaultActiveColor = self.state.termdbConfig.massNav?.activeColor || activeTabBgColor;
|
|
1740
|
+
self.dom.tds.style("background-color", (t) => {
|
|
1741
|
+
if (t.colNum === d.colNum)
|
|
1742
|
+
return self.activeTab == t.colNum ? self.state.termdbConfig.massNav?.activeColorHover || activeTabBgColorHover : inactiveTabBgColorHover;
|
|
1743
|
+
return self.activeTab == t.colNum ? defaultActiveColor : "transparent";
|
|
1744
|
+
});
|
|
1745
|
+
};
|
|
1746
|
+
self.mouseout = () => {
|
|
1747
|
+
const defaultActiveColor = self.state.termdbConfig.massNav?.activeColor || activeTabBgColor;
|
|
1748
|
+
self.dom.tds.style("background-color", (t) => self.activeTab == t.colNum ? defaultActiveColor : "transparent");
|
|
1749
|
+
};
|
|
1750
|
+
self.getSessionFile = async (event2) => {
|
|
1751
|
+
const res = await dofetch3(`/massSession?id=${self.sessionId}`);
|
|
1752
|
+
const a = document.createElement("a");
|
|
1753
|
+
const dataStr = "data:application/json;charset=utf-8," + encodeURIComponent(JSON.stringify(res.state));
|
|
1754
|
+
a.setAttribute("href", dataStr);
|
|
1755
|
+
a.download = `${self.sessionId}.json`;
|
|
1756
|
+
a.click();
|
|
1757
|
+
a.remove();
|
|
1758
|
+
};
|
|
1759
|
+
self.pickDatasetLabel = (appState) => {
|
|
1760
|
+
const dslabel = appState.vocab.dslabel.toUpperCase();
|
|
1761
|
+
return dslabel.length > 10 ? `${dslabel.slice(0, 10)}...` : dslabel;
|
|
1762
|
+
};
|
|
1763
|
+
}
|
|
1764
|
+
|
|
1765
|
+
export {
|
|
1766
|
+
getId,
|
|
1767
|
+
navInit
|
|
1768
|
+
};
|
|
1769
|
+
//# sourceMappingURL=chunk-YCBENC6R.js.map
|