@sjcrh/proteinpaint-client 2.166.0 → 2.167.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/2dmaf-VLW5XJ4O.js +1364 -0
- package/dist/AIProjectAdmin-X3TBCRPR.js +780 -0
- package/dist/AppHeader-YA7FCKVM.js +813 -0
- package/dist/BoxPlot-PAZYARCX.js +44 -0
- package/dist/CorrelationVolcano-S35GWKV5.js +616 -0
- package/dist/DifferentialAnalysis-DTDFAUXT.js +237 -0
- package/dist/Disco-OE6YY3MH.js +3089 -0
- package/dist/Disco.UI-2CCWETSM.js +238 -0
- package/dist/DziViewer-OHPZOH72.js +16328 -0
- package/dist/GB-LIHKHJ32.js +1099 -0
- package/dist/HicApp-6AYCPCW6.js +2218 -0
- package/dist/NumBinaryEditor-ONJB4DKM.js +259 -0
- package/dist/NumBinaryEditor.unit.spec-Y6DGBAIB.js +277 -0
- package/dist/NumContEditor-6WGAI3PH.js +98 -0
- package/dist/NumContEditor.unit.spec-6LT5MALH.js +160 -0
- package/dist/NumCustomBinEditor-K4OD7SWD.js +29 -0
- package/dist/NumCustomBinEditor.unit.spec-O6QYV6Q4.js +275 -0
- package/dist/NumDiscreteEditor-AFLINO62.js +145 -0
- package/dist/NumDiscreteEditor.unit.spec-3VWWSS24.js +193 -0
- package/dist/NumRegularBinEditor-IRKC5SVF.js +29 -0
- package/dist/NumRegularBinEditor.unit.spec-2ZTI7HR2.js +220 -0
- package/dist/NumSplineEditor-DBW6XE4N.js +181 -0
- package/dist/NumSplineEditor.unit.spec-645ZQXXL.js +190 -0
- package/dist/NumericDensity-27SM2P45.js +29 -0
- package/dist/NumericDensity.unit.spec-DM7PPSMV.js +212 -0
- package/dist/NumericHandler-KFQ2OSUR.js +30 -0
- package/dist/NumericHandler.unit.spec-RNXGCYH7.js +210 -0
- package/dist/SC-SUUATZYR.js +714 -0
- package/dist/Volcano-DEKTKEEZ.js +1018 -0
- package/dist/WSIViewer-SWX4OXHY.js +46959 -0
- package/dist/WsiSamplesPlot-OCVLBBBD.js +153 -0
- package/dist/adSandbox-VGHHJWLL.js +29 -0
- package/dist/alphaGenome-YOJWFJCS.js +170 -0
- package/dist/app-3TXV35H5.js +28 -0
- package/dist/app-NUTP544R.js +54 -0
- package/dist/app.js +16 -16
- package/dist/bam-LXDFDUBH.js +842 -0
- package/dist/barchart-P4BTYT5K.js +48 -0
- package/dist/barchart.data-6WIS5D4I.js +30 -0
- package/dist/barchart.events-V4ANDWUH.js +44 -0
- package/dist/barchart.integration.spec-QU3Y3YHM.js +1600 -0
- package/dist/bars.renderer-4N4QOUNI.js +12 -0
- package/dist/bars.settings-SDU7PZOS.js +10 -0
- package/dist/block-OGJAZG3E.js +6291 -0
- package/dist/block.init-SNZKGO2G.js +29 -0
- package/dist/block.mds.expressionrank-WYV55X5Y.js +350 -0
- package/dist/block.mds.geneboxplot-2LVYSSSU.js +819 -0
- package/dist/block.mds.junction-YY3P64U5.js +1536 -0
- package/dist/block.mds.svcnv-JFNOLZX3.js +6792 -0
- package/dist/block.svg-JBR6OYAD.js +155 -0
- package/dist/block.tk.aicheck-2XDMLOND.js +274 -0
- package/dist/block.tk.ase-TC3NY65S.js +356 -0
- package/dist/block.tk.bam-YA32442V.js +1897 -0
- package/dist/block.tk.bedgraphdot-TRNM4O4F.js +375 -0
- package/dist/block.tk.bigwig.ui-6JJG42M3.js +202 -0
- package/dist/block.tk.hicstraw-HEQXBJZN.js +814 -0
- package/dist/block.tk.junction-7LWL3N6V.js +2355 -0
- package/dist/block.tk.junction.textmatrixui-6CTLQ2M7.js +190 -0
- package/dist/block.tk.ld-SG4ZJ5VB.js +90 -0
- package/dist/block.tk.menu-FNKM5H5D.js +1020 -0
- package/dist/block.tk.pgv-KNLGEASZ.js +935 -0
- package/dist/brainImaging-RO5P7ZR6.js +417 -0
- package/dist/chat-JS4NIRVH.js +142 -0
- package/dist/chat-JS4NIRVH.js.map +7 -0
- package/dist/chunk-2HJ7OD7H.js +252 -0
- package/dist/chunk-2MN5JLZB.js +2878 -0
- package/dist/chunk-353ULT52.js +480 -0
- package/dist/chunk-3JFEWVHR.js +80 -0
- package/dist/chunk-4PHD5H4A.js +226 -0
- package/dist/chunk-56IFQMJK.js +413 -0
- package/dist/chunk-5GQEXGQC.js +256 -0
- package/dist/chunk-5GQEXGQC.js.map +7 -0
- package/dist/chunk-5HXU7P5T.js +276 -0
- package/dist/chunk-5KUQSXQC.js +293 -0
- package/dist/chunk-6ADTREVX.js +1968 -0
- package/dist/chunk-6ADTREVX.js.map +7 -0
- package/dist/chunk-6ISTNHM6.js +144 -0
- package/dist/chunk-6VQ4C735.js +1536 -0
- package/dist/chunk-7M6V7OGP.js +1088 -0
- package/dist/chunk-B5YJ4S2E.js +190 -0
- package/dist/chunk-B65X5UQH.js +518 -0
- package/dist/chunk-BTYCW3D5.js +85 -0
- package/dist/chunk-BW2MEKH4.js +102 -0
- package/dist/chunk-C4NAQESE.js +157 -0
- package/dist/chunk-CDVICC3E.js +272 -0
- package/dist/chunk-D53HBTYQ.js +238 -0
- package/dist/chunk-D7HC37OF.js +297 -0
- package/dist/chunk-DACGCI3Q.js +215 -0
- package/dist/chunk-DDOM4XYV.js +1177 -0
- package/dist/chunk-DDOM4XYV.js.map +7 -0
- package/dist/chunk-DKI7YOTJ.js +196 -0
- package/dist/chunk-DNU4IPD2.js +165 -0
- package/dist/chunk-DOLIDO2R.js +2784 -0
- package/dist/chunk-DRDIOSDW.js +129 -0
- package/dist/chunk-DRFGAPYN.js +158 -0
- package/dist/chunk-ECFK2NV5.js +82 -0
- package/dist/chunk-ETBTUFRA.js +1415 -0
- package/dist/chunk-FMZEW7AB.js +1275 -0
- package/dist/chunk-FN5XPUPH.js +83 -0
- package/dist/chunk-FN5XPUPH.js.map +7 -0
- package/dist/chunk-FRLEROW5.js +279 -0
- package/dist/chunk-FRLEROW5.js.map +7 -0
- package/dist/chunk-GCQYBMGL.js +6364 -0
- package/dist/chunk-H2QGRBCK.js +95 -0
- package/dist/chunk-HPEMEDXB.js +123 -0
- package/dist/chunk-HXT3XNAX.js +228 -0
- package/dist/chunk-ITJ2SXU5.js +467 -0
- package/dist/chunk-ITJ2SXU5.js.map +7 -0
- package/dist/chunk-IZ77ZFBY.js +142 -0
- package/dist/chunk-JMO7ENSD.js +381 -0
- package/dist/chunk-KHOR7BCS.js +217 -0
- package/dist/chunk-LD45BCVM.js +177 -0
- package/dist/chunk-MJM2U67B.js +2327 -0
- package/dist/chunk-MRDHGWNV.js +634 -0
- package/dist/chunk-MXSMHJIP.js +748 -0
- package/dist/chunk-N4D5G5IT.js +402 -0
- package/dist/chunk-NCL2K6UD.js +14 -0
- package/dist/chunk-NNDNKEFI.js +419 -0
- package/dist/chunk-NNDNKEFI.js.map +7 -0
- package/dist/chunk-O552UNW2.js +303 -0
- package/dist/chunk-OA7TPCTX.js +55 -0
- package/dist/chunk-OA7TPCTX.js.map +7 -0
- package/dist/chunk-OARG7PAV.js +401 -0
- package/dist/chunk-OLUMAQOQ.js +91 -0
- package/dist/chunk-OSNUFZAX.js +203 -0
- package/dist/chunk-PN6GLQWD.js +166 -0
- package/dist/chunk-PX7A6LBY.js +15078 -0
- package/dist/chunk-PX7A6LBY.js.map +7 -0
- package/dist/chunk-PZRXLO7V.js +229 -0
- package/dist/chunk-PZY4L6NK.js +1151 -0
- package/dist/chunk-Q6FKQ63P.js +161 -0
- package/dist/chunk-QCTJ6JA2.js +323 -0
- package/dist/chunk-RKV3CP4C.js +258 -0
- package/dist/chunk-RYT4A7AQ.js +2789 -0
- package/dist/chunk-SBEA552U.js +4172 -0
- package/dist/chunk-SEL5UNRC.js +142 -0
- package/dist/chunk-SO4QKH47.js +133 -0
- package/dist/chunk-SWDSU33C.js +797 -0
- package/dist/chunk-SWDSU33C.js.map +7 -0
- package/dist/chunk-TGZA4ETW.js +311 -0
- package/dist/chunk-TGZA4ETW.js.map +7 -0
- package/dist/chunk-TMEYYK4R.js +2676 -0
- package/dist/chunk-TRS2KOXE.js +487 -0
- package/dist/chunk-TRS2KOXE.js.map +7 -0
- package/dist/chunk-TWWRXWWS.js +451 -0
- package/dist/chunk-TWWRXWWS.js.map +7 -0
- package/dist/chunk-UAKYIZJI.js +149 -0
- package/dist/chunk-V4F264MW.js +1143 -0
- package/dist/chunk-W4IQ4XYS.js +467 -0
- package/dist/chunk-WTPVXDJT.js +31 -0
- package/dist/chunk-WVZV43PF.js +459 -0
- package/dist/chunk-X62MQS7A.js +613 -0
- package/dist/chunk-XAIW4R76.js +422 -0
- package/dist/chunk-XF36ROHS.js +4947 -0
- package/dist/chunk-XF36ROHS.js.map +7 -0
- package/dist/chunk-XQGO3DQ2.js +619 -0
- package/dist/chunk-YBDLY45S.js +368 -0
- package/dist/chunk-YEYC4PLD.js +1133 -0
- package/dist/chunk-YEYC4PLD.js.map +7 -0
- package/dist/chunk-YFZH3WDM.js +55 -0
- package/dist/chunk-YUL2RO7I.js +1720 -0
- package/dist/chunk-YUL2RO7I.js.map +7 -0
- package/dist/chunk-ZFFHOEBE.js +117 -0
- package/dist/chunk-ZLBDDGSP.js +1412 -0
- package/dist/chunk-ZOD2EZOP.js +1197 -0
- package/dist/condition-KDKI25VM.js +323 -0
- package/dist/controls-26FVLZRQ.js +35 -0
- package/dist/controls.btns-H4TWTHTW.js +10 -0
- package/dist/controls.config-O6YC7P4M.js +31 -0
- package/dist/correlation-DVDT43OT.js +102 -0
- package/dist/cuminc-T6EYUBUX.js +1143 -0
- package/dist/cuminc.integration.spec-P4YPZXDY.js +669 -0
- package/dist/customdata.inputui-XPXZ7KB5.js +278 -0
- package/dist/dataDownload-46POC5GF.js +320 -0
- package/dist/dataDownload.integration.spec-L7P5YMF7.js +184 -0
- package/dist/databrowser.ui-DQEQXZCP.js +426 -0
- package/dist/dictionary-MBERWWV4.js +90 -0
- package/dist/e2pca-5HU65GVJ.js +341 -0
- package/dist/ep-ECP7H37A.js +1247 -0
- package/dist/expclust.gdc.spec-553FSEDH.js +298 -0
- package/dist/facet-ND335XOF.js +437 -0
- package/dist/frequencyChart-2OHEOWEU.js +371 -0
- package/dist/frequencyChart.integration.spec-NW4DDLRX.js +301 -0
- package/dist/geneExpClustering-GHGBONBF.js +242 -0
- package/dist/geneExpression-UGYGT6DM.js +54 -0
- package/dist/geneExpression-X6HAUFPK.js +310 -0
- package/dist/geneORA-YKXRPEYY.js +272 -0
- package/dist/geneVariant-363FWTVR.js +29 -0
- package/dist/geneVariant-J4O45233.js +32 -0
- package/dist/genefusion.ui-DWAZJDO4.js +242 -0
- package/dist/geneset-64VRPPTK.js +186 -0
- package/dist/genomeBrowser.spec-AN3YXXBS.js +272 -0
- package/dist/grin2-E2WNBPLR.js +1547 -0
- package/dist/grin2-Y57FKOV6.js +1044 -0
- package/dist/grin2-Y57FKOV6.js.map +7 -0
- package/dist/gsea-PNORGHHB.js +43 -0
- package/dist/hierCluster-B7YMJ3UK.js +56 -0
- package/dist/hierCluster-VAQBNVKU.js +60 -0
- package/dist/hierCluster.config-D7MDBQ35.js +32 -0
- package/dist/hierCluster.integration.spec-UHRGPV6T.js +389 -0
- package/dist/hierCluster.interactivity-NJFEZILS.js +45 -0
- package/dist/hierCluster.renderers-GWFH5ZX7.js +21 -0
- package/dist/imagePlot-LWJPXMNK.js +134 -0
- package/dist/importPlot-JBVMBUCU.js +8 -0
- package/dist/launch.adhoc-6GLLB7TX.js +36 -0
- package/dist/leftlabel.sample-3SO3AJ2U.js +249 -0
- package/dist/lollipop-LJEVK7YO.js +159 -0
- package/dist/maf-3EW7QN3S.js +435 -0
- package/dist/maf-3EW7QN3S.js.map +7 -0
- package/dist/maftimeline-YMX542CP.js +584 -0
- package/dist/matrix-CR2EK5EU.js +60 -0
- package/dist/matrix-YI4D3YQI.js +55 -0
- package/dist/matrix.cells-SCLZA3P4.js +30 -0
- package/dist/matrix.config-TOC4QWE7.js +33 -0
- package/dist/matrix.controls-27D3Q4GD.js +31 -0
- package/dist/matrix.data-ETVML2F7.js +35 -0
- package/dist/matrix.dom-QO7BXZ27.js +11 -0
- package/dist/matrix.groups-QMZMZ6Q7.js +26 -0
- package/dist/matrix.integration.spec-DDXKS5GP.js +2936 -0
- package/dist/matrix.interactivity-XTNDVF55.js +36 -0
- package/dist/matrix.layout-NGPK4EEU.js +35 -0
- package/dist/matrix.legend-CS6DNC5V.js +22 -0
- package/dist/matrix.renderers-ILFHUPHQ.js +29 -0
- package/dist/matrix.serieses-3SERD6CV.js +21 -0
- package/dist/matrix.sort-UVS6WHIS.js +27 -0
- package/dist/matrix.sort.unit.spec-DAMINC6B.js +464 -0
- package/dist/matrix.sorterUi-JDGLTLJM.js +18 -0
- package/dist/matrix.sorterUi.unit.spec-M3RXU6B2.js +335 -0
- package/dist/mavb-EC5VS3RS.js +723 -0
- package/dist/mds.fimo-7SXXTBUH.js +509 -0
- package/dist/mds.samplescatterplot-CALFSFR6.js +1541 -0
- package/dist/mds.survivalplot-NRA67V4T.js +474 -0
- package/dist/mutationSignature-43SECPTY.js +72 -0
- package/dist/numericDictTermCluster-2ER4FUKO.js +72 -0
- package/dist/oncomatrix-FOCP66RC.js +287 -0
- package/dist/oncomatrix.spec-XB232WT7.js +439 -0
- package/dist/plot.2dvaf-GSQS5J6Y.js +368 -0
- package/dist/plot.app-RHPEFX47.js +35 -0
- package/dist/plot.barplot-2Q5YF3MU.js +93 -0
- package/dist/plot.boxplot-LTYLWTF4.js +143 -0
- package/dist/plot.brainImaging-EFRI4QV7.js +51 -0
- package/dist/plot.disco-HHYCMRCZ.js +100 -0
- package/dist/plot.dzi-BCTPDUDK.js +33 -0
- package/dist/plot.ssgq-ES2ZP7MO.js +130 -0
- package/dist/plot.vaf2cov-W72Y2IHA.js +250 -0
- package/dist/plot.wsi-TPZXI45Q.js +36 -0
- package/dist/polar-MT3K2WDL.js +179 -0
- package/dist/profile.spec-DOQYKG6P.js +71 -0
- package/dist/profileBarchart-A4UWV2YA.js +260 -0
- package/dist/profileForms-VONTWVOF.js +365 -0
- package/dist/profilePlot-OK5VKWO4.js +50 -0
- package/dist/profileRadar-VLEZJCD7.js +256 -0
- package/dist/profileRadarFacility-QPSSUTB6.js +256 -0
- package/dist/qualitative-RJKAWHQR.js +34 -0
- package/dist/regression-GV73BYCQ.js +57 -0
- package/dist/regression.inputs-PVIJHCRE.js +49 -0
- package/dist/regression.inputs.term-V5I3EP6M.js +49 -0
- package/dist/regression.inputs.values.table-Y37EJUQB.js +46 -0
- package/dist/regression.integration.spec-JD32ODD2.js +777 -0
- package/dist/regression.results-AHAYXYGI.js +31 -0
- package/dist/regression.spec-FGYEES5G.js +699 -0
- package/dist/report-JYIEDDW5.js +220 -0
- package/dist/runChart-CVAWIBA3.js +54 -0
- package/dist/runchart.integration.spec-5Z4IHQU5.js +362 -0
- package/dist/sampleScatter.spec-QNFWS2Y7.js +193 -0
- package/dist/sampleView-GKYHS3WO.js +42 -0
- package/dist/samplelst-CHBS5BGY.js +102 -0
- package/dist/samplematrix-IK4YDAID.js +2189 -0
- package/dist/scatter-NDA5YSCP.js +55 -0
- package/dist/scatter.integration.spec-GV3EIFGT.js +1026 -0
- package/dist/selectGenomeWithTklst-X7RAGKRC.js +125 -0
- package/dist/singleCellPlot-7F735HTR.js +50 -0
- package/dist/singlecell-EO3WYGS7.js +1563 -0
- package/dist/singlecell-YMYLKTSC.js +80 -0
- package/dist/snp-6KN4AWBB.js +73 -0
- package/dist/snplocus-CLM4WHVH.js +199 -0
- package/dist/spliceevent.a53ss.diagram-PKFVC2N4.js +142 -0
- package/dist/spliceevent.exonskip.diagram-XV2Z7AYB.js +268 -0
- package/dist/spliceevent.noeventdiagram-L5L2BJL5.js +451 -0
- package/dist/ssGSEA-W6N4CXMD.js +53 -0
- package/dist/stattable-324FS2HA.js +89 -0
- package/dist/summarizeCnvGeneexp-57LZ5B2Q.js +136 -0
- package/dist/summarizeGeneexpSurvival-UQX3VZUK.js +90 -0
- package/dist/summarizeMutationDiagnosis-5SWO42E4.js +32 -0
- package/dist/summarizeMutationSurvival-EOU5QOB6.js +92 -0
- package/dist/summary-FRIKVPYZ.js +55 -0
- package/dist/summary.integration.spec-WSI3JNTO.js +405 -0
- package/dist/summaryInput-3L7CM52X.js +170 -0
- package/dist/sunburst-HA7UGSXX.js +275 -0
- package/dist/survival-2HZ446Y3.js +41 -0
- package/dist/survival-LJI5JEZZ.js +49 -0
- package/dist/survival.integration.spec-7XVO2WNF.js +601 -0
- package/dist/svgraph-TRPAXTNP.js +1378 -0
- package/dist/svmr-TJOCKTE2.js +3833 -0
- package/dist/table-35RHJK4M.js +193 -0
- package/dist/termCollection-JS6N5TAP.js +80 -0
- package/dist/termInfo-5USFZGDB.js +9 -0
- package/dist/tk-4ARNGTEQ.js +37 -0
- package/dist/tp.ui-QZEMGVEH.js +1450 -0
- package/dist/tvs.dtcnv.continuous-4K7B7FXF.js +65 -0
- package/dist/tvs.numeric-FCC2EY62.js +355 -0
- package/dist/tvs.samplelst-IUSDLB6P.js +95 -0
- package/dist/violin-I5JO56GZ.js +47 -0
- package/dist/violin.integration.spec-5WVLT3DW.js +1425 -0
- package/dist/violin.interactivity-EFFBMTN2.js +39 -0
- package/dist/violin.renderer-Z3AIV5RH.js +31 -0
- package/dist/vocabulary-4PHACFSG.js +32 -0
- package/package.json +3 -3
- package/dist/2dmaf-E4NOGWWO.js +0 -1364
- package/dist/AIProjectAdmin-3QDXMCOK.js +0 -780
- package/dist/AppHeader-IFZ57DJE.js +0 -813
- package/dist/BoxPlot-GXDTPRA5.js +0 -44
- package/dist/CorrelationVolcano-S4GUYIPT.js +0 -616
- package/dist/DifferentialAnalysis-YLKYWPUT.js +0 -237
- package/dist/Disco-OQMP3HRQ.js +0 -3089
- package/dist/Disco.UI-XB3XQP33.js +0 -238
- package/dist/DziViewer-UIRNTFNS.js +0 -16328
- package/dist/GB-KDPJTOLP.js +0 -1099
- package/dist/HicApp-XJERMLKH.js +0 -2218
- package/dist/NumBinaryEditor-5MWWWNLW.js +0 -259
- package/dist/NumBinaryEditor.unit.spec-ROGT5FOH.js +0 -277
- package/dist/NumContEditor-RRCB4CKG.js +0 -98
- package/dist/NumContEditor.unit.spec-AJTKOF7W.js +0 -160
- package/dist/NumCustomBinEditor-3GJITZ7V.js +0 -29
- package/dist/NumCustomBinEditor.unit.spec-DNBDZSHT.js +0 -275
- package/dist/NumDiscreteEditor-TARWA6CZ.js +0 -145
- package/dist/NumDiscreteEditor.unit.spec-TCSLTQ25.js +0 -193
- package/dist/NumRegularBinEditor-QF5ALVV4.js +0 -29
- package/dist/NumRegularBinEditor.unit.spec-GFNDBWNM.js +0 -220
- package/dist/NumSplineEditor-MOEUXR34.js +0 -181
- package/dist/NumSplineEditor.unit.spec-XPJOOXS4.js +0 -190
- package/dist/NumericDensity-JDE263EQ.js +0 -29
- package/dist/NumericDensity.unit.spec-RX6UGV56.js +0 -212
- package/dist/NumericHandler-XM7LUYHN.js +0 -30
- package/dist/NumericHandler.unit.spec-5EYRMII7.js +0 -210
- package/dist/SC-Z4KBNK7P.js +0 -714
- package/dist/Volcano-WYJLKM4K.js +0 -1018
- package/dist/WSIViewer-3RMG3VOA.js +0 -46959
- package/dist/WsiSamplesPlot-PAWNKI7R.js +0 -153
- package/dist/adSandbox-7H5H46SE.js +0 -29
- package/dist/alphaGenome-PODWDV5T.js +0 -170
- package/dist/app-JPURIGQW.js +0 -28
- package/dist/app-YL7S55T5.js +0 -54
- package/dist/bam-XEO47VYA.js +0 -842
- package/dist/barchart-B5M6SSJH.js +0 -48
- package/dist/barchart.data-6A6WVV4Y.js +0 -30
- package/dist/barchart.events-2GNB5KWY.js +0 -44
- package/dist/barchart.integration.spec-JEOTKIWC.js +0 -1600
- package/dist/bars.renderer-NLUBMQEO.js +0 -12
- package/dist/bars.settings-UQZ63KU4.js +0 -8
- package/dist/block-B7WMYLPO.js +0 -6291
- package/dist/block.init-KCIXEYQC.js +0 -29
- package/dist/block.mds.expressionrank-RYZXAH5Y.js +0 -350
- package/dist/block.mds.geneboxplot-LNWUEI6N.js +0 -819
- package/dist/block.mds.junction-CVIY7QMD.js +0 -1536
- package/dist/block.mds.svcnv-EUGWHSCA.js +0 -6792
- package/dist/block.svg-QBLNIGUF.js +0 -155
- package/dist/block.tk.aicheck-U6NG22FX.js +0 -274
- package/dist/block.tk.ase-U3TRZAOH.js +0 -356
- package/dist/block.tk.bam-6Y6YFVR2.js +0 -1897
- package/dist/block.tk.bedgraphdot-O3VCFX6K.js +0 -375
- package/dist/block.tk.bigwig.ui-DNBJAF72.js +0 -202
- package/dist/block.tk.hicstraw-2EIFJX7E.js +0 -814
- package/dist/block.tk.junction-UXSO5EJP.js +0 -2355
- package/dist/block.tk.junction.textmatrixui-HQ6ZKCHM.js +0 -190
- package/dist/block.tk.ld-NEB4F3UG.js +0 -90
- package/dist/block.tk.menu-BN4JPJSD.js +0 -1020
- package/dist/block.tk.pgv-A4QFVSPF.js +0 -935
- package/dist/brainImaging-ESQGNGZH.js +0 -417
- package/dist/chat-AY7RCQYY.js +0 -145
- package/dist/chat-AY7RCQYY.js.map +0 -7
- package/dist/chunk-236ZRGXA.js +0 -297
- package/dist/chunk-2DZWOGEH.js +0 -272
- package/dist/chunk-2HQJMZNY.js +0 -14
- package/dist/chunk-2MRZFUHZ.js +0 -165
- package/dist/chunk-2ZEORJCF.js +0 -215
- package/dist/chunk-3WA7SJTR.js +0 -82
- package/dist/chunk-47HG7LGD.js +0 -133
- package/dist/chunk-47X254B7.js +0 -91
- package/dist/chunk-4TPDYPGD.js +0 -1098
- package/dist/chunk-4TPDYPGD.js.map +0 -7
- package/dist/chunk-4WA2H5DE.js +0 -75
- package/dist/chunk-4WA2H5DE.js.map +0 -7
- package/dist/chunk-4XDKCFFT.js +0 -613
- package/dist/chunk-5CJJLBUZ.js +0 -229
- package/dist/chunk-5TDKRZN5.js +0 -1931
- package/dist/chunk-5TDKRZN5.js.map +0 -7
- package/dist/chunk-6MSJ3TLQ.js +0 -1151
- package/dist/chunk-7JAFXNAL.js +0 -256
- package/dist/chunk-7JAFXNAL.js.map +0 -7
- package/dist/chunk-7LKSKJCV.js +0 -480
- package/dist/chunk-7P67W6NF.js +0 -190
- package/dist/chunk-7RIC35AF.js +0 -129
- package/dist/chunk-A76B53VT.js +0 -158
- package/dist/chunk-AZ276Z7T.js +0 -2327
- package/dist/chunk-B662XJMJ.js +0 -748
- package/dist/chunk-BK7GIOC5.js +0 -4924
- package/dist/chunk-BK7GIOC5.js.map +0 -7
- package/dist/chunk-BP2F2GRB.js +0 -2676
- package/dist/chunk-BRO4KZSZ.js +0 -417
- package/dist/chunk-BRO4KZSZ.js.map +0 -7
- package/dist/chunk-C5YNONHQ.js +0 -144
- package/dist/chunk-CT3LPTWW.js +0 -1197
- package/dist/chunk-CZTC4MTE.js +0 -161
- package/dist/chunk-DA5VGV5L.js +0 -280
- package/dist/chunk-DA5VGV5L.js.map +0 -7
- package/dist/chunk-DPU66MZ7.js +0 -381
- package/dist/chunk-E6NE5IWR.js +0 -102
- package/dist/chunk-ECKWM4HB.js +0 -1536
- package/dist/chunk-EEX5VPJG.js +0 -467
- package/dist/chunk-EIMEUZP2.js +0 -323
- package/dist/chunk-ETFPL4UP.js +0 -4172
- package/dist/chunk-F3FTQWTA.js +0 -303
- package/dist/chunk-F4APZ34G.js +0 -55
- package/dist/chunk-FOXJTDTH.js +0 -166
- package/dist/chunk-FYTZCTJC.js +0 -1157
- package/dist/chunk-FYTZCTJC.js.map +0 -7
- package/dist/chunk-GBS5I24E.js +0 -1706
- package/dist/chunk-GBS5I24E.js.map +0 -7
- package/dist/chunk-GBWRKJAH.js +0 -413
- package/dist/chunk-GG67VPVD.js +0 -238
- package/dist/chunk-GZ2B634M.js +0 -123
- package/dist/chunk-HEFXMCSF.js +0 -6364
- package/dist/chunk-I26R4NJJ.js +0 -228
- package/dist/chunk-I2GCD26Y.js +0 -55
- package/dist/chunk-I2GCD26Y.js.map +0 -7
- package/dist/chunk-ICNJQHQZ.js +0 -117
- package/dist/chunk-IPAGDFO4.js +0 -80
- package/dist/chunk-J2E4FALN.js +0 -1415
- package/dist/chunk-JXHU2FIA.js +0 -2789
- package/dist/chunk-K7LZ77GD.js +0 -468
- package/dist/chunk-K7LZ77GD.js.map +0 -7
- package/dist/chunk-KACWSU3U.js +0 -487
- package/dist/chunk-KACWSU3U.js.map +0 -7
- package/dist/chunk-KGSCQRQ5.js +0 -203
- package/dist/chunk-KGYPMYQD.js +0 -1143
- package/dist/chunk-L3PMRBTA.js +0 -422
- package/dist/chunk-M7QVMSRW.js +0 -293
- package/dist/chunk-MG6GRQKO.js +0 -459
- package/dist/chunk-N5VBIEH5.js +0 -1412
- package/dist/chunk-NRYOB7WU.js +0 -252
- package/dist/chunk-NXOWHUR4.js +0 -311
- package/dist/chunk-NXOWHUR4.js.map +0 -7
- package/dist/chunk-OFQV6PRB.js +0 -1275
- package/dist/chunk-OMO754MK.js +0 -177
- package/dist/chunk-OQSP66C6.js +0 -226
- package/dist/chunk-OS46MR72.js +0 -368
- package/dist/chunk-PBJFLQGL.js +0 -142
- package/dist/chunk-PMZS3SHH.js +0 -2877
- package/dist/chunk-PPJSDC3Z.js +0 -157
- package/dist/chunk-QIS45Z4Y.js +0 -2784
- package/dist/chunk-RCVZ4L7K.js +0 -402
- package/dist/chunk-ROWCKPNW.js +0 -1088
- package/dist/chunk-RQUXELHE.js +0 -276
- package/dist/chunk-RYRCMHYR.js +0 -196
- package/dist/chunk-S7EKSDVS.js +0 -258
- package/dist/chunk-SN5QKRXO.js +0 -85
- package/dist/chunk-TZRD3FPN.js +0 -634
- package/dist/chunk-U5QRRS7K.js +0 -619
- package/dist/chunk-UOMRXQNW.js +0 -401
- package/dist/chunk-UT6W4ZZL.js +0 -15048
- package/dist/chunk-UT6W4ZZL.js.map +0 -7
- package/dist/chunk-UZV3QI5M.js +0 -518
- package/dist/chunk-VALBVQXS.js +0 -217
- package/dist/chunk-VDR5JXI2.js +0 -444
- package/dist/chunk-VDR5JXI2.js.map +0 -7
- package/dist/chunk-W4D2EYE4.js +0 -95
- package/dist/chunk-XATIKUGU.js +0 -142
- package/dist/chunk-ZHWC5SJP.js +0 -797
- package/dist/chunk-ZHWC5SJP.js.map +0 -7
- package/dist/chunk-ZL4CNBYY.js +0 -149
- package/dist/chunk-ZQ7L66GP.js +0 -31
- package/dist/condition-24HPVH23.js +0 -323
- package/dist/controls-5CSAKANR.js +0 -35
- package/dist/controls.btns-QLLBCT65.js +0 -10
- package/dist/controls.config-H4FMU5LI.js +0 -31
- package/dist/correlation-RB77VSXB.js +0 -102
- package/dist/cuminc-YZSLH5IO.js +0 -1143
- package/dist/cuminc.integration.spec-MZPT3Y5A.js +0 -669
- package/dist/customdata.inputui-CBTZFODT.js +0 -278
- package/dist/dataDownload-ZTGRVI4Q.js +0 -320
- package/dist/dataDownload.integration.spec-Q6GUTUYD.js +0 -184
- package/dist/databrowser.ui-V7E6CLUZ.js +0 -426
- package/dist/dictionary-RPC5OZMM.js +0 -90
- package/dist/e2pca-WDQHMAUM.js +0 -341
- package/dist/ep-NAM34BBI.js +0 -1247
- package/dist/expclust.gdc.spec-QB4GVDJA.js +0 -298
- package/dist/facet-DOXBBIG6.js +0 -437
- package/dist/frequencyChart-GLOIGP3T.js +0 -371
- package/dist/frequencyChart.integration.spec-B7NBBLH2.js +0 -301
- package/dist/geneExpClustering-B4S6GFNT.js +0 -242
- package/dist/geneExpression-DMU4AQP6.js +0 -310
- package/dist/geneExpression-MVVXRNEY.js +0 -54
- package/dist/geneORA-XDAITCQF.js +0 -272
- package/dist/geneVariant-N6IGEIRR.js +0 -29
- package/dist/geneVariant-QYLA2V6J.js +0 -32
- package/dist/genefusion.ui-FRBMNK7V.js +0 -242
- package/dist/geneset-GZYNBG7Y.js +0 -186
- package/dist/genomeBrowser.spec-WFIVQSE7.js +0 -272
- package/dist/grin2-I6GJF35U.js +0 -882
- package/dist/grin2-I6GJF35U.js.map +0 -7
- package/dist/grin2-ZKNNZXON.js +0 -1547
- package/dist/gsea-GFGAEC4K.js +0 -43
- package/dist/hierCluster-MF4TI3E4.js +0 -60
- package/dist/hierCluster-SDJMQLOQ.js +0 -56
- package/dist/hierCluster.config-RMEX3VTC.js +0 -32
- package/dist/hierCluster.integration.spec-3H63OHMU.js +0 -389
- package/dist/hierCluster.interactivity-4DZBRQ6P.js +0 -45
- package/dist/hierCluster.renderers-UOW7BI6N.js +0 -21
- package/dist/imagePlot-P2UHJRSL.js +0 -134
- package/dist/importPlot-PPCMNVOW.js +0 -8
- package/dist/launch.adhoc-RJWUEVRA.js +0 -36
- package/dist/leftlabel.sample-OYP6MICL.js +0 -249
- package/dist/lollipop-BXQOWLGO.js +0 -159
- package/dist/maf-YJJO773K.js +0 -448
- package/dist/maf-YJJO773K.js.map +0 -7
- package/dist/maftimeline-GHKDDWYR.js +0 -584
- package/dist/matrix-FWDLHZYR.js +0 -60
- package/dist/matrix-YMJFP53F.js +0 -55
- package/dist/matrix.cells-JH7FPY3E.js +0 -30
- package/dist/matrix.config-HIHOLDCE.js +0 -33
- package/dist/matrix.controls-EKZ543FY.js +0 -31
- package/dist/matrix.data-NKAZI2BF.js +0 -35
- package/dist/matrix.dom-RGZ52GJ2.js +0 -11
- package/dist/matrix.groups-BO53ZXXV.js +0 -26
- package/dist/matrix.integration.spec-BXTATNAC.js +0 -2936
- package/dist/matrix.interactivity-UGUMKCFN.js +0 -36
- package/dist/matrix.layout-WBIF5QTG.js +0 -35
- package/dist/matrix.legend-P3GFCXXK.js +0 -22
- package/dist/matrix.renderers-I54IHQ3S.js +0 -29
- package/dist/matrix.serieses-R2T57OYI.js +0 -21
- package/dist/matrix.sort-3GCA2GDU.js +0 -27
- package/dist/matrix.sort.unit.spec-AXGPCZZD.js +0 -464
- package/dist/matrix.sorterUi-QWRK6OGE.js +0 -18
- package/dist/matrix.sorterUi.unit.spec-H7GUVWRJ.js +0 -335
- package/dist/mavb-4EECWXYX.js +0 -723
- package/dist/mds.fimo-NHZOY43X.js +0 -509
- package/dist/mds.samplescatterplot-7A5IZ6W7.js +0 -1541
- package/dist/mds.survivalplot-SQDPUFQE.js +0 -474
- package/dist/mutationSignature-QH7PZYKL.js +0 -72
- package/dist/numericDictTermCluster-X5SGSC5K.js +0 -72
- package/dist/oncomatrix-M4C4XPQK.js +0 -287
- package/dist/oncomatrix.spec-3C642O7O.js +0 -439
- package/dist/plot.2dvaf-TILP7J53.js +0 -368
- package/dist/plot.app-DE2UQP2M.js +0 -35
- package/dist/plot.barplot-FJHS765K.js +0 -93
- package/dist/plot.boxplot-YRSHGNYZ.js +0 -143
- package/dist/plot.brainImaging-JV4OUVJY.js +0 -51
- package/dist/plot.disco-DBVPBMLG.js +0 -100
- package/dist/plot.dzi-O2OA4EBK.js +0 -33
- package/dist/plot.ssgq-YFQEZQYK.js +0 -130
- package/dist/plot.vaf2cov-YNFP5LJ4.js +0 -250
- package/dist/plot.wsi-DJB7TDIS.js +0 -36
- package/dist/polar-K5Z5FYKV.js +0 -179
- package/dist/profile.spec-A6EADWEC.js +0 -71
- package/dist/profileBarchart-EFLPJK2P.js +0 -260
- package/dist/profileForms-TG35YNLD.js +0 -365
- package/dist/profilePlot-2EW2XVTK.js +0 -50
- package/dist/profileRadar-AKUYC2O5.js +0 -256
- package/dist/profileRadarFacility-EAT66XTX.js +0 -256
- package/dist/qualitative-PHQU5DXE.js +0 -34
- package/dist/regression-EOMJRRDO.js +0 -57
- package/dist/regression.inputs-LIH5X2JM.js +0 -49
- package/dist/regression.inputs.term-OO4RZ3QB.js +0 -49
- package/dist/regression.inputs.values.table-E7WCTO2L.js +0 -46
- package/dist/regression.integration.spec-62VEQP6X.js +0 -777
- package/dist/regression.results-WAHFJ6NA.js +0 -31
- package/dist/regression.spec-IBIOTZVX.js +0 -699
- package/dist/report-MKDJXHGY.js +0 -220
- package/dist/runChart-ETM2EETF.js +0 -54
- package/dist/runchart.integration.spec-QFA4XBKB.js +0 -362
- package/dist/sampleScatter.spec-N4N7ZGZF.js +0 -193
- package/dist/sampleView-JTY3RV7I.js +0 -42
- package/dist/samplelst-RRUMBVT6.js +0 -102
- package/dist/samplematrix-L37O664Y.js +0 -2189
- package/dist/scatter-E5QHW32W.js +0 -55
- package/dist/scatter.integration.spec-FNVAJSVU.js +0 -1026
- package/dist/selectGenomeWithTklst-J6VXCYGG.js +0 -125
- package/dist/singleCellPlot-S6S6CKYX.js +0 -50
- package/dist/singlecell-4BMIKFY4.js +0 -80
- package/dist/singlecell-B4TNI23F.js +0 -1563
- package/dist/snp-PAUQ24NZ.js +0 -73
- package/dist/snplocus-HVFYZTEE.js +0 -199
- package/dist/spliceevent.a53ss.diagram-GGGHVNBF.js +0 -142
- package/dist/spliceevent.exonskip.diagram-HLMFD6LJ.js +0 -268
- package/dist/spliceevent.noeventdiagram-CKZ3BZ7Y.js +0 -451
- package/dist/ssGSEA-UGT4GH55.js +0 -53
- package/dist/stattable-6JWMALGB.js +0 -89
- package/dist/summarizeCnvGeneexp-BJOQY62E.js +0 -136
- package/dist/summarizeGeneexpSurvival-4HDHL7PE.js +0 -90
- package/dist/summarizeMutationDiagnosis-TDWO5CKU.js +0 -32
- package/dist/summarizeMutationSurvival-CJJFABOX.js +0 -92
- package/dist/summary-WOAXXIHG.js +0 -55
- package/dist/summary.integration.spec-GM73ERMN.js +0 -405
- package/dist/summaryInput-FD4SONTY.js +0 -170
- package/dist/sunburst-3LCJTBRN.js +0 -275
- package/dist/survival-A3A7IVXT.js +0 -41
- package/dist/survival-XF72VMM6.js +0 -49
- package/dist/survival.integration.spec-AU7MCAQV.js +0 -601
- package/dist/svgraph-BEMS4JDJ.js +0 -1378
- package/dist/svmr-CDEMTZPK.js +0 -3833
- package/dist/table-WYF6QCGB.js +0 -193
- package/dist/termCollection-BVQMNVY7.js +0 -80
- package/dist/termInfo-JXLIVCSO.js +0 -9
- package/dist/tk-TGIIJYBO.js +0 -37
- package/dist/tp.ui-USYF67P7.js +0 -1450
- package/dist/tvs.dtcnv.continuous-7SCTSFK3.js +0 -65
- package/dist/tvs.numeric-OLVW6US3.js +0 -355
- package/dist/tvs.samplelst-BHZHCX5V.js +0 -95
- package/dist/violin-OEOWVIZF.js +0 -47
- package/dist/violin.integration.spec-AW2U3RHO.js +0 -1425
- package/dist/violin.interactivity-3O2UDNPQ.js +0 -39
- package/dist/violin.renderer-W26FA6M7.js +0 -31
- package/dist/vocabulary-BIQYDKVY.js +0 -32
- /package/dist/{2dmaf-E4NOGWWO.js.map → 2dmaf-VLW5XJ4O.js.map} +0 -0
- /package/dist/{AIProjectAdmin-3QDXMCOK.js.map → AIProjectAdmin-X3TBCRPR.js.map} +0 -0
- /package/dist/{AppHeader-IFZ57DJE.js.map → AppHeader-YA7FCKVM.js.map} +0 -0
- /package/dist/{BoxPlot-GXDTPRA5.js.map → BoxPlot-PAZYARCX.js.map} +0 -0
- /package/dist/{CorrelationVolcano-S4GUYIPT.js.map → CorrelationVolcano-S35GWKV5.js.map} +0 -0
- /package/dist/{DifferentialAnalysis-YLKYWPUT.js.map → DifferentialAnalysis-DTDFAUXT.js.map} +0 -0
- /package/dist/{Disco-OQMP3HRQ.js.map → Disco-OE6YY3MH.js.map} +0 -0
- /package/dist/{Disco.UI-XB3XQP33.js.map → Disco.UI-2CCWETSM.js.map} +0 -0
- /package/dist/{DziViewer-UIRNTFNS.js.map → DziViewer-OHPZOH72.js.map} +0 -0
- /package/dist/{GB-KDPJTOLP.js.map → GB-LIHKHJ32.js.map} +0 -0
- /package/dist/{HicApp-XJERMLKH.js.map → HicApp-6AYCPCW6.js.map} +0 -0
- /package/dist/{NumBinaryEditor-5MWWWNLW.js.map → NumBinaryEditor-ONJB4DKM.js.map} +0 -0
- /package/dist/{NumBinaryEditor.unit.spec-ROGT5FOH.js.map → NumBinaryEditor.unit.spec-Y6DGBAIB.js.map} +0 -0
- /package/dist/{NumContEditor-RRCB4CKG.js.map → NumContEditor-6WGAI3PH.js.map} +0 -0
- /package/dist/{NumContEditor.unit.spec-AJTKOF7W.js.map → NumContEditor.unit.spec-6LT5MALH.js.map} +0 -0
- /package/dist/{NumCustomBinEditor-3GJITZ7V.js.map → NumCustomBinEditor-K4OD7SWD.js.map} +0 -0
- /package/dist/{NumCustomBinEditor.unit.spec-DNBDZSHT.js.map → NumCustomBinEditor.unit.spec-O6QYV6Q4.js.map} +0 -0
- /package/dist/{NumDiscreteEditor-TARWA6CZ.js.map → NumDiscreteEditor-AFLINO62.js.map} +0 -0
- /package/dist/{NumDiscreteEditor.unit.spec-TCSLTQ25.js.map → NumDiscreteEditor.unit.spec-3VWWSS24.js.map} +0 -0
- /package/dist/{NumRegularBinEditor-QF5ALVV4.js.map → NumRegularBinEditor-IRKC5SVF.js.map} +0 -0
- /package/dist/{NumRegularBinEditor.unit.spec-GFNDBWNM.js.map → NumRegularBinEditor.unit.spec-2ZTI7HR2.js.map} +0 -0
- /package/dist/{NumSplineEditor-MOEUXR34.js.map → NumSplineEditor-DBW6XE4N.js.map} +0 -0
- /package/dist/{NumSplineEditor.unit.spec-XPJOOXS4.js.map → NumSplineEditor.unit.spec-645ZQXXL.js.map} +0 -0
- /package/dist/{NumericDensity-JDE263EQ.js.map → NumericDensity-27SM2P45.js.map} +0 -0
- /package/dist/{NumericDensity.unit.spec-RX6UGV56.js.map → NumericDensity.unit.spec-DM7PPSMV.js.map} +0 -0
- /package/dist/{NumericHandler-XM7LUYHN.js.map → NumericHandler-KFQ2OSUR.js.map} +0 -0
- /package/dist/{NumericHandler.unit.spec-5EYRMII7.js.map → NumericHandler.unit.spec-RNXGCYH7.js.map} +0 -0
- /package/dist/{SC-Z4KBNK7P.js.map → SC-SUUATZYR.js.map} +0 -0
- /package/dist/{Volcano-WYJLKM4K.js.map → Volcano-DEKTKEEZ.js.map} +0 -0
- /package/dist/{WSIViewer-3RMG3VOA.js.map → WSIViewer-SWX4OXHY.js.map} +0 -0
- /package/dist/{WsiSamplesPlot-PAWNKI7R.js.map → WsiSamplesPlot-OCVLBBBD.js.map} +0 -0
- /package/dist/{adSandbox-7H5H46SE.js.map → adSandbox-VGHHJWLL.js.map} +0 -0
- /package/dist/{alphaGenome-PODWDV5T.js.map → alphaGenome-YOJWFJCS.js.map} +0 -0
- /package/dist/{app-JPURIGQW.js.map → app-3TXV35H5.js.map} +0 -0
- /package/dist/{app-YL7S55T5.js.map → app-NUTP544R.js.map} +0 -0
- /package/dist/{bam-XEO47VYA.js.map → bam-LXDFDUBH.js.map} +0 -0
- /package/dist/{barchart-B5M6SSJH.js.map → barchart-P4BTYT5K.js.map} +0 -0
- /package/dist/{barchart.data-6A6WVV4Y.js.map → barchart.data-6WIS5D4I.js.map} +0 -0
- /package/dist/{barchart.events-2GNB5KWY.js.map → barchart.events-V4ANDWUH.js.map} +0 -0
- /package/dist/{barchart.integration.spec-JEOTKIWC.js.map → barchart.integration.spec-QU3Y3YHM.js.map} +0 -0
- /package/dist/{bars.renderer-NLUBMQEO.js.map → bars.renderer-4N4QOUNI.js.map} +0 -0
- /package/dist/{bars.settings-UQZ63KU4.js.map → bars.settings-SDU7PZOS.js.map} +0 -0
- /package/dist/{block-B7WMYLPO.js.map → block-OGJAZG3E.js.map} +0 -0
- /package/dist/{block.init-KCIXEYQC.js.map → block.init-SNZKGO2G.js.map} +0 -0
- /package/dist/{block.mds.expressionrank-RYZXAH5Y.js.map → block.mds.expressionrank-WYV55X5Y.js.map} +0 -0
- /package/dist/{block.mds.geneboxplot-LNWUEI6N.js.map → block.mds.geneboxplot-2LVYSSSU.js.map} +0 -0
- /package/dist/{block.mds.junction-CVIY7QMD.js.map → block.mds.junction-YY3P64U5.js.map} +0 -0
- /package/dist/{block.mds.svcnv-EUGWHSCA.js.map → block.mds.svcnv-JFNOLZX3.js.map} +0 -0
- /package/dist/{block.svg-QBLNIGUF.js.map → block.svg-JBR6OYAD.js.map} +0 -0
- /package/dist/{block.tk.aicheck-U6NG22FX.js.map → block.tk.aicheck-2XDMLOND.js.map} +0 -0
- /package/dist/{block.tk.ase-U3TRZAOH.js.map → block.tk.ase-TC3NY65S.js.map} +0 -0
- /package/dist/{block.tk.bam-6Y6YFVR2.js.map → block.tk.bam-YA32442V.js.map} +0 -0
- /package/dist/{block.tk.bedgraphdot-O3VCFX6K.js.map → block.tk.bedgraphdot-TRNM4O4F.js.map} +0 -0
- /package/dist/{block.tk.bigwig.ui-DNBJAF72.js.map → block.tk.bigwig.ui-6JJG42M3.js.map} +0 -0
- /package/dist/{block.tk.hicstraw-2EIFJX7E.js.map → block.tk.hicstraw-HEQXBJZN.js.map} +0 -0
- /package/dist/{block.tk.junction-UXSO5EJP.js.map → block.tk.junction-7LWL3N6V.js.map} +0 -0
- /package/dist/{block.tk.junction.textmatrixui-HQ6ZKCHM.js.map → block.tk.junction.textmatrixui-6CTLQ2M7.js.map} +0 -0
- /package/dist/{block.tk.ld-NEB4F3UG.js.map → block.tk.ld-SG4ZJ5VB.js.map} +0 -0
- /package/dist/{block.tk.menu-BN4JPJSD.js.map → block.tk.menu-FNKM5H5D.js.map} +0 -0
- /package/dist/{block.tk.pgv-A4QFVSPF.js.map → block.tk.pgv-KNLGEASZ.js.map} +0 -0
- /package/dist/{brainImaging-ESQGNGZH.js.map → brainImaging-RO5P7ZR6.js.map} +0 -0
- /package/dist/{chunk-NRYOB7WU.js.map → chunk-2HJ7OD7H.js.map} +0 -0
- /package/dist/{chunk-PMZS3SHH.js.map → chunk-2MN5JLZB.js.map} +0 -0
- /package/dist/{chunk-7LKSKJCV.js.map → chunk-353ULT52.js.map} +0 -0
- /package/dist/{chunk-IPAGDFO4.js.map → chunk-3JFEWVHR.js.map} +0 -0
- /package/dist/{chunk-OQSP66C6.js.map → chunk-4PHD5H4A.js.map} +0 -0
- /package/dist/{chunk-GBWRKJAH.js.map → chunk-56IFQMJK.js.map} +0 -0
- /package/dist/{chunk-RQUXELHE.js.map → chunk-5HXU7P5T.js.map} +0 -0
- /package/dist/{chunk-M7QVMSRW.js.map → chunk-5KUQSXQC.js.map} +0 -0
- /package/dist/{chunk-C5YNONHQ.js.map → chunk-6ISTNHM6.js.map} +0 -0
- /package/dist/{chunk-ECKWM4HB.js.map → chunk-6VQ4C735.js.map} +0 -0
- /package/dist/{chunk-ROWCKPNW.js.map → chunk-7M6V7OGP.js.map} +0 -0
- /package/dist/{chunk-7P67W6NF.js.map → chunk-B5YJ4S2E.js.map} +0 -0
- /package/dist/{chunk-UZV3QI5M.js.map → chunk-B65X5UQH.js.map} +0 -0
- /package/dist/{chunk-SN5QKRXO.js.map → chunk-BTYCW3D5.js.map} +0 -0
- /package/dist/{chunk-E6NE5IWR.js.map → chunk-BW2MEKH4.js.map} +0 -0
- /package/dist/{chunk-PPJSDC3Z.js.map → chunk-C4NAQESE.js.map} +0 -0
- /package/dist/{chunk-2DZWOGEH.js.map → chunk-CDVICC3E.js.map} +0 -0
- /package/dist/{chunk-GG67VPVD.js.map → chunk-D53HBTYQ.js.map} +0 -0
- /package/dist/{chunk-236ZRGXA.js.map → chunk-D7HC37OF.js.map} +0 -0
- /package/dist/{chunk-2ZEORJCF.js.map → chunk-DACGCI3Q.js.map} +0 -0
- /package/dist/{chunk-RYRCMHYR.js.map → chunk-DKI7YOTJ.js.map} +0 -0
- /package/dist/{chunk-2MRZFUHZ.js.map → chunk-DNU4IPD2.js.map} +0 -0
- /package/dist/{chunk-QIS45Z4Y.js.map → chunk-DOLIDO2R.js.map} +0 -0
- /package/dist/{chunk-7RIC35AF.js.map → chunk-DRDIOSDW.js.map} +0 -0
- /package/dist/{chunk-A76B53VT.js.map → chunk-DRFGAPYN.js.map} +0 -0
- /package/dist/{chunk-3WA7SJTR.js.map → chunk-ECFK2NV5.js.map} +0 -0
- /package/dist/{chunk-J2E4FALN.js.map → chunk-ETBTUFRA.js.map} +0 -0
- /package/dist/{chunk-OFQV6PRB.js.map → chunk-FMZEW7AB.js.map} +0 -0
- /package/dist/{chunk-HEFXMCSF.js.map → chunk-GCQYBMGL.js.map} +0 -0
- /package/dist/{chunk-W4D2EYE4.js.map → chunk-H2QGRBCK.js.map} +0 -0
- /package/dist/{chunk-GZ2B634M.js.map → chunk-HPEMEDXB.js.map} +0 -0
- /package/dist/{chunk-I26R4NJJ.js.map → chunk-HXT3XNAX.js.map} +0 -0
- /package/dist/{chunk-XATIKUGU.js.map → chunk-IZ77ZFBY.js.map} +0 -0
- /package/dist/{chunk-DPU66MZ7.js.map → chunk-JMO7ENSD.js.map} +0 -0
- /package/dist/{chunk-VALBVQXS.js.map → chunk-KHOR7BCS.js.map} +0 -0
- /package/dist/{chunk-OMO754MK.js.map → chunk-LD45BCVM.js.map} +0 -0
- /package/dist/{chunk-AZ276Z7T.js.map → chunk-MJM2U67B.js.map} +0 -0
- /package/dist/{chunk-TZRD3FPN.js.map → chunk-MRDHGWNV.js.map} +0 -0
- /package/dist/{chunk-B662XJMJ.js.map → chunk-MXSMHJIP.js.map} +0 -0
- /package/dist/{chunk-RCVZ4L7K.js.map → chunk-N4D5G5IT.js.map} +0 -0
- /package/dist/{chunk-2HQJMZNY.js.map → chunk-NCL2K6UD.js.map} +0 -0
- /package/dist/{chunk-F3FTQWTA.js.map → chunk-O552UNW2.js.map} +0 -0
- /package/dist/{chunk-UOMRXQNW.js.map → chunk-OARG7PAV.js.map} +0 -0
- /package/dist/{chunk-47X254B7.js.map → chunk-OLUMAQOQ.js.map} +0 -0
- /package/dist/{chunk-KGSCQRQ5.js.map → chunk-OSNUFZAX.js.map} +0 -0
- /package/dist/{chunk-FOXJTDTH.js.map → chunk-PN6GLQWD.js.map} +0 -0
- /package/dist/{chunk-5CJJLBUZ.js.map → chunk-PZRXLO7V.js.map} +0 -0
- /package/dist/{chunk-6MSJ3TLQ.js.map → chunk-PZY4L6NK.js.map} +0 -0
- /package/dist/{chunk-CZTC4MTE.js.map → chunk-Q6FKQ63P.js.map} +0 -0
- /package/dist/{chunk-EIMEUZP2.js.map → chunk-QCTJ6JA2.js.map} +0 -0
- /package/dist/{chunk-S7EKSDVS.js.map → chunk-RKV3CP4C.js.map} +0 -0
- /package/dist/{chunk-JXHU2FIA.js.map → chunk-RYT4A7AQ.js.map} +0 -0
- /package/dist/{chunk-ETFPL4UP.js.map → chunk-SBEA552U.js.map} +0 -0
- /package/dist/{chunk-PBJFLQGL.js.map → chunk-SEL5UNRC.js.map} +0 -0
- /package/dist/{chunk-47HG7LGD.js.map → chunk-SO4QKH47.js.map} +0 -0
- /package/dist/{chunk-BP2F2GRB.js.map → chunk-TMEYYK4R.js.map} +0 -0
- /package/dist/{chunk-ZL4CNBYY.js.map → chunk-UAKYIZJI.js.map} +0 -0
- /package/dist/{chunk-KGYPMYQD.js.map → chunk-V4F264MW.js.map} +0 -0
- /package/dist/{chunk-EEX5VPJG.js.map → chunk-W4IQ4XYS.js.map} +0 -0
- /package/dist/{chunk-ZQ7L66GP.js.map → chunk-WTPVXDJT.js.map} +0 -0
- /package/dist/{chunk-MG6GRQKO.js.map → chunk-WVZV43PF.js.map} +0 -0
- /package/dist/{chunk-4XDKCFFT.js.map → chunk-X62MQS7A.js.map} +0 -0
- /package/dist/{chunk-L3PMRBTA.js.map → chunk-XAIW4R76.js.map} +0 -0
- /package/dist/{chunk-U5QRRS7K.js.map → chunk-XQGO3DQ2.js.map} +0 -0
- /package/dist/{chunk-OS46MR72.js.map → chunk-YBDLY45S.js.map} +0 -0
- /package/dist/{chunk-F4APZ34G.js.map → chunk-YFZH3WDM.js.map} +0 -0
- /package/dist/{chunk-ICNJQHQZ.js.map → chunk-ZFFHOEBE.js.map} +0 -0
- /package/dist/{chunk-N5VBIEH5.js.map → chunk-ZLBDDGSP.js.map} +0 -0
- /package/dist/{chunk-CT3LPTWW.js.map → chunk-ZOD2EZOP.js.map} +0 -0
- /package/dist/{condition-24HPVH23.js.map → condition-KDKI25VM.js.map} +0 -0
- /package/dist/{controls-5CSAKANR.js.map → controls-26FVLZRQ.js.map} +0 -0
- /package/dist/{controls.btns-QLLBCT65.js.map → controls.btns-H4TWTHTW.js.map} +0 -0
- /package/dist/{controls.config-H4FMU5LI.js.map → controls.config-O6YC7P4M.js.map} +0 -0
- /package/dist/{correlation-RB77VSXB.js.map → correlation-DVDT43OT.js.map} +0 -0
- /package/dist/{cuminc-YZSLH5IO.js.map → cuminc-T6EYUBUX.js.map} +0 -0
- /package/dist/{cuminc.integration.spec-MZPT3Y5A.js.map → cuminc.integration.spec-P4YPZXDY.js.map} +0 -0
- /package/dist/{customdata.inputui-CBTZFODT.js.map → customdata.inputui-XPXZ7KB5.js.map} +0 -0
- /package/dist/{dataDownload-ZTGRVI4Q.js.map → dataDownload-46POC5GF.js.map} +0 -0
- /package/dist/{dataDownload.integration.spec-Q6GUTUYD.js.map → dataDownload.integration.spec-L7P5YMF7.js.map} +0 -0
- /package/dist/{databrowser.ui-V7E6CLUZ.js.map → databrowser.ui-DQEQXZCP.js.map} +0 -0
- /package/dist/{dictionary-RPC5OZMM.js.map → dictionary-MBERWWV4.js.map} +0 -0
- /package/dist/{e2pca-WDQHMAUM.js.map → e2pca-5HU65GVJ.js.map} +0 -0
- /package/dist/{ep-NAM34BBI.js.map → ep-ECP7H37A.js.map} +0 -0
- /package/dist/{expclust.gdc.spec-QB4GVDJA.js.map → expclust.gdc.spec-553FSEDH.js.map} +0 -0
- /package/dist/{facet-DOXBBIG6.js.map → facet-ND335XOF.js.map} +0 -0
- /package/dist/{frequencyChart-GLOIGP3T.js.map → frequencyChart-2OHEOWEU.js.map} +0 -0
- /package/dist/{frequencyChart.integration.spec-B7NBBLH2.js.map → frequencyChart.integration.spec-NW4DDLRX.js.map} +0 -0
- /package/dist/{geneExpClustering-B4S6GFNT.js.map → geneExpClustering-GHGBONBF.js.map} +0 -0
- /package/dist/{geneExpression-MVVXRNEY.js.map → geneExpression-UGYGT6DM.js.map} +0 -0
- /package/dist/{geneExpression-DMU4AQP6.js.map → geneExpression-X6HAUFPK.js.map} +0 -0
- /package/dist/{geneORA-XDAITCQF.js.map → geneORA-YKXRPEYY.js.map} +0 -0
- /package/dist/{geneVariant-N6IGEIRR.js.map → geneVariant-363FWTVR.js.map} +0 -0
- /package/dist/{geneVariant-QYLA2V6J.js.map → geneVariant-J4O45233.js.map} +0 -0
- /package/dist/{genefusion.ui-FRBMNK7V.js.map → genefusion.ui-DWAZJDO4.js.map} +0 -0
- /package/dist/{geneset-GZYNBG7Y.js.map → geneset-64VRPPTK.js.map} +0 -0
- /package/dist/{genomeBrowser.spec-WFIVQSE7.js.map → genomeBrowser.spec-AN3YXXBS.js.map} +0 -0
- /package/dist/{grin2-ZKNNZXON.js.map → grin2-E2WNBPLR.js.map} +0 -0
- /package/dist/{gsea-GFGAEC4K.js.map → gsea-PNORGHHB.js.map} +0 -0
- /package/dist/{hierCluster-MF4TI3E4.js.map → hierCluster-B7YMJ3UK.js.map} +0 -0
- /package/dist/{hierCluster-SDJMQLOQ.js.map → hierCluster-VAQBNVKU.js.map} +0 -0
- /package/dist/{hierCluster.config-RMEX3VTC.js.map → hierCluster.config-D7MDBQ35.js.map} +0 -0
- /package/dist/{hierCluster.integration.spec-3H63OHMU.js.map → hierCluster.integration.spec-UHRGPV6T.js.map} +0 -0
- /package/dist/{hierCluster.interactivity-4DZBRQ6P.js.map → hierCluster.interactivity-NJFEZILS.js.map} +0 -0
- /package/dist/{hierCluster.renderers-UOW7BI6N.js.map → hierCluster.renderers-GWFH5ZX7.js.map} +0 -0
- /package/dist/{imagePlot-P2UHJRSL.js.map → imagePlot-LWJPXMNK.js.map} +0 -0
- /package/dist/{importPlot-PPCMNVOW.js.map → importPlot-JBVMBUCU.js.map} +0 -0
- /package/dist/{launch.adhoc-RJWUEVRA.js.map → launch.adhoc-6GLLB7TX.js.map} +0 -0
- /package/dist/{leftlabel.sample-OYP6MICL.js.map → leftlabel.sample-3SO3AJ2U.js.map} +0 -0
- /package/dist/{lollipop-BXQOWLGO.js.map → lollipop-LJEVK7YO.js.map} +0 -0
- /package/dist/{maftimeline-GHKDDWYR.js.map → maftimeline-YMX542CP.js.map} +0 -0
- /package/dist/{matrix-FWDLHZYR.js.map → matrix-CR2EK5EU.js.map} +0 -0
- /package/dist/{matrix-YMJFP53F.js.map → matrix-YI4D3YQI.js.map} +0 -0
- /package/dist/{matrix.cells-JH7FPY3E.js.map → matrix.cells-SCLZA3P4.js.map} +0 -0
- /package/dist/{matrix.config-HIHOLDCE.js.map → matrix.config-TOC4QWE7.js.map} +0 -0
- /package/dist/{matrix.controls-EKZ543FY.js.map → matrix.controls-27D3Q4GD.js.map} +0 -0
- /package/dist/{matrix.data-NKAZI2BF.js.map → matrix.data-ETVML2F7.js.map} +0 -0
- /package/dist/{matrix.dom-RGZ52GJ2.js.map → matrix.dom-QO7BXZ27.js.map} +0 -0
- /package/dist/{matrix.groups-BO53ZXXV.js.map → matrix.groups-QMZMZ6Q7.js.map} +0 -0
- /package/dist/{matrix.integration.spec-BXTATNAC.js.map → matrix.integration.spec-DDXKS5GP.js.map} +0 -0
- /package/dist/{matrix.interactivity-UGUMKCFN.js.map → matrix.interactivity-XTNDVF55.js.map} +0 -0
- /package/dist/{matrix.layout-WBIF5QTG.js.map → matrix.layout-NGPK4EEU.js.map} +0 -0
- /package/dist/{matrix.legend-P3GFCXXK.js.map → matrix.legend-CS6DNC5V.js.map} +0 -0
- /package/dist/{matrix.renderers-I54IHQ3S.js.map → matrix.renderers-ILFHUPHQ.js.map} +0 -0
- /package/dist/{matrix.serieses-R2T57OYI.js.map → matrix.serieses-3SERD6CV.js.map} +0 -0
- /package/dist/{matrix.sort-3GCA2GDU.js.map → matrix.sort-UVS6WHIS.js.map} +0 -0
- /package/dist/{matrix.sort.unit.spec-AXGPCZZD.js.map → matrix.sort.unit.spec-DAMINC6B.js.map} +0 -0
- /package/dist/{matrix.sorterUi-QWRK6OGE.js.map → matrix.sorterUi-JDGLTLJM.js.map} +0 -0
- /package/dist/{matrix.sorterUi.unit.spec-H7GUVWRJ.js.map → matrix.sorterUi.unit.spec-M3RXU6B2.js.map} +0 -0
- /package/dist/{mavb-4EECWXYX.js.map → mavb-EC5VS3RS.js.map} +0 -0
- /package/dist/{mds.fimo-NHZOY43X.js.map → mds.fimo-7SXXTBUH.js.map} +0 -0
- /package/dist/{mds.samplescatterplot-7A5IZ6W7.js.map → mds.samplescatterplot-CALFSFR6.js.map} +0 -0
- /package/dist/{mds.survivalplot-SQDPUFQE.js.map → mds.survivalplot-NRA67V4T.js.map} +0 -0
- /package/dist/{mutationSignature-QH7PZYKL.js.map → mutationSignature-43SECPTY.js.map} +0 -0
- /package/dist/{numericDictTermCluster-X5SGSC5K.js.map → numericDictTermCluster-2ER4FUKO.js.map} +0 -0
- /package/dist/{oncomatrix-M4C4XPQK.js.map → oncomatrix-FOCP66RC.js.map} +0 -0
- /package/dist/{oncomatrix.spec-3C642O7O.js.map → oncomatrix.spec-XB232WT7.js.map} +0 -0
- /package/dist/{plot.2dvaf-TILP7J53.js.map → plot.2dvaf-GSQS5J6Y.js.map} +0 -0
- /package/dist/{plot.app-DE2UQP2M.js.map → plot.app-RHPEFX47.js.map} +0 -0
- /package/dist/{plot.barplot-FJHS765K.js.map → plot.barplot-2Q5YF3MU.js.map} +0 -0
- /package/dist/{plot.boxplot-YRSHGNYZ.js.map → plot.boxplot-LTYLWTF4.js.map} +0 -0
- /package/dist/{plot.brainImaging-JV4OUVJY.js.map → plot.brainImaging-EFRI4QV7.js.map} +0 -0
- /package/dist/{plot.disco-DBVPBMLG.js.map → plot.disco-HHYCMRCZ.js.map} +0 -0
- /package/dist/{plot.dzi-O2OA4EBK.js.map → plot.dzi-BCTPDUDK.js.map} +0 -0
- /package/dist/{plot.ssgq-YFQEZQYK.js.map → plot.ssgq-ES2ZP7MO.js.map} +0 -0
- /package/dist/{plot.vaf2cov-YNFP5LJ4.js.map → plot.vaf2cov-W72Y2IHA.js.map} +0 -0
- /package/dist/{plot.wsi-DJB7TDIS.js.map → plot.wsi-TPZXI45Q.js.map} +0 -0
- /package/dist/{polar-K5Z5FYKV.js.map → polar-MT3K2WDL.js.map} +0 -0
- /package/dist/{profile.spec-A6EADWEC.js.map → profile.spec-DOQYKG6P.js.map} +0 -0
- /package/dist/{profileBarchart-EFLPJK2P.js.map → profileBarchart-A4UWV2YA.js.map} +0 -0
- /package/dist/{profileForms-TG35YNLD.js.map → profileForms-VONTWVOF.js.map} +0 -0
- /package/dist/{profilePlot-2EW2XVTK.js.map → profilePlot-OK5VKWO4.js.map} +0 -0
- /package/dist/{profileRadar-AKUYC2O5.js.map → profileRadar-VLEZJCD7.js.map} +0 -0
- /package/dist/{profileRadarFacility-EAT66XTX.js.map → profileRadarFacility-QPSSUTB6.js.map} +0 -0
- /package/dist/{qualitative-PHQU5DXE.js.map → qualitative-RJKAWHQR.js.map} +0 -0
- /package/dist/{regression-EOMJRRDO.js.map → regression-GV73BYCQ.js.map} +0 -0
- /package/dist/{regression.inputs-LIH5X2JM.js.map → regression.inputs-PVIJHCRE.js.map} +0 -0
- /package/dist/{regression.inputs.term-OO4RZ3QB.js.map → regression.inputs.term-V5I3EP6M.js.map} +0 -0
- /package/dist/{regression.inputs.values.table-E7WCTO2L.js.map → regression.inputs.values.table-Y37EJUQB.js.map} +0 -0
- /package/dist/{regression.integration.spec-62VEQP6X.js.map → regression.integration.spec-JD32ODD2.js.map} +0 -0
- /package/dist/{regression.results-WAHFJ6NA.js.map → regression.results-AHAYXYGI.js.map} +0 -0
- /package/dist/{regression.spec-IBIOTZVX.js.map → regression.spec-FGYEES5G.js.map} +0 -0
- /package/dist/{report-MKDJXHGY.js.map → report-JYIEDDW5.js.map} +0 -0
- /package/dist/{runChart-ETM2EETF.js.map → runChart-CVAWIBA3.js.map} +0 -0
- /package/dist/{runchart.integration.spec-QFA4XBKB.js.map → runchart.integration.spec-5Z4IHQU5.js.map} +0 -0
- /package/dist/{sampleScatter.spec-N4N7ZGZF.js.map → sampleScatter.spec-QNFWS2Y7.js.map} +0 -0
- /package/dist/{sampleView-JTY3RV7I.js.map → sampleView-GKYHS3WO.js.map} +0 -0
- /package/dist/{samplelst-RRUMBVT6.js.map → samplelst-CHBS5BGY.js.map} +0 -0
- /package/dist/{samplematrix-L37O664Y.js.map → samplematrix-IK4YDAID.js.map} +0 -0
- /package/dist/{scatter-E5QHW32W.js.map → scatter-NDA5YSCP.js.map} +0 -0
- /package/dist/{scatter.integration.spec-FNVAJSVU.js.map → scatter.integration.spec-GV3EIFGT.js.map} +0 -0
- /package/dist/{selectGenomeWithTklst-J6VXCYGG.js.map → selectGenomeWithTklst-X7RAGKRC.js.map} +0 -0
- /package/dist/{singleCellPlot-S6S6CKYX.js.map → singleCellPlot-7F735HTR.js.map} +0 -0
- /package/dist/{singlecell-B4TNI23F.js.map → singlecell-EO3WYGS7.js.map} +0 -0
- /package/dist/{singlecell-4BMIKFY4.js.map → singlecell-YMYLKTSC.js.map} +0 -0
- /package/dist/{snp-PAUQ24NZ.js.map → snp-6KN4AWBB.js.map} +0 -0
- /package/dist/{snplocus-HVFYZTEE.js.map → snplocus-CLM4WHVH.js.map} +0 -0
- /package/dist/{spliceevent.a53ss.diagram-GGGHVNBF.js.map → spliceevent.a53ss.diagram-PKFVC2N4.js.map} +0 -0
- /package/dist/{spliceevent.exonskip.diagram-HLMFD6LJ.js.map → spliceevent.exonskip.diagram-XV2Z7AYB.js.map} +0 -0
- /package/dist/{spliceevent.noeventdiagram-CKZ3BZ7Y.js.map → spliceevent.noeventdiagram-L5L2BJL5.js.map} +0 -0
- /package/dist/{ssGSEA-UGT4GH55.js.map → ssGSEA-W6N4CXMD.js.map} +0 -0
- /package/dist/{stattable-6JWMALGB.js.map → stattable-324FS2HA.js.map} +0 -0
- /package/dist/{summarizeCnvGeneexp-BJOQY62E.js.map → summarizeCnvGeneexp-57LZ5B2Q.js.map} +0 -0
- /package/dist/{summarizeGeneexpSurvival-4HDHL7PE.js.map → summarizeGeneexpSurvival-UQX3VZUK.js.map} +0 -0
- /package/dist/{summarizeMutationDiagnosis-TDWO5CKU.js.map → summarizeMutationDiagnosis-5SWO42E4.js.map} +0 -0
- /package/dist/{summarizeMutationSurvival-CJJFABOX.js.map → summarizeMutationSurvival-EOU5QOB6.js.map} +0 -0
- /package/dist/{summary-WOAXXIHG.js.map → summary-FRIKVPYZ.js.map} +0 -0
- /package/dist/{summary.integration.spec-GM73ERMN.js.map → summary.integration.spec-WSI3JNTO.js.map} +0 -0
- /package/dist/{summaryInput-FD4SONTY.js.map → summaryInput-3L7CM52X.js.map} +0 -0
- /package/dist/{sunburst-3LCJTBRN.js.map → sunburst-HA7UGSXX.js.map} +0 -0
- /package/dist/{survival-A3A7IVXT.js.map → survival-2HZ446Y3.js.map} +0 -0
- /package/dist/{survival-XF72VMM6.js.map → survival-LJI5JEZZ.js.map} +0 -0
- /package/dist/{survival.integration.spec-AU7MCAQV.js.map → survival.integration.spec-7XVO2WNF.js.map} +0 -0
- /package/dist/{svgraph-BEMS4JDJ.js.map → svgraph-TRPAXTNP.js.map} +0 -0
- /package/dist/{svmr-CDEMTZPK.js.map → svmr-TJOCKTE2.js.map} +0 -0
- /package/dist/{table-WYF6QCGB.js.map → table-35RHJK4M.js.map} +0 -0
- /package/dist/{termCollection-BVQMNVY7.js.map → termCollection-JS6N5TAP.js.map} +0 -0
- /package/dist/{termInfo-JXLIVCSO.js.map → termInfo-5USFZGDB.js.map} +0 -0
- /package/dist/{tk-TGIIJYBO.js.map → tk-4ARNGTEQ.js.map} +0 -0
- /package/dist/{tp.ui-USYF67P7.js.map → tp.ui-QZEMGVEH.js.map} +0 -0
- /package/dist/{tvs.dtcnv.continuous-7SCTSFK3.js.map → tvs.dtcnv.continuous-4K7B7FXF.js.map} +0 -0
- /package/dist/{tvs.numeric-OLVW6US3.js.map → tvs.numeric-FCC2EY62.js.map} +0 -0
- /package/dist/{tvs.samplelst-BHZHCX5V.js.map → tvs.samplelst-IUSDLB6P.js.map} +0 -0
- /package/dist/{violin-OEOWVIZF.js.map → violin-I5JO56GZ.js.map} +0 -0
- /package/dist/{violin.integration.spec-AW2U3RHO.js.map → violin.integration.spec-5WVLT3DW.js.map} +0 -0
- /package/dist/{violin.interactivity-3O2UDNPQ.js.map → violin.interactivity-EFFBMTN2.js.map} +0 -0
- /package/dist/{violin.renderer-W26FA6M7.js.map → violin.renderer-Z3AIV5RH.js.map} +0 -0
- /package/dist/{vocabulary-BIQYDKVY.js.map → vocabulary-4PHACFSG.js.map} +0 -0
|
@@ -0,0 +1,3089 @@
|
|
|
1
|
+
import {
|
|
2
|
+
topBarInit
|
|
3
|
+
} from "./chunk-HPEMEDXB.js";
|
|
4
|
+
import {
|
|
5
|
+
configUiInit
|
|
6
|
+
} from "./chunk-X62MQS7A.js";
|
|
7
|
+
import {
|
|
8
|
+
InvalidDataUI,
|
|
9
|
+
getMaxLabelWidth,
|
|
10
|
+
renderTable,
|
|
11
|
+
svgLegend,
|
|
12
|
+
table2col
|
|
13
|
+
} from "./chunk-PX7A6LBY.js";
|
|
14
|
+
import "./chunk-HJ6L54YS.js";
|
|
15
|
+
import {
|
|
16
|
+
dofetch3
|
|
17
|
+
} from "./chunk-6ADTREVX.js";
|
|
18
|
+
import "./chunk-DKI7YOTJ.js";
|
|
19
|
+
import {
|
|
20
|
+
bplen,
|
|
21
|
+
dtcnv,
|
|
22
|
+
dtfusionrna,
|
|
23
|
+
dtloh,
|
|
24
|
+
dtsnvindel,
|
|
25
|
+
dtsv,
|
|
26
|
+
mclass
|
|
27
|
+
} from "./chunk-6VQ4C735.js";
|
|
28
|
+
import {
|
|
29
|
+
Menu
|
|
30
|
+
} from "./chunk-TGZA4ETW.js";
|
|
31
|
+
import "./chunk-5MWX5HUZ.js";
|
|
32
|
+
import "./chunk-IQIXGTQV.js";
|
|
33
|
+
import "./chunk-ZFFHOEBE.js";
|
|
34
|
+
import {
|
|
35
|
+
copyMerge,
|
|
36
|
+
getCompInit,
|
|
37
|
+
multiInit
|
|
38
|
+
} from "./chunk-DDOM4XYV.js";
|
|
39
|
+
import "./chunk-7NTZWOJV.js";
|
|
40
|
+
import "./chunk-LD45BCVM.js";
|
|
41
|
+
import "./chunk-RA5EXEHB.js";
|
|
42
|
+
import {
|
|
43
|
+
arc_default,
|
|
44
|
+
line_default,
|
|
45
|
+
pie_default,
|
|
46
|
+
ribbon_default
|
|
47
|
+
} from "./chunk-2MN5JLZB.js";
|
|
48
|
+
import "./chunk-LOZEKOES.js";
|
|
49
|
+
import "./chunk-TOU7EVFQ.js";
|
|
50
|
+
import {
|
|
51
|
+
linear,
|
|
52
|
+
ticks
|
|
53
|
+
} from "./chunk-W2IWHXLL.js";
|
|
54
|
+
import "./chunk-5OHXYXLD.js";
|
|
55
|
+
import "./chunk-UJUXE42U.js";
|
|
56
|
+
import "./chunk-OMR2DT66.js";
|
|
57
|
+
import {
|
|
58
|
+
pointer_default,
|
|
59
|
+
select_default
|
|
60
|
+
} from "./chunk-NDWTN4U5.js";
|
|
61
|
+
import "./chunk-HFNDKYVF.js";
|
|
62
|
+
|
|
63
|
+
// plots/disco/arc/FullArcRenderer.ts
|
|
64
|
+
var FullArcRenderer = class {
|
|
65
|
+
constructor(radius, width, color) {
|
|
66
|
+
this.radius = radius;
|
|
67
|
+
this.width = width;
|
|
68
|
+
this.color = color;
|
|
69
|
+
}
|
|
70
|
+
render(holder) {
|
|
71
|
+
const donutGenerator = arc_default();
|
|
72
|
+
const arc = {
|
|
73
|
+
startAngle: 0,
|
|
74
|
+
endAngle: Math.PI * 2,
|
|
75
|
+
innerRadius: this.radius,
|
|
76
|
+
outerRadius: this.radius + this.width,
|
|
77
|
+
color: this.color,
|
|
78
|
+
text: "No label"
|
|
79
|
+
};
|
|
80
|
+
const array = [];
|
|
81
|
+
array.push(arc);
|
|
82
|
+
const donutArc = holder.append("g");
|
|
83
|
+
donutArc.selectAll("path").data(array).enter().append("path").attr("d", (d) => donutGenerator(d)).attr("fill", (d) => d.color);
|
|
84
|
+
}
|
|
85
|
+
};
|
|
86
|
+
|
|
87
|
+
// plots/disco/menu/MenuProvider.ts
|
|
88
|
+
var MenuProvider = class {
|
|
89
|
+
static create() {
|
|
90
|
+
const menu = new Menu({ padding: 5 });
|
|
91
|
+
menu.d.style("border", "1px solid #FFF").style("position", "absolute").style("z-index", 1001);
|
|
92
|
+
return menu;
|
|
93
|
+
}
|
|
94
|
+
};
|
|
95
|
+
|
|
96
|
+
// plots/disco/fusion/FusionColorProvider.ts
|
|
97
|
+
var FusionColorProvider = class {
|
|
98
|
+
static getColor(chrA, chrB) {
|
|
99
|
+
if (chrA != chrB) {
|
|
100
|
+
return "#6A3D9A" /* Interchromosomal */.valueOf();
|
|
101
|
+
} else {
|
|
102
|
+
return "#1B9E77" /* Intrachromosomal */.valueOf();
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
};
|
|
106
|
+
|
|
107
|
+
// plots/disco/fusion/FusionRenderer.ts
|
|
108
|
+
var FusionRenderer = class {
|
|
109
|
+
constructor(genome) {
|
|
110
|
+
this.genome = genome;
|
|
111
|
+
}
|
|
112
|
+
render(holder, fusions, opacity = 1) {
|
|
113
|
+
let radius = 0;
|
|
114
|
+
const fusionsWithTarget = fusions.filter((f) => f.target);
|
|
115
|
+
if (fusionsWithTarget.length > 0) {
|
|
116
|
+
radius = fusionsWithTarget[0].target.radius;
|
|
117
|
+
const fullArcRenderer = new FullArcRenderer(radius, 2, "#6464641A");
|
|
118
|
+
fullArcRenderer.render(holder);
|
|
119
|
+
} else return;
|
|
120
|
+
const ribbon = ribbon_default().radius(radius);
|
|
121
|
+
const ribbons = holder.selectAll(".chord").data(fusions);
|
|
122
|
+
const menu = MenuProvider.create();
|
|
123
|
+
const createTooltip = this.createTooltip.bind(this);
|
|
124
|
+
const genome = this.genome;
|
|
125
|
+
ribbons.enter().append("path").attr("class", "chord").attr("d", ribbon).attr("fill", (fusion) => {
|
|
126
|
+
return FusionColorProvider.getColor(
|
|
127
|
+
fusion.source.positionInChromosome.chromosome,
|
|
128
|
+
fusion.target.positionInChromosome.chromosome
|
|
129
|
+
);
|
|
130
|
+
}).style("opacity", opacity).each(function(d) {
|
|
131
|
+
const path = select_default(this);
|
|
132
|
+
const tip = MenuProvider.create();
|
|
133
|
+
path.on("click", async function(event) {
|
|
134
|
+
tip.clear().show(event.x, event.y);
|
|
135
|
+
const div = tip.d.append("div");
|
|
136
|
+
await makeSvgraph(d, div, genome);
|
|
137
|
+
});
|
|
138
|
+
}).on("mouseover", async function(mouseEvent, fusion) {
|
|
139
|
+
const table = table2col({ holder: menu.d });
|
|
140
|
+
createTooltip(table, fusion);
|
|
141
|
+
menu.show(mouseEvent.x, mouseEvent.y);
|
|
142
|
+
}).on("mouseout", () => {
|
|
143
|
+
menu.clear();
|
|
144
|
+
menu.hide();
|
|
145
|
+
});
|
|
146
|
+
}
|
|
147
|
+
createTooltip(table, fusion) {
|
|
148
|
+
{
|
|
149
|
+
const [td1, td2] = table.addRow();
|
|
150
|
+
td1.text("Data type");
|
|
151
|
+
td2.append("span").style("margin-left", "5px").text("Fusion transcript");
|
|
152
|
+
}
|
|
153
|
+
{
|
|
154
|
+
const positionInChromosomeSource = fusion.source.positionInChromosome;
|
|
155
|
+
const positionInChromosomeTarget = fusion.target.positionInChromosome;
|
|
156
|
+
const [td1, td2] = table.addRow();
|
|
157
|
+
td1.text("Position");
|
|
158
|
+
td2.append("span").style("margin-left", "5px").text(
|
|
159
|
+
` ${fusion.source.gene || ""} ${positionInChromosomeSource.chromosome}:${positionInChromosomeSource.position} ${fusion.source.strand === "+" ? "forward" : "reverse"} > ${fusion.target.gene || ""} ${positionInChromosomeTarget.chromosome}:${positionInChromosomeTarget.position} ${fusion.target.strand === "+" ? "forward" : "reverse"} `
|
|
160
|
+
);
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
};
|
|
164
|
+
async function makeSvgraph(fusion, div, genome) {
|
|
165
|
+
const wait = div.append("div").text("Loading...");
|
|
166
|
+
const svpair = {
|
|
167
|
+
a: {
|
|
168
|
+
chr: fusion.source.positionInChromosome.chromosome,
|
|
169
|
+
position: fusion.source.positionInChromosome.position,
|
|
170
|
+
strand: fusion.source.strand
|
|
171
|
+
},
|
|
172
|
+
b: {
|
|
173
|
+
chr: fusion.target.positionInChromosome.chromosome,
|
|
174
|
+
position: fusion.target.positionInChromosome.position,
|
|
175
|
+
strand: fusion.target.strand
|
|
176
|
+
}
|
|
177
|
+
};
|
|
178
|
+
await getGm(svpair.a, genome.name, fusion.source.gene);
|
|
179
|
+
await getGm(svpair.b, genome.name, fusion.target.gene);
|
|
180
|
+
wait.remove();
|
|
181
|
+
const _ = await import("./svgraph-TRPAXTNP.js");
|
|
182
|
+
_.default({
|
|
183
|
+
pairlst: [svpair],
|
|
184
|
+
genome,
|
|
185
|
+
holder: div
|
|
186
|
+
});
|
|
187
|
+
}
|
|
188
|
+
async function getGm(p, genome, name) {
|
|
189
|
+
const d = await dofetch3("isoformbycoord", {
|
|
190
|
+
body: { genome, chr: p.chr, pos: p.position }
|
|
191
|
+
});
|
|
192
|
+
if (d.error) throw d.error;
|
|
193
|
+
const u = d.lst.find((i) => i.isdefault && name === i.name) || d.lst[0];
|
|
194
|
+
if (u) {
|
|
195
|
+
p.name = u.name;
|
|
196
|
+
p.gm = { isoform: u.isoform };
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
// plots/disco/DiscoRenderer.ts
|
|
201
|
+
var DiscoRenderer = class {
|
|
202
|
+
constructor(renders, legendRenderer, genome) {
|
|
203
|
+
this.renders = renders;
|
|
204
|
+
this.legendRenderer = legendRenderer;
|
|
205
|
+
this.fusionRenderer = new FusionRenderer(genome);
|
|
206
|
+
}
|
|
207
|
+
render(holder, viewModel, onCnvSourceSelect) {
|
|
208
|
+
const svgDiv = holder.append("div").style("display", "inline-block").style("font-family", "Arial");
|
|
209
|
+
const svg = svgDiv.append("svg").attr("id", "sjpp_disco_plot").attr("data-testid", "sjpp_disco_plot").attr("width", viewModel.width).attr("height", viewModel.height + viewModel.legendHeight);
|
|
210
|
+
const mainG = svg.append("g").attr("class", "mainG").attr(
|
|
211
|
+
"transform",
|
|
212
|
+
`translate(${viewModel.settings.rings.labelLinesInnerRadius + viewModel.settings.rings.labelsToLinesDistance + 100},${viewModel.height / 2})`
|
|
213
|
+
);
|
|
214
|
+
for (const [ringType, renderer] of this.renders) {
|
|
215
|
+
const elements = viewModel.getElements(ringType);
|
|
216
|
+
const collisions = viewModel.getCollisions(ringType);
|
|
217
|
+
renderer.render(mainG, elements, collisions);
|
|
218
|
+
}
|
|
219
|
+
this.fusionRenderer.render(mainG, viewModel.fusions, viewModel.settings.Disco.fusionOpacity);
|
|
220
|
+
if (viewModel.settings.Disco.centerText) {
|
|
221
|
+
const chrRingBbox = mainG.select('[data-testid="sjpp_chromosomes_arc_group"]').node().getBBox();
|
|
222
|
+
const text = viewModel.settings.Disco.centerText.length > 20 ? viewModel.settings.Disco.centerText.slice(0, 20) + "..." : viewModel.settings.Disco.centerText;
|
|
223
|
+
const textElem = mainG.append("text").attr("class", "sjpp-disco-center-text").text(text);
|
|
224
|
+
const textBbox = textElem.node().getBBox();
|
|
225
|
+
textElem.attr("transform", `translate(${chrRingBbox.x + chrRingBbox.width / 2 - textBbox.width / 2},0)`);
|
|
226
|
+
}
|
|
227
|
+
this.legendRenderer.render(
|
|
228
|
+
mainG,
|
|
229
|
+
viewModel.legend,
|
|
230
|
+
-1 * (viewModel.settings.rings.labelLinesInnerRadius + viewModel.settings.rings.labelsToLinesDistance + 50),
|
|
231
|
+
viewModel.width,
|
|
232
|
+
viewModel.height / 2,
|
|
233
|
+
viewModel,
|
|
234
|
+
onCnvSourceSelect
|
|
235
|
+
);
|
|
236
|
+
}
|
|
237
|
+
};
|
|
238
|
+
|
|
239
|
+
// plots/disco/interactions/DiscoInteractions.ts
|
|
240
|
+
var DiscoInteractions = class {
|
|
241
|
+
constructor(discoApp) {
|
|
242
|
+
this.discoApp = discoApp;
|
|
243
|
+
this.downloadClickListener = (svg) => {
|
|
244
|
+
const downloadImgName = this.discoApp.state.settings.downloadImgName || "disco.plot";
|
|
245
|
+
const a = document.createElement("a");
|
|
246
|
+
document.body.appendChild(a);
|
|
247
|
+
a.addEventListener(
|
|
248
|
+
"click",
|
|
249
|
+
() => {
|
|
250
|
+
const serializer = new XMLSerializer();
|
|
251
|
+
const svg_blob = new Blob([serializer.serializeToString(svg)], {
|
|
252
|
+
type: "image/svg+xml"
|
|
253
|
+
});
|
|
254
|
+
a.download = downloadImgName + ".svg";
|
|
255
|
+
a.href = URL.createObjectURL(svg_blob);
|
|
256
|
+
document.body.removeChild(a);
|
|
257
|
+
},
|
|
258
|
+
false
|
|
259
|
+
);
|
|
260
|
+
a.click();
|
|
261
|
+
};
|
|
262
|
+
this.geneClickListener = async (gene, mnames) => {
|
|
263
|
+
const { filter, filter0 } = this.discoApp.app.getState().termfilter;
|
|
264
|
+
const arg = {
|
|
265
|
+
holder: this.discoApp.app.opts.holder,
|
|
266
|
+
genome: this.discoApp.app.opts.state.args.genome,
|
|
267
|
+
nobox: true,
|
|
268
|
+
query: gene,
|
|
269
|
+
tklst: [
|
|
270
|
+
{
|
|
271
|
+
type: "mds3",
|
|
272
|
+
dslabel: this.discoApp.app.opts.state.dslabel,
|
|
273
|
+
hlaachange: mnames.join(","),
|
|
274
|
+
filter0,
|
|
275
|
+
filterObj: structuredClone(filter)
|
|
276
|
+
// must not pass filter as frozen. duplicate to pass unfrozen copy so mds3 code will work
|
|
277
|
+
}
|
|
278
|
+
]
|
|
279
|
+
};
|
|
280
|
+
const _ = await import("./block.init-SNZKGO2G.js");
|
|
281
|
+
await _.default(arg);
|
|
282
|
+
};
|
|
283
|
+
this.colorScaleNumericInputsCallback = async (obj) => {
|
|
284
|
+
const callAppDispatch = (settings) => {
|
|
285
|
+
this.discoApp.app.dispatch({
|
|
286
|
+
type: "plot_edit",
|
|
287
|
+
id: this.discoApp.id,
|
|
288
|
+
config: { settings: { Disco: Object.assign({ cnvCutoffMode: obj.cutoffMode }, settings) } }
|
|
289
|
+
});
|
|
290
|
+
};
|
|
291
|
+
if (obj.cutoffMode == "auto") {
|
|
292
|
+
if (obj.min == null || obj.max == null)
|
|
293
|
+
throw new Error('Color scale must return min and max if cutoffMode "auto"');
|
|
294
|
+
callAppDispatch({
|
|
295
|
+
cnvCapping: this.discoApp.state.settings.cnv.capping,
|
|
296
|
+
cnvPercentile: this.discoApp.state.settings.cnv.percentile
|
|
297
|
+
});
|
|
298
|
+
} else if (obj.cutoffMode == "fixed") {
|
|
299
|
+
if (obj.min == null || obj.max == null)
|
|
300
|
+
throw new Error('Color scale must return min and max if cutoffMode "fixed"');
|
|
301
|
+
const diffValue = obj.max !== this.discoApp.state.settings.cnv.capping ? obj.max : Math.abs(obj.min);
|
|
302
|
+
callAppDispatch({
|
|
303
|
+
cnvCapping: diffValue
|
|
304
|
+
});
|
|
305
|
+
} else if (obj.cutoffMode == "percentile") callAppDispatch({ cnvPercentile: obj.percentile });
|
|
306
|
+
else throw new Error("Unknown cutoff mode returned from dom/ColorScale");
|
|
307
|
+
};
|
|
308
|
+
}
|
|
309
|
+
};
|
|
310
|
+
|
|
311
|
+
// plots/disco/chromosome/Reference.ts
|
|
312
|
+
var Reference = class {
|
|
313
|
+
/**
|
|
314
|
+
* Creates a Reference object that contains information about chromosomes.
|
|
315
|
+
* @param settings State settings
|
|
316
|
+
* @param chromosomes Chromosome order. This function formats into an obj with `chr` removed.
|
|
317
|
+
* @param chromosomeOverride Obj of chromsome keys and sizes. Filtered to remove hidden chromosomes in settings.
|
|
318
|
+
*/
|
|
319
|
+
constructor(settings, chromosomes, chromosomeOverride) {
|
|
320
|
+
this.chromosomes = [];
|
|
321
|
+
this.chromosomesOrder = [];
|
|
322
|
+
this.keysArray = [];
|
|
323
|
+
this.totalSizeArray = [];
|
|
324
|
+
this.chrSizesArray = [];
|
|
325
|
+
const chrSizes = chromosomeOverride || chromosomes;
|
|
326
|
+
this.settings = settings;
|
|
327
|
+
this.chromosomesOrder = [];
|
|
328
|
+
let totalSize = 0;
|
|
329
|
+
this.totalPadAngle = Object.keys(chrSizes).length * this.settings.padAngle;
|
|
330
|
+
this.totalChromosomesAngle = 2 * Math.PI - this.totalPadAngle;
|
|
331
|
+
for (const chr in chrSizes) {
|
|
332
|
+
const key = chr.slice(0, 3) === "chr" ? chr.slice(3) : chr;
|
|
333
|
+
this.chromosomesOrder.push(chr);
|
|
334
|
+
this.keysArray.push(key);
|
|
335
|
+
this.totalSizeArray.push(totalSize);
|
|
336
|
+
this.chrSizesArray.push(chrSizes[chr]);
|
|
337
|
+
totalSize += chrSizes[chr];
|
|
338
|
+
}
|
|
339
|
+
this.totalSize = totalSize;
|
|
340
|
+
let lastAngle = 0;
|
|
341
|
+
for (let i = 0; i < this.keysArray.length; i++) {
|
|
342
|
+
const chromosomeAngle = this.totalChromosomesAngle * (this.chrSizesArray[i] / totalSize);
|
|
343
|
+
const startAngle = i == 0 ? this.settings.padAngle / 2 : lastAngle + this.settings.padAngle;
|
|
344
|
+
const endAngle = i == 0 ? this.settings.padAngle / 2 + chromosomeAngle : lastAngle + this.settings.padAngle + chromosomeAngle;
|
|
345
|
+
const chromosome = {
|
|
346
|
+
start: this.totalSizeArray[i],
|
|
347
|
+
size: this.chrSizesArray[i],
|
|
348
|
+
factor: 1,
|
|
349
|
+
startAngle,
|
|
350
|
+
endAngle,
|
|
351
|
+
angle: (startAngle + endAngle) / 2,
|
|
352
|
+
innerRadius: this.settings.rings.chromosomeInnerRadius,
|
|
353
|
+
outerRadius: this.settings.rings.chromosomeInnerRadius + this.settings.rings.chromosomeWidth,
|
|
354
|
+
color: "#AAA",
|
|
355
|
+
text: this.keysArray[i]
|
|
356
|
+
};
|
|
357
|
+
this.chromosomes.push(chromosome);
|
|
358
|
+
if (chromosome.endAngle != null) {
|
|
359
|
+
lastAngle = chromosome.endAngle;
|
|
360
|
+
}
|
|
361
|
+
}
|
|
362
|
+
}
|
|
363
|
+
};
|
|
364
|
+
|
|
365
|
+
// plots/disco/data/DataObjectMapper.ts
|
|
366
|
+
var DataObjectMapper = class {
|
|
367
|
+
constructor(sampleName, prioritizedGenes) {
|
|
368
|
+
this.sampleName = sampleName;
|
|
369
|
+
this.prioritizedGenes = prioritizedGenes;
|
|
370
|
+
}
|
|
371
|
+
map(dObject) {
|
|
372
|
+
return {
|
|
373
|
+
dt: dObject.dt,
|
|
374
|
+
mname: dObject.mname,
|
|
375
|
+
mClass: dObject.class,
|
|
376
|
+
gene: dObject.gene,
|
|
377
|
+
chr: dObject.chr,
|
|
378
|
+
ref: dObject.ref,
|
|
379
|
+
alt: dObject.alt,
|
|
380
|
+
position: dObject.pos ? dObject.pos : dObject.position,
|
|
381
|
+
poschr: dObject.poschr,
|
|
382
|
+
posbins: dObject.posbins,
|
|
383
|
+
poslabel: dObject.poslabel,
|
|
384
|
+
sampleName: this.sampleName,
|
|
385
|
+
ssm_id: dObject.ssm_id,
|
|
386
|
+
start: dObject.start,
|
|
387
|
+
stop: dObject.stop,
|
|
388
|
+
value: dObject.value,
|
|
389
|
+
segmean: dObject.segmean,
|
|
390
|
+
isPrioritized: this.prioritizedGenes.some((cancerGene) => cancerGene == dObject.gene),
|
|
391
|
+
chrA: dObject.chrA,
|
|
392
|
+
chrB: dObject.chrB,
|
|
393
|
+
geneA: dObject.geneA,
|
|
394
|
+
geneB: dObject.geneB,
|
|
395
|
+
posA: dObject.posA,
|
|
396
|
+
posB: dObject.posB,
|
|
397
|
+
strandA: dObject.strandA,
|
|
398
|
+
strandB: dObject.strandB
|
|
399
|
+
};
|
|
400
|
+
}
|
|
401
|
+
};
|
|
402
|
+
|
|
403
|
+
// plots/disco/data/PercentileMapper.ts
|
|
404
|
+
var PercentileMapper = class {
|
|
405
|
+
map(data, percentile) {
|
|
406
|
+
return this.calculatePercentileForPositivesAndNegatives(data, percentile);
|
|
407
|
+
}
|
|
408
|
+
calculatePercentileForPositivesAndNegatives(data, percentile) {
|
|
409
|
+
const positives = data.filter((x) => x > 0);
|
|
410
|
+
const negatives = data.filter((x) => x < 0).map((x) => -1 * x);
|
|
411
|
+
let positive = NaN;
|
|
412
|
+
let negative = NaN;
|
|
413
|
+
if (positives.length > 0) {
|
|
414
|
+
positive = this.calculatePercentile(positives, percentile);
|
|
415
|
+
}
|
|
416
|
+
if (negatives.length > 0) {
|
|
417
|
+
negative = -1 * this.calculatePercentile(negatives, percentile);
|
|
418
|
+
}
|
|
419
|
+
return { positive, negative };
|
|
420
|
+
}
|
|
421
|
+
calculatePercentile(data, percentile) {
|
|
422
|
+
if (data.length === 0) {
|
|
423
|
+
throw new Error("Array must contain at least one element.");
|
|
424
|
+
}
|
|
425
|
+
const sortedValues = data.sort((a, b) => a - b);
|
|
426
|
+
const index = percentile / 100 * (sortedValues.length - 1);
|
|
427
|
+
const lowerIndex = Math.floor(index);
|
|
428
|
+
const upperIndex = Math.ceil(index);
|
|
429
|
+
const fraction = index - lowerIndex;
|
|
430
|
+
if (lowerIndex === upperIndex) {
|
|
431
|
+
return sortedValues[lowerIndex];
|
|
432
|
+
}
|
|
433
|
+
return sortedValues[lowerIndex] + fraction * (sortedValues[upperIndex] - sortedValues[lowerIndex]);
|
|
434
|
+
}
|
|
435
|
+
};
|
|
436
|
+
|
|
437
|
+
// plots/disco/data/DataMapper.ts
|
|
438
|
+
var DataMapper = class _DataMapper {
|
|
439
|
+
constructor(settings, reference, sample, prioritizedGenes = []) {
|
|
440
|
+
// remove fields and extract filters to seperate classes
|
|
441
|
+
this.labelData = [];
|
|
442
|
+
this.nonExonicSnvData = [];
|
|
443
|
+
this.nonExonicInnerRadius = 0;
|
|
444
|
+
this.snvRingDataMap = /* @__PURE__ */ new Map();
|
|
445
|
+
this.snvInnerRadius = 0;
|
|
446
|
+
this.snvData = [];
|
|
447
|
+
this.bpx = 0;
|
|
448
|
+
this.onePxArcAngle = 0;
|
|
449
|
+
this.filteredSnvData = [];
|
|
450
|
+
this.filteredSnvCountByChr = /* @__PURE__ */ new Map();
|
|
451
|
+
this.lohData = [];
|
|
452
|
+
this.lohInnerRadius = 0;
|
|
453
|
+
this.cnvData = [];
|
|
454
|
+
this.cnvInnerRadius = 0;
|
|
455
|
+
this.fusionData = [];
|
|
456
|
+
this.fusionRadius = 0;
|
|
457
|
+
this.hasPrioritizedGenes = false;
|
|
458
|
+
this.hasWaterfallEligibleChromosome = false;
|
|
459
|
+
this.invalidEntries = [];
|
|
460
|
+
this.cnvLossMaxValue = 0;
|
|
461
|
+
this.cnvGainMaxValue = 0;
|
|
462
|
+
this.percentilePositive = 0;
|
|
463
|
+
this.percentileNegative = 0;
|
|
464
|
+
this.cnvMaxPercentileAbs = 0;
|
|
465
|
+
this.mutationWaterfallData = [];
|
|
466
|
+
this.mutationWaterfallInnerRadius = 0;
|
|
467
|
+
this.mutationWaterfallRangeMin = Infinity;
|
|
468
|
+
this.mutationWaterfallRangeMax = -Infinity;
|
|
469
|
+
this.lohMaxValue = void 0;
|
|
470
|
+
this.lohMinValue = void 0;
|
|
471
|
+
this.snvFilter = (data) => data.dt == dtsnvindel;
|
|
472
|
+
this.fusionFilter = (data) => data.dt == dtfusionrna || data.dt == dtsv;
|
|
473
|
+
this.cnvFilter = (data) => data.dt == dtcnv;
|
|
474
|
+
this.lohFilter = (data) => data.dt == dtloh;
|
|
475
|
+
this.compareData = (a, b) => {
|
|
476
|
+
const chrDiff = this.reference.chromosomesOrder.indexOf(a.chr) - this.reference.chromosomesOrder.indexOf(b.chr);
|
|
477
|
+
if (chrDiff != 0) {
|
|
478
|
+
return chrDiff;
|
|
479
|
+
}
|
|
480
|
+
const aPos = a.pos ? a.pos : a.start;
|
|
481
|
+
const bPos = b.pos ? b.pos : b.start;
|
|
482
|
+
return aPos - bPos;
|
|
483
|
+
};
|
|
484
|
+
this.settings = settings;
|
|
485
|
+
this.reference = reference;
|
|
486
|
+
this.sample = sample;
|
|
487
|
+
this.excludedChromosomes = this.settings.Disco.hiddenChromosomes;
|
|
488
|
+
this.lastInnerRadious = this.settings.rings.chromosomeInnerRadius;
|
|
489
|
+
this.gainCapped = this.settings.Disco.cnvCapping;
|
|
490
|
+
this.lossCapped = -1 * this.settings.Disco.cnvCapping;
|
|
491
|
+
this.nonExonicFilter = (data) => {
|
|
492
|
+
if (prioritizedGenes.length > 0 && this.settings.Disco.prioritizeGeneLabelsByGeneSets) {
|
|
493
|
+
return prioritizedGenes.includes(data.gene) && settings.rings.nonExonicFilterValues.includes(ViewModelMapper.snvClassLayer[data.mClass]);
|
|
494
|
+
} else {
|
|
495
|
+
return settings.rings.nonExonicFilterValues.includes(ViewModelMapper.snvClassLayer[data.mClass]);
|
|
496
|
+
}
|
|
497
|
+
};
|
|
498
|
+
this.snvRingFilter = (data) => {
|
|
499
|
+
if (prioritizedGenes.length > 0 && this.settings.Disco.prioritizeGeneLabelsByGeneSets) {
|
|
500
|
+
return prioritizedGenes.includes(data.gene) && settings.rings.snvRingFilters.includes(ViewModelMapper.snvClassLayer[data.mClass]);
|
|
501
|
+
} else {
|
|
502
|
+
return settings.rings.snvRingFilters.includes(ViewModelMapper.snvClassLayer[data.mClass]);
|
|
503
|
+
}
|
|
504
|
+
};
|
|
505
|
+
this.dataObjectMapper = new DataObjectMapper(sample, prioritizedGenes);
|
|
506
|
+
}
|
|
507
|
+
map(data) {
|
|
508
|
+
const dataArray = [];
|
|
509
|
+
this.filteredSnvCountByChr.clear();
|
|
510
|
+
this.hasWaterfallEligibleChromosome = false;
|
|
511
|
+
this.mutationWaterfallData = [];
|
|
512
|
+
this.mutationWaterfallInnerRadius = 0;
|
|
513
|
+
this.mutationWaterfallRangeMin = Infinity;
|
|
514
|
+
this.mutationWaterfallRangeMax = -Infinity;
|
|
515
|
+
data.forEach((dObject) => {
|
|
516
|
+
const index = this.reference.chromosomesOrder.indexOf(dObject.chr);
|
|
517
|
+
const indexA = this.reference.chromosomesOrder.indexOf(dObject.chrA);
|
|
518
|
+
const indexB = this.reference.chromosomesOrder.indexOf(dObject.chrB);
|
|
519
|
+
if (dObject.dt == dtsnvindel) {
|
|
520
|
+
if (index != -1 && this.snvData.length < this.settings.snv.maxMutationCount) {
|
|
521
|
+
const pos = dObject.pos ?? dObject.position;
|
|
522
|
+
const chrSize = this.reference.chromosomes[index].size;
|
|
523
|
+
if (Number.isFinite(pos) && pos >= 0 && pos <= chrSize) {
|
|
524
|
+
this.addData(dObject, dataArray);
|
|
525
|
+
} else {
|
|
526
|
+
this.invalidEntries.push({ dataType: "SNV", reason: `Position ${pos} outside of ${dObject.chr}` });
|
|
527
|
+
}
|
|
528
|
+
} else if (index == -1) {
|
|
529
|
+
if (!this.excludedChromosomes.includes(dObject.chr)) {
|
|
530
|
+
this.invalidEntries.push({ dataType: "SNV", reason: `Unknown chr ${dObject.chr}` });
|
|
531
|
+
}
|
|
532
|
+
}
|
|
533
|
+
} else if (dObject.dt == dtfusionrna || dObject.dt == dtsv) {
|
|
534
|
+
if (indexA != -1 && indexB != -1) {
|
|
535
|
+
const posA = dObject.posA;
|
|
536
|
+
const posB = dObject.posB;
|
|
537
|
+
const chrSizeA = this.reference.chromosomes[indexA].size;
|
|
538
|
+
const chrSizeB = this.reference.chromosomes[indexB].size;
|
|
539
|
+
if (Number.isFinite(posA) && Number.isFinite(posB) && posA >= 0 && posA <= chrSizeA && posB >= 0 && posB <= chrSizeB) {
|
|
540
|
+
this.addData(dObject, dataArray);
|
|
541
|
+
} else {
|
|
542
|
+
const reasonParts = [];
|
|
543
|
+
if (!(Number.isFinite(posA) && posA >= 0 && posA <= chrSizeA))
|
|
544
|
+
reasonParts.push(`Position ${posA} outside of ${dObject.chrA}`);
|
|
545
|
+
if (!(Number.isFinite(posB) && posB >= 0 && posB <= chrSizeB))
|
|
546
|
+
reasonParts.push(`Position ${posB} outside of ${dObject.chrB}`);
|
|
547
|
+
this.invalidEntries.push({ dataType: "Fusion", reason: reasonParts.join("; ") });
|
|
548
|
+
}
|
|
549
|
+
} else {
|
|
550
|
+
const missing = [];
|
|
551
|
+
if (indexA == -1 && !this.excludedChromosomes.includes(dObject.chrA)) missing.push(dObject.chrA);
|
|
552
|
+
if (indexB == -1 && !this.excludedChromosomes.includes(dObject.chrB)) missing.push(dObject.chrB);
|
|
553
|
+
if (missing.length) this.invalidEntries.push({ dataType: "Fusion", reason: "Unknown chr in fusion" });
|
|
554
|
+
}
|
|
555
|
+
} else if ([dtcnv, dtloh].includes(Number(dObject.dt))) {
|
|
556
|
+
const idx = this.reference.chromosomesOrder.indexOf(dObject.chr);
|
|
557
|
+
if (dObject.chr && idx != -1) {
|
|
558
|
+
const chrSize = this.reference.chromosomes[idx].size;
|
|
559
|
+
const start = dObject.start;
|
|
560
|
+
const stop = dObject.stop;
|
|
561
|
+
if (Number.isFinite(start) && Number.isFinite(stop) && start >= 0 && stop <= chrSize && start <= stop) {
|
|
562
|
+
this.addData(dObject, dataArray);
|
|
563
|
+
} else {
|
|
564
|
+
this.invalidEntries.push({
|
|
565
|
+
dataType: dObject.dt == dtcnv ? "CNV" : "LOH",
|
|
566
|
+
reason: `Position ${start}-${stop} outside of ${dObject.chr}`
|
|
567
|
+
});
|
|
568
|
+
}
|
|
569
|
+
} else {
|
|
570
|
+
if (!this.excludedChromosomes.includes(dObject.chr)) {
|
|
571
|
+
this.invalidEntries.push({
|
|
572
|
+
dataType: dObject.dt == dtcnv ? "CNV" : "LOH",
|
|
573
|
+
reason: `Unknown chr ${dObject.chr}`
|
|
574
|
+
});
|
|
575
|
+
}
|
|
576
|
+
}
|
|
577
|
+
} else {
|
|
578
|
+
throw Error("Unknown mutation type!");
|
|
579
|
+
}
|
|
580
|
+
});
|
|
581
|
+
const sortedData = dataArray.sort(this.compareData);
|
|
582
|
+
if (this.settings.rings.nonExonicRingEnabled) {
|
|
583
|
+
sortedData.forEach((data2) => {
|
|
584
|
+
this.filterNonExonicSnvData(data2);
|
|
585
|
+
});
|
|
586
|
+
}
|
|
587
|
+
if (this.nonExonicSnvData.length > 0) {
|
|
588
|
+
this.nonExonicInnerRadius = this.lastInnerRadious - this.settings.rings.nonExonicRingWidth;
|
|
589
|
+
this.lastInnerRadious = this.nonExonicInnerRadius;
|
|
590
|
+
}
|
|
591
|
+
sortedData.forEach((data2) => {
|
|
592
|
+
this.filterSnvs(data2);
|
|
593
|
+
});
|
|
594
|
+
this.hasWaterfallEligibleChromosome = Array.from(this.filteredSnvCountByChr.values()).some((count) => count >= 2);
|
|
595
|
+
if (this.settings.Disco.mutationWaterfallPlot && this.hasWaterfallEligibleChromosome) {
|
|
596
|
+
this.prepareMutationWaterfallData();
|
|
597
|
+
}
|
|
598
|
+
sortedData.forEach((data2) => {
|
|
599
|
+
this.filterLohs(data2);
|
|
600
|
+
});
|
|
601
|
+
if (this.lohData.length > 0) {
|
|
602
|
+
this.lohInnerRadius = this.lastInnerRadious - this.settings.rings.lohRingWidth;
|
|
603
|
+
this.lastInnerRadious = this.lohInnerRadius;
|
|
604
|
+
}
|
|
605
|
+
sortedData.forEach((data2) => {
|
|
606
|
+
this.filterCnvs(data2);
|
|
607
|
+
});
|
|
608
|
+
if (this.cnvData.length > 0) {
|
|
609
|
+
this.cnvInnerRadius = this.lastInnerRadious - this.settings.rings.cnvRingWidth;
|
|
610
|
+
this.lastInnerRadious = this.cnvInnerRadius;
|
|
611
|
+
this.cappedCnvMaxAbsValue = Math.min(
|
|
612
|
+
this.settings.Disco.cnvCapping,
|
|
613
|
+
Math.max(
|
|
614
|
+
Math.abs(_DataMapper.capMaxValue(this.cnvLossMaxValue, this.gainCapped, this.lossCapped)),
|
|
615
|
+
Math.abs(_DataMapper.capMaxValue(this.cnvGainMaxValue, this.gainCapped, this.lossCapped))
|
|
616
|
+
)
|
|
617
|
+
);
|
|
618
|
+
const percentilePair = new PercentileMapper().map(
|
|
619
|
+
this.cnvData.map((data2) => data2.value),
|
|
620
|
+
this.settings.Disco.cnvPercentile
|
|
621
|
+
);
|
|
622
|
+
this.percentilePositive = _DataMapper.capMaxValue(percentilePair.positive, this.gainCapped, this.lossCapped);
|
|
623
|
+
this.percentileNegative = _DataMapper.capMaxValue(percentilePair.negative, this.gainCapped, this.lossCapped);
|
|
624
|
+
this.cnvMaxPercentileAbs = Math.min(
|
|
625
|
+
this.settings.Disco.cnvCapping,
|
|
626
|
+
Math.max(this.percentilePositive, Math.abs(this.percentileNegative))
|
|
627
|
+
);
|
|
628
|
+
}
|
|
629
|
+
sortedData.forEach((data2) => {
|
|
630
|
+
this.filterFusion(data2);
|
|
631
|
+
});
|
|
632
|
+
if (this.fusionData.length > 0) {
|
|
633
|
+
this.fusionRadius = this.lastInnerRadious;
|
|
634
|
+
}
|
|
635
|
+
const dataHolder = {
|
|
636
|
+
labelData: this.labelData,
|
|
637
|
+
nonExonicSnvData: this.nonExonicSnvData,
|
|
638
|
+
nonExonicInnerRadius: this.nonExonicInnerRadius,
|
|
639
|
+
snvRingDataMap: this.snvRingDataMap,
|
|
640
|
+
snvInnerRadius: this.snvInnerRadius,
|
|
641
|
+
snvData: this.snvData,
|
|
642
|
+
bpx: this.bpx,
|
|
643
|
+
onePxArcAngle: this.onePxArcAngle,
|
|
644
|
+
filteredSnvData: this.filteredSnvData,
|
|
645
|
+
lohData: this.lohData,
|
|
646
|
+
lohInnerRadius: this.lohInnerRadius,
|
|
647
|
+
cnvData: this.cnvData,
|
|
648
|
+
cnvInnerRadius: this.cnvInnerRadius,
|
|
649
|
+
fusionData: this.fusionData,
|
|
650
|
+
fusionRadius: this.fusionRadius,
|
|
651
|
+
hasPrioritizedGenes: this.hasPrioritizedGenes,
|
|
652
|
+
hasWaterfallEligibleChromosome: this.hasWaterfallEligibleChromosome,
|
|
653
|
+
cnvGainMaxValue: this.cnvGainMaxValue,
|
|
654
|
+
cnvLossMaxValue: this.cnvLossMaxValue,
|
|
655
|
+
cappedCnvMaxAbsValue: this.cappedCnvMaxAbsValue,
|
|
656
|
+
percentilePositive: this.percentilePositive,
|
|
657
|
+
percentileNegative: this.percentileNegative,
|
|
658
|
+
cnvMaxPercentileAbs: this.cnvMaxPercentileAbs,
|
|
659
|
+
lohMaxValue: this.lohMaxValue,
|
|
660
|
+
lohMinValue: this.lohMinValue,
|
|
661
|
+
mutationWaterfallData: this.mutationWaterfallData,
|
|
662
|
+
mutationWaterfallInnerRadius: this.mutationWaterfallInnerRadius,
|
|
663
|
+
mutationWaterfallLogRange: this.mutationWaterfallData.length ? { min: this.mutationWaterfallRangeMin, max: this.mutationWaterfallRangeMax } : void 0,
|
|
664
|
+
invalidDataInfo: {
|
|
665
|
+
entries: this.invalidEntries,
|
|
666
|
+
errorMsg: `Entries listed above were skipped due to invalid or unsupported chromosome information.`
|
|
667
|
+
}
|
|
668
|
+
};
|
|
669
|
+
return dataHolder;
|
|
670
|
+
}
|
|
671
|
+
addData(dObject, dataArray) {
|
|
672
|
+
const instance = this.dataObjectMapper.map(dObject);
|
|
673
|
+
if (instance.isPrioritized) {
|
|
674
|
+
this.hasPrioritizedGenes = true;
|
|
675
|
+
}
|
|
676
|
+
dataArray.push(instance);
|
|
677
|
+
}
|
|
678
|
+
filterNonExonicSnvData(data) {
|
|
679
|
+
if (this.snvFilter(data)) {
|
|
680
|
+
if (this.settings.rings.nonExonicRingEnabled && this.nonExonicFilter(data)) {
|
|
681
|
+
this.nonExonicSnvData.push(data);
|
|
682
|
+
}
|
|
683
|
+
}
|
|
684
|
+
}
|
|
685
|
+
filterSnvs(data) {
|
|
686
|
+
if (this.snvFilter(data)) {
|
|
687
|
+
this.snvData.push(data);
|
|
688
|
+
if (this.snvRingFilter(data)) {
|
|
689
|
+
if (this.snvInnerRadius == 0) {
|
|
690
|
+
this.snvInnerRadius = this.lastInnerRadious - this.settings.rings.snvRingWidth;
|
|
691
|
+
this.lastInnerRadious = this.snvInnerRadius;
|
|
692
|
+
this.bpx = Math.floor(this.reference.totalSize / (this.reference.totalChromosomesAngle * this.snvInnerRadius));
|
|
693
|
+
this.onePxArcAngle = 1 / this.snvInnerRadius;
|
|
694
|
+
}
|
|
695
|
+
this.filteredSnvData.push(data);
|
|
696
|
+
this.labelData.push(data);
|
|
697
|
+
const currentCount = this.filteredSnvCountByChr.get(data.chr) || 0;
|
|
698
|
+
this.filteredSnvCountByChr.set(data.chr, currentCount + 1);
|
|
699
|
+
const arcAngle = this.calculateArcAngle(data);
|
|
700
|
+
let dataArray = this.snvRingDataMap.get(arcAngle);
|
|
701
|
+
if (!dataArray) {
|
|
702
|
+
dataArray = new Array();
|
|
703
|
+
}
|
|
704
|
+
dataArray.push(data);
|
|
705
|
+
this.snvRingDataMap.set(arcAngle, dataArray);
|
|
706
|
+
}
|
|
707
|
+
}
|
|
708
|
+
}
|
|
709
|
+
filterFusion(data) {
|
|
710
|
+
if (this.fusionFilter(data)) {
|
|
711
|
+
data.isPrioritized = true;
|
|
712
|
+
this.fusionData.push(data);
|
|
713
|
+
this.labelData.push(data);
|
|
714
|
+
}
|
|
715
|
+
}
|
|
716
|
+
filterLohs(data) {
|
|
717
|
+
if (this.lohFilter(data)) {
|
|
718
|
+
if (this.lohMaxValue == void 0 || this.lohMaxValue < data.value) {
|
|
719
|
+
this.lohMaxValue = data.segmean;
|
|
720
|
+
}
|
|
721
|
+
if (this.lohMinValue == void 0 || this.lohMinValue > data.value) {
|
|
722
|
+
this.lohMinValue = data.segmean;
|
|
723
|
+
}
|
|
724
|
+
this.lohData.push(data);
|
|
725
|
+
}
|
|
726
|
+
}
|
|
727
|
+
filterCnvs(data) {
|
|
728
|
+
if (this.cnvFilter(data)) {
|
|
729
|
+
if (!data.chr || this.reference.chromosomesOrder.indexOf(data.chr) == -1) {
|
|
730
|
+
return;
|
|
731
|
+
}
|
|
732
|
+
if (this.cnvGainMaxValue == void 0 || this.cnvGainMaxValue < data.value) {
|
|
733
|
+
this.cnvGainMaxValue = data.value;
|
|
734
|
+
}
|
|
735
|
+
if (this.cnvLossMaxValue == void 0 || this.cnvLossMaxValue > data.value) {
|
|
736
|
+
this.cnvLossMaxValue = data.value;
|
|
737
|
+
}
|
|
738
|
+
this.cnvData.push(data);
|
|
739
|
+
}
|
|
740
|
+
}
|
|
741
|
+
prepareMutationWaterfallData() {
|
|
742
|
+
this.mutationWaterfallInnerRadius = this.lastInnerRadious - this.settings.rings.mutationWaterfallRingWidth;
|
|
743
|
+
this.lastInnerRadious = this.mutationWaterfallInnerRadius;
|
|
744
|
+
const groupedSnvs = /* @__PURE__ */ new Map();
|
|
745
|
+
const firstMutationByChr = [];
|
|
746
|
+
for (const snv of this.filteredSnvData) {
|
|
747
|
+
const list = groupedSnvs.get(snv.chr) || [];
|
|
748
|
+
list.push(snv);
|
|
749
|
+
groupedSnvs.set(snv.chr, list);
|
|
750
|
+
}
|
|
751
|
+
for (const [, snvs] of groupedSnvs) {
|
|
752
|
+
if (snvs.length < 2) continue;
|
|
753
|
+
snvs.sort((a, b) => a.position - b.position);
|
|
754
|
+
firstMutationByChr.push({
|
|
755
|
+
chr: snvs[0].chr,
|
|
756
|
+
position: snvs[0].position,
|
|
757
|
+
logDistance: 0
|
|
758
|
+
// placeholder updated after range computed
|
|
759
|
+
});
|
|
760
|
+
for (let i = 1; i < snvs.length; i++) {
|
|
761
|
+
const prev = snvs[i - 1];
|
|
762
|
+
const curr = snvs[i];
|
|
763
|
+
const distance = Math.max(1, Math.abs(curr.position - prev.position));
|
|
764
|
+
const logDistance = Math.log10(distance);
|
|
765
|
+
this.mutationWaterfallData.push({
|
|
766
|
+
chr: curr.chr,
|
|
767
|
+
position: curr.position,
|
|
768
|
+
logDistance
|
|
769
|
+
});
|
|
770
|
+
if (logDistance < this.mutationWaterfallRangeMin) {
|
|
771
|
+
this.mutationWaterfallRangeMin = logDistance;
|
|
772
|
+
}
|
|
773
|
+
if (logDistance > this.mutationWaterfallRangeMax) {
|
|
774
|
+
this.mutationWaterfallRangeMax = logDistance;
|
|
775
|
+
}
|
|
776
|
+
}
|
|
777
|
+
}
|
|
778
|
+
if (!this.mutationWaterfallData.length) {
|
|
779
|
+
this.mutationWaterfallRangeMin = 0;
|
|
780
|
+
this.mutationWaterfallRangeMax = 0;
|
|
781
|
+
}
|
|
782
|
+
const topLogDistance = this.mutationWaterfallRangeMax;
|
|
783
|
+
for (const first of firstMutationByChr) {
|
|
784
|
+
this.mutationWaterfallData.push({
|
|
785
|
+
...first,
|
|
786
|
+
logDistance: topLogDistance
|
|
787
|
+
});
|
|
788
|
+
}
|
|
789
|
+
}
|
|
790
|
+
calculateArcAngle(data) {
|
|
791
|
+
const currentChromosome = this.reference.chromosomes[this.reference.chromosomesOrder.findIndex((chromosomeOrder) => data.chr == chromosomeOrder)];
|
|
792
|
+
const dataAnglePos = Math.floor(data.position / this.bpx);
|
|
793
|
+
return currentChromosome.startAngle + dataAnglePos * this.onePxArcAngle;
|
|
794
|
+
}
|
|
795
|
+
static capMaxValue(value, gainCapped, lossCapped) {
|
|
796
|
+
if (value && Math.sign(value) == 1) {
|
|
797
|
+
return value > gainCapped ? gainCapped : value;
|
|
798
|
+
}
|
|
799
|
+
if (Math.sign(value) == -1) {
|
|
800
|
+
return value < lossCapped ? lossCapped : value;
|
|
801
|
+
}
|
|
802
|
+
return 0;
|
|
803
|
+
}
|
|
804
|
+
static capMinValue(value, capMinValue = 1) {
|
|
805
|
+
if (Math.sign(value) == 1) {
|
|
806
|
+
return value > capMinValue ? value : capMinValue;
|
|
807
|
+
}
|
|
808
|
+
if (Math.sign(value) == -1) {
|
|
809
|
+
return value < -1 * capMinValue ? value : -1 * capMinValue;
|
|
810
|
+
}
|
|
811
|
+
return 1;
|
|
812
|
+
}
|
|
813
|
+
};
|
|
814
|
+
|
|
815
|
+
// plots/disco/legend/Legend.ts
|
|
816
|
+
var Legend = class {
|
|
817
|
+
constructor(snvTitle, cnvTitle, lohTitle, fusionTitle, cnvPercentile, cnvCutoffmode, snvClassMap, cnvClassMap, cnvRenderingType, fusionLegend, discoInteractions, lohLegend) {
|
|
818
|
+
this.snvTitle = snvTitle;
|
|
819
|
+
this.cnvTitle = cnvTitle;
|
|
820
|
+
this.lohTitle = lohTitle;
|
|
821
|
+
this.fusionTitle = fusionTitle;
|
|
822
|
+
this.cnvPercentile = cnvPercentile;
|
|
823
|
+
this.cnvCutoffMode = cnvCutoffmode;
|
|
824
|
+
this.snvClassMap = snvClassMap;
|
|
825
|
+
this.cnvClassMap = cnvClassMap;
|
|
826
|
+
this.cnvRenderingType = cnvRenderingType;
|
|
827
|
+
this.lohLegend = lohLegend;
|
|
828
|
+
this.fusionLegend = fusionLegend;
|
|
829
|
+
this.discoInteractions = discoInteractions;
|
|
830
|
+
}
|
|
831
|
+
legendCount() {
|
|
832
|
+
return (this.snvClassMap.size > 0 ? 1 : 0) + (this.cnvClassMap.size > 0 ? 1 : 0) + (this.lohLegend ? 1 : 0) + (this.fusionLegend ? 1 : 0);
|
|
833
|
+
}
|
|
834
|
+
};
|
|
835
|
+
|
|
836
|
+
// plots/disco/fusion/Fusion.ts
|
|
837
|
+
var Fusion = class {
|
|
838
|
+
constructor(source, target, genes, count, endpts) {
|
|
839
|
+
this.source = source;
|
|
840
|
+
this.target = target;
|
|
841
|
+
this.genes = genes;
|
|
842
|
+
this.count = count;
|
|
843
|
+
this.endpts = endpts;
|
|
844
|
+
}
|
|
845
|
+
};
|
|
846
|
+
|
|
847
|
+
// plots/disco/fusion/FusionSubgroup.ts
|
|
848
|
+
var FusionSubgroup = class {
|
|
849
|
+
constructor(startAngle, endAngle, radius, gene, value, genes, positionInChromosome, strand) {
|
|
850
|
+
this.startAngle = startAngle;
|
|
851
|
+
this.endAngle = endAngle;
|
|
852
|
+
this.radius = radius;
|
|
853
|
+
this.gene = gene;
|
|
854
|
+
this.value = value;
|
|
855
|
+
this.genes = genes;
|
|
856
|
+
this.positionInChromosome = positionInChromosome;
|
|
857
|
+
this.strand = strand;
|
|
858
|
+
}
|
|
859
|
+
};
|
|
860
|
+
|
|
861
|
+
// plots/disco/fusion/FusionMapper.ts
|
|
862
|
+
var FusionMapper = class {
|
|
863
|
+
constructor(radius, sampleName, reference) {
|
|
864
|
+
this.radius = radius;
|
|
865
|
+
this.sampleName = sampleName;
|
|
866
|
+
this.reference = reference;
|
|
867
|
+
}
|
|
868
|
+
map(fusionData) {
|
|
869
|
+
const fusions = [];
|
|
870
|
+
fusionData.forEach((data) => {
|
|
871
|
+
const genes = /* @__PURE__ */ new Set();
|
|
872
|
+
genes.add(data.geneA);
|
|
873
|
+
genes.add(data.geneB);
|
|
874
|
+
const startAngle = this.calculateStartAngle(data.chrA, data.posA);
|
|
875
|
+
const endAngle = this.calculateEndAngle(data.chrA, data.posA);
|
|
876
|
+
if (startAngle === null || endAngle === null) return;
|
|
877
|
+
const source = new FusionSubgroup(
|
|
878
|
+
startAngle,
|
|
879
|
+
endAngle,
|
|
880
|
+
this.radius,
|
|
881
|
+
data.geneA,
|
|
882
|
+
data.value,
|
|
883
|
+
genes,
|
|
884
|
+
{
|
|
885
|
+
chromosome: data.chrA,
|
|
886
|
+
position: data.posA
|
|
887
|
+
},
|
|
888
|
+
data.strandA
|
|
889
|
+
);
|
|
890
|
+
let target;
|
|
891
|
+
if (data.chrB && data.posB) {
|
|
892
|
+
const startAngle2 = this.calculateStartAngle(data.chrB, data.posB);
|
|
893
|
+
const endAngle2 = this.calculateEndAngle(data.chrB, data.posB);
|
|
894
|
+
if (startAngle2 === null || endAngle2 === null) return;
|
|
895
|
+
target = new FusionSubgroup(
|
|
896
|
+
startAngle2,
|
|
897
|
+
endAngle2,
|
|
898
|
+
this.radius,
|
|
899
|
+
data.geneB,
|
|
900
|
+
data.value,
|
|
901
|
+
genes,
|
|
902
|
+
{
|
|
903
|
+
chromosome: data.chrB,
|
|
904
|
+
position: data.posB
|
|
905
|
+
},
|
|
906
|
+
data.strandB
|
|
907
|
+
);
|
|
908
|
+
}
|
|
909
|
+
const fusion = new Fusion(source, target, "genes", -1, "Endpoints");
|
|
910
|
+
fusions.push(fusion);
|
|
911
|
+
});
|
|
912
|
+
return fusions;
|
|
913
|
+
}
|
|
914
|
+
calculateStartAngle(chr, pos) {
|
|
915
|
+
const index = this.reference.chromosomesOrder.indexOf(chr);
|
|
916
|
+
if (index === -1) return null;
|
|
917
|
+
const chromosome = this.reference.chromosomes[index];
|
|
918
|
+
return chromosome.startAngle + (chromosome.endAngle - chromosome.startAngle) * (Number(pos) / chromosome.size) - 0.01;
|
|
919
|
+
}
|
|
920
|
+
calculateEndAngle(chr, pos) {
|
|
921
|
+
const index = this.reference.chromosomesOrder.indexOf(chr);
|
|
922
|
+
if (index === -1) return null;
|
|
923
|
+
const chromosome = this.reference.chromosomes[index];
|
|
924
|
+
return 0.01 + chromosome.startAngle + (chromosome.endAngle - chromosome.startAngle) * (Number(pos) / chromosome.size);
|
|
925
|
+
}
|
|
926
|
+
};
|
|
927
|
+
|
|
928
|
+
// plots/disco/loh/GradientColorProvider.ts
|
|
929
|
+
var GradientColorProvider = class {
|
|
930
|
+
static provide(value) {
|
|
931
|
+
const clampedValue = Math.min(Math.max(value, 0), 1);
|
|
932
|
+
const colorValue = Math.round(clampedValue * 255);
|
|
933
|
+
return `rgb(${colorValue}, ${colorValue}, ${colorValue})`;
|
|
934
|
+
}
|
|
935
|
+
};
|
|
936
|
+
|
|
937
|
+
// plots/disco/loh/LohLegend.ts
|
|
938
|
+
var LohLegend = class {
|
|
939
|
+
constructor(minValue, maxValue) {
|
|
940
|
+
this.minValue = minValue;
|
|
941
|
+
this.maxValue = maxValue;
|
|
942
|
+
this.colorStartValue = GradientColorProvider.provide(minValue);
|
|
943
|
+
this.colorEndValue = GradientColorProvider.provide(maxValue);
|
|
944
|
+
}
|
|
945
|
+
};
|
|
946
|
+
|
|
947
|
+
// plots/disco/viewmodel/ViewModel.ts
|
|
948
|
+
var ViewModel = class {
|
|
949
|
+
constructor(settings, rings, legend, fusions, dataHolder, genesetName, snvDataLengthAll) {
|
|
950
|
+
this.settings = settings;
|
|
951
|
+
this.rings = rings;
|
|
952
|
+
this.legend = legend;
|
|
953
|
+
this.fusions = fusions;
|
|
954
|
+
this.genesetName = genesetName;
|
|
955
|
+
const tempHolder = select_default("body").append("div").style("position", "absolute").style("visibility", "hidden");
|
|
956
|
+
const tempSvg = tempHolder.append("svg");
|
|
957
|
+
const labels = rings.labelsRing?.elementsToDisplay?.map((l) => l.text) || [];
|
|
958
|
+
const maxLabelSpace = getMaxLabelWidth(tempSvg, labels);
|
|
959
|
+
tempHolder.remove();
|
|
960
|
+
this.width = 2 * (this.settings.horizontalPadding + this.settings.rings.labelLinesInnerRadius + this.settings.rings.labelsToLinesDistance + maxLabelSpace);
|
|
961
|
+
this.height = 2 * (this.settings.rings.labelLinesInnerRadius + this.settings.rings.labelsToLinesDistance + this.settings.verticalPadding + this.settings.label.fontSize * 2 + maxLabelSpace);
|
|
962
|
+
this.legendHeight = this.calculateLegendHeight(legend);
|
|
963
|
+
this.snvDataLength = dataHolder.snvData.length;
|
|
964
|
+
this.filteredSnvDataLength = dataHolder.filteredSnvData.length;
|
|
965
|
+
this.snvDataLengthAll = snvDataLengthAll;
|
|
966
|
+
this.cnvMaxValue = dataHolder.cnvGainMaxValue;
|
|
967
|
+
this.cnvMinValue = dataHolder.cnvLossMaxValue;
|
|
968
|
+
this.cappedCnvMaxAbsValue = dataHolder.cappedCnvMaxAbsValue;
|
|
969
|
+
this.negativePercentile = dataHolder.percentileNegative;
|
|
970
|
+
this.positivePercentile = dataHolder.percentilePositive;
|
|
971
|
+
this.invalidDataInfo = dataHolder.invalidDataInfo;
|
|
972
|
+
this.canShowMutationWaterfallPlot = dataHolder.hasWaterfallEligibleChromosome;
|
|
973
|
+
}
|
|
974
|
+
getElements(ringType) {
|
|
975
|
+
switch (ringType) {
|
|
976
|
+
case 0 /* CHROMOSOME */:
|
|
977
|
+
return this.rings.chromosomesRing ? this.rings.chromosomesRing.elements : [];
|
|
978
|
+
case 1 /* LABEL */:
|
|
979
|
+
return this.rings.labelsRing.elementsToDisplay;
|
|
980
|
+
case 2 /* NONEXONICSNV */:
|
|
981
|
+
return this.rings.nonExonicArcRing ? this.rings.nonExonicArcRing.elements : [];
|
|
982
|
+
case 3 /* SNV */:
|
|
983
|
+
return this.rings.snvArcRing ? this.rings.snvArcRing.elements : [];
|
|
984
|
+
case 5 /* CNV */:
|
|
985
|
+
return this.rings.cnvArcRing ? this.rings.cnvArcRing.elements : [];
|
|
986
|
+
case 6 /* LOH */:
|
|
987
|
+
return this.rings.lohArcRing ? this.rings.lohArcRing.elements : [];
|
|
988
|
+
case 4 /* MUTATION_WATERFALL */:
|
|
989
|
+
return this.rings.mutationWaterfallRing ? this.rings.mutationWaterfallRing.elements : [];
|
|
990
|
+
default:
|
|
991
|
+
throw new Error(`ringType ${ringType} not defined`);
|
|
992
|
+
}
|
|
993
|
+
}
|
|
994
|
+
getCollisions(ringType) {
|
|
995
|
+
if (ringType == 1 /* LABEL */) {
|
|
996
|
+
return this.rings.labelsRing.collisions;
|
|
997
|
+
} else {
|
|
998
|
+
return void 0;
|
|
999
|
+
}
|
|
1000
|
+
}
|
|
1001
|
+
calculateLegendHeight(legend) {
|
|
1002
|
+
const rawHeight = this.settings.legend.rowHeight;
|
|
1003
|
+
return rawHeight * legend.legendCount();
|
|
1004
|
+
}
|
|
1005
|
+
};
|
|
1006
|
+
|
|
1007
|
+
// plots/disco/ring/Ring.ts
|
|
1008
|
+
var Ring = class {
|
|
1009
|
+
constructor(innerRadius, width, elements) {
|
|
1010
|
+
this.innerRadius = innerRadius;
|
|
1011
|
+
this.outerRadius = innerRadius + width;
|
|
1012
|
+
this.width = width;
|
|
1013
|
+
this.elements = elements;
|
|
1014
|
+
}
|
|
1015
|
+
};
|
|
1016
|
+
|
|
1017
|
+
// plots/disco/label/MLabel.ts
|
|
1018
|
+
var MLabel = class _MLabel {
|
|
1019
|
+
/**
|
|
1020
|
+
* The Singleton's constructor should always be private to prevent direct
|
|
1021
|
+
* construction calls with the `new` operator.
|
|
1022
|
+
*/
|
|
1023
|
+
constructor() {
|
|
1024
|
+
const mlabel = {};
|
|
1025
|
+
for (const key in mclass) {
|
|
1026
|
+
mlabel[mclass[key].label] = mclass[key];
|
|
1027
|
+
mlabel[key] = mclass[key];
|
|
1028
|
+
}
|
|
1029
|
+
this.mlabel = mlabel;
|
|
1030
|
+
}
|
|
1031
|
+
/**
|
|
1032
|
+
* The static method that controls the access to the singleton instance.
|
|
1033
|
+
*
|
|
1034
|
+
* This implementation let you subclass the Singleton class while keeping
|
|
1035
|
+
* just one instance of each subclass around.
|
|
1036
|
+
*/
|
|
1037
|
+
static getInstance() {
|
|
1038
|
+
if (!_MLabel.instance) {
|
|
1039
|
+
_MLabel.instance = new _MLabel();
|
|
1040
|
+
}
|
|
1041
|
+
return _MLabel.instance;
|
|
1042
|
+
}
|
|
1043
|
+
};
|
|
1044
|
+
|
|
1045
|
+
// plots/disco/snv/SnvLegendElement.ts
|
|
1046
|
+
var SnvLegendElement = class {
|
|
1047
|
+
constructor(snvType, color, count) {
|
|
1048
|
+
this.snvType = snvType;
|
|
1049
|
+
this.color = color;
|
|
1050
|
+
this.count = count;
|
|
1051
|
+
}
|
|
1052
|
+
};
|
|
1053
|
+
|
|
1054
|
+
// plots/disco/snv/SnvArcsMapper.ts
|
|
1055
|
+
var SnvArcsMapper = class {
|
|
1056
|
+
constructor(svnInnerRadius, svnWidth, sampleName, reference) {
|
|
1057
|
+
this.snvClassMap = /* @__PURE__ */ new Map();
|
|
1058
|
+
this.svnInnerRadius = svnInnerRadius;
|
|
1059
|
+
this.svnWidth = svnWidth;
|
|
1060
|
+
this.sampleName = sampleName;
|
|
1061
|
+
this.reference = reference;
|
|
1062
|
+
this.bpx = Math.floor(this.reference.totalSize / (this.reference.totalChromosomesAngle * svnInnerRadius));
|
|
1063
|
+
this.onePxArcAngle = 1 / svnInnerRadius;
|
|
1064
|
+
}
|
|
1065
|
+
map(exonicSnvDataMap) {
|
|
1066
|
+
const snvArray = [];
|
|
1067
|
+
for (const angle of exonicSnvDataMap.keys()) {
|
|
1068
|
+
const array = exonicSnvDataMap.get(angle);
|
|
1069
|
+
if (array) {
|
|
1070
|
+
const arraySize = array.length;
|
|
1071
|
+
for (let i = 0; i < array.length; i++) {
|
|
1072
|
+
const data = array[i];
|
|
1073
|
+
const snvLegendElement = this.snvClassMap.get(data.mClass);
|
|
1074
|
+
if (snvLegendElement) {
|
|
1075
|
+
this.snvClassMap.set(data.mClass, this.createSnvLegend(data.mClass, ++snvLegendElement.count));
|
|
1076
|
+
} else {
|
|
1077
|
+
this.snvClassMap.set(data.mClass, this.createSnvLegend(data.mClass, 1));
|
|
1078
|
+
}
|
|
1079
|
+
const startAngle = angle;
|
|
1080
|
+
const endAngle = angle + this.onePxArcAngle;
|
|
1081
|
+
const mLabel = MLabel.getInstance().mlabel ? MLabel.getInstance().mlabel[data.mClass] : void 0;
|
|
1082
|
+
const arc = {
|
|
1083
|
+
startAngle,
|
|
1084
|
+
endAngle,
|
|
1085
|
+
innerRadius: this.svnInnerRadius + i * this.svnWidth / arraySize,
|
|
1086
|
+
outerRadius: this.svnInnerRadius + (i + 1) * this.svnWidth / arraySize,
|
|
1087
|
+
color: mLabel.color,
|
|
1088
|
+
text: data.gene,
|
|
1089
|
+
dataClass: mLabel.label,
|
|
1090
|
+
mname: data.mname,
|
|
1091
|
+
chr: data.chr,
|
|
1092
|
+
pos: data.position,
|
|
1093
|
+
sampleName: [data.sampleName]
|
|
1094
|
+
};
|
|
1095
|
+
snvArray.push(arc);
|
|
1096
|
+
}
|
|
1097
|
+
}
|
|
1098
|
+
}
|
|
1099
|
+
return snvArray;
|
|
1100
|
+
}
|
|
1101
|
+
createSnvLegend(dataClass, count) {
|
|
1102
|
+
const mClass = MLabel.getInstance().mlabel[dataClass];
|
|
1103
|
+
return new SnvLegendElement(mClass.label, mClass.color, count);
|
|
1104
|
+
}
|
|
1105
|
+
};
|
|
1106
|
+
|
|
1107
|
+
// plots/disco/cnv/CnvLegend.ts
|
|
1108
|
+
var CnvLegend = class {
|
|
1109
|
+
constructor(text, cnvType, color, value) {
|
|
1110
|
+
this.text = text;
|
|
1111
|
+
this.cnvType = cnvType;
|
|
1112
|
+
this.color = color;
|
|
1113
|
+
this.value = value;
|
|
1114
|
+
}
|
|
1115
|
+
};
|
|
1116
|
+
|
|
1117
|
+
// plots/disco/cnv/CnvColorProvider.ts
|
|
1118
|
+
var CnvColorProvider = class {
|
|
1119
|
+
static getColor(value, settings, cnvMaxPercentileAbs = 0) {
|
|
1120
|
+
const cnv = settings.cnv;
|
|
1121
|
+
const gainCapped = settings.Disco.cnvRenderingType == "heatmap" /* heatmap */ ? settings.Disco.cnvCapping : cnvMaxPercentileAbs;
|
|
1122
|
+
const lossCapped = settings.Disco.cnvRenderingType == "heatmap" /* heatmap */ ? -1 * settings.Disco.cnvCapping : -1 * cnvMaxPercentileAbs;
|
|
1123
|
+
if (value < lossCapped) {
|
|
1124
|
+
return cnv.cappedLossColor;
|
|
1125
|
+
} else if (value >= lossCapped && value <= 0) {
|
|
1126
|
+
return cnv.lossColor;
|
|
1127
|
+
} else if (value > 0 && value <= gainCapped) {
|
|
1128
|
+
return cnv.ampColor;
|
|
1129
|
+
} else {
|
|
1130
|
+
return cnv.cappedAmpColor;
|
|
1131
|
+
}
|
|
1132
|
+
}
|
|
1133
|
+
};
|
|
1134
|
+
|
|
1135
|
+
// plots/disco/cnv/CnvArcsMapper.ts
|
|
1136
|
+
var CnvArcsMapper = class {
|
|
1137
|
+
constructor(cnvInnerRadius, cnvWidth, settings, sampleName, reference, cnvMaxValue = 0, cnvMinValue = 0, cnvMaxAbsValue = 0, cnvAbsPercentile = 0, cnvUnit = "", cnvRenderingType) {
|
|
1138
|
+
this.cnvClassMap = /* @__PURE__ */ new Map();
|
|
1139
|
+
this.cnvInnerRadius = cnvInnerRadius;
|
|
1140
|
+
this.cnvWidth = cnvWidth;
|
|
1141
|
+
this.settings = settings;
|
|
1142
|
+
this.sampleName = sampleName;
|
|
1143
|
+
this.reference = reference;
|
|
1144
|
+
this.cnvMaxValue = cnvMaxValue;
|
|
1145
|
+
this.cnvMinValue = cnvMinValue;
|
|
1146
|
+
this.cnvMaxAbsValue = cnvMaxAbsValue;
|
|
1147
|
+
this.cnvAbsPercentile = cnvAbsPercentile;
|
|
1148
|
+
this.cnvUnit = cnvUnit;
|
|
1149
|
+
this.cnvRenderingType = cnvRenderingType;
|
|
1150
|
+
this.gainCapped = Math.min(cnvAbsPercentile, this.settings.Disco.cnvCapping);
|
|
1151
|
+
this.lossCapped = -1 * Math.min(cnvAbsPercentile, this.settings.Disco.cnvCapping);
|
|
1152
|
+
this.lossOnly = cnvMaxValue <= 0;
|
|
1153
|
+
this.gainOnly = cnvMinValue >= 0;
|
|
1154
|
+
this.onePxArcAngle = 1 / this.cnvInnerRadius;
|
|
1155
|
+
const gain = new CnvLegend(
|
|
1156
|
+
"Max",
|
|
1157
|
+
cnvMaxValue > 0 ? 1 /* Gain */ : 0 /* Loss */,
|
|
1158
|
+
this.getColor(cnvMaxValue),
|
|
1159
|
+
cnvMaxValue
|
|
1160
|
+
);
|
|
1161
|
+
const loss = new CnvLegend(
|
|
1162
|
+
"Min",
|
|
1163
|
+
cnvMinValue > 0 ? 1 /* Gain */ : 0 /* Loss */,
|
|
1164
|
+
this.getColor(cnvMinValue),
|
|
1165
|
+
cnvMinValue
|
|
1166
|
+
);
|
|
1167
|
+
const cap = new CnvLegend(
|
|
1168
|
+
"Capping",
|
|
1169
|
+
0 /* Loss */,
|
|
1170
|
+
this.getColor(cnvMinValue > 0 ? cnvMinValue : cnvMaxValue),
|
|
1171
|
+
this.settings.Disco.cnvCapping
|
|
1172
|
+
);
|
|
1173
|
+
this.cnvClassMap.set(1 /* Gain */, gain);
|
|
1174
|
+
this.cnvClassMap.set(0 /* Loss */, loss);
|
|
1175
|
+
this.cnvClassMap.set(2 /* Cap */, cap);
|
|
1176
|
+
}
|
|
1177
|
+
map(arcData) {
|
|
1178
|
+
const arcs = [];
|
|
1179
|
+
arcData.forEach((data) => {
|
|
1180
|
+
let startAngle = this.calculateStartAngle(data);
|
|
1181
|
+
let endAngle = this.calculateEndAngle(data);
|
|
1182
|
+
if (startAngle === null || endAngle === null) return;
|
|
1183
|
+
if (endAngle - startAngle < this.onePxArcAngle) {
|
|
1184
|
+
const restAngle = this.onePxArcAngle - (endAngle - startAngle);
|
|
1185
|
+
startAngle = startAngle - restAngle / 2;
|
|
1186
|
+
endAngle = startAngle + restAngle / 2;
|
|
1187
|
+
}
|
|
1188
|
+
const innerRadius = this.calculateInnerRadius(data);
|
|
1189
|
+
const outerRadius = this.calculateOuterRadius(data);
|
|
1190
|
+
const color = this.getColor(data.value);
|
|
1191
|
+
const arc = {
|
|
1192
|
+
startAngle,
|
|
1193
|
+
endAngle,
|
|
1194
|
+
innerRadius,
|
|
1195
|
+
outerRadius,
|
|
1196
|
+
color,
|
|
1197
|
+
text: data.gene,
|
|
1198
|
+
chr: data.chr,
|
|
1199
|
+
start: data.start,
|
|
1200
|
+
stop: data.stop,
|
|
1201
|
+
value: data.value,
|
|
1202
|
+
unit: this.cnvUnit,
|
|
1203
|
+
sampleName: [this.sampleName]
|
|
1204
|
+
};
|
|
1205
|
+
arcs.push(arc);
|
|
1206
|
+
});
|
|
1207
|
+
return arcs;
|
|
1208
|
+
}
|
|
1209
|
+
calculateStartAngle(data) {
|
|
1210
|
+
const index = this.reference.chromosomesOrder.indexOf(data.chr);
|
|
1211
|
+
if (index == -1) return null;
|
|
1212
|
+
const chromosome = this.reference.chromosomes[index];
|
|
1213
|
+
return chromosome.startAngle + (chromosome.endAngle - chromosome.startAngle) * (Number(data.start) / chromosome.size);
|
|
1214
|
+
}
|
|
1215
|
+
calculateEndAngle(data) {
|
|
1216
|
+
const index = this.reference.chromosomesOrder.indexOf(data.chr);
|
|
1217
|
+
const chromosome = this.reference.chromosomes[index];
|
|
1218
|
+
return chromosome.startAngle + (chromosome.endAngle - chromosome.startAngle) * (Number(data.stop) / chromosome.size);
|
|
1219
|
+
}
|
|
1220
|
+
getColor(value) {
|
|
1221
|
+
return CnvColorProvider.getColor(value, this.settings, this.cnvAbsPercentile);
|
|
1222
|
+
}
|
|
1223
|
+
calculateInnerRadius(data) {
|
|
1224
|
+
if (this.cnvRenderingType == "heatmap" /* heatmap */) {
|
|
1225
|
+
return this.cnvInnerRadius;
|
|
1226
|
+
}
|
|
1227
|
+
if (this.gainOnly) {
|
|
1228
|
+
return this.cnvInnerRadius;
|
|
1229
|
+
}
|
|
1230
|
+
if (this.lossOnly) {
|
|
1231
|
+
const outerRadius = this.cnvInnerRadius + this.cnvWidth;
|
|
1232
|
+
return outerRadius + DataMapper.capMinValue(
|
|
1233
|
+
this.cnvWidth * DataMapper.capMaxValue(data.value, this.gainCapped, this.lossCapped) / this.cnvAbsPercentile
|
|
1234
|
+
);
|
|
1235
|
+
}
|
|
1236
|
+
const centerRadius = this.cnvInnerRadius + this.cnvWidth / 2;
|
|
1237
|
+
if (Math.sign(data.value) == 1) {
|
|
1238
|
+
return centerRadius;
|
|
1239
|
+
}
|
|
1240
|
+
if (Math.sign(data.value) == -1) {
|
|
1241
|
+
return centerRadius + DataMapper.capMinValue(
|
|
1242
|
+
DataMapper.capMaxValue(data.value, this.gainCapped, this.lossCapped) / this.cnvAbsPercentile * (this.cnvWidth / 2)
|
|
1243
|
+
);
|
|
1244
|
+
}
|
|
1245
|
+
return 1;
|
|
1246
|
+
}
|
|
1247
|
+
calculateOuterRadius(data) {
|
|
1248
|
+
const maxOuterRadius = this.cnvInnerRadius + this.cnvWidth;
|
|
1249
|
+
if (this.cnvRenderingType == "heatmap" /* heatmap */) {
|
|
1250
|
+
return maxOuterRadius;
|
|
1251
|
+
}
|
|
1252
|
+
if (this.gainOnly) {
|
|
1253
|
+
return this.cnvInnerRadius + DataMapper.capMinValue(
|
|
1254
|
+
this.cnvWidth * DataMapper.capMaxValue(data.value, this.gainCapped, this.lossCapped) / this.cnvAbsPercentile
|
|
1255
|
+
);
|
|
1256
|
+
}
|
|
1257
|
+
if (this.lossOnly) {
|
|
1258
|
+
return maxOuterRadius;
|
|
1259
|
+
}
|
|
1260
|
+
const centerRadius = this.cnvInnerRadius + this.cnvWidth / 2;
|
|
1261
|
+
if (Math.sign(data.value) == 1) {
|
|
1262
|
+
return centerRadius + DataMapper.capMinValue(
|
|
1263
|
+
DataMapper.capMaxValue(data.value, this.gainCapped, this.lossCapped) / this.cnvMaxAbsValue * (this.cnvWidth / 2)
|
|
1264
|
+
);
|
|
1265
|
+
}
|
|
1266
|
+
if (Math.sign(data.value) == -1) {
|
|
1267
|
+
return centerRadius;
|
|
1268
|
+
}
|
|
1269
|
+
return 1;
|
|
1270
|
+
}
|
|
1271
|
+
};
|
|
1272
|
+
|
|
1273
|
+
// plots/disco/label/Line.ts
|
|
1274
|
+
var Line = class {
|
|
1275
|
+
constructor(points, color) {
|
|
1276
|
+
this.points = new Array();
|
|
1277
|
+
this.points = points;
|
|
1278
|
+
this.color = color;
|
|
1279
|
+
}
|
|
1280
|
+
};
|
|
1281
|
+
|
|
1282
|
+
// plots/disco/label/LabelFactory.ts
|
|
1283
|
+
var LabelFactory = class {
|
|
1284
|
+
static createLabel(startAngle, endAngle, innerRadius, outerRadius, value, gene, color, dataClass, chr, position, isPrioritized = false, labelsToLinesGap, mutationTooltip, fusionTooltip) {
|
|
1285
|
+
const angle = (startAngle + endAngle) / 2;
|
|
1286
|
+
const ccAngle = angle - Math.PI / 2;
|
|
1287
|
+
const transform = `rotate(${angle * 180 / Math.PI - 90}) translate(${outerRadius})${angle > Math.PI ? "rotate(180)" : ""}`;
|
|
1288
|
+
const textAnchor = angle > Math.PI ? "end" : "";
|
|
1289
|
+
const r0 = innerRadius;
|
|
1290
|
+
const r1 = outerRadius - labelsToLinesGap;
|
|
1291
|
+
const points = [];
|
|
1292
|
+
const point0 = {
|
|
1293
|
+
x: r0 * Math.cos(ccAngle),
|
|
1294
|
+
y: r0 * Math.sin(ccAngle)
|
|
1295
|
+
};
|
|
1296
|
+
const point1 = {
|
|
1297
|
+
x: r1 * Math.cos(ccAngle),
|
|
1298
|
+
y: r1 * Math.sin(ccAngle)
|
|
1299
|
+
};
|
|
1300
|
+
points.push(point0);
|
|
1301
|
+
points.push(point1);
|
|
1302
|
+
const line = new Line(points, color);
|
|
1303
|
+
const label = {
|
|
1304
|
+
startAngle,
|
|
1305
|
+
endAngle,
|
|
1306
|
+
innerRadius,
|
|
1307
|
+
outerRadius,
|
|
1308
|
+
angle,
|
|
1309
|
+
value,
|
|
1310
|
+
text: gene,
|
|
1311
|
+
color,
|
|
1312
|
+
transform,
|
|
1313
|
+
textAnchor,
|
|
1314
|
+
ccAngle,
|
|
1315
|
+
line,
|
|
1316
|
+
isPrioritized,
|
|
1317
|
+
start: position,
|
|
1318
|
+
stop: position,
|
|
1319
|
+
chr,
|
|
1320
|
+
mutationsTooltip: mutationTooltip ? [mutationTooltip] : void 0,
|
|
1321
|
+
fusionTooltip: fusionTooltip ? [fusionTooltip] : void 0
|
|
1322
|
+
};
|
|
1323
|
+
return label;
|
|
1324
|
+
}
|
|
1325
|
+
static createMovedLabel(element, overlap) {
|
|
1326
|
+
const startAngle = element.startAngle + overlap;
|
|
1327
|
+
const endAngle = element.endAngle + overlap;
|
|
1328
|
+
const angle = (startAngle + endAngle) / 2;
|
|
1329
|
+
const ccAngle = angle - Math.PI / 2;
|
|
1330
|
+
const r0 = element.innerRadius;
|
|
1331
|
+
const r1 = element.outerRadius - 2;
|
|
1332
|
+
const dr = (r1 - r0) / 3;
|
|
1333
|
+
const cos0 = Math.cos(element.ccAngle);
|
|
1334
|
+
const sin0 = Math.sin(element.ccAngle);
|
|
1335
|
+
const cos1 = Math.cos(element.ccAngle + overlap);
|
|
1336
|
+
const sin1 = Math.sin(element.ccAngle + overlap);
|
|
1337
|
+
const points = [];
|
|
1338
|
+
const point0 = {
|
|
1339
|
+
x: r0 * cos0,
|
|
1340
|
+
y: r0 * sin0
|
|
1341
|
+
};
|
|
1342
|
+
const point1 = {
|
|
1343
|
+
x: (r0 + dr) * cos0,
|
|
1344
|
+
y: (r0 + dr) * sin0
|
|
1345
|
+
};
|
|
1346
|
+
const point2 = {
|
|
1347
|
+
x: (r0 + 2 * dr) * cos1,
|
|
1348
|
+
y: (r0 + 2 * dr) * sin1
|
|
1349
|
+
};
|
|
1350
|
+
const point3 = {
|
|
1351
|
+
x: (r0 + 3 * dr) * cos1,
|
|
1352
|
+
y: (r0 + 3 * dr) * sin1
|
|
1353
|
+
};
|
|
1354
|
+
points.push(point0);
|
|
1355
|
+
points.push(point1);
|
|
1356
|
+
points.push(point2);
|
|
1357
|
+
points.push(point3);
|
|
1358
|
+
const line = new Line(points, element.color);
|
|
1359
|
+
const transform = "rotate(" + (angle * 180 / Math.PI - 90) + ")translate(" + element.outerRadius + ")" + (angle > Math.PI ? "rotate(180)" : "");
|
|
1360
|
+
const textAnchor = angle > Math.PI ? "end" : "";
|
|
1361
|
+
const color = element.mutationsTooltip ? element.mutationsTooltip[0].color : element.fusionTooltip ? element.fusionTooltip[0].color : void 0;
|
|
1362
|
+
const label = {
|
|
1363
|
+
startAngle,
|
|
1364
|
+
endAngle,
|
|
1365
|
+
innerRadius: element.innerRadius,
|
|
1366
|
+
outerRadius: element.outerRadius,
|
|
1367
|
+
angle,
|
|
1368
|
+
value: element.value,
|
|
1369
|
+
text: element.text,
|
|
1370
|
+
transform,
|
|
1371
|
+
textAnchor,
|
|
1372
|
+
ccAngle,
|
|
1373
|
+
color,
|
|
1374
|
+
line,
|
|
1375
|
+
isPrioritized: element.isPrioritized,
|
|
1376
|
+
start: element.start,
|
|
1377
|
+
stop: element.stop,
|
|
1378
|
+
chr: element.chr,
|
|
1379
|
+
mutationsTooltip: element.mutationsTooltip,
|
|
1380
|
+
fusionTooltip: element.fusionTooltip
|
|
1381
|
+
};
|
|
1382
|
+
return label;
|
|
1383
|
+
}
|
|
1384
|
+
};
|
|
1385
|
+
|
|
1386
|
+
// plots/disco/label/LabelsMapper.ts
|
|
1387
|
+
var LabelsMapper = class {
|
|
1388
|
+
constructor(settings, sampleName, reference, cnvMaxPercentileAbs = 0) {
|
|
1389
|
+
this.labelMap = /* @__PURE__ */ new Map();
|
|
1390
|
+
this.settings = settings;
|
|
1391
|
+
this.sampleName = sampleName;
|
|
1392
|
+
this.reference = reference;
|
|
1393
|
+
this.cnvMaxPercentileAbs = cnvMaxPercentileAbs;
|
|
1394
|
+
}
|
|
1395
|
+
map(data, cnvData = []) {
|
|
1396
|
+
const innerRadius = this.settings.rings.labelLinesInnerRadius;
|
|
1397
|
+
const outerRadius = innerRadius + this.settings.rings.labelsToLinesDistance;
|
|
1398
|
+
data.forEach((data2) => {
|
|
1399
|
+
if (data2.dt == dtsnvindel) {
|
|
1400
|
+
const startAngle = this.calculateStartAngle(data2.chr, data2.position);
|
|
1401
|
+
const endAngle = this.calculateEndAngle(data2.chr, data2.position);
|
|
1402
|
+
if (startAngle === null || endAngle === null) return;
|
|
1403
|
+
const mLabel = MLabel.getInstance().mlabel ? MLabel.getInstance().mlabel[data2.mClass] : void 0;
|
|
1404
|
+
this.addLabelOrMutation(
|
|
1405
|
+
data2,
|
|
1406
|
+
data2.gene,
|
|
1407
|
+
data2.mname,
|
|
1408
|
+
startAngle,
|
|
1409
|
+
endAngle,
|
|
1410
|
+
innerRadius,
|
|
1411
|
+
outerRadius,
|
|
1412
|
+
mLabel.color,
|
|
1413
|
+
mLabel.label
|
|
1414
|
+
);
|
|
1415
|
+
}
|
|
1416
|
+
if (data2.dt == dtfusionrna) {
|
|
1417
|
+
const color = FusionColorProvider.getColor(data2.chrA, data2.chrB);
|
|
1418
|
+
if (data2.geneA) {
|
|
1419
|
+
const startAngleSource = this.calculateStartAngle(data2.chrA, data2.posA);
|
|
1420
|
+
const endAngleSource = this.calculateEndAngle(data2.chrA, data2.posA);
|
|
1421
|
+
if (startAngleSource === null || endAngleSource === null) return;
|
|
1422
|
+
this.addLabelOrFusion(
|
|
1423
|
+
data2,
|
|
1424
|
+
data2.geneA,
|
|
1425
|
+
data2.posA,
|
|
1426
|
+
startAngleSource,
|
|
1427
|
+
endAngleSource,
|
|
1428
|
+
innerRadius,
|
|
1429
|
+
outerRadius,
|
|
1430
|
+
color
|
|
1431
|
+
);
|
|
1432
|
+
}
|
|
1433
|
+
if (data2.geneB && data2.geneA != data2.geneB) {
|
|
1434
|
+
const startAngleTarget = this.calculateStartAngle(data2.chrB, data2.posB);
|
|
1435
|
+
const endAngleTarget = this.calculateEndAngle(data2.chrB, data2.posB);
|
|
1436
|
+
if (startAngleTarget == null || endAngleTarget == null) return;
|
|
1437
|
+
this.addLabelOrFusion(
|
|
1438
|
+
data2,
|
|
1439
|
+
data2.geneB,
|
|
1440
|
+
data2.posB,
|
|
1441
|
+
startAngleTarget,
|
|
1442
|
+
endAngleTarget,
|
|
1443
|
+
innerRadius,
|
|
1444
|
+
outerRadius,
|
|
1445
|
+
color
|
|
1446
|
+
);
|
|
1447
|
+
}
|
|
1448
|
+
}
|
|
1449
|
+
});
|
|
1450
|
+
const labelsArray = Array.from(this.labelMap.values());
|
|
1451
|
+
labelsArray.forEach((label) => {
|
|
1452
|
+
cnvData.forEach((cnv) => {
|
|
1453
|
+
if (label.stop >= cnv.start && cnv.stop >= label.start && label.chr == cnv.chr) {
|
|
1454
|
+
const mutation = {
|
|
1455
|
+
value: cnv.value,
|
|
1456
|
+
color: CnvColorProvider.getColor(cnv.value, this.settings, this.cnvMaxPercentileAbs),
|
|
1457
|
+
chr: cnv.chr,
|
|
1458
|
+
start: cnv.start,
|
|
1459
|
+
stop: cnv.stop
|
|
1460
|
+
};
|
|
1461
|
+
if (label.cnvTooltip) {
|
|
1462
|
+
label.cnvTooltip.push(mutation);
|
|
1463
|
+
} else {
|
|
1464
|
+
label.cnvTooltip = [];
|
|
1465
|
+
label.cnvTooltip.push(mutation);
|
|
1466
|
+
}
|
|
1467
|
+
}
|
|
1468
|
+
});
|
|
1469
|
+
});
|
|
1470
|
+
return Array.from(this.labelMap.values());
|
|
1471
|
+
}
|
|
1472
|
+
addLabelOrMutation(data, gene, mname, startAngle, endAngle, innerRadius, outerRadius, color, dataClass) {
|
|
1473
|
+
const label = this.labelMap.get(gene);
|
|
1474
|
+
const mutation = {
|
|
1475
|
+
mname,
|
|
1476
|
+
color,
|
|
1477
|
+
dataClass,
|
|
1478
|
+
chr: data.chr,
|
|
1479
|
+
position: data.position
|
|
1480
|
+
};
|
|
1481
|
+
if (!label) {
|
|
1482
|
+
this.labelMap.set(
|
|
1483
|
+
gene,
|
|
1484
|
+
LabelFactory.createLabel(
|
|
1485
|
+
startAngle,
|
|
1486
|
+
endAngle,
|
|
1487
|
+
innerRadius,
|
|
1488
|
+
outerRadius,
|
|
1489
|
+
data.value,
|
|
1490
|
+
gene,
|
|
1491
|
+
color,
|
|
1492
|
+
dataClass,
|
|
1493
|
+
data.chr,
|
|
1494
|
+
data.position,
|
|
1495
|
+
data.isPrioritized,
|
|
1496
|
+
this.settings.rings.labelsToLinesGap,
|
|
1497
|
+
mutation
|
|
1498
|
+
)
|
|
1499
|
+
);
|
|
1500
|
+
} else {
|
|
1501
|
+
if (label.mutationsTooltip) {
|
|
1502
|
+
label.start = Math.min(label.start, data.position);
|
|
1503
|
+
label.stop = Math.max(label.stop, data.position);
|
|
1504
|
+
label.mutationsTooltip.push(mutation);
|
|
1505
|
+
} else {
|
|
1506
|
+
label.mutationsTooltip = [];
|
|
1507
|
+
label.start = Math.min(label.start, data.position);
|
|
1508
|
+
label.stop = Math.max(label.stop, data.position);
|
|
1509
|
+
label.mutationsTooltip.push(mutation);
|
|
1510
|
+
}
|
|
1511
|
+
}
|
|
1512
|
+
}
|
|
1513
|
+
addLabelOrFusion(data, gene, position, startAngle, endAngle, innerRadius, outerRadius, color) {
|
|
1514
|
+
const label = this.labelMap.get(gene);
|
|
1515
|
+
const fusionTooltip = {
|
|
1516
|
+
color,
|
|
1517
|
+
chrA: data.chrA,
|
|
1518
|
+
chrB: data.chrB,
|
|
1519
|
+
posA: data.posA,
|
|
1520
|
+
posB: data.posB,
|
|
1521
|
+
geneA: data.geneA,
|
|
1522
|
+
geneB: data.geneB,
|
|
1523
|
+
strandA: data.strandA,
|
|
1524
|
+
strandB: data.strandB
|
|
1525
|
+
};
|
|
1526
|
+
if (!label) {
|
|
1527
|
+
this.labelMap.set(
|
|
1528
|
+
gene,
|
|
1529
|
+
LabelFactory.createLabel(
|
|
1530
|
+
startAngle,
|
|
1531
|
+
endAngle,
|
|
1532
|
+
innerRadius,
|
|
1533
|
+
outerRadius,
|
|
1534
|
+
data.value,
|
|
1535
|
+
gene,
|
|
1536
|
+
color,
|
|
1537
|
+
"Fusion transcript",
|
|
1538
|
+
data.chr,
|
|
1539
|
+
data.position,
|
|
1540
|
+
data.isPrioritized,
|
|
1541
|
+
this.settings.rings.labelsToLinesGap,
|
|
1542
|
+
void 0,
|
|
1543
|
+
fusionTooltip
|
|
1544
|
+
)
|
|
1545
|
+
);
|
|
1546
|
+
} else {
|
|
1547
|
+
if (label.fusionTooltip) {
|
|
1548
|
+
label.start = Math.min(label.start, position);
|
|
1549
|
+
label.stop = Math.max(label.stop, position);
|
|
1550
|
+
label.fusionTooltip.push(fusionTooltip);
|
|
1551
|
+
} else {
|
|
1552
|
+
label.fusionTooltip = [];
|
|
1553
|
+
label.start = Math.min(label.start, position);
|
|
1554
|
+
label.stop = Math.max(label.stop, position);
|
|
1555
|
+
label.fusionTooltip.push(fusionTooltip);
|
|
1556
|
+
}
|
|
1557
|
+
}
|
|
1558
|
+
}
|
|
1559
|
+
calculateStartAngle(chr, position) {
|
|
1560
|
+
const index = this.reference.chromosomesOrder.findIndex((element) => element == chr);
|
|
1561
|
+
if (index === -1) return null;
|
|
1562
|
+
const chromosome = this.reference.chromosomes[index];
|
|
1563
|
+
return chromosome.startAngle + (chromosome.endAngle - chromosome.startAngle) * (Number(position) / chromosome.size);
|
|
1564
|
+
}
|
|
1565
|
+
calculateEndAngle(chr, position) {
|
|
1566
|
+
const index = this.reference.chromosomesOrder.findIndex((element) => element == chr);
|
|
1567
|
+
if (index === -1) return null;
|
|
1568
|
+
const chromosome = this.reference.chromosomes[index];
|
|
1569
|
+
return chromosome.startAngle + (chromosome.endAngle - chromosome.startAngle) * (Number(position) / chromosome.size);
|
|
1570
|
+
}
|
|
1571
|
+
};
|
|
1572
|
+
|
|
1573
|
+
// plots/disco/label/Labels.ts
|
|
1574
|
+
var Labels = class extends Ring {
|
|
1575
|
+
constructor(settings, elements, hasPrioritizedGenes) {
|
|
1576
|
+
super(
|
|
1577
|
+
settings.rings.labelLinesInnerRadius,
|
|
1578
|
+
settings.rings.labelsToLinesDistance,
|
|
1579
|
+
elements.sort((a, b) => {
|
|
1580
|
+
return a.startAngle < b.startAngle ? -1 : a.startAngle > b.startAngle ? 1 : 0;
|
|
1581
|
+
})
|
|
1582
|
+
);
|
|
1583
|
+
this.elementsToDisplay = [];
|
|
1584
|
+
this.settings = settings;
|
|
1585
|
+
this.hasPrioritizedGenes = hasPrioritizedGenes;
|
|
1586
|
+
const circumference = 2 * Math.PI * (settings.rings.labelLinesInnerRadius + settings.rings.labelsToLinesDistance);
|
|
1587
|
+
this.overlapAngle = this.settings.label.overlapAngleFactor * this.settings.label.fontSize / circumference;
|
|
1588
|
+
this.calculateCollisions();
|
|
1589
|
+
}
|
|
1590
|
+
calculateCollisions() {
|
|
1591
|
+
this.collisions = [];
|
|
1592
|
+
let hasPrioritizedGenesList = [];
|
|
1593
|
+
hasPrioritizedGenesList = this.elements.filter((label) => label.isPrioritized);
|
|
1594
|
+
if (this.settings.label.prioritizeGeneLabelsByGeneSets) {
|
|
1595
|
+
this.elementsToDisplay = this.getLabelsWithPrioritizedGenes(hasPrioritizedGenesList);
|
|
1596
|
+
} else if (this.hasPrioritizedGenes) {
|
|
1597
|
+
const prioritizedGenesList = this.elements.filter((label) => label.isPrioritized);
|
|
1598
|
+
const filteredPrioritizedGenesList = this.getLabelsWithPrioritizedGenes(prioritizedGenesList);
|
|
1599
|
+
const withoutPrioritizedGenesList = this.elements.filter((label) => !label.isPrioritized);
|
|
1600
|
+
const combinedAndSortedList = [...withoutPrioritizedGenesList, ...filteredPrioritizedGenesList].sort(
|
|
1601
|
+
(a, b) => a.startAngle - b.startAngle
|
|
1602
|
+
);
|
|
1603
|
+
this.elementsToDisplay = this.getAllLabels(combinedAndSortedList);
|
|
1604
|
+
} else {
|
|
1605
|
+
this.elementsToDisplay = this.getLabelsWithPrioritizedGenes(this.elements);
|
|
1606
|
+
}
|
|
1607
|
+
}
|
|
1608
|
+
getLabelsWithPrioritizedGenes(elemenets) {
|
|
1609
|
+
const filteredList = [];
|
|
1610
|
+
let prev = { endAngle: 0 };
|
|
1611
|
+
elemenets.forEach((element, index) => {
|
|
1612
|
+
if (index == 0) {
|
|
1613
|
+
filteredList.push(element);
|
|
1614
|
+
prev = element;
|
|
1615
|
+
} else {
|
|
1616
|
+
const overlap = prev.endAngle - element.startAngle + this.overlapAngle;
|
|
1617
|
+
if (overlap > 0 && overlap < this.settings.label.maxDeltaAngle) {
|
|
1618
|
+
const labelCopy = LabelFactory.createMovedLabel(element, overlap);
|
|
1619
|
+
filteredList?.push(labelCopy);
|
|
1620
|
+
prev = labelCopy;
|
|
1621
|
+
}
|
|
1622
|
+
if (overlap <= 0) {
|
|
1623
|
+
filteredList.push(element);
|
|
1624
|
+
prev = element;
|
|
1625
|
+
}
|
|
1626
|
+
}
|
|
1627
|
+
});
|
|
1628
|
+
return filteredList;
|
|
1629
|
+
}
|
|
1630
|
+
getAllLabels(elemenets) {
|
|
1631
|
+
const filteredList = [];
|
|
1632
|
+
let prev = { endAngle: 0 };
|
|
1633
|
+
const elemenetsLength = elemenets.length;
|
|
1634
|
+
let lastCancerGeneLabelIndex = -1;
|
|
1635
|
+
for (let index = 0; index < elemenets.length; index++) {
|
|
1636
|
+
const element = elemenets[index];
|
|
1637
|
+
if (element.isPrioritized) {
|
|
1638
|
+
filteredList.push(element);
|
|
1639
|
+
lastCancerGeneLabelIndex = index;
|
|
1640
|
+
prev = element;
|
|
1641
|
+
continue;
|
|
1642
|
+
}
|
|
1643
|
+
if (index == 0) {
|
|
1644
|
+
if (elemenetsLength > 1) {
|
|
1645
|
+
if (this.isElementOverlappingNextCancerGene(elemenets, lastCancerGeneLabelIndex, element, 0)) {
|
|
1646
|
+
continue;
|
|
1647
|
+
}
|
|
1648
|
+
filteredList.push(element);
|
|
1649
|
+
prev = element;
|
|
1650
|
+
}
|
|
1651
|
+
continue;
|
|
1652
|
+
}
|
|
1653
|
+
const prevOverlap = prev.endAngle - element.startAngle + this.overlapAngle;
|
|
1654
|
+
if (prevOverlap > 0 && prevOverlap < this.settings.label.maxDeltaAngle) {
|
|
1655
|
+
if (index == length - 1) {
|
|
1656
|
+
filteredList.push(element);
|
|
1657
|
+
continue;
|
|
1658
|
+
}
|
|
1659
|
+
if (this.isElementOverlappingNextCancerGene(elemenets, lastCancerGeneLabelIndex, element, prevOverlap)) {
|
|
1660
|
+
continue;
|
|
1661
|
+
}
|
|
1662
|
+
const labelCopy = LabelFactory.createMovedLabel(element, prevOverlap);
|
|
1663
|
+
this.collisions?.push(labelCopy);
|
|
1664
|
+
filteredList.push(element);
|
|
1665
|
+
prev = labelCopy;
|
|
1666
|
+
}
|
|
1667
|
+
if (prevOverlap <= 0) {
|
|
1668
|
+
if (this.isElementOverlappingNextCancerGene(elemenets, lastCancerGeneLabelIndex, element, 0)) {
|
|
1669
|
+
continue;
|
|
1670
|
+
}
|
|
1671
|
+
filteredList.push(element);
|
|
1672
|
+
prev = element;
|
|
1673
|
+
}
|
|
1674
|
+
}
|
|
1675
|
+
return filteredList;
|
|
1676
|
+
}
|
|
1677
|
+
isElementOverlappingNextCancerGene(elemenets, lastCancerGeneLabelIndex, element, prevOverlap) {
|
|
1678
|
+
const nextLabelWithCancerGene = this.getNextLabelWithCancerGene(elemenets, lastCancerGeneLabelIndex);
|
|
1679
|
+
if (nextLabelWithCancerGene) {
|
|
1680
|
+
const nextOverlap = element.endAngle + prevOverlap - nextLabelWithCancerGene.startAngle + this.overlapAngle;
|
|
1681
|
+
if (nextOverlap > 0) {
|
|
1682
|
+
return true;
|
|
1683
|
+
}
|
|
1684
|
+
}
|
|
1685
|
+
return false;
|
|
1686
|
+
}
|
|
1687
|
+
getNextLabelWithCancerGene(elemenets, lastCancerGeneLabelIndex) {
|
|
1688
|
+
return elemenets.find((label, index) => label.isPrioritized && index > lastCancerGeneLabelIndex);
|
|
1689
|
+
}
|
|
1690
|
+
};
|
|
1691
|
+
|
|
1692
|
+
// plots/disco/snv/NonExonicSnvArcsMapper.ts
|
|
1693
|
+
var NonExonicSnvArcsMapper = class {
|
|
1694
|
+
constructor(nonExonicInnerRadius, nonExonicWidht, sampleName, reference) {
|
|
1695
|
+
this.nonExonicInnerRadius = nonExonicInnerRadius;
|
|
1696
|
+
this.nonExonicWidht = nonExonicWidht;
|
|
1697
|
+
this.sampleName = sampleName;
|
|
1698
|
+
this.reference = reference;
|
|
1699
|
+
this.onePxArcAngle = 1 / nonExonicInnerRadius;
|
|
1700
|
+
}
|
|
1701
|
+
map(arcData) {
|
|
1702
|
+
const innerRadius = this.nonExonicInnerRadius;
|
|
1703
|
+
const outerRadius = innerRadius + this.nonExonicWidht;
|
|
1704
|
+
const arcs = [];
|
|
1705
|
+
arcData.forEach((data) => {
|
|
1706
|
+
const mLabel = MLabel.getInstance().mlabel ? MLabel.getInstance().mlabel[data.mClass] : void 0;
|
|
1707
|
+
const startAngle = this.calculateStartAngle(data);
|
|
1708
|
+
const endAngle = this.calculateEndAngle(data);
|
|
1709
|
+
if (startAngle === null || endAngle === null) return;
|
|
1710
|
+
const arc = {
|
|
1711
|
+
startAngle,
|
|
1712
|
+
endAngle,
|
|
1713
|
+
innerRadius,
|
|
1714
|
+
outerRadius,
|
|
1715
|
+
color: mLabel.color,
|
|
1716
|
+
text: data.gene,
|
|
1717
|
+
dataClass: mLabel.label,
|
|
1718
|
+
mname: data.mname,
|
|
1719
|
+
chr: data.chr,
|
|
1720
|
+
pos: data.position,
|
|
1721
|
+
sampleName: [data.sampleName]
|
|
1722
|
+
};
|
|
1723
|
+
arcs.push(arc);
|
|
1724
|
+
});
|
|
1725
|
+
return arcs;
|
|
1726
|
+
}
|
|
1727
|
+
calculateStartAngle(data) {
|
|
1728
|
+
const index = this.reference.chromosomesOrder.indexOf(data.chr);
|
|
1729
|
+
if (index === -1) return null;
|
|
1730
|
+
const chromosome = this.reference.chromosomes[index];
|
|
1731
|
+
return chromosome.startAngle + (chromosome.endAngle - chromosome.startAngle) * (Number(data.position) / chromosome.size) - this.onePxArcAngle;
|
|
1732
|
+
}
|
|
1733
|
+
calculateEndAngle(data) {
|
|
1734
|
+
const index = this.reference.chromosomesOrder.indexOf(data.chr);
|
|
1735
|
+
const chromosome = this.reference.chromosomes[index];
|
|
1736
|
+
return this.onePxArcAngle + chromosome.startAngle + (chromosome.endAngle - chromosome.startAngle) * (Number(data.position) / chromosome.size);
|
|
1737
|
+
}
|
|
1738
|
+
};
|
|
1739
|
+
|
|
1740
|
+
// plots/disco/loh/LohArcMapper.ts
|
|
1741
|
+
var LohArcMapper = class {
|
|
1742
|
+
constructor(lohInnerRadius, lohWidth, sampleName, reference) {
|
|
1743
|
+
this.lohInnerRadius = lohInnerRadius;
|
|
1744
|
+
this.lohWidth = lohWidth;
|
|
1745
|
+
this.sampleName = sampleName;
|
|
1746
|
+
this.reference = reference;
|
|
1747
|
+
}
|
|
1748
|
+
map(arcData) {
|
|
1749
|
+
const arcs = [];
|
|
1750
|
+
arcData.forEach((data) => {
|
|
1751
|
+
const startAngle = this.calculateStartAngle(data);
|
|
1752
|
+
const endAngle = this.calculateEndAngle(data);
|
|
1753
|
+
if (startAngle === null || endAngle === null) return;
|
|
1754
|
+
const innerRadius = this.lohInnerRadius;
|
|
1755
|
+
const outerRadius = innerRadius + this.lohWidth;
|
|
1756
|
+
const color = GradientColorProvider.provide(data.segmean);
|
|
1757
|
+
const arc = {
|
|
1758
|
+
startAngle,
|
|
1759
|
+
endAngle,
|
|
1760
|
+
innerRadius,
|
|
1761
|
+
outerRadius,
|
|
1762
|
+
color,
|
|
1763
|
+
text: data.gene,
|
|
1764
|
+
chr: data.chr,
|
|
1765
|
+
start: data.start,
|
|
1766
|
+
stop: data.stop,
|
|
1767
|
+
value: data.segmean
|
|
1768
|
+
};
|
|
1769
|
+
arcs.push(arc);
|
|
1770
|
+
});
|
|
1771
|
+
return arcs;
|
|
1772
|
+
}
|
|
1773
|
+
calculateStartAngle(data) {
|
|
1774
|
+
const index = this.reference.chromosomesOrder.indexOf(data.chr);
|
|
1775
|
+
if (index === -1) return null;
|
|
1776
|
+
const chromosome = this.reference.chromosomes[index];
|
|
1777
|
+
return chromosome.startAngle + (chromosome.endAngle - chromosome.startAngle) * (Number(data.start) / chromosome.size);
|
|
1778
|
+
}
|
|
1779
|
+
calculateEndAngle(data) {
|
|
1780
|
+
const index = this.reference.chromosomesOrder.indexOf(data.chr);
|
|
1781
|
+
const chromosome = this.reference.chromosomes[index];
|
|
1782
|
+
return chromosome.startAngle + (chromosome.endAngle - chromosome.startAngle) * (Number(data.stop) / chromosome.size);
|
|
1783
|
+
}
|
|
1784
|
+
};
|
|
1785
|
+
|
|
1786
|
+
// plots/disco/ring/Rings.ts
|
|
1787
|
+
var Rings = class {
|
|
1788
|
+
constructor(labelsRing, chromosomesRing, nonExonicArcRing, snvArcRing, cnvArcRing, lohArcRing, mutationWaterfallRing) {
|
|
1789
|
+
this.labelsRing = labelsRing;
|
|
1790
|
+
this.chromosomesRing = chromosomesRing;
|
|
1791
|
+
this.nonExonicArcRing = nonExonicArcRing;
|
|
1792
|
+
this.snvArcRing = snvArcRing;
|
|
1793
|
+
this.cnvArcRing = cnvArcRing;
|
|
1794
|
+
this.lohArcRing = lohArcRing;
|
|
1795
|
+
this.mutationWaterfallRing = mutationWaterfallRing;
|
|
1796
|
+
}
|
|
1797
|
+
};
|
|
1798
|
+
|
|
1799
|
+
// plots/disco/waterfall/MutationWaterfallMapper.ts
|
|
1800
|
+
var MutationWaterfallMapper = class {
|
|
1801
|
+
constructor(innerRadius, ringWidth, reference, logRange) {
|
|
1802
|
+
this.innerRadius = innerRadius;
|
|
1803
|
+
this.ringWidth = ringWidth;
|
|
1804
|
+
this.reference = reference;
|
|
1805
|
+
this.logRange = logRange;
|
|
1806
|
+
}
|
|
1807
|
+
map(data = []) {
|
|
1808
|
+
if (!data.length) return [];
|
|
1809
|
+
const min = this.logRange?.min ?? 0;
|
|
1810
|
+
const max = this.logRange?.max ?? min + 1;
|
|
1811
|
+
const span = max - min || 1;
|
|
1812
|
+
const points = [];
|
|
1813
|
+
for (const datum of data) {
|
|
1814
|
+
const chrIndex = this.reference.chromosomesOrder.indexOf(datum.chr);
|
|
1815
|
+
if (chrIndex === -1) continue;
|
|
1816
|
+
const chromosome = this.reference.chromosomes[chrIndex];
|
|
1817
|
+
const chrAngleSpan = chromosome.endAngle - chromosome.startAngle;
|
|
1818
|
+
const relPos = chromosome.size > 0 ? datum.position / chromosome.size : 0;
|
|
1819
|
+
const angle = chromosome.startAngle + chrAngleSpan * relPos;
|
|
1820
|
+
const normalized = Math.max(0, Math.min(1, (datum.logDistance - min) / span));
|
|
1821
|
+
const radius = this.innerRadius + this.ringWidth * normalized;
|
|
1822
|
+
points.push({
|
|
1823
|
+
startAngle: angle,
|
|
1824
|
+
endAngle: angle,
|
|
1825
|
+
innerRadius: radius,
|
|
1826
|
+
outerRadius: radius,
|
|
1827
|
+
text: chromosome.text,
|
|
1828
|
+
color: "#4d4d4d",
|
|
1829
|
+
chr: datum.chr,
|
|
1830
|
+
position: datum.position,
|
|
1831
|
+
logDistance: datum.logDistance,
|
|
1832
|
+
ringInnerRadius: this.innerRadius,
|
|
1833
|
+
ringWidth: this.ringWidth,
|
|
1834
|
+
rangeMin: min,
|
|
1835
|
+
rangeMax: max
|
|
1836
|
+
});
|
|
1837
|
+
}
|
|
1838
|
+
return points;
|
|
1839
|
+
}
|
|
1840
|
+
};
|
|
1841
|
+
|
|
1842
|
+
// plots/disco/viewmodel/ViewModelProvider.ts
|
|
1843
|
+
var ViewModelProvider = class {
|
|
1844
|
+
constructor(settings, dataMapper, reference, sampleName, genesetName, discoInteractions) {
|
|
1845
|
+
this.nonExonicArcRing = void 0;
|
|
1846
|
+
this.settings = settings;
|
|
1847
|
+
this.dataMapper = dataMapper;
|
|
1848
|
+
this.reference = reference;
|
|
1849
|
+
this.sampleName = sampleName;
|
|
1850
|
+
this.genesetName = genesetName;
|
|
1851
|
+
this.discoInteractions = discoInteractions;
|
|
1852
|
+
}
|
|
1853
|
+
map(data) {
|
|
1854
|
+
const dataHolder = this.dataMapper.map(data);
|
|
1855
|
+
const labelsMapper = new LabelsMapper(
|
|
1856
|
+
this.settings,
|
|
1857
|
+
this.sampleName,
|
|
1858
|
+
this.reference,
|
|
1859
|
+
dataHolder.cnvMaxPercentileAbs
|
|
1860
|
+
);
|
|
1861
|
+
const labelsData = labelsMapper.map(dataHolder.labelData, dataHolder.cnvData);
|
|
1862
|
+
const labelsRing = new Labels(this.settings, labelsData, dataHolder.hasPrioritizedGenes);
|
|
1863
|
+
const chromosomesRing = new Ring(
|
|
1864
|
+
this.settings.rings.chromosomeInnerRadius,
|
|
1865
|
+
this.settings.rings.chromosomeWidth,
|
|
1866
|
+
this.reference.chromosomes
|
|
1867
|
+
);
|
|
1868
|
+
const nonExonicSnvArcsMapper = new NonExonicSnvArcsMapper(
|
|
1869
|
+
dataHolder.nonExonicInnerRadius,
|
|
1870
|
+
this.settings.rings.nonExonicRingWidth,
|
|
1871
|
+
this.sampleName,
|
|
1872
|
+
this.reference
|
|
1873
|
+
);
|
|
1874
|
+
const nonExonicData = nonExonicSnvArcsMapper.map(dataHolder.nonExonicSnvData);
|
|
1875
|
+
if (nonExonicData.length > 0) {
|
|
1876
|
+
this.nonExonicArcRing = new Ring(
|
|
1877
|
+
dataHolder.nonExonicInnerRadius,
|
|
1878
|
+
this.settings.rings.nonExonicRingWidth,
|
|
1879
|
+
nonExonicData
|
|
1880
|
+
);
|
|
1881
|
+
}
|
|
1882
|
+
this.snvArcsMapper = new SnvArcsMapper(
|
|
1883
|
+
dataHolder.snvInnerRadius,
|
|
1884
|
+
this.settings.rings.snvRingWidth,
|
|
1885
|
+
this.sampleName,
|
|
1886
|
+
this.reference
|
|
1887
|
+
);
|
|
1888
|
+
const snvData = this.snvArcsMapper.map(dataHolder.snvRingDataMap);
|
|
1889
|
+
if (snvData.length > 0) {
|
|
1890
|
+
this.snvArcRing = new Ring(dataHolder.snvInnerRadius, this.settings.rings.snvRingWidth, snvData);
|
|
1891
|
+
}
|
|
1892
|
+
const lohMapper = new LohArcMapper(
|
|
1893
|
+
dataHolder.lohInnerRadius,
|
|
1894
|
+
this.settings.rings.lohRingWidth,
|
|
1895
|
+
this.sampleName,
|
|
1896
|
+
this.reference
|
|
1897
|
+
);
|
|
1898
|
+
const lohData = lohMapper.map(dataHolder.lohData);
|
|
1899
|
+
if (lohData.length > 0) {
|
|
1900
|
+
this.lohArcRing = new Ring(dataHolder.lohInnerRadius, this.settings.rings.lohRingWidth, lohData);
|
|
1901
|
+
}
|
|
1902
|
+
this.cnvArcsMapper = new CnvArcsMapper(
|
|
1903
|
+
dataHolder.cnvInnerRadius,
|
|
1904
|
+
this.settings.rings.cnvRingWidth,
|
|
1905
|
+
this.settings,
|
|
1906
|
+
this.sampleName,
|
|
1907
|
+
this.reference,
|
|
1908
|
+
dataHolder.percentilePositive,
|
|
1909
|
+
dataHolder.percentileNegative,
|
|
1910
|
+
dataHolder.cappedCnvMaxAbsValue,
|
|
1911
|
+
dataHolder.cnvMaxPercentileAbs,
|
|
1912
|
+
this.settings.cnv.unit,
|
|
1913
|
+
this.settings.Disco.cnvRenderingType
|
|
1914
|
+
);
|
|
1915
|
+
const cnvData = this.cnvArcsMapper.map(dataHolder.cnvData);
|
|
1916
|
+
if (cnvData.length > 0) {
|
|
1917
|
+
this.cnvArcRing = new Ring(dataHolder.cnvInnerRadius, this.settings.rings.cnvRingWidth, cnvData);
|
|
1918
|
+
}
|
|
1919
|
+
if (this.settings.Disco.mutationWaterfallPlot && dataHolder.mutationWaterfallData?.length && dataHolder.mutationWaterfallInnerRadius !== void 0 && //Added this check to prevent TypeScript error "mutationWaterfallInnerRadius might be undefined"
|
|
1920
|
+
(dataHolder.mutationWaterfallInnerRadius ?? 0) > 0 && dataHolder.mutationWaterfallLogRange) {
|
|
1921
|
+
const mutationWaterfallMapper = new MutationWaterfallMapper(
|
|
1922
|
+
dataHolder.mutationWaterfallInnerRadius,
|
|
1923
|
+
this.settings.rings.mutationWaterfallRingWidth,
|
|
1924
|
+
this.reference,
|
|
1925
|
+
dataHolder.mutationWaterfallLogRange
|
|
1926
|
+
);
|
|
1927
|
+
const waterfallData = mutationWaterfallMapper.map(dataHolder.mutationWaterfallData);
|
|
1928
|
+
if (waterfallData.length > 0) {
|
|
1929
|
+
this.mutationWaterfallRing = new Ring(
|
|
1930
|
+
dataHolder.mutationWaterfallInnerRadius,
|
|
1931
|
+
this.settings.rings.mutationWaterfallRingWidth,
|
|
1932
|
+
waterfallData
|
|
1933
|
+
);
|
|
1934
|
+
}
|
|
1935
|
+
}
|
|
1936
|
+
const fusionMapper = new FusionMapper(dataHolder.fusionRadius, this.sampleName, this.reference);
|
|
1937
|
+
const fusions = fusionMapper.map(dataHolder.fusionData);
|
|
1938
|
+
let lohLegend;
|
|
1939
|
+
if (this.settings.legend.lohLegendEnabled && dataHolder.lohMinValue && dataHolder.lohMaxValue) {
|
|
1940
|
+
lohLegend = new LohLegend(dataHolder.lohMinValue, dataHolder.lohMaxValue);
|
|
1941
|
+
}
|
|
1942
|
+
const legend = new Legend(
|
|
1943
|
+
this.settings.legend.snvTitle,
|
|
1944
|
+
this.settings.legend.cnvTitle,
|
|
1945
|
+
this.settings.legend.lohTitle,
|
|
1946
|
+
this.settings.legend.fusionTitle,
|
|
1947
|
+
this.settings.Disco.cnvPercentile,
|
|
1948
|
+
this.settings.Disco.cnvCutoffMode,
|
|
1949
|
+
this.snvArcsMapper ? this.snvArcsMapper.snvClassMap : /* @__PURE__ */ new Map(),
|
|
1950
|
+
this.cnvArcsMapper ? this.cnvArcsMapper.cnvClassMap : /* @__PURE__ */ new Map(),
|
|
1951
|
+
this.settings.Disco.cnvRenderingType,
|
|
1952
|
+
fusions.length > 0,
|
|
1953
|
+
this.discoInteractions,
|
|
1954
|
+
lohLegend
|
|
1955
|
+
);
|
|
1956
|
+
const rings = new Rings(
|
|
1957
|
+
labelsRing,
|
|
1958
|
+
chromosomesRing,
|
|
1959
|
+
this.nonExonicArcRing,
|
|
1960
|
+
this.snvArcRing,
|
|
1961
|
+
this.cnvArcRing,
|
|
1962
|
+
this.lohArcRing,
|
|
1963
|
+
this.mutationWaterfallRing
|
|
1964
|
+
);
|
|
1965
|
+
return new ViewModel(
|
|
1966
|
+
this.settings,
|
|
1967
|
+
rings,
|
|
1968
|
+
legend,
|
|
1969
|
+
fusions,
|
|
1970
|
+
dataHolder,
|
|
1971
|
+
this.genesetName,
|
|
1972
|
+
data.filter((i) => i.dt == dtsnvindel).length
|
|
1973
|
+
);
|
|
1974
|
+
}
|
|
1975
|
+
};
|
|
1976
|
+
|
|
1977
|
+
// plots/disco/viewmodel/ViewModelMapper.ts
|
|
1978
|
+
var ViewModelMapper = class {
|
|
1979
|
+
static {
|
|
1980
|
+
this.snvClassLayer = {
|
|
1981
|
+
M: "exonic",
|
|
1982
|
+
E: "exonic",
|
|
1983
|
+
F: "exonic",
|
|
1984
|
+
N: "exonic",
|
|
1985
|
+
S: "exonic",
|
|
1986
|
+
D: "exonic",
|
|
1987
|
+
I: "exonic",
|
|
1988
|
+
P: "exonic",
|
|
1989
|
+
L: "exonic",
|
|
1990
|
+
Utr3: "exonic",
|
|
1991
|
+
Utr5: "exonic",
|
|
1992
|
+
ProteinAltering: "exonic",
|
|
1993
|
+
mnv: "non-exonic",
|
|
1994
|
+
ITD: "non-exonic",
|
|
1995
|
+
insertion: "non-exonic",
|
|
1996
|
+
deletion: "non-exonic",
|
|
1997
|
+
Intron: "non-exonic",
|
|
1998
|
+
X: "non-exonic",
|
|
1999
|
+
noncoding: "non-exonic"
|
|
2000
|
+
};
|
|
2001
|
+
}
|
|
2002
|
+
constructor(settings, discoInteractions) {
|
|
2003
|
+
this.settings = JSON.parse(JSON.stringify(settings));
|
|
2004
|
+
this.discoInteractions = discoInteractions;
|
|
2005
|
+
}
|
|
2006
|
+
applyRadius() {
|
|
2007
|
+
const radius = this.settings.Disco.radius;
|
|
2008
|
+
if (!radius) return;
|
|
2009
|
+
const scale = radius / this.settings.rings.labelLinesInnerRadius;
|
|
2010
|
+
this.settings.rings.labelLinesInnerRadius *= scale;
|
|
2011
|
+
this.settings.rings.labelsToLinesDistance *= scale;
|
|
2012
|
+
this.settings.rings.chromosomeInnerRadius *= scale;
|
|
2013
|
+
this.settings.rings.chromosomeWidth *= scale;
|
|
2014
|
+
this.settings.rings.nonExonicRingWidth *= scale;
|
|
2015
|
+
this.settings.rings.snvRingWidth *= scale;
|
|
2016
|
+
this.settings.rings.lohRingWidth *= scale;
|
|
2017
|
+
this.settings.rings.cnvRingWidth *= scale;
|
|
2018
|
+
this.settings.rings.mutationWaterfallRingWidth *= scale;
|
|
2019
|
+
this.settings.label.fontSize *= scale;
|
|
2020
|
+
this.settings.legend.fontSize *= scale;
|
|
2021
|
+
}
|
|
2022
|
+
map(opts) {
|
|
2023
|
+
const chrSizes = opts.args.genome.majorchr;
|
|
2024
|
+
const chromosomesOverride = {};
|
|
2025
|
+
for (const chr of Object.keys(chrSizes)) {
|
|
2026
|
+
if (!this.settings.Disco.hiddenChromosomes.includes(chr)) {
|
|
2027
|
+
chromosomesOverride[chr] = chrSizes[chr];
|
|
2028
|
+
}
|
|
2029
|
+
}
|
|
2030
|
+
const sampleName = opts.args.sampleName;
|
|
2031
|
+
const genome = opts.args.genome;
|
|
2032
|
+
const prioritizedGenes = genome?.geneset?.[0] ? genome.geneset[0].lst : [];
|
|
2033
|
+
const genesetName = genome?.geneset?.[0] ? genome.geneset[0].name : "";
|
|
2034
|
+
const data = opts.args.data;
|
|
2035
|
+
this.applyRadius();
|
|
2036
|
+
const reference = new Reference(this.settings, chrSizes, chromosomesOverride);
|
|
2037
|
+
const dataMapper = new DataMapper(this.settings, reference, sampleName, prioritizedGenes);
|
|
2038
|
+
return new ViewModelProvider(
|
|
2039
|
+
this.settings,
|
|
2040
|
+
dataMapper,
|
|
2041
|
+
reference,
|
|
2042
|
+
sampleName,
|
|
2043
|
+
genesetName,
|
|
2044
|
+
this.discoInteractions
|
|
2045
|
+
).map(data);
|
|
2046
|
+
}
|
|
2047
|
+
};
|
|
2048
|
+
|
|
2049
|
+
// plots/disco/legend/LegendJSONMapper.ts
|
|
2050
|
+
var LegendJSONMapper = class {
|
|
2051
|
+
constructor(cappedCnvMaxAbsValue) {
|
|
2052
|
+
this.cappedCnvMaxAbsValue = cappedCnvMaxAbsValue;
|
|
2053
|
+
}
|
|
2054
|
+
map(legend) {
|
|
2055
|
+
const legendJSON = [];
|
|
2056
|
+
let order = 0;
|
|
2057
|
+
if (legend.snvClassMap) {
|
|
2058
|
+
this.mapSnv(legend, legendJSON, order++);
|
|
2059
|
+
}
|
|
2060
|
+
if (legend.cnvRenderingType == "heatmap" /* heatmap */) {
|
|
2061
|
+
this.mapCnvHeatmap(legend, legendJSON, order++);
|
|
2062
|
+
} else if (legend.cnvRenderingType == "bar" /* bar */) {
|
|
2063
|
+
if (legend.cnvClassMap) {
|
|
2064
|
+
this.mapCnvBar(legend, legendJSON, order++);
|
|
2065
|
+
}
|
|
2066
|
+
}
|
|
2067
|
+
if (legend.lohLegend) {
|
|
2068
|
+
this.mapLoh(legend, legendJSON, order++);
|
|
2069
|
+
}
|
|
2070
|
+
if (legend.fusionLegend) {
|
|
2071
|
+
this.mapFusion(legend, legendJSON, order++);
|
|
2072
|
+
}
|
|
2073
|
+
return legendJSON;
|
|
2074
|
+
}
|
|
2075
|
+
mapSnv(legend, legendJSON, order) {
|
|
2076
|
+
const snvItems = [];
|
|
2077
|
+
let snvOrder = 0;
|
|
2078
|
+
for (const [snvKey, snvLegendElement] of legend.snvClassMap) {
|
|
2079
|
+
snvItems.push({
|
|
2080
|
+
termid: legend.snvTitle,
|
|
2081
|
+
key: snvKey,
|
|
2082
|
+
text: `${snvLegendElement.snvType} (${snvLegendElement.count})`,
|
|
2083
|
+
color: snvLegendElement.color,
|
|
2084
|
+
order: snvOrder++,
|
|
2085
|
+
border: "1px solid #ccc"
|
|
2086
|
+
});
|
|
2087
|
+
}
|
|
2088
|
+
legendJSON.push({
|
|
2089
|
+
name: legend.snvTitle,
|
|
2090
|
+
order,
|
|
2091
|
+
items: snvItems
|
|
2092
|
+
});
|
|
2093
|
+
}
|
|
2094
|
+
mapCnvBar(legend, legendJSON, order) {
|
|
2095
|
+
if (!legend.cnvClassMap) return;
|
|
2096
|
+
const gain = legend.cnvClassMap.get(1 /* Gain */);
|
|
2097
|
+
const loss = legend.cnvClassMap.get(0 /* Loss */);
|
|
2098
|
+
const cap = legend.cnvClassMap.get(2 /* Cap */);
|
|
2099
|
+
if (gain && loss && cap) {
|
|
2100
|
+
let cnvOrder = 0;
|
|
2101
|
+
const cnvItems = [];
|
|
2102
|
+
if (gain.value > 0) {
|
|
2103
|
+
cnvItems.push({
|
|
2104
|
+
termid: legend.cnvTitle,
|
|
2105
|
+
key: 1 /* Gain */,
|
|
2106
|
+
text: `Max: ${gain.value}`,
|
|
2107
|
+
color: gain.color,
|
|
2108
|
+
order: cnvOrder++,
|
|
2109
|
+
border: "1px solid #ccc"
|
|
2110
|
+
});
|
|
2111
|
+
}
|
|
2112
|
+
if (loss.value < 0) {
|
|
2113
|
+
cnvItems.push({
|
|
2114
|
+
termid: legend.cnvTitle,
|
|
2115
|
+
key: 0 /* Loss */,
|
|
2116
|
+
text: `Min: ${loss.value}`,
|
|
2117
|
+
color: loss.color,
|
|
2118
|
+
order: cnvOrder++,
|
|
2119
|
+
border: "1px solid #ccc"
|
|
2120
|
+
});
|
|
2121
|
+
}
|
|
2122
|
+
cnvItems.push({
|
|
2123
|
+
termid: legend.cnvTitle,
|
|
2124
|
+
key: 2 /* Cap */,
|
|
2125
|
+
text: `Capping: ${cap.value}`,
|
|
2126
|
+
color: cap.color,
|
|
2127
|
+
order: cnvOrder++,
|
|
2128
|
+
border: "1px solid #ccc"
|
|
2129
|
+
// ,
|
|
2130
|
+
// onClickCallback: this.onClickCallback
|
|
2131
|
+
});
|
|
2132
|
+
legendJSON.push({
|
|
2133
|
+
name: legend.cnvTitle,
|
|
2134
|
+
id: "sjpp-disco-cnv-legend",
|
|
2135
|
+
order,
|
|
2136
|
+
items: cnvItems
|
|
2137
|
+
});
|
|
2138
|
+
}
|
|
2139
|
+
}
|
|
2140
|
+
mapCnvHeatmap(legend, legendJSON, order) {
|
|
2141
|
+
if (!legend.cnvClassMap) return;
|
|
2142
|
+
const gain = legend.cnvClassMap.get(1 /* Gain */);
|
|
2143
|
+
const loss = legend.cnvClassMap.get(0 /* Loss */);
|
|
2144
|
+
const cap = legend.cnvClassMap.get(2 /* Cap */);
|
|
2145
|
+
if (gain && loss && cap) {
|
|
2146
|
+
let cnvOrder = 0;
|
|
2147
|
+
const cnvItems = [];
|
|
2148
|
+
const base = {
|
|
2149
|
+
termid: legend.cnvTitle,
|
|
2150
|
+
width: 100,
|
|
2151
|
+
order: cnvOrder++,
|
|
2152
|
+
isLegendItem: true,
|
|
2153
|
+
dt: 4
|
|
2154
|
+
};
|
|
2155
|
+
if (gain.value > 0 && loss.value < 0) {
|
|
2156
|
+
const maxValue = Math.max(Math.abs(loss.value), gain.value);
|
|
2157
|
+
const domain = [-maxValue, 0, maxValue];
|
|
2158
|
+
cnvItems.push(
|
|
2159
|
+
Object.assign(
|
|
2160
|
+
{
|
|
2161
|
+
key: 3 /* LossGain */,
|
|
2162
|
+
domain,
|
|
2163
|
+
scale: linear([-1, 0, 1], [loss.color, "white", gain.color]),
|
|
2164
|
+
labels: { left: "Loss", right: "Gain" },
|
|
2165
|
+
numericInputs: {
|
|
2166
|
+
cutoffMode: legend.cnvCutoffMode,
|
|
2167
|
+
defaultPercentile: legend.cnvPercentile,
|
|
2168
|
+
callback: (obj) => legend.discoInteractions.colorScaleNumericInputsCallback(obj)
|
|
2169
|
+
}
|
|
2170
|
+
},
|
|
2171
|
+
base
|
|
2172
|
+
)
|
|
2173
|
+
);
|
|
2174
|
+
} else {
|
|
2175
|
+
if (gain.value > 0) {
|
|
2176
|
+
cnvItems.push(
|
|
2177
|
+
Object.assign(
|
|
2178
|
+
{
|
|
2179
|
+
key: 1 /* Gain */,
|
|
2180
|
+
text: "Copy number gain",
|
|
2181
|
+
domain: [0, gain.value],
|
|
2182
|
+
scale: linear([0, 1], ["white", gain.color])
|
|
2183
|
+
},
|
|
2184
|
+
base
|
|
2185
|
+
)
|
|
2186
|
+
);
|
|
2187
|
+
}
|
|
2188
|
+
if (loss.value < 0) {
|
|
2189
|
+
cnvItems.push(
|
|
2190
|
+
Object.assign(
|
|
2191
|
+
{
|
|
2192
|
+
key: 0 /* Loss */,
|
|
2193
|
+
text: "Copy number loss",
|
|
2194
|
+
domain: [loss.value, 0],
|
|
2195
|
+
scale: linear([0, 1], [loss.color, "white"])
|
|
2196
|
+
},
|
|
2197
|
+
base
|
|
2198
|
+
)
|
|
2199
|
+
);
|
|
2200
|
+
}
|
|
2201
|
+
}
|
|
2202
|
+
legendJSON.push({
|
|
2203
|
+
name: legend.cnvTitle,
|
|
2204
|
+
order,
|
|
2205
|
+
id: "sjpp-disco-cnv-legend",
|
|
2206
|
+
items: cnvItems
|
|
2207
|
+
});
|
|
2208
|
+
}
|
|
2209
|
+
}
|
|
2210
|
+
mapLoh(legend, legendJSON, order) {
|
|
2211
|
+
if (!legend.lohLegend) return;
|
|
2212
|
+
const lohItems = [];
|
|
2213
|
+
lohItems.push({
|
|
2214
|
+
termid: legend.lohTitle,
|
|
2215
|
+
key: "min",
|
|
2216
|
+
text: "min",
|
|
2217
|
+
color: legend.lohLegend.colorStartValue,
|
|
2218
|
+
order: 0,
|
|
2219
|
+
border: "1px solid #ccc"
|
|
2220
|
+
});
|
|
2221
|
+
lohItems.push({
|
|
2222
|
+
termid: legend.lohTitle,
|
|
2223
|
+
key: "max",
|
|
2224
|
+
text: "max",
|
|
2225
|
+
color: legend.lohLegend.colorEndValue,
|
|
2226
|
+
order: 1,
|
|
2227
|
+
border: "1px solid #ccc"
|
|
2228
|
+
});
|
|
2229
|
+
legendJSON.push({
|
|
2230
|
+
name: legend.lohTitle,
|
|
2231
|
+
order,
|
|
2232
|
+
items: lohItems
|
|
2233
|
+
});
|
|
2234
|
+
}
|
|
2235
|
+
mapFusion(legend, legendJSON, order) {
|
|
2236
|
+
const fusionItems = [];
|
|
2237
|
+
fusionItems.push({
|
|
2238
|
+
termid: legend.fusionTitle,
|
|
2239
|
+
key: "#6A3D9A" /* Interchromosomal */,
|
|
2240
|
+
text: "Interchromosomal",
|
|
2241
|
+
color: "#6A3D9A" /* Interchromosomal */.valueOf(),
|
|
2242
|
+
order: 0,
|
|
2243
|
+
border: "1px solid #ccc"
|
|
2244
|
+
});
|
|
2245
|
+
fusionItems.push({
|
|
2246
|
+
termid: legend.fusionTitle,
|
|
2247
|
+
key: "#1B9E77" /* Intrachromosomal */,
|
|
2248
|
+
text: "Intrachromosomal",
|
|
2249
|
+
color: "#1B9E77" /* Intrachromosomal */.valueOf(),
|
|
2250
|
+
order: 1,
|
|
2251
|
+
border: "1px solid #ccc"
|
|
2252
|
+
});
|
|
2253
|
+
legendJSON.push({
|
|
2254
|
+
name: legend.fusionTitle,
|
|
2255
|
+
order,
|
|
2256
|
+
items: fusionItems
|
|
2257
|
+
});
|
|
2258
|
+
}
|
|
2259
|
+
};
|
|
2260
|
+
|
|
2261
|
+
// plots/disco/cnv/renderCnvSourceLegend.ts
|
|
2262
|
+
function parseSetLabel(set, index) {
|
|
2263
|
+
let text = set.name || `Set ${index + 1}`;
|
|
2264
|
+
let href;
|
|
2265
|
+
let target = "_blank";
|
|
2266
|
+
if (set.nameHtml) {
|
|
2267
|
+
const parser = new DOMParser();
|
|
2268
|
+
const doc = parser.parseFromString(set.nameHtml, "text/html");
|
|
2269
|
+
const anchor = doc.querySelector("a");
|
|
2270
|
+
if (anchor) {
|
|
2271
|
+
href = anchor.getAttribute("href") || void 0;
|
|
2272
|
+
target = anchor.getAttribute("target") || "_blank";
|
|
2273
|
+
text = anchor.textContent?.trim() || text;
|
|
2274
|
+
} else {
|
|
2275
|
+
text = doc.body.textContent?.trim() || text;
|
|
2276
|
+
}
|
|
2277
|
+
}
|
|
2278
|
+
return { text, href, target };
|
|
2279
|
+
}
|
|
2280
|
+
function renderCnvSourceLegend(legendG, datasets, fontSize, onChange) {
|
|
2281
|
+
let isOpen = false;
|
|
2282
|
+
if (!legendG || legendG.empty()) throw new Error("legendG is required");
|
|
2283
|
+
if (!datasets || datasets.length === 0) throw new Error("at least one dataset is required");
|
|
2284
|
+
legendG.select("g.sjpp-cnv-source").remove();
|
|
2285
|
+
const gBBox = legendG.node().getBBox();
|
|
2286
|
+
const cnvSrcWrapper = legendG.append("g").attr("class", "sjpp-cnv-source").attr("transform", `translate(${gBBox.width},${gBBox.y + fontSize})`);
|
|
2287
|
+
const btnPaddingX = Math.round(fontSize * 0.8);
|
|
2288
|
+
const btnHgt = Math.round(fontSize * 1.8);
|
|
2289
|
+
const btnWrapper = cnvSrcWrapper.append("g").attr("transform", `translate(${fontSize},${-btnHgt / 2})`).style("cursor", "pointer").on("click", function(event) {
|
|
2290
|
+
event.stopPropagation();
|
|
2291
|
+
showCnvMenu(this);
|
|
2292
|
+
});
|
|
2293
|
+
const btnText = btnWrapper.append("text").attr("x", 0).attr("y", btnHgt / 2).attr("font-size", fontSize).attr("text-anchor", "start").attr("dominant-baseline", "middle").text("Select source \u25B2".toUpperCase());
|
|
2294
|
+
const textW = btnText.node() ? Math.ceil(btnText.node().getBBox().width) : 0;
|
|
2295
|
+
const btnWdt = textW + btnPaddingX * 2;
|
|
2296
|
+
btnWrapper.insert("rect", ":first-child").attr("width", btnWdt).attr("height", btnHgt).attr("rx", 10).attr("ry", 10).style("fill", "#f2f2f2");
|
|
2297
|
+
btnText.attr("x", btnWdt / 2).attr("text-anchor", "middle");
|
|
2298
|
+
const cnvMenu = new Menu({
|
|
2299
|
+
onHide: () => {
|
|
2300
|
+
isOpen = !isOpen;
|
|
2301
|
+
btnText.text(isOpen ? "Select source \u25BC".toUpperCase() : "Select source \u25B2".toUpperCase());
|
|
2302
|
+
}
|
|
2303
|
+
});
|
|
2304
|
+
function showCnvMenu(dom) {
|
|
2305
|
+
cnvMenu.clear().showunder(dom);
|
|
2306
|
+
cnvMenu.d.append("div").text("Choose data source for CNV:").style("margin", "5px 5px 0 5px");
|
|
2307
|
+
const tableHolder = cnvMenu.d.append("div").style("padding", "5px");
|
|
2308
|
+
const { columns, rows } = buildTableData(datasets);
|
|
2309
|
+
const [, activeIndex] = getActiveDataset(datasets);
|
|
2310
|
+
renderTable({
|
|
2311
|
+
columns,
|
|
2312
|
+
rows,
|
|
2313
|
+
div: tableHolder,
|
|
2314
|
+
singleMode: true,
|
|
2315
|
+
maxWidth: "70vw",
|
|
2316
|
+
maxHeight: "60vh",
|
|
2317
|
+
selectedRows: [activeIndex],
|
|
2318
|
+
header: { allowSort: false },
|
|
2319
|
+
noButtonCallback: (rowIndex, node) => {
|
|
2320
|
+
const inputIndex = Number(node?.value);
|
|
2321
|
+
const selectedIndex = Number.isNaN(inputIndex) ? rowIndex : inputIndex;
|
|
2322
|
+
if (!Number.isNaN(selectedIndex)) onChange(selectedIndex);
|
|
2323
|
+
cnvMenu.hide();
|
|
2324
|
+
}
|
|
2325
|
+
});
|
|
2326
|
+
}
|
|
2327
|
+
}
|
|
2328
|
+
function getActiveDataset(datasets) {
|
|
2329
|
+
let currentIndex = datasets.findIndex((d) => d.inuse);
|
|
2330
|
+
if (currentIndex == -1) currentIndex = 0;
|
|
2331
|
+
return [datasets[currentIndex], currentIndex];
|
|
2332
|
+
}
|
|
2333
|
+
function buildTableData(datasets) {
|
|
2334
|
+
const attrKeys = [];
|
|
2335
|
+
for (const set of datasets) {
|
|
2336
|
+
if (!set.attrs) continue;
|
|
2337
|
+
for (const key of Object.keys(set.attrs)) {
|
|
2338
|
+
if (!attrKeys.includes(key)) attrKeys.push(key);
|
|
2339
|
+
}
|
|
2340
|
+
}
|
|
2341
|
+
const columns = [{ label: "Source" }];
|
|
2342
|
+
for (const key of attrKeys) columns.push({ label: key });
|
|
2343
|
+
const rows = datasets.map((set, index) => {
|
|
2344
|
+
const sourceInfo = parseSetLabel(set, index);
|
|
2345
|
+
const cells = [];
|
|
2346
|
+
if (set.nameHtml) cells.push({ html: set.nameHtml });
|
|
2347
|
+
else if (sourceInfo.href) cells.push({ value: sourceInfo.text, url: sourceInfo.href });
|
|
2348
|
+
else cells.push({ value: sourceInfo.text });
|
|
2349
|
+
for (const key of attrKeys) {
|
|
2350
|
+
const value = set.attrs?.[key];
|
|
2351
|
+
cells.push({ value: value ?? "" });
|
|
2352
|
+
}
|
|
2353
|
+
return cells;
|
|
2354
|
+
});
|
|
2355
|
+
return { columns, rows };
|
|
2356
|
+
}
|
|
2357
|
+
|
|
2358
|
+
// plots/disco/legend/LegendRenderer.ts
|
|
2359
|
+
var LegendRenderer = class {
|
|
2360
|
+
constructor(cappedCnvMaxAbsValue = 0, fontSize) {
|
|
2361
|
+
this.fontSize = fontSize;
|
|
2362
|
+
this.legendJSONMapper = new LegendJSONMapper(cappedCnvMaxAbsValue);
|
|
2363
|
+
}
|
|
2364
|
+
render(holder, legend, xOffset, svgw, svgh, viewModel, onCnvSourceSelect) {
|
|
2365
|
+
const svgLegendRenderer = svgLegend({
|
|
2366
|
+
holder: holder.append("g").attr("data-testid", "sjpp_disco_plot_legend"),
|
|
2367
|
+
rectFillFxn: (d2) => d2.color,
|
|
2368
|
+
iconStroke: "#aaa"
|
|
2369
|
+
});
|
|
2370
|
+
const d = {
|
|
2371
|
+
xOffset
|
|
2372
|
+
};
|
|
2373
|
+
const data = this.legendJSONMapper.map(legend);
|
|
2374
|
+
svgLegendRenderer(data, {
|
|
2375
|
+
settings: Object.assign(
|
|
2376
|
+
{},
|
|
2377
|
+
{
|
|
2378
|
+
svgw,
|
|
2379
|
+
svgh,
|
|
2380
|
+
dimensions: d,
|
|
2381
|
+
fontsize: this.fontSize
|
|
2382
|
+
}
|
|
2383
|
+
)
|
|
2384
|
+
});
|
|
2385
|
+
const altCnv = viewModel.appState.args.alternativeDataByDt?.[dtcnv];
|
|
2386
|
+
if (altCnv && altCnv.length > 0) {
|
|
2387
|
+
const legendG = holder.select('g[data-testid="sjpp_disco_plot_legend"]');
|
|
2388
|
+
const cnvLegendG = legendG.select("#sjpp-disco-cnv-legend");
|
|
2389
|
+
if (!legendG.empty()) {
|
|
2390
|
+
const add2G = cnvLegendG.empty() ? legendG : cnvLegendG;
|
|
2391
|
+
renderCnvSourceLegend(add2G, altCnv, this.fontSize, onCnvSourceSelect);
|
|
2392
|
+
}
|
|
2393
|
+
}
|
|
2394
|
+
}
|
|
2395
|
+
};
|
|
2396
|
+
|
|
2397
|
+
// plots/disco/chromosome/ChromosomesRenderer.ts
|
|
2398
|
+
var ChromosomesRenderer = class {
|
|
2399
|
+
constructor(padAngle, innerRadius, outerRadius, fontSize) {
|
|
2400
|
+
this.padAngle = padAngle;
|
|
2401
|
+
this.innerRadius = innerRadius;
|
|
2402
|
+
this.outerRadius = outerRadius;
|
|
2403
|
+
this.fontSize = fontSize;
|
|
2404
|
+
}
|
|
2405
|
+
render(holder, elements) {
|
|
2406
|
+
const pie = pie_default().padAngle(this.padAngle).value((d) => d.size).sort(null);
|
|
2407
|
+
const arcData = pie(elements);
|
|
2408
|
+
const arc = arc_default().innerRadius(this.innerRadius).outerRadius(this.outerRadius);
|
|
2409
|
+
const arcs = holder.append("g").attr("data-testid", "sjpp_chromosomes_arc_group");
|
|
2410
|
+
const menu = MenuProvider.create();
|
|
2411
|
+
arcs.selectAll("path").data(arcData).enter().append("path").attr("d", arc).attr("fill", "black").on("mousemove", (event, d) => {
|
|
2412
|
+
const [x, y] = pointer_default(event, arcs.node());
|
|
2413
|
+
let angle = Math.atan2(y, x) + Math.PI / 2;
|
|
2414
|
+
if (angle < 0) angle += 2 * Math.PI;
|
|
2415
|
+
const frac = Math.max(0, Math.min(1, (angle - d.data.startAngle) / (d.data.endAngle - d.data.startAngle)));
|
|
2416
|
+
const pos = Math.round(frac * d.data.size);
|
|
2417
|
+
menu.d.html(`<span style="font-size:.8em">chr${d.data.text}</span> ${bplen(pos)}`).style("padding", "5px");
|
|
2418
|
+
menu.show(event.x, event.y);
|
|
2419
|
+
}).on("mouseenter", (event) => {
|
|
2420
|
+
select_default(event.currentTarget).attr("stroke", "orange").attr("stroke-width", 1);
|
|
2421
|
+
}).on("mouseleave", (event) => {
|
|
2422
|
+
select_default(event.currentTarget).attr("stroke", null).attr("stroke-width", null);
|
|
2423
|
+
menu.hide();
|
|
2424
|
+
});
|
|
2425
|
+
arcs.selectAll("text").data(arcData).enter().append("text").attr("transform", (d) => {
|
|
2426
|
+
return `translate(${arc.centroid(d)}) rotate(${d.data.angle * 180 / Math.PI - 90})${d.data.angle > Math.PI ? "rotate(180)" : ""}`;
|
|
2427
|
+
}).attr("dy", "0.35em").attr("text-anchor", "middle").text((d) => d.data.text).style("fill", "white").style("font-size", `${this.fontSize}px`).style("padding", "500px").style("pointer-events", "none").style("padding", "500px");
|
|
2428
|
+
}
|
|
2429
|
+
};
|
|
2430
|
+
|
|
2431
|
+
// plots/disco/label/LabelsRenderer.ts
|
|
2432
|
+
var LabelsRenderer = class {
|
|
2433
|
+
constructor(animationDuration, fontSize, geneClickListener) {
|
|
2434
|
+
this.animationDuration = animationDuration;
|
|
2435
|
+
this.fontSize = fontSize;
|
|
2436
|
+
this.geneClickListener = geneClickListener;
|
|
2437
|
+
}
|
|
2438
|
+
render(holder, elements, collisions) {
|
|
2439
|
+
const labelsG = holder.append("g");
|
|
2440
|
+
const lineFunction = line_default().x((point) => point.x).y((point) => point.y);
|
|
2441
|
+
const menu = MenuProvider.create();
|
|
2442
|
+
labelsG.selectAll(".group").data(elements).enter().append("g").attr("class", "group").each((label, i, nodes) => {
|
|
2443
|
+
const g = select_default(nodes[i]);
|
|
2444
|
+
g.append("text").attr("class", "chord-text").attr("dy", ".35em").attr("transform", label.transform).style("text-anchor", label.textAnchor).style("font-size", `${this.fontSize}px`).style("fill", label.color).style("cursor", "pointer").text(label.text).on("click", () => {
|
|
2445
|
+
if (label.mutationsTooltip) {
|
|
2446
|
+
this.geneClickListener(
|
|
2447
|
+
label.text,
|
|
2448
|
+
label.mutationsTooltip.map((value) => value.mname)
|
|
2449
|
+
);
|
|
2450
|
+
}
|
|
2451
|
+
}).on("mouseover", (mouseEvent) => {
|
|
2452
|
+
const table = table2col({ holder: menu.d });
|
|
2453
|
+
this.createTooltip(table, label);
|
|
2454
|
+
menu.show(mouseEvent.x, mouseEvent.y);
|
|
2455
|
+
}).on("mouseout", () => {
|
|
2456
|
+
menu.clear();
|
|
2457
|
+
menu.hide();
|
|
2458
|
+
});
|
|
2459
|
+
g.append("path").attr("class", "chord-tick").datum(label.line.points).style("stroke", label.color).style("fill", "none").attr("d", lineFunction);
|
|
2460
|
+
});
|
|
2461
|
+
labelsG.selectAll(".group").each((label, i, nodes) => {
|
|
2462
|
+
const collision = collisions ? collisions.find((l) => l.text === label.text) : void 0;
|
|
2463
|
+
if (collision) {
|
|
2464
|
+
const g = select_default(nodes[i]);
|
|
2465
|
+
g.selectAll(".chord-text").datum(collision).transition().duration(this.animationDuration).attr("transform", collision.transform).style("text-anchor", collision.textAnchor);
|
|
2466
|
+
g.selectAll(".chord-tick").datum(collision.line.points).transition().duration(this.animationDuration).style("fill", "none").attr("d", lineFunction);
|
|
2467
|
+
}
|
|
2468
|
+
});
|
|
2469
|
+
}
|
|
2470
|
+
createTooltip(table, label) {
|
|
2471
|
+
if (label.mutationsTooltip) {
|
|
2472
|
+
const [td1, td2] = table.addRow();
|
|
2473
|
+
td1.text("Gene");
|
|
2474
|
+
td2.append("span").style("margin-left", "5px").text(label.text);
|
|
2475
|
+
label.mutationsTooltip.forEach((mutation) => {
|
|
2476
|
+
{
|
|
2477
|
+
const [td12, td22] = table.addRow();
|
|
2478
|
+
td12.text("Mutation");
|
|
2479
|
+
td22.append("span").style("margin-left", "5px").text(mutation.mname).append("span").style("margin-left", "5px").style("color", mutation.color).text(`${mutation.dataClass}`).append("span").style("margin-left", "5px").style("color", "black").style("font-size", "0.8em").text(` ${mutation.chr}:${mutation.position}`);
|
|
2480
|
+
}
|
|
2481
|
+
});
|
|
2482
|
+
}
|
|
2483
|
+
if (label.fusionTooltip) {
|
|
2484
|
+
const [td1, td2] = table.addRow();
|
|
2485
|
+
td1.text("Data type");
|
|
2486
|
+
td2.append("span").text("Fusion transcript");
|
|
2487
|
+
label.fusionTooltip.forEach((fusionTooltip) => {
|
|
2488
|
+
const [td12, td22] = table.addRow();
|
|
2489
|
+
td12.text("Position");
|
|
2490
|
+
td22.append("span").text(
|
|
2491
|
+
` ${fusionTooltip.geneA ? fusionTooltip.geneA : "?"} ${fusionTooltip.chrA}:${fusionTooltip.posA}
|
|
2492
|
+
${fusionTooltip.strandA == "+" ? "forward" : "reverse"} > ${fusionTooltip.geneB ? fusionTooltip.geneB : "?"} ${fusionTooltip.chrB}:${fusionTooltip.posB} ${fusionTooltip.strandB == "+" ? "forward" : "reverse"} `
|
|
2493
|
+
);
|
|
2494
|
+
});
|
|
2495
|
+
}
|
|
2496
|
+
if (label.cnvTooltip) {
|
|
2497
|
+
label.cnvTooltip.forEach((cnv) => {
|
|
2498
|
+
const [td1, td2] = table.addRow();
|
|
2499
|
+
td1.text("CNV");
|
|
2500
|
+
td2.append("span").style("margin-left", "5px").style("background-color", cnv.color).html(" ");
|
|
2501
|
+
td2.append("span").style("margin-left", "7.5px").text(cnv.value).append("span").style("margin-left", "7.5px").style("font-size", "0.8em").text(`${cnv.chr}:${cnv.start}-${cnv.stop}`);
|
|
2502
|
+
});
|
|
2503
|
+
}
|
|
2504
|
+
}
|
|
2505
|
+
};
|
|
2506
|
+
|
|
2507
|
+
// plots/disco/defaults.ts
|
|
2508
|
+
function discoDefaults(overrides = {}, app) {
|
|
2509
|
+
const hiddenChromosomes = [];
|
|
2510
|
+
if (app?.vocabApi?.termdbConfig?.queries?.singleSampleMutation?.discoPlot?.skipChrM) {
|
|
2511
|
+
hiddenChromosomes.push("chrM");
|
|
2512
|
+
}
|
|
2513
|
+
const defaults = {
|
|
2514
|
+
downloadImgName: "disco.plot",
|
|
2515
|
+
Disco: {
|
|
2516
|
+
centerText: null,
|
|
2517
|
+
cnvCapping: 5,
|
|
2518
|
+
isOpen: false,
|
|
2519
|
+
prioritizeGeneLabelsByGeneSets: false,
|
|
2520
|
+
showPrioritizeGeneLabelsByGeneSets: false,
|
|
2521
|
+
mutationWaterfallPlot: false,
|
|
2522
|
+
cnvRenderingType: "heatmap" /* heatmap */,
|
|
2523
|
+
cnvPercentile: 90,
|
|
2524
|
+
// 90th percentile for removing outliers
|
|
2525
|
+
cnvCutoffMode: "percentile",
|
|
2526
|
+
radius: 300,
|
|
2527
|
+
fusionOpacity: 1,
|
|
2528
|
+
hiddenChromosomes
|
|
2529
|
+
},
|
|
2530
|
+
rings: {
|
|
2531
|
+
nonExonicRingWidth: 20,
|
|
2532
|
+
snvRingWidth: 20,
|
|
2533
|
+
lohRingWidth: 20,
|
|
2534
|
+
cnvRingWidth: 30,
|
|
2535
|
+
mutationWaterfallRingWidth: 35,
|
|
2536
|
+
snvRingFilters: ["exonic"],
|
|
2537
|
+
chromosomeInnerRadius: 190,
|
|
2538
|
+
chromosomeWidth: 20,
|
|
2539
|
+
labelLinesInnerRadius: 210,
|
|
2540
|
+
labelsToLinesDistance: 30,
|
|
2541
|
+
labelsToLinesGap: 2,
|
|
2542
|
+
nonExonicRingEnabled: true,
|
|
2543
|
+
nonExonicFilterValues: ["non-exonic"]
|
|
2544
|
+
},
|
|
2545
|
+
verticalPadding: 70,
|
|
2546
|
+
horizontalPadding: 500,
|
|
2547
|
+
layerScaler: 1,
|
|
2548
|
+
padAngle: 2e-3,
|
|
2549
|
+
//0.01, //0.04,
|
|
2550
|
+
label: {
|
|
2551
|
+
fontSize: 12,
|
|
2552
|
+
maxDeltaAngle: 0.05,
|
|
2553
|
+
animationDuration: 1e3,
|
|
2554
|
+
overlapAngleFactor: 5
|
|
2555
|
+
// 5 is set by testing, because label height is not known before rendering
|
|
2556
|
+
},
|
|
2557
|
+
cnv: {
|
|
2558
|
+
capping: 5,
|
|
2559
|
+
percentile: 80,
|
|
2560
|
+
ampColor: "#D6683C",
|
|
2561
|
+
lossColor: "#67a9cf",
|
|
2562
|
+
cappedAmpColor: "#8B0000",
|
|
2563
|
+
cappedLossColor: "#00008B",
|
|
2564
|
+
unit: "Unit"
|
|
2565
|
+
},
|
|
2566
|
+
snv: {
|
|
2567
|
+
maxMutationCount: 1e4
|
|
2568
|
+
},
|
|
2569
|
+
legend: {
|
|
2570
|
+
snvTitle: "SNV",
|
|
2571
|
+
cnvTitle: "CNV",
|
|
2572
|
+
lohTitle: "LOH",
|
|
2573
|
+
fusionTitle: "SV",
|
|
2574
|
+
// Structural Variants (color by co-location)
|
|
2575
|
+
lohLegendEnabled: true,
|
|
2576
|
+
fontSize: 12,
|
|
2577
|
+
rowHeight: 48
|
|
2578
|
+
},
|
|
2579
|
+
menu: {
|
|
2580
|
+
padding: 5
|
|
2581
|
+
}
|
|
2582
|
+
};
|
|
2583
|
+
if (overrides?.Disco?.radius > 1e3 || overrides?.Disco?.radius < 300) {
|
|
2584
|
+
console.log(`${overrides?.Disco?.radius} is greater or lower than the min and max for the radius`);
|
|
2585
|
+
}
|
|
2586
|
+
return copyMerge(defaults, overrides);
|
|
2587
|
+
}
|
|
2588
|
+
|
|
2589
|
+
// plots/disco/snv/NonExonicSnvRenderer.ts
|
|
2590
|
+
var NonExonicSnvRenderer = class {
|
|
2591
|
+
constructor(geneClickListener) {
|
|
2592
|
+
this.geneClickListener = geneClickListener;
|
|
2593
|
+
}
|
|
2594
|
+
render(holder, elements) {
|
|
2595
|
+
const arcGenerator = arc_default();
|
|
2596
|
+
const arcs = holder.append("g");
|
|
2597
|
+
const menu = MenuProvider.create();
|
|
2598
|
+
arcs.selectAll("path").data(elements).enter().append("path").attr("d", (d) => arcGenerator(d)).attr("fill", (d) => d.color).on("mouseover", (mouseEvent, arc) => {
|
|
2599
|
+
const table = table2col({ holder: menu.d });
|
|
2600
|
+
const snv = structuredClone(arc);
|
|
2601
|
+
snv.dt = dtsnvindel;
|
|
2602
|
+
snv.class = arc.dataClass;
|
|
2603
|
+
snv.gene = snv.text;
|
|
2604
|
+
{
|
|
2605
|
+
const [td1, td2] = table.addRow();
|
|
2606
|
+
td1.text("Consequence");
|
|
2607
|
+
td2.append("span").text(snv.mname);
|
|
2608
|
+
td2.append("span").style("margin-left", "5px").style("color", snv.color).style("font-size", ".8em").text(snv.dataClass);
|
|
2609
|
+
}
|
|
2610
|
+
{
|
|
2611
|
+
const [td1, td2] = table.addRow();
|
|
2612
|
+
td1.text(snv.ref && snv.alt ? "Mutation" : "Position");
|
|
2613
|
+
td2.append("span").text(`${snv.chr}:${snv.pos + 1} ${snv.ref && snv.alt ? snv.ref + ">" + snv.alt : ""}`);
|
|
2614
|
+
}
|
|
2615
|
+
if (snv.gene) {
|
|
2616
|
+
const [td1, td2] = table.addRow();
|
|
2617
|
+
td1.text("Gene");
|
|
2618
|
+
td2.text(snv.gene);
|
|
2619
|
+
}
|
|
2620
|
+
if (snv.occurrence > 1) {
|
|
2621
|
+
const [td1, td2] = table.addRow();
|
|
2622
|
+
td1.text("Occurrence");
|
|
2623
|
+
td2.text(snv.occurrence);
|
|
2624
|
+
}
|
|
2625
|
+
menu.show(mouseEvent.x, mouseEvent.y);
|
|
2626
|
+
}).on("mouseout", () => {
|
|
2627
|
+
menu.clear();
|
|
2628
|
+
menu.hide();
|
|
2629
|
+
}).on("click", (mouseEvent, arc) => {
|
|
2630
|
+
this.geneClickListener(arc.text, [arc.mname]);
|
|
2631
|
+
});
|
|
2632
|
+
}
|
|
2633
|
+
};
|
|
2634
|
+
|
|
2635
|
+
// plots/disco/snv/SnvRenderer.ts
|
|
2636
|
+
var SnvRenderer = class {
|
|
2637
|
+
constructor(svnWidth, geneClickListener) {
|
|
2638
|
+
this.svnWidth = svnWidth;
|
|
2639
|
+
this.geneClickListener = geneClickListener;
|
|
2640
|
+
}
|
|
2641
|
+
render(holder, elements) {
|
|
2642
|
+
if (elements.length > 0) {
|
|
2643
|
+
const svnInnerRadius = elements[0].innerRadius;
|
|
2644
|
+
const fullArcRenderer = new FullArcRenderer(svnInnerRadius, this.svnWidth, "#6464641A");
|
|
2645
|
+
fullArcRenderer.render(holder);
|
|
2646
|
+
}
|
|
2647
|
+
const arcGenerator = arc_default();
|
|
2648
|
+
const arcs = holder.append("g");
|
|
2649
|
+
const menu = MenuProvider.create();
|
|
2650
|
+
arcs.selectAll("path").data(elements).enter().append("path").attr("d", (d) => arcGenerator(d)).attr("fill", (d) => d.color).on("mouseover", (mouseEvent, arc) => {
|
|
2651
|
+
const table = table2col({ holder: menu.d });
|
|
2652
|
+
const snv = structuredClone(arc);
|
|
2653
|
+
snv.dt = dtsnvindel;
|
|
2654
|
+
snv.class = arc.dataClass;
|
|
2655
|
+
snv.gene = snv.text;
|
|
2656
|
+
{
|
|
2657
|
+
const [td1, td2] = table.addRow();
|
|
2658
|
+
td1.text("Consequence");
|
|
2659
|
+
td2.append("span").text(snv.mname);
|
|
2660
|
+
td2.append("span").style("margin-left", "5px").style("color", snv.color).style("font-size", ".8em").text(snv.dataClass);
|
|
2661
|
+
}
|
|
2662
|
+
{
|
|
2663
|
+
const [td1, td2] = table.addRow();
|
|
2664
|
+
td1.text(snv.ref && snv.alt ? "Mutation" : "Position");
|
|
2665
|
+
td2.append("span").text(`${snv.chr}:${snv.pos + 1} ${snv.ref && snv.alt ? snv.ref + ">" + snv.alt : ""}`);
|
|
2666
|
+
}
|
|
2667
|
+
if (snv.gene) {
|
|
2668
|
+
const [td1, td2] = table.addRow();
|
|
2669
|
+
td1.text("Gene");
|
|
2670
|
+
td2.text(snv.gene);
|
|
2671
|
+
}
|
|
2672
|
+
if (snv.occurrence > 1) {
|
|
2673
|
+
const [td1, td2] = table.addRow();
|
|
2674
|
+
td1.text("Occurrence");
|
|
2675
|
+
td2.text(snv.occurrence);
|
|
2676
|
+
}
|
|
2677
|
+
menu.show(mouseEvent.x, mouseEvent.y);
|
|
2678
|
+
}).on("mouseout", () => {
|
|
2679
|
+
menu.clear();
|
|
2680
|
+
menu.hide();
|
|
2681
|
+
}).on("click", (mouseEvent, arc) => {
|
|
2682
|
+
this.geneClickListener(arc.text, [arc.mname]);
|
|
2683
|
+
});
|
|
2684
|
+
}
|
|
2685
|
+
};
|
|
2686
|
+
|
|
2687
|
+
// plots/disco/loh/LohRenderer.ts
|
|
2688
|
+
var LohRenderer = class {
|
|
2689
|
+
render(holder, elements) {
|
|
2690
|
+
const arcGenerator = arc_default();
|
|
2691
|
+
const arcs = holder.append("g");
|
|
2692
|
+
const menu = MenuProvider.create();
|
|
2693
|
+
arcs.selectAll("path").data(elements).enter().append("path").attr("d", (d) => arcGenerator(d)).attr("fill", (d) => d.color).on("mouseover", (mouseEvent, arc) => {
|
|
2694
|
+
const table = table2col({ holder: menu.d });
|
|
2695
|
+
const loh = structuredClone(arc);
|
|
2696
|
+
loh.dt = dtloh;
|
|
2697
|
+
loh.gene = loh.text;
|
|
2698
|
+
{
|
|
2699
|
+
const [td12, td22] = table.addRow();
|
|
2700
|
+
td12.text("Data type");
|
|
2701
|
+
td22.append("span").style("margin-left", "5px").text("Loss of Heterozygosity");
|
|
2702
|
+
}
|
|
2703
|
+
const [td1, td2] = table.addRow();
|
|
2704
|
+
td1.text("Position");
|
|
2705
|
+
td2.append("span").text(`${arc.chr}:${arc.start}-${arc.stop}`);
|
|
2706
|
+
menu.show(mouseEvent.x, mouseEvent.y);
|
|
2707
|
+
}).on("mouseout", () => {
|
|
2708
|
+
menu.clear();
|
|
2709
|
+
menu.hide();
|
|
2710
|
+
});
|
|
2711
|
+
}
|
|
2712
|
+
};
|
|
2713
|
+
|
|
2714
|
+
// plots/disco/cnv/CnvBarRenderer.ts
|
|
2715
|
+
var CnvBarRenderer = class {
|
|
2716
|
+
render(holder, elements) {
|
|
2717
|
+
const arcGenerator = arc_default();
|
|
2718
|
+
const arcs = holder.append("g");
|
|
2719
|
+
const hoverOverlay = holder.append("g").attr("class", "hover-overlay").style("pointer-events", "none");
|
|
2720
|
+
const menu = MenuProvider.create();
|
|
2721
|
+
arcs.selectAll("path").data(elements).enter().append("path").attr("d", (d) => arcGenerator(d)).attr("fill", (d) => d.color).on("mouseover", (mouseEvent, arc) => {
|
|
2722
|
+
hoverOverlay.selectAll("*").remove();
|
|
2723
|
+
hoverOverlay.append("path").datum(arc).attr("d", arcGenerator(arc)).attr("fill", "none").attr("stroke", "black").attr("stroke-width", 1);
|
|
2724
|
+
const cnv = structuredClone(arc);
|
|
2725
|
+
cnv.dt = dtcnv;
|
|
2726
|
+
cnv.samples = [{ sample_id: arc.sampleName }];
|
|
2727
|
+
cnv.gene = cnv.text;
|
|
2728
|
+
const table = table2col({ holder: menu.d });
|
|
2729
|
+
{
|
|
2730
|
+
const [c1, c2] = table.addRow();
|
|
2731
|
+
c1.text("CNV");
|
|
2732
|
+
c2.html(`<span style="background:${cnv.color}"> </span> ${cnv.value}`);
|
|
2733
|
+
}
|
|
2734
|
+
{
|
|
2735
|
+
const [c1, c2] = table.addRow();
|
|
2736
|
+
c1.text("Position");
|
|
2737
|
+
c2.text(cnv.chr + ":" + cnv.start + "-" + cnv.stop);
|
|
2738
|
+
}
|
|
2739
|
+
{
|
|
2740
|
+
const [c1, c2] = table.addRow();
|
|
2741
|
+
c1.text("Unit");
|
|
2742
|
+
c2.text(cnv.value);
|
|
2743
|
+
}
|
|
2744
|
+
menu.show(mouseEvent.x, mouseEvent.y);
|
|
2745
|
+
}).on("mouseout", () => {
|
|
2746
|
+
hoverOverlay.selectAll("*").remove();
|
|
2747
|
+
menu.clear();
|
|
2748
|
+
menu.hide();
|
|
2749
|
+
});
|
|
2750
|
+
}
|
|
2751
|
+
};
|
|
2752
|
+
|
|
2753
|
+
// plots/disco/cnv/CnvHeatmapRenderer.ts
|
|
2754
|
+
var CnvHeatmapRenderer = class {
|
|
2755
|
+
constructor(positivePercentile = 0, negativePercentile = 0) {
|
|
2756
|
+
this.positivePercentile = positivePercentile;
|
|
2757
|
+
this.negativePercentile = negativePercentile;
|
|
2758
|
+
}
|
|
2759
|
+
render(holder, elements) {
|
|
2760
|
+
const arcGenerator = arc_default();
|
|
2761
|
+
const arcs = holder.append("g");
|
|
2762
|
+
const hoverOverlay = holder.append("g").attr("class", "hover-overlay").style("pointer-events", "none");
|
|
2763
|
+
const menu = MenuProvider.create();
|
|
2764
|
+
arcs.selectAll("path").data(elements).enter().append("path").attr("d", (d) => arcGenerator(d)).attr("fill", (d) => this.getColor(d.color, d.value)).on("mouseenter", (mouseEvent, arc) => {
|
|
2765
|
+
hoverOverlay.append("path").datum(arc).attr("d", arcGenerator(arc)).attr("fill", "none").attr("stroke", "black").attr("stroke-width", 1);
|
|
2766
|
+
const table = table2col({ holder: menu.d });
|
|
2767
|
+
const cnv = structuredClone(arc);
|
|
2768
|
+
cnv.dt = dtcnv;
|
|
2769
|
+
cnv.samples = [{ sample_id: arc.sampleName }];
|
|
2770
|
+
cnv.gene = cnv.text;
|
|
2771
|
+
{
|
|
2772
|
+
const [c1, c2] = table.addRow();
|
|
2773
|
+
c1.text("CNV");
|
|
2774
|
+
c2.html(
|
|
2775
|
+
`<span style="background:${this.getColor(
|
|
2776
|
+
cnv.color,
|
|
2777
|
+
cnv.value
|
|
2778
|
+
)}; border:solid lightgrey 0.1px;"> </span> ${cnv.value}`
|
|
2779
|
+
);
|
|
2780
|
+
}
|
|
2781
|
+
{
|
|
2782
|
+
const [c1, c2] = table.addRow();
|
|
2783
|
+
c1.text("Position");
|
|
2784
|
+
c2.text(cnv.chr + ":" + cnv.start + "-" + cnv.stop);
|
|
2785
|
+
}
|
|
2786
|
+
menu.show(mouseEvent.x, mouseEvent.y);
|
|
2787
|
+
}).on("mouseleave", () => {
|
|
2788
|
+
hoverOverlay.selectAll("*").remove();
|
|
2789
|
+
menu.clear();
|
|
2790
|
+
menu.hide();
|
|
2791
|
+
});
|
|
2792
|
+
}
|
|
2793
|
+
// Computes fill color using linear scale between -P80, 0, and +P80
|
|
2794
|
+
getColor(color, value) {
|
|
2795
|
+
const maxValue = Math.max(this.positivePercentile, Math.abs(this.negativePercentile));
|
|
2796
|
+
return linear(
|
|
2797
|
+
[-maxValue, 0, maxValue],
|
|
2798
|
+
[color, "white", color]
|
|
2799
|
+
// transitions to white in the middle
|
|
2800
|
+
).clamp(true)(value);
|
|
2801
|
+
}
|
|
2802
|
+
};
|
|
2803
|
+
|
|
2804
|
+
// plots/disco/waterfall/MutationWaterfallRenderer.ts
|
|
2805
|
+
var MutationWaterfallRenderer = class {
|
|
2806
|
+
constructor(dotRadius = 1.5) {
|
|
2807
|
+
this.dotRadius = dotRadius;
|
|
2808
|
+
}
|
|
2809
|
+
render(holder, elements) {
|
|
2810
|
+
if (!elements.length) return;
|
|
2811
|
+
const ringGroup = holder.append("g").attr("data-testid", "sjpp_mutation_waterfall_ring");
|
|
2812
|
+
const menu = MenuProvider.create();
|
|
2813
|
+
ringGroup.append("g").selectAll("circle").data(elements).enter().append("circle").attr("cx", (d) => Math.cos(d.startAngle - Math.PI / 2) * d.innerRadius).attr("cy", (d) => Math.sin(d.startAngle - Math.PI / 2) * d.innerRadius).attr("r", this.dotRadius).attr("fill", "#4d4d4d").attr("opacity", 0.9).on("mouseover", (event, d) => {
|
|
2814
|
+
const distance = Math.round(Math.pow(10, d.logDistance));
|
|
2815
|
+
menu.clear();
|
|
2816
|
+
const table = table2col({ holder: menu.d });
|
|
2817
|
+
{
|
|
2818
|
+
const [td1, td2] = table.addRow();
|
|
2819
|
+
td1.text("Chromosome");
|
|
2820
|
+
td2.text(d.chr);
|
|
2821
|
+
}
|
|
2822
|
+
{
|
|
2823
|
+
const [td1, td2] = table.addRow();
|
|
2824
|
+
td1.text("Position");
|
|
2825
|
+
td2.text(`${d.chr}:${d.position}`);
|
|
2826
|
+
}
|
|
2827
|
+
{
|
|
2828
|
+
const [td1, td2] = table.addRow();
|
|
2829
|
+
td1.text("Intermutation distance");
|
|
2830
|
+
td2.text(`${bplen(distance)} (${d.logDistance.toFixed(2)})`);
|
|
2831
|
+
}
|
|
2832
|
+
menu.show(event.x, event.y);
|
|
2833
|
+
}).on("mouseout", () => {
|
|
2834
|
+
menu.clear();
|
|
2835
|
+
menu.hide();
|
|
2836
|
+
});
|
|
2837
|
+
this.renderAxis(ringGroup, elements[0]);
|
|
2838
|
+
}
|
|
2839
|
+
renderAxis(holder, referencePoint) {
|
|
2840
|
+
const { ringInnerRadius, ringWidth, rangeMin, rangeMax } = referencePoint;
|
|
2841
|
+
const axisGroup = holder.append("g").attr("class", "sjpp-waterfall-axis");
|
|
2842
|
+
const topRadius = ringInnerRadius + ringWidth;
|
|
2843
|
+
axisGroup.append("line").attr("x1", 0).attr("y1", -topRadius).attr("x2", 0).attr("y2", -ringInnerRadius).attr("stroke", "#6e6e6e").attr("stroke-width", 1);
|
|
2844
|
+
const span = rangeMax - rangeMin || 1;
|
|
2845
|
+
const tickValues = rangeMax === rangeMin ? [rangeMin] : ticks(rangeMin, rangeMax, 4);
|
|
2846
|
+
tickValues.forEach((value) => {
|
|
2847
|
+
const ratio = (value - rangeMin) / span;
|
|
2848
|
+
const radius = ringInnerRadius + ringWidth * ratio;
|
|
2849
|
+
const y = -radius;
|
|
2850
|
+
axisGroup.append("line").attr("x1", -4).attr("x2", 4).attr("y1", y).attr("y2", y).attr("stroke", "#6e6e6e");
|
|
2851
|
+
const exponent = Math.round(value * 10) / 10;
|
|
2852
|
+
const formatted = Number.isInteger(exponent) ? `${exponent}` : exponent.toFixed(1);
|
|
2853
|
+
axisGroup.append("text").attr("x", 6).attr("y", y + 3).style("font-size", "10px").style("fill", "#4d4d4d").text(`10^${formatted} bp`);
|
|
2854
|
+
});
|
|
2855
|
+
}
|
|
2856
|
+
};
|
|
2857
|
+
|
|
2858
|
+
// plots/disco/Disco.ts
|
|
2859
|
+
var Disco = class {
|
|
2860
|
+
constructor(opts) {
|
|
2861
|
+
this.recreateViewModel = false;
|
|
2862
|
+
this.onCnvSourceSelect = (index) => {
|
|
2863
|
+
const state = this.app.getState();
|
|
2864
|
+
const args = state.args;
|
|
2865
|
+
const alt = args.alternativeDataByDt?.[dtcnv];
|
|
2866
|
+
if (!alt) return;
|
|
2867
|
+
const altClone = structuredClone(args.alternativeDataByDt);
|
|
2868
|
+
altClone[dtcnv].forEach((d, i) => d.inuse = i === index);
|
|
2869
|
+
const selected = altClone[dtcnv][index];
|
|
2870
|
+
selected.mlst.forEach((d) => d.position = d.pos);
|
|
2871
|
+
const baseData = args.data.filter((d) => d.dt != dtcnv && d.dt != dtloh);
|
|
2872
|
+
const newData = baseData.concat(selected.mlst);
|
|
2873
|
+
this.app.dispatch({
|
|
2874
|
+
type: "app_refresh",
|
|
2875
|
+
state: { args: { ...args, data: newData, alternativeDataByDt: altClone } }
|
|
2876
|
+
});
|
|
2877
|
+
};
|
|
2878
|
+
this.type = "Disco";
|
|
2879
|
+
this.opts = opts;
|
|
2880
|
+
this.isOpen = false;
|
|
2881
|
+
this.discoInteractions = new DiscoInteractions(this);
|
|
2882
|
+
}
|
|
2883
|
+
async init() {
|
|
2884
|
+
const state = this.app.getState();
|
|
2885
|
+
const settings = state.plots.find((p) => p.id === this.id).settings;
|
|
2886
|
+
this.stateViewModelMapper = new ViewModelMapper(settings, this.discoInteractions);
|
|
2887
|
+
this.viewModel = this.stateViewModelMapper.map(state);
|
|
2888
|
+
const holder = this.opts.holder;
|
|
2889
|
+
const controlsHolder = holder.append("div").style("display", "inline-block").style("vertical-align", "top");
|
|
2890
|
+
const topbar = controlsHolder.append("div");
|
|
2891
|
+
const config_div = controlsHolder.append("div");
|
|
2892
|
+
const configInputsOptions = this.getConfigInputsOptions(this.viewModel);
|
|
2893
|
+
this.features = await multiInit({
|
|
2894
|
+
topbar: topBarInit({
|
|
2895
|
+
app: this.app,
|
|
2896
|
+
id: this.id,
|
|
2897
|
+
// TODO change the way svg is selected
|
|
2898
|
+
downloadHandler: () => this.discoInteractions.downloadClickListener(holder.select('svg[id="sjpp_disco_plot"]').node()),
|
|
2899
|
+
callback: () => this.toggleVisibility(this.isOpen),
|
|
2900
|
+
isOpen: () => this.isOpen,
|
|
2901
|
+
holder: topbar
|
|
2902
|
+
}),
|
|
2903
|
+
config: configUiInit({
|
|
2904
|
+
app: this.app,
|
|
2905
|
+
id: this.id,
|
|
2906
|
+
holder: config_div,
|
|
2907
|
+
isOpen: () => this.isOpen,
|
|
2908
|
+
inputs: configInputsOptions
|
|
2909
|
+
})
|
|
2910
|
+
});
|
|
2911
|
+
this.errorDiv = holder.append("div");
|
|
2912
|
+
}
|
|
2913
|
+
getConfigInputsOptions(viewModel) {
|
|
2914
|
+
const configInputsOptions = [];
|
|
2915
|
+
if (viewModel.settings.Disco.showPrioritizeGeneLabelsByGeneSets) {
|
|
2916
|
+
const filterMutationsGenesCheckbox = [
|
|
2917
|
+
{
|
|
2918
|
+
boxLabel: viewModel.genesetName,
|
|
2919
|
+
label: `Filter mutations`,
|
|
2920
|
+
type: "checkbox",
|
|
2921
|
+
chartType: "Disco",
|
|
2922
|
+
settingsKey: "prioritizeGeneLabelsByGeneSets",
|
|
2923
|
+
title: `Only show mutations for ${viewModel.genesetName} genes`
|
|
2924
|
+
}
|
|
2925
|
+
];
|
|
2926
|
+
configInputsOptions.push(...filterMutationsGenesCheckbox);
|
|
2927
|
+
}
|
|
2928
|
+
if (viewModel.cnvMaxValue !== 0 || viewModel.cnvMinValue !== 0) {
|
|
2929
|
+
const cnvConfigInputOptions = [
|
|
2930
|
+
{
|
|
2931
|
+
boxLabel: "",
|
|
2932
|
+
label: "CNV rendering type",
|
|
2933
|
+
type: "radio",
|
|
2934
|
+
chartType: "Disco",
|
|
2935
|
+
settingsKey: "cnvRenderingType",
|
|
2936
|
+
title: "CNV rendering type",
|
|
2937
|
+
options: [
|
|
2938
|
+
{ label: "Heatmap", value: "heatmap" /* heatmap */ },
|
|
2939
|
+
{ label: "Bar", value: "bar" /* bar */ }
|
|
2940
|
+
]
|
|
2941
|
+
}
|
|
2942
|
+
];
|
|
2943
|
+
configInputsOptions.push(...cnvConfigInputOptions);
|
|
2944
|
+
}
|
|
2945
|
+
const genomeChr = this.app.opts.state.args.genome.majorchr;
|
|
2946
|
+
const chromosomeConfigOption = {
|
|
2947
|
+
label: "Chromosomes",
|
|
2948
|
+
title: "Chromosomes shown in the plot",
|
|
2949
|
+
type: "multiCheckbox",
|
|
2950
|
+
chartType: "Disco",
|
|
2951
|
+
settingsKey: "hiddenChromosomes",
|
|
2952
|
+
style: {
|
|
2953
|
+
colNum: 4
|
|
2954
|
+
},
|
|
2955
|
+
options: Object.keys(genomeChr).map((c) => ({ label: c, value: c })),
|
|
2956
|
+
processInput: (values = []) => {
|
|
2957
|
+
const reverse = Object.keys(genomeChr).filter((c) => !values.includes(c));
|
|
2958
|
+
return reverse;
|
|
2959
|
+
}
|
|
2960
|
+
};
|
|
2961
|
+
configInputsOptions.push(chromosomeConfigOption);
|
|
2962
|
+
const dimensionOptions = [
|
|
2963
|
+
{
|
|
2964
|
+
label: "Radius",
|
|
2965
|
+
title: "Set the radius of the entire plot, between 300 and 1000 pixels.",
|
|
2966
|
+
type: "number",
|
|
2967
|
+
chartType: "Disco",
|
|
2968
|
+
settingsKey: "radius",
|
|
2969
|
+
debounceInterval: 500,
|
|
2970
|
+
step: 25,
|
|
2971
|
+
min: 300,
|
|
2972
|
+
max: 1e3
|
|
2973
|
+
},
|
|
2974
|
+
{
|
|
2975
|
+
label: "Fusion opacity",
|
|
2976
|
+
title: "Adjust opacity of fusion arcs, between 0 and 1",
|
|
2977
|
+
type: "number",
|
|
2978
|
+
chartType: "Disco",
|
|
2979
|
+
settingsKey: "fusionOpacity",
|
|
2980
|
+
step: 0.01,
|
|
2981
|
+
min: 0,
|
|
2982
|
+
max: 1,
|
|
2983
|
+
debounceInterval: 500
|
|
2984
|
+
}
|
|
2985
|
+
];
|
|
2986
|
+
configInputsOptions.push(...dimensionOptions);
|
|
2987
|
+
if (viewModel.canShowMutationWaterfallPlot && viewModel.snvDataLength > 0) {
|
|
2988
|
+
configInputsOptions.push({
|
|
2989
|
+
boxLabel: "",
|
|
2990
|
+
label: "Mutation Waterfall Plot",
|
|
2991
|
+
type: "checkbox",
|
|
2992
|
+
chartType: "Disco",
|
|
2993
|
+
settingsKey: "mutationWaterfallPlot",
|
|
2994
|
+
title: "Render log10 intermutation distance ring for SNV/indel data"
|
|
2995
|
+
});
|
|
2996
|
+
}
|
|
2997
|
+
return configInputsOptions;
|
|
2998
|
+
}
|
|
2999
|
+
async main() {
|
|
3000
|
+
const settings = this.state.settings;
|
|
3001
|
+
this.isOpen = settings.Disco.isOpen;
|
|
3002
|
+
if (this.recreateViewModel) {
|
|
3003
|
+
this.stateViewModelMapper = new ViewModelMapper(settings, this.discoInteractions);
|
|
3004
|
+
this.viewModel = this.stateViewModelMapper.map(this.app.getState());
|
|
3005
|
+
}
|
|
3006
|
+
this.recreateViewModel = true;
|
|
3007
|
+
if (this.viewModel) {
|
|
3008
|
+
const holder = this.opts.holder;
|
|
3009
|
+
holder.select('div[id="sjpp_disco_plot_holder_div"]').remove();
|
|
3010
|
+
const svgDiv = holder.append("div").attr("id", "sjpp_disco_plot_holder_div").style("display", "inline-block").style("position", "relative");
|
|
3011
|
+
const appState = this.app.getState();
|
|
3012
|
+
this.viewModel.svgDiv = svgDiv;
|
|
3013
|
+
this.viewModel.appState = appState;
|
|
3014
|
+
for (const name in this.features) {
|
|
3015
|
+
this.features[name].update({ state: this.state, appState });
|
|
3016
|
+
}
|
|
3017
|
+
const legendRenderer = new LegendRenderer(this.viewModel.cappedCnvMaxAbsValue, settings.label.fontSize);
|
|
3018
|
+
const discoRenderer = new DiscoRenderer(
|
|
3019
|
+
this.getRingRenderers(this.viewModel.settings, this.viewModel, this.discoInteractions.geneClickListener),
|
|
3020
|
+
legendRenderer,
|
|
3021
|
+
this.app.opts.state.args.genome
|
|
3022
|
+
);
|
|
3023
|
+
discoRenderer.render(svgDiv, this.viewModel, this.onCnvSourceSelect);
|
|
3024
|
+
if (this.viewModel.invalidDataInfo?.entries?.length) {
|
|
3025
|
+
InvalidDataUI.render(this.errorDiv, this.viewModel.invalidDataInfo);
|
|
3026
|
+
}
|
|
3027
|
+
}
|
|
3028
|
+
}
|
|
3029
|
+
getState(appState) {
|
|
3030
|
+
const config = appState.plots.find((p) => p.id === this.id);
|
|
3031
|
+
if (!config) return config;
|
|
3032
|
+
return { ...config, mlst: appState.args.data };
|
|
3033
|
+
}
|
|
3034
|
+
getRingRenderers(settings, viewModel, geneClickListener) {
|
|
3035
|
+
const chromosomesRenderer = new ChromosomesRenderer(
|
|
3036
|
+
settings.padAngle,
|
|
3037
|
+
settings.rings.chromosomeInnerRadius,
|
|
3038
|
+
settings.rings.chromosomeInnerRadius + settings.rings.chromosomeWidth,
|
|
3039
|
+
settings.label.fontSize
|
|
3040
|
+
);
|
|
3041
|
+
const labelsRenderer = new LabelsRenderer(
|
|
3042
|
+
settings.label.animationDuration,
|
|
3043
|
+
settings.label.fontSize,
|
|
3044
|
+
geneClickListener
|
|
3045
|
+
);
|
|
3046
|
+
const nonExonicSnvRenderer = new NonExonicSnvRenderer(geneClickListener);
|
|
3047
|
+
const snvRenderer = new SnvRenderer(settings.rings.snvRingWidth, geneClickListener);
|
|
3048
|
+
const cnvRenderer = settings.Disco.cnvRenderingType === "heatmap" /* heatmap */ ? new CnvHeatmapRenderer(viewModel.positivePercentile, viewModel.negativePercentile) : new CnvBarRenderer();
|
|
3049
|
+
const lohRenderer = new LohRenderer();
|
|
3050
|
+
const mutationWaterfallRenderer = new MutationWaterfallRenderer();
|
|
3051
|
+
const renderersMap = /* @__PURE__ */ new Map();
|
|
3052
|
+
renderersMap.set(0 /* CHROMOSOME */, chromosomesRenderer);
|
|
3053
|
+
renderersMap.set(1 /* LABEL */, labelsRenderer);
|
|
3054
|
+
renderersMap.set(2 /* NONEXONICSNV */, nonExonicSnvRenderer);
|
|
3055
|
+
renderersMap.set(3 /* SNV */, snvRenderer);
|
|
3056
|
+
renderersMap.set(4 /* MUTATION_WATERFALL */, mutationWaterfallRenderer);
|
|
3057
|
+
renderersMap.set(5 /* CNV */, cnvRenderer);
|
|
3058
|
+
renderersMap.set(6 /* LOH */, lohRenderer);
|
|
3059
|
+
return renderersMap;
|
|
3060
|
+
}
|
|
3061
|
+
toggleVisibility(isOpen) {
|
|
3062
|
+
this.app.dispatch({
|
|
3063
|
+
type: "plot_edit",
|
|
3064
|
+
id: this.opts.id,
|
|
3065
|
+
config: {
|
|
3066
|
+
settings: {
|
|
3067
|
+
Disco: { isOpen: !isOpen }
|
|
3068
|
+
}
|
|
3069
|
+
}
|
|
3070
|
+
});
|
|
3071
|
+
}
|
|
3072
|
+
};
|
|
3073
|
+
var discoInit = getCompInit(Disco);
|
|
3074
|
+
var componentInit = discoInit;
|
|
3075
|
+
async function getPlotConfig(opts, app) {
|
|
3076
|
+
return {
|
|
3077
|
+
chartType: "Disco",
|
|
3078
|
+
subfolder: "disco",
|
|
3079
|
+
extension: "ts",
|
|
3080
|
+
settings: discoDefaults(opts.overrides, app)
|
|
3081
|
+
};
|
|
3082
|
+
}
|
|
3083
|
+
export {
|
|
3084
|
+
componentInit,
|
|
3085
|
+
Disco as default,
|
|
3086
|
+
discoInit,
|
|
3087
|
+
getPlotConfig
|
|
3088
|
+
};
|
|
3089
|
+
//# sourceMappingURL=Disco-OE6YY3MH.js.map
|