@jbrowse/plugin-blat 5.0.0-beta.2 → 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 +3 -1
- package/package.json +2 -2
package/esm/ucscShared.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
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
6
|
return ('launchTrack' in view &&
|
|
@@ -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' &&
|
|
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
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jbrowse/plugin-blat",
|
|
3
|
-
"version": "5.0.0-beta.
|
|
3
|
+
"version": "5.0.0-beta.3",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "JBrowse 2 UCSC BLAT client",
|
|
6
6
|
"keywords": [
|
|
@@ -29,7 +29,7 @@
|
|
|
29
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.
|
|
32
|
+
"@jbrowse/core": "^5.0.0-beta.3"
|
|
33
33
|
},
|
|
34
34
|
"peerDependencies": {
|
|
35
35
|
"react": ">=19.0.0"
|