@jbrowse/plugin-alignments 2.17.0 → 3.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/dist/AlignmentsFeatureDetail/AlignmentsFeatureDetail.d.ts +2 -3
- package/dist/AlignmentsFeatureDetail/AlignmentsFeatureDetail.js +25 -24
- package/dist/AlignmentsFeatureDetail/BreakendMultiLevelOptionDialog.js +0 -1
- package/dist/AlignmentsFeatureDetail/BreakendSingleLevelOptionDialog.js +0 -1
- package/dist/AlignmentsFeatureDetail/Flags.d.ts +1 -2
- package/dist/AlignmentsFeatureDetail/Flags.js +8 -10
- package/dist/AlignmentsFeatureDetail/Formatter.d.ts +1 -2
- package/dist/AlignmentsFeatureDetail/Formatter.js +11 -39
- package/dist/AlignmentsFeatureDetail/LaunchPairedEndBreakpointSplitViewPanel.d.ts +4 -7
- package/dist/AlignmentsFeatureDetail/LaunchPairedEndBreakpointSplitViewPanel.js +46 -54
- package/dist/AlignmentsFeatureDetail/LaunchSupplementaryAlignmentBreakpointSplitViewPanel.d.ts +4 -7
- package/dist/AlignmentsFeatureDetail/LaunchSupplementaryAlignmentBreakpointSplitViewPanel.js +58 -61
- package/dist/AlignmentsFeatureDetail/LinkedPairedAlignments.d.ts +3 -4
- package/dist/AlignmentsFeatureDetail/LinkedPairedAlignments.js +4 -5
- package/dist/AlignmentsFeatureDetail/PairLink.d.ts +2 -3
- package/dist/AlignmentsFeatureDetail/PairLink.js +3 -7
- package/dist/AlignmentsFeatureDetail/SupplementaryAlignments.d.ts +3 -4
- package/dist/AlignmentsFeatureDetail/SupplementaryAlignments.js +6 -9
- package/dist/AlignmentsFeatureDetail/SupplementaryAlignmentsLocStrings.d.ts +2 -3
- package/dist/AlignmentsFeatureDetail/SupplementaryAlignmentsLocStrings.js +21 -31
- 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/index.js +17 -7
- 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/BamAdapter/index.js +17 -7
- package/dist/CramAdapter/CramAdapter.d.ts +6 -9
- package/dist/CramAdapter/CramAdapter.js +25 -43
- 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 +6 -6
- 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 +17 -8
- 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/GuessAlignmentsTypes/index.js +19 -34
- 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 +18 -8
- package/dist/LinearAlignmentsDisplay/alignmentsModel.d.ts +2 -5
- package/dist/LinearAlignmentsDisplay/alignmentsModel.js +1 -31
- package/dist/LinearAlignmentsDisplay/components/AlignmentsDisplay.d.ts +2 -3
- package/dist/LinearAlignmentsDisplay/components/AlignmentsDisplay.js +10 -18
- 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 +7 -77
- package/dist/LinearAlignmentsDisplay/model.js +10 -85
- package/dist/LinearAlignmentsDisplay/util.d.ts +1 -1
- package/dist/LinearPileupDisplay/SharedLinearPileupDisplayMixin.d.ts +52 -164
- package/dist/LinearPileupDisplay/SharedLinearPileupDisplayMixin.js +71 -145
- package/dist/LinearPileupDisplay/components/ColorByTagDialog.d.ts +1 -2
- package/dist/LinearPileupDisplay/components/ColorByTagDialog.js +12 -41
- package/dist/LinearPileupDisplay/components/GroupByDialog.d.ts +3 -4
- package/dist/LinearPileupDisplay/components/GroupByDialog.js +106 -92
- package/dist/LinearPileupDisplay/components/LinearPileupDisplayBlurb.d.ts +3 -8
- package/dist/LinearPileupDisplay/components/LinearPileupDisplayBlurb.js +3 -7
- package/dist/LinearPileupDisplay/components/SetFeatureHeightDialog.d.ts +1 -2
- package/dist/LinearPileupDisplay/components/SetFeatureHeightDialog.js +15 -44
- package/dist/LinearPileupDisplay/components/SetMaxHeightDialog.d.ts +1 -2
- package/dist/LinearPileupDisplay/components/SetMaxHeightDialog.js +12 -40
- package/dist/LinearPileupDisplay/components/SortByTagDialog.d.ts +1 -2
- package/dist/LinearPileupDisplay/components/SortByTagDialog.js +17 -46
- 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 +123 -111
- package/dist/LinearPileupDisplay/model.js +29 -109
- package/dist/LinearReadArcsDisplay/components/ReactComponent.d.ts +2 -3
- package/dist/LinearReadArcsDisplay/components/ReactComponent.js +6 -33
- 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 +18 -9
- package/dist/LinearReadArcsDisplay/model.d.ts +16 -94
- package/dist/LinearReadArcsDisplay/model.js +34 -111
- package/dist/LinearReadArcsDisplay/util.d.ts +1 -1
- package/dist/LinearReadCloudDisplay/components/ReactComponent.d.ts +2 -3
- package/dist/LinearReadCloudDisplay/components/ReactComponent.js +6 -33
- 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 +18 -9
- package/dist/LinearReadCloudDisplay/model.d.ts +14 -56
- package/dist/LinearReadCloudDisplay/model.js +34 -75
- package/dist/LinearReadCloudDisplay/util.js +0 -1
- package/dist/LinearSNPCoverageDisplay/components/Tooltip.d.ts +2 -3
- package/dist/LinearSNPCoverageDisplay/components/Tooltip.js +16 -55
- 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 +13 -54
- package/dist/LinearSNPCoverageDisplay/model.js +69 -159
- package/dist/MismatchParser/cigarToMismatches.d.ts +2 -3
- package/dist/MismatchParser/cigarToMismatches.js +4 -7
- package/dist/MismatchParser/getNextRefPos.js +0 -2
- package/dist/MismatchParser/index.d.ts +3 -4
- package/dist/MismatchParser/index.js +1 -9
- package/dist/MismatchParser/mdToMismatches.d.ts +2 -3
- 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 +14 -24
- package/dist/PileupRenderer/PileupRenderer.js +28 -23
- package/dist/PileupRenderer/colorBy.d.ts +2 -2
- package/dist/PileupRenderer/colorBy.js +0 -6
- package/dist/PileupRenderer/components/PileupRendering.d.ts +2 -3
- package/dist/PileupRenderer/components/PileupRendering.js +15 -43
- package/dist/PileupRenderer/configSchema.d.ts +5 -31
- package/dist/PileupRenderer/configSchema.js +6 -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 +10 -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 +5 -4
- package/dist/PileupRenderer/renderMismatches.js +19 -25
- 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/index.js +17 -7
- 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 +2 -18
- package/dist/SNPCoverageRenderer/SNPCoverageRenderer.js +35 -288
- package/dist/SNPCoverageRenderer/configSchema.d.ts +3 -18
- package/dist/SNPCoverageRenderer/configSchema.js +4 -22
- package/dist/SNPCoverageRenderer/index.d.ts +1 -1
- package/dist/SNPCoverageRenderer/index.js +2 -2
- package/dist/SNPCoverageRenderer/makeImage.d.ts +2 -0
- package/dist/SNPCoverageRenderer/makeImage.js +270 -0
- package/dist/SNPCoverageRenderer/types.d.ts +19 -0
- package/dist/SNPCoverageRenderer/types.js +2 -0
- package/dist/index.d.ts +2 -2
- package/dist/index.js +29 -19
- 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 +3 -4
- package/dist/shared/components/BaseDisplayComponent.js +13 -19
- package/dist/shared/components/FilterByTagDialog.d.ts +2 -3
- package/dist/shared/components/FilterByTagDialog.js +44 -94
- 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.d.ts +1 -2
- package/dist/shared/renderSvgUtil.js +20 -19
- 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 +2 -3
- package/esm/AlignmentsFeatureDetail/AlignmentsFeatureDetail.js +8 -17
- package/esm/AlignmentsFeatureDetail/BreakendMultiLevelOptionDialog.js +0 -1
- package/esm/AlignmentsFeatureDetail/BreakendSingleLevelOptionDialog.js +0 -1
- package/esm/AlignmentsFeatureDetail/Flags.d.ts +1 -2
- package/esm/AlignmentsFeatureDetail/Flags.js +8 -10
- package/esm/AlignmentsFeatureDetail/Formatter.d.ts +1 -2
- package/esm/AlignmentsFeatureDetail/Formatter.js +11 -16
- package/esm/AlignmentsFeatureDetail/LaunchPairedEndBreakpointSplitViewPanel.d.ts +4 -7
- package/esm/AlignmentsFeatureDetail/LaunchPairedEndBreakpointSplitViewPanel.js +30 -48
- package/esm/AlignmentsFeatureDetail/LaunchSupplementaryAlignmentBreakpointSplitViewPanel.d.ts +4 -7
- package/esm/AlignmentsFeatureDetail/LaunchSupplementaryAlignmentBreakpointSplitViewPanel.js +41 -54
- package/esm/AlignmentsFeatureDetail/LinkedPairedAlignments.d.ts +3 -4
- package/esm/AlignmentsFeatureDetail/LinkedPairedAlignments.js +4 -5
- package/esm/AlignmentsFeatureDetail/PairLink.d.ts +2 -3
- package/esm/AlignmentsFeatureDetail/PairLink.js +3 -4
- package/esm/AlignmentsFeatureDetail/SupplementaryAlignments.d.ts +3 -4
- package/esm/AlignmentsFeatureDetail/SupplementaryAlignments.js +6 -9
- package/esm/AlignmentsFeatureDetail/SupplementaryAlignmentsLocStrings.d.ts +2 -3
- package/esm/AlignmentsFeatureDetail/SupplementaryAlignmentsLocStrings.js +22 -29
- 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 +24 -42
- 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 +6 -6
- 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 +20 -35
- 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 +2 -3
- package/esm/LinearAlignmentsDisplay/components/AlignmentsDisplay.js +10 -15
- 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 +7 -77
- package/esm/LinearAlignmentsDisplay/model.js +11 -86
- package/esm/LinearAlignmentsDisplay/util.d.ts +1 -1
- package/esm/LinearPileupDisplay/SharedLinearPileupDisplayMixin.d.ts +52 -164
- package/esm/LinearPileupDisplay/SharedLinearPileupDisplayMixin.js +56 -140
- package/esm/LinearPileupDisplay/components/ColorByTagDialog.d.ts +1 -2
- package/esm/LinearPileupDisplay/components/ColorByTagDialog.js +12 -18
- package/esm/LinearPileupDisplay/components/GroupByDialog.d.ts +3 -4
- package/esm/LinearPileupDisplay/components/GroupByDialog.js +106 -69
- package/esm/LinearPileupDisplay/components/LinearPileupDisplayBlurb.d.ts +3 -8
- package/esm/LinearPileupDisplay/components/LinearPileupDisplayBlurb.js +3 -4
- package/esm/LinearPileupDisplay/components/SetFeatureHeightDialog.d.ts +1 -2
- package/esm/LinearPileupDisplay/components/SetFeatureHeightDialog.js +15 -21
- package/esm/LinearPileupDisplay/components/SetMaxHeightDialog.d.ts +1 -2
- package/esm/LinearPileupDisplay/components/SetMaxHeightDialog.js +12 -17
- package/esm/LinearPileupDisplay/components/SortByTagDialog.d.ts +1 -2
- package/esm/LinearPileupDisplay/components/SortByTagDialog.js +17 -23
- 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 +123 -111
- package/esm/LinearPileupDisplay/model.js +13 -103
- package/esm/LinearReadArcsDisplay/components/ReactComponent.d.ts +2 -3
- package/esm/LinearReadArcsDisplay/components/ReactComponent.js +6 -10
- 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 +16 -94
- package/esm/LinearReadArcsDisplay/model.js +18 -105
- package/esm/LinearReadArcsDisplay/util.d.ts +1 -1
- package/esm/LinearReadCloudDisplay/components/ReactComponent.d.ts +2 -3
- package/esm/LinearReadCloudDisplay/components/ReactComponent.js +6 -10
- 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 +14 -56
- package/esm/LinearReadCloudDisplay/model.js +17 -68
- package/esm/LinearReadCloudDisplay/util.js +0 -1
- package/esm/LinearSNPCoverageDisplay/components/Tooltip.d.ts +2 -3
- package/esm/LinearSNPCoverageDisplay/components/Tooltip.js +16 -52
- 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 +13 -54
- package/esm/LinearSNPCoverageDisplay/model.js +53 -153
- package/esm/MismatchParser/cigarToMismatches.d.ts +2 -3
- package/esm/MismatchParser/cigarToMismatches.js +4 -7
- package/esm/MismatchParser/getNextRefPos.js +0 -2
- package/esm/MismatchParser/index.d.ts +3 -4
- package/esm/MismatchParser/index.js +1 -9
- package/esm/MismatchParser/mdToMismatches.d.ts +2 -3
- 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 +14 -24
- 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 +2 -3
- package/esm/PileupRenderer/components/PileupRendering.js +15 -20
- package/esm/PileupRenderer/configSchema.d.ts +5 -31
- package/esm/PileupRenderer/configSchema.js +6 -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 +10 -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 +5 -4
- package/esm/PileupRenderer/renderMismatches.js +19 -25
- 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 +2 -18
- package/esm/SNPCoverageRenderer/SNPCoverageRenderer.js +3 -289
- package/esm/SNPCoverageRenderer/configSchema.d.ts +3 -18
- package/esm/SNPCoverageRenderer/configSchema.js +4 -22
- package/esm/SNPCoverageRenderer/index.d.ts +1 -1
- package/esm/SNPCoverageRenderer/index.js +2 -2
- package/esm/SNPCoverageRenderer/makeImage.d.ts +2 -0
- package/esm/SNPCoverageRenderer/makeImage.js +267 -0
- package/esm/SNPCoverageRenderer/types.d.ts +19 -0
- package/esm/SNPCoverageRenderer/types.js +1 -0
- 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 +3 -4
- package/esm/shared/components/BaseDisplayComponent.js +13 -16
- package/esm/shared/components/FilterByTagDialog.d.ts +2 -3
- package/esm/shared/components/FilterByTagDialog.js +44 -71
- 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.d.ts +1 -2
- package/esm/shared/renderSvgUtil.js +3 -9
- 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 +6 -7
|
@@ -1,84 +1,58 @@
|
|
|
1
1
|
declare const PileupRenderer: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
2
|
-
/**
|
|
3
|
-
* #slot
|
|
4
|
-
* default magenta here is used to detect the user has not customized this
|
|
5
|
-
*/
|
|
6
2
|
color: {
|
|
7
3
|
type: string;
|
|
8
4
|
description: string;
|
|
9
5
|
defaultValue: string;
|
|
10
6
|
contextVariable: string[];
|
|
11
7
|
};
|
|
12
|
-
/**
|
|
13
|
-
* #slot
|
|
14
|
-
*/
|
|
15
8
|
orientationType: {
|
|
16
9
|
type: string;
|
|
17
10
|
model: import("mobx-state-tree").ISimpleType<string>;
|
|
18
11
|
defaultValue: string;
|
|
19
12
|
description: string;
|
|
20
13
|
};
|
|
21
|
-
/**
|
|
22
|
-
* #slot
|
|
23
|
-
*/
|
|
24
14
|
displayMode: {
|
|
25
15
|
type: string;
|
|
26
16
|
model: import("mobx-state-tree").ISimpleType<string>;
|
|
27
17
|
description: string;
|
|
28
18
|
defaultValue: string;
|
|
29
19
|
};
|
|
30
|
-
/**
|
|
31
|
-
* #slot
|
|
32
|
-
*/
|
|
33
20
|
minSubfeatureWidth: {
|
|
34
21
|
type: string;
|
|
35
22
|
description: string;
|
|
36
23
|
defaultValue: number;
|
|
37
24
|
};
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
25
|
+
hideSmallIndels: {
|
|
26
|
+
type: string;
|
|
27
|
+
description: string;
|
|
28
|
+
defaultValue: boolean;
|
|
29
|
+
};
|
|
41
30
|
maxHeight: {
|
|
42
31
|
type: string;
|
|
43
32
|
description: string;
|
|
44
33
|
defaultValue: number;
|
|
45
34
|
};
|
|
46
|
-
/**
|
|
47
|
-
* #slot
|
|
48
|
-
*/
|
|
49
35
|
maxClippingSize: {
|
|
50
36
|
type: string;
|
|
51
37
|
description: string;
|
|
52
38
|
defaultValue: number;
|
|
53
39
|
};
|
|
54
|
-
/**
|
|
55
|
-
* #slot
|
|
56
|
-
*/
|
|
57
40
|
height: {
|
|
58
41
|
type: string;
|
|
59
42
|
description: string;
|
|
60
43
|
defaultValue: number;
|
|
61
44
|
contextVariable: string[];
|
|
62
45
|
};
|
|
63
|
-
/**
|
|
64
|
-
* #slot
|
|
65
|
-
*/
|
|
66
46
|
noSpacing: {
|
|
67
47
|
type: string;
|
|
68
48
|
description: string;
|
|
69
49
|
defaultValue: boolean;
|
|
70
50
|
};
|
|
71
|
-
/**
|
|
72
|
-
* #slot
|
|
73
|
-
*/
|
|
74
51
|
largeInsertionIndicatorScale: {
|
|
75
52
|
type: string;
|
|
76
53
|
description: string;
|
|
77
54
|
defaultValue: number;
|
|
78
55
|
};
|
|
79
|
-
/**
|
|
80
|
-
* #slot
|
|
81
|
-
*/
|
|
82
56
|
mismatchAlpha: {
|
|
83
57
|
type: string;
|
|
84
58
|
defaultValue: boolean;
|
|
@@ -2,33 +2,20 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const configuration_1 = require("@jbrowse/core/configuration");
|
|
4
4
|
const mobx_state_tree_1 = require("mobx-state-tree");
|
|
5
|
-
|
|
6
|
-
* #config PileupRenderer
|
|
7
|
-
*/
|
|
8
|
-
function x() { } // eslint-disable-line @typescript-eslint/no-unused-vars
|
|
5
|
+
function x() { }
|
|
9
6
|
const PileupRenderer = (0, configuration_1.ConfigurationSchema)('PileupRenderer', {
|
|
10
|
-
/**
|
|
11
|
-
* #slot
|
|
12
|
-
* default magenta here is used to detect the user has not customized this
|
|
13
|
-
*/
|
|
14
7
|
color: {
|
|
15
8
|
type: 'color',
|
|
16
9
|
description: 'the color of each feature in a pileup alignment',
|
|
17
10
|
defaultValue: '#f0f',
|
|
18
11
|
contextVariable: ['feature'],
|
|
19
12
|
},
|
|
20
|
-
/**
|
|
21
|
-
* #slot
|
|
22
|
-
*/
|
|
23
13
|
orientationType: {
|
|
24
14
|
type: 'stringEnum',
|
|
25
15
|
model: mobx_state_tree_1.types.enumeration('orientationType', ['fr', 'rf', 'ff']),
|
|
26
16
|
defaultValue: 'fr',
|
|
27
17
|
description: 'read sequencer orientation. fr is normal "reads pointing at each other ---> <--- while some other sequencers can use other options',
|
|
28
18
|
},
|
|
29
|
-
/**
|
|
30
|
-
* #slot
|
|
31
|
-
*/
|
|
32
19
|
displayMode: {
|
|
33
20
|
type: 'stringEnum',
|
|
34
21
|
model: mobx_state_tree_1.types.enumeration('displayMode', [
|
|
@@ -39,58 +26,42 @@ const PileupRenderer = (0, configuration_1.ConfigurationSchema)('PileupRenderer'
|
|
|
39
26
|
description: 'Alternative display modes',
|
|
40
27
|
defaultValue: 'normal',
|
|
41
28
|
},
|
|
42
|
-
/**
|
|
43
|
-
* #slot
|
|
44
|
-
*/
|
|
45
29
|
minSubfeatureWidth: {
|
|
46
30
|
type: 'number',
|
|
47
31
|
description: 'the minimum width in px for a pileup mismatch feature. use for increasing/decreasing mismatch marker widths when zoomed out, e.g. 0 or 1',
|
|
48
32
|
defaultValue: 1,
|
|
49
33
|
},
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
34
|
+
hideSmallIndels: {
|
|
35
|
+
type: 'boolean',
|
|
36
|
+
description: 'Hides small indels, sometimes occurring in long read sequencing',
|
|
37
|
+
defaultValue: false,
|
|
38
|
+
},
|
|
53
39
|
maxHeight: {
|
|
54
40
|
type: 'integer',
|
|
55
41
|
description: 'the maximum height to be used in a pileup rendering',
|
|
56
42
|
defaultValue: 1200,
|
|
57
43
|
},
|
|
58
|
-
/**
|
|
59
|
-
* #slot
|
|
60
|
-
*/
|
|
61
44
|
maxClippingSize: {
|
|
62
45
|
type: 'integer',
|
|
63
46
|
description: 'the max clip size to be used in a pileup rendering',
|
|
64
47
|
defaultValue: 10000,
|
|
65
48
|
},
|
|
66
|
-
/**
|
|
67
|
-
* #slot
|
|
68
|
-
*/
|
|
69
49
|
height: {
|
|
70
50
|
type: 'number',
|
|
71
51
|
description: 'the height of each feature in a pileup alignment',
|
|
72
52
|
defaultValue: 7,
|
|
73
53
|
contextVariable: ['feature'],
|
|
74
54
|
},
|
|
75
|
-
/**
|
|
76
|
-
* #slot
|
|
77
|
-
*/
|
|
78
55
|
noSpacing: {
|
|
79
56
|
type: 'boolean',
|
|
80
57
|
description: 'remove spacing between features',
|
|
81
58
|
defaultValue: false,
|
|
82
59
|
},
|
|
83
|
-
/**
|
|
84
|
-
* #slot
|
|
85
|
-
*/
|
|
86
60
|
largeInsertionIndicatorScale: {
|
|
87
61
|
type: 'number',
|
|
88
62
|
description: 'scale at which to draw the large insertion indicators (bp/pixel)',
|
|
89
63
|
defaultValue: 10,
|
|
90
64
|
},
|
|
91
|
-
/**
|
|
92
|
-
* #slot
|
|
93
|
-
*/
|
|
94
65
|
mismatchAlpha: {
|
|
95
66
|
type: 'boolean',
|
|
96
67
|
defaultValue: false,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { AnyConfigurationModel } from '@jbrowse/core/configuration';
|
|
2
|
-
import { Feature } from '@jbrowse/core/util';
|
|
1
|
+
import type { AnyConfigurationModel } from '@jbrowse/core/configuration';
|
|
2
|
+
import type { Feature } from '@jbrowse/core/util';
|
|
3
3
|
export declare function getAlignmentShapeColor({ colorType, tag, feature, config, defaultColor, colorTagMap, }: {
|
|
4
4
|
colorType: string;
|
|
5
5
|
tag: string;
|
|
@@ -2,11 +2,9 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getAlignmentShapeColor = getAlignmentShapeColor;
|
|
4
4
|
const configuration_1 = require("@jbrowse/core/configuration");
|
|
5
|
-
const color_1 = require("../shared/color");
|
|
6
5
|
const colorBy_1 = require("./colorBy");
|
|
6
|
+
const color_1 = require("../shared/color");
|
|
7
7
|
function getAlignmentShapeColor({ colorType, tag, feature, config, defaultColor, colorTagMap, }) {
|
|
8
|
-
// first pass for simple color changes that change the color of the
|
|
9
|
-
// alignment
|
|
10
8
|
switch (colorType) {
|
|
11
9
|
case 'insertSize':
|
|
12
10
|
return (0, colorBy_1.colorByInsertSize)(feature);
|
|
@@ -54,9 +52,6 @@ function getAlignmentShapeColor({ colorType, tag, feature, config, defaultColor,
|
|
|
54
52
|
break;
|
|
55
53
|
case 'modifications':
|
|
56
54
|
case 'methylation':
|
|
57
|
-
// this coloring is similar to igv.js, and is helpful to color negative
|
|
58
|
-
// strand reads differently because their c-g will be flipped (e.g. g-c
|
|
59
|
-
// read right to left)
|
|
60
55
|
return feature.get('flags') & 16 ? '#c8dcc8' : '#c8c8c8';
|
|
61
56
|
default:
|
|
62
57
|
return defaultColor
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import PluginManager from '@jbrowse/core/PluginManager';
|
|
1
|
+
import type PluginManager from '@jbrowse/core/PluginManager';
|
|
2
2
|
export default function register(pluginManager: PluginManager): void;
|
|
@@ -5,8 +5,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.default = register;
|
|
7
7
|
const PileupRenderer_1 = __importDefault(require("./PileupRenderer"));
|
|
8
|
-
const configSchema_1 = __importDefault(require("./configSchema"));
|
|
9
8
|
const PileupRendering_1 = __importDefault(require("./components/PileupRendering"));
|
|
9
|
+
const configSchema_1 = __importDefault(require("./configSchema"));
|
|
10
10
|
function register(pluginManager) {
|
|
11
11
|
pluginManager.addRendererType(() => {
|
|
12
12
|
return new PileupRenderer_1.default({
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Feature, Region } from '@jbrowse/core/util';
|
|
2
|
-
import { BaseLayout } from '@jbrowse/core/util/layouts';
|
|
1
|
+
import type { Feature, Region } from '@jbrowse/core/util';
|
|
2
|
+
import type { BaseLayout } from '@jbrowse/core/util/layouts';
|
|
3
3
|
export interface LayoutRecord {
|
|
4
4
|
feature: Feature;
|
|
5
5
|
leftPx: number;
|
|
@@ -5,7 +5,6 @@ const util_1 = require("@jbrowse/core/util");
|
|
|
5
5
|
function layoutFeature({ feature, layout, bpPerPx, region, showSoftClip, heightPx, displayMode, }) {
|
|
6
6
|
let expansionBefore = 0;
|
|
7
7
|
let expansionAfter = 0;
|
|
8
|
-
// Expand the start and end of feature when softclipping enabled
|
|
9
8
|
if (showSoftClip) {
|
|
10
9
|
const mismatches = feature.get('mismatches');
|
|
11
10
|
const seq = feature.get('seq');
|
|
@@ -1,2 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare function layoutFeats(props:
|
|
1
|
+
import type { PreProcessedRenderArgs } from './types';
|
|
2
|
+
export declare function layoutFeats(props: PreProcessedRenderArgs): {
|
|
3
|
+
layoutRecords: import("./layoutFeature").LayoutRecord[];
|
|
4
|
+
height: number;
|
|
5
|
+
};
|
|
@@ -3,10 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.layoutFeats = layoutFeats;
|
|
4
4
|
const configuration_1 = require("@jbrowse/core/configuration");
|
|
5
5
|
const util_1 = require("@jbrowse/core/util");
|
|
6
|
-
// locals
|
|
7
6
|
const layoutFeature_1 = require("./layoutFeature");
|
|
8
7
|
const sortUtil_1 = require("./sortUtil");
|
|
9
|
-
// layout determines the height of the canvas that we use to render
|
|
10
8
|
function layoutFeats(props) {
|
|
11
9
|
const { layout, features, sortedBy, config, bpPerPx, showSoftClip, regions } = props;
|
|
12
10
|
const region = regions[0];
|
|
@@ -15,7 +13,7 @@ function layoutFeats(props) {
|
|
|
15
13
|
: features;
|
|
16
14
|
const heightPx = (0, configuration_1.readConfObject)(config, 'height');
|
|
17
15
|
const displayMode = (0, configuration_1.readConfObject)(config, 'displayMode');
|
|
18
|
-
|
|
16
|
+
const layoutRecords = (0, util_1.iterMap)(featureMap.values(), feature => (0, layoutFeature_1.layoutFeature)({
|
|
19
17
|
feature,
|
|
20
18
|
layout,
|
|
21
19
|
bpPerPx,
|
|
@@ -23,5 +21,9 @@ function layoutFeats(props) {
|
|
|
23
21
|
showSoftClip,
|
|
24
22
|
heightPx,
|
|
25
23
|
displayMode,
|
|
26
|
-
}), featureMap.size);
|
|
24
|
+
}), featureMap.size).filter(util_1.notEmpty);
|
|
25
|
+
return {
|
|
26
|
+
layoutRecords,
|
|
27
|
+
height: Math.max(layout.getTotalHeight(), 1),
|
|
28
|
+
};
|
|
27
29
|
}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
export type RenderArgsWithColor = RenderArgsDeserializedWithFeaturesAndLayout;
|
|
1
|
+
import type { ProcessedRenderArgs } from './types';
|
|
2
|
+
import type { Feature } from '@jbrowse/core/util';
|
|
4
3
|
interface LayoutFeature {
|
|
5
4
|
heightPx: number;
|
|
6
5
|
topPx: number;
|
|
@@ -10,6 +9,6 @@ export declare function makeImageData({ ctx, layoutRecords, canvasWidth, renderA
|
|
|
10
9
|
ctx: CanvasRenderingContext2D;
|
|
11
10
|
canvasWidth: number;
|
|
12
11
|
layoutRecords: LayoutFeature[];
|
|
13
|
-
renderArgs:
|
|
12
|
+
renderArgs: ProcessedRenderArgs;
|
|
14
13
|
}): undefined;
|
|
15
14
|
export {};
|
|
@@ -3,15 +3,17 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.makeImageData = makeImageData;
|
|
4
4
|
const configuration_1 = require("@jbrowse/core/configuration");
|
|
5
5
|
const ui_1 = require("@jbrowse/core/ui");
|
|
6
|
-
const
|
|
6
|
+
const stopToken_1 = require("@jbrowse/core/util/stopToken");
|
|
7
7
|
const renderAlignment_1 = require("./renderAlignment");
|
|
8
8
|
const renderMismatches_1 = require("./renderMismatches");
|
|
9
9
|
const renderSoftClipping_1 = require("./renderSoftClipping");
|
|
10
|
+
const util_1 = require("./util");
|
|
10
11
|
function makeImageData({ ctx, layoutRecords, canvasWidth, renderArgs, }) {
|
|
11
|
-
const { config, showSoftClip, colorBy, theme: configTheme } = renderArgs;
|
|
12
|
+
const { stopToken, config, showSoftClip, colorBy, theme: configTheme, } = renderArgs;
|
|
12
13
|
const mismatchAlpha = (0, configuration_1.readConfObject)(config, 'mismatchAlpha');
|
|
13
14
|
const minSubfeatureWidth = (0, configuration_1.readConfObject)(config, 'minSubfeatureWidth');
|
|
14
15
|
const largeInsertionIndicatorScale = (0, configuration_1.readConfObject)(config, 'largeInsertionIndicatorScale');
|
|
16
|
+
const hideSmallIndels = (0, configuration_1.readConfObject)(config, 'hideSmallIndels');
|
|
15
17
|
const defaultColor = (0, configuration_1.readConfObject)(config, 'color') === '#f0f';
|
|
16
18
|
const theme = (0, ui_1.createJBrowseTheme)(configTheme);
|
|
17
19
|
const colorForBase = (0, util_1.getColorBaseMap)(theme);
|
|
@@ -20,7 +22,12 @@ function makeImageData({ ctx, layoutRecords, canvasWidth, renderArgs, }) {
|
|
|
20
22
|
const { charWidth, charHeight } = (0, util_1.getCharWidthHeight)();
|
|
21
23
|
const drawSNPsMuted = (0, util_1.shouldDrawSNPsMuted)(colorBy === null || colorBy === void 0 ? void 0 : colorBy.type);
|
|
22
24
|
const drawIndels = (0, util_1.shouldDrawIndels)();
|
|
25
|
+
let start = performance.now();
|
|
23
26
|
for (const feat of layoutRecords) {
|
|
27
|
+
if (performance.now() - start > 400) {
|
|
28
|
+
(0, stopToken_1.checkStopToken)(stopToken);
|
|
29
|
+
start = performance.now();
|
|
30
|
+
}
|
|
24
31
|
(0, renderAlignment_1.renderAlignment)({
|
|
25
32
|
ctx,
|
|
26
33
|
feat,
|
|
@@ -36,6 +43,7 @@ function makeImageData({ ctx, layoutRecords, canvasWidth, renderArgs, }) {
|
|
|
36
43
|
ctx,
|
|
37
44
|
feat,
|
|
38
45
|
renderArgs,
|
|
46
|
+
hideSmallIndels,
|
|
39
47
|
mismatchAlpha,
|
|
40
48
|
drawSNPsMuted,
|
|
41
49
|
drawIndels,
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import type { ProcessedRenderArgs } from './types';
|
|
2
|
+
import type { LayoutFeature } from './util';
|
|
3
3
|
export declare function renderAlignment({ ctx, feat, renderArgs, colorForBase, contrastForBase, charWidth, charHeight, defaultColor, canvasWidth, }: {
|
|
4
4
|
ctx: CanvasRenderingContext2D;
|
|
5
5
|
feat: LayoutFeature;
|
|
6
|
-
renderArgs:
|
|
6
|
+
renderArgs: ProcessedRenderArgs;
|
|
7
7
|
colorForBase: Record<string, string>;
|
|
8
8
|
contrastForBase: Record<string, string>;
|
|
9
9
|
charWidth: number;
|
|
@@ -3,11 +3,11 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.renderAlignment = renderAlignment;
|
|
4
4
|
const getAlignmentShapeColor_1 = require("./getAlignmentShapeColor");
|
|
5
5
|
const renderAlignmentShape_1 = require("./renderAlignmentShape");
|
|
6
|
-
const renderPerBaseQuality_1 = require("./renderPerBaseQuality");
|
|
7
|
-
const renderPerBaseLettering_1 = require("./renderPerBaseLettering");
|
|
8
6
|
const renderModifications_1 = require("./renderModifications");
|
|
9
|
-
const
|
|
7
|
+
const renderPerBaseLettering_1 = require("./renderPerBaseLettering");
|
|
8
|
+
const renderPerBaseQuality_1 = require("./renderPerBaseQuality");
|
|
10
9
|
const MismatchParser_1 = require("../MismatchParser");
|
|
10
|
+
const renderMethylation_1 = require("./renderMethylation");
|
|
11
11
|
function renderAlignment({ ctx, feat, renderArgs, colorForBase, contrastForBase, charWidth, charHeight, defaultColor, canvasWidth, }) {
|
|
12
12
|
const { config, bpPerPx, regions, colorBy, colorTagMap = {} } = renderArgs;
|
|
13
13
|
const { tag = '', type: colorType = '' } = colorBy || {};
|
|
@@ -22,8 +22,6 @@ function renderAlignment({ ctx, feat, renderArgs, colorForBase, contrastForBase,
|
|
|
22
22
|
colorTagMap,
|
|
23
23
|
});
|
|
24
24
|
(0, renderAlignmentShape_1.renderAlignmentShape)({ ctx, feat, renderArgs });
|
|
25
|
-
// second pass for color types that render per-base things that go over the
|
|
26
|
-
// existing drawing
|
|
27
25
|
switch (colorType) {
|
|
28
26
|
case 'perBaseQuality': {
|
|
29
27
|
const cigarOps = (0, MismatchParser_1.parseCigar)(feature.get('CIGAR'));
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { LayoutFeature } from './util';
|
|
1
|
+
import type { ProcessedRenderArgs } from './types';
|
|
2
|
+
import type { LayoutFeature } from './util';
|
|
3
3
|
export declare function renderAlignmentShape({ ctx, feat, renderArgs, }: {
|
|
4
4
|
ctx: CanvasRenderingContext2D;
|
|
5
5
|
feat: LayoutFeature;
|
|
6
|
-
renderArgs:
|
|
6
|
+
renderArgs: ProcessedRenderArgs;
|
|
7
7
|
}): void;
|
|
@@ -13,7 +13,7 @@ function renderAlignmentShape({ ctx, feat, renderArgs, }) {
|
|
|
13
13
|
const flip = region.reversed ? -1 : 1;
|
|
14
14
|
const strand = feature.get('strand') * flip;
|
|
15
15
|
const renderChevrons = bpPerPx < 10 && heightPx > 5;
|
|
16
|
-
if (CIGAR.includes('N')) {
|
|
16
|
+
if (CIGAR === null || CIGAR === void 0 ? void 0 : CIGAR.includes('N')) {
|
|
17
17
|
const cigarOps = (0, MismatchParser_1.parseCigar)(CIGAR);
|
|
18
18
|
if (strand === 1) {
|
|
19
19
|
let drawLen = 0;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { LayoutFeature } from './util';
|
|
3
|
-
import {
|
|
1
|
+
import type { ProcessedRenderArgs } from './types';
|
|
2
|
+
import type { LayoutFeature } from './util';
|
|
3
|
+
import type { Region } from '@jbrowse/core/util';
|
|
4
4
|
export declare function renderMethylation({ ctx, feat, region, bpPerPx, renderArgs, canvasWidth, cigarOps, }: {
|
|
5
5
|
ctx: CanvasRenderingContext2D;
|
|
6
6
|
feat: LayoutFeature;
|
|
7
7
|
region: Region;
|
|
8
8
|
bpPerPx: number;
|
|
9
|
-
renderArgs:
|
|
9
|
+
renderArgs: ProcessedRenderArgs;
|
|
10
10
|
canvasWidth: number;
|
|
11
11
|
cigarOps: string[];
|
|
12
12
|
}): void;
|
|
@@ -3,12 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.renderMethylation = renderMethylation;
|
|
4
4
|
const util_1 = require("@jbrowse/core/util");
|
|
5
5
|
const colord_1 = require("@jbrowse/core/util/colord");
|
|
6
|
-
// locals
|
|
7
6
|
const util_2 = require("./util");
|
|
8
7
|
const ModificationParser_1 = require("../ModificationParser");
|
|
9
|
-
// Color by methylation is slightly modified version of color by modifications
|
|
10
|
-
// at reference CpG sites, with non-methylated CpG colored (looking only at the
|
|
11
|
-
// MM tag can not tell you where reference CpG sites are)
|
|
12
8
|
function renderMethylation({ ctx, feat, region, bpPerPx, renderArgs, canvasWidth, cigarOps, }) {
|
|
13
9
|
const { regionSequence } = renderArgs;
|
|
14
10
|
const { feature, topPx, heightPx } = feat;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
export declare function renderMismatches({ ctx, feat, renderArgs, minSubfeatureWidth, largeInsertionIndicatorScale, mismatchAlpha, charWidth, charHeight, colorForBase, contrastForBase, canvasWidth, drawSNPsMuted, drawIndels, }: {
|
|
1
|
+
import type { ProcessedRenderArgs } from './types';
|
|
2
|
+
import type { LayoutFeature } from './util';
|
|
3
|
+
export declare function renderMismatches({ ctx, feat, renderArgs, minSubfeatureWidth, largeInsertionIndicatorScale, mismatchAlpha, charWidth, charHeight, colorForBase, contrastForBase, hideSmallIndels, canvasWidth, drawSNPsMuted, drawIndels, }: {
|
|
4
4
|
ctx: CanvasRenderingContext2D;
|
|
5
5
|
feat: LayoutFeature;
|
|
6
|
-
renderArgs:
|
|
6
|
+
renderArgs: ProcessedRenderArgs;
|
|
7
7
|
colorForBase: Record<string, string>;
|
|
8
8
|
contrastForBase: Record<string, string>;
|
|
9
9
|
mismatchAlpha?: boolean;
|
|
@@ -11,6 +11,7 @@ export declare function renderMismatches({ ctx, feat, renderArgs, minSubfeatureW
|
|
|
11
11
|
drawSNPsMuted?: boolean;
|
|
12
12
|
minSubfeatureWidth: number;
|
|
13
13
|
largeInsertionIndicatorScale: number;
|
|
14
|
+
hideSmallIndels: boolean;
|
|
14
15
|
charWidth: number;
|
|
15
16
|
charHeight: number;
|
|
16
17
|
canvasWidth: number;
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.renderMismatches = renderMismatches;
|
|
4
4
|
const util_1 = require("@jbrowse/core/util");
|
|
5
|
-
const util_2 = require("./util");
|
|
6
5
|
const colord_1 = require("@jbrowse/core/util/colord");
|
|
7
|
-
|
|
6
|
+
const util_2 = require("./util");
|
|
7
|
+
function renderMismatches({ ctx, feat, renderArgs, minSubfeatureWidth, largeInsertionIndicatorScale, mismatchAlpha, charWidth, charHeight, colorForBase, contrastForBase, hideSmallIndels, canvasWidth, drawSNPsMuted, drawIndels = true, }) {
|
|
8
8
|
const { bpPerPx, regions } = renderArgs;
|
|
9
9
|
const { heightPx, topPx, feature } = feat;
|
|
10
10
|
const region = regions[0];
|
|
@@ -12,14 +12,10 @@ function renderMismatches({ ctx, feat, renderArgs, minSubfeatureWidth, largeInse
|
|
|
12
12
|
const pxPerBp = Math.min(1 / bpPerPx, 2);
|
|
13
13
|
const mismatches = feature.get('mismatches');
|
|
14
14
|
const heightLim = charHeight - 2;
|
|
15
|
-
// extraHorizontallyFlippedOffset is used to draw interbase items, which are
|
|
16
|
-
// located to the left when forward and right when reversed
|
|
17
15
|
const extraHorizontallyFlippedOffset = region.reversed ? 1 / bpPerPx + 1 : -1;
|
|
18
16
|
if (!mismatches) {
|
|
19
17
|
return;
|
|
20
18
|
}
|
|
21
|
-
// two pass rendering: first pass, draw all the mismatches except wide
|
|
22
|
-
// insertion markers
|
|
23
19
|
for (const mismatch of mismatches) {
|
|
24
20
|
const mstart = start + mismatch.start;
|
|
25
21
|
const mlen = mismatch.length;
|
|
@@ -37,7 +33,6 @@ function renderMismatches({ ctx, feat, renderArgs, minSubfeatureWidth, largeInse
|
|
|
37
33
|
(0, util_2.fillRect)(ctx, Math.round(leftPx), topPx, widthPx, heightPx, canvasWidth, c);
|
|
38
34
|
}
|
|
39
35
|
if (widthPx >= charWidth && heightPx >= heightLim) {
|
|
40
|
-
// normal SNP coloring
|
|
41
36
|
const contrastColor = drawSNPsMuted
|
|
42
37
|
? 'black'
|
|
43
38
|
: contrastForBase[mismatch.base] || 'black';
|
|
@@ -51,12 +46,15 @@ function renderMismatches({ ctx, feat, renderArgs, minSubfeatureWidth, largeInse
|
|
|
51
46
|
}
|
|
52
47
|
}
|
|
53
48
|
else if (mismatch.type === 'deletion' && drawIndels) {
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
49
|
+
const len = mismatch.length;
|
|
50
|
+
if (!hideSmallIndels || len >= 10) {
|
|
51
|
+
(0, util_2.fillRect)(ctx, leftPx, topPx, Math.abs(leftPx - rightPx), heightPx, canvasWidth, colorForBase.deletion);
|
|
52
|
+
const txt = `${mismatch.length}`;
|
|
53
|
+
const rwidth = (0, util_1.measureText)(txt, 10);
|
|
54
|
+
if (widthPx >= rwidth && heightPx >= heightLim) {
|
|
55
|
+
ctx.fillStyle = contrastForBase.deletion;
|
|
56
|
+
ctx.fillText(txt, (leftPx + rightPx) / 2 - rwidth / 2, topPx + heightPx);
|
|
57
|
+
}
|
|
60
58
|
}
|
|
61
59
|
}
|
|
62
60
|
else if (mismatch.type === 'insertion' && drawIndels) {
|
|
@@ -64,12 +62,14 @@ function renderMismatches({ ctx, feat, renderArgs, minSubfeatureWidth, largeInse
|
|
|
64
62
|
const len = +mismatch.base || mismatch.length;
|
|
65
63
|
const insW = Math.max(0, Math.min(1.2, 1 / bpPerPx));
|
|
66
64
|
if (len < 10) {
|
|
67
|
-
(
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
65
|
+
if (!hideSmallIndels) {
|
|
66
|
+
(0, util_2.fillRect)(ctx, pos, topPx, insW, heightPx, canvasWidth, 'purple');
|
|
67
|
+
if (1 / bpPerPx >= charWidth && heightPx >= heightLim) {
|
|
68
|
+
const l = Math.round(pos - insW);
|
|
69
|
+
(0, util_2.fillRect)(ctx, l, topPx, insW * 3, 1, canvasWidth);
|
|
70
|
+
(0, util_2.fillRect)(ctx, l, topPx + heightPx - 1, insW * 3, 1, canvasWidth);
|
|
71
|
+
ctx.fillText(`(${mismatch.base})`, pos + 3, topPx + heightPx);
|
|
72
|
+
}
|
|
73
73
|
}
|
|
74
74
|
}
|
|
75
75
|
}
|
|
@@ -86,12 +86,7 @@ function renderMismatches({ ctx, feat, renderArgs, minSubfeatureWidth, largeInse
|
|
|
86
86
|
}
|
|
87
87
|
}
|
|
88
88
|
else if (mismatch.type === 'skip') {
|
|
89
|
-
// fix to avoid bad rendering note that this was also related to chrome
|
|
90
|
-
// bug https://bugs.chromium.org/p/chromium/issues/detail?id=1131528
|
|
91
|
-
//
|
|
92
|
-
// also affected firefox ref #1236 #2750
|
|
93
89
|
if (leftPx + widthPx > 0) {
|
|
94
|
-
// make small exons more visible when zoomed far out
|
|
95
90
|
const adjustPx = widthPx - (bpPerPx > 10 ? 1.5 : 0);
|
|
96
91
|
const l = Math.max(0, leftPx);
|
|
97
92
|
const t = topPx + heightPx / 2 - 1;
|
|
@@ -101,7 +96,6 @@ function renderMismatches({ ctx, feat, renderArgs, minSubfeatureWidth, largeInse
|
|
|
101
96
|
}
|
|
102
97
|
}
|
|
103
98
|
}
|
|
104
|
-
// second pass, draw wide insertion markers on top
|
|
105
99
|
if (drawIndels) {
|
|
106
100
|
for (const mismatch of mismatches) {
|
|
107
101
|
const mstart = start + mismatch.start;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
+
import type { ProcessedRenderArgs } from './types';
|
|
2
|
+
import type { LayoutFeature } from './util';
|
|
1
3
|
import type { Region } from '@jbrowse/core/util';
|
|
2
|
-
import { LayoutFeature } from './util';
|
|
3
|
-
import { RenderArgsWithColor } from './makeImageData';
|
|
4
4
|
export declare function renderModifications({ ctx, feat, region, bpPerPx, renderArgs, canvasWidth, cigarOps, }: {
|
|
5
5
|
ctx: CanvasRenderingContext2D;
|
|
6
6
|
feat: LayoutFeature;
|
|
7
7
|
region: Region;
|
|
8
8
|
bpPerPx: number;
|
|
9
|
-
renderArgs:
|
|
9
|
+
renderArgs: ProcessedRenderArgs;
|
|
10
10
|
canvasWidth: number;
|
|
11
11
|
cigarOps: string[];
|
|
12
12
|
}): void;
|
|
@@ -2,11 +2,9 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.renderModifications = renderModifications;
|
|
4
4
|
const util_1 = require("@jbrowse/core/util");
|
|
5
|
-
// locals
|
|
6
5
|
const util_2 = require("./util");
|
|
7
|
-
const util_3 = require("../shared/util");
|
|
8
6
|
const getMaximumModificationAtEachPosition_1 = require("../shared/getMaximumModificationAtEachPosition");
|
|
9
|
-
|
|
7
|
+
const util_3 = require("../shared/util");
|
|
10
8
|
function renderModifications({ ctx, feat, region, bpPerPx, renderArgs, canvasWidth, cigarOps, }) {
|
|
11
9
|
var _a, _b, _c;
|
|
12
10
|
const { feature, topPx, heightPx } = feat;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import type { LayoutFeature } from './util';
|
|
2
|
+
import type { Region } from '@jbrowse/core/util';
|
|
3
3
|
export declare function renderPerBaseLettering({ ctx, feat, region, bpPerPx, colorForBase, contrastForBase, charWidth, charHeight, canvasWidth, cigarOps, }: {
|
|
4
4
|
ctx: CanvasRenderingContext2D;
|
|
5
5
|
feat: LayoutFeature;
|
|
@@ -31,7 +31,6 @@ function renderPerBaseLettering({ ctx, feat, region, bpPerPx, colorForBase, cont
|
|
|
31
31
|
const c = colorForBase[letter];
|
|
32
32
|
(0, util_2.fillRect)(ctx, leftPx, topPx, w + 0.5, heightPx, canvasWidth, c);
|
|
33
33
|
if (w >= charWidth && heightPx >= heightLim) {
|
|
34
|
-
// normal SNP coloring
|
|
35
34
|
ctx.fillStyle = contrastForBase[letter];
|
|
36
35
|
ctx.fillText(letter, leftPx + (w - charWidth) / 2 + 1, topPx + heightPx);
|
|
37
36
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import type { LayoutFeature } from './util';
|
|
2
|
+
import type { Region } from '@jbrowse/core/util';
|
|
3
3
|
export declare function renderPerBaseQuality({ ctx, feat, region, bpPerPx, canvasWidth, cigarOps, }: {
|
|
4
4
|
ctx: CanvasRenderingContext2D;
|
|
5
5
|
feat: LayoutFeature;
|
|
@@ -9,8 +9,8 @@ function renderPerBaseQuality({ ctx, feat, region, bpPerPx, canvasWidth, cigarOp
|
|
|
9
9
|
const scores = qual.split(' ').map(val => +val);
|
|
10
10
|
const w = 1 / bpPerPx;
|
|
11
11
|
const start = feature.get('start');
|
|
12
|
-
let soffset = 0;
|
|
13
|
-
let roffset = 0;
|
|
12
|
+
let soffset = 0;
|
|
13
|
+
let roffset = 0;
|
|
14
14
|
for (let i = 0; i < cigarOps.length; i += 2) {
|
|
15
15
|
const len = +cigarOps[i];
|
|
16
16
|
const op = cigarOps[i + 1];
|