@sjcrh/proteinpaint-client 2.204.0 → 2.206.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 (955) hide show
  1. package/dist/2dmaf-5OYM4MXA.js +1367 -0
  2. package/dist/AggMatrixInput-4VTI4Y6E.js +277 -0
  3. package/dist/AggregateMatrix-K7SGNO63.js +41 -0
  4. package/dist/AppHeader-WU6TO2OZ.js +830 -0
  5. package/dist/BoxPlot-OW7U3XTF.js +1211 -0
  6. package/dist/CorrelationVolcano-B3JTTZHF.js +614 -0
  7. package/dist/Cuminc-AJEXWRU2.js +1219 -0
  8. package/dist/DE-2J7DSRPC.js +89 -0
  9. package/dist/DE-2J7DSRPC.js.map +7 -0
  10. package/dist/DEinput-I7JWNOSD.js +499 -0
  11. package/dist/DEinput-I7JWNOSD.js.map +7 -0
  12. package/dist/DM-NQ46YPGF.js +90 -0
  13. package/dist/DM-NQ46YPGF.js.map +7 -0
  14. package/dist/DifferentialAnalysis-BFCQBX5J.js +237 -0
  15. package/dist/Disco-ZJLVQRTC.js +3389 -0
  16. package/dist/Disco.UI-AEDACXW2.js +243 -0
  17. package/dist/DmrPlot-QMRXAOM3.js +637 -0
  18. package/dist/GB-MFU2UJ22.js +1391 -0
  19. package/dist/GSEA-E3NHU22A.js +851 -0
  20. package/dist/GeneExpInput-MIUNSOPY.js +362 -0
  21. package/dist/Geomap-HAJG3STN.js +84 -0
  22. package/dist/HicApp-ECFFIRWI.js +2245 -0
  23. package/dist/IDCViewer-TNSD3U2V.js +10812 -0
  24. package/dist/NumBinaryEditor-CNBGZ6WY.js +279 -0
  25. package/dist/NumBinaryEditor.unit.spec-SKFDALF3.js +312 -0
  26. package/dist/NumContEditor-7ID2U7JL.js +105 -0
  27. package/dist/NumContEditor.unit.spec-XHSQSAWK.js +164 -0
  28. package/dist/NumCustomBinEditor-PAIPRJPO.js +33 -0
  29. package/dist/NumCustomBinEditor.unit.spec-QYVZMMHV.js +397 -0
  30. package/dist/NumDiscreteEditor-K2NZZQTH.js +170 -0
  31. package/dist/NumDiscreteEditor.unit.spec-3CG5VEQL.js +233 -0
  32. package/dist/NumRegularBinEditor-EOVZ22TP.js +33 -0
  33. package/dist/NumRegularBinEditor.unit.spec-FHTVH5FH.js +278 -0
  34. package/dist/NumSplineEditor-N3REMJUC.js +210 -0
  35. package/dist/NumSplineEditor.unit.spec-DZCP35GL.js +224 -0
  36. package/dist/NumericDensity-42MWVI2S.js +33 -0
  37. package/dist/NumericDensity.unit.spec-T2HHSQON.js +418 -0
  38. package/dist/NumericHandler-5XU3SSPD.js +34 -0
  39. package/dist/NumericHandler.unit.spec-3F23KSAQ.js +214 -0
  40. package/dist/ProteomeInput-UN2BUNRO.js +388 -0
  41. package/dist/Regression-HWLJENA5.js +1416 -0
  42. package/dist/RunChart2-YO55WE4M.js +749 -0
  43. package/dist/SC-LEDJ4DQR.js +1107 -0
  44. package/dist/Violin-E6PDJZ2B.js +1082 -0
  45. package/dist/Volcano-XJTBWYUK.js +1649 -0
  46. package/dist/Volcano-XJTBWYUK.js.map +7 -0
  47. package/dist/Wsi-S675CYTW.js +431 -0
  48. package/dist/adSandbox-ZJQ5ZW2T.js +33 -0
  49. package/dist/animatedBubbleChart-LRUS7W36.js +547 -0
  50. package/dist/app-7Q3QIBU4.js +32 -0
  51. package/dist/app-PKSI4MV5.js +42 -0
  52. package/dist/app.js +17 -17
  53. package/dist/bam-X5JH5ZT7.js +876 -0
  54. package/dist/barchart-UT6J4L2N.js +42 -0
  55. package/dist/barchart2-ZG5QJO3C.js +309 -0
  56. package/dist/block-TC466NGW.js +6249 -0
  57. package/dist/block.init-CIBNSYAC.js +33 -0
  58. package/dist/block.mds.expressionrank-EY5PCQCK.js +354 -0
  59. package/dist/block.mds.geneboxplot-R6AOMHO5.js +823 -0
  60. package/dist/block.mds.junction-JMV6FNYC.js +1539 -0
  61. package/dist/block.mds.svcnv-IHTV3QYG.js +6796 -0
  62. package/dist/block.svg-NTFLVQAQ.js +159 -0
  63. package/dist/block.tk.aicheck-FYPL32Y4.js +278 -0
  64. package/dist/block.tk.ase-FWCB6VBO.js +360 -0
  65. package/dist/block.tk.bam-Q5UFUABN.js +1901 -0
  66. package/dist/block.tk.bedgraphdot-KBI3GFDM.js +379 -0
  67. package/dist/block.tk.bigwig.ui-KXNFX7G7.js +206 -0
  68. package/dist/block.tk.hicstraw-MQBH3YAJ.js +818 -0
  69. package/dist/block.tk.junction-EBTVXLJH.js +2358 -0
  70. package/dist/block.tk.junction.textmatrixui-ETYLCP2O.js +194 -0
  71. package/dist/block.tk.ld-NLB6L6WQ.js +94 -0
  72. package/dist/block.tk.menu-PJLCOXVJ.js +1024 -0
  73. package/dist/block.tk.pgv-JOIQVWL2.js +938 -0
  74. package/dist/brainImaging-SPRC3QFB.js +515 -0
  75. package/dist/brainRegions-LGQGRWG7.js +217 -0
  76. package/dist/brainRegions-LGQGRWG7.js.map +7 -0
  77. package/dist/bubbleHeatmap-CFTZ5RXH.js +378 -0
  78. package/dist/cellTypeBubbleHeatmap-DXPLFT5U.js +278 -0
  79. package/dist/chunk-2BQ572SL.js +102 -0
  80. package/dist/chunk-2DQIQYY3.js +103 -0
  81. package/dist/chunk-2POQWEK6.js +134 -0
  82. package/dist/chunk-2SQEVMAL.js +446 -0
  83. package/dist/chunk-37HTZ6IG.js +158 -0
  84. package/dist/chunk-452765PG.js +2676 -0
  85. package/dist/chunk-4DXQJGJ7.js +31 -0
  86. package/dist/chunk-4OLM3KSB.js +2708 -0
  87. package/dist/chunk-4OLM3KSB.js.map +7 -0
  88. package/dist/chunk-54KC7DAB.js +178 -0
  89. package/dist/chunk-54KC7DAB.js.map +7 -0
  90. package/dist/chunk-5D5YTFI2.js +783 -0
  91. package/dist/chunk-5D5YTFI2.js.map +7 -0
  92. package/dist/chunk-5DBW3WLK.js +129 -0
  93. package/dist/chunk-5ILEFNXJ.js +402 -0
  94. package/dist/chunk-5UO7MKCO.js +59 -0
  95. package/dist/chunk-7R7P6VMT.js +243 -0
  96. package/dist/chunk-7X6NF7NI.js +96 -0
  97. package/dist/chunk-ANGLZ4XR.js +26 -0
  98. package/dist/chunk-BMQDU7KN.js +38 -0
  99. package/dist/chunk-C5TU4AYP.js +281 -0
  100. package/dist/chunk-DBQA6QIJ.js +4311 -0
  101. package/dist/chunk-DBQA6QIJ.js.map +7 -0
  102. package/dist/chunk-DHNET3P4.js +42 -0
  103. package/dist/chunk-EGKHDALO.js +382 -0
  104. package/dist/chunk-EPWGUWQP.js +34 -0
  105. package/dist/chunk-F3EYPES3.js +1339 -0
  106. package/dist/chunk-F4DM3WS4.js +194 -0
  107. package/dist/chunk-FTLCINDC.js +294 -0
  108. package/dist/chunk-GT6WJUJY.js +480 -0
  109. package/dist/chunk-GWCK5QGV.js +70 -0
  110. package/dist/chunk-HJSGHFJ6.js +464 -0
  111. package/dist/chunk-HS6BTSFX.js +49 -0
  112. package/dist/chunk-IB5TKNG5.js +5071 -0
  113. package/dist/chunk-IIMTOPH3.js +54 -0
  114. package/dist/chunk-ILEXRHF7.js +367 -0
  115. package/dist/chunk-ILEXRHF7.js.map +7 -0
  116. package/dist/chunk-IZUYLFOX.js +1608 -0
  117. package/dist/chunk-IZUYLFOX.js.map +7 -0
  118. package/dist/chunk-JAXN3Q3K.js +272 -0
  119. package/dist/chunk-K6PYTAXW.js +2853 -0
  120. package/dist/chunk-K6PYTAXW.js.map +7 -0
  121. package/dist/chunk-KIRZXPMB.js +141 -0
  122. package/dist/chunk-KT4OZVO3.js +1275 -0
  123. package/dist/chunk-KT4OZVO3.js.map +7 -0
  124. package/dist/chunk-L32KMIC3.js +54 -0
  125. package/dist/chunk-LB7NENEB.js +123 -0
  126. package/dist/chunk-LDWMVZYF.js +562 -0
  127. package/dist/chunk-M367Y7ML.js +140 -0
  128. package/dist/chunk-M4XXKTH2.js +339 -0
  129. package/dist/chunk-ME7OF3CS.js +176 -0
  130. package/dist/chunk-N2CXLMNX.js +626 -0
  131. package/dist/chunk-N7DVQTPC.js +119 -0
  132. package/dist/chunk-N7TD7N7D.js +518 -0
  133. package/dist/chunk-NBX6TT5C.js +299 -0
  134. package/dist/chunk-NLR7JIMM.js +1986 -0
  135. package/dist/chunk-NLR7JIMM.js.map +7 -0
  136. package/dist/chunk-NSRGYBDM.js +339 -0
  137. package/dist/chunk-NVS7KYYI.js +379 -0
  138. package/dist/chunk-OVPEMVXT.js +397 -0
  139. package/dist/chunk-OXWLQQXL.js +274 -0
  140. package/dist/chunk-Q5SK3U2T.js +24163 -0
  141. package/dist/chunk-Q5SK3U2T.js.map +7 -0
  142. package/dist/chunk-QGGSYEVJ.js +55 -0
  143. package/dist/chunk-QLEVONLD.js +50 -0
  144. package/dist/chunk-RFW5BRIZ.js +1233 -0
  145. package/dist/chunk-RFW5BRIZ.js.map +7 -0
  146. package/dist/chunk-RNWHB5DI.js +98 -0
  147. package/dist/chunk-RPDVFM7E.js +2133 -0
  148. package/dist/chunk-RPDVFM7E.js.map +7 -0
  149. package/dist/chunk-RUHLDUOT.js +203 -0
  150. package/dist/chunk-RV34WFGZ.js +197 -0
  151. package/dist/chunk-SDVE5ECI.js +6360 -0
  152. package/dist/chunk-SWO6DZTG.js +170 -0
  153. package/dist/chunk-SYPSS3JQ.js +387 -0
  154. package/dist/chunk-TDM3645O.js +2327 -0
  155. package/dist/chunk-VVO3R5JV.js +217 -0
  156. package/dist/chunk-VYEU6Y35.js +14 -0
  157. package/dist/chunk-WGXC6IEF.js +263 -0
  158. package/dist/chunk-WPDM57B5.js +1720 -0
  159. package/dist/chunk-WS7WKS2B.js +2784 -0
  160. package/dist/chunk-WTAPOH2W.js +22699 -0
  161. package/dist/chunk-WTAPOH2W.js.map +7 -0
  162. package/dist/chunk-X63NSV33.js +276 -0
  163. package/dist/chunk-XXNRSSBR.js +56 -0
  164. package/dist/chunk-YD6UGDFI.js +102 -0
  165. package/dist/chunk-YRIYDFNU.js +160 -0
  166. package/dist/chunk-YY5WQQ3J.js +194 -0
  167. package/dist/chunk-Z2ZITHT4.js +4195 -0
  168. package/dist/chunk-Z4SM3FBK.js +302 -0
  169. package/dist/chunk-ZEYEIUEZ.js +240 -0
  170. package/dist/chunk-ZLYTDHQP.js +677 -0
  171. package/dist/chunk-ZWCVRVV4.js +550 -0
  172. package/dist/cohort-FZNMFWOX.js +70 -0
  173. package/dist/condition-AJJLFCBQ.js +327 -0
  174. package/dist/controls-SZOLV37V.js +34 -0
  175. package/dist/controls.config-CVP75WFA.js +34 -0
  176. package/dist/correlation-UFJFQHQ3.js +95 -0
  177. package/dist/customdata.inputui-HOVA4A6O.js +284 -0
  178. package/dist/dataDownload-VTUG4IOK.js +329 -0
  179. package/dist/databrowser.ui-O5S4Y4EK.js +425 -0
  180. package/dist/dictionary-L2UNNNP7.js +113 -0
  181. package/dist/dnaMethylation-B4SWZI4O.js +33 -0
  182. package/dist/dnaMethylation.integration.spec-ANJAMNYJ.js +198 -0
  183. package/dist/dofetch-F5XSHQIS.js +48 -0
  184. package/dist/e2pca-66ARIMKL.js +344 -0
  185. package/dist/ep-OFGJYVUY.js +1249 -0
  186. package/dist/expclust.gdc.spec-22RXQTTP.js +302 -0
  187. package/dist/facet-GVZQ3RPN.js +519 -0
  188. package/dist/gb-HEPGVYEK.js +81 -0
  189. package/dist/geneExpClustering-3NU2U422.js +244 -0
  190. package/dist/geneExpression-FXQ4L2J2.js +310 -0
  191. package/dist/geneExpression-XYVYJJA5.js +33 -0
  192. package/dist/geneExpression.unit.spec-K3FIRSNK.js +99 -0
  193. package/dist/geneORA-5M2JSDMF.js +273 -0
  194. package/dist/geneRanking-TP3R3CS3.js +548 -0
  195. package/dist/geneVariant-232EYUFJ.js +36 -0
  196. package/dist/geneVariant-BHXTPUDC.js +286 -0
  197. package/dist/geneVariant.integration.spec-ICFHVFIR.js +388 -0
  198. package/dist/genefusion.ui-ABRCUQFC.js +303 -0
  199. package/dist/geneset-N42FIVA6.js +203 -0
  200. package/dist/genomeBrowser.spec-5HKQKLRU.js +276 -0
  201. package/dist/grin2-H2KJYLP6.js +1137 -0
  202. package/dist/grin2-NGMTEMXF.js +70 -0
  203. package/dist/hierCluster-JU5JPLM7.js +55 -0
  204. package/dist/hierCluster-LSSH275H.js +59 -0
  205. package/dist/hierCluster.config-ILOR7GBB.js +36 -0
  206. package/dist/hierCluster.integration.spec-CNR5OJOH.js +483 -0
  207. package/dist/hierCluster.interactivity-TLEIVTFK.js +49 -0
  208. package/dist/hierCluster.renderers-P7JNIT3N.js +19 -0
  209. package/dist/imagePlot-BF67SXQR.js +156 -0
  210. package/dist/importPlot-OHXSXNZN.js +8 -0
  211. package/dist/isoformExpression-4VKHE4HA.js +35 -0
  212. package/dist/isoformExpression.unit.spec-4TVSIFG4.js +237 -0
  213. package/dist/junction-VUHORV43.js +36 -0
  214. package/dist/junction.customTerm-FRYWSS4P.js +16 -0
  215. package/dist/junction.unit.spec-KKVLYT7Q.js +182 -0
  216. package/dist/launch.adhoc-UDYMFZTQ.js +37 -0
  217. package/dist/leftlabel.sample-R5FFBWG3.js +258 -0
  218. package/dist/legacyDataset-IEFWFVS6.js +117 -0
  219. package/dist/lollipop-3IX6ZYUN.js +166 -0
  220. package/dist/maf-42UFYSL4.js +455 -0
  221. package/dist/maftimeline-M5WYEN62.js +587 -0
  222. package/dist/matrix-CI76EDHU.js +54 -0
  223. package/dist/matrix-WJZKA6VR.js +59 -0
  224. package/dist/matrix.cells-ZFKVIPDC.js +26 -0
  225. package/dist/matrix.config-24TFHBEM.js +37 -0
  226. package/dist/matrix.data-NCGZPNWR.js +23 -0
  227. package/dist/matrix.groups-XQJTGM6M.js +26 -0
  228. package/dist/matrix.integration.spec-OGXZUDE6.js +3160 -0
  229. package/dist/matrix.interactivity-ZOOTPNSW.js +37 -0
  230. package/dist/matrix.layout-5J2YENK3.js +39 -0
  231. package/dist/matrix.legend-U36VCS46.js +20 -0
  232. package/dist/matrix.renderers-4KFE7ZVR.js +34 -0
  233. package/dist/matrix.serieses-AW7XBXLJ.js +19 -0
  234. package/dist/matrix.sort-7PMECLOE.js +26 -0
  235. package/dist/matrix.sort.unit.spec-GIA2YOTQ.js +468 -0
  236. package/dist/matrix.sorterUi-J6PRUT6J.js +16 -0
  237. package/dist/matrix.sorterUi.unit.spec-OPGKZZL6.js +338 -0
  238. package/dist/matrix.unit.spec-7UIVVR4T.js +150 -0
  239. package/dist/mavb-MSYUMT6W.js +727 -0
  240. package/dist/mds.fimo-OYEAQP37.js +513 -0
  241. package/dist/mds.samplescatterplot-EXISSRQQ.js +1545 -0
  242. package/dist/mds.survivalplot-SZST6BLN.js +477 -0
  243. package/dist/multivalue-YDE7L75Y.js +83 -0
  244. package/dist/numericDictTermCluster-5AKP6ICC.js +63 -0
  245. package/dist/oncomatrix-2OEIYWR6.js +290 -0
  246. package/dist/oncomatrix.spec-CXQW4JWU.js +443 -0
  247. package/dist/plot.2dvaf-LN7A3NNC.js +372 -0
  248. package/dist/plot.app-YIQOY2Z7.js +36 -0
  249. package/dist/plot.barplot-HF2J25XP.js +97 -0
  250. package/dist/plot.boxplot-YJH4L27U.js +146 -0
  251. package/dist/plot.brainImaging-PS4TRSPI.js +51 -0
  252. package/dist/plot.disco-BN5RNZ6Q.js +99 -0
  253. package/dist/plot.ssgq-N2HTOIY3.js +134 -0
  254. package/dist/plot.vaf2cov-6AOHRUQ2.js +253 -0
  255. package/dist/polar2-TC5OEJRE.js +232 -0
  256. package/dist/profileForms-5WV2TSBB.js +941 -0
  257. package/dist/profilePlot-OJLLW44P.js +49 -0
  258. package/dist/proteinView-CGNAJN4S.js +1357 -0
  259. package/dist/proteinView-CGNAJN4S.js.map +7 -0
  260. package/dist/proteomeCohortCompare-XXQGGVCF.js +912 -0
  261. package/dist/proteomeCohortCompare-XXQGGVCF.js.map +7 -0
  262. package/dist/pseudbulk.unit.spec-RAYRGN6C.js +86 -0
  263. package/dist/pseudobulk-ADHAYVSQ.js +35 -0
  264. package/dist/qualitative-JXEI3IYC.js +38 -0
  265. package/dist/radar2-BWTKSTT3.js +327 -0
  266. package/dist/radarFacility2-WIRSKTDG.js +335 -0
  267. package/dist/rememberedGvQ.unit.spec-N43O4YTF.js +211 -0
  268. package/dist/render-J7WOYBOL.js +33 -0
  269. package/dist/report-DRPCXX2B.js +217 -0
  270. package/dist/sampleView-BV6BQGGQ.js +43 -0
  271. package/dist/samplelst-ZD63EYO7.js +106 -0
  272. package/dist/samplematrix-ZZ3DVELU.js +2193 -0
  273. package/dist/sc-MUI43YTB.js +81 -0
  274. package/dist/scatter-7B44HTKN.js +88 -0
  275. package/dist/scatter-UEDVIE4Y.js +880 -0
  276. package/dist/selectGenomeWithTklst-WGOKGVZ5.js +129 -0
  277. package/dist/singleCellCellType-Z7OXK7PI.js +33 -0
  278. package/dist/singleCellCellType.unit.spec-IIOVCCJQ.js +154 -0
  279. package/dist/singleCellGeneExpression-LYZAIJ2Z.js +33 -0
  280. package/dist/singleCellGeneExpression.unit.spec-67AAWZTG.js +148 -0
  281. package/dist/singleCellPlot-TXPYQLSH.js +49 -0
  282. package/dist/singlecell-22OG6HNI.js +1566 -0
  283. package/dist/singlecell-7TBALI2S.js +81 -0
  284. package/dist/snp-3U2G3Z57.js +33 -0
  285. package/dist/snp.unit.spec-BMBBUBYD.js +171 -0
  286. package/dist/snplocus-SSVZDIQV.js +203 -0
  287. package/dist/spliceevent.a53ss.diagram-FK7CN4AU.js +146 -0
  288. package/dist/spliceevent.exonskip.diagram-EFLGV3O4.js +278 -0
  289. package/dist/spliceevent.noeventdiagram-2DYO7CCZ.js +455 -0
  290. package/dist/ssGSEA-52LWBQJP.js +33 -0
  291. package/dist/ssGSEA.unit.spec-3JV6WHUQ.js +83 -0
  292. package/dist/stattable-RLMYQ4G6.js +117 -0
  293. package/dist/studyCatalog-DKB3U7EV.js +414 -0
  294. package/dist/studyCatalog-DKB3U7EV.js.map +7 -0
  295. package/dist/summarizeCnvGeneexp-QPRYAKC2.js +158 -0
  296. package/dist/summarizeGeneexpSurvival-RWVQXEKB.js +105 -0
  297. package/dist/summarizeMutationCnv-DW5F6NUJ.js +159 -0
  298. package/dist/summarizeMutationDiagnosis-5FOQ7CHI.js +35 -0
  299. package/dist/summarizeMutationSurvival-4UKB4EVO.js +99 -0
  300. package/dist/summary-TYC6QNT4.js +42 -0
  301. package/dist/summary.integration.spec-5GLJJZNM.js +409 -0
  302. package/dist/summaryInput-4IJGKW4P.js +242 -0
  303. package/dist/sunburst-G7DGATWP.js +278 -0
  304. package/dist/survival-IHM6A7LL.js +1248 -0
  305. package/dist/survival-IHM6A7LL.js.map +7 -0
  306. package/dist/survival-MKNABJPU.js +53 -0
  307. package/dist/survival.integration.spec-THOKI3DL.js +613 -0
  308. package/dist/survival.integration.spec-THOKI3DL.js.map +7 -0
  309. package/dist/svgraph-VB7JWWR5.js +1382 -0
  310. package/dist/svmr-VLQIO2U5.js +3837 -0
  311. package/dist/table-EAXMDWOY.js +197 -0
  312. package/dist/termCollection-5LG7ICQY.js +252 -0
  313. package/dist/termCollection-SB6MWLFK.js +33 -0
  314. package/dist/termCollection.unit.spec-H5ITGTR3.js +299 -0
  315. package/dist/termCollectionFractionSelection-2XZSTDCQ.js +42 -0
  316. package/dist/termCollectionFractionSelection.unit.spec-BIO7V6KA.js +188 -0
  317. package/dist/tk-TRWYZLQ2.js +1121 -0
  318. package/dist/tk-VZI5HNSX.js +41 -0
  319. package/dist/tp.ui-J5SNNAT3.js +1454 -0
  320. package/dist/tvs.dt-6YHFJPER.js +34 -0
  321. package/dist/tvs.dtcnv.categorical-WTIE63GM.js +35 -0
  322. package/dist/tvs.dtcnv.continuous-OCMKGTF5.js +67 -0
  323. package/dist/tvs.dtfusion-CA23UNM3.js +35 -0
  324. package/dist/tvs.dtitd-VSYMR3OD.js +35 -0
  325. package/dist/tvs.dtsnvindel-YBNO3CYF.js +35 -0
  326. package/dist/tvs.dtsv-S743GBB5.js +35 -0
  327. package/dist/tvs.numeric-22AHXO5K.js +20 -0
  328. package/dist/tvs.samplelst-XAJO4EM6.js +98 -0
  329. package/dist/tvs.termCollection-QOVJGAUC.js +124 -0
  330. package/dist/vocabulary-6EADTHP3.js +36 -0
  331. package/dist/wsi.direct-2WB2NGC5.js +8184 -0
  332. package/dist/wsi.direct-2WB2NGC5.js.map +7 -0
  333. package/package.json +3 -3
  334. package/dist/2dmaf-JIY57FG6.js +0 -1367
  335. package/dist/AIProjectAdmin-DGTBIE6E.js +0 -952
  336. package/dist/AIProjectAdmin-DGTBIE6E.js.map +0 -7
  337. package/dist/AggMatrixInput-FH6WRTLP.js +0 -277
  338. package/dist/AggregateMatrix-MGEX5AVF.js +0 -41
  339. package/dist/AppHeader-FFOQFH55.js +0 -830
  340. package/dist/BoxPlot-KCY4JVRX.js +0 -1211
  341. package/dist/CorrelationVolcano-E5URKQSM.js +0 -614
  342. package/dist/Cuminc-CBPMCKIC.js +0 -1219
  343. package/dist/DE-VANPWKZI.js +0 -88
  344. package/dist/DE-VANPWKZI.js.map +0 -7
  345. package/dist/DEinput-MONPHDB2.js +0 -405
  346. package/dist/DEinput-MONPHDB2.js.map +0 -7
  347. package/dist/DifferentialAnalysis-XRBS4PZI.js +0 -237
  348. package/dist/Disco-V2VJIDWG.js +0 -3389
  349. package/dist/Disco.UI-OEF5JXBU.js +0 -243
  350. package/dist/DmrPlot-KZUWJWBD.js +0 -637
  351. package/dist/GB-IYTEMMU7.js +0 -1391
  352. package/dist/GSEA-QB62B5KB.js +0 -851
  353. package/dist/GeneExpInput-CXX7SXMQ.js +0 -362
  354. package/dist/Geomap-QNHSCN4N.js +0 -84
  355. package/dist/HicApp-UIULZYYJ.js +0 -2245
  356. package/dist/IDCViewer-B2JENGZZ.js +0 -10812
  357. package/dist/NumBinaryEditor-JOU2J23M.js +0 -279
  358. package/dist/NumBinaryEditor.unit.spec-UXZBBVWL.js +0 -312
  359. package/dist/NumContEditor-BJGP4PVS.js +0 -105
  360. package/dist/NumContEditor.unit.spec-HEXOYIXC.js +0 -164
  361. package/dist/NumCustomBinEditor-HDRTVWNK.js +0 -33
  362. package/dist/NumCustomBinEditor.unit.spec-MN6QZ3ZB.js +0 -397
  363. package/dist/NumDiscreteEditor-JUBR45IJ.js +0 -170
  364. package/dist/NumDiscreteEditor.unit.spec-SDK2LR5B.js +0 -233
  365. package/dist/NumRegularBinEditor-AQPRZ3MI.js +0 -33
  366. package/dist/NumRegularBinEditor.unit.spec-GM3SFB2N.js +0 -278
  367. package/dist/NumSplineEditor-LYLROEGE.js +0 -210
  368. package/dist/NumSplineEditor.unit.spec-3Q2HP6IB.js +0 -224
  369. package/dist/NumericDensity-3ZCDZORO.js +0 -33
  370. package/dist/NumericDensity.unit.spec-MNIAR2PR.js +0 -418
  371. package/dist/NumericHandler-MUNEB5IS.js +0 -34
  372. package/dist/NumericHandler.unit.spec-KPWG2T27.js +0 -214
  373. package/dist/ProteomeInput-NEUHQ2G4.js +0 -388
  374. package/dist/Regression-C75T5LOY.js +0 -1416
  375. package/dist/RunChart2-CMQ2BBSJ.js +0 -749
  376. package/dist/SC-HYK26DXI.js +0 -1107
  377. package/dist/Violin-J5Z3NKMU.js +0 -1082
  378. package/dist/Volcano-VZGOJFM7.js +0 -1573
  379. package/dist/Volcano-VZGOJFM7.js.map +0 -7
  380. package/dist/WSIViewer-EEKHINZU.js +0 -18892
  381. package/dist/WSIViewer-EEKHINZU.js.map +0 -7
  382. package/dist/Wsi-ZP36MKK7.js +0 -431
  383. package/dist/WsiSamplesPlot-6G3U7U5L.js +0 -160
  384. package/dist/WsiSamplesPlot-6G3U7U5L.js.map +0 -7
  385. package/dist/adSandbox-W4THMDUI.js +0 -33
  386. package/dist/animatedBubbleChart-2IVR2WC3.js +0 -547
  387. package/dist/app-LAIPU5IO.js +0 -42
  388. package/dist/app-WMRDJINC.js +0 -32
  389. package/dist/bam-44WCWB5P.js +0 -876
  390. package/dist/barchart-P6XKCJRF.js +0 -42
  391. package/dist/barchart2-5NTYCQYN.js +0 -309
  392. package/dist/block-VEOD6CP4.js +0 -6249
  393. package/dist/block.init-RCPDUYAV.js +0 -33
  394. package/dist/block.mds.expressionrank-KALPK27B.js +0 -354
  395. package/dist/block.mds.geneboxplot-ZASU25BG.js +0 -823
  396. package/dist/block.mds.junction-DCVGVSYG.js +0 -1539
  397. package/dist/block.mds.svcnv-CEGYMRSE.js +0 -6796
  398. package/dist/block.svg-AW4E7NSS.js +0 -159
  399. package/dist/block.tk.aicheck-4ZPFLI5I.js +0 -278
  400. package/dist/block.tk.ase-F3VMNBE3.js +0 -360
  401. package/dist/block.tk.bam-3VDSEMVO.js +0 -1901
  402. package/dist/block.tk.bedgraphdot-3F6AMWFD.js +0 -379
  403. package/dist/block.tk.bigwig.ui-QO334QC3.js +0 -206
  404. package/dist/block.tk.hicstraw-VA7GNOOD.js +0 -818
  405. package/dist/block.tk.junction-7WIZ63R7.js +0 -2358
  406. package/dist/block.tk.junction.textmatrixui-ZHSVODGI.js +0 -194
  407. package/dist/block.tk.ld-JME4SP6A.js +0 -94
  408. package/dist/block.tk.menu-7BFQTH3Q.js +0 -1024
  409. package/dist/block.tk.pgv-C2N7UFYT.js +0 -938
  410. package/dist/brainImaging-6XFUKFZE.js +0 -515
  411. package/dist/brainRegions-SEMS7V4O.js +0 -216
  412. package/dist/brainRegions-SEMS7V4O.js.map +0 -7
  413. package/dist/bubbleHeatmap-YO4232WO.js +0 -378
  414. package/dist/cellTypeBubbleHeatmap-GM4BGCQ3.js +0 -278
  415. package/dist/chunk-2YDQC5BV.js +0 -562
  416. package/dist/chunk-3QMXNK7G.js +0 -379
  417. package/dist/chunk-4C2N2BQC.js +0 -6360
  418. package/dist/chunk-4Q46RDNU.js +0 -34
  419. package/dist/chunk-4YEDSMFX.js +0 -123
  420. package/dist/chunk-56HEUYYM.js +0 -2891
  421. package/dist/chunk-56HEUYYM.js.map +0 -7
  422. package/dist/chunk-5VMEMA4O.js +0 -158
  423. package/dist/chunk-66BJC6ZX.js +0 -217
  424. package/dist/chunk-6JBLNS4D.js +0 -387
  425. package/dist/chunk-6RN4RVKF.js +0 -480
  426. package/dist/chunk-6SKLD7JU.js +0 -59
  427. package/dist/chunk-7C45EYL6.js +0 -274
  428. package/dist/chunk-7RX5UEF3.js +0 -24193
  429. package/dist/chunk-7RX5UEF3.js.map +0 -7
  430. package/dist/chunk-AAM7HHPU.js +0 -103
  431. package/dist/chunk-AFMD6226.js +0 -240
  432. package/dist/chunk-AK3SW3VT.js +0 -176
  433. package/dist/chunk-BBYVVPEO.js +0 -1271
  434. package/dist/chunk-BBYVVPEO.js.map +0 -7
  435. package/dist/chunk-BEJJS2HC.js +0 -194
  436. package/dist/chunk-BMVRYEN2.js +0 -397
  437. package/dist/chunk-BZYTL2EU.js +0 -294
  438. package/dist/chunk-CLOHFGFX.js +0 -14
  439. package/dist/chunk-D6G64XPJ.js +0 -96
  440. package/dist/chunk-DAJT3XVZ.js +0 -31
  441. package/dist/chunk-DKPV7GCZ.js +0 -7966
  442. package/dist/chunk-DKPV7GCZ.js.map +0 -7
  443. package/dist/chunk-DMT6S5HJ.js +0 -5071
  444. package/dist/chunk-DO4SLQNP.js +0 -194
  445. package/dist/chunk-DUGOFIQS.js +0 -464
  446. package/dist/chunk-E3O6ZEWQ.js +0 -129
  447. package/dist/chunk-EJ3SSI5J.js +0 -382
  448. package/dist/chunk-FSDY4QVA.js +0 -272
  449. package/dist/chunk-FUEJFIQX.js +0 -203
  450. package/dist/chunk-FUSTNOQZ.js +0 -2130
  451. package/dist/chunk-FUSTNOQZ.js.map +0 -7
  452. package/dist/chunk-GAW2EETX.js +0 -281
  453. package/dist/chunk-GF6CKFXE.js +0 -1720
  454. package/dist/chunk-GI3RVOO4.js +0 -339
  455. package/dist/chunk-GQ6T62VJ.js +0 -141
  456. package/dist/chunk-GTMHDSOQ.js +0 -550
  457. package/dist/chunk-H555QBYP.js +0 -243
  458. package/dist/chunk-HDTFYTEL.js +0 -2694
  459. package/dist/chunk-HDTFYTEL.js.map +0 -7
  460. package/dist/chunk-HKQDZKSF.js +0 -119
  461. package/dist/chunk-HLZVDBAI.js +0 -1985
  462. package/dist/chunk-HLZVDBAI.js.map +0 -7
  463. package/dist/chunk-HWMZ2OHD.js +0 -49
  464. package/dist/chunk-JG6SE6YU.js +0 -1339
  465. package/dist/chunk-JSVLKCIQ.js +0 -160
  466. package/dist/chunk-JVRGY6IU.js +0 -54
  467. package/dist/chunk-JXUFZZRJ.js +0 -626
  468. package/dist/chunk-K5YG7MVJ.js +0 -2676
  469. package/dist/chunk-KAUMP3RR.js +0 -56
  470. package/dist/chunk-KLGNLUXR.js +0 -518
  471. package/dist/chunk-KWLBPOPE.js +0 -38
  472. package/dist/chunk-L42F5J5C.js +0 -185
  473. package/dist/chunk-L42F5J5C.js.map +0 -7
  474. package/dist/chunk-LXTBOUBG.js +0 -677
  475. package/dist/chunk-MCRWA655.js +0 -98
  476. package/dist/chunk-NGBQL4CM.js +0 -54
  477. package/dist/chunk-OKUFTLFL.js +0 -4297
  478. package/dist/chunk-OKUFTLFL.js.map +0 -7
  479. package/dist/chunk-ONXYJWY6.js +0 -102
  480. package/dist/chunk-OYHID2D7.js +0 -50
  481. package/dist/chunk-PT5JDHPR.js +0 -42
  482. package/dist/chunk-PZZIDJIB.js +0 -806
  483. package/dist/chunk-PZZIDJIB.js.map +0 -7
  484. package/dist/chunk-S5SOLLGM.js +0 -1654
  485. package/dist/chunk-S5SOLLGM.js.map +0 -7
  486. package/dist/chunk-S6XG74R4.js +0 -70
  487. package/dist/chunk-TAEU6SPJ.js +0 -197
  488. package/dist/chunk-UBZRZ3PS.js +0 -102
  489. package/dist/chunk-UM5NWVMA.js +0 -140
  490. package/dist/chunk-VHDVTQFR.js +0 -2784
  491. package/dist/chunk-VRY7WSS6.js +0 -170
  492. package/dist/chunk-VSPUFGDX.js +0 -339
  493. package/dist/chunk-VVDFRJVN.js +0 -306
  494. package/dist/chunk-VVDFRJVN.js.map +0 -7
  495. package/dist/chunk-WFOC4W5A.js +0 -55
  496. package/dist/chunk-WVPFLPWB.js +0 -402
  497. package/dist/chunk-WZUUWGEU.js +0 -22834
  498. package/dist/chunk-WZUUWGEU.js.map +0 -7
  499. package/dist/chunk-X7IAKV5Z.js +0 -276
  500. package/dist/chunk-XHOL37O6.js +0 -299
  501. package/dist/chunk-XJGPL2JZ.js +0 -39
  502. package/dist/chunk-XJGPL2JZ.js.map +0 -7
  503. package/dist/chunk-XPB2GP3C.js +0 -2327
  504. package/dist/chunk-XPVU5AMT.js +0 -263
  505. package/dist/chunk-YLJOZP4P.js +0 -4195
  506. package/dist/chunk-YLWSTPPL.js +0 -302
  507. package/dist/chunk-YZVWOQBP.js +0 -134
  508. package/dist/chunk-ZB3RP5QP.js +0 -446
  509. package/dist/chunk-ZU47ERPU.js +0 -26
  510. package/dist/cohort-ZTT2PSQA.js +0 -70
  511. package/dist/condition-L5DXIAJT.js +0 -327
  512. package/dist/controls-ROZP2O7A.js +0 -34
  513. package/dist/controls.config-YQKGHMIP.js +0 -34
  514. package/dist/correlation-6AKRIQXN.js +0 -95
  515. package/dist/customdata.inputui-DD3OFHUS.js +0 -284
  516. package/dist/dataDownload-VHHSLSZV.js +0 -329
  517. package/dist/databrowser.ui-RLYJOEWQ.js +0 -425
  518. package/dist/dictionary-IMOOQHIH.js +0 -113
  519. package/dist/dnaMethylation-T6XUIOJF.js +0 -33
  520. package/dist/dnaMethylation.integration.spec-NRJOIDRD.js +0 -198
  521. package/dist/dofetch-MLAEV3A2.js +0 -48
  522. package/dist/e2pca-F3TGJOMW.js +0 -344
  523. package/dist/ep-UAF6OL2Y.js +0 -1249
  524. package/dist/expclust.gdc.spec-GHH3JQ65.js +0 -302
  525. package/dist/facet-MB4C7GII.js +0 -519
  526. package/dist/gb-C5YSAFWP.js +0 -81
  527. package/dist/geneExpClustering-3BRSI5BR.js +0 -244
  528. package/dist/geneExpression-K3IZLSYC.js +0 -310
  529. package/dist/geneExpression-SIAPRA3E.js +0 -33
  530. package/dist/geneExpression.unit.spec-I66QVNT5.js +0 -99
  531. package/dist/geneORA-SLM3SNNS.js +0 -273
  532. package/dist/geneRanking-4EFYOR6A.js +0 -548
  533. package/dist/geneVariant-O347F2OY.js +0 -286
  534. package/dist/geneVariant-Z3BUIBLS.js +0 -36
  535. package/dist/geneVariant.integration.spec-ZZ65EYEL.js +0 -388
  536. package/dist/genefusion.ui-TK6UKPDR.js +0 -303
  537. package/dist/geneset-MVXSEOKZ.js +0 -203
  538. package/dist/genomeBrowser.spec-QDB4Z2L6.js +0 -276
  539. package/dist/grin2-DCU6PLPU.js +0 -70
  540. package/dist/grin2-P6Z45MCJ.js +0 -1137
  541. package/dist/hierCluster-3H47NLKS.js +0 -55
  542. package/dist/hierCluster-JG6VXTCV.js +0 -59
  543. package/dist/hierCluster.config-IP6I7RTS.js +0 -36
  544. package/dist/hierCluster.integration.spec-7PUNHRRS.js +0 -483
  545. package/dist/hierCluster.interactivity-FIDVRACV.js +0 -49
  546. package/dist/hierCluster.renderers-QMJWUPAI.js +0 -19
  547. package/dist/imagePlot-CXYKBCWS.js +0 -156
  548. package/dist/importPlot-Z4A54RXH.js +0 -8
  549. package/dist/isoformExpression-DMDV2PZY.js +0 -35
  550. package/dist/isoformExpression.unit.spec-W2LIYOXS.js +0 -237
  551. package/dist/junction-R5GMEO7Z.js +0 -36
  552. package/dist/junction.customTerm-AI44GNFV.js +0 -16
  553. package/dist/junction.unit.spec-SCRCANOC.js +0 -182
  554. package/dist/launch.adhoc-THLTYZJT.js +0 -37
  555. package/dist/leftlabel.sample-GKQXEY4J.js +0 -258
  556. package/dist/legacyDataset-27L4DMCL.js +0 -117
  557. package/dist/lollipop-2TW6GGPY.js +0 -166
  558. package/dist/maf-A4PVW5V2.js +0 -455
  559. package/dist/maftimeline-QMX3HOAU.js +0 -587
  560. package/dist/matrix-BGRYRU3T.js +0 -54
  561. package/dist/matrix-GPXTUVCQ.js +0 -59
  562. package/dist/matrix.cells-C6OY7F5T.js +0 -26
  563. package/dist/matrix.config-Z5ZGHXDV.js +0 -37
  564. package/dist/matrix.data-WB26I3TF.js +0 -23
  565. package/dist/matrix.groups-C2V2CV4A.js +0 -26
  566. package/dist/matrix.integration.spec-3COAXQBV.js +0 -3160
  567. package/dist/matrix.interactivity-NGHIQR3A.js +0 -37
  568. package/dist/matrix.layout-NYIOESGN.js +0 -39
  569. package/dist/matrix.legend-Q5HHWP5Q.js +0 -20
  570. package/dist/matrix.renderers-GLXZARIP.js +0 -34
  571. package/dist/matrix.serieses-LDQEPXPD.js +0 -19
  572. package/dist/matrix.sort-44TQNRIX.js +0 -26
  573. package/dist/matrix.sort.unit.spec-T3BDWJ3Z.js +0 -468
  574. package/dist/matrix.sorterUi-6Y4YBQYL.js +0 -16
  575. package/dist/matrix.sorterUi.unit.spec-NHUYNMNU.js +0 -338
  576. package/dist/matrix.unit.spec-C7IRIBN6.js +0 -150
  577. package/dist/mavb-E37LI73X.js +0 -727
  578. package/dist/mds.fimo-YTGX7VEN.js +0 -513
  579. package/dist/mds.samplescatterplot-FFGGJSI3.js +0 -1545
  580. package/dist/mds.survivalplot-NCWRXXV4.js +0 -477
  581. package/dist/multivalue-N7A2PU5K.js +0 -83
  582. package/dist/numericDictTermCluster-AKQKRBQH.js +0 -63
  583. package/dist/oncomatrix-QPVGACMF.js +0 -290
  584. package/dist/oncomatrix.spec-6L2NDN2G.js +0 -443
  585. package/dist/plot.2dvaf-6TLON77B.js +0 -372
  586. package/dist/plot.app-VM273TXU.js +0 -36
  587. package/dist/plot.barplot-IQTZURHK.js +0 -97
  588. package/dist/plot.boxplot-WEXB6HII.js +0 -146
  589. package/dist/plot.brainImaging-REGSSBHV.js +0 -51
  590. package/dist/plot.disco-F25Z3FQL.js +0 -99
  591. package/dist/plot.ssgq-CRRK26RS.js +0 -134
  592. package/dist/plot.vaf2cov-WCNPZKXK.js +0 -253
  593. package/dist/plot.wsi-6OAPT5BA.js +0 -36
  594. package/dist/plot.wsi-6OAPT5BA.js.map +0 -7
  595. package/dist/polar2-MH5GPXHJ.js +0 -232
  596. package/dist/profileForms-2YX2OYDI.js +0 -941
  597. package/dist/profilePlot-FUTMZ2PP.js +0 -49
  598. package/dist/proteinView-6Z4ALZW2.js +0 -1562
  599. package/dist/proteinView-6Z4ALZW2.js.map +0 -7
  600. package/dist/proteomeCohortCompare-6GLFOYI5.js +0 -780
  601. package/dist/proteomeCohortCompare-6GLFOYI5.js.map +0 -7
  602. package/dist/pseudbulk.unit.spec-S7FDL3IX.js +0 -86
  603. package/dist/pseudobulk-A3LB23N2.js +0 -35
  604. package/dist/qualitative-5VJRMF4S.js +0 -38
  605. package/dist/radar2-2SJX4ZXN.js +0 -327
  606. package/dist/radarFacility2-7FPO34JS.js +0 -335
  607. package/dist/rememberedGvQ.unit.spec-WOQVPQ75.js +0 -211
  608. package/dist/render-ZLA2RRBP.js +0 -33
  609. package/dist/report-VCE6RILD.js +0 -217
  610. package/dist/sampleView-QYTX4OLI.js +0 -43
  611. package/dist/samplelst-7NGH3SUM.js +0 -106
  612. package/dist/samplematrix-SNAR6IBB.js +0 -2193
  613. package/dist/sc-2JETYAI4.js +0 -81
  614. package/dist/scatter-D7VZOBEE.js +0 -880
  615. package/dist/scatter-GHBQM2RR.js +0 -88
  616. package/dist/selectGenomeWithTklst-BD4GMGX3.js +0 -129
  617. package/dist/singleCellCellType-XHLOJVVC.js +0 -33
  618. package/dist/singleCellCellType.unit.spec-LCLR3IOD.js +0 -154
  619. package/dist/singleCellGeneExpression-JRBONI5C.js +0 -33
  620. package/dist/singleCellGeneExpression.unit.spec-Z2KSVCIG.js +0 -148
  621. package/dist/singleCellPlot-4462CQHF.js +0 -49
  622. package/dist/singlecell-CDUQ6MTO.js +0 -81
  623. package/dist/singlecell-SO3B5KJ7.js +0 -1566
  624. package/dist/snp-YE2MXKJO.js +0 -33
  625. package/dist/snp.unit.spec-MT57TGGQ.js +0 -171
  626. package/dist/snplocus-RSNKWY63.js +0 -203
  627. package/dist/spliceevent.a53ss.diagram-6N6YGYV7.js +0 -146
  628. package/dist/spliceevent.exonskip.diagram-LMNUS4XV.js +0 -278
  629. package/dist/spliceevent.noeventdiagram-LTBH4YD5.js +0 -455
  630. package/dist/ssGSEA-DPK4PDM2.js +0 -33
  631. package/dist/ssGSEA.unit.spec-K2SA7ME7.js +0 -83
  632. package/dist/stattable-PR47XT4F.js +0 -117
  633. package/dist/studyCatalog-GMUWIUL4.js +0 -378
  634. package/dist/studyCatalog-GMUWIUL4.js.map +0 -7
  635. package/dist/summarizeCnvGeneexp-YZEMDLES.js +0 -158
  636. package/dist/summarizeGeneexpSurvival-3TXV6ZNI.js +0 -105
  637. package/dist/summarizeMutationCnv-EBWSEHWJ.js +0 -159
  638. package/dist/summarizeMutationDiagnosis-FXA25W3O.js +0 -35
  639. package/dist/summarizeMutationSurvival-MR4AOMNS.js +0 -99
  640. package/dist/summary-4C6LGTMF.js +0 -42
  641. package/dist/summary.integration.spec-Y6JLH7NH.js +0 -409
  642. package/dist/summaryInput-NWT2DXWU.js +0 -242
  643. package/dist/sunburst-266MA7E2.js +0 -278
  644. package/dist/survival-CAZCIY2N.js +0 -53
  645. package/dist/survival-EILGNIY7.js +0 -1246
  646. package/dist/survival-EILGNIY7.js.map +0 -7
  647. package/dist/survival.integration.spec-34JJVLLI.js +0 -613
  648. package/dist/survival.integration.spec-34JJVLLI.js.map +0 -7
  649. package/dist/svgraph-OFUESREM.js +0 -1382
  650. package/dist/svmr-PVH42MY4.js +0 -3837
  651. package/dist/table-C2SICFZV.js +0 -197
  652. package/dist/termCollection-H4RL5WJG.js +0 -33
  653. package/dist/termCollection-TGYDI7NP.js +0 -252
  654. package/dist/termCollection.unit.spec-JSALS7GL.js +0 -299
  655. package/dist/termCollectionFractionSelection-YJVDNV4I.js +0 -42
  656. package/dist/termCollectionFractionSelection.unit.spec-4GM7P4ZW.js +0 -188
  657. package/dist/tk-RZCPSHJG.js +0 -1121
  658. package/dist/tk-SNTRA5CC.js +0 -41
  659. package/dist/tp.ui-2W4K3XH6.js +0 -1454
  660. package/dist/tvs.dt-GIPVC3R6.js +0 -34
  661. package/dist/tvs.dtcnv.categorical-TEYAS4OU.js +0 -35
  662. package/dist/tvs.dtcnv.continuous-VQRATYPZ.js +0 -67
  663. package/dist/tvs.dtfusion-P2KF5Z4H.js +0 -35
  664. package/dist/tvs.dtitd-TM6UROSH.js +0 -35
  665. package/dist/tvs.dtsnvindel-FZXC23NF.js +0 -35
  666. package/dist/tvs.dtsv-Y5QEJPYG.js +0 -35
  667. package/dist/tvs.numeric-3UXW4JHJ.js +0 -20
  668. package/dist/tvs.samplelst-MLAFPFER.js +0 -98
  669. package/dist/tvs.termCollection-ZQQDKESH.js +0 -124
  670. package/dist/vocabulary-JRUZPHMG.js +0 -36
  671. package/dist/wsi.direct-6QYNXOBY.js +0 -244
  672. package/dist/wsi.direct-6QYNXOBY.js.map +0 -7
  673. /package/dist/{2dmaf-JIY57FG6.js.map → 2dmaf-5OYM4MXA.js.map} +0 -0
  674. /package/dist/{AggMatrixInput-FH6WRTLP.js.map → AggMatrixInput-4VTI4Y6E.js.map} +0 -0
  675. /package/dist/{AggregateMatrix-MGEX5AVF.js.map → AggregateMatrix-K7SGNO63.js.map} +0 -0
  676. /package/dist/{AppHeader-FFOQFH55.js.map → AppHeader-WU6TO2OZ.js.map} +0 -0
  677. /package/dist/{BoxPlot-KCY4JVRX.js.map → BoxPlot-OW7U3XTF.js.map} +0 -0
  678. /package/dist/{CorrelationVolcano-E5URKQSM.js.map → CorrelationVolcano-B3JTTZHF.js.map} +0 -0
  679. /package/dist/{Cuminc-CBPMCKIC.js.map → Cuminc-AJEXWRU2.js.map} +0 -0
  680. /package/dist/{DifferentialAnalysis-XRBS4PZI.js.map → DifferentialAnalysis-BFCQBX5J.js.map} +0 -0
  681. /package/dist/{Disco-V2VJIDWG.js.map → Disco-ZJLVQRTC.js.map} +0 -0
  682. /package/dist/{Disco.UI-OEF5JXBU.js.map → Disco.UI-AEDACXW2.js.map} +0 -0
  683. /package/dist/{DmrPlot-KZUWJWBD.js.map → DmrPlot-QMRXAOM3.js.map} +0 -0
  684. /package/dist/{GB-IYTEMMU7.js.map → GB-MFU2UJ22.js.map} +0 -0
  685. /package/dist/{GSEA-QB62B5KB.js.map → GSEA-E3NHU22A.js.map} +0 -0
  686. /package/dist/{GeneExpInput-CXX7SXMQ.js.map → GeneExpInput-MIUNSOPY.js.map} +0 -0
  687. /package/dist/{Geomap-QNHSCN4N.js.map → Geomap-HAJG3STN.js.map} +0 -0
  688. /package/dist/{HicApp-UIULZYYJ.js.map → HicApp-ECFFIRWI.js.map} +0 -0
  689. /package/dist/{IDCViewer-B2JENGZZ.js.map → IDCViewer-TNSD3U2V.js.map} +0 -0
  690. /package/dist/{NumBinaryEditor-JOU2J23M.js.map → NumBinaryEditor-CNBGZ6WY.js.map} +0 -0
  691. /package/dist/{NumBinaryEditor.unit.spec-UXZBBVWL.js.map → NumBinaryEditor.unit.spec-SKFDALF3.js.map} +0 -0
  692. /package/dist/{NumContEditor-BJGP4PVS.js.map → NumContEditor-7ID2U7JL.js.map} +0 -0
  693. /package/dist/{NumContEditor.unit.spec-HEXOYIXC.js.map → NumContEditor.unit.spec-XHSQSAWK.js.map} +0 -0
  694. /package/dist/{NumCustomBinEditor-HDRTVWNK.js.map → NumCustomBinEditor-PAIPRJPO.js.map} +0 -0
  695. /package/dist/{NumCustomBinEditor.unit.spec-MN6QZ3ZB.js.map → NumCustomBinEditor.unit.spec-QYVZMMHV.js.map} +0 -0
  696. /package/dist/{NumDiscreteEditor-JUBR45IJ.js.map → NumDiscreteEditor-K2NZZQTH.js.map} +0 -0
  697. /package/dist/{NumDiscreteEditor.unit.spec-SDK2LR5B.js.map → NumDiscreteEditor.unit.spec-3CG5VEQL.js.map} +0 -0
  698. /package/dist/{NumRegularBinEditor-AQPRZ3MI.js.map → NumRegularBinEditor-EOVZ22TP.js.map} +0 -0
  699. /package/dist/{NumRegularBinEditor.unit.spec-GM3SFB2N.js.map → NumRegularBinEditor.unit.spec-FHTVH5FH.js.map} +0 -0
  700. /package/dist/{NumSplineEditor-LYLROEGE.js.map → NumSplineEditor-N3REMJUC.js.map} +0 -0
  701. /package/dist/{NumSplineEditor.unit.spec-3Q2HP6IB.js.map → NumSplineEditor.unit.spec-DZCP35GL.js.map} +0 -0
  702. /package/dist/{NumericDensity-3ZCDZORO.js.map → NumericDensity-42MWVI2S.js.map} +0 -0
  703. /package/dist/{NumericDensity.unit.spec-MNIAR2PR.js.map → NumericDensity.unit.spec-T2HHSQON.js.map} +0 -0
  704. /package/dist/{NumericHandler-MUNEB5IS.js.map → NumericHandler-5XU3SSPD.js.map} +0 -0
  705. /package/dist/{NumericHandler.unit.spec-KPWG2T27.js.map → NumericHandler.unit.spec-3F23KSAQ.js.map} +0 -0
  706. /package/dist/{ProteomeInput-NEUHQ2G4.js.map → ProteomeInput-UN2BUNRO.js.map} +0 -0
  707. /package/dist/{Regression-C75T5LOY.js.map → Regression-HWLJENA5.js.map} +0 -0
  708. /package/dist/{RunChart2-CMQ2BBSJ.js.map → RunChart2-YO55WE4M.js.map} +0 -0
  709. /package/dist/{SC-HYK26DXI.js.map → SC-LEDJ4DQR.js.map} +0 -0
  710. /package/dist/{Violin-J5Z3NKMU.js.map → Violin-E6PDJZ2B.js.map} +0 -0
  711. /package/dist/{Wsi-ZP36MKK7.js.map → Wsi-S675CYTW.js.map} +0 -0
  712. /package/dist/{adSandbox-W4THMDUI.js.map → adSandbox-ZJQ5ZW2T.js.map} +0 -0
  713. /package/dist/{animatedBubbleChart-2IVR2WC3.js.map → animatedBubbleChart-LRUS7W36.js.map} +0 -0
  714. /package/dist/{app-LAIPU5IO.js.map → app-7Q3QIBU4.js.map} +0 -0
  715. /package/dist/{app-WMRDJINC.js.map → app-PKSI4MV5.js.map} +0 -0
  716. /package/dist/{bam-44WCWB5P.js.map → bam-X5JH5ZT7.js.map} +0 -0
  717. /package/dist/{barchart-P6XKCJRF.js.map → barchart-UT6J4L2N.js.map} +0 -0
  718. /package/dist/{barchart2-5NTYCQYN.js.map → barchart2-ZG5QJO3C.js.map} +0 -0
  719. /package/dist/{block-VEOD6CP4.js.map → block-TC466NGW.js.map} +0 -0
  720. /package/dist/{block.init-RCPDUYAV.js.map → block.init-CIBNSYAC.js.map} +0 -0
  721. /package/dist/{block.mds.expressionrank-KALPK27B.js.map → block.mds.expressionrank-EY5PCQCK.js.map} +0 -0
  722. /package/dist/{block.mds.geneboxplot-ZASU25BG.js.map → block.mds.geneboxplot-R6AOMHO5.js.map} +0 -0
  723. /package/dist/{block.mds.junction-DCVGVSYG.js.map → block.mds.junction-JMV6FNYC.js.map} +0 -0
  724. /package/dist/{block.mds.svcnv-CEGYMRSE.js.map → block.mds.svcnv-IHTV3QYG.js.map} +0 -0
  725. /package/dist/{block.svg-AW4E7NSS.js.map → block.svg-NTFLVQAQ.js.map} +0 -0
  726. /package/dist/{block.tk.aicheck-4ZPFLI5I.js.map → block.tk.aicheck-FYPL32Y4.js.map} +0 -0
  727. /package/dist/{block.tk.ase-F3VMNBE3.js.map → block.tk.ase-FWCB6VBO.js.map} +0 -0
  728. /package/dist/{block.tk.bam-3VDSEMVO.js.map → block.tk.bam-Q5UFUABN.js.map} +0 -0
  729. /package/dist/{block.tk.bedgraphdot-3F6AMWFD.js.map → block.tk.bedgraphdot-KBI3GFDM.js.map} +0 -0
  730. /package/dist/{block.tk.bigwig.ui-QO334QC3.js.map → block.tk.bigwig.ui-KXNFX7G7.js.map} +0 -0
  731. /package/dist/{block.tk.hicstraw-VA7GNOOD.js.map → block.tk.hicstraw-MQBH3YAJ.js.map} +0 -0
  732. /package/dist/{block.tk.junction-7WIZ63R7.js.map → block.tk.junction-EBTVXLJH.js.map} +0 -0
  733. /package/dist/{block.tk.junction.textmatrixui-ZHSVODGI.js.map → block.tk.junction.textmatrixui-ETYLCP2O.js.map} +0 -0
  734. /package/dist/{block.tk.ld-JME4SP6A.js.map → block.tk.ld-NLB6L6WQ.js.map} +0 -0
  735. /package/dist/{block.tk.menu-7BFQTH3Q.js.map → block.tk.menu-PJLCOXVJ.js.map} +0 -0
  736. /package/dist/{block.tk.pgv-C2N7UFYT.js.map → block.tk.pgv-JOIQVWL2.js.map} +0 -0
  737. /package/dist/{brainImaging-6XFUKFZE.js.map → brainImaging-SPRC3QFB.js.map} +0 -0
  738. /package/dist/{bubbleHeatmap-YO4232WO.js.map → bubbleHeatmap-CFTZ5RXH.js.map} +0 -0
  739. /package/dist/{cellTypeBubbleHeatmap-GM4BGCQ3.js.map → cellTypeBubbleHeatmap-DXPLFT5U.js.map} +0 -0
  740. /package/dist/{chunk-UBZRZ3PS.js.map → chunk-2BQ572SL.js.map} +0 -0
  741. /package/dist/{chunk-AAM7HHPU.js.map → chunk-2DQIQYY3.js.map} +0 -0
  742. /package/dist/{chunk-YZVWOQBP.js.map → chunk-2POQWEK6.js.map} +0 -0
  743. /package/dist/{chunk-ZB3RP5QP.js.map → chunk-2SQEVMAL.js.map} +0 -0
  744. /package/dist/{chunk-5VMEMA4O.js.map → chunk-37HTZ6IG.js.map} +0 -0
  745. /package/dist/{chunk-K5YG7MVJ.js.map → chunk-452765PG.js.map} +0 -0
  746. /package/dist/{chunk-DAJT3XVZ.js.map → chunk-4DXQJGJ7.js.map} +0 -0
  747. /package/dist/{chunk-E3O6ZEWQ.js.map → chunk-5DBW3WLK.js.map} +0 -0
  748. /package/dist/{chunk-WVPFLPWB.js.map → chunk-5ILEFNXJ.js.map} +0 -0
  749. /package/dist/{chunk-6SKLD7JU.js.map → chunk-5UO7MKCO.js.map} +0 -0
  750. /package/dist/{chunk-H555QBYP.js.map → chunk-7R7P6VMT.js.map} +0 -0
  751. /package/dist/{chunk-D6G64XPJ.js.map → chunk-7X6NF7NI.js.map} +0 -0
  752. /package/dist/{chunk-ZU47ERPU.js.map → chunk-ANGLZ4XR.js.map} +0 -0
  753. /package/dist/{chunk-KWLBPOPE.js.map → chunk-BMQDU7KN.js.map} +0 -0
  754. /package/dist/{chunk-GAW2EETX.js.map → chunk-C5TU4AYP.js.map} +0 -0
  755. /package/dist/{chunk-PT5JDHPR.js.map → chunk-DHNET3P4.js.map} +0 -0
  756. /package/dist/{chunk-EJ3SSI5J.js.map → chunk-EGKHDALO.js.map} +0 -0
  757. /package/dist/{chunk-4Q46RDNU.js.map → chunk-EPWGUWQP.js.map} +0 -0
  758. /package/dist/{chunk-JG6SE6YU.js.map → chunk-F3EYPES3.js.map} +0 -0
  759. /package/dist/{chunk-BEJJS2HC.js.map → chunk-F4DM3WS4.js.map} +0 -0
  760. /package/dist/{chunk-BZYTL2EU.js.map → chunk-FTLCINDC.js.map} +0 -0
  761. /package/dist/{chunk-6RN4RVKF.js.map → chunk-GT6WJUJY.js.map} +0 -0
  762. /package/dist/{chunk-S6XG74R4.js.map → chunk-GWCK5QGV.js.map} +0 -0
  763. /package/dist/{chunk-DUGOFIQS.js.map → chunk-HJSGHFJ6.js.map} +0 -0
  764. /package/dist/{chunk-HWMZ2OHD.js.map → chunk-HS6BTSFX.js.map} +0 -0
  765. /package/dist/{chunk-DMT6S5HJ.js.map → chunk-IB5TKNG5.js.map} +0 -0
  766. /package/dist/{chunk-NGBQL4CM.js.map → chunk-IIMTOPH3.js.map} +0 -0
  767. /package/dist/{chunk-FSDY4QVA.js.map → chunk-JAXN3Q3K.js.map} +0 -0
  768. /package/dist/{chunk-GQ6T62VJ.js.map → chunk-KIRZXPMB.js.map} +0 -0
  769. /package/dist/{chunk-JVRGY6IU.js.map → chunk-L32KMIC3.js.map} +0 -0
  770. /package/dist/{chunk-4YEDSMFX.js.map → chunk-LB7NENEB.js.map} +0 -0
  771. /package/dist/{chunk-2YDQC5BV.js.map → chunk-LDWMVZYF.js.map} +0 -0
  772. /package/dist/{chunk-UM5NWVMA.js.map → chunk-M367Y7ML.js.map} +0 -0
  773. /package/dist/{chunk-VSPUFGDX.js.map → chunk-M4XXKTH2.js.map} +0 -0
  774. /package/dist/{chunk-AK3SW3VT.js.map → chunk-ME7OF3CS.js.map} +0 -0
  775. /package/dist/{chunk-JXUFZZRJ.js.map → chunk-N2CXLMNX.js.map} +0 -0
  776. /package/dist/{chunk-HKQDZKSF.js.map → chunk-N7DVQTPC.js.map} +0 -0
  777. /package/dist/{chunk-KLGNLUXR.js.map → chunk-N7TD7N7D.js.map} +0 -0
  778. /package/dist/{chunk-XHOL37O6.js.map → chunk-NBX6TT5C.js.map} +0 -0
  779. /package/dist/{chunk-GI3RVOO4.js.map → chunk-NSRGYBDM.js.map} +0 -0
  780. /package/dist/{chunk-3QMXNK7G.js.map → chunk-NVS7KYYI.js.map} +0 -0
  781. /package/dist/{chunk-BMVRYEN2.js.map → chunk-OVPEMVXT.js.map} +0 -0
  782. /package/dist/{chunk-7C45EYL6.js.map → chunk-OXWLQQXL.js.map} +0 -0
  783. /package/dist/{chunk-WFOC4W5A.js.map → chunk-QGGSYEVJ.js.map} +0 -0
  784. /package/dist/{chunk-OYHID2D7.js.map → chunk-QLEVONLD.js.map} +0 -0
  785. /package/dist/{chunk-MCRWA655.js.map → chunk-RNWHB5DI.js.map} +0 -0
  786. /package/dist/{chunk-FUEJFIQX.js.map → chunk-RUHLDUOT.js.map} +0 -0
  787. /package/dist/{chunk-TAEU6SPJ.js.map → chunk-RV34WFGZ.js.map} +0 -0
  788. /package/dist/{chunk-4C2N2BQC.js.map → chunk-SDVE5ECI.js.map} +0 -0
  789. /package/dist/{chunk-VRY7WSS6.js.map → chunk-SWO6DZTG.js.map} +0 -0
  790. /package/dist/{chunk-6JBLNS4D.js.map → chunk-SYPSS3JQ.js.map} +0 -0
  791. /package/dist/{chunk-XPB2GP3C.js.map → chunk-TDM3645O.js.map} +0 -0
  792. /package/dist/{chunk-66BJC6ZX.js.map → chunk-VVO3R5JV.js.map} +0 -0
  793. /package/dist/{chunk-CLOHFGFX.js.map → chunk-VYEU6Y35.js.map} +0 -0
  794. /package/dist/{chunk-XPVU5AMT.js.map → chunk-WGXC6IEF.js.map} +0 -0
  795. /package/dist/{chunk-GF6CKFXE.js.map → chunk-WPDM57B5.js.map} +0 -0
  796. /package/dist/{chunk-VHDVTQFR.js.map → chunk-WS7WKS2B.js.map} +0 -0
  797. /package/dist/{chunk-X7IAKV5Z.js.map → chunk-X63NSV33.js.map} +0 -0
  798. /package/dist/{chunk-KAUMP3RR.js.map → chunk-XXNRSSBR.js.map} +0 -0
  799. /package/dist/{chunk-ONXYJWY6.js.map → chunk-YD6UGDFI.js.map} +0 -0
  800. /package/dist/{chunk-JSVLKCIQ.js.map → chunk-YRIYDFNU.js.map} +0 -0
  801. /package/dist/{chunk-DO4SLQNP.js.map → chunk-YY5WQQ3J.js.map} +0 -0
  802. /package/dist/{chunk-YLJOZP4P.js.map → chunk-Z2ZITHT4.js.map} +0 -0
  803. /package/dist/{chunk-YLWSTPPL.js.map → chunk-Z4SM3FBK.js.map} +0 -0
  804. /package/dist/{chunk-AFMD6226.js.map → chunk-ZEYEIUEZ.js.map} +0 -0
  805. /package/dist/{chunk-LXTBOUBG.js.map → chunk-ZLYTDHQP.js.map} +0 -0
  806. /package/dist/{chunk-GTMHDSOQ.js.map → chunk-ZWCVRVV4.js.map} +0 -0
  807. /package/dist/{cohort-ZTT2PSQA.js.map → cohort-FZNMFWOX.js.map} +0 -0
  808. /package/dist/{condition-L5DXIAJT.js.map → condition-AJJLFCBQ.js.map} +0 -0
  809. /package/dist/{controls-ROZP2O7A.js.map → controls-SZOLV37V.js.map} +0 -0
  810. /package/dist/{controls.config-YQKGHMIP.js.map → controls.config-CVP75WFA.js.map} +0 -0
  811. /package/dist/{correlation-6AKRIQXN.js.map → correlation-UFJFQHQ3.js.map} +0 -0
  812. /package/dist/{customdata.inputui-DD3OFHUS.js.map → customdata.inputui-HOVA4A6O.js.map} +0 -0
  813. /package/dist/{dataDownload-VHHSLSZV.js.map → dataDownload-VTUG4IOK.js.map} +0 -0
  814. /package/dist/{databrowser.ui-RLYJOEWQ.js.map → databrowser.ui-O5S4Y4EK.js.map} +0 -0
  815. /package/dist/{dictionary-IMOOQHIH.js.map → dictionary-L2UNNNP7.js.map} +0 -0
  816. /package/dist/{dnaMethylation-T6XUIOJF.js.map → dnaMethylation-B4SWZI4O.js.map} +0 -0
  817. /package/dist/{dnaMethylation.integration.spec-NRJOIDRD.js.map → dnaMethylation.integration.spec-ANJAMNYJ.js.map} +0 -0
  818. /package/dist/{dofetch-MLAEV3A2.js.map → dofetch-F5XSHQIS.js.map} +0 -0
  819. /package/dist/{e2pca-F3TGJOMW.js.map → e2pca-66ARIMKL.js.map} +0 -0
  820. /package/dist/{ep-UAF6OL2Y.js.map → ep-OFGJYVUY.js.map} +0 -0
  821. /package/dist/{expclust.gdc.spec-GHH3JQ65.js.map → expclust.gdc.spec-22RXQTTP.js.map} +0 -0
  822. /package/dist/{facet-MB4C7GII.js.map → facet-GVZQ3RPN.js.map} +0 -0
  823. /package/dist/{gb-C5YSAFWP.js.map → gb-HEPGVYEK.js.map} +0 -0
  824. /package/dist/{geneExpClustering-3BRSI5BR.js.map → geneExpClustering-3NU2U422.js.map} +0 -0
  825. /package/dist/{geneExpression-K3IZLSYC.js.map → geneExpression-FXQ4L2J2.js.map} +0 -0
  826. /package/dist/{geneExpression-SIAPRA3E.js.map → geneExpression-XYVYJJA5.js.map} +0 -0
  827. /package/dist/{geneExpression.unit.spec-I66QVNT5.js.map → geneExpression.unit.spec-K3FIRSNK.js.map} +0 -0
  828. /package/dist/{geneORA-SLM3SNNS.js.map → geneORA-5M2JSDMF.js.map} +0 -0
  829. /package/dist/{geneRanking-4EFYOR6A.js.map → geneRanking-TP3R3CS3.js.map} +0 -0
  830. /package/dist/{geneVariant-Z3BUIBLS.js.map → geneVariant-232EYUFJ.js.map} +0 -0
  831. /package/dist/{geneVariant-O347F2OY.js.map → geneVariant-BHXTPUDC.js.map} +0 -0
  832. /package/dist/{geneVariant.integration.spec-ZZ65EYEL.js.map → geneVariant.integration.spec-ICFHVFIR.js.map} +0 -0
  833. /package/dist/{genefusion.ui-TK6UKPDR.js.map → genefusion.ui-ABRCUQFC.js.map} +0 -0
  834. /package/dist/{geneset-MVXSEOKZ.js.map → geneset-N42FIVA6.js.map} +0 -0
  835. /package/dist/{genomeBrowser.spec-QDB4Z2L6.js.map → genomeBrowser.spec-5HKQKLRU.js.map} +0 -0
  836. /package/dist/{grin2-P6Z45MCJ.js.map → grin2-H2KJYLP6.js.map} +0 -0
  837. /package/dist/{grin2-DCU6PLPU.js.map → grin2-NGMTEMXF.js.map} +0 -0
  838. /package/dist/{hierCluster-3H47NLKS.js.map → hierCluster-JU5JPLM7.js.map} +0 -0
  839. /package/dist/{hierCluster-JG6VXTCV.js.map → hierCluster-LSSH275H.js.map} +0 -0
  840. /package/dist/{hierCluster.config-IP6I7RTS.js.map → hierCluster.config-ILOR7GBB.js.map} +0 -0
  841. /package/dist/{hierCluster.integration.spec-7PUNHRRS.js.map → hierCluster.integration.spec-CNR5OJOH.js.map} +0 -0
  842. /package/dist/{hierCluster.interactivity-FIDVRACV.js.map → hierCluster.interactivity-TLEIVTFK.js.map} +0 -0
  843. /package/dist/{hierCluster.renderers-QMJWUPAI.js.map → hierCluster.renderers-P7JNIT3N.js.map} +0 -0
  844. /package/dist/{imagePlot-CXYKBCWS.js.map → imagePlot-BF67SXQR.js.map} +0 -0
  845. /package/dist/{importPlot-Z4A54RXH.js.map → importPlot-OHXSXNZN.js.map} +0 -0
  846. /package/dist/{isoformExpression-DMDV2PZY.js.map → isoformExpression-4VKHE4HA.js.map} +0 -0
  847. /package/dist/{isoformExpression.unit.spec-W2LIYOXS.js.map → isoformExpression.unit.spec-4TVSIFG4.js.map} +0 -0
  848. /package/dist/{junction-R5GMEO7Z.js.map → junction-VUHORV43.js.map} +0 -0
  849. /package/dist/{junction.customTerm-AI44GNFV.js.map → junction.customTerm-FRYWSS4P.js.map} +0 -0
  850. /package/dist/{junction.unit.spec-SCRCANOC.js.map → junction.unit.spec-KKVLYT7Q.js.map} +0 -0
  851. /package/dist/{launch.adhoc-THLTYZJT.js.map → launch.adhoc-UDYMFZTQ.js.map} +0 -0
  852. /package/dist/{leftlabel.sample-GKQXEY4J.js.map → leftlabel.sample-R5FFBWG3.js.map} +0 -0
  853. /package/dist/{legacyDataset-27L4DMCL.js.map → legacyDataset-IEFWFVS6.js.map} +0 -0
  854. /package/dist/{lollipop-2TW6GGPY.js.map → lollipop-3IX6ZYUN.js.map} +0 -0
  855. /package/dist/{maf-A4PVW5V2.js.map → maf-42UFYSL4.js.map} +0 -0
  856. /package/dist/{maftimeline-QMX3HOAU.js.map → maftimeline-M5WYEN62.js.map} +0 -0
  857. /package/dist/{matrix-BGRYRU3T.js.map → matrix-CI76EDHU.js.map} +0 -0
  858. /package/dist/{matrix-GPXTUVCQ.js.map → matrix-WJZKA6VR.js.map} +0 -0
  859. /package/dist/{matrix.cells-C6OY7F5T.js.map → matrix.cells-ZFKVIPDC.js.map} +0 -0
  860. /package/dist/{matrix.config-Z5ZGHXDV.js.map → matrix.config-24TFHBEM.js.map} +0 -0
  861. /package/dist/{matrix.data-WB26I3TF.js.map → matrix.data-NCGZPNWR.js.map} +0 -0
  862. /package/dist/{matrix.groups-C2V2CV4A.js.map → matrix.groups-XQJTGM6M.js.map} +0 -0
  863. /package/dist/{matrix.integration.spec-3COAXQBV.js.map → matrix.integration.spec-OGXZUDE6.js.map} +0 -0
  864. /package/dist/{matrix.interactivity-NGHIQR3A.js.map → matrix.interactivity-ZOOTPNSW.js.map} +0 -0
  865. /package/dist/{matrix.layout-NYIOESGN.js.map → matrix.layout-5J2YENK3.js.map} +0 -0
  866. /package/dist/{matrix.legend-Q5HHWP5Q.js.map → matrix.legend-U36VCS46.js.map} +0 -0
  867. /package/dist/{matrix.renderers-GLXZARIP.js.map → matrix.renderers-4KFE7ZVR.js.map} +0 -0
  868. /package/dist/{matrix.serieses-LDQEPXPD.js.map → matrix.serieses-AW7XBXLJ.js.map} +0 -0
  869. /package/dist/{matrix.sort-44TQNRIX.js.map → matrix.sort-7PMECLOE.js.map} +0 -0
  870. /package/dist/{matrix.sort.unit.spec-T3BDWJ3Z.js.map → matrix.sort.unit.spec-GIA2YOTQ.js.map} +0 -0
  871. /package/dist/{matrix.sorterUi-6Y4YBQYL.js.map → matrix.sorterUi-J6PRUT6J.js.map} +0 -0
  872. /package/dist/{matrix.sorterUi.unit.spec-NHUYNMNU.js.map → matrix.sorterUi.unit.spec-OPGKZZL6.js.map} +0 -0
  873. /package/dist/{matrix.unit.spec-C7IRIBN6.js.map → matrix.unit.spec-7UIVVR4T.js.map} +0 -0
  874. /package/dist/{mavb-E37LI73X.js.map → mavb-MSYUMT6W.js.map} +0 -0
  875. /package/dist/{mds.fimo-YTGX7VEN.js.map → mds.fimo-OYEAQP37.js.map} +0 -0
  876. /package/dist/{mds.samplescatterplot-FFGGJSI3.js.map → mds.samplescatterplot-EXISSRQQ.js.map} +0 -0
  877. /package/dist/{mds.survivalplot-NCWRXXV4.js.map → mds.survivalplot-SZST6BLN.js.map} +0 -0
  878. /package/dist/{multivalue-N7A2PU5K.js.map → multivalue-YDE7L75Y.js.map} +0 -0
  879. /package/dist/{numericDictTermCluster-AKQKRBQH.js.map → numericDictTermCluster-5AKP6ICC.js.map} +0 -0
  880. /package/dist/{oncomatrix-QPVGACMF.js.map → oncomatrix-2OEIYWR6.js.map} +0 -0
  881. /package/dist/{oncomatrix.spec-6L2NDN2G.js.map → oncomatrix.spec-CXQW4JWU.js.map} +0 -0
  882. /package/dist/{plot.2dvaf-6TLON77B.js.map → plot.2dvaf-LN7A3NNC.js.map} +0 -0
  883. /package/dist/{plot.app-VM273TXU.js.map → plot.app-YIQOY2Z7.js.map} +0 -0
  884. /package/dist/{plot.barplot-IQTZURHK.js.map → plot.barplot-HF2J25XP.js.map} +0 -0
  885. /package/dist/{plot.boxplot-WEXB6HII.js.map → plot.boxplot-YJH4L27U.js.map} +0 -0
  886. /package/dist/{plot.brainImaging-REGSSBHV.js.map → plot.brainImaging-PS4TRSPI.js.map} +0 -0
  887. /package/dist/{plot.disco-F25Z3FQL.js.map → plot.disco-BN5RNZ6Q.js.map} +0 -0
  888. /package/dist/{plot.ssgq-CRRK26RS.js.map → plot.ssgq-N2HTOIY3.js.map} +0 -0
  889. /package/dist/{plot.vaf2cov-WCNPZKXK.js.map → plot.vaf2cov-6AOHRUQ2.js.map} +0 -0
  890. /package/dist/{polar2-MH5GPXHJ.js.map → polar2-TC5OEJRE.js.map} +0 -0
  891. /package/dist/{profileForms-2YX2OYDI.js.map → profileForms-5WV2TSBB.js.map} +0 -0
  892. /package/dist/{profilePlot-FUTMZ2PP.js.map → profilePlot-OJLLW44P.js.map} +0 -0
  893. /package/dist/{pseudbulk.unit.spec-S7FDL3IX.js.map → pseudbulk.unit.spec-RAYRGN6C.js.map} +0 -0
  894. /package/dist/{pseudobulk-A3LB23N2.js.map → pseudobulk-ADHAYVSQ.js.map} +0 -0
  895. /package/dist/{qualitative-5VJRMF4S.js.map → qualitative-JXEI3IYC.js.map} +0 -0
  896. /package/dist/{radar2-2SJX4ZXN.js.map → radar2-BWTKSTT3.js.map} +0 -0
  897. /package/dist/{radarFacility2-7FPO34JS.js.map → radarFacility2-WIRSKTDG.js.map} +0 -0
  898. /package/dist/{rememberedGvQ.unit.spec-WOQVPQ75.js.map → rememberedGvQ.unit.spec-N43O4YTF.js.map} +0 -0
  899. /package/dist/{render-ZLA2RRBP.js.map → render-J7WOYBOL.js.map} +0 -0
  900. /package/dist/{report-VCE6RILD.js.map → report-DRPCXX2B.js.map} +0 -0
  901. /package/dist/{sampleView-QYTX4OLI.js.map → sampleView-BV6BQGGQ.js.map} +0 -0
  902. /package/dist/{samplelst-7NGH3SUM.js.map → samplelst-ZD63EYO7.js.map} +0 -0
  903. /package/dist/{samplematrix-SNAR6IBB.js.map → samplematrix-ZZ3DVELU.js.map} +0 -0
  904. /package/dist/{sc-2JETYAI4.js.map → sc-MUI43YTB.js.map} +0 -0
  905. /package/dist/{scatter-GHBQM2RR.js.map → scatter-7B44HTKN.js.map} +0 -0
  906. /package/dist/{scatter-D7VZOBEE.js.map → scatter-UEDVIE4Y.js.map} +0 -0
  907. /package/dist/{selectGenomeWithTklst-BD4GMGX3.js.map → selectGenomeWithTklst-WGOKGVZ5.js.map} +0 -0
  908. /package/dist/{singleCellCellType-XHLOJVVC.js.map → singleCellCellType-Z7OXK7PI.js.map} +0 -0
  909. /package/dist/{singleCellCellType.unit.spec-LCLR3IOD.js.map → singleCellCellType.unit.spec-IIOVCCJQ.js.map} +0 -0
  910. /package/dist/{singleCellGeneExpression-JRBONI5C.js.map → singleCellGeneExpression-LYZAIJ2Z.js.map} +0 -0
  911. /package/dist/{singleCellGeneExpression.unit.spec-Z2KSVCIG.js.map → singleCellGeneExpression.unit.spec-67AAWZTG.js.map} +0 -0
  912. /package/dist/{singleCellPlot-4462CQHF.js.map → singleCellPlot-TXPYQLSH.js.map} +0 -0
  913. /package/dist/{singlecell-SO3B5KJ7.js.map → singlecell-22OG6HNI.js.map} +0 -0
  914. /package/dist/{singlecell-CDUQ6MTO.js.map → singlecell-7TBALI2S.js.map} +0 -0
  915. /package/dist/{snp-YE2MXKJO.js.map → snp-3U2G3Z57.js.map} +0 -0
  916. /package/dist/{snp.unit.spec-MT57TGGQ.js.map → snp.unit.spec-BMBBUBYD.js.map} +0 -0
  917. /package/dist/{snplocus-RSNKWY63.js.map → snplocus-SSVZDIQV.js.map} +0 -0
  918. /package/dist/{spliceevent.a53ss.diagram-6N6YGYV7.js.map → spliceevent.a53ss.diagram-FK7CN4AU.js.map} +0 -0
  919. /package/dist/{spliceevent.exonskip.diagram-LMNUS4XV.js.map → spliceevent.exonskip.diagram-EFLGV3O4.js.map} +0 -0
  920. /package/dist/{spliceevent.noeventdiagram-LTBH4YD5.js.map → spliceevent.noeventdiagram-2DYO7CCZ.js.map} +0 -0
  921. /package/dist/{ssGSEA-DPK4PDM2.js.map → ssGSEA-52LWBQJP.js.map} +0 -0
  922. /package/dist/{ssGSEA.unit.spec-K2SA7ME7.js.map → ssGSEA.unit.spec-3JV6WHUQ.js.map} +0 -0
  923. /package/dist/{stattable-PR47XT4F.js.map → stattable-RLMYQ4G6.js.map} +0 -0
  924. /package/dist/{summarizeCnvGeneexp-YZEMDLES.js.map → summarizeCnvGeneexp-QPRYAKC2.js.map} +0 -0
  925. /package/dist/{summarizeGeneexpSurvival-3TXV6ZNI.js.map → summarizeGeneexpSurvival-RWVQXEKB.js.map} +0 -0
  926. /package/dist/{summarizeMutationCnv-EBWSEHWJ.js.map → summarizeMutationCnv-DW5F6NUJ.js.map} +0 -0
  927. /package/dist/{summarizeMutationDiagnosis-FXA25W3O.js.map → summarizeMutationDiagnosis-5FOQ7CHI.js.map} +0 -0
  928. /package/dist/{summarizeMutationSurvival-MR4AOMNS.js.map → summarizeMutationSurvival-4UKB4EVO.js.map} +0 -0
  929. /package/dist/{summary-4C6LGTMF.js.map → summary-TYC6QNT4.js.map} +0 -0
  930. /package/dist/{summary.integration.spec-Y6JLH7NH.js.map → summary.integration.spec-5GLJJZNM.js.map} +0 -0
  931. /package/dist/{summaryInput-NWT2DXWU.js.map → summaryInput-4IJGKW4P.js.map} +0 -0
  932. /package/dist/{sunburst-266MA7E2.js.map → sunburst-G7DGATWP.js.map} +0 -0
  933. /package/dist/{survival-CAZCIY2N.js.map → survival-MKNABJPU.js.map} +0 -0
  934. /package/dist/{svgraph-OFUESREM.js.map → svgraph-VB7JWWR5.js.map} +0 -0
  935. /package/dist/{svmr-PVH42MY4.js.map → svmr-VLQIO2U5.js.map} +0 -0
  936. /package/dist/{table-C2SICFZV.js.map → table-EAXMDWOY.js.map} +0 -0
  937. /package/dist/{termCollection-TGYDI7NP.js.map → termCollection-5LG7ICQY.js.map} +0 -0
  938. /package/dist/{termCollection-H4RL5WJG.js.map → termCollection-SB6MWLFK.js.map} +0 -0
  939. /package/dist/{termCollection.unit.spec-JSALS7GL.js.map → termCollection.unit.spec-H5ITGTR3.js.map} +0 -0
  940. /package/dist/{termCollectionFractionSelection-YJVDNV4I.js.map → termCollectionFractionSelection-2XZSTDCQ.js.map} +0 -0
  941. /package/dist/{termCollectionFractionSelection.unit.spec-4GM7P4ZW.js.map → termCollectionFractionSelection.unit.spec-BIO7V6KA.js.map} +0 -0
  942. /package/dist/{tk-RZCPSHJG.js.map → tk-TRWYZLQ2.js.map} +0 -0
  943. /package/dist/{tk-SNTRA5CC.js.map → tk-VZI5HNSX.js.map} +0 -0
  944. /package/dist/{tp.ui-2W4K3XH6.js.map → tp.ui-J5SNNAT3.js.map} +0 -0
  945. /package/dist/{tvs.dt-GIPVC3R6.js.map → tvs.dt-6YHFJPER.js.map} +0 -0
  946. /package/dist/{tvs.dtcnv.categorical-TEYAS4OU.js.map → tvs.dtcnv.categorical-WTIE63GM.js.map} +0 -0
  947. /package/dist/{tvs.dtcnv.continuous-VQRATYPZ.js.map → tvs.dtcnv.continuous-OCMKGTF5.js.map} +0 -0
  948. /package/dist/{tvs.dtfusion-P2KF5Z4H.js.map → tvs.dtfusion-CA23UNM3.js.map} +0 -0
  949. /package/dist/{tvs.dtitd-TM6UROSH.js.map → tvs.dtitd-VSYMR3OD.js.map} +0 -0
  950. /package/dist/{tvs.dtsnvindel-FZXC23NF.js.map → tvs.dtsnvindel-YBNO3CYF.js.map} +0 -0
  951. /package/dist/{tvs.dtsv-Y5QEJPYG.js.map → tvs.dtsv-S743GBB5.js.map} +0 -0
  952. /package/dist/{tvs.numeric-3UXW4JHJ.js.map → tvs.numeric-22AHXO5K.js.map} +0 -0
  953. /package/dist/{tvs.samplelst-MLAFPFER.js.map → tvs.samplelst-XAJO4EM6.js.map} +0 -0
  954. /package/dist/{tvs.termCollection-ZQQDKESH.js.map → tvs.termCollection-QOVJGAUC.js.map} +0 -0
  955. /package/dist/{vocabulary-JRUZPHMG.js.map → vocabulary-6EADTHP3.js.map} +0 -0
@@ -0,0 +1,3160 @@
1
+ import {
2
+ termjson
3
+ } from "./chunk-FQYXNCZI.js";
4
+ import {
5
+ getSortOptions
6
+ } from "./chunk-LDWMVZYF.js";
7
+ import "./chunk-C2MCQZWH.js";
8
+ import {
9
+ getRunPp
10
+ } from "./chunk-HS6BTSFX.js";
11
+ import {
12
+ detectLst,
13
+ sleep
14
+ } from "./chunk-FYXIK6Y6.js";
15
+ import {
16
+ require_tape
17
+ } from "./chunk-PJYCTAMC.js";
18
+ import "./chunk-K6PYTAXW.js";
19
+ import "./chunk-KT4OZVO3.js";
20
+ import "./chunk-TDM3645O.js";
21
+ import "./chunk-RUHLDUOT.js";
22
+ import "./chunk-PRZWSBMA.js";
23
+ import "./chunk-RNWHB5DI.js";
24
+ import "./chunk-MKAF2BHB.js";
25
+ import "./chunk-NBX6TT5C.js";
26
+ import "./chunk-4FTH4L3A.js";
27
+ import "./chunk-X63NSV33.js";
28
+ import "./chunk-Q5SK3U2T.js";
29
+ import "./chunk-HJ6L54YS.js";
30
+ import "./chunk-KV4W2ACA.js";
31
+ import "./chunk-54KC7DAB.js";
32
+ import "./chunk-N7DVQTPC.js";
33
+ import "./chunk-ELJX3QIQ.js";
34
+ import "./chunk-EEB5VE2A.js";
35
+ import "./chunk-6RRZRISL.js";
36
+ import "./chunk-2KM4PRQM.js";
37
+ import "./chunk-RPDVFM7E.js";
38
+ import "./chunk-M4XXKTH2.js";
39
+ import "./chunk-5ILEFNXJ.js";
40
+ import {
41
+ CNVClasses,
42
+ mutationClasses,
43
+ proteinChangingMutations,
44
+ synonymousMutations,
45
+ truncatingMutations
46
+ } from "./chunk-IZUYLFOX.js";
47
+ import "./chunk-WINIL2KN.js";
48
+ import "./chunk-PF4DSFDR.js";
49
+ import "./chunk-7X6NF7NI.js";
50
+ import "./chunk-W5J3LTYS.js";
51
+ import "./chunk-Z2ZITHT4.js";
52
+ import "./chunk-4OLM3KSB.js";
53
+ import "./chunk-FXQXCOII.js";
54
+ import "./chunk-TLT4YIG3.js";
55
+ import "./chunk-5R63Q5KH.js";
56
+ import "./chunk-I6Y4O3RR.js";
57
+ import "./chunk-Q5RDQNIT.js";
58
+ import "./chunk-DQC5FFGV.js";
59
+ import {
60
+ __toESM
61
+ } from "./chunk-HS5PO5ZQ.js";
62
+
63
+ // plots/matrix/test/matrix.integration.spec.js
64
+ var import_tape = __toESM(require_tape(), 1);
65
+ (0, import_tape.default)("\n", function(test) {
66
+ test.comment("-***- plots/matrix -***-");
67
+ test.end();
68
+ });
69
+ (0, import_tape.default)("only dictionary terms", function(test) {
70
+ test.timeoutAfter(5e3);
71
+ test.plan(5);
72
+ runpp({
73
+ state: {
74
+ plots: [
75
+ {
76
+ chartType: "matrix",
77
+ settings: {
78
+ matrix: {
79
+ // the matrix autocomputes the colw based on available screen width,
80
+ // need to set an exact screen width for consistent tests using getBBox()
81
+ availContentWidth: 1200
82
+ }
83
+ },
84
+ termgroups: [
85
+ {
86
+ name: "Demographics",
87
+ lst: [
88
+ {
89
+ id: "aaclassic_5",
90
+ q: {
91
+ mode: "continuous"
92
+ }
93
+ },
94
+ {
95
+ id: "sex"
96
+ //q: { mode: 'values' } // or 'groupsetting'
97
+ },
98
+ {
99
+ id: "agedx",
100
+ q: {
101
+ mode: "discrete",
102
+ type: "regular-bin",
103
+ bin_size: 5,
104
+ first_bin: {
105
+ startunbounded: true,
106
+ stop: 5,
107
+ stopinclusive: true
108
+ }
109
+ }
110
+ // or 'continuous'
111
+ },
112
+ {
113
+ id: "Arrhythmias"
114
+ }
115
+ ]
116
+ }
117
+ ]
118
+ }
119
+ ]
120
+ },
121
+ matrix: {
122
+ callbacks: {
123
+ "postRender.test": runTests
124
+ }
125
+ }
126
+ });
127
+ function runTests(matrix) {
128
+ matrix.on("postRender.test", null);
129
+ test.equal(
130
+ matrix.Inner.dom.seriesesG.selectAll(".sjpp-mass-series-g").size(),
131
+ 4,
132
+ `should render the expected number of serieses`
133
+ );
134
+ test.equal(
135
+ matrix.Inner.dom.seriesesG.selectAll(".sjpp-mass-series-g rect").size(),
136
+ 240,
137
+ `should render the expected number of cell rects`
138
+ );
139
+ test.equal(
140
+ matrix.Inner.dom.cluster.selectAll(".sjpp-matrix-clusteroutlines rect").size(),
141
+ 1,
142
+ `should render the expected number of cluster rects`
143
+ );
144
+ const sg0rects = matrix.Inner.dom.seriesesG.select(".sjpp-mass-series-g").selectAll("rect");
145
+ test.equal(
146
+ sg0rects.filter((d) => d.key <= 0 && d.fill === "transparent").size(),
147
+ 14,
148
+ `should render special values with transparent rects`
149
+ );
150
+ const uniqueHts = /* @__PURE__ */ new Set();
151
+ sg0rects.each((d) => uniqueHts.add(d.height));
152
+ test.equal(uniqueHts.size, 45, `should render different rect heights for continuous mode bar plots`);
153
+ if (test._ok) matrix.Inner.app.destroy();
154
+ test.end();
155
+ }
156
+ });
157
+ (0, import_tape.default)("termCollection", function(test) {
158
+ runpp({
159
+ state: {
160
+ plots: [
161
+ {
162
+ chartType: "matrix",
163
+ termgroups: [
164
+ {
165
+ name: "",
166
+ lst: [getTermCollection()]
167
+ }
168
+ ]
169
+ }
170
+ ]
171
+ },
172
+ matrix: { callbacks: { "postRender.test": runTests } }
173
+ });
174
+ function runTests(matrix) {
175
+ matrix.on("postRender.test", null);
176
+ test.equal(
177
+ matrix.Inner.dom.seriesesG.selectAll(".sjpp-mass-series-g").size(),
178
+ 1,
179
+ `should render the expected number of serieses`
180
+ );
181
+ if (test._ok) matrix.Inner.app.destroy();
182
+ test.end();
183
+ }
184
+ });
185
+ (0, import_tape.default)("with divide by terms", function(test) {
186
+ test.timeoutAfter(5e3);
187
+ test.plan(3);
188
+ runpp({
189
+ state: {
190
+ plots: [
191
+ {
192
+ chartType: "matrix",
193
+ settings: {
194
+ // the matrix autocomputes the colw based on available screen width,
195
+ // need to set an exact screen width for consistent tests using getBBox()
196
+ matrix: {
197
+ availContentWidth: 1200
198
+ }
199
+ },
200
+ divideBy: {
201
+ id: "sex"
202
+ },
203
+ termgroups: [
204
+ {
205
+ name: "Demographics",
206
+ lst: [
207
+ { id: "agedx", term: termjson["agedx"] },
208
+ { id: "diaggrp", term: termjson["diaggrp"] },
209
+ { id: "aaclassic_5", term: termjson["aaclassic_5"] }
210
+ ]
211
+ }
212
+ ]
213
+ }
214
+ ]
215
+ },
216
+ matrix: {
217
+ callbacks: {
218
+ "postRender.test": runTests
219
+ }
220
+ }
221
+ });
222
+ function runTests(matrix) {
223
+ matrix.on("postRender.test", null);
224
+ test.equal(
225
+ matrix.Inner.dom.seriesesG.selectAll(".sjpp-mass-series-g").size(),
226
+ 3,
227
+ `should render the expected number of serieses`
228
+ );
229
+ test.equal(
230
+ matrix.Inner.dom.seriesesG.selectAll(".sjpp-mass-series-g rect").size(),
231
+ 180,
232
+ `should render the expected number of cell rects`
233
+ );
234
+ test.equal(
235
+ matrix.Inner.dom.cluster.selectAll(".sjpp-matrix-clusteroutlines rect").size(),
236
+ 2,
237
+ `should render the expected number of cluster rects`
238
+ );
239
+ if (test._ok) matrix.Inner.app.destroy();
240
+ test.end();
241
+ }
242
+ });
243
+ (0, import_tape.default)("long column group labels", function(test) {
244
+ test.timeoutAfter(5e3);
245
+ test.plan(2);
246
+ runpp({
247
+ state: {
248
+ plots: [
249
+ {
250
+ chartType: "matrix",
251
+ settings: {
252
+ // the matrix autocomputes the colw based on available screen width,
253
+ // need to set an exact screen width for consistent tests using getBBox()
254
+ matrix: {
255
+ availContentWidth: 1200
256
+ }
257
+ },
258
+ divideBy: {
259
+ id: "diaggrp"
260
+ },
261
+ termgroups: [
262
+ {
263
+ name: "Demographics",
264
+ lst: [
265
+ { id: "diaggrp", term: termjson["diaggrp"] },
266
+ { id: "agedx", term: termjson["agedx"] },
267
+ { id: "aaclassic_5", term: termjson["aaclassic_5"] }
268
+ ]
269
+ }
270
+ ]
271
+ }
272
+ ]
273
+ },
274
+ matrix: {
275
+ callbacks: {
276
+ "postRender.test222": runTests
277
+ }
278
+ }
279
+ });
280
+ function runTests(matrix) {
281
+ matrix.on("postRender.test222", null);
282
+ const y = matrix.Inner.dom.clipRect.property("y").baseVal.value;
283
+ test.true(y > -63 && y < -62, `should adjust the clip-path rect y-value to between -39 and -38, actual=${y}`);
284
+ const h = matrix.Inner.dom.clipRect.property("height").baseVal.value;
285
+ test.true(h > 619 && h <= 620, `should adjust the clip-path height to between 595 and 596, actual=${h}`);
286
+ if (test._ok) matrix.Inner.app.destroy();
287
+ test.end();
288
+ }
289
+ });
290
+ (0, import_tape.default)("divide by continuous terms", function(test) {
291
+ test.timeoutAfter(5e3);
292
+ test.plan(3);
293
+ runpp({
294
+ state: {
295
+ plots: [
296
+ {
297
+ chartType: "matrix",
298
+ settings: {
299
+ // the matrix autocomputes the colw based on available screen width,
300
+ // need to set an exact screen width for consistent tests using getBBox()
301
+ matrix: {
302
+ availContentWidth: 1200
303
+ }
304
+ },
305
+ divideBy: {
306
+ id: "agedx"
307
+ },
308
+ termgroups: [
309
+ {
310
+ name: "Demographics",
311
+ lst: [
312
+ { id: "sex", term: termjson["sex"] },
313
+ { id: "diaggrp", term: termjson["diaggrp"] },
314
+ { id: "aaclassic_5", term: termjson["aaclassic_5"] }
315
+ ]
316
+ }
317
+ ]
318
+ }
319
+ ]
320
+ },
321
+ matrix: {
322
+ callbacks: {
323
+ "postRender.test": runTests
324
+ }
325
+ }
326
+ });
327
+ function runTests(matrix) {
328
+ matrix.on("postRender.test", null);
329
+ test.equal(
330
+ matrix.Inner.dom.seriesesG.selectAll(".sjpp-mass-series-g").size(),
331
+ 3,
332
+ `should render the expected number of serieses`
333
+ );
334
+ test.equal(
335
+ matrix.Inner.dom.seriesesG.selectAll(".sjpp-mass-series-g rect").size(),
336
+ 180,
337
+ `should render the expected number of cell rects`
338
+ );
339
+ test.equal(
340
+ matrix.Inner.dom.cluster.selectAll(".sjpp-matrix-clusteroutlines rect").size(),
341
+ 5,
342
+ `should render the expected number of cluster rects`
343
+ );
344
+ if (test._ok) matrix.Inner.app.destroy();
345
+ test.end();
346
+ }
347
+ });
348
+ (0, import_tape.default)("geneVariant term", function(test) {
349
+ test.timeoutAfter(5e3);
350
+ test.plan(2);
351
+ runpp({
352
+ state: {
353
+ nav: {
354
+ activeTab: 1
355
+ },
356
+ plots: [
357
+ {
358
+ chartType: "matrix",
359
+ settings: {
360
+ // the matrix autocomputes the colw based on available screen width,
361
+ // need to set an exact screen width for consistent tests using getBBox()
362
+ matrix: {
363
+ availContentWidth: 1200
364
+ }
365
+ },
366
+ termgroups: [
367
+ {
368
+ name: "",
369
+ lst: [{ term: { gene: "TP53", name: "TP53", type: "geneVariant", isleaf: true } }]
370
+ }
371
+ ]
372
+ }
373
+ ]
374
+ },
375
+ matrix: {
376
+ callbacks: {
377
+ "postRender.test": runTests
378
+ }
379
+ }
380
+ });
381
+ function runTests(matrix) {
382
+ matrix.on("postRender.test", null);
383
+ test.equal(
384
+ matrix.Inner.dom.seriesesG.selectAll(".sjpp-mass-series-g").size(),
385
+ 1,
386
+ `should render the expected number of serieses`
387
+ );
388
+ test.equal(
389
+ matrix.Inner.dom.seriesesG.selectAll(".sjpp-mass-series-g rect").size(),
390
+ 242,
391
+ `should render the expected number of cell rects`
392
+ );
393
+ if (test._ok) matrix.Inner.app.destroy();
394
+ test.end();
395
+ }
396
+ });
397
+ (0, import_tape.default)("geneVariant terms and dictionary terms", function(test) {
398
+ test.timeoutAfter(5e3);
399
+ test.plan(3);
400
+ runpp({
401
+ state: {
402
+ nav: {
403
+ activeTab: 1
404
+ },
405
+ plots: [
406
+ {
407
+ chartType: "matrix",
408
+ settings: {
409
+ // the matrix autocomputes the colw based on available screen width,
410
+ // need to set an exact screen width for consistent tests using getBBox()
411
+ matrix: {
412
+ availContentWidth: 1200
413
+ }
414
+ },
415
+ termgroups: [
416
+ {
417
+ name: "",
418
+ lst: [
419
+ ...getGenes(),
420
+ { id: "agedx", term: termjson["agedx"] },
421
+ { id: "diaggrp", term: termjson["diaggrp"] },
422
+ { id: "aaclassic_5", term: termjson["aaclassic_5"] }
423
+ ]
424
+ }
425
+ ]
426
+ }
427
+ ]
428
+ },
429
+ matrix: {
430
+ callbacks: {
431
+ "postRender.test": runTests
432
+ }
433
+ }
434
+ });
435
+ function runTests(matrix) {
436
+ matrix.on("postRender.test", null);
437
+ test.equal(
438
+ matrix.Inner.dom.seriesesG.selectAll(".sjpp-mass-series-g").size(),
439
+ 6,
440
+ `should render the expected number of serieses`
441
+ );
442
+ test.equal(
443
+ matrix.Inner.dom.seriesesG.selectAll(".sjpp-mass-series-g rect").size(),
444
+ 902,
445
+ `should render the expected number of cell rects`
446
+ );
447
+ test.equal(
448
+ matrix.Inner.dom.cluster.selectAll(".sjpp-matrix-clusteroutlines rect").size(),
449
+ 1,
450
+ `should render the expected number of cluster rects`
451
+ );
452
+ if (test._ok) matrix.Inner.app.destroy();
453
+ test.end();
454
+ }
455
+ });
456
+ (0, import_tape.default)("geneVariant terms with divide by dictionary term", function(test) {
457
+ test.timeoutAfter(5e3);
458
+ test.plan(3);
459
+ runpp({
460
+ state: {
461
+ nav: {
462
+ activeTab: 1
463
+ },
464
+ plots: [
465
+ {
466
+ chartType: "matrix",
467
+ settings: {
468
+ // the matrix autocomputes the colw based on available screen width,
469
+ // need to set an exact screen width for consistent tests using getBBox()
470
+ matrix: {
471
+ availContentWidth: 1200
472
+ }
473
+ },
474
+ divideBy: {
475
+ id: "sex"
476
+ },
477
+ termgroups: [
478
+ {
479
+ name: "",
480
+ lst: getGenes()
481
+ }
482
+ ]
483
+ }
484
+ ]
485
+ },
486
+ matrix: {
487
+ callbacks: {
488
+ "postRender.test": runTests
489
+ }
490
+ }
491
+ });
492
+ function runTests(matrix) {
493
+ matrix.on("postRender.test", null);
494
+ test.equal(
495
+ matrix.Inner.dom.seriesesG.selectAll(".sjpp-mass-series-g").size(),
496
+ 3,
497
+ `should render the expected number of serieses`
498
+ );
499
+ test.equal(
500
+ matrix.Inner.dom.seriesesG.selectAll(".sjpp-mass-series-g rect").size(),
501
+ 722,
502
+ `should render the expected number of cell rects`
503
+ );
504
+ test.equal(
505
+ matrix.Inner.dom.cluster.selectAll(".sjpp-matrix-clusteroutlines rect").size(),
506
+ 2,
507
+ `should render the expected number of cluster rects`
508
+ );
509
+ if (test._ok) matrix.Inner.app.destroy();
510
+ test.end();
511
+ }
512
+ });
513
+ (0, import_tape.default)("geneVariant terms and dictionary terms divide by dictionary term", function(test) {
514
+ test.timeoutAfter(5e3);
515
+ test.plan(3);
516
+ runpp({
517
+ state: {
518
+ nav: {
519
+ activeTab: 1
520
+ },
521
+ plots: [
522
+ {
523
+ chartType: "matrix",
524
+ settings: {
525
+ // the matrix autocomputes the colw based on available screen width,
526
+ // need to set an exact screen width for consistent tests using getBBox()
527
+ matrix: {
528
+ availContentWidth: 1200
529
+ }
530
+ },
531
+ divideBy: {
532
+ id: "sex"
533
+ },
534
+ termgroups: [
535
+ {
536
+ name: "",
537
+ lst: [
538
+ ...getGenes(),
539
+ { id: "agedx", term: termjson["agedx"] },
540
+ { id: "diaggrp", term: termjson["diaggrp"] },
541
+ { id: "aaclassic_5", term: termjson["aaclassic_5"] }
542
+ ]
543
+ }
544
+ ]
545
+ }
546
+ ]
547
+ },
548
+ matrix: {
549
+ callbacks: {
550
+ "postRender.test": runTests
551
+ }
552
+ }
553
+ });
554
+ function runTests(matrix) {
555
+ matrix.on("postRender.test", null);
556
+ test.equal(
557
+ matrix.Inner.dom.seriesesG.selectAll(".sjpp-mass-series-g").size(),
558
+ 6,
559
+ `should render the expected number of serieses`
560
+ );
561
+ test.equal(
562
+ matrix.Inner.dom.seriesesG.selectAll(".sjpp-mass-series-g rect").size(),
563
+ 902,
564
+ `should render the expected number of cell rects`
565
+ );
566
+ test.equal(
567
+ matrix.Inner.dom.cluster.selectAll(".sjpp-matrix-clusteroutlines rect").size(),
568
+ 2,
569
+ `should render the expected number of cluster rects`
570
+ );
571
+ if (test._ok) matrix.Inner.app.destroy();
572
+ test.end();
573
+ }
574
+ });
575
+ (0, import_tape.default)("sort samples by sample name", function(test) {
576
+ test.timeoutAfter(5e3);
577
+ test.plan(4);
578
+ runpp({
579
+ state: {
580
+ nav: {
581
+ activeTab: 1
582
+ },
583
+ plots: [
584
+ {
585
+ chartType: "matrix",
586
+ settings: {
587
+ // the matrix autocomputes the colw based on available screen width,
588
+ // need to set an exact screen width for consistent tests using getBBox()
589
+ matrix: {
590
+ availContentWidth: 1200,
591
+ sortSamplesBy: "name"
592
+ }
593
+ },
594
+ termgroups: [
595
+ {
596
+ name: "",
597
+ lst: getGenes()
598
+ }
599
+ ]
600
+ }
601
+ ]
602
+ },
603
+ matrix: {
604
+ callbacks: {
605
+ "postRender.test": runTests
606
+ }
607
+ }
608
+ });
609
+ function runTests(matrix) {
610
+ matrix.on("postRender.test", null);
611
+ const g = matrix.Inner.dom.sampleLabelsPG.selectAll(".sjpp-matrix-series-label-g g");
612
+ test.equal(g.size(), 60, `should render the expected number of sample names`);
613
+ test.equal(g._groups[0][0].textContent, "2646", `should be the expected sample name`);
614
+ test.equal(g._groups[0][9].textContent, "2772", `should be the expected sample name`);
615
+ test.equal(g._groups[0][59].textContent, "3472", `should be the expected sample name`);
616
+ if (test._ok) matrix.Inner.app.destroy();
617
+ test.end();
618
+ }
619
+ });
620
+ (0, import_tape.default)("sort samples by Mutation categories, not sorted by CNV", function(test) {
621
+ test.timeoutAfter(5e3);
622
+ test.plan(4);
623
+ runpp({
624
+ state: {
625
+ nav: {
626
+ activeTab: 1
627
+ },
628
+ plots: [
629
+ {
630
+ chartType: "matrix",
631
+ settings: {
632
+ // the matrix autocomputes the colw based on available screen width,
633
+ // need to set an exact screen width for consistent tests using getBBox()
634
+ matrix: {
635
+ availContentWidth: 1200,
636
+ sortSamplesBy: "a"
637
+ }
638
+ },
639
+ termgroups: [
640
+ {
641
+ name: "Demographics",
642
+ lst: getGenes()
643
+ }
644
+ ]
645
+ }
646
+ ]
647
+ },
648
+ matrix: {
649
+ callbacks: {
650
+ "postRender.test": runTests
651
+ }
652
+ }
653
+ });
654
+ function runTests(matrix) {
655
+ matrix.on("postRender.test", null);
656
+ test.equal(
657
+ matrix.Inner.dom.sampleLabelsPG.selectAll(".sjpp-matrix-series-label-g g").size(),
658
+ 60,
659
+ `should render the expected number of sample names`
660
+ );
661
+ const rects = matrix.Inner.dom.sampleLabelsPG.selectAll(".sjpp-matrix-series-label-g g")._groups[0];
662
+ const index_3346 = Array.from(rects).find((rect) => rect.textContent == "3346").__data__.index;
663
+ test.true(index_3346 < 10, `sample 3346 should be in the expected order (not sorted by CNV)`);
664
+ const index_2660 = Array.from(rects).find((rect) => rect.textContent == "2660").__data__.index;
665
+ test.equal(index_2660, 8, `sample 2660 should be in the expected order (not sorted by CNV)`);
666
+ const index_3472 = Array.from(rects).find((rect) => rect.textContent == "3472").__data__.index;
667
+ test.true(index_3472 > 9, `sample 3472 should be in the expected order (not sorted by CNV)`);
668
+ if (test._ok) matrix.Inner.app.destroy();
669
+ test.end();
670
+ }
671
+ });
672
+ (0, import_tape.default)("sort samples by CNV+SSM > SSM-only", function(test) {
673
+ test.timeoutAfter(5e3);
674
+ test.plan(5);
675
+ const sortOptions = getSortOptions(
676
+ void 0,
677
+ {},
678
+ {
679
+ proteinChangingMutations,
680
+ truncatingMutations,
681
+ synonymousMutations,
682
+ mutationClasses,
683
+ CNVClasses
684
+ }
685
+ );
686
+ const cnvtb = sortOptions.a.sortPriority[0].tiebreakers[2];
687
+ cnvtb.disabled = false;
688
+ runpp({
689
+ state: {
690
+ nav: {
691
+ activeTab: 1
692
+ },
693
+ plots: [
694
+ {
695
+ chartType: "matrix",
696
+ legendValueFilter: {
697
+ type: "tvslst",
698
+ lst: []
699
+ },
700
+ settings: {
701
+ // the matrix autocomputes the colw based on available screen width,
702
+ // need to set an exact screen width for consistent tests using getBBox()
703
+ matrix: {
704
+ availContentWidth: 1200,
705
+ sortSamplesBy: "a",
706
+ sortOptions
707
+ }
708
+ },
709
+ termgroups: [
710
+ {
711
+ name: "",
712
+ lst: getGenes()
713
+ }
714
+ ]
715
+ }
716
+ ]
717
+ },
718
+ matrix: {
719
+ callbacks: {
720
+ "postRender.test": runTests
721
+ }
722
+ }
723
+ });
724
+ function runTests(matrix) {
725
+ matrix.on("postRender.test", null);
726
+ test.equal(
727
+ matrix.Inner.dom.sampleLabelsPG.selectAll(".sjpp-matrix-series-label-g g").size(),
728
+ 60,
729
+ `should render the expected number of sample names`
730
+ );
731
+ const rects = matrix.Inner.dom.sampleLabelsPG.selectAll(".sjpp-matrix-series-label-g g")._groups[0];
732
+ const r = Array.from(rects);
733
+ const index_3416 = r.find((rect) => rect.textContent == "3416").__data__.index;
734
+ test.equal(index_3416, 0, `should be in the expected order`);
735
+ const index_3346 = r.find((rect) => rect.textContent == "3346").__data__.index;
736
+ test.equal(index_3346, 9, `should be in the expected order`);
737
+ const index_2660 = r.find((rect) => rect.textContent == "2660").__data__.index;
738
+ test.equal(index_2660, 11, `should be in the expected order`);
739
+ const index_3472 = r.find((rect) => rect.textContent == "3472").__data__.index;
740
+ test.equal(index_3472, r.length - 1, `should be in the expected order`);
741
+ if (test._ok) matrix.Inner.app.destroy();
742
+ test.end();
743
+ }
744
+ });
745
+ (0, import_tape.default)("set max number of samples", function(test) {
746
+ test.timeoutAfter(5e3);
747
+ test.plan(1);
748
+ runpp({
749
+ state: {
750
+ nav: {
751
+ activeTab: 1
752
+ },
753
+ plots: [
754
+ {
755
+ chartType: "matrix",
756
+ settings: {
757
+ matrix: {
758
+ // the matrix autocomputes the colw based on available screen width,
759
+ // need to set an exact screen width for consistent tests using getBBox()
760
+ availContentWidth: 1200,
761
+ maxSample: 10
762
+ }
763
+ },
764
+ termgroups: [
765
+ {
766
+ name: "",
767
+ lst: [
768
+ {
769
+ id: "sex"
770
+ //q: { mode: 'values' } // or 'groupsetting'
771
+ }
772
+ ]
773
+ }
774
+ ]
775
+ }
776
+ ]
777
+ },
778
+ matrix: {
779
+ callbacks: {
780
+ "postRender.test": runTests
781
+ }
782
+ }
783
+ });
784
+ function runTests(matrix) {
785
+ matrix.on("postRender.test", null);
786
+ test.equal(
787
+ matrix.Inner.dom.seriesesG.selectAll(".sjpp-mass-series-g rect").size(),
788
+ 10,
789
+ `should render the expected number of cell rects`
790
+ );
791
+ if (test._ok) matrix.Inner.app.destroy();
792
+ test.end();
793
+ }
794
+ });
795
+ (0, import_tape.default)("sort sample groups by Group Name", function(test) {
796
+ test.timeoutAfter(5e3);
797
+ test.plan(2);
798
+ runpp({
799
+ state: {
800
+ nav: {
801
+ activeTab: 1
802
+ },
803
+ plots: [
804
+ {
805
+ chartType: "matrix",
806
+ settings: {
807
+ // the matrix autocomputes the colw based on available screen width,
808
+ // need to set an exact screen width for consistent tests using getBBox()
809
+ matrix: {
810
+ availContentWidth: 1200,
811
+ sortSampleGrpsBy: "name"
812
+ }
813
+ },
814
+ divideBy: {
815
+ id: "genetic_race"
816
+ },
817
+ termgroups: [
818
+ {
819
+ name: "",
820
+ lst: getGenes()
821
+ }
822
+ ]
823
+ }
824
+ ]
825
+ },
826
+ matrix: {
827
+ callbacks: {
828
+ "postRender.test": runTests
829
+ }
830
+ }
831
+ });
832
+ function runTests(matrix) {
833
+ matrix.on("postRender.test", null);
834
+ const matrixGroupLabels = matrix.Inner.dom.sampleLabelsPG.selectAll(
835
+ ".sjpp-matrix-series-group-label-g .sjpp-matrix-label"
836
+ )._groups[0];
837
+ test.true(matrixGroupLabels[0].textContent.startsWith("African Ancestry"), `should be the expected group name`);
838
+ test.true(matrixGroupLabels[2].textContent.startsWith("European Ancestry"), `should be the expected group name`);
839
+ if (test._ok) matrix.Inner.app.destroy();
840
+ test.end();
841
+ }
842
+ });
843
+ (0, import_tape.default)("sort sample groups by Sample Count", function(test) {
844
+ test.timeoutAfter(5e3);
845
+ test.plan(2);
846
+ runpp({
847
+ state: {
848
+ nav: {
849
+ activeTab: 1
850
+ },
851
+ plots: [
852
+ {
853
+ chartType: "matrix",
854
+ settings: {
855
+ // the matrix autocomputes the colw based on available screen width,
856
+ // need to set an exact screen width for consistent tests using getBBox()
857
+ matrix: {
858
+ availContentWidth: 1200,
859
+ sortSampleGrpsBy: "sampleCount"
860
+ }
861
+ },
862
+ divideBy: {
863
+ id: "genetic_race"
864
+ },
865
+ termgroups: [
866
+ {
867
+ name: "",
868
+ lst: getGenes()
869
+ }
870
+ ]
871
+ }
872
+ ]
873
+ },
874
+ matrix: {
875
+ callbacks: {
876
+ "postRender.test": runTests
877
+ }
878
+ }
879
+ });
880
+ function runTests(matrix) {
881
+ matrix.on("postRender.test", null);
882
+ const matrixGroupLabels = matrix.Inner.dom.sampleLabelsPG.selectAll(
883
+ ".sjpp-matrix-series-group-label-g .sjpp-matrix-label"
884
+ )._groups[0];
885
+ test.true(matrixGroupLabels[0].textContent.startsWith("European Ancestry"), `should be the expected group name`);
886
+ test.true(matrixGroupLabels[2].textContent.startsWith("Asian Ancestry"), `should be the expected group name`);
887
+ if (test._ok) matrix.Inner.app.destroy();
888
+ test.end();
889
+ }
890
+ });
891
+ (0, import_tape.default)("sort sample groups by Hits", function(test) {
892
+ test.timeoutAfter(5e3);
893
+ test.plan(2);
894
+ runpp({
895
+ state: {
896
+ nav: {
897
+ activeTab: 1
898
+ },
899
+ plots: [
900
+ {
901
+ chartType: "matrix",
902
+ settings: {
903
+ // the matrix autocomputes the colw based on available screen width,
904
+ // need to set an exact screen width for consistent tests using getBBox()
905
+ matrix: {
906
+ availContentWidth: 1200,
907
+ sortSampleGrpsBy: "hits"
908
+ }
909
+ },
910
+ divideBy: {
911
+ id: "Hearing loss"
912
+ },
913
+ termgroups: [
914
+ {
915
+ name: "",
916
+ lst: getGenes()
917
+ }
918
+ ]
919
+ }
920
+ ]
921
+ },
922
+ matrix: {
923
+ callbacks: {
924
+ "postRender.test": runTests
925
+ }
926
+ }
927
+ });
928
+ function runTests(matrix) {
929
+ matrix.on("postRender.test", null);
930
+ const matrixGroupLabels = matrix.Inner.dom.sampleLabelsPG.selectAll(
931
+ ".sjpp-matrix-series-group-label-g .sjpp-matrix-label"
932
+ )._groups[0];
933
+ test.true(matrixGroupLabels[0].textContent.startsWith("3: Severe"), `should be the expected group name`);
934
+ test.true(matrixGroupLabels[4].textContent.startsWith("1: Mild"), `should be the expected group name`);
935
+ if (test._ok) matrix.Inner.app.destroy();
936
+ test.end();
937
+ }
938
+ });
939
+ (0, import_tape.default)("sort sample groups by Hits 2", function(test) {
940
+ test.timeoutAfter(5e3);
941
+ test.plan(2);
942
+ runpp({
943
+ state: {
944
+ plots: [
945
+ {
946
+ id: "xyz",
947
+ chartType: "matrix",
948
+ settings: {
949
+ // the matrix autocomputes the colw based on available screen width,
950
+ // need to set an exact screen width for consistent tests using getBBox()
951
+ matrix: {
952
+ availContentWidth: 1200,
953
+ sortSampleGrpsBy: "hits"
954
+ }
955
+ },
956
+ divideBy: {
957
+ id: "agedx"
958
+ },
959
+ termgroups: [
960
+ {
961
+ name: "",
962
+ lst: getGenes()
963
+ }
964
+ ]
965
+ }
966
+ ]
967
+ },
968
+ matrix: {
969
+ callbacks: {
970
+ postRender: runTests
971
+ }
972
+ }
973
+ });
974
+ function runTests(matrix) {
975
+ matrix.on("postRender", null);
976
+ const matrixGroupLabels = matrix.Inner.dom.sampleLabelsPG.selectAll(
977
+ ".sjpp-matrix-series-group-label-g .sjpp-matrix-label"
978
+ )._groups[0];
979
+ test.true(matrixGroupLabels[0].textContent.startsWith("10 to <15"), `should have the expected left-most group name`);
980
+ test.true(matrixGroupLabels[4].textContent.startsWith("\u226520"), `should have the right-most expected group name`);
981
+ if (test._ok) matrix.Inner.app.destroy();
982
+ test.end();
983
+ }
984
+ });
985
+ (0, import_tape.default)("Display Sample Counts for Gene: Absolute", function(test) {
986
+ test.timeoutAfter(5e3);
987
+ test.plan(2);
988
+ runpp({
989
+ state: {
990
+ plots: [
991
+ {
992
+ chartType: "matrix",
993
+ settings: {
994
+ // the matrix autocomputes the colw based on available screen width,
995
+ // need to set an exact screen width for consistent tests using getBBox()
996
+ matrix: {
997
+ availContentWidth: 1200,
998
+ samplecount4gene: "abs"
999
+ }
1000
+ },
1001
+ termgroups: [
1002
+ {
1003
+ name: "",
1004
+ lst: getGenes()
1005
+ }
1006
+ ]
1007
+ }
1008
+ ]
1009
+ },
1010
+ matrix: {
1011
+ callbacks: {
1012
+ "postRender.test": runTests
1013
+ }
1014
+ }
1015
+ });
1016
+ function runTests(matrix) {
1017
+ matrix.on("postRender.test", null);
1018
+ const termLabels = matrix.Inner.dom.termLabelG.selectAll(".sjpp-matrix-term-label-g .sjpp-matrix-label")._groups[0];
1019
+ const pattern = /\(\d+\)/;
1020
+ test.true(pattern.test(termLabels[0].textContent), `should display sample counts for gene by absolute number`);
1021
+ test.true(
1022
+ pattern.test(termLabels[termLabels.length - 1].textContent),
1023
+ `should display sample counts for gene by absolute number`
1024
+ );
1025
+ if (test._ok) matrix.Inner.app.destroy();
1026
+ test.end();
1027
+ }
1028
+ });
1029
+ (0, import_tape.default)("Display Sample Counts for Gene: Percent", function(test) {
1030
+ test.timeoutAfter(5e3);
1031
+ test.plan(2);
1032
+ runpp({
1033
+ state: {
1034
+ plots: [
1035
+ {
1036
+ chartType: "matrix",
1037
+ settings: {
1038
+ // the matrix autocomputes the colw based on available screen width,
1039
+ // need to set an exact screen width for consistent tests using getBBox()
1040
+ matrix: {
1041
+ availContentWidth: 1200,
1042
+ samplecount4gene: "pct"
1043
+ }
1044
+ },
1045
+ termgroups: [
1046
+ {
1047
+ name: "",
1048
+ lst: getGenes()
1049
+ }
1050
+ ]
1051
+ }
1052
+ ]
1053
+ },
1054
+ matrix: {
1055
+ callbacks: {
1056
+ "postRender.test": runTests
1057
+ }
1058
+ }
1059
+ });
1060
+ function runTests(matrix) {
1061
+ matrix.on("postRender.test", null);
1062
+ const termLabels = matrix.Inner.dom.termLabelG.selectAll(".sjpp-matrix-term-label-g .sjpp-matrix-label")._groups[0];
1063
+ const pattern = /\(\d+(\.\d+)? ?%\)/;
1064
+ test.true(pattern.test(termLabels[0].textContent), `should display sample counts for gene by percentage`);
1065
+ test.true(
1066
+ pattern.test(termLabels[termLabels.length - 1].textContent),
1067
+ `should display sample counts for gene by percentage`
1068
+ );
1069
+ if (test._ok) matrix.Inner.app.destroy();
1070
+ test.end();
1071
+ }
1072
+ });
1073
+ (0, import_tape.default)("Display Sample Counts for Gene: None", function(test) {
1074
+ test.timeoutAfter(5e3);
1075
+ test.plan(2);
1076
+ runpp({
1077
+ state: {
1078
+ plots: [
1079
+ {
1080
+ chartType: "matrix",
1081
+ settings: {
1082
+ // the matrix autocomputes the colw based on available screen width,
1083
+ // need to set an exact screen width for consistent tests using getBBox()
1084
+ matrix: {
1085
+ availContentWidth: 1200,
1086
+ samplecount4gene: ""
1087
+ }
1088
+ },
1089
+ termgroups: [
1090
+ {
1091
+ name: "",
1092
+ lst: getGenes()
1093
+ }
1094
+ ]
1095
+ }
1096
+ ]
1097
+ },
1098
+ matrix: {
1099
+ callbacks: {
1100
+ "postRender.test": runTests
1101
+ }
1102
+ }
1103
+ });
1104
+ function runTests(matrix) {
1105
+ matrix.on("postRender.test", null);
1106
+ const termLabels = matrix.Inner.dom.termLabelG.selectAll(".sjpp-matrix-term-label-g .sjpp-matrix-label")._groups[0];
1107
+ const pattern = /\(\d+(\.\d+)?%\)|\(\d+\)/g;
1108
+ test.true(!pattern.test(termLabels[0].textContent), `should not display sample counts for gene`);
1109
+ test.true(!pattern.test(termLabels[termLabels.length - 1].textContent), `should not display sample counts for gene`);
1110
+ if (test._ok) matrix.Inner.app.destroy();
1111
+ test.end();
1112
+ }
1113
+ });
1114
+ (0, import_tape.default)("Sort Genes By Sample Count", function(test) {
1115
+ test.timeoutAfter(5e3);
1116
+ test.plan(2);
1117
+ runpp({
1118
+ state: {
1119
+ plots: [
1120
+ {
1121
+ chartType: "matrix",
1122
+ settings: {
1123
+ // the matrix autocomputes the colw based on available screen width,
1124
+ // need to set an exact screen width for consistent tests using getBBox()
1125
+ matrix: {
1126
+ availContentWidth: 1200,
1127
+ sortTermsBy: "sampleCount"
1128
+ }
1129
+ },
1130
+ termgroups: [
1131
+ {
1132
+ name: "",
1133
+ lst: getGenes()
1134
+ }
1135
+ ]
1136
+ }
1137
+ ]
1138
+ },
1139
+ matrix: {
1140
+ callbacks: {
1141
+ "postRender.test": runTests
1142
+ }
1143
+ }
1144
+ });
1145
+ function runTests(matrix) {
1146
+ matrix.on("postRender.test", null);
1147
+ const termLabels = matrix.Inner.dom.termLabelG.selectAll(".sjpp-matrix-term-label-g .sjpp-matrix-label")._groups[0];
1148
+ test.true(termLabels[0].textContent.startsWith("AKT1"), `should sort genes by sample count`);
1149
+ test.true(termLabels[2].textContent.startsWith("KRAS"), `should sort genes by sample count`);
1150
+ if (test._ok) matrix.Inner.app.destroy();
1151
+ test.end();
1152
+ }
1153
+ });
1154
+ (0, import_tape.default)("Sort Genes By Input Data Order", function(test) {
1155
+ test.timeoutAfter(5e3);
1156
+ test.plan(2);
1157
+ runpp({
1158
+ state: {
1159
+ plots: [
1160
+ {
1161
+ chartType: "matrix",
1162
+ settings: {
1163
+ // the matrix autocomputes the colw based on available screen width,
1164
+ // need to set an exact screen width for consistent tests using getBBox()
1165
+ matrix: {
1166
+ availContentWidth: 1200,
1167
+ sortTermsBy: "asListed"
1168
+ }
1169
+ },
1170
+ termgroups: [
1171
+ {
1172
+ name: "",
1173
+ lst: getGenes()
1174
+ }
1175
+ ]
1176
+ }
1177
+ ]
1178
+ },
1179
+ matrix: {
1180
+ callbacks: {
1181
+ "postRender.test": runTests
1182
+ }
1183
+ }
1184
+ });
1185
+ function runTests(matrix) {
1186
+ matrix.on("postRender.test", null);
1187
+ const termLabels = matrix.Inner.dom.termLabelG.selectAll(".sjpp-matrix-term-label-g .sjpp-matrix-label")._groups[0];
1188
+ test.true(termLabels[0].textContent.startsWith("TP53"), `should sort genes by input data order`);
1189
+ test.true(termLabels[2].textContent.startsWith("AKT1"), `should sort genes by input data order`);
1190
+ if (test._ok) matrix.Inner.app.destroy();
1191
+ test.end();
1192
+ }
1193
+ });
1194
+ (0, import_tape.default)("avoid race condition - plot edit", function(test) {
1195
+ test.timeoutAfter(1500);
1196
+ test.plan(4);
1197
+ runpp({
1198
+ state: {
1199
+ plots: [
1200
+ {
1201
+ chartType: "matrix",
1202
+ settings: {
1203
+ // the matrix autocomputes the colw based on available screen width,
1204
+ // need to set an exact screen width for consistent tests using getBBox()
1205
+ matrix: {
1206
+ availContentWidth: 1200,
1207
+ sortTermsBy: "asListed"
1208
+ }
1209
+ },
1210
+ termgroups: [
1211
+ {
1212
+ name: "",
1213
+ lst: getGenes()
1214
+ }
1215
+ ]
1216
+ }
1217
+ ]
1218
+ },
1219
+ matrix: {
1220
+ callbacks: {
1221
+ "postRender.test": runTests
1222
+ }
1223
+ }
1224
+ });
1225
+ async function runTests(matrix) {
1226
+ matrix.on("postRender.test", null);
1227
+ matrix.Inner.app.vocabApi.origGetAnnotatedSampleData = matrix.Inner.app.vocabApi.getAnnotatedSampleData;
1228
+ matrix.Inner.app.vocabApi.getAnnotatedSampleData = async (opts, _refs = {}) => {
1229
+ const j = i;
1230
+ i = 0;
1231
+ const data = await matrix.Inner.app.vocabApi.origGetAnnotatedSampleData(opts, _refs);
1232
+ await sleep(j);
1233
+ return data;
1234
+ };
1235
+ matrix.on("postRender.test", async () => {
1236
+ matrix.on("postRender.test", null);
1237
+ await sleep(responseDelay + 300);
1238
+ const termLabels = matrix.Inner.dom.termLabelG.selectAll(".sjpp-matrix-term-label-g .sjpp-matrix-label");
1239
+ test.equal(termLabels.size(), 1, `should have 1 gene row`);
1240
+ test.true(termLabels._groups?.[0][0].textContent.startsWith("BCR"), `should sort genes by input data order`);
1241
+ const rects = matrix.Inner.dom.seriesesG.selectAll(".sjpp-mass-series-g rect");
1242
+ const hits = rects.filter((d) => d.key === "BCR" && d.value.class != "WT" && d.value.class != "Blank");
1243
+ test.equal(
1244
+ rects.size(),
1245
+ 240,
1246
+ "should have the expected total number of matrix cell rects, inlcuding WT and not tested"
1247
+ );
1248
+ test.equal(hits.size(), 2, "should have the expected number of matrix cell rects with hits");
1249
+ if (test._ok) matrix.Inner.app.destroy();
1250
+ test.end();
1251
+ });
1252
+ const responseDelay = 10;
1253
+ let i = responseDelay;
1254
+ try {
1255
+ const results = await Promise.all([
1256
+ matrix.Inner.app.dispatch({
1257
+ type: "plot_edit",
1258
+ id: matrix.id,
1259
+ config: {
1260
+ termgroups: [
1261
+ {
1262
+ name: "",
1263
+ lst: [
1264
+ // $id is added manually since fillTermWrapper() is not called here and
1265
+ // cannot be assumed to be called within store.plot_edit()
1266
+ {
1267
+ $id: 0,
1268
+ term: {
1269
+ gene: "KRAS",
1270
+ name: "KRAS",
1271
+ type: "geneVariant",
1272
+ isleaf: true,
1273
+ groupsetting: { disabled: false }
1274
+ },
1275
+ q: { type: "values" }
1276
+ },
1277
+ {
1278
+ $id: 1,
1279
+ term: {
1280
+ gene: "AKT1",
1281
+ name: "AKT1",
1282
+ type: "geneVariant",
1283
+ isleaf: true,
1284
+ groupsetting: { disabled: false }
1285
+ },
1286
+ q: { type: "values" }
1287
+ }
1288
+ ]
1289
+ }
1290
+ ]
1291
+ }
1292
+ }),
1293
+ (async () => {
1294
+ await sleep(1);
1295
+ matrix.Inner.app.dispatch({
1296
+ type: "plot_edit",
1297
+ id: matrix.id,
1298
+ config: {
1299
+ termgroups: [
1300
+ {
1301
+ name: "",
1302
+ // $id is added manually since fillTermWrapper() is not called here and
1303
+ // cannot be assumed to be called within store.plot_edit()
1304
+ lst: [
1305
+ {
1306
+ $id: 3,
1307
+ term: {
1308
+ name: "BCR",
1309
+ genes: [
1310
+ {
1311
+ kind: "gene",
1312
+ id: "BCR",
1313
+ gene: "BCR",
1314
+ name: "BCR",
1315
+ type: "geneVariant"
1316
+ }
1317
+ ],
1318
+ type: "geneVariant",
1319
+ isleaf: true,
1320
+ groupsetting: { disabled: false }
1321
+ },
1322
+ q: { type: "values" }
1323
+ }
1324
+ ]
1325
+ }
1326
+ ]
1327
+ }
1328
+ });
1329
+ })()
1330
+ ]);
1331
+ } catch (e) {
1332
+ test.fail("error: " + e);
1333
+ throw e;
1334
+ }
1335
+ }
1336
+ });
1337
+ (0, import_tape.default)("avoid race condition - cohort change", function(test) {
1338
+ test.timeoutAfter(3e3);
1339
+ test.plan(4);
1340
+ runpp({
1341
+ state: {
1342
+ plots: [
1343
+ {
1344
+ chartType: "matrix",
1345
+ settings: {
1346
+ // the matrix autocomputes the colw based on available screen width,
1347
+ // need to set an exact screen width for consistent tests using getBBox()
1348
+ matrix: {
1349
+ availContentWidth: 1200,
1350
+ sortTermsBy: "asListed"
1351
+ }
1352
+ },
1353
+ termgroups: [
1354
+ {
1355
+ name: "",
1356
+ lst: getGenes()
1357
+ }
1358
+ ]
1359
+ }
1360
+ ]
1361
+ },
1362
+ matrix: {
1363
+ callbacks: {
1364
+ "postRender.test": runTests
1365
+ }
1366
+ }
1367
+ });
1368
+ async function runTests(matrix) {
1369
+ matrix.on("postRender.test", null);
1370
+ matrix.Inner.app.vocabApi.origGetAnnotatedSampleData = matrix.Inner.app.vocabApi.getAnnotatedSampleData;
1371
+ matrix.Inner.app.vocabApi.getAnnotatedSampleData = async (opts, _refs = {}) => {
1372
+ const vkeys = opts.filter.lst?.[0].tvs.values.map((v) => v.key);
1373
+ const j = responseDelays[i];
1374
+ i++;
1375
+ await sleep(j);
1376
+ const data = await matrix.Inner.app.vocabApi.origGetAnnotatedSampleData(opts, _refs);
1377
+ return data;
1378
+ };
1379
+ matrix.on("postRender.test", async () => {
1380
+ matrix.on("postRender.test", null);
1381
+ await sleep(responseDelays.reduce((sum, v) => sum + v, 0) + 300);
1382
+ const termLabels = matrix.Inner.dom.termLabelG.selectAll(".sjpp-matrix-term-label-g .sjpp-matrix-label");
1383
+ test.equal(termLabels.size(), 3, `should have 3 gene rows`);
1384
+ const rects = matrix.Inner.dom.seriesesG.selectAll(".sjpp-mass-series-g rect");
1385
+ test.equal(
1386
+ rects.size(),
1387
+ 1202,
1388
+ "should have the expected total number of matrix cell rects, inlcuding WT and not tested"
1389
+ );
1390
+ const hits = rects.filter((d) => d.key === "BCR" && d.value.class != "WT" && d.value.class != "Blank");
1391
+ test.equal(hits.size(), 0, "should have the expected number of matrix cell rects with hits");
1392
+ test.deepEqual(
1393
+ matrix.Inner.app.getState().termfilter.filter.lst?.[0].tvs,
1394
+ matrix.Inner.state.filter.lst?.[0].tvs,
1395
+ `app.state and matrix.state should have the same cohort filter value`
1396
+ );
1397
+ if (test._ok) matrix.Inner.app.destroy();
1398
+ test.end();
1399
+ });
1400
+ const responseDelays = [800, 500, 10];
1401
+ let i = 0;
1402
+ try {
1403
+ const results = await Promise.all([
1404
+ (async () => {
1405
+ await sleep(100);
1406
+ matrix.Inner.app.dispatch({
1407
+ type: "cohort_set",
1408
+ activeCohort: 1
1409
+ });
1410
+ })(),
1411
+ (async () => {
1412
+ await sleep(200);
1413
+ matrix.Inner.app.dispatch({
1414
+ type: "cohort_set",
1415
+ activeCohort: 0
1416
+ });
1417
+ })(),
1418
+ (async () => {
1419
+ await sleep(300);
1420
+ matrix.Inner.app.dispatch({
1421
+ type: "cohort_set",
1422
+ activeCohort: 2
1423
+ });
1424
+ })()
1425
+ ]);
1426
+ } catch (e) {
1427
+ test.fail("error: " + e);
1428
+ throw e;
1429
+ }
1430
+ }
1431
+ });
1432
+ (0, import_tape.default)('apply "hide" legend filters to a dictionary term', function(test) {
1433
+ test.timeoutAfter(5e3);
1434
+ test.plan(10);
1435
+ runpp({
1436
+ state: {
1437
+ plots: [
1438
+ {
1439
+ chartType: "matrix",
1440
+ settings: {
1441
+ matrix: {
1442
+ // the matrix autocomputes the colw based on available screen width,
1443
+ // need to set an exact screen width for consistent tests using getBBox()
1444
+ availContentWidth: 1200
1445
+ }
1446
+ },
1447
+ termgroups: [
1448
+ {
1449
+ name: "Demographics",
1450
+ lst: [
1451
+ {
1452
+ id: "aaclassic_5",
1453
+ q: {
1454
+ mode: "continuous"
1455
+ }
1456
+ },
1457
+ {
1458
+ id: "genetic_race"
1459
+ //q: { mode: 'values' } // or 'groupsetting'
1460
+ },
1461
+ {
1462
+ id: "agedx",
1463
+ q: {
1464
+ mode: "discrete",
1465
+ type: "regular-bin",
1466
+ bin_size: 5,
1467
+ first_bin: {
1468
+ startunbounded: true,
1469
+ stop: 5,
1470
+ stopinclusive: true
1471
+ }
1472
+ }
1473
+ // or 'continuous'
1474
+ }
1475
+ ]
1476
+ }
1477
+ ]
1478
+ }
1479
+ ]
1480
+ },
1481
+ matrix: {
1482
+ callbacks: {
1483
+ "postRender.test": runTests
1484
+ }
1485
+ }
1486
+ });
1487
+ async function runTests(matrix) {
1488
+ matrix.on("postRender.test", null);
1489
+ const legendTexts = [...matrix.Inner.dom.legendG.node().querySelectorAll("g g text")].find(
1490
+ (d) => d?.__data__?.text?.startsWith("Asian")
1491
+ );
1492
+ legendTexts.dispatchEvent(
1493
+ new MouseEvent("mouseup", {
1494
+ bubbles: true,
1495
+ cancelable: true
1496
+ })
1497
+ );
1498
+ const options = matrix.Inner.dom.legendMenu.d.node().querySelectorAll("div.sja_menuoption.sja_sharp_border");
1499
+ test.equal(options[0].innerText, "Hide", `First option should be Hide`);
1500
+ test.equal(options[1].innerText, "Show only", `second option should be Show only`);
1501
+ test.equal(options[2].innerText, "Show all", `third option should be Show all`);
1502
+ const rects = await detectLst({
1503
+ elem: matrix.Inner.dom.seriesesG.node(),
1504
+ selector: ".sjpp-mass-series-g rect",
1505
+ count: 177,
1506
+ trigger: () => {
1507
+ options[0].dispatchEvent(
1508
+ new MouseEvent("click", {
1509
+ bubbles: true,
1510
+ cancelable: true
1511
+ })
1512
+ );
1513
+ }
1514
+ });
1515
+ test.equal(
1516
+ matrix.Inner.dom.seriesesG.selectAll(".sjpp-mass-series-g").size(),
1517
+ 3,
1518
+ `should render the expected number of serieses`
1519
+ );
1520
+ test.equal(
1521
+ matrix.Inner.dom.cluster.selectAll(".sjpp-matrix-clusteroutlines rect").size(),
1522
+ 1,
1523
+ `should render the expected number of cluster rects`
1524
+ );
1525
+ const legendTexts2 = [...matrix.Inner.dom.legendG.node().querySelectorAll("g g text")].find(
1526
+ (d) => d?.__data__?.text?.startsWith("Asian")
1527
+ );
1528
+ legendTexts2.dispatchEvent(
1529
+ new MouseEvent("mouseup", {
1530
+ bubbles: true,
1531
+ cancelable: true
1532
+ })
1533
+ );
1534
+ const options2 = matrix.Inner.dom.legendMenu.d.node().querySelectorAll("div.sja_menuoption.sja_sharp_border");
1535
+ test.equal(options2[0].innerText, "Show", `First option should be Show`);
1536
+ test.equal(options2[1].innerText, "Show only", `second option should be Show only`);
1537
+ test.equal(options2[2].innerText, "Show all", `third option should be Show all`);
1538
+ const rects2 = await detectLst({
1539
+ elem: matrix.Inner.dom.seriesesG.node(),
1540
+ selector: ".sjpp-mass-series-g rect",
1541
+ count: 180,
1542
+ trigger: () => {
1543
+ options2[0].dispatchEvent(
1544
+ new MouseEvent("click", {
1545
+ bubbles: true,
1546
+ cancelable: true
1547
+ })
1548
+ );
1549
+ }
1550
+ });
1551
+ test.equal(
1552
+ matrix.Inner.dom.seriesesG.selectAll(".sjpp-mass-series-g").size(),
1553
+ 3,
1554
+ `should render the expected number of serieses`
1555
+ );
1556
+ test.equal(
1557
+ matrix.Inner.dom.cluster.selectAll(".sjpp-matrix-clusteroutlines rect").size(),
1558
+ 1,
1559
+ `should render the expected number of cluster rects`
1560
+ );
1561
+ if (test._ok) matrix.Inner.app.destroy();
1562
+ test.end();
1563
+ }
1564
+ });
1565
+ (0, import_tape.default)('apply "show only" and "show all" legend filters to dictionary terms', function(test) {
1566
+ test.timeoutAfter(5e3);
1567
+ test.plan(14);
1568
+ runpp({
1569
+ state: {
1570
+ plots: [
1571
+ {
1572
+ chartType: "matrix",
1573
+ settings: {
1574
+ matrix: {
1575
+ // the matrix autocomputes the colw based on available screen width,
1576
+ // need to set an exact screen width for consistent tests using getBBox()
1577
+ availContentWidth: 1200
1578
+ }
1579
+ },
1580
+ termgroups: [
1581
+ {
1582
+ name: "Demographics",
1583
+ lst: [
1584
+ {
1585
+ id: "aaclassic_5",
1586
+ q: {
1587
+ mode: "continuous"
1588
+ }
1589
+ },
1590
+ {
1591
+ id: "sex"
1592
+ //q: { mode: 'values' } // or 'groupsetting'
1593
+ },
1594
+ {
1595
+ id: "agedx",
1596
+ q: {
1597
+ mode: "discrete",
1598
+ type: "regular-bin",
1599
+ bin_size: 5,
1600
+ first_bin: {
1601
+ startunbounded: true,
1602
+ stop: 5,
1603
+ stopinclusive: true
1604
+ }
1605
+ }
1606
+ // or 'continuous'
1607
+ }
1608
+ ]
1609
+ }
1610
+ ]
1611
+ }
1612
+ ]
1613
+ },
1614
+ matrix: {
1615
+ callbacks: {
1616
+ "postRender.test": runTests
1617
+ }
1618
+ }
1619
+ });
1620
+ async function runTests(matrix) {
1621
+ matrix.on("postRender.test", null);
1622
+ const legendTexts = [...matrix.Inner.dom.legendG.node().querySelectorAll("g g text")].find(
1623
+ (d) => d?.__data__?.text?.startsWith("Male")
1624
+ );
1625
+ legendTexts.dispatchEvent(
1626
+ new MouseEvent("mouseup", {
1627
+ bubbles: true,
1628
+ cancelable: true
1629
+ })
1630
+ );
1631
+ const options = matrix.Inner.dom.legendMenu.d.node().querySelectorAll("div.sja_menuoption.sja_sharp_border");
1632
+ const rects = await detectLst({
1633
+ elem: matrix.Inner.dom.seriesesG.node(),
1634
+ selector: ".sjpp-mass-series-g rect",
1635
+ count: 75,
1636
+ trigger: () => {
1637
+ options[1].dispatchEvent(
1638
+ new MouseEvent("click", {
1639
+ bubbles: true,
1640
+ cancelable: true
1641
+ })
1642
+ );
1643
+ }
1644
+ });
1645
+ test.equal(
1646
+ matrix.Inner.dom.seriesesG.selectAll(".sjpp-mass-series-g").size(),
1647
+ 3,
1648
+ `should render the expected number of serieses`
1649
+ );
1650
+ test.equal(
1651
+ matrix.Inner.dom.cluster.selectAll(".sjpp-matrix-clusteroutlines rect").size(),
1652
+ 1,
1653
+ `should render the expected number of cluster rects`
1654
+ );
1655
+ const secondLegendTexts = [...matrix.Inner.dom.legendG.node().querySelectorAll("g g text")].find(
1656
+ (d) => d?.__data__?.text?.startsWith("<5")
1657
+ );
1658
+ secondLegendTexts.dispatchEvent(
1659
+ new MouseEvent("mouseup", {
1660
+ bubbles: true,
1661
+ cancelable: true
1662
+ })
1663
+ );
1664
+ const secondOptions = matrix.Inner.dom.legendMenu.d.node().querySelectorAll("div.sja_menuoption.sja_sharp_border");
1665
+ test.equal(secondOptions[0].innerText, "Hide", `First option should be Hide`);
1666
+ test.equal(secondOptions[1].innerText, "Show only", `second option should be Show only`);
1667
+ test.equal(secondOptions[2].innerText, "Show all", `third option should be Show all`);
1668
+ const secondRects = await detectLst({
1669
+ elem: matrix.Inner.dom.seriesesG.node(),
1670
+ selector: ".sjpp-mass-series-g rect",
1671
+ count: 30,
1672
+ trigger: () => {
1673
+ secondOptions[1].dispatchEvent(
1674
+ new MouseEvent("click", {
1675
+ bubbles: true,
1676
+ cancelable: true
1677
+ })
1678
+ );
1679
+ }
1680
+ });
1681
+ test.equal(
1682
+ matrix.Inner.dom.seriesesG.selectAll(".sjpp-mass-series-g").size(),
1683
+ 3,
1684
+ `should render the expected number of serieses`
1685
+ );
1686
+ test.equal(
1687
+ matrix.Inner.dom.cluster.selectAll(".sjpp-matrix-clusteroutlines rect").size(),
1688
+ 1,
1689
+ `should render the expected number of cluster rects`
1690
+ );
1691
+ const thirdLegendTexts = [...matrix.Inner.dom.legendG.node().querySelectorAll("g g text")].find(
1692
+ (d) => d?.__data__?.text?.startsWith("<5")
1693
+ );
1694
+ thirdLegendTexts.dispatchEvent(
1695
+ new MouseEvent("mouseup", {
1696
+ bubbles: true,
1697
+ cancelable: true
1698
+ })
1699
+ );
1700
+ const thirdOptions = matrix.Inner.dom.legendMenu.d.node().querySelectorAll("div.sja_menuoption.sja_sharp_border");
1701
+ test.equal(thirdOptions[0].innerText, "Hide", `First option should be Hide`);
1702
+ test.equal(thirdOptions[2].innerText, "Show all", `third option should be Show all`);
1703
+ const thirdRects = await detectLst({
1704
+ elem: matrix.Inner.dom.seriesesG.node(),
1705
+ selector: ".sjpp-mass-series-g rect",
1706
+ count: 0,
1707
+ trigger: () => {
1708
+ thirdOptions[0].dispatchEvent(
1709
+ new MouseEvent("click", {
1710
+ bubbles: true,
1711
+ cancelable: true
1712
+ })
1713
+ );
1714
+ }
1715
+ });
1716
+ test.equal(
1717
+ matrix.Inner.dom.seriesesG.selectAll(".sjpp-mass-series-g").size(),
1718
+ 0,
1719
+ `should render the expected number of serieses`
1720
+ );
1721
+ const fourthLegendTexts = [...matrix.Inner.dom.legendG.node().querySelectorAll("g g text")].find(
1722
+ (d) => d?.__data__?.text?.startsWith("<5")
1723
+ );
1724
+ fourthLegendTexts.dispatchEvent(
1725
+ new MouseEvent("mouseup", {
1726
+ bubbles: true,
1727
+ cancelable: true
1728
+ })
1729
+ );
1730
+ const fourthOptions = matrix.Inner.dom.legendMenu.d.node().querySelectorAll("div.sja_menuoption.sja_sharp_border");
1731
+ test.equal(fourthOptions[0].innerText, "Show", `first option should be Show`);
1732
+ test.equal(fourthOptions[2].innerText, "Show all", `third option should be Show all`);
1733
+ const fourthRects = await detectLst({
1734
+ elem: matrix.Inner.dom.seriesesG.node(),
1735
+ selector: ".sjpp-mass-series-g rect",
1736
+ count: 75,
1737
+ trigger: () => {
1738
+ fourthOptions[2].dispatchEvent(
1739
+ new MouseEvent("click", {
1740
+ bubbles: true,
1741
+ cancelable: true
1742
+ })
1743
+ );
1744
+ }
1745
+ });
1746
+ test.equal(
1747
+ matrix.Inner.dom.seriesesG.selectAll(".sjpp-mass-series-g").size(),
1748
+ 3,
1749
+ `should render the expected number of serieses`
1750
+ );
1751
+ test.equal(
1752
+ matrix.Inner.dom.cluster.selectAll(".sjpp-matrix-clusteroutlines rect").size(),
1753
+ 1,
1754
+ `should render the expected number of cluster rects`
1755
+ );
1756
+ if (test._ok) matrix.Inner.app.destroy();
1757
+ test.end();
1758
+ }
1759
+ });
1760
+ (0, import_tape.default)(
1761
+ 'apply "Hide samples with" and "Do not show" legend filters to a geneVariant term in geneVariant term only matrix',
1762
+ function(test) {
1763
+ test.timeoutAfter(5e3);
1764
+ test.plan(12);
1765
+ runpp({
1766
+ state: {
1767
+ plots: [
1768
+ {
1769
+ chartType: "matrix",
1770
+ settings: {
1771
+ // the matrix autocomputes the colw based on available screen width,
1772
+ // need to set an exact screen width for consistent tests using getBBox()
1773
+ matrix: {
1774
+ availContentWidth: 1200
1775
+ }
1776
+ },
1777
+ termgroups: [
1778
+ {
1779
+ name: "",
1780
+ lst: [getGenes()[0]]
1781
+ }
1782
+ ]
1783
+ }
1784
+ ]
1785
+ },
1786
+ matrix: {
1787
+ callbacks: {
1788
+ "postRender.test": runTests
1789
+ }
1790
+ }
1791
+ });
1792
+ async function runTests(matrix) {
1793
+ matrix.on("postRender.test", null);
1794
+ const legendTexts = [...matrix.Inner.dom.legendG.node().querySelectorAll("g g text")].find(
1795
+ (d) => d?.__data__?.$id?.startsWith("Germline Mutations") && d.__data__.text?.startsWith("FRAMESHIFT")
1796
+ );
1797
+ legendTexts.dispatchEvent(
1798
+ new MouseEvent("mouseup", {
1799
+ bubbles: true,
1800
+ cancelable: true
1801
+ })
1802
+ );
1803
+ const options = matrix.Inner.dom.legendMenu.d.node().querySelectorAll("div.sja_menuoption.sja_sharp_border");
1804
+ test.equal(
1805
+ options[0].innerText,
1806
+ "Hide samples with FRAMESHIFT",
1807
+ `First option should be "Hide samples with FRAMESHIFT"`
1808
+ );
1809
+ test.equal(options[1].innerText, "Do not show FRAMESHIFT", `second option should be "Do not show FRAMESHIFT"`);
1810
+ test.equal(options.length, 2, `Should only show two options`);
1811
+ const rects = await detectLst({
1812
+ elem: matrix.Inner.dom.seriesesG.node(),
1813
+ selector: ".sjpp-mass-series-g rect",
1814
+ count: 237,
1815
+ trigger: () => {
1816
+ options[0].dispatchEvent(
1817
+ new MouseEvent("click", {
1818
+ bubbles: true,
1819
+ cancelable: true
1820
+ })
1821
+ );
1822
+ }
1823
+ });
1824
+ test.equal(
1825
+ matrix.Inner.dom.seriesesG.selectAll(".sjpp-mass-series-g").size(),
1826
+ 1,
1827
+ `should render the expected number of serieses`
1828
+ );
1829
+ test.equal(
1830
+ matrix.Inner.dom.cluster.selectAll(".sjpp-matrix-clusteroutlines rect").size(),
1831
+ 1,
1832
+ `should render the expected number of cluster rects`
1833
+ );
1834
+ const legendTexts2 = [...matrix.Inner.dom.legendG.node().querySelectorAll("g g text")].find(
1835
+ (d) => d?.__data__?.$id?.startsWith("Germline Mutations") && d.__data__.text?.startsWith("FRAMESHIFT")
1836
+ );
1837
+ legendTexts2.dispatchEvent(
1838
+ new MouseEvent("mouseup", {
1839
+ bubbles: true,
1840
+ cancelable: true
1841
+ })
1842
+ );
1843
+ const options2 = matrix.Inner.dom.legendMenu.d.node().querySelectorAll("div.sja_menuoption.sja_sharp_border");
1844
+ test.equal(
1845
+ options2[0].innerText,
1846
+ "Show samples with FRAMESHIFT",
1847
+ `First option should be "Show samples with FRAMESHIFT"`
1848
+ );
1849
+ test.equal(options2.length, 1, `Should only show one option`);
1850
+ const rects2 = await detectLst({
1851
+ elem: matrix.Inner.dom.seriesesG.node(),
1852
+ selector: ".sjpp-mass-series-g rect",
1853
+ count: 242,
1854
+ trigger: () => {
1855
+ options2[0].dispatchEvent(
1856
+ new MouseEvent("click", {
1857
+ bubbles: true,
1858
+ cancelable: true
1859
+ })
1860
+ );
1861
+ }
1862
+ });
1863
+ test.equal(
1864
+ matrix.Inner.dom.seriesesG.selectAll(".sjpp-mass-series-g").size(),
1865
+ 1,
1866
+ `should render the expected number of serieses`
1867
+ );
1868
+ test.equal(
1869
+ matrix.Inner.dom.cluster.selectAll(".sjpp-matrix-clusteroutlines rect").size(),
1870
+ 1,
1871
+ `should render the expected number of cluster rects`
1872
+ );
1873
+ const legendTexts3 = [...matrix.Inner.dom.legendG.node().querySelectorAll("g g text")].find(
1874
+ (d) => d?.__data__?.$id?.startsWith("Germline Mutations") && d.__data__.text?.startsWith("FRAMESHIFT")
1875
+ );
1876
+ legendTexts3.dispatchEvent(
1877
+ new MouseEvent("mouseup", {
1878
+ bubbles: true,
1879
+ cancelable: true
1880
+ })
1881
+ );
1882
+ const options3 = matrix.Inner.dom.legendMenu.d.node().querySelectorAll("div.sja_menuoption.sja_sharp_border");
1883
+ test.equal(options3.length, 2, `Should only show two options`);
1884
+ const rects3 = await detectLst({
1885
+ elem: matrix.Inner.dom.seriesesG.node(),
1886
+ selector: ".sjpp-mass-series-g rect",
1887
+ count: 241,
1888
+ trigger: () => {
1889
+ options3[1].dispatchEvent(
1890
+ new MouseEvent("click", {
1891
+ bubbles: true,
1892
+ cancelable: true
1893
+ })
1894
+ );
1895
+ }
1896
+ });
1897
+ const legendTexts4 = [...matrix.Inner.dom.legendG.node().querySelectorAll("g g text")].find(
1898
+ (d) => d?.__data__?.$id?.startsWith("Germline Mutations") && d.__data__.text?.startsWith("FRAMESHIFT")
1899
+ );
1900
+ legendTexts4.dispatchEvent(
1901
+ new MouseEvent("mouseup", {
1902
+ bubbles: true,
1903
+ cancelable: true
1904
+ })
1905
+ );
1906
+ const options4 = matrix.Inner.dom.legendMenu.d.node().querySelectorAll("div.sja_menuoption.sja_sharp_border");
1907
+ test.equal(
1908
+ options4[0].innerText,
1909
+ "Show samples with FRAMESHIFT",
1910
+ `First option should be "Show samples with FRAMESHIFT"`
1911
+ );
1912
+ test.equal(options4.length, 1, `Should only show one option`);
1913
+ const rects4 = await detectLst({
1914
+ elem: matrix.Inner.dom.seriesesG.node(),
1915
+ selector: ".sjpp-mass-series-g rect",
1916
+ count: 242,
1917
+ trigger: () => {
1918
+ options4[0].dispatchEvent(
1919
+ new MouseEvent("click", {
1920
+ bubbles: true,
1921
+ cancelable: true
1922
+ })
1923
+ );
1924
+ }
1925
+ });
1926
+ if (test._ok) matrix.Inner.app.destroy();
1927
+ test.end();
1928
+ }
1929
+ }
1930
+ );
1931
+ (0, import_tape.default)("apply legend group filters to a geneVariant term in geneVariant term only matrix", function(test) {
1932
+ test.timeoutAfter(5e3);
1933
+ test.plan(15);
1934
+ runpp({
1935
+ state: {
1936
+ plots: [
1937
+ {
1938
+ chartType: "matrix",
1939
+ settings: {
1940
+ // the matrix autocomputes the colw based on available screen width,
1941
+ // need to set an exact screen width for consistent tests using getBBox()
1942
+ matrix: {
1943
+ availContentWidth: 1200
1944
+ }
1945
+ },
1946
+ termgroups: [
1947
+ {
1948
+ name: "",
1949
+ lst: [{ term: { gene: "TP53", name: "TP53", type: "geneVariant", isleaf: true } }]
1950
+ }
1951
+ ]
1952
+ }
1953
+ ]
1954
+ },
1955
+ matrix: {
1956
+ callbacks: {
1957
+ "postRender.test": runTests
1958
+ }
1959
+ }
1960
+ });
1961
+ async function runTests(matrix) {
1962
+ matrix.on("postRender.test", null);
1963
+ const legendTexts = [...matrix.Inner.dom.legendG.node().querySelectorAll("g g text")].find(
1964
+ (d) => d?.__data__?.name == "Somatic Mutations" && !d.__data__.isLegendItem
1965
+ );
1966
+ legendTexts.dispatchEvent(
1967
+ new MouseEvent("mouseup", {
1968
+ bubbles: true,
1969
+ cancelable: true
1970
+ })
1971
+ );
1972
+ const options = matrix.Inner.dom.legendMenu.d.node().querySelectorAll("div.sja_menuoption.sja_sharp_border");
1973
+ test.equal(
1974
+ options[0].innerText,
1975
+ "Show only truncating mutations",
1976
+ `First option should be "Show only truncating mutations"`
1977
+ );
1978
+ test.equal(
1979
+ options[1].innerText,
1980
+ "Show only protein-changing mutations",
1981
+ `second option should be "Show only protein-changing mutations"`
1982
+ );
1983
+ test.equal(
1984
+ options[2].innerText,
1985
+ "Do not show Somatic Mutations",
1986
+ `third option should be "Do not show Somatic Mutations"`
1987
+ );
1988
+ test.equal(options.length, 3, `Should show three options`);
1989
+ const rects = await detectLst({
1990
+ elem: matrix.Inner.dom.seriesesG.node(),
1991
+ selector: ".sjpp-mass-series-g rect",
1992
+ count: 183,
1993
+ trigger: () => {
1994
+ options[0].dispatchEvent(
1995
+ new MouseEvent("click", {
1996
+ bubbles: true,
1997
+ cancelable: true
1998
+ })
1999
+ );
2000
+ }
2001
+ });
2002
+ test.equal(
2003
+ matrix.Inner.dom.seriesesG.selectAll(".sjpp-mass-series-g").size(),
2004
+ 1,
2005
+ `should render the expected number of serieses`
2006
+ );
2007
+ const legendTexts2 = [...matrix.Inner.dom.legendG.node().querySelectorAll("g g text")].find(
2008
+ (d) => d?.__data__?.name == "Somatic Mutations" && !d.__data__.isLegendItem
2009
+ );
2010
+ legendTexts2.dispatchEvent(
2011
+ new MouseEvent("mouseup", {
2012
+ bubbles: true,
2013
+ cancelable: true
2014
+ })
2015
+ );
2016
+ const options2 = matrix.Inner.dom.legendMenu.d.node().querySelectorAll("div.sja_menuoption.sja_sharp_border");
2017
+ test.equal(
2018
+ options2[2].innerText,
2019
+ "Do not show Somatic Mutations",
2020
+ `third option should be "Do not show Somatic Mutations"`
2021
+ );
2022
+ test.equal(
2023
+ options2[3].innerText,
2024
+ "Show all Somatic Mutations",
2025
+ `fourth option should be "Show all Somatic Mutations"`
2026
+ );
2027
+ test.equal(options2.length, 4, `Should show four options`);
2028
+ const rects2 = await detectLst({
2029
+ elem: matrix.Inner.dom.seriesesG.node(),
2030
+ selector: ".sjpp-mass-series-g rect",
2031
+ count: 185,
2032
+ trigger: () => {
2033
+ options2[1].dispatchEvent(
2034
+ new MouseEvent("click", {
2035
+ bubbles: true,
2036
+ cancelable: true
2037
+ })
2038
+ );
2039
+ }
2040
+ });
2041
+ test.equal(
2042
+ matrix.Inner.dom.seriesesG.selectAll(".sjpp-mass-series-g").size(),
2043
+ 1,
2044
+ `should render the expected number of serieses`
2045
+ );
2046
+ const legendTexts3 = [...matrix.Inner.dom.legendG.node().querySelectorAll("g g text")].find(
2047
+ (d) => d?.__data__?.name == "Somatic Mutations" && !d.__data__.isLegendItem
2048
+ );
2049
+ legendTexts3.dispatchEvent(
2050
+ new MouseEvent("mouseup", {
2051
+ bubbles: true,
2052
+ cancelable: true
2053
+ })
2054
+ );
2055
+ const options3 = matrix.Inner.dom.legendMenu.d.node().querySelectorAll("div.sja_menuoption.sja_sharp_border");
2056
+ test.equal(
2057
+ options3[2].innerText,
2058
+ "Do not show Somatic Mutations",
2059
+ `third option should be "Do not show Somatic Mutations"`
2060
+ );
2061
+ test.equal(options3.length, 4, `Should show four options`);
2062
+ const rects3 = await detectLst({
2063
+ elem: matrix.Inner.dom.seriesesG.node(),
2064
+ selector: ".sjpp-mass-series-g rect",
2065
+ count: 182,
2066
+ trigger: () => {
2067
+ options3[2].dispatchEvent(
2068
+ new MouseEvent("click", {
2069
+ bubbles: true,
2070
+ cancelable: true
2071
+ })
2072
+ );
2073
+ }
2074
+ });
2075
+ test.equal(
2076
+ matrix.Inner.dom.seriesesG.selectAll(".sjpp-mass-series-g").size(),
2077
+ 1,
2078
+ `should render the expected number of serieses`
2079
+ );
2080
+ const legendTexts4 = [...matrix.Inner.dom.legendG.node().querySelectorAll("g g text")].find(
2081
+ (d) => d?.__data__?.name == "Somatic Mutations" && !d.__data__.isLegendItem
2082
+ );
2083
+ legendTexts4.dispatchEvent(
2084
+ new MouseEvent("mouseup", {
2085
+ bubbles: true,
2086
+ cancelable: true
2087
+ })
2088
+ );
2089
+ const options4 = matrix.Inner.dom.legendMenu.d.node().querySelectorAll("div.sja_menuoption.sja_sharp_border");
2090
+ test.equal(
2091
+ options4[0].innerText,
2092
+ "Show all Somatic Mutations",
2093
+ `first option should be "Show all Somatic Mutations"`
2094
+ );
2095
+ test.equal(options4.length, 1, `Should show one option`);
2096
+ const rects4 = await detectLst({
2097
+ elem: matrix.Inner.dom.seriesesG.node(),
2098
+ selector: ".sjpp-mass-series-g rect",
2099
+ count: 242,
2100
+ trigger: () => {
2101
+ options4[0].dispatchEvent(
2102
+ new MouseEvent("click", {
2103
+ bubbles: true,
2104
+ cancelable: true
2105
+ })
2106
+ );
2107
+ }
2108
+ });
2109
+ test.equal(
2110
+ matrix.Inner.dom.seriesesG.selectAll(".sjpp-mass-series-g").size(),
2111
+ 1,
2112
+ `should render the expected number of serieses`
2113
+ );
2114
+ if (test._ok) matrix.Inner.app.destroy();
2115
+ test.end();
2116
+ }
2117
+ });
2118
+ (0, import_tape.default)(
2119
+ "apply legend group filters and legend filters to a matrix with both geneVariant and dictionary terms",
2120
+ function(test) {
2121
+ test.timeoutAfter(5e3);
2122
+ test.plan(13);
2123
+ runpp({
2124
+ state: {
2125
+ plots: [
2126
+ {
2127
+ chartType: "matrix",
2128
+ settings: {
2129
+ // the matrix autocomputes the colw based on available screen width,
2130
+ // need to set an exact screen width for consistent tests using getBBox()
2131
+ matrix: {
2132
+ availContentWidth: 1200
2133
+ }
2134
+ },
2135
+ termgroups: [
2136
+ {
2137
+ name: "",
2138
+ lst: [
2139
+ ...getGenes(),
2140
+ { id: "agedx", term: termjson["agedx"] },
2141
+ { id: "diaggrp", term: termjson["diaggrp"] },
2142
+ { id: "aaclassic_5", term: termjson["aaclassic_5"] }
2143
+ ]
2144
+ }
2145
+ ]
2146
+ }
2147
+ ]
2148
+ },
2149
+ matrix: {
2150
+ callbacks: {
2151
+ "postRender.test": runTests
2152
+ }
2153
+ }
2154
+ });
2155
+ async function runTests(matrix) {
2156
+ matrix.on("postRender.test", null);
2157
+ const legendTexts = [...matrix.Inner.dom.legendG.node().querySelectorAll("g g text")].find(
2158
+ (d) => d?.__data__?.name == "Somatic Mutations" && !d.__data__.isLegendItem
2159
+ );
2160
+ legendTexts.dispatchEvent(
2161
+ new MouseEvent("mouseup", {
2162
+ bubbles: true,
2163
+ cancelable: true
2164
+ })
2165
+ );
2166
+ const options = matrix.Inner.dom.legendMenu.d.node().querySelectorAll("div.sja_menuoption.sja_sharp_border");
2167
+ test.equal(
2168
+ options[0].innerText,
2169
+ "Show only truncating mutations",
2170
+ `First option should be "Show only truncating mutations"`
2171
+ );
2172
+ test.equal(options.length, 3, `Should show three options`);
2173
+ const rects = await detectLst({
2174
+ elem: matrix.Inner.dom.seriesesG.node(),
2175
+ selector: ".sjpp-mass-series-g rect",
2176
+ count: 723,
2177
+ trigger: () => {
2178
+ options[0].dispatchEvent(
2179
+ new MouseEvent("click", {
2180
+ bubbles: true,
2181
+ cancelable: true
2182
+ })
2183
+ );
2184
+ }
2185
+ });
2186
+ test.equal(
2187
+ matrix.Inner.dom.seriesesG.selectAll(".sjpp-mass-series-g").size(),
2188
+ 6,
2189
+ `should render the expected number of serieses`
2190
+ );
2191
+ const legendTexts2 = [...matrix.Inner.dom.legendG.node().querySelectorAll("g g text")].find(
2192
+ (d) => d?.__data__?.name == "Somatic Mutations" && !d.__data__.isLegendItem
2193
+ );
2194
+ legendTexts2.dispatchEvent(
2195
+ new MouseEvent("mouseup", {
2196
+ bubbles: true,
2197
+ cancelable: true
2198
+ })
2199
+ );
2200
+ const options2 = matrix.Inner.dom.legendMenu.d.node().querySelectorAll("div.sja_menuoption.sja_sharp_border");
2201
+ test.equal(
2202
+ options2[1].innerText,
2203
+ "Show only protein-changing mutations",
2204
+ `second option should be "Show only protein-changing mutations"`
2205
+ );
2206
+ test.equal(
2207
+ options2[3].innerText,
2208
+ "Show all Somatic Mutations",
2209
+ `fourth option should be "Show all Somatic Mutations"`
2210
+ );
2211
+ test.equal(options2.length, 4, `Should show four options`);
2212
+ const rects2 = await detectLst({
2213
+ elem: matrix.Inner.dom.seriesesG.node(),
2214
+ selector: ".sjpp-mass-series-g rect",
2215
+ count: 726,
2216
+ trigger: () => {
2217
+ options2[1].dispatchEvent(
2218
+ new MouseEvent("click", {
2219
+ bubbles: true,
2220
+ cancelable: true
2221
+ })
2222
+ );
2223
+ }
2224
+ });
2225
+ const legendTexts3 = [...matrix.Inner.dom.legendG.node().querySelectorAll("g g text")].find(
2226
+ (d) => d?.__data__?.$id?.startsWith("Somatic Mutations") && d.__data__.text?.startsWith("FRAMESHIFT")
2227
+ );
2228
+ legendTexts3.dispatchEvent(
2229
+ new MouseEvent("mouseup", {
2230
+ bubbles: true,
2231
+ cancelable: true
2232
+ })
2233
+ );
2234
+ const options3 = matrix.Inner.dom.legendMenu.d.node().querySelectorAll("div.sja_menuoption.sja_sharp_border");
2235
+ test.equal(
2236
+ options3[0].innerText,
2237
+ "Hide samples with FRAMESHIFT",
2238
+ `First option should be "Hide samples with FRAMESHIFT"`
2239
+ );
2240
+ test.equal(options3[1].innerText, "Do not show FRAMESHIFT", `second option should be "Do not show FRAMESHIFT"`);
2241
+ const rects3 = await detectLst({
2242
+ elem: matrix.Inner.dom.seriesesG.node(),
2243
+ selector: ".sjpp-mass-series-g rect",
2244
+ count: 712,
2245
+ trigger: () => {
2246
+ options3[0].dispatchEvent(
2247
+ new MouseEvent("click", {
2248
+ bubbles: true,
2249
+ cancelable: true
2250
+ })
2251
+ );
2252
+ }
2253
+ });
2254
+ test.equal(
2255
+ matrix.Inner.dom.seriesesG.selectAll(".sjpp-mass-series-g").size(),
2256
+ 6,
2257
+ `should render the expected number of serieses`
2258
+ );
2259
+ const legendTexts4 = [...matrix.Inner.dom.legendG.node().querySelectorAll("g g text")].find(
2260
+ (d) => d?.__data__?.$id?.startsWith("Somatic Mutations") && d.__data__.text?.startsWith("FRAMESHIFT")
2261
+ );
2262
+ legendTexts4.dispatchEvent(
2263
+ new MouseEvent("mouseup", {
2264
+ bubbles: true,
2265
+ cancelable: true
2266
+ })
2267
+ );
2268
+ const options4 = matrix.Inner.dom.legendMenu.d.node().querySelectorAll("div.sja_menuoption.sja_sharp_border");
2269
+ test.equal(
2270
+ options4[0].innerText,
2271
+ "Show samples with FRAMESHIFT",
2272
+ `First option should be "Show samples with FRAMESHIFT"`
2273
+ );
2274
+ test.equal(options4.length, 1, `Should only show one option`);
2275
+ const rects4 = await detectLst({
2276
+ elem: matrix.Inner.dom.seriesesG.node(),
2277
+ selector: ".sjpp-mass-series-g rect",
2278
+ count: 726,
2279
+ trigger: () => {
2280
+ options4[0].dispatchEvent(
2281
+ new MouseEvent("click", {
2282
+ bubbles: true,
2283
+ cancelable: true
2284
+ })
2285
+ );
2286
+ }
2287
+ });
2288
+ const legendTexts5 = [...matrix.Inner.dom.legendG.node().querySelectorAll("g g text")].find(
2289
+ (d) => d?.__data__?.name == "Somatic Mutations" && !d.__data__.isLegendItem
2290
+ );
2291
+ legendTexts5.dispatchEvent(
2292
+ new MouseEvent("mouseup", {
2293
+ bubbles: true,
2294
+ cancelable: true
2295
+ })
2296
+ );
2297
+ const options5 = matrix.Inner.dom.legendMenu.d.node().querySelectorAll("div.sja_menuoption.sja_sharp_border");
2298
+ test.equal(
2299
+ options5[3].innerText,
2300
+ "Show all Somatic Mutations",
2301
+ `fourth option should be "Show all Somatic Mutations"`
2302
+ );
2303
+ test.equal(options5.length, 4, `Should show four options`);
2304
+ const rects5 = await detectLst({
2305
+ elem: matrix.Inner.dom.seriesesG.node(),
2306
+ selector: ".sjpp-mass-series-g rect",
2307
+ count: 902,
2308
+ trigger: () => {
2309
+ options5[3].dispatchEvent(
2310
+ new MouseEvent("click", {
2311
+ bubbles: true,
2312
+ cancelable: true
2313
+ })
2314
+ );
2315
+ }
2316
+ });
2317
+ if (test._ok) matrix.Inner.app.destroy();
2318
+ test.end();
2319
+ }
2320
+ }
2321
+ );
2322
+ (0, import_tape.default)("cell brush zoom in", function(test) {
2323
+ test.timeoutAfter(5e3);
2324
+ test.plan(1);
2325
+ runpp({
2326
+ state: {
2327
+ plots: [
2328
+ {
2329
+ chartType: "matrix",
2330
+ settings: {
2331
+ matrix: {
2332
+ // the matrix autocomputes the colw based on available screen width,
2333
+ // need to set an exact screen width for consistent tests using getBBox()
2334
+ availContentWidth: 300
2335
+ }
2336
+ },
2337
+ termgroups: [
2338
+ {
2339
+ name: "Demographics",
2340
+ lst: [
2341
+ {
2342
+ id: "aaclassic_5",
2343
+ q: {
2344
+ mode: "continuous"
2345
+ }
2346
+ },
2347
+ {
2348
+ id: "sex"
2349
+ //q: { mode: 'values' } // or 'groupsetting'
2350
+ },
2351
+ {
2352
+ id: "agedx",
2353
+ q: {
2354
+ mode: "discrete",
2355
+ type: "regular-bin",
2356
+ bin_size: 5,
2357
+ first_bin: {
2358
+ startunbounded: true,
2359
+ stop: 5,
2360
+ stopinclusive: true
2361
+ }
2362
+ }
2363
+ // or 'continuous'
2364
+ }
2365
+ ]
2366
+ }
2367
+ ]
2368
+ }
2369
+ ]
2370
+ },
2371
+ matrix: {
2372
+ callbacks: {
2373
+ "postRender.test": runTests
2374
+ }
2375
+ }
2376
+ });
2377
+ async function runTests(matrix) {
2378
+ matrix.on("postRender.test", null);
2379
+ const startCell = matrix.Inner.serieses[1].cells[10];
2380
+ const endCell = matrix.Inner.serieses[1].cells[14];
2381
+ matrix.Inner.clickedSeriesCell = {
2382
+ startCell,
2383
+ endCell
2384
+ };
2385
+ matrix.Inner.zoomWidth = Math.abs(startCell.totalIndex - endCell.totalIndex) * matrix.Inner.dimensions.colw;
2386
+ matrix.on("postRender.test", () => {
2387
+ matrix.on("postRender.test", null);
2388
+ test.deepEqual(matrix.Inner.settings.matrix.zoomLevel, 3.2, "should have the expected zoom level after zoom in");
2389
+ if (test._ok) matrix.Inner.app.destroy();
2390
+ test.end();
2391
+ });
2392
+ matrix.Inner.triggerZoomArea();
2393
+ }
2394
+ });
2395
+ (0, import_tape.default)("survival term in continous mode", function(test) {
2396
+ test.timeoutAfter(5e3);
2397
+ test.plan(2);
2398
+ runpp({
2399
+ state: {
2400
+ plots: [
2401
+ {
2402
+ chartType: "matrix",
2403
+ settings: {
2404
+ // the matrix autocomputes the colw based on available screen width,
2405
+ // need to set an exact screen width for consistent tests using getBBox()
2406
+ matrix: {
2407
+ availContentWidth: 1200
2408
+ }
2409
+ },
2410
+ termgroups: [
2411
+ {
2412
+ name: "",
2413
+ lst: [
2414
+ {
2415
+ term: {
2416
+ name: "Overall survival",
2417
+ type: "survival",
2418
+ isleaf: true,
2419
+ unit: "years",
2420
+ id: "os"
2421
+ },
2422
+ q: {
2423
+ mode: "continuous"
2424
+ }
2425
+ }
2426
+ ]
2427
+ }
2428
+ ]
2429
+ }
2430
+ ]
2431
+ },
2432
+ matrix: {
2433
+ callbacks: {
2434
+ "postRender.test": runTests
2435
+ }
2436
+ }
2437
+ });
2438
+ function runTests(matrix) {
2439
+ matrix.on("postRender.test", null);
2440
+ test.equal(
2441
+ matrix.Inner.dom.seriesesG.selectAll(".sjpp-mass-series-g").size(),
2442
+ 1,
2443
+ `should render the expected number of serieses`
2444
+ );
2445
+ test.equal(
2446
+ matrix.Inner.dom.seriesesG.selectAll(".sjpp-mass-series-g rect").size(),
2447
+ 60,
2448
+ `should render the expected number of cell rects`
2449
+ );
2450
+ if (test._ok) matrix.Inner.app.destroy();
2451
+ test.end();
2452
+ }
2453
+ });
2454
+ (0, import_tape.default)("survival term in discrete mode", function(test) {
2455
+ test.timeoutAfter(5e3);
2456
+ test.plan(2);
2457
+ runpp({
2458
+ state: {
2459
+ plots: [
2460
+ {
2461
+ chartType: "matrix",
2462
+ settings: {
2463
+ // the matrix autocomputes the colw based on available screen width,
2464
+ // need to set an exact screen width for consistent tests using getBBox()
2465
+ matrix: {
2466
+ availContentWidth: 1200
2467
+ }
2468
+ },
2469
+ termgroups: [
2470
+ {
2471
+ name: "",
2472
+ lst: [
2473
+ {
2474
+ term: {
2475
+ name: "Overall survival",
2476
+ type: "survival",
2477
+ isleaf: true,
2478
+ unit: "years",
2479
+ id: "os"
2480
+ },
2481
+ q: {
2482
+ mode: "continuous"
2483
+ }
2484
+ }
2485
+ ]
2486
+ }
2487
+ ]
2488
+ }
2489
+ ]
2490
+ },
2491
+ matrix: {
2492
+ callbacks: {
2493
+ "postRender.test": runTests
2494
+ }
2495
+ }
2496
+ });
2497
+ function runTests(matrix) {
2498
+ matrix.on("postRender.test", null);
2499
+ test.equal(
2500
+ matrix.Inner.dom.seriesesG.selectAll(".sjpp-mass-series-g").size(),
2501
+ 1,
2502
+ `should render the expected number of serieses`
2503
+ );
2504
+ test.equal(
2505
+ matrix.Inner.dom.seriesesG.selectAll(".sjpp-mass-series-g rect").size(),
2506
+ 60,
2507
+ `should render the expected number of cell rects`
2508
+ );
2509
+ if (test._ok) matrix.Inner.app.destroy();
2510
+ test.end();
2511
+ }
2512
+ });
2513
+ (0, import_tape.default)("survival term with divide by dictionary term", function(test) {
2514
+ test.timeoutAfter(5e3);
2515
+ test.plan(3);
2516
+ runpp({
2517
+ state: {
2518
+ plots: [
2519
+ {
2520
+ chartType: "matrix",
2521
+ settings: {
2522
+ // the matrix autocomputes the colw based on available screen width,
2523
+ // need to set an exact screen width for consistent tests using getBBox()
2524
+ matrix: {
2525
+ availContentWidth: 1200
2526
+ }
2527
+ },
2528
+ divideBy: {
2529
+ id: "sex"
2530
+ },
2531
+ termgroups: [
2532
+ {
2533
+ name: "",
2534
+ lst: [
2535
+ {
2536
+ term: {
2537
+ name: "Overall survival",
2538
+ type: "survival",
2539
+ isleaf: true,
2540
+ unit: "years",
2541
+ id: "os"
2542
+ },
2543
+ q: {
2544
+ mode: "continuous"
2545
+ }
2546
+ }
2547
+ ]
2548
+ }
2549
+ ]
2550
+ }
2551
+ ]
2552
+ },
2553
+ matrix: {
2554
+ callbacks: {
2555
+ "postRender.test": runTests
2556
+ }
2557
+ }
2558
+ });
2559
+ function runTests(matrix) {
2560
+ matrix.on("postRender.test", null);
2561
+ test.equal(
2562
+ matrix.Inner.dom.seriesesG.selectAll(".sjpp-mass-series-g").size(),
2563
+ 1,
2564
+ `should render the expected number of serieses`
2565
+ );
2566
+ test.equal(
2567
+ matrix.Inner.dom.seriesesG.selectAll(".sjpp-mass-series-g rect").size(),
2568
+ 60,
2569
+ `should render the expected number of cell rects`
2570
+ );
2571
+ test.equal(
2572
+ matrix.Inner.dom.cluster.selectAll(".sjpp-matrix-clusteroutlines rect").size(),
2573
+ 2,
2574
+ `should render the expected number of cluster rects`
2575
+ );
2576
+ if (test._ok) matrix.Inner.app.destroy();
2577
+ test.end();
2578
+ }
2579
+ });
2580
+ (0, import_tape.default)("dictionary term with divide by survival term", function(test) {
2581
+ test.timeoutAfter(5e3);
2582
+ test.plan(3);
2583
+ runpp({
2584
+ state: {
2585
+ plots: [
2586
+ {
2587
+ chartType: "matrix",
2588
+ settings: {
2589
+ // the matrix autocomputes the colw based on available screen width,
2590
+ // need to set an exact screen width for consistent tests using getBBox()
2591
+ matrix: {
2592
+ availContentWidth: 1200
2593
+ }
2594
+ },
2595
+ divideBy: {
2596
+ id: "os"
2597
+ },
2598
+ termgroups: [
2599
+ {
2600
+ name: "Demographics",
2601
+ lst: [
2602
+ { id: "agedx", term: termjson["agedx"] },
2603
+ { id: "diaggrp", term: termjson["diaggrp"] },
2604
+ { id: "aaclassic_5", term: termjson["aaclassic_5"] }
2605
+ ]
2606
+ }
2607
+ ]
2608
+ }
2609
+ ]
2610
+ },
2611
+ matrix: {
2612
+ callbacks: {
2613
+ "postRender.test": runTests
2614
+ }
2615
+ }
2616
+ });
2617
+ function runTests(matrix) {
2618
+ matrix.on("postRender.test", null);
2619
+ test.equal(
2620
+ matrix.Inner.dom.seriesesG.selectAll(".sjpp-mass-series-g").size(),
2621
+ 3,
2622
+ `should render the expected number of serieses`
2623
+ );
2624
+ test.equal(
2625
+ matrix.Inner.dom.seriesesG.selectAll(".sjpp-mass-series-g rect").size(),
2626
+ 180,
2627
+ `should render the expected number of cell rects`
2628
+ );
2629
+ test.equal(
2630
+ matrix.Inner.dom.cluster.selectAll(".sjpp-matrix-clusteroutlines rect").size(),
2631
+ 2,
2632
+ `should render the expected number of cluster rects`
2633
+ );
2634
+ if (test._ok) matrix.Inner.app.destroy();
2635
+ test.end();
2636
+ }
2637
+ });
2638
+ (0, import_tape.default)('apply "hide" and "show" legend filters to a survival term', function(test) {
2639
+ test.timeoutAfter(5e3);
2640
+ test.plan(10);
2641
+ runpp({
2642
+ state: {
2643
+ plots: [
2644
+ {
2645
+ chartType: "matrix",
2646
+ settings: {
2647
+ matrix: {
2648
+ // the matrix autocomputes the colw based on available screen width,
2649
+ // need to set an exact screen width for consistent tests using getBBox()
2650
+ availContentWidth: 1200
2651
+ }
2652
+ },
2653
+ termgroups: [
2654
+ {
2655
+ name: "",
2656
+ lst: [
2657
+ {
2658
+ id: "aaclassic_5",
2659
+ q: {
2660
+ mode: "continuous"
2661
+ }
2662
+ },
2663
+ {
2664
+ id: "genetic_race"
2665
+ //q: { mode: 'values' } // or 'groupsetting'
2666
+ },
2667
+ {
2668
+ id: "agedx",
2669
+ q: {
2670
+ mode: "discrete",
2671
+ type: "regular-bin",
2672
+ bin_size: 5,
2673
+ first_bin: {
2674
+ startunbounded: true,
2675
+ stop: 5,
2676
+ stopinclusive: true
2677
+ }
2678
+ }
2679
+ },
2680
+ {
2681
+ term: {
2682
+ name: "Overall survival",
2683
+ type: "survival",
2684
+ isleaf: true,
2685
+ unit: "years",
2686
+ id: "os"
2687
+ }
2688
+ }
2689
+ ]
2690
+ }
2691
+ ]
2692
+ }
2693
+ ]
2694
+ },
2695
+ matrix: {
2696
+ callbacks: {
2697
+ "postRender.test": runTests
2698
+ }
2699
+ }
2700
+ });
2701
+ async function runTests(matrix) {
2702
+ matrix.on("postRender.test", null);
2703
+ const legendTexts = [...matrix.Inner.dom.legendG.node().querySelectorAll("g g text")].find(
2704
+ (d) => d?.__data__?.text?.startsWith("Alive")
2705
+ );
2706
+ legendTexts.dispatchEvent(
2707
+ new MouseEvent("mouseup", {
2708
+ bubbles: true,
2709
+ cancelable: true
2710
+ })
2711
+ );
2712
+ const options = matrix.Inner.dom.legendMenu.d.node().querySelectorAll("div.sja_menuoption.sja_sharp_border");
2713
+ test.equal(options[0].innerText, "Hide", `First option should be Hide`);
2714
+ test.equal(options[1].innerText, "Show only", `second option should be Show only`);
2715
+ test.equal(options[2].innerText, "Show all", `third option should be Show all`);
2716
+ const rects = await detectLst({
2717
+ elem: matrix.Inner.dom.seriesesG.node(),
2718
+ selector: ".sjpp-mass-series-g rect",
2719
+ count: 228,
2720
+ trigger: () => {
2721
+ options[0].dispatchEvent(
2722
+ new MouseEvent("click", {
2723
+ bubbles: true,
2724
+ cancelable: true
2725
+ })
2726
+ );
2727
+ }
2728
+ });
2729
+ test.equal(
2730
+ matrix.Inner.dom.seriesesG.selectAll(".sjpp-mass-series-g").size(),
2731
+ 4,
2732
+ `should render the expected number of serieses`
2733
+ );
2734
+ test.equal(
2735
+ matrix.Inner.dom.cluster.selectAll(".sjpp-matrix-clusteroutlines rect").size(),
2736
+ 1,
2737
+ `should render the expected number of cluster rects`
2738
+ );
2739
+ const legendTexts2 = [...matrix.Inner.dom.legendG.node().querySelectorAll("g g text")].find(
2740
+ (d) => d?.__data__?.text?.startsWith("Alive")
2741
+ );
2742
+ legendTexts2.dispatchEvent(
2743
+ new MouseEvent("mouseup", {
2744
+ bubbles: true,
2745
+ cancelable: true
2746
+ })
2747
+ );
2748
+ const options2 = matrix.Inner.dom.legendMenu.d.node().querySelectorAll("div.sja_menuoption.sja_sharp_border");
2749
+ test.equal(options2[0].innerText, "Show", `First option should be Show`);
2750
+ test.equal(options2[1].innerText, "Show only", `second option should be Show only`);
2751
+ test.equal(options2[2].innerText, "Show all", `third option should be Show all`);
2752
+ const rects2 = await detectLst({
2753
+ elem: matrix.Inner.dom.seriesesG.node(),
2754
+ selector: ".sjpp-mass-series-g rect",
2755
+ count: 240,
2756
+ trigger: () => {
2757
+ options2[0].dispatchEvent(
2758
+ new MouseEvent("click", {
2759
+ bubbles: true,
2760
+ cancelable: true
2761
+ })
2762
+ );
2763
+ }
2764
+ });
2765
+ test.equal(
2766
+ matrix.Inner.dom.seriesesG.selectAll(".sjpp-mass-series-g").size(),
2767
+ 4,
2768
+ `should render the expected number of serieses`
2769
+ );
2770
+ test.equal(
2771
+ matrix.Inner.dom.cluster.selectAll(".sjpp-matrix-clusteroutlines rect").size(),
2772
+ 1,
2773
+ `should render the expected number of cluster rects`
2774
+ );
2775
+ if (test._ok) matrix.Inner.app.destroy();
2776
+ test.end();
2777
+ }
2778
+ });
2779
+ (0, import_tape.default)('apply "show only" and "show all" legend filters to a survival terms', function(test) {
2780
+ test.timeoutAfter(5e3);
2781
+ test.plan(14);
2782
+ runpp({
2783
+ state: {
2784
+ plots: [
2785
+ {
2786
+ chartType: "matrix",
2787
+ settings: {
2788
+ matrix: {
2789
+ // the matrix autocomputes the colw based on available screen width,
2790
+ // need to set an exact screen width for consistent tests using getBBox()
2791
+ availContentWidth: 1200
2792
+ }
2793
+ },
2794
+ termgroups: [
2795
+ {
2796
+ name: "",
2797
+ lst: [
2798
+ {
2799
+ id: "aaclassic_5",
2800
+ q: {
2801
+ mode: "continuous"
2802
+ }
2803
+ },
2804
+ {
2805
+ id: "genetic_race"
2806
+ //q: { mode: 'values' } // or 'groupsetting'
2807
+ },
2808
+ {
2809
+ id: "agedx",
2810
+ q: {
2811
+ mode: "discrete",
2812
+ type: "regular-bin",
2813
+ bin_size: 5,
2814
+ first_bin: {
2815
+ startunbounded: true,
2816
+ stop: 5,
2817
+ stopinclusive: true
2818
+ }
2819
+ }
2820
+ },
2821
+ {
2822
+ term: {
2823
+ name: "Overall survival",
2824
+ type: "survival",
2825
+ isleaf: true,
2826
+ unit: "years",
2827
+ id: "os"
2828
+ }
2829
+ }
2830
+ ]
2831
+ }
2832
+ ]
2833
+ }
2834
+ ]
2835
+ },
2836
+ matrix: {
2837
+ callbacks: {
2838
+ "postRender.test": runTests
2839
+ }
2840
+ }
2841
+ });
2842
+ async function runTests(matrix) {
2843
+ matrix.on("postRender.test", null);
2844
+ const legendTexts = [...matrix.Inner.dom.legendG.node().querySelectorAll("g g text")].find(
2845
+ (d) => d?.__data__?.text?.startsWith("Alive")
2846
+ );
2847
+ legendTexts.dispatchEvent(
2848
+ new MouseEvent("mouseup", {
2849
+ bubbles: true,
2850
+ cancelable: true
2851
+ })
2852
+ );
2853
+ const options = matrix.Inner.dom.legendMenu.d.node().querySelectorAll("div.sja_menuoption.sja_sharp_border");
2854
+ const rects = await detectLst({
2855
+ elem: matrix.Inner.dom.seriesesG.node(),
2856
+ selector: ".sjpp-mass-series-g rect",
2857
+ count: 12,
2858
+ trigger: () => {
2859
+ options[1].dispatchEvent(
2860
+ new MouseEvent("click", {
2861
+ bubbles: true,
2862
+ cancelable: true
2863
+ })
2864
+ );
2865
+ }
2866
+ });
2867
+ test.equal(
2868
+ matrix.Inner.dom.seriesesG.selectAll(".sjpp-mass-series-g").size(),
2869
+ 4,
2870
+ `should render the expected number of serieses`
2871
+ );
2872
+ test.equal(
2873
+ matrix.Inner.dom.cluster.selectAll(".sjpp-matrix-clusteroutlines rect").size(),
2874
+ 1,
2875
+ `should render the expected number of cluster rects`
2876
+ );
2877
+ const secondLegendTexts = [...matrix.Inner.dom.legendG.node().querySelectorAll("g g text")].find(
2878
+ (d) => d?.__data__?.text?.startsWith("<5")
2879
+ );
2880
+ secondLegendTexts.dispatchEvent(
2881
+ new MouseEvent("mouseup", {
2882
+ bubbles: true,
2883
+ cancelable: true
2884
+ })
2885
+ );
2886
+ const secondOptions = matrix.Inner.dom.legendMenu.d.node().querySelectorAll("div.sja_menuoption.sja_sharp_border");
2887
+ test.equal(secondOptions[0].innerText, "Hide", `First option should be Hide`);
2888
+ test.equal(secondOptions[1].innerText, "Show only", `second option should be Show only`);
2889
+ test.equal(secondOptions[2].innerText, "Show all", `third option should be Show all`);
2890
+ const secondRects = await detectLst({
2891
+ elem: matrix.Inner.dom.seriesesG.node(),
2892
+ selector: ".sjpp-mass-series-g rect",
2893
+ count: 4,
2894
+ trigger: () => {
2895
+ secondOptions[1].dispatchEvent(
2896
+ new MouseEvent("click", {
2897
+ bubbles: true,
2898
+ cancelable: true
2899
+ })
2900
+ );
2901
+ }
2902
+ });
2903
+ test.equal(
2904
+ matrix.Inner.dom.seriesesG.selectAll(".sjpp-mass-series-g").size(),
2905
+ 4,
2906
+ `should render the expected number of serieses`
2907
+ );
2908
+ test.equal(
2909
+ matrix.Inner.dom.cluster.selectAll(".sjpp-matrix-clusteroutlines rect").size(),
2910
+ 1,
2911
+ `should render the expected number of cluster rects`
2912
+ );
2913
+ const thirdLegendTexts = [...matrix.Inner.dom.legendG.node().querySelectorAll("g g text")].find(
2914
+ (d) => d?.__data__?.text?.startsWith("<5")
2915
+ );
2916
+ thirdLegendTexts.dispatchEvent(
2917
+ new MouseEvent("mouseup", {
2918
+ bubbles: true,
2919
+ cancelable: true
2920
+ })
2921
+ );
2922
+ const thirdOptions = matrix.Inner.dom.legendMenu.d.node().querySelectorAll("div.sja_menuoption.sja_sharp_border");
2923
+ test.equal(thirdOptions[0].innerText, "Hide", `First option should be Hide`);
2924
+ test.equal(thirdOptions[2].innerText, "Show all", `third option should be Show all`);
2925
+ const thirdRects = await detectLst({
2926
+ elem: matrix.Inner.dom.seriesesG.node(),
2927
+ selector: ".sjpp-mass-series-g rect",
2928
+ count: 12,
2929
+ trigger: () => {
2930
+ thirdOptions[2].dispatchEvent(
2931
+ new MouseEvent("click", {
2932
+ bubbles: true,
2933
+ cancelable: true
2934
+ })
2935
+ );
2936
+ }
2937
+ });
2938
+ test.equal(
2939
+ matrix.Inner.dom.seriesesG.selectAll(".sjpp-mass-series-g").size(),
2940
+ 4,
2941
+ `should render the expected number of serieses`
2942
+ );
2943
+ const fourthLegendTexts = [...matrix.Inner.dom.legendG.node().querySelectorAll("g g text")].find(
2944
+ (d) => d?.__data__?.text?.startsWith("Alive")
2945
+ );
2946
+ fourthLegendTexts.dispatchEvent(
2947
+ new MouseEvent("mouseup", {
2948
+ bubbles: true,
2949
+ cancelable: true
2950
+ })
2951
+ );
2952
+ const fourthOptions = matrix.Inner.dom.legendMenu.d.node().querySelectorAll("div.sja_menuoption.sja_sharp_border");
2953
+ test.equal(fourthOptions[0].innerText, "Hide", `first option should be Hide`);
2954
+ test.equal(fourthOptions[2].innerText, "Show all", `third option should be Show all`);
2955
+ const fourthRects = await detectLst({
2956
+ elem: matrix.Inner.dom.seriesesG.node(),
2957
+ selector: ".sjpp-mass-series-g rect",
2958
+ count: 240,
2959
+ trigger: () => {
2960
+ fourthOptions[2].dispatchEvent(
2961
+ new MouseEvent("click", {
2962
+ bubbles: true,
2963
+ cancelable: true
2964
+ })
2965
+ );
2966
+ }
2967
+ });
2968
+ test.equal(
2969
+ matrix.Inner.dom.seriesesG.selectAll(".sjpp-mass-series-g").size(),
2970
+ 4,
2971
+ `should render the expected number of serieses`
2972
+ );
2973
+ test.equal(
2974
+ matrix.Inner.dom.cluster.selectAll(".sjpp-matrix-clusteroutlines rect").size(),
2975
+ 1,
2976
+ `should render the expected number of cluster rects`
2977
+ );
2978
+ if (test._ok) matrix.Inner.app.destroy();
2979
+ test.end();
2980
+ }
2981
+ });
2982
+ (0, import_tape.default)("sample ancestry labels and line spans", function(test) {
2983
+ test.timeoutAfter(8e3);
2984
+ const ancestrySampleIds = [1, 2, 3, 4, 5, 6, 7, 8, 9];
2985
+ const filter = {
2986
+ type: "tvslst",
2987
+ in: true,
2988
+ join: "",
2989
+ lst: [
2990
+ {
2991
+ type: "tvs",
2992
+ noEdit: true,
2993
+ tvs: {
2994
+ term: {
2995
+ name: "ancestry test samples",
2996
+ type: "samplelst",
2997
+ values: { grp: { key: "grp", list: ancestrySampleIds.map((id) => ({ sampleId: id })) } }
2998
+ }
2999
+ }
3000
+ }
3001
+ ]
3002
+ };
3003
+ runpp({
3004
+ state: {
3005
+ // samples 1-9 belong to the XYZ cohort (index 1); the store ANDs the active
3006
+ // cohort filter with the samplelst filter below to yield exactly samples 1-9
3007
+ activeCohort: 1,
3008
+ termfilter: { filter },
3009
+ plots: [
3010
+ {
3011
+ chartType: "matrix",
3012
+ settings: {
3013
+ matrix: {
3014
+ availContentWidth: 1200,
3015
+ sortBySampleAncestry: "last"
3016
+ }
3017
+ },
3018
+ termgroups: [
3019
+ {
3020
+ name: "Demographics",
3021
+ lst: [{ id: "diaggrp" }]
3022
+ }
3023
+ ]
3024
+ }
3025
+ ]
3026
+ },
3027
+ matrix: {
3028
+ callbacks: {
3029
+ "postRender.test": runTests
3030
+ }
3031
+ }
3032
+ });
3033
+ function runTests(matrix) {
3034
+ matrix.on("postRender.test", null);
3035
+ test.equal(matrix.Inner.sampleOrder.length, 9, "should render the 9 filtered samples");
3036
+ const spanNodes = matrix.Inner.dom.svg.selectAll(".sjpp-matrix-label-span").nodes();
3037
+ test.equal(spanNodes.length, 3, "should render 3 ancestor spans (1_patient, 2_patient, and the nested 3_patient)");
3038
+ const lineX2ByLabel = {};
3039
+ for (const node of spanNodes) {
3040
+ const label = node.querySelector("text")?.textContent;
3041
+ lineX2ByLabel[label] = +node.querySelector("line")?.getAttribute("x2");
3042
+ }
3043
+ test.deepEqual(
3044
+ Object.keys(lineX2ByLabel).sort(),
3045
+ ["1_patient", "2_patient", "3_patient"],
3046
+ "ancestor spans should be labeled by ancestor name (1_patient, 2_patient, 3_patient)"
3047
+ );
3048
+ test.equal(
3049
+ matrix.Inner.dom.svg.selectAll(".sjpp-matrix-label-span line").size(),
3050
+ 3,
3051
+ "should render 3 ancestor line spans"
3052
+ );
3053
+ test.ok(
3054
+ lineX2ByLabel["3_patient"] > lineX2ByLabel["1_patient"] && lineX2ByLabel["3_patient"] > lineX2ByLabel["2_patient"],
3055
+ "the nested grandparent span (3_patient) should be wider than the parent spans (1_patient, 2_patient)"
3056
+ );
3057
+ matrix.on("postRender.disableTest", () => {
3058
+ matrix.on("postRender.disableTest", null);
3059
+ test.equal(
3060
+ matrix.Inner.dom.svg.selectAll(".sjpp-matrix-label-span").size(),
3061
+ 0,
3062
+ "ancestor spans should be removed after sortBySampleAncestry is disabled"
3063
+ );
3064
+ if (test._ok) matrix.Inner.app.destroy();
3065
+ test.end();
3066
+ });
3067
+ matrix.Inner.app.dispatch({
3068
+ type: "plot_edit",
3069
+ id: matrix.Inner.id,
3070
+ config: { settings: { matrix: { sortBySampleAncestry: false } } }
3071
+ });
3072
+ }
3073
+ });
3074
+ var runpp = getRunPp("mass", {
3075
+ state: {
3076
+ dslabel: "TermdbTest",
3077
+ genome: "hg38-test",
3078
+ nav: { activeTab: -1 }
3079
+ },
3080
+ debug: 1
3081
+ });
3082
+ function getGenes() {
3083
+ return [
3084
+ { term: { gene: "TP53", name: "TP53", type: "geneVariant", isleaf: true } },
3085
+ { term: { gene: "KRAS", name: "KRAS", type: "geneVariant", isleaf: true } },
3086
+ { term: { gene: "AKT1", name: "AKT1", type: "geneVariant", isleaf: true } }
3087
+ ];
3088
+ }
3089
+ function getTermCollection() {
3090
+ return {
3091
+ //isAtomic: true,
3092
+ type: "TermCollectionTWCont",
3093
+ //$id: 'TwBase_0__48243_99155',
3094
+ term: {
3095
+ type: "termCollection",
3096
+ termlst: [
3097
+ {
3098
+ type: "float",
3099
+ bins: {
3100
+ default: {
3101
+ type: "regular-bin",
3102
+ bin_size: 5,
3103
+ startinclusive: true,
3104
+ first_bin: { startunbounded: true, stop: 5 }
3105
+ },
3106
+ label_offset: 1
3107
+ },
3108
+ name: "Age (years) at Cancer Diagnosis",
3109
+ id: "agedx",
3110
+ isleaf: true,
3111
+ values: {},
3112
+ hashtmldetail: true
3113
+ },
3114
+ {
3115
+ type: "float",
3116
+ bins: {
3117
+ default: {
3118
+ type: "regular-bin",
3119
+ startinclusive: true,
3120
+ bin_size: 5,
3121
+ first_bin: { stop: 25 },
3122
+ last_bin: { start: 55 }
3123
+ }
3124
+ },
3125
+ name: "Age (years) at Death",
3126
+ id: "a_death",
3127
+ isleaf: true,
3128
+ values: {},
3129
+ hashtmldetail: true
3130
+ },
3131
+ {
3132
+ type: "float",
3133
+ bins: { default: { type: "regular-bin", startinclusive: true, bin_size: 10, first_bin: { stop: 15 } } },
3134
+ name: "Age (years) at Last NDI Search",
3135
+ id: "a_ndi",
3136
+ isleaf: true,
3137
+ values: {}
3138
+ },
3139
+ {
3140
+ type: "float",
3141
+ bins: { default: { type: "regular-bin", startinclusive: true, bin_size: 10, first_bin: { stop: 15 } } },
3142
+ values: { "-994": { label: "N/A: No campus visit", uncomputable: true } },
3143
+ name: "Age at last ABC assessment",
3144
+ id: "agelastvisit",
3145
+ isleaf: true
3146
+ }
3147
+ ],
3148
+ name: "Fake Collection 1",
3149
+ isleaf: true,
3150
+ propsByTermId: {
3151
+ agedx: { color: "#1b9e77" },
3152
+ a_death: { color: "#d95f02" },
3153
+ a_ndi: { color: "#7570b3" },
3154
+ agelastvisit: { color: "#e7298a" }
3155
+ }
3156
+ },
3157
+ q: { isAtomic: true, mode: "continuous", lst: [] }
3158
+ };
3159
+ }
3160
+ //# sourceMappingURL=matrix.integration.spec-OGXZUDE6.js.map