@sjcrh/proteinpaint-client 2.146.4-1 → 2.147.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 (866) hide show
  1. package/dist/2dmaf-OQWBGVA5.js +1366 -0
  2. package/dist/AIProjectAdmin-3XLB3RBL.js +624 -0
  3. package/dist/AppHeader-VBNUXO7V.js +815 -0
  4. package/dist/BoxPlot-O7UI5OBK.js +41 -0
  5. package/dist/CorrelationVolcano-HJL3IGIM.js +618 -0
  6. package/dist/DifferentialAnalysis-7ER22PXQ.js +224 -0
  7. package/dist/Disco-C56JNC4Y.js +2754 -0
  8. package/dist/Disco.UI-EFXQESKI.js +237 -0
  9. package/dist/HicApp-BRV3KL53.js +2220 -0
  10. package/dist/SC-43I4D5VK.js +559 -0
  11. package/dist/Volcano-N73WNULV.js +45 -0
  12. package/dist/WSIViewer-D3ES5DI4.js +46641 -0
  13. package/dist/WSIViewer-D3ES5DI4.js.map +7 -0
  14. package/dist/WsiSamplesPlot-7KNSVQDD.js +154 -0
  15. package/dist/adSandbox-EOVC26A6.js +31 -0
  16. package/dist/app-4G6ZBN4X.js +30 -0
  17. package/dist/app-Y3YS3BID.js +52 -0
  18. package/dist/app.js +15 -15
  19. package/dist/bam-IUUQXY5Y.js +836 -0
  20. package/dist/barchart-MOYKOKQS.js +46 -0
  21. package/dist/barchart.data-IEL6KSLJ.js +32 -0
  22. package/dist/barchart.events-Z7QOLPWN.js +40 -0
  23. package/dist/barchart.integration.spec-G7PFFUGF.js +1555 -0
  24. package/dist/block-NBO4UBI7.js +6293 -0
  25. package/dist/block.init-NNS4ANQE.js +31 -0
  26. package/dist/block.mds.expressionrank-ODTPNOK3.js +352 -0
  27. package/dist/block.mds.geneboxplot-KC56DQOZ.js +821 -0
  28. package/dist/block.mds.junction-TEHKBK4R.js +1538 -0
  29. package/dist/block.mds.svcnv-55DPUJXC.js +6794 -0
  30. package/dist/block.svg-P7TX5JH4.js +152 -0
  31. package/dist/block.svg-P7TX5JH4.js.map +7 -0
  32. package/dist/block.tk.aicheck-3HNUORLT.js +276 -0
  33. package/dist/block.tk.ase-NMH4T6CZ.js +358 -0
  34. package/dist/block.tk.bam-N77FZEJ4.js +1899 -0
  35. package/dist/block.tk.bedgraphdot-7HMT5SHP.js +377 -0
  36. package/dist/block.tk.bigwig.ui-7ZKDHYHC.js +204 -0
  37. package/dist/block.tk.hicstraw-L2H4ZDQA.js +816 -0
  38. package/dist/block.tk.junction-WZANWQ2E.js +2357 -0
  39. package/dist/block.tk.junction.textmatrixui-VAZV3DYJ.js +192 -0
  40. package/dist/block.tk.ld-KUTCZV5R.js +92 -0
  41. package/dist/block.tk.menu-ZNU33CCX.js +1022 -0
  42. package/dist/block.tk.pgv-XFSLEWUO.js +937 -0
  43. package/dist/brainImaging-KCJ4SP5R.js +419 -0
  44. package/dist/chat-OL7SDF4V.js +121 -0
  45. package/dist/chunk-24OPGQ4S.js +604 -0
  46. package/dist/chunk-24OPGQ4S.js.map +7 -0
  47. package/dist/chunk-2CLJHVGK.js +1074 -0
  48. package/dist/chunk-2GRNFI7P.js +619 -0
  49. package/dist/chunk-34NFZDPP.js +2734 -0
  50. package/dist/chunk-34NFZDPP.js.map +7 -0
  51. package/dist/chunk-3PSPKZR3.js +95 -0
  52. package/dist/chunk-3XNTEIPM.js +442 -0
  53. package/dist/chunk-4JTNXI3N.js +101 -0
  54. package/dist/chunk-4JXJ4UBP.js +1643 -0
  55. package/dist/chunk-4OWX23N4.js +14 -0
  56. package/dist/chunk-4QXJ36HV.js +1275 -0
  57. package/dist/chunk-4YNEZISK.js +193 -0
  58. package/dist/chunk-5GYHGTRN.js +14766 -0
  59. package/dist/chunk-5GYHGTRN.js.map +7 -0
  60. package/dist/chunk-5PVSNNZS.js +459 -0
  61. package/dist/chunk-5PVSNNZS.js.map +7 -0
  62. package/dist/chunk-5U3ZO5HT.js +413 -0
  63. package/dist/chunk-5VJ6L4HP.js +297 -0
  64. package/dist/chunk-6Q2KPDH6.js +744 -0
  65. package/dist/chunk-6Q2KPDH6.js.map +7 -0
  66. package/dist/chunk-6ZYRSN4R.js +482 -0
  67. package/dist/chunk-6ZYRSN4R.js.map +7 -0
  68. package/dist/chunk-73DVVHY7.js +133 -0
  69. package/dist/chunk-77JHAESF.js +385 -0
  70. package/dist/chunk-77JHAESF.js.map +7 -0
  71. package/dist/chunk-7FDVPL6E.js +381 -0
  72. package/dist/chunk-7FOCC2HQ.js +31 -0
  73. package/dist/chunk-AHBQHHH5.js +494 -0
  74. package/dist/chunk-AHBQHHH5.js.map +7 -0
  75. package/dist/chunk-BW2RLSXS.js +272 -0
  76. package/dist/chunk-BX6ANKGQ.js +163 -0
  77. package/dist/chunk-BX6ANKGQ.js.map +7 -0
  78. package/dist/chunk-CFQQBWWZ.js +360 -0
  79. package/dist/chunk-CRH6WHU2.js +287 -0
  80. package/dist/chunk-CWQMRBZQ.js +396 -0
  81. package/dist/chunk-D4DDFKHV.js +99 -0
  82. package/dist/chunk-DNQYUNC2.js +2327 -0
  83. package/dist/chunk-DUEH7N7W.js +91 -0
  84. package/dist/chunk-E3PED6HJ.js +2780 -0
  85. package/dist/chunk-EG5PC7UE.js +330 -0
  86. package/dist/chunk-EG5PC7UE.js.map +7 -0
  87. package/dist/chunk-ELWZBAT6.js +1192 -0
  88. package/dist/chunk-ELWZBAT6.js.map +7 -0
  89. package/dist/chunk-EUFBKP6Q.js +277 -0
  90. package/dist/chunk-FK3ZW7TT.js +5127 -0
  91. package/dist/chunk-FK3ZW7TT.js.map +7 -0
  92. package/dist/chunk-GKEB4U23.js +484 -0
  93. package/dist/chunk-GKVUVJ3F.js +226 -0
  94. package/dist/chunk-GKVUVJ3F.js.map +7 -0
  95. package/dist/chunk-GPOTMJT5.js +4902 -0
  96. package/dist/chunk-GPOTMJT5.js.map +7 -0
  97. package/dist/chunk-HU274F27.js +2784 -0
  98. package/dist/chunk-IABYVAMO.js +156 -0
  99. package/dist/chunk-IJAPJGMG.js +154 -0
  100. package/dist/chunk-JHEPBM7J.js +257 -0
  101. package/dist/chunk-JJ5EP2O5.js +121 -0
  102. package/dist/chunk-JJ5EP2O5.js.map +7 -0
  103. package/dist/chunk-K6HYNIAS.js +379 -0
  104. package/dist/chunk-K7XKVWL2.js +276 -0
  105. package/dist/chunk-KO445K7J.js +102 -0
  106. package/dist/chunk-LZEQJFZ3.js +165 -0
  107. package/dist/chunk-MBJJJSJ3.js +409 -0
  108. package/dist/chunk-MBJJJSJ3.js.map +7 -0
  109. package/dist/chunk-MEFCSGAC.js +193 -0
  110. package/dist/chunk-MZ6DIHEL.js +6364 -0
  111. package/dist/chunk-NNDNVBTX.js +524 -0
  112. package/dist/chunk-OGTHZVXJ.js +40 -0
  113. package/dist/chunk-OMO754MK.js +177 -0
  114. package/dist/chunk-OMO754MK.js.map +7 -0
  115. package/dist/chunk-PAV653SV.js +1533 -0
  116. package/dist/chunk-PAV653SV.js.map +7 -0
  117. package/dist/chunk-PEYHMXE7.js +142 -0
  118. package/dist/chunk-PGNZXLHB.js +468 -0
  119. package/dist/chunk-QTXO5QDM.js +235 -0
  120. package/dist/chunk-RCKWHFK3.js +1066 -0
  121. package/dist/chunk-RCKWHFK3.js.map +7 -0
  122. package/dist/chunk-RN3SV24S.js +228 -0
  123. package/dist/chunk-RN3SV24S.js.map +7 -0
  124. package/dist/chunk-RTNOHDL7.js +1057 -0
  125. package/dist/chunk-RTNOHDL7.js.map +7 -0
  126. package/dist/chunk-SQTISBFA.js +158 -0
  127. package/dist/chunk-T35HA4XC.js +1416 -0
  128. package/dist/chunk-T35HA4XC.js.map +7 -0
  129. package/dist/chunk-T5BDYCFO.js +463 -0
  130. package/dist/chunk-T5BDYCFO.js.map +7 -0
  131. package/dist/chunk-TGG5VKA3.js +292 -0
  132. package/dist/chunk-TZ3VF4XU.js +601 -0
  133. package/dist/chunk-VWLR7HMW.js +284 -0
  134. package/dist/chunk-VWLR7HMW.js.map +7 -0
  135. package/dist/chunk-WLY655R4.js +203 -0
  136. package/dist/chunk-WNRQIRLT.js +772 -0
  137. package/dist/chunk-WNRQIRLT.js.map +7 -0
  138. package/dist/chunk-XC34XLSB.js +101 -0
  139. package/dist/chunk-XGZBQXNE.js +129 -0
  140. package/dist/chunk-XT4XFXJW.js +518 -0
  141. package/dist/chunk-YLARJFPF.js +55 -0
  142. package/dist/chunk-YSPXVPRP.js +84 -0
  143. package/dist/chunk-YSPXVPRP.js.map +7 -0
  144. package/dist/chunk-ZNQCWD2Y.js +217 -0
  145. package/dist/chunk-ZQ7Q534G.js +483 -0
  146. package/dist/chunk-ZQ7Q534G.js.map +7 -0
  147. package/dist/chunk-ZS4OL6CW.js +252 -0
  148. package/dist/chunk-ZS5TMWV6.js +1657 -0
  149. package/dist/chunk-ZS5TMWV6.js.map +7 -0
  150. package/dist/condition-4AV7GQQZ.js +325 -0
  151. package/dist/controls-6H3GGIOF.js +37 -0
  152. package/dist/controls.config-I6TQRYM7.js +33 -0
  153. package/dist/correlation-J3UYQ3LT.js +100 -0
  154. package/dist/cuminc-W4RQVEMD.js +1132 -0
  155. package/dist/cuminc.integration.spec-M3EOPC5D.js +671 -0
  156. package/dist/customdata.inputui-TFM5JYFF.js +280 -0
  157. package/dist/dataDownload-R4FGOJWP.js +322 -0
  158. package/dist/dataDownload.integration.spec-OLTFN27L.js +186 -0
  159. package/dist/databrowser.ui-BRZS7R5S.js +424 -0
  160. package/dist/density-2WOYR4NB.js +18 -0
  161. package/dist/dictionary-7SGIE5UL.js +92 -0
  162. package/dist/e2pca-VSEXUGQO.js +343 -0
  163. package/dist/ep-SRNHBEU5.js +1249 -0
  164. package/dist/expclust.gdc.spec-KMYKHAP3.js +300 -0
  165. package/dist/facet-X26JAGPP.js +406 -0
  166. package/dist/frequencyChart-YTNTX2DN.js +375 -0
  167. package/dist/frequencyChart.integration.spec-2FZSB5MJ.js +303 -0
  168. package/dist/geneExpClustering-L5G3B4AL.js +241 -0
  169. package/dist/geneExpression-4LOOH6RS.js +311 -0
  170. package/dist/geneExpression-GDJE5F7I.js +56 -0
  171. package/dist/geneExpression-HRHBSIKP.js +36 -0
  172. package/dist/geneORA-UWQ3P7AU.js +274 -0
  173. package/dist/geneVariant-AWKVUBAO.js +31 -0
  174. package/dist/geneVariant-RYJKK6TN.js +34 -0
  175. package/dist/genefusion.ui-YZRBUQ56.js +244 -0
  176. package/dist/geneset-B5VDMDP7.js +188 -0
  177. package/dist/genomeBrowser-6C6M5QRC.js +503 -0
  178. package/dist/genomeBrowser.controls-ZL6Z3A4B.js +33 -0
  179. package/dist/genomeBrowser.spec-TWIJACVS.js +272 -0
  180. package/dist/grin2-7GW3S27T.js +1455 -0
  181. package/dist/grin2-FB32LBKB.js +475 -0
  182. package/dist/gsea-7H4EP5QX.js +44 -0
  183. package/dist/hierCluster-UXKBZMLO.js +54 -0
  184. package/dist/hierCluster-Y2FK2S5L.js +58 -0
  185. package/dist/hierCluster.config-7UEK5MJ5.js +33 -0
  186. package/dist/hierCluster.integration.spec-Z2NO3ZSN.js +301 -0
  187. package/dist/hierCluster.interactivity-RGI5XRPG.js +47 -0
  188. package/dist/hierCluster.renderers-6PLCOGYI.js +21 -0
  189. package/dist/imagePlot-O26LDEII.js +136 -0
  190. package/dist/importPlot-6IQTE6O4.js +8 -0
  191. package/dist/launch.adhoc-YVYBB7WH.js +35 -0
  192. package/dist/leftlabel.sample-EPBZIM3G.js +250 -0
  193. package/dist/leftlabel.sample-EPBZIM3G.js.map +7 -0
  194. package/dist/lollipop-ZQ6RMLIJ.js +161 -0
  195. package/dist/maf-AHK4ISWK.js +450 -0
  196. package/dist/maftimeline-7MCKV3OC.js +586 -0
  197. package/dist/matrix-GYY4XOB2.js +58 -0
  198. package/dist/matrix-WJQWC6E6.js +53 -0
  199. package/dist/matrix.cells-ARW32HYP.js +28 -0
  200. package/dist/matrix.config-XKV3MYB3.js +34 -0
  201. package/dist/matrix.controls-HISIPNHJ.js +33 -0
  202. package/dist/matrix.data-USALDVQY.js +37 -0
  203. package/dist/matrix.groups-2ZNRR56O.js +26 -0
  204. package/dist/matrix.integration.spec-U5SFKDLE.js +2938 -0
  205. package/dist/matrix.interactivity-PLS5VRBD.js +35 -0
  206. package/dist/matrix.layout-CIWDTBWE.js +37 -0
  207. package/dist/matrix.legend-GEBKE674.js +22 -0
  208. package/dist/matrix.renderers-DDZYFY3A.js +31 -0
  209. package/dist/matrix.serieses-43Y763CP.js +21 -0
  210. package/dist/matrix.sort-Y4NQ3QL2.js +27 -0
  211. package/dist/matrix.sort.unit.spec-VU3JMF2L.js +465 -0
  212. package/dist/matrix.sorterUi-47XHMDWW.js +18 -0
  213. package/dist/matrix.sorterUi.unit.spec-INLX4DJK.js +336 -0
  214. package/dist/mavb-3SX5TR23.js +725 -0
  215. package/dist/mds.fimo-4OR2MHMZ.js +511 -0
  216. package/dist/mds.samplescatterplot-UJCG4S2Z.js +1543 -0
  217. package/dist/mds.survivalplot-NSQY4YES.js +476 -0
  218. package/dist/metaboliteIntensity-IPW5TNAV.js +36 -0
  219. package/dist/multivalue-RUE6W47E.js +9 -0
  220. package/dist/multivalue-RUE6W47E.js.map +7 -0
  221. package/dist/notify-CJGEVJGO.js +234 -0
  222. package/dist/notify-CJGEVJGO.js.map +7 -0
  223. package/dist/numeric-C3HYUOIA.js +36 -0
  224. package/dist/numeric.binary-EVKZWJQK.js +239 -0
  225. package/dist/numeric.binary-EVKZWJQK.js.map +7 -0
  226. package/dist/numeric.continuous-XCLOOVY5.js +127 -0
  227. package/dist/numeric.continuous-XCLOOVY5.js.map +7 -0
  228. package/dist/numeric.discrete-FRK55BUD.js +36 -0
  229. package/dist/numeric.spline-37UQB5OD.js +216 -0
  230. package/dist/numeric.spline-37UQB5OD.js.map +7 -0
  231. package/dist/numeric.toggle-X6LBTFQC.js +31 -0
  232. package/dist/numericDictTermCluster-DIFR4QFK.js +72 -0
  233. package/dist/oncomatrix-IUTOCPLH.js +284 -0
  234. package/dist/oncomatrix.spec-SCVNY2XK.js +441 -0
  235. package/dist/plot.2dvaf-4CWLYMRY.js +370 -0
  236. package/dist/plot.app-JORKG3V6.js +34 -0
  237. package/dist/plot.barplot-E2QSRJ2S.js +95 -0
  238. package/dist/plot.boxplot-SQGBCP4I.js +145 -0
  239. package/dist/plot.brainImaging-7H4FGSBW.js +51 -0
  240. package/dist/plot.disco-OEO2GPW4.js +98 -0
  241. package/dist/plot.dzi-M47RO2F4.js +33 -0
  242. package/dist/plot.ssgq-CKEPLRLG.js +132 -0
  243. package/dist/plot.vaf2cov-4S5KYZSF.js +252 -0
  244. package/dist/plot.wsi-KJTM6ZXN.js +35 -0
  245. package/dist/profile.spec-LRSANXLK.js +73 -0
  246. package/dist/profileBarchart-6ZSSPONK.js +259 -0
  247. package/dist/profileBarchart-6ZSSPONK.js.map +7 -0
  248. package/dist/profileForms-NYXURMEU.js +344 -0
  249. package/dist/profileForms-NYXURMEU.js.map +7 -0
  250. package/dist/profilePlot-NH7ZAXE2.js +50 -0
  251. package/dist/profilePolar-GDJ33UNZ.js +187 -0
  252. package/dist/profilePolar-GDJ33UNZ.js.map +7 -0
  253. package/dist/profileRadar-XNVMW6LY.js +264 -0
  254. package/dist/profileRadar-XNVMW6LY.js.map +7 -0
  255. package/dist/profileRadarFacility-CHS63YKS.js +263 -0
  256. package/dist/profileRadarFacility-CHS63YKS.js.map +7 -0
  257. package/dist/qualitative-2XUNRJGW.js +36 -0
  258. package/dist/qualitative-6EUV3YOC.js +221 -0
  259. package/dist/qualitative-6EUV3YOC.js.map +7 -0
  260. package/dist/regression-SO5LO3AA.js +55 -0
  261. package/dist/regression.inputs-S7YFVKU5.js +47 -0
  262. package/dist/regression.inputs.term-7RTOJCBV.js +47 -0
  263. package/dist/regression.inputs.values.table-5K6VJ43R.js +44 -0
  264. package/dist/regression.integration.spec-URYEIJBQ.js +608 -0
  265. package/dist/regression.results-TZ7MKK6W.js +33 -0
  266. package/dist/regression.spec-Y3YRMMNF.js +701 -0
  267. package/dist/report-L2FU44BT.js +230 -0
  268. package/dist/runChart-XV6WKBOY.js +53 -0
  269. package/dist/runchart.integration.spec-GEOMKOXQ.js +364 -0
  270. package/dist/sampleScatter.spec-ITZLTKUM.js +195 -0
  271. package/dist/sampleView-ROG7PMHR.js +44 -0
  272. package/dist/samplelst-2IL63737.js +104 -0
  273. package/dist/samplematrix-6VRFIIVU.js +2191 -0
  274. package/dist/scatter-MA3UZ6C6.js +53 -0
  275. package/dist/scatter.integration.spec-RFYQS5DE.js +930 -0
  276. package/dist/selectGenomeWithTklst-FIFYXXAQ.js +127 -0
  277. package/dist/singleCellGeneExpression-SBAJ6XML.js +48 -0
  278. package/dist/singleCellPlot-TRRGNH37.js +48 -0
  279. package/dist/singlecell-55ELYBDU.js +1565 -0
  280. package/dist/singlecell-JCKJGEBH.js +79 -0
  281. package/dist/snp-LWS3OP2M.js +75 -0
  282. package/dist/snplocus-OTMVPVWC.js +201 -0
  283. package/dist/snplst-LQRIYCRZ.js +15 -0
  284. package/dist/spliceevent.a53ss.diagram-E3MTCYLV.js +144 -0
  285. package/dist/spliceevent.exonskip.diagram-YJNJYQS6.js +270 -0
  286. package/dist/spliceevent.noeventdiagram-L326T54B.js +453 -0
  287. package/dist/ssGSEA-55UO2PTA.js +36 -0
  288. package/dist/ssGSEA-GFLSCV25.js +55 -0
  289. package/dist/summarizeCnvGeneexp-RNYFHQFL.js +138 -0
  290. package/dist/summarizeGeneexpSurvival-PW6NFLNT.js +92 -0
  291. package/dist/summarizeMutationDiagnosis-6W4KBCA2.js +34 -0
  292. package/dist/summarizeMutationSurvival-SFCYKQIL.js +94 -0
  293. package/dist/summary-VB7SQ2BR.js +53 -0
  294. package/dist/summary.integration.spec-5ILI25QN.js +407 -0
  295. package/dist/summaryInput-OPZ7DUPO.js +134 -0
  296. package/dist/sunburst-Y6JFC4BA.js +277 -0
  297. package/dist/survival-OWQWT6A2.js +55 -0
  298. package/dist/survival-QXHT55YY.js +1172 -0
  299. package/dist/survival-QXHT55YY.js.map +7 -0
  300. package/dist/survival.integration.spec-AFFOS6BO.js +603 -0
  301. package/dist/svgraph-FLZA26LI.js +1380 -0
  302. package/dist/svmr-JEVWYD2R.js +3835 -0
  303. package/dist/table-ZTC4W5MG.js +195 -0
  304. package/dist/tk-JM7ED4NO.js +39 -0
  305. package/dist/tp.ui-AUFNIKW7.js +1452 -0
  306. package/dist/tvs.density-AYZ4U5VI.js +18 -0
  307. package/dist/tvs.numeric-2O5ZQFHB.js +355 -0
  308. package/dist/tvs.numeric-2O5ZQFHB.js.map +7 -0
  309. package/dist/tvs.samplelst-CTJ6JLNQ.js +99 -0
  310. package/dist/violin-UQYX7KKM.js +45 -0
  311. package/dist/violin.integration.spec-3T5GCCJY.js +1509 -0
  312. package/dist/violin.integration.spec-3T5GCCJY.js.map +7 -0
  313. package/dist/violin.interactivity-KHP24DHY.js +37 -0
  314. package/dist/violin.renderer-SWOKCTU3.js +33 -0
  315. package/dist/vocabulary-T2AVFI7D.js +34 -0
  316. package/package.json +4 -4
  317. package/dist/2dmaf-PSGRR5DS.js +0 -1366
  318. package/dist/AIProjectAdmin-FRFDLCEH.js +0 -624
  319. package/dist/AppHeader-KSQPKC3D.js +0 -815
  320. package/dist/BoxPlot-7MMLTMFP.js +0 -41
  321. package/dist/CorrelationVolcano-INHGVX5A.js +0 -618
  322. package/dist/DifferentialAnalysis-MDY3APFH.js +0 -224
  323. package/dist/Disco-IC7DMNVN.js +0 -2754
  324. package/dist/Disco.UI-UHPLWRZM.js +0 -237
  325. package/dist/HandlerGroupSet-DBSS5AC7.js +0 -220
  326. package/dist/HandlerGroupSet-DBSS5AC7.js.map +0 -7
  327. package/dist/HicApp-DGSMOPHK.js +0 -2220
  328. package/dist/SC-VFLPTWAH.js +0 -559
  329. package/dist/Volcano-4BOZUC7A.js +0 -45
  330. package/dist/WSISamplesPlot-NBNALQ47.js +0 -153
  331. package/dist/WSIViewer-CUVCC4LM.js +0 -46585
  332. package/dist/WSIViewer-CUVCC4LM.js.map +0 -7
  333. package/dist/adSandbox-LK7A6BH2.js +0 -31
  334. package/dist/app-33R7KMZC.js +0 -52
  335. package/dist/app-OFC74TXK.js +0 -30
  336. package/dist/bam-6PZ653N7.js +0 -836
  337. package/dist/barchart-5C56M5ME.js +0 -46
  338. package/dist/barchart.data-DBXWWF4G.js +0 -32
  339. package/dist/barchart.events-562SJKTI.js +0 -40
  340. package/dist/barchart.integration.spec-SB5DEM5Q.js +0 -1555
  341. package/dist/block-5HOXOGQZ.js +0 -6293
  342. package/dist/block.init-A4RGBQDI.js +0 -31
  343. package/dist/block.mds.expressionrank-JBM4BYOR.js +0 -352
  344. package/dist/block.mds.geneboxplot-I36DZWJR.js +0 -821
  345. package/dist/block.mds.junction-3X6QMC5A.js +0 -1538
  346. package/dist/block.mds.svcnv-LHDWI4E3.js +0 -6794
  347. package/dist/block.svg-FW7AWN7V.js +0 -151
  348. package/dist/block.svg-FW7AWN7V.js.map +0 -7
  349. package/dist/block.tk.aicheck-NAIXVCY2.js +0 -276
  350. package/dist/block.tk.ase-66MNKELB.js +0 -358
  351. package/dist/block.tk.bam-37XUTKXL.js +0 -1899
  352. package/dist/block.tk.bedgraphdot-KFCF3W67.js +0 -377
  353. package/dist/block.tk.bigwig.ui-W5SD74N2.js +0 -204
  354. package/dist/block.tk.hicstraw-SVW6MKFM.js +0 -816
  355. package/dist/block.tk.junction-YCOT3WFW.js +0 -2357
  356. package/dist/block.tk.junction.textmatrixui-S2HIWRQ2.js +0 -192
  357. package/dist/block.tk.ld-VVSVS4D7.js +0 -92
  358. package/dist/block.tk.menu-WG5IKQAH.js +0 -1022
  359. package/dist/block.tk.pgv-G76EFMHO.js +0 -937
  360. package/dist/brainImaging-3TBIBEJG.js +0 -419
  361. package/dist/categorical-TS6E3CLR.js +0 -34
  362. package/dist/chat-PZGVMCTV.js +0 -121
  363. package/dist/chunk-2HH2IBWK.js +0 -297
  364. package/dist/chunk-2UXDM3M2.js +0 -55
  365. package/dist/chunk-326DK3CC.js +0 -121
  366. package/dist/chunk-326DK3CC.js.map +0 -7
  367. package/dist/chunk-3BA7AGQF.js +0 -396
  368. package/dist/chunk-3DEQO2QU.js +0 -158
  369. package/dist/chunk-56SDQRUR.js +0 -483
  370. package/dist/chunk-56SDQRUR.js.map +0 -7
  371. package/dist/chunk-5L4SYWRX.js +0 -737
  372. package/dist/chunk-5L4SYWRX.js.map +0 -7
  373. package/dist/chunk-6FBDFOHD.js +0 -2784
  374. package/dist/chunk-6FE7KOGJ.js +0 -1414
  375. package/dist/chunk-6FE7KOGJ.js.map +0 -7
  376. package/dist/chunk-7NFNY72Q.js +0 -287
  377. package/dist/chunk-A6UVM6Q5.js +0 -276
  378. package/dist/chunk-AKLNRWC2.js +0 -2327
  379. package/dist/chunk-BCOPSSBB.js +0 -14
  380. package/dist/chunk-BL52MOFL.js +0 -379
  381. package/dist/chunk-BRC6CXQC.js +0 -1192
  382. package/dist/chunk-BRC6CXQC.js.map +0 -7
  383. package/dist/chunk-BT6RJQL7.js +0 -5127
  384. package/dist/chunk-BT6RJQL7.js.map +0 -7
  385. package/dist/chunk-BTH77ZKU.js +0 -102
  386. package/dist/chunk-BUIX7AXM.js +0 -91
  387. package/dist/chunk-CGO66XSZ.js +0 -99
  388. package/dist/chunk-CHOK2K4T.js +0 -252
  389. package/dist/chunk-DFTUIQOR.js +0 -413
  390. package/dist/chunk-DPRIBYBK.js +0 -272
  391. package/dist/chunk-DXNHQCWO.js +0 -14685
  392. package/dist/chunk-DXNHQCWO.js.map +0 -7
  393. package/dist/chunk-EWDABWYM.js +0 -1074
  394. package/dist/chunk-G6I7MMAB.js +0 -524
  395. package/dist/chunk-GBW5B2A5.js +0 -468
  396. package/dist/chunk-GDVG55UR.js +0 -1643
  397. package/dist/chunk-GFGKCOEX.js +0 -31
  398. package/dist/chunk-HOFECWUQ.js +0 -485
  399. package/dist/chunk-HOFECWUQ.js.map +0 -7
  400. package/dist/chunk-I3ZL6SGL.js +0 -442
  401. package/dist/chunk-I73DNIZ3.js +0 -463
  402. package/dist/chunk-I73DNIZ3.js.map +0 -7
  403. package/dist/chunk-IF57NOEZ.js +0 -101
  404. package/dist/chunk-IGAF3NBU.js +0 -81
  405. package/dist/chunk-IGAF3NBU.js.map +0 -7
  406. package/dist/chunk-IW4Q7MPP.js +0 -621
  407. package/dist/chunk-IW4Q7MPP.js.map +0 -7
  408. package/dist/chunk-JGCY2WGU.js +0 -1056
  409. package/dist/chunk-JGCY2WGU.js.map +0 -7
  410. package/dist/chunk-KJV5M7TJ.js +0 -387
  411. package/dist/chunk-KJV5M7TJ.js.map +0 -7
  412. package/dist/chunk-KQKE3HWV.js +0 -601
  413. package/dist/chunk-KWIZQXGE.js +0 -193
  414. package/dist/chunk-L5RO3TWT.js +0 -156
  415. package/dist/chunk-L7N5BOMJ.js +0 -193
  416. package/dist/chunk-LFWYQTWU.js +0 -95
  417. package/dist/chunk-MJLX7VGP.js +0 -1658
  418. package/dist/chunk-MJLX7VGP.js.map +0 -7
  419. package/dist/chunk-MRWYXVFE.js +0 -411
  420. package/dist/chunk-MRWYXVFE.js.map +0 -7
  421. package/dist/chunk-MXMPAXMS.js +0 -1521
  422. package/dist/chunk-MXMPAXMS.js.map +0 -7
  423. package/dist/chunk-MYMDKREO.js +0 -6364
  424. package/dist/chunk-NCGFSOTH.js +0 -518
  425. package/dist/chunk-NFBG3UCJ.js +0 -229
  426. package/dist/chunk-NFBG3UCJ.js.map +0 -7
  427. package/dist/chunk-NQ5YW2DW.js +0 -40
  428. package/dist/chunk-O5H6DQIL.js +0 -217
  429. package/dist/chunk-OPZUIS3Y.js +0 -162
  430. package/dist/chunk-OPZUIS3Y.js.map +0 -7
  431. package/dist/chunk-OUQ4H2WU.js +0 -257
  432. package/dist/chunk-OZ3BDHTU.js +0 -360
  433. package/dist/chunk-P34VMLNQ.js +0 -226
  434. package/dist/chunk-P34VMLNQ.js.map +0 -7
  435. package/dist/chunk-PQAXAKOO.js +0 -484
  436. package/dist/chunk-PUVQDC7D.js +0 -2727
  437. package/dist/chunk-PUVQDC7D.js.map +0 -7
  438. package/dist/chunk-PYGUZ75W.js +0 -159
  439. package/dist/chunk-PYGUZ75W.js.map +0 -7
  440. package/dist/chunk-Q3CVBBYP.js +0 -101
  441. package/dist/chunk-Q3CVBBYP.js.map +0 -7
  442. package/dist/chunk-QS6W5PZ4.js +0 -154
  443. package/dist/chunk-QTAXM2J6.js +0 -277
  444. package/dist/chunk-RLZC74JX.js +0 -330
  445. package/dist/chunk-RLZC74JX.js.map +0 -7
  446. package/dist/chunk-RWEDZXDS.js +0 -101
  447. package/dist/chunk-SGDJD7FL.js +0 -619
  448. package/dist/chunk-SLGI2XIJ.js +0 -133
  449. package/dist/chunk-SYBOIAA5.js +0 -1066
  450. package/dist/chunk-SYBOIAA5.js.map +0 -7
  451. package/dist/chunk-TBQB2T2G.js +0 -772
  452. package/dist/chunk-TBQB2T2G.js.map +0 -7
  453. package/dist/chunk-U3DYPWZY.js +0 -235
  454. package/dist/chunk-UPMVNLJV.js +0 -142
  455. package/dist/chunk-VEAKUIGZ.js +0 -381
  456. package/dist/chunk-VELHP2RM.js +0 -4922
  457. package/dist/chunk-VELHP2RM.js.map +0 -7
  458. package/dist/chunk-VEVNQRAN.js +0 -387
  459. package/dist/chunk-VEVNQRAN.js.map +0 -7
  460. package/dist/chunk-WCUTNNDY.js +0 -437
  461. package/dist/chunk-WCUTNNDY.js.map +0 -7
  462. package/dist/chunk-WFBYDR5A.js +0 -287
  463. package/dist/chunk-WFBYDR5A.js.map +0 -7
  464. package/dist/chunk-WHSKBORP.js +0 -129
  465. package/dist/chunk-X4IHREPS.js +0 -494
  466. package/dist/chunk-X4IHREPS.js.map +0 -7
  467. package/dist/chunk-Y25WZ3LE.js +0 -203
  468. package/dist/chunk-Y5ZUEHEQ.js +0 -1275
  469. package/dist/chunk-YEKWAL2X.js +0 -165
  470. package/dist/chunk-YF6OG2BI.js +0 -353
  471. package/dist/chunk-YF6OG2BI.js.map +0 -7
  472. package/dist/chunk-YOSXOFWN.js +0 -2780
  473. package/dist/chunk-Z3QJUOGM.js +0 -292
  474. package/dist/condition-TSAKFLQQ.js +0 -325
  475. package/dist/controls-NANBRFUU.js +0 -37
  476. package/dist/controls.config-D4QPLZ6S.js +0 -33
  477. package/dist/correlation-DDTB2MQ4.js +0 -100
  478. package/dist/cuminc-YXD6AMQ5.js +0 -1132
  479. package/dist/cuminc.integration.spec-SHWSLCF2.js +0 -671
  480. package/dist/customdata.inputui-ZKUYACHP.js +0 -280
  481. package/dist/dataDownload-WVKSCXS4.js +0 -322
  482. package/dist/dataDownload.integration.spec-DNKMPCIP.js +0 -186
  483. package/dist/databrowser.ui-SGSF7SLH.js +0 -424
  484. package/dist/density-W3FYAZZ3.js +0 -18
  485. package/dist/dictionary-XZNWUDMM.js +0 -92
  486. package/dist/e2pca-XWLSZ4X6.js +0 -343
  487. package/dist/ep-RBRQSMSG.js +0 -1249
  488. package/dist/expclust.gdc.spec-JJVEDK7R.js +0 -300
  489. package/dist/facet-RVJOUYVM.js +0 -406
  490. package/dist/frequencyChart-L47GRXL2.js +0 -375
  491. package/dist/frequencyChart.integration.spec-3PZID3LQ.js +0 -303
  492. package/dist/geneExpClustering-5XVK2P45.js +0 -241
  493. package/dist/geneExpression-6TF2V66T.js +0 -56
  494. package/dist/geneExpression-7S3ZOXRZ.js +0 -36
  495. package/dist/geneExpression-WS6JJGEX.js +0 -311
  496. package/dist/geneORA-2PEH5UCA.js +0 -274
  497. package/dist/geneVariant-7UE26ZWW.js +0 -34
  498. package/dist/geneVariant-APRYF4DX.js +0 -31
  499. package/dist/genefusion.ui-22TM3AWE.js +0 -244
  500. package/dist/geneset-2IKCYNLG.js +0 -188
  501. package/dist/genomeBrowser-NPD373O3.js +0 -503
  502. package/dist/genomeBrowser.controls-44CJZV6T.js +0 -33
  503. package/dist/genomeBrowser.spec-OJPHVWTK.js +0 -272
  504. package/dist/grin2-5S3PIVK3.js +0 -475
  505. package/dist/grin2-SXOAL3FI.js +0 -1455
  506. package/dist/groupsetting-4AZH7NS7.js +0 -31
  507. package/dist/gsea-HCCJO2WR.js +0 -44
  508. package/dist/hierCluster-2ACU2XOL.js +0 -54
  509. package/dist/hierCluster-A3RWLVFT.js +0 -58
  510. package/dist/hierCluster.config-UBELDTXB.js +0 -33
  511. package/dist/hierCluster.integration.spec-PIYIR4V6.js +0 -301
  512. package/dist/hierCluster.interactivity-ZB6BJIRD.js +0 -47
  513. package/dist/hierCluster.renderers-UYDUNBTA.js +0 -21
  514. package/dist/imagePlot-R7RPGREP.js +0 -136
  515. package/dist/importPlot-G6NBPNHI.js +0 -8
  516. package/dist/launch.adhoc-LT6NJTIU.js +0 -35
  517. package/dist/leftlabel.sample-YXXZZ7H7.js +0 -243
  518. package/dist/leftlabel.sample-YXXZZ7H7.js.map +0 -7
  519. package/dist/lollipop-DA67ETKC.js +0 -161
  520. package/dist/maf-ZXTEBQYT.js +0 -450
  521. package/dist/maftimeline-N6B3A7FT.js +0 -586
  522. package/dist/matrix-24BTAJ6Z.js +0 -53
  523. package/dist/matrix-QFHI7BN4.js +0 -58
  524. package/dist/matrix.cells-PW3JRJAN.js +0 -28
  525. package/dist/matrix.config-AOWHJAW5.js +0 -34
  526. package/dist/matrix.controls-L6GQZLAC.js +0 -33
  527. package/dist/matrix.data-IZB4AFO2.js +0 -37
  528. package/dist/matrix.groups-OMR3I6OJ.js +0 -26
  529. package/dist/matrix.integration.spec-LHUSW6KG.js +0 -2938
  530. package/dist/matrix.interactivity-SAC6CIDX.js +0 -35
  531. package/dist/matrix.layout-UPR67PVU.js +0 -37
  532. package/dist/matrix.legend-IWXFC6WP.js +0 -22
  533. package/dist/matrix.renderers-23KEQGDV.js +0 -31
  534. package/dist/matrix.serieses-YN7OOK4R.js +0 -21
  535. package/dist/matrix.sort-66QD7QMD.js +0 -27
  536. package/dist/matrix.sort.unit.spec-NCLJP6FB.js +0 -465
  537. package/dist/matrix.sorterUi-XORAO5CO.js +0 -18
  538. package/dist/matrix.sorterUi.unit.spec-SQIOU2W7.js +0 -336
  539. package/dist/mavb-ZYOQBCAH.js +0 -725
  540. package/dist/mds.fimo-CP3TNQB4.js +0 -511
  541. package/dist/mds.samplescatterplot-BYS532UR.js +0 -1543
  542. package/dist/mds.survivalplot-ZGANSS2C.js +0 -476
  543. package/dist/metaboliteIntensity-PNN4UHFV.js +0 -36
  544. package/dist/multivalue-UXRA52US.js +0 -9
  545. package/dist/multivalue-UXRA52US.js.map +0 -7
  546. package/dist/notify-465RJICW.js +0 -234
  547. package/dist/notify-465RJICW.js.map +0 -7
  548. package/dist/numeric-35EZC4XG.js +0 -36
  549. package/dist/numeric.binary-Y6OBE6WP.js +0 -242
  550. package/dist/numeric.binary-Y6OBE6WP.js.map +0 -7
  551. package/dist/numeric.continuous-MAKXDFHG.js +0 -127
  552. package/dist/numeric.continuous-MAKXDFHG.js.map +0 -7
  553. package/dist/numeric.discrete-JSGUVYEW.js +0 -38
  554. package/dist/numeric.spline-PDBGZ6UK.js +0 -221
  555. package/dist/numeric.spline-PDBGZ6UK.js.map +0 -7
  556. package/dist/numeric.toggle-RLSX62XJ.js +0 -31
  557. package/dist/numericDictTermCluster-DOMHDQGH.js +0 -72
  558. package/dist/oncomatrix-2E5W5522.js +0 -284
  559. package/dist/oncomatrix.spec-EFLWCP4S.js +0 -441
  560. package/dist/plot.2dvaf-XKL2LACB.js +0 -370
  561. package/dist/plot.app-BNLSZKBR.js +0 -34
  562. package/dist/plot.barplot-KIY67E5V.js +0 -95
  563. package/dist/plot.boxplot-F2PAU2WG.js +0 -145
  564. package/dist/plot.brainImaging-NMVMIHJJ.js +0 -51
  565. package/dist/plot.disco-3R5FEJX2.js +0 -98
  566. package/dist/plot.dzi-MM4OIAMF.js +0 -33
  567. package/dist/plot.ssgq-EKP7DQWD.js +0 -132
  568. package/dist/plot.vaf2cov-MDSX2MDP.js +0 -252
  569. package/dist/plot.wsi-ACUMTPXU.js +0 -35
  570. package/dist/profile.spec-X6VP6BJ3.js +0 -73
  571. package/dist/profileBarchart-3A4CXT4C.js +0 -257
  572. package/dist/profileBarchart-3A4CXT4C.js.map +0 -7
  573. package/dist/profileForms-OWCGGSIS.js +0 -344
  574. package/dist/profileForms-OWCGGSIS.js.map +0 -7
  575. package/dist/profilePlot-AFQF4GK7.js +0 -50
  576. package/dist/profilePolar-2A6JK66X.js +0 -185
  577. package/dist/profilePolar-2A6JK66X.js.map +0 -7
  578. package/dist/profileRadar-GVZ5MNOL.js +0 -262
  579. package/dist/profileRadar-GVZ5MNOL.js.map +0 -7
  580. package/dist/profileRadarFacility-L3QRHJZV.js +0 -263
  581. package/dist/profileRadarFacility-L3QRHJZV.js.map +0 -7
  582. package/dist/regression-UELT2GA7.js +0 -55
  583. package/dist/regression.inputs-YHUOJUF7.js +0 -47
  584. package/dist/regression.inputs.term-56NPXHQP.js +0 -47
  585. package/dist/regression.inputs.values.table-SMQ7WHLO.js +0 -44
  586. package/dist/regression.integration.spec-Q7JFWCS6.js +0 -608
  587. package/dist/regression.results-U3G2ZZUV.js +0 -33
  588. package/dist/regression.spec-NK76VLDY.js +0 -701
  589. package/dist/report-57MTJJLW.js +0 -230
  590. package/dist/runChart-3LFLLJQD.js +0 -53
  591. package/dist/runchart.integration.spec-B4GM26UX.js +0 -364
  592. package/dist/sampleScatter.spec-I7UC44SD.js +0 -195
  593. package/dist/sampleView-4JJYBS22.js +0 -44
  594. package/dist/samplelst-QX7U72CA.js +0 -104
  595. package/dist/samplematrix-AO6CO6LS.js +0 -2191
  596. package/dist/scatter-KVGKKEJJ.js +0 -53
  597. package/dist/scatter.integration.spec-R2KCB525.js +0 -930
  598. package/dist/selectGenomeWithTklst-4I2NH2PT.js +0 -127
  599. package/dist/singleCellCellType-L7BQIHCR.js +0 -59
  600. package/dist/singleCellCellType-L7BQIHCR.js.map +0 -7
  601. package/dist/singleCellGeneExpression-2PGRGER3.js +0 -48
  602. package/dist/singleCellPlot-YRWCR2BG.js +0 -48
  603. package/dist/singlecell-4XA5IFCK.js +0 -79
  604. package/dist/singlecell-UI3SJQSC.js +0 -1565
  605. package/dist/snp-GACK7NU3.js +0 -61
  606. package/dist/snp-GACK7NU3.js.map +0 -7
  607. package/dist/snp-P2OQN7HS.js +0 -75
  608. package/dist/snplocus-GVFRKBGY.js +0 -201
  609. package/dist/snplst-TW2N4WVV.js +0 -15
  610. package/dist/spliceevent.a53ss.diagram-OZNJY6SB.js +0 -144
  611. package/dist/spliceevent.exonskip.diagram-FR6BRJ54.js +0 -270
  612. package/dist/spliceevent.noeventdiagram-KVRADJO2.js +0 -453
  613. package/dist/ssGSEA-3X2VPHGA.js +0 -55
  614. package/dist/ssGSEA-W6ET2NNA.js +0 -36
  615. package/dist/summarizeCnvGeneexp-MHAQAB4O.js +0 -138
  616. package/dist/summarizeGeneexpSurvival-ANT2Q5HF.js +0 -92
  617. package/dist/summarizeMutationDiagnosis-CHYUEIYR.js +0 -34
  618. package/dist/summarizeMutationSurvival-5UJLCTCK.js +0 -94
  619. package/dist/summary-C2J3QBOI.js +0 -53
  620. package/dist/summary.integration.spec-JVWTZOCK.js +0 -407
  621. package/dist/summaryInput-GTNGADQC.js +0 -134
  622. package/dist/sunburst-YGPJBVQT.js +0 -277
  623. package/dist/survival-53Q4XP6A.js +0 -55
  624. package/dist/survival-M4TK5F2Y.js +0 -1173
  625. package/dist/survival-M4TK5F2Y.js.map +0 -7
  626. package/dist/survival.integration.spec-TOFJNA7K.js +0 -603
  627. package/dist/svgraph-V5SSXUII.js +0 -1380
  628. package/dist/svmr-RD7RVEPF.js +0 -3835
  629. package/dist/table-FWP72IKY.js +0 -195
  630. package/dist/tk-RE2KRWM5.js +0 -39
  631. package/dist/tp.ui-VQDMAI5C.js +0 -1452
  632. package/dist/tvs.density-N62PJOTO.js +0 -18
  633. package/dist/tvs.numeric-XKB55NHG.js +0 -21
  634. package/dist/tvs.samplelst-3TVJMZUJ.js +0 -99
  635. package/dist/violin-4ATAJRKV.js +0 -45
  636. package/dist/violin.integration.spec-D3C3CNZ2.js +0 -1431
  637. package/dist/violin.integration.spec-D3C3CNZ2.js.map +0 -7
  638. package/dist/violin.interactivity-UCIXL4O3.js +0 -37
  639. package/dist/violin.renderer-XLGF76WI.js +0 -33
  640. package/dist/violin.renderer-XLGF76WI.js.map +0 -7
  641. package/dist/vocabulary-W56OI4O3.js +0 -34
  642. package/dist/vocabulary-W56OI4O3.js.map +0 -7
  643. /package/dist/{2dmaf-PSGRR5DS.js.map → 2dmaf-OQWBGVA5.js.map} +0 -0
  644. /package/dist/{AIProjectAdmin-FRFDLCEH.js.map → AIProjectAdmin-3XLB3RBL.js.map} +0 -0
  645. /package/dist/{AppHeader-KSQPKC3D.js.map → AppHeader-VBNUXO7V.js.map} +0 -0
  646. /package/dist/{BoxPlot-7MMLTMFP.js.map → BoxPlot-O7UI5OBK.js.map} +0 -0
  647. /package/dist/{CorrelationVolcano-INHGVX5A.js.map → CorrelationVolcano-HJL3IGIM.js.map} +0 -0
  648. /package/dist/{DifferentialAnalysis-MDY3APFH.js.map → DifferentialAnalysis-7ER22PXQ.js.map} +0 -0
  649. /package/dist/{Disco-IC7DMNVN.js.map → Disco-C56JNC4Y.js.map} +0 -0
  650. /package/dist/{Disco.UI-UHPLWRZM.js.map → Disco.UI-EFXQESKI.js.map} +0 -0
  651. /package/dist/{HicApp-DGSMOPHK.js.map → HicApp-BRV3KL53.js.map} +0 -0
  652. /package/dist/{SC-VFLPTWAH.js.map → SC-43I4D5VK.js.map} +0 -0
  653. /package/dist/{Volcano-4BOZUC7A.js.map → Volcano-N73WNULV.js.map} +0 -0
  654. /package/dist/{WSISamplesPlot-NBNALQ47.js.map → WsiSamplesPlot-7KNSVQDD.js.map} +0 -0
  655. /package/dist/{adSandbox-LK7A6BH2.js.map → adSandbox-EOVC26A6.js.map} +0 -0
  656. /package/dist/{app-33R7KMZC.js.map → app-4G6ZBN4X.js.map} +0 -0
  657. /package/dist/{app-OFC74TXK.js.map → app-Y3YS3BID.js.map} +0 -0
  658. /package/dist/{bam-6PZ653N7.js.map → bam-IUUQXY5Y.js.map} +0 -0
  659. /package/dist/{barchart-5C56M5ME.js.map → barchart-MOYKOKQS.js.map} +0 -0
  660. /package/dist/{barchart.data-DBXWWF4G.js.map → barchart.data-IEL6KSLJ.js.map} +0 -0
  661. /package/dist/{barchart.events-562SJKTI.js.map → barchart.events-Z7QOLPWN.js.map} +0 -0
  662. /package/dist/{barchart.integration.spec-SB5DEM5Q.js.map → barchart.integration.spec-G7PFFUGF.js.map} +0 -0
  663. /package/dist/{block-5HOXOGQZ.js.map → block-NBO4UBI7.js.map} +0 -0
  664. /package/dist/{block.init-A4RGBQDI.js.map → block.init-NNS4ANQE.js.map} +0 -0
  665. /package/dist/{block.mds.expressionrank-JBM4BYOR.js.map → block.mds.expressionrank-ODTPNOK3.js.map} +0 -0
  666. /package/dist/{block.mds.geneboxplot-I36DZWJR.js.map → block.mds.geneboxplot-KC56DQOZ.js.map} +0 -0
  667. /package/dist/{block.mds.junction-3X6QMC5A.js.map → block.mds.junction-TEHKBK4R.js.map} +0 -0
  668. /package/dist/{block.mds.svcnv-LHDWI4E3.js.map → block.mds.svcnv-55DPUJXC.js.map} +0 -0
  669. /package/dist/{block.tk.aicheck-NAIXVCY2.js.map → block.tk.aicheck-3HNUORLT.js.map} +0 -0
  670. /package/dist/{block.tk.ase-66MNKELB.js.map → block.tk.ase-NMH4T6CZ.js.map} +0 -0
  671. /package/dist/{block.tk.bam-37XUTKXL.js.map → block.tk.bam-N77FZEJ4.js.map} +0 -0
  672. /package/dist/{block.tk.bedgraphdot-KFCF3W67.js.map → block.tk.bedgraphdot-7HMT5SHP.js.map} +0 -0
  673. /package/dist/{block.tk.bigwig.ui-W5SD74N2.js.map → block.tk.bigwig.ui-7ZKDHYHC.js.map} +0 -0
  674. /package/dist/{block.tk.hicstraw-SVW6MKFM.js.map → block.tk.hicstraw-L2H4ZDQA.js.map} +0 -0
  675. /package/dist/{block.tk.junction-YCOT3WFW.js.map → block.tk.junction-WZANWQ2E.js.map} +0 -0
  676. /package/dist/{block.tk.junction.textmatrixui-S2HIWRQ2.js.map → block.tk.junction.textmatrixui-VAZV3DYJ.js.map} +0 -0
  677. /package/dist/{block.tk.ld-VVSVS4D7.js.map → block.tk.ld-KUTCZV5R.js.map} +0 -0
  678. /package/dist/{block.tk.menu-WG5IKQAH.js.map → block.tk.menu-ZNU33CCX.js.map} +0 -0
  679. /package/dist/{block.tk.pgv-G76EFMHO.js.map → block.tk.pgv-XFSLEWUO.js.map} +0 -0
  680. /package/dist/{brainImaging-3TBIBEJG.js.map → brainImaging-KCJ4SP5R.js.map} +0 -0
  681. /package/dist/{chat-PZGVMCTV.js.map → chat-OL7SDF4V.js.map} +0 -0
  682. /package/dist/{chunk-EWDABWYM.js.map → chunk-2CLJHVGK.js.map} +0 -0
  683. /package/dist/{chunk-SGDJD7FL.js.map → chunk-2GRNFI7P.js.map} +0 -0
  684. /package/dist/{chunk-LFWYQTWU.js.map → chunk-3PSPKZR3.js.map} +0 -0
  685. /package/dist/{chunk-I3ZL6SGL.js.map → chunk-3XNTEIPM.js.map} +0 -0
  686. /package/dist/{chunk-IF57NOEZ.js.map → chunk-4JTNXI3N.js.map} +0 -0
  687. /package/dist/{chunk-GDVG55UR.js.map → chunk-4JXJ4UBP.js.map} +0 -0
  688. /package/dist/{chunk-BCOPSSBB.js.map → chunk-4OWX23N4.js.map} +0 -0
  689. /package/dist/{chunk-Y5ZUEHEQ.js.map → chunk-4QXJ36HV.js.map} +0 -0
  690. /package/dist/{chunk-L7N5BOMJ.js.map → chunk-4YNEZISK.js.map} +0 -0
  691. /package/dist/{chunk-DFTUIQOR.js.map → chunk-5U3ZO5HT.js.map} +0 -0
  692. /package/dist/{chunk-2HH2IBWK.js.map → chunk-5VJ6L4HP.js.map} +0 -0
  693. /package/dist/{chunk-SLGI2XIJ.js.map → chunk-73DVVHY7.js.map} +0 -0
  694. /package/dist/{chunk-VEAKUIGZ.js.map → chunk-7FDVPL6E.js.map} +0 -0
  695. /package/dist/{chunk-GFGKCOEX.js.map → chunk-7FOCC2HQ.js.map} +0 -0
  696. /package/dist/{chunk-DPRIBYBK.js.map → chunk-BW2RLSXS.js.map} +0 -0
  697. /package/dist/{chunk-OZ3BDHTU.js.map → chunk-CFQQBWWZ.js.map} +0 -0
  698. /package/dist/{chunk-7NFNY72Q.js.map → chunk-CRH6WHU2.js.map} +0 -0
  699. /package/dist/{chunk-3BA7AGQF.js.map → chunk-CWQMRBZQ.js.map} +0 -0
  700. /package/dist/{chunk-CGO66XSZ.js.map → chunk-D4DDFKHV.js.map} +0 -0
  701. /package/dist/{chunk-AKLNRWC2.js.map → chunk-DNQYUNC2.js.map} +0 -0
  702. /package/dist/{chunk-BUIX7AXM.js.map → chunk-DUEH7N7W.js.map} +0 -0
  703. /package/dist/{chunk-YOSXOFWN.js.map → chunk-E3PED6HJ.js.map} +0 -0
  704. /package/dist/{chunk-QTAXM2J6.js.map → chunk-EUFBKP6Q.js.map} +0 -0
  705. /package/dist/{chunk-PQAXAKOO.js.map → chunk-GKEB4U23.js.map} +0 -0
  706. /package/dist/{chunk-6FBDFOHD.js.map → chunk-HU274F27.js.map} +0 -0
  707. /package/dist/{chunk-L5RO3TWT.js.map → chunk-IABYVAMO.js.map} +0 -0
  708. /package/dist/{chunk-QS6W5PZ4.js.map → chunk-IJAPJGMG.js.map} +0 -0
  709. /package/dist/{chunk-OUQ4H2WU.js.map → chunk-JHEPBM7J.js.map} +0 -0
  710. /package/dist/{chunk-BL52MOFL.js.map → chunk-K6HYNIAS.js.map} +0 -0
  711. /package/dist/{chunk-A6UVM6Q5.js.map → chunk-K7XKVWL2.js.map} +0 -0
  712. /package/dist/{chunk-BTH77ZKU.js.map → chunk-KO445K7J.js.map} +0 -0
  713. /package/dist/{chunk-YEKWAL2X.js.map → chunk-LZEQJFZ3.js.map} +0 -0
  714. /package/dist/{chunk-KWIZQXGE.js.map → chunk-MEFCSGAC.js.map} +0 -0
  715. /package/dist/{chunk-MYMDKREO.js.map → chunk-MZ6DIHEL.js.map} +0 -0
  716. /package/dist/{chunk-G6I7MMAB.js.map → chunk-NNDNVBTX.js.map} +0 -0
  717. /package/dist/{chunk-NQ5YW2DW.js.map → chunk-OGTHZVXJ.js.map} +0 -0
  718. /package/dist/{chunk-UPMVNLJV.js.map → chunk-PEYHMXE7.js.map} +0 -0
  719. /package/dist/{chunk-GBW5B2A5.js.map → chunk-PGNZXLHB.js.map} +0 -0
  720. /package/dist/{chunk-U3DYPWZY.js.map → chunk-QTXO5QDM.js.map} +0 -0
  721. /package/dist/{chunk-3DEQO2QU.js.map → chunk-SQTISBFA.js.map} +0 -0
  722. /package/dist/{chunk-Z3QJUOGM.js.map → chunk-TGG5VKA3.js.map} +0 -0
  723. /package/dist/{chunk-KQKE3HWV.js.map → chunk-TZ3VF4XU.js.map} +0 -0
  724. /package/dist/{chunk-Y25WZ3LE.js.map → chunk-WLY655R4.js.map} +0 -0
  725. /package/dist/{chunk-RWEDZXDS.js.map → chunk-XC34XLSB.js.map} +0 -0
  726. /package/dist/{chunk-WHSKBORP.js.map → chunk-XGZBQXNE.js.map} +0 -0
  727. /package/dist/{chunk-NCGFSOTH.js.map → chunk-XT4XFXJW.js.map} +0 -0
  728. /package/dist/{chunk-2UXDM3M2.js.map → chunk-YLARJFPF.js.map} +0 -0
  729. /package/dist/{chunk-O5H6DQIL.js.map → chunk-ZNQCWD2Y.js.map} +0 -0
  730. /package/dist/{chunk-CHOK2K4T.js.map → chunk-ZS4OL6CW.js.map} +0 -0
  731. /package/dist/{condition-TSAKFLQQ.js.map → condition-4AV7GQQZ.js.map} +0 -0
  732. /package/dist/{categorical-TS6E3CLR.js.map → controls-6H3GGIOF.js.map} +0 -0
  733. /package/dist/{controls-NANBRFUU.js.map → controls.config-I6TQRYM7.js.map} +0 -0
  734. /package/dist/{correlation-DDTB2MQ4.js.map → correlation-J3UYQ3LT.js.map} +0 -0
  735. /package/dist/{cuminc-YXD6AMQ5.js.map → cuminc-W4RQVEMD.js.map} +0 -0
  736. /package/dist/{cuminc.integration.spec-SHWSLCF2.js.map → cuminc.integration.spec-M3EOPC5D.js.map} +0 -0
  737. /package/dist/{customdata.inputui-ZKUYACHP.js.map → customdata.inputui-TFM5JYFF.js.map} +0 -0
  738. /package/dist/{dataDownload-WVKSCXS4.js.map → dataDownload-R4FGOJWP.js.map} +0 -0
  739. /package/dist/{dataDownload.integration.spec-DNKMPCIP.js.map → dataDownload.integration.spec-OLTFN27L.js.map} +0 -0
  740. /package/dist/{databrowser.ui-SGSF7SLH.js.map → databrowser.ui-BRZS7R5S.js.map} +0 -0
  741. /package/dist/{controls.config-D4QPLZ6S.js.map → density-2WOYR4NB.js.map} +0 -0
  742. /package/dist/{dictionary-XZNWUDMM.js.map → dictionary-7SGIE5UL.js.map} +0 -0
  743. /package/dist/{e2pca-XWLSZ4X6.js.map → e2pca-VSEXUGQO.js.map} +0 -0
  744. /package/dist/{ep-RBRQSMSG.js.map → ep-SRNHBEU5.js.map} +0 -0
  745. /package/dist/{expclust.gdc.spec-JJVEDK7R.js.map → expclust.gdc.spec-KMYKHAP3.js.map} +0 -0
  746. /package/dist/{facet-RVJOUYVM.js.map → facet-X26JAGPP.js.map} +0 -0
  747. /package/dist/{frequencyChart-L47GRXL2.js.map → frequencyChart-YTNTX2DN.js.map} +0 -0
  748. /package/dist/{frequencyChart.integration.spec-3PZID3LQ.js.map → frequencyChart.integration.spec-2FZSB5MJ.js.map} +0 -0
  749. /package/dist/{geneExpClustering-5XVK2P45.js.map → geneExpClustering-L5G3B4AL.js.map} +0 -0
  750. /package/dist/{geneExpression-WS6JJGEX.js.map → geneExpression-4LOOH6RS.js.map} +0 -0
  751. /package/dist/{geneExpression-6TF2V66T.js.map → geneExpression-GDJE5F7I.js.map} +0 -0
  752. /package/dist/{geneExpression-7S3ZOXRZ.js.map → geneExpression-HRHBSIKP.js.map} +0 -0
  753. /package/dist/{geneORA-2PEH5UCA.js.map → geneORA-UWQ3P7AU.js.map} +0 -0
  754. /package/dist/{density-W3FYAZZ3.js.map → geneVariant-AWKVUBAO.js.map} +0 -0
  755. /package/dist/{geneVariant-7UE26ZWW.js.map → geneVariant-RYJKK6TN.js.map} +0 -0
  756. /package/dist/{genefusion.ui-22TM3AWE.js.map → genefusion.ui-YZRBUQ56.js.map} +0 -0
  757. /package/dist/{geneset-2IKCYNLG.js.map → geneset-B5VDMDP7.js.map} +0 -0
  758. /package/dist/{genomeBrowser-NPD373O3.js.map → genomeBrowser-6C6M5QRC.js.map} +0 -0
  759. /package/dist/{geneVariant-APRYF4DX.js.map → genomeBrowser.controls-ZL6Z3A4B.js.map} +0 -0
  760. /package/dist/{genomeBrowser.spec-OJPHVWTK.js.map → genomeBrowser.spec-TWIJACVS.js.map} +0 -0
  761. /package/dist/{grin2-SXOAL3FI.js.map → grin2-7GW3S27T.js.map} +0 -0
  762. /package/dist/{grin2-5S3PIVK3.js.map → grin2-FB32LBKB.js.map} +0 -0
  763. /package/dist/{genomeBrowser.controls-44CJZV6T.js.map → gsea-7H4EP5QX.js.map} +0 -0
  764. /package/dist/{groupsetting-4AZH7NS7.js.map → hierCluster-UXKBZMLO.js.map} +0 -0
  765. /package/dist/{gsea-HCCJO2WR.js.map → hierCluster-Y2FK2S5L.js.map} +0 -0
  766. /package/dist/{hierCluster-2ACU2XOL.js.map → hierCluster.config-7UEK5MJ5.js.map} +0 -0
  767. /package/dist/{hierCluster.integration.spec-PIYIR4V6.js.map → hierCluster.integration.spec-Z2NO3ZSN.js.map} +0 -0
  768. /package/dist/{hierCluster-A3RWLVFT.js.map → hierCluster.interactivity-RGI5XRPG.js.map} +0 -0
  769. /package/dist/{hierCluster.config-UBELDTXB.js.map → hierCluster.renderers-6PLCOGYI.js.map} +0 -0
  770. /package/dist/{imagePlot-R7RPGREP.js.map → imagePlot-O26LDEII.js.map} +0 -0
  771. /package/dist/{hierCluster.interactivity-ZB6BJIRD.js.map → importPlot-6IQTE6O4.js.map} +0 -0
  772. /package/dist/{hierCluster.renderers-UYDUNBTA.js.map → launch.adhoc-YVYBB7WH.js.map} +0 -0
  773. /package/dist/{lollipop-DA67ETKC.js.map → lollipop-ZQ6RMLIJ.js.map} +0 -0
  774. /package/dist/{maf-ZXTEBQYT.js.map → maf-AHK4ISWK.js.map} +0 -0
  775. /package/dist/{maftimeline-N6B3A7FT.js.map → maftimeline-7MCKV3OC.js.map} +0 -0
  776. /package/dist/{importPlot-G6NBPNHI.js.map → matrix-GYY4XOB2.js.map} +0 -0
  777. /package/dist/{launch.adhoc-LT6NJTIU.js.map → matrix-WJQWC6E6.js.map} +0 -0
  778. /package/dist/{matrix-24BTAJ6Z.js.map → matrix.cells-ARW32HYP.js.map} +0 -0
  779. /package/dist/{matrix-QFHI7BN4.js.map → matrix.config-XKV3MYB3.js.map} +0 -0
  780. /package/dist/{matrix.cells-PW3JRJAN.js.map → matrix.controls-HISIPNHJ.js.map} +0 -0
  781. /package/dist/{matrix.config-AOWHJAW5.js.map → matrix.data-USALDVQY.js.map} +0 -0
  782. /package/dist/{matrix.controls-L6GQZLAC.js.map → matrix.groups-2ZNRR56O.js.map} +0 -0
  783. /package/dist/{matrix.integration.spec-LHUSW6KG.js.map → matrix.integration.spec-U5SFKDLE.js.map} +0 -0
  784. /package/dist/{matrix.data-IZB4AFO2.js.map → matrix.interactivity-PLS5VRBD.js.map} +0 -0
  785. /package/dist/{matrix.groups-OMR3I6OJ.js.map → matrix.layout-CIWDTBWE.js.map} +0 -0
  786. /package/dist/{matrix.interactivity-SAC6CIDX.js.map → matrix.legend-GEBKE674.js.map} +0 -0
  787. /package/dist/{matrix.layout-UPR67PVU.js.map → matrix.renderers-DDZYFY3A.js.map} +0 -0
  788. /package/dist/{matrix.legend-IWXFC6WP.js.map → matrix.serieses-43Y763CP.js.map} +0 -0
  789. /package/dist/{matrix.renderers-23KEQGDV.js.map → matrix.sort-Y4NQ3QL2.js.map} +0 -0
  790. /package/dist/{matrix.sort.unit.spec-NCLJP6FB.js.map → matrix.sort.unit.spec-VU3JMF2L.js.map} +0 -0
  791. /package/dist/{matrix.serieses-YN7OOK4R.js.map → matrix.sorterUi-47XHMDWW.js.map} +0 -0
  792. /package/dist/{matrix.sorterUi.unit.spec-SQIOU2W7.js.map → matrix.sorterUi.unit.spec-INLX4DJK.js.map} +0 -0
  793. /package/dist/{mavb-ZYOQBCAH.js.map → mavb-3SX5TR23.js.map} +0 -0
  794. /package/dist/{mds.fimo-CP3TNQB4.js.map → mds.fimo-4OR2MHMZ.js.map} +0 -0
  795. /package/dist/{mds.samplescatterplot-BYS532UR.js.map → mds.samplescatterplot-UJCG4S2Z.js.map} +0 -0
  796. /package/dist/{mds.survivalplot-ZGANSS2C.js.map → mds.survivalplot-NSQY4YES.js.map} +0 -0
  797. /package/dist/{metaboliteIntensity-PNN4UHFV.js.map → metaboliteIntensity-IPW5TNAV.js.map} +0 -0
  798. /package/dist/{numeric-35EZC4XG.js.map → numeric-C3HYUOIA.js.map} +0 -0
  799. /package/dist/{matrix.sort-66QD7QMD.js.map → numeric.discrete-FRK55BUD.js.map} +0 -0
  800. /package/dist/{matrix.sorterUi-XORAO5CO.js.map → numeric.toggle-X6LBTFQC.js.map} +0 -0
  801. /package/dist/{numericDictTermCluster-DOMHDQGH.js.map → numericDictTermCluster-DIFR4QFK.js.map} +0 -0
  802. /package/dist/{oncomatrix-2E5W5522.js.map → oncomatrix-IUTOCPLH.js.map} +0 -0
  803. /package/dist/{oncomatrix.spec-EFLWCP4S.js.map → oncomatrix.spec-SCVNY2XK.js.map} +0 -0
  804. /package/dist/{plot.2dvaf-XKL2LACB.js.map → plot.2dvaf-4CWLYMRY.js.map} +0 -0
  805. /package/dist/{numeric.discrete-JSGUVYEW.js.map → plot.app-JORKG3V6.js.map} +0 -0
  806. /package/dist/{plot.barplot-KIY67E5V.js.map → plot.barplot-E2QSRJ2S.js.map} +0 -0
  807. /package/dist/{plot.boxplot-F2PAU2WG.js.map → plot.boxplot-SQGBCP4I.js.map} +0 -0
  808. /package/dist/{plot.brainImaging-NMVMIHJJ.js.map → plot.brainImaging-7H4FGSBW.js.map} +0 -0
  809. /package/dist/{plot.disco-3R5FEJX2.js.map → plot.disco-OEO2GPW4.js.map} +0 -0
  810. /package/dist/{plot.dzi-MM4OIAMF.js.map → plot.dzi-M47RO2F4.js.map} +0 -0
  811. /package/dist/{plot.ssgq-EKP7DQWD.js.map → plot.ssgq-CKEPLRLG.js.map} +0 -0
  812. /package/dist/{plot.vaf2cov-MDSX2MDP.js.map → plot.vaf2cov-4S5KYZSF.js.map} +0 -0
  813. /package/dist/{plot.wsi-ACUMTPXU.js.map → plot.wsi-KJTM6ZXN.js.map} +0 -0
  814. /package/dist/{profile.spec-X6VP6BJ3.js.map → profile.spec-LRSANXLK.js.map} +0 -0
  815. /package/dist/{numeric.toggle-RLSX62XJ.js.map → profilePlot-NH7ZAXE2.js.map} +0 -0
  816. /package/dist/{plot.app-BNLSZKBR.js.map → qualitative-2XUNRJGW.js.map} +0 -0
  817. /package/dist/{profilePlot-AFQF4GK7.js.map → regression-SO5LO3AA.js.map} +0 -0
  818. /package/dist/{regression-UELT2GA7.js.map → regression.inputs-S7YFVKU5.js.map} +0 -0
  819. /package/dist/{regression.inputs-YHUOJUF7.js.map → regression.inputs.term-7RTOJCBV.js.map} +0 -0
  820. /package/dist/{regression.inputs.term-56NPXHQP.js.map → regression.inputs.values.table-5K6VJ43R.js.map} +0 -0
  821. /package/dist/{regression.integration.spec-Q7JFWCS6.js.map → regression.integration.spec-URYEIJBQ.js.map} +0 -0
  822. /package/dist/{regression.inputs.values.table-SMQ7WHLO.js.map → regression.results-TZ7MKK6W.js.map} +0 -0
  823. /package/dist/{regression.spec-NK76VLDY.js.map → regression.spec-Y3YRMMNF.js.map} +0 -0
  824. /package/dist/{report-57MTJJLW.js.map → report-L2FU44BT.js.map} +0 -0
  825. /package/dist/{regression.results-U3G2ZZUV.js.map → runChart-XV6WKBOY.js.map} +0 -0
  826. /package/dist/{runchart.integration.spec-B4GM26UX.js.map → runchart.integration.spec-GEOMKOXQ.js.map} +0 -0
  827. /package/dist/{sampleScatter.spec-I7UC44SD.js.map → sampleScatter.spec-ITZLTKUM.js.map} +0 -0
  828. /package/dist/{runChart-3LFLLJQD.js.map → sampleView-ROG7PMHR.js.map} +0 -0
  829. /package/dist/{samplelst-QX7U72CA.js.map → samplelst-2IL63737.js.map} +0 -0
  830. /package/dist/{samplematrix-AO6CO6LS.js.map → samplematrix-6VRFIIVU.js.map} +0 -0
  831. /package/dist/{sampleView-4JJYBS22.js.map → scatter-MA3UZ6C6.js.map} +0 -0
  832. /package/dist/{scatter.integration.spec-R2KCB525.js.map → scatter.integration.spec-RFYQS5DE.js.map} +0 -0
  833. /package/dist/{selectGenomeWithTklst-4I2NH2PT.js.map → selectGenomeWithTklst-FIFYXXAQ.js.map} +0 -0
  834. /package/dist/{singleCellGeneExpression-2PGRGER3.js.map → singleCellGeneExpression-SBAJ6XML.js.map} +0 -0
  835. /package/dist/{scatter-KVGKKEJJ.js.map → singleCellPlot-TRRGNH37.js.map} +0 -0
  836. /package/dist/{singlecell-UI3SJQSC.js.map → singlecell-55ELYBDU.js.map} +0 -0
  837. /package/dist/{singlecell-4XA5IFCK.js.map → singlecell-JCKJGEBH.js.map} +0 -0
  838. /package/dist/{snp-P2OQN7HS.js.map → snp-LWS3OP2M.js.map} +0 -0
  839. /package/dist/{snplocus-GVFRKBGY.js.map → snplocus-OTMVPVWC.js.map} +0 -0
  840. /package/dist/{singleCellPlot-YRWCR2BG.js.map → snplst-LQRIYCRZ.js.map} +0 -0
  841. /package/dist/{spliceevent.a53ss.diagram-OZNJY6SB.js.map → spliceevent.a53ss.diagram-E3MTCYLV.js.map} +0 -0
  842. /package/dist/{spliceevent.exonskip.diagram-FR6BRJ54.js.map → spliceevent.exonskip.diagram-YJNJYQS6.js.map} +0 -0
  843. /package/dist/{spliceevent.noeventdiagram-KVRADJO2.js.map → spliceevent.noeventdiagram-L326T54B.js.map} +0 -0
  844. /package/dist/{ssGSEA-W6ET2NNA.js.map → ssGSEA-55UO2PTA.js.map} +0 -0
  845. /package/dist/{ssGSEA-3X2VPHGA.js.map → ssGSEA-GFLSCV25.js.map} +0 -0
  846. /package/dist/{summarizeCnvGeneexp-MHAQAB4O.js.map → summarizeCnvGeneexp-RNYFHQFL.js.map} +0 -0
  847. /package/dist/{summarizeGeneexpSurvival-ANT2Q5HF.js.map → summarizeGeneexpSurvival-PW6NFLNT.js.map} +0 -0
  848. /package/dist/{snplst-TW2N4WVV.js.map → summarizeMutationDiagnosis-6W4KBCA2.js.map} +0 -0
  849. /package/dist/{summarizeMutationSurvival-5UJLCTCK.js.map → summarizeMutationSurvival-SFCYKQIL.js.map} +0 -0
  850. /package/dist/{summarizeMutationDiagnosis-CHYUEIYR.js.map → summary-VB7SQ2BR.js.map} +0 -0
  851. /package/dist/{summary.integration.spec-JVWTZOCK.js.map → summary.integration.spec-5ILI25QN.js.map} +0 -0
  852. /package/dist/{summaryInput-GTNGADQC.js.map → summaryInput-OPZ7DUPO.js.map} +0 -0
  853. /package/dist/{sunburst-YGPJBVQT.js.map → sunburst-Y6JFC4BA.js.map} +0 -0
  854. /package/dist/{survival-53Q4XP6A.js.map → survival-OWQWT6A2.js.map} +0 -0
  855. /package/dist/{survival.integration.spec-TOFJNA7K.js.map → survival.integration.spec-AFFOS6BO.js.map} +0 -0
  856. /package/dist/{svgraph-V5SSXUII.js.map → svgraph-FLZA26LI.js.map} +0 -0
  857. /package/dist/{svmr-RD7RVEPF.js.map → svmr-JEVWYD2R.js.map} +0 -0
  858. /package/dist/{table-FWP72IKY.js.map → table-ZTC4W5MG.js.map} +0 -0
  859. /package/dist/{summary-C2J3QBOI.js.map → tk-JM7ED4NO.js.map} +0 -0
  860. /package/dist/{tp.ui-VQDMAI5C.js.map → tp.ui-AUFNIKW7.js.map} +0 -0
  861. /package/dist/{tk-RE2KRWM5.js.map → tvs.density-AYZ4U5VI.js.map} +0 -0
  862. /package/dist/{tvs.samplelst-3TVJMZUJ.js.map → tvs.samplelst-CTJ6JLNQ.js.map} +0 -0
  863. /package/dist/{tvs.density-N62PJOTO.js.map → violin-UQYX7KKM.js.map} +0 -0
  864. /package/dist/{tvs.numeric-XKB55NHG.js.map → violin.interactivity-KHP24DHY.js.map} +0 -0
  865. /package/dist/{violin-4ATAJRKV.js.map → violin.renderer-SWOKCTU3.js.map} +0 -0
  866. /package/dist/{violin.interactivity-UCIXL4O3.js.map → vocabulary-T2AVFI7D.js.map} +0 -0
@@ -0,0 +1,2191 @@
1
+ import {
2
+ appear2 as appear,
3
+ disappear2 as disappear,
4
+ export_data,
5
+ first_genetrack_tolist,
6
+ font,
7
+ make_table_2col,
8
+ newpane,
9
+ sayerror
10
+ } from "./chunk-5GYHGTRN.js";
11
+ import {
12
+ invalidcoord,
13
+ string2pos
14
+ } from "./chunk-HJ6L54YS.js";
15
+ import "./chunk-BX6ANKGQ.js";
16
+ import {
17
+ dofetch,
18
+ dofetch2,
19
+ dofetch3,
20
+ vcfparsemeta
21
+ } from "./chunk-4JXJ4UBP.js";
22
+ import "./chunk-4YNEZISK.js";
23
+ import "./chunk-RY7CVONT.js";
24
+ import "./chunk-IQIXGTQV.js";
25
+ import "./chunk-EUFBKP6Q.js";
26
+ import {
27
+ bplen,
28
+ dt2label,
29
+ dtcnv,
30
+ dtfusionrna,
31
+ dtitd,
32
+ dtloh,
33
+ dtsnvindel,
34
+ dtsv,
35
+ getMax_byiqr,
36
+ mclass,
37
+ mclassitd,
38
+ tkt,
39
+ validtkt
40
+ } from "./chunk-PAV653SV.js";
41
+ import "./chunk-4W3BORF5.js";
42
+ import "./chunk-SU6RBYZK.js";
43
+ import "./chunk-2J7NXRQQ.js";
44
+ import {
45
+ Menu
46
+ } from "./chunk-IVJWQYGG.js";
47
+ import "./chunk-OMO754MK.js";
48
+ import "./chunk-RA5EXEHB.js";
49
+ import {
50
+ category10_default
51
+ } from "./chunk-PMZS3SHH.js";
52
+ import "./chunk-LOZEKOES.js";
53
+ import "./chunk-TOU7EVFQ.js";
54
+ import {
55
+ linear,
56
+ ordinal
57
+ } from "./chunk-W2IWHXLL.js";
58
+ import "./chunk-5OHXYXLD.js";
59
+ import "./chunk-UJUXE42U.js";
60
+ import "./chunk-OMR2DT66.js";
61
+ import "./chunk-NDWTN4U5.js";
62
+ import "./chunk-HFNDKYVF.js";
63
+
64
+ // src/samplematrix.featuremenu.js
65
+ function showMenu_isgenevalue(smat, f) {
66
+ smat.menu.d.append("div").attr("class", "sja_menuoption").text("Sort").on("click", () => {
67
+ smat.menu.hide();
68
+ if (f.sort) {
69
+ return;
70
+ }
71
+ for (const f2 of smat.features) {
72
+ if (f2.isgenevalue) delete f2.sort;
73
+ }
74
+ f.sort = 1;
75
+ smat.draw_matrix();
76
+ });
77
+ }
78
+ function showMenu_iscnv(smat, f, obj) {
79
+ {
80
+ const row = smat.menu.d.append("div").style("margin", "10px");
81
+ row.append("span").html("CNV log2(ratio) cutoff ");
82
+ row.append("input").property("value", obj.valuecutoff || 0).attr("type", "number").style("width", "50px").on("keyup", (event2) => {
83
+ if (event2.code != "Enter" && event2.code != "NumpadEnter") return;
84
+ let v = Number.parseFloat(event2.target.value);
85
+ if (!v || v < 0) {
86
+ v = 0;
87
+ }
88
+ if (v == 0) {
89
+ if (obj.valuecutoff) {
90
+ obj.valuecutoff = 0;
91
+ smat.update_singlefeature(f);
92
+ } else {
93
+ }
94
+ return;
95
+ }
96
+ if (obj.valuecutoff) {
97
+ if (obj.valuecutoff == v) {
98
+ } else {
99
+ obj.valuecutoff = v;
100
+ smat.update_singlefeature(f);
101
+ }
102
+ } else {
103
+ obj.valuecutoff = v;
104
+ smat.update_singlefeature(f);
105
+ }
106
+ });
107
+ row.append("div").style("font-size", ".7em").style("opacity", 0.5).html("Only show CNV with absolute log2(ratio) no less than cutoff.<br>Set to 0 to cancel.");
108
+ }
109
+ {
110
+ const row = smat.menu.d.append("div").style("margin", "10px");
111
+ row.append("span").html("CNV segment size limit&nbsp;");
112
+ row.append("input").property("value", obj.focalsizelimit || 0).attr("type", "number").style("width", "100px").on("keyup", (event2) => {
113
+ if (event2.code != "Enter" && event2.code != "NumpadEnter") return;
114
+ let v = Number.parseInt(event2.target.value);
115
+ if (!v || v < 0) {
116
+ v = 0;
117
+ }
118
+ if (v == 0) {
119
+ if (obj.focalsizelimit) {
120
+ obj.focalsizelimit = 0;
121
+ smat.update_singlefeature(f);
122
+ } else {
123
+ }
124
+ return;
125
+ }
126
+ if (obj.focalsizelimit) {
127
+ if (obj.focalsizelimit == v) {
128
+ } else {
129
+ obj.focalsizelimit = v;
130
+ smat.update_singlefeature(f);
131
+ }
132
+ } else {
133
+ obj.focalsizelimit = v;
134
+ smat.update_singlefeature(f);
135
+ }
136
+ });
137
+ row.append("span").text("bp");
138
+ row.append("div").style("font-size", ".7em").style("opacity", 0.5).html("Limit the CNV segment length to show only focal events.<br>Set to 0 to cancel.");
139
+ }
140
+ }
141
+ function showMenu_isloh(smat, f, obj) {
142
+ {
143
+ const row = smat.menu.d.append("div").style("margin", "10px");
144
+ row.append("span").html("LOH segmean cutoff&nbsp;");
145
+ row.append("input").property("value", obj.valuecutoff || 0).attr("type", "number").style("width", "50px").on("keyup", (event2) => {
146
+ if (event2.code != "Enter" && event2.code != "NumpadEnter") return;
147
+ let v = Number.parseFloat(event2.target.value);
148
+ if (!v || v < 0) {
149
+ v = 0;
150
+ }
151
+ if (v == 0) {
152
+ if (obj.valuecutoff) {
153
+ obj.valuecutoff = 0;
154
+ smat.update_singlefeature(f);
155
+ } else {
156
+ }
157
+ return;
158
+ }
159
+ if (obj.valuecutoff) {
160
+ if (obj.valuecutoff == v) {
161
+ } else {
162
+ obj.valuecutoff = v;
163
+ smat.update_singlefeature(f);
164
+ }
165
+ } else {
166
+ obj.valuecutoff = v;
167
+ smat.update_singlefeature(f);
168
+ }
169
+ });
170
+ row.append("div").style("font-size", ".7em").style("opacity", 0.5).html("Only show LOH with segmean no less than cutoff.<br>Set to 0 to cancel.");
171
+ }
172
+ {
173
+ const row = smat.menu.d.append("div").style("margin", "10px");
174
+ row.append("span").html("LOH segment size limit&nbsp;");
175
+ row.append("input").property("value", obj.focalsizelimit || 0).attr("type", "number").style("width", "100px").on("keyup", (event2) => {
176
+ if (event2.code != "Enter" && event2.code != "NumpadEnter") return;
177
+ let v = Number.parseInt(event2.target.value);
178
+ if (!v || v < 0) {
179
+ v = 0;
180
+ }
181
+ if (v == 0) {
182
+ if (obj.focalsizelimit) {
183
+ obj.focalsizelimit = 0;
184
+ smat.update_singlefeature(f);
185
+ } else {
186
+ }
187
+ return;
188
+ }
189
+ if (obj.focalsizelimit) {
190
+ if (obj.focalsizelimit == v) {
191
+ } else {
192
+ obj.focalsizelimit = v;
193
+ smat.update_singlefeature(f);
194
+ }
195
+ } else {
196
+ obj.focalsizelimit = v;
197
+ smat.update_singlefeature(f);
198
+ }
199
+ });
200
+ row.append("span").text("bp");
201
+ row.append("div").style("font-size", ".7em").style("opacity", 0.5).html("Limit the LOH segment length to show only focal events.<br>Set to 0 to cancel.");
202
+ }
203
+ }
204
+ function showMenu_ismutation(smat, f) {
205
+ {
206
+ const div = smat.menu.d.append("div").style("margin", "10px").style("border", "solid 1px #ededed");
207
+ const update = () => {
208
+ smat.update_singlefeature(f);
209
+ smat.menu.hide();
210
+ };
211
+ const table = div.append("table").style("margin", "10px").style("border-spacing", "1px");
212
+ const tbody = table.append("tbody");
213
+ {
214
+ const tr = tbody.append("tr");
215
+ tr.append("td").style("opacity", 0.5).text("CNV");
216
+ tr.append("td").attr("class", "sja_menuoption").text(f.cnv.hidden ? "Show" : "Hide").on("click", () => {
217
+ f.cnv.hidden = !f.cnv.hidden;
218
+ update();
219
+ });
220
+ tr.append("td").attr("class", "sja_menuoption").text("Show only").on("click", () => {
221
+ ismutation_hideallclass(f);
222
+ delete f.cnv.hidden;
223
+ update();
224
+ });
225
+ const td = tr.append("td");
226
+ if (!f.cnv.hidden) {
227
+ td.attr("class", "sja_menuoption").style("font-size", ".8em").text("CONFIG").on("click", () => {
228
+ smat.menu.clear();
229
+ showMenu_iscnv(smat, f, f.cnv);
230
+ });
231
+ }
232
+ }
233
+ {
234
+ const tr = tbody.append("tr");
235
+ tr.append("td").style("opacity", 0.5).text("LOH");
236
+ tr.append("td").attr("class", "sja_menuoption").text(f.loh.hidden ? "Show" : "Hide").on("click", () => {
237
+ f.loh.hidden = !f.loh.hidden;
238
+ update();
239
+ });
240
+ tr.append("td").attr("class", "sja_menuoption").text("Show only").on("click", () => {
241
+ ismutation_hideallclass(f);
242
+ delete f.loh.hidden;
243
+ update();
244
+ });
245
+ const td = tr.append("td");
246
+ if (!f.loh.hidden) {
247
+ td.attr("class", "sja_menuoption").style("font-size", ".8em").text("CONFIG").on("click", () => {
248
+ smat.menu.clear();
249
+ showMenu_isloh(smat, f, f.loh);
250
+ });
251
+ }
252
+ }
253
+ {
254
+ const tr = tbody.append("tr");
255
+ tr.append("td").style("opacity", 0.5).text("ITD");
256
+ tr.append("td").attr("class", "sja_menuoption").text(f.itd.hidden ? "Show" : "Hide").on("click", () => {
257
+ f.itd.hidden = !f.itd.hidden;
258
+ update();
259
+ });
260
+ tr.append("td").attr("class", "sja_menuoption").text("Show only").on("click", () => {
261
+ ismutation_hideallclass(f);
262
+ delete f.itd.hidden;
263
+ update();
264
+ });
265
+ const td = tr.append("td");
266
+ if (!f.itd.hidden) {
267
+ }
268
+ }
269
+ {
270
+ const tr = tbody.append("tr");
271
+ tr.append("td").style("opacity", 0.5).text("SV");
272
+ tr.append("td").attr("class", "sja_menuoption").text(f.sv.hidden ? "Show" : "Hide").on("click", () => {
273
+ f.sv.hidden = !f.sv.hidden;
274
+ update();
275
+ });
276
+ tr.append("td").attr("class", "sja_menuoption").text("Show only").on("click", () => {
277
+ ismutation_hideallclass(f);
278
+ delete f.sv.hidden;
279
+ update();
280
+ });
281
+ const td = tr.append("td");
282
+ if (!f.sv.hidden) {
283
+ }
284
+ }
285
+ {
286
+ const tr = tbody.append("tr");
287
+ tr.append("td").style("opacity", 0.5).text("Fusion");
288
+ tr.append("td").attr("class", "sja_menuoption").text(f.fusion.hidden ? "show" : "hide").on("click", () => {
289
+ f.fusion.hidden = !f.fusion.hidden;
290
+ update();
291
+ });
292
+ tr.append("td").attr("class", "sja_menuoption").text("show only").on("click", () => {
293
+ ismutation_hideallclass(f);
294
+ delete f.fusion.hidden;
295
+ update();
296
+ });
297
+ const td = tr.append("td");
298
+ if (!f.fusion.hidden) {
299
+ }
300
+ }
301
+ table.append("tbody").append("tr").append("td").attr("colspan", 4).style("padding-top", "10px").append("span").style("font-size", ".8em").text("List SNV/indel").attr("class", "sja_clbtext").on("click", () => {
302
+ if (tbody2.style("display") == "none") {
303
+ tbody2.style("display", "table-row-group");
304
+ } else {
305
+ tbody2.style("display", "none");
306
+ }
307
+ });
308
+ const tbody2 = table.append("tbody").style("display", "none");
309
+ for (const k in mclass) {
310
+ const c = mclass[k];
311
+ if (c.dt != dtsnvindel) {
312
+ continue;
313
+ }
314
+ const tr = tbody2.append("tr");
315
+ tr.append("td").style("opacity", 0.5).text(c.label);
316
+ tr.append("td").attr("class", "sja_menuoption").text(f.snvindel.excludeclasses[k] ? "Show" : "Hide").on("click", () => {
317
+ if (f.snvindel.excludeclasses[k]) {
318
+ delete f.snvindel.excludeclasses[k];
319
+ } else {
320
+ f.snvindel.excludeclasses[k] = 1;
321
+ }
322
+ update();
323
+ });
324
+ tr.append("td").attr("class", "sja_menuoption").text("Show only").on("click", () => {
325
+ ismutation_hideallclass(f);
326
+ delete f.snvindel.excludeclasses[k];
327
+ update();
328
+ });
329
+ const td = tr.append("td");
330
+ }
331
+ div.append("div").style("margin", "10px").append("span").style("font-size", ".8em").text("Show all classes").attr("class", "sja_clbtext").on("click", () => {
332
+ f.cnv.hidden = false;
333
+ f.loh.hidden = false;
334
+ f.itd.hidden = false;
335
+ f.sv.hidden = false;
336
+ f.fusion.hidden = false;
337
+ f.snvindel.excludeclasses = {};
338
+ update();
339
+ });
340
+ }
341
+ }
342
+ function ismutation_hideallclass(f) {
343
+ f.cnv.hidden = true;
344
+ f.loh.hidden = true;
345
+ f.itd.hidden = true;
346
+ f.sv.hidden = true;
347
+ f.fusion.hidden = true;
348
+ f.snvindel.excludeclasses = {};
349
+ for (const k in mclass) {
350
+ if (mclass[k].dt == dtsnvindel) f.snvindel.excludeclasses[k] = 1;
351
+ }
352
+ }
353
+
354
+ // src/samplematrix.kmplot.js
355
+ function may_add_kmplotbutton(smat, buttonrow) {
356
+ if (!smat.mds || !smat.mds.survivalplot) return;
357
+ buttonrow.append("span").style("margin-right", "20px").style("font-size", ".8em").text("SURVIVAL PLOT").attr("class", "sja_clbtext").on("click", (event2) => {
358
+ smat.menu.clear().showunder(event2.target);
359
+ kmplot_menu(smat);
360
+ });
361
+ }
362
+ async function kmplot_menu(smat) {
363
+ const mutation_features = smat.features.filter((i) => i.ismutation);
364
+ try {
365
+ if (mutation_features.length != 2) throw "only works with two genomic features.";
366
+ await kmplot_do(smat, mutation_features[0], mutation_features[1]);
367
+ } catch (e) {
368
+ smat.menu.d.append("div").style("margin", "20px").text("Cannot make survival plot: " + (e.message || e));
369
+ }
370
+ }
371
+ async function kmplot_do(smat, f1, f2) {
372
+ const s1 = [], s2 = [], s12 = [];
373
+ for (const i of smat.samples) {
374
+ const in1 = f1.items.find((j) => j.sample == i.name);
375
+ const in2 = f2.items.find((j) => j.sample == i.name);
376
+ if (in1) {
377
+ if (in2) s12.push(i.name);
378
+ else s1.push(i.name);
379
+ } else {
380
+ s2.push(i.name);
381
+ }
382
+ }
383
+ const plot = {
384
+ renderplot: 1,
385
+ samplerule: {
386
+ full: {},
387
+ mutated_sets: [
388
+ { name: f1.label + " mutated (n=" + s1.length + ")", samplenames: s1 },
389
+ { name: f2.label + " mutated (n=" + s2.length + ")", samplenames: s2 },
390
+ { name: f1.label + " and " + f2.label + " mutated (n=" + s12.length + ")", samplenames: s12 }
391
+ ]
392
+ }
393
+ };
394
+ if (smat.limitsamplebyeitherannotation) {
395
+ plot.samplerule.full = {
396
+ byattr: 1,
397
+ key: smat.limitsamplebyeitherannotation[0].key,
398
+ value: smat.limitsamplebyeitherannotation[0].value,
399
+ immutable: 1
400
+ };
401
+ }
402
+ const pane = newpane({ x: 100, y: 100 });
403
+ pane.header.text(
404
+ (smat.limitsamplebyeitherannotation ? smat.limitsamplebyeitherannotation[0].value + " " : "") + "survival by " + f1.label + " and " + f2.label + " mutation status"
405
+ );
406
+ const _ = await import("./mds.survivalplot-NSQY4YES.js");
407
+ _.init(
408
+ {
409
+ mds: smat.mds,
410
+ genome: smat.genome,
411
+ plotlist: [plot]
412
+ },
413
+ pane.body
414
+ );
415
+ }
416
+
417
+ // src/samplematrix.js
418
+ var saynovalue = "na";
419
+ var default_cnvgaincolor = "#D6683C";
420
+ var default_cnvlosscolor = "#67a9cf";
421
+ var default_genevaluecolor = "#095873";
422
+ var default_lohcolor = "#858585";
423
+ var default_svcolor = "#858585";
424
+ var minheight2showname = 8;
425
+ var Samplematrix = class {
426
+ /*
427
+ init ui
428
+ */
429
+ constructor(p) {
430
+ for (const k in p) {
431
+ this[k] = p[k];
432
+ }
433
+ if (this.debugmode) window.smat = this;
434
+ this.tip = new Menu({ padding: "0px", hideXmute: 1, hideYmute: 1 });
435
+ this.menu = new Menu({ padding: "0px" });
436
+ this.errdiv = this.holder.append("div");
437
+ if (!this.iscustom) {
438
+ try {
439
+ if (!this.dslabel) throw "not custom data but dslabel is missing";
440
+ this.mds = this.genome.datasets[this.dslabel];
441
+ if (!this.mds) throw "invalid dataset name: " + this.dslabel;
442
+ if (!this.mds.isMds) throw "improper dataset: " + this.dslabel;
443
+ } catch (e) {
444
+ this.error(e);
445
+ }
446
+ }
447
+ init_controlui(this);
448
+ if (this.header) {
449
+ this.holder.append("div").style("margin-bottom", "20px").html(this.header);
450
+ }
451
+ this.wait_div = this.holder.append("div");
452
+ this.wait_div.style("display", "block").text("Loading...");
453
+ this.svg = this.holder.append("svg");
454
+ this.validate_config().then(() => {
455
+ return this.get_features();
456
+ }).catch((err) => {
457
+ if (typeof err == "string") {
458
+ this.error(err);
459
+ } else {
460
+ this.error(err.message);
461
+ if (err.stack) console.log(err.stack);
462
+ }
463
+ });
464
+ }
465
+ error(m) {
466
+ sayerror(this.errdiv, m);
467
+ }
468
+ async validate_config() {
469
+ if (this.iscustom) {
470
+ if (!this.querykey2tracks) throw "querykey2tracks missing for custom dataset";
471
+ let novalidtk = true;
472
+ for (const key in this.querykey2tracks) {
473
+ const tk = this.querykey2tracks[key];
474
+ if (!tk.file && !tk.url) throw "no file or url for a custom track by key " + key;
475
+ if (!tk.type) throw "missing type for member track by key " + key;
476
+ if (!validtkt(tk.type)) throw "invalid type for a member track: " + tk.type;
477
+ novalidtk = false;
478
+ }
479
+ if (novalidtk) throw "no custom tracks from querykey2tracks";
480
+ let vcftk;
481
+ for (const key in this.querykey2tracks) {
482
+ const tk = this.querykey2tracks[key];
483
+ if (tk.type == tkt.mdsvcf) {
484
+ vcftk = tk;
485
+ }
486
+ }
487
+ if (vcftk) {
488
+ await this.may_init_customvcf(vcftk);
489
+ }
490
+ } else {
491
+ if (this.mds.mdsIsUninitiated) {
492
+ const d = await dofetch3(`getDataset?genome=${this.genome.name}&dsname=${this.mds.label}`);
493
+ if (d.error) throw d.error;
494
+ if (!d.ds) throw "ds missing";
495
+ Object.assign(this.mds, d.ds);
496
+ delete this.mds.mdsIsUninitiated;
497
+ }
498
+ }
499
+ if (this.limitsamplebyeitherannotation) {
500
+ if (!Array.isArray(this.limitsamplebyeitherannotation)) throw "limitsamplebyeitherannotation must be an array";
501
+ const tr = this.legendtable.append("tr");
502
+ for (const anno of this.limitsamplebyeitherannotation) {
503
+ if (!anno.key) throw ".key missing from an element of limitsamplebyeitherannotation";
504
+ if (!anno.value) throw ".value missing from an element of limitsamplebyeitherannotation";
505
+ }
506
+ this.showlegend_limitsample();
507
+ }
508
+ const cnv_tr = this.legendtable.append("tr");
509
+ cnv_tr.append("td").style("opacity", 0.5).style("text-align", "right").text("CNV cutoff");
510
+ this.legendtable.cnv_td = cnv_tr.append("td");
511
+ const loh_tr = this.legendtable.append("tr");
512
+ loh_tr.append("td").style("opacity", 0.5).style("text-align", "right").text("LOH cutoff");
513
+ this.legendtable.loh_td = loh_tr.append("td");
514
+ if (this.limitbysamplesetgroup) {
515
+ if (!Array.isArray(this.limitbysamplesetgroup.samples)) throw ".limitbysamplesetgroup.samples is not array";
516
+ }
517
+ if (!this.rowspace) this.rowspace = 1;
518
+ if (!this.colspace) this.colspace = 1;
519
+ if (!this.rowlabspace) this.rowlabspace = 5;
520
+ if (!this.collabspace) this.collabspace = 5;
521
+ if (!this.rowlabticksize) this.rowlabticksize = 5;
522
+ if (!this.collabticksize) this.collabticksize = 5;
523
+ if (!this.features) throw "missing features[]";
524
+ if (!Array.isArray(this.features)) throw "features must be an array";
525
+ if (this.features[0].height) this.ori_feature_height = this.features[0].height;
526
+ if (this.features[0].width) this.ori_feature_width = this.features[0].width;
527
+ for (const f of this.features) {
528
+ await this.validate_feature(f);
529
+ }
530
+ }
531
+ showlegend_limitsample() {
532
+ if (!this.limitsamplebyeitherannotation) return;
533
+ }
534
+ feature_parseposition_maygene(f) {
535
+ return Promise.resolve().then(() => {
536
+ if (f.position) {
537
+ const o = string2pos(f.position, this.genome);
538
+ if (o) {
539
+ f.chr = o.chr;
540
+ f.start = o.start;
541
+ f.stop = o.stop;
542
+ }
543
+ }
544
+ if (f.chr) {
545
+ const err = invalidcoord(this.genome, f.chr, f.start, f.stop);
546
+ if (err) {
547
+ throw 'feature "' + f.label + '" position error: ' + err;
548
+ } else {
549
+ return;
550
+ }
551
+ }
552
+ if (!f.genename) throw "position required for a feature: no position or genename given";
553
+ return dofetch("/genelookup", {
554
+ input: f.genename,
555
+ genome: this.genome.name,
556
+ deep: 1
557
+ }).then((data) => {
558
+ if (data.error) throw data.error;
559
+ if (!data.gmlst || data.gmlst.length == 0) throw "no gene can be found for " + f.genename;
560
+ const regions = [];
561
+ for (const gm of data.gmlst) {
562
+ let nooverlap = true;
563
+ for (const region of regions) {
564
+ if (gm.chr == region.chr && Math.max(gm.start, region.start) < Math.min(gm.stop, region.stop)) {
565
+ nooverlap = false;
566
+ region.start = Math.min(region.start, gm.start);
567
+ region.stop = Math.max(region.stop, gm.stop);
568
+ break;
569
+ }
570
+ }
571
+ if (nooverlap) {
572
+ regions.push({
573
+ chr: gm.chr,
574
+ start: gm.start,
575
+ stop: gm.stop
576
+ });
577
+ }
578
+ }
579
+ if (regions.length > 1) {
580
+ sayerror(
581
+ this.errdiv,
582
+ "multiple regions found for gene " + f.genename + " you'd better specify one in feature"
583
+ );
584
+ }
585
+ f.chr = regions[0].chr;
586
+ f.start = regions[0].start;
587
+ f.stop = regions[0].stop;
588
+ });
589
+ });
590
+ }
591
+ validate_feature(f) {
592
+ return Promise.resolve().then(() => {
593
+ f.id = Math.random().toString();
594
+ const tr = this.legendtable.append("tr");
595
+ f.legend_tr = tr;
596
+ if (f.isgenevalue) {
597
+ if (!f.genename) throw ".genename missing for isgenevalue feature";
598
+ f.label = f.genename + " expression";
599
+ if (this.dslabel) {
600
+ if (!f.querykey) throw ".querykey missing for isgenevalue feature while loading from official dataset";
601
+ } else {
602
+ }
603
+ if (!f.scale) f.scale = { auto: 1 };
604
+ if (f.missingvalue == void 0) f.missingvalue = 0;
605
+ tr.append("td").text(f.label).style("opacity", 0.5).style("text-align", "right");
606
+ f.legendholder = tr.append("td");
607
+ if (!f.width) f.width = 20;
608
+ if (!f.color) f.color = default_genevaluecolor;
609
+ return this.feature_parseposition_maygene(f);
610
+ }
611
+ if (f.iscnv) {
612
+ if (this.dslabel) {
613
+ if (!f.querykey) throw ".querykey missing for iscnv feature while loading from official dataset";
614
+ } else {
615
+ }
616
+ if (!f.label && f.genename) {
617
+ f.label = f.genename + " CNV";
618
+ }
619
+ tr.append("td").text(f.label).style("opacity", 0.5).style("text-align", "right");
620
+ f.legendholder = tr.append("td");
621
+ if (!f.width) f.width = 40;
622
+ if (!f.colorgain) f.colorgain = default_cnvgaincolor;
623
+ if (!f.colorloss) f.colorloss = default_cnvlosscolor;
624
+ return this.feature_parseposition_maygene(f).then(() => {
625
+ if (!f.label) f.label = f.chr + ":" + f.start + "-" + f.stop + " CNV";
626
+ f.coordscale = linear().domain([f.start, f.stop]).range([0, this.features_on_rows ? f.height : f.width]);
627
+ });
628
+ }
629
+ if (f.isloh) {
630
+ if (this.dslabel) {
631
+ if (!f.querykey) throw ".querykey missing for isloh feature while loading from official dataset";
632
+ } else {
633
+ }
634
+ if (!f.label && f.genename) {
635
+ f.label = f.genename + " LOH";
636
+ }
637
+ tr.append("td").text(f.label).style("opacity", 0.5).style("text-align", "right");
638
+ f.legendholder = tr.append("td");
639
+ if (!f.width) f.width = 40;
640
+ if (!f.color) f.color = default_lohcolor;
641
+ return this.feature_parseposition_maygene(f).then(() => {
642
+ if (!f.label) f.label = f.chr + ":" + f.start + "-" + f.stop + " LOH";
643
+ f.coordscale = linear().domain([f.start, f.stop]).range([0, this.features_on_rows ? f.height : f.width]);
644
+ });
645
+ }
646
+ if (f.isvcf) {
647
+ if (this.dslabel) {
648
+ if (!f.querykey) throw ".querykey missing for isvcf feature while loading from official dataset";
649
+ } else {
650
+ }
651
+ if (!f.label && f.genename) {
652
+ f.label = f.genename + " SNV/indel";
653
+ }
654
+ tr.append("td").text(f.label).style("opacity", 0.5).style("text-align", "right");
655
+ f.legendholder = tr.append("td");
656
+ if (!f.width) f.width = 20;
657
+ if (!f.snvindel) f.snvindel = {};
658
+ return this.feature_parseposition_maygene(f).then(() => {
659
+ if (!f.label) f.label = f.chr + ":" + f.start + "-" + f.stop + " SNV/indel";
660
+ });
661
+ }
662
+ if (f.isitd) {
663
+ if (this.dslabel) {
664
+ if (!f.querykey) throw ".querykey missing for isitd feature while loading from official dataset";
665
+ } else {
666
+ }
667
+ if (!f.label && f.genename) {
668
+ f.label = f.genename + " ITD";
669
+ }
670
+ if (!f.width) f.width = 20;
671
+ if (!f.color) f.color = mclass[mclassitd].color;
672
+ tr.append("td").text(f.label).style("opacity", 0.5).style("text-align", "right");
673
+ f.legendholder = tr.append("td");
674
+ f.legendholder.append("div").style("width", "20px").html("&nbsp;").style("background", f.color);
675
+ return this.feature_parseposition_maygene(f).then(() => {
676
+ if (!f.label) f.label = f.chr + ":" + f.start + "-" + f.stop + " ITD";
677
+ });
678
+ }
679
+ if (f.issvfusion) {
680
+ if (this.dslabel) {
681
+ if (!f.querykey) throw ".querykey missing for issvfusion feature while loading from official dataset";
682
+ } else {
683
+ }
684
+ if (!f.label && f.genename) {
685
+ f.label = f.genename + " SV/fusion";
686
+ }
687
+ if (!f.width) f.width = 20;
688
+ if (!f.color) f.color = default_svcolor;
689
+ tr.append("td").text(f.label).style("opacity", 0.5).style("text-align", "right");
690
+ f.legendholder = tr.append("td");
691
+ return this.feature_parseposition_maygene(f).then(() => {
692
+ if (!f.label) f.label = f.chr + ":" + f.start + "-" + f.stop + " SV/fusion";
693
+ });
694
+ }
695
+ if (f.issvcnv) {
696
+ if (this.dslabel) {
697
+ if (!f.querykey) throw ".querykey missing for issvcnv feature while loading from official dataset";
698
+ } else {
699
+ }
700
+ if (!f.label && f.genename) {
701
+ f.label = f.genename + " CNV/SV";
702
+ }
703
+ tr.append("td").text(f.label).style("color", "#858585").style("text-align", "right");
704
+ f.legendholder = tr.append("td");
705
+ initfeature_polymutation(f);
706
+ return this.feature_parseposition_maygene(f).then(() => {
707
+ if (!f.label) f.label = f.chr + ":" + f.start + "-" + f.stop + " CNV/SV";
708
+ });
709
+ }
710
+ if (f.ismutation) {
711
+ if (this.dslabel) {
712
+ if (!f.querykeylst) throw ".querykeylst missing for ismutation feature";
713
+ if (!Array.isArray(f.querykeylst)) throw ".querykeylst[] should be array for ismutation feature";
714
+ if (f.querykeylst.length == 0) throw "querykeylst[] empty array for ismutation feature";
715
+ } else {
716
+ }
717
+ if (!f.label && f.genename) {
718
+ f.label = f.genename + " mutation";
719
+ }
720
+ tr.append("td").text(f.label).style("opacity", 0.5).style("text-align", "right");
721
+ f.legendholder = tr.append("td");
722
+ initfeature_polymutation(f);
723
+ return this.feature_parseposition_maygene(f).then(() => {
724
+ if (!f.label) f.label = f.chr + ":" + f.start + "-" + f.stop + " mutation";
725
+ f.coordscale = linear().domain([f.start, f.stop]).range([0, this.features_on_rows ? f.height : f.width]);
726
+ });
727
+ }
728
+ if (f.issampleattribute) {
729
+ if (!this.dslabel) throw ".dslabel missing: sampleattribute only works for official dataset";
730
+ if (!f.key) throw ".key missing for issampleattribute feature";
731
+ if (!f.label) f.label = f.key;
732
+ if (this.mds && this.mds.sampleAttribute && this.mds.sampleAttribute.attributes) {
733
+ const registry = this.mds.sampleAttribute.attributes[f.key];
734
+ if (registry) {
735
+ f.values = registry.values;
736
+ }
737
+ }
738
+ if (!f.values) {
739
+ f.values = {};
740
+ }
741
+ f.assignmissingcolor = ordinal(category10_default);
742
+ if (!f.width && !this.features_on_rows) f.width = 20;
743
+ else if (!f.height && this.features_on_rows) f.height = 50;
744
+ tr.append("td").text(f.label).style("opacity", 0.5).style("text-align", "right");
745
+ f.legendholder = tr.append("td");
746
+ return Promise.resolve();
747
+ }
748
+ throw "unknown feature type in validating feature";
749
+ });
750
+ }
751
+ get_features(featureset) {
752
+ this.max_cnv = 0;
753
+ this.min_cnv = 0;
754
+ this.max_loh = 0;
755
+ this.min_loh = 0;
756
+ const arg = {
757
+ genome: this.genome.name,
758
+ limitsamplebyeitherannotation: this.limitsamplebyeitherannotation,
759
+ features: (featureset || this.features).map(feature2arg)
760
+ };
761
+ if (this.limitbysamplesetgroup) {
762
+ arg.sampleset = this.limitbysamplesetgroup.samples;
763
+ }
764
+ if (this.iscustom) {
765
+ arg.iscustom = 1;
766
+ arg.querykey2tracks = {};
767
+ for (const f of arg.features) {
768
+ if (f.querykey) {
769
+ arg.querykey2tracks[f.querykey] = this.querykey2tracks[f.querykey];
770
+ } else if (f.querykeylst) {
771
+ for (const k of f.querykeylst) arg.querykey2tracks[k] = this.querykey2tracks[k];
772
+ }
773
+ }
774
+ } else {
775
+ arg.dslabel = this.mds.label;
776
+ }
777
+ return dofetch("/samplematrix", arg).then((data) => {
778
+ if (data.error) {
779
+ for (const f0 of arg.features) {
780
+ const f = this.features.find((f2) => f2.id == f0.id);
781
+ if (f) f.items = [];
782
+ }
783
+ throw data.error;
784
+ }
785
+ for (const dat of data.results) {
786
+ const f = this.features.find((f2) => f2.id == dat.id);
787
+ if (!f) throw "feature not found: " + f.id;
788
+ f.items = dat.items;
789
+ this.prep_featuredata(f);
790
+ }
791
+ this.draw_matrix();
792
+ this.make_legend();
793
+ this.wait_div.style("display", "none");
794
+ });
795
+ }
796
+ update_singlefeature(f) {
797
+ this.get_features([f]).catch((err) => {
798
+ if (typeof err == "string") {
799
+ this.error(err);
800
+ } else {
801
+ this.error(err.message);
802
+ if (err.stack) console.log(err.stack);
803
+ }
804
+ });
805
+ }
806
+ addnewfeature_update(f) {
807
+ this.features.push(f);
808
+ this.validate_feature(f).then(() => {
809
+ return this.get_features([f]);
810
+ }).catch((err) => {
811
+ this.error(typeof err == "string" ? err : err.message);
812
+ if (err.stack) console.log(err.stack);
813
+ });
814
+ }
815
+ prep_featuredata(f) {
816
+ if (f.isgenevalue) {
817
+ f.scale.maxv = 0;
818
+ f.scale.minv = 0;
819
+ for (const i of f.items) {
820
+ f.scale.maxv = Math.max(f.scale.maxv, i.value);
821
+ }
822
+ return;
823
+ }
824
+ if (f.iscnv) {
825
+ const gain = [], loss = [];
826
+ for (const i of f.items) {
827
+ if (i.value > 0) {
828
+ gain.push(i.value);
829
+ } else {
830
+ loss.push(-i.value);
831
+ }
832
+ }
833
+ const gmax = getMax_byiqr(gain, 0);
834
+ const lmax = getMax_byiqr(loss, 0);
835
+ f.maxabslogratio = Math.max(gmax, lmax);
836
+ if (f.maxabslogratio > this.max_cnv) this.max_cnv = f.maxabslogratio;
837
+ return;
838
+ }
839
+ if (f.isloh) {
840
+ const values = f.items.map((i) => i.segmean);
841
+ f.minvalue = 0;
842
+ f.maxvalue = Math.max(...values);
843
+ if (f.maxvalue > this.max_loh) this.max_loh = f.maxvalue;
844
+ return;
845
+ }
846
+ if (f.isvcf) {
847
+ return;
848
+ }
849
+ if (f.isitd) {
850
+ return;
851
+ }
852
+ if (f.issvfusion) {
853
+ return;
854
+ }
855
+ if (f.issvcnv || f.ismutation) {
856
+ const cnvgain = [], cnvloss = [];
857
+ let lohmax = 0;
858
+ for (const i of f.items) {
859
+ if (i.dt == dtcnv) {
860
+ if (i.value > 0) {
861
+ cnvgain.push(i.value);
862
+ } else {
863
+ cnvloss.push(-i.value);
864
+ }
865
+ } else if (i.dt == dtloh) {
866
+ lohmax = Math.max(i.segmean, lohmax);
867
+ }
868
+ }
869
+ if (cnvgain.length + cnvloss.length > 0) {
870
+ const gmax = getMax_byiqr(cnvgain, 0);
871
+ const lmax = getMax_byiqr(cnvloss, 0);
872
+ f.cnv.maxabslogratio = Math.max(gmax, lmax);
873
+ if (f.cnv.maxabslogratio > this.max_cnv) {
874
+ this.max_cnv = f.cnv.maxabslogratio;
875
+ this.min_cnv = -f.cnv.maxabslogratio;
876
+ this.cnv_colorloss = f.cnv.colorloss;
877
+ this.cnv_colorgain = f.cnv.colorgain;
878
+ }
879
+ }
880
+ if (lohmax) {
881
+ f.loh.minvalue = 0;
882
+ f.loh.maxvalue = lohmax;
883
+ if (f.loh.maxvalue > this.max_loh) this.max_loh = f.loh.maxvalue;
884
+ this.loh_color = f.loh.color;
885
+ }
886
+ return;
887
+ }
888
+ if (f.issampleattribute) {
889
+ for (const i of f.items) {
890
+ if (!f.values[i.value]) {
891
+ f.values[i.value] = {
892
+ name: i.value,
893
+ color: f.assignmissingcolor(i.value)
894
+ };
895
+ }
896
+ }
897
+ return;
898
+ }
899
+ throw "unknown feature type in preparing feature data";
900
+ }
901
+ make_legend() {
902
+ for (const f of this.features) {
903
+ const h = f.legendholder;
904
+ h.selectAll("*").remove();
905
+ if (f.isgenevalue) {
906
+ h.append("span").text(f.scale.minv.toFixed(3));
907
+ h.append("div").style("margin", "2px 10px").style("display", "inline-block").style("width", "100px").style("height", "15px").style("background", "linear-gradient( to right, white, " + f.color + ")");
908
+ h.append("span").text(f.scale.maxv.toFixed(3));
909
+ continue;
910
+ }
911
+ if (f.iscnv) {
912
+ h.append("span").html(
913
+ 'Gain <span style="background:' + f.colorgain + ';color:white;padding:1px 5px">' + f.maxabslogratio.toFixed(3) + '</span> &nbsp; Loss <span style="background:' + f.colorloss + ';color:white;padding:1px 5px">-' + f.maxabslogratio.toFixed(3) + "</span>"
914
+ );
915
+ continue;
916
+ }
917
+ if (f.isloh) {
918
+ h.append("span").text(f.minvalue.toFixed(3));
919
+ h.append("div").style("margin", "2px 10px").style("display", "inline-block").style("width", "100px").style("height", "15px").style("background", "linear-gradient( to right, white, " + f.color + ")");
920
+ h.append("span").text(f.maxvalue.toFixed(3));
921
+ continue;
922
+ }
923
+ if (f.isvcf) {
924
+ const classes = /* @__PURE__ */ new Set();
925
+ for (const m of f.items) {
926
+ if (m.class) {
927
+ classes.add(m.class);
928
+ } else {
929
+ }
930
+ }
931
+ for (const c of classes) {
932
+ const cell = h.append("div").style("display", "inline-block").style("margin-right", "10px");
933
+ cell.append("span").style("background", mclass[c].color).style("margin-right", "2px").html("&nbsp;&nbsp;&nbsp;");
934
+ cell.append("span").text(mclass[c].label).style("color", mclass[c].color);
935
+ }
936
+ continue;
937
+ }
938
+ if (f.isitd) {
939
+ continue;
940
+ }
941
+ if (f.issvfusion) {
942
+ continue;
943
+ }
944
+ if (f.issvcnv || f.ismutation) {
945
+ const vcfclass2count = /* @__PURE__ */ new Map();
946
+ let itdcount = 0;
947
+ let svcount = 0;
948
+ let fusioncount = 0;
949
+ for (const i of f.items) {
950
+ if (i.dt == dtsnvindel) {
951
+ if (i.class && i.sampledata) {
952
+ if (!vcfclass2count.has(i.class)) {
953
+ vcfclass2count.set(i.class, 0);
954
+ }
955
+ vcfclass2count.set(i.class, vcfclass2count.get(i.class) + i.sampledata.length);
956
+ } else {
957
+ }
958
+ } else if (i.dt == dtitd) {
959
+ itdcount++;
960
+ } else if (i.dt == dtsv) {
961
+ svcount++;
962
+ } else if (i.dt == dtfusionrna) {
963
+ fusioncount++;
964
+ }
965
+ }
966
+ if (vcfclass2count.size + itdcount + svcount + fusioncount > 0) {
967
+ const row = h.append("div").style("margin-bottom", "5px").style("white-space", "nowrap");
968
+ for (const [classname, count] of vcfclass2count) {
969
+ const c = mclass[classname];
970
+ const cell = row.append("div").style("display", "inline-block").style("margin-right", "20px");
971
+ cell.append("span").attr("class", "sja_mcdot").style("background", c.color).text(count);
972
+ cell.append("span").text(c.label).style("color", c.color);
973
+ }
974
+ if (itdcount) {
975
+ const cell = row.append("div").style("display", "inline-block").style("margin-right", "20px");
976
+ cell.append("span").attr("class", "sja_mcdot").style("background", f.itd.color).text(itdcount);
977
+ cell.append("span").text("ITD");
978
+ }
979
+ if (svcount) {
980
+ const cell = row.append("div").style("display", "inline-block").style("margin-right", "20px");
981
+ cell.append("span").attr("class", "sja_mcdot").style("background", f.sv.color).text(svcount);
982
+ cell.append("span").text("SV");
983
+ }
984
+ if (fusioncount) {
985
+ const cell = row.append("div").style("display", "inline-block").style("margin-right", "20px");
986
+ cell.append("span").attr("class", "sja_mcdot").style("background", f.fusion.color).text(fusioncount);
987
+ cell.append("span").text("Fusion");
988
+ }
989
+ }
990
+ continue;
991
+ }
992
+ if (f.issampleattribute) {
993
+ const value2count = /* @__PURE__ */ new Map();
994
+ for (const sample of this.samples) {
995
+ const anno = f.items.find((i) => i.sample == sample.name);
996
+ if (anno) {
997
+ value2count.set(anno.value, (value2count.get(anno.value) || 0) + 1);
998
+ }
999
+ }
1000
+ for (const [value, count] of value2count) {
1001
+ const cell = h.append("div").style("display", "inline-block").style("margin-right", "20px");
1002
+ cell.append("span").attr("class", "sja_mcdot").style("background", f.values[value].color).text(count);
1003
+ cell.append("span").text(f.values[value].name);
1004
+ }
1005
+ continue;
1006
+ }
1007
+ throw "unknown feature type in making legend";
1008
+ }
1009
+ this.makeGlobalCnvLohLegend();
1010
+ }
1011
+ makeGlobalCnvLohLegend() {
1012
+ const legend_data = [
1013
+ { type: "cnv", legend_label: "CNV log2(ratio): " },
1014
+ { type: "loh", legend_label: "LOH seg.mean: " }
1015
+ ];
1016
+ const min_cnv_orig = parseFloat(this.min_cnv.toFixed(3));
1017
+ const max_cnv_orig = parseFloat(this.max_cnv.toFixed(3));
1018
+ const min_loh_orig = parseFloat(this.min_loh.toFixed(3));
1019
+ const max_loh_orig = parseFloat(this.max_loh.toFixed(3));
1020
+ let changed_flag = false;
1021
+ legend_data.forEach((data) => {
1022
+ let min_cutoff = data.type == "cnv" ? this.min_cnv : this.min_loh;
1023
+ let max_cutoff = data.type == "cnv" ? this.max_cnv : this.max_loh;
1024
+ const td = data.type == "cnv" ? this.legendtable.cnv_td : this.legendtable.loh_td;
1025
+ const row = td.append("div").style("margin-bottom", "5px");
1026
+ row.append("span").text(data.legend_label);
1027
+ const lower_range_txt = row.append("span").text(min_cutoff.toFixed(3));
1028
+ const lower_range_input = row.append("input").attr("type", "text").attr("size", 8).style("display", "none").property("value", min_cutoff.toFixed(3));
1029
+ if (data.type == "cnv") {
1030
+ row.append("div").style("margin", "4px 0 1px 10px").style("display", "inline-block").style("width", "50px").style("height", "15px").style("background", "linear-gradient( to right," + this.cnv_colorloss + ",white)");
1031
+ }
1032
+ row.append("div").style("margin", "4px 10px 1px 10px").style("margin-left", data.type == "cnv" ? "0" : "10px").style("display", "inline-block").style("width", data.type == "cnv" ? "50px" : "100px").style("height", "15px").style(
1033
+ "background",
1034
+ "linear-gradient( to right, white, " + (data.type == "cnv" ? this.cnv_colorgain : this.loh_color) + ")"
1035
+ );
1036
+ const upper_range_txt = row.append("span").text(max_cutoff.toFixed(3));
1037
+ const upper_range_input = row.append("input").attr("type", "text").attr("size", 8).style("display", "none").property("value", max_cutoff.toFixed(3));
1038
+ const edit_btn = row.append("button").style("margin", "2px 5px").style("padding", "3px 10px").text("Edit").on("click", () => {
1039
+ lower_range_txt.style("display", "none");
1040
+ upper_range_txt.style("display", "none");
1041
+ lower_range_input.style("display", "inline-block");
1042
+ upper_range_input.style("display", "inline-block");
1043
+ edit_btn.style("display", "none");
1044
+ submit_btn.style("display", "inline-block");
1045
+ });
1046
+ const submit_btn = row.append("button").style("display", "none").style("margin", "2px 5px").style("padding", "3px 10px").text("Submit").on("click", () => {
1047
+ if (data.type == "cnv") {
1048
+ this.min_cnv = min_cutoff = lower_range_input.property("value");
1049
+ this.max_cnv = max_cutoff = upper_range_input.property("value");
1050
+ if (this.min_cnv != min_cnv_orig || this.max_cnv != max_cnv_orig) changed_flag = true;
1051
+ } else {
1052
+ this.min_loh = min_cutoff = parseFloat(lower_range_input.property("value"));
1053
+ this.max_loh = max_cutoff = parseFloat(upper_range_input.property("value"));
1054
+ if (this.min_loh != min_loh_orig || this.max_loh != max_loh_orig) changed_flag = true;
1055
+ }
1056
+ lower_range_txt.style("display", "inline-block").text(parseFloat(min_cutoff).toFixed(3));
1057
+ upper_range_txt.style("display", "inline-block").text(parseFloat(max_cutoff).toFixed(3));
1058
+ lower_range_input.style("display", "none");
1059
+ upper_range_input.style("display", "none");
1060
+ edit_btn.style("display", "inline-block");
1061
+ submit_btn.style("display", "none");
1062
+ reset_btn.style("display", changed_flag ? "inline-block" : "none");
1063
+ this.draw_matrix();
1064
+ });
1065
+ const reset_btn = row.append("button").style("display", "none").style("margin", "2px 5px").style("padding", "3px 10px").text("Reset").on("click", () => {
1066
+ if (data.type == "cnv") {
1067
+ this.min_cnv = min_cutoff = min_cnv_orig;
1068
+ this.max_cnv = max_cutoff = max_cnv_orig;
1069
+ } else {
1070
+ this.min_loh = min_cutoff = min_loh_orig;
1071
+ this.max_loh = max_cutoff = max_loh_orig;
1072
+ }
1073
+ lower_range_txt.text(parseFloat(min_cutoff).toFixed(3));
1074
+ upper_range_txt.text(parseFloat(max_cutoff).toFixed(3));
1075
+ lower_range_input.property("value", parseFloat(min_cutoff).toFixed(3));
1076
+ upper_range_input.property("value", parseFloat(max_cutoff).toFixed(3));
1077
+ reset_btn.style("display", "none");
1078
+ changed_flag = false;
1079
+ this.draw_matrix();
1080
+ });
1081
+ reset_btn.style("display", "none");
1082
+ });
1083
+ }
1084
+ gatherSamplesFromFeatureData() {
1085
+ const name2sample = /* @__PURE__ */ new Map();
1086
+ for (const feature of this.features) {
1087
+ if (feature.donotaddsample) {
1088
+ continue;
1089
+ }
1090
+ if (feature.isgenevalue || feature.iscnv || feature.isloh || feature.isitd || feature.issvfusion || feature.issvcnv) {
1091
+ for (const item of feature.items) {
1092
+ if (!name2sample.has(item.sample)) {
1093
+ name2sample.set(item.sample, {});
1094
+ }
1095
+ }
1096
+ } else if (feature.isvcf) {
1097
+ for (const m of feature.items) {
1098
+ if (m.dt == dtsnvindel) {
1099
+ if (!m.sampledata) continue;
1100
+ for (const s of m.sampledata) {
1101
+ if (!name2sample.has(s.sampleobj.name)) {
1102
+ name2sample.set(s.sampleobj.name, {});
1103
+ }
1104
+ }
1105
+ } else {
1106
+ console.error("unsupported dt from isvcf: " + m.dt);
1107
+ }
1108
+ }
1109
+ } else if (feature.ismutation) {
1110
+ for (const m of feature.items) {
1111
+ if (m.dt == dtsnvindel) {
1112
+ if (!m.sampledata) continue;
1113
+ for (const s of m.sampledata) {
1114
+ if (!name2sample.has(s.sampleobj.name)) {
1115
+ name2sample.set(s.sampleobj.name, {});
1116
+ }
1117
+ }
1118
+ } else {
1119
+ if (!m.sample) continue;
1120
+ if (!name2sample.has(m.sample)) {
1121
+ name2sample.set(m.sample, {});
1122
+ }
1123
+ }
1124
+ }
1125
+ } else if (feature.issampleattribute) {
1126
+ for (const i of feature.items) {
1127
+ if (!name2sample.has(i.sample)) {
1128
+ name2sample.set(i.sample, {});
1129
+ }
1130
+ }
1131
+ } else {
1132
+ console.error("unknown feature type from this.data");
1133
+ }
1134
+ }
1135
+ const uniformheight = Math.min(18, Math.max(1, Math.ceil(800 / name2sample.size)));
1136
+ this.samples = [];
1137
+ for (const [n, sample] of name2sample) {
1138
+ if (!this.features_on_rows) sample.height = uniformheight;
1139
+ else sample.width = uniformheight;
1140
+ sample.name = n;
1141
+ this.samples.push(sample);
1142
+ }
1143
+ }
1144
+ /*********** __draw *****/
1145
+ draw_matrix() {
1146
+ this.svg.selectAll("*").remove();
1147
+ const svgg = this.svg.append("g");
1148
+ this.gatherSamplesFromFeatureData();
1149
+ this.sortsamplesbyfeatures();
1150
+ const rows_lst = this.features_on_rows ? this.features : this.samples;
1151
+ const cols_lst = this.features_on_rows ? this.samples : this.features;
1152
+ let y = 0, samplenamemaxwidth = 0;
1153
+ for (const r of rows_lst) {
1154
+ r.g = svgg.append("g").attr("transform", "translate(0," + y + ")");
1155
+ y += r.height + this.rowspace;
1156
+ if (r.height >= minheight2showname) {
1157
+ r.g.append("text").attr("font-family", font).attr("font-size", Math.min(16, r.height)).attr("text-anchor", "end").attr("dominant-baseline", "central").attr("x", -this.rowlabspace - this.rowlabticksize).attr("y", r.height / 2).text(this.features_on_rows ? r.label + (r.count ? " (" + r.count + ")" : "") : r.name).each(function() {
1158
+ samplenamemaxwidth = Math.max(samplenamemaxwidth, this.getBBox().width);
1159
+ }).attr("class", "sja_clbtext").on("mouseover", () => {
1160
+ this.features_on_rows ? this.showTip_feature(r) : this.showTip_sample(r);
1161
+ }).on("mouseout", () => {
1162
+ this.tip.hide();
1163
+ }).on("click", () => {
1164
+ if (this.features_on_rows) this.showMenu_feature(r);
1165
+ });
1166
+ r.g.append("line").attr("x1", -this.rowlabticksize).attr("y1", r.height / 2).attr("y2", r.height / 2).attr("stroke", "black").attr("shape-rendering", "crispEdges");
1167
+ }
1168
+ }
1169
+ let x = 0, featurenamemaxwidth = 0;
1170
+ for (const c of cols_lst) {
1171
+ const g = svgg.append("g").attr("transform", "translate(" + (x + c.width / 2) + ",-" + (this.collabspace + this.collabticksize) + ")");
1172
+ x += c.width + this.colspace;
1173
+ const label = g.append("text").attr("font-family", font).attr("font-size", Math.min(16, c.width - 2)).attr("dominant-baseline", "central").attr("transform", "rotate(-90)").text(this.features_on_rows ? c.name : c.label + (c.count ? " (" + c.count + ")" : "")).each(function() {
1174
+ featurenamemaxwidth = Math.max(featurenamemaxwidth, this.getBBox().width);
1175
+ }).on("mouseover", () => {
1176
+ this.features_on_rows ? this.showTip_sample(c) : this.showTip_feature(c);
1177
+ }).on("mouseout", () => {
1178
+ this.tip.hide();
1179
+ }).on("click", () => {
1180
+ if (!this.features_on_rows) this.showMenu_feature(c);
1181
+ });
1182
+ if (c.isgenevalue) {
1183
+ label.attr("fill", c.color);
1184
+ }
1185
+ g.append("line").attr("y1", this.collabspace).attr("y2", this.collabspace + this.collabticksize).attr("stroke", "black").attr("shape-rendering", "crispEdges");
1186
+ }
1187
+ for (const r of rows_lst) {
1188
+ let x2 = 0;
1189
+ for (const c of cols_lst) {
1190
+ const sample = this.features_on_rows ? c : r;
1191
+ const feature = this.features_on_rows ? r : c;
1192
+ const cell = r.g.append("g").attr("transform", "translate(" + x2 + ",0)");
1193
+ x2 += c.width + this.colspace;
1194
+ if (feature.isgenevalue) {
1195
+ this.drawCell_isgenevalue(sample, feature, cell);
1196
+ } else if (feature.iscnv) {
1197
+ this.drawCell_iscnv(sample, feature, cell);
1198
+ } else if (feature.isloh) {
1199
+ this.drawCell_isloh(sample, feature, cell);
1200
+ } else if (feature.isvcf) {
1201
+ this.drawCell_isvcf(sample, feature, cell);
1202
+ } else if (feature.isitd) {
1203
+ this.drawCell_isitd(sample, feature, cell);
1204
+ } else if (feature.issvfusion) {
1205
+ this.drawCell_issvfusion(sample, feature, cell);
1206
+ } else if (feature.issvcnv || feature.ismutation) {
1207
+ this.drawCell_ismutation(sample, feature, cell);
1208
+ } else if (feature.issampleattribute) {
1209
+ this.drawCell_issampleattribute(sample, feature, cell);
1210
+ } else {
1211
+ console.error("unknown feature type when drawing cell");
1212
+ }
1213
+ }
1214
+ }
1215
+ svgg.attr(
1216
+ "transform",
1217
+ "translate(" + (samplenamemaxwidth + this.rowlabspace + this.rowlabticksize) + "," + (featurenamemaxwidth + this.collabspace + this.collabticksize) + ")"
1218
+ );
1219
+ this.svg.attr(
1220
+ "width",
1221
+ samplenamemaxwidth + this.rowlabspace + this.rowlabticksize + cols_lst.reduce((i, j) => i + j.width, 0) + cols_lst.length * this.colspace
1222
+ ).attr(
1223
+ "height",
1224
+ featurenamemaxwidth + this.collabspace + this.collabticksize + rows_lst.reduce((i, j) => i + j.height, 0) + rows_lst.length * this.rowspace
1225
+ );
1226
+ }
1227
+ drawCell_isgenevalue(sample, feature, g) {
1228
+ const height = this.features_on_rows ? feature.height : sample.height;
1229
+ const width = this.features_on_rows ? sample.width : feature.width;
1230
+ const item = feature.items.find((i) => i.sample == sample.name);
1231
+ if (!item) {
1232
+ this.drawEmptycell(sample, feature, g);
1233
+ return;
1234
+ }
1235
+ const rect = g.append("rect").attr("width", width).attr("height", height).attr("fill", feature.color).attr("stroke", "#ccc").attr("stroke-opacity", 0).attr("shape-rendering", "crispEdges").on("mouseover", (event2) => {
1236
+ event2.target.setAttribute("stroke-opacity", 1);
1237
+ this.showTip_cell(sample, feature);
1238
+ }).on("mouseout", (event2) => {
1239
+ event2.target.setAttribute("stroke-opacity", 0);
1240
+ this.tip.hide();
1241
+ }).on("click", () => {
1242
+ this.click_cell(sample, feature);
1243
+ });
1244
+ if (item.value < feature.scale.maxv) {
1245
+ rect.attr("fill-opacity", item.value / feature.scale.maxv);
1246
+ }
1247
+ }
1248
+ drawCell_iscnv(sample, feature, g) {
1249
+ const height = this.features_on_rows ? feature.height : sample.height;
1250
+ const width = this.features_on_rows ? sample.width : feature.width;
1251
+ const items = feature.items.filter((i) => i.sample == sample.name);
1252
+ if (items.length == 0) {
1253
+ this.drawEmptycell(sample, feature, g);
1254
+ return;
1255
+ }
1256
+ for (const item of items) {
1257
+ const x1 = feature.coordscale(Math.max(feature.start, item.start));
1258
+ const x2 = feature.coordscale(Math.min(feature.stop, item.stop));
1259
+ const maxabslogratio = this.max_cnv;
1260
+ g.append("rect").attr("x", x1).attr("width", Math.max(1, x2 - x1)).attr("height", sample.height).attr("fill", item.value > 0 ? feature.colorgain : feature.colorloss).attr("fill-opacity", Math.abs(item.value / maxabslogratio)).attr("shape-rendering", "crispEdges");
1261
+ }
1262
+ g.append("rect").attr("fill", "white").attr("fill-opacity", 0).attr("width", width).attr("height", height).attr("stroke", "#ccc").attr("stroke-opacity", 0).attr("shape-rendering", "crispEdges").on("mouseover", (event2) => {
1263
+ event2.target.setAttribute("stroke-opacity", 1);
1264
+ this.showTip_cell(sample, feature);
1265
+ }).on("mouseout", (event2) => {
1266
+ event2.target.setAttribute("stroke-opacity", 0);
1267
+ this.tip.hide();
1268
+ }).on("click", () => {
1269
+ this.click_cell(sample, feature);
1270
+ });
1271
+ }
1272
+ drawCell_isloh(sample, feature, g) {
1273
+ const height = this.features_on_rows ? feature.height : sample.height;
1274
+ const width = this.features_on_rows ? sample.width : feature.width;
1275
+ const items = feature.items.filter((i) => i.sample == sample.name);
1276
+ if (items.length == 0) {
1277
+ this.drawEmptycell(sample, feature, g);
1278
+ return;
1279
+ }
1280
+ for (const item of items) {
1281
+ const x1 = feature.coordscale(Math.max(feature.start, item.start));
1282
+ const x2 = feature.coordscale(Math.min(feature.stop, item.stop));
1283
+ const loh_range = this.max_loh - this.min_loh;
1284
+ g.append("rect").attr("x", this.features_on_rows ? 0 : x1).attr("y", this.features_on_rows ? x1 : 0).attr("width", this.features_on_rows ? width : Math.max(1, x2 - x1)).attr("height", this.features_on_rows ? Math.max(1, x2 - x1) : height).attr("fill", feature.color).attr("fill-opacity", (item.segmean - this.min_loh) / loh_range).attr("shape-rendering", "crispEdges");
1285
+ }
1286
+ g.append("rect").attr("fill", "white").attr("fill-opacity", 0).attr("width", width).attr("height", height).attr("stroke", "#ccc").attr("stroke-opacity", 0).attr("shape-rendering", "crispEdges").on("mouseover", (event2) => {
1287
+ event2.target.setAttribute("stroke-opacity", 1);
1288
+ this.showTip_cell(sample, feature);
1289
+ }).on("mouseout", (event2) => {
1290
+ event2.target.setAttribute("stroke-opacity", 0);
1291
+ this.tip.hide();
1292
+ }).on("click", () => {
1293
+ this.click_cell(sample, feature);
1294
+ });
1295
+ }
1296
+ drawCell_isvcf(sample, feature, g) {
1297
+ const height = this.features_on_rows ? feature.height : sample.height;
1298
+ const width = this.features_on_rows ? sample.width : feature.width;
1299
+ const mlst = getitemforsample_vcf(feature, sample);
1300
+ if (mlst.length == 0) {
1301
+ this.drawEmptycell(sample, feature, g);
1302
+ return;
1303
+ }
1304
+ const class2count = /* @__PURE__ */ new Map();
1305
+ for (const m of mlst) {
1306
+ if (!class2count.has(m.class)) {
1307
+ class2count.set(m.class, 0);
1308
+ }
1309
+ class2count.set(m.class, class2count.get(m.class) + 1);
1310
+ }
1311
+ let start = 0;
1312
+ for (const [cname, count] of class2count) {
1313
+ const span = count / mlst.length * this.features_on_rows ? height : width;
1314
+ g.append("rect").attr("x", this.features_on_rows ? 0 : start).attr("y", this.features_on_rows ? start : 0).attr("width", this.features_on_rows ? width : span).attr("height", this.features_on_rows ? span : height).attr("fill", mclass[cname].color).attr("shape-rendering", "crispEdges");
1315
+ start += span;
1316
+ }
1317
+ g.append("rect").attr("fill", "white").attr("fill-opacity", 0).attr("width", width).attr("height", height).attr("stroke", "#ccc").attr("stroke-opacity", 0).attr("shape-rendering", "crispEdges").on("mouseover", (event2) => {
1318
+ event2.target.setAttribute("stroke-opacity", 1);
1319
+ this.showTip_cell(sample, feature);
1320
+ }).on("mouseout", (event2) => {
1321
+ event2.target.setAttribute("stroke-opacity", 0);
1322
+ this.tip.hide();
1323
+ }).on("click", () => {
1324
+ this.click_cell(sample, feature);
1325
+ });
1326
+ }
1327
+ drawCell_isitd(sample, feature, g) {
1328
+ const height = this.features_on_rows ? feature.height : sample.height;
1329
+ const width = this.features_on_rows ? sample.width : feature.width;
1330
+ const item = feature.items.find((i) => i.sample == sample.name);
1331
+ if (!item) {
1332
+ this.drawEmptycell(sample, feature, g);
1333
+ return;
1334
+ }
1335
+ g.append("rect").attr("width", width).attr("height", height).attr("fill", feature.color).attr("stroke", "#ccc").attr("stroke-opacity", 0).attr("shape-rendering", "crispEdges").on("mouseover", (event2) => {
1336
+ event2.target.setAttribute("stroke-opacity", 1);
1337
+ this.showTip_cell(sample, feature);
1338
+ }).on("mouseout", (event2) => {
1339
+ event2.target.setAttribute("stroke-opacity", 0);
1340
+ this.tip.hide();
1341
+ }).on("click", () => {
1342
+ this.click_cell(sample, feature);
1343
+ });
1344
+ }
1345
+ drawCell_issampleattribute(sample, feature, g) {
1346
+ const height = this.features_on_rows ? feature.height : sample.height;
1347
+ const width = this.features_on_rows ? sample.width : feature.width;
1348
+ const item = feature.items.find((i) => i.sample == sample.name);
1349
+ if (!item) {
1350
+ this.drawEmptycell(sample, feature, g);
1351
+ return;
1352
+ }
1353
+ g.append("rect").attr("width", width).attr("height", height).attr("fill", feature.values[item.value].color).attr("stroke", "#ccc").attr("stroke-opacity", 0).attr("shape-rendering", "crispEdges").on("mouseover", (event2) => {
1354
+ event2.target.setAttribute("stroke-opacity", 1);
1355
+ this.showTip_cell(sample, feature);
1356
+ }).on("mouseout", (event2) => {
1357
+ event2.target.setAttribute("stroke-opacity", 0);
1358
+ this.tip.hide();
1359
+ }).on("click", () => {
1360
+ this.click_cell(sample, feature);
1361
+ });
1362
+ }
1363
+ drawCell_issvfusion(sample, feature, g) {
1364
+ const height = this.features_on_rows ? feature.height : sample.height;
1365
+ const width = this.features_on_rows ? sample.width : feature.width;
1366
+ const item = feature.items.find((i) => i.sample == sample.name);
1367
+ if (!item) {
1368
+ this.drawEmptycell(sample, feature, g);
1369
+ return;
1370
+ }
1371
+ g.append("rect").attr("width", width).attr("height", height).attr("fill", feature.color).attr("stroke", "#ccc").attr("stroke-opacity", 0).attr("shape-rendering", "crispEdges").on("mouseover", (event2) => {
1372
+ event2.target.setAttribute("stroke-opacity", 1);
1373
+ this.showTip_cell(sample, feature);
1374
+ }).on("mouseout", (event2) => {
1375
+ event2.target.setAttribute("stroke-opacity", 0);
1376
+ this.tip.hide();
1377
+ }).on("click", () => {
1378
+ this.click_cell(sample, feature);
1379
+ });
1380
+ }
1381
+ drawCell_ismutation(sample, feature, g) {
1382
+ const [cnv, loh, itd, sv, fusion, snvindel] = getitemforsample_compound(feature, sample);
1383
+ const height = this.features_on_rows ? feature.height : sample.height;
1384
+ const width = this.features_on_rows ? sample.width : feature.width;
1385
+ if (cnv.length + loh.length + itd.length + sv.length + fusion.length + snvindel.length == 0) {
1386
+ this.drawEmptycell(sample, feature, g);
1387
+ return;
1388
+ }
1389
+ let is_symbolic = false;
1390
+ if (this.ismutation_allsymbolic) {
1391
+ is_symbolic = true;
1392
+ } else if (this.ismutation_allnotsymbolic) {
1393
+ } else {
1394
+ if (height <= 4) {
1395
+ is_symbolic = true;
1396
+ }
1397
+ }
1398
+ if (is_symbolic) {
1399
+ this.drawCell_ismutation_symbolic(sample, feature, g, cnv, loh, itd, sv, fusion, snvindel);
1400
+ } else {
1401
+ if (loh.length) {
1402
+ for (const item of loh) {
1403
+ const x1 = feature.coordscale(Math.max(feature.start, item.start));
1404
+ const x2 = feature.coordscale(Math.min(feature.stop, item.stop));
1405
+ const loh_range = this.max_loh - this.min_loh;
1406
+ g.append("rect").attr("x", this.features_on_rows ? 0 : x1).attr("y", this.features_on_rows ? x1 : 0).attr("width", this.features_on_rows ? width : Math.max(1, x2 - x1)).attr("height", this.features_on_rows ? Math.max(1, x2 - x1) : height).attr("fill", feature.loh.color).attr("fill-opacity", (item.segmean - this.min_loh) / loh_range).attr("shape-rendering", "crispEdges");
1407
+ }
1408
+ }
1409
+ if (cnv.length) {
1410
+ for (const item of cnv) {
1411
+ const x1 = feature.coordscale(Math.max(feature.start, item.start));
1412
+ const x2 = feature.coordscale(Math.min(feature.stop, item.stop));
1413
+ const maxabslogratio = item.value > 0 ? this.max_cnv : this.min_cnv;
1414
+ g.append("rect").attr("x", this.features_on_rows ? 0 : x1).attr("y", this.features_on_rows ? x1 : 0).attr("width", this.features_on_rows ? width : Math.max(1, x2 - x1)).attr("height", this.features_on_rows ? Math.max(1, x2 - x1) : height).attr("fill", item.value > 0 ? feature.cnv.colorgain : feature.cnv.colorloss).attr("fill-opacity", Math.abs(item.value / maxabslogratio)).attr("shape-rendering", "crispEdges");
1415
+ }
1416
+ }
1417
+ if (itd.length) {
1418
+ for (const item of itd) {
1419
+ const x1 = feature.coordscale(Math.max(feature.start, item.start));
1420
+ const x2 = feature.coordscale(Math.min(feature.stop, item.stop));
1421
+ g.append("rect").attr("x", this.features_on_rows ? 0 : x1).attr("y", this.features_on_rows ? x1 : 0).attr("width", this.features_on_rows ? width : Math.max(1, x2 - x1)).attr("height", this.features_on_rows ? Math.max(1, x2 - x1) : height).attr("fill", feature.itd.color).attr("shape-rendering", "crispEdges");
1422
+ }
1423
+ }
1424
+ if (sv.length) {
1425
+ g.append("circle").attr("cx", width / 2).attr("cy", height / 2).attr("r", Math.min(width, height) / 2).attr("stroke", feature.sv.color).attr("fill", "none");
1426
+ }
1427
+ if (fusion.length) {
1428
+ g.append("circle").attr("cx", width / 2).attr("cy", height / 2).attr("r", Math.min(width, height) / 2).attr("stroke", feature.fusion.color).attr("fill", "none");
1429
+ }
1430
+ if (snvindel.length) {
1431
+ const m = snvindel[0];
1432
+ const g2 = g.append("g").attr("transform", "translate(" + width / 2 + "," + height / 2 + ")");
1433
+ const color = mclass[m.m.class].color;
1434
+ const w = Math.min(width, height) / 2;
1435
+ g2.append("line").attr("x1", -w).attr("x2", w).attr("y1", -w).attr("y2", w).attr("stroke", "white").attr("stroke-width", 3);
1436
+ g2.append("line").attr("x1", -w).attr("x2", w).attr("y1", w).attr("y2", -w).attr("stroke", "white").attr("stroke-width", 3);
1437
+ g2.append("line").attr("x1", -w).attr("x2", w).attr("y1", -w).attr("y2", w).attr("stroke", color);
1438
+ g2.append("line").attr("x1", -w).attr("x2", w).attr("y1", w).attr("y2", -w).attr("stroke", color);
1439
+ }
1440
+ }
1441
+ g.append("rect").attr("width", width).attr("height", height).attr("fill", "white").attr("fill-opacity", 0).attr("stroke", "#ccc").attr("stroke-opacity", 0).attr("shape-rendering", "crispEdges").on("mouseover", (event2) => {
1442
+ event2.target.setAttribute("stroke-opacity", 1);
1443
+ this.showTip_cell(sample, feature);
1444
+ }).on("mouseout", (event2) => {
1445
+ event2.target.setAttribute("stroke-opacity", 0);
1446
+ this.tip.hide();
1447
+ }).on("click", () => {
1448
+ this.click_cell(sample, feature);
1449
+ });
1450
+ }
1451
+ drawCell_ismutation_symbolic(sample, feature, g, cnv, loh, itd, sv, fusion, snvindel) {
1452
+ const height = this.features_on_rows ? feature.height : sample.height;
1453
+ const width = this.features_on_rows ? sample.width : feature.width;
1454
+ const loh_range = this.max_loh - this.min_loh;
1455
+ const lst = [];
1456
+ if (cnv.length) {
1457
+ for (const i of cnv) {
1458
+ const maxabslogratio = i.value > 0 ? this.max_cnv : this.min_cnv;
1459
+ let k;
1460
+ if (i.value > 0) {
1461
+ k = { color: feature.cnv.colorgain };
1462
+ } else {
1463
+ k = { color: feature.cnv.colorloss };
1464
+ }
1465
+ k.opacity = Math.abs(i.value / maxabslogratio);
1466
+ lst.push(k);
1467
+ }
1468
+ }
1469
+ if (loh.length) {
1470
+ for (const i of loh) {
1471
+ lst.push({
1472
+ color: feature.loh.color,
1473
+ opacity: (i.segmean - this.min_loh) / loh_range
1474
+ });
1475
+ }
1476
+ }
1477
+ if (itd.length) {
1478
+ for (const i of itd) {
1479
+ lst.push({ color: feature.itd.color });
1480
+ }
1481
+ }
1482
+ if (sv.length) {
1483
+ for (const i of sv) {
1484
+ lst.push({ color: feature.sv.color });
1485
+ }
1486
+ }
1487
+ if (fusion.length) {
1488
+ for (const i of fusion) {
1489
+ lst.push({ color: feature.fusion.color });
1490
+ }
1491
+ }
1492
+ if (snvindel.length) {
1493
+ for (const i of snvindel) {
1494
+ lst.push({ color: mclass[i.m.class].color });
1495
+ }
1496
+ }
1497
+ const f_len = this.features_on_rows ? height / lst.length : width / lst.length;
1498
+ let f_start = 0;
1499
+ for (const i of lst) {
1500
+ const r = g.append("rect").attr("x", this.features_on_rows ? 0 : f_start).attr("y", this.features_on_rows ? f_start : 0).attr("width", this.features_on_rows ? width : f_len).attr("height", this.features_on_rows ? f_len : height).attr("fill", i.color).attr("shape-rendering", "crispEdges");
1501
+ if (i.opacity) r.attr("opacity", i.opacity);
1502
+ f_start += f_len;
1503
+ }
1504
+ }
1505
+ // __newattr draw cell for new feature
1506
+ /*********** __draw ends *****/
1507
+ async click_cell(sample, feature) {
1508
+ try {
1509
+ let svcnvtk;
1510
+ if (this.iscustom) {
1511
+ svcnvtk = {
1512
+ iscustom: true,
1513
+ type: tkt.mdssvcnv,
1514
+ singlesample: {
1515
+ name: sample.name
1516
+ }
1517
+ };
1518
+ for (const k in this.querykey2tracks) {
1519
+ const t = this.querykey2tracks[k];
1520
+ if (t.type == tkt.mdssvcnv) {
1521
+ svcnvtk.name = t.name || "Custom tk";
1522
+ svcnvtk.file = t.file;
1523
+ svcnvtk.url = t.url;
1524
+ svcnvtk.indexURL = t.indexURL;
1525
+ } else if (t.type == tkt.mdsvcf) {
1526
+ svcnvtk.checkvcf = {
1527
+ file: t.file,
1528
+ url: t.url,
1529
+ indexURL: t.indexURL
1530
+ };
1531
+ } else if (t.type == tkt.mdsexpression) {
1532
+ svcnvtk.checkexpressionrank = {
1533
+ file: t.file,
1534
+ url: t.url,
1535
+ indexURL: t.indexURL
1536
+ };
1537
+ }
1538
+ }
1539
+ } else {
1540
+ if (!this.mds) throw "not custom but .mds{} missing";
1541
+ for (const querykey in this.mds.queries) {
1542
+ const tk = this.mds.queries[querykey];
1543
+ if (tk.type == tkt.mdssvcnv) {
1544
+ svcnvtk = {
1545
+ mds: this.mds,
1546
+ querykey,
1547
+ singlesample: {
1548
+ name: sample.name
1549
+ }
1550
+ };
1551
+ for (const k in tk) svcnvtk[k] = tk[k];
1552
+ break;
1553
+ }
1554
+ }
1555
+ }
1556
+ if (!svcnvtk) throw "cannot find a svcnv tk";
1557
+ svcnvtk.bplengthUpperLimit = 0;
1558
+ const pane = newpane({ x: 100, y: 100 });
1559
+ const blockarg = {
1560
+ jwt: this.jwt,
1561
+ hostURL: this.hostURL,
1562
+ nobox: 1,
1563
+ genome: this.genome,
1564
+ holder: pane.body,
1565
+ chr: feature.chr,
1566
+ start: feature.start,
1567
+ stop: feature.stop,
1568
+ tklst: []
1569
+ };
1570
+ first_genetrack_tolist(this.genome, blockarg.tklst);
1571
+ blockarg.tklst.push(svcnvtk);
1572
+ if (!this.iscustom) {
1573
+ if (!this.dslabel) throw "not custom but dslabel missing";
1574
+ const par = {
1575
+ genome: this.genome.name,
1576
+ dslabel: this.dslabel,
1577
+ querykey: svcnvtk.querykey,
1578
+ gettrack4singlesample: sample.name
1579
+ };
1580
+ const data = await dofetch("/mdssvcnv", par);
1581
+ if (data.error) throw "Error checking for assay track: " + data.error;
1582
+ if (data.tracks) {
1583
+ for (const t of data.tracks) blockarg.tklst.push(t);
1584
+ }
1585
+ }
1586
+ const _ = await import("./block-NBO4UBI7.js");
1587
+ new _.Block(blockarg);
1588
+ } catch (e) {
1589
+ window.alert(e.message || e);
1590
+ if (e.stack) console.log(e.stack);
1591
+ }
1592
+ }
1593
+ /********** __menu and tooltip **********/
1594
+ showTip_feature(f) {
1595
+ this.tip.clear();
1596
+ this.tipContent_feature(f, this.tip.d);
1597
+ this.tip.showunder(event.target);
1598
+ }
1599
+ showMenu_feature(f) {
1600
+ this.menu.showunder(event.target).clear();
1601
+ this.tipContent_feature(f, this.menu.d);
1602
+ this.menu.d.append("div").attr("class", "sja_menuoption").text("Remove this feature").on("click", () => {
1603
+ this.menu.hide();
1604
+ f.legend_tr.remove();
1605
+ this.features.splice(
1606
+ this.features.findIndex((i) => i.id == f.id),
1607
+ 1
1608
+ );
1609
+ this.draw_matrix();
1610
+ });
1611
+ if (f.isgenevalue) return showMenu_isgenevalue(this, f);
1612
+ if (f.iscnv) return showMenu_iscnv(this, f, f);
1613
+ if (f.isloh) return showMenu_isloh(this, f, f);
1614
+ if (f.ismutation) return showMenu_ismutation(this, f);
1615
+ if (f.isitd) {
1616
+ return;
1617
+ }
1618
+ if (f.issvfusion) {
1619
+ return;
1620
+ }
1621
+ if (f.issvcnv) {
1622
+ return;
1623
+ }
1624
+ if (f.issampleattribute) {
1625
+ return;
1626
+ }
1627
+ }
1628
+ tipContent_feature(f, holder) {
1629
+ holder.append("div").text(f.label).style("opacity", 0.5).style("font-size", ".7em").style("margin", "10px");
1630
+ if (f.isgenevalue || f.iscnv || f.isloh || f.isitd || f.issvfusion) {
1631
+ holder.append("div").html(f.chr + ":" + f.start + "-" + f.stop + " &nbsp; " + bplen(f.stop - f.start)).style("font-size", ".7em").style("opacity", 0.5).style("margin", "0px 10px 10px 10px");
1632
+ } else if (f.issvcnv || f.ismutation) {
1633
+ if (!f.genename) {
1634
+ holder.append("div").html(f.chr + ":" + f.start + "-" + f.stop + " &nbsp; " + bplen(f.stop - f.start)).style("font-size", ".7em").style("opacity", 0.5).style("margin", "0px 10px 10px 10px");
1635
+ }
1636
+ } else if (f.issampleattribute) {
1637
+ holder.append("div").text(f.label);
1638
+ }
1639
+ if (f.isgenevalue) {
1640
+ holder.append("div").text("Min: " + f.scale.minv + ", max: " + f.scale.maxv).style("font-size", ".7em").style("opacity", 0.5).style("margin", "0px 10px 10px 10px");
1641
+ }
1642
+ }
1643
+ showTip_sample(sample) {
1644
+ this.tip.clear().d.append("div").text(sample.name).style("padding", "10px").style("font-size", ".7em");
1645
+ const lst = [];
1646
+ for (const f of this.features) {
1647
+ if (lst.length > 10) {
1648
+ lst.push({ k: "more", v: "..." });
1649
+ break;
1650
+ }
1651
+ if (f.isgenevalue) {
1652
+ const v = f.items.find((i) => i.sample == sample.name);
1653
+ lst.push({ k: f.label, v: v ? v.value : saynovalue });
1654
+ continue;
1655
+ }
1656
+ if (f.iscnv) {
1657
+ const items = f.items.filter((i) => i.sample == sample.name);
1658
+ let text;
1659
+ if (items.length == 0) {
1660
+ text = saynovalue;
1661
+ } else {
1662
+ const lst2 = items.map((i) => {
1663
+ return "<div>" + i.chr + ":" + i.start + "-" + i.stop + ' <span style="font-size:.7em">' + bplen(i.stop - i.start) + '</span> <span style="font-size:.8em;background:' + (i.value > 0 ? f.colorgain : f.colorloss) + ';color:white;padding:1px 5px">' + i.value + "</span></div>";
1664
+ });
1665
+ text = lst2.join("");
1666
+ }
1667
+ lst.push({ k: f.label, v: text });
1668
+ continue;
1669
+ }
1670
+ if (f.isloh) {
1671
+ const items = f.items.filter((i) => i.sample == sample.name);
1672
+ let text;
1673
+ if (items.length == 0) {
1674
+ text = saynovalue;
1675
+ } else {
1676
+ const lst2 = items.map((i) => {
1677
+ return "<div>" + i.chr + ":" + i.start + "-" + i.stop + ' <span style="font-size:.7em">' + bplen(i.stop - i.start) + '</span> <span style="font-size:.8em;background:' + f.color + ';color:white;padding:1px 5px">' + i.segmean + "</span></div>";
1678
+ });
1679
+ text = lst2.join("");
1680
+ }
1681
+ lst.push({ k: f.label, v: text });
1682
+ continue;
1683
+ }
1684
+ if (f.isvcf) {
1685
+ const mlst = getitemforsample_vcf(f, sample);
1686
+ let text;
1687
+ if (mlst.length == 0) {
1688
+ text = saynovalue;
1689
+ } else {
1690
+ text = mlst.map((m) => {
1691
+ return '<div><span style="color:' + mclass[m.class].color + '">' + m.mname + '</span> <span style="font-size:.7em;opacity:.5">' + mclass[m.class].label + "</span></div>";
1692
+ }).join("");
1693
+ }
1694
+ lst.push({ k: f.label, v: text });
1695
+ continue;
1696
+ }
1697
+ if (f.isitd) {
1698
+ const items = f.items.filter((i) => i.sample == sample.name);
1699
+ let text;
1700
+ if (items.length == 0) {
1701
+ text = saynovalue;
1702
+ } else {
1703
+ text = '<div style="background:' + f.color + ';width:20px">&nbsp;</div>';
1704
+ }
1705
+ lst.push({ k: f.label, v: text });
1706
+ continue;
1707
+ }
1708
+ if (f.issvfusion) {
1709
+ const items = f.items.filter((i) => i.sample == sample.name);
1710
+ let text;
1711
+ if (items.length == 0) {
1712
+ text = saynovalue;
1713
+ } else {
1714
+ text = '<div style="background:' + f.color + ';width:20px">&nbsp;</div>';
1715
+ }
1716
+ lst.push({ k: f.label, v: text });
1717
+ continue;
1718
+ }
1719
+ if (f.issvcnv) {
1720
+ continue;
1721
+ }
1722
+ if (f.ismutation) {
1723
+ continue;
1724
+ }
1725
+ if (f.issampleattribute) {
1726
+ const item = f.items.find((i) => i.sample == sample.name);
1727
+ if (item) {
1728
+ lst.push({ k: f.label, v: item.value });
1729
+ }
1730
+ continue;
1731
+ }
1732
+ console.error("sample tooltip: Unknown feature type");
1733
+ }
1734
+ make_table_2col(this.tip.d, lst);
1735
+ this.tip.show(event.clientX, event.clientY);
1736
+ }
1737
+ showTip_cell(sample, f) {
1738
+ const lst = [{ k: "sample", v: sample.name }];
1739
+ if (f.isgenevalue) {
1740
+ const v = f.items.find((i) => i.sample == sample.name);
1741
+ lst.push({ k: f.label, v: v ? v.value : saynovalue });
1742
+ } else if (f.iscnv) {
1743
+ const items = f.items.filter((i) => i.sample == sample.name);
1744
+ let text;
1745
+ if (items.length == 0) {
1746
+ text = saynovalue;
1747
+ } else {
1748
+ const lst2 = items.map((i) => {
1749
+ return "<div>" + i.chr + ":" + i.start + "-" + i.stop + ' <span style="font-size:.7em">' + bplen(i.stop - i.start) + '</span> <span style="font-size:.8em;background:' + (i.value > 0 ? f.colorgain : f.colorloss) + ';color:white;padding:1px 5px">' + i.value + "</span></div>";
1750
+ });
1751
+ text = lst2.join("");
1752
+ }
1753
+ lst.push({ k: f.label, v: text });
1754
+ } else if (f.isloh) {
1755
+ const items = f.items.filter((i) => i.sample == sample.name);
1756
+ let text;
1757
+ if (items.length == 0) {
1758
+ text = saynovalue;
1759
+ } else {
1760
+ const lst2 = items.map((i) => {
1761
+ return "<div>" + i.chr + ":" + i.start + "-" + i.stop + ' <span style="font-size:.7em">' + bplen(i.stop - i.start) + '</span> <span style="font-size:.8em;background:' + f.color + ';color:white;padding:1px 5px">' + i.segmean + "</span></div>";
1762
+ });
1763
+ text = lst2.join("");
1764
+ }
1765
+ lst.push({ k: f.label, v: text });
1766
+ } else if (f.isvcf) {
1767
+ const mlst = getitemforsample_vcf(f, sample);
1768
+ let text;
1769
+ if (mlst.length == 0) {
1770
+ text = saynovalue;
1771
+ } else {
1772
+ text = mlst.map((m) => {
1773
+ return '<div><span style="color:' + mclass[m.class].color + '">' + m.mname + '</span> <span style="font-size:.7em;opacity:.5">' + mclass[m.class].label + "</span></div>";
1774
+ }).join("");
1775
+ }
1776
+ lst.push({ k: f.label, v: text });
1777
+ } else if (f.isitd) {
1778
+ const items = f.items.filter((i) => i.sample == sample.name);
1779
+ let text;
1780
+ if (items.length == 0) {
1781
+ text = saynovalue;
1782
+ } else {
1783
+ const lst2 = items.map((i) => {
1784
+ return "<div>" + i.chr + ":" + i.start + "-" + i.stop + " </div>";
1785
+ });
1786
+ text = lst2.join("");
1787
+ }
1788
+ lst.push({ k: f.label, v: text });
1789
+ } else if (f.issvfusion) {
1790
+ const items = f.items.filter((i) => i.sample == sample.name);
1791
+ let text;
1792
+ if (items.length == 0) {
1793
+ text = saynovalue;
1794
+ } else {
1795
+ const lst2 = items.map((i) => {
1796
+ return "<div>" + i.chrA + ":" + i.posA + " - " + i.chrB + ":" + i.posB + " </div>";
1797
+ });
1798
+ text = lst2.join("");
1799
+ }
1800
+ lst.push({ k: f.label, v: text });
1801
+ } else if (f.issvcnv || f.ismutation) {
1802
+ const [cnv, loh, itd, sv, fusion, snvindel] = getitemforsample_compound(f, sample);
1803
+ if (cnv.length) {
1804
+ lst.push({
1805
+ k: (f.genename || f.label) + " CNV",
1806
+ v: cnv.map((i) => {
1807
+ return '<div><span style="background:' + (i.value > 0 ? f.cnv.colorgain : f.cnv.colorloss) + ';color:white;padding:0px 3px">' + i.value + '</span> <span style="font-size:.8em">' + i.chr + ":" + i.start + "-" + i.stop + " &nbsp;&nbsp;" + bplen(i.stop - i.start) + "</span></div>";
1808
+ }).join("")
1809
+ });
1810
+ }
1811
+ if (loh.length) {
1812
+ lst.push({
1813
+ k: (f.genename || f.label) + " LOH",
1814
+ v: loh.map((i) => {
1815
+ return '<div><span style="background:' + f.loh.color + ';color:white;padding:0px 3px">' + i.segmean + '</span> <span style="font-size:.8em">' + i.chr + ":" + i.start + "-" + i.stop + " &nbsp;&nbsp;" + bplen(i.stop - i.start) + "</span></div>";
1816
+ }).join("")
1817
+ });
1818
+ }
1819
+ if (itd.length) {
1820
+ lst.push({
1821
+ k: (f.genename || f.label) + " ITD",
1822
+ v: itd.map((i) => {
1823
+ return '<div style="font-size:.8em">' + i.chr + ":" + i.start + "-" + i.stop + "</div>";
1824
+ }).join("")
1825
+ });
1826
+ }
1827
+ if (sv.length) {
1828
+ lst.push({
1829
+ k: (f.genename || f.label) + " SV",
1830
+ v: sv.map((i) => {
1831
+ return "<div>" + i.chrA + ":" + i.posA + "," + i.strandA + " &gt; " + i.chrB + ":" + i.posB + "," + i.strandB + "</div>";
1832
+ }).join("")
1833
+ });
1834
+ }
1835
+ if (fusion.length) {
1836
+ lst.push({
1837
+ k: (f.genename || f.label) + " fusion",
1838
+ v: fusion.map((i) => {
1839
+ return "<div>" + i.chrA + ":" + i.posA + "," + i.strandA + " &gt; " + i.chrB + ":" + i.posB + "," + i.strandB + "</div>";
1840
+ }).join("")
1841
+ });
1842
+ }
1843
+ if (snvindel.length) {
1844
+ lst.push({
1845
+ k: (f.genename || f.label) + " SNV/indel",
1846
+ v: snvindel.map((m) => {
1847
+ const c = mclass[m.m.class];
1848
+ return '<div><span style="color:' + c.color + '">' + (m.m.mname || "") + '</span> <span style="font-size:.7em;opacity:.5">' + c.label + "</span></div>";
1849
+ }).join("")
1850
+ });
1851
+ }
1852
+ } else if (f.issampleattribute) {
1853
+ const item = f.items.find((i) => i.sample == sample.name);
1854
+ if (item) {
1855
+ lst.push({
1856
+ k: f.label,
1857
+ v: item.value
1858
+ });
1859
+ }
1860
+ } else {
1861
+ console.error("cell tooltip: unknown feature type");
1862
+ }
1863
+ this.tip.clear();
1864
+ make_table_2col(this.tip.d, lst);
1865
+ this.tip.show(event.clientX, event.clientY);
1866
+ }
1867
+ /********** __menu ends **********/
1868
+ sortsamplesbyfeatures() {
1869
+ const sortbygenevalue = this.features.find((f) => f.isgenevalue && f.sort);
1870
+ if (sortbygenevalue && sortbygenevalue.items) {
1871
+ const sample2value = /* @__PURE__ */ new Map();
1872
+ for (const i of sortbygenevalue.items) {
1873
+ sample2value.set(i.sample, i.value);
1874
+ }
1875
+ this.samples.sort((i, j) => {
1876
+ const vi = sample2value.has(i.name) ? sample2value.get(i.name) : sortbygenevalue.missingvalue;
1877
+ const vj = sample2value.has(j.name) ? sample2value.get(j.name) : sortbygenevalue.missingvalue;
1878
+ return vj - vi;
1879
+ });
1880
+ }
1881
+ }
1882
+ may_init_customvcf(tk) {
1883
+ if (tk.info) return;
1884
+ const arg = ["genome=" + this.genome.name];
1885
+ if (tk.file) {
1886
+ arg.push("file=" + tk.file);
1887
+ } else {
1888
+ arg.push("url=" + tk.url);
1889
+ if (tk.indexURL) arg.push("indexURL=" + tk.indexURL);
1890
+ }
1891
+ return dofetch2("vcfheader?" + arg.join("&")).then((data) => {
1892
+ const [info, format, samples, errs] = vcfparsemeta(data.metastr.split("\n"));
1893
+ if (errs) throw "Error parsing VCF meta lines: " + errs.join("; ");
1894
+ tk.info = info;
1895
+ tk.format = format;
1896
+ tk.samples = samples;
1897
+ tk.nochr = data.nochr;
1898
+ });
1899
+ }
1900
+ drawEmptycell(sample, feature, g) {
1901
+ const height = this.features_on_rows ? feature.height : sample.height;
1902
+ const width = this.features_on_rows ? sample.width : feature.width;
1903
+ if (height < 5) return;
1904
+ g.append("line").attr("x2", width).attr("y2", height).attr("stroke", "#ededed");
1905
+ }
1906
+ // end of class
1907
+ };
1908
+ function feature2arg(f) {
1909
+ if (f.isgenevalue) {
1910
+ return {
1911
+ id: f.id,
1912
+ isgenevalue: 1,
1913
+ querykey: f.querykey,
1914
+ genename: f.genename,
1915
+ chr: f.chr,
1916
+ start: f.start,
1917
+ stop: f.stop
1918
+ };
1919
+ }
1920
+ if (f.iscnv) {
1921
+ return {
1922
+ id: f.id,
1923
+ iscnv: 1,
1924
+ querykey: f.querykey,
1925
+ chr: f.chr,
1926
+ start: f.start,
1927
+ stop: f.stop,
1928
+ valuecutoff: f.valuecutoff,
1929
+ focalsizelimit: f.focalsizelimit
1930
+ };
1931
+ }
1932
+ if (f.isloh) {
1933
+ return {
1934
+ id: f.id,
1935
+ isloh: 1,
1936
+ querykey: f.querykey,
1937
+ chr: f.chr,
1938
+ start: f.start,
1939
+ stop: f.stop,
1940
+ valuecutoff: f.valuecutoff,
1941
+ focalsizelimit: f.focalsizelimit
1942
+ };
1943
+ }
1944
+ if (f.isvcf) {
1945
+ return {
1946
+ id: f.id,
1947
+ isvcf: 1,
1948
+ querykey: f.querykey,
1949
+ chr: f.chr,
1950
+ start: f.start,
1951
+ stop: f.stop,
1952
+ snvindel: {
1953
+ excludeclasses: f.snvindel.excludeclasses
1954
+ }
1955
+ };
1956
+ }
1957
+ if (f.isitd) {
1958
+ return {
1959
+ id: f.id,
1960
+ isitd: 1,
1961
+ querykey: f.querykey,
1962
+ chr: f.chr,
1963
+ start: f.start,
1964
+ stop: f.stop
1965
+ };
1966
+ }
1967
+ if (f.issvfusion) {
1968
+ return {
1969
+ id: f.id,
1970
+ issvfusion: 1,
1971
+ querykey: f.querykey,
1972
+ chr: f.chr,
1973
+ start: f.start,
1974
+ stop: f.stop
1975
+ };
1976
+ }
1977
+ if (f.issvcnv || f.ismutation) {
1978
+ const arg = {
1979
+ id: f.id,
1980
+ chr: f.chr,
1981
+ start: f.start,
1982
+ stop: f.stop,
1983
+ cnv: {
1984
+ hidden: f.cnv.hidden,
1985
+ valuecutoff: f.cnv.valuecutoff,
1986
+ focalsizelimit: f.cnv.focalsizelimit
1987
+ },
1988
+ loh: {
1989
+ hidden: f.loh.hidden,
1990
+ valuecutoff: f.loh.valuecutoff,
1991
+ focalsizelimit: f.loh.focalsizelimit
1992
+ },
1993
+ itd: {
1994
+ hidden: f.itd.hidden
1995
+ },
1996
+ sv: {
1997
+ hidden: f.sv.hidden
1998
+ },
1999
+ fusion: {
2000
+ hidden: f.fusion.hidden
2001
+ },
2002
+ snvindel: {
2003
+ excludeclasses: f.snvindel.excludeclasses
2004
+ }
2005
+ };
2006
+ if (f.issvcnv) {
2007
+ arg.issvcnv = 1;
2008
+ arg.querykey = f.querykey;
2009
+ } else {
2010
+ arg.ismutation = 1;
2011
+ arg.querykeylst = f.querykeylst;
2012
+ }
2013
+ return arg;
2014
+ }
2015
+ if (f.issampleattribute) {
2016
+ return {
2017
+ id: f.id,
2018
+ issampleattribute: 1,
2019
+ key: f.key
2020
+ };
2021
+ }
2022
+ throw "unknown feature type in making request parameter";
2023
+ }
2024
+ function getitemforsample_vcf(feature, sample) {
2025
+ const mlst = [];
2026
+ for (const m of feature.items) {
2027
+ if (m.dt == dtsnvindel) {
2028
+ if (m.sampledata.findIndex((i) => i.sampleobj.name == sample.name) != -1) {
2029
+ mlst.push(m);
2030
+ }
2031
+ } else {
2032
+ console.error("getitemforsample_vcf: unknown dt");
2033
+ }
2034
+ }
2035
+ return mlst;
2036
+ }
2037
+ function getitemforsample_compound(feature, sample) {
2038
+ const cnv = [], loh = [], itd = [], sv = [], fusion = [], snvindel = [];
2039
+ for (const item of feature.items) {
2040
+ if (item.dt == dtsnvindel) {
2041
+ if (!item.sampledata) continue;
2042
+ const m_sample = item.sampledata.find((s) => s.sampleobj.name == sample.name);
2043
+ if (!m_sample) continue;
2044
+ snvindel.push({
2045
+ m: item,
2046
+ m_sample
2047
+ });
2048
+ continue;
2049
+ }
2050
+ if (item.sample != sample.name) continue;
2051
+ if (item.dt == dtcnv) {
2052
+ cnv.push(item);
2053
+ } else if (item.dt == dtloh) {
2054
+ loh.push(item);
2055
+ } else if (item.dt == dtitd) {
2056
+ itd.push(item);
2057
+ } else if (item.dt == dtsv) {
2058
+ sv.push(item);
2059
+ } else if (item.dt == dtfusionrna) {
2060
+ fusion.push(item);
2061
+ } else {
2062
+ console.error("unknown dt: " + item.dt);
2063
+ }
2064
+ }
2065
+ return [cnv, loh, itd, sv, fusion, snvindel];
2066
+ }
2067
+ function initfeature_polymutation(f) {
2068
+ if (!f.width) f.width = 20;
2069
+ if (!f.cnv) f.cnv = {};
2070
+ if (!f.cnv.valuecutoff) f.cnv.valuecutoff = 0.2;
2071
+ if (!Number.isInteger(f.cnv.focalsizelimit)) f.cnv.focalsizelimit = 2e6;
2072
+ if (!f.cnv.colorgain) f.cnv.colorgain = default_cnvgaincolor;
2073
+ if (!f.cnv.colorloss) f.cnv.colorloss = default_cnvlosscolor;
2074
+ if (!f.loh) f.loh = {};
2075
+ if (!f.loh.valuecutoff) f.loh.valuecutoff = 0.1;
2076
+ if (!Number.isInteger(f.loh.focalsizelimit)) f.loh.focalsizelimit = 2e6;
2077
+ if (!f.loh.color) f.loh.color = default_lohcolor;
2078
+ if (!f.itd) f.itd = {};
2079
+ if (!f.itd.color) f.itd.color = mclass[mclassitd].color;
2080
+ if (!f.sv) f.sv = {};
2081
+ if (!f.sv.color) f.sv.color = default_svcolor;
2082
+ if (!f.fusion) f.fusion = {};
2083
+ if (!f.fusion.color) f.fusion.color = default_svcolor;
2084
+ if (!f.snvindel) f.snvindel = {};
2085
+ if (!f.snvindel.excludeclasses) f.snvindel.excludeclasses = {};
2086
+ }
2087
+ function init_controlui(o) {
2088
+ const buttonrow = o.holder.append("div").style("margin-bottom", "5px");
2089
+ const folderdiv = o.holder.append("div").style("margin-bottom", "20px");
2090
+ buttonrow.append("span").style("margin-right", "20px").style("font-size", ".8em").text("LEGEND").attr("class", "sja_clbtext").on("click", () => {
2091
+ if (o.legendtable.style("display") == "none") {
2092
+ appear(o.legendtable);
2093
+ } else {
2094
+ disappear(o.legendtable);
2095
+ }
2096
+ });
2097
+ o.legendtable = folderdiv.append("table").style("border-top", "solid 1px #ededed").style("border-bottom", "solid 1px #ededed").style("border-spacing", "10px").style("display", "none");
2098
+ buttonrow.append("span").style("margin-right", "20px").style("font-size", ".8em").text("CONFIG").attr("class", "sja_clbtext").on("click", () => {
2099
+ if (generalconfig.style("display") == "none") {
2100
+ appear(generalconfig);
2101
+ } else {
2102
+ disappear(generalconfig);
2103
+ }
2104
+ });
2105
+ const generalconfig = folderdiv.append("div").style("border-top", "solid 1px #ededed").style("border-bottom", "solid 1px #ededed").style("display", "none");
2106
+ const row = generalconfig.append("div").style("margin", "5px");
2107
+ row.append("div").style("vertical-align", "top").style("display", "inline-block").html("Show features as &nbsp;&nbsp;");
2108
+ const opts_div = row.append("div").style("display", "inline-block");
2109
+ const mutation_opts = [
2110
+ { value: "symbol", text: "CNV on genomic location, others as symbol" },
2111
+ { value: "proportion", text: "All features as porportion" }
2112
+ ];
2113
+ mutation_opts.forEach((opt) => {
2114
+ const opt_div = opts_div.append("div");
2115
+ opt_div.append("input").attr("type", "radio").attr("id", opt.value).attr("name", "mutaion_display").attr("value", opt.value).property(
2116
+ "checked",
2117
+ opt.value == "symbol" && o.ismutation_allsymbolic === void 0 && o.ismutation_allnotsymbolic === void 0 ? 1 : opt.value == "symbol" && o.ismutation_allnotsymbolic ? 1 : opt.value == "proportion" && o.ismutation_allsymbolic ? 1 : 0
2118
+ ).on("change", function() {
2119
+ if (opt.value == "symbol" && o.ismutation_allnotsymbolic) return;
2120
+ else if (opt.value == "proportion" && o.ismutation_allsymbolic) return;
2121
+ else if (opt.value == "symbol") {
2122
+ delete o.ismutation_allsymbolic;
2123
+ o.ismutation_allnotsymbolic = true;
2124
+ } else if (opt.value == "proportion") {
2125
+ o.ismutation_allsymbolic = true;
2126
+ delete o.ismutation_allnotsymbolic;
2127
+ } else {
2128
+ return;
2129
+ }
2130
+ o.draw_matrix();
2131
+ });
2132
+ opt_div.append("label").attr("for", opt.value).text(opt.text);
2133
+ });
2134
+ const row2 = generalconfig.append("div").style("margin", "5px");
2135
+ row2.append("div").style("vertical-align", "top").style("display", "inline-block").html("Layout of Matrix &nbsp;&nbsp;");
2136
+ const opts_div2 = row2.append("div").style("display", "inline-block");
2137
+ const layout_opts = [
2138
+ { value: "gene_on_row", text: "Genes as Rows" },
2139
+ { value: "sam_on_row", text: "Samples as Rows" }
2140
+ ];
2141
+ layout_opts.forEach((opt) => {
2142
+ const opt_div = opts_div2.append("div");
2143
+ opt_div.append("input").attr("type", "radio").attr("id", opt.value).attr("name", "layout").attr("value", opt.value).property(
2144
+ "checked",
2145
+ opt.value == "gene_on_row" && o.features_on_rows ? 1 : opt.value == "sam_on_row" && !o.features_on_rows ? 1 : 0
2146
+ ).on("change", function() {
2147
+ if (opt.value == "gene_on_row" && o.features_on_rows) return;
2148
+ else if (opt.value == "sam_on_row" && !o.features_on_rows) return;
2149
+ else if (opt.value == "gene_on_row") {
2150
+ o.features_on_rows = true;
2151
+ if (o.ori_feature_width) o.features.forEach((f) => f.height = o.ori_feature_width);
2152
+ } else {
2153
+ o.features_on_rows = false;
2154
+ if (o.ori_feature_height) o.features.forEach((f) => f.width = o.ori_feature_height);
2155
+ }
2156
+ o.draw_matrix();
2157
+ });
2158
+ opt_div.append("label").attr("for", opt.value).text(opt.text);
2159
+ });
2160
+ buttonrow.append("span").style("margin-right", "20px").style("font-size", ".8em").text("DATA").attr("class", "sja_clbtext").on("click", () => {
2161
+ printData(o);
2162
+ });
2163
+ may_add_kmplotbutton(o, buttonrow);
2164
+ }
2165
+ function printData(o) {
2166
+ const lst = ["sample feature varianttype variant"];
2167
+ for (const s of o.samples) {
2168
+ for (const f of o.features) {
2169
+ for (const i of f.items) {
2170
+ if (i.sample && i.sample == s.name || i.sampledata && i.sampledata.findIndex((i2) => i2.sampleobj.name == s.name) != -1) {
2171
+ lst.push(s.name + " " + f.label + " " + dt2label[i.dt] + " " + item2string(i));
2172
+ }
2173
+ }
2174
+ }
2175
+ }
2176
+ export_data("Matrix data", [{ text: lst.join("\n") }]);
2177
+ }
2178
+ function item2string(i) {
2179
+ if (i.dt == dtsnvindel)
2180
+ return i.mname + " " + mclass[i.class].label + " " + i.chr + "." + i.pos + "." + i.ref + "." + i.alt;
2181
+ if (i.dt == dtfusionrna || i.dt == dtsv)
2182
+ return i.chrA + "." + i.posA + "." + (i.strandA || "") + " > " + i.chrB + "." + i.posB + "." + (i.strandB || "");
2183
+ if (i.dt == dtcnv) return i.chr + ":" + i.start + "-" + i.stop + ", log2(ratio): " + i.value;
2184
+ if (i.dt == dtloh) return i.chr + ":" + i.start + "-" + i.stop + ", log2(ratio): " + i.segmean;
2185
+ if (i.dt == dtitd) return i.chr + ":" + i.start + "-" + i.stop;
2186
+ return "";
2187
+ }
2188
+ export {
2189
+ Samplematrix
2190
+ };
2191
+ //# sourceMappingURL=samplematrix-6VRFIIVU.js.map