@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
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import { SAM_FLAG_MATE_REVERSE, SAM_FLAG_MATE_UNMAPPED, SAM_FLAG_SECONDARY, SAM_FLAG_SUPPLEMENTARY, } from "./samFlags.js";
|
|
2
|
+
export function jitter(n) {
|
|
3
|
+
return Math.random() * 2 * n - n;
|
|
4
|
+
}
|
|
5
|
+
export function drawVerticalLine(ctx, x, height, color) {
|
|
6
|
+
ctx.strokeStyle = color;
|
|
7
|
+
ctx.beginPath();
|
|
8
|
+
ctx.moveTo(x, 0);
|
|
9
|
+
ctx.lineTo(x, height);
|
|
10
|
+
ctx.stroke();
|
|
11
|
+
}
|
|
12
|
+
export function extractCoreFeat(f) {
|
|
13
|
+
return {
|
|
14
|
+
refName: f.get('refName'),
|
|
15
|
+
start: f.get('start'),
|
|
16
|
+
end: f.get('end'),
|
|
17
|
+
strand: f.get('strand'),
|
|
18
|
+
tlen: f.get('template_length'),
|
|
19
|
+
pair_orientation: f.get('pair_orientation'),
|
|
20
|
+
next_ref: f.get('next_ref'),
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
export function extractCoreFeatBasic(f) {
|
|
24
|
+
return {
|
|
25
|
+
refName: f.get('refName'),
|
|
26
|
+
start: f.get('start'),
|
|
27
|
+
end: f.get('end'),
|
|
28
|
+
strand: f.get('strand'),
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
export function getStrandRelativeFirstClipLength(f) {
|
|
32
|
+
return 'get' in f
|
|
33
|
+
? f.get('clipLengthAtStartOfRead')
|
|
34
|
+
: f
|
|
35
|
+
.clipLengthAtStartOfRead;
|
|
36
|
+
}
|
|
37
|
+
export function toCoreFeat(f) {
|
|
38
|
+
return 'get' in f ? extractCoreFeat(f) : f;
|
|
39
|
+
}
|
|
40
|
+
export function toCoreFeatBasic(f) {
|
|
41
|
+
return 'get' in f ? extractCoreFeatBasic(f) : f;
|
|
42
|
+
}
|
|
43
|
+
export function getMateInfo(f) {
|
|
44
|
+
const flags = f.get('flags') || 0;
|
|
45
|
+
const mateStrand = flags & SAM_FLAG_MATE_REVERSE ? -1 : 1;
|
|
46
|
+
return {
|
|
47
|
+
refName: f.get('next_ref') || '',
|
|
48
|
+
start: f.get('next_pos') || 0,
|
|
49
|
+
end: f.get('next_pos') || 0,
|
|
50
|
+
strand: mateStrand,
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
export function filterPairedChain(chain) {
|
|
54
|
+
const result = [];
|
|
55
|
+
for (const f of chain) {
|
|
56
|
+
const flags = f.get('flags');
|
|
57
|
+
if (!(flags & SAM_FLAG_SUPPLEMENTARY) &&
|
|
58
|
+
!(flags & SAM_FLAG_MATE_UNMAPPED)) {
|
|
59
|
+
result.push(f);
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
return result;
|
|
63
|
+
}
|
|
64
|
+
export function filterAndSortLongReadChain(chain) {
|
|
65
|
+
const filtered = [];
|
|
66
|
+
for (const f of chain) {
|
|
67
|
+
if (!(f.get('flags') & SAM_FLAG_SECONDARY)) {
|
|
68
|
+
filtered.push(f);
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
filtered.sort((a, b) => a.get('clipLengthAtStartOfRead') - b.get('clipLengthAtStartOfRead'));
|
|
72
|
+
return filtered;
|
|
73
|
+
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare function fillRectCtx(x: number, y: number, width: number, height: number, ctx: CanvasRenderingContext2D, fillColor?: string): void;
|
|
2
1
|
export declare function strokeRectCtx(x: number, y: number, width: number, height: number, ctx: CanvasRenderingContext2D, strokeColor?: string): void;
|
|
2
|
+
export declare function lineToCtx(x1: number, y1: number, x2: number, y2: number, ctx: CanvasRenderingContext2D, strokeColor?: string): void;
|
|
@@ -1,17 +1,3 @@
|
|
|
1
|
-
export function fillRectCtx(x, y, width, height, ctx, fillColor) {
|
|
2
|
-
if (width < 0) {
|
|
3
|
-
x += width;
|
|
4
|
-
width = -width;
|
|
5
|
-
}
|
|
6
|
-
if (height < 0) {
|
|
7
|
-
y += height;
|
|
8
|
-
height = -height;
|
|
9
|
-
}
|
|
10
|
-
if (fillColor) {
|
|
11
|
-
ctx.fillStyle = fillColor;
|
|
12
|
-
}
|
|
13
|
-
ctx.fillRect(x, y, width, height);
|
|
14
|
-
}
|
|
15
1
|
export function strokeRectCtx(x, y, width, height, ctx, strokeColor) {
|
|
16
2
|
if (width < 0) {
|
|
17
3
|
x += width;
|
|
@@ -26,3 +12,12 @@ export function strokeRectCtx(x, y, width, height, ctx, strokeColor) {
|
|
|
26
12
|
}
|
|
27
13
|
ctx.strokeRect(x, y, width, height);
|
|
28
14
|
}
|
|
15
|
+
export function lineToCtx(x1, y1, x2, y2, ctx, strokeColor) {
|
|
16
|
+
if (strokeColor) {
|
|
17
|
+
ctx.strokeStyle = strokeColor;
|
|
18
|
+
}
|
|
19
|
+
ctx.beginPath();
|
|
20
|
+
ctx.moveTo(x1, y1);
|
|
21
|
+
ctx.lineTo(x2, y2);
|
|
22
|
+
ctx.stroke();
|
|
23
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function drawChevron(ctx: CanvasRenderingContext2D, x: number, y: number, width: number, height: number, strand: number, color: string, chevronWidth: number, stroke?: string): void;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export function drawChevron(ctx, x, y, width, height, strand, color, chevronWidth, stroke) {
|
|
2
|
+
ctx.fillStyle = color;
|
|
3
|
+
ctx.beginPath();
|
|
4
|
+
if (strand === -1) {
|
|
5
|
+
ctx.moveTo(x - chevronWidth, y + height / 2);
|
|
6
|
+
ctx.lineTo(x, y + height);
|
|
7
|
+
ctx.lineTo(x + width, y + height);
|
|
8
|
+
ctx.lineTo(x + width, y);
|
|
9
|
+
ctx.lineTo(x, y);
|
|
10
|
+
}
|
|
11
|
+
else {
|
|
12
|
+
ctx.moveTo(x, y);
|
|
13
|
+
ctx.lineTo(x, y + height);
|
|
14
|
+
ctx.lineTo(x + width, y + height);
|
|
15
|
+
ctx.lineTo(x + width + chevronWidth, y + height / 2);
|
|
16
|
+
ctx.lineTo(x + width, y);
|
|
17
|
+
}
|
|
18
|
+
ctx.closePath();
|
|
19
|
+
ctx.fill();
|
|
20
|
+
if (stroke) {
|
|
21
|
+
ctx.strokeStyle = stroke;
|
|
22
|
+
ctx.stroke();
|
|
23
|
+
}
|
|
24
|
+
}
|
package/esm/shared/color.d.ts
CHANGED
|
@@ -1,4 +1,14 @@
|
|
|
1
|
-
import type { ChainStats } from './
|
|
1
|
+
import type { ChainStats } from './types.ts';
|
|
2
|
+
import type { Feature } from '@jbrowse/core/util';
|
|
3
|
+
export declare const PairType: {
|
|
4
|
+
readonly PROPER_PAIR: 0;
|
|
5
|
+
readonly LONG_INSERT: 1;
|
|
6
|
+
readonly SHORT_INSERT: 2;
|
|
7
|
+
readonly INTER_CHROM: 3;
|
|
8
|
+
readonly ABNORMAL_ORIENTATION: 4;
|
|
9
|
+
readonly UNMAPPED_MATE: 5;
|
|
10
|
+
};
|
|
11
|
+
export type PairTypeValue = (typeof PairType)[keyof typeof PairType];
|
|
2
12
|
export declare const fillColor: {
|
|
3
13
|
color_fwd_strand_not_proper: string;
|
|
4
14
|
color_rev_strand_not_proper: string;
|
|
@@ -16,7 +26,12 @@ export declare const fillColor: {
|
|
|
16
26
|
color_interchrom: string;
|
|
17
27
|
color_longinsert: string;
|
|
18
28
|
color_shortinsert: string;
|
|
29
|
+
color_unmapped_mate: string;
|
|
19
30
|
color_unknown: string;
|
|
31
|
+
color_longread_rev_fwd: string;
|
|
32
|
+
color_longread_fwd_rev: string;
|
|
33
|
+
color_longread_same: string;
|
|
34
|
+
color_supplementary: string;
|
|
20
35
|
};
|
|
21
36
|
export declare const strokeColor: {
|
|
22
37
|
color_fwd_strand_not_proper: string;
|
|
@@ -35,24 +50,52 @@ export declare const strokeColor: {
|
|
|
35
50
|
color_interchrom: string;
|
|
36
51
|
color_longinsert: string;
|
|
37
52
|
color_shortinsert: string;
|
|
53
|
+
color_unmapped_mate: string;
|
|
38
54
|
color_unknown: string;
|
|
55
|
+
color_longread_rev_fwd: string;
|
|
56
|
+
color_longread_fwd_rev: string;
|
|
57
|
+
color_longread_same: string;
|
|
58
|
+
color_supplementary: string;
|
|
39
59
|
};
|
|
40
|
-
export declare function
|
|
60
|
+
export declare function getPairedType({ type, f, stats, }: {
|
|
61
|
+
type: string;
|
|
62
|
+
f: {
|
|
63
|
+
refName: string;
|
|
64
|
+
next_ref?: string;
|
|
65
|
+
pair_orientation?: string;
|
|
66
|
+
tlen?: number;
|
|
67
|
+
flags?: number;
|
|
68
|
+
};
|
|
69
|
+
stats?: ChainStats;
|
|
70
|
+
}): PairTypeValue;
|
|
71
|
+
export declare function getPairedInsertSizeColor(f: {
|
|
41
72
|
refName: string;
|
|
73
|
+
next_ref?: string;
|
|
42
74
|
tlen?: number;
|
|
43
|
-
|
|
44
|
-
refName: string;
|
|
75
|
+
flags?: number;
|
|
45
76
|
}, stats?: ChainStats): readonly [string, string] | undefined;
|
|
46
|
-
export declare function getPairedInsertSizeAndOrientationColor(f1: {
|
|
47
|
-
refName: string;
|
|
48
|
-
pair_orientation?: string;
|
|
49
|
-
tlen?: number;
|
|
50
|
-
}, f2: {
|
|
51
|
-
refName: string;
|
|
52
|
-
}, stats?: ChainStats): readonly [string, string];
|
|
53
77
|
export declare function getPairedOrientationColorOrDefault(f: {
|
|
54
78
|
pair_orientation?: string;
|
|
79
|
+
flags?: number;
|
|
55
80
|
}): readonly [string, string] | undefined;
|
|
56
81
|
export declare function getPairedOrientationColor(f: {
|
|
57
82
|
pair_orientation?: string;
|
|
83
|
+
flags?: number;
|
|
58
84
|
}): readonly [string, string];
|
|
85
|
+
export declare function getPairedInsertSizeAndOrientationColor(f: {
|
|
86
|
+
refName: string;
|
|
87
|
+
next_ref?: string;
|
|
88
|
+
pair_orientation?: string;
|
|
89
|
+
tlen?: number;
|
|
90
|
+
flags?: number;
|
|
91
|
+
}, stats?: ChainStats): readonly [string, string];
|
|
92
|
+
export declare function getSingletonColor(f: {
|
|
93
|
+
tlen?: number;
|
|
94
|
+
pair_orientation?: string;
|
|
95
|
+
flags?: number;
|
|
96
|
+
}, stats?: ChainStats): readonly [string, string];
|
|
97
|
+
export declare function getPairedColor({ type, v0, stats, }: {
|
|
98
|
+
type: string;
|
|
99
|
+
v0: Feature;
|
|
100
|
+
stats?: ChainStats;
|
|
101
|
+
}): readonly [string, string] | undefined;
|
package/esm/shared/color.js
CHANGED
|
@@ -1,4 +1,12 @@
|
|
|
1
|
-
import { orientationTypes, pairMap } from
|
|
1
|
+
import { orientationTypes, pairMap } from "../util.js";
|
|
2
|
+
export const PairType = {
|
|
3
|
+
PROPER_PAIR: 0,
|
|
4
|
+
LONG_INSERT: 1,
|
|
5
|
+
SHORT_INSERT: 2,
|
|
6
|
+
INTER_CHROM: 3,
|
|
7
|
+
ABNORMAL_ORIENTATION: 4,
|
|
8
|
+
UNMAPPED_MATE: 5,
|
|
9
|
+
};
|
|
2
10
|
export const fillColor = {
|
|
3
11
|
color_fwd_strand_not_proper: '#ECC8C8',
|
|
4
12
|
color_rev_strand_not_proper: '#BEBED8',
|
|
@@ -8,15 +16,20 @@ export const fillColor = {
|
|
|
8
16
|
color_rev_missing_mate: '#1919D1',
|
|
9
17
|
color_fwd_diff_chr: '#000',
|
|
10
18
|
color_rev_diff_chr: '#969696',
|
|
11
|
-
color_pair_lr: '
|
|
12
|
-
color_pair_rr: '
|
|
19
|
+
color_pair_lr: 'lightgrey',
|
|
20
|
+
color_pair_rr: '#3a3a9d',
|
|
13
21
|
color_pair_rl: 'teal',
|
|
14
22
|
color_pair_ll: 'green',
|
|
15
23
|
color_nostrand: '#c8c8c8',
|
|
16
24
|
color_interchrom: 'purple',
|
|
17
25
|
color_longinsert: 'red',
|
|
18
26
|
color_shortinsert: 'pink',
|
|
27
|
+
color_unmapped_mate: '#8B4513',
|
|
19
28
|
color_unknown: 'grey',
|
|
29
|
+
color_longread_rev_fwd: 'navy',
|
|
30
|
+
color_longread_fwd_rev: 'green',
|
|
31
|
+
color_longread_same: 'grey',
|
|
32
|
+
color_supplementary: '#f0b878',
|
|
20
33
|
};
|
|
21
34
|
export const strokeColor = {
|
|
22
35
|
color_fwd_strand_not_proper: '#CA6767',
|
|
@@ -28,45 +41,128 @@ export const strokeColor = {
|
|
|
28
41
|
color_fwd_diff_chr: '#000000',
|
|
29
42
|
color_rev_diff_chr: '#696969',
|
|
30
43
|
color_pair_lr: '#8C8C8C',
|
|
31
|
-
color_pair_rr: '#
|
|
44
|
+
color_pair_rr: '#00002A',
|
|
32
45
|
color_pair_rl: '#005A5A',
|
|
33
46
|
color_pair_ll: '#005A00',
|
|
34
47
|
color_nostrand: '#8C8C8C',
|
|
35
48
|
color_interchrom: '#5A005A',
|
|
36
49
|
color_longinsert: '#B30000',
|
|
37
50
|
color_shortinsert: '#FF3A5C',
|
|
38
|
-
|
|
51
|
+
color_unmapped_mate: '#5D2E0D',
|
|
52
|
+
color_unknown: '#444',
|
|
53
|
+
color_longread_rev_fwd: '#00004D',
|
|
54
|
+
color_longread_fwd_rev: '#005A00',
|
|
55
|
+
color_longread_same: '#444',
|
|
56
|
+
color_supplementary: '#c88030',
|
|
39
57
|
};
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
58
|
+
const defaultColor = [
|
|
59
|
+
fillColor.color_pair_lr,
|
|
60
|
+
strokeColor.color_pair_lr,
|
|
61
|
+
];
|
|
62
|
+
export function getPairedType({ type, f, stats, }) {
|
|
63
|
+
if (f.flags !== undefined && f.flags & 8) {
|
|
64
|
+
return PairType.UNMAPPED_MATE;
|
|
45
65
|
}
|
|
46
|
-
|
|
47
|
-
|
|
66
|
+
if (type === 'insertSizeAndOrientation' || type === 'orientation') {
|
|
67
|
+
const orientationType = orientationTypes.fr;
|
|
68
|
+
const r = orientationType[f.pair_orientation || ''];
|
|
69
|
+
if (r && r !== 'LR') {
|
|
70
|
+
return PairType.ABNORMAL_ORIENTATION;
|
|
71
|
+
}
|
|
48
72
|
}
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
73
|
+
if (type === 'insertSizeAndOrientation' || type === 'insertSize') {
|
|
74
|
+
const sameRef = f.refName === f.next_ref;
|
|
75
|
+
const tlen = Math.abs(f.tlen || 0);
|
|
76
|
+
if (!sameRef) {
|
|
77
|
+
return PairType.INTER_CHROM;
|
|
78
|
+
}
|
|
79
|
+
if (stats) {
|
|
80
|
+
if (tlen > stats.upper) {
|
|
81
|
+
return PairType.LONG_INSERT;
|
|
82
|
+
}
|
|
83
|
+
if (tlen < stats.lower) {
|
|
84
|
+
return PairType.SHORT_INSERT;
|
|
85
|
+
}
|
|
86
|
+
}
|
|
54
87
|
}
|
|
88
|
+
return PairType.PROPER_PAIR;
|
|
55
89
|
}
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
90
|
+
export function getPairedInsertSizeColor(f, stats) {
|
|
91
|
+
const pairType = getPairedType({
|
|
92
|
+
type: 'insertSize',
|
|
93
|
+
f,
|
|
94
|
+
stats,
|
|
95
|
+
});
|
|
96
|
+
switch (pairType) {
|
|
97
|
+
case PairType.UNMAPPED_MATE:
|
|
98
|
+
return [
|
|
99
|
+
fillColor.color_unmapped_mate,
|
|
100
|
+
strokeColor.color_unmapped_mate,
|
|
101
|
+
];
|
|
102
|
+
case PairType.LONG_INSERT:
|
|
103
|
+
return [fillColor.color_longinsert, strokeColor.color_longinsert];
|
|
104
|
+
case PairType.SHORT_INSERT:
|
|
105
|
+
return [
|
|
106
|
+
fillColor.color_shortinsert,
|
|
107
|
+
strokeColor.color_shortinsert,
|
|
108
|
+
];
|
|
109
|
+
case PairType.INTER_CHROM:
|
|
110
|
+
return [fillColor.color_interchrom, strokeColor.color_interchrom];
|
|
111
|
+
case PairType.PROPER_PAIR:
|
|
112
|
+
return undefined;
|
|
113
|
+
default:
|
|
114
|
+
return undefined;
|
|
115
|
+
}
|
|
61
116
|
}
|
|
62
117
|
export function getPairedOrientationColorOrDefault(f) {
|
|
118
|
+
if (f.flags !== undefined && f.flags & 8) {
|
|
119
|
+
return [
|
|
120
|
+
fillColor.color_unmapped_mate,
|
|
121
|
+
strokeColor.color_unmapped_mate,
|
|
122
|
+
];
|
|
123
|
+
}
|
|
63
124
|
const type = orientationTypes.fr;
|
|
64
125
|
const r = type[f.pair_orientation || ''];
|
|
126
|
+
if (!r || r === 'LR') {
|
|
127
|
+
return undefined;
|
|
128
|
+
}
|
|
65
129
|
const type2 = pairMap[r];
|
|
66
|
-
return
|
|
67
|
-
? undefined
|
|
68
|
-
: [fillColor[type2], strokeColor[type2]];
|
|
130
|
+
return [fillColor[type2], strokeColor[type2]];
|
|
69
131
|
}
|
|
70
132
|
export function getPairedOrientationColor(f) {
|
|
71
133
|
return getPairedOrientationColorOrDefault(f) || defaultColor;
|
|
72
134
|
}
|
|
135
|
+
export function getPairedInsertSizeAndOrientationColor(f, stats) {
|
|
136
|
+
return (getPairedOrientationColorOrDefault(f) ||
|
|
137
|
+
getPairedInsertSizeColor(f, stats) ||
|
|
138
|
+
defaultColor);
|
|
139
|
+
}
|
|
140
|
+
export function getSingletonColor(f, stats) {
|
|
141
|
+
const tlen = Math.abs(f.tlen || 0);
|
|
142
|
+
if (stats && tlen > stats.upper) {
|
|
143
|
+
return [
|
|
144
|
+
fillColor.color_fwd_missing_mate,
|
|
145
|
+
strokeColor.color_fwd_missing_mate,
|
|
146
|
+
];
|
|
147
|
+
}
|
|
148
|
+
return defaultColor;
|
|
149
|
+
}
|
|
150
|
+
export function getPairedColor({ type, v0, stats, }) {
|
|
151
|
+
const f0 = {
|
|
152
|
+
refName: v0.get('refName'),
|
|
153
|
+
next_ref: v0.get('next_ref'),
|
|
154
|
+
pair_orientation: v0.get('pair_orientation'),
|
|
155
|
+
tlen: v0.get('template_length'),
|
|
156
|
+
flags: v0.get('flags'),
|
|
157
|
+
};
|
|
158
|
+
if (type === 'insertSizeAndOrientation') {
|
|
159
|
+
return getPairedInsertSizeAndOrientationColor(f0, stats);
|
|
160
|
+
}
|
|
161
|
+
if (type === 'orientation') {
|
|
162
|
+
return getPairedOrientationColor(f0);
|
|
163
|
+
}
|
|
164
|
+
if (type === 'insertSize') {
|
|
165
|
+
return getPairedInsertSizeColor(f0, stats);
|
|
166
|
+
}
|
|
167
|
+
return undefined;
|
|
168
|
+
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
2
|
import { useState } from 'react';
|
|
3
3
|
import { Dialog } from '@jbrowse/core/ui';
|
|
4
|
+
import { makeStyles } from '@jbrowse/core/util/tss-react';
|
|
4
5
|
import { Button, DialogActions, DialogContent, Link, Paper, TextField, Typography, } from '@mui/material';
|
|
5
6
|
import { observer } from 'mobx-react';
|
|
6
|
-
import { makeStyles } from 'tss-react/mui';
|
|
7
7
|
const useStyles = makeStyles()(theme => ({
|
|
8
8
|
paper: {
|
|
9
9
|
padding: theme.spacing(2),
|
|
@@ -44,15 +44,14 @@ function Bitmask(props) {
|
|
|
44
44
|
} }), _jsx("label", { htmlFor: key, children: name })] }, key));
|
|
45
45
|
})] }));
|
|
46
46
|
}
|
|
47
|
-
const FilterByTagDialog = observer(function (props) {
|
|
48
|
-
var _a, _b;
|
|
47
|
+
const FilterByTagDialog = observer(function FilterByTagDialog(props) {
|
|
49
48
|
const { model, handleClose } = props;
|
|
50
49
|
const { classes } = useStyles();
|
|
51
50
|
const { filterBy } = model;
|
|
52
51
|
const [flagInclude, setFlagInclude] = useState(filterBy.flagInclude);
|
|
53
52
|
const [flagExclude, setFlagExclude] = useState(filterBy.flagExclude);
|
|
54
|
-
const [tag, setTag] = useState(
|
|
55
|
-
const [tagValue, setTagValue] = useState(
|
|
53
|
+
const [tag, setTag] = useState(filterBy.tagFilter?.tag || '');
|
|
54
|
+
const [tagValue, setTagValue] = useState(filterBy.tagFilter?.value || '');
|
|
56
55
|
const [readName, setReadName] = useState(filterBy.readName || '');
|
|
57
56
|
const validTag = /^[A-Za-z][A-Za-z0-9]$/.exec(tag);
|
|
58
57
|
const site = 'https://broadinstitute.github.io/picard/explain-flags.html';
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
declare const SetFeatureHeightDialog: (props: {
|
|
2
|
+
model: {
|
|
3
|
+
setFeatureHeight: (arg?: number) => void;
|
|
4
|
+
setNoSpacing: (arg?: boolean) => void;
|
|
5
|
+
featureHeightSetting: number;
|
|
6
|
+
noSpacing?: boolean;
|
|
7
|
+
};
|
|
8
|
+
handleClose: () => void;
|
|
9
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export default SetFeatureHeightDialog;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { useState } from 'react';
|
|
3
|
+
import { Dialog } from '@jbrowse/core/ui';
|
|
4
|
+
import { Button, Checkbox, DialogActions, DialogContent, FormControlLabel, TextField, Typography, } from '@mui/material';
|
|
5
|
+
import { observer } from 'mobx-react';
|
|
6
|
+
const SetFeatureHeightDialog = observer(function SetFeatureHeightDialog(props) {
|
|
7
|
+
const { model, handleClose } = props;
|
|
8
|
+
const { featureHeightSetting, noSpacing: noSpacingSetting } = model;
|
|
9
|
+
const [height, setHeight] = useState(`${featureHeightSetting}`);
|
|
10
|
+
const [noSpacing, setNoSpacing] = useState(noSpacingSetting);
|
|
11
|
+
const ok = height !== '' && !Number.isNaN(+height);
|
|
12
|
+
return (_jsx(Dialog, { open: true, onClose: handleClose, title: "Set feature height", children: _jsxs(DialogContent, { children: [_jsx(Typography, { children: "Adjust the feature height and whether there is any spacing between features. Setting feature height to 1 and removing spacing makes the display very compact." }), _jsx(TextField, { value: height, helperText: "Feature height", onChange: event => {
|
|
13
|
+
setHeight(event.target.value);
|
|
14
|
+
} }), _jsx(FormControlLabel, { control: _jsx(Checkbox, { checked: !!noSpacing, onChange: () => {
|
|
15
|
+
setNoSpacing(val => !val);
|
|
16
|
+
} }), label: "Remove spacing between features in y-direction?" }), _jsxs(DialogActions, { children: [_jsx(Button, { variant: "contained", color: "primary", type: "submit", autoFocus: true, disabled: !ok, onClick: () => {
|
|
17
|
+
model.setFeatureHeight(height !== '' && !Number.isNaN(+height) ? +height : undefined);
|
|
18
|
+
model.setNoSpacing(noSpacing);
|
|
19
|
+
handleClose();
|
|
20
|
+
}, children: "Submit" }), _jsx(Button, { variant: "contained", color: "secondary", onClick: () => {
|
|
21
|
+
handleClose();
|
|
22
|
+
}, children: "Cancel" })] })] }) }));
|
|
23
|
+
});
|
|
24
|
+
export default SetFeatureHeightDialog;
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { useState } from 'react';
|
|
3
3
|
import { Dialog } from '@jbrowse/core/ui';
|
|
4
|
+
import { makeStyles } from '@jbrowse/core/util/tss-react';
|
|
4
5
|
import { Button, DialogActions, DialogContent, TextField, Typography, } from '@mui/material';
|
|
5
6
|
import { observer } from 'mobx-react';
|
|
6
|
-
import { makeStyles } from 'tss-react/mui';
|
|
7
7
|
const useStyles = makeStyles()({
|
|
8
8
|
root: {
|
|
9
9
|
width: 500,
|
|
10
10
|
},
|
|
11
11
|
});
|
|
12
|
-
const SetMaxHeightDialog = observer(function (props) {
|
|
12
|
+
const SetMaxHeightDialog = observer(function SetMaxHeightDialog(props) {
|
|
13
13
|
const { model, handleClose } = props;
|
|
14
14
|
const { classes } = useStyles();
|
|
15
15
|
const { maxHeight = '' } = model;
|
|
16
16
|
const [max, setMax] = useState(`${maxHeight}`);
|
|
17
|
-
return (_jsx(Dialog, { open: true, onClose: handleClose, title: "Set max height", children: _jsxs(DialogContent, { className: classes.root, children: [_jsx(Typography, { children: "Set max height for the track. For example, you can increase this if the layout says \"Max height reached\"" }), _jsx(TextField, { value: max, autoFocus: true, onChange: event => {
|
|
17
|
+
return (_jsx(Dialog, { open: true, onClose: handleClose, title: "Set max track height", children: _jsxs(DialogContent, { className: classes.root, children: [_jsx(Typography, { children: "Set max layout height for the track. For example, you can increase this if the layout says \"Max height reached\"" }), _jsx(TextField, { value: max, autoFocus: true, onChange: event => {
|
|
18
18
|
setMax(event.target.value);
|
|
19
19
|
}, placeholder: "Enter max height for layout" }), _jsxs(DialogActions, { children: [_jsx(Button, { variant: "contained", color: "primary", type: "submit", autoFocus: true, onClick: () => {
|
|
20
20
|
model.setMaxHeight(max !== '' && !Number.isNaN(+max) ? +max : undefined);
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { ColorBy } from '../types.ts';
|
|
2
|
+
declare const SetModificationThresholdDialog: (props: {
|
|
3
|
+
model: {
|
|
4
|
+
modificationThreshold: number;
|
|
5
|
+
colorBy?: ColorBy;
|
|
6
|
+
setColorScheme: (colorBy: ColorBy) => void;
|
|
7
|
+
};
|
|
8
|
+
handleClose: () => void;
|
|
9
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export default SetModificationThresholdDialog;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { useState } from 'react';
|
|
3
|
+
import { Dialog } from '@jbrowse/core/ui';
|
|
4
|
+
import { Button, DialogActions, DialogContent, TextField, Typography, } from '@mui/material';
|
|
5
|
+
import { observer } from 'mobx-react';
|
|
6
|
+
const SetModificationThresholdDialog = observer(function SetModificationThresholdDialog(props) {
|
|
7
|
+
const { model, handleClose } = props;
|
|
8
|
+
const [threshold, setThreshold] = useState(String(model.modificationThreshold));
|
|
9
|
+
const numThreshold = Number.parseFloat(threshold);
|
|
10
|
+
const validThreshold = !Number.isNaN(numThreshold) && numThreshold >= 0 && numThreshold <= 100;
|
|
11
|
+
return (_jsx(Dialog, { open: true, onClose: handleClose, title: "Adjust modification threshold", children: _jsxs(DialogContent, { children: [_jsx(Typography, { children: "Set the minimum probability threshold for displaying modifications" }), _jsx(Typography, { color: "textSecondary", children: "Only modifications with probability above this threshold will be displayed (0-100%)" }), _jsx(TextField, { value: threshold, onChange: event => {
|
|
12
|
+
setThreshold(event.target.value);
|
|
13
|
+
}, placeholder: "Enter threshold (e.g., 10)", error: threshold !== '' && !validThreshold, helperText: threshold !== '' && !validThreshold
|
|
14
|
+
? 'Must be a number between 0 and 100'
|
|
15
|
+
: '', autoComplete: "off", type: "number", slotProps: {
|
|
16
|
+
htmlInput: {
|
|
17
|
+
min: 0,
|
|
18
|
+
max: 100,
|
|
19
|
+
step: 1,
|
|
20
|
+
},
|
|
21
|
+
} }), _jsxs(DialogActions, { children: [_jsx(Button, { variant: "contained", color: "primary", type: "submit", autoFocus: true, disabled: !validThreshold, onClick: () => {
|
|
22
|
+
const currentColorBy = model.colorBy || {
|
|
23
|
+
type: 'modifications',
|
|
24
|
+
};
|
|
25
|
+
model.setColorScheme({
|
|
26
|
+
...currentColorBy,
|
|
27
|
+
modifications: {
|
|
28
|
+
...currentColorBy.modifications,
|
|
29
|
+
threshold: numThreshold,
|
|
30
|
+
},
|
|
31
|
+
});
|
|
32
|
+
handleClose();
|
|
33
|
+
}, children: "Submit" }), _jsx(Button, { variant: "contained", color: "secondary", onClick: () => {
|
|
34
|
+
handleClose();
|
|
35
|
+
}, children: "Cancel" })] })] }) }));
|
|
36
|
+
});
|
|
37
|
+
export default SetModificationThresholdDialog;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { getSession } from '@jbrowse/core/util';
|
|
2
|
+
import type { AnyConfigurationModel } from '@jbrowse/core/configuration';
|
|
3
|
+
import type { StopToken } from '@jbrowse/core/util/stopToken';
|
|
4
|
+
import type { LinearGenomeViewModel } from '@jbrowse/plugin-linear-genome-view';
|
|
5
|
+
type LGV = LinearGenomeViewModel;
|
|
6
|
+
export interface RPCRenderableModel {
|
|
7
|
+
id: string;
|
|
8
|
+
error: unknown;
|
|
9
|
+
featureDensityStatsReadyAndRegionNotTooLarge: boolean;
|
|
10
|
+
effectiveRpcDriverName: string;
|
|
11
|
+
adapterConfig: unknown;
|
|
12
|
+
configuration: AnyConfigurationModel;
|
|
13
|
+
renderingStopToken?: StopToken;
|
|
14
|
+
setRenderingStopToken: (token?: StopToken) => void;
|
|
15
|
+
setLoading: (loading: boolean) => void;
|
|
16
|
+
setError: (error: unknown) => void;
|
|
17
|
+
setRenderingImageData: (imageData: ImageBitmap | undefined) => void;
|
|
18
|
+
setLastDrawnOffsetPx: (offsetPx: number) => void;
|
|
19
|
+
setLastDrawnBpPerPx: (bpPerPx: number) => void;
|
|
20
|
+
ref: HTMLCanvasElement | null;
|
|
21
|
+
renderingImageData?: ImageBitmap;
|
|
22
|
+
setStatusMessage?: (msg: string) => void;
|
|
23
|
+
}
|
|
24
|
+
export interface RPCRenderSetupParams<T extends RPCRenderableModel, R = Record<string, unknown>> {
|
|
25
|
+
self: T;
|
|
26
|
+
rpcMethodName: string;
|
|
27
|
+
getRPCParams: (params: {
|
|
28
|
+
view: LGV;
|
|
29
|
+
session: ReturnType<typeof getSession>;
|
|
30
|
+
sequenceAdapter: unknown;
|
|
31
|
+
stopToken: StopToken;
|
|
32
|
+
}) => Record<string, unknown>;
|
|
33
|
+
onResult: (result: R) => void;
|
|
34
|
+
}
|
|
35
|
+
export declare function createRPCRenderFunction<T extends RPCRenderableModel, R = Record<string, unknown>>({ self, rpcMethodName, getRPCParams, onResult }: RPCRenderSetupParams<T, R>): () => Promise<void>;
|
|
36
|
+
export declare function setupCanvasRenderingAutorun<T extends RPCRenderableModel>(self: T): void;
|
|
37
|
+
export {};
|