@apollo-annotation/jbrowse-plugin-apollo 0.3.11 → 0.3.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ApolloInternetAccount/components/AuthTypeSelector.d.ts +6 -0
- package/dist/ApolloInternetAccount/components/AuthTypeSelector.d.ts.map +1 -0
- package/dist/ApolloInternetAccount/components/LoginButtons.d.ts +5 -0
- package/dist/ApolloInternetAccount/components/LoginButtons.d.ts.map +1 -0
- package/dist/ApolloInternetAccount/components/LoginIcons.d.ts +4 -0
- package/dist/ApolloInternetAccount/components/LoginIcons.d.ts.map +1 -0
- package/dist/ApolloInternetAccount/index.d.ts +3 -0
- package/dist/ApolloInternetAccount/index.d.ts.map +1 -0
- package/dist/ApolloJobModel.d.ts +53 -0
- package/dist/ApolloJobModel.d.ts.map +1 -0
- package/dist/ApolloRefNameAliasAdapter/ApolloRefNameAliasAdapter.d.ts +12 -0
- package/dist/ApolloRefNameAliasAdapter/ApolloRefNameAliasAdapter.d.ts.map +1 -0
- package/dist/ApolloRefNameAliasAdapter/index.d.ts +3 -0
- package/dist/ApolloRefNameAliasAdapter/index.d.ts.map +1 -0
- package/dist/ApolloSequenceAdapter/ApolloSequenceAdapter.d.ts +27 -0
- package/dist/ApolloSequenceAdapter/ApolloSequenceAdapter.d.ts.map +1 -0
- package/dist/ApolloSequenceAdapter/index.d.ts +3 -0
- package/dist/ApolloSequenceAdapter/index.d.ts.map +1 -0
- package/dist/ApolloTextSearchAdapter/ApolloTextSearchAdapter.d.ts +13 -0
- package/dist/ApolloTextSearchAdapter/ApolloTextSearchAdapter.d.ts.map +1 -0
- package/dist/ApolloTextSearchAdapter/index.d.ts +3 -0
- package/dist/ApolloTextSearchAdapter/index.d.ts.map +1 -0
- package/dist/BackendDrivers/BackendDriver.d.ts +26 -0
- package/dist/BackendDrivers/BackendDriver.d.ts.map +1 -0
- package/dist/BackendDrivers/CollaborationServerDriver.d.ts +206 -0
- package/dist/BackendDrivers/CollaborationServerDriver.d.ts.map +1 -0
- package/dist/BackendDrivers/DesktopFileDriver.d.ts +160 -0
- package/dist/BackendDrivers/DesktopFileDriver.d.ts.map +1 -0
- package/dist/BackendDrivers/InMemoryFileDriver.d.ts +162 -0
- package/dist/BackendDrivers/InMemoryFileDriver.d.ts.map +1 -0
- package/dist/BackendDrivers/index.d.ts +5 -0
- package/dist/BackendDrivers/index.d.ts.map +1 -0
- package/dist/ChangeManager.d.ts +24 -0
- package/dist/ChangeManager.d.ts.map +1 -0
- package/dist/FeatureDetailsWidget/ApolloFeatureDetailsWidget.d.ts +6 -0
- package/dist/FeatureDetailsWidget/ApolloFeatureDetailsWidget.d.ts.map +1 -0
- package/dist/FeatureDetailsWidget/ApolloTranscriptDetailsWidget.d.ts +12 -0
- package/dist/FeatureDetailsWidget/ApolloTranscriptDetailsWidget.d.ts.map +1 -0
- package/dist/FeatureDetailsWidget/AttributeKey.d.ts +4 -0
- package/dist/FeatureDetailsWidget/AttributeKey.d.ts.map +1 -0
- package/dist/FeatureDetailsWidget/AttributeKeySelector.d.ts +6 -0
- package/dist/FeatureDetailsWidget/AttributeKeySelector.d.ts.map +1 -0
- package/dist/FeatureDetailsWidget/Attributes.d.ts +9 -0
- package/dist/FeatureDetailsWidget/Attributes.d.ts.map +1 -0
- package/dist/FeatureDetailsWidget/BasicInformation.d.ts +8 -0
- package/dist/FeatureDetailsWidget/BasicInformation.d.ts.map +1 -0
- package/dist/FeatureDetailsWidget/DefaultAttributeEditor.d.ts +9 -0
- package/dist/FeatureDetailsWidget/DefaultAttributeEditor.d.ts.map +1 -0
- package/dist/FeatureDetailsWidget/DefaultAttributeViewer.d.ts +5 -0
- package/dist/FeatureDetailsWidget/DefaultAttributeViewer.d.ts.map +1 -0
- package/dist/FeatureDetailsWidget/FeatureDetailsNavigation.d.ts +7 -0
- package/dist/FeatureDetailsWidget/FeatureDetailsNavigation.d.ts.map +1 -0
- package/dist/FeatureDetailsWidget/NumberTextField.d.ts +8 -0
- package/dist/FeatureDetailsWidget/NumberTextField.d.ts.map +1 -0
- package/dist/FeatureDetailsWidget/Sequence.d.ts +10 -0
- package/dist/FeatureDetailsWidget/Sequence.d.ts.map +1 -0
- package/dist/FeatureDetailsWidget/StringTextField.d.ts +8 -0
- package/dist/FeatureDetailsWidget/StringTextField.d.ts.map +1 -0
- package/dist/FeatureDetailsWidget/TranscriptSequence.d.ts +10 -0
- package/dist/FeatureDetailsWidget/TranscriptSequence.d.ts.map +1 -0
- package/dist/FeatureDetailsWidget/TranscriptWidgetEditLocation.d.ts +9 -0
- package/dist/FeatureDetailsWidget/TranscriptWidgetEditLocation.d.ts.map +1 -0
- package/dist/FeatureDetailsWidget/TranscriptWidgetSummary.d.ts +6 -0
- package/dist/FeatureDetailsWidget/TranscriptWidgetSummary.d.ts.map +1 -0
- package/dist/FeatureDetailsWidget/index.d.ts +5 -0
- package/dist/FeatureDetailsWidget/index.d.ts.map +1 -0
- package/dist/FeatureDetailsWidget/model.d.ts +123 -0
- package/dist/FeatureDetailsWidget/model.d.ts.map +1 -0
- package/dist/LinearApolloDisplay/components/CheckResultWarnings.d.ts +5 -0
- package/dist/LinearApolloDisplay/components/CheckResultWarnings.d.ts.map +1 -0
- package/dist/LinearApolloDisplay/components/LinearApolloDisplay.d.ts +7 -0
- package/dist/LinearApolloDisplay/components/LinearApolloDisplay.d.ts.map +1 -0
- package/dist/LinearApolloDisplay/components/index.d.ts +2 -0
- package/dist/LinearApolloDisplay/components/index.d.ts.map +1 -0
- package/dist/LinearApolloDisplay/glyphs/BoxGlyph.d.ts +4 -0
- package/dist/LinearApolloDisplay/glyphs/BoxGlyph.d.ts.map +1 -0
- package/dist/LinearApolloDisplay/glyphs/GeneGlyph.d.ts +3 -0
- package/dist/LinearApolloDisplay/glyphs/GeneGlyph.d.ts.map +1 -0
- package/dist/LinearApolloDisplay/glyphs/GenericChildGlyph.d.ts +3 -0
- package/dist/LinearApolloDisplay/glyphs/GenericChildGlyph.d.ts.map +1 -0
- package/dist/LinearApolloDisplay/glyphs/Glyph.d.ts +26 -0
- package/dist/LinearApolloDisplay/glyphs/Glyph.d.ts.map +1 -0
- package/dist/LinearApolloDisplay/glyphs/index.d.ts +4 -0
- package/dist/LinearApolloDisplay/glyphs/index.d.ts.map +1 -0
- package/dist/LinearApolloDisplay/glyphs/util.d.ts +12 -0
- package/dist/LinearApolloDisplay/glyphs/util.d.ts.map +1 -0
- package/dist/LinearApolloDisplay/index.d.ts +3 -0
- package/dist/LinearApolloDisplay/index.d.ts.map +1 -0
- package/dist/LinearApolloDisplay/stateModel/base.d.ts +254 -0
- package/dist/LinearApolloDisplay/stateModel/base.d.ts.map +1 -0
- package/dist/LinearApolloDisplay/stateModel/index.d.ts +349 -0
- package/dist/LinearApolloDisplay/stateModel/index.d.ts.map +1 -0
- package/dist/LinearApolloDisplay/stateModel/layouts.d.ts +273 -0
- package/dist/LinearApolloDisplay/stateModel/layouts.d.ts.map +1 -0
- package/dist/LinearApolloDisplay/stateModel/mouseEvents.d.ts +656 -0
- package/dist/LinearApolloDisplay/stateModel/mouseEvents.d.ts.map +1 -0
- package/dist/LinearApolloDisplay/stateModel/rendering.d.ts +300 -0
- package/dist/LinearApolloDisplay/stateModel/rendering.d.ts.map +1 -0
- package/dist/LinearApolloDisplay/types.d.ts +2 -0
- package/dist/LinearApolloDisplay/types.d.ts.map +1 -0
- package/dist/LinearApolloReferenceSequenceDisplay/components/LinearApolloReferenceSequenceDisplay.d.ts +7 -0
- package/dist/LinearApolloReferenceSequenceDisplay/components/LinearApolloReferenceSequenceDisplay.d.ts.map +1 -0
- package/dist/LinearApolloReferenceSequenceDisplay/components/index.d.ts +2 -0
- package/dist/LinearApolloReferenceSequenceDisplay/components/index.d.ts.map +1 -0
- package/dist/LinearApolloReferenceSequenceDisplay/drawSequenceOverlay.d.ts +6 -0
- package/dist/LinearApolloReferenceSequenceDisplay/drawSequenceOverlay.d.ts.map +1 -0
- package/dist/LinearApolloReferenceSequenceDisplay/drawSequenceTrack.d.ts +5 -0
- package/dist/LinearApolloReferenceSequenceDisplay/drawSequenceTrack.d.ts.map +1 -0
- package/dist/LinearApolloReferenceSequenceDisplay/index.d.ts +4 -0
- package/dist/LinearApolloReferenceSequenceDisplay/index.d.ts.map +1 -0
- package/dist/LinearApolloReferenceSequenceDisplay/stateModel/base.d.ts +236 -0
- package/dist/LinearApolloReferenceSequenceDisplay/stateModel/base.d.ts.map +1 -0
- package/dist/LinearApolloReferenceSequenceDisplay/stateModel/index.d.ts +245 -0
- package/dist/LinearApolloReferenceSequenceDisplay/stateModel/index.d.ts.map +1 -0
- package/dist/LinearApolloReferenceSequenceDisplay/stateModel/rendering.d.ts +246 -0
- package/dist/LinearApolloReferenceSequenceDisplay/stateModel/rendering.d.ts.map +1 -0
- package/dist/LinearApolloSixFrameDisplay/components/LinearApolloSixFrameDisplay.d.ts +7 -0
- package/dist/LinearApolloSixFrameDisplay/components/LinearApolloSixFrameDisplay.d.ts.map +1 -0
- package/dist/LinearApolloSixFrameDisplay/components/TrackLines.d.ts +8 -0
- package/dist/LinearApolloSixFrameDisplay/components/TrackLines.d.ts.map +1 -0
- package/dist/LinearApolloSixFrameDisplay/components/index.d.ts +3 -0
- package/dist/LinearApolloSixFrameDisplay/components/index.d.ts.map +1 -0
- package/dist/LinearApolloSixFrameDisplay/glyphs/GeneGlyph.d.ts +3 -0
- package/dist/LinearApolloSixFrameDisplay/glyphs/GeneGlyph.d.ts.map +1 -0
- package/dist/LinearApolloSixFrameDisplay/glyphs/Glyph.d.ts +20 -0
- package/dist/LinearApolloSixFrameDisplay/glyphs/Glyph.d.ts.map +1 -0
- package/dist/LinearApolloSixFrameDisplay/glyphs/index.d.ts +2 -0
- package/dist/LinearApolloSixFrameDisplay/glyphs/index.d.ts.map +1 -0
- package/dist/LinearApolloSixFrameDisplay/index.d.ts +3 -0
- package/dist/LinearApolloSixFrameDisplay/index.d.ts.map +1 -0
- package/dist/LinearApolloSixFrameDisplay/stateModel/base.d.ts +257 -0
- package/dist/LinearApolloSixFrameDisplay/stateModel/base.d.ts.map +1 -0
- package/dist/LinearApolloSixFrameDisplay/stateModel/index.d.ts +355 -0
- package/dist/LinearApolloSixFrameDisplay/stateModel/index.d.ts.map +1 -0
- package/dist/LinearApolloSixFrameDisplay/stateModel/layouts.d.ts +283 -0
- package/dist/LinearApolloSixFrameDisplay/stateModel/layouts.d.ts.map +1 -0
- package/dist/LinearApolloSixFrameDisplay/stateModel/mouseEvents.d.ts +668 -0
- package/dist/LinearApolloSixFrameDisplay/stateModel/mouseEvents.d.ts.map +1 -0
- package/dist/LinearApolloSixFrameDisplay/stateModel/rendering.d.ts +306 -0
- package/dist/LinearApolloSixFrameDisplay/stateModel/rendering.d.ts.map +1 -0
- package/dist/LinearApolloSixFrameDisplay/types.d.ts +2 -0
- package/dist/LinearApolloSixFrameDisplay/types.d.ts.map +1 -0
- package/dist/OntologyManager/OntologyStore/fulltext-stopwords.d.ts +8 -0
- package/dist/OntologyManager/OntologyStore/fulltext-stopwords.d.ts.map +1 -0
- package/dist/OntologyManager/OntologyStore/fulltext.d.ts +27 -0
- package/dist/OntologyManager/OntologyStore/fulltext.d.ts.map +1 -0
- package/dist/OntologyManager/OntologyStore/index.d.ts +93 -0
- package/dist/OntologyManager/OntologyStore/index.d.ts.map +1 -0
- package/dist/OntologyManager/OntologyStore/indexeddb-schema.d.ts +71 -0
- package/dist/OntologyManager/OntologyStore/indexeddb-schema.d.ts.map +1 -0
- package/dist/OntologyManager/OntologyStore/indexeddb-storage.d.ts +11 -0
- package/dist/OntologyManager/OntologyStore/indexeddb-storage.d.ts.map +1 -0
- package/dist/OntologyManager/OntologyStore/obo-graph-json-schema.d.ts +107 -0
- package/dist/OntologyManager/OntologyStore/obo-graph-json-schema.d.ts.map +1 -0
- package/dist/OntologyManager/OntologyStore/prefixes.d.ts +20 -0
- package/dist/OntologyManager/OntologyStore/prefixes.d.ts.map +1 -0
- package/dist/OntologyManager/util.d.ts +4 -0
- package/dist/OntologyManager/util.d.ts.map +1 -0
- package/dist/TabularEditor/HybridGrid/ChangeHandling.d.ts +6 -0
- package/dist/TabularEditor/HybridGrid/ChangeHandling.d.ts.map +1 -0
- package/dist/TabularEditor/HybridGrid/Feature.d.ts +13 -0
- package/dist/TabularEditor/HybridGrid/Feature.d.ts.map +1 -0
- package/dist/TabularEditor/HybridGrid/FeatureAttributes.d.ts +6 -0
- package/dist/TabularEditor/HybridGrid/FeatureAttributes.d.ts.map +1 -0
- package/dist/TabularEditor/HybridGrid/Highlight.d.ts +6 -0
- package/dist/TabularEditor/HybridGrid/Highlight.d.ts.map +1 -0
- package/dist/TabularEditor/HybridGrid/HybridGrid.d.ts +14 -0
- package/dist/TabularEditor/HybridGrid/HybridGrid.d.ts.map +1 -0
- package/dist/TabularEditor/HybridGrid/NumberCell.d.ts +8 -0
- package/dist/TabularEditor/HybridGrid/NumberCell.d.ts.map +1 -0
- package/dist/TabularEditor/HybridGrid/ToolBar.d.ts +5 -0
- package/dist/TabularEditor/HybridGrid/ToolBar.d.ts.map +1 -0
- package/dist/TabularEditor/HybridGrid/featureContextMenuItems.d.ts +11 -0
- package/dist/TabularEditor/HybridGrid/featureContextMenuItems.d.ts.map +1 -0
- package/dist/TabularEditor/HybridGrid/index.d.ts +2 -0
- package/dist/TabularEditor/HybridGrid/index.d.ts.map +1 -0
- package/dist/TabularEditor/TabularEditorPane.d.ts +5 -0
- package/dist/TabularEditor/TabularEditorPane.d.ts.map +1 -0
- package/dist/TabularEditor/index.d.ts +3 -0
- package/dist/TabularEditor/index.d.ts.map +1 -0
- package/dist/TabularEditor/model.d.ts +17 -0
- package/dist/TabularEditor/model.d.ts.map +1 -0
- package/dist/TabularEditor/types.d.ts +4 -0
- package/dist/TabularEditor/types.d.ts.map +1 -0
- package/dist/components/AddAssembly.d.ts +10 -0
- package/dist/components/AddAssembly.d.ts.map +1 -0
- package/dist/components/AddAssemblyAliases.d.ts +10 -0
- package/dist/components/AddAssemblyAliases.d.ts.map +1 -0
- package/dist/components/AddChildFeature.d.ts +13 -0
- package/dist/components/AddChildFeature.d.ts.map +1 -0
- package/dist/components/AddFeature.d.ts +12 -0
- package/dist/components/AddFeature.d.ts.map +1 -0
- package/dist/components/AddRefSeqAliases.d.ts +10 -0
- package/dist/components/AddRefSeqAliases.d.ts.map +1 -0
- package/dist/components/CopyFeature.d.ts +13 -0
- package/dist/components/CopyFeature.d.ts.map +1 -0
- package/dist/components/CreateApolloAnnotation.d.ts +20 -0
- package/dist/components/CreateApolloAnnotation.d.ts.map +1 -0
- package/dist/components/DeleteAssembly.d.ts +10 -0
- package/dist/components/DeleteAssembly.d.ts.map +1 -0
- package/dist/components/DeleteFeature.d.ts +15 -0
- package/dist/components/DeleteFeature.d.ts.map +1 -0
- package/dist/components/Dialog.d.ts +7 -0
- package/dist/components/Dialog.d.ts.map +1 -0
- package/dist/components/DownloadGFF3.d.ts +8 -0
- package/dist/components/DownloadGFF3.d.ts.map +1 -0
- package/dist/components/DuplicateTranscript.d.ts +15 -0
- package/dist/components/DuplicateTranscript.d.ts.map +1 -0
- package/dist/components/EditZoomThresholdDialog.d.ts +11 -0
- package/dist/components/EditZoomThresholdDialog.d.ts.map +1 -0
- package/dist/components/FilterFeatures.d.ts +10 -0
- package/dist/components/FilterFeatures.d.ts.map +1 -0
- package/dist/components/FilterTranscripts.d.ts +10 -0
- package/dist/components/FilterTranscripts.d.ts.map +1 -0
- package/dist/components/ImportFeatures.d.ts +10 -0
- package/dist/components/ImportFeatures.d.ts.map +1 -0
- package/dist/components/LogOut.d.ts +8 -0
- package/dist/components/LogOut.d.ts.map +1 -0
- package/dist/components/ManageChecks.d.ts +8 -0
- package/dist/components/ManageChecks.d.ts.map +1 -0
- package/dist/components/ManageUsers.d.ts +10 -0
- package/dist/components/ManageUsers.d.ts.map +1 -0
- package/dist/components/MergeExons.d.ts +15 -0
- package/dist/components/MergeExons.d.ts.map +1 -0
- package/dist/components/MergeTranscripts.d.ts +15 -0
- package/dist/components/MergeTranscripts.d.ts.map +1 -0
- package/dist/components/OntologyTermAutocomplete.d.ts +25 -0
- package/dist/components/OntologyTermAutocomplete.d.ts.map +1 -0
- package/dist/components/OntologyTermMultiSelect.d.ts +12 -0
- package/dist/components/OntologyTermMultiSelect.d.ts.map +1 -0
- package/dist/components/OpenLocalFile.d.ts +15 -0
- package/dist/components/OpenLocalFile.d.ts.map +1 -0
- package/dist/components/SplitExon.d.ts +15 -0
- package/dist/components/SplitExon.d.ts.map +1 -0
- package/dist/components/ViewChangeLog.d.ts +8 -0
- package/dist/components/ViewChangeLog.d.ts.map +1 -0
- package/dist/components/ViewCheckResults.d.ts +8 -0
- package/dist/components/ViewCheckResults.d.ts.map +1 -0
- package/dist/components/index.d.ts +21 -0
- package/dist/components/index.d.ts.map +1 -0
- package/dist/extensions/annotationFromJBrowseFeature.d.ts +6 -0
- package/dist/extensions/annotationFromJBrowseFeature.d.ts.map +1 -0
- package/dist/extensions/annotationFromPileup.d.ts +3 -0
- package/dist/extensions/annotationFromPileup.d.ts.map +1 -0
- package/dist/extensions/index.d.ts +3 -0
- package/dist/extensions/index.d.ts.map +1 -0
- package/dist/index.esm.js +843 -1330
- package/dist/index.esm.js.map +1 -1
- package/dist/jbrowse-plugin-apollo.cjs.development.js +919 -1455
- package/dist/jbrowse-plugin-apollo.cjs.development.js.map +1 -1
- package/dist/jbrowse-plugin-apollo.cjs.production.min.js +1 -1
- package/dist/jbrowse-plugin-apollo.cjs.production.min.js.map +1 -1
- package/dist/jbrowse-plugin-apollo.umd.development.js +46351 -63687
- package/dist/jbrowse-plugin-apollo.umd.development.js.map +1 -1
- package/dist/jbrowse-plugin-apollo.umd.production.min.js +1 -1
- package/dist/jbrowse-plugin-apollo.umd.production.min.js.map +1 -1
- package/dist/makeDisplayComponent.d.ts +9 -0
- package/dist/makeDisplayComponent.d.ts.map +1 -0
- package/dist/menus/index.d.ts +2 -0
- package/dist/menus/index.d.ts.map +1 -0
- package/dist/menus/topLevelMenu.d.ts +3 -0
- package/dist/menus/topLevelMenu.d.ts.map +1 -0
- package/dist/menus/topLevelMenuAdmin.d.ts +3 -0
- package/dist/menus/topLevelMenuAdmin.d.ts.map +1 -0
- package/dist/session/index.d.ts +2 -0
- package/dist/session/index.d.ts.map +1 -0
- package/dist/types.d.ts +10 -0
- package/dist/types.d.ts.map +1 -0
- package/dist/util/annotationFeatureUtils.d.ts +7 -0
- package/dist/util/annotationFeatureUtils.d.ts.map +1 -0
- package/dist/util/copyToClipboard.d.ts +2 -0
- package/dist/util/copyToClipboard.d.ts.map +1 -0
- package/dist/util/glyphUtils.d.ts +31 -0
- package/dist/util/glyphUtils.d.ts.map +1 -0
- package/dist/util/index.d.ts +10 -0
- package/dist/util/index.d.ts.map +1 -0
- package/dist/util/loadAssemblyIntoClient.d.ts +5 -0
- package/dist/util/loadAssemblyIntoClient.d.ts.map +1 -0
- package/dist/util/mouseEventsUtils.d.ts +25 -0
- package/dist/util/mouseEventsUtils.d.ts.map +1 -0
- package/package.json +48 -25
- package/src/ApolloInternetAccount/components/AuthTypeSelector.tsx +7 -2
- package/src/ApolloInternetAccount/components/LoginButtons.tsx +1 -1
- package/src/ApolloInternetAccount/configSchema.ts +1 -1
- package/src/ApolloInternetAccount/model.ts +13 -6
- package/src/ApolloJobModel.ts +3 -3
- package/src/ApolloRefNameAliasAdapter/ApolloRefNameAliasAdapter.ts +2 -2
- package/src/ApolloSequenceAdapter/ApolloSequenceAdapter.ts +2 -2
- package/src/ApolloTextSearchAdapter/ApolloTextSearchAdapter.ts +28 -5
- package/src/BackendDrivers/BackendDriver.ts +8 -8
- package/src/BackendDrivers/CollaborationServerDriver.ts +6 -6
- package/src/BackendDrivers/DesktopFileDriver.ts +4 -4
- package/src/BackendDrivers/InMemoryFileDriver.ts +5 -8
- package/src/ChangeManager.ts +8 -3
- package/src/FeatureDetailsWidget/ApolloFeatureDetailsWidget.tsx +3 -3
- package/src/FeatureDetailsWidget/ApolloTranscriptDetailsWidget.tsx +7 -7
- package/src/FeatureDetailsWidget/AttributeKey.tsx +1 -1
- package/src/FeatureDetailsWidget/AttributeKeySelector.tsx +1 -1
- package/src/FeatureDetailsWidget/Attributes.tsx +4 -4
- package/src/FeatureDetailsWidget/BasicInformation.tsx +3 -3
- package/src/FeatureDetailsWidget/DefaultAttributeEditor.tsx +1 -1
- package/src/FeatureDetailsWidget/FeatureDetailsNavigation.tsx +2 -2
- package/src/FeatureDetailsWidget/Sequence.tsx +3 -3
- package/src/FeatureDetailsWidget/TranscriptSequence.tsx +2 -2
- package/src/FeatureDetailsWidget/TranscriptWidgetEditLocation.tsx +3 -6
- package/src/FeatureDetailsWidget/TranscriptWidgetSummary.tsx +1 -1
- package/src/FeatureDetailsWidget/model.ts +3 -3
- package/src/LinearApolloDisplay/components/CheckResultWarnings.tsx +2 -2
- package/src/LinearApolloDisplay/components/LinearApolloDisplay.tsx +6 -4
- package/src/LinearApolloDisplay/glyphs/BoxGlyph.ts +7 -7
- package/src/LinearApolloDisplay/glyphs/GeneGlyph.ts +56 -30
- package/src/LinearApolloDisplay/glyphs/GenericChildGlyph.ts +6 -6
- package/src/LinearApolloDisplay/glyphs/Glyph.ts +7 -7
- package/src/LinearApolloDisplay/glyphs/util.ts +2 -2
- package/src/LinearApolloDisplay/stateModel/base.ts +17 -8
- package/src/LinearApolloDisplay/stateModel/index.ts +2 -2
- package/src/LinearApolloDisplay/stateModel/layouts.ts +4 -4
- package/src/LinearApolloDisplay/stateModel/mouseEvents.ts +6 -6
- package/src/LinearApolloDisplay/stateModel/rendering.ts +3 -3
- package/src/LinearApolloReferenceSequenceDisplay/components/LinearApolloReferenceSequenceDisplay.tsx +4 -2
- package/src/LinearApolloReferenceSequenceDisplay/drawSequenceOverlay.ts +4 -4
- package/src/LinearApolloReferenceSequenceDisplay/drawSequenceTrack.ts +3 -3
- package/src/LinearApolloReferenceSequenceDisplay/stateModel/base.ts +11 -8
- package/src/LinearApolloReferenceSequenceDisplay/stateModel/index.ts +2 -2
- package/src/LinearApolloReferenceSequenceDisplay/stateModel/rendering.ts +2 -2
- package/src/LinearApolloSixFrameDisplay/components/LinearApolloSixFrameDisplay.tsx +17 -9
- package/src/LinearApolloSixFrameDisplay/components/TrackLines.tsx +1 -1
- package/src/LinearApolloSixFrameDisplay/glyphs/GeneGlyph.ts +36 -23
- package/src/LinearApolloSixFrameDisplay/glyphs/Glyph.ts +6 -6
- package/src/LinearApolloSixFrameDisplay/stateModel/base.ts +17 -8
- package/src/LinearApolloSixFrameDisplay/stateModel/index.ts +2 -2
- package/src/LinearApolloSixFrameDisplay/stateModel/layouts.ts +12 -8
- package/src/LinearApolloSixFrameDisplay/stateModel/mouseEvents.ts +11 -10
- package/src/LinearApolloSixFrameDisplay/stateModel/rendering.ts +3 -3
- package/src/OntologyManager/OntologyStore/fulltext.test.ts +1 -1
- package/src/OntologyManager/OntologyStore/fulltext.ts +11 -4
- package/src/OntologyManager/OntologyStore/index.test.ts +3 -0
- package/src/OntologyManager/OntologyStore/indexeddb-schema.ts +6 -6
- package/src/OntologyManager/OntologyStore/indexeddb-storage.ts +2 -1
- package/src/OntologyManager/index.ts +4 -4
- package/src/OntologyManager/util.ts +1 -1
- package/src/TabularEditor/HybridGrid/ChangeHandling.ts +2 -2
- package/src/TabularEditor/HybridGrid/Feature.tsx +6 -6
- package/src/TabularEditor/HybridGrid/FeatureAttributes.tsx +2 -2
- package/src/TabularEditor/HybridGrid/Highlight.tsx +1 -1
- package/src/TabularEditor/HybridGrid/HybridGrid.tsx +2 -2
- package/src/TabularEditor/HybridGrid/NumberCell.tsx +1 -1
- package/src/TabularEditor/HybridGrid/ToolBar.tsx +3 -2
- package/src/TabularEditor/HybridGrid/featureContextMenuItems.ts +26 -4
- package/src/TabularEditor/TabularEditorPane.tsx +1 -1
- package/src/TabularEditor/model.ts +2 -2
- package/src/TabularEditor/types.ts +2 -2
- package/src/components/AddAssembly.tsx +61 -42
- package/src/components/AddAssemblyAliases.tsx +5 -5
- package/src/components/AddChildFeature.tsx +3 -3
- package/src/components/AddFeature.tsx +4 -4
- package/src/components/AddRefSeqAliases.tsx +7 -7
- package/src/components/CopyFeature.tsx +8 -8
- package/src/components/CreateApolloAnnotation.tsx +5 -5
- package/src/components/DeleteAssembly.tsx +8 -8
- package/src/components/DeleteFeature.tsx +4 -4
- package/src/components/Dialog.tsx +1 -1
- package/src/components/DownloadGFF3.tsx +8 -8
- package/src/components/DuplicateTranscript.tsx +132 -0
- package/src/components/FilterFeatures.tsx +1 -1
- package/src/components/FilterTranscripts.tsx +1 -1
- package/src/components/ImportFeatures.tsx +51 -33
- package/src/components/LogOut.tsx +4 -4
- package/src/components/ManageChecks.tsx +8 -8
- package/src/components/ManageUsers.tsx +18 -26
- package/src/components/MergeExons.tsx +4 -4
- package/src/components/MergeTranscripts.tsx +4 -4
- package/src/components/OntologyTermAutocomplete.tsx +14 -4
- package/src/components/OntologyTermMultiSelect.tsx +12 -5
- package/src/components/OpenLocalFile.tsx +2 -2
- package/src/components/SplitExon.tsx +6 -6
- package/src/components/ViewChangeLog.tsx +8 -8
- package/src/components/ViewCheckResults.tsx +4 -4
- package/src/components/index.ts +1 -0
- package/src/config.ts +1 -1
- package/src/extensions/annotationFromJBrowseFeature.ts +29 -24
- package/src/extensions/annotationFromPileup.ts +8 -6
- package/src/index.ts +25 -1
- package/src/makeDisplayComponent.tsx +8 -5
- package/src/menus/topLevelMenu.ts +4 -4
- package/src/menus/topLevelMenuAdmin.ts +4 -4
- package/src/session/ClientDataStore.ts +20 -15
- package/src/session/session.ts +30 -19
- package/src/types.ts +10 -4
- package/src/util/annotationFeatureUtils.ts +1 -1
- package/src/util/displayUtils.ts +3 -3
- package/src/util/glyphUtils.ts +10 -10
- package/src/util/index.ts +4 -4
- package/src/util/loadAssemblyIntoClient.ts +4 -4
- package/src/util/mouseEventsUtils.ts +2 -2
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
/* eslint-disable @typescript-eslint/no-unsafe-argument */
|
|
5
5
|
/* eslint-disable @typescript-eslint/no-unsafe-member-access */
|
|
6
6
|
/* eslint-disable @typescript-eslint/no-unsafe-return */
|
|
7
|
+
import { getRoot } from '@jbrowse/mobx-state-tree'
|
|
7
8
|
import {
|
|
8
9
|
Button,
|
|
9
10
|
DialogActions,
|
|
@@ -19,12 +20,11 @@ import {
|
|
|
19
20
|
type GridRowsProp,
|
|
20
21
|
GridToolbar,
|
|
21
22
|
} from '@mui/x-data-grid'
|
|
22
|
-
import { getRoot } from 'mobx-state-tree'
|
|
23
23
|
import React, { useEffect, useState } from 'react'
|
|
24
24
|
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
25
|
+
import type { ApolloInternetAccountModel } from '../ApolloInternetAccount/model'
|
|
26
|
+
import type { ApolloSessionModel } from '../session'
|
|
27
|
+
import type { ApolloRootModel } from '../types'
|
|
28
28
|
import { createFetchErrorMessage } from '../util'
|
|
29
29
|
|
|
30
30
|
import { Dialog } from './Dialog'
|
package/src/components/index.ts
CHANGED
package/src/config.ts
CHANGED
|
@@ -3,19 +3,19 @@
|
|
|
3
3
|
/* eslint-disable @typescript-eslint/no-unsafe-member-access */
|
|
4
4
|
/* eslint-disable @typescript-eslint/no-unsafe-call */
|
|
5
5
|
/* eslint-disable @typescript-eslint/no-unsafe-return */
|
|
6
|
-
import {
|
|
6
|
+
import type { AnnotationFeatureSnapshot } from '@apollo-annotation/mst'
|
|
7
7
|
import { gff3ToAnnotationFeature } from '@apollo-annotation/shared'
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
8
|
+
import type { GFF3Feature } from '@gmod/gff'
|
|
9
|
+
import type { Assembly } from '@jbrowse/core/assemblyManager/assembly'
|
|
10
|
+
import type { PluggableElementType } from '@jbrowse/core/pluggableElementTypes'
|
|
10
11
|
import type DisplayType from '@jbrowse/core/pluggableElementTypes/DisplayType'
|
|
11
|
-
import type PluggableElementBase from '@jbrowse/core/pluggableElementTypes/PluggableElementBase'
|
|
12
12
|
import {
|
|
13
13
|
type AbstractSessionModel,
|
|
14
14
|
getContainingView,
|
|
15
15
|
getSession,
|
|
16
16
|
} from '@jbrowse/core/util'
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
17
|
+
import type { Feature } from '@jbrowse/core/util/simpleFeature'
|
|
18
|
+
import type { LinearGenomeViewModel } from '@jbrowse/plugin-linear-genome-view'
|
|
19
19
|
import AddIcon from '@mui/icons-material/Add'
|
|
20
20
|
|
|
21
21
|
import { CreateApolloAnnotation } from '../components/CreateApolloAnnotation'
|
|
@@ -24,23 +24,26 @@ function simpleFeatureToGFF3Feature(
|
|
|
24
24
|
feature: Feature,
|
|
25
25
|
refSeqId: string,
|
|
26
26
|
): GFF3Feature {
|
|
27
|
-
|
|
28
|
-
const xfeature = JSON.parse(JSON.stringify(feature))
|
|
29
|
-
const children = xfeature.subfeatures
|
|
27
|
+
const children = feature.get('subfeatures')
|
|
30
28
|
const gff3Feature = [
|
|
31
29
|
{
|
|
32
|
-
start: (
|
|
33
|
-
end:
|
|
30
|
+
start: feature.get('start') + 1,
|
|
31
|
+
end: feature.get('end'),
|
|
34
32
|
seq_id: refSeqId,
|
|
35
|
-
source:
|
|
36
|
-
type:
|
|
37
|
-
score:
|
|
38
|
-
strand:
|
|
33
|
+
source: feature.get('source') ?? null,
|
|
34
|
+
type: feature.get('type') ?? null,
|
|
35
|
+
score: feature.get('score') ?? null,
|
|
36
|
+
strand: feature.get('strand')
|
|
37
|
+
? // eslint-disable-next-line unicorn/no-nested-ternary
|
|
38
|
+
feature.get('strand') === 1
|
|
39
|
+
? '+'
|
|
40
|
+
: '-'
|
|
41
|
+
: null,
|
|
39
42
|
phase:
|
|
40
|
-
|
|
41
|
-
? (
|
|
43
|
+
feature.get('phase') !== null || feature.get('phase') !== undefined
|
|
44
|
+
? (feature.get('phase') as string)
|
|
42
45
|
: null,
|
|
43
|
-
attributes: convertFeatureAttributes(
|
|
46
|
+
attributes: convertFeatureAttributes(feature),
|
|
44
47
|
derived_features: [],
|
|
45
48
|
child_features: children
|
|
46
49
|
? children.map((x: Feature) => simpleFeatureToGFF3Feature(x, refSeqId))
|
|
@@ -71,7 +74,7 @@ function convertFeatureAttributes(feature: Feature): Record<string, string[]> {
|
|
|
71
74
|
'source',
|
|
72
75
|
'score',
|
|
73
76
|
])
|
|
74
|
-
for (const [key, value] of Object.entries(feature)) {
|
|
77
|
+
for (const [key, value] of Object.entries(feature.toJSON())) {
|
|
75
78
|
if (defaultFields.has(key)) {
|
|
76
79
|
continue
|
|
77
80
|
}
|
|
@@ -81,7 +84,7 @@ function convertFeatureAttributes(feature: Feature): Record<string, string[]> {
|
|
|
81
84
|
}
|
|
82
85
|
|
|
83
86
|
export function annotationFromJBrowseFeature(
|
|
84
|
-
pluggableElement:
|
|
87
|
+
pluggableElement: PluggableElementType,
|
|
85
88
|
) {
|
|
86
89
|
if (pluggableElement.name !== 'LinearBasicDisplay') {
|
|
87
90
|
return pluggableElement
|
|
@@ -124,10 +127,9 @@ export function annotationFromJBrowseFeature(
|
|
|
124
127
|
}
|
|
125
128
|
return refSeqId
|
|
126
129
|
},
|
|
127
|
-
getAnnotationFeature(assembly: Assembly) {
|
|
130
|
+
getAnnotationFeature(assembly: Assembly, feature: Feature) {
|
|
128
131
|
const refSeqId = self.getRefSeqId(assembly)
|
|
129
|
-
|
|
130
|
-
return jbrowseFeatureToAnnotationFeature(sfeature, refSeqId)
|
|
132
|
+
return jbrowseFeatureToAnnotationFeature(feature, refSeqId)
|
|
131
133
|
},
|
|
132
134
|
}))
|
|
133
135
|
.views((self) => {
|
|
@@ -156,7 +158,10 @@ export function annotationFromJBrowseFeature(
|
|
|
156
158
|
handleClose: () => {
|
|
157
159
|
doneCallback()
|
|
158
160
|
},
|
|
159
|
-
annotationFeature: self.getAnnotationFeature(
|
|
161
|
+
annotationFeature: self.getAnnotationFeature(
|
|
162
|
+
assembly,
|
|
163
|
+
feature,
|
|
164
|
+
),
|
|
160
165
|
assembly,
|
|
161
166
|
refSeqId: self.getRefSeqId(assembly),
|
|
162
167
|
region,
|
|
@@ -3,16 +3,18 @@
|
|
|
3
3
|
/* eslint-disable @typescript-eslint/no-unsafe-member-access */
|
|
4
4
|
/* eslint-disable @typescript-eslint/no-unsafe-call */
|
|
5
5
|
/* eslint-disable @typescript-eslint/no-unsafe-return */
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import
|
|
9
|
-
|
|
6
|
+
import type { AnnotationFeatureSnapshot } from '@apollo-annotation/mst'
|
|
7
|
+
import type { Assembly } from '@jbrowse/core/assemblyManager/assembly'
|
|
8
|
+
import type {
|
|
9
|
+
DisplayType,
|
|
10
|
+
PluggableElementType,
|
|
11
|
+
} from '@jbrowse/core/pluggableElementTypes'
|
|
10
12
|
import {
|
|
11
13
|
type AbstractSessionModel,
|
|
12
14
|
getContainingView,
|
|
13
15
|
getSession,
|
|
14
16
|
} from '@jbrowse/core/util'
|
|
15
|
-
import {
|
|
17
|
+
import type { LinearGenomeViewModel } from '@jbrowse/plugin-linear-genome-view'
|
|
16
18
|
import AddIcon from '@mui/icons-material/Add'
|
|
17
19
|
import ObjectID from 'bson-objectid'
|
|
18
20
|
|
|
@@ -30,7 +32,7 @@ function parseCigar(cigar: string): [string, number][] {
|
|
|
30
32
|
return result
|
|
31
33
|
}
|
|
32
34
|
|
|
33
|
-
export function annotationFromPileup(pluggableElement:
|
|
35
|
+
export function annotationFromPileup(pluggableElement: PluggableElementType) {
|
|
34
36
|
if (pluggableElement.name !== 'LinearPileupDisplay') {
|
|
35
37
|
return pluggableElement
|
|
36
38
|
}
|
package/src/index.ts
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
/* eslint-disable @typescript-eslint/unbound-method */
|
|
2
2
|
/* eslint-disable @typescript-eslint/no-unnecessary-condition */
|
|
3
3
|
/* eslint-disable @typescript-eslint/no-misused-promises */
|
|
4
|
+
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
4
5
|
import { changeRegistry, checkRegistry } from '@apollo-annotation/common'
|
|
6
|
+
import type { AnnotationFeature } from '@apollo-annotation/mst'
|
|
5
7
|
import {
|
|
6
8
|
CDSCheck,
|
|
7
9
|
CoreValidation,
|
|
@@ -12,6 +14,7 @@ import {
|
|
|
12
14
|
} from '@apollo-annotation/shared'
|
|
13
15
|
import Plugin from '@jbrowse/core/Plugin'
|
|
14
16
|
import type PluginManager from '@jbrowse/core/PluginManager'
|
|
17
|
+
import type BaseResult from '@jbrowse/core/TextSearch/BaseResults'
|
|
15
18
|
import { ConfigurationSchema } from '@jbrowse/core/configuration'
|
|
16
19
|
import {
|
|
17
20
|
DisplayType,
|
|
@@ -29,7 +32,7 @@ import {
|
|
|
29
32
|
getSession,
|
|
30
33
|
isAbstractMenuManager,
|
|
31
34
|
} from '@jbrowse/core/util'
|
|
32
|
-
import {
|
|
35
|
+
import type { LinearGenomeViewStateModel } from '@jbrowse/plugin-linear-genome-view'
|
|
33
36
|
import AddIcon from '@mui/icons-material/Add'
|
|
34
37
|
import { alpha } from '@mui/material'
|
|
35
38
|
|
|
@@ -284,6 +287,27 @@ export default class ApolloPlugin extends Plugin {
|
|
|
284
287
|
'Core-extendPluggableElement',
|
|
285
288
|
annotationFromJBrowseFeature,
|
|
286
289
|
)
|
|
290
|
+
|
|
291
|
+
pluginManager.addToExtensionPoint(
|
|
292
|
+
'LinearGenomeView-searchResultSelected',
|
|
293
|
+
(_: any, props: Record<string, unknown>) => {
|
|
294
|
+
const { session, result } = props as {
|
|
295
|
+
session: ApolloSessionModel
|
|
296
|
+
result: BaseResult
|
|
297
|
+
}
|
|
298
|
+
const trackId = result.getTrackId()
|
|
299
|
+
const matchedFeature = result.matchedObject
|
|
300
|
+
|
|
301
|
+
if (trackId?.startsWith('apollo_track_') && matchedFeature) {
|
|
302
|
+
const geneFeature = matchedFeature as AnnotationFeature
|
|
303
|
+
void session.apolloSetEventualSelectedFeature(geneFeature._id)
|
|
304
|
+
}
|
|
305
|
+
|
|
306
|
+
/* eslint-disable-next-line @typescript-eslint/no-unsafe-return */
|
|
307
|
+
return _
|
|
308
|
+
},
|
|
309
|
+
)
|
|
310
|
+
|
|
287
311
|
if (!inWebWorker) {
|
|
288
312
|
pluginManager.addToExtensionPoint(
|
|
289
313
|
'Core-extendWorker',
|
|
@@ -1,18 +1,19 @@
|
|
|
1
1
|
/* eslint-disable @typescript-eslint/unbound-method */
|
|
2
|
+
|
|
2
3
|
import { getSession } from '@jbrowse/core/util'
|
|
4
|
+
import { makeStyles } from '@jbrowse/core/util/tss-react'
|
|
3
5
|
import ExpandLessIcon from '@mui/icons-material/ExpandLess'
|
|
4
6
|
import ExpandMoreIcon from '@mui/icons-material/ExpandMore'
|
|
5
7
|
import { Alert, Typography, alpha } from '@mui/material'
|
|
6
8
|
import { observer } from 'mobx-react'
|
|
7
9
|
import React, { useCallback, useEffect, useRef } from 'react'
|
|
8
|
-
import { makeStyles } from 'tss-react/mui'
|
|
9
10
|
|
|
10
11
|
import { LinearApolloDisplay } from './LinearApolloDisplay/components'
|
|
11
|
-
import {
|
|
12
|
+
import type { LinearApolloDisplay as LinearApolloDisplayI } from './LinearApolloDisplay/stateModel'
|
|
12
13
|
import { LinearApolloSixFrameDisplay } from './LinearApolloSixFrameDisplay/components'
|
|
13
|
-
import {
|
|
14
|
+
import type { LinearApolloSixFrameDisplay as LinearApolloSixFrameDisplayI } from './LinearApolloSixFrameDisplay/stateModel'
|
|
14
15
|
import { TabularEditorPane } from './TabularEditor'
|
|
15
|
-
import {
|
|
16
|
+
import type { ApolloSessionModel } from './session'
|
|
16
17
|
|
|
17
18
|
const accordionControlHeight = 12
|
|
18
19
|
|
|
@@ -97,7 +98,9 @@ const ResizeHandle = ({
|
|
|
97
98
|
const controller = new AbortController()
|
|
98
99
|
const { signal } = controller
|
|
99
100
|
function abortDrag() {
|
|
100
|
-
controller.abort(
|
|
101
|
+
controller.abort(
|
|
102
|
+
new DOMException('Canceling drag event listener', 'AbortError'),
|
|
103
|
+
)
|
|
101
104
|
}
|
|
102
105
|
globalThis.addEventListener('mousemove', mouseMove, { signal })
|
|
103
106
|
globalThis.addEventListener('mouseup', abortDrag, { signal })
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import type {
|
|
2
|
+
AbstractMenuManager,
|
|
3
|
+
AbstractSessionModel,
|
|
4
4
|
} from '@jbrowse/core/util'
|
|
5
5
|
import DownloadIcon from '@mui/icons-material/Download'
|
|
6
6
|
import FactCheckIcon from '@mui/icons-material/FactCheck'
|
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
ViewChangeLog,
|
|
18
18
|
ViewCheckResults,
|
|
19
19
|
} from '../components'
|
|
20
|
-
import {
|
|
20
|
+
import type { ApolloSessionModel } from '../session'
|
|
21
21
|
|
|
22
22
|
export function addTopLevelMenus(rootModel: AbstractMenuManager) {
|
|
23
23
|
rootModel.insertInMenu(
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import type {
|
|
2
|
+
AbstractMenuManager,
|
|
3
|
+
AbstractSessionModel,
|
|
4
4
|
} from '@jbrowse/core/util'
|
|
5
5
|
import AddIcon from '@mui/icons-material/Add'
|
|
6
6
|
import AdminPanelSettingsIcon from '@mui/icons-material/AdminPanelSettings'
|
|
@@ -18,7 +18,7 @@ import {
|
|
|
18
18
|
ManageChecks,
|
|
19
19
|
ManageUsers,
|
|
20
20
|
} from '../components'
|
|
21
|
-
import {
|
|
21
|
+
import type { ApolloSessionModel } from '../session'
|
|
22
22
|
|
|
23
23
|
export function addTopLevelAdminMenus(rootModel: AbstractMenuManager) {
|
|
24
24
|
rootModel.appendToMenu('Apollo', {
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/* eslint-disable @typescript-eslint/no-unsafe-assignment */
|
|
3
3
|
/* eslint-disable @typescript-eslint/no-unnecessary-condition */
|
|
4
4
|
/* eslint-disable @typescript-eslint/no-unsafe-argument */
|
|
5
|
-
import {
|
|
5
|
+
import type { ClientDataStore as ClientDataStoreType } from '@apollo-annotation/common'
|
|
6
6
|
import {
|
|
7
7
|
type AnnotationFeatureModel,
|
|
8
8
|
type AnnotationFeatureSnapshot,
|
|
@@ -13,14 +13,16 @@ import {
|
|
|
13
13
|
CheckResult,
|
|
14
14
|
type CheckResultSnapshot,
|
|
15
15
|
} from '@apollo-annotation/mst'
|
|
16
|
-
import { getConf, readConfObject } from '@jbrowse/core/configuration'
|
|
17
|
-
import { type ConfigurationModel } from '@jbrowse/core/configuration/types'
|
|
18
|
-
import { type Region, getSession, isElectron } from '@jbrowse/core/util'
|
|
19
16
|
import {
|
|
20
|
-
type
|
|
21
|
-
|
|
17
|
+
type AnyConfigurationModel,
|
|
18
|
+
getConf,
|
|
19
|
+
readConfObject,
|
|
20
|
+
} from '@jbrowse/core/configuration'
|
|
21
|
+
import { type Region, getSession, isElectron } from '@jbrowse/core/util'
|
|
22
|
+
import type {
|
|
23
|
+
LocalPathLocation,
|
|
24
|
+
UriLocation,
|
|
22
25
|
} from '@jbrowse/core/util/types/mst'
|
|
23
|
-
import { autorun } from 'mobx'
|
|
24
26
|
import {
|
|
25
27
|
type Instance,
|
|
26
28
|
addDisposer,
|
|
@@ -29,7 +31,8 @@ import {
|
|
|
29
31
|
getRoot,
|
|
30
32
|
resolveIdentifier,
|
|
31
33
|
types,
|
|
32
|
-
} from 'mobx-state-tree'
|
|
34
|
+
} from '@jbrowse/mobx-state-tree'
|
|
35
|
+
import { autorun } from 'mobx'
|
|
33
36
|
|
|
34
37
|
import {
|
|
35
38
|
type ApolloInternetAccount,
|
|
@@ -41,13 +44,12 @@ import {
|
|
|
41
44
|
import { ChangeManager } from '../ChangeManager'
|
|
42
45
|
import {
|
|
43
46
|
OntologyManagerType,
|
|
44
|
-
type OntologyRecordConfiguration,
|
|
45
47
|
type TextIndexFieldDefinition,
|
|
46
48
|
} from '../OntologyManager'
|
|
47
49
|
import type ApolloPluginConfigurationSchema from '../config'
|
|
48
|
-
import {
|
|
50
|
+
import type { ApolloRootModel } from '../types'
|
|
49
51
|
|
|
50
|
-
import {
|
|
52
|
+
import type { ApolloSessionModel } from './session'
|
|
51
53
|
|
|
52
54
|
export function clientDataStoreFactory(
|
|
53
55
|
AnnotationFeatureExtended: typeof AnnotationFeatureModel,
|
|
@@ -177,9 +179,7 @@ export function clientDataStoreFactory(
|
|
|
177
179
|
// take precedence over the ontologies in the configuration.
|
|
178
180
|
const { ontologyManager, pluginConfiguration } = self
|
|
179
181
|
const configuredOntologies =
|
|
180
|
-
pluginConfiguration.ontologies as
|
|
181
|
-
typeof OntologyRecordConfiguration
|
|
182
|
-
>[]
|
|
182
|
+
pluginConfiguration.ontologies as AnyConfigurationModel[]
|
|
183
183
|
for (const ont of configuredOntologies || []) {
|
|
184
184
|
const [name, version, source, indexFields] = [
|
|
185
185
|
readConfObject(ont, 'name') as string,
|
|
@@ -204,7 +204,12 @@ export function clientDataStoreFactory(
|
|
|
204
204
|
statusMessage: `Loading ontology "${name}", version "${version}", this may take a while`,
|
|
205
205
|
progressPct: 0,
|
|
206
206
|
cancelCallback: () => {
|
|
207
|
-
controller.abort(
|
|
207
|
+
controller.abort(
|
|
208
|
+
new DOMException(
|
|
209
|
+
`Canceling loading of ontology "${name}"`,
|
|
210
|
+
'AbortError',
|
|
211
|
+
),
|
|
212
|
+
)
|
|
208
213
|
jobsManager.abortJob(job.name)
|
|
209
214
|
},
|
|
210
215
|
}
|
package/src/session/session.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
/* eslint-disable @typescript-eslint/no-unsafe-return */
|
|
2
1
|
/* eslint-disable @typescript-eslint/no-unnecessary-condition */
|
|
3
2
|
/* eslint-disable @typescript-eslint/no-unsafe-assignment */
|
|
4
|
-
import {
|
|
3
|
+
import type { ClientDataStore as ClientDataStoreType } from '@apollo-annotation/common'
|
|
5
4
|
import {
|
|
6
5
|
type AnnotationFeature,
|
|
7
6
|
AnnotationFeatureModel,
|
|
@@ -13,16 +12,13 @@ import {
|
|
|
13
12
|
filterJBrowseConfig,
|
|
14
13
|
} from '@apollo-annotation/shared'
|
|
15
14
|
import type PluginManager from '@jbrowse/core/PluginManager'
|
|
16
|
-
import {
|
|
15
|
+
import type { AssemblyModel } from '@jbrowse/core/assemblyManager/assembly'
|
|
17
16
|
import { getConf, readConfObject } from '@jbrowse/core/configuration'
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
|
|
21
|
-
|
|
17
|
+
import type { BaseTrackConfig } from '@jbrowse/core/pluggableElementTypes'
|
|
18
|
+
import type {
|
|
19
|
+
AbstractSessionModel,
|
|
20
|
+
SessionWithAddTracks,
|
|
22
21
|
} from '@jbrowse/core/util'
|
|
23
|
-
import { type LinearGenomeViewModel } from '@jbrowse/plugin-linear-genome-view'
|
|
24
|
-
import SaveIcon from '@mui/icons-material/Save'
|
|
25
|
-
import { autorun, observable } from 'mobx'
|
|
26
22
|
import {
|
|
27
23
|
type Instance,
|
|
28
24
|
type SnapshotOut,
|
|
@@ -31,13 +27,16 @@ import {
|
|
|
31
27
|
getRoot,
|
|
32
28
|
getSnapshot,
|
|
33
29
|
types,
|
|
34
|
-
} from 'mobx-state-tree'
|
|
30
|
+
} from '@jbrowse/mobx-state-tree'
|
|
31
|
+
import type { LinearGenomeViewModel } from '@jbrowse/plugin-linear-genome-view'
|
|
32
|
+
import SaveIcon from '@mui/icons-material/Save'
|
|
33
|
+
import { autorun, flow, observable, when } from 'mobx'
|
|
35
34
|
|
|
36
|
-
import {
|
|
35
|
+
import type { ApolloInternetAccountModel } from '../ApolloInternetAccount/model'
|
|
37
36
|
import { ApolloJobModel } from '../ApolloJobModel'
|
|
38
|
-
import {
|
|
37
|
+
import type { ChangeManager } from '../ChangeManager'
|
|
39
38
|
import type ApolloPluginConfigurationSchema from '../config'
|
|
40
|
-
import {
|
|
39
|
+
import type { ApolloRootModel } from '../types'
|
|
41
40
|
import { createFetchErrorMessage } from '../util'
|
|
42
41
|
|
|
43
42
|
import { clientDataStoreFactory } from './ClientDataStore'
|
|
@@ -207,6 +206,14 @@ export function extendSession(
|
|
|
207
206
|
}
|
|
208
207
|
},
|
|
209
208
|
}))
|
|
209
|
+
.actions((self) => ({
|
|
210
|
+
apolloSetEventualSelectedFeature: flow(
|
|
211
|
+
function* apolloSetEventualSelectedFeature(featureId: string) {
|
|
212
|
+
yield when(() => Boolean(self.apolloDataStore.getFeature(featureId)))
|
|
213
|
+
self.apolloSetSelectedFeature(featureId)
|
|
214
|
+
},
|
|
215
|
+
),
|
|
216
|
+
}))
|
|
210
217
|
.volatile((self) => ({
|
|
211
218
|
previousSnapshot: getSnapshot(self),
|
|
212
219
|
}))
|
|
@@ -338,6 +345,10 @@ export function extendSession(
|
|
|
338
345
|
console.error(error)
|
|
339
346
|
continue
|
|
340
347
|
}
|
|
348
|
+
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
|
|
349
|
+
if (!jbrowseConfig.configuration.ApolloPlugin.hasRole) {
|
|
350
|
+
continue
|
|
351
|
+
}
|
|
341
352
|
// eslint-disable-next-line @typescript-eslint/no-unsafe-call
|
|
342
353
|
reloadPluginManagerCallback(
|
|
343
354
|
jbrowseConfig,
|
|
@@ -351,7 +362,9 @@ export function extendSession(
|
|
|
351
362
|
)
|
|
352
363
|
},
|
|
353
364
|
beforeDestroy() {
|
|
354
|
-
self.abortController.abort(
|
|
365
|
+
self.abortController.abort(
|
|
366
|
+
new DOMException('Clean up Apollo session', 'AbortError'),
|
|
367
|
+
)
|
|
355
368
|
},
|
|
356
369
|
}))
|
|
357
370
|
|
|
@@ -384,10 +397,7 @@ export function extendSession(
|
|
|
384
397
|
if (Object.keys(filteredConfig).length === 0) {
|
|
385
398
|
filteredConfig = undefined
|
|
386
399
|
}
|
|
387
|
-
const trackConfigSnapshot = getSnapshot(conf)
|
|
388
|
-
trackId: string
|
|
389
|
-
type: string
|
|
390
|
-
}
|
|
400
|
+
const trackConfigSnapshot = getSnapshot(conf)
|
|
391
401
|
const newTrackId = trackId.slice(
|
|
392
402
|
0,
|
|
393
403
|
trackId.length - sessionTrackIdentifier.length,
|
|
@@ -405,6 +415,7 @@ export function extendSession(
|
|
|
405
415
|
oldJBrowseConfig: filteredConfig,
|
|
406
416
|
newJBrowseConfig: {
|
|
407
417
|
...filteredConfig,
|
|
418
|
+
// @ts-expect-error The track types are in the snapshot
|
|
408
419
|
tracks: filteredConfig?.tracks && [
|
|
409
420
|
...filteredConfig.tracks,
|
|
410
421
|
newTrackConfigSnapshot,
|
package/src/types.ts
CHANGED
|
@@ -1,10 +1,16 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import type { BaseInternetAccountModel } from '@jbrowse/core/pluggableElementTypes'
|
|
2
|
+
import type { AppRootModel } from '@jbrowse/core/util'
|
|
3
3
|
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
4
|
+
import type { ApolloInternetAccountModel } from './ApolloInternetAccount/model'
|
|
5
|
+
import type { ApolloSessionModel } from './session'
|
|
6
6
|
|
|
7
7
|
export interface ApolloRootModel extends Omit<AppRootModel, 'session'> {
|
|
8
8
|
session: ApolloSessionModel
|
|
9
9
|
internetAccounts: (BaseInternetAccountModel | ApolloInternetAccountModel)[]
|
|
10
10
|
}
|
|
11
|
+
|
|
12
|
+
export function isApolloInternetAccount(
|
|
13
|
+
internetAccount: BaseInternetAccountModel | ApolloInternetAccountModel,
|
|
14
|
+
): internetAccount is ApolloInternetAccountModel {
|
|
15
|
+
return internetAccount.type === 'ApolloInternetAccount'
|
|
16
|
+
}
|
package/src/util/displayUtils.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import type { CheckResultIdsType } from '@apollo-annotation/mst'
|
|
2
|
+
import { makeStyles } from '@jbrowse/core/util/tss-react'
|
|
3
|
+
import type { Theme } from '@mui/material'
|
|
4
4
|
|
|
5
5
|
export { default as EditZoomThresholdDialog } from '../components/EditZoomThresholdDialog'
|
|
6
6
|
|
package/src/util/glyphUtils.ts
CHANGED
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import type {
|
|
2
|
+
AnnotationFeature,
|
|
3
|
+
TranscriptPartCoding,
|
|
4
4
|
} from '@apollo-annotation/mst'
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
5
|
+
import type { BaseDisplayModel } from '@jbrowse/core/pluggableElementTypes'
|
|
6
|
+
import type { MenuItem } from '@jbrowse/core/ui'
|
|
7
7
|
import {
|
|
8
8
|
type AbstractSessionModel,
|
|
9
9
|
getContainingView,
|
|
10
10
|
isSessionModelWithWidgets,
|
|
11
11
|
} from '@jbrowse/core/util'
|
|
12
|
-
import {
|
|
12
|
+
import type { LinearGenomeViewModel } from '@jbrowse/plugin-linear-genome-view'
|
|
13
13
|
import SkipNextRoundedIcon from '@mui/icons-material/SkipNextRounded'
|
|
14
14
|
import SkipPreviousRoundedIcon from '@mui/icons-material/SkipPreviousRounded'
|
|
15
15
|
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
16
|
+
import type { LinearApolloDisplayMouseEvents } from '../LinearApolloDisplay/stateModel/mouseEvents'
|
|
17
|
+
import type { LinearApolloSixFrameDisplayMouseEvents } from '../LinearApolloSixFrameDisplay/stateModel/mouseEvents'
|
|
18
18
|
import { AddChildFeature, CopyFeature, DeleteFeature } from '../components'
|
|
19
|
-
import {
|
|
19
|
+
import type { ApolloSessionModel } from '../session'
|
|
20
20
|
|
|
21
|
-
import {
|
|
21
|
+
import type { MousePositionWithFeature } from '.'
|
|
22
22
|
|
|
23
23
|
type NavLocation = Parameters<LinearGenomeViewModel['navTo']>[0]
|
|
24
24
|
|
package/src/util/index.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { getParent } from 'mobx-state-tree'
|
|
1
|
+
import { getParent } from '@jbrowse/mobx-state-tree'
|
|
2
2
|
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
3
|
+
import type { ApolloInternetAccountModel } from '../ApolloInternetAccount/model'
|
|
4
|
+
import type { ApolloSessionModel } from '../session'
|
|
5
|
+
import type { ApolloRootModel } from '../types'
|
|
6
6
|
|
|
7
7
|
export async function createFetchErrorMessage(
|
|
8
8
|
response: Response,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { type ClientDataStore, checkRegistry } from '@apollo-annotation/common'
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
import type {
|
|
3
|
+
ApolloAssemblyI,
|
|
4
|
+
CheckResultSnapshot,
|
|
5
5
|
} from '@apollo-annotation/mst'
|
|
6
6
|
import { gff3ToAnnotationFeature } from '@apollo-annotation/shared'
|
|
7
7
|
import {
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
type GFF3Sequence,
|
|
11
11
|
parseStringSync,
|
|
12
12
|
} from '@gmod/gff'
|
|
13
|
-
import { getSnapshot } from 'mobx-state-tree'
|
|
13
|
+
import { getSnapshot } from '@jbrowse/mobx-state-tree'
|
|
14
14
|
|
|
15
15
|
export async function loadAssemblyIntoClient(
|
|
16
16
|
assemblyId: string,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import type { AnnotationFeature } from '@apollo-annotation/mst'
|
|
2
|
+
import type { LinearGenomeViewModel } from '@jbrowse/plugin-linear-genome-view'
|
|
3
3
|
|
|
4
4
|
type MinEdge = 'min'
|
|
5
5
|
type MaxEdge = 'max'
|