@sjcrh/proteinpaint-client 2.78.0 → 2.79.1-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 (858) hide show
  1. package/dist/2dmaf-GVN2X7BX.js +1406 -0
  2. package/dist/2dmaf-GVN2X7BX.js.map +7 -0
  3. package/dist/AppHeader-PLYXVNX4.js +854 -0
  4. package/dist/AppHeader-PLYXVNX4.js.map +7 -0
  5. package/dist/DEanalysis-PBDISKC6.js +607 -0
  6. package/dist/DEanalysis-PBDISKC6.js.map +7 -0
  7. package/dist/Disco-C2ZGO26F.js +2466 -0
  8. package/dist/Disco-C2ZGO26F.js.map +7 -0
  9. package/dist/Disco.UI-74VUOQOI.js +260 -0
  10. package/dist/Disco.UI-74VUOQOI.js.map +7 -0
  11. package/dist/DragControls-XN4IHBGY.js +131 -0
  12. package/dist/DragControls-XN4IHBGY.js.map +7 -0
  13. package/dist/DziViewer-FAFRO7R6.js +16325 -0
  14. package/dist/DziViewer-FAFRO7R6.js.map +7 -0
  15. package/dist/HicApp-7X3WZLLU.js +2269 -0
  16. package/dist/HicApp-7X3WZLLU.js.map +7 -0
  17. package/dist/OrbitControls-YMWMH4WZ.js +679 -0
  18. package/dist/OrbitControls-YMWMH4WZ.js.map +7 -0
  19. package/dist/WSIViewer-ADLNYPJL.js +23529 -0
  20. package/dist/WSIViewer-ADLNYPJL.js.map +7 -0
  21. package/dist/adSandbox-3RQHHP35.js +28 -0
  22. package/dist/adSandbox-3RQHHP35.js.map +7 -0
  23. package/dist/app-5VAHIGKS.js +77 -0
  24. package/dist/app-5VAHIGKS.js.map +7 -0
  25. package/dist/app-M4CKAR2N.js +49 -0
  26. package/dist/app-M4CKAR2N.js.map +7 -0
  27. package/dist/app.js +39 -1
  28. package/dist/app.js.map +7 -0
  29. package/dist/bam-CSD3DBDY.js +824 -0
  30. package/dist/bam-CSD3DBDY.js.map +7 -0
  31. package/dist/barchart-SDGLOLF7.js +62 -0
  32. package/dist/barchart-SDGLOLF7.js.map +7 -0
  33. package/dist/barchart.data-5WXPL7D7.js +29 -0
  34. package/dist/barchart.data-5WXPL7D7.js.map +7 -0
  35. package/dist/barchart.events-WBFDKUK5.js +50 -0
  36. package/dist/barchart.events-WBFDKUK5.js.map +7 -0
  37. package/dist/bars.renderer-GBP25M6J.js +22 -0
  38. package/dist/bars.renderer-GBP25M6J.js.map +7 -0
  39. package/dist/bars.settings-FJIU2UDQ.js +8 -0
  40. package/dist/bars.settings-FJIU2UDQ.js.map +7 -0
  41. package/dist/block-OJMSUBGJ.js +6552 -0
  42. package/dist/block-OJMSUBGJ.js.map +7 -0
  43. package/dist/block.init-KP4HQEIL.js +24 -0
  44. package/dist/block.init-KP4HQEIL.js.map +7 -0
  45. package/dist/block.mds.cnv-DFCJCWB6.js +495 -0
  46. package/dist/block.mds.cnv-DFCJCWB6.js.map +7 -0
  47. package/dist/block.mds.expressionrank-EFCWSUF6.js +365 -0
  48. package/dist/block.mds.expressionrank-EFCWSUF6.js.map +7 -0
  49. package/dist/block.mds.geneboxplot-LZO4BIN2.js +839 -0
  50. package/dist/block.mds.geneboxplot-LZO4BIN2.js.map +7 -0
  51. package/dist/block.mds.junction-DRJPVSP7.js +1443 -0
  52. package/dist/block.mds.junction-DRJPVSP7.js.map +7 -0
  53. package/dist/block.mds.svcnv-OAAQM5JW.js +7062 -0
  54. package/dist/block.mds.svcnv-OAAQM5JW.js.map +7 -0
  55. package/dist/block.mds2-M72TNRQM.js +3453 -0
  56. package/dist/block.mds2-M72TNRQM.js.map +7 -0
  57. package/dist/block.svg-AYRDRN33.js +153 -0
  58. package/dist/block.svg-AYRDRN33.js.map +7 -0
  59. package/dist/block.tk.aicheck-AUSKWMBC.js +282 -0
  60. package/dist/block.tk.aicheck-AUSKWMBC.js.map +7 -0
  61. package/dist/block.tk.ase-FNHGM2I3.js +377 -0
  62. package/dist/block.tk.ase-FNHGM2I3.js.map +7 -0
  63. package/dist/block.tk.bam-YUPXJTGV.js +1947 -0
  64. package/dist/block.tk.bam-YUPXJTGV.js.map +7 -0
  65. package/dist/block.tk.bedgraphdot-FCODL5CT.js +381 -0
  66. package/dist/block.tk.bedgraphdot-FCODL5CT.js.map +7 -0
  67. package/dist/block.tk.bigwig.ui-RQE2XGT6.js +205 -0
  68. package/dist/block.tk.bigwig.ui-RQE2XGT6.js.map +7 -0
  69. package/dist/block.tk.hicstraw-YN4MPGLA.js +856 -0
  70. package/dist/block.tk.hicstraw-YN4MPGLA.js.map +7 -0
  71. package/dist/block.tk.junction-XASPK7BU.js +2392 -0
  72. package/dist/block.tk.junction-XASPK7BU.js.map +7 -0
  73. package/dist/block.tk.junction.textmatrixui-CBZGKEPW.js +198 -0
  74. package/dist/block.tk.junction.textmatrixui-CBZGKEPW.js.map +7 -0
  75. package/dist/block.tk.ld-LGZMZ22B.js +92 -0
  76. package/dist/block.tk.ld-LGZMZ22B.js.map +7 -0
  77. package/dist/block.tk.menu-JUIJBOED.js +1076 -0
  78. package/dist/block.tk.menu-JUIJBOED.js.map +7 -0
  79. package/dist/block.tk.pgv-3OG3ODVO.js +988 -0
  80. package/dist/block.tk.pgv-3OG3ODVO.js.map +7 -0
  81. package/dist/boxplot-UALZ3KUW.js +293 -0
  82. package/dist/boxplot-UALZ3KUW.js.map +7 -0
  83. package/dist/brainImaging-RHS4KVN5.js +263 -0
  84. package/dist/brainImaging-RHS4KVN5.js.map +7 -0
  85. package/dist/categorical-PHE3ATSX.js +48 -0
  86. package/dist/categorical-PHE3ATSX.js.map +7 -0
  87. package/dist/chunk-2BM5YZ6X.js +52 -0
  88. package/dist/chunk-2BM5YZ6X.js.map +7 -0
  89. package/dist/chunk-2LX4NGJ3.js +228 -0
  90. package/dist/chunk-2LX4NGJ3.js.map +7 -0
  91. package/dist/chunk-3AVY4GWG.js +118 -0
  92. package/dist/chunk-3AVY4GWG.js.map +7 -0
  93. package/dist/chunk-3TBJHRHB.js +31 -0
  94. package/dist/chunk-3TBJHRHB.js.map +7 -0
  95. package/dist/chunk-424OMXYN.js +456 -0
  96. package/dist/chunk-424OMXYN.js.map +7 -0
  97. package/dist/chunk-4VL5AMF7.js +2859 -0
  98. package/dist/chunk-4VL5AMF7.js.map +7 -0
  99. package/dist/chunk-4WA2H5DE.js +75 -0
  100. package/dist/chunk-4WA2H5DE.js.map +7 -0
  101. package/dist/chunk-5IJCZCP7.js +1971 -0
  102. package/dist/chunk-5IJCZCP7.js.map +7 -0
  103. package/dist/chunk-5MDPW4SY.js +27 -0
  104. package/dist/chunk-5MDPW4SY.js.map +7 -0
  105. package/dist/chunk-5ZNWPUUW.js +1301 -0
  106. package/dist/chunk-5ZNWPUUW.js.map +7 -0
  107. package/dist/chunk-66BLU73K.js +1761 -0
  108. package/dist/chunk-66BLU73K.js.map +7 -0
  109. package/dist/chunk-6MSAGRRE.js +43 -0
  110. package/dist/chunk-6MSAGRRE.js.map +7 -0
  111. package/dist/chunk-6RIWWJ7N.js +193 -0
  112. package/dist/chunk-6RIWWJ7N.js.map +7 -0
  113. package/dist/chunk-6S4SHPQA.js +123 -0
  114. package/dist/chunk-6S4SHPQA.js.map +7 -0
  115. package/dist/chunk-7CQ3C4AZ.js +279 -0
  116. package/dist/chunk-7CQ3C4AZ.js.map +7 -0
  117. package/dist/chunk-7HIMDSYY.js +184 -0
  118. package/dist/chunk-7HIMDSYY.js.map +7 -0
  119. package/dist/chunk-7K35DD3D.js +406 -0
  120. package/dist/chunk-7K35DD3D.js.map +7 -0
  121. package/dist/chunk-7KFEDC2T.js +125 -0
  122. package/dist/chunk-7KFEDC2T.js.map +7 -0
  123. package/dist/chunk-7RW6NXWL.js +287 -0
  124. package/dist/chunk-7RW6NXWL.js.map +7 -0
  125. package/dist/chunk-7UW2GXW3.js +219 -0
  126. package/dist/chunk-7UW2GXW3.js.map +7 -0
  127. package/dist/chunk-7XMB27DT.js +2646 -0
  128. package/dist/chunk-7XMB27DT.js.map +7 -0
  129. package/dist/chunk-7YY2KB6H.js +219 -0
  130. package/dist/chunk-7YY2KB6H.js.map +7 -0
  131. package/dist/chunk-A3RJV2TI.js +232 -0
  132. package/dist/chunk-A3RJV2TI.js.map +7 -0
  133. package/dist/chunk-AFUEQSU6.js +328 -0
  134. package/dist/chunk-AFUEQSU6.js.map +7 -0
  135. package/dist/chunk-ALPXXDQD.js +62 -0
  136. package/dist/chunk-ALPXXDQD.js.map +7 -0
  137. package/dist/chunk-AZ43JQUH.js +393 -0
  138. package/dist/chunk-AZ43JQUH.js.map +7 -0
  139. package/dist/chunk-B2WJXDDI.js +583 -0
  140. package/dist/chunk-B2WJXDDI.js.map +7 -0
  141. package/dist/chunk-BO5QXXJP.js +369 -0
  142. package/dist/chunk-BO5QXXJP.js.map +7 -0
  143. package/dist/chunk-BT2NCQ7T.js +620 -0
  144. package/dist/chunk-BT2NCQ7T.js.map +7 -0
  145. package/dist/chunk-CKF26VJ7.js +408 -0
  146. package/dist/chunk-CKF26VJ7.js.map +7 -0
  147. package/dist/chunk-CLA4CYDQ.js +153 -0
  148. package/dist/chunk-CLA4CYDQ.js.map +7 -0
  149. package/dist/chunk-CLHA5AEH.js +436 -0
  150. package/dist/chunk-CLHA5AEH.js.map +7 -0
  151. package/dist/chunk-CVRLSPB3.js +69 -0
  152. package/dist/chunk-CVRLSPB3.js.map +7 -0
  153. package/dist/chunk-CYNRLJUH.js +1236 -0
  154. package/dist/chunk-CYNRLJUH.js.map +7 -0
  155. package/dist/chunk-D7XAIGWY.js +2504 -0
  156. package/dist/chunk-D7XAIGWY.js.map +7 -0
  157. package/dist/chunk-DBWJZOLB.js +519 -0
  158. package/dist/chunk-DBWJZOLB.js.map +7 -0
  159. package/dist/chunk-DFBJTBFS.js +40 -0
  160. package/dist/chunk-DFBJTBFS.js.map +7 -0
  161. package/dist/chunk-DYKQBCL7.js +14 -0
  162. package/dist/chunk-DYKQBCL7.js.map +7 -0
  163. package/dist/chunk-DZTTAFY6.js +21517 -0
  164. package/dist/chunk-DZTTAFY6.js.map +7 -0
  165. package/dist/chunk-EPBPM7OO.js +15 -0
  166. package/dist/chunk-EPBPM7OO.js.map +7 -0
  167. package/dist/chunk-ETCTZFTA.js +144 -0
  168. package/dist/chunk-ETCTZFTA.js.map +7 -0
  169. package/dist/chunk-F3OQE4AZ.js +43 -0
  170. package/dist/chunk-F3OQE4AZ.js.map +7 -0
  171. package/dist/chunk-F4NU7RN2.js +266 -0
  172. package/dist/chunk-F4NU7RN2.js.map +7 -0
  173. package/dist/chunk-FCO47PWR.js +37 -0
  174. package/dist/chunk-FCO47PWR.js.map +7 -0
  175. package/dist/chunk-FCPSU6WB.js +26 -0
  176. package/dist/chunk-FCPSU6WB.js.map +7 -0
  177. package/dist/chunk-FCTWOWMS.js +6547 -0
  178. package/dist/chunk-FCTWOWMS.js.map +7 -0
  179. package/dist/chunk-FGV7DX37.js +123 -0
  180. package/dist/chunk-FGV7DX37.js.map +7 -0
  181. package/dist/chunk-FLWMQIN2.js +577 -0
  182. package/dist/chunk-FLWMQIN2.js.map +7 -0
  183. package/dist/chunk-FLWVWBUU.js +83 -0
  184. package/dist/chunk-FLWVWBUU.js.map +7 -0
  185. package/dist/chunk-FPQKVUJW.js +171 -0
  186. package/dist/chunk-FPQKVUJW.js.map +7 -0
  187. package/dist/chunk-FSQCXBJK.js +3385 -0
  188. package/dist/chunk-FSQCXBJK.js.map +7 -0
  189. package/dist/chunk-FVWCEZS2.js +84 -0
  190. package/dist/chunk-FVWCEZS2.js.map +7 -0
  191. package/dist/chunk-FZQKYSHP.js +361 -0
  192. package/dist/chunk-FZQKYSHP.js.map +7 -0
  193. package/dist/chunk-GAHBWEYS.js +17 -0
  194. package/dist/chunk-GAHBWEYS.js.map +7 -0
  195. package/dist/chunk-GH3GBWEQ.js +1106 -0
  196. package/dist/chunk-GH3GBWEQ.js.map +7 -0
  197. package/dist/chunk-GIHTT3NN.js +310 -0
  198. package/dist/chunk-GIHTT3NN.js.map +7 -0
  199. package/dist/chunk-GVFD6D6G.js +389 -0
  200. package/dist/chunk-GVFD6D6G.js.map +7 -0
  201. package/dist/chunk-H56REZKF.js +335 -0
  202. package/dist/chunk-H56REZKF.js.map +7 -0
  203. package/dist/chunk-HI5V2EZ3.js +2059 -0
  204. package/dist/chunk-HI5V2EZ3.js.map +7 -0
  205. package/dist/chunk-HJXC2LYC.js +341 -0
  206. package/dist/chunk-HJXC2LYC.js.map +7 -0
  207. package/dist/chunk-HLAEQQIL.js +10154 -0
  208. package/dist/chunk-HLAEQQIL.js.map +7 -0
  209. package/dist/chunk-J5LFFSQ5.js +414 -0
  210. package/dist/chunk-J5LFFSQ5.js.map +7 -0
  211. package/dist/chunk-J7OTLF3N.js +134 -0
  212. package/dist/chunk-J7OTLF3N.js.map +7 -0
  213. package/dist/chunk-JASS6SUY.js +1757 -0
  214. package/dist/chunk-JASS6SUY.js.map +7 -0
  215. package/dist/chunk-JSGFPXR6.js +494 -0
  216. package/dist/chunk-JSGFPXR6.js.map +7 -0
  217. package/dist/chunk-JV3G5Q3X.js +322 -0
  218. package/dist/chunk-JV3G5Q3X.js.map +7 -0
  219. package/dist/chunk-JVUJSWZ2.js +99 -0
  220. package/dist/chunk-JVUJSWZ2.js.map +7 -0
  221. package/dist/chunk-K2SFS3GA.js +172 -0
  222. package/dist/chunk-K2SFS3GA.js.map +7 -0
  223. package/dist/chunk-KAID7JA7.js +155 -0
  224. package/dist/chunk-KAID7JA7.js.map +7 -0
  225. package/dist/chunk-KN6GXUXR.js +339 -0
  226. package/dist/chunk-KN6GXUXR.js.map +7 -0
  227. package/dist/chunk-KSBNOE4E.js +1272 -0
  228. package/dist/chunk-KSBNOE4E.js.map +7 -0
  229. package/dist/chunk-KTJDPQYT.js +80 -0
  230. package/dist/chunk-KTJDPQYT.js.map +7 -0
  231. package/dist/chunk-KUUVHWOH.js +128 -0
  232. package/dist/chunk-KUUVHWOH.js.map +7 -0
  233. package/dist/chunk-L7QWRU5Z.js +287 -0
  234. package/dist/chunk-L7QWRU5Z.js.map +7 -0
  235. package/dist/chunk-LA5CC3GX.js +2831 -0
  236. package/dist/chunk-LA5CC3GX.js.map +7 -0
  237. package/dist/chunk-LBX7K73F.js +120 -0
  238. package/dist/chunk-LBX7K73F.js.map +7 -0
  239. package/dist/chunk-LIOAKTZG.js +273 -0
  240. package/dist/chunk-LIOAKTZG.js.map +7 -0
  241. package/dist/chunk-LUP5RVUO.js +524 -0
  242. package/dist/chunk-LUP5RVUO.js.map +7 -0
  243. package/dist/chunk-MAC6Q3S4.js +609 -0
  244. package/dist/chunk-MAC6Q3S4.js.map +7 -0
  245. package/dist/chunk-MCXHNZHB.js +37 -0
  246. package/dist/chunk-MCXHNZHB.js.map +7 -0
  247. package/dist/chunk-MGBWXRLO.js +4761 -0
  248. package/dist/chunk-MGBWXRLO.js.map +7 -0
  249. package/dist/chunk-MHTF3ZP5.js +2041 -0
  250. package/dist/chunk-MHTF3ZP5.js.map +7 -0
  251. package/dist/chunk-MJYOC4LP.js +782 -0
  252. package/dist/chunk-MJYOC4LP.js.map +7 -0
  253. package/dist/chunk-MKAF2BHB.js +33 -0
  254. package/dist/chunk-MKAF2BHB.js.map +7 -0
  255. package/dist/chunk-MPUJBL2R.js +572 -0
  256. package/dist/chunk-MPUJBL2R.js.map +7 -0
  257. package/dist/chunk-MY6PL6QW.js +165 -0
  258. package/dist/chunk-MY6PL6QW.js.map +7 -0
  259. package/dist/chunk-N66AE4F4.js +55 -0
  260. package/dist/chunk-N66AE4F4.js.map +7 -0
  261. package/dist/chunk-NGAD43OA.js +1008 -0
  262. package/dist/chunk-NGAD43OA.js.map +7 -0
  263. package/dist/chunk-NRIRRI6E.js +946 -0
  264. package/dist/chunk-NRIRRI6E.js.map +7 -0
  265. package/dist/chunk-NUF4Q2PV.js +79 -0
  266. package/dist/chunk-NUF4Q2PV.js.map +7 -0
  267. package/dist/chunk-NUYFQ7WK.js +880 -0
  268. package/dist/chunk-NUYFQ7WK.js.map +7 -0
  269. package/dist/chunk-O32YEJMI.js +26 -0
  270. package/dist/chunk-O32YEJMI.js.map +7 -0
  271. package/dist/chunk-O755IDLY.js +232 -0
  272. package/dist/chunk-O755IDLY.js.map +7 -0
  273. package/dist/chunk-OUMTQFAT.js +1385 -0
  274. package/dist/chunk-OUMTQFAT.js.map +7 -0
  275. package/dist/chunk-P64DWRTC.js +19 -0
  276. package/dist/chunk-P64DWRTC.js.map +7 -0
  277. package/dist/chunk-P7BTNMOS.js +421 -0
  278. package/dist/chunk-P7BTNMOS.js.map +7 -0
  279. package/dist/chunk-PAY3CQ33.js +159 -0
  280. package/dist/chunk-PAY3CQ33.js.map +7 -0
  281. package/dist/chunk-PCO4AEUF.js +638 -0
  282. package/dist/chunk-PCO4AEUF.js.map +7 -0
  283. package/dist/chunk-PGCZMKZL.js +68 -0
  284. package/dist/chunk-PGCZMKZL.js.map +7 -0
  285. package/dist/chunk-PWTXVCZ4.js +17 -0
  286. package/dist/chunk-PWTXVCZ4.js.map +7 -0
  287. package/dist/chunk-PZ2QQHOR.js +471 -0
  288. package/dist/chunk-PZ2QQHOR.js.map +7 -0
  289. package/dist/chunk-Q7EFDAC2.js +140 -0
  290. package/dist/chunk-Q7EFDAC2.js.map +7 -0
  291. package/dist/chunk-QESCZO3K.js +1158 -0
  292. package/dist/chunk-QESCZO3K.js.map +7 -0
  293. package/dist/chunk-QXBRPFSA.js +96 -0
  294. package/dist/chunk-QXBRPFSA.js.map +7 -0
  295. package/dist/chunk-R4AKYUS5.js +301 -0
  296. package/dist/chunk-R4AKYUS5.js.map +7 -0
  297. package/dist/chunk-RB5IPUK7.js +496 -0
  298. package/dist/chunk-RB5IPUK7.js.map +7 -0
  299. package/dist/chunk-RKJGIOIF.js +68 -0
  300. package/dist/chunk-RKJGIOIF.js.map +7 -0
  301. package/dist/chunk-ROQ5WSLC.js +297 -0
  302. package/dist/chunk-ROQ5WSLC.js.map +7 -0
  303. package/dist/chunk-SBIYP4PZ.js +303 -0
  304. package/dist/chunk-SBIYP4PZ.js.map +7 -0
  305. package/dist/chunk-SHYGLBEM.js +28 -0
  306. package/dist/chunk-SHYGLBEM.js.map +7 -0
  307. package/dist/chunk-SW3IT2CO.js +337 -0
  308. package/dist/chunk-SW3IT2CO.js.map +7 -0
  309. package/dist/chunk-T4O3CEMI.js +174 -0
  310. package/dist/chunk-T4O3CEMI.js.map +7 -0
  311. package/dist/chunk-T7PUEPBT.js +425 -0
  312. package/dist/chunk-T7PUEPBT.js.map +7 -0
  313. package/dist/chunk-TPC4M3D5.js +358 -0
  314. package/dist/chunk-TPC4M3D5.js.map +7 -0
  315. package/dist/chunk-TRWKFVMG.js +1074 -0
  316. package/dist/chunk-TRWKFVMG.js.map +7 -0
  317. package/dist/chunk-TYOEUAYM.js +144 -0
  318. package/dist/chunk-TYOEUAYM.js.map +7 -0
  319. package/dist/chunk-UF4DBJT2.js +295 -0
  320. package/dist/chunk-UF4DBJT2.js.map +7 -0
  321. package/dist/chunk-UID2IBJW.js +251 -0
  322. package/dist/chunk-UID2IBJW.js.map +7 -0
  323. package/dist/chunk-UKTWDFWK.js +233 -0
  324. package/dist/chunk-UKTWDFWK.js.map +7 -0
  325. package/dist/chunk-UVBIK7UU.js +456 -0
  326. package/dist/chunk-UVBIK7UU.js.map +7 -0
  327. package/dist/chunk-V2OJLJSK.js +28 -0
  328. package/dist/chunk-V2OJLJSK.js.map +7 -0
  329. package/dist/chunk-VBEZAWS7.js +601 -0
  330. package/dist/chunk-VBEZAWS7.js.map +7 -0
  331. package/dist/chunk-VTAHPCY3.js +133 -0
  332. package/dist/chunk-VTAHPCY3.js.map +7 -0
  333. package/dist/chunk-VTNXIEUY.js +479 -0
  334. package/dist/chunk-VTNXIEUY.js.map +7 -0
  335. package/dist/chunk-WDUN3JSR.js +94 -0
  336. package/dist/chunk-WDUN3JSR.js.map +7 -0
  337. package/dist/chunk-WFYDJEEI.js +506 -0
  338. package/dist/chunk-WFYDJEEI.js.map +7 -0
  339. package/dist/chunk-WMK7VUYQ.js +2214 -0
  340. package/dist/chunk-WMK7VUYQ.js.map +7 -0
  341. package/dist/chunk-WTM3GD2X.js +116 -0
  342. package/dist/chunk-WTM3GD2X.js.map +7 -0
  343. package/dist/chunk-WW5X6DGZ.js +364 -0
  344. package/dist/chunk-WW5X6DGZ.js.map +7 -0
  345. package/dist/chunk-XNRMTK2Y.js +1048 -0
  346. package/dist/chunk-XNRMTK2Y.js.map +7 -0
  347. package/dist/chunk-Y6SKTI7D.js +418 -0
  348. package/dist/chunk-Y6SKTI7D.js.map +7 -0
  349. package/dist/chunk-YAF32M5O.js +93 -0
  350. package/dist/chunk-YAF32M5O.js.map +7 -0
  351. package/dist/chunk-YID4SHDU.js +358 -0
  352. package/dist/chunk-YID4SHDU.js.map +7 -0
  353. package/dist/chunk-ZRUQHHLI.js +114 -0
  354. package/dist/chunk-ZRUQHHLI.js.map +7 -0
  355. package/dist/chunk-ZW4E76MJ.js +56 -0
  356. package/dist/chunk-ZW4E76MJ.js.map +7 -0
  357. package/dist/chunk-ZXNPSDVH.js +184 -0
  358. package/dist/chunk-ZXNPSDVH.js.map +7 -0
  359. package/dist/condition-Y4KAAE34.js +352 -0
  360. package/dist/condition-Y4KAAE34.js.map +7 -0
  361. package/dist/controls-U5R4SORV.js +49 -0
  362. package/dist/controls-U5R4SORV.js.map +7 -0
  363. package/dist/controls.btns-NBQ42XBU.js +10 -0
  364. package/dist/controls.btns-NBQ42XBU.js.map +7 -0
  365. package/dist/controls.config-35AGPYZO.js +45 -0
  366. package/dist/controls.config-35AGPYZO.js.map +7 -0
  367. package/dist/cuminc-KZNPMYOZ.js +1185 -0
  368. package/dist/cuminc-KZNPMYOZ.js.map +7 -0
  369. package/dist/customdata.inputui-X7DNVBPR.js +295 -0
  370. package/dist/customdata.inputui-X7DNVBPR.js.map +7 -0
  371. package/dist/dataDownload-ZWUACMG6.js +341 -0
  372. package/dist/dataDownload-ZWUACMG6.js.map +7 -0
  373. package/dist/databrowser.ui-JT42T2VQ.js +469 -0
  374. package/dist/databrowser.ui-JT42T2VQ.js.map +7 -0
  375. package/dist/density-VNA5QEGH.js +19 -0
  376. package/dist/density-VNA5QEGH.js.map +7 -0
  377. package/dist/dictionary-4Q7GYJL6.js +112 -0
  378. package/dist/dictionary-4Q7GYJL6.js.map +7 -0
  379. package/dist/e2pca-C7HISRT5.js +338 -0
  380. package/dist/e2pca-C7HISRT5.js.map +7 -0
  381. package/dist/ep-RI4E7UYW.js +1275 -0
  382. package/dist/ep-RI4E7UYW.js.map +7 -0
  383. package/dist/expclust.gdc.spec-MVUEDEVD.js +300 -0
  384. package/dist/expclust.gdc.spec-MVUEDEVD.js.map +7 -0
  385. package/dist/facet-CRCJC3NF.js +439 -0
  386. package/dist/facet-CRCJC3NF.js.map +7 -0
  387. package/dist/fusion.parse-EAUUES2R.js +90 -0
  388. package/dist/fusion.parse-EAUUES2R.js.map +7 -0
  389. package/dist/geneExpClustering-JWSTMTME.js +280 -0
  390. package/dist/geneExpClustering-JWSTMTME.js.map +7 -0
  391. package/dist/geneExpression-BNYKJEGZ.js +57 -0
  392. package/dist/geneExpression-BNYKJEGZ.js.map +7 -0
  393. package/dist/geneExpression-FNWFOU6B.js +62 -0
  394. package/dist/geneExpression-FNWFOU6B.js.map +7 -0
  395. package/dist/geneExpression-IJMVTJ6T.js +313 -0
  396. package/dist/geneExpression-IJMVTJ6T.js.map +7 -0
  397. package/dist/geneORA-G5RWUB27.js +282 -0
  398. package/dist/geneORA-G5RWUB27.js.map +7 -0
  399. package/dist/geneVariant-5QIXLOMX.js +386 -0
  400. package/dist/geneVariant-5QIXLOMX.js.map +7 -0
  401. package/dist/geneVariant-V7BEYPNS.js +56 -0
  402. package/dist/geneVariant-V7BEYPNS.js.map +7 -0
  403. package/dist/genefusion.ui-WXSPZ3UL.js +239 -0
  404. package/dist/genefusion.ui-WXSPZ3UL.js.map +7 -0
  405. package/dist/geneset-DYMDLMZR.js +212 -0
  406. package/dist/geneset-DYMDLMZR.js.map +7 -0
  407. package/dist/genomeBrowser-K6H3EAIS.js +411 -0
  408. package/dist/genomeBrowser-K6H3EAIS.js.map +7 -0
  409. package/dist/genomeBrowser.controls-NJYECYTP.js +52 -0
  410. package/dist/genomeBrowser.controls-NJYECYTP.js.map +7 -0
  411. package/dist/genomeBrowser.spec-OONYRWEK.js +262 -0
  412. package/dist/genomeBrowser.spec-OONYRWEK.js.map +7 -0
  413. package/dist/groupsetting-3452HUCN.js +20 -0
  414. package/dist/groupsetting-3452HUCN.js.map +7 -0
  415. package/dist/gsea-HXFECPTL.js +337 -0
  416. package/dist/gsea-HXFECPTL.js.map +7 -0
  417. package/dist/hierCluster-FLPTDBQZ.js +73 -0
  418. package/dist/hierCluster-FLPTDBQZ.js.map +7 -0
  419. package/dist/hierCluster-ZDQEZKES.js +77 -0
  420. package/dist/hierCluster-ZDQEZKES.js.map +7 -0
  421. package/dist/hierCluster.config-TLUGIEG6.js +45 -0
  422. package/dist/hierCluster.config-TLUGIEG6.js.map +7 -0
  423. package/dist/hierCluster.integration.spec-EPGKHHYA.js +314 -0
  424. package/dist/hierCluster.integration.spec-EPGKHHYA.js.map +7 -0
  425. package/dist/hierCluster.interactivity-J6R4DQ7D.js +57 -0
  426. package/dist/hierCluster.interactivity-J6R4DQ7D.js.map +7 -0
  427. package/dist/hierCluster.renderers-FJNHTWF7.js +22 -0
  428. package/dist/hierCluster.renderers-FJNHTWF7.js.map +7 -0
  429. package/dist/imagePlot-5QA7XN5T.js +150 -0
  430. package/dist/imagePlot-5QA7XN5T.js.map +7 -0
  431. package/dist/launch.adhoc-ITTXVRZY.js +55 -0
  432. package/dist/launch.adhoc-ITTXVRZY.js.map +7 -0
  433. package/dist/leftlabel.sample-XCW7BJZS.js +276 -0
  434. package/dist/leftlabel.sample-XCW7BJZS.js.map +7 -0
  435. package/dist/legacyDataset-U3QB6JES.js +121 -0
  436. package/dist/legacyDataset-U3QB6JES.js.map +7 -0
  437. package/dist/lollipop-FUOKGXIU.js +109 -0
  438. package/dist/lollipop-FUOKGXIU.js.map +7 -0
  439. package/dist/maf-IYIZCRDV.js +372 -0
  440. package/dist/maf-IYIZCRDV.js.map +7 -0
  441. package/dist/maftimeline-RNASDCKI.js +603 -0
  442. package/dist/maftimeline-RNASDCKI.js.map +7 -0
  443. package/dist/matrix-GEECYO47.js +68 -0
  444. package/dist/matrix-GEECYO47.js.map +7 -0
  445. package/dist/matrix-IK3RUSZR.js +73 -0
  446. package/dist/matrix-IK3RUSZR.js.map +7 -0
  447. package/dist/matrix.cells-H5MGR6PD.js +27 -0
  448. package/dist/matrix.cells-H5MGR6PD.js.map +7 -0
  449. package/dist/matrix.cluster-KIGBPUC3.js +9 -0
  450. package/dist/matrix.cluster-KIGBPUC3.js.map +7 -0
  451. package/dist/matrix.config-RFMGFGND.js +46 -0
  452. package/dist/matrix.config-RFMGFGND.js.map +7 -0
  453. package/dist/matrix.controls-UCGUELB4.js +45 -0
  454. package/dist/matrix.controls-UCGUELB4.js.map +7 -0
  455. package/dist/matrix.data-ZGFMAFWC.js +30 -0
  456. package/dist/matrix.data-ZGFMAFWC.js.map +7 -0
  457. package/dist/matrix.dom-GYVEZNKE.js +10 -0
  458. package/dist/matrix.dom-GYVEZNKE.js.map +7 -0
  459. package/dist/matrix.groups-G62TZX5X.js +28 -0
  460. package/dist/matrix.groups-G62TZX5X.js.map +7 -0
  461. package/dist/matrix.interactivity-3BJDWJRT.js +47 -0
  462. package/dist/matrix.interactivity-3BJDWJRT.js.map +7 -0
  463. package/dist/matrix.layout-QQFOSV4M.js +24 -0
  464. package/dist/matrix.layout-QQFOSV4M.js.map +7 -0
  465. package/dist/matrix.legend-ZEICNYUI.js +21 -0
  466. package/dist/matrix.legend-ZEICNYUI.js.map +7 -0
  467. package/dist/matrix.renderers-KR53U7FD.js +43 -0
  468. package/dist/matrix.renderers-KR53U7FD.js.map +7 -0
  469. package/dist/matrix.serieses-DHJFTBTE.js +20 -0
  470. package/dist/matrix.serieses-DHJFTBTE.js.map +7 -0
  471. package/dist/matrix.sort-ZNJ4LHYD.js +28 -0
  472. package/dist/matrix.sort-ZNJ4LHYD.js.map +7 -0
  473. package/dist/matrix.sort.unit.spec-RMGECE37.js +478 -0
  474. package/dist/matrix.sort.unit.spec-RMGECE37.js.map +7 -0
  475. package/dist/matrix.sorterUi-VMNFCIAP.js +19 -0
  476. package/dist/matrix.sorterUi-VMNFCIAP.js.map +7 -0
  477. package/dist/matrix.sorterUi.unit.spec-7FRWUXMN.js +356 -0
  478. package/dist/matrix.sorterUi.unit.spec-7FRWUXMN.js.map +7 -0
  479. package/dist/mavb-MIJBMBKO.js +742 -0
  480. package/dist/mavb-MIJBMBKO.js.map +7 -0
  481. package/dist/mds.fimo-ALNZ7L6I.js +533 -0
  482. package/dist/mds.fimo-ALNZ7L6I.js.map +7 -0
  483. package/dist/mds.samplescatterplot-YZWLQ2BZ.js +1681 -0
  484. package/dist/mds.samplescatterplot-YZWLQ2BZ.js.map +7 -0
  485. package/dist/mds.survivalplot-EQS4VYY4.js +494 -0
  486. package/dist/mds.survivalplot-EQS4VYY4.js.map +7 -0
  487. package/dist/metaboliteIntensity-PO6U5GTH.js +47 -0
  488. package/dist/metaboliteIntensity-PO6U5GTH.js.map +7 -0
  489. package/dist/notify-UVJFM3FK.js +57 -0
  490. package/dist/notify-UVJFM3FK.js.map +7 -0
  491. package/dist/numeric-HJIO655D.js +43 -0
  492. package/dist/numeric-HJIO655D.js.map +7 -0
  493. package/dist/numeric.binary-FRPLLZGM.js +262 -0
  494. package/dist/numeric.binary-FRPLLZGM.js.map +7 -0
  495. package/dist/numeric.continuous-I3AGIDHD.js +144 -0
  496. package/dist/numeric.continuous-I3AGIDHD.js.map +7 -0
  497. package/dist/numeric.discrete-RSDF2HGA.js +52 -0
  498. package/dist/numeric.discrete-RSDF2HGA.js.map +7 -0
  499. package/dist/numeric.spline-ABUSBU3K.js +240 -0
  500. package/dist/numeric.spline-ABUSBU3K.js.map +7 -0
  501. package/dist/numeric.toggle-X5DZTXTH.js +45 -0
  502. package/dist/numeric.toggle-X5DZTXTH.js.map +7 -0
  503. package/dist/oncomatrix-7A3CVB3B.js +322 -0
  504. package/dist/oncomatrix-7A3CVB3B.js.map +7 -0
  505. package/dist/oncomatrix.spec-CSB2JAAR.js +444 -0
  506. package/dist/oncomatrix.spec-CSB2JAAR.js.map +7 -0
  507. package/dist/plot.2dvaf-OLZ5MI6A.js +363 -0
  508. package/dist/plot.2dvaf-OLZ5MI6A.js.map +7 -0
  509. package/dist/plot.app-5YKODBBA.js +54 -0
  510. package/dist/plot.app-5YKODBBA.js.map +7 -0
  511. package/dist/plot.barplot-DTBAEBEB.js +86 -0
  512. package/dist/plot.barplot-DTBAEBEB.js.map +7 -0
  513. package/dist/plot.boxplot-G7OWZHCN.js +150 -0
  514. package/dist/plot.boxplot-G7OWZHCN.js.map +7 -0
  515. package/dist/plot.brainImaging-G4FNHSSU.js +56 -0
  516. package/dist/plot.brainImaging-G4FNHSSU.js.map +7 -0
  517. package/dist/plot.disco-MVAEUN3O.js +101 -0
  518. package/dist/plot.disco-MVAEUN3O.js.map +7 -0
  519. package/dist/plot.dzi-CKJ2M3CJ.js +33 -0
  520. package/dist/plot.dzi-CKJ2M3CJ.js.map +7 -0
  521. package/dist/plot.ssgq-DBZGPWQO.js +133 -0
  522. package/dist/plot.ssgq-DBZGPWQO.js.map +7 -0
  523. package/dist/plot.vaf2cov-7IRCKHQF.js +246 -0
  524. package/dist/plot.vaf2cov-7IRCKHQF.js.map +7 -0
  525. package/dist/plot.wsi-Y55ODPOM.js +32 -0
  526. package/dist/plot.wsi-Y55ODPOM.js.map +7 -0
  527. package/dist/profile.spec-MROLY5JO.js +162 -0
  528. package/dist/profile.spec-MROLY5JO.js.map +7 -0
  529. package/dist/profileBarchart-E644C5JN.js +284 -0
  530. package/dist/profileBarchart-E644C5JN.js.map +7 -0
  531. package/dist/profileHome-3VOTBXJ7.js +129 -0
  532. package/dist/profileHome-3VOTBXJ7.js.map +7 -0
  533. package/dist/profilePlot-2RBRIWVB.js +59 -0
  534. package/dist/profilePlot-2RBRIWVB.js.map +7 -0
  535. package/dist/profilePolar-5MAEYTVK.js +211 -0
  536. package/dist/profilePolar-5MAEYTVK.js.map +7 -0
  537. package/dist/profileRadar-X57F3IRY.js +291 -0
  538. package/dist/profileRadar-X57F3IRY.js.map +7 -0
  539. package/dist/profileRadarFacility-TE567GEI.js +281 -0
  540. package/dist/profileRadarFacility-TE567GEI.js.map +7 -0
  541. package/dist/profileSummary-ITLVHVL4.js +114 -0
  542. package/dist/profileSummary-ITLVHVL4.js.map +7 -0
  543. package/dist/regression-ZSJ6OYF5.js +75 -0
  544. package/dist/regression-ZSJ6OYF5.js.map +7 -0
  545. package/dist/regression.inputs-NFQLAMGQ.js +67 -0
  546. package/dist/regression.inputs-NFQLAMGQ.js.map +7 -0
  547. package/dist/regression.inputs.term-CN4RTISP.js +67 -0
  548. package/dist/regression.inputs.term-CN4RTISP.js.map +7 -0
  549. package/dist/regression.inputs.values.table-HTNJTLES.js +63 -0
  550. package/dist/regression.inputs.values.table-HTNJTLES.js.map +7 -0
  551. package/dist/regression.results-ZS3AVTFS.js +29 -0
  552. package/dist/regression.results-ZS3AVTFS.js.map +7 -0
  553. package/dist/sampleScatter-J6MKY3VL.js +83 -0
  554. package/dist/sampleScatter-J6MKY3VL.js.map +7 -0
  555. package/dist/sampleScatter.interactivity-BCWXXHRK.js +57 -0
  556. package/dist/sampleScatter.interactivity-BCWXXHRK.js.map +7 -0
  557. package/dist/sampleScatter.renderer-IDXE7FQO.js +63 -0
  558. package/dist/sampleScatter.renderer-IDXE7FQO.js.map +7 -0
  559. package/dist/sampleScatter.rendererThree-GXUEF6OS.js +11 -0
  560. package/dist/sampleScatter.rendererThree-GXUEF6OS.js.map +7 -0
  561. package/dist/sampleView-NJC4JHDC.js +61 -0
  562. package/dist/sampleView-NJC4JHDC.js.map +7 -0
  563. package/dist/samplelst-XEAJHYW5.js +120 -0
  564. package/dist/samplelst-XEAJHYW5.js.map +7 -0
  565. package/dist/samplematrix-IXFEK7YJ.js +2327 -0
  566. package/dist/samplematrix-IXFEK7YJ.js.map +7 -0
  567. package/dist/scatter-4XFCTQHY.js +375 -0
  568. package/dist/scatter-4XFCTQHY.js.map +7 -0
  569. package/dist/selectGenomeWithTklst-HF2NIL5G.js +126 -0
  570. package/dist/selectGenomeWithTklst-HF2NIL5G.js.map +7 -0
  571. package/dist/singleCellCellType-NZIJPS4I.js +77 -0
  572. package/dist/singleCellCellType-NZIJPS4I.js.map +7 -0
  573. package/dist/singleCellGeneExpression-WA7DS3F5.js +53 -0
  574. package/dist/singleCellGeneExpression-WA7DS3F5.js.map +7 -0
  575. package/dist/singleCellPlot-GQHKZDYF.js +869 -0
  576. package/dist/singleCellPlot-GQHKZDYF.js.map +7 -0
  577. package/dist/singlecell-77SRCZMZ.js +856 -0
  578. package/dist/singlecell-77SRCZMZ.js.map +7 -0
  579. package/dist/singlecell-YSHRQ4QH.js +217 -0
  580. package/dist/singlecell-YSHRQ4QH.js.map +7 -0
  581. package/dist/snp-DKLB2ELR.js +80 -0
  582. package/dist/snp-DKLB2ELR.js.map +7 -0
  583. package/dist/snp-RN2CXCDW.js +70 -0
  584. package/dist/snp-RN2CXCDW.js.map +7 -0
  585. package/dist/snplocus-2DDW3U54.js +238 -0
  586. package/dist/snplocus-2DDW3U54.js.map +7 -0
  587. package/dist/snplocus-DSM7T52C.js +12 -0
  588. package/dist/snplocus-DSM7T52C.js.map +7 -0
  589. package/dist/snplst-22J2SHZ3.js +15 -0
  590. package/dist/snplst-22J2SHZ3.js.map +7 -0
  591. package/dist/snplst-TEITKR3W.js +12 -0
  592. package/dist/snplst-TEITKR3W.js.map +7 -0
  593. package/dist/snplst.sampleSum-UT4IMXOE.js +8 -0
  594. package/dist/snplst.sampleSum-UT4IMXOE.js.map +7 -0
  595. package/dist/spliceevent.a53ss.diagram-DBUWYYY2.js +139 -0
  596. package/dist/spliceevent.a53ss.diagram-DBUWYYY2.js.map +7 -0
  597. package/dist/spliceevent.exonskip.diagram-LW37WZ7C.js +261 -0
  598. package/dist/spliceevent.exonskip.diagram-LW37WZ7C.js.map +7 -0
  599. package/dist/spliceevent.noeventdiagram-QVWGZ2FO.js +463 -0
  600. package/dist/spliceevent.noeventdiagram-QVWGZ2FO.js.map +7 -0
  601. package/dist/stattable-ABE33RSV.js +92 -0
  602. package/dist/stattable-ABE33RSV.js.map +7 -0
  603. package/dist/style.gdc-Q4SV2SX5.js +12 -0
  604. package/dist/style.gdc-Q4SV2SX5.js.map +7 -0
  605. package/dist/summary-GEGKKVID.js +76 -0
  606. package/dist/summary-GEGKKVID.js.map +7 -0
  607. package/dist/sunburst-BZJ3WQ7P.js +274 -0
  608. package/dist/sunburst-BZJ3WQ7P.js.map +7 -0
  609. package/dist/survival-NSKTIS77.js +1156 -0
  610. package/dist/survival-NSKTIS77.js.map +7 -0
  611. package/dist/survival-TPGEDRJI.js +67 -0
  612. package/dist/survival-TPGEDRJI.js.map +7 -0
  613. package/dist/svgraph-K74KGY34.js +1425 -0
  614. package/dist/svgraph-K74KGY34.js.map +7 -0
  615. package/dist/svmr-H6CYPRPG.js +3977 -0
  616. package/dist/svmr-H6CYPRPG.js.map +7 -0
  617. package/dist/table-YOOJSIKZ.js +213 -0
  618. package/dist/table-YOOJSIKZ.js.map +7 -0
  619. package/dist/termInfo-UOGEXSTR.js +9 -0
  620. package/dist/termInfo-UOGEXSTR.js.map +7 -0
  621. package/dist/tk-JUDVJUC4.js +55 -0
  622. package/dist/tk-JUDVJUC4.js.map +7 -0
  623. package/dist/tp.ui-3LB67RQB.js +1501 -0
  624. package/dist/tp.ui-3LB67RQB.js.map +7 -0
  625. package/dist/tvs.categorical-ZATVRADB.js +74 -0
  626. package/dist/tvs.categorical-ZATVRADB.js.map +7 -0
  627. package/dist/tvs.condition-Z4PXXGLE.js +145 -0
  628. package/dist/tvs.condition-Z4PXXGLE.js.map +7 -0
  629. package/dist/tvs.density-WDTTMX2Z.js +17 -0
  630. package/dist/tvs.density-WDTTMX2Z.js.map +7 -0
  631. package/dist/tvs.geneVariant-INUKTDTT.js +184 -0
  632. package/dist/tvs.geneVariant-INUKTDTT.js.map +7 -0
  633. package/dist/tvs.numeric-IKHBJWRP.js +23 -0
  634. package/dist/tvs.numeric-IKHBJWRP.js.map +7 -0
  635. package/dist/tvs.samplelst-NZ6LHX7P.js +86 -0
  636. package/dist/tvs.samplelst-NZ6LHX7P.js.map +7 -0
  637. package/dist/tvs.survival-VY7PDAKP.js +98 -0
  638. package/dist/tvs.survival-VY7PDAKP.js.map +7 -0
  639. package/dist/variantBrowser-D2LMIKBR.js +63 -0
  640. package/dist/variantBrowser-D2LMIKBR.js.map +7 -0
  641. package/dist/violin-XPOZMWWA.js +61 -0
  642. package/dist/violin-XPOZMWWA.js.map +7 -0
  643. package/dist/violin.interactivity-MPK5AFR4.js +49 -0
  644. package/dist/violin.interactivity-MPK5AFR4.js.map +7 -0
  645. package/dist/violin.renderer-2EB4LTOF.js +21 -0
  646. package/dist/violin.renderer-2EB4LTOF.js.map +7 -0
  647. package/dist/vocabulary-ZFCXFLBL.js +51 -0
  648. package/dist/vocabulary-ZFCXFLBL.js.map +7 -0
  649. package/package.json +8 -15
  650. package/dist/2dmaf-7dddba15.js +0 -1
  651. package/dist/AppHeader-67cea623.js +0 -1
  652. package/dist/ColorScale-7a36cc17.js +0 -1
  653. package/dist/DEanalysis-417e1f88.js +0 -1
  654. package/dist/Disco-30abd4cb.js +0 -1
  655. package/dist/Disco.UI-ea58ee03.js +0 -1
  656. package/dist/DragControls-a5072cfd.js +0 -1
  657. package/dist/DziViewer-af3c5a76.js +0 -7
  658. package/dist/FilterRxComp-cb149666.js +0 -1
  659. package/dist/FilterStateless-bdd1416d.js +0 -1
  660. package/dist/HicApp-fe8682af.js +0 -1
  661. package/dist/OrbitControls-0d20d46b.js +0 -1
  662. package/dist/WSIViewer-64e55fb8.js +0 -1
  663. package/dist/_commonjsHelpers-318dc0aa.js +0 -1
  664. package/dist/adSandbox-5753745b.js +0 -1
  665. package/dist/app-488d9fd6.js +0 -1
  666. package/dist/app-5aa892cb.js +0 -1
  667. package/dist/app-d9433820.js +0 -1
  668. package/dist/arc-3d6751aa.js +0 -1
  669. package/dist/area-f56e50f9.js +0 -1
  670. package/dist/axis-747c801e.js +0 -1
  671. package/dist/axisstyle-fac7f76b.js +0 -1
  672. package/dist/bam-4e0df8b6.js +0 -1
  673. package/dist/barchart-687ae584.js +0 -1
  674. package/dist/barchart.events-9e2c1acf.js +0 -1
  675. package/dist/bars.renderer-95f7250f.js +0 -1
  676. package/dist/bars.settings-64bb4642.js +0 -1
  677. package/dist/basis-3870f5ba.js +0 -1
  678. package/dist/block-2f22e7fd.js +0 -1
  679. package/dist/block.lazyload-143ae987.js +0 -1
  680. package/dist/block.legend-aa831169.js +0 -1
  681. package/dist/block.mds-64d95cf9.js +0 -1
  682. package/dist/block.mds.cnv-2520897d.js +0 -1
  683. package/dist/block.mds.expressionrank-582ed7bc.js +0 -1
  684. package/dist/block.mds.expressionstat-483c9bc9.js +0 -1
  685. package/dist/block.mds.geneboxplot-c1276cba.js +0 -1
  686. package/dist/block.mds.junction-4a132819.js +0 -1
  687. package/dist/block.mds.svcnv-a532eca7.js +0 -1
  688. package/dist/block.mds.svcnv.share-6575b7cf.js +0 -1
  689. package/dist/block.mds2-9ce41a23.js +0 -1
  690. package/dist/block.svg-adb13c76.js +0 -1
  691. package/dist/block.tk.aicheck-ef6b634b.js +0 -1
  692. package/dist/block.tk.ase-1b119031.js +0 -1
  693. package/dist/block.tk.bam-2aa824aa.js +0 -1
  694. package/dist/block.tk.bedgraphdot-983fe4b3.js +0 -1
  695. package/dist/block.tk.bigwig.ui-fb6401ee.js +0 -1
  696. package/dist/block.tk.hicstraw-c6732591.js +0 -1
  697. package/dist/block.tk.junction-429b654c.js +0 -1
  698. package/dist/block.tk.junction.textmatrixui-15bd752c.js +0 -1
  699. package/dist/block.tk.ld-fba14536.js +0 -1
  700. package/dist/block.tk.menu-1299ae5e.js +0 -1
  701. package/dist/block.tk.pgv-c946527f.js +0 -1
  702. package/dist/boxplot-dbf30a19.js +0 -1
  703. package/dist/brainImaging-b2865ba3.js +0 -1
  704. package/dist/brush-1a123226.js +0 -1
  705. package/dist/categorical-f67752ed.js +0 -1
  706. package/dist/checkbox-96437f4d.js +0 -1
  707. package/dist/condition-dcc70001.js +0 -1
  708. package/dist/constant-426a1483.js +0 -1
  709. package/dist/controls-f4648f7f.js +0 -1
  710. package/dist/controls.btns-26bb6ef1.js +0 -1
  711. package/dist/controls.config-9870bdea.js +0 -1
  712. package/dist/cuminc-2273cdd3.js +0 -1
  713. package/dist/customdata.inputui-fb1b24dc.js +0 -1
  714. package/dist/dataDownload-b94871d0.js +0 -1
  715. package/dist/databrowser.ui-8ace51c3.js +0 -1
  716. package/dist/density-e023c28f.js +0 -1
  717. package/dist/dictionary-321e19f9.js +0 -1
  718. package/dist/drag-1b98e43e.js +0 -1
  719. package/dist/e2pca-00e78fdc.js +0 -1
  720. package/dist/ep-b0d6177c.js +0 -1
  721. package/dist/facet-26292a3d.js +0 -1
  722. package/dist/filter-67d51c09.js +0 -1
  723. package/dist/fusion.parse-7e3a6071.js +0 -1
  724. package/dist/geneExpClustering-a2cf1bb9.js +0 -1
  725. package/dist/geneExpression-d1d5a7ca.js +0 -1
  726. package/dist/geneExpression-dc10af2c.js +0 -1
  727. package/dist/geneExpression-e4a5a2cd.js +0 -1
  728. package/dist/geneORA-248baba7.js +0 -1
  729. package/dist/geneVariant-447d6af9.js +0 -1
  730. package/dist/geneVariant-7366f3d1.js +0 -1
  731. package/dist/genefusion.ui-e219424a.js +0 -1
  732. package/dist/genesearch-d8780180.js +0 -1
  733. package/dist/geneset-1f67d4c9.js +0 -1
  734. package/dist/genomeBrowser-52c639b4.js +0 -1
  735. package/dist/genomeBrowser.controls-3a7a1c94.js +0 -1
  736. package/dist/groupsetting-697a1503.js +0 -1
  737. package/dist/gsea-d3286c53.js +0 -1
  738. package/dist/hierCluster-00268175.js +0 -1
  739. package/dist/html.legend-0abd27ff.js +0 -1
  740. package/dist/imagePlot-f6398b6e.js +0 -1
  741. package/dist/lasso-48317f42.js +0 -1
  742. package/dist/launch.adhoc-98dc0421.js +0 -1
  743. package/dist/leftlabel.sample-591bc38d.js +0 -1
  744. package/dist/legacy-d3-polyfill-bdb2d792.js +0 -1
  745. package/dist/legacyDataset-354f1a29.js +0 -1
  746. package/dist/line-264f8f9e.js +0 -1
  747. package/dist/log-1001ca83.js +0 -1
  748. package/dist/lollipop-40c4c5cb.js +0 -1
  749. package/dist/maf-10526648.js +0 -1
  750. package/dist/maftimeline-a77349ad.js +0 -1
  751. package/dist/math-2fb199c6.js +0 -1
  752. package/dist/matrix-1190d4b3.js +0 -1
  753. package/dist/matrix-bc0ccf83.js +0 -1
  754. package/dist/mavb-0d28dd97.js +0 -1
  755. package/dist/mds.fimo-929b9e65.js +0 -1
  756. package/dist/mds.samplescatterplot-5a4ee6b6.js +0 -1
  757. package/dist/mds.survivalplot-b04947ee.js +0 -1
  758. package/dist/metaboliteIntensity-f407ad0c.js +0 -1
  759. package/dist/niceNumLabels-621ef5c3.js +0 -1
  760. package/dist/nodrag-b2866dd8.js +0 -1
  761. package/dist/notify-91f0bc5d.js +0 -1
  762. package/dist/numeric-eb1d29b3.js +0 -1
  763. package/dist/numeric.binary-da92d665.js +0 -1
  764. package/dist/numeric.continuous-92d1dea8.js +0 -1
  765. package/dist/numeric.discrete-cd8f09b1.js +0 -1
  766. package/dist/numeric.spline-9a9987b6.js +0 -1
  767. package/dist/numeric.toggle-8f68f077.js +0 -1
  768. package/dist/oncomatrix-c29e6de9.js +0 -1
  769. package/dist/parseData-3bf0ef9f.js +0 -1
  770. package/dist/partition-db811f6b.js +0 -1
  771. package/dist/partjson.esm-b3f1fc21.js +0 -1
  772. package/dist/plot.2dvaf-9e59c7d1.js +0 -1
  773. package/dist/plot.app-fc3608a9.js +0 -1
  774. package/dist/plot.barplot-122296f7.js +0 -1
  775. package/dist/plot.boxplot-99c5aac5.js +0 -1
  776. package/dist/plot.brainImaging-a7bb79d6.js +0 -1
  777. package/dist/plot.disco-ccdf741c.js +0 -1
  778. package/dist/plot.dzi-aafdf56b.js +0 -1
  779. package/dist/plot.ssgq-146075f5.js +0 -1
  780. package/dist/plot.vaf2cov-41e13dd9.js +0 -1
  781. package/dist/plot.wsi-2327ad63.js +0 -1
  782. package/dist/pointer-c7475677.js +0 -1
  783. package/dist/profileBarchart-46616916.js +0 -1
  784. package/dist/profileHome-121aaddb.js +0 -1
  785. package/dist/profilePlot-a2591a28.js +0 -1
  786. package/dist/profilePolar-006a56b1.js +0 -1
  787. package/dist/profileRadar-3320d932.js +0 -1
  788. package/dist/profileRadarFacility-7a9cea80.js +0 -1
  789. package/dist/profileSummary-7a747b4e.js +0 -1
  790. package/dist/radiobutton-09bff425.js +0 -1
  791. package/dist/recover-edcdde38.js +0 -1
  792. package/dist/regression.inputs-d5d44e49.js +0 -1
  793. package/dist/regression.inputs.values.table-daf7bcda.js +0 -1
  794. package/dist/regression.results-31a8884d.js +0 -1
  795. package/dist/rehydrateFilter-12d118cb.js +0 -1
  796. package/dist/renderPvalueTable-05c29ccf.js +0 -1
  797. package/dist/sampleScatter-f6c04130.js +0 -1
  798. package/dist/sampleScatter.rendererThree-448689c6.js +0 -6
  799. package/dist/sampleView-0931e571.js +0 -1
  800. package/dist/samplelst-27115b0e.js +0 -1
  801. package/dist/samplematrix-2bb2480b.js +0 -1
  802. package/dist/scatter-a8d7c2a0.js +0 -1
  803. package/dist/select2Terms-480025f5.js +0 -1
  804. package/dist/selectGenomeWithTklst-71344af2.js +0 -1
  805. package/dist/shapes-21ebfec4.js +0 -1
  806. package/dist/singleCellCellType-b4061c59.js +0 -1
  807. package/dist/singleCellGeneExpression-547149f2.js +0 -1
  808. package/dist/singleCellPlot-2f5ad46a.js +0 -1
  809. package/dist/singlecell-1c3bee25.js +0 -1
  810. package/dist/singlecell-281a74a6.js +0 -1
  811. package/dist/snp-32b8cbd8.js +0 -1
  812. package/dist/snp-6bbefa83.js +0 -1
  813. package/dist/snplocus-84450f3d.js +0 -1
  814. package/dist/snplocus-90e52cf4.js +0 -1
  815. package/dist/snplst-6865d7c7.js +0 -1
  816. package/dist/snplst-7c59f059.js +0 -1
  817. package/dist/snplst.sampleSum-e47d05f0.js +0 -1
  818. package/dist/spliceevent.a53ss.diagram-c04f46f1.js +0 -1
  819. package/dist/spliceevent.exonskip.diagram-a514c12e.js +0 -1
  820. package/dist/spliceevent.exonskip.getdefault-a9a45dfc.js +0 -1
  821. package/dist/spliceevent.noeventdiagram-b1be922c.js +0 -1
  822. package/dist/spliceevent.phrase-57659f7c.js +0 -1
  823. package/dist/stattable-7fa50fd2.js +0 -1
  824. package/dist/style.gdc-6b6a2e0c.js +0 -1
  825. package/dist/summary-54587ccf.js +0 -1
  826. package/dist/sunburst-c24faf27.js +0 -1
  827. package/dist/survival-21e6637b.js +0 -1
  828. package/dist/survival-538cddc2.js +0 -1
  829. package/dist/svg.download-0dd56dfd.js +0 -1
  830. package/dist/svg.legend-21629769.js +0 -1
  831. package/dist/svgraph-76e34d5e.js +0 -1
  832. package/dist/svmr-89b80ea2.js +0 -1
  833. package/dist/table-10183501.js +0 -1
  834. package/dist/table-bb97b5c9.js +0 -1
  835. package/dist/termInfo-4d954045.js +0 -1
  836. package/dist/termdb.bins-06fd21c1.js +0 -1
  837. package/dist/termsetting-c12f1c69.js +0 -1
  838. package/dist/tk-b96367f7.js +0 -1
  839. package/dist/toggleButtons-bb9aca2f.js +0 -1
  840. package/dist/tp.ui-f01b186b.js +0 -1
  841. package/dist/tslib.es6-c3c2d88f.js +0 -1
  842. package/dist/tvs.categorical-b9b37c70.js +0 -1
  843. package/dist/tvs.condition-cbe198d7.js +0 -1
  844. package/dist/tvs.density-064e5767.js +0 -1
  845. package/dist/tvs.geneVariant-3fac6bed.js +0 -1
  846. package/dist/tvs.numeric-86aacc82.js +0 -1
  847. package/dist/tvs.samplelst-1b00d7b6.js +0 -1
  848. package/dist/tvs.survival-df35b85b.js +0 -1
  849. package/dist/uiUtils-5aad7e13.js +0 -1
  850. package/dist/variantBrowser-2c465d02.js +0 -1
  851. package/dist/vcf-55bf2c83.js +0 -1
  852. package/dist/violin-edbe9a63.js +0 -1
  853. package/dist/violin.interactivity-57637244.js +0 -1
  854. package/dist/violin.renderer-4cab7448.js +0 -1
  855. package/dist/violinRenderer-24abe5fd.js +0 -1
  856. package/dist/viridis-8a8f3e12.js +0 -1
  857. package/dist/y-6fe1bb7b.js +0 -1
  858. package/dist/zoom-6a36fb2b.js +0 -1
@@ -0,0 +1,1406 @@
1
+ import {
2
+ renderSandboxFormDiv
3
+ } from "./chunk-JVUJSWZ2.js";
4
+ import "./chunk-JV3G5Q3X.js";
5
+ import {
6
+ axisstyle,
7
+ bulk_badline,
8
+ font,
9
+ newpane,
10
+ newpane3,
11
+ sayerror,
12
+ to_svg
13
+ } from "./chunk-TRWKFVMG.js";
14
+ import {
15
+ Menu
16
+ } from "./chunk-7YY2KB6H.js";
17
+ import {
18
+ make_table_2col
19
+ } from "./chunk-2BM5YZ6X.js";
20
+ import "./chunk-H56REZKF.js";
21
+ import "./chunk-BT2NCQ7T.js";
22
+ import {
23
+ mclass,
24
+ mclassnonstandard
25
+ } from "./chunk-KSBNOE4E.js";
26
+ import {
27
+ Symbol,
28
+ circle_default,
29
+ cross_default,
30
+ diamond_default,
31
+ square_default,
32
+ star_default,
33
+ triangle_default,
34
+ wye_default
35
+ } from "./chunk-WMK7VUYQ.js";
36
+ import {
37
+ axisBottom,
38
+ axisLeft,
39
+ axisTop
40
+ } from "./chunk-ZRUQHHLI.js";
41
+ import "./chunk-JASS6SUY.js";
42
+ import {
43
+ select_default
44
+ } from "./chunk-NUYFQ7WK.js";
45
+ import "./chunk-P7BTNMOS.js";
46
+ import {
47
+ format,
48
+ linear
49
+ } from "./chunk-5IJCZCP7.js";
50
+ import "./chunk-CKF26VJ7.js";
51
+ import "./chunk-Y6SKTI7D.js";
52
+ import "./chunk-F3OQE4AZ.js";
53
+
54
+ // src/2dmaf.anchors.js
55
+ var Anchors = class {
56
+ constructor(opts) {
57
+ this.opts = opts;
58
+ this.anchorType = opts.anchorType;
59
+ this.shareheight = opts.shareheight;
60
+ this.sharewidth = opts.sharewidth;
61
+ const x = "x" in opts ? opts.x : 0;
62
+ const y = "y" in opts ? opts.y : 0;
63
+ this.settings = {
64
+ visible: true,
65
+ opacity: 0.3,
66
+ x,
67
+ y,
68
+ xOffset: opts.axiswidth + opts.sp + opts.sample2height,
69
+ yOffset: opts.shareheight,
70
+ currX: opts.axiswidth + opts.sp + opts.sample2height + x,
71
+ currY: opts.shareheight - y,
72
+ strokeWidth: "strokeWidth" in opts ? opts.strokeWidth : 5,
73
+ stroke: "stroke" in opts ? opts.stroke : "red",
74
+ xarmlen: "xarmlen" in opts ? opts.xarmlen : 25
75
+ };
76
+ this.addControls(this.anchorType ? null : this.opts.headerdiv);
77
+ }
78
+ setWrapper(g) {
79
+ this.opts.wrapper = g;
80
+ }
81
+ addControls(headerdiv = null) {
82
+ if (headerdiv) {
83
+ const anchorbtn = headerdiv.append("button").text("Anchors").on("click", (event) => {
84
+ this.anchormenu.showunder(event.target);
85
+ this.xInput.property("value", (this.settings.x / this.sharewidth).toFixed(2));
86
+ this.yInput.property("value", (this.settings.y / this.sharewidth).toFixed(2));
87
+ });
88
+ }
89
+ this.anchormenu = new Menu({ border: "solid 1px black" });
90
+ this.anchormenu.d.style("text-align", "center");
91
+ this.addCoordInput();
92
+ this.addColorInput();
93
+ this.addOpacityInput();
94
+ if (!this.anchorType)
95
+ this.addSubmitBtns();
96
+ else
97
+ this.addDeleteBtn();
98
+ }
99
+ addColorInput() {
100
+ const div = this.anchormenu.d.append("div");
101
+ div.append("label").html("Color: ");
102
+ this.strokeInput = div.append("input");
103
+ this.strokeInput.attr("this.anchorType", "text").property("value", this.settings.stroke).style("width", "50px");
104
+ }
105
+ addOpacityInput() {
106
+ const div = this.anchormenu.d.append("div");
107
+ div.append("label").html("Opacity: ");
108
+ this.opacityInput = div.append("input");
109
+ this.opacityInput.attr("this.anchorType", "number").attr("min", 0).attr("max", 1).attr("step", 0.01).property("value", this.settings.opacity).style("width", "50px");
110
+ }
111
+ addSubmitBtns() {
112
+ if (this.anchorType)
113
+ return;
114
+ const div = this.anchormenu.d.append("div");
115
+ div.append("label").html("Add Anchor: ");
116
+ div.append("button").html("R").on("click", () => {
117
+ new SyncedAnchors(this.getSettings("r"));
118
+ this.anchormenu.hide();
119
+ });
120
+ div.append("button").html("D").on("click", () => {
121
+ new SyncedAnchors(this.getSettings("d"));
122
+ this.anchormenu.hide();
123
+ });
124
+ div.append("button").html("X").on("click", () => {
125
+ new SyncedAnchors(this.getSettings("x"));
126
+ this.anchormenu.hide();
127
+ });
128
+ div.append("button").html("synced").on("click", () => {
129
+ new SyncedAnchors(this.getSettings("synced"));
130
+ this.anchormenu.hide();
131
+ });
132
+ }
133
+ getSettings(anchorType) {
134
+ return Object.assign({}, this.opts, {
135
+ anchorType,
136
+ opacity: this.opacityInput.property("value"),
137
+ x: this.xInput.property("value") * this.sharewidth,
138
+ y: this.yInput.property("value") * this.shareheight,
139
+ stroke: this.strokeInput.property("value")
140
+ });
141
+ }
142
+ addCoordInput() {
143
+ const xdiv = this.anchormenu.d.append("div");
144
+ xdiv.append("label").html("X: ");
145
+ this.xInput = xdiv.append("input");
146
+ this.xInput.attr("this.anchorType", "number").attr("min", 0).attr("max", 1).attr("step", 0.01).property("value", 0).style("width", "80px");
147
+ const ydiv = this.anchormenu.d.append("div");
148
+ ydiv.append("label").html("Y: ");
149
+ this.yInput = ydiv.append("input");
150
+ this.yInput.attr("this.anchorType", "number").attr("min", 0).attr("max", 1).attr("step", 0.01).property("value", 0).style("width", "80px");
151
+ }
152
+ addDeleteBtn() {
153
+ if (!this.anchorType)
154
+ return;
155
+ const div = this.anchormenu.d.append("div");
156
+ div.append("button").html("Delete").on("click", () => {
157
+ this.g_anchor.remove();
158
+ this.anchormenu.hide();
159
+ });
160
+ }
161
+ };
162
+ var SyncedAnchors = class extends Anchors {
163
+ constructor(opts) {
164
+ super(opts);
165
+ this.render();
166
+ this.strokeInput.on("change", () => {
167
+ this.settings.stroke = this.strokeInput.property("value");
168
+ this.g_anchor.style("stroke", this.settings.stroke);
169
+ this.anchormenu.hide();
170
+ });
171
+ this.opacityInput.on("change", () => {
172
+ this.settings.opacity = input.property("value");
173
+ this.g_anchor.style("opacity", this.settings.opacity);
174
+ this.anchormenu.hide();
175
+ });
176
+ this.xInput.on("change", () => {
177
+ this.settings.x = +this.xInput.property("value") * this.sharewidth;
178
+ this.settings.currX = this.settings.x + this.settings.xOffset;
179
+ if (this.d_anchor) {
180
+ this.d_anchor.transition().duration(1e3).attr("x1", this.settings.currX).attr("x2", this.settings.currX);
181
+ }
182
+ if (this.x_anchor) {
183
+ this.x_anchor.transition().duration(1e3).attr("transform", "translate(" + this.settings.currX + "," + this.settings.currY + ")");
184
+ }
185
+ this.anchormenu.hide();
186
+ });
187
+ this.yInput.on("change", () => {
188
+ this.settings.y = +this.yInput.property("value") * this.shareheight;
189
+ this.settings.currY = -this.settings.y + this.settings.yOffset;
190
+ if (this.r_anchor) {
191
+ this.r_anchor.transition().duration(1e3).attr("y1", this.settings.currY).attr("y2", this.settings.currY);
192
+ }
193
+ if (this.x_anchor) {
194
+ this.x_anchor.transition().duration(1e3).attr("transform", "translate(" + this.settings.currX + "," + this.settings.currY + ")");
195
+ }
196
+ this.anchormenu.hide();
197
+ });
198
+ }
199
+ render() {
200
+ this.g_anchor = this.opts.wrapper.append("g").style("stroke", this.settings.stroke).style("opacity", this.settings.opacity).style("display", this.settings.visible ? "" : "none").style("stroke-width", this.settings.strokeWidth).on(
201
+ "click",
202
+ this.anchorType == "synced" ? null : (event) => {
203
+ this.anchormenu.showunder(event.target);
204
+ }
205
+ );
206
+ this.renderD();
207
+ this.renderR();
208
+ this.renderX();
209
+ }
210
+ renderD() {
211
+ if (!["synced", "d"].includes(this.anchorType))
212
+ return;
213
+ this.d_anchor = this.g_anchor.append("line");
214
+ const o = this.opts;
215
+ this.updateD(o.shareheight + o.sp2, o.shareheight + o.sample1height);
216
+ }
217
+ updateD(y1, y2) {
218
+ if (!["synced", "d"].includes(this.anchorType))
219
+ return;
220
+ this.settings.D = { y1, y2 };
221
+ this.d_anchor.attr("x1", this.settings.currX).attr("x2", this.settings.currX).attr("y1", y1).attr("y2", y2);
222
+ }
223
+ renderR() {
224
+ if (!["synced", "r"].includes(this.anchorType))
225
+ return;
226
+ this.r_anchor = this.g_anchor.append("line");
227
+ const o = this.opts;
228
+ this.updateR(o.axiswidth + o.sp, o.sample2height + o.sp);
229
+ }
230
+ updateR(x1, x2) {
231
+ if (!["synced", "r"].includes(this.anchorType))
232
+ return;
233
+ this.settings.R = { x1, x2 };
234
+ this.r_anchor.attr("x1", x1).attr("x2", x2).attr("y1", this.settings.currY).attr("y2", this.settings.currY);
235
+ }
236
+ renderX() {
237
+ if (!["synced", "x"].includes(this.anchorType))
238
+ return;
239
+ this.x_anchor = this.g_anchor.append("g").attr("transform", "translate(" + this.settings.currX + "," + this.settings.currY + ")");
240
+ this.bindXDrag();
241
+ this.x_anchor.append("circle").attr("cx", 0).attr("cy", 0).attr("r", this.settings.xarmlen).style("opacity", 0);
242
+ this.x_anchor.append("line").attr("x1", -this.settings.xarmlen).attr("x2", this.settings.xarmlen).attr("y1", 0).attr("y2", 0);
243
+ this.x_anchor.append("line").attr("x1", 0).attr("x2", 0).attr("y1", this.settings.xarmlen).attr("y2", -this.settings.xarmlen);
244
+ }
245
+ bindXDrag() {
246
+ if (!["synced"].includes(this.anchorType))
247
+ return;
248
+ this.x_anchor.on("mousedown", (event) => {
249
+ const x = event.clientX;
250
+ const y = event.clientY;
251
+ let _x = this.settings.currX, _y = this.settings.currY;
252
+ this.x_anchor.on("mousemove", (event2) => {
253
+ _x = this.settings.currX - x + event2.clientX;
254
+ _y = this.settings.currY - y + event2.clientY;
255
+ this.r_anchor.attr("y1", _y).attr("y2", _y);
256
+ this.d_anchor.attr("x1", _x).attr("x2", _x);
257
+ this.x_anchor.attr("transform", "translate(" + _x + "," + _y + ")");
258
+ }).on("mouseup", (event2) => {
259
+ this.x_anchor.on("mousemove", null);
260
+ _x = this.settings.currX - x + event2.clientX;
261
+ _y = this.settings.currY - y + event2.clientY;
262
+ if (_x == this.settings.currX && _y == this.settings.currY) {
263
+ this.g_anchor.remove();
264
+ return;
265
+ }
266
+ this.settings.x = _x < this.settings.xOffset ? 0 : _x - this.settings.xOffset;
267
+ this.settings.y = _y > this.settings.yOffset ? 0 : -(_y - this.settings.yOffset);
268
+ this.settings.currX = this.settings.x + this.settings.xOffset;
269
+ this.settings.currY = -this.settings.y + this.settings.yOffset;
270
+ this.r_anchor.transition().duration(100).attr("y1", this.settings.currY).attr("y2", this.settings.currY);
271
+ this.d_anchor.transition().duration(100).attr("x1", this.settings.currX).attr("x2", this.settings.currX);
272
+ this.x_anchor.transition().duration(100).attr("transform", "translate(" + this.settings.currX + "," + this.settings.currY + ")");
273
+ }).on("mouseleave", () => {
274
+ this.x_anchor.on("mousemove", null);
275
+ });
276
+ });
277
+ }
278
+ };
279
+
280
+ // src/2dmaf.js
281
+ var color1 = "#f9766c";
282
+ var color2 = "#609cff";
283
+ var colorshare = "#01b937";
284
+ var symbols = {
285
+ circle: circle_default,
286
+ cross: cross_default,
287
+ diamond: diamond_default,
288
+ square: square_default,
289
+ star: star_default,
290
+ triangle: triangle_default,
291
+ wye: wye_default
292
+ };
293
+ var symbolFilters = {
294
+ path: (d) => d.symbol,
295
+ circle: (d) => !d.symbol
296
+ };
297
+ var sharedFilters = {
298
+ path: (d) => d.symbol,
299
+ ellipse: (d) => !d.symbol
300
+ };
301
+ function d2mafui(genomes, holder) {
302
+ let pane, inputdiv, gselect, filediv, saydiv, visualdiv;
303
+ if (holder !== void 0)
304
+ [inputdiv, gselect, filediv, saydiv, visualdiv] = renderSandboxFormDiv(holder, genomes);
305
+ else {
306
+ ;
307
+ [pane, inputdiv, gselect, filediv, saydiv, visualdiv] = newpane3(100, 100, genomes);
308
+ pane.header.text("2DMAF: mutant allele fraction plot between a pair of samples");
309
+ pane.body.style("margin", "10px");
310
+ }
311
+ inputdiv.append("div").style("margin-top", "20px").html(
312
+ '<ul><li><a href="https://docs.google.com/document/d/1anyEDMcW1lTSf8399Li2G9r57V-Fqp2591WvoODY7n4/edit#heading=h.mne2ecmp9m13" target=_blank>File format</a></li><li>To define samples differently than "Diagnosis/Relapse", <a href=https://plus.google.com/+XinZhou_s/posts/WqBVvmd3wYR target=_blank>see how</a>.</li></ul>'
313
+ );
314
+ inputdiv.append("p").html("<a href=https://proteinpaint.stjude.org/ppdemo/hg19/2dmaf/2dmaf.txt target=_blank>Example file</a>");
315
+ function cmt(t, red) {
316
+ saydiv.style("color", red ? "red" : "black").html(t);
317
+ }
318
+ const fileui = () => {
319
+ filediv.selectAll("*").remove();
320
+ const input2 = filediv.append("input").attr("type", "file").on("change", (event) => {
321
+ const file = event.target.files[0];
322
+ if (!file) {
323
+ fileui();
324
+ return;
325
+ }
326
+ if (!file.size) {
327
+ cmt("Invalid file " + file.name);
328
+ fileui();
329
+ return;
330
+ }
331
+ const reader = new FileReader();
332
+ reader.onload = (event2) => {
333
+ const usegenome = gselect.options[gselect.selectedIndex].innerHTML;
334
+ const err = parseraw(event2.target.result.trim().split(/\r?\n/), genomes[usegenome], file.name, visualdiv);
335
+ if (err) {
336
+ cmt(err, 1);
337
+ fileui();
338
+ return;
339
+ }
340
+ inputdiv.remove();
341
+ filediv.remove();
342
+ saydiv.remove();
343
+ };
344
+ reader.onerror = function() {
345
+ cmt("Error reading file " + file.name, 1);
346
+ fileui();
347
+ return;
348
+ };
349
+ reader.readAsText(file, "utf8");
350
+ });
351
+ setTimeout(() => input2.node().focus(), 1100);
352
+ };
353
+ fileui();
354
+ }
355
+ function d2mafparseinput(obj, holder) {
356
+ if (!obj.genome) {
357
+ sayerror(holder, ".genome missing for 2dmaf");
358
+ return;
359
+ }
360
+ if (!obj.input) {
361
+ sayerror(holder, ".input missing for 2dmaf");
362
+ return;
363
+ }
364
+ const err = parseraw(obj.input.trim().split(/\r?\n/), obj.genome, obj.datasetname || "unnamed dataset", holder);
365
+ if (err) {
366
+ sayerror(holder, "2DMAF data error: " + err);
367
+ }
368
+ }
369
+ function parseraw(lines, genome, filename, holder) {
370
+ const [headererror, header, headerattrlst] = parseheader(lines[0].trim());
371
+ if (headererror) {
372
+ return headererror;
373
+ }
374
+ const pairs = {};
375
+ const g2mlst = {};
376
+ const peoplehash = {};
377
+ const genehash = {};
378
+ const flag = {
379
+ good: 0,
380
+ purity1set: false,
381
+ purity2set: false,
382
+ pairsetname: {}
383
+ };
384
+ const badlines = [];
385
+ const mclasslabel2key = {};
386
+ for (const k in mclass) {
387
+ mclasslabel2key[mclass[k].label.toUpperCase()] = k;
388
+ }
389
+ for (let i = 1; i < lines.length; i++) {
390
+ if (lines[i] == "")
391
+ continue;
392
+ if (lines[i][0] == "#") {
393
+ if (lines[i].startsWith("##samplename")) {
394
+ const l = lines[i].trim().split(/[\s\t]+/);
395
+ if (l.length == 4) {
396
+ flag.pairsetname[l[1]] = { 1: l[2], 2: l[3] };
397
+ } else {
398
+ return "Line " + (i + 1) + ': invalid samplename line: must be "##samplename [patient] [sample1] [sample2]"';
399
+ }
400
+ }
401
+ continue;
402
+ }
403
+ const lst = lines[i].trim().split(" ");
404
+ const m = {};
405
+ for (let j = 0; j < header.length; j++) {
406
+ if (lst[j] != void 0 && lst[j] != "") {
407
+ m[header[j]] = lst[j];
408
+ }
409
+ }
410
+ if (!m.sample) {
411
+ return "Line " + (i + 1) + ": missing sample";
412
+ }
413
+ if (m.chr) {
414
+ if (m.chr.indexOf("chr") != 0) {
415
+ m.chr = "chr" + m.chr;
416
+ }
417
+ }
418
+ if (m.chrstart) {
419
+ m.chrstart = Number.parseInt(m.chrstart);
420
+ if (Number.isNaN(m.chrstart)) {
421
+ return "Line " + (i + 1) + ": invalid chromosome position";
422
+ }
423
+ }
424
+ if (m.Dcnvloh) {
425
+ m.Dcnvlohraw = m.Dcnvloh;
426
+ const s2 = m.Dcnvloh.toLowerCase();
427
+ if (s2 == "yes" || s2 != "diploid" && s2 != "haploid") {
428
+ m.Dcnvloh = true;
429
+ } else {
430
+ m.Dcnvloh = false;
431
+ }
432
+ }
433
+ if (m.Rcnvloh) {
434
+ m.Rcnvlohraw = m.Rcnvloh;
435
+ const s2 = m.Rcnvloh.toLowerCase();
436
+ if (s2 == "yes" || s2 != "diploid" && s2 != "haploid") {
437
+ m.Rcnvloh = true;
438
+ } else {
439
+ m.Rcnvloh = false;
440
+ }
441
+ }
442
+ if (!m.call_d) {
443
+ badlines.push([i, "missing call_d", lst]);
444
+ continue;
445
+ }
446
+ if (m.call_d != "somatic" && m.call_d != "wildtype") {
447
+ badlines.push([i, "call_d is neither somatic nor wildtype", lst]);
448
+ continue;
449
+ }
450
+ if (!m.call_r) {
451
+ badlines.push([i, "missing call_r", lst]);
452
+ continue;
453
+ }
454
+ if (m.call_r != "somatic" && m.call_r != "wildtype") {
455
+ badlines.push([i, "call_r is neither somatic nor wildtype", lst]);
456
+ continue;
457
+ }
458
+ if (m.call_d == "somatic") {
459
+ if (m.call_r == "somatic") {
460
+ m.set_share = true;
461
+ } else {
462
+ m.set_1 = true;
463
+ }
464
+ } else {
465
+ if (m.call_r == "somatic") {
466
+ m.set_2 = true;
467
+ }
468
+ }
469
+ if (!m.type) {
470
+ badlines.push([i, "missing type", lst]);
471
+ continue;
472
+ }
473
+ const s = m.type.toLowerCase();
474
+ if (s == "snv" || s == "snp" || s == "mnv" || s == "complex") {
475
+ m.issnv = true;
476
+ } else if (s == "indel" || s == "ins" || s == "del") {
477
+ m.isindel = true;
478
+ } else {
479
+ badlines.push([i, "type must be either SNV or INDEL", lst]);
480
+ continue;
481
+ }
482
+ let key = "MinD.D";
483
+ let a = Number.parseInt(m[key]);
484
+ if (Number.isNaN(a) || a < 0) {
485
+ badlines.push([i, "invalid " + key + " value", lst]);
486
+ continue;
487
+ }
488
+ m[key] = a;
489
+ key = "TinD.D";
490
+ a = Number.parseInt(m[key]);
491
+ if (Number.isNaN(a) || a < 0) {
492
+ badlines.push([i, "invalid " + key + " value", lst]);
493
+ continue;
494
+ }
495
+ m[key] = a;
496
+ if (m["TinD.D"] < m["MinD.D"]) {
497
+ badlines.push([i, "TinD.D value lower than MinD.D", lst]);
498
+ continue;
499
+ }
500
+ key = "MinN.D";
501
+ if (key in m) {
502
+ a = Number.parseInt(m[key]);
503
+ if (Number.isNaN(a) || a < 0) {
504
+ delete m[key];
505
+ } else {
506
+ m[key] = a;
507
+ }
508
+ }
509
+ key = "TinN.D";
510
+ if (key in m) {
511
+ a = Number.parseInt(m[key]);
512
+ if (Number.isNaN(a) || a < 0) {
513
+ delete m[key];
514
+ } else {
515
+ m[key] = a;
516
+ }
517
+ }
518
+ key = "MinD.R";
519
+ a = Number.parseInt(m[key]);
520
+ if (Number.isNaN(a) || a < 0) {
521
+ badlines.push([i, "invalid " + key + " value", lst]);
522
+ continue;
523
+ }
524
+ m[key] = a;
525
+ key = "TinD.R";
526
+ a = Number.parseInt(m[key]);
527
+ if (Number.isNaN(a) || a < 0) {
528
+ badlines.push([i, "invalid " + key + " value", lst]);
529
+ continue;
530
+ }
531
+ m[key] = a;
532
+ if (m["TinD.R"] < m["MinD.R"]) {
533
+ badlines.push([i, "TinD.R value lower than MinD.R", lst]);
534
+ continue;
535
+ }
536
+ key = "MinN.R";
537
+ if (key in m) {
538
+ a = Number.parseInt(m[key]);
539
+ if (Number.isNaN(a) || a < 0) {
540
+ delete m[key];
541
+ } else {
542
+ m[key] = a;
543
+ }
544
+ }
545
+ key = "TinN.R";
546
+ if (key in m) {
547
+ a = Number.parseInt(m[key]);
548
+ if (Number.isNaN(a) || a < 0) {
549
+ delete m[key];
550
+ } else {
551
+ m[key] = a;
552
+ }
553
+ }
554
+ if (m.symbol) {
555
+ if (!symbols[m.symbol]) {
556
+ badlines.push([i, "Invalid symbol value='" + m.symbol + "'", lst]);
557
+ continue;
558
+ }
559
+ }
560
+ if (m.class) {
561
+ const s2 = m.class.toUpperCase();
562
+ if (s2 in mclasslabel2key) {
563
+ m.class = mclasslabel2key[s2];
564
+ } else {
565
+ badlines.push([i, "invalid mutation class " + m.class, lst]);
566
+ continue;
567
+ }
568
+ }
569
+ m.style = {
570
+ fill: m.issnv ? "white" : "black",
571
+ fillhl: m.class ? mclass[m.class].color : "#ccc",
572
+ stroke: m.chr == "chrX" ? "black" : m.issnv ? "black" : "none",
573
+ strokehl: m.class ? mclass[m.class].color : "black",
574
+ fillopacity: m.issnv ? 0 : 0.2,
575
+ strokeopacity: 0.2
576
+ };
577
+ if (m["TinD.D"] > 0) {
578
+ m.maf1 = m["MinD.D"] / m["TinD.D"];
579
+ }
580
+ if (m["TinD.R"] > 0) {
581
+ m.maf2 = m["MinD.R"] / m["TinD.R"];
582
+ }
583
+ peoplehash[m.sample] = 1;
584
+ if (m.gene) {
585
+ genehash[m.gene] = 1;
586
+ }
587
+ if (!(m.sample in pairs)) {
588
+ pairs[m.sample] = {
589
+ name: m.sample,
590
+ shown: false,
591
+ header,
592
+ mlst: []
593
+ };
594
+ }
595
+ const v = pairs[m.sample];
596
+ v.mlst.push(m);
597
+ if (m.purity1) {
598
+ let p = Number.parseFloat(m.purity1);
599
+ if (Number.isNaN(p)) {
600
+ badlines.push([i, "diagnosis tumor purity should be a number"]);
601
+ p = 0;
602
+ } else {
603
+ if (p > 1) {
604
+ p /= 100;
605
+ }
606
+ }
607
+ if (p > 0) {
608
+ if (v.purity1 == void 0) {
609
+ v.purity1 = p;
610
+ flag.purity1set = true;
611
+ } else if (v.purity1 != p) {
612
+ badlines.push([
613
+ i,
614
+ "diagnosis tumor purity value " + p + " is different from existing value " + v.purity1 + " in " + m.sample,
615
+ lst
616
+ ]);
617
+ }
618
+ }
619
+ }
620
+ if (m.purity2) {
621
+ let p = Number.parseFloat(m.purity2);
622
+ if (Number.isNaN(p)) {
623
+ badlines.push([i, "relapse tumor purity should be a number"]);
624
+ p = 0;
625
+ } else {
626
+ if (p > 1) {
627
+ p /= 100;
628
+ }
629
+ }
630
+ if (p > 0) {
631
+ if (v.purity2 == void 0) {
632
+ v.purity2 = p;
633
+ flag.purity2set = true;
634
+ } else if (v.purity2 != p) {
635
+ badlines.push([
636
+ i,
637
+ "relapse tumor purity value " + p + " is different from existing value " + v.purity2 + " in " + m.sample,
638
+ lst
639
+ ]);
640
+ }
641
+ }
642
+ }
643
+ flag.good++;
644
+ }
645
+ if (badlines.length > 0) {
646
+ bulk_badline(header, badlines);
647
+ }
648
+ if (flag.good == 0) {
649
+ return "No valid data.";
650
+ }
651
+ holder.append("p").text("File: " + filename);
652
+ let peopletotal = 0;
653
+ for (const n in peoplehash)
654
+ peopletotal++;
655
+ let genetotal = 0;
656
+ for (const n in genehash)
657
+ genetotal++;
658
+ const boxh = 16;
659
+ const table = holder.append("table");
660
+ const tr = table.append("tr");
661
+ const td = tr.append("td").attr("valign", "top");
662
+ td.append("div").html(
663
+ '<div style="display:inline-block;width:' + boxh + "px;height:" + boxh + "px;background-color:" + color1 + '"></div> Diagnosis only <div style="display:inline-block;width:' + boxh + "px;height:" + boxh + "px;background-color:" + colorshare + '"></div> Shared <div style="display:inline-block;width:' + boxh + "px;height:" + boxh + "px;background-color:" + color2 + '"></div> Relapse only'
664
+ );
665
+ const peopleholder = td.append("div").style("margin-top", "10px").style("height", "200px").style("width", "300px").style("padding", "5px").style("overflow-y", "scroll").style("resize", "both").style("border", "solid 1px #ccc");
666
+ const geneholder = td.append("div").style("margin-top", "10px").style("height", "200px").style("width", "300px").style("padding", "5px").style("overflow-y", "scroll").style("resize", "both").style("border", "solid 1px #ccc");
667
+ const showholder = tr.append("td").style("vertical-align", "top");
668
+ for (const n in pairs) {
669
+ const ss = flag.pairsetname[n];
670
+ if (ss) {
671
+ pairs[n].setname = ss;
672
+ } else {
673
+ pairs[n].setname = { 1: "Diagnosis", 2: "Relapse" };
674
+ }
675
+ }
676
+ const odata = {
677
+ genome,
678
+ //dsname:dsname,
679
+ pairs,
680
+ color1,
681
+ color2,
682
+ colorshare,
683
+ rowh: boxh,
684
+ peoplewidth: 150,
685
+ genewidth: 150,
686
+ showholder,
687
+ //peoplelimit:Math.min(20,peopletotal),
688
+ genelimit: Math.min(20, genetotal),
689
+ purity1set: flag.purity1set,
690
+ purity2set: flag.purity2set
691
+ };
692
+ d2maf_peopletable(odata, peopleholder);
693
+ }
694
+ function parseheader(line) {
695
+ const lower = line.toLowerCase().split(" ");
696
+ const header = line.split(" ");
697
+ if (header.length <= 1) {
698
+ return ["invalid file header"];
699
+ }
700
+ const htry = (...lst) => {
701
+ for (const i2 of lst) {
702
+ const j = lower.indexOf(i2);
703
+ if (j != -1)
704
+ return j;
705
+ }
706
+ return -1;
707
+ };
708
+ let i = htry("person", "sample", "samplename", "patient");
709
+ if (i == -1)
710
+ return ["sample missing from header"];
711
+ header[i] = "sample";
712
+ i = htry("type");
713
+ if (i == -1)
714
+ return ["type missing from header"];
715
+ header[i] = "type";
716
+ i = htry("mind.d1_g1", "mind.d", "mind");
717
+ if (i == -1)
718
+ return ["MinD.D missing from header"];
719
+ header[i] = "MinD.D";
720
+ i = htry("tind.d1_g1", "tind.d", "tind");
721
+ if (i == -1)
722
+ return ["TinD.D missing from header"];
723
+ header[i] = "TinD.D";
724
+ i = htry("mind.r1_g1", "mind.r", "minr");
725
+ if (i == -1)
726
+ return ["MinD.R missing from header"];
727
+ header[i] = "MinD.R";
728
+ i = htry("tind.r1_g1", "tind.r", "tinr");
729
+ if (i == -1)
730
+ return ["TinD.R missing from header"];
731
+ header[i] = "TinD.R";
732
+ i = htry("call_d1_g1", "call_d");
733
+ if (i == -1)
734
+ return ["call_d missing from header"];
735
+ header[i] = "call_d";
736
+ i = htry("call_r1_g1", "call_r");
737
+ if (i == -1)
738
+ return ["call_r missing from header"];
739
+ header[i] = "call_r";
740
+ i = htry("genename", "gene");
741
+ if (i == -1)
742
+ return ["gene missing from header"];
743
+ header[i] = "gene";
744
+ i = htry("amino_acid_change", "annovar_sj_aachange", "aachange", "protein_change");
745
+ if (i == -1)
746
+ return ["amino_acid_change missing from header"];
747
+ header[i] = "mname";
748
+ i = htry("class", "mclass", "variant_class", "variant_classification", "annovar_sj_class");
749
+ if (i == -1)
750
+ return ["variant_class missing from header"];
751
+ header[i] = "class";
752
+ i = htry("chromosome", "chr");
753
+ if (i == -1)
754
+ return ["chromosome missing from header"];
755
+ header[i] = "chr";
756
+ i = htry("start", "start_position", "wu_hg19_pos", "chr_position");
757
+ if (i == -1)
758
+ return ["start missing from header"];
759
+ header[i] = "chrstart";
760
+ i = htry("minn.d1_g1", "minn.d");
761
+ if (i != -1)
762
+ header[i] = "MinN.D";
763
+ i = htry("tinn.d1_g1", "tinn.d");
764
+ if (i != -1)
765
+ header[i] = "TinN.D";
766
+ i = htry("minn.r1_g1", "minn.r");
767
+ if (i != -1)
768
+ header[i] = "MinN.R";
769
+ i = htry("tinn.r1_g1", "tinn.r");
770
+ if (i != -1)
771
+ header[i] = "TinN.R";
772
+ i = htry("mrna_accession", "refseq_mrna_id", "annovar_sj_filter_isoform", "refseq");
773
+ if (i != -1)
774
+ header[i] = "isoform";
775
+ i = htry("primary_purity", "purity_d");
776
+ if (i != -1)
777
+ header[i] = "purity1";
778
+ i = htry("relapse_purity", "purity_r");
779
+ if (i != -1)
780
+ header[i] = "purity2";
781
+ i = htry("tag_d_cnvloh", "cnvloh_d");
782
+ if (i != -1)
783
+ header[i] = "Dcnvloh";
784
+ i = htry("tag_r_cnvloh", "cnvloh_r");
785
+ if (i != -1)
786
+ header[i] = "Rcnvloh";
787
+ const atlst = [];
788
+ for (const j of header) {
789
+ switch (j) {
790
+ case "Dcnvloh":
791
+ atlst.push({
792
+ label: "D. CNV/LOH",
793
+ get: (m) => m.Dcnvlohraw
794
+ });
795
+ break;
796
+ case "Rcnvloh":
797
+ atlst.push({
798
+ label: "R. CNV/LOH",
799
+ get: (m) => m.Rcnvlohraw
800
+ });
801
+ break;
802
+ case "type":
803
+ atlst.push({
804
+ label: "Type",
805
+ get: (m) => m.type
806
+ });
807
+ break;
808
+ case "chr":
809
+ break;
810
+ case "chrstart":
811
+ atlst.push({
812
+ label: "Genome Loc.",
813
+ get: (m) => m.chr + ":" + (m.chrstart + 1)
814
+ });
815
+ break;
816
+ case "class":
817
+ atlst.push({
818
+ label: "Class",
819
+ get: (m) => {
820
+ if (m.class == mclassnonstandard) {
821
+ return m.originalclasslabel ? m.originalclasslabel : mclass[m.class].label;
822
+ }
823
+ return mclass[m.class].label;
824
+ }
825
+ });
826
+ break;
827
+ case "mname":
828
+ atlst.push({
829
+ label: "Mutation",
830
+ get: (m) => {
831
+ let s = m.mname;
832
+ if (!s)
833
+ s = m.cdna_change;
834
+ return s;
835
+ }
836
+ });
837
+ break;
838
+ case "MinD.D":
839
+ atlst.push({
840
+ ismaf: true,
841
+ width: 60,
842
+ height: 14,
843
+ readcountcredible: 30,
844
+ get: (m) => m.maf_diagnosis,
845
+ label: "D. tumor MAF",
846
+ fill: "#F7483B",
847
+ fillbg: "#FCBAB6"
848
+ });
849
+ break;
850
+ case "TinD.D":
851
+ break;
852
+ case "MinD.R":
853
+ atlst.push({
854
+ ismaf: true,
855
+ width: 60,
856
+ height: 14,
857
+ readcountcredible: 30,
858
+ get: (m) => m.maf_relapse,
859
+ label: "R. tumor MAF",
860
+ fill: "#146EFF",
861
+ fillbg: "#B6D5FC"
862
+ });
863
+ break;
864
+ case "TinD.R":
865
+ break;
866
+ case "MinN.D":
867
+ atlst.push({
868
+ ismaf: true,
869
+ width: 60,
870
+ height: 14,
871
+ readcountcredible: 30,
872
+ get: (m) => m.maf_diagnosis_normal,
873
+ label: "D. normal MAF",
874
+ fill: "#F7483B",
875
+ fillbg: "#FCBAB6"
876
+ });
877
+ break;
878
+ case "TinN.D":
879
+ break;
880
+ case "MinN.R":
881
+ atlst.push({
882
+ ismaf: true,
883
+ width: 60,
884
+ height: 14,
885
+ readcountcredible: 30,
886
+ get: (m) => m.maf_relapse_normal,
887
+ label: "R. normal MAF",
888
+ fill: "#146EFF",
889
+ fillbg: "#B6D5FC"
890
+ });
891
+ break;
892
+ case "TinN.R":
893
+ break;
894
+ case "call_d":
895
+ atlst.push({
896
+ label: "D. call",
897
+ get: (m) => m.call_d
898
+ });
899
+ break;
900
+ case "call_r":
901
+ atlst.push({
902
+ label: "R. call",
903
+ get: (m) => m.call_r
904
+ });
905
+ break;
906
+ case "purity1":
907
+ atlst.push({
908
+ label: "D. purity",
909
+ get: (m) => m.purity1
910
+ });
911
+ break;
912
+ case "purity2":
913
+ atlst.push({
914
+ label: "R. purity",
915
+ get: (m) => m.purity2
916
+ });
917
+ break;
918
+ default:
919
+ atlst.push({
920
+ label: j,
921
+ get: (m) => m[j]
922
+ });
923
+ }
924
+ }
925
+ return [null, header, atlst];
926
+ }
927
+ function d2maf_render(showholder, pdata) {
928
+ const tooltip = new Menu({ border: "solid 1px black" });
929
+ const set_1 = [];
930
+ const set_2 = [];
931
+ const set_share = [];
932
+ const mlst = pdata.mlst;
933
+ const person = mlst[0].sample;
934
+ const symbolgen = Symbol();
935
+ let maxtotal = 0;
936
+ let bysymbol = {};
937
+ const mclasses = {};
938
+ for (const m of mlst) {
939
+ if (m["TinD.D"] > 0) {
940
+ maxtotal = Math.max(maxtotal, m["TinD.D"]);
941
+ }
942
+ if (m["TinD.R"] > 0) {
943
+ maxtotal = Math.max(maxtotal, m["TinD.R"]);
944
+ }
945
+ if (m.set_share) {
946
+ set_share.push(m);
947
+ } else if (m.set_1) {
948
+ set_1.push(m);
949
+ } else if (m.set_2) {
950
+ set_2.push(m);
951
+ }
952
+ if (!(m.class in mclasses)) {
953
+ mclasses[m.class] = 0;
954
+ }
955
+ if (m.symbol) {
956
+ if (!bysymbol[m.symbol]) {
957
+ bysymbol[m.symbol] = { numlines: 0, label: m.symbollabel, hidden: false };
958
+ }
959
+ bysymbol[m.symbol].numlines++;
960
+ }
961
+ mclasses[m.class]++;
962
+ }
963
+ const a = Math.min(window.innerWidth, window.innerHeight);
964
+ const axiswidth = 50, sharewidth = a * 0.5, shareheight = a * 0.5, sample1height = shareheight / 2, sample2height = sharewidth / 2, sp = axiswidth / 3, sp2 = sample1height / 5, labelfontsize = Math.min(20, 12 * a / 500), radius = a / 40, indelboxw = radius * 0.7, r_cnvloh = 3;
965
+ const radiusscale = linear().domain([0, maxtotal]).range([radius / 2, radius]);
966
+ const radiustoarea = (d) => Math.PI * Math.pow(radiusscale(d), 2);
967
+ for (const m of mlst) {
968
+ m.radius = Math.max(m["TinD.D"] ? radiusscale(m["TinD.D"]) : 0, m["TinD.R"] ? radiusscale(m["TinD.R"]) : 0);
969
+ }
970
+ const outtable = showholder.append("table");
971
+ const tr = outtable.append("tr");
972
+ const tdgraph = tr.append("td").style("vertical-align", "top");
973
+ const tdgenetable = tr.append("td").style("vertical-align", "top");
974
+ tdgenetable.append("div").style("margin", "10px").text("Name: " + person);
975
+ const headerdiv = tdgraph.append("div");
976
+ headerdiv.append("button").text("Hide").on("click", () => {
977
+ pdata.shown = false;
978
+ if (pdata.handle) {
979
+ pdata.handle.attr("font-weight", "normal");
980
+ }
981
+ outtable.remove();
982
+ });
983
+ const anchors = new Anchors({ axiswidth, sp, sp2, sample1height, sample2height, shareheight, sharewidth, headerdiv });
984
+ headerdiv.append("button").text("Screenshot").on("click", () => {
985
+ to_svg(svg.node(), "2dmaf_" + pdata.name);
986
+ });
987
+ {
988
+ const mcselect = headerdiv.append("select").on("change", (event) => {
989
+ const v = event.target.options[event.target.selectedIndex].value;
990
+ if (v == "all") {
991
+ select_share.transition().attr("transform", (d) => d.posstring + " scale(1)");
992
+ select_set1.transition().attr("transform", (d) => d.posstring + " scale(1)");
993
+ select_set2.transition().attr("transform", (d) => d.posstring + " scale(1)");
994
+ return;
995
+ }
996
+ select_share.transition().attr("transform", (d) => d.posstring + " scale(" + (d.class == v ? 1 : 0) + ")");
997
+ select_set1.transition().attr("transform", (d) => d.posstring + " scale(" + (d.class == v ? 1 : 0) + ")");
998
+ select_set2.transition().attr("transform", (d) => d.posstring + " scale(" + (d.class == v ? 1 : 0) + ")");
999
+ });
1000
+ mcselect.append("option").text("Show all mutation classes").property("value", "all");
1001
+ const lst = [];
1002
+ for (const c3 in mclasses) {
1003
+ lst.push([c3, mclasses[c3]]);
1004
+ }
1005
+ lst.sort((a2, b) => b[1] - a2[1]);
1006
+ for (const i of lst) {
1007
+ mcselect.append("option").text((i[0] in mclass ? mclass[i[0]].label : i[0]) + " (" + i[1] + ")").property("value", i[0]);
1008
+ }
1009
+ }
1010
+ const svg = tdgraph.append("svg").attr("width", axiswidth + sp + sample2height + sharewidth + sp * 2).attr("height", axiswidth + sp + sample1height + shareheight + sp * 2);
1011
+ const g = svg.append("g").attr("transform", "translate(" + sp + "," + sp + ")");
1012
+ anchors.setWrapper(g.append("g"));
1013
+ const scale1 = linear().domain([0, 1]).range([0, sharewidth]);
1014
+ const scalediv1 = g.append("g").attr("transform", "translate(" + (axiswidth + sp + sample2height) + "," + (shareheight + sample1height + sp) + ")").call(axisBottom().scale(scale1).tickSize(5));
1015
+ axisstyle({ axis: scalediv1, showline: true, fontsize: labelfontsize * 0.8 });
1016
+ const c = set_1.length + set_share.length;
1017
+ scalediv1.append("text").text(pdata.setname[1] + ", n=" + c + (pdata.purity1 ? ", purity=" + pdata.purity1 : "")).attr("x", sharewidth / 2).attr("y", axiswidth - 4).attr("text-anchor", "middle").attr("font-size", labelfontsize);
1018
+ const scale2 = linear().domain([0, 1]).range([shareheight, 0]);
1019
+ const scalediv2 = g.append("g").attr("transform", "translate(" + axiswidth + ",0)").call(axisLeft().scale(scale2).tickSize(5));
1020
+ axisstyle({ axis: scalediv2, showline: true, fontsize: labelfontsize * 0.8 });
1021
+ const c2 = set_2.length + set_share.length;
1022
+ scalediv2.append("text").text(pdata.setname[2] + ", n=" + c2 + (pdata.purity2 ? ", purity=" + pdata.purity2 : "")).attr("transform", "translate(" + (labelfontsize - axiswidth - 10) + "," + shareheight / 2 + ") rotate(-90)").attr("text-anchor", "middle").attr("font-size", labelfontsize);
1023
+ g.append("path").attr(
1024
+ "d",
1025
+ "M" + (axiswidth + sp) + ",0h" + (sample2height + sharewidth) + "v" + (shareheight + sample1height) + "h-" + sharewidth + "v-" + (sample1height + shareheight) + "M" + (axiswidth + sp) + ",0v" + shareheight + "h" + (sample2height + sharewidth) + "M" + (axiswidth + sp + sample2height) + "," + shareheight + "l" + sharewidth + ",-" + shareheight
1026
+ ).attr("fill", "none").attr("stroke", "black").attr("shape-rendering", "crispEdges").attr("stroke-dasharray", "5,5");
1027
+ const select_share = g.append("g").attr("transform", "translate(" + (axiswidth + sp + sample2height) + ",0)").selectAll().data(set_share).enter().append("g").attr("transform", (d) => {
1028
+ d.posstring = "translate(" + scale1(d.maf1) + "," + scale2(d.maf2) + ")";
1029
+ return d.posstring;
1030
+ });
1031
+ select_share.filter((d) => d.Dcnvloh).append("circle").attr("cy", (d) => {
1032
+ return d.issnv ? radiusscale(d["TinD.R"]) : indelboxw / 2;
1033
+ }).attr("fill", "#858585").attr("r", r_cnvloh);
1034
+ select_share.filter((d) => d.Rcnvloh).append("circle").attr("cx", (d) => {
1035
+ return d.issnv ? -radiusscale(d["TinD.D"]) : -indelboxw / 2;
1036
+ }).attr("fill", "#858585").attr("r", r_cnvloh);
1037
+ let snv = select_share;
1038
+ for (const tagName in sharedFilters) {
1039
+ snv.filter(sharedFilters[tagName]).append(tagName).attr("rx", (d) => d.symbol ? null : radiusscale(d["TinD.D"])).attr("ry", (d) => d.symbol ? null : radiusscale(d["TinD.R"])).attr(
1040
+ "d",
1041
+ (d) => !d.symbol ? null : symbolgen.type(symbols[d.symbol]).size(radiustoarea(d["TinD.D"]) + radiustoarea(d["TinD.R"]) / 2)()
1042
+ ).attr("fill", (d) => d.style.fill).attr("fill-opacity", (d) => d.style.fillopacity).attr("stroke", (d) => d.style.stroke).attr("stroke-opacity", (d) => d.style.strokeopacity).attr("stroke-dasharray", (d) => d.chr == "chrX" ? "5,5" : "none").on("mouseover", (event, d) => d2maf_dotmover(event, d, tooltip)).on("mouseout", (event, d) => d2maf_dotmout(event, d, tooltip)).on("click", (event, d) => d2maf_minfo(event, pdata.header, d));
1043
+ }
1044
+ snv.append("line").attr("stroke", (d) => d.style.stroke).attr("stroke-opacity", (d) => d.style.strokeopacity).attr("x1", -3).attr("y1", -3).attr("x2", 3).attr("y2", 3);
1045
+ snv.append("line").attr("stroke", (d) => d.style.stroke).attr("stroke-opacity", (d) => d.style.strokeopacity).attr("x1", -3).attr("y1", 3).attr("x2", 3).attr("y2", -3);
1046
+ const set1totalscale = linear().domain([0, maxtotal]).range([sample1height - sp2, 0]);
1047
+ const g_set1 = g.append("g").attr("transform", "translate(" + (axiswidth + sp + sample2height) + "," + (shareheight + sp2) + ")");
1048
+ const emaflinecolor = "#FFBEAD";
1049
+ const emafline_1 = g_set1.append("rect").attr("fill", emaflinecolor).attr("fill-opacity", 0).attr("x", 0).attr("width", 3).attr("height", sample1height - sp2);
1050
+ axisstyle({
1051
+ axis: g_set1.call(axisLeft().scale(set1totalscale).tickValues([0, maxtotal])),
1052
+ showline: true,
1053
+ fontsize: labelfontsize * 0.8
1054
+ });
1055
+ g_set1.append("g").attr("transform", "translate(-" + labelfontsize / 2 + "," + (sample1height - sp2) / 2 + ")").append("text").text("D total").attr("font-size", labelfontsize * 0.8).attr("font-family", font).attr("fill", "black").attr("text-anchor", "middle").attr("dominant-baseline", "middle").attr("transform", "rotate(-90)");
1056
+ const select_set1 = g_set1.selectAll().data(set_1).enter().append("g").attr("transform", (d) => {
1057
+ d.posstring = "translate(" + scale1(d.maf1) + "," + set1totalscale(d["TinD.D"]) + ")";
1058
+ return d.posstring;
1059
+ });
1060
+ select_set1.filter((d) => d.Dcnvloh).append("circle").attr("cy", (d) => {
1061
+ return d.issnv ? radiusscale(d["TinD.R"]) : indelboxw / 2;
1062
+ }).attr("fill", "#858585").attr("r", r_cnvloh);
1063
+ select_set1.filter((d) => d.Rcnvloh).append("circle").attr("cx", (d) => d.issnv ? -radiusscale(d["TinD.D"]) : -indelboxw / 2).attr("fill", "#858585").attr("r", r_cnvloh);
1064
+ snv = select_set1;
1065
+ for (const tagName in symbolFilters) {
1066
+ snv.filter(symbolFilters[tagName]).append(tagName).attr("class", (d) => d.symbol ? "twodmaf-" + d.symbol : null).attr("r", (d) => d.symbol ? null : radiusscale(d["TinD.R"])).attr("d", (d) => !d.symbol ? null : symbolgen.type(symbols[d.symbol]).size(radiustoarea(d["TinD.R"]))()).attr("fill", (d) => d.style.fill).attr("fill-opacity", (d) => d.style.fillopacity).attr("stroke", (d) => d.style.stroke).attr("stroke-opacity", (d) => d.style.strokeopacity).attr("stroke-dasharray", (d) => d.chr == "chrX" ? "5,5" : "none").on("mouseover", (event, d) => d2maf_dotmover(event, d, tooltip)).on("mouseout", (event, d) => d2maf_dotmout(event, d, tooltip)).on("click", (event, d) => d2maf_minfo(event, pdata.header, d));
1067
+ }
1068
+ snv.append("line").attr("stroke", (d) => d.style.stroke).attr("stroke-opacity", (d) => d.style.strokeopacity).attr("x1", -3).attr("y1", -3).attr("x2", 3).attr("y2", 3);
1069
+ snv.append("line").attr("stroke", (d) => d.style.stroke).attr("stroke-opacity", (d) => d.style.strokeopacity).attr("x1", -3).attr("y1", 3).attr("x2", 3).attr("y2", -3);
1070
+ const set2totalscale = linear().domain([0, maxtotal]).range([0, sample2height - sp2]);
1071
+ const g_set2 = g.append("g").attr("transform", "translate(" + (axiswidth + sp) + ",0)");
1072
+ const emafline_2 = g_set2.append("rect").attr("fill", emaflinecolor).attr("fill-opacity", 0).attr("y", shareheight).attr("width", sample2height - sp2).attr("height", 3);
1073
+ const g_set2_axis = g_set2.append("g").attr("transform", "translate(0," + shareheight + ")").call(axisBottom().scale(set2totalscale).tickValues([0, maxtotal]));
1074
+ axisstyle({
1075
+ axis: g_set2_axis,
1076
+ showline: true,
1077
+ fontsize: labelfontsize * 0.8
1078
+ });
1079
+ g_set2.append("text").text("R total").attr("font-size", labelfontsize * 0.8).attr("font-family", font).attr("fill", "black").attr("x", (sample2height - sp2) / 2).attr("y", shareheight + labelfontsize).attr("text-anchor", "middle");
1080
+ const select_set2 = g_set2.selectAll().data(set_2).enter().append("g").attr("transform", (d) => {
1081
+ d.posstring = "translate(" + set2totalscale(d["TinD.R"]) + "," + scale2(d.maf2) + ")";
1082
+ return d.posstring;
1083
+ });
1084
+ select_set2.filter((d) => d.Dcnvloh).append("circle").attr("cy", (d) => d.issnv ? radiusscale(d["TinD.R"]) : indelboxw / 2).attr("fill", "#858585").attr("r", r_cnvloh);
1085
+ select_set2.filter((d) => d.Rcnvloh).append("circle").attr("cx", (d) => d.issnv ? -radiusscale(d["TinD.D"]) : -indelboxw / 2).attr("fill", "#858585").attr("r", r_cnvloh);
1086
+ snv = select_set2;
1087
+ for (const tagName in symbolFilters) {
1088
+ snv.filter(symbolFilters[tagName]).append(tagName).attr("class", (d) => d.symbol ? "twodmaf-" + d.symbol : null).attr("r", (d) => d.symbol ? null : radiusscale(d["TinD.D"])).attr("d", (d) => !d.symbol ? null : symbolgen.type(symbols[d.symbol]).size(radiustoarea(d["TinD.R"]))()).attr("fill", (d) => d.style.fill).attr("fill-opacity", (d) => d.style.fillopacity).attr("stroke", (d) => d.style.stroke).attr("stroke-opacity", (d) => d.style.strokeopacity).attr("stroke-dasharray", (d) => d.chr == "chrX" ? "5,5" : "none").on("mouseover", (event, d) => d2maf_dotmover(event, d, tooltip)).on("mouseout", (event, d) => d2maf_dotmout(event, d, tooltip)).on("click", (event, d) => d2maf_minfo(event, pdata.header, d));
1089
+ }
1090
+ snv.append("line").attr("stroke", (d) => d.style.stroke).attr("stroke-opacity", (d) => d.style.strokeopacity).attr("x1", -3).attr("y1", -3).attr("x2", 3).attr("y2", 3);
1091
+ snv.append("line").attr("stroke", (d) => d.style.stroke).attr("stroke-opacity", (d) => d.style.strokeopacity).attr("x1", -3).attr("y1", 3).attr("x2", 3).attr("y2", -3);
1092
+ const leng = g.append("g").attr("transform", "translate(0," + (shareheight + sp2) + ")");
1093
+ let y = labelfontsize;
1094
+ leng.append("text").text(person).attr("font-size", labelfontsize).attr("y", y);
1095
+ const r1 = radiusscale(20), r2 = radiusscale(maxtotal);
1096
+ y += labelfontsize + r2;
1097
+ let x;
1098
+ leng.append("text").text("SNV coverage").attr("y", y).attr("dominant-baseline", "middle").each(function() {
1099
+ x = this.getBBox().width;
1100
+ });
1101
+ x += r1 + 10;
1102
+ leng.append("circle").attr("cx", x).attr("cy", y).attr("r", r1).attr("stroke", "black").attr("fill", "none");
1103
+ leng.append("text").text(20).attr("x", x).attr("y", y).attr("text-anchor", "middle").attr("dominant-baseline", "middle");
1104
+ x += r1 + r2 + 10;
1105
+ leng.append("circle").attr("cx", x).attr("cy", y).attr("r", r2).attr("stroke", "black").attr("fill", "none");
1106
+ leng.append("text").text(maxtotal).attr("x", x).attr("y", y).attr("text-anchor", "middle").attr("dominant-baseline", "middle");
1107
+ y += r2 + 10;
1108
+ leng.append("text").text("Indel").attr("y", y).attr("dominant-baseline", "middle").each(function() {
1109
+ x = this.getBBox().width;
1110
+ });
1111
+ leng.append("circle").attr("cx", x + 10 + indelboxw / 2).attr("cy", y).attr("r", indelboxw / 2).attr("fill", "black").attr("fill-opacity", 0.3);
1112
+ y += 30;
1113
+ leng.append("text").text("chrX").attr("y", y).attr("dominant-baseline", "middle").each(function() {
1114
+ x = this.getBBox().width;
1115
+ });
1116
+ x += r1 + 10;
1117
+ leng.append("circle").attr("cx", x).attr("cy", y).attr("r", 10).attr("stroke", "black").attr("stroke-dasharray", "5,5").attr("fill", "none");
1118
+ y += 30;
1119
+ leng.append("text").text("D. CNV/LOH").attr("y", y).attr("dominant-baseline", "middle").each(function() {
1120
+ x = this.getBBox().width;
1121
+ });
1122
+ x += r1 + 10;
1123
+ leng.append("circle").attr("cx", x).attr("cy", y).attr("r", 10).attr("stroke", "black").attr("fill", "none");
1124
+ leng.append("circle").attr("cx", x).attr("cy", y + 10).attr("r", r_cnvloh).attr("fill", "black");
1125
+ y += 30;
1126
+ leng.append("text").text("R. CNV/LOH").attr("y", y).attr("dominant-baseline", "central").each(function() {
1127
+ x = this.getBBox().width;
1128
+ });
1129
+ x += r1 + 10;
1130
+ leng.append("circle").attr("cx", x).attr("cy", y).attr("r", 10).attr("stroke", "black").attr("fill", "none");
1131
+ leng.append("circle").attr("cx", x - 10).attr("cy", y).attr("r", r_cnvloh).attr("fill", "black");
1132
+ y += 30;
1133
+ if (pdata.purity1 != void 0 || pdata.purity2 != void 0) {
1134
+ leng.append("text").text("Expected MAF").attr("y", y).attr("dominant-baseline", "middle").each(function() {
1135
+ x = this.getBBox().width;
1136
+ });
1137
+ x += 10;
1138
+ leng.append("rect").attr("fill", emaflinecolor).attr("x", x).attr("y", y).attr("width", 40).attr("height", 3);
1139
+ y += 30;
1140
+ }
1141
+ const renderedsymbols = Object.keys(bysymbol);
1142
+ if (renderedsymbols.length) {
1143
+ leng.append("text").text("Symbols").attr("y", y).attr("dominant-baseline", "middle").each(function() {
1144
+ x = this.getBBox().width;
1145
+ });
1146
+ let x1;
1147
+ for (const symbolname in bysymbol) {
1148
+ const s = bysymbol[symbolname];
1149
+ const g3 = leng.append("g").on("click", () => {
1150
+ s.hidden = !s.hidden;
1151
+ svg.selectAll(".twodmaf-" + symbolname).style("display", s.hidden ? "none" : "");
1152
+ label.style("text-decoration", s.hidden ? "line-through" : "");
1153
+ });
1154
+ x1 = x + 20;
1155
+ g3.append("path").attr("transform", "translate(" + x1 + "," + y + ")").attr("d", symbolgen.type(symbols[symbolname]).size(100)()).attr("stroke", "black").attr("fill", "none").each(function() {
1156
+ x1 += this.getBBox().width;
1157
+ });
1158
+ const label = g3.append("text").text(s.label ? s.label + " (" + s.numlines + ")" : "").attr("y", y + 2).attr("x", x1).attr("dominant-baseline", "middle").style("text-decoration", s.hidden ? "line-through" : "");
1159
+ y += 30;
1160
+ }
1161
+ y += 30;
1162
+ }
1163
+ const g2m = {}, g1 = {}, g2 = {}, gs = {};
1164
+ for (const m of mlst) {
1165
+ if (!m.gene)
1166
+ continue;
1167
+ if (!(m.gene in g2m)) {
1168
+ g2m[m.gene] = [];
1169
+ }
1170
+ g2m[m.gene].push(m);
1171
+ if (m.set_1) {
1172
+ g1[m.gene] = 1;
1173
+ } else if (m.set_2) {
1174
+ g2[m.gene] = 1;
1175
+ } else if (m.set_share) {
1176
+ gs[m.gene] = 1;
1177
+ }
1178
+ }
1179
+ const genelst = [];
1180
+ for (const n in g1) {
1181
+ genelst.push(n);
1182
+ }
1183
+ for (const n in g2) {
1184
+ if (!(n in g1)) {
1185
+ genelst.push(n);
1186
+ }
1187
+ }
1188
+ for (const n in gs) {
1189
+ if (!(n in g1) && !(n in g2)) {
1190
+ genelst.push(n);
1191
+ }
1192
+ }
1193
+ const table = tdgenetable.append("div").style("height", shareheight + sample1height + "px").style("margin", "10px").style("padding", "10px").style("border", "solid 1px #ccc").style("overflow-y", "scroll").style("resize", "both").append("table");
1194
+ {
1195
+ const tr2 = table.append("tr");
1196
+ tr2.append("td").text("Gene");
1197
+ tr2.append("td").text(pdata.setname[1] + " only");
1198
+ tr2.append("td").text(pdata.setname[2] + " only");
1199
+ tr2.append("td").text("Shared");
1200
+ }
1201
+ let bg = true;
1202
+ for (const name of genelst) {
1203
+ const tr2 = table.append("tr");
1204
+ if (bg) {
1205
+ tr2.style("background-color", "#f3f3f3");
1206
+ }
1207
+ bg = !bg;
1208
+ tr2.append("td").text(name);
1209
+ let mlst2 = [];
1210
+ if (name in g2m) {
1211
+ mlst2 = g2m[name];
1212
+ }
1213
+ const s1 = [], s2 = [], ss = [];
1214
+ for (const m of mlst2) {
1215
+ if (m.set_share)
1216
+ ss.push(m);
1217
+ else if (m.set_1)
1218
+ s1.push(m);
1219
+ else if (m.set_2)
1220
+ s2.push(m);
1221
+ }
1222
+ let td = tr2.append("td");
1223
+ if (s1.length) {
1224
+ for (const m of s1) {
1225
+ const div = td.append("div").attr("class", "sja_clbtext").style("color", m.style.fillhl).text(m.mname || "").on("click", (event) => {
1226
+ click(event.target, m, select_set1);
1227
+ });
1228
+ if (m.labelIsVisible) {
1229
+ click(div.node(), m, select_set1);
1230
+ }
1231
+ }
1232
+ }
1233
+ td = tr2.append("td");
1234
+ if (s2.length) {
1235
+ for (const m of s2) {
1236
+ const div = td.append("div").attr("class", "sja_clbtext").style("color", m.style.fillhl).text(m.mname || "").on("click", (event) => {
1237
+ click(event.target, m, select_set2);
1238
+ });
1239
+ if (m.labelIsVisible) {
1240
+ click(div.node(), m, select_set1);
1241
+ }
1242
+ }
1243
+ }
1244
+ td = tr2.append("td");
1245
+ if (ss.length) {
1246
+ for (const m of ss) {
1247
+ const div = td.append("div").attr("class", "sja_clbtext").style("color", m.style.fillhl).text(m.mname || "").on("click", (event) => {
1248
+ click(event.target, m, select_share);
1249
+ });
1250
+ if (m.labelIsVisible) {
1251
+ click(div.node(), m, select_set1);
1252
+ }
1253
+ }
1254
+ }
1255
+ }
1256
+ function click(butt, m, select) {
1257
+ if (m.selected) {
1258
+ butt.style.border = "";
1259
+ m.selected = false;
1260
+ } else {
1261
+ butt.style.border = "solid 1px black";
1262
+ m.selected = true;
1263
+ }
1264
+ const found = select.filter((d) => {
1265
+ return d.gene == m.gene && d.class == m.class && d.mname == m.mname;
1266
+ });
1267
+ found.selectAll("rect").attr("fill-opacity", m.selected ? 0.5 : m.style.fillopacity).attr("fill", m.selected ? m.style.fillhl : m.style.fill);
1268
+ found.selectAll("circle,ellipse,line").attr("stroke-opacity", m.selected ? 1 : m.style.strokeopacity).attr("stroke", m.selected ? m.style.strokehl : m.style.stroke).attr("stroke-width", m.selected ? 2 : 1);
1269
+ if (m.selected) {
1270
+ let x2 = Math.max(20, m.radius), y2 = 0;
1271
+ if ((m.set_1 || m.set_share) && m.maf1 >= 0.8) {
1272
+ x2 = -m.radius;
1273
+ y2 = m.radius * 2;
1274
+ }
1275
+ const g3 = found.append("g").attr("class", "sja_2dmaf_mlabel").attr("transform", "translate(" + x2 + "," + y2 + ")");
1276
+ let w;
1277
+ g3.append("text").text(m.labelAs ? m.labelAs : m.gene + " " + m.mname).attr("fill", m.style.fillhl).attr("dominant-baseline", "middle").attr("text-anchor", "start").attr("font-size", m.radius).each(function() {
1278
+ w = this.getBBox().width;
1279
+ });
1280
+ g3.append("rect").attr("y", -m.radius / 2).attr("width", w).attr("height", m.radius).attr("fill", "black").attr("fill-opacity", 0).on("mouseover", (event) => select_default(event.target).attr("fill-opacity", 0.2)).on("mouseout", (event) => select_default(event.target).attr("fill-opacity", 0)).on("mousedown", (event) => {
1281
+ const x0 = x2, y0 = y2, mx = event.clientX, my = event.clientY, body = select_default(document.body);
1282
+ body.on("mousemove", (event2) => {
1283
+ event2.preventDefault();
1284
+ x2 = x0 + event2.clientX - mx;
1285
+ y2 = y0 + event2.clientY - my;
1286
+ g3.attr("transform", "translate(" + x2 + "," + y2 + ")");
1287
+ });
1288
+ body.on("mouseup", () => {
1289
+ body.on("mousemove", null).on("mouseup", null);
1290
+ });
1291
+ });
1292
+ } else {
1293
+ found.select(".sja_2dmaf_mlabel").remove();
1294
+ }
1295
+ }
1296
+ return outtable;
1297
+ }
1298
+ function d2maf_dotmover(event, m, tooltip) {
1299
+ if (!m.selected) {
1300
+ select_default(event.target).attr("fill", m.style.fillhl).attr("fill-opacity", 0.2);
1301
+ }
1302
+ tooltip.clear();
1303
+ tooltip.show(event.clientX, event.clientY);
1304
+ tooltip.d.append("div").html(
1305
+ (m.gene || "no gene") + ' <span style="color:' + m.style.fillhl + '">' + (m.mname || "") + "</span>" + (m.class ? ' <span style="font-size:70%">' + mclass[m.class].label + "</span>" : "")
1306
+ );
1307
+ }
1308
+ function d2maf_dotmout(event, m, tooltip) {
1309
+ if (!m.selected) {
1310
+ select_default(event.ele).attr("fill", m.style.fill).attr("fill-opacity", m.style.fillopacity).attr("stroke", m.style.stroke);
1311
+ }
1312
+ tooltip.hide();
1313
+ }
1314
+ function d2maf_minfo(event, header, m) {
1315
+ const pane = newpane({ x: event.clientX + 30, y: event.clientY - 30 });
1316
+ pane.header.text((m.gene ? m.gene : "No gene") + " " + (m.mname ? m.mname : ""));
1317
+ var data = [];
1318
+ for (let i = 0; i < header.length; i++) {
1319
+ data.push({ k: header[i], v: m[header[i]] });
1320
+ }
1321
+ make_table_2col(pane.body, data);
1322
+ }
1323
+ function d2maf_click(data, person) {
1324
+ const v = data.pairs[person];
1325
+ if (v.shown) {
1326
+ v.shown = false;
1327
+ v.holder.remove();
1328
+ if (v.handle) {
1329
+ v.handle.attr("font-weight", "normal");
1330
+ }
1331
+ } else {
1332
+ v.shown = true;
1333
+ if (v.holder) {
1334
+ data.showholder.node().appendChild(v.holder.node());
1335
+ } else {
1336
+ v.holder = d2maf_render(data.showholder, v);
1337
+ }
1338
+ if (v.handle) {
1339
+ v.handle.attr("font-weight", "bold");
1340
+ }
1341
+ }
1342
+ }
1343
+ function d2maf_peopletable(data, holder) {
1344
+ const plst = [];
1345
+ for (const n in data.pairs) {
1346
+ plst.push([n, data.pairs[n].mlst.length]);
1347
+ }
1348
+ holder.selectAll("*").remove();
1349
+ const searchrow = holder.append("div").style("margin-bottom", "5px");
1350
+ searchrow.append("span").text(plst.length + " individual" + (plst.length > 1 ? "s" : ""));
1351
+ const svg = holder.append("svg");
1352
+ const space = 5, axish = 20, rowh = data.rowh;
1353
+ let maxlabelw = 0;
1354
+ for (const s of plst) {
1355
+ svg.append("text").text(s[0]).attr("font-size", rowh).attr("font-family", font).each(function() {
1356
+ maxlabelw = Math.max(maxlabelw, this.getBBox().width);
1357
+ }).remove();
1358
+ }
1359
+ svg.attr("width", maxlabelw + space + data.peoplewidth + 30).attr("height", axish + space + rowh * plst.length);
1360
+ plst.sort((a, b) => b[1] - a[1]);
1361
+ let maxmcount = 0;
1362
+ for (const k in data.pairs) {
1363
+ maxmcount = Math.max(maxmcount, data.pairs[k].mlst.length);
1364
+ }
1365
+ const ag = svg.append("g").attr("transform", "translate(" + (maxlabelw + space) + "," + axish + ")").call(
1366
+ axisTop().scale(linear().domain([0, maxmcount]).range([0, data.peoplewidth])).tickFormat(format("d")).ticks(3)
1367
+ );
1368
+ axisstyle({
1369
+ axis: ag,
1370
+ showline: true,
1371
+ color: "black"
1372
+ });
1373
+ const wsf = data.peoplewidth / maxmcount;
1374
+ let y = axish + space;
1375
+ for (const s of plst) {
1376
+ const person = s[0];
1377
+ data.pairs[person].handle = svg.append("text").text(person).attr("class", "sja_svgtext2").attr("font-size", rowh - 2).attr("font-family", font).attr("x", maxlabelw).attr("y", y + space + rowh / 2).attr("text-anchor", "end").on("click", () => {
1378
+ d2maf_click(data, person);
1379
+ });
1380
+ let m1 = 0, m2 = 0, ms = 0;
1381
+ for (const m of data.pairs[person].mlst) {
1382
+ if (m.set_1)
1383
+ m1++;
1384
+ else if (m.set_2)
1385
+ m2++;
1386
+ else if (m.set_share)
1387
+ ms++;
1388
+ }
1389
+ const g = svg.append("g").attr("transform", "translate(" + (maxlabelw + space) + "," + y + ")");
1390
+ if (m1 > 0) {
1391
+ g.append("rect").attr("width", wsf * m1).attr("height", rowh - 1).attr("fill", data.color1);
1392
+ }
1393
+ if (ms > 0) {
1394
+ g.append("rect").attr("x", wsf * m1).attr("width", wsf * ms).attr("height", rowh - 1).attr("fill", data.colorshare);
1395
+ }
1396
+ if (m2 > 0) {
1397
+ g.append("rect").attr("x", wsf * (m1 + ms)).attr("width", wsf * m2).attr("height", rowh - 1).attr("fill", data.color2);
1398
+ }
1399
+ y += rowh;
1400
+ }
1401
+ }
1402
+ export {
1403
+ d2mafparseinput,
1404
+ d2mafui
1405
+ };
1406
+ //# sourceMappingURL=2dmaf-GVN2X7BX.js.map