@jbrowse/plugin-alignments 2.16.1 → 2.18.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/AlignmentsFeatureDetail/AlignmentsFeatureDetail.d.ts +1 -1
- package/dist/AlignmentsFeatureDetail/AlignmentsFeatureDetail.js +6 -13
- package/dist/AlignmentsFeatureDetail/BreakendMultiLevelOptionDialog.js +0 -1
- package/dist/AlignmentsFeatureDetail/BreakendSingleLevelOptionDialog.js +0 -1
- package/dist/AlignmentsFeatureDetail/Flags.js +2 -2
- package/dist/AlignmentsFeatureDetail/Formatter.js +0 -3
- package/dist/AlignmentsFeatureDetail/LaunchPairedEndBreakpointSplitViewPanel.d.ts +3 -5
- package/dist/AlignmentsFeatureDetail/LaunchPairedEndBreakpointSplitViewPanel.js +4 -9
- package/dist/AlignmentsFeatureDetail/LaunchSupplementaryAlignmentBreakpointSplitViewPanel.d.ts +3 -5
- package/dist/AlignmentsFeatureDetail/LaunchSupplementaryAlignmentBreakpointSplitViewPanel.js +37 -36
- package/dist/AlignmentsFeatureDetail/LinkedPairedAlignments.d.ts +2 -2
- package/dist/AlignmentsFeatureDetail/LinkedPairedAlignments.js +3 -4
- package/dist/AlignmentsFeatureDetail/PairLink.d.ts +1 -1
- package/dist/AlignmentsFeatureDetail/PairLink.js +0 -1
- package/dist/AlignmentsFeatureDetail/SupplementaryAlignments.d.ts +2 -2
- package/dist/AlignmentsFeatureDetail/SupplementaryAlignments.js +5 -6
- package/dist/AlignmentsFeatureDetail/SupplementaryAlignmentsLocStrings.d.ts +1 -1
- package/dist/AlignmentsFeatureDetail/SupplementaryAlignmentsLocStrings.js +1 -5
- package/dist/AlignmentsFeatureDetail/getSAFeatures.d.ts +2 -2
- package/dist/AlignmentsFeatureDetail/getSAFeatures.js +2 -6
- package/dist/AlignmentsFeatureDetail/index.d.ts +1 -1
- package/dist/AlignmentsFeatureDetail/launchBreakpointSplitView.d.ts +2 -2
- package/dist/AlignmentsFeatureDetail/stateModelFactory.d.ts +3 -3
- 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 +8 -6
- package/dist/BamAdapter/BamAdapter.js +35 -30
- package/dist/BamAdapter/BamSlightlyLazyFeature.d.ts +6 -20
- package/dist/BamAdapter/BamSlightlyLazyFeature.js +42 -75
- package/dist/BamAdapter/configSchema.d.ts +0 -17
- package/dist/BamAdapter/configSchema.js +1 -22
- package/dist/BamAdapter/index.d.ts +1 -1
- package/dist/CramAdapter/CramAdapter.d.ts +8 -10
- package/dist/CramAdapter/CramAdapter.js +26 -32
- package/dist/CramAdapter/CramSlightlyLazyFeature.d.ts +23 -29
- package/dist/CramAdapter/CramSlightlyLazyFeature.js +59 -75
- package/dist/CramAdapter/CramTestAdapters.d.ts +3 -3
- package/dist/CramAdapter/CramTestAdapters.js +4 -5
- package/dist/CramAdapter/configSchema.d.ts +0 -14
- package/dist/CramAdapter/configSchema.js +1 -19
- package/dist/CramAdapter/index.d.ts +1 -1
- package/dist/CramAdapter/index.js +0 -1
- package/dist/CramAdapter/util.d.ts +2 -11
- package/dist/CramAdapter/util.js +1 -24
- package/dist/GuessAlignmentsTypes/index.d.ts +1 -1
- package/dist/HtsgetBamAdapter/HtsgetBamAdapter.d.ts +2 -2
- package/dist/HtsgetBamAdapter/configSchema.d.ts +0 -9
- package/dist/HtsgetBamAdapter/configSchema.js +1 -14
- package/dist/HtsgetBamAdapter/index.d.ts +1 -1
- package/dist/HtsgetBamAdapter/index.js +1 -1
- package/dist/LinearAlignmentsDisplay/{models/alignmentsModel.d.ts → alignmentsModel.d.ts} +2 -5
- package/dist/LinearAlignmentsDisplay/{models/alignmentsModel.js → alignmentsModel.js} +1 -31
- package/dist/LinearAlignmentsDisplay/components/AlignmentsDisplay.d.ts +1 -1
- package/dist/LinearAlignmentsDisplay/components/AlignmentsDisplay.js +2 -2
- package/dist/LinearAlignmentsDisplay/{models/configSchema.d.ts → configSchema.d.ts} +2 -16
- package/dist/LinearAlignmentsDisplay/{models/configSchema.js → configSchema.js} +3 -20
- package/dist/LinearAlignmentsDisplay/index.d.ts +1 -1
- package/dist/LinearAlignmentsDisplay/index.js +2 -3
- package/dist/LinearAlignmentsDisplay/{models/model.d.ts → model.d.ts} +7 -73
- package/dist/LinearAlignmentsDisplay/{models/model.js → model.js} +13 -82
- package/dist/LinearAlignmentsDisplay/{models/util.d.ts → util.d.ts} +1 -1
- package/dist/LinearPileupDisplay/SharedLinearPileupDisplayMixin.d.ts +34 -181
- package/dist/LinearPileupDisplay/SharedLinearPileupDisplayMixin.js +72 -149
- package/dist/LinearPileupDisplay/components/ColorByTagDialog.d.ts +5 -4
- package/dist/LinearPileupDisplay/components/ColorByTagDialog.js +5 -3
- package/dist/LinearPileupDisplay/components/GroupByDialog.d.ts +2 -2
- package/dist/LinearPileupDisplay/components/GroupByDialog.js +111 -56
- package/dist/LinearPileupDisplay/components/LinearPileupDisplayBlurb.d.ts +2 -6
- package/dist/LinearPileupDisplay/components/LinearPileupDisplayBlurb.js +1 -1
- package/dist/LinearPileupDisplay/components/SetFeatureHeightDialog.js +2 -2
- package/dist/LinearPileupDisplay/components/SetMaxHeightDialog.js +2 -2
- package/dist/LinearPileupDisplay/components/SortByTagDialog.js +8 -6
- 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 +121 -123
- package/dist/LinearPileupDisplay/model.js +110 -124
- package/dist/LinearReadArcsDisplay/components/ReactComponent.d.ts +1 -1
- package/dist/LinearReadArcsDisplay/components/ReactComponent.js +3 -7
- package/dist/LinearReadArcsDisplay/configSchema.d.ts +12 -20
- package/dist/LinearReadArcsDisplay/configSchema.js +8 -31
- package/dist/LinearReadArcsDisplay/drawFeats.d.ts +1 -1
- package/dist/LinearReadArcsDisplay/drawFeats.js +1 -9
- package/dist/LinearReadArcsDisplay/index.d.ts +1 -1
- package/dist/LinearReadArcsDisplay/index.js +1 -2
- package/dist/LinearReadArcsDisplay/model.d.ts +13 -90
- package/dist/LinearReadArcsDisplay/model.js +24 -112
- package/dist/LinearReadArcsDisplay/util.d.ts +1 -1
- package/dist/LinearReadCloudDisplay/components/ReactComponent.d.ts +1 -1
- package/dist/LinearReadCloudDisplay/components/ReactComponent.js +3 -7
- package/dist/LinearReadCloudDisplay/configSchema.d.ts +5 -17
- package/dist/LinearReadCloudDisplay/configSchema.js +3 -28
- package/dist/LinearReadCloudDisplay/drawFeats.d.ts +1 -1
- package/dist/LinearReadCloudDisplay/drawFeats.js +2 -2
- package/dist/LinearReadCloudDisplay/drawLongReadChains.d.ts +4 -4
- package/dist/LinearReadCloudDisplay/drawLongReadChains.js +1 -4
- package/dist/LinearReadCloudDisplay/drawPairChains.d.ts +4 -4
- package/dist/LinearReadCloudDisplay/drawPairChains.js +0 -3
- package/dist/LinearReadCloudDisplay/index.d.ts +1 -1
- package/dist/LinearReadCloudDisplay/index.js +1 -2
- package/dist/LinearReadCloudDisplay/model.d.ts +14 -64
- package/dist/LinearReadCloudDisplay/model.js +24 -76
- package/dist/LinearReadCloudDisplay/util.js +0 -1
- package/dist/LinearSNPCoverageDisplay/components/Tooltip.d.ts +1 -1
- package/dist/LinearSNPCoverageDisplay/components/Tooltip.js +50 -20
- package/dist/LinearSNPCoverageDisplay/{models/configSchema.d.ts → configSchema.d.ts} +17 -22
- package/dist/LinearSNPCoverageDisplay/{models/configSchema.js → configSchema.js} +16 -32
- package/dist/LinearSNPCoverageDisplay/index.d.ts +1 -1
- package/dist/LinearSNPCoverageDisplay/index.js +3 -3
- package/{esm/LinearSNPCoverageDisplay/models → dist/LinearSNPCoverageDisplay}/model.d.ts +9 -60
- package/dist/LinearSNPCoverageDisplay/{models/model.js → model.js} +68 -146
- package/dist/MismatchParser/cigarToMismatches.d.ts +3 -0
- package/dist/MismatchParser/cigarToMismatches.js +91 -0
- package/dist/MismatchParser/getNextRefPos.d.ts +4 -0
- package/dist/MismatchParser/getNextRefPos.js +38 -0
- package/dist/MismatchParser/index.d.ts +5 -30
- package/dist/MismatchParser/index.js +10 -335
- package/dist/MismatchParser/mdToMismatches.d.ts +3 -0
- package/dist/MismatchParser/mdToMismatches.js +74 -0
- package/dist/ModificationParser/index.d.ts +19 -0
- package/dist/ModificationParser/index.js +127 -0
- 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 +2 -4
- package/dist/PileupRPC/methods/GetReducedFeatures.d.ts +3 -4
- package/dist/PileupRPC/methods/GetReducedFeatures.js +21 -20
- package/dist/PileupRPC/methods/GetVisibleModifications.d.ts +4 -4
- package/dist/PileupRPC/methods/GetVisibleModifications.js +10 -7
- package/dist/PileupRPC/util.d.ts +1 -1
- package/dist/PileupRenderer/PileupLayoutSession.d.ts +12 -11
- package/dist/PileupRenderer/PileupLayoutSession.js +2 -5
- package/dist/PileupRenderer/PileupRenderer.d.ts +11 -29
- package/dist/PileupRenderer/PileupRenderer.js +17 -20
- package/dist/PileupRenderer/colorBy.d.ts +2 -2
- package/dist/PileupRenderer/colorBy.js +0 -6
- package/dist/PileupRenderer/components/PileupRendering.d.ts +1 -1
- package/dist/PileupRenderer/components/PileupRendering.js +0 -3
- package/dist/PileupRenderer/configSchema.d.ts +0 -31
- package/dist/PileupRenderer/configSchema.js +1 -35
- package/dist/PileupRenderer/getAlignmentShapeColor.d.ts +2 -2
- package/dist/PileupRenderer/getAlignmentShapeColor.js +1 -6
- package/dist/PileupRenderer/index.d.ts +1 -1
- package/dist/PileupRenderer/index.js +1 -1
- package/dist/PileupRenderer/layoutFeature.d.ts +2 -2
- package/dist/PileupRenderer/layoutFeature.js +0 -1
- package/dist/PileupRenderer/layoutFeatures.d.ts +5 -2
- package/dist/PileupRenderer/layoutFeatures.js +6 -4
- package/dist/PileupRenderer/makeImageData.d.ts +3 -4
- package/dist/PileupRenderer/makeImageData.js +8 -2
- package/dist/PileupRenderer/renderAlignment.d.ts +3 -3
- package/dist/PileupRenderer/renderAlignment.js +19 -8
- package/dist/PileupRenderer/renderAlignmentShape.d.ts +3 -3
- package/dist/PileupRenderer/renderAlignmentShape.js +102 -21
- package/dist/PileupRenderer/renderMethylation.d.ts +6 -5
- package/dist/PileupRenderer/renderMethylation.js +13 -9
- package/dist/PileupRenderer/renderMismatches.d.ts +3 -3
- package/dist/PileupRenderer/renderMismatches.js +17 -28
- package/dist/PileupRenderer/renderModifications.d.ts +6 -5
- package/dist/PileupRenderer/renderModifications.js +30 -35
- package/dist/PileupRenderer/renderPerBaseLettering.d.ts +4 -3
- package/dist/PileupRenderer/renderPerBaseLettering.js +1 -4
- package/dist/PileupRenderer/renderPerBaseQuality.d.ts +4 -3
- package/dist/PileupRenderer/renderPerBaseQuality.js +3 -5
- package/dist/PileupRenderer/renderSoftClipping.d.ts +5 -5
- package/dist/PileupRenderer/renderSoftClipping.js +6 -10
- package/dist/PileupRenderer/sortUtil.d.ts +3 -8
- package/dist/PileupRenderer/sortUtil.js +13 -16
- 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 +14 -11
- package/dist/SNPCoverageAdapter/configSchema.d.ts +0 -4
- package/dist/SNPCoverageAdapter/configSchema.js +1 -8
- package/dist/SNPCoverageAdapter/generateCoverageBins.d.ts +11 -11
- package/dist/SNPCoverageAdapter/generateCoverageBins.js +74 -193
- package/dist/SNPCoverageAdapter/index.d.ts +1 -1
- package/dist/SNPCoverageAdapter/processDepth.d.ts +8 -0
- package/dist/SNPCoverageAdapter/processDepth.js +38 -0
- package/dist/SNPCoverageAdapter/processMismatches.d.ts +9 -0
- package/dist/SNPCoverageAdapter/processMismatches.js +58 -0
- package/dist/SNPCoverageAdapter/processModifications.d.ts +10 -0
- package/dist/SNPCoverageAdapter/processModifications.js +49 -0
- package/dist/SNPCoverageAdapter/processReferenceCpGs.d.ts +9 -0
- package/dist/SNPCoverageAdapter/processReferenceCpGs.js +63 -0
- package/dist/SNPCoverageAdapter/util.d.ts +9 -24
- package/dist/SNPCoverageAdapter/util.js +39 -0
- package/dist/SNPCoverageRenderer/SNPCoverageRenderer.d.ts +6 -4
- package/dist/SNPCoverageRenderer/SNPCoverageRenderer.js +165 -72
- package/dist/SNPCoverageRenderer/configSchema.d.ts +0 -15
- package/dist/SNPCoverageRenderer/configSchema.js +1 -19
- package/dist/SNPCoverageRenderer/index.d.ts +1 -1
- package/dist/SNPCoverageRenderer/index.js +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +12 -12
- package/dist/shared/afterAttach.d.ts +1 -1
- package/dist/shared/afterAttach.js +0 -2
- package/dist/shared/color.d.ts +1 -11
- package/dist/shared/color.js +1 -15
- package/{esm/shared → dist/shared/components}/BaseDisplayComponent.d.ts +2 -2
- package/dist/shared/{BaseDisplayComponent.js → components/BaseDisplayComponent.js} +12 -11
- package/{esm/shared → dist/shared/components}/FilterByTagDialog.d.ts +3 -3
- package/dist/shared/{FilterByTagDialog.js → components/FilterByTagDialog.js} +7 -3
- package/dist/shared/fetchChains.d.ts +2 -2
- package/dist/shared/fetchChains.js +2 -4
- package/dist/shared/getMaximumModificationAtEachPosition.d.ts +8 -0
- package/dist/shared/getMaximumModificationAtEachPosition.js +41 -0
- package/dist/shared/getUniqueModifications.d.ts +14 -0
- package/dist/shared/getUniqueModifications.js +16 -0
- package/dist/shared/getUniqueTags.d.ts +15 -0
- package/dist/shared/getUniqueTags.js +18 -0
- package/dist/shared/{renderSvg.js → renderSvgUtil.js} +0 -2
- package/dist/shared/types.d.ts +94 -0
- package/dist/shared/types.js +2 -0
- package/dist/shared/util.d.ts +19 -1
- package/dist/shared/util.js +52 -0
- package/dist/util.d.ts +10 -7
- package/dist/util.js +26 -37
- package/esm/AlignmentsFeatureDetail/AlignmentsFeatureDetail.d.ts +1 -1
- package/esm/AlignmentsFeatureDetail/AlignmentsFeatureDetail.js +6 -13
- package/esm/AlignmentsFeatureDetail/BreakendMultiLevelOptionDialog.js +0 -1
- package/esm/AlignmentsFeatureDetail/BreakendSingleLevelOptionDialog.js +0 -1
- package/esm/AlignmentsFeatureDetail/Flags.js +2 -2
- package/esm/AlignmentsFeatureDetail/Formatter.js +0 -3
- package/esm/AlignmentsFeatureDetail/LaunchPairedEndBreakpointSplitViewPanel.d.ts +3 -5
- package/esm/AlignmentsFeatureDetail/LaunchPairedEndBreakpointSplitViewPanel.js +5 -10
- package/esm/AlignmentsFeatureDetail/LaunchSupplementaryAlignmentBreakpointSplitViewPanel.d.ts +3 -5
- package/esm/AlignmentsFeatureDetail/LaunchSupplementaryAlignmentBreakpointSplitViewPanel.js +37 -36
- package/esm/AlignmentsFeatureDetail/LinkedPairedAlignments.d.ts +2 -2
- package/esm/AlignmentsFeatureDetail/LinkedPairedAlignments.js +3 -4
- package/esm/AlignmentsFeatureDetail/PairLink.d.ts +1 -1
- package/esm/AlignmentsFeatureDetail/PairLink.js +0 -1
- package/esm/AlignmentsFeatureDetail/SupplementaryAlignments.d.ts +2 -2
- package/esm/AlignmentsFeatureDetail/SupplementaryAlignments.js +5 -6
- package/esm/AlignmentsFeatureDetail/SupplementaryAlignmentsLocStrings.d.ts +1 -1
- package/esm/AlignmentsFeatureDetail/SupplementaryAlignmentsLocStrings.js +2 -6
- package/esm/AlignmentsFeatureDetail/getSAFeatures.d.ts +2 -2
- package/esm/AlignmentsFeatureDetail/getSAFeatures.js +2 -6
- package/esm/AlignmentsFeatureDetail/index.d.ts +1 -1
- package/esm/AlignmentsFeatureDetail/launchBreakpointSplitView.d.ts +2 -2
- package/esm/AlignmentsFeatureDetail/stateModelFactory.d.ts +3 -3
- 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 +8 -6
- package/esm/BamAdapter/BamAdapter.js +36 -31
- package/esm/BamAdapter/BamSlightlyLazyFeature.d.ts +6 -20
- package/esm/BamAdapter/BamSlightlyLazyFeature.js +43 -76
- 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 +8 -10
- package/esm/CramAdapter/CramAdapter.js +28 -34
- package/esm/CramAdapter/CramSlightlyLazyFeature.d.ts +23 -29
- package/esm/CramAdapter/CramSlightlyLazyFeature.js +59 -75
- package/esm/CramAdapter/CramTestAdapters.d.ts +3 -3
- package/esm/CramAdapter/CramTestAdapters.js +4 -5
- package/esm/CramAdapter/configSchema.d.ts +0 -14
- package/esm/CramAdapter/configSchema.js +1 -19
- package/esm/CramAdapter/index.d.ts +1 -1
- package/esm/CramAdapter/index.js +0 -1
- package/esm/CramAdapter/util.d.ts +2 -11
- package/esm/CramAdapter/util.js +1 -24
- package/esm/GuessAlignmentsTypes/index.d.ts +1 -1
- package/esm/GuessAlignmentsTypes/index.js +1 -1
- package/esm/HtsgetBamAdapter/HtsgetBamAdapter.d.ts +2 -2
- package/esm/HtsgetBamAdapter/configSchema.d.ts +0 -9
- package/esm/HtsgetBamAdapter/configSchema.js +1 -14
- package/esm/HtsgetBamAdapter/index.d.ts +1 -1
- package/esm/HtsgetBamAdapter/index.js +1 -1
- package/esm/LinearAlignmentsDisplay/{models/alignmentsModel.d.ts → alignmentsModel.d.ts} +2 -5
- package/esm/LinearAlignmentsDisplay/{models/alignmentsModel.js → alignmentsModel.js} +1 -31
- package/esm/LinearAlignmentsDisplay/components/AlignmentsDisplay.d.ts +1 -1
- package/esm/LinearAlignmentsDisplay/components/AlignmentsDisplay.js +2 -2
- package/esm/LinearAlignmentsDisplay/{models/configSchema.d.ts → configSchema.d.ts} +2 -16
- package/esm/LinearAlignmentsDisplay/configSchema.js +16 -0
- package/esm/LinearAlignmentsDisplay/index.d.ts +1 -1
- package/esm/LinearAlignmentsDisplay/index.js +2 -3
- package/esm/LinearAlignmentsDisplay/{models/model.d.ts → model.d.ts} +7 -73
- package/esm/LinearAlignmentsDisplay/{models/model.js → model.js} +14 -83
- package/esm/LinearAlignmentsDisplay/{models/util.d.ts → util.d.ts} +1 -1
- package/esm/LinearPileupDisplay/SharedLinearPileupDisplayMixin.d.ts +34 -181
- package/esm/LinearPileupDisplay/SharedLinearPileupDisplayMixin.js +74 -151
- package/esm/LinearPileupDisplay/components/ColorByTagDialog.d.ts +5 -4
- package/esm/LinearPileupDisplay/components/ColorByTagDialog.js +5 -3
- package/esm/LinearPileupDisplay/components/GroupByDialog.d.ts +2 -2
- package/esm/LinearPileupDisplay/components/GroupByDialog.js +111 -56
- package/esm/LinearPileupDisplay/components/LinearPileupDisplayBlurb.d.ts +2 -6
- package/esm/LinearPileupDisplay/components/LinearPileupDisplayBlurb.js +1 -1
- package/esm/LinearPileupDisplay/components/SetFeatureHeightDialog.js +2 -2
- package/esm/LinearPileupDisplay/components/SetMaxHeightDialog.js +2 -2
- package/esm/LinearPileupDisplay/components/SortByTagDialog.js +8 -6
- 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 +121 -123
- package/esm/LinearPileupDisplay/model.js +111 -125
- package/esm/LinearReadArcsDisplay/components/ReactComponent.d.ts +1 -1
- package/esm/LinearReadArcsDisplay/components/ReactComponent.js +3 -7
- 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 +13 -90
- package/esm/LinearReadArcsDisplay/model.js +25 -113
- package/esm/LinearReadArcsDisplay/util.d.ts +1 -1
- package/esm/LinearReadCloudDisplay/components/ReactComponent.d.ts +1 -1
- package/esm/LinearReadCloudDisplay/components/ReactComponent.js +3 -7
- 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 -64
- package/esm/LinearReadCloudDisplay/model.js +24 -76
- package/esm/LinearReadCloudDisplay/util.js +0 -1
- package/esm/LinearSNPCoverageDisplay/components/Tooltip.d.ts +1 -1
- package/esm/LinearSNPCoverageDisplay/components/Tooltip.js +50 -20
- package/esm/LinearSNPCoverageDisplay/{models/configSchema.d.ts → configSchema.d.ts} +17 -22
- package/esm/LinearSNPCoverageDisplay/{models/configSchema.js → configSchema.js} +16 -32
- package/esm/LinearSNPCoverageDisplay/index.d.ts +1 -1
- package/esm/LinearSNPCoverageDisplay/index.js +3 -3
- package/{dist/LinearSNPCoverageDisplay/models → esm/LinearSNPCoverageDisplay}/model.d.ts +9 -60
- package/esm/LinearSNPCoverageDisplay/{models/model.js → model.js} +69 -147
- package/esm/MismatchParser/cigarToMismatches.d.ts +3 -0
- package/esm/MismatchParser/cigarToMismatches.js +88 -0
- package/esm/MismatchParser/getNextRefPos.d.ts +4 -0
- package/esm/MismatchParser/getNextRefPos.js +35 -0
- package/esm/MismatchParser/index.d.ts +5 -30
- package/esm/MismatchParser/index.js +5 -325
- package/esm/MismatchParser/mdToMismatches.d.ts +3 -0
- package/esm/MismatchParser/mdToMismatches.js +71 -0
- package/esm/ModificationParser/index.d.ts +19 -0
- package/esm/ModificationParser/index.js +121 -0
- 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 +2 -4
- package/esm/PileupRPC/methods/GetReducedFeatures.d.ts +3 -4
- package/esm/PileupRPC/methods/GetReducedFeatures.js +21 -20
- package/esm/PileupRPC/methods/GetVisibleModifications.d.ts +4 -4
- package/esm/PileupRPC/methods/GetVisibleModifications.js +10 -7
- package/esm/PileupRPC/util.d.ts +1 -1
- package/esm/PileupRenderer/PileupLayoutSession.d.ts +12 -11
- package/esm/PileupRenderer/PileupLayoutSession.js +2 -5
- package/esm/PileupRenderer/PileupRenderer.d.ts +11 -29
- package/esm/PileupRenderer/PileupRenderer.js +19 -22
- package/esm/PileupRenderer/colorBy.d.ts +2 -2
- package/esm/PileupRenderer/colorBy.js +1 -7
- package/esm/PileupRenderer/components/PileupRendering.d.ts +1 -1
- package/esm/PileupRenderer/components/PileupRendering.js +1 -4
- package/esm/PileupRenderer/configSchema.d.ts +0 -31
- package/esm/PileupRenderer/configSchema.js +1 -35
- package/esm/PileupRenderer/getAlignmentShapeColor.d.ts +2 -2
- package/esm/PileupRenderer/getAlignmentShapeColor.js +2 -7
- package/esm/PileupRenderer/index.d.ts +1 -1
- package/esm/PileupRenderer/index.js +1 -1
- package/esm/PileupRenderer/layoutFeature.d.ts +2 -2
- package/esm/PileupRenderer/layoutFeature.js +0 -1
- package/esm/PileupRenderer/layoutFeatures.d.ts +5 -2
- package/esm/PileupRenderer/layoutFeatures.js +7 -5
- package/esm/PileupRenderer/makeImageData.d.ts +3 -4
- package/esm/PileupRenderer/makeImageData.js +8 -2
- package/esm/PileupRenderer/renderAlignment.d.ts +3 -3
- package/esm/PileupRenderer/renderAlignment.js +19 -8
- package/esm/PileupRenderer/renderAlignmentShape.d.ts +3 -3
- package/esm/PileupRenderer/renderAlignmentShape.js +102 -21
- package/esm/PileupRenderer/renderMethylation.d.ts +6 -5
- package/esm/PileupRenderer/renderMethylation.js +13 -9
- package/esm/PileupRenderer/renderMismatches.d.ts +3 -3
- package/esm/PileupRenderer/renderMismatches.js +17 -28
- package/esm/PileupRenderer/renderModifications.d.ts +6 -5
- package/esm/PileupRenderer/renderModifications.js +29 -34
- package/esm/PileupRenderer/renderPerBaseLettering.d.ts +4 -3
- package/esm/PileupRenderer/renderPerBaseLettering.js +1 -4
- package/esm/PileupRenderer/renderPerBaseQuality.d.ts +4 -3
- package/esm/PileupRenderer/renderPerBaseQuality.js +3 -5
- package/esm/PileupRenderer/renderSoftClipping.d.ts +5 -5
- package/esm/PileupRenderer/renderSoftClipping.js +7 -11
- package/esm/PileupRenderer/sortUtil.d.ts +3 -8
- package/esm/PileupRenderer/sortUtil.js +13 -16
- 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 +15 -12
- package/esm/SNPCoverageAdapter/configSchema.d.ts +0 -4
- package/esm/SNPCoverageAdapter/configSchema.js +1 -8
- package/esm/SNPCoverageAdapter/generateCoverageBins.d.ts +11 -11
- package/esm/SNPCoverageAdapter/generateCoverageBins.js +73 -192
- 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 +9 -24
- package/esm/SNPCoverageAdapter/util.js +35 -1
- package/esm/SNPCoverageRenderer/SNPCoverageRenderer.d.ts +6 -4
- package/esm/SNPCoverageRenderer/SNPCoverageRenderer.js +167 -74
- package/esm/SNPCoverageRenderer/configSchema.d.ts +0 -15
- package/esm/SNPCoverageRenderer/configSchema.js +1 -19
- package/esm/SNPCoverageRenderer/index.d.ts +1 -1
- package/esm/SNPCoverageRenderer/index.js +2 -2
- package/esm/index.d.ts +2 -2
- package/esm/index.js +10 -10
- package/esm/shared/afterAttach.d.ts +1 -1
- package/esm/shared/afterAttach.js +0 -2
- package/esm/shared/color.d.ts +1 -11
- package/esm/shared/color.js +0 -14
- package/{dist/shared → esm/shared/components}/BaseDisplayComponent.d.ts +2 -2
- package/esm/shared/{BaseDisplayComponent.js → components/BaseDisplayComponent.js} +12 -11
- package/{dist/shared → esm/shared/components}/FilterByTagDialog.d.ts +3 -3
- package/esm/shared/{FilterByTagDialog.js → components/FilterByTagDialog.js} +7 -3
- package/esm/shared/fetchChains.d.ts +2 -2
- package/esm/shared/fetchChains.js +2 -4
- package/esm/shared/getMaximumModificationAtEachPosition.d.ts +8 -0
- package/esm/shared/getMaximumModificationAtEachPosition.js +38 -0
- package/esm/shared/getUniqueModifications.d.ts +14 -0
- package/esm/shared/getUniqueModifications.js +13 -0
- package/esm/shared/getUniqueTags.d.ts +15 -0
- package/esm/shared/getUniqueTags.js +15 -0
- package/esm/shared/{renderSvg.js → renderSvgUtil.js} +0 -2
- package/esm/shared/types.d.ts +94 -0
- package/esm/shared/types.js +1 -0
- package/esm/shared/util.d.ts +19 -1
- package/esm/shared/util.js +47 -0
- package/esm/util.d.ts +10 -7
- package/esm/util.js +24 -34
- package/package.json +4 -5
- package/dist/LinearPileupDisplay/components/ColorByModificationsDialog.d.ts +0 -15
- package/dist/LinearPileupDisplay/components/ColorByModificationsDialog.js +0 -41
- package/dist/LinearPileupDisplay/components/ModificationsTable.d.ts +0 -4
- package/dist/LinearPileupDisplay/components/ModificationsTable.js +0 -28
- package/dist/shared/index.d.ts +0 -49
- package/dist/shared/index.js +0 -41
- package/esm/LinearAlignmentsDisplay/models/configSchema.js +0 -33
- package/esm/LinearPileupDisplay/components/ColorByModificationsDialog.d.ts +0 -15
- package/esm/LinearPileupDisplay/components/ColorByModificationsDialog.js +0 -36
- package/esm/LinearPileupDisplay/components/ModificationsTable.d.ts +0 -4
- package/esm/LinearPileupDisplay/components/ModificationsTable.js +0 -22
- package/esm/shared/index.d.ts +0 -49
- package/esm/shared/index.js +0 -36
- /package/dist/LinearAlignmentsDisplay/{models/util.js → util.js} +0 -0
- /package/dist/shared/{renderSvg.d.ts → renderSvgUtil.d.ts} +0 -0
- /package/esm/LinearAlignmentsDisplay/{models/util.js → util.js} +0 -0
- /package/esm/shared/{renderSvg.d.ts → renderSvgUtil.d.ts} +0 -0
|
@@ -1,103 +1,83 @@
|
|
|
1
1
|
import { readFeaturesToCIGAR, readFeaturesToMismatches } from './util';
|
|
2
|
+
import { cacheGetter } from '../shared/util';
|
|
2
3
|
export default class CramSlightlyLazyFeature {
|
|
3
|
-
// uses parameter properties to automatically create fields on the class
|
|
4
|
-
// https://www.typescriptlang.org/docs/handbook/classes.html#parameter-properties
|
|
5
4
|
constructor(record, _store) {
|
|
6
5
|
this.record = record;
|
|
7
6
|
this._store = _store;
|
|
8
7
|
}
|
|
9
|
-
|
|
8
|
+
get name() {
|
|
10
9
|
return this.record.readName;
|
|
11
10
|
}
|
|
12
|
-
|
|
11
|
+
get start() {
|
|
13
12
|
return this.record.alignmentStart - 1;
|
|
14
13
|
}
|
|
15
|
-
|
|
14
|
+
get end() {
|
|
16
15
|
var _a;
|
|
17
|
-
return this.
|
|
16
|
+
return this.start + ((_a = this.record.lengthOnRef) !== null && _a !== void 0 ? _a : 1);
|
|
18
17
|
}
|
|
19
|
-
|
|
20
|
-
return this.record.readFeatures;
|
|
21
|
-
}
|
|
22
|
-
_get_type() {
|
|
23
|
-
return 'match';
|
|
24
|
-
}
|
|
25
|
-
_get_score() {
|
|
18
|
+
get score() {
|
|
26
19
|
return this.record.mappingQuality;
|
|
27
20
|
}
|
|
28
|
-
|
|
21
|
+
get flags() {
|
|
29
22
|
return this.record.flags;
|
|
30
23
|
}
|
|
31
|
-
|
|
24
|
+
get strand() {
|
|
32
25
|
return this.record.isReverseComplemented() ? -1 : 1;
|
|
33
26
|
}
|
|
34
|
-
|
|
35
|
-
var _a;
|
|
36
|
-
return (_a = this._store.samHeader.readGroups) === null || _a === void 0 ? void 0 : _a[this.record.readGroupId];
|
|
37
|
-
}
|
|
38
|
-
_get_qual() {
|
|
27
|
+
get qual() {
|
|
39
28
|
return (this.record.qualityScores || []).join(' ');
|
|
40
29
|
}
|
|
41
|
-
qualRaw() {
|
|
30
|
+
get qualRaw() {
|
|
42
31
|
return this.record.qualityScores;
|
|
43
32
|
}
|
|
44
|
-
|
|
33
|
+
get refName() {
|
|
45
34
|
return this._store.refIdToName(this.record.sequenceId);
|
|
46
35
|
}
|
|
47
|
-
|
|
48
|
-
return !!this.record.mate;
|
|
49
|
-
}
|
|
50
|
-
_get_pair_orientation() {
|
|
36
|
+
get pair_orientation() {
|
|
51
37
|
return this.record.isPaired() ? this.record.getPairOrientation() : undefined;
|
|
52
38
|
}
|
|
53
|
-
|
|
39
|
+
get template_length() {
|
|
54
40
|
return this.record.templateLength || this.record.templateSize;
|
|
55
41
|
}
|
|
56
|
-
|
|
42
|
+
get next_ref() {
|
|
57
43
|
return this.record.mate
|
|
58
44
|
? this._store.refIdToName(this.record.mate.sequenceId)
|
|
59
45
|
: undefined;
|
|
60
46
|
}
|
|
61
|
-
|
|
47
|
+
get next_segment_position() {
|
|
62
48
|
return this.record.mate
|
|
63
49
|
? `${this._store.refIdToName(this.record.mate.sequenceId)}:${this.record.mate.alignmentStart}`
|
|
64
50
|
: undefined;
|
|
65
51
|
}
|
|
66
|
-
|
|
52
|
+
get is_paired() {
|
|
53
|
+
return !!this.record.mate;
|
|
54
|
+
}
|
|
55
|
+
get next_pos() {
|
|
67
56
|
var _a;
|
|
68
57
|
return (_a = this.record.mate) === null || _a === void 0 ? void 0 : _a.alignmentStart;
|
|
69
58
|
}
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
const
|
|
73
|
-
|
|
74
|
-
return RG !== undefined ? { ...tags, RG } : tags;
|
|
59
|
+
get tags() {
|
|
60
|
+
var _a;
|
|
61
|
+
const RG = (_a = this._store.samHeader.readGroups) === null || _a === void 0 ? void 0 : _a[this.record.readGroupId];
|
|
62
|
+
return RG !== undefined ? { ...this.record.tags, RG } : this.record.tags;
|
|
75
63
|
}
|
|
76
|
-
|
|
64
|
+
get seq() {
|
|
77
65
|
return this.record.getReadBases();
|
|
78
66
|
}
|
|
79
|
-
|
|
80
|
-
_get_CIGAR() {
|
|
67
|
+
get CIGAR() {
|
|
81
68
|
return readFeaturesToCIGAR(this.record.readFeatures, this.record.alignmentStart, this.record.readLength, this.record._refRegion);
|
|
82
69
|
}
|
|
83
|
-
tags() {
|
|
84
|
-
return Object.getOwnPropertyNames(CramSlightlyLazyFeature.prototype)
|
|
85
|
-
.filter(prop => prop.startsWith('_get_') &&
|
|
86
|
-
prop !== '_get_mismatches' &&
|
|
87
|
-
prop !== '_get_cram_read_features')
|
|
88
|
-
.map(methodName => methodName.replace('_get_', ''));
|
|
89
|
-
}
|
|
90
70
|
id() {
|
|
91
71
|
return `${this._store.id}-${this.record.uniqueId}`;
|
|
92
72
|
}
|
|
93
73
|
get(field) {
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
74
|
+
return field === 'mismatches'
|
|
75
|
+
? this.mismatches
|
|
76
|
+
: field === 'qual'
|
|
77
|
+
? this.qual
|
|
78
|
+
: field === 'CIGAR'
|
|
79
|
+
? this.CIGAR
|
|
80
|
+
: this.fields[field];
|
|
101
81
|
}
|
|
102
82
|
parent() {
|
|
103
83
|
return undefined;
|
|
@@ -105,33 +85,37 @@ export default class CramSlightlyLazyFeature {
|
|
|
105
85
|
children() {
|
|
106
86
|
return undefined;
|
|
107
87
|
}
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
return false;
|
|
111
|
-
}
|
|
112
|
-
_get_clipPos() {
|
|
113
|
-
const mismatches = this.get('mismatches');
|
|
114
|
-
if (mismatches.length) {
|
|
115
|
-
const record = this.get('strand') === -1 ? mismatches.at(-1) : mismatches[0];
|
|
116
|
-
const { type, cliplen } = record;
|
|
117
|
-
if (type === 'softclip' || type === 'hardclip') {
|
|
118
|
-
return cliplen;
|
|
119
|
-
}
|
|
120
|
-
}
|
|
121
|
-
return 0;
|
|
88
|
+
get mismatches() {
|
|
89
|
+
return readFeaturesToMismatches(this.record.readFeatures, this.start, this.qualRaw);
|
|
122
90
|
}
|
|
123
|
-
|
|
91
|
+
get fields() {
|
|
124
92
|
return {
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
93
|
+
start: this.start,
|
|
94
|
+
name: this.name,
|
|
95
|
+
end: this.end,
|
|
96
|
+
score: this.score,
|
|
97
|
+
strand: this.strand,
|
|
98
|
+
template_length: this.template_length,
|
|
99
|
+
flags: this.flags,
|
|
100
|
+
tags: this.tags,
|
|
101
|
+
refName: this.refName,
|
|
102
|
+
seq: this.seq,
|
|
103
|
+
type: 'match',
|
|
104
|
+
pair_orientation: this.pair_orientation,
|
|
105
|
+
next_ref: this.next_ref,
|
|
106
|
+
next_pos: this.next_pos,
|
|
107
|
+
next_segment_position: this.next_segment_position,
|
|
128
108
|
uniqueId: this.id(),
|
|
129
109
|
};
|
|
130
110
|
}
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
111
|
+
toJSON() {
|
|
112
|
+
return {
|
|
113
|
+
...this.fields,
|
|
114
|
+
CIGAR: this.CIGAR,
|
|
115
|
+
qual: this.qual,
|
|
116
|
+
};
|
|
136
117
|
}
|
|
137
118
|
}
|
|
119
|
+
cacheGetter(CramSlightlyLazyFeature, 'fields');
|
|
120
|
+
cacheGetter(CramSlightlyLazyFeature, 'CIGAR');
|
|
121
|
+
cacheGetter(CramSlightlyLazyFeature, 'mismatches');
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { GenericFilehandle } from 'generic-filehandle';
|
|
2
|
-
import { Observable } from 'rxjs';
|
|
3
|
-
import SimpleFeature from '@jbrowse/core/util/simpleFeature';
|
|
4
1
|
import { BaseFeatureDataAdapter } from '@jbrowse/core/data_adapters/BaseAdapter';
|
|
2
|
+
import SimpleFeature from '@jbrowse/core/util/simpleFeature';
|
|
3
|
+
import { Observable } from 'rxjs';
|
|
4
|
+
import type { GenericFilehandle } from 'generic-filehandle';
|
|
5
5
|
export declare function parseSmallFasta(text: string): {
|
|
6
6
|
id: string;
|
|
7
7
|
description: string;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { Observable } from 'rxjs';
|
|
2
|
-
import SimpleFeature from '@jbrowse/core/util/simpleFeature';
|
|
3
|
-
import { BaseFeatureDataAdapter } from '@jbrowse/core/data_adapters/BaseAdapter';
|
|
4
1
|
import { ConfigurationSchema } from '@jbrowse/core/configuration';
|
|
5
|
-
|
|
2
|
+
import { BaseFeatureDataAdapter } from '@jbrowse/core/data_adapters/BaseAdapter';
|
|
3
|
+
import SimpleFeature from '@jbrowse/core/util/simpleFeature';
|
|
4
|
+
import { Observable } from 'rxjs';
|
|
6
5
|
export function parseSmallFasta(text) {
|
|
7
6
|
return text
|
|
8
7
|
.split('>')
|
|
@@ -73,5 +72,5 @@ export class SequenceAdapter extends BaseFeatureDataAdapter {
|
|
|
73
72
|
return { unsubscribe: () => { } };
|
|
74
73
|
});
|
|
75
74
|
}
|
|
76
|
-
freeResources(
|
|
75
|
+
freeResources() { }
|
|
77
76
|
}
|
|
@@ -1,15 +1,9 @@
|
|
|
1
1
|
declare const configSchema: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
2
|
-
/**
|
|
3
|
-
* #slot fetchSizeLimit
|
|
4
|
-
*/
|
|
5
2
|
fetchSizeLimit: {
|
|
6
3
|
type: string;
|
|
7
4
|
description: string;
|
|
8
5
|
defaultValue: number;
|
|
9
6
|
};
|
|
10
|
-
/**
|
|
11
|
-
* #slot cramLocation
|
|
12
|
-
*/
|
|
13
7
|
cramLocation: {
|
|
14
8
|
type: string;
|
|
15
9
|
defaultValue: {
|
|
@@ -17,9 +11,6 @@ declare const configSchema: import("@jbrowse/core/configuration/configurationSch
|
|
|
17
11
|
locationType: string;
|
|
18
12
|
};
|
|
19
13
|
};
|
|
20
|
-
/**
|
|
21
|
-
* #slot craiLocation
|
|
22
|
-
*/
|
|
23
14
|
craiLocation: {
|
|
24
15
|
type: string;
|
|
25
16
|
defaultValue: {
|
|
@@ -27,11 +18,6 @@ declare const configSchema: import("@jbrowse/core/configuration/configurationSch
|
|
|
27
18
|
locationType: string;
|
|
28
19
|
};
|
|
29
20
|
};
|
|
30
|
-
/**
|
|
31
|
-
* #slot sequenceAdapter
|
|
32
|
-
* generally refers to the reference genome assembly's sequence adapter
|
|
33
|
-
* currently needs to be manually added
|
|
34
|
-
*/
|
|
35
21
|
sequenceAdapter: {
|
|
36
22
|
type: string;
|
|
37
23
|
description: string;
|
|
@@ -1,21 +1,11 @@
|
|
|
1
1
|
import { ConfigurationSchema } from '@jbrowse/core/configuration';
|
|
2
|
-
|
|
3
|
-
* #config CramAdapter
|
|
4
|
-
* used to configure CRAM adapter
|
|
5
|
-
*/
|
|
6
|
-
function x() { } // eslint-disable-line @typescript-eslint/no-unused-vars
|
|
2
|
+
function x() { }
|
|
7
3
|
const configSchema = ConfigurationSchema('CramAdapter', {
|
|
8
|
-
/**
|
|
9
|
-
* #slot fetchSizeLimit
|
|
10
|
-
*/
|
|
11
4
|
fetchSizeLimit: {
|
|
12
5
|
type: 'number',
|
|
13
6
|
description: 'size in bytes over which to display a warning to the user that too much data will be fetched',
|
|
14
7
|
defaultValue: 3000000,
|
|
15
8
|
},
|
|
16
|
-
/**
|
|
17
|
-
* #slot cramLocation
|
|
18
|
-
*/
|
|
19
9
|
cramLocation: {
|
|
20
10
|
type: 'fileLocation',
|
|
21
11
|
defaultValue: {
|
|
@@ -23,9 +13,6 @@ const configSchema = ConfigurationSchema('CramAdapter', {
|
|
|
23
13
|
locationType: 'UriLocation',
|
|
24
14
|
},
|
|
25
15
|
},
|
|
26
|
-
/**
|
|
27
|
-
* #slot craiLocation
|
|
28
|
-
*/
|
|
29
16
|
craiLocation: {
|
|
30
17
|
type: 'fileLocation',
|
|
31
18
|
defaultValue: {
|
|
@@ -33,11 +20,6 @@ const configSchema = ConfigurationSchema('CramAdapter', {
|
|
|
33
20
|
locationType: 'UriLocation',
|
|
34
21
|
},
|
|
35
22
|
},
|
|
36
|
-
/**
|
|
37
|
-
* #slot sequenceAdapter
|
|
38
|
-
* generally refers to the reference genome assembly's sequence adapter
|
|
39
|
-
* currently needs to be manually added
|
|
40
|
-
*/
|
|
41
23
|
sequenceAdapter: {
|
|
42
24
|
type: 'frozen',
|
|
43
25
|
description: 'sequence data adapter',
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import PluginManager from '@jbrowse/core/PluginManager';
|
|
1
|
+
import type PluginManager from '@jbrowse/core/PluginManager';
|
|
2
2
|
export default function CramAdapterF(pluginManager: PluginManager): void;
|
package/esm/CramAdapter/index.js
CHANGED
|
@@ -1,15 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { Mismatch } from '../shared/types';
|
|
2
|
+
import type { CramRecord } from '@gmod/cram';
|
|
2
3
|
type ReadFeatures = CramRecord['readFeatures'];
|
|
3
|
-
export interface Mismatch {
|
|
4
|
-
qual?: number;
|
|
5
|
-
start: number;
|
|
6
|
-
length: number;
|
|
7
|
-
type: string;
|
|
8
|
-
base: string | undefined;
|
|
9
|
-
altbase?: string;
|
|
10
|
-
seq?: string;
|
|
11
|
-
cliplen?: number;
|
|
12
|
-
}
|
|
13
4
|
export declare function readFeaturesToMismatches(readFeatures: ReadFeatures, start: number, qual?: number[] | null): Mismatch[];
|
|
14
5
|
export declare function readFeaturesToCIGAR(readFeatures: ReadFeatures, alignmentStart: number, readLen: number, refRegion?: {
|
|
15
6
|
seq: string;
|
package/esm/CramAdapter/util.js
CHANGED
|
@@ -22,7 +22,6 @@ export function readFeaturesToMismatches(readFeatures, start, qual) {
|
|
|
22
22
|
}
|
|
23
23
|
refPos = p - 1 - start;
|
|
24
24
|
if (code === 'X') {
|
|
25
|
-
// substitution
|
|
26
25
|
mismatches[j++] = {
|
|
27
26
|
start: refPos,
|
|
28
27
|
length: 1,
|
|
@@ -33,7 +32,6 @@ export function readFeaturesToMismatches(readFeatures, start, qual) {
|
|
|
33
32
|
};
|
|
34
33
|
}
|
|
35
34
|
else if (code === 'I') {
|
|
36
|
-
// insertion
|
|
37
35
|
mismatches[j++] = {
|
|
38
36
|
start: refPos,
|
|
39
37
|
type: 'insertion',
|
|
@@ -42,7 +40,6 @@ export function readFeaturesToMismatches(readFeatures, start, qual) {
|
|
|
42
40
|
};
|
|
43
41
|
}
|
|
44
42
|
else if (code === 'N') {
|
|
45
|
-
// reference skip
|
|
46
43
|
mismatches[j++] = {
|
|
47
44
|
type: 'skip',
|
|
48
45
|
length: data,
|
|
@@ -51,7 +48,6 @@ export function readFeaturesToMismatches(readFeatures, start, qual) {
|
|
|
51
48
|
};
|
|
52
49
|
}
|
|
53
50
|
else if (code === 'S') {
|
|
54
|
-
// soft clip
|
|
55
51
|
const len = data.length;
|
|
56
52
|
mismatches[j++] = {
|
|
57
53
|
start: refPos,
|
|
@@ -62,10 +58,8 @@ export function readFeaturesToMismatches(readFeatures, start, qual) {
|
|
|
62
58
|
};
|
|
63
59
|
}
|
|
64
60
|
else if (code === 'P') {
|
|
65
|
-
// padding
|
|
66
61
|
}
|
|
67
62
|
else if (code === 'H') {
|
|
68
|
-
// hard clip
|
|
69
63
|
const len = data;
|
|
70
64
|
mismatches[j++] = {
|
|
71
65
|
start: refPos,
|
|
@@ -76,7 +70,6 @@ export function readFeaturesToMismatches(readFeatures, start, qual) {
|
|
|
76
70
|
};
|
|
77
71
|
}
|
|
78
72
|
else if (code === 'D') {
|
|
79
|
-
// deletion
|
|
80
73
|
mismatches[j++] = {
|
|
81
74
|
type: 'deletion',
|
|
82
75
|
length: data,
|
|
@@ -85,21 +78,15 @@ export function readFeaturesToMismatches(readFeatures, start, qual) {
|
|
|
85
78
|
};
|
|
86
79
|
}
|
|
87
80
|
else if (code === 'b') {
|
|
88
|
-
// stretch of bases
|
|
89
81
|
}
|
|
90
82
|
else if (code === 'q') {
|
|
91
|
-
// stretch of qual scores
|
|
92
83
|
}
|
|
93
84
|
else if (code === 'B') {
|
|
94
|
-
// a pair of [base, qual]
|
|
95
85
|
}
|
|
96
86
|
else if (code === 'i') {
|
|
97
|
-
// single-base insertion, we collect these if there are multiple in a row
|
|
98
|
-
// into a single insertion entry
|
|
99
87
|
insLen++;
|
|
100
88
|
}
|
|
101
89
|
else if (code === 'Q') {
|
|
102
|
-
// single quality value
|
|
103
90
|
}
|
|
104
91
|
}
|
|
105
92
|
if (sublen && insLen > 0) {
|
|
@@ -121,7 +108,6 @@ export function readFeaturesToCIGAR(readFeatures, alignmentStart, readLen, refRe
|
|
|
121
108
|
if (!refRegion) {
|
|
122
109
|
return '';
|
|
123
110
|
}
|
|
124
|
-
// not sure I should access these, but...
|
|
125
111
|
const ref = refRegion.seq;
|
|
126
112
|
const refStart = refRegion.start;
|
|
127
113
|
let lastPos = alignmentStart;
|
|
@@ -145,7 +131,6 @@ export function readFeaturesToCIGAR(readFeatures, alignmentStart, readLen, refRe
|
|
|
145
131
|
oplen += sublen;
|
|
146
132
|
}
|
|
147
133
|
if (code === 'b') {
|
|
148
|
-
// An array of bases stored verbatim
|
|
149
134
|
const ret = data.split(',');
|
|
150
135
|
const added = String.fromCharCode(...ret);
|
|
151
136
|
seq += added;
|
|
@@ -153,19 +138,16 @@ export function readFeaturesToCIGAR(readFeatures, alignmentStart, readLen, refRe
|
|
|
153
138
|
oplen += added.length;
|
|
154
139
|
}
|
|
155
140
|
else if (code === 'B') {
|
|
156
|
-
// Single base (+ qual score)
|
|
157
141
|
seq += sub;
|
|
158
142
|
lastPos++;
|
|
159
143
|
oplen++;
|
|
160
144
|
}
|
|
161
145
|
else if (code === 'X') {
|
|
162
|
-
// Substitution
|
|
163
146
|
seq += sub;
|
|
164
147
|
lastPos++;
|
|
165
148
|
oplen++;
|
|
166
149
|
}
|
|
167
150
|
else if (code === 'D' || code === 'N') {
|
|
168
|
-
// Deletion or Ref Skip
|
|
169
151
|
lastPos += data;
|
|
170
152
|
if (oplen) {
|
|
171
153
|
cigar += `${oplen}${op}`;
|
|
@@ -174,7 +156,6 @@ export function readFeaturesToCIGAR(readFeatures, alignmentStart, readLen, refRe
|
|
|
174
156
|
oplen = 0;
|
|
175
157
|
}
|
|
176
158
|
else if (code === 'I' || code === 'S') {
|
|
177
|
-
// Insertion or soft-clip
|
|
178
159
|
seq += data;
|
|
179
160
|
if (oplen) {
|
|
180
161
|
cigar += `${oplen}${op}`;
|
|
@@ -183,8 +164,6 @@ export function readFeaturesToCIGAR(readFeatures, alignmentStart, readLen, refRe
|
|
|
183
164
|
oplen = 0;
|
|
184
165
|
}
|
|
185
166
|
else if (code === 'i') {
|
|
186
|
-
// Single base insertion
|
|
187
|
-
// seq += data
|
|
188
167
|
if (oplen) {
|
|
189
168
|
cigar += `${oplen}${op}`;
|
|
190
169
|
}
|
|
@@ -193,20 +172,18 @@ export function readFeaturesToCIGAR(readFeatures, alignmentStart, readLen, refRe
|
|
|
193
172
|
oplen = 0;
|
|
194
173
|
}
|
|
195
174
|
else if (code === 'P') {
|
|
196
|
-
// Padding
|
|
197
175
|
if (oplen) {
|
|
198
176
|
cigar += `${oplen}${op}`;
|
|
199
177
|
}
|
|
200
178
|
cigar += `${data}P`;
|
|
201
179
|
}
|
|
202
180
|
else if (code === 'H') {
|
|
203
|
-
// Hard clip
|
|
204
181
|
if (oplen) {
|
|
205
182
|
cigar += `${oplen}${op}`;
|
|
206
183
|
}
|
|
207
184
|
cigar += `${data}H`;
|
|
208
185
|
oplen = 0;
|
|
209
|
-
}
|
|
186
|
+
}
|
|
210
187
|
}
|
|
211
188
|
}
|
|
212
189
|
else {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import PluginManager from '@jbrowse/core/PluginManager';
|
|
1
|
+
import type PluginManager from '@jbrowse/core/PluginManager';
|
|
2
2
|
export default function GuessAlignmentsTypesF(pluginManager: PluginManager): void;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { makeIndex, makeIndexType,
|
|
1
|
+
import { getFileName, makeIndex, makeIndexType, } from '@jbrowse/core/util/tracks';
|
|
2
2
|
export default function GuessAlignmentsTypesF(pluginManager) {
|
|
3
3
|
pluginManager.addToExtensionPoint('Core-guessAdapterForLocation', (adapterGuesser) => {
|
|
4
4
|
return (file, index, adapterHint) => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { BamFile } from '@gmod/bam';
|
|
2
|
-
import { BaseFeatureDataAdapter } from '@jbrowse/core/data_adapters/BaseAdapter';
|
|
3
1
|
import BamAdapter from '../BamAdapter/BamAdapter';
|
|
2
|
+
import type { BamFile } from '@gmod/bam';
|
|
3
|
+
import type { BaseFeatureDataAdapter } from '@jbrowse/core/data_adapters/BaseAdapter';
|
|
4
4
|
export default class HtsgetBamAdapter extends BamAdapter {
|
|
5
5
|
protected configurePre(): Promise<{
|
|
6
6
|
bam: BamFile;
|
|
@@ -1,23 +1,14 @@
|
|
|
1
1
|
declare const HtsgetBamAdapter: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
2
|
-
/**
|
|
3
|
-
* #slot
|
|
4
|
-
*/
|
|
5
2
|
htsgetBase: {
|
|
6
3
|
type: string;
|
|
7
4
|
description: string;
|
|
8
5
|
defaultValue: string;
|
|
9
6
|
};
|
|
10
|
-
/**
|
|
11
|
-
* #slot
|
|
12
|
-
*/
|
|
13
7
|
htsgetTrackId: {
|
|
14
8
|
type: string;
|
|
15
9
|
description: string;
|
|
16
10
|
defaultValue: string;
|
|
17
11
|
};
|
|
18
|
-
/**
|
|
19
|
-
* #slot
|
|
20
|
-
*/
|
|
21
12
|
sequenceAdapter: {
|
|
22
13
|
type: string;
|
|
23
14
|
description: string;
|
|
@@ -1,29 +1,16 @@
|
|
|
1
1
|
import { ConfigurationSchema } from '@jbrowse/core/configuration';
|
|
2
|
-
|
|
3
|
-
* #config HtsgetBamAdapter
|
|
4
|
-
* Used to fetch data from Htsget endpoints in BAM format, using the gmod/bam library
|
|
5
|
-
*/
|
|
6
|
-
function x() { } // eslint-disable-line @typescript-eslint/no-unused-vars
|
|
2
|
+
function x() { }
|
|
7
3
|
const HtsgetBamAdapter = ConfigurationSchema('HtsgetBamAdapter', {
|
|
8
|
-
/**
|
|
9
|
-
* #slot
|
|
10
|
-
*/
|
|
11
4
|
htsgetBase: {
|
|
12
5
|
type: 'string',
|
|
13
6
|
description: 'the base URL to fetch from',
|
|
14
7
|
defaultValue: '',
|
|
15
8
|
},
|
|
16
|
-
/**
|
|
17
|
-
* #slot
|
|
18
|
-
*/
|
|
19
9
|
htsgetTrackId: {
|
|
20
10
|
type: 'string',
|
|
21
11
|
description: 'the trackId, which is appended to the base URL',
|
|
22
12
|
defaultValue: '',
|
|
23
13
|
},
|
|
24
|
-
/**
|
|
25
|
-
* #slot
|
|
26
|
-
*/
|
|
27
14
|
sequenceAdapter: {
|
|
28
15
|
type: 'frozen',
|
|
29
16
|
description: 'sequence data adapter, used to calculate SNPs when BAM reads lacking MD tags',
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import PluginManager from '@jbrowse/core/PluginManager';
|
|
1
|
+
import type PluginManager from '@jbrowse/core/PluginManager';
|
|
2
2
|
export default function HtsgetBamAdapterF(pluginManager: PluginManager): void;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import configSchema from './configSchema';
|
|
2
1
|
import AdapterType from '@jbrowse/core/pluggableElementTypes/AdapterType';
|
|
2
|
+
import configSchema from './configSchema';
|
|
3
3
|
export default function HtsgetBamAdapterF(pluginManager) {
|
|
4
4
|
pluginManager.addAdapterType(() => {
|
|
5
5
|
return new AdapterType({
|
|
@@ -1,8 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
/**
|
|
4
|
-
* #stateModel LinearAlignmentsDisplayMixin
|
|
5
|
-
*/
|
|
1
|
+
import type PluginManager from '@jbrowse/core/PluginManager';
|
|
2
|
+
import type { AnyConfigurationSchemaType } from '@jbrowse/core/configuration';
|
|
6
3
|
export declare function LinearAlignmentsDisplayMixin(pluginManager: PluginManager, configSchema: AnyConfigurationSchemaType): import("mobx-state-tree").IModelType<{
|
|
7
4
|
PileupDisplay: import("mobx-state-tree").IMaybe<import("mobx-state-tree").IAnyType>;
|
|
8
5
|
SNPCoverageDisplay: import("mobx-state-tree").IMaybe<import("mobx-state-tree").IAnyModelType>;
|
|
@@ -1,45 +1,15 @@
|
|
|
1
|
+
import { ConfigurationReference } from '@jbrowse/core/configuration';
|
|
1
2
|
import { types } from 'mobx-state-tree';
|
|
2
|
-
// jbrowse
|
|
3
|
-
import { ConfigurationReference, } from '@jbrowse/core/configuration';
|
|
4
3
|
import { getLowerPanelDisplays } from './util';
|
|
5
|
-
/**
|
|
6
|
-
* #stateModel LinearAlignmentsDisplayMixin
|
|
7
|
-
*/
|
|
8
4
|
export function LinearAlignmentsDisplayMixin(pluginManager, configSchema) {
|
|
9
5
|
return types.model({
|
|
10
|
-
/**
|
|
11
|
-
* #property
|
|
12
|
-
* refers to LinearPileupDisplay sub-display model
|
|
13
|
-
*/
|
|
14
6
|
PileupDisplay: types.maybe(types.union(...getLowerPanelDisplays(pluginManager).map(f => f.stateModel))),
|
|
15
|
-
/**
|
|
16
|
-
* #property
|
|
17
|
-
* refers to LinearSNPCoverageDisplay sub-display model
|
|
18
|
-
*/
|
|
19
7
|
SNPCoverageDisplay: types.maybe(pluginManager.getDisplayType('LinearSNPCoverageDisplay').stateModel),
|
|
20
|
-
/**
|
|
21
|
-
* #property
|
|
22
|
-
*/
|
|
23
8
|
snpCovHeight: 45,
|
|
24
|
-
/**
|
|
25
|
-
* #property
|
|
26
|
-
*/
|
|
27
9
|
type: types.literal('LinearAlignmentsDisplay'),
|
|
28
|
-
/**
|
|
29
|
-
* #property
|
|
30
|
-
*/
|
|
31
10
|
configuration: ConfigurationReference(configSchema),
|
|
32
|
-
/**
|
|
33
|
-
* #property
|
|
34
|
-
*/
|
|
35
11
|
heightPreConfig: types.maybe(types.number),
|
|
36
|
-
/**
|
|
37
|
-
* #property
|
|
38
|
-
*/
|
|
39
12
|
userFeatureScreenDensity: types.maybe(types.number),
|
|
40
|
-
/**
|
|
41
|
-
* #property
|
|
42
|
-
*/
|
|
43
13
|
lowerPanelType: 'LinearPileupDisplay',
|
|
44
14
|
});
|
|
45
15
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { LinearAlignmentsDisplayModel } from '../
|
|
2
|
+
import type { LinearAlignmentsDisplayModel } from '../model';
|
|
3
3
|
declare const AlignmentsDisplay: ({ model, }: {
|
|
4
4
|
model: LinearAlignmentsDisplayModel;
|
|
5
5
|
}) => React.JSX.Element | null;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { observer } from 'mobx-react';
|
|
3
|
-
import { makeStyles } from 'tss-react/mui';
|
|
4
2
|
import { getConf } from '@jbrowse/core/configuration';
|
|
5
3
|
import { ResizeHandle } from '@jbrowse/core/ui';
|
|
4
|
+
import { observer } from 'mobx-react';
|
|
5
|
+
import { makeStyles } from 'tss-react/mui';
|
|
6
6
|
const useStyles = makeStyles()({
|
|
7
7
|
resizeHandle: {
|
|
8
8
|
height: 5,
|