@sjcrh/proteinpaint-client 2.183.0 → 2.183.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/2dmaf-PBJ3POZQ.js +1371 -0
- package/dist/AIProjectAdmin-5IAXCACJ.js +830 -0
- package/dist/AppHeader-HLUE2IQT.js +833 -0
- package/dist/BoxPlot-NAQS5MHV.js +1217 -0
- package/dist/CorrelationVolcano-TVVUP4L4.js +617 -0
- package/dist/DE-F7LUSAO2.js +93 -0
- package/dist/DEinput-V7MF5IEZ.js +297 -0
- package/dist/DifferentialAnalysis-R2Z7G75Y.js +238 -0
- package/dist/Disco-7S5KUVQ6.js +3235 -0
- package/dist/Disco.UI-6ONZR7GK.js +242 -0
- package/dist/DmrPlot-NZXGFMBY.js +640 -0
- package/dist/GB-3EXBSESG.js +1125 -0
- package/dist/HicApp-WEYV7T46.js +2248 -0
- package/dist/NumBinaryEditor-SNJD6NVL.js +268 -0
- package/dist/NumBinaryEditor.unit.spec-A7C4A2HF.js +284 -0
- package/dist/NumContEditor-TBOEORWJ.js +105 -0
- package/dist/NumContEditor.unit.spec-BJKQNFPL.js +167 -0
- package/dist/NumCustomBinEditor-RNWEGLLB.js +36 -0
- package/dist/NumCustomBinEditor.unit.spec-CW3D5WOW.js +282 -0
- package/dist/NumDiscreteEditor-WXRAMEWQ.js +177 -0
- package/dist/NumDiscreteEditor.unit.spec-SJTHYGMI.js +200 -0
- package/dist/NumRegularBinEditor-LLSKHSJC.js +36 -0
- package/dist/NumRegularBinEditor.unit.spec-G3YRWT52.js +225 -0
- package/dist/NumSplineEditor-W6HG3I53.js +190 -0
- package/dist/NumSplineEditor.unit.spec-BVVTYJY7.js +197 -0
- package/dist/NumericDensity-VYAZXP4D.js +36 -0
- package/dist/NumericDensity.unit.spec-4QCKG6GM.js +219 -0
- package/dist/NumericHandler-PKCERKLB.js +37 -0
- package/dist/NumericHandler.unit.spec-JIYZ3IFG.js +217 -0
- package/dist/RunChart2-I4ZBBKOC.js +756 -0
- package/dist/SC-OLNRPTNS.js +682 -0
- package/dist/Volcano-DEOVDPYB.js +1185 -0
- package/dist/WSIViewer-VA36EDFH.js +47974 -0
- package/dist/WsiSamplesPlot-RA644FK6.js +163 -0
- package/dist/adSandbox-SJ3O3RVJ.js +36 -0
- package/dist/alphaGenome-UTVIVOEF.js +173 -0
- package/dist/app-6UPJNZVS.js +35 -0
- package/dist/app-YFBAT5TM.js +47 -0
- package/dist/app.js +20 -20
- package/dist/bam-C4KHGT7X.js +857 -0
- package/dist/barchart-UOELLJAZ.js +45 -0
- package/dist/barchart.data-EYZ3W4BQ.js +22 -0
- package/dist/barchart.events-SJZZV3TI.js +45 -0
- package/dist/barchart.integration.spec-A4XZNV3B.js +1675 -0
- package/dist/block-ODDURI6Y.js +6200 -0
- package/dist/block.init-TZXJGL7D.js +36 -0
- package/dist/block.mds.expressionrank-UE2D6D3N.js +357 -0
- package/dist/block.mds.geneboxplot-KINAWY6K.js +826 -0
- package/dist/block.mds.junction-HRJQOYBL.js +1543 -0
- package/dist/block.mds.svcnv-7C2IMZXB.js +6799 -0
- package/dist/block.svg-757BH6PD.js +162 -0
- package/dist/block.tk.aicheck-M4VAVJL6.js +281 -0
- package/dist/block.tk.ase-J5HCPECM.js +363 -0
- package/dist/block.tk.bam-7NFAMVLF.js +1904 -0
- package/dist/block.tk.bedgraphdot-HROSDQH5.js +382 -0
- package/dist/block.tk.bigwig.ui-BIMVFUT6.js +209 -0
- package/dist/block.tk.hicstraw-W7CWMNZ7.js +821 -0
- package/dist/block.tk.junction-ZUUBN36V.js +2362 -0
- package/dist/block.tk.junction.textmatrixui-PYJ4UGCF.js +197 -0
- package/dist/block.tk.ld-6E7ZXTCC.js +97 -0
- package/dist/block.tk.menu-SWT3R74J.js +1027 -0
- package/dist/block.tk.pgv-SEDDAV24.js +942 -0
- package/dist/brainImaging-X5WPNTUO.js +421 -0
- package/dist/chat-KZ3LZAQ6.js +148 -0
- package/dist/chunk-2LCTMDCS.js +20649 -0
- package/dist/chunk-2LCTMDCS.js.map +7 -0
- package/dist/chunk-2TMP56TB.js +386 -0
- package/dist/chunk-2VNQJGPM.js +92 -0
- package/dist/chunk-3DN47Y2E.js +526 -0
- package/dist/chunk-4IL33OUX.js +261 -0
- package/dist/chunk-4YG57UVZ.js +228 -0
- package/dist/chunk-54P7H5GL.js +1150 -0
- package/dist/chunk-5BBR2HND.js +158 -0
- package/dist/chunk-5BCACIPX.js +2784 -0
- package/dist/chunk-5OHXYXLD.js +46 -0
- package/dist/chunk-5OHXYXLD.js.map +7 -0
- package/dist/chunk-6CRWDKT7.js +289 -0
- package/dist/chunk-7M45T6YS.js +1426 -0
- package/dist/chunk-7N3Q25KC.js +26 -0
- package/dist/chunk-AQ2ODUYY.js +50 -0
- package/dist/chunk-AZLWNXFP.js +1087 -0
- package/dist/chunk-B3SLLQAS.js +100 -0
- package/dist/chunk-BEWDIM6H.js +42 -0
- package/dist/chunk-BEWDIM6H.js.map +7 -0
- package/dist/chunk-BHEBKIGM.js +824 -0
- package/dist/chunk-CAHAYB6O.js +148 -0
- package/dist/chunk-CGDEEO4I.js +37 -0
- package/dist/chunk-CXLRKDEC.js +56 -0
- package/dist/chunk-DET76M2J.js +102 -0
- package/dist/chunk-DONWY7TP.js +39 -0
- package/dist/chunk-DP5ACVIR.js +480 -0
- package/dist/chunk-E5JQ3PN6.js +176 -0
- package/dist/chunk-EJNV6SCH.js +148 -0
- package/dist/chunk-F5D4ADBB.js +514 -0
- package/dist/chunk-F6V4AYWP.js +177 -0
- package/dist/chunk-FBG235FD.js +229 -0
- package/dist/chunk-FGMPKWT5.js +371 -0
- package/dist/chunk-FWKAYZ55.js +205 -0
- package/dist/chunk-GMDQIP3M.js +31 -0
- package/dist/chunk-GXINX3WK.js +281 -0
- package/dist/chunk-GXINX3WK.js.map +7 -0
- package/dist/chunk-GZJ7GDZ4.js +2327 -0
- package/dist/chunk-GZJ7GDZ4.js.map +7 -0
- package/dist/chunk-H55L2FAY.js +107 -0
- package/dist/chunk-HED3JZ2O.js +615 -0
- package/dist/chunk-I2M62STM.js +276 -0
- package/dist/chunk-I2M62STM.js.map +7 -0
- package/dist/chunk-IBIFTCWL.js +293 -0
- package/dist/chunk-ILDUYXV5.js +407 -0
- package/dist/chunk-IQ25XHGX.js +335 -0
- package/dist/chunk-IQIXGTQV.js +84 -0
- package/dist/chunk-IQIXGTQV.js.map +7 -0
- package/dist/chunk-JLSN2WF5.js +95 -0
- package/dist/chunk-JOT4WDJE.js +815 -0
- package/dist/chunk-JQIR2UG5.js +1271 -0
- package/dist/chunk-K6ZAAZKO.js +1159 -0
- package/dist/chunk-K6ZAAZKO.js.map +7 -0
- package/dist/chunk-KBDY6GE3.js +446 -0
- package/dist/chunk-KZFOWI7N.js +52 -0
- package/dist/chunk-LKFYRQOH.js +226 -0
- package/dist/chunk-LO4WNMBO.js +6364 -0
- package/dist/chunk-LXQ6DLAR.js +217 -0
- package/dist/chunk-M3EBH2WK.js +194 -0
- package/dist/chunk-M5Z3GYRH.js +2672 -0
- package/dist/chunk-MEIKKPY7.js +2815 -0
- package/dist/chunk-MZ7RBJSI.js +629 -0
- package/dist/chunk-OH7PDA2Z.js +170 -0
- package/dist/chunk-OKIJIYSP.js +470 -0
- package/dist/chunk-OOD5HBVR.js +34 -0
- package/dist/chunk-OTCYJP7G.js +119 -0
- package/dist/chunk-P7T2U6T7.js +158 -0
- package/dist/chunk-PLHGSDJY.js +142 -0
- package/dist/chunk-PUDZL7RZ.js +1205 -0
- package/dist/chunk-PYJ3QA6E.js +14 -0
- package/dist/chunk-QDRZL47L.js +455 -0
- package/dist/chunk-QTGTMFHM.js +441 -0
- package/dist/chunk-QWL5TZ4G.js +97 -0
- package/dist/chunk-RCYTUKAJ.js +1745 -0
- package/dist/chunk-RCYTUKAJ.js.map +7 -0
- package/dist/chunk-RF6ATFT2.js +302 -0
- package/dist/chunk-RH573XZP.js +368 -0
- package/dist/chunk-SOED2SLH.js +257 -0
- package/dist/chunk-SOED2SLH.js.map +7 -0
- package/dist/chunk-SR72NS4M.js +4961 -0
- package/dist/chunk-SSPDNHDW.js +398 -0
- package/dist/chunk-SSPDNHDW.js.map +7 -0
- package/dist/chunk-STEV77G7.js +215 -0
- package/dist/chunk-TBRPZ3FL.js +4207 -0
- package/dist/chunk-TE3DK3A6.js +147 -0
- package/dist/chunk-TTGDA3MA.js +203 -0
- package/dist/chunk-UFDQ2R2Q.js +534 -0
- package/dist/chunk-UWX7W22M.js +121 -0
- package/dist/chunk-V2R3JFLP.js +54 -0
- package/dist/chunk-VKK5MGDU.js +272 -0
- package/dist/chunk-WHVOWEFP.js +117 -0
- package/dist/chunk-XQTXYKAU.js +55 -0
- package/dist/chunk-XRVBHNCW.js +1561 -0
- package/dist/chunk-XRVBHNCW.js.map +7 -0
- package/dist/chunk-YA73ETIT.js +252 -0
- package/dist/chunk-YXJXRXJR.js +273 -0
- package/dist/chunk-ZIAGMGMS.js +381 -0
- package/dist/chunk-ZXNBYIBD.js +129 -0
- package/dist/condition-RQP7JUST.js +330 -0
- package/dist/controls-WFT5GE3D.js +39 -0
- package/dist/controls.config-66ZKRSPU.js +37 -0
- package/dist/correlation-45MFH7X4.js +96 -0
- package/dist/cuminc-44ALCFL4.js +1147 -0
- package/dist/cuminc.integration.spec-I2UTPH3X.js +676 -0
- package/dist/customdata.inputui-PBA5LZRT.js +287 -0
- package/dist/dataDownload-CRGQTCOW.js +328 -0
- package/dist/dataDownload.integration.spec-7SAPXDH4.js +191 -0
- package/dist/databrowser.ui-O5TPKDPL.js +419 -0
- package/dist/dictionary-QGSAJ7FM.js +109 -0
- package/dist/dnaMethylation-4VDQBBGJ.js +36 -0
- package/dist/dnaMethylation.integration.spec-RSO5U6RN.js +165 -0
- package/dist/e2pca-7LPSASDI.js +348 -0
- package/dist/ep-AIOPCUME.js +1254 -0
- package/dist/expclust.gdc.spec-PSXJZCAI.js +305 -0
- package/dist/facet-W3RYRWXJ.js +519 -0
- package/dist/geneExpClustering-SBQWW6IZ.js +246 -0
- package/dist/geneExpression-4WEYCEZV.js +312 -0
- package/dist/geneExpression-JWYJNDN5.js +36 -0
- package/dist/geneExpression.unit.spec-HKD4DJIV.js +100 -0
- package/dist/geneORA-YUVDOZ5X.js +276 -0
- package/dist/geneVariant-J3UI6RWM.js +39 -0
- package/dist/geneVariant-ZB7CLFCT.js +37 -0
- package/dist/geneVariant.integration.spec-JDCKOR4C.js +196 -0
- package/dist/genefusion.ui-GUMRDRHQ.js +306 -0
- package/dist/genefusion.ui-GUMRDRHQ.js.map +7 -0
- package/dist/geneset-242QGP5Q.js +194 -0
- package/dist/genomeBrowser.spec-NRLKLJQD.js +279 -0
- package/dist/grin2-FD3JTI5R.js +1554 -0
- package/dist/grin2-TAR4VXPJ.js +1031 -0
- package/dist/gsea-YHG57UZ5.js +45 -0
- package/dist/hierCluster-QUAZ7NI6.js +62 -0
- package/dist/hierCluster-V2YZEXGX.js +58 -0
- package/dist/hierCluster.config-ZOWXZGTF.js +38 -0
- package/dist/hierCluster.integration.spec-FAR4KK32.js +374 -0
- package/dist/hierCluster.interactivity-D3TK5FSM.js +52 -0
- package/dist/hierCluster.renderers-C2RK55NN.js +21 -0
- package/dist/imagePlot-2CACVKOO.js +139 -0
- package/dist/importPlot-KUOEC2YF.js +8 -0
- package/dist/isoformExpression-2G4WCETG.js +38 -0
- package/dist/isoformExpression.unit.spec-YBNCR6PE.js +206 -0
- package/dist/launch.adhoc-PECQW652.js +40 -0
- package/dist/leftlabel.sample-6O2CXXC2.js +257 -0
- package/dist/legacyDataset-QRSNRVUA.js +119 -0
- package/dist/lollipop-CAFEKZSO.js +166 -0
- package/dist/maf-N7ZB5J22.js +450 -0
- package/dist/maftimeline-MCYB3EST.js +591 -0
- package/dist/matrix-ID662DZG.js +57 -0
- package/dist/matrix-JDGO6A4G.js +62 -0
- package/dist/matrix.cells-QWB3XSTN.js +28 -0
- package/dist/matrix.config-HHWMMUZT.js +39 -0
- package/dist/matrix.controls-EOX43634.js +37 -0
- package/dist/matrix.data-YTSSULKG.js +25 -0
- package/dist/matrix.groups-NGJ276VG.js +26 -0
- package/dist/matrix.integration.spec-XHGSEBYM.js +3070 -0
- package/dist/matrix.interactivity-OZS7R32Z.js +40 -0
- package/dist/matrix.layout-GBQJ7O3H.js +42 -0
- package/dist/matrix.legend-AGTC5JPS.js +22 -0
- package/dist/matrix.renderers-L5D5NLLR.js +36 -0
- package/dist/matrix.serieses-DDQOSCL4.js +21 -0
- package/dist/matrix.sort-6VF7VNFX.js +27 -0
- package/dist/matrix.sort.unit.spec-QGJBVO3X.js +470 -0
- package/dist/matrix.sorterUi-UE7CBIUP.js +18 -0
- package/dist/matrix.sorterUi.unit.spec-CTLTVJCO.js +340 -0
- package/dist/mavb-MU7H7YWY.js +730 -0
- package/dist/mds.fimo-ELCNQMNR.js +516 -0
- package/dist/mds.samplescatterplot-P7N4SXYT.js +1548 -0
- package/dist/mds.survivalplot-KJFW4IRT.js +481 -0
- package/dist/oncomatrix-Q5X3O65P.js +293 -0
- package/dist/oncomatrix.spec-CJGXXI3U.js +446 -0
- package/dist/plot.2dvaf-CDPVMUPX.js +375 -0
- package/dist/plot.app-BSPQMQCI.js +39 -0
- package/dist/plot.barplot-C33LEV4Q.js +100 -0
- package/dist/plot.boxplot-XH7FN6PC.js +150 -0
- package/dist/plot.brainImaging-5BB455FT.js +51 -0
- package/dist/plot.disco-3YUN6XAY.js +101 -0
- package/dist/plot.dzi-RZWAL5UC.js +33 -0
- package/dist/plot.ssgq-M763HWMN.js +137 -0
- package/dist/plot.vaf2cov-EAHQV6FD.js +257 -0
- package/dist/plot.wsi-2BDC3RJS.js +36 -0
- package/dist/polar-3SJ5SUNJ.js +184 -0
- package/dist/polar2-3GTEGZUL.js +226 -0
- package/dist/profile.spec-AR7JLQYT.js +78 -0
- package/dist/profileBarchart-GLTPPW2O.js +265 -0
- package/dist/profileForms-FE4GHA2T.js +438 -0
- package/dist/profilePlot-3JXEZUX5.js +52 -0
- package/dist/profileRadar-NA2WUSHG.js +261 -0
- package/dist/profileRadarFacility-6UNT4GPM.js +261 -0
- package/dist/proteinView-ESTBC3K2.js +633 -0
- package/dist/proteomeAbundance-GDK5EIE7.js +63 -0
- package/dist/proteomeAbundance-NVLYQRKI.js +21 -0
- package/dist/qualitative-TUNIICQ4.js +41 -0
- package/dist/regression-22IF77A7.js +54 -0
- package/dist/regression.inputs-VCVMUBA7.js +46 -0
- package/dist/regression.inputs.term-6FWVBNJT.js +46 -0
- package/dist/regression.inputs.values.table-2FXOWLKN.js +43 -0
- package/dist/regression.integration.spec-2UMB7EIG.js +782 -0
- package/dist/regression.results-27XHC5GE.js +38 -0
- package/dist/regression.spec-5Q4J7TJZ.js +706 -0
- package/dist/report-B4RRLC7Q.js +220 -0
- package/dist/sampleScatter.spec-TXZYLGM7.js +200 -0
- package/dist/sampleView-2WKGJUSX.js +46 -0
- package/dist/samplelst-NJZOPYYJ.js +109 -0
- package/dist/samplematrix-ZXOLANI5.js +2196 -0
- package/dist/sc-4IYYVV2I.js +84 -0
- package/dist/scatter-UBF4N6ON.js +800 -0
- package/dist/scatter.integration.spec-JNGJ4BU5.js +1194 -0
- package/dist/selectGenomeWithTklst-7ICTRJNK.js +132 -0
- package/dist/singleCellCellType-Y5ETQYDC.js +36 -0
- package/dist/singleCellCellType.unit.spec-TLLZRMD7.js +158 -0
- package/dist/singleCellGeneExpression-HZRIE2XT.js +36 -0
- package/dist/singleCellGeneExpression.unit.spec-K435LTFJ.js +151 -0
- package/dist/singleCellPlot-T7MKCAAW.js +51 -0
- package/dist/singlecell-K662WWCH.js +84 -0
- package/dist/singlecell-KVLDYQ36.js +1570 -0
- package/dist/snp-JNV3DX5W.js +36 -0
- package/dist/snp.unit.spec-7KFVZUWR.js +174 -0
- package/dist/snplocus-VJLA35TV.js +206 -0
- package/dist/spliceevent.a53ss.diagram-MZPU6IBF.js +149 -0
- package/dist/spliceevent.exonskip.diagram-OOYBJT4F.js +275 -0
- package/dist/spliceevent.noeventdiagram-KPEZVRFS.js +458 -0
- package/dist/ssGSEA-GPPPUU2J.js +36 -0
- package/dist/ssGSEA.unit.spec-4SRZ4NRN.js +86 -0
- package/dist/summarizeCnvGeneexp-NRLEM4X4.js +161 -0
- package/dist/summarizeGeneexpSurvival-BJLP43OZ.js +106 -0
- package/dist/summarizeMutationCnv-7DCCBY5U.js +162 -0
- package/dist/summarizeMutationDiagnosis-HATSCOMG.js +38 -0
- package/dist/summarizeMutationSurvival-XIRZFWDJ.js +97 -0
- package/dist/summary-VOFTJ76P.js +47 -0
- package/dist/summary.integration.spec-2C5RCIY4.js +412 -0
- package/dist/summaryInput-DIIECI4W.js +218 -0
- package/dist/sunburst-CYROEYTG.js +282 -0
- package/dist/survival-5Y3DFIES.js +44 -0
- package/dist/survival-WCPGEHW5.js +56 -0
- package/dist/survival.integration.spec-LRSN2B7G.js +800 -0
- package/dist/survival.integration.spec-LRSN2B7G.js.map +7 -0
- package/dist/svgraph-3T6XL7TR.js +1385 -0
- package/dist/svmr-GUBPSOID.js +3840 -0
- package/dist/table-NTS6ROT7.js +198 -0
- package/dist/termCollection-EE72SAHN.js +177 -0
- package/dist/termCollection-ZZXLZ3UE.js +36 -0
- package/dist/termCollection.unit.spec-3CTEJRTX.js +206 -0
- package/dist/tk-6FIXPXTM.js +44 -0
- package/dist/tp.ui-4ESL6SCH.js +1457 -0
- package/dist/tvs.density-AQ5GD437.js +18 -0
- package/dist/tvs.dt-G5FMPWPL.js +37 -0
- package/dist/tvs.dtcnv.categorical-EYQ6RTHD.js +38 -0
- package/dist/tvs.dtcnv.continuous-PSQMFFNX.js +70 -0
- package/dist/tvs.dtfusion-4F6627GK.js +38 -0
- package/dist/tvs.dtsnvindel-YNYVLJEI.js +38 -0
- package/dist/tvs.dtsv-X2K4K4RN.js +38 -0
- package/dist/tvs.numeric-ZN2R7BH3.js +21 -0
- package/dist/tvs.samplelst-XZK4BE3H.js +102 -0
- package/dist/tvs.termCollection-ZAX57TN4.js +151 -0
- package/dist/violin-YEMSGTYF.js +44 -0
- package/dist/violin.integration.spec-TULH2DWL.js +1423 -0
- package/dist/violin.interactivity-RX2CDFVC.js +36 -0
- package/dist/violin.renderer-OJJDZFMZ.js +38 -0
- package/dist/vocabulary-726CSMNM.js +39 -0
- package/package.json +2 -2
- package/dist/2dmaf-6ZTETSC5.js +0 -1371
- package/dist/AIProjectAdmin-ZT3XKBBT.js +0 -830
- package/dist/AppHeader-U7SJPIBS.js +0 -833
- package/dist/BoxPlot-QGHLZ67V.js +0 -1217
- package/dist/CorrelationVolcano-7SE4CTBW.js +0 -617
- package/dist/DE-PZ7RHPBS.js +0 -93
- package/dist/DEinput-UZEQIU2V.js +0 -297
- package/dist/DifferentialAnalysis-L6BOEYVO.js +0 -238
- package/dist/Disco-6FDT6KRM.js +0 -3235
- package/dist/Disco.UI-HKOUAD4P.js +0 -242
- package/dist/DmrPlot-3R24PTXP.js +0 -640
- package/dist/GB-SZVYZASR.js +0 -1125
- package/dist/HicApp-SEEJETVE.js +0 -2248
- package/dist/NumBinaryEditor-SDQFJ3FW.js +0 -268
- package/dist/NumBinaryEditor.unit.spec-76ZZXTYC.js +0 -284
- package/dist/NumContEditor-G75O4YZE.js +0 -105
- package/dist/NumContEditor.unit.spec-BFUZRBPL.js +0 -167
- package/dist/NumCustomBinEditor-ILTPHCEF.js +0 -36
- package/dist/NumCustomBinEditor.unit.spec-GFIYV55V.js +0 -282
- package/dist/NumDiscreteEditor-5K3OKUOE.js +0 -177
- package/dist/NumDiscreteEditor.unit.spec-NZ4KWPFK.js +0 -200
- package/dist/NumRegularBinEditor-7ZJ2MEMY.js +0 -36
- package/dist/NumRegularBinEditor.unit.spec-QGVJET65.js +0 -225
- package/dist/NumSplineEditor-KE4UPODZ.js +0 -190
- package/dist/NumSplineEditor.unit.spec-YQOOZA7S.js +0 -197
- package/dist/NumericDensity-RL42P4QC.js +0 -36
- package/dist/NumericDensity.unit.spec-Y6RMTYC7.js +0 -219
- package/dist/NumericHandler-4QIX324I.js +0 -37
- package/dist/NumericHandler.unit.spec-T6F5QYP6.js +0 -217
- package/dist/RunChart2-ASGCKKER.js +0 -756
- package/dist/SC-H2YCKSBH.js +0 -682
- package/dist/Volcano-QBYYJYVW.js +0 -1185
- package/dist/WSIViewer-NDHWFVAB.js +0 -47974
- package/dist/WsiSamplesPlot-CXGWPCDL.js +0 -163
- package/dist/adSandbox-DE4VRO4Z.js +0 -36
- package/dist/alphaGenome-FSIGC5ZT.js +0 -173
- package/dist/app-KZGKWQMU.js +0 -47
- package/dist/app-MQRJ7FVL.js +0 -35
- package/dist/bam-BDWTA4O3.js +0 -857
- package/dist/barchart-4Q6LVJY4.js +0 -45
- package/dist/barchart.data-EXENRVMU.js +0 -22
- package/dist/barchart.events-XRGND6I7.js +0 -45
- package/dist/barchart.integration.spec-VQITP4YH.js +0 -1675
- package/dist/block-2MABX5QO.js +0 -6200
- package/dist/block.init-NCNSE3HD.js +0 -36
- package/dist/block.mds.expressionrank-JYZARS7T.js +0 -357
- package/dist/block.mds.geneboxplot-FD2MCIHV.js +0 -826
- package/dist/block.mds.junction-LOHVQBIU.js +0 -1543
- package/dist/block.mds.svcnv-Z7SAYPQL.js +0 -6799
- package/dist/block.svg-LNJOKQNN.js +0 -162
- package/dist/block.tk.aicheck-IXCMMAGV.js +0 -281
- package/dist/block.tk.ase-WYRYFP6N.js +0 -363
- package/dist/block.tk.bam-EIVBNGAL.js +0 -1904
- package/dist/block.tk.bedgraphdot-3FHLNCU7.js +0 -382
- package/dist/block.tk.bigwig.ui-YDQU5PC4.js +0 -209
- package/dist/block.tk.hicstraw-S3ROL3CV.js +0 -821
- package/dist/block.tk.junction-DL7RNWX3.js +0 -2362
- package/dist/block.tk.junction.textmatrixui-Z6I7IEDY.js +0 -197
- package/dist/block.tk.ld-XHVU6L56.js +0 -97
- package/dist/block.tk.menu-FPLAEEFY.js +0 -1027
- package/dist/block.tk.pgv-6ZZ2QGNO.js +0 -942
- package/dist/brainImaging-VSOOMITW.js +0 -421
- package/dist/chat-LW23PIG5.js +0 -148
- package/dist/chunk-2A2KM5DU.js +0 -117
- package/dist/chunk-2K5DSRBJ.js +0 -84
- package/dist/chunk-2K5DSRBJ.js.map +0 -7
- package/dist/chunk-2LULD7RN.js +0 -31
- package/dist/chunk-36DYWBU7.js +0 -514
- package/dist/chunk-3AGB6HL4.js +0 -158
- package/dist/chunk-3AVDNIDN.js +0 -55
- package/dist/chunk-3DCABJHB.js +0 -381
- package/dist/chunk-3JMB3OSC.js +0 -102
- package/dist/chunk-3UEMY45Y.js +0 -215
- package/dist/chunk-4RR4KPRJ.js +0 -1205
- package/dist/chunk-5HCB4HNL.js +0 -147
- package/dist/chunk-5RFB7TYT.js +0 -92
- package/dist/chunk-5UMPBVA6.js +0 -534
- package/dist/chunk-6C2SBTLR.js +0 -407
- package/dist/chunk-6ITDJ5UR.js +0 -261
- package/dist/chunk-6ITDJ5UR.js.map +0 -7
- package/dist/chunk-77ZJGPK2.js +0 -289
- package/dist/chunk-7RN3L2BX.js +0 -1788
- package/dist/chunk-7RN3L2BX.js.map +0 -7
- package/dist/chunk-7VV43ICF.js +0 -272
- package/dist/chunk-A742TQD2.js +0 -615
- package/dist/chunk-A7E3JZ5P.js +0 -56
- package/dist/chunk-AFLFPYJI.js +0 -480
- package/dist/chunk-APOHXHKH.js +0 -526
- package/dist/chunk-AQ4OP4GR.js +0 -39
- package/dist/chunk-BAY47D5E.js +0 -226
- package/dist/chunk-CFHKYLDY.js +0 -26
- package/dist/chunk-CTAKX5CT.js +0 -129
- package/dist/chunk-CVBQWXLH.js +0 -455
- package/dist/chunk-D4QFQQWJ.js +0 -170
- package/dist/chunk-DGMK7SXX.js +0 -203
- package/dist/chunk-DNCSPTOQ.js +0 -446
- package/dist/chunk-DTDQKGIQ.js +0 -2672
- package/dist/chunk-E4NVHKWD.js +0 -142
- package/dist/chunk-E6KEZENR.js +0 -4207
- package/dist/chunk-EY2KBPHJ.js +0 -261
- package/dist/chunk-FRBYOOWT.js +0 -229
- package/dist/chunk-FVWCYGJL.js +0 -121
- package/dist/chunk-HWHG63LH.js +0 -148
- package/dist/chunk-I4IKRKYJ.js +0 -2815
- package/dist/chunk-IEQSUAIO.js +0 -6364
- package/dist/chunk-IET6P5MV.js +0 -335
- package/dist/chunk-JMPSZMDD.js +0 -52
- package/dist/chunk-JXOL73PT.js +0 -2784
- package/dist/chunk-K62XUHA4.js +0 -100
- package/dist/chunk-KQMEJUWI.js +0 -815
- package/dist/chunk-L4QG7XZE.js +0 -46
- package/dist/chunk-L4QG7XZE.js.map +0 -7
- package/dist/chunk-L4YGMXLX.js +0 -37
- package/dist/chunk-LI7FE335.js +0 -371
- package/dist/chunk-M7W2GYSM.js +0 -4961
- package/dist/chunk-MV6O4I2B.js +0 -441
- package/dist/chunk-MXNSW55L.js +0 -148
- package/dist/chunk-NB7NLFGZ.js +0 -228
- package/dist/chunk-NGGWK6HX.js +0 -302
- package/dist/chunk-OGGFS66K.js +0 -1087
- package/dist/chunk-OSM7YS23.js +0 -276
- package/dist/chunk-OSM7YS23.js.map +0 -7
- package/dist/chunk-OXJ2TWDO.js +0 -20644
- package/dist/chunk-OXJ2TWDO.js.map +0 -7
- package/dist/chunk-Q7PYFSNU.js +0 -107
- package/dist/chunk-QMI222IJ.js +0 -386
- package/dist/chunk-QRIRWDIW.js +0 -252
- package/dist/chunk-R6L6NVEC.js +0 -14
- package/dist/chunk-RLTLYKHO.js +0 -34
- package/dist/chunk-S5ZI6N2I.js +0 -293
- package/dist/chunk-S7T7OZC7.js +0 -158
- package/dist/chunk-SEQLC4AD.js +0 -177
- package/dist/chunk-TEZLFSOV.js +0 -54
- package/dist/chunk-TFI7ZZJG.js +0 -50
- package/dist/chunk-TV74I3Y5.js +0 -43
- package/dist/chunk-TV74I3Y5.js.map +0 -7
- package/dist/chunk-UEMTP6ZC.js +0 -824
- package/dist/chunk-UJU3Q7QJ.js +0 -119
- package/dist/chunk-V245THQC.js +0 -2370
- package/dist/chunk-V245THQC.js.map +0 -7
- package/dist/chunk-V6DLLX4N.js +0 -176
- package/dist/chunk-VIPMLSZP.js +0 -217
- package/dist/chunk-VQPS4SXU.js +0 -97
- package/dist/chunk-VUUZJANK.js +0 -1150
- package/dist/chunk-W345H42C.js +0 -273
- package/dist/chunk-WGHO2NCP.js +0 -205
- package/dist/chunk-WGL6FIUE.js +0 -330
- package/dist/chunk-WGL6FIUE.js.map +0 -7
- package/dist/chunk-WPHOEG56.js +0 -194
- package/dist/chunk-WS5XVKPJ.js +0 -470
- package/dist/chunk-X6URQAFD.js +0 -1271
- package/dist/chunk-XYFDBYOY.js +0 -1658
- package/dist/chunk-XYFDBYOY.js.map +0 -7
- package/dist/chunk-Y6RCKITI.js +0 -1155
- package/dist/chunk-Y6RCKITI.js.map +0 -7
- package/dist/chunk-YALAQWX4.js +0 -368
- package/dist/chunk-YY4CKQJ6.js +0 -95
- package/dist/chunk-Z3KV6SC2.js +0 -629
- package/dist/chunk-ZGT4XP5J.js +0 -1426
- package/dist/chunk-ZIBWLDQI.js +0 -230
- package/dist/chunk-ZIBWLDQI.js.map +0 -7
- package/dist/condition-JKQIRMMW.js +0 -330
- package/dist/controls-324AGOZG.js +0 -39
- package/dist/controls.config-TA4NNARU.js +0 -37
- package/dist/correlation-3Z36TKC2.js +0 -96
- package/dist/cuminc-4DY2CSZF.js +0 -1147
- package/dist/cuminc.integration.spec-SFQPLMSF.js +0 -676
- package/dist/customdata.inputui-IKGPEBXV.js +0 -287
- package/dist/dataDownload-3AE2N7KI.js +0 -328
- package/dist/dataDownload.integration.spec-DKOT6BJP.js +0 -191
- package/dist/databrowser.ui-ATODRS5P.js +0 -419
- package/dist/dictionary-WHDZBW5M.js +0 -109
- package/dist/dnaMethylation-TVA5YMOR.js +0 -36
- package/dist/dnaMethylation.integration.spec-JTWQR6XY.js +0 -165
- package/dist/e2pca-KHVDNFEZ.js +0 -348
- package/dist/ep-B5GAAMNM.js +0 -1254
- package/dist/expclust.gdc.spec-EDPX7V6K.js +0 -305
- package/dist/facet-ZCSXKXIO.js +0 -519
- package/dist/geneExpClustering-ERNCMAED.js +0 -246
- package/dist/geneExpression-HUOXWETT.js +0 -36
- package/dist/geneExpression-X2KXJPND.js +0 -312
- package/dist/geneExpression.unit.spec-5QQB4ISW.js +0 -100
- package/dist/geneORA-B5UK77KL.js +0 -276
- package/dist/geneVariant-7MGUAIZ6.js +0 -39
- package/dist/geneVariant-FK3KZJ2K.js +0 -37
- package/dist/geneVariant.integration.spec-C6TYWKIC.js +0 -196
- package/dist/genefusion.ui-VKAINMY7.js +0 -249
- package/dist/genefusion.ui-VKAINMY7.js.map +0 -7
- package/dist/geneset-673KAZVX.js +0 -194
- package/dist/genomeBrowser.spec-T6TQCJ3O.js +0 -279
- package/dist/grin2-376BD4XY.js +0 -1554
- package/dist/grin2-OALS75LC.js +0 -1031
- package/dist/gsea-25LD2LGP.js +0 -45
- package/dist/hierCluster-7KU3K52V.js +0 -58
- package/dist/hierCluster-M5VVWKQK.js +0 -62
- package/dist/hierCluster.config-EDO3SH2P.js +0 -38
- package/dist/hierCluster.integration.spec-UOX7J2XD.js +0 -374
- package/dist/hierCluster.interactivity-FEFZDXML.js +0 -52
- package/dist/hierCluster.renderers-A6MEGO2B.js +0 -21
- package/dist/imagePlot-FPXZ2H5Z.js +0 -139
- package/dist/importPlot-VKWPSFEK.js +0 -8
- package/dist/isoformExpression-2R2TOB6P.js +0 -38
- package/dist/isoformExpression.unit.spec-ZKFKOPKT.js +0 -206
- package/dist/launch.adhoc-242RS6DW.js +0 -40
- package/dist/leftlabel.sample-OJW3AE64.js +0 -257
- package/dist/legacyDataset-PBCPC5I7.js +0 -119
- package/dist/lollipop-TRQ3LK7Y.js +0 -166
- package/dist/maf-ZBOLN2FE.js +0 -450
- package/dist/maftimeline-GVX7NJP7.js +0 -591
- package/dist/matrix-73KRNXLM.js +0 -57
- package/dist/matrix-US3OXYRY.js +0 -62
- package/dist/matrix.cells-U7AQNEBP.js +0 -28
- package/dist/matrix.config-Q57D7C3F.js +0 -39
- package/dist/matrix.controls-AWXDRSWP.js +0 -37
- package/dist/matrix.data-EEIY6AO4.js +0 -25
- package/dist/matrix.groups-CUB6UWC5.js +0 -26
- package/dist/matrix.integration.spec-PQH67KRM.js +0 -3070
- package/dist/matrix.interactivity-JW4AXAWO.js +0 -40
- package/dist/matrix.layout-I56KRVCO.js +0 -42
- package/dist/matrix.legend-42LQGAGX.js +0 -22
- package/dist/matrix.renderers-IX3FCNBK.js +0 -36
- package/dist/matrix.serieses-4B2WB526.js +0 -21
- package/dist/matrix.sort-BJACNR7G.js +0 -27
- package/dist/matrix.sort.unit.spec-3KKDKIPY.js +0 -470
- package/dist/matrix.sorterUi-W6XFYZY2.js +0 -18
- package/dist/matrix.sorterUi.unit.spec-CMJ7EBIW.js +0 -340
- package/dist/mavb-ROAE6WYA.js +0 -730
- package/dist/mds.fimo-UGK5OWCF.js +0 -516
- package/dist/mds.samplescatterplot-5KFUAYSB.js +0 -1548
- package/dist/mds.survivalplot-2EVNZUX5.js +0 -481
- package/dist/oncomatrix-UGFXSXQJ.js +0 -293
- package/dist/oncomatrix.spec-FEP7BR7L.js +0 -446
- package/dist/plot.2dvaf-WXGLWCOC.js +0 -375
- package/dist/plot.app-IZAFRTBU.js +0 -39
- package/dist/plot.barplot-Z4VWOPFJ.js +0 -100
- package/dist/plot.boxplot-QU2KZSB7.js +0 -150
- package/dist/plot.brainImaging-U643YIK7.js +0 -51
- package/dist/plot.disco-3BV6YEBC.js +0 -101
- package/dist/plot.dzi-DWXPOOQE.js +0 -33
- package/dist/plot.ssgq-GXB2GZO3.js +0 -137
- package/dist/plot.vaf2cov-EKRIADPB.js +0 -257
- package/dist/plot.wsi-E2LLE6HI.js +0 -36
- package/dist/polar-MZLIUXHO.js +0 -184
- package/dist/polar2-IUVHNQM4.js +0 -226
- package/dist/profile.spec-JRW6KYUI.js +0 -78
- package/dist/profileBarchart-N7HJMYZ5.js +0 -265
- package/dist/profileForms-Q5TPGPQP.js +0 -438
- package/dist/profilePlot-TXTUYDVE.js +0 -52
- package/dist/profileRadar-ICEASI7W.js +0 -261
- package/dist/profileRadarFacility-NFMRNJYX.js +0 -261
- package/dist/proteinView-K3JFNORQ.js +0 -633
- package/dist/proteomeAbundance-DE4NVBCN.js +0 -21
- package/dist/proteomeAbundance-LTB3QR3G.js +0 -63
- package/dist/qualitative-DFGWQURY.js +0 -41
- package/dist/regression-TTQTAEGD.js +0 -54
- package/dist/regression.inputs-2LU2XRGC.js +0 -46
- package/dist/regression.inputs.term-G57GL57T.js +0 -46
- package/dist/regression.inputs.values.table-JSEM3PXL.js +0 -43
- package/dist/regression.integration.spec-XJQJAIC3.js +0 -782
- package/dist/regression.results-3YNM6LLQ.js +0 -38
- package/dist/regression.spec-S6WFCPSW.js +0 -706
- package/dist/report-YRAV4MY4.js +0 -220
- package/dist/sampleScatter.spec-MBJ4XNTX.js +0 -200
- package/dist/sampleView-IUR3ZEN7.js +0 -46
- package/dist/samplelst-C2NBFGH6.js +0 -109
- package/dist/samplematrix-AOK2HHSB.js +0 -2196
- package/dist/sc-XT3Z5XJI.js +0 -84
- package/dist/scatter-SAHKZRFL.js +0 -800
- package/dist/scatter.integration.spec-6KRDNHHH.js +0 -1194
- package/dist/selectGenomeWithTklst-2YVZ4JWV.js +0 -132
- package/dist/singleCellCellType-NFN5GQJM.js +0 -36
- package/dist/singleCellCellType.unit.spec-CR4IJ4DA.js +0 -158
- package/dist/singleCellGeneExpression-7AQGLXTR.js +0 -36
- package/dist/singleCellGeneExpression.unit.spec-QYNWSV2G.js +0 -151
- package/dist/singleCellPlot-IWFEG44C.js +0 -51
- package/dist/singlecell-3QNV4OMZ.js +0 -1570
- package/dist/singlecell-EATPLH66.js +0 -84
- package/dist/snp-UP7WL7WG.js +0 -36
- package/dist/snp.unit.spec-Y5NWQ442.js +0 -174
- package/dist/snplocus-WAQK2AZG.js +0 -206
- package/dist/spliceevent.a53ss.diagram-FFK27UIB.js +0 -149
- package/dist/spliceevent.exonskip.diagram-KWEF2OZJ.js +0 -275
- package/dist/spliceevent.noeventdiagram-PU4TI7OM.js +0 -458
- package/dist/ssGSEA-N6QOAVLW.js +0 -36
- package/dist/ssGSEA.unit.spec-KQBNZNNP.js +0 -86
- package/dist/summarizeCnvGeneexp-NWX4M6LZ.js +0 -161
- package/dist/summarizeGeneexpSurvival-N5VTE2G6.js +0 -106
- package/dist/summarizeMutationCnv-VV7CVAA7.js +0 -162
- package/dist/summarizeMutationDiagnosis-5RHSG7L6.js +0 -38
- package/dist/summarizeMutationSurvival-22YYXGS5.js +0 -97
- package/dist/summary-P3WIKJS7.js +0 -47
- package/dist/summary.integration.spec-ULGRPICW.js +0 -412
- package/dist/summaryInput-IH4EVNF5.js +0 -218
- package/dist/sunburst-VJJ3UVYC.js +0 -282
- package/dist/survival-2ZE3N62A.js +0 -44
- package/dist/survival-ASCLKIII.js +0 -56
- package/dist/survival.integration.spec-C5YXOY77.js +0 -787
- package/dist/survival.integration.spec-C5YXOY77.js.map +0 -7
- package/dist/svgraph-AYR2UPNK.js +0 -1385
- package/dist/svmr-MOMW5DNY.js +0 -3840
- package/dist/table-PQB6KCEY.js +0 -198
- package/dist/termCollection-5AY2AWT4.js +0 -36
- package/dist/termCollection-OQMUUTW6.js +0 -177
- package/dist/termCollection.unit.spec-BUAXYIJK.js +0 -206
- package/dist/tk-EJLFFA5H.js +0 -44
- package/dist/tp.ui-WUW6A7KP.js +0 -1457
- package/dist/tvs.density-HSVPDDGA.js +0 -18
- package/dist/tvs.dt-MVJXQMNU.js +0 -37
- package/dist/tvs.dtcnv.categorical-FIIDWVK7.js +0 -38
- package/dist/tvs.dtcnv.continuous-JPQU3JA2.js +0 -70
- package/dist/tvs.dtfusion-BW35GOQM.js +0 -38
- package/dist/tvs.dtsnvindel-AEMFZ4EH.js +0 -38
- package/dist/tvs.dtsv-JHTU7UFD.js +0 -38
- package/dist/tvs.numeric-ICUGA4WY.js +0 -21
- package/dist/tvs.samplelst-VD2NFFFS.js +0 -102
- package/dist/tvs.termCollection-IKE5Q74D.js +0 -151
- package/dist/violin-DPMJLHQG.js +0 -44
- package/dist/violin.integration.spec-A4PNR4ES.js +0 -1423
- package/dist/violin.interactivity-TS4DYUE5.js +0 -36
- package/dist/violin.renderer-53L4PXUT.js +0 -38
- package/dist/vocabulary-4MPFHKYC.js +0 -39
- /package/dist/{2dmaf-6ZTETSC5.js.map → 2dmaf-PBJ3POZQ.js.map} +0 -0
- /package/dist/{AIProjectAdmin-ZT3XKBBT.js.map → AIProjectAdmin-5IAXCACJ.js.map} +0 -0
- /package/dist/{AppHeader-U7SJPIBS.js.map → AppHeader-HLUE2IQT.js.map} +0 -0
- /package/dist/{BoxPlot-QGHLZ67V.js.map → BoxPlot-NAQS5MHV.js.map} +0 -0
- /package/dist/{CorrelationVolcano-7SE4CTBW.js.map → CorrelationVolcano-TVVUP4L4.js.map} +0 -0
- /package/dist/{DE-PZ7RHPBS.js.map → DE-F7LUSAO2.js.map} +0 -0
- /package/dist/{DEinput-UZEQIU2V.js.map → DEinput-V7MF5IEZ.js.map} +0 -0
- /package/dist/{DifferentialAnalysis-L6BOEYVO.js.map → DifferentialAnalysis-R2Z7G75Y.js.map} +0 -0
- /package/dist/{Disco-6FDT6KRM.js.map → Disco-7S5KUVQ6.js.map} +0 -0
- /package/dist/{Disco.UI-HKOUAD4P.js.map → Disco.UI-6ONZR7GK.js.map} +0 -0
- /package/dist/{DmrPlot-3R24PTXP.js.map → DmrPlot-NZXGFMBY.js.map} +0 -0
- /package/dist/{GB-SZVYZASR.js.map → GB-3EXBSESG.js.map} +0 -0
- /package/dist/{HicApp-SEEJETVE.js.map → HicApp-WEYV7T46.js.map} +0 -0
- /package/dist/{NumBinaryEditor-SDQFJ3FW.js.map → NumBinaryEditor-SNJD6NVL.js.map} +0 -0
- /package/dist/{NumBinaryEditor.unit.spec-76ZZXTYC.js.map → NumBinaryEditor.unit.spec-A7C4A2HF.js.map} +0 -0
- /package/dist/{NumContEditor-G75O4YZE.js.map → NumContEditor-TBOEORWJ.js.map} +0 -0
- /package/dist/{NumContEditor.unit.spec-BFUZRBPL.js.map → NumContEditor.unit.spec-BJKQNFPL.js.map} +0 -0
- /package/dist/{NumCustomBinEditor-ILTPHCEF.js.map → NumCustomBinEditor-RNWEGLLB.js.map} +0 -0
- /package/dist/{NumCustomBinEditor.unit.spec-GFIYV55V.js.map → NumCustomBinEditor.unit.spec-CW3D5WOW.js.map} +0 -0
- /package/dist/{NumDiscreteEditor-5K3OKUOE.js.map → NumDiscreteEditor-WXRAMEWQ.js.map} +0 -0
- /package/dist/{NumDiscreteEditor.unit.spec-NZ4KWPFK.js.map → NumDiscreteEditor.unit.spec-SJTHYGMI.js.map} +0 -0
- /package/dist/{NumRegularBinEditor-7ZJ2MEMY.js.map → NumRegularBinEditor-LLSKHSJC.js.map} +0 -0
- /package/dist/{NumRegularBinEditor.unit.spec-QGVJET65.js.map → NumRegularBinEditor.unit.spec-G3YRWT52.js.map} +0 -0
- /package/dist/{NumSplineEditor-KE4UPODZ.js.map → NumSplineEditor-W6HG3I53.js.map} +0 -0
- /package/dist/{NumSplineEditor.unit.spec-YQOOZA7S.js.map → NumSplineEditor.unit.spec-BVVTYJY7.js.map} +0 -0
- /package/dist/{NumericDensity-RL42P4QC.js.map → NumericDensity-VYAZXP4D.js.map} +0 -0
- /package/dist/{NumericDensity.unit.spec-Y6RMTYC7.js.map → NumericDensity.unit.spec-4QCKG6GM.js.map} +0 -0
- /package/dist/{NumericHandler-4QIX324I.js.map → NumericHandler-PKCERKLB.js.map} +0 -0
- /package/dist/{NumericHandler.unit.spec-T6F5QYP6.js.map → NumericHandler.unit.spec-JIYZ3IFG.js.map} +0 -0
- /package/dist/{RunChart2-ASGCKKER.js.map → RunChart2-I4ZBBKOC.js.map} +0 -0
- /package/dist/{SC-H2YCKSBH.js.map → SC-OLNRPTNS.js.map} +0 -0
- /package/dist/{Volcano-QBYYJYVW.js.map → Volcano-DEOVDPYB.js.map} +0 -0
- /package/dist/{WSIViewer-NDHWFVAB.js.map → WSIViewer-VA36EDFH.js.map} +0 -0
- /package/dist/{WsiSamplesPlot-CXGWPCDL.js.map → WsiSamplesPlot-RA644FK6.js.map} +0 -0
- /package/dist/{adSandbox-DE4VRO4Z.js.map → adSandbox-SJ3O3RVJ.js.map} +0 -0
- /package/dist/{alphaGenome-FSIGC5ZT.js.map → alphaGenome-UTVIVOEF.js.map} +0 -0
- /package/dist/{app-KZGKWQMU.js.map → app-6UPJNZVS.js.map} +0 -0
- /package/dist/{app-MQRJ7FVL.js.map → app-YFBAT5TM.js.map} +0 -0
- /package/dist/{bam-BDWTA4O3.js.map → bam-C4KHGT7X.js.map} +0 -0
- /package/dist/{barchart-4Q6LVJY4.js.map → barchart-UOELLJAZ.js.map} +0 -0
- /package/dist/{barchart.data-EXENRVMU.js.map → barchart.data-EYZ3W4BQ.js.map} +0 -0
- /package/dist/{barchart.events-XRGND6I7.js.map → barchart.events-SJZZV3TI.js.map} +0 -0
- /package/dist/{barchart.integration.spec-VQITP4YH.js.map → barchart.integration.spec-A4XZNV3B.js.map} +0 -0
- /package/dist/{block-2MABX5QO.js.map → block-ODDURI6Y.js.map} +0 -0
- /package/dist/{block.init-NCNSE3HD.js.map → block.init-TZXJGL7D.js.map} +0 -0
- /package/dist/{block.mds.expressionrank-JYZARS7T.js.map → block.mds.expressionrank-UE2D6D3N.js.map} +0 -0
- /package/dist/{block.mds.geneboxplot-FD2MCIHV.js.map → block.mds.geneboxplot-KINAWY6K.js.map} +0 -0
- /package/dist/{block.mds.junction-LOHVQBIU.js.map → block.mds.junction-HRJQOYBL.js.map} +0 -0
- /package/dist/{block.mds.svcnv-Z7SAYPQL.js.map → block.mds.svcnv-7C2IMZXB.js.map} +0 -0
- /package/dist/{block.svg-LNJOKQNN.js.map → block.svg-757BH6PD.js.map} +0 -0
- /package/dist/{block.tk.aicheck-IXCMMAGV.js.map → block.tk.aicheck-M4VAVJL6.js.map} +0 -0
- /package/dist/{block.tk.ase-WYRYFP6N.js.map → block.tk.ase-J5HCPECM.js.map} +0 -0
- /package/dist/{block.tk.bam-EIVBNGAL.js.map → block.tk.bam-7NFAMVLF.js.map} +0 -0
- /package/dist/{block.tk.bedgraphdot-3FHLNCU7.js.map → block.tk.bedgraphdot-HROSDQH5.js.map} +0 -0
- /package/dist/{block.tk.bigwig.ui-YDQU5PC4.js.map → block.tk.bigwig.ui-BIMVFUT6.js.map} +0 -0
- /package/dist/{block.tk.hicstraw-S3ROL3CV.js.map → block.tk.hicstraw-W7CWMNZ7.js.map} +0 -0
- /package/dist/{block.tk.junction-DL7RNWX3.js.map → block.tk.junction-ZUUBN36V.js.map} +0 -0
- /package/dist/{block.tk.junction.textmatrixui-Z6I7IEDY.js.map → block.tk.junction.textmatrixui-PYJ4UGCF.js.map} +0 -0
- /package/dist/{block.tk.ld-XHVU6L56.js.map → block.tk.ld-6E7ZXTCC.js.map} +0 -0
- /package/dist/{block.tk.menu-FPLAEEFY.js.map → block.tk.menu-SWT3R74J.js.map} +0 -0
- /package/dist/{block.tk.pgv-6ZZ2QGNO.js.map → block.tk.pgv-SEDDAV24.js.map} +0 -0
- /package/dist/{brainImaging-VSOOMITW.js.map → brainImaging-X5WPNTUO.js.map} +0 -0
- /package/dist/{chat-LW23PIG5.js.map → chat-KZ3LZAQ6.js.map} +0 -0
- /package/dist/{chunk-QMI222IJ.js.map → chunk-2TMP56TB.js.map} +0 -0
- /package/dist/{chunk-5RFB7TYT.js.map → chunk-2VNQJGPM.js.map} +0 -0
- /package/dist/{chunk-APOHXHKH.js.map → chunk-3DN47Y2E.js.map} +0 -0
- /package/dist/{chunk-EY2KBPHJ.js.map → chunk-4IL33OUX.js.map} +0 -0
- /package/dist/{chunk-NB7NLFGZ.js.map → chunk-4YG57UVZ.js.map} +0 -0
- /package/dist/{chunk-VUUZJANK.js.map → chunk-54P7H5GL.js.map} +0 -0
- /package/dist/{chunk-S7T7OZC7.js.map → chunk-5BBR2HND.js.map} +0 -0
- /package/dist/{chunk-JXOL73PT.js.map → chunk-5BCACIPX.js.map} +0 -0
- /package/dist/{chunk-77ZJGPK2.js.map → chunk-6CRWDKT7.js.map} +0 -0
- /package/dist/{chunk-ZGT4XP5J.js.map → chunk-7M45T6YS.js.map} +0 -0
- /package/dist/{chunk-CFHKYLDY.js.map → chunk-7N3Q25KC.js.map} +0 -0
- /package/dist/{chunk-TFI7ZZJG.js.map → chunk-AQ2ODUYY.js.map} +0 -0
- /package/dist/{chunk-OGGFS66K.js.map → chunk-AZLWNXFP.js.map} +0 -0
- /package/dist/{chunk-K62XUHA4.js.map → chunk-B3SLLQAS.js.map} +0 -0
- /package/dist/{chunk-UEMTP6ZC.js.map → chunk-BHEBKIGM.js.map} +0 -0
- /package/dist/{chunk-MXNSW55L.js.map → chunk-CAHAYB6O.js.map} +0 -0
- /package/dist/{chunk-L4YGMXLX.js.map → chunk-CGDEEO4I.js.map} +0 -0
- /package/dist/{chunk-A7E3JZ5P.js.map → chunk-CXLRKDEC.js.map} +0 -0
- /package/dist/{chunk-3JMB3OSC.js.map → chunk-DET76M2J.js.map} +0 -0
- /package/dist/{chunk-AQ4OP4GR.js.map → chunk-DONWY7TP.js.map} +0 -0
- /package/dist/{chunk-AFLFPYJI.js.map → chunk-DP5ACVIR.js.map} +0 -0
- /package/dist/{chunk-V6DLLX4N.js.map → chunk-E5JQ3PN6.js.map} +0 -0
- /package/dist/{chunk-HWHG63LH.js.map → chunk-EJNV6SCH.js.map} +0 -0
- /package/dist/{chunk-36DYWBU7.js.map → chunk-F5D4ADBB.js.map} +0 -0
- /package/dist/{chunk-SEQLC4AD.js.map → chunk-F6V4AYWP.js.map} +0 -0
- /package/dist/{chunk-FRBYOOWT.js.map → chunk-FBG235FD.js.map} +0 -0
- /package/dist/{chunk-LI7FE335.js.map → chunk-FGMPKWT5.js.map} +0 -0
- /package/dist/{chunk-WGHO2NCP.js.map → chunk-FWKAYZ55.js.map} +0 -0
- /package/dist/{chunk-2LULD7RN.js.map → chunk-GMDQIP3M.js.map} +0 -0
- /package/dist/{chunk-Q7PYFSNU.js.map → chunk-H55L2FAY.js.map} +0 -0
- /package/dist/{chunk-A742TQD2.js.map → chunk-HED3JZ2O.js.map} +0 -0
- /package/dist/{chunk-S5ZI6N2I.js.map → chunk-IBIFTCWL.js.map} +0 -0
- /package/dist/{chunk-6C2SBTLR.js.map → chunk-ILDUYXV5.js.map} +0 -0
- /package/dist/{chunk-IET6P5MV.js.map → chunk-IQ25XHGX.js.map} +0 -0
- /package/dist/{chunk-YY4CKQJ6.js.map → chunk-JLSN2WF5.js.map} +0 -0
- /package/dist/{chunk-KQMEJUWI.js.map → chunk-JOT4WDJE.js.map} +0 -0
- /package/dist/{chunk-X6URQAFD.js.map → chunk-JQIR2UG5.js.map} +0 -0
- /package/dist/{chunk-DNCSPTOQ.js.map → chunk-KBDY6GE3.js.map} +0 -0
- /package/dist/{chunk-JMPSZMDD.js.map → chunk-KZFOWI7N.js.map} +0 -0
- /package/dist/{chunk-BAY47D5E.js.map → chunk-LKFYRQOH.js.map} +0 -0
- /package/dist/{chunk-IEQSUAIO.js.map → chunk-LO4WNMBO.js.map} +0 -0
- /package/dist/{chunk-VIPMLSZP.js.map → chunk-LXQ6DLAR.js.map} +0 -0
- /package/dist/{chunk-WPHOEG56.js.map → chunk-M3EBH2WK.js.map} +0 -0
- /package/dist/{chunk-DTDQKGIQ.js.map → chunk-M5Z3GYRH.js.map} +0 -0
- /package/dist/{chunk-I4IKRKYJ.js.map → chunk-MEIKKPY7.js.map} +0 -0
- /package/dist/{chunk-Z3KV6SC2.js.map → chunk-MZ7RBJSI.js.map} +0 -0
- /package/dist/{chunk-D4QFQQWJ.js.map → chunk-OH7PDA2Z.js.map} +0 -0
- /package/dist/{chunk-WS5XVKPJ.js.map → chunk-OKIJIYSP.js.map} +0 -0
- /package/dist/{chunk-RLTLYKHO.js.map → chunk-OOD5HBVR.js.map} +0 -0
- /package/dist/{chunk-UJU3Q7QJ.js.map → chunk-OTCYJP7G.js.map} +0 -0
- /package/dist/{chunk-3AGB6HL4.js.map → chunk-P7T2U6T7.js.map} +0 -0
- /package/dist/{chunk-E4NVHKWD.js.map → chunk-PLHGSDJY.js.map} +0 -0
- /package/dist/{chunk-4RR4KPRJ.js.map → chunk-PUDZL7RZ.js.map} +0 -0
- /package/dist/{chunk-R6L6NVEC.js.map → chunk-PYJ3QA6E.js.map} +0 -0
- /package/dist/{chunk-CVBQWXLH.js.map → chunk-QDRZL47L.js.map} +0 -0
- /package/dist/{chunk-MV6O4I2B.js.map → chunk-QTGTMFHM.js.map} +0 -0
- /package/dist/{chunk-VQPS4SXU.js.map → chunk-QWL5TZ4G.js.map} +0 -0
- /package/dist/{chunk-NGGWK6HX.js.map → chunk-RF6ATFT2.js.map} +0 -0
- /package/dist/{chunk-YALAQWX4.js.map → chunk-RH573XZP.js.map} +0 -0
- /package/dist/{chunk-M7W2GYSM.js.map → chunk-SR72NS4M.js.map} +0 -0
- /package/dist/{chunk-3UEMY45Y.js.map → chunk-STEV77G7.js.map} +0 -0
- /package/dist/{chunk-E6KEZENR.js.map → chunk-TBRPZ3FL.js.map} +0 -0
- /package/dist/{chunk-5HCB4HNL.js.map → chunk-TE3DK3A6.js.map} +0 -0
- /package/dist/{chunk-DGMK7SXX.js.map → chunk-TTGDA3MA.js.map} +0 -0
- /package/dist/{chunk-5UMPBVA6.js.map → chunk-UFDQ2R2Q.js.map} +0 -0
- /package/dist/{chunk-FVWCYGJL.js.map → chunk-UWX7W22M.js.map} +0 -0
- /package/dist/{chunk-TEZLFSOV.js.map → chunk-V2R3JFLP.js.map} +0 -0
- /package/dist/{chunk-7VV43ICF.js.map → chunk-VKK5MGDU.js.map} +0 -0
- /package/dist/{chunk-2A2KM5DU.js.map → chunk-WHVOWEFP.js.map} +0 -0
- /package/dist/{chunk-3AVDNIDN.js.map → chunk-XQTXYKAU.js.map} +0 -0
- /package/dist/{chunk-QRIRWDIW.js.map → chunk-YA73ETIT.js.map} +0 -0
- /package/dist/{chunk-W345H42C.js.map → chunk-YXJXRXJR.js.map} +0 -0
- /package/dist/{chunk-3DCABJHB.js.map → chunk-ZIAGMGMS.js.map} +0 -0
- /package/dist/{chunk-CTAKX5CT.js.map → chunk-ZXNBYIBD.js.map} +0 -0
- /package/dist/{condition-JKQIRMMW.js.map → condition-RQP7JUST.js.map} +0 -0
- /package/dist/{controls-324AGOZG.js.map → controls-WFT5GE3D.js.map} +0 -0
- /package/dist/{controls.config-TA4NNARU.js.map → controls.config-66ZKRSPU.js.map} +0 -0
- /package/dist/{correlation-3Z36TKC2.js.map → correlation-45MFH7X4.js.map} +0 -0
- /package/dist/{cuminc-4DY2CSZF.js.map → cuminc-44ALCFL4.js.map} +0 -0
- /package/dist/{cuminc.integration.spec-SFQPLMSF.js.map → cuminc.integration.spec-I2UTPH3X.js.map} +0 -0
- /package/dist/{customdata.inputui-IKGPEBXV.js.map → customdata.inputui-PBA5LZRT.js.map} +0 -0
- /package/dist/{dataDownload-3AE2N7KI.js.map → dataDownload-CRGQTCOW.js.map} +0 -0
- /package/dist/{dataDownload.integration.spec-DKOT6BJP.js.map → dataDownload.integration.spec-7SAPXDH4.js.map} +0 -0
- /package/dist/{databrowser.ui-ATODRS5P.js.map → databrowser.ui-O5TPKDPL.js.map} +0 -0
- /package/dist/{dictionary-WHDZBW5M.js.map → dictionary-QGSAJ7FM.js.map} +0 -0
- /package/dist/{dnaMethylation-TVA5YMOR.js.map → dnaMethylation-4VDQBBGJ.js.map} +0 -0
- /package/dist/{dnaMethylation.integration.spec-JTWQR6XY.js.map → dnaMethylation.integration.spec-RSO5U6RN.js.map} +0 -0
- /package/dist/{e2pca-KHVDNFEZ.js.map → e2pca-7LPSASDI.js.map} +0 -0
- /package/dist/{ep-B5GAAMNM.js.map → ep-AIOPCUME.js.map} +0 -0
- /package/dist/{expclust.gdc.spec-EDPX7V6K.js.map → expclust.gdc.spec-PSXJZCAI.js.map} +0 -0
- /package/dist/{facet-ZCSXKXIO.js.map → facet-W3RYRWXJ.js.map} +0 -0
- /package/dist/{geneExpClustering-ERNCMAED.js.map → geneExpClustering-SBQWW6IZ.js.map} +0 -0
- /package/dist/{geneExpression-X2KXJPND.js.map → geneExpression-4WEYCEZV.js.map} +0 -0
- /package/dist/{geneExpression-HUOXWETT.js.map → geneExpression-JWYJNDN5.js.map} +0 -0
- /package/dist/{geneExpression.unit.spec-5QQB4ISW.js.map → geneExpression.unit.spec-HKD4DJIV.js.map} +0 -0
- /package/dist/{geneORA-B5UK77KL.js.map → geneORA-YUVDOZ5X.js.map} +0 -0
- /package/dist/{geneVariant-7MGUAIZ6.js.map → geneVariant-J3UI6RWM.js.map} +0 -0
- /package/dist/{geneVariant-FK3KZJ2K.js.map → geneVariant-ZB7CLFCT.js.map} +0 -0
- /package/dist/{geneVariant.integration.spec-C6TYWKIC.js.map → geneVariant.integration.spec-JDCKOR4C.js.map} +0 -0
- /package/dist/{geneset-673KAZVX.js.map → geneset-242QGP5Q.js.map} +0 -0
- /package/dist/{genomeBrowser.spec-T6TQCJ3O.js.map → genomeBrowser.spec-NRLKLJQD.js.map} +0 -0
- /package/dist/{grin2-376BD4XY.js.map → grin2-FD3JTI5R.js.map} +0 -0
- /package/dist/{grin2-OALS75LC.js.map → grin2-TAR4VXPJ.js.map} +0 -0
- /package/dist/{gsea-25LD2LGP.js.map → gsea-YHG57UZ5.js.map} +0 -0
- /package/dist/{hierCluster-7KU3K52V.js.map → hierCluster-QUAZ7NI6.js.map} +0 -0
- /package/dist/{hierCluster-M5VVWKQK.js.map → hierCluster-V2YZEXGX.js.map} +0 -0
- /package/dist/{hierCluster.config-EDO3SH2P.js.map → hierCluster.config-ZOWXZGTF.js.map} +0 -0
- /package/dist/{hierCluster.integration.spec-UOX7J2XD.js.map → hierCluster.integration.spec-FAR4KK32.js.map} +0 -0
- /package/dist/{hierCluster.interactivity-FEFZDXML.js.map → hierCluster.interactivity-D3TK5FSM.js.map} +0 -0
- /package/dist/{hierCluster.renderers-A6MEGO2B.js.map → hierCluster.renderers-C2RK55NN.js.map} +0 -0
- /package/dist/{imagePlot-FPXZ2H5Z.js.map → imagePlot-2CACVKOO.js.map} +0 -0
- /package/dist/{importPlot-VKWPSFEK.js.map → importPlot-KUOEC2YF.js.map} +0 -0
- /package/dist/{isoformExpression-2R2TOB6P.js.map → isoformExpression-2G4WCETG.js.map} +0 -0
- /package/dist/{isoformExpression.unit.spec-ZKFKOPKT.js.map → isoformExpression.unit.spec-YBNCR6PE.js.map} +0 -0
- /package/dist/{launch.adhoc-242RS6DW.js.map → launch.adhoc-PECQW652.js.map} +0 -0
- /package/dist/{leftlabel.sample-OJW3AE64.js.map → leftlabel.sample-6O2CXXC2.js.map} +0 -0
- /package/dist/{legacyDataset-PBCPC5I7.js.map → legacyDataset-QRSNRVUA.js.map} +0 -0
- /package/dist/{lollipop-TRQ3LK7Y.js.map → lollipop-CAFEKZSO.js.map} +0 -0
- /package/dist/{maf-ZBOLN2FE.js.map → maf-N7ZB5J22.js.map} +0 -0
- /package/dist/{maftimeline-GVX7NJP7.js.map → maftimeline-MCYB3EST.js.map} +0 -0
- /package/dist/{matrix-73KRNXLM.js.map → matrix-ID662DZG.js.map} +0 -0
- /package/dist/{matrix-US3OXYRY.js.map → matrix-JDGO6A4G.js.map} +0 -0
- /package/dist/{matrix.cells-U7AQNEBP.js.map → matrix.cells-QWB3XSTN.js.map} +0 -0
- /package/dist/{matrix.config-Q57D7C3F.js.map → matrix.config-HHWMMUZT.js.map} +0 -0
- /package/dist/{matrix.controls-AWXDRSWP.js.map → matrix.controls-EOX43634.js.map} +0 -0
- /package/dist/{matrix.data-EEIY6AO4.js.map → matrix.data-YTSSULKG.js.map} +0 -0
- /package/dist/{matrix.groups-CUB6UWC5.js.map → matrix.groups-NGJ276VG.js.map} +0 -0
- /package/dist/{matrix.integration.spec-PQH67KRM.js.map → matrix.integration.spec-XHGSEBYM.js.map} +0 -0
- /package/dist/{matrix.interactivity-JW4AXAWO.js.map → matrix.interactivity-OZS7R32Z.js.map} +0 -0
- /package/dist/{matrix.layout-I56KRVCO.js.map → matrix.layout-GBQJ7O3H.js.map} +0 -0
- /package/dist/{matrix.legend-42LQGAGX.js.map → matrix.legend-AGTC5JPS.js.map} +0 -0
- /package/dist/{matrix.renderers-IX3FCNBK.js.map → matrix.renderers-L5D5NLLR.js.map} +0 -0
- /package/dist/{matrix.serieses-4B2WB526.js.map → matrix.serieses-DDQOSCL4.js.map} +0 -0
- /package/dist/{matrix.sort-BJACNR7G.js.map → matrix.sort-6VF7VNFX.js.map} +0 -0
- /package/dist/{matrix.sort.unit.spec-3KKDKIPY.js.map → matrix.sort.unit.spec-QGJBVO3X.js.map} +0 -0
- /package/dist/{matrix.sorterUi-W6XFYZY2.js.map → matrix.sorterUi-UE7CBIUP.js.map} +0 -0
- /package/dist/{matrix.sorterUi.unit.spec-CMJ7EBIW.js.map → matrix.sorterUi.unit.spec-CTLTVJCO.js.map} +0 -0
- /package/dist/{mavb-ROAE6WYA.js.map → mavb-MU7H7YWY.js.map} +0 -0
- /package/dist/{mds.fimo-UGK5OWCF.js.map → mds.fimo-ELCNQMNR.js.map} +0 -0
- /package/dist/{mds.samplescatterplot-5KFUAYSB.js.map → mds.samplescatterplot-P7N4SXYT.js.map} +0 -0
- /package/dist/{mds.survivalplot-2EVNZUX5.js.map → mds.survivalplot-KJFW4IRT.js.map} +0 -0
- /package/dist/{oncomatrix-UGFXSXQJ.js.map → oncomatrix-Q5X3O65P.js.map} +0 -0
- /package/dist/{oncomatrix.spec-FEP7BR7L.js.map → oncomatrix.spec-CJGXXI3U.js.map} +0 -0
- /package/dist/{plot.2dvaf-WXGLWCOC.js.map → plot.2dvaf-CDPVMUPX.js.map} +0 -0
- /package/dist/{plot.app-IZAFRTBU.js.map → plot.app-BSPQMQCI.js.map} +0 -0
- /package/dist/{plot.barplot-Z4VWOPFJ.js.map → plot.barplot-C33LEV4Q.js.map} +0 -0
- /package/dist/{plot.boxplot-QU2KZSB7.js.map → plot.boxplot-XH7FN6PC.js.map} +0 -0
- /package/dist/{plot.brainImaging-U643YIK7.js.map → plot.brainImaging-5BB455FT.js.map} +0 -0
- /package/dist/{plot.disco-3BV6YEBC.js.map → plot.disco-3YUN6XAY.js.map} +0 -0
- /package/dist/{plot.dzi-DWXPOOQE.js.map → plot.dzi-RZWAL5UC.js.map} +0 -0
- /package/dist/{plot.ssgq-GXB2GZO3.js.map → plot.ssgq-M763HWMN.js.map} +0 -0
- /package/dist/{plot.vaf2cov-EKRIADPB.js.map → plot.vaf2cov-EAHQV6FD.js.map} +0 -0
- /package/dist/{plot.wsi-E2LLE6HI.js.map → plot.wsi-2BDC3RJS.js.map} +0 -0
- /package/dist/{polar-MZLIUXHO.js.map → polar-3SJ5SUNJ.js.map} +0 -0
- /package/dist/{polar2-IUVHNQM4.js.map → polar2-3GTEGZUL.js.map} +0 -0
- /package/dist/{profile.spec-JRW6KYUI.js.map → profile.spec-AR7JLQYT.js.map} +0 -0
- /package/dist/{profileBarchart-N7HJMYZ5.js.map → profileBarchart-GLTPPW2O.js.map} +0 -0
- /package/dist/{profileForms-Q5TPGPQP.js.map → profileForms-FE4GHA2T.js.map} +0 -0
- /package/dist/{profilePlot-TXTUYDVE.js.map → profilePlot-3JXEZUX5.js.map} +0 -0
- /package/dist/{profileRadar-ICEASI7W.js.map → profileRadar-NA2WUSHG.js.map} +0 -0
- /package/dist/{profileRadarFacility-NFMRNJYX.js.map → profileRadarFacility-6UNT4GPM.js.map} +0 -0
- /package/dist/{proteinView-K3JFNORQ.js.map → proteinView-ESTBC3K2.js.map} +0 -0
- /package/dist/{proteomeAbundance-LTB3QR3G.js.map → proteomeAbundance-GDK5EIE7.js.map} +0 -0
- /package/dist/{proteomeAbundance-DE4NVBCN.js.map → proteomeAbundance-NVLYQRKI.js.map} +0 -0
- /package/dist/{qualitative-DFGWQURY.js.map → qualitative-TUNIICQ4.js.map} +0 -0
- /package/dist/{regression-TTQTAEGD.js.map → regression-22IF77A7.js.map} +0 -0
- /package/dist/{regression.inputs-2LU2XRGC.js.map → regression.inputs-VCVMUBA7.js.map} +0 -0
- /package/dist/{regression.inputs.term-G57GL57T.js.map → regression.inputs.term-6FWVBNJT.js.map} +0 -0
- /package/dist/{regression.inputs.values.table-JSEM3PXL.js.map → regression.inputs.values.table-2FXOWLKN.js.map} +0 -0
- /package/dist/{regression.integration.spec-XJQJAIC3.js.map → regression.integration.spec-2UMB7EIG.js.map} +0 -0
- /package/dist/{regression.results-3YNM6LLQ.js.map → regression.results-27XHC5GE.js.map} +0 -0
- /package/dist/{regression.spec-S6WFCPSW.js.map → regression.spec-5Q4J7TJZ.js.map} +0 -0
- /package/dist/{report-YRAV4MY4.js.map → report-B4RRLC7Q.js.map} +0 -0
- /package/dist/{sampleScatter.spec-MBJ4XNTX.js.map → sampleScatter.spec-TXZYLGM7.js.map} +0 -0
- /package/dist/{sampleView-IUR3ZEN7.js.map → sampleView-2WKGJUSX.js.map} +0 -0
- /package/dist/{samplelst-C2NBFGH6.js.map → samplelst-NJZOPYYJ.js.map} +0 -0
- /package/dist/{samplematrix-AOK2HHSB.js.map → samplematrix-ZXOLANI5.js.map} +0 -0
- /package/dist/{sc-XT3Z5XJI.js.map → sc-4IYYVV2I.js.map} +0 -0
- /package/dist/{scatter-SAHKZRFL.js.map → scatter-UBF4N6ON.js.map} +0 -0
- /package/dist/{scatter.integration.spec-6KRDNHHH.js.map → scatter.integration.spec-JNGJ4BU5.js.map} +0 -0
- /package/dist/{selectGenomeWithTklst-2YVZ4JWV.js.map → selectGenomeWithTklst-7ICTRJNK.js.map} +0 -0
- /package/dist/{singleCellCellType-NFN5GQJM.js.map → singleCellCellType-Y5ETQYDC.js.map} +0 -0
- /package/dist/{singleCellCellType.unit.spec-CR4IJ4DA.js.map → singleCellCellType.unit.spec-TLLZRMD7.js.map} +0 -0
- /package/dist/{singleCellGeneExpression-7AQGLXTR.js.map → singleCellGeneExpression-HZRIE2XT.js.map} +0 -0
- /package/dist/{singleCellGeneExpression.unit.spec-QYNWSV2G.js.map → singleCellGeneExpression.unit.spec-K435LTFJ.js.map} +0 -0
- /package/dist/{singleCellPlot-IWFEG44C.js.map → singleCellPlot-T7MKCAAW.js.map} +0 -0
- /package/dist/{singlecell-EATPLH66.js.map → singlecell-K662WWCH.js.map} +0 -0
- /package/dist/{singlecell-3QNV4OMZ.js.map → singlecell-KVLDYQ36.js.map} +0 -0
- /package/dist/{snp-UP7WL7WG.js.map → snp-JNV3DX5W.js.map} +0 -0
- /package/dist/{snp.unit.spec-Y5NWQ442.js.map → snp.unit.spec-7KFVZUWR.js.map} +0 -0
- /package/dist/{snplocus-WAQK2AZG.js.map → snplocus-VJLA35TV.js.map} +0 -0
- /package/dist/{spliceevent.a53ss.diagram-FFK27UIB.js.map → spliceevent.a53ss.diagram-MZPU6IBF.js.map} +0 -0
- /package/dist/{spliceevent.exonskip.diagram-KWEF2OZJ.js.map → spliceevent.exonskip.diagram-OOYBJT4F.js.map} +0 -0
- /package/dist/{spliceevent.noeventdiagram-PU4TI7OM.js.map → spliceevent.noeventdiagram-KPEZVRFS.js.map} +0 -0
- /package/dist/{ssGSEA-N6QOAVLW.js.map → ssGSEA-GPPPUU2J.js.map} +0 -0
- /package/dist/{ssGSEA.unit.spec-KQBNZNNP.js.map → ssGSEA.unit.spec-4SRZ4NRN.js.map} +0 -0
- /package/dist/{summarizeCnvGeneexp-NWX4M6LZ.js.map → summarizeCnvGeneexp-NRLEM4X4.js.map} +0 -0
- /package/dist/{summarizeGeneexpSurvival-N5VTE2G6.js.map → summarizeGeneexpSurvival-BJLP43OZ.js.map} +0 -0
- /package/dist/{summarizeMutationCnv-VV7CVAA7.js.map → summarizeMutationCnv-7DCCBY5U.js.map} +0 -0
- /package/dist/{summarizeMutationDiagnosis-5RHSG7L6.js.map → summarizeMutationDiagnosis-HATSCOMG.js.map} +0 -0
- /package/dist/{summarizeMutationSurvival-22YYXGS5.js.map → summarizeMutationSurvival-XIRZFWDJ.js.map} +0 -0
- /package/dist/{summary-P3WIKJS7.js.map → summary-VOFTJ76P.js.map} +0 -0
- /package/dist/{summary.integration.spec-ULGRPICW.js.map → summary.integration.spec-2C5RCIY4.js.map} +0 -0
- /package/dist/{summaryInput-IH4EVNF5.js.map → summaryInput-DIIECI4W.js.map} +0 -0
- /package/dist/{sunburst-VJJ3UVYC.js.map → sunburst-CYROEYTG.js.map} +0 -0
- /package/dist/{survival-2ZE3N62A.js.map → survival-5Y3DFIES.js.map} +0 -0
- /package/dist/{survival-ASCLKIII.js.map → survival-WCPGEHW5.js.map} +0 -0
- /package/dist/{svgraph-AYR2UPNK.js.map → svgraph-3T6XL7TR.js.map} +0 -0
- /package/dist/{svmr-MOMW5DNY.js.map → svmr-GUBPSOID.js.map} +0 -0
- /package/dist/{table-PQB6KCEY.js.map → table-NTS6ROT7.js.map} +0 -0
- /package/dist/{termCollection-OQMUUTW6.js.map → termCollection-EE72SAHN.js.map} +0 -0
- /package/dist/{termCollection-5AY2AWT4.js.map → termCollection-ZZXLZ3UE.js.map} +0 -0
- /package/dist/{termCollection.unit.spec-BUAXYIJK.js.map → termCollection.unit.spec-3CTEJRTX.js.map} +0 -0
- /package/dist/{tk-EJLFFA5H.js.map → tk-6FIXPXTM.js.map} +0 -0
- /package/dist/{tp.ui-WUW6A7KP.js.map → tp.ui-4ESL6SCH.js.map} +0 -0
- /package/dist/{tvs.density-HSVPDDGA.js.map → tvs.density-AQ5GD437.js.map} +0 -0
- /package/dist/{tvs.dt-MVJXQMNU.js.map → tvs.dt-G5FMPWPL.js.map} +0 -0
- /package/dist/{tvs.dtcnv.categorical-FIIDWVK7.js.map → tvs.dtcnv.categorical-EYQ6RTHD.js.map} +0 -0
- /package/dist/{tvs.dtcnv.continuous-JPQU3JA2.js.map → tvs.dtcnv.continuous-PSQMFFNX.js.map} +0 -0
- /package/dist/{tvs.dtfusion-BW35GOQM.js.map → tvs.dtfusion-4F6627GK.js.map} +0 -0
- /package/dist/{tvs.dtsnvindel-AEMFZ4EH.js.map → tvs.dtsnvindel-YNYVLJEI.js.map} +0 -0
- /package/dist/{tvs.dtsv-JHTU7UFD.js.map → tvs.dtsv-X2K4K4RN.js.map} +0 -0
- /package/dist/{tvs.numeric-ICUGA4WY.js.map → tvs.numeric-ZN2R7BH3.js.map} +0 -0
- /package/dist/{tvs.samplelst-VD2NFFFS.js.map → tvs.samplelst-XZK4BE3H.js.map} +0 -0
- /package/dist/{tvs.termCollection-IKE5Q74D.js.map → tvs.termCollection-ZAX57TN4.js.map} +0 -0
- /package/dist/{violin-DPMJLHQG.js.map → violin-YEMSGTYF.js.map} +0 -0
- /package/dist/{violin.integration.spec-A4PNR4ES.js.map → violin.integration.spec-TULH2DWL.js.map} +0 -0
- /package/dist/{violin.interactivity-TS4DYUE5.js.map → violin.interactivity-RX2CDFVC.js.map} +0 -0
- /package/dist/{violin.renderer-53L4PXUT.js.map → violin.renderer-OJJDZFMZ.js.map} +0 -0
- /package/dist/{vocabulary-4MPFHKYC.js.map → vocabulary-726CSMNM.js.map} +0 -0
|
@@ -0,0 +1,2327 @@
|
|
|
1
|
+
import {
|
|
2
|
+
vcf2dstk
|
|
3
|
+
} from "./chunk-TTGDA3MA.js";
|
|
4
|
+
import {
|
|
5
|
+
getsjcharts
|
|
6
|
+
} from "./chunk-MKAF2BHB.js";
|
|
7
|
+
import {
|
|
8
|
+
parseheader,
|
|
9
|
+
parseline
|
|
10
|
+
} from "./chunk-I2M62STM.js";
|
|
11
|
+
import {
|
|
12
|
+
bulk_badline,
|
|
13
|
+
disappear2 as disappear,
|
|
14
|
+
filetypeselect,
|
|
15
|
+
newpane,
|
|
16
|
+
newpane3,
|
|
17
|
+
renderSandboxFormDiv,
|
|
18
|
+
sayerror,
|
|
19
|
+
tkt
|
|
20
|
+
} from "./chunk-2LCTMDCS.js";
|
|
21
|
+
import {
|
|
22
|
+
invalidcoord,
|
|
23
|
+
string2pos
|
|
24
|
+
} from "./chunk-HJ6L54YS.js";
|
|
25
|
+
import {
|
|
26
|
+
dofetch,
|
|
27
|
+
init_bulk_flag,
|
|
28
|
+
parsesample
|
|
29
|
+
} from "./chunk-RCYTUKAJ.js";
|
|
30
|
+
import {
|
|
31
|
+
dtcloss,
|
|
32
|
+
dtcnv,
|
|
33
|
+
dtdel,
|
|
34
|
+
dtfusionrna,
|
|
35
|
+
dtitd,
|
|
36
|
+
dtnloss,
|
|
37
|
+
dtsnvindel,
|
|
38
|
+
dtsv,
|
|
39
|
+
mclasscloss,
|
|
40
|
+
mclasscnvgain,
|
|
41
|
+
mclasscnvloh,
|
|
42
|
+
mclasscnvloss,
|
|
43
|
+
mclassdel,
|
|
44
|
+
mclassfusionrna,
|
|
45
|
+
mclassitd,
|
|
46
|
+
mclassnloss,
|
|
47
|
+
mclasssv,
|
|
48
|
+
mclasstester,
|
|
49
|
+
validtkt
|
|
50
|
+
} from "./chunk-XRVBHNCW.js";
|
|
51
|
+
import {
|
|
52
|
+
category10_default
|
|
53
|
+
} from "./chunk-IH7ILDJS.js";
|
|
54
|
+
import {
|
|
55
|
+
ordinal
|
|
56
|
+
} from "./chunk-OAWQ6LOO.js";
|
|
57
|
+
import {
|
|
58
|
+
select_default
|
|
59
|
+
} from "./chunk-NDWTN4U5.js";
|
|
60
|
+
|
|
61
|
+
// ../shared/utils/src/bulk.snv.js
|
|
62
|
+
function parseheader2(line, flag2) {
|
|
63
|
+
const header = line.toLowerCase().split(" ");
|
|
64
|
+
if (header.length <= 1) return "invalid file header for snv/indel";
|
|
65
|
+
const htry = (...args) => {
|
|
66
|
+
for (const s of args) {
|
|
67
|
+
const i2 = header.indexOf(s);
|
|
68
|
+
if (i2 != -1) return i2;
|
|
69
|
+
}
|
|
70
|
+
return -1;
|
|
71
|
+
};
|
|
72
|
+
let i = htry("annovar_gene", "annovar_sj_gene", "gene", "genename", "gene_symbol", "hugo_symbol");
|
|
73
|
+
if (i == -1) return "gene missing from header";
|
|
74
|
+
header[i] = "gene";
|
|
75
|
+
i = htry("annovar_aachange", "amino_acid_change", "annovar_sj_aachange", "aachange", "protein_change", "variant");
|
|
76
|
+
if (i == -1) return "amino_acid_change missing from header";
|
|
77
|
+
header[i] = "mname";
|
|
78
|
+
i = htry("annovar_class", "class", "mclass", "variant_class", "variant_classification", "annovar_sj_class");
|
|
79
|
+
if (i == -1) return "variant_class missing from header";
|
|
80
|
+
header[i] = "class";
|
|
81
|
+
i = htry("chromosome", "chr");
|
|
82
|
+
if (i == -1) return "chromosome missing from header";
|
|
83
|
+
header[i] = "chr";
|
|
84
|
+
i = htry("wu_hg19_pos", "start", "start_position", "chr_position", "position");
|
|
85
|
+
if (i == -1) return "start missing from header";
|
|
86
|
+
header[i] = "pos";
|
|
87
|
+
i = htry(
|
|
88
|
+
"annovar_isoform",
|
|
89
|
+
"mrna_accession",
|
|
90
|
+
"mrna accession",
|
|
91
|
+
"refseq_mrna_id",
|
|
92
|
+
"annovar_sj_filter_isoform",
|
|
93
|
+
"refseq",
|
|
94
|
+
"isoform"
|
|
95
|
+
);
|
|
96
|
+
if (i == -1) return "isoform missing from header";
|
|
97
|
+
header[i] = "isoform";
|
|
98
|
+
i = htry("sample", "sample_name", "tumor_sample_barcode");
|
|
99
|
+
if (i != -1) header[i] = "sample";
|
|
100
|
+
i = htry("patient", "donor", "target_case_id");
|
|
101
|
+
if (i != -1) header[i] = "patient";
|
|
102
|
+
i = htry("quantitative_measurements");
|
|
103
|
+
if (i != -1) header[i] = "qmset";
|
|
104
|
+
i = htry("mutant_reads_in_case", "mutant_in_tumor", "tumor_readcount_alt");
|
|
105
|
+
if (i != -1) header[i] = "maf_tumor_v1";
|
|
106
|
+
i = htry("total_reads_in_case", "total_in_tumor", "tumor_readcount_total");
|
|
107
|
+
if (i != -1) header[i] = "maf_tumor_v2";
|
|
108
|
+
i = htry("mutant_reads_in_control", "mutant_in_normal", "normal_readcount_alt");
|
|
109
|
+
if (i != -1) header[i] = "maf_normal_v1";
|
|
110
|
+
i = htry("total_reads_in_control", "total_in_normal", "normal_readcount_total");
|
|
111
|
+
if (i != -1) header[i] = "maf_normal_v2";
|
|
112
|
+
i = htry("cdna_change");
|
|
113
|
+
if (i != -1) header[i] = "cdna_change";
|
|
114
|
+
i = htry("sampletype", "sample type", "sample_type");
|
|
115
|
+
if (i != -1) header[i] = "sampletype";
|
|
116
|
+
i = htry("origin");
|
|
117
|
+
if (i != -1) header[i] = "origin";
|
|
118
|
+
i = htry("cancer", "disease", "diagnosis");
|
|
119
|
+
if (i != -1) header[i] = "disease";
|
|
120
|
+
flag2.snv.header = header;
|
|
121
|
+
flag2.snv.loaded = true;
|
|
122
|
+
return false;
|
|
123
|
+
}
|
|
124
|
+
function parseline2(linei, line, flag2) {
|
|
125
|
+
if (line == "" || line[0] == "#") return;
|
|
126
|
+
const lst = line.split(" ");
|
|
127
|
+
const m = {};
|
|
128
|
+
for (let j = 0; j < flag2.snv.header.length; j++) {
|
|
129
|
+
if (lst[j] == void 0) break;
|
|
130
|
+
m[flag2.snv.header[j]] = lst[j];
|
|
131
|
+
}
|
|
132
|
+
if (!m.gene) {
|
|
133
|
+
flag2.snv.badlines.push([linei, "missing gene", lst]);
|
|
134
|
+
return;
|
|
135
|
+
}
|
|
136
|
+
if (m.gene.toUpperCase() == "UNKNOWN") {
|
|
137
|
+
flag2.snv.badlines.push([linei, "gene name is UNKNOWN", lst]);
|
|
138
|
+
return;
|
|
139
|
+
}
|
|
140
|
+
if (!m.isoform) {
|
|
141
|
+
flag2.snv.badlines.push([linei, "missing isoform", lst]);
|
|
142
|
+
return;
|
|
143
|
+
}
|
|
144
|
+
if (!m.mname) {
|
|
145
|
+
m.mname = m.cdna_change;
|
|
146
|
+
if (!m.mname) {
|
|
147
|
+
flag2.snv.badlines.push([linei, "missing amino acid change", lst]);
|
|
148
|
+
return;
|
|
149
|
+
}
|
|
150
|
+
} else {
|
|
151
|
+
if (m.mname.indexOf("p.") == 0) {
|
|
152
|
+
m.mname = m.mname.replace(/^p\./, "");
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
if (!m.class) {
|
|
156
|
+
flag2.snv.badlines.push([linei, "missing mutation class", lst]);
|
|
157
|
+
return;
|
|
158
|
+
}
|
|
159
|
+
let _c = flag2.mclasslabel2key[m.class.toUpperCase()];
|
|
160
|
+
if (_c) {
|
|
161
|
+
m.class = _c;
|
|
162
|
+
} else {
|
|
163
|
+
_c = mclasstester(m.class);
|
|
164
|
+
if (_c) {
|
|
165
|
+
m.class = _c;
|
|
166
|
+
} else {
|
|
167
|
+
flag2.snv.badlines.push([linei, "wrong mutation class: " + m.class, lst]);
|
|
168
|
+
return;
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
if (parsesample(m, flag2, linei, lst, flag2.snv.badlines)) {
|
|
172
|
+
return;
|
|
173
|
+
}
|
|
174
|
+
if (!m.chr) {
|
|
175
|
+
flag2.snv.badlines.push([linei, "missing chromosome", lst]);
|
|
176
|
+
return;
|
|
177
|
+
}
|
|
178
|
+
if (m.chr.toLowerCase().indexOf("chr") != 0) {
|
|
179
|
+
m.chr = "chr" + m.chr;
|
|
180
|
+
}
|
|
181
|
+
if (!m.pos) {
|
|
182
|
+
flag2.snv.badlines.push([linei, "missing chromosome position", lst]);
|
|
183
|
+
return;
|
|
184
|
+
}
|
|
185
|
+
const v = Number.parseInt(m.pos);
|
|
186
|
+
if (Number.isNaN(v)) {
|
|
187
|
+
flag2.snv.badlines.push([linei, "invalid chromosome position", lst]);
|
|
188
|
+
return;
|
|
189
|
+
}
|
|
190
|
+
m.pos = v - 1;
|
|
191
|
+
if (m.maf_tumor_v2 != void 0 && m.maf_tumor_v1 != void 0) {
|
|
192
|
+
if (m.maf_tumor_v2 == "") {
|
|
193
|
+
} else {
|
|
194
|
+
let v1 = Number.parseInt(m.maf_tumor_v1), v2 = Number.parseInt(m.maf_tumor_v2);
|
|
195
|
+
if (Number.isNaN(v1) || Number.isNaN(v2)) {
|
|
196
|
+
flag2.snv.badlines.push([linei, "invalid maf_tumor mutant and/or total read count", lst]);
|
|
197
|
+
return;
|
|
198
|
+
}
|
|
199
|
+
m.maf_tumor = { f: v1 / v2, v1, v2 };
|
|
200
|
+
}
|
|
201
|
+
delete m.maf_tumor_v1;
|
|
202
|
+
delete m.maf_tumor_v2;
|
|
203
|
+
}
|
|
204
|
+
if (m.maf_normal_v1 != void 0 && m.maf_normal_v2 != void 0) {
|
|
205
|
+
if (m.maf_normal_v2 == "") {
|
|
206
|
+
} else {
|
|
207
|
+
let v1 = Number.parseInt(m.maf_normal_v1), v2 = Number.parseInt(m.maf_normal_v2);
|
|
208
|
+
if (Number.isNaN(v1) || Number.isNaN(v2)) {
|
|
209
|
+
flag2.snv.badlines.push([linei, "invalid maf_normal mutant and/or total read count", lst]);
|
|
210
|
+
return;
|
|
211
|
+
}
|
|
212
|
+
m.maf_normal = { f: v1 / v2, v1, v2 };
|
|
213
|
+
}
|
|
214
|
+
delete m.maf_normal_v1;
|
|
215
|
+
delete m.maf_normal_v2;
|
|
216
|
+
}
|
|
217
|
+
flag2.good++;
|
|
218
|
+
if (m.class == "M") {
|
|
219
|
+
flag2.snv.missense++;
|
|
220
|
+
} else if (m.class == "S") {
|
|
221
|
+
flag2.snv.silent++;
|
|
222
|
+
}
|
|
223
|
+
const n = flag2.geneToUpper ? m.gene.toUpperCase() : m.gene;
|
|
224
|
+
if (!flag2.data[n]) {
|
|
225
|
+
flag2.data[n] = [];
|
|
226
|
+
}
|
|
227
|
+
m.dt = dtsnvindel;
|
|
228
|
+
flag2.data[n].push(m);
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
// ../shared/utils/src/bulk.svjson.js
|
|
232
|
+
function parseheader3(line, flag2) {
|
|
233
|
+
const header = line.toLowerCase().split(" ");
|
|
234
|
+
if (header.length <= 1) return "invalid file header for svjson";
|
|
235
|
+
const htry = (...lst) => {
|
|
236
|
+
for (const a of lst) {
|
|
237
|
+
const j = header.indexOf(a);
|
|
238
|
+
if (j != -1) return j;
|
|
239
|
+
}
|
|
240
|
+
return -1;
|
|
241
|
+
};
|
|
242
|
+
let i = htry("sample");
|
|
243
|
+
if (i != -1) header[i] = "sample";
|
|
244
|
+
i = htry("sampletype");
|
|
245
|
+
if (i != -1) header[i] = "sampletype";
|
|
246
|
+
i = htry("patient");
|
|
247
|
+
if (i != -1) header[i] = "patient";
|
|
248
|
+
i = htry("json", "jsontext");
|
|
249
|
+
if (i == -1) return ["json missing from header"];
|
|
250
|
+
header[i] = "jsontext";
|
|
251
|
+
return [null, header];
|
|
252
|
+
}
|
|
253
|
+
function parseline3(i, line, flag2, header) {
|
|
254
|
+
if (line == "" || line[0] == "#") return;
|
|
255
|
+
const lst = line.split(" ");
|
|
256
|
+
const m = {};
|
|
257
|
+
const badlines = flag2.svjson.badlines;
|
|
258
|
+
for (let j = 0; j < header.length; j++) {
|
|
259
|
+
m[header[j]] = lst[j];
|
|
260
|
+
}
|
|
261
|
+
if (!m.jsontext) {
|
|
262
|
+
badlines.push([i, "missing jsontext", lst]);
|
|
263
|
+
return;
|
|
264
|
+
}
|
|
265
|
+
if (parsesample(m, flag2, i, lst, badlines)) {
|
|
266
|
+
return;
|
|
267
|
+
}
|
|
268
|
+
let json;
|
|
269
|
+
try {
|
|
270
|
+
json = JSON.parse(m.jsontext);
|
|
271
|
+
} catch (e) {
|
|
272
|
+
badlines.push([i, "invalid JSON text", lst]);
|
|
273
|
+
return;
|
|
274
|
+
}
|
|
275
|
+
if (Array.isArray(json)) {
|
|
276
|
+
for (const pair of json) {
|
|
277
|
+
if (pair.a && pair.a.name && pair.a.isoform) {
|
|
278
|
+
flag2.good++;
|
|
279
|
+
const m2 = {
|
|
280
|
+
dt: dtfusionrna,
|
|
281
|
+
class: mclassfusionrna,
|
|
282
|
+
isoform: pair.a.isoform,
|
|
283
|
+
mname: pair.b.name
|
|
284
|
+
};
|
|
285
|
+
for (const k in m) {
|
|
286
|
+
if (k != "jsontext") m2[k] = m[k];
|
|
287
|
+
}
|
|
288
|
+
m2.pairlst = duplicate(json);
|
|
289
|
+
const n = pair.a.name.toUpperCase();
|
|
290
|
+
if (!flag2.data[n]) {
|
|
291
|
+
flag2.data[n] = [];
|
|
292
|
+
}
|
|
293
|
+
flag2.data[n].push(m2);
|
|
294
|
+
}
|
|
295
|
+
if (pair.b && pair.b.name && pair.b.isoform) {
|
|
296
|
+
flag2.good++;
|
|
297
|
+
const m2 = {
|
|
298
|
+
dt: dtfusionrna,
|
|
299
|
+
class: mclassfusionrna,
|
|
300
|
+
isoform: pair.b.isoform,
|
|
301
|
+
mname: pair.a.name
|
|
302
|
+
};
|
|
303
|
+
for (const k in m) {
|
|
304
|
+
if (k != "jsontext") m2[k] = m[k];
|
|
305
|
+
}
|
|
306
|
+
m2.pairlst = duplicate(json);
|
|
307
|
+
const n = pair.b.name.toUpperCase();
|
|
308
|
+
if (!flag2.data[n]) {
|
|
309
|
+
flag2.data[n] = [];
|
|
310
|
+
}
|
|
311
|
+
flag2.data[n].push(m2);
|
|
312
|
+
}
|
|
313
|
+
}
|
|
314
|
+
} else {
|
|
315
|
+
json.dt = json.typecode;
|
|
316
|
+
delete json.typecode;
|
|
317
|
+
switch (json.dt) {
|
|
318
|
+
case dtitd:
|
|
319
|
+
json.class = mclassitd;
|
|
320
|
+
json.mname = "ITD";
|
|
321
|
+
break;
|
|
322
|
+
case dtnloss:
|
|
323
|
+
json.class = mclassnloss;
|
|
324
|
+
json.mname = "N-loss";
|
|
325
|
+
break;
|
|
326
|
+
case dtcloss:
|
|
327
|
+
json.class = mclasscloss;
|
|
328
|
+
json.mname = "C-loss";
|
|
329
|
+
break;
|
|
330
|
+
case dtdel:
|
|
331
|
+
json.class = mclassdel;
|
|
332
|
+
json.mname = "Del";
|
|
333
|
+
break;
|
|
334
|
+
case dtsv:
|
|
335
|
+
json.class = mclasssv;
|
|
336
|
+
json.mname = "SV";
|
|
337
|
+
break;
|
|
338
|
+
default:
|
|
339
|
+
badlines.push([i, "unknown datatype", lst]);
|
|
340
|
+
return;
|
|
341
|
+
}
|
|
342
|
+
if (!json.gene) {
|
|
343
|
+
badlines.push([i, "json.gene missing", lst]);
|
|
344
|
+
return;
|
|
345
|
+
}
|
|
346
|
+
flag2.good++;
|
|
347
|
+
for (const k in m) {
|
|
348
|
+
if (k != "jsontext") {
|
|
349
|
+
json[k] = m[k];
|
|
350
|
+
}
|
|
351
|
+
}
|
|
352
|
+
const n = flag2.geneToUpper ? json.gene.toUpperCase() : json.gene.toUpperCase();
|
|
353
|
+
if (!flag2.data[n]) {
|
|
354
|
+
flag2.data[n] = [];
|
|
355
|
+
}
|
|
356
|
+
flag2.data[n].push(json);
|
|
357
|
+
}
|
|
358
|
+
}
|
|
359
|
+
function duplicate(lst) {
|
|
360
|
+
const d = [];
|
|
361
|
+
for (const pair of lst) {
|
|
362
|
+
const p = { a: {}, b: {} };
|
|
363
|
+
for (const k in pair) {
|
|
364
|
+
if (k != "a" && k != "b") p[k] = pair[k];
|
|
365
|
+
}
|
|
366
|
+
for (const k in pair.a) {
|
|
367
|
+
p.a[k] = pair.a[k];
|
|
368
|
+
}
|
|
369
|
+
for (const k in pair.b) {
|
|
370
|
+
p.b[k] = pair.b[k];
|
|
371
|
+
}
|
|
372
|
+
d.push(p);
|
|
373
|
+
}
|
|
374
|
+
return d;
|
|
375
|
+
}
|
|
376
|
+
|
|
377
|
+
// ../shared/utils/src/bulk.cnv.js
|
|
378
|
+
function parseheader4(line, flag2) {
|
|
379
|
+
const header = line.toLowerCase().split(" ");
|
|
380
|
+
if (header.length <= 1) return "invalid file header for CNV";
|
|
381
|
+
const htry = (...lst) => {
|
|
382
|
+
for (const i2 of lst) {
|
|
383
|
+
const j = header.indexOf(i2);
|
|
384
|
+
if (j != -1) return j;
|
|
385
|
+
}
|
|
386
|
+
return -1;
|
|
387
|
+
};
|
|
388
|
+
let i = htry("gene");
|
|
389
|
+
if (i == -1) return "gene missing from header";
|
|
390
|
+
header[i] = "gene";
|
|
391
|
+
i = htry("cnv");
|
|
392
|
+
if (i == -1) return "CNV missing from header";
|
|
393
|
+
header[i] = "cnv";
|
|
394
|
+
i = htry("sample", "sample_name", "tumor_sample_barcode");
|
|
395
|
+
if (i != -1) header[i] = "sample";
|
|
396
|
+
i = htry("patient", "donor", "target_case_id");
|
|
397
|
+
if (i != -1) header[i] = "patient";
|
|
398
|
+
i = htry("disease");
|
|
399
|
+
if (i != -1) header[i] = "disease";
|
|
400
|
+
i = htry("origin");
|
|
401
|
+
if (i != -1) header[i] = "origin";
|
|
402
|
+
i = htry("sampletype", "sample type", "sample_type");
|
|
403
|
+
if (i != -1) header[i] = "sampletype";
|
|
404
|
+
flag2.cnv.header = header;
|
|
405
|
+
flag2.cnv.loaded = true;
|
|
406
|
+
return false;
|
|
407
|
+
}
|
|
408
|
+
function parseline4(i, line, flag2) {
|
|
409
|
+
if (line == "" || line[0] == "#") return;
|
|
410
|
+
const lst = line.split(" ");
|
|
411
|
+
const m = {};
|
|
412
|
+
for (let j = 0; j < flag2.cnv.header.length; j++) {
|
|
413
|
+
m[flag2.cnv.header[j]] = lst[j];
|
|
414
|
+
}
|
|
415
|
+
if (!m.gene) {
|
|
416
|
+
flag2.cnv.badlines.push([i, "missing gene", lst]);
|
|
417
|
+
return;
|
|
418
|
+
}
|
|
419
|
+
if (!m.cnv) {
|
|
420
|
+
flag2.cnv.badlines.push([i, "missing cnv value", lst]);
|
|
421
|
+
return;
|
|
422
|
+
}
|
|
423
|
+
const value = m.cnv.toLowerCase();
|
|
424
|
+
switch (value) {
|
|
425
|
+
case "amplification":
|
|
426
|
+
case "gain":
|
|
427
|
+
m.class = mclasscnvgain;
|
|
428
|
+
break;
|
|
429
|
+
case "deletion":
|
|
430
|
+
case "loss":
|
|
431
|
+
m.class = mclasscnvloss;
|
|
432
|
+
break;
|
|
433
|
+
case "loh":
|
|
434
|
+
m.class = mclasscnvloh;
|
|
435
|
+
break;
|
|
436
|
+
default:
|
|
437
|
+
flag2.cnv.badlines.push([i, "invalid cnv value: " + m.cnv, lst]);
|
|
438
|
+
m.class = null;
|
|
439
|
+
}
|
|
440
|
+
if (!m.class) {
|
|
441
|
+
return;
|
|
442
|
+
}
|
|
443
|
+
if (parsesample(m, flag2, i, lst, flag2.cnv.badlines)) {
|
|
444
|
+
return;
|
|
445
|
+
}
|
|
446
|
+
m.dt = dtcnv;
|
|
447
|
+
flag2.good++;
|
|
448
|
+
const n = flag2.geneToUpper ? m.gene.toUpperCase() : m.gene;
|
|
449
|
+
if (!(n in flag2.data)) {
|
|
450
|
+
flag2.data[n] = [];
|
|
451
|
+
}
|
|
452
|
+
flag2.data[n].push(m);
|
|
453
|
+
}
|
|
454
|
+
|
|
455
|
+
// ../shared/utils/src/bulk.itd.js
|
|
456
|
+
function parseheader5(line, flag2) {
|
|
457
|
+
const header = line.toLowerCase().split(" ");
|
|
458
|
+
if (header.length <= 1) return "invalid header line for ITD";
|
|
459
|
+
const htry = (...lst) => {
|
|
460
|
+
for (const i2 of lst) {
|
|
461
|
+
const j = header.indexOf(i2);
|
|
462
|
+
if (j != -1) return j;
|
|
463
|
+
}
|
|
464
|
+
return -1;
|
|
465
|
+
};
|
|
466
|
+
let i = htry("gene");
|
|
467
|
+
if (i == -1) return "gene missing from header";
|
|
468
|
+
header[i] = "gene";
|
|
469
|
+
i = htry(
|
|
470
|
+
"annovar_isoform",
|
|
471
|
+
"mrna_accession",
|
|
472
|
+
"mrna accession",
|
|
473
|
+
"refseq_mrna_id",
|
|
474
|
+
"annovar_sj_filter_isoform",
|
|
475
|
+
"refseq",
|
|
476
|
+
"isoform"
|
|
477
|
+
);
|
|
478
|
+
if (i == -1) return "isoform missing from header";
|
|
479
|
+
header[i] = "isoform";
|
|
480
|
+
i = htry("rnaposition");
|
|
481
|
+
if (i != -1) {
|
|
482
|
+
header[i] = "rnaposition";
|
|
483
|
+
i = htry("rnaduplength");
|
|
484
|
+
if (i == -1) return "rnaduplength is required when rnaposition is present";
|
|
485
|
+
header[i] = "rnaduplength";
|
|
486
|
+
}
|
|
487
|
+
i = htry("chromosome", "chr");
|
|
488
|
+
if (i != -1) {
|
|
489
|
+
header[i] = "chr";
|
|
490
|
+
i = htry("chr_start");
|
|
491
|
+
if (i == -1) return "chr_start is required when chr is present";
|
|
492
|
+
header[i] = "chrpos1";
|
|
493
|
+
i = htry("chr_stop");
|
|
494
|
+
if (i == -1) return "chr_stop is required when chr is present";
|
|
495
|
+
header[i] = "chrpos2";
|
|
496
|
+
}
|
|
497
|
+
i = htry("sample", "sample_name", "tumor_sample_barcode");
|
|
498
|
+
if (i != -1) header[i] = "sample";
|
|
499
|
+
i = htry("patient", "donor", "target_case_id");
|
|
500
|
+
if (i != -1) header[i] = "patient";
|
|
501
|
+
i = htry("disease");
|
|
502
|
+
if (i != -1) header[i] = "disease";
|
|
503
|
+
i = htry("origin");
|
|
504
|
+
if (i != -1) header[i] = "origin";
|
|
505
|
+
i = htry("sampletype", "sample type", "sample_type");
|
|
506
|
+
if (i != -1) header[i] = "sampletype";
|
|
507
|
+
flag2.itd.header = header;
|
|
508
|
+
flag2.itd.loaded = true;
|
|
509
|
+
return false;
|
|
510
|
+
}
|
|
511
|
+
function parseline5(i, line, flag2) {
|
|
512
|
+
if (line == "" || line[0] == "#") return;
|
|
513
|
+
const lst = line.split(" ");
|
|
514
|
+
const m = {};
|
|
515
|
+
for (let j = 0; j < flag2.itd.header.length; j++) {
|
|
516
|
+
if (lst[j] == void 0) break;
|
|
517
|
+
m[flag2.itd.header[j]] = lst[j];
|
|
518
|
+
}
|
|
519
|
+
if (!m.gene) {
|
|
520
|
+
flag2.itd.badlines.push([i, "missing gene", lst]);
|
|
521
|
+
return;
|
|
522
|
+
}
|
|
523
|
+
if (m.rnaposition) {
|
|
524
|
+
let v = Number.parseInt(m.rnaposition);
|
|
525
|
+
if (Number.isNaN(v) || v < 0) {
|
|
526
|
+
flag2.itd.badlines.push([i, "invalid rnaPosition value", lst]);
|
|
527
|
+
return;
|
|
528
|
+
}
|
|
529
|
+
m.rnaposition = v;
|
|
530
|
+
if (!m.rnaduplength) {
|
|
531
|
+
flag2.itd.badlines.push([i, "missing rnaDuplength value", lst]);
|
|
532
|
+
return;
|
|
533
|
+
}
|
|
534
|
+
v = Number.parseInt(m.rnaduplength);
|
|
535
|
+
if (Number.isNaN(v) || v < 0) {
|
|
536
|
+
flag2.itd.badlines.push([i, "invalid rnaDuplength value", lst]);
|
|
537
|
+
return;
|
|
538
|
+
}
|
|
539
|
+
m.rnaduplength = v;
|
|
540
|
+
}
|
|
541
|
+
if (m.chr) {
|
|
542
|
+
let v = Number.parseInt(m.chrpos1);
|
|
543
|
+
if (Number.isNaN(v) || v < 0) {
|
|
544
|
+
flag2.itd.badlines.push([i, "invalid chr_start value", lst]);
|
|
545
|
+
return;
|
|
546
|
+
}
|
|
547
|
+
m.chrpos1 = v;
|
|
548
|
+
v = Number.parseInt(m.chrpos2);
|
|
549
|
+
if (Number.isNaN(v) || v < 0) {
|
|
550
|
+
flag2.itd.badlines.push([i, "invalid chr_stop value", lst]);
|
|
551
|
+
return;
|
|
552
|
+
}
|
|
553
|
+
m.chrpos2 = v;
|
|
554
|
+
}
|
|
555
|
+
if (parsesample(m, flag2, i, lst, flag2.itd.badlines)) {
|
|
556
|
+
return;
|
|
557
|
+
}
|
|
558
|
+
m.dt = dtitd;
|
|
559
|
+
m.class = mclassitd;
|
|
560
|
+
m.mname = "ITD";
|
|
561
|
+
flag2.good++;
|
|
562
|
+
var n = flag2.geneToUpper ? m.gene.toUpperCase() : m.gene;
|
|
563
|
+
if (!(n in flag2.data)) {
|
|
564
|
+
flag2.data[n] = [];
|
|
565
|
+
}
|
|
566
|
+
flag2.data[n].push(m);
|
|
567
|
+
}
|
|
568
|
+
|
|
569
|
+
// ../shared/utils/src/bulk.del.js
|
|
570
|
+
function parseheader6(line, flag2) {
|
|
571
|
+
const header = line.toLowerCase().split(" ");
|
|
572
|
+
if (header.length <= 1) return "invalid header line for intragenic deletion";
|
|
573
|
+
const htry = (...lst) => {
|
|
574
|
+
for (const i2 of lst) {
|
|
575
|
+
const j = header.indexOf(i2);
|
|
576
|
+
if (j != -1) return j;
|
|
577
|
+
}
|
|
578
|
+
return -1;
|
|
579
|
+
};
|
|
580
|
+
let i = htry("gene");
|
|
581
|
+
if (i == -1) return "gene missing from header";
|
|
582
|
+
header[i] = "gene";
|
|
583
|
+
i = htry(
|
|
584
|
+
"annovar_isoform",
|
|
585
|
+
"mrna_accession",
|
|
586
|
+
"mrna accession",
|
|
587
|
+
"refseq_mrna_id",
|
|
588
|
+
"annovar_sj_filter_isoform",
|
|
589
|
+
"refseq",
|
|
590
|
+
"isoform"
|
|
591
|
+
);
|
|
592
|
+
if (i == -1) return "isoform missing from header";
|
|
593
|
+
header[i] = "isoform";
|
|
594
|
+
i = htry("rnaposition");
|
|
595
|
+
if (i != -1) {
|
|
596
|
+
header[i] = "rnaposition";
|
|
597
|
+
i = htry("rnadellength");
|
|
598
|
+
if (i == -1) return "rnadellength is required when rnaPosition is used";
|
|
599
|
+
header[i] = "rnadellength";
|
|
600
|
+
}
|
|
601
|
+
i = htry("chromosome", "chr");
|
|
602
|
+
if (i != -1) {
|
|
603
|
+
header[i] = "chr";
|
|
604
|
+
i = htry("chr_start");
|
|
605
|
+
if (i == -1) return "chr_start is required when chr is used";
|
|
606
|
+
header[i] = "chrpos1";
|
|
607
|
+
i = htry("chr_stop");
|
|
608
|
+
if (i == -1) return "chr_stop is required when chr is used";
|
|
609
|
+
header[i] = "chrpos2";
|
|
610
|
+
}
|
|
611
|
+
i = htry("sample", "sample_name", "tumor_sample_barcode");
|
|
612
|
+
if (i != -1) header[i] = "sample";
|
|
613
|
+
i = htry("patient", "donor", "target_case_id");
|
|
614
|
+
if (i != -1) header[i] = "patient";
|
|
615
|
+
i = htry("disease");
|
|
616
|
+
if (i != -1) header[i] = "disease";
|
|
617
|
+
i = htry("origin");
|
|
618
|
+
if (i != -1) header[i] = "origin";
|
|
619
|
+
i = htry("sampletype", "sample type", "sample_type");
|
|
620
|
+
if (i != -1) header[i] = "sampletype";
|
|
621
|
+
flag2.del.header = header;
|
|
622
|
+
flag2.del.loaded = true;
|
|
623
|
+
return false;
|
|
624
|
+
}
|
|
625
|
+
function parseline6(i, line, flag2) {
|
|
626
|
+
if (line == "" || line[0] == "#") return;
|
|
627
|
+
const lst = line.split(" ");
|
|
628
|
+
const m = {};
|
|
629
|
+
for (let j = 0; j < flag2.del.header.length; j++) {
|
|
630
|
+
if (lst[j] == void 0) break;
|
|
631
|
+
m[flag2.del.header[j]] = lst[j];
|
|
632
|
+
}
|
|
633
|
+
if (!m.gene) {
|
|
634
|
+
flag2.del.badlines.push([i, "missing gene", lst]);
|
|
635
|
+
return;
|
|
636
|
+
}
|
|
637
|
+
if (m.rnaposition) {
|
|
638
|
+
let v = Number.parseInt(m.rnaposition);
|
|
639
|
+
if (Number.isNaN(v) || v < 0) {
|
|
640
|
+
flag2.del.badlines.push([i, "invalid rnaPosition value", lst]);
|
|
641
|
+
return;
|
|
642
|
+
}
|
|
643
|
+
m.rnaposition = v;
|
|
644
|
+
if (!m.rnadellength) {
|
|
645
|
+
flag2.del.badlines.push([i, "missing rnaDellength value", lst]);
|
|
646
|
+
return;
|
|
647
|
+
}
|
|
648
|
+
v = Number.parseInt(m.rnadellength);
|
|
649
|
+
if (Number.isNaN(v) || v < 0) {
|
|
650
|
+
flag2.del.badlines.push([i, "invalid rnaDellength value", lst]);
|
|
651
|
+
return;
|
|
652
|
+
}
|
|
653
|
+
m.rnadellength = v;
|
|
654
|
+
}
|
|
655
|
+
if (m.chr) {
|
|
656
|
+
let v = Number.parseInt(m.chrpos1);
|
|
657
|
+
if (Number.isNaN(v) || v < 0) {
|
|
658
|
+
flag2.del.badlines.push([i, "invalid chr_start value", lst]);
|
|
659
|
+
return;
|
|
660
|
+
}
|
|
661
|
+
m.chrpos1 = v;
|
|
662
|
+
v = Number.parseInt(m.chrpos2);
|
|
663
|
+
if (Number.isNaN(v) || v < 0) {
|
|
664
|
+
flag2.del.badlines.push([i, "invalid chr_stop value", lst]);
|
|
665
|
+
return;
|
|
666
|
+
}
|
|
667
|
+
m.chrpos2 = v;
|
|
668
|
+
}
|
|
669
|
+
if (parsesample(m, flag2, i, lst, flag2.del.badlines)) {
|
|
670
|
+
return;
|
|
671
|
+
}
|
|
672
|
+
m.dt = dtdel;
|
|
673
|
+
m.class = mclassdel;
|
|
674
|
+
m.mname = "DEL";
|
|
675
|
+
flag2.good++;
|
|
676
|
+
var n = flag2.geneToUpper ? m.gene.toUpperCase() : m.gene;
|
|
677
|
+
if (!(n in flag2.data)) {
|
|
678
|
+
flag2.data[n] = [];
|
|
679
|
+
}
|
|
680
|
+
flag2.data[n].push(m);
|
|
681
|
+
}
|
|
682
|
+
|
|
683
|
+
// ../shared/utils/src/bulk.trunc.js
|
|
684
|
+
function parseheader7(line, flag2) {
|
|
685
|
+
const header = line.toLowerCase().split(" ");
|
|
686
|
+
if (header.length <= 1) return "invalid header line for truncation";
|
|
687
|
+
const htry = (...lst) => {
|
|
688
|
+
for (const e of lst) {
|
|
689
|
+
const j = header.indexOf(e);
|
|
690
|
+
if (j != -1) return j;
|
|
691
|
+
}
|
|
692
|
+
return -1;
|
|
693
|
+
};
|
|
694
|
+
let i = htry("gene");
|
|
695
|
+
if (i == -1) return "gene missing from header";
|
|
696
|
+
header[i] = "gene";
|
|
697
|
+
i = htry(
|
|
698
|
+
"annovar_isoform",
|
|
699
|
+
"mrna_accession",
|
|
700
|
+
"mrna accession",
|
|
701
|
+
"refseq_mrna_id",
|
|
702
|
+
"annovar_sj_filter_isoform",
|
|
703
|
+
"refseq",
|
|
704
|
+
"isoform"
|
|
705
|
+
);
|
|
706
|
+
if (i == -1) return "isoform missing from header";
|
|
707
|
+
header[i] = "isoform";
|
|
708
|
+
let hasrnapos = false;
|
|
709
|
+
i = htry("rnaposition");
|
|
710
|
+
if (i != -1) {
|
|
711
|
+
header[i] = "rnaposition";
|
|
712
|
+
hasrnapos = true;
|
|
713
|
+
}
|
|
714
|
+
i = htry("losstype");
|
|
715
|
+
if (i == -1) return "lossType missing from header";
|
|
716
|
+
header[i] = "losstype";
|
|
717
|
+
let hasgenomic = false;
|
|
718
|
+
i = htry("chromosome", "chr");
|
|
719
|
+
if (i != -1) {
|
|
720
|
+
header[i] = "chr";
|
|
721
|
+
i = htry("start", "start_position", "wu_hg19_pos", "chr_position", "position");
|
|
722
|
+
if (i == -1) {
|
|
723
|
+
return "genomic position missing from header";
|
|
724
|
+
}
|
|
725
|
+
header[i] = "pos";
|
|
726
|
+
hasgenomic = true;
|
|
727
|
+
}
|
|
728
|
+
if (!hasrnapos && !hasgenomic) {
|
|
729
|
+
return "neither rnaposition nor genomic position is given";
|
|
730
|
+
}
|
|
731
|
+
i = htry("sample", "sample_name", "tumor_sample_barcode");
|
|
732
|
+
if (i != -1) header[i] = "sample";
|
|
733
|
+
i = htry("patient", "donor", "target_case_id");
|
|
734
|
+
if (i != -1) header[i] = "patient";
|
|
735
|
+
i = htry("disease");
|
|
736
|
+
if (i != -1) header[i] = "disease";
|
|
737
|
+
i = htry("origin");
|
|
738
|
+
if (i != -1) header[i] = "origin";
|
|
739
|
+
i = htry("sampletype", "sample type", "sample_type");
|
|
740
|
+
if (i != -1) header[i] = "sampletype";
|
|
741
|
+
flag2.truncation.header = header;
|
|
742
|
+
flag2.truncation.loaded = true;
|
|
743
|
+
return false;
|
|
744
|
+
}
|
|
745
|
+
function parseline7(i, line, flag2) {
|
|
746
|
+
if (line == "" || line[0] == "#") return;
|
|
747
|
+
const lst = line.split(" ");
|
|
748
|
+
const m = {};
|
|
749
|
+
for (let j = 0; j < flag2.truncation.header.length; j++) {
|
|
750
|
+
m[flag2.truncation.header[j]] = lst[j];
|
|
751
|
+
}
|
|
752
|
+
if (!m.gene) {
|
|
753
|
+
flag2.truncation.badlines.push([i, "missing gene", lst]);
|
|
754
|
+
return;
|
|
755
|
+
}
|
|
756
|
+
if (m.rnaposition) {
|
|
757
|
+
const v = Number.parseInt(m.rnaposition);
|
|
758
|
+
if (Number.isNaN(v) || v < 0) {
|
|
759
|
+
flag2.truncation.badlines.push([i, "invalid rnaPosition value", lst]);
|
|
760
|
+
return;
|
|
761
|
+
}
|
|
762
|
+
m.rnaposition = v;
|
|
763
|
+
}
|
|
764
|
+
if (m.pos) {
|
|
765
|
+
const v = Number.parseInt(m.pos);
|
|
766
|
+
if (Number.isNaN(v) || v < 0) {
|
|
767
|
+
flag2.truncation.badlines.push([i, "invalid genomic position", lst]);
|
|
768
|
+
return;
|
|
769
|
+
}
|
|
770
|
+
m.pos = v;
|
|
771
|
+
}
|
|
772
|
+
if (!m.losstype) {
|
|
773
|
+
flag2.truncation.badlines.push([i, "missing lossType value", lst]);
|
|
774
|
+
return;
|
|
775
|
+
}
|
|
776
|
+
if (m.losstype != "n" && m.losstype != "c") {
|
|
777
|
+
flag2.truncation.badlines.push([i, 'lossType value not "n" or "c"', lst]);
|
|
778
|
+
return;
|
|
779
|
+
}
|
|
780
|
+
if (parsesample(m, flag2, i, lst, flag2.truncation.badlines)) {
|
|
781
|
+
return;
|
|
782
|
+
}
|
|
783
|
+
if (m.losstype == "n") {
|
|
784
|
+
m.dt = dtnloss;
|
|
785
|
+
m.class = mclassnloss;
|
|
786
|
+
m.mname = "N-loss";
|
|
787
|
+
} else {
|
|
788
|
+
m.dt = dtcloss;
|
|
789
|
+
m.class = mclasscloss;
|
|
790
|
+
m.mname = "C-loss";
|
|
791
|
+
}
|
|
792
|
+
flag2.good++;
|
|
793
|
+
const n = flag2.geneToUpper ? m.gene.toUpperCase() : m.gene;
|
|
794
|
+
if (!(n in flag2.data)) {
|
|
795
|
+
flag2.data[n] = [];
|
|
796
|
+
}
|
|
797
|
+
flag2.data[n].push(m);
|
|
798
|
+
}
|
|
799
|
+
|
|
800
|
+
// src/bulk.project.js
|
|
801
|
+
var schemaNames = ["heatmapJSON", "piebarJSON", "survivalJSON", "discoJSON", "riverJSON"];
|
|
802
|
+
var typeIndex = {
|
|
803
|
+
snvindel: 0,
|
|
804
|
+
si: 0,
|
|
805
|
+
sv: 1,
|
|
806
|
+
fusion: 2,
|
|
807
|
+
itd: 3,
|
|
808
|
+
deletion: 4,
|
|
809
|
+
truncation: 5,
|
|
810
|
+
cnv: 6
|
|
811
|
+
};
|
|
812
|
+
var urlProjectLoaded = false;
|
|
813
|
+
var ProjectHandler = class {
|
|
814
|
+
/*
|
|
815
|
+
Create a handler for multiple uploaded or fetched
|
|
816
|
+
files in a project
|
|
817
|
+
|
|
818
|
+
bt = {
|
|
819
|
+
flag: closured flag inside bulkui.bulkui,
|
|
820
|
+
bulkin: bulkui.bulkin,
|
|
821
|
+
content2flag: bulkui.content2flag,
|
|
822
|
+
flag2tp: closured flat2tp,
|
|
823
|
+
filediv: (optional) d3-wrapped container for file-input
|
|
824
|
+
}
|
|
825
|
+
*/
|
|
826
|
+
constructor(bt) {
|
|
827
|
+
this.bt = bt;
|
|
828
|
+
this.err = this.errHandler();
|
|
829
|
+
if (!urlProjectLoaded) {
|
|
830
|
+
const params = getParams();
|
|
831
|
+
if (params.project) {
|
|
832
|
+
this.getData(params.project);
|
|
833
|
+
urlProjectLoaded = true;
|
|
834
|
+
}
|
|
835
|
+
}
|
|
836
|
+
if (bt.filediv) {
|
|
837
|
+
this.projectByInput(bt.filediv);
|
|
838
|
+
}
|
|
839
|
+
}
|
|
840
|
+
/*
|
|
841
|
+
Process data files sequentially for rendering
|
|
842
|
+
into a TP div
|
|
843
|
+
|
|
844
|
+
data = {
|
|
845
|
+
schemas: object {
|
|
846
|
+
heatmapJSON (optional),
|
|
847
|
+
piebarJSON (optional),
|
|
848
|
+
survivalJSON (optional)
|
|
849
|
+
},
|
|
850
|
+
files: [] array of {
|
|
851
|
+
name: string
|
|
852
|
+
typeL one of the typeIndex values
|
|
853
|
+
content: string
|
|
854
|
+
}
|
|
855
|
+
}
|
|
856
|
+
*/
|
|
857
|
+
processData(data) {
|
|
858
|
+
const file = data.files.pop();
|
|
859
|
+
const i = data.expectedFileNames.indexOf(file.name);
|
|
860
|
+
if (i == -1) {
|
|
861
|
+
if (data.files.length)
|
|
862
|
+
setTimeout(() => {
|
|
863
|
+
this.processData(data);
|
|
864
|
+
}, 1);
|
|
865
|
+
return;
|
|
866
|
+
}
|
|
867
|
+
data.expectedFileNames.splice(i, 1);
|
|
868
|
+
this.cohort = {
|
|
869
|
+
name: "project",
|
|
870
|
+
genome: this.bt.genomes[this.bt.gselect.options[this.bt.gselect.selectedIndex].innerHTML]
|
|
871
|
+
};
|
|
872
|
+
if (!this.flag) {
|
|
873
|
+
this.flag = this.bt.init_bulk_flag(this.cohort.genome);
|
|
874
|
+
}
|
|
875
|
+
const error = this.bt.content2flag(file.content, file.type, this.flag);
|
|
876
|
+
if (error) {
|
|
877
|
+
this.err(error);
|
|
878
|
+
this.processData(data);
|
|
879
|
+
} else if (!data.files.length) {
|
|
880
|
+
if (data.expectedFileNames.length) {
|
|
881
|
+
this.err('These referenced files were not found: "' + data.expectedFileNames.join('", "') + '".');
|
|
882
|
+
}
|
|
883
|
+
this.bt.flag2tp(this.flag, { name: "project" }, Object.assign(this.cohort, data.schema), this.ds);
|
|
884
|
+
return;
|
|
885
|
+
} else {
|
|
886
|
+
if (!this.ds) {
|
|
887
|
+
for (const k in this.cohort.dsset) {
|
|
888
|
+
this.ds = this.cohort.dsset[k];
|
|
889
|
+
break;
|
|
890
|
+
}
|
|
891
|
+
}
|
|
892
|
+
const error1 = this.bt.bulkin(
|
|
893
|
+
{
|
|
894
|
+
flag: this.flag,
|
|
895
|
+
cohort: this.cohort,
|
|
896
|
+
flag2thisds: this.ds,
|
|
897
|
+
filename: "project"
|
|
898
|
+
},
|
|
899
|
+
() => {
|
|
900
|
+
this.processData(data);
|
|
901
|
+
}
|
|
902
|
+
);
|
|
903
|
+
if (error1) {
|
|
904
|
+
this.err("Error with " + file.name + ": " + error1);
|
|
905
|
+
return;
|
|
906
|
+
}
|
|
907
|
+
if (this.flag.good === 0) {
|
|
908
|
+
this.err(file.name + ": no data loaded");
|
|
909
|
+
return;
|
|
910
|
+
}
|
|
911
|
+
}
|
|
912
|
+
}
|
|
913
|
+
getData(project) {
|
|
914
|
+
const [projectname, _refname] = project.split("/");
|
|
915
|
+
const refname = _refname && _refname.trim() ? _refname.trim() : "ref.txt";
|
|
916
|
+
this.gettext("/data/projects/" + projectname + "/" + refname, (text) => {
|
|
917
|
+
const fileNameToType = {};
|
|
918
|
+
const nameToSchemaType = {};
|
|
919
|
+
const data = { schema: {}, files: [], expectedFileNames: [] };
|
|
920
|
+
let schemaFileName = "";
|
|
921
|
+
let numProcessedFiles = 0;
|
|
922
|
+
let numFiles = 0;
|
|
923
|
+
text.trim().split("\n").forEach((line) => {
|
|
924
|
+
const [type, filename] = line.trim().split(" ");
|
|
925
|
+
if (schemaNames.includes(type)) {
|
|
926
|
+
nameToSchemaType[filename] = type;
|
|
927
|
+
numFiles += 1;
|
|
928
|
+
} else if (!typeIndex[type] && typeIndex[type] !== 0) {
|
|
929
|
+
this.err("Unrecognized type " + type + " for file " + filename + " in reference.txt.");
|
|
930
|
+
} else {
|
|
931
|
+
fileNameToType[filename] = typeIndex[type];
|
|
932
|
+
numFiles += 1;
|
|
933
|
+
}
|
|
934
|
+
});
|
|
935
|
+
data.expectedFileNames = Object.keys(fileNameToType);
|
|
936
|
+
const tracker = this.getTracker(numFiles, () => this.processData(data));
|
|
937
|
+
Object.keys(nameToSchemaType).forEach((filename) => {
|
|
938
|
+
this.getjson("/data/projects/" + projectname + "/" + filename, (json) => {
|
|
939
|
+
data.schema[nameToSchemaType[filename]] = json;
|
|
940
|
+
tracker();
|
|
941
|
+
});
|
|
942
|
+
});
|
|
943
|
+
Object.keys(fileNameToType).forEach((filename) => {
|
|
944
|
+
this.gettext("/data/projects/" + projectname + "/" + filename, (text2) => {
|
|
945
|
+
data.files.push({
|
|
946
|
+
name: filename,
|
|
947
|
+
type: fileNameToType[filename],
|
|
948
|
+
content: text2
|
|
949
|
+
});
|
|
950
|
+
tracker();
|
|
951
|
+
});
|
|
952
|
+
});
|
|
953
|
+
});
|
|
954
|
+
}
|
|
955
|
+
gettext(url, callback) {
|
|
956
|
+
fetch(url).then((response) => {
|
|
957
|
+
if (response.ok) return response.text();
|
|
958
|
+
else this.err("File request error: " + url);
|
|
959
|
+
}).then(callback).catch((error) => this.err("File request error: " + url + " " + error));
|
|
960
|
+
}
|
|
961
|
+
getjson(url, callback) {
|
|
962
|
+
fetch(url).then((response) => {
|
|
963
|
+
if (response.ok) return response.json();
|
|
964
|
+
else this.err("Network error for " + url);
|
|
965
|
+
}).then(callback).catch((error) => this.err("file request error: " + url + " " + error));
|
|
966
|
+
}
|
|
967
|
+
getTracker(numFiles, callback) {
|
|
968
|
+
let numProcessedFiles = 0;
|
|
969
|
+
return function tracker() {
|
|
970
|
+
numProcessedFiles += 1;
|
|
971
|
+
if (numProcessedFiles == numFiles) {
|
|
972
|
+
callback();
|
|
973
|
+
}
|
|
974
|
+
};
|
|
975
|
+
}
|
|
976
|
+
projectByInput(filediv) {
|
|
977
|
+
this.tp = null;
|
|
978
|
+
const advancedDiv = filediv.append("div");
|
|
979
|
+
advancedDiv.append("span").html("Project: reference ");
|
|
980
|
+
this.refNameInput = advancedDiv.append("input").attr("type", "text").property("value", "ref.txt").style("margin-right", "20px").style("padding-left", "7px");
|
|
981
|
+
const buttlabel = advancedDiv.append("label").attr("for", "sja-pp-bulk-ui-project-btn").attr("class", "sja_btn").style("padding", "3px 5px").html("Choose folder");
|
|
982
|
+
const butt = advancedDiv.append("input").attr("type", "file").attr("id", "sja-pp-bulk-ui-project-btn").property("multiple", true).property("webkitdirectory", true).property("directory", true).on("change", (event) => this.readFiles(event));
|
|
983
|
+
advancedDiv.append("div").style("margin", "10px 10px 10px 0").html(`<a href="https://docs.google.com/document/d/1wlfGzyhxFYtWu9Fyf3FK7pgvS3rVb9_vrfYUBUOUrw4/edit?usp=sharing" target="new">Project user guide</a> |
|
|
984
|
+
<a href='https://proteinpaint.stjude.org/ppdemo/projects/target-tall-project/ref.txt' target=_blank>Example project reference file</a>`);
|
|
985
|
+
advancedDiv.append("div").style("margin", "20px").style("width", "100%").html("-- OR --");
|
|
986
|
+
}
|
|
987
|
+
/* to be used as a file input (FileList) handler */
|
|
988
|
+
readFiles(event) {
|
|
989
|
+
const self = this;
|
|
990
|
+
const refFileName = self.refNameInput.property("value");
|
|
991
|
+
const files = Array.from(event.target.files);
|
|
992
|
+
const ref = files.filter((f) => f.name == refFileName)[0];
|
|
993
|
+
if (!ref) {
|
|
994
|
+
self.err("Missing reference file='" + refFileName + "'.");
|
|
995
|
+
return;
|
|
996
|
+
}
|
|
997
|
+
const fileNameToType = {};
|
|
998
|
+
const nameToSchemaType = {};
|
|
999
|
+
const data = { schema: {}, files: [], expectedFileNames: [] };
|
|
1000
|
+
const reader = new FileReader();
|
|
1001
|
+
let schemaFileName = "";
|
|
1002
|
+
let numProcessedFiles = 0;
|
|
1003
|
+
reader.onload = (event2) => {
|
|
1004
|
+
event2.target.result.trim().split("\n").forEach((line) => {
|
|
1005
|
+
const [type, filename] = line.trim().split(" ");
|
|
1006
|
+
if (schemaNames.includes(type)) {
|
|
1007
|
+
nameToSchemaType[filename] = type;
|
|
1008
|
+
} else if (!typeIndex[type] && typeIndex[type] !== 0) {
|
|
1009
|
+
self.err("Unrecognized type " + type + " for file " + filename + " in reference.txt.");
|
|
1010
|
+
} else {
|
|
1011
|
+
fileNameToType[filename] = typeIndex[type];
|
|
1012
|
+
}
|
|
1013
|
+
});
|
|
1014
|
+
data.expectedFileNames = Object.keys(fileNameToType);
|
|
1015
|
+
const schemaFiles = files.filter((file) => file.name in nameToSchemaType);
|
|
1016
|
+
let numProcessedSchemas = 0;
|
|
1017
|
+
if (!schemaFiles.length) {
|
|
1018
|
+
files.forEach(processFile);
|
|
1019
|
+
} else {
|
|
1020
|
+
schemaFiles.forEach((file) => {
|
|
1021
|
+
const reader2 = new FileReader();
|
|
1022
|
+
reader2.onload = (event3) => {
|
|
1023
|
+
const schema = JSON.parse(event3.target.result);
|
|
1024
|
+
numProcessedSchemas += 1;
|
|
1025
|
+
if (!schema) {
|
|
1026
|
+
self.err('Unable to parse schema file="' + file.name + '".');
|
|
1027
|
+
} else {
|
|
1028
|
+
data.schema[nameToSchemaType[file.name]] = schema;
|
|
1029
|
+
}
|
|
1030
|
+
if (numProcessedSchemas == schemaFiles.length) {
|
|
1031
|
+
files.forEach(processFile);
|
|
1032
|
+
}
|
|
1033
|
+
};
|
|
1034
|
+
reader2.onerror = () => {
|
|
1035
|
+
self.err("Error reading schema.txt.");
|
|
1036
|
+
};
|
|
1037
|
+
reader2.readAsText(file, "utf8");
|
|
1038
|
+
});
|
|
1039
|
+
}
|
|
1040
|
+
function processFile(file) {
|
|
1041
|
+
if (!data.expectedFileNames.includes(file.name)) {
|
|
1042
|
+
numProcessedFiles += 1;
|
|
1043
|
+
return;
|
|
1044
|
+
}
|
|
1045
|
+
if (!file) {
|
|
1046
|
+
self.err("Error reading file.");
|
|
1047
|
+
numProcessedFiles += 1;
|
|
1048
|
+
return;
|
|
1049
|
+
}
|
|
1050
|
+
if (file.size == 0) {
|
|
1051
|
+
self.err("Wrong file: " + file.name);
|
|
1052
|
+
numProcessedFiles += 1;
|
|
1053
|
+
return;
|
|
1054
|
+
}
|
|
1055
|
+
if (!fileNameToType[file.name] && fileNameToType[file.name] !== 0 && file.name != schemaFileName) {
|
|
1056
|
+
self.err("Missing or invalid type assigned to file " + file.name + ".");
|
|
1057
|
+
numProcessedFiles += 1;
|
|
1058
|
+
return;
|
|
1059
|
+
}
|
|
1060
|
+
const reader2 = new FileReader();
|
|
1061
|
+
reader2.onload = (event3) => {
|
|
1062
|
+
numProcessedFiles += 1;
|
|
1063
|
+
data.files.push({
|
|
1064
|
+
name: file.name,
|
|
1065
|
+
type: fileNameToType[file.name],
|
|
1066
|
+
content: event3.target.result
|
|
1067
|
+
});
|
|
1068
|
+
if (numProcessedFiles == files.length) {
|
|
1069
|
+
self.processData(data);
|
|
1070
|
+
}
|
|
1071
|
+
};
|
|
1072
|
+
reader2.onerror = () => {
|
|
1073
|
+
numProcessedFiles += 1;
|
|
1074
|
+
self.err("Error reading file " + file.name);
|
|
1075
|
+
if (numProcessedFiles == files.length) {
|
|
1076
|
+
self.processData(data);
|
|
1077
|
+
}
|
|
1078
|
+
};
|
|
1079
|
+
reader2.readAsText(file, "utf8");
|
|
1080
|
+
}
|
|
1081
|
+
};
|
|
1082
|
+
reader.onerror = () => {
|
|
1083
|
+
self.err("Error reading reference.txt.");
|
|
1084
|
+
};
|
|
1085
|
+
reader.readAsText(ref, "utf8");
|
|
1086
|
+
}
|
|
1087
|
+
// function to track and display accumulated error messages
|
|
1088
|
+
errHandler() {
|
|
1089
|
+
const errdiv = select_default("body").append("div");
|
|
1090
|
+
let mssg = "";
|
|
1091
|
+
return function(m) {
|
|
1092
|
+
if (!m) return;
|
|
1093
|
+
sayerror(errdiv, m);
|
|
1094
|
+
};
|
|
1095
|
+
}
|
|
1096
|
+
};
|
|
1097
|
+
function getParams() {
|
|
1098
|
+
const params = {};
|
|
1099
|
+
window.location.search.substr(1).split("&").forEach((kv) => {
|
|
1100
|
+
const [key, value] = kv.split("=");
|
|
1101
|
+
params[key] = value;
|
|
1102
|
+
});
|
|
1103
|
+
return params;
|
|
1104
|
+
}
|
|
1105
|
+
|
|
1106
|
+
// src/bulk.ui.js
|
|
1107
|
+
function bulkui(x, y, genomes, hostURL, holder, header) {
|
|
1108
|
+
let pane, inputdiv, gselect, filediv, saydiv, visualdiv;
|
|
1109
|
+
if (holder !== void 0) [inputdiv, gselect, filediv, saydiv, visualdiv] = renderSandboxFormDiv(holder, genomes);
|
|
1110
|
+
else {
|
|
1111
|
+
;
|
|
1112
|
+
[pane, inputdiv, gselect, filediv, saydiv, visualdiv] = newpane3(x, y, genomes);
|
|
1113
|
+
pane.header.text("Load mutation from text files");
|
|
1114
|
+
}
|
|
1115
|
+
inputdiv.append("div").style("margin", "20px 0px").style("color", "#858585").html(`
|
|
1116
|
+
<p>Choose one file and upload to initiate the display panel.<br>From there you can add additional files.</p>
|
|
1117
|
+
<div>Supported data types:</div>
|
|
1118
|
+
<ul>
|
|
1119
|
+
<li>SNV and indel</li>
|
|
1120
|
+
<ul>
|
|
1121
|
+
<li><a href=https://drive.google.com/open?id=1OJ9aXq2_-a3BfIQdKLYCYzrJRTpu4_9i3gephTY-Z38 target=_blank>Format</a>,
|
|
1122
|
+
<a href=https://proteinpaint.stjude.org/ppdemo/hg19/heatmap/exampleFiles/example.snvindel.txt target=_blank>example file</a></li>
|
|
1123
|
+
</ul>
|
|
1124
|
+
<li>SV or fusion transcript</li>
|
|
1125
|
+
<ul>
|
|
1126
|
+
<li><a href=https://drive.google.com/open?id=1klDZ0MHVkQTW2-lCu_AvpRE4_FcbhdB-yI17wNdPaOM target=_blank>Tabular format</a>,
|
|
1127
|
+
<a href=https://proteinpaint.stjude.org/ppdemo/hg19/heatmap/exampleFiles/example.svfusion.txt target=_blank>example file</a>
|
|
1128
|
+
</li>
|
|
1129
|
+
<li>JSON-format, to come</li>
|
|
1130
|
+
</ul>
|
|
1131
|
+
<li>CNV, gene-level</li>
|
|
1132
|
+
<ul>
|
|
1133
|
+
<li><a href=https://drive.google.com/open?id=1WHptqOWNf96V0bYEDpj-EsKZGYnbBNc9aQIrhzdEJaU target=_blank>Format</a>,
|
|
1134
|
+
<a href=https://proteinpaint.stjude.org/ppdemo/hg19/heatmap/exampleFiles/example.cnv.txt target=_blank>example file</a>
|
|
1135
|
+
</li>
|
|
1136
|
+
</ul>
|
|
1137
|
+
<li>ITD</li>
|
|
1138
|
+
<ul>
|
|
1139
|
+
<li>Internal tandem duplication, in-frame</li>
|
|
1140
|
+
<li><a href=https://drive.google.com/open?id=1Bh9awBsraoHbV8iWXv_3oDeXMsjIAHaOKHr973IJyZc target=_blank>Format</a>,
|
|
1141
|
+
<a href=https://proteinpaint.stjude.org/ppdemo/hg19/heatmap/exampleFiles/example.itd.txt target=_blank>example file</a>
|
|
1142
|
+
</li>
|
|
1143
|
+
</ul>
|
|
1144
|
+
<li>Intragenic deletion, in-frame</li>
|
|
1145
|
+
<ul>
|
|
1146
|
+
<li><a href=https://drive.google.com/open?id=1tWbf3rg3BmVIZPGGPk023P0aBkDw_ry5XuZLGyGodyg target=_blank>Format</a>,
|
|
1147
|
+
<a href=https://proteinpaint.stjude.org/ppdemo/hg19/heatmap/exampleFiles/example.deletion.txt target=_blank>example file</a>
|
|
1148
|
+
</li>
|
|
1149
|
+
</ul>
|
|
1150
|
+
<li>Truncation</li>
|
|
1151
|
+
<ul>
|
|
1152
|
+
<li>Either N-terminus loss or C-terminus loss</li>
|
|
1153
|
+
<li><a href=https://drive.google.com/open?id=1P1g-Y8r30pSKfan1BhYZcsUtSk7wRb4plaO1S-JCJr4 target=_blank>Format</a>,
|
|
1154
|
+
<a href=https://proteinpaint.stjude.org/ppdemo/hg19/heatmap/exampleFiles/example.truncation.txt target=_blank>example file</a>
|
|
1155
|
+
</li>
|
|
1156
|
+
</ul>
|
|
1157
|
+
</ul>`);
|
|
1158
|
+
const fileui = () => {
|
|
1159
|
+
filediv.selectAll("*").remove();
|
|
1160
|
+
new ProjectHandler({
|
|
1161
|
+
bulkin,
|
|
1162
|
+
genomes,
|
|
1163
|
+
gselect,
|
|
1164
|
+
content2flag,
|
|
1165
|
+
flag2tp,
|
|
1166
|
+
filediv,
|
|
1167
|
+
init_bulk_flag
|
|
1168
|
+
});
|
|
1169
|
+
filediv.append("span").html("Select data type ");
|
|
1170
|
+
const typeselect = filetypeselect(filediv).style("margin-right", "20px");
|
|
1171
|
+
const butt = filediv.append("input").attr("type", "file").on("change", (event) => {
|
|
1172
|
+
const flag2 = init_bulk_flag(genomes[gselect.options[gselect.selectedIndex].innerHTML]);
|
|
1173
|
+
flag2.geneToUpper = geneToUpper.property("checked");
|
|
1174
|
+
saydiv.text("");
|
|
1175
|
+
const file = event.target.files[0];
|
|
1176
|
+
if (!file) {
|
|
1177
|
+
fileui();
|
|
1178
|
+
return;
|
|
1179
|
+
}
|
|
1180
|
+
if (file.size == 0) {
|
|
1181
|
+
saydiv.text("Wrong file: " + file.name);
|
|
1182
|
+
fileui();
|
|
1183
|
+
return;
|
|
1184
|
+
}
|
|
1185
|
+
const reader = new FileReader();
|
|
1186
|
+
reader.onload = (event2) => {
|
|
1187
|
+
const error = content2flag(event2.target.result, typeselect.node().selectedIndex, flag2);
|
|
1188
|
+
if (error) {
|
|
1189
|
+
saydiv.text("Error: " + error);
|
|
1190
|
+
fileui();
|
|
1191
|
+
return;
|
|
1192
|
+
}
|
|
1193
|
+
flag2tp(flag2, file);
|
|
1194
|
+
};
|
|
1195
|
+
reader.onerror = function() {
|
|
1196
|
+
saydiv.text("Error reading file " + file.name);
|
|
1197
|
+
fileui();
|
|
1198
|
+
return;
|
|
1199
|
+
};
|
|
1200
|
+
saydiv.text("Parsing file " + file.name + " ...");
|
|
1201
|
+
reader.readAsText(file, "utf8");
|
|
1202
|
+
});
|
|
1203
|
+
setTimeout(() => butt.node().focus(), 1100);
|
|
1204
|
+
};
|
|
1205
|
+
fileui();
|
|
1206
|
+
filediv.append("span").html("<br/>Convert gene name to uppercase ");
|
|
1207
|
+
const geneToUpper = filediv.append("span").append("input").attr("type", "checkbox").property("checked", true);
|
|
1208
|
+
function flag2tp(flag2, file, _cohort = null, ds = null) {
|
|
1209
|
+
if (typeof flag2 == "string") {
|
|
1210
|
+
saydiv.text(flag2);
|
|
1211
|
+
fileui();
|
|
1212
|
+
return;
|
|
1213
|
+
}
|
|
1214
|
+
saydiv.text("");
|
|
1215
|
+
fileui();
|
|
1216
|
+
const cohort = _cohort ? _cohort : Object.assign({
|
|
1217
|
+
genome: flag2.genome,
|
|
1218
|
+
name: file.name
|
|
1219
|
+
});
|
|
1220
|
+
const err2 = bulkin({
|
|
1221
|
+
flag: flag2,
|
|
1222
|
+
filename: file.name,
|
|
1223
|
+
cohort,
|
|
1224
|
+
flag2thisds: ds
|
|
1225
|
+
});
|
|
1226
|
+
if (err2) {
|
|
1227
|
+
saydiv.text("Error with " + file.name + ": " + err2);
|
|
1228
|
+
return;
|
|
1229
|
+
}
|
|
1230
|
+
if (flag2.good == 0) {
|
|
1231
|
+
saydiv.text("No mutations can be loaded");
|
|
1232
|
+
return;
|
|
1233
|
+
}
|
|
1234
|
+
let visual_holder;
|
|
1235
|
+
if (pane) {
|
|
1236
|
+
disappear(pane.pane);
|
|
1237
|
+
const pane2 = newpane({ x: 100, y: 100, toshrink: true });
|
|
1238
|
+
pane2.header.html('<span style="opacity:.5">FILE</span> ' + file.name);
|
|
1239
|
+
visual_holder = pane2.body;
|
|
1240
|
+
}
|
|
1241
|
+
if (holder !== void 0) {
|
|
1242
|
+
visual_holder = visualdiv.append("div").html('<span style="opacity:.5">FILE</span> ' + file.name);
|
|
1243
|
+
}
|
|
1244
|
+
inputdiv.selectAll("*").remove();
|
|
1245
|
+
import("./tp.ui-4ESL6SCH.js").then((tpui) => {
|
|
1246
|
+
tpui.default(cohort, visual_holder, hostURL);
|
|
1247
|
+
});
|
|
1248
|
+
return cohort;
|
|
1249
|
+
}
|
|
1250
|
+
return function content2flag2tp(file, type) {
|
|
1251
|
+
const error = content2flag(file.content, type, flag);
|
|
1252
|
+
if (error) {
|
|
1253
|
+
saydiv.text("Error: " + error);
|
|
1254
|
+
fileui();
|
|
1255
|
+
return;
|
|
1256
|
+
}
|
|
1257
|
+
flag2tp(flag, file);
|
|
1258
|
+
};
|
|
1259
|
+
}
|
|
1260
|
+
function content2flag(text, type, flag2) {
|
|
1261
|
+
if (!flag2) return "should not happen!";
|
|
1262
|
+
let err2;
|
|
1263
|
+
switch (type) {
|
|
1264
|
+
case 0:
|
|
1265
|
+
err2 = parse_snvindel(text, flag2);
|
|
1266
|
+
if (err2) return err2;
|
|
1267
|
+
break;
|
|
1268
|
+
case 1:
|
|
1269
|
+
err2 = parse_sv(text, flag2, true);
|
|
1270
|
+
if (err2) return err2;
|
|
1271
|
+
break;
|
|
1272
|
+
case 2:
|
|
1273
|
+
err2 = parse_sv(text, flag2, false);
|
|
1274
|
+
if (err2) return err2;
|
|
1275
|
+
break;
|
|
1276
|
+
case 3:
|
|
1277
|
+
err2 = parse_itd(text, flag2);
|
|
1278
|
+
if (err2) return err2;
|
|
1279
|
+
break;
|
|
1280
|
+
case 4:
|
|
1281
|
+
err2 = parse_del(text, flag2);
|
|
1282
|
+
if (err2) return err2;
|
|
1283
|
+
break;
|
|
1284
|
+
case 5:
|
|
1285
|
+
err2 = parse_trunc(text, flag2);
|
|
1286
|
+
if (err2) return err2;
|
|
1287
|
+
break;
|
|
1288
|
+
case 6:
|
|
1289
|
+
err2 = parse_cnv(text, flag2);
|
|
1290
|
+
if (err2) return err2;
|
|
1291
|
+
break;
|
|
1292
|
+
default:
|
|
1293
|
+
return "unknown option array index from file type <select>: " + type;
|
|
1294
|
+
}
|
|
1295
|
+
}
|
|
1296
|
+
function bulkin(p, callback = null) {
|
|
1297
|
+
const flag2 = p.flag;
|
|
1298
|
+
const cohort = p.cohort;
|
|
1299
|
+
if (!cohort.p2st) {
|
|
1300
|
+
cohort.p2st = {};
|
|
1301
|
+
}
|
|
1302
|
+
if (!cohort.dsset) {
|
|
1303
|
+
cohort.dsset = {};
|
|
1304
|
+
}
|
|
1305
|
+
if (!cohort.assaylst) {
|
|
1306
|
+
cohort.assaylst = [];
|
|
1307
|
+
}
|
|
1308
|
+
if (flag2.variantgene) {
|
|
1309
|
+
if (cohort.variantgene) {
|
|
1310
|
+
return "variantgene already set for this cohort";
|
|
1311
|
+
}
|
|
1312
|
+
cohort.variantgene = flag2.variantgene;
|
|
1313
|
+
}
|
|
1314
|
+
if (flag2.snv.badlines.length > 0) {
|
|
1315
|
+
bulk_badline(flag2.snv.header, flag2.snv.badlines);
|
|
1316
|
+
}
|
|
1317
|
+
if (flag2.fusion.badlines.length > 0) {
|
|
1318
|
+
bulk_badline(flag2.fusion.header, flag2.fusion.badlines);
|
|
1319
|
+
}
|
|
1320
|
+
if (flag2.sv.badlines.length > 0) {
|
|
1321
|
+
bulk_badline(flag2.sv.header, flag2.sv.badlines);
|
|
1322
|
+
}
|
|
1323
|
+
if (flag2.cnv.badlines.length > 0) {
|
|
1324
|
+
bulk_badline(flag2.cnv.header, flag2.cnv.badlines);
|
|
1325
|
+
}
|
|
1326
|
+
if (flag2.itd.badlines.length > 0) {
|
|
1327
|
+
bulk_badline(flag2.itd.header, flag2.itd.badlines);
|
|
1328
|
+
}
|
|
1329
|
+
if (flag2.del.badlines.length > 0) {
|
|
1330
|
+
bulk_badline(flag2.del.header, flag2.del.badlines);
|
|
1331
|
+
}
|
|
1332
|
+
if (flag2.truncation.badlines.length > 0) {
|
|
1333
|
+
bulk_badline(flag2.truncation.header, flag2.truncation.badlines);
|
|
1334
|
+
}
|
|
1335
|
+
if (flag2.good == 0) {
|
|
1336
|
+
return false;
|
|
1337
|
+
}
|
|
1338
|
+
const tmp = {};
|
|
1339
|
+
let hastumormaf = false;
|
|
1340
|
+
if (flag2.snv.loaded) {
|
|
1341
|
+
for (const i of flag2.snv.header) {
|
|
1342
|
+
tmp[i] = 1;
|
|
1343
|
+
}
|
|
1344
|
+
if ("maf_tumor_v1" in tmp && "maf_tumor_v2" in tmp) {
|
|
1345
|
+
hastumormaf = true;
|
|
1346
|
+
}
|
|
1347
|
+
}
|
|
1348
|
+
if (flag2.cnv.loaded) {
|
|
1349
|
+
for (const i of flag2.cnv.header) {
|
|
1350
|
+
tmp[i] = 1;
|
|
1351
|
+
}
|
|
1352
|
+
}
|
|
1353
|
+
if (flag2.fusion.loaded) {
|
|
1354
|
+
for (const i of flag2.fusion.header) {
|
|
1355
|
+
tmp[i] = 1;
|
|
1356
|
+
}
|
|
1357
|
+
}
|
|
1358
|
+
if (flag2.sv.loaded) {
|
|
1359
|
+
for (const i of flag2.sv.header) {
|
|
1360
|
+
tmp[i] = 1;
|
|
1361
|
+
}
|
|
1362
|
+
}
|
|
1363
|
+
if (flag2.itd.loaded) {
|
|
1364
|
+
for (const i of flag2.itd.header) {
|
|
1365
|
+
tmp[i] = 1;
|
|
1366
|
+
}
|
|
1367
|
+
}
|
|
1368
|
+
if (flag2.del.loaded) {
|
|
1369
|
+
for (const i of flag2.del.header) {
|
|
1370
|
+
tmp[i] = 1;
|
|
1371
|
+
}
|
|
1372
|
+
}
|
|
1373
|
+
if (flag2.truncation.loaded) {
|
|
1374
|
+
for (const i of flag2.truncation.header) {
|
|
1375
|
+
tmp[i] = 1;
|
|
1376
|
+
}
|
|
1377
|
+
}
|
|
1378
|
+
const hassample = "sample" in tmp || "patient" in tmp;
|
|
1379
|
+
const hasdisease = "disease" in tmp;
|
|
1380
|
+
const hasst = "sampletype" in tmp;
|
|
1381
|
+
let dsc;
|
|
1382
|
+
if (p.flag2thisds) {
|
|
1383
|
+
dsc = p.flag2thisds;
|
|
1384
|
+
if (hassample && !dsc.hassample) {
|
|
1385
|
+
return '"sample" column found in new data but not in existing data';
|
|
1386
|
+
}
|
|
1387
|
+
if (!hassample && dsc.hassample) {
|
|
1388
|
+
return '"sample" column found in existing data but not in new data';
|
|
1389
|
+
}
|
|
1390
|
+
if (hasdisease && !dsc.hasdisease) {
|
|
1391
|
+
return '"disease" column found in new data but not in existing data';
|
|
1392
|
+
}
|
|
1393
|
+
if (!hasdisease && dsc.hasdisease) {
|
|
1394
|
+
return '"disease" column found in existing data but not in new data';
|
|
1395
|
+
}
|
|
1396
|
+
if (hasst && !dsc.hasst) {
|
|
1397
|
+
return '"sampletype" column found in new data but not in existing data';
|
|
1398
|
+
}
|
|
1399
|
+
if (!hasst && dsc.hasst) {
|
|
1400
|
+
return '"sampletype" column found in existing data but not in new data';
|
|
1401
|
+
}
|
|
1402
|
+
for (const genename in flag2.data) {
|
|
1403
|
+
const lst = dsc.bulkdata[genename];
|
|
1404
|
+
if (lst) {
|
|
1405
|
+
dsc.bulkdata[genename] = lst.concat(flag2.data[genename]);
|
|
1406
|
+
} else {
|
|
1407
|
+
dsc.bulkdata[genename] = flag2.data[genename];
|
|
1408
|
+
}
|
|
1409
|
+
}
|
|
1410
|
+
} else {
|
|
1411
|
+
let dsname = p.filename + (flag2.tpsetname ? "_" + flag2.tpsetname : "");
|
|
1412
|
+
if (dsname in flag2.genome.datasets) {
|
|
1413
|
+
let j = 1;
|
|
1414
|
+
let n2 = dsname + " " + j;
|
|
1415
|
+
while (n2 in flag2.genome.datasets) {
|
|
1416
|
+
j++;
|
|
1417
|
+
n2 = dsname + " " + j;
|
|
1418
|
+
}
|
|
1419
|
+
dsname = n2;
|
|
1420
|
+
}
|
|
1421
|
+
dsc = {
|
|
1422
|
+
label: dsname,
|
|
1423
|
+
bulkdata: flag2.data,
|
|
1424
|
+
// official dataset don't have this
|
|
1425
|
+
hassample,
|
|
1426
|
+
hasdisease,
|
|
1427
|
+
hastumormaf,
|
|
1428
|
+
hasst,
|
|
1429
|
+
genome: cohort.genome,
|
|
1430
|
+
import: {},
|
|
1431
|
+
imported: {},
|
|
1432
|
+
importsilent: flag2.snv.silent == 0 ? false : flag2.snv.missense / flag2.snv.silent >= 5 ? false : true
|
|
1433
|
+
};
|
|
1434
|
+
flag2.genome.datasets[dsname] = dsc;
|
|
1435
|
+
cohort.dsset[dsname] = dsc;
|
|
1436
|
+
if (cohort.dbexpression) {
|
|
1437
|
+
if (cohort.dbexpression.tidy) {
|
|
1438
|
+
try {
|
|
1439
|
+
cohort.dbexpression.tidy = new Function(...cohort.dbexpression.tidy);
|
|
1440
|
+
} catch (e) {
|
|
1441
|
+
err("invalid JavaScript for dbexpression.tidy");
|
|
1442
|
+
delete cohort.dbexpression;
|
|
1443
|
+
}
|
|
1444
|
+
}
|
|
1445
|
+
dsc.dbexpression = cohort.dbexpression;
|
|
1446
|
+
}
|
|
1447
|
+
if (hasdisease) {
|
|
1448
|
+
dsc.stratify = [
|
|
1449
|
+
{
|
|
1450
|
+
label: "disease",
|
|
1451
|
+
attr1: { k: "disease", label: "disease" }
|
|
1452
|
+
}
|
|
1453
|
+
];
|
|
1454
|
+
}
|
|
1455
|
+
}
|
|
1456
|
+
if (hassample) {
|
|
1457
|
+
for (const gene in flag2.data) {
|
|
1458
|
+
for (const m of flag2.data[gene]) {
|
|
1459
|
+
let pn = m.patient;
|
|
1460
|
+
if (!pn) {
|
|
1461
|
+
pn = m.sample;
|
|
1462
|
+
if (!pn) {
|
|
1463
|
+
continue;
|
|
1464
|
+
}
|
|
1465
|
+
}
|
|
1466
|
+
if (!cohort.p2st[pn]) {
|
|
1467
|
+
cohort.p2st[pn] = {};
|
|
1468
|
+
}
|
|
1469
|
+
let st = m.sampletype;
|
|
1470
|
+
if (!st) {
|
|
1471
|
+
st = pn;
|
|
1472
|
+
}
|
|
1473
|
+
if (!cohort.p2st[pn][st]) {
|
|
1474
|
+
cohort.p2st[pn][st] = {
|
|
1475
|
+
dsset: {},
|
|
1476
|
+
tktemplate: []
|
|
1477
|
+
};
|
|
1478
|
+
}
|
|
1479
|
+
if (!cohort.p2st[pn][st].dsset[dsc.label]) {
|
|
1480
|
+
cohort.p2st[pn][st].dsset[dsc.label] = [];
|
|
1481
|
+
}
|
|
1482
|
+
cohort.p2st[pn][st].dsset[dsc.label].push(m);
|
|
1483
|
+
}
|
|
1484
|
+
}
|
|
1485
|
+
}
|
|
1486
|
+
if (callback) callback();
|
|
1487
|
+
return false;
|
|
1488
|
+
}
|
|
1489
|
+
function bulkembed(arg) {
|
|
1490
|
+
if (!arg.name) arg.name = "Unnamed dataset";
|
|
1491
|
+
let holder = arg.holder;
|
|
1492
|
+
if (!holder) {
|
|
1493
|
+
const pane = newpane({ x: 100, y: 100 });
|
|
1494
|
+
holder = pane.body;
|
|
1495
|
+
}
|
|
1496
|
+
const saydiv = holder.append("div");
|
|
1497
|
+
new Promise((resolve, reject) => {
|
|
1498
|
+
const cohort = {
|
|
1499
|
+
dsset: {}
|
|
1500
|
+
};
|
|
1501
|
+
for (const k in arg) {
|
|
1502
|
+
if (k == "snvindel" || k == "svjson" || k == "cnv" || k == "sv" || k == "mutationset") {
|
|
1503
|
+
continue;
|
|
1504
|
+
}
|
|
1505
|
+
cohort[k] = arg[k];
|
|
1506
|
+
}
|
|
1507
|
+
resolve(cohort);
|
|
1508
|
+
}).then((cohort) => {
|
|
1509
|
+
if (!arg.snvindel && !arg.svjson && !arg.cnv && !arg.sv) return cohort;
|
|
1510
|
+
const flag2 = init_bulk_flag(cohort.genome);
|
|
1511
|
+
if (arg.snvindel) {
|
|
1512
|
+
const e = parse_snvindel(arg.snvindel, flag2);
|
|
1513
|
+
if (e) throw { message: "error in snvindel data: " + e };
|
|
1514
|
+
delete arg.snvindel;
|
|
1515
|
+
}
|
|
1516
|
+
if (arg.svjson) {
|
|
1517
|
+
const e = parse_svjson(arg.svjson, flag2);
|
|
1518
|
+
if (e) throw { message: "error in svjson data: " + e };
|
|
1519
|
+
delete arg.svjson;
|
|
1520
|
+
}
|
|
1521
|
+
if (arg.sv) {
|
|
1522
|
+
const e = parse_sv(arg.sv, flag2);
|
|
1523
|
+
if (e) throw { message: "error in svjson data: " + e };
|
|
1524
|
+
delete arg.sv;
|
|
1525
|
+
}
|
|
1526
|
+
if (arg.cnv) {
|
|
1527
|
+
const e = parse_cnv(arg.cnv, flag2);
|
|
1528
|
+
if (e) throw { message: "error in cnv data: " + e };
|
|
1529
|
+
delete arg.cnv;
|
|
1530
|
+
}
|
|
1531
|
+
const err2 = bulkin({
|
|
1532
|
+
flag: flag2,
|
|
1533
|
+
filename: arg.name,
|
|
1534
|
+
cohort
|
|
1535
|
+
});
|
|
1536
|
+
if (err2) throw { message: "Error parsing data: " + err2 };
|
|
1537
|
+
return cohort;
|
|
1538
|
+
}).then((cohort) => {
|
|
1539
|
+
if (!arg.mutationset) return cohort;
|
|
1540
|
+
if (!Array.isArray(arg.mutationset)) throw { message: "mutationset is not an array" };
|
|
1541
|
+
const tasks2 = [];
|
|
1542
|
+
for (const mset of arg.mutationset) {
|
|
1543
|
+
const flag2 = init_bulk_flag(cohort.genome);
|
|
1544
|
+
const tasks = [];
|
|
1545
|
+
if (mset.snvindel) {
|
|
1546
|
+
const req = new Request(arg.hostURL + "/textfile", {
|
|
1547
|
+
method: "POST",
|
|
1548
|
+
body: '{"file":"' + mset.snvindel + '"}'
|
|
1549
|
+
});
|
|
1550
|
+
const task = fetch(req).then((data) => {
|
|
1551
|
+
return data.json();
|
|
1552
|
+
}).then((data) => {
|
|
1553
|
+
if (data.error) throw { message: "error with snvindel file: " + data.error };
|
|
1554
|
+
const e = parse_snvindel(data.text, flag2);
|
|
1555
|
+
if (e) throw { message: "error with snvindel file: " + e };
|
|
1556
|
+
});
|
|
1557
|
+
tasks.push(task);
|
|
1558
|
+
}
|
|
1559
|
+
if (mset.snvindel_url) {
|
|
1560
|
+
tasks.push(
|
|
1561
|
+
dofetch("urltextfile", { url: mset.snvindel_url }).then((data) => {
|
|
1562
|
+
if (data.error) throw { message: "cannot get snvindel file from url" };
|
|
1563
|
+
const e = parse_snvindel(data.text, flag2);
|
|
1564
|
+
if (e) throw { message: "error with snvindel file: " + e };
|
|
1565
|
+
})
|
|
1566
|
+
);
|
|
1567
|
+
}
|
|
1568
|
+
if (mset.cnv) {
|
|
1569
|
+
const req = new Request(arg.hostURL + "/textfile", {
|
|
1570
|
+
method: "POST",
|
|
1571
|
+
body: '{"file":"' + mset.cnv + '"}'
|
|
1572
|
+
});
|
|
1573
|
+
const task = fetch(req).then((data) => {
|
|
1574
|
+
return data.json();
|
|
1575
|
+
}).then((data) => {
|
|
1576
|
+
if (data.error) throw { message: "error with cnv file: " + data.error };
|
|
1577
|
+
const e = parse_cnv(data.text, flag2);
|
|
1578
|
+
if (e) throw { message: "error with cnv file: " + e };
|
|
1579
|
+
});
|
|
1580
|
+
tasks.push(task);
|
|
1581
|
+
}
|
|
1582
|
+
if (mset.cnv_url) {
|
|
1583
|
+
tasks.push(
|
|
1584
|
+
dofetch("urltextfile", { url: mset.cnv_url }).then((data) => {
|
|
1585
|
+
if (data.error) throw { message: "cannot get cnv file from url" };
|
|
1586
|
+
const e = parse_cnv(data.text, flag2);
|
|
1587
|
+
if (e) throw { message: "error with cnv file: " + e };
|
|
1588
|
+
})
|
|
1589
|
+
);
|
|
1590
|
+
}
|
|
1591
|
+
if (mset.sv) {
|
|
1592
|
+
const req = new Request(arg.hostURL + "/textfile", {
|
|
1593
|
+
method: "POST",
|
|
1594
|
+
body: '{"file":"' + mset.sv + '"}'
|
|
1595
|
+
});
|
|
1596
|
+
const task = fetch(req).then((data) => {
|
|
1597
|
+
return data.json();
|
|
1598
|
+
}).then((data) => {
|
|
1599
|
+
if (data.error) throw { message: "error with sv file: " + data.error };
|
|
1600
|
+
const e = parse_sv(data.text, flag2, true);
|
|
1601
|
+
if (e) throw { message: "error with sv file: " + e };
|
|
1602
|
+
});
|
|
1603
|
+
tasks.push(task);
|
|
1604
|
+
}
|
|
1605
|
+
if (mset.sv_url) {
|
|
1606
|
+
tasks.push(
|
|
1607
|
+
dofetch("urltextfile", { url: mset.sv_url }).then((data) => {
|
|
1608
|
+
if (data.error) throw { message: "cannot get sv file from url" };
|
|
1609
|
+
const e = parse_sv(data.text, flag2);
|
|
1610
|
+
if (e) throw { message: "error with sv file: " + e };
|
|
1611
|
+
})
|
|
1612
|
+
);
|
|
1613
|
+
}
|
|
1614
|
+
if (mset.fusion) {
|
|
1615
|
+
const req = new Request(arg.hostURL + "/textfile", {
|
|
1616
|
+
method: "POST",
|
|
1617
|
+
body: '{"file":"' + mset.fusion + '"}'
|
|
1618
|
+
});
|
|
1619
|
+
const task = fetch(req).then((data) => {
|
|
1620
|
+
return data.json();
|
|
1621
|
+
}).then((data) => {
|
|
1622
|
+
if (data.error) throw { message: "error with fusion file: " + data.error };
|
|
1623
|
+
const e = parse_sv(data.text, flag2, false);
|
|
1624
|
+
if (e) throw { message: "error with fusion file: " + e };
|
|
1625
|
+
});
|
|
1626
|
+
tasks.push(task);
|
|
1627
|
+
}
|
|
1628
|
+
if (mset.svjson) {
|
|
1629
|
+
const req = new Request(arg.hostURL + "/textfile", {
|
|
1630
|
+
method: "POST",
|
|
1631
|
+
body: '{"file":"' + mset.svjson + '"}'
|
|
1632
|
+
});
|
|
1633
|
+
const task = fetch(req).then((data) => {
|
|
1634
|
+
return data.json();
|
|
1635
|
+
}).then((data) => {
|
|
1636
|
+
if (data.error) throw { message: "error with svjson file: " + data.error };
|
|
1637
|
+
const e = parse_svjson(data.text, flag2, false);
|
|
1638
|
+
if (e) throw { message: "error with svjson file: " + e };
|
|
1639
|
+
});
|
|
1640
|
+
tasks.push(task);
|
|
1641
|
+
}
|
|
1642
|
+
if (mset.deletion) {
|
|
1643
|
+
const req = new Request(arg.hostURL + "/textfile", {
|
|
1644
|
+
method: "POST",
|
|
1645
|
+
body: '{"file":"' + mset.deletion + '"}'
|
|
1646
|
+
});
|
|
1647
|
+
const task = fetch(req).then((data) => {
|
|
1648
|
+
return data.json();
|
|
1649
|
+
}).then((data) => {
|
|
1650
|
+
if (data.error) throw { message: "error with deletion file: " + data.error };
|
|
1651
|
+
const e = parse_del(data.text, flag2, false);
|
|
1652
|
+
if (e) throw { message: "error with deletion file: " + e };
|
|
1653
|
+
});
|
|
1654
|
+
tasks.push(task);
|
|
1655
|
+
}
|
|
1656
|
+
if (mset.deletion_url) {
|
|
1657
|
+
tasks.push(
|
|
1658
|
+
dofetch("urltextfile", { url: mset.deletion_url }).then((data) => {
|
|
1659
|
+
if (data.error) throw { message: "cannot get deletion file from url" };
|
|
1660
|
+
const e = parse_del(data.text, flag2);
|
|
1661
|
+
if (e) throw { message: "error with deletion file: " + e };
|
|
1662
|
+
})
|
|
1663
|
+
);
|
|
1664
|
+
}
|
|
1665
|
+
if (mset.truncation) {
|
|
1666
|
+
const req = new Request(arg.hostURL + "/textfile", {
|
|
1667
|
+
method: "POST",
|
|
1668
|
+
body: '{"file":"' + mset.truncation + '"}'
|
|
1669
|
+
});
|
|
1670
|
+
const task = fetch(req).then((data) => {
|
|
1671
|
+
return data.json();
|
|
1672
|
+
}).then((data) => {
|
|
1673
|
+
if (data.error) throw { message: "error with truncation file: " + data.error };
|
|
1674
|
+
const e = parse_trunc(data.text, flag2, false);
|
|
1675
|
+
if (e) throw { message: "error with truncation file: " + e };
|
|
1676
|
+
});
|
|
1677
|
+
tasks.push(task);
|
|
1678
|
+
}
|
|
1679
|
+
if (mset.truncation_url) {
|
|
1680
|
+
tasks.push(
|
|
1681
|
+
dofetch("urltextfile", { url: mset.truncation_url }).then((data) => {
|
|
1682
|
+
if (data.error) throw { message: "cannot get truncation file from url" };
|
|
1683
|
+
const e = parse_trunc(data.text, flag2, false);
|
|
1684
|
+
if (e) throw { message: "error with truncation file: " + e };
|
|
1685
|
+
})
|
|
1686
|
+
);
|
|
1687
|
+
}
|
|
1688
|
+
if (mset.itd) {
|
|
1689
|
+
const req = new Request(arg.hostURL + "/textfile", {
|
|
1690
|
+
method: "POST",
|
|
1691
|
+
body: '{"file":"' + mset.itd + '"}'
|
|
1692
|
+
});
|
|
1693
|
+
const task = fetch(req).then((data) => {
|
|
1694
|
+
return data.json();
|
|
1695
|
+
}).then((data) => {
|
|
1696
|
+
if (data.error) throw { message: "error with itd file: " + data.error };
|
|
1697
|
+
const e = parse_itd(data.text, flag2, false);
|
|
1698
|
+
if (e) throw { message: "error with itd file: " + e };
|
|
1699
|
+
});
|
|
1700
|
+
tasks.push(task);
|
|
1701
|
+
}
|
|
1702
|
+
if (mset.itd_url) {
|
|
1703
|
+
tasks.push(
|
|
1704
|
+
dofetch("urltextfile", { url: mset.itd_url }).then((data) => {
|
|
1705
|
+
if (data.error) throw { message: "cannot get itd file from url" };
|
|
1706
|
+
const e = parse_itd(data.text, flag2, false);
|
|
1707
|
+
if (e) throw { message: "error with itd file: " + e };
|
|
1708
|
+
})
|
|
1709
|
+
);
|
|
1710
|
+
}
|
|
1711
|
+
const task2 = Promise.all(tasks).then((data) => {
|
|
1712
|
+
const err2 = bulkin({
|
|
1713
|
+
flag: flag2,
|
|
1714
|
+
filename: arg.name,
|
|
1715
|
+
cohort
|
|
1716
|
+
});
|
|
1717
|
+
if (err2) throw { message: "Error parsing data from " + mset.name + ": " + err2 };
|
|
1718
|
+
});
|
|
1719
|
+
tasks2.push(task2);
|
|
1720
|
+
}
|
|
1721
|
+
return Promise.all(tasks2).then((data) => {
|
|
1722
|
+
return cohort;
|
|
1723
|
+
});
|
|
1724
|
+
}).then((cohort) => {
|
|
1725
|
+
const err2 = tpinit(cohort);
|
|
1726
|
+
if (err2) throw { message: "Error parsing study: " + err2 };
|
|
1727
|
+
saydiv.text("");
|
|
1728
|
+
import("./tp.ui-4ESL6SCH.js").then((p) => {
|
|
1729
|
+
p.default(cohort, holder, arg.hostURL);
|
|
1730
|
+
});
|
|
1731
|
+
}).catch((err2) => {
|
|
1732
|
+
saydiv.text(err2.message);
|
|
1733
|
+
if (err2.stack) {
|
|
1734
|
+
console.log(err2.stack);
|
|
1735
|
+
}
|
|
1736
|
+
});
|
|
1737
|
+
}
|
|
1738
|
+
function parse_snvindel(text, flag2) {
|
|
1739
|
+
const lines = text.trim().split(/\r?\n/);
|
|
1740
|
+
let headerline = lines[0];
|
|
1741
|
+
let lineidx = 0;
|
|
1742
|
+
while (headerline[0] == "#") {
|
|
1743
|
+
lineidx++;
|
|
1744
|
+
headerline = lines[lineidx];
|
|
1745
|
+
}
|
|
1746
|
+
if (!headerline) return "no header line";
|
|
1747
|
+
const err2 = parseheader2(headerline, flag2);
|
|
1748
|
+
if (err2) return "header error: " + err2;
|
|
1749
|
+
for (let i = lineidx + 1; i < lines.length; i++) {
|
|
1750
|
+
if (lines[i] == "") continue;
|
|
1751
|
+
if (lines[i][0] == "#") continue;
|
|
1752
|
+
parseline2(i, lines[i], flag2);
|
|
1753
|
+
}
|
|
1754
|
+
}
|
|
1755
|
+
function parse_svjson(text, flag2) {
|
|
1756
|
+
const lines = text.split(/\r?\n/);
|
|
1757
|
+
let headerline = lines[0];
|
|
1758
|
+
let lineidx = 0;
|
|
1759
|
+
while (headerline[0] == "#") {
|
|
1760
|
+
lineidx++;
|
|
1761
|
+
headerline = lines[lineidx];
|
|
1762
|
+
}
|
|
1763
|
+
if (!headerline) return "no header line";
|
|
1764
|
+
const [err2, header] = parseheader3(headerline, flag2);
|
|
1765
|
+
if (err2) return "header error: " + err2;
|
|
1766
|
+
for (let i = lineidx + 1; i < lines.length; i++) {
|
|
1767
|
+
if (lines[i] == "") continue;
|
|
1768
|
+
if (lines[i][0] == "#") continue;
|
|
1769
|
+
parseline3(i, lines[i], flag2, header);
|
|
1770
|
+
}
|
|
1771
|
+
}
|
|
1772
|
+
function parse_cnv(text, flag2) {
|
|
1773
|
+
const lines = text.split(/\r?\n/);
|
|
1774
|
+
let headerline = lines[0];
|
|
1775
|
+
let lineidx = 0;
|
|
1776
|
+
while (headerline[0] == "#") {
|
|
1777
|
+
lineidx++;
|
|
1778
|
+
headerline = lines[lineidx];
|
|
1779
|
+
}
|
|
1780
|
+
if (!headerline) return "no header line";
|
|
1781
|
+
const err2 = parseheader4(headerline, flag2);
|
|
1782
|
+
if (err2) return "header error: " + err2;
|
|
1783
|
+
for (let i = lineidx + 1; i < lines.length; i++) {
|
|
1784
|
+
if (lines[i] == "") continue;
|
|
1785
|
+
if (lines[i][0] == "#") continue;
|
|
1786
|
+
parseline4(i, lines[i], flag2);
|
|
1787
|
+
}
|
|
1788
|
+
}
|
|
1789
|
+
function parse_itd(text, flag2) {
|
|
1790
|
+
const lines = text.split(/\r?\n/);
|
|
1791
|
+
let headerline = lines[0];
|
|
1792
|
+
let lineidx = 0;
|
|
1793
|
+
while (headerline[0] == "#") {
|
|
1794
|
+
lineidx++;
|
|
1795
|
+
headerline = lines[lineidx];
|
|
1796
|
+
}
|
|
1797
|
+
if (!headerline) return "no header line";
|
|
1798
|
+
const err2 = parseheader5(headerline, flag2);
|
|
1799
|
+
if (err2) return "header error: " + err2;
|
|
1800
|
+
for (let i = lineidx + 1; i < lines.length; i++) {
|
|
1801
|
+
if (lines[i] == "") continue;
|
|
1802
|
+
if (lines[i][0] == "#") continue;
|
|
1803
|
+
parseline5(i, lines[i], flag2);
|
|
1804
|
+
}
|
|
1805
|
+
}
|
|
1806
|
+
function parse_del(text, flag2) {
|
|
1807
|
+
const lines = text.split(/\r?\n/);
|
|
1808
|
+
let headerline = lines[0];
|
|
1809
|
+
let lineidx = 0;
|
|
1810
|
+
while (headerline[0] == "#") {
|
|
1811
|
+
lineidx++;
|
|
1812
|
+
headerline = lines[lineidx];
|
|
1813
|
+
}
|
|
1814
|
+
if (!headerline) return "no header line";
|
|
1815
|
+
const err2 = parseheader6(headerline, flag2);
|
|
1816
|
+
if (err2) return "header error: " + err2;
|
|
1817
|
+
for (let i = lineidx + 1; i < lines.length; i++) {
|
|
1818
|
+
if (lines[i] == "") continue;
|
|
1819
|
+
if (lines[i][0] == "#") continue;
|
|
1820
|
+
parseline6(i, lines[i], flag2);
|
|
1821
|
+
}
|
|
1822
|
+
}
|
|
1823
|
+
function parse_trunc(text, flag2) {
|
|
1824
|
+
const lines = text.split(/\r?\n/);
|
|
1825
|
+
let headerline = lines[0];
|
|
1826
|
+
let lineidx = 0;
|
|
1827
|
+
while (headerline[0] == "#") {
|
|
1828
|
+
lineidx++;
|
|
1829
|
+
headerline = lines[lineidx];
|
|
1830
|
+
}
|
|
1831
|
+
if (!headerline) return "no header line";
|
|
1832
|
+
const err2 = parseheader7(headerline, flag2);
|
|
1833
|
+
if (err2) return "header error: " + err2;
|
|
1834
|
+
for (let i = lineidx + 1; i < lines.length; i++) {
|
|
1835
|
+
if (lines[i] == "") continue;
|
|
1836
|
+
if (lines[i][0] == "#") continue;
|
|
1837
|
+
parseline7(i, lines[i], flag2);
|
|
1838
|
+
}
|
|
1839
|
+
}
|
|
1840
|
+
function parse_sv(text, flag2, isSv) {
|
|
1841
|
+
const lines = text.split(/\r?\n/);
|
|
1842
|
+
let headerline = lines[0];
|
|
1843
|
+
let lineidx = 0;
|
|
1844
|
+
while (headerline[0] == "#") {
|
|
1845
|
+
lineidx++;
|
|
1846
|
+
headerline = lines[lineidx];
|
|
1847
|
+
}
|
|
1848
|
+
if (!headerline) return "no header line";
|
|
1849
|
+
const err2 = parseheader(headerline, flag2, isSv);
|
|
1850
|
+
if (err2) return "header error: " + err2;
|
|
1851
|
+
for (let i = lineidx + 1; i < lines.length; i++) {
|
|
1852
|
+
if (lines[i] == "") continue;
|
|
1853
|
+
if (lines[i][0] == "#") continue;
|
|
1854
|
+
parseline(i, lines[i], flag2, isSv);
|
|
1855
|
+
}
|
|
1856
|
+
}
|
|
1857
|
+
|
|
1858
|
+
// src/tp.init.js
|
|
1859
|
+
function tpinit(cohort) {
|
|
1860
|
+
if (!cohort.p2st) {
|
|
1861
|
+
cohort.p2st = {};
|
|
1862
|
+
}
|
|
1863
|
+
if (!cohort.assays) {
|
|
1864
|
+
cohort.assays = [];
|
|
1865
|
+
}
|
|
1866
|
+
if (!Array.isArray(cohort.assays)) {
|
|
1867
|
+
return ".assays should be an array";
|
|
1868
|
+
}
|
|
1869
|
+
cohort.assaylst = [];
|
|
1870
|
+
let assaynum = 0;
|
|
1871
|
+
for (const assayname of cohort.assays) {
|
|
1872
|
+
const rawassay = cohort[assayname];
|
|
1873
|
+
if (!rawassay) {
|
|
1874
|
+
return 'Assay "' + assayname + '" not found in cohort';
|
|
1875
|
+
}
|
|
1876
|
+
const config = rawassay.config;
|
|
1877
|
+
if (!config) {
|
|
1878
|
+
return '.config object missing for assay "' + assayname + '"';
|
|
1879
|
+
}
|
|
1880
|
+
delete rawassay.config;
|
|
1881
|
+
if (!config.type) {
|
|
1882
|
+
return '.config.type missing for assay "' + assayname + '"';
|
|
1883
|
+
}
|
|
1884
|
+
if (config.type.toLowerCase() == "vcf") {
|
|
1885
|
+
config.type = tkt.ds;
|
|
1886
|
+
config.isvcf = true;
|
|
1887
|
+
} else {
|
|
1888
|
+
if (!validtkt(config.type)) {
|
|
1889
|
+
return 'unknown .config.type "' + config.type + '" for assay "' + assayname + '"';
|
|
1890
|
+
}
|
|
1891
|
+
}
|
|
1892
|
+
config.id = (++assaynum).toString();
|
|
1893
|
+
if (!config.name) {
|
|
1894
|
+
config.name = assayname;
|
|
1895
|
+
}
|
|
1896
|
+
if (config.type == tkt.junction) {
|
|
1897
|
+
if (config.readcountcutoff) {
|
|
1898
|
+
if (!Number.isInteger(config.readcountcutoff) || config.readcountcutoff < 0) {
|
|
1899
|
+
return 'invalid .config.readcountcutoff for assay "' + assayname + '"';
|
|
1900
|
+
}
|
|
1901
|
+
}
|
|
1902
|
+
}
|
|
1903
|
+
cohort.assaylst.push(config);
|
|
1904
|
+
for (const pn in rawassay) {
|
|
1905
|
+
if (!cohort.p2st[pn]) {
|
|
1906
|
+
cohort.p2st[pn] = {};
|
|
1907
|
+
}
|
|
1908
|
+
for (const st in rawassay[pn]) {
|
|
1909
|
+
if (!cohort.p2st[pn][st]) {
|
|
1910
|
+
cohort.p2st[pn][st] = {
|
|
1911
|
+
tktemplate: []
|
|
1912
|
+
};
|
|
1913
|
+
}
|
|
1914
|
+
if (config.type == tkt.vafs1) {
|
|
1915
|
+
for (const name in rawassay[pn][st]) {
|
|
1916
|
+
const tk = rawassay[pn][st][name];
|
|
1917
|
+
if (!tk.file && !tk.url) {
|
|
1918
|
+
return "no file or URL for " + name + " vafs1 of " + pn + ", " + st;
|
|
1919
|
+
}
|
|
1920
|
+
tk.type = tkt.vafs1;
|
|
1921
|
+
tk.patient = pn;
|
|
1922
|
+
tk.sampletype = st;
|
|
1923
|
+
tk.assayname = assayname;
|
|
1924
|
+
tk.id = config.id;
|
|
1925
|
+
tk.tkid = Math.random().toString();
|
|
1926
|
+
if (!tk.name) {
|
|
1927
|
+
tk.name = name + " vaf";
|
|
1928
|
+
}
|
|
1929
|
+
cohort.p2st[pn][st].tktemplate.push(tk);
|
|
1930
|
+
}
|
|
1931
|
+
continue;
|
|
1932
|
+
}
|
|
1933
|
+
let rawtklst = [];
|
|
1934
|
+
if (Array.isArray(rawassay[pn][st])) {
|
|
1935
|
+
rawtklst = rawassay[pn][st];
|
|
1936
|
+
} else {
|
|
1937
|
+
rawtklst.push(rawassay[pn][st]);
|
|
1938
|
+
}
|
|
1939
|
+
for (const _tk of rawtklst) {
|
|
1940
|
+
let tk = _tk;
|
|
1941
|
+
if (!tk.file && !tk.url) {
|
|
1942
|
+
return "track has no file or url (sample: " + pn + ", assay: " + assayname + ")";
|
|
1943
|
+
}
|
|
1944
|
+
if (tk.name) {
|
|
1945
|
+
} else if (tk.partname) {
|
|
1946
|
+
tk.name = pn + (st == pn ? "" : " " + st) + " " + assayname + " " + tk.partname;
|
|
1947
|
+
} else {
|
|
1948
|
+
tk.name = pn + (st == pn ? "" : " " + st) + " " + assayname;
|
|
1949
|
+
}
|
|
1950
|
+
if (config.isvcf) {
|
|
1951
|
+
const [err2, tk2] = vcf2dstk({
|
|
1952
|
+
name: tk.name,
|
|
1953
|
+
file: tk.file,
|
|
1954
|
+
url: tk.url
|
|
1955
|
+
});
|
|
1956
|
+
if (err2) {
|
|
1957
|
+
return "VCF track error: " + err2;
|
|
1958
|
+
}
|
|
1959
|
+
tk = tk2;
|
|
1960
|
+
} else {
|
|
1961
|
+
if (tk.type) {
|
|
1962
|
+
if (!validtkt(tk.type)) {
|
|
1963
|
+
return 'invalid track type "' + tk.type + '" (sample: ' + pn + ", assay: " + assayname + ")";
|
|
1964
|
+
}
|
|
1965
|
+
} else {
|
|
1966
|
+
tk.type = config.type;
|
|
1967
|
+
}
|
|
1968
|
+
}
|
|
1969
|
+
tk.patient = pn;
|
|
1970
|
+
tk.sampletype = st;
|
|
1971
|
+
tk.assayname = assayname;
|
|
1972
|
+
tk.id = config.id;
|
|
1973
|
+
tk.tkid = Math.random().toString();
|
|
1974
|
+
cohort.p2st[pn][st].tktemplate.push(tk);
|
|
1975
|
+
switch (config.type) {
|
|
1976
|
+
case tkt.bigwig:
|
|
1977
|
+
const e = tidy_qtk(tk, config);
|
|
1978
|
+
if (e) {
|
|
1979
|
+
return "Assay " + assayname + ": " + config.type + " track error: " + e;
|
|
1980
|
+
}
|
|
1981
|
+
break;
|
|
1982
|
+
case tkt.junction:
|
|
1983
|
+
tk.categories = config.categories;
|
|
1984
|
+
tk.readcountcutoff = config.readcountcutoff;
|
|
1985
|
+
break;
|
|
1986
|
+
}
|
|
1987
|
+
}
|
|
1988
|
+
}
|
|
1989
|
+
}
|
|
1990
|
+
}
|
|
1991
|
+
delete cohort.assays;
|
|
1992
|
+
{
|
|
1993
|
+
const err2 = cohort2genometkset(cohort);
|
|
1994
|
+
if (err2) {
|
|
1995
|
+
return "Error: " + err2;
|
|
1996
|
+
}
|
|
1997
|
+
}
|
|
1998
|
+
if (cohort.patientannotation) {
|
|
1999
|
+
const err2 = parse_patientannotation(cohort);
|
|
2000
|
+
if (err2) return err2;
|
|
2001
|
+
}
|
|
2002
|
+
if (cohort.browserview) {
|
|
2003
|
+
const err2 = parse_browserview(cohort);
|
|
2004
|
+
if (err2) return err2;
|
|
2005
|
+
}
|
|
2006
|
+
if (cohort.e2pca) {
|
|
2007
|
+
if (!cohort.e2pca.list) return ".list missing from e2pca";
|
|
2008
|
+
if (!Array.isArray(cohort.e2pca.list)) return "e2pca.list should be an array";
|
|
2009
|
+
if (cohort.e2pca.list.length == 0) return "e2pca.list[] length 0";
|
|
2010
|
+
if (!cohort.e2pca.label) {
|
|
2011
|
+
cohort.e2pca.label = "Expression - PCA";
|
|
2012
|
+
}
|
|
2013
|
+
for (const obj of cohort.e2pca.list) {
|
|
2014
|
+
if (!obj.vectorfile) return "vectorfile missing from e2pca";
|
|
2015
|
+
if (!obj.dbfile) return "dbfile missing from e2pca";
|
|
2016
|
+
}
|
|
2017
|
+
}
|
|
2018
|
+
return;
|
|
2019
|
+
}
|
|
2020
|
+
function loadstudycohort(genomes, file, holder, hostURL, jwt, noshow, app) {
|
|
2021
|
+
const wait = holder.append("div").style("color", "#858585");
|
|
2022
|
+
wait.text("Loading " + file + " ...");
|
|
2023
|
+
return fetch(hostURL + "/study", {
|
|
2024
|
+
method: "POST",
|
|
2025
|
+
body: JSON.stringify({ file, jwt })
|
|
2026
|
+
}).then((res) => res.json()).then((data) => {
|
|
2027
|
+
if (!data) {
|
|
2028
|
+
wait.text("Server error!");
|
|
2029
|
+
return;
|
|
2030
|
+
}
|
|
2031
|
+
if (data.error) {
|
|
2032
|
+
wait.text("Error loading study: " + data.error);
|
|
2033
|
+
return;
|
|
2034
|
+
}
|
|
2035
|
+
const cohort = data.cohort;
|
|
2036
|
+
if (!cohort) {
|
|
2037
|
+
wait.text(".cohort missing");
|
|
2038
|
+
return;
|
|
2039
|
+
}
|
|
2040
|
+
if (!cohort.genome) {
|
|
2041
|
+
wait.text("No genome specified in the cohort JSON content");
|
|
2042
|
+
return;
|
|
2043
|
+
}
|
|
2044
|
+
const g = genomes[cohort.genome];
|
|
2045
|
+
if (!g) {
|
|
2046
|
+
wait.text("Invalid genome from cohort: " + cohort.genome);
|
|
2047
|
+
return;
|
|
2048
|
+
}
|
|
2049
|
+
cohort.genome = g;
|
|
2050
|
+
cohort.jwt = jwt;
|
|
2051
|
+
if (!data.flagset) {
|
|
2052
|
+
wait.text(".flagset missing");
|
|
2053
|
+
return;
|
|
2054
|
+
}
|
|
2055
|
+
wait.text("");
|
|
2056
|
+
cohort.dsset = {};
|
|
2057
|
+
for (const k in data.flagset) {
|
|
2058
|
+
const flag2 = data.flagset[k];
|
|
2059
|
+
flag2.genome = g;
|
|
2060
|
+
bulkin({
|
|
2061
|
+
flag: flag2,
|
|
2062
|
+
filename: file,
|
|
2063
|
+
cohort,
|
|
2064
|
+
err: (m) => sayerror(wait, m)
|
|
2065
|
+
});
|
|
2066
|
+
}
|
|
2067
|
+
const err2 = tpinit(cohort);
|
|
2068
|
+
if (err2) {
|
|
2069
|
+
sayerror(wait, err2);
|
|
2070
|
+
}
|
|
2071
|
+
if (!noshow) {
|
|
2072
|
+
return import("./tp.ui-4ESL6SCH.js").then(async (p) => {
|
|
2073
|
+
getsjcharts().catch(console.error);
|
|
2074
|
+
p.default(cohort, holder, hostURL, app);
|
|
2075
|
+
return app;
|
|
2076
|
+
});
|
|
2077
|
+
}
|
|
2078
|
+
});
|
|
2079
|
+
}
|
|
2080
|
+
function tidy_qtk(tk, config) {
|
|
2081
|
+
if (!config) {
|
|
2082
|
+
config = {};
|
|
2083
|
+
}
|
|
2084
|
+
if (!tk.file && !tk.url) {
|
|
2085
|
+
return "no file or url";
|
|
2086
|
+
}
|
|
2087
|
+
if (!tk.pcolor) {
|
|
2088
|
+
tk.pcolor = config.pcolor || "#0066CC";
|
|
2089
|
+
}
|
|
2090
|
+
if (!tk.pcolor2) {
|
|
2091
|
+
tk.pcolor2 = config.pcolor2 || "#CC0000";
|
|
2092
|
+
}
|
|
2093
|
+
if (!tk.ncolor) {
|
|
2094
|
+
tk.ncolor = config.ncolor || "#FF850A";
|
|
2095
|
+
}
|
|
2096
|
+
if (!tk.ncolor2) {
|
|
2097
|
+
tk.ncolor2 = config.ncolor2 || "#0A85FF";
|
|
2098
|
+
}
|
|
2099
|
+
if (!tk.height) {
|
|
2100
|
+
tk.height = config.height || 50;
|
|
2101
|
+
}
|
|
2102
|
+
const scale = {};
|
|
2103
|
+
if (config.scale) {
|
|
2104
|
+
for (const k in config.scale) {
|
|
2105
|
+
scale[k] = config.scale[k];
|
|
2106
|
+
}
|
|
2107
|
+
}
|
|
2108
|
+
if (tk.scale) {
|
|
2109
|
+
for (const k in tk.scale) {
|
|
2110
|
+
scale[k] = tk.scale[k];
|
|
2111
|
+
}
|
|
2112
|
+
}
|
|
2113
|
+
scale.auto = true;
|
|
2114
|
+
if (Number.isFinite(scale.min) && Number.isFinite(scale.max)) {
|
|
2115
|
+
delete scale.auto;
|
|
2116
|
+
} else if (Number.isFinite(scale.percentile)) {
|
|
2117
|
+
delete scale.auto;
|
|
2118
|
+
}
|
|
2119
|
+
tk.scale = scale;
|
|
2120
|
+
}
|
|
2121
|
+
function cohort2genometkset(cohort) {
|
|
2122
|
+
const lst = [];
|
|
2123
|
+
for (const pn in cohort.p2st) {
|
|
2124
|
+
for (const st in cohort.p2st[pn]) {
|
|
2125
|
+
const templates = cohort.p2st[pn][st].tktemplate;
|
|
2126
|
+
if (!templates) continue;
|
|
2127
|
+
for (const t of templates) {
|
|
2128
|
+
lst.push(t);
|
|
2129
|
+
}
|
|
2130
|
+
}
|
|
2131
|
+
}
|
|
2132
|
+
if (cohort.browserview && cohort.browserview.assays) {
|
|
2133
|
+
for (const assayname in cohort.browserview.assays) {
|
|
2134
|
+
const assayview = cohort.browserview.assays[assayname];
|
|
2135
|
+
if (assayview.combined && assayview.combinetk) {
|
|
2136
|
+
lst.push(assayview.combinetk);
|
|
2137
|
+
}
|
|
2138
|
+
}
|
|
2139
|
+
}
|
|
2140
|
+
if (!cohort.genome.tkset) {
|
|
2141
|
+
cohort.genome.tkset = [];
|
|
2142
|
+
}
|
|
2143
|
+
const thisset = {
|
|
2144
|
+
name: cohort.name,
|
|
2145
|
+
tklst: lst
|
|
2146
|
+
};
|
|
2147
|
+
if (cohort.trackfacets) {
|
|
2148
|
+
if (!Array.isArray(cohort.trackfacets)) {
|
|
2149
|
+
return ".trackfacets is not an array";
|
|
2150
|
+
}
|
|
2151
|
+
const lst2 = [];
|
|
2152
|
+
for (const fc of cohort.trackfacets) {
|
|
2153
|
+
if (!fc.samples) {
|
|
2154
|
+
return "trackfacets: .samples missing from facet " + fc.name;
|
|
2155
|
+
}
|
|
2156
|
+
if (!Array.isArray(fc.samples)) {
|
|
2157
|
+
return "trackfacets: .samples is not array from facet " + fc.name;
|
|
2158
|
+
}
|
|
2159
|
+
if (!fc.assays) {
|
|
2160
|
+
return "trackfacets: .assays missing from a facet " + fc.name;
|
|
2161
|
+
}
|
|
2162
|
+
if (!Array.isArray(fc.assays)) {
|
|
2163
|
+
return "trackfacets: .assays is not array from a facet " + fc.name;
|
|
2164
|
+
}
|
|
2165
|
+
lst2.push(fc);
|
|
2166
|
+
}
|
|
2167
|
+
if (lst2.length) {
|
|
2168
|
+
thisset.facetlst = lst2;
|
|
2169
|
+
}
|
|
2170
|
+
}
|
|
2171
|
+
cohort.genome.tkset.push(thisset);
|
|
2172
|
+
return null;
|
|
2173
|
+
}
|
|
2174
|
+
function parse_browserview(cohort) {
|
|
2175
|
+
if (cohort.browserview.position) {
|
|
2176
|
+
let pos;
|
|
2177
|
+
if (typeof cohort.browserview.position == "string") {
|
|
2178
|
+
pos = string2pos(cohort.browserview.position, cohort.genome);
|
|
2179
|
+
if (!pos) {
|
|
2180
|
+
return ".browserview.position invalid value";
|
|
2181
|
+
}
|
|
2182
|
+
} else {
|
|
2183
|
+
pos = cohort.browserview.position;
|
|
2184
|
+
}
|
|
2185
|
+
const e = invalidcoord(cohort.genome, pos.chr, pos.start, pos.stop);
|
|
2186
|
+
if (e) {
|
|
2187
|
+
return ".browserview.position error: " + e;
|
|
2188
|
+
}
|
|
2189
|
+
cohort.browserview.position = pos;
|
|
2190
|
+
} else {
|
|
2191
|
+
cohort.browserview.position = {
|
|
2192
|
+
chr: cohort.genome.defaultcoord.chr,
|
|
2193
|
+
start: cohort.genome.defaultcoord.start,
|
|
2194
|
+
stop: cohort.genome.defaultcoord.stop
|
|
2195
|
+
};
|
|
2196
|
+
}
|
|
2197
|
+
if (cohort.browserview.assays) {
|
|
2198
|
+
for (const assayname in cohort.browserview.assays) {
|
|
2199
|
+
if (typeof cohort.browserview.assays[assayname] != "object") {
|
|
2200
|
+
cohort.browserview.assays[assayname] = {};
|
|
2201
|
+
}
|
|
2202
|
+
const assayview = cohort.browserview.assays[assayname];
|
|
2203
|
+
for (const a of cohort.assaylst) {
|
|
2204
|
+
if (a.name == assayname) {
|
|
2205
|
+
assayview.assayobj = a;
|
|
2206
|
+
break;
|
|
2207
|
+
}
|
|
2208
|
+
}
|
|
2209
|
+
if (!assayview.assayobj) {
|
|
2210
|
+
console.log("missing assayobj for assayview of " + assayname);
|
|
2211
|
+
continue;
|
|
2212
|
+
}
|
|
2213
|
+
if (assayview.sum_view) {
|
|
2214
|
+
delete assayview.sum_view;
|
|
2215
|
+
assayview.combined = true;
|
|
2216
|
+
}
|
|
2217
|
+
if (assayview.combined) {
|
|
2218
|
+
const combinetk = {};
|
|
2219
|
+
for (const k in assayview.assayobj) {
|
|
2220
|
+
combinetk[k] = assayview.assayobj[k];
|
|
2221
|
+
}
|
|
2222
|
+
for (const k in assayview) {
|
|
2223
|
+
if (k == "assayobj") continue;
|
|
2224
|
+
combinetk[k] = assayview[k];
|
|
2225
|
+
}
|
|
2226
|
+
if (!combinetk.name) {
|
|
2227
|
+
combinetk.name = assayname;
|
|
2228
|
+
}
|
|
2229
|
+
combinetk.tracks = [];
|
|
2230
|
+
for (const pn in cohort.p2st) {
|
|
2231
|
+
for (const st in cohort.p2st[pn]) {
|
|
2232
|
+
for (const t of cohort.p2st[pn][st].tktemplate) {
|
|
2233
|
+
if (t.id == assayview.assayobj.id) {
|
|
2234
|
+
t.patient = pn;
|
|
2235
|
+
t.sampletype = st;
|
|
2236
|
+
combinetk.tracks.push(t);
|
|
2237
|
+
}
|
|
2238
|
+
}
|
|
2239
|
+
}
|
|
2240
|
+
}
|
|
2241
|
+
if (combinetk.isvcf) {
|
|
2242
|
+
combinetk.ds = {
|
|
2243
|
+
id2vcf: {},
|
|
2244
|
+
label: combinetk.name
|
|
2245
|
+
};
|
|
2246
|
+
for (const t of combinetk.tracks) {
|
|
2247
|
+
for (const i in t.ds.id2vcf) {
|
|
2248
|
+
t.__vcfobj = t.ds.id2vcf[i];
|
|
2249
|
+
}
|
|
2250
|
+
combinetk.ds.id2vcf[t.__vcfobj.vcfid] = t.__vcfobj;
|
|
2251
|
+
}
|
|
2252
|
+
}
|
|
2253
|
+
assayview.combinetk = combinetk;
|
|
2254
|
+
}
|
|
2255
|
+
}
|
|
2256
|
+
}
|
|
2257
|
+
if (cohort.browserview.defaultassaytracks) {
|
|
2258
|
+
if (!Array.isArray(cohort.browserview.defaultassaytracks)) return ".browserview.defaultassaytracks must be array";
|
|
2259
|
+
for (let i = 0; i < cohort.browserview.defaultassaytracks.length; i++) {
|
|
2260
|
+
const t = cohort.browserview.defaultassaytracks[i];
|
|
2261
|
+
if (!t.assay) return ".assay missing from .defaultassaytracks #" + (i + 1);
|
|
2262
|
+
if (!cohort[t.assay]) return "unknown assay name from .defaultassaytracks #" + (i + 1) + ": " + t.assay;
|
|
2263
|
+
if (!t.level1) return ".level1 missing from .defaultassaytracks #" + (i + 1);
|
|
2264
|
+
if (!cohort[t.assay][t.level1])
|
|
2265
|
+
return "level1 not exist in assay from .defaultassaytracks #" + (i + 1) + ": " + t.level1;
|
|
2266
|
+
if (t.level2) {
|
|
2267
|
+
if (!cohort[t.assay][t.level1][t.level2])
|
|
2268
|
+
return "level2 not exist in assay from .defaultassaytracks #" + (i + 1) + ": " + t.level2;
|
|
2269
|
+
}
|
|
2270
|
+
}
|
|
2271
|
+
}
|
|
2272
|
+
return null;
|
|
2273
|
+
}
|
|
2274
|
+
function parse_patientannotation(cohort) {
|
|
2275
|
+
if (!cohort.patientannotation.annotation) {
|
|
2276
|
+
return ".patientannotation.annotation missing";
|
|
2277
|
+
}
|
|
2278
|
+
if (!cohort.patientannotation.metadata) {
|
|
2279
|
+
return ".patientannotation.metadata missing";
|
|
2280
|
+
}
|
|
2281
|
+
if (!Array.isArray(cohort.patientannotation.metadata)) {
|
|
2282
|
+
return ".patientannotation.metadata should be an array";
|
|
2283
|
+
}
|
|
2284
|
+
const mdh = {};
|
|
2285
|
+
for (const md of cohort.patientannotation.metadata) {
|
|
2286
|
+
if (md.key == void 0) {
|
|
2287
|
+
return "patientannotation: key missing for a metadata term";
|
|
2288
|
+
}
|
|
2289
|
+
if (!md.values) {
|
|
2290
|
+
return "patientannotation: values missing for metadata term " + md.key;
|
|
2291
|
+
}
|
|
2292
|
+
if (!Array.isArray(md.values)) {
|
|
2293
|
+
return "patientannotation: .values not an array for metadata term " + md.key;
|
|
2294
|
+
}
|
|
2295
|
+
if (!md.label) {
|
|
2296
|
+
md.label = md.key;
|
|
2297
|
+
}
|
|
2298
|
+
mdh[md.key] = {
|
|
2299
|
+
label: md.label,
|
|
2300
|
+
values: {}
|
|
2301
|
+
};
|
|
2302
|
+
const colorfunc = ordinal(category10_default);
|
|
2303
|
+
for (const at of md.values) {
|
|
2304
|
+
if (at.key == void 0) {
|
|
2305
|
+
return "key missing for an attribute of term " + md.key;
|
|
2306
|
+
}
|
|
2307
|
+
if (!at.label) {
|
|
2308
|
+
at.label = at.key;
|
|
2309
|
+
}
|
|
2310
|
+
if (!at.color) {
|
|
2311
|
+
at.color = colorfunc(at.key);
|
|
2312
|
+
}
|
|
2313
|
+
mdh[md.key].values[at.key] = at;
|
|
2314
|
+
}
|
|
2315
|
+
}
|
|
2316
|
+
cohort.patientannotation.mdh = mdh;
|
|
2317
|
+
return null;
|
|
2318
|
+
}
|
|
2319
|
+
|
|
2320
|
+
export {
|
|
2321
|
+
loadstudycohort,
|
|
2322
|
+
bulkui,
|
|
2323
|
+
content2flag,
|
|
2324
|
+
bulkin,
|
|
2325
|
+
bulkembed
|
|
2326
|
+
};
|
|
2327
|
+
//# sourceMappingURL=chunk-GZJ7GDZ4.js.map
|