@sjcrh/proteinpaint-client 2.182.0 → 2.182.1
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-YHYYSSKR.js +1371 -0
- package/dist/AIProjectAdmin-D4AASQBM.js +830 -0
- package/dist/AIProjectAdmin-D4AASQBM.js.map +7 -0
- package/dist/AppHeader-T4ZLY3VG.js +833 -0
- package/dist/BoxPlot-DIU4YXNK.js +1217 -0
- package/dist/BoxPlot-DIU4YXNK.js.map +7 -0
- package/dist/CorrelationVolcano-EXH4P56S.js +617 -0
- package/dist/DE-C5K2TVUQ.js +93 -0
- package/dist/DEinput-KVILE7QQ.js +297 -0
- package/dist/DifferentialAnalysis-P6GKHAS5.js +238 -0
- package/dist/Disco-IMLXEBPG.js +3235 -0
- package/dist/Disco-IMLXEBPG.js.map +7 -0
- package/dist/Disco.UI-4A2P5Q55.js +242 -0
- package/dist/DmrPlot-6EEEGD32.js +640 -0
- package/dist/GB-XFO5I6ND.js +1125 -0
- package/dist/HicApp-3LFHOOAR.js +2248 -0
- package/dist/NumBinaryEditor-74PY52BP.js +268 -0
- package/dist/NumBinaryEditor.unit.spec-2PYZ7P2R.js +284 -0
- package/dist/NumContEditor-BMWALLQM.js +105 -0
- package/dist/NumContEditor.unit.spec-ETVLVX6A.js +167 -0
- package/dist/NumCustomBinEditor-2XJ6GUWY.js +36 -0
- package/dist/NumCustomBinEditor.unit.spec-TZVL553E.js +282 -0
- package/dist/NumDiscreteEditor-4LNLKAXT.js +177 -0
- package/dist/NumDiscreteEditor.unit.spec-KQND2XAE.js +200 -0
- package/dist/NumRegularBinEditor-OYELFDIB.js +36 -0
- package/dist/NumRegularBinEditor.unit.spec-44SALKLH.js +225 -0
- package/dist/NumSplineEditor-SENQC4P2.js +190 -0
- package/dist/NumSplineEditor.unit.spec-XKB4XXU4.js +197 -0
- package/dist/NumericDensity-GCNWO7YS.js +36 -0
- package/dist/NumericDensity.unit.spec-7LWNOUYK.js +219 -0
- package/dist/NumericHandler-EMQBI5UI.js +37 -0
- package/dist/NumericHandler.unit.spec-TEELPRIM.js +217 -0
- package/dist/RunChart2-LJBC5X2H.js +756 -0
- package/dist/RunChart2-LJBC5X2H.js.map +7 -0
- package/dist/SC-3EB6UYIS.js +682 -0
- package/dist/SC-3EB6UYIS.js.map +7 -0
- package/dist/Volcano-CPULLVYV.js +1185 -0
- package/dist/Volcano-CPULLVYV.js.map +7 -0
- package/dist/WSIViewer-2YCT4LCM.js +47974 -0
- package/dist/WSIViewer-2YCT4LCM.js.map +7 -0
- package/dist/WsiSamplesPlot-B2DM7Z3Q.js +163 -0
- package/dist/adSandbox-INF3NNEV.js +36 -0
- package/dist/alphaGenome-CO4TQHXN.js +173 -0
- package/dist/app-63JU2YIT.js +47 -0
- package/dist/app-BL3POUOO.js +35 -0
- package/dist/app.js +22 -22
- package/dist/bam-SVEJYICC.js +857 -0
- package/dist/barchart-PDUXZAIH.js +45 -0
- package/dist/barchart.data-EXENRVMU.js +22 -0
- package/dist/barchart.events-MQNQTSWI.js +45 -0
- package/dist/barchart.integration.spec-DSO2377T.js +1675 -0
- package/dist/bars.renderer-S7A7I6BQ.js +12 -0
- package/dist/block-OO2NLGUP.js +6200 -0
- package/dist/block-OO2NLGUP.js.map +7 -0
- package/dist/block.init-7J5OHYKA.js +36 -0
- package/dist/block.mds.expressionrank-643H7PN7.js +357 -0
- package/dist/block.mds.geneboxplot-C222ODSL.js +826 -0
- package/dist/block.mds.junction-C5DJRUOK.js +1543 -0
- package/dist/block.mds.svcnv-4G74JQ7Y.js +6799 -0
- package/dist/block.svg-35KUC5R7.js +162 -0
- package/dist/block.tk.aicheck-LLWT6K6H.js +281 -0
- package/dist/block.tk.ase-PQUKY65E.js +363 -0
- package/dist/block.tk.bam-EUEOB7BR.js +1904 -0
- package/dist/block.tk.bedgraphdot-XAHUY545.js +382 -0
- package/dist/block.tk.bigwig.ui-HEOPNL3T.js +209 -0
- package/dist/block.tk.hicstraw-EPH3LEX2.js +821 -0
- package/dist/block.tk.junction-MIUDAIAR.js +2362 -0
- package/dist/block.tk.junction.textmatrixui-AVFUQBDS.js +197 -0
- package/dist/block.tk.ld-ED7YMBQ4.js +97 -0
- package/dist/block.tk.menu-3CVIECWQ.js +1027 -0
- package/dist/block.tk.pgv-HETJVWXH.js +942 -0
- package/dist/brainImaging-K3LHK3DD.js +421 -0
- package/dist/chat-BYX5ARUK.js +148 -0
- package/dist/chunk-25RP5OSE.js +1426 -0
- package/dist/chunk-25RP5OSE.js.map +7 -0
- package/dist/chunk-2K5DSRBJ.js +84 -0
- package/dist/chunk-2K5DSRBJ.js.map +7 -0
- package/dist/chunk-2LULD7RN.js +31 -0
- package/dist/chunk-2M6JV7YS.js +261 -0
- package/dist/chunk-2M6JV7YS.js.map +7 -0
- package/dist/chunk-2TJESM3Z.js +158 -0
- package/dist/chunk-2VFYZ3EY.js +102 -0
- package/dist/chunk-3CD5ZROA.js +4952 -0
- package/dist/chunk-3DCABJHB.js +381 -0
- package/dist/chunk-3MMKHYUM.js +95 -0
- package/dist/chunk-3PRPMJTG.js +55 -0
- package/dist/chunk-4JON7TLI.js +176 -0
- package/dist/chunk-4JON7TLI.js.map +7 -0
- package/dist/chunk-5HCB4HNL.js +147 -0
- package/dist/chunk-5JD4D5GD.js +215 -0
- package/dist/chunk-5UMPBVA6.js +534 -0
- package/dist/chunk-64FGLSIM.js +56 -0
- package/dist/chunk-64FGLSIM.js.map +7 -0
- package/dist/chunk-6ITDJ5UR.js +261 -0
- package/dist/chunk-6ITDJ5UR.js.map +7 -0
- package/dist/chunk-6LAE5AVA.js +13624 -0
- package/dist/chunk-6VLA5NEW.js +335 -0
- package/dist/chunk-6VLA5NEW.js.map +7 -0
- package/dist/chunk-7FKIAQ4K.js +17 -0
- package/dist/chunk-7FKIAQ4K.js.map +7 -0
- package/dist/chunk-7FTDQDVF.js +824 -0
- package/dist/chunk-7IEZ2KMW.js +142 -0
- package/dist/chunk-7RN3L2BX.js +1788 -0
- package/dist/chunk-7RN3L2BX.js.map +7 -0
- package/dist/chunk-A5AFIW2T.js +14 -0
- package/dist/chunk-A6TQGNDQ.js +421 -0
- package/dist/chunk-A6TQGNDQ.js.map +7 -0
- package/dist/chunk-AIBODF32.js +2784 -0
- package/dist/chunk-AQ4OP4GR.js +39 -0
- package/dist/chunk-AWWW6K2I.js +407 -0
- package/dist/chunk-BAY47D5E.js +226 -0
- package/dist/chunk-CFHKYLDY.js +26 -0
- package/dist/chunk-CJZN7HFL.js +293 -0
- package/dist/chunk-CXOF4UGH.js +229 -0
- package/dist/chunk-D4QFQQWJ.js +170 -0
- package/dist/chunk-DNCSPTOQ.js +446 -0
- package/dist/chunk-DQGSCCI3.js +100 -0
- package/dist/chunk-EWGMLVC7.js +34 -0
- package/dist/chunk-F7PB5HGT.js +148 -0
- package/dist/chunk-FVWCYGJL.js +121 -0
- package/dist/chunk-G7QKLA54.js +92 -0
- package/dist/chunk-HWHG63LH.js +148 -0
- package/dist/chunk-HWHG63LH.js.map +7 -0
- package/dist/chunk-HYZG6OPC.js +467 -0
- package/dist/chunk-HYZG6OPC.js.map +7 -0
- package/dist/chunk-IBBMKCO7.js +526 -0
- package/dist/chunk-IBBMKCO7.js.map +7 -0
- package/dist/chunk-IQUYTZOA.js +455 -0
- package/dist/chunk-IQUYTZOA.js.map +7 -0
- package/dist/chunk-J5RINDKS.js +480 -0
- package/dist/chunk-JMPSZMDD.js +52 -0
- package/dist/chunk-KQMEJUWI.js +815 -0
- package/dist/chunk-KWFEGPZL.js +97 -0
- package/dist/chunk-KWFEGPZL.js.map +7 -0
- package/dist/chunk-L4QG7XZE.js +46 -0
- package/dist/chunk-L4QG7XZE.js.map +7 -0
- package/dist/chunk-LBXZGYU5.js +368 -0
- package/dist/chunk-LI7FE335.js +371 -0
- package/dist/chunk-LRBNYEFI.js +50 -0
- package/dist/chunk-LRBNYEFI.js.map +7 -0
- package/dist/chunk-LRMV5DNW.js +441 -0
- package/dist/chunk-LWNOC7AJ.js +54 -0
- package/dist/chunk-MICNOSX7.js +129 -0
- package/dist/chunk-MLWNMXAV.js +272 -0
- package/dist/chunk-MMBLSLQR.js +158 -0
- package/dist/chunk-N3QEGDEZ.js +117 -0
- package/dist/chunk-N3QEGDEZ.js.map +7 -0
- package/dist/chunk-NV5XWADG.js +1150 -0
- package/dist/chunk-NVB7MQLH.js +20649 -0
- package/dist/chunk-NVB7MQLH.js.map +7 -0
- package/dist/chunk-O3255WPP.js +1087 -0
- package/dist/chunk-OSM7YS23.js +276 -0
- package/dist/chunk-OSM7YS23.js.map +7 -0
- package/dist/chunk-PEWHCKCH.js +1205 -0
- package/dist/chunk-Q7PYFSNU.js +107 -0
- package/dist/chunk-QEZPKEWB.js +1159 -0
- package/dist/chunk-QEZPKEWB.js.map +7 -0
- package/dist/chunk-QMI222IJ.js +386 -0
- package/dist/chunk-QRIRWDIW.js +252 -0
- package/dist/chunk-SEQLC4AD.js +177 -0
- package/dist/chunk-SJTOSA7E.js +629 -0
- package/dist/chunk-SRYFYAXK.js +615 -0
- package/dist/chunk-SSPDNHDW.js +398 -0
- package/dist/chunk-SSPDNHDW.js.map +7 -0
- package/dist/chunk-SYMOQE3X.js +37 -0
- package/dist/chunk-SYMOQE3X.js.map +7 -0
- package/dist/chunk-TITA4HJA.js +228 -0
- package/dist/chunk-TV74I3Y5.js +43 -0
- package/dist/chunk-TV74I3Y5.js.map +7 -0
- package/dist/chunk-U7ZMIMI5.js +2815 -0
- package/dist/chunk-UJU3Q7QJ.js +119 -0
- package/dist/chunk-UL2ISTHR.js +2672 -0
- package/dist/chunk-VIPMLSZP.js +217 -0
- package/dist/chunk-VYIO7T6J.js +82 -0
- package/dist/chunk-VYIO7T6J.js.map +7 -0
- package/dist/chunk-VZPYIG77.js +1271 -0
- package/dist/chunk-W345H42C.js +273 -0
- package/dist/chunk-W345H42C.js.map +7 -0
- package/dist/chunk-WGL6FIUE.js +330 -0
- package/dist/chunk-WGL6FIUE.js.map +7 -0
- package/dist/chunk-WIYKAKWE.js +302 -0
- package/dist/chunk-WJGVQJSX.js +514 -0
- package/dist/chunk-WJGVQJSX.js.map +7 -0
- package/dist/chunk-WPHOEG56.js +194 -0
- package/dist/chunk-WU63AOK2.js +4207 -0
- package/dist/chunk-XS4QWRS3.js +205 -0
- package/dist/chunk-XYFDBYOY.js +1658 -0
- package/dist/chunk-XYFDBYOY.js.map +7 -0
- package/dist/chunk-YDWRIMCT.js +289 -0
- package/dist/chunk-YDWRIMCT.js.map +7 -0
- package/dist/chunk-YK5NFMHR.js +269 -0
- package/dist/chunk-YK5NFMHR.js.map +7 -0
- package/dist/chunk-YSW57QDM.js +6364 -0
- package/dist/chunk-YXQNZPCO.js +203 -0
- package/dist/chunk-YYYJB53A.js +2370 -0
- package/dist/chunk-YYYJB53A.js.map +7 -0
- package/dist/chunk-ZTKQLABY.js +470 -0
- package/dist/condition-AM523RDR.js +330 -0
- package/dist/controls-HTMH5QBP.js +39 -0
- package/dist/controls.config-EEK2RBPI.js +37 -0
- package/dist/correlation-HKD67SPS.js +96 -0
- package/dist/cuminc-66V55MMN.js +1147 -0
- package/dist/cuminc.integration.spec-PNTOPB2L.js +676 -0
- package/dist/customdata.inputui-Z4WQDU6I.js +285 -0
- package/dist/dataDownload-3ZEI22OK.js +328 -0
- package/dist/dataDownload.integration.spec-C3JRC6K5.js +191 -0
- package/dist/databrowser.ui-Q365SHBG.js +419 -0
- package/dist/dictionary-D4E2VEJT.js +109 -0
- package/dist/dictionary-D4E2VEJT.js.map +7 -0
- package/dist/dnaMethylation-IFZWWBUG.js +36 -0
- package/dist/dnaMethylation.integration.spec-UKV4BSIO.js +165 -0
- package/dist/dnaMethylation.integration.spec-UKV4BSIO.js.map +7 -0
- package/dist/e2pca-I3QXF7EM.js +348 -0
- package/dist/ep-2VCQ36GT.js +1254 -0
- package/dist/expclust.gdc.spec-VWIQFY67.js +305 -0
- package/dist/facet-CHP3VUWS.js +519 -0
- package/dist/geneExpClustering-YDIDEH2O.js +246 -0
- package/dist/geneExpression-FA5RJRHZ.js +36 -0
- package/dist/geneExpression-X2KXJPND.js +312 -0
- package/dist/geneExpression.unit.spec-3LVHYZGG.js +100 -0
- package/dist/geneORA-4CAYRKSN.js +276 -0
- package/dist/geneVariant-OCOTNUH4.js +39 -0
- package/dist/geneVariant-Y4L5W5HF.js +37 -0
- package/dist/geneVariant.integration.spec-BOJ5MM5K.js +196 -0
- package/dist/genefusion.ui-I6HZOBIV.js +249 -0
- package/dist/geneset-GEWKDAAT.js +194 -0
- package/dist/genomeBrowser.spec-FDEGH4DY.js +279 -0
- package/dist/grin2-K56B6XBZ.js +1031 -0
- package/dist/grin2-V6FMM44N.js +1554 -0
- package/dist/gsea-UNPPRU2U.js +45 -0
- package/dist/hierCluster-DXAWRQNI.js +58 -0
- package/dist/hierCluster-SPIQA2M2.js +62 -0
- package/dist/hierCluster.config-JW6D3T3Q.js +38 -0
- package/dist/hierCluster.integration.spec-5NXZY4LG.js +374 -0
- package/dist/hierCluster.interactivity-CPPBXHM7.js +52 -0
- package/dist/hierCluster.renderers-A6MEGO2B.js +21 -0
- package/dist/imagePlot-QLAHCULW.js +139 -0
- package/dist/importPlot-6ITZ6U7G.js +8 -0
- package/dist/isoformExpression-7GAUF2QV.js +38 -0
- package/dist/isoformExpression.unit.spec-3BVXVVNO.js +206 -0
- package/dist/isoformExpression.unit.spec-3BVXVVNO.js.map +7 -0
- package/dist/jspdf.es.min-FC3BCETM.js +40 -0
- package/dist/launch.adhoc-HFHBAUR6.js +40 -0
- package/dist/leftlabel.sample-CWPJUCHR.js +257 -0
- package/dist/legacyDataset-PBCPC5I7.js +119 -0
- package/dist/lollipop-QFRQLEER.js +166 -0
- package/dist/maf-OEODBT3Y.js +450 -0
- package/dist/maftimeline-2DFIF4C4.js +591 -0
- package/dist/matrix-3HFB5TUU.js +57 -0
- package/dist/matrix-MIXK27AD.js +62 -0
- package/dist/matrix.cells-U7AQNEBP.js +28 -0
- package/dist/matrix.config-FX5MHX6O.js +39 -0
- package/dist/matrix.controls-5K7BB5Z4.js +37 -0
- package/dist/matrix.data-EEIY6AO4.js +25 -0
- package/dist/matrix.dom-6QL3AJMW.js +11 -0
- package/dist/matrix.groups-CUB6UWC5.js +26 -0
- package/dist/matrix.integration.spec-ML4T7FRG.js +3070 -0
- package/dist/matrix.interactivity-QMPWX63Q.js +40 -0
- package/dist/matrix.layout-7SEF6MYI.js +42 -0
- package/dist/matrix.legend-42LQGAGX.js +22 -0
- package/dist/matrix.renderers-ZF7LLER3.js +36 -0
- package/dist/matrix.serieses-4B2WB526.js +21 -0
- package/dist/matrix.sort-BJACNR7G.js +27 -0
- package/dist/matrix.sort.unit.spec-ZGSM7HDJ.js +470 -0
- package/dist/matrix.sorterUi-W6XFYZY2.js +18 -0
- package/dist/matrix.sorterUi.unit.spec-V34ZZD7A.js +340 -0
- package/dist/mavb-NVQVFU6E.js +730 -0
- package/dist/mds.fimo-HOCF6U6K.js +516 -0
- package/dist/mds.samplescatterplot-ULD5BK5R.js +1548 -0
- package/dist/mds.survivalplot-5US32RQD.js +481 -0
- package/dist/oncomatrix-Y3G3MUJJ.js +293 -0
- package/dist/oncomatrix.spec-MFUJLWEP.js +446 -0
- package/dist/plot.2dvaf-F4WZ4YPU.js +375 -0
- package/dist/plot.app-YFFLLBU5.js +39 -0
- package/dist/plot.barplot-2EJ2MWQD.js +100 -0
- package/dist/plot.boxplot-AKZM443E.js +150 -0
- package/dist/plot.brainImaging-DR6WJNFZ.js +51 -0
- package/dist/plot.disco-LBE5H67U.js +101 -0
- package/dist/plot.disco-LBE5H67U.js.map +7 -0
- package/dist/plot.dzi-R2MR7HAT.js +33 -0
- package/dist/plot.ssgq-C52YIUFY.js +137 -0
- package/dist/plot.vaf2cov-FOD3K7BC.js +257 -0
- package/dist/plot.wsi-D2TXYERK.js +36 -0
- package/dist/polar-2LC35O6K.js +184 -0
- package/dist/polar2-QPUOEUJZ.js +226 -0
- package/dist/profile.spec-3NCDGHLX.js +78 -0
- package/dist/profileBarchart-PPQ3NL4D.js +265 -0
- package/dist/profileForms-GS3VVW65.js +438 -0
- package/dist/profilePlot-DQWFH5NC.js +52 -0
- package/dist/profileRadar-KAKRDC4R.js +261 -0
- package/dist/profileRadarFacility-FZP62VPV.js +261 -0
- package/dist/profileRadarFacility-FZP62VPV.js.map +7 -0
- package/dist/proteinView-LWVWJY54.js +444 -0
- package/dist/proteinView-LWVWJY54.js.map +7 -0
- package/dist/proteomeAbundance-DE4NVBCN.js +21 -0
- package/dist/proteomeAbundance-LTB3QR3G.js +63 -0
- package/dist/qualitative-YOFAROVR.js +41 -0
- package/dist/regression-PF6IAHJK.js +54 -0
- package/dist/regression.inputs-77IUYED3.js +46 -0
- package/dist/regression.inputs.term-WWCHU6KF.js +46 -0
- package/dist/regression.inputs.values.table-I6GM6MU7.js +43 -0
- package/dist/regression.integration.spec-DGEZUURU.js +782 -0
- package/dist/regression.integration.spec-DGEZUURU.js.map +7 -0
- package/dist/regression.results-6GXNKYUS.js +38 -0
- package/dist/regression.spec-MEFQNY34.js +706 -0
- package/dist/report-LG3UKZHL.js +220 -0
- package/dist/sampleScatter.spec-D3IK7MSA.js +200 -0
- package/dist/sampleView-XUI2J5EC.js +46 -0
- package/dist/samplelst-A7IHCBAX.js +109 -0
- package/dist/samplematrix-VGUU7Q75.js +2196 -0
- package/dist/sc-UVKVT2RY.js +84 -0
- package/dist/scatter-UILUYOGO.js +800 -0
- package/dist/scatter.integration.spec-VPNALPUG.js +1194 -0
- package/dist/scatter.integration.spec-VPNALPUG.js.map +7 -0
- package/dist/selectGenomeWithTklst-LWKIMZEJ.js +132 -0
- package/dist/singleCellCellType-TI52WQQ4.js +36 -0
- package/dist/singleCellCellType.unit.spec-R3BTRFRU.js +158 -0
- package/dist/singleCellCellType.unit.spec-R3BTRFRU.js.map +7 -0
- package/dist/singleCellGeneExpression-I5SAHMGI.js +36 -0
- package/dist/singleCellGeneExpression.unit.spec-2JTB5HLY.js +151 -0
- package/dist/singleCellGeneExpression.unit.spec-2JTB5HLY.js.map +7 -0
- package/dist/singleCellPlot-HRWCHYCI.js +51 -0
- package/dist/singlecell-BHPP7KCO.js +1570 -0
- package/dist/singlecell-PQNKBKR7.js +84 -0
- package/dist/snp-V4YGI7B3.js +36 -0
- package/dist/snp.unit.spec-JSUCMGNP.js +174 -0
- package/dist/snplocus-3YT5NNCH.js +206 -0
- package/dist/spliceevent.a53ss.diagram-QEQJ44YH.js +149 -0
- package/dist/spliceevent.exonskip.diagram-HMWVSOJG.js +275 -0
- package/dist/spliceevent.noeventdiagram-L5HUCT5A.js +458 -0
- package/dist/ssGSEA-Z3XRCBYW.js +36 -0
- package/dist/ssGSEA.unit.spec-EUCTV2XJ.js +86 -0
- package/dist/summarizeCnvGeneexp-O7O2CFW4.js +161 -0
- package/dist/summarizeCnvGeneexp-O7O2CFW4.js.map +7 -0
- package/dist/summarizeGeneexpSurvival-DDPH56EI.js +106 -0
- package/dist/summarizeGeneexpSurvival-DDPH56EI.js.map +7 -0
- package/dist/summarizeMutationCnv-6KJQUJWR.js +162 -0
- package/dist/summarizeMutationCnv-6KJQUJWR.js.map +7 -0
- package/dist/summarizeMutationDiagnosis-HFFYLQOF.js +38 -0
- package/dist/summarizeMutationSurvival-OBK6YILP.js +97 -0
- package/dist/summary-W55WWIU2.js +47 -0
- package/dist/summary.integration.spec-X2PNAUKW.js +412 -0
- package/dist/summaryInput-X547Q6C7.js +218 -0
- package/dist/sunburst-KWNGYBRI.js +282 -0
- package/dist/sunburst-KWNGYBRI.js.map +7 -0
- package/dist/survival-PAJZHZPD.js +56 -0
- package/dist/survival-TQPWMOD5.js +44 -0
- package/dist/survival.integration.spec-YMQASOMX.js +800 -0
- package/dist/survival.integration.spec-YMQASOMX.js.map +7 -0
- package/dist/svg2pdf.es.min-CYTPRWNB.js +3157 -0
- package/dist/svgraph-Y35C2M3D.js +1385 -0
- package/dist/svmr-WGCIR7PE.js +3840 -0
- package/dist/table-Q3B2YXEN.js +198 -0
- package/dist/termCollection-A6YTSM5I.js +177 -0
- package/dist/termCollection-NTFNVQ7D.js +36 -0
- package/dist/termCollection.unit.spec-BX54PHKT.js +206 -0
- package/dist/tk-OCBZ7YR6.js +44 -0
- package/dist/tp.ui-ZT47N2CO.js +1457 -0
- package/dist/tvs.density-HSVPDDGA.js +18 -0
- package/dist/tvs.dt-BFB253O3.js +37 -0
- package/dist/tvs.dtcnv.categorical-ARGAYIDO.js +38 -0
- package/dist/tvs.dtcnv.continuous-JCU23ERV.js +70 -0
- package/dist/tvs.dtfusion-FV64XLZI.js +38 -0
- package/dist/tvs.dtsnvindel-DMOXMEVL.js +38 -0
- package/dist/tvs.dtsv-53FSZEPV.js +38 -0
- package/dist/tvs.numeric-ICUGA4WY.js +21 -0
- package/dist/tvs.samplelst-MVPL6VXX.js +102 -0
- package/dist/tvs.termCollection-UGJXTHTG.js +151 -0
- package/dist/violin-ZLUDGSQG.js +44 -0
- package/dist/violin.integration.spec-KWOFOFLT.js +1423 -0
- package/dist/violin.integration.spec-KWOFOFLT.js.map +7 -0
- package/dist/violin.interactivity-ULDOCZWW.js +36 -0
- package/dist/violin.renderer-KJAXPMIK.js +38 -0
- package/dist/vocabulary-34YUQ4ZQ.js +39 -0
- package/package.json +3 -3
- package/dist/2dmaf-SLBAWGPG.js +0 -1371
- package/dist/AIProjectAdmin-6SH5X3AF.js +0 -830
- package/dist/AIProjectAdmin-6SH5X3AF.js.map +0 -7
- package/dist/AppHeader-MVYNRMC7.js +0 -833
- package/dist/BoxPlot-HLGWW3IK.js +0 -1295
- package/dist/BoxPlot-HLGWW3IK.js.map +0 -7
- package/dist/CorrelationVolcano-TZCYC3NI.js +0 -617
- package/dist/DE-2J2SK5UT.js +0 -93
- package/dist/DEinput-QM3GOQHM.js +0 -297
- package/dist/DifferentialAnalysis-DS7CQOT6.js +0 -238
- package/dist/Disco-U5I6NJUT.js +0 -3199
- package/dist/Disco-U5I6NJUT.js.map +0 -7
- package/dist/Disco.UI-J2B7GGEZ.js +0 -242
- package/dist/DmrPlot-D5W76QPY.js +0 -640
- package/dist/GB-LM5SGUG4.js +0 -1125
- package/dist/HicApp-YNBGAGKM.js +0 -2248
- package/dist/NumBinaryEditor-4QA5DQJT.js +0 -268
- package/dist/NumBinaryEditor.unit.spec-YWSIFTOJ.js +0 -284
- package/dist/NumContEditor-ZPLVZFLH.js +0 -105
- package/dist/NumContEditor.unit.spec-NBCFOCOX.js +0 -167
- package/dist/NumCustomBinEditor-TXEYRVPL.js +0 -36
- package/dist/NumCustomBinEditor.unit.spec-SQM63H4B.js +0 -282
- package/dist/NumDiscreteEditor-6C4OWX62.js +0 -177
- package/dist/NumDiscreteEditor.unit.spec-4HC4AGAM.js +0 -200
- package/dist/NumRegularBinEditor-VQAS3OXK.js +0 -36
- package/dist/NumRegularBinEditor.unit.spec-RGVEPB3Z.js +0 -225
- package/dist/NumSplineEditor-SXOJICHU.js +0 -190
- package/dist/NumSplineEditor.unit.spec-HF5E6ANH.js +0 -197
- package/dist/NumericDensity-LMLPMOSE.js +0 -36
- package/dist/NumericDensity.unit.spec-3ZI5EVON.js +0 -219
- package/dist/NumericHandler-Q6F6ANOS.js +0 -37
- package/dist/NumericHandler.unit.spec-E6Z5HUNZ.js +0 -217
- package/dist/RunChart2-XSNWNAIL.js +0 -756
- package/dist/RunChart2-XSNWNAIL.js.map +0 -7
- package/dist/SC-RA46YM57.js +0 -733
- package/dist/SC-RA46YM57.js.map +0 -7
- package/dist/Volcano-75UDYPVB.js +0 -1187
- package/dist/Volcano-75UDYPVB.js.map +0 -7
- package/dist/WSIViewer-GYUUXCSJ.js +0 -47933
- package/dist/WSIViewer-GYUUXCSJ.js.map +0 -7
- package/dist/WsiSamplesPlot-KMI5S2EL.js +0 -163
- package/dist/adSandbox-JTK5XEQL.js +0 -36
- package/dist/alphaGenome-JRAV6WIY.js +0 -173
- package/dist/app-JKDZL23V.js +0 -35
- package/dist/app-OEARXM6E.js +0 -47
- package/dist/bam-CYEPLBK4.js +0 -857
- package/dist/barchart-GG5UFDG4.js +0 -45
- package/dist/barchart.data-KXA66FAL.js +0 -22
- package/dist/barchart.events-P2USOIR7.js +0 -45
- package/dist/barchart.integration.spec-5QSPQQLJ.js +0 -1675
- package/dist/bars.renderer-T5R3UIBW.js +0 -12
- package/dist/block-6DVPQBSH.js +0 -6200
- package/dist/block-6DVPQBSH.js.map +0 -7
- package/dist/block.init-ZHX6DFWF.js +0 -36
- package/dist/block.mds.expressionrank-YMGYXXYT.js +0 -357
- package/dist/block.mds.geneboxplot-IAILQYX4.js +0 -826
- package/dist/block.mds.junction-BRNFNQMU.js +0 -1543
- package/dist/block.mds.svcnv-OHKC7YPO.js +0 -6799
- package/dist/block.svg-PNGK45HW.js +0 -162
- package/dist/block.tk.aicheck-SCIOJ4WN.js +0 -281
- package/dist/block.tk.ase-BABJ73GG.js +0 -363
- package/dist/block.tk.bam-LZWJ5BCQ.js +0 -1904
- package/dist/block.tk.bedgraphdot-7NQLC3XJ.js +0 -382
- package/dist/block.tk.bigwig.ui-VNY4SFD5.js +0 -209
- package/dist/block.tk.hicstraw-36A7VDRM.js +0 -821
- package/dist/block.tk.junction-D373YEMK.js +0 -2362
- package/dist/block.tk.junction.textmatrixui-FFII7J3X.js +0 -197
- package/dist/block.tk.ld-XGB6KMDO.js +0 -97
- package/dist/block.tk.menu-PEZANZBZ.js +0 -1027
- package/dist/block.tk.pgv-MU5BPTT2.js +0 -942
- package/dist/brainImaging-LVJON47N.js +0 -421
- package/dist/chat-5FDIAQJ4.js +0 -148
- package/dist/chunk-22NJUYET.js +0 -281
- package/dist/chunk-22NJUYET.js.map +0 -7
- package/dist/chunk-2J3566TA.js +0 -215
- package/dist/chunk-2OSEZCWZ.js +0 -205
- package/dist/chunk-2SRMRC6L.js +0 -421
- package/dist/chunk-2SRMRC6L.js.map +0 -7
- package/dist/chunk-5OHXYXLD.js +0 -46
- package/dist/chunk-5OHXYXLD.js.map +0 -7
- package/dist/chunk-6MSCYO7K.js +0 -119
- package/dist/chunk-75EBDB7G.js +0 -21
- package/dist/chunk-75EBDB7G.js.map +0 -7
- package/dist/chunk-7A7NMCQ3.js +0 -534
- package/dist/chunk-7FEHI46K.js +0 -20456
- package/dist/chunk-7FEHI46K.js.map +0 -7
- package/dist/chunk-AETE4F7R.js +0 -252
- package/dist/chunk-AZYDW5T7.js +0 -441
- package/dist/chunk-B6HCIAM3.js +0 -34
- package/dist/chunk-BEWDIM6H.js +0 -42
- package/dist/chunk-BEWDIM6H.js.map +0 -7
- package/dist/chunk-CCIZJAXB.js +0 -2815
- package/dist/chunk-DHZL3FBC.js +0 -107
- package/dist/chunk-DONWY7TP.js +0 -39
- package/dist/chunk-DVDDXOWT.js +0 -815
- package/dist/chunk-E6DRQJJT.js +0 -480
- package/dist/chunk-ESKU6LNC.js +0 -36
- package/dist/chunk-ESKU6LNC.js.map +0 -7
- package/dist/chunk-F6V4AYWP.js +0 -177
- package/dist/chunk-FBAJTPBU.js +0 -302
- package/dist/chunk-FGMPKWT5.js +0 -371
- package/dist/chunk-FK4MYVW2.js +0 -261
- package/dist/chunk-FK4MYVW2.js.map +0 -7
- package/dist/chunk-FMBJ4SKC.js +0 -98
- package/dist/chunk-FMBJ4SKC.js.map +0 -7
- package/dist/chunk-FOEZG4VX.js +0 -505
- package/dist/chunk-FOEZG4VX.js.map +0 -7
- package/dist/chunk-FQRLSKJC.js +0 -226
- package/dist/chunk-G6ELKVBG.js +0 -629
- package/dist/chunk-GKK3CZ6H.js +0 -4207
- package/dist/chunk-GO5SIPFE.js +0 -194
- package/dist/chunk-GPOECA3V.js +0 -386
- package/dist/chunk-GTOY3JJO.js +0 -288
- package/dist/chunk-GTOY3JJO.js.map +0 -7
- package/dist/chunk-GW7DHJYH.js +0 -439
- package/dist/chunk-GW7DHJYH.js.map +0 -7
- package/dist/chunk-H2D7EVUA.js +0 -158
- package/dist/chunk-H2K5KZP7.js +0 -95
- package/dist/chunk-H5XFH3FV.js +0 -153
- package/dist/chunk-H5XFH3FV.js.map +0 -7
- package/dist/chunk-HAMDFQIX.js +0 -228
- package/dist/chunk-HH4QLSTK.js +0 -4952
- package/dist/chunk-IBTPGSYI.js +0 -526
- package/dist/chunk-IBTPGSYI.js.map +0 -7
- package/dist/chunk-IC7SUXJD.js +0 -82
- package/dist/chunk-IC7SUXJD.js.map +0 -7
- package/dist/chunk-IGEQI6MR.js +0 -1561
- package/dist/chunk-IGEQI6MR.js.map +0 -7
- package/dist/chunk-IIRU6VK2.js +0 -2672
- package/dist/chunk-ILF2GKBY.js +0 -1205
- package/dist/chunk-IP4T477W.js +0 -92
- package/dist/chunk-IQIXGTQV.js +0 -84
- package/dist/chunk-IQIXGTQV.js.map +0 -7
- package/dist/chunk-IXT4U5CE.js +0 -91
- package/dist/chunk-IXT4U5CE.js.map +0 -7
- package/dist/chunk-JHOGX5VE.js +0 -272
- package/dist/chunk-JOXUBWN3.js +0 -381
- package/dist/chunk-K57RR3FD.js +0 -142
- package/dist/chunk-K6JLCMVL.js +0 -129
- package/dist/chunk-KISFQDQE.js +0 -258
- package/dist/chunk-KISFQDQE.js.map +0 -7
- package/dist/chunk-KSFSM46X.js +0 -100
- package/dist/chunk-KVG7FTTK.js +0 -470
- package/dist/chunk-LEDPPLQK.js +0 -158
- package/dist/chunk-LUTT3MBZ.js +0 -1150
- package/dist/chunk-MDL2HG3N.js +0 -257
- package/dist/chunk-MDL2HG3N.js.map +0 -7
- package/dist/chunk-MNRYCG2S.js +0 -1271
- package/dist/chunk-MPJHDHBA.js +0 -2784
- package/dist/chunk-MXI3NXRB.js +0 -407
- package/dist/chunk-O4PXELXF.js +0 -615
- package/dist/chunk-ORPCSG6T.js +0 -14
- package/dist/chunk-OUKDZKSZ.js +0 -334
- package/dist/chunk-OUKDZKSZ.js.map +0 -7
- package/dist/chunk-P5HLYAHP.js +0 -1087
- package/dist/chunk-PIACSJPH.js +0 -148
- package/dist/chunk-PQABAAEZ.js +0 -31
- package/dist/chunk-PSMDCZET.js +0 -46
- package/dist/chunk-PSMDCZET.js.map +0 -7
- package/dist/chunk-RFIVPTMS.js +0 -217
- package/dist/chunk-RSU37SVQ.js +0 -54
- package/dist/chunk-RTC4U4PH.js +0 -2327
- package/dist/chunk-RTC4U4PH.js.map +0 -7
- package/dist/chunk-RZ5JP44H.js +0 -276
- package/dist/chunk-RZ5JP44H.js.map +0 -7
- package/dist/chunk-SPAIFVM2.js +0 -1155
- package/dist/chunk-SPAIFVM2.js.map +0 -7
- package/dist/chunk-T2HYA2KL.js +0 -55
- package/dist/chunk-TCPU43TU.js +0 -1741
- package/dist/chunk-TCPU43TU.js.map +0 -7
- package/dist/chunk-TE3DK3A6.js +0 -147
- package/dist/chunk-TIQPSXFJ.js +0 -237
- package/dist/chunk-TIQPSXFJ.js.map +0 -7
- package/dist/chunk-TN5GSG34.js +0 -26
- package/dist/chunk-UBGTQMOO.js +0 -52
- package/dist/chunk-UBS5UVIY.js +0 -13624
- package/dist/chunk-UE5ZYM63.js +0 -48
- package/dist/chunk-UE5ZYM63.js.map +0 -7
- package/dist/chunk-UQACPOCM.js +0 -102
- package/dist/chunk-UR3C4SCH.js +0 -446
- package/dist/chunk-UWX7W22M.js +0 -121
- package/dist/chunk-VJ37HKM6.js +0 -368
- package/dist/chunk-VLTDUJRM.js +0 -293
- package/dist/chunk-W6UUEAEP.js +0 -6364
- package/dist/chunk-X6UPDFDX.js +0 -229
- package/dist/chunk-XD6BFNMR.js +0 -172
- package/dist/chunk-XD6BFNMR.js.map +0 -7
- package/dist/chunk-XDI4UFCZ.js +0 -467
- package/dist/chunk-XDI4UFCZ.js.map +0 -7
- package/dist/chunk-XOBD3EAM.js +0 -1425
- package/dist/chunk-XOBD3EAM.js.map +0 -7
- package/dist/chunk-Y3TDC7NU.js +0 -170
- package/dist/chunk-YOTWMCT5.js +0 -824
- package/dist/chunk-YUMPQ3CJ.js +0 -203
- package/dist/chunk-ZIBWLDQI.js +0 -230
- package/dist/chunk-ZIBWLDQI.js.map +0 -7
- package/dist/condition-VHP2L4GM.js +0 -330
- package/dist/controls-N5Q7U7JR.js +0 -39
- package/dist/controls.config-NJMW4SLR.js +0 -37
- package/dist/correlation-3LDASF5I.js +0 -96
- package/dist/cuminc-UWJ23W6C.js +0 -1147
- package/dist/cuminc.integration.spec-OZYYET3W.js +0 -676
- package/dist/customdata.inputui-2FVCVSE4.js +0 -285
- package/dist/dataDownload-4S4PE5HX.js +0 -328
- package/dist/dataDownload.integration.spec-B57LEKFZ.js +0 -191
- package/dist/databrowser.ui-N6GHEQ2P.js +0 -419
- package/dist/dictionary-UP46QRYZ.js +0 -98
- package/dist/dictionary-UP46QRYZ.js.map +0 -7
- package/dist/dnaMethylation-BOGAUAWA.js +0 -36
- package/dist/dnaMethylation.integration.spec-UAHBJSSJ.js +0 -179
- package/dist/dnaMethylation.integration.spec-UAHBJSSJ.js.map +0 -7
- package/dist/e2pca-L5EBQJNP.js +0 -348
- package/dist/ep-Z67ORKUX.js +0 -1254
- package/dist/expclust.gdc.spec-SP7VOL64.js +0 -305
- package/dist/facet-HDB4VDGU.js +0 -519
- package/dist/geneExpClustering-6ZPOLTDJ.js +0 -246
- package/dist/geneExpression-T6YIG4XQ.js +0 -312
- package/dist/geneExpression-T7QUHV5S.js +0 -36
- package/dist/geneExpression.unit.spec-DO52L5IB.js +0 -100
- package/dist/geneORA-KOUDUWUO.js +0 -276
- package/dist/geneVariant-FVR76F6I.js +0 -39
- package/dist/geneVariant-I5QUITKG.js +0 -37
- package/dist/geneVariant.integration.spec-D4IRM7B5.js +0 -196
- package/dist/genefusion.ui-35IYSZD7.js +0 -249
- package/dist/geneset-7ZHJ5KWK.js +0 -194
- package/dist/genomeBrowser.spec-VXASVLNH.js +0 -279
- package/dist/grin2-7NM56COO.js +0 -1554
- package/dist/grin2-IY26UUQI.js +0 -1031
- package/dist/gsea-TORO46C6.js +0 -45
- package/dist/hierCluster-3BKEGW6P.js +0 -58
- package/dist/hierCluster-HM3LOM6V.js +0 -62
- package/dist/hierCluster.config-LDO5IGQ5.js +0 -38
- package/dist/hierCluster.integration.spec-XO5R6CQT.js +0 -374
- package/dist/hierCluster.interactivity-NVQ6262K.js +0 -52
- package/dist/hierCluster.renderers-SWPPNBLU.js +0 -21
- package/dist/imagePlot-V4WLAPV6.js +0 -139
- package/dist/importPlot-NZKQEOX4.js +0 -8
- package/dist/isoformExpression-TIZBIGNL.js +0 -38
- package/dist/isoformExpression.unit.spec-WHH5LPFG.js +0 -124
- package/dist/isoformExpression.unit.spec-WHH5LPFG.js.map +0 -7
- package/dist/jspdf.es.min-DO4YWL2R.js +0 -40
- package/dist/launch.adhoc-JYEN42NM.js +0 -40
- package/dist/leftlabel.sample-43DL3J3H.js +0 -257
- package/dist/legacyDataset-QRSNRVUA.js +0 -119
- package/dist/lollipop-NMWZ4FVF.js +0 -166
- package/dist/maf-DS3EOVGV.js +0 -450
- package/dist/maftimeline-ZB2753S7.js +0 -591
- package/dist/matrix-RCGQWQ3C.js +0 -57
- package/dist/matrix-WTTEK4FT.js +0 -62
- package/dist/matrix.cells-UO5ASQ35.js +0 -28
- package/dist/matrix.config-3UQAT3QR.js +0 -39
- package/dist/matrix.controls-PRZ77K5L.js +0 -37
- package/dist/matrix.data-4W73RQ3H.js +0 -25
- package/dist/matrix.dom-IZFFS4RQ.js +0 -11
- package/dist/matrix.groups-5VMPI7SA.js +0 -26
- package/dist/matrix.integration.spec-2F5LDLC2.js +0 -3070
- package/dist/matrix.interactivity-MIPZ6ELV.js +0 -40
- package/dist/matrix.layout-EO5LVYRO.js +0 -42
- package/dist/matrix.legend-QBFBFEUG.js +0 -22
- package/dist/matrix.renderers-ERJXVCQL.js +0 -36
- package/dist/matrix.serieses-E23EPXHA.js +0 -21
- package/dist/matrix.sort-I4UGMEXR.js +0 -27
- package/dist/matrix.sort.unit.spec-CRGF6CSE.js +0 -470
- package/dist/matrix.sorterUi-YLSYTYLE.js +0 -18
- package/dist/matrix.sorterUi.unit.spec-ENG3ICOO.js +0 -340
- package/dist/mavb-5WR7OJHI.js +0 -730
- package/dist/mds.fimo-3ZRH7BBJ.js +0 -516
- package/dist/mds.samplescatterplot-RPXR2FVK.js +0 -1548
- package/dist/mds.survivalplot-WSSMYUZD.js +0 -481
- package/dist/oncomatrix-JKYPUJQR.js +0 -293
- package/dist/oncomatrix.spec-OEGU4DYK.js +0 -446
- package/dist/plot.2dvaf-ZGARLQNK.js +0 -375
- package/dist/plot.app-TKUJH3LK.js +0 -39
- package/dist/plot.barplot-FEIPGDZ2.js +0 -100
- package/dist/plot.boxplot-6RASUMZB.js +0 -150
- package/dist/plot.brainImaging-ZJPFWX2W.js +0 -51
- package/dist/plot.disco-2KTKB3XX.js +0 -101
- package/dist/plot.disco-2KTKB3XX.js.map +0 -7
- package/dist/plot.dzi-PC34YI6Y.js +0 -33
- package/dist/plot.ssgq-Z4UNJKWO.js +0 -137
- package/dist/plot.vaf2cov-NZ4WULKT.js +0 -257
- package/dist/plot.wsi-YYXFAZWY.js +0 -36
- package/dist/polar-X2GPIBLB.js +0 -184
- package/dist/polar2-TZ553QQH.js +0 -226
- package/dist/profile.spec-VB6VMFLY.js +0 -78
- package/dist/profileBarchart-SKJSTC7B.js +0 -265
- package/dist/profileForms-RLOGSMAQ.js +0 -438
- package/dist/profilePlot-267ZS3RG.js +0 -52
- package/dist/profileRadar-KGOBHCSF.js +0 -261
- package/dist/profileRadarFacility-MCJKSHUM.js +0 -261
- package/dist/profileRadarFacility-MCJKSHUM.js.map +0 -7
- package/dist/proteomeAbundance-JUYAYO5I.js +0 -63
- package/dist/proteomeAbundance-PGHZSVAF.js +0 -19
- package/dist/qualitative-3IECKKJM.js +0 -41
- package/dist/regression-J6FFRPXN.js +0 -54
- package/dist/regression.inputs-T7LWBSYZ.js +0 -46
- package/dist/regression.inputs.term-TT7PNX6G.js +0 -46
- package/dist/regression.inputs.values.table-SHFUNKCS.js +0 -43
- package/dist/regression.integration.spec-QKHMJTHA.js +0 -784
- package/dist/regression.integration.spec-QKHMJTHA.js.map +0 -7
- package/dist/regression.results-D4WX6VIV.js +0 -38
- package/dist/regression.spec-7SW55L7X.js +0 -706
- package/dist/report-QYOZ4BRF.js +0 -220
- package/dist/sampleScatter.spec-JCHFMGNF.js +0 -200
- package/dist/sampleView-7RPKNAZC.js +0 -46
- package/dist/samplelst-4WNPHZVG.js +0 -109
- package/dist/samplematrix-CG52DSXJ.js +0 -2196
- package/dist/sc-OJSWILSA.js +0 -84
- package/dist/scatter-LG2RMMEC.js +0 -800
- package/dist/scatter.integration.spec-QPANYTKW.js +0 -1194
- package/dist/scatter.integration.spec-QPANYTKW.js.map +0 -7
- package/dist/selectGenomeWithTklst-QXRVE6N4.js +0 -132
- package/dist/singleCellCellType-XBSRL33U.js +0 -36
- package/dist/singleCellCellType.unit.spec-YZX4CSXA.js +0 -177
- package/dist/singleCellCellType.unit.spec-YZX4CSXA.js.map +0 -7
- package/dist/singleCellGeneExpression-64ECP62X.js +0 -36
- package/dist/singleCellGeneExpression.unit.spec-CFHFXMA6.js +0 -163
- package/dist/singleCellGeneExpression.unit.spec-CFHFXMA6.js.map +0 -7
- package/dist/singleCellPlot-E5F62JY6.js +0 -51
- package/dist/singlecell-FCY5EOUV.js +0 -84
- package/dist/singlecell-S7B5V7NK.js +0 -1570
- package/dist/snp-ACKX4GRX.js +0 -36
- package/dist/snp.unit.spec-QBGHKKUD.js +0 -174
- package/dist/snplocus-7EUOW7J7.js +0 -206
- package/dist/spliceevent.a53ss.diagram-ALQZA35Z.js +0 -149
- package/dist/spliceevent.exonskip.diagram-UF7WJA5R.js +0 -275
- package/dist/spliceevent.noeventdiagram-4HPGRNRR.js +0 -458
- package/dist/ssGSEA-FDRBBBLJ.js +0 -36
- package/dist/ssGSEA.unit.spec-EZEOWJVV.js +0 -86
- package/dist/summarizeCnvGeneexp-FTL2MGAJ.js +0 -158
- package/dist/summarizeCnvGeneexp-FTL2MGAJ.js.map +0 -7
- package/dist/summarizeGeneexpSurvival-DDIF4UW6.js +0 -105
- package/dist/summarizeGeneexpSurvival-DDIF4UW6.js.map +0 -7
- package/dist/summarizeMutationCnv-L3GL5YDY.js +0 -159
- package/dist/summarizeMutationCnv-L3GL5YDY.js.map +0 -7
- package/dist/summarizeMutationDiagnosis-LALOJTHV.js +0 -38
- package/dist/summarizeMutationSurvival-TSNTSOBZ.js +0 -97
- package/dist/summary-YRHVS64T.js +0 -47
- package/dist/summary.integration.spec-766YQLQA.js +0 -412
- package/dist/summaryInput-VQ2X6GSX.js +0 -218
- package/dist/sunburst-XFOONS6K.js +0 -282
- package/dist/sunburst-XFOONS6K.js.map +0 -7
- package/dist/survival-FQXZH2MM.js +0 -44
- package/dist/survival-TVA3ZWVP.js +0 -56
- package/dist/survival.integration.spec-WFIOPD6A.js +0 -787
- package/dist/survival.integration.spec-WFIOPD6A.js.map +0 -7
- package/dist/svg2pdf.es.min-EZ4UYRSH.js +0 -3157
- package/dist/svgraph-4BFBO7EL.js +0 -1385
- package/dist/svmr-ML7GAIIA.js +0 -3840
- package/dist/table-SMLMUWPP.js +0 -198
- package/dist/termCollection-22CPTISZ.js +0 -36
- package/dist/termCollection-EE6AOIVA.js +0 -177
- package/dist/termCollection.unit.spec-4DIW3CJ3.js +0 -206
- package/dist/tk-ITZCKOQ5.js +0 -44
- package/dist/tp.ui-R6HVKCBC.js +0 -1457
- package/dist/tvs.density-AQ5GD437.js +0 -18
- package/dist/tvs.dt-2263TBEJ.js +0 -37
- package/dist/tvs.dtcnv.categorical-TRRHL33N.js +0 -38
- package/dist/tvs.dtcnv.continuous-GREYNF52.js +0 -70
- package/dist/tvs.dtfusion-XOX46L3M.js +0 -38
- package/dist/tvs.dtsnvindel-IDMXT53F.js +0 -38
- package/dist/tvs.dtsv-ZDWFYH2C.js +0 -38
- package/dist/tvs.numeric-ZN2R7BH3.js +0 -21
- package/dist/tvs.samplelst-GAP76HRH.js +0 -102
- package/dist/tvs.termCollection-GQ65UKSI.js +0 -151
- package/dist/violin-JGDL62YA.js +0 -44
- package/dist/violin.integration.spec-W4NN7LBY.js +0 -1417
- package/dist/violin.integration.spec-W4NN7LBY.js.map +0 -7
- package/dist/violin.interactivity-H4RP4K5U.js +0 -36
- package/dist/violin.renderer-QPHLACDC.js +0 -38
- package/dist/vocabulary-7JACY4J2.js +0 -39
- /package/dist/{2dmaf-SLBAWGPG.js.map → 2dmaf-YHYYSSKR.js.map} +0 -0
- /package/dist/{AppHeader-MVYNRMC7.js.map → AppHeader-T4ZLY3VG.js.map} +0 -0
- /package/dist/{CorrelationVolcano-TZCYC3NI.js.map → CorrelationVolcano-EXH4P56S.js.map} +0 -0
- /package/dist/{DE-2J2SK5UT.js.map → DE-C5K2TVUQ.js.map} +0 -0
- /package/dist/{DEinput-QM3GOQHM.js.map → DEinput-KVILE7QQ.js.map} +0 -0
- /package/dist/{DifferentialAnalysis-DS7CQOT6.js.map → DifferentialAnalysis-P6GKHAS5.js.map} +0 -0
- /package/dist/{Disco.UI-J2B7GGEZ.js.map → Disco.UI-4A2P5Q55.js.map} +0 -0
- /package/dist/{DmrPlot-D5W76QPY.js.map → DmrPlot-6EEEGD32.js.map} +0 -0
- /package/dist/{GB-LM5SGUG4.js.map → GB-XFO5I6ND.js.map} +0 -0
- /package/dist/{HicApp-YNBGAGKM.js.map → HicApp-3LFHOOAR.js.map} +0 -0
- /package/dist/{NumBinaryEditor-4QA5DQJT.js.map → NumBinaryEditor-74PY52BP.js.map} +0 -0
- /package/dist/{NumBinaryEditor.unit.spec-YWSIFTOJ.js.map → NumBinaryEditor.unit.spec-2PYZ7P2R.js.map} +0 -0
- /package/dist/{NumContEditor-ZPLVZFLH.js.map → NumContEditor-BMWALLQM.js.map} +0 -0
- /package/dist/{NumContEditor.unit.spec-NBCFOCOX.js.map → NumContEditor.unit.spec-ETVLVX6A.js.map} +0 -0
- /package/dist/{NumCustomBinEditor-TXEYRVPL.js.map → NumCustomBinEditor-2XJ6GUWY.js.map} +0 -0
- /package/dist/{NumCustomBinEditor.unit.spec-SQM63H4B.js.map → NumCustomBinEditor.unit.spec-TZVL553E.js.map} +0 -0
- /package/dist/{NumDiscreteEditor-6C4OWX62.js.map → NumDiscreteEditor-4LNLKAXT.js.map} +0 -0
- /package/dist/{NumDiscreteEditor.unit.spec-4HC4AGAM.js.map → NumDiscreteEditor.unit.spec-KQND2XAE.js.map} +0 -0
- /package/dist/{NumRegularBinEditor-VQAS3OXK.js.map → NumRegularBinEditor-OYELFDIB.js.map} +0 -0
- /package/dist/{NumRegularBinEditor.unit.spec-RGVEPB3Z.js.map → NumRegularBinEditor.unit.spec-44SALKLH.js.map} +0 -0
- /package/dist/{NumSplineEditor-SXOJICHU.js.map → NumSplineEditor-SENQC4P2.js.map} +0 -0
- /package/dist/{NumSplineEditor.unit.spec-HF5E6ANH.js.map → NumSplineEditor.unit.spec-XKB4XXU4.js.map} +0 -0
- /package/dist/{NumericDensity-LMLPMOSE.js.map → NumericDensity-GCNWO7YS.js.map} +0 -0
- /package/dist/{NumericDensity.unit.spec-3ZI5EVON.js.map → NumericDensity.unit.spec-7LWNOUYK.js.map} +0 -0
- /package/dist/{NumericHandler-Q6F6ANOS.js.map → NumericHandler-EMQBI5UI.js.map} +0 -0
- /package/dist/{NumericHandler.unit.spec-E6Z5HUNZ.js.map → NumericHandler.unit.spec-TEELPRIM.js.map} +0 -0
- /package/dist/{WsiSamplesPlot-KMI5S2EL.js.map → WsiSamplesPlot-B2DM7Z3Q.js.map} +0 -0
- /package/dist/{adSandbox-JTK5XEQL.js.map → adSandbox-INF3NNEV.js.map} +0 -0
- /package/dist/{alphaGenome-JRAV6WIY.js.map → alphaGenome-CO4TQHXN.js.map} +0 -0
- /package/dist/{app-JKDZL23V.js.map → app-63JU2YIT.js.map} +0 -0
- /package/dist/{app-OEARXM6E.js.map → app-BL3POUOO.js.map} +0 -0
- /package/dist/{bam-CYEPLBK4.js.map → bam-SVEJYICC.js.map} +0 -0
- /package/dist/{barchart-GG5UFDG4.js.map → barchart-PDUXZAIH.js.map} +0 -0
- /package/dist/{barchart.data-KXA66FAL.js.map → barchart.data-EXENRVMU.js.map} +0 -0
- /package/dist/{barchart.events-P2USOIR7.js.map → barchart.events-MQNQTSWI.js.map} +0 -0
- /package/dist/{barchart.integration.spec-5QSPQQLJ.js.map → barchart.integration.spec-DSO2377T.js.map} +0 -0
- /package/dist/{bars.renderer-T5R3UIBW.js.map → bars.renderer-S7A7I6BQ.js.map} +0 -0
- /package/dist/{block.init-ZHX6DFWF.js.map → block.init-7J5OHYKA.js.map} +0 -0
- /package/dist/{block.mds.expressionrank-YMGYXXYT.js.map → block.mds.expressionrank-643H7PN7.js.map} +0 -0
- /package/dist/{block.mds.geneboxplot-IAILQYX4.js.map → block.mds.geneboxplot-C222ODSL.js.map} +0 -0
- /package/dist/{block.mds.junction-BRNFNQMU.js.map → block.mds.junction-C5DJRUOK.js.map} +0 -0
- /package/dist/{block.mds.svcnv-OHKC7YPO.js.map → block.mds.svcnv-4G74JQ7Y.js.map} +0 -0
- /package/dist/{block.svg-PNGK45HW.js.map → block.svg-35KUC5R7.js.map} +0 -0
- /package/dist/{block.tk.aicheck-SCIOJ4WN.js.map → block.tk.aicheck-LLWT6K6H.js.map} +0 -0
- /package/dist/{block.tk.ase-BABJ73GG.js.map → block.tk.ase-PQUKY65E.js.map} +0 -0
- /package/dist/{block.tk.bam-LZWJ5BCQ.js.map → block.tk.bam-EUEOB7BR.js.map} +0 -0
- /package/dist/{block.tk.bedgraphdot-7NQLC3XJ.js.map → block.tk.bedgraphdot-XAHUY545.js.map} +0 -0
- /package/dist/{block.tk.bigwig.ui-VNY4SFD5.js.map → block.tk.bigwig.ui-HEOPNL3T.js.map} +0 -0
- /package/dist/{block.tk.hicstraw-36A7VDRM.js.map → block.tk.hicstraw-EPH3LEX2.js.map} +0 -0
- /package/dist/{block.tk.junction-D373YEMK.js.map → block.tk.junction-MIUDAIAR.js.map} +0 -0
- /package/dist/{block.tk.junction.textmatrixui-FFII7J3X.js.map → block.tk.junction.textmatrixui-AVFUQBDS.js.map} +0 -0
- /package/dist/{block.tk.ld-XGB6KMDO.js.map → block.tk.ld-ED7YMBQ4.js.map} +0 -0
- /package/dist/{block.tk.menu-PEZANZBZ.js.map → block.tk.menu-3CVIECWQ.js.map} +0 -0
- /package/dist/{block.tk.pgv-MU5BPTT2.js.map → block.tk.pgv-HETJVWXH.js.map} +0 -0
- /package/dist/{brainImaging-LVJON47N.js.map → brainImaging-K3LHK3DD.js.map} +0 -0
- /package/dist/{chat-5FDIAQJ4.js.map → chat-BYX5ARUK.js.map} +0 -0
- /package/dist/{chunk-PQABAAEZ.js.map → chunk-2LULD7RN.js.map} +0 -0
- /package/dist/{chunk-H2D7EVUA.js.map → chunk-2TJESM3Z.js.map} +0 -0
- /package/dist/{chunk-UQACPOCM.js.map → chunk-2VFYZ3EY.js.map} +0 -0
- /package/dist/{chunk-HH4QLSTK.js.map → chunk-3CD5ZROA.js.map} +0 -0
- /package/dist/{chunk-JOXUBWN3.js.map → chunk-3DCABJHB.js.map} +0 -0
- /package/dist/{chunk-H2K5KZP7.js.map → chunk-3MMKHYUM.js.map} +0 -0
- /package/dist/{chunk-T2HYA2KL.js.map → chunk-3PRPMJTG.js.map} +0 -0
- /package/dist/{chunk-TE3DK3A6.js.map → chunk-5HCB4HNL.js.map} +0 -0
- /package/dist/{chunk-2J3566TA.js.map → chunk-5JD4D5GD.js.map} +0 -0
- /package/dist/{chunk-7A7NMCQ3.js.map → chunk-5UMPBVA6.js.map} +0 -0
- /package/dist/{chunk-UBS5UVIY.js.map → chunk-6LAE5AVA.js.map} +0 -0
- /package/dist/{chunk-YOTWMCT5.js.map → chunk-7FTDQDVF.js.map} +0 -0
- /package/dist/{chunk-K57RR3FD.js.map → chunk-7IEZ2KMW.js.map} +0 -0
- /package/dist/{chunk-ORPCSG6T.js.map → chunk-A5AFIW2T.js.map} +0 -0
- /package/dist/{chunk-MPJHDHBA.js.map → chunk-AIBODF32.js.map} +0 -0
- /package/dist/{chunk-DONWY7TP.js.map → chunk-AQ4OP4GR.js.map} +0 -0
- /package/dist/{chunk-MXI3NXRB.js.map → chunk-AWWW6K2I.js.map} +0 -0
- /package/dist/{chunk-FQRLSKJC.js.map → chunk-BAY47D5E.js.map} +0 -0
- /package/dist/{chunk-TN5GSG34.js.map → chunk-CFHKYLDY.js.map} +0 -0
- /package/dist/{chunk-VLTDUJRM.js.map → chunk-CJZN7HFL.js.map} +0 -0
- /package/dist/{chunk-X6UPDFDX.js.map → chunk-CXOF4UGH.js.map} +0 -0
- /package/dist/{chunk-Y3TDC7NU.js.map → chunk-D4QFQQWJ.js.map} +0 -0
- /package/dist/{chunk-UR3C4SCH.js.map → chunk-DNCSPTOQ.js.map} +0 -0
- /package/dist/{chunk-KSFSM46X.js.map → chunk-DQGSCCI3.js.map} +0 -0
- /package/dist/{chunk-B6HCIAM3.js.map → chunk-EWGMLVC7.js.map} +0 -0
- /package/dist/{chunk-PIACSJPH.js.map → chunk-F7PB5HGT.js.map} +0 -0
- /package/dist/{chunk-UWX7W22M.js.map → chunk-FVWCYGJL.js.map} +0 -0
- /package/dist/{chunk-IP4T477W.js.map → chunk-G7QKLA54.js.map} +0 -0
- /package/dist/{chunk-E6DRQJJT.js.map → chunk-J5RINDKS.js.map} +0 -0
- /package/dist/{chunk-UBGTQMOO.js.map → chunk-JMPSZMDD.js.map} +0 -0
- /package/dist/{chunk-DVDDXOWT.js.map → chunk-KQMEJUWI.js.map} +0 -0
- /package/dist/{chunk-VJ37HKM6.js.map → chunk-LBXZGYU5.js.map} +0 -0
- /package/dist/{chunk-FGMPKWT5.js.map → chunk-LI7FE335.js.map} +0 -0
- /package/dist/{chunk-AZYDW5T7.js.map → chunk-LRMV5DNW.js.map} +0 -0
- /package/dist/{chunk-RSU37SVQ.js.map → chunk-LWNOC7AJ.js.map} +0 -0
- /package/dist/{chunk-K6JLCMVL.js.map → chunk-MICNOSX7.js.map} +0 -0
- /package/dist/{chunk-JHOGX5VE.js.map → chunk-MLWNMXAV.js.map} +0 -0
- /package/dist/{chunk-LEDPPLQK.js.map → chunk-MMBLSLQR.js.map} +0 -0
- /package/dist/{chunk-LUTT3MBZ.js.map → chunk-NV5XWADG.js.map} +0 -0
- /package/dist/{chunk-P5HLYAHP.js.map → chunk-O3255WPP.js.map} +0 -0
- /package/dist/{chunk-ILF2GKBY.js.map → chunk-PEWHCKCH.js.map} +0 -0
- /package/dist/{chunk-DHZL3FBC.js.map → chunk-Q7PYFSNU.js.map} +0 -0
- /package/dist/{chunk-GPOECA3V.js.map → chunk-QMI222IJ.js.map} +0 -0
- /package/dist/{chunk-AETE4F7R.js.map → chunk-QRIRWDIW.js.map} +0 -0
- /package/dist/{chunk-F6V4AYWP.js.map → chunk-SEQLC4AD.js.map} +0 -0
- /package/dist/{chunk-G6ELKVBG.js.map → chunk-SJTOSA7E.js.map} +0 -0
- /package/dist/{chunk-O4PXELXF.js.map → chunk-SRYFYAXK.js.map} +0 -0
- /package/dist/{chunk-HAMDFQIX.js.map → chunk-TITA4HJA.js.map} +0 -0
- /package/dist/{chunk-CCIZJAXB.js.map → chunk-U7ZMIMI5.js.map} +0 -0
- /package/dist/{chunk-6MSCYO7K.js.map → chunk-UJU3Q7QJ.js.map} +0 -0
- /package/dist/{chunk-IIRU6VK2.js.map → chunk-UL2ISTHR.js.map} +0 -0
- /package/dist/{chunk-RFIVPTMS.js.map → chunk-VIPMLSZP.js.map} +0 -0
- /package/dist/{chunk-MNRYCG2S.js.map → chunk-VZPYIG77.js.map} +0 -0
- /package/dist/{chunk-FBAJTPBU.js.map → chunk-WIYKAKWE.js.map} +0 -0
- /package/dist/{chunk-GO5SIPFE.js.map → chunk-WPHOEG56.js.map} +0 -0
- /package/dist/{chunk-GKK3CZ6H.js.map → chunk-WU63AOK2.js.map} +0 -0
- /package/dist/{chunk-2OSEZCWZ.js.map → chunk-XS4QWRS3.js.map} +0 -0
- /package/dist/{chunk-W6UUEAEP.js.map → chunk-YSW57QDM.js.map} +0 -0
- /package/dist/{chunk-YUMPQ3CJ.js.map → chunk-YXQNZPCO.js.map} +0 -0
- /package/dist/{chunk-KVG7FTTK.js.map → chunk-ZTKQLABY.js.map} +0 -0
- /package/dist/{condition-VHP2L4GM.js.map → condition-AM523RDR.js.map} +0 -0
- /package/dist/{controls-N5Q7U7JR.js.map → controls-HTMH5QBP.js.map} +0 -0
- /package/dist/{controls.config-NJMW4SLR.js.map → controls.config-EEK2RBPI.js.map} +0 -0
- /package/dist/{correlation-3LDASF5I.js.map → correlation-HKD67SPS.js.map} +0 -0
- /package/dist/{cuminc-UWJ23W6C.js.map → cuminc-66V55MMN.js.map} +0 -0
- /package/dist/{cuminc.integration.spec-OZYYET3W.js.map → cuminc.integration.spec-PNTOPB2L.js.map} +0 -0
- /package/dist/{customdata.inputui-2FVCVSE4.js.map → customdata.inputui-Z4WQDU6I.js.map} +0 -0
- /package/dist/{dataDownload-4S4PE5HX.js.map → dataDownload-3ZEI22OK.js.map} +0 -0
- /package/dist/{dataDownload.integration.spec-B57LEKFZ.js.map → dataDownload.integration.spec-C3JRC6K5.js.map} +0 -0
- /package/dist/{databrowser.ui-N6GHEQ2P.js.map → databrowser.ui-Q365SHBG.js.map} +0 -0
- /package/dist/{dnaMethylation-BOGAUAWA.js.map → dnaMethylation-IFZWWBUG.js.map} +0 -0
- /package/dist/{e2pca-L5EBQJNP.js.map → e2pca-I3QXF7EM.js.map} +0 -0
- /package/dist/{ep-Z67ORKUX.js.map → ep-2VCQ36GT.js.map} +0 -0
- /package/dist/{expclust.gdc.spec-SP7VOL64.js.map → expclust.gdc.spec-VWIQFY67.js.map} +0 -0
- /package/dist/{facet-HDB4VDGU.js.map → facet-CHP3VUWS.js.map} +0 -0
- /package/dist/{geneExpClustering-6ZPOLTDJ.js.map → geneExpClustering-YDIDEH2O.js.map} +0 -0
- /package/dist/{geneExpression-T7QUHV5S.js.map → geneExpression-FA5RJRHZ.js.map} +0 -0
- /package/dist/{geneExpression-T6YIG4XQ.js.map → geneExpression-X2KXJPND.js.map} +0 -0
- /package/dist/{geneExpression.unit.spec-DO52L5IB.js.map → geneExpression.unit.spec-3LVHYZGG.js.map} +0 -0
- /package/dist/{geneORA-KOUDUWUO.js.map → geneORA-4CAYRKSN.js.map} +0 -0
- /package/dist/{geneVariant-FVR76F6I.js.map → geneVariant-OCOTNUH4.js.map} +0 -0
- /package/dist/{geneVariant-I5QUITKG.js.map → geneVariant-Y4L5W5HF.js.map} +0 -0
- /package/dist/{geneVariant.integration.spec-D4IRM7B5.js.map → geneVariant.integration.spec-BOJ5MM5K.js.map} +0 -0
- /package/dist/{genefusion.ui-35IYSZD7.js.map → genefusion.ui-I6HZOBIV.js.map} +0 -0
- /package/dist/{geneset-7ZHJ5KWK.js.map → geneset-GEWKDAAT.js.map} +0 -0
- /package/dist/{genomeBrowser.spec-VXASVLNH.js.map → genomeBrowser.spec-FDEGH4DY.js.map} +0 -0
- /package/dist/{grin2-IY26UUQI.js.map → grin2-K56B6XBZ.js.map} +0 -0
- /package/dist/{grin2-7NM56COO.js.map → grin2-V6FMM44N.js.map} +0 -0
- /package/dist/{gsea-TORO46C6.js.map → gsea-UNPPRU2U.js.map} +0 -0
- /package/dist/{hierCluster-3BKEGW6P.js.map → hierCluster-DXAWRQNI.js.map} +0 -0
- /package/dist/{hierCluster-HM3LOM6V.js.map → hierCluster-SPIQA2M2.js.map} +0 -0
- /package/dist/{hierCluster.config-LDO5IGQ5.js.map → hierCluster.config-JW6D3T3Q.js.map} +0 -0
- /package/dist/{hierCluster.integration.spec-XO5R6CQT.js.map → hierCluster.integration.spec-5NXZY4LG.js.map} +0 -0
- /package/dist/{hierCluster.interactivity-NVQ6262K.js.map → hierCluster.interactivity-CPPBXHM7.js.map} +0 -0
- /package/dist/{hierCluster.renderers-SWPPNBLU.js.map → hierCluster.renderers-A6MEGO2B.js.map} +0 -0
- /package/dist/{imagePlot-V4WLAPV6.js.map → imagePlot-QLAHCULW.js.map} +0 -0
- /package/dist/{importPlot-NZKQEOX4.js.map → importPlot-6ITZ6U7G.js.map} +0 -0
- /package/dist/{isoformExpression-TIZBIGNL.js.map → isoformExpression-7GAUF2QV.js.map} +0 -0
- /package/dist/{jspdf.es.min-DO4YWL2R.js.map → jspdf.es.min-FC3BCETM.js.map} +0 -0
- /package/dist/{launch.adhoc-JYEN42NM.js.map → launch.adhoc-HFHBAUR6.js.map} +0 -0
- /package/dist/{leftlabel.sample-43DL3J3H.js.map → leftlabel.sample-CWPJUCHR.js.map} +0 -0
- /package/dist/{legacyDataset-QRSNRVUA.js.map → legacyDataset-PBCPC5I7.js.map} +0 -0
- /package/dist/{lollipop-NMWZ4FVF.js.map → lollipop-QFRQLEER.js.map} +0 -0
- /package/dist/{maf-DS3EOVGV.js.map → maf-OEODBT3Y.js.map} +0 -0
- /package/dist/{maftimeline-ZB2753S7.js.map → maftimeline-2DFIF4C4.js.map} +0 -0
- /package/dist/{matrix-RCGQWQ3C.js.map → matrix-3HFB5TUU.js.map} +0 -0
- /package/dist/{matrix-WTTEK4FT.js.map → matrix-MIXK27AD.js.map} +0 -0
- /package/dist/{matrix.cells-UO5ASQ35.js.map → matrix.cells-U7AQNEBP.js.map} +0 -0
- /package/dist/{matrix.config-3UQAT3QR.js.map → matrix.config-FX5MHX6O.js.map} +0 -0
- /package/dist/{matrix.controls-PRZ77K5L.js.map → matrix.controls-5K7BB5Z4.js.map} +0 -0
- /package/dist/{matrix.data-4W73RQ3H.js.map → matrix.data-EEIY6AO4.js.map} +0 -0
- /package/dist/{matrix.dom-IZFFS4RQ.js.map → matrix.dom-6QL3AJMW.js.map} +0 -0
- /package/dist/{matrix.groups-5VMPI7SA.js.map → matrix.groups-CUB6UWC5.js.map} +0 -0
- /package/dist/{matrix.integration.spec-2F5LDLC2.js.map → matrix.integration.spec-ML4T7FRG.js.map} +0 -0
- /package/dist/{matrix.interactivity-MIPZ6ELV.js.map → matrix.interactivity-QMPWX63Q.js.map} +0 -0
- /package/dist/{matrix.layout-EO5LVYRO.js.map → matrix.layout-7SEF6MYI.js.map} +0 -0
- /package/dist/{matrix.legend-QBFBFEUG.js.map → matrix.legend-42LQGAGX.js.map} +0 -0
- /package/dist/{matrix.renderers-ERJXVCQL.js.map → matrix.renderers-ZF7LLER3.js.map} +0 -0
- /package/dist/{matrix.serieses-E23EPXHA.js.map → matrix.serieses-4B2WB526.js.map} +0 -0
- /package/dist/{matrix.sort-I4UGMEXR.js.map → matrix.sort-BJACNR7G.js.map} +0 -0
- /package/dist/{matrix.sort.unit.spec-CRGF6CSE.js.map → matrix.sort.unit.spec-ZGSM7HDJ.js.map} +0 -0
- /package/dist/{matrix.sorterUi-YLSYTYLE.js.map → matrix.sorterUi-W6XFYZY2.js.map} +0 -0
- /package/dist/{matrix.sorterUi.unit.spec-ENG3ICOO.js.map → matrix.sorterUi.unit.spec-V34ZZD7A.js.map} +0 -0
- /package/dist/{mavb-5WR7OJHI.js.map → mavb-NVQVFU6E.js.map} +0 -0
- /package/dist/{mds.fimo-3ZRH7BBJ.js.map → mds.fimo-HOCF6U6K.js.map} +0 -0
- /package/dist/{mds.samplescatterplot-RPXR2FVK.js.map → mds.samplescatterplot-ULD5BK5R.js.map} +0 -0
- /package/dist/{mds.survivalplot-WSSMYUZD.js.map → mds.survivalplot-5US32RQD.js.map} +0 -0
- /package/dist/{oncomatrix-JKYPUJQR.js.map → oncomatrix-Y3G3MUJJ.js.map} +0 -0
- /package/dist/{oncomatrix.spec-OEGU4DYK.js.map → oncomatrix.spec-MFUJLWEP.js.map} +0 -0
- /package/dist/{plot.2dvaf-ZGARLQNK.js.map → plot.2dvaf-F4WZ4YPU.js.map} +0 -0
- /package/dist/{plot.app-TKUJH3LK.js.map → plot.app-YFFLLBU5.js.map} +0 -0
- /package/dist/{plot.barplot-FEIPGDZ2.js.map → plot.barplot-2EJ2MWQD.js.map} +0 -0
- /package/dist/{plot.boxplot-6RASUMZB.js.map → plot.boxplot-AKZM443E.js.map} +0 -0
- /package/dist/{plot.brainImaging-ZJPFWX2W.js.map → plot.brainImaging-DR6WJNFZ.js.map} +0 -0
- /package/dist/{plot.dzi-PC34YI6Y.js.map → plot.dzi-R2MR7HAT.js.map} +0 -0
- /package/dist/{plot.ssgq-Z4UNJKWO.js.map → plot.ssgq-C52YIUFY.js.map} +0 -0
- /package/dist/{plot.vaf2cov-NZ4WULKT.js.map → plot.vaf2cov-FOD3K7BC.js.map} +0 -0
- /package/dist/{plot.wsi-YYXFAZWY.js.map → plot.wsi-D2TXYERK.js.map} +0 -0
- /package/dist/{polar-X2GPIBLB.js.map → polar-2LC35O6K.js.map} +0 -0
- /package/dist/{polar2-TZ553QQH.js.map → polar2-QPUOEUJZ.js.map} +0 -0
- /package/dist/{profile.spec-VB6VMFLY.js.map → profile.spec-3NCDGHLX.js.map} +0 -0
- /package/dist/{profileBarchart-SKJSTC7B.js.map → profileBarchart-PPQ3NL4D.js.map} +0 -0
- /package/dist/{profileForms-RLOGSMAQ.js.map → profileForms-GS3VVW65.js.map} +0 -0
- /package/dist/{profilePlot-267ZS3RG.js.map → profilePlot-DQWFH5NC.js.map} +0 -0
- /package/dist/{profileRadar-KGOBHCSF.js.map → profileRadar-KAKRDC4R.js.map} +0 -0
- /package/dist/{proteomeAbundance-PGHZSVAF.js.map → proteomeAbundance-DE4NVBCN.js.map} +0 -0
- /package/dist/{proteomeAbundance-JUYAYO5I.js.map → proteomeAbundance-LTB3QR3G.js.map} +0 -0
- /package/dist/{qualitative-3IECKKJM.js.map → qualitative-YOFAROVR.js.map} +0 -0
- /package/dist/{regression-J6FFRPXN.js.map → regression-PF6IAHJK.js.map} +0 -0
- /package/dist/{regression.inputs-T7LWBSYZ.js.map → regression.inputs-77IUYED3.js.map} +0 -0
- /package/dist/{regression.inputs.term-TT7PNX6G.js.map → regression.inputs.term-WWCHU6KF.js.map} +0 -0
- /package/dist/{regression.inputs.values.table-SHFUNKCS.js.map → regression.inputs.values.table-I6GM6MU7.js.map} +0 -0
- /package/dist/{regression.results-D4WX6VIV.js.map → regression.results-6GXNKYUS.js.map} +0 -0
- /package/dist/{regression.spec-7SW55L7X.js.map → regression.spec-MEFQNY34.js.map} +0 -0
- /package/dist/{report-QYOZ4BRF.js.map → report-LG3UKZHL.js.map} +0 -0
- /package/dist/{sampleScatter.spec-JCHFMGNF.js.map → sampleScatter.spec-D3IK7MSA.js.map} +0 -0
- /package/dist/{sampleView-7RPKNAZC.js.map → sampleView-XUI2J5EC.js.map} +0 -0
- /package/dist/{samplelst-4WNPHZVG.js.map → samplelst-A7IHCBAX.js.map} +0 -0
- /package/dist/{samplematrix-CG52DSXJ.js.map → samplematrix-VGUU7Q75.js.map} +0 -0
- /package/dist/{sc-OJSWILSA.js.map → sc-UVKVT2RY.js.map} +0 -0
- /package/dist/{scatter-LG2RMMEC.js.map → scatter-UILUYOGO.js.map} +0 -0
- /package/dist/{selectGenomeWithTklst-QXRVE6N4.js.map → selectGenomeWithTklst-LWKIMZEJ.js.map} +0 -0
- /package/dist/{singleCellCellType-XBSRL33U.js.map → singleCellCellType-TI52WQQ4.js.map} +0 -0
- /package/dist/{singleCellGeneExpression-64ECP62X.js.map → singleCellGeneExpression-I5SAHMGI.js.map} +0 -0
- /package/dist/{singleCellPlot-E5F62JY6.js.map → singleCellPlot-HRWCHYCI.js.map} +0 -0
- /package/dist/{singlecell-S7B5V7NK.js.map → singlecell-BHPP7KCO.js.map} +0 -0
- /package/dist/{singlecell-FCY5EOUV.js.map → singlecell-PQNKBKR7.js.map} +0 -0
- /package/dist/{snp-ACKX4GRX.js.map → snp-V4YGI7B3.js.map} +0 -0
- /package/dist/{snp.unit.spec-QBGHKKUD.js.map → snp.unit.spec-JSUCMGNP.js.map} +0 -0
- /package/dist/{snplocus-7EUOW7J7.js.map → snplocus-3YT5NNCH.js.map} +0 -0
- /package/dist/{spliceevent.a53ss.diagram-ALQZA35Z.js.map → spliceevent.a53ss.diagram-QEQJ44YH.js.map} +0 -0
- /package/dist/{spliceevent.exonskip.diagram-UF7WJA5R.js.map → spliceevent.exonskip.diagram-HMWVSOJG.js.map} +0 -0
- /package/dist/{spliceevent.noeventdiagram-4HPGRNRR.js.map → spliceevent.noeventdiagram-L5HUCT5A.js.map} +0 -0
- /package/dist/{ssGSEA-FDRBBBLJ.js.map → ssGSEA-Z3XRCBYW.js.map} +0 -0
- /package/dist/{ssGSEA.unit.spec-EZEOWJVV.js.map → ssGSEA.unit.spec-EUCTV2XJ.js.map} +0 -0
- /package/dist/{summarizeMutationDiagnosis-LALOJTHV.js.map → summarizeMutationDiagnosis-HFFYLQOF.js.map} +0 -0
- /package/dist/{summarizeMutationSurvival-TSNTSOBZ.js.map → summarizeMutationSurvival-OBK6YILP.js.map} +0 -0
- /package/dist/{summary-YRHVS64T.js.map → summary-W55WWIU2.js.map} +0 -0
- /package/dist/{summary.integration.spec-766YQLQA.js.map → summary.integration.spec-X2PNAUKW.js.map} +0 -0
- /package/dist/{summaryInput-VQ2X6GSX.js.map → summaryInput-X547Q6C7.js.map} +0 -0
- /package/dist/{survival-TVA3ZWVP.js.map → survival-PAJZHZPD.js.map} +0 -0
- /package/dist/{survival-FQXZH2MM.js.map → survival-TQPWMOD5.js.map} +0 -0
- /package/dist/{svg2pdf.es.min-EZ4UYRSH.js.map → svg2pdf.es.min-CYTPRWNB.js.map} +0 -0
- /package/dist/{svgraph-4BFBO7EL.js.map → svgraph-Y35C2M3D.js.map} +0 -0
- /package/dist/{svmr-ML7GAIIA.js.map → svmr-WGCIR7PE.js.map} +0 -0
- /package/dist/{table-SMLMUWPP.js.map → table-Q3B2YXEN.js.map} +0 -0
- /package/dist/{termCollection-EE6AOIVA.js.map → termCollection-A6YTSM5I.js.map} +0 -0
- /package/dist/{termCollection-22CPTISZ.js.map → termCollection-NTFNVQ7D.js.map} +0 -0
- /package/dist/{termCollection.unit.spec-4DIW3CJ3.js.map → termCollection.unit.spec-BX54PHKT.js.map} +0 -0
- /package/dist/{tk-ITZCKOQ5.js.map → tk-OCBZ7YR6.js.map} +0 -0
- /package/dist/{tp.ui-R6HVKCBC.js.map → tp.ui-ZT47N2CO.js.map} +0 -0
- /package/dist/{tvs.density-AQ5GD437.js.map → tvs.density-HSVPDDGA.js.map} +0 -0
- /package/dist/{tvs.dt-2263TBEJ.js.map → tvs.dt-BFB253O3.js.map} +0 -0
- /package/dist/{tvs.dtcnv.categorical-TRRHL33N.js.map → tvs.dtcnv.categorical-ARGAYIDO.js.map} +0 -0
- /package/dist/{tvs.dtcnv.continuous-GREYNF52.js.map → tvs.dtcnv.continuous-JCU23ERV.js.map} +0 -0
- /package/dist/{tvs.dtfusion-XOX46L3M.js.map → tvs.dtfusion-FV64XLZI.js.map} +0 -0
- /package/dist/{tvs.dtsnvindel-IDMXT53F.js.map → tvs.dtsnvindel-DMOXMEVL.js.map} +0 -0
- /package/dist/{tvs.dtsv-ZDWFYH2C.js.map → tvs.dtsv-53FSZEPV.js.map} +0 -0
- /package/dist/{tvs.numeric-ZN2R7BH3.js.map → tvs.numeric-ICUGA4WY.js.map} +0 -0
- /package/dist/{tvs.samplelst-GAP76HRH.js.map → tvs.samplelst-MVPL6VXX.js.map} +0 -0
- /package/dist/{tvs.termCollection-GQ65UKSI.js.map → tvs.termCollection-UGJXTHTG.js.map} +0 -0
- /package/dist/{violin-JGDL62YA.js.map → violin-ZLUDGSQG.js.map} +0 -0
- /package/dist/{violin.interactivity-H4RP4K5U.js.map → violin.interactivity-ULDOCZWW.js.map} +0 -0
- /package/dist/{violin.renderer-QPHLACDC.js.map → violin.renderer-KJAXPMIK.js.map} +0 -0
- /package/dist/{vocabulary-7JACY4J2.js.map → vocabulary-34YUQ4ZQ.js.map} +0 -0
|
@@ -0,0 +1,2196 @@
|
|
|
1
|
+
import {
|
|
2
|
+
appear2 as appear,
|
|
3
|
+
disappear2 as disappear,
|
|
4
|
+
export_data,
|
|
5
|
+
first_genetrack_tolist,
|
|
6
|
+
font,
|
|
7
|
+
make_table_2col,
|
|
8
|
+
newpane,
|
|
9
|
+
sayerror
|
|
10
|
+
} from "./chunk-NVB7MQLH.js";
|
|
11
|
+
import {
|
|
12
|
+
invalidcoord,
|
|
13
|
+
string2pos
|
|
14
|
+
} from "./chunk-HJ6L54YS.js";
|
|
15
|
+
import "./chunk-4JON7TLI.js";
|
|
16
|
+
import {
|
|
17
|
+
dofetch,
|
|
18
|
+
dofetch2,
|
|
19
|
+
dofetch3,
|
|
20
|
+
vcfparsemeta
|
|
21
|
+
} from "./chunk-7RN3L2BX.js";
|
|
22
|
+
import {
|
|
23
|
+
Menu
|
|
24
|
+
} from "./chunk-A6TQGNDQ.js";
|
|
25
|
+
import "./chunk-HYZG6OPC.js";
|
|
26
|
+
import "./chunk-FN5XPUPH.js";
|
|
27
|
+
import "./chunk-LSEFWW72.js";
|
|
28
|
+
import "./chunk-5EF5U7MX.js";
|
|
29
|
+
import "./chunk-2K5DSRBJ.js";
|
|
30
|
+
import "./chunk-UCLS2SVB.js";
|
|
31
|
+
import "./chunk-MVTCBVSX.js";
|
|
32
|
+
import "./chunk-SEQLC4AD.js";
|
|
33
|
+
import "./chunk-L4QG7XZE.js";
|
|
34
|
+
import "./chunk-DQC5FFGV.js";
|
|
35
|
+
import "./chunk-KQMEJUWI.js";
|
|
36
|
+
import "./chunk-UJU3Q7QJ.js";
|
|
37
|
+
import "./chunk-WGL6FIUE.js";
|
|
38
|
+
import "./chunk-6ITDJ5UR.js";
|
|
39
|
+
import {
|
|
40
|
+
bplen,
|
|
41
|
+
dt2label,
|
|
42
|
+
dtcnv,
|
|
43
|
+
dtfusionrna,
|
|
44
|
+
dtitd,
|
|
45
|
+
dtloh,
|
|
46
|
+
dtsnvindel,
|
|
47
|
+
dtsv,
|
|
48
|
+
getMax_byiqr,
|
|
49
|
+
mclass,
|
|
50
|
+
mclassitd,
|
|
51
|
+
tkt,
|
|
52
|
+
validtkt
|
|
53
|
+
} from "./chunk-XYFDBYOY.js";
|
|
54
|
+
import "./chunk-TV74I3Y5.js";
|
|
55
|
+
import {
|
|
56
|
+
category10_default
|
|
57
|
+
} from "./chunk-IH7ILDJS.js";
|
|
58
|
+
import "./chunk-LOZEKOES.js";
|
|
59
|
+
import "./chunk-TOU7EVFQ.js";
|
|
60
|
+
import {
|
|
61
|
+
linear,
|
|
62
|
+
ordinal
|
|
63
|
+
} from "./chunk-OAWQ6LOO.js";
|
|
64
|
+
import "./chunk-SEEYV6P2.js";
|
|
65
|
+
import "./chunk-NDWTN4U5.js";
|
|
66
|
+
import "./chunk-OMR2DT66.js";
|
|
67
|
+
import "./chunk-HFNDKYVF.js";
|
|
68
|
+
|
|
69
|
+
// src/samplematrix.featuremenu.js
|
|
70
|
+
function showMenu_isgenevalue(smat, f) {
|
|
71
|
+
smat.menu.d.append("div").attr("class", "sja_menuoption").text("Sort").on("click", () => {
|
|
72
|
+
smat.menu.hide();
|
|
73
|
+
if (f.sort) {
|
|
74
|
+
return;
|
|
75
|
+
}
|
|
76
|
+
for (const f2 of smat.features) {
|
|
77
|
+
if (f2.isgenevalue) delete f2.sort;
|
|
78
|
+
}
|
|
79
|
+
f.sort = 1;
|
|
80
|
+
smat.draw_matrix();
|
|
81
|
+
});
|
|
82
|
+
}
|
|
83
|
+
function showMenu_iscnv(smat, f, obj) {
|
|
84
|
+
{
|
|
85
|
+
const row = smat.menu.d.append("div").style("margin", "10px");
|
|
86
|
+
row.append("span").html("CNV log2(ratio) cutoff ");
|
|
87
|
+
row.append("input").property("value", obj.valuecutoff || 0).attr("type", "number").style("width", "50px").on("keyup", (event2) => {
|
|
88
|
+
if (event2.code != "Enter" && event2.code != "NumpadEnter") return;
|
|
89
|
+
let v = Number.parseFloat(event2.target.value);
|
|
90
|
+
if (!v || v < 0) {
|
|
91
|
+
v = 0;
|
|
92
|
+
}
|
|
93
|
+
if (v == 0) {
|
|
94
|
+
if (obj.valuecutoff) {
|
|
95
|
+
obj.valuecutoff = 0;
|
|
96
|
+
smat.update_singlefeature(f);
|
|
97
|
+
} else {
|
|
98
|
+
}
|
|
99
|
+
return;
|
|
100
|
+
}
|
|
101
|
+
if (obj.valuecutoff) {
|
|
102
|
+
if (obj.valuecutoff == v) {
|
|
103
|
+
} else {
|
|
104
|
+
obj.valuecutoff = v;
|
|
105
|
+
smat.update_singlefeature(f);
|
|
106
|
+
}
|
|
107
|
+
} else {
|
|
108
|
+
obj.valuecutoff = v;
|
|
109
|
+
smat.update_singlefeature(f);
|
|
110
|
+
}
|
|
111
|
+
});
|
|
112
|
+
row.append("div").style("font-size", ".7em").style("opacity", 0.5).html("Only show CNV with absolute log2(ratio) no less than cutoff.<br>Set to 0 to cancel.");
|
|
113
|
+
}
|
|
114
|
+
{
|
|
115
|
+
const row = smat.menu.d.append("div").style("margin", "10px");
|
|
116
|
+
row.append("span").html("CNV segment size limit ");
|
|
117
|
+
row.append("input").property("value", obj.focalsizelimit || 0).attr("type", "number").style("width", "100px").on("keyup", (event2) => {
|
|
118
|
+
if (event2.code != "Enter" && event2.code != "NumpadEnter") return;
|
|
119
|
+
let v = Number.parseInt(event2.target.value);
|
|
120
|
+
if (!v || v < 0) {
|
|
121
|
+
v = 0;
|
|
122
|
+
}
|
|
123
|
+
if (v == 0) {
|
|
124
|
+
if (obj.focalsizelimit) {
|
|
125
|
+
obj.focalsizelimit = 0;
|
|
126
|
+
smat.update_singlefeature(f);
|
|
127
|
+
} else {
|
|
128
|
+
}
|
|
129
|
+
return;
|
|
130
|
+
}
|
|
131
|
+
if (obj.focalsizelimit) {
|
|
132
|
+
if (obj.focalsizelimit == v) {
|
|
133
|
+
} else {
|
|
134
|
+
obj.focalsizelimit = v;
|
|
135
|
+
smat.update_singlefeature(f);
|
|
136
|
+
}
|
|
137
|
+
} else {
|
|
138
|
+
obj.focalsizelimit = v;
|
|
139
|
+
smat.update_singlefeature(f);
|
|
140
|
+
}
|
|
141
|
+
});
|
|
142
|
+
row.append("span").text("bp");
|
|
143
|
+
row.append("div").style("font-size", ".7em").style("opacity", 0.5).html("Limit the CNV segment length to show only focal events.<br>Set to 0 to cancel.");
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
function showMenu_isloh(smat, f, obj) {
|
|
147
|
+
{
|
|
148
|
+
const row = smat.menu.d.append("div").style("margin", "10px");
|
|
149
|
+
row.append("span").html("LOH segmean cutoff ");
|
|
150
|
+
row.append("input").property("value", obj.valuecutoff || 0).attr("type", "number").style("width", "50px").on("keyup", (event2) => {
|
|
151
|
+
if (event2.code != "Enter" && event2.code != "NumpadEnter") return;
|
|
152
|
+
let v = Number.parseFloat(event2.target.value);
|
|
153
|
+
if (!v || v < 0) {
|
|
154
|
+
v = 0;
|
|
155
|
+
}
|
|
156
|
+
if (v == 0) {
|
|
157
|
+
if (obj.valuecutoff) {
|
|
158
|
+
obj.valuecutoff = 0;
|
|
159
|
+
smat.update_singlefeature(f);
|
|
160
|
+
} else {
|
|
161
|
+
}
|
|
162
|
+
return;
|
|
163
|
+
}
|
|
164
|
+
if (obj.valuecutoff) {
|
|
165
|
+
if (obj.valuecutoff == v) {
|
|
166
|
+
} else {
|
|
167
|
+
obj.valuecutoff = v;
|
|
168
|
+
smat.update_singlefeature(f);
|
|
169
|
+
}
|
|
170
|
+
} else {
|
|
171
|
+
obj.valuecutoff = v;
|
|
172
|
+
smat.update_singlefeature(f);
|
|
173
|
+
}
|
|
174
|
+
});
|
|
175
|
+
row.append("div").style("font-size", ".7em").style("opacity", 0.5).html("Only show LOH with segmean no less than cutoff.<br>Set to 0 to cancel.");
|
|
176
|
+
}
|
|
177
|
+
{
|
|
178
|
+
const row = smat.menu.d.append("div").style("margin", "10px");
|
|
179
|
+
row.append("span").html("LOH segment size limit ");
|
|
180
|
+
row.append("input").property("value", obj.focalsizelimit || 0).attr("type", "number").style("width", "100px").on("keyup", (event2) => {
|
|
181
|
+
if (event2.code != "Enter" && event2.code != "NumpadEnter") return;
|
|
182
|
+
let v = Number.parseInt(event2.target.value);
|
|
183
|
+
if (!v || v < 0) {
|
|
184
|
+
v = 0;
|
|
185
|
+
}
|
|
186
|
+
if (v == 0) {
|
|
187
|
+
if (obj.focalsizelimit) {
|
|
188
|
+
obj.focalsizelimit = 0;
|
|
189
|
+
smat.update_singlefeature(f);
|
|
190
|
+
} else {
|
|
191
|
+
}
|
|
192
|
+
return;
|
|
193
|
+
}
|
|
194
|
+
if (obj.focalsizelimit) {
|
|
195
|
+
if (obj.focalsizelimit == v) {
|
|
196
|
+
} else {
|
|
197
|
+
obj.focalsizelimit = v;
|
|
198
|
+
smat.update_singlefeature(f);
|
|
199
|
+
}
|
|
200
|
+
} else {
|
|
201
|
+
obj.focalsizelimit = v;
|
|
202
|
+
smat.update_singlefeature(f);
|
|
203
|
+
}
|
|
204
|
+
});
|
|
205
|
+
row.append("span").text("bp");
|
|
206
|
+
row.append("div").style("font-size", ".7em").style("opacity", 0.5).html("Limit the LOH segment length to show only focal events.<br>Set to 0 to cancel.");
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
function showMenu_ismutation(smat, f) {
|
|
210
|
+
{
|
|
211
|
+
const div = smat.menu.d.append("div").style("margin", "10px").style("border", "solid 1px #ededed");
|
|
212
|
+
const update = () => {
|
|
213
|
+
smat.update_singlefeature(f);
|
|
214
|
+
smat.menu.hide();
|
|
215
|
+
};
|
|
216
|
+
const table = div.append("table").style("margin", "10px").style("border-spacing", "1px");
|
|
217
|
+
const tbody = table.append("tbody");
|
|
218
|
+
{
|
|
219
|
+
const tr = tbody.append("tr");
|
|
220
|
+
tr.append("td").style("opacity", 0.5).text("CNV");
|
|
221
|
+
tr.append("td").attr("class", "sja_menuoption").text(f.cnv.hidden ? "Show" : "Hide").on("click", () => {
|
|
222
|
+
f.cnv.hidden = !f.cnv.hidden;
|
|
223
|
+
update();
|
|
224
|
+
});
|
|
225
|
+
tr.append("td").attr("class", "sja_menuoption").text("Show only").on("click", () => {
|
|
226
|
+
ismutation_hideallclass(f);
|
|
227
|
+
delete f.cnv.hidden;
|
|
228
|
+
update();
|
|
229
|
+
});
|
|
230
|
+
const td = tr.append("td");
|
|
231
|
+
if (!f.cnv.hidden) {
|
|
232
|
+
td.attr("class", "sja_menuoption").style("font-size", ".8em").text("CONFIG").on("click", () => {
|
|
233
|
+
smat.menu.clear();
|
|
234
|
+
showMenu_iscnv(smat, f, f.cnv);
|
|
235
|
+
});
|
|
236
|
+
}
|
|
237
|
+
}
|
|
238
|
+
{
|
|
239
|
+
const tr = tbody.append("tr");
|
|
240
|
+
tr.append("td").style("opacity", 0.5).text("LOH");
|
|
241
|
+
tr.append("td").attr("class", "sja_menuoption").text(f.loh.hidden ? "Show" : "Hide").on("click", () => {
|
|
242
|
+
f.loh.hidden = !f.loh.hidden;
|
|
243
|
+
update();
|
|
244
|
+
});
|
|
245
|
+
tr.append("td").attr("class", "sja_menuoption").text("Show only").on("click", () => {
|
|
246
|
+
ismutation_hideallclass(f);
|
|
247
|
+
delete f.loh.hidden;
|
|
248
|
+
update();
|
|
249
|
+
});
|
|
250
|
+
const td = tr.append("td");
|
|
251
|
+
if (!f.loh.hidden) {
|
|
252
|
+
td.attr("class", "sja_menuoption").style("font-size", ".8em").text("CONFIG").on("click", () => {
|
|
253
|
+
smat.menu.clear();
|
|
254
|
+
showMenu_isloh(smat, f, f.loh);
|
|
255
|
+
});
|
|
256
|
+
}
|
|
257
|
+
}
|
|
258
|
+
{
|
|
259
|
+
const tr = tbody.append("tr");
|
|
260
|
+
tr.append("td").style("opacity", 0.5).text("ITD");
|
|
261
|
+
tr.append("td").attr("class", "sja_menuoption").text(f.itd.hidden ? "Show" : "Hide").on("click", () => {
|
|
262
|
+
f.itd.hidden = !f.itd.hidden;
|
|
263
|
+
update();
|
|
264
|
+
});
|
|
265
|
+
tr.append("td").attr("class", "sja_menuoption").text("Show only").on("click", () => {
|
|
266
|
+
ismutation_hideallclass(f);
|
|
267
|
+
delete f.itd.hidden;
|
|
268
|
+
update();
|
|
269
|
+
});
|
|
270
|
+
const td = tr.append("td");
|
|
271
|
+
if (!f.itd.hidden) {
|
|
272
|
+
}
|
|
273
|
+
}
|
|
274
|
+
{
|
|
275
|
+
const tr = tbody.append("tr");
|
|
276
|
+
tr.append("td").style("opacity", 0.5).text("SV");
|
|
277
|
+
tr.append("td").attr("class", "sja_menuoption").text(f.sv.hidden ? "Show" : "Hide").on("click", () => {
|
|
278
|
+
f.sv.hidden = !f.sv.hidden;
|
|
279
|
+
update();
|
|
280
|
+
});
|
|
281
|
+
tr.append("td").attr("class", "sja_menuoption").text("Show only").on("click", () => {
|
|
282
|
+
ismutation_hideallclass(f);
|
|
283
|
+
delete f.sv.hidden;
|
|
284
|
+
update();
|
|
285
|
+
});
|
|
286
|
+
const td = tr.append("td");
|
|
287
|
+
if (!f.sv.hidden) {
|
|
288
|
+
}
|
|
289
|
+
}
|
|
290
|
+
{
|
|
291
|
+
const tr = tbody.append("tr");
|
|
292
|
+
tr.append("td").style("opacity", 0.5).text("Fusion");
|
|
293
|
+
tr.append("td").attr("class", "sja_menuoption").text(f.fusion.hidden ? "show" : "hide").on("click", () => {
|
|
294
|
+
f.fusion.hidden = !f.fusion.hidden;
|
|
295
|
+
update();
|
|
296
|
+
});
|
|
297
|
+
tr.append("td").attr("class", "sja_menuoption").text("show only").on("click", () => {
|
|
298
|
+
ismutation_hideallclass(f);
|
|
299
|
+
delete f.fusion.hidden;
|
|
300
|
+
update();
|
|
301
|
+
});
|
|
302
|
+
const td = tr.append("td");
|
|
303
|
+
if (!f.fusion.hidden) {
|
|
304
|
+
}
|
|
305
|
+
}
|
|
306
|
+
table.append("tbody").append("tr").append("td").attr("colspan", 4).style("padding-top", "10px").append("span").style("font-size", ".8em").text("List SNV/indel").attr("class", "sja_clbtext").on("click", () => {
|
|
307
|
+
if (tbody2.style("display") == "none") {
|
|
308
|
+
tbody2.style("display", "table-row-group");
|
|
309
|
+
} else {
|
|
310
|
+
tbody2.style("display", "none");
|
|
311
|
+
}
|
|
312
|
+
});
|
|
313
|
+
const tbody2 = table.append("tbody").style("display", "none");
|
|
314
|
+
for (const k in mclass) {
|
|
315
|
+
const c = mclass[k];
|
|
316
|
+
if (c.dt != dtsnvindel) {
|
|
317
|
+
continue;
|
|
318
|
+
}
|
|
319
|
+
const tr = tbody2.append("tr");
|
|
320
|
+
tr.append("td").style("opacity", 0.5).text(c.label);
|
|
321
|
+
tr.append("td").attr("class", "sja_menuoption").text(f.snvindel.excludeclasses[k] ? "Show" : "Hide").on("click", () => {
|
|
322
|
+
if (f.snvindel.excludeclasses[k]) {
|
|
323
|
+
delete f.snvindel.excludeclasses[k];
|
|
324
|
+
} else {
|
|
325
|
+
f.snvindel.excludeclasses[k] = 1;
|
|
326
|
+
}
|
|
327
|
+
update();
|
|
328
|
+
});
|
|
329
|
+
tr.append("td").attr("class", "sja_menuoption").text("Show only").on("click", () => {
|
|
330
|
+
ismutation_hideallclass(f);
|
|
331
|
+
delete f.snvindel.excludeclasses[k];
|
|
332
|
+
update();
|
|
333
|
+
});
|
|
334
|
+
const td = tr.append("td");
|
|
335
|
+
}
|
|
336
|
+
div.append("div").style("margin", "10px").append("span").style("font-size", ".8em").text("Show all classes").attr("class", "sja_clbtext").on("click", () => {
|
|
337
|
+
f.cnv.hidden = false;
|
|
338
|
+
f.loh.hidden = false;
|
|
339
|
+
f.itd.hidden = false;
|
|
340
|
+
f.sv.hidden = false;
|
|
341
|
+
f.fusion.hidden = false;
|
|
342
|
+
f.snvindel.excludeclasses = {};
|
|
343
|
+
update();
|
|
344
|
+
});
|
|
345
|
+
}
|
|
346
|
+
}
|
|
347
|
+
function ismutation_hideallclass(f) {
|
|
348
|
+
f.cnv.hidden = true;
|
|
349
|
+
f.loh.hidden = true;
|
|
350
|
+
f.itd.hidden = true;
|
|
351
|
+
f.sv.hidden = true;
|
|
352
|
+
f.fusion.hidden = true;
|
|
353
|
+
f.snvindel.excludeclasses = {};
|
|
354
|
+
for (const k in mclass) {
|
|
355
|
+
if (mclass[k].dt == dtsnvindel) f.snvindel.excludeclasses[k] = 1;
|
|
356
|
+
}
|
|
357
|
+
}
|
|
358
|
+
|
|
359
|
+
// src/samplematrix.kmplot.js
|
|
360
|
+
function may_add_kmplotbutton(smat, buttonrow) {
|
|
361
|
+
if (!smat.mds || !smat.mds.survivalplot) return;
|
|
362
|
+
buttonrow.append("span").style("margin-right", "20px").style("font-size", ".8em").text("SURVIVAL PLOT").attr("class", "sja_clbtext").on("click", (event2) => {
|
|
363
|
+
smat.menu.clear().showunder(event2.target);
|
|
364
|
+
kmplot_menu(smat);
|
|
365
|
+
});
|
|
366
|
+
}
|
|
367
|
+
async function kmplot_menu(smat) {
|
|
368
|
+
const mutation_features = smat.features.filter((i) => i.ismutation);
|
|
369
|
+
try {
|
|
370
|
+
if (mutation_features.length != 2) throw "only works with two genomic features.";
|
|
371
|
+
await kmplot_do(smat, mutation_features[0], mutation_features[1]);
|
|
372
|
+
} catch (e) {
|
|
373
|
+
smat.menu.d.append("div").style("margin", "20px").text("Cannot make survival plot: " + (e.message || e));
|
|
374
|
+
}
|
|
375
|
+
}
|
|
376
|
+
async function kmplot_do(smat, f1, f2) {
|
|
377
|
+
const s1 = [], s2 = [], s12 = [];
|
|
378
|
+
for (const i of smat.samples) {
|
|
379
|
+
const in1 = f1.items.find((j) => j.sample == i.name);
|
|
380
|
+
const in2 = f2.items.find((j) => j.sample == i.name);
|
|
381
|
+
if (in1) {
|
|
382
|
+
if (in2) s12.push(i.name);
|
|
383
|
+
else s1.push(i.name);
|
|
384
|
+
} else {
|
|
385
|
+
s2.push(i.name);
|
|
386
|
+
}
|
|
387
|
+
}
|
|
388
|
+
const plot = {
|
|
389
|
+
renderplot: 1,
|
|
390
|
+
samplerule: {
|
|
391
|
+
full: {},
|
|
392
|
+
mutated_sets: [
|
|
393
|
+
{ name: f1.label + " mutated (n=" + s1.length + ")", samplenames: s1 },
|
|
394
|
+
{ name: f2.label + " mutated (n=" + s2.length + ")", samplenames: s2 },
|
|
395
|
+
{ name: f1.label + " and " + f2.label + " mutated (n=" + s12.length + ")", samplenames: s12 }
|
|
396
|
+
]
|
|
397
|
+
}
|
|
398
|
+
};
|
|
399
|
+
if (smat.limitsamplebyeitherannotation) {
|
|
400
|
+
plot.samplerule.full = {
|
|
401
|
+
byattr: 1,
|
|
402
|
+
key: smat.limitsamplebyeitherannotation[0].key,
|
|
403
|
+
value: smat.limitsamplebyeitherannotation[0].value,
|
|
404
|
+
immutable: 1
|
|
405
|
+
};
|
|
406
|
+
}
|
|
407
|
+
const pane = newpane({ x: 100, y: 100 });
|
|
408
|
+
pane.header.text(
|
|
409
|
+
(smat.limitsamplebyeitherannotation ? smat.limitsamplebyeitherannotation[0].value + " " : "") + "survival by " + f1.label + " and " + f2.label + " mutation status"
|
|
410
|
+
);
|
|
411
|
+
const _ = await import("./mds.survivalplot-5US32RQD.js");
|
|
412
|
+
_.init(
|
|
413
|
+
{
|
|
414
|
+
mds: smat.mds,
|
|
415
|
+
genome: smat.genome,
|
|
416
|
+
plotlist: [plot]
|
|
417
|
+
},
|
|
418
|
+
pane.body
|
|
419
|
+
);
|
|
420
|
+
}
|
|
421
|
+
|
|
422
|
+
// src/samplematrix.js
|
|
423
|
+
var saynovalue = "na";
|
|
424
|
+
var default_cnvgaincolor = "#D6683C";
|
|
425
|
+
var default_cnvlosscolor = "#67a9cf";
|
|
426
|
+
var default_genevaluecolor = "#095873";
|
|
427
|
+
var default_lohcolor = "#858585";
|
|
428
|
+
var default_svcolor = "#858585";
|
|
429
|
+
var minheight2showname = 8;
|
|
430
|
+
var Samplematrix = class {
|
|
431
|
+
/*
|
|
432
|
+
init ui
|
|
433
|
+
*/
|
|
434
|
+
constructor(p) {
|
|
435
|
+
for (const k in p) {
|
|
436
|
+
this[k] = p[k];
|
|
437
|
+
}
|
|
438
|
+
if (this.debugmode) window.smat = this;
|
|
439
|
+
this.tip = new Menu({ padding: "0px", hideXmute: 1, hideYmute: 1 });
|
|
440
|
+
this.menu = new Menu({ padding: "0px" });
|
|
441
|
+
this.errdiv = this.holder.append("div");
|
|
442
|
+
if (!this.iscustom) {
|
|
443
|
+
try {
|
|
444
|
+
if (!this.dslabel) throw "not custom data but dslabel is missing";
|
|
445
|
+
this.mds = this.genome.datasets[this.dslabel];
|
|
446
|
+
if (!this.mds) throw "invalid dataset name: " + this.dslabel;
|
|
447
|
+
if (!this.mds.isMds) throw "improper dataset: " + this.dslabel;
|
|
448
|
+
} catch (e) {
|
|
449
|
+
this.error(e);
|
|
450
|
+
}
|
|
451
|
+
}
|
|
452
|
+
init_controlui(this);
|
|
453
|
+
if (this.header) {
|
|
454
|
+
this.holder.append("div").style("margin-bottom", "20px").html(this.header);
|
|
455
|
+
}
|
|
456
|
+
this.wait_div = this.holder.append("div");
|
|
457
|
+
this.wait_div.style("display", "block").text("Loading...");
|
|
458
|
+
this.svg = this.holder.append("svg");
|
|
459
|
+
this.validate_config().then(() => {
|
|
460
|
+
return this.get_features();
|
|
461
|
+
}).catch((err) => {
|
|
462
|
+
if (typeof err == "string") {
|
|
463
|
+
this.error(err);
|
|
464
|
+
} else {
|
|
465
|
+
this.error(err.message);
|
|
466
|
+
if (err.stack) console.log(err.stack);
|
|
467
|
+
}
|
|
468
|
+
});
|
|
469
|
+
}
|
|
470
|
+
error(m) {
|
|
471
|
+
sayerror(this.errdiv, m);
|
|
472
|
+
}
|
|
473
|
+
async validate_config() {
|
|
474
|
+
if (this.iscustom) {
|
|
475
|
+
if (!this.querykey2tracks) throw "querykey2tracks missing for custom dataset";
|
|
476
|
+
let novalidtk = true;
|
|
477
|
+
for (const key in this.querykey2tracks) {
|
|
478
|
+
const tk = this.querykey2tracks[key];
|
|
479
|
+
if (!tk.file && !tk.url) throw "no file or url for a custom track by key " + key;
|
|
480
|
+
if (!tk.type) throw "missing type for member track by key " + key;
|
|
481
|
+
if (!validtkt(tk.type)) throw "invalid type for a member track: " + tk.type;
|
|
482
|
+
novalidtk = false;
|
|
483
|
+
}
|
|
484
|
+
if (novalidtk) throw "no custom tracks from querykey2tracks";
|
|
485
|
+
let vcftk;
|
|
486
|
+
for (const key in this.querykey2tracks) {
|
|
487
|
+
const tk = this.querykey2tracks[key];
|
|
488
|
+
if (tk.type == tkt.mdsvcf) {
|
|
489
|
+
vcftk = tk;
|
|
490
|
+
}
|
|
491
|
+
}
|
|
492
|
+
if (vcftk) {
|
|
493
|
+
await this.may_init_customvcf(vcftk);
|
|
494
|
+
}
|
|
495
|
+
} else {
|
|
496
|
+
if (this.mds.mdsIsUninitiated) {
|
|
497
|
+
const d = await dofetch3(`getDataset?genome=${this.genome.name}&dsname=${this.mds.label}`);
|
|
498
|
+
if (d.error) throw d.error;
|
|
499
|
+
if (!d.ds) throw "ds missing";
|
|
500
|
+
Object.assign(this.mds, d.ds);
|
|
501
|
+
delete this.mds.mdsIsUninitiated;
|
|
502
|
+
}
|
|
503
|
+
}
|
|
504
|
+
if (this.limitsamplebyeitherannotation) {
|
|
505
|
+
if (!Array.isArray(this.limitsamplebyeitherannotation)) throw "limitsamplebyeitherannotation must be an array";
|
|
506
|
+
const tr = this.legendtable.append("tr");
|
|
507
|
+
for (const anno of this.limitsamplebyeitherannotation) {
|
|
508
|
+
if (!anno.key) throw ".key missing from an element of limitsamplebyeitherannotation";
|
|
509
|
+
if (!anno.value) throw ".value missing from an element of limitsamplebyeitherannotation";
|
|
510
|
+
}
|
|
511
|
+
this.showlegend_limitsample();
|
|
512
|
+
}
|
|
513
|
+
const cnv_tr = this.legendtable.append("tr");
|
|
514
|
+
cnv_tr.append("td").style("opacity", 0.5).style("text-align", "right").text("CNV cutoff");
|
|
515
|
+
this.legendtable.cnv_td = cnv_tr.append("td");
|
|
516
|
+
const loh_tr = this.legendtable.append("tr");
|
|
517
|
+
loh_tr.append("td").style("opacity", 0.5).style("text-align", "right").text("LOH cutoff");
|
|
518
|
+
this.legendtable.loh_td = loh_tr.append("td");
|
|
519
|
+
if (this.limitbysamplesetgroup) {
|
|
520
|
+
if (!Array.isArray(this.limitbysamplesetgroup.samples)) throw ".limitbysamplesetgroup.samples is not array";
|
|
521
|
+
}
|
|
522
|
+
if (!this.rowspace) this.rowspace = 1;
|
|
523
|
+
if (!this.colspace) this.colspace = 1;
|
|
524
|
+
if (!this.rowlabspace) this.rowlabspace = 5;
|
|
525
|
+
if (!this.collabspace) this.collabspace = 5;
|
|
526
|
+
if (!this.rowlabticksize) this.rowlabticksize = 5;
|
|
527
|
+
if (!this.collabticksize) this.collabticksize = 5;
|
|
528
|
+
if (!this.features) throw "missing features[]";
|
|
529
|
+
if (!Array.isArray(this.features)) throw "features must be an array";
|
|
530
|
+
if (this.features[0].height) this.ori_feature_height = this.features[0].height;
|
|
531
|
+
if (this.features[0].width) this.ori_feature_width = this.features[0].width;
|
|
532
|
+
for (const f of this.features) {
|
|
533
|
+
await this.validate_feature(f);
|
|
534
|
+
}
|
|
535
|
+
}
|
|
536
|
+
showlegend_limitsample() {
|
|
537
|
+
if (!this.limitsamplebyeitherannotation) return;
|
|
538
|
+
}
|
|
539
|
+
feature_parseposition_maygene(f) {
|
|
540
|
+
return Promise.resolve().then(() => {
|
|
541
|
+
if (f.position) {
|
|
542
|
+
const o = string2pos(f.position, this.genome);
|
|
543
|
+
if (o) {
|
|
544
|
+
f.chr = o.chr;
|
|
545
|
+
f.start = o.start;
|
|
546
|
+
f.stop = o.stop;
|
|
547
|
+
}
|
|
548
|
+
}
|
|
549
|
+
if (f.chr) {
|
|
550
|
+
const err = invalidcoord(this.genome, f.chr, f.start, f.stop);
|
|
551
|
+
if (err) {
|
|
552
|
+
throw 'feature "' + f.label + '" position error: ' + err;
|
|
553
|
+
} else {
|
|
554
|
+
return;
|
|
555
|
+
}
|
|
556
|
+
}
|
|
557
|
+
if (!f.genename) throw "position required for a feature: no position or genename given";
|
|
558
|
+
return dofetch("/genelookup", {
|
|
559
|
+
input: f.genename,
|
|
560
|
+
genome: this.genome.name,
|
|
561
|
+
deep: 1
|
|
562
|
+
}).then((data) => {
|
|
563
|
+
if (data.error) throw data.error;
|
|
564
|
+
if (!data.gmlst || data.gmlst.length == 0) throw "no gene can be found for " + f.genename;
|
|
565
|
+
const regions = [];
|
|
566
|
+
for (const gm of data.gmlst) {
|
|
567
|
+
let nooverlap = true;
|
|
568
|
+
for (const region of regions) {
|
|
569
|
+
if (gm.chr == region.chr && Math.max(gm.start, region.start) < Math.min(gm.stop, region.stop)) {
|
|
570
|
+
nooverlap = false;
|
|
571
|
+
region.start = Math.min(region.start, gm.start);
|
|
572
|
+
region.stop = Math.max(region.stop, gm.stop);
|
|
573
|
+
break;
|
|
574
|
+
}
|
|
575
|
+
}
|
|
576
|
+
if (nooverlap) {
|
|
577
|
+
regions.push({
|
|
578
|
+
chr: gm.chr,
|
|
579
|
+
start: gm.start,
|
|
580
|
+
stop: gm.stop
|
|
581
|
+
});
|
|
582
|
+
}
|
|
583
|
+
}
|
|
584
|
+
if (regions.length > 1) {
|
|
585
|
+
sayerror(
|
|
586
|
+
this.errdiv,
|
|
587
|
+
"multiple regions found for gene " + f.genename + " you'd better specify one in feature"
|
|
588
|
+
);
|
|
589
|
+
}
|
|
590
|
+
f.chr = regions[0].chr;
|
|
591
|
+
f.start = regions[0].start;
|
|
592
|
+
f.stop = regions[0].stop;
|
|
593
|
+
});
|
|
594
|
+
});
|
|
595
|
+
}
|
|
596
|
+
validate_feature(f) {
|
|
597
|
+
return Promise.resolve().then(() => {
|
|
598
|
+
f.id = Math.random().toString();
|
|
599
|
+
const tr = this.legendtable.append("tr");
|
|
600
|
+
f.legend_tr = tr;
|
|
601
|
+
if (f.isgenevalue) {
|
|
602
|
+
if (!f.genename) throw ".genename missing for isgenevalue feature";
|
|
603
|
+
f.label = f.genename + " expression";
|
|
604
|
+
if (this.dslabel) {
|
|
605
|
+
if (!f.querykey) throw ".querykey missing for isgenevalue feature while loading from official dataset";
|
|
606
|
+
} else {
|
|
607
|
+
}
|
|
608
|
+
if (!f.scale) f.scale = { auto: 1 };
|
|
609
|
+
if (f.missingvalue == void 0) f.missingvalue = 0;
|
|
610
|
+
tr.append("td").text(f.label).style("opacity", 0.5).style("text-align", "right");
|
|
611
|
+
f.legendholder = tr.append("td");
|
|
612
|
+
if (!f.width) f.width = 20;
|
|
613
|
+
if (!f.color) f.color = default_genevaluecolor;
|
|
614
|
+
return this.feature_parseposition_maygene(f);
|
|
615
|
+
}
|
|
616
|
+
if (f.iscnv) {
|
|
617
|
+
if (this.dslabel) {
|
|
618
|
+
if (!f.querykey) throw ".querykey missing for iscnv feature while loading from official dataset";
|
|
619
|
+
} else {
|
|
620
|
+
}
|
|
621
|
+
if (!f.label && f.genename) {
|
|
622
|
+
f.label = f.genename + " CNV";
|
|
623
|
+
}
|
|
624
|
+
tr.append("td").text(f.label).style("opacity", 0.5).style("text-align", "right");
|
|
625
|
+
f.legendholder = tr.append("td");
|
|
626
|
+
if (!f.width) f.width = 40;
|
|
627
|
+
if (!f.colorgain) f.colorgain = default_cnvgaincolor;
|
|
628
|
+
if (!f.colorloss) f.colorloss = default_cnvlosscolor;
|
|
629
|
+
return this.feature_parseposition_maygene(f).then(() => {
|
|
630
|
+
if (!f.label) f.label = f.chr + ":" + f.start + "-" + f.stop + " CNV";
|
|
631
|
+
f.coordscale = linear().domain([f.start, f.stop]).range([0, this.features_on_rows ? f.height : f.width]);
|
|
632
|
+
});
|
|
633
|
+
}
|
|
634
|
+
if (f.isloh) {
|
|
635
|
+
if (this.dslabel) {
|
|
636
|
+
if (!f.querykey) throw ".querykey missing for isloh feature while loading from official dataset";
|
|
637
|
+
} else {
|
|
638
|
+
}
|
|
639
|
+
if (!f.label && f.genename) {
|
|
640
|
+
f.label = f.genename + " LOH";
|
|
641
|
+
}
|
|
642
|
+
tr.append("td").text(f.label).style("opacity", 0.5).style("text-align", "right");
|
|
643
|
+
f.legendholder = tr.append("td");
|
|
644
|
+
if (!f.width) f.width = 40;
|
|
645
|
+
if (!f.color) f.color = default_lohcolor;
|
|
646
|
+
return this.feature_parseposition_maygene(f).then(() => {
|
|
647
|
+
if (!f.label) f.label = f.chr + ":" + f.start + "-" + f.stop + " LOH";
|
|
648
|
+
f.coordscale = linear().domain([f.start, f.stop]).range([0, this.features_on_rows ? f.height : f.width]);
|
|
649
|
+
});
|
|
650
|
+
}
|
|
651
|
+
if (f.isvcf) {
|
|
652
|
+
if (this.dslabel) {
|
|
653
|
+
if (!f.querykey) throw ".querykey missing for isvcf feature while loading from official dataset";
|
|
654
|
+
} else {
|
|
655
|
+
}
|
|
656
|
+
if (!f.label && f.genename) {
|
|
657
|
+
f.label = f.genename + " SNV/indel";
|
|
658
|
+
}
|
|
659
|
+
tr.append("td").text(f.label).style("opacity", 0.5).style("text-align", "right");
|
|
660
|
+
f.legendholder = tr.append("td");
|
|
661
|
+
if (!f.width) f.width = 20;
|
|
662
|
+
if (!f.snvindel) f.snvindel = {};
|
|
663
|
+
return this.feature_parseposition_maygene(f).then(() => {
|
|
664
|
+
if (!f.label) f.label = f.chr + ":" + f.start + "-" + f.stop + " SNV/indel";
|
|
665
|
+
});
|
|
666
|
+
}
|
|
667
|
+
if (f.isitd) {
|
|
668
|
+
if (this.dslabel) {
|
|
669
|
+
if (!f.querykey) throw ".querykey missing for isitd feature while loading from official dataset";
|
|
670
|
+
} else {
|
|
671
|
+
}
|
|
672
|
+
if (!f.label && f.genename) {
|
|
673
|
+
f.label = f.genename + " ITD";
|
|
674
|
+
}
|
|
675
|
+
if (!f.width) f.width = 20;
|
|
676
|
+
if (!f.color) f.color = mclass[mclassitd].color;
|
|
677
|
+
tr.append("td").text(f.label).style("opacity", 0.5).style("text-align", "right");
|
|
678
|
+
f.legendholder = tr.append("td");
|
|
679
|
+
f.legendholder.append("div").style("width", "20px").html(" ").style("background", f.color);
|
|
680
|
+
return this.feature_parseposition_maygene(f).then(() => {
|
|
681
|
+
if (!f.label) f.label = f.chr + ":" + f.start + "-" + f.stop + " ITD";
|
|
682
|
+
});
|
|
683
|
+
}
|
|
684
|
+
if (f.issvfusion) {
|
|
685
|
+
if (this.dslabel) {
|
|
686
|
+
if (!f.querykey) throw ".querykey missing for issvfusion feature while loading from official dataset";
|
|
687
|
+
} else {
|
|
688
|
+
}
|
|
689
|
+
if (!f.label && f.genename) {
|
|
690
|
+
f.label = f.genename + " SV/fusion";
|
|
691
|
+
}
|
|
692
|
+
if (!f.width) f.width = 20;
|
|
693
|
+
if (!f.color) f.color = default_svcolor;
|
|
694
|
+
tr.append("td").text(f.label).style("opacity", 0.5).style("text-align", "right");
|
|
695
|
+
f.legendholder = tr.append("td");
|
|
696
|
+
return this.feature_parseposition_maygene(f).then(() => {
|
|
697
|
+
if (!f.label) f.label = f.chr + ":" + f.start + "-" + f.stop + " SV/fusion";
|
|
698
|
+
});
|
|
699
|
+
}
|
|
700
|
+
if (f.issvcnv) {
|
|
701
|
+
if (this.dslabel) {
|
|
702
|
+
if (!f.querykey) throw ".querykey missing for issvcnv feature while loading from official dataset";
|
|
703
|
+
} else {
|
|
704
|
+
}
|
|
705
|
+
if (!f.label && f.genename) {
|
|
706
|
+
f.label = f.genename + " CNV/SV";
|
|
707
|
+
}
|
|
708
|
+
tr.append("td").text(f.label).style("color", "#858585").style("text-align", "right");
|
|
709
|
+
f.legendholder = tr.append("td");
|
|
710
|
+
initfeature_polymutation(f);
|
|
711
|
+
return this.feature_parseposition_maygene(f).then(() => {
|
|
712
|
+
if (!f.label) f.label = f.chr + ":" + f.start + "-" + f.stop + " CNV/SV";
|
|
713
|
+
});
|
|
714
|
+
}
|
|
715
|
+
if (f.ismutation) {
|
|
716
|
+
if (this.dslabel) {
|
|
717
|
+
if (!f.querykeylst) throw ".querykeylst missing for ismutation feature";
|
|
718
|
+
if (!Array.isArray(f.querykeylst)) throw ".querykeylst[] should be array for ismutation feature";
|
|
719
|
+
if (f.querykeylst.length == 0) throw "querykeylst[] empty array for ismutation feature";
|
|
720
|
+
} else {
|
|
721
|
+
}
|
|
722
|
+
if (!f.label && f.genename) {
|
|
723
|
+
f.label = f.genename + " mutation";
|
|
724
|
+
}
|
|
725
|
+
tr.append("td").text(f.label).style("opacity", 0.5).style("text-align", "right");
|
|
726
|
+
f.legendholder = tr.append("td");
|
|
727
|
+
initfeature_polymutation(f);
|
|
728
|
+
return this.feature_parseposition_maygene(f).then(() => {
|
|
729
|
+
if (!f.label) f.label = f.chr + ":" + f.start + "-" + f.stop + " mutation";
|
|
730
|
+
f.coordscale = linear().domain([f.start, f.stop]).range([0, this.features_on_rows ? f.height : f.width]);
|
|
731
|
+
});
|
|
732
|
+
}
|
|
733
|
+
if (f.issampleattribute) {
|
|
734
|
+
if (!this.dslabel) throw ".dslabel missing: sampleattribute only works for official dataset";
|
|
735
|
+
if (!f.key) throw ".key missing for issampleattribute feature";
|
|
736
|
+
if (!f.label) f.label = f.key;
|
|
737
|
+
if (this.mds && this.mds.sampleAttribute && this.mds.sampleAttribute.attributes) {
|
|
738
|
+
const registry = this.mds.sampleAttribute.attributes[f.key];
|
|
739
|
+
if (registry) {
|
|
740
|
+
f.values = registry.values;
|
|
741
|
+
}
|
|
742
|
+
}
|
|
743
|
+
if (!f.values) {
|
|
744
|
+
f.values = {};
|
|
745
|
+
}
|
|
746
|
+
f.assignmissingcolor = ordinal(category10_default);
|
|
747
|
+
if (!f.width && !this.features_on_rows) f.width = 20;
|
|
748
|
+
else if (!f.height && this.features_on_rows) f.height = 50;
|
|
749
|
+
tr.append("td").text(f.label).style("opacity", 0.5).style("text-align", "right");
|
|
750
|
+
f.legendholder = tr.append("td");
|
|
751
|
+
return Promise.resolve();
|
|
752
|
+
}
|
|
753
|
+
throw "unknown feature type in validating feature";
|
|
754
|
+
});
|
|
755
|
+
}
|
|
756
|
+
get_features(featureset) {
|
|
757
|
+
this.max_cnv = 0;
|
|
758
|
+
this.min_cnv = 0;
|
|
759
|
+
this.max_loh = 0;
|
|
760
|
+
this.min_loh = 0;
|
|
761
|
+
const arg = {
|
|
762
|
+
genome: this.genome.name,
|
|
763
|
+
limitsamplebyeitherannotation: this.limitsamplebyeitherannotation,
|
|
764
|
+
features: (featureset || this.features).map(feature2arg)
|
|
765
|
+
};
|
|
766
|
+
if (this.limitbysamplesetgroup) {
|
|
767
|
+
arg.sampleset = this.limitbysamplesetgroup.samples;
|
|
768
|
+
}
|
|
769
|
+
if (this.iscustom) {
|
|
770
|
+
arg.iscustom = 1;
|
|
771
|
+
arg.querykey2tracks = {};
|
|
772
|
+
for (const f of arg.features) {
|
|
773
|
+
if (f.querykey) {
|
|
774
|
+
arg.querykey2tracks[f.querykey] = this.querykey2tracks[f.querykey];
|
|
775
|
+
} else if (f.querykeylst) {
|
|
776
|
+
for (const k of f.querykeylst) arg.querykey2tracks[k] = this.querykey2tracks[k];
|
|
777
|
+
}
|
|
778
|
+
}
|
|
779
|
+
} else {
|
|
780
|
+
arg.dslabel = this.mds.label;
|
|
781
|
+
}
|
|
782
|
+
return dofetch("/samplematrix", arg).then((data) => {
|
|
783
|
+
if (data.error) {
|
|
784
|
+
for (const f0 of arg.features) {
|
|
785
|
+
const f = this.features.find((f2) => f2.id == f0.id);
|
|
786
|
+
if (f) f.items = [];
|
|
787
|
+
}
|
|
788
|
+
throw data.error;
|
|
789
|
+
}
|
|
790
|
+
for (const dat of data.results) {
|
|
791
|
+
const f = this.features.find((f2) => f2.id == dat.id);
|
|
792
|
+
if (!f) throw "feature not found: " + f.id;
|
|
793
|
+
f.items = dat.items;
|
|
794
|
+
this.prep_featuredata(f);
|
|
795
|
+
}
|
|
796
|
+
this.draw_matrix();
|
|
797
|
+
this.make_legend();
|
|
798
|
+
this.wait_div.style("display", "none");
|
|
799
|
+
});
|
|
800
|
+
}
|
|
801
|
+
update_singlefeature(f) {
|
|
802
|
+
this.get_features([f]).catch((err) => {
|
|
803
|
+
if (typeof err == "string") {
|
|
804
|
+
this.error(err);
|
|
805
|
+
} else {
|
|
806
|
+
this.error(err.message);
|
|
807
|
+
if (err.stack) console.log(err.stack);
|
|
808
|
+
}
|
|
809
|
+
});
|
|
810
|
+
}
|
|
811
|
+
addnewfeature_update(f) {
|
|
812
|
+
this.features.push(f);
|
|
813
|
+
this.validate_feature(f).then(() => {
|
|
814
|
+
return this.get_features([f]);
|
|
815
|
+
}).catch((err) => {
|
|
816
|
+
this.error(typeof err == "string" ? err : err.message);
|
|
817
|
+
if (err.stack) console.log(err.stack);
|
|
818
|
+
});
|
|
819
|
+
}
|
|
820
|
+
prep_featuredata(f) {
|
|
821
|
+
if (f.isgenevalue) {
|
|
822
|
+
f.scale.maxv = 0;
|
|
823
|
+
f.scale.minv = 0;
|
|
824
|
+
for (const i of f.items) {
|
|
825
|
+
f.scale.maxv = Math.max(f.scale.maxv, i.value);
|
|
826
|
+
}
|
|
827
|
+
return;
|
|
828
|
+
}
|
|
829
|
+
if (f.iscnv) {
|
|
830
|
+
const gain = [], loss = [];
|
|
831
|
+
for (const i of f.items) {
|
|
832
|
+
if (i.value > 0) {
|
|
833
|
+
gain.push(i.value);
|
|
834
|
+
} else {
|
|
835
|
+
loss.push(-i.value);
|
|
836
|
+
}
|
|
837
|
+
}
|
|
838
|
+
const gmax = getMax_byiqr(gain, 0);
|
|
839
|
+
const lmax = getMax_byiqr(loss, 0);
|
|
840
|
+
f.maxabslogratio = Math.max(gmax, lmax);
|
|
841
|
+
if (f.maxabslogratio > this.max_cnv) this.max_cnv = f.maxabslogratio;
|
|
842
|
+
return;
|
|
843
|
+
}
|
|
844
|
+
if (f.isloh) {
|
|
845
|
+
const values = f.items.map((i) => i.segmean);
|
|
846
|
+
f.minvalue = 0;
|
|
847
|
+
f.maxvalue = Math.max(...values);
|
|
848
|
+
if (f.maxvalue > this.max_loh) this.max_loh = f.maxvalue;
|
|
849
|
+
return;
|
|
850
|
+
}
|
|
851
|
+
if (f.isvcf) {
|
|
852
|
+
return;
|
|
853
|
+
}
|
|
854
|
+
if (f.isitd) {
|
|
855
|
+
return;
|
|
856
|
+
}
|
|
857
|
+
if (f.issvfusion) {
|
|
858
|
+
return;
|
|
859
|
+
}
|
|
860
|
+
if (f.issvcnv || f.ismutation) {
|
|
861
|
+
const cnvgain = [], cnvloss = [];
|
|
862
|
+
let lohmax = 0;
|
|
863
|
+
for (const i of f.items) {
|
|
864
|
+
if (i.dt == dtcnv) {
|
|
865
|
+
if (i.value > 0) {
|
|
866
|
+
cnvgain.push(i.value);
|
|
867
|
+
} else {
|
|
868
|
+
cnvloss.push(-i.value);
|
|
869
|
+
}
|
|
870
|
+
} else if (i.dt == dtloh) {
|
|
871
|
+
lohmax = Math.max(i.segmean, lohmax);
|
|
872
|
+
}
|
|
873
|
+
}
|
|
874
|
+
if (cnvgain.length + cnvloss.length > 0) {
|
|
875
|
+
const gmax = getMax_byiqr(cnvgain, 0);
|
|
876
|
+
const lmax = getMax_byiqr(cnvloss, 0);
|
|
877
|
+
f.cnv.maxabslogratio = Math.max(gmax, lmax);
|
|
878
|
+
if (f.cnv.maxabslogratio > this.max_cnv) {
|
|
879
|
+
this.max_cnv = f.cnv.maxabslogratio;
|
|
880
|
+
this.min_cnv = -f.cnv.maxabslogratio;
|
|
881
|
+
this.cnv_colorloss = f.cnv.colorloss;
|
|
882
|
+
this.cnv_colorgain = f.cnv.colorgain;
|
|
883
|
+
}
|
|
884
|
+
}
|
|
885
|
+
if (lohmax) {
|
|
886
|
+
f.loh.minvalue = 0;
|
|
887
|
+
f.loh.maxvalue = lohmax;
|
|
888
|
+
if (f.loh.maxvalue > this.max_loh) this.max_loh = f.loh.maxvalue;
|
|
889
|
+
this.loh_color = f.loh.color;
|
|
890
|
+
}
|
|
891
|
+
return;
|
|
892
|
+
}
|
|
893
|
+
if (f.issampleattribute) {
|
|
894
|
+
for (const i of f.items) {
|
|
895
|
+
if (!f.values[i.value]) {
|
|
896
|
+
f.values[i.value] = {
|
|
897
|
+
name: i.value,
|
|
898
|
+
color: f.assignmissingcolor(i.value)
|
|
899
|
+
};
|
|
900
|
+
}
|
|
901
|
+
}
|
|
902
|
+
return;
|
|
903
|
+
}
|
|
904
|
+
throw "unknown feature type in preparing feature data";
|
|
905
|
+
}
|
|
906
|
+
make_legend() {
|
|
907
|
+
for (const f of this.features) {
|
|
908
|
+
const h = f.legendholder;
|
|
909
|
+
h.selectAll("*").remove();
|
|
910
|
+
if (f.isgenevalue) {
|
|
911
|
+
h.append("span").text(f.scale.minv.toFixed(3));
|
|
912
|
+
h.append("div").style("margin", "2px 10px").style("display", "inline-block").style("width", "100px").style("height", "15px").style("background", "linear-gradient( to right, white, " + f.color + ")");
|
|
913
|
+
h.append("span").text(f.scale.maxv.toFixed(3));
|
|
914
|
+
continue;
|
|
915
|
+
}
|
|
916
|
+
if (f.iscnv) {
|
|
917
|
+
h.append("span").html(
|
|
918
|
+
'Gain <span style="background:' + f.colorgain + ';color:white;padding:1px 5px">' + f.maxabslogratio.toFixed(3) + '</span> Loss <span style="background:' + f.colorloss + ';color:white;padding:1px 5px">-' + f.maxabslogratio.toFixed(3) + "</span>"
|
|
919
|
+
);
|
|
920
|
+
continue;
|
|
921
|
+
}
|
|
922
|
+
if (f.isloh) {
|
|
923
|
+
h.append("span").text(f.minvalue.toFixed(3));
|
|
924
|
+
h.append("div").style("margin", "2px 10px").style("display", "inline-block").style("width", "100px").style("height", "15px").style("background", "linear-gradient( to right, white, " + f.color + ")");
|
|
925
|
+
h.append("span").text(f.maxvalue.toFixed(3));
|
|
926
|
+
continue;
|
|
927
|
+
}
|
|
928
|
+
if (f.isvcf) {
|
|
929
|
+
const classes = /* @__PURE__ */ new Set();
|
|
930
|
+
for (const m of f.items) {
|
|
931
|
+
if (m.class) {
|
|
932
|
+
classes.add(m.class);
|
|
933
|
+
} else {
|
|
934
|
+
}
|
|
935
|
+
}
|
|
936
|
+
for (const c of classes) {
|
|
937
|
+
const cell = h.append("div").style("display", "inline-block").style("margin-right", "10px");
|
|
938
|
+
cell.append("span").style("background", mclass[c].color).style("margin-right", "2px").html(" ");
|
|
939
|
+
cell.append("span").text(mclass[c].label).style("color", mclass[c].color);
|
|
940
|
+
}
|
|
941
|
+
continue;
|
|
942
|
+
}
|
|
943
|
+
if (f.isitd) {
|
|
944
|
+
continue;
|
|
945
|
+
}
|
|
946
|
+
if (f.issvfusion) {
|
|
947
|
+
continue;
|
|
948
|
+
}
|
|
949
|
+
if (f.issvcnv || f.ismutation) {
|
|
950
|
+
const vcfclass2count = /* @__PURE__ */ new Map();
|
|
951
|
+
let itdcount = 0;
|
|
952
|
+
let svcount = 0;
|
|
953
|
+
let fusioncount = 0;
|
|
954
|
+
for (const i of f.items) {
|
|
955
|
+
if (i.dt == dtsnvindel) {
|
|
956
|
+
if (i.class && i.sampledata) {
|
|
957
|
+
if (!vcfclass2count.has(i.class)) {
|
|
958
|
+
vcfclass2count.set(i.class, 0);
|
|
959
|
+
}
|
|
960
|
+
vcfclass2count.set(i.class, vcfclass2count.get(i.class) + i.sampledata.length);
|
|
961
|
+
} else {
|
|
962
|
+
}
|
|
963
|
+
} else if (i.dt == dtitd) {
|
|
964
|
+
itdcount++;
|
|
965
|
+
} else if (i.dt == dtsv) {
|
|
966
|
+
svcount++;
|
|
967
|
+
} else if (i.dt == dtfusionrna) {
|
|
968
|
+
fusioncount++;
|
|
969
|
+
}
|
|
970
|
+
}
|
|
971
|
+
if (vcfclass2count.size + itdcount + svcount + fusioncount > 0) {
|
|
972
|
+
const row = h.append("div").style("margin-bottom", "5px").style("white-space", "nowrap");
|
|
973
|
+
for (const [classname, count] of vcfclass2count) {
|
|
974
|
+
const c = mclass[classname];
|
|
975
|
+
const cell = row.append("div").style("display", "inline-block").style("margin-right", "20px");
|
|
976
|
+
cell.append("span").attr("class", "sja_mcdot").style("background", c.color).text(count);
|
|
977
|
+
cell.append("span").text(c.label).style("color", c.color);
|
|
978
|
+
}
|
|
979
|
+
if (itdcount) {
|
|
980
|
+
const cell = row.append("div").style("display", "inline-block").style("margin-right", "20px");
|
|
981
|
+
cell.append("span").attr("class", "sja_mcdot").style("background", f.itd.color).text(itdcount);
|
|
982
|
+
cell.append("span").text("ITD");
|
|
983
|
+
}
|
|
984
|
+
if (svcount) {
|
|
985
|
+
const cell = row.append("div").style("display", "inline-block").style("margin-right", "20px");
|
|
986
|
+
cell.append("span").attr("class", "sja_mcdot").style("background", f.sv.color).text(svcount);
|
|
987
|
+
cell.append("span").text("SV");
|
|
988
|
+
}
|
|
989
|
+
if (fusioncount) {
|
|
990
|
+
const cell = row.append("div").style("display", "inline-block").style("margin-right", "20px");
|
|
991
|
+
cell.append("span").attr("class", "sja_mcdot").style("background", f.fusion.color).text(fusioncount);
|
|
992
|
+
cell.append("span").text("Fusion");
|
|
993
|
+
}
|
|
994
|
+
}
|
|
995
|
+
continue;
|
|
996
|
+
}
|
|
997
|
+
if (f.issampleattribute) {
|
|
998
|
+
const value2count = /* @__PURE__ */ new Map();
|
|
999
|
+
for (const sample of this.samples) {
|
|
1000
|
+
const anno = f.items.find((i) => i.sample == sample.name);
|
|
1001
|
+
if (anno) {
|
|
1002
|
+
value2count.set(anno.value, (value2count.get(anno.value) || 0) + 1);
|
|
1003
|
+
}
|
|
1004
|
+
}
|
|
1005
|
+
for (const [value, count] of value2count) {
|
|
1006
|
+
const cell = h.append("div").style("display", "inline-block").style("margin-right", "20px");
|
|
1007
|
+
cell.append("span").attr("class", "sja_mcdot").style("background", f.values[value].color).text(count);
|
|
1008
|
+
cell.append("span").text(f.values[value].name);
|
|
1009
|
+
}
|
|
1010
|
+
continue;
|
|
1011
|
+
}
|
|
1012
|
+
throw "unknown feature type in making legend";
|
|
1013
|
+
}
|
|
1014
|
+
this.makeGlobalCnvLohLegend();
|
|
1015
|
+
}
|
|
1016
|
+
makeGlobalCnvLohLegend() {
|
|
1017
|
+
const legend_data = [
|
|
1018
|
+
{ type: "cnv", legend_label: "CNV log2(ratio): " },
|
|
1019
|
+
{ type: "loh", legend_label: "LOH seg.mean: " }
|
|
1020
|
+
];
|
|
1021
|
+
const min_cnv_orig = parseFloat(this.min_cnv.toFixed(3));
|
|
1022
|
+
const max_cnv_orig = parseFloat(this.max_cnv.toFixed(3));
|
|
1023
|
+
const min_loh_orig = parseFloat(this.min_loh.toFixed(3));
|
|
1024
|
+
const max_loh_orig = parseFloat(this.max_loh.toFixed(3));
|
|
1025
|
+
let changed_flag = false;
|
|
1026
|
+
legend_data.forEach((data) => {
|
|
1027
|
+
let min_cutoff = data.type == "cnv" ? this.min_cnv : this.min_loh;
|
|
1028
|
+
let max_cutoff = data.type == "cnv" ? this.max_cnv : this.max_loh;
|
|
1029
|
+
const td = data.type == "cnv" ? this.legendtable.cnv_td : this.legendtable.loh_td;
|
|
1030
|
+
const row = td.append("div").style("margin-bottom", "5px");
|
|
1031
|
+
row.append("span").text(data.legend_label);
|
|
1032
|
+
const lower_range_txt = row.append("span").text(min_cutoff.toFixed(3));
|
|
1033
|
+
const lower_range_input = row.append("input").attr("type", "text").attr("size", 8).style("display", "none").property("value", min_cutoff.toFixed(3));
|
|
1034
|
+
if (data.type == "cnv") {
|
|
1035
|
+
row.append("div").style("margin", "4px 0 1px 10px").style("display", "inline-block").style("width", "50px").style("height", "15px").style("background", "linear-gradient( to right," + this.cnv_colorloss + ",white)");
|
|
1036
|
+
}
|
|
1037
|
+
row.append("div").style("margin", "4px 10px 1px 10px").style("margin-left", data.type == "cnv" ? "0" : "10px").style("display", "inline-block").style("width", data.type == "cnv" ? "50px" : "100px").style("height", "15px").style(
|
|
1038
|
+
"background",
|
|
1039
|
+
"linear-gradient( to right, white, " + (data.type == "cnv" ? this.cnv_colorgain : this.loh_color) + ")"
|
|
1040
|
+
);
|
|
1041
|
+
const upper_range_txt = row.append("span").text(max_cutoff.toFixed(3));
|
|
1042
|
+
const upper_range_input = row.append("input").attr("type", "text").attr("size", 8).style("display", "none").property("value", max_cutoff.toFixed(3));
|
|
1043
|
+
const edit_btn = row.append("button").style("margin", "2px 5px").style("padding", "3px 10px").text("Edit").on("click", () => {
|
|
1044
|
+
lower_range_txt.style("display", "none");
|
|
1045
|
+
upper_range_txt.style("display", "none");
|
|
1046
|
+
lower_range_input.style("display", "inline-block");
|
|
1047
|
+
upper_range_input.style("display", "inline-block");
|
|
1048
|
+
edit_btn.style("display", "none");
|
|
1049
|
+
submit_btn.style("display", "inline-block");
|
|
1050
|
+
});
|
|
1051
|
+
const submit_btn = row.append("button").style("display", "none").style("margin", "2px 5px").style("padding", "3px 10px").text("Submit").on("click", () => {
|
|
1052
|
+
if (data.type == "cnv") {
|
|
1053
|
+
this.min_cnv = min_cutoff = lower_range_input.property("value");
|
|
1054
|
+
this.max_cnv = max_cutoff = upper_range_input.property("value");
|
|
1055
|
+
if (this.min_cnv != min_cnv_orig || this.max_cnv != max_cnv_orig) changed_flag = true;
|
|
1056
|
+
} else {
|
|
1057
|
+
this.min_loh = min_cutoff = parseFloat(lower_range_input.property("value"));
|
|
1058
|
+
this.max_loh = max_cutoff = parseFloat(upper_range_input.property("value"));
|
|
1059
|
+
if (this.min_loh != min_loh_orig || this.max_loh != max_loh_orig) changed_flag = true;
|
|
1060
|
+
}
|
|
1061
|
+
lower_range_txt.style("display", "inline-block").text(parseFloat(min_cutoff).toFixed(3));
|
|
1062
|
+
upper_range_txt.style("display", "inline-block").text(parseFloat(max_cutoff).toFixed(3));
|
|
1063
|
+
lower_range_input.style("display", "none");
|
|
1064
|
+
upper_range_input.style("display", "none");
|
|
1065
|
+
edit_btn.style("display", "inline-block");
|
|
1066
|
+
submit_btn.style("display", "none");
|
|
1067
|
+
reset_btn.style("display", changed_flag ? "inline-block" : "none");
|
|
1068
|
+
this.draw_matrix();
|
|
1069
|
+
});
|
|
1070
|
+
const reset_btn = row.append("button").style("display", "none").style("margin", "2px 5px").style("padding", "3px 10px").text("Reset").on("click", () => {
|
|
1071
|
+
if (data.type == "cnv") {
|
|
1072
|
+
this.min_cnv = min_cutoff = min_cnv_orig;
|
|
1073
|
+
this.max_cnv = max_cutoff = max_cnv_orig;
|
|
1074
|
+
} else {
|
|
1075
|
+
this.min_loh = min_cutoff = min_loh_orig;
|
|
1076
|
+
this.max_loh = max_cutoff = max_loh_orig;
|
|
1077
|
+
}
|
|
1078
|
+
lower_range_txt.text(parseFloat(min_cutoff).toFixed(3));
|
|
1079
|
+
upper_range_txt.text(parseFloat(max_cutoff).toFixed(3));
|
|
1080
|
+
lower_range_input.property("value", parseFloat(min_cutoff).toFixed(3));
|
|
1081
|
+
upper_range_input.property("value", parseFloat(max_cutoff).toFixed(3));
|
|
1082
|
+
reset_btn.style("display", "none");
|
|
1083
|
+
changed_flag = false;
|
|
1084
|
+
this.draw_matrix();
|
|
1085
|
+
});
|
|
1086
|
+
reset_btn.style("display", "none");
|
|
1087
|
+
});
|
|
1088
|
+
}
|
|
1089
|
+
gatherSamplesFromFeatureData() {
|
|
1090
|
+
const name2sample = /* @__PURE__ */ new Map();
|
|
1091
|
+
for (const feature of this.features) {
|
|
1092
|
+
if (feature.donotaddsample) {
|
|
1093
|
+
continue;
|
|
1094
|
+
}
|
|
1095
|
+
if (feature.isgenevalue || feature.iscnv || feature.isloh || feature.isitd || feature.issvfusion || feature.issvcnv) {
|
|
1096
|
+
for (const item of feature.items) {
|
|
1097
|
+
if (!name2sample.has(item.sample)) {
|
|
1098
|
+
name2sample.set(item.sample, {});
|
|
1099
|
+
}
|
|
1100
|
+
}
|
|
1101
|
+
} else if (feature.isvcf) {
|
|
1102
|
+
for (const m of feature.items) {
|
|
1103
|
+
if (m.dt == dtsnvindel) {
|
|
1104
|
+
if (!m.sampledata) continue;
|
|
1105
|
+
for (const s of m.sampledata) {
|
|
1106
|
+
if (!name2sample.has(s.sampleobj.name)) {
|
|
1107
|
+
name2sample.set(s.sampleobj.name, {});
|
|
1108
|
+
}
|
|
1109
|
+
}
|
|
1110
|
+
} else {
|
|
1111
|
+
console.error("unsupported dt from isvcf: " + m.dt);
|
|
1112
|
+
}
|
|
1113
|
+
}
|
|
1114
|
+
} else if (feature.ismutation) {
|
|
1115
|
+
for (const m of feature.items) {
|
|
1116
|
+
if (m.dt == dtsnvindel) {
|
|
1117
|
+
if (!m.sampledata) continue;
|
|
1118
|
+
for (const s of m.sampledata) {
|
|
1119
|
+
if (!name2sample.has(s.sampleobj.name)) {
|
|
1120
|
+
name2sample.set(s.sampleobj.name, {});
|
|
1121
|
+
}
|
|
1122
|
+
}
|
|
1123
|
+
} else {
|
|
1124
|
+
if (!m.sample) continue;
|
|
1125
|
+
if (!name2sample.has(m.sample)) {
|
|
1126
|
+
name2sample.set(m.sample, {});
|
|
1127
|
+
}
|
|
1128
|
+
}
|
|
1129
|
+
}
|
|
1130
|
+
} else if (feature.issampleattribute) {
|
|
1131
|
+
for (const i of feature.items) {
|
|
1132
|
+
if (!name2sample.has(i.sample)) {
|
|
1133
|
+
name2sample.set(i.sample, {});
|
|
1134
|
+
}
|
|
1135
|
+
}
|
|
1136
|
+
} else {
|
|
1137
|
+
console.error("unknown feature type from this.data");
|
|
1138
|
+
}
|
|
1139
|
+
}
|
|
1140
|
+
const uniformheight = Math.min(18, Math.max(1, Math.ceil(800 / name2sample.size)));
|
|
1141
|
+
this.samples = [];
|
|
1142
|
+
for (const [n, sample] of name2sample) {
|
|
1143
|
+
if (!this.features_on_rows) sample.height = uniformheight;
|
|
1144
|
+
else sample.width = uniformheight;
|
|
1145
|
+
sample.name = n;
|
|
1146
|
+
this.samples.push(sample);
|
|
1147
|
+
}
|
|
1148
|
+
}
|
|
1149
|
+
/*********** __draw *****/
|
|
1150
|
+
draw_matrix() {
|
|
1151
|
+
this.svg.selectAll("*").remove();
|
|
1152
|
+
const svgg = this.svg.append("g");
|
|
1153
|
+
this.gatherSamplesFromFeatureData();
|
|
1154
|
+
this.sortsamplesbyfeatures();
|
|
1155
|
+
const rows_lst = this.features_on_rows ? this.features : this.samples;
|
|
1156
|
+
const cols_lst = this.features_on_rows ? this.samples : this.features;
|
|
1157
|
+
let y = 0, samplenamemaxwidth = 0;
|
|
1158
|
+
for (const r of rows_lst) {
|
|
1159
|
+
r.g = svgg.append("g").attr("transform", "translate(0," + y + ")");
|
|
1160
|
+
y += r.height + this.rowspace;
|
|
1161
|
+
if (r.height >= minheight2showname) {
|
|
1162
|
+
r.g.append("text").attr("font-family", font).attr("font-size", Math.min(16, r.height)).attr("text-anchor", "end").attr("dominant-baseline", "central").attr("x", -this.rowlabspace - this.rowlabticksize).attr("y", r.height / 2).text(this.features_on_rows ? r.label + (r.count ? " (" + r.count + ")" : "") : r.name).each(function() {
|
|
1163
|
+
samplenamemaxwidth = Math.max(samplenamemaxwidth, this.getBBox().width);
|
|
1164
|
+
}).attr("class", "sja_clbtext").on("mouseover", () => {
|
|
1165
|
+
this.features_on_rows ? this.showTip_feature(r) : this.showTip_sample(r);
|
|
1166
|
+
}).on("mouseout", () => {
|
|
1167
|
+
this.tip.hide();
|
|
1168
|
+
}).on("click", () => {
|
|
1169
|
+
if (this.features_on_rows) this.showMenu_feature(r);
|
|
1170
|
+
});
|
|
1171
|
+
r.g.append("line").attr("x1", -this.rowlabticksize).attr("y1", r.height / 2).attr("y2", r.height / 2).attr("stroke", "black").attr("shape-rendering", "crispEdges");
|
|
1172
|
+
}
|
|
1173
|
+
}
|
|
1174
|
+
let x = 0, featurenamemaxwidth = 0;
|
|
1175
|
+
for (const c of cols_lst) {
|
|
1176
|
+
const g = svgg.append("g").attr("transform", "translate(" + (x + c.width / 2) + ",-" + (this.collabspace + this.collabticksize) + ")");
|
|
1177
|
+
x += c.width + this.colspace;
|
|
1178
|
+
const label = g.append("text").attr("font-family", font).attr("font-size", Math.min(16, c.width - 2)).attr("dominant-baseline", "central").attr("transform", "rotate(-90)").text(this.features_on_rows ? c.name : c.label + (c.count ? " (" + c.count + ")" : "")).each(function() {
|
|
1179
|
+
featurenamemaxwidth = Math.max(featurenamemaxwidth, this.getBBox().width);
|
|
1180
|
+
}).on("mouseover", () => {
|
|
1181
|
+
this.features_on_rows ? this.showTip_sample(c) : this.showTip_feature(c);
|
|
1182
|
+
}).on("mouseout", () => {
|
|
1183
|
+
this.tip.hide();
|
|
1184
|
+
}).on("click", () => {
|
|
1185
|
+
if (!this.features_on_rows) this.showMenu_feature(c);
|
|
1186
|
+
});
|
|
1187
|
+
if (c.isgenevalue) {
|
|
1188
|
+
label.attr("fill", c.color);
|
|
1189
|
+
}
|
|
1190
|
+
g.append("line").attr("y1", this.collabspace).attr("y2", this.collabspace + this.collabticksize).attr("stroke", "black").attr("shape-rendering", "crispEdges");
|
|
1191
|
+
}
|
|
1192
|
+
for (const r of rows_lst) {
|
|
1193
|
+
let x2 = 0;
|
|
1194
|
+
for (const c of cols_lst) {
|
|
1195
|
+
const sample = this.features_on_rows ? c : r;
|
|
1196
|
+
const feature = this.features_on_rows ? r : c;
|
|
1197
|
+
const cell = r.g.append("g").attr("transform", "translate(" + x2 + ",0)");
|
|
1198
|
+
x2 += c.width + this.colspace;
|
|
1199
|
+
if (feature.isgenevalue) {
|
|
1200
|
+
this.drawCell_isgenevalue(sample, feature, cell);
|
|
1201
|
+
} else if (feature.iscnv) {
|
|
1202
|
+
this.drawCell_iscnv(sample, feature, cell);
|
|
1203
|
+
} else if (feature.isloh) {
|
|
1204
|
+
this.drawCell_isloh(sample, feature, cell);
|
|
1205
|
+
} else if (feature.isvcf) {
|
|
1206
|
+
this.drawCell_isvcf(sample, feature, cell);
|
|
1207
|
+
} else if (feature.isitd) {
|
|
1208
|
+
this.drawCell_isitd(sample, feature, cell);
|
|
1209
|
+
} else if (feature.issvfusion) {
|
|
1210
|
+
this.drawCell_issvfusion(sample, feature, cell);
|
|
1211
|
+
} else if (feature.issvcnv || feature.ismutation) {
|
|
1212
|
+
this.drawCell_ismutation(sample, feature, cell);
|
|
1213
|
+
} else if (feature.issampleattribute) {
|
|
1214
|
+
this.drawCell_issampleattribute(sample, feature, cell);
|
|
1215
|
+
} else {
|
|
1216
|
+
console.error("unknown feature type when drawing cell");
|
|
1217
|
+
}
|
|
1218
|
+
}
|
|
1219
|
+
}
|
|
1220
|
+
svgg.attr(
|
|
1221
|
+
"transform",
|
|
1222
|
+
"translate(" + (samplenamemaxwidth + this.rowlabspace + this.rowlabticksize) + "," + (featurenamemaxwidth + this.collabspace + this.collabticksize) + ")"
|
|
1223
|
+
);
|
|
1224
|
+
this.svg.attr(
|
|
1225
|
+
"width",
|
|
1226
|
+
samplenamemaxwidth + this.rowlabspace + this.rowlabticksize + cols_lst.reduce((i, j) => i + j.width, 0) + cols_lst.length * this.colspace
|
|
1227
|
+
).attr(
|
|
1228
|
+
"height",
|
|
1229
|
+
featurenamemaxwidth + this.collabspace + this.collabticksize + rows_lst.reduce((i, j) => i + j.height, 0) + rows_lst.length * this.rowspace
|
|
1230
|
+
);
|
|
1231
|
+
}
|
|
1232
|
+
drawCell_isgenevalue(sample, feature, g) {
|
|
1233
|
+
const height = this.features_on_rows ? feature.height : sample.height;
|
|
1234
|
+
const width = this.features_on_rows ? sample.width : feature.width;
|
|
1235
|
+
const item = feature.items.find((i) => i.sample == sample.name);
|
|
1236
|
+
if (!item) {
|
|
1237
|
+
this.drawEmptycell(sample, feature, g);
|
|
1238
|
+
return;
|
|
1239
|
+
}
|
|
1240
|
+
const rect = g.append("rect").attr("width", width).attr("height", height).attr("fill", feature.color).attr("stroke", "#ccc").attr("stroke-opacity", 0).attr("shape-rendering", "crispEdges").on("mouseover", (event2) => {
|
|
1241
|
+
event2.target.setAttribute("stroke-opacity", 1);
|
|
1242
|
+
this.showTip_cell(sample, feature);
|
|
1243
|
+
}).on("mouseout", (event2) => {
|
|
1244
|
+
event2.target.setAttribute("stroke-opacity", 0);
|
|
1245
|
+
this.tip.hide();
|
|
1246
|
+
}).on("click", () => {
|
|
1247
|
+
this.click_cell(sample, feature);
|
|
1248
|
+
});
|
|
1249
|
+
if (item.value < feature.scale.maxv) {
|
|
1250
|
+
rect.attr("fill-opacity", item.value / feature.scale.maxv);
|
|
1251
|
+
}
|
|
1252
|
+
}
|
|
1253
|
+
drawCell_iscnv(sample, feature, g) {
|
|
1254
|
+
const height = this.features_on_rows ? feature.height : sample.height;
|
|
1255
|
+
const width = this.features_on_rows ? sample.width : feature.width;
|
|
1256
|
+
const items = feature.items.filter((i) => i.sample == sample.name);
|
|
1257
|
+
if (items.length == 0) {
|
|
1258
|
+
this.drawEmptycell(sample, feature, g);
|
|
1259
|
+
return;
|
|
1260
|
+
}
|
|
1261
|
+
for (const item of items) {
|
|
1262
|
+
const x1 = feature.coordscale(Math.max(feature.start, item.start));
|
|
1263
|
+
const x2 = feature.coordscale(Math.min(feature.stop, item.stop));
|
|
1264
|
+
const maxabslogratio = this.max_cnv;
|
|
1265
|
+
g.append("rect").attr("x", x1).attr("width", Math.max(1, x2 - x1)).attr("height", sample.height).attr("fill", item.value > 0 ? feature.colorgain : feature.colorloss).attr("fill-opacity", Math.abs(item.value / maxabslogratio)).attr("shape-rendering", "crispEdges");
|
|
1266
|
+
}
|
|
1267
|
+
g.append("rect").attr("fill", "white").attr("fill-opacity", 0).attr("width", width).attr("height", height).attr("stroke", "#ccc").attr("stroke-opacity", 0).attr("shape-rendering", "crispEdges").on("mouseover", (event2) => {
|
|
1268
|
+
event2.target.setAttribute("stroke-opacity", 1);
|
|
1269
|
+
this.showTip_cell(sample, feature);
|
|
1270
|
+
}).on("mouseout", (event2) => {
|
|
1271
|
+
event2.target.setAttribute("stroke-opacity", 0);
|
|
1272
|
+
this.tip.hide();
|
|
1273
|
+
}).on("click", () => {
|
|
1274
|
+
this.click_cell(sample, feature);
|
|
1275
|
+
});
|
|
1276
|
+
}
|
|
1277
|
+
drawCell_isloh(sample, feature, g) {
|
|
1278
|
+
const height = this.features_on_rows ? feature.height : sample.height;
|
|
1279
|
+
const width = this.features_on_rows ? sample.width : feature.width;
|
|
1280
|
+
const items = feature.items.filter((i) => i.sample == sample.name);
|
|
1281
|
+
if (items.length == 0) {
|
|
1282
|
+
this.drawEmptycell(sample, feature, g);
|
|
1283
|
+
return;
|
|
1284
|
+
}
|
|
1285
|
+
for (const item of items) {
|
|
1286
|
+
const x1 = feature.coordscale(Math.max(feature.start, item.start));
|
|
1287
|
+
const x2 = feature.coordscale(Math.min(feature.stop, item.stop));
|
|
1288
|
+
const loh_range = this.max_loh - this.min_loh;
|
|
1289
|
+
g.append("rect").attr("x", this.features_on_rows ? 0 : x1).attr("y", this.features_on_rows ? x1 : 0).attr("width", this.features_on_rows ? width : Math.max(1, x2 - x1)).attr("height", this.features_on_rows ? Math.max(1, x2 - x1) : height).attr("fill", feature.color).attr("fill-opacity", (item.segmean - this.min_loh) / loh_range).attr("shape-rendering", "crispEdges");
|
|
1290
|
+
}
|
|
1291
|
+
g.append("rect").attr("fill", "white").attr("fill-opacity", 0).attr("width", width).attr("height", height).attr("stroke", "#ccc").attr("stroke-opacity", 0).attr("shape-rendering", "crispEdges").on("mouseover", (event2) => {
|
|
1292
|
+
event2.target.setAttribute("stroke-opacity", 1);
|
|
1293
|
+
this.showTip_cell(sample, feature);
|
|
1294
|
+
}).on("mouseout", (event2) => {
|
|
1295
|
+
event2.target.setAttribute("stroke-opacity", 0);
|
|
1296
|
+
this.tip.hide();
|
|
1297
|
+
}).on("click", () => {
|
|
1298
|
+
this.click_cell(sample, feature);
|
|
1299
|
+
});
|
|
1300
|
+
}
|
|
1301
|
+
drawCell_isvcf(sample, feature, g) {
|
|
1302
|
+
const height = this.features_on_rows ? feature.height : sample.height;
|
|
1303
|
+
const width = this.features_on_rows ? sample.width : feature.width;
|
|
1304
|
+
const mlst = getitemforsample_vcf(feature, sample);
|
|
1305
|
+
if (mlst.length == 0) {
|
|
1306
|
+
this.drawEmptycell(sample, feature, g);
|
|
1307
|
+
return;
|
|
1308
|
+
}
|
|
1309
|
+
const class2count = /* @__PURE__ */ new Map();
|
|
1310
|
+
for (const m of mlst) {
|
|
1311
|
+
if (!class2count.has(m.class)) {
|
|
1312
|
+
class2count.set(m.class, 0);
|
|
1313
|
+
}
|
|
1314
|
+
class2count.set(m.class, class2count.get(m.class) + 1);
|
|
1315
|
+
}
|
|
1316
|
+
let start = 0;
|
|
1317
|
+
for (const [cname, count] of class2count) {
|
|
1318
|
+
const span = count / mlst.length * this.features_on_rows ? height : width;
|
|
1319
|
+
g.append("rect").attr("x", this.features_on_rows ? 0 : start).attr("y", this.features_on_rows ? start : 0).attr("width", this.features_on_rows ? width : span).attr("height", this.features_on_rows ? span : height).attr("fill", mclass[cname].color).attr("shape-rendering", "crispEdges");
|
|
1320
|
+
start += span;
|
|
1321
|
+
}
|
|
1322
|
+
g.append("rect").attr("fill", "white").attr("fill-opacity", 0).attr("width", width).attr("height", height).attr("stroke", "#ccc").attr("stroke-opacity", 0).attr("shape-rendering", "crispEdges").on("mouseover", (event2) => {
|
|
1323
|
+
event2.target.setAttribute("stroke-opacity", 1);
|
|
1324
|
+
this.showTip_cell(sample, feature);
|
|
1325
|
+
}).on("mouseout", (event2) => {
|
|
1326
|
+
event2.target.setAttribute("stroke-opacity", 0);
|
|
1327
|
+
this.tip.hide();
|
|
1328
|
+
}).on("click", () => {
|
|
1329
|
+
this.click_cell(sample, feature);
|
|
1330
|
+
});
|
|
1331
|
+
}
|
|
1332
|
+
drawCell_isitd(sample, feature, g) {
|
|
1333
|
+
const height = this.features_on_rows ? feature.height : sample.height;
|
|
1334
|
+
const width = this.features_on_rows ? sample.width : feature.width;
|
|
1335
|
+
const item = feature.items.find((i) => i.sample == sample.name);
|
|
1336
|
+
if (!item) {
|
|
1337
|
+
this.drawEmptycell(sample, feature, g);
|
|
1338
|
+
return;
|
|
1339
|
+
}
|
|
1340
|
+
g.append("rect").attr("width", width).attr("height", height).attr("fill", feature.color).attr("stroke", "#ccc").attr("stroke-opacity", 0).attr("shape-rendering", "crispEdges").on("mouseover", (event2) => {
|
|
1341
|
+
event2.target.setAttribute("stroke-opacity", 1);
|
|
1342
|
+
this.showTip_cell(sample, feature);
|
|
1343
|
+
}).on("mouseout", (event2) => {
|
|
1344
|
+
event2.target.setAttribute("stroke-opacity", 0);
|
|
1345
|
+
this.tip.hide();
|
|
1346
|
+
}).on("click", () => {
|
|
1347
|
+
this.click_cell(sample, feature);
|
|
1348
|
+
});
|
|
1349
|
+
}
|
|
1350
|
+
drawCell_issampleattribute(sample, feature, g) {
|
|
1351
|
+
const height = this.features_on_rows ? feature.height : sample.height;
|
|
1352
|
+
const width = this.features_on_rows ? sample.width : feature.width;
|
|
1353
|
+
const item = feature.items.find((i) => i.sample == sample.name);
|
|
1354
|
+
if (!item) {
|
|
1355
|
+
this.drawEmptycell(sample, feature, g);
|
|
1356
|
+
return;
|
|
1357
|
+
}
|
|
1358
|
+
g.append("rect").attr("width", width).attr("height", height).attr("fill", feature.values[item.value].color).attr("stroke", "#ccc").attr("stroke-opacity", 0).attr("shape-rendering", "crispEdges").on("mouseover", (event2) => {
|
|
1359
|
+
event2.target.setAttribute("stroke-opacity", 1);
|
|
1360
|
+
this.showTip_cell(sample, feature);
|
|
1361
|
+
}).on("mouseout", (event2) => {
|
|
1362
|
+
event2.target.setAttribute("stroke-opacity", 0);
|
|
1363
|
+
this.tip.hide();
|
|
1364
|
+
}).on("click", () => {
|
|
1365
|
+
this.click_cell(sample, feature);
|
|
1366
|
+
});
|
|
1367
|
+
}
|
|
1368
|
+
drawCell_issvfusion(sample, feature, g) {
|
|
1369
|
+
const height = this.features_on_rows ? feature.height : sample.height;
|
|
1370
|
+
const width = this.features_on_rows ? sample.width : feature.width;
|
|
1371
|
+
const item = feature.items.find((i) => i.sample == sample.name);
|
|
1372
|
+
if (!item) {
|
|
1373
|
+
this.drawEmptycell(sample, feature, g);
|
|
1374
|
+
return;
|
|
1375
|
+
}
|
|
1376
|
+
g.append("rect").attr("width", width).attr("height", height).attr("fill", feature.color).attr("stroke", "#ccc").attr("stroke-opacity", 0).attr("shape-rendering", "crispEdges").on("mouseover", (event2) => {
|
|
1377
|
+
event2.target.setAttribute("stroke-opacity", 1);
|
|
1378
|
+
this.showTip_cell(sample, feature);
|
|
1379
|
+
}).on("mouseout", (event2) => {
|
|
1380
|
+
event2.target.setAttribute("stroke-opacity", 0);
|
|
1381
|
+
this.tip.hide();
|
|
1382
|
+
}).on("click", () => {
|
|
1383
|
+
this.click_cell(sample, feature);
|
|
1384
|
+
});
|
|
1385
|
+
}
|
|
1386
|
+
drawCell_ismutation(sample, feature, g) {
|
|
1387
|
+
const [cnv, loh, itd, sv, fusion, snvindel] = getitemforsample_compound(feature, sample);
|
|
1388
|
+
const height = this.features_on_rows ? feature.height : sample.height;
|
|
1389
|
+
const width = this.features_on_rows ? sample.width : feature.width;
|
|
1390
|
+
if (cnv.length + loh.length + itd.length + sv.length + fusion.length + snvindel.length == 0) {
|
|
1391
|
+
this.drawEmptycell(sample, feature, g);
|
|
1392
|
+
return;
|
|
1393
|
+
}
|
|
1394
|
+
let is_symbolic = false;
|
|
1395
|
+
if (this.ismutation_allsymbolic) {
|
|
1396
|
+
is_symbolic = true;
|
|
1397
|
+
} else if (this.ismutation_allnotsymbolic) {
|
|
1398
|
+
} else {
|
|
1399
|
+
if (height <= 4) {
|
|
1400
|
+
is_symbolic = true;
|
|
1401
|
+
}
|
|
1402
|
+
}
|
|
1403
|
+
if (is_symbolic) {
|
|
1404
|
+
this.drawCell_ismutation_symbolic(sample, feature, g, cnv, loh, itd, sv, fusion, snvindel);
|
|
1405
|
+
} else {
|
|
1406
|
+
if (loh.length) {
|
|
1407
|
+
for (const item of loh) {
|
|
1408
|
+
const x1 = feature.coordscale(Math.max(feature.start, item.start));
|
|
1409
|
+
const x2 = feature.coordscale(Math.min(feature.stop, item.stop));
|
|
1410
|
+
const loh_range = this.max_loh - this.min_loh;
|
|
1411
|
+
g.append("rect").attr("x", this.features_on_rows ? 0 : x1).attr("y", this.features_on_rows ? x1 : 0).attr("width", this.features_on_rows ? width : Math.max(1, x2 - x1)).attr("height", this.features_on_rows ? Math.max(1, x2 - x1) : height).attr("fill", feature.loh.color).attr("fill-opacity", (item.segmean - this.min_loh) / loh_range).attr("shape-rendering", "crispEdges");
|
|
1412
|
+
}
|
|
1413
|
+
}
|
|
1414
|
+
if (cnv.length) {
|
|
1415
|
+
for (const item of cnv) {
|
|
1416
|
+
const x1 = feature.coordscale(Math.max(feature.start, item.start));
|
|
1417
|
+
const x2 = feature.coordscale(Math.min(feature.stop, item.stop));
|
|
1418
|
+
const maxabslogratio = item.value > 0 ? this.max_cnv : this.min_cnv;
|
|
1419
|
+
g.append("rect").attr("x", this.features_on_rows ? 0 : x1).attr("y", this.features_on_rows ? x1 : 0).attr("width", this.features_on_rows ? width : Math.max(1, x2 - x1)).attr("height", this.features_on_rows ? Math.max(1, x2 - x1) : height).attr("fill", item.value > 0 ? feature.cnv.colorgain : feature.cnv.colorloss).attr("fill-opacity", Math.abs(item.value / maxabslogratio)).attr("shape-rendering", "crispEdges");
|
|
1420
|
+
}
|
|
1421
|
+
}
|
|
1422
|
+
if (itd.length) {
|
|
1423
|
+
for (const item of itd) {
|
|
1424
|
+
const x1 = feature.coordscale(Math.max(feature.start, item.start));
|
|
1425
|
+
const x2 = feature.coordscale(Math.min(feature.stop, item.stop));
|
|
1426
|
+
g.append("rect").attr("x", this.features_on_rows ? 0 : x1).attr("y", this.features_on_rows ? x1 : 0).attr("width", this.features_on_rows ? width : Math.max(1, x2 - x1)).attr("height", this.features_on_rows ? Math.max(1, x2 - x1) : height).attr("fill", feature.itd.color).attr("shape-rendering", "crispEdges");
|
|
1427
|
+
}
|
|
1428
|
+
}
|
|
1429
|
+
if (sv.length) {
|
|
1430
|
+
g.append("circle").attr("cx", width / 2).attr("cy", height / 2).attr("r", Math.min(width, height) / 2).attr("stroke", feature.sv.color).attr("fill", "none");
|
|
1431
|
+
}
|
|
1432
|
+
if (fusion.length) {
|
|
1433
|
+
g.append("circle").attr("cx", width / 2).attr("cy", height / 2).attr("r", Math.min(width, height) / 2).attr("stroke", feature.fusion.color).attr("fill", "none");
|
|
1434
|
+
}
|
|
1435
|
+
if (snvindel.length) {
|
|
1436
|
+
const m = snvindel[0];
|
|
1437
|
+
const g2 = g.append("g").attr("transform", "translate(" + width / 2 + "," + height / 2 + ")");
|
|
1438
|
+
const color = mclass[m.m.class].color;
|
|
1439
|
+
const w = Math.min(width, height) / 2;
|
|
1440
|
+
g2.append("line").attr("x1", -w).attr("x2", w).attr("y1", -w).attr("y2", w).attr("stroke", "white").attr("stroke-width", 3);
|
|
1441
|
+
g2.append("line").attr("x1", -w).attr("x2", w).attr("y1", w).attr("y2", -w).attr("stroke", "white").attr("stroke-width", 3);
|
|
1442
|
+
g2.append("line").attr("x1", -w).attr("x2", w).attr("y1", -w).attr("y2", w).attr("stroke", color);
|
|
1443
|
+
g2.append("line").attr("x1", -w).attr("x2", w).attr("y1", w).attr("y2", -w).attr("stroke", color);
|
|
1444
|
+
}
|
|
1445
|
+
}
|
|
1446
|
+
g.append("rect").attr("width", width).attr("height", height).attr("fill", "white").attr("fill-opacity", 0).attr("stroke", "#ccc").attr("stroke-opacity", 0).attr("shape-rendering", "crispEdges").on("mouseover", (event2) => {
|
|
1447
|
+
event2.target.setAttribute("stroke-opacity", 1);
|
|
1448
|
+
this.showTip_cell(sample, feature);
|
|
1449
|
+
}).on("mouseout", (event2) => {
|
|
1450
|
+
event2.target.setAttribute("stroke-opacity", 0);
|
|
1451
|
+
this.tip.hide();
|
|
1452
|
+
}).on("click", () => {
|
|
1453
|
+
this.click_cell(sample, feature);
|
|
1454
|
+
});
|
|
1455
|
+
}
|
|
1456
|
+
drawCell_ismutation_symbolic(sample, feature, g, cnv, loh, itd, sv, fusion, snvindel) {
|
|
1457
|
+
const height = this.features_on_rows ? feature.height : sample.height;
|
|
1458
|
+
const width = this.features_on_rows ? sample.width : feature.width;
|
|
1459
|
+
const loh_range = this.max_loh - this.min_loh;
|
|
1460
|
+
const lst = [];
|
|
1461
|
+
if (cnv.length) {
|
|
1462
|
+
for (const i of cnv) {
|
|
1463
|
+
const maxabslogratio = i.value > 0 ? this.max_cnv : this.min_cnv;
|
|
1464
|
+
let k;
|
|
1465
|
+
if (i.value > 0) {
|
|
1466
|
+
k = { color: feature.cnv.colorgain };
|
|
1467
|
+
} else {
|
|
1468
|
+
k = { color: feature.cnv.colorloss };
|
|
1469
|
+
}
|
|
1470
|
+
k.opacity = Math.abs(i.value / maxabslogratio);
|
|
1471
|
+
lst.push(k);
|
|
1472
|
+
}
|
|
1473
|
+
}
|
|
1474
|
+
if (loh.length) {
|
|
1475
|
+
for (const i of loh) {
|
|
1476
|
+
lst.push({
|
|
1477
|
+
color: feature.loh.color,
|
|
1478
|
+
opacity: (i.segmean - this.min_loh) / loh_range
|
|
1479
|
+
});
|
|
1480
|
+
}
|
|
1481
|
+
}
|
|
1482
|
+
if (itd.length) {
|
|
1483
|
+
for (const i of itd) {
|
|
1484
|
+
lst.push({ color: feature.itd.color });
|
|
1485
|
+
}
|
|
1486
|
+
}
|
|
1487
|
+
if (sv.length) {
|
|
1488
|
+
for (const i of sv) {
|
|
1489
|
+
lst.push({ color: feature.sv.color });
|
|
1490
|
+
}
|
|
1491
|
+
}
|
|
1492
|
+
if (fusion.length) {
|
|
1493
|
+
for (const i of fusion) {
|
|
1494
|
+
lst.push({ color: feature.fusion.color });
|
|
1495
|
+
}
|
|
1496
|
+
}
|
|
1497
|
+
if (snvindel.length) {
|
|
1498
|
+
for (const i of snvindel) {
|
|
1499
|
+
lst.push({ color: mclass[i.m.class].color });
|
|
1500
|
+
}
|
|
1501
|
+
}
|
|
1502
|
+
const f_len = this.features_on_rows ? height / lst.length : width / lst.length;
|
|
1503
|
+
let f_start = 0;
|
|
1504
|
+
for (const i of lst) {
|
|
1505
|
+
const r = g.append("rect").attr("x", this.features_on_rows ? 0 : f_start).attr("y", this.features_on_rows ? f_start : 0).attr("width", this.features_on_rows ? width : f_len).attr("height", this.features_on_rows ? f_len : height).attr("fill", i.color).attr("shape-rendering", "crispEdges");
|
|
1506
|
+
if (i.opacity) r.attr("opacity", i.opacity);
|
|
1507
|
+
f_start += f_len;
|
|
1508
|
+
}
|
|
1509
|
+
}
|
|
1510
|
+
// __newattr draw cell for new feature
|
|
1511
|
+
/*********** __draw ends *****/
|
|
1512
|
+
async click_cell(sample, feature) {
|
|
1513
|
+
try {
|
|
1514
|
+
let svcnvtk;
|
|
1515
|
+
if (this.iscustom) {
|
|
1516
|
+
svcnvtk = {
|
|
1517
|
+
iscustom: true,
|
|
1518
|
+
type: tkt.mdssvcnv,
|
|
1519
|
+
singlesample: {
|
|
1520
|
+
name: sample.name
|
|
1521
|
+
}
|
|
1522
|
+
};
|
|
1523
|
+
for (const k in this.querykey2tracks) {
|
|
1524
|
+
const t = this.querykey2tracks[k];
|
|
1525
|
+
if (t.type == tkt.mdssvcnv) {
|
|
1526
|
+
svcnvtk.name = t.name || "Custom tk";
|
|
1527
|
+
svcnvtk.file = t.file;
|
|
1528
|
+
svcnvtk.url = t.url;
|
|
1529
|
+
svcnvtk.indexURL = t.indexURL;
|
|
1530
|
+
} else if (t.type == tkt.mdsvcf) {
|
|
1531
|
+
svcnvtk.checkvcf = {
|
|
1532
|
+
file: t.file,
|
|
1533
|
+
url: t.url,
|
|
1534
|
+
indexURL: t.indexURL
|
|
1535
|
+
};
|
|
1536
|
+
} else if (t.type == tkt.mdsexpression) {
|
|
1537
|
+
svcnvtk.checkexpressionrank = {
|
|
1538
|
+
file: t.file,
|
|
1539
|
+
url: t.url,
|
|
1540
|
+
indexURL: t.indexURL
|
|
1541
|
+
};
|
|
1542
|
+
}
|
|
1543
|
+
}
|
|
1544
|
+
} else {
|
|
1545
|
+
if (!this.mds) throw "not custom but .mds{} missing";
|
|
1546
|
+
for (const querykey in this.mds.queries) {
|
|
1547
|
+
const tk = this.mds.queries[querykey];
|
|
1548
|
+
if (tk.type == tkt.mdssvcnv) {
|
|
1549
|
+
svcnvtk = {
|
|
1550
|
+
mds: this.mds,
|
|
1551
|
+
querykey,
|
|
1552
|
+
singlesample: {
|
|
1553
|
+
name: sample.name
|
|
1554
|
+
}
|
|
1555
|
+
};
|
|
1556
|
+
for (const k in tk) svcnvtk[k] = tk[k];
|
|
1557
|
+
break;
|
|
1558
|
+
}
|
|
1559
|
+
}
|
|
1560
|
+
}
|
|
1561
|
+
if (!svcnvtk) throw "cannot find a svcnv tk";
|
|
1562
|
+
svcnvtk.bplengthUpperLimit = 0;
|
|
1563
|
+
const pane = newpane({ x: 100, y: 100 });
|
|
1564
|
+
const blockarg = {
|
|
1565
|
+
jwt: this.jwt,
|
|
1566
|
+
hostURL: this.hostURL,
|
|
1567
|
+
nobox: 1,
|
|
1568
|
+
genome: this.genome,
|
|
1569
|
+
holder: pane.body,
|
|
1570
|
+
chr: feature.chr,
|
|
1571
|
+
start: feature.start,
|
|
1572
|
+
stop: feature.stop,
|
|
1573
|
+
tklst: []
|
|
1574
|
+
};
|
|
1575
|
+
first_genetrack_tolist(this.genome, blockarg.tklst);
|
|
1576
|
+
blockarg.tklst.push(svcnvtk);
|
|
1577
|
+
if (!this.iscustom) {
|
|
1578
|
+
if (!this.dslabel) throw "not custom but dslabel missing";
|
|
1579
|
+
const par = {
|
|
1580
|
+
genome: this.genome.name,
|
|
1581
|
+
dslabel: this.dslabel,
|
|
1582
|
+
querykey: svcnvtk.querykey,
|
|
1583
|
+
gettrack4singlesample: sample.name
|
|
1584
|
+
};
|
|
1585
|
+
const data = await dofetch("/mdssvcnv", par);
|
|
1586
|
+
if (data.error) throw "Error checking for assay track: " + data.error;
|
|
1587
|
+
if (data.tracks) {
|
|
1588
|
+
for (const t of data.tracks) blockarg.tklst.push(t);
|
|
1589
|
+
}
|
|
1590
|
+
}
|
|
1591
|
+
const _ = await import("./block-OO2NLGUP.js");
|
|
1592
|
+
new _.Block(blockarg);
|
|
1593
|
+
} catch (e) {
|
|
1594
|
+
window.alert(e.message || e);
|
|
1595
|
+
if (e.stack) console.log(e.stack);
|
|
1596
|
+
}
|
|
1597
|
+
}
|
|
1598
|
+
/********** __menu and tooltip **********/
|
|
1599
|
+
showTip_feature(f) {
|
|
1600
|
+
this.tip.clear();
|
|
1601
|
+
this.tipContent_feature(f, this.tip.d);
|
|
1602
|
+
this.tip.showunder(event.target);
|
|
1603
|
+
}
|
|
1604
|
+
showMenu_feature(f) {
|
|
1605
|
+
this.menu.showunder(event.target).clear();
|
|
1606
|
+
this.tipContent_feature(f, this.menu.d);
|
|
1607
|
+
this.menu.d.append("div").attr("class", "sja_menuoption").text("Remove this feature").on("click", () => {
|
|
1608
|
+
this.menu.hide();
|
|
1609
|
+
f.legend_tr.remove();
|
|
1610
|
+
this.features.splice(
|
|
1611
|
+
this.features.findIndex((i) => i.id == f.id),
|
|
1612
|
+
1
|
|
1613
|
+
);
|
|
1614
|
+
this.draw_matrix();
|
|
1615
|
+
});
|
|
1616
|
+
if (f.isgenevalue) return showMenu_isgenevalue(this, f);
|
|
1617
|
+
if (f.iscnv) return showMenu_iscnv(this, f, f);
|
|
1618
|
+
if (f.isloh) return showMenu_isloh(this, f, f);
|
|
1619
|
+
if (f.ismutation) return showMenu_ismutation(this, f);
|
|
1620
|
+
if (f.isitd) {
|
|
1621
|
+
return;
|
|
1622
|
+
}
|
|
1623
|
+
if (f.issvfusion) {
|
|
1624
|
+
return;
|
|
1625
|
+
}
|
|
1626
|
+
if (f.issvcnv) {
|
|
1627
|
+
return;
|
|
1628
|
+
}
|
|
1629
|
+
if (f.issampleattribute) {
|
|
1630
|
+
return;
|
|
1631
|
+
}
|
|
1632
|
+
}
|
|
1633
|
+
tipContent_feature(f, holder) {
|
|
1634
|
+
holder.append("div").text(f.label).style("opacity", 0.5).style("font-size", ".7em").style("margin", "10px");
|
|
1635
|
+
if (f.isgenevalue || f.iscnv || f.isloh || f.isitd || f.issvfusion) {
|
|
1636
|
+
holder.append("div").html(f.chr + ":" + f.start + "-" + f.stop + " " + bplen(f.stop - f.start)).style("font-size", ".7em").style("opacity", 0.5).style("margin", "0px 10px 10px 10px");
|
|
1637
|
+
} else if (f.issvcnv || f.ismutation) {
|
|
1638
|
+
if (!f.genename) {
|
|
1639
|
+
holder.append("div").html(f.chr + ":" + f.start + "-" + f.stop + " " + bplen(f.stop - f.start)).style("font-size", ".7em").style("opacity", 0.5).style("margin", "0px 10px 10px 10px");
|
|
1640
|
+
}
|
|
1641
|
+
} else if (f.issampleattribute) {
|
|
1642
|
+
holder.append("div").text(f.label);
|
|
1643
|
+
}
|
|
1644
|
+
if (f.isgenevalue) {
|
|
1645
|
+
holder.append("div").text("Min: " + f.scale.minv + ", max: " + f.scale.maxv).style("font-size", ".7em").style("opacity", 0.5).style("margin", "0px 10px 10px 10px");
|
|
1646
|
+
}
|
|
1647
|
+
}
|
|
1648
|
+
showTip_sample(sample) {
|
|
1649
|
+
this.tip.clear().d.append("div").text(sample.name).style("padding", "10px").style("font-size", ".7em");
|
|
1650
|
+
const lst = [];
|
|
1651
|
+
for (const f of this.features) {
|
|
1652
|
+
if (lst.length > 10) {
|
|
1653
|
+
lst.push({ k: "more", v: "..." });
|
|
1654
|
+
break;
|
|
1655
|
+
}
|
|
1656
|
+
if (f.isgenevalue) {
|
|
1657
|
+
const v = f.items.find((i) => i.sample == sample.name);
|
|
1658
|
+
lst.push({ k: f.label, v: v ? v.value : saynovalue });
|
|
1659
|
+
continue;
|
|
1660
|
+
}
|
|
1661
|
+
if (f.iscnv) {
|
|
1662
|
+
const items = f.items.filter((i) => i.sample == sample.name);
|
|
1663
|
+
let text;
|
|
1664
|
+
if (items.length == 0) {
|
|
1665
|
+
text = saynovalue;
|
|
1666
|
+
} else {
|
|
1667
|
+
const lst2 = items.map((i) => {
|
|
1668
|
+
return "<div>" + i.chr + ":" + i.start + "-" + i.stop + ' <span style="font-size:.7em">' + bplen(i.stop - i.start) + '</span> <span style="font-size:.8em;background:' + (i.value > 0 ? f.colorgain : f.colorloss) + ';color:white;padding:1px 5px">' + i.value + "</span></div>";
|
|
1669
|
+
});
|
|
1670
|
+
text = lst2.join("");
|
|
1671
|
+
}
|
|
1672
|
+
lst.push({ k: f.label, v: text });
|
|
1673
|
+
continue;
|
|
1674
|
+
}
|
|
1675
|
+
if (f.isloh) {
|
|
1676
|
+
const items = f.items.filter((i) => i.sample == sample.name);
|
|
1677
|
+
let text;
|
|
1678
|
+
if (items.length == 0) {
|
|
1679
|
+
text = saynovalue;
|
|
1680
|
+
} else {
|
|
1681
|
+
const lst2 = items.map((i) => {
|
|
1682
|
+
return "<div>" + i.chr + ":" + i.start + "-" + i.stop + ' <span style="font-size:.7em">' + bplen(i.stop - i.start) + '</span> <span style="font-size:.8em;background:' + f.color + ';color:white;padding:1px 5px">' + i.segmean + "</span></div>";
|
|
1683
|
+
});
|
|
1684
|
+
text = lst2.join("");
|
|
1685
|
+
}
|
|
1686
|
+
lst.push({ k: f.label, v: text });
|
|
1687
|
+
continue;
|
|
1688
|
+
}
|
|
1689
|
+
if (f.isvcf) {
|
|
1690
|
+
const mlst = getitemforsample_vcf(f, sample);
|
|
1691
|
+
let text;
|
|
1692
|
+
if (mlst.length == 0) {
|
|
1693
|
+
text = saynovalue;
|
|
1694
|
+
} else {
|
|
1695
|
+
text = mlst.map((m) => {
|
|
1696
|
+
return '<div><span style="color:' + mclass[m.class].color + '">' + m.mname + '</span> <span style="font-size:.7em;opacity:.5">' + mclass[m.class].label + "</span></div>";
|
|
1697
|
+
}).join("");
|
|
1698
|
+
}
|
|
1699
|
+
lst.push({ k: f.label, v: text });
|
|
1700
|
+
continue;
|
|
1701
|
+
}
|
|
1702
|
+
if (f.isitd) {
|
|
1703
|
+
const items = f.items.filter((i) => i.sample == sample.name);
|
|
1704
|
+
let text;
|
|
1705
|
+
if (items.length == 0) {
|
|
1706
|
+
text = saynovalue;
|
|
1707
|
+
} else {
|
|
1708
|
+
text = '<div style="background:' + f.color + ';width:20px"> </div>';
|
|
1709
|
+
}
|
|
1710
|
+
lst.push({ k: f.label, v: text });
|
|
1711
|
+
continue;
|
|
1712
|
+
}
|
|
1713
|
+
if (f.issvfusion) {
|
|
1714
|
+
const items = f.items.filter((i) => i.sample == sample.name);
|
|
1715
|
+
let text;
|
|
1716
|
+
if (items.length == 0) {
|
|
1717
|
+
text = saynovalue;
|
|
1718
|
+
} else {
|
|
1719
|
+
text = '<div style="background:' + f.color + ';width:20px"> </div>';
|
|
1720
|
+
}
|
|
1721
|
+
lst.push({ k: f.label, v: text });
|
|
1722
|
+
continue;
|
|
1723
|
+
}
|
|
1724
|
+
if (f.issvcnv) {
|
|
1725
|
+
continue;
|
|
1726
|
+
}
|
|
1727
|
+
if (f.ismutation) {
|
|
1728
|
+
continue;
|
|
1729
|
+
}
|
|
1730
|
+
if (f.issampleattribute) {
|
|
1731
|
+
const item = f.items.find((i) => i.sample == sample.name);
|
|
1732
|
+
if (item) {
|
|
1733
|
+
lst.push({ k: f.label, v: item.value });
|
|
1734
|
+
}
|
|
1735
|
+
continue;
|
|
1736
|
+
}
|
|
1737
|
+
console.error("sample tooltip: Unknown feature type");
|
|
1738
|
+
}
|
|
1739
|
+
make_table_2col(this.tip.d, lst);
|
|
1740
|
+
this.tip.show(event.clientX, event.clientY);
|
|
1741
|
+
}
|
|
1742
|
+
showTip_cell(sample, f) {
|
|
1743
|
+
const lst = [{ k: "sample", v: sample.name }];
|
|
1744
|
+
if (f.isgenevalue) {
|
|
1745
|
+
const v = f.items.find((i) => i.sample == sample.name);
|
|
1746
|
+
lst.push({ k: f.label, v: v ? v.value : saynovalue });
|
|
1747
|
+
} else if (f.iscnv) {
|
|
1748
|
+
const items = f.items.filter((i) => i.sample == sample.name);
|
|
1749
|
+
let text;
|
|
1750
|
+
if (items.length == 0) {
|
|
1751
|
+
text = saynovalue;
|
|
1752
|
+
} else {
|
|
1753
|
+
const lst2 = items.map((i) => {
|
|
1754
|
+
return "<div>" + i.chr + ":" + i.start + "-" + i.stop + ' <span style="font-size:.7em">' + bplen(i.stop - i.start) + '</span> <span style="font-size:.8em;background:' + (i.value > 0 ? f.colorgain : f.colorloss) + ';color:white;padding:1px 5px">' + i.value + "</span></div>";
|
|
1755
|
+
});
|
|
1756
|
+
text = lst2.join("");
|
|
1757
|
+
}
|
|
1758
|
+
lst.push({ k: f.label, v: text });
|
|
1759
|
+
} else if (f.isloh) {
|
|
1760
|
+
const items = f.items.filter((i) => i.sample == sample.name);
|
|
1761
|
+
let text;
|
|
1762
|
+
if (items.length == 0) {
|
|
1763
|
+
text = saynovalue;
|
|
1764
|
+
} else {
|
|
1765
|
+
const lst2 = items.map((i) => {
|
|
1766
|
+
return "<div>" + i.chr + ":" + i.start + "-" + i.stop + ' <span style="font-size:.7em">' + bplen(i.stop - i.start) + '</span> <span style="font-size:.8em;background:' + f.color + ';color:white;padding:1px 5px">' + i.segmean + "</span></div>";
|
|
1767
|
+
});
|
|
1768
|
+
text = lst2.join("");
|
|
1769
|
+
}
|
|
1770
|
+
lst.push({ k: f.label, v: text });
|
|
1771
|
+
} else if (f.isvcf) {
|
|
1772
|
+
const mlst = getitemforsample_vcf(f, sample);
|
|
1773
|
+
let text;
|
|
1774
|
+
if (mlst.length == 0) {
|
|
1775
|
+
text = saynovalue;
|
|
1776
|
+
} else {
|
|
1777
|
+
text = mlst.map((m) => {
|
|
1778
|
+
return '<div><span style="color:' + mclass[m.class].color + '">' + m.mname + '</span> <span style="font-size:.7em;opacity:.5">' + mclass[m.class].label + "</span></div>";
|
|
1779
|
+
}).join("");
|
|
1780
|
+
}
|
|
1781
|
+
lst.push({ k: f.label, v: text });
|
|
1782
|
+
} else if (f.isitd) {
|
|
1783
|
+
const items = f.items.filter((i) => i.sample == sample.name);
|
|
1784
|
+
let text;
|
|
1785
|
+
if (items.length == 0) {
|
|
1786
|
+
text = saynovalue;
|
|
1787
|
+
} else {
|
|
1788
|
+
const lst2 = items.map((i) => {
|
|
1789
|
+
return "<div>" + i.chr + ":" + i.start + "-" + i.stop + " </div>";
|
|
1790
|
+
});
|
|
1791
|
+
text = lst2.join("");
|
|
1792
|
+
}
|
|
1793
|
+
lst.push({ k: f.label, v: text });
|
|
1794
|
+
} else if (f.issvfusion) {
|
|
1795
|
+
const items = f.items.filter((i) => i.sample == sample.name);
|
|
1796
|
+
let text;
|
|
1797
|
+
if (items.length == 0) {
|
|
1798
|
+
text = saynovalue;
|
|
1799
|
+
} else {
|
|
1800
|
+
const lst2 = items.map((i) => {
|
|
1801
|
+
return "<div>" + i.chrA + ":" + i.posA + " - " + i.chrB + ":" + i.posB + " </div>";
|
|
1802
|
+
});
|
|
1803
|
+
text = lst2.join("");
|
|
1804
|
+
}
|
|
1805
|
+
lst.push({ k: f.label, v: text });
|
|
1806
|
+
} else if (f.issvcnv || f.ismutation) {
|
|
1807
|
+
const [cnv, loh, itd, sv, fusion, snvindel] = getitemforsample_compound(f, sample);
|
|
1808
|
+
if (cnv.length) {
|
|
1809
|
+
lst.push({
|
|
1810
|
+
k: (f.genename || f.label) + " CNV",
|
|
1811
|
+
v: cnv.map((i) => {
|
|
1812
|
+
return '<div><span style="background:' + (i.value > 0 ? f.cnv.colorgain : f.cnv.colorloss) + ';color:white;padding:0px 3px">' + i.value + '</span> <span style="font-size:.8em">' + i.chr + ":" + i.start + "-" + i.stop + " " + bplen(i.stop - i.start) + "</span></div>";
|
|
1813
|
+
}).join("")
|
|
1814
|
+
});
|
|
1815
|
+
}
|
|
1816
|
+
if (loh.length) {
|
|
1817
|
+
lst.push({
|
|
1818
|
+
k: (f.genename || f.label) + " LOH",
|
|
1819
|
+
v: loh.map((i) => {
|
|
1820
|
+
return '<div><span style="background:' + f.loh.color + ';color:white;padding:0px 3px">' + i.segmean + '</span> <span style="font-size:.8em">' + i.chr + ":" + i.start + "-" + i.stop + " " + bplen(i.stop - i.start) + "</span></div>";
|
|
1821
|
+
}).join("")
|
|
1822
|
+
});
|
|
1823
|
+
}
|
|
1824
|
+
if (itd.length) {
|
|
1825
|
+
lst.push({
|
|
1826
|
+
k: (f.genename || f.label) + " ITD",
|
|
1827
|
+
v: itd.map((i) => {
|
|
1828
|
+
return '<div style="font-size:.8em">' + i.chr + ":" + i.start + "-" + i.stop + "</div>";
|
|
1829
|
+
}).join("")
|
|
1830
|
+
});
|
|
1831
|
+
}
|
|
1832
|
+
if (sv.length) {
|
|
1833
|
+
lst.push({
|
|
1834
|
+
k: (f.genename || f.label) + " SV",
|
|
1835
|
+
v: sv.map((i) => {
|
|
1836
|
+
return "<div>" + i.chrA + ":" + i.posA + "," + i.strandA + " > " + i.chrB + ":" + i.posB + "," + i.strandB + "</div>";
|
|
1837
|
+
}).join("")
|
|
1838
|
+
});
|
|
1839
|
+
}
|
|
1840
|
+
if (fusion.length) {
|
|
1841
|
+
lst.push({
|
|
1842
|
+
k: (f.genename || f.label) + " fusion",
|
|
1843
|
+
v: fusion.map((i) => {
|
|
1844
|
+
return "<div>" + i.chrA + ":" + i.posA + "," + i.strandA + " > " + i.chrB + ":" + i.posB + "," + i.strandB + "</div>";
|
|
1845
|
+
}).join("")
|
|
1846
|
+
});
|
|
1847
|
+
}
|
|
1848
|
+
if (snvindel.length) {
|
|
1849
|
+
lst.push({
|
|
1850
|
+
k: (f.genename || f.label) + " SNV/indel",
|
|
1851
|
+
v: snvindel.map((m) => {
|
|
1852
|
+
const c = mclass[m.m.class];
|
|
1853
|
+
return '<div><span style="color:' + c.color + '">' + (m.m.mname || "") + '</span> <span style="font-size:.7em;opacity:.5">' + c.label + "</span></div>";
|
|
1854
|
+
}).join("")
|
|
1855
|
+
});
|
|
1856
|
+
}
|
|
1857
|
+
} else if (f.issampleattribute) {
|
|
1858
|
+
const item = f.items.find((i) => i.sample == sample.name);
|
|
1859
|
+
if (item) {
|
|
1860
|
+
lst.push({
|
|
1861
|
+
k: f.label,
|
|
1862
|
+
v: item.value
|
|
1863
|
+
});
|
|
1864
|
+
}
|
|
1865
|
+
} else {
|
|
1866
|
+
console.error("cell tooltip: unknown feature type");
|
|
1867
|
+
}
|
|
1868
|
+
this.tip.clear();
|
|
1869
|
+
make_table_2col(this.tip.d, lst);
|
|
1870
|
+
this.tip.show(event.clientX, event.clientY);
|
|
1871
|
+
}
|
|
1872
|
+
/********** __menu ends **********/
|
|
1873
|
+
sortsamplesbyfeatures() {
|
|
1874
|
+
const sortbygenevalue = this.features.find((f) => f.isgenevalue && f.sort);
|
|
1875
|
+
if (sortbygenevalue && sortbygenevalue.items) {
|
|
1876
|
+
const sample2value = /* @__PURE__ */ new Map();
|
|
1877
|
+
for (const i of sortbygenevalue.items) {
|
|
1878
|
+
sample2value.set(i.sample, i.value);
|
|
1879
|
+
}
|
|
1880
|
+
this.samples.sort((i, j) => {
|
|
1881
|
+
const vi = sample2value.has(i.name) ? sample2value.get(i.name) : sortbygenevalue.missingvalue;
|
|
1882
|
+
const vj = sample2value.has(j.name) ? sample2value.get(j.name) : sortbygenevalue.missingvalue;
|
|
1883
|
+
return vj - vi;
|
|
1884
|
+
});
|
|
1885
|
+
}
|
|
1886
|
+
}
|
|
1887
|
+
may_init_customvcf(tk) {
|
|
1888
|
+
if (tk.info) return;
|
|
1889
|
+
const arg = ["genome=" + this.genome.name];
|
|
1890
|
+
if (tk.file) {
|
|
1891
|
+
arg.push("file=" + tk.file);
|
|
1892
|
+
} else {
|
|
1893
|
+
arg.push("url=" + tk.url);
|
|
1894
|
+
if (tk.indexURL) arg.push("indexURL=" + tk.indexURL);
|
|
1895
|
+
}
|
|
1896
|
+
return dofetch2("vcfheader?" + arg.join("&")).then((data) => {
|
|
1897
|
+
const [info, format, samples, errs] = vcfparsemeta(data.metastr.split("\n"));
|
|
1898
|
+
if (errs) throw "Error parsing VCF meta lines: " + errs.join("; ");
|
|
1899
|
+
tk.info = info;
|
|
1900
|
+
tk.format = format;
|
|
1901
|
+
tk.samples = samples;
|
|
1902
|
+
tk.nochr = data.nochr;
|
|
1903
|
+
});
|
|
1904
|
+
}
|
|
1905
|
+
drawEmptycell(sample, feature, g) {
|
|
1906
|
+
const height = this.features_on_rows ? feature.height : sample.height;
|
|
1907
|
+
const width = this.features_on_rows ? sample.width : feature.width;
|
|
1908
|
+
if (height < 5) return;
|
|
1909
|
+
g.append("line").attr("x2", width).attr("y2", height).attr("stroke", "#ededed");
|
|
1910
|
+
}
|
|
1911
|
+
// end of class
|
|
1912
|
+
};
|
|
1913
|
+
function feature2arg(f) {
|
|
1914
|
+
if (f.isgenevalue) {
|
|
1915
|
+
return {
|
|
1916
|
+
id: f.id,
|
|
1917
|
+
isgenevalue: 1,
|
|
1918
|
+
querykey: f.querykey,
|
|
1919
|
+
genename: f.genename,
|
|
1920
|
+
chr: f.chr,
|
|
1921
|
+
start: f.start,
|
|
1922
|
+
stop: f.stop
|
|
1923
|
+
};
|
|
1924
|
+
}
|
|
1925
|
+
if (f.iscnv) {
|
|
1926
|
+
return {
|
|
1927
|
+
id: f.id,
|
|
1928
|
+
iscnv: 1,
|
|
1929
|
+
querykey: f.querykey,
|
|
1930
|
+
chr: f.chr,
|
|
1931
|
+
start: f.start,
|
|
1932
|
+
stop: f.stop,
|
|
1933
|
+
valuecutoff: f.valuecutoff,
|
|
1934
|
+
focalsizelimit: f.focalsizelimit
|
|
1935
|
+
};
|
|
1936
|
+
}
|
|
1937
|
+
if (f.isloh) {
|
|
1938
|
+
return {
|
|
1939
|
+
id: f.id,
|
|
1940
|
+
isloh: 1,
|
|
1941
|
+
querykey: f.querykey,
|
|
1942
|
+
chr: f.chr,
|
|
1943
|
+
start: f.start,
|
|
1944
|
+
stop: f.stop,
|
|
1945
|
+
valuecutoff: f.valuecutoff,
|
|
1946
|
+
focalsizelimit: f.focalsizelimit
|
|
1947
|
+
};
|
|
1948
|
+
}
|
|
1949
|
+
if (f.isvcf) {
|
|
1950
|
+
return {
|
|
1951
|
+
id: f.id,
|
|
1952
|
+
isvcf: 1,
|
|
1953
|
+
querykey: f.querykey,
|
|
1954
|
+
chr: f.chr,
|
|
1955
|
+
start: f.start,
|
|
1956
|
+
stop: f.stop,
|
|
1957
|
+
snvindel: {
|
|
1958
|
+
excludeclasses: f.snvindel.excludeclasses
|
|
1959
|
+
}
|
|
1960
|
+
};
|
|
1961
|
+
}
|
|
1962
|
+
if (f.isitd) {
|
|
1963
|
+
return {
|
|
1964
|
+
id: f.id,
|
|
1965
|
+
isitd: 1,
|
|
1966
|
+
querykey: f.querykey,
|
|
1967
|
+
chr: f.chr,
|
|
1968
|
+
start: f.start,
|
|
1969
|
+
stop: f.stop
|
|
1970
|
+
};
|
|
1971
|
+
}
|
|
1972
|
+
if (f.issvfusion) {
|
|
1973
|
+
return {
|
|
1974
|
+
id: f.id,
|
|
1975
|
+
issvfusion: 1,
|
|
1976
|
+
querykey: f.querykey,
|
|
1977
|
+
chr: f.chr,
|
|
1978
|
+
start: f.start,
|
|
1979
|
+
stop: f.stop
|
|
1980
|
+
};
|
|
1981
|
+
}
|
|
1982
|
+
if (f.issvcnv || f.ismutation) {
|
|
1983
|
+
const arg = {
|
|
1984
|
+
id: f.id,
|
|
1985
|
+
chr: f.chr,
|
|
1986
|
+
start: f.start,
|
|
1987
|
+
stop: f.stop,
|
|
1988
|
+
cnv: {
|
|
1989
|
+
hidden: f.cnv.hidden,
|
|
1990
|
+
valuecutoff: f.cnv.valuecutoff,
|
|
1991
|
+
focalsizelimit: f.cnv.focalsizelimit
|
|
1992
|
+
},
|
|
1993
|
+
loh: {
|
|
1994
|
+
hidden: f.loh.hidden,
|
|
1995
|
+
valuecutoff: f.loh.valuecutoff,
|
|
1996
|
+
focalsizelimit: f.loh.focalsizelimit
|
|
1997
|
+
},
|
|
1998
|
+
itd: {
|
|
1999
|
+
hidden: f.itd.hidden
|
|
2000
|
+
},
|
|
2001
|
+
sv: {
|
|
2002
|
+
hidden: f.sv.hidden
|
|
2003
|
+
},
|
|
2004
|
+
fusion: {
|
|
2005
|
+
hidden: f.fusion.hidden
|
|
2006
|
+
},
|
|
2007
|
+
snvindel: {
|
|
2008
|
+
excludeclasses: f.snvindel.excludeclasses
|
|
2009
|
+
}
|
|
2010
|
+
};
|
|
2011
|
+
if (f.issvcnv) {
|
|
2012
|
+
arg.issvcnv = 1;
|
|
2013
|
+
arg.querykey = f.querykey;
|
|
2014
|
+
} else {
|
|
2015
|
+
arg.ismutation = 1;
|
|
2016
|
+
arg.querykeylst = f.querykeylst;
|
|
2017
|
+
}
|
|
2018
|
+
return arg;
|
|
2019
|
+
}
|
|
2020
|
+
if (f.issampleattribute) {
|
|
2021
|
+
return {
|
|
2022
|
+
id: f.id,
|
|
2023
|
+
issampleattribute: 1,
|
|
2024
|
+
key: f.key
|
|
2025
|
+
};
|
|
2026
|
+
}
|
|
2027
|
+
throw "unknown feature type in making request parameter";
|
|
2028
|
+
}
|
|
2029
|
+
function getitemforsample_vcf(feature, sample) {
|
|
2030
|
+
const mlst = [];
|
|
2031
|
+
for (const m of feature.items) {
|
|
2032
|
+
if (m.dt == dtsnvindel) {
|
|
2033
|
+
if (m.sampledata.findIndex((i) => i.sampleobj.name == sample.name) != -1) {
|
|
2034
|
+
mlst.push(m);
|
|
2035
|
+
}
|
|
2036
|
+
} else {
|
|
2037
|
+
console.error("getitemforsample_vcf: unknown dt");
|
|
2038
|
+
}
|
|
2039
|
+
}
|
|
2040
|
+
return mlst;
|
|
2041
|
+
}
|
|
2042
|
+
function getitemforsample_compound(feature, sample) {
|
|
2043
|
+
const cnv = [], loh = [], itd = [], sv = [], fusion = [], snvindel = [];
|
|
2044
|
+
for (const item of feature.items) {
|
|
2045
|
+
if (item.dt == dtsnvindel) {
|
|
2046
|
+
if (!item.sampledata) continue;
|
|
2047
|
+
const m_sample = item.sampledata.find((s) => s.sampleobj.name == sample.name);
|
|
2048
|
+
if (!m_sample) continue;
|
|
2049
|
+
snvindel.push({
|
|
2050
|
+
m: item,
|
|
2051
|
+
m_sample
|
|
2052
|
+
});
|
|
2053
|
+
continue;
|
|
2054
|
+
}
|
|
2055
|
+
if (item.sample != sample.name) continue;
|
|
2056
|
+
if (item.dt == dtcnv) {
|
|
2057
|
+
cnv.push(item);
|
|
2058
|
+
} else if (item.dt == dtloh) {
|
|
2059
|
+
loh.push(item);
|
|
2060
|
+
} else if (item.dt == dtitd) {
|
|
2061
|
+
itd.push(item);
|
|
2062
|
+
} else if (item.dt == dtsv) {
|
|
2063
|
+
sv.push(item);
|
|
2064
|
+
} else if (item.dt == dtfusionrna) {
|
|
2065
|
+
fusion.push(item);
|
|
2066
|
+
} else {
|
|
2067
|
+
console.error("unknown dt: " + item.dt);
|
|
2068
|
+
}
|
|
2069
|
+
}
|
|
2070
|
+
return [cnv, loh, itd, sv, fusion, snvindel];
|
|
2071
|
+
}
|
|
2072
|
+
function initfeature_polymutation(f) {
|
|
2073
|
+
if (!f.width) f.width = 20;
|
|
2074
|
+
if (!f.cnv) f.cnv = {};
|
|
2075
|
+
if (!f.cnv.valuecutoff) f.cnv.valuecutoff = 0.2;
|
|
2076
|
+
if (!Number.isInteger(f.cnv.focalsizelimit)) f.cnv.focalsizelimit = 2e6;
|
|
2077
|
+
if (!f.cnv.colorgain) f.cnv.colorgain = default_cnvgaincolor;
|
|
2078
|
+
if (!f.cnv.colorloss) f.cnv.colorloss = default_cnvlosscolor;
|
|
2079
|
+
if (!f.loh) f.loh = {};
|
|
2080
|
+
if (!f.loh.valuecutoff) f.loh.valuecutoff = 0.1;
|
|
2081
|
+
if (!Number.isInteger(f.loh.focalsizelimit)) f.loh.focalsizelimit = 2e6;
|
|
2082
|
+
if (!f.loh.color) f.loh.color = default_lohcolor;
|
|
2083
|
+
if (!f.itd) f.itd = {};
|
|
2084
|
+
if (!f.itd.color) f.itd.color = mclass[mclassitd].color;
|
|
2085
|
+
if (!f.sv) f.sv = {};
|
|
2086
|
+
if (!f.sv.color) f.sv.color = default_svcolor;
|
|
2087
|
+
if (!f.fusion) f.fusion = {};
|
|
2088
|
+
if (!f.fusion.color) f.fusion.color = default_svcolor;
|
|
2089
|
+
if (!f.snvindel) f.snvindel = {};
|
|
2090
|
+
if (!f.snvindel.excludeclasses) f.snvindel.excludeclasses = {};
|
|
2091
|
+
}
|
|
2092
|
+
function init_controlui(o) {
|
|
2093
|
+
const buttonrow = o.holder.append("div").style("margin-bottom", "5px");
|
|
2094
|
+
const folderdiv = o.holder.append("div").style("margin-bottom", "20px");
|
|
2095
|
+
buttonrow.append("span").style("margin-right", "20px").style("font-size", ".8em").text("LEGEND").attr("class", "sja_clbtext").on("click", () => {
|
|
2096
|
+
if (o.legendtable.style("display") == "none") {
|
|
2097
|
+
appear(o.legendtable);
|
|
2098
|
+
} else {
|
|
2099
|
+
disappear(o.legendtable);
|
|
2100
|
+
}
|
|
2101
|
+
});
|
|
2102
|
+
o.legendtable = folderdiv.append("table").style("border-top", "solid 1px #ededed").style("border-bottom", "solid 1px #ededed").style("border-spacing", "10px").style("display", "none");
|
|
2103
|
+
buttonrow.append("span").style("margin-right", "20px").style("font-size", ".8em").text("CONFIG").attr("class", "sja_clbtext").on("click", () => {
|
|
2104
|
+
if (generalconfig.style("display") == "none") {
|
|
2105
|
+
appear(generalconfig);
|
|
2106
|
+
} else {
|
|
2107
|
+
disappear(generalconfig);
|
|
2108
|
+
}
|
|
2109
|
+
});
|
|
2110
|
+
const generalconfig = folderdiv.append("div").style("border-top", "solid 1px #ededed").style("border-bottom", "solid 1px #ededed").style("display", "none");
|
|
2111
|
+
const row = generalconfig.append("div").style("margin", "5px");
|
|
2112
|
+
row.append("div").style("vertical-align", "top").style("display", "inline-block").html("Show features as ");
|
|
2113
|
+
const opts_div = row.append("div").style("display", "inline-block");
|
|
2114
|
+
const mutation_opts = [
|
|
2115
|
+
{ value: "symbol", text: "CNV on genomic location, others as symbol" },
|
|
2116
|
+
{ value: "proportion", text: "All features as porportion" }
|
|
2117
|
+
];
|
|
2118
|
+
mutation_opts.forEach((opt) => {
|
|
2119
|
+
const opt_div = opts_div.append("div");
|
|
2120
|
+
opt_div.append("input").attr("type", "radio").attr("id", opt.value).attr("name", "mutaion_display").attr("value", opt.value).property(
|
|
2121
|
+
"checked",
|
|
2122
|
+
opt.value == "symbol" && o.ismutation_allsymbolic === void 0 && o.ismutation_allnotsymbolic === void 0 ? 1 : opt.value == "symbol" && o.ismutation_allnotsymbolic ? 1 : opt.value == "proportion" && o.ismutation_allsymbolic ? 1 : 0
|
|
2123
|
+
).on("change", function() {
|
|
2124
|
+
if (opt.value == "symbol" && o.ismutation_allnotsymbolic) return;
|
|
2125
|
+
else if (opt.value == "proportion" && o.ismutation_allsymbolic) return;
|
|
2126
|
+
else if (opt.value == "symbol") {
|
|
2127
|
+
delete o.ismutation_allsymbolic;
|
|
2128
|
+
o.ismutation_allnotsymbolic = true;
|
|
2129
|
+
} else if (opt.value == "proportion") {
|
|
2130
|
+
o.ismutation_allsymbolic = true;
|
|
2131
|
+
delete o.ismutation_allnotsymbolic;
|
|
2132
|
+
} else {
|
|
2133
|
+
return;
|
|
2134
|
+
}
|
|
2135
|
+
o.draw_matrix();
|
|
2136
|
+
});
|
|
2137
|
+
opt_div.append("label").attr("for", opt.value).text(opt.text);
|
|
2138
|
+
});
|
|
2139
|
+
const row2 = generalconfig.append("div").style("margin", "5px");
|
|
2140
|
+
row2.append("div").style("vertical-align", "top").style("display", "inline-block").html("Layout of Matrix ");
|
|
2141
|
+
const opts_div2 = row2.append("div").style("display", "inline-block");
|
|
2142
|
+
const layout_opts = [
|
|
2143
|
+
{ value: "gene_on_row", text: "Genes as Rows" },
|
|
2144
|
+
{ value: "sam_on_row", text: "Samples as Rows" }
|
|
2145
|
+
];
|
|
2146
|
+
layout_opts.forEach((opt) => {
|
|
2147
|
+
const opt_div = opts_div2.append("div");
|
|
2148
|
+
opt_div.append("input").attr("type", "radio").attr("id", opt.value).attr("name", "layout").attr("value", opt.value).property(
|
|
2149
|
+
"checked",
|
|
2150
|
+
opt.value == "gene_on_row" && o.features_on_rows ? 1 : opt.value == "sam_on_row" && !o.features_on_rows ? 1 : 0
|
|
2151
|
+
).on("change", function() {
|
|
2152
|
+
if (opt.value == "gene_on_row" && o.features_on_rows) return;
|
|
2153
|
+
else if (opt.value == "sam_on_row" && !o.features_on_rows) return;
|
|
2154
|
+
else if (opt.value == "gene_on_row") {
|
|
2155
|
+
o.features_on_rows = true;
|
|
2156
|
+
if (o.ori_feature_width) o.features.forEach((f) => f.height = o.ori_feature_width);
|
|
2157
|
+
} else {
|
|
2158
|
+
o.features_on_rows = false;
|
|
2159
|
+
if (o.ori_feature_height) o.features.forEach((f) => f.width = o.ori_feature_height);
|
|
2160
|
+
}
|
|
2161
|
+
o.draw_matrix();
|
|
2162
|
+
});
|
|
2163
|
+
opt_div.append("label").attr("for", opt.value).text(opt.text);
|
|
2164
|
+
});
|
|
2165
|
+
buttonrow.append("span").style("margin-right", "20px").style("font-size", ".8em").text("DATA").attr("class", "sja_clbtext").on("click", () => {
|
|
2166
|
+
printData(o);
|
|
2167
|
+
});
|
|
2168
|
+
may_add_kmplotbutton(o, buttonrow);
|
|
2169
|
+
}
|
|
2170
|
+
function printData(o) {
|
|
2171
|
+
const lst = ["sample feature varianttype variant"];
|
|
2172
|
+
for (const s of o.samples) {
|
|
2173
|
+
for (const f of o.features) {
|
|
2174
|
+
for (const i of f.items) {
|
|
2175
|
+
if (i.sample && i.sample == s.name || i.sampledata && i.sampledata.findIndex((i2) => i2.sampleobj.name == s.name) != -1) {
|
|
2176
|
+
lst.push(s.name + " " + f.label + " " + dt2label[i.dt] + " " + item2string(i));
|
|
2177
|
+
}
|
|
2178
|
+
}
|
|
2179
|
+
}
|
|
2180
|
+
}
|
|
2181
|
+
export_data("Matrix data", [{ text: lst.join("\n") }]);
|
|
2182
|
+
}
|
|
2183
|
+
function item2string(i) {
|
|
2184
|
+
if (i.dt == dtsnvindel)
|
|
2185
|
+
return i.mname + " " + mclass[i.class].label + " " + i.chr + "." + i.pos + "." + i.ref + "." + i.alt;
|
|
2186
|
+
if (i.dt == dtfusionrna || i.dt == dtsv)
|
|
2187
|
+
return i.chrA + "." + i.posA + "." + (i.strandA || "") + " > " + i.chrB + "." + i.posB + "." + (i.strandB || "");
|
|
2188
|
+
if (i.dt == dtcnv) return i.chr + ":" + i.start + "-" + i.stop + ", log2(ratio): " + i.value;
|
|
2189
|
+
if (i.dt == dtloh) return i.chr + ":" + i.start + "-" + i.stop + ", log2(ratio): " + i.segmean;
|
|
2190
|
+
if (i.dt == dtitd) return i.chr + ":" + i.start + "-" + i.stop;
|
|
2191
|
+
return "";
|
|
2192
|
+
}
|
|
2193
|
+
export {
|
|
2194
|
+
Samplematrix
|
|
2195
|
+
};
|
|
2196
|
+
//# sourceMappingURL=samplematrix-VGUU7Q75.js.map
|