jbrowse-plugin-msaview 2.4.2 → 2.4.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/dist/LaunchMsaView/components/LaunchMsaViewDialog.js +3 -4
- package/dist/LaunchMsaView/components/LaunchMsaViewDialog.js.map +1 -1
- package/dist/LaunchMsaView/components/LaunchPanelContent.d.ts +5 -0
- package/dist/LaunchMsaView/components/LaunchPanelContent.js +16 -0
- package/dist/LaunchMsaView/components/LaunchPanelContent.js.map +1 -0
- package/dist/LaunchMsaView/components/ManualMSALoader/ManualMSALoader.js +22 -25
- package/dist/LaunchMsaView/components/ManualMSALoader/ManualMSALoader.js.map +1 -1
- package/dist/LaunchMsaView/components/NCBIBlastQuery/CachedBlastResults.js +12 -24
- package/dist/LaunchMsaView/components/NCBIBlastQuery/CachedBlastResults.js.map +1 -1
- package/dist/LaunchMsaView/components/NCBIBlastQuery/MsaAlgorithmSelect.d.ts +7 -0
- package/dist/LaunchMsaView/components/NCBIBlastQuery/MsaAlgorithmSelect.js +10 -0
- package/dist/LaunchMsaView/components/NCBIBlastQuery/MsaAlgorithmSelect.js.map +1 -0
- package/dist/LaunchMsaView/components/NCBIBlastQuery/NCBIBlastAutomaticPanel.js +23 -32
- package/dist/LaunchMsaView/components/NCBIBlastQuery/NCBIBlastAutomaticPanel.js.map +1 -1
- package/dist/LaunchMsaView/components/NCBIBlastQuery/NCBIBlastManualPanel.js +9 -15
- package/dist/LaunchMsaView/components/NCBIBlastQuery/NCBIBlastManualPanel.js.map +1 -1
- package/dist/LaunchMsaView/components/NCBIBlastQuery/NCBIBlastMethodSelector.d.ts +3 -2
- package/dist/LaunchMsaView/components/NCBIBlastQuery/NCBIBlastMethodSelector.js.map +1 -1
- package/dist/LaunchMsaView/components/NCBIBlastQuery/NCBIBlastPanel.d.ts +25 -0
- package/dist/LaunchMsaView/components/NCBIBlastQuery/NCBIBlastPanel.js.map +1 -1
- package/dist/LaunchMsaView/components/NCBIBlastQuery/NCBIBlastRIDPanel.js +22 -32
- package/dist/LaunchMsaView/components/NCBIBlastQuery/NCBIBlastRIDPanel.js.map +1 -1
- package/dist/LaunchMsaView/components/NCBIBlastQuery/useCachedBlastResults.js +2 -9
- package/dist/LaunchMsaView/components/NCBIBlastQuery/useCachedBlastResults.js.map +1 -1
- package/dist/LaunchMsaView/components/PreLoadedMSA/PreLoadedMSADataPanel.js +30 -29
- package/dist/LaunchMsaView/components/PreLoadedMSA/PreLoadedMSADataPanel.js.map +1 -1
- package/dist/LaunchMsaView/components/PreLoadedMSA/fetchMSAData.js +8 -6
- package/dist/LaunchMsaView/components/PreLoadedMSA/fetchMSAData.js.map +1 -1
- package/dist/LaunchMsaView/components/SubmitCancelActions.d.ts +8 -0
- package/dist/LaunchMsaView/components/SubmitCancelActions.js +12 -0
- package/dist/LaunchMsaView/components/SubmitCancelActions.js.map +1 -0
- package/dist/LaunchMsaView/components/TranscriptSelector.d.ts +2 -2
- package/dist/LaunchMsaView/components/TranscriptSelector.js +2 -2
- package/dist/LaunchMsaView/components/TranscriptSelector.js.map +1 -1
- package/dist/LaunchMsaView/components/useSWRFeatureSequence.js +3 -13
- package/dist/LaunchMsaView/components/useSWRFeatureSequence.js.map +1 -1
- package/dist/LaunchMsaView/components/useTranscriptSelection.js +10 -12
- package/dist/LaunchMsaView/components/useTranscriptSelection.js.map +1 -1
- package/dist/LaunchMsaView/util.d.ts +4 -1
- package/dist/LaunchMsaView/util.js +29 -24
- package/dist/LaunchMsaView/util.js.map +1 -1
- package/dist/jbrowse-plugin-msaview.umd.production.min.js +24 -24
- package/dist/jbrowse-plugin-msaview.umd.production.min.js.map +4 -4
- package/dist/{LaunchMsaView/components/PreLoadedMSA/consts.d.ts → utils/swrConfig.d.ts} +1 -1
- package/dist/{LaunchMsaView/components/PreLoadedMSA/consts.js → utils/swrConfig.js} +2 -2
- package/dist/utils/swrConfig.js.map +1 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/src/LaunchMsaView/components/LaunchMsaViewDialog.tsx +9 -6
- package/src/LaunchMsaView/components/LaunchPanelContent.tsx +27 -0
- package/src/LaunchMsaView/components/ManualMSALoader/ManualMSALoader.tsx +28 -60
- package/src/LaunchMsaView/components/NCBIBlastQuery/CachedBlastResults.tsx +21 -33
- package/src/LaunchMsaView/components/NCBIBlastQuery/MsaAlgorithmSelect.tsx +37 -0
- package/src/LaunchMsaView/components/NCBIBlastQuery/NCBIBlastAutomaticPanel.tsx +29 -75
- package/src/LaunchMsaView/components/NCBIBlastQuery/NCBIBlastManualPanel.tsx +10 -31
- package/src/LaunchMsaView/components/NCBIBlastQuery/NCBIBlastMethodSelector.tsx +5 -3
- package/src/LaunchMsaView/components/NCBIBlastQuery/NCBIBlastPanel.tsx +5 -2
- package/src/LaunchMsaView/components/NCBIBlastQuery/NCBIBlastRIDPanel.tsx +28 -78
- package/src/LaunchMsaView/components/NCBIBlastQuery/useCachedBlastResults.ts +2 -10
- package/src/LaunchMsaView/components/PreLoadedMSA/PreLoadedMSADataPanel.tsx +34 -57
- package/src/LaunchMsaView/components/PreLoadedMSA/fetchMSAData.ts +17 -8
- package/src/LaunchMsaView/components/SubmitCancelActions.tsx +41 -0
- package/src/LaunchMsaView/components/TranscriptSelector.tsx +3 -3
- package/src/LaunchMsaView/components/useSWRFeatureSequence.ts +6 -15
- package/src/LaunchMsaView/components/useTranscriptSelection.ts +13 -15
- package/src/LaunchMsaView/util.ts +35 -25
- package/src/MsaViewPanel/util.ts +3 -3
- package/src/{LaunchMsaView/components/PreLoadedMSA/consts.ts → utils/swrConfig.ts} +1 -1
- package/src/version.ts +1 -1
- package/dist/LaunchMsaView/components/PreLoadedMSA/consts.js.map +0 -1
|
@@ -12,11 +12,10 @@ export default function LaunchMsaViewDialog({ handleClose, feature, model, }) {
|
|
|
12
12
|
const datasets = readMsaDatasets(session.jbrowse);
|
|
13
13
|
const hasPreloadedDatasets = !!datasets?.length;
|
|
14
14
|
const [value, setValue] = useState('ncbi_blast');
|
|
15
|
-
const handleChange = (_event, newValue) => {
|
|
16
|
-
setValue(newValue);
|
|
17
|
-
};
|
|
18
15
|
return (React.createElement(Dialog, { maxWidth: "xl", title: "Launch MSA view", open: true, onClose: handleClose },
|
|
19
|
-
React.createElement(Tabs, { value: value, onChange:
|
|
16
|
+
React.createElement(Tabs, { value: value, onChange: (_event, newValue) => {
|
|
17
|
+
setValue(newValue);
|
|
18
|
+
} },
|
|
20
19
|
React.createElement(Tab, { label: "NCBI BLAST query", value: "ncbi_blast" }),
|
|
21
20
|
hasPreloadedDatasets ? (React.createElement(Tab, { label: "Pre-loaded MSA datasets", value: "preloaded_msa" })) : null,
|
|
22
21
|
React.createElement(Tab, { label: "Manual upload", value: "manual_msa" })),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LaunchMsaViewDialog.js","sourceRoot":"","sources":["../../../src/LaunchMsaView/components/LaunchMsaViewDialog.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AAEvC,OAAO,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAA;AACzC,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAA;AAC/C,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,eAAe,CAAA;AAEzC,OAAO,eAAe,MAAM,mCAAmC,CAAA;AAC/D,OAAO,cAAc,MAAM,iCAAiC,CAAA;AAC5D,OAAO,YAAY,MAAM,sCAAsC,CAAA;AAC/D,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAA;AACtD,OAAO,QAAQ,MAAM,YAAY,CAAA;AAIjC,MAAM,CAAC,OAAO,UAAU,mBAAmB,CAAC,EAC1C,WAAW,EACX,OAAO,EACP,KAAK,GAKN;IACC,MAAM,OAAO,GAAG,UAAU,CAAC,KAAK,CAAC,CAAA;IACjC,MAAM,QAAQ,GAAG,eAAe,CAAC,OAAO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MAAM,EAAE,QAAQ,EAAE,EAAE;gBAC7B,QAAQ,CAAC,QAAQ,CAAC,CAAA;YACpB,CAAC;YAED,oBAAC,GAAG,IAAC,KAAK,EAAC,kBAAkB,EAAC,KAAK,EAAC,YAAY,GAAG;YAClD,oBAAoB,CAAC,CAAC,CAAC,CACtB,oBAAC,GAAG,IAAC,KAAK,EAAC,yBAAyB,EAAC,KAAK,EAAC,eAAe,GAAG,CAC9D,CAAC,CAAC,CAAC,IAAI;YACR,oBAAC,GAAG,IAAC,KAAK,EAAC,eAAe,EAAC,KAAK,EAAC,YAAY,GAAG,CAC3C;QACP,oBAAC,QAAQ,IAAC,KAAK,EAAE,KAAK,EAAE,KAAK,EAAC,YAAY;YACxC,oBAAC,cAAc,IACb,WAAW,EAAE,WAAW,EACxB,OAAO,EAAE,OAAO,EAChB,KAAK,EAAE,KAAK,GACZ,CACO;QACV,oBAAoB,CAAC,CAAC,CAAC,CACtB,oBAAC,QAAQ,IAAC,KAAK,EAAE,KAAK,EAAE,KAAK,EAAC,eAAe;YAC3C,oBAAC,YAAY,IACX,KAAK,EAAE,KAAK,EACZ,OAAO,EAAE,OAAO,EAChB,WAAW,EAAE,WAAW,GACxB,CACO,CACZ,CAAC,CAAC,CAAC,IAAI;QACR,oBAAC,QAAQ,IAAC,KAAK,EAAE,KAAK,EAAE,KAAK,EAAC,YAAY;YACxC,oBAAC,eAAe,IACd,KAAK,EAAE,KAAK,EACZ,OAAO,EAAE,OAAO,EAChB,WAAW,EAAE,WAAW,GACxB,CACO,CACJ,CACV,CAAA;AACH,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ErrorMessage } from '@jbrowse/core/ui';
|
|
3
|
+
import { DialogContent } from '@mui/material';
|
|
4
|
+
import { makeStyles } from 'tss-react/mui';
|
|
5
|
+
const useStyles = makeStyles()({
|
|
6
|
+
dialogContent: {
|
|
7
|
+
width: '80em',
|
|
8
|
+
},
|
|
9
|
+
});
|
|
10
|
+
export default function LaunchPanelContent({ error, children, }) {
|
|
11
|
+
const { classes } = useStyles();
|
|
12
|
+
return (React.createElement(DialogContent, { className: classes.dialogContent },
|
|
13
|
+
error ? React.createElement(ErrorMessage, { error: error }) : null,
|
|
14
|
+
children));
|
|
15
|
+
}
|
|
16
|
+
//# sourceMappingURL=LaunchPanelContent.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LaunchPanelContent.js","sourceRoot":"","sources":["../../../src/LaunchMsaView/components/LaunchPanelContent.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAA;AAC/C,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAA;AAC7C,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAA;AAE1C,MAAM,SAAS,GAAG,UAAU,EAAE,CAAC;IAC7B,aAAa,EAAE;QACb,KAAK,EAAE,MAAM;KACd;CACF,CAAC,CAAA;AAEF,MAAM,CAAC,OAAO,UAAU,kBAAkB,CAAC,EACzC,KAAK,EACL,QAAQ,GAIT;IACC,MAAM,EAAE,OAAO,EAAE,GAAG,SAAS,EAAE,CAAA;IAC/B,OAAO,CACL,oBAAC,aAAa,IAAC,SAAS,EAAE,OAAO,CAAC,aAAa;QAC5C,KAAK,CAAC,CAAC,CAAC,oBAAC,YAAY,IAAC,KAAK,EAAE,KAAK,GAAI,CAAC,CAAC,CAAC,IAAI;QAC7C,QAAQ,CACK,CACjB,CAAA;AACH,CAAC"}
|
|
@@ -1,18 +1,17 @@
|
|
|
1
1
|
import React, { useState } from 'react';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { Alert,
|
|
2
|
+
import { FileSelector } from '@jbrowse/core/ui';
|
|
3
|
+
import { getSession } from '@jbrowse/core/util';
|
|
4
|
+
import { Alert, FormControl, FormControlLabel, Radio, RadioGroup, } from '@mui/material';
|
|
5
5
|
import { observer } from 'mobx-react';
|
|
6
6
|
import { makeStyles } from 'tss-react/mui';
|
|
7
7
|
import { launchView } from './launchView';
|
|
8
8
|
import TextField2 from '../../../components/TextField2';
|
|
9
|
-
import { getGeneDisplayName } from '../../util';
|
|
9
|
+
import { getGeneDisplayName, getLinearGenomeView } from '../../util';
|
|
10
|
+
import LaunchPanelContent from '../LaunchPanelContent';
|
|
11
|
+
import SubmitCancelActions from '../SubmitCancelActions';
|
|
10
12
|
import TranscriptSelector from '../TranscriptSelector';
|
|
11
13
|
import { useTranscriptSelection } from '../useTranscriptSelection';
|
|
12
14
|
const useStyles = makeStyles()({
|
|
13
|
-
dialogContent: {
|
|
14
|
-
width: '80em',
|
|
15
|
-
},
|
|
16
15
|
textAreaFont: {
|
|
17
16
|
fontFamily: 'Courier New',
|
|
18
17
|
},
|
|
@@ -34,7 +33,7 @@ const useStyles = makeStyles()({
|
|
|
34
33
|
});
|
|
35
34
|
const ManualMSALoader = observer(function PreLoadedMSA2({ model, feature, handleClose, }) {
|
|
36
35
|
const session = getSession(model);
|
|
37
|
-
const view =
|
|
36
|
+
const view = getLinearGenomeView(model);
|
|
38
37
|
const { classes } = useStyles();
|
|
39
38
|
const [launchViewError, setLaunchViewError] = useState();
|
|
40
39
|
const [inputMethod, setInputMethod] = useState('file');
|
|
@@ -43,11 +42,11 @@ const ManualMSALoader = observer(function PreLoadedMSA2({ model, feature, handle
|
|
|
43
42
|
const [msaFileLocation, setMsaFileLocation] = useState();
|
|
44
43
|
const [treeFileLocation, setTreeFileLocation] = useState();
|
|
45
44
|
const [querySeqName, setQuerySeqName] = useState('');
|
|
46
|
-
const
|
|
45
|
+
const transcriptSelection = useTranscriptSelection({ feature, view });
|
|
46
|
+
const { selectedTranscript, error } = transcriptSelection;
|
|
47
47
|
const e = launchViewError ?? error;
|
|
48
48
|
return (React.createElement(React.Fragment, null,
|
|
49
|
-
React.createElement(
|
|
50
|
-
e ? React.createElement(ErrorMessage, { error: e }) : null,
|
|
49
|
+
React.createElement(LaunchPanelContent, { error: e },
|
|
51
50
|
React.createElement(FormControl, { component: "fieldset" },
|
|
52
51
|
React.createElement(RadioGroup, { row: true, value: inputMethod, onChange: event => {
|
|
53
52
|
setInputMethod(event.target.value);
|
|
@@ -63,16 +62,16 @@ const ManualMSALoader = observer(function PreLoadedMSA2({ model, feature, handle
|
|
|
63
62
|
React.createElement(TextField2, { variant: "outlined", name: "Tree", multiline: true, minRows: 5, maxRows: 10, fullWidth: true, placeholder: "Paste newick tree (optional)", value: treeText, onChange: event => {
|
|
64
63
|
setTreeText(event.target.value);
|
|
65
64
|
} })))),
|
|
66
|
-
React.createElement(TranscriptSelector, { feature: feature,
|
|
65
|
+
React.createElement(TranscriptSelector, { feature: feature, ...transcriptSelection }),
|
|
67
66
|
React.createElement(TextField2, { variant: "outlined", name: "MSA row name", fullWidth: true, required: true, className: classes.queryNameInput, placeholder: "Row name in MSA that corresponds to the selected transcript", helperText: "Required: Specify the name of the row in your MSA that should be aligned with the selected transcript", value: querySeqName, onChange: event => {
|
|
68
67
|
setQuerySeqName(event.target.value);
|
|
69
68
|
} }),
|
|
70
69
|
!querySeqName.trim() ? (React.createElement(Alert, { severity: "warning", className: classes.warningAlert }, "Without specifying the MSA row name, clicking on the MSA will not navigate to the corresponding genome position, and hovering highlights will not work.")) : null),
|
|
71
|
-
React.createElement(
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
70
|
+
React.createElement(SubmitCancelActions, { submitDisabled: !selectedTranscript ||
|
|
71
|
+
(inputMethod === 'file' && !msaFileLocation) ||
|
|
72
|
+
(inputMethod === 'text' && !msaText.trim()), onSubmit: () => {
|
|
73
|
+
try {
|
|
74
|
+
if (selectedTranscript) {
|
|
76
75
|
setLaunchViewError(undefined);
|
|
77
76
|
launchView({
|
|
78
77
|
session,
|
|
@@ -94,14 +93,12 @@ const ManualMSALoader = observer(function PreLoadedMSA2({ model, feature, handle
|
|
|
94
93
|
});
|
|
95
94
|
handleClose();
|
|
96
95
|
}
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
handleClose();
|
|
104
|
-
} }, "Cancel"))));
|
|
96
|
+
}
|
|
97
|
+
catch (err) {
|
|
98
|
+
console.error(err);
|
|
99
|
+
setLaunchViewError(err);
|
|
100
|
+
}
|
|
101
|
+
}, onCancel: handleClose })));
|
|
105
102
|
});
|
|
106
103
|
export default ManualMSALoader;
|
|
107
104
|
//# sourceMappingURL=ManualMSALoader.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ManualMSALoader.js","sourceRoot":"","sources":["../../../../src/LaunchMsaView/components/ManualMSALoader/ManualMSALoader.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AAEvC,OAAO,EAAE,YAAY,EAAE,
|
|
1
|
+
{"version":3,"file":"ManualMSALoader.js","sourceRoot":"","sources":["../../../../src/LaunchMsaView/components/ManualMSALoader/ManualMSALoader.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AAEvC,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAA;AAC/C,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAA;AAC/C,OAAO,EACL,KAAK,EACL,WAAW,EACX,gBAAgB,EAChB,KAAK,EACL,UAAU,GACX,MAAM,eAAe,CAAA;AACtB,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAA;AACrC,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAA;AAE1C,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AACzC,OAAO,UAAU,MAAM,gCAAgC,CAAA;AACvD,OAAO,EAAE,kBAAkB,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAA;AACpE,OAAO,kBAAkB,M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,CAAC,eAAe,CAAC;gBAC5C,CAAC,WAAW,KAAK,MAAM,IAAI,CAAC,OAAO,CAAC,IAAI,EAAE,CAAC,EAE7C,QAAQ,EAAE,GAAG,EAAE;gBACb,IAAI,CAAC;oBACH,IAAI,kBAAkB,EAAE,CAAC;wBACvB,kBAAkB,CAAC,SAAS,CAAC,CAAA;wBAC7B,UAAU,CAAC;4BACT,OAAO;4BACP,YAAY,EAAE,kBAAkB,CAAC,kBAAkB,CAAC;4BACpD,IAAI;4BACJ,OAAO,EAAE,kBAAkB;4BAC3B,YAAY,EAAE,YAAY,CAAC,IAAI,EAAE;4BACjC,GAAG,CAAC,WAAW,KAAK,MAAM;gCACxB,CAAC,CAAC;oCACE,aAAa,EAAE,eAAe;oCAC9B,cAAc,EAAE,gBAAgB;iCACjC;gCACH,CAAC,CAAC;oCACE,IAAI,EAAE;wCACJ,GAAG,EAAE,OAAO;wCACZ,IAAI,EAAE,QAAQ;qCACf;iCACF,CAAC;yBACP,CAAC,CAAA;wBACF,WAAW,EAAE,CAAA;oBACf,CAAC;gBACH,CAAC;gBAAC,OAAO,GAAG,EAAE,CAAC;oBACb,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAA;oBAClB,kBAAkB,CAAC,GAAG,CAAC,CAAA;gBACzB,CAAC;YACH,CAAC,EACD,QAAQ,EAAE,WAAW,GACrB,CACD,CACJ,CAAA;AACH,CAAC,CAAC,CAAA;AAEF,eAAe,eAAe,CAAA"}
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
import React, { useMemo, useState } from 'react';
|
|
2
2
|
import { ErrorMessage } from '@jbrowse/core/ui';
|
|
3
|
-
import { getContainingView } from '@jbrowse/core/util';
|
|
4
3
|
import DeleteIcon from '@mui/icons-material/Delete';
|
|
5
4
|
import { Button, IconButton, List, ListItem, ListItemButton, ListItemText, Typography, } from '@mui/material';
|
|
6
5
|
import { observer } from 'mobx-react';
|
|
7
6
|
import { makeStyles } from 'tss-react/mui';
|
|
8
7
|
import { blastLaunchViewFromCache } from './blastLaunchView';
|
|
9
8
|
import { useCachedBlastResults } from './useCachedBlastResults';
|
|
10
|
-
import { getGeneIdentifiers } from '../../util';
|
|
9
|
+
import { getGeneIdentifiers, getLinearGenomeView } from '../../util';
|
|
11
10
|
const useStyles = makeStyles()({
|
|
12
11
|
header: {
|
|
13
12
|
display: 'flex',
|
|
@@ -21,21 +20,19 @@ const useStyles = makeStyles()({
|
|
|
21
20
|
},
|
|
22
21
|
});
|
|
23
22
|
function getResultDisplayName(result) {
|
|
24
|
-
const parts = [
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
}
|
|
34
|
-
return parts.join(' - ');
|
|
23
|
+
const parts = [
|
|
24
|
+
result.geneName,
|
|
25
|
+
result.transcriptName !== result.geneName
|
|
26
|
+
? result.transcriptName
|
|
27
|
+
: undefined,
|
|
28
|
+
].filter((p) => !!p);
|
|
29
|
+
return parts.length > 0
|
|
30
|
+
? parts.join(' - ')
|
|
31
|
+
: (result.geneId ?? result.transcriptId ?? 'Unknown');
|
|
35
32
|
}
|
|
36
33
|
const CachedBlastResults = observer(function ({ model, handleClose, feature, }) {
|
|
37
34
|
const { classes } = useStyles();
|
|
38
|
-
const view =
|
|
35
|
+
const view = getLinearGenomeView(model);
|
|
39
36
|
const [operationError, setOperationError] = useState();
|
|
40
37
|
const geneIds = useMemo(() => getGeneIdentifiers(feature), [feature]);
|
|
41
38
|
const { results, error, isLoading, handleDelete, handleClearAll } = useCachedBlastResults(geneIds);
|
|
@@ -48,16 +45,7 @@ const CachedBlastResults = observer(function ({ model, handleClose, feature, })
|
|
|
48
45
|
handleClose();
|
|
49
46
|
};
|
|
50
47
|
const displayError = error ?? operationError;
|
|
51
|
-
|
|
52
|
-
return React.createElement(ErrorMessage, { error: displayError });
|
|
53
|
-
}
|
|
54
|
-
if (isLoading) {
|
|
55
|
-
return React.createElement(Typography, null, "Loading cached results...");
|
|
56
|
-
}
|
|
57
|
-
if (results.length === 0) {
|
|
58
|
-
return (React.createElement(Typography, { color: "textSecondary" }, "No cached BLAST results found for this gene. Run a BLAST query to cache results."));
|
|
59
|
-
}
|
|
60
|
-
return (React.createElement("div", null,
|
|
48
|
+
return displayError ? (React.createElement(ErrorMessage, { error: displayError })) : isLoading ? (React.createElement(Typography, null, "Loading cached results...")) : results.length === 0 ? (React.createElement(Typography, { color: "textSecondary" }, "No cached BLAST results found for this gene. Run a BLAST query to cache results.")) : (React.createElement("div", null,
|
|
61
49
|
React.createElement("div", { className: classes.header },
|
|
62
50
|
React.createElement(Typography, { variant: "subtitle1" },
|
|
63
51
|
"Cached BLAST Results (",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CachedBlastResults.js","sourceRoot":"","sources":["../../../../src/LaunchMsaView/components/NCBIBlastQuery/CachedBlastResults.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AAEhD,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAA;AAC/C,OAAO,
|
|
1
|
+
{"version":3,"file":"CachedBlastResults.js","sourceRoot":"","sources":["../../../../src/LaunchMsaView/components/NCBIBlastQuery/CachedBlastResults.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AAEhD,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAA;AAC/C,OAAO,UAAU,MAAM,4BAA4B,CAAA;AACnD,OAAO,EACL,MAAM,EACN,UAAU,EACV,IAAI,EACJ,QAAQ,EACR,cAAc,EACd,YAAY,EACZ,UAAU,GACX,MAAM,eAAe,CAAA;AACtB,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAA;AACrC,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAA;AAE1C,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OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,EAAE,CAAC,CACrB,oBAAC,QAAQ,IACP,GAAG,EAAE,MAAM,CAAC,EAAE,EACd,cAAc,QACd,eAAe,EACb,oBAAC,UAAU,IACT,IAAI,EAAC,KAAK,EACV,IAAI,EAAC,OAAO,EACZ,OAAO,EAAE,KAAK,EAAC,CAAC,EAAC,EAAE;oBACjB,CAAC,CAAC,eAAe,EAAE,CAAA;oBACnB,IAAI,CAAC;wBACH,iBAAiB,CAAC,SAAS,CAAC,CAAA;wBAC5B,MAAM,YAAY,CAAC,MAAM,CAAC,EAAE,CAAC,CAAA;oBAC/B,CAAC;oBAAC,OAAO,GAAG,EAAE,CAAC;wBACb,iBAAiB,CAAC,GAAG,CAAC,CAAA;oBACxB,CAAC;gBACH,CAAC;gBAED,oBAAC,UAAU,IAAC,QAAQ,EAAC,OAAO,GAAG,CACpB;YAGf,oBAAC,cAAc,IACb,OAAO,EAAE,GAAG,EAAE;oBACZ,eAAe,CAAC,MAAM,CAAC,CAAA;gBACzB,CAAC;gBAED,oBAAC,YAAY,IACX,OAAO,EAAE,GAAG,oBAAoB,CAAC,MAAM,CAAC,MAAM,MAAM,CAAC,aAAa,IAAI,MAAM,CAAC,YAAY,KAAK,MAAM,CAAC,YAAY,GAAG,EACpH,SAAS,EAAE,GAAG,IAAI,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC,cAAc,EAAE,WAAW,MAAM,CAAC,eAAe,CAAC,KAAK,CAAC,CAAC,EAAE,EAAE,CAAC,KAAK,GAC5G,CACa,CACR,CACZ,CAAC,CACG,CACH,CACP,CAAA;AACH,CAAC,CAAC,CAAA;AAEF,eAAe,kBAAkB,CAAA"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { MenuItem } from '@mui/material';
|
|
3
|
+
import { msaAlgorithms } from './consts';
|
|
4
|
+
import TextField2 from '../../../components/TextField2';
|
|
5
|
+
export default function MsaAlgorithmSelect({ value, onChange, className, }) {
|
|
6
|
+
return (React.createElement(TextField2, { variant: "outlined", label: "MSA Algorithm", className: className, select: true, value: value, onChange: event => {
|
|
7
|
+
onChange(event.target.value);
|
|
8
|
+
} }, msaAlgorithms.map(val => (React.createElement(MenuItem, { value: val, key: val }, val)))));
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=MsaAlgorithmSelect.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MsaAlgorithmSelect.js","sourceRoot":"","sources":["../../../../src/LaunchMsaView/components/NCBIBlastQuery/MsaAlgorithmSelect.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAA;AAExC,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAA;AACxC,OAAO,UAAU,MAAM,gCAAgC,CAAA;AAIvD,MAAM,CAAC,OAAO,UAAU,kBAAkB,CAAC,EACzC,KAAK,EACL,QAAQ,EACR,SAAS,GAKV;IACC,OAAO,CACL,oBAAC,UAAU,IACT,OAAO,EAAC,UAAU,EAClB,KAAK,EAAC,eAAe,EACrB,SAAS,EAAE,SAAS,EACpB,MAAM,QACN,KAAK,EAAE,KAAK,EACZ,QAAQ,EAAE,KAAK,CAAC,EAAE;YAChB,QAAQ,CAAC,KAAK,CAAC,MAAM,CAAC,KAAqB,CAAC,CAAA;QAC9C,CAAC,IAEA,aAAa,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE,CAAC,CACxB,oBAAC,QAAQ,IAAC,KAAK,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,IAC3B,GAAG,CACK,CACZ,CAAC,CACS,CACd,CAAA;AACH,CAAC"}
|
|
@@ -1,22 +1,20 @@
|
|
|
1
1
|
import React, { useMemo, useState } from 'react';
|
|
2
|
-
import { ErrorMessage } from '@jbrowse/core/ui';
|
|
3
|
-
import { getContainingView } from '@jbrowse/core/util';
|
|
4
2
|
import ExpandMoreIcon from '@mui/icons-material/ExpandMore';
|
|
5
|
-
import { Accordion, AccordionDetails, AccordionSummary,
|
|
3
|
+
import { Accordion, AccordionDetails, AccordionSummary, MenuItem, Typography, } from '@mui/material';
|
|
6
4
|
import { observer } from 'mobx-react';
|
|
7
5
|
import { makeStyles } from 'tss-react/mui';
|
|
8
6
|
import CachedBlastResults from './CachedBlastResults';
|
|
7
|
+
import MsaAlgorithmSelect from './MsaAlgorithmSelect';
|
|
9
8
|
import { blastLaunchView } from './blastLaunchView';
|
|
10
|
-
import { blastDatabaseOptions, blastPrograms
|
|
9
|
+
import { blastDatabaseOptions, blastPrograms } from './consts';
|
|
11
10
|
import { useCachedBlastResults } from './useCachedBlastResults';
|
|
12
11
|
import TextField2 from '../../../components/TextField2';
|
|
13
|
-
import {
|
|
12
|
+
import { getBlastViewTitle, getGeneIdentifiers, getLinearGenomeView, } from '../../util';
|
|
13
|
+
import LaunchPanelContent from '../LaunchPanelContent';
|
|
14
|
+
import SubmitCancelActions from '../SubmitCancelActions';
|
|
14
15
|
import TranscriptSelector from '../TranscriptSelector';
|
|
15
16
|
import { useTranscriptSelection } from '../useTranscriptSelection';
|
|
16
17
|
const useStyles = makeStyles()({
|
|
17
|
-
dialogContent: {
|
|
18
|
-
width: '80em',
|
|
19
|
-
},
|
|
20
18
|
selectField: {
|
|
21
19
|
width: 150,
|
|
22
20
|
},
|
|
@@ -36,19 +34,19 @@ const useStyles = makeStyles()({
|
|
|
36
34
|
});
|
|
37
35
|
const NCBIBlastAutomaticPanel = observer(function ({ handleClose, feature, model, children, baseUrl, }) {
|
|
38
36
|
const { classes } = useStyles();
|
|
39
|
-
const view =
|
|
37
|
+
const view = getLinearGenomeView(model);
|
|
40
38
|
const [launchViewError, setLaunchViewError] = useState();
|
|
41
39
|
const [selectedBlastDatabase, setSelectedBlastDatabase] = useState('nr');
|
|
42
40
|
const [selectedMsaAlgorithm, setSelectedMsaAlgorithm] = useState('clustalo');
|
|
43
41
|
const [selectedBlastProgram, setSelectedBlastProgram] = useState('quick-blastp');
|
|
44
42
|
const geneIds = useMemo(() => getGeneIdentifiers(feature), [feature]);
|
|
45
43
|
const { results: cachedResults, error: cachedResultsError } = useCachedBlastResults(geneIds);
|
|
46
|
-
const
|
|
47
|
-
const
|
|
44
|
+
const transcriptSelection = useTranscriptSelection({ feature, view });
|
|
45
|
+
const { selectedTranscript, proteinSequence } = transcriptSelection;
|
|
46
|
+
const e = transcriptSelection.error ?? launchViewError ?? cachedResultsError;
|
|
48
47
|
return (React.createElement(React.Fragment, null,
|
|
49
|
-
React.createElement(
|
|
48
|
+
React.createElement(LaunchPanelContent, { error: e },
|
|
50
49
|
children,
|
|
51
|
-
e ? React.createElement(ErrorMessage, { error: e }) : null,
|
|
52
50
|
React.createElement(TextField2, { variant: "outlined", label: "BLAST database", className: classes.selectField, select: true, value: selectedBlastDatabase, onChange: event => {
|
|
53
51
|
const newDb = event.target.value;
|
|
54
52
|
setSelectedBlastDatabase(newDb);
|
|
@@ -56,32 +54,27 @@ const NCBIBlastAutomaticPanel = observer(function ({ handleClose, feature, model
|
|
|
56
54
|
setSelectedBlastProgram('blastp');
|
|
57
55
|
}
|
|
58
56
|
} }, blastDatabaseOptions.map(val => (React.createElement(MenuItem, { value: val, key: val }, val)))),
|
|
59
|
-
React.createElement(
|
|
60
|
-
setSelectedMsaAlgorithm(event.target.value);
|
|
61
|
-
} }, msaAlgorithms.map(val => (React.createElement(MenuItem, { value: val, key: val }, val)))),
|
|
57
|
+
React.createElement(MsaAlgorithmSelect, { className: classes.selectField, value: selectedMsaAlgorithm, onChange: setSelectedMsaAlgorithm }),
|
|
62
58
|
React.createElement("div", { className: classes.databaseFieldContainer },
|
|
63
59
|
React.createElement(TextField2, { variant: "outlined", label: "BLAST program", disabled: selectedBlastDatabase === 'nr_cluster_seq', className: classes.selectField, select: true, value: selectedBlastProgram, onChange: event => {
|
|
64
60
|
setSelectedBlastProgram(event.target.value);
|
|
65
61
|
} }, blastPrograms.map(val => (React.createElement(MenuItem, { value: val, key: val }, val)))),
|
|
66
62
|
selectedBlastDatabase === 'nr_cluster_seq' ? (React.createElement(Typography, { variant: "subtitle2", className: classes.clusterSeqMessage }, "Can only use blastp on nr_cluster_seq")) : null),
|
|
67
|
-
React.createElement(TranscriptSelector, { feature: feature,
|
|
63
|
+
React.createElement(TranscriptSelector, { feature: feature, ...transcriptSelection }),
|
|
68
64
|
React.createElement(Typography, { className: classes.infoText }, "This panel will automatically submit a query to NCBI. Using blastp can take 10+ minutes to run, quick-blastp is generally a lot faster but is not available for the clustered database. After completion, all the hits will be run through a multiple sequence alignment. Note: we are not able to currently run NCBI COBALT automatically on the BLAST results, even though that is the method NCBI uses on their website. If you need a COBALT alignment, please use the manual approach of submitting BLAST yourself and downloading the resulting files"),
|
|
69
65
|
cachedResults.length > 0 ? (React.createElement(Accordion, { className: classes.cachedResultsAccordion },
|
|
70
66
|
React.createElement(AccordionSummary, { expandIcon: React.createElement(ExpandMoreIcon, null) },
|
|
71
67
|
React.createElement(Typography, null, "Previous BLAST Results")),
|
|
72
68
|
React.createElement(AccordionDetails, null,
|
|
73
69
|
React.createElement(CachedBlastResults, { model: model, handleClose: handleClose, feature: feature })))) : null),
|
|
74
|
-
React.createElement(
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
if (!selectedTranscript) {
|
|
78
|
-
return;
|
|
79
|
-
}
|
|
70
|
+
React.createElement(SubmitCancelActions, { submitDisabled: !proteinSequence, onSubmit: () => {
|
|
71
|
+
try {
|
|
72
|
+
if (selectedTranscript) {
|
|
80
73
|
setLaunchViewError(undefined);
|
|
81
74
|
blastLaunchView({
|
|
82
75
|
feature: selectedTranscript,
|
|
83
76
|
view,
|
|
84
|
-
newViewTitle:
|
|
77
|
+
newViewTitle: getBlastViewTitle(feature, selectedTranscript),
|
|
85
78
|
blastParams: {
|
|
86
79
|
baseUrl,
|
|
87
80
|
blastProgram: selectedBlastProgram,
|
|
@@ -93,14 +86,12 @@ const NCBIBlastAutomaticPanel = observer(function ({ handleClose, feature, model
|
|
|
93
86
|
});
|
|
94
87
|
handleClose();
|
|
95
88
|
}
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
handleClose();
|
|
103
|
-
} }, "Cancel"))));
|
|
89
|
+
}
|
|
90
|
+
catch (e) {
|
|
91
|
+
console.error(e);
|
|
92
|
+
setLaunchViewError(e);
|
|
93
|
+
}
|
|
94
|
+
}, onCancel: handleClose })));
|
|
104
95
|
});
|
|
105
96
|
export default NCBIBlastAutomaticPanel;
|
|
106
97
|
//# sourceMappingURL=NCBIBlastAutomaticPanel.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NCBIBlastAutomaticPanel.js","sourceRoot":"","sources":["../../../../src/LaunchMsaView/components/NCBIBlastQuery/NCBIBlastAutomaticPanel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AAEhD,OAAO,
|
|
1
|
+
{"version":3,"file":"NCBIBlastAutomaticPanel.js","sourceRoot":"","sources":["../../../../src/LaunchMsaView/components/NCBIBlastQuery/NCBIBlastAutomaticPanel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AAEhD,OAAO,cAAc,MAAM,gCAAgC,CAAA;AAC3D,OAAO,EACL,SAAS,EACT,gBAAgB,EAChB,gBAAgB,EAChB,QAAQ,EACR,UAAU,GACX,MAAM,eAAe,CAAA;AACtB,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAA;AACrC,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAA;AAE1C,OAAO,kBAAkB,MAAM,sBAAsB,CAAA;AACrD,OAAO,kBAAkB,MAAM,sBAAsB,CAAA;AACrD,OAAO,EAAE,eAAe,EAAE,M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B,oBAAC,mBAAmB,IAClB,cAAc,EAAE,CAAC,eAAe,EAChC,QAAQ,EAAE,GAAG,EAAE;gBACb,IAAI,CAAC;oBACH,IAAI,kBAAkB,EAAE,CAAC;wBACvB,kBAAkB,CAAC,SAAS,CAAC,CAAA;wBAC7B,eAAe,CAAC;4BACd,OAAO,EAAE,kBAAkB;4BAC3B,IAAI;4BACJ,YAAY,EAAE,iBAAiB,CAAC,OAAO,EAAE,kBAAkB,CAAC;4BAC5D,WAAW,EAAE;gCACX,OAAO;gCACP,YAAY,EAAE,oBAAoB;gCAClC,aAAa,EAAE,qBAAqB;gCACpC,YAAY,EAAE,oBAAoB;gCAClC,kBAAkB;gCAClB,eAAe;6BAChB;yBACF,CAAC,CAAA;wBACF,WAAW,EAAE,CAAA;oBACf,CAAC;gBACH,CAAC;gBAAC,OAAO,CAAC,EAAE,CAAC;oBACX,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,CAAA;oBAChB,kBAAkB,CAAC,CAAC,CAAC,CAAA;gBACvB,CAAC;YACH,CAAC,EACD,QAAQ,EAAE,WAAW,GACrB,CACD,CACJ,CAAA;AACH,CAAC,CAAC,CAAA;AAEF,eAAe,uBAAuB,CAAA"}
|
|
@@ -1,20 +1,14 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { Button, DialogActions, DialogContent, Typography } from '@mui/material';
|
|
2
|
+
import { shorten2 } from '@jbrowse/core/util';
|
|
3
|
+
import { Button, DialogActions, Typography } from '@mui/material';
|
|
5
4
|
import { observer } from 'mobx-react';
|
|
6
5
|
import { makeStyles } from 'tss-react/mui';
|
|
7
6
|
import ExternalLink from '../../../components/ExternalLink';
|
|
8
|
-
import { cleanProteinSequence } from '../../util';
|
|
7
|
+
import { cleanProteinSequence, getLinearGenomeView } from '../../util';
|
|
8
|
+
import LaunchPanelContent from '../LaunchPanelContent';
|
|
9
9
|
import TranscriptSelector from '../TranscriptSelector';
|
|
10
10
|
import { useTranscriptSelection } from '../useTranscriptSelection';
|
|
11
11
|
const useStyles = makeStyles()({
|
|
12
|
-
dialogContent: {
|
|
13
|
-
width: '80em',
|
|
14
|
-
},
|
|
15
|
-
textAreaFont: {
|
|
16
|
-
fontFamily: 'Courier New',
|
|
17
|
-
},
|
|
18
12
|
ncbiLink: {
|
|
19
13
|
wordBreak: 'break-all',
|
|
20
14
|
margin: 30,
|
|
@@ -26,16 +20,16 @@ const useStyles = makeStyles()({
|
|
|
26
20
|
});
|
|
27
21
|
const NCBIBlastManualPanel = observer(function ({ handleClose, feature, model, children, baseUrl, }) {
|
|
28
22
|
const { classes } = useStyles();
|
|
29
|
-
const view =
|
|
30
|
-
const
|
|
23
|
+
const view = getLinearGenomeView(model);
|
|
24
|
+
const transcriptSelection = useTranscriptSelection({ feature, view });
|
|
25
|
+
const { proteinSequence, error } = transcriptSelection;
|
|
31
26
|
const s2 = cleanProteinSequence(proteinSequence);
|
|
32
27
|
const link = `${baseUrl}?PAGE_TYPE=BlastSearch&PAGE=Proteins&PROGRAM=blastp&QUERY=${s2}`;
|
|
33
28
|
const link2 = `${baseUrl}?PAGE_TYPE=BlastSearch&PAGE=Proteins&PROGRAM=blastp&QUERY=${shorten2(s2, 10)}`;
|
|
34
29
|
return (React.createElement(React.Fragment, null,
|
|
35
|
-
React.createElement(
|
|
30
|
+
React.createElement(LaunchPanelContent, { error: error },
|
|
36
31
|
children,
|
|
37
|
-
|
|
38
|
-
React.createElement(TranscriptSelector, { feature: feature, options: options, selectedId: selectedId, selectedTranscript: selectedTranscript, onTranscriptChange: setSelectedId, proteinSequence: proteinSequence }),
|
|
32
|
+
React.createElement(TranscriptSelector, { feature: feature, ...transcriptSelection }),
|
|
39
33
|
proteinSequence ? (React.createElement("div", { className: classes.ncbiLink },
|
|
40
34
|
"Link to NCBI BLAST: ",
|
|
41
35
|
React.createElement(ExternalLink, { href: link }, link2))) : null,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NCBIBlastManualPanel.js","sourceRoot":"","sources":["../../../../src/LaunchMsaView/components/NCBIBlastQuery/NCBIBlastManualPanel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"NCBIBlastManualPanel.js","sourceRoot":"","sources":["../../../../src/LaunchMsaView/components/NCBIBlastQuery/NCBIBlastManualPanel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,OAAO,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAA;AAC7C,OAAO,EAAE,MAAM,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,eAAe,CAAA;AACjE,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAA;AACrC,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAA;AAE1C,OAAO,YAAY,MAAM,kCAAkC,CAAA;AAC3D,OAAO,EAAE,oBAAoB,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAA;AACtE,OAAO,kBAAkB,MAAM,uBAAuB,CAAA;AACtD,OAAO,kBAAkB,MAAM,uBAAuB,CAAA;AACtD,OAAO,EAAE,sBAAsB,EAAE,MAAM,2BAA2B,CAAA;AAIlE,MAAM,SAAS,GAAG,UAAU,EAAE,CAAC;IAC7B,QAAQ,EAAE;QACR,SAAS,EAAE,WAAW;QACtB,MAAM,EAAE,EAAE;QACV,QAAQ,EAAE,GAAG;KACd;IACD,QAAQ,EAAE;QACR,SAAS,EAAE,EAAE;KACd;CACF,CAAC,CAAA;AAEF,MAAM,oBAAoB,GAAG,QAAQ,CAAC,UAAU,EAC9C,WAAW,EACX,OAAO,EACP,KAAK,EACL,QAAQ,EACR,OAAO,GAOR;IACC,MAAM,EAAE,OAAO,EAAE,GAAG,SAAS,EAAE,CAAA;IAC/B,MAAM,IAAI,GAAG,mBAAmB,CAAC,KAAK,CAAC,CAAA;IACvC,MAAM,mBAAmB,GAAG,sBAAsB,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC,CAAA;IACrE,MAAM,EAAE,eAAe,EAAE,KAAK,EAAE,GAAG,mBAAmB,CAAA;IAEtD,MAAM,EAAE,GAAG,oBAAoB,CAAC,eAAe,CAAC,CAAA;IAChD,MAAM,IAAI,GAAG,GAAG,OAAO,6DAA6D,EAAE,EAAE,CAAA;IACxF,MAAM,KAAK,GAAG,GAAG,OAAO,6DAA6D,QAAQ,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,CAAA;IAEvG,OAAO,CACL;QACE,oBAAC,kBAAkB,IAAC,KAAK,EAAE,KAAK;YAC7B,QAAQ;YAET,oBAAC,kBAAkB,IAAC,OAAO,EAAE,OAAO,KAAM,mBAAmB,GAAI;YAEhE,eAAe,CAAC,CAAC,CAAC,CACjB,6BAAK,SAAS,EAAE,OAAO,CAAC,QAAQ;;gBACV,oBAAC,YAAY,IAAC,IAAI,EAAE,IAAI,IAAG,KAAK,CAAgB,CAChE,CACP,CAAC,CAAC,CAAC,IAAI;YAER,oBAAC,UAAU,IAAC,SAAS,EAAE,OAAO,CAAC,QAAQ,2UAM1B,CACM;QAErB,oBAAC,aAAa;YACZ,oBAAC,MAAM,IACL,KAAK,EAAC,SAAS,EACf,OAAO,EAAC,WAAW,EACnB,OAAO,EAAE,GAAG,EAAE;oBACZ,WAAW,EAAE,CAAA;gBACf,CAAC,YAGM,CACK,CACf,CACJ,CAAA;AACH,CAAC,CAAC,CAAA;AAEF,eAAe,oBAAoB,CAAA"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import type { BlastLookupMethod } from './NCBIBlastPanel';
|
|
2
3
|
export default function NCBIBlastMethodSelector({ lookupMethod, setLookupMethod, }: {
|
|
3
|
-
lookupMethod:
|
|
4
|
-
setLookupMethod: (method:
|
|
4
|
+
lookupMethod: BlastLookupMethod;
|
|
5
|
+
setLookupMethod: (method: BlastLookupMethod) => void;
|
|
5
6
|
}): React.JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NCBIBlastMethodSelector.js","sourceRoot":"","sources":["../../../../src/LaunchMsaView/components/NCBIBlastQuery/NCBIBlastMethodSelector.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,OAAO,EAAE,WAAW,EAAE,gBAAgB,EAAE,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAA;
|
|
1
|
+
{"version":3,"file":"NCBIBlastMethodSelector.js","sourceRoot":"","sources":["../../../../src/LaunchMsaView/components/NCBIBlastQuery/NCBIBlastMethodSelector.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,OAAO,EAAE,WAAW,EAAE,gBAAgB,EAAE,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAA;AAIhF,MAAM,CAAC,OAAO,UAAU,uBAAuB,CAAC,EAC9C,YAAY,EACZ,eAAe,GAIhB;IACC,OAAO,CACL,oBAAC,WAAW,IAAC,SAAS,EAAC,UAAU;QAC/B,oBAAC,UAAU,IACT,GAAG,QACH,KAAK,EAAE,YAAY,EACnB,QAAQ,EAAE,KAAK,CAAC,EAAE;gBAChB,eAAe,CAAC,KAAK,CAAC,MAAM,CAAC,KAA0B,CAAC,CAAA;YAC1D,CAAC;YAED,oBAAC,gBAAgB,IACf,KAAK,EAAC,WAAW,EACjB,OAAO,EAAE,oBAAC,KAAK,OAAG,EAClB,KAAK,EAAC,WAAW,GACjB;YACF,oBAAC,gBAAgB,IACf,KAAK,EAAC,KAAK,EACX,OAAO,EAAE,oBAAC,KAAK,OAAG,EAClB,KAAK,EAAC,eAAe,GACrB;YACF,oBAAC,gBAAgB,IAAC,KAAK,EAAC,QAAQ,EAAC,OAAO,EAAE,oBAAC,KAAK,OAAG,EAAE,KAAK,EAAC,QAAQ,GAAG,CAC3D,CACD,CACf,CAAA;AACH,CAAC"}
|
|
@@ -1,7 +1,32 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { AbstractTrackModel, Feature } from '@jbrowse/core/util';
|
|
3
|
+
declare const panelMap: {
|
|
4
|
+
readonly automatic: ({ handleClose, feature, model, children, baseUrl, }: {
|
|
5
|
+
model: AbstractTrackModel;
|
|
6
|
+
feature: Feature;
|
|
7
|
+
baseUrl: string;
|
|
8
|
+
handleClose: () => void;
|
|
9
|
+
children: React.ReactNode;
|
|
10
|
+
}) => React.JSX.Element;
|
|
11
|
+
readonly rid: ({ handleClose, feature, model, children, baseUrl, }: {
|
|
12
|
+
model: AbstractTrackModel;
|
|
13
|
+
feature: Feature;
|
|
14
|
+
baseUrl: string;
|
|
15
|
+
handleClose: () => void;
|
|
16
|
+
children: React.ReactNode;
|
|
17
|
+
}) => React.JSX.Element;
|
|
18
|
+
readonly manual: ({ handleClose, feature, model, children, baseUrl, }: {
|
|
19
|
+
children: React.ReactNode;
|
|
20
|
+
model: AbstractTrackModel;
|
|
21
|
+
feature: Feature;
|
|
22
|
+
baseUrl: string;
|
|
23
|
+
handleClose: () => void;
|
|
24
|
+
}) => React.JSX.Element;
|
|
25
|
+
};
|
|
26
|
+
export type BlastLookupMethod = keyof typeof panelMap;
|
|
3
27
|
export default function NCBIBlastPanel({ handleClose, model, feature, }: {
|
|
4
28
|
handleClose: () => void;
|
|
5
29
|
model: AbstractTrackModel;
|
|
6
30
|
feature: Feature;
|
|
7
31
|
}): React.JSX.Element;
|
|
32
|
+
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NCBIBlastPanel.js","sourceRoot":"","sources":["../../../../src/LaunchMsaView/components/NCBIBlastQuery/NCBIBlastPanel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AAEvC,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAA;AACpD,OAAO,YAAY,MAAM,8BAA8B,CAAA;AACvD,OAAO,EAAE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