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