@jbrowse/plugin-blat 5.0.0-beta.1 → 5.0.0-beta.3

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.
package/esm/ucscShared.js CHANGED
@@ -1,9 +1,10 @@
1
1
  import { getConf } from '@jbrowse/core/configuration';
2
2
  import { getEnv, isSessionModelWithWidgets, isSessionWithAddSessionTrack, } from '@jbrowse/core/util';
3
+ import { isSameAssemblyName } from '@jbrowse/core/util/tracks';
3
4
  import { assemblyToUcscDb } from './ucscDbMap.js';
4
5
  function isNavigableView(view) {
5
- return ('showTrack' in view &&
6
- typeof view.showTrack === 'function' &&
6
+ return ('launchTrack' in view &&
7
+ typeof view.launchTrack === 'function' &&
7
8
  'navToLocString' in view &&
8
9
  typeof view.navToLocString === 'function');
9
10
  }
@@ -45,7 +46,8 @@ export function featureLocString(feature) {
45
46
  return `${feature.refName}:${feature.start + 1}-${feature.end}`;
46
47
  }
47
48
  function findNavigableView(session, assembly) {
48
- const view = session.views.find(v => v.type === 'LinearGenomeView' && !!v.assemblyNames?.includes(assembly));
49
+ const view = session.views.find(v => v.type === 'LinearGenomeView' &&
50
+ !!v.assemblyNames?.some(n => isSameAssemblyName(n, assembly, session.assemblyManager)));
49
51
  return view && isNavigableView(view) ? view : undefined;
50
52
  }
51
53
  // Navigates an open view to a hit, growing the window so it lands with flanking
@@ -93,7 +95,7 @@ export async function addResultTrack({ session, assembly, features, trackIdPrefi
93
95
  });
94
96
  const view = findNavigableView(session, assembly);
95
97
  if (view) {
96
- view.showTrack(trackId);
98
+ await view.launchTrack(trackId);
97
99
  }
98
100
  else {
99
101
  session.notify(`Added track "${trackId}" but no open view displays ${assembly}`, 'warning');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jbrowse/plugin-blat",
3
- "version": "5.0.0-beta.1",
3
+ "version": "5.0.0-beta.3",
4
4
  "type": "module",
5
5
  "description": "JBrowse 2 UCSC BLAT client",
6
6
  "keywords": [
@@ -25,11 +25,11 @@
25
25
  },
26
26
  "dependencies": {
27
27
  "@jbrowse/mobx-state-tree": "^6.5.1",
28
- "@mui/icons-material": "^9.3.1",
29
- "@mui/material": "^9.3.1",
28
+ "@mui/icons-material": "^9.4.0",
29
+ "@mui/material": "^9.4.0",
30
30
  "mobx": "^7.0.3",
31
31
  "mobx-react": "^10.0.2",
32
- "@jbrowse/core": "^5.0.0-beta.1"
32
+ "@jbrowse/core": "^5.0.0-beta.3"
33
33
  },
34
34
  "peerDependencies": {
35
35
  "react": ">=19.0.0"