@sjcrh/proteinpaint-client 2.185.0 → 2.186.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (848) hide show
  1. package/dist/2dmaf-F5QNP7AQ.js +1371 -0
  2. package/dist/AIProjectAdmin-ROSQHK6Q.js +827 -0
  3. package/dist/AIProjectAdmin-ROSQHK6Q.js.map +7 -0
  4. package/dist/AppHeader-STVCDLET.js +833 -0
  5. package/dist/BoxPlot-CU7MEBH7.js +1217 -0
  6. package/dist/CorrelationVolcano-OE4R2GS3.js +617 -0
  7. package/dist/DE-SR7PJPKI.js +93 -0
  8. package/dist/DEinput-PRIAIBFH.js +299 -0
  9. package/dist/DEinput-PRIAIBFH.js.map +7 -0
  10. package/dist/DifferentialAnalysis-UWTYK7NU.js +241 -0
  11. package/dist/Disco-IL6REGSA.js +3235 -0
  12. package/dist/Disco.UI-JHHLS5BA.js +242 -0
  13. package/dist/DmrPlot-DDP53T3F.js +640 -0
  14. package/dist/GB-F4LMYMHF.js +1127 -0
  15. package/dist/GB-F4LMYMHF.js.map +7 -0
  16. package/dist/GeneExpInput-ZWBC226P.js +363 -0
  17. package/dist/GeneExpInput-ZWBC226P.js.map +7 -0
  18. package/dist/HicApp-RVFHTYED.js +2248 -0
  19. package/dist/NumBinaryEditor-B3FXQAOH.js +268 -0
  20. package/dist/NumBinaryEditor.unit.spec-75YQJ2U6.js +284 -0
  21. package/dist/NumContEditor-5PYW3OLY.js +105 -0
  22. package/dist/NumContEditor.unit.spec-F7ZRDGBN.js +167 -0
  23. package/dist/NumCustomBinEditor-TBT6GLYQ.js +36 -0
  24. package/dist/NumCustomBinEditor.unit.spec-6YHU45XV.js +282 -0
  25. package/dist/NumDiscreteEditor-N6OJYSJA.js +177 -0
  26. package/dist/NumDiscreteEditor.unit.spec-HQS5RZ6R.js +200 -0
  27. package/dist/NumRegularBinEditor-HSDDKVNG.js +36 -0
  28. package/dist/NumRegularBinEditor.unit.spec-33KN2MVM.js +225 -0
  29. package/dist/NumSplineEditor-XERKOACS.js +190 -0
  30. package/dist/NumSplineEditor.unit.spec-MPVM6KSC.js +197 -0
  31. package/dist/NumericDensity-35EKYW3V.js +36 -0
  32. package/dist/NumericDensity.unit.spec-OR24PPRJ.js +219 -0
  33. package/dist/NumericHandler-D6ZNGRE3.js +37 -0
  34. package/dist/NumericHandler.unit.spec-EKPGVSXI.js +217 -0
  35. package/dist/RunChart2-7DOXOFXV.js +756 -0
  36. package/dist/SC-APZRV4H6.js +826 -0
  37. package/dist/SC-APZRV4H6.js.map +7 -0
  38. package/dist/Volcano-X4ZWK644.js +1344 -0
  39. package/dist/Volcano-X4ZWK644.js.map +7 -0
  40. package/dist/WSIViewer-E247ELKN.js +47971 -0
  41. package/dist/WsiSamplesPlot-3522VRB5.js +163 -0
  42. package/dist/adSandbox-IDFY5P2P.js +36 -0
  43. package/dist/alphaGenome-F3W7GJQ5.js +173 -0
  44. package/dist/app-2HDSFMRM.js +47 -0
  45. package/dist/app-LIWPFL7C.js +35 -0
  46. package/dist/app.js +10 -10
  47. package/dist/bam-TBHHSATL.js +857 -0
  48. package/dist/barchart-HHFCBOZE.js +45 -0
  49. package/dist/barchart.events-UQUSSRXB.js +45 -0
  50. package/dist/barchart.integration.spec-OF3MWFQ5.js +1675 -0
  51. package/dist/barchart2-XRMPCBBU.js +309 -0
  52. package/dist/block-5UEORHFB.js +6200 -0
  53. package/dist/block.init-QSSFUVIT.js +36 -0
  54. package/dist/block.mds.expressionrank-VBIIJHQF.js +357 -0
  55. package/dist/block.mds.geneboxplot-KSBHXBNX.js +826 -0
  56. package/dist/block.mds.junction-FWZWMZJ2.js +1543 -0
  57. package/dist/block.mds.svcnv-UXORVLH2.js +6799 -0
  58. package/dist/block.svg-6KIGW4QH.js +162 -0
  59. package/dist/block.tk.aicheck-DK566Q4C.js +281 -0
  60. package/dist/block.tk.ase-2GB2VJJ6.js +363 -0
  61. package/dist/block.tk.bam-RQNOLY52.js +1904 -0
  62. package/dist/block.tk.bedgraphdot-N4YMZFO4.js +382 -0
  63. package/dist/block.tk.bigwig.ui-4S7L7D7D.js +209 -0
  64. package/dist/block.tk.hicstraw-AHFNQKCS.js +821 -0
  65. package/dist/block.tk.junction-7E6SNQMQ.js +2362 -0
  66. package/dist/block.tk.junction.textmatrixui-3C5JVYX5.js +197 -0
  67. package/dist/block.tk.ld-TOUCLT3W.js +97 -0
  68. package/dist/block.tk.menu-JCV5ORD6.js +1027 -0
  69. package/dist/block.tk.pgv-CUU22U6M.js +942 -0
  70. package/dist/brainImaging-MTQTXNNL.js +421 -0
  71. package/dist/chunk-2UYBBUXK.js +293 -0
  72. package/dist/chunk-2VPEFXEJ.js +4207 -0
  73. package/dist/chunk-2YC6ZVE4.js +20377 -0
  74. package/dist/chunk-2YC6ZVE4.js.map +7 -0
  75. package/dist/chunk-37MD3Y5G.js +1230 -0
  76. package/dist/chunk-37MD3Y5G.js.map +7 -0
  77. package/dist/chunk-3QHIL3V3.js +55 -0
  78. package/dist/chunk-44VXWKYJ.js +129 -0
  79. package/dist/chunk-52D6EGUS.js +95 -0
  80. package/dist/chunk-5FHM3L4I.js +102 -0
  81. package/dist/chunk-62TF2MCH.js +142 -0
  82. package/dist/chunk-67QM2NUK.js +6364 -0
  83. package/dist/chunk-6AAPHEWK.js +676 -0
  84. package/dist/chunk-6KPGMUHS.js +153 -0
  85. package/dist/chunk-6WBIZXNI.js +455 -0
  86. package/dist/chunk-7AAJVXEG.js +302 -0
  87. package/dist/chunk-AFJRAR4N.js +1271 -0
  88. package/dist/chunk-BBNO6JLO.js +200 -0
  89. package/dist/chunk-BBNO6JLO.js.map +7 -0
  90. package/dist/chunk-CVRYZMDE.js +148 -0
  91. package/dist/chunk-DGUTCYH2.js +276 -0
  92. package/dist/chunk-DHNXATHC.js +158 -0
  93. package/dist/chunk-DXHATYHE.js +180 -0
  94. package/dist/chunk-DXHATYHE.js.map +7 -0
  95. package/dist/chunk-E3BI23UK.js +229 -0
  96. package/dist/chunk-E4JDHA3C.js +621 -0
  97. package/dist/chunk-FOJWYEGV.js +228 -0
  98. package/dist/chunk-FTN7Y34O.js +158 -0
  99. package/dist/chunk-GAOUV4ID.js +1943 -0
  100. package/dist/chunk-GAOUV4ID.js.map +7 -0
  101. package/dist/chunk-GRG5MMPN.js +2815 -0
  102. package/dist/chunk-GSU4PZN3.js +482 -0
  103. package/dist/chunk-I55NLUCQ.js +1823 -0
  104. package/dist/chunk-I55NLUCQ.js.map +7 -0
  105. package/dist/chunk-IIRU2JLK.js +217 -0
  106. package/dist/chunk-JCB74ZSK.js +272 -0
  107. package/dist/chunk-JUDWPYMA.js +824 -0
  108. package/dist/chunk-KT6VZBC7.js +1087 -0
  109. package/dist/chunk-L2HBHFTK.js +2370 -0
  110. package/dist/chunk-LKADRF3Q.js +368 -0
  111. package/dist/chunk-MAXFRUGM.js +407 -0
  112. package/dist/chunk-MQN7RYCK.js +37 -0
  113. package/dist/chunk-OEUI4CYZ.js +470 -0
  114. package/dist/chunk-OM36XUQL.js +34 -0
  115. package/dist/chunk-P5LNIH5X.js +54 -0
  116. package/dist/chunk-PG62PRMF.js +102 -0
  117. package/dist/chunk-Q3J3F2NU.js +205 -0
  118. package/dist/chunk-RYCOJY7M.js +188 -0
  119. package/dist/chunk-RYCOJY7M.js.map +7 -0
  120. package/dist/chunk-RZBV6474.js +117 -0
  121. package/dist/chunk-T5V4OC27.js +442 -0
  122. package/dist/chunk-TXJG4N6S.js +4992 -0
  123. package/dist/chunk-TXJG4N6S.js.map +7 -0
  124. package/dist/chunk-UCKSUNSJ.js +335 -0
  125. package/dist/chunk-W4TLYHZO.js +514 -0
  126. package/dist/chunk-WPZUXKIB.js +56 -0
  127. package/dist/chunk-XM47XD6G.js +215 -0
  128. package/dist/chunk-XVA3UOWD.js +263 -0
  129. package/dist/chunk-XVA3UOWD.js.map +7 -0
  130. package/dist/chunk-YIMRBXQK.js +1210 -0
  131. package/dist/chunk-YIMRBXQK.js.map +7 -0
  132. package/dist/chunk-YL7VT4QT.js +1159 -0
  133. package/dist/chunk-YL7VT4QT.js.map +7 -0
  134. package/dist/chunk-YWBUK4B7.js +291 -0
  135. package/dist/chunk-YWBUK4B7.js.map +7 -0
  136. package/dist/chunk-YZHGLSKQ.js +50 -0
  137. package/dist/chunk-ZGOOZK3I.js +203 -0
  138. package/dist/chunk-ZH2VP6Q6.js +95 -0
  139. package/dist/chunk-ZLOQXO5K.js +14 -0
  140. package/dist/chunk-ZMNDBPJU.js +100 -0
  141. package/dist/chunk-ZRTW6X3F.js +2784 -0
  142. package/dist/chunk-ZTT52MBP.js +2681 -0
  143. package/dist/condition-VUACUQYF.js +330 -0
  144. package/dist/controls-N4MPSNO4.js +39 -0
  145. package/dist/controls.config-PRXVODCM.js +37 -0
  146. package/dist/correlation-QJZUYDFH.js +96 -0
  147. package/dist/cuminc-JJHXW55V.js +1147 -0
  148. package/dist/cuminc.integration.spec-IXS2UO2O.js +676 -0
  149. package/dist/customdata.inputui-DUHO6M6I.js +287 -0
  150. package/dist/dataDownload-OFB7TYDB.js +328 -0
  151. package/dist/dataDownload.integration.spec-4HWDQO4C.js +191 -0
  152. package/dist/databrowser.ui-FGZ5SWG3.js +430 -0
  153. package/dist/databrowser.ui-FGZ5SWG3.js.map +7 -0
  154. package/dist/dictionary-BSKN37CP.js +109 -0
  155. package/dist/dnaMethylation-5QNEEGC6.js +36 -0
  156. package/dist/dnaMethylation.integration.spec-YIX3JSA7.js +201 -0
  157. package/dist/dofetch-KFMGQY7G.js +50 -0
  158. package/dist/e2pca-VX42HDYZ.js +348 -0
  159. package/dist/ep-B6ZNETLI.js +1254 -0
  160. package/dist/expclust.gdc.spec-SGECIILQ.js +305 -0
  161. package/dist/facet-2W5SBPGP.js +519 -0
  162. package/dist/gb-67KTSE2W.js +86 -0
  163. package/dist/gb-67KTSE2W.js.map +7 -0
  164. package/dist/geneExpClustering-6A7364T5.js +247 -0
  165. package/dist/geneExpression-NAM2UEYN.js +36 -0
  166. package/dist/geneExpression-WF56ODMZ.js +312 -0
  167. package/dist/geneExpression.unit.spec-DNE2T3WI.js +100 -0
  168. package/dist/geneORA-33FK2YOS.js +276 -0
  169. package/dist/geneVariant-C7PCNBOQ.js +37 -0
  170. package/dist/geneVariant-REELFRRA.js +39 -0
  171. package/dist/geneVariant.integration.spec-GNXUGDKL.js +196 -0
  172. package/dist/genefusion.ui-WO5EPJDS.js +306 -0
  173. package/dist/geneset-4C6ZLVMN.js +201 -0
  174. package/dist/geneset-4C6ZLVMN.js.map +7 -0
  175. package/dist/genomeBrowser.spec-VPAKTUJF.js +279 -0
  176. package/dist/grin2-AJFEBD43.js +852 -0
  177. package/dist/grin2-AJFEBD43.js.map +7 -0
  178. package/dist/grin2-GYHUYNEF.js +1554 -0
  179. package/dist/gsea-PE5WZ5ZI.js +45 -0
  180. package/dist/hierCluster-FH6YJHRT.js +61 -0
  181. package/dist/hierCluster-IFM5I5QN.js +57 -0
  182. package/dist/hierCluster.config-M57ZIWMB.js +38 -0
  183. package/dist/hierCluster.integration.spec-Z64RL7MC.js +393 -0
  184. package/dist/hierCluster.interactivity-CDBAJXOY.js +52 -0
  185. package/dist/imagePlot-NFEE6IGV.js +161 -0
  186. package/dist/imagePlot-NFEE6IGV.js.map +7 -0
  187. package/dist/importPlot-OWKXSK77.js +8 -0
  188. package/dist/isoformExpression-66XLJG73.js +38 -0
  189. package/dist/isoformExpression.unit.spec-QJX2IRHL.js +206 -0
  190. package/dist/launch.adhoc-JCWID253.js +40 -0
  191. package/dist/leftlabel.sample-5NZ6VQDN.js +257 -0
  192. package/dist/lollipop-BPFDEM2R.js +169 -0
  193. package/dist/lollipop-BPFDEM2R.js.map +7 -0
  194. package/dist/maf-HIS2FQXK.js +450 -0
  195. package/dist/maftimeline-UPJJQE23.js +591 -0
  196. package/dist/matrix-62CN2KXR.js +56 -0
  197. package/dist/matrix-SPEDEB3J.js +61 -0
  198. package/dist/matrix.config-XB6WFXUY.js +39 -0
  199. package/dist/matrix.integration.spec-NN7OR5XM.js +3070 -0
  200. package/dist/matrix.interactivity-OWMHUJCX.js +40 -0
  201. package/dist/matrix.layout-27QB6MWK.js +42 -0
  202. package/dist/matrix.renderers-EPXES5E4.js +36 -0
  203. package/dist/matrix.sort.unit.spec-NBT5FSZ6.js +470 -0
  204. package/dist/matrix.sorterUi.unit.spec-QKGUE4RR.js +340 -0
  205. package/dist/mavb-M7Y74OWQ.js +730 -0
  206. package/dist/mds.fimo-WCDFA7HG.js +516 -0
  207. package/dist/mds.samplescatterplot-ZDHQ3MKJ.js +1548 -0
  208. package/dist/mds.survivalplot-R74DL2RA.js +481 -0
  209. package/dist/oncomatrix-MOITJBII.js +293 -0
  210. package/dist/oncomatrix.spec-NALJBPYS.js +446 -0
  211. package/dist/plot.2dvaf-IE2EZEFA.js +375 -0
  212. package/dist/plot.app-HTW6TZEH.js +39 -0
  213. package/dist/plot.barplot-NCQEPEOY.js +100 -0
  214. package/dist/plot.boxplot-WNKVBVJJ.js +150 -0
  215. package/dist/plot.brainImaging-2Z3TOO6J.js +51 -0
  216. package/dist/plot.disco-4JAEIAYK.js +101 -0
  217. package/dist/plot.dzi-ZGLOVJJN.js +33 -0
  218. package/dist/plot.ssgq-IHUILM43.js +137 -0
  219. package/dist/plot.vaf2cov-ZYCQMD27.js +257 -0
  220. package/dist/plot.wsi-3GISVBDH.js +36 -0
  221. package/dist/polar-4AUAZHBV.js +184 -0
  222. package/dist/polar2-SRD4WWXU.js +226 -0
  223. package/dist/profile.spec-TOITKBBZ.js +78 -0
  224. package/dist/profileBarchart-Z4SYIYBE.js +265 -0
  225. package/dist/profileForms-RA7XQ2QT.js +438 -0
  226. package/dist/profilePlot-4BM3XZVK.js +52 -0
  227. package/dist/profileRadar-EYBESEPI.js +261 -0
  228. package/dist/profileRadarFacility-FZYTFM26.js +261 -0
  229. package/dist/proteinView-F6XKT2A5.js +1122 -0
  230. package/dist/proteinView-F6XKT2A5.js.map +7 -0
  231. package/dist/proteomeAbundance-3RJMRXYI.js +68 -0
  232. package/dist/proteomeAbundance-3RJMRXYI.js.map +7 -0
  233. package/dist/proteomeAbundance-65R6M4YQ.js +21 -0
  234. package/dist/qualitative-E7WL6DN4.js +41 -0
  235. package/dist/radar2-I6FN5SUX.js +314 -0
  236. package/dist/radarFacility2-GVK7PT3V.js +323 -0
  237. package/dist/regression-TIR5D354.js +54 -0
  238. package/dist/regression.inputs-2AMJCJ3L.js +46 -0
  239. package/dist/regression.inputs.term-D6D2QEUB.js +46 -0
  240. package/dist/regression.inputs.values.table-M3IPLGDJ.js +43 -0
  241. package/dist/regression.integration.spec-ROUSXLMH.js +782 -0
  242. package/dist/regression.results-YD5S74YS.js +38 -0
  243. package/dist/regression.spec-4OXBBTNO.js +706 -0
  244. package/dist/report-ETNALKTY.js +220 -0
  245. package/dist/sampleScatter.spec-LECMFMI2.js +200 -0
  246. package/dist/sampleView-B5TM7JOW.js +46 -0
  247. package/dist/samplelst-GFQCG4SS.js +109 -0
  248. package/dist/samplematrix-OMTNWCJK.js +2196 -0
  249. package/dist/sc-MIEEZBWG.js +84 -0
  250. package/dist/scatter-ETOZ722F.js +800 -0
  251. package/dist/scatter.integration.spec-TS4PNRLX.js +1194 -0
  252. package/dist/selectGenomeWithTklst-Y5QIM2JB.js +132 -0
  253. package/dist/singleCellCellType-HOJHZF5W.js +36 -0
  254. package/dist/singleCellCellType.unit.spec-MH5V3RPX.js +158 -0
  255. package/dist/singleCellGeneExpression-YVQ5TIKN.js +36 -0
  256. package/dist/singleCellGeneExpression.unit.spec-BMFFT5HO.js +151 -0
  257. package/dist/singleCellPlot-3YFUYA2Y.js +51 -0
  258. package/dist/singlecell-FK5JETW5.js +1570 -0
  259. package/dist/singlecell-RL7V7DIC.js +84 -0
  260. package/dist/snp-FT7HB3XN.js +36 -0
  261. package/dist/snp.unit.spec-CLYVYPPG.js +174 -0
  262. package/dist/snplocus-M5SEQGAC.js +206 -0
  263. package/dist/spliceevent.a53ss.diagram-EJ5CTRCZ.js +149 -0
  264. package/dist/spliceevent.exonskip.diagram-ETXMOHZ3.js +275 -0
  265. package/dist/spliceevent.noeventdiagram-S2O4ZM2Z.js +458 -0
  266. package/dist/ssGSEA-6PMDQDTJ.js +36 -0
  267. package/dist/ssGSEA.unit.spec-JD5T4R2N.js +86 -0
  268. package/dist/summarizeCnvGeneexp-GCHNKTIU.js +161 -0
  269. package/dist/summarizeGeneexpSurvival-R2RYQZ3M.js +106 -0
  270. package/dist/summarizeMutationCnv-LB2BIYRL.js +162 -0
  271. package/dist/summarizeMutationDiagnosis-3JUY75LM.js +38 -0
  272. package/dist/summarizeMutationSurvival-VYLRWTCF.js +97 -0
  273. package/dist/summary-2QQ72IEQ.js +47 -0
  274. package/dist/summary.integration.spec-XXU362UQ.js +412 -0
  275. package/dist/summaryInput-OZHZG3PV.js +233 -0
  276. package/dist/sunburst-CMCJCANX.js +282 -0
  277. package/dist/survival-EBD4DHO7.js +44 -0
  278. package/dist/survival-ISLRRPKU.js +56 -0
  279. package/dist/survival.integration.spec-FS7V4OXK.js +800 -0
  280. package/dist/svgraph-KGLNUM7W.js +1385 -0
  281. package/dist/svmr-NXZ5VLKH.js +3840 -0
  282. package/dist/table-ISOQOI6C.js +198 -0
  283. package/dist/termCollection-7ZSU3I45.js +36 -0
  284. package/dist/termCollection-V2A5BDQB.js +177 -0
  285. package/dist/termCollection.unit.spec-6VLCJGOU.js +206 -0
  286. package/dist/tk-6AB6XYIE.js +44 -0
  287. package/dist/tp.ui-2O4UW5N7.js +1457 -0
  288. package/dist/tvs.dt-CY6TOQVB.js +37 -0
  289. package/dist/tvs.dtcnv.categorical-AYQ432TW.js +38 -0
  290. package/dist/tvs.dtcnv.continuous-XVDL6SG3.js +70 -0
  291. package/dist/tvs.dtfusion-V3AV7A6Q.js +38 -0
  292. package/dist/tvs.dtsnvindel-XM3NXIT7.js +38 -0
  293. package/dist/tvs.dtsv-Z2GYRINW.js +38 -0
  294. package/dist/tvs.samplelst-C4FB63G7.js +102 -0
  295. package/dist/tvs.termCollection-VHTSC2ST.js +157 -0
  296. package/dist/violin-KGGTUQFF.js +44 -0
  297. package/dist/violin.integration.spec-5EW6PLJX.js +1423 -0
  298. package/dist/violin.interactivity-RI4RURGO.js +36 -0
  299. package/dist/violin.renderer-EWU2IFZE.js +38 -0
  300. package/dist/vocabulary-VLIGC7OP.js +39 -0
  301. package/package.json +3 -3
  302. package/src/databrowser/dictionary.parse.js +14 -2
  303. package/dist/2dmaf-X7LATQT7.js +0 -1371
  304. package/dist/AIProjectAdmin-GUBKURGO.js +0 -830
  305. package/dist/AIProjectAdmin-GUBKURGO.js.map +0 -7
  306. package/dist/AppHeader-RDOFP322.js +0 -833
  307. package/dist/BoxPlot-AZF2EMGQ.js +0 -1217
  308. package/dist/CorrelationVolcano-VXW35SXU.js +0 -617
  309. package/dist/DE-NLGMZ44O.js +0 -93
  310. package/dist/DEinput-OJ7P4UMP.js +0 -297
  311. package/dist/DEinput-OJ7P4UMP.js.map +0 -7
  312. package/dist/DifferentialAnalysis-G75VUHDI.js +0 -241
  313. package/dist/Disco-DX4S44SI.js +0 -3235
  314. package/dist/Disco.UI-5FYIACCU.js +0 -242
  315. package/dist/DmrPlot-HWYITHK2.js +0 -640
  316. package/dist/GB-DBTMRVYH.js +0 -1125
  317. package/dist/GB-DBTMRVYH.js.map +0 -7
  318. package/dist/GeneExpInput-DWB7OYT2.js +0 -335
  319. package/dist/GeneExpInput-DWB7OYT2.js.map +0 -7
  320. package/dist/HicApp-XPZVZXB7.js +0 -2248
  321. package/dist/NumBinaryEditor-M6MJYIHK.js +0 -268
  322. package/dist/NumBinaryEditor.unit.spec-W6MMYDAW.js +0 -284
  323. package/dist/NumContEditor-YRVENTS5.js +0 -105
  324. package/dist/NumContEditor.unit.spec-A6OH4TI7.js +0 -167
  325. package/dist/NumCustomBinEditor-BLBOYSCQ.js +0 -36
  326. package/dist/NumCustomBinEditor.unit.spec-55V5CKLB.js +0 -282
  327. package/dist/NumDiscreteEditor-DTRM6VL2.js +0 -177
  328. package/dist/NumDiscreteEditor.unit.spec-YMB6QRER.js +0 -200
  329. package/dist/NumRegularBinEditor-XW4SVA7S.js +0 -36
  330. package/dist/NumRegularBinEditor.unit.spec-VAHC3VOD.js +0 -225
  331. package/dist/NumSplineEditor-H22HTRFR.js +0 -190
  332. package/dist/NumSplineEditor.unit.spec-4JUADXZR.js +0 -197
  333. package/dist/NumericDensity-ECSZCQRX.js +0 -36
  334. package/dist/NumericDensity.unit.spec-SXXCXM4X.js +0 -219
  335. package/dist/NumericHandler-CMBN3FZX.js +0 -37
  336. package/dist/NumericHandler.unit.spec-UYTJG2Z2.js +0 -217
  337. package/dist/RunChart2-MVFWLXZX.js +0 -756
  338. package/dist/SC-BRC3J2O4.js +0 -797
  339. package/dist/SC-BRC3J2O4.js.map +0 -7
  340. package/dist/Volcano-WMNFZSX2.js +0 -1234
  341. package/dist/Volcano-WMNFZSX2.js.map +0 -7
  342. package/dist/WSIViewer-2Z636FMA.js +0 -47971
  343. package/dist/WsiSamplesPlot-LN75PND3.js +0 -163
  344. package/dist/adSandbox-AJ7QUDOI.js +0 -36
  345. package/dist/alphaGenome-PVCRXAQK.js +0 -173
  346. package/dist/app-DWYCAFRP.js +0 -47
  347. package/dist/app-RENXV7VR.js +0 -35
  348. package/dist/bam-5G6IT6OX.js +0 -857
  349. package/dist/barchart-MLCCU6SU.js +0 -45
  350. package/dist/barchart.events-B6HQTLK2.js +0 -45
  351. package/dist/barchart.integration.spec-S43A7C7N.js +0 -1675
  352. package/dist/barchart2-QMKEN6MN.js +0 -309
  353. package/dist/block-IGBB4BJH.js +0 -6200
  354. package/dist/block.init-NLCYAKV4.js +0 -36
  355. package/dist/block.mds.expressionrank-TZWGRDY7.js +0 -357
  356. package/dist/block.mds.geneboxplot-OAFROYDL.js +0 -826
  357. package/dist/block.mds.junction-NSLXTW3D.js +0 -1543
  358. package/dist/block.mds.svcnv-ICPG4BW6.js +0 -6799
  359. package/dist/block.svg-DTFVIAAC.js +0 -162
  360. package/dist/block.tk.aicheck-ZIMIBWHA.js +0 -281
  361. package/dist/block.tk.ase-I7UNK5BK.js +0 -363
  362. package/dist/block.tk.bam-W7JG46RS.js +0 -1904
  363. package/dist/block.tk.bedgraphdot-XAQJPKGJ.js +0 -382
  364. package/dist/block.tk.bigwig.ui-YQOJPJSG.js +0 -209
  365. package/dist/block.tk.hicstraw-OWWGGCHU.js +0 -821
  366. package/dist/block.tk.junction-V63ZQQX6.js +0 -2362
  367. package/dist/block.tk.junction.textmatrixui-B7KXX7WN.js +0 -197
  368. package/dist/block.tk.ld-2J6CT74S.js +0 -97
  369. package/dist/block.tk.menu-6AQLG7PW.js +0 -1027
  370. package/dist/block.tk.pgv-4V6PKVCQ.js +0 -942
  371. package/dist/brainImaging-WRBGYLHK.js +0 -421
  372. package/dist/chat-X2BCTEDF.js +0 -148
  373. package/dist/chat-X2BCTEDF.js.map +0 -7
  374. package/dist/chunk-23VG37CB.js +0 -1939
  375. package/dist/chunk-23VG37CB.js.map +0 -7
  376. package/dist/chunk-2VOHINOC.js +0 -262
  377. package/dist/chunk-2VOHINOC.js.map +0 -7
  378. package/dist/chunk-3AK6GP4M.js +0 -215
  379. package/dist/chunk-3B7EWIVB.js +0 -153
  380. package/dist/chunk-3JAC5CHL.js +0 -407
  381. package/dist/chunk-3QBZ2Y77.js +0 -188
  382. package/dist/chunk-3QBZ2Y77.js.map +0 -7
  383. package/dist/chunk-3T2PCWII.js +0 -442
  384. package/dist/chunk-4BTAI6HQ.js +0 -100
  385. package/dist/chunk-4JVNATQR.js +0 -621
  386. package/dist/chunk-4ZCR6CPK.js +0 -4964
  387. package/dist/chunk-4ZCR6CPK.js.map +0 -7
  388. package/dist/chunk-5MW5VMWD.js +0 -2784
  389. package/dist/chunk-5ZBEDKBD.js +0 -158
  390. package/dist/chunk-65YTZS3R.js +0 -203
  391. package/dist/chunk-6ZCHECOT.js +0 -1816
  392. package/dist/chunk-6ZCHECOT.js.map +0 -7
  393. package/dist/chunk-73ZT6NAT.js +0 -34
  394. package/dist/chunk-7HJ6H7AZ.js +0 -2681
  395. package/dist/chunk-AFXYPMFZ.js +0 -117
  396. package/dist/chunk-BL4ALBZ7.js +0 -37
  397. package/dist/chunk-BRCDZJBQ.js +0 -824
  398. package/dist/chunk-EBGX226R.js +0 -205
  399. package/dist/chunk-EHXI36HJ.js +0 -2815
  400. package/dist/chunk-ENP4FLOX.js +0 -293
  401. package/dist/chunk-FDOSJKDA.js +0 -1209
  402. package/dist/chunk-FDOSJKDA.js.map +0 -7
  403. package/dist/chunk-HP2BASCY.js +0 -1159
  404. package/dist/chunk-HP2BASCY.js.map +0 -7
  405. package/dist/chunk-HROKXT4K.js +0 -14
  406. package/dist/chunk-HTMXVOTH.js +0 -482
  407. package/dist/chunk-IA7S4UL5.js +0 -302
  408. package/dist/chunk-JFIOYO3M.js +0 -272
  409. package/dist/chunk-JMJW3ERE.js +0 -470
  410. package/dist/chunk-K7XWZSQA.js +0 -148
  411. package/dist/chunk-KSN3EVKI.js +0 -102
  412. package/dist/chunk-L5SOHZ5V.js +0 -229
  413. package/dist/chunk-LMGE54CQ.js +0 -54
  414. package/dist/chunk-LOMVTHAM.js +0 -95
  415. package/dist/chunk-MSW7OS2O.js +0 -276
  416. package/dist/chunk-MVCGSYS2.js +0 -50
  417. package/dist/chunk-N2HBIQKU.js +0 -102
  418. package/dist/chunk-NL3DVEVX.js +0 -158
  419. package/dist/chunk-O4WJSZC3.js +0 -1087
  420. package/dist/chunk-OLUDD6EC.js +0 -2370
  421. package/dist/chunk-OVPVPPRG.js +0 -55
  422. package/dist/chunk-OYEISJSJ.js +0 -289
  423. package/dist/chunk-OYEISJSJ.js.map +0 -7
  424. package/dist/chunk-P2JDCMXW.js +0 -4207
  425. package/dist/chunk-PMDXCESS.js +0 -514
  426. package/dist/chunk-PXYYICV7.js +0 -1271
  427. package/dist/chunk-PZ3KIUWJ.js +0 -56
  428. package/dist/chunk-QEWMCAJW.js +0 -335
  429. package/dist/chunk-QLWDUZ5K.js +0 -129
  430. package/dist/chunk-QRSIID3T.js +0 -95
  431. package/dist/chunk-ST644IDH.js +0 -217
  432. package/dist/chunk-UOOMFM7K.js +0 -6364
  433. package/dist/chunk-VGHSLILD.js +0 -368
  434. package/dist/chunk-W35IOI74.js +0 -228
  435. package/dist/chunk-XKF4KMCB.js +0 -146
  436. package/dist/chunk-XKF4KMCB.js.map +0 -7
  437. package/dist/chunk-XVDWYTJ6.js +0 -676
  438. package/dist/chunk-YQVEBFGT.js +0 -455
  439. package/dist/chunk-YWUVCXFS.js +0 -20271
  440. package/dist/chunk-YWUVCXFS.js.map +0 -7
  441. package/dist/chunk-ZT3PB4XX.js +0 -1150
  442. package/dist/chunk-ZT3PB4XX.js.map +0 -7
  443. package/dist/chunk-ZVSXHCGP.js +0 -142
  444. package/dist/condition-CZX2GSN4.js +0 -330
  445. package/dist/controls-BQR3WY5W.js +0 -39
  446. package/dist/controls.config-TAVZDHFZ.js +0 -37
  447. package/dist/correlation-BIWVZNC6.js +0 -96
  448. package/dist/cuminc-EDXOOI5R.js +0 -1147
  449. package/dist/cuminc.integration.spec-UZA7BDTB.js +0 -676
  450. package/dist/customdata.inputui-PEB4CE7J.js +0 -287
  451. package/dist/dataDownload-KANEHJXJ.js +0 -328
  452. package/dist/dataDownload.integration.spec-23WLHSWJ.js +0 -191
  453. package/dist/databrowser.ui-B2TNECC4.js +0 -419
  454. package/dist/databrowser.ui-B2TNECC4.js.map +0 -7
  455. package/dist/dictionary-YOTUFVES.js +0 -109
  456. package/dist/dnaMethylation-TRFAZWRJ.js +0 -36
  457. package/dist/dnaMethylation.integration.spec-SPFZO76D.js +0 -201
  458. package/dist/dofetch-MH4MRMGY.js +0 -50
  459. package/dist/e2pca-AFVAFUJ2.js +0 -348
  460. package/dist/ep-4FXTLWB4.js +0 -1254
  461. package/dist/expclust.gdc.spec-SFOCKBLR.js +0 -305
  462. package/dist/facet-SY6PYSTN.js +0 -519
  463. package/dist/gb-JUV63QCN.js +0 -93
  464. package/dist/gb-JUV63QCN.js.map +0 -7
  465. package/dist/geneExpClustering-FOY77R7P.js +0 -247
  466. package/dist/geneExpression-AHKX57BT.js +0 -312
  467. package/dist/geneExpression-D2F2KVGY.js +0 -36
  468. package/dist/geneExpression.unit.spec-SR2BGZQL.js +0 -100
  469. package/dist/geneORA-VJMYI4BT.js +0 -276
  470. package/dist/geneVariant-LFM5SO2P.js +0 -37
  471. package/dist/geneVariant-OIKEV4JM.js +0 -39
  472. package/dist/geneVariant.integration.spec-T6BINPIN.js +0 -196
  473. package/dist/genefusion.ui-NLMW5XMI.js +0 -306
  474. package/dist/geneset-HKXFHM5K.js +0 -197
  475. package/dist/geneset-HKXFHM5K.js.map +0 -7
  476. package/dist/genomeBrowser.spec-DRYIFJLY.js +0 -279
  477. package/dist/grin2-GJKLNT4J.js +0 -1031
  478. package/dist/grin2-GJKLNT4J.js.map +0 -7
  479. package/dist/grin2-LGI535FF.js +0 -1554
  480. package/dist/gsea-Z7DSDFOA.js +0 -45
  481. package/dist/hierCluster-HC2B5XRR.js +0 -61
  482. package/dist/hierCluster-PLHVN5S3.js +0 -57
  483. package/dist/hierCluster.config-E3DIJWL5.js +0 -38
  484. package/dist/hierCluster.integration.spec-OQLPUQG4.js +0 -393
  485. package/dist/hierCluster.interactivity-LRNPDTEH.js +0 -52
  486. package/dist/imagePlot-GUXRGYQA.js +0 -139
  487. package/dist/imagePlot-GUXRGYQA.js.map +0 -7
  488. package/dist/importPlot-M5HGLHRO.js +0 -8
  489. package/dist/isoformExpression-PADLHHR5.js +0 -38
  490. package/dist/isoformExpression.unit.spec-5BPAL4OS.js +0 -206
  491. package/dist/launch.adhoc-JH6ZZFDB.js +0 -40
  492. package/dist/leftlabel.sample-NS2TBANH.js +0 -257
  493. package/dist/lollipop-W6NOHHCP.js +0 -166
  494. package/dist/lollipop-W6NOHHCP.js.map +0 -7
  495. package/dist/maf-NOHIKTUP.js +0 -450
  496. package/dist/maftimeline-WGWE52EF.js +0 -591
  497. package/dist/matrix-B6NPQFFF.js +0 -61
  498. package/dist/matrix-UAKRJL5A.js +0 -56
  499. package/dist/matrix.config-KJNJXPJJ.js +0 -39
  500. package/dist/matrix.integration.spec-VAXIR3E6.js +0 -3070
  501. package/dist/matrix.interactivity-H4MCMJXU.js +0 -40
  502. package/dist/matrix.layout-RFKQJM5D.js +0 -42
  503. package/dist/matrix.renderers-7JJIC6VC.js +0 -36
  504. package/dist/matrix.sort.unit.spec-MQQVWWNT.js +0 -470
  505. package/dist/matrix.sorterUi.unit.spec-LG4TI7VF.js +0 -340
  506. package/dist/mavb-EIZHS6F4.js +0 -730
  507. package/dist/mds.fimo-XVC6MI7W.js +0 -516
  508. package/dist/mds.samplescatterplot-PRR4TKYI.js +0 -1548
  509. package/dist/mds.survivalplot-3OG4Y2B6.js +0 -481
  510. package/dist/oncomatrix-SO6S6IIB.js +0 -293
  511. package/dist/oncomatrix.spec-VXTF44K5.js +0 -446
  512. package/dist/plot.2dvaf-JW5OJJXV.js +0 -375
  513. package/dist/plot.app-T3GVCFQ3.js +0 -39
  514. package/dist/plot.barplot-2TYP6DPI.js +0 -100
  515. package/dist/plot.boxplot-HOQHM7JF.js +0 -150
  516. package/dist/plot.brainImaging-5AI7BSD4.js +0 -51
  517. package/dist/plot.disco-HNNZHK5Z.js +0 -101
  518. package/dist/plot.dzi-4OQSO7SY.js +0 -33
  519. package/dist/plot.ssgq-VZTTGECT.js +0 -137
  520. package/dist/plot.vaf2cov-ASEELRDV.js +0 -257
  521. package/dist/plot.wsi-MDWYLU4R.js +0 -36
  522. package/dist/polar-QSY6JG4P.js +0 -184
  523. package/dist/polar2-FD6656VD.js +0 -226
  524. package/dist/profile.spec-V7EQBXT2.js +0 -78
  525. package/dist/profileBarchart-EIKHZAPD.js +0 -265
  526. package/dist/profileForms-NGFRXPFF.js +0 -438
  527. package/dist/profilePlot-2UFKJ2OC.js +0 -52
  528. package/dist/profileRadar-B2R7OV5F.js +0 -261
  529. package/dist/profileRadarFacility-ILC7POCI.js +0 -261
  530. package/dist/proteinView-AS6ZV2JT.js +0 -758
  531. package/dist/proteinView-AS6ZV2JT.js.map +0 -7
  532. package/dist/proteomeAbundance-6J5YF4V2.js +0 -63
  533. package/dist/proteomeAbundance-6J5YF4V2.js.map +0 -7
  534. package/dist/proteomeAbundance-OF27N347.js +0 -21
  535. package/dist/qualitative-CSUO2WG5.js +0 -41
  536. package/dist/radar2-L2HGCUYR.js +0 -314
  537. package/dist/radarFacility2-HXUUTRYO.js +0 -323
  538. package/dist/regression-Y4NYGZSA.js +0 -54
  539. package/dist/regression.inputs-RWFIJLNF.js +0 -46
  540. package/dist/regression.inputs.term-QIU5SHTN.js +0 -46
  541. package/dist/regression.inputs.values.table-FM6QTSEV.js +0 -43
  542. package/dist/regression.integration.spec-YRKKU7HL.js +0 -782
  543. package/dist/regression.results-YUDCHUZJ.js +0 -38
  544. package/dist/regression.spec-G4GIIV32.js +0 -706
  545. package/dist/report-2N4FBR4Q.js +0 -220
  546. package/dist/sampleScatter.spec-UIUYO4WR.js +0 -200
  547. package/dist/sampleView-TOK5Y5KU.js +0 -46
  548. package/dist/samplelst-YW5ZS3GJ.js +0 -109
  549. package/dist/samplematrix-447BHSO7.js +0 -2196
  550. package/dist/sc-O2PL3FL2.js +0 -84
  551. package/dist/scatter-4DXHOWVY.js +0 -800
  552. package/dist/scatter.integration.spec-ZPTM3AGQ.js +0 -1194
  553. package/dist/selectGenomeWithTklst-3RLZFW62.js +0 -132
  554. package/dist/singleCellCellType-3LQJXS7H.js +0 -36
  555. package/dist/singleCellCellType.unit.spec-UJM72SP4.js +0 -158
  556. package/dist/singleCellGeneExpression-JOWJWPIQ.js +0 -36
  557. package/dist/singleCellGeneExpression.unit.spec-VY5CGRZH.js +0 -151
  558. package/dist/singleCellPlot-IVLVKOO6.js +0 -51
  559. package/dist/singlecell-VJJZJZF7.js +0 -1570
  560. package/dist/singlecell-VQJ2252L.js +0 -84
  561. package/dist/snp-ALMKZKL2.js +0 -36
  562. package/dist/snp.unit.spec-GJQBAHGQ.js +0 -174
  563. package/dist/snplocus-WCNCMFWZ.js +0 -206
  564. package/dist/spliceevent.a53ss.diagram-4Q4JF4RX.js +0 -149
  565. package/dist/spliceevent.exonskip.diagram-IOYOKELT.js +0 -275
  566. package/dist/spliceevent.noeventdiagram-77ZCOHSF.js +0 -458
  567. package/dist/ssGSEA-QTXXIN4K.js +0 -36
  568. package/dist/ssGSEA.unit.spec-LQESATT3.js +0 -86
  569. package/dist/summarizeCnvGeneexp-YKUQGDQF.js +0 -161
  570. package/dist/summarizeGeneexpSurvival-ARGG5VDC.js +0 -106
  571. package/dist/summarizeMutationCnv-FMZYT3EC.js +0 -162
  572. package/dist/summarizeMutationDiagnosis-ZX7I46SC.js +0 -38
  573. package/dist/summarizeMutationSurvival-RCFMTT43.js +0 -97
  574. package/dist/summary-QLL5YVI2.js +0 -47
  575. package/dist/summary.integration.spec-DHY6XCEJ.js +0 -412
  576. package/dist/summaryInput-ANCUQGIB.js +0 -233
  577. package/dist/sunburst-RDNFBOCK.js +0 -282
  578. package/dist/survival-BG7QV52L.js +0 -44
  579. package/dist/survival-WSN36OQE.js +0 -56
  580. package/dist/survival.integration.spec-37KAJ5IK.js +0 -800
  581. package/dist/svgraph-A5WGHW4S.js +0 -1385
  582. package/dist/svmr-CYRHHWZF.js +0 -3840
  583. package/dist/table-VHO7E5PI.js +0 -198
  584. package/dist/termCollection-E4Q6GLXN.js +0 -177
  585. package/dist/termCollection-HSVSH7TJ.js +0 -36
  586. package/dist/termCollection.unit.spec-ZCE3TUMS.js +0 -206
  587. package/dist/tk-GPRHDN4K.js +0 -44
  588. package/dist/tp.ui-LTUA3FSL.js +0 -1457
  589. package/dist/tvs.dt-G43PAAKD.js +0 -37
  590. package/dist/tvs.dtcnv.categorical-UHDS2TGZ.js +0 -38
  591. package/dist/tvs.dtcnv.continuous-ZNGYQKTD.js +0 -70
  592. package/dist/tvs.dtfusion-JBEEUDUS.js +0 -38
  593. package/dist/tvs.dtsnvindel-XXN5Q7RN.js +0 -38
  594. package/dist/tvs.dtsv-MO6L7HHV.js +0 -38
  595. package/dist/tvs.samplelst-HKY6UUJM.js +0 -102
  596. package/dist/tvs.termCollection-TY6FPL25.js +0 -157
  597. package/dist/violin-YHE3WSGR.js +0 -44
  598. package/dist/violin.integration.spec-F2UD7BHC.js +0 -1423
  599. package/dist/violin.interactivity-LVDTDEPQ.js +0 -36
  600. package/dist/violin.renderer-IIEIUGRI.js +0 -38
  601. package/dist/vocabulary-WQRYXBRO.js +0 -39
  602. /package/dist/{2dmaf-X7LATQT7.js.map → 2dmaf-F5QNP7AQ.js.map} +0 -0
  603. /package/dist/{AppHeader-RDOFP322.js.map → AppHeader-STVCDLET.js.map} +0 -0
  604. /package/dist/{BoxPlot-AZF2EMGQ.js.map → BoxPlot-CU7MEBH7.js.map} +0 -0
  605. /package/dist/{CorrelationVolcano-VXW35SXU.js.map → CorrelationVolcano-OE4R2GS3.js.map} +0 -0
  606. /package/dist/{DE-NLGMZ44O.js.map → DE-SR7PJPKI.js.map} +0 -0
  607. /package/dist/{DifferentialAnalysis-G75VUHDI.js.map → DifferentialAnalysis-UWTYK7NU.js.map} +0 -0
  608. /package/dist/{Disco-DX4S44SI.js.map → Disco-IL6REGSA.js.map} +0 -0
  609. /package/dist/{Disco.UI-5FYIACCU.js.map → Disco.UI-JHHLS5BA.js.map} +0 -0
  610. /package/dist/{DmrPlot-HWYITHK2.js.map → DmrPlot-DDP53T3F.js.map} +0 -0
  611. /package/dist/{HicApp-XPZVZXB7.js.map → HicApp-RVFHTYED.js.map} +0 -0
  612. /package/dist/{NumBinaryEditor-M6MJYIHK.js.map → NumBinaryEditor-B3FXQAOH.js.map} +0 -0
  613. /package/dist/{NumBinaryEditor.unit.spec-W6MMYDAW.js.map → NumBinaryEditor.unit.spec-75YQJ2U6.js.map} +0 -0
  614. /package/dist/{NumContEditor-YRVENTS5.js.map → NumContEditor-5PYW3OLY.js.map} +0 -0
  615. /package/dist/{NumContEditor.unit.spec-A6OH4TI7.js.map → NumContEditor.unit.spec-F7ZRDGBN.js.map} +0 -0
  616. /package/dist/{NumCustomBinEditor-BLBOYSCQ.js.map → NumCustomBinEditor-TBT6GLYQ.js.map} +0 -0
  617. /package/dist/{NumCustomBinEditor.unit.spec-55V5CKLB.js.map → NumCustomBinEditor.unit.spec-6YHU45XV.js.map} +0 -0
  618. /package/dist/{NumDiscreteEditor-DTRM6VL2.js.map → NumDiscreteEditor-N6OJYSJA.js.map} +0 -0
  619. /package/dist/{NumDiscreteEditor.unit.spec-YMB6QRER.js.map → NumDiscreteEditor.unit.spec-HQS5RZ6R.js.map} +0 -0
  620. /package/dist/{NumRegularBinEditor-XW4SVA7S.js.map → NumRegularBinEditor-HSDDKVNG.js.map} +0 -0
  621. /package/dist/{NumRegularBinEditor.unit.spec-VAHC3VOD.js.map → NumRegularBinEditor.unit.spec-33KN2MVM.js.map} +0 -0
  622. /package/dist/{NumSplineEditor-H22HTRFR.js.map → NumSplineEditor-XERKOACS.js.map} +0 -0
  623. /package/dist/{NumSplineEditor.unit.spec-4JUADXZR.js.map → NumSplineEditor.unit.spec-MPVM6KSC.js.map} +0 -0
  624. /package/dist/{NumericDensity-ECSZCQRX.js.map → NumericDensity-35EKYW3V.js.map} +0 -0
  625. /package/dist/{NumericDensity.unit.spec-SXXCXM4X.js.map → NumericDensity.unit.spec-OR24PPRJ.js.map} +0 -0
  626. /package/dist/{NumericHandler-CMBN3FZX.js.map → NumericHandler-D6ZNGRE3.js.map} +0 -0
  627. /package/dist/{NumericHandler.unit.spec-UYTJG2Z2.js.map → NumericHandler.unit.spec-EKPGVSXI.js.map} +0 -0
  628. /package/dist/{RunChart2-MVFWLXZX.js.map → RunChart2-7DOXOFXV.js.map} +0 -0
  629. /package/dist/{WSIViewer-2Z636FMA.js.map → WSIViewer-E247ELKN.js.map} +0 -0
  630. /package/dist/{WsiSamplesPlot-LN75PND3.js.map → WsiSamplesPlot-3522VRB5.js.map} +0 -0
  631. /package/dist/{adSandbox-AJ7QUDOI.js.map → adSandbox-IDFY5P2P.js.map} +0 -0
  632. /package/dist/{alphaGenome-PVCRXAQK.js.map → alphaGenome-F3W7GJQ5.js.map} +0 -0
  633. /package/dist/{app-DWYCAFRP.js.map → app-2HDSFMRM.js.map} +0 -0
  634. /package/dist/{app-RENXV7VR.js.map → app-LIWPFL7C.js.map} +0 -0
  635. /package/dist/{bam-5G6IT6OX.js.map → bam-TBHHSATL.js.map} +0 -0
  636. /package/dist/{barchart-MLCCU6SU.js.map → barchart-HHFCBOZE.js.map} +0 -0
  637. /package/dist/{barchart.events-B6HQTLK2.js.map → barchart.events-UQUSSRXB.js.map} +0 -0
  638. /package/dist/{barchart.integration.spec-S43A7C7N.js.map → barchart.integration.spec-OF3MWFQ5.js.map} +0 -0
  639. /package/dist/{barchart2-QMKEN6MN.js.map → barchart2-XRMPCBBU.js.map} +0 -0
  640. /package/dist/{block-IGBB4BJH.js.map → block-5UEORHFB.js.map} +0 -0
  641. /package/dist/{block.init-NLCYAKV4.js.map → block.init-QSSFUVIT.js.map} +0 -0
  642. /package/dist/{block.mds.expressionrank-TZWGRDY7.js.map → block.mds.expressionrank-VBIIJHQF.js.map} +0 -0
  643. /package/dist/{block.mds.geneboxplot-OAFROYDL.js.map → block.mds.geneboxplot-KSBHXBNX.js.map} +0 -0
  644. /package/dist/{block.mds.junction-NSLXTW3D.js.map → block.mds.junction-FWZWMZJ2.js.map} +0 -0
  645. /package/dist/{block.mds.svcnv-ICPG4BW6.js.map → block.mds.svcnv-UXORVLH2.js.map} +0 -0
  646. /package/dist/{block.svg-DTFVIAAC.js.map → block.svg-6KIGW4QH.js.map} +0 -0
  647. /package/dist/{block.tk.aicheck-ZIMIBWHA.js.map → block.tk.aicheck-DK566Q4C.js.map} +0 -0
  648. /package/dist/{block.tk.ase-I7UNK5BK.js.map → block.tk.ase-2GB2VJJ6.js.map} +0 -0
  649. /package/dist/{block.tk.bam-W7JG46RS.js.map → block.tk.bam-RQNOLY52.js.map} +0 -0
  650. /package/dist/{block.tk.bedgraphdot-XAQJPKGJ.js.map → block.tk.bedgraphdot-N4YMZFO4.js.map} +0 -0
  651. /package/dist/{block.tk.bigwig.ui-YQOJPJSG.js.map → block.tk.bigwig.ui-4S7L7D7D.js.map} +0 -0
  652. /package/dist/{block.tk.hicstraw-OWWGGCHU.js.map → block.tk.hicstraw-AHFNQKCS.js.map} +0 -0
  653. /package/dist/{block.tk.junction-V63ZQQX6.js.map → block.tk.junction-7E6SNQMQ.js.map} +0 -0
  654. /package/dist/{block.tk.junction.textmatrixui-B7KXX7WN.js.map → block.tk.junction.textmatrixui-3C5JVYX5.js.map} +0 -0
  655. /package/dist/{block.tk.ld-2J6CT74S.js.map → block.tk.ld-TOUCLT3W.js.map} +0 -0
  656. /package/dist/{block.tk.menu-6AQLG7PW.js.map → block.tk.menu-JCV5ORD6.js.map} +0 -0
  657. /package/dist/{block.tk.pgv-4V6PKVCQ.js.map → block.tk.pgv-CUU22U6M.js.map} +0 -0
  658. /package/dist/{brainImaging-WRBGYLHK.js.map → brainImaging-MTQTXNNL.js.map} +0 -0
  659. /package/dist/{chunk-ENP4FLOX.js.map → chunk-2UYBBUXK.js.map} +0 -0
  660. /package/dist/{chunk-P2JDCMXW.js.map → chunk-2VPEFXEJ.js.map} +0 -0
  661. /package/dist/{chunk-OVPVPPRG.js.map → chunk-3QHIL3V3.js.map} +0 -0
  662. /package/dist/{chunk-QLWDUZ5K.js.map → chunk-44VXWKYJ.js.map} +0 -0
  663. /package/dist/{chunk-QRSIID3T.js.map → chunk-52D6EGUS.js.map} +0 -0
  664. /package/dist/{chunk-N2HBIQKU.js.map → chunk-5FHM3L4I.js.map} +0 -0
  665. /package/dist/{chunk-ZVSXHCGP.js.map → chunk-62TF2MCH.js.map} +0 -0
  666. /package/dist/{chunk-UOOMFM7K.js.map → chunk-67QM2NUK.js.map} +0 -0
  667. /package/dist/{chunk-XVDWYTJ6.js.map → chunk-6AAPHEWK.js.map} +0 -0
  668. /package/dist/{chunk-3B7EWIVB.js.map → chunk-6KPGMUHS.js.map} +0 -0
  669. /package/dist/{chunk-YQVEBFGT.js.map → chunk-6WBIZXNI.js.map} +0 -0
  670. /package/dist/{chunk-IA7S4UL5.js.map → chunk-7AAJVXEG.js.map} +0 -0
  671. /package/dist/{chunk-PXYYICV7.js.map → chunk-AFJRAR4N.js.map} +0 -0
  672. /package/dist/{chunk-K7XWZSQA.js.map → chunk-CVRYZMDE.js.map} +0 -0
  673. /package/dist/{chunk-MSW7OS2O.js.map → chunk-DGUTCYH2.js.map} +0 -0
  674. /package/dist/{chunk-5ZBEDKBD.js.map → chunk-DHNXATHC.js.map} +0 -0
  675. /package/dist/{chunk-L5SOHZ5V.js.map → chunk-E3BI23UK.js.map} +0 -0
  676. /package/dist/{chunk-4JVNATQR.js.map → chunk-E4JDHA3C.js.map} +0 -0
  677. /package/dist/{chunk-W35IOI74.js.map → chunk-FOJWYEGV.js.map} +0 -0
  678. /package/dist/{chunk-NL3DVEVX.js.map → chunk-FTN7Y34O.js.map} +0 -0
  679. /package/dist/{chunk-EHXI36HJ.js.map → chunk-GRG5MMPN.js.map} +0 -0
  680. /package/dist/{chunk-HTMXVOTH.js.map → chunk-GSU4PZN3.js.map} +0 -0
  681. /package/dist/{chunk-ST644IDH.js.map → chunk-IIRU2JLK.js.map} +0 -0
  682. /package/dist/{chunk-JFIOYO3M.js.map → chunk-JCB74ZSK.js.map} +0 -0
  683. /package/dist/{chunk-BRCDZJBQ.js.map → chunk-JUDWPYMA.js.map} +0 -0
  684. /package/dist/{chunk-O4WJSZC3.js.map → chunk-KT6VZBC7.js.map} +0 -0
  685. /package/dist/{chunk-OLUDD6EC.js.map → chunk-L2HBHFTK.js.map} +0 -0
  686. /package/dist/{chunk-VGHSLILD.js.map → chunk-LKADRF3Q.js.map} +0 -0
  687. /package/dist/{chunk-3JAC5CHL.js.map → chunk-MAXFRUGM.js.map} +0 -0
  688. /package/dist/{chunk-BL4ALBZ7.js.map → chunk-MQN7RYCK.js.map} +0 -0
  689. /package/dist/{chunk-JMJW3ERE.js.map → chunk-OEUI4CYZ.js.map} +0 -0
  690. /package/dist/{chunk-73ZT6NAT.js.map → chunk-OM36XUQL.js.map} +0 -0
  691. /package/dist/{chunk-LMGE54CQ.js.map → chunk-P5LNIH5X.js.map} +0 -0
  692. /package/dist/{chunk-KSN3EVKI.js.map → chunk-PG62PRMF.js.map} +0 -0
  693. /package/dist/{chunk-EBGX226R.js.map → chunk-Q3J3F2NU.js.map} +0 -0
  694. /package/dist/{chunk-AFXYPMFZ.js.map → chunk-RZBV6474.js.map} +0 -0
  695. /package/dist/{chunk-3T2PCWII.js.map → chunk-T5V4OC27.js.map} +0 -0
  696. /package/dist/{chunk-QEWMCAJW.js.map → chunk-UCKSUNSJ.js.map} +0 -0
  697. /package/dist/{chunk-PMDXCESS.js.map → chunk-W4TLYHZO.js.map} +0 -0
  698. /package/dist/{chunk-PZ3KIUWJ.js.map → chunk-WPZUXKIB.js.map} +0 -0
  699. /package/dist/{chunk-3AK6GP4M.js.map → chunk-XM47XD6G.js.map} +0 -0
  700. /package/dist/{chunk-MVCGSYS2.js.map → chunk-YZHGLSKQ.js.map} +0 -0
  701. /package/dist/{chunk-65YTZS3R.js.map → chunk-ZGOOZK3I.js.map} +0 -0
  702. /package/dist/{chunk-LOMVTHAM.js.map → chunk-ZH2VP6Q6.js.map} +0 -0
  703. /package/dist/{chunk-HROKXT4K.js.map → chunk-ZLOQXO5K.js.map} +0 -0
  704. /package/dist/{chunk-4BTAI6HQ.js.map → chunk-ZMNDBPJU.js.map} +0 -0
  705. /package/dist/{chunk-5MW5VMWD.js.map → chunk-ZRTW6X3F.js.map} +0 -0
  706. /package/dist/{chunk-7HJ6H7AZ.js.map → chunk-ZTT52MBP.js.map} +0 -0
  707. /package/dist/{condition-CZX2GSN4.js.map → condition-VUACUQYF.js.map} +0 -0
  708. /package/dist/{controls-BQR3WY5W.js.map → controls-N4MPSNO4.js.map} +0 -0
  709. /package/dist/{controls.config-TAVZDHFZ.js.map → controls.config-PRXVODCM.js.map} +0 -0
  710. /package/dist/{correlation-BIWVZNC6.js.map → correlation-QJZUYDFH.js.map} +0 -0
  711. /package/dist/{cuminc-EDXOOI5R.js.map → cuminc-JJHXW55V.js.map} +0 -0
  712. /package/dist/{cuminc.integration.spec-UZA7BDTB.js.map → cuminc.integration.spec-IXS2UO2O.js.map} +0 -0
  713. /package/dist/{customdata.inputui-PEB4CE7J.js.map → customdata.inputui-DUHO6M6I.js.map} +0 -0
  714. /package/dist/{dataDownload-KANEHJXJ.js.map → dataDownload-OFB7TYDB.js.map} +0 -0
  715. /package/dist/{dataDownload.integration.spec-23WLHSWJ.js.map → dataDownload.integration.spec-4HWDQO4C.js.map} +0 -0
  716. /package/dist/{dictionary-YOTUFVES.js.map → dictionary-BSKN37CP.js.map} +0 -0
  717. /package/dist/{dnaMethylation-TRFAZWRJ.js.map → dnaMethylation-5QNEEGC6.js.map} +0 -0
  718. /package/dist/{dnaMethylation.integration.spec-SPFZO76D.js.map → dnaMethylation.integration.spec-YIX3JSA7.js.map} +0 -0
  719. /package/dist/{dofetch-MH4MRMGY.js.map → dofetch-KFMGQY7G.js.map} +0 -0
  720. /package/dist/{e2pca-AFVAFUJ2.js.map → e2pca-VX42HDYZ.js.map} +0 -0
  721. /package/dist/{ep-4FXTLWB4.js.map → ep-B6ZNETLI.js.map} +0 -0
  722. /package/dist/{expclust.gdc.spec-SFOCKBLR.js.map → expclust.gdc.spec-SGECIILQ.js.map} +0 -0
  723. /package/dist/{facet-SY6PYSTN.js.map → facet-2W5SBPGP.js.map} +0 -0
  724. /package/dist/{geneExpClustering-FOY77R7P.js.map → geneExpClustering-6A7364T5.js.map} +0 -0
  725. /package/dist/{geneExpression-D2F2KVGY.js.map → geneExpression-NAM2UEYN.js.map} +0 -0
  726. /package/dist/{geneExpression-AHKX57BT.js.map → geneExpression-WF56ODMZ.js.map} +0 -0
  727. /package/dist/{geneExpression.unit.spec-SR2BGZQL.js.map → geneExpression.unit.spec-DNE2T3WI.js.map} +0 -0
  728. /package/dist/{geneORA-VJMYI4BT.js.map → geneORA-33FK2YOS.js.map} +0 -0
  729. /package/dist/{geneVariant-LFM5SO2P.js.map → geneVariant-C7PCNBOQ.js.map} +0 -0
  730. /package/dist/{geneVariant-OIKEV4JM.js.map → geneVariant-REELFRRA.js.map} +0 -0
  731. /package/dist/{geneVariant.integration.spec-T6BINPIN.js.map → geneVariant.integration.spec-GNXUGDKL.js.map} +0 -0
  732. /package/dist/{genefusion.ui-NLMW5XMI.js.map → genefusion.ui-WO5EPJDS.js.map} +0 -0
  733. /package/dist/{genomeBrowser.spec-DRYIFJLY.js.map → genomeBrowser.spec-VPAKTUJF.js.map} +0 -0
  734. /package/dist/{grin2-LGI535FF.js.map → grin2-GYHUYNEF.js.map} +0 -0
  735. /package/dist/{gsea-Z7DSDFOA.js.map → gsea-PE5WZ5ZI.js.map} +0 -0
  736. /package/dist/{hierCluster-HC2B5XRR.js.map → hierCluster-FH6YJHRT.js.map} +0 -0
  737. /package/dist/{hierCluster-PLHVN5S3.js.map → hierCluster-IFM5I5QN.js.map} +0 -0
  738. /package/dist/{hierCluster.config-E3DIJWL5.js.map → hierCluster.config-M57ZIWMB.js.map} +0 -0
  739. /package/dist/{hierCluster.integration.spec-OQLPUQG4.js.map → hierCluster.integration.spec-Z64RL7MC.js.map} +0 -0
  740. /package/dist/{hierCluster.interactivity-LRNPDTEH.js.map → hierCluster.interactivity-CDBAJXOY.js.map} +0 -0
  741. /package/dist/{importPlot-M5HGLHRO.js.map → importPlot-OWKXSK77.js.map} +0 -0
  742. /package/dist/{isoformExpression-PADLHHR5.js.map → isoformExpression-66XLJG73.js.map} +0 -0
  743. /package/dist/{isoformExpression.unit.spec-5BPAL4OS.js.map → isoformExpression.unit.spec-QJX2IRHL.js.map} +0 -0
  744. /package/dist/{launch.adhoc-JH6ZZFDB.js.map → launch.adhoc-JCWID253.js.map} +0 -0
  745. /package/dist/{leftlabel.sample-NS2TBANH.js.map → leftlabel.sample-5NZ6VQDN.js.map} +0 -0
  746. /package/dist/{maf-NOHIKTUP.js.map → maf-HIS2FQXK.js.map} +0 -0
  747. /package/dist/{maftimeline-WGWE52EF.js.map → maftimeline-UPJJQE23.js.map} +0 -0
  748. /package/dist/{matrix-B6NPQFFF.js.map → matrix-62CN2KXR.js.map} +0 -0
  749. /package/dist/{matrix-UAKRJL5A.js.map → matrix-SPEDEB3J.js.map} +0 -0
  750. /package/dist/{matrix.config-KJNJXPJJ.js.map → matrix.config-XB6WFXUY.js.map} +0 -0
  751. /package/dist/{matrix.integration.spec-VAXIR3E6.js.map → matrix.integration.spec-NN7OR5XM.js.map} +0 -0
  752. /package/dist/{matrix.interactivity-H4MCMJXU.js.map → matrix.interactivity-OWMHUJCX.js.map} +0 -0
  753. /package/dist/{matrix.layout-RFKQJM5D.js.map → matrix.layout-27QB6MWK.js.map} +0 -0
  754. /package/dist/{matrix.renderers-7JJIC6VC.js.map → matrix.renderers-EPXES5E4.js.map} +0 -0
  755. /package/dist/{matrix.sort.unit.spec-MQQVWWNT.js.map → matrix.sort.unit.spec-NBT5FSZ6.js.map} +0 -0
  756. /package/dist/{matrix.sorterUi.unit.spec-LG4TI7VF.js.map → matrix.sorterUi.unit.spec-QKGUE4RR.js.map} +0 -0
  757. /package/dist/{mavb-EIZHS6F4.js.map → mavb-M7Y74OWQ.js.map} +0 -0
  758. /package/dist/{mds.fimo-XVC6MI7W.js.map → mds.fimo-WCDFA7HG.js.map} +0 -0
  759. /package/dist/{mds.samplescatterplot-PRR4TKYI.js.map → mds.samplescatterplot-ZDHQ3MKJ.js.map} +0 -0
  760. /package/dist/{mds.survivalplot-3OG4Y2B6.js.map → mds.survivalplot-R74DL2RA.js.map} +0 -0
  761. /package/dist/{oncomatrix-SO6S6IIB.js.map → oncomatrix-MOITJBII.js.map} +0 -0
  762. /package/dist/{oncomatrix.spec-VXTF44K5.js.map → oncomatrix.spec-NALJBPYS.js.map} +0 -0
  763. /package/dist/{plot.2dvaf-JW5OJJXV.js.map → plot.2dvaf-IE2EZEFA.js.map} +0 -0
  764. /package/dist/{plot.app-T3GVCFQ3.js.map → plot.app-HTW6TZEH.js.map} +0 -0
  765. /package/dist/{plot.barplot-2TYP6DPI.js.map → plot.barplot-NCQEPEOY.js.map} +0 -0
  766. /package/dist/{plot.boxplot-HOQHM7JF.js.map → plot.boxplot-WNKVBVJJ.js.map} +0 -0
  767. /package/dist/{plot.brainImaging-5AI7BSD4.js.map → plot.brainImaging-2Z3TOO6J.js.map} +0 -0
  768. /package/dist/{plot.disco-HNNZHK5Z.js.map → plot.disco-4JAEIAYK.js.map} +0 -0
  769. /package/dist/{plot.dzi-4OQSO7SY.js.map → plot.dzi-ZGLOVJJN.js.map} +0 -0
  770. /package/dist/{plot.ssgq-VZTTGECT.js.map → plot.ssgq-IHUILM43.js.map} +0 -0
  771. /package/dist/{plot.vaf2cov-ASEELRDV.js.map → plot.vaf2cov-ZYCQMD27.js.map} +0 -0
  772. /package/dist/{plot.wsi-MDWYLU4R.js.map → plot.wsi-3GISVBDH.js.map} +0 -0
  773. /package/dist/{polar-QSY6JG4P.js.map → polar-4AUAZHBV.js.map} +0 -0
  774. /package/dist/{polar2-FD6656VD.js.map → polar2-SRD4WWXU.js.map} +0 -0
  775. /package/dist/{profile.spec-V7EQBXT2.js.map → profile.spec-TOITKBBZ.js.map} +0 -0
  776. /package/dist/{profileBarchart-EIKHZAPD.js.map → profileBarchart-Z4SYIYBE.js.map} +0 -0
  777. /package/dist/{profileForms-NGFRXPFF.js.map → profileForms-RA7XQ2QT.js.map} +0 -0
  778. /package/dist/{profilePlot-2UFKJ2OC.js.map → profilePlot-4BM3XZVK.js.map} +0 -0
  779. /package/dist/{profileRadar-B2R7OV5F.js.map → profileRadar-EYBESEPI.js.map} +0 -0
  780. /package/dist/{profileRadarFacility-ILC7POCI.js.map → profileRadarFacility-FZYTFM26.js.map} +0 -0
  781. /package/dist/{proteomeAbundance-OF27N347.js.map → proteomeAbundance-65R6M4YQ.js.map} +0 -0
  782. /package/dist/{qualitative-CSUO2WG5.js.map → qualitative-E7WL6DN4.js.map} +0 -0
  783. /package/dist/{radar2-L2HGCUYR.js.map → radar2-I6FN5SUX.js.map} +0 -0
  784. /package/dist/{radarFacility2-HXUUTRYO.js.map → radarFacility2-GVK7PT3V.js.map} +0 -0
  785. /package/dist/{regression-Y4NYGZSA.js.map → regression-TIR5D354.js.map} +0 -0
  786. /package/dist/{regression.inputs-RWFIJLNF.js.map → regression.inputs-2AMJCJ3L.js.map} +0 -0
  787. /package/dist/{regression.inputs.term-QIU5SHTN.js.map → regression.inputs.term-D6D2QEUB.js.map} +0 -0
  788. /package/dist/{regression.inputs.values.table-FM6QTSEV.js.map → regression.inputs.values.table-M3IPLGDJ.js.map} +0 -0
  789. /package/dist/{regression.integration.spec-YRKKU7HL.js.map → regression.integration.spec-ROUSXLMH.js.map} +0 -0
  790. /package/dist/{regression.results-YUDCHUZJ.js.map → regression.results-YD5S74YS.js.map} +0 -0
  791. /package/dist/{regression.spec-G4GIIV32.js.map → regression.spec-4OXBBTNO.js.map} +0 -0
  792. /package/dist/{report-2N4FBR4Q.js.map → report-ETNALKTY.js.map} +0 -0
  793. /package/dist/{sampleScatter.spec-UIUYO4WR.js.map → sampleScatter.spec-LECMFMI2.js.map} +0 -0
  794. /package/dist/{sampleView-TOK5Y5KU.js.map → sampleView-B5TM7JOW.js.map} +0 -0
  795. /package/dist/{samplelst-YW5ZS3GJ.js.map → samplelst-GFQCG4SS.js.map} +0 -0
  796. /package/dist/{samplematrix-447BHSO7.js.map → samplematrix-OMTNWCJK.js.map} +0 -0
  797. /package/dist/{sc-O2PL3FL2.js.map → sc-MIEEZBWG.js.map} +0 -0
  798. /package/dist/{scatter-4DXHOWVY.js.map → scatter-ETOZ722F.js.map} +0 -0
  799. /package/dist/{scatter.integration.spec-ZPTM3AGQ.js.map → scatter.integration.spec-TS4PNRLX.js.map} +0 -0
  800. /package/dist/{selectGenomeWithTklst-3RLZFW62.js.map → selectGenomeWithTklst-Y5QIM2JB.js.map} +0 -0
  801. /package/dist/{singleCellCellType-3LQJXS7H.js.map → singleCellCellType-HOJHZF5W.js.map} +0 -0
  802. /package/dist/{singleCellCellType.unit.spec-UJM72SP4.js.map → singleCellCellType.unit.spec-MH5V3RPX.js.map} +0 -0
  803. /package/dist/{singleCellGeneExpression-JOWJWPIQ.js.map → singleCellGeneExpression-YVQ5TIKN.js.map} +0 -0
  804. /package/dist/{singleCellGeneExpression.unit.spec-VY5CGRZH.js.map → singleCellGeneExpression.unit.spec-BMFFT5HO.js.map} +0 -0
  805. /package/dist/{singleCellPlot-IVLVKOO6.js.map → singleCellPlot-3YFUYA2Y.js.map} +0 -0
  806. /package/dist/{singlecell-VJJZJZF7.js.map → singlecell-FK5JETW5.js.map} +0 -0
  807. /package/dist/{singlecell-VQJ2252L.js.map → singlecell-RL7V7DIC.js.map} +0 -0
  808. /package/dist/{snp-ALMKZKL2.js.map → snp-FT7HB3XN.js.map} +0 -0
  809. /package/dist/{snp.unit.spec-GJQBAHGQ.js.map → snp.unit.spec-CLYVYPPG.js.map} +0 -0
  810. /package/dist/{snplocus-WCNCMFWZ.js.map → snplocus-M5SEQGAC.js.map} +0 -0
  811. /package/dist/{spliceevent.a53ss.diagram-4Q4JF4RX.js.map → spliceevent.a53ss.diagram-EJ5CTRCZ.js.map} +0 -0
  812. /package/dist/{spliceevent.exonskip.diagram-IOYOKELT.js.map → spliceevent.exonskip.diagram-ETXMOHZ3.js.map} +0 -0
  813. /package/dist/{spliceevent.noeventdiagram-77ZCOHSF.js.map → spliceevent.noeventdiagram-S2O4ZM2Z.js.map} +0 -0
  814. /package/dist/{ssGSEA-QTXXIN4K.js.map → ssGSEA-6PMDQDTJ.js.map} +0 -0
  815. /package/dist/{ssGSEA.unit.spec-LQESATT3.js.map → ssGSEA.unit.spec-JD5T4R2N.js.map} +0 -0
  816. /package/dist/{summarizeCnvGeneexp-YKUQGDQF.js.map → summarizeCnvGeneexp-GCHNKTIU.js.map} +0 -0
  817. /package/dist/{summarizeGeneexpSurvival-ARGG5VDC.js.map → summarizeGeneexpSurvival-R2RYQZ3M.js.map} +0 -0
  818. /package/dist/{summarizeMutationCnv-FMZYT3EC.js.map → summarizeMutationCnv-LB2BIYRL.js.map} +0 -0
  819. /package/dist/{summarizeMutationDiagnosis-ZX7I46SC.js.map → summarizeMutationDiagnosis-3JUY75LM.js.map} +0 -0
  820. /package/dist/{summarizeMutationSurvival-RCFMTT43.js.map → summarizeMutationSurvival-VYLRWTCF.js.map} +0 -0
  821. /package/dist/{summary-QLL5YVI2.js.map → summary-2QQ72IEQ.js.map} +0 -0
  822. /package/dist/{summary.integration.spec-DHY6XCEJ.js.map → summary.integration.spec-XXU362UQ.js.map} +0 -0
  823. /package/dist/{summaryInput-ANCUQGIB.js.map → summaryInput-OZHZG3PV.js.map} +0 -0
  824. /package/dist/{sunburst-RDNFBOCK.js.map → sunburst-CMCJCANX.js.map} +0 -0
  825. /package/dist/{survival-BG7QV52L.js.map → survival-EBD4DHO7.js.map} +0 -0
  826. /package/dist/{survival-WSN36OQE.js.map → survival-ISLRRPKU.js.map} +0 -0
  827. /package/dist/{survival.integration.spec-37KAJ5IK.js.map → survival.integration.spec-FS7V4OXK.js.map} +0 -0
  828. /package/dist/{svgraph-A5WGHW4S.js.map → svgraph-KGLNUM7W.js.map} +0 -0
  829. /package/dist/{svmr-CYRHHWZF.js.map → svmr-NXZ5VLKH.js.map} +0 -0
  830. /package/dist/{table-VHO7E5PI.js.map → table-ISOQOI6C.js.map} +0 -0
  831. /package/dist/{termCollection-HSVSH7TJ.js.map → termCollection-7ZSU3I45.js.map} +0 -0
  832. /package/dist/{termCollection-E4Q6GLXN.js.map → termCollection-V2A5BDQB.js.map} +0 -0
  833. /package/dist/{termCollection.unit.spec-ZCE3TUMS.js.map → termCollection.unit.spec-6VLCJGOU.js.map} +0 -0
  834. /package/dist/{tk-GPRHDN4K.js.map → tk-6AB6XYIE.js.map} +0 -0
  835. /package/dist/{tp.ui-LTUA3FSL.js.map → tp.ui-2O4UW5N7.js.map} +0 -0
  836. /package/dist/{tvs.dt-G43PAAKD.js.map → tvs.dt-CY6TOQVB.js.map} +0 -0
  837. /package/dist/{tvs.dtcnv.categorical-UHDS2TGZ.js.map → tvs.dtcnv.categorical-AYQ432TW.js.map} +0 -0
  838. /package/dist/{tvs.dtcnv.continuous-ZNGYQKTD.js.map → tvs.dtcnv.continuous-XVDL6SG3.js.map} +0 -0
  839. /package/dist/{tvs.dtfusion-JBEEUDUS.js.map → tvs.dtfusion-V3AV7A6Q.js.map} +0 -0
  840. /package/dist/{tvs.dtsnvindel-XXN5Q7RN.js.map → tvs.dtsnvindel-XM3NXIT7.js.map} +0 -0
  841. /package/dist/{tvs.dtsv-MO6L7HHV.js.map → tvs.dtsv-Z2GYRINW.js.map} +0 -0
  842. /package/dist/{tvs.samplelst-HKY6UUJM.js.map → tvs.samplelst-C4FB63G7.js.map} +0 -0
  843. /package/dist/{tvs.termCollection-TY6FPL25.js.map → tvs.termCollection-VHTSC2ST.js.map} +0 -0
  844. /package/dist/{violin-YHE3WSGR.js.map → violin-KGGTUQFF.js.map} +0 -0
  845. /package/dist/{violin.integration.spec-F2UD7BHC.js.map → violin.integration.spec-5EW6PLJX.js.map} +0 -0
  846. /package/dist/{violin.interactivity-LVDTDEPQ.js.map → violin.interactivity-RI4RURGO.js.map} +0 -0
  847. /package/dist/{violin.renderer-IIEIUGRI.js.map → violin.renderer-EWU2IFZE.js.map} +0 -0
  848. /package/dist/{vocabulary-WQRYXBRO.js.map → vocabulary-VLIGC7OP.js.map} +0 -0
@@ -0,0 +1,2196 @@
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-2YC6ZVE4.js";
11
+ import {
12
+ invalidcoord,
13
+ string2pos
14
+ } from "./chunk-HJ6L54YS.js";
15
+ import "./chunk-RYCOJY7M.js";
16
+ import {
17
+ Menu
18
+ } from "./chunk-HYOEWQ5P.js";
19
+ import "./chunk-FN5XPUPH.js";
20
+ import "./chunk-G6O3URDN.js";
21
+ import "./chunk-LSEFWW72.js";
22
+ import "./chunk-KWM6B3NL.js";
23
+ import "./chunk-UCLS2SVB.js";
24
+ import {
25
+ dofetch,
26
+ dofetch2,
27
+ dofetch3,
28
+ vcfparsemeta
29
+ } from "./chunk-I55NLUCQ.js";
30
+ import "./chunk-MVTCBVSX.js";
31
+ import "./chunk-2K5DSRBJ.js";
32
+ import "./chunk-X4NI4JLQ.js";
33
+ import "./chunk-L4QG7XZE.js";
34
+ import "./chunk-DQC5FFGV.js";
35
+ import "./chunk-UWYCEYML.js";
36
+ import "./chunk-7UHUOC6F.js";
37
+ import "./chunk-ZYY54HBU.js";
38
+ import "./chunk-EGWVYY7K.js";
39
+ import {
40
+ bplen,
41
+ dt2label,
42
+ dtcnv,
43
+ dtfusionrna,
44
+ dtitd,
45
+ dtloh,
46
+ dtsnvindel,
47
+ dtsv,
48
+ getMax_byiqr,
49
+ mclass,
50
+ mclassitd,
51
+ tkt,
52
+ validtkt
53
+ } from "./chunk-AMYSEKPF.js";
54
+ import "./chunk-TV74I3Y5.js";
55
+ import {
56
+ category10_default
57
+ } from "./chunk-KSGA62R2.js";
58
+ import "./chunk-LOZEKOES.js";
59
+ import "./chunk-TOU7EVFQ.js";
60
+ import {
61
+ linear,
62
+ ordinal
63
+ } from "./chunk-OAWQ6LOO.js";
64
+ import "./chunk-KYBIQBXE.js";
65
+ import "./chunk-I6Y4O3RR.js";
66
+ import "./chunk-OMR2DT66.js";
67
+ import "./chunk-HFNDKYVF.js";
68
+
69
+ // src/samplematrix.featuremenu.js
70
+ function showMenu_isgenevalue(smat, f) {
71
+ smat.menu.d.append("div").attr("class", "sja_menuoption").text("Sort").on("click", () => {
72
+ smat.menu.hide();
73
+ if (f.sort) {
74
+ return;
75
+ }
76
+ for (const f2 of smat.features) {
77
+ if (f2.isgenevalue) delete f2.sort;
78
+ }
79
+ f.sort = 1;
80
+ smat.draw_matrix();
81
+ });
82
+ }
83
+ function showMenu_iscnv(smat, f, obj) {
84
+ {
85
+ const row = smat.menu.d.append("div").style("margin", "10px");
86
+ row.append("span").html("CNV log2(ratio) cutoff ");
87
+ row.append("input").property("value", obj.valuecutoff || 0).attr("type", "number").style("width", "50px").on("keyup", (event2) => {
88
+ if (event2.code != "Enter" && event2.code != "NumpadEnter") return;
89
+ let v = Number.parseFloat(event2.target.value);
90
+ if (!v || v < 0) {
91
+ v = 0;
92
+ }
93
+ if (v == 0) {
94
+ if (obj.valuecutoff) {
95
+ obj.valuecutoff = 0;
96
+ smat.update_singlefeature(f);
97
+ } else {
98
+ }
99
+ return;
100
+ }
101
+ if (obj.valuecutoff) {
102
+ if (obj.valuecutoff == v) {
103
+ } else {
104
+ obj.valuecutoff = v;
105
+ smat.update_singlefeature(f);
106
+ }
107
+ } else {
108
+ obj.valuecutoff = v;
109
+ smat.update_singlefeature(f);
110
+ }
111
+ });
112
+ 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.");
113
+ }
114
+ {
115
+ const row = smat.menu.d.append("div").style("margin", "10px");
116
+ row.append("span").html("CNV segment size limit&nbsp;");
117
+ row.append("input").property("value", obj.focalsizelimit || 0).attr("type", "number").style("width", "100px").on("keyup", (event2) => {
118
+ if (event2.code != "Enter" && event2.code != "NumpadEnter") return;
119
+ let v = Number.parseInt(event2.target.value);
120
+ if (!v || v < 0) {
121
+ v = 0;
122
+ }
123
+ if (v == 0) {
124
+ if (obj.focalsizelimit) {
125
+ obj.focalsizelimit = 0;
126
+ smat.update_singlefeature(f);
127
+ } else {
128
+ }
129
+ return;
130
+ }
131
+ if (obj.focalsizelimit) {
132
+ if (obj.focalsizelimit == v) {
133
+ } else {
134
+ obj.focalsizelimit = v;
135
+ smat.update_singlefeature(f);
136
+ }
137
+ } else {
138
+ obj.focalsizelimit = v;
139
+ smat.update_singlefeature(f);
140
+ }
141
+ });
142
+ row.append("span").text("bp");
143
+ 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.");
144
+ }
145
+ }
146
+ function showMenu_isloh(smat, f, obj) {
147
+ {
148
+ const row = smat.menu.d.append("div").style("margin", "10px");
149
+ row.append("span").html("LOH segmean cutoff&nbsp;");
150
+ row.append("input").property("value", obj.valuecutoff || 0).attr("type", "number").style("width", "50px").on("keyup", (event2) => {
151
+ if (event2.code != "Enter" && event2.code != "NumpadEnter") return;
152
+ let v = Number.parseFloat(event2.target.value);
153
+ if (!v || v < 0) {
154
+ v = 0;
155
+ }
156
+ if (v == 0) {
157
+ if (obj.valuecutoff) {
158
+ obj.valuecutoff = 0;
159
+ smat.update_singlefeature(f);
160
+ } else {
161
+ }
162
+ return;
163
+ }
164
+ if (obj.valuecutoff) {
165
+ if (obj.valuecutoff == v) {
166
+ } else {
167
+ obj.valuecutoff = v;
168
+ smat.update_singlefeature(f);
169
+ }
170
+ } else {
171
+ obj.valuecutoff = v;
172
+ smat.update_singlefeature(f);
173
+ }
174
+ });
175
+ 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.");
176
+ }
177
+ {
178
+ const row = smat.menu.d.append("div").style("margin", "10px");
179
+ row.append("span").html("LOH segment size limit&nbsp;");
180
+ row.append("input").property("value", obj.focalsizelimit || 0).attr("type", "number").style("width", "100px").on("keyup", (event2) => {
181
+ if (event2.code != "Enter" && event2.code != "NumpadEnter") return;
182
+ let v = Number.parseInt(event2.target.value);
183
+ if (!v || v < 0) {
184
+ v = 0;
185
+ }
186
+ if (v == 0) {
187
+ if (obj.focalsizelimit) {
188
+ obj.focalsizelimit = 0;
189
+ smat.update_singlefeature(f);
190
+ } else {
191
+ }
192
+ return;
193
+ }
194
+ if (obj.focalsizelimit) {
195
+ if (obj.focalsizelimit == v) {
196
+ } else {
197
+ obj.focalsizelimit = v;
198
+ smat.update_singlefeature(f);
199
+ }
200
+ } else {
201
+ obj.focalsizelimit = v;
202
+ smat.update_singlefeature(f);
203
+ }
204
+ });
205
+ row.append("span").text("bp");
206
+ 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.");
207
+ }
208
+ }
209
+ function showMenu_ismutation(smat, f) {
210
+ {
211
+ const div = smat.menu.d.append("div").style("margin", "10px").style("border", "solid 1px #ededed");
212
+ const update = () => {
213
+ smat.update_singlefeature(f);
214
+ smat.menu.hide();
215
+ };
216
+ const table = div.append("table").style("margin", "10px").style("border-spacing", "1px");
217
+ const tbody = table.append("tbody");
218
+ {
219
+ const tr = tbody.append("tr");
220
+ tr.append("td").style("opacity", 0.5).text("CNV");
221
+ tr.append("td").attr("class", "sja_menuoption").text(f.cnv.hidden ? "Show" : "Hide").on("click", () => {
222
+ f.cnv.hidden = !f.cnv.hidden;
223
+ update();
224
+ });
225
+ tr.append("td").attr("class", "sja_menuoption").text("Show only").on("click", () => {
226
+ ismutation_hideallclass(f);
227
+ delete f.cnv.hidden;
228
+ update();
229
+ });
230
+ const td = tr.append("td");
231
+ if (!f.cnv.hidden) {
232
+ td.attr("class", "sja_menuoption").style("font-size", ".8em").text("CONFIG").on("click", () => {
233
+ smat.menu.clear();
234
+ showMenu_iscnv(smat, f, f.cnv);
235
+ });
236
+ }
237
+ }
238
+ {
239
+ const tr = tbody.append("tr");
240
+ tr.append("td").style("opacity", 0.5).text("LOH");
241
+ tr.append("td").attr("class", "sja_menuoption").text(f.loh.hidden ? "Show" : "Hide").on("click", () => {
242
+ f.loh.hidden = !f.loh.hidden;
243
+ update();
244
+ });
245
+ tr.append("td").attr("class", "sja_menuoption").text("Show only").on("click", () => {
246
+ ismutation_hideallclass(f);
247
+ delete f.loh.hidden;
248
+ update();
249
+ });
250
+ const td = tr.append("td");
251
+ if (!f.loh.hidden) {
252
+ td.attr("class", "sja_menuoption").style("font-size", ".8em").text("CONFIG").on("click", () => {
253
+ smat.menu.clear();
254
+ showMenu_isloh(smat, f, f.loh);
255
+ });
256
+ }
257
+ }
258
+ {
259
+ const tr = tbody.append("tr");
260
+ tr.append("td").style("opacity", 0.5).text("ITD");
261
+ tr.append("td").attr("class", "sja_menuoption").text(f.itd.hidden ? "Show" : "Hide").on("click", () => {
262
+ f.itd.hidden = !f.itd.hidden;
263
+ update();
264
+ });
265
+ tr.append("td").attr("class", "sja_menuoption").text("Show only").on("click", () => {
266
+ ismutation_hideallclass(f);
267
+ delete f.itd.hidden;
268
+ update();
269
+ });
270
+ const td = tr.append("td");
271
+ if (!f.itd.hidden) {
272
+ }
273
+ }
274
+ {
275
+ const tr = tbody.append("tr");
276
+ tr.append("td").style("opacity", 0.5).text("SV");
277
+ tr.append("td").attr("class", "sja_menuoption").text(f.sv.hidden ? "Show" : "Hide").on("click", () => {
278
+ f.sv.hidden = !f.sv.hidden;
279
+ update();
280
+ });
281
+ tr.append("td").attr("class", "sja_menuoption").text("Show only").on("click", () => {
282
+ ismutation_hideallclass(f);
283
+ delete f.sv.hidden;
284
+ update();
285
+ });
286
+ const td = tr.append("td");
287
+ if (!f.sv.hidden) {
288
+ }
289
+ }
290
+ {
291
+ const tr = tbody.append("tr");
292
+ tr.append("td").style("opacity", 0.5).text("Fusion");
293
+ tr.append("td").attr("class", "sja_menuoption").text(f.fusion.hidden ? "show" : "hide").on("click", () => {
294
+ f.fusion.hidden = !f.fusion.hidden;
295
+ update();
296
+ });
297
+ tr.append("td").attr("class", "sja_menuoption").text("show only").on("click", () => {
298
+ ismutation_hideallclass(f);
299
+ delete f.fusion.hidden;
300
+ update();
301
+ });
302
+ const td = tr.append("td");
303
+ if (!f.fusion.hidden) {
304
+ }
305
+ }
306
+ 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", () => {
307
+ if (tbody2.style("display") == "none") {
308
+ tbody2.style("display", "table-row-group");
309
+ } else {
310
+ tbody2.style("display", "none");
311
+ }
312
+ });
313
+ const tbody2 = table.append("tbody").style("display", "none");
314
+ for (const k in mclass) {
315
+ const c = mclass[k];
316
+ if (c.dt != dtsnvindel) {
317
+ continue;
318
+ }
319
+ const tr = tbody2.append("tr");
320
+ tr.append("td").style("opacity", 0.5).text(c.label);
321
+ tr.append("td").attr("class", "sja_menuoption").text(f.snvindel.excludeclasses[k] ? "Show" : "Hide").on("click", () => {
322
+ if (f.snvindel.excludeclasses[k]) {
323
+ delete f.snvindel.excludeclasses[k];
324
+ } else {
325
+ f.snvindel.excludeclasses[k] = 1;
326
+ }
327
+ update();
328
+ });
329
+ tr.append("td").attr("class", "sja_menuoption").text("Show only").on("click", () => {
330
+ ismutation_hideallclass(f);
331
+ delete f.snvindel.excludeclasses[k];
332
+ update();
333
+ });
334
+ const td = tr.append("td");
335
+ }
336
+ div.append("div").style("margin", "10px").append("span").style("font-size", ".8em").text("Show all classes").attr("class", "sja_clbtext").on("click", () => {
337
+ f.cnv.hidden = false;
338
+ f.loh.hidden = false;
339
+ f.itd.hidden = false;
340
+ f.sv.hidden = false;
341
+ f.fusion.hidden = false;
342
+ f.snvindel.excludeclasses = {};
343
+ update();
344
+ });
345
+ }
346
+ }
347
+ function ismutation_hideallclass(f) {
348
+ f.cnv.hidden = true;
349
+ f.loh.hidden = true;
350
+ f.itd.hidden = true;
351
+ f.sv.hidden = true;
352
+ f.fusion.hidden = true;
353
+ f.snvindel.excludeclasses = {};
354
+ for (const k in mclass) {
355
+ if (mclass[k].dt == dtsnvindel) f.snvindel.excludeclasses[k] = 1;
356
+ }
357
+ }
358
+
359
+ // src/samplematrix.kmplot.js
360
+ function may_add_kmplotbutton(smat, buttonrow) {
361
+ if (!smat.mds || !smat.mds.survivalplot) return;
362
+ buttonrow.append("span").style("margin-right", "20px").style("font-size", ".8em").text("SURVIVAL PLOT").attr("class", "sja_clbtext").on("click", (event2) => {
363
+ smat.menu.clear().showunder(event2.target);
364
+ kmplot_menu(smat);
365
+ });
366
+ }
367
+ async function kmplot_menu(smat) {
368
+ const mutation_features = smat.features.filter((i) => i.ismutation);
369
+ try {
370
+ if (mutation_features.length != 2) throw "only works with two genomic features.";
371
+ await kmplot_do(smat, mutation_features[0], mutation_features[1]);
372
+ } catch (e) {
373
+ smat.menu.d.append("div").style("margin", "20px").text("Cannot make survival plot: " + (e.message || e));
374
+ }
375
+ }
376
+ async function kmplot_do(smat, f1, f2) {
377
+ const s1 = [], s2 = [], s12 = [];
378
+ for (const i of smat.samples) {
379
+ const in1 = f1.items.find((j) => j.sample == i.name);
380
+ const in2 = f2.items.find((j) => j.sample == i.name);
381
+ if (in1) {
382
+ if (in2) s12.push(i.name);
383
+ else s1.push(i.name);
384
+ } else {
385
+ s2.push(i.name);
386
+ }
387
+ }
388
+ const plot = {
389
+ renderplot: 1,
390
+ samplerule: {
391
+ full: {},
392
+ mutated_sets: [
393
+ { name: f1.label + " mutated (n=" + s1.length + ")", samplenames: s1 },
394
+ { name: f2.label + " mutated (n=" + s2.length + ")", samplenames: s2 },
395
+ { name: f1.label + " and " + f2.label + " mutated (n=" + s12.length + ")", samplenames: s12 }
396
+ ]
397
+ }
398
+ };
399
+ if (smat.limitsamplebyeitherannotation) {
400
+ plot.samplerule.full = {
401
+ byattr: 1,
402
+ key: smat.limitsamplebyeitherannotation[0].key,
403
+ value: smat.limitsamplebyeitherannotation[0].value,
404
+ immutable: 1
405
+ };
406
+ }
407
+ const pane = newpane({ x: 100, y: 100 });
408
+ pane.header.text(
409
+ (smat.limitsamplebyeitherannotation ? smat.limitsamplebyeitherannotation[0].value + " " : "") + "survival by " + f1.label + " and " + f2.label + " mutation status"
410
+ );
411
+ const _ = await import("./mds.survivalplot-R74DL2RA.js");
412
+ _.init(
413
+ {
414
+ mds: smat.mds,
415
+ genome: smat.genome,
416
+ plotlist: [plot]
417
+ },
418
+ pane.body
419
+ );
420
+ }
421
+
422
+ // src/samplematrix.js
423
+ var saynovalue = "na";
424
+ var default_cnvgaincolor = "#D6683C";
425
+ var default_cnvlosscolor = "#67a9cf";
426
+ var default_genevaluecolor = "#095873";
427
+ var default_lohcolor = "#858585";
428
+ var default_svcolor = "#858585";
429
+ var minheight2showname = 8;
430
+ var Samplematrix = class {
431
+ /*
432
+ init ui
433
+ */
434
+ constructor(p) {
435
+ for (const k in p) {
436
+ this[k] = p[k];
437
+ }
438
+ if (this.debugmode) window.smat = this;
439
+ this.tip = new Menu({ padding: "0px", hideXmute: 1, hideYmute: 1 });
440
+ this.menu = new Menu({ padding: "0px" });
441
+ this.errdiv = this.holder.append("div");
442
+ if (!this.iscustom) {
443
+ try {
444
+ if (!this.dslabel) throw "not custom data but dslabel is missing";
445
+ this.mds = this.genome.datasets[this.dslabel];
446
+ if (!this.mds) throw "invalid dataset name: " + this.dslabel;
447
+ if (!this.mds.isMds) throw "improper dataset: " + this.dslabel;
448
+ } catch (e) {
449
+ this.error(e);
450
+ }
451
+ }
452
+ init_controlui(this);
453
+ if (this.header) {
454
+ this.holder.append("div").style("margin-bottom", "20px").html(this.header);
455
+ }
456
+ this.wait_div = this.holder.append("div");
457
+ this.wait_div.style("display", "block").text("Loading...");
458
+ this.svg = this.holder.append("svg");
459
+ this.validate_config().then(() => {
460
+ return this.get_features();
461
+ }).catch((err) => {
462
+ if (typeof err == "string") {
463
+ this.error(err);
464
+ } else {
465
+ this.error(err.message);
466
+ if (err.stack) console.log(err.stack);
467
+ }
468
+ });
469
+ }
470
+ error(m) {
471
+ sayerror(this.errdiv, m);
472
+ }
473
+ async validate_config() {
474
+ if (this.iscustom) {
475
+ if (!this.querykey2tracks) throw "querykey2tracks missing for custom dataset";
476
+ let novalidtk = true;
477
+ for (const key in this.querykey2tracks) {
478
+ const tk = this.querykey2tracks[key];
479
+ if (!tk.file && !tk.url) throw "no file or url for a custom track by key " + key;
480
+ if (!tk.type) throw "missing type for member track by key " + key;
481
+ if (!validtkt(tk.type)) throw "invalid type for a member track: " + tk.type;
482
+ novalidtk = false;
483
+ }
484
+ if (novalidtk) throw "no custom tracks from querykey2tracks";
485
+ let vcftk;
486
+ for (const key in this.querykey2tracks) {
487
+ const tk = this.querykey2tracks[key];
488
+ if (tk.type == tkt.mdsvcf) {
489
+ vcftk = tk;
490
+ }
491
+ }
492
+ if (vcftk) {
493
+ await this.may_init_customvcf(vcftk);
494
+ }
495
+ } else {
496
+ if (this.mds.mdsIsUninitiated) {
497
+ const d = await dofetch3(`getDataset?genome=${this.genome.name}&dsname=${this.mds.label}`);
498
+ if (d.error) throw d.error;
499
+ if (!d.ds) throw "ds missing";
500
+ Object.assign(this.mds, d.ds);
501
+ delete this.mds.mdsIsUninitiated;
502
+ }
503
+ }
504
+ if (this.limitsamplebyeitherannotation) {
505
+ if (!Array.isArray(this.limitsamplebyeitherannotation)) throw "limitsamplebyeitherannotation must be an array";
506
+ const tr = this.legendtable.append("tr");
507
+ for (const anno of this.limitsamplebyeitherannotation) {
508
+ if (!anno.key) throw ".key missing from an element of limitsamplebyeitherannotation";
509
+ if (!anno.value) throw ".value missing from an element of limitsamplebyeitherannotation";
510
+ }
511
+ this.showlegend_limitsample();
512
+ }
513
+ const cnv_tr = this.legendtable.append("tr");
514
+ cnv_tr.append("td").style("opacity", 0.5).style("text-align", "right").text("CNV cutoff");
515
+ this.legendtable.cnv_td = cnv_tr.append("td");
516
+ const loh_tr = this.legendtable.append("tr");
517
+ loh_tr.append("td").style("opacity", 0.5).style("text-align", "right").text("LOH cutoff");
518
+ this.legendtable.loh_td = loh_tr.append("td");
519
+ if (this.limitbysamplesetgroup) {
520
+ if (!Array.isArray(this.limitbysamplesetgroup.samples)) throw ".limitbysamplesetgroup.samples is not array";
521
+ }
522
+ if (!this.rowspace) this.rowspace = 1;
523
+ if (!this.colspace) this.colspace = 1;
524
+ if (!this.rowlabspace) this.rowlabspace = 5;
525
+ if (!this.collabspace) this.collabspace = 5;
526
+ if (!this.rowlabticksize) this.rowlabticksize = 5;
527
+ if (!this.collabticksize) this.collabticksize = 5;
528
+ if (!this.features) throw "missing features[]";
529
+ if (!Array.isArray(this.features)) throw "features must be an array";
530
+ if (this.features[0].height) this.ori_feature_height = this.features[0].height;
531
+ if (this.features[0].width) this.ori_feature_width = this.features[0].width;
532
+ for (const f of this.features) {
533
+ await this.validate_feature(f);
534
+ }
535
+ }
536
+ showlegend_limitsample() {
537
+ if (!this.limitsamplebyeitherannotation) return;
538
+ }
539
+ feature_parseposition_maygene(f) {
540
+ return Promise.resolve().then(() => {
541
+ if (f.position) {
542
+ const o = string2pos(f.position, this.genome);
543
+ if (o) {
544
+ f.chr = o.chr;
545
+ f.start = o.start;
546
+ f.stop = o.stop;
547
+ }
548
+ }
549
+ if (f.chr) {
550
+ const err = invalidcoord(this.genome, f.chr, f.start, f.stop);
551
+ if (err) {
552
+ throw 'feature "' + f.label + '" position error: ' + err;
553
+ } else {
554
+ return;
555
+ }
556
+ }
557
+ if (!f.genename) throw "position required for a feature: no position or genename given";
558
+ return dofetch("/genelookup", {
559
+ input: f.genename,
560
+ genome: this.genome.name,
561
+ deep: 1
562
+ }).then((data) => {
563
+ if (data.error) throw data.error;
564
+ if (!data.gmlst || data.gmlst.length == 0) throw "no gene can be found for " + f.genename;
565
+ const regions = [];
566
+ for (const gm of data.gmlst) {
567
+ let nooverlap = true;
568
+ for (const region of regions) {
569
+ if (gm.chr == region.chr && Math.max(gm.start, region.start) < Math.min(gm.stop, region.stop)) {
570
+ nooverlap = false;
571
+ region.start = Math.min(region.start, gm.start);
572
+ region.stop = Math.max(region.stop, gm.stop);
573
+ break;
574
+ }
575
+ }
576
+ if (nooverlap) {
577
+ regions.push({
578
+ chr: gm.chr,
579
+ start: gm.start,
580
+ stop: gm.stop
581
+ });
582
+ }
583
+ }
584
+ if (regions.length > 1) {
585
+ sayerror(
586
+ this.errdiv,
587
+ "multiple regions found for gene " + f.genename + " you'd better specify one in feature"
588
+ );
589
+ }
590
+ f.chr = regions[0].chr;
591
+ f.start = regions[0].start;
592
+ f.stop = regions[0].stop;
593
+ });
594
+ });
595
+ }
596
+ validate_feature(f) {
597
+ return Promise.resolve().then(() => {
598
+ f.id = Math.random().toString();
599
+ const tr = this.legendtable.append("tr");
600
+ f.legend_tr = tr;
601
+ if (f.isgenevalue) {
602
+ if (!f.genename) throw ".genename missing for isgenevalue feature";
603
+ f.label = f.genename + " expression";
604
+ if (this.dslabel) {
605
+ if (!f.querykey) throw ".querykey missing for isgenevalue feature while loading from official dataset";
606
+ } else {
607
+ }
608
+ if (!f.scale) f.scale = { auto: 1 };
609
+ if (f.missingvalue == void 0) f.missingvalue = 0;
610
+ tr.append("td").text(f.label).style("opacity", 0.5).style("text-align", "right");
611
+ f.legendholder = tr.append("td");
612
+ if (!f.width) f.width = 20;
613
+ if (!f.color) f.color = default_genevaluecolor;
614
+ return this.feature_parseposition_maygene(f);
615
+ }
616
+ if (f.iscnv) {
617
+ if (this.dslabel) {
618
+ if (!f.querykey) throw ".querykey missing for iscnv feature while loading from official dataset";
619
+ } else {
620
+ }
621
+ if (!f.label && f.genename) {
622
+ f.label = f.genename + " CNV";
623
+ }
624
+ tr.append("td").text(f.label).style("opacity", 0.5).style("text-align", "right");
625
+ f.legendholder = tr.append("td");
626
+ if (!f.width) f.width = 40;
627
+ if (!f.colorgain) f.colorgain = default_cnvgaincolor;
628
+ if (!f.colorloss) f.colorloss = default_cnvlosscolor;
629
+ return this.feature_parseposition_maygene(f).then(() => {
630
+ if (!f.label) f.label = f.chr + ":" + f.start + "-" + f.stop + " CNV";
631
+ f.coordscale = linear().domain([f.start, f.stop]).range([0, this.features_on_rows ? f.height : f.width]);
632
+ });
633
+ }
634
+ if (f.isloh) {
635
+ if (this.dslabel) {
636
+ if (!f.querykey) throw ".querykey missing for isloh feature while loading from official dataset";
637
+ } else {
638
+ }
639
+ if (!f.label && f.genename) {
640
+ f.label = f.genename + " LOH";
641
+ }
642
+ tr.append("td").text(f.label).style("opacity", 0.5).style("text-align", "right");
643
+ f.legendholder = tr.append("td");
644
+ if (!f.width) f.width = 40;
645
+ if (!f.color) f.color = default_lohcolor;
646
+ return this.feature_parseposition_maygene(f).then(() => {
647
+ if (!f.label) f.label = f.chr + ":" + f.start + "-" + f.stop + " LOH";
648
+ f.coordscale = linear().domain([f.start, f.stop]).range([0, this.features_on_rows ? f.height : f.width]);
649
+ });
650
+ }
651
+ if (f.isvcf) {
652
+ if (this.dslabel) {
653
+ if (!f.querykey) throw ".querykey missing for isvcf feature while loading from official dataset";
654
+ } else {
655
+ }
656
+ if (!f.label && f.genename) {
657
+ f.label = f.genename + " SNV/indel";
658
+ }
659
+ tr.append("td").text(f.label).style("opacity", 0.5).style("text-align", "right");
660
+ f.legendholder = tr.append("td");
661
+ if (!f.width) f.width = 20;
662
+ if (!f.snvindel) f.snvindel = {};
663
+ return this.feature_parseposition_maygene(f).then(() => {
664
+ if (!f.label) f.label = f.chr + ":" + f.start + "-" + f.stop + " SNV/indel";
665
+ });
666
+ }
667
+ if (f.isitd) {
668
+ if (this.dslabel) {
669
+ if (!f.querykey) throw ".querykey missing for isitd feature while loading from official dataset";
670
+ } else {
671
+ }
672
+ if (!f.label && f.genename) {
673
+ f.label = f.genename + " ITD";
674
+ }
675
+ if (!f.width) f.width = 20;
676
+ if (!f.color) f.color = mclass[mclassitd].color;
677
+ tr.append("td").text(f.label).style("opacity", 0.5).style("text-align", "right");
678
+ f.legendholder = tr.append("td");
679
+ f.legendholder.append("div").style("width", "20px").html("&nbsp;").style("background", f.color);
680
+ return this.feature_parseposition_maygene(f).then(() => {
681
+ if (!f.label) f.label = f.chr + ":" + f.start + "-" + f.stop + " ITD";
682
+ });
683
+ }
684
+ if (f.issvfusion) {
685
+ if (this.dslabel) {
686
+ if (!f.querykey) throw ".querykey missing for issvfusion feature while loading from official dataset";
687
+ } else {
688
+ }
689
+ if (!f.label && f.genename) {
690
+ f.label = f.genename + " SV/fusion";
691
+ }
692
+ if (!f.width) f.width = 20;
693
+ if (!f.color) f.color = default_svcolor;
694
+ tr.append("td").text(f.label).style("opacity", 0.5).style("text-align", "right");
695
+ f.legendholder = tr.append("td");
696
+ return this.feature_parseposition_maygene(f).then(() => {
697
+ if (!f.label) f.label = f.chr + ":" + f.start + "-" + f.stop + " SV/fusion";
698
+ });
699
+ }
700
+ if (f.issvcnv) {
701
+ if (this.dslabel) {
702
+ if (!f.querykey) throw ".querykey missing for issvcnv feature while loading from official dataset";
703
+ } else {
704
+ }
705
+ if (!f.label && f.genename) {
706
+ f.label = f.genename + " CNV/SV";
707
+ }
708
+ tr.append("td").text(f.label).style("color", "#858585").style("text-align", "right");
709
+ f.legendholder = tr.append("td");
710
+ initfeature_polymutation(f);
711
+ return this.feature_parseposition_maygene(f).then(() => {
712
+ if (!f.label) f.label = f.chr + ":" + f.start + "-" + f.stop + " CNV/SV";
713
+ });
714
+ }
715
+ if (f.ismutation) {
716
+ if (this.dslabel) {
717
+ if (!f.querykeylst) throw ".querykeylst missing for ismutation feature";
718
+ if (!Array.isArray(f.querykeylst)) throw ".querykeylst[] should be array for ismutation feature";
719
+ if (f.querykeylst.length == 0) throw "querykeylst[] empty array for ismutation feature";
720
+ } else {
721
+ }
722
+ if (!f.label && f.genename) {
723
+ f.label = f.genename + " mutation";
724
+ }
725
+ tr.append("td").text(f.label).style("opacity", 0.5).style("text-align", "right");
726
+ f.legendholder = tr.append("td");
727
+ initfeature_polymutation(f);
728
+ return this.feature_parseposition_maygene(f).then(() => {
729
+ if (!f.label) f.label = f.chr + ":" + f.start + "-" + f.stop + " mutation";
730
+ f.coordscale = linear().domain([f.start, f.stop]).range([0, this.features_on_rows ? f.height : f.width]);
731
+ });
732
+ }
733
+ if (f.issampleattribute) {
734
+ if (!this.dslabel) throw ".dslabel missing: sampleattribute only works for official dataset";
735
+ if (!f.key) throw ".key missing for issampleattribute feature";
736
+ if (!f.label) f.label = f.key;
737
+ if (this.mds && this.mds.sampleAttribute && this.mds.sampleAttribute.attributes) {
738
+ const registry = this.mds.sampleAttribute.attributes[f.key];
739
+ if (registry) {
740
+ f.values = registry.values;
741
+ }
742
+ }
743
+ if (!f.values) {
744
+ f.values = {};
745
+ }
746
+ f.assignmissingcolor = ordinal(category10_default);
747
+ if (!f.width && !this.features_on_rows) f.width = 20;
748
+ else if (!f.height && this.features_on_rows) f.height = 50;
749
+ tr.append("td").text(f.label).style("opacity", 0.5).style("text-align", "right");
750
+ f.legendholder = tr.append("td");
751
+ return Promise.resolve();
752
+ }
753
+ throw "unknown feature type in validating feature";
754
+ });
755
+ }
756
+ get_features(featureset) {
757
+ this.max_cnv = 0;
758
+ this.min_cnv = 0;
759
+ this.max_loh = 0;
760
+ this.min_loh = 0;
761
+ const arg = {
762
+ genome: this.genome.name,
763
+ limitsamplebyeitherannotation: this.limitsamplebyeitherannotation,
764
+ features: (featureset || this.features).map(feature2arg)
765
+ };
766
+ if (this.limitbysamplesetgroup) {
767
+ arg.sampleset = this.limitbysamplesetgroup.samples;
768
+ }
769
+ if (this.iscustom) {
770
+ arg.iscustom = 1;
771
+ arg.querykey2tracks = {};
772
+ for (const f of arg.features) {
773
+ if (f.querykey) {
774
+ arg.querykey2tracks[f.querykey] = this.querykey2tracks[f.querykey];
775
+ } else if (f.querykeylst) {
776
+ for (const k of f.querykeylst) arg.querykey2tracks[k] = this.querykey2tracks[k];
777
+ }
778
+ }
779
+ } else {
780
+ arg.dslabel = this.mds.label;
781
+ }
782
+ return dofetch("/samplematrix", arg).then((data) => {
783
+ if (data.error) {
784
+ for (const f0 of arg.features) {
785
+ const f = this.features.find((f2) => f2.id == f0.id);
786
+ if (f) f.items = [];
787
+ }
788
+ throw data.error;
789
+ }
790
+ for (const dat of data.results) {
791
+ const f = this.features.find((f2) => f2.id == dat.id);
792
+ if (!f) throw "feature not found: " + f.id;
793
+ f.items = dat.items;
794
+ this.prep_featuredata(f);
795
+ }
796
+ this.draw_matrix();
797
+ this.make_legend();
798
+ this.wait_div.style("display", "none");
799
+ });
800
+ }
801
+ update_singlefeature(f) {
802
+ this.get_features([f]).catch((err) => {
803
+ if (typeof err == "string") {
804
+ this.error(err);
805
+ } else {
806
+ this.error(err.message);
807
+ if (err.stack) console.log(err.stack);
808
+ }
809
+ });
810
+ }
811
+ addnewfeature_update(f) {
812
+ this.features.push(f);
813
+ this.validate_feature(f).then(() => {
814
+ return this.get_features([f]);
815
+ }).catch((err) => {
816
+ this.error(typeof err == "string" ? err : err.message);
817
+ if (err.stack) console.log(err.stack);
818
+ });
819
+ }
820
+ prep_featuredata(f) {
821
+ if (f.isgenevalue) {
822
+ f.scale.maxv = 0;
823
+ f.scale.minv = 0;
824
+ for (const i of f.items) {
825
+ f.scale.maxv = Math.max(f.scale.maxv, i.value);
826
+ }
827
+ return;
828
+ }
829
+ if (f.iscnv) {
830
+ const gain = [], loss = [];
831
+ for (const i of f.items) {
832
+ if (i.value > 0) {
833
+ gain.push(i.value);
834
+ } else {
835
+ loss.push(-i.value);
836
+ }
837
+ }
838
+ const gmax = getMax_byiqr(gain, 0);
839
+ const lmax = getMax_byiqr(loss, 0);
840
+ f.maxabslogratio = Math.max(gmax, lmax);
841
+ if (f.maxabslogratio > this.max_cnv) this.max_cnv = f.maxabslogratio;
842
+ return;
843
+ }
844
+ if (f.isloh) {
845
+ const values = f.items.map((i) => i.segmean);
846
+ f.minvalue = 0;
847
+ f.maxvalue = Math.max(...values);
848
+ if (f.maxvalue > this.max_loh) this.max_loh = f.maxvalue;
849
+ return;
850
+ }
851
+ if (f.isvcf) {
852
+ return;
853
+ }
854
+ if (f.isitd) {
855
+ return;
856
+ }
857
+ if (f.issvfusion) {
858
+ return;
859
+ }
860
+ if (f.issvcnv || f.ismutation) {
861
+ const cnvgain = [], cnvloss = [];
862
+ let lohmax = 0;
863
+ for (const i of f.items) {
864
+ if (i.dt == dtcnv) {
865
+ if (i.value > 0) {
866
+ cnvgain.push(i.value);
867
+ } else {
868
+ cnvloss.push(-i.value);
869
+ }
870
+ } else if (i.dt == dtloh) {
871
+ lohmax = Math.max(i.segmean, lohmax);
872
+ }
873
+ }
874
+ if (cnvgain.length + cnvloss.length > 0) {
875
+ const gmax = getMax_byiqr(cnvgain, 0);
876
+ const lmax = getMax_byiqr(cnvloss, 0);
877
+ f.cnv.maxabslogratio = Math.max(gmax, lmax);
878
+ if (f.cnv.maxabslogratio > this.max_cnv) {
879
+ this.max_cnv = f.cnv.maxabslogratio;
880
+ this.min_cnv = -f.cnv.maxabslogratio;
881
+ this.cnv_colorloss = f.cnv.colorloss;
882
+ this.cnv_colorgain = f.cnv.colorgain;
883
+ }
884
+ }
885
+ if (lohmax) {
886
+ f.loh.minvalue = 0;
887
+ f.loh.maxvalue = lohmax;
888
+ if (f.loh.maxvalue > this.max_loh) this.max_loh = f.loh.maxvalue;
889
+ this.loh_color = f.loh.color;
890
+ }
891
+ return;
892
+ }
893
+ if (f.issampleattribute) {
894
+ for (const i of f.items) {
895
+ if (!f.values[i.value]) {
896
+ f.values[i.value] = {
897
+ name: i.value,
898
+ color: f.assignmissingcolor(i.value)
899
+ };
900
+ }
901
+ }
902
+ return;
903
+ }
904
+ throw "unknown feature type in preparing feature data";
905
+ }
906
+ make_legend() {
907
+ for (const f of this.features) {
908
+ const h = f.legendholder;
909
+ h.selectAll("*").remove();
910
+ if (f.isgenevalue) {
911
+ h.append("span").text(f.scale.minv.toFixed(3));
912
+ 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 + ")");
913
+ h.append("span").text(f.scale.maxv.toFixed(3));
914
+ continue;
915
+ }
916
+ if (f.iscnv) {
917
+ h.append("span").html(
918
+ '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>"
919
+ );
920
+ continue;
921
+ }
922
+ if (f.isloh) {
923
+ h.append("span").text(f.minvalue.toFixed(3));
924
+ 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 + ")");
925
+ h.append("span").text(f.maxvalue.toFixed(3));
926
+ continue;
927
+ }
928
+ if (f.isvcf) {
929
+ const classes = /* @__PURE__ */ new Set();
930
+ for (const m of f.items) {
931
+ if (m.class) {
932
+ classes.add(m.class);
933
+ } else {
934
+ }
935
+ }
936
+ for (const c of classes) {
937
+ const cell = h.append("div").style("display", "inline-block").style("margin-right", "10px");
938
+ cell.append("span").style("background", mclass[c].color).style("margin-right", "2px").html("&nbsp;&nbsp;&nbsp;");
939
+ cell.append("span").text(mclass[c].label).style("color", mclass[c].color);
940
+ }
941
+ continue;
942
+ }
943
+ if (f.isitd) {
944
+ continue;
945
+ }
946
+ if (f.issvfusion) {
947
+ continue;
948
+ }
949
+ if (f.issvcnv || f.ismutation) {
950
+ const vcfclass2count = /* @__PURE__ */ new Map();
951
+ let itdcount = 0;
952
+ let svcount = 0;
953
+ let fusioncount = 0;
954
+ for (const i of f.items) {
955
+ if (i.dt == dtsnvindel) {
956
+ if (i.class && i.sampledata) {
957
+ if (!vcfclass2count.has(i.class)) {
958
+ vcfclass2count.set(i.class, 0);
959
+ }
960
+ vcfclass2count.set(i.class, vcfclass2count.get(i.class) + i.sampledata.length);
961
+ } else {
962
+ }
963
+ } else if (i.dt == dtitd) {
964
+ itdcount++;
965
+ } else if (i.dt == dtsv) {
966
+ svcount++;
967
+ } else if (i.dt == dtfusionrna) {
968
+ fusioncount++;
969
+ }
970
+ }
971
+ if (vcfclass2count.size + itdcount + svcount + fusioncount > 0) {
972
+ const row = h.append("div").style("margin-bottom", "5px").style("white-space", "nowrap");
973
+ for (const [classname, count] of vcfclass2count) {
974
+ const c = mclass[classname];
975
+ const cell = row.append("div").style("display", "inline-block").style("margin-right", "20px");
976
+ cell.append("span").attr("class", "sja_mcdot").style("background", c.color).text(count);
977
+ cell.append("span").text(c.label).style("color", c.color);
978
+ }
979
+ if (itdcount) {
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.itd.color).text(itdcount);
982
+ cell.append("span").text("ITD");
983
+ }
984
+ if (svcount) {
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.sv.color).text(svcount);
987
+ cell.append("span").text("SV");
988
+ }
989
+ if (fusioncount) {
990
+ const cell = row.append("div").style("display", "inline-block").style("margin-right", "20px");
991
+ cell.append("span").attr("class", "sja_mcdot").style("background", f.fusion.color).text(fusioncount);
992
+ cell.append("span").text("Fusion");
993
+ }
994
+ }
995
+ continue;
996
+ }
997
+ if (f.issampleattribute) {
998
+ const value2count = /* @__PURE__ */ new Map();
999
+ for (const sample of this.samples) {
1000
+ const anno = f.items.find((i) => i.sample == sample.name);
1001
+ if (anno) {
1002
+ value2count.set(anno.value, (value2count.get(anno.value) || 0) + 1);
1003
+ }
1004
+ }
1005
+ for (const [value, count] of value2count) {
1006
+ const cell = h.append("div").style("display", "inline-block").style("margin-right", "20px");
1007
+ cell.append("span").attr("class", "sja_mcdot").style("background", f.values[value].color).text(count);
1008
+ cell.append("span").text(f.values[value].name);
1009
+ }
1010
+ continue;
1011
+ }
1012
+ throw "unknown feature type in making legend";
1013
+ }
1014
+ this.makeGlobalCnvLohLegend();
1015
+ }
1016
+ makeGlobalCnvLohLegend() {
1017
+ const legend_data = [
1018
+ { type: "cnv", legend_label: "CNV log2(ratio): " },
1019
+ { type: "loh", legend_label: "LOH seg.mean: " }
1020
+ ];
1021
+ const min_cnv_orig = parseFloat(this.min_cnv.toFixed(3));
1022
+ const max_cnv_orig = parseFloat(this.max_cnv.toFixed(3));
1023
+ const min_loh_orig = parseFloat(this.min_loh.toFixed(3));
1024
+ const max_loh_orig = parseFloat(this.max_loh.toFixed(3));
1025
+ let changed_flag = false;
1026
+ legend_data.forEach((data) => {
1027
+ let min_cutoff = data.type == "cnv" ? this.min_cnv : this.min_loh;
1028
+ let max_cutoff = data.type == "cnv" ? this.max_cnv : this.max_loh;
1029
+ const td = data.type == "cnv" ? this.legendtable.cnv_td : this.legendtable.loh_td;
1030
+ const row = td.append("div").style("margin-bottom", "5px");
1031
+ row.append("span").text(data.legend_label);
1032
+ const lower_range_txt = row.append("span").text(min_cutoff.toFixed(3));
1033
+ const lower_range_input = row.append("input").attr("type", "text").attr("size", 8).style("display", "none").property("value", min_cutoff.toFixed(3));
1034
+ if (data.type == "cnv") {
1035
+ 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)");
1036
+ }
1037
+ 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(
1038
+ "background",
1039
+ "linear-gradient( to right, white, " + (data.type == "cnv" ? this.cnv_colorgain : this.loh_color) + ")"
1040
+ );
1041
+ const upper_range_txt = row.append("span").text(max_cutoff.toFixed(3));
1042
+ const upper_range_input = row.append("input").attr("type", "text").attr("size", 8).style("display", "none").property("value", max_cutoff.toFixed(3));
1043
+ const edit_btn = row.append("button").style("margin", "2px 5px").style("padding", "3px 10px").text("Edit").on("click", () => {
1044
+ lower_range_txt.style("display", "none");
1045
+ upper_range_txt.style("display", "none");
1046
+ lower_range_input.style("display", "inline-block");
1047
+ upper_range_input.style("display", "inline-block");
1048
+ edit_btn.style("display", "none");
1049
+ submit_btn.style("display", "inline-block");
1050
+ });
1051
+ const submit_btn = row.append("button").style("display", "none").style("margin", "2px 5px").style("padding", "3px 10px").text("Submit").on("click", () => {
1052
+ if (data.type == "cnv") {
1053
+ this.min_cnv = min_cutoff = lower_range_input.property("value");
1054
+ this.max_cnv = max_cutoff = upper_range_input.property("value");
1055
+ if (this.min_cnv != min_cnv_orig || this.max_cnv != max_cnv_orig) changed_flag = true;
1056
+ } else {
1057
+ this.min_loh = min_cutoff = parseFloat(lower_range_input.property("value"));
1058
+ this.max_loh = max_cutoff = parseFloat(upper_range_input.property("value"));
1059
+ if (this.min_loh != min_loh_orig || this.max_loh != max_loh_orig) changed_flag = true;
1060
+ }
1061
+ lower_range_txt.style("display", "inline-block").text(parseFloat(min_cutoff).toFixed(3));
1062
+ upper_range_txt.style("display", "inline-block").text(parseFloat(max_cutoff).toFixed(3));
1063
+ lower_range_input.style("display", "none");
1064
+ upper_range_input.style("display", "none");
1065
+ edit_btn.style("display", "inline-block");
1066
+ submit_btn.style("display", "none");
1067
+ reset_btn.style("display", changed_flag ? "inline-block" : "none");
1068
+ this.draw_matrix();
1069
+ });
1070
+ const reset_btn = row.append("button").style("display", "none").style("margin", "2px 5px").style("padding", "3px 10px").text("Reset").on("click", () => {
1071
+ if (data.type == "cnv") {
1072
+ this.min_cnv = min_cutoff = min_cnv_orig;
1073
+ this.max_cnv = max_cutoff = max_cnv_orig;
1074
+ } else {
1075
+ this.min_loh = min_cutoff = min_loh_orig;
1076
+ this.max_loh = max_cutoff = max_loh_orig;
1077
+ }
1078
+ lower_range_txt.text(parseFloat(min_cutoff).toFixed(3));
1079
+ upper_range_txt.text(parseFloat(max_cutoff).toFixed(3));
1080
+ lower_range_input.property("value", parseFloat(min_cutoff).toFixed(3));
1081
+ upper_range_input.property("value", parseFloat(max_cutoff).toFixed(3));
1082
+ reset_btn.style("display", "none");
1083
+ changed_flag = false;
1084
+ this.draw_matrix();
1085
+ });
1086
+ reset_btn.style("display", "none");
1087
+ });
1088
+ }
1089
+ gatherSamplesFromFeatureData() {
1090
+ const name2sample = /* @__PURE__ */ new Map();
1091
+ for (const feature of this.features) {
1092
+ if (feature.donotaddsample) {
1093
+ continue;
1094
+ }
1095
+ if (feature.isgenevalue || feature.iscnv || feature.isloh || feature.isitd || feature.issvfusion || feature.issvcnv) {
1096
+ for (const item of feature.items) {
1097
+ if (!name2sample.has(item.sample)) {
1098
+ name2sample.set(item.sample, {});
1099
+ }
1100
+ }
1101
+ } else if (feature.isvcf) {
1102
+ for (const m of feature.items) {
1103
+ if (m.dt == dtsnvindel) {
1104
+ if (!m.sampledata) continue;
1105
+ for (const s of m.sampledata) {
1106
+ if (!name2sample.has(s.sampleobj.name)) {
1107
+ name2sample.set(s.sampleobj.name, {});
1108
+ }
1109
+ }
1110
+ } else {
1111
+ console.error("unsupported dt from isvcf: " + m.dt);
1112
+ }
1113
+ }
1114
+ } else if (feature.ismutation) {
1115
+ for (const m of feature.items) {
1116
+ if (m.dt == dtsnvindel) {
1117
+ if (!m.sampledata) continue;
1118
+ for (const s of m.sampledata) {
1119
+ if (!name2sample.has(s.sampleobj.name)) {
1120
+ name2sample.set(s.sampleobj.name, {});
1121
+ }
1122
+ }
1123
+ } else {
1124
+ if (!m.sample) continue;
1125
+ if (!name2sample.has(m.sample)) {
1126
+ name2sample.set(m.sample, {});
1127
+ }
1128
+ }
1129
+ }
1130
+ } else if (feature.issampleattribute) {
1131
+ for (const i of feature.items) {
1132
+ if (!name2sample.has(i.sample)) {
1133
+ name2sample.set(i.sample, {});
1134
+ }
1135
+ }
1136
+ } else {
1137
+ console.error("unknown feature type from this.data");
1138
+ }
1139
+ }
1140
+ const uniformheight = Math.min(18, Math.max(1, Math.ceil(800 / name2sample.size)));
1141
+ this.samples = [];
1142
+ for (const [n, sample] of name2sample) {
1143
+ if (!this.features_on_rows) sample.height = uniformheight;
1144
+ else sample.width = uniformheight;
1145
+ sample.name = n;
1146
+ this.samples.push(sample);
1147
+ }
1148
+ }
1149
+ /*********** __draw *****/
1150
+ draw_matrix() {
1151
+ this.svg.selectAll("*").remove();
1152
+ const svgg = this.svg.append("g");
1153
+ this.gatherSamplesFromFeatureData();
1154
+ this.sortsamplesbyfeatures();
1155
+ const rows_lst = this.features_on_rows ? this.features : this.samples;
1156
+ const cols_lst = this.features_on_rows ? this.samples : this.features;
1157
+ let y = 0, samplenamemaxwidth = 0;
1158
+ for (const r of rows_lst) {
1159
+ r.g = svgg.append("g").attr("transform", "translate(0," + y + ")");
1160
+ y += r.height + this.rowspace;
1161
+ if (r.height >= minheight2showname) {
1162
+ 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() {
1163
+ samplenamemaxwidth = Math.max(samplenamemaxwidth, this.getBBox().width);
1164
+ }).attr("class", "sja_clbtext").on("mouseover", () => {
1165
+ this.features_on_rows ? this.showTip_feature(r) : this.showTip_sample(r);
1166
+ }).on("mouseout", () => {
1167
+ this.tip.hide();
1168
+ }).on("click", () => {
1169
+ if (this.features_on_rows) this.showMenu_feature(r);
1170
+ });
1171
+ 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");
1172
+ }
1173
+ }
1174
+ let x = 0, featurenamemaxwidth = 0;
1175
+ for (const c of cols_lst) {
1176
+ const g = svgg.append("g").attr("transform", "translate(" + (x + c.width / 2) + ",-" + (this.collabspace + this.collabticksize) + ")");
1177
+ x += c.width + this.colspace;
1178
+ 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() {
1179
+ featurenamemaxwidth = Math.max(featurenamemaxwidth, this.getBBox().width);
1180
+ }).on("mouseover", () => {
1181
+ this.features_on_rows ? this.showTip_sample(c) : this.showTip_feature(c);
1182
+ }).on("mouseout", () => {
1183
+ this.tip.hide();
1184
+ }).on("click", () => {
1185
+ if (!this.features_on_rows) this.showMenu_feature(c);
1186
+ });
1187
+ if (c.isgenevalue) {
1188
+ label.attr("fill", c.color);
1189
+ }
1190
+ g.append("line").attr("y1", this.collabspace).attr("y2", this.collabspace + this.collabticksize).attr("stroke", "black").attr("shape-rendering", "crispEdges");
1191
+ }
1192
+ for (const r of rows_lst) {
1193
+ let x2 = 0;
1194
+ for (const c of cols_lst) {
1195
+ const sample = this.features_on_rows ? c : r;
1196
+ const feature = this.features_on_rows ? r : c;
1197
+ const cell = r.g.append("g").attr("transform", "translate(" + x2 + ",0)");
1198
+ x2 += c.width + this.colspace;
1199
+ if (feature.isgenevalue) {
1200
+ this.drawCell_isgenevalue(sample, feature, cell);
1201
+ } else if (feature.iscnv) {
1202
+ this.drawCell_iscnv(sample, feature, cell);
1203
+ } else if (feature.isloh) {
1204
+ this.drawCell_isloh(sample, feature, cell);
1205
+ } else if (feature.isvcf) {
1206
+ this.drawCell_isvcf(sample, feature, cell);
1207
+ } else if (feature.isitd) {
1208
+ this.drawCell_isitd(sample, feature, cell);
1209
+ } else if (feature.issvfusion) {
1210
+ this.drawCell_issvfusion(sample, feature, cell);
1211
+ } else if (feature.issvcnv || feature.ismutation) {
1212
+ this.drawCell_ismutation(sample, feature, cell);
1213
+ } else if (feature.issampleattribute) {
1214
+ this.drawCell_issampleattribute(sample, feature, cell);
1215
+ } else {
1216
+ console.error("unknown feature type when drawing cell");
1217
+ }
1218
+ }
1219
+ }
1220
+ svgg.attr(
1221
+ "transform",
1222
+ "translate(" + (samplenamemaxwidth + this.rowlabspace + this.rowlabticksize) + "," + (featurenamemaxwidth + this.collabspace + this.collabticksize) + ")"
1223
+ );
1224
+ this.svg.attr(
1225
+ "width",
1226
+ samplenamemaxwidth + this.rowlabspace + this.rowlabticksize + cols_lst.reduce((i, j) => i + j.width, 0) + cols_lst.length * this.colspace
1227
+ ).attr(
1228
+ "height",
1229
+ featurenamemaxwidth + this.collabspace + this.collabticksize + rows_lst.reduce((i, j) => i + j.height, 0) + rows_lst.length * this.rowspace
1230
+ );
1231
+ }
1232
+ drawCell_isgenevalue(sample, feature, g) {
1233
+ const height = this.features_on_rows ? feature.height : sample.height;
1234
+ const width = this.features_on_rows ? sample.width : feature.width;
1235
+ const item = feature.items.find((i) => i.sample == sample.name);
1236
+ if (!item) {
1237
+ this.drawEmptycell(sample, feature, g);
1238
+ return;
1239
+ }
1240
+ 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) => {
1241
+ event2.target.setAttribute("stroke-opacity", 1);
1242
+ this.showTip_cell(sample, feature);
1243
+ }).on("mouseout", (event2) => {
1244
+ event2.target.setAttribute("stroke-opacity", 0);
1245
+ this.tip.hide();
1246
+ }).on("click", () => {
1247
+ this.click_cell(sample, feature);
1248
+ });
1249
+ if (item.value < feature.scale.maxv) {
1250
+ rect.attr("fill-opacity", item.value / feature.scale.maxv);
1251
+ }
1252
+ }
1253
+ drawCell_iscnv(sample, feature, g) {
1254
+ const height = this.features_on_rows ? feature.height : sample.height;
1255
+ const width = this.features_on_rows ? sample.width : feature.width;
1256
+ const items = feature.items.filter((i) => i.sample == sample.name);
1257
+ if (items.length == 0) {
1258
+ this.drawEmptycell(sample, feature, g);
1259
+ return;
1260
+ }
1261
+ for (const item of items) {
1262
+ const x1 = feature.coordscale(Math.max(feature.start, item.start));
1263
+ const x2 = feature.coordscale(Math.min(feature.stop, item.stop));
1264
+ const maxabslogratio = this.max_cnv;
1265
+ 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");
1266
+ }
1267
+ 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) => {
1268
+ event2.target.setAttribute("stroke-opacity", 1);
1269
+ this.showTip_cell(sample, feature);
1270
+ }).on("mouseout", (event2) => {
1271
+ event2.target.setAttribute("stroke-opacity", 0);
1272
+ this.tip.hide();
1273
+ }).on("click", () => {
1274
+ this.click_cell(sample, feature);
1275
+ });
1276
+ }
1277
+ drawCell_isloh(sample, feature, g) {
1278
+ const height = this.features_on_rows ? feature.height : sample.height;
1279
+ const width = this.features_on_rows ? sample.width : feature.width;
1280
+ const items = feature.items.filter((i) => i.sample == sample.name);
1281
+ if (items.length == 0) {
1282
+ this.drawEmptycell(sample, feature, g);
1283
+ return;
1284
+ }
1285
+ for (const item of items) {
1286
+ const x1 = feature.coordscale(Math.max(feature.start, item.start));
1287
+ const x2 = feature.coordscale(Math.min(feature.stop, item.stop));
1288
+ const loh_range = this.max_loh - this.min_loh;
1289
+ 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");
1290
+ }
1291
+ 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) => {
1292
+ event2.target.setAttribute("stroke-opacity", 1);
1293
+ this.showTip_cell(sample, feature);
1294
+ }).on("mouseout", (event2) => {
1295
+ event2.target.setAttribute("stroke-opacity", 0);
1296
+ this.tip.hide();
1297
+ }).on("click", () => {
1298
+ this.click_cell(sample, feature);
1299
+ });
1300
+ }
1301
+ drawCell_isvcf(sample, feature, g) {
1302
+ const height = this.features_on_rows ? feature.height : sample.height;
1303
+ const width = this.features_on_rows ? sample.width : feature.width;
1304
+ const mlst = getitemforsample_vcf(feature, sample);
1305
+ if (mlst.length == 0) {
1306
+ this.drawEmptycell(sample, feature, g);
1307
+ return;
1308
+ }
1309
+ const class2count = /* @__PURE__ */ new Map();
1310
+ for (const m of mlst) {
1311
+ if (!class2count.has(m.class)) {
1312
+ class2count.set(m.class, 0);
1313
+ }
1314
+ class2count.set(m.class, class2count.get(m.class) + 1);
1315
+ }
1316
+ let start = 0;
1317
+ for (const [cname, count] of class2count) {
1318
+ const span = count / mlst.length * this.features_on_rows ? height : width;
1319
+ 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");
1320
+ start += span;
1321
+ }
1322
+ 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) => {
1323
+ event2.target.setAttribute("stroke-opacity", 1);
1324
+ this.showTip_cell(sample, feature);
1325
+ }).on("mouseout", (event2) => {
1326
+ event2.target.setAttribute("stroke-opacity", 0);
1327
+ this.tip.hide();
1328
+ }).on("click", () => {
1329
+ this.click_cell(sample, feature);
1330
+ });
1331
+ }
1332
+ drawCell_isitd(sample, feature, g) {
1333
+ const height = this.features_on_rows ? feature.height : sample.height;
1334
+ const width = this.features_on_rows ? sample.width : feature.width;
1335
+ const item = feature.items.find((i) => i.sample == sample.name);
1336
+ if (!item) {
1337
+ this.drawEmptycell(sample, feature, g);
1338
+ return;
1339
+ }
1340
+ 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) => {
1341
+ event2.target.setAttribute("stroke-opacity", 1);
1342
+ this.showTip_cell(sample, feature);
1343
+ }).on("mouseout", (event2) => {
1344
+ event2.target.setAttribute("stroke-opacity", 0);
1345
+ this.tip.hide();
1346
+ }).on("click", () => {
1347
+ this.click_cell(sample, feature);
1348
+ });
1349
+ }
1350
+ drawCell_issampleattribute(sample, feature, g) {
1351
+ const height = this.features_on_rows ? feature.height : sample.height;
1352
+ const width = this.features_on_rows ? sample.width : feature.width;
1353
+ const item = feature.items.find((i) => i.sample == sample.name);
1354
+ if (!item) {
1355
+ this.drawEmptycell(sample, feature, g);
1356
+ return;
1357
+ }
1358
+ 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) => {
1359
+ event2.target.setAttribute("stroke-opacity", 1);
1360
+ this.showTip_cell(sample, feature);
1361
+ }).on("mouseout", (event2) => {
1362
+ event2.target.setAttribute("stroke-opacity", 0);
1363
+ this.tip.hide();
1364
+ }).on("click", () => {
1365
+ this.click_cell(sample, feature);
1366
+ });
1367
+ }
1368
+ drawCell_issvfusion(sample, feature, g) {
1369
+ const height = this.features_on_rows ? feature.height : sample.height;
1370
+ const width = this.features_on_rows ? sample.width : feature.width;
1371
+ const item = feature.items.find((i) => i.sample == sample.name);
1372
+ if (!item) {
1373
+ this.drawEmptycell(sample, feature, g);
1374
+ return;
1375
+ }
1376
+ 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) => {
1377
+ event2.target.setAttribute("stroke-opacity", 1);
1378
+ this.showTip_cell(sample, feature);
1379
+ }).on("mouseout", (event2) => {
1380
+ event2.target.setAttribute("stroke-opacity", 0);
1381
+ this.tip.hide();
1382
+ }).on("click", () => {
1383
+ this.click_cell(sample, feature);
1384
+ });
1385
+ }
1386
+ drawCell_ismutation(sample, feature, g) {
1387
+ const [cnv, loh, itd, sv, fusion, snvindel] = getitemforsample_compound(feature, sample);
1388
+ const height = this.features_on_rows ? feature.height : sample.height;
1389
+ const width = this.features_on_rows ? sample.width : feature.width;
1390
+ if (cnv.length + loh.length + itd.length + sv.length + fusion.length + snvindel.length == 0) {
1391
+ this.drawEmptycell(sample, feature, g);
1392
+ return;
1393
+ }
1394
+ let is_symbolic = false;
1395
+ if (this.ismutation_allsymbolic) {
1396
+ is_symbolic = true;
1397
+ } else if (this.ismutation_allnotsymbolic) {
1398
+ } else {
1399
+ if (height <= 4) {
1400
+ is_symbolic = true;
1401
+ }
1402
+ }
1403
+ if (is_symbolic) {
1404
+ this.drawCell_ismutation_symbolic(sample, feature, g, cnv, loh, itd, sv, fusion, snvindel);
1405
+ } else {
1406
+ if (loh.length) {
1407
+ for (const item of loh) {
1408
+ const x1 = feature.coordscale(Math.max(feature.start, item.start));
1409
+ const x2 = feature.coordscale(Math.min(feature.stop, item.stop));
1410
+ const loh_range = this.max_loh - this.min_loh;
1411
+ 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");
1412
+ }
1413
+ }
1414
+ if (cnv.length) {
1415
+ for (const item of cnv) {
1416
+ const x1 = feature.coordscale(Math.max(feature.start, item.start));
1417
+ const x2 = feature.coordscale(Math.min(feature.stop, item.stop));
1418
+ const maxabslogratio = item.value > 0 ? this.max_cnv : this.min_cnv;
1419
+ 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");
1420
+ }
1421
+ }
1422
+ if (itd.length) {
1423
+ for (const item of itd) {
1424
+ const x1 = feature.coordscale(Math.max(feature.start, item.start));
1425
+ const x2 = feature.coordscale(Math.min(feature.stop, item.stop));
1426
+ 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");
1427
+ }
1428
+ }
1429
+ if (sv.length) {
1430
+ 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");
1431
+ }
1432
+ if (fusion.length) {
1433
+ 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");
1434
+ }
1435
+ if (snvindel.length) {
1436
+ const m = snvindel[0];
1437
+ const g2 = g.append("g").attr("transform", "translate(" + width / 2 + "," + height / 2 + ")");
1438
+ const color = mclass[m.m.class].color;
1439
+ const w = Math.min(width, height) / 2;
1440
+ g2.append("line").attr("x1", -w).attr("x2", w).attr("y1", -w).attr("y2", w).attr("stroke", "white").attr("stroke-width", 3);
1441
+ g2.append("line").attr("x1", -w).attr("x2", w).attr("y1", w).attr("y2", -w).attr("stroke", "white").attr("stroke-width", 3);
1442
+ g2.append("line").attr("x1", -w).attr("x2", w).attr("y1", -w).attr("y2", w).attr("stroke", color);
1443
+ g2.append("line").attr("x1", -w).attr("x2", w).attr("y1", w).attr("y2", -w).attr("stroke", color);
1444
+ }
1445
+ }
1446
+ 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) => {
1447
+ event2.target.setAttribute("stroke-opacity", 1);
1448
+ this.showTip_cell(sample, feature);
1449
+ }).on("mouseout", (event2) => {
1450
+ event2.target.setAttribute("stroke-opacity", 0);
1451
+ this.tip.hide();
1452
+ }).on("click", () => {
1453
+ this.click_cell(sample, feature);
1454
+ });
1455
+ }
1456
+ drawCell_ismutation_symbolic(sample, feature, g, cnv, loh, itd, sv, fusion, snvindel) {
1457
+ const height = this.features_on_rows ? feature.height : sample.height;
1458
+ const width = this.features_on_rows ? sample.width : feature.width;
1459
+ const loh_range = this.max_loh - this.min_loh;
1460
+ const lst = [];
1461
+ if (cnv.length) {
1462
+ for (const i of cnv) {
1463
+ const maxabslogratio = i.value > 0 ? this.max_cnv : this.min_cnv;
1464
+ let k;
1465
+ if (i.value > 0) {
1466
+ k = { color: feature.cnv.colorgain };
1467
+ } else {
1468
+ k = { color: feature.cnv.colorloss };
1469
+ }
1470
+ k.opacity = Math.abs(i.value / maxabslogratio);
1471
+ lst.push(k);
1472
+ }
1473
+ }
1474
+ if (loh.length) {
1475
+ for (const i of loh) {
1476
+ lst.push({
1477
+ color: feature.loh.color,
1478
+ opacity: (i.segmean - this.min_loh) / loh_range
1479
+ });
1480
+ }
1481
+ }
1482
+ if (itd.length) {
1483
+ for (const i of itd) {
1484
+ lst.push({ color: feature.itd.color });
1485
+ }
1486
+ }
1487
+ if (sv.length) {
1488
+ for (const i of sv) {
1489
+ lst.push({ color: feature.sv.color });
1490
+ }
1491
+ }
1492
+ if (fusion.length) {
1493
+ for (const i of fusion) {
1494
+ lst.push({ color: feature.fusion.color });
1495
+ }
1496
+ }
1497
+ if (snvindel.length) {
1498
+ for (const i of snvindel) {
1499
+ lst.push({ color: mclass[i.m.class].color });
1500
+ }
1501
+ }
1502
+ const f_len = this.features_on_rows ? height / lst.length : width / lst.length;
1503
+ let f_start = 0;
1504
+ for (const i of lst) {
1505
+ 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");
1506
+ if (i.opacity) r.attr("opacity", i.opacity);
1507
+ f_start += f_len;
1508
+ }
1509
+ }
1510
+ // __newattr draw cell for new feature
1511
+ /*********** __draw ends *****/
1512
+ async click_cell(sample, feature) {
1513
+ try {
1514
+ let svcnvtk;
1515
+ if (this.iscustom) {
1516
+ svcnvtk = {
1517
+ iscustom: true,
1518
+ type: tkt.mdssvcnv,
1519
+ singlesample: {
1520
+ name: sample.name
1521
+ }
1522
+ };
1523
+ for (const k in this.querykey2tracks) {
1524
+ const t = this.querykey2tracks[k];
1525
+ if (t.type == tkt.mdssvcnv) {
1526
+ svcnvtk.name = t.name || "Custom tk";
1527
+ svcnvtk.file = t.file;
1528
+ svcnvtk.url = t.url;
1529
+ svcnvtk.indexURL = t.indexURL;
1530
+ } else if (t.type == tkt.mdsvcf) {
1531
+ svcnvtk.checkvcf = {
1532
+ file: t.file,
1533
+ url: t.url,
1534
+ indexURL: t.indexURL
1535
+ };
1536
+ } else if (t.type == tkt.mdsexpression) {
1537
+ svcnvtk.checkexpressionrank = {
1538
+ file: t.file,
1539
+ url: t.url,
1540
+ indexURL: t.indexURL
1541
+ };
1542
+ }
1543
+ }
1544
+ } else {
1545
+ if (!this.mds) throw "not custom but .mds{} missing";
1546
+ for (const querykey in this.mds.queries) {
1547
+ const tk = this.mds.queries[querykey];
1548
+ if (tk.type == tkt.mdssvcnv) {
1549
+ svcnvtk = {
1550
+ mds: this.mds,
1551
+ querykey,
1552
+ singlesample: {
1553
+ name: sample.name
1554
+ }
1555
+ };
1556
+ for (const k in tk) svcnvtk[k] = tk[k];
1557
+ break;
1558
+ }
1559
+ }
1560
+ }
1561
+ if (!svcnvtk) throw "cannot find a svcnv tk";
1562
+ svcnvtk.bplengthUpperLimit = 0;
1563
+ const pane = newpane({ x: 100, y: 100 });
1564
+ const blockarg = {
1565
+ jwt: this.jwt,
1566
+ hostURL: this.hostURL,
1567
+ nobox: 1,
1568
+ genome: this.genome,
1569
+ holder: pane.body,
1570
+ chr: feature.chr,
1571
+ start: feature.start,
1572
+ stop: feature.stop,
1573
+ tklst: []
1574
+ };
1575
+ first_genetrack_tolist(this.genome, blockarg.tklst);
1576
+ blockarg.tklst.push(svcnvtk);
1577
+ if (!this.iscustom) {
1578
+ if (!this.dslabel) throw "not custom but dslabel missing";
1579
+ const par = {
1580
+ genome: this.genome.name,
1581
+ dslabel: this.dslabel,
1582
+ querykey: svcnvtk.querykey,
1583
+ gettrack4singlesample: sample.name
1584
+ };
1585
+ const data = await dofetch("/mdssvcnv", par);
1586
+ if (data.error) throw "Error checking for assay track: " + data.error;
1587
+ if (data.tracks) {
1588
+ for (const t of data.tracks) blockarg.tklst.push(t);
1589
+ }
1590
+ }
1591
+ const _ = await import("./block-5UEORHFB.js");
1592
+ new _.Block(blockarg);
1593
+ } catch (e) {
1594
+ window.alert(e.message || e);
1595
+ if (e.stack) console.log(e.stack);
1596
+ }
1597
+ }
1598
+ /********** __menu and tooltip **********/
1599
+ showTip_feature(f) {
1600
+ this.tip.clear();
1601
+ this.tipContent_feature(f, this.tip.d);
1602
+ this.tip.showunder(event.target);
1603
+ }
1604
+ showMenu_feature(f) {
1605
+ this.menu.showunder(event.target).clear();
1606
+ this.tipContent_feature(f, this.menu.d);
1607
+ this.menu.d.append("div").attr("class", "sja_menuoption").text("Remove this feature").on("click", () => {
1608
+ this.menu.hide();
1609
+ f.legend_tr.remove();
1610
+ this.features.splice(
1611
+ this.features.findIndex((i) => i.id == f.id),
1612
+ 1
1613
+ );
1614
+ this.draw_matrix();
1615
+ });
1616
+ if (f.isgenevalue) return showMenu_isgenevalue(this, f);
1617
+ if (f.iscnv) return showMenu_iscnv(this, f, f);
1618
+ if (f.isloh) return showMenu_isloh(this, f, f);
1619
+ if (f.ismutation) return showMenu_ismutation(this, f);
1620
+ if (f.isitd) {
1621
+ return;
1622
+ }
1623
+ if (f.issvfusion) {
1624
+ return;
1625
+ }
1626
+ if (f.issvcnv) {
1627
+ return;
1628
+ }
1629
+ if (f.issampleattribute) {
1630
+ return;
1631
+ }
1632
+ }
1633
+ tipContent_feature(f, holder) {
1634
+ holder.append("div").text(f.label).style("opacity", 0.5).style("font-size", ".7em").style("margin", "10px");
1635
+ if (f.isgenevalue || f.iscnv || f.isloh || f.isitd || f.issvfusion) {
1636
+ 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");
1637
+ } else if (f.issvcnv || f.ismutation) {
1638
+ if (!f.genename) {
1639
+ 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");
1640
+ }
1641
+ } else if (f.issampleattribute) {
1642
+ holder.append("div").text(f.label);
1643
+ }
1644
+ if (f.isgenevalue) {
1645
+ 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");
1646
+ }
1647
+ }
1648
+ showTip_sample(sample) {
1649
+ this.tip.clear().d.append("div").text(sample.name).style("padding", "10px").style("font-size", ".7em");
1650
+ const lst = [];
1651
+ for (const f of this.features) {
1652
+ if (lst.length > 10) {
1653
+ lst.push({ k: "more", v: "..." });
1654
+ break;
1655
+ }
1656
+ if (f.isgenevalue) {
1657
+ const v = f.items.find((i) => i.sample == sample.name);
1658
+ lst.push({ k: f.label, v: v ? v.value : saynovalue });
1659
+ continue;
1660
+ }
1661
+ if (f.iscnv) {
1662
+ const items = f.items.filter((i) => i.sample == sample.name);
1663
+ let text;
1664
+ if (items.length == 0) {
1665
+ text = saynovalue;
1666
+ } else {
1667
+ const lst2 = items.map((i) => {
1668
+ 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>";
1669
+ });
1670
+ text = lst2.join("");
1671
+ }
1672
+ lst.push({ k: f.label, v: text });
1673
+ continue;
1674
+ }
1675
+ if (f.isloh) {
1676
+ const items = f.items.filter((i) => i.sample == sample.name);
1677
+ let text;
1678
+ if (items.length == 0) {
1679
+ text = saynovalue;
1680
+ } else {
1681
+ const lst2 = items.map((i) => {
1682
+ 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>";
1683
+ });
1684
+ text = lst2.join("");
1685
+ }
1686
+ lst.push({ k: f.label, v: text });
1687
+ continue;
1688
+ }
1689
+ if (f.isvcf) {
1690
+ const mlst = getitemforsample_vcf(f, sample);
1691
+ let text;
1692
+ if (mlst.length == 0) {
1693
+ text = saynovalue;
1694
+ } else {
1695
+ text = mlst.map((m) => {
1696
+ 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>";
1697
+ }).join("");
1698
+ }
1699
+ lst.push({ k: f.label, v: text });
1700
+ continue;
1701
+ }
1702
+ if (f.isitd) {
1703
+ const items = f.items.filter((i) => i.sample == sample.name);
1704
+ let text;
1705
+ if (items.length == 0) {
1706
+ text = saynovalue;
1707
+ } else {
1708
+ text = '<div style="background:' + f.color + ';width:20px">&nbsp;</div>';
1709
+ }
1710
+ lst.push({ k: f.label, v: text });
1711
+ continue;
1712
+ }
1713
+ if (f.issvfusion) {
1714
+ const items = f.items.filter((i) => i.sample == sample.name);
1715
+ let text;
1716
+ if (items.length == 0) {
1717
+ text = saynovalue;
1718
+ } else {
1719
+ text = '<div style="background:' + f.color + ';width:20px">&nbsp;</div>';
1720
+ }
1721
+ lst.push({ k: f.label, v: text });
1722
+ continue;
1723
+ }
1724
+ if (f.issvcnv) {
1725
+ continue;
1726
+ }
1727
+ if (f.ismutation) {
1728
+ continue;
1729
+ }
1730
+ if (f.issampleattribute) {
1731
+ const item = f.items.find((i) => i.sample == sample.name);
1732
+ if (item) {
1733
+ lst.push({ k: f.label, v: item.value });
1734
+ }
1735
+ continue;
1736
+ }
1737
+ console.error("sample tooltip: Unknown feature type");
1738
+ }
1739
+ make_table_2col(this.tip.d, lst);
1740
+ this.tip.show(event.clientX, event.clientY);
1741
+ }
1742
+ showTip_cell(sample, f) {
1743
+ const lst = [{ k: "sample", v: sample.name }];
1744
+ if (f.isgenevalue) {
1745
+ const v = f.items.find((i) => i.sample == sample.name);
1746
+ lst.push({ k: f.label, v: v ? v.value : saynovalue });
1747
+ } else if (f.iscnv) {
1748
+ const items = f.items.filter((i) => i.sample == sample.name);
1749
+ let text;
1750
+ if (items.length == 0) {
1751
+ text = saynovalue;
1752
+ } else {
1753
+ const lst2 = items.map((i) => {
1754
+ 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>";
1755
+ });
1756
+ text = lst2.join("");
1757
+ }
1758
+ lst.push({ k: f.label, v: text });
1759
+ } else if (f.isloh) {
1760
+ const items = f.items.filter((i) => i.sample == sample.name);
1761
+ let text;
1762
+ if (items.length == 0) {
1763
+ text = saynovalue;
1764
+ } else {
1765
+ const lst2 = items.map((i) => {
1766
+ 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>";
1767
+ });
1768
+ text = lst2.join("");
1769
+ }
1770
+ lst.push({ k: f.label, v: text });
1771
+ } else if (f.isvcf) {
1772
+ const mlst = getitemforsample_vcf(f, sample);
1773
+ let text;
1774
+ if (mlst.length == 0) {
1775
+ text = saynovalue;
1776
+ } else {
1777
+ text = mlst.map((m) => {
1778
+ 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>";
1779
+ }).join("");
1780
+ }
1781
+ lst.push({ k: f.label, v: text });
1782
+ } else if (f.isitd) {
1783
+ const items = f.items.filter((i) => i.sample == sample.name);
1784
+ let text;
1785
+ if (items.length == 0) {
1786
+ text = saynovalue;
1787
+ } else {
1788
+ const lst2 = items.map((i) => {
1789
+ return "<div>" + i.chr + ":" + i.start + "-" + i.stop + " </div>";
1790
+ });
1791
+ text = lst2.join("");
1792
+ }
1793
+ lst.push({ k: f.label, v: text });
1794
+ } else if (f.issvfusion) {
1795
+ const items = f.items.filter((i) => i.sample == sample.name);
1796
+ let text;
1797
+ if (items.length == 0) {
1798
+ text = saynovalue;
1799
+ } else {
1800
+ const lst2 = items.map((i) => {
1801
+ return "<div>" + i.chrA + ":" + i.posA + " - " + i.chrB + ":" + i.posB + " </div>";
1802
+ });
1803
+ text = lst2.join("");
1804
+ }
1805
+ lst.push({ k: f.label, v: text });
1806
+ } else if (f.issvcnv || f.ismutation) {
1807
+ const [cnv, loh, itd, sv, fusion, snvindel] = getitemforsample_compound(f, sample);
1808
+ if (cnv.length) {
1809
+ lst.push({
1810
+ k: (f.genename || f.label) + " CNV",
1811
+ v: cnv.map((i) => {
1812
+ 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>";
1813
+ }).join("")
1814
+ });
1815
+ }
1816
+ if (loh.length) {
1817
+ lst.push({
1818
+ k: (f.genename || f.label) + " LOH",
1819
+ v: loh.map((i) => {
1820
+ 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>";
1821
+ }).join("")
1822
+ });
1823
+ }
1824
+ if (itd.length) {
1825
+ lst.push({
1826
+ k: (f.genename || f.label) + " ITD",
1827
+ v: itd.map((i) => {
1828
+ return '<div style="font-size:.8em">' + i.chr + ":" + i.start + "-" + i.stop + "</div>";
1829
+ }).join("")
1830
+ });
1831
+ }
1832
+ if (sv.length) {
1833
+ lst.push({
1834
+ k: (f.genename || f.label) + " SV",
1835
+ v: sv.map((i) => {
1836
+ return "<div>" + i.chrA + ":" + i.posA + "," + i.strandA + " &gt; " + i.chrB + ":" + i.posB + "," + i.strandB + "</div>";
1837
+ }).join("")
1838
+ });
1839
+ }
1840
+ if (fusion.length) {
1841
+ lst.push({
1842
+ k: (f.genename || f.label) + " fusion",
1843
+ v: fusion.map((i) => {
1844
+ return "<div>" + i.chrA + ":" + i.posA + "," + i.strandA + " &gt; " + i.chrB + ":" + i.posB + "," + i.strandB + "</div>";
1845
+ }).join("")
1846
+ });
1847
+ }
1848
+ if (snvindel.length) {
1849
+ lst.push({
1850
+ k: (f.genename || f.label) + " SNV/indel",
1851
+ v: snvindel.map((m) => {
1852
+ const c = mclass[m.m.class];
1853
+ return '<div><span style="color:' + c.color + '">' + (m.m.mname || "") + '</span> <span style="font-size:.7em;opacity:.5">' + c.label + "</span></div>";
1854
+ }).join("")
1855
+ });
1856
+ }
1857
+ } else if (f.issampleattribute) {
1858
+ const item = f.items.find((i) => i.sample == sample.name);
1859
+ if (item) {
1860
+ lst.push({
1861
+ k: f.label,
1862
+ v: item.value
1863
+ });
1864
+ }
1865
+ } else {
1866
+ console.error("cell tooltip: unknown feature type");
1867
+ }
1868
+ this.tip.clear();
1869
+ make_table_2col(this.tip.d, lst);
1870
+ this.tip.show(event.clientX, event.clientY);
1871
+ }
1872
+ /********** __menu ends **********/
1873
+ sortsamplesbyfeatures() {
1874
+ const sortbygenevalue = this.features.find((f) => f.isgenevalue && f.sort);
1875
+ if (sortbygenevalue && sortbygenevalue.items) {
1876
+ const sample2value = /* @__PURE__ */ new Map();
1877
+ for (const i of sortbygenevalue.items) {
1878
+ sample2value.set(i.sample, i.value);
1879
+ }
1880
+ this.samples.sort((i, j) => {
1881
+ const vi = sample2value.has(i.name) ? sample2value.get(i.name) : sortbygenevalue.missingvalue;
1882
+ const vj = sample2value.has(j.name) ? sample2value.get(j.name) : sortbygenevalue.missingvalue;
1883
+ return vj - vi;
1884
+ });
1885
+ }
1886
+ }
1887
+ may_init_customvcf(tk) {
1888
+ if (tk.info) return;
1889
+ const arg = ["genome=" + this.genome.name];
1890
+ if (tk.file) {
1891
+ arg.push("file=" + tk.file);
1892
+ } else {
1893
+ arg.push("url=" + tk.url);
1894
+ if (tk.indexURL) arg.push("indexURL=" + tk.indexURL);
1895
+ }
1896
+ return dofetch2("vcfheader?" + arg.join("&")).then((data) => {
1897
+ const [info, format, samples, errs] = vcfparsemeta(data.metastr.split("\n"));
1898
+ if (errs) throw "Error parsing VCF meta lines: " + errs.join("; ");
1899
+ tk.info = info;
1900
+ tk.format = format;
1901
+ tk.samples = samples;
1902
+ tk.nochr = data.nochr;
1903
+ });
1904
+ }
1905
+ drawEmptycell(sample, feature, g) {
1906
+ const height = this.features_on_rows ? feature.height : sample.height;
1907
+ const width = this.features_on_rows ? sample.width : feature.width;
1908
+ if (height < 5) return;
1909
+ g.append("line").attr("x2", width).attr("y2", height).attr("stroke", "#ededed");
1910
+ }
1911
+ // end of class
1912
+ };
1913
+ function feature2arg(f) {
1914
+ if (f.isgenevalue) {
1915
+ return {
1916
+ id: f.id,
1917
+ isgenevalue: 1,
1918
+ querykey: f.querykey,
1919
+ genename: f.genename,
1920
+ chr: f.chr,
1921
+ start: f.start,
1922
+ stop: f.stop
1923
+ };
1924
+ }
1925
+ if (f.iscnv) {
1926
+ return {
1927
+ id: f.id,
1928
+ iscnv: 1,
1929
+ querykey: f.querykey,
1930
+ chr: f.chr,
1931
+ start: f.start,
1932
+ stop: f.stop,
1933
+ valuecutoff: f.valuecutoff,
1934
+ focalsizelimit: f.focalsizelimit
1935
+ };
1936
+ }
1937
+ if (f.isloh) {
1938
+ return {
1939
+ id: f.id,
1940
+ isloh: 1,
1941
+ querykey: f.querykey,
1942
+ chr: f.chr,
1943
+ start: f.start,
1944
+ stop: f.stop,
1945
+ valuecutoff: f.valuecutoff,
1946
+ focalsizelimit: f.focalsizelimit
1947
+ };
1948
+ }
1949
+ if (f.isvcf) {
1950
+ return {
1951
+ id: f.id,
1952
+ isvcf: 1,
1953
+ querykey: f.querykey,
1954
+ chr: f.chr,
1955
+ start: f.start,
1956
+ stop: f.stop,
1957
+ snvindel: {
1958
+ excludeclasses: f.snvindel.excludeclasses
1959
+ }
1960
+ };
1961
+ }
1962
+ if (f.isitd) {
1963
+ return {
1964
+ id: f.id,
1965
+ isitd: 1,
1966
+ querykey: f.querykey,
1967
+ chr: f.chr,
1968
+ start: f.start,
1969
+ stop: f.stop
1970
+ };
1971
+ }
1972
+ if (f.issvfusion) {
1973
+ return {
1974
+ id: f.id,
1975
+ issvfusion: 1,
1976
+ querykey: f.querykey,
1977
+ chr: f.chr,
1978
+ start: f.start,
1979
+ stop: f.stop
1980
+ };
1981
+ }
1982
+ if (f.issvcnv || f.ismutation) {
1983
+ const arg = {
1984
+ id: f.id,
1985
+ chr: f.chr,
1986
+ start: f.start,
1987
+ stop: f.stop,
1988
+ cnv: {
1989
+ hidden: f.cnv.hidden,
1990
+ valuecutoff: f.cnv.valuecutoff,
1991
+ focalsizelimit: f.cnv.focalsizelimit
1992
+ },
1993
+ loh: {
1994
+ hidden: f.loh.hidden,
1995
+ valuecutoff: f.loh.valuecutoff,
1996
+ focalsizelimit: f.loh.focalsizelimit
1997
+ },
1998
+ itd: {
1999
+ hidden: f.itd.hidden
2000
+ },
2001
+ sv: {
2002
+ hidden: f.sv.hidden
2003
+ },
2004
+ fusion: {
2005
+ hidden: f.fusion.hidden
2006
+ },
2007
+ snvindel: {
2008
+ excludeclasses: f.snvindel.excludeclasses
2009
+ }
2010
+ };
2011
+ if (f.issvcnv) {
2012
+ arg.issvcnv = 1;
2013
+ arg.querykey = f.querykey;
2014
+ } else {
2015
+ arg.ismutation = 1;
2016
+ arg.querykeylst = f.querykeylst;
2017
+ }
2018
+ return arg;
2019
+ }
2020
+ if (f.issampleattribute) {
2021
+ return {
2022
+ id: f.id,
2023
+ issampleattribute: 1,
2024
+ key: f.key
2025
+ };
2026
+ }
2027
+ throw "unknown feature type in making request parameter";
2028
+ }
2029
+ function getitemforsample_vcf(feature, sample) {
2030
+ const mlst = [];
2031
+ for (const m of feature.items) {
2032
+ if (m.dt == dtsnvindel) {
2033
+ if (m.sampledata.findIndex((i) => i.sampleobj.name == sample.name) != -1) {
2034
+ mlst.push(m);
2035
+ }
2036
+ } else {
2037
+ console.error("getitemforsample_vcf: unknown dt");
2038
+ }
2039
+ }
2040
+ return mlst;
2041
+ }
2042
+ function getitemforsample_compound(feature, sample) {
2043
+ const cnv = [], loh = [], itd = [], sv = [], fusion = [], snvindel = [];
2044
+ for (const item of feature.items) {
2045
+ if (item.dt == dtsnvindel) {
2046
+ if (!item.sampledata) continue;
2047
+ const m_sample = item.sampledata.find((s) => s.sampleobj.name == sample.name);
2048
+ if (!m_sample) continue;
2049
+ snvindel.push({
2050
+ m: item,
2051
+ m_sample
2052
+ });
2053
+ continue;
2054
+ }
2055
+ if (item.sample != sample.name) continue;
2056
+ if (item.dt == dtcnv) {
2057
+ cnv.push(item);
2058
+ } else if (item.dt == dtloh) {
2059
+ loh.push(item);
2060
+ } else if (item.dt == dtitd) {
2061
+ itd.push(item);
2062
+ } else if (item.dt == dtsv) {
2063
+ sv.push(item);
2064
+ } else if (item.dt == dtfusionrna) {
2065
+ fusion.push(item);
2066
+ } else {
2067
+ console.error("unknown dt: " + item.dt);
2068
+ }
2069
+ }
2070
+ return [cnv, loh, itd, sv, fusion, snvindel];
2071
+ }
2072
+ function initfeature_polymutation(f) {
2073
+ if (!f.width) f.width = 20;
2074
+ if (!f.cnv) f.cnv = {};
2075
+ if (!f.cnv.valuecutoff) f.cnv.valuecutoff = 0.2;
2076
+ if (!Number.isInteger(f.cnv.focalsizelimit)) f.cnv.focalsizelimit = 2e6;
2077
+ if (!f.cnv.colorgain) f.cnv.colorgain = default_cnvgaincolor;
2078
+ if (!f.cnv.colorloss) f.cnv.colorloss = default_cnvlosscolor;
2079
+ if (!f.loh) f.loh = {};
2080
+ if (!f.loh.valuecutoff) f.loh.valuecutoff = 0.1;
2081
+ if (!Number.isInteger(f.loh.focalsizelimit)) f.loh.focalsizelimit = 2e6;
2082
+ if (!f.loh.color) f.loh.color = default_lohcolor;
2083
+ if (!f.itd) f.itd = {};
2084
+ if (!f.itd.color) f.itd.color = mclass[mclassitd].color;
2085
+ if (!f.sv) f.sv = {};
2086
+ if (!f.sv.color) f.sv.color = default_svcolor;
2087
+ if (!f.fusion) f.fusion = {};
2088
+ if (!f.fusion.color) f.fusion.color = default_svcolor;
2089
+ if (!f.snvindel) f.snvindel = {};
2090
+ if (!f.snvindel.excludeclasses) f.snvindel.excludeclasses = {};
2091
+ }
2092
+ function init_controlui(o) {
2093
+ const buttonrow = o.holder.append("div").style("margin-bottom", "5px");
2094
+ const folderdiv = o.holder.append("div").style("margin-bottom", "20px");
2095
+ buttonrow.append("span").style("margin-right", "20px").style("font-size", ".8em").text("LEGEND").attr("class", "sja_clbtext").on("click", () => {
2096
+ if (o.legendtable.style("display") == "none") {
2097
+ appear(o.legendtable);
2098
+ } else {
2099
+ disappear(o.legendtable);
2100
+ }
2101
+ });
2102
+ o.legendtable = folderdiv.append("table").style("border-top", "solid 1px #ededed").style("border-bottom", "solid 1px #ededed").style("border-spacing", "10px").style("display", "none");
2103
+ buttonrow.append("span").style("margin-right", "20px").style("font-size", ".8em").text("CONFIG").attr("class", "sja_clbtext").on("click", () => {
2104
+ if (generalconfig.style("display") == "none") {
2105
+ appear(generalconfig);
2106
+ } else {
2107
+ disappear(generalconfig);
2108
+ }
2109
+ });
2110
+ const generalconfig = folderdiv.append("div").style("border-top", "solid 1px #ededed").style("border-bottom", "solid 1px #ededed").style("display", "none");
2111
+ const row = generalconfig.append("div").style("margin", "5px");
2112
+ row.append("div").style("vertical-align", "top").style("display", "inline-block").html("Show features as &nbsp;&nbsp;");
2113
+ const opts_div = row.append("div").style("display", "inline-block");
2114
+ const mutation_opts = [
2115
+ { value: "symbol", text: "CNV on genomic location, others as symbol" },
2116
+ { value: "proportion", text: "All features as porportion" }
2117
+ ];
2118
+ mutation_opts.forEach((opt) => {
2119
+ const opt_div = opts_div.append("div");
2120
+ opt_div.append("input").attr("type", "radio").attr("id", opt.value).attr("name", "mutaion_display").attr("value", opt.value).property(
2121
+ "checked",
2122
+ 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
2123
+ ).on("change", function() {
2124
+ if (opt.value == "symbol" && o.ismutation_allnotsymbolic) return;
2125
+ else if (opt.value == "proportion" && o.ismutation_allsymbolic) return;
2126
+ else if (opt.value == "symbol") {
2127
+ delete o.ismutation_allsymbolic;
2128
+ o.ismutation_allnotsymbolic = true;
2129
+ } else if (opt.value == "proportion") {
2130
+ o.ismutation_allsymbolic = true;
2131
+ delete o.ismutation_allnotsymbolic;
2132
+ } else {
2133
+ return;
2134
+ }
2135
+ o.draw_matrix();
2136
+ });
2137
+ opt_div.append("label").attr("for", opt.value).text(opt.text);
2138
+ });
2139
+ const row2 = generalconfig.append("div").style("margin", "5px");
2140
+ row2.append("div").style("vertical-align", "top").style("display", "inline-block").html("Layout of Matrix &nbsp;&nbsp;");
2141
+ const opts_div2 = row2.append("div").style("display", "inline-block");
2142
+ const layout_opts = [
2143
+ { value: "gene_on_row", text: "Genes as Rows" },
2144
+ { value: "sam_on_row", text: "Samples as Rows" }
2145
+ ];
2146
+ layout_opts.forEach((opt) => {
2147
+ const opt_div = opts_div2.append("div");
2148
+ opt_div.append("input").attr("type", "radio").attr("id", opt.value).attr("name", "layout").attr("value", opt.value).property(
2149
+ "checked",
2150
+ opt.value == "gene_on_row" && o.features_on_rows ? 1 : opt.value == "sam_on_row" && !o.features_on_rows ? 1 : 0
2151
+ ).on("change", function() {
2152
+ if (opt.value == "gene_on_row" && o.features_on_rows) return;
2153
+ else if (opt.value == "sam_on_row" && !o.features_on_rows) return;
2154
+ else if (opt.value == "gene_on_row") {
2155
+ o.features_on_rows = true;
2156
+ if (o.ori_feature_width) o.features.forEach((f) => f.height = o.ori_feature_width);
2157
+ } else {
2158
+ o.features_on_rows = false;
2159
+ if (o.ori_feature_height) o.features.forEach((f) => f.width = o.ori_feature_height);
2160
+ }
2161
+ o.draw_matrix();
2162
+ });
2163
+ opt_div.append("label").attr("for", opt.value).text(opt.text);
2164
+ });
2165
+ buttonrow.append("span").style("margin-right", "20px").style("font-size", ".8em").text("DATA").attr("class", "sja_clbtext").on("click", () => {
2166
+ printData(o);
2167
+ });
2168
+ may_add_kmplotbutton(o, buttonrow);
2169
+ }
2170
+ function printData(o) {
2171
+ const lst = ["sample feature varianttype variant"];
2172
+ for (const s of o.samples) {
2173
+ for (const f of o.features) {
2174
+ for (const i of f.items) {
2175
+ if (i.sample && i.sample == s.name || i.sampledata && i.sampledata.findIndex((i2) => i2.sampleobj.name == s.name) != -1) {
2176
+ lst.push(s.name + " " + f.label + " " + dt2label[i.dt] + " " + item2string(i));
2177
+ }
2178
+ }
2179
+ }
2180
+ }
2181
+ export_data("Matrix data", [{ text: lst.join("\n") }]);
2182
+ }
2183
+ function item2string(i) {
2184
+ if (i.dt == dtsnvindel)
2185
+ return i.mname + " " + mclass[i.class].label + " " + i.chr + "." + i.pos + "." + i.ref + "." + i.alt;
2186
+ if (i.dt == dtfusionrna || i.dt == dtsv)
2187
+ return i.chrA + "." + i.posA + "." + (i.strandA || "") + " > " + i.chrB + "." + i.posB + "." + (i.strandB || "");
2188
+ if (i.dt == dtcnv) return i.chr + ":" + i.start + "-" + i.stop + ", log2(ratio): " + i.value;
2189
+ if (i.dt == dtloh) return i.chr + ":" + i.start + "-" + i.stop + ", log2(ratio): " + i.segmean;
2190
+ if (i.dt == dtitd) return i.chr + ":" + i.start + "-" + i.stop;
2191
+ return "";
2192
+ }
2193
+ export {
2194
+ Samplematrix
2195
+ };
2196
+ //# sourceMappingURL=samplematrix-OMTNWCJK.js.map