@sjcrh/proteinpaint-client 2.220.0 → 2.222.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-QFXSYOYN.js +1362 -0
- package/dist/AggMatrixInput-7D4ZUYJK.js +402 -0
- package/dist/AggregateMatrix-NVSFZEW3.js +37 -0
- package/dist/AppHeader-5YJWBQP6.js +826 -0
- package/dist/BoxPlot-52WWBGKN.js +1229 -0
- package/dist/CorrelationVolcano-WS23O2JT.js +613 -0
- package/dist/Cuminc-5LJQYFEE.js +1217 -0
- package/dist/DE-Z5GBDXDU.js +85 -0
- package/dist/DEinput-3EAIVG5U.js +479 -0
- package/dist/DM-24NZPPS6.js +86 -0
- package/dist/DifferentialAnalysis-LRAPDIXB.js +236 -0
- package/dist/Disco-IDOTCKSD.js +3384 -0
- package/dist/Disco.UI-SLJKAA6N.js +239 -0
- package/dist/DmrPlot-5CRGQNM3.js +361 -0
- package/dist/GB-YCDIORF3.js +1388 -0
- package/dist/GSEA-IGWX3AG7.js +870 -0
- package/dist/GeneExpInput-PPOTCILZ.js +38 -0
- package/dist/Geomap-D5JPCJ5L.js +80 -0
- package/dist/HicApp-BNMMISAR.js +2240 -0
- package/dist/IDCViewer-IUPPLC5B.js +10808 -0
- package/dist/NumBinaryEditor-45I5YNHI.js +274 -0
- package/dist/NumBinaryEditor.unit.spec-5CJPIDH4.js +308 -0
- package/dist/NumContEditor-VMCE5LUM.js +100 -0
- package/dist/NumContEditor.unit.spec-DKNXTVXT.js +160 -0
- package/dist/NumCustomBinEditor-3EESV7PW.js +29 -0
- package/dist/NumCustomBinEditor.unit.spec-JPOK7BWZ.js +393 -0
- package/dist/NumDiscreteEditor-YZ3Q4J4M.js +165 -0
- package/dist/NumDiscreteEditor.unit.spec-V6NSX72E.js +229 -0
- package/dist/NumRegularBinEditor-6GI63X5V.js +29 -0
- package/dist/NumRegularBinEditor.unit.spec-KCGZLQ6T.js +274 -0
- package/dist/NumSplineEditor-OMJUFDSC.js +205 -0
- package/dist/NumSplineEditor.unit.spec-KUB2OITH.js +220 -0
- package/dist/NumericDensity-M4BIVIB3.js +29 -0
- package/dist/NumericDensity.unit.spec-G3GJMO4S.js +414 -0
- package/dist/NumericHandler-AMV4BETD.js +30 -0
- package/dist/NumericHandler.unit.spec-OJDMQQHX.js +225 -0
- package/dist/ProteomeInput-KB7YRARQ.js +610 -0
- package/dist/Regression-5KSKHUEJ.js +1412 -0
- package/dist/RunChart2-JJ4GQF44.js +744 -0
- package/dist/SC-LKCBWZQX.js +1290 -0
- package/dist/Violin-JRP7R53K.js +1092 -0
- package/dist/Volcano-BDD3PZ4T.js +2661 -0
- package/dist/Wsi-3C3ERYSG.js +636 -0
- package/dist/aboutSunburst-2T5SLCCB.js +93 -0
- package/dist/aboutSunburst-2T5SLCCB.js.map +7 -0
- package/dist/adSandbox-GFF6ZCRM.js +29 -0
- package/dist/animatedBubbleChart-PUPXCFJW.js +542 -0
- package/dist/app-EICBB32X.js +28 -0
- package/dist/app-Z7M3CFWA.js +38 -0
- package/dist/app.js +9 -9
- package/dist/bam-KQ5F34X5.js +872 -0
- package/dist/bam-KQ5F34X5.js.map +7 -0
- package/dist/barchart-WRAEMD7B.js +38 -0
- package/dist/barchart2-5CX3CO4K.js +305 -0
- package/dist/block-53QIZEH3.js +6203 -0
- package/dist/block.init-4V3SIUNX.js +29 -0
- package/dist/block.mds.expressionrank-5YNTX35V.js +350 -0
- package/dist/block.mds.geneboxplot-X5OHLSWT.js +819 -0
- package/dist/block.mds.junction-QBJF6MFG.js +1534 -0
- package/dist/block.mds.svcnv-BNCMHJJB.js +6413 -0
- package/dist/block.svg-KQELYSEO.js +155 -0
- package/dist/block.tk.aicheck-5EDNNXGL.js +274 -0
- package/dist/block.tk.bam-FRPCGSAE.js +1906 -0
- package/dist/block.tk.bam-FRPCGSAE.js.map +7 -0
- package/dist/block.tk.bigwig.ui-XUJPSA6D.js +202 -0
- package/dist/block.tk.hicstraw-MVLZALFC.js +814 -0
- package/dist/block.tk.junction-DLZNHWSA.js +2353 -0
- package/dist/block.tk.junction.textmatrixui-J3EODITY.js +190 -0
- package/dist/block.tk.ld-4GEJ2Y2K.js +90 -0
- package/dist/block.tk.menu-NM7KA5GZ.js +1050 -0
- package/dist/block.tk.pgv-XFOJACVC.js +934 -0
- package/dist/brainImaging-WFRZQANN.js +550 -0
- package/dist/brainRegions-66KWCUF2.js +213 -0
- package/dist/bubbleHeatmap-VKLIJOMM.js +374 -0
- package/dist/cellTypeBubbleHeatmap-ZPCXC52I.js +274 -0
- package/dist/chunk-2NDFMFNM.js +134 -0
- package/dist/chunk-34AGCF72.js +203 -0
- package/dist/chunk-3KKI63GB.js +96 -0
- package/dist/chunk-3LUHZYIN.js +14 -0
- package/dist/chunk-4ASBDE27.js +26731 -0
- package/dist/chunk-4ASBDE27.js.map +7 -0
- package/dist/chunk-5XXYEKE2.js +237 -0
- package/dist/chunk-6C3USAU5.js +848 -0
- package/dist/chunk-7F2FBQRP.js +35 -0
- package/dist/chunk-7F2FBQRP.js.map +7 -0
- package/dist/chunk-7TRD7A2U.js +141 -0
- package/dist/chunk-AG2PISH4.js +257 -0
- package/dist/chunk-BGYZJXYZ.js +2799 -0
- package/dist/chunk-BVSVFCKB.js +2102 -0
- package/dist/chunk-BVSVFCKB.js.map +7 -0
- package/dist/chunk-BY5CLUY5.js +5214 -0
- package/dist/chunk-C6PMNLN4.js +54 -0
- package/dist/chunk-CSYXTB7F.js +418 -0
- package/dist/chunk-CSYXTB7F.js.map +7 -0
- package/dist/chunk-DFKTWNCC.js +55 -0
- package/dist/chunk-FQHE7CLH.js +692 -0
- package/dist/chunk-FRLAPBYW.js +299 -0
- package/dist/chunk-HKYUCYOQ.js +266 -0
- package/dist/chunk-HMTQ4M66.js +305 -0
- package/dist/chunk-HMTQ4M66.js.map +7 -0
- package/dist/chunk-IQO3VZCP.js +255 -0
- package/dist/chunk-J5XV35LN.js +468 -0
- package/dist/chunk-JMWCL3QQ.js +56 -0
- package/dist/chunk-K3Q3KTBT.js +102 -0
- package/dist/chunk-LHM4UVYZ.js +550 -0
- package/dist/chunk-LMVYPBT4.js +626 -0
- package/dist/chunk-LUGZE4FR.js +56 -0
- package/dist/chunk-LXSBSJUL.js +2334 -0
- package/dist/chunk-MOAHKBYO.js +379 -0
- package/dist/chunk-MU7GTJYA.js +1219 -0
- package/dist/chunk-MXZYJ7WN.js +182 -0
- package/dist/chunk-NZB6RZK2.js +176 -0
- package/dist/chunk-OF6FDDKV.js +184 -0
- package/dist/chunk-OPMEDR4F.js +50 -0
- package/dist/chunk-ORYAOIVF.js +4389 -0
- package/dist/chunk-OZUF7O2S.js +133 -0
- package/dist/chunk-PHKA5BP7.js +263 -0
- package/dist/chunk-PWYMHUXY.js +116 -0
- package/dist/chunk-PWYMHUXY.js.map +7 -0
- package/dist/chunk-QI4EZK7S.js +2941 -0
- package/dist/chunk-QNSB6O4W.js +70 -0
- package/dist/chunk-QPRSVLI7.js +240 -0
- package/dist/chunk-R55JRVX7.js +652 -0
- package/dist/chunk-R55JRVX7.js.map +7 -0
- package/dist/chunk-RSMASA5S.js +340 -0
- package/dist/chunk-S2BMWHFY.js +54 -0
- package/dist/chunk-SKL52OWF.js +466 -0
- package/dist/chunk-TRWUXFVB.js +102 -0
- package/dist/chunk-URCFNXAK.js +2008 -0
- package/dist/chunk-V2D7DA2M.js +194 -0
- package/dist/chunk-V2ZVMDBY.js +480 -0
- package/dist/chunk-VIFY62YA.js +243 -0
- package/dist/chunk-VZ2JWFSX.js +296 -0
- package/dist/chunk-W5GR42L2.js +159 -0
- package/dist/chunk-WDOX6A6T.js +1339 -0
- package/dist/chunk-XPL54FXR.js +6375 -0
- package/dist/chunk-XV3KWMG3.js +103 -0
- package/dist/chunk-YFFQ7JTJ.js +123 -0
- package/dist/chunk-ZD6AIFTS.js +1253 -0
- package/dist/chunk-ZDVYAOWC.js +516 -0
- package/dist/chunk-ZKIC65KR.js +2685 -0
- package/dist/chunk-ZPRI5XCE.js +82 -0
- package/dist/cohort-CI22KICX.js +66 -0
- package/dist/cohortSunburst-Z5DANXVS.js +402 -0
- package/dist/condition-GZOA7BZJ.js +323 -0
- package/dist/controls-OWC25VQN.js +30 -0
- package/dist/controls.config-UVC4Q7BS.js +30 -0
- package/dist/correlation-EBA5YVXA.js +91 -0
- package/dist/customdata.inputui-FZRZCPS3.js +280 -0
- package/dist/dataDownload-WIPQU33P.js +326 -0
- package/dist/databrowser.ui-6L6Q72W4.js +421 -0
- package/dist/dictionary-4VZEPGW5.js +109 -0
- package/dist/dnaMethylation-LN6THRNZ.js +29 -0
- package/dist/dnaMethylation.integration.spec-BXC6EPUV.js +194 -0
- package/dist/e2pca-EXFI4Q2Y.js +340 -0
- package/dist/ep-T7EZ34XV.js +1247 -0
- package/dist/expclust.gdc.spec-NAN4M75R.js +298 -0
- package/dist/facet-BJFUIWHK.js +556 -0
- package/dist/gb-CBC3PDKZ.js +77 -0
- package/dist/geneExpClustering-7JFY7TQT.js +240 -0
- package/dist/geneExpression-FOQOKD34.js +29 -0
- package/dist/geneExpression.unit.spec-XSFC5ZJP.js +151 -0
- package/dist/geneORA-KYPN66QU.js +269 -0
- package/dist/geneRanking-VEHFMRFL.js +544 -0
- package/dist/geneVariant-77V6FNJX.js +289 -0
- package/dist/geneVariant-BS3XZFYM.js +32 -0
- package/dist/geneVariant.integration.spec-US4OY3S5.js +672 -0
- package/dist/genefusion.ui-YNVTTLDE.js +299 -0
- package/dist/geneset-BH5MWNJQ.js +199 -0
- package/dist/genomeBrowser.spec-BFTGLRHG.js +272 -0
- package/dist/grin2-4AXUYJIL.js +66 -0
- package/dist/grin2-5T557HKM.js +945 -0
- package/dist/hierCluster-IJHBVO2N.js +55 -0
- package/dist/hierCluster-POJBHBN6.js +51 -0
- package/dist/hierCluster.config-UUQEFTIG.js +32 -0
- package/dist/hierCluster.integration.spec-PZFUAOHX.js +479 -0
- package/dist/hierCluster.interactivity-6CN5PNFR.js +45 -0
- package/dist/imagePlot-HKPPACFV.js +152 -0
- package/dist/importPlot-EMI6BVPR.js +8 -0
- package/dist/isoformExpression-SFBA3SY7.js +31 -0
- package/dist/isoformExpression.unit.spec-JKYWHGRN.js +233 -0
- package/dist/junction-PJPOCKK7.js +32 -0
- package/dist/junction.unit.spec-CVYLAHZF.js +178 -0
- package/dist/launch.adhoc-R7SYX6GF.js +33 -0
- package/dist/leftlabel.sample-XJUDFAKS.js +253 -0
- package/dist/lollipop-V43BWGBT.js +162 -0
- package/dist/maf-KU44HXN3.js +451 -0
- package/dist/maftimeline-JPHVYTTU.js +583 -0
- package/dist/matrix-EABQEAMC.js +50 -0
- package/dist/matrix-HMLF5MDD.js +55 -0
- package/dist/matrix.config-RX5GWHTM.js +33 -0
- package/dist/matrix.integration.spec-MZPSYXTF.js +3156 -0
- package/dist/matrix.interactivity-6AJ5BGEP.js +33 -0
- package/dist/matrix.layout-CTHRQE7U.js +35 -0
- package/dist/matrix.renderers-UGQXONTG.js +30 -0
- package/dist/matrix.sort.unit.spec-FJKIBDTU.js +464 -0
- package/dist/matrix.sorterUi.unit.spec-6DQ6KGXT.js +334 -0
- package/dist/matrix.unit.spec-7Y3BKFNQ.js +146 -0
- package/dist/mavb-ADD57P2Q.js +726 -0
- package/dist/mds.fimo-7WH5GVFZ.js +509 -0
- package/dist/mds.samplescatterplot-JYFOORUG.js +1545 -0
- package/dist/mds.survivalplot-2V4H3YZY.js +472 -0
- package/dist/multivalue-GLS3RPQ5.js +79 -0
- package/dist/oncomatrix-QA267TP2.js +286 -0
- package/dist/oncomatrix.spec-H6AAIP7H.js +439 -0
- package/dist/plot.2dvaf-JW3Z25M3.js +368 -0
- package/dist/plot.app-CUCDOVC5.js +32 -0
- package/dist/plot.barplot-KBVYKICH.js +93 -0
- package/dist/plot.boxplot-BTS6ZWCQ.js +142 -0
- package/dist/plot.brainImaging-GGUARYRT.js +51 -0
- package/dist/plot.disco-EP274JEW.js +98 -0
- package/dist/plot.ssgq-4VUH3ZWV.js +130 -0
- package/dist/plot.vaf2cov-2FPWA2FS.js +249 -0
- package/dist/polar2-7W5JRMB5.js +228 -0
- package/dist/profileForms-2IKL3SZU.js +937 -0
- package/dist/profilePlot-IURW2HQN.js +45 -0
- package/dist/proteinView-4ZRODQN3.js +1346 -0
- package/dist/proteomeCohortCompare-BK3FLW4Z.js +866 -0
- package/dist/pseudbulk.unit.spec-QGQCCHNF.js +82 -0
- package/dist/pseudobulk-7HEOBIFO.js +31 -0
- package/dist/qualitative-6HWIG5NU.js +34 -0
- package/dist/qualitative-WGEEUNH6.js +241 -0
- package/dist/radar2-VXP322F7.js +323 -0
- package/dist/radarFacility2-IJGJ3AJB.js +331 -0
- package/dist/render-MMCUV7QI.js +29 -0
- package/dist/report-F22EFD7C.js +213 -0
- package/dist/sampleView-3DVB2PQT.js +39 -0
- package/dist/samplelst-LNAI33IW.js +114 -0
- package/dist/samplematrix-RGXPBRW5.js +2188 -0
- package/dist/sc-UR66YB27.js +77 -0
- package/dist/scatter-3K6XBJIM.js +84 -0
- package/dist/scatter-IFP5NTZU.js +919 -0
- package/dist/selectGenomeWithTklst-LGBKEN3T.js +125 -0
- package/dist/singleCellCellType-ACQACM6W.js +29 -0
- package/dist/singleCellCellType.unit.spec-WLGTJKOM.js +150 -0
- package/dist/singleCellGeneExpression-M4RPITJW.js +29 -0
- package/dist/singleCellGeneExpression.unit.spec-N3VD6PUW.js +144 -0
- package/dist/singleCellNumericValue-W6F44FJN.js +29 -0
- package/dist/singleCellNumericValue.unit.spec-JZNMY77I.js +412 -0
- package/dist/singleCellPlot-CCG2KSCO.js +44 -0
- package/dist/singlecell-32P47E4I.js +1562 -0
- package/dist/singlecell-I6H3Z7FT.js +77 -0
- package/dist/snp-7X2BXRQP.js +29 -0
- package/dist/snp.unit.spec-BJGWNSVR.js +167 -0
- package/dist/snplocus-UOVS2GD6.js +200 -0
- package/dist/snplst-JFVP4NG2.js +36 -0
- package/dist/spliceevent.a53ss.diagram-ETXJX57W.js +142 -0
- package/dist/spliceevent.exonskip.diagram-C4JCEOXQ.js +274 -0
- package/dist/spliceevent.noeventdiagram-4DD3Z4OM.js +451 -0
- package/dist/ssGSEA-GOZOYROM.js +29 -0
- package/dist/ssGSEA.unit.spec-J4DPFU4D.js +79 -0
- package/dist/stattable-ICUZQHUF.js +112 -0
- package/dist/studyCatalog-PCFXVOI3.js +457 -0
- package/dist/summarizeCnvGeneexp-DK6HNUFE.js +154 -0
- package/dist/summarizeGeneexpSurvival-JLCR2VIX.js +101 -0
- package/dist/summarizeMutationCnv-CFAKT6IP.js +155 -0
- package/dist/summarizeMutationDiagnosis-5HMVSYMI.js +31 -0
- package/dist/summarizeMutationSurvival-GP2OQMUS.js +95 -0
- package/dist/summary-6K553VNS.js +40 -0
- package/dist/summary.integration.spec-MXERZOVY.js +405 -0
- package/dist/summaryInput-V2G6HFJS.js +238 -0
- package/dist/sunburst-6GKVNIRF.js +34 -0
- package/dist/sunburst-YOVKC5G2.js +274 -0
- package/dist/survival-GHTV2ZPX.js +1248 -0
- package/dist/survival-KF2QUWSM.js +49 -0
- package/dist/survival.integration.spec-GVSQL4VB.js +609 -0
- package/dist/svgraph-WN3JLEOC.js +1377 -0
- package/dist/svmr-ZZKBQFQK.js +3834 -0
- package/dist/swimmer-XHORJEVI.js +993 -0
- package/dist/table-XQCTNHSZ.js +192 -0
- package/dist/termCollection-DXZQT7YT.js +29 -0
- package/dist/termCollection-HRM2NHLA.js +247 -0
- package/dist/termCollection.unit.spec-BGULSLH6.js +295 -0
- package/dist/termCollectionFractionSelection-TPNNP2ER.js +38 -0
- package/dist/termCollectionFractionSelection.unit.spec-VONXAGZH.js +184 -0
- package/dist/tk-KPD6HTHR.js +1193 -0
- package/dist/tk-RCTQPQH7.js +37 -0
- package/dist/tp.ui-MVNQLMAD.js +1453 -0
- package/dist/tvs.categorical-4TKKU6HO.js +28 -0
- package/dist/tvs.condition-SARY3O5Y.js +160 -0
- package/dist/tvs.density-IGO4I4T2.js +19 -0
- package/dist/tvs.dt-XJ2MW2AP.js +34 -0
- package/dist/tvs.dtcnv.categorical-H7FKTXH4.js +31 -0
- package/dist/tvs.dtcnv.continuous-JQ62ZHER.js +72 -0
- package/dist/tvs.dtfusion-GC3DZ2BO.js +31 -0
- package/dist/tvs.dtitd-3SHGIDIB.js +31 -0
- package/dist/tvs.dtsnvindel-BEDWZ4A2.js +31 -0
- package/dist/tvs.dtsv-HRIMULVD.js +31 -0
- package/dist/tvs.multivalue-5VC7BLSZ.js +84 -0
- package/dist/tvs.numeric-TGEC7G6A.js +32 -0
- package/dist/tvs.samplelst-Q6EYAUQZ.js +95 -0
- package/dist/tvs.survival-NJ3DTZIG.js +110 -0
- package/dist/tvs.termCollection-TVVLPSTG.js +118 -0
- package/dist/vocabulary-A7ZBBU65.js +32 -0
- package/dist/wsi.direct-JJGIAH6A.js +11514 -0
- package/package.json +3 -3
- package/dist/2dmaf-KRIX5DBS.js +0 -1362
- package/dist/AggMatrixInput-GBQD74NV.js +0 -402
- package/dist/AggregateMatrix-U2MOQOSZ.js +0 -37
- package/dist/AppHeader-OBZWUCOD.js +0 -826
- package/dist/BoxPlot-ZK6Q5JGE.js +0 -1229
- package/dist/CorrelationVolcano-WGR4JIGK.js +0 -613
- package/dist/Cuminc-I6D6YSIL.js +0 -1217
- package/dist/DE-HO7UBKPC.js +0 -85
- package/dist/DEinput-6LX4I65N.js +0 -479
- package/dist/DM-WYKLX4IC.js +0 -86
- package/dist/DifferentialAnalysis-L5VVBCVZ.js +0 -236
- package/dist/Disco-HLARIYXU.js +0 -3384
- package/dist/Disco.UI-W64WFVC3.js +0 -239
- package/dist/DmrPlot-BKQOT4JM.js +0 -361
- package/dist/GB-WKFGDJYW.js +0 -1388
- package/dist/GSEA-DCCJI5JE.js +0 -870
- package/dist/GeneExpInput-APLFNE6N.js +0 -38
- package/dist/Geomap-FTKWCV4J.js +0 -80
- package/dist/HicApp-ZGZKO4Y4.js +0 -2240
- package/dist/IDCViewer-MXB3OZUZ.js +0 -10808
- package/dist/NumBinaryEditor-S3MHUVZ5.js +0 -274
- package/dist/NumBinaryEditor.unit.spec-264X5ULG.js +0 -308
- package/dist/NumContEditor-MKEZCZMR.js +0 -100
- package/dist/NumContEditor.unit.spec-KBRAIU7M.js +0 -160
- package/dist/NumCustomBinEditor-OSF64BFC.js +0 -29
- package/dist/NumCustomBinEditor.unit.spec-T2SRBXTV.js +0 -393
- package/dist/NumDiscreteEditor-PVW5HRRQ.js +0 -165
- package/dist/NumDiscreteEditor.unit.spec-GUK7VWMR.js +0 -229
- package/dist/NumRegularBinEditor-757VRGFQ.js +0 -29
- package/dist/NumRegularBinEditor.unit.spec-JUIGEH3Z.js +0 -274
- package/dist/NumSplineEditor-U6MVFSCZ.js +0 -205
- package/dist/NumSplineEditor.unit.spec-PSH6YENX.js +0 -220
- package/dist/NumericDensity-YIP25Z4Y.js +0 -29
- package/dist/NumericDensity.unit.spec-3OSIZJHH.js +0 -414
- package/dist/NumericHandler-D2CO3FTS.js +0 -30
- package/dist/NumericHandler.unit.spec-RNFVGO2I.js +0 -225
- package/dist/ProteomeInput-ZOBJ2VU6.js +0 -610
- package/dist/Regression-ABKJOOMQ.js +0 -1412
- package/dist/RunChart2-D5CEEFEE.js +0 -744
- package/dist/SC-RLVEECU5.js +0 -1290
- package/dist/Violin-PCNX2CWV.js +0 -1092
- package/dist/Volcano-NVFNO7NE.js +0 -2661
- package/dist/Wsi-MAMCK5YZ.js +0 -636
- package/dist/aboutSunburst-VSQADTFD.js +0 -86
- package/dist/aboutSunburst-VSQADTFD.js.map +0 -7
- package/dist/adSandbox-5YFAQZO6.js +0 -29
- package/dist/animatedBubbleChart-GM2GXDP3.js +0 -542
- package/dist/app-FNNCH37H.js +0 -28
- package/dist/app-ID5S5FUP.js +0 -38
- package/dist/bam-JZLYXHMF.js +0 -872
- package/dist/bam-JZLYXHMF.js.map +0 -7
- package/dist/barchart-EAXXILCH.js +0 -38
- package/dist/barchart2-E6A4UMUB.js +0 -305
- package/dist/block-VMVJH77F.js +0 -6203
- package/dist/block.init-TUCGKLXG.js +0 -29
- package/dist/block.mds.expressionrank-YVROHZVX.js +0 -350
- package/dist/block.mds.geneboxplot-TQNEWBJY.js +0 -819
- package/dist/block.mds.junction-ZOSTZQF5.js +0 -1534
- package/dist/block.mds.svcnv-XSTSJ4ZD.js +0 -6413
- package/dist/block.svg-D6HXL4SC.js +0 -155
- package/dist/block.tk.aicheck-7RNC4HRR.js +0 -274
- package/dist/block.tk.bam-L3U5YH3F.js +0 -1897
- package/dist/block.tk.bam-L3U5YH3F.js.map +0 -7
- package/dist/block.tk.bigwig.ui-UVSZ7LWQ.js +0 -202
- package/dist/block.tk.hicstraw-YFBJR5LO.js +0 -814
- package/dist/block.tk.junction-DNRK2JNQ.js +0 -2353
- package/dist/block.tk.junction.textmatrixui-EN4ADCAU.js +0 -190
- package/dist/block.tk.ld-I5CTAJ4K.js +0 -90
- package/dist/block.tk.menu-HUZBY7OM.js +0 -1050
- package/dist/block.tk.pgv-KA6BFYPY.js +0 -934
- package/dist/brainImaging-OQB2ZHCU.js +0 -550
- package/dist/brainRegions-2CRVMS24.js +0 -213
- package/dist/bubbleHeatmap-MANNFEG2.js +0 -374
- package/dist/cellTypeBubbleHeatmap-LRK4R4EC.js +0 -274
- package/dist/chunk-2NB5HVXB.js +0 -159
- package/dist/chunk-3E26ITYK.js +0 -55
- package/dist/chunk-3H4FCRAN.js +0 -266
- package/dist/chunk-4ENIOXIT.js +0 -133
- package/dist/chunk-4GKC43U3.js +0 -480
- package/dist/chunk-4NQS45KH.js +0 -302
- package/dist/chunk-4NQS45KH.js.map +0 -7
- package/dist/chunk-4ZV6SE4B.js +0 -240
- package/dist/chunk-5TA5LHPW.js +0 -54
- package/dist/chunk-5YQXNW6Y.js +0 -1339
- package/dist/chunk-67MD4UES.js +0 -848
- package/dist/chunk-6BBUIRHA.js +0 -123
- package/dist/chunk-6DESNDD5.js +0 -468
- package/dist/chunk-6DRRN5XP.js +0 -243
- package/dist/chunk-6XKAOSQE.js +0 -116
- package/dist/chunk-6XKAOSQE.js.map +0 -7
- package/dist/chunk-7TLUQH7J.js +0 -82
- package/dist/chunk-7YMZSVWW.js +0 -1219
- package/dist/chunk-AENUJ7UO.js +0 -299
- package/dist/chunk-AZSWQWKL.js +0 -263
- package/dist/chunk-B5IJAQG4.js +0 -2054
- package/dist/chunk-B5IJAQG4.js.map +0 -7
- package/dist/chunk-BOCU6PXO.js +0 -257
- package/dist/chunk-C7ZPDNOJ.js +0 -70
- package/dist/chunk-DEQREL5P.js +0 -692
- package/dist/chunk-DXKZBSSD.js +0 -2799
- package/dist/chunk-DZBPF5QI.js +0 -550
- package/dist/chunk-DZDK64XY.js +0 -516
- package/dist/chunk-E6C2EWHU.js +0 -176
- package/dist/chunk-GK5QS5BR.js +0 -2685
- package/dist/chunk-GLAR6VNF.js +0 -626
- package/dist/chunk-H6YM4NKS.js +0 -134
- package/dist/chunk-HJKVYTYK.js +0 -379
- package/dist/chunk-HN67TOA7.js +0 -2008
- package/dist/chunk-IXV7FX5B.js +0 -255
- package/dist/chunk-IZ4IPYQY.js +0 -466
- package/dist/chunk-JPPNQVKA.js +0 -56
- package/dist/chunk-KCVBFXGO.js +0 -2941
- package/dist/chunk-LOX5GAVG.js +0 -103
- package/dist/chunk-M6OSJMVD.js +0 -536
- package/dist/chunk-M6OSJMVD.js.map +0 -7
- package/dist/chunk-PEKCVKJK.js +0 -26621
- package/dist/chunk-PEKCVKJK.js.map +0 -7
- package/dist/chunk-PIGTIWSK.js +0 -34
- package/dist/chunk-PIGTIWSK.js.map +0 -7
- package/dist/chunk-PIN5YUVJ.js +0 -6375
- package/dist/chunk-PV7AYYRZ.js +0 -50
- package/dist/chunk-QI7OWVFY.js +0 -54
- package/dist/chunk-QWBNQYIF.js +0 -182
- package/dist/chunk-S6WRMFWQ.js +0 -418
- package/dist/chunk-S6WRMFWQ.js.map +0 -7
- package/dist/chunk-SUOEFEJO.js +0 -96
- package/dist/chunk-TVSNHVWX.js +0 -194
- package/dist/chunk-U3CWWOHL.js +0 -340
- package/dist/chunk-VGC4STKW.js +0 -56
- package/dist/chunk-VHC4FDEJ.js +0 -141
- package/dist/chunk-VSDJEPDN.js +0 -5214
- package/dist/chunk-WTWHUZ4O.js +0 -203
- package/dist/chunk-XHZ723K4.js +0 -2334
- package/dist/chunk-XP4P55IC.js +0 -14
- package/dist/chunk-XVPPM25G.js +0 -1253
- package/dist/chunk-XYUERIZ6.js +0 -4389
- package/dist/chunk-YDIIKD7O.js +0 -102
- package/dist/chunk-YLGSRK75.js +0 -102
- package/dist/chunk-YR6EXI2K.js +0 -184
- package/dist/chunk-Z53VY5JV.js +0 -296
- package/dist/chunk-Z7Q2O5Y7.js +0 -237
- package/dist/cohort-ERDL7EJU.js +0 -66
- package/dist/cohortSunburst-KSTVS3OQ.js +0 -402
- package/dist/condition-CTJYHRJG.js +0 -323
- package/dist/controls-MMMRBTZL.js +0 -30
- package/dist/controls.config-ZKMQI27Q.js +0 -30
- package/dist/correlation-NEQNBQTT.js +0 -91
- package/dist/customdata.inputui-THUR7DF5.js +0 -280
- package/dist/dataDownload-ZMAJUKBX.js +0 -326
- package/dist/databrowser.ui-A6ZSIUG4.js +0 -421
- package/dist/dictionary-TQUVCHIN.js +0 -109
- package/dist/dnaMethylation-ZMJYY3ML.js +0 -29
- package/dist/dnaMethylation.integration.spec-5DTBGTYB.js +0 -194
- package/dist/e2pca-DNWBF545.js +0 -340
- package/dist/ep-JNH3HMY4.js +0 -1247
- package/dist/expclust.gdc.spec-2NJ7JVJW.js +0 -298
- package/dist/facet-RWQFAVVU.js +0 -556
- package/dist/gb-OT2Z3Y7J.js +0 -77
- package/dist/geneExpClustering-TPYGSTMO.js +0 -240
- package/dist/geneExpression-4K3OTXBZ.js +0 -29
- package/dist/geneExpression.unit.spec-26MCGRAP.js +0 -151
- package/dist/geneORA-GNXKCN45.js +0 -269
- package/dist/geneRanking-LV6W6TT7.js +0 -544
- package/dist/geneVariant-B2SYTHG6.js +0 -289
- package/dist/geneVariant-O4XG5VEM.js +0 -32
- package/dist/geneVariant.integration.spec-YYVPAFXT.js +0 -672
- package/dist/genefusion.ui-CVGGYVV3.js +0 -299
- package/dist/geneset-MBMCJNXT.js +0 -199
- package/dist/genomeBrowser.spec-OVXFKEIU.js +0 -272
- package/dist/grin2-OXRU465E.js +0 -945
- package/dist/grin2-YCJGBRFG.js +0 -66
- package/dist/hierCluster-KNPWL5KD.js +0 -51
- package/dist/hierCluster-L3LYQZQL.js +0 -55
- package/dist/hierCluster.config-VZBV5QIO.js +0 -32
- package/dist/hierCluster.integration.spec-ZM7K7WI4.js +0 -479
- package/dist/hierCluster.interactivity-EA7WVIQR.js +0 -45
- package/dist/imagePlot-OLVI26S5.js +0 -152
- package/dist/importPlot-3SSCNROC.js +0 -8
- package/dist/isoformExpression-BTMJNAAO.js +0 -31
- package/dist/isoformExpression.unit.spec-S2W5T42Z.js +0 -233
- package/dist/junction-GIS5OCRO.js +0 -32
- package/dist/junction.unit.spec-MSILW6QZ.js +0 -178
- package/dist/launch.adhoc-LLJY4LA5.js +0 -33
- package/dist/leftlabel.sample-P6DDVCOW.js +0 -253
- package/dist/lollipop-J34YCYIP.js +0 -162
- package/dist/maf-MFEEYT5P.js +0 -451
- package/dist/maftimeline-TGJ37QYA.js +0 -583
- package/dist/matrix-A6BNFCIH.js +0 -55
- package/dist/matrix-XTKRVPMQ.js +0 -50
- package/dist/matrix.config-RMDDMOZ5.js +0 -33
- package/dist/matrix.integration.spec-2DVRXVNH.js +0 -3156
- package/dist/matrix.interactivity-MGOYEKDN.js +0 -33
- package/dist/matrix.layout-T7EC5ZC2.js +0 -35
- package/dist/matrix.renderers-GR77V3RL.js +0 -30
- package/dist/matrix.sort.unit.spec-YUCV7G5L.js +0 -464
- package/dist/matrix.sorterUi.unit.spec-FESIQ2RC.js +0 -334
- package/dist/matrix.unit.spec-6QF3WKM7.js +0 -146
- package/dist/mavb-UXJBITZM.js +0 -726
- package/dist/mds.fimo-IPNWVBO4.js +0 -509
- package/dist/mds.samplescatterplot-KEG7RSN3.js +0 -1545
- package/dist/mds.survivalplot-LJF2CD33.js +0 -472
- package/dist/multivalue-YRQZ73DI.js +0 -79
- package/dist/oncomatrix-TIMH5JKS.js +0 -286
- package/dist/oncomatrix.spec-MUOKKCJN.js +0 -439
- package/dist/plot.2dvaf-3OL4S6QG.js +0 -368
- package/dist/plot.app-CMLHZV5F.js +0 -32
- package/dist/plot.barplot-NRYMIPK6.js +0 -93
- package/dist/plot.boxplot-ANGW3WUC.js +0 -142
- package/dist/plot.brainImaging-YUDBYKX5.js +0 -51
- package/dist/plot.disco-LV7RE3YO.js +0 -98
- package/dist/plot.ssgq-F2LOQFYD.js +0 -130
- package/dist/plot.vaf2cov-5OKC7X6D.js +0 -249
- package/dist/polar2-BGJA2GHZ.js +0 -228
- package/dist/profileForms-BKP3OBKV.js +0 -937
- package/dist/profilePlot-5PRRNUKD.js +0 -45
- package/dist/proteinView-VZIWIZZY.js +0 -1346
- package/dist/proteomeCohortCompare-XZI5OI4X.js +0 -866
- package/dist/pseudbulk.unit.spec-DXJQV7JQ.js +0 -82
- package/dist/pseudobulk-FCH3WW6O.js +0 -31
- package/dist/qualitative-ATX53V44.js +0 -34
- package/dist/qualitative-BRKLVRKW.js +0 -241
- package/dist/radar2-6BBT2FBT.js +0 -323
- package/dist/radarFacility2-76Q3IYP2.js +0 -331
- package/dist/render-KUC3QH36.js +0 -29
- package/dist/report-KB4K7ZXC.js +0 -213
- package/dist/sampleView-QD2JLZ4T.js +0 -39
- package/dist/samplelst-6R5RYHNV.js +0 -114
- package/dist/samplematrix-NGORNBTR.js +0 -2188
- package/dist/sc-27AHZZDK.js +0 -77
- package/dist/scatter-FXLZMWD6.js +0 -84
- package/dist/scatter-OWFYLMSJ.js +0 -919
- package/dist/selectGenomeWithTklst-ZTGABCXC.js +0 -125
- package/dist/singleCellCellType-7XXJ5NWC.js +0 -29
- package/dist/singleCellCellType.unit.spec-Y3TEYYCF.js +0 -150
- package/dist/singleCellGeneExpression-EUAIEIYJ.js +0 -29
- package/dist/singleCellGeneExpression.unit.spec-JVHPFLML.js +0 -144
- package/dist/singleCellNumericValue-FHIECJDK.js +0 -29
- package/dist/singleCellNumericValue.unit.spec-ZFG56MIO.js +0 -412
- package/dist/singleCellPlot-NDGIW32L.js +0 -44
- package/dist/singlecell-JPWVPZEF.js +0 -1562
- package/dist/singlecell-N7RJMWZ2.js +0 -77
- package/dist/snp-APUTOL2F.js +0 -29
- package/dist/snp.unit.spec-4AN7AJKO.js +0 -167
- package/dist/snplocus-WIMFAMBE.js +0 -200
- package/dist/snplst-SUJ5AK4E.js +0 -36
- package/dist/spliceevent.a53ss.diagram-4UBI7PFJ.js +0 -142
- package/dist/spliceevent.exonskip.diagram-NVEXVRIC.js +0 -274
- package/dist/spliceevent.noeventdiagram-CKEWNLVF.js +0 -451
- package/dist/ssGSEA-CJOVXTAW.js +0 -29
- package/dist/ssGSEA.unit.spec-A7VRVJSF.js +0 -79
- package/dist/stattable-JBJVVLQE.js +0 -112
- package/dist/studyCatalog-NEL7XSIP.js +0 -457
- package/dist/summarizeCnvGeneexp-BZSCTA5W.js +0 -154
- package/dist/summarizeGeneexpSurvival-743KXNV7.js +0 -101
- package/dist/summarizeMutationCnv-CALMSQGV.js +0 -155
- package/dist/summarizeMutationDiagnosis-OTE7O4AS.js +0 -31
- package/dist/summarizeMutationSurvival-VOZOFTFM.js +0 -95
- package/dist/summary-XJKCD35N.js +0 -40
- package/dist/summary.integration.spec-OOEU6WNB.js +0 -405
- package/dist/summaryInput-JSOXVSMY.js +0 -238
- package/dist/sunburst-J3QHMYKW.js +0 -34
- package/dist/sunburst-LZPP6NPV.js +0 -274
- package/dist/survival-5GWRVTQ6.js +0 -49
- package/dist/survival-FW7N3YXZ.js +0 -1248
- package/dist/survival.integration.spec-WN36VUHL.js +0 -609
- package/dist/svgraph-N35EMK3G.js +0 -1377
- package/dist/svmr-EWL5WDDD.js +0 -3834
- package/dist/swimmer-Z6FUH4CD.js +0 -993
- package/dist/table-EI2OIRGE.js +0 -192
- package/dist/termCollection-K3EX5P3F.js +0 -29
- package/dist/termCollection-TBTAHLVH.js +0 -247
- package/dist/termCollection.unit.spec-ZVNAIPHZ.js +0 -295
- package/dist/termCollectionFractionSelection-ATNIPWVX.js +0 -38
- package/dist/termCollectionFractionSelection.unit.spec-VBRWWBML.js +0 -184
- package/dist/tk-P3RPLUVH.js +0 -1193
- package/dist/tk-U6CYISBH.js +0 -37
- package/dist/tp.ui-KBFYUSWS.js +0 -1453
- package/dist/tvs.categorical-5USP772O.js +0 -28
- package/dist/tvs.condition-652MAA2Z.js +0 -160
- package/dist/tvs.density-CB24PXDE.js +0 -19
- package/dist/tvs.dt-7BTARQUS.js +0 -34
- package/dist/tvs.dtcnv.categorical-GAOO3DGO.js +0 -31
- package/dist/tvs.dtcnv.continuous-P2QRD45O.js +0 -72
- package/dist/tvs.dtfusion-L3I65W7L.js +0 -31
- package/dist/tvs.dtitd-B3JPW6OL.js +0 -31
- package/dist/tvs.dtsnvindel-6Y6CJBZV.js +0 -31
- package/dist/tvs.dtsv-GL7CPATL.js +0 -31
- package/dist/tvs.multivalue-75IM23FZ.js +0 -84
- package/dist/tvs.numeric-XB3GBPHE.js +0 -32
- package/dist/tvs.samplelst-QUA45UE7.js +0 -95
- package/dist/tvs.survival-EKSDZZIO.js +0 -110
- package/dist/tvs.termCollection-5ATMDC7O.js +0 -118
- package/dist/vocabulary-5QBBQAYC.js +0 -32
- package/dist/wsi.direct-BU6BL5UR.js +0 -11514
- /package/dist/{2dmaf-KRIX5DBS.js.map → 2dmaf-QFXSYOYN.js.map} +0 -0
- /package/dist/{AggMatrixInput-GBQD74NV.js.map → AggMatrixInput-7D4ZUYJK.js.map} +0 -0
- /package/dist/{AggregateMatrix-U2MOQOSZ.js.map → AggregateMatrix-NVSFZEW3.js.map} +0 -0
- /package/dist/{AppHeader-OBZWUCOD.js.map → AppHeader-5YJWBQP6.js.map} +0 -0
- /package/dist/{BoxPlot-ZK6Q5JGE.js.map → BoxPlot-52WWBGKN.js.map} +0 -0
- /package/dist/{CorrelationVolcano-WGR4JIGK.js.map → CorrelationVolcano-WS23O2JT.js.map} +0 -0
- /package/dist/{Cuminc-I6D6YSIL.js.map → Cuminc-5LJQYFEE.js.map} +0 -0
- /package/dist/{DE-HO7UBKPC.js.map → DE-Z5GBDXDU.js.map} +0 -0
- /package/dist/{DEinput-6LX4I65N.js.map → DEinput-3EAIVG5U.js.map} +0 -0
- /package/dist/{DM-WYKLX4IC.js.map → DM-24NZPPS6.js.map} +0 -0
- /package/dist/{DifferentialAnalysis-L5VVBCVZ.js.map → DifferentialAnalysis-LRAPDIXB.js.map} +0 -0
- /package/dist/{Disco-HLARIYXU.js.map → Disco-IDOTCKSD.js.map} +0 -0
- /package/dist/{Disco.UI-W64WFVC3.js.map → Disco.UI-SLJKAA6N.js.map} +0 -0
- /package/dist/{DmrPlot-BKQOT4JM.js.map → DmrPlot-5CRGQNM3.js.map} +0 -0
- /package/dist/{GB-WKFGDJYW.js.map → GB-YCDIORF3.js.map} +0 -0
- /package/dist/{GSEA-DCCJI5JE.js.map → GSEA-IGWX3AG7.js.map} +0 -0
- /package/dist/{GeneExpInput-APLFNE6N.js.map → GeneExpInput-PPOTCILZ.js.map} +0 -0
- /package/dist/{Geomap-FTKWCV4J.js.map → Geomap-D5JPCJ5L.js.map} +0 -0
- /package/dist/{HicApp-ZGZKO4Y4.js.map → HicApp-BNMMISAR.js.map} +0 -0
- /package/dist/{IDCViewer-MXB3OZUZ.js.map → IDCViewer-IUPPLC5B.js.map} +0 -0
- /package/dist/{NumBinaryEditor-S3MHUVZ5.js.map → NumBinaryEditor-45I5YNHI.js.map} +0 -0
- /package/dist/{NumBinaryEditor.unit.spec-264X5ULG.js.map → NumBinaryEditor.unit.spec-5CJPIDH4.js.map} +0 -0
- /package/dist/{NumContEditor-MKEZCZMR.js.map → NumContEditor-VMCE5LUM.js.map} +0 -0
- /package/dist/{NumContEditor.unit.spec-KBRAIU7M.js.map → NumContEditor.unit.spec-DKNXTVXT.js.map} +0 -0
- /package/dist/{NumCustomBinEditor-OSF64BFC.js.map → NumCustomBinEditor-3EESV7PW.js.map} +0 -0
- /package/dist/{NumCustomBinEditor.unit.spec-T2SRBXTV.js.map → NumCustomBinEditor.unit.spec-JPOK7BWZ.js.map} +0 -0
- /package/dist/{NumDiscreteEditor-PVW5HRRQ.js.map → NumDiscreteEditor-YZ3Q4J4M.js.map} +0 -0
- /package/dist/{NumDiscreteEditor.unit.spec-GUK7VWMR.js.map → NumDiscreteEditor.unit.spec-V6NSX72E.js.map} +0 -0
- /package/dist/{NumRegularBinEditor-757VRGFQ.js.map → NumRegularBinEditor-6GI63X5V.js.map} +0 -0
- /package/dist/{NumRegularBinEditor.unit.spec-JUIGEH3Z.js.map → NumRegularBinEditor.unit.spec-KCGZLQ6T.js.map} +0 -0
- /package/dist/{NumSplineEditor-U6MVFSCZ.js.map → NumSplineEditor-OMJUFDSC.js.map} +0 -0
- /package/dist/{NumSplineEditor.unit.spec-PSH6YENX.js.map → NumSplineEditor.unit.spec-KUB2OITH.js.map} +0 -0
- /package/dist/{NumericDensity-YIP25Z4Y.js.map → NumericDensity-M4BIVIB3.js.map} +0 -0
- /package/dist/{NumericDensity.unit.spec-3OSIZJHH.js.map → NumericDensity.unit.spec-G3GJMO4S.js.map} +0 -0
- /package/dist/{NumericHandler-D2CO3FTS.js.map → NumericHandler-AMV4BETD.js.map} +0 -0
- /package/dist/{NumericHandler.unit.spec-RNFVGO2I.js.map → NumericHandler.unit.spec-OJDMQQHX.js.map} +0 -0
- /package/dist/{ProteomeInput-ZOBJ2VU6.js.map → ProteomeInput-KB7YRARQ.js.map} +0 -0
- /package/dist/{Regression-ABKJOOMQ.js.map → Regression-5KSKHUEJ.js.map} +0 -0
- /package/dist/{RunChart2-D5CEEFEE.js.map → RunChart2-JJ4GQF44.js.map} +0 -0
- /package/dist/{SC-RLVEECU5.js.map → SC-LKCBWZQX.js.map} +0 -0
- /package/dist/{Violin-PCNX2CWV.js.map → Violin-JRP7R53K.js.map} +0 -0
- /package/dist/{Volcano-NVFNO7NE.js.map → Volcano-BDD3PZ4T.js.map} +0 -0
- /package/dist/{Wsi-MAMCK5YZ.js.map → Wsi-3C3ERYSG.js.map} +0 -0
- /package/dist/{adSandbox-5YFAQZO6.js.map → adSandbox-GFF6ZCRM.js.map} +0 -0
- /package/dist/{animatedBubbleChart-GM2GXDP3.js.map → animatedBubbleChart-PUPXCFJW.js.map} +0 -0
- /package/dist/{app-FNNCH37H.js.map → app-EICBB32X.js.map} +0 -0
- /package/dist/{app-ID5S5FUP.js.map → app-Z7M3CFWA.js.map} +0 -0
- /package/dist/{barchart-EAXXILCH.js.map → barchart-WRAEMD7B.js.map} +0 -0
- /package/dist/{barchart2-E6A4UMUB.js.map → barchart2-5CX3CO4K.js.map} +0 -0
- /package/dist/{block-VMVJH77F.js.map → block-53QIZEH3.js.map} +0 -0
- /package/dist/{block.init-TUCGKLXG.js.map → block.init-4V3SIUNX.js.map} +0 -0
- /package/dist/{block.mds.expressionrank-YVROHZVX.js.map → block.mds.expressionrank-5YNTX35V.js.map} +0 -0
- /package/dist/{block.mds.geneboxplot-TQNEWBJY.js.map → block.mds.geneboxplot-X5OHLSWT.js.map} +0 -0
- /package/dist/{block.mds.junction-ZOSTZQF5.js.map → block.mds.junction-QBJF6MFG.js.map} +0 -0
- /package/dist/{block.mds.svcnv-XSTSJ4ZD.js.map → block.mds.svcnv-BNCMHJJB.js.map} +0 -0
- /package/dist/{block.svg-D6HXL4SC.js.map → block.svg-KQELYSEO.js.map} +0 -0
- /package/dist/{block.tk.aicheck-7RNC4HRR.js.map → block.tk.aicheck-5EDNNXGL.js.map} +0 -0
- /package/dist/{block.tk.bigwig.ui-UVSZ7LWQ.js.map → block.tk.bigwig.ui-XUJPSA6D.js.map} +0 -0
- /package/dist/{block.tk.hicstraw-YFBJR5LO.js.map → block.tk.hicstraw-MVLZALFC.js.map} +0 -0
- /package/dist/{block.tk.junction-DNRK2JNQ.js.map → block.tk.junction-DLZNHWSA.js.map} +0 -0
- /package/dist/{block.tk.junction.textmatrixui-EN4ADCAU.js.map → block.tk.junction.textmatrixui-J3EODITY.js.map} +0 -0
- /package/dist/{block.tk.ld-I5CTAJ4K.js.map → block.tk.ld-4GEJ2Y2K.js.map} +0 -0
- /package/dist/{block.tk.menu-HUZBY7OM.js.map → block.tk.menu-NM7KA5GZ.js.map} +0 -0
- /package/dist/{block.tk.pgv-KA6BFYPY.js.map → block.tk.pgv-XFOJACVC.js.map} +0 -0
- /package/dist/{brainImaging-OQB2ZHCU.js.map → brainImaging-WFRZQANN.js.map} +0 -0
- /package/dist/{brainRegions-2CRVMS24.js.map → brainRegions-66KWCUF2.js.map} +0 -0
- /package/dist/{bubbleHeatmap-MANNFEG2.js.map → bubbleHeatmap-VKLIJOMM.js.map} +0 -0
- /package/dist/{cellTypeBubbleHeatmap-LRK4R4EC.js.map → cellTypeBubbleHeatmap-ZPCXC52I.js.map} +0 -0
- /package/dist/{chunk-H6YM4NKS.js.map → chunk-2NDFMFNM.js.map} +0 -0
- /package/dist/{chunk-WTWHUZ4O.js.map → chunk-34AGCF72.js.map} +0 -0
- /package/dist/{chunk-SUOEFEJO.js.map → chunk-3KKI63GB.js.map} +0 -0
- /package/dist/{chunk-XP4P55IC.js.map → chunk-3LUHZYIN.js.map} +0 -0
- /package/dist/{chunk-Z7Q2O5Y7.js.map → chunk-5XXYEKE2.js.map} +0 -0
- /package/dist/{chunk-67MD4UES.js.map → chunk-6C3USAU5.js.map} +0 -0
- /package/dist/{chunk-VHC4FDEJ.js.map → chunk-7TRD7A2U.js.map} +0 -0
- /package/dist/{chunk-BOCU6PXO.js.map → chunk-AG2PISH4.js.map} +0 -0
- /package/dist/{chunk-DXKZBSSD.js.map → chunk-BGYZJXYZ.js.map} +0 -0
- /package/dist/{chunk-VSDJEPDN.js.map → chunk-BY5CLUY5.js.map} +0 -0
- /package/dist/{chunk-5TA5LHPW.js.map → chunk-C6PMNLN4.js.map} +0 -0
- /package/dist/{chunk-3E26ITYK.js.map → chunk-DFKTWNCC.js.map} +0 -0
- /package/dist/{chunk-DEQREL5P.js.map → chunk-FQHE7CLH.js.map} +0 -0
- /package/dist/{chunk-AENUJ7UO.js.map → chunk-FRLAPBYW.js.map} +0 -0
- /package/dist/{chunk-3H4FCRAN.js.map → chunk-HKYUCYOQ.js.map} +0 -0
- /package/dist/{chunk-IXV7FX5B.js.map → chunk-IQO3VZCP.js.map} +0 -0
- /package/dist/{chunk-6DESNDD5.js.map → chunk-J5XV35LN.js.map} +0 -0
- /package/dist/{chunk-JPPNQVKA.js.map → chunk-JMWCL3QQ.js.map} +0 -0
- /package/dist/{chunk-YDIIKD7O.js.map → chunk-K3Q3KTBT.js.map} +0 -0
- /package/dist/{chunk-DZBPF5QI.js.map → chunk-LHM4UVYZ.js.map} +0 -0
- /package/dist/{chunk-GLAR6VNF.js.map → chunk-LMVYPBT4.js.map} +0 -0
- /package/dist/{chunk-VGC4STKW.js.map → chunk-LUGZE4FR.js.map} +0 -0
- /package/dist/{chunk-XHZ723K4.js.map → chunk-LXSBSJUL.js.map} +0 -0
- /package/dist/{chunk-HJKVYTYK.js.map → chunk-MOAHKBYO.js.map} +0 -0
- /package/dist/{chunk-7YMZSVWW.js.map → chunk-MU7GTJYA.js.map} +0 -0
- /package/dist/{chunk-QWBNQYIF.js.map → chunk-MXZYJ7WN.js.map} +0 -0
- /package/dist/{chunk-E6C2EWHU.js.map → chunk-NZB6RZK2.js.map} +0 -0
- /package/dist/{chunk-YR6EXI2K.js.map → chunk-OF6FDDKV.js.map} +0 -0
- /package/dist/{chunk-PV7AYYRZ.js.map → chunk-OPMEDR4F.js.map} +0 -0
- /package/dist/{chunk-XYUERIZ6.js.map → chunk-ORYAOIVF.js.map} +0 -0
- /package/dist/{chunk-4ENIOXIT.js.map → chunk-OZUF7O2S.js.map} +0 -0
- /package/dist/{chunk-AZSWQWKL.js.map → chunk-PHKA5BP7.js.map} +0 -0
- /package/dist/{chunk-KCVBFXGO.js.map → chunk-QI4EZK7S.js.map} +0 -0
- /package/dist/{chunk-C7ZPDNOJ.js.map → chunk-QNSB6O4W.js.map} +0 -0
- /package/dist/{chunk-4ZV6SE4B.js.map → chunk-QPRSVLI7.js.map} +0 -0
- /package/dist/{chunk-U3CWWOHL.js.map → chunk-RSMASA5S.js.map} +0 -0
- /package/dist/{chunk-QI7OWVFY.js.map → chunk-S2BMWHFY.js.map} +0 -0
- /package/dist/{chunk-IZ4IPYQY.js.map → chunk-SKL52OWF.js.map} +0 -0
- /package/dist/{chunk-YLGSRK75.js.map → chunk-TRWUXFVB.js.map} +0 -0
- /package/dist/{chunk-HN67TOA7.js.map → chunk-URCFNXAK.js.map} +0 -0
- /package/dist/{chunk-TVSNHVWX.js.map → chunk-V2D7DA2M.js.map} +0 -0
- /package/dist/{chunk-4GKC43U3.js.map → chunk-V2ZVMDBY.js.map} +0 -0
- /package/dist/{chunk-6DRRN5XP.js.map → chunk-VIFY62YA.js.map} +0 -0
- /package/dist/{chunk-Z53VY5JV.js.map → chunk-VZ2JWFSX.js.map} +0 -0
- /package/dist/{chunk-2NB5HVXB.js.map → chunk-W5GR42L2.js.map} +0 -0
- /package/dist/{chunk-5YQXNW6Y.js.map → chunk-WDOX6A6T.js.map} +0 -0
- /package/dist/{chunk-PIN5YUVJ.js.map → chunk-XPL54FXR.js.map} +0 -0
- /package/dist/{chunk-LOX5GAVG.js.map → chunk-XV3KWMG3.js.map} +0 -0
- /package/dist/{chunk-6BBUIRHA.js.map → chunk-YFFQ7JTJ.js.map} +0 -0
- /package/dist/{chunk-XVPPM25G.js.map → chunk-ZD6AIFTS.js.map} +0 -0
- /package/dist/{chunk-DZDK64XY.js.map → chunk-ZDVYAOWC.js.map} +0 -0
- /package/dist/{chunk-GK5QS5BR.js.map → chunk-ZKIC65KR.js.map} +0 -0
- /package/dist/{chunk-7TLUQH7J.js.map → chunk-ZPRI5XCE.js.map} +0 -0
- /package/dist/{cohort-ERDL7EJU.js.map → cohort-CI22KICX.js.map} +0 -0
- /package/dist/{cohortSunburst-KSTVS3OQ.js.map → cohortSunburst-Z5DANXVS.js.map} +0 -0
- /package/dist/{condition-CTJYHRJG.js.map → condition-GZOA7BZJ.js.map} +0 -0
- /package/dist/{controls-MMMRBTZL.js.map → controls-OWC25VQN.js.map} +0 -0
- /package/dist/{controls.config-ZKMQI27Q.js.map → controls.config-UVC4Q7BS.js.map} +0 -0
- /package/dist/{correlation-NEQNBQTT.js.map → correlation-EBA5YVXA.js.map} +0 -0
- /package/dist/{customdata.inputui-THUR7DF5.js.map → customdata.inputui-FZRZCPS3.js.map} +0 -0
- /package/dist/{dataDownload-ZMAJUKBX.js.map → dataDownload-WIPQU33P.js.map} +0 -0
- /package/dist/{databrowser.ui-A6ZSIUG4.js.map → databrowser.ui-6L6Q72W4.js.map} +0 -0
- /package/dist/{dictionary-TQUVCHIN.js.map → dictionary-4VZEPGW5.js.map} +0 -0
- /package/dist/{dnaMethylation-ZMJYY3ML.js.map → dnaMethylation-LN6THRNZ.js.map} +0 -0
- /package/dist/{dnaMethylation.integration.spec-5DTBGTYB.js.map → dnaMethylation.integration.spec-BXC6EPUV.js.map} +0 -0
- /package/dist/{e2pca-DNWBF545.js.map → e2pca-EXFI4Q2Y.js.map} +0 -0
- /package/dist/{ep-JNH3HMY4.js.map → ep-T7EZ34XV.js.map} +0 -0
- /package/dist/{expclust.gdc.spec-2NJ7JVJW.js.map → expclust.gdc.spec-NAN4M75R.js.map} +0 -0
- /package/dist/{facet-RWQFAVVU.js.map → facet-BJFUIWHK.js.map} +0 -0
- /package/dist/{gb-OT2Z3Y7J.js.map → gb-CBC3PDKZ.js.map} +0 -0
- /package/dist/{geneExpClustering-TPYGSTMO.js.map → geneExpClustering-7JFY7TQT.js.map} +0 -0
- /package/dist/{geneExpression-4K3OTXBZ.js.map → geneExpression-FOQOKD34.js.map} +0 -0
- /package/dist/{geneExpression.unit.spec-26MCGRAP.js.map → geneExpression.unit.spec-XSFC5ZJP.js.map} +0 -0
- /package/dist/{geneORA-GNXKCN45.js.map → geneORA-KYPN66QU.js.map} +0 -0
- /package/dist/{geneRanking-LV6W6TT7.js.map → geneRanking-VEHFMRFL.js.map} +0 -0
- /package/dist/{geneVariant-B2SYTHG6.js.map → geneVariant-77V6FNJX.js.map} +0 -0
- /package/dist/{geneVariant-O4XG5VEM.js.map → geneVariant-BS3XZFYM.js.map} +0 -0
- /package/dist/{geneVariant.integration.spec-YYVPAFXT.js.map → geneVariant.integration.spec-US4OY3S5.js.map} +0 -0
- /package/dist/{genefusion.ui-CVGGYVV3.js.map → genefusion.ui-YNVTTLDE.js.map} +0 -0
- /package/dist/{geneset-MBMCJNXT.js.map → geneset-BH5MWNJQ.js.map} +0 -0
- /package/dist/{genomeBrowser.spec-OVXFKEIU.js.map → genomeBrowser.spec-BFTGLRHG.js.map} +0 -0
- /package/dist/{grin2-YCJGBRFG.js.map → grin2-4AXUYJIL.js.map} +0 -0
- /package/dist/{grin2-OXRU465E.js.map → grin2-5T557HKM.js.map} +0 -0
- /package/dist/{hierCluster-KNPWL5KD.js.map → hierCluster-IJHBVO2N.js.map} +0 -0
- /package/dist/{hierCluster-L3LYQZQL.js.map → hierCluster-POJBHBN6.js.map} +0 -0
- /package/dist/{hierCluster.config-VZBV5QIO.js.map → hierCluster.config-UUQEFTIG.js.map} +0 -0
- /package/dist/{hierCluster.integration.spec-ZM7K7WI4.js.map → hierCluster.integration.spec-PZFUAOHX.js.map} +0 -0
- /package/dist/{hierCluster.interactivity-EA7WVIQR.js.map → hierCluster.interactivity-6CN5PNFR.js.map} +0 -0
- /package/dist/{imagePlot-OLVI26S5.js.map → imagePlot-HKPPACFV.js.map} +0 -0
- /package/dist/{importPlot-3SSCNROC.js.map → importPlot-EMI6BVPR.js.map} +0 -0
- /package/dist/{isoformExpression-BTMJNAAO.js.map → isoformExpression-SFBA3SY7.js.map} +0 -0
- /package/dist/{isoformExpression.unit.spec-S2W5T42Z.js.map → isoformExpression.unit.spec-JKYWHGRN.js.map} +0 -0
- /package/dist/{junction-GIS5OCRO.js.map → junction-PJPOCKK7.js.map} +0 -0
- /package/dist/{junction.unit.spec-MSILW6QZ.js.map → junction.unit.spec-CVYLAHZF.js.map} +0 -0
- /package/dist/{launch.adhoc-LLJY4LA5.js.map → launch.adhoc-R7SYX6GF.js.map} +0 -0
- /package/dist/{leftlabel.sample-P6DDVCOW.js.map → leftlabel.sample-XJUDFAKS.js.map} +0 -0
- /package/dist/{lollipop-J34YCYIP.js.map → lollipop-V43BWGBT.js.map} +0 -0
- /package/dist/{maf-MFEEYT5P.js.map → maf-KU44HXN3.js.map} +0 -0
- /package/dist/{maftimeline-TGJ37QYA.js.map → maftimeline-JPHVYTTU.js.map} +0 -0
- /package/dist/{matrix-A6BNFCIH.js.map → matrix-EABQEAMC.js.map} +0 -0
- /package/dist/{matrix-XTKRVPMQ.js.map → matrix-HMLF5MDD.js.map} +0 -0
- /package/dist/{matrix.config-RMDDMOZ5.js.map → matrix.config-RX5GWHTM.js.map} +0 -0
- /package/dist/{matrix.integration.spec-2DVRXVNH.js.map → matrix.integration.spec-MZPSYXTF.js.map} +0 -0
- /package/dist/{matrix.interactivity-MGOYEKDN.js.map → matrix.interactivity-6AJ5BGEP.js.map} +0 -0
- /package/dist/{matrix.layout-T7EC5ZC2.js.map → matrix.layout-CTHRQE7U.js.map} +0 -0
- /package/dist/{matrix.renderers-GR77V3RL.js.map → matrix.renderers-UGQXONTG.js.map} +0 -0
- /package/dist/{matrix.sort.unit.spec-YUCV7G5L.js.map → matrix.sort.unit.spec-FJKIBDTU.js.map} +0 -0
- /package/dist/{matrix.sorterUi.unit.spec-FESIQ2RC.js.map → matrix.sorterUi.unit.spec-6DQ6KGXT.js.map} +0 -0
- /package/dist/{matrix.unit.spec-6QF3WKM7.js.map → matrix.unit.spec-7Y3BKFNQ.js.map} +0 -0
- /package/dist/{mavb-UXJBITZM.js.map → mavb-ADD57P2Q.js.map} +0 -0
- /package/dist/{mds.fimo-IPNWVBO4.js.map → mds.fimo-7WH5GVFZ.js.map} +0 -0
- /package/dist/{mds.samplescatterplot-KEG7RSN3.js.map → mds.samplescatterplot-JYFOORUG.js.map} +0 -0
- /package/dist/{mds.survivalplot-LJF2CD33.js.map → mds.survivalplot-2V4H3YZY.js.map} +0 -0
- /package/dist/{multivalue-YRQZ73DI.js.map → multivalue-GLS3RPQ5.js.map} +0 -0
- /package/dist/{oncomatrix-TIMH5JKS.js.map → oncomatrix-QA267TP2.js.map} +0 -0
- /package/dist/{oncomatrix.spec-MUOKKCJN.js.map → oncomatrix.spec-H6AAIP7H.js.map} +0 -0
- /package/dist/{plot.2dvaf-3OL4S6QG.js.map → plot.2dvaf-JW3Z25M3.js.map} +0 -0
- /package/dist/{plot.app-CMLHZV5F.js.map → plot.app-CUCDOVC5.js.map} +0 -0
- /package/dist/{plot.barplot-NRYMIPK6.js.map → plot.barplot-KBVYKICH.js.map} +0 -0
- /package/dist/{plot.boxplot-ANGW3WUC.js.map → plot.boxplot-BTS6ZWCQ.js.map} +0 -0
- /package/dist/{plot.brainImaging-YUDBYKX5.js.map → plot.brainImaging-GGUARYRT.js.map} +0 -0
- /package/dist/{plot.disco-LV7RE3YO.js.map → plot.disco-EP274JEW.js.map} +0 -0
- /package/dist/{plot.ssgq-F2LOQFYD.js.map → plot.ssgq-4VUH3ZWV.js.map} +0 -0
- /package/dist/{plot.vaf2cov-5OKC7X6D.js.map → plot.vaf2cov-2FPWA2FS.js.map} +0 -0
- /package/dist/{polar2-BGJA2GHZ.js.map → polar2-7W5JRMB5.js.map} +0 -0
- /package/dist/{profileForms-BKP3OBKV.js.map → profileForms-2IKL3SZU.js.map} +0 -0
- /package/dist/{profilePlot-5PRRNUKD.js.map → profilePlot-IURW2HQN.js.map} +0 -0
- /package/dist/{proteinView-VZIWIZZY.js.map → proteinView-4ZRODQN3.js.map} +0 -0
- /package/dist/{proteomeCohortCompare-XZI5OI4X.js.map → proteomeCohortCompare-BK3FLW4Z.js.map} +0 -0
- /package/dist/{pseudbulk.unit.spec-DXJQV7JQ.js.map → pseudbulk.unit.spec-QGQCCHNF.js.map} +0 -0
- /package/dist/{pseudobulk-FCH3WW6O.js.map → pseudobulk-7HEOBIFO.js.map} +0 -0
- /package/dist/{qualitative-ATX53V44.js.map → qualitative-6HWIG5NU.js.map} +0 -0
- /package/dist/{qualitative-BRKLVRKW.js.map → qualitative-WGEEUNH6.js.map} +0 -0
- /package/dist/{radar2-6BBT2FBT.js.map → radar2-VXP322F7.js.map} +0 -0
- /package/dist/{radarFacility2-76Q3IYP2.js.map → radarFacility2-IJGJ3AJB.js.map} +0 -0
- /package/dist/{render-KUC3QH36.js.map → render-MMCUV7QI.js.map} +0 -0
- /package/dist/{report-KB4K7ZXC.js.map → report-F22EFD7C.js.map} +0 -0
- /package/dist/{sampleView-QD2JLZ4T.js.map → sampleView-3DVB2PQT.js.map} +0 -0
- /package/dist/{samplelst-6R5RYHNV.js.map → samplelst-LNAI33IW.js.map} +0 -0
- /package/dist/{samplematrix-NGORNBTR.js.map → samplematrix-RGXPBRW5.js.map} +0 -0
- /package/dist/{sc-27AHZZDK.js.map → sc-UR66YB27.js.map} +0 -0
- /package/dist/{scatter-FXLZMWD6.js.map → scatter-3K6XBJIM.js.map} +0 -0
- /package/dist/{scatter-OWFYLMSJ.js.map → scatter-IFP5NTZU.js.map} +0 -0
- /package/dist/{selectGenomeWithTklst-ZTGABCXC.js.map → selectGenomeWithTklst-LGBKEN3T.js.map} +0 -0
- /package/dist/{singleCellCellType-7XXJ5NWC.js.map → singleCellCellType-ACQACM6W.js.map} +0 -0
- /package/dist/{singleCellCellType.unit.spec-Y3TEYYCF.js.map → singleCellCellType.unit.spec-WLGTJKOM.js.map} +0 -0
- /package/dist/{singleCellGeneExpression-EUAIEIYJ.js.map → singleCellGeneExpression-M4RPITJW.js.map} +0 -0
- /package/dist/{singleCellGeneExpression.unit.spec-JVHPFLML.js.map → singleCellGeneExpression.unit.spec-N3VD6PUW.js.map} +0 -0
- /package/dist/{singleCellNumericValue-FHIECJDK.js.map → singleCellNumericValue-W6F44FJN.js.map} +0 -0
- /package/dist/{singleCellNumericValue.unit.spec-ZFG56MIO.js.map → singleCellNumericValue.unit.spec-JZNMY77I.js.map} +0 -0
- /package/dist/{singleCellPlot-NDGIW32L.js.map → singleCellPlot-CCG2KSCO.js.map} +0 -0
- /package/dist/{singlecell-JPWVPZEF.js.map → singlecell-32P47E4I.js.map} +0 -0
- /package/dist/{singlecell-N7RJMWZ2.js.map → singlecell-I6H3Z7FT.js.map} +0 -0
- /package/dist/{snp-APUTOL2F.js.map → snp-7X2BXRQP.js.map} +0 -0
- /package/dist/{snp.unit.spec-4AN7AJKO.js.map → snp.unit.spec-BJGWNSVR.js.map} +0 -0
- /package/dist/{snplocus-WIMFAMBE.js.map → snplocus-UOVS2GD6.js.map} +0 -0
- /package/dist/{snplst-SUJ5AK4E.js.map → snplst-JFVP4NG2.js.map} +0 -0
- /package/dist/{spliceevent.a53ss.diagram-4UBI7PFJ.js.map → spliceevent.a53ss.diagram-ETXJX57W.js.map} +0 -0
- /package/dist/{spliceevent.exonskip.diagram-NVEXVRIC.js.map → spliceevent.exonskip.diagram-C4JCEOXQ.js.map} +0 -0
- /package/dist/{spliceevent.noeventdiagram-CKEWNLVF.js.map → spliceevent.noeventdiagram-4DD3Z4OM.js.map} +0 -0
- /package/dist/{ssGSEA-CJOVXTAW.js.map → ssGSEA-GOZOYROM.js.map} +0 -0
- /package/dist/{ssGSEA.unit.spec-A7VRVJSF.js.map → ssGSEA.unit.spec-J4DPFU4D.js.map} +0 -0
- /package/dist/{stattable-JBJVVLQE.js.map → stattable-ICUZQHUF.js.map} +0 -0
- /package/dist/{studyCatalog-NEL7XSIP.js.map → studyCatalog-PCFXVOI3.js.map} +0 -0
- /package/dist/{summarizeCnvGeneexp-BZSCTA5W.js.map → summarizeCnvGeneexp-DK6HNUFE.js.map} +0 -0
- /package/dist/{summarizeGeneexpSurvival-743KXNV7.js.map → summarizeGeneexpSurvival-JLCR2VIX.js.map} +0 -0
- /package/dist/{summarizeMutationCnv-CALMSQGV.js.map → summarizeMutationCnv-CFAKT6IP.js.map} +0 -0
- /package/dist/{summarizeMutationDiagnosis-OTE7O4AS.js.map → summarizeMutationDiagnosis-5HMVSYMI.js.map} +0 -0
- /package/dist/{summarizeMutationSurvival-VOZOFTFM.js.map → summarizeMutationSurvival-GP2OQMUS.js.map} +0 -0
- /package/dist/{summary-XJKCD35N.js.map → summary-6K553VNS.js.map} +0 -0
- /package/dist/{summary.integration.spec-OOEU6WNB.js.map → summary.integration.spec-MXERZOVY.js.map} +0 -0
- /package/dist/{summaryInput-JSOXVSMY.js.map → summaryInput-V2G6HFJS.js.map} +0 -0
- /package/dist/{sunburst-J3QHMYKW.js.map → sunburst-6GKVNIRF.js.map} +0 -0
- /package/dist/{sunburst-LZPP6NPV.js.map → sunburst-YOVKC5G2.js.map} +0 -0
- /package/dist/{survival-FW7N3YXZ.js.map → survival-GHTV2ZPX.js.map} +0 -0
- /package/dist/{survival-5GWRVTQ6.js.map → survival-KF2QUWSM.js.map} +0 -0
- /package/dist/{survival.integration.spec-WN36VUHL.js.map → survival.integration.spec-GVSQL4VB.js.map} +0 -0
- /package/dist/{svgraph-N35EMK3G.js.map → svgraph-WN3JLEOC.js.map} +0 -0
- /package/dist/{svmr-EWL5WDDD.js.map → svmr-ZZKBQFQK.js.map} +0 -0
- /package/dist/{swimmer-Z6FUH4CD.js.map → swimmer-XHORJEVI.js.map} +0 -0
- /package/dist/{table-EI2OIRGE.js.map → table-XQCTNHSZ.js.map} +0 -0
- /package/dist/{termCollection-K3EX5P3F.js.map → termCollection-DXZQT7YT.js.map} +0 -0
- /package/dist/{termCollection-TBTAHLVH.js.map → termCollection-HRM2NHLA.js.map} +0 -0
- /package/dist/{termCollection.unit.spec-ZVNAIPHZ.js.map → termCollection.unit.spec-BGULSLH6.js.map} +0 -0
- /package/dist/{termCollectionFractionSelection-ATNIPWVX.js.map → termCollectionFractionSelection-TPNNP2ER.js.map} +0 -0
- /package/dist/{termCollectionFractionSelection.unit.spec-VBRWWBML.js.map → termCollectionFractionSelection.unit.spec-VONXAGZH.js.map} +0 -0
- /package/dist/{tk-P3RPLUVH.js.map → tk-KPD6HTHR.js.map} +0 -0
- /package/dist/{tk-U6CYISBH.js.map → tk-RCTQPQH7.js.map} +0 -0
- /package/dist/{tp.ui-KBFYUSWS.js.map → tp.ui-MVNQLMAD.js.map} +0 -0
- /package/dist/{tvs.categorical-5USP772O.js.map → tvs.categorical-4TKKU6HO.js.map} +0 -0
- /package/dist/{tvs.condition-652MAA2Z.js.map → tvs.condition-SARY3O5Y.js.map} +0 -0
- /package/dist/{tvs.density-CB24PXDE.js.map → tvs.density-IGO4I4T2.js.map} +0 -0
- /package/dist/{tvs.dt-7BTARQUS.js.map → tvs.dt-XJ2MW2AP.js.map} +0 -0
- /package/dist/{tvs.dtcnv.categorical-GAOO3DGO.js.map → tvs.dtcnv.categorical-H7FKTXH4.js.map} +0 -0
- /package/dist/{tvs.dtcnv.continuous-P2QRD45O.js.map → tvs.dtcnv.continuous-JQ62ZHER.js.map} +0 -0
- /package/dist/{tvs.dtfusion-L3I65W7L.js.map → tvs.dtfusion-GC3DZ2BO.js.map} +0 -0
- /package/dist/{tvs.dtitd-B3JPW6OL.js.map → tvs.dtitd-3SHGIDIB.js.map} +0 -0
- /package/dist/{tvs.dtsnvindel-6Y6CJBZV.js.map → tvs.dtsnvindel-BEDWZ4A2.js.map} +0 -0
- /package/dist/{tvs.dtsv-GL7CPATL.js.map → tvs.dtsv-HRIMULVD.js.map} +0 -0
- /package/dist/{tvs.multivalue-75IM23FZ.js.map → tvs.multivalue-5VC7BLSZ.js.map} +0 -0
- /package/dist/{tvs.numeric-XB3GBPHE.js.map → tvs.numeric-TGEC7G6A.js.map} +0 -0
- /package/dist/{tvs.samplelst-QUA45UE7.js.map → tvs.samplelst-Q6EYAUQZ.js.map} +0 -0
- /package/dist/{tvs.survival-EKSDZZIO.js.map → tvs.survival-NJ3DTZIG.js.map} +0 -0
- /package/dist/{tvs.termCollection-5ATMDC7O.js.map → tvs.termCollection-TVVLPSTG.js.map} +0 -0
- /package/dist/{vocabulary-5QBBQAYC.js.map → vocabulary-A7ZBBU65.js.map} +0 -0
- /package/dist/{wsi.direct-BU6BL5UR.js.map → wsi.direct-JJGIAH6A.js.map} +0 -0
package/dist/chunk-B5IJAQG4.js
DELETED
|
@@ -1,2054 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
recoverInit
|
|
3
|
-
} from "./chunk-4E2F26CC.js";
|
|
4
|
-
import {
|
|
5
|
-
getSavedStateRefusal,
|
|
6
|
-
markSavedState,
|
|
7
|
-
parentCorsMessage
|
|
8
|
-
} from "./chunk-O6T4SDC7.js";
|
|
9
|
-
import {
|
|
10
|
-
chartsInit,
|
|
11
|
-
escapeHtml,
|
|
12
|
-
fillTermWrapper,
|
|
13
|
-
filterRxCompInit,
|
|
14
|
-
first_genetrack_tolist,
|
|
15
|
-
getDNAMethUnit,
|
|
16
|
-
getFilterItemByTag,
|
|
17
|
-
getSampleFilter,
|
|
18
|
-
groupsInit,
|
|
19
|
-
keyupEnter,
|
|
20
|
-
renderTable,
|
|
21
|
-
sayerror,
|
|
22
|
-
to_textfile
|
|
23
|
-
} from "./chunk-PEKCVKJK.js";
|
|
24
|
-
import {
|
|
25
|
-
importPlot
|
|
26
|
-
} from "./chunk-YR6EXI2K.js";
|
|
27
|
-
import {
|
|
28
|
-
Menu
|
|
29
|
-
} from "./chunk-CNFTQSNE.js";
|
|
30
|
-
import {
|
|
31
|
-
icons
|
|
32
|
-
} from "./chunk-3CIL7KH7.js";
|
|
33
|
-
import {
|
|
34
|
-
dofetch3
|
|
35
|
-
} from "./chunk-4TJO2DGU.js";
|
|
36
|
-
import {
|
|
37
|
-
trimGvTermsForSave
|
|
38
|
-
} from "./chunk-JHLF2ZC2.js";
|
|
39
|
-
import {
|
|
40
|
-
DNA_METHYLATION,
|
|
41
|
-
dtcnv,
|
|
42
|
-
dtfusionrna,
|
|
43
|
-
dtsnvindel,
|
|
44
|
-
dtsv
|
|
45
|
-
} from "./chunk-WJLRU5OF.js";
|
|
46
|
-
import {
|
|
47
|
-
getCompInit,
|
|
48
|
-
multiInit
|
|
49
|
-
} from "./chunk-HBNB5TRH.js";
|
|
50
|
-
import {
|
|
51
|
-
select_default
|
|
52
|
-
} from "./chunk-I6Y4O3RR.js";
|
|
53
|
-
|
|
54
|
-
// mass/about.ts
|
|
55
|
-
var cohortTableActiveColor = "yellow";
|
|
56
|
-
var MassAbout = class _MassAbout {
|
|
57
|
-
constructor(opts) {
|
|
58
|
-
this.initCohort = (appState) => {
|
|
59
|
-
if (this.selectCohort == null) return;
|
|
60
|
-
if (!this.selectCohort.values) return;
|
|
61
|
-
const instanceNum2 = this.instanceNum;
|
|
62
|
-
const activeCohort = appState.activeCohort;
|
|
63
|
-
const app = this.app;
|
|
64
|
-
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) {
|
|
65
|
-
const tr = select_default(nodes[i]);
|
|
66
|
-
const td0 = tr.append("td");
|
|
67
|
-
const radioName = "sja-termdb-cohort-" + instanceNum2;
|
|
68
|
-
const radioId = radioName + "-" + i;
|
|
69
|
-
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 (event) => {
|
|
70
|
-
const state = app.getState();
|
|
71
|
-
const clearOnChange = state.termdbConfig.selectCohort.clearOnChange;
|
|
72
|
-
if (clearOnChange) {
|
|
73
|
-
const subactions = [];
|
|
74
|
-
const toBeCleared = [];
|
|
75
|
-
const plots = state.plots;
|
|
76
|
-
const filter = state.termfilter.filter.lst.find((f) => f.tag == "filterUiRoot")?.lst;
|
|
77
|
-
const groups = state.groups;
|
|
78
|
-
if (clearOnChange.plots && plots?.length) toBeCleared.push("plots");
|
|
79
|
-
for (const plot of plots) {
|
|
80
|
-
subactions.push({
|
|
81
|
-
type: "plot_delete",
|
|
82
|
-
id: plot.id
|
|
83
|
-
});
|
|
84
|
-
}
|
|
85
|
-
if (clearOnChange.filter && filter?.length) toBeCleared.push("filters");
|
|
86
|
-
subactions.push({
|
|
87
|
-
type: "filter_replace",
|
|
88
|
-
filter: {
|
|
89
|
-
type: "tvslst",
|
|
90
|
-
in: true,
|
|
91
|
-
join: "",
|
|
92
|
-
tag: "filterUiRoot",
|
|
93
|
-
lst: []
|
|
94
|
-
}
|
|
95
|
-
});
|
|
96
|
-
if (clearOnChange.groups && groups?.length) {
|
|
97
|
-
toBeCleared.push("groups");
|
|
98
|
-
for (const group of groups) {
|
|
99
|
-
subactions.push({
|
|
100
|
-
type: "delete_group",
|
|
101
|
-
name: group.name
|
|
102
|
-
});
|
|
103
|
-
}
|
|
104
|
-
for (const term of state.customTerms) {
|
|
105
|
-
subactions.push({
|
|
106
|
-
type: "delete_customTerm",
|
|
107
|
-
name: term.name
|
|
108
|
-
});
|
|
109
|
-
}
|
|
110
|
-
}
|
|
111
|
-
subactions.push({ type: "cohort_set", activeCohort: i });
|
|
112
|
-
if (toBeCleared.length) {
|
|
113
|
-
const confirm = window.confirm(
|
|
114
|
-
`Changing the cohort will clear all ${joinByComma(
|
|
115
|
-
toBeCleared
|
|
116
|
-
)}. To proceed, click "OK". To save the session, click "Cancel" and then click the "Session" button at the top of the page.`
|
|
117
|
-
);
|
|
118
|
-
if (!confirm) {
|
|
119
|
-
event.preventDefault();
|
|
120
|
-
return;
|
|
121
|
-
}
|
|
122
|
-
}
|
|
123
|
-
app.dispatch({
|
|
124
|
-
type: "app_refresh",
|
|
125
|
-
subactions
|
|
126
|
-
});
|
|
127
|
-
} else app.dispatch({ type: "cohort_set", activeCohort: i });
|
|
128
|
-
});
|
|
129
|
-
td0.append("label").style("font-size", "1.4em").attr("for", radioId).attr("colspan", 2).style("cursor", "pointer").html((d2) => d2.label);
|
|
130
|
-
tr.selectAll("td").style("max-width", "600px").style("padding-bottom", "10px").style("padding-right", "20px").style("vertical-align", "top");
|
|
131
|
-
});
|
|
132
|
-
this.dom.cohortTable = this.subheader.append("div").attr("data-testid", "sjpp-about-cohort-table").style("margin-left", "12px");
|
|
133
|
-
if (this.selectCohort.asterisk) {
|
|
134
|
-
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);
|
|
135
|
-
}
|
|
136
|
-
};
|
|
137
|
-
this.renderCohortsTable = async () => {
|
|
138
|
-
if (!this.dom.cohortTable) return;
|
|
139
|
-
this.dom.cohortTable.selectAll("*").remove();
|
|
140
|
-
const columns = [{ label: "Feature" }];
|
|
141
|
-
const rows = [];
|
|
142
|
-
const result = await this.app.vocabApi.getCohortsData();
|
|
143
|
-
if ("error" in result) throw result.error;
|
|
144
|
-
if (this.selectCohort?.values) {
|
|
145
|
-
const values = this.selectCohort.values;
|
|
146
|
-
result.cohorts.sort((a, b) => {
|
|
147
|
-
const aIndex = values.findIndex((v) => v.keys.toString() == a.cohort);
|
|
148
|
-
const bIndex = values.findIndex((v) => v.keys.toString() == b.cohort);
|
|
149
|
-
if (aIndex < bIndex) return -1;
|
|
150
|
-
if (aIndex > bIndex) return 1;
|
|
151
|
-
return 0;
|
|
152
|
-
});
|
|
153
|
-
}
|
|
154
|
-
if (!result.cfeatures.length) return;
|
|
155
|
-
for (const feature of result.features) rows.push([{ value: feature.name }]);
|
|
156
|
-
for (const cohort of result.cohorts) {
|
|
157
|
-
if (cohort.subcohorts?.length) continue;
|
|
158
|
-
columns.push({ label: cohort.name });
|
|
159
|
-
for (const [i, feature] of result.features.entries()) {
|
|
160
|
-
const cf = result.cfeatures.find((cf2) => cf2.idfeature === feature.idfeature && cf2.cohort === cohort.cohort);
|
|
161
|
-
if (cf) rows[i].push({ value: cf.value });
|
|
162
|
-
}
|
|
163
|
-
}
|
|
164
|
-
renderTable({
|
|
165
|
-
rows,
|
|
166
|
-
columns,
|
|
167
|
-
div: this.dom.cohortTable,
|
|
168
|
-
showLines: false,
|
|
169
|
-
maxHeight: "60vh",
|
|
170
|
-
header: { style: { "font-size": "1.2em", "font-weight": "bold" } }
|
|
171
|
-
});
|
|
172
|
-
this.dom.cohortTable.select("table").style("border-collapse", "collapse");
|
|
173
|
-
this.dom.cohortTable.selectAll(`tbody > tr > td`).style("background-color", "transparent").style("padding", "6px");
|
|
174
|
-
const state = this.app.getState();
|
|
175
|
-
const selectCohort = state.termdbConfig.selectCohort;
|
|
176
|
-
const activeCohort = state.activeCohort;
|
|
177
|
-
const keys = selectCohort.values[activeCohort].keys;
|
|
178
|
-
let selector = `tbody > tr > td:nth-child(${activeCohort + 2})`;
|
|
179
|
-
const combined = keys.length > 1;
|
|
180
|
-
if (combined) {
|
|
181
|
-
selector = "";
|
|
182
|
-
for (const key of keys) {
|
|
183
|
-
const i = result.cohorts.map((c) => c.cohort).indexOf(key);
|
|
184
|
-
if (selector !== "") selector += ",";
|
|
185
|
-
selector += `tbody > tr > td:nth-child(${i + 2})`;
|
|
186
|
-
}
|
|
187
|
-
}
|
|
188
|
-
const activeColumns = this.dom.cohortTable.selectAll(selector);
|
|
189
|
-
const color = state.termdbConfig.massNav?.activeColor || cohortTableActiveColor;
|
|
190
|
-
activeColumns.style("background-color", color);
|
|
191
|
-
};
|
|
192
|
-
this.initCustomHtml = () => {
|
|
193
|
-
if (this.selectCohort != null) return;
|
|
194
|
-
if (!this.aboutOverrides?.html) return;
|
|
195
|
-
this.subheader.append("div").attr("data-testid", "sjpp-custom-about-content").style("padding", "10px").html(this.aboutOverrides.html);
|
|
196
|
-
};
|
|
197
|
-
// render the world map (from termdbConfig.geomap) directly on the landing tab when the dataset opts in.
|
|
198
|
-
// the renderer (and its ~170KB world.json basemap) is dynamically imported so it never loads for
|
|
199
|
-
// datasets that don't enable the map.
|
|
200
|
-
this.initGeomap = async (appState) => {
|
|
201
|
-
if (!this.aboutOverrides?.showGeomap) return;
|
|
202
|
-
const geomap = appState.termdbConfig?.geomap;
|
|
203
|
-
if (!geomap?.sites?.length) return;
|
|
204
|
-
const holder = this.subheader.append("div").attr("data-testid", "sjpp-about-geomap").style("padding", "10px");
|
|
205
|
-
const { renderGeomap } = await import("./render-KUC3QH36.js");
|
|
206
|
-
renderGeomap(holder, geomap);
|
|
207
|
-
};
|
|
208
|
-
// render the sunburst of the dataset's default rings when the dataset opts in. like the geomap,
|
|
209
|
-
// its module is dynamically imported so it only loads for datasets that show it; main() draws it
|
|
210
|
-
this.initSunburst = (appState) => {
|
|
211
|
-
if (!this.aboutOverrides?.showSunburst) return;
|
|
212
|
-
if (!appState.termdbConfig?.sunburst?.twLst?.length) return;
|
|
213
|
-
const s = this.aboutOverrides.showSunburst;
|
|
214
|
-
const placed = typeof s == "object" ? this.getSectionHolder(s.holderSelector, "showSunburst") : void 0;
|
|
215
|
-
const section = (placed || this.subheader.append("div")).style("padding", "10px");
|
|
216
|
-
if (typeof s == "object") this.sectionHeading(section, s.title, s.description);
|
|
217
|
-
const holder = section.append("div").style("display", "flex").style("justify-content", "center").style("margin-bottom", "32px");
|
|
218
|
-
const onOpen = () => this.launchActiveItem({ plot: { chartType: "sunburst" } }, holder.node());
|
|
219
|
-
this.sunburst = import("./aboutSunburst-VSQADTFD.js").then((_) => new _.AboutSunburst(holder, this.app, onOpen)).catch((e) => {
|
|
220
|
-
holder.append("div").attr("class", "sja_errorbar").text(e?.message || String(e));
|
|
221
|
-
console.error(e);
|
|
222
|
-
});
|
|
223
|
-
};
|
|
224
|
-
// the element of the custom html that a section's holderSelector (a css selector from the dataset)
|
|
225
|
-
// selects; undefined without one, or when it selects nothing, and then the section follows the content above
|
|
226
|
-
this.getSectionHolder = (selector, section) => {
|
|
227
|
-
if (!selector) return;
|
|
228
|
-
let el;
|
|
229
|
-
try {
|
|
230
|
-
el = this.subheader.select(selector);
|
|
231
|
-
} catch (_) {
|
|
232
|
-
}
|
|
233
|
-
if (el && !el.empty()) return el;
|
|
234
|
-
console.error(`about tab: ${section}.holderSelector '${selector}' selects no element of the html; shown at the end`);
|
|
235
|
-
};
|
|
236
|
-
// a section's centered heading and text, from the dataset; nothing if neither is given
|
|
237
|
-
this.sectionHeading = (holder, title, description) => {
|
|
238
|
-
if (!title && !description) return;
|
|
239
|
-
const div = holder.append("div").style("text-align", "center").style("margin", "24px 0 12px 0");
|
|
240
|
-
if (title)
|
|
241
|
-
div.append("div").attr("data-testid", "sjpp-about-section-title").style("font-size", "1.4em").style("font-weight", "600").style("color", "#243b53").html(title);
|
|
242
|
-
if (description)
|
|
243
|
-
div.append("div").style("margin-top", "6px").style("font-size", ".95em").style("color", "#4b5563").html(description);
|
|
244
|
-
};
|
|
245
|
-
this.initActiveItems = () => {
|
|
246
|
-
if (!this.aboutOverrides?.activeItems) return;
|
|
247
|
-
const placed = this.getSectionHolder(this.aboutOverrides.activeItems.holderSelector, "activeItems");
|
|
248
|
-
const holder = placed || this.subheader;
|
|
249
|
-
const { title, description } = this.aboutOverrides.activeItems;
|
|
250
|
-
this.sectionHeading(holder, title, description);
|
|
251
|
-
if (this.aboutOverrides.activeItems.layout == "cards") {
|
|
252
|
-
this.initActiveItemCards(holder);
|
|
253
|
-
return;
|
|
254
|
-
}
|
|
255
|
-
const div = holder.append("div").attr("data-testid", "sjpp-custom-about-activeItems").style("padding", placed ? "0px 0px 10px 0px" : "0px 0px 10px 20px");
|
|
256
|
-
for (const item of this.aboutOverrides.activeItems.items) {
|
|
257
|
-
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);
|
|
258
|
-
this.makeActivatable(btn, () => this.launchActiveItem(item, btn.node()));
|
|
259
|
-
}
|
|
260
|
-
};
|
|
261
|
-
// render activeItems as large square tiles (homepage style) that lift on hover
|
|
262
|
-
this.initActiveItemCards = (parent) => {
|
|
263
|
-
const items = this.aboutOverrides.activeItems.items;
|
|
264
|
-
const holder = parent.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");
|
|
265
|
-
for (const item of items) {
|
|
266
|
-
const card = holder.append("div").attr("class", "sjpp-about-card").attr("data-testid", "sjpp-custom-active-item-card");
|
|
267
|
-
if (item.icon) card.append("div").attr("class", "sjpp-about-card-icon").html(item.icon);
|
|
268
|
-
card.append("div").attr("class", "sjpp-about-card-title").html(item.title);
|
|
269
|
-
card.append("div").attr("class", "sjpp-about-card-subtitle").text(item.subtitle || "");
|
|
270
|
-
this.makeActivatable(card, () => this.launchActiveItem(item, card.node()));
|
|
271
|
-
}
|
|
272
|
-
};
|
|
273
|
-
// make a non-native clickable element (a styled <div>) operable like a button:
|
|
274
|
-
this.makeActivatable = (sel, onActivate) => {
|
|
275
|
-
sel.attr("role", "button").attr("tabindex", 0).on("click", () => onActivate()).on("keydown", (event) => {
|
|
276
|
-
if (event.key == "Enter" || event.key == " ") {
|
|
277
|
-
event.preventDefault();
|
|
278
|
-
onActivate();
|
|
279
|
-
}
|
|
280
|
-
});
|
|
281
|
-
};
|
|
282
|
-
// launch behavior shared by button and card layouts
|
|
283
|
-
this.launchActiveItem = async (item, anchorEl) => {
|
|
284
|
-
if (item.menu) {
|
|
285
|
-
this.openItemMenu(item.menu, anchorEl);
|
|
286
|
-
return;
|
|
287
|
-
}
|
|
288
|
-
if (item.openChartMenu) {
|
|
289
|
-
await this.openChartMenu(item.openChartMenu, anchorEl);
|
|
290
|
-
return;
|
|
291
|
-
}
|
|
292
|
-
if (!item.plot) {
|
|
293
|
-
console.error("about activeItem has neither .plot nor .openChartMenu", item);
|
|
294
|
-
return;
|
|
295
|
-
}
|
|
296
|
-
await this.app.dispatch({
|
|
297
|
-
type: "tab_set",
|
|
298
|
-
activeTab: 1
|
|
299
|
-
});
|
|
300
|
-
this.app.dispatch({
|
|
301
|
-
type: "plot_create",
|
|
302
|
-
id: getId(),
|
|
303
|
-
config: structuredClone(item.plot)
|
|
304
|
-
});
|
|
305
|
-
};
|
|
306
|
-
// menu of launch items in labelled groups, anchored to the tile. An entry with its own
|
|
307
|
-
// chart menu (e.g. a gene search) replaces this menu's content in place; other entries
|
|
308
|
-
// hide the menu and launch their plot.
|
|
309
|
-
this.openItemMenu = (groups, anchorEl) => {
|
|
310
|
-
const menu = this.chartMenu || (this.chartMenu = new Menu({ padding: "0px" }));
|
|
311
|
-
menu.clear();
|
|
312
|
-
const holder = menu.d.append("div").style("padding", "6px 0").style("min-width", "260px");
|
|
313
|
-
for (const group of groups) {
|
|
314
|
-
if (group.label) {
|
|
315
|
-
holder.append("div").style("padding", "6px 14px 2px").style("font-size", "0.75em").style("font-weight", "bold").style("letter-spacing", "0.05em").style("text-transform", "uppercase").style("color", "#777").text(group.label);
|
|
316
|
-
}
|
|
317
|
-
for (const entry of group.items || []) {
|
|
318
|
-
const row = holder.append("div").attr("class", "sja_menuoption").style("padding", "6px 14px");
|
|
319
|
-
row.append("div").style("font-weight", "600").html(entry.title);
|
|
320
|
-
if (entry.subtitle) row.append("div").style("font-size", "0.8em").style("color", "#666").text(entry.subtitle);
|
|
321
|
-
this.makeActivatable(row, async () => {
|
|
322
|
-
if (!entry.openChartMenu && !entry.menu) menu.hide();
|
|
323
|
-
await this.launchActiveItem(entry, anchorEl);
|
|
324
|
-
});
|
|
325
|
-
}
|
|
326
|
-
}
|
|
327
|
-
menu.showunder(anchorEl);
|
|
328
|
-
};
|
|
329
|
-
// open a chart-specific launch menu (e.g. gene search for proteinView) anchored to the tile.
|
|
330
|
-
// the chart module is dynamically imported so its code only loads when the tile is clicked.
|
|
331
|
-
this.openChartMenu = async (chartType, anchorEl) => {
|
|
332
|
-
const menu = this.chartMenu || (this.chartMenu = new Menu({ padding: "0px" }));
|
|
333
|
-
menu.clear();
|
|
334
|
-
const shimApp = {
|
|
335
|
-
opts: this.app.opts,
|
|
336
|
-
dispatch: async (action) => {
|
|
337
|
-
if (action.type == "plot_create") await this.app.dispatch({ type: "tab_set", activeTab: 1 });
|
|
338
|
-
return this.app.dispatch(action);
|
|
339
|
-
}
|
|
340
|
-
};
|
|
341
|
-
const chartsInstanceShim = { app: shimApp, dom: { tip: menu } };
|
|
342
|
-
const _ = await importPlot(chartType);
|
|
343
|
-
if (typeof _.makeChartBtnMenu != "function")
|
|
344
|
-
throw `about activeItem openChartMenu: chart '${chartType}' has no makeChartBtnMenu`;
|
|
345
|
-
_.makeChartBtnMenu(menu.d.append("div"), chartsInstanceShim, chartType);
|
|
346
|
-
menu.showunder(anchorEl);
|
|
347
|
-
};
|
|
348
|
-
this.initDisclaimer = () => {
|
|
349
|
-
const d = this.aboutOverrides?.disclaimer;
|
|
350
|
-
if (!d) return;
|
|
351
|
-
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");
|
|
352
|
-
div.append("div").style("margin-bottom", "8px").style("font-weight", "bold").text("DISCLAIMER");
|
|
353
|
-
div.append("div").text(d.text);
|
|
354
|
-
};
|
|
355
|
-
this.showServerInfo = () => {
|
|
356
|
-
const state = this.app.getState();
|
|
357
|
-
const about = state.termdbConfig.massNav?.tabs?.about;
|
|
358
|
-
if (!about && !this.app.opts.pkgver && !this.app.opts.launchDate) return;
|
|
359
|
-
const dataRelease = about?.dataRelease;
|
|
360
|
-
const additionalInfo = about?.additionalInfo;
|
|
361
|
-
const div = this.subheader.append("div").attr("data-testid", "sjpp-about-server-info").style("margin", "10px").style("font-size", ".8em");
|
|
362
|
-
const htmlArr = [];
|
|
363
|
-
if (dataRelease) {
|
|
364
|
-
htmlArr.push(`Data Release: <a href=${dataRelease.link} target=_blank>${dataRelease.version}</a>`);
|
|
365
|
-
}
|
|
366
|
-
if (this.app.opts.pkgver) {
|
|
367
|
-
htmlArr.push(
|
|
368
|
-
`Software Release: <a href=https://github.com/stjude/proteinpaint/pkgs/container/ppfull target=_blank>${this.app.opts.pkgver}</a>`
|
|
369
|
-
);
|
|
370
|
-
}
|
|
371
|
-
if (this.app.opts.launchDate) {
|
|
372
|
-
htmlArr.push(`Server Launched: ${this.app.opts.launchDate}`);
|
|
373
|
-
}
|
|
374
|
-
if (additionalInfo) {
|
|
375
|
-
htmlArr.push(additionalInfo);
|
|
376
|
-
}
|
|
377
|
-
div.append("div").html(htmlArr.join("; "));
|
|
378
|
-
};
|
|
379
|
-
this.opts = opts;
|
|
380
|
-
this.type = _MassAbout.type;
|
|
381
|
-
this.app = opts.app;
|
|
382
|
-
this.subheader = opts.subheader;
|
|
383
|
-
this.instanceNum = opts.instanceNum;
|
|
384
|
-
this.aboutOverrides = opts.aboutOverrides;
|
|
385
|
-
this.selectCohort = opts.selectCohort;
|
|
386
|
-
this.dom = {
|
|
387
|
-
cohortDescription: this.subheader.append("div").attr("data-testid", "sjpp-about-cohort-desc").style("margin-left", "10px")
|
|
388
|
-
};
|
|
389
|
-
if (opts?.selectCohort?.title) {
|
|
390
|
-
this.dom.cohortTitle = opts.subheader.append("h2").attr("data-testid", "sjpp-about-cohort-title").style("margin-left", "10px").text(opts.selectCohort.title);
|
|
391
|
-
}
|
|
392
|
-
if (opts.selectCohort?.prompt) {
|
|
393
|
-
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);
|
|
394
|
-
}
|
|
395
|
-
if (opts.selectCohort) {
|
|
396
|
-
this.dom.cohortOpts = this.subheader.append("div").style("margin-bottom", "30px").style("margin-left", "10px");
|
|
397
|
-
}
|
|
398
|
-
}
|
|
399
|
-
static {
|
|
400
|
-
this.type = "about";
|
|
401
|
-
}
|
|
402
|
-
/* render all contents into this.subheader
|
|
403
|
-
do it through init() means that contents are rendered just once on launching mass ui and won't be rerendered or updated
|
|
404
|
-
since there's no reason to update about tab contents while user is interacting with mass ui
|
|
405
|
-
*/
|
|
406
|
-
init(appState) {
|
|
407
|
-
this.initCohort(appState);
|
|
408
|
-
this.initCustomHtml();
|
|
409
|
-
this.initGeomap(appState);
|
|
410
|
-
this.initSunburst(appState);
|
|
411
|
-
this.initActiveItems();
|
|
412
|
-
this.initDisclaimer();
|
|
413
|
-
this.showServerInfo();
|
|
414
|
-
}
|
|
415
|
-
async main() {
|
|
416
|
-
if (this.state.nav.activeTab !== 0) return;
|
|
417
|
-
await this.renderCohortsTable();
|
|
418
|
-
if (this.sunburst) await (await this.sunburst)?.update(this.state);
|
|
419
|
-
if (this.opts.selectCohort) {
|
|
420
|
-
if (this.opts.selectCohort.description) {
|
|
421
|
-
this.dom.cohortDescription.html(this.opts.selectCohort.description);
|
|
422
|
-
} else if (this.opts.selectCohort.descriptionByCohort) {
|
|
423
|
-
this.dom.cohortDescription.html(
|
|
424
|
-
this.opts.selectCohort.descriptionByCohort[this.state.termdbConfig.selectCohort.values[this.state.activeCohort].keys.join(",")]
|
|
425
|
-
);
|
|
426
|
-
}
|
|
427
|
-
}
|
|
428
|
-
}
|
|
429
|
-
destroy() {
|
|
430
|
-
void this.sunburst?.then((sunburst) => sunburst?.chart.destroy());
|
|
431
|
-
}
|
|
432
|
-
};
|
|
433
|
-
var aboutInit = getCompInit(MassAbout);
|
|
434
|
-
function joinByComma(arr) {
|
|
435
|
-
if (!arr.length) return "";
|
|
436
|
-
else if (arr.length == 1) return arr[0];
|
|
437
|
-
else if (arr.length == 2) return arr.join(" and ");
|
|
438
|
-
else return `${arr.slice(0, -1).join(", ")}, and ${arr.slice(-1)}`;
|
|
439
|
-
}
|
|
440
|
-
|
|
441
|
-
// mass/search.ts
|
|
442
|
-
var MIN_PROMPT_LENGTH_FOR_GENE_SEARCH = 1;
|
|
443
|
-
var MIN_PROMPT_LENGTH_FOR_OTHER_SEARCH = 3;
|
|
444
|
-
var MAX_PROMPT_LENGTH_FOR_OMNISEARCH = 20;
|
|
445
|
-
function makeMethylationRegionTerm(opts, vocabApi) {
|
|
446
|
-
const { chr, start, stop } = opts;
|
|
447
|
-
if (!chr || !Number.isInteger(start) || !Number.isInteger(stop)) throw new Error("invalid coordinate");
|
|
448
|
-
return {
|
|
449
|
-
chr,
|
|
450
|
-
start,
|
|
451
|
-
stop,
|
|
452
|
-
type: DNA_METHYLATION,
|
|
453
|
-
unit: getDNAMethUnit("region", vocabApi),
|
|
454
|
-
genomicFeatureType: "region"
|
|
455
|
-
};
|
|
456
|
-
}
|
|
457
|
-
async function embedMethylationRegionPicker(opts) {
|
|
458
|
-
const { holder, genomeObj, vocabApi, chr, start, stop, callback } = opts;
|
|
459
|
-
if (!chr || !Number.isInteger(start) || !Number.isInteger(stop)) throw new Error("unable to retrieve gene coordinate");
|
|
460
|
-
holder.selectAll("*").remove();
|
|
461
|
-
holder.style("display", "block");
|
|
462
|
-
holder.append("div").style("opacity", 0.6).text("Navigate genome browser to desired region");
|
|
463
|
-
const arg = {
|
|
464
|
-
holder,
|
|
465
|
-
genome: genomeObj,
|
|
466
|
-
// genome obj
|
|
467
|
-
chr,
|
|
468
|
-
start,
|
|
469
|
-
stop,
|
|
470
|
-
tklst: [],
|
|
471
|
-
nobox: true,
|
|
472
|
-
width: 500,
|
|
473
|
-
hidegenelegend: true,
|
|
474
|
-
debugmode: opts.debug
|
|
475
|
-
};
|
|
476
|
-
first_genetrack_tolist(genomeObj, arg.tklst);
|
|
477
|
-
const _ = await import("./block-VMVJH77F.js");
|
|
478
|
-
const blockInstance = new _.Block(arg);
|
|
479
|
-
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 () => {
|
|
480
|
-
const { chr: chr2, start: start2, stop: stop2 } = blockInstance.rglst[0];
|
|
481
|
-
await callback(makeMethylationRegionTerm({ chr: chr2, start: start2, stop: stop2 }, vocabApi));
|
|
482
|
-
});
|
|
483
|
-
return blockInstance;
|
|
484
|
-
}
|
|
485
|
-
function parseCoordCandidates(prompt2) {
|
|
486
|
-
const m = /^\s*(\w+)\s*:\s*([\d,]+)\s*-\s*([\d,]+)\s*$/.exec(prompt2);
|
|
487
|
-
if (!m) return null;
|
|
488
|
-
const [, chrToken, start, stop] = m;
|
|
489
|
-
const chrCandidates = /^chr/i.test(chrToken) ? [chrToken, chrToken.replace(/^chr/i, "")] : [chrToken, "chr" + chrToken];
|
|
490
|
-
return chrCandidates.map((chr) => `${chr}:${start}-${stop}`);
|
|
491
|
-
}
|
|
492
|
-
async function handleOmnisearchKeyup(self, event) {
|
|
493
|
-
if (keyupEnter(event)) return;
|
|
494
|
-
const prompt2 = event.target.value.trim();
|
|
495
|
-
if (!prompt2) {
|
|
496
|
-
self.dom.noMatchShown = false;
|
|
497
|
-
self.clear({ hide: true });
|
|
498
|
-
return;
|
|
499
|
-
}
|
|
500
|
-
const coordCandidates = parseCoordCandidates(prompt2);
|
|
501
|
-
if (coordCandidates || MIN_PROMPT_LENGTH_FOR_GENE_SEARCH <= prompt2.length && prompt2.length <= MAX_PROMPT_LENGTH_FOR_OMNISEARCH) {
|
|
502
|
-
try {
|
|
503
|
-
await doSearch(self, prompt2, coordCandidates);
|
|
504
|
-
} catch (e) {
|
|
505
|
-
if (e.stack) console.log(e.stack);
|
|
506
|
-
sayerror(self.dom.resultDiv, "Error: " + (e.message || e));
|
|
507
|
-
}
|
|
508
|
-
} else {
|
|
509
|
-
self.dom.noMatchShown = false;
|
|
510
|
-
self.clear({ hide: true });
|
|
511
|
-
}
|
|
512
|
-
}
|
|
513
|
-
async function fetchOmnisearch(opts) {
|
|
514
|
-
const data = await dofetch3("termdb/chat", {
|
|
515
|
-
body: {
|
|
516
|
-
genome: opts.genome,
|
|
517
|
-
dslabel: opts.dslabel,
|
|
518
|
-
omnisearch: true,
|
|
519
|
-
prompt: opts.prompt,
|
|
520
|
-
cohortStr: opts.cohortStr,
|
|
521
|
-
usecase: opts.usecase,
|
|
522
|
-
treeFilter: opts.treeFilter,
|
|
523
|
-
coordCandidates: opts.coordCandidates || void 0,
|
|
524
|
-
// gene search runs from 1 char; dictionary + sample search only once the prompt reaches the
|
|
525
|
-
// longer cutoff, so the server skips them (and their all-samples scan) for short prompts
|
|
526
|
-
includeDictAndSampleSearch: opts.prompt.trim().length >= MIN_PROMPT_LENGTH_FOR_OTHER_SEARCH
|
|
527
|
-
}
|
|
528
|
-
});
|
|
529
|
-
if (data.error) throw data.error;
|
|
530
|
-
return data;
|
|
531
|
-
}
|
|
532
|
-
function renderOmnisearchResults(self, data) {
|
|
533
|
-
const coord = data.coord || null;
|
|
534
|
-
const dictItems = Array.isArray(data.dictionaryTerms) ? data.dictionaryTerms : [];
|
|
535
|
-
const genes = Array.isArray(data.genes) ? data.genes : [];
|
|
536
|
-
const dictNames = new Set(dictItems.map((t) => t.name?.toUpperCase()));
|
|
537
|
-
const geneMap = /* @__PURE__ */ new Map();
|
|
538
|
-
for (const g of genes) {
|
|
539
|
-
const gene = g?.gene;
|
|
540
|
-
if (!gene || dictNames.has(gene.toUpperCase())) continue;
|
|
541
|
-
const dt = g.dataTypes || {};
|
|
542
|
-
const geneVariantTypes = [];
|
|
543
|
-
if (dt.snvindel) geneVariantTypes.push({ label: "SNV/indel", testid: "snvindel", dtCandidates: [dtsnvindel] });
|
|
544
|
-
if (dt.cnv) geneVariantTypes.push({ label: "CNV", testid: "cnv", dtCandidates: [dtcnv] });
|
|
545
|
-
if (dt.svfusion)
|
|
546
|
-
geneVariantTypes.push({ label: "SV/fusion", testid: "svfusion", dtCandidates: [dtsv, dtfusionrna] });
|
|
547
|
-
const entry = { name: gene, gene, isGene: true };
|
|
548
|
-
if (dt.geneExpression) entry.isGeneExpression = true;
|
|
549
|
-
if (geneVariantTypes.length) {
|
|
550
|
-
entry.isGeneVariant = true;
|
|
551
|
-
entry.geneVariantTypes = geneVariantTypes;
|
|
552
|
-
}
|
|
553
|
-
if (dt.genomeBrowser) {
|
|
554
|
-
entry.isGenomeBrowser = true;
|
|
555
|
-
entry.coord = g.coord;
|
|
556
|
-
}
|
|
557
|
-
if (dt.dnaMethylation) {
|
|
558
|
-
entry.isMethylation = true;
|
|
559
|
-
entry.coord = g.coord;
|
|
560
|
-
}
|
|
561
|
-
if (entry.isGeneExpression || entry.isGeneVariant || entry.isGenomeBrowser || entry.isMethylation) {
|
|
562
|
-
geneMap.set(gene.toUpperCase(), entry);
|
|
563
|
-
}
|
|
564
|
-
}
|
|
565
|
-
const geneItems = [...geneMap.values()];
|
|
566
|
-
const sampleItems = (Array.isArray(data.samples) ? data.samples : []).filter((s) => s?.name).map((s) => ({
|
|
567
|
-
isSample: true,
|
|
568
|
-
name: s.name,
|
|
569
|
-
sampleId: s.id,
|
|
570
|
-
singleCell: s.singleCell,
|
|
571
|
-
facetTracks: s.assays,
|
|
572
|
-
wsimages: s.wsimages
|
|
573
|
-
}));
|
|
574
|
-
const coordItems = coord ? [{ isCoord: true, name: `${coord.chr}:${coord.start.toLocaleString()}-${coord.stop.toLocaleString()}`, coord }] : [];
|
|
575
|
-
const totals = data.totals || {};
|
|
576
|
-
const lst = [];
|
|
577
|
-
for (const group of [
|
|
578
|
-
{
|
|
579
|
-
key: "dictionary",
|
|
580
|
-
heading: "Dictionary",
|
|
581
|
-
noun: "dictionary variable",
|
|
582
|
-
items: dictItems,
|
|
583
|
-
returned: dictItems.length,
|
|
584
|
-
total: totals.dictionaryTerms
|
|
585
|
-
},
|
|
586
|
-
{
|
|
587
|
-
key: "genes",
|
|
588
|
-
heading: "Genes",
|
|
589
|
-
noun: "gene",
|
|
590
|
-
items: geneItems,
|
|
591
|
-
returned: Array.isArray(data.genes) ? data.genes.length : 0,
|
|
592
|
-
total: totals.genes
|
|
593
|
-
},
|
|
594
|
-
{
|
|
595
|
-
key: "samples",
|
|
596
|
-
heading: "Samples",
|
|
597
|
-
noun: "sample",
|
|
598
|
-
items: sampleItems,
|
|
599
|
-
returned: sampleItems.length,
|
|
600
|
-
total: totals.samples
|
|
601
|
-
},
|
|
602
|
-
{
|
|
603
|
-
key: "coord",
|
|
604
|
-
heading: "Genomic region",
|
|
605
|
-
noun: "",
|
|
606
|
-
items: coordItems,
|
|
607
|
-
returned: coordItems.length,
|
|
608
|
-
total: void 0
|
|
609
|
-
}
|
|
610
|
-
]) {
|
|
611
|
-
if (!group.items.length) continue;
|
|
612
|
-
lst.push({ isHeading: true, name: group.heading });
|
|
613
|
-
for (const item of group.items) lst.push(item);
|
|
614
|
-
if (typeof group.total == "number" && group.total > group.returned) {
|
|
615
|
-
lst.push({
|
|
616
|
-
isNote: true,
|
|
617
|
-
testid: `sjpp-mass-chat-note-${group.key}`,
|
|
618
|
-
name: `Displaying ${group.items.length} out of a total of ${group.total} ${group.noun} matches`
|
|
619
|
-
});
|
|
620
|
-
}
|
|
621
|
-
}
|
|
622
|
-
if (!lst.length) {
|
|
623
|
-
if (!self.dom.noMatchShown) {
|
|
624
|
-
self.dom.noMatchShown = true;
|
|
625
|
-
self.noResult();
|
|
626
|
-
}
|
|
627
|
-
} else {
|
|
628
|
-
self.dom.noMatchShown = false;
|
|
629
|
-
self.showTerms({ lst });
|
|
630
|
-
}
|
|
631
|
-
}
|
|
632
|
-
async function doSearch(self, prompt2, coordCandidates) {
|
|
633
|
-
if (!prompt2) {
|
|
634
|
-
self.clear({ hide: true });
|
|
635
|
-
return;
|
|
636
|
-
}
|
|
637
|
-
const seq = self.omnisearchSeq = (self.omnisearchSeq || 0) + 1;
|
|
638
|
-
const data = await fetchOmnisearch({
|
|
639
|
-
genome: self.app.vocabApi.vocab.genome,
|
|
640
|
-
dslabel: self.app.vocabApi.vocab.dslabel,
|
|
641
|
-
prompt: prompt2,
|
|
642
|
-
cohortStr: self.getState(self.app.getState()).cohortStr,
|
|
643
|
-
usecase: self.opts.usecase,
|
|
644
|
-
treeFilter: self.app.vocabApi.state?.treeFilter,
|
|
645
|
-
coordCandidates
|
|
646
|
-
});
|
|
647
|
-
if (seq !== self.omnisearchSeq) return;
|
|
648
|
-
renderOmnisearchResults(self, data);
|
|
649
|
-
}
|
|
650
|
-
function setSearchRenderers(self) {
|
|
651
|
-
let text = "No match";
|
|
652
|
-
if (self.isChat) {
|
|
653
|
-
text = "No match. Using the chatbot...";
|
|
654
|
-
}
|
|
655
|
-
self.noResult = () => {
|
|
656
|
-
self.clear();
|
|
657
|
-
self.dom.resultDiv.append("div").text(text).style("padding", "3px 3px 3px 0px").style("opacity", 0.5);
|
|
658
|
-
clearTimeout(self.noResultTimer);
|
|
659
|
-
self.noResultTimer = setTimeout(() => {
|
|
660
|
-
self.clear({ hide: true });
|
|
661
|
-
}, 1500);
|
|
662
|
-
};
|
|
663
|
-
self.showTerms = (data) => {
|
|
664
|
-
clearTimeout(self.noResultTimer);
|
|
665
|
-
if (self.opts.disable_terms)
|
|
666
|
-
data.lst.forEach((t) => {
|
|
667
|
-
if (t.disabled) self.opts.disable_terms.push(t);
|
|
668
|
-
});
|
|
669
|
-
self.clear({ hide: !data.lst.length });
|
|
670
|
-
if (data.lst.length) {
|
|
671
|
-
self.dom.resultDiv.append("table").selectAll().data(data.lst).enter().append("tr").each(self.showTerm);
|
|
672
|
-
}
|
|
673
|
-
};
|
|
674
|
-
self.launchPlot = async (config) => {
|
|
675
|
-
if (self.state?.nav?.activeTab == 0) {
|
|
676
|
-
await self.app.dispatch({ type: "tab_set", activeTab: 1 });
|
|
677
|
-
}
|
|
678
|
-
self.app.dispatch({ type: "plot_create", config });
|
|
679
|
-
self.dom.inputNode.value = "";
|
|
680
|
-
self.clear({ hide: true });
|
|
681
|
-
};
|
|
682
|
-
self.launchGeneVariantPlot = async (gene, dtCandidates) => {
|
|
683
|
-
let tw;
|
|
684
|
-
let lastErr;
|
|
685
|
-
for (const dt of dtCandidates) {
|
|
686
|
-
const candidate = {
|
|
687
|
-
term: {
|
|
688
|
-
id: gene,
|
|
689
|
-
name: gene,
|
|
690
|
-
genes: [{ kind: "gene", id: gene, gene, name: gene, type: "geneVariant" }],
|
|
691
|
-
type: "geneVariant"
|
|
692
|
-
},
|
|
693
|
-
q: { type: "predefined-groupset", dtLst: [dt] }
|
|
694
|
-
};
|
|
695
|
-
try {
|
|
696
|
-
await fillTermWrapper(candidate, self.app.vocabApi);
|
|
697
|
-
tw = candidate;
|
|
698
|
-
break;
|
|
699
|
-
} catch (e) {
|
|
700
|
-
lastErr = e;
|
|
701
|
-
}
|
|
702
|
-
}
|
|
703
|
-
if (!tw) throw lastErr;
|
|
704
|
-
await self.launchPlot({ chartType: "summary", term: tw });
|
|
705
|
-
};
|
|
706
|
-
self.launchGenomeBrowserView = async (mode, opts) => {
|
|
707
|
-
if (mode == "protein") {
|
|
708
|
-
if (!opts.gene) throw new Error("gene symbol required for protein view");
|
|
709
|
-
await self.launchPlot({
|
|
710
|
-
chartType: "genomeBrowser",
|
|
711
|
-
geneSearchResult: { geneSymbol: opts.gene },
|
|
712
|
-
blockIsProteinMode: true
|
|
713
|
-
});
|
|
714
|
-
return;
|
|
715
|
-
}
|
|
716
|
-
if (!opts.coord) throw new Error("coordinate required for genomic view");
|
|
717
|
-
await self.launchPlot({
|
|
718
|
-
chartType: "genomeBrowser",
|
|
719
|
-
geneSearchResult: { chr: opts.coord.chr, start: opts.coord.start, stop: opts.coord.stop },
|
|
720
|
-
blockIsProteinMode: false
|
|
721
|
-
});
|
|
722
|
-
};
|
|
723
|
-
self.launchGenomeBrowser = async (gene, coord) => {
|
|
724
|
-
const gbRestrictMode = self.app.getState().termdbConfig?.queries?.gbRestrictMode;
|
|
725
|
-
if (gbRestrictMode == "protein") {
|
|
726
|
-
await self.launchGenomeBrowserView("protein", { gene });
|
|
727
|
-
return;
|
|
728
|
-
}
|
|
729
|
-
if (gbRestrictMode == "genomic") {
|
|
730
|
-
if (!coord) throw new Error(`Unable to resolve genomic coordinates for gene "${gene}".`);
|
|
731
|
-
await self.launchGenomeBrowserView("genomic", { coord });
|
|
732
|
-
return;
|
|
733
|
-
}
|
|
734
|
-
self.dom.tip.clear();
|
|
735
|
-
self.dom.tip.showunder(self.dom.inputNode);
|
|
736
|
-
const holder = self.dom.resultDiv.append("div").style("margin", "10px");
|
|
737
|
-
holder.append("div").style("margin-bottom", "5px").text(gene);
|
|
738
|
-
const btndiv = holder.append("div");
|
|
739
|
-
const addViewBtn = (label, testid, mode) => {
|
|
740
|
-
btndiv.append("button").attr("data-testid", testid).style("margin-right", "10px").text(label).on(
|
|
741
|
-
"click",
|
|
742
|
-
() => void self.launchGenomeBrowserView(mode, { gene, coord }).catch((e) => sayerror(self.dom.resultDiv, "Error: " + (e?.message || e)))
|
|
743
|
-
);
|
|
744
|
-
};
|
|
745
|
-
addViewBtn(`Protein view of ${gene}`, `sjpp-mass-chat-gb-protein-${gene}`, "protein");
|
|
746
|
-
if (coord) addViewBtn(`Genomic view of ${gene}`, `sjpp-mass-chat-gb-genomic-${gene}`, "genomic");
|
|
747
|
-
};
|
|
748
|
-
self.launchMethylationPlot = async (gene, coord) => {
|
|
749
|
-
if (!coord) throw new Error(`Could not resolve coordinates for gene "${gene}"`);
|
|
750
|
-
self.dom.tip.clear();
|
|
751
|
-
self.dom.tip.showunder(self.dom.inputNode);
|
|
752
|
-
const holder = self.dom.resultDiv.append("div").style("margin", "10px");
|
|
753
|
-
holder.append("div").style("margin-bottom", "5px").text(gene);
|
|
754
|
-
await embedMethylationRegionPicker({
|
|
755
|
-
holder: holder.append("div"),
|
|
756
|
-
genomeObj: self.app.opts.genome,
|
|
757
|
-
vocabApi: self.app.vocabApi,
|
|
758
|
-
chr: coord.chr,
|
|
759
|
-
start: coord.start,
|
|
760
|
-
stop: coord.stop,
|
|
761
|
-
callback: async (term) => {
|
|
762
|
-
await self.launchPlot({ chartType: "summary", term: { term } });
|
|
763
|
-
}
|
|
764
|
-
});
|
|
765
|
-
};
|
|
766
|
-
self.launchSurvivalWithCovariate = async (covariateField, covariateTw) => {
|
|
767
|
-
self.dom.tip.clear();
|
|
768
|
-
self.dom.tip.showunder(self.dom.inputNode);
|
|
769
|
-
const action = { type: "plot_create", config: { chartType: "survival", [covariateField]: covariateTw } };
|
|
770
|
-
const termdb = await import("./app-FNNCH37H.js");
|
|
771
|
-
termdb.appInit({
|
|
772
|
-
vocabApi: self.app.vocabApi,
|
|
773
|
-
holder: self.dom.tip.d.append("div"),
|
|
774
|
-
state: { nav: { header_mode: "search_only" }, tree: { usecase: { target: "survival", detail: "term" } } },
|
|
775
|
-
tree: {
|
|
776
|
-
click_term: (term) => {
|
|
777
|
-
action.config.term = term.term ? term : { term };
|
|
778
|
-
self.dom.tip.hide();
|
|
779
|
-
self.app.dispatch(action);
|
|
780
|
-
}
|
|
781
|
-
}
|
|
782
|
-
});
|
|
783
|
-
};
|
|
784
|
-
self.renderGeneCategories = (holder, item) => {
|
|
785
|
-
const hasSurvival = self.app.vocabApi.termdbConfig?.allowedTermTypes?.includes("survival");
|
|
786
|
-
const addRow = (label) => {
|
|
787
|
-
const row = holder.append("div").style("margin", "4px 0");
|
|
788
|
-
row.append("span").style("font-weight", "bold").style("margin-right", "8px").text(label + ":");
|
|
789
|
-
return row;
|
|
790
|
-
};
|
|
791
|
-
const addBtn = (row, label, testid, onClick) => {
|
|
792
|
-
row.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))));
|
|
793
|
-
};
|
|
794
|
-
if (item.isGeneExpression) {
|
|
795
|
-
const row = addRow("Gene Expression");
|
|
796
|
-
addBtn(row, "Summary", `sjpp-mass-chat-gene-exp-${item.gene}`, async () => {
|
|
797
|
-
await self.launchPlot({
|
|
798
|
-
chartType: "summary",
|
|
799
|
-
term: { term: { gene: item.gene, name: item.name, type: "geneExpression" } }
|
|
800
|
-
});
|
|
801
|
-
});
|
|
802
|
-
if (hasSurvival) {
|
|
803
|
-
addBtn(row, "Survival", `sjpp-mass-chat-gene-exp-survival-${item.gene}`, async () => {
|
|
804
|
-
await self.launchSurvivalWithCovariate("term2", {
|
|
805
|
-
term: { gene: item.gene, name: item.name, type: "geneExpression" }
|
|
806
|
-
});
|
|
807
|
-
});
|
|
808
|
-
}
|
|
809
|
-
}
|
|
810
|
-
if (item.isGeneVariant) {
|
|
811
|
-
const label = (item.geneVariantTypes || []).map((vt) => vt.label).join("/");
|
|
812
|
-
const allDtCandidates = (item.geneVariantTypes || []).flatMap((vt) => vt.dtCandidates);
|
|
813
|
-
const row = addRow(label);
|
|
814
|
-
addBtn(row, "Summary", `sjpp-mass-chat-gene-variant-${item.gene}`, async () => {
|
|
815
|
-
await self.launchGeneVariantPlot(item.gene, allDtCandidates);
|
|
816
|
-
});
|
|
817
|
-
addBtn(row, "Protein view", `sjpp-mass-chat-gene-protein-${item.gene}`, async () => {
|
|
818
|
-
await self.launchGenomeBrowserView("protein", { gene: item.gene });
|
|
819
|
-
});
|
|
820
|
-
addBtn(row, "Genome view", `sjpp-mass-chat-gene-genomic-${item.gene}`, async () => {
|
|
821
|
-
await self.launchGenomeBrowserView("genomic", { coord: item.coord });
|
|
822
|
-
});
|
|
823
|
-
}
|
|
824
|
-
if (item.isMethylation) {
|
|
825
|
-
const row = addRow("DNA methylation");
|
|
826
|
-
addBtn(row, "Summary", `sjpp-mass-chat-gene-methylation-${item.gene}`, async () => {
|
|
827
|
-
await self.launchMethylationPlot(item.gene, item.coord);
|
|
828
|
-
});
|
|
829
|
-
}
|
|
830
|
-
};
|
|
831
|
-
self.showTerm = function(item) {
|
|
832
|
-
const tr = select_default(this);
|
|
833
|
-
if (item.isHeading) {
|
|
834
|
-
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);
|
|
835
|
-
return;
|
|
836
|
-
}
|
|
837
|
-
if (item.isNote) {
|
|
838
|
-
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);
|
|
839
|
-
return;
|
|
840
|
-
}
|
|
841
|
-
if (item.isCoord) {
|
|
842
|
-
tr.append("td").text(item.name).style("padding", "5px 10px");
|
|
843
|
-
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(
|
|
844
|
-
"click",
|
|
845
|
-
() => void self.launchGenomeBrowserView("genomic", { coord: item.coord }).catch((e) => sayerror(self.dom.resultDiv, "Error: " + (e?.message || e)))
|
|
846
|
-
);
|
|
847
|
-
return;
|
|
848
|
-
}
|
|
849
|
-
if (item.isSample) {
|
|
850
|
-
tr.append("td").text(item.name).style("padding", "5px 10px");
|
|
851
|
-
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(
|
|
852
|
-
"click",
|
|
853
|
-
() => void self.launchPlot({
|
|
854
|
-
chartType: "sampleView",
|
|
855
|
-
sample: { sampleId: item.sampleId, sampleName: item.name }
|
|
856
|
-
}).catch((e) => sayerror(self.dom.resultDiv, "Error: " + (e?.message || e)))
|
|
857
|
-
);
|
|
858
|
-
if (item.singleCell) {
|
|
859
|
-
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(
|
|
860
|
-
"click",
|
|
861
|
-
() => void self.launchPlot({
|
|
862
|
-
chartType: "sc",
|
|
863
|
-
settings: { sc: { item: item.singleCell } }
|
|
864
|
-
}).catch((e) => sayerror(self.dom.resultDiv, "Error: " + (e?.message || e)))
|
|
865
|
-
);
|
|
866
|
-
}
|
|
867
|
-
if (item.wsimages) {
|
|
868
|
-
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(
|
|
869
|
-
"click",
|
|
870
|
-
() => void self.launchPlot({
|
|
871
|
-
chartType: "wsi",
|
|
872
|
-
sample: { sID: item.name },
|
|
873
|
-
imageType: "wsi"
|
|
874
|
-
}).catch((e) => sayerror(self.dom.resultDiv, "Error: " + (e?.message || e)))
|
|
875
|
-
);
|
|
876
|
-
}
|
|
877
|
-
if (item.facetTracks?.length) {
|
|
878
|
-
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(
|
|
879
|
-
"click",
|
|
880
|
-
() => void self.launchPlot({
|
|
881
|
-
chartType: "genomeBrowser",
|
|
882
|
-
hidePlotFilter: true,
|
|
883
|
-
filter: getSampleFilter(item.sampleId)
|
|
884
|
-
}).catch((e) => sayerror(self.dom.resultDiv, "Error: " + (e?.message || e)))
|
|
885
|
-
);
|
|
886
|
-
}
|
|
887
|
-
return;
|
|
888
|
-
}
|
|
889
|
-
if (item.isGene) {
|
|
890
|
-
tr.append("td").text(item.name).style("padding", "5px 10px").style("cursor", "pointer").attr("class", "sja_menuoption").attr("data-testid", `sjpp-mass-chat-gene-select-${item.gene}`).on("click", () => {
|
|
891
|
-
self.dom.inputNode.value = "";
|
|
892
|
-
self.clear({ hide: true });
|
|
893
|
-
self.addBubble({ msg: escapeHtml(item.name) + " (gene)", me: 1 });
|
|
894
|
-
const holder = self.addBubble({ msg: "" });
|
|
895
|
-
self.renderGeneCategories(holder, item);
|
|
896
|
-
});
|
|
897
|
-
return;
|
|
898
|
-
}
|
|
899
|
-
const button = tr.append("td").text(item.name);
|
|
900
|
-
if (item.type) {
|
|
901
|
-
button.style("cursor", "pointer").attr("class", "sja_menuoption").attr("data-testid", `sjpp-mass-chat-term-${item.id}`).on("click", async () => {
|
|
902
|
-
self.addBubble({ msg: escapeHtml(item.name) + " (dictionary variable)", me: 1 });
|
|
903
|
-
await self.launchPlot({
|
|
904
|
-
chartType: item.type == "survival" ? "survival" : "summary",
|
|
905
|
-
term: { term: item }
|
|
906
|
-
});
|
|
907
|
-
});
|
|
908
|
-
} else {
|
|
909
|
-
button.style("padding", "5px 10px").style("opacity", 0.5);
|
|
910
|
-
}
|
|
911
|
-
tr.append("td").text((item.__ancestorNames || []).join(" > ")).style("opacity", 0.5).style("font-size", ".7em");
|
|
912
|
-
};
|
|
913
|
-
self.clear = (opts = {}) => {
|
|
914
|
-
self.dom.tip.clear();
|
|
915
|
-
if (opts.hide) self.dom.tip.hide();
|
|
916
|
-
else self.dom.tip.showunder(self.dom.inputNode);
|
|
917
|
-
};
|
|
918
|
-
}
|
|
919
|
-
|
|
920
|
-
// mass/chat.ts
|
|
921
|
-
var MIN_PROMPT_LENGTH_FOR_CHAT = 5;
|
|
922
|
-
var MassAiChatBot = class _MassAiChatBot {
|
|
923
|
-
static {
|
|
924
|
-
this.type = "chat";
|
|
925
|
-
}
|
|
926
|
-
constructor(opts) {
|
|
927
|
-
this.type = _MassAiChatBot.type;
|
|
928
|
-
this.opts = opts;
|
|
929
|
-
this.app = opts.app;
|
|
930
|
-
this.opts.usecase = this.opts.usecase || { target: "dictionary", detail: "term" };
|
|
931
|
-
this.opts.targetType = this.opts.targetType ? this.opts.targetType : "Dictionary Variables";
|
|
932
|
-
this.isChat = this.app.getState().termdbConfig?.queries?.chat;
|
|
933
|
-
setSearchRenderers(this);
|
|
934
|
-
}
|
|
935
|
-
getState(appState) {
|
|
936
|
-
return {
|
|
937
|
-
cohortStr: appState.activeCohort == -1 || !appState.termdbConfig.selectCohort ? "" : appState.termdbConfig.selectCohort.values[appState.activeCohort].keys.slice().sort().join(","),
|
|
938
|
-
search: appState.search,
|
|
939
|
-
nav: appState.nav
|
|
940
|
-
};
|
|
941
|
-
}
|
|
942
|
-
async init() {
|
|
943
|
-
this.initDom();
|
|
944
|
-
}
|
|
945
|
-
initDom() {
|
|
946
|
-
let text = "Search an item";
|
|
947
|
-
let height = "auto";
|
|
948
|
-
if (this.isChat) {
|
|
949
|
-
text = "Ask a question";
|
|
950
|
-
height = "200px";
|
|
951
|
-
}
|
|
952
|
-
this.dom = {
|
|
953
|
-
tip: new Menu({ padding: "5px" }),
|
|
954
|
-
div: this.opts.subheader,
|
|
955
|
-
error: this.opts.subheader.append("div").attr("id", "sjpp-corrVolcano-error").style("opacity", 0.75),
|
|
956
|
-
bubbleDiv: this.opts.subheader.append("div").attr("class", "sjpp_show_scrollbar").style("margin", "5px 20px 0px 20px").style("height", height).style("max-height", "200px").style("overflow", "auto").style("scroll-behavior", "smooth")
|
|
957
|
-
};
|
|
958
|
-
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);
|
|
959
|
-
this.dom.inputNode = inputSel.node();
|
|
960
|
-
this.dom.resultDiv = this.dom.tip.d.style("border-left", "solid 1px rgb(133,182,225)").style("padding-left", "5px").attr("tabindex", -1);
|
|
961
|
-
inputSel.on("keyup.search", (event) => handleOmnisearchKeyup(this, event)).on("keyup.submit", async (event) => {
|
|
962
|
-
if (!keyupEnter(event)) return;
|
|
963
|
-
if (!this.isChat) {
|
|
964
|
-
return;
|
|
965
|
-
}
|
|
966
|
-
const prompt2 = event.target.value.trim();
|
|
967
|
-
if (!prompt2) return;
|
|
968
|
-
this.addBubble({ msg: escapeHtml(prompt2), me: 1 });
|
|
969
|
-
event.target.value = "";
|
|
970
|
-
const serverBubble = this.addBubble({ msg: "..." });
|
|
971
|
-
if (prompt2.length <= MIN_PROMPT_LENGTH_FOR_CHAT) {
|
|
972
|
-
serverBubble.text("Your prompt is too short. Enter a longer prompt.");
|
|
973
|
-
return;
|
|
974
|
-
}
|
|
975
|
-
const body = {
|
|
976
|
-
genome: this.app.vocabApi.vocab.genome,
|
|
977
|
-
dslabel: this.app.vocabApi.vocab.dslabel,
|
|
978
|
-
filter: this.app.vocabApi.state.termfilter?.filter,
|
|
979
|
-
prompt: prompt2
|
|
980
|
-
};
|
|
981
|
-
try {
|
|
982
|
-
const data = await dofetch3("termdb/chat", { body });
|
|
983
|
-
if (data.error) throw data.error;
|
|
984
|
-
const result = data;
|
|
985
|
-
if (result.type === "text") {
|
|
986
|
-
serverBubble.text(result.text);
|
|
987
|
-
} else if (result.type === "html") {
|
|
988
|
-
serverBubble.html(result.html);
|
|
989
|
-
} else if (result.type === "plot") {
|
|
990
|
-
const optionField = findPossibleOptionsField(result.plot);
|
|
991
|
-
if (optionField) {
|
|
992
|
-
this.showPossibleOptions(serverBubble, result.plot, optionField, result.msg);
|
|
993
|
-
} else {
|
|
994
|
-
this.app.dispatch({
|
|
995
|
-
type: "plot_create",
|
|
996
|
-
config: result.plot
|
|
997
|
-
});
|
|
998
|
-
serverBubble.text(`${result.msg ? result.msg + ". " : ""}Please refer to the plot generated below.`);
|
|
999
|
-
}
|
|
1000
|
-
}
|
|
1001
|
-
} catch (e) {
|
|
1002
|
-
if (e.stack) console.log(e.stack);
|
|
1003
|
-
serverBubble.html(`Error: ${e.message || e}`);
|
|
1004
|
-
}
|
|
1005
|
-
}).node().focus();
|
|
1006
|
-
}
|
|
1007
|
-
addBubble(arg) {
|
|
1008
|
-
const bubble = this.dom.bubbleDiv.append("div").style("padding", "10px").html(`${arg.me ? '<span style="font-size:.7em">[ME]</span> ' : ""}${arg.msg}`);
|
|
1009
|
-
if (arg.me) bubble.style("background", "#f1f1f1");
|
|
1010
|
-
const n = this.dom.bubbleDiv.node();
|
|
1011
|
-
n.scrollTop = n.scrollHeight;
|
|
1012
|
-
return bubble;
|
|
1013
|
-
}
|
|
1014
|
-
// Render click boxes for an incomplete plot state. `fieldKey` is the field of `plot` whose
|
|
1015
|
-
// value holds `possible_options`. Clicking a box completes the plot state and dispatches plot_create.
|
|
1016
|
-
// Each option completes the plot in one of two ways:
|
|
1017
|
-
// - opt.config: a config patch merged into the plot (the incomplete field is dropped). Used when the
|
|
1018
|
-
// choice sets other fields, e.g. the genome browser view sets blockIsProteinMode: true|false.
|
|
1019
|
-
// - otherwise: the incomplete field is set to { id: opt.id }, e.g. survival term selection -> term:{id}.
|
|
1020
|
-
showPossibleOptions(bubble, plot, fieldKey, msg) {
|
|
1021
|
-
const options = plot[fieldKey].possible_options || [];
|
|
1022
|
-
bubble.text(`${msg ? msg + ". " : ""}Multiple options are available. Please select one:`);
|
|
1023
|
-
const boxDiv = bubble.append("div").style("margin-top", "5px");
|
|
1024
|
-
for (const opt of options) {
|
|
1025
|
-
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", () => {
|
|
1026
|
-
const config = JSON.parse(JSON.stringify(plot));
|
|
1027
|
-
if (opt.config) {
|
|
1028
|
-
delete config[fieldKey];
|
|
1029
|
-
Object.assign(config, opt.config);
|
|
1030
|
-
} else {
|
|
1031
|
-
config[fieldKey] = { id: opt.id };
|
|
1032
|
-
}
|
|
1033
|
-
this.app.dispatch({
|
|
1034
|
-
type: "plot_create",
|
|
1035
|
-
config
|
|
1036
|
-
});
|
|
1037
|
-
bubble.selectAll("*").remove();
|
|
1038
|
-
bubble.text(`Selected "${opt.name}". Please refer to the plot generated below.`);
|
|
1039
|
-
});
|
|
1040
|
-
}
|
|
1041
|
-
}
|
|
1042
|
-
main() {
|
|
1043
|
-
if (this.opts.subheader.style("display") == "none") {
|
|
1044
|
-
this.dom.inputNode.blur();
|
|
1045
|
-
this.dom.tip.hide();
|
|
1046
|
-
return;
|
|
1047
|
-
}
|
|
1048
|
-
if (this.opts?.focus != "off") this.dom.inputNode.focus();
|
|
1049
|
-
}
|
|
1050
|
-
};
|
|
1051
|
-
var chatInit = getCompInit(MassAiChatBot);
|
|
1052
|
-
function findPossibleOptionsField(plot) {
|
|
1053
|
-
if (!plot || typeof plot !== "object") return null;
|
|
1054
|
-
for (const key of Object.keys(plot)) {
|
|
1055
|
-
const val = plot[key];
|
|
1056
|
-
if (val && typeof val === "object" && Array.isArray(val.possible_options)) return key;
|
|
1057
|
-
}
|
|
1058
|
-
return null;
|
|
1059
|
-
}
|
|
1060
|
-
|
|
1061
|
-
// mass/user.ts
|
|
1062
|
-
function datasetRequiresAuth(termdbConfig) {
|
|
1063
|
-
return !!termdbConfig?.requiredAuth?.length;
|
|
1064
|
-
}
|
|
1065
|
-
function getAuthStatus(signedIn, isPublic) {
|
|
1066
|
-
if (!signedIn) return "Requires sign-in";
|
|
1067
|
-
return isPublic === true ? "Public access" : "Signed in";
|
|
1068
|
-
}
|
|
1069
|
-
var MassUser = class _MassUser {
|
|
1070
|
-
constructor(opts) {
|
|
1071
|
-
/** The termdb route that is checked for a required credential */
|
|
1072
|
-
this.route = "termdb";
|
|
1073
|
-
/** Sessions saved in this browser, by session name. Mirrors localStorage 'savedMassSessions' */
|
|
1074
|
-
this.savedSessions = {};
|
|
1075
|
-
/** Whether the user was signed in at the last check, to detect a sign-in after the launch */
|
|
1076
|
-
this.signedIn = false;
|
|
1077
|
-
this.type = _MassUser.type;
|
|
1078
|
-
this.opts = opts;
|
|
1079
|
-
this.app = opts.app;
|
|
1080
|
-
this.subheader = opts.subheader;
|
|
1081
|
-
const sessionDiv = this.subheader.append("div").attr("data-testid", "sjpp-massnav-user-session");
|
|
1082
|
-
sessionDiv.append("span").attr("data-testid", "sjpp-massnav-user-session-label").style("margin-left", "10px").style("font-weight", "bold").style("opacity", 0.65).text("SESSION");
|
|
1083
|
-
this.dom = {
|
|
1084
|
-
authDiv: this.subheader.append("div").attr("data-testid", "sjpp-massnav-user-auth").style("margin", "10px"),
|
|
1085
|
-
sessionDiv,
|
|
1086
|
-
// inline-block, to be on the same row as the label
|
|
1087
|
-
optionsDiv: sessionDiv.append("div").attr("data-testid", "sjpp-massnav-user-session-options").style("display", "inline-block"),
|
|
1088
|
-
// aligned with the edge of the option buttons, which have a 10px margin
|
|
1089
|
-
contentDiv: sessionDiv.append("div").attr("id", "sjpp-massnav-user-session-menu").attr("data-testid", "sjpp-massnav-user-session-content").style("margin", "0 10px"),
|
|
1090
|
-
// how long the server keeps a session that was opened from a `mass-session-id` URL, under the options
|
|
1091
|
-
// and what an option renders
|
|
1092
|
-
daysLeftDiv: sessionDiv.append("div").attr("data-testid", "sjpp-massnav-user-session-days-left").style("display", "none").style("margin", "0 10px 10px 10px").style("font-size", "0.9em").style("opacity", 0.65),
|
|
1093
|
-
copytip: new Menu({ padding: "5px" })
|
|
1094
|
-
};
|
|
1095
|
-
this.sessionOptions = [
|
|
1096
|
-
{ label: `Open`, title: "Recover a saved session", callback: () => this.open() },
|
|
1097
|
-
{ label: `Save`, title: "Save the current view", callback: () => this.save() },
|
|
1098
|
-
{ label: `Share`, title: "Share the current view", callback: () => this.getSessionUrl() }
|
|
1099
|
-
];
|
|
1100
|
-
this.embedderOrigin = window.location.origin;
|
|
1101
|
-
this.hostURL = sessionStorage.getItem("hostURL") || this.embedderOrigin;
|
|
1102
|
-
}
|
|
1103
|
-
static {
|
|
1104
|
-
this.type = "user";
|
|
1105
|
-
}
|
|
1106
|
-
/**
|
|
1107
|
-
* By default, only what this component renders from. rx compares the returned object with the previous state
|
|
1108
|
-
* on every dispatch, so it must not include the whole termdbConfig, which can be very large.
|
|
1109
|
-
*
|
|
1110
|
-
* forSession=true: the parts of the app state that make up a saved session instead, copied so that the app
|
|
1111
|
-
* state, which is deeply frozen and shared, is not changed. app_refresh merges a reopened session into the
|
|
1112
|
-
* current state, so what is not saved, such as the dataset config that init() in mass/store.ts fetches
|
|
1113
|
-
* again, keeps its current value. The derived properties of a geneVariant term are re-filled by every path
|
|
1114
|
-
* that opens a session, see trimGvTermsForSave().
|
|
1115
|
-
*/
|
|
1116
|
-
getState(appState, forSession = false) {
|
|
1117
|
-
if (forSession) {
|
|
1118
|
-
const { vocab, activeCohort, termfilter, plots, groups, customTerms, reuse, nav } = appState;
|
|
1119
|
-
const state = structuredClone({ vocab, activeCohort, termfilter, plots, groups, customTerms, reuse, nav });
|
|
1120
|
-
return markSavedState(trimGvTermsForSave(state));
|
|
1121
|
-
}
|
|
1122
|
-
return {
|
|
1123
|
-
termdbConfig: {
|
|
1124
|
-
requiredAuth: appState.termdbConfig?.requiredAuth,
|
|
1125
|
-
userTab: appState.termdbConfig?.userTab
|
|
1126
|
-
}
|
|
1127
|
-
};
|
|
1128
|
-
}
|
|
1129
|
-
/** Render static contents once on launching mass ui */
|
|
1130
|
-
async init(appState) {
|
|
1131
|
-
this.dslabel = appState.vocab.dslabel;
|
|
1132
|
-
this.savedSessions = JSON.parse(localStorage.getItem("savedMassSessions") || `{}`);
|
|
1133
|
-
this.setRequiredAuth(appState.termdbConfig);
|
|
1134
|
-
this.initSessionOptions();
|
|
1135
|
-
this.renderDaysLeft();
|
|
1136
|
-
}
|
|
1137
|
-
async main() {
|
|
1138
|
-
this.setRequiredAuth(this.state.termdbConfig);
|
|
1139
|
-
this.renderAuthInfo();
|
|
1140
|
-
this.mayLookupAfterSignIn();
|
|
1141
|
-
}
|
|
1142
|
-
/**
|
|
1143
|
-
* The sessions on the server are not looked up while the user is not signed in. So when the user signs in
|
|
1144
|
-
* after the launch, look them up then. Only a change to signed in triggers this, so that a lookup that keeps
|
|
1145
|
-
* failing is not repeated on every update of the app.
|
|
1146
|
-
*/
|
|
1147
|
-
mayLookupAfterSignIn() {
|
|
1148
|
-
const signedIn = !!this.app.vocabApi.hasVerifiedToken();
|
|
1149
|
-
const justSignedIn = signedIn && !this.signedIn;
|
|
1150
|
-
this.signedIn = signedIn;
|
|
1151
|
-
if (justSignedIn && this.requiredAuth && !this.serverCachedSessions) {
|
|
1152
|
-
this.setServerCachedSessions();
|
|
1153
|
-
}
|
|
1154
|
-
}
|
|
1155
|
-
setRequiredAuth(termdbConfig) {
|
|
1156
|
-
this.requiredAuth = termdbConfig?.requiredAuth?.find((a) => a.route == this.route && a.type == "jwt");
|
|
1157
|
-
}
|
|
1158
|
-
/** Show the sign-in status when the dataset requires authorization. Hidden for a public dataset */
|
|
1159
|
-
renderAuthInfo() {
|
|
1160
|
-
const div = this.dom.authDiv;
|
|
1161
|
-
div.selectAll("*").remove();
|
|
1162
|
-
if (!datasetRequiresAuth(this.state.termdbConfig)) {
|
|
1163
|
-
div.style("display", "none");
|
|
1164
|
-
return;
|
|
1165
|
-
}
|
|
1166
|
-
div.style("display", "block");
|
|
1167
|
-
const vocabApi = this.app.vocabApi;
|
|
1168
|
-
const signedIn = vocabApi.hasVerifiedToken();
|
|
1169
|
-
const userTab2 = this.state.termdbConfig.userTab;
|
|
1170
|
-
div.append("div").attr("data-testid", "sjpp-massnav-user-auth-status").style("font-weight", "bold").style("font-size", "1.2em").text(getAuthStatus(signedIn, userTab2?.isPublic));
|
|
1171
|
-
const msg = vocabApi.tokenVerificationMessage;
|
|
1172
|
-
if (!signedIn && msg) div.append("div").style("opacity", 0.65).text(msg);
|
|
1173
|
-
if (userTab2?.msg)
|
|
1174
|
-
div.append("div").attr("data-testid", "sjpp-massnav-user-auth-info").style("margin", "5px 0 0 8px").style("font-size", "0.95em").style("opacity", 0.75).text(userTab2.msg);
|
|
1175
|
-
}
|
|
1176
|
-
/** For a session opened from a `mass-session-id` URL, the number of days before the server removes it */
|
|
1177
|
-
renderDaysLeft() {
|
|
1178
|
-
const days = this.opts.sessionDaysLeft;
|
|
1179
|
-
if (typeof days != "number" || !Number.isFinite(days)) return;
|
|
1180
|
-
const div = this.dom.daysLeftDiv.style("display", "block");
|
|
1181
|
-
div.append("u").text(`${days} ${days == 1 ? "day" : "days"}`);
|
|
1182
|
-
div.append("span").text(' left until this session is removed. Select "Save" to create a new one.');
|
|
1183
|
-
}
|
|
1184
|
-
/**
|
|
1185
|
-
* Renders the session options right away. The lookup of the sessions on the server is optional, so it
|
|
1186
|
-
* is not awaited, since it must not delay or block the launch of the mass ui. The options are
|
|
1187
|
-
* rendered again when any lookup is done, since Delete is only shown when there is a session to delete.
|
|
1188
|
-
*/
|
|
1189
|
-
initSessionOptions() {
|
|
1190
|
-
this.signedIn = !!this.app.vocabApi.hasVerifiedToken();
|
|
1191
|
-
this.renderSessionOptions();
|
|
1192
|
-
if (!this.serverCachedSessions) this.setServerCachedSessions();
|
|
1193
|
-
}
|
|
1194
|
-
/** Render the Open, Save, Share, and Delete buttons. Delete is only available if there is something to delete */
|
|
1195
|
-
renderSessionOptions() {
|
|
1196
|
-
if (!this.dom?.optionsDiv) return;
|
|
1197
|
-
const options = this.sessionOptions.slice();
|
|
1198
|
-
if (Object.keys(this.savedSessions).length || this.serverCachedSessions?.length) {
|
|
1199
|
-
options.push({ label: `Delete`, title: "Delete a saved session", callback: () => this.delete() });
|
|
1200
|
-
}
|
|
1201
|
-
if (this.opts.sessionDaysLeft != null && this.opts.sessionId) {
|
|
1202
|
-
options.push({
|
|
1203
|
-
label: `Export Session`,
|
|
1204
|
-
title: "Download this session as a file",
|
|
1205
|
-
callback: () => this.exportSession()
|
|
1206
|
-
});
|
|
1207
|
-
}
|
|
1208
|
-
this.dom.optionsDiv.selectAll("*").remove();
|
|
1209
|
-
this.dom.optionsDiv.selectAll("button").data(options).enter().append("button").style("margin", "10px").style("padding", "10px 15px").style("border-radius", "20px").style("border-color", "#ededed").attr(
|
|
1210
|
-
"data-testid",
|
|
1211
|
-
(d) => `sjpp-massnav-user-session-btn-${d.label.toLowerCase().replace(/\s/g, "-")}`
|
|
1212
|
-
).attr("aria-label", (d) => d.title).attr("title", (d) => d.title).text((d) => d.label).on("click", async (event, d) => {
|
|
1213
|
-
event.stopPropagation();
|
|
1214
|
-
this.clearContent();
|
|
1215
|
-
await d.callback();
|
|
1216
|
-
if (this.dom?.contentDiv?.node()?.hasChildNodes()) this.dom.contentDiv.style("padding-bottom", "10px");
|
|
1217
|
-
});
|
|
1218
|
-
}
|
|
1219
|
-
/** Download the opened `mass-session-id` session as a json file */
|
|
1220
|
-
async exportSession() {
|
|
1221
|
-
const res = await dofetch3(`/massSession?id=${encodeURIComponent(this.opts.sessionId)}`);
|
|
1222
|
-
const a = document.createElement("a");
|
|
1223
|
-
const dataStr = "data:application/json;charset=utf-8," + encodeURIComponent(JSON.stringify(res.state));
|
|
1224
|
-
a.setAttribute("href", dataStr);
|
|
1225
|
-
a.download = `${this.opts.sessionId}.json`;
|
|
1226
|
-
a.click();
|
|
1227
|
-
a.remove();
|
|
1228
|
-
}
|
|
1229
|
-
clearContent() {
|
|
1230
|
-
clearTimeout(this.confirmationTimer);
|
|
1231
|
-
this.confirmationTimer = void 0;
|
|
1232
|
-
this.dom.contentDiv.interrupt();
|
|
1233
|
-
this.dom.contentDiv.selectAll("*").remove();
|
|
1234
|
-
this.dom.contentDiv.style("opacity", 1).style("padding-bottom", null);
|
|
1235
|
-
}
|
|
1236
|
-
/**
|
|
1237
|
-
* Removes what is not under this.dom of the component, which ComponentApi.destroy() removes. The copytip
|
|
1238
|
-
* Menu is in the document body, with a listener on the body, so it must be destroyed here.
|
|
1239
|
-
*/
|
|
1240
|
-
destroy() {
|
|
1241
|
-
clearTimeout(this.copyTipTimer);
|
|
1242
|
-
this.clearContent();
|
|
1243
|
-
this.dom.copytip.destroy();
|
|
1244
|
-
}
|
|
1245
|
-
async open() {
|
|
1246
|
-
const radioName = `sjpp-massnav-user-session-open-radio-` + Math.random().toString().slice(-6);
|
|
1247
|
-
const div = this.dom.contentDiv;
|
|
1248
|
-
div.append("div").style("display", "none").style("padding", "3px 9px").html(`
|
|
1249
|
-
<b>Open in</b>
|
|
1250
|
-
<label>
|
|
1251
|
-
<input type='radio' name='${radioName}' value='new' style='margin-right: 0; vertical-align: bottom'/>
|
|
1252
|
-
<span>a new tab</span>
|
|
1253
|
-
</label>
|
|
1254
|
-
<label style='margin-left: 5px'>
|
|
1255
|
-
<input type='radio' name='${radioName}' value='current' checked=checked style='margin-right: 0; vertical-align: bottom'/>
|
|
1256
|
-
<span>current tab</span>
|
|
1257
|
-
</label>
|
|
1258
|
-
`);
|
|
1259
|
-
const getTargetWindow = () => div.node().querySelector(`[name="${radioName}"]:checked`).value;
|
|
1260
|
-
const t = await this.listSessions({
|
|
1261
|
-
trClickHandler: async (_event, d) => {
|
|
1262
|
-
const { loc, id: id2 } = d;
|
|
1263
|
-
if (!id2) return;
|
|
1264
|
-
if (loc == "browser") {
|
|
1265
|
-
this.sessionName = id2;
|
|
1266
|
-
const state = structuredClone(this.savedSessions[id2]);
|
|
1267
|
-
if (this.refuses(state)) return;
|
|
1268
|
-
await preprocessState(state, this.app);
|
|
1269
|
-
const targetWindow = getTargetWindow();
|
|
1270
|
-
if (targetWindow == "current") {
|
|
1271
|
-
this.app.dispatch({ type: "app_refresh", state });
|
|
1272
|
-
} else if (window.location.origin == this.hostURL) {
|
|
1273
|
-
window.open(`/?mass-session-id=${encodeURIComponent(id2)}&src=browser`);
|
|
1274
|
-
} else {
|
|
1275
|
-
if (state.embedder) parentCorsMessage({ state });
|
|
1276
|
-
else {
|
|
1277
|
-
const { protocol, host, search, origin, href } = window.location;
|
|
1278
|
-
const embedder = { protocol, host, search, origin, href };
|
|
1279
|
-
parentCorsMessage({ state: Object.assign({ embedder }, state) });
|
|
1280
|
-
}
|
|
1281
|
-
}
|
|
1282
|
-
this.clearContent();
|
|
1283
|
-
} else if (loc == "server") {
|
|
1284
|
-
const headers = await this.app.vocabApi.mayGetAuthHeaders(this.route);
|
|
1285
|
-
const body = { id: id2, route: this.route, dslabel: this.dslabel, embedder: window.location.hostname };
|
|
1286
|
-
const res = await dofetch3(`/massSession?`, { headers, body });
|
|
1287
|
-
if (!res.state) throw res.error || "unable to get the cached session from the server";
|
|
1288
|
-
if (this.refuses(res.state)) return;
|
|
1289
|
-
await preprocessState(res.state, this.app);
|
|
1290
|
-
this.savedSessions[id2] = res.state;
|
|
1291
|
-
const targetWindow = getTargetWindow();
|
|
1292
|
-
if (targetWindow == "current") {
|
|
1293
|
-
this.app.dispatch({ type: "app_refresh", state: res.state });
|
|
1294
|
-
} else if (window.location.origin == this.hostURL) {
|
|
1295
|
-
window.open(
|
|
1296
|
-
`/?mass-session-id=${encodeURIComponent(id2)}&src=cred&dslabel=${encodeURIComponent(
|
|
1297
|
-
this.dslabel
|
|
1298
|
-
)}&route=${encodeURIComponent(this.route)}`
|
|
1299
|
-
);
|
|
1300
|
-
} else {
|
|
1301
|
-
parentCorsMessage(res);
|
|
1302
|
-
}
|
|
1303
|
-
this.clearContent();
|
|
1304
|
-
}
|
|
1305
|
-
}
|
|
1306
|
-
});
|
|
1307
|
-
t.headtr.select("th").text("Open from");
|
|
1308
|
-
const tr1 = t.tbody.insert("tr", "tr");
|
|
1309
|
-
tr1.append("td").style("text-align", "center").style("padding", "3px 9px").text("Local file");
|
|
1310
|
-
const label = tr1.append("td").style("text-align", "left").append("label");
|
|
1311
|
-
label.append("span").style("padding", "3px 9px").style("text-decoration", "underline").style("cursor", "pointer").text("Choose File");
|
|
1312
|
-
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 (event) => {
|
|
1313
|
-
const file = event.target.files.item(0);
|
|
1314
|
-
const json = await file.text();
|
|
1315
|
-
let sessionName = file.name;
|
|
1316
|
-
if (this.savedSessions[sessionName]) {
|
|
1317
|
-
sessionName = prompt(
|
|
1318
|
-
`Leave as-is to overwrite a session with the same name, or enter a different session name.`,
|
|
1319
|
-
sessionName
|
|
1320
|
-
);
|
|
1321
|
-
if (!sessionName) return;
|
|
1322
|
-
}
|
|
1323
|
-
this.sessionName = sessionName;
|
|
1324
|
-
const state = JSON.parse(json);
|
|
1325
|
-
if (this.refuses(state)) return;
|
|
1326
|
-
await preprocessState(state, this.app);
|
|
1327
|
-
this.savedSessions[sessionName] = state;
|
|
1328
|
-
localStorage.setItem("savedMassSessions", JSON.stringify(this.savedSessions));
|
|
1329
|
-
const targetWindow = getTargetWindow();
|
|
1330
|
-
if (targetWindow == "current") {
|
|
1331
|
-
this.app.dispatch({ type: "app_refresh", state });
|
|
1332
|
-
} else if (window.location.origin == this.hostURL) {
|
|
1333
|
-
window.open(`/?mass-session-id=${encodeURIComponent(sessionName)}&src=browser`);
|
|
1334
|
-
} else {
|
|
1335
|
-
if (state.embedder) parentCorsMessage({ state });
|
|
1336
|
-
else {
|
|
1337
|
-
const { protocol, host, search, origin, href } = window.location;
|
|
1338
|
-
const embedder = { protocol, host, search, origin, href };
|
|
1339
|
-
parentCorsMessage({ state: Object.assign({ embedder }, state) });
|
|
1340
|
-
}
|
|
1341
|
-
}
|
|
1342
|
-
this.clearContent();
|
|
1343
|
-
});
|
|
1344
|
-
}
|
|
1345
|
-
async listSessions(opts = {}) {
|
|
1346
|
-
const table = this.dom.contentDiv.append("table").attr("class", "sjpp-controls-table");
|
|
1347
|
-
const headtr = table.append("thead").append("tr");
|
|
1348
|
-
headtr.selectAll("th").data(["Cache Location", "Session ID"]).enter().append("th").style("text-align", (_, i) => i === 0 ? "center" : "left").style("padding", "3px 9px").text((d) => d);
|
|
1349
|
-
const sessionIds = Object.keys(this.savedSessions).map((id2) => ({
|
|
1350
|
-
loc: "browser",
|
|
1351
|
-
id: id2
|
|
1352
|
-
}));
|
|
1353
|
-
if (!this.serverCachedSessions) await this.setServerCachedSessions();
|
|
1354
|
-
sessionIds.push(...(this.serverCachedSessions || []).map((id2) => ({ loc: "server", id: id2 })));
|
|
1355
|
-
const tbody = table.append("tbody");
|
|
1356
|
-
const trs = tbody.selectAll("tr").data(sessionIds).enter().append("tr").on("click", opts.trClickHandler || null);
|
|
1357
|
-
trs.selectAll("td").data((d) => [d, d]).enter().append("td").style("text-align", (_, i) => i === 0 ? "center" : "left").style("padding", "3px 9px").style("cursor", "pointer").text((d, i) => i === 0 ? d.loc : d.id);
|
|
1358
|
-
if (!this.serverCachedSessions?.length && this.requiredAuth && !this.app.vocabApi.hasVerifiedToken()) {
|
|
1359
|
-
table.append("tbody").append("tr").selectAll("td").data(["server", "requires sign-in"]).enter().append("td").style("text-align", (_, i) => i === 0 ? "center" : "left").style("padding", "3px 9px").text((d) => d);
|
|
1360
|
-
}
|
|
1361
|
-
return { table, headtr, tbody, trs };
|
|
1362
|
-
}
|
|
1363
|
-
/**
|
|
1364
|
-
* Looks up the ids of the sessions that the user saved on the server. This never throws, since the
|
|
1365
|
-
* sessions on the server are optional: the sessions of the browser, and everything else in the mass ui,
|
|
1366
|
-
* must work when the lookup fails, for example from a network error or a failure to get a token.
|
|
1367
|
-
*
|
|
1368
|
-
* Only a successful lookup is kept in serverCachedSessions. It stays undefined when the lookup is not made
|
|
1369
|
-
* because the user is not signed in, or when it fails, so that it is tried again on the next use.
|
|
1370
|
-
* Callers that arrive while a lookup is in progress share it instead of sending another request.
|
|
1371
|
-
*/
|
|
1372
|
-
setServerCachedSessions() {
|
|
1373
|
-
if (this.serverSessionsRequest) return this.serverSessionsRequest;
|
|
1374
|
-
if (!this.mayLookupSessions()) return Promise.resolve();
|
|
1375
|
-
this.serverSessionsRequest = this.lookupServerSessions().finally(() => {
|
|
1376
|
-
this.serverSessionsRequest = void 0;
|
|
1377
|
-
this.renderSessionOptions();
|
|
1378
|
-
});
|
|
1379
|
-
return this.serverSessionsRequest;
|
|
1380
|
-
}
|
|
1381
|
-
/**
|
|
1382
|
-
* Returns true when the sessions on the server should be looked up now. A dataset without a jwt
|
|
1383
|
-
* credential has none, and the lookup is not made, so serverCachedSessions is an empty list.
|
|
1384
|
-
* It is also not made before the user is signed in, when the server would reject the request.
|
|
1385
|
-
*/
|
|
1386
|
-
mayLookupSessions() {
|
|
1387
|
-
try {
|
|
1388
|
-
const state = this.app.getState();
|
|
1389
|
-
this.requiredAuth = state.termdbConfig?.requiredAuth?.find((a) => a.route == this.route && a.type == "jwt");
|
|
1390
|
-
if (!this.requiredAuth) {
|
|
1391
|
-
this.serverCachedSessions = [];
|
|
1392
|
-
return false;
|
|
1393
|
-
}
|
|
1394
|
-
return !!this.app.vocabApi.hasVerifiedToken();
|
|
1395
|
-
} catch (e) {
|
|
1396
|
-
console.warn(`unable to get the sessions saved on the server: ${e?.message || e}`);
|
|
1397
|
-
return false;
|
|
1398
|
-
}
|
|
1399
|
-
}
|
|
1400
|
-
async lookupServerSessions() {
|
|
1401
|
-
try {
|
|
1402
|
-
const headers = await this.app.vocabApi.mayGetAuthHeaders(this.route);
|
|
1403
|
-
const body = { route: this.route, dslabel: this.dslabel, embedder: window.location.hostname };
|
|
1404
|
-
const res = await dofetch3("/sessionIds", { headers, body });
|
|
1405
|
-
if (!Array.isArray(res?.sessionIds)) throw res?.error || "unexpected response";
|
|
1406
|
-
this.serverCachedSessions = res.sessionIds;
|
|
1407
|
-
} catch (e) {
|
|
1408
|
-
console.warn(`unable to get the sessions saved on the server: ${e?.message || e}`);
|
|
1409
|
-
}
|
|
1410
|
-
}
|
|
1411
|
-
async save() {
|
|
1412
|
-
const div = this.dom.contentDiv;
|
|
1413
|
-
const inputDiv = div.append("div");
|
|
1414
|
-
inputDiv.append("span").text("Save as");
|
|
1415
|
-
const sessionNames = Object.keys(this.savedSessions);
|
|
1416
|
-
if (!this.serverCachedSessions) await this.setServerCachedSessions();
|
|
1417
|
-
sessionNames.push(...(this.serverCachedSessions || []).filter((d) => !sessionNames.includes(d)));
|
|
1418
|
-
const placeholder = this.sessionName || "unnamed-session";
|
|
1419
|
-
const input = inputDiv.append("input").attr("type", "text").attr("placeholder", placeholder).style("width", "220px").on("input", () => {
|
|
1420
|
-
searchResultDiv.selectAll("*").remove();
|
|
1421
|
-
const value = input.property("value");
|
|
1422
|
-
const exactMatch = sessionNames.filter((s) => s === value);
|
|
1423
|
-
const startsWith = sessionNames.filter((s) => s.startsWith(value));
|
|
1424
|
-
const includes = sessionNames.filter((s) => s.includes(value) && s !== value && !startsWith.includes(s));
|
|
1425
|
-
searchResultDiv.selectAll("div").data([...exactMatch, ...startsWith, ...includes]).enter().append("div").attr("class", "sja_menuoption").attr("data-testid", `sjpp-massnav-user-session-save-option`).text((d) => d).on("click", (_, d) => {
|
|
1426
|
-
input.property("value", d);
|
|
1427
|
-
searchResultDiv.selectAll("*").remove();
|
|
1428
|
-
});
|
|
1429
|
-
});
|
|
1430
|
-
const searchResultDiv = div.append("div");
|
|
1431
|
-
const submitDiv = div.append("div");
|
|
1432
|
-
submitDiv.append("span").html("Save to ");
|
|
1433
|
-
submitDiv.append("button").style("min-width", "80px").text("Browser").attr(
|
|
1434
|
-
"title",
|
|
1435
|
-
`Save the session in your current browser's cache. The session can be easily recovered, but not shared among your other devices`
|
|
1436
|
-
).on("click", () => {
|
|
1437
|
-
this.sessionName = input.property("value") || placeholder;
|
|
1438
|
-
this.savedSessions[this.sessionName] = this.getState(this.app.getState(), true);
|
|
1439
|
-
localStorage.setItem("savedMassSessions", JSON.stringify(this.savedSessions));
|
|
1440
|
-
this.renderSessionOptions();
|
|
1441
|
-
this.confirmAction(`Cached '${this.sessionName}' in browser`);
|
|
1442
|
-
});
|
|
1443
|
-
submitDiv.append("button").style("min-width", "80px").text("File").attr(
|
|
1444
|
-
"title",
|
|
1445
|
-
`Save the session into a local file. The session can be easily recoved using the 'Open from local file' option.`
|
|
1446
|
-
).on("click", () => {
|
|
1447
|
-
const name = input.property("value") || placeholder;
|
|
1448
|
-
this.download(name, this.getState(this.app.getState(), true));
|
|
1449
|
-
this.confirmAction(`Downloaded '${name}'`);
|
|
1450
|
-
});
|
|
1451
|
-
if (this.requiredAuth) {
|
|
1452
|
-
const requiresSignIn = this.app.vocabApi.hasVerifiedToken() ? "" : "Requires sign-in. ";
|
|
1453
|
-
submitDiv.append("button").style("min-width", "80px").text("Server").attr(
|
|
1454
|
-
"title",
|
|
1455
|
-
`${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.`
|
|
1456
|
-
).property("disabled", !this.app.vocabApi.hasVerifiedToken()).on("click", async () => {
|
|
1457
|
-
if (!this.app.vocabApi.hasVerifiedToken()) {
|
|
1458
|
-
alert("Requires sign-in");
|
|
1459
|
-
return;
|
|
1460
|
-
}
|
|
1461
|
-
const name = input.property("value") || placeholder;
|
|
1462
|
-
const res = await this.getSessionUrl(name);
|
|
1463
|
-
if (res.error || res.id != name) {
|
|
1464
|
-
sayerror(submitDiv, `Unable to save '${name}' on the server: ${res.error || "unexpected session id"}`);
|
|
1465
|
-
return;
|
|
1466
|
-
}
|
|
1467
|
-
if (this.serverCachedSessions && !this.serverCachedSessions.includes(name))
|
|
1468
|
-
this.serverCachedSessions.push(name);
|
|
1469
|
-
this.renderSessionOptions();
|
|
1470
|
-
this.confirmAction(`Saved '${name}' on the server`);
|
|
1471
|
-
});
|
|
1472
|
-
}
|
|
1473
|
-
}
|
|
1474
|
-
// true when a saved state is not opened, see sessionForm.ts. the reason is shown
|
|
1475
|
-
refuses(state) {
|
|
1476
|
-
const reason = getSavedStateRefusal(state);
|
|
1477
|
-
if (!reason) return false;
|
|
1478
|
-
this.clearContent();
|
|
1479
|
-
this.app.printError(reason);
|
|
1480
|
-
return true;
|
|
1481
|
-
}
|
|
1482
|
-
download(name, state) {
|
|
1483
|
-
const ext = name.endsWith(".txt") ? "" : ".txt";
|
|
1484
|
-
to_textfile(`${name}${ext}`, JSON.stringify(state));
|
|
1485
|
-
}
|
|
1486
|
-
/** With a filename, saves the session on the server under that name and returns the response.
|
|
1487
|
-
Without one, creates a shareable link and renders it. */
|
|
1488
|
-
async getSessionUrl(filename = "") {
|
|
1489
|
-
const headers = await this.app.vocabApi.mayGetAuthHeaders(this.route);
|
|
1490
|
-
const state = this.getState(this.app.getState(), true);
|
|
1491
|
-
const { protocol, host, search, origin, href } = window.location;
|
|
1492
|
-
state.embedder = { protocol, host, search, origin, href };
|
|
1493
|
-
if (filename) {
|
|
1494
|
-
state.__sessionFor__ = {
|
|
1495
|
-
route: this.route,
|
|
1496
|
-
filename,
|
|
1497
|
-
dslabel: this.dslabel,
|
|
1498
|
-
embedder: window.location.hostname
|
|
1499
|
-
};
|
|
1500
|
-
}
|
|
1501
|
-
const res = await dofetch3("/massSession", {
|
|
1502
|
-
headers,
|
|
1503
|
-
method: "POST",
|
|
1504
|
-
body: JSON.stringify(state)
|
|
1505
|
-
});
|
|
1506
|
-
if (filename) return res;
|
|
1507
|
-
const div = this.dom.contentDiv;
|
|
1508
|
-
if (res.error || !res.id) {
|
|
1509
|
-
sayerror(div.append("div"), `Unable to create a session link: ${res.error || "missing session id"}`);
|
|
1510
|
-
return;
|
|
1511
|
-
}
|
|
1512
|
-
const url = `${this.hostURL}/?mass-session-id=${encodeURIComponent(res.id)}&noheader=1`;
|
|
1513
|
-
const linkDiv = div.append("div").style("margin", "10px");
|
|
1514
|
-
linkDiv.append("div").style("display", "flex").style("margin-bottom", "12px").text(`Open or copy the session link.`);
|
|
1515
|
-
const a = linkDiv.append("a").style("display", "none").attr("href", url).attr("target", "_blank").text(res.id);
|
|
1516
|
-
linkDiv.append("button").style("cursor", "pointer").text("Open link").on("click", () => {
|
|
1517
|
-
a.node().click();
|
|
1518
|
-
});
|
|
1519
|
-
linkDiv.append("button").style("cursor", "pointer").style("margin-left", "10px").text("Copy link").on("click", async (event) => {
|
|
1520
|
-
await navigator.clipboard.writeText(url);
|
|
1521
|
-
if (!this.dom?.copytip) return;
|
|
1522
|
-
this.dom.copytip.clear().showunder(event.target);
|
|
1523
|
-
this.dom.copytip.d.append("div").html("✓");
|
|
1524
|
-
clearTimeout(this.copyTipTimer);
|
|
1525
|
-
this.copyTipTimer = setTimeout(() => this.dom?.copytip?.hide(), 1e3);
|
|
1526
|
-
});
|
|
1527
|
-
if (this.hostURL != window.location.origin) {
|
|
1528
|
-
a.on("click", (event) => {
|
|
1529
|
-
event.preventDefault();
|
|
1530
|
-
parentCorsMessage({ state }, "noredirect");
|
|
1531
|
-
return false;
|
|
1532
|
-
});
|
|
1533
|
-
}
|
|
1534
|
-
linkDiv.append("div").html(`
|
|
1535
|
-
<br>
|
|
1536
|
-
<div style="font-size: 1em; opacity:.6">
|
|
1537
|
-
<span>NOTES</span>
|
|
1538
|
-
<ul>
|
|
1539
|
-
<li>A recovered session may hide data or views to users that are not authorized to access the saved datasets or features.</li>
|
|
1540
|
-
<li>This session will be saved for ${this.opts.massSessionDuration} days.</li>
|
|
1541
|
-
</ul>
|
|
1542
|
-
</div>`);
|
|
1543
|
-
}
|
|
1544
|
-
async delete() {
|
|
1545
|
-
const t = await this.listSessions({
|
|
1546
|
-
trClickHandler: function(event) {
|
|
1547
|
-
const input = this.lastChild.querySelector("input");
|
|
1548
|
-
const checked = event.target == input ? input.checked : !input.checked;
|
|
1549
|
-
select_default(this).style("text-decoration", checked ? "line-through" : "");
|
|
1550
|
-
if (event.target != input) input.checked = checked;
|
|
1551
|
-
const checkedRows = t.table.node().querySelectorAll("input:checked");
|
|
1552
|
-
submitBtn.property("disabled", checkedRows.length ? false : true);
|
|
1553
|
-
}
|
|
1554
|
-
});
|
|
1555
|
-
t.headtr.append("th").text("Delete");
|
|
1556
|
-
t.trs.each(function(d) {
|
|
1557
|
-
select_default(this).append("td").style("text-align", "center").append("input").attr("type", "checkbox").attr("value", d.id);
|
|
1558
|
-
});
|
|
1559
|
-
const submitBtn = this.dom.contentDiv.append("div").style("margin-top", "10px").append("button").text("Delete selected sessions").property("disabled", true).on("click", async () => {
|
|
1560
|
-
errorDiv.selectAll("*").remove();
|
|
1561
|
-
const inputs = t.table.node().querySelectorAll("input");
|
|
1562
|
-
const sessionIdsDeletedFromServer = [];
|
|
1563
|
-
for (const input of inputs) {
|
|
1564
|
-
if (select_default(input).property("checked")) {
|
|
1565
|
-
const d = input.parentNode.parentNode.__data__;
|
|
1566
|
-
if (d.loc == "browser") {
|
|
1567
|
-
delete this.savedSessions[input.value];
|
|
1568
|
-
} else if (d.loc == "server") {
|
|
1569
|
-
sessionIdsDeletedFromServer.push(input.value);
|
|
1570
|
-
} else throw `unknown cache location=${d.loc}`;
|
|
1571
|
-
}
|
|
1572
|
-
}
|
|
1573
|
-
localStorage.setItem("savedMassSessions", JSON.stringify(this.savedSessions));
|
|
1574
|
-
if (sessionIdsDeletedFromServer.length) {
|
|
1575
|
-
submitBtn.property("disabled", true);
|
|
1576
|
-
let error, failedIds;
|
|
1577
|
-
try {
|
|
1578
|
-
const headers = await this.app.vocabApi.mayGetAuthHeaders(this.route);
|
|
1579
|
-
const errors = [];
|
|
1580
|
-
failedIds = [];
|
|
1581
|
-
for (const ids of getDeletionBatches(sessionIdsDeletedFromServer)) {
|
|
1582
|
-
const body = { ids, route: this.route, dslabel: this.dslabel, embedder: window.location.hostname };
|
|
1583
|
-
try {
|
|
1584
|
-
const res = await dofetch3(`/massSession?`, { method: "DELETE", headers, body });
|
|
1585
|
-
if (res.error) {
|
|
1586
|
-
errors.push(res.error);
|
|
1587
|
-
failedIds.push(...res.failedIds || ids);
|
|
1588
|
-
}
|
|
1589
|
-
} catch (e) {
|
|
1590
|
-
errors.push(e.message || e);
|
|
1591
|
-
failedIds.push(...ids);
|
|
1592
|
-
}
|
|
1593
|
-
}
|
|
1594
|
-
if (errors.length) error = errors.join("; ");
|
|
1595
|
-
} catch (e) {
|
|
1596
|
-
error = e.message || e;
|
|
1597
|
-
failedIds = sessionIdsDeletedFromServer;
|
|
1598
|
-
}
|
|
1599
|
-
const deletedIds = sessionIdsDeletedFromServer.filter((id2) => !failedIds?.includes(id2));
|
|
1600
|
-
this.serverCachedSessions = this.serverCachedSessions?.filter((id2) => !deletedIds.includes(id2));
|
|
1601
|
-
if (error) {
|
|
1602
|
-
t.trs.filter((d) => d.loc == "browser" ? !this.savedSessions[d.id] : deletedIds.includes(d.id)).remove();
|
|
1603
|
-
const checkedRows = t.table.node().querySelectorAll("input:checked");
|
|
1604
|
-
submitBtn.property("disabled", !checkedRows.length);
|
|
1605
|
-
sayerror(errorDiv, `Error deleting server session(s): ${error}`);
|
|
1606
|
-
this.renderSessionOptions();
|
|
1607
|
-
return;
|
|
1608
|
-
}
|
|
1609
|
-
}
|
|
1610
|
-
this.renderSessionOptions();
|
|
1611
|
-
this.clearContent();
|
|
1612
|
-
});
|
|
1613
|
-
const errorDiv = this.dom.contentDiv.append("div");
|
|
1614
|
-
}
|
|
1615
|
-
/** Show a message that fades out, then clear the content */
|
|
1616
|
-
confirmAction(message) {
|
|
1617
|
-
this.clearContent();
|
|
1618
|
-
this.dom.contentDiv.append("div").text(message);
|
|
1619
|
-
this.dom.contentDiv.transition().delay(3e3).duration(1e3).style("opacity", 0);
|
|
1620
|
-
this.confirmationTimer = setTimeout(() => this.clearContent(), 4e3);
|
|
1621
|
-
}
|
|
1622
|
-
};
|
|
1623
|
-
function getDeletionBatches(ids) {
|
|
1624
|
-
const maxEncodedIdsLength = 1e3;
|
|
1625
|
-
const batches = [];
|
|
1626
|
-
let batch = [];
|
|
1627
|
-
for (const id2 of ids) {
|
|
1628
|
-
if (batch.length && encodeURIComponent(JSON.stringify([...batch, id2])).length > maxEncodedIdsLength) {
|
|
1629
|
-
batches.push(batch);
|
|
1630
|
-
batch = [];
|
|
1631
|
-
}
|
|
1632
|
-
batch.push(id2);
|
|
1633
|
-
}
|
|
1634
|
-
if (batch.length) batches.push(batch);
|
|
1635
|
-
return batches;
|
|
1636
|
-
}
|
|
1637
|
-
async function preprocessState(state, app) {
|
|
1638
|
-
delete state.termdbConfig;
|
|
1639
|
-
if (state.plots) {
|
|
1640
|
-
const promises = [];
|
|
1641
|
-
for (const plot of state.plots) {
|
|
1642
|
-
promises.push(
|
|
1643
|
-
(async () => {
|
|
1644
|
-
const _ = await importPlot(plot.chartType);
|
|
1645
|
-
return await _.getPlotConfig(plot, app);
|
|
1646
|
-
})()
|
|
1647
|
-
);
|
|
1648
|
-
}
|
|
1649
|
-
try {
|
|
1650
|
-
await Promise.all(promises);
|
|
1651
|
-
} catch (e) {
|
|
1652
|
-
console.error(e);
|
|
1653
|
-
app.printError(e);
|
|
1654
|
-
}
|
|
1655
|
-
}
|
|
1656
|
-
}
|
|
1657
|
-
var userInit = getCompInit(MassUser);
|
|
1658
|
-
|
|
1659
|
-
// mass/nav.ts
|
|
1660
|
-
var activeTabBgColor = "#ececec";
|
|
1661
|
-
var activeTabBgColorHover = "#e0e0e0";
|
|
1662
|
-
var activeTabTextColor = "black";
|
|
1663
|
-
var inactiveTabBgColorHover = "#fcfced";
|
|
1664
|
-
var inactiveTabTextColor = "gray";
|
|
1665
|
-
var instanceNum = 0;
|
|
1666
|
-
var idPrefix = "_MASS_AUTOID_" + Math.random().toString().slice(-6);
|
|
1667
|
-
var id = Number((+/* @__PURE__ */ new Date()).toString().slice(-8));
|
|
1668
|
-
var headtip = new Menu({ padding: "0px", offsetX: 0, offsetY: 0 });
|
|
1669
|
-
headtip.d.style("z-index", 5555);
|
|
1670
|
-
var aboutTab = { top: "ABOUT", mid: "", btm: "", subheader: "about" };
|
|
1671
|
-
var chartTab = { top: "CHARTS", mid: "NONE", btm: "", subheader: "charts" };
|
|
1672
|
-
var groupsTab = { top: "GROUPS", mid: "NONE", btm: "", subheader: "groups" };
|
|
1673
|
-
var filterTab = { top: "FILTER", mid: "NONE", btm: "", subheader: "filter" };
|
|
1674
|
-
var userTab = { top: "USER", mid: "", btm: "", subheader: "user" };
|
|
1675
|
-
function getId() {
|
|
1676
|
-
return idPrefix + "_" + id++;
|
|
1677
|
-
}
|
|
1678
|
-
var TdbNav = class _TdbNav {
|
|
1679
|
-
static {
|
|
1680
|
-
this.type = "nav";
|
|
1681
|
-
}
|
|
1682
|
-
constructor(opts) {
|
|
1683
|
-
this.type = _TdbNav.type;
|
|
1684
|
-
this.instanceNum = instanceNum++;
|
|
1685
|
-
this.tabs = [];
|
|
1686
|
-
this.activeTab = 0;
|
|
1687
|
-
this.activeCohort = 0;
|
|
1688
|
-
this.samplecounts = {};
|
|
1689
|
-
this.searching = false;
|
|
1690
|
-
this.massSessionDuration = opts.massSessionDuration;
|
|
1691
|
-
this.pkgver = opts.pkgver || null;
|
|
1692
|
-
setInteractivity(this);
|
|
1693
|
-
setRenderers(this);
|
|
1694
|
-
}
|
|
1695
|
-
async init(appState) {
|
|
1696
|
-
this.cohortFilter = getFilterItemByTag(appState.termfilter.filter, "cohortFilter");
|
|
1697
|
-
this.initUI(appState);
|
|
1698
|
-
if (appState?.termdbConfig?.selectCohort) {
|
|
1699
|
-
this.dom.tds.filter((d) => d.colNum === 0).style("display", "");
|
|
1700
|
-
this.cohortNames = appState.termdbConfig.selectCohort.values.map((d) => d.keys.slice().sort().join(","));
|
|
1701
|
-
}
|
|
1702
|
-
this.components = await multiInit({
|
|
1703
|
-
filter: filterRxCompInit({
|
|
1704
|
-
app: this.app,
|
|
1705
|
-
vocabApi: this.app.vocabApi,
|
|
1706
|
-
holder: this.dom.subheader.filter.append("div").style("margin", "5px"),
|
|
1707
|
-
hideLabel: this.opts.header_mode === "with_tabs",
|
|
1708
|
-
emptyLabel: "+Add new filter",
|
|
1709
|
-
callback: (filter) => {
|
|
1710
|
-
this.app.dispatch({
|
|
1711
|
-
type: "filter_replace",
|
|
1712
|
-
filter
|
|
1713
|
-
});
|
|
1714
|
-
}
|
|
1715
|
-
}),
|
|
1716
|
-
charts: chartsInit({
|
|
1717
|
-
app: this.app,
|
|
1718
|
-
holder: this.dom.subheader.charts,
|
|
1719
|
-
vocab: this.opts.vocab
|
|
1720
|
-
}),
|
|
1721
|
-
groups: groupsInit({
|
|
1722
|
-
app: this.app,
|
|
1723
|
-
holder: this.dom.subheader.groups,
|
|
1724
|
-
vocab: this.opts.vocab
|
|
1725
|
-
}),
|
|
1726
|
-
recover: recoverInit({
|
|
1727
|
-
app: this.app,
|
|
1728
|
-
holder: this.dom.recoverDiv,
|
|
1729
|
-
// TODO: ???? may limit the tracked state to only the filter, activeCohort ???
|
|
1730
|
-
getState: (appState2) => appState2,
|
|
1731
|
-
reactsTo: (action) => action.type != "plot_edit",
|
|
1732
|
-
maxHistoryLen: 5
|
|
1733
|
-
}),
|
|
1734
|
-
about: aboutInit({
|
|
1735
|
-
app: this.app,
|
|
1736
|
-
subheader: this.dom.subheader.about,
|
|
1737
|
-
instanceNum: this.instanceNum,
|
|
1738
|
-
aboutOverrides: appState?.termdbConfig?.massNav?.tabs?.about || null,
|
|
1739
|
-
selectCohort: appState?.termdbConfig?.selectCohort || null
|
|
1740
|
-
}),
|
|
1741
|
-
chat: chatInit({
|
|
1742
|
-
app: this.app,
|
|
1743
|
-
subheader: this.dom.subheader.chat
|
|
1744
|
-
}),
|
|
1745
|
-
user: userInit({
|
|
1746
|
-
app: this.app,
|
|
1747
|
-
subheader: this.dom.subheader.user,
|
|
1748
|
-
massSessionDuration: this.opts.massSessionDuration,
|
|
1749
|
-
sessionDaysLeft: this.app.opts.sessionDaysLeft ?? null,
|
|
1750
|
-
sessionId: this.app.opts.sessionId || null
|
|
1751
|
-
})
|
|
1752
|
-
});
|
|
1753
|
-
}
|
|
1754
|
-
reactsTo(action) {
|
|
1755
|
-
if (action.type.startsWith("filter")) return true;
|
|
1756
|
-
if (action.type.startsWith("cohort")) return true;
|
|
1757
|
-
if (action.type.startsWith("tab")) return true;
|
|
1758
|
-
if (action.type == "plot_prep") return true;
|
|
1759
|
-
if (action.type == "plot_create") return true;
|
|
1760
|
-
if (action.type == "plot_delete") return true;
|
|
1761
|
-
if (action.type == "app_refresh") return true;
|
|
1762
|
-
if (action.type.endsWith("_customTerm")) return true;
|
|
1763
|
-
if (action.type.endsWith("_group")) return true;
|
|
1764
|
-
}
|
|
1765
|
-
getState(appState) {
|
|
1766
|
-
return {
|
|
1767
|
-
searching: this.searching,
|
|
1768
|
-
// for detection of internal state change
|
|
1769
|
-
nav: appState.nav,
|
|
1770
|
-
activeCohort: appState.activeCohort,
|
|
1771
|
-
termdbConfig: appState.termdbConfig,
|
|
1772
|
-
filter: appState.termfilter.filter,
|
|
1773
|
-
plots: appState.plots,
|
|
1774
|
-
groups: appState.groups
|
|
1775
|
-
};
|
|
1776
|
-
}
|
|
1777
|
-
async main() {
|
|
1778
|
-
this.dom.tabDiv.style("display", this.state.nav.header_mode === "with_tabs" ? "inline-block" : "none");
|
|
1779
|
-
this.dom.tip.hide();
|
|
1780
|
-
this.activeTab = this.state.nav.activeTab;
|
|
1781
|
-
this.prevCohort = this.activeCohort;
|
|
1782
|
-
this.activeCohort = +this.state.activeCohort;
|
|
1783
|
-
this.filterUiRoot = getFilterItemByTag(this.state.filter, "filterUiRoot");
|
|
1784
|
-
this.cohortFilter = getFilterItemByTag(this.state.filter, "cohortFilter");
|
|
1785
|
-
if (this.cohortNames) {
|
|
1786
|
-
this.activeCohortName = this.cohortNames[this.activeCohort];
|
|
1787
|
-
if (this.activeCohort !== -1)
|
|
1788
|
-
this.activeCohortLabel = this.state.termdbConfig.selectCohort.values[this.activeCohort].shortLabel;
|
|
1789
|
-
}
|
|
1790
|
-
this.filterJSON = JSON.stringify(this.state.filter);
|
|
1791
|
-
this.cohortsData = await this.app.vocabApi.getCohortsData();
|
|
1792
|
-
if (this.state.nav.header_mode === "with_tabs") {
|
|
1793
|
-
if (!(this.activeCohort in this.samplecounts)) {
|
|
1794
|
-
this.samplecounts[this.activeCohort] = await this.app.vocabApi.getCohortSampleCount(this.activeCohortName);
|
|
1795
|
-
}
|
|
1796
|
-
if (!(this.filterJSON in this.samplecounts)) {
|
|
1797
|
-
if (!this.filterUiRoot || !this.filterUiRoot.lst.length) {
|
|
1798
|
-
this.samplecounts[this.filterJSON] = this.samplecounts[this.activeCohort];
|
|
1799
|
-
} else {
|
|
1800
|
-
const n = await this.app.vocabApi.getFilteredSampleCount(this.filterJSON);
|
|
1801
|
-
this.samplecounts[this.filterJSON] = n;
|
|
1802
|
-
}
|
|
1803
|
-
}
|
|
1804
|
-
}
|
|
1805
|
-
this.updateUI();
|
|
1806
|
-
}
|
|
1807
|
-
};
|
|
1808
|
-
var navInit = getCompInit(TdbNav);
|
|
1809
|
-
function setRenderers(self) {
|
|
1810
|
-
self.initUI = (appState) => {
|
|
1811
|
-
const verifiedToken = self.app.vocabApi.verifiedToken;
|
|
1812
|
-
const invalidTokenErrorHandling = appState.termdbConfig.invalidTokenErrorHandling;
|
|
1813
|
-
if (!verifiedToken && invalidTokenErrorHandling?.affectedCharts?.includes("*"))
|
|
1814
|
-
throw new Error(appState.termdbConfig.invalidTokenErrorHandling.errorMessage);
|
|
1815
|
-
const header = self.opts.holder.append("div").style("white-space", "nowrap").style("display", "flex").style("align-items", "stretch");
|
|
1816
|
-
const massNav = appState.termdbConfig?.massNav || {};
|
|
1817
|
-
const titleDiv = header.append("div").style("order", "2").style("align-self", "flex-start").style("font-size", "1.1em").style("margin", "50px 10px 0 0").text(massNav?.title?.text);
|
|
1818
|
-
const tabDiv = header.append("div").style("display", "none").style("vertical-align", "bottom");
|
|
1819
|
-
const controlsDiv = header.append("div").style("order", "1").style("margin", "10px 10px 10px auto").style("text-align", "right");
|
|
1820
|
-
if (self.opts.header_mode === "only_buttons") {
|
|
1821
|
-
tabDiv.style("display", "none");
|
|
1822
|
-
titleDiv.style("display", "none");
|
|
1823
|
-
controlsDiv.style("display", "none");
|
|
1824
|
-
}
|
|
1825
|
-
self.opts.holder.attr("class", "sjpp-nav");
|
|
1826
|
-
self.dom = {
|
|
1827
|
-
holder: self.opts.holder,
|
|
1828
|
-
header,
|
|
1829
|
-
tabDiv,
|
|
1830
|
-
controlsDiv,
|
|
1831
|
-
searchDiv: controlsDiv.append("div").style("margin", "10px"),
|
|
1832
|
-
recoverDiv: controlsDiv.append("div").style("display", "inline-block"),
|
|
1833
|
-
pdfDiv: controlsDiv.append("div").style("display", "inline-block").style("padding", "4px").style("vertical-align", "middle"),
|
|
1834
|
-
deleteAllDiv: controlsDiv.append("div").style("display", "inline-block").style("padding", "4px").style("vertical-align", "middle"),
|
|
1835
|
-
helpDiv: controlsDiv.append("div").style("display", "none"),
|
|
1836
|
-
subheaderDiv: self.opts.holder.append("div").style("display", "block").style("border-bottom", "1px solid #000"),
|
|
1837
|
-
messageDiv: self.opts.holder.append("div").style("margin", "30px").style("display", "none"),
|
|
1838
|
-
titleDiv,
|
|
1839
|
-
tip: new Menu({ padding: "5px" })
|
|
1840
|
-
};
|
|
1841
|
-
icons["trash"](self.dom.deleteAllDiv, {
|
|
1842
|
-
handler: self.deletePlots,
|
|
1843
|
-
title: "Delete all plots. To revert, click Undo button"
|
|
1844
|
-
});
|
|
1845
|
-
icons["pdf"](self.dom.pdfDiv, {
|
|
1846
|
-
handler: self.opts.downloadPlots,
|
|
1847
|
-
title: "Generate a PDF of all the plots opened"
|
|
1848
|
-
});
|
|
1849
|
-
if (self.opts.header_mode === "with_cohortHtmlSelect") {
|
|
1850
|
-
self.dom.cohortStandaloneDiv = header.append("div").style("display", "inline-block").style("margin", "10px").style("vertical-align", "top");
|
|
1851
|
-
self.dom.cohortStandaloneDiv.append("label").html("Cohort: ");
|
|
1852
|
-
self.dom.cohortSelect = self.dom.cohortStandaloneDiv.append("select").on("change", async function() {
|
|
1853
|
-
self.app.dispatch({ type: "cohort_set", activeCohort: +this.value });
|
|
1854
|
-
});
|
|
1855
|
-
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);
|
|
1856
|
-
}
|
|
1857
|
-
self.dom.subheader = Object.freeze({
|
|
1858
|
-
// For either the COHORT or ABOUT tab
|
|
1859
|
-
about: self.dom.subheaderDiv.append("div").attr("data-testid", "sjpp-mass-nav-subheader-about").style("display", "none"),
|
|
1860
|
-
search: self.dom.subheaderDiv.append("div").attr("data-testid", "sjpp-mass-nav-subheader-search").style("display", "none"),
|
|
1861
|
-
groups: self.dom.subheaderDiv.append("div").attr("data-testid", "sjpp-mass-nav-subheader-groups").style("display", "none"),
|
|
1862
|
-
charts: self.dom.subheaderDiv.append("div").attr("data-testid", "sjpp-mass-nav-subheader-charts").style("display", "none"),
|
|
1863
|
-
filter: self.dom.subheaderDiv.append("div").attr("data-testid", "sjpp-mass-nav-subheader-filter").style("display", "none"),
|
|
1864
|
-
chat: self.dom.subheaderDiv.append("div").attr("data-testid", "sjpp-mass-nav-subheader-chat").style("display", "none"),
|
|
1865
|
-
user: self.dom.subheaderDiv.append("div").attr("data-testid", "sjpp-mass-nav-subheader-user").style("display", "none")
|
|
1866
|
-
// cart: self.dom.subheaderDiv.append('div').style('display', 'none').html('<br/>Cart feature under construction - work in progress<br/> <br/>'),
|
|
1867
|
-
});
|
|
1868
|
-
if (!massNav.tabs?.about?.hide) {
|
|
1869
|
-
self.tabs.push(aboutTab);
|
|
1870
|
-
const override = Object.assign({}, massNav.tabs?.about);
|
|
1871
|
-
if (appState.termdbConfig?.selectCohort) {
|
|
1872
|
-
if (!override.top) override.top = "COHORT";
|
|
1873
|
-
} else {
|
|
1874
|
-
if (!override.mid) override.mid = self.pickDatasetLabel(appState);
|
|
1875
|
-
}
|
|
1876
|
-
Object.assign(aboutTab, override);
|
|
1877
|
-
}
|
|
1878
|
-
if (!massNav.tabs?.charts?.hide) {
|
|
1879
|
-
self.tabs.push(chartTab);
|
|
1880
|
-
Object.assign(chartTab, massNav.tabs?.charts);
|
|
1881
|
-
}
|
|
1882
|
-
if (!massNav.tabs?.groups?.hide) {
|
|
1883
|
-
self.tabs.push(groupsTab);
|
|
1884
|
-
Object.assign(groupsTab, massNav.tabs?.groups);
|
|
1885
|
-
}
|
|
1886
|
-
if (!massNav.tabs?.filter?.hide) {
|
|
1887
|
-
self.tabs.push(filterTab);
|
|
1888
|
-
Object.assign(filterTab, massNav.tabs?.filter);
|
|
1889
|
-
}
|
|
1890
|
-
if (!massNav.tabs?.chat?.hide) {
|
|
1891
|
-
if (appState.termdbConfig?.queries?.chat) {
|
|
1892
|
-
const chatTab = { top: "CHAT", mid: "", btm: "", subheader: "chat" };
|
|
1893
|
-
Object.assign(chatTab, massNav.tabs?.chat);
|
|
1894
|
-
chatTab.top = "CHAT";
|
|
1895
|
-
self.tabs.push(chatTab);
|
|
1896
|
-
} else {
|
|
1897
|
-
const searchTab = { top: "SEARCH", mid: "", btm: "", subheader: "chat" };
|
|
1898
|
-
Object.assign(searchTab, massNav.tabs?.chat);
|
|
1899
|
-
searchTab.top = "SEARCH";
|
|
1900
|
-
self.tabs.push(searchTab);
|
|
1901
|
-
}
|
|
1902
|
-
}
|
|
1903
|
-
if (!massNav.tabs?.user?.hide) {
|
|
1904
|
-
const override = Object.assign({}, massNav.tabs?.user);
|
|
1905
|
-
if (!appState.termdbConfig?.requiredAuth?.length) {
|
|
1906
|
-
if (!override.top) override.top = "SESSION";
|
|
1907
|
-
}
|
|
1908
|
-
self.tabs.push(Object.assign({}, userTab, override));
|
|
1909
|
-
}
|
|
1910
|
-
const table = self.dom.tabDiv.append("table").attr("data-testid", "sjpp-nav-tabs-table").style("border-collapse", "collapse").style("height", "100%");
|
|
1911
|
-
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(
|
|
1912
|
-
(key, i) => self.tabs.map((row, colNum) => {
|
|
1913
|
-
return {
|
|
1914
|
-
rowNum: i,
|
|
1915
|
-
key,
|
|
1916
|
-
colNum,
|
|
1917
|
-
label: row[key],
|
|
1918
|
-
subheader: row.subheader,
|
|
1919
|
-
disabled: row.disabled,
|
|
1920
|
-
disabledMessage: row.disabledMessage
|
|
1921
|
-
};
|
|
1922
|
-
})
|
|
1923
|
-
).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", (event, d) => {
|
|
1924
|
-
self.setTab(event, d);
|
|
1925
|
-
}).on("mouseover", (event, d) => {
|
|
1926
|
-
self.mouseover(event, d);
|
|
1927
|
-
}).on("mouseout", () => {
|
|
1928
|
-
self.mouseout();
|
|
1929
|
-
});
|
|
1930
|
-
self.dom.trs = table.selectAll("tr");
|
|
1931
|
-
self.dom.tds = table.selectAll("td");
|
|
1932
|
-
self.subheaderKeys = self.tabs.map((d) => d.subheader);
|
|
1933
|
-
};
|
|
1934
|
-
self.deletePlots = () => {
|
|
1935
|
-
const state = self.app.getState();
|
|
1936
|
-
const subactions = [];
|
|
1937
|
-
for (const plot of state.plots) subactions.push({ type: "plot_delete", id: plot.id });
|
|
1938
|
-
self.app.dispatch({ type: "app_refresh", subactions });
|
|
1939
|
-
};
|
|
1940
|
-
self.updateUI = async () => {
|
|
1941
|
-
if (!self.dom.subheaderDiv) return;
|
|
1942
|
-
const isUserTab = self.tabs[self.activeTab]?.subheader === "user";
|
|
1943
|
-
if (self.activeTab && !isUserTab && self.state.termdbConfig.selectCohort && self.activeCohort == -1) {
|
|
1944
|
-
self.dom.subheaderDiv.style("display", "none");
|
|
1945
|
-
self.dom.messageDiv.selectAll("text").remove();
|
|
1946
|
-
self.dom.messageDiv.style("display", "").text('No cohort selected. Please select a cohort in the "COHORT" tab.');
|
|
1947
|
-
} else {
|
|
1948
|
-
if (self.dom.subheaderDiv) self.dom.subheaderDiv.style("display", self.activeTab != -1 ? "block" : "none");
|
|
1949
|
-
if (self.dom.messageDiv) self.dom.messageDiv.style("display", "none");
|
|
1950
|
-
}
|
|
1951
|
-
const selectCohort = self.state.termdbConfig.selectCohort;
|
|
1952
|
-
const massNav = self.state.termdbConfig.massNav;
|
|
1953
|
-
self.dom.searchDiv.style("display", selectCohort && self.activeCohort == -1 ? "none" : "inline-block");
|
|
1954
|
-
self.dom.header.style("border-bottom", self.state.nav.header_mode === "with_tabs" ? "1px solid #000" : "");
|
|
1955
|
-
self.dom.tds.style("display", "").style("color", (d) => d.colNum == self.activeTab ? activeTabTextColor : inactiveTabTextColor).style(
|
|
1956
|
-
"background-color",
|
|
1957
|
-
(d) => d.colNum == self.activeTab && self.dom.subheaderDiv.style("display") != "none" ? self.state.termdbConfig.massNav?.activeColor || activeTabBgColor : "transparent"
|
|
1958
|
-
).html(function(d) {
|
|
1959
|
-
if (d.key == "top") return this.innerHTML;
|
|
1960
|
-
if (d.subheader == "groups") {
|
|
1961
|
-
if (d.key == "mid") return self.state.groups.length || "NONE";
|
|
1962
|
-
return "";
|
|
1963
|
-
}
|
|
1964
|
-
if (d.subheader === "charts") {
|
|
1965
|
-
const n = self.state.plots.filter((p) => !p.parentId).length;
|
|
1966
|
-
if (d.key == "mid") return !n ? "NONE" : n;
|
|
1967
|
-
else return "";
|
|
1968
|
-
} else if (d.subheader === "about") {
|
|
1969
|
-
if (self.activeCohort != -1 && self.activeCohort in self.samplecounts) {
|
|
1970
|
-
const aboutMap = {
|
|
1971
|
-
top: this.innerHTML,
|
|
1972
|
-
mid: self.activeCohortLabel,
|
|
1973
|
-
btm: self.samplecounts[self.activeCohort]
|
|
1974
|
-
};
|
|
1975
|
-
return aboutMap[d.key] || "";
|
|
1976
|
-
} else if (!selectCohort) {
|
|
1977
|
-
const aboutMap = {
|
|
1978
|
-
top: massNav?.tabs?.about?.top || "ABOUT",
|
|
1979
|
-
mid: massNav?.tabs?.about?.mid || this.innerHTML,
|
|
1980
|
-
btm: massNav?.tabs?.about?.btm || self.samplecounts[self.activeCohort]
|
|
1981
|
-
};
|
|
1982
|
-
return aboutMap[d.key] || "";
|
|
1983
|
-
} else {
|
|
1984
|
-
return d.key === "mid" ? "NONE" : this.innerHTML;
|
|
1985
|
-
}
|
|
1986
|
-
} else if (d.subheader === "filter") {
|
|
1987
|
-
const filter = self.filterUiRoot ? self.filterUiRoot : { lst: [] };
|
|
1988
|
-
if (filter.lst.length === 0) {
|
|
1989
|
-
return d.key === "mid" ? "NONE" : "";
|
|
1990
|
-
} else {
|
|
1991
|
-
const n = self.samplecounts[self.filterJSON] != void 0 ? "" + self.samplecounts[self.filterJSON] : "";
|
|
1992
|
-
return d.key === "mid" ? filter.lst.length : n;
|
|
1993
|
-
}
|
|
1994
|
-
} else {
|
|
1995
|
-
return d.key === "mid" ? this.innerHTML : " ";
|
|
1996
|
-
}
|
|
1997
|
-
});
|
|
1998
|
-
for (const key in self.dom.subheader) {
|
|
1999
|
-
self.dom.subheader[key].style(
|
|
2000
|
-
"display",
|
|
2001
|
-
self.activeTab == -1 ? "none" : self.tabs[self.activeTab].subheader === key ? "block" : "none"
|
|
2002
|
-
);
|
|
2003
|
-
}
|
|
2004
|
-
if (self.opts.header_mode === "with_cohortHtmlSelect") {
|
|
2005
|
-
self.dom.cohortSelect.selectAll("option").property("value", self.activeCohort);
|
|
2006
|
-
}
|
|
2007
|
-
};
|
|
2008
|
-
}
|
|
2009
|
-
function setInteractivity(self) {
|
|
2010
|
-
self.setTab = async (event, d) => {
|
|
2011
|
-
if (d.disabled) return;
|
|
2012
|
-
if (d.colNum === self.activeTab && !self.searching) {
|
|
2013
|
-
if (self.activeTab == 0) return;
|
|
2014
|
-
self.prevCohort = self.activeCohort;
|
|
2015
|
-
await self.updateUI();
|
|
2016
|
-
self.app.dispatch({ type: "tab_set", activeTab: -1 });
|
|
2017
|
-
return;
|
|
2018
|
-
}
|
|
2019
|
-
self.activeTab = d.colNum;
|
|
2020
|
-
self.searching = false;
|
|
2021
|
-
self.app.dispatch({ type: "tab_set", activeTab: self.activeTab });
|
|
2022
|
-
const chartsIdx = self.subheaderKeys.indexOf("charts");
|
|
2023
|
-
if (self.activeTab == chartsIdx && self.activeCohort != -1 && !self.state.plots.length) {
|
|
2024
|
-
const defaultChartType = self.state.termdbConfig.defaultChartType || "dictionary";
|
|
2025
|
-
self.app.dispatch({
|
|
2026
|
-
type: "plot_create",
|
|
2027
|
-
id: getId(),
|
|
2028
|
-
config: { chartType: defaultChartType }
|
|
2029
|
-
});
|
|
2030
|
-
}
|
|
2031
|
-
};
|
|
2032
|
-
self.mouseover = (event, d) => {
|
|
2033
|
-
const defaultActiveColor = self.state.termdbConfig.massNav?.activeColor || activeTabBgColor;
|
|
2034
|
-
self.dom.tds.style("background-color", (t) => {
|
|
2035
|
-
if (t.colNum === d.colNum)
|
|
2036
|
-
return self.activeTab == t.colNum ? self.state.termdbConfig.massNav?.activeColorHover || activeTabBgColorHover : inactiveTabBgColorHover;
|
|
2037
|
-
return self.activeTab == t.colNum ? defaultActiveColor : "transparent";
|
|
2038
|
-
});
|
|
2039
|
-
};
|
|
2040
|
-
self.mouseout = () => {
|
|
2041
|
-
const defaultActiveColor = self.state.termdbConfig.massNav?.activeColor || activeTabBgColor;
|
|
2042
|
-
self.dom.tds.style("background-color", (t) => self.activeTab == t.colNum ? defaultActiveColor : "transparent");
|
|
2043
|
-
};
|
|
2044
|
-
self.pickDatasetLabel = (appState) => {
|
|
2045
|
-
const dslabel = appState.vocab.dslabel.toUpperCase();
|
|
2046
|
-
return dslabel.length > 10 ? `${dslabel.slice(0, 10)}...` : dslabel;
|
|
2047
|
-
};
|
|
2048
|
-
}
|
|
2049
|
-
|
|
2050
|
-
export {
|
|
2051
|
-
getId,
|
|
2052
|
-
navInit
|
|
2053
|
-
};
|
|
2054
|
-
//# sourceMappingURL=chunk-B5IJAQG4.js.map
|