@jbrowse/plugin-alignments 2.17.0 → 2.18.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/dist/AlignmentsFeatureDetail/AlignmentsFeatureDetail.d.ts +1 -1
- package/dist/AlignmentsFeatureDetail/AlignmentsFeatureDetail.js +6 -12
- package/dist/AlignmentsFeatureDetail/BreakendMultiLevelOptionDialog.js +0 -1
- package/dist/AlignmentsFeatureDetail/BreakendSingleLevelOptionDialog.js +0 -1
- package/dist/AlignmentsFeatureDetail/Flags.js +2 -2
- package/dist/AlignmentsFeatureDetail/Formatter.js +0 -3
- package/dist/AlignmentsFeatureDetail/LaunchPairedEndBreakpointSplitViewPanel.d.ts +3 -5
- package/dist/AlignmentsFeatureDetail/LaunchPairedEndBreakpointSplitViewPanel.js +4 -9
- package/dist/AlignmentsFeatureDetail/LaunchSupplementaryAlignmentBreakpointSplitViewPanel.d.ts +3 -5
- package/dist/AlignmentsFeatureDetail/LaunchSupplementaryAlignmentBreakpointSplitViewPanel.js +37 -36
- package/dist/AlignmentsFeatureDetail/LinkedPairedAlignments.d.ts +2 -2
- package/dist/AlignmentsFeatureDetail/LinkedPairedAlignments.js +3 -4
- package/dist/AlignmentsFeatureDetail/PairLink.d.ts +1 -1
- package/dist/AlignmentsFeatureDetail/PairLink.js +0 -1
- package/dist/AlignmentsFeatureDetail/SupplementaryAlignments.d.ts +2 -2
- package/dist/AlignmentsFeatureDetail/SupplementaryAlignments.js +5 -6
- package/dist/AlignmentsFeatureDetail/SupplementaryAlignmentsLocStrings.d.ts +1 -1
- package/dist/AlignmentsFeatureDetail/SupplementaryAlignmentsLocStrings.js +1 -5
- package/dist/AlignmentsFeatureDetail/getSAFeatures.d.ts +2 -2
- package/dist/AlignmentsFeatureDetail/getSAFeatures.js +0 -4
- package/dist/AlignmentsFeatureDetail/index.d.ts +1 -1
- package/dist/AlignmentsFeatureDetail/launchBreakpointSplitView.d.ts +2 -2
- package/dist/AlignmentsFeatureDetail/stateModelFactory.d.ts +2 -2
- package/dist/AlignmentsFeatureDetail/stateModelFactory.js +1 -1
- package/dist/AlignmentsFeatureDetail/tagInfo.js +1 -1
- package/dist/AlignmentsFeatureDetail/util.d.ts +1 -1
- package/dist/AlignmentsTrack/configSchemaF.d.ts +1 -1
- package/dist/AlignmentsTrack/configSchemaF.js +1 -8
- package/dist/AlignmentsTrack/index.d.ts +1 -1
- package/dist/AlignmentsTrack/index.js +0 -3
- package/dist/BamAdapter/BamAdapter.d.ts +6 -5
- package/dist/BamAdapter/BamAdapter.js +21 -39
- package/dist/BamAdapter/BamSlightlyLazyFeature.d.ts +3 -3
- package/dist/BamAdapter/BamSlightlyLazyFeature.js +0 -3
- package/dist/BamAdapter/configSchema.d.ts +0 -17
- package/dist/BamAdapter/configSchema.js +1 -22
- package/dist/BamAdapter/index.d.ts +1 -1
- package/dist/CramAdapter/CramAdapter.d.ts +6 -9
- package/dist/CramAdapter/CramAdapter.js +18 -41
- package/dist/CramAdapter/CramSlightlyLazyFeature.d.ts +3 -3
- package/dist/CramAdapter/CramSlightlyLazyFeature.js +0 -17
- package/dist/CramAdapter/CramTestAdapters.d.ts +3 -3
- package/dist/CramAdapter/CramTestAdapters.js +4 -5
- package/dist/CramAdapter/configSchema.d.ts +0 -14
- package/dist/CramAdapter/configSchema.js +1 -19
- package/dist/CramAdapter/index.d.ts +1 -1
- package/dist/CramAdapter/index.js +0 -1
- package/dist/CramAdapter/util.d.ts +2 -2
- package/dist/CramAdapter/util.js +1 -24
- package/dist/GuessAlignmentsTypes/index.d.ts +1 -1
- package/dist/HtsgetBamAdapter/HtsgetBamAdapter.d.ts +2 -2
- package/dist/HtsgetBamAdapter/configSchema.d.ts +0 -9
- package/dist/HtsgetBamAdapter/configSchema.js +1 -14
- package/dist/HtsgetBamAdapter/index.d.ts +1 -1
- package/dist/HtsgetBamAdapter/index.js +1 -1
- package/dist/LinearAlignmentsDisplay/alignmentsModel.d.ts +2 -5
- package/dist/LinearAlignmentsDisplay/alignmentsModel.js +1 -31
- package/dist/LinearAlignmentsDisplay/components/AlignmentsDisplay.d.ts +1 -1
- package/dist/LinearAlignmentsDisplay/components/AlignmentsDisplay.js +2 -2
- package/dist/LinearAlignmentsDisplay/configSchema.d.ts +2 -16
- package/dist/LinearAlignmentsDisplay/configSchema.js +3 -20
- package/dist/LinearAlignmentsDisplay/index.d.ts +1 -1
- package/dist/LinearAlignmentsDisplay/index.js +1 -2
- package/dist/LinearAlignmentsDisplay/model.d.ts +6 -75
- package/dist/LinearAlignmentsDisplay/model.js +5 -78
- package/dist/LinearAlignmentsDisplay/util.d.ts +1 -1
- package/dist/LinearPileupDisplay/SharedLinearPileupDisplayMixin.d.ts +31 -157
- package/dist/LinearPileupDisplay/SharedLinearPileupDisplayMixin.js +34 -133
- package/dist/LinearPileupDisplay/components/ColorByTagDialog.js +2 -2
- package/dist/LinearPileupDisplay/components/GroupByDialog.d.ts +2 -2
- package/dist/LinearPileupDisplay/components/GroupByDialog.js +109 -56
- package/dist/LinearPileupDisplay/components/LinearPileupDisplayBlurb.d.ts +2 -6
- package/dist/LinearPileupDisplay/components/LinearPileupDisplayBlurb.js +1 -1
- package/dist/LinearPileupDisplay/components/SetFeatureHeightDialog.js +2 -2
- package/dist/LinearPileupDisplay/components/SetMaxHeightDialog.js +2 -2
- package/dist/LinearPileupDisplay/components/SortByTagDialog.js +2 -2
- package/dist/LinearPileupDisplay/configSchema.d.ts +13 -16
- package/dist/LinearPileupDisplay/configSchema.js +12 -30
- package/dist/LinearPileupDisplay/index.d.ts +1 -1
- package/dist/LinearPileupDisplay/index.js +2 -2
- package/dist/LinearPileupDisplay/model.d.ts +103 -105
- package/dist/LinearPileupDisplay/model.js +10 -101
- package/dist/LinearReadArcsDisplay/components/ReactComponent.d.ts +1 -1
- package/dist/LinearReadArcsDisplay/components/ReactComponent.js +2 -6
- package/dist/LinearReadArcsDisplay/configSchema.d.ts +12 -20
- package/dist/LinearReadArcsDisplay/configSchema.js +8 -31
- package/dist/LinearReadArcsDisplay/drawFeats.d.ts +1 -1
- package/dist/LinearReadArcsDisplay/drawFeats.js +1 -9
- package/dist/LinearReadArcsDisplay/index.d.ts +1 -1
- package/dist/LinearReadArcsDisplay/index.js +1 -2
- package/dist/LinearReadArcsDisplay/model.d.ts +15 -93
- package/dist/LinearReadArcsDisplay/model.js +17 -104
- package/dist/LinearReadArcsDisplay/util.d.ts +1 -1
- package/dist/LinearReadCloudDisplay/components/ReactComponent.d.ts +1 -1
- package/dist/LinearReadCloudDisplay/components/ReactComponent.js +2 -6
- package/dist/LinearReadCloudDisplay/configSchema.d.ts +5 -17
- package/dist/LinearReadCloudDisplay/configSchema.js +3 -28
- package/dist/LinearReadCloudDisplay/drawFeats.d.ts +1 -1
- package/dist/LinearReadCloudDisplay/drawFeats.js +2 -2
- package/dist/LinearReadCloudDisplay/drawLongReadChains.d.ts +4 -4
- package/dist/LinearReadCloudDisplay/drawLongReadChains.js +1 -4
- package/dist/LinearReadCloudDisplay/drawPairChains.d.ts +4 -4
- package/dist/LinearReadCloudDisplay/drawPairChains.js +0 -3
- package/dist/LinearReadCloudDisplay/index.d.ts +1 -1
- package/dist/LinearReadCloudDisplay/index.js +1 -2
- package/dist/LinearReadCloudDisplay/model.d.ts +13 -55
- package/dist/LinearReadCloudDisplay/model.js +17 -68
- package/dist/LinearReadCloudDisplay/util.js +0 -1
- package/dist/LinearSNPCoverageDisplay/components/Tooltip.d.ts +1 -1
- package/dist/LinearSNPCoverageDisplay/components/Tooltip.js +1 -1
- package/dist/LinearSNPCoverageDisplay/configSchema.d.ts +17 -22
- package/dist/LinearSNPCoverageDisplay/configSchema.js +16 -32
- package/dist/LinearSNPCoverageDisplay/index.d.ts +1 -1
- package/dist/LinearSNPCoverageDisplay/index.js +1 -2
- package/dist/LinearSNPCoverageDisplay/model.d.ts +9 -50
- package/dist/LinearSNPCoverageDisplay/model.js +20 -124
- package/dist/MismatchParser/cigarToMismatches.d.ts +1 -1
- package/dist/MismatchParser/cigarToMismatches.js +4 -7
- package/dist/MismatchParser/getNextRefPos.js +0 -2
- package/dist/MismatchParser/index.d.ts +2 -2
- package/dist/MismatchParser/index.js +1 -9
- package/dist/MismatchParser/mdToMismatches.d.ts +2 -2
- package/dist/MismatchParser/mdToMismatches.js +0 -6
- package/dist/ModificationParser/index.d.ts +1 -1
- package/dist/ModificationParser/index.js +1 -18
- package/dist/PileupRPC/base.d.ts +2 -2
- package/dist/PileupRPC/base.js +0 -1
- package/dist/PileupRPC/index.d.ts +1 -1
- package/dist/PileupRPC/methods/GetGlobalValueForTag.d.ts +2 -3
- package/dist/PileupRPC/methods/GetGlobalValueForTag.js +1 -2
- package/dist/PileupRPC/methods/GetReducedFeatures.d.ts +2 -3
- package/dist/PileupRPC/methods/GetReducedFeatures.js +3 -5
- package/dist/PileupRPC/methods/GetVisibleModifications.d.ts +3 -4
- package/dist/PileupRPC/methods/GetVisibleModifications.js +1 -1
- package/dist/PileupRPC/util.d.ts +1 -1
- package/dist/PileupRenderer/PileupLayoutSession.d.ts +5 -5
- package/dist/PileupRenderer/PileupLayoutSession.js +2 -5
- package/dist/PileupRenderer/PileupRenderer.d.ts +10 -20
- package/dist/PileupRenderer/PileupRenderer.js +11 -16
- package/dist/PileupRenderer/colorBy.d.ts +2 -2
- package/dist/PileupRenderer/colorBy.js +0 -6
- package/dist/PileupRenderer/components/PileupRendering.d.ts +1 -1
- package/dist/PileupRenderer/components/PileupRendering.js +0 -3
- package/dist/PileupRenderer/configSchema.d.ts +0 -31
- package/dist/PileupRenderer/configSchema.js +1 -35
- package/dist/PileupRenderer/getAlignmentShapeColor.d.ts +2 -2
- package/dist/PileupRenderer/getAlignmentShapeColor.js +1 -6
- package/dist/PileupRenderer/index.d.ts +1 -1
- package/dist/PileupRenderer/index.js +1 -1
- package/dist/PileupRenderer/layoutFeature.d.ts +2 -2
- package/dist/PileupRenderer/layoutFeature.js +0 -1
- package/dist/PileupRenderer/layoutFeatures.d.ts +5 -2
- package/dist/PileupRenderer/layoutFeatures.js +6 -4
- package/dist/PileupRenderer/makeImageData.d.ts +3 -4
- package/dist/PileupRenderer/makeImageData.js +8 -2
- package/dist/PileupRenderer/renderAlignment.d.ts +3 -3
- package/dist/PileupRenderer/renderAlignment.js +3 -5
- package/dist/PileupRenderer/renderAlignmentShape.d.ts +3 -3
- package/dist/PileupRenderer/renderAlignmentShape.js +1 -1
- package/dist/PileupRenderer/renderMethylation.d.ts +4 -4
- package/dist/PileupRenderer/renderMethylation.js +0 -4
- package/dist/PileupRenderer/renderMismatches.d.ts +3 -3
- package/dist/PileupRenderer/renderMismatches.js +1 -12
- package/dist/PileupRenderer/renderModifications.d.ts +3 -3
- package/dist/PileupRenderer/renderModifications.js +1 -3
- package/dist/PileupRenderer/renderPerBaseLettering.d.ts +2 -2
- package/dist/PileupRenderer/renderPerBaseLettering.js +0 -1
- package/dist/PileupRenderer/renderPerBaseQuality.d.ts +2 -2
- package/dist/PileupRenderer/renderPerBaseQuality.js +2 -2
- package/dist/PileupRenderer/renderSoftClipping.d.ts +5 -5
- package/dist/PileupRenderer/renderSoftClipping.js +0 -4
- package/dist/PileupRenderer/sortUtil.d.ts +2 -2
- package/dist/PileupRenderer/sortUtil.js +1 -4
- package/dist/PileupRenderer/types.d.ts +26 -0
- package/dist/PileupRenderer/types.js +2 -0
- package/dist/PileupRenderer/util.d.ts +2 -2
- package/dist/PileupRenderer/util.js +1 -3
- package/dist/SNPCoverageAdapter/SNPCoverageAdapter.d.ts +4 -3
- package/dist/SNPCoverageAdapter/SNPCoverageAdapter.js +4 -6
- package/dist/SNPCoverageAdapter/configSchema.d.ts +0 -4
- package/dist/SNPCoverageAdapter/configSchema.js +1 -8
- package/dist/SNPCoverageAdapter/generateCoverageBins.d.ts +4 -8
- package/dist/SNPCoverageAdapter/generateCoverageBins.js +25 -247
- package/dist/SNPCoverageAdapter/index.d.ts +1 -1
- package/dist/SNPCoverageAdapter/processDepth.d.ts +8 -0
- package/dist/SNPCoverageAdapter/processDepth.js +38 -0
- package/dist/SNPCoverageAdapter/processMismatches.d.ts +9 -0
- package/dist/SNPCoverageAdapter/processMismatches.js +58 -0
- package/dist/SNPCoverageAdapter/processModifications.d.ts +10 -0
- package/dist/SNPCoverageAdapter/processModifications.js +49 -0
- package/dist/SNPCoverageAdapter/processReferenceCpGs.d.ts +9 -0
- package/dist/SNPCoverageAdapter/processReferenceCpGs.js +63 -0
- package/dist/SNPCoverageAdapter/util.d.ts +10 -0
- package/dist/SNPCoverageAdapter/util.js +41 -0
- package/dist/SNPCoverageRenderer/SNPCoverageRenderer.d.ts +5 -4
- package/dist/SNPCoverageRenderer/SNPCoverageRenderer.js +14 -38
- package/dist/SNPCoverageRenderer/configSchema.d.ts +0 -15
- package/dist/SNPCoverageRenderer/configSchema.js +1 -19
- package/dist/SNPCoverageRenderer/index.d.ts +1 -1
- package/dist/SNPCoverageRenderer/index.js +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +12 -12
- package/dist/shared/afterAttach.d.ts +1 -1
- package/dist/shared/afterAttach.js +0 -2
- package/dist/shared/color.d.ts +1 -1
- package/dist/shared/color.js +0 -8
- package/dist/shared/components/BaseDisplayComponent.d.ts +2 -2
- package/dist/shared/components/BaseDisplayComponent.js +12 -11
- package/dist/shared/components/FilterByTagDialog.d.ts +1 -1
- package/dist/shared/components/FilterByTagDialog.js +2 -2
- package/dist/shared/fetchChains.d.ts +2 -2
- package/dist/shared/fetchChains.js +1 -2
- package/dist/shared/getMaximumModificationAtEachPosition.d.ts +1 -1
- package/dist/shared/getMaximumModificationAtEachPosition.js +1 -2
- package/dist/shared/getUniqueModifications.d.ts +5 -5
- package/dist/shared/getUniqueTags.d.ts +4 -4
- package/dist/shared/renderSvgUtil.js +0 -2
- package/dist/shared/util.d.ts +11 -1
- package/dist/shared/util.js +27 -1
- package/dist/util.d.ts +4 -4
- package/dist/util.js +3 -9
- package/esm/AlignmentsFeatureDetail/AlignmentsFeatureDetail.d.ts +1 -1
- package/esm/AlignmentsFeatureDetail/AlignmentsFeatureDetail.js +6 -12
- package/esm/AlignmentsFeatureDetail/BreakendMultiLevelOptionDialog.js +0 -1
- package/esm/AlignmentsFeatureDetail/BreakendSingleLevelOptionDialog.js +0 -1
- package/esm/AlignmentsFeatureDetail/Flags.js +2 -2
- package/esm/AlignmentsFeatureDetail/Formatter.js +0 -3
- package/esm/AlignmentsFeatureDetail/LaunchPairedEndBreakpointSplitViewPanel.d.ts +3 -5
- package/esm/AlignmentsFeatureDetail/LaunchPairedEndBreakpointSplitViewPanel.js +5 -10
- package/esm/AlignmentsFeatureDetail/LaunchSupplementaryAlignmentBreakpointSplitViewPanel.d.ts +3 -5
- package/esm/AlignmentsFeatureDetail/LaunchSupplementaryAlignmentBreakpointSplitViewPanel.js +37 -36
- package/esm/AlignmentsFeatureDetail/LinkedPairedAlignments.d.ts +2 -2
- package/esm/AlignmentsFeatureDetail/LinkedPairedAlignments.js +3 -4
- package/esm/AlignmentsFeatureDetail/PairLink.d.ts +1 -1
- package/esm/AlignmentsFeatureDetail/PairLink.js +0 -1
- package/esm/AlignmentsFeatureDetail/SupplementaryAlignments.d.ts +2 -2
- package/esm/AlignmentsFeatureDetail/SupplementaryAlignments.js +5 -6
- package/esm/AlignmentsFeatureDetail/SupplementaryAlignmentsLocStrings.d.ts +1 -1
- package/esm/AlignmentsFeatureDetail/SupplementaryAlignmentsLocStrings.js +2 -6
- package/esm/AlignmentsFeatureDetail/getSAFeatures.d.ts +2 -2
- package/esm/AlignmentsFeatureDetail/getSAFeatures.js +0 -4
- package/esm/AlignmentsFeatureDetail/index.d.ts +1 -1
- package/esm/AlignmentsFeatureDetail/launchBreakpointSplitView.d.ts +2 -2
- package/esm/AlignmentsFeatureDetail/stateModelFactory.d.ts +2 -2
- package/esm/AlignmentsFeatureDetail/stateModelFactory.js +1 -1
- package/esm/AlignmentsFeatureDetail/tagInfo.js +1 -1
- package/esm/AlignmentsFeatureDetail/util.d.ts +1 -1
- package/esm/AlignmentsTrack/configSchemaF.d.ts +1 -1
- package/esm/AlignmentsTrack/configSchemaF.js +1 -8
- package/esm/AlignmentsTrack/index.d.ts +1 -1
- package/esm/AlignmentsTrack/index.js +0 -3
- package/esm/BamAdapter/BamAdapter.d.ts +6 -5
- package/esm/BamAdapter/BamAdapter.js +19 -37
- package/esm/BamAdapter/BamSlightlyLazyFeature.d.ts +3 -3
- package/esm/BamAdapter/BamSlightlyLazyFeature.js +0 -3
- package/esm/BamAdapter/configSchema.d.ts +0 -17
- package/esm/BamAdapter/configSchema.js +1 -22
- package/esm/BamAdapter/index.d.ts +1 -1
- package/esm/CramAdapter/CramAdapter.d.ts +6 -9
- package/esm/CramAdapter/CramAdapter.js +17 -40
- package/esm/CramAdapter/CramSlightlyLazyFeature.d.ts +3 -3
- package/esm/CramAdapter/CramSlightlyLazyFeature.js +0 -17
- package/esm/CramAdapter/CramTestAdapters.d.ts +3 -3
- package/esm/CramAdapter/CramTestAdapters.js +4 -5
- package/esm/CramAdapter/configSchema.d.ts +0 -14
- package/esm/CramAdapter/configSchema.js +1 -19
- package/esm/CramAdapter/index.d.ts +1 -1
- package/esm/CramAdapter/index.js +0 -1
- package/esm/CramAdapter/util.d.ts +2 -2
- package/esm/CramAdapter/util.js +1 -24
- package/esm/GuessAlignmentsTypes/index.d.ts +1 -1
- package/esm/GuessAlignmentsTypes/index.js +1 -1
- package/esm/HtsgetBamAdapter/HtsgetBamAdapter.d.ts +2 -2
- package/esm/HtsgetBamAdapter/configSchema.d.ts +0 -9
- package/esm/HtsgetBamAdapter/configSchema.js +1 -14
- package/esm/HtsgetBamAdapter/index.d.ts +1 -1
- package/esm/HtsgetBamAdapter/index.js +1 -1
- package/esm/LinearAlignmentsDisplay/alignmentsModel.d.ts +2 -5
- package/esm/LinearAlignmentsDisplay/alignmentsModel.js +1 -31
- package/esm/LinearAlignmentsDisplay/components/AlignmentsDisplay.d.ts +1 -1
- package/esm/LinearAlignmentsDisplay/components/AlignmentsDisplay.js +2 -2
- package/esm/LinearAlignmentsDisplay/configSchema.d.ts +2 -16
- package/esm/LinearAlignmentsDisplay/configSchema.js +3 -20
- package/esm/LinearAlignmentsDisplay/index.d.ts +1 -1
- package/esm/LinearAlignmentsDisplay/index.js +1 -2
- package/esm/LinearAlignmentsDisplay/model.d.ts +6 -75
- package/esm/LinearAlignmentsDisplay/model.js +6 -79
- package/esm/LinearAlignmentsDisplay/util.d.ts +1 -1
- package/esm/LinearPileupDisplay/SharedLinearPileupDisplayMixin.d.ts +31 -157
- package/esm/LinearPileupDisplay/SharedLinearPileupDisplayMixin.js +36 -135
- package/esm/LinearPileupDisplay/components/ColorByTagDialog.js +2 -2
- package/esm/LinearPileupDisplay/components/GroupByDialog.d.ts +2 -2
- package/esm/LinearPileupDisplay/components/GroupByDialog.js +109 -56
- package/esm/LinearPileupDisplay/components/LinearPileupDisplayBlurb.d.ts +2 -6
- package/esm/LinearPileupDisplay/components/LinearPileupDisplayBlurb.js +1 -1
- package/esm/LinearPileupDisplay/components/SetFeatureHeightDialog.js +2 -2
- package/esm/LinearPileupDisplay/components/SetMaxHeightDialog.js +2 -2
- package/esm/LinearPileupDisplay/components/SortByTagDialog.js +2 -2
- package/esm/LinearPileupDisplay/configSchema.d.ts +13 -16
- package/esm/LinearPileupDisplay/configSchema.js +12 -30
- package/esm/LinearPileupDisplay/index.d.ts +1 -1
- package/esm/LinearPileupDisplay/index.js +2 -2
- package/esm/LinearPileupDisplay/model.d.ts +103 -105
- package/esm/LinearPileupDisplay/model.js +11 -102
- package/esm/LinearReadArcsDisplay/components/ReactComponent.d.ts +1 -1
- package/esm/LinearReadArcsDisplay/components/ReactComponent.js +2 -6
- package/esm/LinearReadArcsDisplay/configSchema.d.ts +12 -20
- package/esm/LinearReadArcsDisplay/configSchema.js +8 -31
- package/esm/LinearReadArcsDisplay/drawFeats.d.ts +1 -1
- package/esm/LinearReadArcsDisplay/drawFeats.js +1 -9
- package/esm/LinearReadArcsDisplay/index.d.ts +1 -1
- package/esm/LinearReadArcsDisplay/index.js +1 -2
- package/esm/LinearReadArcsDisplay/model.d.ts +15 -93
- package/esm/LinearReadArcsDisplay/model.js +18 -105
- package/esm/LinearReadArcsDisplay/util.d.ts +1 -1
- package/esm/LinearReadCloudDisplay/components/ReactComponent.d.ts +1 -1
- package/esm/LinearReadCloudDisplay/components/ReactComponent.js +2 -6
- package/esm/LinearReadCloudDisplay/configSchema.d.ts +5 -17
- package/esm/LinearReadCloudDisplay/configSchema.js +3 -28
- package/esm/LinearReadCloudDisplay/drawFeats.d.ts +1 -1
- package/esm/LinearReadCloudDisplay/drawFeats.js +2 -2
- package/esm/LinearReadCloudDisplay/drawLongReadChains.d.ts +4 -4
- package/esm/LinearReadCloudDisplay/drawLongReadChains.js +1 -4
- package/esm/LinearReadCloudDisplay/drawPairChains.d.ts +4 -4
- package/esm/LinearReadCloudDisplay/drawPairChains.js +0 -3
- package/esm/LinearReadCloudDisplay/index.d.ts +1 -1
- package/esm/LinearReadCloudDisplay/index.js +1 -2
- package/esm/LinearReadCloudDisplay/model.d.ts +13 -55
- package/esm/LinearReadCloudDisplay/model.js +17 -68
- package/esm/LinearReadCloudDisplay/util.js +0 -1
- package/esm/LinearSNPCoverageDisplay/components/Tooltip.d.ts +1 -1
- package/esm/LinearSNPCoverageDisplay/components/Tooltip.js +1 -1
- package/esm/LinearSNPCoverageDisplay/configSchema.d.ts +17 -22
- package/esm/LinearSNPCoverageDisplay/configSchema.js +16 -32
- package/esm/LinearSNPCoverageDisplay/index.d.ts +1 -1
- package/esm/LinearSNPCoverageDisplay/index.js +1 -2
- package/esm/LinearSNPCoverageDisplay/model.d.ts +9 -50
- package/esm/LinearSNPCoverageDisplay/model.js +21 -125
- package/esm/MismatchParser/cigarToMismatches.d.ts +1 -1
- package/esm/MismatchParser/cigarToMismatches.js +4 -7
- package/esm/MismatchParser/getNextRefPos.js +0 -2
- package/esm/MismatchParser/index.d.ts +2 -2
- package/esm/MismatchParser/index.js +1 -9
- package/esm/MismatchParser/mdToMismatches.d.ts +2 -2
- package/esm/MismatchParser/mdToMismatches.js +0 -6
- package/esm/ModificationParser/index.d.ts +1 -1
- package/esm/ModificationParser/index.js +1 -18
- package/esm/PileupRPC/base.d.ts +2 -2
- package/esm/PileupRPC/base.js +0 -1
- package/esm/PileupRPC/index.d.ts +1 -1
- package/esm/PileupRPC/index.js +1 -1
- package/esm/PileupRPC/methods/GetGlobalValueForTag.d.ts +2 -3
- package/esm/PileupRPC/methods/GetGlobalValueForTag.js +1 -2
- package/esm/PileupRPC/methods/GetReducedFeatures.d.ts +2 -3
- package/esm/PileupRPC/methods/GetReducedFeatures.js +3 -5
- package/esm/PileupRPC/methods/GetVisibleModifications.d.ts +3 -4
- package/esm/PileupRPC/methods/GetVisibleModifications.js +1 -1
- package/esm/PileupRPC/util.d.ts +1 -1
- package/esm/PileupRenderer/PileupLayoutSession.d.ts +5 -5
- package/esm/PileupRenderer/PileupLayoutSession.js +2 -5
- package/esm/PileupRenderer/PileupRenderer.d.ts +10 -20
- package/esm/PileupRenderer/PileupRenderer.js +12 -17
- package/esm/PileupRenderer/colorBy.d.ts +2 -2
- package/esm/PileupRenderer/colorBy.js +1 -7
- package/esm/PileupRenderer/components/PileupRendering.d.ts +1 -1
- package/esm/PileupRenderer/components/PileupRendering.js +1 -4
- package/esm/PileupRenderer/configSchema.d.ts +0 -31
- package/esm/PileupRenderer/configSchema.js +1 -35
- package/esm/PileupRenderer/getAlignmentShapeColor.d.ts +2 -2
- package/esm/PileupRenderer/getAlignmentShapeColor.js +2 -7
- package/esm/PileupRenderer/index.d.ts +1 -1
- package/esm/PileupRenderer/index.js +1 -1
- package/esm/PileupRenderer/layoutFeature.d.ts +2 -2
- package/esm/PileupRenderer/layoutFeature.js +0 -1
- package/esm/PileupRenderer/layoutFeatures.d.ts +5 -2
- package/esm/PileupRenderer/layoutFeatures.js +7 -5
- package/esm/PileupRenderer/makeImageData.d.ts +3 -4
- package/esm/PileupRenderer/makeImageData.js +8 -2
- package/esm/PileupRenderer/renderAlignment.d.ts +3 -3
- package/esm/PileupRenderer/renderAlignment.js +3 -5
- package/esm/PileupRenderer/renderAlignmentShape.d.ts +3 -3
- package/esm/PileupRenderer/renderAlignmentShape.js +1 -1
- package/esm/PileupRenderer/renderMethylation.d.ts +4 -4
- package/esm/PileupRenderer/renderMethylation.js +0 -4
- package/esm/PileupRenderer/renderMismatches.d.ts +3 -3
- package/esm/PileupRenderer/renderMismatches.js +1 -12
- package/esm/PileupRenderer/renderModifications.d.ts +3 -3
- package/esm/PileupRenderer/renderModifications.js +1 -3
- package/esm/PileupRenderer/renderPerBaseLettering.d.ts +2 -2
- package/esm/PileupRenderer/renderPerBaseLettering.js +0 -1
- package/esm/PileupRenderer/renderPerBaseQuality.d.ts +2 -2
- package/esm/PileupRenderer/renderPerBaseQuality.js +2 -2
- package/esm/PileupRenderer/renderSoftClipping.d.ts +5 -5
- package/esm/PileupRenderer/renderSoftClipping.js +1 -5
- package/esm/PileupRenderer/sortUtil.d.ts +2 -2
- package/esm/PileupRenderer/sortUtil.js +1 -4
- package/esm/PileupRenderer/types.d.ts +26 -0
- package/esm/PileupRenderer/types.js +1 -0
- package/esm/PileupRenderer/util.d.ts +2 -2
- package/esm/PileupRenderer/util.js +1 -3
- package/esm/SNPCoverageAdapter/SNPCoverageAdapter.d.ts +4 -3
- package/esm/SNPCoverageAdapter/SNPCoverageAdapter.js +5 -7
- package/esm/SNPCoverageAdapter/configSchema.d.ts +0 -4
- package/esm/SNPCoverageAdapter/configSchema.js +1 -8
- package/esm/SNPCoverageAdapter/generateCoverageBins.d.ts +4 -8
- package/esm/SNPCoverageAdapter/generateCoverageBins.js +24 -246
- package/esm/SNPCoverageAdapter/index.d.ts +1 -1
- package/esm/SNPCoverageAdapter/processDepth.d.ts +8 -0
- package/esm/SNPCoverageAdapter/processDepth.js +35 -0
- package/esm/SNPCoverageAdapter/processMismatches.d.ts +9 -0
- package/esm/SNPCoverageAdapter/processMismatches.js +55 -0
- package/esm/SNPCoverageAdapter/processModifications.d.ts +10 -0
- package/esm/SNPCoverageAdapter/processModifications.js +46 -0
- package/esm/SNPCoverageAdapter/processReferenceCpGs.d.ts +9 -0
- package/esm/SNPCoverageAdapter/processReferenceCpGs.js +60 -0
- package/esm/SNPCoverageAdapter/util.d.ts +10 -0
- package/esm/SNPCoverageAdapter/util.js +35 -0
- package/esm/SNPCoverageRenderer/SNPCoverageRenderer.d.ts +5 -4
- package/esm/SNPCoverageRenderer/SNPCoverageRenderer.js +16 -40
- package/esm/SNPCoverageRenderer/configSchema.d.ts +0 -15
- package/esm/SNPCoverageRenderer/configSchema.js +1 -19
- package/esm/SNPCoverageRenderer/index.d.ts +1 -1
- package/esm/SNPCoverageRenderer/index.js +2 -2
- package/esm/index.d.ts +2 -2
- package/esm/index.js +10 -10
- package/esm/shared/afterAttach.d.ts +1 -1
- package/esm/shared/afterAttach.js +0 -2
- package/esm/shared/color.d.ts +1 -1
- package/esm/shared/color.js +0 -8
- package/esm/shared/components/BaseDisplayComponent.d.ts +2 -2
- package/esm/shared/components/BaseDisplayComponent.js +12 -11
- package/esm/shared/components/FilterByTagDialog.d.ts +1 -1
- package/esm/shared/components/FilterByTagDialog.js +2 -2
- package/esm/shared/fetchChains.d.ts +2 -2
- package/esm/shared/fetchChains.js +1 -2
- package/esm/shared/getMaximumModificationAtEachPosition.d.ts +1 -1
- package/esm/shared/getMaximumModificationAtEachPosition.js +1 -2
- package/esm/shared/getUniqueModifications.d.ts +5 -5
- package/esm/shared/getUniqueTags.d.ts +4 -4
- package/esm/shared/renderSvgUtil.js +0 -2
- package/esm/shared/util.d.ts +11 -1
- package/esm/shared/util.js +24 -0
- package/esm/util.d.ts +4 -4
- package/esm/util.js +3 -9
- package/package.json +3 -4
|
@@ -27,103 +27,60 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
27
27
|
};
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
29
|
const react_1 = require("react");
|
|
30
|
-
const mobx_state_tree_1 = require("mobx-state-tree");
|
|
31
|
-
const mobx_1 = require("mobx");
|
|
32
30
|
const configuration_1 = require("@jbrowse/core/configuration");
|
|
33
|
-
const plugin_wiggle_1 = require("@jbrowse/plugin-wiggle");
|
|
34
|
-
const util_1 = require("@jbrowse/core/util");
|
|
35
31
|
const serializableFilterChain_1 = __importDefault(require("@jbrowse/core/pluggableElementTypes/renderers/util/serializableFilterChain"));
|
|
36
|
-
|
|
37
|
-
const
|
|
32
|
+
const util_1 = require("@jbrowse/core/util");
|
|
33
|
+
const plugin_wiggle_1 = require("@jbrowse/plugin-wiggle");
|
|
34
|
+
const mobx_1 = require("mobx");
|
|
35
|
+
const mobx_state_tree_1 = require("mobx-state-tree");
|
|
38
36
|
const getUniqueModifications_1 = require("../shared/getUniqueModifications");
|
|
39
|
-
|
|
37
|
+
const util_2 = require("../util");
|
|
40
38
|
const Tooltip = (0, react_1.lazy)(() => Promise.resolve().then(() => __importStar(require('./components/Tooltip'))));
|
|
41
|
-
// using a map because it preserves order
|
|
42
39
|
const rendererTypes = new Map([['snpcoverage', 'SNPCoverageRenderer']]);
|
|
43
|
-
/**
|
|
44
|
-
* #stateModel LinearSNPCoverageDisplay
|
|
45
|
-
* extends
|
|
46
|
-
* - [LinearWiggleDisplay](../linearwiggledisplay)
|
|
47
|
-
*/
|
|
48
40
|
function stateModelFactory(pluginManager, configSchema) {
|
|
49
41
|
return mobx_state_tree_1.types
|
|
50
42
|
.compose('LinearSNPCoverageDisplay', (0, plugin_wiggle_1.linearWiggleDisplayModelFactory)(pluginManager, configSchema), mobx_state_tree_1.types.model({
|
|
51
|
-
/**
|
|
52
|
-
* #property
|
|
53
|
-
*/
|
|
54
43
|
type: mobx_state_tree_1.types.literal('LinearSNPCoverageDisplay'),
|
|
55
|
-
/**
|
|
56
|
-
* #property
|
|
57
|
-
*/
|
|
58
44
|
drawInterbaseCounts: mobx_state_tree_1.types.maybe(mobx_state_tree_1.types.boolean),
|
|
59
|
-
/**
|
|
60
|
-
* #property
|
|
61
|
-
*/
|
|
62
45
|
drawIndicators: mobx_state_tree_1.types.maybe(mobx_state_tree_1.types.boolean),
|
|
63
|
-
/**
|
|
64
|
-
* #property
|
|
65
|
-
*/
|
|
66
46
|
drawArcs: mobx_state_tree_1.types.maybe(mobx_state_tree_1.types.boolean),
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
*/
|
|
70
|
-
filterBy: mobx_state_tree_1.types.optional(mobx_state_tree_1.types.frozen(), {
|
|
71
|
-
flagInclude: 0,
|
|
72
|
-
flagExclude: 1540,
|
|
73
|
-
}),
|
|
74
|
-
/**
|
|
75
|
-
* #property
|
|
76
|
-
*/
|
|
77
|
-
colorBy: mobx_state_tree_1.types.frozen(),
|
|
78
|
-
/**
|
|
79
|
-
* #property
|
|
80
|
-
*/
|
|
47
|
+
filterBySetting: mobx_state_tree_1.types.frozen(),
|
|
48
|
+
colorBySetting: mobx_state_tree_1.types.frozen(),
|
|
81
49
|
jexlFilters: mobx_state_tree_1.types.optional(mobx_state_tree_1.types.array(mobx_state_tree_1.types.string), []),
|
|
82
50
|
}))
|
|
83
51
|
.volatile(() => ({
|
|
84
|
-
/**
|
|
85
|
-
* #volatile
|
|
86
|
-
*/
|
|
87
52
|
visibleModifications: mobx_1.observable.map({}),
|
|
88
|
-
/**
|
|
89
|
-
* #volatile
|
|
90
|
-
*/
|
|
91
53
|
modificationsReady: false,
|
|
54
|
+
}))
|
|
55
|
+
.views(self => ({
|
|
56
|
+
get colorBy() {
|
|
57
|
+
var _a;
|
|
58
|
+
return (_a = self.colorBySetting) !== null && _a !== void 0 ? _a : (0, configuration_1.getConf)(self, 'colorBy');
|
|
59
|
+
},
|
|
60
|
+
get filterBy() {
|
|
61
|
+
var _a;
|
|
62
|
+
return (_a = self.filterBySetting) !== null && _a !== void 0 ? _a : (0, configuration_1.getConf)(self, 'filterBy');
|
|
63
|
+
},
|
|
92
64
|
}))
|
|
93
65
|
.actions(self => ({
|
|
94
|
-
/**
|
|
95
|
-
* #action
|
|
96
|
-
*/
|
|
97
66
|
setConfig(configuration) {
|
|
98
67
|
self.configuration = configuration;
|
|
99
68
|
},
|
|
100
|
-
/**
|
|
101
|
-
* #action
|
|
102
|
-
*/
|
|
103
69
|
setFilterBy(filter) {
|
|
104
|
-
self.
|
|
70
|
+
self.filterBySetting = {
|
|
105
71
|
...filter,
|
|
106
72
|
};
|
|
107
73
|
},
|
|
108
|
-
/**
|
|
109
|
-
* #action
|
|
110
|
-
*/
|
|
111
74
|
setColorScheme(colorBy) {
|
|
112
|
-
self.
|
|
75
|
+
self.colorBySetting = colorBy
|
|
113
76
|
? {
|
|
114
77
|
...colorBy,
|
|
115
78
|
}
|
|
116
79
|
: undefined;
|
|
117
80
|
},
|
|
118
|
-
/**
|
|
119
|
-
* #action
|
|
120
|
-
*/
|
|
121
81
|
setJexlFilters(filters) {
|
|
122
82
|
self.jexlFilters = (0, mobx_state_tree_1.cast)(filters);
|
|
123
83
|
},
|
|
124
|
-
/**
|
|
125
|
-
* #action
|
|
126
|
-
*/
|
|
127
84
|
updateVisibleModifications(uniqueModifications) {
|
|
128
85
|
for (const modification of uniqueModifications) {
|
|
129
86
|
if (!self.visibleModifications.has(modification.type)) {
|
|
@@ -138,9 +95,6 @@ function stateModelFactory(pluginManager, configSchema) {
|
|
|
138
95
|
.views(self => {
|
|
139
96
|
const { adapterProps: superAdapterProps } = self;
|
|
140
97
|
return {
|
|
141
|
-
/**
|
|
142
|
-
* #getter
|
|
143
|
-
*/
|
|
144
98
|
get rendererConfig() {
|
|
145
99
|
const configBlob = (0, configuration_1.getConf)(self, ['renderers', self.rendererTypeName]) || {};
|
|
146
100
|
const { drawArcs, drawInterbaseCounts, drawIndicators } = self;
|
|
@@ -151,40 +105,24 @@ function stateModelFactory(pluginManager, configSchema) {
|
|
|
151
105
|
drawArcs: drawArcs !== null && drawArcs !== void 0 ? drawArcs : configBlob.drawArcs,
|
|
152
106
|
}, (0, mobx_state_tree_1.getEnv)(self));
|
|
153
107
|
},
|
|
154
|
-
/**
|
|
155
|
-
* #getter
|
|
156
|
-
*/
|
|
157
108
|
get drawArcsSetting() {
|
|
158
109
|
var _a;
|
|
159
110
|
return ((_a = self.drawArcs) !== null && _a !== void 0 ? _a : (0, configuration_1.readConfObject)(this.rendererConfig, 'drawArcs'));
|
|
160
111
|
},
|
|
161
|
-
/**
|
|
162
|
-
* #getter
|
|
163
|
-
*/
|
|
164
112
|
get drawInterbaseCountsSetting() {
|
|
165
113
|
var _a;
|
|
166
114
|
return ((_a = self.drawInterbaseCounts) !== null && _a !== void 0 ? _a : (0, configuration_1.readConfObject)(this.rendererConfig, 'drawInterbaseCounts'));
|
|
167
115
|
},
|
|
168
|
-
/**
|
|
169
|
-
* #getter
|
|
170
|
-
*/
|
|
171
116
|
get drawIndicatorsSetting() {
|
|
172
117
|
var _a;
|
|
173
118
|
return ((_a = self.drawIndicators) !== null && _a !== void 0 ? _a : (0, configuration_1.readConfObject)(this.rendererConfig, 'drawIndicators'));
|
|
174
119
|
},
|
|
175
|
-
/**
|
|
176
|
-
* #getter
|
|
177
|
-
*/
|
|
178
120
|
get autorunReady() {
|
|
179
121
|
const view = (0, util_1.getContainingView)(self);
|
|
180
122
|
return (view.initialized &&
|
|
181
|
-
self.
|
|
182
|
-
!self.regionTooLarge &&
|
|
123
|
+
self.statsReadyAndRegionNotTooLarge &&
|
|
183
124
|
!self.error);
|
|
184
125
|
},
|
|
185
|
-
/**
|
|
186
|
-
* #method
|
|
187
|
-
*/
|
|
188
126
|
adapterProps() {
|
|
189
127
|
const superProps = superAdapterProps();
|
|
190
128
|
const { filters, filterBy } = self;
|
|
@@ -197,27 +135,15 @@ function stateModelFactory(pluginManager, configSchema) {
|
|
|
197
135
|
};
|
|
198
136
|
})
|
|
199
137
|
.actions(self => ({
|
|
200
|
-
/**
|
|
201
|
-
* #action
|
|
202
|
-
*/
|
|
203
138
|
setModificationsReady(flag) {
|
|
204
139
|
self.modificationsReady = flag;
|
|
205
140
|
},
|
|
206
|
-
/**
|
|
207
|
-
* #action
|
|
208
|
-
*/
|
|
209
141
|
toggleDrawIndicators() {
|
|
210
142
|
self.drawIndicators = !self.drawIndicatorsSetting;
|
|
211
143
|
},
|
|
212
|
-
/**
|
|
213
|
-
* #action
|
|
214
|
-
*/
|
|
215
144
|
toggleDrawInterbaseCounts() {
|
|
216
145
|
self.drawInterbaseCounts = !self.drawInterbaseCountsSetting;
|
|
217
146
|
},
|
|
218
|
-
/**
|
|
219
|
-
* #action
|
|
220
|
-
*/
|
|
221
147
|
toggleDrawArcs() {
|
|
222
148
|
self.drawArcs = !self.drawArcsSetting;
|
|
223
149
|
},
|
|
@@ -252,22 +178,13 @@ function stateModelFactory(pluginManager, configSchema) {
|
|
|
252
178
|
.views(self => {
|
|
253
179
|
const { renderProps: superRenderProps, trackMenuItems: superTrackMenuItems, } = self;
|
|
254
180
|
return {
|
|
255
|
-
/**
|
|
256
|
-
* #getter
|
|
257
|
-
*/
|
|
258
181
|
get renderReady() {
|
|
259
182
|
const superProps = superRenderProps();
|
|
260
183
|
return !superProps.notReady && self.modificationsReady;
|
|
261
184
|
},
|
|
262
|
-
/**
|
|
263
|
-
* #getter
|
|
264
|
-
*/
|
|
265
185
|
get ready() {
|
|
266
186
|
return this.renderReady;
|
|
267
187
|
},
|
|
268
|
-
/**
|
|
269
|
-
* #method
|
|
270
|
-
*/
|
|
271
188
|
renderProps() {
|
|
272
189
|
const { colorBy, visibleModifications } = self;
|
|
273
190
|
return {
|
|
@@ -277,15 +194,9 @@ function stateModelFactory(pluginManager, configSchema) {
|
|
|
277
194
|
visibleModifications: Object.fromEntries(visibleModifications.toJSON()),
|
|
278
195
|
};
|
|
279
196
|
},
|
|
280
|
-
/**
|
|
281
|
-
* #getter
|
|
282
|
-
*/
|
|
283
197
|
get TooltipComponent() {
|
|
284
198
|
return Tooltip;
|
|
285
199
|
},
|
|
286
|
-
/**
|
|
287
|
-
* #getter
|
|
288
|
-
*/
|
|
289
200
|
get adapterConfig() {
|
|
290
201
|
const subadapter = (0, configuration_1.getConf)(self.parentTrack, 'adapter');
|
|
291
202
|
return {
|
|
@@ -293,27 +204,15 @@ function stateModelFactory(pluginManager, configSchema) {
|
|
|
293
204
|
subadapter,
|
|
294
205
|
};
|
|
295
206
|
},
|
|
296
|
-
/**
|
|
297
|
-
* #getter
|
|
298
|
-
*/
|
|
299
207
|
get rendererTypeName() {
|
|
300
208
|
return rendererTypes.get('snpcoverage');
|
|
301
209
|
},
|
|
302
|
-
/**
|
|
303
|
-
* #getter
|
|
304
|
-
*/
|
|
305
210
|
get needsScalebar() {
|
|
306
211
|
return true;
|
|
307
212
|
},
|
|
308
|
-
/**
|
|
309
|
-
* #method
|
|
310
|
-
*/
|
|
311
213
|
contextMenuItems() {
|
|
312
214
|
return [];
|
|
313
215
|
},
|
|
314
|
-
/**
|
|
315
|
-
* #method
|
|
316
|
-
*/
|
|
317
216
|
trackMenuItems() {
|
|
318
217
|
return [
|
|
319
218
|
...superTrackMenuItems(),
|
|
@@ -343,9 +242,6 @@ function stateModelFactory(pluginManager, configSchema) {
|
|
|
343
242
|
},
|
|
344
243
|
];
|
|
345
244
|
},
|
|
346
|
-
/**
|
|
347
|
-
* #getter
|
|
348
|
-
*/
|
|
349
245
|
get filters() {
|
|
350
246
|
return new serializableFilterChain_1.default({ filters: self.jexlFilters });
|
|
351
247
|
},
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.cigarToMismatches = cigarToMismatches;
|
|
4
4
|
function cigarToMismatches(ops, seq, ref, qual) {
|
|
5
|
-
let roffset = 0;
|
|
6
|
-
let soffset = 0;
|
|
5
|
+
let roffset = 0;
|
|
6
|
+
let soffset = 0;
|
|
7
7
|
const mismatches = [];
|
|
8
8
|
const hasRefAndSeq = ref && seq;
|
|
9
9
|
for (let i = 0; i < ops.length; i += 2) {
|
|
@@ -12,10 +12,7 @@ function cigarToMismatches(ops, seq, ref, qual) {
|
|
|
12
12
|
if (op === 'M' || op === '=' || op === 'E') {
|
|
13
13
|
if (hasRefAndSeq) {
|
|
14
14
|
for (let j = 0; j < len; j++) {
|
|
15
|
-
if (
|
|
16
|
-
// @ts-ignore in the full yarn build of the repo, this says that
|
|
17
|
-
// object is possibly undefined for some reason, ignored
|
|
18
|
-
seq[soffset + j].toUpperCase() !== ref[roffset + j].toUpperCase()) {
|
|
15
|
+
if (seq[soffset + j].toUpperCase() !== ref[roffset + j].toUpperCase()) {
|
|
19
16
|
mismatches.push({
|
|
20
17
|
start: roffset + j,
|
|
21
18
|
type: 'mismatch',
|
|
@@ -60,7 +57,7 @@ function cigarToMismatches(ops, seq, ref, qual) {
|
|
|
60
57
|
mismatches.push({
|
|
61
58
|
start: roffset + j,
|
|
62
59
|
type: 'mismatch',
|
|
63
|
-
base: r[j],
|
|
60
|
+
base: r[j] || 'X',
|
|
64
61
|
qual: q[j],
|
|
65
62
|
length: 1,
|
|
66
63
|
});
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getNextRefPos = getNextRefPos;
|
|
4
|
-
// get relative reference sequence positions for positions given relative to
|
|
5
|
-
// the read sequence
|
|
6
4
|
function getNextRefPos(cigarOps, positions) {
|
|
7
5
|
let readPos = 0;
|
|
8
6
|
let refPos = 0;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { Mismatch } from '../shared/types';
|
|
2
|
+
import type { Feature } from '@jbrowse/core/util';
|
|
2
3
|
import type { Buffer } from 'buffer';
|
|
3
|
-
import { Mismatch } from '../shared/types';
|
|
4
4
|
export declare function parseCigar(cigar?: string): string[];
|
|
5
5
|
export declare function getMismatches(cigar?: string, md?: string, seq?: string, ref?: string, qual?: Buffer): Mismatch[];
|
|
6
6
|
export declare function getOrientedCigar(flip: boolean, cigar: string[]): string[];
|
|
@@ -11,8 +11,8 @@ exports.getLengthSansClipping = getLengthSansClipping;
|
|
|
11
11
|
exports.getClip = getClip;
|
|
12
12
|
exports.getTag = getTag;
|
|
13
13
|
exports.featurizeSA = featurizeSA;
|
|
14
|
-
const mdToMismatches_1 = require("./mdToMismatches");
|
|
15
14
|
const cigarToMismatches_1 = require("./cigarToMismatches");
|
|
15
|
+
const mdToMismatches_1 = require("./mdToMismatches");
|
|
16
16
|
const cigarRegex = new RegExp(/([MIDNSHPX=])/);
|
|
17
17
|
const startClip = new RegExp(/(\d+)[SH]$/);
|
|
18
18
|
const endClip = new RegExp(/^(\d+)([SH])/);
|
|
@@ -22,11 +22,9 @@ function parseCigar(cigar = '') {
|
|
|
22
22
|
function getMismatches(cigar, md, seq, ref, qual) {
|
|
23
23
|
let mismatches = [];
|
|
24
24
|
const ops = parseCigar(cigar);
|
|
25
|
-
// parse the CIGAR tag if it has one
|
|
26
25
|
if (cigar) {
|
|
27
26
|
mismatches = mismatches.concat((0, cigarToMismatches_1.cigarToMismatches)(ops, seq, ref, qual));
|
|
28
27
|
}
|
|
29
|
-
// now let's look for CRAM or MD mismatches
|
|
30
28
|
if (md && seq) {
|
|
31
29
|
mismatches = mismatches.concat((0, mdToMismatches_1.mdToMismatches)(md, ops, mismatches, seq, qual));
|
|
32
30
|
}
|
|
@@ -98,12 +96,6 @@ function getClip(cigar, strand) {
|
|
|
98
96
|
function getTag(feature, tag) {
|
|
99
97
|
return feature.get('tags')[tag];
|
|
100
98
|
}
|
|
101
|
-
// produces a list of "feature-like" object from parsing supplementary
|
|
102
|
-
// alignments in the SA tag
|
|
103
|
-
//
|
|
104
|
-
// @param normalize - used specifically in the linear-read-vs-ref context, it
|
|
105
|
-
// flips features around relative to the original feature. other contexts of
|
|
106
|
-
// usage can keep this false
|
|
107
99
|
function featurizeSA(SA, id, strand, readName, normalize) {
|
|
108
100
|
return ((SA === null || SA === void 0 ? void 0 : SA.split(';').filter(aln => !!aln).map((aln, index) => {
|
|
109
101
|
const ret = aln.split(',');
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { Mismatch } from '../shared/types';
|
|
2
|
-
import { Buffer } from 'buffer';
|
|
1
|
+
import type { Mismatch } from '../shared/types';
|
|
2
|
+
import type { Buffer } from 'buffer';
|
|
3
3
|
export declare function mdToMismatches(mdstring: string, ops: string[], cigarMismatches: Mismatch[], seq: string, qual?: Buffer | number[] | null): Mismatch[];
|
|
@@ -10,11 +10,8 @@ function mdToMismatches(mdstring, ops, cigarMismatches, seq, qual) {
|
|
|
10
10
|
let lastSkipPos = 0;
|
|
11
11
|
const mismatchRecords = [];
|
|
12
12
|
const skips = cigarMismatches.filter(cigar => cigar.type === 'skip');
|
|
13
|
-
// convert a position on the reference sequence to a position on the template
|
|
14
|
-
// sequence, taking into account hard and soft clipping of reads
|
|
15
13
|
function nextRecord() {
|
|
16
14
|
mismatchRecords.push(curr);
|
|
17
|
-
// get a new mismatch record ready
|
|
18
15
|
curr = {
|
|
19
16
|
start: curr.start + curr.length,
|
|
20
17
|
length: 0,
|
|
@@ -43,7 +40,6 @@ function mdToMismatches(mdstring, ops, cigarMismatches, seq, qual) {
|
|
|
43
40
|
lastRefOffset = refOffset;
|
|
44
41
|
return templateOffset - (refOffset - refCoord);
|
|
45
42
|
}
|
|
46
|
-
// now actually parse the MD string
|
|
47
43
|
const md = mdstring.match(mdRegex) || [];
|
|
48
44
|
for (const token of md) {
|
|
49
45
|
const num = +token;
|
|
@@ -54,8 +50,6 @@ function mdToMismatches(mdstring, ops, cigarMismatches, seq, qual) {
|
|
|
54
50
|
curr.start += token.length - 1;
|
|
55
51
|
}
|
|
56
52
|
else {
|
|
57
|
-
// mismatch
|
|
58
|
-
// eslint-disable-next-line @typescript-eslint/prefer-for-of
|
|
59
53
|
for (let j = 0; j < token.length; j += 1) {
|
|
60
54
|
curr.length = 1;
|
|
61
55
|
while (lastSkipPos < skips.length) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Feature } from '@jbrowse/core/util';
|
|
1
|
+
import type { Feature } from '@jbrowse/core/util';
|
|
2
2
|
export declare function getModProbabilities(feature: Feature): number[] | undefined;
|
|
3
3
|
export declare function getModPositions(mm: string, fseq: string, fstrand: number): {
|
|
4
4
|
type: string;
|
|
@@ -5,17 +5,9 @@ exports.getModPositions = getModPositions;
|
|
|
5
5
|
exports.getModTypes = getModTypes;
|
|
6
6
|
exports.getMethBins = getMethBins;
|
|
7
7
|
const util_1 = require("@jbrowse/core/util");
|
|
8
|
-
const util_2 = require("../util");
|
|
9
8
|
const MismatchParser_1 = require("../MismatchParser");
|
|
9
|
+
const util_2 = require("../util");
|
|
10
10
|
const modificationRegex = new RegExp(/([A-Z])([-+])([^,.?]+)([.?])?/);
|
|
11
|
-
// ML stores probabilities as array of numerics and MP is scaled phred scores
|
|
12
|
-
// https://github.com/samtools/hts-specs/pull/418/files#diff-e765c6479316309f56b636f88189cdde8c40b854c7bdcce9ee7fe87a4e76febcR596
|
|
13
|
-
//
|
|
14
|
-
// if we have ML or Ml, it is an 8bit probability, divide by 255
|
|
15
|
-
//
|
|
16
|
-
// if we have MP or Mp it is phred scaled ASCII, which can go up to 90 but has
|
|
17
|
-
// very high likelihood basecalls at that point, we really only care about low
|
|
18
|
-
// qual calls <20 approx
|
|
19
11
|
function getModProbabilities(feature) {
|
|
20
12
|
var _a;
|
|
21
13
|
const m = (0, util_2.getTagAlt)(feature, 'ML', 'Ml') || [];
|
|
@@ -29,15 +21,11 @@ function getModPositions(mm, fseq, fstrand) {
|
|
|
29
21
|
const result = [];
|
|
30
22
|
for (const mod of mods) {
|
|
31
23
|
const [basemod, ...skips] = mod.split(',');
|
|
32
|
-
// regexes based on parse_mm.pl from hts-specs
|
|
33
|
-
// https://github.com/samtools/hts-specs/blob/master/test/SAMtags/parse_mm.pl
|
|
34
24
|
const matches = modificationRegex.exec(basemod);
|
|
35
25
|
if (!matches) {
|
|
36
26
|
throw new Error('bad format for MM tag');
|
|
37
27
|
}
|
|
38
28
|
const [, base, strand, typestr] = matches;
|
|
39
|
-
// can be a multi e.g. C+mh for both meth (m) and hydroxymeth (h) so split,
|
|
40
|
-
// and they can also be chemical codes (ChEBI) e.g. C+16061
|
|
41
29
|
const types = typestr.split(/(\d+|.)/).filter(f => !!f);
|
|
42
30
|
if (strand === '-') {
|
|
43
31
|
console.warn('unsupported negative strand modifications');
|
|
@@ -48,7 +36,6 @@ function getModPositions(mm, fseq, fstrand) {
|
|
|
48
36
|
strand: strand,
|
|
49
37
|
});
|
|
50
38
|
}
|
|
51
|
-
// this logic based on parse_mm.pl from hts-specs
|
|
52
39
|
for (const type of types) {
|
|
53
40
|
let i = 0;
|
|
54
41
|
const positions = [];
|
|
@@ -63,8 +50,6 @@ function getModPositions(mm, fseq, fstrand) {
|
|
|
63
50
|
if (fstrand === -1) {
|
|
64
51
|
const pos = seq.length - i;
|
|
65
52
|
if (pos >= 0) {
|
|
66
|
-
// avoid negative-number-positions in array, seen in #4629 cause
|
|
67
|
-
// unknown, could warrant some further investigation
|
|
68
53
|
positions.unshift(pos);
|
|
69
54
|
}
|
|
70
55
|
}
|
|
@@ -93,8 +78,6 @@ function getModTypes(mm) {
|
|
|
93
78
|
throw new Error('bad format for MM tag');
|
|
94
79
|
}
|
|
95
80
|
const [, base, strand, typestr] = matches;
|
|
96
|
-
// can be a multi e.g. C+mh for both meth (m) and hydroxymeth (h) so
|
|
97
|
-
// split, and they can also be chemical codes (ChEBI) e.g. C+16061
|
|
98
81
|
return typestr
|
|
99
82
|
.split(/(\d+|.)/)
|
|
100
83
|
.filter(f => !!f)
|
package/dist/PileupRPC/base.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import RpcMethodType from '@jbrowse/core/pluggableElementTypes/RpcMethodType';
|
|
2
|
-
import { RenderArgs } from '@jbrowse/core/rpc/coreRpcMethods';
|
|
2
|
+
import type { RenderArgs } from '@jbrowse/core/rpc/coreRpcMethods';
|
|
3
3
|
export default abstract class PileupBaseRPC extends RpcMethodType {
|
|
4
4
|
serializeArguments(args: RenderArgs & {
|
|
5
|
-
|
|
5
|
+
stopToken?: string;
|
|
6
6
|
statusCallback?: (arg: string) => void;
|
|
7
7
|
}, rpcDriver: string): Promise<Record<string, unknown>>;
|
|
8
8
|
}
|
package/dist/PileupRPC/base.js
CHANGED
|
@@ -5,7 +5,6 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
const RpcMethodType_1 = __importDefault(require("@jbrowse/core/pluggableElementTypes/RpcMethodType"));
|
|
7
7
|
const util_1 = require("@jbrowse/core/util");
|
|
8
|
-
// specialized get features to return limited data about alignments
|
|
9
8
|
class PileupBaseRPC extends RpcMethodType_1.default {
|
|
10
9
|
async serializeArguments(args, rpcDriver) {
|
|
11
10
|
var _a;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import PluginManager from '@jbrowse/core/PluginManager';
|
|
1
|
+
import type PluginManager from '@jbrowse/core/PluginManager';
|
|
2
2
|
export default function PileupRPCMethodsF(pm: PluginManager): void;
|
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import { Region } from '@jbrowse/core/util';
|
|
2
|
-
import { RemoteAbortSignal } from '@jbrowse/core/rpc/remoteAbortSignals';
|
|
3
1
|
import PileupBaseRPC from '../base';
|
|
2
|
+
import type { Region } from '@jbrowse/core/util';
|
|
4
3
|
export default class PileupGetGlobalValueForTag extends PileupBaseRPC {
|
|
5
4
|
name: string;
|
|
6
5
|
execute(args: {
|
|
7
6
|
adapterConfig: Record<string, unknown>;
|
|
8
|
-
|
|
7
|
+
stopToken?: string;
|
|
9
8
|
headers?: Record<string, string>;
|
|
10
9
|
regions: Region[];
|
|
11
10
|
sessionId: string;
|
|
@@ -4,9 +4,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
const dataAdapterCache_1 = require("@jbrowse/core/data_adapters/dataAdapterCache");
|
|
7
|
-
const operators_1 = require("rxjs/operators");
|
|
8
7
|
const rxjs_1 = require("rxjs");
|
|
9
|
-
|
|
8
|
+
const operators_1 = require("rxjs/operators");
|
|
10
9
|
const base_1 = __importDefault(require("../base"));
|
|
11
10
|
class PileupGetGlobalValueForTag extends base_1.default {
|
|
12
11
|
constructor() {
|
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import { Region } from '@jbrowse/core/util';
|
|
2
|
-
import { RemoteAbortSignal } from '@jbrowse/core/rpc/remoteAbortSignals';
|
|
3
1
|
import PileupBaseRPC from '../base';
|
|
2
|
+
import type { Region } from '@jbrowse/core/util';
|
|
4
3
|
export default class PileupGetReducedFeatures extends PileupBaseRPC {
|
|
5
4
|
name: string;
|
|
6
5
|
execute(args: {
|
|
7
6
|
adapterConfig: Record<string, unknown>;
|
|
8
|
-
|
|
7
|
+
stopToken?: string;
|
|
9
8
|
headers?: Record<string, string>;
|
|
10
9
|
regions: Region[];
|
|
11
10
|
sessionId: string;
|
|
@@ -5,13 +5,11 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
const dataAdapterCache_1 = require("@jbrowse/core/data_adapters/dataAdapterCache");
|
|
7
7
|
const util_1 = require("@jbrowse/core/util");
|
|
8
|
-
const operators_1 = require("rxjs/operators");
|
|
9
8
|
const rxjs_1 = require("rxjs");
|
|
10
|
-
|
|
11
|
-
const util_2 = require("../util");
|
|
12
|
-
const base_1 = __importDefault(require("../base"));
|
|
9
|
+
const operators_1 = require("rxjs/operators");
|
|
13
10
|
const MismatchParser_1 = require("../../MismatchParser");
|
|
14
|
-
|
|
11
|
+
const base_1 = __importDefault(require("../base"));
|
|
12
|
+
const util_2 = require("../util");
|
|
15
13
|
class PileupGetReducedFeatures extends base_1.default {
|
|
16
14
|
constructor() {
|
|
17
15
|
super(...arguments);
|
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
import { RemoteAbortSignal } from '@jbrowse/core/rpc/remoteAbortSignals';
|
|
2
|
-
import { Region } from '@jbrowse/core/util';
|
|
3
|
-
import { ModificationType } from '../../shared/types';
|
|
4
1
|
import PileupBaseRPC from '../base';
|
|
2
|
+
import type { ModificationType } from '../../shared/types';
|
|
3
|
+
import type { Region } from '@jbrowse/core/util';
|
|
5
4
|
export default class PileupGetVisibleModifications extends PileupBaseRPC {
|
|
6
5
|
name: string;
|
|
7
6
|
execute(args: {
|
|
8
7
|
adapterConfig: Record<string, unknown>;
|
|
9
|
-
|
|
8
|
+
stopToken?: string;
|
|
10
9
|
headers?: Record<string, string>;
|
|
11
10
|
regions: Region[];
|
|
12
11
|
sessionId: string;
|
|
@@ -4,8 +4,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
const dataAdapterCache_1 = require("@jbrowse/core/data_adapters/dataAdapterCache");
|
|
7
|
-
const operators_1 = require("rxjs/operators");
|
|
8
7
|
const rxjs_1 = require("rxjs");
|
|
8
|
+
const operators_1 = require("rxjs/operators");
|
|
9
9
|
const ModificationParser_1 = require("../../ModificationParser");
|
|
10
10
|
const util_1 = require("../../util");
|
|
11
11
|
const base_1 = __importDefault(require("../base"));
|
package/dist/PileupRPC/util.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { LayoutSession } from '@jbrowse/core/pluggableElementTypes/renderers/BoxRendererType';
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
2
|
+
import type { FilterBy, SortedBy } from '../shared/types';
|
|
3
|
+
import type { AnyConfigurationModel } from '@jbrowse/core/configuration';
|
|
4
|
+
import type SerializableFilterChain from '@jbrowse/core/pluggableElementTypes/renderers/util/serializableFilterChain';
|
|
5
|
+
import type GranularRectLayout from '@jbrowse/core/util/layouts/GranularRectLayout';
|
|
6
|
+
import type MultiLayout from '@jbrowse/core/util/layouts/MultiLayout';
|
|
7
7
|
export interface PileupLayoutSessionProps {
|
|
8
8
|
config: AnyConfigurationModel;
|
|
9
9
|
bpPerPx: number;
|
|
@@ -4,12 +4,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.PileupLayoutSession = void 0;
|
|
7
|
-
const fast_deep_equal_1 = __importDefault(require("fast-deep-equal"));
|
|
8
|
-
const BoxRendererType_1 = require("@jbrowse/core/pluggableElementTypes/renderers/BoxRendererType");
|
|
9
7
|
const configuration_1 = require("@jbrowse/core/configuration");
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
// - extra conditions to see if cached layout is valid
|
|
8
|
+
const BoxRendererType_1 = require("@jbrowse/core/pluggableElementTypes/renderers/BoxRendererType");
|
|
9
|
+
const fast_deep_equal_1 = __importDefault(require("fast-deep-equal"));
|
|
13
10
|
class PileupLayoutSession extends BoxRendererType_1.LayoutSession {
|
|
14
11
|
constructor(args) {
|
|
15
12
|
super(args);
|