@rivm-loculus-tools/sequence-editor 0.1.4 → 0.1.7

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 (127) hide show
  1. package/dist/_chunks/EditorWorkerService.js +127 -0
  2. package/dist/_chunks/EditorWorkerService.js.map +1 -0
  3. package/dist/_chunks/SequenceEditor.js +733 -0
  4. package/dist/_chunks/SequenceEditor.js.map +1 -0
  5. package/dist/_chunks/SequenceEditorPageDrawer.js +425 -0
  6. package/dist/_chunks/SequenceEditorPageDrawer.js.map +1 -0
  7. package/dist/_chunks/comlink.js +228 -0
  8. package/dist/_chunks/comlink.js.map +1 -0
  9. package/dist/_chunks/react.js +11 -0
  10. package/dist/_chunks/react.js.map +1 -0
  11. package/dist/_chunks/sequenceEditorStore.js +174 -0
  12. package/dist/_chunks/sequenceEditorStore.js.map +1 -0
  13. package/dist/assets/index-Dn92arD_.js +8 -0
  14. package/dist/assets/index-Dn92arD_.js.map +1 -0
  15. package/dist/classes/services/EditorWorkerService/EditorWorkerService.d.ts +27 -0
  16. package/dist/classes/services/EditorWorkerService/index.js +2 -0
  17. package/dist/classes/services/SequenceEditorEventBusService/SequenceEditorEventBusService.d.ts +25 -0
  18. package/dist/classes/services/SequenceEditorEventBusService/index.js +16 -0
  19. package/dist/classes/services/SequenceEditorEventBusService/index.js.map +1 -0
  20. package/dist/classes/workers/EngineWorker/EngineWorker.d.ts +46 -0
  21. package/dist/classes/workers/EngineWorker/index.js +111 -0
  22. package/dist/classes/workers/EngineWorker/index.js.map +1 -0
  23. package/dist/components/app/App/App.d.ts +1 -0
  24. package/dist/components/app/App/index.js +21 -0
  25. package/dist/components/app/App/index.js.map +1 -0
  26. package/dist/components/pages/EmptyWorkspace.d.ts +3 -0
  27. package/dist/components/pages/SequenceEditorErrorPage/SequenceEditorErrorPage.d.ts +3 -0
  28. package/dist/components/pages/SequenceEditorErrorPage/index.js +12 -0
  29. package/dist/components/pages/SequenceEditorErrorPage/index.js.map +1 -0
  30. package/dist/components/pages/SequenceEditorMainPage/SequenceEditorMainPage.d.ts +1 -0
  31. package/dist/components/pages/SequenceEditorMainPage/index.js +61 -0
  32. package/dist/components/pages/SequenceEditorMainPage/index.js.map +1 -0
  33. package/dist/components/ui/SequenceEditor/SequenceEditor.d.ts +1 -0
  34. package/dist/components/ui/SequenceEditor/SequenceEditorGotoPositionDialog.d.ts +8 -0
  35. package/dist/components/ui/SequenceEditor/SequenceEditorStatusBar.d.ts +1 -0
  36. package/dist/components/ui/SequenceEditor/index.js +2 -0
  37. package/dist/components/ui/SequenceEditorPage/SequenceEditorPage.d.ts +5 -0
  38. package/dist/components/ui/SequenceEditorPage/index.js +15 -0
  39. package/dist/components/ui/SequenceEditorPage/index.js.map +1 -0
  40. package/dist/components/ui/SequenceEditorPageDrawer/SequenceEditorPageDrawer.d.ts +1 -0
  41. package/dist/components/ui/SequenceEditorPageDrawer/SequenceEditorPageDrawerColorForm.d.ts +7 -0
  42. package/dist/components/ui/SequenceEditorPageDrawer/SequenceEditorPageDrawerKeyboardShortcuts.d.ts +1 -0
  43. package/dist/components/ui/SequenceEditorPageDrawer/index.js +2 -0
  44. package/dist/components/ui/SequenceEditorPageHeader/SequenceEditorPageHeader.d.ts +1 -0
  45. package/dist/components/ui/SequenceEditorPageHeader/index.js +60 -0
  46. package/dist/components/ui/SequenceEditorPageHeader/index.js.map +1 -0
  47. package/dist/components/ui/SequenceEditorSearchBar/SequenceEditorSearchBar.d.ts +1 -0
  48. package/dist/components/ui/SequenceEditorSearchBar/index.js +27 -0
  49. package/dist/components/ui/SequenceEditorSearchBar/index.js.map +1 -0
  50. package/dist/constants/editor.d.ts +4 -0
  51. package/dist/constants/editor.js +14 -0
  52. package/dist/constants/editor.js.map +1 -0
  53. package/dist/constants/index.js +4 -0
  54. package/dist/constants/keyboard.d.ts +10 -0
  55. package/dist/constants/keyboard.js +179 -0
  56. package/dist/constants/keyboard.js.map +1 -0
  57. package/dist/constants/palette.d.ts +15 -0
  58. package/dist/constants/palette.js +196 -0
  59. package/dist/constants/palette.js.map +1 -0
  60. package/dist/models/editor.d.ts +6 -0
  61. package/dist/models/editor.js +8 -0
  62. package/dist/models/editor.js.map +1 -0
  63. package/dist/models/model.d.ts +250 -0
  64. package/dist/models/model.js +10 -0
  65. package/dist/models/model.js.map +1 -0
  66. package/dist/models/palette.d.ts +61 -0
  67. package/dist/models/palette.js +10 -0
  68. package/dist/models/palette.js.map +1 -0
  69. package/dist/stores/sequenceEditorStore/index.js +2 -0
  70. package/dist/stores/sequenceEditorStore/sequenceEditorStore.d.ts +36 -0
  71. package/dist/utils/EditorUtil/EditorUtil.d.ts +96 -0
  72. package/dist/utils/EditorUtil/index.js +552 -0
  73. package/dist/utils/EditorUtil/index.js.map +1 -0
  74. package/dist/utils/EngineErrorUtil/EngineErrorUtil.d.ts +4 -0
  75. package/dist/utils/PaletteUtil/PaletteUtil.d.ts +6 -0
  76. package/dist/utils/PaletteUtil/index.js +19 -0
  77. package/dist/utils/PaletteUtil/index.js.map +1 -0
  78. package/package.json +47 -21
  79. package/.gitkeep +0 -0
  80. package/CHANGELOG.md +0 -37
  81. package/eslint.config.js +0 -16
  82. package/scripts/update-exports.js +0 -9
  83. package/src/classes/services/EditorWorkerService/EditorWorkerService.ts +0 -163
  84. package/src/classes/services/SequenceEditorEventBusService/SequenceEditorEventBusService.ts +0 -37
  85. package/src/classes/workers/EngineWorker/EngineWorker.ts +0 -196
  86. package/src/components/app/App/App.tsx +0 -22
  87. package/src/components/pages/EmptyWorkspace.tsx +0 -43
  88. package/src/components/pages/SequenceEditorErrorPage/SequenceEditorErrorPage.tsx +0 -16
  89. package/src/components/pages/SequenceEditorMainPage/SequenceEditorMainPage.tsx +0 -76
  90. package/src/components/ui/SequenceEditor/SequenceEditor.tsx +0 -896
  91. package/src/components/ui/SequenceEditor/SequenceEditorGotoPositionDialog.tsx +0 -108
  92. package/src/components/ui/SequenceEditor/SequenceEditorStatusBar.tsx +0 -72
  93. package/src/components/ui/SequenceEditorPage/SequenceEditorPage.tsx +0 -23
  94. package/src/components/ui/SequenceEditorPageDrawer/SequenceEditorPageDrawer.tsx +0 -234
  95. package/src/components/ui/SequenceEditorPageDrawer/SequenceEditorPageDrawerColorForm.tsx +0 -73
  96. package/src/components/ui/SequenceEditorPageDrawer/SequenceEditorPageDrawerKeyboardShortcuts.tsx +0 -230
  97. package/src/components/ui/SequenceEditorPageHeader/SequenceEditorPageHeader.tsx +0 -71
  98. package/src/components/ui/SequenceEditorSearchBar/SequenceEditorSearchBar.tsx +0 -35
  99. package/src/constants/editor.ts +0 -15
  100. package/src/constants/keyboard.ts +0 -154
  101. package/src/constants/palette.ts +0 -227
  102. package/src/models/editor.ts +0 -6
  103. package/src/models/model.ts +0 -295
  104. package/src/models/palette.ts +0 -68
  105. package/src/stores/sequenceEditorStore/sequenceEditorStore.ts +0 -103
  106. package/src/utils/EditorUtil/EditorUtil.ts +0 -892
  107. package/src/utils/EngineErrorUtil/EngineErrorUtil.ts +0 -25
  108. package/src/utils/PaletteUtil/PaletteUtil.ts +0 -31
  109. package/tsconfig.build.json +0 -14
  110. package/tsconfig.json +0 -32
  111. package/vite.config.ts +0 -177
  112. /package/{src/classes/services/EditorWorkerService/index.ts → dist/classes/services/EditorWorkerService/index.d.ts} +0 -0
  113. /package/{src/classes/services/SequenceEditorEventBusService/index.ts → dist/classes/services/SequenceEditorEventBusService/index.d.ts} +0 -0
  114. /package/{src/classes/workers/EngineWorker/index.ts → dist/classes/workers/EngineWorker/index.d.ts} +0 -0
  115. /package/{src/components/app/App/index.ts → dist/components/app/App/index.d.ts} +0 -0
  116. /package/{src/components/pages/SequenceEditorErrorPage/index.ts → dist/components/pages/SequenceEditorErrorPage/index.d.ts} +0 -0
  117. /package/{src/components/pages/SequenceEditorMainPage/index.ts → dist/components/pages/SequenceEditorMainPage/index.d.ts} +0 -0
  118. /package/{src/components/ui/SequenceEditor/index.ts → dist/components/ui/SequenceEditor/index.d.ts} +0 -0
  119. /package/{src/components/ui/SequenceEditorPage/index.ts → dist/components/ui/SequenceEditorPage/index.d.ts} +0 -0
  120. /package/{src/components/ui/SequenceEditorPageDrawer/index.ts → dist/components/ui/SequenceEditorPageDrawer/index.d.ts} +0 -0
  121. /package/{src/components/ui/SequenceEditorPageHeader/index.ts → dist/components/ui/SequenceEditorPageHeader/index.d.ts} +0 -0
  122. /package/{src/components/ui/SequenceEditorSearchBar/index.ts → dist/components/ui/SequenceEditorSearchBar/index.d.ts} +0 -0
  123. /package/{src/constants/index.ts → dist/constants/index.d.ts} +0 -0
  124. /package/{src/models/index.ts → dist/models/index.d.ts} +0 -0
  125. /package/{src/stores/sequenceEditorStore/index.ts → dist/stores/sequenceEditorStore/index.d.ts} +0 -0
  126. /package/{src/utils/EditorUtil/index.ts → dist/utils/EditorUtil/index.d.ts} +0 -0
  127. /package/{src/utils/PaletteUtil/index.ts → dist/utils/PaletteUtil/index.d.ts} +0 -0
@@ -1,196 +0,0 @@
1
- /// <reference lib="webworker" />
2
- import { expose } from 'comlink';
3
- import type { MoveDirection } from '@rivm-loculus-tools/sequence-editor-wasm';
4
- import init, { MsaEngine } from '@rivm-loculus-tools/sequence-editor-wasm';
5
-
6
- import type {
7
- EngineMeta,
8
- EngineSearchResult,
9
- EngineViewportResult,
10
- EngineWorkerApi,
11
- ViewportBounds,
12
- } from '../../../models';
13
-
14
- /**
15
- * MSA engine Web Worker.
16
- *
17
- * This worker is the **single owner** of the `MsaEngine` WASM instance and its
18
- * linear memory for the lifetime of the page. All Rust calls happen here, off
19
- * the main thread, so FASTA parsing, structural mutations, and undo/redo
20
- * snapshots never stall the React render loop.
21
- *
22
- * The class is exposed to the main thread through comlink, so every public
23
- * method is proxied as an asynchronous call across the worker boundary.
24
- */
25
- export class EngineWorker implements EngineWorkerApi {
26
- private engine: MsaEngine | null = null;
27
- private initialization: null | Promise<void> = null;
28
-
29
- public async delete(rows: number[], column: number): Promise<void> {
30
- const engine = await this.requireEngine();
31
- engine.delete_at_subset(this.toRowIndices(rows), column);
32
- }
33
-
34
- public async deleteColumn(column: number): Promise<void> {
35
- const engine = await this.requireEngine();
36
- engine.delete_column(column);
37
- }
38
-
39
- public async exportFasta(): Promise<string> {
40
- const engine = await this.requireEngine();
41
- const records: string[] = [];
42
- for (let row = 0; row < engine.get_sequence_count(); row += 1) {
43
- const sequence: string[] = [];
44
- for (let column = 0; column < engine.get_row_length(row); column += 1) {
45
- sequence.push(String.fromCharCode(engine.get_base(row, column)));
46
- }
47
- records.push(`>${engine.get_name(row)}\n${sequence.join('')}\n`);
48
- }
49
- return records.join('');
50
- }
51
-
52
- /**
53
- * Idempotently instantiates the WASM module and constructs the engine.
54
- * Safe to call multiple times; concurrent callers share one initialization.
55
- */
56
- public async initialize(): Promise<void> {
57
- if (this.engine) {
58
- return;
59
- }
60
- if (!this.initialization) {
61
- this.initialization = (async () => {
62
- await init(undefined);
63
- this.engine = new MsaEngine();
64
- })();
65
- this.initialization.catch(() => {
66
- this.initialization = null;
67
- });
68
- }
69
- await this.initialization;
70
- }
71
-
72
- public async insert(rows: number[], column: number): Promise<void> {
73
- const engine = await this.requireEngine();
74
- engine.insert_at_subset(this.toRowIndices(rows), column);
75
- }
76
-
77
- public async load(fastaContent: string): Promise<number> {
78
- const engine = await this.requireEngine();
79
- return engine.load_fasta(fastaContent);
80
- }
81
-
82
- public async meta(): Promise<EngineMeta> {
83
- const engine = await this.requireEngine();
84
- return {
85
- alignmentWidth: engine.get_alignment_width(),
86
- redoDepth: engine.redo_depth(),
87
- sequenceCount: engine.get_sequence_count(),
88
- undoDepth: engine.undo_depth(),
89
- };
90
- }
91
-
92
- public async moveHorizontal(row: number, columns: number[], direction: MoveDirection): Promise<void> {
93
- const engine = await this.requireEngine();
94
- engine.move_horizontal(row, this.toRowIndices(columns), direction);
95
- }
96
-
97
- public async moveRowsDown(rows: number[]): Promise<void> {
98
- const engine = await this.requireEngine();
99
- engine.move_rows_down(this.toRowIndices(rows));
100
- }
101
-
102
- public async moveRowsUp(rows: number[]): Promise<void> {
103
- const engine = await this.requireEngine();
104
- engine.move_rows_up(this.toRowIndices(rows));
105
- }
106
-
107
- public async mutate(rows: number[], column: number, base: string): Promise<void> {
108
- const engine = await this.requireEngine();
109
- engine.mutate_base_subset(this.toRowIndices(rows), column, base.charCodeAt(0));
110
- }
111
-
112
- public async name(row: number): Promise<string> {
113
- const engine = await this.requireEngine();
114
- return engine.get_name(row);
115
- }
116
-
117
- public async redo(): Promise<boolean> {
118
- const engine = await this.requireEngine();
119
- return engine.redo();
120
- }
121
-
122
- public async search(query: string, checkRecordNames: boolean): Promise<EngineSearchResult> {
123
- const engine = await this.requireEngine();
124
- return engine.search(query, checkRecordNames) as EngineSearchResult;
125
- }
126
-
127
- public async translate(bounds: ViewportBounds, readingFrame: number): Promise<EngineViewportResult> {
128
- const engine = await this.requireEngine();
129
- this.validateBounds(bounds);
130
- const bytes = engine.translate(
131
- bounds.startRow,
132
- bounds.endRow,
133
- bounds.startCol,
134
- bounds.endCol,
135
- readingFrame,
136
- );
137
- return this.buildViewportResult(bytes, bounds);
138
- }
139
-
140
- public async undo(): Promise<boolean> {
141
- const engine = await this.requireEngine();
142
- return engine.undo();
143
- }
144
-
145
- public async viewport(bounds: ViewportBounds): Promise<EngineViewportResult> {
146
- const engine = await this.requireEngine();
147
- this.validateBounds(bounds);
148
- const bytes = engine.update_viewport(
149
- bounds.startRow,
150
- bounds.endRow,
151
- bounds.startCol,
152
- bounds.endCol,
153
- );
154
- return this.buildViewportResult(bytes, bounds);
155
- }
156
-
157
- /** Builds a fixed-stride viewport result from the engine's returned bytes. */
158
- private buildViewportResult(bytes: Uint8Array, bounds: ViewportBounds): EngineViewportResult {
159
- const columns = bounds.endCol - bounds.startCol + 1;
160
- const rows = columns > 0 ? Math.floor(bytes.byteLength / columns) : 0;
161
- return {
162
- bytes,
163
- cols: columns,
164
- rows,
165
- startCol: bounds.startCol,
166
- startRow: bounds.startRow,
167
- };
168
- }
169
-
170
- /** Returns the initialized engine, initializing it first if necessary. */
171
- private async requireEngine(): Promise<MsaEngine> {
172
- await this.initialize();
173
- if (!this.engine) {
174
- throw new Error('Engine failed to initialize');
175
- }
176
- return this.engine;
177
- }
178
-
179
- /** Converts a plain row-index list into the typed array the WASM API expects. */
180
- private toRowIndices(rows: number[]): Uint32Array {
181
- return new Uint32Array(rows);
182
- }
183
-
184
- /** Validates that viewport/translation bounds are safe, non-negative, and ordered. */
185
- private validateBounds(bounds: ViewportBounds): void {
186
- const values = [bounds.startRow, bounds.endRow, bounds.startCol, bounds.endCol];
187
- if (!values.every((value) => Number.isSafeInteger(value) && value >= 0)) {
188
- throw new Error('Viewport bounds must be non-negative safe integers');
189
- }
190
- if (bounds.startRow > bounds.endRow || bounds.startCol > bounds.endCol) {
191
- throw new Error('Viewport bounds must be ordered (start <= end)');
192
- }
193
- }
194
- }
195
-
196
- expose(new EngineWorker());
@@ -1,22 +0,0 @@
1
- import { CssBaseline } from '@mui/material';
2
- import { ThemeProvider } from '@mui/material/styles';
3
- import { ErrorBoundary } from 'react-error-boundary';
4
- import { theme } from '@rivm-loculus-tools/common-frontend/theme';
5
- import { I18nWrapper } from '@rivm-loculus-tools/common-frontend/components/I18nWrapper';
6
- import { PageCommonContextProvider } from '@rivm-loculus-tools/common-frontend/components/page';
7
-
8
- import { SequenceEditorMainPage } from '../../pages/SequenceEditorMainPage';
9
- import { SequenceEditorErrorPage } from '../../pages/SequenceEditorErrorPage';
10
-
11
- export const App = () => (
12
- <ErrorBoundary FallbackComponent={SequenceEditorErrorPage}>
13
- <I18nWrapper>
14
- <ThemeProvider theme={theme}>
15
- <CssBaseline />
16
- <PageCommonContextProvider>
17
- <SequenceEditorMainPage />
18
- </PageCommonContextProvider>
19
- </ThemeProvider>
20
- </I18nWrapper>
21
- </ErrorBoundary>
22
- );
@@ -1,43 +0,0 @@
1
- import {
2
- Box,
3
- Button,
4
- Typography,
5
- } from '@mui/material';
6
- import BiotechOutlinedIcon from '@mui/icons-material/BiotechOutlined';
7
- import FileUploadOutlinedIcon from '@mui/icons-material/FileUploadOutlined';
8
-
9
- export const EmptyWorkspace = ({ onImport }: { onImport: () => void }) => (
10
- <Box
11
- sx={{
12
- alignItems: 'center',
13
- display: 'flex',
14
- flex: 1,
15
- flexDirection: 'column',
16
- gap: 1.5,
17
- justifyContent: 'center',
18
- p: 3,
19
- textAlign: 'center',
20
- }}
21
- >
22
- <BiotechOutlinedIcon
23
- sx={{ color: 'primary.main', fontSize: 64 }}
24
- />
25
- <Typography variant={'h5'}>
26
- {'No alignment loaded'}
27
- </Typography>
28
- <Typography
29
- color={'text.secondary'}
30
- sx={{ maxWidth: 460 }}
31
- variant={'body2'}
32
- >
33
- {'Import a nucleotide FASTA file or open the bundled SARS-CoV-2 demo.'}
34
- </Typography>
35
- <Button
36
- onClick={onImport}
37
- startIcon={<FileUploadOutlinedIcon />}
38
- sx={{ mt: 1 }}
39
- >
40
- {'Import FASTA'}
41
- </Button>
42
- </Box>
43
- );
@@ -1,16 +0,0 @@
1
- import type { ErrorPageCommonProps } from '@rivm-loculus-tools/common-frontend/components/page';
2
- import { ErrorPageCommon } from '@rivm-loculus-tools/common-frontend/components/page';
3
-
4
- import { SequenceEditorPage } from '../../ui/SequenceEditorPage';
5
-
6
- export type SequenceEditorErrorPageProps = ErrorPageCommonProps;
7
-
8
- export const SequenceEditorErrorPage = ({ error }: SequenceEditorErrorPageProps) => {
9
- return (
10
- <SequenceEditorPage
11
- isNoInteraction
12
- >
13
- <ErrorPageCommon error={error} />
14
- </SequenceEditorPage>
15
- );
16
- };
@@ -1,76 +0,0 @@
1
- import { useStore } from 'zustand';
2
- import {
3
- useCallback,
4
- useMemo,
5
- } from 'react';
6
- import { FastaDataEventBusService } from '@rivm-loculus-tools/common-frontend/classes/services/FastaDataEventBusService';
7
- import { ErrorUtil } from '@rivm-loculus-tools/common-frontend/utils/ErrorUtil';
8
- import { UrlUtil } from '@rivm-loculus-tools/common-frontend/utils/UrlUtil';
9
- import type { DialogAction } from '@gen-epix/ui-core-components/components/Dialog';
10
- import { FastaDataImportDialogLoader } from '@rivm-loculus-tools/common-frontend/components/FastaDataImportDialogLoader';
11
- import { BackdropSpinner } from '@gen-epix/ui-core-components/components/BackdropSpinner';
12
- import { FastaNotLoaded } from '@rivm-loculus-tools/common-frontend/components/FastaNotLoaded';
13
- import BiotechOutlinedIcon from '@mui/icons-material/BiotechOutlined';
14
- import { LOADING_STATUS } from '@rivm-loculus-tools/common-frontend/models/fasta';
15
-
16
- import { sequenceEditorStore } from '../../../stores/sequenceEditorStore';
17
- import { SequenceEditor } from '../../ui/SequenceEditor';
18
- import { SequenceEditorPage } from '../../ui/SequenceEditorPage';
19
-
20
-
21
- export const SequenceEditorMainPage = () => {
22
- const loadingStatus = useStore(sequenceEditorStore, (state) => state.loadingStatus);
23
- const setData = useStore(sequenceEditorStore, (state) => state.setData);
24
- const rawFasta = useStore(sequenceEditorStore, (state) => state.rawFasta);
25
-
26
- const onClickLoadDemoData = useCallback(async () => {
27
- try {
28
- const fastaRes = await fetch('/sample-data/sarscov2_demo.fasta');
29
- const demoFastaText = await fastaRes.text();
30
-
31
- await setData(demoFastaText);
32
- FastaDataEventBusService.getInstance().emit('onCloseImportDialog');
33
- } catch (err: unknown) {
34
- FastaDataEventBusService.getInstance().emit('onCloseImportDialog');
35
- const errorMessage = `Failed to load demo dataset: ${ErrorUtil.getErrorMessage(err, 'Unknown error')}`;
36
- FastaDataEventBusService.getInstance().emit('onShowImportDialog', errorMessage);
37
- } finally {
38
- UrlUtil.clearSearchParams();
39
- }
40
- }, [setData]);
41
-
42
- const extraFastaDataImportDialogLoaderActions = useMemo<DialogAction[]>(() => [
43
- {
44
- autoFocus: true,
45
- color: 'secondary',
46
- label: 'Demo (SARS-CoV-2)',
47
- onClick: onClickLoadDemoData,
48
- variant: 'contained',
49
- },
50
- ], [onClickLoadDemoData]);
51
-
52
- return (
53
- <SequenceEditorPage
54
- isNoInteraction={false}
55
- >
56
- {rawFasta && (
57
- <SequenceEditor />
58
- )}
59
- {!rawFasta && (
60
- <FastaNotLoaded
61
- description={'Load a FASTA sequence file to enable the editor.'}
62
- icon={<BiotechOutlinedIcon sx={{ color: 'text.disabled', fontSize: 72 }} />}
63
- title={'No FASTA Sequence Loaded'}
64
- />
65
- )}
66
- <FastaDataImportDialogLoader
67
- extraActions={extraFastaDataImportDialogLoaderActions}
68
- store={sequenceEditorStore}
69
- />
70
- <BackdropSpinner
71
- label={`Computing phylogenetic tree`}
72
- open={loadingStatus === LOADING_STATUS.LOADING}
73
- />
74
- </SequenceEditorPage>
75
- );
76
- };