@sjcrh/proteinpaint-client 2.182.0 → 2.183.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-6ZTETSC5.js +1371 -0
- package/dist/AIProjectAdmin-ZT3XKBBT.js +830 -0
- package/dist/AIProjectAdmin-ZT3XKBBT.js.map +7 -0
- package/dist/AppHeader-U7SJPIBS.js +833 -0
- package/dist/BoxPlot-QGHLZ67V.js +1217 -0
- package/dist/BoxPlot-QGHLZ67V.js.map +7 -0
- package/dist/CorrelationVolcano-7SE4CTBW.js +617 -0
- package/dist/DE-PZ7RHPBS.js +93 -0
- package/dist/DEinput-UZEQIU2V.js +297 -0
- package/dist/DifferentialAnalysis-L6BOEYVO.js +238 -0
- package/dist/Disco-6FDT6KRM.js +3235 -0
- package/dist/Disco-6FDT6KRM.js.map +7 -0
- package/dist/Disco.UI-HKOUAD4P.js +242 -0
- package/dist/DmrPlot-3R24PTXP.js +640 -0
- package/dist/GB-SZVYZASR.js +1125 -0
- package/dist/HicApp-SEEJETVE.js +2248 -0
- package/dist/NumBinaryEditor-SDQFJ3FW.js +268 -0
- package/dist/NumBinaryEditor.unit.spec-76ZZXTYC.js +284 -0
- package/dist/NumContEditor-G75O4YZE.js +105 -0
- package/dist/NumContEditor.unit.spec-BFUZRBPL.js +167 -0
- package/dist/NumCustomBinEditor-ILTPHCEF.js +36 -0
- package/dist/NumCustomBinEditor.unit.spec-GFIYV55V.js +282 -0
- package/dist/NumDiscreteEditor-5K3OKUOE.js +177 -0
- package/dist/NumDiscreteEditor.unit.spec-NZ4KWPFK.js +200 -0
- package/dist/NumRegularBinEditor-7ZJ2MEMY.js +36 -0
- package/dist/NumRegularBinEditor.unit.spec-QGVJET65.js +225 -0
- package/dist/NumSplineEditor-KE4UPODZ.js +190 -0
- package/dist/NumSplineEditor.unit.spec-YQOOZA7S.js +197 -0
- package/dist/NumericDensity-RL42P4QC.js +36 -0
- package/dist/NumericDensity.unit.spec-Y6RMTYC7.js +219 -0
- package/dist/NumericHandler-4QIX324I.js +37 -0
- package/dist/NumericHandler.unit.spec-T6F5QYP6.js +217 -0
- package/dist/RunChart2-ASGCKKER.js +756 -0
- package/dist/RunChart2-ASGCKKER.js.map +7 -0
- package/dist/SC-H2YCKSBH.js +682 -0
- package/dist/SC-H2YCKSBH.js.map +7 -0
- package/dist/Volcano-QBYYJYVW.js +1185 -0
- package/dist/Volcano-QBYYJYVW.js.map +7 -0
- package/dist/WSIViewer-NDHWFVAB.js +47974 -0
- package/dist/WSIViewer-NDHWFVAB.js.map +7 -0
- package/dist/WsiSamplesPlot-CXGWPCDL.js +163 -0
- package/dist/adSandbox-DE4VRO4Z.js +36 -0
- package/dist/alphaGenome-FSIGC5ZT.js +173 -0
- package/dist/app-KZGKWQMU.js +47 -0
- package/dist/app-MQRJ7FVL.js +35 -0
- package/dist/app.js +22 -22
- package/dist/bam-BDWTA4O3.js +857 -0
- package/dist/barchart-4Q6LVJY4.js +45 -0
- package/dist/barchart.data-EXENRVMU.js +22 -0
- package/dist/barchart.events-XRGND6I7.js +45 -0
- package/dist/barchart.integration.spec-VQITP4YH.js +1675 -0
- package/dist/bars.renderer-S7A7I6BQ.js +12 -0
- package/dist/block-2MABX5QO.js +6200 -0
- package/dist/block-2MABX5QO.js.map +7 -0
- package/dist/block.init-NCNSE3HD.js +36 -0
- package/dist/block.mds.expressionrank-JYZARS7T.js +357 -0
- package/dist/block.mds.geneboxplot-FD2MCIHV.js +826 -0
- package/dist/block.mds.junction-LOHVQBIU.js +1543 -0
- package/dist/block.mds.svcnv-Z7SAYPQL.js +6799 -0
- package/dist/block.svg-LNJOKQNN.js +162 -0
- package/dist/block.tk.aicheck-IXCMMAGV.js +281 -0
- package/dist/block.tk.ase-WYRYFP6N.js +363 -0
- package/dist/block.tk.bam-EIVBNGAL.js +1904 -0
- package/dist/block.tk.bedgraphdot-3FHLNCU7.js +382 -0
- package/dist/block.tk.bigwig.ui-YDQU5PC4.js +209 -0
- package/dist/block.tk.hicstraw-S3ROL3CV.js +821 -0
- package/dist/block.tk.junction-DL7RNWX3.js +2362 -0
- package/dist/block.tk.junction.textmatrixui-Z6I7IEDY.js +197 -0
- package/dist/block.tk.ld-XHVU6L56.js +97 -0
- package/dist/block.tk.menu-FPLAEEFY.js +1027 -0
- package/dist/block.tk.pgv-6ZZ2QGNO.js +942 -0
- package/dist/brainImaging-VSOOMITW.js +421 -0
- package/dist/chat-LW23PIG5.js +148 -0
- package/dist/chunk-2A2KM5DU.js +117 -0
- package/dist/chunk-2A2KM5DU.js.map +7 -0
- package/dist/chunk-2K5DSRBJ.js +84 -0
- package/dist/chunk-2K5DSRBJ.js.map +7 -0
- package/dist/chunk-2LULD7RN.js +31 -0
- package/dist/chunk-36DYWBU7.js +514 -0
- package/dist/chunk-36DYWBU7.js.map +7 -0
- package/dist/chunk-3AGB6HL4.js +158 -0
- package/dist/chunk-3AVDNIDN.js +55 -0
- package/dist/chunk-3DCABJHB.js +381 -0
- package/dist/chunk-3JMB3OSC.js +102 -0
- package/dist/chunk-3UEMY45Y.js +215 -0
- package/dist/chunk-4RR4KPRJ.js +1205 -0
- package/dist/chunk-5HCB4HNL.js +147 -0
- package/dist/chunk-5RFB7TYT.js +92 -0
- package/dist/chunk-5UMPBVA6.js +534 -0
- package/dist/chunk-6C2SBTLR.js +407 -0
- package/dist/chunk-6ITDJ5UR.js +261 -0
- package/dist/chunk-6ITDJ5UR.js.map +7 -0
- package/dist/chunk-6LAE5AVA.js +13624 -0
- package/dist/chunk-77ZJGPK2.js +289 -0
- package/dist/chunk-77ZJGPK2.js.map +7 -0
- package/dist/chunk-7FKIAQ4K.js +17 -0
- package/dist/chunk-7FKIAQ4K.js.map +7 -0
- package/dist/chunk-7RN3L2BX.js +1788 -0
- package/dist/chunk-7RN3L2BX.js.map +7 -0
- package/dist/chunk-7VV43ICF.js +272 -0
- package/dist/chunk-A6TQGNDQ.js +421 -0
- package/dist/chunk-A6TQGNDQ.js.map +7 -0
- package/dist/chunk-A742TQD2.js +615 -0
- package/dist/chunk-A7E3JZ5P.js +56 -0
- package/dist/chunk-A7E3JZ5P.js.map +7 -0
- package/dist/chunk-AFLFPYJI.js +480 -0
- package/dist/chunk-APOHXHKH.js +526 -0
- package/dist/chunk-APOHXHKH.js.map +7 -0
- package/dist/chunk-AQ4OP4GR.js +39 -0
- package/dist/chunk-BAY47D5E.js +226 -0
- package/dist/chunk-CFHKYLDY.js +26 -0
- package/dist/chunk-CTAKX5CT.js +129 -0
- package/dist/chunk-CVBQWXLH.js +455 -0
- package/dist/chunk-CVBQWXLH.js.map +7 -0
- package/dist/chunk-D4QFQQWJ.js +170 -0
- package/dist/chunk-DGMK7SXX.js +203 -0
- package/dist/chunk-DNCSPTOQ.js +446 -0
- package/dist/chunk-DTDQKGIQ.js +2672 -0
- package/dist/chunk-E4NVHKWD.js +142 -0
- package/dist/chunk-E6KEZENR.js +4207 -0
- package/dist/chunk-EY2KBPHJ.js +261 -0
- package/dist/chunk-EY2KBPHJ.js.map +7 -0
- package/dist/chunk-FRBYOOWT.js +229 -0
- package/dist/chunk-FVWCYGJL.js +121 -0
- package/dist/chunk-HWHG63LH.js +148 -0
- package/dist/chunk-HWHG63LH.js.map +7 -0
- package/dist/chunk-HYZG6OPC.js +467 -0
- package/dist/chunk-HYZG6OPC.js.map +7 -0
- package/dist/chunk-I4IKRKYJ.js +2815 -0
- package/dist/chunk-IEQSUAIO.js +6364 -0
- package/dist/chunk-IET6P5MV.js +335 -0
- package/dist/chunk-IET6P5MV.js.map +7 -0
- package/dist/chunk-JMPSZMDD.js +52 -0
- package/dist/chunk-JXOL73PT.js +2784 -0
- package/dist/chunk-K62XUHA4.js +100 -0
- package/dist/chunk-KQMEJUWI.js +815 -0
- package/dist/chunk-L4QG7XZE.js +46 -0
- package/dist/chunk-L4QG7XZE.js.map +7 -0
- package/dist/chunk-L4YGMXLX.js +37 -0
- package/dist/chunk-L4YGMXLX.js.map +7 -0
- package/dist/chunk-LI7FE335.js +371 -0
- package/dist/chunk-M7W2GYSM.js +4961 -0
- package/dist/chunk-M7W2GYSM.js.map +7 -0
- package/dist/chunk-MV6O4I2B.js +441 -0
- package/dist/chunk-MXNSW55L.js +148 -0
- package/dist/chunk-NB7NLFGZ.js +228 -0
- package/dist/chunk-NGGWK6HX.js +302 -0
- package/dist/chunk-OGGFS66K.js +1087 -0
- package/dist/chunk-OSM7YS23.js +276 -0
- package/dist/chunk-OSM7YS23.js.map +7 -0
- package/dist/chunk-OXJ2TWDO.js +20644 -0
- package/dist/chunk-OXJ2TWDO.js.map +7 -0
- package/dist/chunk-Q7PYFSNU.js +107 -0
- package/dist/chunk-QMI222IJ.js +386 -0
- package/dist/chunk-QRIRWDIW.js +252 -0
- package/dist/chunk-R6L6NVEC.js +14 -0
- package/dist/chunk-RLTLYKHO.js +34 -0
- package/dist/chunk-S5ZI6N2I.js +293 -0
- package/dist/chunk-S7T7OZC7.js +158 -0
- package/dist/chunk-SEQLC4AD.js +177 -0
- package/dist/chunk-TEZLFSOV.js +54 -0
- package/dist/chunk-TFI7ZZJG.js +50 -0
- package/dist/chunk-TFI7ZZJG.js.map +7 -0
- package/dist/chunk-TV74I3Y5.js +43 -0
- package/dist/chunk-TV74I3Y5.js.map +7 -0
- package/dist/chunk-UEMTP6ZC.js +824 -0
- package/dist/chunk-UJU3Q7QJ.js +119 -0
- package/dist/chunk-V245THQC.js +2370 -0
- package/dist/chunk-V245THQC.js.map +7 -0
- package/dist/chunk-V6DLLX4N.js +176 -0
- package/dist/chunk-V6DLLX4N.js.map +7 -0
- package/dist/chunk-VIPMLSZP.js +217 -0
- package/dist/chunk-VQPS4SXU.js +97 -0
- package/dist/chunk-VQPS4SXU.js.map +7 -0
- package/dist/chunk-VUUZJANK.js +1150 -0
- package/dist/chunk-VYIO7T6J.js +82 -0
- package/dist/chunk-VYIO7T6J.js.map +7 -0
- package/dist/chunk-W345H42C.js +273 -0
- package/dist/chunk-W345H42C.js.map +7 -0
- package/dist/chunk-WGHO2NCP.js +205 -0
- package/dist/chunk-WGL6FIUE.js +330 -0
- package/dist/chunk-WGL6FIUE.js.map +7 -0
- package/dist/chunk-WPHOEG56.js +194 -0
- package/dist/chunk-WS5XVKPJ.js +470 -0
- package/dist/chunk-X6URQAFD.js +1271 -0
- package/dist/chunk-XYFDBYOY.js +1658 -0
- package/dist/chunk-XYFDBYOY.js.map +7 -0
- package/dist/chunk-Y6RCKITI.js +1155 -0
- package/dist/chunk-Y6RCKITI.js.map +7 -0
- package/dist/chunk-YALAQWX4.js +368 -0
- package/dist/chunk-YK5NFMHR.js +269 -0
- package/dist/chunk-YK5NFMHR.js.map +7 -0
- package/dist/chunk-YY4CKQJ6.js +95 -0
- package/dist/chunk-Z3KV6SC2.js +629 -0
- package/dist/chunk-ZGT4XP5J.js +1426 -0
- package/dist/chunk-ZGT4XP5J.js.map +7 -0
- package/dist/condition-JKQIRMMW.js +330 -0
- package/dist/controls-324AGOZG.js +39 -0
- package/dist/controls.config-TA4NNARU.js +37 -0
- package/dist/correlation-3Z36TKC2.js +96 -0
- package/dist/cuminc-4DY2CSZF.js +1147 -0
- package/dist/cuminc.integration.spec-SFQPLMSF.js +676 -0
- package/dist/customdata.inputui-IKGPEBXV.js +287 -0
- package/dist/customdata.inputui-IKGPEBXV.js.map +7 -0
- package/dist/dataDownload-3AE2N7KI.js +328 -0
- package/dist/dataDownload.integration.spec-DKOT6BJP.js +191 -0
- package/dist/databrowser.ui-ATODRS5P.js +419 -0
- package/dist/dictionary-WHDZBW5M.js +109 -0
- package/dist/dictionary-WHDZBW5M.js.map +7 -0
- package/dist/dnaMethylation-TVA5YMOR.js +36 -0
- package/dist/dnaMethylation.integration.spec-JTWQR6XY.js +165 -0
- package/dist/dnaMethylation.integration.spec-JTWQR6XY.js.map +7 -0
- package/dist/e2pca-KHVDNFEZ.js +348 -0
- package/dist/ep-B5GAAMNM.js +1254 -0
- package/dist/expclust.gdc.spec-EDPX7V6K.js +305 -0
- package/dist/facet-ZCSXKXIO.js +519 -0
- package/dist/geneExpClustering-ERNCMAED.js +246 -0
- package/dist/geneExpression-HUOXWETT.js +36 -0
- package/dist/geneExpression-X2KXJPND.js +312 -0
- package/dist/geneExpression.unit.spec-5QQB4ISW.js +100 -0
- package/dist/geneORA-B5UK77KL.js +276 -0
- package/dist/geneVariant-7MGUAIZ6.js +39 -0
- package/dist/geneVariant-FK3KZJ2K.js +37 -0
- package/dist/geneVariant.integration.spec-C6TYWKIC.js +196 -0
- package/dist/genefusion.ui-VKAINMY7.js +249 -0
- package/dist/geneset-673KAZVX.js +194 -0
- package/dist/genomeBrowser.spec-T6TQCJ3O.js +279 -0
- package/dist/grin2-376BD4XY.js +1554 -0
- package/dist/grin2-OALS75LC.js +1031 -0
- package/dist/gsea-25LD2LGP.js +45 -0
- package/dist/hierCluster-7KU3K52V.js +58 -0
- package/dist/hierCluster-M5VVWKQK.js +62 -0
- package/dist/hierCluster.config-EDO3SH2P.js +38 -0
- package/dist/hierCluster.integration.spec-UOX7J2XD.js +374 -0
- package/dist/hierCluster.interactivity-FEFZDXML.js +52 -0
- package/dist/hierCluster.renderers-A6MEGO2B.js +21 -0
- package/dist/imagePlot-FPXZ2H5Z.js +139 -0
- package/dist/importPlot-VKWPSFEK.js +8 -0
- package/dist/isoformExpression-2R2TOB6P.js +38 -0
- package/dist/isoformExpression.unit.spec-ZKFKOPKT.js +206 -0
- package/dist/isoformExpression.unit.spec-ZKFKOPKT.js.map +7 -0
- package/dist/jspdf.es.min-FC3BCETM.js +40 -0
- package/dist/launch.adhoc-242RS6DW.js +40 -0
- package/dist/leftlabel.sample-OJW3AE64.js +257 -0
- package/dist/legacyDataset-PBCPC5I7.js +119 -0
- package/dist/lollipop-TRQ3LK7Y.js +166 -0
- package/dist/maf-ZBOLN2FE.js +450 -0
- package/dist/maftimeline-GVX7NJP7.js +591 -0
- package/dist/matrix-73KRNXLM.js +57 -0
- package/dist/matrix-US3OXYRY.js +62 -0
- package/dist/matrix.cells-U7AQNEBP.js +28 -0
- package/dist/matrix.config-Q57D7C3F.js +39 -0
- package/dist/matrix.controls-AWXDRSWP.js +37 -0
- package/dist/matrix.data-EEIY6AO4.js +25 -0
- package/dist/matrix.dom-6QL3AJMW.js +11 -0
- package/dist/matrix.groups-CUB6UWC5.js +26 -0
- package/dist/matrix.integration.spec-PQH67KRM.js +3070 -0
- package/dist/matrix.interactivity-JW4AXAWO.js +40 -0
- package/dist/matrix.layout-I56KRVCO.js +42 -0
- package/dist/matrix.legend-42LQGAGX.js +22 -0
- package/dist/matrix.renderers-IX3FCNBK.js +36 -0
- package/dist/matrix.serieses-4B2WB526.js +21 -0
- package/dist/matrix.sort-BJACNR7G.js +27 -0
- package/dist/matrix.sort.unit.spec-3KKDKIPY.js +470 -0
- package/dist/matrix.sorterUi-W6XFYZY2.js +18 -0
- package/dist/matrix.sorterUi.unit.spec-CMJ7EBIW.js +340 -0
- package/dist/mavb-ROAE6WYA.js +730 -0
- package/dist/mds.fimo-UGK5OWCF.js +516 -0
- package/dist/mds.samplescatterplot-5KFUAYSB.js +1548 -0
- package/dist/mds.survivalplot-2EVNZUX5.js +481 -0
- package/dist/oncomatrix-UGFXSXQJ.js +293 -0
- package/dist/oncomatrix.spec-FEP7BR7L.js +446 -0
- package/dist/plot.2dvaf-WXGLWCOC.js +375 -0
- package/dist/plot.app-IZAFRTBU.js +39 -0
- package/dist/plot.barplot-Z4VWOPFJ.js +100 -0
- package/dist/plot.boxplot-QU2KZSB7.js +150 -0
- package/dist/plot.brainImaging-U643YIK7.js +51 -0
- package/dist/plot.disco-3BV6YEBC.js +101 -0
- package/dist/plot.disco-3BV6YEBC.js.map +7 -0
- package/dist/plot.dzi-DWXPOOQE.js +33 -0
- package/dist/plot.ssgq-GXB2GZO3.js +137 -0
- package/dist/plot.vaf2cov-EKRIADPB.js +257 -0
- package/dist/plot.wsi-E2LLE6HI.js +36 -0
- package/dist/polar-MZLIUXHO.js +184 -0
- package/dist/polar2-IUVHNQM4.js +226 -0
- package/dist/profile.spec-JRW6KYUI.js +78 -0
- package/dist/profileBarchart-N7HJMYZ5.js +265 -0
- package/dist/profileForms-Q5TPGPQP.js +438 -0
- package/dist/profilePlot-TXTUYDVE.js +52 -0
- package/dist/profileRadar-ICEASI7W.js +261 -0
- package/dist/profileRadarFacility-NFMRNJYX.js +261 -0
- package/dist/profileRadarFacility-NFMRNJYX.js.map +7 -0
- package/dist/proteinView-K3JFNORQ.js +633 -0
- package/dist/proteinView-K3JFNORQ.js.map +7 -0
- package/dist/proteomeAbundance-DE4NVBCN.js +21 -0
- package/dist/proteomeAbundance-LTB3QR3G.js +63 -0
- package/dist/qualitative-DFGWQURY.js +41 -0
- package/dist/regression-TTQTAEGD.js +54 -0
- package/dist/regression.inputs-2LU2XRGC.js +46 -0
- package/dist/regression.inputs.term-G57GL57T.js +46 -0
- package/dist/regression.inputs.values.table-JSEM3PXL.js +43 -0
- package/dist/regression.integration.spec-XJQJAIC3.js +782 -0
- package/dist/regression.integration.spec-XJQJAIC3.js.map +7 -0
- package/dist/regression.results-3YNM6LLQ.js +38 -0
- package/dist/regression.spec-S6WFCPSW.js +706 -0
- package/dist/report-YRAV4MY4.js +220 -0
- package/dist/sampleScatter.spec-MBJ4XNTX.js +200 -0
- package/dist/sampleView-IUR3ZEN7.js +46 -0
- package/dist/samplelst-C2NBFGH6.js +109 -0
- package/dist/samplematrix-AOK2HHSB.js +2196 -0
- package/dist/sc-XT3Z5XJI.js +84 -0
- package/dist/scatter-SAHKZRFL.js +800 -0
- package/dist/scatter.integration.spec-6KRDNHHH.js +1194 -0
- package/dist/scatter.integration.spec-6KRDNHHH.js.map +7 -0
- package/dist/selectGenomeWithTklst-2YVZ4JWV.js +132 -0
- package/dist/singleCellCellType-NFN5GQJM.js +36 -0
- package/dist/singleCellCellType.unit.spec-CR4IJ4DA.js +158 -0
- package/dist/singleCellCellType.unit.spec-CR4IJ4DA.js.map +7 -0
- package/dist/singleCellGeneExpression-7AQGLXTR.js +36 -0
- package/dist/singleCellGeneExpression.unit.spec-QYNWSV2G.js +151 -0
- package/dist/singleCellGeneExpression.unit.spec-QYNWSV2G.js.map +7 -0
- package/dist/singleCellPlot-IWFEG44C.js +51 -0
- package/dist/singlecell-3QNV4OMZ.js +1570 -0
- package/dist/singlecell-EATPLH66.js +84 -0
- package/dist/snp-UP7WL7WG.js +36 -0
- package/dist/snp.unit.spec-Y5NWQ442.js +174 -0
- package/dist/snplocus-WAQK2AZG.js +206 -0
- package/dist/spliceevent.a53ss.diagram-FFK27UIB.js +149 -0
- package/dist/spliceevent.exonskip.diagram-KWEF2OZJ.js +275 -0
- package/dist/spliceevent.noeventdiagram-PU4TI7OM.js +458 -0
- package/dist/ssGSEA-N6QOAVLW.js +36 -0
- package/dist/ssGSEA.unit.spec-KQBNZNNP.js +86 -0
- package/dist/summarizeCnvGeneexp-NWX4M6LZ.js +161 -0
- package/dist/summarizeCnvGeneexp-NWX4M6LZ.js.map +7 -0
- package/dist/summarizeGeneexpSurvival-N5VTE2G6.js +106 -0
- package/dist/summarizeGeneexpSurvival-N5VTE2G6.js.map +7 -0
- package/dist/summarizeMutationCnv-VV7CVAA7.js +162 -0
- package/dist/summarizeMutationCnv-VV7CVAA7.js.map +7 -0
- package/dist/summarizeMutationDiagnosis-5RHSG7L6.js +38 -0
- package/dist/summarizeMutationSurvival-22YYXGS5.js +97 -0
- package/dist/summary-P3WIKJS7.js +47 -0
- package/dist/summary.integration.spec-ULGRPICW.js +412 -0
- package/dist/summaryInput-IH4EVNF5.js +218 -0
- package/dist/sunburst-VJJ3UVYC.js +282 -0
- package/dist/sunburst-VJJ3UVYC.js.map +7 -0
- package/dist/survival-2ZE3N62A.js +44 -0
- package/dist/survival-ASCLKIII.js +56 -0
- package/dist/survival.integration.spec-C5YXOY77.js +787 -0
- package/dist/svg2pdf.es.min-CYTPRWNB.js +3157 -0
- package/dist/svgraph-AYR2UPNK.js +1385 -0
- package/dist/svmr-MOMW5DNY.js +3840 -0
- package/dist/table-PQB6KCEY.js +198 -0
- package/dist/termCollection-5AY2AWT4.js +36 -0
- package/dist/termCollection-OQMUUTW6.js +177 -0
- package/dist/termCollection.unit.spec-BUAXYIJK.js +206 -0
- package/dist/tk-EJLFFA5H.js +44 -0
- package/dist/tp.ui-WUW6A7KP.js +1457 -0
- package/dist/tvs.density-HSVPDDGA.js +18 -0
- package/dist/tvs.dt-MVJXQMNU.js +37 -0
- package/dist/tvs.dtcnv.categorical-FIIDWVK7.js +38 -0
- package/dist/tvs.dtcnv.continuous-JPQU3JA2.js +70 -0
- package/dist/tvs.dtfusion-BW35GOQM.js +38 -0
- package/dist/tvs.dtsnvindel-AEMFZ4EH.js +38 -0
- package/dist/tvs.dtsv-JHTU7UFD.js +38 -0
- package/dist/tvs.numeric-ICUGA4WY.js +21 -0
- package/dist/tvs.samplelst-VD2NFFFS.js +102 -0
- package/dist/tvs.termCollection-IKE5Q74D.js +151 -0
- package/dist/violin-DPMJLHQG.js +44 -0
- package/dist/violin.integration.spec-A4PNR4ES.js +1423 -0
- package/dist/violin.integration.spec-A4PNR4ES.js.map +7 -0
- package/dist/violin.interactivity-TS4DYUE5.js +36 -0
- package/dist/violin.renderer-53L4PXUT.js +38 -0
- package/dist/vocabulary-4MPFHKYC.js +39 -0
- package/package.json +3 -3
- package/dist/2dmaf-SLBAWGPG.js +0 -1371
- package/dist/AIProjectAdmin-6SH5X3AF.js +0 -830
- package/dist/AIProjectAdmin-6SH5X3AF.js.map +0 -7
- package/dist/AppHeader-MVYNRMC7.js +0 -833
- package/dist/BoxPlot-HLGWW3IK.js +0 -1295
- package/dist/BoxPlot-HLGWW3IK.js.map +0 -7
- package/dist/CorrelationVolcano-TZCYC3NI.js +0 -617
- package/dist/DE-2J2SK5UT.js +0 -93
- package/dist/DEinput-QM3GOQHM.js +0 -297
- package/dist/DifferentialAnalysis-DS7CQOT6.js +0 -238
- package/dist/Disco-U5I6NJUT.js +0 -3199
- package/dist/Disco-U5I6NJUT.js.map +0 -7
- package/dist/Disco.UI-J2B7GGEZ.js +0 -242
- package/dist/DmrPlot-D5W76QPY.js +0 -640
- package/dist/GB-LM5SGUG4.js +0 -1125
- package/dist/HicApp-YNBGAGKM.js +0 -2248
- package/dist/NumBinaryEditor-4QA5DQJT.js +0 -268
- package/dist/NumBinaryEditor.unit.spec-YWSIFTOJ.js +0 -284
- package/dist/NumContEditor-ZPLVZFLH.js +0 -105
- package/dist/NumContEditor.unit.spec-NBCFOCOX.js +0 -167
- package/dist/NumCustomBinEditor-TXEYRVPL.js +0 -36
- package/dist/NumCustomBinEditor.unit.spec-SQM63H4B.js +0 -282
- package/dist/NumDiscreteEditor-6C4OWX62.js +0 -177
- package/dist/NumDiscreteEditor.unit.spec-4HC4AGAM.js +0 -200
- package/dist/NumRegularBinEditor-VQAS3OXK.js +0 -36
- package/dist/NumRegularBinEditor.unit.spec-RGVEPB3Z.js +0 -225
- package/dist/NumSplineEditor-SXOJICHU.js +0 -190
- package/dist/NumSplineEditor.unit.spec-HF5E6ANH.js +0 -197
- package/dist/NumericDensity-LMLPMOSE.js +0 -36
- package/dist/NumericDensity.unit.spec-3ZI5EVON.js +0 -219
- package/dist/NumericHandler-Q6F6ANOS.js +0 -37
- package/dist/NumericHandler.unit.spec-E6Z5HUNZ.js +0 -217
- package/dist/RunChart2-XSNWNAIL.js +0 -756
- package/dist/RunChart2-XSNWNAIL.js.map +0 -7
- package/dist/SC-RA46YM57.js +0 -733
- package/dist/SC-RA46YM57.js.map +0 -7
- package/dist/Volcano-75UDYPVB.js +0 -1187
- package/dist/Volcano-75UDYPVB.js.map +0 -7
- package/dist/WSIViewer-GYUUXCSJ.js +0 -47933
- package/dist/WSIViewer-GYUUXCSJ.js.map +0 -7
- package/dist/WsiSamplesPlot-KMI5S2EL.js +0 -163
- package/dist/adSandbox-JTK5XEQL.js +0 -36
- package/dist/alphaGenome-JRAV6WIY.js +0 -173
- package/dist/app-JKDZL23V.js +0 -35
- package/dist/app-OEARXM6E.js +0 -47
- package/dist/bam-CYEPLBK4.js +0 -857
- package/dist/barchart-GG5UFDG4.js +0 -45
- package/dist/barchart.data-KXA66FAL.js +0 -22
- package/dist/barchart.events-P2USOIR7.js +0 -45
- package/dist/barchart.integration.spec-5QSPQQLJ.js +0 -1675
- package/dist/bars.renderer-T5R3UIBW.js +0 -12
- package/dist/block-6DVPQBSH.js +0 -6200
- package/dist/block-6DVPQBSH.js.map +0 -7
- package/dist/block.init-ZHX6DFWF.js +0 -36
- package/dist/block.mds.expressionrank-YMGYXXYT.js +0 -357
- package/dist/block.mds.geneboxplot-IAILQYX4.js +0 -826
- package/dist/block.mds.junction-BRNFNQMU.js +0 -1543
- package/dist/block.mds.svcnv-OHKC7YPO.js +0 -6799
- package/dist/block.svg-PNGK45HW.js +0 -162
- package/dist/block.tk.aicheck-SCIOJ4WN.js +0 -281
- package/dist/block.tk.ase-BABJ73GG.js +0 -363
- package/dist/block.tk.bam-LZWJ5BCQ.js +0 -1904
- package/dist/block.tk.bedgraphdot-7NQLC3XJ.js +0 -382
- package/dist/block.tk.bigwig.ui-VNY4SFD5.js +0 -209
- package/dist/block.tk.hicstraw-36A7VDRM.js +0 -821
- package/dist/block.tk.junction-D373YEMK.js +0 -2362
- package/dist/block.tk.junction.textmatrixui-FFII7J3X.js +0 -197
- package/dist/block.tk.ld-XGB6KMDO.js +0 -97
- package/dist/block.tk.menu-PEZANZBZ.js +0 -1027
- package/dist/block.tk.pgv-MU5BPTT2.js +0 -942
- package/dist/brainImaging-LVJON47N.js +0 -421
- package/dist/chat-5FDIAQJ4.js +0 -148
- package/dist/chunk-22NJUYET.js +0 -281
- package/dist/chunk-22NJUYET.js.map +0 -7
- package/dist/chunk-2J3566TA.js +0 -215
- package/dist/chunk-2OSEZCWZ.js +0 -205
- package/dist/chunk-2SRMRC6L.js +0 -421
- package/dist/chunk-2SRMRC6L.js.map +0 -7
- package/dist/chunk-5OHXYXLD.js +0 -46
- package/dist/chunk-5OHXYXLD.js.map +0 -7
- package/dist/chunk-6MSCYO7K.js +0 -119
- package/dist/chunk-75EBDB7G.js +0 -21
- package/dist/chunk-75EBDB7G.js.map +0 -7
- package/dist/chunk-7A7NMCQ3.js +0 -534
- package/dist/chunk-7FEHI46K.js +0 -20456
- package/dist/chunk-7FEHI46K.js.map +0 -7
- package/dist/chunk-AETE4F7R.js +0 -252
- package/dist/chunk-AZYDW5T7.js +0 -441
- package/dist/chunk-B6HCIAM3.js +0 -34
- package/dist/chunk-BEWDIM6H.js +0 -42
- package/dist/chunk-BEWDIM6H.js.map +0 -7
- package/dist/chunk-CCIZJAXB.js +0 -2815
- package/dist/chunk-DHZL3FBC.js +0 -107
- package/dist/chunk-DONWY7TP.js +0 -39
- package/dist/chunk-DVDDXOWT.js +0 -815
- package/dist/chunk-E6DRQJJT.js +0 -480
- package/dist/chunk-ESKU6LNC.js +0 -36
- package/dist/chunk-ESKU6LNC.js.map +0 -7
- package/dist/chunk-F6V4AYWP.js +0 -177
- package/dist/chunk-FBAJTPBU.js +0 -302
- package/dist/chunk-FGMPKWT5.js +0 -371
- package/dist/chunk-FK4MYVW2.js +0 -261
- package/dist/chunk-FK4MYVW2.js.map +0 -7
- package/dist/chunk-FMBJ4SKC.js +0 -98
- package/dist/chunk-FMBJ4SKC.js.map +0 -7
- package/dist/chunk-FOEZG4VX.js +0 -505
- package/dist/chunk-FOEZG4VX.js.map +0 -7
- package/dist/chunk-FQRLSKJC.js +0 -226
- package/dist/chunk-G6ELKVBG.js +0 -629
- package/dist/chunk-GKK3CZ6H.js +0 -4207
- package/dist/chunk-GO5SIPFE.js +0 -194
- package/dist/chunk-GPOECA3V.js +0 -386
- package/dist/chunk-GTOY3JJO.js +0 -288
- package/dist/chunk-GTOY3JJO.js.map +0 -7
- package/dist/chunk-GW7DHJYH.js +0 -439
- package/dist/chunk-GW7DHJYH.js.map +0 -7
- package/dist/chunk-H2D7EVUA.js +0 -158
- package/dist/chunk-H2K5KZP7.js +0 -95
- package/dist/chunk-H5XFH3FV.js +0 -153
- package/dist/chunk-H5XFH3FV.js.map +0 -7
- package/dist/chunk-HAMDFQIX.js +0 -228
- package/dist/chunk-HH4QLSTK.js +0 -4952
- package/dist/chunk-HH4QLSTK.js.map +0 -7
- package/dist/chunk-IBTPGSYI.js +0 -526
- package/dist/chunk-IBTPGSYI.js.map +0 -7
- package/dist/chunk-IC7SUXJD.js +0 -82
- package/dist/chunk-IC7SUXJD.js.map +0 -7
- package/dist/chunk-IGEQI6MR.js +0 -1561
- package/dist/chunk-IGEQI6MR.js.map +0 -7
- package/dist/chunk-IIRU6VK2.js +0 -2672
- package/dist/chunk-ILF2GKBY.js +0 -1205
- package/dist/chunk-IP4T477W.js +0 -92
- package/dist/chunk-IQIXGTQV.js +0 -84
- package/dist/chunk-IQIXGTQV.js.map +0 -7
- package/dist/chunk-IXT4U5CE.js +0 -91
- package/dist/chunk-IXT4U5CE.js.map +0 -7
- package/dist/chunk-JHOGX5VE.js +0 -272
- package/dist/chunk-JOXUBWN3.js +0 -381
- package/dist/chunk-K57RR3FD.js +0 -142
- package/dist/chunk-K6JLCMVL.js +0 -129
- package/dist/chunk-KISFQDQE.js +0 -258
- package/dist/chunk-KISFQDQE.js.map +0 -7
- package/dist/chunk-KSFSM46X.js +0 -100
- package/dist/chunk-KVG7FTTK.js +0 -470
- package/dist/chunk-LEDPPLQK.js +0 -158
- package/dist/chunk-LUTT3MBZ.js +0 -1150
- package/dist/chunk-MDL2HG3N.js +0 -257
- package/dist/chunk-MDL2HG3N.js.map +0 -7
- package/dist/chunk-MNRYCG2S.js +0 -1271
- package/dist/chunk-MPJHDHBA.js +0 -2784
- package/dist/chunk-MXI3NXRB.js +0 -407
- package/dist/chunk-O4PXELXF.js +0 -615
- package/dist/chunk-ORPCSG6T.js +0 -14
- package/dist/chunk-OUKDZKSZ.js +0 -334
- package/dist/chunk-OUKDZKSZ.js.map +0 -7
- package/dist/chunk-P5HLYAHP.js +0 -1087
- package/dist/chunk-PIACSJPH.js +0 -148
- package/dist/chunk-PQABAAEZ.js +0 -31
- package/dist/chunk-PSMDCZET.js +0 -46
- package/dist/chunk-PSMDCZET.js.map +0 -7
- package/dist/chunk-RFIVPTMS.js +0 -217
- package/dist/chunk-RSU37SVQ.js +0 -54
- package/dist/chunk-RTC4U4PH.js +0 -2327
- package/dist/chunk-RTC4U4PH.js.map +0 -7
- package/dist/chunk-RZ5JP44H.js +0 -276
- package/dist/chunk-RZ5JP44H.js.map +0 -7
- package/dist/chunk-SPAIFVM2.js +0 -1155
- package/dist/chunk-SPAIFVM2.js.map +0 -7
- package/dist/chunk-T2HYA2KL.js +0 -55
- package/dist/chunk-TCPU43TU.js +0 -1741
- package/dist/chunk-TCPU43TU.js.map +0 -7
- package/dist/chunk-TE3DK3A6.js +0 -147
- package/dist/chunk-TIQPSXFJ.js +0 -237
- package/dist/chunk-TIQPSXFJ.js.map +0 -7
- package/dist/chunk-TN5GSG34.js +0 -26
- package/dist/chunk-UBGTQMOO.js +0 -52
- package/dist/chunk-UBS5UVIY.js +0 -13624
- package/dist/chunk-UE5ZYM63.js +0 -48
- package/dist/chunk-UE5ZYM63.js.map +0 -7
- package/dist/chunk-UQACPOCM.js +0 -102
- package/dist/chunk-UR3C4SCH.js +0 -446
- package/dist/chunk-UWX7W22M.js +0 -121
- package/dist/chunk-VJ37HKM6.js +0 -368
- package/dist/chunk-VLTDUJRM.js +0 -293
- package/dist/chunk-W6UUEAEP.js +0 -6364
- package/dist/chunk-X6UPDFDX.js +0 -229
- package/dist/chunk-XD6BFNMR.js +0 -172
- package/dist/chunk-XD6BFNMR.js.map +0 -7
- package/dist/chunk-XDI4UFCZ.js +0 -467
- package/dist/chunk-XDI4UFCZ.js.map +0 -7
- package/dist/chunk-XOBD3EAM.js +0 -1425
- package/dist/chunk-XOBD3EAM.js.map +0 -7
- package/dist/chunk-Y3TDC7NU.js +0 -170
- package/dist/chunk-YOTWMCT5.js +0 -824
- package/dist/chunk-YUMPQ3CJ.js +0 -203
- package/dist/condition-VHP2L4GM.js +0 -330
- package/dist/controls-N5Q7U7JR.js +0 -39
- package/dist/controls.config-NJMW4SLR.js +0 -37
- package/dist/correlation-3LDASF5I.js +0 -96
- package/dist/cuminc-UWJ23W6C.js +0 -1147
- package/dist/cuminc.integration.spec-OZYYET3W.js +0 -676
- package/dist/customdata.inputui-2FVCVSE4.js +0 -285
- package/dist/customdata.inputui-2FVCVSE4.js.map +0 -7
- package/dist/dataDownload-4S4PE5HX.js +0 -328
- package/dist/dataDownload.integration.spec-B57LEKFZ.js +0 -191
- package/dist/databrowser.ui-N6GHEQ2P.js +0 -419
- package/dist/dictionary-UP46QRYZ.js +0 -98
- package/dist/dictionary-UP46QRYZ.js.map +0 -7
- package/dist/dnaMethylation-BOGAUAWA.js +0 -36
- package/dist/dnaMethylation.integration.spec-UAHBJSSJ.js +0 -179
- package/dist/dnaMethylation.integration.spec-UAHBJSSJ.js.map +0 -7
- package/dist/e2pca-L5EBQJNP.js +0 -348
- package/dist/ep-Z67ORKUX.js +0 -1254
- package/dist/expclust.gdc.spec-SP7VOL64.js +0 -305
- package/dist/facet-HDB4VDGU.js +0 -519
- package/dist/geneExpClustering-6ZPOLTDJ.js +0 -246
- package/dist/geneExpression-T6YIG4XQ.js +0 -312
- package/dist/geneExpression-T7QUHV5S.js +0 -36
- package/dist/geneExpression.unit.spec-DO52L5IB.js +0 -100
- package/dist/geneORA-KOUDUWUO.js +0 -276
- package/dist/geneVariant-FVR76F6I.js +0 -39
- package/dist/geneVariant-I5QUITKG.js +0 -37
- package/dist/geneVariant.integration.spec-D4IRM7B5.js +0 -196
- package/dist/genefusion.ui-35IYSZD7.js +0 -249
- package/dist/geneset-7ZHJ5KWK.js +0 -194
- package/dist/genomeBrowser.spec-VXASVLNH.js +0 -279
- package/dist/grin2-7NM56COO.js +0 -1554
- package/dist/grin2-IY26UUQI.js +0 -1031
- package/dist/gsea-TORO46C6.js +0 -45
- package/dist/hierCluster-3BKEGW6P.js +0 -58
- package/dist/hierCluster-HM3LOM6V.js +0 -62
- package/dist/hierCluster.config-LDO5IGQ5.js +0 -38
- package/dist/hierCluster.integration.spec-XO5R6CQT.js +0 -374
- package/dist/hierCluster.interactivity-NVQ6262K.js +0 -52
- package/dist/hierCluster.renderers-SWPPNBLU.js +0 -21
- package/dist/imagePlot-V4WLAPV6.js +0 -139
- package/dist/importPlot-NZKQEOX4.js +0 -8
- package/dist/isoformExpression-TIZBIGNL.js +0 -38
- package/dist/isoformExpression.unit.spec-WHH5LPFG.js +0 -124
- package/dist/isoformExpression.unit.spec-WHH5LPFG.js.map +0 -7
- package/dist/jspdf.es.min-DO4YWL2R.js +0 -40
- package/dist/launch.adhoc-JYEN42NM.js +0 -40
- package/dist/leftlabel.sample-43DL3J3H.js +0 -257
- package/dist/legacyDataset-QRSNRVUA.js +0 -119
- package/dist/lollipop-NMWZ4FVF.js +0 -166
- package/dist/maf-DS3EOVGV.js +0 -450
- package/dist/maftimeline-ZB2753S7.js +0 -591
- package/dist/matrix-RCGQWQ3C.js +0 -57
- package/dist/matrix-WTTEK4FT.js +0 -62
- package/dist/matrix.cells-UO5ASQ35.js +0 -28
- package/dist/matrix.config-3UQAT3QR.js +0 -39
- package/dist/matrix.controls-PRZ77K5L.js +0 -37
- package/dist/matrix.data-4W73RQ3H.js +0 -25
- package/dist/matrix.dom-IZFFS4RQ.js +0 -11
- package/dist/matrix.groups-5VMPI7SA.js +0 -26
- package/dist/matrix.integration.spec-2F5LDLC2.js +0 -3070
- package/dist/matrix.interactivity-MIPZ6ELV.js +0 -40
- package/dist/matrix.layout-EO5LVYRO.js +0 -42
- package/dist/matrix.legend-QBFBFEUG.js +0 -22
- package/dist/matrix.renderers-ERJXVCQL.js +0 -36
- package/dist/matrix.serieses-E23EPXHA.js +0 -21
- package/dist/matrix.sort-I4UGMEXR.js +0 -27
- package/dist/matrix.sort.unit.spec-CRGF6CSE.js +0 -470
- package/dist/matrix.sorterUi-YLSYTYLE.js +0 -18
- package/dist/matrix.sorterUi.unit.spec-ENG3ICOO.js +0 -340
- package/dist/mavb-5WR7OJHI.js +0 -730
- package/dist/mds.fimo-3ZRH7BBJ.js +0 -516
- package/dist/mds.samplescatterplot-RPXR2FVK.js +0 -1548
- package/dist/mds.survivalplot-WSSMYUZD.js +0 -481
- package/dist/oncomatrix-JKYPUJQR.js +0 -293
- package/dist/oncomatrix.spec-OEGU4DYK.js +0 -446
- package/dist/plot.2dvaf-ZGARLQNK.js +0 -375
- package/dist/plot.app-TKUJH3LK.js +0 -39
- package/dist/plot.barplot-FEIPGDZ2.js +0 -100
- package/dist/plot.boxplot-6RASUMZB.js +0 -150
- package/dist/plot.brainImaging-ZJPFWX2W.js +0 -51
- package/dist/plot.disco-2KTKB3XX.js +0 -101
- package/dist/plot.disco-2KTKB3XX.js.map +0 -7
- package/dist/plot.dzi-PC34YI6Y.js +0 -33
- package/dist/plot.ssgq-Z4UNJKWO.js +0 -137
- package/dist/plot.vaf2cov-NZ4WULKT.js +0 -257
- package/dist/plot.wsi-YYXFAZWY.js +0 -36
- package/dist/polar-X2GPIBLB.js +0 -184
- package/dist/polar2-TZ553QQH.js +0 -226
- package/dist/profile.spec-VB6VMFLY.js +0 -78
- package/dist/profileBarchart-SKJSTC7B.js +0 -265
- package/dist/profileForms-RLOGSMAQ.js +0 -438
- package/dist/profilePlot-267ZS3RG.js +0 -52
- package/dist/profileRadar-KGOBHCSF.js +0 -261
- package/dist/profileRadarFacility-MCJKSHUM.js +0 -261
- package/dist/profileRadarFacility-MCJKSHUM.js.map +0 -7
- package/dist/proteomeAbundance-JUYAYO5I.js +0 -63
- package/dist/proteomeAbundance-PGHZSVAF.js +0 -19
- package/dist/qualitative-3IECKKJM.js +0 -41
- package/dist/regression-J6FFRPXN.js +0 -54
- package/dist/regression.inputs-T7LWBSYZ.js +0 -46
- package/dist/regression.inputs.term-TT7PNX6G.js +0 -46
- package/dist/regression.inputs.values.table-SHFUNKCS.js +0 -43
- package/dist/regression.integration.spec-QKHMJTHA.js +0 -784
- package/dist/regression.integration.spec-QKHMJTHA.js.map +0 -7
- package/dist/regression.results-D4WX6VIV.js +0 -38
- package/dist/regression.spec-7SW55L7X.js +0 -706
- package/dist/report-QYOZ4BRF.js +0 -220
- package/dist/sampleScatter.spec-JCHFMGNF.js +0 -200
- package/dist/sampleView-7RPKNAZC.js +0 -46
- package/dist/samplelst-4WNPHZVG.js +0 -109
- package/dist/samplematrix-CG52DSXJ.js +0 -2196
- package/dist/sc-OJSWILSA.js +0 -84
- package/dist/scatter-LG2RMMEC.js +0 -800
- package/dist/scatter.integration.spec-QPANYTKW.js +0 -1194
- package/dist/scatter.integration.spec-QPANYTKW.js.map +0 -7
- package/dist/selectGenomeWithTklst-QXRVE6N4.js +0 -132
- package/dist/singleCellCellType-XBSRL33U.js +0 -36
- package/dist/singleCellCellType.unit.spec-YZX4CSXA.js +0 -177
- package/dist/singleCellCellType.unit.spec-YZX4CSXA.js.map +0 -7
- package/dist/singleCellGeneExpression-64ECP62X.js +0 -36
- package/dist/singleCellGeneExpression.unit.spec-CFHFXMA6.js +0 -163
- package/dist/singleCellGeneExpression.unit.spec-CFHFXMA6.js.map +0 -7
- package/dist/singleCellPlot-E5F62JY6.js +0 -51
- package/dist/singlecell-FCY5EOUV.js +0 -84
- package/dist/singlecell-S7B5V7NK.js +0 -1570
- package/dist/snp-ACKX4GRX.js +0 -36
- package/dist/snp.unit.spec-QBGHKKUD.js +0 -174
- package/dist/snplocus-7EUOW7J7.js +0 -206
- package/dist/spliceevent.a53ss.diagram-ALQZA35Z.js +0 -149
- package/dist/spliceevent.exonskip.diagram-UF7WJA5R.js +0 -275
- package/dist/spliceevent.noeventdiagram-4HPGRNRR.js +0 -458
- package/dist/ssGSEA-FDRBBBLJ.js +0 -36
- package/dist/ssGSEA.unit.spec-EZEOWJVV.js +0 -86
- package/dist/summarizeCnvGeneexp-FTL2MGAJ.js +0 -158
- package/dist/summarizeCnvGeneexp-FTL2MGAJ.js.map +0 -7
- package/dist/summarizeGeneexpSurvival-DDIF4UW6.js +0 -105
- package/dist/summarizeGeneexpSurvival-DDIF4UW6.js.map +0 -7
- package/dist/summarizeMutationCnv-L3GL5YDY.js +0 -159
- package/dist/summarizeMutationCnv-L3GL5YDY.js.map +0 -7
- package/dist/summarizeMutationDiagnosis-LALOJTHV.js +0 -38
- package/dist/summarizeMutationSurvival-TSNTSOBZ.js +0 -97
- package/dist/summary-YRHVS64T.js +0 -47
- package/dist/summary.integration.spec-766YQLQA.js +0 -412
- package/dist/summaryInput-VQ2X6GSX.js +0 -218
- package/dist/sunburst-XFOONS6K.js +0 -282
- package/dist/sunburst-XFOONS6K.js.map +0 -7
- package/dist/survival-FQXZH2MM.js +0 -44
- package/dist/survival-TVA3ZWVP.js +0 -56
- package/dist/survival.integration.spec-WFIOPD6A.js +0 -787
- package/dist/svg2pdf.es.min-EZ4UYRSH.js +0 -3157
- package/dist/svgraph-4BFBO7EL.js +0 -1385
- package/dist/svmr-ML7GAIIA.js +0 -3840
- package/dist/table-SMLMUWPP.js +0 -198
- package/dist/termCollection-22CPTISZ.js +0 -36
- package/dist/termCollection-EE6AOIVA.js +0 -177
- package/dist/termCollection.unit.spec-4DIW3CJ3.js +0 -206
- package/dist/tk-ITZCKOQ5.js +0 -44
- package/dist/tp.ui-R6HVKCBC.js +0 -1457
- package/dist/tvs.density-AQ5GD437.js +0 -18
- package/dist/tvs.dt-2263TBEJ.js +0 -37
- package/dist/tvs.dtcnv.categorical-TRRHL33N.js +0 -38
- package/dist/tvs.dtcnv.continuous-GREYNF52.js +0 -70
- package/dist/tvs.dtfusion-XOX46L3M.js +0 -38
- package/dist/tvs.dtsnvindel-IDMXT53F.js +0 -38
- package/dist/tvs.dtsv-ZDWFYH2C.js +0 -38
- package/dist/tvs.numeric-ZN2R7BH3.js +0 -21
- package/dist/tvs.samplelst-GAP76HRH.js +0 -102
- package/dist/tvs.termCollection-GQ65UKSI.js +0 -151
- package/dist/violin-JGDL62YA.js +0 -44
- package/dist/violin.integration.spec-W4NN7LBY.js +0 -1417
- package/dist/violin.integration.spec-W4NN7LBY.js.map +0 -7
- package/dist/violin.interactivity-H4RP4K5U.js +0 -36
- package/dist/violin.renderer-QPHLACDC.js +0 -38
- package/dist/vocabulary-7JACY4J2.js +0 -39
- /package/dist/{2dmaf-SLBAWGPG.js.map → 2dmaf-6ZTETSC5.js.map} +0 -0
- /package/dist/{AppHeader-MVYNRMC7.js.map → AppHeader-U7SJPIBS.js.map} +0 -0
- /package/dist/{CorrelationVolcano-TZCYC3NI.js.map → CorrelationVolcano-7SE4CTBW.js.map} +0 -0
- /package/dist/{DE-2J2SK5UT.js.map → DE-PZ7RHPBS.js.map} +0 -0
- /package/dist/{DEinput-QM3GOQHM.js.map → DEinput-UZEQIU2V.js.map} +0 -0
- /package/dist/{DifferentialAnalysis-DS7CQOT6.js.map → DifferentialAnalysis-L6BOEYVO.js.map} +0 -0
- /package/dist/{Disco.UI-J2B7GGEZ.js.map → Disco.UI-HKOUAD4P.js.map} +0 -0
- /package/dist/{DmrPlot-D5W76QPY.js.map → DmrPlot-3R24PTXP.js.map} +0 -0
- /package/dist/{GB-LM5SGUG4.js.map → GB-SZVYZASR.js.map} +0 -0
- /package/dist/{HicApp-YNBGAGKM.js.map → HicApp-SEEJETVE.js.map} +0 -0
- /package/dist/{NumBinaryEditor-4QA5DQJT.js.map → NumBinaryEditor-SDQFJ3FW.js.map} +0 -0
- /package/dist/{NumBinaryEditor.unit.spec-YWSIFTOJ.js.map → NumBinaryEditor.unit.spec-76ZZXTYC.js.map} +0 -0
- /package/dist/{NumContEditor-ZPLVZFLH.js.map → NumContEditor-G75O4YZE.js.map} +0 -0
- /package/dist/{NumContEditor.unit.spec-NBCFOCOX.js.map → NumContEditor.unit.spec-BFUZRBPL.js.map} +0 -0
- /package/dist/{NumCustomBinEditor-TXEYRVPL.js.map → NumCustomBinEditor-ILTPHCEF.js.map} +0 -0
- /package/dist/{NumCustomBinEditor.unit.spec-SQM63H4B.js.map → NumCustomBinEditor.unit.spec-GFIYV55V.js.map} +0 -0
- /package/dist/{NumDiscreteEditor-6C4OWX62.js.map → NumDiscreteEditor-5K3OKUOE.js.map} +0 -0
- /package/dist/{NumDiscreteEditor.unit.spec-4HC4AGAM.js.map → NumDiscreteEditor.unit.spec-NZ4KWPFK.js.map} +0 -0
- /package/dist/{NumRegularBinEditor-VQAS3OXK.js.map → NumRegularBinEditor-7ZJ2MEMY.js.map} +0 -0
- /package/dist/{NumRegularBinEditor.unit.spec-RGVEPB3Z.js.map → NumRegularBinEditor.unit.spec-QGVJET65.js.map} +0 -0
- /package/dist/{NumSplineEditor-SXOJICHU.js.map → NumSplineEditor-KE4UPODZ.js.map} +0 -0
- /package/dist/{NumSplineEditor.unit.spec-HF5E6ANH.js.map → NumSplineEditor.unit.spec-YQOOZA7S.js.map} +0 -0
- /package/dist/{NumericDensity-LMLPMOSE.js.map → NumericDensity-RL42P4QC.js.map} +0 -0
- /package/dist/{NumericDensity.unit.spec-3ZI5EVON.js.map → NumericDensity.unit.spec-Y6RMTYC7.js.map} +0 -0
- /package/dist/{NumericHandler-Q6F6ANOS.js.map → NumericHandler-4QIX324I.js.map} +0 -0
- /package/dist/{NumericHandler.unit.spec-E6Z5HUNZ.js.map → NumericHandler.unit.spec-T6F5QYP6.js.map} +0 -0
- /package/dist/{WsiSamplesPlot-KMI5S2EL.js.map → WsiSamplesPlot-CXGWPCDL.js.map} +0 -0
- /package/dist/{adSandbox-JTK5XEQL.js.map → adSandbox-DE4VRO4Z.js.map} +0 -0
- /package/dist/{alphaGenome-JRAV6WIY.js.map → alphaGenome-FSIGC5ZT.js.map} +0 -0
- /package/dist/{app-JKDZL23V.js.map → app-KZGKWQMU.js.map} +0 -0
- /package/dist/{app-OEARXM6E.js.map → app-MQRJ7FVL.js.map} +0 -0
- /package/dist/{bam-CYEPLBK4.js.map → bam-BDWTA4O3.js.map} +0 -0
- /package/dist/{barchart-GG5UFDG4.js.map → barchart-4Q6LVJY4.js.map} +0 -0
- /package/dist/{barchart.data-KXA66FAL.js.map → barchart.data-EXENRVMU.js.map} +0 -0
- /package/dist/{barchart.events-P2USOIR7.js.map → barchart.events-XRGND6I7.js.map} +0 -0
- /package/dist/{barchart.integration.spec-5QSPQQLJ.js.map → barchart.integration.spec-VQITP4YH.js.map} +0 -0
- /package/dist/{bars.renderer-T5R3UIBW.js.map → bars.renderer-S7A7I6BQ.js.map} +0 -0
- /package/dist/{block.init-ZHX6DFWF.js.map → block.init-NCNSE3HD.js.map} +0 -0
- /package/dist/{block.mds.expressionrank-YMGYXXYT.js.map → block.mds.expressionrank-JYZARS7T.js.map} +0 -0
- /package/dist/{block.mds.geneboxplot-IAILQYX4.js.map → block.mds.geneboxplot-FD2MCIHV.js.map} +0 -0
- /package/dist/{block.mds.junction-BRNFNQMU.js.map → block.mds.junction-LOHVQBIU.js.map} +0 -0
- /package/dist/{block.mds.svcnv-OHKC7YPO.js.map → block.mds.svcnv-Z7SAYPQL.js.map} +0 -0
- /package/dist/{block.svg-PNGK45HW.js.map → block.svg-LNJOKQNN.js.map} +0 -0
- /package/dist/{block.tk.aicheck-SCIOJ4WN.js.map → block.tk.aicheck-IXCMMAGV.js.map} +0 -0
- /package/dist/{block.tk.ase-BABJ73GG.js.map → block.tk.ase-WYRYFP6N.js.map} +0 -0
- /package/dist/{block.tk.bam-LZWJ5BCQ.js.map → block.tk.bam-EIVBNGAL.js.map} +0 -0
- /package/dist/{block.tk.bedgraphdot-7NQLC3XJ.js.map → block.tk.bedgraphdot-3FHLNCU7.js.map} +0 -0
- /package/dist/{block.tk.bigwig.ui-VNY4SFD5.js.map → block.tk.bigwig.ui-YDQU5PC4.js.map} +0 -0
- /package/dist/{block.tk.hicstraw-36A7VDRM.js.map → block.tk.hicstraw-S3ROL3CV.js.map} +0 -0
- /package/dist/{block.tk.junction-D373YEMK.js.map → block.tk.junction-DL7RNWX3.js.map} +0 -0
- /package/dist/{block.tk.junction.textmatrixui-FFII7J3X.js.map → block.tk.junction.textmatrixui-Z6I7IEDY.js.map} +0 -0
- /package/dist/{block.tk.ld-XGB6KMDO.js.map → block.tk.ld-XHVU6L56.js.map} +0 -0
- /package/dist/{block.tk.menu-PEZANZBZ.js.map → block.tk.menu-FPLAEEFY.js.map} +0 -0
- /package/dist/{block.tk.pgv-MU5BPTT2.js.map → block.tk.pgv-6ZZ2QGNO.js.map} +0 -0
- /package/dist/{brainImaging-LVJON47N.js.map → brainImaging-VSOOMITW.js.map} +0 -0
- /package/dist/{chat-5FDIAQJ4.js.map → chat-LW23PIG5.js.map} +0 -0
- /package/dist/{chunk-PQABAAEZ.js.map → chunk-2LULD7RN.js.map} +0 -0
- /package/dist/{chunk-LEDPPLQK.js.map → chunk-3AGB6HL4.js.map} +0 -0
- /package/dist/{chunk-T2HYA2KL.js.map → chunk-3AVDNIDN.js.map} +0 -0
- /package/dist/{chunk-JOXUBWN3.js.map → chunk-3DCABJHB.js.map} +0 -0
- /package/dist/{chunk-UQACPOCM.js.map → chunk-3JMB3OSC.js.map} +0 -0
- /package/dist/{chunk-2J3566TA.js.map → chunk-3UEMY45Y.js.map} +0 -0
- /package/dist/{chunk-ILF2GKBY.js.map → chunk-4RR4KPRJ.js.map} +0 -0
- /package/dist/{chunk-TE3DK3A6.js.map → chunk-5HCB4HNL.js.map} +0 -0
- /package/dist/{chunk-IP4T477W.js.map → chunk-5RFB7TYT.js.map} +0 -0
- /package/dist/{chunk-7A7NMCQ3.js.map → chunk-5UMPBVA6.js.map} +0 -0
- /package/dist/{chunk-MXI3NXRB.js.map → chunk-6C2SBTLR.js.map} +0 -0
- /package/dist/{chunk-UBS5UVIY.js.map → chunk-6LAE5AVA.js.map} +0 -0
- /package/dist/{chunk-JHOGX5VE.js.map → chunk-7VV43ICF.js.map} +0 -0
- /package/dist/{chunk-O4PXELXF.js.map → chunk-A742TQD2.js.map} +0 -0
- /package/dist/{chunk-E6DRQJJT.js.map → chunk-AFLFPYJI.js.map} +0 -0
- /package/dist/{chunk-DONWY7TP.js.map → chunk-AQ4OP4GR.js.map} +0 -0
- /package/dist/{chunk-FQRLSKJC.js.map → chunk-BAY47D5E.js.map} +0 -0
- /package/dist/{chunk-TN5GSG34.js.map → chunk-CFHKYLDY.js.map} +0 -0
- /package/dist/{chunk-K6JLCMVL.js.map → chunk-CTAKX5CT.js.map} +0 -0
- /package/dist/{chunk-Y3TDC7NU.js.map → chunk-D4QFQQWJ.js.map} +0 -0
- /package/dist/{chunk-YUMPQ3CJ.js.map → chunk-DGMK7SXX.js.map} +0 -0
- /package/dist/{chunk-UR3C4SCH.js.map → chunk-DNCSPTOQ.js.map} +0 -0
- /package/dist/{chunk-IIRU6VK2.js.map → chunk-DTDQKGIQ.js.map} +0 -0
- /package/dist/{chunk-K57RR3FD.js.map → chunk-E4NVHKWD.js.map} +0 -0
- /package/dist/{chunk-GKK3CZ6H.js.map → chunk-E6KEZENR.js.map} +0 -0
- /package/dist/{chunk-X6UPDFDX.js.map → chunk-FRBYOOWT.js.map} +0 -0
- /package/dist/{chunk-UWX7W22M.js.map → chunk-FVWCYGJL.js.map} +0 -0
- /package/dist/{chunk-CCIZJAXB.js.map → chunk-I4IKRKYJ.js.map} +0 -0
- /package/dist/{chunk-W6UUEAEP.js.map → chunk-IEQSUAIO.js.map} +0 -0
- /package/dist/{chunk-UBGTQMOO.js.map → chunk-JMPSZMDD.js.map} +0 -0
- /package/dist/{chunk-MPJHDHBA.js.map → chunk-JXOL73PT.js.map} +0 -0
- /package/dist/{chunk-KSFSM46X.js.map → chunk-K62XUHA4.js.map} +0 -0
- /package/dist/{chunk-DVDDXOWT.js.map → chunk-KQMEJUWI.js.map} +0 -0
- /package/dist/{chunk-FGMPKWT5.js.map → chunk-LI7FE335.js.map} +0 -0
- /package/dist/{chunk-AZYDW5T7.js.map → chunk-MV6O4I2B.js.map} +0 -0
- /package/dist/{chunk-PIACSJPH.js.map → chunk-MXNSW55L.js.map} +0 -0
- /package/dist/{chunk-HAMDFQIX.js.map → chunk-NB7NLFGZ.js.map} +0 -0
- /package/dist/{chunk-FBAJTPBU.js.map → chunk-NGGWK6HX.js.map} +0 -0
- /package/dist/{chunk-P5HLYAHP.js.map → chunk-OGGFS66K.js.map} +0 -0
- /package/dist/{chunk-DHZL3FBC.js.map → chunk-Q7PYFSNU.js.map} +0 -0
- /package/dist/{chunk-GPOECA3V.js.map → chunk-QMI222IJ.js.map} +0 -0
- /package/dist/{chunk-AETE4F7R.js.map → chunk-QRIRWDIW.js.map} +0 -0
- /package/dist/{chunk-ORPCSG6T.js.map → chunk-R6L6NVEC.js.map} +0 -0
- /package/dist/{chunk-B6HCIAM3.js.map → chunk-RLTLYKHO.js.map} +0 -0
- /package/dist/{chunk-VLTDUJRM.js.map → chunk-S5ZI6N2I.js.map} +0 -0
- /package/dist/{chunk-H2D7EVUA.js.map → chunk-S7T7OZC7.js.map} +0 -0
- /package/dist/{chunk-F6V4AYWP.js.map → chunk-SEQLC4AD.js.map} +0 -0
- /package/dist/{chunk-RSU37SVQ.js.map → chunk-TEZLFSOV.js.map} +0 -0
- /package/dist/{chunk-YOTWMCT5.js.map → chunk-UEMTP6ZC.js.map} +0 -0
- /package/dist/{chunk-6MSCYO7K.js.map → chunk-UJU3Q7QJ.js.map} +0 -0
- /package/dist/{chunk-RFIVPTMS.js.map → chunk-VIPMLSZP.js.map} +0 -0
- /package/dist/{chunk-LUTT3MBZ.js.map → chunk-VUUZJANK.js.map} +0 -0
- /package/dist/{chunk-2OSEZCWZ.js.map → chunk-WGHO2NCP.js.map} +0 -0
- /package/dist/{chunk-GO5SIPFE.js.map → chunk-WPHOEG56.js.map} +0 -0
- /package/dist/{chunk-KVG7FTTK.js.map → chunk-WS5XVKPJ.js.map} +0 -0
- /package/dist/{chunk-MNRYCG2S.js.map → chunk-X6URQAFD.js.map} +0 -0
- /package/dist/{chunk-VJ37HKM6.js.map → chunk-YALAQWX4.js.map} +0 -0
- /package/dist/{chunk-H2K5KZP7.js.map → chunk-YY4CKQJ6.js.map} +0 -0
- /package/dist/{chunk-G6ELKVBG.js.map → chunk-Z3KV6SC2.js.map} +0 -0
- /package/dist/{condition-VHP2L4GM.js.map → condition-JKQIRMMW.js.map} +0 -0
- /package/dist/{controls-N5Q7U7JR.js.map → controls-324AGOZG.js.map} +0 -0
- /package/dist/{controls.config-NJMW4SLR.js.map → controls.config-TA4NNARU.js.map} +0 -0
- /package/dist/{correlation-3LDASF5I.js.map → correlation-3Z36TKC2.js.map} +0 -0
- /package/dist/{cuminc-UWJ23W6C.js.map → cuminc-4DY2CSZF.js.map} +0 -0
- /package/dist/{cuminc.integration.spec-OZYYET3W.js.map → cuminc.integration.spec-SFQPLMSF.js.map} +0 -0
- /package/dist/{dataDownload-4S4PE5HX.js.map → dataDownload-3AE2N7KI.js.map} +0 -0
- /package/dist/{dataDownload.integration.spec-B57LEKFZ.js.map → dataDownload.integration.spec-DKOT6BJP.js.map} +0 -0
- /package/dist/{databrowser.ui-N6GHEQ2P.js.map → databrowser.ui-ATODRS5P.js.map} +0 -0
- /package/dist/{dnaMethylation-BOGAUAWA.js.map → dnaMethylation-TVA5YMOR.js.map} +0 -0
- /package/dist/{e2pca-L5EBQJNP.js.map → e2pca-KHVDNFEZ.js.map} +0 -0
- /package/dist/{ep-Z67ORKUX.js.map → ep-B5GAAMNM.js.map} +0 -0
- /package/dist/{expclust.gdc.spec-SP7VOL64.js.map → expclust.gdc.spec-EDPX7V6K.js.map} +0 -0
- /package/dist/{facet-HDB4VDGU.js.map → facet-ZCSXKXIO.js.map} +0 -0
- /package/dist/{geneExpClustering-6ZPOLTDJ.js.map → geneExpClustering-ERNCMAED.js.map} +0 -0
- /package/dist/{geneExpression-T7QUHV5S.js.map → geneExpression-HUOXWETT.js.map} +0 -0
- /package/dist/{geneExpression-T6YIG4XQ.js.map → geneExpression-X2KXJPND.js.map} +0 -0
- /package/dist/{geneExpression.unit.spec-DO52L5IB.js.map → geneExpression.unit.spec-5QQB4ISW.js.map} +0 -0
- /package/dist/{geneORA-KOUDUWUO.js.map → geneORA-B5UK77KL.js.map} +0 -0
- /package/dist/{geneVariant-FVR76F6I.js.map → geneVariant-7MGUAIZ6.js.map} +0 -0
- /package/dist/{geneVariant-I5QUITKG.js.map → geneVariant-FK3KZJ2K.js.map} +0 -0
- /package/dist/{geneVariant.integration.spec-D4IRM7B5.js.map → geneVariant.integration.spec-C6TYWKIC.js.map} +0 -0
- /package/dist/{genefusion.ui-35IYSZD7.js.map → genefusion.ui-VKAINMY7.js.map} +0 -0
- /package/dist/{geneset-7ZHJ5KWK.js.map → geneset-673KAZVX.js.map} +0 -0
- /package/dist/{genomeBrowser.spec-VXASVLNH.js.map → genomeBrowser.spec-T6TQCJ3O.js.map} +0 -0
- /package/dist/{grin2-7NM56COO.js.map → grin2-376BD4XY.js.map} +0 -0
- /package/dist/{grin2-IY26UUQI.js.map → grin2-OALS75LC.js.map} +0 -0
- /package/dist/{gsea-TORO46C6.js.map → gsea-25LD2LGP.js.map} +0 -0
- /package/dist/{hierCluster-3BKEGW6P.js.map → hierCluster-7KU3K52V.js.map} +0 -0
- /package/dist/{hierCluster-HM3LOM6V.js.map → hierCluster-M5VVWKQK.js.map} +0 -0
- /package/dist/{hierCluster.config-LDO5IGQ5.js.map → hierCluster.config-EDO3SH2P.js.map} +0 -0
- /package/dist/{hierCluster.integration.spec-XO5R6CQT.js.map → hierCluster.integration.spec-UOX7J2XD.js.map} +0 -0
- /package/dist/{hierCluster.interactivity-NVQ6262K.js.map → hierCluster.interactivity-FEFZDXML.js.map} +0 -0
- /package/dist/{hierCluster.renderers-SWPPNBLU.js.map → hierCluster.renderers-A6MEGO2B.js.map} +0 -0
- /package/dist/{imagePlot-V4WLAPV6.js.map → imagePlot-FPXZ2H5Z.js.map} +0 -0
- /package/dist/{importPlot-NZKQEOX4.js.map → importPlot-VKWPSFEK.js.map} +0 -0
- /package/dist/{isoformExpression-TIZBIGNL.js.map → isoformExpression-2R2TOB6P.js.map} +0 -0
- /package/dist/{jspdf.es.min-DO4YWL2R.js.map → jspdf.es.min-FC3BCETM.js.map} +0 -0
- /package/dist/{launch.adhoc-JYEN42NM.js.map → launch.adhoc-242RS6DW.js.map} +0 -0
- /package/dist/{leftlabel.sample-43DL3J3H.js.map → leftlabel.sample-OJW3AE64.js.map} +0 -0
- /package/dist/{legacyDataset-QRSNRVUA.js.map → legacyDataset-PBCPC5I7.js.map} +0 -0
- /package/dist/{lollipop-NMWZ4FVF.js.map → lollipop-TRQ3LK7Y.js.map} +0 -0
- /package/dist/{maf-DS3EOVGV.js.map → maf-ZBOLN2FE.js.map} +0 -0
- /package/dist/{maftimeline-ZB2753S7.js.map → maftimeline-GVX7NJP7.js.map} +0 -0
- /package/dist/{matrix-RCGQWQ3C.js.map → matrix-73KRNXLM.js.map} +0 -0
- /package/dist/{matrix-WTTEK4FT.js.map → matrix-US3OXYRY.js.map} +0 -0
- /package/dist/{matrix.cells-UO5ASQ35.js.map → matrix.cells-U7AQNEBP.js.map} +0 -0
- /package/dist/{matrix.config-3UQAT3QR.js.map → matrix.config-Q57D7C3F.js.map} +0 -0
- /package/dist/{matrix.controls-PRZ77K5L.js.map → matrix.controls-AWXDRSWP.js.map} +0 -0
- /package/dist/{matrix.data-4W73RQ3H.js.map → matrix.data-EEIY6AO4.js.map} +0 -0
- /package/dist/{matrix.dom-IZFFS4RQ.js.map → matrix.dom-6QL3AJMW.js.map} +0 -0
- /package/dist/{matrix.groups-5VMPI7SA.js.map → matrix.groups-CUB6UWC5.js.map} +0 -0
- /package/dist/{matrix.integration.spec-2F5LDLC2.js.map → matrix.integration.spec-PQH67KRM.js.map} +0 -0
- /package/dist/{matrix.interactivity-MIPZ6ELV.js.map → matrix.interactivity-JW4AXAWO.js.map} +0 -0
- /package/dist/{matrix.layout-EO5LVYRO.js.map → matrix.layout-I56KRVCO.js.map} +0 -0
- /package/dist/{matrix.legend-QBFBFEUG.js.map → matrix.legend-42LQGAGX.js.map} +0 -0
- /package/dist/{matrix.renderers-ERJXVCQL.js.map → matrix.renderers-IX3FCNBK.js.map} +0 -0
- /package/dist/{matrix.serieses-E23EPXHA.js.map → matrix.serieses-4B2WB526.js.map} +0 -0
- /package/dist/{matrix.sort-I4UGMEXR.js.map → matrix.sort-BJACNR7G.js.map} +0 -0
- /package/dist/{matrix.sort.unit.spec-CRGF6CSE.js.map → matrix.sort.unit.spec-3KKDKIPY.js.map} +0 -0
- /package/dist/{matrix.sorterUi-YLSYTYLE.js.map → matrix.sorterUi-W6XFYZY2.js.map} +0 -0
- /package/dist/{matrix.sorterUi.unit.spec-ENG3ICOO.js.map → matrix.sorterUi.unit.spec-CMJ7EBIW.js.map} +0 -0
- /package/dist/{mavb-5WR7OJHI.js.map → mavb-ROAE6WYA.js.map} +0 -0
- /package/dist/{mds.fimo-3ZRH7BBJ.js.map → mds.fimo-UGK5OWCF.js.map} +0 -0
- /package/dist/{mds.samplescatterplot-RPXR2FVK.js.map → mds.samplescatterplot-5KFUAYSB.js.map} +0 -0
- /package/dist/{mds.survivalplot-WSSMYUZD.js.map → mds.survivalplot-2EVNZUX5.js.map} +0 -0
- /package/dist/{oncomatrix-JKYPUJQR.js.map → oncomatrix-UGFXSXQJ.js.map} +0 -0
- /package/dist/{oncomatrix.spec-OEGU4DYK.js.map → oncomatrix.spec-FEP7BR7L.js.map} +0 -0
- /package/dist/{plot.2dvaf-ZGARLQNK.js.map → plot.2dvaf-WXGLWCOC.js.map} +0 -0
- /package/dist/{plot.app-TKUJH3LK.js.map → plot.app-IZAFRTBU.js.map} +0 -0
- /package/dist/{plot.barplot-FEIPGDZ2.js.map → plot.barplot-Z4VWOPFJ.js.map} +0 -0
- /package/dist/{plot.boxplot-6RASUMZB.js.map → plot.boxplot-QU2KZSB7.js.map} +0 -0
- /package/dist/{plot.brainImaging-ZJPFWX2W.js.map → plot.brainImaging-U643YIK7.js.map} +0 -0
- /package/dist/{plot.dzi-PC34YI6Y.js.map → plot.dzi-DWXPOOQE.js.map} +0 -0
- /package/dist/{plot.ssgq-Z4UNJKWO.js.map → plot.ssgq-GXB2GZO3.js.map} +0 -0
- /package/dist/{plot.vaf2cov-NZ4WULKT.js.map → plot.vaf2cov-EKRIADPB.js.map} +0 -0
- /package/dist/{plot.wsi-YYXFAZWY.js.map → plot.wsi-E2LLE6HI.js.map} +0 -0
- /package/dist/{polar-X2GPIBLB.js.map → polar-MZLIUXHO.js.map} +0 -0
- /package/dist/{polar2-TZ553QQH.js.map → polar2-IUVHNQM4.js.map} +0 -0
- /package/dist/{profile.spec-VB6VMFLY.js.map → profile.spec-JRW6KYUI.js.map} +0 -0
- /package/dist/{profileBarchart-SKJSTC7B.js.map → profileBarchart-N7HJMYZ5.js.map} +0 -0
- /package/dist/{profileForms-RLOGSMAQ.js.map → profileForms-Q5TPGPQP.js.map} +0 -0
- /package/dist/{profilePlot-267ZS3RG.js.map → profilePlot-TXTUYDVE.js.map} +0 -0
- /package/dist/{profileRadar-KGOBHCSF.js.map → profileRadar-ICEASI7W.js.map} +0 -0
- /package/dist/{proteomeAbundance-PGHZSVAF.js.map → proteomeAbundance-DE4NVBCN.js.map} +0 -0
- /package/dist/{proteomeAbundance-JUYAYO5I.js.map → proteomeAbundance-LTB3QR3G.js.map} +0 -0
- /package/dist/{qualitative-3IECKKJM.js.map → qualitative-DFGWQURY.js.map} +0 -0
- /package/dist/{regression-J6FFRPXN.js.map → regression-TTQTAEGD.js.map} +0 -0
- /package/dist/{regression.inputs-T7LWBSYZ.js.map → regression.inputs-2LU2XRGC.js.map} +0 -0
- /package/dist/{regression.inputs.term-TT7PNX6G.js.map → regression.inputs.term-G57GL57T.js.map} +0 -0
- /package/dist/{regression.inputs.values.table-SHFUNKCS.js.map → regression.inputs.values.table-JSEM3PXL.js.map} +0 -0
- /package/dist/{regression.results-D4WX6VIV.js.map → regression.results-3YNM6LLQ.js.map} +0 -0
- /package/dist/{regression.spec-7SW55L7X.js.map → regression.spec-S6WFCPSW.js.map} +0 -0
- /package/dist/{report-QYOZ4BRF.js.map → report-YRAV4MY4.js.map} +0 -0
- /package/dist/{sampleScatter.spec-JCHFMGNF.js.map → sampleScatter.spec-MBJ4XNTX.js.map} +0 -0
- /package/dist/{sampleView-7RPKNAZC.js.map → sampleView-IUR3ZEN7.js.map} +0 -0
- /package/dist/{samplelst-4WNPHZVG.js.map → samplelst-C2NBFGH6.js.map} +0 -0
- /package/dist/{samplematrix-CG52DSXJ.js.map → samplematrix-AOK2HHSB.js.map} +0 -0
- /package/dist/{sc-OJSWILSA.js.map → sc-XT3Z5XJI.js.map} +0 -0
- /package/dist/{scatter-LG2RMMEC.js.map → scatter-SAHKZRFL.js.map} +0 -0
- /package/dist/{selectGenomeWithTklst-QXRVE6N4.js.map → selectGenomeWithTklst-2YVZ4JWV.js.map} +0 -0
- /package/dist/{singleCellCellType-XBSRL33U.js.map → singleCellCellType-NFN5GQJM.js.map} +0 -0
- /package/dist/{singleCellGeneExpression-64ECP62X.js.map → singleCellGeneExpression-7AQGLXTR.js.map} +0 -0
- /package/dist/{singleCellPlot-E5F62JY6.js.map → singleCellPlot-IWFEG44C.js.map} +0 -0
- /package/dist/{singlecell-S7B5V7NK.js.map → singlecell-3QNV4OMZ.js.map} +0 -0
- /package/dist/{singlecell-FCY5EOUV.js.map → singlecell-EATPLH66.js.map} +0 -0
- /package/dist/{snp-ACKX4GRX.js.map → snp-UP7WL7WG.js.map} +0 -0
- /package/dist/{snp.unit.spec-QBGHKKUD.js.map → snp.unit.spec-Y5NWQ442.js.map} +0 -0
- /package/dist/{snplocus-7EUOW7J7.js.map → snplocus-WAQK2AZG.js.map} +0 -0
- /package/dist/{spliceevent.a53ss.diagram-ALQZA35Z.js.map → spliceevent.a53ss.diagram-FFK27UIB.js.map} +0 -0
- /package/dist/{spliceevent.exonskip.diagram-UF7WJA5R.js.map → spliceevent.exonskip.diagram-KWEF2OZJ.js.map} +0 -0
- /package/dist/{spliceevent.noeventdiagram-4HPGRNRR.js.map → spliceevent.noeventdiagram-PU4TI7OM.js.map} +0 -0
- /package/dist/{ssGSEA-FDRBBBLJ.js.map → ssGSEA-N6QOAVLW.js.map} +0 -0
- /package/dist/{ssGSEA.unit.spec-EZEOWJVV.js.map → ssGSEA.unit.spec-KQBNZNNP.js.map} +0 -0
- /package/dist/{summarizeMutationDiagnosis-LALOJTHV.js.map → summarizeMutationDiagnosis-5RHSG7L6.js.map} +0 -0
- /package/dist/{summarizeMutationSurvival-TSNTSOBZ.js.map → summarizeMutationSurvival-22YYXGS5.js.map} +0 -0
- /package/dist/{summary-YRHVS64T.js.map → summary-P3WIKJS7.js.map} +0 -0
- /package/dist/{summary.integration.spec-766YQLQA.js.map → summary.integration.spec-ULGRPICW.js.map} +0 -0
- /package/dist/{summaryInput-VQ2X6GSX.js.map → summaryInput-IH4EVNF5.js.map} +0 -0
- /package/dist/{survival-FQXZH2MM.js.map → survival-2ZE3N62A.js.map} +0 -0
- /package/dist/{survival-TVA3ZWVP.js.map → survival-ASCLKIII.js.map} +0 -0
- /package/dist/{survival.integration.spec-WFIOPD6A.js.map → survival.integration.spec-C5YXOY77.js.map} +0 -0
- /package/dist/{svg2pdf.es.min-EZ4UYRSH.js.map → svg2pdf.es.min-CYTPRWNB.js.map} +0 -0
- /package/dist/{svgraph-4BFBO7EL.js.map → svgraph-AYR2UPNK.js.map} +0 -0
- /package/dist/{svmr-ML7GAIIA.js.map → svmr-MOMW5DNY.js.map} +0 -0
- /package/dist/{table-SMLMUWPP.js.map → table-PQB6KCEY.js.map} +0 -0
- /package/dist/{termCollection-22CPTISZ.js.map → termCollection-5AY2AWT4.js.map} +0 -0
- /package/dist/{termCollection-EE6AOIVA.js.map → termCollection-OQMUUTW6.js.map} +0 -0
- /package/dist/{termCollection.unit.spec-4DIW3CJ3.js.map → termCollection.unit.spec-BUAXYIJK.js.map} +0 -0
- /package/dist/{tk-ITZCKOQ5.js.map → tk-EJLFFA5H.js.map} +0 -0
- /package/dist/{tp.ui-R6HVKCBC.js.map → tp.ui-WUW6A7KP.js.map} +0 -0
- /package/dist/{tvs.density-AQ5GD437.js.map → tvs.density-HSVPDDGA.js.map} +0 -0
- /package/dist/{tvs.dt-2263TBEJ.js.map → tvs.dt-MVJXQMNU.js.map} +0 -0
- /package/dist/{tvs.dtcnv.categorical-TRRHL33N.js.map → tvs.dtcnv.categorical-FIIDWVK7.js.map} +0 -0
- /package/dist/{tvs.dtcnv.continuous-GREYNF52.js.map → tvs.dtcnv.continuous-JPQU3JA2.js.map} +0 -0
- /package/dist/{tvs.dtfusion-XOX46L3M.js.map → tvs.dtfusion-BW35GOQM.js.map} +0 -0
- /package/dist/{tvs.dtsnvindel-IDMXT53F.js.map → tvs.dtsnvindel-AEMFZ4EH.js.map} +0 -0
- /package/dist/{tvs.dtsv-ZDWFYH2C.js.map → tvs.dtsv-JHTU7UFD.js.map} +0 -0
- /package/dist/{tvs.numeric-ZN2R7BH3.js.map → tvs.numeric-ICUGA4WY.js.map} +0 -0
- /package/dist/{tvs.samplelst-GAP76HRH.js.map → tvs.samplelst-VD2NFFFS.js.map} +0 -0
- /package/dist/{tvs.termCollection-GQ65UKSI.js.map → tvs.termCollection-IKE5Q74D.js.map} +0 -0
- /package/dist/{violin-JGDL62YA.js.map → violin-DPMJLHQG.js.map} +0 -0
- /package/dist/{violin.interactivity-H4RP4K5U.js.map → violin.interactivity-TS4DYUE5.js.map} +0 -0
- /package/dist/{violin.renderer-QPHLACDC.js.map → violin.renderer-53L4PXUT.js.map} +0 -0
- /package/dist/{vocabulary-7JACY4J2.js.map → vocabulary-4MPFHKYC.js.map} +0 -0
|
@@ -0,0 +1,1904 @@
|
|
|
1
|
+
import {
|
|
2
|
+
urlmap_default
|
|
3
|
+
} from "./chunk-AQ4OP4GR.js";
|
|
4
|
+
import {
|
|
5
|
+
axisstyle,
|
|
6
|
+
make_one_checkbox,
|
|
7
|
+
make_radios,
|
|
8
|
+
sayerror,
|
|
9
|
+
table2col
|
|
10
|
+
} from "./chunk-OXJ2TWDO.js";
|
|
11
|
+
import "./chunk-HJ6L54YS.js";
|
|
12
|
+
import "./chunk-V6DLLX4N.js";
|
|
13
|
+
import {
|
|
14
|
+
dofetch3
|
|
15
|
+
} from "./chunk-7RN3L2BX.js";
|
|
16
|
+
import {
|
|
17
|
+
Menu
|
|
18
|
+
} from "./chunk-A6TQGNDQ.js";
|
|
19
|
+
import "./chunk-HYZG6OPC.js";
|
|
20
|
+
import "./chunk-FN5XPUPH.js";
|
|
21
|
+
import "./chunk-LSEFWW72.js";
|
|
22
|
+
import "./chunk-5EF5U7MX.js";
|
|
23
|
+
import "./chunk-2K5DSRBJ.js";
|
|
24
|
+
import "./chunk-UCLS2SVB.js";
|
|
25
|
+
import "./chunk-MVTCBVSX.js";
|
|
26
|
+
import "./chunk-SEQLC4AD.js";
|
|
27
|
+
import "./chunk-L4QG7XZE.js";
|
|
28
|
+
import "./chunk-DQC5FFGV.js";
|
|
29
|
+
import "./chunk-KQMEJUWI.js";
|
|
30
|
+
import "./chunk-UJU3Q7QJ.js";
|
|
31
|
+
import "./chunk-WGL6FIUE.js";
|
|
32
|
+
import "./chunk-6ITDJ5UR.js";
|
|
33
|
+
import "./chunk-XYFDBYOY.js";
|
|
34
|
+
import "./chunk-TV74I3Y5.js";
|
|
35
|
+
import "./chunk-IH7ILDJS.js";
|
|
36
|
+
import {
|
|
37
|
+
axisRight
|
|
38
|
+
} from "./chunk-LOZEKOES.js";
|
|
39
|
+
import "./chunk-TOU7EVFQ.js";
|
|
40
|
+
import {
|
|
41
|
+
linear
|
|
42
|
+
} from "./chunk-OAWQ6LOO.js";
|
|
43
|
+
import "./chunk-SEEYV6P2.js";
|
|
44
|
+
import {
|
|
45
|
+
pointer_default,
|
|
46
|
+
select_default
|
|
47
|
+
} from "./chunk-NDWTN4U5.js";
|
|
48
|
+
import "./chunk-OMR2DT66.js";
|
|
49
|
+
import "./chunk-HFNDKYVF.js";
|
|
50
|
+
|
|
51
|
+
// src/block.tk.bam.js
|
|
52
|
+
var stackpagesize = 60;
|
|
53
|
+
var slider_rail_color = "#eee";
|
|
54
|
+
var slider_color = "#c7edc5";
|
|
55
|
+
var slider_color_dark = "#9ed19b";
|
|
56
|
+
var slider_color_dark_line = "#36a32f";
|
|
57
|
+
var messagerowheight = 15;
|
|
58
|
+
var stackheight_min = 7;
|
|
59
|
+
async function loadTk(tk, block) {
|
|
60
|
+
block.tkcloakon(tk);
|
|
61
|
+
block.block_setheight();
|
|
62
|
+
if (tk.uninitialized) {
|
|
63
|
+
makeTk(tk, block);
|
|
64
|
+
}
|
|
65
|
+
const regions = [];
|
|
66
|
+
let xoff = 0;
|
|
67
|
+
for (let i = block.startidx; i <= block.stopidx; i++) {
|
|
68
|
+
const r = block.rglst[i];
|
|
69
|
+
regions.push({
|
|
70
|
+
chr: r.chr,
|
|
71
|
+
start: r.start,
|
|
72
|
+
stop: r.stop,
|
|
73
|
+
width: r.width,
|
|
74
|
+
x: xoff
|
|
75
|
+
});
|
|
76
|
+
xoff += r.width + block.regionspace;
|
|
77
|
+
}
|
|
78
|
+
for (const [idx, r] of block.subpanels.entries()) {
|
|
79
|
+
xoff += r.leftpad;
|
|
80
|
+
regions.push({
|
|
81
|
+
chr: r.chr,
|
|
82
|
+
start: r.start,
|
|
83
|
+
stop: r.stop,
|
|
84
|
+
width: r.width,
|
|
85
|
+
exonsf: r.exonsf,
|
|
86
|
+
subpanelidx: idx,
|
|
87
|
+
x: xoff
|
|
88
|
+
});
|
|
89
|
+
xoff += r.width;
|
|
90
|
+
}
|
|
91
|
+
tk.regions = regions;
|
|
92
|
+
try {
|
|
93
|
+
if (tk.groups) {
|
|
94
|
+
for (const g of tk.groups) {
|
|
95
|
+
delete g.partstack;
|
|
96
|
+
delete g.dom.rightg.vslider.boxy;
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
const data = await getData(tk, block);
|
|
100
|
+
if (data.error) throw data.error;
|
|
101
|
+
if (data.colorscale) {
|
|
102
|
+
tk.colorscale = data.colorscale;
|
|
103
|
+
}
|
|
104
|
+
if (tk.variants) {
|
|
105
|
+
for (let var_idx = 0; var_idx < tk.variants.length; var_idx++) {
|
|
106
|
+
if (tk.variants[var_idx].pos != data.allele_positions[var_idx]) {
|
|
107
|
+
tk.variants[var_idx].pos = data.allele_positions[var_idx];
|
|
108
|
+
tk.variants[var_idx].ref = data.ref_alleles[var_idx];
|
|
109
|
+
tk.variants[var_idx].alt = data.alt_alleles[var_idx];
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
renderTk(data, tk, block);
|
|
114
|
+
block.tkcloakoff(tk, {});
|
|
115
|
+
} catch (e) {
|
|
116
|
+
if (e.stack) console.log(e.stack);
|
|
117
|
+
if (tk.pileup_shown) {
|
|
118
|
+
tk.dom.pileup_axis.selectAll("*").remove();
|
|
119
|
+
tk.dom.pileup_img.attr("width", 0);
|
|
120
|
+
}
|
|
121
|
+
if (tk.groups) {
|
|
122
|
+
for (const g of tk.groups) {
|
|
123
|
+
g.dom.img_fullstack.attr("width", 0).attr("height", 0);
|
|
124
|
+
g.dom.img_partstack.attr("width", 0).attr("height", 0);
|
|
125
|
+
g.dom.img_cover.attr("width", 0).attr("height", 0);
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
tk.height_main = tk.height = 100;
|
|
129
|
+
if (typeof e == "string" && e.startsWith("No reads in view range")) {
|
|
130
|
+
tk.leftlabel_count.text("");
|
|
131
|
+
tk.leftlabel_skip.text("");
|
|
132
|
+
}
|
|
133
|
+
block.tkcloakoff(tk, { error: e.message || e });
|
|
134
|
+
}
|
|
135
|
+
setLeftlabelWidth(tk, block);
|
|
136
|
+
block.block_setheight();
|
|
137
|
+
}
|
|
138
|
+
async function getData(tk, block, additional = {}) {
|
|
139
|
+
const body = {
|
|
140
|
+
genome: block.genome.name,
|
|
141
|
+
regions: tk.regions,
|
|
142
|
+
nucleotide_length: block.exonsf,
|
|
143
|
+
pileupheight: tk.pileupheight,
|
|
144
|
+
...additional
|
|
145
|
+
};
|
|
146
|
+
if (tk.gdcFile) {
|
|
147
|
+
body.gdcFileUUID = tk.gdcFile.uuid;
|
|
148
|
+
body.gdcFilePosition = tk.gdcFile.position;
|
|
149
|
+
}
|
|
150
|
+
if (tk.variants) {
|
|
151
|
+
body.variant = tk.variants.map((m) => m.chr + "." + m.pos + "." + m.ref + "." + m.alt).join(".");
|
|
152
|
+
body.strictness = tk.strictness;
|
|
153
|
+
body.diff_score_plotwidth = tk.dom.diff_score_plotwidth;
|
|
154
|
+
if (Number.isFinite(tk.max_diff_score)) {
|
|
155
|
+
body.max_diff_score = tk.max_diff_score;
|
|
156
|
+
body.min_diff_score = tk.min_diff_score;
|
|
157
|
+
}
|
|
158
|
+
} else if (tk.sv) {
|
|
159
|
+
if (tk.sv[0].strandA == "+") {
|
|
160
|
+
tk.sv[0].strandA = "positive";
|
|
161
|
+
} else if (tk.sv[0].strandA == "-") {
|
|
162
|
+
tk.sv[0].strandA = "negative";
|
|
163
|
+
}
|
|
164
|
+
if (tk.sv[0].strandB == "+") {
|
|
165
|
+
tk.sv[0].strandB = "positive";
|
|
166
|
+
} else if (tk.sv[0].strandB == "-") {
|
|
167
|
+
tk.sv[0].strandB = "negative";
|
|
168
|
+
}
|
|
169
|
+
body.sv = tk.sv.map((m) => m.chrA + "." + m.startA + "." + m.strandA + "." + m.chrB + "." + m.startB + "." + m.strandB).join(".");
|
|
170
|
+
}
|
|
171
|
+
if (tk.variants && tk.alleleAlreadyUpdated) {
|
|
172
|
+
body.alleleAlreadyUpdated = 1;
|
|
173
|
+
body.refseqs = tk.variants.refseqs;
|
|
174
|
+
body.altseqs = tk.variants.altseqs;
|
|
175
|
+
body.leftflankseqs = tk.variants.leftflankseqs;
|
|
176
|
+
body.rightflankseqs = tk.variants.rightflankseqs;
|
|
177
|
+
body.ref_positions = tk.variants.ref_positions;
|
|
178
|
+
body.refalleles = tk.variants.refalleles;
|
|
179
|
+
body.altalleles = tk.variants.altalleles;
|
|
180
|
+
}
|
|
181
|
+
if (tk.uninitialized) {
|
|
182
|
+
body.getcolorscale = 1;
|
|
183
|
+
delete tk.uninitialized;
|
|
184
|
+
}
|
|
185
|
+
if (tk.asPaired) body.asPaired = 1;
|
|
186
|
+
if ("nochr" in tk) body.nochr = tk.nochr;
|
|
187
|
+
if (tk.file) body.file = tk.file;
|
|
188
|
+
if (tk.url) body.url = tk.url;
|
|
189
|
+
if (tk.indexURL) body.indexURL = tk.indexURL;
|
|
190
|
+
if (tk.drop_pcrduplicates) body.drop_pcrduplicates = 1;
|
|
191
|
+
if (tk.drop_supplementary_alignments) body.drop_supplementary_alignments = 1;
|
|
192
|
+
if (window.devicePixelRatio > 1) body.devicePixelRatio = window.devicePixelRatio;
|
|
193
|
+
const data = await dofetch3("tkbam", { headers: getHeaders(tk), body });
|
|
194
|
+
if (tk.variants && !tk.alleleAlreadyUpdated) {
|
|
195
|
+
tk.variants.refseqs = data.refseqs;
|
|
196
|
+
tk.variants.altseqs = data.altseqs;
|
|
197
|
+
tk.variants.refalleles = data.refalleles;
|
|
198
|
+
tk.variants.altalleles = data.altalleles;
|
|
199
|
+
tk.variants.leftflankseqs = data.leftflankseqs;
|
|
200
|
+
tk.variants.rightflankseqs = data.rightflankseqs;
|
|
201
|
+
tk.variants.ref_positions = data.ref_positions;
|
|
202
|
+
tk.alleleAlreadyUpdated = true;
|
|
203
|
+
}
|
|
204
|
+
if (data.error) throw data.error;
|
|
205
|
+
return data;
|
|
206
|
+
}
|
|
207
|
+
function renderTk(data, tk, block) {
|
|
208
|
+
if ("nochr" in data) tk.nochr = data.nochr;
|
|
209
|
+
if (data.pileup_data) {
|
|
210
|
+
tk.pileup_shown = true;
|
|
211
|
+
tk.dom.pileup_img.attr("xlink:href", data.pileup_data.src).attr("width", data.pileup_data.width).attr("height", tk.pileupheight);
|
|
212
|
+
tk.dom.pileup_axis.selectAll("*").remove();
|
|
213
|
+
const scale = linear().domain([0, data.pileup_data.maxValue]).range([tk.pileupheight, 0]);
|
|
214
|
+
axisstyle({
|
|
215
|
+
axis: tk.dom.pileup_axis.call(axisRight().scale(scale).ticks(5)),
|
|
216
|
+
// at most 5 ticks
|
|
217
|
+
color: "black",
|
|
218
|
+
showline: true
|
|
219
|
+
});
|
|
220
|
+
} else {
|
|
221
|
+
tk.pileup_shown = false;
|
|
222
|
+
tk.dom.pileup_axis.selectAll("*").remove();
|
|
223
|
+
tk.dom.pileup_img.attr("width", 0);
|
|
224
|
+
}
|
|
225
|
+
if (data.count.read_limit_reached) {
|
|
226
|
+
tk.toomanyreads = true;
|
|
227
|
+
tk.dom.read_limit_text.text(
|
|
228
|
+
`Downsampled to ${data.groups.reduce((i, j) => i + j.count.r, 0)} from ${data.count.read_limit_reached} reads. Try zooming into a smaller region.`
|
|
229
|
+
).attr("x", data.pileup_data.width / 2).attr("transform", "scale(1)");
|
|
230
|
+
} else {
|
|
231
|
+
tk.toomanyreads = false;
|
|
232
|
+
tk.dom.read_limit_text.attr("transform", "scale(0)");
|
|
233
|
+
}
|
|
234
|
+
if (!tk.groups) {
|
|
235
|
+
tk.groups = [];
|
|
236
|
+
for (const g of data.groups) {
|
|
237
|
+
const gd = makeGroup(g, tk, block, data);
|
|
238
|
+
tk.groups.push(gd);
|
|
239
|
+
}
|
|
240
|
+
} else {
|
|
241
|
+
updateExistingGroups(data, tk, block);
|
|
242
|
+
}
|
|
243
|
+
may_render_variant(data, tk, block);
|
|
244
|
+
for (const g of tk.groups) {
|
|
245
|
+
g.dom.message_rowg.selectAll("*").remove();
|
|
246
|
+
let y = 0;
|
|
247
|
+
for (const m of g.data.messages) {
|
|
248
|
+
const msg = g.dom.message_rowg.append("text").attr("x", block.width / 2).attr("y", y + messagerowheight - 1).attr("font-size", messagerowheight).attr("text-anchor", "middle").text(m.t);
|
|
249
|
+
if (m.isheader && !tk.gdcFile) {
|
|
250
|
+
msg.attr("class", "sja_clbtext2").on("click", () => {
|
|
251
|
+
click_groupheader(tk, g, block);
|
|
252
|
+
});
|
|
253
|
+
}
|
|
254
|
+
y += messagerowheight;
|
|
255
|
+
}
|
|
256
|
+
}
|
|
257
|
+
setTkHeight(tk);
|
|
258
|
+
let countr = 0, countt = 0;
|
|
259
|
+
for (const g of tk.groups) {
|
|
260
|
+
countr += g.data.count.r;
|
|
261
|
+
if (tk.asPaired) {
|
|
262
|
+
countt += g.data.count.t;
|
|
263
|
+
}
|
|
264
|
+
}
|
|
265
|
+
tk.leftlabel_count.text(
|
|
266
|
+
(countr ? countr + " read" + (countr > 1 ? "s" : "") : "") + (countt ? ", " + countt + " template" + (countt > 1 ? "s" : "") : "")
|
|
267
|
+
);
|
|
268
|
+
if (data.count.skipped) {
|
|
269
|
+
tk.leftlabel_skip.text(`${data.count.skipped} read${data.count.skipped > 1 ? "s" : ""} skipped`);
|
|
270
|
+
} else {
|
|
271
|
+
tk.leftlabel_skip.text("");
|
|
272
|
+
}
|
|
273
|
+
tk.read_alignment_diff_scores_asc = data.read_alignment_diff_scores_asc;
|
|
274
|
+
}
|
|
275
|
+
function setLeftlabelWidth(tk, block) {
|
|
276
|
+
const lst = [
|
|
277
|
+
tk.tklabel.node().getBBox().width,
|
|
278
|
+
tk.leftlabel_count.node().getBBox().width,
|
|
279
|
+
tk.leftlabel_skip.node().getBBox().width,
|
|
280
|
+
tk.leftlabel_about ? tk.leftlabel_about.node().getBBox().width : 0
|
|
281
|
+
];
|
|
282
|
+
if (tk.show_readnames) {
|
|
283
|
+
for (const g of tk.groups) lst.push(g.ReadNameMaxwidth);
|
|
284
|
+
}
|
|
285
|
+
tk.leftLabelMaxwidth = Math.max(...lst);
|
|
286
|
+
block.setllabel();
|
|
287
|
+
}
|
|
288
|
+
function may_render_variant(data, tk, block) {
|
|
289
|
+
if (!tk.dom.variantg || tk.sv) return;
|
|
290
|
+
let var_idx = 0;
|
|
291
|
+
for (const g of tk.groups) {
|
|
292
|
+
if (g.data.type.includes("support_alt")) {
|
|
293
|
+
if (g.variantg) {
|
|
294
|
+
g.variantg.selectAll("*").remove();
|
|
295
|
+
} else {
|
|
296
|
+
g.variantg = tk.glider.append("g");
|
|
297
|
+
}
|
|
298
|
+
let x1, x2;
|
|
299
|
+
{
|
|
300
|
+
const hits = block.seekcoord(tk.variants[0].chr, tk.variants[var_idx].pos);
|
|
301
|
+
if (hits[0]) {
|
|
302
|
+
x1 = hits[0].x - block.exonsf / 2;
|
|
303
|
+
}
|
|
304
|
+
}
|
|
305
|
+
{
|
|
306
|
+
const hits = block.seekcoord(tk.variants[0].chr, tk.variants[var_idx].pos + tk.variants[var_idx].ref.length);
|
|
307
|
+
if (hits[0]) {
|
|
308
|
+
x2 = hits[0].x - block.exonsf / 2;
|
|
309
|
+
}
|
|
310
|
+
}
|
|
311
|
+
if (x1 === void 0 || x2 === void 0 || x1 >= block.width || x2 <= 0) return;
|
|
312
|
+
let variant_box_width = x2 - x1;
|
|
313
|
+
if (x2 > data.pileup_data.width) {
|
|
314
|
+
variant_box_width = data.pileup_data.width - x1;
|
|
315
|
+
} else if (x1 < 0) {
|
|
316
|
+
variant_box_width = x2;
|
|
317
|
+
}
|
|
318
|
+
if (tk.variants.length == 1) {
|
|
319
|
+
g.variantg.append("rect").attr("x", Math.max(0, x1)).attr("width", variant_box_width).attr("height", tk.dom.variantrowheight).attr("fill", "grey");
|
|
320
|
+
} else {
|
|
321
|
+
g.variantg.append("rect").attr("x", Math.max(0, x1)).attr("width", variant_box_width).attr("height", tk.dom.variantrowheight).attr("fill", g.data.group_color);
|
|
322
|
+
}
|
|
323
|
+
const variant_string = tk.variants[0].chr + "." + (data.allele_positions[var_idx] + 1).toString() + "." + data.ref_alleles[var_idx] + "." + data.alt_alleles[var_idx];
|
|
324
|
+
let variant_start_text_pos = 0;
|
|
325
|
+
const space_param = 10;
|
|
326
|
+
const pad_param = 15;
|
|
327
|
+
const var_str = g.variantg.append("text").attr("y", tk.dom.variantrowheight - 2).attr("font-size", tk.dom.variantrowheight).text(variant_string);
|
|
328
|
+
const var_str_bbox = var_str.node().getBBox();
|
|
329
|
+
if (var_str_bbox.width + space_param < x1) {
|
|
330
|
+
variant_start_text_pos = x1 - var_str_bbox.width - space_param;
|
|
331
|
+
} else if (var_str_bbox.width < variant_box_width) {
|
|
332
|
+
variant_start_text_pos = Math.max(0, x1) + (variant_box_width - var_str_bbox.width) / 2;
|
|
333
|
+
} else if (x2 + var_str_bbox.width < data.pileup_data.width) {
|
|
334
|
+
variant_start_text_pos = x2 + space_param;
|
|
335
|
+
}
|
|
336
|
+
var_str.attr("x", variant_start_text_pos);
|
|
337
|
+
if (data.refalleleerror == true) {
|
|
338
|
+
let text_start_pos = 0;
|
|
339
|
+
const incorrect_string = g.variantg.append("text").attr("x", text_start_pos).attr("y", tk.dom.variantrowheight).style("fill", "red").attr("font-size", tk.dom.variantrowheight).text("Incorrect reference allele");
|
|
340
|
+
const incorrect_ref_bbox = incorrect_string.node().getBBox();
|
|
341
|
+
if (variant_start_text_pos == 0 && incorrect_ref_bbox.width + space_param < x1 - var_str_bbox.width - space_param) {
|
|
342
|
+
text_start_pos = var_str_bbox.width + space_param;
|
|
343
|
+
} else if (variant_start_text_pos == 0 && incorrect_ref_bbox.width + space_param > x1 - var_str_bbox.width - space_param) {
|
|
344
|
+
text_start_pos = x2 + space_param;
|
|
345
|
+
} else if (var_str_bbox.width + space_param < x1 && x2 + incorrect_ref_bbox.width + space_param < data.pileup_data.width) {
|
|
346
|
+
text_start_pos = x2 + space_param;
|
|
347
|
+
} else if (var_str_bbox.width + space_param < x1 && x2 + incorrect_ref_bbox.width + space_param >= data.pileup_data.width && incorrect_ref_bbox.width + space_param < variant_box_width) {
|
|
348
|
+
text_start_pos = Math.max(0, x1);
|
|
349
|
+
} else if (var_str_bbox.width + space_param < x1 && x2 + incorrect_ref_bbox.width + space_param >= data.pileup_data.width) {
|
|
350
|
+
text_start_pos = x1 - var_str_bbox.width - space_param * 2 - incorrect_ref_bbox.width;
|
|
351
|
+
} else if (var_str_bbox.width < variant_box_width && incorrect_ref_bbox.width + space_param < x1) {
|
|
352
|
+
text_start_pos = x1 - incorrect_ref_bbox.width - space_param;
|
|
353
|
+
} else if (var_str_bbox.width < variant_box_width && incorrect_ref_bbox.width + space_param >= x1) {
|
|
354
|
+
text_start_pos = x2 + space_param;
|
|
355
|
+
} else if (x2 + var_str_bbox.width < data.pileup_data.width && incorrect_ref_bbox.width + space_param < x1) {
|
|
356
|
+
text_start_pos = x1 - incorrect_ref_bbox.width - space_param;
|
|
357
|
+
} else if (x2 + var_str_bbox.width < data.pileup_data.width && incorrect_ref_bbox.width + space_param >= x1) {
|
|
358
|
+
text_start_pos = x2 + var_str_bbox.width + 2 * space_param;
|
|
359
|
+
} else if (x2 + var_str_bbox.width < data.pileup_data.width && incorrect_ref_bbox.width < variant_box_width) {
|
|
360
|
+
text_start_pos = Math.max(0, x1);
|
|
361
|
+
}
|
|
362
|
+
incorrect_string.attr("x", text_start_pos);
|
|
363
|
+
}
|
|
364
|
+
var_idx += 1;
|
|
365
|
+
}
|
|
366
|
+
}
|
|
367
|
+
if (tk.variants.length == 1) {
|
|
368
|
+
tk.fs_string.text("FS = " + data.strand_probability);
|
|
369
|
+
if (data.strand_significance) {
|
|
370
|
+
tk.fs_string.style("fill", "red");
|
|
371
|
+
} else {
|
|
372
|
+
tk.fs_string.style("fill", "black");
|
|
373
|
+
}
|
|
374
|
+
tk.fs_string.on("click", (event) => {
|
|
375
|
+
tk.tktip.clear().showunder(event.target);
|
|
376
|
+
tk.tktip.d.append("div").style("width", "350px").html(
|
|
377
|
+
`Fisher strand (FS) analysis score containing p-values in phred scale (-10*log(p-value)). If <a href='https://gatk.broadinstitute.org/hc/en-us/articles/360035890471' target='_blank'>FS>60</a>, the variant maybe a sequencing artifact and highlighted in red.
|
|
378
|
+
</br></br>
|
|
379
|
+
To compute the p-value, Fisher's exact test is used for variants with a sequencing depth <= 300. If depth > 300 and each individual category > 150, chi-squared test is used. Following table displays read counts in each category.`
|
|
380
|
+
);
|
|
381
|
+
const table = tk.tktip.d.append("table").style("margin-top", "20px").style("border-spacing", "5px");
|
|
382
|
+
{
|
|
383
|
+
const tr = table.append("tr").style("font-weight", "bold");
|
|
384
|
+
tr.append("td");
|
|
385
|
+
tr.append("td").text("Alternative");
|
|
386
|
+
tr.append("td").text("Reference");
|
|
387
|
+
}
|
|
388
|
+
{
|
|
389
|
+
const tr = table.append("tr");
|
|
390
|
+
tr.append("td").text("Forward").style("font-weight", "bold");
|
|
391
|
+
tr.append("td").text(data.alternate_forward_count);
|
|
392
|
+
tr.append("td").text(data.reference_forward_count);
|
|
393
|
+
}
|
|
394
|
+
{
|
|
395
|
+
const tr = table.append("tr");
|
|
396
|
+
tr.append("td").text("Reverse").style("font-weight", "bold");
|
|
397
|
+
tr.append("td").text(data.alternate_reverse_count);
|
|
398
|
+
tr.append("td").text(data.reference_reverse_count);
|
|
399
|
+
}
|
|
400
|
+
});
|
|
401
|
+
}
|
|
402
|
+
if (Number.isFinite(data.max_diff_score) && !tk.dom.alleleSimilarityHeaderLabel) {
|
|
403
|
+
tk.dom.alleleSimilarityHeaderLabel = tk.dom.alleleSimilarityHeaderG.append("text").attr("y", 2 * tk.dom.variantrowheight).attr("font-size", tk.dom.variantrowheight).attr("class", "sja_clbtext2").text("Allele similarity");
|
|
404
|
+
const html_text = [
|
|
405
|
+
"Allele similarity: This chart shows the allele to which the read has maximum sequence similarity. In case of alternative and reference alleles, all reads in the same group have same color. In case of none category, color representing allele with maximum sequence color is displayed. In case of ambiguous category, for each read colors representing each alleles having equal similarity to each other are displayed."
|
|
406
|
+
];
|
|
407
|
+
let var_idx2 = 0;
|
|
408
|
+
html_text.push("<br>Allele color codes:");
|
|
409
|
+
let old_pos = tk.variants[0].pos;
|
|
410
|
+
let old_ref_length = tk.variants[0].ref.length;
|
|
411
|
+
tk.is_same_ref = true;
|
|
412
|
+
let ref_color;
|
|
413
|
+
for (const g of tk.groups) {
|
|
414
|
+
if (g.data.type.includes("support_alt")) {
|
|
415
|
+
let test_text = '<svg width="10" height="10" style = "display:inline-block;"><rect width="10" height="10" style="fill:' + g.data.group_color + ';" /> </svg> ' + tk.variants[var_idx2].alt;
|
|
416
|
+
html_text.push(test_text);
|
|
417
|
+
if (tk.variants[var_idx2].pos != old_pos || tk.variants[var_idx2].ref.length != old_ref_length) {
|
|
418
|
+
tk.is_same_ref = false;
|
|
419
|
+
}
|
|
420
|
+
var_idx2 += 1;
|
|
421
|
+
} else if (g.data.type == "support_ref") {
|
|
422
|
+
ref_color = g.data.group_color;
|
|
423
|
+
}
|
|
424
|
+
}
|
|
425
|
+
if (!ref_color) {
|
|
426
|
+
ref_color = "#47C8FF";
|
|
427
|
+
}
|
|
428
|
+
if (tk.is_same_ref == true) {
|
|
429
|
+
html_text.push(
|
|
430
|
+
'<svg width="10" height="10" style = "display:inline-block;"><rect width="10" height="10" style="fill:' + ref_color + ';" /> </svg> ' + tk.variants[0].ref
|
|
431
|
+
);
|
|
432
|
+
} else {
|
|
433
|
+
html_text.push(
|
|
434
|
+
'<svg width="10" height="10" style = "display:inline-block;"><rect width="10" height="10" style="fill:' + ref_color + ';" /> </svg> Combined reference allele'
|
|
435
|
+
);
|
|
436
|
+
}
|
|
437
|
+
if (!tk.gdcFile) {
|
|
438
|
+
html_text.push(
|
|
439
|
+
"<br><a href='https://proteinpaint.stjude.org/bam' target='_blank'>Click here to view details of this method</a>."
|
|
440
|
+
);
|
|
441
|
+
}
|
|
442
|
+
tk.dom.alleleSimilarityHeaderLabel.on("click", (event) => {
|
|
443
|
+
const b = event.target.getBoundingClientRect();
|
|
444
|
+
tk.tktip.clear().show(b.x - 250, b.y);
|
|
445
|
+
tk.tktip.d.append("div").style("width", "300px").html(html_text.join("<br>"));
|
|
446
|
+
});
|
|
447
|
+
}
|
|
448
|
+
}
|
|
449
|
+
function setTkHeight(tk) {
|
|
450
|
+
let h = 0;
|
|
451
|
+
if (tk.pileup_shown) h += tk.pileupheight + tk.pileupbottompad;
|
|
452
|
+
if (tk.toomanyreads) {
|
|
453
|
+
h += tk.dom.read_limit_height;
|
|
454
|
+
tk.dom.read_limit_text.attr("y", h);
|
|
455
|
+
h += tk.dom.read_limit_bottompad;
|
|
456
|
+
}
|
|
457
|
+
if (tk.dom.variantg) {
|
|
458
|
+
tk.dom.variantg.attr("transform", "translate(0," + h + ")");
|
|
459
|
+
}
|
|
460
|
+
if (tk.dom.alleleSimilarityHeaderG) {
|
|
461
|
+
tk.dom.alleleSimilarityHeaderG.attr("transform", "translate(0," + (tk.pileupheight - tk.pileupbottompad * 2) + ")");
|
|
462
|
+
}
|
|
463
|
+
let var_idx = 0;
|
|
464
|
+
for (const g of tk.groups) {
|
|
465
|
+
if (g.data.type.includes("support_alt")) {
|
|
466
|
+
g.variantg.attr("transform", "translate(0," + h + ")");
|
|
467
|
+
h += tk.dom.variantrowheight + tk.dom.variantrowbottompad;
|
|
468
|
+
var_idx += 1;
|
|
469
|
+
}
|
|
470
|
+
g.dom.groupg.transition().attr("transform", "translate(0," + h + ")");
|
|
471
|
+
g.dom.rightg.transition().attr("transform", "translate(0," + h + ")");
|
|
472
|
+
g.msgheight = messagerowheight * g.data.messages.length;
|
|
473
|
+
g.dom.leftg.transition().attr("transform", "translate(0," + (h + g.msgheight) + ")");
|
|
474
|
+
g.dom.imgg.transition().attr("transform", "translate(0," + g.msgheight + ")");
|
|
475
|
+
if (tk.variants) {
|
|
476
|
+
g.dom.diff_score_barplot_fullstack.transition().attr("transform", "translate(0," + g.msgheight + ")");
|
|
477
|
+
}
|
|
478
|
+
if (g.partstack) {
|
|
479
|
+
if (tk.variants) {
|
|
480
|
+
g.dom.diff_score_barplot_partstack.transition().attr("transform", "translate(0," + g.msgheight + ")");
|
|
481
|
+
g.dom.rightg.vslider.g.transition().attr("transform", "translate(" + tk.dom.diff_score_plotwidth * 1.1 + "," + g.msgheight + ") scale(1)");
|
|
482
|
+
} else {
|
|
483
|
+
g.dom.rightg.vslider.g.transition().attr("transform", "translate(0,0) scale(1)");
|
|
484
|
+
}
|
|
485
|
+
}
|
|
486
|
+
h += g.data.height + g.msgheight;
|
|
487
|
+
if (g.data.type.includes("support_alt") && var_idx < tk.variants.length) {
|
|
488
|
+
h += tk.dom.variantrowheight;
|
|
489
|
+
}
|
|
490
|
+
}
|
|
491
|
+
tk.height_main = tk.height = h;
|
|
492
|
+
tk.height_main += tk.toppad + tk.bottompad;
|
|
493
|
+
}
|
|
494
|
+
function updateExistingGroups(data, tk, block) {
|
|
495
|
+
for (let i = 0; i < tk.groups.length; i++) {
|
|
496
|
+
const group = data.groups.find((g) => g.type == tk.groups[i].data.type);
|
|
497
|
+
if (!group) {
|
|
498
|
+
deleteGroupDom(tk.groups[i]);
|
|
499
|
+
tk.groups.splice(i, 1);
|
|
500
|
+
}
|
|
501
|
+
}
|
|
502
|
+
for (const gd of data.groups) {
|
|
503
|
+
const group = tk.groups.find((g) => g.data.type == gd.type);
|
|
504
|
+
if (!group) {
|
|
505
|
+
const g = makeGroup(gd, tk, block, data);
|
|
506
|
+
tk.groups.push(g);
|
|
507
|
+
} else {
|
|
508
|
+
group.data = gd;
|
|
509
|
+
update_boxes(group, tk, block);
|
|
510
|
+
group.dom.img_fullstack.attr("xlink:href", group.data.src).attr("width", group.data.width).attr("height", group.data.height);
|
|
511
|
+
if (tk.variants) {
|
|
512
|
+
group.ReadNameMaxwidth = 0;
|
|
513
|
+
if (tk.show_readnames) {
|
|
514
|
+
if (group.data.templatebox) {
|
|
515
|
+
group.dom.read_names_g.selectAll("*").remove();
|
|
516
|
+
let read_count = 1;
|
|
517
|
+
for (const read of group.data.templatebox) {
|
|
518
|
+
const read_name_bbox = group.dom.read_names_g.append("text").attr("x", 0).attr("y", group.data.height * read_count / group.data.templatebox.length).attr("text-anchor", "end").style("fill", "black").attr("font-size", group.data.height / group.data.templatebox.length).text(read.qname);
|
|
519
|
+
group.ReadNameMaxwidth = Math.max(group.ReadNameMaxwidth, read_name_bbox.node().getBBox().width);
|
|
520
|
+
read_count += 1;
|
|
521
|
+
}
|
|
522
|
+
}
|
|
523
|
+
} else {
|
|
524
|
+
group.dom.read_names_g.selectAll("*").remove();
|
|
525
|
+
group.ReadNameMaxwidth = 0;
|
|
526
|
+
}
|
|
527
|
+
if (group.my_partstack) {
|
|
528
|
+
if (group.data.allowpartstack) {
|
|
529
|
+
enter_partstack(group, tk, block, group.my_partstack, data);
|
|
530
|
+
}
|
|
531
|
+
} else {
|
|
532
|
+
group.dom.diff_score_barplot_fullstack.attr("xlink:href", gd.diff_scores_img.src).attr("width", gd.diff_scores_img.width).attr("height", gd.diff_scores_img.height);
|
|
533
|
+
}
|
|
534
|
+
}
|
|
535
|
+
group.dom.img_partstack.attr("width", 0).attr("height", 0);
|
|
536
|
+
if (tk.variants) {
|
|
537
|
+
group.dom.diff_score_barplot_partstack.attr("width", 0).attr("height", 0);
|
|
538
|
+
}
|
|
539
|
+
group.dom.rightg.vslider.g.transition().attr("transform", "scale(0)");
|
|
540
|
+
group.dom.img_cover.attr("width", group.data.width).attr("height", group.data.height);
|
|
541
|
+
}
|
|
542
|
+
}
|
|
543
|
+
}
|
|
544
|
+
function update_boxes(group, tk, block) {
|
|
545
|
+
group.dom.box_move.attr("width", 0);
|
|
546
|
+
update_box_stay(group, tk, block);
|
|
547
|
+
}
|
|
548
|
+
function update_box_stay(group, tk, block) {
|
|
549
|
+
if (!group.data.templatebox) {
|
|
550
|
+
group.dom.box_stay.attr("width", 0);
|
|
551
|
+
return;
|
|
552
|
+
}
|
|
553
|
+
if (!group.clickedtemplate) {
|
|
554
|
+
group.dom.box_stay.attr("width", 0);
|
|
555
|
+
return;
|
|
556
|
+
}
|
|
557
|
+
for (const t of group.data.templatebox) {
|
|
558
|
+
if (t.qname == group.clickedtemplate.qname) {
|
|
559
|
+
if (tk.asPaired || t.isfirst && group.clickedtemplate.isfirst || t.islast && group.clickedtemplate.islast) {
|
|
560
|
+
const bx1 = Math.max(0, t.x1);
|
|
561
|
+
const bx2 = Math.min(block.width, t.x2);
|
|
562
|
+
group.dom.box_stay.attr("width", bx2 - bx1).attr("height", t.y2 - t.y1).attr("transform", "translate(" + bx1 + "," + t.y1 + ")");
|
|
563
|
+
return;
|
|
564
|
+
}
|
|
565
|
+
}
|
|
566
|
+
}
|
|
567
|
+
group.dom.box_stay.attr("width", 0);
|
|
568
|
+
}
|
|
569
|
+
function deleteGroupDom(g) {
|
|
570
|
+
g.dom.message_rowg.remove();
|
|
571
|
+
g.dom.img_fullstack.remove();
|
|
572
|
+
g.dom.img_partstack.remove();
|
|
573
|
+
g.dom.diff_score_barplot_fullstack?.remove();
|
|
574
|
+
g.dom.diff_score_barplot_partstack?.remove();
|
|
575
|
+
g.dom.read_names_g?.remove();
|
|
576
|
+
g.dom.leftg.remove();
|
|
577
|
+
g.dom.box_stay?.remove();
|
|
578
|
+
g.dom.box_move?.remove();
|
|
579
|
+
g.dom.rightg.remove();
|
|
580
|
+
}
|
|
581
|
+
function makeTk(tk, block) {
|
|
582
|
+
if (tk.gdcFile) {
|
|
583
|
+
block.gdcBamSliceDownloadBtn.style("display", "inline-block");
|
|
584
|
+
}
|
|
585
|
+
may_add_urlparameter(tk, block);
|
|
586
|
+
if (tk.drop_pcrduplicates == void 0) {
|
|
587
|
+
tk.drop_pcrduplicates = true;
|
|
588
|
+
}
|
|
589
|
+
tk.drop_supplementary_alignments = false;
|
|
590
|
+
if (tk.show_readnames == void 0) {
|
|
591
|
+
tk.show_readnames = false;
|
|
592
|
+
}
|
|
593
|
+
tk.config_handle = block.maketkconfighandle(tk).attr("y", 10 + block.labelfontsize).on("click", () => {
|
|
594
|
+
configPanel(tk, block);
|
|
595
|
+
});
|
|
596
|
+
tk.readMenu = new Menu();
|
|
597
|
+
tk.readMenu.d.style("max-width", "90vw").style("max-height", "65vh").attr("class", "sjpp_show_scrollbar");
|
|
598
|
+
tk.multiAlignMenu = new Menu();
|
|
599
|
+
tk.multiAlignMenu.d.style("max-width", "90vw").style("max-height", "65vh").attr("class", "sjpp_show_scrollbar");
|
|
600
|
+
tk.pileupheight = 100;
|
|
601
|
+
tk.pileupbottompad = 6;
|
|
602
|
+
tk.dom = {
|
|
603
|
+
pileup_g: tk.glider.append("g"),
|
|
604
|
+
pileup_axis: tk.glider.append("g"),
|
|
605
|
+
read_limit_height: 15,
|
|
606
|
+
read_limit_bottompad: 6,
|
|
607
|
+
read_limit_g: tk.glider.append("g")
|
|
608
|
+
};
|
|
609
|
+
tk.dom.pileup_img = tk.dom.pileup_g.append("image");
|
|
610
|
+
tk.dom.read_limit_text = tk.dom.read_limit_g.append("text").style("fill", "red").attr("text-anchor", "middle").attr("font-size", tk.dom.read_limit_height).attr("transform", "scale(0)");
|
|
611
|
+
if (tk.variants) {
|
|
612
|
+
tk.dom.variantg = tk.glider.append("g");
|
|
613
|
+
tk.dom.alleleSimilarityHeaderG = tk.gright.append("g");
|
|
614
|
+
tk.dom.variantrowheight = 15;
|
|
615
|
+
tk.dom.variantrowbottompad = 5;
|
|
616
|
+
tk.dom.diff_score_plotwidth = 20;
|
|
617
|
+
tk.fs_string = block.maketklefthandle(tk, tk.pileupheight + tk.dom.variantrowheight / 2);
|
|
618
|
+
} else if (tk.sv) {
|
|
619
|
+
tk.dom.variantg = tk.glider.append("g");
|
|
620
|
+
tk.dom.variantrowheight = 15;
|
|
621
|
+
tk.dom.variantrowbottompad = 5;
|
|
622
|
+
}
|
|
623
|
+
tk.asPaired = false;
|
|
624
|
+
let laby = block.labelfontsize + 5;
|
|
625
|
+
tk.leftlabel_count = block.maketklefthandle(tk, laby);
|
|
626
|
+
laby += block.labelfontsize;
|
|
627
|
+
tk.leftlabel_skip = block.maketklefthandle(tk, laby).text("");
|
|
628
|
+
if (tk.aboutThisFile) {
|
|
629
|
+
laby += block.labelfontsize;
|
|
630
|
+
tk.leftlabel_about = block.maketklefthandle(tk, laby).text("About the BAM file").on("mouseover", (event) => {
|
|
631
|
+
tk.tktip.showunder(event.target).clear();
|
|
632
|
+
const t = table2col({ holder: tk.tktip.d });
|
|
633
|
+
for (const r of tk.aboutThisFile) t.addRow(r.k, r.v);
|
|
634
|
+
}).on("mouseout", () => {
|
|
635
|
+
tk.tktip.hide();
|
|
636
|
+
});
|
|
637
|
+
}
|
|
638
|
+
delete tk.alleleAlreadyUpdated;
|
|
639
|
+
if (tk.groups) {
|
|
640
|
+
for (const g of tk.groups) deleteGroupDom(g);
|
|
641
|
+
delete tk.groups;
|
|
642
|
+
}
|
|
643
|
+
}
|
|
644
|
+
function may_add_urlparameter(tk, block) {
|
|
645
|
+
const u2p = urlmap_default();
|
|
646
|
+
if (u2p.has("variant")) {
|
|
647
|
+
tk.variants = [];
|
|
648
|
+
if (typeof u2p.get("variant") == "string") {
|
|
649
|
+
const tmp = u2p.get("variant").split(".");
|
|
650
|
+
if (tmp.length == 4) {
|
|
651
|
+
const pos = Number(tmp[1]);
|
|
652
|
+
if (!Number.isInteger(pos)) throw "urlparam variant pos is not integer";
|
|
653
|
+
if (!tmp[2]) throw "ref allele missing";
|
|
654
|
+
if (!tmp[3]) throw "alt allele missing";
|
|
655
|
+
tk.variants.push({ chr: tmp[0], pos: pos - 1, ref: tmp[2], alt: tmp[3], strictness: 1 });
|
|
656
|
+
}
|
|
657
|
+
} else {
|
|
658
|
+
const variant_json = u2p.get("variant");
|
|
659
|
+
for (const item of variant_json.variants) {
|
|
660
|
+
if (!Number.isInteger(item.pos)) throw "urlparam variant pos is not integer";
|
|
661
|
+
if (!item.ref) throw "ref allele missing";
|
|
662
|
+
if (!item.alt) throw "alt allele missing";
|
|
663
|
+
tk.variants.push({ chr: variant_json.chr, pos: Number(item.pos) - 1, ref: item.ref, alt: item.alt });
|
|
664
|
+
}
|
|
665
|
+
}
|
|
666
|
+
if (u2p.has("strictness")) {
|
|
667
|
+
const tmp = u2p.get("strictness");
|
|
668
|
+
if (!Number.isInteger(Number(tmp))) throw "strictness must be an integer";
|
|
669
|
+
tk.strictness = Number(tmp);
|
|
670
|
+
if (tk.strictness != 1 && tk.strictness != 0) {
|
|
671
|
+
throw "strictness must be 0 or 1";
|
|
672
|
+
}
|
|
673
|
+
} else {
|
|
674
|
+
tk.strictness = 1;
|
|
675
|
+
}
|
|
676
|
+
} else if (u2p.has("sv")) {
|
|
677
|
+
const tmp = u2p.get("sv").split(".");
|
|
678
|
+
tk.sv = [];
|
|
679
|
+
if (tmp.length == 7) {
|
|
680
|
+
tk.sv.push({
|
|
681
|
+
chrA: tmp[0],
|
|
682
|
+
startA: tmp[1],
|
|
683
|
+
strandA: tmp[2],
|
|
684
|
+
chrB: tmp[3],
|
|
685
|
+
startB: tmp[4],
|
|
686
|
+
strandB: tmp[5],
|
|
687
|
+
contig: tmp[6]
|
|
688
|
+
});
|
|
689
|
+
} else if (tmp.length == 6) {
|
|
690
|
+
tk.sv.push({
|
|
691
|
+
chrA: tmp[0],
|
|
692
|
+
startA: tmp[1],
|
|
693
|
+
strandA: tmp[2],
|
|
694
|
+
chrB: tmp[3],
|
|
695
|
+
startB: tmp[4],
|
|
696
|
+
strandB: tmp[5]
|
|
697
|
+
});
|
|
698
|
+
}
|
|
699
|
+
}
|
|
700
|
+
}
|
|
701
|
+
function makeGroup(gd, tk, block, data) {
|
|
702
|
+
const group = {
|
|
703
|
+
data: gd,
|
|
704
|
+
dom: {
|
|
705
|
+
groupg: tk.glider.append("g"),
|
|
706
|
+
rightg: tk.gright.append("g"),
|
|
707
|
+
leftg: tk.gleft.append("g")
|
|
708
|
+
}
|
|
709
|
+
};
|
|
710
|
+
group.dom.message_rowg = group.dom.groupg.append("g");
|
|
711
|
+
group.dom.imgg = group.dom.groupg.append("g");
|
|
712
|
+
group.dom.rightg.vslider = group.dom.rightg.append("g");
|
|
713
|
+
group.dom.rightg.vslider.g = group.dom.rightg.vslider.append("g").attr("transform", "scale(0)");
|
|
714
|
+
if (tk.variants) {
|
|
715
|
+
group.dom.diff_score_g = group.dom.rightg.append("g");
|
|
716
|
+
group.dom.read_names_g = group.dom.leftg.append("g");
|
|
717
|
+
group.dom.diff_score_barplot_fullstack = group.dom.diff_score_g.append("image").attr("xlink:href", gd.diff_scores_img.src).attr("width", gd.diff_scores_img.width).attr("height", gd.diff_scores_img.height);
|
|
718
|
+
group.dom.diff_score_barplot_partstack = group.dom.diff_score_g.append("image").attr("xlink:href", gd.diff_scores_img.src).attr("width", 0).attr("height", 0);
|
|
719
|
+
if (!group.allowpartstack && !Number.isFinite(tk.max_diff_score) && tk.variants) {
|
|
720
|
+
tk.max_diff_score = data.max_diff_score;
|
|
721
|
+
tk.min_diff_score = data.min_diff_score;
|
|
722
|
+
}
|
|
723
|
+
let diff_score_height = tk.pileupheight + tk.dom.variantrowheight * 2;
|
|
724
|
+
if (tk.toomanyreads) {
|
|
725
|
+
diff_score_height = tk.pileupheight + tk.dom.variantrowheight * 3;
|
|
726
|
+
}
|
|
727
|
+
}
|
|
728
|
+
group.dom.img_fullstack = group.dom.imgg.append("image").attr("xlink:href", group.data.src).attr("width", group.data.width).attr("height", group.data.height);
|
|
729
|
+
group.dom.img_partstack = group.dom.imgg.append("image").attr("width", 0).attr("height", 0);
|
|
730
|
+
group.dom.box_move = group.dom.imgg.append("rect").attr("stroke", "black").attr("fill", "none");
|
|
731
|
+
group.dom.box_stay = group.dom.imgg.append("rect").attr("stroke", "magenta").attr("fill", "none");
|
|
732
|
+
let mousedownx;
|
|
733
|
+
const left_margin = tk.regions[0].x;
|
|
734
|
+
const right_margin = tk.regions[tk.regions.length - 1].x + tk.regions[tk.regions.length - 1].width;
|
|
735
|
+
group.dom.img_cover = group.dom.imgg.append("rect").attr("fill", "white").attr("fill-opacity", 0).attr("width", group.data.width).attr("height", group.data.height).on("mousedown", (event) => {
|
|
736
|
+
mousedownx = event.clientX;
|
|
737
|
+
}).on("mousemove", (event) => {
|
|
738
|
+
if (group.data.allowpartstack) {
|
|
739
|
+
return;
|
|
740
|
+
}
|
|
741
|
+
if (!group.data.templatebox) return;
|
|
742
|
+
const [mx, my] = pointer_default(event, group.dom.img_cover.node());
|
|
743
|
+
let read_number = 0;
|
|
744
|
+
for (const t of group.data.templatebox) {
|
|
745
|
+
read_number += 1;
|
|
746
|
+
const bx1 = Math.max(t.x1, left_margin);
|
|
747
|
+
const bx2 = Math.min(t.x2, right_margin);
|
|
748
|
+
if (mx > bx1 && mx < bx2 && my > t.y1 && my < t.y2) {
|
|
749
|
+
group.dom.box_move.attr("width", bx2 - bx1).attr("height", t.y2 - t.y1).attr("transform", "translate(" + bx1 + "," + t.y1 + ")");
|
|
750
|
+
if (tk.readAlignmentTable && tk.readAlignmentTableGroup == group.data.type) {
|
|
751
|
+
updateExistingMultiReadAligInfo(tk, read_number);
|
|
752
|
+
} else if (tk.readAlignmentTable && tk.readAlignmentTableGroup != group.data.type) {
|
|
753
|
+
updateExistingMultiReadAligInfo(tk, group.data.templatebox.length + 10);
|
|
754
|
+
}
|
|
755
|
+
return;
|
|
756
|
+
}
|
|
757
|
+
}
|
|
758
|
+
}).on("click", (event) => {
|
|
759
|
+
if (mousedownx != event.clientX) return;
|
|
760
|
+
const [mx, my] = pointer_default(event, group.dom.img_cover.node());
|
|
761
|
+
group.my_partstack = my;
|
|
762
|
+
if (group.data.allowpartstack) {
|
|
763
|
+
enter_partstack(group, tk, block, my, data);
|
|
764
|
+
return;
|
|
765
|
+
}
|
|
766
|
+
if (!group.data.templatebox) return;
|
|
767
|
+
tk.readMenu.clear().show(50, event.clientY);
|
|
768
|
+
let readNotShown = true;
|
|
769
|
+
for (let region_idx = 0; region_idx < tk.regions.length; region_idx += 1) {
|
|
770
|
+
for (const t of group.data.templatebox) {
|
|
771
|
+
const cx1 = Math.max(t.x1, left_margin);
|
|
772
|
+
const cx2 = Math.min(t.x2, right_margin);
|
|
773
|
+
const bx1 = Math.max(tk.regions[region_idx].x, t.x1);
|
|
774
|
+
const bx2 = Math.min(tk.regions[region_idx].x + tk.regions[region_idx].width, t.x2);
|
|
775
|
+
if (mx > bx1 && mx < bx2 && my > t.y1 && my < t.y2) {
|
|
776
|
+
if (group.clickedtemplate && group.clickedtemplate.qname == t.qname) {
|
|
777
|
+
if (tk.asPaired || t.isfirst && group.clickedtemplate.isfirst || t.islast && group.clickedtemplate.islast) {
|
|
778
|
+
delete group.clickedtemplate;
|
|
779
|
+
group.dom.box_stay.attr("width", 0);
|
|
780
|
+
break;
|
|
781
|
+
}
|
|
782
|
+
}
|
|
783
|
+
group.clickedtemplate = {
|
|
784
|
+
qname: t.qname
|
|
785
|
+
};
|
|
786
|
+
if (tk.asPaired) {
|
|
787
|
+
group.clickedtemplate.isfirst = true;
|
|
788
|
+
} else {
|
|
789
|
+
if (t.isfirst) group.clickedtemplate.isfirst = true;
|
|
790
|
+
if (t.islast) group.clickedtemplate.islast = true;
|
|
791
|
+
}
|
|
792
|
+
group.dom.box_stay.attr("width", cx2 - cx1).attr("height", t.y2 - t.y1).attr("transform", "translate(" + cx1 + "," + t.y1 + ")");
|
|
793
|
+
getReadInfo(tk, block, t, region_idx);
|
|
794
|
+
readNotShown = false;
|
|
795
|
+
}
|
|
796
|
+
}
|
|
797
|
+
}
|
|
798
|
+
if (readNotShown) tk.readMenu.hide();
|
|
799
|
+
});
|
|
800
|
+
group.dom.rightg.vslider.bar = group.dom.rightg.vslider.g.append("rect").attr("fill", slider_rail_color).attr("x", 10).attr("width", 20).on("mouseover", () => group.dom.rightg.vslider.bar.attr("fill", "#fae8e8")).on("mouseout", () => group.dom.rightg.vslider.bar.attr("fill", slider_rail_color)).on("click", () => {
|
|
801
|
+
delete group.dom.rightg.vslider.boxy;
|
|
802
|
+
delete group.partstack;
|
|
803
|
+
if (group.my_partstack) {
|
|
804
|
+
delete group.my_partstack;
|
|
805
|
+
}
|
|
806
|
+
group.ReadNameMaxwidth = 0;
|
|
807
|
+
group.data = group.data_fullstack;
|
|
808
|
+
renderGroup(group, tk, block);
|
|
809
|
+
setTkHeight(tk);
|
|
810
|
+
block.block_setheight();
|
|
811
|
+
});
|
|
812
|
+
group.dom.rightg.vslider.boxg = group.dom.rightg.vslider.g.append("g");
|
|
813
|
+
group.dom.rightg.vslider.box = group.dom.rightg.vslider.boxg.append("rect").attr("fill", slider_color).attr("width", 40).on("mousedown", (event) => {
|
|
814
|
+
event.preventDefault();
|
|
815
|
+
group.dom.rightg.vslider.box.attr("fill", slider_color_dark);
|
|
816
|
+
const scrollableheight = group.data.height;
|
|
817
|
+
const y0 = event.clientY;
|
|
818
|
+
let deltay = 0;
|
|
819
|
+
const b = select_default(document.body);
|
|
820
|
+
b.on("mousemove", (event2) => {
|
|
821
|
+
const y1 = event2.clientY;
|
|
822
|
+
const d = y1 - y0;
|
|
823
|
+
if (d < 0) {
|
|
824
|
+
if (group.dom.rightg.vslider.boxy + d <= 0) return;
|
|
825
|
+
} else {
|
|
826
|
+
if (group.dom.rightg.vslider.boxy + d >= scrollableheight - group.dom.rightg.vslider.boxh) return;
|
|
827
|
+
}
|
|
828
|
+
deltay = d;
|
|
829
|
+
if (tk.variants) {
|
|
830
|
+
group.dom.diff_score_barplot_partstack.attr(
|
|
831
|
+
"transform",
|
|
832
|
+
"translate(0," + (-1 * deltay * group.data_fullstack.stackcount * group.data.stackheight / scrollableheight + group.msgheight) + ")"
|
|
833
|
+
);
|
|
834
|
+
group.dom.read_names_g.attr(
|
|
835
|
+
"transform",
|
|
836
|
+
"translate(0," + -1 * deltay * group.data_fullstack.stackcount * group.data.stackheight / scrollableheight + ")"
|
|
837
|
+
);
|
|
838
|
+
}
|
|
839
|
+
group.dom.rightg.vslider.boxg.attr("transform", "translate(0," + (group.dom.rightg.vslider.boxy + deltay) + ")");
|
|
840
|
+
group.dom.img_partstack.attr(
|
|
841
|
+
"y",
|
|
842
|
+
-(deltay * group.data_fullstack.stackcount * group.data.stackheight / scrollableheight)
|
|
843
|
+
);
|
|
844
|
+
group.dom.box_move.attr("width", 0);
|
|
845
|
+
group.dom.box_stay.attr("width", 0);
|
|
846
|
+
});
|
|
847
|
+
b.on("mouseup", async () => {
|
|
848
|
+
group.dom.rightg.vslider.box.attr("fill", slider_color);
|
|
849
|
+
b.on("mousemove", null).on("mouseup", null);
|
|
850
|
+
if (deltay == 0) return;
|
|
851
|
+
group.dom.rightg.vslider.boxy += deltay;
|
|
852
|
+
const delta = Math.ceil(group.data_fullstack.stackcount * deltay / scrollableheight);
|
|
853
|
+
group.partstack.start += delta;
|
|
854
|
+
group.partstack.stop += delta;
|
|
855
|
+
block.tkcloakon(tk);
|
|
856
|
+
const _d = await getData(tk, block, {
|
|
857
|
+
stackstart: group.partstack.start,
|
|
858
|
+
stackstop: group.partstack.stop,
|
|
859
|
+
grouptype: group.data.type
|
|
860
|
+
});
|
|
861
|
+
group.data = _d.groups[0];
|
|
862
|
+
renderGroup(group, tk, block);
|
|
863
|
+
setTkHeight(tk);
|
|
864
|
+
block.tkcloakoff(tk, {});
|
|
865
|
+
block.block_setheight();
|
|
866
|
+
});
|
|
867
|
+
});
|
|
868
|
+
group.dom.rightg.vslider.boxtopline = group.dom.rightg.vslider.boxg.append("line").attr("stroke", slider_color_dark).attr("stroke-width", 3).attr("x2", 40).on("mouseover", () => group.dom.rightg.vslider.boxtopline.attr("stroke", slider_color_dark_line)).on("mouseout", () => group.dom.rightg.vslider.boxtopline.attr("stroke", slider_color_dark)).on("mousedown", (event) => {
|
|
869
|
+
event.preventDefault();
|
|
870
|
+
const scrollableheight = group.data.height;
|
|
871
|
+
const y0 = event.clientY;
|
|
872
|
+
let deltay = 0;
|
|
873
|
+
const b = select_default(document.body);
|
|
874
|
+
b.on("mousemove", (event2) => {
|
|
875
|
+
const y1 = event2.clientY;
|
|
876
|
+
const d = y1 - y0;
|
|
877
|
+
if (d < 0) {
|
|
878
|
+
if (group.dom.rightg.vslider.boxy + d <= 0) return;
|
|
879
|
+
} else {
|
|
880
|
+
if (group.dom.rightg.vslider.boxh - d <= stackpagesize * scrollableheight / group.data_fullstack.stackcount)
|
|
881
|
+
return;
|
|
882
|
+
}
|
|
883
|
+
deltay = d;
|
|
884
|
+
group.dom.rightg.vslider.boxg.attr("transform", "translate(0," + (group.dom.rightg.vslider.boxy + deltay) + ")");
|
|
885
|
+
group.dom.rightg.vslider.box.attr("height", group.dom.rightg.vslider.boxh - deltay);
|
|
886
|
+
group.dom.rightg.vslider.boxbotline.attr("y1", group.dom.rightg.vslider.boxh - deltay).attr("y2", group.dom.rightg.vslider.boxh - deltay);
|
|
887
|
+
});
|
|
888
|
+
b.on("mouseup", async () => {
|
|
889
|
+
b.on("mousemove", null).on("mouseup", null);
|
|
890
|
+
if (deltay == 0) return;
|
|
891
|
+
group.dom.rightg.vslider.boxy += deltay;
|
|
892
|
+
group.partstack.start += Math.ceil(group.data_fullstack.stackcount * deltay / scrollableheight);
|
|
893
|
+
block.tkcloakon(tk);
|
|
894
|
+
const _d = await getData(tk, block, {
|
|
895
|
+
stackstart: group.partstack.start,
|
|
896
|
+
stackstop: group.partstack.stop,
|
|
897
|
+
grouptype: group.data.type
|
|
898
|
+
});
|
|
899
|
+
group.data = _d.groups[0];
|
|
900
|
+
renderGroup(group, tk, block);
|
|
901
|
+
block.tkcloakoff(tk, {});
|
|
902
|
+
setTkHeight(tk);
|
|
903
|
+
block.block_setheight();
|
|
904
|
+
});
|
|
905
|
+
});
|
|
906
|
+
group.dom.rightg.vslider.boxbotline = group.dom.rightg.vslider.boxg.append("line").attr("stroke", slider_color_dark).attr("stroke-width", 3).attr("x2", 40).on("mouseover", () => group.dom.rightg.vslider.boxbotline.attr("stroke", slider_color_dark_line)).on("mouseout", () => group.dom.rightg.vslider.boxbotline.attr("stroke", slider_color_dark)).on("mousedown", (event) => {
|
|
907
|
+
event.preventDefault();
|
|
908
|
+
const scrollableheight = group.data.height;
|
|
909
|
+
const y0 = event.clientY;
|
|
910
|
+
let deltay = 0;
|
|
911
|
+
const b = select_default(document.body);
|
|
912
|
+
b.on("mousemove", (event2) => {
|
|
913
|
+
const y1 = event2.clientY;
|
|
914
|
+
const d = y1 - y0;
|
|
915
|
+
if (d < 0) {
|
|
916
|
+
if (group.dom.rightg.vslider.boxh + d <= stackpagesize * scrollableheight / group.data_fullstack.stackcount)
|
|
917
|
+
return;
|
|
918
|
+
} else {
|
|
919
|
+
if (group.dom.rightg.vslider.boxy + d >= scrollableheight - group.dom.rightg.vslider.boxh) return;
|
|
920
|
+
}
|
|
921
|
+
deltay = d;
|
|
922
|
+
group.dom.rightg.vslider.box.attr("height", group.dom.rightg.vslider.boxh + deltay);
|
|
923
|
+
group.dom.rightg.vslider.boxbotline.attr("y1", group.dom.rightg.vslider.boxh + deltay).attr("y2", group.dom.rightg.vslider.boxh + deltay);
|
|
924
|
+
});
|
|
925
|
+
b.on("mouseup", async () => {
|
|
926
|
+
b.on("mousemove", null).on("mouseup", null);
|
|
927
|
+
if (deltay == 0) return;
|
|
928
|
+
group.dom.rightg.vslider.boxh += deltay;
|
|
929
|
+
group.partstack.stop += Math.ceil(group.data_fullstack.stackcount * deltay / scrollableheight);
|
|
930
|
+
block.tkcloakon(tk);
|
|
931
|
+
const _d = await getData(tk, block, {
|
|
932
|
+
stackstart: group.partstack.start,
|
|
933
|
+
stackstop: group.partstack.stop,
|
|
934
|
+
grouptype: group.data.type
|
|
935
|
+
});
|
|
936
|
+
group.data = _d.groups[0];
|
|
937
|
+
renderGroup(group, tk, block);
|
|
938
|
+
setTkHeight(tk);
|
|
939
|
+
block.tkcloakoff(tk, {});
|
|
940
|
+
block.block_setheight();
|
|
941
|
+
});
|
|
942
|
+
});
|
|
943
|
+
return group;
|
|
944
|
+
}
|
|
945
|
+
async function align_reads_to_allele(tk, group, block) {
|
|
946
|
+
const body = {
|
|
947
|
+
alignOneGroup: group.data.type,
|
|
948
|
+
genome: block.genome.name,
|
|
949
|
+
regions: tk.regions,
|
|
950
|
+
variant: tk.variants.map((m) => m.chr + "." + m.pos + "." + m.ref + "." + m.alt).join(".")
|
|
951
|
+
};
|
|
952
|
+
if (tk.file) body.file = tk.file;
|
|
953
|
+
if (tk.url) body.url = tk.url;
|
|
954
|
+
if (tk.indexURL) body.indexURL = tk.indexURL;
|
|
955
|
+
if (tk.gdcFile) {
|
|
956
|
+
body.gdcFileUUID = tk.gdcFile.uuid;
|
|
957
|
+
body.gdcFilePosition = tk.gdcFile.position;
|
|
958
|
+
}
|
|
959
|
+
if (tk.alleleAlreadyUpdated) {
|
|
960
|
+
body.alleleAlreadyUpdated = 1;
|
|
961
|
+
body.refseqs = tk.variants.refseqs;
|
|
962
|
+
body.altseqs = tk.variants.altseqs;
|
|
963
|
+
body.refalleles = tk.variants.refalleles;
|
|
964
|
+
body.altalleles = tk.variants.altalleles;
|
|
965
|
+
body.leftflankseqs = tk.variants.leftflankseqs;
|
|
966
|
+
body.rightflankseqs = tk.variants.rightflankseqs;
|
|
967
|
+
body.ref_positions = tk.variants.ref_positions;
|
|
968
|
+
body.strictness = tk.strictness;
|
|
969
|
+
}
|
|
970
|
+
if (tk.asPaired) body.asPaired = 1;
|
|
971
|
+
if ("nochr" in tk) body.nochr = tk.nochr;
|
|
972
|
+
if (tk.drop_pcrduplicates) body.drop_pcrduplicates = 1;
|
|
973
|
+
if (tk.drop_supplementary_alignments) body.drop_supplementary_alignments = 1;
|
|
974
|
+
if (group.partstack) {
|
|
975
|
+
body.stackstart = group.partstack.start;
|
|
976
|
+
body.stackstop = group.partstack.stop;
|
|
977
|
+
body.grouptype = group.data.type;
|
|
978
|
+
}
|
|
979
|
+
return await dofetch3("tkbam", { headers: getHeaders(tk), body });
|
|
980
|
+
}
|
|
981
|
+
function getHeaders(tk) {
|
|
982
|
+
const headers = { "Content-Type": "application/json", Accept: "application/json" };
|
|
983
|
+
if (tk.gdcToken) headers["X-Auth-Token"] = tk.gdcToken;
|
|
984
|
+
return headers;
|
|
985
|
+
}
|
|
986
|
+
function configPanel(tk, block) {
|
|
987
|
+
{
|
|
988
|
+
const b = tk.config_handle.node().getBoundingClientRect();
|
|
989
|
+
tk.tkconfigtip.clear().show(b.x - 300, b.y);
|
|
990
|
+
}
|
|
991
|
+
const d = tk.tkconfigtip.d.append("div").style("max-width", "50vw");
|
|
992
|
+
{
|
|
993
|
+
const row = d.append("div");
|
|
994
|
+
row.append("span").html("Show reads as: ").style("opacity", 0.5).style("margin", "10px 5px");
|
|
995
|
+
make_radios({
|
|
996
|
+
holder: row,
|
|
997
|
+
options: [
|
|
998
|
+
{ label: "Single", value: false, checked: !tk.asPaired },
|
|
999
|
+
{ label: "Paired", value: true, checked: tk.asPaired }
|
|
1000
|
+
],
|
|
1001
|
+
styles: { margin: "10px 5px" },
|
|
1002
|
+
callback: (v) => {
|
|
1003
|
+
tk.asPaired = v;
|
|
1004
|
+
loadTk(tk, block);
|
|
1005
|
+
}
|
|
1006
|
+
});
|
|
1007
|
+
}
|
|
1008
|
+
{
|
|
1009
|
+
make_one_checkbox({
|
|
1010
|
+
holder: d.append("div"),
|
|
1011
|
+
labeltext: "Drop PCR or optical duplicates",
|
|
1012
|
+
checked: tk.drop_pcrduplicates,
|
|
1013
|
+
divstyle: { display: "block", margin: "10px 5px", height: "10px", "margin-left": "6.5px" },
|
|
1014
|
+
callback: () => {
|
|
1015
|
+
tk.drop_pcrduplicates = !tk.drop_pcrduplicates;
|
|
1016
|
+
loadTk(tk, block);
|
|
1017
|
+
}
|
|
1018
|
+
});
|
|
1019
|
+
}
|
|
1020
|
+
if (tk.variants) {
|
|
1021
|
+
make_one_checkbox({
|
|
1022
|
+
holder: d.append("div"),
|
|
1023
|
+
labeltext: "Show read names",
|
|
1024
|
+
checked: tk.show_readnames,
|
|
1025
|
+
divstyle: { display: "block", margin: "10px 5px", height: "10px", "margin-left": "6.5px" },
|
|
1026
|
+
callback: () => {
|
|
1027
|
+
tk.show_readnames = !tk.show_readnames;
|
|
1028
|
+
loadTk(tk, block);
|
|
1029
|
+
}
|
|
1030
|
+
});
|
|
1031
|
+
if (tk.variants[0].strictness == 0) {
|
|
1032
|
+
} else if (!tk.variants[0].strictness) {
|
|
1033
|
+
tk.variants[0].strictness = 1;
|
|
1034
|
+
}
|
|
1035
|
+
const row = d.append("div");
|
|
1036
|
+
row.append("span").html("Strictness: ").style("display", "block").style("height", "10px").style("opacity", 0.5).style("margin", "10px 5px").style("margin-top", "20px");
|
|
1037
|
+
make_radios({
|
|
1038
|
+
holder: row,
|
|
1039
|
+
options: [
|
|
1040
|
+
{
|
|
1041
|
+
label: 'Lenient: "None group" is not generated.',
|
|
1042
|
+
value: 0,
|
|
1043
|
+
checked: tk.strictness == 0
|
|
1044
|
+
},
|
|
1045
|
+
{
|
|
1046
|
+
label: 'Strict: "None group" is generated for reads with imperfect match to both reference and alternative alleles.',
|
|
1047
|
+
value: 1,
|
|
1048
|
+
checked: tk.strictness == 1
|
|
1049
|
+
}
|
|
1050
|
+
],
|
|
1051
|
+
styles: { display: "block", margin: "10px 5px", height: "10px", "margin-left": "30px" },
|
|
1052
|
+
callback: (v) => {
|
|
1053
|
+
tk.strictness = v;
|
|
1054
|
+
loadTk(tk, block);
|
|
1055
|
+
}
|
|
1056
|
+
});
|
|
1057
|
+
}
|
|
1058
|
+
d.append("div").style("display", "inline-block").style("height", "10px").style("margin-top", "20px").style("font-size", ".8em").html(`
|
|
1059
|
+
<ul style="padding-left:15px">
|
|
1060
|
+
<li><b>Matches</b> are rendered as gray boxes aligned to the reference.</li>
|
|
1061
|
+
<li><b>Mismatches</b> will be checked when 1 bp is wider than 1 pixel, and are rendered as red boxes aligned to the reference.</li>
|
|
1062
|
+
<li><b>Softclips</b> are rendered as blue boxes not aligned to the reference.</li>
|
|
1063
|
+
<li><b>Base qualities</b> are rendered when 1 bp is wider than 2 pixels. See color scale below. When base quality is not used or is unavailable, full colors are used.</li>
|
|
1064
|
+
<li><b>Sequences</b> from mismatch and softclip will be printed when 1 bp is wider than 7 pixels.</li>
|
|
1065
|
+
<li>An <b>insertion</b> with on-screen size wider than 1 pixel will be rendered as cyan text between aligned bases, in either a letter or the number of inserted bp. Text color scales by average base quality when that is in use.</li>
|
|
1066
|
+
<li><b>Deletions</b> are gaps joined by black horizontal lines.</li>
|
|
1067
|
+
<li><b>Split reads</b> and splice junctions are indicated by solid gray lines.</li>
|
|
1068
|
+
<li><b>Read pairs</b> are joined by dashed gray lines.</li>
|
|
1069
|
+
<li><b>Discordant reads</b> Discordant reads are colored based on their respective features as described below:<ul style="list-style-type:none;"> <li> <svg width="10" height="10" style = "display:inline-block;"> <rect width="10" height="10" style="fill:#3B7A57;" /> </svg> Read pair has wrong insert size </li> <li> <svg width="10" height="10" style = "display:inline-block;"> <rect width="10" height="10" style="fill:#6B4423;" /> </svg> Mate is unmapped </li> <li> <svg width="10" height="10" style = "display:inline-block;"> <rect width="10" height="10" style="fill:#fc6df3;" /> </svg> Wrong orientation </li> <li> <svg width="10" height="10" style = "display:inline-block;"> <rect width="10" height="10" style="fill:#d48b37;" /> </svg> Mate mapped to different chromosome </li> </ul>
|
|
1070
|
+
</li>
|
|
1071
|
+
</ul>`);
|
|
1072
|
+
d.append("div").style("margin-top", "10px").append("img").attr("width", tk.colorscale.width).attr("height", tk.colorscale.height).attr("src", tk.colorscale.src);
|
|
1073
|
+
d.append("div").style("font-size", ".8em").html(`
|
|
1074
|
+
`);
|
|
1075
|
+
}
|
|
1076
|
+
function click_groupheader(tk, group, block) {
|
|
1077
|
+
if (tk.variants) {
|
|
1078
|
+
click_groupheader_showMultiReadAlign(tk, group, block);
|
|
1079
|
+
}
|
|
1080
|
+
}
|
|
1081
|
+
function updateExistingMultiReadAligInfo(tk, read_number) {
|
|
1082
|
+
const rows = tk.readAlignmentTable._groups[0][0].querySelectorAll("tr");
|
|
1083
|
+
rows.forEach((row) => {
|
|
1084
|
+
if (row.rowIndex == read_number + 1 && !tk.is_align_gene) {
|
|
1085
|
+
row.style.setProperty("font-weight", "bold");
|
|
1086
|
+
const cols = row.querySelectorAll("td");
|
|
1087
|
+
cols.forEach((col) => {
|
|
1088
|
+
if (col.style.backgroundColor.toString() == "rgb(255, 255, 255)") {
|
|
1089
|
+
col.style.setProperty("background-color", "yellow");
|
|
1090
|
+
}
|
|
1091
|
+
});
|
|
1092
|
+
} else if (row.rowIndex == read_number + 2 && tk.is_align_gene) {
|
|
1093
|
+
row.style.setProperty("font-weight", "bold");
|
|
1094
|
+
const cols = row.querySelectorAll("td");
|
|
1095
|
+
cols.forEach((col) => {
|
|
1096
|
+
if (col.style.backgroundColor.toString() == "rgb(255, 255, 255)") {
|
|
1097
|
+
col.style.setProperty("background-color", "yellow");
|
|
1098
|
+
}
|
|
1099
|
+
});
|
|
1100
|
+
} else {
|
|
1101
|
+
row.style.setProperty("font-weight", "normal");
|
|
1102
|
+
const cols = row.querySelectorAll("td");
|
|
1103
|
+
cols.forEach((col) => {
|
|
1104
|
+
if (col.style.backgroundColor.toString() == "yellow") {
|
|
1105
|
+
col.style.setProperty("background-color", "rgb(255, 255, 255)");
|
|
1106
|
+
}
|
|
1107
|
+
});
|
|
1108
|
+
}
|
|
1109
|
+
});
|
|
1110
|
+
}
|
|
1111
|
+
async function create_gene_models_refalt(tk, block, multi_read_alig_data, group, alt_var_idx) {
|
|
1112
|
+
const gene_model_images = [];
|
|
1113
|
+
const break_points = [];
|
|
1114
|
+
const gene_model_order = [];
|
|
1115
|
+
let refalt_seq = multi_read_alig_data.alignmentData.final_read_align[0];
|
|
1116
|
+
let left_most_pos = tk.variants[0].pos - tk.variants.leftflankseqs[0].length;
|
|
1117
|
+
let right_most_pos = tk.variants[0].pos + tk.variants.rightflankseqs[0].length;
|
|
1118
|
+
if (group.data.type == "support_alt" + alt_var_idx.toString()) {
|
|
1119
|
+
left_most_pos = tk.variants[alt_var_idx].pos - tk.variants.leftflankseqs[alt_var_idx].length;
|
|
1120
|
+
right_most_pos = tk.variants[alt_var_idx].pos + tk.variants.rightflankseqs[alt_var_idx].length;
|
|
1121
|
+
}
|
|
1122
|
+
let segstart = left_most_pos;
|
|
1123
|
+
let segstop = left_most_pos;
|
|
1124
|
+
let local_alignment_width = 0;
|
|
1125
|
+
let first_row = tk.readAlignmentTable.node().children[0];
|
|
1126
|
+
let gm_nuc_count = 0;
|
|
1127
|
+
let prev_nclt_not_blank = false;
|
|
1128
|
+
let nclt_count = 0;
|
|
1129
|
+
for (const nclt of refalt_seq) {
|
|
1130
|
+
if (nclt == "-") {
|
|
1131
|
+
if (prev_nclt_not_blank == true) {
|
|
1132
|
+
break_points.push(1);
|
|
1133
|
+
gene_model_order.push("break");
|
|
1134
|
+
segstart += 1;
|
|
1135
|
+
segstop += 1;
|
|
1136
|
+
} else {
|
|
1137
|
+
const gene_model_image = await get_gene_models_refalt(block, tk, segstart, segstop - 1, local_alignment_width);
|
|
1138
|
+
const gm = {
|
|
1139
|
+
src: gene_model_image.src,
|
|
1140
|
+
width: local_alignment_width,
|
|
1141
|
+
height: gene_model_image.height,
|
|
1142
|
+
colspan: gm_nuc_count
|
|
1143
|
+
};
|
|
1144
|
+
gene_model_images.push(gm);
|
|
1145
|
+
gene_model_order.push("gene_model");
|
|
1146
|
+
gm_nuc_count = 0;
|
|
1147
|
+
segstart = left_most_pos + nclt_count + 1;
|
|
1148
|
+
segstop = left_most_pos + nclt_count + 1;
|
|
1149
|
+
local_alignment_width = 0;
|
|
1150
|
+
prev_nclt_not_blank = true;
|
|
1151
|
+
break_points.push(1);
|
|
1152
|
+
gene_model_order.push("break");
|
|
1153
|
+
}
|
|
1154
|
+
gm_nuc_count += 1;
|
|
1155
|
+
local_alignment_width += first_row.children[nclt_count].getBoundingClientRect().width;
|
|
1156
|
+
} else if (group.data.type == "support_alt" + alt_var_idx.toString() && tk.variants[alt_var_idx].alt.length > tk.variants[alt_var_idx].ref.length && // Insertion case
|
|
1157
|
+
tk.variants[alt_var_idx].pos < left_most_pos + nclt_count && tk.variants[alt_var_idx].pos + tk.variants[alt_var_idx].alt.length - 1 >= left_most_pos + nclt_count) {
|
|
1158
|
+
} else if (tk.variants[0].pos == left_most_pos + nclt_count && group.data.type == "support_alt" + alt_var_idx.toString()) {
|
|
1159
|
+
if (tk.variants[alt_var_idx].ref.length == 1 && tk.variants[alt_var_idx].alt.length == 1) {
|
|
1160
|
+
continue;
|
|
1161
|
+
}
|
|
1162
|
+
if (tk.variants[alt_var_idx].ref.length >= tk.variants[alt_var_idx].alt.length) {
|
|
1163
|
+
segstop += 1;
|
|
1164
|
+
gm_nuc_count += 1;
|
|
1165
|
+
local_alignment_width += first_row.children[nclt_count + 1].getBoundingClientRect().width;
|
|
1166
|
+
}
|
|
1167
|
+
const gene_model_image = await get_gene_models_refalt(block, tk, segstart, segstop, local_alignment_width);
|
|
1168
|
+
const gm = {
|
|
1169
|
+
src: gene_model_image.src,
|
|
1170
|
+
width: local_alignment_width,
|
|
1171
|
+
height: gene_model_image.height,
|
|
1172
|
+
colspan: gm_nuc_count
|
|
1173
|
+
};
|
|
1174
|
+
gene_model_images.push(gm);
|
|
1175
|
+
gene_model_order.push("gene_model");
|
|
1176
|
+
gm_nuc_count = 0;
|
|
1177
|
+
segstart = left_most_pos + nclt_count + tk.variants[alt_var_idx].ref.length;
|
|
1178
|
+
segstop = left_most_pos + nclt_count + tk.variants[alt_var_idx].ref.length;
|
|
1179
|
+
if (tk.variants[alt_var_idx].ref.length < tk.variants[alt_var_idx].alt.length) {
|
|
1180
|
+
break_points.push(tk.variants[0].alt.length);
|
|
1181
|
+
gene_model_order.push("break");
|
|
1182
|
+
}
|
|
1183
|
+
local_alignment_width = 0;
|
|
1184
|
+
prev_nclt_not_blank = false;
|
|
1185
|
+
} else if (nclt_count == refalt_seq.length - 1) {
|
|
1186
|
+
segstop += 1;
|
|
1187
|
+
gm_nuc_count += 1;
|
|
1188
|
+
local_alignment_width += first_row.children[nclt_count].getBoundingClientRect().width;
|
|
1189
|
+
const gene_model_image = await get_gene_models_refalt(block, tk, segstart, segstop, local_alignment_width);
|
|
1190
|
+
const gm = {
|
|
1191
|
+
src: gene_model_image.src,
|
|
1192
|
+
width: local_alignment_width,
|
|
1193
|
+
height: gene_model_image.height,
|
|
1194
|
+
colspan: gm_nuc_count
|
|
1195
|
+
};
|
|
1196
|
+
gene_model_images.push(gm);
|
|
1197
|
+
gene_model_order.push("gene_model");
|
|
1198
|
+
} else {
|
|
1199
|
+
segstop += 1;
|
|
1200
|
+
gm_nuc_count += 1;
|
|
1201
|
+
local_alignment_width += first_row.children[nclt_count].getBoundingClientRect().width;
|
|
1202
|
+
prev_nclt_not_blank = false;
|
|
1203
|
+
}
|
|
1204
|
+
nclt_count += 1;
|
|
1205
|
+
}
|
|
1206
|
+
let j = 0;
|
|
1207
|
+
let k = 0;
|
|
1208
|
+
const gene_model_tr = tk.readAlignmentTable.node().insertRow();
|
|
1209
|
+
if (tk.readAlignmentTable.node().children.length >= 3) {
|
|
1210
|
+
const first_read = tk.readAlignmentTable.node().children[2];
|
|
1211
|
+
tk.readAlignmentTable.node().insertBefore(gene_model_tr, first_read);
|
|
1212
|
+
} else {
|
|
1213
|
+
console.log("Possible problem in placing gene model in table. Please check");
|
|
1214
|
+
}
|
|
1215
|
+
for (let i = 0; i < gene_model_order.length; i++) {
|
|
1216
|
+
const gene_models_cell = gene_model_tr.insertCell();
|
|
1217
|
+
if (gene_model_order[i] == "gene_model") {
|
|
1218
|
+
const img = document.createElement("img");
|
|
1219
|
+
img.src = gene_model_images[k].src;
|
|
1220
|
+
img.width = gene_model_images[k].width;
|
|
1221
|
+
img.height = gene_model_images[k].height;
|
|
1222
|
+
gene_models_cell.appendChild(img);
|
|
1223
|
+
gene_models_cell.colSpan = gene_model_images[k].colspan;
|
|
1224
|
+
k += 1;
|
|
1225
|
+
} else if (gene_model_order[i] == "break") {
|
|
1226
|
+
gene_models_cell.colSpan = break_points[j];
|
|
1227
|
+
j += 1;
|
|
1228
|
+
}
|
|
1229
|
+
}
|
|
1230
|
+
}
|
|
1231
|
+
async function click_groupheader_showMultiReadAlign(tk, group, block) {
|
|
1232
|
+
tk.multiAlignMenu.clear().show(50, 100);
|
|
1233
|
+
const wait = tk.multiAlignMenu.d.append("div").text("Loading...");
|
|
1234
|
+
try {
|
|
1235
|
+
const data = await align_reads_to_allele(tk, group, block);
|
|
1236
|
+
if (data.error) {
|
|
1237
|
+
wait.remove();
|
|
1238
|
+
sayerror(tk.multiAlignMenu.d, "Realignment of reads in ambiguous group is not currently implemented.");
|
|
1239
|
+
setTimeout(() => tk.multiAlignMenu.d.remove(), 3e3);
|
|
1240
|
+
return;
|
|
1241
|
+
}
|
|
1242
|
+
wait.remove();
|
|
1243
|
+
let alt_var_idx = 0;
|
|
1244
|
+
let ref_start_stops = [];
|
|
1245
|
+
let highlight_regions_in_refallele = [];
|
|
1246
|
+
if (group.data.type.includes("support_alt")) {
|
|
1247
|
+
for (let var_idx = 0; var_idx < tk.variants.length; var_idx++) {
|
|
1248
|
+
if (group.data.type == "support_alt" + var_idx.toString()) {
|
|
1249
|
+
alt_var_idx = var_idx;
|
|
1250
|
+
}
|
|
1251
|
+
}
|
|
1252
|
+
} else if (group.data.type == "support_ref") {
|
|
1253
|
+
for (let var_idx = 0; var_idx < tk.variants.length; var_idx++) {
|
|
1254
|
+
ref_start_stops.push({
|
|
1255
|
+
start: tk.variants[var_idx].pos,
|
|
1256
|
+
stop: tk.variants[var_idx].pos + tk.variants[var_idx].ref.length
|
|
1257
|
+
});
|
|
1258
|
+
}
|
|
1259
|
+
ref_start_stops.sort((i, j) => i.start - j.start);
|
|
1260
|
+
let old_variant = { start: ref_start_stops[0].start, stop: ref_start_stops[0].stop };
|
|
1261
|
+
highlight_regions_in_refallele.push(ref_start_stops[0].start);
|
|
1262
|
+
let break_point = false;
|
|
1263
|
+
for (let var_idx = 1; var_idx < ref_start_stops.length; var_idx++) {
|
|
1264
|
+
if (ref_start_stops[var_idx].start <= old_variant.stop && old_variant.stop <= ref_start_stops[var_idx].stop) {
|
|
1265
|
+
old_variant = ref_start_stops[var_idx];
|
|
1266
|
+
} else if (old_variant.stop > ref_start_stops[var_idx].stop) {
|
|
1267
|
+
continue;
|
|
1268
|
+
} else {
|
|
1269
|
+
highlight_regions_in_refallele.push(old_variant.stop);
|
|
1270
|
+
highlight_regions_in_refallele.push(ref_start_stops[var_idx].start);
|
|
1271
|
+
}
|
|
1272
|
+
}
|
|
1273
|
+
highlight_regions_in_refallele.push(Math.max(old_variant.stop, ref_start_stops[ref_start_stops.length - 1].stop));
|
|
1274
|
+
}
|
|
1275
|
+
if (data.alignmentData.final_read_align.length > 0 && (group.data.type.includes("support_alt") || group.data.type == "support_ref")) {
|
|
1276
|
+
const gene_button = tk.multiAlignMenu.d.append("button").style("margin-left", "10px").text("Show gene model").on("click", async () => {
|
|
1277
|
+
tk.is_align_gene = true;
|
|
1278
|
+
gene_button.property("disabled", true);
|
|
1279
|
+
await create_gene_models_refalt(tk, block, data, group, alt_var_idx);
|
|
1280
|
+
});
|
|
1281
|
+
}
|
|
1282
|
+
create_multi_alignment_table(tk, data, group, alt_var_idx, highlight_regions_in_refallele);
|
|
1283
|
+
} catch (e) {
|
|
1284
|
+
wait.remove();
|
|
1285
|
+
sayerror(tk.multiAlignMenu.d, e);
|
|
1286
|
+
}
|
|
1287
|
+
}
|
|
1288
|
+
function create_multi_alignment_table(tk, multi_read_alig_data, group, alt_var_idx, highlight_regions_in_refallele) {
|
|
1289
|
+
let num_read_div;
|
|
1290
|
+
if (!multi_read_alig_data.alignmentData.read_count) {
|
|
1291
|
+
multi_read_alig_data.alignmentData.read_count = 0;
|
|
1292
|
+
}
|
|
1293
|
+
if (group.data.type == "support_ref") {
|
|
1294
|
+
num_read_div = tk.multiAlignMenu.d.append("div").text("Number of reads aligned to reference allele = " + multi_read_alig_data.alignmentData.read_count).style("text-align", "center");
|
|
1295
|
+
} else if (group.data.type == "support_no" || group.data.type == "support_amb") {
|
|
1296
|
+
num_read_div = tk.multiAlignMenu.d.append("div").text("Number of reads aligned = " + multi_read_alig_data.alignmentData.read_count).style("text-align", "center");
|
|
1297
|
+
} else if (group.data.type.includes("support_alt")) {
|
|
1298
|
+
let hit = 0;
|
|
1299
|
+
for (let var_idx = 0; var_idx < tk.variants.length; var_idx++) {
|
|
1300
|
+
if (group.data.type == "support_alt" + var_idx.toString()) {
|
|
1301
|
+
hit = 1;
|
|
1302
|
+
alt_var_idx = var_idx;
|
|
1303
|
+
num_read_div = tk.multiAlignMenu.d.append("div").text(
|
|
1304
|
+
"Number of reads aligned to alternative allele " + tk.variants[var_idx].alt + " = " + multi_read_alig_data.alignmentData.read_count
|
|
1305
|
+
).style("text-align", "center");
|
|
1306
|
+
}
|
|
1307
|
+
}
|
|
1308
|
+
if (hit == 0) {
|
|
1309
|
+
console.log("group.data.type:", group.data.type);
|
|
1310
|
+
console.log("Alternate allele not found");
|
|
1311
|
+
}
|
|
1312
|
+
}
|
|
1313
|
+
if (multi_read_alig_data.alignmentData.partstack_start) {
|
|
1314
|
+
const partstack_div = tk.multiAlignMenu.d.append("div").text(
|
|
1315
|
+
"Reads aligned from " + multi_read_alig_data.alignmentData.partstack_start + " to " + multi_read_alig_data.alignmentData.partstack_stop
|
|
1316
|
+
).style("text-align", "center");
|
|
1317
|
+
}
|
|
1318
|
+
const div = tk.multiAlignMenu.d.append("div").style("margin", "20px");
|
|
1319
|
+
tk.readAlignmentTable = div.append("table").style("font-family", "Courier").style("font-size", "0.8em").style("color", "#303030").style("margin", "5px 5px 20px 5px").style("border-spacing", 0).style("border-collapse", "separate").style("text-align", "center").style("empty-cells", "show");
|
|
1320
|
+
let refallele_tr = tk.readAlignmentTable.append("tr").style("color", "white").style("background-color", "white");
|
|
1321
|
+
refallele_tr.attr("id", "RefAltBar");
|
|
1322
|
+
let variant_string;
|
|
1323
|
+
let nclt_count = 0;
|
|
1324
|
+
let allele_start = 0;
|
|
1325
|
+
let variant_string_count = 0;
|
|
1326
|
+
let inside_variant_box = 1;
|
|
1327
|
+
if (group.data.type == "support_alt" + alt_var_idx.toString()) {
|
|
1328
|
+
if (tk.variants.length == 1) {
|
|
1329
|
+
variant_string = "Alternative allele";
|
|
1330
|
+
if (variant_string.length < tk.variants[alt_var_idx].alt.length) {
|
|
1331
|
+
inside_variant_box = 0;
|
|
1332
|
+
} else {
|
|
1333
|
+
variant_string = " Alternative allele";
|
|
1334
|
+
}
|
|
1335
|
+
} else {
|
|
1336
|
+
if (group.data.type == "support_alt" + alt_var_idx.toString()) {
|
|
1337
|
+
variant_string = "Alternative allele = " + tk.variants[alt_var_idx].alt;
|
|
1338
|
+
if (variant_string.length < tk.variants[alt_var_idx].alt.length) {
|
|
1339
|
+
inside_variant_box = 0;
|
|
1340
|
+
} else {
|
|
1341
|
+
variant_string = " Alternative allele = " + tk.variants[alt_var_idx].alt;
|
|
1342
|
+
}
|
|
1343
|
+
}
|
|
1344
|
+
}
|
|
1345
|
+
} else if (group.data.type == "support_ref") {
|
|
1346
|
+
if (tk.is_same_ref == false) {
|
|
1347
|
+
variant_string = "Combined reference allele";
|
|
1348
|
+
} else {
|
|
1349
|
+
variant_string = "Reference allele";
|
|
1350
|
+
}
|
|
1351
|
+
if (variant_string.length < highlight_regions_in_refallele[1] - highlight_regions_in_refallele[0]) {
|
|
1352
|
+
inside_variant_box = 0;
|
|
1353
|
+
} else {
|
|
1354
|
+
if (tk.is_same_ref == false) {
|
|
1355
|
+
variant_string = " Combined reference allele";
|
|
1356
|
+
} else {
|
|
1357
|
+
variant_string = " Reference allele";
|
|
1358
|
+
}
|
|
1359
|
+
}
|
|
1360
|
+
}
|
|
1361
|
+
tk.readAlignmentTableGroup = group.data.type;
|
|
1362
|
+
if (multi_read_alig_data.alignmentData.final_read_align.length > 0) {
|
|
1363
|
+
for (const nclt of multi_read_alig_data.alignmentData.final_read_align[0]) {
|
|
1364
|
+
nclt_count += 1;
|
|
1365
|
+
const refallele_td = refallele_tr.append("td");
|
|
1366
|
+
if (group.data.type == "support_alt" + alt_var_idx.toString() && nclt_count > tk.variants.leftflankseqs[alt_var_idx].length + multi_read_alig_data.alignmentData.gaps_before_variant && nclt_count <= tk.variants.leftflankseqs[alt_var_idx].length + tk.variants[alt_var_idx].alt.length + multi_read_alig_data.alignmentData.gaps_before_variant) {
|
|
1367
|
+
if (inside_variant_box == 1) {
|
|
1368
|
+
allele_start = 1;
|
|
1369
|
+
refallele_td.text(" ").style("text-align", "right").style("font-weight", "550").style("margin", "5px 5px 10px 5px").style("color", "black").style("background-color", "black");
|
|
1370
|
+
} else {
|
|
1371
|
+
if (variant_string_count < variant_string.length) {
|
|
1372
|
+
refallele_td.text(variant_string[variant_string_count]).style("text-align", "right").style("font-weight", "550").style("margin", "5px 5px 10px 5px").style("color", "white").style("background-color", "black");
|
|
1373
|
+
variant_string_count += 1;
|
|
1374
|
+
} else {
|
|
1375
|
+
refallele_td.text(" ").style("text-align", "right").style("font-weight", "550").style("margin", "5px 5px 10px 5px").style("color", "black").style("background-color", "black");
|
|
1376
|
+
}
|
|
1377
|
+
}
|
|
1378
|
+
} else if (group.data.type == "support_ref" && nclt_count > tk.variants.leftflankseqs[0].length + multi_read_alig_data.alignmentData.gaps_before_variant && nclt_count <= tk.variants.leftflankseqs[0].length + highlight_regions_in_refallele[1] - // For now assuming there are no breaks within ref alleles on the reference sequence.
|
|
1379
|
+
highlight_regions_in_refallele[0] + multi_read_alig_data.alignmentData.gaps_before_variant) {
|
|
1380
|
+
if (inside_variant_box == 1) {
|
|
1381
|
+
allele_start = 1;
|
|
1382
|
+
refallele_td.text("").style("text-align", "right").style("font-weight", "550").style("margin", "5px 5px 10px 5px").style("color", "black").style("background-color", "black");
|
|
1383
|
+
} else {
|
|
1384
|
+
if (variant_string_count < variant_string.length) {
|
|
1385
|
+
refallele_td.text(variant_string[variant_string_count]).style("text-align", "right").style("font-weight", "550").style("margin", "5px 5px 10px 5px").style("color", "white").style("background-color", "black");
|
|
1386
|
+
variant_string_count += 1;
|
|
1387
|
+
} else {
|
|
1388
|
+
refallele_td.text("").style("text-align", "right").style("font-weight", "550").style("margin", "5px 5px 10px 5px").style("color", "black").style("background-color", "black");
|
|
1389
|
+
}
|
|
1390
|
+
}
|
|
1391
|
+
} else if (allele_start == 1 && inside_variant_box == 1) {
|
|
1392
|
+
refallele_td.text(variant_string[variant_string_count]).style("text-align", "right").style("font-weight", "550").style("margin", "5px 5px 10px 5px").style("color", "black").style("background-color", "white");
|
|
1393
|
+
variant_string_count += 1;
|
|
1394
|
+
if (variant_string_count == variant_string.length) {
|
|
1395
|
+
allele_start = 0;
|
|
1396
|
+
}
|
|
1397
|
+
} else {
|
|
1398
|
+
refallele_td.text("").style("text-align", "right").style("font-weight", "550").style("margin", "5px 5px 10px 5px").style("color", "white").style("background-color", "white");
|
|
1399
|
+
}
|
|
1400
|
+
}
|
|
1401
|
+
let read_count = 0;
|
|
1402
|
+
for (const read of multi_read_alig_data.alignmentData.final_read_align) {
|
|
1403
|
+
let nclt_count2 = 0;
|
|
1404
|
+
const read_tr = tk.readAlignmentTable.append("tr").style("color", "white").style("background-color", "white");
|
|
1405
|
+
if (read_count == 0 && (group.data.type == "support_ref" || group.data.type == "support_alt")) {
|
|
1406
|
+
read_tr.attr("id", "RefAltSeq");
|
|
1407
|
+
} else {
|
|
1408
|
+
read_tr.attr("id", read_count.toString());
|
|
1409
|
+
}
|
|
1410
|
+
const r_colors = multi_read_alig_data.alignmentData.qual_r[read_count].split(",");
|
|
1411
|
+
const g_colors = multi_read_alig_data.alignmentData.qual_g[read_count].split(",");
|
|
1412
|
+
const b_colors = multi_read_alig_data.alignmentData.qual_b[read_count].split(",");
|
|
1413
|
+
for (const nclt of read) {
|
|
1414
|
+
nclt_count2 += 1;
|
|
1415
|
+
let nclt_td;
|
|
1416
|
+
if (read_count == 0 && (group.data.type == "support_ref" || group.data.type.includes("support_alt"))) {
|
|
1417
|
+
nclt_td = read_tr.append("td").text(nclt).style("background-color", "white").style("color", "black").style("font-weight", "550");
|
|
1418
|
+
} else {
|
|
1419
|
+
nclt_td = read_tr.append("td").text(nclt).style(
|
|
1420
|
+
"background-color",
|
|
1421
|
+
"rgb(" + r_colors[nclt_count2 - 1] + "," + g_colors[nclt_count2 - 1] + "," + b_colors[nclt_count2 - 1] + ")"
|
|
1422
|
+
);
|
|
1423
|
+
if (nclt != "-") {
|
|
1424
|
+
nclt_td.style("color", "white");
|
|
1425
|
+
} else {
|
|
1426
|
+
nclt_td.style("color", "black");
|
|
1427
|
+
}
|
|
1428
|
+
}
|
|
1429
|
+
if (group.data.type == "support_alt" + alt_var_idx.toString() && nclt_count2 > tk.variants.leftflankseqs[alt_var_idx].length + multi_read_alig_data.alignmentData.gaps_before_variant && nclt_count2 <= tk.variants.leftflankseqs[alt_var_idx].length + tk.variants[alt_var_idx].alt.length + multi_read_alig_data.alignmentData.gaps_before_variant) {
|
|
1430
|
+
nclt_td.style("color", "black");
|
|
1431
|
+
} else if (group.data.type == "support_ref" && nclt_count2 > tk.variants.leftflankseqs[0].length + multi_read_alig_data.alignmentData.gaps_before_variant && nclt_count2 <= tk.variants.leftflankseqs[0].length + highlight_regions_in_refallele[1] - // For now assuming there are no breaks within ref alleles on the reference sequence.
|
|
1432
|
+
highlight_regions_in_refallele[0] + multi_read_alig_data.alignmentData.gaps_before_variant) {
|
|
1433
|
+
nclt_td.style("color", "black");
|
|
1434
|
+
}
|
|
1435
|
+
}
|
|
1436
|
+
read_count += 1;
|
|
1437
|
+
}
|
|
1438
|
+
}
|
|
1439
|
+
}
|
|
1440
|
+
async function getReadInfo(tk, block, box, ridx) {
|
|
1441
|
+
const wait = tk.readMenu.d.append("div").text("Loading...");
|
|
1442
|
+
const param = getparam(
|
|
1443
|
+
tk.variants ? {
|
|
1444
|
+
refseqs: tk.variants.refseqs,
|
|
1445
|
+
altseqs: tk.variants.altseqs,
|
|
1446
|
+
chrom: tk.variants[0].chr,
|
|
1447
|
+
ref_positions: tk.variants.ref_positions,
|
|
1448
|
+
refalleles: tk.variants.refalleles,
|
|
1449
|
+
altalleles: tk.variants.altalleles,
|
|
1450
|
+
start: box.start,
|
|
1451
|
+
stop: box.stop,
|
|
1452
|
+
paired: tk.asPaired
|
|
1453
|
+
} : { start: box.start, stop: box.stop, paired: tk.asPaired }
|
|
1454
|
+
);
|
|
1455
|
+
const data = await dofetch3("tkbam", param);
|
|
1456
|
+
if (data.error) {
|
|
1457
|
+
sayerror(wait, data.error);
|
|
1458
|
+
return;
|
|
1459
|
+
}
|
|
1460
|
+
wait.remove();
|
|
1461
|
+
for (const r of data.lst) {
|
|
1462
|
+
const div = tk.readMenu.d.append("div").style("margin", "10px");
|
|
1463
|
+
const read_reference_div = div.append("div").html(r.alignment);
|
|
1464
|
+
const row = div.append("div").style("margin-top", "10px");
|
|
1465
|
+
row.append("button").text("Copy read sequence").on("click", function() {
|
|
1466
|
+
navigator.clipboard.writeText(r.seq).then(() => {
|
|
1467
|
+
}, console.warn);
|
|
1468
|
+
select_default(this).html("Copy read sequence ✓");
|
|
1469
|
+
});
|
|
1470
|
+
if (data.lst[0].alignments) {
|
|
1471
|
+
select_default(this).append("span").html(" ");
|
|
1472
|
+
const alignment_button = row.append("button").style("margin-left", "10px").text("Align read to variant alleles");
|
|
1473
|
+
let first = true;
|
|
1474
|
+
alignment_button.on("click", () => {
|
|
1475
|
+
if (first) {
|
|
1476
|
+
first = false;
|
|
1477
|
+
for (let var_idx = 0; var_idx < tk.variants.length; var_idx++) {
|
|
1478
|
+
makeReadAlignmentTable(variantAlignmentTable, "Ref", tk, data.lst[0].start_readpos - 1, var_idx);
|
|
1479
|
+
makeReadAlignmentTable(variantAlignmentTable, "Alt", tk, data.lst[0].start_readpos - 1, var_idx);
|
|
1480
|
+
}
|
|
1481
|
+
}
|
|
1482
|
+
if (variantAlignmentTable.style("display") == "none") {
|
|
1483
|
+
variantAlignmentTable.style("display", "block");
|
|
1484
|
+
} else {
|
|
1485
|
+
variantAlignmentTable.style("display", "none");
|
|
1486
|
+
}
|
|
1487
|
+
});
|
|
1488
|
+
}
|
|
1489
|
+
if (r.unmapped_mate && !tk.asPaired) {
|
|
1490
|
+
const mate_button = row.append("button").style("margin-left", "10px").text("Show unmapped mate").on("click", async () => {
|
|
1491
|
+
mate_button.property("disabled", true);
|
|
1492
|
+
const wait2 = tk.readMenu.d.append("div").text("Loading...");
|
|
1493
|
+
const data2 = await dofetch3("tkbam", getparam({ show_unmapped: 1 }));
|
|
1494
|
+
if (data2.error) {
|
|
1495
|
+
wait2.text("");
|
|
1496
|
+
sayerror(wait2, data2.error);
|
|
1497
|
+
mate_button.property("disabled", false);
|
|
1498
|
+
return;
|
|
1499
|
+
}
|
|
1500
|
+
wait2.remove();
|
|
1501
|
+
mate_button.remove();
|
|
1502
|
+
const r2 = data2.lst[0];
|
|
1503
|
+
div.append("div").html(r2.alignment);
|
|
1504
|
+
const row2 = div.append("div").style("margin-top", "10px");
|
|
1505
|
+
row2.append("button").text("Copy read sequence").on("click", function() {
|
|
1506
|
+
navigator.clipboard.writeText(r2.seq).then(() => {
|
|
1507
|
+
}, console.warn);
|
|
1508
|
+
select_default(this).html("Copy read sequence ✓");
|
|
1509
|
+
});
|
|
1510
|
+
mayshow_blatbutton(r2, row2, tk, block);
|
|
1511
|
+
div.append("div").html(r2.info);
|
|
1512
|
+
});
|
|
1513
|
+
}
|
|
1514
|
+
const gene_button = row.append("button").style("margin-left", "10px").text("Show gene model").property("disabled", !r.seq || r.seq == "*").on("click", async () => {
|
|
1515
|
+
gene_button.property("disabled", true);
|
|
1516
|
+
let i = 0;
|
|
1517
|
+
let nuc_count = 0;
|
|
1518
|
+
let gm_nuc_count = 0;
|
|
1519
|
+
let segstart = data.lst[0].boxes[0].start;
|
|
1520
|
+
let segstop;
|
|
1521
|
+
let local_alignment_width = 0;
|
|
1522
|
+
const tbodyRef = read_reference_div.node().children[0].getElementsByTagName("tbody")[0];
|
|
1523
|
+
const gene_model_tr = tbodyRef.insertRow();
|
|
1524
|
+
const heading_gene_cell = gene_model_tr.insertCell();
|
|
1525
|
+
const heading_gene_text = document.createTextNode("");
|
|
1526
|
+
heading_gene_cell.appendChild(heading_gene_text);
|
|
1527
|
+
const gene_models = [];
|
|
1528
|
+
const break_points = [];
|
|
1529
|
+
let num_break_points = 0;
|
|
1530
|
+
let gene_model_td;
|
|
1531
|
+
const refseq_row = read_reference_div.node().children[0].children[0].children[0];
|
|
1532
|
+
for (const item of data.lst[0].boxes) {
|
|
1533
|
+
if (item.opr == "H") {
|
|
1534
|
+
continue;
|
|
1535
|
+
} else if (item.opr == "M" || item.opr == "S" || item.opr == "N" && item.len < data.lst[0].readpanel_DN_maxlength || item.opr == "D" && item.len < data.lst[0].readpanel_DN_maxlength) {
|
|
1536
|
+
for (let j2 = 0; j2 < item.len; j2++) {
|
|
1537
|
+
local_alignment_width += refseq_row.children[nuc_count + 1].getBoundingClientRect().width;
|
|
1538
|
+
nuc_count += 1;
|
|
1539
|
+
}
|
|
1540
|
+
gm_nuc_count += item.len;
|
|
1541
|
+
} else if (item.opr == "I" || item.opr == "N" && item.len >= data.lst[0].readpanel_DN_maxlength || item.opr == "D" && item.len >= data.lst[0].readpanel_DN_maxlength) {
|
|
1542
|
+
segstop = item.start;
|
|
1543
|
+
const gene_model = await get_gene_models_reads(block, ridx, segstart, segstop, local_alignment_width);
|
|
1544
|
+
const gm = {
|
|
1545
|
+
src: gene_model.src,
|
|
1546
|
+
width: local_alignment_width,
|
|
1547
|
+
height: gene_model.height,
|
|
1548
|
+
colspan: gm_nuc_count
|
|
1549
|
+
};
|
|
1550
|
+
gene_models.push(gm);
|
|
1551
|
+
if (item.opr == "I") {
|
|
1552
|
+
break_points.push(item.len);
|
|
1553
|
+
} else if (item.opr == "N" || item.opr == "D") {
|
|
1554
|
+
break_points.push(1);
|
|
1555
|
+
}
|
|
1556
|
+
if (item.opr == "D" || item.opr == "N") {
|
|
1557
|
+
segstart = item.start + item.len;
|
|
1558
|
+
} else if (item.opr == "I") {
|
|
1559
|
+
segstart = item.start;
|
|
1560
|
+
}
|
|
1561
|
+
local_alignment_width = 0;
|
|
1562
|
+
gm_nuc_count = 0;
|
|
1563
|
+
num_break_points += 1;
|
|
1564
|
+
}
|
|
1565
|
+
if (i == data.lst[0].boxes.length - 1) {
|
|
1566
|
+
segstop = item.start + item.len;
|
|
1567
|
+
const gene_model = await get_gene_models_reads(block, ridx, segstart, segstop, local_alignment_width);
|
|
1568
|
+
const gm = {
|
|
1569
|
+
src: gene_model.src,
|
|
1570
|
+
width: local_alignment_width,
|
|
1571
|
+
height: gene_model.height,
|
|
1572
|
+
colspan: gm_nuc_count
|
|
1573
|
+
};
|
|
1574
|
+
gene_models.push(gm);
|
|
1575
|
+
}
|
|
1576
|
+
i += 1;
|
|
1577
|
+
}
|
|
1578
|
+
const num_gene_cells = num_break_points + gene_models.length;
|
|
1579
|
+
let j = 0;
|
|
1580
|
+
let k = 0;
|
|
1581
|
+
for (let i2 = 0; i2 < num_gene_cells; i2++) {
|
|
1582
|
+
const gene_model_cell = gene_model_tr.insertCell();
|
|
1583
|
+
if (i2 % 2 == 0) {
|
|
1584
|
+
const img = document.createElement("img");
|
|
1585
|
+
img.src = gene_models[k].src;
|
|
1586
|
+
img.width = gene_models[k].width;
|
|
1587
|
+
img.height = gene_models[k].height;
|
|
1588
|
+
gene_model_cell.appendChild(img);
|
|
1589
|
+
gene_model_cell.colSpan = gene_models[k].colspan;
|
|
1590
|
+
k += 1;
|
|
1591
|
+
} else {
|
|
1592
|
+
gene_model_cell.colSpan = break_points[j];
|
|
1593
|
+
j += 1;
|
|
1594
|
+
}
|
|
1595
|
+
}
|
|
1596
|
+
});
|
|
1597
|
+
mayshow_blatbutton(r, row, tk, block);
|
|
1598
|
+
div.append("div").html(r.info);
|
|
1599
|
+
const variantAlignmentTable = div.append("div").style("display", "none");
|
|
1600
|
+
}
|
|
1601
|
+
function getparam(extra = {}) {
|
|
1602
|
+
const r = tk.regions[ridx];
|
|
1603
|
+
const body = {
|
|
1604
|
+
getread: 1,
|
|
1605
|
+
qname: encodeURIComponent(box.qname),
|
|
1606
|
+
// convert + to %2B, so it can be kept the same but not a space instead
|
|
1607
|
+
genome: block.genome.name,
|
|
1608
|
+
chr: r.chr,
|
|
1609
|
+
start: r.start,
|
|
1610
|
+
stop: r.stop,
|
|
1611
|
+
...extra
|
|
1612
|
+
};
|
|
1613
|
+
if (tk.gdcFile) {
|
|
1614
|
+
body.gdcFileUUID = tk.gdcFile.uuid;
|
|
1615
|
+
body.gdcFilePosition = tk.gdcFile.position;
|
|
1616
|
+
}
|
|
1617
|
+
if (tk.nochr) body.nochr = 1;
|
|
1618
|
+
if (tk.file) body.file = tk.file;
|
|
1619
|
+
if (tk.url) body.url = tk.url;
|
|
1620
|
+
if (tk.indexURL) body.indexURL = tk.indexURL;
|
|
1621
|
+
if (tk.asPaired) {
|
|
1622
|
+
body.getpair = 1;
|
|
1623
|
+
} else {
|
|
1624
|
+
if (box.isfirst) {
|
|
1625
|
+
body.getfirst = 1;
|
|
1626
|
+
} else if (box.islast) {
|
|
1627
|
+
body.getlast = 1;
|
|
1628
|
+
} else {
|
|
1629
|
+
body.unknownorder = 1;
|
|
1630
|
+
body.readstart = box.start;
|
|
1631
|
+
body.readstop = box.stop;
|
|
1632
|
+
}
|
|
1633
|
+
}
|
|
1634
|
+
return { headers: getHeaders(tk), body };
|
|
1635
|
+
}
|
|
1636
|
+
function makeReadAlignmentTable(div, type, tk2, read_start_pos, var_idx) {
|
|
1637
|
+
let q_align, align_wrt, r_align;
|
|
1638
|
+
if (type == "Ref") {
|
|
1639
|
+
q_align = data.lst[0].alignments[var_idx].q_seq_ref;
|
|
1640
|
+
align_wrt = data.lst[0].alignments[var_idx].align_ref;
|
|
1641
|
+
r_align = data.lst[0].alignments[var_idx].r_seq_ref;
|
|
1642
|
+
}
|
|
1643
|
+
if (type == "Alt") {
|
|
1644
|
+
q_align = data.lst[0].alignments[var_idx].q_seq_alt;
|
|
1645
|
+
align_wrt = data.lst[0].alignments[var_idx].align_alt;
|
|
1646
|
+
r_align = data.lst[0].alignments[var_idx].r_seq_alt;
|
|
1647
|
+
}
|
|
1648
|
+
if (data.lst[0].alignments.length == 1) {
|
|
1649
|
+
div.append("span").text(type + " alignment").style("font-family", "Courier").style("font-size", "15px").style("color", "#303030").style("margin", "5px 5px 10px 5px");
|
|
1650
|
+
} else {
|
|
1651
|
+
if (type == "Alt") {
|
|
1652
|
+
div.append("span").text("Alignment with Alt allele: " + tk2.variants[var_idx].alt).style("font-family", "Courier").style("font-size", "15px").style("color", "#303030").style("margin", "5px 5px 10px 5px");
|
|
1653
|
+
} else if (type == "Ref") {
|
|
1654
|
+
div.append("span").text("Alignment with Ref allele: " + tk2.variants[var_idx].ref).style("font-family", "Courier").style("font-size", "15px").style("color", "#303030").style("margin", "5px 5px 10px 5px");
|
|
1655
|
+
} else {
|
|
1656
|
+
console.log("Unknown allele, please check");
|
|
1657
|
+
}
|
|
1658
|
+
}
|
|
1659
|
+
const table = div.append("table").style("font-family", "Courier").style("font-size", "0.8em").style("color", "#303030").style("margin", "5px 5px 20px 5px");
|
|
1660
|
+
let nclt_count = 0;
|
|
1661
|
+
const refAlt_tr = table.append("tr");
|
|
1662
|
+
refAlt_tr.append("td").text(type + " allele").style("text-align", "right").style("font-weight", "550").style("white-space", "nowrap");
|
|
1663
|
+
for (const nclt of r_align) {
|
|
1664
|
+
nclt_count += 1;
|
|
1665
|
+
if (type == "Ref" && nclt_count > data.lst[0].alignments[var_idx].red_region_start_ref && nclt_count <= data.lst[0].alignments[var_idx].red_region_stop_ref) {
|
|
1666
|
+
refAlt_tr.append("td").text(nclt).style("color", "red");
|
|
1667
|
+
} else if (type == "Alt" && nclt_count > data.lst[0].alignments[var_idx].red_region_start_alt && nclt_count <= data.lst[0].alignments[var_idx].red_region_stop_alt) {
|
|
1668
|
+
refAlt_tr.append("td").text(nclt).style("color", "red");
|
|
1669
|
+
} else {
|
|
1670
|
+
refAlt_tr.append("td").text(nclt);
|
|
1671
|
+
}
|
|
1672
|
+
}
|
|
1673
|
+
const alignment_tr = table.append("tr");
|
|
1674
|
+
alignment_tr.append("td");
|
|
1675
|
+
nclt_count = 0;
|
|
1676
|
+
for (const align_str of align_wrt) {
|
|
1677
|
+
nclt_count += 1;
|
|
1678
|
+
if (type == "Ref" && nclt_count > data.lst[0].alignments[var_idx].red_region_start_ref && nclt_count <= data.lst[0].alignments[var_idx].red_region_stop_ref) {
|
|
1679
|
+
alignment_tr.append("td").text(align_str).style("color", "red");
|
|
1680
|
+
} else if (type == "Alt" && nclt_count > data.lst[0].alignments[var_idx].red_region_start_alt && nclt_count <= data.lst[0].alignments[var_idx].red_region_stop_alt) {
|
|
1681
|
+
alignment_tr.append("td").text(align_str).style("color", "red");
|
|
1682
|
+
} else {
|
|
1683
|
+
alignment_tr.append("td").text(align_str);
|
|
1684
|
+
}
|
|
1685
|
+
}
|
|
1686
|
+
const query_tr = table.append("tr");
|
|
1687
|
+
query_tr.append("td").text("Read").style("text-align", "right").style("font-weight", "550");
|
|
1688
|
+
nclt_count = 0;
|
|
1689
|
+
for (const nclt of q_align) {
|
|
1690
|
+
nclt_count += 1;
|
|
1691
|
+
if (type == "Ref" && nclt_count > data.lst[0].alignments[var_idx].red_region_start_ref && nclt_count <= data.lst[0].alignments[var_idx].red_region_stop_ref) {
|
|
1692
|
+
query_tr.append("td").text(nclt).style("color", "red");
|
|
1693
|
+
} else if (type == "Alt" && nclt_count > data.lst[0].alignments[var_idx].red_region_start_alt && nclt_count <= data.lst[0].alignments[var_idx].red_region_stop_alt) {
|
|
1694
|
+
query_tr.append("td").text(nclt).style("color", "red");
|
|
1695
|
+
} else {
|
|
1696
|
+
query_tr.append("td").text(nclt);
|
|
1697
|
+
}
|
|
1698
|
+
}
|
|
1699
|
+
}
|
|
1700
|
+
}
|
|
1701
|
+
async function get_gene_models_refalt(block, tk, segstart, segstop, local_alignment_width) {
|
|
1702
|
+
const genetk = block.genome.tracks.find((i) => i.__isgene);
|
|
1703
|
+
const args = {
|
|
1704
|
+
name: genetk.name,
|
|
1705
|
+
genome: block.genome.name,
|
|
1706
|
+
rglst: [
|
|
1707
|
+
{
|
|
1708
|
+
chr: tk.variants[0].chr,
|
|
1709
|
+
start: segstart,
|
|
1710
|
+
stop: segstop,
|
|
1711
|
+
width: local_alignment_width
|
|
1712
|
+
}
|
|
1713
|
+
],
|
|
1714
|
+
width: local_alignment_width,
|
|
1715
|
+
stackheight: 16,
|
|
1716
|
+
stackspace: 1,
|
|
1717
|
+
regionspace: 0,
|
|
1718
|
+
file: genetk.file,
|
|
1719
|
+
devicePixelRatio: window.devicePixelRatio > 1 ? window.devicePixelRatio : 1,
|
|
1720
|
+
color: genetk.color,
|
|
1721
|
+
translatecoding: 1,
|
|
1722
|
+
__isgene: true,
|
|
1723
|
+
noNameHover: true
|
|
1724
|
+
};
|
|
1725
|
+
{
|
|
1726
|
+
const tk2 = block.tklst.find((i) => i.name == args.name && i.type == "bedj");
|
|
1727
|
+
if (tk2 && tk2.filterByName) {
|
|
1728
|
+
args.filterByName = tk2.filterByName;
|
|
1729
|
+
}
|
|
1730
|
+
}
|
|
1731
|
+
return await dofetch3("tkbedj", { method: "POST", body: JSON.stringify(args) });
|
|
1732
|
+
}
|
|
1733
|
+
async function get_gene_models_reads(block, ridx, segstart, segstop, local_alignment_width) {
|
|
1734
|
+
const genetk = block.genome.tracks.find((i) => i.__isgene);
|
|
1735
|
+
const args = {
|
|
1736
|
+
name: genetk.name,
|
|
1737
|
+
genome: block.genome.name,
|
|
1738
|
+
rglst: [
|
|
1739
|
+
{
|
|
1740
|
+
chr: block.rglst[ridx].chr,
|
|
1741
|
+
start: segstart,
|
|
1742
|
+
stop: segstop,
|
|
1743
|
+
width: local_alignment_width
|
|
1744
|
+
}
|
|
1745
|
+
],
|
|
1746
|
+
width: local_alignment_width,
|
|
1747
|
+
stackheight: 16,
|
|
1748
|
+
stackspace: 1,
|
|
1749
|
+
regionspace: 0,
|
|
1750
|
+
file: genetk.file,
|
|
1751
|
+
devicePixelRatio: window.devicePixelRatio > 1 ? window.devicePixelRatio : 1,
|
|
1752
|
+
color: genetk.color,
|
|
1753
|
+
translatecoding: 1,
|
|
1754
|
+
__isgene: true,
|
|
1755
|
+
noNameHover: true
|
|
1756
|
+
};
|
|
1757
|
+
{
|
|
1758
|
+
const tk = block.tklst.find((i) => i.name == args.name && i.type == "bedj");
|
|
1759
|
+
if (tk && tk.filterByName) {
|
|
1760
|
+
args.filterByName = tk.filterByName;
|
|
1761
|
+
}
|
|
1762
|
+
}
|
|
1763
|
+
return await dofetch3("tkbedj", { method: "POST", body: JSON.stringify(args) });
|
|
1764
|
+
}
|
|
1765
|
+
function mayshow_blatbutton(read, div, tk, block) {
|
|
1766
|
+
if (!block.genome.blat) {
|
|
1767
|
+
return;
|
|
1768
|
+
}
|
|
1769
|
+
const button = div.append("button").style("margin-left", "10px").text("BLAT").on("click", async () => {
|
|
1770
|
+
button.property("disabled", true);
|
|
1771
|
+
blatdiv.selectAll("*").remove();
|
|
1772
|
+
const wait = blatdiv.append("div").text("Loading...");
|
|
1773
|
+
try {
|
|
1774
|
+
const data = await dofetch3("blat", {
|
|
1775
|
+
body: {
|
|
1776
|
+
genome: block.genome.name,
|
|
1777
|
+
seq: read.seq,
|
|
1778
|
+
soft_starts: read.soft_starts,
|
|
1779
|
+
soft_stops: read.soft_stops
|
|
1780
|
+
}
|
|
1781
|
+
});
|
|
1782
|
+
if (data.error) throw data.error;
|
|
1783
|
+
if (data.nohit) throw "No hit";
|
|
1784
|
+
if (!data.hits) throw ".hits[] missing";
|
|
1785
|
+
wait.remove();
|
|
1786
|
+
show_blatresult(data.hits, blatdiv, tk, block);
|
|
1787
|
+
} catch (e) {
|
|
1788
|
+
wait.text(e.message || e);
|
|
1789
|
+
if (e.stack) console.log(e.stack);
|
|
1790
|
+
}
|
|
1791
|
+
button.property("disabled", false);
|
|
1792
|
+
});
|
|
1793
|
+
const blatdiv = div.append("div");
|
|
1794
|
+
}
|
|
1795
|
+
async function enter_partstack(group, tk, block, y, data) {
|
|
1796
|
+
group.data_fullstack = group.data;
|
|
1797
|
+
const clickstackidx = (group.partstack ? group.partstack.start : 0) + Math.floor(y / group.data.stackheight);
|
|
1798
|
+
if (clickstackidx < stackpagesize / 2) {
|
|
1799
|
+
group.partstack = {
|
|
1800
|
+
start: 0,
|
|
1801
|
+
stop: stackpagesize
|
|
1802
|
+
};
|
|
1803
|
+
} else if (clickstackidx > group.data_fullstack.stackcount - stackpagesize / 2) {
|
|
1804
|
+
group.partstack = {
|
|
1805
|
+
start: group.data_fullstack.stackcount - stackpagesize,
|
|
1806
|
+
stop: group.data_fullstack.stackcount
|
|
1807
|
+
};
|
|
1808
|
+
} else {
|
|
1809
|
+
group.partstack = {
|
|
1810
|
+
start: clickstackidx - stackpagesize / 2,
|
|
1811
|
+
stop: clickstackidx + stackpagesize / 2
|
|
1812
|
+
};
|
|
1813
|
+
}
|
|
1814
|
+
block.tkcloakon(tk);
|
|
1815
|
+
const _d = await getData(tk, block, {
|
|
1816
|
+
stackstart: group.partstack.start,
|
|
1817
|
+
stackstop: group.partstack.stop,
|
|
1818
|
+
grouptype: group.data.type
|
|
1819
|
+
});
|
|
1820
|
+
group.data = _d.groups[0];
|
|
1821
|
+
renderGroup(group, tk, block);
|
|
1822
|
+
setTkHeight(tk);
|
|
1823
|
+
block.tkcloakoff(tk, {});
|
|
1824
|
+
block.block_setheight();
|
|
1825
|
+
}
|
|
1826
|
+
function show_blatresult(hits, div, tk, block) {
|
|
1827
|
+
const table = div.append("table");
|
|
1828
|
+
const tr = table.append("tr").style("opacity", 0.5).style("font-size", ".8em");
|
|
1829
|
+
tr.append("td").text("QScore");
|
|
1830
|
+
tr.append("td").text("QStart");
|
|
1831
|
+
tr.append("td").text("QStop");
|
|
1832
|
+
tr.append("td").text("QStrand");
|
|
1833
|
+
tr.append("td").text("QAlignLen");
|
|
1834
|
+
tr.append("td").text("RChr");
|
|
1835
|
+
tr.append("td").text("RStart");
|
|
1836
|
+
tr.append("td").text("RStop");
|
|
1837
|
+
tr.append("td").text("RAlignLen");
|
|
1838
|
+
for (const h of hits) {
|
|
1839
|
+
let tr2 = table.append("tr").style("font-size", ".8em");
|
|
1840
|
+
tr2.append("td").text(h.query_match);
|
|
1841
|
+
tr2.append("td").text(h.query_startpos);
|
|
1842
|
+
tr2.append("td").text(h.query_stoppos);
|
|
1843
|
+
tr2.append("td").text(h.query_strand);
|
|
1844
|
+
tr2.append("td").text(h.query_alignlen);
|
|
1845
|
+
tr2.append("td").text(h.ref_chr);
|
|
1846
|
+
tr2.append("td").text(h.ref_startpos);
|
|
1847
|
+
tr2.append("td").text(h.ref_stoppos);
|
|
1848
|
+
tr2.append("td").text(h.ref_alignlen);
|
|
1849
|
+
}
|
|
1850
|
+
}
|
|
1851
|
+
function renderGroup(group, tk, block) {
|
|
1852
|
+
update_boxes(group, tk, block);
|
|
1853
|
+
if (group.partstack) {
|
|
1854
|
+
if (tk.variants) {
|
|
1855
|
+
group.dom.diff_score_barplot_partstack.attr("xlink:href", group.data.diff_scores_img.src).attr("width", group.data.diff_scores_img.width).attr("height", group.data.diff_scores_img.height);
|
|
1856
|
+
group.ReadNameMaxwidth = 0;
|
|
1857
|
+
if (tk.show_readnames) {
|
|
1858
|
+
group.dom.read_names_g.attr("transform", "translate(0,0)");
|
|
1859
|
+
group.dom.read_names_g.selectAll("*").remove();
|
|
1860
|
+
if (group.data.templatebox && group.data.stackheight >= stackheight_min) {
|
|
1861
|
+
let read_count = 1;
|
|
1862
|
+
for (const read of group.data.templatebox) {
|
|
1863
|
+
const read_name_bbox = group.dom.read_names_g.append("text").attr("x", 0).attr("y", group.data.height * read_count / group.data.templatebox.length).attr("text-anchor", "end").style("fill", "black").attr("font-size", group.data.height / group.data.templatebox.length).text(read.qname);
|
|
1864
|
+
group.ReadNameMaxwidth = Math.max(group.ReadNameMaxwidth, read_name_bbox.node().getBBox().width);
|
|
1865
|
+
read_count += 1;
|
|
1866
|
+
}
|
|
1867
|
+
}
|
|
1868
|
+
} else {
|
|
1869
|
+
group.dom.read_names_g.selectAll("*").remove();
|
|
1870
|
+
group.ReadNameMaxwidth = 0;
|
|
1871
|
+
}
|
|
1872
|
+
}
|
|
1873
|
+
group.dom.img_partstack.attr("xlink:href", group.data.src).attr("width", group.data.width).attr("height", group.data.height).attr("y", 0);
|
|
1874
|
+
group.dom.img_fullstack.attr("width", 0).attr("height", 0);
|
|
1875
|
+
if (tk.variants) {
|
|
1876
|
+
group.dom.diff_score_barplot_fullstack.attr("width", 0).attr("height", 0);
|
|
1877
|
+
}
|
|
1878
|
+
const scrollableheight = group.data.height;
|
|
1879
|
+
group.dom.rightg.vslider.bar.transition().attr("height", scrollableheight);
|
|
1880
|
+
group.dom.rightg.vslider.boxy = scrollableheight * group.partstack.start / group.data_fullstack.stackcount;
|
|
1881
|
+
group.dom.rightg.vslider.boxh = scrollableheight * (group.partstack.stop - group.partstack.start) / group.data_fullstack.stackcount;
|
|
1882
|
+
group.dom.rightg.vslider.box.transition().attr("height", group.dom.rightg.vslider.boxh);
|
|
1883
|
+
group.dom.rightg.vslider.boxbotline.transition().attr("y1", group.dom.rightg.vslider.boxh).attr("y2", group.dom.rightg.vslider.boxh);
|
|
1884
|
+
group.dom.rightg.vslider.boxg.transition().attr("transform", "translate(0," + group.dom.rightg.vslider.boxy + ")");
|
|
1885
|
+
} else {
|
|
1886
|
+
group.dom.img_fullstack.attr("xlink:href", group.data.src).attr("width", group.data.width).attr("height", group.data.height);
|
|
1887
|
+
group.dom.img_partstack.attr("width", 0).attr("height", 0);
|
|
1888
|
+
if (tk.variants) {
|
|
1889
|
+
if (group.dom.diff_score_barplot_partstack) {
|
|
1890
|
+
group.dom.diff_score_barplot_partstack.attr("width", 0).attr("height", 0);
|
|
1891
|
+
}
|
|
1892
|
+
group.dom.diff_score_barplot_fullstack.attr("width", group.data.diff_scores_img.width).attr("height", group.data.diff_scores_img.height);
|
|
1893
|
+
if (tk.show_readnames) {
|
|
1894
|
+
group.dom.read_names_g.selectAll("*").remove();
|
|
1895
|
+
}
|
|
1896
|
+
}
|
|
1897
|
+
group.dom.rightg.vslider.g.transition().attr("transform", "scale(0)");
|
|
1898
|
+
}
|
|
1899
|
+
group.dom.img_cover.attr("width", group.data.width).attr("height", group.data.height);
|
|
1900
|
+
}
|
|
1901
|
+
export {
|
|
1902
|
+
loadTk
|
|
1903
|
+
};
|
|
1904
|
+
//# sourceMappingURL=block.tk.bam-EIVBNGAL.js.map
|