jbrowse-plugin-msaview 2.0.4 → 2.0.6
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/dist/AddHighlightModel/GenomeMouseoverHighlight.d.ts +1 -1
- package/dist/AddHighlightModel/GenomeMouseoverHighlight.js +1 -1
- package/dist/AddHighlightModel/GenomeMouseoverHighlight.js.map +1 -1
- package/dist/AddHighlightModel/HighlightComponents.d.ts +1 -1
- package/dist/AddHighlightModel/HighlightComponents.js +1 -2
- package/dist/AddHighlightModel/HighlightComponents.js.map +1 -1
- package/dist/AddHighlightModel/MsaToGenomeHighlight.d.ts +1 -1
- package/dist/AddHighlightModel/MsaToGenomeHighlight.js +1 -1
- package/dist/AddHighlightModel/MsaToGenomeHighlight.js.map +1 -1
- package/dist/AddHighlightModel/index.js +0 -1
- package/dist/AddHighlightModel/index.js.map +1 -1
- package/dist/AddHighlightModel/util.d.ts +2 -2
- package/dist/LaunchMsaView/components/LaunchMsaViewDialog.js +1 -2
- package/dist/LaunchMsaView/components/LaunchMsaViewDialog.js.map +1 -1
- package/dist/LaunchMsaView/components/NewNCBIBlastQuery/NcbiBlastPanel.js +11 -10
- package/dist/LaunchMsaView/components/NewNCBIBlastQuery/NcbiBlastPanel.js.map +1 -1
- package/dist/LaunchMsaView/components/NewNCBIBlastQuery/ncbiBlastLaunchView.d.ts +2 -2
- package/dist/LaunchMsaView/components/NewNCBIBlastQuery/useFeatureSequence.js +1 -1
- package/dist/LaunchMsaView/components/NewNCBIBlastQuery/useFeatureSequence.js.map +1 -1
- package/dist/LaunchMsaView/components/PreLoadedMSA/PreLoadedMSADataPanel.js +3 -4
- package/dist/LaunchMsaView/components/PreLoadedMSA/PreLoadedMSADataPanel.js.map +1 -1
- package/dist/LaunchMsaView/components/PreLoadedMSA/preCalculatedLaunchView.d.ts +1 -1
- package/dist/LaunchMsaView/components/PreLoadedMSA/preCalculatedLaunchView.js.map +1 -1
- package/dist/LaunchMsaView/components/TabUtils.js.map +1 -1
- package/dist/LaunchMsaView/index.js +1 -3
- package/dist/LaunchMsaView/index.js.map +1 -1
- package/dist/LaunchMsaView/util.js +2 -2
- package/dist/MsaViewPanel/components/LoadingBLAST.js +1 -2
- package/dist/MsaViewPanel/components/LoadingBLAST.js.map +1 -1
- package/dist/MsaViewPanel/components/MsaViewPanel.js.map +1 -1
- package/dist/MsaViewPanel/components/RIDLink.js +0 -1
- package/dist/MsaViewPanel/components/RIDLink.js.map +1 -1
- package/dist/MsaViewPanel/doLaunchBlast.js +1 -1
- package/dist/MsaViewPanel/doLaunchBlast.js.map +1 -1
- package/dist/MsaViewPanel/genomeToMSA.js.map +1 -1
- package/dist/MsaViewPanel/index.js +0 -1
- package/dist/MsaViewPanel/index.js.map +1 -1
- package/dist/MsaViewPanel/model.d.ts +34 -30
- package/dist/MsaViewPanel/model.js +13 -5
- package/dist/MsaViewPanel/model.js.map +1 -1
- package/dist/MsaViewPanel/msaCoordToGenomeCoord.js.map +1 -1
- package/dist/OpenInNewIcon.d.ts +1 -1
- package/dist/OpenInNewIcon.js.map +1 -1
- package/dist/TextField2.d.ts +1 -1
- package/dist/TextField2.js.map +1 -1
- package/dist/config.json +8 -0
- package/dist/index.js +2 -4
- package/dist/index.js.map +1 -1
- package/dist/jbrowse-plugin-msaview.umd.production.min.js +84 -30
- package/dist/jbrowse-plugin-msaview.umd.production.min.js.map +4 -4
- package/package.json +20 -18
- package/src/AddHighlightModel/GenomeMouseoverHighlight.tsx +5 -2
- package/src/AddHighlightModel/HighlightComponents.tsx +4 -3
- package/src/AddHighlightModel/MsaToGenomeHighlight.tsx +5 -5
- package/src/AddHighlightModel/index.tsx +3 -2
- package/src/LaunchMsaView/components/LaunchMsaViewDialog.tsx +3 -4
- package/src/LaunchMsaView/components/NewNCBIBlastQuery/NcbiBlastPanel.tsx +18 -15
- package/src/LaunchMsaView/components/NewNCBIBlastQuery/ncbiBlastLaunchView.ts +3 -3
- package/src/LaunchMsaView/components/NewNCBIBlastQuery/useFeatureSequence.ts +1 -1
- package/src/LaunchMsaView/components/PreLoadedMSA/PreLoadedMSADataPanel.tsx +14 -13
- package/src/LaunchMsaView/components/PreLoadedMSA/preCalculatedLaunchView.ts +2 -1
- package/src/LaunchMsaView/components/TabUtils.tsx +1 -0
- package/src/LaunchMsaView/index.ts +5 -7
- package/src/LaunchMsaView/util.ts +2 -2
- package/src/MsaViewPanel/components/LoadingBLAST.tsx +3 -3
- package/src/MsaViewPanel/components/MsaViewPanel.tsx +1 -1
- package/src/MsaViewPanel/components/RIDLink.tsx +2 -1
- package/src/MsaViewPanel/doLaunchBlast.ts +3 -3
- package/src/MsaViewPanel/genomeToMSA.ts +2 -1
- package/src/MsaViewPanel/index.ts +1 -1
- package/src/MsaViewPanel/model.ts +17 -6
- package/src/MsaViewPanel/msaCoordToGenomeCoord.ts +0 -1
- package/src/OpenInNewIcon.tsx +4 -1
- package/src/TextField2.tsx +4 -1
- package/src/index.ts +2 -5
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "2.0.
|
|
2
|
+
"version": "2.0.6",
|
|
3
3
|
"license": "MIT",
|
|
4
4
|
"name": "jbrowse-plugin-msaview",
|
|
5
5
|
"keywords": [
|
|
@@ -24,9 +24,9 @@
|
|
|
24
24
|
},
|
|
25
25
|
"scripts": {
|
|
26
26
|
"clean": "rimraf dist",
|
|
27
|
-
"start": "node esbuild.mjs",
|
|
27
|
+
"start": "node esbuild-watch.mjs",
|
|
28
28
|
"format": "prettier --write .",
|
|
29
|
-
"build": "tsc && NODE_ENV=production node esbuild.mjs",
|
|
29
|
+
"build": "tsc && NODE_ENV=production node esbuild.mjs && cp distconfig.json dist/config.json",
|
|
30
30
|
"prebuild": "npm run clean",
|
|
31
31
|
"lint": "eslint --report-unused-disable-directives --max-warnings 0",
|
|
32
32
|
"prepack": "npm run build",
|
|
@@ -36,37 +36,39 @@
|
|
|
36
36
|
"name": "MsaView"
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
|
+
"@emotion/styled": "^11.14.0",
|
|
39
40
|
"g2p_mapper": "^1.0.4",
|
|
40
41
|
"pako": "^2.1.0",
|
|
41
|
-
"react-msaview": "^
|
|
42
|
+
"react-msaview": "^4.0.0"
|
|
42
43
|
},
|
|
43
44
|
"devDependencies": {
|
|
44
45
|
"@emotion/react": "^11.10.4",
|
|
45
46
|
"@fal-works/esbuild-plugin-global-externals": "^2.1.2",
|
|
46
|
-
"@jbrowse/core": "^
|
|
47
|
-
"@jbrowse/plugin-linear-genome-view": "^
|
|
48
|
-
"@mui/icons-material": "^
|
|
49
|
-
"@mui/material": "^
|
|
50
|
-
"@mui/system": "^
|
|
51
|
-
"@mui/x-data-grid": "^
|
|
52
|
-
"@types/node": "^
|
|
47
|
+
"@jbrowse/core": "^3.0.1",
|
|
48
|
+
"@jbrowse/plugin-linear-genome-view": "^3.0.1",
|
|
49
|
+
"@mui/icons-material": "^7.1.0",
|
|
50
|
+
"@mui/material": "^7.1.0",
|
|
51
|
+
"@mui/system": "^7.1.0",
|
|
52
|
+
"@mui/x-data-grid": "^8.2.0",
|
|
53
|
+
"@types/node": "^22.10.7",
|
|
53
54
|
"@types/pako": "^2.0.1",
|
|
54
|
-
"@types/react": "^
|
|
55
|
+
"@types/react": "^19.0.7",
|
|
55
56
|
"@typescript-eslint/eslint-plugin": "^8.0.1",
|
|
56
57
|
"@typescript-eslint/parser": "^8.0.1",
|
|
57
|
-
"esbuild": "^0.
|
|
58
|
+
"esbuild": "^0.25.4",
|
|
58
59
|
"eslint": "^9.0.0",
|
|
60
|
+
"eslint-plugin-import": "^2.31.0",
|
|
59
61
|
"eslint-plugin-react": "^7.20.3",
|
|
60
|
-
"eslint-plugin-react-hooks": "
|
|
62
|
+
"eslint-plugin-react-hooks": "^5.0.0",
|
|
61
63
|
"eslint-plugin-react-refresh": "^0.4.9",
|
|
62
|
-
"eslint-plugin-unicorn": "^
|
|
64
|
+
"eslint-plugin-unicorn": "^59.0.1",
|
|
63
65
|
"mobx": "^6.10.2",
|
|
64
66
|
"mobx-react": "^9.0.1",
|
|
65
67
|
"mobx-state-tree": "^5.3.0",
|
|
66
68
|
"prettier": "^3.0.3",
|
|
67
|
-
"pretty-bytes": "^
|
|
68
|
-
"react": "^
|
|
69
|
-
"react-dom": "^
|
|
69
|
+
"pretty-bytes": "^7.0.0",
|
|
70
|
+
"react": "^19.0.0",
|
|
71
|
+
"react-dom": "^19.0.0",
|
|
70
72
|
"rimraf": "^6.0.0",
|
|
71
73
|
"rxjs": "^7.8.1",
|
|
72
74
|
"tss-react": "^4.9.2",
|
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
import React from 'react'
|
|
2
|
-
|
|
3
|
-
import { LinearGenomeViewModel } from '@jbrowse/plugin-linear-genome-view'
|
|
2
|
+
|
|
4
3
|
import { getSession } from '@jbrowse/core/util'
|
|
4
|
+
import { observer } from 'mobx-react'
|
|
5
|
+
|
|
5
6
|
import { useStyles } from './util'
|
|
6
7
|
|
|
8
|
+
import type { LinearGenomeViewModel } from '@jbrowse/plugin-linear-genome-view'
|
|
9
|
+
|
|
7
10
|
const GenomeMouseoverHighlight = observer(function GenomeMouseoverHighlight2({
|
|
8
11
|
model,
|
|
9
12
|
}: {
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import React from 'react'
|
|
2
|
+
|
|
2
3
|
import { observer } from 'mobx-react'
|
|
3
|
-
import { LinearGenomeViewModel } from '@jbrowse/plugin-linear-genome-view'
|
|
4
4
|
|
|
5
|
-
// locals
|
|
6
|
-
import MsaToGenomeHighlight from './MsaToGenomeHighlight'
|
|
7
5
|
import GenomeMouseoverHighlight from './GenomeMouseoverHighlight'
|
|
6
|
+
import MsaToGenomeHighlight from './MsaToGenomeHighlight'
|
|
7
|
+
|
|
8
|
+
import type { LinearGenomeViewModel } from '@jbrowse/plugin-linear-genome-view'
|
|
8
9
|
|
|
9
10
|
type LGV = LinearGenomeViewModel
|
|
10
11
|
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import React from 'react'
|
|
2
|
-
import { observer } from 'mobx-react'
|
|
3
|
-
import { getSession } from '@jbrowse/core/util'
|
|
4
2
|
|
|
5
|
-
import { LinearGenomeViewModel } from '@jbrowse/plugin-linear-genome-view'
|
|
6
3
|
import { Assembly } from '@jbrowse/core/assemblyManager/assembly'
|
|
4
|
+
import { getSession } from '@jbrowse/core/util'
|
|
5
|
+
import { observer } from 'mobx-react'
|
|
7
6
|
|
|
8
|
-
// locals
|
|
9
|
-
import { JBrowsePluginMsaViewModel } from '../MsaViewPanel/model'
|
|
10
7
|
import { useStyles } from './util'
|
|
8
|
+
import { JBrowsePluginMsaViewModel } from '../MsaViewPanel/model'
|
|
9
|
+
|
|
10
|
+
import type { LinearGenomeViewModel } from '@jbrowse/plugin-linear-genome-view'
|
|
11
11
|
|
|
12
12
|
type LGV = LinearGenomeViewModel
|
|
13
13
|
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import React from 'react'
|
|
2
|
+
|
|
2
3
|
import PluginManager from '@jbrowse/core/PluginManager'
|
|
3
|
-
import { LinearGenomeViewModel } from '@jbrowse/plugin-linear-genome-view'
|
|
4
4
|
|
|
5
|
-
// locals
|
|
6
5
|
import HighlightComponents from './HighlightComponents'
|
|
7
6
|
|
|
7
|
+
import type { LinearGenomeViewModel } from '@jbrowse/plugin-linear-genome-view'
|
|
8
|
+
|
|
8
9
|
export default function AddHighlightComponentsModelF(
|
|
9
10
|
pluginManager: PluginManager,
|
|
10
11
|
) {
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
import React, { useState } from 'react'
|
|
2
|
+
|
|
2
3
|
import { Dialog } from '@jbrowse/core/ui'
|
|
3
|
-
import { Box, Tab, Tabs } from '@mui/material'
|
|
4
4
|
import { AbstractTrackModel, Feature } from '@jbrowse/core/util'
|
|
5
|
+
import { Box, Tab, Tabs } from '@mui/material'
|
|
5
6
|
|
|
6
|
-
// locals
|
|
7
|
-
|
|
8
|
-
import CustomTabPanel from './TabUtils'
|
|
9
7
|
import NewNcbiBlastQueryPanel from './NewNCBIBlastQuery'
|
|
10
8
|
import PreLoadedMSA from './PreLoadedMSA/PreLoadedMSADataPanel'
|
|
9
|
+
import CustomTabPanel from './TabUtils'
|
|
11
10
|
import { a11yProps } from './tabUtil'
|
|
12
11
|
|
|
13
12
|
export default function LaunchProteinViewDialog({
|
|
@@ -1,26 +1,27 @@
|
|
|
1
1
|
import React, { useState } from 'react'
|
|
2
|
-
|
|
3
|
-
import {
|
|
4
|
-
import { makeStyles } from 'tss-react/mui'
|
|
2
|
+
|
|
3
|
+
import { ErrorMessage } from '@jbrowse/core/ui'
|
|
5
4
|
import {
|
|
6
5
|
AbstractTrackModel,
|
|
7
6
|
Feature,
|
|
8
7
|
getContainingView,
|
|
9
8
|
} from '@jbrowse/core/util'
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
9
|
+
import { Button, DialogActions, DialogContent, MenuItem } from '@mui/material'
|
|
10
|
+
import { observer } from 'mobx-react'
|
|
11
|
+
import { makeStyles } from 'tss-react/mui'
|
|
12
12
|
|
|
13
|
-
|
|
13
|
+
import { getProteinSequence } from './calculateProteinSequence'
|
|
14
|
+
import { ncbiBlastLaunchView } from './ncbiBlastLaunchView'
|
|
15
|
+
import { useFeatureSequence } from './useFeatureSequence'
|
|
16
|
+
import TextField2 from '../../../TextField2'
|
|
14
17
|
import {
|
|
18
|
+
getGeneDisplayName,
|
|
15
19
|
getId,
|
|
16
20
|
getTranscriptDisplayName,
|
|
17
21
|
getTranscriptFeatures,
|
|
18
|
-
getGeneDisplayName,
|
|
19
22
|
} from '../../util'
|
|
20
|
-
|
|
21
|
-
import {
|
|
22
|
-
import TextField2 from '../../../TextField2'
|
|
23
|
-
import { ncbiBlastLaunchView } from './ncbiBlastLaunchView'
|
|
23
|
+
|
|
24
|
+
import type { LinearGenomeViewModel } from '@jbrowse/plugin-linear-genome-view'
|
|
24
25
|
|
|
25
26
|
const useStyles = makeStyles()({
|
|
26
27
|
dialogContent: {
|
|
@@ -120,10 +121,12 @@ const NcbiBlastPanel = observer(function NcbiBlastPanel2({
|
|
|
120
121
|
? `>${getTranscriptDisplayName(selectedTranscript)}\n${proteinSequence}`
|
|
121
122
|
: 'Loading...'
|
|
122
123
|
}
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
124
|
+
slotProps={{
|
|
125
|
+
input: {
|
|
126
|
+
readOnly: true,
|
|
127
|
+
classes: {
|
|
128
|
+
input: classes.textAreaFont,
|
|
129
|
+
},
|
|
127
130
|
},
|
|
128
131
|
}}
|
|
129
132
|
/>
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Feature, getSession } from '@jbrowse/core/util'
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
import {
|
|
2
|
+
|
|
3
|
+
import type { JBrowsePluginMsaViewModel } from '../../../MsaViewPanel/model'
|
|
4
|
+
import type { LinearGenomeViewModel } from '@jbrowse/plugin-linear-genome-view'
|
|
5
5
|
|
|
6
6
|
export function ncbiBlastLaunchView({
|
|
7
7
|
newViewTitle,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { useEffect, useState } from 'react'
|
|
2
2
|
|
|
3
|
-
import { AbstractSessionModel, Feature, getSession } from '@jbrowse/core/util'
|
|
4
3
|
import { getConf } from '@jbrowse/core/configuration'
|
|
4
|
+
import { AbstractSessionModel, Feature, getSession } from '@jbrowse/core/util'
|
|
5
5
|
|
|
6
6
|
export interface SeqState {
|
|
7
7
|
seq: string
|
|
@@ -1,6 +1,12 @@
|
|
|
1
1
|
import React, { useEffect, useState } from 'react'
|
|
2
|
-
|
|
2
|
+
|
|
3
3
|
import { ErrorMessage } from '@jbrowse/core/ui'
|
|
4
|
+
import {
|
|
5
|
+
AbstractTrackModel,
|
|
6
|
+
Feature,
|
|
7
|
+
getContainingView,
|
|
8
|
+
getSession,
|
|
9
|
+
} from '@jbrowse/core/util'
|
|
4
10
|
import {
|
|
5
11
|
Button,
|
|
6
12
|
DialogActions,
|
|
@@ -9,24 +15,19 @@ import {
|
|
|
9
15
|
TextField,
|
|
10
16
|
Typography,
|
|
11
17
|
} from '@mui/material'
|
|
12
|
-
import {
|
|
13
|
-
AbstractTrackModel,
|
|
14
|
-
Feature,
|
|
15
|
-
getContainingView,
|
|
16
|
-
getSession,
|
|
17
|
-
} from '@jbrowse/core/util'
|
|
18
|
+
import { observer } from 'mobx-react'
|
|
18
19
|
import { makeStyles } from 'tss-react/mui'
|
|
19
|
-
import { LinearGenomeViewModel } from '@jbrowse/plugin-linear-genome-view'
|
|
20
20
|
|
|
21
|
-
|
|
21
|
+
import { fetchGeneList } from './fetchGeneList'
|
|
22
|
+
import { preCalculatedLaunchView } from './preCalculatedLaunchView'
|
|
22
23
|
import {
|
|
23
|
-
|
|
24
|
+
getGeneDisplayName,
|
|
24
25
|
getId,
|
|
26
|
+
getTranscriptDisplayName,
|
|
25
27
|
getTranscriptFeatures,
|
|
26
|
-
getGeneDisplayName,
|
|
27
28
|
} from '../../util'
|
|
28
|
-
|
|
29
|
-
import {
|
|
29
|
+
|
|
30
|
+
import type { LinearGenomeViewModel } from '@jbrowse/plugin-linear-genome-view'
|
|
30
31
|
|
|
31
32
|
const useStyles = makeStyles()({
|
|
32
33
|
dialogContent: {
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { AbstractSessionModel, Feature } from '@jbrowse/core/util'
|
|
2
|
-
import { LinearGenomeViewModel } from '@jbrowse/plugin-linear-genome-view'
|
|
3
2
|
import { ungzip } from 'pako'
|
|
4
3
|
|
|
4
|
+
import type { LinearGenomeViewModel } from '@jbrowse/plugin-linear-genome-view'
|
|
5
|
+
|
|
5
6
|
async function myfetch(url: string) {
|
|
6
7
|
const res = await fetch(url)
|
|
7
8
|
if (!res.ok) {
|
|
@@ -1,15 +1,13 @@
|
|
|
1
1
|
import PluginManager from '@jbrowse/core/PluginManager'
|
|
2
|
-
import DisplayType from '@jbrowse/core/pluggableElementTypes/DisplayType'
|
|
3
2
|
import { PluggableElementType } from '@jbrowse/core/pluggableElementTypes'
|
|
4
|
-
import
|
|
5
|
-
import {
|
|
6
|
-
|
|
7
|
-
// icons
|
|
3
|
+
import DisplayType from '@jbrowse/core/pluggableElementTypes/DisplayType'
|
|
4
|
+
import { MenuItem } from '@jbrowse/core/ui'
|
|
5
|
+
import { Feature, getContainingTrack, getSession } from '@jbrowse/core/util'
|
|
8
6
|
import AddIcon from '@mui/icons-material/Add'
|
|
9
7
|
|
|
10
|
-
// locals
|
|
11
8
|
import LaunchMsaViewDialog from './components/LaunchMsaViewDialog'
|
|
12
|
-
|
|
9
|
+
|
|
10
|
+
import type { IAnyModelType } from 'mobx-state-tree'
|
|
13
11
|
|
|
14
12
|
function isDisplay(elt: { name: string }): elt is DisplayType {
|
|
15
13
|
return elt.name === 'LinearBasicDisplay'
|
|
@@ -12,7 +12,7 @@ export function getTranscriptFeatures(feature: Feature) {
|
|
|
12
12
|
)
|
|
13
13
|
}
|
|
14
14
|
export function getId(val?: Feature): string {
|
|
15
|
-
return val?.get('name')
|
|
15
|
+
return val?.get('name') ?? val?.get('id') ?? ''
|
|
16
16
|
}
|
|
17
17
|
|
|
18
18
|
export function getTranscriptDisplayName(val?: Feature) {
|
|
@@ -24,7 +24,7 @@ export function getTranscriptDisplayName(val?: Feature) {
|
|
|
24
24
|
export function getGeneDisplayName(val?: Feature) {
|
|
25
25
|
return val === undefined
|
|
26
26
|
? ''
|
|
27
|
-
: [val.get('gene_name')
|
|
27
|
+
: [val.get('gene_name') ?? val.get('name'), val.get('id')]
|
|
28
28
|
.filter(f => !!f)
|
|
29
29
|
.join(' ')
|
|
30
30
|
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import React from 'react'
|
|
2
|
-
|
|
2
|
+
|
|
3
|
+
import { ErrorMessage, LoadingEllipses } from '@jbrowse/core/ui'
|
|
3
4
|
import { Typography } from '@mui/material'
|
|
4
5
|
import { observer } from 'mobx-react'
|
|
5
6
|
import { makeStyles } from 'tss-react/mui'
|
|
6
|
-
import { ErrorMessage, LoadingEllipses } from '@jbrowse/core/ui'
|
|
7
7
|
|
|
8
|
-
|
|
8
|
+
import { JBrowsePluginMsaViewModel } from '../model'
|
|
9
9
|
import RIDLink from './RIDLink'
|
|
10
10
|
|
|
11
11
|
const useStyles = makeStyles()(theme => ({
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { queryBlast } from '../utils/ncbiBlast'
|
|
1
|
+
import { JBrowsePluginMsaViewModel } from './model'
|
|
3
2
|
import {
|
|
4
3
|
makeId,
|
|
5
4
|
strip,
|
|
6
5
|
} from '../LaunchMsaView/components/NewNCBIBlastQuery/util'
|
|
7
|
-
import {
|
|
6
|
+
import { launchMSA } from '../utils/msa'
|
|
7
|
+
import { queryBlast } from '../utils/ncbiBlast'
|
|
8
8
|
|
|
9
9
|
export async function doLaunchBlast({
|
|
10
10
|
self,
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { getSession } from '@jbrowse/core/util'
|
|
2
|
-
|
|
2
|
+
|
|
3
3
|
import { JBrowsePluginMsaViewModel } from './model'
|
|
4
|
+
import { checkHovered } from './util'
|
|
4
5
|
|
|
5
6
|
export function genomeToMSA({ model }: { model: JBrowsePluginMsaViewModel }) {
|
|
6
7
|
const { hovered } = getSession(model)
|
|
@@ -1,15 +1,17 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { BaseViewModel } from '@jbrowse/core/pluggableElementTypes'
|
|
2
|
+
import { getSession } from '@jbrowse/core/util'
|
|
3
|
+
import { genomeToTranscriptSeqMapping } from 'g2p_mapper'
|
|
2
4
|
import { autorun } from 'mobx'
|
|
5
|
+
import { addDisposer, cast, types } from 'mobx-state-tree'
|
|
3
6
|
import { MSAModelF } from 'react-msaview'
|
|
4
|
-
import { Feature, getSession } from '@jbrowse/core/util'
|
|
5
|
-
import { LinearGenomeViewModel } from '@jbrowse/plugin-linear-genome-view'
|
|
6
|
-
import { BaseViewModel } from '@jbrowse/core/pluggableElementTypes'
|
|
7
7
|
|
|
8
|
-
// locals
|
|
9
8
|
import { doLaunchBlast } from './doLaunchBlast'
|
|
10
9
|
import { genomeToMSA } from './genomeToMSA'
|
|
11
10
|
import { msaCoordToGenomeCoord } from './msaCoordToGenomeCoord'
|
|
12
|
-
|
|
11
|
+
|
|
12
|
+
import type { Feature } from '@jbrowse/core/util'
|
|
13
|
+
import type { LinearGenomeViewModel } from '@jbrowse/plugin-linear-genome-view'
|
|
14
|
+
import type { Instance } from 'mobx-state-tree'
|
|
13
15
|
|
|
14
16
|
type LGV = LinearGenomeViewModel
|
|
15
17
|
|
|
@@ -71,8 +73,17 @@ export default function stateModelFactory() {
|
|
|
71
73
|
)
|
|
72
74
|
|
|
73
75
|
.volatile(() => ({
|
|
76
|
+
/**
|
|
77
|
+
* #volatile
|
|
78
|
+
*/
|
|
74
79
|
rid: undefined as string | undefined,
|
|
80
|
+
/**
|
|
81
|
+
* #volatile
|
|
82
|
+
*/
|
|
75
83
|
progress: '',
|
|
84
|
+
/**
|
|
85
|
+
* #volatile
|
|
86
|
+
*/
|
|
76
87
|
error: undefined as unknown,
|
|
77
88
|
}))
|
|
78
89
|
|
package/src/OpenInNewIcon.tsx
CHANGED
package/src/TextField2.tsx
CHANGED
package/src/index.ts
CHANGED
|
@@ -1,15 +1,12 @@
|
|
|
1
1
|
import Plugin from '@jbrowse/core/Plugin'
|
|
2
2
|
import PluginManager from '@jbrowse/core/PluginManager'
|
|
3
3
|
import { AbstractSessionModel, isAbstractMenuManager } from '@jbrowse/core/util'
|
|
4
|
-
|
|
5
|
-
// icons
|
|
6
4
|
import GridOn from '@mui/icons-material/GridOn'
|
|
7
5
|
|
|
8
|
-
// locals
|
|
9
6
|
import { version } from '../package.json'
|
|
10
|
-
import MsaViewF from './MsaViewPanel'
|
|
11
|
-
import LaunchMsaViewF from './LaunchMsaView'
|
|
12
7
|
import AddHighlightModelF from './AddHighlightModel'
|
|
8
|
+
import LaunchMsaViewF from './LaunchMsaView'
|
|
9
|
+
import MsaViewF from './MsaViewPanel'
|
|
13
10
|
|
|
14
11
|
export default class MsaViewPlugin extends Plugin {
|
|
15
12
|
name = 'MsaViewPlugin'
|