jbrowse-plugin-msaview 2.0.5 → 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.map +1 -1
- package/dist/AddHighlightModel/HighlightComponents.d.ts +1 -1
- package/dist/AddHighlightModel/HighlightComponents.js +0 -1
- package/dist/AddHighlightModel/HighlightComponents.js.map +1 -1
- package/dist/AddHighlightModel/MsaToGenomeHighlight.d.ts +1 -1
- package/dist/AddHighlightModel/MsaToGenomeHighlight.js +0 -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/LaunchMsaView/components/LaunchMsaViewDialog.js +0 -1
- package/dist/LaunchMsaView/components/LaunchMsaViewDialog.js.map +1 -1
- package/dist/LaunchMsaView/components/NewNCBIBlastQuery/NcbiBlastPanel.js +6 -5
- 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/ncbiBlastLaunchView.js.map +1 -1
- package/dist/LaunchMsaView/components/PreLoadedMSA/PreLoadedMSADataPanel.js +0 -1
- 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/index.js +0 -2
- package/dist/LaunchMsaView/index.js.map +1 -1
- package/dist/LaunchMsaView/util.js +2 -2
- package/dist/MsaViewPanel/components/LoadingBLAST.js +0 -1
- 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/index.js +0 -1
- package/dist/MsaViewPanel/index.js.map +1 -1
- package/dist/MsaViewPanel/model.d.ts +12 -3
- package/dist/MsaViewPanel/model.js +9 -1
- 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 +0 -2
- package/dist/index.js.map +1 -1
- package/dist/jbrowse-plugin-msaview.umd.production.min.js +17 -17
- package/dist/jbrowse-plugin-msaview.umd.production.min.js.map +2 -2
- package/package.json +2 -2
- package/src/AddHighlightModel/GenomeMouseoverHighlight.tsx +2 -1
- package/src/AddHighlightModel/HighlightComponents.tsx +2 -2
- package/src/AddHighlightModel/MsaToGenomeHighlight.tsx +2 -3
- package/src/AddHighlightModel/index.tsx +2 -2
- package/src/LaunchMsaView/components/LaunchMsaViewDialog.tsx +0 -2
- package/src/LaunchMsaView/components/NewNCBIBlastQuery/NcbiBlastPanel.tsx +8 -6
- package/src/LaunchMsaView/components/NewNCBIBlastQuery/ncbiBlastLaunchView.ts +2 -3
- package/src/LaunchMsaView/components/PreLoadedMSA/PreLoadedMSADataPanel.tsx +2 -2
- package/src/LaunchMsaView/components/PreLoadedMSA/preCalculatedLaunchView.ts +2 -1
- package/src/LaunchMsaView/index.ts +1 -4
- package/src/LaunchMsaView/util.ts +2 -2
- package/src/MsaViewPanel/components/LoadingBLAST.tsx +0 -2
- package/src/MsaViewPanel/components/MsaViewPanel.tsx +0 -1
- package/src/MsaViewPanel/components/RIDLink.tsx +0 -1
- package/src/MsaViewPanel/index.ts +0 -1
- package/src/MsaViewPanel/model.ts +14 -4
- package/src/MsaViewPanel/msaCoordToGenomeCoord.ts +0 -1
- package/src/OpenInNewIcon.tsx +3 -1
- package/src/TextField2.tsx +3 -1
- package/src/index.ts +0 -3
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": [
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"clean": "rimraf dist",
|
|
27
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",
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import React from 'react'
|
|
2
2
|
|
|
3
3
|
import { getSession } from '@jbrowse/core/util'
|
|
4
|
-
import { LinearGenomeViewModel } from '@jbrowse/plugin-linear-genome-view'
|
|
5
4
|
import { observer } from 'mobx-react'
|
|
6
5
|
|
|
7
6
|
import { useStyles } from './util'
|
|
8
7
|
|
|
8
|
+
import type { LinearGenomeViewModel } from '@jbrowse/plugin-linear-genome-view'
|
|
9
|
+
|
|
9
10
|
const GenomeMouseoverHighlight = observer(function GenomeMouseoverHighlight2({
|
|
10
11
|
model,
|
|
11
12
|
}: {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import React from 'react'
|
|
2
2
|
|
|
3
|
-
import { LinearGenomeViewModel } from '@jbrowse/plugin-linear-genome-view'
|
|
4
3
|
import { observer } from 'mobx-react'
|
|
5
4
|
|
|
6
|
-
// locals
|
|
7
5
|
import GenomeMouseoverHighlight from './GenomeMouseoverHighlight'
|
|
8
6
|
import MsaToGenomeHighlight from './MsaToGenomeHighlight'
|
|
9
7
|
|
|
8
|
+
import type { LinearGenomeViewModel } from '@jbrowse/plugin-linear-genome-view'
|
|
9
|
+
|
|
10
10
|
type LGV = LinearGenomeViewModel
|
|
11
11
|
|
|
12
12
|
const HighlightComponents = observer(function HighlightComponents2({
|
|
@@ -2,14 +2,13 @@ import React from 'react'
|
|
|
2
2
|
|
|
3
3
|
import { Assembly } from '@jbrowse/core/assemblyManager/assembly'
|
|
4
4
|
import { getSession } from '@jbrowse/core/util'
|
|
5
|
-
import { LinearGenomeViewModel } from '@jbrowse/plugin-linear-genome-view'
|
|
6
5
|
import { observer } from 'mobx-react'
|
|
7
6
|
|
|
8
|
-
|
|
9
|
-
// locals
|
|
10
7
|
import { useStyles } from './util'
|
|
11
8
|
import { JBrowsePluginMsaViewModel } from '../MsaViewPanel/model'
|
|
12
9
|
|
|
10
|
+
import type { LinearGenomeViewModel } from '@jbrowse/plugin-linear-genome-view'
|
|
11
|
+
|
|
13
12
|
type LGV = LinearGenomeViewModel
|
|
14
13
|
|
|
15
14
|
function getCanonicalName(assembly: Assembly, s: string) {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import React from 'react'
|
|
2
2
|
|
|
3
3
|
import PluginManager from '@jbrowse/core/PluginManager'
|
|
4
|
-
import { LinearGenomeViewModel } from '@jbrowse/plugin-linear-genome-view'
|
|
5
4
|
|
|
6
|
-
// locals
|
|
7
5
|
import HighlightComponents from './HighlightComponents'
|
|
8
6
|
|
|
7
|
+
import type { LinearGenomeViewModel } from '@jbrowse/plugin-linear-genome-view'
|
|
8
|
+
|
|
9
9
|
export default function AddHighlightComponentsModelF(
|
|
10
10
|
pluginManager: PluginManager,
|
|
11
11
|
) {
|
|
@@ -4,8 +4,6 @@ import { Dialog } from '@jbrowse/core/ui'
|
|
|
4
4
|
import { AbstractTrackModel, Feature } from '@jbrowse/core/util'
|
|
5
5
|
import { Box, Tab, Tabs } from '@mui/material'
|
|
6
6
|
|
|
7
|
-
// locals
|
|
8
|
-
|
|
9
7
|
import NewNcbiBlastQueryPanel from './NewNCBIBlastQuery'
|
|
10
8
|
import PreLoadedMSA from './PreLoadedMSA/PreLoadedMSADataPanel'
|
|
11
9
|
import CustomTabPanel from './TabUtils'
|
|
@@ -6,12 +6,10 @@ import {
|
|
|
6
6
|
Feature,
|
|
7
7
|
getContainingView,
|
|
8
8
|
} from '@jbrowse/core/util'
|
|
9
|
-
import { LinearGenomeViewModel } from '@jbrowse/plugin-linear-genome-view'
|
|
10
9
|
import { Button, DialogActions, DialogContent, MenuItem } from '@mui/material'
|
|
11
10
|
import { observer } from 'mobx-react'
|
|
12
11
|
import { makeStyles } from 'tss-react/mui'
|
|
13
12
|
|
|
14
|
-
// locals
|
|
15
13
|
import { getProteinSequence } from './calculateProteinSequence'
|
|
16
14
|
import { ncbiBlastLaunchView } from './ncbiBlastLaunchView'
|
|
17
15
|
import { useFeatureSequence } from './useFeatureSequence'
|
|
@@ -23,6 +21,8 @@ import {
|
|
|
23
21
|
getTranscriptFeatures,
|
|
24
22
|
} from '../../util'
|
|
25
23
|
|
|
24
|
+
import type { LinearGenomeViewModel } from '@jbrowse/plugin-linear-genome-view'
|
|
25
|
+
|
|
26
26
|
const useStyles = makeStyles()({
|
|
27
27
|
dialogContent: {
|
|
28
28
|
width: '80em',
|
|
@@ -121,10 +121,12 @@ const NcbiBlastPanel = observer(function NcbiBlastPanel2({
|
|
|
121
121
|
? `>${getTranscriptDisplayName(selectedTranscript)}\n${proteinSequence}`
|
|
122
122
|
: 'Loading...'
|
|
123
123
|
}
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
124
|
+
slotProps={{
|
|
125
|
+
input: {
|
|
126
|
+
readOnly: true,
|
|
127
|
+
classes: {
|
|
128
|
+
input: classes.textAreaFont,
|
|
129
|
+
},
|
|
128
130
|
},
|
|
129
131
|
}}
|
|
130
132
|
/>
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { Feature, getSession } from '@jbrowse/core/util'
|
|
2
|
-
import { LinearGenomeViewModel } from '@jbrowse/plugin-linear-genome-view'
|
|
3
2
|
|
|
4
|
-
|
|
5
|
-
import {
|
|
3
|
+
import type { JBrowsePluginMsaViewModel } from '../../../MsaViewPanel/model'
|
|
4
|
+
import type { LinearGenomeViewModel } from '@jbrowse/plugin-linear-genome-view'
|
|
6
5
|
|
|
7
6
|
export function ncbiBlastLaunchView({
|
|
8
7
|
newViewTitle,
|
|
@@ -7,7 +7,6 @@ import {
|
|
|
7
7
|
getContainingView,
|
|
8
8
|
getSession,
|
|
9
9
|
} from '@jbrowse/core/util'
|
|
10
|
-
import { LinearGenomeViewModel } from '@jbrowse/plugin-linear-genome-view'
|
|
11
10
|
import {
|
|
12
11
|
Button,
|
|
13
12
|
DialogActions,
|
|
@@ -19,7 +18,6 @@ import {
|
|
|
19
18
|
import { observer } from 'mobx-react'
|
|
20
19
|
import { makeStyles } from 'tss-react/mui'
|
|
21
20
|
|
|
22
|
-
// locals
|
|
23
21
|
import { fetchGeneList } from './fetchGeneList'
|
|
24
22
|
import { preCalculatedLaunchView } from './preCalculatedLaunchView'
|
|
25
23
|
import {
|
|
@@ -29,6 +27,8 @@ import {
|
|
|
29
27
|
getTranscriptFeatures,
|
|
30
28
|
} from '../../util'
|
|
31
29
|
|
|
30
|
+
import type { LinearGenomeViewModel } from '@jbrowse/plugin-linear-genome-view'
|
|
31
|
+
|
|
32
32
|
const useStyles = makeStyles()({
|
|
33
33
|
dialogContent: {
|
|
34
34
|
width: '80em',
|
|
@@ -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) {
|
|
@@ -4,13 +4,10 @@ import DisplayType from '@jbrowse/core/pluggableElementTypes/DisplayType'
|
|
|
4
4
|
import { MenuItem } from '@jbrowse/core/ui'
|
|
5
5
|
import { Feature, getContainingTrack, getSession } from '@jbrowse/core/util'
|
|
6
6
|
import AddIcon from '@mui/icons-material/Add'
|
|
7
|
-
import { IAnyModelType } from 'mobx-state-tree'
|
|
8
7
|
|
|
9
|
-
// icons
|
|
10
|
-
|
|
11
|
-
// locals
|
|
12
8
|
import LaunchMsaViewDialog from './components/LaunchMsaViewDialog'
|
|
13
9
|
|
|
10
|
+
import type { IAnyModelType } from 'mobx-state-tree'
|
|
14
11
|
|
|
15
12
|
function isDisplay(elt: { name: string }): elt is DisplayType {
|
|
16
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,16 +1,17 @@
|
|
|
1
1
|
import { BaseViewModel } from '@jbrowse/core/pluggableElementTypes'
|
|
2
|
-
import {
|
|
3
|
-
import { LinearGenomeViewModel } from '@jbrowse/plugin-linear-genome-view'
|
|
2
|
+
import { getSession } from '@jbrowse/core/util'
|
|
4
3
|
import { genomeToTranscriptSeqMapping } from 'g2p_mapper'
|
|
5
4
|
import { autorun } from 'mobx'
|
|
6
|
-
import {
|
|
5
|
+
import { addDisposer, cast, types } from 'mobx-state-tree'
|
|
7
6
|
import { MSAModelF } from 'react-msaview'
|
|
8
7
|
|
|
9
|
-
// locals
|
|
10
8
|
import { doLaunchBlast } from './doLaunchBlast'
|
|
11
9
|
import { genomeToMSA } from './genomeToMSA'
|
|
12
10
|
import { msaCoordToGenomeCoord } from './msaCoordToGenomeCoord'
|
|
13
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'
|
|
14
15
|
|
|
15
16
|
type LGV = LinearGenomeViewModel
|
|
16
17
|
|
|
@@ -72,8 +73,17 @@ export default function stateModelFactory() {
|
|
|
72
73
|
)
|
|
73
74
|
|
|
74
75
|
.volatile(() => ({
|
|
76
|
+
/**
|
|
77
|
+
* #volatile
|
|
78
|
+
*/
|
|
75
79
|
rid: undefined as string | undefined,
|
|
80
|
+
/**
|
|
81
|
+
* #volatile
|
|
82
|
+
*/
|
|
76
83
|
progress: '',
|
|
84
|
+
/**
|
|
85
|
+
* #volatile
|
|
86
|
+
*/
|
|
77
87
|
error: undefined as unknown,
|
|
78
88
|
}))
|
|
79
89
|
|
package/src/OpenInNewIcon.tsx
CHANGED
package/src/TextField2.tsx
CHANGED
package/src/index.ts
CHANGED
|
@@ -1,11 +1,8 @@
|
|
|
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
7
|
import AddHighlightModelF from './AddHighlightModel'
|
|
11
8
|
import LaunchMsaViewF from './LaunchMsaView'
|