@jbrowse/plugin-variants 3.7.0 → 4.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.
- package/esm/ChordVariantDisplay/components/ChordVariantDisplay.d.ts +11 -0
- package/esm/ChordVariantDisplay/components/ChordVariantDisplay.js +16 -0
- package/esm/ChordVariantDisplay/components/DisplayError.d.ts +9 -0
- package/esm/ChordVariantDisplay/components/DisplayError.js +7 -0
- package/esm/ChordVariantDisplay/components/Loading.d.ts +8 -0
- package/esm/ChordVariantDisplay/components/Loading.js +28 -0
- package/esm/ChordVariantDisplay/index.js +4 -4
- package/esm/ChordVariantDisplay/models/configSchema.d.ts +4 -5
- package/esm/ChordVariantDisplay/models/configSchema.js +10 -5
- package/esm/ChordVariantDisplay/models/renderReaction.d.ts +30 -0
- package/esm/ChordVariantDisplay/models/renderReaction.js +48 -0
- package/esm/ChordVariantDisplay/models/renderSvg.d.ts +6 -0
- package/esm/ChordVariantDisplay/models/renderSvg.js +12 -0
- package/esm/ChordVariantDisplay/models/stateModelFactory.d.ts +535 -46
- package/esm/ChordVariantDisplay/models/stateModelFactory.js +146 -8
- package/esm/LinearVariantDisplay/configSchema.d.ts +5 -5
- package/esm/LinearVariantDisplay/configSchema.js +2 -2
- package/esm/LinearVariantDisplay/index.js +6 -4
- package/esm/LinearVariantDisplay/model.d.ts +1086 -103
- package/esm/LinearVariantDisplay/model.js +10 -26
- package/esm/MultiLinearVariantDisplay/components/VariantDisplayComponent.d.ts +1 -1
- package/esm/MultiLinearVariantDisplay/components/VariantDisplayComponent.js +8 -18
- package/esm/MultiLinearVariantDisplay/configSchema.d.ts +6 -44
- package/esm/MultiLinearVariantDisplay/configSchema.js +2 -2
- package/esm/MultiLinearVariantDisplay/index.js +4 -3
- package/esm/MultiLinearVariantDisplay/model.d.ts +1031 -125
- package/esm/MultiLinearVariantDisplay/model.js +3 -23
- package/esm/MultiLinearVariantDisplay/renderSvg.d.ts +1 -1
- package/esm/MultiLinearVariantDisplay/renderSvg.js +4 -4
- package/esm/MultiLinearVariantMatrixDisplay/components/LinesConnectingMatrixToGenomicPosition.d.ts +8 -2
- package/esm/MultiLinearVariantMatrixDisplay/components/LinesConnectingMatrixToGenomicPosition.js +26 -23
- package/esm/MultiLinearVariantMatrixDisplay/components/VariantDisplayComponent.d.ts +1 -1
- package/esm/MultiLinearVariantMatrixDisplay/components/VariantDisplayComponent.js +9 -20
- package/esm/MultiLinearVariantMatrixDisplay/configSchema.d.ts +6 -6
- package/esm/MultiLinearVariantMatrixDisplay/configSchema.js +1 -1
- package/esm/MultiLinearVariantMatrixDisplay/index.js +5 -4
- package/esm/MultiLinearVariantMatrixDisplay/model.d.ts +1110 -131
- package/esm/MultiLinearVariantMatrixDisplay/model.js +22 -48
- package/esm/MultiLinearVariantMatrixDisplay/renderSvg.d.ts +1 -1
- package/esm/MultiLinearVariantMatrixDisplay/renderSvg.js +3 -3
- package/esm/MultiLinearVariantMatrixRenderer/MultiLinearVariantMatrixRenderer.d.ts +4 -35
- package/esm/MultiLinearVariantMatrixRenderer/MultiLinearVariantMatrixRenderer.js +19 -33
- package/esm/MultiLinearVariantMatrixRenderer/components/MultiLinearVariantMatrixRendering.d.ts +12 -1
- package/esm/MultiLinearVariantMatrixRenderer/components/MultiLinearVariantMatrixRendering.js +48 -22
- package/esm/MultiLinearVariantMatrixRenderer/configSchema.d.ts +1 -1
- package/esm/MultiLinearVariantMatrixRenderer/index.js +4 -4
- package/esm/MultiLinearVariantMatrixRenderer/makeImageData.d.ts +10 -2
- package/esm/MultiLinearVariantMatrixRenderer/makeImageData.js +155 -135
- package/esm/MultiLinearVariantMatrixRenderer/types.d.ts +2 -14
- package/esm/MultiLinearVariantRenderer/MultiVariantRenderer.d.ts +3 -60
- package/esm/MultiLinearVariantRenderer/MultiVariantRenderer.js +9 -18
- package/esm/MultiLinearVariantRenderer/components/MultiLinearVariantRendering.d.ts +7 -6
- package/esm/MultiLinearVariantRenderer/components/MultiLinearVariantRendering.js +30 -26
- package/esm/MultiLinearVariantRenderer/configSchema.d.ts +1 -1
- package/esm/MultiLinearVariantRenderer/index.js +4 -4
- package/esm/MultiLinearVariantRenderer/makeImageData.d.ts +14 -11
- package/esm/MultiLinearVariantRenderer/makeImageData.js +127 -110
- package/esm/MultiLinearVariantRenderer/types.d.ts +3 -20
- package/esm/SplitVcfTabixAdapter/SplitVcfTabixAdapter.js +1 -1
- package/esm/SplitVcfTabixAdapter/configSchema.d.ts +2 -2
- package/esm/SplitVcfTabixAdapter/index.d.ts +1 -1
- package/esm/SplitVcfTabixAdapter/index.js +3 -3
- package/esm/StructuralVariantChordRenderer/Chord.d.ts +1 -1
- package/esm/StructuralVariantChordRenderer/Chord.js +41 -58
- package/esm/StructuralVariantChordRenderer/ReactComponent.d.ts +3 -3
- package/esm/StructuralVariantChordRenderer/ReactComponent.js +3 -3
- package/esm/StructuralVariantChordRenderer/configSchema.d.ts +2 -2
- package/esm/StructuralVariantChordRenderer/index.js +3 -3
- package/esm/Tooltip.js +2 -2
- package/esm/VariantFeatureWidget/AltFormatter.js +1 -1
- package/esm/VariantFeatureWidget/Formatter.js +2 -2
- package/esm/VariantFeatureWidget/LaunchBreakendPanel/BreakpointSplitViewChoiceDialog.d.ts +1 -0
- package/esm/VariantFeatureWidget/LaunchBreakendPanel/BreakpointSplitViewChoiceDialog.js +1 -0
- package/esm/VariantFeatureWidget/LaunchBreakendPanel/LaunchBreakendPanel.d.ts +1 -1
- package/esm/VariantFeatureWidget/LaunchBreakendPanel/LaunchBreakendPanel.js +8 -23
- package/esm/VariantFeatureWidget/VariantConsequence/VariantConsequenceDataGrid.js +1 -1
- package/esm/VariantFeatureWidget/VariantFeatureWidget.d.ts +1 -1
- package/esm/VariantFeatureWidget/VariantFeatureWidget.js +16 -29
- package/esm/VariantFeatureWidget/VariantSampleGrid/VariantGenotypeFrequencyTable.d.ts +5 -2
- package/esm/VariantFeatureWidget/VariantSampleGrid/VariantGenotypeFrequencyTable.js +68 -59
- package/esm/VariantFeatureWidget/VariantSampleGrid/VariantSampleFilters.js +13 -2
- package/esm/VariantFeatureWidget/VariantSampleGrid/VariantSampleGrid.d.ts +1 -1
- package/esm/VariantFeatureWidget/VariantSampleGrid/VariantSampleGrid.js +72 -30
- package/esm/VariantFeatureWidget/VariantSampleGrid/getSampleGridRows.d.ts +2 -2
- package/esm/VariantFeatureWidget/VariantSampleGrid/getSampleGridRows.js +49 -26
- package/esm/VariantFeatureWidget/VariantSampleGrid/types.d.ts +3 -5
- package/esm/VariantFeatureWidget/configSchema.d.ts +1 -1
- package/esm/VariantFeatureWidget/index.js +3 -3
- package/esm/VariantFeatureWidget/stateModelFactory.d.ts +39 -39
- package/esm/VariantFeatureWidget/stateModelFactory.js +1 -1
- package/esm/VariantRPC/MultiVariantClusterGenotypeMatrix.d.ts +2 -7
- package/esm/VariantRPC/MultiVariantClusterGenotypeMatrix.js +3 -14
- package/esm/VariantRPC/MultiVariantGetGenotypeMatrix.d.ts +4 -2
- package/esm/VariantRPC/MultiVariantGetGenotypeMatrix.js +2 -5
- package/esm/VariantRPC/MultiVariantGetSimplifiedFeatures.d.ts +2 -2
- package/esm/VariantRPC/MultiVariantGetSimplifiedFeatures.js +34 -19
- package/esm/VariantRPC/MultiVariantGetSources.js +2 -6
- package/esm/VariantRPC/executeClusterGenotypeMatrix.d.ts +22 -0
- package/esm/VariantRPC/executeClusterGenotypeMatrix.js +19 -0
- package/esm/VariantRPC/getGenotypeMatrix.d.ts +18 -3
- package/esm/VariantRPC/getGenotypeMatrix.js +23 -40
- package/esm/VariantRPC/types.d.ts +10 -24
- package/esm/VariantTrack/configSchema.d.ts +16 -11
- package/esm/VariantTrack/index.js +13 -2
- package/esm/VariantTrack/saveTrackFormats/vcf.d.ts +4 -0
- package/esm/VariantTrack/saveTrackFormats/vcf.js +15 -0
- package/esm/VcfAdapter/VcfAdapter.d.ts +6 -3
- package/esm/VcfAdapter/VcfAdapter.js +36 -24
- package/esm/VcfAdapter/configSchema.d.ts +2 -2
- package/esm/VcfAdapter/index.js +3 -2
- package/esm/VcfExtensionPoints/index.d.ts +2 -0
- package/esm/{extensionPoints.js → VcfExtensionPoints/index.js} +1 -1
- package/esm/VcfFeature/index.js +20 -8
- package/esm/VcfFeature/util.d.ts +0 -1
- package/esm/VcfFeature/util.js +70 -188
- package/esm/VcfTabixAdapter/VcfTabixAdapter.d.ts +2 -0
- package/esm/VcfTabixAdapter/VcfTabixAdapter.js +28 -3
- package/esm/VcfTabixAdapter/configSchema.d.ts +5 -5
- package/esm/VcfTabixAdapter/configSchema.js +1 -1
- package/esm/VcfTabixAdapter/index.d.ts +1 -1
- package/esm/VcfTabixAdapter/index.js +4 -3
- package/esm/d3-hierarchy2/accessors.d.ts +2 -0
- package/esm/d3-hierarchy2/accessors.js +8 -0
- package/esm/d3-hierarchy2/array.d.ts +2 -0
- package/esm/d3-hierarchy2/array.js +15 -0
- package/esm/d3-hierarchy2/cluster.d.ts +8 -0
- package/esm/d3-hierarchy2/cluster.js +63 -0
- package/esm/d3-hierarchy2/constant.d.ts +2 -0
- package/esm/d3-hierarchy2/constant.js +8 -0
- package/esm/d3-hierarchy2/hierarchy/ancestors.d.ts +1 -0
- package/esm/d3-hierarchy2/hierarchy/ancestors.js +7 -0
- package/esm/d3-hierarchy2/hierarchy/count.d.ts +1 -0
- package/esm/d3-hierarchy2/hierarchy/count.js +12 -0
- package/esm/d3-hierarchy2/hierarchy/descendants.d.ts +1 -0
- package/esm/d3-hierarchy2/hierarchy/descendants.js +3 -0
- package/esm/d3-hierarchy2/hierarchy/each.d.ts +1 -0
- package/esm/d3-hierarchy2/hierarchy/each.js +7 -0
- package/esm/d3-hierarchy2/hierarchy/eachAfter.d.ts +1 -0
- package/esm/d3-hierarchy2/hierarchy/eachAfter.js +15 -0
- package/esm/d3-hierarchy2/hierarchy/eachBefore.d.ts +1 -0
- package/esm/d3-hierarchy2/hierarchy/eachBefore.js +12 -0
- package/esm/d3-hierarchy2/hierarchy/find.d.ts +1 -0
- package/esm/d3-hierarchy2/hierarchy/find.js +8 -0
- package/esm/d3-hierarchy2/hierarchy/index.d.ts +3 -0
- package/esm/d3-hierarchy2/hierarchy/index.js +78 -0
- package/esm/d3-hierarchy2/hierarchy/iterator.d.ts +1 -0
- package/esm/d3-hierarchy2/hierarchy/iterator.js +14 -0
- package/esm/d3-hierarchy2/hierarchy/leaves.d.ts +1 -0
- package/esm/d3-hierarchy2/hierarchy/leaves.js +9 -0
- package/esm/d3-hierarchy2/hierarchy/links.d.ts +1 -0
- package/esm/d3-hierarchy2/hierarchy/links.js +9 -0
- package/esm/d3-hierarchy2/hierarchy/path.d.ts +1 -0
- package/esm/d3-hierarchy2/hierarchy/path.js +26 -0
- package/esm/d3-hierarchy2/hierarchy/sort.d.ts +1 -0
- package/esm/d3-hierarchy2/hierarchy/sort.js +7 -0
- package/esm/d3-hierarchy2/hierarchy/sum.d.ts +1 -0
- package/esm/d3-hierarchy2/hierarchy/sum.js +8 -0
- package/esm/d3-hierarchy2/index.d.ts +15 -0
- package/esm/d3-hierarchy2/index.js +15 -0
- package/esm/d3-hierarchy2/lcg.d.ts +1 -0
- package/esm/d3-hierarchy2/lcg.js +7 -0
- package/esm/d3-hierarchy2/pack/enclose.d.ts +10 -0
- package/esm/d3-hierarchy2/pack/enclose.js +84 -0
- package/esm/d3-hierarchy2/pack/index.d.ts +7 -0
- package/esm/d3-hierarchy2/pack/index.js +68 -0
- package/esm/d3-hierarchy2/pack/siblings.d.ts +2 -0
- package/esm/d3-hierarchy2/pack/siblings.js +94 -0
- package/esm/d3-hierarchy2/partition.d.ts +6 -0
- package/esm/d3-hierarchy2/partition.js +42 -0
- package/esm/d3-hierarchy2/stratify.d.ts +9 -0
- package/esm/d3-hierarchy2/stratify.js +115 -0
- package/esm/d3-hierarchy2/tree.d.ts +8 -0
- package/esm/d3-hierarchy2/tree.js +153 -0
- package/esm/d3-hierarchy2/treemap/binary.d.ts +1 -0
- package/esm/d3-hierarchy2/treemap/binary.js +36 -0
- package/esm/d3-hierarchy2/treemap/dice.d.ts +1 -0
- package/esm/d3-hierarchy2/treemap/dice.js +7 -0
- package/esm/d3-hierarchy2/treemap/index.d.ts +17 -0
- package/esm/d3-hierarchy2/treemap/index.js +72 -0
- package/esm/d3-hierarchy2/treemap/resquarify.d.ts +5 -0
- package/esm/d3-hierarchy2/treemap/resquarify.js +28 -0
- package/esm/d3-hierarchy2/treemap/round.d.ts +1 -0
- package/esm/d3-hierarchy2/treemap/round.js +6 -0
- package/esm/d3-hierarchy2/treemap/slice.d.ts +1 -0
- package/esm/d3-hierarchy2/treemap/slice.js +7 -0
- package/esm/d3-hierarchy2/treemap/sliceDice.d.ts +1 -0
- package/esm/d3-hierarchy2/treemap/sliceDice.js +5 -0
- package/esm/d3-hierarchy2/treemap/squarify.d.ts +11 -0
- package/esm/d3-hierarchy2/treemap/squarify.js +46 -0
- package/esm/index.d.ts +1 -1
- package/esm/index.js +19 -22
- package/esm/shared/MultiVariantBaseModel.d.ts +1103 -117
- package/esm/shared/MultiVariantBaseModel.js +231 -65
- package/esm/shared/SharedVariantConfigSchema.d.ts +2 -40
- package/esm/shared/SharedVariantConfigSchema.js +1 -46
- package/esm/shared/components/AddFiltersDialog.d.ts +2 -3
- package/esm/shared/components/AddFiltersDialog.js +20 -28
- package/esm/shared/components/{ui/SetColorDialog.d.ts → BaseSetColorDialog.d.ts} +2 -1
- package/esm/shared/components/BaseSetColorDialog.js +61 -0
- package/esm/shared/components/ClearTreeWarningDialog.d.ts +4 -0
- package/esm/shared/components/ClearTreeWarningDialog.js +9 -0
- package/esm/shared/components/MAFFilterDialog.d.ts +2 -3
- package/esm/shared/components/MAFFilterDialog.js +4 -8
- package/esm/shared/components/MultiVariantBaseDisplayComponent.d.ts +1 -1
- package/esm/shared/components/MultiVariantBaseDisplayComponent.js +8 -17
- package/esm/shared/components/MultiVariantClusterDialog/ClusterDialog.d.ts +1 -1
- package/esm/shared/components/MultiVariantClusterDialog/ClusterDialog.js +3 -3
- package/esm/shared/components/MultiVariantClusterDialog/ClusterDialogAuto.d.ts +1 -1
- package/esm/shared/components/MultiVariantClusterDialog/ClusterDialogAuto.js +9 -14
- package/esm/shared/components/MultiVariantClusterDialog/ClusterDialogManual.d.ts +1 -1
- package/esm/shared/components/MultiVariantClusterDialog/ClusterDialogManual.js +11 -15
- package/esm/shared/components/MultiVariantClusterDialog/types.d.ts +3 -2
- package/esm/shared/components/MultiVariantColorLegend.d.ts +1 -1
- package/esm/shared/components/MultiVariantColorLegend.js +22 -12
- package/esm/shared/components/MultiVariantCrosshairs.d.ts +4 -2
- package/esm/shared/components/MultiVariantCrosshairs.js +31 -23
- package/esm/shared/components/MultiVariantLegendBar.d.ts +4 -4
- package/esm/shared/components/MultiVariantLegendBar.js +24 -22
- package/esm/shared/components/MultiVariantLegendBarWrapper.d.ts +7 -0
- package/esm/shared/components/MultiVariantLegendBarWrapper.js +18 -0
- package/esm/shared/components/MultiVariantTooltip.d.ts +5 -6
- package/esm/shared/components/MultiVariantTooltip.js +35 -17
- package/esm/shared/components/ScrollableVariantContainer.d.ts +8 -0
- package/esm/shared/components/ScrollableVariantContainer.js +23 -0
- package/esm/shared/components/SetColorDialog.d.ts +3 -2
- package/esm/shared/components/SetColorDialog.js +2 -2
- package/esm/shared/components/SetColorDialogBulkEditPanel.d.ts +7 -8
- package/esm/shared/components/SetColorDialogBulkEditPanel.js +24 -54
- package/esm/shared/components/SetColorDialogRowPalettizer.js +13 -23
- package/esm/shared/components/SetRowHeightDialog.d.ts +2 -3
- package/esm/shared/components/SourcesDataGrid.d.ts +1 -1
- package/esm/shared/components/SourcesDataGrid.js +1 -1
- package/esm/shared/components/SourcesGrid.d.ts +1 -1
- package/esm/shared/components/SourcesGrid.js +2 -2
- package/esm/shared/components/SourcesGridHeader.d.ts +1 -1
- package/esm/shared/components/SourcesGridHeader.js +1 -1
- package/esm/shared/components/SvgTree.d.ts +5 -0
- package/esm/shared/components/SvgTree.js +19 -0
- package/esm/shared/components/TreeSidebar.d.ts +5 -0
- package/esm/shared/components/TreeSidebar.js +121 -0
- package/esm/shared/components/types.d.ts +43 -0
- package/esm/shared/components/types.js +1 -0
- package/esm/shared/constants.d.ts +8 -2
- package/esm/shared/constants.js +11 -2
- package/esm/shared/drawAlleleCount.d.ts +2 -1
- package/esm/shared/drawAlleleCount.js +50 -16
- package/esm/shared/drawPhased.js +11 -12
- package/{dist → esm/shared}/getMultiVariantFeaturesAutorun.d.ts +5 -4
- package/esm/{getMultiVariantFeaturesAutorun.js → shared/getMultiVariantFeaturesAutorun.js} +9 -2
- package/esm/{getMultiVariantSourcesAutorun.d.ts → shared/getMultiVariantSourcesAutorun.d.ts} +4 -3
- package/esm/{getMultiVariantSourcesAutorun.js → shared/getMultiVariantSourcesAutorun.js} +10 -2
- package/esm/shared/getSources.d.ts +1 -1
- package/esm/shared/getSources.js +2 -2
- package/esm/shared/hooks/useMouseTracking.d.ts +6 -0
- package/esm/shared/hooks/useMouseTracking.js +34 -0
- package/esm/shared/makeSidebarSvg.d.ts +9 -0
- package/esm/shared/makeSidebarSvg.js +9 -0
- package/esm/shared/minorAlleleFrequencyUtils.d.ts +6 -5
- package/esm/shared/minorAlleleFrequencyUtils.js +37 -38
- package/esm/shared/setupMultiVariantAutoruns.d.ts +2 -0
- package/esm/shared/setupMultiVariantAutoruns.js +8 -0
- package/esm/shared/treeDrawingAutorun.d.ts +16 -0
- package/esm/shared/treeDrawingAutorun.js +71 -0
- package/esm/shared/types.d.ts +15 -0
- package/package.json +38 -39
- package/dist/ChordVariantDisplay/index.d.ts +0 -2
- package/dist/ChordVariantDisplay/index.js +0 -25
- package/dist/ChordVariantDisplay/models/configSchema.d.ts +0 -12
- package/dist/ChordVariantDisplay/models/configSchema.js +0 -15
- package/dist/ChordVariantDisplay/models/stateModelFactory.d.ts +0 -115
- package/dist/ChordVariantDisplay/models/stateModelFactory.js +0 -35
- package/dist/LinearVariantDisplay/configSchema.d.ts +0 -34
- package/dist/LinearVariantDisplay/configSchema.js +0 -12
- package/dist/LinearVariantDisplay/index.d.ts +0 -2
- package/dist/LinearVariantDisplay/index.js +0 -24
- package/dist/LinearVariantDisplay/model.d.ts +0 -278
- package/dist/LinearVariantDisplay/model.js +0 -37
- package/dist/MultiLinearVariantDisplay/components/VariantDisplayComponent.d.ts +0 -5
- package/dist/MultiLinearVariantDisplay/components/VariantDisplayComponent.js +0 -29
- package/dist/MultiLinearVariantDisplay/configSchema.d.ts +0 -80
- package/dist/MultiLinearVariantDisplay/configSchema.js +0 -30
- package/dist/MultiLinearVariantDisplay/index.d.ts +0 -2
- package/dist/MultiLinearVariantDisplay/index.js +0 -57
- package/dist/MultiLinearVariantDisplay/model.d.ts +0 -422
- package/dist/MultiLinearVariantDisplay/model.js +0 -82
- package/dist/MultiLinearVariantDisplay/renderSvg.d.ts +0 -3
- package/dist/MultiLinearVariantDisplay/renderSvg.js +0 -15
- package/dist/MultiLinearVariantMatrixDisplay/components/LinesConnectingMatrixToGenomicPosition.d.ts +0 -6
- package/dist/MultiLinearVariantMatrixDisplay/components/LinesConnectingMatrixToGenomicPosition.js +0 -83
- package/dist/MultiLinearVariantMatrixDisplay/components/VariantDisplayComponent.d.ts +0 -5
- package/dist/MultiLinearVariantMatrixDisplay/components/VariantDisplayComponent.js +0 -31
- package/dist/MultiLinearVariantMatrixDisplay/configSchema.d.ts +0 -37
- package/dist/MultiLinearVariantMatrixDisplay/configSchema.js +0 -22
- package/dist/MultiLinearVariantMatrixDisplay/index.d.ts +0 -2
- package/dist/MultiLinearVariantMatrixDisplay/index.js +0 -24
- package/dist/MultiLinearVariantMatrixDisplay/model.d.ts +0 -431
- package/dist/MultiLinearVariantMatrixDisplay/model.js +0 -125
- package/dist/MultiLinearVariantMatrixDisplay/renderSvg.d.ts +0 -3
- package/dist/MultiLinearVariantMatrixDisplay/renderSvg.js +0 -17
- package/dist/MultiLinearVariantMatrixRenderer/MultiLinearVariantMatrixRenderer.d.ts +0 -37
- package/dist/MultiLinearVariantMatrixRenderer/MultiLinearVariantMatrixRenderer.js +0 -87
- package/dist/MultiLinearVariantMatrixRenderer/components/MultiLinearVariantMatrixRendering.d.ts +0 -8
- package/dist/MultiLinearVariantMatrixRenderer/components/MultiLinearVariantMatrixRendering.js +0 -41
- package/dist/MultiLinearVariantMatrixRenderer/configSchema.d.ts +0 -2
- package/dist/MultiLinearVariantMatrixRenderer/configSchema.js +0 -6
- package/dist/MultiLinearVariantMatrixRenderer/index.d.ts +0 -2
- package/dist/MultiLinearVariantMatrixRenderer/index.js +0 -20
- package/dist/MultiLinearVariantMatrixRenderer/makeImageData.d.ts +0 -14
- package/dist/MultiLinearVariantMatrixRenderer/makeImageData.js +0 -154
- package/dist/MultiLinearVariantMatrixRenderer/types.d.ts +0 -14
- package/dist/MultiLinearVariantMatrixRenderer/types.js +0 -2
- package/dist/MultiLinearVariantRenderer/MultiVariantRenderer.d.ts +0 -63
- package/dist/MultiLinearVariantRenderer/MultiVariantRenderer.js +0 -79
- package/dist/MultiLinearVariantRenderer/components/MultiLinearVariantRendering.d.ts +0 -33
- package/dist/MultiLinearVariantRenderer/components/MultiLinearVariantRendering.js +0 -67
- package/dist/MultiLinearVariantRenderer/components/util.d.ts +0 -1
- package/dist/MultiLinearVariantRenderer/components/util.js +0 -15
- package/dist/MultiLinearVariantRenderer/configSchema.d.ts +0 -2
- package/dist/MultiLinearVariantRenderer/configSchema.js +0 -8
- package/dist/MultiLinearVariantRenderer/index.d.ts +0 -2
- package/dist/MultiLinearVariantRenderer/index.js +0 -19
- package/dist/MultiLinearVariantRenderer/makeImageData.d.ts +0 -14
- package/dist/MultiLinearVariantRenderer/makeImageData.js +0 -140
- package/dist/MultiLinearVariantRenderer/types.d.ts +0 -21
- package/dist/MultiLinearVariantRenderer/types.js +0 -2
- package/dist/MultiVariantBaseRenderer.d.ts +0 -46
- package/dist/MultiVariantBaseRenderer.js +0 -39
- package/dist/SplitVcfTabixAdapter/SplitVcfTabixAdapter.d.ts +0 -18
- package/dist/SplitVcfTabixAdapter/SplitVcfTabixAdapter.js +0 -92
- package/dist/SplitVcfTabixAdapter/configSchema.d.ts +0 -23
- package/dist/SplitVcfTabixAdapter/configSchema.js +0 -29
- package/dist/SplitVcfTabixAdapter/index.d.ts +0 -3
- package/dist/SplitVcfTabixAdapter/index.js +0 -52
- package/dist/StructuralVariantChordRenderer/Chord.d.ts +0 -13
- package/dist/StructuralVariantChordRenderer/Chord.js +0 -82
- package/dist/StructuralVariantChordRenderer/ReactComponent.d.ts +0 -16
- package/dist/StructuralVariantChordRenderer/ReactComponent.js +0 -30
- package/dist/StructuralVariantChordRenderer/configSchema.d.ts +0 -21
- package/dist/StructuralVariantChordRenderer/configSchema.js +0 -25
- package/dist/StructuralVariantChordRenderer/index.d.ts +0 -2
- package/dist/StructuralVariantChordRenderer/index.js +0 -18
- package/dist/StructuralVariantChordRenderer/types.d.ts +0 -17
- package/dist/StructuralVariantChordRenderer/types.js +0 -2
- package/dist/Tooltip.d.ts +0 -19
- package/dist/Tooltip.js +0 -32
- package/dist/VariantFeatureWidget/AltFormatter.d.ts +0 -4
- package/dist/VariantFeatureWidget/AltFormatter.js +0 -13
- package/dist/VariantFeatureWidget/Checkbox2.d.ts +0 -6
- package/dist/VariantFeatureWidget/Checkbox2.js +0 -8
- package/dist/VariantFeatureWidget/Formatter.d.ts +0 -3
- package/dist/VariantFeatureWidget/Formatter.js +0 -23
- package/dist/VariantFeatureWidget/LaunchBreakendPanel/BreakendMultiLevelOptionDialog.d.ts +0 -1
- package/dist/VariantFeatureWidget/LaunchBreakendPanel/BreakendMultiLevelOptionDialog.js +0 -5
- package/dist/VariantFeatureWidget/LaunchBreakendPanel/BreakendSingleLevelOptionDialog.d.ts +0 -1
- package/dist/VariantFeatureWidget/LaunchBreakendPanel/BreakendSingleLevelOptionDialog.js +0 -5
- package/dist/VariantFeatureWidget/LaunchBreakendPanel/LaunchBreakendPanel.d.ts +0 -7
- package/dist/VariantFeatureWidget/LaunchBreakendPanel/LaunchBreakendPanel.js +0 -111
- package/dist/VariantFeatureWidget/LaunchBreakendPanel/LaunchBreakendWidgetArea.d.ts +0 -4
- package/dist/VariantFeatureWidget/LaunchBreakendPanel/LaunchBreakendWidgetArea.js +0 -60
- package/dist/VariantFeatureWidget/LaunchBreakendPanel/index.d.ts +0 -1
- package/dist/VariantFeatureWidget/LaunchBreakendPanel/index.js +0 -8
- package/dist/VariantFeatureWidget/VariantConsequence/VariantConsequenceDataGrid.d.ts +0 -5
- package/dist/VariantFeatureWidget/VariantConsequence/VariantConsequenceDataGrid.js +0 -15
- package/dist/VariantFeatureWidget/VariantConsequence/VariantConsequenceDataGridWrapper.d.ts +0 -5
- package/dist/VariantFeatureWidget/VariantConsequence/VariantConsequenceDataGridWrapper.js +0 -18
- package/dist/VariantFeatureWidget/VariantFeatureWidget.d.ts +0 -5
- package/dist/VariantFeatureWidget/VariantFeatureWidget.js +0 -103
- package/dist/VariantFeatureWidget/VariantSampleGrid/VariantGenotypeFrequencyTable.d.ts +0 -4
- package/dist/VariantFeatureWidget/VariantSampleGrid/VariantGenotypeFrequencyTable.js +0 -80
- package/dist/VariantFeatureWidget/VariantSampleGrid/VariantSampleFilters.d.ts +0 -9
- package/dist/VariantFeatureWidget/VariantSampleGrid/VariantSampleFilters.js +0 -10
- package/dist/VariantFeatureWidget/VariantSampleGrid/VariantSampleGrid.d.ts +0 -6
- package/dist/VariantFeatureWidget/VariantSampleGrid/VariantSampleGrid.js +0 -54
- package/dist/VariantFeatureWidget/VariantSampleGrid/getSampleGridRows.d.ts +0 -5
- package/dist/VariantFeatureWidget/VariantSampleGrid/getSampleGridRows.js +0 -51
- package/dist/VariantFeatureWidget/VariantSampleGrid/index.d.ts +0 -1
- package/dist/VariantFeatureWidget/VariantSampleGrid/index.js +0 -8
- package/dist/VariantFeatureWidget/VariantSampleGrid/types.d.ts +0 -21
- package/dist/VariantFeatureWidget/VariantSampleGrid/types.js +0 -2
- package/dist/VariantFeatureWidget/VariantSampleGrid/util.d.ts +0 -1
- package/dist/VariantFeatureWidget/VariantSampleGrid/util.js +0 -14
- package/dist/VariantFeatureWidget/configSchema.d.ts +0 -1
- package/dist/VariantFeatureWidget/configSchema.js +0 -5
- package/dist/VariantFeatureWidget/index.d.ts +0 -2
- package/dist/VariantFeatureWidget/index.js +0 -52
- package/dist/VariantFeatureWidget/stateModelFactory.d.ts +0 -104
- package/dist/VariantFeatureWidget/stateModelFactory.js +0 -12
- package/dist/VariantFeatureWidget/types.d.ts +0 -16
- package/dist/VariantFeatureWidget/types.js +0 -2
- package/dist/VariantFeatureWidget/variantFieldDescriptions.d.ts +0 -9
- package/dist/VariantFeatureWidget/variantFieldDescriptions.js +0 -12
- package/dist/VariantRPC/MultiVariantClusterGenotypeMatrix.d.ts +0 -14
- package/dist/VariantRPC/MultiVariantClusterGenotypeMatrix.js +0 -30
- package/dist/VariantRPC/MultiVariantGetGenotypeMatrix.d.ts +0 -6
- package/dist/VariantRPC/MultiVariantGetGenotypeMatrix.js +0 -21
- package/dist/VariantRPC/MultiVariantGetSimplifiedFeatures.d.ts +0 -19
- package/dist/VariantRPC/MultiVariantGetSimplifiedFeatures.js +0 -58
- package/dist/VariantRPC/MultiVariantGetSources.d.ts +0 -14
- package/dist/VariantRPC/MultiVariantGetSources.js +0 -22
- package/dist/VariantRPC/getGenotypeMatrix.d.ts +0 -6
- package/dist/VariantRPC/getGenotypeMatrix.js +0 -68
- package/dist/VariantRPC/types.d.ts +0 -36
- package/dist/VariantRPC/types.js +0 -2
- package/dist/VariantTrack/configSchema.d.ts +0 -79
- package/dist/VariantTrack/configSchema.js +0 -10
- package/dist/VariantTrack/index.d.ts +0 -2
- package/dist/VariantTrack/index.js +0 -20
- package/dist/VcfAdapter/VcfAdapter.d.ts +0 -35
- package/dist/VcfAdapter/VcfAdapter.js +0 -119
- package/dist/VcfAdapter/configSchema.d.ts +0 -18
- package/dist/VcfAdapter/configSchema.js +0 -35
- package/dist/VcfAdapter/index.d.ts +0 -2
- package/dist/VcfAdapter/index.js +0 -49
- package/dist/VcfAdapter/vcfParser.d.ts +0 -7
- package/dist/VcfAdapter/vcfParser.js +0 -26
- package/dist/VcfFeature/index.d.ts +0 -19
- package/dist/VcfFeature/index.js +0 -80
- package/dist/VcfFeature/util.d.ts +0 -6
- package/dist/VcfFeature/util.js +0 -227
- package/dist/VcfTabixAdapter/VcfTabixAdapter.d.ts +0 -25
- package/dist/VcfTabixAdapter/VcfTabixAdapter.js +0 -117
- package/dist/VcfTabixAdapter/configSchema.d.ts +0 -32
- package/dist/VcfTabixAdapter/configSchema.js +0 -56
- package/dist/VcfTabixAdapter/index.d.ts +0 -3
- package/dist/VcfTabixAdapter/index.js +0 -52
- package/dist/extensionPoints.d.ts +0 -2
- package/dist/extensionPoints.js +0 -39
- package/dist/getMultiVariantFeaturesAutorun.js +0 -48
- package/dist/getMultiVariantSourcesAutorun.d.ts +0 -11
- package/dist/getMultiVariantSourcesAutorun.js +0 -38
- package/dist/index.d.ts +0 -7
- package/dist/index.js +0 -52
- package/dist/shared/MultiVariantBaseModel.d.ts +0 -413
- package/dist/shared/MultiVariantBaseModel.js +0 -373
- package/dist/shared/SharedVariantConfigSchema.d.ts +0 -66
- package/dist/shared/SharedVariantConfigSchema.js +0 -56
- package/dist/shared/SharedVariantMixin.d.ts +0 -325
- package/dist/shared/SharedVariantMixin.js +0 -58
- package/dist/shared/components/AddFiltersDialog.d.ts +0 -9
- package/dist/shared/components/AddFiltersDialog.js +0 -61
- package/dist/shared/components/MAFFilterDialog.d.ts +0 -8
- package/dist/shared/components/MAFFilterDialog.js +0 -28
- package/dist/shared/components/MultiVariantBaseDisplayComponent.d.ts +0 -5
- package/dist/shared/components/MultiVariantBaseDisplayComponent.js +0 -29
- package/dist/shared/components/MultiVariantClusterDialog/ClusterDialog.d.ts +0 -6
- package/dist/shared/components/MultiVariantClusterDialog/ClusterDialog.js +0 -29
- package/dist/shared/components/MultiVariantClusterDialog/ClusterDialogAuto.d.ts +0 -7
- package/dist/shared/components/MultiVariantClusterDialog/ClusterDialogAuto.js +0 -74
- package/dist/shared/components/MultiVariantClusterDialog/ClusterDialogManual.d.ts +0 -7
- package/dist/shared/components/MultiVariantClusterDialog/ClusterDialogManual.js +0 -145
- package/dist/shared/components/MultiVariantClusterDialog/types.d.ts +0 -10
- package/dist/shared/components/MultiVariantClusterDialog/types.js +0 -2
- package/dist/shared/components/MultiVariantColorLegend.d.ts +0 -10
- package/dist/shared/components/MultiVariantColorLegend.js +0 -24
- package/dist/shared/components/MultiVariantCrosshairs.d.ts +0 -7
- package/dist/shared/components/MultiVariantCrosshairs.js +0 -40
- package/dist/shared/components/MultiVariantLegendBar.d.ts +0 -7
- package/dist/shared/components/MultiVariantLegendBar.js +0 -32
- package/dist/shared/components/MultiVariantTooltip.d.ts +0 -10
- package/dist/shared/components/MultiVariantTooltip.js +0 -24
- package/dist/shared/components/RectBg.d.ts +0 -8
- package/dist/shared/components/RectBg.js +0 -10
- package/dist/shared/components/SetColorDialog.d.ts +0 -11
- package/dist/shared/components/SetColorDialog.js +0 -12
- package/dist/shared/components/SetColorDialogBulkEditPanel.d.ts +0 -10
- package/dist/shared/components/SetColorDialogBulkEditPanel.js +0 -84
- package/dist/shared/components/SetColorDialogHelpfulTips.d.ts +0 -1
- package/dist/shared/components/SetColorDialogHelpfulTips.js +0 -7
- package/dist/shared/components/SetColorDialogRowPalettizer.d.ts +0 -10
- package/dist/shared/components/SetColorDialogRowPalettizer.js +0 -41
- package/dist/shared/components/SetMinMaxDialog.d.ts +0 -10
- package/dist/shared/components/SetMinMaxDialog.js +0 -26
- package/dist/shared/components/SetRowHeightDialog.d.ts +0 -8
- package/dist/shared/components/SetRowHeightDialog.js +0 -18
- package/dist/shared/components/SourcesDataGrid.d.ts +0 -7
- package/dist/shared/components/SourcesDataGrid.js +0 -68
- package/dist/shared/components/SourcesGrid.d.ts +0 -7
- package/dist/shared/components/SourcesGrid.js +0 -14
- package/dist/shared/components/SourcesGridHeader.d.ts +0 -8
- package/dist/shared/components/SourcesGridHeader.js +0 -41
- package/dist/shared/components/ui/SetColorDialog.d.ts +0 -31
- package/dist/shared/components/ui/SetColorDialog.js +0 -51
- package/dist/shared/components/ui/SetColorDialogBulkEditPanel.d.ts +0 -10
- package/dist/shared/components/ui/SetColorDialogBulkEditPanel.js +0 -84
- package/dist/shared/components/ui/SetColorDialogHelpfulTips.d.ts +0 -1
- package/dist/shared/components/ui/SetColorDialogHelpfulTips.js +0 -7
- package/dist/shared/components/ui/SetColorDialogRowPalettizer.d.ts +0 -10
- package/dist/shared/components/ui/SetColorDialogRowPalettizer.js +0 -41
- package/dist/shared/constants.d.ts +0 -2
- package/dist/shared/constants.js +0 -5
- package/dist/shared/drawAlleleCount.d.ts +0 -2
- package/dist/shared/drawAlleleCount.js +0 -50
- package/dist/shared/drawPhased.d.ts +0 -1
- package/dist/shared/drawPhased.js +0 -25
- package/dist/shared/findSecondLargestNumber.d.ts +0 -0
- package/dist/shared/findSecondLargestNumber.js +0 -1
- package/dist/shared/getSources.d.ts +0 -15
- package/dist/shared/getSources.js +0 -34
- package/dist/shared/minorAlleleFrequencyUtils.d.ts +0 -14
- package/dist/shared/minorAlleleFrequencyUtils.js +0 -72
- package/dist/shared/sourcesGridUtils.d.ts +0 -11
- package/dist/shared/sourcesGridUtils.js +0 -32
- package/dist/shared/types.d.ts +0 -14
- package/dist/shared/types.js +0 -2
- package/dist/shared/util.d.ts +0 -2
- package/dist/shared/util.js +0 -21
- package/dist/util.d.ts +0 -0
- package/dist/util.js +0 -1
- package/esm/MultiVariantBaseRenderer.d.ts +0 -46
- package/esm/MultiVariantBaseRenderer.js +0 -33
- package/esm/VariantFeatureWidget/Checkbox2.d.ts +0 -6
- package/esm/VariantFeatureWidget/Checkbox2.js +0 -5
- package/esm/VariantFeatureWidget/LaunchBreakendPanel/BreakendMultiLevelOptionDialog.d.ts +0 -1
- package/esm/VariantFeatureWidget/LaunchBreakendPanel/BreakendMultiLevelOptionDialog.js +0 -1
- package/esm/VariantFeatureWidget/LaunchBreakendPanel/BreakendSingleLevelOptionDialog.d.ts +0 -1
- package/esm/VariantFeatureWidget/LaunchBreakendPanel/BreakendSingleLevelOptionDialog.js +0 -1
- package/esm/VariantFeatureWidget/LaunchBreakendPanel/LaunchBreakendWidgetArea.d.ts +0 -4
- package/esm/VariantFeatureWidget/LaunchBreakendPanel/LaunchBreakendWidgetArea.js +0 -24
- package/esm/VariantFeatureWidget/LaunchBreakendPanel/index.d.ts +0 -1
- package/esm/VariantFeatureWidget/LaunchBreakendPanel/index.js +0 -1
- package/esm/VariantFeatureWidget/VariantSampleGrid/index.d.ts +0 -1
- package/esm/VariantFeatureWidget/VariantSampleGrid/index.js +0 -1
- package/esm/VariantFeatureWidget/VariantSampleGrid/util.d.ts +0 -1
- package/esm/VariantFeatureWidget/VariantSampleGrid/util.js +0 -11
- package/esm/extensionPoints.d.ts +0 -2
- package/esm/getMultiVariantFeaturesAutorun.d.ts +0 -18
- package/esm/shared/SharedVariantMixin.d.ts +0 -325
- package/esm/shared/SharedVariantMixin.js +0 -55
- package/esm/shared/components/ui/SetColorDialog.js +0 -45
- package/esm/shared/components/ui/SetColorDialogBulkEditPanel.d.ts +0 -10
- package/esm/shared/components/ui/SetColorDialogBulkEditPanel.js +0 -81
- package/esm/shared/components/ui/SetColorDialogHelpfulTips.d.ts +0 -1
- package/esm/shared/components/ui/SetColorDialogHelpfulTips.js +0 -4
- package/esm/shared/components/ui/SetColorDialogRowPalettizer.d.ts +0 -10
- package/esm/shared/components/ui/SetColorDialogRowPalettizer.js +0 -38
- package/esm/shared/findSecondLargestNumber.d.ts +0 -0
- package/esm/shared/findSecondLargestNumber.js +0 -1
- package/esm/shared/util.d.ts +0 -2
- package/esm/shared/util.js +0 -17
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import type PluginManager from '@jbrowse/core/PluginManager';
|
|
2
|
-
import type { Instance } from 'mobx-state-tree';
|
|
3
|
-
export declare function stateModelFactory(pluginManager: PluginManager): import("mobx-state-tree").IModelType<{
|
|
4
|
-
id: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
5
|
-
type: import("mobx-state-tree").ISimpleType<"BaseFeatureWidget">;
|
|
6
|
-
featureData: import("mobx-state-tree").IType<import("
|
|
7
|
-
formattedFields: import("mobx-state-tree").IType<any, any, any>;
|
|
8
|
-
unformattedFeatureData: import("mobx-state-tree").IType<import("
|
|
9
|
-
view: import("mobx-state-tree").IMaybe<import("mobx-state-tree").IReferenceType<import("mobx-state-tree").IAnyType>>;
|
|
10
|
-
track: import("mobx-state-tree").IMaybe<import("mobx-state-tree").IReferenceType<import("mobx-state-tree").IAnyType>>;
|
|
11
|
-
trackId: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<string>>;
|
|
12
|
-
trackType: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<string>>;
|
|
13
|
-
maxDepth: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<number>>;
|
|
14
|
-
sequenceFeatureDetails: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IModelType<{}, {
|
|
2
|
+
import type { Instance } from '@jbrowse/mobx-state-tree';
|
|
3
|
+
export declare function stateModelFactory(pluginManager: PluginManager): import("@jbrowse/mobx-state-tree").IModelType<{
|
|
4
|
+
id: import("@jbrowse/mobx-state-tree").IOptionalIType<import("@jbrowse/mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
5
|
+
type: import("@jbrowse/mobx-state-tree").ISimpleType<"BaseFeatureWidget">;
|
|
6
|
+
featureData: import("@jbrowse/mobx-state-tree").IType<import("node_modules/@jbrowse/core/src/BaseFeatureWidget/types").MaybeSerializedFeat, import("node_modules/@jbrowse/core/src/BaseFeatureWidget/types").MaybeSerializedFeat, import("node_modules/@jbrowse/core/src/BaseFeatureWidget/types").MaybeSerializedFeat>;
|
|
7
|
+
formattedFields: import("@jbrowse/mobx-state-tree").IType<any, any, any>;
|
|
8
|
+
unformattedFeatureData: import("@jbrowse/mobx-state-tree").IType<import("node_modules/@jbrowse/core/src/BaseFeatureWidget/types").MaybeSerializedFeat, import("node_modules/@jbrowse/core/src/BaseFeatureWidget/types").MaybeSerializedFeat, import("node_modules/@jbrowse/core/src/BaseFeatureWidget/types").MaybeSerializedFeat>;
|
|
9
|
+
view: import("@jbrowse/mobx-state-tree").IMaybe<import("@jbrowse/mobx-state-tree").IReferenceType<import("@jbrowse/mobx-state-tree").IAnyType>>;
|
|
10
|
+
track: import("@jbrowse/mobx-state-tree").IMaybe<import("@jbrowse/mobx-state-tree").IReferenceType<import("@jbrowse/mobx-state-tree").IAnyType>>;
|
|
11
|
+
trackId: import("@jbrowse/mobx-state-tree").IMaybe<import("@jbrowse/mobx-state-tree").ISimpleType<string>>;
|
|
12
|
+
trackType: import("@jbrowse/mobx-state-tree").IMaybe<import("@jbrowse/mobx-state-tree").ISimpleType<string>>;
|
|
13
|
+
maxDepth: import("@jbrowse/mobx-state-tree").IMaybe<import("@jbrowse/mobx-state-tree").ISimpleType<number>>;
|
|
14
|
+
sequenceFeatureDetails: import("@jbrowse/mobx-state-tree").IOptionalIType<import("@jbrowse/mobx-state-tree").IModelType<{}, {
|
|
15
15
|
showCoordinatesSetting: string;
|
|
16
16
|
intronBp: number;
|
|
17
17
|
upDownBp: number;
|
|
@@ -34,11 +34,11 @@ export declare function stateModelFactory(pluginManager: PluginManager): import(
|
|
|
34
34
|
readonly hasExonOrCDS: boolean | undefined;
|
|
35
35
|
} & {
|
|
36
36
|
afterAttach(): void;
|
|
37
|
-
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>, [undefined]>;
|
|
38
|
-
descriptions: import("mobx-state-tree").IType<Record<string, unknown> | undefined, Record<string, unknown> | undefined, Record<string, unknown> | undefined>;
|
|
37
|
+
}, import("@jbrowse/mobx-state-tree")._NotCustomized, import("@jbrowse/mobx-state-tree")._NotCustomized>, [undefined]>;
|
|
38
|
+
descriptions: import("@jbrowse/mobx-state-tree").IType<Record<string, unknown> | undefined, Record<string, unknown> | undefined, Record<string, unknown> | undefined>;
|
|
39
39
|
} & {
|
|
40
|
-
type: import("mobx-state-tree").ISimpleType<"VariantFeatureWidget">;
|
|
41
|
-
descriptions: import("mobx-state-tree").IType<any, any, any>;
|
|
40
|
+
type: import("@jbrowse/mobx-state-tree").ISimpleType<"VariantFeatureWidget">;
|
|
41
|
+
descriptions: import("@jbrowse/mobx-state-tree").IType<any, any, any>;
|
|
42
42
|
}, {
|
|
43
43
|
error: unknown;
|
|
44
44
|
} & {
|
|
@@ -51,18 +51,18 @@ export declare function stateModelFactory(pluginManager: PluginManager): import(
|
|
|
51
51
|
afterCreate(): void;
|
|
52
52
|
}, {
|
|
53
53
|
type: "BaseFeatureWidget";
|
|
54
|
-
} & Partial<import("mobx-state-tree/dist/internal").ExtractCFromProps<{
|
|
55
|
-
id: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
56
|
-
type: import("mobx-state-tree").ISimpleType<"BaseFeatureWidget">;
|
|
57
|
-
featureData: import("mobx-state-tree").IType<import("
|
|
58
|
-
formattedFields: import("mobx-state-tree").IType<any, any, any>;
|
|
59
|
-
unformattedFeatureData: import("mobx-state-tree").IType<import("
|
|
60
|
-
view: import("mobx-state-tree").IMaybe<import("mobx-state-tree").IReferenceType<import("mobx-state-tree").IAnyType>>;
|
|
61
|
-
track: import("mobx-state-tree").IMaybe<import("mobx-state-tree").IReferenceType<import("mobx-state-tree").IAnyType>>;
|
|
62
|
-
trackId: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<string>>;
|
|
63
|
-
trackType: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<string>>;
|
|
64
|
-
maxDepth: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<number>>;
|
|
65
|
-
sequenceFeatureDetails: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IModelType<{}, {
|
|
54
|
+
} & Partial<import("@jbrowse/mobx-state-tree/dist/internal").ExtractCFromProps<{
|
|
55
|
+
id: import("@jbrowse/mobx-state-tree").IOptionalIType<import("@jbrowse/mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
56
|
+
type: import("@jbrowse/mobx-state-tree").ISimpleType<"BaseFeatureWidget">;
|
|
57
|
+
featureData: import("@jbrowse/mobx-state-tree").IType<import("node_modules/@jbrowse/core/src/BaseFeatureWidget/types").MaybeSerializedFeat, import("node_modules/@jbrowse/core/src/BaseFeatureWidget/types").MaybeSerializedFeat, import("node_modules/@jbrowse/core/src/BaseFeatureWidget/types").MaybeSerializedFeat>;
|
|
58
|
+
formattedFields: import("@jbrowse/mobx-state-tree").IType<any, any, any>;
|
|
59
|
+
unformattedFeatureData: import("@jbrowse/mobx-state-tree").IType<import("node_modules/@jbrowse/core/src/BaseFeatureWidget/types").MaybeSerializedFeat, import("node_modules/@jbrowse/core/src/BaseFeatureWidget/types").MaybeSerializedFeat, import("node_modules/@jbrowse/core/src/BaseFeatureWidget/types").MaybeSerializedFeat>;
|
|
60
|
+
view: import("@jbrowse/mobx-state-tree").IMaybe<import("@jbrowse/mobx-state-tree").IReferenceType<import("@jbrowse/mobx-state-tree").IAnyType>>;
|
|
61
|
+
track: import("@jbrowse/mobx-state-tree").IMaybe<import("@jbrowse/mobx-state-tree").IReferenceType<import("@jbrowse/mobx-state-tree").IAnyType>>;
|
|
62
|
+
trackId: import("@jbrowse/mobx-state-tree").IMaybe<import("@jbrowse/mobx-state-tree").ISimpleType<string>>;
|
|
63
|
+
trackType: import("@jbrowse/mobx-state-tree").IMaybe<import("@jbrowse/mobx-state-tree").ISimpleType<string>>;
|
|
64
|
+
maxDepth: import("@jbrowse/mobx-state-tree").IMaybe<import("@jbrowse/mobx-state-tree").ISimpleType<number>>;
|
|
65
|
+
sequenceFeatureDetails: import("@jbrowse/mobx-state-tree").IOptionalIType<import("@jbrowse/mobx-state-tree").IModelType<{}, {
|
|
66
66
|
showCoordinatesSetting: string;
|
|
67
67
|
intronBp: number;
|
|
68
68
|
upDownBp: number;
|
|
@@ -85,20 +85,20 @@ export declare function stateModelFactory(pluginManager: PluginManager): import(
|
|
|
85
85
|
readonly hasExonOrCDS: boolean | undefined;
|
|
86
86
|
} & {
|
|
87
87
|
afterAttach(): void;
|
|
88
|
-
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>, [undefined]>;
|
|
89
|
-
descriptions: import("mobx-state-tree").IType<Record<string, unknown> | undefined, Record<string, unknown> | undefined, Record<string, unknown> | undefined>;
|
|
90
|
-
}>> & import("mobx-state-tree/dist/internal").NonEmptyObject & import("mobx-state-tree")._NotCustomized, {
|
|
91
|
-
|
|
88
|
+
}, import("@jbrowse/mobx-state-tree")._NotCustomized, import("@jbrowse/mobx-state-tree")._NotCustomized>, [undefined]>;
|
|
89
|
+
descriptions: import("@jbrowse/mobx-state-tree").IType<Record<string, unknown> | undefined, Record<string, unknown> | undefined, Record<string, unknown> | undefined>;
|
|
90
|
+
}>> & import("@jbrowse/mobx-state-tree/dist/internal").NonEmptyObject & import("@jbrowse/mobx-state-tree")._NotCustomized, {
|
|
91
|
+
track: import("@jbrowse/mobx-state-tree").ReferenceIdentifier | undefined;
|
|
92
|
+
view: import("@jbrowse/mobx-state-tree").ReferenceIdentifier | undefined;
|
|
92
93
|
id: string;
|
|
93
|
-
|
|
94
|
-
view: import("mobx-state-tree").ReferenceIdentifier | undefined;
|
|
94
|
+
type: "BaseFeatureWidget";
|
|
95
95
|
trackId: string | undefined;
|
|
96
|
+
sequenceFeatureDetails: import("@jbrowse/mobx-state-tree").ModelSnapshotType<{}>;
|
|
97
|
+
descriptions: Record<string, unknown> | undefined;
|
|
98
|
+
formattedFields: any;
|
|
96
99
|
trackType: string | undefined;
|
|
97
100
|
maxDepth: number | undefined;
|
|
98
|
-
sequenceFeatureDetails: import("mobx-state-tree").ModelSnapshotType<{}>;
|
|
99
|
-
formattedFields: any;
|
|
100
|
-
descriptions: Record<string, unknown> | undefined;
|
|
101
101
|
finalizedFeatureData: any;
|
|
102
|
-
} & import("mobx-state-tree")._NotCustomized>;
|
|
102
|
+
} & import("@jbrowse/mobx-state-tree")._NotCustomized>;
|
|
103
103
|
export type VariantFeatureWidgetStateModel = ReturnType<typeof stateModelFactory>;
|
|
104
104
|
export type VariantFeatureWidgetModel = Instance<VariantFeatureWidgetStateModel>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { stateModelFactory as baseModelFactory } from '@jbrowse/core/BaseFeatureWidget';
|
|
2
|
-
import { types } from 'mobx-state-tree';
|
|
2
|
+
import { types } from '@jbrowse/mobx-state-tree';
|
|
3
3
|
export function stateModelFactory(pluginManager) {
|
|
4
4
|
const baseModel = baseModelFactory(pluginManager);
|
|
5
5
|
return types.compose(baseModel, types.model('VariantFeatureWidget', {
|
|
@@ -1,14 +1,9 @@
|
|
|
1
1
|
import RpcMethodTypeWithFiltersAndRenameRegions from '@jbrowse/core/pluggableElementTypes/RpcMethodTypeWithFiltersAndRenameRegions';
|
|
2
|
-
import type { ClusterGenotypeMatrixArgs } from './types';
|
|
2
|
+
import type { ClusterGenotypeMatrixArgs } from './types.ts';
|
|
3
3
|
export declare class MultiVariantClusterGenotypeMatrix extends RpcMethodTypeWithFiltersAndRenameRegions {
|
|
4
4
|
name: string;
|
|
5
5
|
execute(args: ClusterGenotypeMatrixArgs, rpcDriverClassName: string): Promise<{
|
|
6
|
-
clusters: {
|
|
7
|
-
height: number;
|
|
8
|
-
indexes: number[];
|
|
9
|
-
} | undefined;
|
|
10
|
-
distances: number[][];
|
|
11
6
|
order: number[];
|
|
12
|
-
|
|
7
|
+
tree: string;
|
|
13
8
|
}>;
|
|
14
9
|
}
|
|
@@ -1,23 +1,12 @@
|
|
|
1
1
|
import RpcMethodTypeWithFiltersAndRenameRegions from '@jbrowse/core/pluggableElementTypes/RpcMethodTypeWithFiltersAndRenameRegions';
|
|
2
|
-
import { clusterData } from '@jbrowse/core/util/cluster';
|
|
3
|
-
import { getGenotypeMatrix } from './getGenotypeMatrix';
|
|
4
2
|
export class MultiVariantClusterGenotypeMatrix extends RpcMethodTypeWithFiltersAndRenameRegions {
|
|
5
|
-
|
|
6
|
-
super(...arguments);
|
|
7
|
-
this.name = 'MultiVariantClusterGenotypeMatrix';
|
|
8
|
-
}
|
|
3
|
+
name = 'MultiVariantClusterGenotypeMatrix';
|
|
9
4
|
async execute(args, rpcDriverClassName) {
|
|
10
5
|
const deserializedArgs = await this.deserializeArguments(args, rpcDriverClassName);
|
|
11
|
-
const
|
|
6
|
+
const { executeClusterGenotypeMatrix } = await import("./executeClusterGenotypeMatrix.js");
|
|
7
|
+
return executeClusterGenotypeMatrix({
|
|
12
8
|
pluginManager: this.pluginManager,
|
|
13
9
|
args: deserializedArgs,
|
|
14
10
|
});
|
|
15
|
-
return clusterData({
|
|
16
|
-
data: Object.values(matrix),
|
|
17
|
-
stopToken: deserializedArgs.stopToken,
|
|
18
|
-
onProgress: progress => {
|
|
19
|
-
deserializedArgs.statusCallback(progress);
|
|
20
|
-
},
|
|
21
|
-
});
|
|
22
11
|
}
|
|
23
12
|
}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import RpcMethodTypeWithFiltersAndRenameRegions from '@jbrowse/core/pluggableElementTypes/RpcMethodTypeWithFiltersAndRenameRegions';
|
|
2
|
-
import type { GetGenotypeMatrixArgs } from './types';
|
|
2
|
+
import type { GetGenotypeMatrixArgs } from './types.ts';
|
|
3
3
|
export declare class MultiVariantGetGenotypeMatrix extends RpcMethodTypeWithFiltersAndRenameRegions {
|
|
4
4
|
name: string;
|
|
5
|
-
execute(args: GetGenotypeMatrixArgs, rpcDriverClassName: string): Promise<
|
|
5
|
+
execute(args: GetGenotypeMatrixArgs, rpcDriverClassName: string): Promise<{
|
|
6
|
+
[k: string]: number[];
|
|
7
|
+
}>;
|
|
6
8
|
}
|
|
@@ -1,10 +1,7 @@
|
|
|
1
1
|
import RpcMethodTypeWithFiltersAndRenameRegions from '@jbrowse/core/pluggableElementTypes/RpcMethodTypeWithFiltersAndRenameRegions';
|
|
2
|
-
import { getGenotypeMatrix } from
|
|
2
|
+
import { getGenotypeMatrix } from "./getGenotypeMatrix.js";
|
|
3
3
|
export class MultiVariantGetGenotypeMatrix extends RpcMethodTypeWithFiltersAndRenameRegions {
|
|
4
|
-
|
|
5
|
-
super(...arguments);
|
|
6
|
-
this.name = 'MultiVariantGetGenotypeMatrix';
|
|
7
|
-
}
|
|
4
|
+
name = 'MultiVariantGetGenotypeMatrix';
|
|
8
5
|
async execute(args, rpcDriverClassName) {
|
|
9
6
|
return getGenotypeMatrix({
|
|
10
7
|
pluginManager: this.pluginManager,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import RpcMethodTypeWithFiltersAndRenameRegions from '@jbrowse/core/pluggableElementTypes/RpcMethodTypeWithFiltersAndRenameRegions';
|
|
2
|
-
import type { GetSimplifiedFeaturesArgs } from './types';
|
|
3
|
-
import type { SampleInfo } from '../shared/types';
|
|
2
|
+
import type { GetSimplifiedFeaturesArgs } from './types.ts';
|
|
3
|
+
import type { SampleInfo } from '../shared/types.ts';
|
|
4
4
|
export declare class MultiVariantGetSimplifiedFeatures extends RpcMethodTypeWithFiltersAndRenameRegions {
|
|
5
5
|
name: string;
|
|
6
6
|
execute(args: GetSimplifiedFeaturesArgs, rpcDriverClassName: string): Promise<{
|
|
@@ -1,39 +1,54 @@
|
|
|
1
1
|
import { getAdapter } from '@jbrowse/core/data_adapters/dataAdapterCache';
|
|
2
2
|
import RpcMethodTypeWithFiltersAndRenameRegions from '@jbrowse/core/pluggableElementTypes/RpcMethodTypeWithFiltersAndRenameRegions';
|
|
3
|
-
import {
|
|
3
|
+
import { checkStopToken2, createStopTokenChecker, } from '@jbrowse/core/util/stopToken';
|
|
4
4
|
import { firstValueFrom, toArray } from 'rxjs';
|
|
5
|
-
import { getFeaturesThatPassMinorAlleleFrequencyFilter } from
|
|
5
|
+
import { getFeaturesThatPassMinorAlleleFrequencyFilter } from "../shared/minorAlleleFrequencyUtils.js";
|
|
6
6
|
export class MultiVariantGetSimplifiedFeatures extends RpcMethodTypeWithFiltersAndRenameRegions {
|
|
7
|
-
|
|
8
|
-
super(...arguments);
|
|
9
|
-
this.name = 'MultiVariantGetSimplifiedFeatures';
|
|
10
|
-
}
|
|
7
|
+
name = 'MultiVariantGetSimplifiedFeatures';
|
|
11
8
|
async execute(args, rpcDriverClassName) {
|
|
12
9
|
const deserializedArgs = await this.deserializeArguments(args, rpcDriverClassName);
|
|
13
10
|
const { lengthCutoffFilter, minorAlleleFrequencyFilter, regions, adapterConfig, stopToken, sessionId, } = deserializedArgs;
|
|
14
11
|
const { dataAdapter } = await getAdapter(this.pluginManager, sessionId, adapterConfig);
|
|
12
|
+
const rawFeatures = await firstValueFrom(dataAdapter
|
|
13
|
+
.getFeaturesInMultipleRegions(regions, deserializedArgs)
|
|
14
|
+
.pipe(toArray()));
|
|
15
|
+
const sampleInfo = {};
|
|
16
|
+
const genotypesCache = new Map();
|
|
17
|
+
let hasPhased = false;
|
|
18
|
+
const lastCheck = createStopTokenChecker(stopToken);
|
|
15
19
|
const features = getFeaturesThatPassMinorAlleleFrequencyFilter({
|
|
16
20
|
minorAlleleFrequencyFilter,
|
|
17
21
|
lengthCutoffFilter,
|
|
18
|
-
|
|
19
|
-
features:
|
|
20
|
-
|
|
21
|
-
.pipe(toArray())),
|
|
22
|
+
lastCheck,
|
|
23
|
+
features: rawFeatures,
|
|
24
|
+
genotypesCache,
|
|
22
25
|
});
|
|
23
|
-
const
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
26
|
+
for (const { feature } of features) {
|
|
27
|
+
const featureId = feature.id();
|
|
28
|
+
let samp = genotypesCache.get(featureId);
|
|
29
|
+
if (!samp) {
|
|
30
|
+
samp = feature.get('genotypes');
|
|
31
|
+
genotypesCache.set(featureId, samp);
|
|
32
|
+
}
|
|
28
33
|
for (const [key, val] of Object.entries(samp)) {
|
|
29
34
|
const isPhased = val.includes('|');
|
|
30
|
-
hasPhased
|
|
35
|
+
hasPhased ||= isPhased;
|
|
36
|
+
let ploidy = 1;
|
|
37
|
+
if (isPhased) {
|
|
38
|
+
for (const char of val) {
|
|
39
|
+
if (char === '|') {
|
|
40
|
+
ploidy++;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
const existing = sampleInfo[key];
|
|
31
45
|
sampleInfo[key] = {
|
|
32
|
-
maxPloidy: Math.max(
|
|
33
|
-
isPhased:
|
|
46
|
+
maxPloidy: Math.max(existing?.maxPloidy ?? 0, ploidy),
|
|
47
|
+
isPhased: existing?.isPhased || isPhased,
|
|
34
48
|
};
|
|
35
49
|
}
|
|
36
|
-
|
|
50
|
+
checkStopToken2(lastCheck);
|
|
51
|
+
}
|
|
37
52
|
return {
|
|
38
53
|
hasPhased,
|
|
39
54
|
sampleInfo,
|
|
@@ -1,15 +1,11 @@
|
|
|
1
1
|
import { getAdapter } from '@jbrowse/core/data_adapters/dataAdapterCache';
|
|
2
2
|
import RpcMethodTypeWithFiltersAndRenameRegions from '@jbrowse/core/pluggableElementTypes/RpcMethodTypeWithFiltersAndRenameRegions';
|
|
3
3
|
export class MultiVariantGetSources extends RpcMethodTypeWithFiltersAndRenameRegions {
|
|
4
|
-
|
|
5
|
-
super(...arguments);
|
|
6
|
-
this.name = 'MultiVariantGetSources';
|
|
7
|
-
}
|
|
4
|
+
name = 'MultiVariantGetSources';
|
|
8
5
|
async execute(args, rpcDriverClassName) {
|
|
9
|
-
const pm = this.pluginManager;
|
|
10
6
|
const deserializedArgs = await this.deserializeArguments(args, rpcDriverClassName);
|
|
11
7
|
const { regions, adapterConfig, sessionId } = deserializedArgs;
|
|
12
|
-
const { dataAdapter } = await getAdapter(
|
|
8
|
+
const { dataAdapter } = await getAdapter(this.pluginManager, sessionId, adapterConfig);
|
|
13
9
|
return dataAdapter.getSources(regions, deserializedArgs);
|
|
14
10
|
}
|
|
15
11
|
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { Source } from '../shared/types.ts';
|
|
2
|
+
import type PluginManager from '@jbrowse/core/PluginManager';
|
|
3
|
+
import type { AnyConfigurationModel } from '@jbrowse/core/configuration';
|
|
4
|
+
import type { Region, StopToken } from '@jbrowse/core/util';
|
|
5
|
+
export declare function executeClusterGenotypeMatrix({ pluginManager, args, }: {
|
|
6
|
+
pluginManager: PluginManager;
|
|
7
|
+
args: {
|
|
8
|
+
adapterConfig: AnyConfigurationModel;
|
|
9
|
+
stopToken?: StopToken;
|
|
10
|
+
sessionId: string;
|
|
11
|
+
headers?: Record<string, string>;
|
|
12
|
+
regions: Region[];
|
|
13
|
+
bpPerPx: number;
|
|
14
|
+
minorAlleleFrequencyFilter: number;
|
|
15
|
+
lengthCutoffFilter: number;
|
|
16
|
+
statusCallback: (arg: string) => void;
|
|
17
|
+
sources: Source[];
|
|
18
|
+
};
|
|
19
|
+
}): Promise<{
|
|
20
|
+
order: number[];
|
|
21
|
+
tree: string;
|
|
22
|
+
}>;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { clusterData, toNewick } from '@gmod/hclust';
|
|
2
|
+
import { getGenotypeMatrix } from "./getGenotypeMatrix.js";
|
|
3
|
+
export async function executeClusterGenotypeMatrix({ pluginManager, args, }) {
|
|
4
|
+
const matrix = await getGenotypeMatrix({
|
|
5
|
+
pluginManager,
|
|
6
|
+
args,
|
|
7
|
+
});
|
|
8
|
+
const sampleLabels = Object.keys(matrix);
|
|
9
|
+
const result = await clusterData({
|
|
10
|
+
data: Object.values(matrix),
|
|
11
|
+
sampleLabels,
|
|
12
|
+
stopToken: args.stopToken,
|
|
13
|
+
onProgress: args.statusCallback,
|
|
14
|
+
});
|
|
15
|
+
return {
|
|
16
|
+
order: result.order,
|
|
17
|
+
tree: toNewick(result.tree),
|
|
18
|
+
};
|
|
19
|
+
}
|
|
@@ -1,6 +1,21 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { Source } from '../shared/types.ts';
|
|
2
2
|
import type PluginManager from '@jbrowse/core/PluginManager';
|
|
3
|
+
import type { AnyConfigurationModel } from '@jbrowse/core/configuration';
|
|
4
|
+
import type { Region } from '@jbrowse/core/util';
|
|
5
|
+
import type { StopToken } from '@jbrowse/core/util/stopToken';
|
|
3
6
|
export declare function getGenotypeMatrix({ pluginManager, args, }: {
|
|
4
7
|
pluginManager: PluginManager;
|
|
5
|
-
args:
|
|
6
|
-
|
|
8
|
+
args: {
|
|
9
|
+
adapterConfig: AnyConfigurationModel;
|
|
10
|
+
stopToken?: StopToken;
|
|
11
|
+
sessionId: string;
|
|
12
|
+
headers?: Record<string, string>;
|
|
13
|
+
regions: Region[];
|
|
14
|
+
sources: Source[];
|
|
15
|
+
bpPerPx: number;
|
|
16
|
+
minorAlleleFrequencyFilter: number;
|
|
17
|
+
lengthCutoffFilter: number;
|
|
18
|
+
};
|
|
19
|
+
}): Promise<{
|
|
20
|
+
[k: string]: number[];
|
|
21
|
+
}>;
|
|
@@ -1,65 +1,48 @@
|
|
|
1
1
|
import { getAdapter } from '@jbrowse/core/data_adapters/dataAdapterCache';
|
|
2
|
-
import {
|
|
2
|
+
import { checkStopToken2, createStopTokenChecker, } from '@jbrowse/core/util/stopToken';
|
|
3
3
|
import { firstValueFrom, toArray } from 'rxjs';
|
|
4
|
-
import { getFeaturesThatPassMinorAlleleFrequencyFilter } from
|
|
4
|
+
import { getFeaturesThatPassMinorAlleleFrequencyFilter } from "../shared/minorAlleleFrequencyUtils.js";
|
|
5
|
+
const SPLITTER = /[/|]/;
|
|
5
6
|
export async function getGenotypeMatrix({ pluginManager, args, }) {
|
|
6
7
|
const { sources, minorAlleleFrequencyFilter, regions, adapterConfig, sessionId, lengthCutoffFilter, stopToken, } = args;
|
|
8
|
+
const lastCheck = createStopTokenChecker(stopToken);
|
|
7
9
|
const adapter = await getAdapter(pluginManager, sessionId, adapterConfig);
|
|
8
10
|
const dataAdapter = adapter.dataAdapter;
|
|
9
|
-
const
|
|
11
|
+
const rows = Object.fromEntries(sources.map(s => [s.name, []]));
|
|
12
|
+
const splitCache = {};
|
|
10
13
|
const mafs = getFeaturesThatPassMinorAlleleFrequencyFilter({
|
|
11
14
|
minorAlleleFrequencyFilter,
|
|
12
15
|
lengthCutoffFilter,
|
|
13
|
-
|
|
16
|
+
lastCheck,
|
|
17
|
+
splitCache,
|
|
14
18
|
features: await firstValueFrom(dataAdapter.getFeaturesInMultipleRegions(regions, args).pipe(toArray())),
|
|
15
19
|
});
|
|
16
|
-
for (const {
|
|
17
|
-
for (const alt of Object.keys(alleleCounts)) {
|
|
18
|
-
genotypeFactor.add(alt);
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
const rows = {};
|
|
22
|
-
const cacheSplit = {};
|
|
23
|
-
forEachWithStopTokenCheck(mafs, stopToken, ({ feature }) => {
|
|
20
|
+
for (const { feature } of mafs) {
|
|
24
21
|
const genotypes = feature.get('genotypes');
|
|
25
22
|
for (const { name } of sources) {
|
|
26
|
-
if (!rows[name]) {
|
|
27
|
-
rows[name] = [];
|
|
28
|
-
}
|
|
29
23
|
const val = genotypes[name];
|
|
30
|
-
|
|
31
|
-
if (cacheSplit[val]) {
|
|
32
|
-
alleles = cacheSplit[val];
|
|
33
|
-
}
|
|
34
|
-
else {
|
|
35
|
-
alleles = val.split(/[/|]/);
|
|
36
|
-
cacheSplit[val] = alleles;
|
|
37
|
-
}
|
|
38
|
-
let genotypeStatus = 0;
|
|
24
|
+
const alleles = splitCache[val] ?? (splitCache[val] = val.split(SPLITTER));
|
|
39
25
|
let nonRefCount = 0;
|
|
40
26
|
let uncalledCount = 0;
|
|
41
|
-
for (
|
|
42
|
-
|
|
27
|
+
for (let i = 0, l = alleles.length; i < l; i++) {
|
|
28
|
+
const allele = alleles[i];
|
|
29
|
+
if (allele === '.') {
|
|
43
30
|
uncalledCount++;
|
|
44
31
|
}
|
|
45
|
-
else if (
|
|
32
|
+
else if (allele !== '0') {
|
|
46
33
|
nonRefCount++;
|
|
47
34
|
}
|
|
48
35
|
}
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
genotypeStatus = 2;
|
|
57
|
-
}
|
|
58
|
-
else {
|
|
59
|
-
genotypeStatus = 1;
|
|
60
|
-
}
|
|
36
|
+
const genotypeStatus = uncalledCount === alleles.length
|
|
37
|
+
? -1
|
|
38
|
+
: nonRefCount === 0
|
|
39
|
+
? 0
|
|
40
|
+
: nonRefCount === alleles.length
|
|
41
|
+
? 2
|
|
42
|
+
: 1;
|
|
61
43
|
rows[name].push(genotypeStatus);
|
|
62
44
|
}
|
|
63
|
-
|
|
45
|
+
checkStopToken2(lastCheck);
|
|
46
|
+
}
|
|
64
47
|
return rows;
|
|
65
48
|
}
|
|
@@ -1,20 +1,9 @@
|
|
|
1
|
-
import type { Source } from '../shared/types';
|
|
1
|
+
import type { Source } from '../shared/types.ts';
|
|
2
2
|
import type { AnyConfigurationModel } from '@jbrowse/core/configuration';
|
|
3
|
-
import type { Region } from '@jbrowse/core/util';
|
|
4
|
-
|
|
5
|
-
sources: Source[];
|
|
6
|
-
minorAlleleFrequencyFilter: number;
|
|
7
|
-
adapterConfig: AnyConfigurationModel;
|
|
8
|
-
stopToken?: string;
|
|
9
|
-
sessionId: string;
|
|
10
|
-
headers?: Record<string, string>;
|
|
11
|
-
regions: Region[];
|
|
12
|
-
bpPerPx: number;
|
|
13
|
-
lengthCutoffFilter: number;
|
|
14
|
-
}
|
|
15
|
-
export interface GetSimplifiedFeaturesArgs {
|
|
3
|
+
import type { Region, StopToken } from '@jbrowse/core/util';
|
|
4
|
+
interface BaseVariantRpcArgs {
|
|
16
5
|
adapterConfig: AnyConfigurationModel;
|
|
17
|
-
stopToken?:
|
|
6
|
+
stopToken?: StopToken;
|
|
18
7
|
sessionId: string;
|
|
19
8
|
headers?: Record<string, string>;
|
|
20
9
|
regions: Region[];
|
|
@@ -22,15 +11,12 @@ export interface GetSimplifiedFeaturesArgs {
|
|
|
22
11
|
minorAlleleFrequencyFilter: number;
|
|
23
12
|
lengthCutoffFilter: number;
|
|
24
13
|
}
|
|
25
|
-
export interface
|
|
26
|
-
|
|
27
|
-
|
|
14
|
+
export interface GetGenotypeMatrixArgs extends BaseVariantRpcArgs {
|
|
15
|
+
sources: Source[];
|
|
16
|
+
}
|
|
17
|
+
export type GetSimplifiedFeaturesArgs = BaseVariantRpcArgs;
|
|
18
|
+
export interface ClusterGenotypeMatrixArgs extends BaseVariantRpcArgs {
|
|
28
19
|
statusCallback: (arg: string) => void;
|
|
29
|
-
sessionId: string;
|
|
30
|
-
headers?: Record<string, string>;
|
|
31
|
-
regions: Region[];
|
|
32
|
-
bpPerPx: number;
|
|
33
20
|
sources: Source[];
|
|
34
|
-
minorAlleleFrequencyFilter: number;
|
|
35
|
-
lengthCutoffFilter: number;
|
|
36
21
|
}
|
|
22
|
+
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type PluginManager from '@jbrowse/core/PluginManager';
|
|
2
|
-
export default function VariantTrackF(pluginManager: PluginManager): import("
|
|
2
|
+
export default function VariantTrackF(pluginManager: PluginManager): import("node_modules/@jbrowse/core/src/configuration/configurationSchema").ConfigurationSchemaType<{}, import("node_modules/@jbrowse/core/src/configuration/configurationSchema").ConfigurationSchemaOptions<import("node_modules/@jbrowse/core/src/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
3
3
|
name: {
|
|
4
4
|
description: string;
|
|
5
5
|
type: string;
|
|
@@ -25,8 +25,13 @@ export default function VariantTrackF(pluginManager: PluginManager): import("@jb
|
|
|
25
25
|
description: string;
|
|
26
26
|
defaultValue: {};
|
|
27
27
|
};
|
|
28
|
-
|
|
29
|
-
|
|
28
|
+
rpcDriverName: {
|
|
29
|
+
type: string;
|
|
30
|
+
description: string;
|
|
31
|
+
defaultValue: string;
|
|
32
|
+
};
|
|
33
|
+
adapter: import("@jbrowse/mobx-state-tree").IAnyModelType;
|
|
34
|
+
textSearching: import("node_modules/@jbrowse/core/src/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
30
35
|
indexingAttributes: {
|
|
31
36
|
type: string;
|
|
32
37
|
description: string;
|
|
@@ -37,10 +42,10 @@ export default function VariantTrackF(pluginManager: PluginManager): import("@jb
|
|
|
37
42
|
description: string;
|
|
38
43
|
defaultValue: string[];
|
|
39
44
|
};
|
|
40
|
-
textSearchAdapter: import("mobx-state-tree").IAnyModelType;
|
|
41
|
-
}, import("
|
|
42
|
-
displays: import("mobx-state-tree").IArrayType<import("mobx-state-tree").IAnyModelType>;
|
|
43
|
-
formatDetails: import("
|
|
45
|
+
textSearchAdapter: import("@jbrowse/mobx-state-tree").IAnyModelType;
|
|
46
|
+
}, import("node_modules/@jbrowse/core/src/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, undefined>>;
|
|
47
|
+
displays: import("@jbrowse/mobx-state-tree").IArrayType<import("@jbrowse/mobx-state-tree").IAnyModelType>;
|
|
48
|
+
formatDetails: import("node_modules/@jbrowse/core/src/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
44
49
|
feature: {
|
|
45
50
|
type: string;
|
|
46
51
|
description: string;
|
|
@@ -63,8 +68,8 @@ export default function VariantTrackF(pluginManager: PluginManager): import("@jb
|
|
|
63
68
|
defaultValue: number;
|
|
64
69
|
description: string;
|
|
65
70
|
};
|
|
66
|
-
}, import("
|
|
67
|
-
formatAbout: import("
|
|
71
|
+
}, import("node_modules/@jbrowse/core/src/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, undefined>>;
|
|
72
|
+
formatAbout: import("node_modules/@jbrowse/core/src/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
68
73
|
config: {
|
|
69
74
|
type: string;
|
|
70
75
|
description: string;
|
|
@@ -75,5 +80,5 @@ export default function VariantTrackF(pluginManager: PluginManager): import("@jb
|
|
|
75
80
|
type: string;
|
|
76
81
|
defaultValue: boolean;
|
|
77
82
|
};
|
|
78
|
-
}, import("
|
|
79
|
-
}, import("
|
|
83
|
+
}, import("node_modules/@jbrowse/core/src/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, undefined>>;
|
|
84
|
+
}, import("node_modules/@jbrowse/core/src/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, "trackId">>, undefined>>;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import TrackType from '@jbrowse/core/pluggableElementTypes/TrackType';
|
|
2
2
|
import { createBaseTrackModel } from '@jbrowse/core/pluggableElementTypes/models';
|
|
3
|
-
import configSchemaF from
|
|
3
|
+
import configSchemaF from "./configSchema.js";
|
|
4
|
+
import { stringifyVCF } from "./saveTrackFormats/vcf.js";
|
|
4
5
|
export default function VariantTrackF(pm) {
|
|
5
6
|
pm.addTrackType(() => {
|
|
6
7
|
const configSchema = configSchemaF(pm);
|
|
@@ -8,7 +9,17 @@ export default function VariantTrackF(pm) {
|
|
|
8
9
|
name: 'VariantTrack',
|
|
9
10
|
displayName: 'Variant track',
|
|
10
11
|
configSchema,
|
|
11
|
-
stateModel: createBaseTrackModel(pm, 'VariantTrack', configSchema)
|
|
12
|
+
stateModel: createBaseTrackModel(pm, 'VariantTrack', configSchema).views(() => ({
|
|
13
|
+
saveTrackFileFormatOptions() {
|
|
14
|
+
return {
|
|
15
|
+
vcf: {
|
|
16
|
+
name: 'VCF',
|
|
17
|
+
extension: 'vcf',
|
|
18
|
+
callback: stringifyVCF,
|
|
19
|
+
},
|
|
20
|
+
};
|
|
21
|
+
},
|
|
22
|
+
})),
|
|
12
23
|
});
|
|
13
24
|
});
|
|
14
25
|
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
function generateINFO(feature) {
|
|
2
|
+
return Object.entries(feature.get('INFO'))
|
|
3
|
+
.map(([key, value]) => `${key}=${value}`)
|
|
4
|
+
.join(';');
|
|
5
|
+
}
|
|
6
|
+
export function stringifyVCF({ features }) {
|
|
7
|
+
const fields = ['refName', 'start', 'name', 'REF', 'ALT', 'QUAL', 'FILTER'];
|
|
8
|
+
return features
|
|
9
|
+
.map(feature => {
|
|
10
|
+
return `${fields
|
|
11
|
+
.map(field => feature.get(field) || '.')
|
|
12
|
+
.join('\t')}\t${generateINFO(feature)}`;
|
|
13
|
+
})
|
|
14
|
+
.join('\n');
|
|
15
|
+
}
|