@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
|
@@ -0,0 +1,267 @@
|
|
|
1
|
+
import { readConfObject } from '@jbrowse/core/configuration';
|
|
2
|
+
import { createJBrowseTheme } from '@jbrowse/core/ui';
|
|
3
|
+
import { bpSpanPx, featureSpanPx } from '@jbrowse/core/util';
|
|
4
|
+
import { checkStopToken } from '@jbrowse/core/util/stopToken';
|
|
5
|
+
import { YSCALEBAR_LABEL_OFFSET, getOrigin, getScale, } from '@jbrowse/plugin-wiggle';
|
|
6
|
+
import { alphaColor } from '../shared/util';
|
|
7
|
+
const INTERBASE_INDICATOR_WIDTH = 7;
|
|
8
|
+
const INTERBASE_INDICATOR_HEIGHT = 4.5;
|
|
9
|
+
const MINIMUM_INTERBASE_INDICATOR_READ_DEPTH = 7;
|
|
10
|
+
const complementBase = {
|
|
11
|
+
C: 'G',
|
|
12
|
+
G: 'C',
|
|
13
|
+
A: 'T',
|
|
14
|
+
T: 'A',
|
|
15
|
+
};
|
|
16
|
+
const fudgeFactor = 0.6;
|
|
17
|
+
export async function makeImage(ctx, props) {
|
|
18
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
19
|
+
const { features, regions, bpPerPx, colorBy, displayCrossHatches, visibleModifications = {}, scaleOpts, height: unadjustedHeight, theme: configTheme, config: cfg, ticks, stopToken, } = props;
|
|
20
|
+
const theme = createJBrowseTheme(configTheme);
|
|
21
|
+
const region = regions[0];
|
|
22
|
+
const width = (region.end - region.start) / bpPerPx;
|
|
23
|
+
const offset = YSCALEBAR_LABEL_OFFSET;
|
|
24
|
+
const height = unadjustedHeight - offset * 2;
|
|
25
|
+
const opts = { ...scaleOpts, range: [0, height] };
|
|
26
|
+
const viewScale = getScale(opts);
|
|
27
|
+
const indicatorViewScale = getScale({
|
|
28
|
+
...opts,
|
|
29
|
+
range: [0, height / 2],
|
|
30
|
+
scaleType: 'linear',
|
|
31
|
+
});
|
|
32
|
+
const originY = getOrigin(scaleOpts.scaleType);
|
|
33
|
+
const originLinear = getOrigin('linear');
|
|
34
|
+
const indicatorThreshold = readConfObject(cfg, 'indicatorThreshold');
|
|
35
|
+
const showInterbaseCounts = readConfObject(cfg, 'showInterbaseCounts');
|
|
36
|
+
const showArcs = readConfObject(cfg, 'showArcs');
|
|
37
|
+
const showInterbaseIndicators = readConfObject(cfg, 'showInterbaseIndicators');
|
|
38
|
+
const toY = (n) => height - (viewScale(n) || 0) + offset;
|
|
39
|
+
const toHeight = (n) => toY(originY) - toY(n);
|
|
40
|
+
const toY2 = (n) => height - (indicatorViewScale(n) || 0) + offset;
|
|
41
|
+
const toHeight2 = (n) => toY2(originLinear) - toY2(n);
|
|
42
|
+
const { bases } = theme.palette;
|
|
43
|
+
const colorForBase = {
|
|
44
|
+
A: bases.A.main,
|
|
45
|
+
C: bases.C.main,
|
|
46
|
+
G: bases.G.main,
|
|
47
|
+
T: bases.T.main,
|
|
48
|
+
insertion: 'purple',
|
|
49
|
+
softclip: 'blue',
|
|
50
|
+
hardclip: 'red',
|
|
51
|
+
total: readConfObject(cfg, 'color'),
|
|
52
|
+
mod_NONE: 'blue',
|
|
53
|
+
cpg_meth: 'red',
|
|
54
|
+
cpg_unmeth: 'blue',
|
|
55
|
+
};
|
|
56
|
+
const feats = [...features.values()];
|
|
57
|
+
ctx.fillStyle = colorForBase.total;
|
|
58
|
+
let start = performance.now();
|
|
59
|
+
for (const feature of feats) {
|
|
60
|
+
if (feature.get('type') === 'skip') {
|
|
61
|
+
continue;
|
|
62
|
+
}
|
|
63
|
+
const [leftPx, rightPx] = featureSpanPx(feature, region, bpPerPx);
|
|
64
|
+
const w = rightPx - leftPx + fudgeFactor;
|
|
65
|
+
const score = feature.get('score');
|
|
66
|
+
ctx.fillRect(leftPx, toY(score), w, toHeight(score));
|
|
67
|
+
if (performance.now() - start > 400) {
|
|
68
|
+
checkStopToken(stopToken);
|
|
69
|
+
start = performance.now();
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
let prevTotal = 0;
|
|
73
|
+
const extraHorizontallyFlippedOffset = region.reversed ? 1 / bpPerPx : 0;
|
|
74
|
+
const drawingModifications = colorBy.type === 'modifications';
|
|
75
|
+
const drawingMethylation = colorBy.type === 'methylation';
|
|
76
|
+
const isolatedModification = (_a = colorBy.modifications) === null || _a === void 0 ? void 0 : _a.isolatedModification;
|
|
77
|
+
start = performance.now();
|
|
78
|
+
for (const feature of feats) {
|
|
79
|
+
const now = performance.now();
|
|
80
|
+
if (now - start > 400) {
|
|
81
|
+
checkStopToken(stopToken);
|
|
82
|
+
}
|
|
83
|
+
if (feature.get('type') === 'skip') {
|
|
84
|
+
continue;
|
|
85
|
+
}
|
|
86
|
+
const [leftPx, rightPx] = featureSpanPx(feature, region, bpPerPx);
|
|
87
|
+
const snpinfo = feature.get('snpinfo');
|
|
88
|
+
const w = Math.max(rightPx - leftPx, 1);
|
|
89
|
+
const score0 = feature.get('score');
|
|
90
|
+
if (drawingModifications) {
|
|
91
|
+
let curr = 0;
|
|
92
|
+
const refbase = (_b = snpinfo.refbase) === null || _b === void 0 ? void 0 : _b.toUpperCase();
|
|
93
|
+
const { nonmods, mods, snps, ref } = snpinfo;
|
|
94
|
+
for (const m of Object.keys(nonmods).sort().reverse()) {
|
|
95
|
+
const mod = visibleModifications[m.replace('nonmod_', '')] ||
|
|
96
|
+
visibleModifications[m.replace('mod_', '')];
|
|
97
|
+
if (!mod) {
|
|
98
|
+
console.warn(`${m} not known yet`);
|
|
99
|
+
continue;
|
|
100
|
+
}
|
|
101
|
+
if (isolatedModification && mod.type !== isolatedModification) {
|
|
102
|
+
continue;
|
|
103
|
+
}
|
|
104
|
+
const cmp = complementBase[mod.base];
|
|
105
|
+
const detectable = mod.base === 'N'
|
|
106
|
+
? score0
|
|
107
|
+
: (((_c = snps[mod.base]) === null || _c === void 0 ? void 0 : _c.entryDepth) || 0) +
|
|
108
|
+
(((_d = snps[cmp]) === null || _d === void 0 ? void 0 : _d.entryDepth) || 0) +
|
|
109
|
+
(refbase === mod.base ? ref['1'] : 0) +
|
|
110
|
+
(refbase === cmp ? ref['-1'] : 0);
|
|
111
|
+
const modifiable = mod.base === 'N'
|
|
112
|
+
? score0
|
|
113
|
+
: (((_e = snps[mod.base]) === null || _e === void 0 ? void 0 : _e.entryDepth) || 0) +
|
|
114
|
+
(((_f = snps[cmp]) === null || _f === void 0 ? void 0 : _f.entryDepth) || 0) +
|
|
115
|
+
(refbase === mod.base ? ref.entryDepth : 0) +
|
|
116
|
+
(refbase === cmp ? ref.entryDepth : 0);
|
|
117
|
+
const { entryDepth, avgProbability = 0 } = snpinfo.nonmods[m];
|
|
118
|
+
const modFraction = (modifiable / score0) * (entryDepth / detectable);
|
|
119
|
+
const nonModColor = 'blue';
|
|
120
|
+
const c = alphaColor(nonModColor, avgProbability);
|
|
121
|
+
const height = toHeight(score0);
|
|
122
|
+
const bottom = toY(score0) + height;
|
|
123
|
+
ctx.fillStyle = c;
|
|
124
|
+
ctx.fillRect(Math.round(leftPx), bottom - (curr + modFraction * height), w, modFraction * height);
|
|
125
|
+
curr += modFraction * height;
|
|
126
|
+
}
|
|
127
|
+
for (const m of Object.keys(mods).sort().reverse()) {
|
|
128
|
+
const mod = visibleModifications[m.replace('mod_', '')];
|
|
129
|
+
if (!mod) {
|
|
130
|
+
console.warn(`${m} not known yet`);
|
|
131
|
+
continue;
|
|
132
|
+
}
|
|
133
|
+
if (isolatedModification && mod.type !== isolatedModification) {
|
|
134
|
+
continue;
|
|
135
|
+
}
|
|
136
|
+
const cmp = complementBase[mod.base];
|
|
137
|
+
const detectable = mod.base === 'N'
|
|
138
|
+
? score0
|
|
139
|
+
: (((_g = snps[mod.base]) === null || _g === void 0 ? void 0 : _g.entryDepth) || 0) +
|
|
140
|
+
(((_h = snps[cmp]) === null || _h === void 0 ? void 0 : _h.entryDepth) || 0) +
|
|
141
|
+
(refbase === mod.base ? ref['1'] : 0) +
|
|
142
|
+
(refbase === cmp ? ref['-1'] : 0);
|
|
143
|
+
const modifiable = mod.base === 'N'
|
|
144
|
+
? score0
|
|
145
|
+
: (((_j = snps[mod.base]) === null || _j === void 0 ? void 0 : _j.entryDepth) || 0) +
|
|
146
|
+
(((_k = snps[cmp]) === null || _k === void 0 ? void 0 : _k.entryDepth) || 0) +
|
|
147
|
+
(refbase === mod.base ? ref.entryDepth : 0) +
|
|
148
|
+
(refbase === cmp ? ref.entryDepth : 0);
|
|
149
|
+
const { entryDepth, avgProbability = 0 } = mods[m];
|
|
150
|
+
const modFraction = (modifiable / score0) * (entryDepth / detectable);
|
|
151
|
+
const baseColor = mod.color || 'black';
|
|
152
|
+
const c = alphaColor(baseColor, avgProbability);
|
|
153
|
+
const height = toHeight(score0);
|
|
154
|
+
const bottom = toY(score0) + height;
|
|
155
|
+
ctx.fillStyle = c;
|
|
156
|
+
ctx.fillRect(Math.round(leftPx), bottom - (curr + modFraction * height), w, modFraction * height);
|
|
157
|
+
curr += modFraction * height;
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
else if (drawingMethylation) {
|
|
161
|
+
const { depth, nonmods, mods } = snpinfo;
|
|
162
|
+
let curr = 0;
|
|
163
|
+
for (const base of Object.keys(mods).sort().reverse()) {
|
|
164
|
+
const { entryDepth } = mods[base];
|
|
165
|
+
const height = toHeight(score0);
|
|
166
|
+
const bottom = toY(score0) + height;
|
|
167
|
+
ctx.fillStyle = colorForBase[base] || 'black';
|
|
168
|
+
ctx.fillRect(Math.round(leftPx), bottom - ((entryDepth + curr) / depth) * height, w, (entryDepth / depth) * height);
|
|
169
|
+
curr += entryDepth;
|
|
170
|
+
}
|
|
171
|
+
for (const base of Object.keys(nonmods).sort().reverse()) {
|
|
172
|
+
const { entryDepth } = nonmods[base];
|
|
173
|
+
const height = toHeight(score0);
|
|
174
|
+
const bottom = toY(score0) + height;
|
|
175
|
+
ctx.fillStyle = colorForBase[base] || 'black';
|
|
176
|
+
ctx.fillRect(Math.round(leftPx), bottom - ((entryDepth + curr) / depth) * height, w, (entryDepth / depth) * height);
|
|
177
|
+
curr += entryDepth;
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
else {
|
|
181
|
+
const { depth, snps } = snpinfo;
|
|
182
|
+
let curr = 0;
|
|
183
|
+
for (const base of Object.keys(snps).sort().reverse()) {
|
|
184
|
+
const { entryDepth } = snps[base];
|
|
185
|
+
const height = toHeight(score0);
|
|
186
|
+
const bottom = toY(score0) + height;
|
|
187
|
+
ctx.fillStyle = colorForBase[base] || 'black';
|
|
188
|
+
ctx.fillRect(Math.round(leftPx), bottom - ((entryDepth + curr) / depth) * height, w, (entryDepth / depth) * height);
|
|
189
|
+
curr += entryDepth;
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
const interbaseEvents = Object.keys(snpinfo.noncov);
|
|
193
|
+
if (showInterbaseCounts) {
|
|
194
|
+
let curr = 0;
|
|
195
|
+
for (const base of interbaseEvents) {
|
|
196
|
+
const { entryDepth } = snpinfo.noncov[base];
|
|
197
|
+
const r = 0.6;
|
|
198
|
+
ctx.fillStyle = colorForBase[base];
|
|
199
|
+
ctx.fillRect(leftPx - r + extraHorizontallyFlippedOffset, INTERBASE_INDICATOR_HEIGHT + toHeight2(curr), r * 2, toHeight2(entryDepth));
|
|
200
|
+
curr += entryDepth;
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
if (showInterbaseIndicators) {
|
|
204
|
+
let accum = 0;
|
|
205
|
+
let max = 0;
|
|
206
|
+
let maxBase = '';
|
|
207
|
+
for (const base of interbaseEvents) {
|
|
208
|
+
const { entryDepth } = snpinfo.noncov[base];
|
|
209
|
+
accum += entryDepth;
|
|
210
|
+
if (entryDepth > max) {
|
|
211
|
+
max = entryDepth;
|
|
212
|
+
maxBase = base;
|
|
213
|
+
}
|
|
214
|
+
}
|
|
215
|
+
const indicatorComparatorScore = Math.max(score0, prevTotal);
|
|
216
|
+
if (accum > indicatorComparatorScore * indicatorThreshold &&
|
|
217
|
+
indicatorComparatorScore > MINIMUM_INTERBASE_INDICATOR_READ_DEPTH) {
|
|
218
|
+
ctx.fillStyle = colorForBase[maxBase];
|
|
219
|
+
ctx.beginPath();
|
|
220
|
+
const l = leftPx + extraHorizontallyFlippedOffset;
|
|
221
|
+
ctx.moveTo(l - INTERBASE_INDICATOR_WIDTH / 2, 0);
|
|
222
|
+
ctx.lineTo(l + INTERBASE_INDICATOR_WIDTH / 2, 0);
|
|
223
|
+
ctx.lineTo(l, INTERBASE_INDICATOR_HEIGHT);
|
|
224
|
+
ctx.fill();
|
|
225
|
+
}
|
|
226
|
+
}
|
|
227
|
+
prevTotal = score0;
|
|
228
|
+
}
|
|
229
|
+
if (showArcs) {
|
|
230
|
+
for (const f of feats) {
|
|
231
|
+
if (f.get('type') !== 'skip') {
|
|
232
|
+
continue;
|
|
233
|
+
}
|
|
234
|
+
const s = f.get('start');
|
|
235
|
+
const e = f.get('end');
|
|
236
|
+
const [left, right] = bpSpanPx(s, e, region, bpPerPx);
|
|
237
|
+
ctx.beginPath();
|
|
238
|
+
const effectiveStrand = f.get('effectiveStrand');
|
|
239
|
+
const pos = 'rgba(255,200,200,0.7)';
|
|
240
|
+
const neg = 'rgba(200,200,255,0.7)';
|
|
241
|
+
const neutral = 'rgba(200,200,200,0.7)';
|
|
242
|
+
if (effectiveStrand === 1) {
|
|
243
|
+
ctx.strokeStyle = pos;
|
|
244
|
+
}
|
|
245
|
+
else if (effectiveStrand === -1) {
|
|
246
|
+
ctx.strokeStyle = neg;
|
|
247
|
+
}
|
|
248
|
+
else {
|
|
249
|
+
ctx.strokeStyle = neutral;
|
|
250
|
+
}
|
|
251
|
+
ctx.lineWidth = Math.log(f.get('score') + 1);
|
|
252
|
+
ctx.moveTo(left, height - offset * 2);
|
|
253
|
+
ctx.bezierCurveTo(left, 0, right, 0, right, height - offset * 2);
|
|
254
|
+
ctx.stroke();
|
|
255
|
+
}
|
|
256
|
+
}
|
|
257
|
+
if (displayCrossHatches) {
|
|
258
|
+
ctx.lineWidth = 1;
|
|
259
|
+
ctx.strokeStyle = 'rgba(140,140,140,0.8)';
|
|
260
|
+
for (const tick of ticks.values) {
|
|
261
|
+
ctx.beginPath();
|
|
262
|
+
ctx.moveTo(0, Math.round(toY(tick)));
|
|
263
|
+
ctx.lineTo(width, Math.round(toY(tick)));
|
|
264
|
+
ctx.stroke();
|
|
265
|
+
}
|
|
266
|
+
}
|
|
267
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { ColorBy, ModificationTypeWithColor } from '../shared/types';
|
|
2
|
+
import type { RenderArgsDeserialized as FeatureRenderArgsDeserialized } from '@jbrowse/core/pluggableElementTypes/renderers/FeatureRendererType';
|
|
3
|
+
import type { Feature } from '@jbrowse/core/util';
|
|
4
|
+
import type { ScaleOpts } from '@jbrowse/plugin-wiggle';
|
|
5
|
+
export interface RenderArgsDeserialized extends FeatureRenderArgsDeserialized {
|
|
6
|
+
bpPerPx: number;
|
|
7
|
+
height: number;
|
|
8
|
+
highResolutionScaling: number;
|
|
9
|
+
scaleOpts: ScaleOpts;
|
|
10
|
+
}
|
|
11
|
+
export interface RenderArgsDeserializedWithFeatures extends RenderArgsDeserialized {
|
|
12
|
+
features: Map<string, Feature>;
|
|
13
|
+
ticks: {
|
|
14
|
+
values: number[];
|
|
15
|
+
};
|
|
16
|
+
displayCrossHatches: boolean;
|
|
17
|
+
visibleModifications?: Record<string, ModificationTypeWithColor>;
|
|
18
|
+
colorBy: ColorBy;
|
|
19
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/esm/index.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import Plugin from '@jbrowse/core/Plugin';
|
|
2
|
-
import PluginManager from '@jbrowse/core/PluginManager';
|
|
2
|
+
import type PluginManager from '@jbrowse/core/PluginManager';
|
|
3
3
|
export default class AlignmentsPlugin extends Plugin {
|
|
4
4
|
name: string;
|
|
5
5
|
install(pluginManager: PluginManager): void;
|
|
6
6
|
}
|
|
7
|
-
export {
|
|
7
|
+
export { SharedLinearPileupDisplayMixin, linearPileupDisplayConfigSchemaFactory, linearPileupDisplayStateModelFactory, } from './LinearPileupDisplay';
|
|
8
8
|
export { type LinearPileupDisplayModel } from './LinearPileupDisplay/model';
|
|
9
9
|
export * as MismatchParser from './MismatchParser';
|
package/esm/index.js
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import Plugin from '@jbrowse/core/Plugin';
|
|
2
|
-
import
|
|
2
|
+
import AlignmentsFeatureWidgetF from './AlignmentsFeatureDetail';
|
|
3
|
+
import AlignmentsTrackF from './AlignmentsTrack';
|
|
3
4
|
import CramAdapterF from './BamAdapter';
|
|
5
|
+
import BamAdapterF from './CramAdapter';
|
|
6
|
+
import GuessAlignmentsTypesF from './GuessAlignmentsTypes';
|
|
4
7
|
import HtsgetBamAdapterF from './HtsgetBamAdapter';
|
|
5
|
-
import SNPCoverageAdapterF from './SNPCoverageAdapter';
|
|
6
|
-
import SNPCoverageRendererF from './SNPCoverageRenderer';
|
|
7
|
-
import PileupRendererF from './PileupRenderer';
|
|
8
8
|
import LinearAlignmentsDisplayF from './LinearAlignmentsDisplay';
|
|
9
|
-
import
|
|
9
|
+
import LinearPileupDisplayF from './LinearPileupDisplay';
|
|
10
10
|
import LinearReadArcsDisplayF from './LinearReadArcsDisplay';
|
|
11
11
|
import LinearReadCloudDisplayF from './LinearReadCloudDisplay';
|
|
12
|
-
import
|
|
13
|
-
import AlignmentsFeatureWidgetF from './AlignmentsFeatureDetail';
|
|
12
|
+
import LinearSNPCoverageDisplayF from './LinearSNPCoverageDisplay';
|
|
14
13
|
import PileupRPCMethodsF from './PileupRPC';
|
|
15
|
-
import
|
|
16
|
-
import
|
|
14
|
+
import PileupRendererF from './PileupRenderer';
|
|
15
|
+
import SNPCoverageAdapterF from './SNPCoverageAdapter';
|
|
16
|
+
import SNPCoverageRendererF from './SNPCoverageRenderer';
|
|
17
17
|
export default class AlignmentsPlugin extends Plugin {
|
|
18
18
|
constructor() {
|
|
19
19
|
super(...arguments);
|
|
@@ -42,5 +42,5 @@ export default class AlignmentsPlugin extends Plugin {
|
|
|
42
42
|
});
|
|
43
43
|
}
|
|
44
44
|
}
|
|
45
|
-
export {
|
|
45
|
+
export { SharedLinearPileupDisplayMixin, linearPileupDisplayConfigSchemaFactory, linearPileupDisplayStateModelFactory, } from './LinearPileupDisplay';
|
|
46
46
|
export * as MismatchParser from './MismatchParser';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { IAnyStateTreeNode } from 'mobx-state-tree';
|
|
1
|
+
import type { IAnyStateTreeNode } from 'mobx-state-tree';
|
|
2
2
|
export declare function doAfterAttach<T extends IAnyStateTreeNode>(self: T, cb: (self: T, ctx: CanvasRenderingContext2D, width: number, height: number) => void): void;
|
|
@@ -24,14 +24,12 @@ export function doAfterAttach(self, cb) {
|
|
|
24
24
|
self.setLastDrawnOffsetPx(view.offsetPx);
|
|
25
25
|
self.setLastDrawnBpPerPx(view.bpPerPx);
|
|
26
26
|
}
|
|
27
|
-
// first autorun instantly draws if bpPerPx changes
|
|
28
27
|
createAutorun(self, async () => {
|
|
29
28
|
const view = getContainingView(self);
|
|
30
29
|
if (view.bpPerPx !== self.lastDrawnBpPerPx) {
|
|
31
30
|
draw(view);
|
|
32
31
|
}
|
|
33
32
|
});
|
|
34
|
-
// second autorun draws after delay 1000 e.g. if offsetPx changes
|
|
35
33
|
createAutorun(self, async () => {
|
|
36
34
|
const view = getContainingView(self);
|
|
37
35
|
draw(view);
|
package/esm/shared/color.d.ts
CHANGED
package/esm/shared/color.js
CHANGED
|
@@ -18,12 +18,6 @@ export const fillColor = {
|
|
|
18
18
|
color_shortinsert: 'pink',
|
|
19
19
|
color_unknown: 'grey',
|
|
20
20
|
};
|
|
21
|
-
// manually calculated by running
|
|
22
|
-
// const color = require('color')
|
|
23
|
-
// Object.fromEntries(Object.entries(fillColor).map(([key,val])=>{
|
|
24
|
-
// return [key, color(val).darken('0.3').hex()]
|
|
25
|
-
// }))
|
|
26
|
-
// this avoids (expensive) use of Color module at runtime
|
|
27
21
|
export const strokeColor = {
|
|
28
22
|
color_fwd_strand_not_proper: '#CA6767',
|
|
29
23
|
color_rev_strand_not_proper: '#7272AA',
|
|
@@ -60,8 +54,6 @@ export function getPairedInsertSizeColor(f1, f2, stats) {
|
|
|
60
54
|
}
|
|
61
55
|
}
|
|
62
56
|
const defaultColor = [fillColor.color_unknown, fillColor.color_unknown];
|
|
63
|
-
// return color scheme with both insert size and orientation coloring,
|
|
64
|
-
// prioritzing orientation coloring
|
|
65
57
|
export function getPairedInsertSizeAndOrientationColor(f1, f2, stats) {
|
|
66
58
|
return (getPairedOrientationColorOrDefault(f1) ||
|
|
67
59
|
getPairedInsertSizeColor(f1, f2, stats) ||
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { LinearReadCloudDisplayModel } from '../../LinearReadCloudDisplay/model';
|
|
3
|
-
import { LinearReadArcsDisplayModel } from '../../LinearReadArcsDisplay/model';
|
|
1
|
+
import type { LinearReadArcsDisplayModel } from '../../LinearReadArcsDisplay/model';
|
|
2
|
+
import type { LinearReadCloudDisplayModel } from '../../LinearReadCloudDisplay/model';
|
|
4
3
|
declare const BaseDisplayComponent: ({ model, children, }: {
|
|
5
4
|
model: LinearReadArcsDisplayModel | LinearReadCloudDisplayModel;
|
|
6
5
|
children?: React.ReactNode;
|
|
7
|
-
}) =>
|
|
6
|
+
}) => import("react/jsx-runtime").JSX.Element | null;
|
|
8
7
|
export default BaseDisplayComponent;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { LoadingEllipses } from '@jbrowse/core/ui';
|
|
3
|
-
import { BlockMsg, } from '@jbrowse/plugin-linear-genome-view';
|
|
4
|
-
import { makeStyles } from 'tss-react/mui';
|
|
5
|
-
import { observer } from 'mobx-react';
|
|
6
3
|
import { getContainingView } from '@jbrowse/core/util';
|
|
4
|
+
import { BlockMsg } from '@jbrowse/plugin-linear-genome-view';
|
|
7
5
|
import { Button, Tooltip } from '@mui/material';
|
|
6
|
+
import { observer } from 'mobx-react';
|
|
7
|
+
import { makeStyles } from 'tss-react/mui';
|
|
8
8
|
const useStyles = makeStyles()(theme => ({
|
|
9
9
|
loading: {
|
|
10
10
|
backgroundColor: theme.palette.background.default,
|
|
@@ -18,28 +18,25 @@ const useStyles = makeStyles()(theme => ({
|
|
|
18
18
|
textAlign: 'center',
|
|
19
19
|
},
|
|
20
20
|
}));
|
|
21
|
+
const BlockError = observer(function ({ model, }) {
|
|
22
|
+
const { error } = model;
|
|
23
|
+
return (_jsx(BlockMsg, { message: `${error}`, severity: "error", action: _jsx(Tooltip, { title: "Reload", children: _jsx(Button, { "data-testid": "reload_button", onClick: () => {
|
|
24
|
+
model.reload();
|
|
25
|
+
}, children: "Reload" }) }) }));
|
|
26
|
+
});
|
|
21
27
|
const BaseDisplayComponent = observer(function ({ model, children, }) {
|
|
22
28
|
const { error, regionTooLarge } = model;
|
|
23
|
-
return error ? (
|
|
24
|
-
React.createElement(Button, { "data-testid": "reload_button", onClick: () => {
|
|
25
|
-
model.reload();
|
|
26
|
-
} }, "Reload")) })) : regionTooLarge ? (model.regionCannotBeRendered()) : (React.createElement(DataDisplay, { model: model }, children));
|
|
29
|
+
return error ? (_jsx(BlockError, { model: model })) : regionTooLarge ? (model.regionCannotBeRendered()) : (_jsx(DataDisplay, { model: model, children: children }));
|
|
27
30
|
});
|
|
28
31
|
const DataDisplay = observer(function ({ model, children, }) {
|
|
29
32
|
const { drawn, loading } = model;
|
|
30
33
|
const view = getContainingView(model);
|
|
31
34
|
const left = (model.lastDrawnOffsetPx || 0) - view.offsetPx;
|
|
32
|
-
return (
|
|
33
|
-
// this data-testid is located here because changing props on the canvas
|
|
34
|
-
// itself is very sensitive to triggering ref invalidation
|
|
35
|
-
React.createElement("div", { "data-testid": `drawn-${drawn}` },
|
|
36
|
-
React.createElement("div", { style: { position: 'absolute', left } }, children),
|
|
37
|
-
left !== 0 || loading ? React.createElement(LoadingBar, { model: model }) : null));
|
|
35
|
+
return (_jsxs("div", { "data-testid": `drawn-${drawn}`, children: [_jsx("div", { style: { position: 'absolute', left }, children: children }), left !== 0 || loading ? _jsx(LoadingBar, { model: model }) : null] }));
|
|
38
36
|
});
|
|
39
37
|
const LoadingBar = observer(function ({ model, }) {
|
|
40
38
|
const { classes } = useStyles();
|
|
41
39
|
const { message } = model;
|
|
42
|
-
return (
|
|
43
|
-
React.createElement(LoadingEllipses, { message: message })));
|
|
40
|
+
return (_jsx("div", { className: classes.loading, children: _jsx(LoadingEllipses, { message: message }) }));
|
|
44
41
|
});
|
|
45
42
|
export default BaseDisplayComponent;
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { FilterBy } from '../types';
|
|
1
|
+
import type { FilterBy } from '../types';
|
|
3
2
|
declare const FilterByTagDialog: (props: {
|
|
4
3
|
model: {
|
|
5
4
|
filterBy: FilterBy;
|
|
6
5
|
setFilterBy: (arg: FilterBy) => void;
|
|
7
6
|
};
|
|
8
7
|
handleClose: () => void;
|
|
9
|
-
}) =>
|
|
8
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
10
9
|
export default FilterByTagDialog;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
import { Button, DialogActions, DialogContent, Link, Paper, TextField, Typography, } from '@mui/material';
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
|
+
import { useState } from 'react';
|
|
4
3
|
import { Dialog } from '@jbrowse/core/ui';
|
|
4
|
+
import { Button, DialogActions, DialogContent, Link, Paper, TextField, Typography, } from '@mui/material';
|
|
5
|
+
import { observer } from 'mobx-react';
|
|
5
6
|
import { makeStyles } from 'tss-react/mui';
|
|
6
7
|
const useStyles = makeStyles()(theme => ({
|
|
7
8
|
paper: {
|
|
@@ -28,24 +29,20 @@ const flagNames = [
|
|
|
28
29
|
];
|
|
29
30
|
function Bitmask(props) {
|
|
30
31
|
const { flag = 0, setFlag } = props;
|
|
31
|
-
return (
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
}
|
|
46
|
-
} }),
|
|
47
|
-
React.createElement("label", { htmlFor: key }, name)));
|
|
48
|
-
})));
|
|
32
|
+
return (_jsxs(_Fragment, { children: [_jsx(TextField, { type: "number", value: flag, onChange: event => {
|
|
33
|
+
setFlag(+event.target.value);
|
|
34
|
+
} }), flagNames.map((name, index) => {
|
|
35
|
+
const val = flag & (1 << index);
|
|
36
|
+
const key = `${name}_${val}`;
|
|
37
|
+
return (_jsxs("div", { children: [_jsx("input", { type: "checkbox", checked: Boolean(val), onChange: event => {
|
|
38
|
+
if (event.target.checked) {
|
|
39
|
+
setFlag(flag | (1 << index));
|
|
40
|
+
}
|
|
41
|
+
else {
|
|
42
|
+
setFlag(flag & ~(1 << index));
|
|
43
|
+
}
|
|
44
|
+
} }), _jsx("label", { htmlFor: key, children: name })] }, key));
|
|
45
|
+
})] }));
|
|
49
46
|
}
|
|
50
47
|
const FilterByTagDialog = observer(function (props) {
|
|
51
48
|
var _a, _b;
|
|
@@ -59,55 +56,31 @@ const FilterByTagDialog = observer(function (props) {
|
|
|
59
56
|
const [readName, setReadName] = useState(filterBy.readName || '');
|
|
60
57
|
const validTag = /^[A-Za-z][A-Za-z0-9]$/.exec(tag);
|
|
61
58
|
const site = 'https://broadinstitute.github.io/picard/explain-flags.html';
|
|
62
|
-
return (
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
}, placeholder: "Enter tag value" })),
|
|
89
|
-
React.createElement(Paper, { className: classes.paper, variant: "outlined" },
|
|
90
|
-
React.createElement(Typography, null, "Filter by read name"),
|
|
91
|
-
React.createElement(TextField, { className: classes.field, value: readName, onChange: event => {
|
|
92
|
-
setReadName(event.target.value);
|
|
93
|
-
}, placeholder: "Enter read name" })),
|
|
94
|
-
React.createElement(DialogActions, null,
|
|
95
|
-
React.createElement(Button, { variant: "contained", color: "primary", autoFocus: true, type: "submit", onClick: () => {
|
|
96
|
-
model.setFilterBy({
|
|
97
|
-
flagInclude,
|
|
98
|
-
flagExclude,
|
|
99
|
-
readName,
|
|
100
|
-
tagFilter: tag !== ''
|
|
101
|
-
? {
|
|
102
|
-
tag,
|
|
103
|
-
value: tagValue,
|
|
104
|
-
}
|
|
105
|
-
: undefined,
|
|
106
|
-
});
|
|
107
|
-
handleClose();
|
|
108
|
-
} }, "Submit"),
|
|
109
|
-
React.createElement(Button, { variant: "contained", color: "secondary", onClick: () => {
|
|
110
|
-
handleClose();
|
|
111
|
-
} }, "Cancel")))));
|
|
59
|
+
return (_jsx(Dialog, { open: true, onClose: handleClose, title: "Filter options", children: _jsxs(DialogContent, { children: [_jsxs(Typography, { children: ["Set filter bitmask options. Refer to ", _jsx(Link, { href: site, children: site }), ' ', "for details"] }), _jsx(Paper, { className: classes.paper, variant: "outlined", children: _jsxs("div", { style: { display: 'flex' }, children: [_jsxs("div", { children: [_jsx(Typography, { children: "Read must have ALL these flags" }), _jsx(Bitmask, { flag: flagInclude, setFlag: setFlagInclude })] }), _jsxs("div", { children: [_jsx(Typography, { children: "Read must have NONE of these flags" }), _jsx(Bitmask, { flag: flagExclude, setFlag: setFlagExclude })] })] }) }), _jsxs(Paper, { className: classes.paper, variant: "outlined", children: [_jsx(Typography, { children: "Filter by tag name and value. Use * in the value field to get all reads containing any value for that tag. Example: filter tag name SA with value * to get all split/supplementary reads. Other examples include HP for haplotype, or RG for read group" }), _jsx(TextField, { className: classes.field, value: tag, onChange: event => {
|
|
60
|
+
setTag(event.target.value);
|
|
61
|
+
}, placeholder: "Enter tag name", error: tag.length === 2 && !validTag, helperText: tag.length === 2 && !validTag ? 'Not a valid tag' : '', slotProps: {
|
|
62
|
+
htmlInput: {
|
|
63
|
+
maxLength: 2,
|
|
64
|
+
},
|
|
65
|
+
} }), _jsx(TextField, { className: classes.field, value: tagValue, onChange: event => {
|
|
66
|
+
setTagValue(event.target.value);
|
|
67
|
+
}, placeholder: "Enter tag value" })] }), _jsxs(Paper, { className: classes.paper, variant: "outlined", children: [_jsx(Typography, { children: "Filter by read name" }), _jsx(TextField, { className: classes.field, value: readName, onChange: event => {
|
|
68
|
+
setReadName(event.target.value);
|
|
69
|
+
}, placeholder: "Enter read name" })] }), _jsxs(DialogActions, { children: [_jsx(Button, { variant: "contained", color: "primary", autoFocus: true, type: "submit", onClick: () => {
|
|
70
|
+
model.setFilterBy({
|
|
71
|
+
flagInclude,
|
|
72
|
+
flagExclude,
|
|
73
|
+
readName,
|
|
74
|
+
tagFilter: tag !== ''
|
|
75
|
+
? {
|
|
76
|
+
tag,
|
|
77
|
+
value: tagValue,
|
|
78
|
+
}
|
|
79
|
+
: undefined,
|
|
80
|
+
});
|
|
81
|
+
handleClose();
|
|
82
|
+
}, children: "Submit" }), _jsx(Button, { variant: "contained", color: "secondary", onClick: () => {
|
|
83
|
+
handleClose();
|
|
84
|
+
}, children: "Cancel" })] })] }) }));
|
|
112
85
|
});
|
|
113
86
|
export default FilterByTagDialog;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { LinearReadArcsDisplayModel } from '../LinearReadArcsDisplay/model';
|
|
2
|
-
import { LinearReadCloudDisplayModel } from '../LinearReadCloudDisplay/model';
|
|
1
|
+
import type { LinearReadArcsDisplayModel } from '../LinearReadArcsDisplay/model';
|
|
2
|
+
import type { LinearReadCloudDisplayModel } from '../LinearReadCloudDisplay/model';
|
|
3
3
|
export interface ReducedFeature {
|
|
4
4
|
name: string;
|
|
5
5
|
strand: number;
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import { getContainingTrack, getContainingView, getSession, } from '@jbrowse/core/util';
|
|
2
2
|
export async function fetchChains(self) {
|
|
3
|
-
// @ts-expect-error
|
|
4
3
|
const { rpcSessionId: sessionId } = getContainingTrack(self);
|
|
5
4
|
const { rpcManager } = getSession(self);
|
|
6
5
|
const view = getContainingView(self);
|
|
7
|
-
if (!view.initialized || self.error || self.
|
|
6
|
+
if (!view.initialized || self.error || !self.statsReadyAndRegionNotTooLarge) {
|
|
8
7
|
return;
|
|
9
8
|
}
|
|
10
9
|
self.setLoading(true);
|