@sjcrh/proteinpaint-client 2.226.0 → 2.227.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.
Files changed (949) hide show
  1. package/dist/2dmaf-75YAQQ3P.js +1362 -0
  2. package/dist/AggMatrixInput-KYDS23KP.js +402 -0
  3. package/dist/AggregateMatrix-XGGF6KBX.js +37 -0
  4. package/dist/AppHeader-CNY5RTJN.js +826 -0
  5. package/dist/BoxPlot-OQIJJO66.js +1247 -0
  6. package/dist/CorrelationVolcano-QN5D37V7.js +613 -0
  7. package/dist/CorrelationVolcano-QN5D37V7.js.map +7 -0
  8. package/dist/Cuminc-J6DONJTA.js +1217 -0
  9. package/dist/DE-XUBJUUBB.js +85 -0
  10. package/dist/DEinput-DCOPTSWO.js +483 -0
  11. package/dist/DEinput-DCOPTSWO.js.map +7 -0
  12. package/dist/DM-2UUXUJOC.js +86 -0
  13. package/dist/DifferentialAnalysis-U6ZPFHNM.js +236 -0
  14. package/dist/Disco-RR2NN66T.js +3445 -0
  15. package/dist/Disco.UI-MQ7WZQOP.js +239 -0
  16. package/dist/DmrPlot-MKAKFUJR.js +366 -0
  17. package/dist/GB-2X3ZRFXN.js +1388 -0
  18. package/dist/GB-2X3ZRFXN.js.map +7 -0
  19. package/dist/GSEA-DTIA4MNS.js +870 -0
  20. package/dist/GeneExpInput-4GM5MBBX.js +38 -0
  21. package/dist/Geomap-FF6DBN7M.js +80 -0
  22. package/dist/HicApp-LGXNL36X.js +2240 -0
  23. package/dist/IDCViewer-FQABJNUI.js +10810 -0
  24. package/dist/NumBinaryEditor-7NOHUH76.js +274 -0
  25. package/dist/NumBinaryEditor.unit.spec-SVE5SZYB.js +308 -0
  26. package/dist/NumContEditor-MSWCQUKL.js +100 -0
  27. package/dist/NumContEditor.unit.spec-UFPASWBH.js +160 -0
  28. package/dist/NumCustomBinEditor-DF24SO2N.js +29 -0
  29. package/dist/NumCustomBinEditor.unit.spec-N3S3ROBI.js +393 -0
  30. package/dist/NumDiscreteEditor-HL257XGY.js +165 -0
  31. package/dist/NumDiscreteEditor.unit.spec-6PTPX547.js +229 -0
  32. package/dist/NumRegularBinEditor-EWCKTXWY.js +29 -0
  33. package/dist/NumRegularBinEditor.unit.spec-AMGPMY7U.js +274 -0
  34. package/dist/NumSplineEditor-YDNJ2DW2.js +205 -0
  35. package/dist/NumSplineEditor.unit.spec-L4JZ3OND.js +220 -0
  36. package/dist/NumericDensity-SQW67WKL.js +29 -0
  37. package/dist/NumericDensity.unit.spec-KBK3JZZG.js +414 -0
  38. package/dist/NumericHandler-HG7FK4D4.js +30 -0
  39. package/dist/NumericHandler.unit.spec-N7PYAGGF.js +225 -0
  40. package/dist/ProteomeInput-6XGREJFP.js +610 -0
  41. package/dist/Regression-4DDXNQNO.js +1412 -0
  42. package/dist/RunChart2-ARCUC4Z3.js +744 -0
  43. package/dist/SC-AV6COOPI.js +1290 -0
  44. package/dist/Violin-2P5I6NL5.js +1105 -0
  45. package/dist/Volcano-TZQF3HY6.js +2745 -0
  46. package/dist/Volcano-TZQF3HY6.js.map +7 -0
  47. package/dist/Wsi-KN26SIP3.js +650 -0
  48. package/dist/Wsi-KN26SIP3.js.map +7 -0
  49. package/dist/aboutSunburst-V557OK5L.js +93 -0
  50. package/dist/adSandbox-76PMWKTX.js +29 -0
  51. package/dist/animatedBubbleChart-CFRJJDAC.js +542 -0
  52. package/dist/app-2SUVPURX.js +38 -0
  53. package/dist/app-PR42RXHC.js +28 -0
  54. package/dist/app.js +12 -12
  55. package/dist/bam-AYHWKHXL.js +872 -0
  56. package/dist/barchart-S4CLMJO7.js +38 -0
  57. package/dist/barchart2-R2BGA2WO.js +305 -0
  58. package/dist/block-QKO2PO4A.js +6208 -0
  59. package/dist/block-QKO2PO4A.js.map +7 -0
  60. package/dist/block.init-SSWOFFJR.js +29 -0
  61. package/dist/block.mds.expressionrank-GJBLSUUM.js +350 -0
  62. package/dist/block.mds.geneboxplot-SAAU4OH5.js +819 -0
  63. package/dist/block.mds.junction-IIZPRLPH.js +1534 -0
  64. package/dist/block.mds.svcnv-KOG7O25F.js +6325 -0
  65. package/dist/block.svg-5GJ744H3.js +155 -0
  66. package/dist/block.tk.aicheck-CTIJCHIC.js +274 -0
  67. package/dist/block.tk.bam-RTB7C6CW.js +1906 -0
  68. package/dist/block.tk.bigwig.ui-OJVOCOWS.js +202 -0
  69. package/dist/block.tk.hicstraw-GUE6G2DA.js +814 -0
  70. package/dist/block.tk.junction-XILEKNJY.js +2353 -0
  71. package/dist/block.tk.junction.textmatrixui-OF6BW6OY.js +190 -0
  72. package/dist/block.tk.ld-QZVJUGZU.js +90 -0
  73. package/dist/block.tk.menu-B2NV6ZX3.js +1050 -0
  74. package/dist/block.tk.pgv-46OQHX7S.js +934 -0
  75. package/dist/brainImaging-TWTGRSHJ.js +550 -0
  76. package/dist/brainRegions-YTTLJMBU.js +213 -0
  77. package/dist/bubbleHeatmap-OZVG67KF.js +374 -0
  78. package/dist/bubbleHeatmap-OZVG67KF.js.map +7 -0
  79. package/dist/cellTypeBubbleHeatmap-4QFAAED5.js +274 -0
  80. package/dist/cellTypeBubbleHeatmap-4QFAAED5.js.map +7 -0
  81. package/dist/chunk-255OQYGC.js +267 -0
  82. package/dist/chunk-2B3CYHUF.js +30 -0
  83. package/dist/chunk-2BXMWQTJ.js +1339 -0
  84. package/dist/chunk-2E3AJFOA.js +550 -0
  85. package/dist/chunk-2IAELUCN.js +348 -0
  86. package/dist/chunk-2W6U53AG.js +195 -0
  87. package/dist/chunk-3R6VYZYB.js +96 -0
  88. package/dist/chunk-3YAQY5NZ.js +626 -0
  89. package/dist/chunk-52WVSXYC.js +305 -0
  90. package/dist/chunk-6CQ5ADIY.js +56 -0
  91. package/dist/chunk-6UHSGC6G.js +276 -0
  92. package/dist/chunk-6YRM7Z4F.js +4521 -0
  93. package/dist/chunk-6YRM7Z4F.js.map +7 -0
  94. package/dist/chunk-7E37WMAX.js +141 -0
  95. package/dist/chunk-7EP77LOA.js +194 -0
  96. package/dist/chunk-7LJ4LTD6.js +54 -0
  97. package/dist/chunk-7MEBMH77.js +14 -0
  98. package/dist/chunk-7NVFEGCE.js +30 -0
  99. package/dist/chunk-A52K2E32.js +340 -0
  100. package/dist/chunk-A6DDXPLN.js +961 -0
  101. package/dist/chunk-A6DDXPLN.js.map +7 -0
  102. package/dist/chunk-A7UNLPQQ.js +243 -0
  103. package/dist/chunk-BH4KIOUQ.js +480 -0
  104. package/dist/chunk-CFYWQJ7F.js +472 -0
  105. package/dist/chunk-CFYWQJ7F.js.map +7 -0
  106. package/dist/chunk-CG2H6EFQ.js +55 -0
  107. package/dist/chunk-CNDQFKUB.js +468 -0
  108. package/dist/chunk-CVLHDO2O.js +2685 -0
  109. package/dist/chunk-CVRTDBLZ.js +2008 -0
  110. package/dist/chunk-CXCAQOFB.js +26888 -0
  111. package/dist/chunk-CXCAQOFB.js.map +7 -0
  112. package/dist/chunk-DMG4ZMX5.js +830 -0
  113. package/dist/chunk-DMG4ZMX5.js.map +7 -0
  114. package/dist/chunk-DYX6B6RN.js +328 -0
  115. package/dist/chunk-FA2B6PKK.js +42 -0
  116. package/dist/chunk-FA6M7PSZ.js +134 -0
  117. package/dist/chunk-FCQPQD7Z.js +181 -0
  118. package/dist/chunk-FCQPQD7Z.js.map +7 -0
  119. package/dist/chunk-FF4J6QSF.js +240 -0
  120. package/dist/chunk-FYHUHKUC.js +6375 -0
  121. package/dist/chunk-G3CJDTG4.js +48 -0
  122. package/dist/chunk-HRD5MN33.js +1219 -0
  123. package/dist/chunk-HRD5MN33.js.map +7 -0
  124. package/dist/chunk-ILAYJZBC.js +184 -0
  125. package/dist/chunk-IT7EE7LY.js +2334 -0
  126. package/dist/chunk-JG5CF5Q3.js +397 -0
  127. package/dist/chunk-JI632MAR.js +400 -0
  128. package/dist/chunk-JI632MAR.js.map +7 -0
  129. package/dist/chunk-L3ORR2TC.js +2799 -0
  130. package/dist/chunk-L6BT6WZP.js +54 -0
  131. package/dist/chunk-LF2DWEKN.js +255 -0
  132. package/dist/chunk-MJZ66SUG.js +35 -0
  133. package/dist/chunk-N5T7TT5H.js +56 -0
  134. package/dist/chunk-NB4C446B.js +299 -0
  135. package/dist/chunk-NJYYF2LF.js +263 -0
  136. package/dist/chunk-NMVEXITA.js +379 -0
  137. package/dist/chunk-NS2H3C6X.js +182 -0
  138. package/dist/chunk-O7346S3P.js +1253 -0
  139. package/dist/chunk-OV3W5AMN.js +103 -0
  140. package/dist/chunk-PQDYA3ZQ.js +274 -0
  141. package/dist/chunk-QFRR3ZRE.js +466 -0
  142. package/dist/chunk-QLKEA3WE.js +102 -0
  143. package/dist/chunk-QM7CXRSF.js +96 -0
  144. package/dist/chunk-QV6VZLS5.js +2932 -0
  145. package/dist/chunk-RTE32A22.js +123 -0
  146. package/dist/chunk-RUFY5VCS.js +161 -0
  147. package/dist/chunk-RUFY5VCS.js.map +7 -0
  148. package/dist/chunk-SB5DR4NL.js +562 -0
  149. package/dist/chunk-SCATA75L.js +100 -0
  150. package/dist/chunk-SCATA75L.js.map +7 -0
  151. package/dist/chunk-SDUMZTIK.js +2095 -0
  152. package/dist/chunk-TIU2GGWN.js +5258 -0
  153. package/dist/chunk-TIU2GGWN.js.map +7 -0
  154. package/dist/chunk-TYLCIGGN.js +296 -0
  155. package/dist/chunk-UHZDDPUU.js +444 -0
  156. package/dist/chunk-UW6GRHZ4.js +516 -0
  157. package/dist/chunk-UYA5LCAR.js +281 -0
  158. package/dist/chunk-V7CB5D7A.js +50 -0
  159. package/dist/chunk-VBUDRJJG.js +203 -0
  160. package/dist/chunk-VVWZ4BOI.js +2349 -0
  161. package/dist/chunk-W3K3N275.js +418 -0
  162. package/dist/chunk-WENNRY5E.js +170 -0
  163. package/dist/chunk-Z4R7TCTB.js +257 -0
  164. package/dist/chunk-ZFNEHOW4.js +848 -0
  165. package/dist/chunk-ZLEGHQOO.js +217 -0
  166. package/dist/cohort-TLSGXKV5.js +66 -0
  167. package/dist/cohortSunburst-TNMXPHJW.js +402 -0
  168. package/dist/condition-NN7YK7AI.js +323 -0
  169. package/dist/controls-472G34VU.js +30 -0
  170. package/dist/controls.config-2BQ7QYOB.js +30 -0
  171. package/dist/correlation-5UPYEHC6.js +91 -0
  172. package/dist/customdata.inputui-EWYP4MRY.js +280 -0
  173. package/dist/dataDownload-X5UXBEK4.js +326 -0
  174. package/dist/databrowser.ui-PFHJKHIW.js +424 -0
  175. package/dist/dictionary-M2MCNRN2.js +109 -0
  176. package/dist/dnaMethylation-A7AWG2P5.js +29 -0
  177. package/dist/dnaMethylation.integration.spec-JWCMRFAM.js +194 -0
  178. package/dist/dnaMethylation.unit.spec-PIVJBW7Z.js +95 -0
  179. package/dist/dofetch-XID2XEJT.js +49 -0
  180. package/dist/e2pca-VJRNE6BU.js +340 -0
  181. package/dist/ep-BZE65IX2.js +1247 -0
  182. package/dist/expclust.gdc.spec-5BGBANUV.js +298 -0
  183. package/dist/facet-RXUO4LRY.js +556 -0
  184. package/dist/gb-NDRFDS5A.js +77 -0
  185. package/dist/geneExpClustering-ONJGTSGM.js +240 -0
  186. package/dist/geneExpression-NXDXXKEA.js +309 -0
  187. package/dist/geneExpression-PYI42HV6.js +29 -0
  188. package/dist/geneExpression.unit.spec-PTFHHTP7.js +150 -0
  189. package/dist/geneORA-SDR43UOL.js +269 -0
  190. package/dist/geneRanking-QI43IRNV.js +544 -0
  191. package/dist/geneVariant-OT4V554H.js +32 -0
  192. package/dist/geneVariant-V7EKM7RW.js +289 -0
  193. package/dist/geneVariant-V7EKM7RW.js.map +7 -0
  194. package/dist/geneVariant.integration.spec-6OE4HKYB.js +672 -0
  195. package/dist/genefusion.ui-IQDKCZPX.js +299 -0
  196. package/dist/geneset-TLZPZOQP.js +199 -0
  197. package/dist/genomeBrowser.spec-HIOTFKFK.js +272 -0
  198. package/dist/grin2-G2PVFRKR.js +945 -0
  199. package/dist/grin2-RJQZRVFF.js +66 -0
  200. package/dist/hierCluster-C6ICZSOB.js +51 -0
  201. package/dist/hierCluster-MESFVAO7.js +55 -0
  202. package/dist/hierCluster.config-7HROWR2T.js +32 -0
  203. package/dist/hierCluster.integration.spec-CJT22MJI.js +479 -0
  204. package/dist/hierCluster.interactivity-MDX5QSEF.js +45 -0
  205. package/dist/hierCluster.renderers-SU5IYI33.js +18 -0
  206. package/dist/imagePlot-3Y5FNIJL.js +152 -0
  207. package/dist/importPlot-WE5QSSFY.js +8 -0
  208. package/dist/isoformExpression-TMLFOZVK.js +31 -0
  209. package/dist/isoformExpression.unit.spec-MSVTQC3E.js +233 -0
  210. package/dist/junction-YKZV4LEL.js +32 -0
  211. package/dist/junction.unit.spec-3GPBCHXJ.js +224 -0
  212. package/dist/junction.unit.spec-3GPBCHXJ.js.map +7 -0
  213. package/dist/launch.adhoc-DS6UME2S.js +33 -0
  214. package/dist/leftlabel.sample-F6TEFWEW.js +260 -0
  215. package/dist/leftlabel.sample-F6TEFWEW.js.map +7 -0
  216. package/dist/lollipop-ZKDAU3O5.js +162 -0
  217. package/dist/maf-DKOORWGV.js +451 -0
  218. package/dist/maftimeline-EHJ2CWJJ.js +583 -0
  219. package/dist/matrix-7JDLGNU7.js +55 -0
  220. package/dist/matrix-EB7YOLMN.js +50 -0
  221. package/dist/matrix.cells-A5E63KDN.js +25 -0
  222. package/dist/matrix.config-GSW2WJM4.js +33 -0
  223. package/dist/matrix.data-R4FW2PQH.js +22 -0
  224. package/dist/matrix.groups-3UH2KOIY.js +25 -0
  225. package/dist/matrix.integration.spec-R32TIABT.js +3156 -0
  226. package/dist/matrix.interactivity-RDPMBDVK.js +33 -0
  227. package/dist/matrix.layout-FD275D3P.js +35 -0
  228. package/dist/matrix.legend-SE7SQTNN.js +19 -0
  229. package/dist/matrix.renderers-RK2BRCHZ.js +30 -0
  230. package/dist/matrix.serieses-BEZCQDLJ.js +18 -0
  231. package/dist/matrix.sort-KRNS4VPF.js +25 -0
  232. package/dist/matrix.sort.unit.spec-LZG3GOXM.js +464 -0
  233. package/dist/matrix.sorterUi.unit.spec-RR2KK4R5.js +334 -0
  234. package/dist/matrix.unit.spec-3PK6LUNE.js +146 -0
  235. package/dist/mavb-CUPAESFH.js +726 -0
  236. package/dist/mds.samplescatterplot-WGQ7A7UC.js +1545 -0
  237. package/dist/mds.survivalplot-ZEGSEJO2.js +472 -0
  238. package/dist/multivalue-DKUQCROX.js +79 -0
  239. package/dist/numericDictTermCluster-IFIEM3E4.js +62 -0
  240. package/dist/oncomatrix-WSPJAWHW.js +286 -0
  241. package/dist/oncomatrix.spec-LDWTZ7LO.js +439 -0
  242. package/dist/plot.2dvaf-N333YSMC.js +368 -0
  243. package/dist/plot.app-HU5RQS5I.js +32 -0
  244. package/dist/plot.barplot-4T2UEIYX.js +93 -0
  245. package/dist/plot.boxplot-C4OXCRFB.js +142 -0
  246. package/dist/plot.brainImaging-A6FEKFEA.js +51 -0
  247. package/dist/plot.disco-VDL7YKRX.js +100 -0
  248. package/dist/plot.ssgq-OII7PFPG.js +130 -0
  249. package/dist/plot.vaf2cov-RZ5JPWMC.js +249 -0
  250. package/dist/polar2-6KR2KX5D.js +228 -0
  251. package/dist/profileForms-YJDJIBSY.js +937 -0
  252. package/dist/profilePlot-U4U4AYMO.js +45 -0
  253. package/dist/proteinView-F5QEDDWR.js +1346 -0
  254. package/dist/proteinView-F5QEDDWR.js.map +7 -0
  255. package/dist/proteomeCohortCompare-QCXKLAWG.js +866 -0
  256. package/dist/pseudbulk.unit.spec-3A2FWQZI.js +82 -0
  257. package/dist/pseudobulk-WB6NXFJ6.js +31 -0
  258. package/dist/qualitative-CQUBCCGT.js +34 -0
  259. package/dist/qualitative-QQ3CWFVP.js +241 -0
  260. package/dist/radar2-FNC67FNX.js +323 -0
  261. package/dist/radarFacility2-3X77B4WP.js +331 -0
  262. package/dist/render-G5NCZTMW.js +29 -0
  263. package/dist/report-CR645KQ4.js +213 -0
  264. package/dist/sampleView-6PG2HJZL.js +39 -0
  265. package/dist/samplelst-FCQ7YPPQ.js +114 -0
  266. package/dist/samplematrix-GXMN5QTS.js +2188 -0
  267. package/dist/sc-4ZTSQOXC.js +77 -0
  268. package/dist/scatter-2PUQU22I.js +84 -0
  269. package/dist/scatter-ZSZTA37T.js +919 -0
  270. package/dist/selectGenomeWithTklst-XHWBEM2G.js +125 -0
  271. package/dist/singleCellCellType-NP7Y4N6Z.js +29 -0
  272. package/dist/singleCellCellType.unit.spec-5I3FECB4.js +150 -0
  273. package/dist/singleCellGeneExpression-7RWH633E.js +29 -0
  274. package/dist/singleCellGeneExpression.unit.spec-2X2BDTNO.js +144 -0
  275. package/dist/singleCellNumericValue-I6V4ME6T.js +29 -0
  276. package/dist/singleCellNumericValue.unit.spec-4HKAJXB3.js +412 -0
  277. package/dist/singleCellPlot-QRFR3AJH.js +44 -0
  278. package/dist/singlecell-AQEAB445.js +77 -0
  279. package/dist/singlecell-DX4EXNUV.js +1562 -0
  280. package/dist/snp-2URSYPBL.js +29 -0
  281. package/dist/snp.unit.spec-ZV2RCDT4.js +167 -0
  282. package/dist/snplocus-BB4I2QIP.js +200 -0
  283. package/dist/snplst-A5S7CQEM.js +36 -0
  284. package/dist/spliceevent.a53ss.diagram-6C4OQOVF.js +142 -0
  285. package/dist/spliceevent.exonskip.diagram-FKSR3JEL.js +274 -0
  286. package/dist/spliceevent.noeventdiagram-G3JQUZKK.js +451 -0
  287. package/dist/ssGSEA-KLMOSI53.js +29 -0
  288. package/dist/ssGSEA.unit.spec-HBALWLVB.js +79 -0
  289. package/dist/stattable-ZCMPIC3I.js +112 -0
  290. package/dist/studyCatalog-UZ4BSYY6.js +457 -0
  291. package/dist/summarizeCnvGeneexp-Z43GYKZB.js +154 -0
  292. package/dist/summarizeGeneexpSurvival-4OHRMCFV.js +101 -0
  293. package/dist/summarizeMutationCnv-EZXMLADC.js +155 -0
  294. package/dist/summarizeMutationDiagnosis-RPQP4TM5.js +31 -0
  295. package/dist/summarizeMutationSurvival-LX4TRGJZ.js +95 -0
  296. package/dist/summary-FZQVK5KR.js +40 -0
  297. package/dist/summary.integration.spec-46T65LR5.js +405 -0
  298. package/dist/summaryInput-BHU7G5FC.js +238 -0
  299. package/dist/sunburst-A5NS3KJQ.js +274 -0
  300. package/dist/sunburst-R5X2C7FK.js +34 -0
  301. package/dist/survival-MKW5J5ZH.js +1248 -0
  302. package/dist/survival-N2NKMVOV.js +49 -0
  303. package/dist/survival.integration.spec-K5FMOOTF.js +609 -0
  304. package/dist/svgraph-3WRCJA5D.js +1377 -0
  305. package/dist/svmr-TLMT7GE3.js +3574 -0
  306. package/dist/svmr-TLMT7GE3.js.map +7 -0
  307. package/dist/swimmer-XV5KVWEM.js +993 -0
  308. package/dist/table-XUGFZSGV.js +192 -0
  309. package/dist/termCollection-23ZRHZHF.js +247 -0
  310. package/dist/termCollection-NWTAUSSW.js +29 -0
  311. package/dist/termCollection.unit.spec-WE3JMSUI.js +295 -0
  312. package/dist/termCollectionFractionSelection-5FLFLMIY.js +38 -0
  313. package/dist/termCollectionFractionSelection.unit.spec-CCFGGXAA.js +184 -0
  314. package/dist/tk-CTHINOMN.js +1224 -0
  315. package/dist/tk-CTHINOMN.js.map +7 -0
  316. package/dist/tk-F3TSB4IB.js +38 -0
  317. package/dist/tp.ui-4QDX3FGM.js +1453 -0
  318. package/dist/tvs.categorical-24OT3XZI.js +28 -0
  319. package/dist/tvs.condition-X4SXCVGN.js +160 -0
  320. package/dist/tvs.dt-FRBJRSWI.js +34 -0
  321. package/dist/tvs.dtcnv.categorical-4RRSO735.js +31 -0
  322. package/dist/tvs.dtcnv.continuous-HXY2PBUA.js +72 -0
  323. package/dist/tvs.dtfusion-67LXBQA4.js +31 -0
  324. package/dist/tvs.dtitd-MCJZCNV2.js +31 -0
  325. package/dist/tvs.dtsnvindel-K5YIIBQJ.js +31 -0
  326. package/dist/tvs.dtsv-RP7FUB2N.js +31 -0
  327. package/dist/tvs.multivalue-CROMWUCP.js +84 -0
  328. package/dist/tvs.numeric-IYYYV6ZJ.js +32 -0
  329. package/dist/tvs.samplelst-5DXKRFYM.js +95 -0
  330. package/dist/tvs.survival-W5RXODBT.js +110 -0
  331. package/dist/tvs.termCollection-OSJYIWDX.js +118 -0
  332. package/dist/vocabulary-HTRYJUD7.js +32 -0
  333. package/dist/wsi.direct-UHVG525G.js +11600 -0
  334. package/dist/wsi.direct-UHVG525G.js.map +7 -0
  335. package/package.json +3 -3
  336. package/dist/2dmaf-CSBPMYHO.js +0 -1362
  337. package/dist/AggMatrixInput-2HST4LLJ.js +0 -402
  338. package/dist/AggregateMatrix-UPOAX44L.js +0 -37
  339. package/dist/AppHeader-H5QBVKUS.js +0 -826
  340. package/dist/BoxPlot-JTBQA6PL.js +0 -1247
  341. package/dist/CorrelationVolcano-AWBPVDMT.js +0 -613
  342. package/dist/CorrelationVolcano-AWBPVDMT.js.map +0 -7
  343. package/dist/Cuminc-3BXJVWIH.js +0 -1217
  344. package/dist/DE-237VV46D.js +0 -85
  345. package/dist/DEinput-W443UW5T.js +0 -479
  346. package/dist/DEinput-W443UW5T.js.map +0 -7
  347. package/dist/DM-TIW623IR.js +0 -86
  348. package/dist/DifferentialAnalysis-PHUA2GPK.js +0 -236
  349. package/dist/Disco-WHV52SCI.js +0 -3445
  350. package/dist/Disco.UI-UDUXNCZX.js +0 -239
  351. package/dist/DmrPlot-FZCD6FTX.js +0 -366
  352. package/dist/GB-6UW5LOUV.js +0 -1388
  353. package/dist/GB-6UW5LOUV.js.map +0 -7
  354. package/dist/GSEA-3CNHMK6M.js +0 -870
  355. package/dist/GeneExpInput-ZOVP7BFY.js +0 -38
  356. package/dist/Geomap-JREOIESM.js +0 -80
  357. package/dist/HicApp-RKAMIUXQ.js +0 -2240
  358. package/dist/IDCViewer-KXV4FU3V.js +0 -10810
  359. package/dist/NumBinaryEditor-FNVYUK2J.js +0 -274
  360. package/dist/NumBinaryEditor.unit.spec-PWR23U3J.js +0 -308
  361. package/dist/NumContEditor-YLBJW64K.js +0 -100
  362. package/dist/NumContEditor.unit.spec-6JWBCPFY.js +0 -160
  363. package/dist/NumCustomBinEditor-42AFCXRN.js +0 -29
  364. package/dist/NumCustomBinEditor.unit.spec-AFBTF2CL.js +0 -393
  365. package/dist/NumDiscreteEditor-FJIBZTBP.js +0 -165
  366. package/dist/NumDiscreteEditor.unit.spec-MC4INDCB.js +0 -229
  367. package/dist/NumRegularBinEditor-2WRE72TL.js +0 -29
  368. package/dist/NumRegularBinEditor.unit.spec-L3S6NRCM.js +0 -274
  369. package/dist/NumSplineEditor-TVMVAN7I.js +0 -205
  370. package/dist/NumSplineEditor.unit.spec-GEL36GZZ.js +0 -220
  371. package/dist/NumericDensity-BNFAVOFO.js +0 -29
  372. package/dist/NumericDensity.unit.spec-XBYUFBTQ.js +0 -414
  373. package/dist/NumericHandler-4VFFJNX6.js +0 -30
  374. package/dist/NumericHandler.unit.spec-76T2IVRS.js +0 -225
  375. package/dist/ProteomeInput-M5UIO73Q.js +0 -610
  376. package/dist/Regression-5LB5TLA6.js +0 -1412
  377. package/dist/RunChart2-HIFXOEKZ.js +0 -744
  378. package/dist/SC-SMMW5MJG.js +0 -1290
  379. package/dist/Violin-COAFYZOV.js +0 -1105
  380. package/dist/Volcano-62II76B4.js +0 -2748
  381. package/dist/Volcano-62II76B4.js.map +0 -7
  382. package/dist/Wsi-OYW2L7FR.js +0 -637
  383. package/dist/Wsi-OYW2L7FR.js.map +0 -7
  384. package/dist/aboutSunburst-3FYJGR6B.js +0 -93
  385. package/dist/adSandbox-4VHYWBQC.js +0 -29
  386. package/dist/animatedBubbleChart-QCCIC5IT.js +0 -542
  387. package/dist/app-IF7YPCGZ.js +0 -28
  388. package/dist/app-JZ43TSJP.js +0 -38
  389. package/dist/bam-2VPZGSW3.js +0 -872
  390. package/dist/barchart-VYTWYYGG.js +0 -38
  391. package/dist/barchart2-XC7J4VEO.js +0 -305
  392. package/dist/block-YGQFUK5L.js +0 -6203
  393. package/dist/block-YGQFUK5L.js.map +0 -7
  394. package/dist/block.init-BVP3YZHQ.js +0 -29
  395. package/dist/block.mds.expressionrank-RKDDKY4J.js +0 -350
  396. package/dist/block.mds.geneboxplot-3FZ3EZZ6.js +0 -819
  397. package/dist/block.mds.junction-MCOG37RA.js +0 -1534
  398. package/dist/block.mds.svcnv-IEOR5IQZ.js +0 -6325
  399. package/dist/block.svg-3XHRHYCV.js +0 -155
  400. package/dist/block.tk.aicheck-TMDUGNZX.js +0 -274
  401. package/dist/block.tk.bam-73KW4QEJ.js +0 -1906
  402. package/dist/block.tk.bigwig.ui-E5W6R7DQ.js +0 -202
  403. package/dist/block.tk.hicstraw-BNNE6ZMW.js +0 -814
  404. package/dist/block.tk.junction-DMPRZRNY.js +0 -2353
  405. package/dist/block.tk.junction.textmatrixui-XS2E7MQL.js +0 -190
  406. package/dist/block.tk.ld-QD3XDLO4.js +0 -90
  407. package/dist/block.tk.menu-S6XI732E.js +0 -1050
  408. package/dist/block.tk.pgv-KH4TMR3A.js +0 -934
  409. package/dist/brainImaging-NK4JENN3.js +0 -550
  410. package/dist/brainRegions-YUEMTKYH.js +0 -213
  411. package/dist/bubbleHeatmap-LQCVS4WK.js +0 -374
  412. package/dist/bubbleHeatmap-LQCVS4WK.js.map +0 -7
  413. package/dist/cellTypeBubbleHeatmap-DFRSPWAY.js +0 -274
  414. package/dist/cellTypeBubbleHeatmap-DFRSPWAY.js.map +0 -7
  415. package/dist/chunk-37ZEGLVY.js +0 -267
  416. package/dist/chunk-3RPX4ZVV.js +0 -2334
  417. package/dist/chunk-4LK5YFHF.js +0 -102
  418. package/dist/chunk-4WFG5Y3A.js +0 -2095
  419. package/dist/chunk-4WFXCUT4.js +0 -141
  420. package/dist/chunk-5LY2ASQX.js +0 -305
  421. package/dist/chunk-6V7ITU5F.js +0 -2349
  422. package/dist/chunk-7UK7CU4F.js +0 -398
  423. package/dist/chunk-7UK7CU4F.js.map +0 -7
  424. package/dist/chunk-AAQDXVQT.js +0 -134
  425. package/dist/chunk-ADJBQCFM.js +0 -243
  426. package/dist/chunk-ATIITEOR.js +0 -692
  427. package/dist/chunk-ATIITEOR.js.map +0 -7
  428. package/dist/chunk-BWVJAFEQ.js +0 -35
  429. package/dist/chunk-CDCNBN6G.js +0 -50
  430. package/dist/chunk-CGSBIFFO.js +0 -1339
  431. package/dist/chunk-DPWSIN62.js +0 -26787
  432. package/dist/chunk-DPWSIN62.js.map +0 -7
  433. package/dist/chunk-EARMOT6Q.js +0 -176
  434. package/dist/chunk-EARMOT6Q.js.map +0 -7
  435. package/dist/chunk-ECCXTB5S.js +0 -562
  436. package/dist/chunk-ECTOEM7X.js +0 -96
  437. package/dist/chunk-EKIWZUEO.js +0 -54
  438. package/dist/chunk-FALP6GXG.js +0 -96
  439. package/dist/chunk-FRD6LQF7.js +0 -103
  440. package/dist/chunk-FRPYXYYQ.js +0 -263
  441. package/dist/chunk-FV2GLMSI.js +0 -397
  442. package/dist/chunk-G6SP5IQT.js +0 -626
  443. package/dist/chunk-GZL6YFZJ.js +0 -30
  444. package/dist/chunk-H353EVLK.js +0 -240
  445. package/dist/chunk-HKR5R5YR.js +0 -466
  446. package/dist/chunk-HULTLO4D.js +0 -217
  447. package/dist/chunk-IIN4CG67.js +0 -56
  448. package/dist/chunk-ISWFHYEZ.js +0 -123
  449. package/dist/chunk-JBUTLI3V.js +0 -1253
  450. package/dist/chunk-JCNZJKLK.js +0 -55
  451. package/dist/chunk-JEVDRC64.js +0 -56
  452. package/dist/chunk-KBZAB2H2.js +0 -340
  453. package/dist/chunk-KDKJLITX.js +0 -54
  454. package/dist/chunk-KNFJN6CM.js +0 -299
  455. package/dist/chunk-KSYGLBZ4.js +0 -4389
  456. package/dist/chunk-KSYGLBZ4.js.map +0 -7
  457. package/dist/chunk-KUOXZIH4.js +0 -348
  458. package/dist/chunk-KZ54E2FU.js +0 -184
  459. package/dist/chunk-L7FMBWWK.js +0 -6375
  460. package/dist/chunk-LMONIWPI.js +0 -30
  461. package/dist/chunk-LTY7WOAT.js +0 -281
  462. package/dist/chunk-LYDN734A.js +0 -194
  463. package/dist/chunk-LYMYO6TY.js +0 -652
  464. package/dist/chunk-LYMYO6TY.js.map +0 -7
  465. package/dist/chunk-MRZUZDRA.js +0 -444
  466. package/dist/chunk-NGBI4FST.js +0 -195
  467. package/dist/chunk-OKM4ACTA.js +0 -170
  468. package/dist/chunk-OUDHHMZU.js +0 -159
  469. package/dist/chunk-OUDHHMZU.js.map +0 -7
  470. package/dist/chunk-OYXRYWGU.js +0 -2932
  471. package/dist/chunk-P2HMCEMM.js +0 -5254
  472. package/dist/chunk-P2HMCEMM.js.map +0 -7
  473. package/dist/chunk-P5FHYGJK.js +0 -848
  474. package/dist/chunk-P7QDNXSH.js +0 -276
  475. package/dist/chunk-Q7GK35TB.js +0 -257
  476. package/dist/chunk-QXRM5NMW.js +0 -274
  477. package/dist/chunk-RI3GAHQE.js +0 -255
  478. package/dist/chunk-SH7SL4I5.js +0 -1219
  479. package/dist/chunk-SH7SL4I5.js.map +0 -7
  480. package/dist/chunk-SJHWZZ4M.js +0 -70
  481. package/dist/chunk-SJHWZZ4M.js.map +0 -7
  482. package/dist/chunk-T2W4JHWJ.js +0 -472
  483. package/dist/chunk-T2W4JHWJ.js.map +0 -7
  484. package/dist/chunk-TDBS3UFZ.js +0 -379
  485. package/dist/chunk-THHYPA5K.js +0 -48
  486. package/dist/chunk-U2OB3S3M.js +0 -14
  487. package/dist/chunk-UA2ADBTO.js +0 -42
  488. package/dist/chunk-USGUVW5Q.js +0 -182
  489. package/dist/chunk-UWVDD4C2.js +0 -480
  490. package/dist/chunk-W2SBSEKT.js +0 -550
  491. package/dist/chunk-XAHZYGKW.js +0 -468
  492. package/dist/chunk-XKWLP433.js +0 -328
  493. package/dist/chunk-YWB2QHV2.js +0 -2799
  494. package/dist/chunk-Z6M77JDG.js +0 -2008
  495. package/dist/chunk-Z7RFFJXU.js +0 -516
  496. package/dist/chunk-ZG7EBTHK.js +0 -203
  497. package/dist/chunk-ZJLJHQWM.js +0 -418
  498. package/dist/chunk-ZKU6RST3.js +0 -2685
  499. package/dist/chunk-ZLWEUYPT.js +0 -296
  500. package/dist/cohort-X327AG3O.js +0 -66
  501. package/dist/cohortSunburst-GNWIVDNA.js +0 -402
  502. package/dist/condition-3M4L2HIM.js +0 -323
  503. package/dist/controls-OKNHZJOU.js +0 -30
  504. package/dist/controls.config-FUKM5LEP.js +0 -30
  505. package/dist/correlation-PC4MXCFM.js +0 -91
  506. package/dist/customdata.inputui-HCRTX56R.js +0 -280
  507. package/dist/dataDownload-HJO7UW7S.js +0 -326
  508. package/dist/databrowser.ui-EY3H6B4S.js +0 -424
  509. package/dist/dictionary-L6CTMFY7.js +0 -109
  510. package/dist/dnaMethylation-FEB5GGXK.js +0 -29
  511. package/dist/dnaMethylation.integration.spec-4DC6TJNZ.js +0 -194
  512. package/dist/dnaMethylation.unit.spec-REOHQOBC.js +0 -95
  513. package/dist/dofetch-YFGOKCKV.js +0 -49
  514. package/dist/e2pca-QSAVTCPL.js +0 -340
  515. package/dist/ep-LAFLKVSW.js +0 -1247
  516. package/dist/expclust.gdc.spec-OM4J6WBL.js +0 -298
  517. package/dist/facet-WHTV2VIX.js +0 -556
  518. package/dist/gb-DLXWWBB6.js +0 -77
  519. package/dist/geneExpClustering-KB2MB2VM.js +0 -240
  520. package/dist/geneExpression-3D7PDZ2I.js +0 -309
  521. package/dist/geneExpression-3RSRGYGQ.js +0 -29
  522. package/dist/geneExpression.unit.spec-EINAWLPR.js +0 -150
  523. package/dist/geneORA-J4KVSZT3.js +0 -269
  524. package/dist/geneRanking-HKLJ7CN6.js +0 -544
  525. package/dist/geneVariant-3BRGRFPT.js +0 -32
  526. package/dist/geneVariant-VI5DGDAB.js +0 -289
  527. package/dist/geneVariant-VI5DGDAB.js.map +0 -7
  528. package/dist/geneVariant.integration.spec-3IBX4NNE.js +0 -672
  529. package/dist/genefusion.ui-OESQL7TW.js +0 -299
  530. package/dist/geneset-3BMV3KP4.js +0 -199
  531. package/dist/genomeBrowser.spec-I3WKAITC.js +0 -272
  532. package/dist/grin2-4BBCH3H5.js +0 -66
  533. package/dist/grin2-5L2U32LY.js +0 -945
  534. package/dist/hierCluster-KM56NTN6.js +0 -51
  535. package/dist/hierCluster-XCJF5IQ6.js +0 -55
  536. package/dist/hierCluster.config-E2EYOXX6.js +0 -32
  537. package/dist/hierCluster.integration.spec-IIEJ2YEI.js +0 -479
  538. package/dist/hierCluster.interactivity-AJFEJTGX.js +0 -45
  539. package/dist/hierCluster.renderers-XKI344FM.js +0 -18
  540. package/dist/imagePlot-3B3BXI6I.js +0 -152
  541. package/dist/importPlot-JDVH7Q2Z.js +0 -8
  542. package/dist/isoformExpression-UFHY5LB2.js +0 -31
  543. package/dist/isoformExpression.unit.spec-U6GDCNQR.js +0 -233
  544. package/dist/junction-W2STW5WW.js +0 -32
  545. package/dist/junction.unit.spec-R4DIBFLB.js +0 -178
  546. package/dist/junction.unit.spec-R4DIBFLB.js.map +0 -7
  547. package/dist/launch.adhoc-KN7HFHJH.js +0 -33
  548. package/dist/leftlabel.sample-CK2EK7J6.js +0 -254
  549. package/dist/leftlabel.sample-CK2EK7J6.js.map +0 -7
  550. package/dist/lollipop-EKIGAAK6.js +0 -162
  551. package/dist/maf-MK2MM7J4.js +0 -451
  552. package/dist/maftimeline-7RTMXWFA.js +0 -583
  553. package/dist/matrix-UM2EZODJ.js +0 -50
  554. package/dist/matrix-YBL4FZYJ.js +0 -55
  555. package/dist/matrix.cells-45ZFADK5.js +0 -25
  556. package/dist/matrix.config-QTBIRXKU.js +0 -33
  557. package/dist/matrix.data-WAMOLSKW.js +0 -22
  558. package/dist/matrix.groups-RXFXZABD.js +0 -25
  559. package/dist/matrix.integration.spec-JZDZRVOK.js +0 -3156
  560. package/dist/matrix.interactivity-P4VYGTB2.js +0 -33
  561. package/dist/matrix.layout-WWPRXXHX.js +0 -35
  562. package/dist/matrix.legend-4MCMVVKO.js +0 -19
  563. package/dist/matrix.renderers-JQTUODDS.js +0 -30
  564. package/dist/matrix.serieses-3IDRKSGO.js +0 -18
  565. package/dist/matrix.sort-EAWOB56R.js +0 -25
  566. package/dist/matrix.sort.unit.spec-FOWLULHA.js +0 -464
  567. package/dist/matrix.sorterUi.unit.spec-U5CQDTMX.js +0 -334
  568. package/dist/matrix.unit.spec-VTLD4EOZ.js +0 -146
  569. package/dist/mavb-JIIXJHBK.js +0 -726
  570. package/dist/mds.samplescatterplot-PTWA2V6E.js +0 -1545
  571. package/dist/mds.survivalplot-XVZ66GP5.js +0 -472
  572. package/dist/multivalue-2H7QX7MG.js +0 -79
  573. package/dist/numericDictTermCluster-EHCDRT6J.js +0 -62
  574. package/dist/oncomatrix-RZLZUC32.js +0 -286
  575. package/dist/oncomatrix.spec-Z5UQGTW2.js +0 -439
  576. package/dist/plot.2dvaf-IRBZBJ6B.js +0 -368
  577. package/dist/plot.app-I23IAZ3Z.js +0 -32
  578. package/dist/plot.barplot-PYLRAZB7.js +0 -93
  579. package/dist/plot.boxplot-VBWU7DUG.js +0 -142
  580. package/dist/plot.brainImaging-HDJMEMTK.js +0 -51
  581. package/dist/plot.disco-5BVG3WMT.js +0 -100
  582. package/dist/plot.ssgq-S3BKXJMW.js +0 -130
  583. package/dist/plot.vaf2cov-VD7DU2XR.js +0 -249
  584. package/dist/polar2-PYLEVG7E.js +0 -228
  585. package/dist/profileForms-CI2YYD3Y.js +0 -937
  586. package/dist/profilePlot-UCC4ZVHQ.js +0 -45
  587. package/dist/proteinView-FBY6TK3S.js +0 -1346
  588. package/dist/proteinView-FBY6TK3S.js.map +0 -7
  589. package/dist/proteomeCohortCompare-2VUSLC6I.js +0 -866
  590. package/dist/pseudbulk.unit.spec-VPZWNTIA.js +0 -82
  591. package/dist/pseudobulk-RUXGZ7OY.js +0 -31
  592. package/dist/qualitative-3AVR4GRX.js +0 -34
  593. package/dist/qualitative-5QNBKDOZ.js +0 -241
  594. package/dist/radar2-AOYMS54Y.js +0 -323
  595. package/dist/radarFacility2-PP2MAXIP.js +0 -331
  596. package/dist/render-ASLVKYEX.js +0 -29
  597. package/dist/report-UVYKDMQC.js +0 -213
  598. package/dist/sampleView-6UHR7FSR.js +0 -39
  599. package/dist/samplelst-ABC2CCNN.js +0 -114
  600. package/dist/samplematrix-36UCHZLC.js +0 -2188
  601. package/dist/sc-XLSAM725.js +0 -77
  602. package/dist/scatter-ADOBAOW2.js +0 -84
  603. package/dist/scatter-ZNVLI627.js +0 -919
  604. package/dist/selectGenomeWithTklst-DPDBDYTR.js +0 -125
  605. package/dist/singleCellCellType-STVPYZD4.js +0 -29
  606. package/dist/singleCellCellType.unit.spec-ZLY37AXL.js +0 -150
  607. package/dist/singleCellGeneExpression-PCGLU35S.js +0 -29
  608. package/dist/singleCellGeneExpression.unit.spec-PSLKK362.js +0 -144
  609. package/dist/singleCellNumericValue-SR3SJEOB.js +0 -29
  610. package/dist/singleCellNumericValue.unit.spec-PXVXJ4HJ.js +0 -412
  611. package/dist/singleCellPlot-JXB7M6OH.js +0 -44
  612. package/dist/singlecell-EDSX56QO.js +0 -1562
  613. package/dist/singlecell-PH55NFRX.js +0 -77
  614. package/dist/snp-3VEYBTAQ.js +0 -29
  615. package/dist/snp.unit.spec-V7OB44US.js +0 -167
  616. package/dist/snplocus-HX67RBT5.js +0 -200
  617. package/dist/snplst-H5YXCY33.js +0 -36
  618. package/dist/spliceevent.a53ss.diagram-DBDEEHSK.js +0 -142
  619. package/dist/spliceevent.exonskip.diagram-EYEL6BY6.js +0 -274
  620. package/dist/spliceevent.noeventdiagram-64OEXK7U.js +0 -451
  621. package/dist/ssGSEA-3YWQH6KM.js +0 -29
  622. package/dist/ssGSEA.unit.spec-23V2IXP5.js +0 -79
  623. package/dist/stattable-GPSBCNYC.js +0 -112
  624. package/dist/studyCatalog-W5PATRNY.js +0 -457
  625. package/dist/summarizeCnvGeneexp-YGI23QH5.js +0 -154
  626. package/dist/summarizeGeneexpSurvival-KQ6OLWYR.js +0 -101
  627. package/dist/summarizeMutationCnv-XDHBNEPU.js +0 -155
  628. package/dist/summarizeMutationDiagnosis-VKIJRJ2Q.js +0 -31
  629. package/dist/summarizeMutationSurvival-57YKJGLE.js +0 -95
  630. package/dist/summary-4WQOVIUF.js +0 -40
  631. package/dist/summary.integration.spec-FRNWBU7F.js +0 -405
  632. package/dist/summaryInput-X7DS2YA7.js +0 -238
  633. package/dist/sunburst-3OEAQA3O.js +0 -34
  634. package/dist/sunburst-MSGTXYMM.js +0 -274
  635. package/dist/survival-5KC5CNZU.js +0 -1248
  636. package/dist/survival-QXDS6N46.js +0 -49
  637. package/dist/survival.integration.spec-PKENHLTZ.js +0 -609
  638. package/dist/svgraph-VJLB7BBN.js +0 -1377
  639. package/dist/svmr-6BDEZAS6.js +0 -3834
  640. package/dist/svmr-6BDEZAS6.js.map +0 -7
  641. package/dist/swimmer-R3DN7N36.js +0 -993
  642. package/dist/table-YF5VORU6.js +0 -192
  643. package/dist/termCollection-3KGLZFDW.js +0 -29
  644. package/dist/termCollection-KSHVOPS5.js +0 -247
  645. package/dist/termCollection.unit.spec-HTBDG5PL.js +0 -295
  646. package/dist/termCollectionFractionSelection-MK4NKWUX.js +0 -38
  647. package/dist/termCollectionFractionSelection.unit.spec-AMF32FDN.js +0 -184
  648. package/dist/tk-FDHBAKXQ.js +0 -1198
  649. package/dist/tk-FDHBAKXQ.js.map +0 -7
  650. package/dist/tk-Z54DOECH.js +0 -38
  651. package/dist/tp.ui-M4TZVT53.js +0 -1453
  652. package/dist/tvs.categorical-HY3BWCZR.js +0 -28
  653. package/dist/tvs.condition-Y36TRIX4.js +0 -160
  654. package/dist/tvs.dt-XKVJZP7Y.js +0 -34
  655. package/dist/tvs.dtcnv.categorical-OMRZR4Y7.js +0 -31
  656. package/dist/tvs.dtcnv.continuous-AGYOBI5K.js +0 -72
  657. package/dist/tvs.dtfusion-2JX5Y2IH.js +0 -31
  658. package/dist/tvs.dtitd-SDSLBBWC.js +0 -31
  659. package/dist/tvs.dtsnvindel-LI7K464K.js +0 -31
  660. package/dist/tvs.dtsv-VRCLX7QY.js +0 -31
  661. package/dist/tvs.multivalue-4OTY6J2S.js +0 -84
  662. package/dist/tvs.numeric-CDATYOR2.js +0 -32
  663. package/dist/tvs.samplelst-76JOJG2M.js +0 -95
  664. package/dist/tvs.survival-WTFJOKIZ.js +0 -110
  665. package/dist/tvs.termCollection-QQXAS7PE.js +0 -118
  666. package/dist/vocabulary-6ACAEFTL.js +0 -32
  667. package/dist/wsi.direct-OS32TQRM.js +0 -11515
  668. package/dist/wsi.direct-OS32TQRM.js.map +0 -7
  669. /package/dist/{2dmaf-CSBPMYHO.js.map → 2dmaf-75YAQQ3P.js.map} +0 -0
  670. /package/dist/{AggMatrixInput-2HST4LLJ.js.map → AggMatrixInput-KYDS23KP.js.map} +0 -0
  671. /package/dist/{AggregateMatrix-UPOAX44L.js.map → AggregateMatrix-XGGF6KBX.js.map} +0 -0
  672. /package/dist/{AppHeader-H5QBVKUS.js.map → AppHeader-CNY5RTJN.js.map} +0 -0
  673. /package/dist/{BoxPlot-JTBQA6PL.js.map → BoxPlot-OQIJJO66.js.map} +0 -0
  674. /package/dist/{Cuminc-3BXJVWIH.js.map → Cuminc-J6DONJTA.js.map} +0 -0
  675. /package/dist/{DE-237VV46D.js.map → DE-XUBJUUBB.js.map} +0 -0
  676. /package/dist/{DM-TIW623IR.js.map → DM-2UUXUJOC.js.map} +0 -0
  677. /package/dist/{DifferentialAnalysis-PHUA2GPK.js.map → DifferentialAnalysis-U6ZPFHNM.js.map} +0 -0
  678. /package/dist/{Disco-WHV52SCI.js.map → Disco-RR2NN66T.js.map} +0 -0
  679. /package/dist/{Disco.UI-UDUXNCZX.js.map → Disco.UI-MQ7WZQOP.js.map} +0 -0
  680. /package/dist/{DmrPlot-FZCD6FTX.js.map → DmrPlot-MKAKFUJR.js.map} +0 -0
  681. /package/dist/{GSEA-3CNHMK6M.js.map → GSEA-DTIA4MNS.js.map} +0 -0
  682. /package/dist/{GeneExpInput-ZOVP7BFY.js.map → GeneExpInput-4GM5MBBX.js.map} +0 -0
  683. /package/dist/{Geomap-JREOIESM.js.map → Geomap-FF6DBN7M.js.map} +0 -0
  684. /package/dist/{HicApp-RKAMIUXQ.js.map → HicApp-LGXNL36X.js.map} +0 -0
  685. /package/dist/{IDCViewer-KXV4FU3V.js.map → IDCViewer-FQABJNUI.js.map} +0 -0
  686. /package/dist/{NumBinaryEditor-FNVYUK2J.js.map → NumBinaryEditor-7NOHUH76.js.map} +0 -0
  687. /package/dist/{NumBinaryEditor.unit.spec-PWR23U3J.js.map → NumBinaryEditor.unit.spec-SVE5SZYB.js.map} +0 -0
  688. /package/dist/{NumContEditor-YLBJW64K.js.map → NumContEditor-MSWCQUKL.js.map} +0 -0
  689. /package/dist/{NumContEditor.unit.spec-6JWBCPFY.js.map → NumContEditor.unit.spec-UFPASWBH.js.map} +0 -0
  690. /package/dist/{NumCustomBinEditor-42AFCXRN.js.map → NumCustomBinEditor-DF24SO2N.js.map} +0 -0
  691. /package/dist/{NumCustomBinEditor.unit.spec-AFBTF2CL.js.map → NumCustomBinEditor.unit.spec-N3S3ROBI.js.map} +0 -0
  692. /package/dist/{NumDiscreteEditor-FJIBZTBP.js.map → NumDiscreteEditor-HL257XGY.js.map} +0 -0
  693. /package/dist/{NumDiscreteEditor.unit.spec-MC4INDCB.js.map → NumDiscreteEditor.unit.spec-6PTPX547.js.map} +0 -0
  694. /package/dist/{NumRegularBinEditor-2WRE72TL.js.map → NumRegularBinEditor-EWCKTXWY.js.map} +0 -0
  695. /package/dist/{NumRegularBinEditor.unit.spec-L3S6NRCM.js.map → NumRegularBinEditor.unit.spec-AMGPMY7U.js.map} +0 -0
  696. /package/dist/{NumSplineEditor-TVMVAN7I.js.map → NumSplineEditor-YDNJ2DW2.js.map} +0 -0
  697. /package/dist/{NumSplineEditor.unit.spec-GEL36GZZ.js.map → NumSplineEditor.unit.spec-L4JZ3OND.js.map} +0 -0
  698. /package/dist/{NumericDensity-BNFAVOFO.js.map → NumericDensity-SQW67WKL.js.map} +0 -0
  699. /package/dist/{NumericDensity.unit.spec-XBYUFBTQ.js.map → NumericDensity.unit.spec-KBK3JZZG.js.map} +0 -0
  700. /package/dist/{NumericHandler-4VFFJNX6.js.map → NumericHandler-HG7FK4D4.js.map} +0 -0
  701. /package/dist/{NumericHandler.unit.spec-76T2IVRS.js.map → NumericHandler.unit.spec-N7PYAGGF.js.map} +0 -0
  702. /package/dist/{ProteomeInput-M5UIO73Q.js.map → ProteomeInput-6XGREJFP.js.map} +0 -0
  703. /package/dist/{Regression-5LB5TLA6.js.map → Regression-4DDXNQNO.js.map} +0 -0
  704. /package/dist/{RunChart2-HIFXOEKZ.js.map → RunChart2-ARCUC4Z3.js.map} +0 -0
  705. /package/dist/{SC-SMMW5MJG.js.map → SC-AV6COOPI.js.map} +0 -0
  706. /package/dist/{Violin-COAFYZOV.js.map → Violin-2P5I6NL5.js.map} +0 -0
  707. /package/dist/{aboutSunburst-3FYJGR6B.js.map → aboutSunburst-V557OK5L.js.map} +0 -0
  708. /package/dist/{adSandbox-4VHYWBQC.js.map → adSandbox-76PMWKTX.js.map} +0 -0
  709. /package/dist/{animatedBubbleChart-QCCIC5IT.js.map → animatedBubbleChart-CFRJJDAC.js.map} +0 -0
  710. /package/dist/{app-IF7YPCGZ.js.map → app-2SUVPURX.js.map} +0 -0
  711. /package/dist/{app-JZ43TSJP.js.map → app-PR42RXHC.js.map} +0 -0
  712. /package/dist/{bam-2VPZGSW3.js.map → bam-AYHWKHXL.js.map} +0 -0
  713. /package/dist/{barchart-VYTWYYGG.js.map → barchart-S4CLMJO7.js.map} +0 -0
  714. /package/dist/{barchart2-XC7J4VEO.js.map → barchart2-R2BGA2WO.js.map} +0 -0
  715. /package/dist/{block.init-BVP3YZHQ.js.map → block.init-SSWOFFJR.js.map} +0 -0
  716. /package/dist/{block.mds.expressionrank-RKDDKY4J.js.map → block.mds.expressionrank-GJBLSUUM.js.map} +0 -0
  717. /package/dist/{block.mds.geneboxplot-3FZ3EZZ6.js.map → block.mds.geneboxplot-SAAU4OH5.js.map} +0 -0
  718. /package/dist/{block.mds.junction-MCOG37RA.js.map → block.mds.junction-IIZPRLPH.js.map} +0 -0
  719. /package/dist/{block.mds.svcnv-IEOR5IQZ.js.map → block.mds.svcnv-KOG7O25F.js.map} +0 -0
  720. /package/dist/{block.svg-3XHRHYCV.js.map → block.svg-5GJ744H3.js.map} +0 -0
  721. /package/dist/{block.tk.aicheck-TMDUGNZX.js.map → block.tk.aicheck-CTIJCHIC.js.map} +0 -0
  722. /package/dist/{block.tk.bam-73KW4QEJ.js.map → block.tk.bam-RTB7C6CW.js.map} +0 -0
  723. /package/dist/{block.tk.bigwig.ui-E5W6R7DQ.js.map → block.tk.bigwig.ui-OJVOCOWS.js.map} +0 -0
  724. /package/dist/{block.tk.hicstraw-BNNE6ZMW.js.map → block.tk.hicstraw-GUE6G2DA.js.map} +0 -0
  725. /package/dist/{block.tk.junction-DMPRZRNY.js.map → block.tk.junction-XILEKNJY.js.map} +0 -0
  726. /package/dist/{block.tk.junction.textmatrixui-XS2E7MQL.js.map → block.tk.junction.textmatrixui-OF6BW6OY.js.map} +0 -0
  727. /package/dist/{block.tk.ld-QD3XDLO4.js.map → block.tk.ld-QZVJUGZU.js.map} +0 -0
  728. /package/dist/{block.tk.menu-S6XI732E.js.map → block.tk.menu-B2NV6ZX3.js.map} +0 -0
  729. /package/dist/{block.tk.pgv-KH4TMR3A.js.map → block.tk.pgv-46OQHX7S.js.map} +0 -0
  730. /package/dist/{brainImaging-NK4JENN3.js.map → brainImaging-TWTGRSHJ.js.map} +0 -0
  731. /package/dist/{brainRegions-YUEMTKYH.js.map → brainRegions-YTTLJMBU.js.map} +0 -0
  732. /package/dist/{chunk-37ZEGLVY.js.map → chunk-255OQYGC.js.map} +0 -0
  733. /package/dist/{chunk-GZL6YFZJ.js.map → chunk-2B3CYHUF.js.map} +0 -0
  734. /package/dist/{chunk-CGSBIFFO.js.map → chunk-2BXMWQTJ.js.map} +0 -0
  735. /package/dist/{chunk-W2SBSEKT.js.map → chunk-2E3AJFOA.js.map} +0 -0
  736. /package/dist/{chunk-KUOXZIH4.js.map → chunk-2IAELUCN.js.map} +0 -0
  737. /package/dist/{chunk-NGBI4FST.js.map → chunk-2W6U53AG.js.map} +0 -0
  738. /package/dist/{chunk-FALP6GXG.js.map → chunk-3R6VYZYB.js.map} +0 -0
  739. /package/dist/{chunk-G6SP5IQT.js.map → chunk-3YAQY5NZ.js.map} +0 -0
  740. /package/dist/{chunk-5LY2ASQX.js.map → chunk-52WVSXYC.js.map} +0 -0
  741. /package/dist/{chunk-JEVDRC64.js.map → chunk-6CQ5ADIY.js.map} +0 -0
  742. /package/dist/{chunk-P7QDNXSH.js.map → chunk-6UHSGC6G.js.map} +0 -0
  743. /package/dist/{chunk-4WFXCUT4.js.map → chunk-7E37WMAX.js.map} +0 -0
  744. /package/dist/{chunk-LYDN734A.js.map → chunk-7EP77LOA.js.map} +0 -0
  745. /package/dist/{chunk-KDKJLITX.js.map → chunk-7LJ4LTD6.js.map} +0 -0
  746. /package/dist/{chunk-U2OB3S3M.js.map → chunk-7MEBMH77.js.map} +0 -0
  747. /package/dist/{chunk-LMONIWPI.js.map → chunk-7NVFEGCE.js.map} +0 -0
  748. /package/dist/{chunk-KBZAB2H2.js.map → chunk-A52K2E32.js.map} +0 -0
  749. /package/dist/{chunk-ADJBQCFM.js.map → chunk-A7UNLPQQ.js.map} +0 -0
  750. /package/dist/{chunk-UWVDD4C2.js.map → chunk-BH4KIOUQ.js.map} +0 -0
  751. /package/dist/{chunk-JCNZJKLK.js.map → chunk-CG2H6EFQ.js.map} +0 -0
  752. /package/dist/{chunk-XAHZYGKW.js.map → chunk-CNDQFKUB.js.map} +0 -0
  753. /package/dist/{chunk-ZKU6RST3.js.map → chunk-CVLHDO2O.js.map} +0 -0
  754. /package/dist/{chunk-Z6M77JDG.js.map → chunk-CVRTDBLZ.js.map} +0 -0
  755. /package/dist/{chunk-XKWLP433.js.map → chunk-DYX6B6RN.js.map} +0 -0
  756. /package/dist/{chunk-UA2ADBTO.js.map → chunk-FA2B6PKK.js.map} +0 -0
  757. /package/dist/{chunk-AAQDXVQT.js.map → chunk-FA6M7PSZ.js.map} +0 -0
  758. /package/dist/{chunk-H353EVLK.js.map → chunk-FF4J6QSF.js.map} +0 -0
  759. /package/dist/{chunk-L7FMBWWK.js.map → chunk-FYHUHKUC.js.map} +0 -0
  760. /package/dist/{chunk-THHYPA5K.js.map → chunk-G3CJDTG4.js.map} +0 -0
  761. /package/dist/{chunk-KZ54E2FU.js.map → chunk-ILAYJZBC.js.map} +0 -0
  762. /package/dist/{chunk-3RPX4ZVV.js.map → chunk-IT7EE7LY.js.map} +0 -0
  763. /package/dist/{chunk-FV2GLMSI.js.map → chunk-JG5CF5Q3.js.map} +0 -0
  764. /package/dist/{chunk-YWB2QHV2.js.map → chunk-L3ORR2TC.js.map} +0 -0
  765. /package/dist/{chunk-EKIWZUEO.js.map → chunk-L6BT6WZP.js.map} +0 -0
  766. /package/dist/{chunk-RI3GAHQE.js.map → chunk-LF2DWEKN.js.map} +0 -0
  767. /package/dist/{chunk-BWVJAFEQ.js.map → chunk-MJZ66SUG.js.map} +0 -0
  768. /package/dist/{chunk-IIN4CG67.js.map → chunk-N5T7TT5H.js.map} +0 -0
  769. /package/dist/{chunk-KNFJN6CM.js.map → chunk-NB4C446B.js.map} +0 -0
  770. /package/dist/{chunk-FRPYXYYQ.js.map → chunk-NJYYF2LF.js.map} +0 -0
  771. /package/dist/{chunk-TDBS3UFZ.js.map → chunk-NMVEXITA.js.map} +0 -0
  772. /package/dist/{chunk-USGUVW5Q.js.map → chunk-NS2H3C6X.js.map} +0 -0
  773. /package/dist/{chunk-JBUTLI3V.js.map → chunk-O7346S3P.js.map} +0 -0
  774. /package/dist/{chunk-FRD6LQF7.js.map → chunk-OV3W5AMN.js.map} +0 -0
  775. /package/dist/{chunk-QXRM5NMW.js.map → chunk-PQDYA3ZQ.js.map} +0 -0
  776. /package/dist/{chunk-HKR5R5YR.js.map → chunk-QFRR3ZRE.js.map} +0 -0
  777. /package/dist/{chunk-4LK5YFHF.js.map → chunk-QLKEA3WE.js.map} +0 -0
  778. /package/dist/{chunk-ECTOEM7X.js.map → chunk-QM7CXRSF.js.map} +0 -0
  779. /package/dist/{chunk-OYXRYWGU.js.map → chunk-QV6VZLS5.js.map} +0 -0
  780. /package/dist/{chunk-ISWFHYEZ.js.map → chunk-RTE32A22.js.map} +0 -0
  781. /package/dist/{chunk-ECCXTB5S.js.map → chunk-SB5DR4NL.js.map} +0 -0
  782. /package/dist/{chunk-4WFG5Y3A.js.map → chunk-SDUMZTIK.js.map} +0 -0
  783. /package/dist/{chunk-ZLWEUYPT.js.map → chunk-TYLCIGGN.js.map} +0 -0
  784. /package/dist/{chunk-MRZUZDRA.js.map → chunk-UHZDDPUU.js.map} +0 -0
  785. /package/dist/{chunk-Z7RFFJXU.js.map → chunk-UW6GRHZ4.js.map} +0 -0
  786. /package/dist/{chunk-LTY7WOAT.js.map → chunk-UYA5LCAR.js.map} +0 -0
  787. /package/dist/{chunk-CDCNBN6G.js.map → chunk-V7CB5D7A.js.map} +0 -0
  788. /package/dist/{chunk-ZG7EBTHK.js.map → chunk-VBUDRJJG.js.map} +0 -0
  789. /package/dist/{chunk-6V7ITU5F.js.map → chunk-VVWZ4BOI.js.map} +0 -0
  790. /package/dist/{chunk-ZJLJHQWM.js.map → chunk-W3K3N275.js.map} +0 -0
  791. /package/dist/{chunk-OKM4ACTA.js.map → chunk-WENNRY5E.js.map} +0 -0
  792. /package/dist/{chunk-Q7GK35TB.js.map → chunk-Z4R7TCTB.js.map} +0 -0
  793. /package/dist/{chunk-P5FHYGJK.js.map → chunk-ZFNEHOW4.js.map} +0 -0
  794. /package/dist/{chunk-HULTLO4D.js.map → chunk-ZLEGHQOO.js.map} +0 -0
  795. /package/dist/{cohort-X327AG3O.js.map → cohort-TLSGXKV5.js.map} +0 -0
  796. /package/dist/{cohortSunburst-GNWIVDNA.js.map → cohortSunburst-TNMXPHJW.js.map} +0 -0
  797. /package/dist/{condition-3M4L2HIM.js.map → condition-NN7YK7AI.js.map} +0 -0
  798. /package/dist/{controls-OKNHZJOU.js.map → controls-472G34VU.js.map} +0 -0
  799. /package/dist/{controls.config-FUKM5LEP.js.map → controls.config-2BQ7QYOB.js.map} +0 -0
  800. /package/dist/{correlation-PC4MXCFM.js.map → correlation-5UPYEHC6.js.map} +0 -0
  801. /package/dist/{customdata.inputui-HCRTX56R.js.map → customdata.inputui-EWYP4MRY.js.map} +0 -0
  802. /package/dist/{dataDownload-HJO7UW7S.js.map → dataDownload-X5UXBEK4.js.map} +0 -0
  803. /package/dist/{databrowser.ui-EY3H6B4S.js.map → databrowser.ui-PFHJKHIW.js.map} +0 -0
  804. /package/dist/{dictionary-L6CTMFY7.js.map → dictionary-M2MCNRN2.js.map} +0 -0
  805. /package/dist/{dnaMethylation-FEB5GGXK.js.map → dnaMethylation-A7AWG2P5.js.map} +0 -0
  806. /package/dist/{dnaMethylation.integration.spec-4DC6TJNZ.js.map → dnaMethylation.integration.spec-JWCMRFAM.js.map} +0 -0
  807. /package/dist/{dnaMethylation.unit.spec-REOHQOBC.js.map → dnaMethylation.unit.spec-PIVJBW7Z.js.map} +0 -0
  808. /package/dist/{dofetch-YFGOKCKV.js.map → dofetch-XID2XEJT.js.map} +0 -0
  809. /package/dist/{e2pca-QSAVTCPL.js.map → e2pca-VJRNE6BU.js.map} +0 -0
  810. /package/dist/{ep-LAFLKVSW.js.map → ep-BZE65IX2.js.map} +0 -0
  811. /package/dist/{expclust.gdc.spec-OM4J6WBL.js.map → expclust.gdc.spec-5BGBANUV.js.map} +0 -0
  812. /package/dist/{facet-WHTV2VIX.js.map → facet-RXUO4LRY.js.map} +0 -0
  813. /package/dist/{gb-DLXWWBB6.js.map → gb-NDRFDS5A.js.map} +0 -0
  814. /package/dist/{geneExpClustering-KB2MB2VM.js.map → geneExpClustering-ONJGTSGM.js.map} +0 -0
  815. /package/dist/{geneExpression-3D7PDZ2I.js.map → geneExpression-NXDXXKEA.js.map} +0 -0
  816. /package/dist/{geneExpression-3RSRGYGQ.js.map → geneExpression-PYI42HV6.js.map} +0 -0
  817. /package/dist/{geneExpression.unit.spec-EINAWLPR.js.map → geneExpression.unit.spec-PTFHHTP7.js.map} +0 -0
  818. /package/dist/{geneORA-J4KVSZT3.js.map → geneORA-SDR43UOL.js.map} +0 -0
  819. /package/dist/{geneRanking-HKLJ7CN6.js.map → geneRanking-QI43IRNV.js.map} +0 -0
  820. /package/dist/{geneVariant-3BRGRFPT.js.map → geneVariant-OT4V554H.js.map} +0 -0
  821. /package/dist/{geneVariant.integration.spec-3IBX4NNE.js.map → geneVariant.integration.spec-6OE4HKYB.js.map} +0 -0
  822. /package/dist/{genefusion.ui-OESQL7TW.js.map → genefusion.ui-IQDKCZPX.js.map} +0 -0
  823. /package/dist/{geneset-3BMV3KP4.js.map → geneset-TLZPZOQP.js.map} +0 -0
  824. /package/dist/{genomeBrowser.spec-I3WKAITC.js.map → genomeBrowser.spec-HIOTFKFK.js.map} +0 -0
  825. /package/dist/{grin2-5L2U32LY.js.map → grin2-G2PVFRKR.js.map} +0 -0
  826. /package/dist/{grin2-4BBCH3H5.js.map → grin2-RJQZRVFF.js.map} +0 -0
  827. /package/dist/{hierCluster-KM56NTN6.js.map → hierCluster-C6ICZSOB.js.map} +0 -0
  828. /package/dist/{hierCluster-XCJF5IQ6.js.map → hierCluster-MESFVAO7.js.map} +0 -0
  829. /package/dist/{hierCluster.config-E2EYOXX6.js.map → hierCluster.config-7HROWR2T.js.map} +0 -0
  830. /package/dist/{hierCluster.integration.spec-IIEJ2YEI.js.map → hierCluster.integration.spec-CJT22MJI.js.map} +0 -0
  831. /package/dist/{hierCluster.interactivity-AJFEJTGX.js.map → hierCluster.interactivity-MDX5QSEF.js.map} +0 -0
  832. /package/dist/{hierCluster.renderers-XKI344FM.js.map → hierCluster.renderers-SU5IYI33.js.map} +0 -0
  833. /package/dist/{imagePlot-3B3BXI6I.js.map → imagePlot-3Y5FNIJL.js.map} +0 -0
  834. /package/dist/{importPlot-JDVH7Q2Z.js.map → importPlot-WE5QSSFY.js.map} +0 -0
  835. /package/dist/{isoformExpression-UFHY5LB2.js.map → isoformExpression-TMLFOZVK.js.map} +0 -0
  836. /package/dist/{isoformExpression.unit.spec-U6GDCNQR.js.map → isoformExpression.unit.spec-MSVTQC3E.js.map} +0 -0
  837. /package/dist/{junction-W2STW5WW.js.map → junction-YKZV4LEL.js.map} +0 -0
  838. /package/dist/{launch.adhoc-KN7HFHJH.js.map → launch.adhoc-DS6UME2S.js.map} +0 -0
  839. /package/dist/{lollipop-EKIGAAK6.js.map → lollipop-ZKDAU3O5.js.map} +0 -0
  840. /package/dist/{maf-MK2MM7J4.js.map → maf-DKOORWGV.js.map} +0 -0
  841. /package/dist/{maftimeline-7RTMXWFA.js.map → maftimeline-EHJ2CWJJ.js.map} +0 -0
  842. /package/dist/{matrix-UM2EZODJ.js.map → matrix-7JDLGNU7.js.map} +0 -0
  843. /package/dist/{matrix-YBL4FZYJ.js.map → matrix-EB7YOLMN.js.map} +0 -0
  844. /package/dist/{matrix.cells-45ZFADK5.js.map → matrix.cells-A5E63KDN.js.map} +0 -0
  845. /package/dist/{matrix.config-QTBIRXKU.js.map → matrix.config-GSW2WJM4.js.map} +0 -0
  846. /package/dist/{matrix.data-WAMOLSKW.js.map → matrix.data-R4FW2PQH.js.map} +0 -0
  847. /package/dist/{matrix.groups-RXFXZABD.js.map → matrix.groups-3UH2KOIY.js.map} +0 -0
  848. /package/dist/{matrix.integration.spec-JZDZRVOK.js.map → matrix.integration.spec-R32TIABT.js.map} +0 -0
  849. /package/dist/{matrix.interactivity-P4VYGTB2.js.map → matrix.interactivity-RDPMBDVK.js.map} +0 -0
  850. /package/dist/{matrix.layout-WWPRXXHX.js.map → matrix.layout-FD275D3P.js.map} +0 -0
  851. /package/dist/{matrix.legend-4MCMVVKO.js.map → matrix.legend-SE7SQTNN.js.map} +0 -0
  852. /package/dist/{matrix.renderers-JQTUODDS.js.map → matrix.renderers-RK2BRCHZ.js.map} +0 -0
  853. /package/dist/{matrix.serieses-3IDRKSGO.js.map → matrix.serieses-BEZCQDLJ.js.map} +0 -0
  854. /package/dist/{matrix.sort-EAWOB56R.js.map → matrix.sort-KRNS4VPF.js.map} +0 -0
  855. /package/dist/{matrix.sort.unit.spec-FOWLULHA.js.map → matrix.sort.unit.spec-LZG3GOXM.js.map} +0 -0
  856. /package/dist/{matrix.sorterUi.unit.spec-U5CQDTMX.js.map → matrix.sorterUi.unit.spec-RR2KK4R5.js.map} +0 -0
  857. /package/dist/{matrix.unit.spec-VTLD4EOZ.js.map → matrix.unit.spec-3PK6LUNE.js.map} +0 -0
  858. /package/dist/{mavb-JIIXJHBK.js.map → mavb-CUPAESFH.js.map} +0 -0
  859. /package/dist/{mds.samplescatterplot-PTWA2V6E.js.map → mds.samplescatterplot-WGQ7A7UC.js.map} +0 -0
  860. /package/dist/{mds.survivalplot-XVZ66GP5.js.map → mds.survivalplot-ZEGSEJO2.js.map} +0 -0
  861. /package/dist/{multivalue-2H7QX7MG.js.map → multivalue-DKUQCROX.js.map} +0 -0
  862. /package/dist/{numericDictTermCluster-EHCDRT6J.js.map → numericDictTermCluster-IFIEM3E4.js.map} +0 -0
  863. /package/dist/{oncomatrix-RZLZUC32.js.map → oncomatrix-WSPJAWHW.js.map} +0 -0
  864. /package/dist/{oncomatrix.spec-Z5UQGTW2.js.map → oncomatrix.spec-LDWTZ7LO.js.map} +0 -0
  865. /package/dist/{plot.2dvaf-IRBZBJ6B.js.map → plot.2dvaf-N333YSMC.js.map} +0 -0
  866. /package/dist/{plot.app-I23IAZ3Z.js.map → plot.app-HU5RQS5I.js.map} +0 -0
  867. /package/dist/{plot.barplot-PYLRAZB7.js.map → plot.barplot-4T2UEIYX.js.map} +0 -0
  868. /package/dist/{plot.boxplot-VBWU7DUG.js.map → plot.boxplot-C4OXCRFB.js.map} +0 -0
  869. /package/dist/{plot.brainImaging-HDJMEMTK.js.map → plot.brainImaging-A6FEKFEA.js.map} +0 -0
  870. /package/dist/{plot.disco-5BVG3WMT.js.map → plot.disco-VDL7YKRX.js.map} +0 -0
  871. /package/dist/{plot.ssgq-S3BKXJMW.js.map → plot.ssgq-OII7PFPG.js.map} +0 -0
  872. /package/dist/{plot.vaf2cov-VD7DU2XR.js.map → plot.vaf2cov-RZ5JPWMC.js.map} +0 -0
  873. /package/dist/{polar2-PYLEVG7E.js.map → polar2-6KR2KX5D.js.map} +0 -0
  874. /package/dist/{profileForms-CI2YYD3Y.js.map → profileForms-YJDJIBSY.js.map} +0 -0
  875. /package/dist/{profilePlot-UCC4ZVHQ.js.map → profilePlot-U4U4AYMO.js.map} +0 -0
  876. /package/dist/{proteomeCohortCompare-2VUSLC6I.js.map → proteomeCohortCompare-QCXKLAWG.js.map} +0 -0
  877. /package/dist/{pseudbulk.unit.spec-VPZWNTIA.js.map → pseudbulk.unit.spec-3A2FWQZI.js.map} +0 -0
  878. /package/dist/{pseudobulk-RUXGZ7OY.js.map → pseudobulk-WB6NXFJ6.js.map} +0 -0
  879. /package/dist/{qualitative-3AVR4GRX.js.map → qualitative-CQUBCCGT.js.map} +0 -0
  880. /package/dist/{qualitative-5QNBKDOZ.js.map → qualitative-QQ3CWFVP.js.map} +0 -0
  881. /package/dist/{radar2-AOYMS54Y.js.map → radar2-FNC67FNX.js.map} +0 -0
  882. /package/dist/{radarFacility2-PP2MAXIP.js.map → radarFacility2-3X77B4WP.js.map} +0 -0
  883. /package/dist/{render-ASLVKYEX.js.map → render-G5NCZTMW.js.map} +0 -0
  884. /package/dist/{report-UVYKDMQC.js.map → report-CR645KQ4.js.map} +0 -0
  885. /package/dist/{sampleView-6UHR7FSR.js.map → sampleView-6PG2HJZL.js.map} +0 -0
  886. /package/dist/{samplelst-ABC2CCNN.js.map → samplelst-FCQ7YPPQ.js.map} +0 -0
  887. /package/dist/{samplematrix-36UCHZLC.js.map → samplematrix-GXMN5QTS.js.map} +0 -0
  888. /package/dist/{sc-XLSAM725.js.map → sc-4ZTSQOXC.js.map} +0 -0
  889. /package/dist/{scatter-ADOBAOW2.js.map → scatter-2PUQU22I.js.map} +0 -0
  890. /package/dist/{scatter-ZNVLI627.js.map → scatter-ZSZTA37T.js.map} +0 -0
  891. /package/dist/{selectGenomeWithTklst-DPDBDYTR.js.map → selectGenomeWithTklst-XHWBEM2G.js.map} +0 -0
  892. /package/dist/{singleCellCellType-STVPYZD4.js.map → singleCellCellType-NP7Y4N6Z.js.map} +0 -0
  893. /package/dist/{singleCellCellType.unit.spec-ZLY37AXL.js.map → singleCellCellType.unit.spec-5I3FECB4.js.map} +0 -0
  894. /package/dist/{singleCellGeneExpression-PCGLU35S.js.map → singleCellGeneExpression-7RWH633E.js.map} +0 -0
  895. /package/dist/{singleCellGeneExpression.unit.spec-PSLKK362.js.map → singleCellGeneExpression.unit.spec-2X2BDTNO.js.map} +0 -0
  896. /package/dist/{singleCellNumericValue-SR3SJEOB.js.map → singleCellNumericValue-I6V4ME6T.js.map} +0 -0
  897. /package/dist/{singleCellNumericValue.unit.spec-PXVXJ4HJ.js.map → singleCellNumericValue.unit.spec-4HKAJXB3.js.map} +0 -0
  898. /package/dist/{singleCellPlot-JXB7M6OH.js.map → singleCellPlot-QRFR3AJH.js.map} +0 -0
  899. /package/dist/{singlecell-PH55NFRX.js.map → singlecell-AQEAB445.js.map} +0 -0
  900. /package/dist/{singlecell-EDSX56QO.js.map → singlecell-DX4EXNUV.js.map} +0 -0
  901. /package/dist/{snp-3VEYBTAQ.js.map → snp-2URSYPBL.js.map} +0 -0
  902. /package/dist/{snp.unit.spec-V7OB44US.js.map → snp.unit.spec-ZV2RCDT4.js.map} +0 -0
  903. /package/dist/{snplocus-HX67RBT5.js.map → snplocus-BB4I2QIP.js.map} +0 -0
  904. /package/dist/{snplst-H5YXCY33.js.map → snplst-A5S7CQEM.js.map} +0 -0
  905. /package/dist/{spliceevent.a53ss.diagram-DBDEEHSK.js.map → spliceevent.a53ss.diagram-6C4OQOVF.js.map} +0 -0
  906. /package/dist/{spliceevent.exonskip.diagram-EYEL6BY6.js.map → spliceevent.exonskip.diagram-FKSR3JEL.js.map} +0 -0
  907. /package/dist/{spliceevent.noeventdiagram-64OEXK7U.js.map → spliceevent.noeventdiagram-G3JQUZKK.js.map} +0 -0
  908. /package/dist/{ssGSEA-3YWQH6KM.js.map → ssGSEA-KLMOSI53.js.map} +0 -0
  909. /package/dist/{ssGSEA.unit.spec-23V2IXP5.js.map → ssGSEA.unit.spec-HBALWLVB.js.map} +0 -0
  910. /package/dist/{stattable-GPSBCNYC.js.map → stattable-ZCMPIC3I.js.map} +0 -0
  911. /package/dist/{studyCatalog-W5PATRNY.js.map → studyCatalog-UZ4BSYY6.js.map} +0 -0
  912. /package/dist/{summarizeCnvGeneexp-YGI23QH5.js.map → summarizeCnvGeneexp-Z43GYKZB.js.map} +0 -0
  913. /package/dist/{summarizeGeneexpSurvival-KQ6OLWYR.js.map → summarizeGeneexpSurvival-4OHRMCFV.js.map} +0 -0
  914. /package/dist/{summarizeMutationCnv-XDHBNEPU.js.map → summarizeMutationCnv-EZXMLADC.js.map} +0 -0
  915. /package/dist/{summarizeMutationDiagnosis-VKIJRJ2Q.js.map → summarizeMutationDiagnosis-RPQP4TM5.js.map} +0 -0
  916. /package/dist/{summarizeMutationSurvival-57YKJGLE.js.map → summarizeMutationSurvival-LX4TRGJZ.js.map} +0 -0
  917. /package/dist/{summary-4WQOVIUF.js.map → summary-FZQVK5KR.js.map} +0 -0
  918. /package/dist/{summary.integration.spec-FRNWBU7F.js.map → summary.integration.spec-46T65LR5.js.map} +0 -0
  919. /package/dist/{summaryInput-X7DS2YA7.js.map → summaryInput-BHU7G5FC.js.map} +0 -0
  920. /package/dist/{sunburst-MSGTXYMM.js.map → sunburst-A5NS3KJQ.js.map} +0 -0
  921. /package/dist/{sunburst-3OEAQA3O.js.map → sunburst-R5X2C7FK.js.map} +0 -0
  922. /package/dist/{survival-5KC5CNZU.js.map → survival-MKW5J5ZH.js.map} +0 -0
  923. /package/dist/{survival-QXDS6N46.js.map → survival-N2NKMVOV.js.map} +0 -0
  924. /package/dist/{survival.integration.spec-PKENHLTZ.js.map → survival.integration.spec-K5FMOOTF.js.map} +0 -0
  925. /package/dist/{svgraph-VJLB7BBN.js.map → svgraph-3WRCJA5D.js.map} +0 -0
  926. /package/dist/{swimmer-R3DN7N36.js.map → swimmer-XV5KVWEM.js.map} +0 -0
  927. /package/dist/{table-YF5VORU6.js.map → table-XUGFZSGV.js.map} +0 -0
  928. /package/dist/{termCollection-KSHVOPS5.js.map → termCollection-23ZRHZHF.js.map} +0 -0
  929. /package/dist/{termCollection-3KGLZFDW.js.map → termCollection-NWTAUSSW.js.map} +0 -0
  930. /package/dist/{termCollection.unit.spec-HTBDG5PL.js.map → termCollection.unit.spec-WE3JMSUI.js.map} +0 -0
  931. /package/dist/{termCollectionFractionSelection-MK4NKWUX.js.map → termCollectionFractionSelection-5FLFLMIY.js.map} +0 -0
  932. /package/dist/{termCollectionFractionSelection.unit.spec-AMF32FDN.js.map → termCollectionFractionSelection.unit.spec-CCFGGXAA.js.map} +0 -0
  933. /package/dist/{tk-Z54DOECH.js.map → tk-F3TSB4IB.js.map} +0 -0
  934. /package/dist/{tp.ui-M4TZVT53.js.map → tp.ui-4QDX3FGM.js.map} +0 -0
  935. /package/dist/{tvs.categorical-HY3BWCZR.js.map → tvs.categorical-24OT3XZI.js.map} +0 -0
  936. /package/dist/{tvs.condition-Y36TRIX4.js.map → tvs.condition-X4SXCVGN.js.map} +0 -0
  937. /package/dist/{tvs.dt-XKVJZP7Y.js.map → tvs.dt-FRBJRSWI.js.map} +0 -0
  938. /package/dist/{tvs.dtcnv.categorical-OMRZR4Y7.js.map → tvs.dtcnv.categorical-4RRSO735.js.map} +0 -0
  939. /package/dist/{tvs.dtcnv.continuous-AGYOBI5K.js.map → tvs.dtcnv.continuous-HXY2PBUA.js.map} +0 -0
  940. /package/dist/{tvs.dtfusion-2JX5Y2IH.js.map → tvs.dtfusion-67LXBQA4.js.map} +0 -0
  941. /package/dist/{tvs.dtitd-SDSLBBWC.js.map → tvs.dtitd-MCJZCNV2.js.map} +0 -0
  942. /package/dist/{tvs.dtsnvindel-LI7K464K.js.map → tvs.dtsnvindel-K5YIIBQJ.js.map} +0 -0
  943. /package/dist/{tvs.dtsv-VRCLX7QY.js.map → tvs.dtsv-RP7FUB2N.js.map} +0 -0
  944. /package/dist/{tvs.multivalue-4OTY6J2S.js.map → tvs.multivalue-CROMWUCP.js.map} +0 -0
  945. /package/dist/{tvs.numeric-CDATYOR2.js.map → tvs.numeric-IYYYV6ZJ.js.map} +0 -0
  946. /package/dist/{tvs.samplelst-76JOJG2M.js.map → tvs.samplelst-5DXKRFYM.js.map} +0 -0
  947. /package/dist/{tvs.survival-WTFJOKIZ.js.map → tvs.survival-W5RXODBT.js.map} +0 -0
  948. /package/dist/{tvs.termCollection-QQXAS7PE.js.map → tvs.termCollection-OSJYIWDX.js.map} +0 -0
  949. /package/dist/{vocabulary-6ACAEFTL.js.map → vocabulary-HTRYJUD7.js.map} +0 -0
@@ -0,0 +1,2334 @@
1
+ import {
2
+ vcf2dstk
3
+ } from "./chunk-VBUDRJJG.js";
4
+ import {
5
+ getsjcharts
6
+ } from "./chunk-MKAF2BHB.js";
7
+ import {
8
+ parseheader,
9
+ parseline
10
+ } from "./chunk-6UHSGC6G.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-CXCAQOFB.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-VVWZ4BOI.js";
30
+ import {
31
+ category10_default,
32
+ dtcloss,
33
+ dtcnv,
34
+ dtdel,
35
+ dtfusionrna,
36
+ dtitd,
37
+ dtnloss,
38
+ dtsnvindel,
39
+ dtsv,
40
+ mclasscloss,
41
+ mclasscnvgain,
42
+ mclasscnvloh,
43
+ mclasscnvloss,
44
+ mclassdel,
45
+ mclassfusionrna,
46
+ mclassitd,
47
+ mclassnloss,
48
+ mclasssv,
49
+ mclasstester,
50
+ validtkt
51
+ } from "./chunk-2N345NXD.js";
52
+ import {
53
+ ordinal
54
+ } from "./chunk-4OLM3KSB.js";
55
+ import {
56
+ select_default
57
+ } from "./chunk-I6Y4O3RR.js";
58
+
59
+ // ../shared/utils/dist/src/bulk.snv.js
60
+ function parseheader2(line, flag2) {
61
+ const header = line.toLowerCase().split(" ");
62
+ if (header.length <= 1) return "invalid file header for snv/indel";
63
+ const htry = (...args) => {
64
+ for (const s of args) {
65
+ const i2 = header.indexOf(s);
66
+ if (i2 != -1) return i2;
67
+ }
68
+ return -1;
69
+ };
70
+ let i = htry("annovar_gene", "annovar_sj_gene", "gene", "genename", "gene_symbol", "hugo_symbol");
71
+ if (i == -1) return "gene missing from header";
72
+ header[i] = "gene";
73
+ i = htry("annovar_aachange", "amino_acid_change", "annovar_sj_aachange", "aachange", "protein_change", "variant");
74
+ if (i == -1) return "amino_acid_change missing from header";
75
+ header[i] = "mname";
76
+ i = htry("annovar_class", "class", "mclass", "variant_class", "variant_classification", "annovar_sj_class");
77
+ if (i == -1) return "variant_class missing from header";
78
+ header[i] = "class";
79
+ i = htry("chromosome", "chr");
80
+ if (i == -1) return "chromosome missing from header";
81
+ header[i] = "chr";
82
+ i = htry("wu_hg19_pos", "start", "start_position", "chr_position", "position");
83
+ if (i == -1) return "start missing from header";
84
+ header[i] = "pos";
85
+ i = htry(
86
+ "annovar_isoform",
87
+ "mrna_accession",
88
+ "mrna accession",
89
+ "refseq_mrna_id",
90
+ "annovar_sj_filter_isoform",
91
+ "refseq",
92
+ "isoform"
93
+ );
94
+ if (i == -1) return "isoform missing from header";
95
+ header[i] = "isoform";
96
+ i = htry("sample", "sample_name", "tumor_sample_barcode");
97
+ if (i != -1) header[i] = "sample";
98
+ i = htry("patient", "donor", "target_case_id");
99
+ if (i != -1) header[i] = "patient";
100
+ i = htry("quantitative_measurements");
101
+ if (i != -1) header[i] = "qmset";
102
+ i = htry("mutant_reads_in_case", "mutant_in_tumor", "tumor_readcount_alt");
103
+ if (i != -1) header[i] = "maf_tumor_v1";
104
+ i = htry("total_reads_in_case", "total_in_tumor", "tumor_readcount_total");
105
+ if (i != -1) header[i] = "maf_tumor_v2";
106
+ i = htry("mutant_reads_in_control", "mutant_in_normal", "normal_readcount_alt");
107
+ if (i != -1) header[i] = "maf_normal_v1";
108
+ i = htry("total_reads_in_control", "total_in_normal", "normal_readcount_total");
109
+ if (i != -1) header[i] = "maf_normal_v2";
110
+ i = htry("cdna_change");
111
+ if (i != -1) header[i] = "cdna_change";
112
+ i = htry("sampletype", "sample type", "sample_type");
113
+ if (i != -1) header[i] = "sampletype";
114
+ i = htry("origin");
115
+ if (i != -1) header[i] = "origin";
116
+ i = htry("cancer", "disease", "diagnosis");
117
+ if (i != -1) header[i] = "disease";
118
+ flag2.snv.header = header;
119
+ flag2.snv.loaded = true;
120
+ return false;
121
+ }
122
+ function parseline2(linei, line, flag2) {
123
+ if (line == "" || line[0] == "#") return;
124
+ const lst = line.split(" ");
125
+ const m = {};
126
+ for (let j = 0; j < flag2.snv.header.length; j++) {
127
+ if (lst[j] == void 0) break;
128
+ m[flag2.snv.header[j]] = lst[j];
129
+ }
130
+ if (!m.gene) {
131
+ flag2.snv.badlines.push([linei, "missing gene", lst]);
132
+ return;
133
+ }
134
+ if (m.gene.toUpperCase() == "UNKNOWN") {
135
+ flag2.snv.badlines.push([linei, "gene name is UNKNOWN", lst]);
136
+ return;
137
+ }
138
+ if (!m.isoform) {
139
+ flag2.snv.badlines.push([linei, "missing isoform", lst]);
140
+ return;
141
+ }
142
+ if (!m.mname) {
143
+ m.mname = m.cdna_change;
144
+ if (!m.mname) {
145
+ flag2.snv.badlines.push([linei, "missing amino acid change", lst]);
146
+ return;
147
+ }
148
+ } else {
149
+ if (m.mname.indexOf("p.") == 0) {
150
+ m.mname = m.mname.replace(/^p\./, "");
151
+ }
152
+ }
153
+ if (!m.class) {
154
+ flag2.snv.badlines.push([linei, "missing mutation class", lst]);
155
+ return;
156
+ }
157
+ let _c = flag2.mclasslabel2key[m.class.toUpperCase()];
158
+ if (_c) {
159
+ m.class = _c;
160
+ } else {
161
+ _c = mclasstester(m.class);
162
+ if (_c) {
163
+ m.class = _c;
164
+ } else {
165
+ flag2.snv.badlines.push([linei, "wrong mutation class: " + m.class, lst]);
166
+ return;
167
+ }
168
+ }
169
+ if (parsesample(m, flag2, linei, lst)) {
170
+ return;
171
+ }
172
+ if (!m.chr) {
173
+ flag2.snv.badlines.push([linei, "missing chromosome", lst]);
174
+ return;
175
+ }
176
+ if (m.chr.toLowerCase().indexOf("chr") != 0) {
177
+ m.chr = "chr" + m.chr;
178
+ }
179
+ if (!m.pos) {
180
+ flag2.snv.badlines.push([linei, "missing chromosome position", lst]);
181
+ return;
182
+ }
183
+ const v = Number.parseInt(m.pos);
184
+ if (Number.isNaN(v)) {
185
+ flag2.snv.badlines.push([linei, "invalid chromosome position", lst]);
186
+ return;
187
+ }
188
+ m.pos = v - 1;
189
+ if (m.maf_tumor_v2 != void 0 && m.maf_tumor_v1 != void 0) {
190
+ if (m.maf_tumor_v2 == "") {
191
+ } else {
192
+ const v1 = Number.parseInt(m.maf_tumor_v1), v2 = Number.parseInt(m.maf_tumor_v2);
193
+ if (Number.isNaN(v1) || Number.isNaN(v2)) {
194
+ flag2.snv.badlines.push([linei, "invalid maf_tumor mutant and/or total read count", lst]);
195
+ return;
196
+ }
197
+ m.maf_tumor = { f: v1 / v2, v1, v2 };
198
+ }
199
+ delete m.maf_tumor_v1;
200
+ delete m.maf_tumor_v2;
201
+ }
202
+ if (m.maf_normal_v1 != void 0 && m.maf_normal_v2 != void 0) {
203
+ if (m.maf_normal_v2 == "") {
204
+ } else {
205
+ const v1 = Number.parseInt(m.maf_normal_v1), v2 = Number.parseInt(m.maf_normal_v2);
206
+ if (Number.isNaN(v1) || Number.isNaN(v2)) {
207
+ flag2.snv.badlines.push([linei, "invalid maf_normal mutant and/or total read count", lst]);
208
+ return;
209
+ }
210
+ m.maf_normal = { f: v1 / v2, v1, v2 };
211
+ }
212
+ delete m.maf_normal_v1;
213
+ delete m.maf_normal_v2;
214
+ }
215
+ flag2.good++;
216
+ if (m.class == "M") {
217
+ flag2.snv.missense++;
218
+ } else if (m.class == "S") {
219
+ flag2.snv.silent++;
220
+ }
221
+ const n = flag2.geneToUpper ? m.gene.toUpperCase() : m.gene;
222
+ if (!flag2.data[n]) {
223
+ flag2.data[n] = [];
224
+ }
225
+ m.dt = dtsnvindel;
226
+ flag2.data[n].push(m);
227
+ }
228
+
229
+ // ../shared/utils/dist/src/bulk.svjson.js
230
+ function parseheader3(line) {
231
+ const header = line.toLowerCase().split(" ");
232
+ if (header.length <= 1) return "invalid file header for svjson";
233
+ const htry = (...lst) => {
234
+ for (const a of lst) {
235
+ const j = header.indexOf(a);
236
+ if (j != -1) return j;
237
+ }
238
+ return -1;
239
+ };
240
+ let i = htry("sample");
241
+ if (i != -1) header[i] = "sample";
242
+ i = htry("sampletype");
243
+ if (i != -1) header[i] = "sampletype";
244
+ i = htry("patient");
245
+ if (i != -1) header[i] = "patient";
246
+ i = htry("json", "jsontext");
247
+ if (i == -1) return ["json missing from header"];
248
+ header[i] = "jsontext";
249
+ return [null, header];
250
+ }
251
+ function parseline3(i, line, flag2, header) {
252
+ if (line == "" || line[0] == "#") return;
253
+ const lst = line.split(" ");
254
+ const m = {};
255
+ const badlines = flag2.svjson.badlines;
256
+ for (let j = 0; j < header.length; j++) {
257
+ m[header[j]] = lst[j];
258
+ }
259
+ if (!m.jsontext) {
260
+ badlines.push([i, "missing jsontext", lst]);
261
+ return;
262
+ }
263
+ if (parsesample(m, flag2, i, lst)) {
264
+ return;
265
+ }
266
+ let json;
267
+ try {
268
+ json = JSON.parse(m.jsontext);
269
+ } catch (_) {
270
+ badlines.push([i, "invalid JSON text", lst]);
271
+ return;
272
+ }
273
+ if (Array.isArray(json)) {
274
+ for (const pair of json) {
275
+ if (pair.a && pair.a.name && pair.a.isoform) {
276
+ flag2.good++;
277
+ const m2 = {
278
+ dt: dtfusionrna,
279
+ class: mclassfusionrna,
280
+ isoform: pair.a.isoform,
281
+ mname: pair.b.name
282
+ };
283
+ for (const k in m) {
284
+ if (k != "jsontext") m2[k] = m[k];
285
+ }
286
+ m2.pairlst = duplicate(json);
287
+ const n = pair.a.name.toUpperCase();
288
+ if (!flag2.data[n]) {
289
+ flag2.data[n] = [];
290
+ }
291
+ flag2.data[n].push(m2);
292
+ }
293
+ if (pair.b && pair.b.name && pair.b.isoform) {
294
+ flag2.good++;
295
+ const m2 = {
296
+ dt: dtfusionrna,
297
+ class: mclassfusionrna,
298
+ isoform: pair.b.isoform,
299
+ mname: pair.a.name
300
+ };
301
+ for (const k in m) {
302
+ if (k != "jsontext") m2[k] = m[k];
303
+ }
304
+ m2.pairlst = duplicate(json);
305
+ const n = pair.b.name.toUpperCase();
306
+ if (!flag2.data[n]) {
307
+ flag2.data[n] = [];
308
+ }
309
+ flag2.data[n].push(m2);
310
+ }
311
+ }
312
+ } else {
313
+ json.dt = json.typecode;
314
+ delete json.typecode;
315
+ switch (json.dt) {
316
+ case dtitd:
317
+ json.class = mclassitd;
318
+ json.mname = "ITD";
319
+ break;
320
+ case dtnloss:
321
+ json.class = mclassnloss;
322
+ json.mname = "N-loss";
323
+ break;
324
+ case dtcloss:
325
+ json.class = mclasscloss;
326
+ json.mname = "C-loss";
327
+ break;
328
+ case dtdel:
329
+ json.class = mclassdel;
330
+ json.mname = "Del";
331
+ break;
332
+ case dtsv:
333
+ json.class = mclasssv;
334
+ json.mname = "SV";
335
+ break;
336
+ default:
337
+ badlines.push([i, "unknown datatype", lst]);
338
+ return;
339
+ }
340
+ if (!json.gene) {
341
+ badlines.push([i, "json.gene missing", lst]);
342
+ return;
343
+ }
344
+ flag2.good++;
345
+ for (const k in m) {
346
+ if (k != "jsontext") {
347
+ json[k] = m[k];
348
+ }
349
+ }
350
+ const n = flag2.geneToUpper ? json.gene.toUpperCase() : json.gene.toUpperCase();
351
+ if (!flag2.data[n]) {
352
+ flag2.data[n] = [];
353
+ }
354
+ flag2.data[n].push(json);
355
+ }
356
+ }
357
+ function duplicate(lst) {
358
+ const d = [];
359
+ for (const pair of lst) {
360
+ const p = { a: {}, b: {} };
361
+ for (const k in pair) {
362
+ if (k != "a" && k != "b") p[k] = pair[k];
363
+ }
364
+ for (const k in pair.a) {
365
+ p.a[k] = pair.a[k];
366
+ }
367
+ for (const k in pair.b) {
368
+ p.b[k] = pair.b[k];
369
+ }
370
+ d.push(p);
371
+ }
372
+ return d;
373
+ }
374
+
375
+ // ../shared/utils/dist/src/bulk.cnv.js
376
+ function parseheader4(line, flag2) {
377
+ const header = line.toLowerCase().split(" ");
378
+ if (header.length <= 1) return "invalid file header for CNV";
379
+ const htry = (...lst) => {
380
+ for (const i2 of lst) {
381
+ const j = header.indexOf(i2);
382
+ if (j != -1) return j;
383
+ }
384
+ return -1;
385
+ };
386
+ let i = htry("gene");
387
+ if (i == -1) return "gene missing from header";
388
+ header[i] = "gene";
389
+ i = htry("cnv");
390
+ if (i == -1) return "CNV missing from header";
391
+ header[i] = "cnv";
392
+ i = htry("sample", "sample_name", "tumor_sample_barcode");
393
+ if (i != -1) header[i] = "sample";
394
+ i = htry("patient", "donor", "target_case_id");
395
+ if (i != -1) header[i] = "patient";
396
+ i = htry("disease");
397
+ if (i != -1) header[i] = "disease";
398
+ i = htry("origin");
399
+ if (i != -1) header[i] = "origin";
400
+ i = htry("sampletype", "sample type", "sample_type");
401
+ if (i != -1) header[i] = "sampletype";
402
+ flag2.cnv.header = header;
403
+ flag2.cnv.loaded = true;
404
+ return false;
405
+ }
406
+ function parseline4(i, line, flag2) {
407
+ if (line == "" || line[0] == "#") return;
408
+ const lst = line.split(" ");
409
+ const m = {};
410
+ for (let j = 0; j < flag2.cnv.header.length; j++) {
411
+ m[flag2.cnv.header[j]] = lst[j];
412
+ }
413
+ if (!m.gene) {
414
+ flag2.cnv.badlines.push([i, "missing gene", lst]);
415
+ return;
416
+ }
417
+ if (!m.cnv) {
418
+ flag2.cnv.badlines.push([i, "missing cnv value", lst]);
419
+ return;
420
+ }
421
+ const value = m.cnv.toLowerCase();
422
+ switch (value) {
423
+ case "amplification":
424
+ case "gain":
425
+ m.class = mclasscnvgain;
426
+ break;
427
+ case "deletion":
428
+ case "loss":
429
+ m.class = mclasscnvloss;
430
+ break;
431
+ case "loh":
432
+ m.class = mclasscnvloh;
433
+ break;
434
+ default:
435
+ flag2.cnv.badlines.push([i, "invalid cnv value: " + m.cnv, lst]);
436
+ m.class = null;
437
+ }
438
+ if (!m.class) {
439
+ return;
440
+ }
441
+ if (parsesample(m, flag2, i, lst)) {
442
+ return;
443
+ }
444
+ m.dt = dtcnv;
445
+ flag2.good++;
446
+ const n = flag2.geneToUpper ? m.gene.toUpperCase() : m.gene;
447
+ if (!(n in flag2.data)) {
448
+ flag2.data[n] = [];
449
+ }
450
+ flag2.data[n].push(m);
451
+ }
452
+
453
+ // ../shared/utils/dist/src/bulk.itd.js
454
+ function parseheader5(line, flag2) {
455
+ const header = line.toLowerCase().split(" ");
456
+ if (header.length <= 1) return "invalid header line for ITD";
457
+ const htry = (...lst) => {
458
+ for (const i2 of lst) {
459
+ const j = header.indexOf(i2);
460
+ if (j != -1) return j;
461
+ }
462
+ return -1;
463
+ };
464
+ let i = htry("gene");
465
+ if (i == -1) return "gene missing from header";
466
+ header[i] = "gene";
467
+ i = htry(
468
+ "annovar_isoform",
469
+ "mrna_accession",
470
+ "mrna accession",
471
+ "refseq_mrna_id",
472
+ "annovar_sj_filter_isoform",
473
+ "refseq",
474
+ "isoform"
475
+ );
476
+ if (i == -1) return "isoform missing from header";
477
+ header[i] = "isoform";
478
+ i = htry("rnaposition");
479
+ if (i != -1) {
480
+ header[i] = "rnaposition";
481
+ i = htry("rnaduplength");
482
+ if (i == -1) return "rnaduplength is required when rnaposition is present";
483
+ header[i] = "rnaduplength";
484
+ }
485
+ i = htry("chromosome", "chr");
486
+ if (i != -1) {
487
+ header[i] = "chr";
488
+ i = htry("chr_start");
489
+ if (i == -1) return "chr_start is required when chr is present";
490
+ header[i] = "chrpos1";
491
+ i = htry("chr_stop");
492
+ if (i == -1) return "chr_stop is required when chr is present";
493
+ header[i] = "chrpos2";
494
+ }
495
+ i = htry("sample", "sample_name", "tumor_sample_barcode");
496
+ if (i != -1) header[i] = "sample";
497
+ i = htry("patient", "donor", "target_case_id");
498
+ if (i != -1) header[i] = "patient";
499
+ i = htry("disease");
500
+ if (i != -1) header[i] = "disease";
501
+ i = htry("origin");
502
+ if (i != -1) header[i] = "origin";
503
+ i = htry("sampletype", "sample type", "sample_type");
504
+ if (i != -1) header[i] = "sampletype";
505
+ flag2.itd.header = header;
506
+ flag2.itd.loaded = true;
507
+ return false;
508
+ }
509
+ function parseline5(i, line, flag2) {
510
+ if (line == "" || line[0] == "#") return;
511
+ const lst = line.split(" ");
512
+ const m = {};
513
+ for (let j = 0; j < flag2.itd.header.length; j++) {
514
+ if (lst[j] == void 0) break;
515
+ m[flag2.itd.header[j]] = lst[j];
516
+ }
517
+ if (!m.gene) {
518
+ flag2.itd.badlines.push([i, "missing gene", lst]);
519
+ return;
520
+ }
521
+ if (m.rnaposition) {
522
+ let v = Number.parseInt(m.rnaposition);
523
+ if (Number.isNaN(v) || v < 0) {
524
+ flag2.itd.badlines.push([i, "invalid rnaPosition value", lst]);
525
+ return;
526
+ }
527
+ m.rnaposition = v;
528
+ if (!m.rnaduplength) {
529
+ flag2.itd.badlines.push([i, "missing rnaDuplength value", lst]);
530
+ return;
531
+ }
532
+ v = Number.parseInt(m.rnaduplength);
533
+ if (Number.isNaN(v) || v < 0) {
534
+ flag2.itd.badlines.push([i, "invalid rnaDuplength value", lst]);
535
+ return;
536
+ }
537
+ m.rnaduplength = v;
538
+ }
539
+ if (m.chr) {
540
+ let v = Number.parseInt(m.chrpos1);
541
+ if (Number.isNaN(v) || v < 0) {
542
+ flag2.itd.badlines.push([i, "invalid chr_start value", lst]);
543
+ return;
544
+ }
545
+ m.chrpos1 = v;
546
+ v = Number.parseInt(m.chrpos2);
547
+ if (Number.isNaN(v) || v < 0) {
548
+ flag2.itd.badlines.push([i, "invalid chr_stop value", lst]);
549
+ return;
550
+ }
551
+ m.chrpos2 = v;
552
+ }
553
+ if (parsesample(m, flag2, i, lst)) {
554
+ return;
555
+ }
556
+ m.dt = dtitd;
557
+ m.class = mclassitd;
558
+ m.mname = "ITD";
559
+ flag2.good++;
560
+ const n = flag2.geneToUpper ? m.gene.toUpperCase() : m.gene;
561
+ if (!(n in flag2.data)) {
562
+ flag2.data[n] = [];
563
+ }
564
+ flag2.data[n].push(m);
565
+ }
566
+
567
+ // ../shared/utils/dist/src/bulk.del.js
568
+ function parseheader6(line, flag2) {
569
+ const header = line.toLowerCase().split(" ");
570
+ if (header.length <= 1) return "invalid header line for intragenic deletion";
571
+ const htry = (...lst) => {
572
+ for (const i2 of lst) {
573
+ const j = header.indexOf(i2);
574
+ if (j != -1) return j;
575
+ }
576
+ return -1;
577
+ };
578
+ let i = htry("gene");
579
+ if (i == -1) return "gene missing from header";
580
+ header[i] = "gene";
581
+ i = htry(
582
+ "annovar_isoform",
583
+ "mrna_accession",
584
+ "mrna accession",
585
+ "refseq_mrna_id",
586
+ "annovar_sj_filter_isoform",
587
+ "refseq",
588
+ "isoform"
589
+ );
590
+ if (i == -1) return "isoform missing from header";
591
+ header[i] = "isoform";
592
+ i = htry("rnaposition");
593
+ if (i != -1) {
594
+ header[i] = "rnaposition";
595
+ i = htry("rnadellength");
596
+ if (i == -1) return "rnadellength is required when rnaPosition is used";
597
+ header[i] = "rnadellength";
598
+ }
599
+ i = htry("chromosome", "chr");
600
+ if (i != -1) {
601
+ header[i] = "chr";
602
+ i = htry("chr_start");
603
+ if (i == -1) return "chr_start is required when chr is used";
604
+ header[i] = "chrpos1";
605
+ i = htry("chr_stop");
606
+ if (i == -1) return "chr_stop is required when chr is used";
607
+ header[i] = "chrpos2";
608
+ }
609
+ i = htry("sample", "sample_name", "tumor_sample_barcode");
610
+ if (i != -1) header[i] = "sample";
611
+ i = htry("patient", "donor", "target_case_id");
612
+ if (i != -1) header[i] = "patient";
613
+ i = htry("disease");
614
+ if (i != -1) header[i] = "disease";
615
+ i = htry("origin");
616
+ if (i != -1) header[i] = "origin";
617
+ i = htry("sampletype", "sample type", "sample_type");
618
+ if (i != -1) header[i] = "sampletype";
619
+ flag2.del.header = header;
620
+ flag2.del.loaded = true;
621
+ return false;
622
+ }
623
+ function parseline6(i, line, flag2) {
624
+ if (line == "" || line[0] == "#") return;
625
+ const lst = line.split(" ");
626
+ const m = {};
627
+ for (let j = 0; j < flag2.del.header.length; j++) {
628
+ if (lst[j] == void 0) break;
629
+ m[flag2.del.header[j]] = lst[j];
630
+ }
631
+ if (!m.gene) {
632
+ flag2.del.badlines.push([i, "missing gene", lst]);
633
+ return;
634
+ }
635
+ if (m.rnaposition) {
636
+ let v = Number.parseInt(m.rnaposition);
637
+ if (Number.isNaN(v) || v < 0) {
638
+ flag2.del.badlines.push([i, "invalid rnaPosition value", lst]);
639
+ return;
640
+ }
641
+ m.rnaposition = v;
642
+ if (!m.rnadellength) {
643
+ flag2.del.badlines.push([i, "missing rnaDellength value", lst]);
644
+ return;
645
+ }
646
+ v = Number.parseInt(m.rnadellength);
647
+ if (Number.isNaN(v) || v < 0) {
648
+ flag2.del.badlines.push([i, "invalid rnaDellength value", lst]);
649
+ return;
650
+ }
651
+ m.rnadellength = v;
652
+ }
653
+ if (m.chr) {
654
+ let v = Number.parseInt(m.chrpos1);
655
+ if (Number.isNaN(v) || v < 0) {
656
+ flag2.del.badlines.push([i, "invalid chr_start value", lst]);
657
+ return;
658
+ }
659
+ m.chrpos1 = v;
660
+ v = Number.parseInt(m.chrpos2);
661
+ if (Number.isNaN(v) || v < 0) {
662
+ flag2.del.badlines.push([i, "invalid chr_stop value", lst]);
663
+ return;
664
+ }
665
+ m.chrpos2 = v;
666
+ }
667
+ if (parsesample(m, flag2, i, lst)) {
668
+ return;
669
+ }
670
+ m.dt = dtdel;
671
+ m.class = mclassdel;
672
+ m.mname = "DEL";
673
+ flag2.good++;
674
+ const n = flag2.geneToUpper ? m.gene.toUpperCase() : m.gene;
675
+ if (!(n in flag2.data)) {
676
+ flag2.data[n] = [];
677
+ }
678
+ flag2.data[n].push(m);
679
+ }
680
+
681
+ // ../shared/utils/dist/src/bulk.trunc.js
682
+ function parseheader7(line, flag2) {
683
+ const header = line.toLowerCase().split(" ");
684
+ if (header.length <= 1) return "invalid header line for truncation";
685
+ const htry = (...lst) => {
686
+ for (const e of lst) {
687
+ const j = header.indexOf(e);
688
+ if (j != -1) return j;
689
+ }
690
+ return -1;
691
+ };
692
+ let i = htry("gene");
693
+ if (i == -1) return "gene missing from header";
694
+ header[i] = "gene";
695
+ i = htry(
696
+ "annovar_isoform",
697
+ "mrna_accession",
698
+ "mrna accession",
699
+ "refseq_mrna_id",
700
+ "annovar_sj_filter_isoform",
701
+ "refseq",
702
+ "isoform"
703
+ );
704
+ if (i == -1) return "isoform missing from header";
705
+ header[i] = "isoform";
706
+ let hasrnapos = false;
707
+ i = htry("rnaposition");
708
+ if (i != -1) {
709
+ header[i] = "rnaposition";
710
+ hasrnapos = true;
711
+ }
712
+ i = htry("losstype");
713
+ if (i == -1) return "lossType missing from header";
714
+ header[i] = "losstype";
715
+ let hasgenomic = false;
716
+ i = htry("chromosome", "chr");
717
+ if (i != -1) {
718
+ header[i] = "chr";
719
+ i = htry("start", "start_position", "wu_hg19_pos", "chr_position", "position");
720
+ if (i == -1) {
721
+ return "genomic position missing from header";
722
+ }
723
+ header[i] = "pos";
724
+ hasgenomic = true;
725
+ }
726
+ if (!hasrnapos && !hasgenomic) {
727
+ return "neither rnaposition nor genomic position is given";
728
+ }
729
+ i = htry("sample", "sample_name", "tumor_sample_barcode");
730
+ if (i != -1) header[i] = "sample";
731
+ i = htry("patient", "donor", "target_case_id");
732
+ if (i != -1) header[i] = "patient";
733
+ i = htry("disease");
734
+ if (i != -1) header[i] = "disease";
735
+ i = htry("origin");
736
+ if (i != -1) header[i] = "origin";
737
+ i = htry("sampletype", "sample type", "sample_type");
738
+ if (i != -1) header[i] = "sampletype";
739
+ flag2.truncation.header = header;
740
+ flag2.truncation.loaded = true;
741
+ return false;
742
+ }
743
+ function parseline7(i, line, flag2) {
744
+ if (line == "" || line[0] == "#") return;
745
+ const lst = line.split(" ");
746
+ const m = {};
747
+ for (let j = 0; j < flag2.truncation.header.length; j++) {
748
+ m[flag2.truncation.header[j]] = lst[j];
749
+ }
750
+ if (!m.gene) {
751
+ flag2.truncation.badlines.push([i, "missing gene", lst]);
752
+ return;
753
+ }
754
+ if (m.rnaposition) {
755
+ const v = Number.parseInt(m.rnaposition);
756
+ if (Number.isNaN(v) || v < 0) {
757
+ flag2.truncation.badlines.push([i, "invalid rnaPosition value", lst]);
758
+ return;
759
+ }
760
+ m.rnaposition = v;
761
+ }
762
+ if (m.pos) {
763
+ const v = Number.parseInt(m.pos);
764
+ if (Number.isNaN(v) || v < 0) {
765
+ flag2.truncation.badlines.push([i, "invalid genomic position", lst]);
766
+ return;
767
+ }
768
+ m.pos = v;
769
+ }
770
+ if (!m.losstype) {
771
+ flag2.truncation.badlines.push([i, "missing lossType value", lst]);
772
+ return;
773
+ }
774
+ if (m.losstype != "n" && m.losstype != "c") {
775
+ flag2.truncation.badlines.push([i, 'lossType value not "n" or "c"', lst]);
776
+ return;
777
+ }
778
+ if (parsesample(m, flag2, i, lst)) {
779
+ return;
780
+ }
781
+ if (m.losstype == "n") {
782
+ m.dt = dtnloss;
783
+ m.class = mclassnloss;
784
+ m.mname = "N-loss";
785
+ } else {
786
+ m.dt = dtcloss;
787
+ m.class = mclasscloss;
788
+ m.mname = "C-loss";
789
+ }
790
+ flag2.good++;
791
+ const n = flag2.geneToUpper ? m.gene.toUpperCase() : m.gene;
792
+ if (!(n in flag2.data)) {
793
+ flag2.data[n] = [];
794
+ }
795
+ flag2.data[n].push(m);
796
+ }
797
+
798
+ // src/bulk.project.js
799
+ var schemaNames = ["heatmapJSON", "piebarJSON", "survivalJSON", "discoJSON", "riverJSON"];
800
+ var typeIndex = {
801
+ snvindel: 0,
802
+ si: 0,
803
+ sv: 1,
804
+ fusion: 2,
805
+ itd: 3,
806
+ deletion: 4,
807
+ truncation: 5,
808
+ cnv: 6
809
+ };
810
+ var urlProjectLoaded = false;
811
+ var ProjectHandler = class {
812
+ /*
813
+ Create a handler for multiple uploaded or fetched
814
+ files in a project
815
+
816
+ bt = {
817
+ flag: closured flag inside bulkui.bulkui,
818
+ bulkin: bulkui.bulkin,
819
+ content2flag: bulkui.content2flag,
820
+ flag2tp: closured flat2tp,
821
+ filediv: (optional) d3-wrapped container for file-input
822
+ }
823
+ */
824
+ constructor(bt) {
825
+ this.bt = bt;
826
+ this.err = this.errHandler();
827
+ if (!urlProjectLoaded) {
828
+ const params = getParams();
829
+ if (params.project) {
830
+ this.getData(params.project);
831
+ urlProjectLoaded = true;
832
+ }
833
+ }
834
+ if (bt.filediv) {
835
+ this.projectByInput(bt.filediv);
836
+ }
837
+ }
838
+ /*
839
+ Process data files sequentially for rendering
840
+ into a TP div
841
+
842
+ data = {
843
+ schemas: object {
844
+ heatmapJSON (optional),
845
+ piebarJSON (optional),
846
+ survivalJSON (optional)
847
+ },
848
+ files: [] array of {
849
+ name: string
850
+ typeL one of the typeIndex values
851
+ content: string
852
+ }
853
+ }
854
+ */
855
+ processData(data) {
856
+ const file = data.files.pop();
857
+ const i = data.expectedFileNames.indexOf(file.name);
858
+ if (i == -1) {
859
+ if (data.files.length)
860
+ setTimeout(() => {
861
+ this.processData(data);
862
+ }, 1);
863
+ return;
864
+ }
865
+ data.expectedFileNames.splice(i, 1);
866
+ this.cohort = {
867
+ name: "project",
868
+ genome: this.bt.genomes[this.bt.gselect.options[this.bt.gselect.selectedIndex].innerHTML]
869
+ };
870
+ if (!this.flag) {
871
+ this.flag = this.bt.init_bulk_flag(this.cohort.genome);
872
+ }
873
+ const error = this.bt.content2flag(file.content, file.type, this.flag);
874
+ if (error) {
875
+ this.err(error);
876
+ this.processData(data);
877
+ } else if (!data.files.length) {
878
+ if (data.expectedFileNames.length) {
879
+ this.err('These referenced files were not found: "' + data.expectedFileNames.join('", "') + '".');
880
+ }
881
+ this.bt.flag2tp(this.flag, { name: "project" }, Object.assign(this.cohort, data.schema), this.ds);
882
+ return;
883
+ } else {
884
+ if (!this.ds) {
885
+ for (const k in this.cohort.dsset) {
886
+ this.ds = this.cohort.dsset[k];
887
+ break;
888
+ }
889
+ }
890
+ const error1 = this.bt.bulkin(
891
+ {
892
+ flag: this.flag,
893
+ cohort: this.cohort,
894
+ flag2thisds: this.ds,
895
+ filename: "project"
896
+ },
897
+ () => {
898
+ this.processData(data);
899
+ }
900
+ );
901
+ if (error1) {
902
+ this.err("Error with " + file.name + ": " + error1);
903
+ return;
904
+ }
905
+ if (this.flag.good === 0) {
906
+ this.err(file.name + ": no data loaded");
907
+ return;
908
+ }
909
+ }
910
+ }
911
+ getData(project) {
912
+ const [projectname, _refname] = project.split("/");
913
+ const refname = _refname && _refname.trim() ? _refname.trim() : "ref.txt";
914
+ this.gettext("/data/projects/" + projectname + "/" + refname, (text) => {
915
+ const fileNameToType = {};
916
+ const nameToSchemaType = {};
917
+ const data = { schema: {}, files: [], expectedFileNames: [] };
918
+ let schemaFileName = "";
919
+ let numProcessedFiles = 0;
920
+ let numFiles = 0;
921
+ text.trim().split("\n").forEach((line) => {
922
+ const [type, filename] = line.trim().split(" ");
923
+ if (schemaNames.includes(type)) {
924
+ nameToSchemaType[filename] = type;
925
+ numFiles += 1;
926
+ } else if (!typeIndex[type] && typeIndex[type] !== 0) {
927
+ this.err("Unrecognized type " + type + " for file " + filename + " in reference.txt.");
928
+ } else {
929
+ fileNameToType[filename] = typeIndex[type];
930
+ numFiles += 1;
931
+ }
932
+ });
933
+ data.expectedFileNames = Object.keys(fileNameToType);
934
+ const tracker = this.getTracker(numFiles, () => this.processData(data));
935
+ Object.keys(nameToSchemaType).forEach((filename) => {
936
+ this.getjson("/data/projects/" + projectname + "/" + filename, (json) => {
937
+ data.schema[nameToSchemaType[filename]] = json;
938
+ tracker();
939
+ });
940
+ });
941
+ Object.keys(fileNameToType).forEach((filename) => {
942
+ this.gettext("/data/projects/" + projectname + "/" + filename, (text2) => {
943
+ data.files.push({
944
+ name: filename,
945
+ type: fileNameToType[filename],
946
+ content: text2
947
+ });
948
+ tracker();
949
+ });
950
+ });
951
+ });
952
+ }
953
+ gettext(url, callback) {
954
+ fetch(url).then((response) => {
955
+ if (response.ok) return response.text();
956
+ else this.err("File request error: " + url);
957
+ }).then(callback).catch((error) => this.err("File request error: " + url + " " + error));
958
+ }
959
+ getjson(url, callback) {
960
+ fetch(url).then((response) => {
961
+ if (response.ok) return response.json();
962
+ else this.err("Network error for " + url);
963
+ }).then(callback).catch((error) => this.err("file request error: " + url + " " + error));
964
+ }
965
+ getTracker(numFiles, callback) {
966
+ let numProcessedFiles = 0;
967
+ return function tracker() {
968
+ numProcessedFiles += 1;
969
+ if (numProcessedFiles == numFiles) {
970
+ callback();
971
+ }
972
+ };
973
+ }
974
+ projectByInput(filediv) {
975
+ this.tp = null;
976
+ const advancedDiv = filediv.append("div");
977
+ advancedDiv.append("span").html("Project: reference &nbsp;");
978
+ this.refNameInput = advancedDiv.append("input").attr("type", "text").property("value", "ref.txt").style("margin-right", "20px").style("padding-left", "7px");
979
+ const buttlabel = advancedDiv.append("label").attr("for", "sja-pp-bulk-ui-project-btn").attr("class", "sja_btn").style("padding", "3px 5px").html("Choose folder");
980
+ 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));
981
+ 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> |
982
+ <a href='https://proteinpaint.stjude.org/ppdemo/projects/target-tall-project/ref.txt' target=_blank>Example project reference file</a>`);
983
+ advancedDiv.append("div").style("margin", "20px").style("width", "100%").html("-- OR --");
984
+ }
985
+ /* to be used as a file input (FileList) handler */
986
+ readFiles(event) {
987
+ const self = this;
988
+ const refFileName = self.refNameInput.property("value");
989
+ const files = Array.from(event.target.files);
990
+ const ref = files.filter((f) => f.name == refFileName)[0];
991
+ if (!ref) {
992
+ self.err("Missing reference file='" + refFileName + "'.");
993
+ return;
994
+ }
995
+ const fileNameToType = {};
996
+ const nameToSchemaType = {};
997
+ const data = { schema: {}, files: [], expectedFileNames: [] };
998
+ const reader = new FileReader();
999
+ let schemaFileName = "";
1000
+ let numProcessedFiles = 0;
1001
+ reader.onload = (event2) => {
1002
+ event2.target.result.trim().split("\n").forEach((line) => {
1003
+ const [type, filename] = line.trim().split(" ");
1004
+ if (schemaNames.includes(type)) {
1005
+ nameToSchemaType[filename] = type;
1006
+ } else if (!typeIndex[type] && typeIndex[type] !== 0) {
1007
+ self.err("Unrecognized type " + type + " for file " + filename + " in reference.txt.");
1008
+ } else {
1009
+ fileNameToType[filename] = typeIndex[type];
1010
+ }
1011
+ });
1012
+ data.expectedFileNames = Object.keys(fileNameToType);
1013
+ const schemaFiles = files.filter((file) => file.name in nameToSchemaType);
1014
+ let numProcessedSchemas = 0;
1015
+ if (!schemaFiles.length) {
1016
+ files.forEach(processFile);
1017
+ } else {
1018
+ schemaFiles.forEach((file) => {
1019
+ const reader2 = new FileReader();
1020
+ reader2.onload = (event3) => {
1021
+ const schema = JSON.parse(event3.target.result);
1022
+ numProcessedSchemas += 1;
1023
+ if (!schema) {
1024
+ self.err('Unable to parse schema file="' + file.name + '".');
1025
+ } else {
1026
+ data.schema[nameToSchemaType[file.name]] = schema;
1027
+ }
1028
+ if (numProcessedSchemas == schemaFiles.length) {
1029
+ files.forEach(processFile);
1030
+ }
1031
+ };
1032
+ reader2.onerror = () => {
1033
+ self.err("Error reading schema.txt.");
1034
+ };
1035
+ reader2.readAsText(file, "utf8");
1036
+ });
1037
+ }
1038
+ function processFile(file) {
1039
+ if (!data.expectedFileNames.includes(file.name)) {
1040
+ numProcessedFiles += 1;
1041
+ return;
1042
+ }
1043
+ if (!file) {
1044
+ self.err("Error reading file.");
1045
+ numProcessedFiles += 1;
1046
+ return;
1047
+ }
1048
+ if (file.size == 0) {
1049
+ self.err("Wrong file: " + file.name);
1050
+ numProcessedFiles += 1;
1051
+ return;
1052
+ }
1053
+ if (!fileNameToType[file.name] && fileNameToType[file.name] !== 0 && file.name != schemaFileName) {
1054
+ self.err("Missing or invalid type assigned to file " + file.name + ".");
1055
+ numProcessedFiles += 1;
1056
+ return;
1057
+ }
1058
+ const reader2 = new FileReader();
1059
+ reader2.onload = (event3) => {
1060
+ numProcessedFiles += 1;
1061
+ data.files.push({
1062
+ name: file.name,
1063
+ type: fileNameToType[file.name],
1064
+ content: event3.target.result
1065
+ });
1066
+ if (numProcessedFiles == files.length) {
1067
+ self.processData(data);
1068
+ }
1069
+ };
1070
+ reader2.onerror = () => {
1071
+ numProcessedFiles += 1;
1072
+ self.err("Error reading file " + file.name);
1073
+ if (numProcessedFiles == files.length) {
1074
+ self.processData(data);
1075
+ }
1076
+ };
1077
+ reader2.readAsText(file, "utf8");
1078
+ }
1079
+ };
1080
+ reader.onerror = () => {
1081
+ self.err("Error reading reference.txt.");
1082
+ };
1083
+ reader.readAsText(ref, "utf8");
1084
+ }
1085
+ // function to track and display accumulated error messages
1086
+ errHandler() {
1087
+ const errdiv = select_default("body").append("div");
1088
+ let mssg = "";
1089
+ return function(m) {
1090
+ if (!m) return;
1091
+ sayerror(errdiv, m);
1092
+ };
1093
+ }
1094
+ };
1095
+ function getParams() {
1096
+ const params = {};
1097
+ window.location.search.substr(1).split("&").forEach((kv) => {
1098
+ const [key, value] = kv.split("=");
1099
+ params[key] = value;
1100
+ });
1101
+ return params;
1102
+ }
1103
+
1104
+ // src/bulk.ui.js
1105
+ function bulkui(x, y, genomes, hostURL, holder, header) {
1106
+ let pane, inputdiv, gselect, filediv, saydiv, visualdiv;
1107
+ if (holder !== void 0) [inputdiv, gselect, filediv, saydiv, visualdiv] = renderSandboxFormDiv(holder, genomes);
1108
+ else {
1109
+ ;
1110
+ [pane, inputdiv, gselect, filediv, saydiv, visualdiv] = newpane3(x, y, genomes);
1111
+ pane.header.text("Load mutation from text files");
1112
+ }
1113
+ inputdiv.append("div").style("margin", "20px 0px").style("color", "#858585").html(`
1114
+ <p>Choose one file and upload to initiate the display panel.<br>From there you can add additional files.</p>
1115
+ <div>Supported data types:</div>
1116
+ <ul>
1117
+ <li>SNV and indel</li>
1118
+ <ul>
1119
+ <li><a href=https://drive.google.com/open?id=1OJ9aXq2_-a3BfIQdKLYCYzrJRTpu4_9i3gephTY-Z38 target=_blank>Format</a>,
1120
+ <a href=https://proteinpaint.stjude.org/ppdemo/hg19/heatmap/exampleFiles/example.snvindel.txt target=_blank>example file</a></li>
1121
+ </ul>
1122
+ <li>SV or fusion transcript</li>
1123
+ <ul>
1124
+ <li><a href=https://drive.google.com/open?id=1klDZ0MHVkQTW2-lCu_AvpRE4_FcbhdB-yI17wNdPaOM target=_blank>Tabular format</a>,
1125
+ <a href=https://proteinpaint.stjude.org/ppdemo/hg19/heatmap/exampleFiles/example.svfusion.txt target=_blank>example file</a>
1126
+ </li>
1127
+ <li>JSON-format, to come</li>
1128
+ </ul>
1129
+ <li>CNV, gene-level</li>
1130
+ <ul>
1131
+ <li><a href=https://drive.google.com/open?id=1WHptqOWNf96V0bYEDpj-EsKZGYnbBNc9aQIrhzdEJaU target=_blank>Format</a>,
1132
+ <a href=https://proteinpaint.stjude.org/ppdemo/hg19/heatmap/exampleFiles/example.cnv.txt target=_blank>example file</a>
1133
+ </li>
1134
+ </ul>
1135
+ <li>ITD</li>
1136
+ <ul>
1137
+ <li>Internal tandem duplication, in-frame</li>
1138
+ <li><a href=https://drive.google.com/open?id=1Bh9awBsraoHbV8iWXv_3oDeXMsjIAHaOKHr973IJyZc target=_blank>Format</a>,
1139
+ <a href=https://proteinpaint.stjude.org/ppdemo/hg19/heatmap/exampleFiles/example.itd.txt target=_blank>example file</a>
1140
+ </li>
1141
+ </ul>
1142
+ <li>Intragenic deletion, in-frame</li>
1143
+ <ul>
1144
+ <li><a href=https://drive.google.com/open?id=1tWbf3rg3BmVIZPGGPk023P0aBkDw_ry5XuZLGyGodyg target=_blank>Format</a>,
1145
+ <a href=https://proteinpaint.stjude.org/ppdemo/hg19/heatmap/exampleFiles/example.deletion.txt target=_blank>example file</a>
1146
+ </li>
1147
+ </ul>
1148
+ <li>Truncation</li>
1149
+ <ul>
1150
+ <li>Either N-terminus loss or C-terminus loss</li>
1151
+ <li><a href=https://drive.google.com/open?id=1P1g-Y8r30pSKfan1BhYZcsUtSk7wRb4plaO1S-JCJr4 target=_blank>Format</a>,
1152
+ <a href=https://proteinpaint.stjude.org/ppdemo/hg19/heatmap/exampleFiles/example.truncation.txt target=_blank>example file</a>
1153
+ </li>
1154
+ </ul>
1155
+ </ul>`);
1156
+ const fileui = () => {
1157
+ filediv.selectAll("*").remove();
1158
+ new ProjectHandler({
1159
+ bulkin,
1160
+ genomes,
1161
+ gselect,
1162
+ content2flag,
1163
+ flag2tp,
1164
+ filediv,
1165
+ init_bulk_flag
1166
+ });
1167
+ filediv.append("span").html("Select data type&nbsp;");
1168
+ const typeselect = filetypeselect(filediv).style("margin-right", "20px");
1169
+ const butt = filediv.append("input").attr("type", "file").on("change", (event) => {
1170
+ const flag2 = init_bulk_flag(genomes[gselect.options[gselect.selectedIndex].innerHTML]);
1171
+ flag2.geneToUpper = geneToUpper.property("checked");
1172
+ saydiv.text("");
1173
+ const file = event.target.files[0];
1174
+ if (!file) {
1175
+ fileui();
1176
+ return;
1177
+ }
1178
+ if (file.size == 0) {
1179
+ saydiv.text("Wrong file: " + file.name);
1180
+ fileui();
1181
+ return;
1182
+ }
1183
+ const reader = new FileReader();
1184
+ reader.onload = (event2) => {
1185
+ const error = content2flag(event2.target.result, typeselect.node().selectedIndex, flag2);
1186
+ if (error) {
1187
+ saydiv.text("Error: " + error);
1188
+ fileui();
1189
+ return;
1190
+ }
1191
+ flag2tp(flag2, file);
1192
+ };
1193
+ reader.onerror = function() {
1194
+ saydiv.text("Error reading file " + file.name);
1195
+ fileui();
1196
+ return;
1197
+ };
1198
+ saydiv.text("Parsing file " + file.name + " ...");
1199
+ reader.readAsText(file, "utf8");
1200
+ });
1201
+ setTimeout(() => butt.node().focus(), 1100);
1202
+ };
1203
+ fileui();
1204
+ filediv.append("span").html("<br/>Convert gene name to uppercase &nbsp;");
1205
+ const geneToUpper = filediv.append("span").append("input").attr("type", "checkbox").property("checked", true);
1206
+ function flag2tp(flag2, file, _cohort = null, ds = null) {
1207
+ if (typeof flag2 == "string") {
1208
+ saydiv.text(flag2);
1209
+ fileui();
1210
+ return;
1211
+ }
1212
+ saydiv.text("");
1213
+ fileui();
1214
+ const cohort = _cohort ? _cohort : Object.assign({
1215
+ genome: flag2.genome,
1216
+ name: file.name
1217
+ });
1218
+ const err2 = bulkin({
1219
+ flag: flag2,
1220
+ filename: file.name,
1221
+ cohort,
1222
+ flag2thisds: ds
1223
+ });
1224
+ if (err2) {
1225
+ saydiv.text("Error with " + file.name + ": " + err2);
1226
+ return;
1227
+ }
1228
+ if (flag2.good == 0) {
1229
+ saydiv.text("No mutations can be loaded");
1230
+ return;
1231
+ }
1232
+ let visual_holder;
1233
+ if (pane) {
1234
+ disappear(pane.pane);
1235
+ const pane2 = newpane({ x: 100, y: 100, toshrink: true });
1236
+ pane2.header.html('<span style="opacity:.5">FILE</span> ' + file.name);
1237
+ visual_holder = pane2.body;
1238
+ }
1239
+ if (holder !== void 0) {
1240
+ visual_holder = visualdiv.append("div").html('<span style="opacity:.5">FILE</span> ' + file.name);
1241
+ }
1242
+ inputdiv.selectAll("*").remove();
1243
+ import("./tp.ui-4QDX3FGM.js").then((tpui) => {
1244
+ tpui.default(cohort, visual_holder, hostURL);
1245
+ });
1246
+ return cohort;
1247
+ }
1248
+ return function content2flag2tp(file, type) {
1249
+ const error = content2flag(file.content, type, flag);
1250
+ if (error) {
1251
+ saydiv.text("Error: " + error);
1252
+ fileui();
1253
+ return;
1254
+ }
1255
+ flag2tp(flag, file);
1256
+ };
1257
+ }
1258
+ function content2flag(text, type, flag2) {
1259
+ if (!flag2) return "should not happen!";
1260
+ let err2;
1261
+ switch (type) {
1262
+ case 0:
1263
+ err2 = parse_snvindel(text, flag2);
1264
+ if (err2) return err2;
1265
+ break;
1266
+ case 1:
1267
+ err2 = parse_sv(text, flag2, true);
1268
+ if (err2) return err2;
1269
+ break;
1270
+ case 2:
1271
+ err2 = parse_sv(text, flag2, false);
1272
+ if (err2) return err2;
1273
+ break;
1274
+ case 3:
1275
+ err2 = parse_itd(text, flag2);
1276
+ if (err2) return err2;
1277
+ break;
1278
+ case 4:
1279
+ err2 = parse_del(text, flag2);
1280
+ if (err2) return err2;
1281
+ break;
1282
+ case 5:
1283
+ err2 = parse_trunc(text, flag2);
1284
+ if (err2) return err2;
1285
+ break;
1286
+ case 6:
1287
+ err2 = parse_cnv(text, flag2);
1288
+ if (err2) return err2;
1289
+ break;
1290
+ default:
1291
+ return "unknown option array index from file type <select>: " + type;
1292
+ }
1293
+ }
1294
+ function bulkin(p, callback = null) {
1295
+ const flag2 = p.flag;
1296
+ const cohort = p.cohort;
1297
+ if (!cohort.p2st) {
1298
+ cohort.p2st = {};
1299
+ }
1300
+ if (!cohort.dsset) {
1301
+ cohort.dsset = {};
1302
+ }
1303
+ if (!cohort.assaylst) {
1304
+ cohort.assaylst = [];
1305
+ }
1306
+ if (flag2.variantgene) {
1307
+ if (cohort.variantgene) {
1308
+ return "variantgene already set for this cohort";
1309
+ }
1310
+ cohort.variantgene = flag2.variantgene;
1311
+ }
1312
+ if (flag2.snv.badlines.length > 0) {
1313
+ bulk_badline(flag2.snv.header, flag2.snv.badlines);
1314
+ }
1315
+ if (flag2.fusion.badlines.length > 0) {
1316
+ bulk_badline(flag2.fusion.header, flag2.fusion.badlines);
1317
+ }
1318
+ if (flag2.sv.badlines.length > 0) {
1319
+ bulk_badline(flag2.sv.header, flag2.sv.badlines);
1320
+ }
1321
+ if (flag2.cnv.badlines.length > 0) {
1322
+ bulk_badline(flag2.cnv.header, flag2.cnv.badlines);
1323
+ }
1324
+ if (flag2.itd.badlines.length > 0) {
1325
+ bulk_badline(flag2.itd.header, flag2.itd.badlines);
1326
+ }
1327
+ if (flag2.del.badlines.length > 0) {
1328
+ bulk_badline(flag2.del.header, flag2.del.badlines);
1329
+ }
1330
+ if (flag2.truncation.badlines.length > 0) {
1331
+ bulk_badline(flag2.truncation.header, flag2.truncation.badlines);
1332
+ }
1333
+ if (flag2.good == 0) {
1334
+ return false;
1335
+ }
1336
+ const tmp = {};
1337
+ let hastumormaf = false;
1338
+ if (flag2.snv.loaded) {
1339
+ for (const i of flag2.snv.header) {
1340
+ tmp[i] = 1;
1341
+ }
1342
+ if ("maf_tumor_v1" in tmp && "maf_tumor_v2" in tmp) {
1343
+ hastumormaf = true;
1344
+ }
1345
+ }
1346
+ if (flag2.cnv.loaded) {
1347
+ for (const i of flag2.cnv.header) {
1348
+ tmp[i] = 1;
1349
+ }
1350
+ }
1351
+ if (flag2.fusion.loaded) {
1352
+ for (const i of flag2.fusion.header) {
1353
+ tmp[i] = 1;
1354
+ }
1355
+ }
1356
+ if (flag2.sv.loaded) {
1357
+ for (const i of flag2.sv.header) {
1358
+ tmp[i] = 1;
1359
+ }
1360
+ }
1361
+ if (flag2.itd.loaded) {
1362
+ for (const i of flag2.itd.header) {
1363
+ tmp[i] = 1;
1364
+ }
1365
+ }
1366
+ if (flag2.del.loaded) {
1367
+ for (const i of flag2.del.header) {
1368
+ tmp[i] = 1;
1369
+ }
1370
+ }
1371
+ if (flag2.truncation.loaded) {
1372
+ for (const i of flag2.truncation.header) {
1373
+ tmp[i] = 1;
1374
+ }
1375
+ }
1376
+ const hassample = "sample" in tmp || "patient" in tmp;
1377
+ const hasdisease = "disease" in tmp;
1378
+ const hasst = "sampletype" in tmp;
1379
+ let dsc;
1380
+ if (p.flag2thisds) {
1381
+ dsc = p.flag2thisds;
1382
+ if (hassample && !dsc.hassample) {
1383
+ return '"sample" column found in new data but not in existing data';
1384
+ }
1385
+ if (!hassample && dsc.hassample) {
1386
+ return '"sample" column found in existing data but not in new data';
1387
+ }
1388
+ if (hasdisease && !dsc.hasdisease) {
1389
+ return '"disease" column found in new data but not in existing data';
1390
+ }
1391
+ if (!hasdisease && dsc.hasdisease) {
1392
+ return '"disease" column found in existing data but not in new data';
1393
+ }
1394
+ if (hasst && !dsc.hasst) {
1395
+ return '"sampletype" column found in new data but not in existing data';
1396
+ }
1397
+ if (!hasst && dsc.hasst) {
1398
+ return '"sampletype" column found in existing data but not in new data';
1399
+ }
1400
+ for (const genename in flag2.data) {
1401
+ const lst = dsc.bulkdata[genename];
1402
+ if (lst) {
1403
+ dsc.bulkdata[genename] = lst.concat(flag2.data[genename]);
1404
+ } else {
1405
+ dsc.bulkdata[genename] = flag2.data[genename];
1406
+ }
1407
+ }
1408
+ } else {
1409
+ let dsname = p.filename + (flag2.tpsetname ? "_" + flag2.tpsetname : "");
1410
+ if (dsname in flag2.genome.datasets) {
1411
+ let j = 1;
1412
+ let n2 = dsname + " " + j;
1413
+ while (n2 in flag2.genome.datasets) {
1414
+ j++;
1415
+ n2 = dsname + " " + j;
1416
+ }
1417
+ dsname = n2;
1418
+ }
1419
+ dsc = {
1420
+ label: dsname,
1421
+ bulkdata: flag2.data,
1422
+ // official dataset don't have this
1423
+ hassample,
1424
+ hasdisease,
1425
+ hastumormaf,
1426
+ hasst,
1427
+ genome: cohort.genome,
1428
+ import: {},
1429
+ imported: {},
1430
+ importsilent: flag2.snv.silent == 0 ? false : flag2.snv.missense / flag2.snv.silent >= 5 ? false : true
1431
+ };
1432
+ flag2.genome.datasets[dsname] = dsc;
1433
+ cohort.dsset[dsname] = dsc;
1434
+ if (cohort.dbexpression) {
1435
+ if (cohort.dbexpression.tidy) {
1436
+ try {
1437
+ cohort.dbexpression.tidy = new Function(...cohort.dbexpression.tidy);
1438
+ } catch (e) {
1439
+ err("invalid JavaScript for dbexpression.tidy");
1440
+ delete cohort.dbexpression;
1441
+ }
1442
+ }
1443
+ dsc.dbexpression = cohort.dbexpression;
1444
+ }
1445
+ if (hasdisease) {
1446
+ dsc.stratify = [
1447
+ {
1448
+ label: "disease",
1449
+ attr1: { k: "disease", label: "disease" }
1450
+ }
1451
+ ];
1452
+ }
1453
+ }
1454
+ if (hassample) {
1455
+ for (const gene in flag2.data) {
1456
+ for (const m of flag2.data[gene]) {
1457
+ let pn = m.patient;
1458
+ if (!pn) {
1459
+ pn = m.sample;
1460
+ if (!pn) {
1461
+ continue;
1462
+ }
1463
+ }
1464
+ if (!cohort.p2st[pn]) {
1465
+ cohort.p2st[pn] = {};
1466
+ }
1467
+ let st = m.sampletype;
1468
+ if (!st) {
1469
+ st = pn;
1470
+ }
1471
+ if (!cohort.p2st[pn][st]) {
1472
+ cohort.p2st[pn][st] = {
1473
+ dsset: {},
1474
+ tktemplate: []
1475
+ };
1476
+ }
1477
+ if (!cohort.p2st[pn][st].dsset[dsc.label]) {
1478
+ cohort.p2st[pn][st].dsset[dsc.label] = [];
1479
+ }
1480
+ cohort.p2st[pn][st].dsset[dsc.label].push(m);
1481
+ }
1482
+ }
1483
+ }
1484
+ if (callback) callback();
1485
+ return false;
1486
+ }
1487
+ function bulkembed(arg) {
1488
+ if (!arg.name) arg.name = "Unnamed dataset";
1489
+ let holder = arg.holder;
1490
+ if (!holder) {
1491
+ const pane = newpane({ x: 100, y: 100 });
1492
+ holder = pane.body;
1493
+ }
1494
+ const saydiv = holder.append("div");
1495
+ new Promise((resolve, reject) => {
1496
+ const cohort = {
1497
+ dsset: {}
1498
+ };
1499
+ for (const k in arg) {
1500
+ if (k == "snvindel" || k == "svjson" || k == "cnv" || k == "sv" || k == "mutationset") {
1501
+ continue;
1502
+ }
1503
+ cohort[k] = arg[k];
1504
+ }
1505
+ resolve(cohort);
1506
+ }).then((cohort) => {
1507
+ if (!arg.snvindel && !arg.svjson && !arg.cnv && !arg.sv) return cohort;
1508
+ const flag2 = init_bulk_flag(cohort.genome);
1509
+ if (arg.snvindel) {
1510
+ const e = parse_snvindel(arg.snvindel, flag2);
1511
+ if (e) throw { message: "error in snvindel data: " + e };
1512
+ delete arg.snvindel;
1513
+ }
1514
+ if (arg.svjson) {
1515
+ const e = parse_svjson(arg.svjson, flag2);
1516
+ if (e) throw { message: "error in svjson data: " + e };
1517
+ delete arg.svjson;
1518
+ }
1519
+ if (arg.sv) {
1520
+ const e = parse_sv(arg.sv, flag2);
1521
+ if (e) throw { message: "error in svjson data: " + e };
1522
+ delete arg.sv;
1523
+ }
1524
+ if (arg.cnv) {
1525
+ const e = parse_cnv(arg.cnv, flag2);
1526
+ if (e) throw { message: "error in cnv data: " + e };
1527
+ delete arg.cnv;
1528
+ }
1529
+ const err2 = bulkin({
1530
+ flag: flag2,
1531
+ filename: arg.name,
1532
+ cohort
1533
+ });
1534
+ if (err2) throw { message: "Error parsing data: " + err2 };
1535
+ return cohort;
1536
+ }).then((cohort) => {
1537
+ if (!arg.mutationset) return cohort;
1538
+ if (!Array.isArray(arg.mutationset)) throw { message: "mutationset is not an array" };
1539
+ const tasks2 = [];
1540
+ for (const mset of arg.mutationset) {
1541
+ const flag2 = init_bulk_flag(cohort.genome);
1542
+ const tasks = [];
1543
+ if (mset.snvindel) {
1544
+ const req = new Request(arg.hostURL + "/textfile", {
1545
+ method: "POST",
1546
+ headers: { "content-type": "application/json" },
1547
+ body: '{"file":"' + mset.snvindel + '"}'
1548
+ });
1549
+ const task = fetch(req).then((data) => {
1550
+ return data.json();
1551
+ }).then((data) => {
1552
+ if (data.error) throw { message: "error with snvindel file: " + data.error };
1553
+ const e = parse_snvindel(data.text, flag2);
1554
+ if (e) throw { message: "error with snvindel file: " + e };
1555
+ });
1556
+ tasks.push(task);
1557
+ }
1558
+ if (mset.snvindel_url) {
1559
+ tasks.push(
1560
+ dofetch("urltextfile", { url: mset.snvindel_url }).then((data) => {
1561
+ if (data.error) throw { message: "cannot get snvindel file from url" };
1562
+ const e = parse_snvindel(data.text, flag2);
1563
+ if (e) throw { message: "error with snvindel file: " + e };
1564
+ })
1565
+ );
1566
+ }
1567
+ if (mset.cnv) {
1568
+ const req = new Request(arg.hostURL + "/textfile", {
1569
+ method: "POST",
1570
+ headers: { "content-type": "application/json" },
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
+ headers: { "content-type": "application/json" },
1595
+ body: '{"file":"' + mset.sv + '"}'
1596
+ });
1597
+ const task = fetch(req).then((data) => {
1598
+ return data.json();
1599
+ }).then((data) => {
1600
+ if (data.error) throw { message: "error with sv file: " + data.error };
1601
+ const e = parse_sv(data.text, flag2, true);
1602
+ if (e) throw { message: "error with sv file: " + e };
1603
+ });
1604
+ tasks.push(task);
1605
+ }
1606
+ if (mset.sv_url) {
1607
+ tasks.push(
1608
+ dofetch("urltextfile", { url: mset.sv_url }).then((data) => {
1609
+ if (data.error) throw { message: "cannot get sv file from url" };
1610
+ const e = parse_sv(data.text, flag2);
1611
+ if (e) throw { message: "error with sv file: " + e };
1612
+ })
1613
+ );
1614
+ }
1615
+ if (mset.fusion) {
1616
+ const req = new Request(arg.hostURL + "/textfile", {
1617
+ method: "POST",
1618
+ headers: { "content-type": "application/json" },
1619
+ body: '{"file":"' + mset.fusion + '"}'
1620
+ });
1621
+ const task = fetch(req).then((data) => {
1622
+ return data.json();
1623
+ }).then((data) => {
1624
+ if (data.error) throw { message: "error with fusion file: " + data.error };
1625
+ const e = parse_sv(data.text, flag2, false);
1626
+ if (e) throw { message: "error with fusion file: " + e };
1627
+ });
1628
+ tasks.push(task);
1629
+ }
1630
+ if (mset.svjson) {
1631
+ const req = new Request(arg.hostURL + "/textfile", {
1632
+ method: "POST",
1633
+ headers: { "content-type": "application/json" },
1634
+ body: '{"file":"' + mset.svjson + '"}'
1635
+ });
1636
+ const task = fetch(req).then((data) => {
1637
+ return data.json();
1638
+ }).then((data) => {
1639
+ if (data.error) throw { message: "error with svjson file: " + data.error };
1640
+ const e = parse_svjson(data.text, flag2, false);
1641
+ if (e) throw { message: "error with svjson file: " + e };
1642
+ });
1643
+ tasks.push(task);
1644
+ }
1645
+ if (mset.deletion) {
1646
+ const req = new Request(arg.hostURL + "/textfile", {
1647
+ method: "POST",
1648
+ headers: { "content-type": "application/json" },
1649
+ body: '{"file":"' + mset.deletion + '"}'
1650
+ });
1651
+ const task = fetch(req).then((data) => {
1652
+ return data.json();
1653
+ }).then((data) => {
1654
+ if (data.error) throw { message: "error with deletion file: " + data.error };
1655
+ const e = parse_del(data.text, flag2, false);
1656
+ if (e) throw { message: "error with deletion file: " + e };
1657
+ });
1658
+ tasks.push(task);
1659
+ }
1660
+ if (mset.deletion_url) {
1661
+ tasks.push(
1662
+ dofetch("urltextfile", { url: mset.deletion_url }).then((data) => {
1663
+ if (data.error) throw { message: "cannot get deletion file from url" };
1664
+ const e = parse_del(data.text, flag2);
1665
+ if (e) throw { message: "error with deletion file: " + e };
1666
+ })
1667
+ );
1668
+ }
1669
+ if (mset.truncation) {
1670
+ const req = new Request(arg.hostURL + "/textfile", {
1671
+ method: "POST",
1672
+ headers: { "content-type": "application/json" },
1673
+ body: '{"file":"' + mset.truncation + '"}'
1674
+ });
1675
+ const task = fetch(req).then((data) => {
1676
+ return data.json();
1677
+ }).then((data) => {
1678
+ if (data.error) throw { message: "error with truncation file: " + data.error };
1679
+ const e = parse_trunc(data.text, flag2, false);
1680
+ if (e) throw { message: "error with truncation file: " + e };
1681
+ });
1682
+ tasks.push(task);
1683
+ }
1684
+ if (mset.truncation_url) {
1685
+ tasks.push(
1686
+ dofetch("urltextfile", { url: mset.truncation_url }).then((data) => {
1687
+ if (data.error) throw { message: "cannot get truncation file from url" };
1688
+ const e = parse_trunc(data.text, flag2, false);
1689
+ if (e) throw { message: "error with truncation file: " + e };
1690
+ })
1691
+ );
1692
+ }
1693
+ if (mset.itd) {
1694
+ const req = new Request(arg.hostURL + "/textfile", {
1695
+ method: "POST",
1696
+ headers: { "content-type": "application/json" },
1697
+ body: '{"file":"' + mset.itd + '"}'
1698
+ });
1699
+ const task = fetch(req).then((data) => {
1700
+ return data.json();
1701
+ }).then((data) => {
1702
+ if (data.error) throw { message: "error with itd file: " + data.error };
1703
+ const e = parse_itd(data.text, flag2, false);
1704
+ if (e) throw { message: "error with itd file: " + e };
1705
+ });
1706
+ tasks.push(task);
1707
+ }
1708
+ if (mset.itd_url) {
1709
+ tasks.push(
1710
+ dofetch("urltextfile", { url: mset.itd_url }).then((data) => {
1711
+ if (data.error) throw { message: "cannot get itd file from url" };
1712
+ const e = parse_itd(data.text, flag2, false);
1713
+ if (e) throw { message: "error with itd file: " + e };
1714
+ })
1715
+ );
1716
+ }
1717
+ const task2 = Promise.all(tasks).then((data) => {
1718
+ const err2 = bulkin({
1719
+ flag: flag2,
1720
+ filename: arg.name,
1721
+ cohort
1722
+ });
1723
+ if (err2) throw { message: "Error parsing data from " + mset.name + ": " + err2 };
1724
+ });
1725
+ tasks2.push(task2);
1726
+ }
1727
+ return Promise.all(tasks2).then((data) => {
1728
+ return cohort;
1729
+ });
1730
+ }).then((cohort) => {
1731
+ const err2 = tpinit(cohort);
1732
+ if (err2) throw { message: "Error parsing study: " + err2 };
1733
+ saydiv.text("");
1734
+ import("./tp.ui-4QDX3FGM.js").then((p) => {
1735
+ p.default(cohort, holder, arg.hostURL);
1736
+ });
1737
+ }).catch((err2) => {
1738
+ saydiv.text(err2.message);
1739
+ if (err2.stack) {
1740
+ console.log(err2.stack);
1741
+ }
1742
+ });
1743
+ }
1744
+ function parse_snvindel(text, flag2) {
1745
+ const lines = text.trim().split(/\r?\n/);
1746
+ let headerline = lines[0];
1747
+ let lineidx = 0;
1748
+ while (headerline[0] == "#") {
1749
+ lineidx++;
1750
+ headerline = lines[lineidx];
1751
+ }
1752
+ if (!headerline) return "no header line";
1753
+ const err2 = parseheader2(headerline, flag2);
1754
+ if (err2) return "header error: " + err2;
1755
+ for (let i = lineidx + 1; i < lines.length; i++) {
1756
+ if (lines[i] == "") continue;
1757
+ if (lines[i][0] == "#") continue;
1758
+ parseline2(i, lines[i], flag2);
1759
+ }
1760
+ }
1761
+ function parse_svjson(text, flag2) {
1762
+ const lines = text.split(/\r?\n/);
1763
+ let headerline = lines[0];
1764
+ let lineidx = 0;
1765
+ while (headerline[0] == "#") {
1766
+ lineidx++;
1767
+ headerline = lines[lineidx];
1768
+ }
1769
+ if (!headerline) return "no header line";
1770
+ const [err2, header] = parseheader3(headerline, flag2);
1771
+ if (err2) return "header error: " + err2;
1772
+ for (let i = lineidx + 1; i < lines.length; i++) {
1773
+ if (lines[i] == "") continue;
1774
+ if (lines[i][0] == "#") continue;
1775
+ parseline3(i, lines[i], flag2, header);
1776
+ }
1777
+ }
1778
+ function parse_cnv(text, flag2) {
1779
+ const lines = text.split(/\r?\n/);
1780
+ let headerline = lines[0];
1781
+ let lineidx = 0;
1782
+ while (headerline[0] == "#") {
1783
+ lineidx++;
1784
+ headerline = lines[lineidx];
1785
+ }
1786
+ if (!headerline) return "no header line";
1787
+ const err2 = parseheader4(headerline, flag2);
1788
+ if (err2) return "header error: " + err2;
1789
+ for (let i = lineidx + 1; i < lines.length; i++) {
1790
+ if (lines[i] == "") continue;
1791
+ if (lines[i][0] == "#") continue;
1792
+ parseline4(i, lines[i], flag2);
1793
+ }
1794
+ }
1795
+ function parse_itd(text, flag2) {
1796
+ const lines = text.split(/\r?\n/);
1797
+ let headerline = lines[0];
1798
+ let lineidx = 0;
1799
+ while (headerline[0] == "#") {
1800
+ lineidx++;
1801
+ headerline = lines[lineidx];
1802
+ }
1803
+ if (!headerline) return "no header line";
1804
+ const err2 = parseheader5(headerline, flag2);
1805
+ if (err2) return "header error: " + err2;
1806
+ for (let i = lineidx + 1; i < lines.length; i++) {
1807
+ if (lines[i] == "") continue;
1808
+ if (lines[i][0] == "#") continue;
1809
+ parseline5(i, lines[i], flag2);
1810
+ }
1811
+ }
1812
+ function parse_del(text, flag2) {
1813
+ const lines = text.split(/\r?\n/);
1814
+ let headerline = lines[0];
1815
+ let lineidx = 0;
1816
+ while (headerline[0] == "#") {
1817
+ lineidx++;
1818
+ headerline = lines[lineidx];
1819
+ }
1820
+ if (!headerline) return "no header line";
1821
+ const err2 = parseheader6(headerline, flag2);
1822
+ if (err2) return "header error: " + err2;
1823
+ for (let i = lineidx + 1; i < lines.length; i++) {
1824
+ if (lines[i] == "") continue;
1825
+ if (lines[i][0] == "#") continue;
1826
+ parseline6(i, lines[i], flag2);
1827
+ }
1828
+ }
1829
+ function parse_trunc(text, flag2) {
1830
+ const lines = text.split(/\r?\n/);
1831
+ let headerline = lines[0];
1832
+ let lineidx = 0;
1833
+ while (headerline[0] == "#") {
1834
+ lineidx++;
1835
+ headerline = lines[lineidx];
1836
+ }
1837
+ if (!headerline) return "no header line";
1838
+ const err2 = parseheader7(headerline, flag2);
1839
+ if (err2) return "header error: " + err2;
1840
+ for (let i = lineidx + 1; i < lines.length; i++) {
1841
+ if (lines[i] == "") continue;
1842
+ if (lines[i][0] == "#") continue;
1843
+ parseline7(i, lines[i], flag2);
1844
+ }
1845
+ }
1846
+ function parse_sv(text, flag2, isSv) {
1847
+ const lines = text.split(/\r?\n/);
1848
+ let headerline = lines[0];
1849
+ let lineidx = 0;
1850
+ while (headerline[0] == "#") {
1851
+ lineidx++;
1852
+ headerline = lines[lineidx];
1853
+ }
1854
+ if (!headerline) return "no header line";
1855
+ const err2 = parseheader(headerline, flag2, isSv);
1856
+ if (err2) return "header error: " + err2;
1857
+ for (let i = lineidx + 1; i < lines.length; i++) {
1858
+ if (lines[i] == "") continue;
1859
+ if (lines[i][0] == "#") continue;
1860
+ parseline(i, lines[i], flag2, isSv);
1861
+ }
1862
+ }
1863
+
1864
+ // src/tp.init.js
1865
+ function tpinit(cohort) {
1866
+ if (!cohort.p2st) {
1867
+ cohort.p2st = {};
1868
+ }
1869
+ if (!cohort.assays) {
1870
+ cohort.assays = [];
1871
+ }
1872
+ if (!Array.isArray(cohort.assays)) {
1873
+ return ".assays should be an array";
1874
+ }
1875
+ cohort.assaylst = [];
1876
+ let assaynum = 0;
1877
+ for (const assayname of cohort.assays) {
1878
+ const rawassay = cohort[assayname];
1879
+ if (!rawassay) {
1880
+ return 'Assay "' + assayname + '" not found in cohort';
1881
+ }
1882
+ const config = rawassay.config;
1883
+ if (!config) {
1884
+ return '.config object missing for assay "' + assayname + '"';
1885
+ }
1886
+ delete rawassay.config;
1887
+ if (!config.type) {
1888
+ return '.config.type missing for assay "' + assayname + '"';
1889
+ }
1890
+ if (config.type.toLowerCase() == "vcf") {
1891
+ config.type = tkt.ds;
1892
+ config.isvcf = true;
1893
+ } else {
1894
+ if (!validtkt(config.type)) {
1895
+ return 'unknown .config.type "' + config.type + '" for assay "' + assayname + '"';
1896
+ }
1897
+ }
1898
+ config.id = (++assaynum).toString();
1899
+ if (!config.name) {
1900
+ config.name = assayname;
1901
+ }
1902
+ if (config.type == tkt.junction) {
1903
+ if (config.readcountcutoff) {
1904
+ if (!Number.isInteger(config.readcountcutoff) || config.readcountcutoff < 0) {
1905
+ return 'invalid .config.readcountcutoff for assay "' + assayname + '"';
1906
+ }
1907
+ }
1908
+ }
1909
+ cohort.assaylst.push(config);
1910
+ for (const pn in rawassay) {
1911
+ if (!cohort.p2st[pn]) {
1912
+ cohort.p2st[pn] = {};
1913
+ }
1914
+ for (const st in rawassay[pn]) {
1915
+ if (!cohort.p2st[pn][st]) {
1916
+ cohort.p2st[pn][st] = {
1917
+ tktemplate: []
1918
+ };
1919
+ }
1920
+ if (config.type == tkt.vafs1) {
1921
+ for (const name in rawassay[pn][st]) {
1922
+ const tk = rawassay[pn][st][name];
1923
+ if (!tk.file && !tk.url) {
1924
+ return "no file or URL for " + name + " vafs1 of " + pn + ", " + st;
1925
+ }
1926
+ tk.type = tkt.vafs1;
1927
+ tk.patient = pn;
1928
+ tk.sampletype = st;
1929
+ tk.assayname = assayname;
1930
+ tk.id = config.id;
1931
+ tk.tkid = Math.random().toString();
1932
+ if (!tk.name) {
1933
+ tk.name = name + " vaf";
1934
+ }
1935
+ cohort.p2st[pn][st].tktemplate.push(tk);
1936
+ }
1937
+ continue;
1938
+ }
1939
+ let rawtklst = [];
1940
+ if (Array.isArray(rawassay[pn][st])) {
1941
+ rawtklst = rawassay[pn][st];
1942
+ } else {
1943
+ rawtklst.push(rawassay[pn][st]);
1944
+ }
1945
+ for (const _tk of rawtklst) {
1946
+ let tk = _tk;
1947
+ if (!tk.file && !tk.url) {
1948
+ return "track has no file or url (sample: " + pn + ", assay: " + assayname + ")";
1949
+ }
1950
+ if (tk.name) {
1951
+ } else if (tk.partname) {
1952
+ tk.name = pn + (st == pn ? "" : " " + st) + " " + assayname + " " + tk.partname;
1953
+ } else {
1954
+ tk.name = pn + (st == pn ? "" : " " + st) + " " + assayname;
1955
+ }
1956
+ if (config.isvcf) {
1957
+ const [err2, tk2] = vcf2dstk({
1958
+ name: tk.name,
1959
+ file: tk.file,
1960
+ url: tk.url
1961
+ });
1962
+ if (err2) {
1963
+ return "VCF track error: " + err2;
1964
+ }
1965
+ tk = tk2;
1966
+ } else {
1967
+ if (tk.type) {
1968
+ if (!validtkt(tk.type)) {
1969
+ return 'invalid track type "' + tk.type + '" (sample: ' + pn + ", assay: " + assayname + ")";
1970
+ }
1971
+ } else {
1972
+ tk.type = config.type;
1973
+ }
1974
+ }
1975
+ tk.patient = pn;
1976
+ tk.sampletype = st;
1977
+ tk.assayname = assayname;
1978
+ tk.id = config.id;
1979
+ tk.tkid = Math.random().toString();
1980
+ cohort.p2st[pn][st].tktemplate.push(tk);
1981
+ switch (config.type) {
1982
+ case tkt.bigwig:
1983
+ const e = tidy_qtk(tk, config);
1984
+ if (e) {
1985
+ return "Assay " + assayname + ": " + config.type + " track error: " + e;
1986
+ }
1987
+ break;
1988
+ case tkt.junction:
1989
+ tk.categories = config.categories;
1990
+ tk.readcountcutoff = config.readcountcutoff;
1991
+ break;
1992
+ }
1993
+ }
1994
+ }
1995
+ }
1996
+ }
1997
+ delete cohort.assays;
1998
+ {
1999
+ const err2 = cohort2genometkset(cohort);
2000
+ if (err2) {
2001
+ return "Error: " + err2;
2002
+ }
2003
+ }
2004
+ if (cohort.patientannotation) {
2005
+ const err2 = parse_patientannotation(cohort);
2006
+ if (err2) return err2;
2007
+ }
2008
+ if (cohort.browserview) {
2009
+ const err2 = parse_browserview(cohort);
2010
+ if (err2) return err2;
2011
+ }
2012
+ if (cohort.e2pca) {
2013
+ if (!cohort.e2pca.list) return ".list missing from e2pca";
2014
+ if (!Array.isArray(cohort.e2pca.list)) return "e2pca.list should be an array";
2015
+ if (cohort.e2pca.list.length == 0) return "e2pca.list[] length 0";
2016
+ if (!cohort.e2pca.label) {
2017
+ cohort.e2pca.label = "Expression - PCA";
2018
+ }
2019
+ for (const obj of cohort.e2pca.list) {
2020
+ if (!obj.vectorfile) return "vectorfile missing from e2pca";
2021
+ if (!obj.dbfile) return "dbfile missing from e2pca";
2022
+ }
2023
+ }
2024
+ return;
2025
+ }
2026
+ function loadstudycohort(genomes, file, holder, hostURL, jwt, noshow, app) {
2027
+ const wait = holder.append("div").style("color", "#858585");
2028
+ wait.text("Loading " + file + " ...");
2029
+ return fetch(hostURL + "/study", {
2030
+ method: "POST",
2031
+ headers: { "content-type": "application/json" },
2032
+ body: JSON.stringify({ file, jwt })
2033
+ }).then((res) => res.json()).then((data) => {
2034
+ if (!data) {
2035
+ wait.text("Server error!");
2036
+ return;
2037
+ }
2038
+ if (data.error) {
2039
+ wait.text("Error loading study: " + data.error);
2040
+ return;
2041
+ }
2042
+ const cohort = data.cohort;
2043
+ if (!cohort) {
2044
+ wait.text(".cohort missing");
2045
+ return;
2046
+ }
2047
+ if (!cohort.genome) {
2048
+ wait.text("No genome specified in the cohort JSON content");
2049
+ return;
2050
+ }
2051
+ const g = genomes[cohort.genome];
2052
+ if (!g) {
2053
+ wait.text("Invalid genome from cohort: " + cohort.genome);
2054
+ return;
2055
+ }
2056
+ cohort.genome = g;
2057
+ cohort.jwt = jwt;
2058
+ if (!data.flagset) {
2059
+ wait.text(".flagset missing");
2060
+ return;
2061
+ }
2062
+ wait.text("");
2063
+ cohort.dsset = {};
2064
+ for (const k in data.flagset) {
2065
+ const flag2 = data.flagset[k];
2066
+ flag2.genome = g;
2067
+ bulkin({
2068
+ flag: flag2,
2069
+ filename: file,
2070
+ cohort,
2071
+ err: (m) => sayerror(wait, m)
2072
+ });
2073
+ }
2074
+ const err2 = tpinit(cohort);
2075
+ if (err2) {
2076
+ sayerror(wait, err2);
2077
+ }
2078
+ if (!noshow) {
2079
+ return import("./tp.ui-4QDX3FGM.js").then(async (p) => {
2080
+ getsjcharts().catch(console.error);
2081
+ p.default(cohort, holder, hostURL, app);
2082
+ return app;
2083
+ });
2084
+ }
2085
+ });
2086
+ }
2087
+ function tidy_qtk(tk, config) {
2088
+ if (!config) {
2089
+ config = {};
2090
+ }
2091
+ if (!tk.file && !tk.url) {
2092
+ return "no file or url";
2093
+ }
2094
+ if (!tk.pcolor) {
2095
+ tk.pcolor = config.pcolor || "#0066CC";
2096
+ }
2097
+ if (!tk.pcolor2) {
2098
+ tk.pcolor2 = config.pcolor2 || "#CC0000";
2099
+ }
2100
+ if (!tk.ncolor) {
2101
+ tk.ncolor = config.ncolor || "#FF850A";
2102
+ }
2103
+ if (!tk.ncolor2) {
2104
+ tk.ncolor2 = config.ncolor2 || "#0A85FF";
2105
+ }
2106
+ if (!tk.height) {
2107
+ tk.height = config.height || 50;
2108
+ }
2109
+ const scale = {};
2110
+ if (config.scale) {
2111
+ for (const k in config.scale) {
2112
+ scale[k] = config.scale[k];
2113
+ }
2114
+ }
2115
+ if (tk.scale) {
2116
+ for (const k in tk.scale) {
2117
+ scale[k] = tk.scale[k];
2118
+ }
2119
+ }
2120
+ scale.auto = true;
2121
+ if (Number.isFinite(scale.min) && Number.isFinite(scale.max)) {
2122
+ delete scale.auto;
2123
+ } else if (Number.isFinite(scale.percentile)) {
2124
+ delete scale.auto;
2125
+ }
2126
+ tk.scale = scale;
2127
+ }
2128
+ function cohort2genometkset(cohort) {
2129
+ const lst = [];
2130
+ for (const pn in cohort.p2st) {
2131
+ for (const st in cohort.p2st[pn]) {
2132
+ const templates = cohort.p2st[pn][st].tktemplate;
2133
+ if (!templates) continue;
2134
+ for (const t of templates) {
2135
+ lst.push(t);
2136
+ }
2137
+ }
2138
+ }
2139
+ if (cohort.browserview && cohort.browserview.assays) {
2140
+ for (const assayname in cohort.browserview.assays) {
2141
+ const assayview = cohort.browserview.assays[assayname];
2142
+ if (assayview.combined && assayview.combinetk) {
2143
+ lst.push(assayview.combinetk);
2144
+ }
2145
+ }
2146
+ }
2147
+ if (!cohort.genome.tkset) {
2148
+ cohort.genome.tkset = [];
2149
+ }
2150
+ const thisset = {
2151
+ name: cohort.name,
2152
+ tklst: lst
2153
+ };
2154
+ if (cohort.trackfacets) {
2155
+ if (!Array.isArray(cohort.trackfacets)) {
2156
+ return ".trackfacets is not an array";
2157
+ }
2158
+ const lst2 = [];
2159
+ for (const fc of cohort.trackfacets) {
2160
+ if (!fc.samples) {
2161
+ return "trackfacets: .samples missing from facet " + fc.name;
2162
+ }
2163
+ if (!Array.isArray(fc.samples)) {
2164
+ return "trackfacets: .samples is not array from facet " + fc.name;
2165
+ }
2166
+ if (!fc.assays) {
2167
+ return "trackfacets: .assays missing from a facet " + fc.name;
2168
+ }
2169
+ if (!Array.isArray(fc.assays)) {
2170
+ return "trackfacets: .assays is not array from a facet " + fc.name;
2171
+ }
2172
+ lst2.push(fc);
2173
+ }
2174
+ if (lst2.length) {
2175
+ thisset.facetlst = lst2;
2176
+ }
2177
+ }
2178
+ cohort.genome.tkset.push(thisset);
2179
+ return null;
2180
+ }
2181
+ function parse_browserview(cohort) {
2182
+ if (cohort.browserview.position) {
2183
+ let pos;
2184
+ if (typeof cohort.browserview.position == "string") {
2185
+ pos = string2pos(cohort.browserview.position, cohort.genome);
2186
+ if (!pos) {
2187
+ return ".browserview.position invalid value";
2188
+ }
2189
+ } else {
2190
+ pos = cohort.browserview.position;
2191
+ }
2192
+ const e = invalidcoord(cohort.genome, pos.chr, pos.start, pos.stop);
2193
+ if (e) {
2194
+ return ".browserview.position error: " + e;
2195
+ }
2196
+ cohort.browserview.position = pos;
2197
+ } else {
2198
+ cohort.browserview.position = {
2199
+ chr: cohort.genome.defaultcoord.chr,
2200
+ start: cohort.genome.defaultcoord.start,
2201
+ stop: cohort.genome.defaultcoord.stop
2202
+ };
2203
+ }
2204
+ if (cohort.browserview.assays) {
2205
+ for (const assayname in cohort.browserview.assays) {
2206
+ if (typeof cohort.browserview.assays[assayname] != "object") {
2207
+ cohort.browserview.assays[assayname] = {};
2208
+ }
2209
+ const assayview = cohort.browserview.assays[assayname];
2210
+ for (const a of cohort.assaylst) {
2211
+ if (a.name == assayname) {
2212
+ assayview.assayobj = a;
2213
+ break;
2214
+ }
2215
+ }
2216
+ if (!assayview.assayobj) {
2217
+ console.log("missing assayobj for assayview of " + assayname);
2218
+ continue;
2219
+ }
2220
+ if (assayview.sum_view) {
2221
+ delete assayview.sum_view;
2222
+ assayview.combined = true;
2223
+ }
2224
+ if (assayview.combined) {
2225
+ const combinetk = {};
2226
+ for (const k in assayview.assayobj) {
2227
+ combinetk[k] = assayview.assayobj[k];
2228
+ }
2229
+ for (const k in assayview) {
2230
+ if (k == "assayobj") continue;
2231
+ combinetk[k] = assayview[k];
2232
+ }
2233
+ if (!combinetk.name) {
2234
+ combinetk.name = assayname;
2235
+ }
2236
+ combinetk.tracks = [];
2237
+ for (const pn in cohort.p2st) {
2238
+ for (const st in cohort.p2st[pn]) {
2239
+ for (const t of cohort.p2st[pn][st].tktemplate) {
2240
+ if (t.id == assayview.assayobj.id) {
2241
+ t.patient = pn;
2242
+ t.sampletype = st;
2243
+ combinetk.tracks.push(t);
2244
+ }
2245
+ }
2246
+ }
2247
+ }
2248
+ if (combinetk.isvcf) {
2249
+ combinetk.ds = {
2250
+ id2vcf: {},
2251
+ label: combinetk.name
2252
+ };
2253
+ for (const t of combinetk.tracks) {
2254
+ for (const i in t.ds.id2vcf) {
2255
+ t.__vcfobj = t.ds.id2vcf[i];
2256
+ }
2257
+ combinetk.ds.id2vcf[t.__vcfobj.vcfid] = t.__vcfobj;
2258
+ }
2259
+ }
2260
+ assayview.combinetk = combinetk;
2261
+ }
2262
+ }
2263
+ }
2264
+ if (cohort.browserview.defaultassaytracks) {
2265
+ if (!Array.isArray(cohort.browserview.defaultassaytracks)) return ".browserview.defaultassaytracks must be array";
2266
+ for (let i = 0; i < cohort.browserview.defaultassaytracks.length; i++) {
2267
+ const t = cohort.browserview.defaultassaytracks[i];
2268
+ if (!t.assay) return ".assay missing from .defaultassaytracks #" + (i + 1);
2269
+ if (!cohort[t.assay]) return "unknown assay name from .defaultassaytracks #" + (i + 1) + ": " + t.assay;
2270
+ if (!t.level1) return ".level1 missing from .defaultassaytracks #" + (i + 1);
2271
+ if (!cohort[t.assay][t.level1])
2272
+ return "level1 not exist in assay from .defaultassaytracks #" + (i + 1) + ": " + t.level1;
2273
+ if (t.level2) {
2274
+ if (!cohort[t.assay][t.level1][t.level2])
2275
+ return "level2 not exist in assay from .defaultassaytracks #" + (i + 1) + ": " + t.level2;
2276
+ }
2277
+ }
2278
+ }
2279
+ return null;
2280
+ }
2281
+ function parse_patientannotation(cohort) {
2282
+ if (!cohort.patientannotation.annotation) {
2283
+ return ".patientannotation.annotation missing";
2284
+ }
2285
+ if (!cohort.patientannotation.metadata) {
2286
+ return ".patientannotation.metadata missing";
2287
+ }
2288
+ if (!Array.isArray(cohort.patientannotation.metadata)) {
2289
+ return ".patientannotation.metadata should be an array";
2290
+ }
2291
+ const mdh = {};
2292
+ for (const md of cohort.patientannotation.metadata) {
2293
+ if (md.key == void 0) {
2294
+ return "patientannotation: key missing for a metadata term";
2295
+ }
2296
+ if (!md.values) {
2297
+ return "patientannotation: values missing for metadata term " + md.key;
2298
+ }
2299
+ if (!Array.isArray(md.values)) {
2300
+ return "patientannotation: .values not an array for metadata term " + md.key;
2301
+ }
2302
+ if (!md.label) {
2303
+ md.label = md.key;
2304
+ }
2305
+ mdh[md.key] = {
2306
+ label: md.label,
2307
+ values: {}
2308
+ };
2309
+ const colorfunc = ordinal(category10_default);
2310
+ for (const at of md.values) {
2311
+ if (at.key == void 0) {
2312
+ return "key missing for an attribute of term " + md.key;
2313
+ }
2314
+ if (!at.label) {
2315
+ at.label = at.key;
2316
+ }
2317
+ if (!at.color) {
2318
+ at.color = colorfunc(at.key);
2319
+ }
2320
+ mdh[md.key].values[at.key] = at;
2321
+ }
2322
+ }
2323
+ cohort.patientannotation.mdh = mdh;
2324
+ return null;
2325
+ }
2326
+
2327
+ export {
2328
+ loadstudycohort,
2329
+ bulkui,
2330
+ content2flag,
2331
+ bulkin,
2332
+ bulkembed
2333
+ };
2334
+ //# sourceMappingURL=chunk-IT7EE7LY.js.map