jbrowse-plugin-msaview 1.0.18 → 2.0.1

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.
Files changed (147) hide show
  1. package/CHANGELOG.md +6 -4
  2. package/README.md +6 -4
  3. package/dist/AddHighlightModel/GenomeMouseoverHighlight.d.ts +6 -0
  4. package/dist/AddHighlightModel/GenomeMouseoverHighlight.js +30 -0
  5. package/dist/AddHighlightModel/GenomeMouseoverHighlight.js.map +1 -0
  6. package/dist/AddHighlightModel/HighlightComponents.d.ts +7 -0
  7. package/dist/AddHighlightModel/HighlightComponents.js +12 -0
  8. package/dist/AddHighlightModel/HighlightComponents.js.map +1 -0
  9. package/dist/AddHighlightModel/MsaToGenomeHighlight.d.ts +7 -0
  10. package/dist/AddHighlightModel/MsaToGenomeHighlight.js +26 -0
  11. package/dist/AddHighlightModel/MsaToGenomeHighlight.js.map +1 -0
  12. package/dist/AddHighlightModel/index.d.ts +2 -0
  13. package/dist/AddHighlightModel/index.js +14 -0
  14. package/dist/AddHighlightModel/index.js.map +1 -0
  15. package/dist/AddHighlightModel/util.d.ts +9 -0
  16. package/dist/AddHighlightModel/util.js +14 -0
  17. package/dist/AddHighlightModel/util.js.map +1 -0
  18. package/dist/LaunchMsaView/components/LaunchMsaViewDialog.d.ts +7 -0
  19. package/dist/LaunchMsaView/components/LaunchMsaViewDialog.js +20 -0
  20. package/dist/LaunchMsaView/components/LaunchMsaViewDialog.js.map +1 -0
  21. package/dist/LaunchMsaView/components/NewNCBIBlastQuery/NcbiBlastPanel.d.ts +8 -0
  22. package/dist/LaunchMsaView/components/NewNCBIBlastQuery/NcbiBlastPanel.js +76 -0
  23. package/dist/LaunchMsaView/components/NewNCBIBlastQuery/NcbiBlastPanel.js.map +1 -0
  24. package/dist/LaunchMsaView/components/NewNCBIBlastQuery/calculateProteinSequence.d.ts +26 -0
  25. package/dist/LaunchMsaView/components/NewNCBIBlastQuery/calculateProteinSequence.js +48 -0
  26. package/dist/LaunchMsaView/components/NewNCBIBlastQuery/calculateProteinSequence.js.map +1 -0
  27. package/dist/LaunchMsaView/components/NewNCBIBlastQuery/index.d.ts +2 -0
  28. package/dist/LaunchMsaView/components/NewNCBIBlastQuery/index.js +3 -0
  29. package/dist/LaunchMsaView/components/NewNCBIBlastQuery/index.js.map +1 -0
  30. package/dist/LaunchMsaView/components/NewNCBIBlastQuery/ncbiBlastLaunchView.d.ts +8 -0
  31. package/dist/LaunchMsaView/components/NewNCBIBlastQuery/ncbiBlastLaunchView.js +17 -0
  32. package/dist/LaunchMsaView/components/NewNCBIBlastQuery/ncbiBlastLaunchView.js.map +1 -0
  33. package/dist/LaunchMsaView/components/NewNCBIBlastQuery/useFeatureSequence.d.ts +20 -0
  34. package/dist/LaunchMsaView/components/NewNCBIBlastQuery/useFeatureSequence.js +64 -0
  35. package/dist/LaunchMsaView/components/NewNCBIBlastQuery/useFeatureSequence.js.map +1 -0
  36. package/dist/LaunchMsaView/components/NewNCBIBlastQuery/util.d.ts +5 -0
  37. package/dist/LaunchMsaView/components/NewNCBIBlastQuery/util.js +7 -0
  38. package/dist/LaunchMsaView/components/NewNCBIBlastQuery/util.js.map +1 -0
  39. package/dist/LaunchMsaView/components/PreLoadedMSA/PreLoadedMSADataPanel.d.ts +8 -0
  40. package/dist/LaunchMsaView/components/PreLoadedMSA/PreLoadedMSADataPanel.js +90 -0
  41. package/dist/LaunchMsaView/components/PreLoadedMSA/PreLoadedMSADataPanel.js.map +1 -0
  42. package/dist/LaunchMsaView/components/PreLoadedMSA/fetchGeneList.d.ts +1 -0
  43. package/dist/LaunchMsaView/components/PreLoadedMSA/fetchGeneList.js +12 -0
  44. package/dist/LaunchMsaView/components/PreLoadedMSA/fetchGeneList.js.map +1 -0
  45. package/dist/LaunchMsaView/components/PreLoadedMSA/preCalculatedLaunchView.d.ts +9 -0
  46. package/dist/LaunchMsaView/components/PreLoadedMSA/preCalculatedLaunchView.js +36 -0
  47. package/dist/LaunchMsaView/components/PreLoadedMSA/preCalculatedLaunchView.js.map +1 -0
  48. package/dist/LaunchMsaView/components/TabUtils.d.ts +12 -0
  49. package/dist/LaunchMsaView/components/TabUtils.js +13 -0
  50. package/dist/LaunchMsaView/components/TabUtils.js.map +1 -0
  51. package/dist/LaunchMsaView/index.d.ts +2 -0
  52. package/dist/LaunchMsaView/index.js +50 -0
  53. package/dist/LaunchMsaView/index.js.map +1 -0
  54. package/dist/LaunchMsaView/util.d.ts +5 -0
  55. package/dist/LaunchMsaView/util.js +25 -0
  56. package/dist/LaunchMsaView/util.js.map +1 -0
  57. package/dist/MsaViewPanel/components/LoadingBLAST.d.ts +6 -0
  58. package/dist/MsaViewPanel/components/LoadingBLAST.js +36 -0
  59. package/dist/MsaViewPanel/components/LoadingBLAST.js.map +1 -0
  60. package/dist/MsaViewPanel/components/MsaViewPanel.d.ts +6 -0
  61. package/dist/MsaViewPanel/components/MsaViewPanel.js +10 -0
  62. package/dist/MsaViewPanel/components/MsaViewPanel.js.map +1 -0
  63. package/dist/MsaViewPanel/components/RIDLink.d.ts +5 -0
  64. package/dist/MsaViewPanel/components/RIDLink.js +17 -0
  65. package/dist/MsaViewPanel/components/RIDLink.js.map +1 -0
  66. package/dist/MsaViewPanel/doLaunchBlast.d.ts +7 -0
  67. package/dist/MsaViewPanel/doLaunchBlast.js +27 -0
  68. package/dist/MsaViewPanel/doLaunchBlast.js.map +1 -0
  69. package/dist/MsaViewPanel/genomeToMSA.d.ts +4 -0
  70. package/dist/MsaViewPanel/genomeToMSA.js +18 -0
  71. package/dist/MsaViewPanel/genomeToMSA.js.map +1 -0
  72. package/dist/MsaViewPanel/index.d.ts +2 -0
  73. package/dist/MsaViewPanel/index.js +16 -0
  74. package/dist/MsaViewPanel/index.js.map +1 -0
  75. package/dist/MsaViewPanel/model.d.ts +600 -0
  76. package/dist/MsaViewPanel/model.js +235 -0
  77. package/dist/MsaViewPanel/model.js.map +1 -0
  78. package/dist/MsaViewPanel/msaCoordToGenomeCoord.d.ts +9 -0
  79. package/dist/MsaViewPanel/msaCoordToGenomeCoord.js +20 -0
  80. package/dist/MsaViewPanel/msaCoordToGenomeCoord.js.map +1 -0
  81. package/dist/MsaViewPanel/util.d.ts +8 -0
  82. package/dist/MsaViewPanel/util.js +7 -0
  83. package/dist/MsaViewPanel/util.js.map +1 -0
  84. package/dist/OpenInNewIcon.d.ts +3 -0
  85. package/dist/OpenInNewIcon.js +8 -0
  86. package/dist/OpenInNewIcon.js.map +1 -0
  87. package/dist/TextField2.d.ts +4 -0
  88. package/dist/TextField2.js +8 -0
  89. package/dist/TextField2.js.map +1 -0
  90. package/dist/index.d.ts +8 -8
  91. package/dist/index.js +32 -7
  92. package/dist/index.js.map +1 -0
  93. package/dist/jbrowse-plugin-msaview.umd.production.min.js +93 -1
  94. package/dist/jbrowse-plugin-msaview.umd.production.min.js.map +7 -1
  95. package/dist/utils/fetch.d.ts +4 -0
  96. package/dist/utils/fetch.js +19 -0
  97. package/dist/utils/fetch.js.map +1 -0
  98. package/dist/utils/msa.d.ts +8 -0
  99. package/dist/utils/msa.js +75 -0
  100. package/dist/utils/msa.js.map +1 -0
  101. package/dist/utils/ncbiBlast.d.ts +20 -0
  102. package/dist/utils/ncbiBlast.js +66 -0
  103. package/dist/utils/ncbiBlast.js.map +1 -0
  104. package/package.json +51 -40
  105. package/src/AddHighlightModel/GenomeMouseoverHighlight.tsx +44 -0
  106. package/src/AddHighlightModel/HighlightComponents.tsx +24 -0
  107. package/src/AddHighlightModel/MsaToGenomeHighlight.tsx +50 -0
  108. package/src/AddHighlightModel/index.tsx +27 -0
  109. package/src/AddHighlightModel/util.ts +14 -0
  110. package/src/LaunchMsaView/components/LaunchMsaViewDialog.tsx +52 -0
  111. package/src/LaunchMsaView/components/NewNCBIBlastQuery/NcbiBlastPanel.tsx +160 -0
  112. package/src/LaunchMsaView/components/NewNCBIBlastQuery/calculateProteinSequence.ts +92 -0
  113. package/src/LaunchMsaView/components/NewNCBIBlastQuery/index.tsx +2 -0
  114. package/src/LaunchMsaView/components/NewNCBIBlastQuery/ncbiBlastLaunchView.ts +28 -0
  115. package/src/LaunchMsaView/components/NewNCBIBlastQuery/useFeatureSequence.ts +85 -0
  116. package/src/LaunchMsaView/components/NewNCBIBlastQuery/util.ts +7 -0
  117. package/src/LaunchMsaView/components/PreLoadedMSA/PreLoadedMSADataPanel.tsx +149 -0
  118. package/src/LaunchMsaView/components/PreLoadedMSA/fetchGeneList.ts +13 -0
  119. package/src/LaunchMsaView/components/PreLoadedMSA/preCalculatedLaunchView.ts +54 -0
  120. package/src/LaunchMsaView/components/TabUtils.tsx +30 -0
  121. package/src/LaunchMsaView/index.ts +61 -0
  122. package/src/LaunchMsaView/util.ts +30 -0
  123. package/src/MsaViewPanel/components/LoadingBLAST.tsx +59 -0
  124. package/src/MsaViewPanel/components/MsaViewPanel.tsx +22 -0
  125. package/src/MsaViewPanel/components/RIDLink.tsx +18 -0
  126. package/src/MsaViewPanel/doLaunchBlast.ts +38 -0
  127. package/src/MsaViewPanel/genomeToMSA.ts +21 -0
  128. package/src/MsaViewPanel/index.ts +19 -0
  129. package/src/MsaViewPanel/model.ts +290 -0
  130. package/src/MsaViewPanel/msaCoordToGenomeCoord.ts +29 -0
  131. package/src/MsaViewPanel/util.ts +13 -0
  132. package/src/OpenInNewIcon.tsx +11 -0
  133. package/src/TextField2.tsx +12 -0
  134. package/src/index.ts +12 -14
  135. package/src/utils/fetch.ts +25 -0
  136. package/src/utils/msa.ts +111 -0
  137. package/src/utils/ncbiBlast.ts +105 -0
  138. package/dist/config.json +0 -8
  139. package/dist/jbrowse-plugin-msaview.cjs.development.js +0 -168
  140. package/dist/jbrowse-plugin-msaview.cjs.development.js.map +0 -1
  141. package/dist/jbrowse-plugin-msaview.cjs.production.min.js +0 -2
  142. package/dist/jbrowse-plugin-msaview.cjs.production.min.js.map +0 -1
  143. package/dist/jbrowse-plugin-msaview.esm.js +0 -163
  144. package/dist/jbrowse-plugin-msaview.esm.js.map +0 -1
  145. package/dist/jbrowse-plugin-msaview.umd.development.js +0 -8659
  146. package/dist/jbrowse-plugin-msaview.umd.development.js.map +0 -1
  147. package/src/index.test.ts +0 -3
@@ -0,0 +1,600 @@
1
+ import { Instance } from 'mobx-state-tree';
2
+ import { Feature } from '@jbrowse/core/util';
3
+ import { LinearGenomeViewModel } from '@jbrowse/plugin-linear-genome-view';
4
+ type LGV = LinearGenomeViewModel;
5
+ type MaybeLGV = LGV | undefined;
6
+ export interface IRegion {
7
+ refName: string;
8
+ start: number;
9
+ end: number;
10
+ }
11
+ export interface BlastParams {
12
+ blastDatabase: string;
13
+ msaAlgorithm: string;
14
+ blastProgram: string;
15
+ selectedTranscript: Feature;
16
+ proteinSequence: string;
17
+ }
18
+ /**
19
+ * #stateModel MsaViewPlugin
20
+ * extends
21
+ * - MSAModel from https://github.com/GMOD/react-msaview
22
+ */
23
+ export default function stateModelFactory(): import("mobx-state-tree").IModelType<{
24
+ id: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
25
+ displayName: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<string>>;
26
+ minimized: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
27
+ } & {
28
+ drawLabels: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
29
+ labelsAlignRight: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
30
+ treeAreaWidth: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<number>, [undefined]>;
31
+ treeWidth: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<number>, [undefined]>;
32
+ treeWidthMatchesArea: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
33
+ showBranchLen: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
34
+ drawTree: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
35
+ drawNodeBubbles: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
36
+ } & {
37
+ bgColor: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
38
+ colorSchemeName: import("mobx-state-tree").IType<string | undefined, string, string>;
39
+ } & {
40
+ id: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
41
+ featureMode: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
42
+ subFeatureRows: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
43
+ type: import("mobx-state-tree").ISimpleType<"MsaView">;
44
+ height: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<number>, [undefined]>;
45
+ rowHeight: import("mobx-state-tree").IType<number | undefined, number, number>;
46
+ scrollY: import("mobx-state-tree").IType<number | undefined, number, number>;
47
+ scrollX: import("mobx-state-tree").IType<number | undefined, number, number>;
48
+ colWidth: import("mobx-state-tree").IType<number | undefined, number, number>;
49
+ treeFilehandle: import("mobx-state-tree" /**
50
+ * #getter
51
+ */).IMaybe<import("mobx-state-tree").ISnapshotProcessor<import("mobx-state-tree").ITypeUnion<import("mobx-state-tree").ModelCreationType<import("mobx-state-tree/dist/internal").ExtractCFromProps<{
52
+ locationType: import("mobx-state-tree").ISimpleType<"UriLocation">;
53
+ uri: import("mobx-state-tree").ISimpleType<string>;
54
+ baseUri: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<string>>;
55
+ internetAccountId: import("mobx-state-tree").IMaybe<import("mobx-state-tree" /**
56
+ * #action
57
+ */).ISimpleType<string>>;
58
+ internetAccountPreAuthorization: import("mobx-state-tree").IMaybe<import("mobx-state-tree").IModelType<{
59
+ internetAccountType: import("mobx-state-tree").ISimpleType<string>;
60
+ authInfo: import("mobx-state-tree").IType<any, any, any>;
61
+ }, {}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>;
62
+ }>> | import("mobx-state-tree").ModelCreationType<import("mobx-state-tree/dist/internal").ExtractCFromProps<{
63
+ locationType: import("mobx-state-tree").ISimpleType<"BlobLocation">;
64
+ name: import("mobx-state-tree").ISimpleType<string>;
65
+ blobId: import("mobx-state-tree").ISimpleType<string>;
66
+ }>> | import("mobx-state-tree").ModelCreationType<import("mobx-state-tree/dist/internal").ExtractCFromProps<{
67
+ locationType: import("mobx-state-tree").ISimpleType<"LocalPathLocation">;
68
+ localPath: import("mobx-state-tree").ISimpleType<string>;
69
+ }>>, {
70
+ locationType: "UriLocation";
71
+ uri: string;
72
+ internetAccountId: string | undefined;
73
+ internetAccountPreAuthorization: import("mobx-state-tree" /**
74
+ * #getter
75
+ */).ModelSnapshotType<{
76
+ internetAccountType: import("mobx-state-tree").ISimpleType<string>;
77
+ authInfo: import("mobx-state-tree").IType<any, any, any>;
78
+ }> | undefined;
79
+ } | import("mobx-state-tree").ModelSnapshotType<{
80
+ locationType: import("mobx-state-tree").ISimpleType<"BlobLocation">;
81
+ name: import("mobx-state-tree").ISimpleType<string>;
82
+ blobId: import("mobx-state-tree").ISimpleType<string>;
83
+ }> | import("mobx-state-tree").ModelSnapshotType<{
84
+ locationType: import("mobx-state-tree").ISimpleType<"LocalPathLocation">;
85
+ localPath: import("mobx-state-tree").ISimpleType<string>;
86
+ }>, import("mobx-state-tree").ModelInstanceType<{
87
+ locationType: import("mobx-state-tree").ISimpleType<"BlobLocation">;
88
+ name: import("mobx-state-tree").ISimpleType<string>;
89
+ blobId: import("mobx-state-tree").ISimpleType<string>;
90
+ }, {}> | import("mobx-state-tree").ModelInstanceType<{
91
+ locationType: import("mobx-state-tree").ISimpleType<"LocalPathLocation">;
92
+ localPath: import("mobx-state-tree").ISimpleType<string>;
93
+ }, {}> | ({
94
+ locationType: "UriLocation";
95
+ uri: string;
96
+ } & Partial<import("mobx-state-tree/dist/internal").ExtractCFromProps<{
97
+ locationType: import("mobx-state-tree").ISimpleType<"UriLocation">;
98
+ uri: import("mobx-state-tree").ISimpleType<string>;
99
+ baseUri: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<string>>;
100
+ internetAccountId: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<string>>;
101
+ internetAccountPreAuthorization: import("mobx-state-tree").IMaybe<import("mobx-state-tree").IModelType<{
102
+ internetAccountType: import("mobx-state-tree").ISimpleType<string>;
103
+ authInfo: import("mobx-state-tree").IType<any, any, any>;
104
+ }, {}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>;
105
+ }>> & import("mobx-state-tree/dist/internal").NonEmptyObject)>, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>;
106
+ msaFilehandle: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISnapshotProcessor<import("mobx-state-tree").ITypeUnion<import("mobx-state-tree").ModelCreationType<import("mobx-state-tree/dist/internal").ExtractCFromProps<{
107
+ locationType: import("mobx-state-tree").ISimpleType<"UriLocation">;
108
+ uri: import("mobx-state-tree").ISimpleType<string>;
109
+ baseUri: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<string>>;
110
+ internetAccountId: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<string>>;
111
+ internetAccountPreAuthorization: import("mobx-state-tree").IMaybe<import("mobx-state-tree").IModelType<{
112
+ internetAccountType: import("mobx-state-tree").ISimpleType<string>;
113
+ authInfo: import("mobx-state-tree").IType<any, any, any>;
114
+ }, {}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>;
115
+ }>> | import("mobx-state-tree").ModelCreationType<import("mobx-state-tree/dist/internal").ExtractCFromProps<{
116
+ locationType: import("mobx-state-tree").ISimpleType<"BlobLocation">;
117
+ name: import("mobx-state-tree").ISimpleType<string>;
118
+ blobId: import("mobx-state-tree").ISimpleType<string>;
119
+ }>> | import("mobx-state-tree").ModelCreationType<import("mobx-state-tree/dist/internal").ExtractCFromProps<{
120
+ locationType: import("mobx-state-tree").ISimpleType<"LocalPathLocation">;
121
+ localPath: import("mobx-state-tree").ISimpleType<string>;
122
+ }>>, {
123
+ locationType: "UriLocation";
124
+ uri: string;
125
+ internetAccountId: string | undefined;
126
+ internetAccountPreAuthorization: import("mobx-state-tree").ModelSnapshotType<{
127
+ internetAccountType: import("mobx-state-tree").ISimpleType<string>;
128
+ authInfo: import("mobx-state-tree").IType<any, any, any>;
129
+ }> | undefined;
130
+ } | import("mobx-state-tree").ModelSnapshotType<{
131
+ locationType: import("mobx-state-tree").ISimpleType<"BlobLocation">;
132
+ name: import("mobx-state-tree").ISimpleType<string>;
133
+ blobId: import("mobx-state-tree").ISimpleType<string>;
134
+ }> | import("mobx-state-tree").ModelSnapshotType<{
135
+ locationType: import("mobx-state-tree").ISimpleType<"LocalPathLocation">;
136
+ localPath: import("mobx-state-tree").ISimpleType<string>;
137
+ }>, import("mobx-state-tree").ModelInstanceType<{
138
+ locationType: import("mobx-state-tree").ISimpleType<"BlobLocation">;
139
+ name: import("mobx-state-tree").ISimpleType<string>;
140
+ blobId: import("mobx-state-tree").ISimpleType<string>;
141
+ }, {}> | import("mobx-state-tree").ModelInstanceType<{
142
+ locationType: import("mobx-state-tree").ISimpleType<"LocalPathLocation">;
143
+ localPath: import("mobx-state-tree").ISimpleType<string>;
144
+ }, {}> | ({
145
+ locationType: "UriLocation";
146
+ uri: string;
147
+ } & Partial<import("mobx-state-tree/dist/internal").ExtractCFromProps<{
148
+ locationType: import("mobx-state-tree").ISimpleType<"UriLocation">;
149
+ uri: import("mobx-state-tree").ISimpleType<string>;
150
+ baseUri: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<string>>;
151
+ internetAccountId: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<string>>;
152
+ internetAccountPreAuthorization: import("mobx-state-tree").IMaybe<import("mobx-state-tree").IModelType<{
153
+ internetAccountType: import("mobx-state-tree").ISimpleType<string>;
154
+ authInfo: import("mobx-state-tree").IType<any, any, any>;
155
+ }, {}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>;
156
+ }>> & import("mobx-state-tree/dist/internal").NonEmptyObject)>, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>;
157
+ treeMetadataFilehandle: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISnapshotProcessor<import("mobx-state-tree").ITypeUnion<import("mobx-state-tree").ModelCreationType<import("mobx-state-tree/dist/internal").ExtractCFromProps<{
158
+ locationType: import("mobx-state-tree").ISimpleType<"UriLocation">;
159
+ uri: import("mobx-state-tree").ISimpleType<string>;
160
+ baseUri: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<string>>;
161
+ internetAccountId: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<string>>;
162
+ internetAccountPreAuthorization: import("mobx-state-tree").IMaybe<import("mobx-state-tree").IModelType<{
163
+ internetAccountType: import("mobx-state-tree").ISimpleType<string>;
164
+ authInfo: import("mobx-state-tree").IType<any, any, any>;
165
+ }, {}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>;
166
+ }>> | import("mobx-state-tree").ModelCreationType<import("mobx-state-tree/dist/internal").ExtractCFromProps<{
167
+ locationType: import("mobx-state-tree").ISimpleType<"BlobLocation">;
168
+ name: import("mobx-state-tree").ISimpleType<string>;
169
+ blobId: import("mobx-state-tree").ISimpleType<string>;
170
+ }>> | import("mobx-state-tree").ModelCreationType<import("mobx-state-tree/dist/internal").ExtractCFromProps<{
171
+ locationType: import("mobx-state-tree").ISimpleType<"LocalPathLocation">;
172
+ localPath: import("mobx-state-tree").ISimpleType<string>;
173
+ }>>, {
174
+ locationType: "UriLocation";
175
+ uri: string;
176
+ internetAccountId: string | undefined;
177
+ internetAccountPreAuthorization: import("mobx-state-tree").ModelSnapshotType<{
178
+ internetAccountType: import("mobx-state-tree").ISimpleType<string>;
179
+ authInfo: import("mobx-state-tree").IType<any, any, any>;
180
+ }> | undefined;
181
+ } | import("mobx-state-tree").ModelSnapshotType<{
182
+ locationType: import("mobx-state-tree").ISimpleType<"BlobLocation">;
183
+ name: import("mobx-state-tree").ISimpleType<string>;
184
+ blobId: import("mobx-state-tree").ISimpleType<string>;
185
+ }> | import("mobx-state-tree").ModelSnapshotType<{
186
+ locationType: import("mobx-state-tree").ISimpleType<"LocalPathLocation">;
187
+ localPath: import("mobx-state-tree").ISimpleType<string>;
188
+ }>, import("mobx-state-tree").ModelInstanceType<{
189
+ locationType: import("mobx-state-tree").ISimpleType<"BlobLocation">;
190
+ name: import("mobx-state-tree").ISimpleType<string>;
191
+ blobId: import("mobx-state-tree").ISimpleType<string>;
192
+ }, {}> | import("mobx-state-tree").ModelInstanceType<{
193
+ locationType: import("mobx-state-tree").ISimpleType<"LocalPathLocation">;
194
+ localPath: import("mobx-state-tree").ISimpleType<string>;
195
+ }, {}> | ({
196
+ locationType: "UriLocation";
197
+ uri: string;
198
+ } & Partial<import("mobx-state-tree/dist/internal").ExtractCFromProps<{
199
+ locationType: import("mobx-state-tree").ISimpleType<"UriLocation">;
200
+ uri: import("mobx-state-tree").ISimpleType<string>;
201
+ baseUri: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<string>>;
202
+ internetAccountId: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<string>>;
203
+ internetAccountPreAuthorization: import("mobx-state-tree").IMaybe<import("mobx-state-tree").IModelType<{
204
+ internetAccountType: import("mobx-state-tree").ISimpleType<string>;
205
+ authInfo: import("mobx-state-tree").IType<any, any, any>;
206
+ }, {}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>;
207
+ }>> & import("mobx-state-tree/dist/internal").NonEmptyObject)>, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>;
208
+ currentAlignment: import("mobx-state-tree").IType<number | undefined, number, number>;
209
+ collapsed: import("mobx-state-tree").IArrayType<import("mobx-state-tree").ISimpleType<string>>;
210
+ collapsed2: import("mobx-state-tree").IArrayType<import("mobx-state-tree").ISimpleType<string>>;
211
+ showOnly: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<string>>;
212
+ turnedOffTracks: import("mobx-state-tree").IMapType<import("mobx-state-tree").ISimpleType<boolean>>;
213
+ data: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IModelType<{
214
+ tree: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<string>>;
215
+ msa: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<string>>;
216
+ treeMetadata: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<string>>;
217
+ }, {
218
+ setTree(tree?: string): void;
219
+ setMSA(msa?: string): void;
220
+ setTreeMetadata(treeMetadata?: string): void;
221
+ }, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>, [undefined]>;
222
+ featureFilters: import("mobx-state-tree").IMapType<import("mobx-state-tree").ISimpleType<boolean>>;
223
+ } & {
224
+ connectedViewId: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<string>>;
225
+ connectedFeature: import("mobx-state-tree").IType<any, any, any>;
226
+ connectedHighlights: import("mobx-state-tree").IArrayType<import("mobx-state-tree").IModelType<{
227
+ refName: import("mobx-state-tree").ISimpleType<string>;
228
+ start: import("mobx-state-tree").ISimpleType<number>;
229
+ end: import("mobx-state-tree").ISimpleType<number>;
230
+ }, {}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>;
231
+ blastParams: import("mobx-state-tree").IType<BlastParams | undefined, BlastParams | undefined, BlastParams | undefined>;
232
+ zoomToBaseLevel: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
233
+ }, {
234
+ width: number;
235
+ } & {
236
+ menuItems(): import("@jbrowse/core/ui").MenuItem[];
237
+ } & {
238
+ setDisplayName(name: string): void;
239
+ setWidth(newWidth: number): void;
240
+ setMinimized(flag: boolean): void;
241
+ } & {
242
+ queueOfDialogs: [import("@jbrowse/core/util").DialogComponentType, any][];
243
+ } & {
244
+ readonly DialogComponent: import("@jbrowse/core/util").DialogComponentType;
245
+ readonly DialogProps: any;
246
+ } & {
247
+ removeActiveDialog(): void;
248
+ queueDialog(cb: (doneCallback: () => void) => [import("@jbrowse/core/util").DialogComponentType, unknown]): void;
249
+ } & {
250
+ setTreeWidthMatchesArea(arg: boolean): void;
251
+ setTreeAreaWidth(n: number): void;
252
+ setTreeWidth(n: number): void;
253
+ setLabelsAlignRight(arg: boolean): void;
254
+ setDrawTree(arg: boolean): void;
255
+ setShowBranchLen(arg: boolean): void;
256
+ setDrawNodeBubbles(arg: boolean): void;
257
+ setDrawLabels(arg: boolean): void;
258
+ } & {
259
+ setColorSchemeName(name: string): void;
260
+ setBgColor(arg: boolean): void;
261
+ } & {
262
+ status: {
263
+ msg: string;
264
+ url?: string;
265
+ } | undefined;
266
+ highResScaleFactor: number;
267
+ loadingMSA: boolean;
268
+ loadingTree: boolean;
269
+ width: number;
270
+ resizeHandleWidth: number;
271
+ blockSize: number;
272
+ mouseRow: number | undefined;
273
+ mouseCol: number | undefined;
274
+ mouseClickRow: number | undefined;
275
+ mouseClickCol: number | undefined;
276
+ nref: number;
277
+ minimapHeight: number;
278
+ marginLeft: number;
279
+ error: unknown;
280
+ annotPos: {
281
+ left: number;
282
+ right: number;
283
+ } | undefined;
284
+ loadedInterProAnnotations: undefined | Record<string, import("react-msaview/dist/launchInterProScan").InterProScanResults>;
285
+ interProScanJobIds: {
286
+ jobId: string;
287
+ date: number;
288
+ }[];
289
+ } & {
290
+ setLoadingMSA(arg: boolean): void;
291
+ setLoadingTree(arg: boolean): void;
292
+ setWidth(arg: number): void;
293
+ setHeight(height: number): void;
294
+ setError(error?: unknown): void;
295
+ setMousePos(col?: number, row?: number): void;
296
+ setFeatureMode(arg: boolean): void;
297
+ setSubFeatureRows(arg: boolean): void;
298
+ setMouseClickPos(col?: number, row?: number): void;
299
+ setRowHeight(n: number): void;
300
+ setColWidth(n: number): void;
301
+ setScrollY(n: number): void;
302
+ setCurrentAlignment(n: number): void;
303
+ toggleCollapsed(node: string): void;
304
+ toggleCollapsed2(node: string): void;
305
+ setShowOnly(node?: string): void;
306
+ setData(data: {
307
+ msa?: string;
308
+ tree?: string;
309
+ }): void;
310
+ setMSAFilehandle(msaFilehandle?: import("@jbrowse/core/util").FileLocation): void;
311
+ setTreeFilehandle(treeFilehandle?: import("@jbrowse/core/util").FileLocation): void;
312
+ setMSA(result: string): void;
313
+ setTree(result: string): void;
314
+ setTreeMetadata(result: string): void;
315
+ } & {
316
+ extraViewMenuItems(): never[];
317
+ readonly colorScheme: Record<string, string>;
318
+ readonly header: {};
319
+ getRowData(name: string): {
320
+ data: {
321
+ name: string;
322
+ accession: string;
323
+ dbxref: string;
324
+ } | undefined;
325
+ };
326
+ readonly alignmentNames: string[];
327
+ readonly noTree: boolean;
328
+ readonly noAnnotations: boolean;
329
+ readonly menuItems: never[];
330
+ readonly treeMetadata: any;
331
+ readonly MSA: import("react-msaview/dist/parsers/StockholmMSA").default | import("react-msaview/dist/parsers/FastaMSA").default | import("react-msaview/dist/parsers/ClustalMSA").default | null;
332
+ readonly numColumns: number;
333
+ readonly _tree: import("react-msaview/dist/util").NodeWithIds;
334
+ readonly rowNames: string[];
335
+ readonly mouseOverRowName: string | undefined;
336
+ readonly root: HierarchyNode<import("react-msaview/dist/util").NodeWithIds>;
337
+ readonly msaAreaWidth: number;
338
+ readonly treeAreaWidthMinusMargin: number;
339
+ readonly blanks: number[];
340
+ readonly rows: [string, string][];
341
+ readonly columns: {
342
+ [k: string]: string;
343
+ };
344
+ readonly columns2d: string[];
345
+ readonly fontSize: number;
346
+ readonly colStats: Record<string, number>[];
347
+ readonly hierarchy: HierarchyNode<import("react-msaview/dist/util").NodeWithIdsAndLength>;
348
+ readonly totalHeight: number;
349
+ } & {
350
+ readonly totalWidth: number;
351
+ } & {
352
+ readonly initialized: boolean | "" | undefined;
353
+ readonly blocksX: number[];
354
+ readonly blocksY: number[];
355
+ } & {
356
+ readonly blocks2d: number[][];
357
+ readonly isLoading: boolean;
358
+ readonly maxScrollX: number;
359
+ } & {
360
+ zoomIn(): void;
361
+ zoomOut(): void;
362
+ setLoadedInterProAnnotations(data: Record<string, import("react-msaview/dist/launchInterProScan").InterProScanResults>): void;
363
+ doScrollY(deltaY: number): void;
364
+ doScrollX(deltaX: number): void;
365
+ setScrollX(n: number): void;
366
+ toggleTrack(id: string): void;
367
+ addInterProScanJobId(arg: string): void;
368
+ setStatus(status?: {
369
+ msg: string;
370
+ url?: string;
371
+ }): void;
372
+ } & {
373
+ readonly labelsWidth: number;
374
+ readonly secondaryStructureConsensus: string | undefined;
375
+ readonly seqConsensus: string | undefined;
376
+ readonly conservation: string[];
377
+ readonly adapterTrackModels: import("react-msaview/dist/model").ITextTrack[];
378
+ readonly tracks: import("react-msaview/dist/model").ITextTrack[];
379
+ readonly turnedOnTracks: import("react-msaview/dist/model").ITextTrack[];
380
+ globalCoordToRowSpecificSeqCoord(rowName: string, position: number): number;
381
+ seqCoordToRowSpecificGlobalCoord(rowName: string, position: number): number;
382
+ } & {
383
+ readonly totalTrackAreaHeight: number;
384
+ readonly tidyTypes: Map<string, import("react-msaview/dist/model").Accession>;
385
+ readonly tidyAnnotations: {
386
+ id: string;
387
+ name: string;
388
+ accession: string;
389
+ description: string;
390
+ start: number;
391
+ end: number;
392
+ }[];
393
+ readonly tidyFilteredAnnotations: {
394
+ id: string;
395
+ name: string;
396
+ accession: string;
397
+ description: string;
398
+ start: number;
399
+ end: number;
400
+ }[];
401
+ readonly tidyFilteredGatheredAnnotations: Record<string, {
402
+ id: string;
403
+ name: string;
404
+ accession: string;
405
+ description: string;
406
+ start: number;
407
+ end: number;
408
+ }[] | undefined>;
409
+ } & {
410
+ readonly fillPalette: Record<string, string>;
411
+ readonly strokePalette: {
412
+ [k: string]: string;
413
+ };
414
+ } & {
415
+ loadInterProScanResults(jobId: string): Promise<void>;
416
+ queryInterProScan(programs: string[]): Promise<void>;
417
+ reset(): void;
418
+ exportSVG(opts: {
419
+ theme: import("@mui/material").Theme;
420
+ includeMinimap?: boolean;
421
+ exportType: string;
422
+ }): Promise<void>;
423
+ incrementRef(): void;
424
+ initFilter(arg: string): void;
425
+ setFilter(arg: string, flag: boolean): void;
426
+ afterCreate(): void;
427
+ } & {
428
+ rid: string | undefined;
429
+ progress: string;
430
+ error: unknown;
431
+ } & {
432
+ /**
433
+ * #method
434
+ */
435
+ ungappedCoordMap(rowName: string, position: number): number | undefined;
436
+ } & {
437
+ /**
438
+ * #getter
439
+ */
440
+ readonly transcriptToMsaMap: {
441
+ g2p: Record<number, number | undefined>;
442
+ p2g: Record<number, number | undefined>;
443
+ refName: string;
444
+ strand: number;
445
+ } | undefined;
446
+ } & {
447
+ /**
448
+ * #getter
449
+ */
450
+ readonly mouseCol2: number | undefined;
451
+ /**
452
+ * #getter
453
+ */
454
+ readonly clickCol2: undefined;
455
+ } & {
456
+ /**
457
+ * #getter
458
+ */
459
+ readonly processing: boolean;
460
+ /**
461
+ * #getter
462
+ */
463
+ readonly connectedView: MaybeLGV;
464
+ } & {
465
+ /**
466
+ * #action
467
+ */
468
+ setZoomToBaseLevel(arg: boolean): void;
469
+ /**
470
+ * #action
471
+ */
472
+ setError(e: unknown): void;
473
+ /**
474
+ * #action
475
+ */
476
+ setProgress(arg: string): void;
477
+ /**
478
+ * #action
479
+ */
480
+ setRid(arg: string): void;
481
+ /**
482
+ * #action
483
+ */
484
+ setConnectedHighlights(r: IRegion[]): void;
485
+ /**
486
+ * #action
487
+ */
488
+ addToConnectedHighlights(r: IRegion): void;
489
+ /**
490
+ * #action
491
+ */
492
+ clearConnectedHighlights(): void;
493
+ /**
494
+ * #action
495
+ */
496
+ setBlastParams(args?: BlastParams): void;
497
+ } & {
498
+ /**
499
+ * #method
500
+ * overrides base
501
+ */
502
+ extraViewMenuItems(): {
503
+ label: string;
504
+ checked: boolean;
505
+ type: string;
506
+ onClick: () => void;
507
+ }[];
508
+ /**
509
+ * #getter
510
+ */
511
+ readonly processing: boolean;
512
+ /**
513
+ * #getter
514
+ */
515
+ readonly connectedView: MaybeLGV;
516
+ } & {
517
+ afterCreate(): void;
518
+ }, import("mobx-state-tree")._NotCustomized, {
519
+ height: number;
520
+ drawLabels: boolean;
521
+ labelsAlignRight: boolean;
522
+ treeAreaWidth: number;
523
+ treeWidth: number;
524
+ treeWidthMatchesArea: boolean;
525
+ showBranchLen: boolean;
526
+ drawTree: boolean;
527
+ drawNodeBubbles: boolean;
528
+ bgColor: boolean;
529
+ colorSchemeName: string;
530
+ id: string;
531
+ featureMode: boolean;
532
+ subFeatureRows: boolean;
533
+ rowHeight: number;
534
+ scrollY: number;
535
+ scrollX: number;
536
+ colWidth: number;
537
+ currentAlignment: number;
538
+ type: "MsaView";
539
+ treeFilehandle: {
540
+ locationType: "UriLocation";
541
+ uri: string;
542
+ internetAccountId: string | undefined;
543
+ internetAccountPreAuthorization: import("mobx-state-tree").ModelSnapshotType<{
544
+ internetAccountType: import("mobx-state-tree").ISimpleType<string>;
545
+ authInfo: import("mobx-state-tree").IType<any, any, any>;
546
+ }> | undefined;
547
+ } | import("mobx-state-tree").ModelSnapshotType<{
548
+ locationType: import("mobx-state-tree").ISimpleType<"BlobLocation">;
549
+ name: import("mobx-state-tree").ISimpleType<string>;
550
+ blobId: import("mobx-state-tree").ISimpleType<string>;
551
+ }> | import("mobx-state-tree").ModelSnapshotType<{
552
+ locationType: import("mobx-state-tree").ISimpleType<"LocalPathLocation">;
553
+ localPath: import("mobx-state-tree").ISimpleType<string>;
554
+ }> | undefined;
555
+ msaFilehandle: {
556
+ locationType: "UriLocation";
557
+ uri: string;
558
+ internetAccountId: string | undefined;
559
+ internetAccountPreAuthorization: import("mobx-state-tree").ModelSnapshotType<{
560
+ internetAccountType: import("mobx-state-tree").ISimpleType<string>;
561
+ authInfo: import("mobx-state-tree").IType<any, any, any>;
562
+ }> | undefined;
563
+ } | import("mobx-state-tree").ModelSnapshotType<{
564
+ locationType: import("mobx-state-tree").ISimpleType<"BlobLocation">;
565
+ name: import("mobx-state-tree").ISimpleType<string>;
566
+ blobId: import("mobx-state-tree").ISimpleType<string>;
567
+ }> | import("mobx-state-tree").ModelSnapshotType<{
568
+ locationType: import("mobx-state-tree").ISimpleType<"LocalPathLocation">;
569
+ localPath: import("mobx-state-tree").ISimpleType<string>;
570
+ }> | undefined;
571
+ treeMetadataFilehandle: {
572
+ locationType: "UriLocation";
573
+ uri: string;
574
+ internetAccountId: string | undefined;
575
+ internetAccountPreAuthorization: import("mobx-state-tree").ModelSnapshotType<{
576
+ internetAccountType: import("mobx-state-tree").ISimpleType<string>;
577
+ authInfo: import("mobx-state-tree").IType<any, any, any>;
578
+ }> | undefined;
579
+ } | import("mobx-state-tree").ModelSnapshotType<{
580
+ locationType: import("mobx-state-tree").ISimpleType<"BlobLocation">;
581
+ name: import("mobx-state-tree").ISimpleType<string>;
582
+ blobId: import("mobx-state-tree").ISimpleType<string>;
583
+ }> | import("mobx-state-tree").ModelSnapshotType<{
584
+ locationType: import("mobx-state-tree").ISimpleType<"LocalPathLocation">;
585
+ localPath: import("mobx-state-tree").ISimpleType<string>;
586
+ }> | undefined;
587
+ collapsed: string[];
588
+ collapsed2: string[];
589
+ showOnly: string | undefined;
590
+ turnedOffTracks: import("mobx").IKeyValueMap<boolean>;
591
+ featureFilters: import("mobx").IKeyValueMap<boolean>;
592
+ data: {
593
+ treeMetadata?: string | undefined;
594
+ msa?: string | undefined;
595
+ tree?: string | undefined;
596
+ };
597
+ } & import("mobx-state-tree")._NotCustomized>;
598
+ export type JBrowsePluginMsaViewStateModel = ReturnType<typeof stateModelFactory>;
599
+ export type JBrowsePluginMsaViewModel = Instance<JBrowsePluginMsaViewStateModel>;
600
+ export {};