@jbrowse/plugin-alignments 3.6.5 → 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/AlignmentsFeatureDetail/AlignmentsFeatureDetail.d.ts +1 -1
- package/esm/AlignmentsFeatureDetail/AlignmentsFeatureDetail.js +9 -9
- package/esm/AlignmentsFeatureDetail/BreakpointSplitViewChoiceDialog.d.ts +1 -0
- package/esm/AlignmentsFeatureDetail/BreakpointSplitViewChoiceDialog.js +1 -0
- package/esm/AlignmentsFeatureDetail/Flags.js +1 -1
- package/esm/AlignmentsFeatureDetail/Formatter.js +2 -2
- package/esm/AlignmentsFeatureDetail/LaunchPairedEndBreakpointSplitViewPanel.d.ts +2 -2
- package/esm/AlignmentsFeatureDetail/LaunchPairedEndBreakpointSplitViewPanel.js +7 -18
- package/esm/AlignmentsFeatureDetail/LaunchSupplementaryAlignmentBreakpointSplitViewPanel.d.ts +1 -1
- package/esm/AlignmentsFeatureDetail/LaunchSupplementaryAlignmentBreakpointSplitViewPanel.js +19 -37
- package/esm/AlignmentsFeatureDetail/LinkedPairedAlignments.d.ts +1 -1
- package/esm/AlignmentsFeatureDetail/LinkedPairedAlignments.js +1 -1
- package/esm/AlignmentsFeatureDetail/PairLink.d.ts +1 -1
- package/esm/AlignmentsFeatureDetail/PairLink.js +1 -1
- package/esm/AlignmentsFeatureDetail/SupplementaryAlignments.d.ts +1 -1
- package/esm/AlignmentsFeatureDetail/SupplementaryAlignments.js +2 -2
- package/esm/AlignmentsFeatureDetail/SupplementaryAlignmentsLocStrings.d.ts +1 -1
- package/esm/AlignmentsFeatureDetail/SupplementaryAlignmentsLocStrings.js +5 -4
- package/esm/AlignmentsFeatureDetail/configSchema.d.ts +1 -1
- package/esm/AlignmentsFeatureDetail/getSAFeatures.d.ts +1 -1
- package/esm/AlignmentsFeatureDetail/getSAFeatures.js +18 -17
- package/esm/AlignmentsFeatureDetail/index.js +3 -3
- package/esm/AlignmentsFeatureDetail/launchBreakpointSplitView.d.ts +6 -7
- package/esm/AlignmentsFeatureDetail/launchBreakpointSplitView.js +3 -6
- package/esm/AlignmentsFeatureDetail/stateModelFactory.d.ts +41 -41
- package/esm/AlignmentsFeatureDetail/stateModelFactory.js +1 -1
- package/esm/AlignmentsFeatureDetail/util.d.ts +1 -1
- package/esm/AlignmentsFeatureDetail/util.js +1 -2
- package/esm/AlignmentsTrack/configSchemaF.d.ts +16 -11
- package/esm/AlignmentsTrack/index.js +14 -2
- package/esm/BamAdapter/BamAdapter.d.ts +15 -26
- package/esm/BamAdapter/BamAdapter.js +84 -124
- package/esm/BamAdapter/BamSlightlyLazyFeature.d.ts +17 -10
- package/esm/BamAdapter/BamSlightlyLazyFeature.js +162 -45
- package/esm/BamAdapter/configSchema.d.ts +5 -10
- package/esm/BamAdapter/configSchema.js +2 -7
- package/esm/BamAdapter/forEachMismatchNumeric.d.ts +2 -0
- package/esm/BamAdapter/forEachMismatchNumeric.js +207 -0
- package/esm/BamAdapter/index.js +2 -2
- package/esm/CramAdapter/CramAdapter.d.ts +10 -32
- package/esm/CramAdapter/CramAdapter.js +93 -144
- package/esm/CramAdapter/CramSlightlyLazyFeature.d.ts +6 -2
- package/esm/CramAdapter/CramSlightlyLazyFeature.js +140 -18
- package/esm/CramAdapter/CramTestAdapters.d.ts +3 -2
- package/esm/CramAdapter/CramTestAdapters.js +8 -3
- package/esm/CramAdapter/configSchema.d.ts +2 -7
- package/esm/CramAdapter/configSchema.js +1 -6
- package/esm/CramAdapter/const.d.ts +12 -0
- package/esm/CramAdapter/const.js +12 -0
- package/esm/CramAdapter/index.js +2 -2
- package/esm/CramAdapter/readFeaturesToNumericCIGAR.d.ts +4 -0
- package/esm/CramAdapter/readFeaturesToNumericCIGAR.js +112 -0
- package/esm/HtsgetBamAdapter/HtsgetBamAdapter.d.ts +5 -9
- package/esm/HtsgetBamAdapter/HtsgetBamAdapter.js +13 -15
- package/esm/HtsgetBamAdapter/configSchema.d.ts +2 -7
- package/esm/HtsgetBamAdapter/configSchema.js +0 -5
- package/esm/HtsgetBamAdapter/index.js +2 -2
- package/esm/LinearAlignmentsDisplay/alignmentsModel.d.ts +9 -9
- package/esm/LinearAlignmentsDisplay/alignmentsModel.js +2 -2
- package/esm/LinearAlignmentsDisplay/components/AlignmentsDisplay.d.ts +1 -1
- package/esm/LinearAlignmentsDisplay/components/AlignmentsDisplay.js +19 -9
- package/esm/LinearAlignmentsDisplay/configSchema.d.ts +3 -3
- package/esm/LinearAlignmentsDisplay/index.js +4 -4
- package/esm/LinearAlignmentsDisplay/model.d.ts +173 -48
- package/esm/LinearAlignmentsDisplay/model.js +60 -62
- package/esm/LinearAlignmentsDisplay/renderSvg.d.ts +14 -0
- package/esm/LinearAlignmentsDisplay/renderSvg.js +12 -0
- package/esm/LinearAlignmentsDisplay/util.js +2 -2
- package/esm/LinearPileupDisplay/SharedLinearPileupDisplayMixin.d.ts +1249 -124
- package/esm/LinearPileupDisplay/SharedLinearPileupDisplayMixin.js +120 -89
- package/esm/LinearPileupDisplay/components/ColorByTagDialog.js +1 -1
- package/esm/LinearPileupDisplay/components/GroupByDialog.d.ts +1 -1
- package/esm/LinearPileupDisplay/components/GroupByDialog.js +8 -8
- package/esm/LinearPileupDisplay/components/LinearPileupDisplayBlurb.d.ts +1 -1
- package/esm/LinearPileupDisplay/components/LinearPileupDisplayBlurb.js +2 -3
- package/esm/LinearPileupDisplay/components/SetFeatureHeightDialog.js +1 -1
- package/esm/LinearPileupDisplay/components/SortByTagDialog.js +1 -1
- package/esm/LinearPileupDisplay/configSchema.d.ts +8 -8
- package/esm/LinearPileupDisplay/configSchema.js +2 -2
- package/esm/LinearPileupDisplay/doAfterAttach.d.ts +5 -3
- package/esm/LinearPileupDisplay/doAfterAttach.js +17 -25
- package/esm/LinearPileupDisplay/index.d.ts +3 -3
- package/esm/LinearPileupDisplay/index.js +6 -5
- package/esm/LinearPileupDisplay/model.d.ts +1293 -155
- package/esm/LinearPileupDisplay/model.js +74 -122
- package/esm/LinearPileupDisplay/sharedDoAfterAttach.d.ts +10 -0
- package/esm/LinearPileupDisplay/sharedDoAfterAttach.js +28 -0
- package/esm/LinearReadArcsDisplay/afterAttachRPC.d.ts +2 -0
- package/esm/LinearReadArcsDisplay/afterAttachRPC.js +21 -0
- package/esm/LinearReadArcsDisplay/chainToSimpleFeature.d.ts +3 -0
- package/esm/LinearReadArcsDisplay/chainToSimpleFeature.js +40 -0
- package/esm/LinearReadArcsDisplay/components/{ReactComponent.d.ts → LinearReadArcsReactComponent.d.ts} +1 -1
- package/esm/LinearReadArcsDisplay/components/{ReactComponent.js → LinearReadArcsReactComponent.js} +4 -4
- package/esm/LinearReadArcsDisplay/configSchema.d.ts +5 -5
- package/esm/LinearReadArcsDisplay/configSchema.js +1 -1
- package/esm/LinearReadArcsDisplay/index.js +5 -4
- package/esm/LinearReadArcsDisplay/model.d.ts +225 -69
- package/esm/LinearReadArcsDisplay/model.js +60 -121
- package/esm/LinearReadArcsDisplay/renderSvg.d.ts +3 -0
- package/esm/LinearReadArcsDisplay/renderSvg.js +39 -0
- package/esm/LinearReadCloudDisplay/afterAttachRPC.d.ts +2 -0
- package/esm/LinearReadCloudDisplay/afterAttachRPC.js +56 -0
- package/esm/LinearReadCloudDisplay/components/CloudYScaleBar.d.ts +8 -0
- package/esm/LinearReadCloudDisplay/components/CloudYScaleBar.js +27 -0
- package/{dist/LinearReadCloudDisplay/components/ReactComponent.d.ts → esm/LinearReadCloudDisplay/components/LinearReadCloudReactComponent.d.ts} +1 -1
- package/esm/LinearReadCloudDisplay/components/LinearReadCloudReactComponent.js +252 -0
- package/esm/LinearReadCloudDisplay/components/SetFeatureHeightDialog.js +24 -0
- package/esm/LinearReadCloudDisplay/configSchema.d.ts +28 -5
- package/esm/LinearReadCloudDisplay/configSchema.js +21 -0
- package/esm/LinearReadCloudDisplay/index.js +9 -5
- package/esm/LinearReadCloudDisplay/model.d.ts +343 -61
- package/esm/LinearReadCloudDisplay/model.js +237 -76
- package/esm/LinearReadCloudDisplay/renderSvg.d.ts +3 -0
- package/esm/LinearReadCloudDisplay/renderSvg.js +47 -0
- package/esm/LinearSNPCoverageDisplay/components/ArcTooltipContents.d.ts +4 -0
- package/esm/LinearSNPCoverageDisplay/components/ArcTooltipContents.js +6 -0
- package/esm/LinearSNPCoverageDisplay/components/FilterArcsByScoreDialog.d.ts +7 -0
- package/esm/LinearSNPCoverageDisplay/components/FilterArcsByScoreDialog.js +16 -0
- package/esm/LinearSNPCoverageDisplay/components/SNPCoverageDisplayComponent.d.ts +5 -0
- package/esm/LinearSNPCoverageDisplay/components/SNPCoverageDisplayComponent.js +9 -0
- package/esm/LinearSNPCoverageDisplay/components/SashimiArcs.d.ts +10 -0
- package/esm/LinearSNPCoverageDisplay/components/SashimiArcs.js +169 -0
- package/esm/LinearSNPCoverageDisplay/components/Tooltip.d.ts +9 -3
- package/esm/LinearSNPCoverageDisplay/components/Tooltip.js +31 -7
- package/esm/LinearSNPCoverageDisplay/components/TooltipContents.d.ts +13 -6
- package/esm/LinearSNPCoverageDisplay/components/TooltipContents.js +191 -35
- package/esm/LinearSNPCoverageDisplay/components/arcUtils.d.ts +18 -0
- package/esm/LinearSNPCoverageDisplay/components/arcUtils.js +42 -0
- package/esm/LinearSNPCoverageDisplay/components/renderSvg.d.ts +10 -0
- package/esm/LinearSNPCoverageDisplay/components/renderSvg.js +32 -0
- package/esm/LinearSNPCoverageDisplay/configSchema.d.ts +7 -7
- package/esm/LinearSNPCoverageDisplay/configSchema.js +2 -2
- package/esm/LinearSNPCoverageDisplay/index.js +5 -4
- package/esm/LinearSNPCoverageDisplay/model.d.ts +302 -59
- package/esm/LinearSNPCoverageDisplay/model.js +162 -66
- package/esm/MismatchParser/cigarToMismatches.d.ts +1 -1
- package/esm/MismatchParser/cigarToMismatches.js +6 -8
- package/esm/MismatchParser/cigarToMismatches2.d.ts +2 -0
- package/{dist/MismatchParser/cigarToMismatches.js → esm/MismatchParser/cigarToMismatches2.js} +23 -27
- package/esm/MismatchParser/getNextRefPos.d.ts +1 -1
- package/esm/MismatchParser/getNextRefPos.js +13 -11
- package/esm/MismatchParser/index.d.ts +6 -3
- package/esm/MismatchParser/index.js +49 -11
- package/esm/MismatchParser/mdToMismatches.d.ts +1 -1
- package/esm/MismatchParser/mdToMismatches.js +87 -53
- package/esm/MismatchParser/mdToMismatches2.d.ts +2 -0
- package/esm/MismatchParser/mdToMismatches2.js +96 -0
- package/esm/ModificationParser/detectSimplexModifications.d.ts +4 -0
- package/esm/ModificationParser/detectSimplexModifications.js +17 -0
- package/esm/ModificationParser/getMethBins.d.ts +1 -1
- package/esm/ModificationParser/getMethBins.js +5 -5
- package/esm/ModificationParser/getModPositions.d.ts +1 -1
- package/esm/ModificationParser/getModPositions.js +14 -17
- package/esm/ModificationParser/getModProbabilities.js +1 -1
- package/esm/ModificationParser/getModTypes.js +1 -1
- package/esm/PileupRPC/base.js +1 -2
- package/esm/PileupRPC/index.js +1 -2
- package/esm/PileupRPC/methods/GetGlobalValueForTag.d.ts +1 -1
- package/esm/PileupRPC/methods/GetGlobalValueForTag.js +3 -6
- package/esm/PileupRPC/methods/GetVisibleModifications.d.ts +6 -3
- package/esm/PileupRPC/methods/GetVisibleModifications.js +20 -10
- package/esm/PileupRPC/rpcMethods.d.ts +2 -3
- package/esm/PileupRPC/rpcMethods.js +2 -3
- package/esm/PileupRenderer/PileupLayoutSession.d.ts +9 -9
- package/esm/PileupRenderer/PileupLayoutSession.js +18 -5
- package/esm/PileupRenderer/PileupRenderer.d.ts +5 -42
- package/esm/PileupRenderer/PileupRenderer.js +25 -70
- package/esm/PileupRenderer/colorBy.js +2 -2
- package/esm/PileupRenderer/components/PileupRendering.d.ts +9 -16
- package/esm/PileupRenderer/components/PileupRendering.js +152 -105
- package/esm/PileupRenderer/components/PileupTooltip.d.ts +10 -0
- package/esm/PileupRenderer/components/PileupTooltip.js +12 -0
- package/esm/PileupRenderer/components/util.d.ts +7 -0
- package/esm/PileupRenderer/components/util.js +17 -0
- package/esm/PileupRenderer/configSchema.d.ts +14 -4
- package/esm/PileupRenderer/configSchema.js +11 -1
- package/esm/PileupRenderer/index.js +4 -4
- package/esm/PileupRenderer/layoutFeature.d.ts +4 -12
- package/esm/PileupRenderer/layoutFeature.js +13 -18
- package/esm/PileupRenderer/layoutFeatures.d.ts +2 -2
- package/esm/PileupRenderer/layoutFeatures.js +21 -16
- package/esm/PileupRenderer/makeImageData.d.ts +20 -14
- package/esm/PileupRenderer/makeImageData.js +96 -14
- package/esm/PileupRenderer/renderers/cigarUtil.d.ts +18 -0
- package/esm/PileupRenderer/renderers/cigarUtil.js +23 -0
- package/esm/PileupRenderer/{getAlignmentShapeColor.js → renderers/getAlignmentShapeColor.js} +2 -2
- package/esm/PileupRenderer/{renderAlignment.d.ts → renderers/renderAlignment.d.ts} +6 -3
- package/esm/PileupRenderer/{renderAlignment.js → renderers/renderAlignment.js} +31 -26
- package/esm/PileupRenderer/renderers/renderAlignmentShape.d.ts +10 -0
- package/esm/PileupRenderer/renderers/renderAlignmentShape.js +165 -0
- package/esm/PileupRenderer/{renderMethylation.d.ts → renderers/renderMethylation.d.ts} +8 -6
- package/esm/PileupRenderer/renderers/renderMethylation.js +97 -0
- package/esm/PileupRenderer/renderers/renderMismatchesCallback.d.ts +32 -0
- package/esm/PileupRenderer/renderers/renderMismatchesCallback.js +304 -0
- package/esm/PileupRenderer/renderers/renderModifications.d.ts +20 -0
- package/esm/PileupRenderer/renderers/renderModifications.js +99 -0
- package/{dist/PileupRenderer → esm/PileupRenderer/renderers}/renderPerBaseLettering.d.ts +2 -2
- package/esm/PileupRenderer/renderers/renderPerBaseLettering.js +59 -0
- package/{dist/PileupRenderer → esm/PileupRenderer/renderers}/renderPerBaseQuality.d.ts +3 -4
- package/esm/PileupRenderer/renderers/renderPerBaseQuality.js +48 -0
- package/{dist/PileupRenderer → esm/PileupRenderer/renderers}/renderSoftClipping.d.ts +2 -2
- package/esm/PileupRenderer/renderers/renderSoftClipping.js +75 -0
- package/esm/PileupRenderer/sortUtil.d.ts +2 -2
- package/esm/PileupRenderer/sortUtil.js +34 -22
- package/esm/PileupRenderer/types.d.ts +32 -1
- package/esm/PileupRenderer/types.js +71 -1
- package/esm/PileupRenderer/util.d.ts +1 -22
- package/esm/PileupRenderer/util.js +12 -38
- package/esm/RenderLinearReadArcsDisplayRPC/RenderLinearReadArcsDisplay.d.ts +34 -0
- package/esm/RenderLinearReadArcsDisplayRPC/RenderLinearReadArcsDisplay.js +49 -0
- package/esm/RenderLinearReadArcsDisplayRPC/drawFeatsRPC.d.ts +24 -0
- package/esm/RenderLinearReadArcsDisplayRPC/drawFeatsRPC.js +156 -0
- package/esm/RenderLinearReadArcsDisplayRPC/executeRenderLinearReadArcsDisplay.d.ts +6 -0
- package/esm/RenderLinearReadArcsDisplayRPC/executeRenderLinearReadArcsDisplay.js +105 -0
- package/{dist/GuessAlignmentsTypes → esm/RenderLinearReadArcsDisplayRPC}/index.d.ts +1 -1
- package/esm/RenderLinearReadArcsDisplayRPC/index.js +4 -0
- package/esm/RenderLinearReadCloudDisplayRPC/RenderLinearReadCloudDisplay.d.ts +43 -0
- package/esm/RenderLinearReadCloudDisplayRPC/RenderLinearReadCloudDisplay.js +49 -0
- package/esm/RenderLinearReadCloudDisplayRPC/drawChainsUtil.d.ts +82 -0
- package/esm/RenderLinearReadCloudDisplayRPC/drawChainsUtil.js +164 -0
- package/esm/RenderLinearReadCloudDisplayRPC/drawFeatsCloud.d.ts +17 -0
- package/esm/RenderLinearReadCloudDisplayRPC/drawFeatsCloud.js +53 -0
- package/esm/RenderLinearReadCloudDisplayRPC/drawFeatsCommon.d.ts +72 -0
- package/esm/RenderLinearReadCloudDisplayRPC/drawFeatsCommon.js +277 -0
- package/esm/RenderLinearReadCloudDisplayRPC/drawFeatsStack.d.ts +5 -0
- package/esm/RenderLinearReadCloudDisplayRPC/drawFeatsStack.js +16 -0
- package/esm/RenderLinearReadCloudDisplayRPC/drawLongReadChains.d.ts +27 -0
- package/esm/RenderLinearReadCloudDisplayRPC/drawLongReadChains.js +101 -0
- package/esm/RenderLinearReadCloudDisplayRPC/drawPairChains.d.ts +27 -0
- package/esm/RenderLinearReadCloudDisplayRPC/drawPairChains.js +95 -0
- package/esm/RenderLinearReadCloudDisplayRPC/executeRenderLinearReadCloudDisplay.d.ts +6 -0
- package/esm/RenderLinearReadCloudDisplayRPC/executeRenderLinearReadCloudDisplay.js +142 -0
- package/esm/RenderLinearReadCloudDisplayRPC/index.d.ts +2 -0
- package/esm/RenderLinearReadCloudDisplayRPC/index.js +4 -0
- package/esm/SNPCoverageAdapter/SNPCoverageAdapter.d.ts +18 -3
- package/esm/SNPCoverageAdapter/SNPCoverageAdapter.js +205 -37
- package/esm/SNPCoverageAdapter/configSchema.d.ts +6 -2
- package/esm/SNPCoverageAdapter/configSchema.js +4 -0
- package/esm/SNPCoverageAdapter/generateCoverageBinsPrefixSum.d.ts +26 -0
- package/esm/SNPCoverageAdapter/generateCoverageBinsPrefixSum.js +438 -0
- package/esm/SNPCoverageAdapter/index.js +2 -2
- package/esm/SNPCoverageAdapter/processDepthPrefixSum.d.ts +10 -0
- package/esm/SNPCoverageAdapter/processDepthPrefixSum.js +55 -0
- package/esm/SNPCoverageAdapter/processModifications.d.ts +1 -1
- package/esm/SNPCoverageAdapter/processModifications.js +34 -36
- package/esm/SNPCoverageAdapter/processReferenceCpGs.d.ts +2 -3
- package/esm/SNPCoverageAdapter/processReferenceCpGs.js +46 -44
- package/esm/SNPCoverageAdapter/util.d.ts +9 -5
- package/esm/SNPCoverageAdapter/util.js +48 -28
- package/esm/SNPCoverageRenderer/SNPCoverageRenderer.d.ts +14 -4
- package/esm/SNPCoverageRenderer/SNPCoverageRenderer.js +29 -8
- package/esm/SNPCoverageRenderer/WiggleRendering.d.ts +14 -0
- package/esm/SNPCoverageRenderer/WiggleRendering.js +33 -0
- package/esm/SNPCoverageRenderer/calculateModificationCounts.d.ts +20 -0
- package/esm/SNPCoverageRenderer/calculateModificationCounts.js +22 -0
- package/esm/SNPCoverageRenderer/components/SNPCoverageRendering.d.ts +18 -0
- package/esm/SNPCoverageRenderer/components/SNPCoverageRendering.js +114 -0
- package/esm/SNPCoverageRenderer/configSchema.d.ts +2 -2
- package/esm/SNPCoverageRenderer/index.js +4 -4
- package/esm/SNPCoverageRenderer/makeImage.d.ts +2 -2
- package/esm/SNPCoverageRenderer/makeImage.js +384 -201
- package/esm/SNPCoverageRenderer/types.d.ts +55 -5
- package/esm/SNPCoverageRenderer/types.js +103 -1
- package/esm/SVGErrorBox.d.ts +5 -0
- package/esm/SVGErrorBox.js +4 -0
- package/esm/index.d.ts +3 -3
- package/esm/index.js +23 -21
- package/esm/saveTrackFormats/sam.d.ts +6 -0
- package/esm/saveTrackFormats/sam.js +42 -0
- package/esm/shared/LinearReadArcsDisplaySettingsMixin.d.ts +14 -0
- package/esm/shared/LinearReadArcsDisplaySettingsMixin.js +33 -0
- package/esm/shared/LinearReadDisplayBaseMixin.d.ts +33 -0
- package/esm/shared/LinearReadDisplayBaseMixin.js +31 -0
- package/esm/shared/LinearReadDisplayWithLayoutMixin.d.ts +16 -0
- package/esm/shared/LinearReadDisplayWithLayoutMixin.js +29 -0
- package/esm/shared/LinearReadDisplayWithPairFiltersMixin.d.ts +11 -0
- package/esm/shared/LinearReadDisplayWithPairFiltersMixin.js +24 -0
- package/esm/shared/SharedModificationsMixin.d.ts +12 -0
- package/esm/shared/SharedModificationsMixin.js +40 -0
- package/esm/shared/afterAttach.d.ts +1 -1
- package/esm/shared/afterAttach.js +4 -7
- package/esm/shared/arcUtils.d.ts +20 -0
- package/esm/shared/arcUtils.js +73 -0
- package/{dist/LinearReadCloudDisplay/util.d.ts → esm/shared/canvasUtils.d.ts} +1 -1
- package/esm/{LinearReadCloudDisplay/util.js → shared/canvasUtils.js} +9 -14
- package/esm/shared/chevron.d.ts +1 -0
- package/esm/shared/chevron.js +24 -0
- package/esm/shared/color.d.ts +54 -11
- package/esm/shared/color.js +121 -25
- package/esm/shared/components/FilterByTagDialog.d.ts +1 -1
- package/esm/shared/components/FilterByTagDialog.js +4 -5
- package/esm/shared/components/SetFeatureHeightDialog.d.ts +10 -0
- package/esm/shared/components/SetFeatureHeightDialog.js +24 -0
- package/esm/{LinearPileupDisplay → shared}/components/SetMaxHeightDialog.js +3 -3
- package/esm/shared/components/SetModificationThresholdDialog.d.ts +10 -0
- package/esm/shared/components/SetModificationThresholdDialog.js +37 -0
- package/esm/shared/createRPCRenderingSetup.d.ts +37 -0
- package/esm/shared/createRPCRenderingSetup.js +82 -0
- package/esm/shared/decodeSeq.d.ts +2 -0
- package/esm/shared/decodeSeq.js +26 -0
- package/esm/shared/flatbushType.d.ts +25 -0
- package/esm/shared/flatbushType.js +1 -0
- package/esm/shared/forEachMismatchTypes.d.ts +18 -0
- package/esm/shared/forEachMismatchTypes.js +24 -0
- package/esm/shared/getMaximumModificationAtEachPosition.d.ts +1 -1
- package/esm/shared/getMaximumModificationAtEachPosition.js +6 -7
- package/esm/shared/getUniqueModifications.d.ts +9 -4
- package/esm/shared/getUniqueModifications.js +3 -2
- package/esm/shared/getUniqueTags.d.ts +2 -2
- package/esm/shared/getUniqueTags.js +2 -1
- package/{dist/PileupRPC/util.d.ts → esm/shared/insertSizeStats.d.ts} +2 -2
- package/esm/shared/insertSizeStats.js +23 -0
- package/esm/shared/legendUtils.d.ts +8 -0
- package/esm/shared/legendUtils.js +123 -0
- package/esm/shared/menuItems.d.ts +119 -0
- package/esm/shared/menuItems.js +252 -0
- package/esm/shared/modificationData.d.ts +6 -0
- package/esm/shared/modificationData.js +17 -0
- package/esm/shared/primaryStrand.d.ts +3 -0
- package/esm/shared/primaryStrand.js +22 -0
- package/esm/shared/samFlags.d.ts +12 -0
- package/esm/shared/samFlags.js +12 -0
- package/esm/shared/setupModificationsAutorun.d.ts +11 -0
- package/esm/shared/setupModificationsAutorun.js +27 -0
- package/esm/shared/types.d.ts +69 -6
- package/esm/shared/util.d.ts +54 -1
- package/esm/shared/util.js +122 -1
- package/esm/svgExportUtil.d.ts +9 -0
- package/esm/svgExportUtil.js +6 -0
- package/esm/util.d.ts +3 -8
- package/esm/util.js +8 -23
- package/package.json +33 -38
- package/dist/AlignmentsFeatureDetail/AlignmentsFeatureDetail.d.ts +0 -5
- package/dist/AlignmentsFeatureDetail/AlignmentsFeatureDetail.js +0 -63
- package/dist/AlignmentsFeatureDetail/BreakendMultiLevelOptionDialog.d.ts +0 -1
- package/dist/AlignmentsFeatureDetail/BreakendMultiLevelOptionDialog.js +0 -5
- package/dist/AlignmentsFeatureDetail/BreakendSingleLevelOptionDialog.d.ts +0 -1
- package/dist/AlignmentsFeatureDetail/BreakendSingleLevelOptionDialog.js +0 -5
- package/dist/AlignmentsFeatureDetail/Flags.d.ts +0 -3
- package/dist/AlignmentsFeatureDetail/Flags.js +0 -41
- package/dist/AlignmentsFeatureDetail/Formatter.d.ts +0 -3
- package/dist/AlignmentsFeatureDetail/Formatter.js +0 -23
- package/dist/AlignmentsFeatureDetail/LaunchPairedEndBreakpointSplitViewPanel.d.ts +0 -6
- package/dist/AlignmentsFeatureDetail/LaunchPairedEndBreakpointSplitViewPanel.js +0 -84
- package/dist/AlignmentsFeatureDetail/LaunchSupplementaryAlignmentBreakpointSplitViewPanel.d.ts +0 -6
- package/dist/AlignmentsFeatureDetail/LaunchSupplementaryAlignmentBreakpointSplitViewPanel.js +0 -107
- package/dist/AlignmentsFeatureDetail/LinkedPairedAlignments.d.ts +0 -6
- package/dist/AlignmentsFeatureDetail/LinkedPairedAlignments.js +0 -22
- package/dist/AlignmentsFeatureDetail/PairLink.d.ts +0 -5
- package/dist/AlignmentsFeatureDetail/PairLink.js +0 -12
- package/dist/AlignmentsFeatureDetail/SupplementaryAlignments.d.ts +0 -7
- package/dist/AlignmentsFeatureDetail/SupplementaryAlignments.js +0 -23
- package/dist/AlignmentsFeatureDetail/SupplementaryAlignmentsLocStrings.d.ts +0 -5
- package/dist/AlignmentsFeatureDetail/SupplementaryAlignmentsLocStrings.js +0 -29
- package/dist/AlignmentsFeatureDetail/configSchema.d.ts +0 -1
- package/dist/AlignmentsFeatureDetail/configSchema.js +0 -5
- package/dist/AlignmentsFeatureDetail/getSAFeatures.d.ts +0 -23
- package/dist/AlignmentsFeatureDetail/getSAFeatures.js +0 -36
- package/dist/AlignmentsFeatureDetail/index.d.ts +0 -2
- package/dist/AlignmentsFeatureDetail/index.js +0 -52
- package/dist/AlignmentsFeatureDetail/launchBreakpointSplitView.d.ts +0 -22
- package/dist/AlignmentsFeatureDetail/launchBreakpointSplitView.js +0 -49
- package/dist/AlignmentsFeatureDetail/stateModelFactory.d.ts +0 -103
- package/dist/AlignmentsFeatureDetail/stateModelFactory.js +0 -10
- package/dist/AlignmentsFeatureDetail/tagInfo.d.ts +0 -63
- package/dist/AlignmentsFeatureDetail/tagInfo.js +0 -66
- package/dist/AlignmentsFeatureDetail/util.d.ts +0 -6
- package/dist/AlignmentsFeatureDetail/util.js +0 -25
- package/dist/AlignmentsTrack/configSchemaF.d.ts +0 -79
- package/dist/AlignmentsTrack/configSchemaF.js +0 -11
- package/dist/AlignmentsTrack/index.d.ts +0 -2
- package/dist/AlignmentsTrack/index.js +0 -23
- package/dist/BamAdapter/BamAdapter.d.ts +0 -44
- package/dist/BamAdapter/BamAdapter.js +0 -181
- package/dist/BamAdapter/BamSlightlyLazyFeature.d.ts +0 -17
- package/dist/BamAdapter/BamSlightlyLazyFeature.js +0 -69
- package/dist/BamAdapter/configSchema.d.ts +0 -34
- package/dist/BamAdapter/configSchema.js +0 -58
- package/dist/BamAdapter/index.d.ts +0 -2
- package/dist/BamAdapter/index.js +0 -51
- package/dist/CramAdapter/CramAdapter.d.ts +0 -53
- package/dist/CramAdapter/CramAdapter.js +0 -228
- package/dist/CramAdapter/CramSlightlyLazyFeature.d.ts +0 -33
- package/dist/CramAdapter/CramSlightlyLazyFeature.js +0 -124
- package/dist/CramAdapter/CramTestAdapters.d.ts +0 -28
- package/dist/CramAdapter/CramTestAdapters.js +0 -85
- package/dist/CramAdapter/configSchema.d.ts +0 -27
- package/dist/CramAdapter/configSchema.js +0 -48
- package/dist/CramAdapter/index.d.ts +0 -2
- package/dist/CramAdapter/index.js +0 -51
- package/dist/CramAdapter/util.d.ts +0 -9
- package/dist/CramAdapter/util.js +0 -213
- package/dist/GuessAlignmentsTypes/index.js +0 -41
- package/dist/HtsgetBamAdapter/HtsgetBamAdapter.d.ts +0 -12
- package/dist/HtsgetBamAdapter/HtsgetBamAdapter.js +0 -27
- package/dist/HtsgetBamAdapter/configSchema.d.ts +0 -18
- package/dist/HtsgetBamAdapter/configSchema.js +0 -22
- package/dist/HtsgetBamAdapter/index.d.ts +0 -2
- package/dist/HtsgetBamAdapter/index.js +0 -54
- package/dist/LinearAlignmentsDisplay/alignmentsModel.d.ts +0 -12
- package/dist/LinearAlignmentsDisplay/alignmentsModel.js +0 -18
- package/dist/LinearAlignmentsDisplay/components/AlignmentsDisplay.d.ts +0 -5
- package/dist/LinearAlignmentsDisplay/components/AlignmentsDisplay.js +0 -31
- package/dist/LinearAlignmentsDisplay/configSchema.d.ts +0 -36
- package/dist/LinearAlignmentsDisplay/configSchema.js +0 -19
- package/dist/LinearAlignmentsDisplay/index.d.ts +0 -2
- package/dist/LinearAlignmentsDisplay/index.js +0 -24
- package/dist/LinearAlignmentsDisplay/model.d.ts +0 -126
- package/dist/LinearAlignmentsDisplay/model.js +0 -222
- package/dist/LinearAlignmentsDisplay/util.d.ts +0 -2
- package/dist/LinearAlignmentsDisplay/util.js +0 -9
- package/dist/LinearPileupDisplay/SharedLinearPileupDisplayMixin.d.ts +0 -394
- package/dist/LinearPileupDisplay/SharedLinearPileupDisplayMixin.js +0 -524
- package/dist/LinearPileupDisplay/components/ColorByTagDialog.d.ts +0 -11
- package/dist/LinearPileupDisplay/components/ColorByTagDialog.js +0 -20
- package/dist/LinearPileupDisplay/components/GroupByDialog.d.ts +0 -10
- package/dist/LinearPileupDisplay/components/GroupByDialog.js +0 -145
- package/dist/LinearPileupDisplay/components/LinearPileupDisplayBlurb.d.ts +0 -7
- package/dist/LinearPileupDisplay/components/LinearPileupDisplayBlurb.js +0 -11
- package/dist/LinearPileupDisplay/components/SetFeatureHeightDialog.js +0 -26
- package/dist/LinearPileupDisplay/components/SetMaxHeightDialog.js +0 -28
- package/dist/LinearPileupDisplay/components/SortByTagDialog.d.ts +0 -7
- package/dist/LinearPileupDisplay/components/SortByTagDialog.js +0 -26
- package/dist/LinearPileupDisplay/configSchema.d.ts +0 -61
- package/dist/LinearPileupDisplay/configSchema.js +0 -40
- package/dist/LinearPileupDisplay/doAfterAttach.d.ts +0 -20
- package/dist/LinearPileupDisplay/doAfterAttach.js +0 -71
- package/dist/LinearPileupDisplay/index.d.ts +0 -5
- package/dist/LinearPileupDisplay/index.js +0 -32
- package/dist/LinearPileupDisplay/model.d.ts +0 -497
- package/dist/LinearPileupDisplay/model.js +0 -364
- package/dist/LinearReadArcsDisplay/components/ReactComponent.d.ts +0 -5
- package/dist/LinearReadArcsDisplay/components/ReactComponent.js +0 -23
- package/dist/LinearReadArcsDisplay/configSchema.d.ts +0 -61
- package/dist/LinearReadArcsDisplay/configSchema.js +0 -36
- package/dist/LinearReadArcsDisplay/drawFeats.d.ts +0 -2
- package/dist/LinearReadArcsDisplay/drawFeats.js +0 -152
- package/dist/LinearReadArcsDisplay/index.d.ts +0 -2
- package/dist/LinearReadArcsDisplay/index.js +0 -58
- package/dist/LinearReadArcsDisplay/model.d.ts +0 -196
- package/dist/LinearReadArcsDisplay/model.js +0 -280
- package/dist/LinearReadArcsDisplay/util.d.ts +0 -2
- package/dist/LinearReadArcsDisplay/util.js +0 -11
- package/dist/LinearReadCloudDisplay/components/ReactComponent.js +0 -23
- package/dist/LinearReadCloudDisplay/configSchema.d.ts +0 -48
- package/dist/LinearReadCloudDisplay/configSchema.js +0 -25
- package/dist/LinearReadCloudDisplay/drawFeats.d.ts +0 -2
- package/dist/LinearReadCloudDisplay/drawFeats.js +0 -27
- package/dist/LinearReadCloudDisplay/drawLongReadChains.d.ts +0 -11
- package/dist/LinearReadCloudDisplay/drawLongReadChains.js +0 -64
- package/dist/LinearReadCloudDisplay/drawPairChains.d.ts +0 -17
- package/dist/LinearReadCloudDisplay/drawPairChains.js +0 -94
- package/dist/LinearReadCloudDisplay/index.d.ts +0 -2
- package/dist/LinearReadCloudDisplay/index.js +0 -58
- package/dist/LinearReadCloudDisplay/model.d.ts +0 -175
- package/dist/LinearReadCloudDisplay/model.js +0 -198
- package/dist/LinearReadCloudDisplay/util.js +0 -32
- package/dist/LinearSNPCoverageDisplay/components/Tooltip.d.ts +0 -12
- package/dist/LinearSNPCoverageDisplay/components/Tooltip.js +0 -15
- package/dist/LinearSNPCoverageDisplay/components/TooltipContents.d.ts +0 -11
- package/dist/LinearSNPCoverageDisplay/components/TooltipContents.js +0 -48
- package/dist/LinearSNPCoverageDisplay/configSchema.d.ts +0 -80
- package/dist/LinearSNPCoverageDisplay/configSchema.js +0 -62
- package/dist/LinearSNPCoverageDisplay/index.d.ts +0 -2
- package/dist/LinearSNPCoverageDisplay/index.js +0 -24
- package/dist/LinearSNPCoverageDisplay/model.d.ts +0 -111
- package/dist/LinearSNPCoverageDisplay/model.js +0 -262
- package/dist/MismatchParser/cigarToMismatches.d.ts +0 -2
- package/dist/MismatchParser/getNextRefPos.d.ts +0 -4
- package/dist/MismatchParser/getNextRefPos.js +0 -38
- package/dist/MismatchParser/index.d.ts +0 -27
- package/dist/MismatchParser/index.js +0 -145
- package/dist/MismatchParser/mdToMismatches.d.ts +0 -2
- package/dist/MismatchParser/mdToMismatches.js +0 -74
- package/dist/ModificationParser/consts.d.ts +0 -1
- package/dist/ModificationParser/consts.js +0 -4
- package/dist/ModificationParser/getMethBins.d.ts +0 -7
- package/dist/ModificationParser/getMethBins.js +0 -49
- package/dist/ModificationParser/getModPositions.d.ts +0 -6
- package/dist/ModificationParser/getModPositions.js +0 -64
- package/dist/ModificationParser/getModProbabilities.d.ts +0 -2
- package/dist/ModificationParser/getModProbabilities.js +0 -34
- package/dist/ModificationParser/getModTypes.d.ts +0 -5
- package/dist/ModificationParser/getModTypes.js +0 -35
- package/dist/PileupRPC/base.d.ts +0 -8
- package/dist/PileupRPC/base.js +0 -20
- package/dist/PileupRPC/index.d.ts +0 -2
- package/dist/PileupRPC/index.js +0 -9
- package/dist/PileupRPC/methods/GetGlobalValueForTag.d.ts +0 -13
- package/dist/PileupRPC/methods/GetGlobalValueForTag.js +0 -29
- package/dist/PileupRPC/methods/GetReducedFeatures.d.ts +0 -37
- package/dist/PileupRPC/methods/GetReducedFeatures.js +0 -54
- package/dist/PileupRPC/methods/GetVisibleModifications.d.ts +0 -14
- package/dist/PileupRPC/methods/GetVisibleModifications.js +0 -36
- package/dist/PileupRPC/rpcMethods.d.ts +0 -3
- package/dist/PileupRPC/rpcMethods.js +0 -12
- package/dist/PileupRPC/util.js +0 -18
- package/dist/PileupRenderer/PileupLayoutSession.d.ts +0 -23
- package/dist/PileupRenderer/PileupLayoutSession.js +0 -35
- package/dist/PileupRenderer/PileupRenderer.d.ts +0 -48
- package/dist/PileupRenderer/PileupRenderer.js +0 -129
- package/dist/PileupRenderer/colorBy.d.ts +0 -7
- package/dist/PileupRenderer/colorBy.js +0 -61
- package/dist/PileupRenderer/components/PileupRendering.d.ts +0 -26
- package/dist/PileupRenderer/components/PileupRendering.js +0 -136
- package/dist/PileupRenderer/configSchema.d.ts +0 -62
- package/dist/PileupRenderer/configSchema.js +0 -71
- package/dist/PileupRenderer/getAlignmentShapeColor.js +0 -61
- package/dist/PileupRenderer/index.d.ts +0 -2
- package/dist/PileupRenderer/index.js +0 -20
- package/dist/PileupRenderer/layoutFeature.d.ts +0 -18
- package/dist/PileupRenderer/layoutFeature.js +0 -42
- package/dist/PileupRenderer/layoutFeatures.d.ts +0 -5
- package/dist/PileupRenderer/layoutFeatures.js +0 -29
- package/dist/PileupRenderer/makeImageData.d.ts +0 -14
- package/dist/PileupRenderer/makeImageData.js +0 -66
- package/dist/PileupRenderer/renderAlignment.d.ts +0 -13
- package/dist/PileupRenderer/renderAlignment.js +0 -81
- package/dist/PileupRenderer/renderAlignmentShape.d.ts +0 -7
- package/dist/PileupRenderer/renderAlignmentShape.js +0 -120
- package/dist/PileupRenderer/renderMethylation.d.ts +0 -12
- package/dist/PileupRenderer/renderMethylation.js +0 -60
- package/dist/PileupRenderer/renderMismatches.d.ts +0 -18
- package/dist/PileupRenderer/renderMismatches.js +0 -124
- package/dist/PileupRenderer/renderModifications.d.ts +0 -12
- package/dist/PileupRenderer/renderModifications.js +0 -44
- package/dist/PileupRenderer/renderPerBaseLettering.js +0 -42
- package/dist/PileupRenderer/renderPerBaseQuality.js +0 -35
- package/dist/PileupRenderer/renderSoftClipping.js +0 -59
- package/dist/PileupRenderer/sortUtil.d.ts +0 -3
- package/dist/PileupRenderer/sortUtil.js +0 -80
- package/dist/PileupRenderer/types.d.ts +0 -27
- package/dist/PileupRenderer/types.js +0 -2
- package/dist/PileupRenderer/util.d.ts +0 -28
- package/dist/PileupRenderer/util.js +0 -49
- package/dist/SNPCoverageAdapter/SNPCoverageAdapter.d.ts +0 -14
- package/dist/SNPCoverageAdapter/SNPCoverageAdapter.js +0 -89
- package/dist/SNPCoverageAdapter/configSchema.d.ts +0 -7
- package/dist/SNPCoverageAdapter/configSchema.js +0 -11
- package/dist/SNPCoverageAdapter/generateCoverageBins.d.ts +0 -13
- package/dist/SNPCoverageAdapter/generateCoverageBins.js +0 -86
- package/dist/SNPCoverageAdapter/index.d.ts +0 -2
- package/dist/SNPCoverageAdapter/index.js +0 -54
- package/dist/SNPCoverageAdapter/processDepth.d.ts +0 -8
- package/dist/SNPCoverageAdapter/processDepth.js +0 -38
- package/dist/SNPCoverageAdapter/processMismatches.d.ts +0 -9
- package/dist/SNPCoverageAdapter/processMismatches.js +0 -58
- package/dist/SNPCoverageAdapter/processModifications.d.ts +0 -10
- package/dist/SNPCoverageAdapter/processModifications.js +0 -50
- package/dist/SNPCoverageAdapter/processReferenceCpGs.d.ts +0 -9
- package/dist/SNPCoverageAdapter/processReferenceCpGs.js +0 -63
- package/dist/SNPCoverageAdapter/util.d.ts +0 -10
- package/dist/SNPCoverageAdapter/util.js +0 -41
- package/dist/SNPCoverageRenderer/SNPCoverageRenderer.d.ts +0 -5
- package/dist/SNPCoverageRenderer/SNPCoverageRenderer.js +0 -46
- package/dist/SNPCoverageRenderer/configSchema.d.ts +0 -33
- package/dist/SNPCoverageRenderer/configSchema.js +0 -37
- package/dist/SNPCoverageRenderer/index.d.ts +0 -2
- package/dist/SNPCoverageRenderer/index.js +0 -17
- package/dist/SNPCoverageRenderer/makeImage.d.ts +0 -2
- package/dist/SNPCoverageRenderer/makeImage.js +0 -259
- package/dist/SNPCoverageRenderer/types.d.ts +0 -20
- package/dist/SNPCoverageRenderer/types.js +0 -2
- package/dist/index.d.ts +0 -9
- package/dist/index.js +0 -89
- package/dist/shared/afterAttach.d.ts +0 -2
- package/dist/shared/afterAttach.js +0 -40
- package/dist/shared/color.d.ts +0 -58
- package/dist/shared/color.js +0 -79
- package/dist/shared/components/BaseDisplayComponent.d.ts +0 -7
- package/dist/shared/components/BaseDisplayComponent.js +0 -44
- package/dist/shared/components/FilterByTagDialog.d.ts +0 -9
- package/dist/shared/components/FilterByTagDialog.js +0 -88
- package/dist/shared/fetchChains.d.ts +0 -28
- package/dist/shared/fetchChains.js +0 -22
- package/dist/shared/getMaximumModificationAtEachPosition.d.ts +0 -8
- package/dist/shared/getMaximumModificationAtEachPosition.js +0 -42
- package/dist/shared/getUniqueModifications.d.ts +0 -15
- package/dist/shared/getUniqueModifications.js +0 -22
- package/dist/shared/getUniqueTags.d.ts +0 -15
- package/dist/shared/getUniqueTags.js +0 -18
- package/dist/shared/renderSvgUtil.d.ts +0 -6
- package/dist/shared/renderSvgUtil.js +0 -66
- package/dist/shared/types.d.ts +0 -94
- package/dist/shared/types.js +0 -2
- package/dist/shared/util.d.ts +0 -20
- package/dist/shared/util.js +0 -63
- package/dist/util.d.ts +0 -30
- package/dist/util.js +0 -125
- package/esm/AlignmentsFeatureDetail/BreakendMultiLevelOptionDialog.d.ts +0 -1
- package/esm/AlignmentsFeatureDetail/BreakendMultiLevelOptionDialog.js +0 -1
- package/esm/AlignmentsFeatureDetail/BreakendSingleLevelOptionDialog.d.ts +0 -1
- package/esm/AlignmentsFeatureDetail/BreakendSingleLevelOptionDialog.js +0 -1
- package/esm/CramAdapter/util.d.ts +0 -9
- package/esm/CramAdapter/util.js +0 -209
- package/esm/LinearPileupDisplay/components/SetMaxHeightDialog.d.ts +0 -8
- package/esm/LinearReadArcsDisplay/drawFeats.d.ts +0 -2
- package/esm/LinearReadArcsDisplay/drawFeats.js +0 -149
- package/esm/LinearReadArcsDisplay/util.d.ts +0 -2
- package/esm/LinearReadArcsDisplay/util.js +0 -8
- package/esm/LinearReadCloudDisplay/components/ReactComponent.d.ts +0 -5
- package/esm/LinearReadCloudDisplay/components/ReactComponent.js +0 -18
- package/esm/LinearReadCloudDisplay/drawFeats.d.ts +0 -2
- package/esm/LinearReadCloudDisplay/drawFeats.js +0 -24
- package/esm/LinearReadCloudDisplay/drawLongReadChains.d.ts +0 -11
- package/esm/LinearReadCloudDisplay/drawLongReadChains.js +0 -61
- package/esm/LinearReadCloudDisplay/drawPairChains.d.ts +0 -17
- package/esm/LinearReadCloudDisplay/drawPairChains.js +0 -90
- package/esm/LinearReadCloudDisplay/util.d.ts +0 -2
- package/esm/PileupRPC/methods/GetReducedFeatures.d.ts +0 -37
- package/esm/PileupRPC/methods/GetReducedFeatures.js +0 -48
- package/esm/PileupRPC/util.d.ts +0 -8
- package/esm/PileupRPC/util.js +0 -14
- package/esm/PileupRenderer/getAlignmentShapeColor.d.ts +0 -10
- package/esm/PileupRenderer/renderAlignmentShape.d.ts +0 -7
- package/esm/PileupRenderer/renderAlignmentShape.js +0 -117
- package/esm/PileupRenderer/renderMethylation.js +0 -57
- package/esm/PileupRenderer/renderMismatches.d.ts +0 -18
- package/esm/PileupRenderer/renderMismatches.js +0 -121
- package/esm/PileupRenderer/renderModifications.d.ts +0 -12
- package/esm/PileupRenderer/renderModifications.js +0 -41
- package/esm/PileupRenderer/renderPerBaseLettering.d.ts +0 -14
- package/esm/PileupRenderer/renderPerBaseLettering.js +0 -39
- package/esm/PileupRenderer/renderPerBaseQuality.d.ts +0 -10
- package/esm/PileupRenderer/renderPerBaseQuality.js +0 -32
- package/esm/PileupRenderer/renderSoftClipping.d.ts +0 -13
- package/esm/PileupRenderer/renderSoftClipping.js +0 -56
- package/esm/SNPCoverageAdapter/generateCoverageBins.d.ts +0 -13
- package/esm/SNPCoverageAdapter/generateCoverageBins.js +0 -83
- package/esm/SNPCoverageAdapter/processDepth.d.ts +0 -8
- package/esm/SNPCoverageAdapter/processDepth.js +0 -35
- package/esm/SNPCoverageAdapter/processMismatches.d.ts +0 -9
- package/esm/SNPCoverageAdapter/processMismatches.js +0 -55
- package/esm/shared/components/BaseDisplayComponent.d.ts +0 -7
- package/esm/shared/components/BaseDisplayComponent.js +0 -42
- package/esm/shared/fetchChains.d.ts +0 -28
- package/esm/shared/fetchChains.js +0 -19
- /package/{dist/LinearPileupDisplay → esm/LinearReadCloudDisplay}/components/SetFeatureHeightDialog.d.ts +0 -0
- /package/{dist/PileupRenderer → esm/PileupRenderer/renderers}/getAlignmentShapeColor.d.ts +0 -0
- /package/{dist/LinearPileupDisplay → esm/shared}/components/SetMaxHeightDialog.d.ts +0 -0
|
@@ -1,22 +1,23 @@
|
|
|
1
1
|
import { lazy } from 'react';
|
|
2
2
|
import { ConfigurationReference, getConf, readConfObject, } from '@jbrowse/core/configuration';
|
|
3
3
|
import SerializableFilterChain from '@jbrowse/core/pluggableElementTypes/renderers/util/serializableFilterChain';
|
|
4
|
-
import { SimpleFeature, getContainingTrack, getContainingView,
|
|
4
|
+
import { SimpleFeature, getContainingTrack, getContainingView, getSession, isSessionModelWithWidgets, } from '@jbrowse/core/util';
|
|
5
5
|
import { getRpcSessionId } from '@jbrowse/core/util/tracks';
|
|
6
|
+
import { cast, isAlive, types } from '@jbrowse/mobx-state-tree';
|
|
6
7
|
import { BaseLinearDisplay } from '@jbrowse/plugin-linear-genome-view';
|
|
7
8
|
import FilterListIcon from '@mui/icons-material/ClearAll';
|
|
8
9
|
import ContentCopyIcon from '@mui/icons-material/ContentCopy';
|
|
9
10
|
import MenuOpenIcon from '@mui/icons-material/MenuOpen';
|
|
10
|
-
import
|
|
11
|
-
import {
|
|
12
|
-
import
|
|
13
|
-
import {
|
|
14
|
-
import
|
|
15
|
-
import {
|
|
16
|
-
const FilterByTagDialog = lazy(() => import(
|
|
17
|
-
const ColorByTagDialog = lazy(() => import(
|
|
18
|
-
const SetFeatureHeightDialog = lazy(() => import(
|
|
19
|
-
const SetMaxHeightDialog = lazy(() => import(
|
|
11
|
+
import VisibilityIcon from '@mui/icons-material/Visibility';
|
|
12
|
+
import { observable } from 'mobx';
|
|
13
|
+
import LinearPileupDisplayBlurb from "./components/LinearPileupDisplayBlurb.js";
|
|
14
|
+
import { getPileupLegendItems } from "../shared/legendUtils.js";
|
|
15
|
+
import { getMismatchDisplayMenuItem } from "../shared/menuItems.js";
|
|
16
|
+
import { isDefaultFilterFlags } from "../shared/util.js";
|
|
17
|
+
const FilterByTagDialog = lazy(() => import("../shared/components/FilterByTagDialog.js"));
|
|
18
|
+
const ColorByTagDialog = lazy(() => import("./components/ColorByTagDialog.js"));
|
|
19
|
+
const SetFeatureHeightDialog = lazy(() => import("../shared/components/SetFeatureHeightDialog.js"));
|
|
20
|
+
const SetMaxHeightDialog = lazy(() => import("../shared/components/SetMaxHeightDialog.js"));
|
|
20
21
|
const rendererTypes = new Map([
|
|
21
22
|
['pileup', 'PileupRenderer'],
|
|
22
23
|
['svg', 'SvgFeatureRenderer'],
|
|
@@ -33,6 +34,8 @@ export function SharedLinearPileupDisplayMixin(configSchema) {
|
|
|
33
34
|
filterBySetting: types.frozen(),
|
|
34
35
|
jexlFilters: types.optional(types.array(types.string), []),
|
|
35
36
|
hideSmallIndelsSetting: types.maybe(types.boolean),
|
|
37
|
+
hideMismatchesSetting: types.maybe(types.boolean),
|
|
38
|
+
hideLargeIndelsSetting: types.maybe(types.boolean),
|
|
36
39
|
}))
|
|
37
40
|
.volatile(() => ({
|
|
38
41
|
colorTagMap: observable.map({}),
|
|
@@ -41,22 +44,26 @@ export function SharedLinearPileupDisplayMixin(configSchema) {
|
|
|
41
44
|
}))
|
|
42
45
|
.views(self => ({
|
|
43
46
|
get colorBy() {
|
|
44
|
-
|
|
45
|
-
return (_a = self.colorBySetting) !== null && _a !== void 0 ? _a : getConf(self, 'colorBy');
|
|
47
|
+
return self.colorBySetting ?? getConf(self, 'colorBy');
|
|
46
48
|
},
|
|
47
49
|
get filterBy() {
|
|
48
|
-
|
|
49
|
-
return (_a = self.filterBySetting) !== null && _a !== void 0 ? _a : getConf(self, 'filterBy');
|
|
50
|
+
return self.filterBySetting ?? getConf(self, 'filterBy');
|
|
50
51
|
},
|
|
51
52
|
}))
|
|
52
53
|
.views(self => ({
|
|
53
54
|
get autorunReady() {
|
|
54
55
|
const view = getContainingView(self);
|
|
55
|
-
return view.initialized && self.
|
|
56
|
+
return (view.initialized && self.featureDensityStatsReadyAndRegionNotTooLarge);
|
|
56
57
|
},
|
|
57
58
|
get hideSmallIndels() {
|
|
58
59
|
return self.hideSmallIndelsSetting;
|
|
59
60
|
},
|
|
61
|
+
get hideMismatches() {
|
|
62
|
+
return self.hideMismatchesSetting;
|
|
63
|
+
},
|
|
64
|
+
get hideLargeIndels() {
|
|
65
|
+
return self.hideLargeIndelsSetting;
|
|
66
|
+
},
|
|
60
67
|
}))
|
|
61
68
|
.actions(self => ({
|
|
62
69
|
setTagsReady(flag) {
|
|
@@ -129,24 +136,33 @@ export function SharedLinearPileupDisplayMixin(configSchema) {
|
|
|
129
136
|
setHideSmallIndels(arg) {
|
|
130
137
|
self.hideSmallIndelsSetting = arg;
|
|
131
138
|
},
|
|
139
|
+
setHideMismatches(arg) {
|
|
140
|
+
self.hideMismatchesSetting = arg;
|
|
141
|
+
},
|
|
142
|
+
setHideLargeIndels(arg) {
|
|
143
|
+
self.hideLargeIndelsSetting = arg;
|
|
144
|
+
},
|
|
132
145
|
}))
|
|
133
146
|
.views(self => ({
|
|
134
|
-
copyFeatureToClipboard(feature) {
|
|
147
|
+
async copyFeatureToClipboard(feature) {
|
|
135
148
|
const { uniqueId, ...rest } = feature.toJSON();
|
|
136
149
|
const session = getSession(self);
|
|
150
|
+
const { default: copy } = await import('copy-to-clipboard');
|
|
137
151
|
copy(JSON.stringify(rest, null, 4));
|
|
138
152
|
session.notify('Copied to clipboard', 'success');
|
|
139
153
|
},
|
|
140
154
|
get rendererConfig() {
|
|
141
|
-
const { featureHeight: height, noSpacing, hideSmallIndels, trackMaxHeight: maxHeight, rendererTypeName, } = self;
|
|
155
|
+
const { featureHeight: height, noSpacing, hideSmallIndels, hideMismatches, hideLargeIndels, trackMaxHeight: maxHeight, rendererTypeName, } = self;
|
|
142
156
|
const configBlob = getConf(self, ['renderers', rendererTypeName]) || {};
|
|
143
|
-
return
|
|
157
|
+
return {
|
|
144
158
|
...configBlob,
|
|
145
159
|
...(hideSmallIndels !== undefined ? { hideSmallIndels } : {}),
|
|
160
|
+
...(hideMismatches !== undefined ? { hideMismatches } : {}),
|
|
161
|
+
...(hideLargeIndels !== undefined ? { hideLargeIndels } : {}),
|
|
146
162
|
...(height !== undefined ? { height } : {}),
|
|
147
163
|
...(noSpacing !== undefined ? { noSpacing } : {}),
|
|
148
164
|
...(maxHeight !== undefined ? { maxHeight } : {}),
|
|
149
|
-
}
|
|
165
|
+
};
|
|
150
166
|
},
|
|
151
167
|
}))
|
|
152
168
|
.views(self => ({
|
|
@@ -165,9 +181,33 @@ export function SharedLinearPileupDisplayMixin(configSchema) {
|
|
|
165
181
|
get filters() {
|
|
166
182
|
return new SerializableFilterChain({ filters: self.jexlFilters });
|
|
167
183
|
},
|
|
184
|
+
legendItems(theme) {
|
|
185
|
+
return getPileupLegendItems(self.colorBy, theme);
|
|
186
|
+
},
|
|
187
|
+
showSubMenuItems() {
|
|
188
|
+
return [
|
|
189
|
+
{
|
|
190
|
+
label: 'Show tooltips',
|
|
191
|
+
type: 'checkbox',
|
|
192
|
+
checked: self.showTooltipsEnabled,
|
|
193
|
+
onClick: () => {
|
|
194
|
+
self.setShowTooltips(!self.showTooltipsEnabled);
|
|
195
|
+
},
|
|
196
|
+
},
|
|
197
|
+
{
|
|
198
|
+
label: 'Show legend',
|
|
199
|
+
type: 'checkbox',
|
|
200
|
+
checked: self.showLegend,
|
|
201
|
+
onClick: () => {
|
|
202
|
+
self.setShowLegend(!self.showLegend);
|
|
203
|
+
},
|
|
204
|
+
},
|
|
205
|
+
getMismatchDisplayMenuItem(self),
|
|
206
|
+
];
|
|
207
|
+
},
|
|
168
208
|
}))
|
|
169
209
|
.views(self => {
|
|
170
|
-
const { trackMenuItems: superTrackMenuItems, renderProps: superRenderProps, } = self;
|
|
210
|
+
const { trackMenuItems: superTrackMenuItems, renderProps: superRenderProps, renderingProps: superRenderingProps, } = self;
|
|
171
211
|
return {
|
|
172
212
|
get rendererTypeName() {
|
|
173
213
|
const viewName = getConf(self, 'defaultRendering');
|
|
@@ -202,19 +242,22 @@ export function SharedLinearPileupDisplayMixin(configSchema) {
|
|
|
202
242
|
get DisplayBlurb() {
|
|
203
243
|
return LinearPileupDisplayBlurb;
|
|
204
244
|
},
|
|
205
|
-
|
|
206
|
-
const { colorTagMap, colorBy, filterBy
|
|
245
|
+
adapterRenderProps() {
|
|
246
|
+
const { colorTagMap, colorBy, filterBy } = self;
|
|
207
247
|
const superProps = superRenderProps();
|
|
208
248
|
return {
|
|
209
249
|
...superProps,
|
|
210
250
|
notReady: superProps.notReady || !self.renderReady(),
|
|
211
|
-
rpcDriverName,
|
|
212
|
-
displayModel: self,
|
|
213
251
|
colorBy,
|
|
214
252
|
filterBy,
|
|
215
253
|
filters: self.filters,
|
|
216
254
|
colorTagMap: Object.fromEntries(colorTagMap.toJSON()),
|
|
217
255
|
config: self.rendererConfig,
|
|
256
|
+
};
|
|
257
|
+
},
|
|
258
|
+
renderingProps() {
|
|
259
|
+
return {
|
|
260
|
+
...superRenderingProps(),
|
|
218
261
|
async onFeatureClick(_, featureId) {
|
|
219
262
|
const session = getSession(self);
|
|
220
263
|
const { rpcManager } = session;
|
|
@@ -228,8 +271,9 @@ export function SharedLinearPileupDisplayMixin(configSchema) {
|
|
|
228
271
|
const { feature } = (await rpcManager.call(sessionId, 'CoreGetFeatureDetails', {
|
|
229
272
|
featureId: f,
|
|
230
273
|
sessionId,
|
|
231
|
-
|
|
274
|
+
trackInstanceId: getContainingTrack(self).id,
|
|
232
275
|
rendererType: 'PileupRenderer',
|
|
276
|
+
rpcDriverName: self.effectiveRpcDriverName,
|
|
233
277
|
}));
|
|
234
278
|
if (isAlive(self) && feature) {
|
|
235
279
|
self.selectFeature(new SimpleFeature(feature));
|
|
@@ -257,8 +301,9 @@ export function SharedLinearPileupDisplayMixin(configSchema) {
|
|
|
257
301
|
const { feature } = (await rpcManager.call(sessionId, 'CoreGetFeatureDetails', {
|
|
258
302
|
featureId: f,
|
|
259
303
|
sessionId,
|
|
260
|
-
|
|
304
|
+
trackInstanceId: getContainingTrack(self).id,
|
|
261
305
|
rendererType: 'PileupRenderer',
|
|
306
|
+
rpcDriverName: self.effectiveRpcDriverName,
|
|
262
307
|
}));
|
|
263
308
|
if (feature) {
|
|
264
309
|
self.setContextMenuFeature(new SimpleFeature(feature));
|
|
@@ -341,10 +386,12 @@ export function SharedLinearPileupDisplayMixin(configSchema) {
|
|
|
341
386
|
...superTrackMenuItems(),
|
|
342
387
|
{
|
|
343
388
|
label: 'Set feature height...',
|
|
344
|
-
priority:
|
|
389
|
+
priority: 0,
|
|
345
390
|
subMenu: [
|
|
346
391
|
{
|
|
347
392
|
label: 'Normal',
|
|
393
|
+
type: 'radio',
|
|
394
|
+
checked: self.featureHeight === 7 && self.noSpacing === false,
|
|
348
395
|
onClick: () => {
|
|
349
396
|
self.setFeatureHeight(7);
|
|
350
397
|
self.setNoSpacing(false);
|
|
@@ -352,13 +399,24 @@ export function SharedLinearPileupDisplayMixin(configSchema) {
|
|
|
352
399
|
},
|
|
353
400
|
{
|
|
354
401
|
label: 'Compact',
|
|
402
|
+
type: 'radio',
|
|
403
|
+
checked: self.featureHeight === 2 && self.noSpacing === true,
|
|
355
404
|
onClick: () => {
|
|
356
405
|
self.setFeatureHeight(2);
|
|
357
406
|
self.setNoSpacing(true);
|
|
358
407
|
},
|
|
359
408
|
},
|
|
360
409
|
{
|
|
361
|
-
label: '
|
|
410
|
+
label: 'Super-compact',
|
|
411
|
+
type: 'radio',
|
|
412
|
+
checked: self.featureHeight === 1 && self.noSpacing === true,
|
|
413
|
+
onClick: () => {
|
|
414
|
+
self.setFeatureHeight(1);
|
|
415
|
+
self.setNoSpacing(true);
|
|
416
|
+
},
|
|
417
|
+
},
|
|
418
|
+
{
|
|
419
|
+
label: 'Custom',
|
|
362
420
|
onClick: () => {
|
|
363
421
|
getSession(self).queueDialog(handleClose => [
|
|
364
422
|
SetFeatureHeightDialog,
|
|
@@ -372,16 +430,14 @@ export function SharedLinearPileupDisplayMixin(configSchema) {
|
|
|
372
430
|
],
|
|
373
431
|
},
|
|
374
432
|
{
|
|
375
|
-
label: '
|
|
433
|
+
label: 'Show...',
|
|
434
|
+
icon: VisibilityIcon,
|
|
376
435
|
priority: -1,
|
|
377
|
-
type: '
|
|
378
|
-
|
|
379
|
-
onClick: () => {
|
|
380
|
-
self.setHideSmallIndels(!self.hideSmallIndels);
|
|
381
|
-
},
|
|
436
|
+
type: 'subMenu',
|
|
437
|
+
subMenu: self.showSubMenuItems(),
|
|
382
438
|
},
|
|
383
439
|
{
|
|
384
|
-
label: 'Set max height...',
|
|
440
|
+
label: 'Set max track height...',
|
|
385
441
|
priority: -1,
|
|
386
442
|
onClick: () => {
|
|
387
443
|
getSession(self).queueDialog(handleClose => [
|
|
@@ -412,63 +468,16 @@ export function SharedLinearPileupDisplayMixin(configSchema) {
|
|
|
412
468
|
})
|
|
413
469
|
.views(self => ({
|
|
414
470
|
renderProps() {
|
|
415
|
-
return self.
|
|
471
|
+
return self.adapterRenderProps();
|
|
416
472
|
},
|
|
417
473
|
}))
|
|
418
474
|
.actions(self => ({
|
|
419
475
|
afterAttach() {
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
const { colorBy, tagsReady } = self;
|
|
426
|
-
const { staticBlocks } = view;
|
|
427
|
-
if ((colorBy === null || colorBy === void 0 ? void 0 : colorBy.tag) && !tagsReady) {
|
|
428
|
-
const vals = await getUniqueTags({
|
|
429
|
-
self,
|
|
430
|
-
tag: colorBy.tag,
|
|
431
|
-
blocks: staticBlocks,
|
|
432
|
-
});
|
|
433
|
-
if (isAlive(self)) {
|
|
434
|
-
self.updateColorTagMap(vals);
|
|
435
|
-
self.setTagsReady(true);
|
|
436
|
-
}
|
|
437
|
-
}
|
|
438
|
-
else {
|
|
439
|
-
self.setTagsReady(true);
|
|
440
|
-
}
|
|
441
|
-
}, { delay: 1000 });
|
|
442
|
-
addDisposer(self, autorun(async () => {
|
|
443
|
-
var _a;
|
|
444
|
-
const session = getSession(self);
|
|
445
|
-
try {
|
|
446
|
-
const featureId = self.featureIdUnderMouse;
|
|
447
|
-
if (((_a = self.featureUnderMouse) === null || _a === void 0 ? void 0 : _a.id()) !== featureId) {
|
|
448
|
-
if (!featureId) {
|
|
449
|
-
self.setFeatureUnderMouse(undefined);
|
|
450
|
-
}
|
|
451
|
-
else {
|
|
452
|
-
const sessionId = getRpcSessionId(self);
|
|
453
|
-
const { feature } = (await session.rpcManager.call(sessionId, 'CoreGetFeatureDetails', {
|
|
454
|
-
featureId,
|
|
455
|
-
sessionId,
|
|
456
|
-
layoutId: getContainingTrack(self).id,
|
|
457
|
-
rendererType: 'PileupRenderer',
|
|
458
|
-
}));
|
|
459
|
-
if (isAlive(self) &&
|
|
460
|
-
feature &&
|
|
461
|
-
self.featureIdUnderMouse === feature.uniqueId) {
|
|
462
|
-
self.setFeatureUnderMouse(new SimpleFeature(feature));
|
|
463
|
-
}
|
|
464
|
-
}
|
|
465
|
-
}
|
|
466
|
-
}
|
|
467
|
-
catch (e) {
|
|
468
|
-
console.error(e);
|
|
469
|
-
session.notifyError(`${e}`, e);
|
|
470
|
-
}
|
|
471
|
-
}));
|
|
476
|
+
;
|
|
477
|
+
(async () => {
|
|
478
|
+
const { sharedDoAfterAttach } = await import("./sharedDoAfterAttach.js");
|
|
479
|
+
sharedDoAfterAttach(self);
|
|
480
|
+
})();
|
|
472
481
|
},
|
|
473
482
|
}))
|
|
474
483
|
.preProcessSnapshot(snap => {
|
|
@@ -481,5 +490,27 @@ export function SharedLinearPileupDisplayMixin(configSchema) {
|
|
|
481
490
|
};
|
|
482
491
|
}
|
|
483
492
|
return snap;
|
|
493
|
+
})
|
|
494
|
+
.postProcessSnapshot(snap => {
|
|
495
|
+
if (!snap) {
|
|
496
|
+
return snap;
|
|
497
|
+
}
|
|
498
|
+
const { trackMaxHeight, colorBySetting, filterBySetting, jexlFilters, hideSmallIndelsSetting, hideMismatchesSetting, hideLargeIndelsSetting, ...rest } = snap;
|
|
499
|
+
return {
|
|
500
|
+
...rest,
|
|
501
|
+
...(trackMaxHeight !== undefined ? { trackMaxHeight } : {}),
|
|
502
|
+
...(colorBySetting !== undefined ? { colorBySetting } : {}),
|
|
503
|
+
...(!isDefaultFilterFlags(filterBySetting) ? { filterBySetting } : {}),
|
|
504
|
+
...(jexlFilters?.length ? { jexlFilters } : {}),
|
|
505
|
+
...(hideSmallIndelsSetting !== undefined
|
|
506
|
+
? { hideSmallIndelsSetting }
|
|
507
|
+
: {}),
|
|
508
|
+
...(hideMismatchesSetting !== undefined
|
|
509
|
+
? { hideMismatchesSetting }
|
|
510
|
+
: {}),
|
|
511
|
+
...(hideLargeIndelsSetting !== undefined
|
|
512
|
+
? { hideLargeIndelsSetting }
|
|
513
|
+
: {}),
|
|
514
|
+
};
|
|
484
515
|
});
|
|
485
516
|
}
|
|
@@ -3,7 +3,7 @@ import { useState } from 'react';
|
|
|
3
3
|
import { Dialog } from '@jbrowse/core/ui';
|
|
4
4
|
import { Button, DialogActions, DialogContent, TextField, Typography, } from '@mui/material';
|
|
5
5
|
import { observer } from 'mobx-react';
|
|
6
|
-
const ColorByTagDialog = observer(function ({ model, handleClose, }) {
|
|
6
|
+
const ColorByTagDialog = observer(function ColorByTagDialog({ model, handleClose, }) {
|
|
7
7
|
const [tag, setTag] = useState('');
|
|
8
8
|
const validTag = /^[A-Za-z][A-Za-z0-9]$/.exec(tag);
|
|
9
9
|
return (_jsx(Dialog, { open: true, onClose: handleClose, title: "Color by tag", children: _jsxs(DialogContent, { style: { overflowX: 'hidden' }, children: [_jsx(Typography, { children: "Enter tag to color by: " }), _jsx(Typography, { color: "textSecondary", children: "Examples: XS or TS for RNA-seq inferred read strand, ts (lower-case) for minimap2 read strand, HP for haplotype, RG for read group, etc." }), _jsx(TextField, { value: tag, onChange: event => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { AnyConfigurationModel } from '@jbrowse/core/configuration';
|
|
2
|
-
import type { IAnyStateTreeNode } from 'mobx-state-tree';
|
|
2
|
+
import type { IAnyStateTreeNode } from '@jbrowse/mobx-state-tree';
|
|
3
3
|
declare const GroupByTagDialog: (props: {
|
|
4
4
|
model: {
|
|
5
5
|
adapterConfig: AnyConfigurationModel;
|
|
@@ -2,12 +2,12 @@ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-run
|
|
|
2
2
|
import { useEffect, useState } from 'react';
|
|
3
3
|
import { Dialog, ErrorMessage, LoadingEllipses } from '@jbrowse/core/ui';
|
|
4
4
|
import { getContainingTrack, getContainingView, getSession, useDebounce, } from '@jbrowse/core/util';
|
|
5
|
+
import { getSnapshot } from '@jbrowse/mobx-state-tree';
|
|
5
6
|
import { Button, DialogActions, DialogContent, MenuItem, TextField, Typography, } from '@mui/material';
|
|
6
7
|
import { observer } from 'mobx-react';
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
|
|
10
|
-
const GroupByTagDialog = observer(function (props) {
|
|
8
|
+
import { getUniqueTags } from "../../shared/getUniqueTags.js";
|
|
9
|
+
import { defaultFilterFlags, negFlags, posFlags } from "../../shared/util.js";
|
|
10
|
+
const GroupByTagDialog = observer(function GroupByTagDialog(props) {
|
|
11
11
|
const { model, handleClose } = props;
|
|
12
12
|
const [tag, setGroupByTag] = useState('');
|
|
13
13
|
const [tagSet, setGroupByTagSet] = useState();
|
|
@@ -51,7 +51,7 @@ const GroupByTagDialog = observer(function (props) {
|
|
|
51
51
|
maxLength: 2,
|
|
52
52
|
'data-testid': 'group-tag-name-input',
|
|
53
53
|
},
|
|
54
|
-
} }), error ? (_jsx(ErrorMessage, { error: error })) : loading ? (_jsx(LoadingEllipses, {
|
|
54
|
+
} }), error ? (_jsx(ErrorMessage, { error: error })) : loading ? (_jsx(LoadingEllipses, { message: "Loading unique tags" })) : tagSet ? (_jsxs("div", { children: [_jsxs("div", { children: ["Found unique ", tag, " values:"] }), _jsx("div", { children: tagSet.join(', ') })] })) : null] })) : null] }), _jsxs(DialogActions, { children: [_jsx(Button, { variant: "contained", color: "primary", type: "submit", disabled: !tagSet, autoFocus: true, onClick: () => {
|
|
55
55
|
const track = getContainingTrack(model);
|
|
56
56
|
const trackConf = structuredClone(getSnapshot(track.configuration));
|
|
57
57
|
const session = getSession(model);
|
|
@@ -60,7 +60,7 @@ const GroupByTagDialog = observer(function (props) {
|
|
|
60
60
|
if (tagSet) {
|
|
61
61
|
const ret = [...tagSet, undefined];
|
|
62
62
|
for (const tagValue of ret) {
|
|
63
|
-
const t1 = `${trackConf.trackId}-${tag}:${tagValue}-${
|
|
63
|
+
const t1 = `${trackConf.trackId}-${tag}:${tagValue}-${Date.now()}-sessionTrack`;
|
|
64
64
|
session.addTrackConf({
|
|
65
65
|
...trackConf,
|
|
66
66
|
trackId: t1,
|
|
@@ -88,8 +88,8 @@ const GroupByTagDialog = observer(function (props) {
|
|
|
88
88
|
}
|
|
89
89
|
}
|
|
90
90
|
else if (type === 'strand') {
|
|
91
|
-
const t1 = `${trackConf.trackId}-${tag}:(-)-${
|
|
92
|
-
const t2 = `${trackConf.trackId}-${tag}:(+)-${
|
|
91
|
+
const t1 = `${trackConf.trackId}-${tag}:(-)-${Date.now()}-sessionTrack`;
|
|
92
|
+
const t2 = `${trackConf.trackId}-${tag}:(+)-${Date.now()}-sessionTrack`;
|
|
93
93
|
session.addTrackConf({
|
|
94
94
|
...trackConf,
|
|
95
95
|
trackId: t1,
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { Typography } from '@mui/material';
|
|
3
3
|
import { observer } from 'mobx-react';
|
|
4
|
-
const LinearPileupDisplayBlurb = observer(function ({ model, }) {
|
|
5
|
-
var _a;
|
|
4
|
+
const LinearPileupDisplayBlurb = observer(function LinearPileupDisplayBlurb({ model, }) {
|
|
6
5
|
const { sortedBy } = model;
|
|
7
|
-
return sortedBy ? (_jsx("div", { "data-testid": `blurb-${sortedBy}`, children: _jsx(Typography, { color: "secondary", variant: "caption", children: `Sorted by ${
|
|
6
|
+
return sortedBy ? (_jsx("div", { "data-testid": `blurb-${sortedBy}`, children: _jsx(Typography, { color: "secondary", variant: "caption", children: `Sorted by ${sortedBy.tag ?? sortedBy.type} at ${sortedBy.refName}:${sortedBy.pos}` }) })) : null;
|
|
8
7
|
});
|
|
9
8
|
export default LinearPileupDisplayBlurb;
|
|
@@ -3,7 +3,7 @@ import { useState } from 'react';
|
|
|
3
3
|
import { Dialog } from '@jbrowse/core/ui';
|
|
4
4
|
import { Button, Checkbox, DialogActions, DialogContent, FormControlLabel, TextField, Typography, } from '@mui/material';
|
|
5
5
|
import { observer } from 'mobx-react';
|
|
6
|
-
const SetFeatureHeightDialog = observer(function (props) {
|
|
6
|
+
const SetFeatureHeightDialog = observer(function SetFeatureHeightDialog(props) {
|
|
7
7
|
const { model, handleClose } = props;
|
|
8
8
|
const { featureHeightSetting, noSpacing: noSpacingSetting } = model;
|
|
9
9
|
const [height, setHeight] = useState(`${featureHeightSetting}`);
|
|
@@ -3,7 +3,7 @@ import { useState } from 'react';
|
|
|
3
3
|
import { Dialog } from '@jbrowse/core/ui';
|
|
4
4
|
import { Button, DialogActions, DialogContent, TextField, Typography, } from '@mui/material';
|
|
5
5
|
import { observer } from 'mobx-react';
|
|
6
|
-
const SortByTagDialog = observer(function (props) {
|
|
6
|
+
const SortByTagDialog = observer(function SortByTagDialog(props) {
|
|
7
7
|
const { model, handleClose } = props;
|
|
8
8
|
const [tag, setTag] = useState('');
|
|
9
9
|
const validTag = /^[A-Za-z][A-Za-z0-9]$/.exec(tag);
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import type PluginManager from '@jbrowse/core/PluginManager';
|
|
2
|
-
declare function configSchemaF(pluginManager: PluginManager): import("
|
|
2
|
+
declare function configSchemaF(pluginManager: PluginManager): import("node_modules/@jbrowse/core/src/configuration/configurationSchema.ts").ConfigurationSchemaType<{
|
|
3
3
|
defaultRendering: {
|
|
4
4
|
type: string;
|
|
5
|
-
model: import("mobx-state-tree").ISimpleType<string>;
|
|
5
|
+
model: import("@jbrowse/mobx-state-tree").ISimpleType<string>;
|
|
6
6
|
defaultValue: string;
|
|
7
7
|
};
|
|
8
|
-
renderers: import("
|
|
8
|
+
renderers: import("node_modules/@jbrowse/core/src/configuration/configurationSchema.ts").ConfigurationSchemaType<{
|
|
9
9
|
PileupRenderer: import("@jbrowse/core/configuration").AnyConfigurationSchemaType;
|
|
10
|
-
}, import("
|
|
10
|
+
}, import("node_modules/@jbrowse/core/src/configuration/configurationSchema.ts").ConfigurationSchemaOptions<undefined, undefined>>;
|
|
11
11
|
maxFeatureScreenDensity: {
|
|
12
12
|
type: string;
|
|
13
13
|
description: string;
|
|
@@ -28,9 +28,9 @@ declare function configSchemaF(pluginManager: PluginManager): import("@jbrowse/c
|
|
|
28
28
|
flagExclude: number;
|
|
29
29
|
};
|
|
30
30
|
};
|
|
31
|
-
}, import("
|
|
32
|
-
renderer: import("mobx-state-tree").IAnyModelType;
|
|
33
|
-
}, import("
|
|
31
|
+
}, import("node_modules/@jbrowse/core/src/configuration/configurationSchema.ts").ConfigurationSchemaOptions<import("node_modules/@jbrowse/core/src/configuration/configurationSchema.ts").ConfigurationSchemaType<{
|
|
32
|
+
renderer: import("@jbrowse/mobx-state-tree").IAnyModelType;
|
|
33
|
+
}, import("node_modules/@jbrowse/core/src/configuration/configurationSchema.ts").ConfigurationSchemaOptions<import("node_modules/@jbrowse/core/src/configuration/configurationSchema.ts").ConfigurationSchemaType<{
|
|
34
34
|
maxFeatureScreenDensity: {
|
|
35
35
|
type: string;
|
|
36
36
|
description: string;
|
|
@@ -57,5 +57,5 @@ declare function configSchemaF(pluginManager: PluginManager): import("@jbrowse/c
|
|
|
57
57
|
description: string;
|
|
58
58
|
defaultValue: never[];
|
|
59
59
|
};
|
|
60
|
-
}, import("
|
|
60
|
+
}, import("node_modules/@jbrowse/core/src/configuration/configurationSchema.ts").ConfigurationSchemaOptions<undefined, "displayId">>, undefined>>, undefined>>;
|
|
61
61
|
export default configSchemaF;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ConfigurationSchema } from '@jbrowse/core/configuration';
|
|
2
|
+
import { types } from '@jbrowse/mobx-state-tree';
|
|
2
3
|
import { linearBasicDisplayConfigSchemaFactory } from '@jbrowse/plugin-linear-genome-view';
|
|
3
|
-
import {
|
|
4
|
-
import { defaultFilterFlags } from '../shared/util';
|
|
4
|
+
import { defaultFilterFlags } from "../shared/util.js";
|
|
5
5
|
function x() { }
|
|
6
6
|
function configSchemaF(pluginManager) {
|
|
7
7
|
return ConfigurationSchema('LinearPileupDisplay', {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ModificationType, SortedBy } from '../shared/types';
|
|
1
|
+
import type { ModificationType, SortedBy } from '../shared/types.ts';
|
|
2
2
|
import type { AnyConfigurationModel } from '@jbrowse/core/configuration';
|
|
3
3
|
export declare function doAfterAttach(model: {
|
|
4
4
|
autorunReady: boolean;
|
|
@@ -10,11 +10,13 @@ export declare function doAfterAttach(model: {
|
|
|
10
10
|
sortReady: boolean;
|
|
11
11
|
currSortBpPerPx: number;
|
|
12
12
|
parentTrack: any;
|
|
13
|
-
|
|
13
|
+
adapterRenderProps: () => Record<string, unknown>;
|
|
14
|
+
renderingProps: () => Record<string, unknown>;
|
|
14
15
|
setCurrSortBpPerPx: (arg: number) => void;
|
|
15
16
|
setError: (arg: unknown) => void;
|
|
16
17
|
updateVisibleModifications: (arg: ModificationType[]) => void;
|
|
18
|
+
setSimplexModifications: (arg: string[]) => void;
|
|
17
19
|
setModificationsReady: (arg: boolean) => void;
|
|
18
20
|
setSortReady: (arg: boolean) => void;
|
|
19
|
-
|
|
21
|
+
setStatusMessage: (arg: string) => void;
|
|
20
22
|
}): void;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { getContainingTrack, getContainingView, getSession, } from '@jbrowse/core/util';
|
|
2
2
|
import { getRpcSessionId } from '@jbrowse/core/util/tracks';
|
|
3
|
-
import { isAlive } from 'mobx-state-tree';
|
|
4
|
-
import {
|
|
5
|
-
import { createAutorun } from
|
|
3
|
+
import { isAlive } from '@jbrowse/mobx-state-tree';
|
|
4
|
+
import { setupModificationsAutorun } from "../shared/setupModificationsAutorun.js";
|
|
5
|
+
import { createAutorun } from "../util.js";
|
|
6
6
|
export function doAfterAttach(model) {
|
|
7
7
|
createAutorun(model, async () => {
|
|
8
8
|
const view = getContainingView(model);
|
|
@@ -10,7 +10,10 @@ export function doAfterAttach(model) {
|
|
|
10
10
|
return;
|
|
11
11
|
}
|
|
12
12
|
model.setCurrSortBpPerPx(view.bpPerPx);
|
|
13
|
-
}, {
|
|
13
|
+
}, {
|
|
14
|
+
delay: 1000,
|
|
15
|
+
name: 'CurrBpPerPx',
|
|
16
|
+
});
|
|
14
17
|
createAutorun(model, async () => {
|
|
15
18
|
const { rpcManager } = getSession(model);
|
|
16
19
|
const view = getContainingView(model);
|
|
@@ -34,35 +37,24 @@ export function doAfterAttach(model) {
|
|
|
34
37
|
adapterConfig,
|
|
35
38
|
rendererType: rendererType.name,
|
|
36
39
|
sessionId: getRpcSessionId(model),
|
|
37
|
-
|
|
38
|
-
timeout:
|
|
40
|
+
trackInstanceId: getContainingTrack(model).id,
|
|
41
|
+
timeout: 1_000_000,
|
|
39
42
|
statusCallback: (arg) => {
|
|
40
43
|
if (isAlive(model)) {
|
|
41
|
-
model.
|
|
44
|
+
model.setStatusMessage(arg);
|
|
42
45
|
}
|
|
43
46
|
},
|
|
44
|
-
...model.
|
|
47
|
+
...model.adapterRenderProps(),
|
|
48
|
+
renderingProps: model.renderingProps(),
|
|
45
49
|
});
|
|
46
50
|
}
|
|
47
51
|
if (isAlive(model)) {
|
|
48
52
|
model.setCurrSortBpPerPx(bpPerPx);
|
|
49
53
|
model.setSortReady(true);
|
|
50
54
|
}
|
|
51
|
-
}, {
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
const { adapterConfig } = model;
|
|
57
|
-
const { staticBlocks } = getContainingView(model);
|
|
58
|
-
const vals = await getUniqueModifications({
|
|
59
|
-
model,
|
|
60
|
-
adapterConfig,
|
|
61
|
-
blocks: staticBlocks,
|
|
62
|
-
});
|
|
63
|
-
if (isAlive(model)) {
|
|
64
|
-
model.updateVisibleModifications(vals);
|
|
65
|
-
model.setModificationsReady(true);
|
|
66
|
-
}
|
|
67
|
-
}, { delay: 1000 });
|
|
55
|
+
}, {
|
|
56
|
+
delay: 1000,
|
|
57
|
+
name: 'SortReads',
|
|
58
|
+
});
|
|
59
|
+
setupModificationsAutorun(model, () => model.autorunReady);
|
|
68
60
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type PluginManager from '@jbrowse/core/PluginManager';
|
|
2
2
|
export default function register(pluginManager: PluginManager): void;
|
|
3
|
-
export { default as linearPileupDisplayStateModelFactory } from './model';
|
|
4
|
-
export { default as linearPileupDisplayConfigSchemaFactory } from './configSchema';
|
|
5
|
-
export { SharedLinearPileupDisplayMixin } from './SharedLinearPileupDisplayMixin';
|
|
3
|
+
export { default as linearPileupDisplayStateModelFactory } from './model.ts';
|
|
4
|
+
export { default as linearPileupDisplayConfigSchemaFactory } from './configSchema.ts';
|
|
5
|
+
export { SharedLinearPileupDisplayMixin } from './SharedLinearPileupDisplayMixin.ts';
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import DisplayType from '@jbrowse/core/pluggableElementTypes/DisplayType';
|
|
2
2
|
import { BaseLinearDisplayComponent } from '@jbrowse/plugin-linear-genome-view';
|
|
3
|
-
import configSchemaFactory from
|
|
4
|
-
import modelFactory from
|
|
3
|
+
import configSchemaFactory from "./configSchema.js";
|
|
4
|
+
import modelFactory from "./model.js";
|
|
5
5
|
export default function register(pluginManager) {
|
|
6
6
|
pluginManager.addDisplayType(() => {
|
|
7
7
|
const configSchema = configSchemaFactory(pluginManager);
|
|
8
8
|
return new DisplayType({
|
|
9
9
|
name: 'LinearPileupDisplay',
|
|
10
10
|
displayName: 'Pileup display',
|
|
11
|
+
helpText: 'Display stacked aligned reads showing exact placement and sequences relative to the reference genome',
|
|
11
12
|
configSchema,
|
|
12
13
|
stateModel: modelFactory(configSchema),
|
|
13
14
|
subDisplay: { type: 'LinearAlignmentsDisplay', lowerPanel: true },
|
|
@@ -17,6 +18,6 @@ export default function register(pluginManager) {
|
|
|
17
18
|
});
|
|
18
19
|
});
|
|
19
20
|
}
|
|
20
|
-
export { default as linearPileupDisplayStateModelFactory } from
|
|
21
|
-
export { default as linearPileupDisplayConfigSchemaFactory } from
|
|
22
|
-
export { SharedLinearPileupDisplayMixin } from
|
|
21
|
+
export { default as linearPileupDisplayStateModelFactory } from "./model.js";
|
|
22
|
+
export { default as linearPileupDisplayConfigSchemaFactory } from "./configSchema.js";
|
|
23
|
+
export { SharedLinearPileupDisplayMixin } from "./SharedLinearPileupDisplayMixin.js";
|