jbrowse-plugin-msaview 3.4.0 → 3.5.0
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/README.md +7 -0
- package/dist/LaunchMsaView/components/BlastQuery/BlastAutomaticPanel.js +23 -17
- package/dist/LaunchMsaView/components/BlastQuery/BlastManualPanel.js +1 -0
- package/dist/LaunchMsaView/components/BlastQuery/MsaAlgorithmSelect.js +5 -3
- package/dist/LaunchMsaView/components/BlastQuery/consts.d.ts +24 -4
- package/dist/LaunchMsaView/components/BlastQuery/consts.js +44 -2
- package/dist/LaunchMsaView/components/BlastQuery/searchChoiceStorage.d.ts +7 -0
- package/dist/LaunchMsaView/components/BlastQuery/searchChoiceStorage.js +42 -0
- package/dist/LaunchMsaView/components/BlastQuery/searchChoiceStorage.test.js +32 -0
- package/dist/LaunchMsaView/components/ManualMSALoader/ManualMSALoader.js +1 -0
- package/dist/LaunchMsaView/components/ManualMSALoader/launchView.d.ts +3 -1
- package/dist/LaunchMsaView/components/ManualMSALoader/launchView.js +2 -1
- package/dist/LaunchMsaView/components/OrthologQuery/OrthologPanel.js +10 -4
- package/dist/LaunchMsaView/components/OrthologQuery/OrthologSourceSelect.js +4 -1
- package/dist/LaunchMsaView/components/QueryRowSelector.js +21 -5
- package/dist/LaunchMsaView/detectQueryRow.d.ts +11 -0
- package/dist/LaunchMsaView/detectQueryRow.js +11 -4
- package/dist/LaunchMsaView/detectQueryRow.test.js +30 -0
- package/dist/LaunchMsaView/useQueryRowName.d.ts +1 -0
- package/dist/LaunchMsaView/useQueryRowName.js +5 -1
- package/dist/LaunchMsaView/useQueryRowName.test.d.ts +1 -0
- package/dist/LaunchMsaView/useQueryRowName.test.js +23 -0
- package/dist/LaunchMsaViewExtensionPoint/index.js +19 -12
- package/dist/LaunchMsaViewExtensionPoint/index.test.d.ts +1 -0
- package/dist/LaunchMsaViewExtensionPoint/index.test.js +64 -0
- package/dist/MsaViewPanel/afterCreateAutoruns.d.ts +16 -0
- package/dist/MsaViewPanel/afterCreateAutoruns.js +138 -86
- package/dist/MsaViewPanel/components/LaunchProgress.js +23 -5
- package/dist/MsaViewPanel/components/MsaViewPanel.js +6 -2
- package/dist/MsaViewPanel/components/MsaViewPanel.test.js +40 -0
- package/dist/MsaViewPanel/doLaunchBlast.d.ts +11 -1
- package/dist/MsaViewPanel/doLaunchBlast.js +79 -96
- package/dist/MsaViewPanel/doLaunchBlast.test.d.ts +1 -0
- package/dist/MsaViewPanel/doLaunchBlast.test.js +158 -0
- package/dist/MsaViewPanel/doLaunchOrthologs.d.ts +3 -1
- package/dist/MsaViewPanel/doLaunchOrthologs.js +46 -10
- package/dist/MsaViewPanel/doLaunchOrthologs.test.js +48 -24
- package/dist/MsaViewPanel/genomeToMSA.js +4 -4
- package/dist/MsaViewPanel/genomeToMSA.test.js +67 -0
- package/dist/MsaViewPanel/loadProteinDomains.d.ts +8 -2
- package/dist/MsaViewPanel/loadProteinDomains.js +18 -9
- package/dist/MsaViewPanel/loadProteinDomains.test.d.ts +1 -0
- package/dist/MsaViewPanel/loadProteinDomains.test.js +41 -0
- package/dist/MsaViewPanel/model.d.ts +306 -85
- package/dist/MsaViewPanel/model.js +169 -42
- package/dist/MsaViewPanel/model.test.d.ts +1 -0
- package/dist/MsaViewPanel/model.test.js +100 -0
- package/dist/MsaViewPanel/msaCoordToGenomeCoord.d.ts +12 -1
- package/dist/MsaViewPanel/msaCoordToGenomeCoord.js +8 -8
- package/dist/MsaViewPanel/msaCoordToGenomeCoord.test.js +133 -32
- package/dist/MsaViewPanel/msaDataStore.d.ts +7 -3
- package/dist/MsaViewPanel/msaDataStore.js +26 -7
- package/dist/MsaViewPanel/msaDataStore.test.d.ts +1 -0
- package/dist/MsaViewPanel/msaDataStore.test.js +44 -0
- package/dist/MsaViewPanel/observeProteinHighlights.test.js +20 -3
- package/dist/MsaViewPanel/processInit.test.d.ts +1 -0
- package/dist/MsaViewPanel/processInit.test.js +72 -0
- package/dist/MsaViewPanel/resolveConnectedTranscript.d.ts +9 -0
- package/dist/MsaViewPanel/resolveConnectedTranscript.js +122 -0
- package/dist/MsaViewPanel/runLaunch.d.ts +39 -0
- package/dist/MsaViewPanel/runLaunch.js +100 -0
- package/dist/MsaViewPanel/runLaunch.test.d.ts +1 -0
- package/dist/MsaViewPanel/runLaunch.test.js +175 -0
- package/dist/MsaViewPanel/storedData.test.d.ts +1 -0
- package/dist/MsaViewPanel/storedData.test.js +160 -0
- package/dist/MsaViewPanel/structureConnection.d.ts +0 -4
- package/dist/MsaViewPanel/structureConnection.js +0 -19
- package/dist/MsaViewPanel/util.d.ts +39 -0
- package/dist/MsaViewPanel/util.js +44 -0
- package/dist/jbrowse-plugin-msaview.umd.production.min.js +46 -45
- package/dist/jbrowse-plugin-msaview.umd.production.min.js.map +4 -4
- package/dist/utils/blastCache.js +32 -0
- package/dist/utils/blastCache.test.d.ts +1 -0
- package/dist/utils/blastCache.test.js +72 -0
- package/dist/utils/browserAlign.d.ts +42 -0
- package/dist/utils/browserAlign.js +297 -0
- package/dist/utils/browserAlign.test.d.ts +1 -0
- package/dist/utils/browserAlign.test.js +85 -0
- package/dist/utils/ebiBlast.d.ts +13 -2
- package/dist/utils/ebiBlast.js +32 -4
- package/dist/utils/ebiJobDispatcher.d.ts +6 -3
- package/dist/utils/ebiJobDispatcher.js +13 -6
- package/dist/utils/fetch.d.ts +8 -1
- package/dist/utils/fetch.js +28 -2
- package/dist/utils/homologSearch.d.ts +31 -0
- package/dist/utils/homologSearch.js +6 -0
- package/dist/utils/msa.d.ts +5 -11
- package/dist/utils/msa.js +19 -30
- package/dist/utils/msaRows.d.ts +11 -8
- package/dist/utils/msaRows.js +14 -12
- package/dist/utils/ncbiDomains.d.ts +2 -2
- package/dist/utils/ncbiOrthologs.d.ts +11 -1
- package/dist/utils/ncbiOrthologs.js +26 -7
- package/dist/utils/ncbiOrthologs.test.js +23 -1
- package/dist/utils/pantherOrthologs.js +2 -10
- package/dist/utils/phmmer.d.ts +12 -1
- package/dist/utils/phmmer.js +52 -13
- package/dist/utils/poll.d.ts +6 -1
- package/dist/utils/poll.js +7 -2
- package/dist/utils/unirefHomologs.d.ts +94 -0
- package/dist/utils/unirefHomologs.js +193 -0
- package/dist/utils/unirefHomologs.test.d.ts +1 -0
- package/dist/utils/unirefHomologs.test.js +118 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +17 -16
- package/src/LaunchMsaView/components/BlastQuery/BlastAutomaticPanel.tsx +40 -19
- package/src/LaunchMsaView/components/BlastQuery/BlastManualPanel.tsx +1 -0
- package/src/LaunchMsaView/components/BlastQuery/MsaAlgorithmSelect.tsx +7 -2
- package/src/LaunchMsaView/components/BlastQuery/consts.ts +50 -2
- package/src/LaunchMsaView/components/BlastQuery/searchChoiceStorage.test.ts +43 -0
- package/src/LaunchMsaView/components/BlastQuery/searchChoiceStorage.ts +64 -0
- package/src/LaunchMsaView/components/ManualMSALoader/ManualMSALoader.tsx +1 -0
- package/src/LaunchMsaView/components/ManualMSALoader/launchView.ts +4 -0
- package/src/LaunchMsaView/components/OrthologQuery/OrthologPanel.tsx +12 -5
- package/src/LaunchMsaView/components/OrthologQuery/OrthologSourceSelect.tsx +4 -1
- package/src/LaunchMsaView/components/QueryRowSelector.tsx +35 -7
- package/src/LaunchMsaView/detectQueryRow.test.ts +34 -0
- package/src/LaunchMsaView/detectQueryRow.ts +22 -4
- package/src/LaunchMsaView/useQueryRowName.test.ts +27 -0
- package/src/LaunchMsaView/useQueryRowName.ts +5 -1
- package/src/LaunchMsaViewExtensionPoint/index.test.ts +74 -0
- package/src/LaunchMsaViewExtensionPoint/index.ts +53 -12
- package/src/MsaViewPanel/afterCreateAutoruns.ts +150 -81
- package/src/MsaViewPanel/components/LaunchProgress.tsx +46 -4
- package/src/MsaViewPanel/components/MsaViewPanel.test.tsx +43 -0
- package/src/MsaViewPanel/components/MsaViewPanel.tsx +8 -2
- package/src/MsaViewPanel/doLaunchBlast.test.ts +207 -0
- package/src/MsaViewPanel/doLaunchBlast.ts +94 -140
- package/src/MsaViewPanel/doLaunchOrthologs.test.ts +54 -26
- package/src/MsaViewPanel/doLaunchOrthologs.ts +63 -9
- package/src/MsaViewPanel/genomeToMSA.test.ts +76 -0
- package/src/MsaViewPanel/genomeToMSA.ts +8 -4
- package/src/MsaViewPanel/loadProteinDomains.test.ts +52 -0
- package/src/MsaViewPanel/loadProteinDomains.ts +24 -11
- package/src/MsaViewPanel/model.test.ts +121 -0
- package/src/MsaViewPanel/model.ts +200 -49
- package/src/MsaViewPanel/msaCoordToGenomeCoord.test.ts +152 -32
- package/src/MsaViewPanel/msaCoordToGenomeCoord.ts +21 -11
- package/src/MsaViewPanel/msaDataStore.test.ts +54 -0
- package/src/MsaViewPanel/msaDataStore.ts +32 -13
- package/src/MsaViewPanel/observeProteinHighlights.test.ts +27 -3
- package/src/MsaViewPanel/processInit.test.ts +84 -0
- package/src/MsaViewPanel/resolveConnectedTranscript.ts +150 -0
- package/src/MsaViewPanel/runLaunch.test.ts +208 -0
- package/src/MsaViewPanel/runLaunch.ts +141 -0
- package/src/MsaViewPanel/storedData.test.ts +196 -0
- package/src/MsaViewPanel/structureConnection.ts +0 -26
- package/src/MsaViewPanel/util.ts +75 -0
- package/src/utils/blastCache.test.ts +86 -0
- package/src/utils/blastCache.ts +34 -1
- package/src/utils/browserAlign.test.ts +102 -0
- package/src/utils/browserAlign.ts +352 -0
- package/src/utils/ebiBlast.ts +42 -2
- package/src/utils/ebiJobDispatcher.ts +18 -3
- package/src/utils/fetch.ts +29 -2
- package/src/utils/homologSearch.ts +51 -0
- package/src/utils/msa.ts +25 -39
- package/src/utils/msaRows.ts +20 -16
- package/src/utils/ncbiDomains.ts +4 -2
- package/src/utils/ncbiOrthologs.test.ts +25 -0
- package/src/utils/ncbiOrthologs.ts +27 -7
- package/src/utils/pantherOrthologs.ts +6 -11
- package/src/utils/phmmer.ts +62 -12
- package/src/utils/poll.ts +8 -1
- package/src/utils/unirefHomologs.test.ts +149 -0
- package/src/utils/unirefHomologs.ts +323 -0
- package/src/version.ts +1 -1
- package/dist/MsaViewPanel/structureConnection.test.js +0 -53
- package/src/MsaViewPanel/structureConnection.test.ts +0 -62
- /package/dist/{MsaViewPanel/structureConnection.test.d.ts → LaunchMsaView/components/BlastQuery/searchChoiceStorage.test.d.ts} +0 -0
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
export type { MSAFormat } from 'msa-parsers';
|
|
2
2
|
import type { BlastDatabase, MsaAlgorithm, PhmmerDatabase } from '../LaunchMsaView/components/BlastQuery/consts';
|
|
3
|
+
import type { UnirefIdentity } from '../utils/unirefHomologs';
|
|
4
|
+
import type { MsaDataPayload } from './msaDataStore';
|
|
3
5
|
import type { MafRegion, MsaViewInitState } from './types';
|
|
4
|
-
import type {
|
|
6
|
+
import type { TranscriptRef } from './util';
|
|
7
|
+
import type { MenuItem } from '@jbrowse/core/ui';
|
|
5
8
|
import type { Instance } from '@jbrowse/mobx-state-tree';
|
|
6
9
|
import type { LinearGenomeViewModel } from '@jbrowse/plugin-linear-genome-view';
|
|
7
10
|
type LGV = LinearGenomeViewModel;
|
|
@@ -22,8 +25,19 @@ export interface IRegion {
|
|
|
22
25
|
* orphan every row already written.
|
|
23
26
|
*/
|
|
24
27
|
export type BlastParams = {
|
|
25
|
-
|
|
26
|
-
|
|
28
|
+
/** plain JSON, not a Feature: see TranscriptRef */
|
|
29
|
+
selectedTranscript?: TranscriptRef;
|
|
30
|
+
/**
|
|
31
|
+
* The query. The dialog always supplies it, translated from the transcript
|
|
32
|
+
* the user picked. A session spec may instead name a UniProt `accession`
|
|
33
|
+
* and have the sequence fetched at launch, or name a `connectedTranscript`
|
|
34
|
+
* on the view and have it translated from the genome (see
|
|
35
|
+
* resolveConnectedTranscript).
|
|
36
|
+
*/
|
|
37
|
+
proteinSequence?: string;
|
|
38
|
+
accession?: string;
|
|
39
|
+
/** hits to keep: phmmer's `nhits`, blastp's `alignments`; 100 when omitted */
|
|
40
|
+
maxHits?: number;
|
|
27
41
|
} & ({
|
|
28
42
|
/** absent on params written before phmmer existed, which were all blastp */
|
|
29
43
|
searchProgram?: 'blastp';
|
|
@@ -37,17 +51,28 @@ export type BlastParams = {
|
|
|
37
51
|
msaAlgorithm?: undefined;
|
|
38
52
|
});
|
|
39
53
|
/**
|
|
40
|
-
* Where the
|
|
54
|
+
* Where the homolog set comes from. NCBI's ortholog sets cover vertebrates and
|
|
41
55
|
* insects; PANTHER's span its 144 reference proteomes, human to yeast to
|
|
42
|
-
* Arabidopsis
|
|
56
|
+
* Arabidopsis; a UniRef cluster is every UniProtKB entry within 50% (or 90%)
|
|
57
|
+
* identity of the query, one per species, from any organism at all -- and the
|
|
58
|
+
* one source of the three whose rows need no ortholog call, only UniProt's
|
|
59
|
+
* REST api (see utils/unirefHomologs.ts).
|
|
43
60
|
*/
|
|
44
|
-
export declare const orthologSources: readonly ["ncbi", "panther"];
|
|
61
|
+
export declare const orthologSources: readonly ["ncbi", "panther", "uniref"];
|
|
45
62
|
export type OrthologSource = (typeof orthologSources)[number];
|
|
46
63
|
export interface OrthologParams {
|
|
47
64
|
/** NCBI taxon id of the assembly the query gene came from */
|
|
48
65
|
taxId: number;
|
|
49
66
|
/** `ncbi` when omitted, so every launch written before this key keeps its meaning */
|
|
50
67
|
source?: OrthologSource;
|
|
68
|
+
/** UniRef only: the cluster identity level, 50 when omitted */
|
|
69
|
+
identity?: UnirefIdentity;
|
|
70
|
+
/**
|
|
71
|
+
* UniRef only: keep members from reference proteomes, which is what makes a
|
|
72
|
+
* cluster one good entry per species rather than every strain and isolate
|
|
73
|
+
* UniProtKB holds. `true` when omitted.
|
|
74
|
+
*/
|
|
75
|
+
referenceProteomesOnly?: boolean;
|
|
51
76
|
/**
|
|
52
77
|
* taxon ids to include as rows. The query taxon has its own row already, so
|
|
53
78
|
* it is excluded from this set whether or not it is named.
|
|
@@ -65,7 +90,8 @@ export interface OrthologParams {
|
|
|
65
90
|
/** candidate gene identifiers off the feature, tried in order */
|
|
66
91
|
geneCandidates: string[];
|
|
67
92
|
msaAlgorithm: MsaAlgorithm;
|
|
68
|
-
|
|
93
|
+
/** plain JSON, not a Feature: see TranscriptRef */
|
|
94
|
+
selectedTranscript?: TranscriptRef;
|
|
69
95
|
/**
|
|
70
96
|
* The query row, named `<species>_query`. The launch dialog always supplies
|
|
71
97
|
* it, translated from the
|
|
@@ -85,7 +111,7 @@ export default function stateModelFactory(): import("@jbrowse/mobx-state-tree").
|
|
|
85
111
|
id: import("@jbrowse/mobx-state-tree").IOptionalIType<import("@jbrowse/mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
86
112
|
displayName: import("@jbrowse/mobx-state-tree").IMaybe<import("@jbrowse/mobx-state-tree").ISimpleType<string>>;
|
|
87
113
|
minimized: import("@jbrowse/mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
88
|
-
}, "id" | "type" | "autoTreeAreaWidth" | "drawLabels" | "drawNodeBubbles" | "drawTree" | "labelsAlignRight" | "showBranchLen" | "treeAreaWidth" | "treeWidth" | "bgColor" | "colorSchemeName" | "msaFormat" | "showColumnStats" | "allowedGappyness" | "colWidth" | "collapsed" | "
|
|
114
|
+
}, "id" | "type" | "autoTreeAreaWidth" | "drawLabels" | "drawNodeBubbles" | "drawTree" | "labelsAlignRight" | "showBranchLen" | "treeAreaWidth" | "treeWidth" | "bgColor" | "colorSchemeName" | "msaFormat" | "showColumnStats" | "allowedGappyness" | "colWidth" | "collapsed" | "columnTracks" | "currentAlignment" | "data" | "drawMsaLetters" | "gffFilehandle" | "height" | "hideGaps" | "highlightColumns" | "highlights" | "msaFilehandle" | "relativeTo" | "residueMappings" | "rowHeight" | "scrollX" | "scrollY" | "scrollZoom" | "showDomainLegend" | "showDomains" | "showOnly" | "subFeatureRows" | "treeFilehandle" | "treeMetadataFilehandle" | "turnedOffFeatures" | "turnedOffTracks"> & Omit<Omit<Omit<{}, "autoTreeAreaWidth" | "drawLabels" | "drawNodeBubbles" | "drawTree" | "labelsAlignRight" | "showBranchLen" | "treeAreaWidth" | "treeWidth"> & {
|
|
89
115
|
drawLabels: import("@jbrowse/mobx-state-tree").IOptionalIType<import("@jbrowse/mobx-state-tree").ISimpleType<boolean>, [undefined]>;
|
|
90
116
|
labelsAlignRight: import("@jbrowse/mobx-state-tree").IOptionalIType<import("@jbrowse/mobx-state-tree").ISimpleType<boolean>, [undefined]>;
|
|
91
117
|
treeAreaWidth: import("@jbrowse/mobx-state-tree").IOptionalIType<import("@jbrowse/mobx-state-tree").ISimpleType<number>, [undefined]>;
|
|
@@ -98,8 +124,8 @@ export default function stateModelFactory(): import("@jbrowse/mobx-state-tree").
|
|
|
98
124
|
bgColor: import("@jbrowse/mobx-state-tree").IOptionalIType<import("@jbrowse/mobx-state-tree").ISimpleType<boolean>, [undefined]>;
|
|
99
125
|
colorSchemeName: import("@jbrowse/mobx-state-tree").IOptionalIType<import("@jbrowse/mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
100
126
|
showColumnStats: import("@jbrowse/mobx-state-tree").IOptionalIType<import("@jbrowse/mobx-state-tree").ISimpleType<boolean>, [undefined]>;
|
|
101
|
-
msaFormat: import("@jbrowse/mobx-state-tree").IMaybe<import("@jbrowse/mobx-state-tree").ISimpleType<import("
|
|
102
|
-
}, "id" | "type" | "allowedGappyness" | "colWidth" | "collapsed" | "
|
|
127
|
+
msaFormat: import("@jbrowse/mobx-state-tree").IMaybe<import("@jbrowse/mobx-state-tree").ISimpleType<import("react-msaview").MSAFormat>>;
|
|
128
|
+
}, "id" | "type" | "allowedGappyness" | "colWidth" | "collapsed" | "columnTracks" | "currentAlignment" | "data" | "drawMsaLetters" | "gffFilehandle" | "height" | "hideGaps" | "highlightColumns" | "highlights" | "msaFilehandle" | "relativeTo" | "residueMappings" | "rowHeight" | "scrollX" | "scrollY" | "scrollZoom" | "showDomainLegend" | "showDomains" | "showOnly" | "subFeatureRows" | "treeFilehandle" | "treeMetadataFilehandle" | "turnedOffFeatures" | "turnedOffTracks"> & {
|
|
103
129
|
id: import("@jbrowse/mobx-state-tree").IOptionalIType<import("@jbrowse/mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
104
130
|
showDomains: import("@jbrowse/mobx-state-tree").IOptionalIType<import("@jbrowse/mobx-state-tree").ISimpleType<boolean>, [undefined]>;
|
|
105
131
|
showDomainLegend: import("@jbrowse/mobx-state-tree").IOptionalIType<import("@jbrowse/mobx-state-tree").ISimpleType<boolean>, [undefined]>;
|
|
@@ -494,6 +520,8 @@ export default function stateModelFactory(): import("@jbrowse/mobx-state-tree").
|
|
|
494
520
|
collapsed: import("@jbrowse/mobx-state-tree").IOptionalIType<import("@jbrowse/mobx-state-tree").IArrayType<import("@jbrowse/mobx-state-tree").ISimpleType<string>>, [undefined]>;
|
|
495
521
|
showOnly: import("@jbrowse/mobx-state-tree").IMaybe<import("@jbrowse/mobx-state-tree").ISimpleType<string>>;
|
|
496
522
|
turnedOffTracks: import("@jbrowse/mobx-state-tree").IOptionalIType<import("@jbrowse/mobx-state-tree").IMapType<import("@jbrowse/mobx-state-tree").ISimpleType<boolean>>, [undefined]>;
|
|
523
|
+
columnTracks: import("@jbrowse/mobx-state-tree").IOptionalIType<import("@jbrowse/mobx-state-tree").IArrayType<import("@jbrowse/mobx-state-tree").IType<import("react-msaview").ColumnTrackSpec, import("react-msaview").ColumnTrackSpec, import("react-msaview").ColumnTrackSpec>>, [undefined]>;
|
|
524
|
+
residueMappings: import("@jbrowse/mobx-state-tree").IOptionalIType<import("@jbrowse/mobx-state-tree").IArrayType<import("@jbrowse/mobx-state-tree").IType<import("react-msaview").ResidueMapping, import("react-msaview").ResidueMapping, import("react-msaview").ResidueMapping>>, [undefined]>;
|
|
497
525
|
data: import("@jbrowse/mobx-state-tree").IOptionalIType<import("@jbrowse/mobx-state-tree").IModelType<{
|
|
498
526
|
tree: import("@jbrowse/mobx-state-tree").IMaybe<import("@jbrowse/mobx-state-tree").ISimpleType<string>>;
|
|
499
527
|
msa: import("@jbrowse/mobx-state-tree").IMaybe<import("@jbrowse/mobx-state-tree").ISimpleType<string>>;
|
|
@@ -507,15 +535,18 @@ export default function stateModelFactory(): import("@jbrowse/mobx-state-tree").
|
|
|
507
535
|
}, import("@jbrowse/mobx-state-tree")._NotCustomized, {
|
|
508
536
|
[k: string]: string | undefined;
|
|
509
537
|
}>, [undefined]>;
|
|
510
|
-
|
|
538
|
+
turnedOffFeatures: import("@jbrowse/mobx-state-tree").IOptionalIType<import("@jbrowse/mobx-state-tree").IMapType<import("@jbrowse/mobx-state-tree").ISimpleType<boolean>>, [undefined]>;
|
|
511
539
|
relativeTo: import("@jbrowse/mobx-state-tree").IMaybe<import("@jbrowse/mobx-state-tree").ISimpleType<string>>;
|
|
512
540
|
highlightColumns: import("@jbrowse/mobx-state-tree").IType<number[] | undefined, number[] | undefined, number[] | undefined>;
|
|
513
|
-
|
|
541
|
+
highlights: import("@jbrowse/mobx-state-tree").IOptionalIType<import("@jbrowse/mobx-state-tree").IArrayType<import("@jbrowse/mobx-state-tree").IType<import("react-msaview").Highlight, import("react-msaview").Highlight, import("react-msaview").Highlight>>, [undefined]>;
|
|
542
|
+
}, "init" | "querySeqName" | "querySeqOffset" | "zoomToBaseLevel" | "connectedViewId" | "connectedFeature" | "connectedTranscript" | "blastParams" | "orthologParams" | "uniprotId" | "dataStoreId" | "mafRegion"> & {
|
|
514
543
|
connectedViewId: import("@jbrowse/mobx-state-tree").IMaybe<import("@jbrowse/mobx-state-tree").ISimpleType<string>>;
|
|
515
544
|
connectedFeature: import("@jbrowse/mobx-state-tree").IType<any, any, any>;
|
|
545
|
+
connectedTranscript: import("@jbrowse/mobx-state-tree").IMaybe<import("@jbrowse/mobx-state-tree").ISimpleType<string>>;
|
|
516
546
|
blastParams: import("@jbrowse/mobx-state-tree").IType<BlastParams | undefined, BlastParams | undefined, BlastParams | undefined>;
|
|
517
547
|
orthologParams: import("@jbrowse/mobx-state-tree").IType<OrthologParams | undefined, OrthologParams | undefined, OrthologParams | undefined>;
|
|
518
548
|
querySeqName: import("@jbrowse/mobx-state-tree").IType<string | undefined, string, string>;
|
|
549
|
+
querySeqOffset: import("@jbrowse/mobx-state-tree").IType<number | undefined, number, number>;
|
|
519
550
|
uniprotId: import("@jbrowse/mobx-state-tree").IMaybe<import("@jbrowse/mobx-state-tree").ISimpleType<string>>;
|
|
520
551
|
zoomToBaseLevel: import("@jbrowse/mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
521
552
|
init: import("@jbrowse/mobx-state-tree").IType<MsaViewInitState | undefined, MsaViewInitState | undefined, MsaViewInitState | undefined>;
|
|
@@ -524,7 +555,7 @@ export default function stateModelFactory(): import("@jbrowse/mobx-state-tree").
|
|
|
524
555
|
}, {
|
|
525
556
|
width: number;
|
|
526
557
|
} & {
|
|
527
|
-
menuItems():
|
|
558
|
+
menuItems(): MenuItem[];
|
|
528
559
|
} & {
|
|
529
560
|
setDisplayName(name: string): void;
|
|
530
561
|
setWidth(newWidth: number): void;
|
|
@@ -550,12 +581,11 @@ export default function stateModelFactory(): import("@jbrowse/mobx-state-tree").
|
|
|
550
581
|
setColorSchemeName(name: string): void;
|
|
551
582
|
setBgColor(arg: boolean): void;
|
|
552
583
|
setShowColumnStats(arg: boolean): void;
|
|
553
|
-
setMSAFormat(arg?: import("
|
|
584
|
+
setMSAFormat(arg?: import("react-msaview").MSAFormat): void;
|
|
554
585
|
} & {
|
|
555
586
|
headerHeight: number;
|
|
556
587
|
status: {
|
|
557
588
|
msg: string;
|
|
558
|
-
url?: string;
|
|
559
589
|
onCancel?: () => void;
|
|
560
590
|
} | undefined;
|
|
561
591
|
highResScaleFactor: number;
|
|
@@ -573,12 +603,18 @@ export default function stateModelFactory(): import("@jbrowse/mobx-state-tree").
|
|
|
573
603
|
descendantNames: string[];
|
|
574
604
|
} | undefined;
|
|
575
605
|
highlightedColumns: number[] | undefined;
|
|
606
|
+
transientHighlights: Record<string, import("react-msaview").Highlight[]>;
|
|
576
607
|
minimapHeight: number;
|
|
577
608
|
conservationTrackHeight: number;
|
|
609
|
+
columnTrackHeights: Record<string, number>;
|
|
578
610
|
sequenceLogoTrackHeight: number;
|
|
611
|
+
arcTrackHeight: number;
|
|
579
612
|
marginLeft: number;
|
|
580
613
|
error: unknown;
|
|
581
|
-
|
|
614
|
+
warnings: string[];
|
|
615
|
+
resetCount: number;
|
|
616
|
+
hostCarriesData: boolean;
|
|
617
|
+
annotations: import("react-msaview").Annotation[];
|
|
582
618
|
} & {
|
|
583
619
|
drawRelativeTo(id: string | undefined): void;
|
|
584
620
|
setHideGaps(arg: boolean): void;
|
|
@@ -589,8 +625,14 @@ export default function stateModelFactory(): import("@jbrowse/mobx-state-tree").
|
|
|
589
625
|
setHighResScaleFactor(arg: number): void;
|
|
590
626
|
setHeight(height: number): void;
|
|
591
627
|
setError(error?: unknown): void;
|
|
628
|
+
addWarning(warning: string): void;
|
|
629
|
+
clearWarnings(): void;
|
|
630
|
+
setHostCarriesData(arg: boolean): void;
|
|
592
631
|
setMousePos(col?: number, row?: number): void;
|
|
593
632
|
setHighlightedColumns(columns?: number[]): void;
|
|
633
|
+
setHighlights(highlights: import("react-msaview").Highlight[]): void;
|
|
634
|
+
applyHighlight(owner: string, highlights: import("react-msaview").Highlight[]): void;
|
|
635
|
+
clearHighlight(owner: string): void;
|
|
594
636
|
setShowDomains(arg: boolean): void;
|
|
595
637
|
setShowDomainLegend(arg: boolean): void;
|
|
596
638
|
setSubFeatureRows(arg: boolean): void;
|
|
@@ -608,18 +650,20 @@ export default function stateModelFactory(): import("@jbrowse/mobx-state-tree").
|
|
|
608
650
|
}): void;
|
|
609
651
|
setMSAFilehandle(msaFilehandle?: import("@jbrowse/core/util").FileLocation): void;
|
|
610
652
|
setTreeFilehandle(treeFilehandle?: import("@jbrowse/core/util").FileLocation): void;
|
|
653
|
+
setTreeMetadataFilehandle(treeMetadataFilehandle?: import("@jbrowse/core/util").FileLocation): void;
|
|
611
654
|
setGFFFilehandle(gffFilehandle?: import("@jbrowse/core/util").FileLocation): void;
|
|
612
655
|
setMSA(result: string): void;
|
|
613
656
|
setTree(result: string): void;
|
|
614
657
|
setTreeMetadata(result: string): void;
|
|
658
|
+
setGFF(result: string): void;
|
|
615
659
|
} & {
|
|
616
660
|
readonly hideGapsEffective: boolean;
|
|
617
661
|
readonly realAllowedGappyness: number;
|
|
618
662
|
readonly actuallyShowDomains: boolean;
|
|
663
|
+
readonly hostRestoresData: boolean;
|
|
619
664
|
readonly viewInitialized: boolean;
|
|
620
665
|
readonly width: number;
|
|
621
666
|
} & {
|
|
622
|
-
extraViewMenuItems(): never[];
|
|
623
667
|
readonly colorScheme: Record<string, string>;
|
|
624
668
|
readonly header: Record<string, unknown> | {
|
|
625
669
|
info: string;
|
|
@@ -636,9 +680,10 @@ export default function stateModelFactory(): import("@jbrowse/mobx-state-tree").
|
|
|
636
680
|
readonly alignmentNames: string[];
|
|
637
681
|
readonly noTree: boolean;
|
|
638
682
|
readonly noDomains: boolean;
|
|
683
|
+
readonly unshareableData: import("react-msaview").UnshareableData[];
|
|
639
684
|
menuItems(): never[];
|
|
640
685
|
readonly treeMetadata: Record<string, Record<string, string> | undefined>;
|
|
641
|
-
readonly MSA: import("
|
|
686
|
+
readonly MSA: import("react-msaview").MSAParserType | null;
|
|
642
687
|
readonly numColumns: number;
|
|
643
688
|
readonly tree: import("react-msaview").NodeWithIds;
|
|
644
689
|
readonly rowNames: string[];
|
|
@@ -659,7 +704,7 @@ export default function stateModelFactory(): import("@jbrowse/mobx-state-tree").
|
|
|
659
704
|
}[]>;
|
|
660
705
|
readonly rows: [string, string][];
|
|
661
706
|
readonly numRows: number;
|
|
662
|
-
|
|
707
|
+
seqPosIndex(rowName: string): Int32Array | undefined;
|
|
663
708
|
readonly rowMap: Map<string, string>;
|
|
664
709
|
readonly columns: Map<string, string>;
|
|
665
710
|
readonly columns2d: string[];
|
|
@@ -677,29 +722,74 @@ export default function stateModelFactory(): import("@jbrowse/mobx-state-tree").
|
|
|
677
722
|
readonly hierarchy: import("react-msaview").HierarchyNode<import("react-msaview").NodeWithIdsAndLength>;
|
|
678
723
|
readonly totalHeight: number;
|
|
679
724
|
readonly leaves: import("react-msaview").HierarchyNode<import("react-msaview").NodeWithIdsAndLength>[];
|
|
725
|
+
readonly rootToTipLength: number;
|
|
680
726
|
readonly maxBranchLength: number;
|
|
727
|
+
readonly pxPerBranchLength: number;
|
|
681
728
|
readonly maxDepthToLeaf: number;
|
|
682
729
|
readonly allBranchesLength0: boolean;
|
|
683
730
|
readonly showBranchLenEffective: boolean;
|
|
684
731
|
} & {
|
|
685
732
|
readonly totalWidth: number;
|
|
733
|
+
} & {
|
|
734
|
+
readonly showMsaLetters: boolean;
|
|
735
|
+
readonly showTreeText: boolean;
|
|
736
|
+
} & {
|
|
737
|
+
readonly labelWidthMap: Map<string, number>;
|
|
738
|
+
readonly labelWidthScale: number;
|
|
739
|
+
readonly labelsWidth: number;
|
|
740
|
+
readonly secondaryStructureConsensus: string | undefined;
|
|
741
|
+
readonly seqConsensus: string | undefined;
|
|
742
|
+
readonly secondaryStructureArcs: import("react-msaview").Arc[] | undefined;
|
|
743
|
+
readonly adapterTrackModels: import("react-msaview").BasicTrack[];
|
|
744
|
+
readonly columnTrackContent: Map<string, {
|
|
745
|
+
values?: number[];
|
|
746
|
+
data?: string;
|
|
747
|
+
arcs?: import("react-msaview").Arc[];
|
|
748
|
+
}>;
|
|
749
|
+
readonly columnTrackModels: import("react-msaview").BasicTrack[];
|
|
750
|
+
readonly basePairTrackModels: import("react-msaview").BasicTrack[];
|
|
751
|
+
readonly computedTrackModels: import("react-msaview").BasicTrack[];
|
|
752
|
+
readonly tracks: import("react-msaview").BasicTrack[];
|
|
753
|
+
readonly turnedOnTracks: import("react-msaview").BasicTrack[];
|
|
754
|
+
readonly showHorizontalScrollbar: boolean;
|
|
755
|
+
visibleColToRowLetter(rowName: string, visibleCol: number): string | undefined;
|
|
756
|
+
visibleColToSeqPos(rowName: string, visibleCol: number): number | undefined;
|
|
757
|
+
visibleColToSeqPosOneBased(rowName: string, visibleCol: number): number | undefined;
|
|
758
|
+
globalColToVisibleCol(globalCol: number): number | undefined;
|
|
759
|
+
visibleColToGlobalCol(visibleCol: number): number;
|
|
760
|
+
seqPosToGlobalCol(rowName: string, seqPos: number): number | undefined;
|
|
761
|
+
seqPosToVisibleCol(rowName: string, seqPos: number): number | undefined;
|
|
762
|
+
readonly residueMappingProblems: import("react-msaview").ResidueMappingProblem[];
|
|
763
|
+
readonly usableResidueMappings: import("react-msaview").ResidueMapping[];
|
|
764
|
+
readonly mappedStructures: {
|
|
765
|
+
row: string;
|
|
766
|
+
structure: import("react-msaview").MappedStructure;
|
|
767
|
+
}[];
|
|
768
|
+
structureResidue(rowName: string, seqPos: number, structureId?: string): import("react-msaview").StructureResidue | undefined;
|
|
769
|
+
rowResidue(structureId: string, position: number, asymId?: string): import("react-msaview").RowResidue | undefined;
|
|
770
|
+
} & {
|
|
771
|
+
readonly msaAreaHeight: number;
|
|
772
|
+
readonly totalTrackAreaHeight: number;
|
|
773
|
+
readonly annotationTypes: Map<string, import("react-msaview").Annotation>;
|
|
774
|
+
readonly filteredAnnotations: import("react-msaview").Annotation[];
|
|
775
|
+
readonly annotationsByRow: Record<string, import("react-msaview").Annotation[]>;
|
|
776
|
+
} & {
|
|
777
|
+
readonly showVerticalScrollbar: boolean;
|
|
686
778
|
} & {
|
|
687
779
|
readonly dataInitialized: boolean;
|
|
688
780
|
readonly blocksX: number[];
|
|
689
781
|
readonly blocksY: number[];
|
|
690
|
-
readonly visibleMsaHeight: number;
|
|
691
782
|
} & {
|
|
692
783
|
readonly blocks2d: (readonly [number, number])[];
|
|
693
784
|
readonly isLoading: boolean;
|
|
694
785
|
readonly maxScrollX: number;
|
|
695
786
|
readonly maxScrollY: number;
|
|
696
|
-
readonly showMsaLetters: boolean;
|
|
697
|
-
readonly showTreeText: boolean;
|
|
698
787
|
} & {
|
|
699
788
|
setDrawMsaLetters(arg: boolean): void;
|
|
700
789
|
setScrollZoom(arg: boolean): void;
|
|
701
790
|
setHoveredTreeNode(nodeId?: string): void;
|
|
702
791
|
calculateNeighborJoiningTreeFromMSA(): void;
|
|
792
|
+
replaceTree(newick: string): void;
|
|
703
793
|
resetZoom(): void;
|
|
704
794
|
zoomOutHorizontal(): void;
|
|
705
795
|
zoomInHorizontal(): void;
|
|
@@ -710,46 +800,23 @@ export default function stateModelFactory(): import("@jbrowse/mobx-state-tree").
|
|
|
710
800
|
zoomToPos(scaleFactor: number, offsetX: number, offsetY: number): void;
|
|
711
801
|
doScrollY(deltaY: number): void;
|
|
712
802
|
setScrollY(n: number): void;
|
|
713
|
-
setAnnotations(annotations: import("
|
|
714
|
-
setDomains(data?: Record<string, import("
|
|
803
|
+
setAnnotations(annotations: import("react-msaview").Annotation[]): void;
|
|
804
|
+
setDomains(data?: Record<string, import("react-msaview").InterProScanResults>): void;
|
|
715
805
|
applyGFFText(gffText: string): void;
|
|
716
806
|
doScrollX(deltaX: number): void;
|
|
717
807
|
setScrollX(n: number): void;
|
|
808
|
+
setColumnTracks(tracks: import("react-msaview").ColumnTrackSpec[]): void;
|
|
809
|
+
setResidueMappings(mappings: import("react-msaview").ResidueMapping[]): void;
|
|
718
810
|
toggleTrack(id: string): void;
|
|
719
811
|
setStatus(status?: {
|
|
720
812
|
msg: string;
|
|
721
|
-
url?: string;
|
|
722
813
|
onCancel?: () => void;
|
|
723
814
|
}): void;
|
|
724
|
-
} & {
|
|
725
|
-
readonly labelWidthMap: Map<string, number>;
|
|
726
|
-
readonly labelWidthScale: number;
|
|
727
|
-
readonly labelsWidth: number;
|
|
728
|
-
readonly secondaryStructureConsensus: string | undefined;
|
|
729
|
-
readonly seqConsensus: string | undefined;
|
|
730
|
-
readonly adapterTrackModels: import("react-msaview").BasicTrack[];
|
|
731
|
-
readonly tracks: import("react-msaview").BasicTrack[];
|
|
732
|
-
readonly turnedOnTracks: import("react-msaview").BasicTrack[];
|
|
733
|
-
readonly showHorizontalScrollbar: boolean;
|
|
734
|
-
visibleColToRowLetter(rowName: string, visibleCol: number): string | undefined;
|
|
735
|
-
visibleColToSeqPos(rowName: string, visibleCol: number): number | undefined;
|
|
736
|
-
visibleColToSeqPosOneBased(rowName: string, visibleCol: number): number | undefined;
|
|
737
|
-
globalColToVisibleCol(globalCol: number): number | undefined;
|
|
738
|
-
seqPosToGlobalCol(rowName: string, seqPos: number): number;
|
|
739
|
-
seqPosToVisibleCol(rowName: string, seqPos: number): number | undefined;
|
|
740
|
-
} & {
|
|
741
|
-
readonly msaAreaHeight: number;
|
|
742
|
-
readonly totalTrackAreaHeight: number;
|
|
743
|
-
readonly annotationTypes: Map<string, import("msa-parsers").Annotation>;
|
|
744
|
-
readonly filteredAnnotations: import("msa-parsers").Annotation[];
|
|
745
|
-
readonly annotationsByRow: Record<string, import("msa-parsers").Annotation[]>;
|
|
746
|
-
} & {
|
|
747
|
-
readonly showVerticalScrollbar: boolean;
|
|
748
815
|
} & {
|
|
749
816
|
readonly verticalScrollbarWidth: 0 | 20;
|
|
750
817
|
readonly msaCanvasWidth: number;
|
|
751
|
-
readonly segmentDomainTypes: import("
|
|
752
|
-
readonly categoricalDomainTypes: import("
|
|
818
|
+
readonly segmentDomainTypes: import("react-msaview").Annotation[];
|
|
819
|
+
readonly categoricalDomainTypes: import("react-msaview").Annotation[];
|
|
753
820
|
readonly fillPalette: {
|
|
754
821
|
[x: string]: string;
|
|
755
822
|
};
|
|
@@ -757,16 +824,17 @@ export default function stateModelFactory(): import("@jbrowse/mobx-state-tree").
|
|
|
757
824
|
[k: string]: string;
|
|
758
825
|
};
|
|
759
826
|
readonly segmentLabels: Map<string, string>;
|
|
760
|
-
readonly visibleDomainTypes: import("
|
|
827
|
+
readonly visibleDomainTypes: import("react-msaview").Annotation[];
|
|
761
828
|
readonly domainBands: Map<string, import("react-msaview").DomainBand[]>;
|
|
762
829
|
readonly domainBandsByStart: Map<string, import("react-msaview").DomainBand[]>;
|
|
763
|
-
readonly mouseOverDomains: import("
|
|
830
|
+
readonly mouseOverDomains: import("react-msaview").Annotation[];
|
|
764
831
|
readonly referenceRowIndex: number | undefined;
|
|
765
832
|
readonly hoveredRowIndices: number[];
|
|
766
833
|
readonly highlightedColumnRuns: {
|
|
767
834
|
start: number;
|
|
768
835
|
end: number;
|
|
769
836
|
}[];
|
|
837
|
+
readonly resolvedHighlights: import("react-msaview").ResolvedHighlight[];
|
|
770
838
|
readonly mouseOverColumnStats: {
|
|
771
839
|
col: number;
|
|
772
840
|
total: number;
|
|
@@ -790,16 +858,12 @@ export default function stateModelFactory(): import("@jbrowse/mobx-state-tree").
|
|
|
790
858
|
} & {
|
|
791
859
|
setHeaderHeight(arg: number): void;
|
|
792
860
|
setConservationTrackHeight(arg: number): void;
|
|
861
|
+
setColumnTrackHeight(id: string, height: number): void;
|
|
793
862
|
setSequenceLogoTrackHeight(arg: number): void;
|
|
863
|
+
setArcTrackHeight(arg: number): void;
|
|
794
864
|
reset(): void;
|
|
795
|
-
exportSVG(opts:
|
|
796
|
-
|
|
797
|
-
includeMinimap?: boolean;
|
|
798
|
-
includeTracks?: boolean;
|
|
799
|
-
exportType: "entire" | "viewport";
|
|
800
|
-
}): Promise<void>;
|
|
801
|
-
initFilter(arg: string): void;
|
|
802
|
-
setFilter(arg: string, flag: boolean): void;
|
|
865
|
+
exportSVG(opts: import("react-msaview").ExportSvgOptions): Promise<void>;
|
|
866
|
+
setFilter(accession: string, shown: boolean): void;
|
|
803
867
|
fit(): void;
|
|
804
868
|
fitVertically(): void;
|
|
805
869
|
fitHorizontally(): void;
|
|
@@ -807,19 +871,11 @@ export default function stateModelFactory(): import("@jbrowse/mobx-state-tree").
|
|
|
807
871
|
} & {
|
|
808
872
|
rid: string | undefined;
|
|
809
873
|
progress: string;
|
|
810
|
-
error: unknown;
|
|
811
874
|
loadingStoredData: boolean;
|
|
812
875
|
isStoringData: boolean;
|
|
876
|
+
lastStoredData: MsaDataPayload | undefined;
|
|
877
|
+
launchController: AbortController | undefined;
|
|
813
878
|
domainsRequested: boolean;
|
|
814
|
-
} & {
|
|
815
|
-
/**
|
|
816
|
-
* #method
|
|
817
|
-
*/
|
|
818
|
-
getRowByName(rowName: string): [string, string] | undefined;
|
|
819
|
-
/**
|
|
820
|
-
* #method
|
|
821
|
-
*/
|
|
822
|
-
getSequenceByRowName(rowName: string): string | undefined;
|
|
823
879
|
} & {
|
|
824
880
|
/**
|
|
825
881
|
* #getter
|
|
@@ -860,10 +916,6 @@ export default function stateModelFactory(): import("@jbrowse/mobx-state-tree").
|
|
|
860
916
|
* #action
|
|
861
917
|
*/
|
|
862
918
|
setZoomToBaseLevel(arg: boolean): void;
|
|
863
|
-
/**
|
|
864
|
-
* #action
|
|
865
|
-
*/
|
|
866
|
-
setError(e: unknown): void;
|
|
867
919
|
/**
|
|
868
920
|
* #action
|
|
869
921
|
*/
|
|
@@ -876,6 +928,10 @@ export default function stateModelFactory(): import("@jbrowse/mobx-state-tree").
|
|
|
876
928
|
* #action
|
|
877
929
|
*/
|
|
878
930
|
setBlastParams(args?: BlastParams): void;
|
|
931
|
+
/**
|
|
932
|
+
* #action
|
|
933
|
+
*/
|
|
934
|
+
setConnectedFeature(arg?: Record<string, unknown>): void;
|
|
879
935
|
/**
|
|
880
936
|
* #action
|
|
881
937
|
*/
|
|
@@ -888,6 +944,10 @@ export default function stateModelFactory(): import("@jbrowse/mobx-state-tree").
|
|
|
888
944
|
* #action
|
|
889
945
|
*/
|
|
890
946
|
setQuerySeqName(arg: string): void;
|
|
947
|
+
/**
|
|
948
|
+
* #action
|
|
949
|
+
*/
|
|
950
|
+
setQuerySeqOffset(arg: number): void;
|
|
891
951
|
/**
|
|
892
952
|
* #action
|
|
893
953
|
*/
|
|
@@ -908,6 +968,31 @@ export default function stateModelFactory(): import("@jbrowse/mobx-state-tree").
|
|
|
908
968
|
* #action
|
|
909
969
|
*/
|
|
910
970
|
setIsStoringData(arg: boolean): void;
|
|
971
|
+
/**
|
|
972
|
+
* #action
|
|
973
|
+
*/
|
|
974
|
+
setLastStoredData(arg?: MsaDataPayload): void;
|
|
975
|
+
/**
|
|
976
|
+
* #action
|
|
977
|
+
*/
|
|
978
|
+
setLaunchController(arg?: AbortController): void;
|
|
979
|
+
/**
|
|
980
|
+
* #action
|
|
981
|
+
* Abandon the launch, in flight or failed. The EBI job keeps running on
|
|
982
|
+
* their side — nothing here can recall it, and its JobLink stays valid —
|
|
983
|
+
* so this only stops the polling and the writes it would make. Dropping
|
|
984
|
+
* the request (the params, or the init) is what keeps it from refiring on
|
|
985
|
+
* the next reload; the view falls back to the import form, which is where
|
|
986
|
+
* react-msaview's own cancel leaves it too.
|
|
987
|
+
*/
|
|
988
|
+
cancelLaunch(): void;
|
|
989
|
+
/**
|
|
990
|
+
* #action
|
|
991
|
+
* Run the failed request again. The request IS the params, so re-stating
|
|
992
|
+
* them is the whole retry: each is a frozen property, and a fresh object
|
|
993
|
+
* is a change the launch autoruns wake on.
|
|
994
|
+
*/
|
|
995
|
+
retryLaunch(): void;
|
|
911
996
|
/**
|
|
912
997
|
* #action
|
|
913
998
|
*/
|
|
@@ -921,27 +1006,160 @@ export default function stateModelFactory(): import("@jbrowse/mobx-state-tree").
|
|
|
921
1006
|
* #action
|
|
922
1007
|
*/
|
|
923
1008
|
setMouseClickPos(col?: number, row?: number): void;
|
|
1009
|
+
} & {
|
|
1010
|
+
/**
|
|
1011
|
+
* #action
|
|
1012
|
+
* overrides base
|
|
1013
|
+
*
|
|
1014
|
+
* react-msaview's reset applies a snapshot filtered to its own
|
|
1015
|
+
* `preservedOnReset` list, and a downstream property is never on it:
|
|
1016
|
+
* returning to the import form dropped the view's name, un-minimized
|
|
1017
|
+
* it, and forgot the zoom-on-click preference. The volatiles fail the
|
|
1018
|
+
* other way -- applySnapshot cannot reach them, so the last file's
|
|
1019
|
+
* state carried into the next one and the domain auto-load, which fires
|
|
1020
|
+
* once per view, never fired again.
|
|
1021
|
+
*/
|
|
1022
|
+
reset(): void;
|
|
924
1023
|
} & {
|
|
925
1024
|
/**
|
|
926
1025
|
* #method
|
|
1026
|
+
* overrides base
|
|
927
1027
|
*/
|
|
928
|
-
|
|
929
|
-
label: string;
|
|
930
|
-
checked: boolean;
|
|
931
|
-
type: string;
|
|
932
|
-
onClick: () => void;
|
|
933
|
-
}[];
|
|
1028
|
+
menuItems(): MenuItem[];
|
|
934
1029
|
} & {
|
|
935
1030
|
afterCreate(): void;
|
|
936
1031
|
}, import("@jbrowse/mobx-state-tree")._NotCustomized, import("@jbrowse/mobx-state-tree").ModelSnapshotType<{
|
|
937
1032
|
id: import("@jbrowse/mobx-state-tree").IOptionalIType<import("@jbrowse/mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
938
1033
|
displayName: import("@jbrowse/mobx-state-tree").IMaybe<import("@jbrowse/mobx-state-tree").ISimpleType<string>>;
|
|
939
1034
|
minimized: import("@jbrowse/mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
940
|
-
}> & {
|
|
1035
|
+
}> & (({
|
|
1036
|
+
bgColor: boolean;
|
|
1037
|
+
colorSchemeName: string;
|
|
1038
|
+
showColumnStats: boolean;
|
|
1039
|
+
msaFormat: import("react-msaview").MSAFormat | undefined;
|
|
1040
|
+
drawLabels: boolean;
|
|
1041
|
+
labelsAlignRight: boolean;
|
|
1042
|
+
treeAreaWidth: number;
|
|
1043
|
+
treeWidth: number;
|
|
1044
|
+
showBranchLen: boolean;
|
|
1045
|
+
drawTree: boolean;
|
|
1046
|
+
drawNodeBubbles: boolean;
|
|
1047
|
+
autoTreeAreaWidth: boolean;
|
|
1048
|
+
columnTracks: import("react-msaview").ColumnTrackSpec[];
|
|
1049
|
+
id: string;
|
|
1050
|
+
showDomains: boolean;
|
|
1051
|
+
showDomainLegend: boolean;
|
|
1052
|
+
hideGaps: boolean;
|
|
1053
|
+
allowedGappyness: number;
|
|
1054
|
+
subFeatureRows: boolean;
|
|
1055
|
+
type: "MsaView";
|
|
1056
|
+
drawMsaLetters: boolean;
|
|
1057
|
+
scrollZoom: boolean;
|
|
1058
|
+
height: number;
|
|
1059
|
+
rowHeight: number;
|
|
1060
|
+
scrollY: number;
|
|
1061
|
+
scrollX: number;
|
|
1062
|
+
colWidth: number;
|
|
1063
|
+
treeFilehandle: import("@jbrowse/mobx-state-tree").ModelSnapshotType<{
|
|
1064
|
+
locationType: import("@jbrowse/mobx-state-tree").ISimpleType<"LocalPathLocation">;
|
|
1065
|
+
localPath: import("@jbrowse/mobx-state-tree").ISimpleType<string>;
|
|
1066
|
+
}> | import("@jbrowse/mobx-state-tree").ModelSnapshotType<{
|
|
1067
|
+
locationType: import("@jbrowse/mobx-state-tree").ISimpleType<"BlobLocation">;
|
|
1068
|
+
name: import("@jbrowse/mobx-state-tree").ISimpleType<string>;
|
|
1069
|
+
blobId: import("@jbrowse/mobx-state-tree").ISimpleType<string>;
|
|
1070
|
+
}> | import("@jbrowse/mobx-state-tree").ModelSnapshotType<{
|
|
1071
|
+
locationType: import("@jbrowse/mobx-state-tree").ISimpleType<"FileHandleLocation">;
|
|
1072
|
+
name: import("@jbrowse/mobx-state-tree").ISimpleType<string>;
|
|
1073
|
+
handleId: import("@jbrowse/mobx-state-tree").ISimpleType<string>;
|
|
1074
|
+
}> | {
|
|
1075
|
+
locationType: "UriLocation";
|
|
1076
|
+
uri: string;
|
|
1077
|
+
internetAccountId: string | undefined;
|
|
1078
|
+
internetAccountPreAuthorization: import("@jbrowse/mobx-state-tree").ModelSnapshotType<{
|
|
1079
|
+
internetAccountType: import("@jbrowse/mobx-state-tree").ISimpleType<string>;
|
|
1080
|
+
authInfo: import("@jbrowse/mobx-state-tree").IType<any, any, any>;
|
|
1081
|
+
}> | undefined;
|
|
1082
|
+
} | undefined;
|
|
1083
|
+
msaFilehandle: import("@jbrowse/mobx-state-tree").ModelSnapshotType<{
|
|
1084
|
+
locationType: import("@jbrowse/mobx-state-tree").ISimpleType<"LocalPathLocation">;
|
|
1085
|
+
localPath: import("@jbrowse/mobx-state-tree").ISimpleType<string>;
|
|
1086
|
+
}> | import("@jbrowse/mobx-state-tree").ModelSnapshotType<{
|
|
1087
|
+
locationType: import("@jbrowse/mobx-state-tree").ISimpleType<"BlobLocation">;
|
|
1088
|
+
name: import("@jbrowse/mobx-state-tree").ISimpleType<string>;
|
|
1089
|
+
blobId: import("@jbrowse/mobx-state-tree").ISimpleType<string>;
|
|
1090
|
+
}> | import("@jbrowse/mobx-state-tree").ModelSnapshotType<{
|
|
1091
|
+
locationType: import("@jbrowse/mobx-state-tree").ISimpleType<"FileHandleLocation">;
|
|
1092
|
+
name: import("@jbrowse/mobx-state-tree").ISimpleType<string>;
|
|
1093
|
+
handleId: import("@jbrowse/mobx-state-tree").ISimpleType<string>;
|
|
1094
|
+
}> | {
|
|
1095
|
+
locationType: "UriLocation";
|
|
1096
|
+
uri: string;
|
|
1097
|
+
internetAccountId: string | undefined;
|
|
1098
|
+
internetAccountPreAuthorization: import("@jbrowse/mobx-state-tree").ModelSnapshotType<{
|
|
1099
|
+
internetAccountType: import("@jbrowse/mobx-state-tree").ISimpleType<string>;
|
|
1100
|
+
authInfo: import("@jbrowse/mobx-state-tree").IType<any, any, any>;
|
|
1101
|
+
}> | undefined;
|
|
1102
|
+
} | undefined;
|
|
1103
|
+
treeMetadataFilehandle: import("@jbrowse/mobx-state-tree").ModelSnapshotType<{
|
|
1104
|
+
locationType: import("@jbrowse/mobx-state-tree").ISimpleType<"LocalPathLocation">;
|
|
1105
|
+
localPath: import("@jbrowse/mobx-state-tree").ISimpleType<string>;
|
|
1106
|
+
}> | import("@jbrowse/mobx-state-tree").ModelSnapshotType<{
|
|
1107
|
+
locationType: import("@jbrowse/mobx-state-tree").ISimpleType<"BlobLocation">;
|
|
1108
|
+
name: import("@jbrowse/mobx-state-tree").ISimpleType<string>;
|
|
1109
|
+
blobId: import("@jbrowse/mobx-state-tree").ISimpleType<string>;
|
|
1110
|
+
}> | import("@jbrowse/mobx-state-tree").ModelSnapshotType<{
|
|
1111
|
+
locationType: import("@jbrowse/mobx-state-tree").ISimpleType<"FileHandleLocation">;
|
|
1112
|
+
name: import("@jbrowse/mobx-state-tree").ISimpleType<string>;
|
|
1113
|
+
handleId: import("@jbrowse/mobx-state-tree").ISimpleType<string>;
|
|
1114
|
+
}> | {
|
|
1115
|
+
locationType: "UriLocation";
|
|
1116
|
+
uri: string;
|
|
1117
|
+
internetAccountId: string | undefined;
|
|
1118
|
+
internetAccountPreAuthorization: import("@jbrowse/mobx-state-tree").ModelSnapshotType<{
|
|
1119
|
+
internetAccountType: import("@jbrowse/mobx-state-tree").ISimpleType<string>;
|
|
1120
|
+
authInfo: import("@jbrowse/mobx-state-tree").IType<any, any, any>;
|
|
1121
|
+
}> | undefined;
|
|
1122
|
+
} | undefined;
|
|
1123
|
+
gffFilehandle: import("@jbrowse/mobx-state-tree").ModelSnapshotType<{
|
|
1124
|
+
locationType: import("@jbrowse/mobx-state-tree").ISimpleType<"LocalPathLocation">;
|
|
1125
|
+
localPath: import("@jbrowse/mobx-state-tree").ISimpleType<string>;
|
|
1126
|
+
}> | import("@jbrowse/mobx-state-tree").ModelSnapshotType<{
|
|
1127
|
+
locationType: import("@jbrowse/mobx-state-tree").ISimpleType<"BlobLocation">;
|
|
1128
|
+
name: import("@jbrowse/mobx-state-tree").ISimpleType<string>;
|
|
1129
|
+
blobId: import("@jbrowse/mobx-state-tree").ISimpleType<string>;
|
|
1130
|
+
}> | import("@jbrowse/mobx-state-tree").ModelSnapshotType<{
|
|
1131
|
+
locationType: import("@jbrowse/mobx-state-tree").ISimpleType<"FileHandleLocation">;
|
|
1132
|
+
name: import("@jbrowse/mobx-state-tree").ISimpleType<string>;
|
|
1133
|
+
handleId: import("@jbrowse/mobx-state-tree").ISimpleType<string>;
|
|
1134
|
+
}> | {
|
|
1135
|
+
locationType: "UriLocation";
|
|
1136
|
+
uri: string;
|
|
1137
|
+
internetAccountId: string | undefined;
|
|
1138
|
+
internetAccountPreAuthorization: import("@jbrowse/mobx-state-tree").ModelSnapshotType<{
|
|
1139
|
+
internetAccountType: import("@jbrowse/mobx-state-tree").ISimpleType<string>;
|
|
1140
|
+
authInfo: import("@jbrowse/mobx-state-tree").IType<any, any, any>;
|
|
1141
|
+
}> | undefined;
|
|
1142
|
+
} | undefined;
|
|
1143
|
+
currentAlignment: number;
|
|
1144
|
+
collapsed: string[];
|
|
1145
|
+
showOnly: string | undefined;
|
|
1146
|
+
turnedOffTracks: import("mobx").IKeyValueMap<boolean>;
|
|
1147
|
+
residueMappings: import("react-msaview").ResidueMapping[];
|
|
1148
|
+
turnedOffFeatures: import("mobx").IKeyValueMap<boolean>;
|
|
1149
|
+
relativeTo: string | undefined;
|
|
1150
|
+
highlightColumns: number[] | undefined;
|
|
1151
|
+
highlights: import("react-msaview").Highlight[];
|
|
1152
|
+
data: {
|
|
1153
|
+
tree?: string | undefined;
|
|
1154
|
+
msa?: string | undefined;
|
|
1155
|
+
treeMetadata?: string | undefined;
|
|
1156
|
+
gff?: string | undefined;
|
|
1157
|
+
};
|
|
1158
|
+
} & import("@jbrowse/mobx-state-tree")._NotCustomized) | ({
|
|
941
1159
|
bgColor: boolean;
|
|
942
1160
|
colorSchemeName: string;
|
|
943
1161
|
showColumnStats: boolean;
|
|
944
|
-
msaFormat: import("
|
|
1162
|
+
msaFormat: import("react-msaview").MSAFormat | undefined;
|
|
945
1163
|
drawLabels: boolean;
|
|
946
1164
|
labelsAlignRight: boolean;
|
|
947
1165
|
treeAreaWidth: number;
|
|
@@ -950,6 +1168,7 @@ export default function stateModelFactory(): import("@jbrowse/mobx-state-tree").
|
|
|
950
1168
|
drawTree: boolean;
|
|
951
1169
|
drawNodeBubbles: boolean;
|
|
952
1170
|
autoTreeAreaWidth: boolean;
|
|
1171
|
+
columnTracks?: undefined;
|
|
953
1172
|
id: string;
|
|
954
1173
|
showDomains: boolean;
|
|
955
1174
|
showDomainLegend: boolean;
|
|
@@ -1048,16 +1267,18 @@ export default function stateModelFactory(): import("@jbrowse/mobx-state-tree").
|
|
|
1048
1267
|
collapsed: string[];
|
|
1049
1268
|
showOnly: string | undefined;
|
|
1050
1269
|
turnedOffTracks: import("mobx").IKeyValueMap<boolean>;
|
|
1051
|
-
|
|
1270
|
+
residueMappings: import("react-msaview").ResidueMapping[];
|
|
1271
|
+
turnedOffFeatures: import("mobx").IKeyValueMap<boolean>;
|
|
1052
1272
|
relativeTo: string | undefined;
|
|
1053
1273
|
highlightColumns: number[] | undefined;
|
|
1274
|
+
highlights: import("react-msaview").Highlight[];
|
|
1054
1275
|
data: {
|
|
1055
1276
|
tree?: string | undefined;
|
|
1056
1277
|
msa?: string | undefined;
|
|
1057
1278
|
treeMetadata?: string | undefined;
|
|
1058
1279
|
gff?: string | undefined;
|
|
1059
1280
|
};
|
|
1060
|
-
} & import("@jbrowse/mobx-state-tree")._NotCustomized>;
|
|
1281
|
+
} & import("@jbrowse/mobx-state-tree")._NotCustomized))>;
|
|
1061
1282
|
export type JBrowsePluginMsaViewStateModel = ReturnType<typeof stateModelFactory>;
|
|
1062
1283
|
export type JBrowsePluginMsaViewModel = Instance<JBrowsePluginMsaViewStateModel>;
|
|
1063
1284
|
export { type MafRegion, type MsaViewInitState } from './types';
|