@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,37 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const configuration_1 = require("@jbrowse/core/configuration");
|
|
4
|
-
function x() { }
|
|
5
|
-
const SNPCoverageRenderer = (0, configuration_1.ConfigurationSchema)('SNPCoverageRenderer', {
|
|
6
|
-
clipColor: {
|
|
7
|
-
type: 'color',
|
|
8
|
-
description: 'the color of the clipping marker',
|
|
9
|
-
defaultValue: 'red',
|
|
10
|
-
},
|
|
11
|
-
indicatorThreshold: {
|
|
12
|
-
type: 'number',
|
|
13
|
-
description: 'the proportion of reads containing a insertion/clip indicator',
|
|
14
|
-
defaultValue: 0.4,
|
|
15
|
-
},
|
|
16
|
-
showArcs: {
|
|
17
|
-
type: 'boolean',
|
|
18
|
-
description: 'Draw sashimi-style arcs for intron features',
|
|
19
|
-
defaultValue: true,
|
|
20
|
-
},
|
|
21
|
-
showInterbaseCounts: {
|
|
22
|
-
type: 'boolean',
|
|
23
|
-
description: 'draw count "upsidedown histogram" of the interbase events that don\'t contribute to the coverage count so are not drawn in the normal histogram',
|
|
24
|
-
defaultValue: true,
|
|
25
|
-
},
|
|
26
|
-
showInterbaseIndicators: {
|
|
27
|
-
type: 'boolean',
|
|
28
|
-
description: 'draw a triangular indicator where an event has been detected',
|
|
29
|
-
defaultValue: true,
|
|
30
|
-
},
|
|
31
|
-
color: {
|
|
32
|
-
type: 'color',
|
|
33
|
-
description: 'Background color for the SNPCoverage renderer',
|
|
34
|
-
defaultValue: '#d3d3d3',
|
|
35
|
-
},
|
|
36
|
-
}, { explicitlyTyped: true });
|
|
37
|
-
exports.default = SNPCoverageRenderer;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.default = register;
|
|
7
|
-
const plugin_wiggle_1 = require("@jbrowse/plugin-wiggle");
|
|
8
|
-
const SNPCoverageRenderer_1 = __importDefault(require("./SNPCoverageRenderer"));
|
|
9
|
-
const configSchema_1 = __importDefault(require("./configSchema"));
|
|
10
|
-
function register(pluginManager) {
|
|
11
|
-
pluginManager.addRendererType(() => new SNPCoverageRenderer_1.default({
|
|
12
|
-
name: 'SNPCoverageRenderer',
|
|
13
|
-
ReactComponent: plugin_wiggle_1.WiggleRendering,
|
|
14
|
-
configSchema: configSchema_1.default,
|
|
15
|
-
pluginManager,
|
|
16
|
-
}));
|
|
17
|
-
}
|
|
@@ -1,259 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.makeImage = makeImage;
|
|
4
|
-
const configuration_1 = require("@jbrowse/core/configuration");
|
|
5
|
-
const ui_1 = require("@jbrowse/core/ui");
|
|
6
|
-
const util_1 = require("@jbrowse/core/util");
|
|
7
|
-
const plugin_wiggle_1 = require("@jbrowse/plugin-wiggle");
|
|
8
|
-
const util_2 = require("../shared/util");
|
|
9
|
-
const INTERBASE_INDICATOR_WIDTH = 7;
|
|
10
|
-
const INTERBASE_INDICATOR_HEIGHT = 4.5;
|
|
11
|
-
const MINIMUM_INTERBASE_INDICATOR_READ_DEPTH = 7;
|
|
12
|
-
const complementBase = {
|
|
13
|
-
C: 'G',
|
|
14
|
-
G: 'C',
|
|
15
|
-
A: 'T',
|
|
16
|
-
T: 'A',
|
|
17
|
-
};
|
|
18
|
-
const fudgeFactor = 0.6;
|
|
19
|
-
async function makeImage(ctx, props) {
|
|
20
|
-
var _a;
|
|
21
|
-
const { features, regions, bpPerPx, colorBy, displayCrossHatches, visibleModifications = {}, scaleOpts, height: unadjustedHeight, theme: configTheme, config: cfg, ticks, stopToken, } = props;
|
|
22
|
-
const theme = (0, ui_1.createJBrowseTheme)(configTheme);
|
|
23
|
-
const region = regions[0];
|
|
24
|
-
const width = (region.end - region.start) / bpPerPx;
|
|
25
|
-
const offset = plugin_wiggle_1.YSCALEBAR_LABEL_OFFSET;
|
|
26
|
-
const height = unadjustedHeight - offset * 2;
|
|
27
|
-
const opts = { ...scaleOpts, range: [0, height] };
|
|
28
|
-
const viewScale = (0, plugin_wiggle_1.getScale)(opts);
|
|
29
|
-
const indicatorViewScale = (0, plugin_wiggle_1.getScale)({
|
|
30
|
-
...opts,
|
|
31
|
-
range: [0, height / 2],
|
|
32
|
-
scaleType: 'linear',
|
|
33
|
-
});
|
|
34
|
-
const originY = (0, plugin_wiggle_1.getOrigin)(scaleOpts.scaleType);
|
|
35
|
-
const originLinear = (0, plugin_wiggle_1.getOrigin)('linear');
|
|
36
|
-
const indicatorThreshold = (0, configuration_1.readConfObject)(cfg, 'indicatorThreshold');
|
|
37
|
-
const showInterbaseCounts = (0, configuration_1.readConfObject)(cfg, 'showInterbaseCounts');
|
|
38
|
-
const showArcs = (0, configuration_1.readConfObject)(cfg, 'showArcs');
|
|
39
|
-
const showInterbaseIndicators = (0, configuration_1.readConfObject)(cfg, 'showInterbaseIndicators');
|
|
40
|
-
const toY = (n) => height - (viewScale(n) || 0) + offset;
|
|
41
|
-
const toHeight = (n) => toY(originY) - toY(n);
|
|
42
|
-
const toY2 = (n) => height - (indicatorViewScale(n) || 0) + offset;
|
|
43
|
-
const toHeight2 = (n) => toY2(originLinear) - toY2(n);
|
|
44
|
-
const { bases, softclip, hardclip, insertion } = theme.palette;
|
|
45
|
-
const colorMap = {
|
|
46
|
-
A: bases.A.main,
|
|
47
|
-
C: bases.C.main,
|
|
48
|
-
G: bases.G.main,
|
|
49
|
-
T: bases.T.main,
|
|
50
|
-
insertion,
|
|
51
|
-
softclip,
|
|
52
|
-
hardclip,
|
|
53
|
-
total: (0, configuration_1.readConfObject)(cfg, 'color'),
|
|
54
|
-
mod_NONE: 'blue',
|
|
55
|
-
cpg_meth: 'red',
|
|
56
|
-
cpg_unmeth: 'blue',
|
|
57
|
-
};
|
|
58
|
-
ctx.fillStyle = colorMap.total;
|
|
59
|
-
(0, util_1.forEachWithStopTokenCheck)(features.values(), stopToken, feature => {
|
|
60
|
-
if (feature.get('type') === 'skip') {
|
|
61
|
-
return;
|
|
62
|
-
}
|
|
63
|
-
const [leftPx, rightPx] = (0, util_1.featureSpanPx)(feature, region, bpPerPx);
|
|
64
|
-
const w = rightPx - leftPx + fudgeFactor;
|
|
65
|
-
const score = feature.get('score');
|
|
66
|
-
ctx.fillRect(leftPx, toY(score), w, toHeight(score));
|
|
67
|
-
});
|
|
68
|
-
let prevTotal = 0;
|
|
69
|
-
const extraHorizontallyFlippedOffset = region.reversed ? 1 / bpPerPx : 0;
|
|
70
|
-
const drawingModifications = colorBy.type === 'modifications';
|
|
71
|
-
const drawingMethylation = colorBy.type === 'methylation';
|
|
72
|
-
const isolatedModification = (_a = colorBy.modifications) === null || _a === void 0 ? void 0 : _a.isolatedModification;
|
|
73
|
-
(0, util_1.forEachWithStopTokenCheck)(features.values(), stopToken, feature => {
|
|
74
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
75
|
-
if (feature.get('type') === 'skip') {
|
|
76
|
-
return;
|
|
77
|
-
}
|
|
78
|
-
const [leftPx, rightPx] = (0, util_1.featureSpanPx)(feature, region, bpPerPx);
|
|
79
|
-
const snpinfo = feature.get('snpinfo');
|
|
80
|
-
const w = Math.max(rightPx - leftPx, 1);
|
|
81
|
-
const score0 = feature.get('score');
|
|
82
|
-
if (drawingModifications) {
|
|
83
|
-
let curr = 0;
|
|
84
|
-
const refbase = (_a = snpinfo.refbase) === null || _a === void 0 ? void 0 : _a.toUpperCase();
|
|
85
|
-
const { nonmods, mods, snps, ref } = snpinfo;
|
|
86
|
-
for (const m of Object.keys(nonmods).sort().reverse()) {
|
|
87
|
-
const mod = visibleModifications[m.replace('nonmod_', '')] ||
|
|
88
|
-
visibleModifications[m.replace('mod_', '')];
|
|
89
|
-
if (!mod) {
|
|
90
|
-
console.warn(`${m} not known yet`);
|
|
91
|
-
continue;
|
|
92
|
-
}
|
|
93
|
-
if (isolatedModification && mod.type !== isolatedModification) {
|
|
94
|
-
continue;
|
|
95
|
-
}
|
|
96
|
-
const cmp = complementBase[mod.base];
|
|
97
|
-
const detectable = mod.base === 'N'
|
|
98
|
-
? score0
|
|
99
|
-
: (((_b = snps[mod.base]) === null || _b === void 0 ? void 0 : _b.entryDepth) || 0) +
|
|
100
|
-
(((_c = snps[cmp]) === null || _c === void 0 ? void 0 : _c.entryDepth) || 0) +
|
|
101
|
-
(refbase === mod.base ? ref['1'] : 0) +
|
|
102
|
-
(refbase === cmp ? ref['-1'] : 0);
|
|
103
|
-
const modifiable = mod.base === 'N'
|
|
104
|
-
? score0
|
|
105
|
-
: (((_d = snps[mod.base]) === null || _d === void 0 ? void 0 : _d.entryDepth) || 0) +
|
|
106
|
-
(((_e = snps[cmp]) === null || _e === void 0 ? void 0 : _e.entryDepth) || 0) +
|
|
107
|
-
(refbase === mod.base ? ref.entryDepth : 0) +
|
|
108
|
-
(refbase === cmp ? ref.entryDepth : 0);
|
|
109
|
-
const { entryDepth, avgProbability = 0 } = snpinfo.nonmods[m];
|
|
110
|
-
const modFraction = (modifiable / score0) * (entryDepth / detectable);
|
|
111
|
-
const nonModColor = 'blue';
|
|
112
|
-
const c = (0, util_2.alphaColor)(nonModColor, avgProbability);
|
|
113
|
-
const height = toHeight(score0);
|
|
114
|
-
const bottom = toY(score0) + height;
|
|
115
|
-
ctx.fillStyle = c;
|
|
116
|
-
ctx.fillRect(Math.round(leftPx), bottom - (curr + modFraction * height), w, modFraction * height);
|
|
117
|
-
curr += modFraction * height;
|
|
118
|
-
}
|
|
119
|
-
for (const m of Object.keys(mods).sort().reverse()) {
|
|
120
|
-
const mod = visibleModifications[m.replace('mod_', '')];
|
|
121
|
-
if (!mod) {
|
|
122
|
-
console.warn(`${m} not known yet`);
|
|
123
|
-
continue;
|
|
124
|
-
}
|
|
125
|
-
if (isolatedModification && mod.type !== isolatedModification) {
|
|
126
|
-
continue;
|
|
127
|
-
}
|
|
128
|
-
const cmp = complementBase[mod.base];
|
|
129
|
-
const detectable = mod.base === 'N'
|
|
130
|
-
? score0
|
|
131
|
-
: (((_f = snps[mod.base]) === null || _f === void 0 ? void 0 : _f.entryDepth) || 0) +
|
|
132
|
-
(((_g = snps[cmp]) === null || _g === void 0 ? void 0 : _g.entryDepth) || 0) +
|
|
133
|
-
(refbase === mod.base ? ref['1'] : 0) +
|
|
134
|
-
(refbase === cmp ? ref['-1'] : 0);
|
|
135
|
-
const modifiable = mod.base === 'N'
|
|
136
|
-
? score0
|
|
137
|
-
: (((_h = snps[mod.base]) === null || _h === void 0 ? void 0 : _h.entryDepth) || 0) +
|
|
138
|
-
(((_j = snps[cmp]) === null || _j === void 0 ? void 0 : _j.entryDepth) || 0) +
|
|
139
|
-
(refbase === mod.base ? ref.entryDepth : 0) +
|
|
140
|
-
(refbase === cmp ? ref.entryDepth : 0);
|
|
141
|
-
const { entryDepth, avgProbability = 0 } = mods[m];
|
|
142
|
-
const modFraction = (modifiable / score0) * (entryDepth / detectable);
|
|
143
|
-
const baseColor = mod.color || 'black';
|
|
144
|
-
const c = (0, util_2.alphaColor)(baseColor, avgProbability);
|
|
145
|
-
const height = toHeight(score0);
|
|
146
|
-
const bottom = toY(score0) + height;
|
|
147
|
-
ctx.fillStyle = c;
|
|
148
|
-
ctx.fillRect(Math.round(leftPx), bottom - (curr + modFraction * height), w, modFraction * height);
|
|
149
|
-
curr += modFraction * height;
|
|
150
|
-
}
|
|
151
|
-
}
|
|
152
|
-
else if (drawingMethylation) {
|
|
153
|
-
const { depth, nonmods, mods } = snpinfo;
|
|
154
|
-
let curr = 0;
|
|
155
|
-
for (const base of Object.keys(mods).sort().reverse()) {
|
|
156
|
-
const { entryDepth } = mods[base];
|
|
157
|
-
const height = toHeight(score0);
|
|
158
|
-
const bottom = toY(score0) + height;
|
|
159
|
-
ctx.fillStyle = colorMap[base] || 'black';
|
|
160
|
-
ctx.fillRect(Math.round(leftPx), bottom - ((entryDepth + curr) / depth) * height, w, (entryDepth / depth) * height);
|
|
161
|
-
curr += entryDepth;
|
|
162
|
-
}
|
|
163
|
-
for (const base of Object.keys(nonmods).sort().reverse()) {
|
|
164
|
-
const { entryDepth } = nonmods[base];
|
|
165
|
-
const height = toHeight(score0);
|
|
166
|
-
const bottom = toY(score0) + height;
|
|
167
|
-
ctx.fillStyle = colorMap[base] || 'black';
|
|
168
|
-
ctx.fillRect(Math.round(leftPx), bottom - ((entryDepth + curr) / depth) * height, w, (entryDepth / depth) * height);
|
|
169
|
-
curr += entryDepth;
|
|
170
|
-
}
|
|
171
|
-
}
|
|
172
|
-
else {
|
|
173
|
-
const { depth, snps } = snpinfo;
|
|
174
|
-
let curr = 0;
|
|
175
|
-
for (const base of Object.keys(snps).sort().reverse()) {
|
|
176
|
-
const { entryDepth } = snps[base];
|
|
177
|
-
const height = toHeight(score0);
|
|
178
|
-
const bottom = toY(score0) + height;
|
|
179
|
-
ctx.fillStyle = colorMap[base] || 'black';
|
|
180
|
-
ctx.fillRect(Math.round(leftPx), bottom - ((entryDepth + curr) / depth) * height, w, (entryDepth / depth) * height);
|
|
181
|
-
curr += entryDepth;
|
|
182
|
-
}
|
|
183
|
-
}
|
|
184
|
-
const interbaseEvents = Object.keys(snpinfo.noncov);
|
|
185
|
-
if (showInterbaseCounts) {
|
|
186
|
-
let curr = 0;
|
|
187
|
-
for (const base of interbaseEvents) {
|
|
188
|
-
const { entryDepth } = snpinfo.noncov[base];
|
|
189
|
-
const r = 0.6;
|
|
190
|
-
ctx.fillStyle = colorMap[base];
|
|
191
|
-
ctx.fillRect(leftPx - r + extraHorizontallyFlippedOffset, INTERBASE_INDICATOR_HEIGHT + toHeight2(curr), r * 2, toHeight2(entryDepth));
|
|
192
|
-
curr += entryDepth;
|
|
193
|
-
}
|
|
194
|
-
}
|
|
195
|
-
if (showInterbaseIndicators) {
|
|
196
|
-
let accum = 0;
|
|
197
|
-
let max = 0;
|
|
198
|
-
let maxBase = '';
|
|
199
|
-
for (const base of interbaseEvents) {
|
|
200
|
-
const { entryDepth } = snpinfo.noncov[base];
|
|
201
|
-
accum += entryDepth;
|
|
202
|
-
if (entryDepth > max) {
|
|
203
|
-
max = entryDepth;
|
|
204
|
-
maxBase = base;
|
|
205
|
-
}
|
|
206
|
-
}
|
|
207
|
-
const indicatorComparatorScore = Math.max(score0, prevTotal);
|
|
208
|
-
if (accum > indicatorComparatorScore * indicatorThreshold &&
|
|
209
|
-
indicatorComparatorScore > MINIMUM_INTERBASE_INDICATOR_READ_DEPTH) {
|
|
210
|
-
ctx.fillStyle = colorMap[maxBase];
|
|
211
|
-
ctx.beginPath();
|
|
212
|
-
const l = leftPx + extraHorizontallyFlippedOffset;
|
|
213
|
-
ctx.moveTo(l - INTERBASE_INDICATOR_WIDTH / 2, 0);
|
|
214
|
-
ctx.lineTo(l + INTERBASE_INDICATOR_WIDTH / 2, 0);
|
|
215
|
-
ctx.lineTo(l, INTERBASE_INDICATOR_HEIGHT);
|
|
216
|
-
ctx.fill();
|
|
217
|
-
}
|
|
218
|
-
}
|
|
219
|
-
prevTotal = score0;
|
|
220
|
-
});
|
|
221
|
-
if (showArcs) {
|
|
222
|
-
(0, util_1.forEachWithStopTokenCheck)(features.values(), stopToken, feature => {
|
|
223
|
-
if (feature.get('type') !== 'skip') {
|
|
224
|
-
return;
|
|
225
|
-
}
|
|
226
|
-
const s = feature.get('start');
|
|
227
|
-
const e = feature.get('end');
|
|
228
|
-
const [left, right] = (0, util_1.bpSpanPx)(s, e, region, bpPerPx);
|
|
229
|
-
ctx.beginPath();
|
|
230
|
-
const effectiveStrand = feature.get('effectiveStrand');
|
|
231
|
-
const pos = 'rgba(255,200,200,0.7)';
|
|
232
|
-
const neg = 'rgba(200,200,255,0.7)';
|
|
233
|
-
const neutral = 'rgba(200,200,200,0.7)';
|
|
234
|
-
if (effectiveStrand === 1) {
|
|
235
|
-
ctx.strokeStyle = pos;
|
|
236
|
-
}
|
|
237
|
-
else if (effectiveStrand === -1) {
|
|
238
|
-
ctx.strokeStyle = neg;
|
|
239
|
-
}
|
|
240
|
-
else {
|
|
241
|
-
ctx.strokeStyle = neutral;
|
|
242
|
-
}
|
|
243
|
-
ctx.lineWidth = Math.log(feature.get('score') + 1);
|
|
244
|
-
ctx.moveTo(left, height - offset * 2);
|
|
245
|
-
ctx.bezierCurveTo(left, 0, right, 0, right, height - offset * 2);
|
|
246
|
-
ctx.stroke();
|
|
247
|
-
});
|
|
248
|
-
}
|
|
249
|
-
if (displayCrossHatches) {
|
|
250
|
-
ctx.lineWidth = 1;
|
|
251
|
-
ctx.strokeStyle = 'rgba(140,140,140,0.8)';
|
|
252
|
-
for (const tick of ticks.values) {
|
|
253
|
-
ctx.beginPath();
|
|
254
|
-
ctx.moveTo(0, Math.round(toY(tick)));
|
|
255
|
-
ctx.lineTo(width, Math.round(toY(tick)));
|
|
256
|
-
ctx.stroke();
|
|
257
|
-
}
|
|
258
|
-
}
|
|
259
|
-
}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import type { ColorBy, ModificationTypeWithColor } from '../shared/types';
|
|
2
|
-
import type { RenderArgsDeserialized as FeatureRenderArgsDeserialized } from '@jbrowse/core/pluggableElementTypes/renderers/FeatureRendererType';
|
|
3
|
-
import type { Feature } from '@jbrowse/core/util';
|
|
4
|
-
import type { ScaleOpts } from '@jbrowse/plugin-wiggle';
|
|
5
|
-
export interface RenderArgsDeserialized extends FeatureRenderArgsDeserialized {
|
|
6
|
-
bpPerPx: number;
|
|
7
|
-
height: number;
|
|
8
|
-
highResolutionScaling: number;
|
|
9
|
-
scaleOpts: ScaleOpts;
|
|
10
|
-
}
|
|
11
|
-
export interface RenderArgsDeserializedWithFeatures extends RenderArgsDeserialized {
|
|
12
|
-
features: Map<string, Feature>;
|
|
13
|
-
ticks: {
|
|
14
|
-
values: number[];
|
|
15
|
-
};
|
|
16
|
-
displayCrossHatches: boolean;
|
|
17
|
-
visibleModifications?: Record<string, ModificationTypeWithColor>;
|
|
18
|
-
statusCallback?: (arg: string) => void;
|
|
19
|
-
colorBy: ColorBy;
|
|
20
|
-
}
|
package/dist/index.d.ts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import Plugin from '@jbrowse/core/Plugin';
|
|
2
|
-
import type PluginManager from '@jbrowse/core/PluginManager';
|
|
3
|
-
export default class AlignmentsPlugin extends Plugin {
|
|
4
|
-
name: string;
|
|
5
|
-
install(pluginManager: PluginManager): void;
|
|
6
|
-
}
|
|
7
|
-
export { SharedLinearPileupDisplayMixin, linearPileupDisplayConfigSchemaFactory, linearPileupDisplayStateModelFactory, } from './LinearPileupDisplay';
|
|
8
|
-
export { type LinearPileupDisplayModel } from './LinearPileupDisplay/model';
|
|
9
|
-
export * as MismatchParser from './MismatchParser';
|
package/dist/index.js
DELETED
|
@@ -1,89 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
-
var ownKeys = function(o) {
|
|
20
|
-
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
-
var ar = [];
|
|
22
|
-
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
-
return ar;
|
|
24
|
-
};
|
|
25
|
-
return ownKeys(o);
|
|
26
|
-
};
|
|
27
|
-
return function (mod) {
|
|
28
|
-
if (mod && mod.__esModule) return mod;
|
|
29
|
-
var result = {};
|
|
30
|
-
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
-
__setModuleDefault(result, mod);
|
|
32
|
-
return result;
|
|
33
|
-
};
|
|
34
|
-
})();
|
|
35
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
36
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
37
|
-
};
|
|
38
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.MismatchParser = exports.linearPileupDisplayStateModelFactory = exports.linearPileupDisplayConfigSchemaFactory = exports.SharedLinearPileupDisplayMixin = void 0;
|
|
40
|
-
const Plugin_1 = __importDefault(require("@jbrowse/core/Plugin"));
|
|
41
|
-
const AlignmentsFeatureDetail_1 = __importDefault(require("./AlignmentsFeatureDetail"));
|
|
42
|
-
const AlignmentsTrack_1 = __importDefault(require("./AlignmentsTrack"));
|
|
43
|
-
const BamAdapter_1 = __importDefault(require("./BamAdapter"));
|
|
44
|
-
const CramAdapter_1 = __importDefault(require("./CramAdapter"));
|
|
45
|
-
const GuessAlignmentsTypes_1 = __importDefault(require("./GuessAlignmentsTypes"));
|
|
46
|
-
const HtsgetBamAdapter_1 = __importDefault(require("./HtsgetBamAdapter"));
|
|
47
|
-
const LinearAlignmentsDisplay_1 = __importDefault(require("./LinearAlignmentsDisplay"));
|
|
48
|
-
const LinearPileupDisplay_1 = __importDefault(require("./LinearPileupDisplay"));
|
|
49
|
-
const LinearReadArcsDisplay_1 = __importDefault(require("./LinearReadArcsDisplay"));
|
|
50
|
-
const LinearReadCloudDisplay_1 = __importDefault(require("./LinearReadCloudDisplay"));
|
|
51
|
-
const LinearSNPCoverageDisplay_1 = __importDefault(require("./LinearSNPCoverageDisplay"));
|
|
52
|
-
const PileupRPC_1 = __importDefault(require("./PileupRPC"));
|
|
53
|
-
const PileupRenderer_1 = __importDefault(require("./PileupRenderer"));
|
|
54
|
-
const SNPCoverageAdapter_1 = __importDefault(require("./SNPCoverageAdapter"));
|
|
55
|
-
const SNPCoverageRenderer_1 = __importDefault(require("./SNPCoverageRenderer"));
|
|
56
|
-
class AlignmentsPlugin extends Plugin_1.default {
|
|
57
|
-
constructor() {
|
|
58
|
-
super(...arguments);
|
|
59
|
-
this.name = 'AlignmentsPlugin';
|
|
60
|
-
}
|
|
61
|
-
install(pluginManager) {
|
|
62
|
-
;
|
|
63
|
-
[
|
|
64
|
-
BamAdapter_1.default,
|
|
65
|
-
CramAdapter_1.default,
|
|
66
|
-
LinearPileupDisplay_1.default,
|
|
67
|
-
LinearSNPCoverageDisplay_1.default,
|
|
68
|
-
AlignmentsTrack_1.default,
|
|
69
|
-
SNPCoverageAdapter_1.default,
|
|
70
|
-
HtsgetBamAdapter_1.default,
|
|
71
|
-
PileupRenderer_1.default,
|
|
72
|
-
PileupRPC_1.default,
|
|
73
|
-
SNPCoverageRenderer_1.default,
|
|
74
|
-
LinearReadArcsDisplay_1.default,
|
|
75
|
-
LinearReadCloudDisplay_1.default,
|
|
76
|
-
LinearAlignmentsDisplay_1.default,
|
|
77
|
-
AlignmentsFeatureDetail_1.default,
|
|
78
|
-
GuessAlignmentsTypes_1.default,
|
|
79
|
-
].map(f => {
|
|
80
|
-
f(pluginManager);
|
|
81
|
-
});
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
exports.default = AlignmentsPlugin;
|
|
85
|
-
var LinearPileupDisplay_2 = require("./LinearPileupDisplay");
|
|
86
|
-
Object.defineProperty(exports, "SharedLinearPileupDisplayMixin", { enumerable: true, get: function () { return LinearPileupDisplay_2.SharedLinearPileupDisplayMixin; } });
|
|
87
|
-
Object.defineProperty(exports, "linearPileupDisplayConfigSchemaFactory", { enumerable: true, get: function () { return LinearPileupDisplay_2.linearPileupDisplayConfigSchemaFactory; } });
|
|
88
|
-
Object.defineProperty(exports, "linearPileupDisplayStateModelFactory", { enumerable: true, get: function () { return LinearPileupDisplay_2.linearPileupDisplayStateModelFactory; } });
|
|
89
|
-
exports.MismatchParser = __importStar(require("./MismatchParser"));
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.doAfterAttach = doAfterAttach;
|
|
4
|
-
const util_1 = require("@jbrowse/core/util");
|
|
5
|
-
const util_2 = require("../util");
|
|
6
|
-
const fetchChains_1 = require("./fetchChains");
|
|
7
|
-
function doAfterAttach(self, cb) {
|
|
8
|
-
(0, util_2.createAutorun)(self, async () => {
|
|
9
|
-
await (0, fetchChains_1.fetchChains)(self);
|
|
10
|
-
}, { delay: 1000 });
|
|
11
|
-
function draw(view) {
|
|
12
|
-
const canvas = self.ref;
|
|
13
|
-
if (!canvas) {
|
|
14
|
-
return;
|
|
15
|
-
}
|
|
16
|
-
const ctx = canvas.getContext('2d');
|
|
17
|
-
if (!ctx) {
|
|
18
|
-
return;
|
|
19
|
-
}
|
|
20
|
-
if (!self.chainData) {
|
|
21
|
-
return;
|
|
22
|
-
}
|
|
23
|
-
ctx.clearRect(0, 0, canvas.width, self.height * 2);
|
|
24
|
-
ctx.resetTransform();
|
|
25
|
-
ctx.scale(2, 2);
|
|
26
|
-
cb(self, ctx, canvas.width, self.height);
|
|
27
|
-
self.setLastDrawnOffsetPx(view.offsetPx);
|
|
28
|
-
self.setLastDrawnBpPerPx(view.bpPerPx);
|
|
29
|
-
}
|
|
30
|
-
(0, util_2.createAutorun)(self, async () => {
|
|
31
|
-
const view = (0, util_1.getContainingView)(self);
|
|
32
|
-
if (view.bpPerPx !== self.lastDrawnBpPerPx) {
|
|
33
|
-
draw(view);
|
|
34
|
-
}
|
|
35
|
-
});
|
|
36
|
-
(0, util_2.createAutorun)(self, async () => {
|
|
37
|
-
const view = (0, util_1.getContainingView)(self);
|
|
38
|
-
draw(view);
|
|
39
|
-
}, { delay: 1000 });
|
|
40
|
-
}
|
package/dist/shared/color.d.ts
DELETED
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
import type { ChainStats } from './fetchChains';
|
|
2
|
-
export declare const fillColor: {
|
|
3
|
-
color_fwd_strand_not_proper: string;
|
|
4
|
-
color_rev_strand_not_proper: string;
|
|
5
|
-
color_fwd_strand: string;
|
|
6
|
-
color_rev_strand: string;
|
|
7
|
-
color_fwd_missing_mate: string;
|
|
8
|
-
color_rev_missing_mate: string;
|
|
9
|
-
color_fwd_diff_chr: string;
|
|
10
|
-
color_rev_diff_chr: string;
|
|
11
|
-
color_pair_lr: string;
|
|
12
|
-
color_pair_rr: string;
|
|
13
|
-
color_pair_rl: string;
|
|
14
|
-
color_pair_ll: string;
|
|
15
|
-
color_nostrand: string;
|
|
16
|
-
color_interchrom: string;
|
|
17
|
-
color_longinsert: string;
|
|
18
|
-
color_shortinsert: string;
|
|
19
|
-
color_unknown: string;
|
|
20
|
-
};
|
|
21
|
-
export declare const strokeColor: {
|
|
22
|
-
color_fwd_strand_not_proper: string;
|
|
23
|
-
color_rev_strand_not_proper: string;
|
|
24
|
-
color_fwd_strand: string;
|
|
25
|
-
color_rev_strand: string;
|
|
26
|
-
color_fwd_missing_mate: string;
|
|
27
|
-
color_rev_missing_mate: string;
|
|
28
|
-
color_fwd_diff_chr: string;
|
|
29
|
-
color_rev_diff_chr: string;
|
|
30
|
-
color_pair_lr: string;
|
|
31
|
-
color_pair_rr: string;
|
|
32
|
-
color_pair_rl: string;
|
|
33
|
-
color_pair_ll: string;
|
|
34
|
-
color_nostrand: string;
|
|
35
|
-
color_interchrom: string;
|
|
36
|
-
color_longinsert: string;
|
|
37
|
-
color_shortinsert: string;
|
|
38
|
-
color_unknown: string;
|
|
39
|
-
};
|
|
40
|
-
export declare function getPairedInsertSizeColor(f1: {
|
|
41
|
-
refName: string;
|
|
42
|
-
tlen?: number;
|
|
43
|
-
}, f2: {
|
|
44
|
-
refName: string;
|
|
45
|
-
}, 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
|
-
export declare function getPairedOrientationColorOrDefault(f: {
|
|
54
|
-
pair_orientation?: string;
|
|
55
|
-
}): readonly [string, string] | undefined;
|
|
56
|
-
export declare function getPairedOrientationColor(f: {
|
|
57
|
-
pair_orientation?: string;
|
|
58
|
-
}): readonly [string, string];
|
package/dist/shared/color.js
DELETED
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.strokeColor = exports.fillColor = void 0;
|
|
4
|
-
exports.getPairedInsertSizeColor = getPairedInsertSizeColor;
|
|
5
|
-
exports.getPairedInsertSizeAndOrientationColor = getPairedInsertSizeAndOrientationColor;
|
|
6
|
-
exports.getPairedOrientationColorOrDefault = getPairedOrientationColorOrDefault;
|
|
7
|
-
exports.getPairedOrientationColor = getPairedOrientationColor;
|
|
8
|
-
const util_1 = require("../util");
|
|
9
|
-
exports.fillColor = {
|
|
10
|
-
color_fwd_strand_not_proper: '#ECC8C8',
|
|
11
|
-
color_rev_strand_not_proper: '#BEBED8',
|
|
12
|
-
color_fwd_strand: '#EC8B8B',
|
|
13
|
-
color_rev_strand: '#8F8FD8',
|
|
14
|
-
color_fwd_missing_mate: '#D11919',
|
|
15
|
-
color_rev_missing_mate: '#1919D1',
|
|
16
|
-
color_fwd_diff_chr: '#000',
|
|
17
|
-
color_rev_diff_chr: '#969696',
|
|
18
|
-
color_pair_lr: '#c8c8c8',
|
|
19
|
-
color_pair_rr: 'navy',
|
|
20
|
-
color_pair_rl: 'teal',
|
|
21
|
-
color_pair_ll: 'green',
|
|
22
|
-
color_nostrand: '#c8c8c8',
|
|
23
|
-
color_interchrom: 'purple',
|
|
24
|
-
color_longinsert: 'red',
|
|
25
|
-
color_shortinsert: 'pink',
|
|
26
|
-
color_unknown: 'grey',
|
|
27
|
-
};
|
|
28
|
-
exports.strokeColor = {
|
|
29
|
-
color_fwd_strand_not_proper: '#CA6767',
|
|
30
|
-
color_rev_strand_not_proper: '#7272AA',
|
|
31
|
-
color_fwd_strand: '#DC2A2A',
|
|
32
|
-
color_rev_strand: '#4141BA',
|
|
33
|
-
color_fwd_missing_mate: '#921111',
|
|
34
|
-
color_rev_missing_mate: '#111192',
|
|
35
|
-
color_fwd_diff_chr: '#000000',
|
|
36
|
-
color_rev_diff_chr: '#696969',
|
|
37
|
-
color_pair_lr: '#8C8C8C',
|
|
38
|
-
color_pair_rr: '#00005A',
|
|
39
|
-
color_pair_rl: '#005A5A',
|
|
40
|
-
color_pair_ll: '#005A00',
|
|
41
|
-
color_nostrand: '#8C8C8C',
|
|
42
|
-
color_interchrom: '#5A005A',
|
|
43
|
-
color_longinsert: '#B30000',
|
|
44
|
-
color_shortinsert: '#FF3A5C',
|
|
45
|
-
color_unknown: 'grey',
|
|
46
|
-
};
|
|
47
|
-
function getPairedInsertSizeColor(f1, f2, stats) {
|
|
48
|
-
const sameRef = f1.refName === f2.refName;
|
|
49
|
-
const tlen = Math.abs(f1.tlen || 0);
|
|
50
|
-
if (sameRef && tlen > ((stats === null || stats === void 0 ? void 0 : stats.upper) || 0)) {
|
|
51
|
-
return [exports.fillColor.color_longinsert, exports.strokeColor.color_longinsert];
|
|
52
|
-
}
|
|
53
|
-
else if (sameRef && tlen < ((stats === null || stats === void 0 ? void 0 : stats.lower) || 0)) {
|
|
54
|
-
return [exports.fillColor.color_shortinsert, exports.strokeColor.color_shortinsert];
|
|
55
|
-
}
|
|
56
|
-
else if (!sameRef) {
|
|
57
|
-
return [exports.fillColor.color_interchrom, exports.strokeColor.color_interchrom];
|
|
58
|
-
}
|
|
59
|
-
else {
|
|
60
|
-
return undefined;
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
const defaultColor = [exports.fillColor.color_unknown, exports.fillColor.color_unknown];
|
|
64
|
-
function getPairedInsertSizeAndOrientationColor(f1, f2, stats) {
|
|
65
|
-
return (getPairedOrientationColorOrDefault(f1) ||
|
|
66
|
-
getPairedInsertSizeColor(f1, f2, stats) ||
|
|
67
|
-
defaultColor);
|
|
68
|
-
}
|
|
69
|
-
function getPairedOrientationColorOrDefault(f) {
|
|
70
|
-
const type = util_1.orientationTypes.fr;
|
|
71
|
-
const r = type[f.pair_orientation || ''];
|
|
72
|
-
const type2 = util_1.pairMap[r];
|
|
73
|
-
return r === 'LR'
|
|
74
|
-
? undefined
|
|
75
|
-
: [exports.fillColor[type2], exports.strokeColor[type2]];
|
|
76
|
-
}
|
|
77
|
-
function getPairedOrientationColor(f) {
|
|
78
|
-
return getPairedOrientationColorOrDefault(f) || defaultColor;
|
|
79
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import type { LinearReadArcsDisplayModel } from '../../LinearReadArcsDisplay/model';
|
|
2
|
-
import type { LinearReadCloudDisplayModel } from '../../LinearReadCloudDisplay/model';
|
|
3
|
-
declare const BaseDisplayComponent: ({ model, children, }: {
|
|
4
|
-
model: LinearReadArcsDisplayModel | LinearReadCloudDisplayModel;
|
|
5
|
-
children?: React.ReactNode;
|
|
6
|
-
}) => import("react/jsx-runtime").JSX.Element | null;
|
|
7
|
-
export default BaseDisplayComponent;
|