@sjcrh/proteinpaint-client 2.204.0 → 2.206.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-5OYM4MXA.js +1367 -0
- package/dist/AggMatrixInput-4VTI4Y6E.js +277 -0
- package/dist/AggregateMatrix-K7SGNO63.js +41 -0
- package/dist/AppHeader-WU6TO2OZ.js +830 -0
- package/dist/BoxPlot-OW7U3XTF.js +1211 -0
- package/dist/CorrelationVolcano-B3JTTZHF.js +614 -0
- package/dist/Cuminc-AJEXWRU2.js +1219 -0
- package/dist/DE-2J7DSRPC.js +89 -0
- package/dist/DE-2J7DSRPC.js.map +7 -0
- package/dist/DEinput-I7JWNOSD.js +499 -0
- package/dist/DEinput-I7JWNOSD.js.map +7 -0
- package/dist/DM-NQ46YPGF.js +90 -0
- package/dist/DM-NQ46YPGF.js.map +7 -0
- package/dist/DifferentialAnalysis-BFCQBX5J.js +237 -0
- package/dist/Disco-ZJLVQRTC.js +3389 -0
- package/dist/Disco.UI-AEDACXW2.js +243 -0
- package/dist/DmrPlot-QMRXAOM3.js +637 -0
- package/dist/GB-MFU2UJ22.js +1391 -0
- package/dist/GSEA-E3NHU22A.js +851 -0
- package/dist/GeneExpInput-MIUNSOPY.js +362 -0
- package/dist/Geomap-HAJG3STN.js +84 -0
- package/dist/HicApp-ECFFIRWI.js +2245 -0
- package/dist/IDCViewer-TNSD3U2V.js +10812 -0
- package/dist/NumBinaryEditor-CNBGZ6WY.js +279 -0
- package/dist/NumBinaryEditor.unit.spec-SKFDALF3.js +312 -0
- package/dist/NumContEditor-7ID2U7JL.js +105 -0
- package/dist/NumContEditor.unit.spec-XHSQSAWK.js +164 -0
- package/dist/NumCustomBinEditor-PAIPRJPO.js +33 -0
- package/dist/NumCustomBinEditor.unit.spec-QYVZMMHV.js +397 -0
- package/dist/NumDiscreteEditor-K2NZZQTH.js +170 -0
- package/dist/NumDiscreteEditor.unit.spec-3CG5VEQL.js +233 -0
- package/dist/NumRegularBinEditor-EOVZ22TP.js +33 -0
- package/dist/NumRegularBinEditor.unit.spec-FHTVH5FH.js +278 -0
- package/dist/NumSplineEditor-N3REMJUC.js +210 -0
- package/dist/NumSplineEditor.unit.spec-DZCP35GL.js +224 -0
- package/dist/NumericDensity-42MWVI2S.js +33 -0
- package/dist/NumericDensity.unit.spec-T2HHSQON.js +418 -0
- package/dist/NumericHandler-5XU3SSPD.js +34 -0
- package/dist/NumericHandler.unit.spec-3F23KSAQ.js +214 -0
- package/dist/ProteomeInput-UN2BUNRO.js +388 -0
- package/dist/Regression-HWLJENA5.js +1416 -0
- package/dist/RunChart2-YO55WE4M.js +749 -0
- package/dist/SC-LEDJ4DQR.js +1107 -0
- package/dist/Violin-E6PDJZ2B.js +1082 -0
- package/dist/Volcano-XJTBWYUK.js +1649 -0
- package/dist/Volcano-XJTBWYUK.js.map +7 -0
- package/dist/Wsi-S675CYTW.js +431 -0
- package/dist/adSandbox-ZJQ5ZW2T.js +33 -0
- package/dist/animatedBubbleChart-LRUS7W36.js +547 -0
- package/dist/app-7Q3QIBU4.js +32 -0
- package/dist/app-PKSI4MV5.js +42 -0
- package/dist/app.js +17 -17
- package/dist/bam-X5JH5ZT7.js +876 -0
- package/dist/barchart-UT6J4L2N.js +42 -0
- package/dist/barchart2-ZG5QJO3C.js +309 -0
- package/dist/block-TC466NGW.js +6249 -0
- package/dist/block.init-CIBNSYAC.js +33 -0
- package/dist/block.mds.expressionrank-EY5PCQCK.js +354 -0
- package/dist/block.mds.geneboxplot-R6AOMHO5.js +823 -0
- package/dist/block.mds.junction-JMV6FNYC.js +1539 -0
- package/dist/block.mds.svcnv-IHTV3QYG.js +6796 -0
- package/dist/block.svg-NTFLVQAQ.js +159 -0
- package/dist/block.tk.aicheck-FYPL32Y4.js +278 -0
- package/dist/block.tk.ase-FWCB6VBO.js +360 -0
- package/dist/block.tk.bam-Q5UFUABN.js +1901 -0
- package/dist/block.tk.bedgraphdot-KBI3GFDM.js +379 -0
- package/dist/block.tk.bigwig.ui-KXNFX7G7.js +206 -0
- package/dist/block.tk.hicstraw-MQBH3YAJ.js +818 -0
- package/dist/block.tk.junction-EBTVXLJH.js +2358 -0
- package/dist/block.tk.junction.textmatrixui-ETYLCP2O.js +194 -0
- package/dist/block.tk.ld-NLB6L6WQ.js +94 -0
- package/dist/block.tk.menu-PJLCOXVJ.js +1024 -0
- package/dist/block.tk.pgv-JOIQVWL2.js +938 -0
- package/dist/brainImaging-SPRC3QFB.js +515 -0
- package/dist/brainRegions-LGQGRWG7.js +217 -0
- package/dist/brainRegions-LGQGRWG7.js.map +7 -0
- package/dist/bubbleHeatmap-CFTZ5RXH.js +378 -0
- package/dist/cellTypeBubbleHeatmap-DXPLFT5U.js +278 -0
- package/dist/chunk-2BQ572SL.js +102 -0
- package/dist/chunk-2DQIQYY3.js +103 -0
- package/dist/chunk-2POQWEK6.js +134 -0
- package/dist/chunk-2SQEVMAL.js +446 -0
- package/dist/chunk-37HTZ6IG.js +158 -0
- package/dist/chunk-452765PG.js +2676 -0
- package/dist/chunk-4DXQJGJ7.js +31 -0
- package/dist/chunk-4OLM3KSB.js +2708 -0
- package/dist/chunk-4OLM3KSB.js.map +7 -0
- package/dist/chunk-54KC7DAB.js +178 -0
- package/dist/chunk-54KC7DAB.js.map +7 -0
- package/dist/chunk-5D5YTFI2.js +783 -0
- package/dist/chunk-5D5YTFI2.js.map +7 -0
- package/dist/chunk-5DBW3WLK.js +129 -0
- package/dist/chunk-5ILEFNXJ.js +402 -0
- package/dist/chunk-5UO7MKCO.js +59 -0
- package/dist/chunk-7R7P6VMT.js +243 -0
- package/dist/chunk-7X6NF7NI.js +96 -0
- package/dist/chunk-ANGLZ4XR.js +26 -0
- package/dist/chunk-BMQDU7KN.js +38 -0
- package/dist/chunk-C5TU4AYP.js +281 -0
- package/dist/chunk-DBQA6QIJ.js +4311 -0
- package/dist/chunk-DBQA6QIJ.js.map +7 -0
- package/dist/chunk-DHNET3P4.js +42 -0
- package/dist/chunk-EGKHDALO.js +382 -0
- package/dist/chunk-EPWGUWQP.js +34 -0
- package/dist/chunk-F3EYPES3.js +1339 -0
- package/dist/chunk-F4DM3WS4.js +194 -0
- package/dist/chunk-FTLCINDC.js +294 -0
- package/dist/chunk-GT6WJUJY.js +480 -0
- package/dist/chunk-GWCK5QGV.js +70 -0
- package/dist/chunk-HJSGHFJ6.js +464 -0
- package/dist/chunk-HS6BTSFX.js +49 -0
- package/dist/chunk-IB5TKNG5.js +5071 -0
- package/dist/chunk-IIMTOPH3.js +54 -0
- package/dist/chunk-ILEXRHF7.js +367 -0
- package/dist/chunk-ILEXRHF7.js.map +7 -0
- package/dist/chunk-IZUYLFOX.js +1608 -0
- package/dist/chunk-IZUYLFOX.js.map +7 -0
- package/dist/chunk-JAXN3Q3K.js +272 -0
- package/dist/chunk-K6PYTAXW.js +2853 -0
- package/dist/chunk-K6PYTAXW.js.map +7 -0
- package/dist/chunk-KIRZXPMB.js +141 -0
- package/dist/chunk-KT4OZVO3.js +1275 -0
- package/dist/chunk-KT4OZVO3.js.map +7 -0
- package/dist/chunk-L32KMIC3.js +54 -0
- package/dist/chunk-LB7NENEB.js +123 -0
- package/dist/chunk-LDWMVZYF.js +562 -0
- package/dist/chunk-M367Y7ML.js +140 -0
- package/dist/chunk-M4XXKTH2.js +339 -0
- package/dist/chunk-ME7OF3CS.js +176 -0
- package/dist/chunk-N2CXLMNX.js +626 -0
- package/dist/chunk-N7DVQTPC.js +119 -0
- package/dist/chunk-N7TD7N7D.js +518 -0
- package/dist/chunk-NBX6TT5C.js +299 -0
- package/dist/chunk-NLR7JIMM.js +1986 -0
- package/dist/chunk-NLR7JIMM.js.map +7 -0
- package/dist/chunk-NSRGYBDM.js +339 -0
- package/dist/chunk-NVS7KYYI.js +379 -0
- package/dist/chunk-OVPEMVXT.js +397 -0
- package/dist/chunk-OXWLQQXL.js +274 -0
- package/dist/chunk-Q5SK3U2T.js +24163 -0
- package/dist/chunk-Q5SK3U2T.js.map +7 -0
- package/dist/chunk-QGGSYEVJ.js +55 -0
- package/dist/chunk-QLEVONLD.js +50 -0
- package/dist/chunk-RFW5BRIZ.js +1233 -0
- package/dist/chunk-RFW5BRIZ.js.map +7 -0
- package/dist/chunk-RNWHB5DI.js +98 -0
- package/dist/chunk-RPDVFM7E.js +2133 -0
- package/dist/chunk-RPDVFM7E.js.map +7 -0
- package/dist/chunk-RUHLDUOT.js +203 -0
- package/dist/chunk-RV34WFGZ.js +197 -0
- package/dist/chunk-SDVE5ECI.js +6360 -0
- package/dist/chunk-SWO6DZTG.js +170 -0
- package/dist/chunk-SYPSS3JQ.js +387 -0
- package/dist/chunk-TDM3645O.js +2327 -0
- package/dist/chunk-VVO3R5JV.js +217 -0
- package/dist/chunk-VYEU6Y35.js +14 -0
- package/dist/chunk-WGXC6IEF.js +263 -0
- package/dist/chunk-WPDM57B5.js +1720 -0
- package/dist/chunk-WS7WKS2B.js +2784 -0
- package/dist/chunk-WTAPOH2W.js +22699 -0
- package/dist/chunk-WTAPOH2W.js.map +7 -0
- package/dist/chunk-X63NSV33.js +276 -0
- package/dist/chunk-XXNRSSBR.js +56 -0
- package/dist/chunk-YD6UGDFI.js +102 -0
- package/dist/chunk-YRIYDFNU.js +160 -0
- package/dist/chunk-YY5WQQ3J.js +194 -0
- package/dist/chunk-Z2ZITHT4.js +4195 -0
- package/dist/chunk-Z4SM3FBK.js +302 -0
- package/dist/chunk-ZEYEIUEZ.js +240 -0
- package/dist/chunk-ZLYTDHQP.js +677 -0
- package/dist/chunk-ZWCVRVV4.js +550 -0
- package/dist/cohort-FZNMFWOX.js +70 -0
- package/dist/condition-AJJLFCBQ.js +327 -0
- package/dist/controls-SZOLV37V.js +34 -0
- package/dist/controls.config-CVP75WFA.js +34 -0
- package/dist/correlation-UFJFQHQ3.js +95 -0
- package/dist/customdata.inputui-HOVA4A6O.js +284 -0
- package/dist/dataDownload-VTUG4IOK.js +329 -0
- package/dist/databrowser.ui-O5S4Y4EK.js +425 -0
- package/dist/dictionary-L2UNNNP7.js +113 -0
- package/dist/dnaMethylation-B4SWZI4O.js +33 -0
- package/dist/dnaMethylation.integration.spec-ANJAMNYJ.js +198 -0
- package/dist/dofetch-F5XSHQIS.js +48 -0
- package/dist/e2pca-66ARIMKL.js +344 -0
- package/dist/ep-OFGJYVUY.js +1249 -0
- package/dist/expclust.gdc.spec-22RXQTTP.js +302 -0
- package/dist/facet-GVZQ3RPN.js +519 -0
- package/dist/gb-HEPGVYEK.js +81 -0
- package/dist/geneExpClustering-3NU2U422.js +244 -0
- package/dist/geneExpression-FXQ4L2J2.js +310 -0
- package/dist/geneExpression-XYVYJJA5.js +33 -0
- package/dist/geneExpression.unit.spec-K3FIRSNK.js +99 -0
- package/dist/geneORA-5M2JSDMF.js +273 -0
- package/dist/geneRanking-TP3R3CS3.js +548 -0
- package/dist/geneVariant-232EYUFJ.js +36 -0
- package/dist/geneVariant-BHXTPUDC.js +286 -0
- package/dist/geneVariant.integration.spec-ICFHVFIR.js +388 -0
- package/dist/genefusion.ui-ABRCUQFC.js +303 -0
- package/dist/geneset-N42FIVA6.js +203 -0
- package/dist/genomeBrowser.spec-5HKQKLRU.js +276 -0
- package/dist/grin2-H2KJYLP6.js +1137 -0
- package/dist/grin2-NGMTEMXF.js +70 -0
- package/dist/hierCluster-JU5JPLM7.js +55 -0
- package/dist/hierCluster-LSSH275H.js +59 -0
- package/dist/hierCluster.config-ILOR7GBB.js +36 -0
- package/dist/hierCluster.integration.spec-CNR5OJOH.js +483 -0
- package/dist/hierCluster.interactivity-TLEIVTFK.js +49 -0
- package/dist/hierCluster.renderers-P7JNIT3N.js +19 -0
- package/dist/imagePlot-BF67SXQR.js +156 -0
- package/dist/importPlot-OHXSXNZN.js +8 -0
- package/dist/isoformExpression-4VKHE4HA.js +35 -0
- package/dist/isoformExpression.unit.spec-4TVSIFG4.js +237 -0
- package/dist/junction-VUHORV43.js +36 -0
- package/dist/junction.customTerm-FRYWSS4P.js +16 -0
- package/dist/junction.unit.spec-KKVLYT7Q.js +182 -0
- package/dist/launch.adhoc-UDYMFZTQ.js +37 -0
- package/dist/leftlabel.sample-R5FFBWG3.js +258 -0
- package/dist/legacyDataset-IEFWFVS6.js +117 -0
- package/dist/lollipop-3IX6ZYUN.js +166 -0
- package/dist/maf-42UFYSL4.js +455 -0
- package/dist/maftimeline-M5WYEN62.js +587 -0
- package/dist/matrix-CI76EDHU.js +54 -0
- package/dist/matrix-WJZKA6VR.js +59 -0
- package/dist/matrix.cells-ZFKVIPDC.js +26 -0
- package/dist/matrix.config-24TFHBEM.js +37 -0
- package/dist/matrix.data-NCGZPNWR.js +23 -0
- package/dist/matrix.groups-XQJTGM6M.js +26 -0
- package/dist/matrix.integration.spec-OGXZUDE6.js +3160 -0
- package/dist/matrix.interactivity-ZOOTPNSW.js +37 -0
- package/dist/matrix.layout-5J2YENK3.js +39 -0
- package/dist/matrix.legend-U36VCS46.js +20 -0
- package/dist/matrix.renderers-4KFE7ZVR.js +34 -0
- package/dist/matrix.serieses-AW7XBXLJ.js +19 -0
- package/dist/matrix.sort-7PMECLOE.js +26 -0
- package/dist/matrix.sort.unit.spec-GIA2YOTQ.js +468 -0
- package/dist/matrix.sorterUi-J6PRUT6J.js +16 -0
- package/dist/matrix.sorterUi.unit.spec-OPGKZZL6.js +338 -0
- package/dist/matrix.unit.spec-7UIVVR4T.js +150 -0
- package/dist/mavb-MSYUMT6W.js +727 -0
- package/dist/mds.fimo-OYEAQP37.js +513 -0
- package/dist/mds.samplescatterplot-EXISSRQQ.js +1545 -0
- package/dist/mds.survivalplot-SZST6BLN.js +477 -0
- package/dist/multivalue-YDE7L75Y.js +83 -0
- package/dist/numericDictTermCluster-5AKP6ICC.js +63 -0
- package/dist/oncomatrix-2OEIYWR6.js +290 -0
- package/dist/oncomatrix.spec-CXQW4JWU.js +443 -0
- package/dist/plot.2dvaf-LN7A3NNC.js +372 -0
- package/dist/plot.app-YIQOY2Z7.js +36 -0
- package/dist/plot.barplot-HF2J25XP.js +97 -0
- package/dist/plot.boxplot-YJH4L27U.js +146 -0
- package/dist/plot.brainImaging-PS4TRSPI.js +51 -0
- package/dist/plot.disco-BN5RNZ6Q.js +99 -0
- package/dist/plot.ssgq-N2HTOIY3.js +134 -0
- package/dist/plot.vaf2cov-6AOHRUQ2.js +253 -0
- package/dist/polar2-TC5OEJRE.js +232 -0
- package/dist/profileForms-5WV2TSBB.js +941 -0
- package/dist/profilePlot-OJLLW44P.js +49 -0
- package/dist/proteinView-CGNAJN4S.js +1357 -0
- package/dist/proteinView-CGNAJN4S.js.map +7 -0
- package/dist/proteomeCohortCompare-XXQGGVCF.js +912 -0
- package/dist/proteomeCohortCompare-XXQGGVCF.js.map +7 -0
- package/dist/pseudbulk.unit.spec-RAYRGN6C.js +86 -0
- package/dist/pseudobulk-ADHAYVSQ.js +35 -0
- package/dist/qualitative-JXEI3IYC.js +38 -0
- package/dist/radar2-BWTKSTT3.js +327 -0
- package/dist/radarFacility2-WIRSKTDG.js +335 -0
- package/dist/rememberedGvQ.unit.spec-N43O4YTF.js +211 -0
- package/dist/render-J7WOYBOL.js +33 -0
- package/dist/report-DRPCXX2B.js +217 -0
- package/dist/sampleView-BV6BQGGQ.js +43 -0
- package/dist/samplelst-ZD63EYO7.js +106 -0
- package/dist/samplematrix-ZZ3DVELU.js +2193 -0
- package/dist/sc-MUI43YTB.js +81 -0
- package/dist/scatter-7B44HTKN.js +88 -0
- package/dist/scatter-UEDVIE4Y.js +880 -0
- package/dist/selectGenomeWithTklst-WGOKGVZ5.js +129 -0
- package/dist/singleCellCellType-Z7OXK7PI.js +33 -0
- package/dist/singleCellCellType.unit.spec-IIOVCCJQ.js +154 -0
- package/dist/singleCellGeneExpression-LYZAIJ2Z.js +33 -0
- package/dist/singleCellGeneExpression.unit.spec-67AAWZTG.js +148 -0
- package/dist/singleCellPlot-TXPYQLSH.js +49 -0
- package/dist/singlecell-22OG6HNI.js +1566 -0
- package/dist/singlecell-7TBALI2S.js +81 -0
- package/dist/snp-3U2G3Z57.js +33 -0
- package/dist/snp.unit.spec-BMBBUBYD.js +171 -0
- package/dist/snplocus-SSVZDIQV.js +203 -0
- package/dist/spliceevent.a53ss.diagram-FK7CN4AU.js +146 -0
- package/dist/spliceevent.exonskip.diagram-EFLGV3O4.js +278 -0
- package/dist/spliceevent.noeventdiagram-2DYO7CCZ.js +455 -0
- package/dist/ssGSEA-52LWBQJP.js +33 -0
- package/dist/ssGSEA.unit.spec-3JV6WHUQ.js +83 -0
- package/dist/stattable-RLMYQ4G6.js +117 -0
- package/dist/studyCatalog-DKB3U7EV.js +414 -0
- package/dist/studyCatalog-DKB3U7EV.js.map +7 -0
- package/dist/summarizeCnvGeneexp-QPRYAKC2.js +158 -0
- package/dist/summarizeGeneexpSurvival-RWVQXEKB.js +105 -0
- package/dist/summarizeMutationCnv-DW5F6NUJ.js +159 -0
- package/dist/summarizeMutationDiagnosis-5FOQ7CHI.js +35 -0
- package/dist/summarizeMutationSurvival-4UKB4EVO.js +99 -0
- package/dist/summary-TYC6QNT4.js +42 -0
- package/dist/summary.integration.spec-5GLJJZNM.js +409 -0
- package/dist/summaryInput-4IJGKW4P.js +242 -0
- package/dist/sunburst-G7DGATWP.js +278 -0
- package/dist/survival-IHM6A7LL.js +1248 -0
- package/dist/survival-IHM6A7LL.js.map +7 -0
- package/dist/survival-MKNABJPU.js +53 -0
- package/dist/survival.integration.spec-THOKI3DL.js +613 -0
- package/dist/survival.integration.spec-THOKI3DL.js.map +7 -0
- package/dist/svgraph-VB7JWWR5.js +1382 -0
- package/dist/svmr-VLQIO2U5.js +3837 -0
- package/dist/table-EAXMDWOY.js +197 -0
- package/dist/termCollection-5LG7ICQY.js +252 -0
- package/dist/termCollection-SB6MWLFK.js +33 -0
- package/dist/termCollection.unit.spec-H5ITGTR3.js +299 -0
- package/dist/termCollectionFractionSelection-2XZSTDCQ.js +42 -0
- package/dist/termCollectionFractionSelection.unit.spec-BIO7V6KA.js +188 -0
- package/dist/tk-TRWYZLQ2.js +1121 -0
- package/dist/tk-VZI5HNSX.js +41 -0
- package/dist/tp.ui-J5SNNAT3.js +1454 -0
- package/dist/tvs.dt-6YHFJPER.js +34 -0
- package/dist/tvs.dtcnv.categorical-WTIE63GM.js +35 -0
- package/dist/tvs.dtcnv.continuous-OCMKGTF5.js +67 -0
- package/dist/tvs.dtfusion-CA23UNM3.js +35 -0
- package/dist/tvs.dtitd-VSYMR3OD.js +35 -0
- package/dist/tvs.dtsnvindel-YBNO3CYF.js +35 -0
- package/dist/tvs.dtsv-S743GBB5.js +35 -0
- package/dist/tvs.numeric-22AHXO5K.js +20 -0
- package/dist/tvs.samplelst-XAJO4EM6.js +98 -0
- package/dist/tvs.termCollection-QOVJGAUC.js +124 -0
- package/dist/vocabulary-6EADTHP3.js +36 -0
- package/dist/wsi.direct-2WB2NGC5.js +8184 -0
- package/dist/wsi.direct-2WB2NGC5.js.map +7 -0
- package/package.json +3 -3
- package/dist/2dmaf-JIY57FG6.js +0 -1367
- package/dist/AIProjectAdmin-DGTBIE6E.js +0 -952
- package/dist/AIProjectAdmin-DGTBIE6E.js.map +0 -7
- package/dist/AggMatrixInput-FH6WRTLP.js +0 -277
- package/dist/AggregateMatrix-MGEX5AVF.js +0 -41
- package/dist/AppHeader-FFOQFH55.js +0 -830
- package/dist/BoxPlot-KCY4JVRX.js +0 -1211
- package/dist/CorrelationVolcano-E5URKQSM.js +0 -614
- package/dist/Cuminc-CBPMCKIC.js +0 -1219
- package/dist/DE-VANPWKZI.js +0 -88
- package/dist/DE-VANPWKZI.js.map +0 -7
- package/dist/DEinput-MONPHDB2.js +0 -405
- package/dist/DEinput-MONPHDB2.js.map +0 -7
- package/dist/DifferentialAnalysis-XRBS4PZI.js +0 -237
- package/dist/Disco-V2VJIDWG.js +0 -3389
- package/dist/Disco.UI-OEF5JXBU.js +0 -243
- package/dist/DmrPlot-KZUWJWBD.js +0 -637
- package/dist/GB-IYTEMMU7.js +0 -1391
- package/dist/GSEA-QB62B5KB.js +0 -851
- package/dist/GeneExpInput-CXX7SXMQ.js +0 -362
- package/dist/Geomap-QNHSCN4N.js +0 -84
- package/dist/HicApp-UIULZYYJ.js +0 -2245
- package/dist/IDCViewer-B2JENGZZ.js +0 -10812
- package/dist/NumBinaryEditor-JOU2J23M.js +0 -279
- package/dist/NumBinaryEditor.unit.spec-UXZBBVWL.js +0 -312
- package/dist/NumContEditor-BJGP4PVS.js +0 -105
- package/dist/NumContEditor.unit.spec-HEXOYIXC.js +0 -164
- package/dist/NumCustomBinEditor-HDRTVWNK.js +0 -33
- package/dist/NumCustomBinEditor.unit.spec-MN6QZ3ZB.js +0 -397
- package/dist/NumDiscreteEditor-JUBR45IJ.js +0 -170
- package/dist/NumDiscreteEditor.unit.spec-SDK2LR5B.js +0 -233
- package/dist/NumRegularBinEditor-AQPRZ3MI.js +0 -33
- package/dist/NumRegularBinEditor.unit.spec-GM3SFB2N.js +0 -278
- package/dist/NumSplineEditor-LYLROEGE.js +0 -210
- package/dist/NumSplineEditor.unit.spec-3Q2HP6IB.js +0 -224
- package/dist/NumericDensity-3ZCDZORO.js +0 -33
- package/dist/NumericDensity.unit.spec-MNIAR2PR.js +0 -418
- package/dist/NumericHandler-MUNEB5IS.js +0 -34
- package/dist/NumericHandler.unit.spec-KPWG2T27.js +0 -214
- package/dist/ProteomeInput-NEUHQ2G4.js +0 -388
- package/dist/Regression-C75T5LOY.js +0 -1416
- package/dist/RunChart2-CMQ2BBSJ.js +0 -749
- package/dist/SC-HYK26DXI.js +0 -1107
- package/dist/Violin-J5Z3NKMU.js +0 -1082
- package/dist/Volcano-VZGOJFM7.js +0 -1573
- package/dist/Volcano-VZGOJFM7.js.map +0 -7
- package/dist/WSIViewer-EEKHINZU.js +0 -18892
- package/dist/WSIViewer-EEKHINZU.js.map +0 -7
- package/dist/Wsi-ZP36MKK7.js +0 -431
- package/dist/WsiSamplesPlot-6G3U7U5L.js +0 -160
- package/dist/WsiSamplesPlot-6G3U7U5L.js.map +0 -7
- package/dist/adSandbox-W4THMDUI.js +0 -33
- package/dist/animatedBubbleChart-2IVR2WC3.js +0 -547
- package/dist/app-LAIPU5IO.js +0 -42
- package/dist/app-WMRDJINC.js +0 -32
- package/dist/bam-44WCWB5P.js +0 -876
- package/dist/barchart-P6XKCJRF.js +0 -42
- package/dist/barchart2-5NTYCQYN.js +0 -309
- package/dist/block-VEOD6CP4.js +0 -6249
- package/dist/block.init-RCPDUYAV.js +0 -33
- package/dist/block.mds.expressionrank-KALPK27B.js +0 -354
- package/dist/block.mds.geneboxplot-ZASU25BG.js +0 -823
- package/dist/block.mds.junction-DCVGVSYG.js +0 -1539
- package/dist/block.mds.svcnv-CEGYMRSE.js +0 -6796
- package/dist/block.svg-AW4E7NSS.js +0 -159
- package/dist/block.tk.aicheck-4ZPFLI5I.js +0 -278
- package/dist/block.tk.ase-F3VMNBE3.js +0 -360
- package/dist/block.tk.bam-3VDSEMVO.js +0 -1901
- package/dist/block.tk.bedgraphdot-3F6AMWFD.js +0 -379
- package/dist/block.tk.bigwig.ui-QO334QC3.js +0 -206
- package/dist/block.tk.hicstraw-VA7GNOOD.js +0 -818
- package/dist/block.tk.junction-7WIZ63R7.js +0 -2358
- package/dist/block.tk.junction.textmatrixui-ZHSVODGI.js +0 -194
- package/dist/block.tk.ld-JME4SP6A.js +0 -94
- package/dist/block.tk.menu-7BFQTH3Q.js +0 -1024
- package/dist/block.tk.pgv-C2N7UFYT.js +0 -938
- package/dist/brainImaging-6XFUKFZE.js +0 -515
- package/dist/brainRegions-SEMS7V4O.js +0 -216
- package/dist/brainRegions-SEMS7V4O.js.map +0 -7
- package/dist/bubbleHeatmap-YO4232WO.js +0 -378
- package/dist/cellTypeBubbleHeatmap-GM4BGCQ3.js +0 -278
- package/dist/chunk-2YDQC5BV.js +0 -562
- package/dist/chunk-3QMXNK7G.js +0 -379
- package/dist/chunk-4C2N2BQC.js +0 -6360
- package/dist/chunk-4Q46RDNU.js +0 -34
- package/dist/chunk-4YEDSMFX.js +0 -123
- package/dist/chunk-56HEUYYM.js +0 -2891
- package/dist/chunk-56HEUYYM.js.map +0 -7
- package/dist/chunk-5VMEMA4O.js +0 -158
- package/dist/chunk-66BJC6ZX.js +0 -217
- package/dist/chunk-6JBLNS4D.js +0 -387
- package/dist/chunk-6RN4RVKF.js +0 -480
- package/dist/chunk-6SKLD7JU.js +0 -59
- package/dist/chunk-7C45EYL6.js +0 -274
- package/dist/chunk-7RX5UEF3.js +0 -24193
- package/dist/chunk-7RX5UEF3.js.map +0 -7
- package/dist/chunk-AAM7HHPU.js +0 -103
- package/dist/chunk-AFMD6226.js +0 -240
- package/dist/chunk-AK3SW3VT.js +0 -176
- package/dist/chunk-BBYVVPEO.js +0 -1271
- package/dist/chunk-BBYVVPEO.js.map +0 -7
- package/dist/chunk-BEJJS2HC.js +0 -194
- package/dist/chunk-BMVRYEN2.js +0 -397
- package/dist/chunk-BZYTL2EU.js +0 -294
- package/dist/chunk-CLOHFGFX.js +0 -14
- package/dist/chunk-D6G64XPJ.js +0 -96
- package/dist/chunk-DAJT3XVZ.js +0 -31
- package/dist/chunk-DKPV7GCZ.js +0 -7966
- package/dist/chunk-DKPV7GCZ.js.map +0 -7
- package/dist/chunk-DMT6S5HJ.js +0 -5071
- package/dist/chunk-DO4SLQNP.js +0 -194
- package/dist/chunk-DUGOFIQS.js +0 -464
- package/dist/chunk-E3O6ZEWQ.js +0 -129
- package/dist/chunk-EJ3SSI5J.js +0 -382
- package/dist/chunk-FSDY4QVA.js +0 -272
- package/dist/chunk-FUEJFIQX.js +0 -203
- package/dist/chunk-FUSTNOQZ.js +0 -2130
- package/dist/chunk-FUSTNOQZ.js.map +0 -7
- package/dist/chunk-GAW2EETX.js +0 -281
- package/dist/chunk-GF6CKFXE.js +0 -1720
- package/dist/chunk-GI3RVOO4.js +0 -339
- package/dist/chunk-GQ6T62VJ.js +0 -141
- package/dist/chunk-GTMHDSOQ.js +0 -550
- package/dist/chunk-H555QBYP.js +0 -243
- package/dist/chunk-HDTFYTEL.js +0 -2694
- package/dist/chunk-HDTFYTEL.js.map +0 -7
- package/dist/chunk-HKQDZKSF.js +0 -119
- package/dist/chunk-HLZVDBAI.js +0 -1985
- package/dist/chunk-HLZVDBAI.js.map +0 -7
- package/dist/chunk-HWMZ2OHD.js +0 -49
- package/dist/chunk-JG6SE6YU.js +0 -1339
- package/dist/chunk-JSVLKCIQ.js +0 -160
- package/dist/chunk-JVRGY6IU.js +0 -54
- package/dist/chunk-JXUFZZRJ.js +0 -626
- package/dist/chunk-K5YG7MVJ.js +0 -2676
- package/dist/chunk-KAUMP3RR.js +0 -56
- package/dist/chunk-KLGNLUXR.js +0 -518
- package/dist/chunk-KWLBPOPE.js +0 -38
- package/dist/chunk-L42F5J5C.js +0 -185
- package/dist/chunk-L42F5J5C.js.map +0 -7
- package/dist/chunk-LXTBOUBG.js +0 -677
- package/dist/chunk-MCRWA655.js +0 -98
- package/dist/chunk-NGBQL4CM.js +0 -54
- package/dist/chunk-OKUFTLFL.js +0 -4297
- package/dist/chunk-OKUFTLFL.js.map +0 -7
- package/dist/chunk-ONXYJWY6.js +0 -102
- package/dist/chunk-OYHID2D7.js +0 -50
- package/dist/chunk-PT5JDHPR.js +0 -42
- package/dist/chunk-PZZIDJIB.js +0 -806
- package/dist/chunk-PZZIDJIB.js.map +0 -7
- package/dist/chunk-S5SOLLGM.js +0 -1654
- package/dist/chunk-S5SOLLGM.js.map +0 -7
- package/dist/chunk-S6XG74R4.js +0 -70
- package/dist/chunk-TAEU6SPJ.js +0 -197
- package/dist/chunk-UBZRZ3PS.js +0 -102
- package/dist/chunk-UM5NWVMA.js +0 -140
- package/dist/chunk-VHDVTQFR.js +0 -2784
- package/dist/chunk-VRY7WSS6.js +0 -170
- package/dist/chunk-VSPUFGDX.js +0 -339
- package/dist/chunk-VVDFRJVN.js +0 -306
- package/dist/chunk-VVDFRJVN.js.map +0 -7
- package/dist/chunk-WFOC4W5A.js +0 -55
- package/dist/chunk-WVPFLPWB.js +0 -402
- package/dist/chunk-WZUUWGEU.js +0 -22834
- package/dist/chunk-WZUUWGEU.js.map +0 -7
- package/dist/chunk-X7IAKV5Z.js +0 -276
- package/dist/chunk-XHOL37O6.js +0 -299
- package/dist/chunk-XJGPL2JZ.js +0 -39
- package/dist/chunk-XJGPL2JZ.js.map +0 -7
- package/dist/chunk-XPB2GP3C.js +0 -2327
- package/dist/chunk-XPVU5AMT.js +0 -263
- package/dist/chunk-YLJOZP4P.js +0 -4195
- package/dist/chunk-YLWSTPPL.js +0 -302
- package/dist/chunk-YZVWOQBP.js +0 -134
- package/dist/chunk-ZB3RP5QP.js +0 -446
- package/dist/chunk-ZU47ERPU.js +0 -26
- package/dist/cohort-ZTT2PSQA.js +0 -70
- package/dist/condition-L5DXIAJT.js +0 -327
- package/dist/controls-ROZP2O7A.js +0 -34
- package/dist/controls.config-YQKGHMIP.js +0 -34
- package/dist/correlation-6AKRIQXN.js +0 -95
- package/dist/customdata.inputui-DD3OFHUS.js +0 -284
- package/dist/dataDownload-VHHSLSZV.js +0 -329
- package/dist/databrowser.ui-RLYJOEWQ.js +0 -425
- package/dist/dictionary-IMOOQHIH.js +0 -113
- package/dist/dnaMethylation-T6XUIOJF.js +0 -33
- package/dist/dnaMethylation.integration.spec-NRJOIDRD.js +0 -198
- package/dist/dofetch-MLAEV3A2.js +0 -48
- package/dist/e2pca-F3TGJOMW.js +0 -344
- package/dist/ep-UAF6OL2Y.js +0 -1249
- package/dist/expclust.gdc.spec-GHH3JQ65.js +0 -302
- package/dist/facet-MB4C7GII.js +0 -519
- package/dist/gb-C5YSAFWP.js +0 -81
- package/dist/geneExpClustering-3BRSI5BR.js +0 -244
- package/dist/geneExpression-K3IZLSYC.js +0 -310
- package/dist/geneExpression-SIAPRA3E.js +0 -33
- package/dist/geneExpression.unit.spec-I66QVNT5.js +0 -99
- package/dist/geneORA-SLM3SNNS.js +0 -273
- package/dist/geneRanking-4EFYOR6A.js +0 -548
- package/dist/geneVariant-O347F2OY.js +0 -286
- package/dist/geneVariant-Z3BUIBLS.js +0 -36
- package/dist/geneVariant.integration.spec-ZZ65EYEL.js +0 -388
- package/dist/genefusion.ui-TK6UKPDR.js +0 -303
- package/dist/geneset-MVXSEOKZ.js +0 -203
- package/dist/genomeBrowser.spec-QDB4Z2L6.js +0 -276
- package/dist/grin2-DCU6PLPU.js +0 -70
- package/dist/grin2-P6Z45MCJ.js +0 -1137
- package/dist/hierCluster-3H47NLKS.js +0 -55
- package/dist/hierCluster-JG6VXTCV.js +0 -59
- package/dist/hierCluster.config-IP6I7RTS.js +0 -36
- package/dist/hierCluster.integration.spec-7PUNHRRS.js +0 -483
- package/dist/hierCluster.interactivity-FIDVRACV.js +0 -49
- package/dist/hierCluster.renderers-QMJWUPAI.js +0 -19
- package/dist/imagePlot-CXYKBCWS.js +0 -156
- package/dist/importPlot-Z4A54RXH.js +0 -8
- package/dist/isoformExpression-DMDV2PZY.js +0 -35
- package/dist/isoformExpression.unit.spec-W2LIYOXS.js +0 -237
- package/dist/junction-R5GMEO7Z.js +0 -36
- package/dist/junction.customTerm-AI44GNFV.js +0 -16
- package/dist/junction.unit.spec-SCRCANOC.js +0 -182
- package/dist/launch.adhoc-THLTYZJT.js +0 -37
- package/dist/leftlabel.sample-GKQXEY4J.js +0 -258
- package/dist/legacyDataset-27L4DMCL.js +0 -117
- package/dist/lollipop-2TW6GGPY.js +0 -166
- package/dist/maf-A4PVW5V2.js +0 -455
- package/dist/maftimeline-QMX3HOAU.js +0 -587
- package/dist/matrix-BGRYRU3T.js +0 -54
- package/dist/matrix-GPXTUVCQ.js +0 -59
- package/dist/matrix.cells-C6OY7F5T.js +0 -26
- package/dist/matrix.config-Z5ZGHXDV.js +0 -37
- package/dist/matrix.data-WB26I3TF.js +0 -23
- package/dist/matrix.groups-C2V2CV4A.js +0 -26
- package/dist/matrix.integration.spec-3COAXQBV.js +0 -3160
- package/dist/matrix.interactivity-NGHIQR3A.js +0 -37
- package/dist/matrix.layout-NYIOESGN.js +0 -39
- package/dist/matrix.legend-Q5HHWP5Q.js +0 -20
- package/dist/matrix.renderers-GLXZARIP.js +0 -34
- package/dist/matrix.serieses-LDQEPXPD.js +0 -19
- package/dist/matrix.sort-44TQNRIX.js +0 -26
- package/dist/matrix.sort.unit.spec-T3BDWJ3Z.js +0 -468
- package/dist/matrix.sorterUi-6Y4YBQYL.js +0 -16
- package/dist/matrix.sorterUi.unit.spec-NHUYNMNU.js +0 -338
- package/dist/matrix.unit.spec-C7IRIBN6.js +0 -150
- package/dist/mavb-E37LI73X.js +0 -727
- package/dist/mds.fimo-YTGX7VEN.js +0 -513
- package/dist/mds.samplescatterplot-FFGGJSI3.js +0 -1545
- package/dist/mds.survivalplot-NCWRXXV4.js +0 -477
- package/dist/multivalue-N7A2PU5K.js +0 -83
- package/dist/numericDictTermCluster-AKQKRBQH.js +0 -63
- package/dist/oncomatrix-QPVGACMF.js +0 -290
- package/dist/oncomatrix.spec-6L2NDN2G.js +0 -443
- package/dist/plot.2dvaf-6TLON77B.js +0 -372
- package/dist/plot.app-VM273TXU.js +0 -36
- package/dist/plot.barplot-IQTZURHK.js +0 -97
- package/dist/plot.boxplot-WEXB6HII.js +0 -146
- package/dist/plot.brainImaging-REGSSBHV.js +0 -51
- package/dist/plot.disco-F25Z3FQL.js +0 -99
- package/dist/plot.ssgq-CRRK26RS.js +0 -134
- package/dist/plot.vaf2cov-WCNPZKXK.js +0 -253
- package/dist/plot.wsi-6OAPT5BA.js +0 -36
- package/dist/plot.wsi-6OAPT5BA.js.map +0 -7
- package/dist/polar2-MH5GPXHJ.js +0 -232
- package/dist/profileForms-2YX2OYDI.js +0 -941
- package/dist/profilePlot-FUTMZ2PP.js +0 -49
- package/dist/proteinView-6Z4ALZW2.js +0 -1562
- package/dist/proteinView-6Z4ALZW2.js.map +0 -7
- package/dist/proteomeCohortCompare-6GLFOYI5.js +0 -780
- package/dist/proteomeCohortCompare-6GLFOYI5.js.map +0 -7
- package/dist/pseudbulk.unit.spec-S7FDL3IX.js +0 -86
- package/dist/pseudobulk-A3LB23N2.js +0 -35
- package/dist/qualitative-5VJRMF4S.js +0 -38
- package/dist/radar2-2SJX4ZXN.js +0 -327
- package/dist/radarFacility2-7FPO34JS.js +0 -335
- package/dist/rememberedGvQ.unit.spec-WOQVPQ75.js +0 -211
- package/dist/render-ZLA2RRBP.js +0 -33
- package/dist/report-VCE6RILD.js +0 -217
- package/dist/sampleView-QYTX4OLI.js +0 -43
- package/dist/samplelst-7NGH3SUM.js +0 -106
- package/dist/samplematrix-SNAR6IBB.js +0 -2193
- package/dist/sc-2JETYAI4.js +0 -81
- package/dist/scatter-D7VZOBEE.js +0 -880
- package/dist/scatter-GHBQM2RR.js +0 -88
- package/dist/selectGenomeWithTklst-BD4GMGX3.js +0 -129
- package/dist/singleCellCellType-XHLOJVVC.js +0 -33
- package/dist/singleCellCellType.unit.spec-LCLR3IOD.js +0 -154
- package/dist/singleCellGeneExpression-JRBONI5C.js +0 -33
- package/dist/singleCellGeneExpression.unit.spec-Z2KSVCIG.js +0 -148
- package/dist/singleCellPlot-4462CQHF.js +0 -49
- package/dist/singlecell-CDUQ6MTO.js +0 -81
- package/dist/singlecell-SO3B5KJ7.js +0 -1566
- package/dist/snp-YE2MXKJO.js +0 -33
- package/dist/snp.unit.spec-MT57TGGQ.js +0 -171
- package/dist/snplocus-RSNKWY63.js +0 -203
- package/dist/spliceevent.a53ss.diagram-6N6YGYV7.js +0 -146
- package/dist/spliceevent.exonskip.diagram-LMNUS4XV.js +0 -278
- package/dist/spliceevent.noeventdiagram-LTBH4YD5.js +0 -455
- package/dist/ssGSEA-DPK4PDM2.js +0 -33
- package/dist/ssGSEA.unit.spec-K2SA7ME7.js +0 -83
- package/dist/stattable-PR47XT4F.js +0 -117
- package/dist/studyCatalog-GMUWIUL4.js +0 -378
- package/dist/studyCatalog-GMUWIUL4.js.map +0 -7
- package/dist/summarizeCnvGeneexp-YZEMDLES.js +0 -158
- package/dist/summarizeGeneexpSurvival-3TXV6ZNI.js +0 -105
- package/dist/summarizeMutationCnv-EBWSEHWJ.js +0 -159
- package/dist/summarizeMutationDiagnosis-FXA25W3O.js +0 -35
- package/dist/summarizeMutationSurvival-MR4AOMNS.js +0 -99
- package/dist/summary-4C6LGTMF.js +0 -42
- package/dist/summary.integration.spec-Y6JLH7NH.js +0 -409
- package/dist/summaryInput-NWT2DXWU.js +0 -242
- package/dist/sunburst-266MA7E2.js +0 -278
- package/dist/survival-CAZCIY2N.js +0 -53
- package/dist/survival-EILGNIY7.js +0 -1246
- package/dist/survival-EILGNIY7.js.map +0 -7
- package/dist/survival.integration.spec-34JJVLLI.js +0 -613
- package/dist/survival.integration.spec-34JJVLLI.js.map +0 -7
- package/dist/svgraph-OFUESREM.js +0 -1382
- package/dist/svmr-PVH42MY4.js +0 -3837
- package/dist/table-C2SICFZV.js +0 -197
- package/dist/termCollection-H4RL5WJG.js +0 -33
- package/dist/termCollection-TGYDI7NP.js +0 -252
- package/dist/termCollection.unit.spec-JSALS7GL.js +0 -299
- package/dist/termCollectionFractionSelection-YJVDNV4I.js +0 -42
- package/dist/termCollectionFractionSelection.unit.spec-4GM7P4ZW.js +0 -188
- package/dist/tk-RZCPSHJG.js +0 -1121
- package/dist/tk-SNTRA5CC.js +0 -41
- package/dist/tp.ui-2W4K3XH6.js +0 -1454
- package/dist/tvs.dt-GIPVC3R6.js +0 -34
- package/dist/tvs.dtcnv.categorical-TEYAS4OU.js +0 -35
- package/dist/tvs.dtcnv.continuous-VQRATYPZ.js +0 -67
- package/dist/tvs.dtfusion-P2KF5Z4H.js +0 -35
- package/dist/tvs.dtitd-TM6UROSH.js +0 -35
- package/dist/tvs.dtsnvindel-FZXC23NF.js +0 -35
- package/dist/tvs.dtsv-Y5QEJPYG.js +0 -35
- package/dist/tvs.numeric-3UXW4JHJ.js +0 -20
- package/dist/tvs.samplelst-MLAFPFER.js +0 -98
- package/dist/tvs.termCollection-ZQQDKESH.js +0 -124
- package/dist/vocabulary-JRUZPHMG.js +0 -36
- package/dist/wsi.direct-6QYNXOBY.js +0 -244
- package/dist/wsi.direct-6QYNXOBY.js.map +0 -7
- /package/dist/{2dmaf-JIY57FG6.js.map → 2dmaf-5OYM4MXA.js.map} +0 -0
- /package/dist/{AggMatrixInput-FH6WRTLP.js.map → AggMatrixInput-4VTI4Y6E.js.map} +0 -0
- /package/dist/{AggregateMatrix-MGEX5AVF.js.map → AggregateMatrix-K7SGNO63.js.map} +0 -0
- /package/dist/{AppHeader-FFOQFH55.js.map → AppHeader-WU6TO2OZ.js.map} +0 -0
- /package/dist/{BoxPlot-KCY4JVRX.js.map → BoxPlot-OW7U3XTF.js.map} +0 -0
- /package/dist/{CorrelationVolcano-E5URKQSM.js.map → CorrelationVolcano-B3JTTZHF.js.map} +0 -0
- /package/dist/{Cuminc-CBPMCKIC.js.map → Cuminc-AJEXWRU2.js.map} +0 -0
- /package/dist/{DifferentialAnalysis-XRBS4PZI.js.map → DifferentialAnalysis-BFCQBX5J.js.map} +0 -0
- /package/dist/{Disco-V2VJIDWG.js.map → Disco-ZJLVQRTC.js.map} +0 -0
- /package/dist/{Disco.UI-OEF5JXBU.js.map → Disco.UI-AEDACXW2.js.map} +0 -0
- /package/dist/{DmrPlot-KZUWJWBD.js.map → DmrPlot-QMRXAOM3.js.map} +0 -0
- /package/dist/{GB-IYTEMMU7.js.map → GB-MFU2UJ22.js.map} +0 -0
- /package/dist/{GSEA-QB62B5KB.js.map → GSEA-E3NHU22A.js.map} +0 -0
- /package/dist/{GeneExpInput-CXX7SXMQ.js.map → GeneExpInput-MIUNSOPY.js.map} +0 -0
- /package/dist/{Geomap-QNHSCN4N.js.map → Geomap-HAJG3STN.js.map} +0 -0
- /package/dist/{HicApp-UIULZYYJ.js.map → HicApp-ECFFIRWI.js.map} +0 -0
- /package/dist/{IDCViewer-B2JENGZZ.js.map → IDCViewer-TNSD3U2V.js.map} +0 -0
- /package/dist/{NumBinaryEditor-JOU2J23M.js.map → NumBinaryEditor-CNBGZ6WY.js.map} +0 -0
- /package/dist/{NumBinaryEditor.unit.spec-UXZBBVWL.js.map → NumBinaryEditor.unit.spec-SKFDALF3.js.map} +0 -0
- /package/dist/{NumContEditor-BJGP4PVS.js.map → NumContEditor-7ID2U7JL.js.map} +0 -0
- /package/dist/{NumContEditor.unit.spec-HEXOYIXC.js.map → NumContEditor.unit.spec-XHSQSAWK.js.map} +0 -0
- /package/dist/{NumCustomBinEditor-HDRTVWNK.js.map → NumCustomBinEditor-PAIPRJPO.js.map} +0 -0
- /package/dist/{NumCustomBinEditor.unit.spec-MN6QZ3ZB.js.map → NumCustomBinEditor.unit.spec-QYVZMMHV.js.map} +0 -0
- /package/dist/{NumDiscreteEditor-JUBR45IJ.js.map → NumDiscreteEditor-K2NZZQTH.js.map} +0 -0
- /package/dist/{NumDiscreteEditor.unit.spec-SDK2LR5B.js.map → NumDiscreteEditor.unit.spec-3CG5VEQL.js.map} +0 -0
- /package/dist/{NumRegularBinEditor-AQPRZ3MI.js.map → NumRegularBinEditor-EOVZ22TP.js.map} +0 -0
- /package/dist/{NumRegularBinEditor.unit.spec-GM3SFB2N.js.map → NumRegularBinEditor.unit.spec-FHTVH5FH.js.map} +0 -0
- /package/dist/{NumSplineEditor-LYLROEGE.js.map → NumSplineEditor-N3REMJUC.js.map} +0 -0
- /package/dist/{NumSplineEditor.unit.spec-3Q2HP6IB.js.map → NumSplineEditor.unit.spec-DZCP35GL.js.map} +0 -0
- /package/dist/{NumericDensity-3ZCDZORO.js.map → NumericDensity-42MWVI2S.js.map} +0 -0
- /package/dist/{NumericDensity.unit.spec-MNIAR2PR.js.map → NumericDensity.unit.spec-T2HHSQON.js.map} +0 -0
- /package/dist/{NumericHandler-MUNEB5IS.js.map → NumericHandler-5XU3SSPD.js.map} +0 -0
- /package/dist/{NumericHandler.unit.spec-KPWG2T27.js.map → NumericHandler.unit.spec-3F23KSAQ.js.map} +0 -0
- /package/dist/{ProteomeInput-NEUHQ2G4.js.map → ProteomeInput-UN2BUNRO.js.map} +0 -0
- /package/dist/{Regression-C75T5LOY.js.map → Regression-HWLJENA5.js.map} +0 -0
- /package/dist/{RunChart2-CMQ2BBSJ.js.map → RunChart2-YO55WE4M.js.map} +0 -0
- /package/dist/{SC-HYK26DXI.js.map → SC-LEDJ4DQR.js.map} +0 -0
- /package/dist/{Violin-J5Z3NKMU.js.map → Violin-E6PDJZ2B.js.map} +0 -0
- /package/dist/{Wsi-ZP36MKK7.js.map → Wsi-S675CYTW.js.map} +0 -0
- /package/dist/{adSandbox-W4THMDUI.js.map → adSandbox-ZJQ5ZW2T.js.map} +0 -0
- /package/dist/{animatedBubbleChart-2IVR2WC3.js.map → animatedBubbleChart-LRUS7W36.js.map} +0 -0
- /package/dist/{app-LAIPU5IO.js.map → app-7Q3QIBU4.js.map} +0 -0
- /package/dist/{app-WMRDJINC.js.map → app-PKSI4MV5.js.map} +0 -0
- /package/dist/{bam-44WCWB5P.js.map → bam-X5JH5ZT7.js.map} +0 -0
- /package/dist/{barchart-P6XKCJRF.js.map → barchart-UT6J4L2N.js.map} +0 -0
- /package/dist/{barchart2-5NTYCQYN.js.map → barchart2-ZG5QJO3C.js.map} +0 -0
- /package/dist/{block-VEOD6CP4.js.map → block-TC466NGW.js.map} +0 -0
- /package/dist/{block.init-RCPDUYAV.js.map → block.init-CIBNSYAC.js.map} +0 -0
- /package/dist/{block.mds.expressionrank-KALPK27B.js.map → block.mds.expressionrank-EY5PCQCK.js.map} +0 -0
- /package/dist/{block.mds.geneboxplot-ZASU25BG.js.map → block.mds.geneboxplot-R6AOMHO5.js.map} +0 -0
- /package/dist/{block.mds.junction-DCVGVSYG.js.map → block.mds.junction-JMV6FNYC.js.map} +0 -0
- /package/dist/{block.mds.svcnv-CEGYMRSE.js.map → block.mds.svcnv-IHTV3QYG.js.map} +0 -0
- /package/dist/{block.svg-AW4E7NSS.js.map → block.svg-NTFLVQAQ.js.map} +0 -0
- /package/dist/{block.tk.aicheck-4ZPFLI5I.js.map → block.tk.aicheck-FYPL32Y4.js.map} +0 -0
- /package/dist/{block.tk.ase-F3VMNBE3.js.map → block.tk.ase-FWCB6VBO.js.map} +0 -0
- /package/dist/{block.tk.bam-3VDSEMVO.js.map → block.tk.bam-Q5UFUABN.js.map} +0 -0
- /package/dist/{block.tk.bedgraphdot-3F6AMWFD.js.map → block.tk.bedgraphdot-KBI3GFDM.js.map} +0 -0
- /package/dist/{block.tk.bigwig.ui-QO334QC3.js.map → block.tk.bigwig.ui-KXNFX7G7.js.map} +0 -0
- /package/dist/{block.tk.hicstraw-VA7GNOOD.js.map → block.tk.hicstraw-MQBH3YAJ.js.map} +0 -0
- /package/dist/{block.tk.junction-7WIZ63R7.js.map → block.tk.junction-EBTVXLJH.js.map} +0 -0
- /package/dist/{block.tk.junction.textmatrixui-ZHSVODGI.js.map → block.tk.junction.textmatrixui-ETYLCP2O.js.map} +0 -0
- /package/dist/{block.tk.ld-JME4SP6A.js.map → block.tk.ld-NLB6L6WQ.js.map} +0 -0
- /package/dist/{block.tk.menu-7BFQTH3Q.js.map → block.tk.menu-PJLCOXVJ.js.map} +0 -0
- /package/dist/{block.tk.pgv-C2N7UFYT.js.map → block.tk.pgv-JOIQVWL2.js.map} +0 -0
- /package/dist/{brainImaging-6XFUKFZE.js.map → brainImaging-SPRC3QFB.js.map} +0 -0
- /package/dist/{bubbleHeatmap-YO4232WO.js.map → bubbleHeatmap-CFTZ5RXH.js.map} +0 -0
- /package/dist/{cellTypeBubbleHeatmap-GM4BGCQ3.js.map → cellTypeBubbleHeatmap-DXPLFT5U.js.map} +0 -0
- /package/dist/{chunk-UBZRZ3PS.js.map → chunk-2BQ572SL.js.map} +0 -0
- /package/dist/{chunk-AAM7HHPU.js.map → chunk-2DQIQYY3.js.map} +0 -0
- /package/dist/{chunk-YZVWOQBP.js.map → chunk-2POQWEK6.js.map} +0 -0
- /package/dist/{chunk-ZB3RP5QP.js.map → chunk-2SQEVMAL.js.map} +0 -0
- /package/dist/{chunk-5VMEMA4O.js.map → chunk-37HTZ6IG.js.map} +0 -0
- /package/dist/{chunk-K5YG7MVJ.js.map → chunk-452765PG.js.map} +0 -0
- /package/dist/{chunk-DAJT3XVZ.js.map → chunk-4DXQJGJ7.js.map} +0 -0
- /package/dist/{chunk-E3O6ZEWQ.js.map → chunk-5DBW3WLK.js.map} +0 -0
- /package/dist/{chunk-WVPFLPWB.js.map → chunk-5ILEFNXJ.js.map} +0 -0
- /package/dist/{chunk-6SKLD7JU.js.map → chunk-5UO7MKCO.js.map} +0 -0
- /package/dist/{chunk-H555QBYP.js.map → chunk-7R7P6VMT.js.map} +0 -0
- /package/dist/{chunk-D6G64XPJ.js.map → chunk-7X6NF7NI.js.map} +0 -0
- /package/dist/{chunk-ZU47ERPU.js.map → chunk-ANGLZ4XR.js.map} +0 -0
- /package/dist/{chunk-KWLBPOPE.js.map → chunk-BMQDU7KN.js.map} +0 -0
- /package/dist/{chunk-GAW2EETX.js.map → chunk-C5TU4AYP.js.map} +0 -0
- /package/dist/{chunk-PT5JDHPR.js.map → chunk-DHNET3P4.js.map} +0 -0
- /package/dist/{chunk-EJ3SSI5J.js.map → chunk-EGKHDALO.js.map} +0 -0
- /package/dist/{chunk-4Q46RDNU.js.map → chunk-EPWGUWQP.js.map} +0 -0
- /package/dist/{chunk-JG6SE6YU.js.map → chunk-F3EYPES3.js.map} +0 -0
- /package/dist/{chunk-BEJJS2HC.js.map → chunk-F4DM3WS4.js.map} +0 -0
- /package/dist/{chunk-BZYTL2EU.js.map → chunk-FTLCINDC.js.map} +0 -0
- /package/dist/{chunk-6RN4RVKF.js.map → chunk-GT6WJUJY.js.map} +0 -0
- /package/dist/{chunk-S6XG74R4.js.map → chunk-GWCK5QGV.js.map} +0 -0
- /package/dist/{chunk-DUGOFIQS.js.map → chunk-HJSGHFJ6.js.map} +0 -0
- /package/dist/{chunk-HWMZ2OHD.js.map → chunk-HS6BTSFX.js.map} +0 -0
- /package/dist/{chunk-DMT6S5HJ.js.map → chunk-IB5TKNG5.js.map} +0 -0
- /package/dist/{chunk-NGBQL4CM.js.map → chunk-IIMTOPH3.js.map} +0 -0
- /package/dist/{chunk-FSDY4QVA.js.map → chunk-JAXN3Q3K.js.map} +0 -0
- /package/dist/{chunk-GQ6T62VJ.js.map → chunk-KIRZXPMB.js.map} +0 -0
- /package/dist/{chunk-JVRGY6IU.js.map → chunk-L32KMIC3.js.map} +0 -0
- /package/dist/{chunk-4YEDSMFX.js.map → chunk-LB7NENEB.js.map} +0 -0
- /package/dist/{chunk-2YDQC5BV.js.map → chunk-LDWMVZYF.js.map} +0 -0
- /package/dist/{chunk-UM5NWVMA.js.map → chunk-M367Y7ML.js.map} +0 -0
- /package/dist/{chunk-VSPUFGDX.js.map → chunk-M4XXKTH2.js.map} +0 -0
- /package/dist/{chunk-AK3SW3VT.js.map → chunk-ME7OF3CS.js.map} +0 -0
- /package/dist/{chunk-JXUFZZRJ.js.map → chunk-N2CXLMNX.js.map} +0 -0
- /package/dist/{chunk-HKQDZKSF.js.map → chunk-N7DVQTPC.js.map} +0 -0
- /package/dist/{chunk-KLGNLUXR.js.map → chunk-N7TD7N7D.js.map} +0 -0
- /package/dist/{chunk-XHOL37O6.js.map → chunk-NBX6TT5C.js.map} +0 -0
- /package/dist/{chunk-GI3RVOO4.js.map → chunk-NSRGYBDM.js.map} +0 -0
- /package/dist/{chunk-3QMXNK7G.js.map → chunk-NVS7KYYI.js.map} +0 -0
- /package/dist/{chunk-BMVRYEN2.js.map → chunk-OVPEMVXT.js.map} +0 -0
- /package/dist/{chunk-7C45EYL6.js.map → chunk-OXWLQQXL.js.map} +0 -0
- /package/dist/{chunk-WFOC4W5A.js.map → chunk-QGGSYEVJ.js.map} +0 -0
- /package/dist/{chunk-OYHID2D7.js.map → chunk-QLEVONLD.js.map} +0 -0
- /package/dist/{chunk-MCRWA655.js.map → chunk-RNWHB5DI.js.map} +0 -0
- /package/dist/{chunk-FUEJFIQX.js.map → chunk-RUHLDUOT.js.map} +0 -0
- /package/dist/{chunk-TAEU6SPJ.js.map → chunk-RV34WFGZ.js.map} +0 -0
- /package/dist/{chunk-4C2N2BQC.js.map → chunk-SDVE5ECI.js.map} +0 -0
- /package/dist/{chunk-VRY7WSS6.js.map → chunk-SWO6DZTG.js.map} +0 -0
- /package/dist/{chunk-6JBLNS4D.js.map → chunk-SYPSS3JQ.js.map} +0 -0
- /package/dist/{chunk-XPB2GP3C.js.map → chunk-TDM3645O.js.map} +0 -0
- /package/dist/{chunk-66BJC6ZX.js.map → chunk-VVO3R5JV.js.map} +0 -0
- /package/dist/{chunk-CLOHFGFX.js.map → chunk-VYEU6Y35.js.map} +0 -0
- /package/dist/{chunk-XPVU5AMT.js.map → chunk-WGXC6IEF.js.map} +0 -0
- /package/dist/{chunk-GF6CKFXE.js.map → chunk-WPDM57B5.js.map} +0 -0
- /package/dist/{chunk-VHDVTQFR.js.map → chunk-WS7WKS2B.js.map} +0 -0
- /package/dist/{chunk-X7IAKV5Z.js.map → chunk-X63NSV33.js.map} +0 -0
- /package/dist/{chunk-KAUMP3RR.js.map → chunk-XXNRSSBR.js.map} +0 -0
- /package/dist/{chunk-ONXYJWY6.js.map → chunk-YD6UGDFI.js.map} +0 -0
- /package/dist/{chunk-JSVLKCIQ.js.map → chunk-YRIYDFNU.js.map} +0 -0
- /package/dist/{chunk-DO4SLQNP.js.map → chunk-YY5WQQ3J.js.map} +0 -0
- /package/dist/{chunk-YLJOZP4P.js.map → chunk-Z2ZITHT4.js.map} +0 -0
- /package/dist/{chunk-YLWSTPPL.js.map → chunk-Z4SM3FBK.js.map} +0 -0
- /package/dist/{chunk-AFMD6226.js.map → chunk-ZEYEIUEZ.js.map} +0 -0
- /package/dist/{chunk-LXTBOUBG.js.map → chunk-ZLYTDHQP.js.map} +0 -0
- /package/dist/{chunk-GTMHDSOQ.js.map → chunk-ZWCVRVV4.js.map} +0 -0
- /package/dist/{cohort-ZTT2PSQA.js.map → cohort-FZNMFWOX.js.map} +0 -0
- /package/dist/{condition-L5DXIAJT.js.map → condition-AJJLFCBQ.js.map} +0 -0
- /package/dist/{controls-ROZP2O7A.js.map → controls-SZOLV37V.js.map} +0 -0
- /package/dist/{controls.config-YQKGHMIP.js.map → controls.config-CVP75WFA.js.map} +0 -0
- /package/dist/{correlation-6AKRIQXN.js.map → correlation-UFJFQHQ3.js.map} +0 -0
- /package/dist/{customdata.inputui-DD3OFHUS.js.map → customdata.inputui-HOVA4A6O.js.map} +0 -0
- /package/dist/{dataDownload-VHHSLSZV.js.map → dataDownload-VTUG4IOK.js.map} +0 -0
- /package/dist/{databrowser.ui-RLYJOEWQ.js.map → databrowser.ui-O5S4Y4EK.js.map} +0 -0
- /package/dist/{dictionary-IMOOQHIH.js.map → dictionary-L2UNNNP7.js.map} +0 -0
- /package/dist/{dnaMethylation-T6XUIOJF.js.map → dnaMethylation-B4SWZI4O.js.map} +0 -0
- /package/dist/{dnaMethylation.integration.spec-NRJOIDRD.js.map → dnaMethylation.integration.spec-ANJAMNYJ.js.map} +0 -0
- /package/dist/{dofetch-MLAEV3A2.js.map → dofetch-F5XSHQIS.js.map} +0 -0
- /package/dist/{e2pca-F3TGJOMW.js.map → e2pca-66ARIMKL.js.map} +0 -0
- /package/dist/{ep-UAF6OL2Y.js.map → ep-OFGJYVUY.js.map} +0 -0
- /package/dist/{expclust.gdc.spec-GHH3JQ65.js.map → expclust.gdc.spec-22RXQTTP.js.map} +0 -0
- /package/dist/{facet-MB4C7GII.js.map → facet-GVZQ3RPN.js.map} +0 -0
- /package/dist/{gb-C5YSAFWP.js.map → gb-HEPGVYEK.js.map} +0 -0
- /package/dist/{geneExpClustering-3BRSI5BR.js.map → geneExpClustering-3NU2U422.js.map} +0 -0
- /package/dist/{geneExpression-K3IZLSYC.js.map → geneExpression-FXQ4L2J2.js.map} +0 -0
- /package/dist/{geneExpression-SIAPRA3E.js.map → geneExpression-XYVYJJA5.js.map} +0 -0
- /package/dist/{geneExpression.unit.spec-I66QVNT5.js.map → geneExpression.unit.spec-K3FIRSNK.js.map} +0 -0
- /package/dist/{geneORA-SLM3SNNS.js.map → geneORA-5M2JSDMF.js.map} +0 -0
- /package/dist/{geneRanking-4EFYOR6A.js.map → geneRanking-TP3R3CS3.js.map} +0 -0
- /package/dist/{geneVariant-Z3BUIBLS.js.map → geneVariant-232EYUFJ.js.map} +0 -0
- /package/dist/{geneVariant-O347F2OY.js.map → geneVariant-BHXTPUDC.js.map} +0 -0
- /package/dist/{geneVariant.integration.spec-ZZ65EYEL.js.map → geneVariant.integration.spec-ICFHVFIR.js.map} +0 -0
- /package/dist/{genefusion.ui-TK6UKPDR.js.map → genefusion.ui-ABRCUQFC.js.map} +0 -0
- /package/dist/{geneset-MVXSEOKZ.js.map → geneset-N42FIVA6.js.map} +0 -0
- /package/dist/{genomeBrowser.spec-QDB4Z2L6.js.map → genomeBrowser.spec-5HKQKLRU.js.map} +0 -0
- /package/dist/{grin2-P6Z45MCJ.js.map → grin2-H2KJYLP6.js.map} +0 -0
- /package/dist/{grin2-DCU6PLPU.js.map → grin2-NGMTEMXF.js.map} +0 -0
- /package/dist/{hierCluster-3H47NLKS.js.map → hierCluster-JU5JPLM7.js.map} +0 -0
- /package/dist/{hierCluster-JG6VXTCV.js.map → hierCluster-LSSH275H.js.map} +0 -0
- /package/dist/{hierCluster.config-IP6I7RTS.js.map → hierCluster.config-ILOR7GBB.js.map} +0 -0
- /package/dist/{hierCluster.integration.spec-7PUNHRRS.js.map → hierCluster.integration.spec-CNR5OJOH.js.map} +0 -0
- /package/dist/{hierCluster.interactivity-FIDVRACV.js.map → hierCluster.interactivity-TLEIVTFK.js.map} +0 -0
- /package/dist/{hierCluster.renderers-QMJWUPAI.js.map → hierCluster.renderers-P7JNIT3N.js.map} +0 -0
- /package/dist/{imagePlot-CXYKBCWS.js.map → imagePlot-BF67SXQR.js.map} +0 -0
- /package/dist/{importPlot-Z4A54RXH.js.map → importPlot-OHXSXNZN.js.map} +0 -0
- /package/dist/{isoformExpression-DMDV2PZY.js.map → isoformExpression-4VKHE4HA.js.map} +0 -0
- /package/dist/{isoformExpression.unit.spec-W2LIYOXS.js.map → isoformExpression.unit.spec-4TVSIFG4.js.map} +0 -0
- /package/dist/{junction-R5GMEO7Z.js.map → junction-VUHORV43.js.map} +0 -0
- /package/dist/{junction.customTerm-AI44GNFV.js.map → junction.customTerm-FRYWSS4P.js.map} +0 -0
- /package/dist/{junction.unit.spec-SCRCANOC.js.map → junction.unit.spec-KKVLYT7Q.js.map} +0 -0
- /package/dist/{launch.adhoc-THLTYZJT.js.map → launch.adhoc-UDYMFZTQ.js.map} +0 -0
- /package/dist/{leftlabel.sample-GKQXEY4J.js.map → leftlabel.sample-R5FFBWG3.js.map} +0 -0
- /package/dist/{legacyDataset-27L4DMCL.js.map → legacyDataset-IEFWFVS6.js.map} +0 -0
- /package/dist/{lollipop-2TW6GGPY.js.map → lollipop-3IX6ZYUN.js.map} +0 -0
- /package/dist/{maf-A4PVW5V2.js.map → maf-42UFYSL4.js.map} +0 -0
- /package/dist/{maftimeline-QMX3HOAU.js.map → maftimeline-M5WYEN62.js.map} +0 -0
- /package/dist/{matrix-BGRYRU3T.js.map → matrix-CI76EDHU.js.map} +0 -0
- /package/dist/{matrix-GPXTUVCQ.js.map → matrix-WJZKA6VR.js.map} +0 -0
- /package/dist/{matrix.cells-C6OY7F5T.js.map → matrix.cells-ZFKVIPDC.js.map} +0 -0
- /package/dist/{matrix.config-Z5ZGHXDV.js.map → matrix.config-24TFHBEM.js.map} +0 -0
- /package/dist/{matrix.data-WB26I3TF.js.map → matrix.data-NCGZPNWR.js.map} +0 -0
- /package/dist/{matrix.groups-C2V2CV4A.js.map → matrix.groups-XQJTGM6M.js.map} +0 -0
- /package/dist/{matrix.integration.spec-3COAXQBV.js.map → matrix.integration.spec-OGXZUDE6.js.map} +0 -0
- /package/dist/{matrix.interactivity-NGHIQR3A.js.map → matrix.interactivity-ZOOTPNSW.js.map} +0 -0
- /package/dist/{matrix.layout-NYIOESGN.js.map → matrix.layout-5J2YENK3.js.map} +0 -0
- /package/dist/{matrix.legend-Q5HHWP5Q.js.map → matrix.legend-U36VCS46.js.map} +0 -0
- /package/dist/{matrix.renderers-GLXZARIP.js.map → matrix.renderers-4KFE7ZVR.js.map} +0 -0
- /package/dist/{matrix.serieses-LDQEPXPD.js.map → matrix.serieses-AW7XBXLJ.js.map} +0 -0
- /package/dist/{matrix.sort-44TQNRIX.js.map → matrix.sort-7PMECLOE.js.map} +0 -0
- /package/dist/{matrix.sort.unit.spec-T3BDWJ3Z.js.map → matrix.sort.unit.spec-GIA2YOTQ.js.map} +0 -0
- /package/dist/{matrix.sorterUi-6Y4YBQYL.js.map → matrix.sorterUi-J6PRUT6J.js.map} +0 -0
- /package/dist/{matrix.sorterUi.unit.spec-NHUYNMNU.js.map → matrix.sorterUi.unit.spec-OPGKZZL6.js.map} +0 -0
- /package/dist/{matrix.unit.spec-C7IRIBN6.js.map → matrix.unit.spec-7UIVVR4T.js.map} +0 -0
- /package/dist/{mavb-E37LI73X.js.map → mavb-MSYUMT6W.js.map} +0 -0
- /package/dist/{mds.fimo-YTGX7VEN.js.map → mds.fimo-OYEAQP37.js.map} +0 -0
- /package/dist/{mds.samplescatterplot-FFGGJSI3.js.map → mds.samplescatterplot-EXISSRQQ.js.map} +0 -0
- /package/dist/{mds.survivalplot-NCWRXXV4.js.map → mds.survivalplot-SZST6BLN.js.map} +0 -0
- /package/dist/{multivalue-N7A2PU5K.js.map → multivalue-YDE7L75Y.js.map} +0 -0
- /package/dist/{numericDictTermCluster-AKQKRBQH.js.map → numericDictTermCluster-5AKP6ICC.js.map} +0 -0
- /package/dist/{oncomatrix-QPVGACMF.js.map → oncomatrix-2OEIYWR6.js.map} +0 -0
- /package/dist/{oncomatrix.spec-6L2NDN2G.js.map → oncomatrix.spec-CXQW4JWU.js.map} +0 -0
- /package/dist/{plot.2dvaf-6TLON77B.js.map → plot.2dvaf-LN7A3NNC.js.map} +0 -0
- /package/dist/{plot.app-VM273TXU.js.map → plot.app-YIQOY2Z7.js.map} +0 -0
- /package/dist/{plot.barplot-IQTZURHK.js.map → plot.barplot-HF2J25XP.js.map} +0 -0
- /package/dist/{plot.boxplot-WEXB6HII.js.map → plot.boxplot-YJH4L27U.js.map} +0 -0
- /package/dist/{plot.brainImaging-REGSSBHV.js.map → plot.brainImaging-PS4TRSPI.js.map} +0 -0
- /package/dist/{plot.disco-F25Z3FQL.js.map → plot.disco-BN5RNZ6Q.js.map} +0 -0
- /package/dist/{plot.ssgq-CRRK26RS.js.map → plot.ssgq-N2HTOIY3.js.map} +0 -0
- /package/dist/{plot.vaf2cov-WCNPZKXK.js.map → plot.vaf2cov-6AOHRUQ2.js.map} +0 -0
- /package/dist/{polar2-MH5GPXHJ.js.map → polar2-TC5OEJRE.js.map} +0 -0
- /package/dist/{profileForms-2YX2OYDI.js.map → profileForms-5WV2TSBB.js.map} +0 -0
- /package/dist/{profilePlot-FUTMZ2PP.js.map → profilePlot-OJLLW44P.js.map} +0 -0
- /package/dist/{pseudbulk.unit.spec-S7FDL3IX.js.map → pseudbulk.unit.spec-RAYRGN6C.js.map} +0 -0
- /package/dist/{pseudobulk-A3LB23N2.js.map → pseudobulk-ADHAYVSQ.js.map} +0 -0
- /package/dist/{qualitative-5VJRMF4S.js.map → qualitative-JXEI3IYC.js.map} +0 -0
- /package/dist/{radar2-2SJX4ZXN.js.map → radar2-BWTKSTT3.js.map} +0 -0
- /package/dist/{radarFacility2-7FPO34JS.js.map → radarFacility2-WIRSKTDG.js.map} +0 -0
- /package/dist/{rememberedGvQ.unit.spec-WOQVPQ75.js.map → rememberedGvQ.unit.spec-N43O4YTF.js.map} +0 -0
- /package/dist/{render-ZLA2RRBP.js.map → render-J7WOYBOL.js.map} +0 -0
- /package/dist/{report-VCE6RILD.js.map → report-DRPCXX2B.js.map} +0 -0
- /package/dist/{sampleView-QYTX4OLI.js.map → sampleView-BV6BQGGQ.js.map} +0 -0
- /package/dist/{samplelst-7NGH3SUM.js.map → samplelst-ZD63EYO7.js.map} +0 -0
- /package/dist/{samplematrix-SNAR6IBB.js.map → samplematrix-ZZ3DVELU.js.map} +0 -0
- /package/dist/{sc-2JETYAI4.js.map → sc-MUI43YTB.js.map} +0 -0
- /package/dist/{scatter-GHBQM2RR.js.map → scatter-7B44HTKN.js.map} +0 -0
- /package/dist/{scatter-D7VZOBEE.js.map → scatter-UEDVIE4Y.js.map} +0 -0
- /package/dist/{selectGenomeWithTklst-BD4GMGX3.js.map → selectGenomeWithTklst-WGOKGVZ5.js.map} +0 -0
- /package/dist/{singleCellCellType-XHLOJVVC.js.map → singleCellCellType-Z7OXK7PI.js.map} +0 -0
- /package/dist/{singleCellCellType.unit.spec-LCLR3IOD.js.map → singleCellCellType.unit.spec-IIOVCCJQ.js.map} +0 -0
- /package/dist/{singleCellGeneExpression-JRBONI5C.js.map → singleCellGeneExpression-LYZAIJ2Z.js.map} +0 -0
- /package/dist/{singleCellGeneExpression.unit.spec-Z2KSVCIG.js.map → singleCellGeneExpression.unit.spec-67AAWZTG.js.map} +0 -0
- /package/dist/{singleCellPlot-4462CQHF.js.map → singleCellPlot-TXPYQLSH.js.map} +0 -0
- /package/dist/{singlecell-SO3B5KJ7.js.map → singlecell-22OG6HNI.js.map} +0 -0
- /package/dist/{singlecell-CDUQ6MTO.js.map → singlecell-7TBALI2S.js.map} +0 -0
- /package/dist/{snp-YE2MXKJO.js.map → snp-3U2G3Z57.js.map} +0 -0
- /package/dist/{snp.unit.spec-MT57TGGQ.js.map → snp.unit.spec-BMBBUBYD.js.map} +0 -0
- /package/dist/{snplocus-RSNKWY63.js.map → snplocus-SSVZDIQV.js.map} +0 -0
- /package/dist/{spliceevent.a53ss.diagram-6N6YGYV7.js.map → spliceevent.a53ss.diagram-FK7CN4AU.js.map} +0 -0
- /package/dist/{spliceevent.exonskip.diagram-LMNUS4XV.js.map → spliceevent.exonskip.diagram-EFLGV3O4.js.map} +0 -0
- /package/dist/{spliceevent.noeventdiagram-LTBH4YD5.js.map → spliceevent.noeventdiagram-2DYO7CCZ.js.map} +0 -0
- /package/dist/{ssGSEA-DPK4PDM2.js.map → ssGSEA-52LWBQJP.js.map} +0 -0
- /package/dist/{ssGSEA.unit.spec-K2SA7ME7.js.map → ssGSEA.unit.spec-3JV6WHUQ.js.map} +0 -0
- /package/dist/{stattable-PR47XT4F.js.map → stattable-RLMYQ4G6.js.map} +0 -0
- /package/dist/{summarizeCnvGeneexp-YZEMDLES.js.map → summarizeCnvGeneexp-QPRYAKC2.js.map} +0 -0
- /package/dist/{summarizeGeneexpSurvival-3TXV6ZNI.js.map → summarizeGeneexpSurvival-RWVQXEKB.js.map} +0 -0
- /package/dist/{summarizeMutationCnv-EBWSEHWJ.js.map → summarizeMutationCnv-DW5F6NUJ.js.map} +0 -0
- /package/dist/{summarizeMutationDiagnosis-FXA25W3O.js.map → summarizeMutationDiagnosis-5FOQ7CHI.js.map} +0 -0
- /package/dist/{summarizeMutationSurvival-MR4AOMNS.js.map → summarizeMutationSurvival-4UKB4EVO.js.map} +0 -0
- /package/dist/{summary-4C6LGTMF.js.map → summary-TYC6QNT4.js.map} +0 -0
- /package/dist/{summary.integration.spec-Y6JLH7NH.js.map → summary.integration.spec-5GLJJZNM.js.map} +0 -0
- /package/dist/{summaryInput-NWT2DXWU.js.map → summaryInput-4IJGKW4P.js.map} +0 -0
- /package/dist/{sunburst-266MA7E2.js.map → sunburst-G7DGATWP.js.map} +0 -0
- /package/dist/{survival-CAZCIY2N.js.map → survival-MKNABJPU.js.map} +0 -0
- /package/dist/{svgraph-OFUESREM.js.map → svgraph-VB7JWWR5.js.map} +0 -0
- /package/dist/{svmr-PVH42MY4.js.map → svmr-VLQIO2U5.js.map} +0 -0
- /package/dist/{table-C2SICFZV.js.map → table-EAXMDWOY.js.map} +0 -0
- /package/dist/{termCollection-TGYDI7NP.js.map → termCollection-5LG7ICQY.js.map} +0 -0
- /package/dist/{termCollection-H4RL5WJG.js.map → termCollection-SB6MWLFK.js.map} +0 -0
- /package/dist/{termCollection.unit.spec-JSALS7GL.js.map → termCollection.unit.spec-H5ITGTR3.js.map} +0 -0
- /package/dist/{termCollectionFractionSelection-YJVDNV4I.js.map → termCollectionFractionSelection-2XZSTDCQ.js.map} +0 -0
- /package/dist/{termCollectionFractionSelection.unit.spec-4GM7P4ZW.js.map → termCollectionFractionSelection.unit.spec-BIO7V6KA.js.map} +0 -0
- /package/dist/{tk-RZCPSHJG.js.map → tk-TRWYZLQ2.js.map} +0 -0
- /package/dist/{tk-SNTRA5CC.js.map → tk-VZI5HNSX.js.map} +0 -0
- /package/dist/{tp.ui-2W4K3XH6.js.map → tp.ui-J5SNNAT3.js.map} +0 -0
- /package/dist/{tvs.dt-GIPVC3R6.js.map → tvs.dt-6YHFJPER.js.map} +0 -0
- /package/dist/{tvs.dtcnv.categorical-TEYAS4OU.js.map → tvs.dtcnv.categorical-WTIE63GM.js.map} +0 -0
- /package/dist/{tvs.dtcnv.continuous-VQRATYPZ.js.map → tvs.dtcnv.continuous-OCMKGTF5.js.map} +0 -0
- /package/dist/{tvs.dtfusion-P2KF5Z4H.js.map → tvs.dtfusion-CA23UNM3.js.map} +0 -0
- /package/dist/{tvs.dtitd-TM6UROSH.js.map → tvs.dtitd-VSYMR3OD.js.map} +0 -0
- /package/dist/{tvs.dtsnvindel-FZXC23NF.js.map → tvs.dtsnvindel-YBNO3CYF.js.map} +0 -0
- /package/dist/{tvs.dtsv-Y5QEJPYG.js.map → tvs.dtsv-S743GBB5.js.map} +0 -0
- /package/dist/{tvs.numeric-3UXW4JHJ.js.map → tvs.numeric-22AHXO5K.js.map} +0 -0
- /package/dist/{tvs.samplelst-MLAFPFER.js.map → tvs.samplelst-XAJO4EM6.js.map} +0 -0
- /package/dist/{tvs.termCollection-ZQQDKESH.js.map → tvs.termCollection-QOVJGAUC.js.map} +0 -0
- /package/dist/{vocabulary-JRUZPHMG.js.map → vocabulary-6EADTHP3.js.map} +0 -0
|
@@ -0,0 +1,2133 @@
|
|
|
1
|
+
import {
|
|
2
|
+
isNumericTerm
|
|
3
|
+
} from "./chunk-5ILEFNXJ.js";
|
|
4
|
+
import {
|
|
5
|
+
ISOFORM_EXPRESSION,
|
|
6
|
+
SINGLECELL_CELLTYPE,
|
|
7
|
+
SINGLECELL_GENE_EXPRESSION,
|
|
8
|
+
TermTypes,
|
|
9
|
+
dtcnv,
|
|
10
|
+
dtfusionrna,
|
|
11
|
+
dtitd,
|
|
12
|
+
dtsnvindel,
|
|
13
|
+
dtsv,
|
|
14
|
+
getColors,
|
|
15
|
+
mclass,
|
|
16
|
+
mclassdeletion,
|
|
17
|
+
mclassinsertion,
|
|
18
|
+
mclassitd,
|
|
19
|
+
mclassmnv,
|
|
20
|
+
mclassnonstandard,
|
|
21
|
+
mclasssnv,
|
|
22
|
+
morigingermline,
|
|
23
|
+
morigingermlinenonpathogenic,
|
|
24
|
+
morigingermlinepathogenic,
|
|
25
|
+
moriginrelapse,
|
|
26
|
+
moriginsomatic,
|
|
27
|
+
vepinfo
|
|
28
|
+
} from "./chunk-IZUYLFOX.js";
|
|
29
|
+
import {
|
|
30
|
+
deepFreeze,
|
|
31
|
+
sleep
|
|
32
|
+
} from "./chunk-WINIL2KN.js";
|
|
33
|
+
import {
|
|
34
|
+
convertUnits,
|
|
35
|
+
isNumeric,
|
|
36
|
+
isStrictNumeric
|
|
37
|
+
} from "./chunk-W5J3LTYS.js";
|
|
38
|
+
import {
|
|
39
|
+
format
|
|
40
|
+
} from "./chunk-4OLM3KSB.js";
|
|
41
|
+
import {
|
|
42
|
+
select_default
|
|
43
|
+
} from "./chunk-I6Y4O3RR.js";
|
|
44
|
+
|
|
45
|
+
// ../shared/utils/dist/src/boxplot.js
|
|
46
|
+
function boxplot_getvalue(lst, removeOutliers = false) {
|
|
47
|
+
const l = lst.length;
|
|
48
|
+
if (l < 5) return { out: lst };
|
|
49
|
+
const isN = typeof lst[0] === "number";
|
|
50
|
+
const valueOf = isN ? (item) => item : (item) => item.value;
|
|
51
|
+
const p50 = valueOf(lst[Math.floor(l / 2)]);
|
|
52
|
+
const p25 = valueOf(lst[Math.floor(l / 4)]);
|
|
53
|
+
const p75 = valueOf(lst[Math.floor(l * 3 / 4)]);
|
|
54
|
+
const p05 = valueOf(lst[Math.floor(l * 0.05)]);
|
|
55
|
+
const p95 = valueOf(lst[Math.floor(l * 0.95)]);
|
|
56
|
+
const iqr = p75 - p25;
|
|
57
|
+
let w1, w2;
|
|
58
|
+
if (iqr === 0) {
|
|
59
|
+
w1 = p25;
|
|
60
|
+
w2 = p25;
|
|
61
|
+
} else {
|
|
62
|
+
const i = lst.findIndex((item) => valueOf(item) > p25 - iqr * 1.5);
|
|
63
|
+
w1 = valueOf(lst[i === -1 ? 0 : i]);
|
|
64
|
+
const j = lst.findIndex((item) => valueOf(item) > p75 + iqr * 1.5);
|
|
65
|
+
w2 = valueOf(lst[j === -1 ? l - 1 : j - 1]);
|
|
66
|
+
}
|
|
67
|
+
const out = removeOutliers ? [] : lst.filter((item) => valueOf(item) < p25 - iqr * 1.5 || valueOf(item) > p75 + iqr * 1.5);
|
|
68
|
+
return { w1, w2, p05, p25, p50, p75, p95, iqr, out };
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
// ../shared/utils/dist/src/bulk.js
|
|
72
|
+
function init_bulk_flag(genome) {
|
|
73
|
+
if (!genome) {
|
|
74
|
+
return null;
|
|
75
|
+
}
|
|
76
|
+
const mclasslabel2key2 = {};
|
|
77
|
+
for (const n in mclass) {
|
|
78
|
+
mclasslabel2key2[mclass[n].label.toUpperCase()] = n;
|
|
79
|
+
}
|
|
80
|
+
return {
|
|
81
|
+
genome,
|
|
82
|
+
mclasslabel2key: mclasslabel2key2,
|
|
83
|
+
data: {},
|
|
84
|
+
sample2disease: {},
|
|
85
|
+
// (proof) k: sample, v: disease
|
|
86
|
+
// will only record this when origin is used
|
|
87
|
+
patient2st: {},
|
|
88
|
+
// k: patient, v: { k: sampletype, v: sample }
|
|
89
|
+
// new sample names always override old
|
|
90
|
+
good: 0,
|
|
91
|
+
geneToUpper: true,
|
|
92
|
+
// option to not force uppercase on gene names
|
|
93
|
+
snv: {
|
|
94
|
+
loaded: false,
|
|
95
|
+
header: null,
|
|
96
|
+
badlines: [],
|
|
97
|
+
// jinghui: based on missense/silent ratio of entire dataset to decide whether to include silent when importing...
|
|
98
|
+
// hard-coded class codes
|
|
99
|
+
missense: 0,
|
|
100
|
+
silent: 0
|
|
101
|
+
},
|
|
102
|
+
svjson: {
|
|
103
|
+
loaded: false,
|
|
104
|
+
header: null,
|
|
105
|
+
badlines: []
|
|
106
|
+
},
|
|
107
|
+
fusion: {
|
|
108
|
+
loaded: false,
|
|
109
|
+
header: null,
|
|
110
|
+
badlines: [],
|
|
111
|
+
original: []
|
|
112
|
+
},
|
|
113
|
+
sv: {
|
|
114
|
+
loaded: false,
|
|
115
|
+
header: null,
|
|
116
|
+
badlines: [],
|
|
117
|
+
original: []
|
|
118
|
+
},
|
|
119
|
+
cnv: {
|
|
120
|
+
loaded: false,
|
|
121
|
+
header: null,
|
|
122
|
+
badlines: []
|
|
123
|
+
},
|
|
124
|
+
itd: {
|
|
125
|
+
loaded: false,
|
|
126
|
+
header: null,
|
|
127
|
+
badlines: []
|
|
128
|
+
},
|
|
129
|
+
del: {
|
|
130
|
+
loaded: false,
|
|
131
|
+
header: null,
|
|
132
|
+
badlines: []
|
|
133
|
+
},
|
|
134
|
+
truncation: {
|
|
135
|
+
loaded: false,
|
|
136
|
+
header: null,
|
|
137
|
+
badlines: []
|
|
138
|
+
}
|
|
139
|
+
};
|
|
140
|
+
}
|
|
141
|
+
function parsesample(m, flag, i, lst) {
|
|
142
|
+
let variantorigin = moriginsomatic;
|
|
143
|
+
if (m.sampletype) {
|
|
144
|
+
const s = m.sampletype.toLowerCase();
|
|
145
|
+
switch (s) {
|
|
146
|
+
case "relapse":
|
|
147
|
+
variantorigin = moriginrelapse;
|
|
148
|
+
break;
|
|
149
|
+
case "germline":
|
|
150
|
+
variantorigin = morigingermline;
|
|
151
|
+
break;
|
|
152
|
+
case "somatic":
|
|
153
|
+
case "diagnosis":
|
|
154
|
+
break;
|
|
155
|
+
}
|
|
156
|
+
if (m.sample) {
|
|
157
|
+
if (m.patient) {
|
|
158
|
+
} else {
|
|
159
|
+
m.patient = m.sample + " " + m.sampletype;
|
|
160
|
+
}
|
|
161
|
+
} else {
|
|
162
|
+
if (m.patient) {
|
|
163
|
+
m.sample = m.patient + " " + m.sampletype;
|
|
164
|
+
} else {
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
} else {
|
|
168
|
+
if (m.patient) {
|
|
169
|
+
if (m.sample) {
|
|
170
|
+
m.sampletype = m.sample;
|
|
171
|
+
} else {
|
|
172
|
+
m.sample = m.sampletype = m.patient;
|
|
173
|
+
}
|
|
174
|
+
} else {
|
|
175
|
+
if (m.sample) {
|
|
176
|
+
m.sampletype = m.sample;
|
|
177
|
+
} else {
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
if (m.origin) {
|
|
182
|
+
const s = m.origin.toLowerCase();
|
|
183
|
+
switch (s) {
|
|
184
|
+
case "r":
|
|
185
|
+
case "relapse":
|
|
186
|
+
variantorigin = moriginrelapse;
|
|
187
|
+
m.isrim2 = true;
|
|
188
|
+
break;
|
|
189
|
+
case "g":
|
|
190
|
+
case "germline":
|
|
191
|
+
variantorigin = morigingermline;
|
|
192
|
+
m.isrim1 = true;
|
|
193
|
+
break;
|
|
194
|
+
case "gp":
|
|
195
|
+
case "germline pathogenic":
|
|
196
|
+
variantorigin = morigingermlinepathogenic;
|
|
197
|
+
m.isrim1 = true;
|
|
198
|
+
break;
|
|
199
|
+
case "gnp":
|
|
200
|
+
case "germline nonpathogenic":
|
|
201
|
+
case "germline non-pathogenic":
|
|
202
|
+
variantorigin = morigingermlinenonpathogenic;
|
|
203
|
+
m.isrim1 = true;
|
|
204
|
+
break;
|
|
205
|
+
case "s":
|
|
206
|
+
case "somatic":
|
|
207
|
+
case "diagnosis":
|
|
208
|
+
variantorigin = moriginsomatic;
|
|
209
|
+
break;
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
m.origin = variantorigin;
|
|
213
|
+
if (!m.sample && !m.patient) {
|
|
214
|
+
return;
|
|
215
|
+
}
|
|
216
|
+
const nopatientname = "no patient/individual name";
|
|
217
|
+
if (m.patient) {
|
|
218
|
+
if (!flag.patient2st[m.patient]) {
|
|
219
|
+
flag.patient2st[m.patient] = {};
|
|
220
|
+
}
|
|
221
|
+
flag.patient2st[m.patient][m.sampletype] = m.sample;
|
|
222
|
+
} else {
|
|
223
|
+
if (!flag.patient2st[nopatientname]) {
|
|
224
|
+
flag.patient2st[nopatientname] = {};
|
|
225
|
+
}
|
|
226
|
+
flag.patient2st[nopatientname][m.sampletype] = m.sample;
|
|
227
|
+
}
|
|
228
|
+
if (m.sample) {
|
|
229
|
+
if (m.disease) {
|
|
230
|
+
if (m.sample in flag.sample2disease) {
|
|
231
|
+
if (m.disease != flag.sample2disease[m.sample]) {
|
|
232
|
+
flag.snv.badlines.push([
|
|
233
|
+
i,
|
|
234
|
+
'conflict of disease types for sample "' + m.sample + '": ' + m.disease + ", " + flag.sample2disease[m.sample],
|
|
235
|
+
lst
|
|
236
|
+
]);
|
|
237
|
+
return true;
|
|
238
|
+
}
|
|
239
|
+
} else {
|
|
240
|
+
flag.sample2disease[m.sample] = m.disease;
|
|
241
|
+
}
|
|
242
|
+
}
|
|
243
|
+
}
|
|
244
|
+
return false;
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
// ../shared/utils/dist/src/clustering.js
|
|
248
|
+
var clusterMethodLst = [
|
|
249
|
+
{
|
|
250
|
+
label: "Average",
|
|
251
|
+
value: "average",
|
|
252
|
+
title: `Cluster by average value`
|
|
253
|
+
},
|
|
254
|
+
{
|
|
255
|
+
label: `Complete`,
|
|
256
|
+
value: "complete",
|
|
257
|
+
title: `Use the complete clustering method`
|
|
258
|
+
},
|
|
259
|
+
{
|
|
260
|
+
label: `Single`,
|
|
261
|
+
value: "single",
|
|
262
|
+
title: `Use the single clustering method`
|
|
263
|
+
},
|
|
264
|
+
{
|
|
265
|
+
label: `Ward.D`,
|
|
266
|
+
value: "ward.D",
|
|
267
|
+
title: `Use the ward.D clustering method`
|
|
268
|
+
},
|
|
269
|
+
{
|
|
270
|
+
label: `Ward.D2`,
|
|
271
|
+
value: "ward.D2",
|
|
272
|
+
title: `Use the ward.D2 clustering method`
|
|
273
|
+
},
|
|
274
|
+
{
|
|
275
|
+
label: `Mcquitty`,
|
|
276
|
+
value: "mcquitty",
|
|
277
|
+
title: `Use the Mcquity clustering method`
|
|
278
|
+
}
|
|
279
|
+
/* These methods are currently disabled because the dendrogram lines tend to cross one another.
|
|
280
|
+
{
|
|
281
|
+
label: `Centroid`,
|
|
282
|
+
value: 'centroid',
|
|
283
|
+
title: `Use the centroid clustering method`
|
|
284
|
+
},
|
|
285
|
+
{
|
|
286
|
+
label: `Median`,
|
|
287
|
+
value: 'median',
|
|
288
|
+
title: `Use the median clustering method`
|
|
289
|
+
}
|
|
290
|
+
*/
|
|
291
|
+
];
|
|
292
|
+
var distanceMethodLst = [
|
|
293
|
+
{
|
|
294
|
+
label: "Euclidean",
|
|
295
|
+
value: "euclidean",
|
|
296
|
+
title: `Calculate distance using euclidean method`
|
|
297
|
+
},
|
|
298
|
+
{
|
|
299
|
+
label: "Maximum",
|
|
300
|
+
value: "maximum",
|
|
301
|
+
title: `Maximum distance between two components of x and y`
|
|
302
|
+
},
|
|
303
|
+
{
|
|
304
|
+
label: "Manhattan",
|
|
305
|
+
value: "manhattan",
|
|
306
|
+
title: `Calculate distance using the absolute distance between the two vectors`
|
|
307
|
+
},
|
|
308
|
+
{
|
|
309
|
+
label: "Canberra",
|
|
310
|
+
value: "canberra",
|
|
311
|
+
title: `Calculate distance using Canberra method`
|
|
312
|
+
}
|
|
313
|
+
];
|
|
314
|
+
|
|
315
|
+
// ../shared/utils/dist/src/compute.percentile.js
|
|
316
|
+
function computePercentile(values, percentile, sorted = false) {
|
|
317
|
+
if (!sorted) values.sort((a, b) => a - b);
|
|
318
|
+
const index = Math.abs(percentile / 100 * values.length - 1);
|
|
319
|
+
const value = Number.isInteger(index) ? (values[index] + values[index + 1]) / 2 : values[Math.ceil(index)];
|
|
320
|
+
return value;
|
|
321
|
+
}
|
|
322
|
+
|
|
323
|
+
// ../shared/utils/dist/src/hash.js
|
|
324
|
+
var encoder = new TextEncoder();
|
|
325
|
+
async function hash(message) {
|
|
326
|
+
const msgUint8 = encoder.encode(message);
|
|
327
|
+
const hashBuffer = await crypto.subtle.digest("SHA-1", msgUint8);
|
|
328
|
+
const hashArray = Array.from(new Uint8Array(hashBuffer));
|
|
329
|
+
const hashHex = hashArray.map((b) => b.toString(16).padStart(2, "0")).join("");
|
|
330
|
+
return hexToBase64(hashHex).replace("=", "-");
|
|
331
|
+
}
|
|
332
|
+
function hexToBase64(hexStr) {
|
|
333
|
+
return btoa(
|
|
334
|
+
[...hexStr].reduce(
|
|
335
|
+
(acc, _, i) => acc += !(i - 1 & 1) ? String.fromCharCode(parseInt(hexStr.substring(i - 1, i + 1), 16)) : "",
|
|
336
|
+
""
|
|
337
|
+
)
|
|
338
|
+
);
|
|
339
|
+
}
|
|
340
|
+
|
|
341
|
+
// ../shared/utils/dist/src/urljson.js
|
|
342
|
+
var reserved = ["false", "true", "null", "undefined"];
|
|
343
|
+
var delimiters = ['"', "{", "["];
|
|
344
|
+
function encode(rawObject) {
|
|
345
|
+
const params = [];
|
|
346
|
+
for (const [key, value] of Object.entries(rawObject)) {
|
|
347
|
+
if (typeof value == "string" && !isNumeric(value) && !reserved.includes(value) && !delimiters.includes(value[0])) {
|
|
348
|
+
params.push(`${key}=${encodeURIComponent(value)}`);
|
|
349
|
+
} else if (value !== void 0) {
|
|
350
|
+
params.push(`${key}=${encodeURIComponent(JSON.stringify(value))}`);
|
|
351
|
+
}
|
|
352
|
+
}
|
|
353
|
+
return params.join("&");
|
|
354
|
+
}
|
|
355
|
+
|
|
356
|
+
// ../shared/utils/dist/src/fetch-helpers.js
|
|
357
|
+
async function processResponse(r) {
|
|
358
|
+
const ct = r.headers.get("content-type");
|
|
359
|
+
if (!ct) throw `missing response.header['content-type']`;
|
|
360
|
+
if (ct.includes("/json")) {
|
|
361
|
+
const payload = await r.json();
|
|
362
|
+
return payload;
|
|
363
|
+
}
|
|
364
|
+
if (ct.includes("/text") || ct.includes("text/")) {
|
|
365
|
+
return r.text();
|
|
366
|
+
}
|
|
367
|
+
if (ct.includes("multipart")) {
|
|
368
|
+
if (ct.startsWith("multipart/form-data")) return processFormData(r);
|
|
369
|
+
else throw `cannot handle response content-type: '${ct}'`;
|
|
370
|
+
}
|
|
371
|
+
if (ct == "application/x-ndjson-nestedkey") {
|
|
372
|
+
return processNDJSON_nestedKey(r);
|
|
373
|
+
}
|
|
374
|
+
return r.blob();
|
|
375
|
+
}
|
|
376
|
+
async function processFormData(res) {
|
|
377
|
+
const data = {};
|
|
378
|
+
const form = await res.formData();
|
|
379
|
+
for (const [key, value] of form.entries()) {
|
|
380
|
+
if (value.type) {
|
|
381
|
+
data[key] = { headers: { "content-type": value.type }, body: value };
|
|
382
|
+
} else {
|
|
383
|
+
const body = !value ? [] : value.trim().split("\n").map(JSON.parse);
|
|
384
|
+
data[key] = { headers: { "content-type": "application/json" }, body };
|
|
385
|
+
}
|
|
386
|
+
}
|
|
387
|
+
return data;
|
|
388
|
+
}
|
|
389
|
+
async function processNDJSON_nestedKey(r) {
|
|
390
|
+
const stream = r.body.pipeThrough(new TextDecoderStream());
|
|
391
|
+
const reader = stream.getReader();
|
|
392
|
+
let rootObj = {};
|
|
393
|
+
let buffer = "";
|
|
394
|
+
let done = false;
|
|
395
|
+
while (!done) {
|
|
396
|
+
const readResult = await reader.read();
|
|
397
|
+
done = readResult.done;
|
|
398
|
+
if (done) break;
|
|
399
|
+
const value = readResult.value;
|
|
400
|
+
buffer += value;
|
|
401
|
+
const parts = buffer.split("\n");
|
|
402
|
+
buffer = parts.pop() ?? "";
|
|
403
|
+
for (const line of parts) {
|
|
404
|
+
if (line.trim()) {
|
|
405
|
+
const [keys, data] = JSON.parse(line);
|
|
406
|
+
if (!keys.length) rootObj = data;
|
|
407
|
+
else {
|
|
408
|
+
const lastKey = keys.pop();
|
|
409
|
+
let target = rootObj;
|
|
410
|
+
for (const k of keys) target = target[k];
|
|
411
|
+
target[lastKey] = data;
|
|
412
|
+
}
|
|
413
|
+
}
|
|
414
|
+
}
|
|
415
|
+
}
|
|
416
|
+
return rootObj;
|
|
417
|
+
}
|
|
418
|
+
var cacheLifetime = 1e3 * 60 * 5;
|
|
419
|
+
async function getDataName(url, init) {
|
|
420
|
+
const dataName = url + " | " + init.method + " | " + init.body + " | " + JSON.stringify(init.headers);
|
|
421
|
+
return await hash(dataName);
|
|
422
|
+
}
|
|
423
|
+
|
|
424
|
+
// ../shared/utils/dist/src/fileSize.js
|
|
425
|
+
function fileSize(v) {
|
|
426
|
+
if (v > 1e9) return (v / 1e9).toFixed(2) + " GB";
|
|
427
|
+
if (v > 1e6) return (v / 1e6).toFixed(2) + " MB";
|
|
428
|
+
if (v > 1e3) return (v / 1e3).toFixed(2) + " KB";
|
|
429
|
+
return v + " Bytes";
|
|
430
|
+
}
|
|
431
|
+
|
|
432
|
+
// ../shared/utils/dist/src/mds3tk.js
|
|
433
|
+
var ssmIdFieldsSeparator = "__";
|
|
434
|
+
function summarize_mclass(mlst) {
|
|
435
|
+
const m2c = /* @__PURE__ */ new Map();
|
|
436
|
+
const cnvs = [];
|
|
437
|
+
for (const m of mlst) {
|
|
438
|
+
if (m.dt == dtcnv) {
|
|
439
|
+
cnvs.push(m);
|
|
440
|
+
continue;
|
|
441
|
+
}
|
|
442
|
+
const key = m.class || m.dt;
|
|
443
|
+
m2c.set(key, 1 + (m2c.get(key) || 0));
|
|
444
|
+
}
|
|
445
|
+
if (cnvs.length) {
|
|
446
|
+
if (Number.isFinite(cnvs[0].value)) {
|
|
447
|
+
m2c.set(dtcnv, cnvs.length);
|
|
448
|
+
} else {
|
|
449
|
+
for (const c of cnvs) {
|
|
450
|
+
if (!c.class) continue;
|
|
451
|
+
m2c.set(c.class, 1 + (m2c.get(c.class) || 0));
|
|
452
|
+
}
|
|
453
|
+
}
|
|
454
|
+
}
|
|
455
|
+
return [...m2c].sort((i, j) => j[1] - i[1]);
|
|
456
|
+
}
|
|
457
|
+
function guessSsmid(ssmid) {
|
|
458
|
+
const l = ssmid.split(ssmIdFieldsSeparator);
|
|
459
|
+
if (l.length == 4) {
|
|
460
|
+
const [chr, tmp, ref, alt] = l;
|
|
461
|
+
const pos = Number(tmp);
|
|
462
|
+
if (Number.isNaN(pos)) throw "ssmid snvindel pos not integer";
|
|
463
|
+
return { dt: dtsnvindel, l: [chr, pos, ref, alt] };
|
|
464
|
+
}
|
|
465
|
+
if (l.length == 5) {
|
|
466
|
+
const [chr, _start, _stop, _class, _value] = l;
|
|
467
|
+
const start = Number(_start), stop = Number(_stop);
|
|
468
|
+
if (Number.isNaN(start) || Number.isNaN(stop)) throw new Error("ssmid cnv start/stop not integer");
|
|
469
|
+
const value = _value == "" ? null : Number(_value);
|
|
470
|
+
if (_class == mclassitd) {
|
|
471
|
+
return { dt: dtitd, l: [chr, start, stop, _class, value] };
|
|
472
|
+
}
|
|
473
|
+
return { dt: dtcnv, l: [chr, start, stop, _class, value] };
|
|
474
|
+
}
|
|
475
|
+
if (l.length == 6) {
|
|
476
|
+
if (l[3] == "+" || l[3] == "-") {
|
|
477
|
+
const [_dt, chr2, _pos, strand, _pi, _mname] = l;
|
|
478
|
+
const mname = decodeURIComponent(_mname);
|
|
479
|
+
const dt = Number(_dt);
|
|
480
|
+
if (dt != dtsv && dt != dtfusionrna) throw "ssmid dt not sv/fusion";
|
|
481
|
+
const pos = Number(_pos);
|
|
482
|
+
if (Number.isNaN(pos)) throw "ssmid svfusion position not integer";
|
|
483
|
+
const pairlstIdx = Number(_pi);
|
|
484
|
+
if (Number.isNaN(pairlstIdx)) throw "ssmid pairlstIdx not integer";
|
|
485
|
+
return { dt, l: [dt, chr2, pos, strand, pairlstIdx, mname] };
|
|
486
|
+
}
|
|
487
|
+
const [chr, _start, _stop, _class, _value, sample] = l;
|
|
488
|
+
const start = Number(_start), stop = Number(_stop);
|
|
489
|
+
if (Number.isNaN(start) || Number.isNaN(stop)) throw new Error("ssmid cnv start/stop not integer");
|
|
490
|
+
if (_class == mclassitd) {
|
|
491
|
+
return { dt: dtitd, l: [chr, start, stop, _class, _value, sample] };
|
|
492
|
+
}
|
|
493
|
+
const value = _value == "" ? null : Number(_value);
|
|
494
|
+
return { dt: dtcnv, l: [chr, start, stop, _class, value, sample] };
|
|
495
|
+
}
|
|
496
|
+
throw new Error("unknown ssmid");
|
|
497
|
+
}
|
|
498
|
+
|
|
499
|
+
// ../shared/utils/dist/src/scatter.js
|
|
500
|
+
var xAxisOffSet = 80;
|
|
501
|
+
var yAxisOffSet = 30;
|
|
502
|
+
function getCoordinate(val, min, max) {
|
|
503
|
+
if (min != null && val < min) return min;
|
|
504
|
+
if (max != null && val > max) return max;
|
|
505
|
+
return val;
|
|
506
|
+
}
|
|
507
|
+
function calculatePadding(minScale, maxScale, min, max) {
|
|
508
|
+
return minScale != null || maxScale != null ? 0 : (max - min) * 0.01;
|
|
509
|
+
}
|
|
510
|
+
|
|
511
|
+
// ../shared/utils/dist/src/termdb.bins.js
|
|
512
|
+
function validate_bins(binconfig) {
|
|
513
|
+
const bc = binconfig;
|
|
514
|
+
if (!bc || typeof bc !== "object") throw "bin schema must be an object";
|
|
515
|
+
if (!("type" in bc)) bc.type = "regular-bin";
|
|
516
|
+
if (bc.type == "custom-bin") {
|
|
517
|
+
if (!Array.isArray(bc.lst)) throw "binconfig.lst must be an array";
|
|
518
|
+
if (!bc.lst.length) throw "binconfig.lst must have entries";
|
|
519
|
+
const first_bin = bc.lst[0];
|
|
520
|
+
const last_bin = bc.lst[bc.lst.length - 1];
|
|
521
|
+
for (const bin of bc.lst) {
|
|
522
|
+
if (!("startinclusive" in bin) && !("stopinclusive" in bin)) {
|
|
523
|
+
throw "custom bin.startinclusive and/or bin.stopinclusive must be defined";
|
|
524
|
+
}
|
|
525
|
+
if (bin == first_bin) {
|
|
526
|
+
if ("startunbounded" in bin && !bin.startunbounded) {
|
|
527
|
+
throw `a custom first bin must not set bin.startunbounded to false`;
|
|
528
|
+
}
|
|
529
|
+
bin.startunbounded = true;
|
|
530
|
+
if ("start" in bin) {
|
|
531
|
+
throw "a custom first bin must not set a bin.start value";
|
|
532
|
+
}
|
|
533
|
+
if ("start_percentile" in bin) {
|
|
534
|
+
throw "the first bin must not set a bin.start_percentile value";
|
|
535
|
+
}
|
|
536
|
+
if (!("stop" in bin)) {
|
|
537
|
+
throw `a custom first bin must define a bin.stop value`;
|
|
538
|
+
}
|
|
539
|
+
if (!isStrictNumeric(bin.stop)) {
|
|
540
|
+
throw `a custom first bin.stop value should be numeric`;
|
|
541
|
+
}
|
|
542
|
+
} else if (bin == last_bin) {
|
|
543
|
+
if (!("start" in bin)) {
|
|
544
|
+
throw `a custom last bin must define a bin.start value`;
|
|
545
|
+
}
|
|
546
|
+
if (!isStrictNumeric(bin.start)) {
|
|
547
|
+
throw `a custom last bin.start must be numeric`;
|
|
548
|
+
}
|
|
549
|
+
if ("stopunbounded" in bin && !bin.stopunbounded) {
|
|
550
|
+
throw "a custom last bin must not set bin.stopunbounded to false";
|
|
551
|
+
}
|
|
552
|
+
bin.stopunbounded = true;
|
|
553
|
+
if ("stop" in bin) {
|
|
554
|
+
throw "a custom last bin must not set a bin.stop value";
|
|
555
|
+
}
|
|
556
|
+
} else {
|
|
557
|
+
if (bin.startunbounded || bin.stopunbounded) {
|
|
558
|
+
throw "bin.startunbounded and bin.stopunbounded must not be set for non-first/non-last bins";
|
|
559
|
+
}
|
|
560
|
+
if (!isStrictNumeric(bin.start)) throw "bin.start must be numeric for a non-first bin";
|
|
561
|
+
if (!isStrictNumeric(bin.stop)) throw "bin.stop must be numeric for a non-last bin";
|
|
562
|
+
}
|
|
563
|
+
}
|
|
564
|
+
} else if (bc.type == "regular-bin") {
|
|
565
|
+
if (!Number.isFinite(bc.bin_size)) throw "non-numeric bin_size";
|
|
566
|
+
if (!bc.bin_size || bc.bin_size <= 0) throw "bin_size must be greater than 0";
|
|
567
|
+
if (!bc.startinclusive && !bc.stopinclusive) {
|
|
568
|
+
bc.startinclusive = true;
|
|
569
|
+
bc.stopinclusive = false;
|
|
570
|
+
}
|
|
571
|
+
if (!bc.first_bin) throw "first_bin{} missing";
|
|
572
|
+
if (typeof bc.first_bin != "object") throw "first_bin{} is not an object";
|
|
573
|
+
if (!Object.keys(bc.first_bin).length) throw "first_bin is an empty object";
|
|
574
|
+
{
|
|
575
|
+
const b = bc.first_bin;
|
|
576
|
+
b.startunbounded = true;
|
|
577
|
+
if (b.stop_percentile) {
|
|
578
|
+
if (!Number.isInteger(b.stop_percentile)) throw "first_bin.stop_percentile should be integer";
|
|
579
|
+
if (b.stop_percentile <= 0 || b.stop_percentile >= 100) throw "first_bin.stop_percentile out of bound (0-100)";
|
|
580
|
+
} else if (!Number.isFinite(b.stop)) {
|
|
581
|
+
throw "first_bin.stop not a number when stop_percentile is not set";
|
|
582
|
+
}
|
|
583
|
+
}
|
|
584
|
+
if (bc.last_bin) {
|
|
585
|
+
const b = bc.last_bin;
|
|
586
|
+
if (b.start_percentile) {
|
|
587
|
+
if (!Number.isInteger(b.start_percentile)) throw "last_bin.start_percentile should be integer";
|
|
588
|
+
if (b.start_percentile <= 0 || b.start_percentile >= 100) throw "last_bin.start_percentile out of bound (0-100)";
|
|
589
|
+
} else if (!Number.isFinite(b.start)) {
|
|
590
|
+
throw "last_bin.start not a number when start_percentile is not set";
|
|
591
|
+
}
|
|
592
|
+
b.stopunbounded = true;
|
|
593
|
+
if ("stop" in b) {
|
|
594
|
+
throw "a regular last bin must not set a bin.stop value";
|
|
595
|
+
}
|
|
596
|
+
}
|
|
597
|
+
} else {
|
|
598
|
+
throw `invalid binconfig.type="${bc.type}"`;
|
|
599
|
+
}
|
|
600
|
+
}
|
|
601
|
+
var maxNumBins = 100;
|
|
602
|
+
function compute_bins(binconfig, summaryfxn, valueConversion) {
|
|
603
|
+
const bc = binconfig;
|
|
604
|
+
validate_bins(bc);
|
|
605
|
+
if (bc.lst) {
|
|
606
|
+
if (!Array.isArray(bc.lst)) throw `bc.lst is not an array`;
|
|
607
|
+
if (bc.lst.length > maxNumBins) throw `bc.lst exceed the maximum of ${maxNumBins} allowed entries`;
|
|
608
|
+
assignBinColors(bc.lst);
|
|
609
|
+
}
|
|
610
|
+
if (bc.type == "custom-bin") return JSON.parse(JSON.stringify(bc.lst));
|
|
611
|
+
if (typeof summaryfxn != "function") throw "summaryfxn required for modules/termdb.bins.js compute_bins()";
|
|
612
|
+
const percentiles = target_percentiles(bc);
|
|
613
|
+
const summary = summaryfxn(percentiles);
|
|
614
|
+
if (!summary || typeof summary !== "object") throw "invalid returned value by summaryfxn";
|
|
615
|
+
bc.results = { summary };
|
|
616
|
+
if (!bc.binLabelFormatter) bc.binLabelFormatter = getNumDecimalsFormatter(bc);
|
|
617
|
+
const minFloor = Math.floor(summary.min * 100) / 100;
|
|
618
|
+
const maxCeil = Math.ceil(summary.max * 100) / 100;
|
|
619
|
+
const min = bc.first_bin.startunbounded ? minFloor : bc.first_bin.start_percentile ? summary["p" + bc.first_bin.start_percentile] : bc.first_bin.start;
|
|
620
|
+
let max = maxCeil, last_start, last_stop;
|
|
621
|
+
if (bc.last_bin) {
|
|
622
|
+
max = bc.last_bin.stopunbounded ? maxCeil : bc.last_bin.stop_percentile ? summary["p" + bc.last_bin.stop_percentile] : isNumeric(bc.last_bin.stop) && bc.last_bin.stop <= summary.max ? bc.last_bin.stop : maxCeil;
|
|
623
|
+
last_start = isStrictNumeric(bc.last_bin.start_percentile) ? summary["p" + bc.last_bin.start_percentile] : isStrictNumeric(bc.last_bin.start) ? bc.last_bin.start : void 0;
|
|
624
|
+
last_stop = bc.last_bin.stopunbounded ? null : bc.last_bin.stop_percentile ? summary["p" + bc.last_bin.stop_percentile] : isStrictNumeric(bc.last_bin.stop) ? bc.last_bin.stop : null;
|
|
625
|
+
} else if (bc.lst) {
|
|
626
|
+
const last_bin = bc.lst[bc.lst.length - 1];
|
|
627
|
+
last_start = last_bin.start;
|
|
628
|
+
last_stop = "stop" in last_bin && !last_bin.stopunbounded ? last_bin.stop : maxCeil;
|
|
629
|
+
max = last_stop;
|
|
630
|
+
} else {
|
|
631
|
+
last_start = maxCeil;
|
|
632
|
+
last_stop = maxCeil;
|
|
633
|
+
}
|
|
634
|
+
const numericMax = isStrictNumeric(max);
|
|
635
|
+
const numericLastStart = isStrictNumeric(last_start);
|
|
636
|
+
const numericLastStop = isStrictNumeric(last_stop);
|
|
637
|
+
if (!numericMax && !numericLastStart) return [];
|
|
638
|
+
const bins = [];
|
|
639
|
+
let currBin = {
|
|
640
|
+
startunbounded: bc.first_bin.startunbounded,
|
|
641
|
+
start: bc.first_bin.startunbounded ? void 0 : min,
|
|
642
|
+
stop: isStrictNumeric(bc.first_bin.stop_percentile) ? +summary["p" + bc.first_bin.stop_percentile] : isStrictNumeric(bc.first_bin.stop) ? +bc.first_bin.stop : min + bc.bin_size,
|
|
643
|
+
startinclusive: bc.startinclusive,
|
|
644
|
+
stopinclusive: bc.stopinclusive
|
|
645
|
+
};
|
|
646
|
+
if (!isStrictNumeric(currBin.stop)) throw "the computed first_bin.stop is non-numeric" + currBin.stop;
|
|
647
|
+
while (numericMax && currBin.stop <= max || currBin.startunbounded && !bins.length || currBin.stopunbounded) {
|
|
648
|
+
bins.push(currBin);
|
|
649
|
+
if (currBin.stop >= max) {
|
|
650
|
+
currBin.stopunbounded = true;
|
|
651
|
+
if (bins.length > 1) {
|
|
652
|
+
delete currBin.stop;
|
|
653
|
+
}
|
|
654
|
+
}
|
|
655
|
+
currBin.label = get_bin_label(currBin, bc, valueConversion);
|
|
656
|
+
if (currBin.stopunbounded) break;
|
|
657
|
+
const upper = currBin.stop + bc.bin_size;
|
|
658
|
+
const previousStop = currBin.stop;
|
|
659
|
+
currBin = {
|
|
660
|
+
startinclusive: bc.startinclusive,
|
|
661
|
+
stopinclusive: bc.stopinclusive,
|
|
662
|
+
start: previousStop,
|
|
663
|
+
stop: numericLastStop && (previousStop == last_start || upper > last_stop) ? last_stop : numericLastStart && upper > last_start && previousStop != last_start ? last_start : upper
|
|
664
|
+
};
|
|
665
|
+
if (currBin.stop >= max) {
|
|
666
|
+
currBin.stop = max;
|
|
667
|
+
if (bc.last_bin && bc.last_bin.stopunbounded) currBin.stopunbounded = 1;
|
|
668
|
+
if (bc.last_bin && bc.last_bin.stopinclusive) currBin.stopinclusive = 1;
|
|
669
|
+
}
|
|
670
|
+
if (numericLastStart && currBin.start == last_start) {
|
|
671
|
+
if (bc.last_bin && bc.last_bin.stopunbounded) currBin.stopunbounded = 1;
|
|
672
|
+
}
|
|
673
|
+
if (currBin.start > currBin.stop) {
|
|
674
|
+
if (numericLastStart && currBin.stop == last_start && bc.last_bin && bc.last_bin.stopunbounded)
|
|
675
|
+
currBin.stopunbounded = true;
|
|
676
|
+
else break;
|
|
677
|
+
}
|
|
678
|
+
if (bins.length + 1 >= maxNumBins) {
|
|
679
|
+
delete currBin.stop;
|
|
680
|
+
currBin.stopunbounded = true;
|
|
681
|
+
currBin.label = get_bin_label(currBin, bc, valueConversion);
|
|
682
|
+
if (!bins.includes(currBin)) bins.push(currBin);
|
|
683
|
+
const hint = "Please increase the bin_size or first bin stop, or have a lower last bin start.";
|
|
684
|
+
throw new Error(hint + " (max_num_bins_reached)");
|
|
685
|
+
}
|
|
686
|
+
}
|
|
687
|
+
delete bc.binLabelFormatter;
|
|
688
|
+
if (bins.length > 1) {
|
|
689
|
+
delete bins[bins.length - 1].stop;
|
|
690
|
+
}
|
|
691
|
+
assignBinColors(bins);
|
|
692
|
+
return bins;
|
|
693
|
+
}
|
|
694
|
+
function assignBinColors(lst) {
|
|
695
|
+
const k2c = getColors(lst.length);
|
|
696
|
+
for (const [i, bin] of lst.entries()) bin.color = k2c(String(i));
|
|
697
|
+
return lst;
|
|
698
|
+
}
|
|
699
|
+
function getNumDecimalsFormatter(bc) {
|
|
700
|
+
return "rounding" in bc ? format(bc.rounding) : (d) => d;
|
|
701
|
+
}
|
|
702
|
+
function get_bin_label(bin, binconfig, valueConversion) {
|
|
703
|
+
if (!bin) return "missing bin.label";
|
|
704
|
+
if (bin.label) return bin.label;
|
|
705
|
+
const bc = binconfig;
|
|
706
|
+
if (!bc.binLabelFormatter) bc.binLabelFormatter = getNumDecimalsFormatter(bc);
|
|
707
|
+
if (!bin.startunbounded && !bin.stopunbounded && !("startinclusive" in bin) && !("stopinclusive" in bin)) {
|
|
708
|
+
if (bc.startinclusive) bin.startinclusive = true;
|
|
709
|
+
else if (bc.stopinclusive) bin.stopinclusive = true;
|
|
710
|
+
}
|
|
711
|
+
const start = bc.use_as == "bins" || bin.start;
|
|
712
|
+
const stop = bc.use_as == "bins" || bin.stop;
|
|
713
|
+
let label_offset = 0;
|
|
714
|
+
if ("label_offset" in bc) {
|
|
715
|
+
bc.label_offset_ignored = "bin_size" in bc && bc.bin_size < bc.label_offset;
|
|
716
|
+
if (!bc.label_offset_ignored) label_offset = bc.label_offset;
|
|
717
|
+
} else if (bc.bin_size === 1 && bc.termtype == "integer") {
|
|
718
|
+
label_offset = 1;
|
|
719
|
+
}
|
|
720
|
+
if (bin.startunbounded) {
|
|
721
|
+
const oper = bin.stopinclusive ? "\u2264" : "<";
|
|
722
|
+
const v1 = valueConversion ? convertUnits(stop, valueConversion.fromUnit, valueConversion.toUnit, valueConversion.scaleFactor, true) : bc.binLabelFormatter(stop);
|
|
723
|
+
return oper + v1;
|
|
724
|
+
}
|
|
725
|
+
if (bin.stopunbounded || start === stop) {
|
|
726
|
+
const oper = bin.startinclusive ? "\u2265" : ">";
|
|
727
|
+
const v0 = valueConversion ? convertUnits(start, valueConversion.fromUnit, valueConversion.toUnit, valueConversion.scaleFactor, true) : bc.binLabelFormatter(start);
|
|
728
|
+
return oper + v0;
|
|
729
|
+
}
|
|
730
|
+
if (label_offset && bin.startinclusive && !bin.stopinclusive) {
|
|
731
|
+
if (Number.isInteger(bc.bin_size) && Math.abs(start - stop) === label_offset) {
|
|
732
|
+
return "" + (valueConversion ? convertUnits(start, valueConversion.fromUnit, valueConversion.toUnit, valueConversion.scaleFactor, true) : bc.binLabelFormatter(start));
|
|
733
|
+
} else {
|
|
734
|
+
const v0 = valueConversion ? convertUnits(start, valueConversion.fromUnit, valueConversion.toUnit, valueConversion.scaleFactor, true) : bc.binLabelFormatter(start);
|
|
735
|
+
const v1 = valueConversion ? convertUnits(
|
|
736
|
+
stop - label_offset,
|
|
737
|
+
valueConversion.fromUnit,
|
|
738
|
+
valueConversion.toUnit,
|
|
739
|
+
valueConversion.scaleFactor,
|
|
740
|
+
true
|
|
741
|
+
) : bc.binLabelFormatter(stop - label_offset);
|
|
742
|
+
return +v0 >= +v1 ? v0.toString() : v0 + " to " + v1;
|
|
743
|
+
}
|
|
744
|
+
} else {
|
|
745
|
+
const oper0 = bin.startinclusive ? "" : ">";
|
|
746
|
+
const oper1 = bin.stopinclusive ? "" : "<";
|
|
747
|
+
const v0 = valueConversion ? convertUnits(start, valueConversion.fromUnit, valueConversion.toUnit, valueConversion.scaleFactor, true) : Number.isInteger(start) ? start : bc.binLabelFormatter(start);
|
|
748
|
+
const v1 = valueConversion ? convertUnits(stop, valueConversion.fromUnit, valueConversion.toUnit, valueConversion.scaleFactor, true) : Number.isInteger(stop) ? stop : bc.binLabelFormatter(stop);
|
|
749
|
+
if (+v0 >= +v1) {
|
|
750
|
+
const oper = bin.startinclusive ? "\u2265" : ">";
|
|
751
|
+
return oper + v0;
|
|
752
|
+
} else {
|
|
753
|
+
return oper0 + v0 + " to " + oper1 + v1;
|
|
754
|
+
}
|
|
755
|
+
}
|
|
756
|
+
}
|
|
757
|
+
function get_bin_range_equation(bin, binconfig, valueConversion) {
|
|
758
|
+
const x = '<span style="font-family:Times;font-style:italic;">x</span>';
|
|
759
|
+
let range_eq;
|
|
760
|
+
const copy = structuredClone(bin);
|
|
761
|
+
copy.label = "";
|
|
762
|
+
const bin_label = get_bin_label(copy, binconfig, valueConversion);
|
|
763
|
+
if (bin.startunbounded || bin.stopunbounded) {
|
|
764
|
+
range_eq = x + " " + bin_label;
|
|
765
|
+
} else if (bin.startinclusive) {
|
|
766
|
+
range_eq = bin_label.replace("to <", "\u2264 " + x + " <");
|
|
767
|
+
} else if (bin.stopinclusive) {
|
|
768
|
+
range_eq = bin_label.replace(">", "").replace("to", "< " + x + " \u2264");
|
|
769
|
+
}
|
|
770
|
+
return range_eq;
|
|
771
|
+
}
|
|
772
|
+
function target_percentiles(binconfig) {
|
|
773
|
+
const percentiles = [];
|
|
774
|
+
const f = binconfig.first_bin;
|
|
775
|
+
if (f && isStrictNumeric(f.start_percentile)) percentiles.push(f.start_percentile);
|
|
776
|
+
if (f && isStrictNumeric(f.stop_percentile)) percentiles.push(f.stop_percentile);
|
|
777
|
+
const l = binconfig.last_bin;
|
|
778
|
+
if (l && isStrictNumeric(l.start_percentile)) percentiles.push(l.start_percentile);
|
|
779
|
+
if (l && isStrictNumeric(l.stop_percentile)) percentiles.push(l.stop_percentile);
|
|
780
|
+
return percentiles;
|
|
781
|
+
}
|
|
782
|
+
|
|
783
|
+
// ../shared/utils/dist/src/termdb.initbinconfig.js
|
|
784
|
+
function initBinConfig(data, opts = {}) {
|
|
785
|
+
if (!data.length)
|
|
786
|
+
return { mode: "discrete", type: "regular-bin", startinclusive: true, bin_size: null, first_bin: { stop: null } };
|
|
787
|
+
if (data.find((d) => !Number.isFinite(d))) throw new Error("non-numeric values found");
|
|
788
|
+
let binConfig;
|
|
789
|
+
const s = new Set(data);
|
|
790
|
+
if (s.size === 1) {
|
|
791
|
+
const value = [...s][0];
|
|
792
|
+
binConfig = {
|
|
793
|
+
type: "custom-bin",
|
|
794
|
+
lst: [
|
|
795
|
+
{ stop: value, stopinclusive: false, startunbounded: true, label: "<" + value },
|
|
796
|
+
{ start: value, stop: value, startinclusive: true, stopinclusive: true, label: "=" + value },
|
|
797
|
+
{ start: value, startinclusive: false, stopunbounded: true, label: ">" + value }
|
|
798
|
+
]
|
|
799
|
+
};
|
|
800
|
+
} else {
|
|
801
|
+
data.sort((a, b) => a - b);
|
|
802
|
+
const l = data.length;
|
|
803
|
+
const min = data[0];
|
|
804
|
+
const max = data[l - 1];
|
|
805
|
+
const p5idx = Math.ceil(l * 0.05) - 1;
|
|
806
|
+
const p98idx = Math.ceil(l * 0.98) - 1;
|
|
807
|
+
const p5 = data[p5idx];
|
|
808
|
+
const p98 = data[p98idx];
|
|
809
|
+
const binSize = p98 != p5 ? (p98 - p5) / 8 : (max - min) / 8;
|
|
810
|
+
const firstBinStop = Math.max(min + binSize, p5);
|
|
811
|
+
const [binSize_rnd, firstBinStop_rnd, lastBinStart_rnd, rounding] = roundBinVals(binSize, firstBinStop, max, min);
|
|
812
|
+
binConfig = {
|
|
813
|
+
type: "regular-bin",
|
|
814
|
+
startinclusive: true,
|
|
815
|
+
bin_size: binSize_rnd,
|
|
816
|
+
first_bin: { stop: firstBinStop_rnd }
|
|
817
|
+
};
|
|
818
|
+
if (lastBinStart_rnd) binConfig.last_bin = { start: lastBinStart_rnd };
|
|
819
|
+
if (rounding) binConfig.rounding = rounding;
|
|
820
|
+
}
|
|
821
|
+
if ("format" in opts) {
|
|
822
|
+
if (opts.format === "string") {
|
|
823
|
+
return JSON.stringify(binConfig);
|
|
824
|
+
} else {
|
|
825
|
+
throw "options are not in the correct format";
|
|
826
|
+
}
|
|
827
|
+
} else {
|
|
828
|
+
return binConfig;
|
|
829
|
+
}
|
|
830
|
+
}
|
|
831
|
+
function roundBinVals(binSize, firstBinStop, max, min) {
|
|
832
|
+
let binSize_rnd, firstBinStop_rnd, lastBinStart_rnd, rounding;
|
|
833
|
+
const log = Math.floor(Math.log10(binSize));
|
|
834
|
+
if (binSize >= 0.1 && binSize <= 2) {
|
|
835
|
+
binSize_rnd = Math.round(binSize / (1 * 10 ** log)) * (1 * 10 ** log);
|
|
836
|
+
firstBinStop_rnd = Math.round(firstBinStop / (1 * 10 ** log)) * (1 * 10 ** log);
|
|
837
|
+
} else {
|
|
838
|
+
binSize_rnd = Math.round(binSize / (5 * 10 ** log)) * (5 * 10 ** log);
|
|
839
|
+
firstBinStop_rnd = Math.round(firstBinStop / (5 * 10 ** log)) * (5 * 10 ** log);
|
|
840
|
+
if (binSize_rnd === 0) binSize_rnd = 1 * 10 ** log;
|
|
841
|
+
if (firstBinStop_rnd === 0) firstBinStop_rnd = 1 * 10 ** log;
|
|
842
|
+
if (binSize_rnd === 5 * 10 ** log && firstBinStop_rnd === 1 * 10 ** log) firstBinStop_rnd = 5 * 10 ** log;
|
|
843
|
+
}
|
|
844
|
+
if (firstBinStop_rnd < min) firstBinStop_rnd = firstBinStop_rnd * 2;
|
|
845
|
+
const eighthBinStop_rnd = firstBinStop_rnd + binSize_rnd * 7;
|
|
846
|
+
if (max > eighthBinStop_rnd) {
|
|
847
|
+
lastBinStart_rnd = firstBinStop_rnd + binSize_rnd * 6;
|
|
848
|
+
}
|
|
849
|
+
if (binSize < 1) {
|
|
850
|
+
const digits = Math.abs(log);
|
|
851
|
+
binSize_rnd = Number(binSize_rnd.toFixed(digits));
|
|
852
|
+
firstBinStop_rnd = Number(firstBinStop_rnd.toFixed(digits));
|
|
853
|
+
if (lastBinStart_rnd) lastBinStart_rnd = Number(lastBinStart_rnd.toFixed(digits));
|
|
854
|
+
rounding = "." + digits + "f";
|
|
855
|
+
}
|
|
856
|
+
if (Object.is(firstBinStop_rnd, -0)) firstBinStop_rnd = 0;
|
|
857
|
+
return [binSize_rnd, firstBinStop_rnd, lastBinStart_rnd, rounding];
|
|
858
|
+
}
|
|
859
|
+
|
|
860
|
+
// ../shared/utils/dist/src/termdb.usecase.js
|
|
861
|
+
var graphableTypes = /* @__PURE__ */ new Set([
|
|
862
|
+
"categorical",
|
|
863
|
+
"integer",
|
|
864
|
+
"float",
|
|
865
|
+
"condition",
|
|
866
|
+
"survival",
|
|
867
|
+
"snplst",
|
|
868
|
+
"snplocus",
|
|
869
|
+
"geneVariant",
|
|
870
|
+
"samplelst",
|
|
871
|
+
"geneExpression",
|
|
872
|
+
ISOFORM_EXPRESSION,
|
|
873
|
+
"dtcnv",
|
|
874
|
+
"dtsnvindel",
|
|
875
|
+
"dtfusion",
|
|
876
|
+
"dtsv",
|
|
877
|
+
"date",
|
|
878
|
+
TermTypes.SSGSEA,
|
|
879
|
+
TermTypes.DNA_METHYLATION,
|
|
880
|
+
TermTypes.METABOLITE_INTENSITY,
|
|
881
|
+
TermTypes.PROTEOME_ABUNDANCE,
|
|
882
|
+
TermTypes.PSEUDOBULK,
|
|
883
|
+
TermTypes.JUNCTION,
|
|
884
|
+
SINGLECELL_GENE_EXPRESSION,
|
|
885
|
+
SINGLECELL_CELLTYPE,
|
|
886
|
+
TermTypes.SNP,
|
|
887
|
+
TermTypes.TERM_COLLECTION,
|
|
888
|
+
TermTypes.COHORT,
|
|
889
|
+
TermTypes.MULTIVALUE
|
|
890
|
+
]);
|
|
891
|
+
function isUsableTerm(term, _usecase, termdbConfig, ds) {
|
|
892
|
+
const usecase = _usecase || {};
|
|
893
|
+
if (typeof ds?.usecase?.[usecase.target] == "function") {
|
|
894
|
+
return ds.usecase[usecase.target](term, usecase);
|
|
895
|
+
}
|
|
896
|
+
const uses = /* @__PURE__ */ new Set();
|
|
897
|
+
const child_types = term.child_types || [];
|
|
898
|
+
switch (usecase.target) {
|
|
899
|
+
case "barchart":
|
|
900
|
+
case "violin":
|
|
901
|
+
case "boxplot":
|
|
902
|
+
case "summary": {
|
|
903
|
+
const excluded = usecase.detail == "term2" ? ["survival", "multivalue"] : ["survival"];
|
|
904
|
+
if (term.type && !excluded.includes(term.type)) uses.add("plot");
|
|
905
|
+
if (hasAllowedChildTypes(child_types, excluded)) uses.add("branch");
|
|
906
|
+
return uses;
|
|
907
|
+
}
|
|
908
|
+
case "summaryInput":
|
|
909
|
+
if (usecase.detail === "term2" || usecase.detail == "term0") {
|
|
910
|
+
const excluded = usecase.detail === "term2" ? ["survival", "multivalue"] : ["survival"];
|
|
911
|
+
if (term.type && !excluded.includes(term.type)) uses.add("plot");
|
|
912
|
+
if (hasAllowedChildTypes(child_types, excluded)) uses.add("branch");
|
|
913
|
+
return uses;
|
|
914
|
+
} else {
|
|
915
|
+
if (graphableTypes.has(term.type)) uses.add("plot");
|
|
916
|
+
if (!term.isleaf) uses.add("branch");
|
|
917
|
+
return uses;
|
|
918
|
+
}
|
|
919
|
+
case "matrix":
|
|
920
|
+
if (term.type) uses.add("plot");
|
|
921
|
+
if (!term.isleaf) uses.add("branch");
|
|
922
|
+
return uses;
|
|
923
|
+
case "table":
|
|
924
|
+
if (usecase.detail == "term") uses.add("plot");
|
|
925
|
+
if (child_types.length > 1) uses.add("branch");
|
|
926
|
+
return uses;
|
|
927
|
+
case "sampleScatter":
|
|
928
|
+
if (usecase.detail == "numeric") {
|
|
929
|
+
if (isNumericTerm(term)) {
|
|
930
|
+
uses.add("plot");
|
|
931
|
+
}
|
|
932
|
+
if (hasNumericChild(child_types)) uses.add("branch");
|
|
933
|
+
} else {
|
|
934
|
+
if (graphableTypes.has(term.type) && term.type != "multivalue") uses.add("plot");
|
|
935
|
+
if (!term.isleaf) uses.add("branch");
|
|
936
|
+
}
|
|
937
|
+
return uses;
|
|
938
|
+
case "runChart2":
|
|
939
|
+
if (usecase.detail == "date" || usecase.detail == "xtw") {
|
|
940
|
+
if (term.type == "date") {
|
|
941
|
+
uses.add("plot");
|
|
942
|
+
}
|
|
943
|
+
if (child_types.includes("date")) uses.add("branch");
|
|
944
|
+
} else if (usecase.detail == "numeric") {
|
|
945
|
+
if (isNumericTerm(term) && term.type != "date") {
|
|
946
|
+
uses.add("plot");
|
|
947
|
+
}
|
|
948
|
+
if (hasNumericChild(child_types)) uses.add("branch");
|
|
949
|
+
} else {
|
|
950
|
+
if (graphableTypes.has(term.type) && term.type != "multivalue") uses.add("plot");
|
|
951
|
+
if (!term.isleaf) uses.add("branch");
|
|
952
|
+
}
|
|
953
|
+
return uses;
|
|
954
|
+
case "numericDictTermCluster":
|
|
955
|
+
if (!usecase.detail?.exclude?.includes(term.id)) {
|
|
956
|
+
if (isNumericTerm(term)) {
|
|
957
|
+
uses.add("plot");
|
|
958
|
+
}
|
|
959
|
+
if (hasNumericChild(child_types)) {
|
|
960
|
+
uses.add("branch");
|
|
961
|
+
}
|
|
962
|
+
}
|
|
963
|
+
return uses;
|
|
964
|
+
case "termCollections":
|
|
965
|
+
if (usecase.detail?.termIds?.includes(term.id)) uses.add("plot");
|
|
966
|
+
if (usecase.detail?.branchIds?.includes(term.id)) uses.add("branch");
|
|
967
|
+
return uses;
|
|
968
|
+
case "profileForms":
|
|
969
|
+
if (!term.isleaf) {
|
|
970
|
+
const ancestors = term.id.split("__").length;
|
|
971
|
+
if (ancestors == 3) {
|
|
972
|
+
uses.add("plot");
|
|
973
|
+
} else if (ancestors < 3) uses.add("branch");
|
|
974
|
+
}
|
|
975
|
+
return uses;
|
|
976
|
+
// case 'boxplot':
|
|
977
|
+
// if (term.type == 'float' || term.type == 'integer') uses.add('plot')
|
|
978
|
+
// if (usecase.detail === 'term2' && hasNumericChild(child_types)) uses.add('branch')
|
|
979
|
+
// return uses
|
|
980
|
+
case "cuminc":
|
|
981
|
+
if (usecase.detail == "term") {
|
|
982
|
+
if (term.type == "condition") uses.add("plot");
|
|
983
|
+
if (child_types.includes("condition")) uses.add("branch");
|
|
984
|
+
return uses;
|
|
985
|
+
}
|
|
986
|
+
if (usecase.detail === "term2" || usecase.detail == "term0") {
|
|
987
|
+
if (term.type && term.type != "condition" && term.type != "survival" && term.type != "multivalue")
|
|
988
|
+
uses.add("plot");
|
|
989
|
+
if (hasAllowedChildTypes(child_types, ["condition", "survival", "multivalue"])) uses.add("branch");
|
|
990
|
+
return uses;
|
|
991
|
+
}
|
|
992
|
+
return uses;
|
|
993
|
+
case "survival":
|
|
994
|
+
if (usecase.detail == "term") {
|
|
995
|
+
if (term.type == "survival") uses.add("plot");
|
|
996
|
+
if (child_types.includes("survival")) uses.add("branch");
|
|
997
|
+
return uses;
|
|
998
|
+
}
|
|
999
|
+
if (usecase.detail === "term2" || usecase.detail == "term0") {
|
|
1000
|
+
if (term.type && term.type != "survival" && term.type != "multivalue") uses.add("plot");
|
|
1001
|
+
if (hasAllowedChildTypes(child_types, ["survival", "multivalue"])) uses.add("branch");
|
|
1002
|
+
return uses;
|
|
1003
|
+
}
|
|
1004
|
+
return uses;
|
|
1005
|
+
case "regression":
|
|
1006
|
+
if (usecase.detail == "outcome") {
|
|
1007
|
+
if (usecase.regressionType == "linear") {
|
|
1008
|
+
if (term.type == "float" || term.type == "integer") uses.add("plot");
|
|
1009
|
+
if (hasNumericChild(child_types)) uses.add("branch");
|
|
1010
|
+
return uses;
|
|
1011
|
+
}
|
|
1012
|
+
if (usecase.regressionType == "logistic") {
|
|
1013
|
+
if (term.type && term.type != "survival" && term.type != "multivalue") uses.add("plot");
|
|
1014
|
+
if (hasAllowedChildTypes(child_types, ["survival", "multivalue"])) uses.add("branch");
|
|
1015
|
+
return uses;
|
|
1016
|
+
} else if (usecase.regressionType == "cox") {
|
|
1017
|
+
if (term.type == "condition" || term.type == "survival") uses.add("plot");
|
|
1018
|
+
if (child_types.includes("condition") || child_types.includes("survival")) uses.add("branch");
|
|
1019
|
+
return uses;
|
|
1020
|
+
}
|
|
1021
|
+
}
|
|
1022
|
+
if (usecase.detail == "independent") {
|
|
1023
|
+
if (term.type == TermTypes.TERM_COLLECTION) {
|
|
1024
|
+
if (term.memberType == "numeric") uses.add("plot");
|
|
1025
|
+
return uses;
|
|
1026
|
+
}
|
|
1027
|
+
if (term.type == "float" || term.type == "integer" || term.type == "categorical" || term.type == "samplelst")
|
|
1028
|
+
uses.add("plot");
|
|
1029
|
+
if (hasChildTypes(child_types, ["categorical", "float", "integer"])) uses.add("branch");
|
|
1030
|
+
return uses;
|
|
1031
|
+
}
|
|
1032
|
+
return uses;
|
|
1033
|
+
case "filter": {
|
|
1034
|
+
const exlst = termdbConfig?.excludedTermtypeByTarget?.filter;
|
|
1035
|
+
if (exlst) {
|
|
1036
|
+
if (graphableTypes.has(term.type) && !exlst.includes(term.type)) uses.add("plot");
|
|
1037
|
+
if (child_types.find((t) => !exlst.includes(t))) uses.add("branch");
|
|
1038
|
+
return uses;
|
|
1039
|
+
}
|
|
1040
|
+
if (graphableTypes.has(term.type)) uses.add("plot");
|
|
1041
|
+
if (!term.isleaf) uses.add("branch");
|
|
1042
|
+
return uses;
|
|
1043
|
+
}
|
|
1044
|
+
case "correlationVolcano":
|
|
1045
|
+
if (usecase.detail == "numeric") {
|
|
1046
|
+
if (isNumericTerm(term)) {
|
|
1047
|
+
uses.add("plot");
|
|
1048
|
+
}
|
|
1049
|
+
if (hasNumericChild(child_types)) uses.add("branch");
|
|
1050
|
+
} else {
|
|
1051
|
+
if (graphableTypes.has(term.type) && term.type != "multivalue") uses.add("plot");
|
|
1052
|
+
if (!term.isleaf) uses.add("branch");
|
|
1053
|
+
}
|
|
1054
|
+
return uses;
|
|
1055
|
+
case "proteinView":
|
|
1056
|
+
if (term.type == TermTypes.PROTEOME_ABUNDANCE) uses.add("plot");
|
|
1057
|
+
if (child_types.includes(TermTypes.PROTEOME_ABUNDANCE)) uses.add("branch");
|
|
1058
|
+
return uses;
|
|
1059
|
+
case "dictionary":
|
|
1060
|
+
if (graphableTypes.has(term.type)) uses.add("plot");
|
|
1061
|
+
if (!term.isleaf) uses.add("branch");
|
|
1062
|
+
return uses;
|
|
1063
|
+
default:
|
|
1064
|
+
if (graphableTypes.has(term.type) && term.type != "multivalue") uses.add("plot");
|
|
1065
|
+
if (!term.isleaf) uses.add("branch");
|
|
1066
|
+
return uses;
|
|
1067
|
+
}
|
|
1068
|
+
}
|
|
1069
|
+
function hasAllowedChildTypes(child_types, excluded_types) {
|
|
1070
|
+
if (!child_types.length) {
|
|
1071
|
+
return false;
|
|
1072
|
+
}
|
|
1073
|
+
if (!excluded_types?.length) {
|
|
1074
|
+
return true;
|
|
1075
|
+
}
|
|
1076
|
+
if (child_types.some((type) => !excluded_types.includes(type))) {
|
|
1077
|
+
return true;
|
|
1078
|
+
}
|
|
1079
|
+
}
|
|
1080
|
+
function hasNumericChild(child_types) {
|
|
1081
|
+
return child_types.includes("float") || child_types.includes("integer");
|
|
1082
|
+
}
|
|
1083
|
+
function hasChildTypes(child_types, expected_types) {
|
|
1084
|
+
for (const a of expected_types) {
|
|
1085
|
+
if (child_types.includes(a)) return true;
|
|
1086
|
+
}
|
|
1087
|
+
}
|
|
1088
|
+
|
|
1089
|
+
// ../shared/utils/dist/src/time.js
|
|
1090
|
+
function formatElapsedTime(ms, precision = 2) {
|
|
1091
|
+
if (typeof ms !== "number" || isNaN(ms)) {
|
|
1092
|
+
return typeof ms !== "number" ? "Invalid time: not a number" : "Invalid time: NaN";
|
|
1093
|
+
}
|
|
1094
|
+
if (!isFinite(ms)) {
|
|
1095
|
+
return ms > 0 ? "Infinite time" : "-Infinite time";
|
|
1096
|
+
}
|
|
1097
|
+
const absMs = Math.abs(ms);
|
|
1098
|
+
const sign = ms < 0 ? "-" : "";
|
|
1099
|
+
if (absMs < 1e3) {
|
|
1100
|
+
return `${sign}${absMs}ms`;
|
|
1101
|
+
}
|
|
1102
|
+
if (absMs < 6e4) {
|
|
1103
|
+
return `${sign}${(absMs / 1e3).toFixed(precision)}s`;
|
|
1104
|
+
}
|
|
1105
|
+
const minutes = Math.floor(absMs / 6e4);
|
|
1106
|
+
const seconds = (absMs % 6e4 / 1e3).toFixed(precision);
|
|
1107
|
+
return `${sign}${minutes}m ${seconds}s`;
|
|
1108
|
+
}
|
|
1109
|
+
|
|
1110
|
+
// ../shared/utils/dist/src/vcf.ann.js
|
|
1111
|
+
function parse_ANN(str, header, m) {
|
|
1112
|
+
if (!header) {
|
|
1113
|
+
return null;
|
|
1114
|
+
}
|
|
1115
|
+
for (const thisannotation of str.split(",")) {
|
|
1116
|
+
const lst = thisannotation.replace(/&/g, ",").split("|");
|
|
1117
|
+
const o = {};
|
|
1118
|
+
for (let i = 0; i < header.length; i++) {
|
|
1119
|
+
if (lst[i]) {
|
|
1120
|
+
o[header[i].name] = lst[i];
|
|
1121
|
+
}
|
|
1122
|
+
}
|
|
1123
|
+
if (!o.Allele) {
|
|
1124
|
+
continue;
|
|
1125
|
+
}
|
|
1126
|
+
let allele = null;
|
|
1127
|
+
for (const a of m.alleles) {
|
|
1128
|
+
if (a.allele == o.Allele) {
|
|
1129
|
+
allele = a;
|
|
1130
|
+
break;
|
|
1131
|
+
}
|
|
1132
|
+
}
|
|
1133
|
+
if (!allele) {
|
|
1134
|
+
continue;
|
|
1135
|
+
}
|
|
1136
|
+
if (!allele.ann) {
|
|
1137
|
+
allele.ann = [];
|
|
1138
|
+
}
|
|
1139
|
+
allele.ann.push(o);
|
|
1140
|
+
o._gene = o.Gene_Name;
|
|
1141
|
+
if (o.Feature_Type && o.Feature_Type == "transcript" && o.Feature_ID) {
|
|
1142
|
+
o._isoform = o.Feature_ID.split(".")[0];
|
|
1143
|
+
}
|
|
1144
|
+
if (o.Annotation) {
|
|
1145
|
+
const [dt, cls, rank] = vepinfo(o.Annotation);
|
|
1146
|
+
o._dt = dt;
|
|
1147
|
+
o._class = cls;
|
|
1148
|
+
o._csqrank = rank;
|
|
1149
|
+
} else {
|
|
1150
|
+
o._dt = dtsnvindel;
|
|
1151
|
+
o._class = mclassnonstandard;
|
|
1152
|
+
}
|
|
1153
|
+
if (o["HGVS.p"]) {
|
|
1154
|
+
o._mname = o["HGVS.p"];
|
|
1155
|
+
} else if (o["HGVS.c"]) {
|
|
1156
|
+
o._mname = o["HGVS.c"];
|
|
1157
|
+
}
|
|
1158
|
+
}
|
|
1159
|
+
return true;
|
|
1160
|
+
}
|
|
1161
|
+
|
|
1162
|
+
// ../shared/utils/dist/src/vcf.csq.js
|
|
1163
|
+
function parse_CSQ(str, header, m) {
|
|
1164
|
+
if (!header) {
|
|
1165
|
+
return null;
|
|
1166
|
+
}
|
|
1167
|
+
for (const thisannotation of str.split(",")) {
|
|
1168
|
+
const lst = thisannotation.replace(/&/g, ",").split("|");
|
|
1169
|
+
const o = {};
|
|
1170
|
+
for (let i = 0; i < header.length; i++) {
|
|
1171
|
+
if (lst[i]) {
|
|
1172
|
+
o[header[i].name] = lst[i];
|
|
1173
|
+
}
|
|
1174
|
+
}
|
|
1175
|
+
if (!o.Allele) {
|
|
1176
|
+
continue;
|
|
1177
|
+
}
|
|
1178
|
+
let allele = null;
|
|
1179
|
+
for (const a of m.mlst || m.alleles) {
|
|
1180
|
+
if (a.allele_original == o.Allele) {
|
|
1181
|
+
allele = a;
|
|
1182
|
+
break;
|
|
1183
|
+
}
|
|
1184
|
+
}
|
|
1185
|
+
if (!allele) {
|
|
1186
|
+
if (o.Allele == "-") {
|
|
1187
|
+
if (m.mlst) {
|
|
1188
|
+
if (m.mlst.length == 1) {
|
|
1189
|
+
allele = m.mlst[0];
|
|
1190
|
+
}
|
|
1191
|
+
} else if (m.alleles) {
|
|
1192
|
+
if (m.alleles.length == 1) {
|
|
1193
|
+
allele = m.alleles[0];
|
|
1194
|
+
}
|
|
1195
|
+
}
|
|
1196
|
+
} else {
|
|
1197
|
+
for (const a of m.mlst || m.alleles) {
|
|
1198
|
+
if (a.allele_original.substr(1) == o.Allele) {
|
|
1199
|
+
allele = a;
|
|
1200
|
+
break;
|
|
1201
|
+
}
|
|
1202
|
+
}
|
|
1203
|
+
}
|
|
1204
|
+
if (!allele) {
|
|
1205
|
+
continue;
|
|
1206
|
+
}
|
|
1207
|
+
}
|
|
1208
|
+
if (!allele.csq) {
|
|
1209
|
+
allele.csq = [];
|
|
1210
|
+
}
|
|
1211
|
+
allele.csq.push(o);
|
|
1212
|
+
o._gene = o.SYMBOL || o.Gene;
|
|
1213
|
+
if (o.Feature_type && o.Feature_type == "Transcript") {
|
|
1214
|
+
o._isoform = o.Feature.split(".")[0];
|
|
1215
|
+
} else {
|
|
1216
|
+
o._isoform = o._gene;
|
|
1217
|
+
}
|
|
1218
|
+
if (o.Consequence) {
|
|
1219
|
+
const [dt, cls, rank] = vepinfo(o.Consequence);
|
|
1220
|
+
o._dt = dt;
|
|
1221
|
+
o._class = cls;
|
|
1222
|
+
o._csqrank = rank;
|
|
1223
|
+
} else {
|
|
1224
|
+
o._dt = dtsnvindel;
|
|
1225
|
+
o._class = mclassnonstandard;
|
|
1226
|
+
}
|
|
1227
|
+
if (o.HGVSp) {
|
|
1228
|
+
o._mname = decodeURIComponent(o.HGVSp.substr(o.HGVSp.indexOf(":") + 1));
|
|
1229
|
+
} else if (o.Protein_position && o.Amino_acids) {
|
|
1230
|
+
o._mname = decodeURIComponent(o.Protein_position + o.Amino_acids);
|
|
1231
|
+
} else if (o.HGVSc) {
|
|
1232
|
+
o._mname = o.HGVSc.substr(o.HGVSc.indexOf(":") + 1);
|
|
1233
|
+
} else if (o.Existing_variation) {
|
|
1234
|
+
o._name = o.Existing_variation;
|
|
1235
|
+
}
|
|
1236
|
+
}
|
|
1237
|
+
return true;
|
|
1238
|
+
}
|
|
1239
|
+
|
|
1240
|
+
// ../shared/utils/dist/src/vcf.info.js
|
|
1241
|
+
function dissect_INFO(str) {
|
|
1242
|
+
let findsemicolon = false;
|
|
1243
|
+
let findequalorsemicolon = true;
|
|
1244
|
+
let i = 0;
|
|
1245
|
+
let idx = 0;
|
|
1246
|
+
const k2v = {};
|
|
1247
|
+
let lastkey;
|
|
1248
|
+
while (i < str.length) {
|
|
1249
|
+
const c = str[i];
|
|
1250
|
+
if (findequalorsemicolon) {
|
|
1251
|
+
if (c == "=") {
|
|
1252
|
+
findsemicolon = true;
|
|
1253
|
+
findequalorsemicolon = false;
|
|
1254
|
+
lastkey = str.substring(idx, i);
|
|
1255
|
+
idx = i + 1;
|
|
1256
|
+
} else if (c == ";") {
|
|
1257
|
+
k2v[str.substring(idx, i)] = 1;
|
|
1258
|
+
idx = i + 1;
|
|
1259
|
+
}
|
|
1260
|
+
} else if (findsemicolon && c == ";") {
|
|
1261
|
+
findequalorsemicolon = true;
|
|
1262
|
+
findsemicolon = false;
|
|
1263
|
+
k2v[lastkey] = str.substring(idx, i);
|
|
1264
|
+
lastkey = null;
|
|
1265
|
+
idx = i + 1;
|
|
1266
|
+
}
|
|
1267
|
+
i++;
|
|
1268
|
+
}
|
|
1269
|
+
const remainstr = str.substr(idx, i);
|
|
1270
|
+
if (lastkey) {
|
|
1271
|
+
k2v[lastkey] = remainstr;
|
|
1272
|
+
} else {
|
|
1273
|
+
k2v[remainstr] = 1;
|
|
1274
|
+
}
|
|
1275
|
+
return k2v;
|
|
1276
|
+
}
|
|
1277
|
+
|
|
1278
|
+
// ../shared/utils/dist/src/vcf.type.js
|
|
1279
|
+
function getVariantType(ref, alt) {
|
|
1280
|
+
if (ref.length == 1 && alt.length == 1) {
|
|
1281
|
+
if (alt == ".") {
|
|
1282
|
+
return mclassdeletion;
|
|
1283
|
+
}
|
|
1284
|
+
return mclasssnv;
|
|
1285
|
+
}
|
|
1286
|
+
if (ref.length == alt.length) return mclassmnv;
|
|
1287
|
+
if (ref.length < alt.length) return mclassinsertion;
|
|
1288
|
+
if (ref.length > alt.length) return mclassdeletion;
|
|
1289
|
+
return mclassnonstandard;
|
|
1290
|
+
}
|
|
1291
|
+
|
|
1292
|
+
// ../shared/utils/dist/src/vcf.js
|
|
1293
|
+
var getallelename = new RegExp(/<(.+)>/);
|
|
1294
|
+
var mclasslabel2key = {};
|
|
1295
|
+
for (const k in mclass) {
|
|
1296
|
+
mclasslabel2key[mclass[k].label.toUpperCase()] = k;
|
|
1297
|
+
}
|
|
1298
|
+
function vcfparsemeta(lines) {
|
|
1299
|
+
let sample = [];
|
|
1300
|
+
const errlst = [];
|
|
1301
|
+
const info = {};
|
|
1302
|
+
let hasinfo = false;
|
|
1303
|
+
const format2 = {};
|
|
1304
|
+
let hasformat = false;
|
|
1305
|
+
for (const line of lines) {
|
|
1306
|
+
if (!line.startsWith("#")) {
|
|
1307
|
+
continue;
|
|
1308
|
+
}
|
|
1309
|
+
if (line.startsWith("#C")) {
|
|
1310
|
+
sample = line.split(" ").slice(9);
|
|
1311
|
+
continue;
|
|
1312
|
+
}
|
|
1313
|
+
if (line.startsWith("##INFO")) {
|
|
1314
|
+
const e = tohash(line.substring(8, line.length - 1), info);
|
|
1315
|
+
if (e) {
|
|
1316
|
+
errlst.push("INFO error: " + e);
|
|
1317
|
+
} else {
|
|
1318
|
+
hasinfo = true;
|
|
1319
|
+
}
|
|
1320
|
+
continue;
|
|
1321
|
+
}
|
|
1322
|
+
if (line.startsWith("##FORMAT")) {
|
|
1323
|
+
const e = tohash(line.substring(10, line.length - 1), format2);
|
|
1324
|
+
if (e) {
|
|
1325
|
+
errlst.push("FORMAT error: " + e);
|
|
1326
|
+
} else {
|
|
1327
|
+
hasformat = true;
|
|
1328
|
+
}
|
|
1329
|
+
}
|
|
1330
|
+
}
|
|
1331
|
+
const sampleobjlst = [];
|
|
1332
|
+
for (const samplename of sample) {
|
|
1333
|
+
const a = { name: samplename };
|
|
1334
|
+
sampleobjlst.push(a);
|
|
1335
|
+
}
|
|
1336
|
+
if (info.CSQ) {
|
|
1337
|
+
const lst = info.CSQ.Description.split(" Format: ");
|
|
1338
|
+
if (lst[1]) {
|
|
1339
|
+
const lst2 = lst[1].split("|");
|
|
1340
|
+
if (lst2.length > 1) {
|
|
1341
|
+
info.CSQ.csqheader = [];
|
|
1342
|
+
for (const str of lst2) {
|
|
1343
|
+
const attr = { name: str };
|
|
1344
|
+
info.CSQ.csqheader.push(attr);
|
|
1345
|
+
}
|
|
1346
|
+
} else {
|
|
1347
|
+
errlst.push("unknown format for CSQ header: " + info.CSQ.Description);
|
|
1348
|
+
}
|
|
1349
|
+
} else {
|
|
1350
|
+
errlst.push("unknown format for CSQ header: " + info.CSQ.Description);
|
|
1351
|
+
}
|
|
1352
|
+
}
|
|
1353
|
+
if (info.ANN) {
|
|
1354
|
+
const lst = info.ANN.Description.split("'");
|
|
1355
|
+
if (lst[1]) {
|
|
1356
|
+
const lst2 = lst[1].split(" | ");
|
|
1357
|
+
if (lst2.length) {
|
|
1358
|
+
info.ANN.annheader = [];
|
|
1359
|
+
for (const s of lst2) {
|
|
1360
|
+
const attr = { name: s };
|
|
1361
|
+
info.ANN.annheader.push(attr);
|
|
1362
|
+
}
|
|
1363
|
+
} else {
|
|
1364
|
+
errlst.push('no " | " joined annotation fields for ANN (snpEff annotation): ' + info.ANN.Description);
|
|
1365
|
+
}
|
|
1366
|
+
} else {
|
|
1367
|
+
errlst.push("no single-quote enclosed annotation fields for ANN (snpEff annotation): " + info.ANN.Description);
|
|
1368
|
+
}
|
|
1369
|
+
}
|
|
1370
|
+
return [hasinfo ? info : null, hasformat ? format2 : null, sampleobjlst, errlst.length ? errlst : null];
|
|
1371
|
+
}
|
|
1372
|
+
function vcfparseline(line, vcf) {
|
|
1373
|
+
const lst = line.split(" ");
|
|
1374
|
+
if (lst.length < 8) {
|
|
1375
|
+
return ["line has less than 8 fields", null, null];
|
|
1376
|
+
}
|
|
1377
|
+
const rawpos = Number.parseInt(lst[2 - 1]);
|
|
1378
|
+
if (!Number.isInteger(rawpos)) {
|
|
1379
|
+
return ["invalid value for genomic position", null, null];
|
|
1380
|
+
}
|
|
1381
|
+
const refallele = lst[4 - 1];
|
|
1382
|
+
const m = {
|
|
1383
|
+
vcf_ID: lst[3 - 1],
|
|
1384
|
+
chr: (vcf.nochr ? "chr" : "") + lst[1 - 1],
|
|
1385
|
+
pos: rawpos - 1,
|
|
1386
|
+
ref: refallele,
|
|
1387
|
+
//refstr:refallele, // e.g. GA>GCC, ref:A, refstr:GA, "refstr" is required for matching in FORMAT
|
|
1388
|
+
altstr: lst[5 - 1],
|
|
1389
|
+
alleles: [
|
|
1390
|
+
{
|
|
1391
|
+
/*
|
|
1392
|
+
ref allele only a placeholder, to be removed, this array only contains alt alleles
|
|
1393
|
+
this is a must
|
|
1394
|
+
also allows GT allele index to work
|
|
1395
|
+
*/
|
|
1396
|
+
allele: refallele,
|
|
1397
|
+
sampledata: []
|
|
1398
|
+
}
|
|
1399
|
+
],
|
|
1400
|
+
info: {},
|
|
1401
|
+
// locus info, do not contain allele info
|
|
1402
|
+
name: lst[3 - 1] == "." ? null : lst[3 - 1]
|
|
1403
|
+
};
|
|
1404
|
+
const altinvalid = [];
|
|
1405
|
+
for (const alt of lst[5 - 1].split(",")) {
|
|
1406
|
+
const a = {
|
|
1407
|
+
ref: m.ref,
|
|
1408
|
+
// may be corrected just below!
|
|
1409
|
+
allele: alt,
|
|
1410
|
+
// 5078356.TATCAGAGAA.GGGAGGA keep original allele for matching with csq which hardcodes original allele
|
|
1411
|
+
allele_original: alt,
|
|
1412
|
+
sampledata: [],
|
|
1413
|
+
_m: m,
|
|
1414
|
+
info: {}
|
|
1415
|
+
// allele info, do not contain locus info
|
|
1416
|
+
};
|
|
1417
|
+
m.alleles.push(a);
|
|
1418
|
+
if (alt[0] == "<") {
|
|
1419
|
+
const tmp2 = alt.match(getallelename);
|
|
1420
|
+
if (!tmp2) {
|
|
1421
|
+
altinvalid.push(alt);
|
|
1422
|
+
continue;
|
|
1423
|
+
}
|
|
1424
|
+
a.type = tmp2[1];
|
|
1425
|
+
a.allele = tmp2[1];
|
|
1426
|
+
a.issymbolicallele = true;
|
|
1427
|
+
} else {
|
|
1428
|
+
const [p, ref, alt2] = correctRefAlt(m.pos, m.ref, a.allele);
|
|
1429
|
+
a.pos = p;
|
|
1430
|
+
a.ref = ref;
|
|
1431
|
+
a.allele = alt2;
|
|
1432
|
+
}
|
|
1433
|
+
}
|
|
1434
|
+
if (lst[9 - 1] && lst[10 - 1]) {
|
|
1435
|
+
parse_FORMAT2(lst, m, vcf);
|
|
1436
|
+
}
|
|
1437
|
+
m.alleles.shift();
|
|
1438
|
+
const tmp = lst[8 - 1] == "." ? [] : dissect_INFO(lst[8 - 1]);
|
|
1439
|
+
let badinfokeys = [];
|
|
1440
|
+
if (vcf.info) {
|
|
1441
|
+
badinfokeys = parse_INFO(tmp, m, vcf);
|
|
1442
|
+
} else {
|
|
1443
|
+
m.info = tmp;
|
|
1444
|
+
}
|
|
1445
|
+
const mlst = [];
|
|
1446
|
+
for (const a of m.alleles) {
|
|
1447
|
+
const m2 = {};
|
|
1448
|
+
for (const k in m) {
|
|
1449
|
+
if (k != "alleles") {
|
|
1450
|
+
m2[k] = m[k];
|
|
1451
|
+
}
|
|
1452
|
+
}
|
|
1453
|
+
for (const k in a) {
|
|
1454
|
+
if (k == "allele") {
|
|
1455
|
+
m2.alt = a[k];
|
|
1456
|
+
} else if (k == "info") {
|
|
1457
|
+
m2.altinfo = a[k];
|
|
1458
|
+
} else {
|
|
1459
|
+
m2[k] = a[k];
|
|
1460
|
+
}
|
|
1461
|
+
}
|
|
1462
|
+
if (!m2.issymbolicallele && m2.alt != "NON_REF") {
|
|
1463
|
+
m2.type = getVariantType(m2.ref, m2.alt);
|
|
1464
|
+
}
|
|
1465
|
+
mlst.push(m2);
|
|
1466
|
+
}
|
|
1467
|
+
return [
|
|
1468
|
+
badinfokeys.length ? "unknown info keys: " + badinfokeys.join(",") : null,
|
|
1469
|
+
mlst,
|
|
1470
|
+
altinvalid.length > 0 ? altinvalid : null
|
|
1471
|
+
];
|
|
1472
|
+
}
|
|
1473
|
+
function correctRefAlt(p, ref, alt) {
|
|
1474
|
+
while (ref.length > 1 && alt.length > 1 && ref[ref.length - 1] == alt[alt.length - 1]) {
|
|
1475
|
+
ref = ref.substr(0, ref.length - 1);
|
|
1476
|
+
alt = alt.substr(0, alt.length - 1);
|
|
1477
|
+
}
|
|
1478
|
+
while (ref.length > 1 && alt.length > 1 && ref[0] == alt[0]) {
|
|
1479
|
+
ref = ref.substr(1);
|
|
1480
|
+
alt = alt.substr(1);
|
|
1481
|
+
p++;
|
|
1482
|
+
}
|
|
1483
|
+
return [p, ref, alt];
|
|
1484
|
+
}
|
|
1485
|
+
function parse_FORMAT2(lst, m, vcf) {
|
|
1486
|
+
const formatfields = lst[9 - 1].split(":");
|
|
1487
|
+
for (let _sampleidx = 9; _sampleidx < lst.length; _sampleidx++) {
|
|
1488
|
+
const valuelst = lst[_sampleidx].split(":");
|
|
1489
|
+
{
|
|
1490
|
+
let none = true;
|
|
1491
|
+
for (const v of valuelst) {
|
|
1492
|
+
if (v != ".") {
|
|
1493
|
+
none = false;
|
|
1494
|
+
break;
|
|
1495
|
+
}
|
|
1496
|
+
}
|
|
1497
|
+
if (none) {
|
|
1498
|
+
continue;
|
|
1499
|
+
}
|
|
1500
|
+
}
|
|
1501
|
+
const sampleidx = _sampleidx - 9;
|
|
1502
|
+
for (let i = 1; i < m.alleles.length; i++) {
|
|
1503
|
+
const sobj = {};
|
|
1504
|
+
if (vcf.samples && vcf.samples[sampleidx]) {
|
|
1505
|
+
for (const k in vcf.samples[sampleidx]) {
|
|
1506
|
+
sobj[k] = vcf.samples[sampleidx][k];
|
|
1507
|
+
}
|
|
1508
|
+
} else {
|
|
1509
|
+
sobj.name = "missing_samplename_from_vcf_header";
|
|
1510
|
+
}
|
|
1511
|
+
m.alleles[i].sampledata.push({
|
|
1512
|
+
sampleobj: sobj
|
|
1513
|
+
});
|
|
1514
|
+
}
|
|
1515
|
+
for (let fi = 0; fi < formatfields.length; fi++) {
|
|
1516
|
+
const field = formatfields[fi];
|
|
1517
|
+
const value = valuelst[fi];
|
|
1518
|
+
if (value == ".") {
|
|
1519
|
+
continue;
|
|
1520
|
+
}
|
|
1521
|
+
if (field == "GT") {
|
|
1522
|
+
const splitter = value.indexOf("/") != -1 ? "/" : "|";
|
|
1523
|
+
let gtsum = 0;
|
|
1524
|
+
let unknowngt = false;
|
|
1525
|
+
const gtalleles = [];
|
|
1526
|
+
for (const i of value.split(splitter)) {
|
|
1527
|
+
if (i == ".") {
|
|
1528
|
+
unknowngt = true;
|
|
1529
|
+
continue;
|
|
1530
|
+
}
|
|
1531
|
+
const j = Number.parseInt(i);
|
|
1532
|
+
if (Number.isNaN(j)) {
|
|
1533
|
+
unknowngt = true;
|
|
1534
|
+
continue;
|
|
1535
|
+
}
|
|
1536
|
+
gtsum += j;
|
|
1537
|
+
const ale = m.alleles[j];
|
|
1538
|
+
if (ale) {
|
|
1539
|
+
gtalleles.push(ale.allele);
|
|
1540
|
+
}
|
|
1541
|
+
}
|
|
1542
|
+
let gtallref = false;
|
|
1543
|
+
if (!unknowngt) {
|
|
1544
|
+
gtallref = gtsum == 0;
|
|
1545
|
+
}
|
|
1546
|
+
const genotype = gtalleles.join(splitter);
|
|
1547
|
+
for (let i = 1; i < m.alleles.length; i++) {
|
|
1548
|
+
const ms = m.alleles[i].sampledata[m.alleles[i].sampledata.length - 1];
|
|
1549
|
+
ms.GT = value;
|
|
1550
|
+
ms.genotype = genotype;
|
|
1551
|
+
if (gtallref) {
|
|
1552
|
+
ms.gtallref = true;
|
|
1553
|
+
}
|
|
1554
|
+
ms.__gtalleles = gtalleles;
|
|
1555
|
+
}
|
|
1556
|
+
continue;
|
|
1557
|
+
}
|
|
1558
|
+
const formatdesc = vcf.format ? vcf.format[field] : null;
|
|
1559
|
+
if (!formatdesc) {
|
|
1560
|
+
for (let i = 1; i < m.alleles.length; i++) {
|
|
1561
|
+
m.alleles[i].sampledata[m.alleles[i].sampledata.length - 1][field] = value;
|
|
1562
|
+
}
|
|
1563
|
+
continue;
|
|
1564
|
+
}
|
|
1565
|
+
const isinteger = formatdesc.Type == "Integer";
|
|
1566
|
+
const isfloat = formatdesc.Type == "Float";
|
|
1567
|
+
if (formatdesc.Number && formatdesc.Number == "R" || field == "AD") {
|
|
1568
|
+
const fvlst = value.split(",").map((i) => {
|
|
1569
|
+
if (isinteger) return Number.parseInt(i);
|
|
1570
|
+
if (isfloat) return Number.parseFloat(i);
|
|
1571
|
+
return i;
|
|
1572
|
+
});
|
|
1573
|
+
for (let i = 1; i < m.alleles.length; i++) {
|
|
1574
|
+
if (fvlst[i] != void 0) {
|
|
1575
|
+
const m2 = m.alleles[i];
|
|
1576
|
+
const m2s = m2.sampledata[m2.sampledata.length - 1];
|
|
1577
|
+
m2s[field] = {};
|
|
1578
|
+
m2s[field][m2.ref] = fvlst[0];
|
|
1579
|
+
m2s[field][m2.allele] = fvlst[i];
|
|
1580
|
+
}
|
|
1581
|
+
}
|
|
1582
|
+
continue;
|
|
1583
|
+
}
|
|
1584
|
+
if (formatdesc.Number && formatdesc.Number == "A") {
|
|
1585
|
+
const fvlst = value.split(",").map((i) => {
|
|
1586
|
+
if (isinteger) return Number.parseInt(i);
|
|
1587
|
+
if (isfloat) return Number.parseFloat(i);
|
|
1588
|
+
return i;
|
|
1589
|
+
});
|
|
1590
|
+
for (let i = 1; i < m.alleles.length; i++) {
|
|
1591
|
+
if (fvlst[i - 1] != void 0) {
|
|
1592
|
+
const m2 = m.alleles[i];
|
|
1593
|
+
const m2s = m2.sampledata[m2.sampledata.length - 1];
|
|
1594
|
+
m2s[field] = {};
|
|
1595
|
+
m2s[field][m2.allele] = fvlst[i - 1];
|
|
1596
|
+
}
|
|
1597
|
+
}
|
|
1598
|
+
continue;
|
|
1599
|
+
}
|
|
1600
|
+
for (let i = 1; i < m.alleles.length; i++) {
|
|
1601
|
+
m.alleles[i].sampledata[m.alleles[i].sampledata.length - 1][field] = value;
|
|
1602
|
+
}
|
|
1603
|
+
}
|
|
1604
|
+
}
|
|
1605
|
+
for (const a of m.alleles) {
|
|
1606
|
+
for (const s of a.sampledata) {
|
|
1607
|
+
if (s.AD) {
|
|
1608
|
+
s.allele2readcount = {};
|
|
1609
|
+
for (const k in s.AD) {
|
|
1610
|
+
s.allele2readcount[k] = s.AD[k];
|
|
1611
|
+
}
|
|
1612
|
+
}
|
|
1613
|
+
}
|
|
1614
|
+
}
|
|
1615
|
+
}
|
|
1616
|
+
function tohash(s, hash2) {
|
|
1617
|
+
const h = {}, err = [];
|
|
1618
|
+
let prev = 0, prevdoublequote = false, k = null;
|
|
1619
|
+
for (let i = 0; i < s.length; i++) {
|
|
1620
|
+
if (s[i] == '"') {
|
|
1621
|
+
i++;
|
|
1622
|
+
const thisstart = i;
|
|
1623
|
+
while (s[i] != '"') {
|
|
1624
|
+
i++;
|
|
1625
|
+
}
|
|
1626
|
+
if (k) {
|
|
1627
|
+
h[k] = s.substring(thisstart, i);
|
|
1628
|
+
k = null;
|
|
1629
|
+
} else {
|
|
1630
|
+
err.push("k undefined before double quotes");
|
|
1631
|
+
}
|
|
1632
|
+
prevdoublequote = true;
|
|
1633
|
+
continue;
|
|
1634
|
+
}
|
|
1635
|
+
if (s[i] == "=") {
|
|
1636
|
+
k = s.substring(prev, i);
|
|
1637
|
+
prev = i + 1;
|
|
1638
|
+
continue;
|
|
1639
|
+
}
|
|
1640
|
+
if (s[i] == ",") {
|
|
1641
|
+
if (prevdoublequote) {
|
|
1642
|
+
prevdoublequote = false;
|
|
1643
|
+
} else {
|
|
1644
|
+
if (k) {
|
|
1645
|
+
h[k] = s.substring(prev, i);
|
|
1646
|
+
k = null;
|
|
1647
|
+
} else {
|
|
1648
|
+
err.push("k undefined");
|
|
1649
|
+
}
|
|
1650
|
+
}
|
|
1651
|
+
prev = i + 1;
|
|
1652
|
+
continue;
|
|
1653
|
+
}
|
|
1654
|
+
}
|
|
1655
|
+
if (k) {
|
|
1656
|
+
h[k] = s.substring(prev);
|
|
1657
|
+
}
|
|
1658
|
+
if (h.ID) {
|
|
1659
|
+
hash2[h.ID] = h;
|
|
1660
|
+
} else {
|
|
1661
|
+
return "no ID";
|
|
1662
|
+
}
|
|
1663
|
+
if (err.length) return err.join("\n");
|
|
1664
|
+
}
|
|
1665
|
+
function parse_INFO(tmp, m, vcf) {
|
|
1666
|
+
const badinfokeys = [];
|
|
1667
|
+
for (const key in tmp) {
|
|
1668
|
+
if (vcf.info[key] == void 0) {
|
|
1669
|
+
badinfokeys.push(key);
|
|
1670
|
+
continue;
|
|
1671
|
+
}
|
|
1672
|
+
const value = tmp[key];
|
|
1673
|
+
if (key == "CSQ") {
|
|
1674
|
+
const okay = parse_CSQ(value, vcf.info.CSQ.csqheader, m);
|
|
1675
|
+
if (!okay) {
|
|
1676
|
+
m.info[key] = value;
|
|
1677
|
+
}
|
|
1678
|
+
continue;
|
|
1679
|
+
}
|
|
1680
|
+
if (key == "ANN") {
|
|
1681
|
+
const okay = parse_ANN(value, vcf.info.ANN.annheader, m);
|
|
1682
|
+
if (!okay) {
|
|
1683
|
+
m.info[key] = value;
|
|
1684
|
+
}
|
|
1685
|
+
continue;
|
|
1686
|
+
}
|
|
1687
|
+
if (vcf.info[key].Type == "Flag") {
|
|
1688
|
+
m.info[key] = key;
|
|
1689
|
+
continue;
|
|
1690
|
+
}
|
|
1691
|
+
const __number = vcf.info[key].Number;
|
|
1692
|
+
const isinteger = vcf.info[key].Type == "Integer";
|
|
1693
|
+
const isfloat = vcf.info[key].Type == "Float";
|
|
1694
|
+
if (__number == "0") {
|
|
1695
|
+
m.info[key] = key;
|
|
1696
|
+
continue;
|
|
1697
|
+
}
|
|
1698
|
+
if (__number == "A") {
|
|
1699
|
+
const tt = value.split(",");
|
|
1700
|
+
for (let j = 0; j < tt.length; j++) {
|
|
1701
|
+
if (m.alleles[j]) {
|
|
1702
|
+
m.alleles[j].info[key] = isinteger ? Number.parseInt(tt[j]) : isfloat ? Number.parseFloat(tt[j]) : tt[j];
|
|
1703
|
+
}
|
|
1704
|
+
}
|
|
1705
|
+
continue;
|
|
1706
|
+
}
|
|
1707
|
+
if (__number == "R") {
|
|
1708
|
+
}
|
|
1709
|
+
if (__number == "1") {
|
|
1710
|
+
m.info[key] = isinteger ? Number.parseInt(value) : isfloat ? Number.parseFloat(value) : value;
|
|
1711
|
+
continue;
|
|
1712
|
+
}
|
|
1713
|
+
if (!value.split) {
|
|
1714
|
+
continue;
|
|
1715
|
+
}
|
|
1716
|
+
const lst = value.split(",");
|
|
1717
|
+
if (isinteger) {
|
|
1718
|
+
m.info[key] = lst.map(Number.parseInt);
|
|
1719
|
+
} else if (isfloat) {
|
|
1720
|
+
m.info[key] = lst.map(Number.parseFloat);
|
|
1721
|
+
} else {
|
|
1722
|
+
m.info[key] = lst;
|
|
1723
|
+
}
|
|
1724
|
+
}
|
|
1725
|
+
return badinfokeys;
|
|
1726
|
+
}
|
|
1727
|
+
|
|
1728
|
+
// common/auth.js
|
|
1729
|
+
var jwtByDsRoute;
|
|
1730
|
+
function setJwtByDsRoute() {
|
|
1731
|
+
if (jwtByDsRoute) return;
|
|
1732
|
+
const jwtByDsRouteStr = localStorage.getItem("jwtByDsRoute") || `{}`;
|
|
1733
|
+
jwtByDsRoute = JSON.parse(jwtByDsRouteStr);
|
|
1734
|
+
}
|
|
1735
|
+
function setTokenByDsRoute(dslabel, route, jwt) {
|
|
1736
|
+
setJwtByDsRoute();
|
|
1737
|
+
if (!jwtByDsRoute[dslabel]) jwtByDsRoute[dslabel] = {};
|
|
1738
|
+
if (jwt) jwtByDsRoute[dslabel][route] = jwt;
|
|
1739
|
+
else delete jwtByDsRoute[dslabel][route];
|
|
1740
|
+
localStorage.setItem("jwtByDsRoute", JSON.stringify(jwtByDsRoute));
|
|
1741
|
+
}
|
|
1742
|
+
function getSavedToken(dslabel, route) {
|
|
1743
|
+
setJwtByDsRoute();
|
|
1744
|
+
return jwtByDsRoute[dslabel]?.[route] || jwtByDsRoute[dslabel]?.["/**"];
|
|
1745
|
+
}
|
|
1746
|
+
function mayAddJwtToRequest(init, body, url) {
|
|
1747
|
+
if (init.headers.authorization) return;
|
|
1748
|
+
let dslabel = body?.dslabel;
|
|
1749
|
+
if (!dslabel) {
|
|
1750
|
+
const param = url.split("?")[1]?.split("&").find((kv) => kv.includes("dslabel"));
|
|
1751
|
+
if (!param) return;
|
|
1752
|
+
let value = decodeURIComponent(param.split("=")[1]);
|
|
1753
|
+
if (value.startsWith("{") && value.endsWith("}")) {
|
|
1754
|
+
value = JSON.parse(value);
|
|
1755
|
+
dslabel = value.dslabel || value.mass?.vocab.dslabel || value.tracks?.find((t) => t.dslabel)?.dslabel;
|
|
1756
|
+
} else {
|
|
1757
|
+
dslabel = value;
|
|
1758
|
+
}
|
|
1759
|
+
}
|
|
1760
|
+
setJwtByDsRoute();
|
|
1761
|
+
if (!dslabel || !jwtByDsRoute[dslabel]) return;
|
|
1762
|
+
const h = url.split("//");
|
|
1763
|
+
const postProtocolStr = h[1] || h[0];
|
|
1764
|
+
const preQuestionMarkStr = postProtocolStr.split("?")[0];
|
|
1765
|
+
const pathSegments = preQuestionMarkStr.split("/");
|
|
1766
|
+
let route = pathSegments.find((p) => p != "" && !p.includes(":") && !p.includes("."));
|
|
1767
|
+
const jwt = jwtByDsRoute[dslabel][route] || jwtByDsRoute[dslabel]["/**"];
|
|
1768
|
+
if (jwt) init.headers.authorization = "Bearer " + btoa(jwt);
|
|
1769
|
+
}
|
|
1770
|
+
var dsAuthOk = /* @__PURE__ */ new Set();
|
|
1771
|
+
var dsAuth;
|
|
1772
|
+
var authUi;
|
|
1773
|
+
var authUiHolder;
|
|
1774
|
+
var includeEmbedder = false;
|
|
1775
|
+
async function setDsAuthOk(opts) {
|
|
1776
|
+
dsAuth = opts.dsAuth;
|
|
1777
|
+
authUi = opts.ui || defaultAuthUi;
|
|
1778
|
+
authUiHolder = opts.holder || select_default("body");
|
|
1779
|
+
for (const auth of dsAuth) {
|
|
1780
|
+
if (auth.insession) dsAuthOk.add(auth);
|
|
1781
|
+
}
|
|
1782
|
+
includeEmbedder = opts.dsAuth?.length > 0 || false;
|
|
1783
|
+
}
|
|
1784
|
+
function getRequiredAuth(dslabel, route) {
|
|
1785
|
+
if (!dsAuth || !Array.isArray(dsAuth)) return;
|
|
1786
|
+
for (const a of dsAuth) {
|
|
1787
|
+
if (a.dslabel == dslabel && (a.route == route || a.route == "*" || a.route == "/**")) return a;
|
|
1788
|
+
}
|
|
1789
|
+
}
|
|
1790
|
+
async function isInSession(dslabel, route) {
|
|
1791
|
+
if (!dslabel) return false;
|
|
1792
|
+
if (!Array.isArray(dsAuth)) return false;
|
|
1793
|
+
for (const a of dsAuth) {
|
|
1794
|
+
if (a.dslabel != dslabel || a.route != route && a.route != "/**") continue;
|
|
1795
|
+
if (dsAuthOk.has(a)) return true;
|
|
1796
|
+
if (a.checked) return false;
|
|
1797
|
+
const jwt = getSavedToken(dslabel, a.route);
|
|
1798
|
+
if (!jwt) return false;
|
|
1799
|
+
const { dofetch3: dofetch32 } = await import("./dofetch-F5XSHQIS.js");
|
|
1800
|
+
const payload = decodeJwtPayload(jwt);
|
|
1801
|
+
if (payload.exp && Math.ceil(Date.now() / 1e3) > payload.exp) return false;
|
|
1802
|
+
const data = await dofetch32("/jwt-status", {
|
|
1803
|
+
method: "POST",
|
|
1804
|
+
credentials: "include",
|
|
1805
|
+
headers: {
|
|
1806
|
+
//authorization: `Bearer ${btoa(jwt)}`
|
|
1807
|
+
[a.headerKey]: jwt
|
|
1808
|
+
},
|
|
1809
|
+
body: {
|
|
1810
|
+
dslabel,
|
|
1811
|
+
route,
|
|
1812
|
+
embedder: location.hostname
|
|
1813
|
+
}
|
|
1814
|
+
});
|
|
1815
|
+
a.checked = true;
|
|
1816
|
+
if (data.ok || data.status == "ok") {
|
|
1817
|
+
dsAuthOk.add(a);
|
|
1818
|
+
a.insession = true;
|
|
1819
|
+
return true;
|
|
1820
|
+
}
|
|
1821
|
+
}
|
|
1822
|
+
return false;
|
|
1823
|
+
}
|
|
1824
|
+
async function mayShowAuthUi(init, path, opts = {}) {
|
|
1825
|
+
const ok = { status: "ok" };
|
|
1826
|
+
if (!dsAuth || path.endsWith("jwt-status")) return ok;
|
|
1827
|
+
const body = JSON.parse(init.body || `{}`);
|
|
1828
|
+
const params = (path.split("?")[1] || "").split("&").reduce((obj, kv) => {
|
|
1829
|
+
const [key, value] = kv.split("=");
|
|
1830
|
+
obj[key] = value;
|
|
1831
|
+
return obj;
|
|
1832
|
+
}, {});
|
|
1833
|
+
const q = Object.assign({}, body, params);
|
|
1834
|
+
const route = ((path.split("?")[0] || "").split("//")[1] || "").split("/").slice(1).join("/");
|
|
1835
|
+
for (const a of dsAuth) {
|
|
1836
|
+
if (q.dslabel == a.dslabel && (a.route == "/**" || route == a.route)) {
|
|
1837
|
+
if (dsAuthOk.has(a)) return ok;
|
|
1838
|
+
else if (a.route != "/**") return ok;
|
|
1839
|
+
else if (a.type == "basic") return await authUi(a.dslabel, a, opts);
|
|
1840
|
+
else if (a.type == "jwt") {
|
|
1841
|
+
} else if (a.type == "forbidden") {
|
|
1842
|
+
alert("Forbidden access");
|
|
1843
|
+
} else throw `unsupported dsAuth type='${a.type}'`;
|
|
1844
|
+
}
|
|
1845
|
+
}
|
|
1846
|
+
return ok;
|
|
1847
|
+
}
|
|
1848
|
+
async function defaultAuthUi(dslabel, auth, opts = {}) {
|
|
1849
|
+
const mask = authUiHolder.append("div").style("position", "fixed").style("top", 0).style("left", 0).style("height", "100%").style("width", "100%").style("margin", 0).style("padding", "20px").style("background-color", "rgb(150,150,150)");
|
|
1850
|
+
const form = mask.append("div").style("opacity", 1);
|
|
1851
|
+
form.append("div").html(`Restricted dataset '${dslabel}'`);
|
|
1852
|
+
form.append("span").html("Please enter password ");
|
|
1853
|
+
const pwd = form.append("input").attr("type", "password");
|
|
1854
|
+
pwd.node().focus();
|
|
1855
|
+
const btn = form.append("button").html("Submit");
|
|
1856
|
+
return new Promise((resolve, reject) => {
|
|
1857
|
+
function login() {
|
|
1858
|
+
fetch("/dslogin", {
|
|
1859
|
+
method: "POST",
|
|
1860
|
+
headers: {
|
|
1861
|
+
authorization: `Basic ${btoa(pwd.property("value"))}`
|
|
1862
|
+
},
|
|
1863
|
+
body: JSON.stringify({ dslabel, route: auth.route, embedder: window.location.hostname })
|
|
1864
|
+
}).then((res) => res.json()).then((res) => {
|
|
1865
|
+
if (res.error) throw res.error;
|
|
1866
|
+
mask.remove();
|
|
1867
|
+
dsAuthOk.add(auth);
|
|
1868
|
+
if (res.jwt) {
|
|
1869
|
+
setTokenByDsRoute(dslabel, res.route, res.jwt);
|
|
1870
|
+
}
|
|
1871
|
+
if (!opts.setDomRefs) window.location.reload();
|
|
1872
|
+
else resolve(dslabel);
|
|
1873
|
+
}).catch((e) => {
|
|
1874
|
+
alert("login error: " + e);
|
|
1875
|
+
});
|
|
1876
|
+
}
|
|
1877
|
+
btn.on("click", login);
|
|
1878
|
+
pwd.on("change", login);
|
|
1879
|
+
if (opts.setDomRefs)
|
|
1880
|
+
opts.setDomRefs({
|
|
1881
|
+
pwd,
|
|
1882
|
+
btn,
|
|
1883
|
+
mask,
|
|
1884
|
+
authUiHolder
|
|
1885
|
+
});
|
|
1886
|
+
});
|
|
1887
|
+
}
|
|
1888
|
+
function decodeJwtPayload(token) {
|
|
1889
|
+
const base64Url = token.split(".")[1];
|
|
1890
|
+
const base64 = base64Url.replace(/-/g, "+").replace(/_/g, "/");
|
|
1891
|
+
const paddedBase64 = base64 + "=".repeat((4 - base64.length % 4) % 4);
|
|
1892
|
+
const jsonPayload = decodeURIComponent(window.atob(paddedBase64).split("").map(convertAtoBresult).join(""));
|
|
1893
|
+
return JSON.parse(jsonPayload);
|
|
1894
|
+
}
|
|
1895
|
+
function convertAtoBresult(c) {
|
|
1896
|
+
return "%" + ("00" + c.charCodeAt(0).toString(16)).slice(-2);
|
|
1897
|
+
}
|
|
1898
|
+
|
|
1899
|
+
// common/dofetch.js
|
|
1900
|
+
function dofetch(path, arg, opts = null) {
|
|
1901
|
+
if (opts && typeof opts == "object") {
|
|
1902
|
+
if (opts.serverData && typeof opts.serverData == "object") {
|
|
1903
|
+
if (!dofetch.serverData) {
|
|
1904
|
+
dofetch.serverData = opts.serverData;
|
|
1905
|
+
} else if (!opts.serverData) {
|
|
1906
|
+
opts.serverData = dofetch.serverData;
|
|
1907
|
+
}
|
|
1908
|
+
}
|
|
1909
|
+
return dofetch2(
|
|
1910
|
+
path,
|
|
1911
|
+
{
|
|
1912
|
+
method: "POST",
|
|
1913
|
+
headers: {
|
|
1914
|
+
"content-type": "application/json"
|
|
1915
|
+
},
|
|
1916
|
+
body: JSON.stringify(arg)
|
|
1917
|
+
},
|
|
1918
|
+
opts
|
|
1919
|
+
);
|
|
1920
|
+
} else {
|
|
1921
|
+
if (path[0] == "/") {
|
|
1922
|
+
path = path.slice(1);
|
|
1923
|
+
}
|
|
1924
|
+
const jwt = sessionStorage.getItem("jwt");
|
|
1925
|
+
if (jwt) {
|
|
1926
|
+
arg.jwt = jwt;
|
|
1927
|
+
}
|
|
1928
|
+
let url = path;
|
|
1929
|
+
const host = sessionStorage.getItem("hostURL") || window.testHost || "";
|
|
1930
|
+
if (host) {
|
|
1931
|
+
if (host.endsWith("/")) {
|
|
1932
|
+
url = host + path;
|
|
1933
|
+
} else {
|
|
1934
|
+
url = host + "/" + path;
|
|
1935
|
+
}
|
|
1936
|
+
}
|
|
1937
|
+
return fetch(
|
|
1938
|
+
new Request(url, {
|
|
1939
|
+
method: "POST",
|
|
1940
|
+
headers: {
|
|
1941
|
+
"content-type": "application/json"
|
|
1942
|
+
},
|
|
1943
|
+
body: JSON.stringify(arg)
|
|
1944
|
+
})
|
|
1945
|
+
).then((r) => r.json());
|
|
1946
|
+
}
|
|
1947
|
+
}
|
|
1948
|
+
function dofetch2(path, init = {}, opts = {}) {
|
|
1949
|
+
if (path[0] == "/") {
|
|
1950
|
+
path = path.slice(1);
|
|
1951
|
+
}
|
|
1952
|
+
let url = path;
|
|
1953
|
+
const host = sessionStorage.getItem("hostURL") || window.testHost || "";
|
|
1954
|
+
if (host) {
|
|
1955
|
+
if (host.endsWith("/")) {
|
|
1956
|
+
url = host + path;
|
|
1957
|
+
} else {
|
|
1958
|
+
url = host + "/" + path;
|
|
1959
|
+
}
|
|
1960
|
+
}
|
|
1961
|
+
const body = init.body || {};
|
|
1962
|
+
url = mayAdjustRequest(url, init);
|
|
1963
|
+
if (!init.headers) {
|
|
1964
|
+
init.headers = {};
|
|
1965
|
+
}
|
|
1966
|
+
if (!init.headers["content-type"] && init.body) {
|
|
1967
|
+
init.headers["content-type"] = "application/json";
|
|
1968
|
+
}
|
|
1969
|
+
const jwt = sessionStorage.getItem("jwt");
|
|
1970
|
+
if (jwt) {
|
|
1971
|
+
init.headers.authorization = "Bearer " + jwt;
|
|
1972
|
+
}
|
|
1973
|
+
return mayShowAuthUi(init, url).then(async () => {
|
|
1974
|
+
if (!jwt) mayAddJwtToRequest(init, body, url);
|
|
1975
|
+
if (opts.serverData) {
|
|
1976
|
+
return namedFetch(url, init, opts);
|
|
1977
|
+
} else {
|
|
1978
|
+
return fetch(url, init).then(processResponse);
|
|
1979
|
+
}
|
|
1980
|
+
});
|
|
1981
|
+
}
|
|
1982
|
+
var optsServerDataNames = /* @__PURE__ */ new WeakMap();
|
|
1983
|
+
async function namedFetch(url, init, opts = {}) {
|
|
1984
|
+
if (!opts.serverData) throw `use ezFetch() from fetch-helpers if a fetched response is not meant to be cached`;
|
|
1985
|
+
if (typeof opts.serverData != "object") throw `opts.serverData is not an object`;
|
|
1986
|
+
let result;
|
|
1987
|
+
const dataName = await getDataName(url, init);
|
|
1988
|
+
if (opts.serverData[dataName]) {
|
|
1989
|
+
if (init.signal) {
|
|
1990
|
+
await sleep(0);
|
|
1991
|
+
if (init.signal.aborted) throw `stale sequenceId`;
|
|
1992
|
+
}
|
|
1993
|
+
result = structuredClone(opts.serverData[dataName]);
|
|
1994
|
+
}
|
|
1995
|
+
if (!result || typeof result != "object" && !(result instanceof Promise)) {
|
|
1996
|
+
delete opts.serverData[dataName];
|
|
1997
|
+
result = void 0;
|
|
1998
|
+
}
|
|
1999
|
+
if (!result) {
|
|
2000
|
+
try {
|
|
2001
|
+
const res = await fetch(url, init);
|
|
2002
|
+
result = await processResponse(res);
|
|
2003
|
+
if (typeof result == "object" && !(result instanceof Promise)) {
|
|
2004
|
+
deepFreeze(result);
|
|
2005
|
+
opts.serverData[dataName] = result;
|
|
2006
|
+
result = structuredClone(result);
|
|
2007
|
+
}
|
|
2008
|
+
} catch (e) {
|
|
2009
|
+
delete opts.serverData[dataName];
|
|
2010
|
+
throw e;
|
|
2011
|
+
}
|
|
2012
|
+
}
|
|
2013
|
+
if (!optsServerDataNames.has(opts.serverData)) optsServerDataNames.set(opts.serverData, []);
|
|
2014
|
+
const keys = optsServerDataNames.get(opts.serverData);
|
|
2015
|
+
const i = keys.indexOf(dataName);
|
|
2016
|
+
if (i > 0) {
|
|
2017
|
+
keys.splice(i, 1);
|
|
2018
|
+
}
|
|
2019
|
+
keys.unshift(dataName);
|
|
2020
|
+
const maxKeys = 360;
|
|
2021
|
+
while (keys.length > maxKeys) {
|
|
2022
|
+
const oldestDataKey = keys.pop();
|
|
2023
|
+
delete opts.serverData[oldestDataKey];
|
|
2024
|
+
}
|
|
2025
|
+
return result;
|
|
2026
|
+
}
|
|
2027
|
+
var defaultServerDataCache = {};
|
|
2028
|
+
function dofetch3(path, init = {}, opts = {}) {
|
|
2029
|
+
if (!init.signal && this) {
|
|
2030
|
+
init.signal = this.getAbortSignal?.() || this.app?.getAbortSignal?.();
|
|
2031
|
+
}
|
|
2032
|
+
opts.serverData = defaultServerDataCache;
|
|
2033
|
+
return dofetch2(path, init, opts);
|
|
2034
|
+
}
|
|
2035
|
+
function clearServerDataCache(opts = {}) {
|
|
2036
|
+
const cache = opts?.serverData || defaultServerDataCache;
|
|
2037
|
+
if (!cache) return;
|
|
2038
|
+
for (const k of Object.keys(cache)) {
|
|
2039
|
+
delete cache[k];
|
|
2040
|
+
}
|
|
2041
|
+
}
|
|
2042
|
+
var urlMaxLength = 2e3;
|
|
2043
|
+
function mayAdjustRequest(url, init) {
|
|
2044
|
+
const hostname = window.location.hostname;
|
|
2045
|
+
const method = init.method && init.method.toUpperCase() || "GET";
|
|
2046
|
+
if (method == "POST") {
|
|
2047
|
+
if (typeof init.body == "string") init.body = JSON.parse(init.body);
|
|
2048
|
+
if (!init.body.embedder && includeEmbedder) init.body.embedder = hostname;
|
|
2049
|
+
init.body = JSON.stringify(init.body);
|
|
2050
|
+
return url;
|
|
2051
|
+
}
|
|
2052
|
+
if (method != "GET" && method != "DELETE" && method != "PUT") {
|
|
2053
|
+
throw `unsupported init.method='${method}': must be undefined or GET or POST or DELETE or PUT`;
|
|
2054
|
+
}
|
|
2055
|
+
if (init.body) {
|
|
2056
|
+
if (!init.body.embedder && includeEmbedder) init.body.embedder = hostname;
|
|
2057
|
+
const params = encode(init.body);
|
|
2058
|
+
if (!url.includes("?")) url += "?";
|
|
2059
|
+
url += params;
|
|
2060
|
+
}
|
|
2061
|
+
if (!url.includes("embedder=") && includeEmbedder) {
|
|
2062
|
+
const sep = url.includes("?") ? "&" : "?";
|
|
2063
|
+
url += `${sep}embedder=${hostname}`;
|
|
2064
|
+
}
|
|
2065
|
+
if (url.length < urlMaxLength) {
|
|
2066
|
+
if (init.body) delete init.body;
|
|
2067
|
+
return url;
|
|
2068
|
+
}
|
|
2069
|
+
init.method = "POST";
|
|
2070
|
+
const [hostpath, query] = url.split("?");
|
|
2071
|
+
if (init.body) {
|
|
2072
|
+
init.body = JSON.stringify(init.body);
|
|
2073
|
+
} else {
|
|
2074
|
+
const params = {};
|
|
2075
|
+
if (query)
|
|
2076
|
+
query.split("&").forEach((p) => {
|
|
2077
|
+
const [k, v] = p.split("=");
|
|
2078
|
+
const decodedVal = decodeURIComponent(v);
|
|
2079
|
+
try {
|
|
2080
|
+
params[k] = JSON.parse(decodedVal);
|
|
2081
|
+
} catch {
|
|
2082
|
+
params[k] = decodedVal;
|
|
2083
|
+
}
|
|
2084
|
+
});
|
|
2085
|
+
if (!params.embedder && includeEmbedder) params.embedder = hostname;
|
|
2086
|
+
init.body = JSON.stringify(params);
|
|
2087
|
+
}
|
|
2088
|
+
return hostpath;
|
|
2089
|
+
}
|
|
2090
|
+
function setAuth(opts) {
|
|
2091
|
+
setDsAuthOk(opts, dofetch3);
|
|
2092
|
+
}
|
|
2093
|
+
|
|
2094
|
+
export {
|
|
2095
|
+
boxplot_getvalue,
|
|
2096
|
+
init_bulk_flag,
|
|
2097
|
+
parsesample,
|
|
2098
|
+
clusterMethodLst,
|
|
2099
|
+
distanceMethodLst,
|
|
2100
|
+
computePercentile,
|
|
2101
|
+
processFormData,
|
|
2102
|
+
fileSize,
|
|
2103
|
+
ssmIdFieldsSeparator,
|
|
2104
|
+
summarize_mclass,
|
|
2105
|
+
guessSsmid,
|
|
2106
|
+
xAxisOffSet,
|
|
2107
|
+
yAxisOffSet,
|
|
2108
|
+
getCoordinate,
|
|
2109
|
+
calculatePadding,
|
|
2110
|
+
compute_bins,
|
|
2111
|
+
get_bin_label,
|
|
2112
|
+
get_bin_range_equation,
|
|
2113
|
+
initBinConfig,
|
|
2114
|
+
isUsableTerm,
|
|
2115
|
+
formatElapsedTime,
|
|
2116
|
+
vcfparsemeta,
|
|
2117
|
+
vcfparseline,
|
|
2118
|
+
setTokenByDsRoute,
|
|
2119
|
+
getSavedToken,
|
|
2120
|
+
mayAddJwtToRequest,
|
|
2121
|
+
includeEmbedder,
|
|
2122
|
+
setDsAuthOk,
|
|
2123
|
+
getRequiredAuth,
|
|
2124
|
+
isInSession,
|
|
2125
|
+
mayShowAuthUi,
|
|
2126
|
+
dofetch,
|
|
2127
|
+
dofetch2,
|
|
2128
|
+
namedFetch,
|
|
2129
|
+
dofetch3,
|
|
2130
|
+
clearServerDataCache,
|
|
2131
|
+
setAuth
|
|
2132
|
+
};
|
|
2133
|
+
//# sourceMappingURL=chunk-RPDVFM7E.js.map
|