@jbrowse/plugin-alignments 2.6.1 → 2.6.3
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.js +0 -1
- package/dist/AlignmentsFeatureDetail/AlignmentsFeatureFlags.js +0 -1
- package/dist/AlignmentsFeatureDetail/AlignmentsFeatureSuppAligns.js +0 -1
- package/dist/AlignmentsFeatureDetail/index.js +0 -1
- package/dist/AlignmentsFeatureDetail/util.js +0 -1
- package/dist/AlignmentsTrack/configSchemaF.js +0 -1
- package/dist/AlignmentsTrack/index.js +0 -1
- package/dist/BamAdapter/BamAdapter.js +0 -1
- package/dist/BamAdapter/BamSlightlyLazyFeature.js +0 -1
- package/dist/BamAdapter/configSchema.js +0 -1
- package/dist/BamAdapter/index.js +0 -1
- package/dist/CramAdapter/CramAdapter.js +0 -1
- package/dist/CramAdapter/CramSlightlyLazyFeature.js +0 -1
- package/dist/CramAdapter/CramTestAdapters.js +0 -1
- package/dist/CramAdapter/configSchema.js +0 -1
- package/dist/CramAdapter/index.js +0 -1
- package/dist/CramAdapter/util.js +0 -1
- package/dist/GuessAlignmentsTypes/index.js +0 -1
- package/dist/HtsgetBamAdapter/HtsgetBamAdapter.js +0 -1
- package/dist/HtsgetBamAdapter/configSchema.js +0 -1
- package/dist/HtsgetBamAdapter/index.js +0 -1
- package/dist/LinearAlignmentsDisplay/components/AlignmentsDisplay.d.ts +1 -1
- package/dist/LinearAlignmentsDisplay/components/AlignmentsDisplay.js +5 -2
- package/dist/LinearAlignmentsDisplay/index.js +0 -1
- package/dist/LinearAlignmentsDisplay/models/configSchema.js +0 -1
- package/dist/LinearAlignmentsDisplay/models/model.js +5 -2
- package/dist/LinearPileupDisplay/SharedLinearPileupDisplayMixin.d.ts +492 -0
- package/dist/LinearPileupDisplay/SharedLinearPileupDisplayMixin.js +529 -0
- package/dist/LinearPileupDisplay/components/ColorByModifications.js +0 -1
- package/dist/LinearPileupDisplay/components/ColorByTag.js +0 -1
- package/dist/LinearPileupDisplay/components/LinearPileupDisplayBlurb.js +0 -1
- package/dist/LinearPileupDisplay/components/ModificationsTable.js +0 -1
- package/dist/LinearPileupDisplay/components/SetFeatureHeight.js +0 -1
- package/dist/LinearPileupDisplay/components/SetMaxHeight.js +0 -1
- package/dist/LinearPileupDisplay/components/SortByTag.js +0 -1
- package/dist/LinearPileupDisplay/configSchema.js +0 -1
- package/dist/LinearPileupDisplay/index.d.ts +1 -0
- package/dist/LinearPileupDisplay/index.js +3 -2
- package/dist/LinearPileupDisplay/model.d.ts +110 -231
- package/dist/LinearPileupDisplay/model.js +47 -445
- package/dist/LinearReadArcsDisplay/components/ReactComponent.js +0 -1
- package/dist/LinearReadArcsDisplay/configSchema.js +0 -1
- package/dist/LinearReadArcsDisplay/drawFeats.js +0 -1
- package/dist/LinearReadArcsDisplay/index.js +0 -1
- package/dist/LinearReadArcsDisplay/model.js +0 -1
- package/dist/LinearReadArcsDisplay/util.js +0 -1
- package/dist/LinearReadCloudDisplay/components/ReactComponent.js +0 -1
- package/dist/LinearReadCloudDisplay/configSchema.d.ts +4 -4
- package/dist/LinearReadCloudDisplay/configSchema.js +0 -1
- package/dist/LinearReadCloudDisplay/drawFeats.js +0 -1
- package/dist/LinearReadCloudDisplay/drawLongReadChains.js +0 -1
- package/dist/LinearReadCloudDisplay/drawPairChains.js +0 -1
- package/dist/LinearReadCloudDisplay/index.js +0 -1
- package/dist/LinearReadCloudDisplay/model.d.ts +1 -3
- package/dist/LinearReadCloudDisplay/model.js +0 -1
- package/dist/LinearReadCloudDisplay/util.js +0 -1
- package/dist/LinearSNPCoverageDisplay/components/Tooltip.js +0 -1
- package/dist/LinearSNPCoverageDisplay/index.js +0 -1
- package/dist/LinearSNPCoverageDisplay/models/configSchema.d.ts +3 -0
- package/dist/LinearSNPCoverageDisplay/models/configSchema.js +0 -1
- package/dist/LinearSNPCoverageDisplay/models/model.d.ts +31 -15
- package/dist/LinearSNPCoverageDisplay/models/model.js +0 -1
- package/dist/MismatchParser/index.js +0 -1
- package/dist/PileupRPC/base.js +0 -1
- package/dist/PileupRPC/index.js +0 -1
- package/dist/PileupRPC/methods/GetGlobalValueForTag.js +0 -1
- package/dist/PileupRPC/methods/GetReducedFeatures.js +0 -1
- package/dist/PileupRPC/methods/GetVisibleModifications.js +0 -1
- package/dist/PileupRPC/rpcMethods.js +0 -1
- package/dist/PileupRPC/util.js +0 -1
- package/dist/PileupRenderer/PileupLayoutSession.js +0 -1
- package/dist/PileupRenderer/PileupRenderer.js +0 -1
- package/dist/PileupRenderer/colorBy.js +8 -7
- package/dist/PileupRenderer/components/PileupRendering.js +0 -1
- package/dist/PileupRenderer/configSchema.js +0 -1
- package/dist/PileupRenderer/getAlignmentShapeColor.js +0 -1
- package/dist/PileupRenderer/index.js +0 -1
- package/dist/PileupRenderer/layoutFeature.js +0 -1
- package/dist/PileupRenderer/layoutFeatures.js +0 -1
- package/dist/PileupRenderer/makeImageData.js +0 -1
- package/dist/PileupRenderer/renderAlignment.js +0 -1
- package/dist/PileupRenderer/renderAlignmentShape.js +1 -2
- package/dist/PileupRenderer/renderMethylation.js +0 -1
- package/dist/PileupRenderer/renderMismatches.js +0 -1
- package/dist/PileupRenderer/renderModifications.js +0 -1
- package/dist/PileupRenderer/renderPerBaseLettering.js +0 -1
- package/dist/PileupRenderer/renderPerBaseQuality.js +0 -1
- package/dist/PileupRenderer/renderSoftClipping.js +0 -1
- package/dist/PileupRenderer/sortUtil.js +0 -1
- package/dist/PileupRenderer/util.js +0 -1
- package/dist/SNPCoverageAdapter/SNPCoverageAdapter.js +0 -1
- package/dist/SNPCoverageAdapter/configSchema.js +0 -1
- package/dist/SNPCoverageAdapter/generateCoverageBins.js +0 -1
- package/dist/SNPCoverageAdapter/index.js +0 -1
- package/dist/SNPCoverageAdapter/util.js +0 -1
- package/dist/SNPCoverageRenderer/SNPCoverageRenderer.js +0 -1
- package/dist/SNPCoverageRenderer/configSchema.js +0 -1
- package/dist/SNPCoverageRenderer/index.js +0 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +2 -2
- package/dist/shared/BaseDisplayComponent.js +0 -1
- package/dist/shared/FilterByTag.js +0 -1
- package/dist/shared/afterAttach.js +0 -1
- package/dist/shared/color.d.ts +10 -0
- package/dist/shared/color.js +7 -2
- package/dist/shared/fetchChains.js +0 -1
- package/dist/shared/index.js +0 -1
- package/dist/shared/renderSvg.js +0 -1
- package/dist/shared/util.js +0 -1
- package/dist/util.js +0 -1
- package/esm/AlignmentsFeatureDetail/AlignmentsFeatureDetail.js +0 -1
- package/esm/AlignmentsFeatureDetail/AlignmentsFeatureFlags.js +0 -1
- package/esm/AlignmentsFeatureDetail/AlignmentsFeatureSuppAligns.js +0 -1
- package/esm/AlignmentsFeatureDetail/index.js +0 -1
- package/esm/AlignmentsFeatureDetail/util.js +0 -1
- package/esm/AlignmentsTrack/configSchemaF.js +0 -1
- package/esm/AlignmentsTrack/index.js +0 -1
- package/esm/BamAdapter/BamAdapter.js +0 -1
- package/esm/BamAdapter/BamSlightlyLazyFeature.js +0 -1
- package/esm/BamAdapter/configSchema.js +0 -1
- package/esm/BamAdapter/index.js +0 -1
- package/esm/CramAdapter/CramAdapter.js +0 -1
- package/esm/CramAdapter/CramSlightlyLazyFeature.js +0 -1
- package/esm/CramAdapter/CramTestAdapters.js +0 -1
- package/esm/CramAdapter/configSchema.js +0 -1
- package/esm/CramAdapter/index.js +0 -1
- package/esm/CramAdapter/util.js +0 -1
- package/esm/GuessAlignmentsTypes/index.js +0 -1
- package/esm/HtsgetBamAdapter/HtsgetBamAdapter.js +0 -1
- package/esm/HtsgetBamAdapter/configSchema.js +0 -1
- package/esm/HtsgetBamAdapter/index.js +0 -1
- package/esm/LinearAlignmentsDisplay/components/AlignmentsDisplay.d.ts +1 -1
- package/esm/LinearAlignmentsDisplay/components/AlignmentsDisplay.js +5 -2
- package/esm/LinearAlignmentsDisplay/index.js +0 -1
- package/esm/LinearAlignmentsDisplay/models/configSchema.js +0 -1
- package/esm/LinearAlignmentsDisplay/models/model.js +5 -2
- package/esm/LinearPileupDisplay/SharedLinearPileupDisplayMixin.d.ts +492 -0
- package/esm/LinearPileupDisplay/SharedLinearPileupDisplayMixin.js +499 -0
- package/esm/LinearPileupDisplay/components/ColorByModifications.js +0 -1
- package/esm/LinearPileupDisplay/components/ColorByTag.js +0 -1
- package/esm/LinearPileupDisplay/components/LinearPileupDisplayBlurb.js +0 -1
- package/esm/LinearPileupDisplay/components/ModificationsTable.js +0 -1
- package/esm/LinearPileupDisplay/components/SetFeatureHeight.js +0 -1
- package/esm/LinearPileupDisplay/components/SetMaxHeight.js +0 -1
- package/esm/LinearPileupDisplay/components/SortByTag.js +0 -1
- package/esm/LinearPileupDisplay/configSchema.js +0 -1
- package/esm/LinearPileupDisplay/index.d.ts +1 -0
- package/esm/LinearPileupDisplay/index.js +1 -1
- package/esm/LinearPileupDisplay/model.d.ts +110 -231
- package/esm/LinearPileupDisplay/model.js +48 -446
- package/esm/LinearReadArcsDisplay/components/ReactComponent.js +0 -1
- package/esm/LinearReadArcsDisplay/configSchema.js +0 -1
- package/esm/LinearReadArcsDisplay/drawFeats.js +0 -1
- package/esm/LinearReadArcsDisplay/index.js +0 -1
- package/esm/LinearReadArcsDisplay/model.js +0 -1
- package/esm/LinearReadArcsDisplay/util.js +0 -1
- package/esm/LinearReadCloudDisplay/components/ReactComponent.js +0 -1
- package/esm/LinearReadCloudDisplay/configSchema.d.ts +4 -4
- package/esm/LinearReadCloudDisplay/configSchema.js +0 -1
- package/esm/LinearReadCloudDisplay/drawFeats.js +0 -1
- package/esm/LinearReadCloudDisplay/drawLongReadChains.js +0 -1
- package/esm/LinearReadCloudDisplay/drawPairChains.js +0 -1
- package/esm/LinearReadCloudDisplay/index.js +0 -1
- package/esm/LinearReadCloudDisplay/model.d.ts +1 -3
- package/esm/LinearReadCloudDisplay/model.js +0 -1
- package/esm/LinearReadCloudDisplay/util.js +0 -1
- package/esm/LinearSNPCoverageDisplay/components/Tooltip.js +0 -1
- package/esm/LinearSNPCoverageDisplay/index.js +0 -1
- package/esm/LinearSNPCoverageDisplay/models/configSchema.d.ts +3 -0
- package/esm/LinearSNPCoverageDisplay/models/configSchema.js +0 -1
- package/esm/LinearSNPCoverageDisplay/models/model.d.ts +31 -15
- package/esm/LinearSNPCoverageDisplay/models/model.js +0 -1
- package/esm/MismatchParser/index.js +0 -1
- package/esm/PileupRPC/base.js +0 -1
- package/esm/PileupRPC/index.js +0 -1
- package/esm/PileupRPC/methods/GetGlobalValueForTag.js +0 -1
- package/esm/PileupRPC/methods/GetReducedFeatures.js +0 -1
- package/esm/PileupRPC/methods/GetVisibleModifications.js +0 -1
- package/esm/PileupRPC/rpcMethods.js +0 -1
- package/esm/PileupRPC/util.js +0 -1
- package/esm/PileupRenderer/PileupLayoutSession.js +0 -1
- package/esm/PileupRenderer/PileupRenderer.js +0 -1
- package/esm/PileupRenderer/colorBy.js +8 -7
- package/esm/PileupRenderer/components/PileupRendering.js +0 -1
- package/esm/PileupRenderer/configSchema.js +0 -1
- package/esm/PileupRenderer/getAlignmentShapeColor.js +0 -1
- package/esm/PileupRenderer/index.js +0 -1
- package/esm/PileupRenderer/layoutFeature.js +0 -1
- package/esm/PileupRenderer/layoutFeatures.js +0 -1
- package/esm/PileupRenderer/makeImageData.js +0 -1
- package/esm/PileupRenderer/renderAlignment.js +0 -1
- package/esm/PileupRenderer/renderAlignmentShape.js +1 -2
- package/esm/PileupRenderer/renderMethylation.js +0 -1
- package/esm/PileupRenderer/renderMismatches.js +0 -1
- package/esm/PileupRenderer/renderModifications.js +0 -1
- package/esm/PileupRenderer/renderPerBaseLettering.js +0 -1
- package/esm/PileupRenderer/renderPerBaseQuality.js +0 -1
- package/esm/PileupRenderer/renderSoftClipping.js +0 -1
- package/esm/PileupRenderer/sortUtil.js +0 -1
- package/esm/PileupRenderer/util.js +0 -1
- package/esm/SNPCoverageAdapter/SNPCoverageAdapter.js +0 -1
- package/esm/SNPCoverageAdapter/configSchema.js +0 -1
- package/esm/SNPCoverageAdapter/generateCoverageBins.js +0 -1
- package/esm/SNPCoverageAdapter/index.js +0 -1
- package/esm/SNPCoverageAdapter/util.js +0 -1
- package/esm/SNPCoverageRenderer/SNPCoverageRenderer.js +0 -1
- package/esm/SNPCoverageRenderer/configSchema.js +0 -1
- package/esm/SNPCoverageRenderer/index.js +0 -1
- package/esm/index.d.ts +1 -1
- package/esm/index.js +1 -2
- package/esm/shared/BaseDisplayComponent.js +0 -1
- package/esm/shared/FilterByTag.js +0 -1
- package/esm/shared/afterAttach.js +0 -1
- package/esm/shared/color.d.ts +10 -0
- package/esm/shared/color.js +6 -1
- package/esm/shared/fetchChains.js +0 -1
- package/esm/shared/index.js +0 -1
- package/esm/shared/renderSvg.js +0 -1
- package/esm/shared/util.js +0 -1
- package/esm/util.js +0 -1
- package/package.json +4 -5
- package/dist/AlignmentsFeatureDetail/AlignmentsFeatureDetail.js.map +0 -1
- package/dist/AlignmentsFeatureDetail/AlignmentsFeatureFlags.js.map +0 -1
- package/dist/AlignmentsFeatureDetail/AlignmentsFeatureSuppAligns.js.map +0 -1
- package/dist/AlignmentsFeatureDetail/index.js.map +0 -1
- package/dist/AlignmentsFeatureDetail/util.js.map +0 -1
- package/dist/AlignmentsTrack/configSchemaF.js.map +0 -1
- package/dist/AlignmentsTrack/index.js.map +0 -1
- package/dist/BamAdapter/BamAdapter.js.map +0 -1
- package/dist/BamAdapter/BamSlightlyLazyFeature.js.map +0 -1
- package/dist/BamAdapter/configSchema.js.map +0 -1
- package/dist/BamAdapter/index.js.map +0 -1
- package/dist/CramAdapter/CramAdapter.js.map +0 -1
- package/dist/CramAdapter/CramSlightlyLazyFeature.js.map +0 -1
- package/dist/CramAdapter/CramTestAdapters.js.map +0 -1
- package/dist/CramAdapter/configSchema.js.map +0 -1
- package/dist/CramAdapter/index.js.map +0 -1
- package/dist/CramAdapter/util.js.map +0 -1
- package/dist/GuessAlignmentsTypes/index.js.map +0 -1
- package/dist/HtsgetBamAdapter/HtsgetBamAdapter.js.map +0 -1
- package/dist/HtsgetBamAdapter/configSchema.js.map +0 -1
- package/dist/HtsgetBamAdapter/index.js.map +0 -1
- package/dist/LinearAlignmentsDisplay/components/AlignmentsDisplay.js.map +0 -1
- package/dist/LinearAlignmentsDisplay/index.js.map +0 -1
- package/dist/LinearAlignmentsDisplay/models/configSchema.js.map +0 -1
- package/dist/LinearAlignmentsDisplay/models/model.js.map +0 -1
- package/dist/LinearPileupDisplay/components/ColorByModifications.js.map +0 -1
- package/dist/LinearPileupDisplay/components/ColorByTag.js.map +0 -1
- package/dist/LinearPileupDisplay/components/LinearPileupDisplayBlurb.js.map +0 -1
- package/dist/LinearPileupDisplay/components/ModificationsTable.js.map +0 -1
- package/dist/LinearPileupDisplay/components/SetFeatureHeight.js.map +0 -1
- package/dist/LinearPileupDisplay/components/SetMaxHeight.js.map +0 -1
- package/dist/LinearPileupDisplay/components/SortByTag.js.map +0 -1
- package/dist/LinearPileupDisplay/configSchema.js.map +0 -1
- package/dist/LinearPileupDisplay/index.js.map +0 -1
- package/dist/LinearPileupDisplay/model.js.map +0 -1
- package/dist/LinearReadArcsDisplay/components/ReactComponent.js.map +0 -1
- package/dist/LinearReadArcsDisplay/configSchema.js.map +0 -1
- package/dist/LinearReadArcsDisplay/drawFeats.js.map +0 -1
- package/dist/LinearReadArcsDisplay/index.js.map +0 -1
- package/dist/LinearReadArcsDisplay/model.js.map +0 -1
- package/dist/LinearReadArcsDisplay/util.js.map +0 -1
- package/dist/LinearReadCloudDisplay/components/ReactComponent.js.map +0 -1
- package/dist/LinearReadCloudDisplay/configSchema.js.map +0 -1
- package/dist/LinearReadCloudDisplay/drawFeats.js.map +0 -1
- package/dist/LinearReadCloudDisplay/drawLongReadChains.js.map +0 -1
- package/dist/LinearReadCloudDisplay/drawPairChains.js.map +0 -1
- package/dist/LinearReadCloudDisplay/index.js.map +0 -1
- package/dist/LinearReadCloudDisplay/model.js.map +0 -1
- package/dist/LinearReadCloudDisplay/util.js.map +0 -1
- package/dist/LinearSNPCoverageDisplay/components/Tooltip.js.map +0 -1
- package/dist/LinearSNPCoverageDisplay/index.js.map +0 -1
- package/dist/LinearSNPCoverageDisplay/models/configSchema.js.map +0 -1
- package/dist/LinearSNPCoverageDisplay/models/model.js.map +0 -1
- package/dist/MismatchParser/index.js.map +0 -1
- package/dist/PileupRPC/base.js.map +0 -1
- package/dist/PileupRPC/index.js.map +0 -1
- package/dist/PileupRPC/methods/GetGlobalValueForTag.js.map +0 -1
- package/dist/PileupRPC/methods/GetReducedFeatures.js.map +0 -1
- package/dist/PileupRPC/methods/GetVisibleModifications.js.map +0 -1
- package/dist/PileupRPC/rpcMethods.js.map +0 -1
- package/dist/PileupRPC/util.js.map +0 -1
- package/dist/PileupRenderer/PileupLayoutSession.js.map +0 -1
- package/dist/PileupRenderer/PileupRenderer.js.map +0 -1
- package/dist/PileupRenderer/colorBy.js.map +0 -1
- package/dist/PileupRenderer/components/PileupRendering.js.map +0 -1
- package/dist/PileupRenderer/configSchema.js.map +0 -1
- package/dist/PileupRenderer/getAlignmentShapeColor.js.map +0 -1
- package/dist/PileupRenderer/index.js.map +0 -1
- package/dist/PileupRenderer/layoutFeature.js.map +0 -1
- package/dist/PileupRenderer/layoutFeatures.js.map +0 -1
- package/dist/PileupRenderer/makeImageData.js.map +0 -1
- package/dist/PileupRenderer/renderAlignment.js.map +0 -1
- package/dist/PileupRenderer/renderAlignmentShape.js.map +0 -1
- package/dist/PileupRenderer/renderMethylation.js.map +0 -1
- package/dist/PileupRenderer/renderMismatches.js.map +0 -1
- package/dist/PileupRenderer/renderModifications.js.map +0 -1
- package/dist/PileupRenderer/renderPerBaseLettering.js.map +0 -1
- package/dist/PileupRenderer/renderPerBaseQuality.js.map +0 -1
- package/dist/PileupRenderer/renderSoftClipping.js.map +0 -1
- package/dist/PileupRenderer/sortUtil.js.map +0 -1
- package/dist/PileupRenderer/util.js.map +0 -1
- package/dist/SNPCoverageAdapter/SNPCoverageAdapter.js.map +0 -1
- package/dist/SNPCoverageAdapter/configSchema.js.map +0 -1
- package/dist/SNPCoverageAdapter/generateCoverageBins.js.map +0 -1
- package/dist/SNPCoverageAdapter/index.js.map +0 -1
- package/dist/SNPCoverageAdapter/util.js.map +0 -1
- package/dist/SNPCoverageRenderer/SNPCoverageRenderer.js.map +0 -1
- package/dist/SNPCoverageRenderer/configSchema.js.map +0 -1
- package/dist/SNPCoverageRenderer/index.js.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/shared/BaseDisplayComponent.js.map +0 -1
- package/dist/shared/FilterByTag.js.map +0 -1
- package/dist/shared/afterAttach.js.map +0 -1
- package/dist/shared/color.js.map +0 -1
- package/dist/shared/fetchChains.js.map +0 -1
- package/dist/shared/index.js.map +0 -1
- package/dist/shared/renderSvg.js.map +0 -1
- package/dist/shared/util.js.map +0 -1
- package/dist/util.js.map +0 -1
- package/esm/AlignmentsFeatureDetail/AlignmentsFeatureDetail.js.map +0 -1
- package/esm/AlignmentsFeatureDetail/AlignmentsFeatureFlags.js.map +0 -1
- package/esm/AlignmentsFeatureDetail/AlignmentsFeatureSuppAligns.js.map +0 -1
- package/esm/AlignmentsFeatureDetail/index.js.map +0 -1
- package/esm/AlignmentsFeatureDetail/util.js.map +0 -1
- package/esm/AlignmentsTrack/configSchemaF.js.map +0 -1
- package/esm/AlignmentsTrack/index.js.map +0 -1
- package/esm/BamAdapter/BamAdapter.js.map +0 -1
- package/esm/BamAdapter/BamSlightlyLazyFeature.js.map +0 -1
- package/esm/BamAdapter/configSchema.js.map +0 -1
- package/esm/BamAdapter/index.js.map +0 -1
- package/esm/CramAdapter/CramAdapter.js.map +0 -1
- package/esm/CramAdapter/CramSlightlyLazyFeature.js.map +0 -1
- package/esm/CramAdapter/CramTestAdapters.js.map +0 -1
- package/esm/CramAdapter/configSchema.js.map +0 -1
- package/esm/CramAdapter/index.js.map +0 -1
- package/esm/CramAdapter/util.js.map +0 -1
- package/esm/GuessAlignmentsTypes/index.js.map +0 -1
- package/esm/HtsgetBamAdapter/HtsgetBamAdapter.js.map +0 -1
- package/esm/HtsgetBamAdapter/configSchema.js.map +0 -1
- package/esm/HtsgetBamAdapter/index.js.map +0 -1
- package/esm/LinearAlignmentsDisplay/components/AlignmentsDisplay.js.map +0 -1
- package/esm/LinearAlignmentsDisplay/index.js.map +0 -1
- package/esm/LinearAlignmentsDisplay/models/configSchema.js.map +0 -1
- package/esm/LinearAlignmentsDisplay/models/model.js.map +0 -1
- package/esm/LinearPileupDisplay/components/ColorByModifications.js.map +0 -1
- package/esm/LinearPileupDisplay/components/ColorByTag.js.map +0 -1
- package/esm/LinearPileupDisplay/components/LinearPileupDisplayBlurb.js.map +0 -1
- package/esm/LinearPileupDisplay/components/ModificationsTable.js.map +0 -1
- package/esm/LinearPileupDisplay/components/SetFeatureHeight.js.map +0 -1
- package/esm/LinearPileupDisplay/components/SetMaxHeight.js.map +0 -1
- package/esm/LinearPileupDisplay/components/SortByTag.js.map +0 -1
- package/esm/LinearPileupDisplay/configSchema.js.map +0 -1
- package/esm/LinearPileupDisplay/index.js.map +0 -1
- package/esm/LinearPileupDisplay/model.js.map +0 -1
- package/esm/LinearReadArcsDisplay/components/ReactComponent.js.map +0 -1
- package/esm/LinearReadArcsDisplay/configSchema.js.map +0 -1
- package/esm/LinearReadArcsDisplay/drawFeats.js.map +0 -1
- package/esm/LinearReadArcsDisplay/index.js.map +0 -1
- package/esm/LinearReadArcsDisplay/model.js.map +0 -1
- package/esm/LinearReadArcsDisplay/util.js.map +0 -1
- package/esm/LinearReadCloudDisplay/components/ReactComponent.js.map +0 -1
- package/esm/LinearReadCloudDisplay/configSchema.js.map +0 -1
- package/esm/LinearReadCloudDisplay/drawFeats.js.map +0 -1
- package/esm/LinearReadCloudDisplay/drawLongReadChains.js.map +0 -1
- package/esm/LinearReadCloudDisplay/drawPairChains.js.map +0 -1
- package/esm/LinearReadCloudDisplay/index.js.map +0 -1
- package/esm/LinearReadCloudDisplay/model.js.map +0 -1
- package/esm/LinearReadCloudDisplay/util.js.map +0 -1
- package/esm/LinearSNPCoverageDisplay/components/Tooltip.js.map +0 -1
- package/esm/LinearSNPCoverageDisplay/index.js.map +0 -1
- package/esm/LinearSNPCoverageDisplay/models/configSchema.js.map +0 -1
- package/esm/LinearSNPCoverageDisplay/models/model.js.map +0 -1
- package/esm/MismatchParser/index.js.map +0 -1
- package/esm/PileupRPC/base.js.map +0 -1
- package/esm/PileupRPC/index.js.map +0 -1
- package/esm/PileupRPC/methods/GetGlobalValueForTag.js.map +0 -1
- package/esm/PileupRPC/methods/GetReducedFeatures.js.map +0 -1
- package/esm/PileupRPC/methods/GetVisibleModifications.js.map +0 -1
- package/esm/PileupRPC/rpcMethods.js.map +0 -1
- package/esm/PileupRPC/util.js.map +0 -1
- package/esm/PileupRenderer/PileupLayoutSession.js.map +0 -1
- package/esm/PileupRenderer/PileupRenderer.js.map +0 -1
- package/esm/PileupRenderer/colorBy.js.map +0 -1
- package/esm/PileupRenderer/components/PileupRendering.js.map +0 -1
- package/esm/PileupRenderer/configSchema.js.map +0 -1
- package/esm/PileupRenderer/getAlignmentShapeColor.js.map +0 -1
- package/esm/PileupRenderer/index.js.map +0 -1
- package/esm/PileupRenderer/layoutFeature.js.map +0 -1
- package/esm/PileupRenderer/layoutFeatures.js.map +0 -1
- package/esm/PileupRenderer/makeImageData.js.map +0 -1
- package/esm/PileupRenderer/renderAlignment.js.map +0 -1
- package/esm/PileupRenderer/renderAlignmentShape.js.map +0 -1
- package/esm/PileupRenderer/renderMethylation.js.map +0 -1
- package/esm/PileupRenderer/renderMismatches.js.map +0 -1
- package/esm/PileupRenderer/renderModifications.js.map +0 -1
- package/esm/PileupRenderer/renderPerBaseLettering.js.map +0 -1
- package/esm/PileupRenderer/renderPerBaseQuality.js.map +0 -1
- package/esm/PileupRenderer/renderSoftClipping.js.map +0 -1
- package/esm/PileupRenderer/sortUtil.js.map +0 -1
- package/esm/PileupRenderer/util.js.map +0 -1
- package/esm/SNPCoverageAdapter/SNPCoverageAdapter.js.map +0 -1
- package/esm/SNPCoverageAdapter/configSchema.js.map +0 -1
- package/esm/SNPCoverageAdapter/generateCoverageBins.js.map +0 -1
- package/esm/SNPCoverageAdapter/index.js.map +0 -1
- package/esm/SNPCoverageAdapter/util.js.map +0 -1
- package/esm/SNPCoverageRenderer/SNPCoverageRenderer.js.map +0 -1
- package/esm/SNPCoverageRenderer/configSchema.js.map +0 -1
- package/esm/SNPCoverageRenderer/index.js.map +0 -1
- package/esm/index.js.map +0 -1
- package/esm/shared/BaseDisplayComponent.js.map +0 -1
- package/esm/shared/FilterByTag.js.map +0 -1
- package/esm/shared/afterAttach.js.map +0 -1
- package/esm/shared/color.js.map +0 -1
- package/esm/shared/fetchChains.js.map +0 -1
- package/esm/shared/index.js.map +0 -1
- package/esm/shared/renderSvg.js.map +0 -1
- package/esm/shared/util.js.map +0 -1
- package/esm/util.js.map +0 -1
- package/src/AlignmentsFeatureDetail/AlignmentsFeatureDetail.tsx +0 -155
- package/src/AlignmentsFeatureDetail/AlignmentsFeatureFlags.tsx +0 -60
- package/src/AlignmentsFeatureDetail/AlignmentsFeatureSuppAligns.tsx +0 -51
- package/src/AlignmentsFeatureDetail/__snapshots__/index.test.tsx.snap +0 -327
- package/src/AlignmentsFeatureDetail/index.test.tsx +0 -47
- package/src/AlignmentsFeatureDetail/index.ts +0 -33
- package/src/AlignmentsFeatureDetail/util.ts +0 -27
- package/src/AlignmentsTrack/configSchemaF.ts +0 -22
- package/src/AlignmentsTrack/index.ts +0 -22
- package/src/BamAdapter/BamAdapter.test.ts +0 -124
- package/src/BamAdapter/BamAdapter.ts +0 -251
- package/src/BamAdapter/BamSlightlyLazyFeature.ts +0 -149
- package/src/BamAdapter/__snapshots__/BamAdapter.test.ts.snap +0 -1105
- package/src/BamAdapter/configSchema.ts +0 -65
- package/src/BamAdapter/index.ts +0 -14
- package/src/CombinationTest.test.ts +0 -108
- package/src/CramAdapter/CramAdapter.test.ts +0 -85
- package/src/CramAdapter/CramAdapter.ts +0 -323
- package/src/CramAdapter/CramSlightlyLazyFeature.ts +0 -185
- package/src/CramAdapter/CramTestAdapters.ts +0 -98
- package/src/CramAdapter/__snapshots__/CramAdapter.test.ts.snap +0 -256
- package/src/CramAdapter/__snapshots__/util.test.ts.snap +0 -14
- package/src/CramAdapter/configSchema.ts +0 -57
- package/src/CramAdapter/index.ts +0 -16
- package/src/CramAdapter/util.test.ts +0 -26
- package/src/CramAdapter/util.ts +0 -251
- package/src/GuessAlignmentsTypes/index.ts +0 -79
- package/src/HtsgetBamAdapter/HtsgetBamAdapter.ts +0 -24
- package/src/HtsgetBamAdapter/configSchema.ts +0 -40
- package/src/HtsgetBamAdapter/index.ts +0 -17
- package/src/LinearAlignmentsDisplay/components/AlignmentsDisplay.tsx +0 -52
- package/src/LinearAlignmentsDisplay/index.ts +0 -21
- package/src/LinearAlignmentsDisplay/models/configSchema.test.ts +0 -60
- package/src/LinearAlignmentsDisplay/models/configSchema.ts +0 -41
- package/src/LinearAlignmentsDisplay/models/model.tsx +0 -403
- package/src/LinearPileupDisplay/components/ColorByModifications.tsx +0 -102
- package/src/LinearPileupDisplay/components/ColorByTag.tsx +0 -61
- package/src/LinearPileupDisplay/components/LinearPileupDisplayBlurb.tsx +0 -32
- package/src/LinearPileupDisplay/components/ModificationsTable.tsx +0 -38
- package/src/LinearPileupDisplay/components/SetFeatureHeight.tsx +0 -82
- package/src/LinearPileupDisplay/components/SetMaxHeight.tsx +0 -71
- package/src/LinearPileupDisplay/components/SortByTag.tsx +0 -64
- package/src/LinearPileupDisplay/configSchema.test.js +0 -55
- package/src/LinearPileupDisplay/configSchema.ts +0 -67
- package/src/LinearPileupDisplay/index.ts +0 -24
- package/src/LinearPileupDisplay/model.ts +0 -884
- package/src/LinearReadArcsDisplay/components/ReactComponent.tsx +0 -50
- package/src/LinearReadArcsDisplay/configSchema.ts +0 -68
- package/src/LinearReadArcsDisplay/declare.d.ts +0 -1
- package/src/LinearReadArcsDisplay/drawFeats.ts +0 -210
- package/src/LinearReadArcsDisplay/index.ts +0 -23
- package/src/LinearReadArcsDisplay/model.tsx +0 -355
- package/src/LinearReadArcsDisplay/util.ts +0 -10
- package/src/LinearReadCloudDisplay/components/ReactComponent.tsx +0 -48
- package/src/LinearReadCloudDisplay/configSchema.ts +0 -57
- package/src/LinearReadCloudDisplay/drawFeats.ts +0 -35
- package/src/LinearReadCloudDisplay/drawLongReadChains.ts +0 -85
- package/src/LinearReadCloudDisplay/drawPairChains.ts +0 -139
- package/src/LinearReadCloudDisplay/index.ts +0 -23
- package/src/LinearReadCloudDisplay/model.tsx +0 -246
- package/src/LinearReadCloudDisplay/util.ts +0 -47
- package/src/LinearSNPCoverageDisplay/components/Tooltip.tsx +0 -128
- package/src/LinearSNPCoverageDisplay/index.ts +0 -20
- package/src/LinearSNPCoverageDisplay/models/configSchema.test.ts +0 -35
- package/src/LinearSNPCoverageDisplay/models/configSchema.ts +0 -82
- package/src/LinearSNPCoverageDisplay/models/model.ts +0 -336
- package/src/MismatchParser/index.test.ts +0 -283
- package/src/MismatchParser/index.ts +0 -508
- package/src/PileupRPC/base.ts +0 -24
- package/src/PileupRPC/index.ts +0 -12
- package/src/PileupRPC/methods/GetGlobalValueForTag.ts +0 -44
- package/src/PileupRPC/methods/GetReducedFeatures.ts +0 -67
- package/src/PileupRPC/methods/GetVisibleModifications.ts +0 -45
- package/src/PileupRPC/rpcMethods.ts +0 -3
- package/src/PileupRPC/util.ts +0 -19
- package/src/PileupRenderer/PileupLayoutSession.ts +0 -64
- package/src/PileupRenderer/PileupRenderer.ts +0 -142
- package/src/PileupRenderer/colorBy.ts +0 -74
- package/src/PileupRenderer/components/PileupRendering.tsx +0 -209
- package/src/PileupRenderer/configSchema.ts +0 -108
- package/src/PileupRenderer/getAlignmentShapeColor.ts +0 -87
- package/src/PileupRenderer/index.ts +0 -16
- package/src/PileupRenderer/layoutFeature.ts +0 -83
- package/src/PileupRenderer/layoutFeatures.ts +0 -44
- package/src/PileupRenderer/makeImageData.ts +0 -93
- package/src/PileupRenderer/renderAlignment.ts +0 -97
- package/src/PileupRenderer/renderAlignmentShape.ts +0 -45
- package/src/PileupRenderer/renderMethylation.ts +0 -75
- package/src/PileupRenderer/renderMismatches.ts +0 -206
- package/src/PileupRenderer/renderModifications.ts +0 -74
- package/src/PileupRenderer/renderPerBaseLettering.ts +0 -67
- package/src/PileupRenderer/renderPerBaseQuality.ts +0 -46
- package/src/PileupRenderer/renderSoftClipping.ts +0 -78
- package/src/PileupRenderer/sortUtil.ts +0 -107
- package/src/PileupRenderer/util.ts +0 -63
- package/src/SNPCoverageAdapter/SNPCoverageAdapter.ts +0 -111
- package/src/SNPCoverageAdapter/configSchema.ts +0 -23
- package/src/SNPCoverageAdapter/generateCoverageBins.ts +0 -259
- package/src/SNPCoverageAdapter/index.ts +0 -18
- package/src/SNPCoverageAdapter/util.ts +0 -33
- package/src/SNPCoverageRenderer/SNPCoverageRenderer.ts +0 -270
- package/src/SNPCoverageRenderer/configSchema.ts +0 -64
- package/src/SNPCoverageRenderer/index.ts +0 -17
- package/src/__snapshots__/index.test.ts.snap +0 -3
- package/src/index.test.ts +0 -17
- package/src/index.ts +0 -48
- package/src/shared/BaseDisplayComponent.tsx +0 -83
- package/src/shared/FilterByTag.tsx +0 -187
- package/src/shared/afterAttach.tsx +0 -66
- package/src/shared/color.ts +0 -86
- package/src/shared/fetchChains.ts +0 -62
- package/src/shared/index.ts +0 -75
- package/src/shared/renderSvg.tsx +0 -64
- package/src/shared/util.ts +0 -10
- package/src/util.ts +0 -154
|
@@ -1,259 +0,0 @@
|
|
|
1
|
-
import { AugmentedRegion as Region } from '@jbrowse/core/util/types'
|
|
2
|
-
import { Feature } from '@jbrowse/core/util/simpleFeature'
|
|
3
|
-
import { getTag, getTagAlt, shouldFetchReferenceSequence } from '../util'
|
|
4
|
-
import {
|
|
5
|
-
parseCigar,
|
|
6
|
-
getNextRefPos,
|
|
7
|
-
getModificationPositions,
|
|
8
|
-
getMethBins,
|
|
9
|
-
Mismatch,
|
|
10
|
-
} from '../MismatchParser'
|
|
11
|
-
import { doesIntersect2 } from '@jbrowse/core/util'
|
|
12
|
-
import { Bin, SkipMap } from './util'
|
|
13
|
-
|
|
14
|
-
function mismatchLen(mismatch: Mismatch) {
|
|
15
|
-
return !isInterbase(mismatch.type) ? mismatch.length : 1
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
function isInterbase(type: string) {
|
|
19
|
-
return type === 'softclip' || type === 'hardclip' || type === 'insertion'
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
23
|
-
function inc(bin: any, strand: number, type: string, field: string) {
|
|
24
|
-
let thisBin = bin[type][field]
|
|
25
|
-
if (thisBin === undefined) {
|
|
26
|
-
thisBin = bin[type][field] = {
|
|
27
|
-
total: 0,
|
|
28
|
-
'-1': 0,
|
|
29
|
-
'0': 0,
|
|
30
|
-
'1': 0,
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
thisBin.total++
|
|
34
|
-
thisBin[strand]++
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
export default async function generateCoverageBins(
|
|
38
|
-
features: Feature[],
|
|
39
|
-
region: Region,
|
|
40
|
-
opts: { bpPerPx?: number; colorBy?: { type: string; tag?: string } },
|
|
41
|
-
fetchSequence: (arg: Region) => Promise<string>,
|
|
42
|
-
) {
|
|
43
|
-
const { colorBy } = opts
|
|
44
|
-
const extendedRegion = {
|
|
45
|
-
...region,
|
|
46
|
-
start: Math.max(0, region.start - 1),
|
|
47
|
-
end: region.end + 1,
|
|
48
|
-
}
|
|
49
|
-
const binMax = Math.ceil(extendedRegion.end - extendedRegion.start)
|
|
50
|
-
const skipmap = {} as SkipMap
|
|
51
|
-
const regionSequence =
|
|
52
|
-
features.length && shouldFetchReferenceSequence(opts.colorBy?.type)
|
|
53
|
-
? await fetchSequence(region)
|
|
54
|
-
: undefined
|
|
55
|
-
|
|
56
|
-
const bins = [] as Bin[]
|
|
57
|
-
|
|
58
|
-
for (const feature of features) {
|
|
59
|
-
const fstart = feature.get('start')
|
|
60
|
-
const fend = feature.get('end')
|
|
61
|
-
const fstrand = feature.get('strand') as -1 | 0 | 1
|
|
62
|
-
const mismatches = (feature.get('mismatches') as Mismatch[]) || []
|
|
63
|
-
|
|
64
|
-
for (let j = fstart; j < fend + 1; j++) {
|
|
65
|
-
const i = j - region.start
|
|
66
|
-
if (i >= 0 && i < binMax) {
|
|
67
|
-
if (bins[i] === undefined) {
|
|
68
|
-
bins[i] = {
|
|
69
|
-
total: 0,
|
|
70
|
-
all: 0,
|
|
71
|
-
ref: 0,
|
|
72
|
-
'-1': 0,
|
|
73
|
-
'0': 0,
|
|
74
|
-
'1': 0,
|
|
75
|
-
lowqual: {},
|
|
76
|
-
cov: {},
|
|
77
|
-
delskips: {},
|
|
78
|
-
noncov: {},
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
if (j !== fend) {
|
|
82
|
-
bins[i].total++
|
|
83
|
-
bins[i].all++
|
|
84
|
-
bins[i].ref++
|
|
85
|
-
bins[i][fstrand]++
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
if (colorBy?.type === 'modifications') {
|
|
91
|
-
const seq = feature.get('seq') as string | undefined
|
|
92
|
-
const mm = (getTagAlt(feature, 'MM', 'Mm') as string) || ''
|
|
93
|
-
const ops = parseCigar(feature.get('CIGAR'))
|
|
94
|
-
const fend = feature.get('end')
|
|
95
|
-
if (seq) {
|
|
96
|
-
const modifications = getModificationPositions(mm, seq, fstrand)
|
|
97
|
-
for (const { type, positions } of modifications) {
|
|
98
|
-
const mod = `mod_${type}`
|
|
99
|
-
for (const pos of getNextRefPos(ops, positions)) {
|
|
100
|
-
const epos = pos + fstart - region.start
|
|
101
|
-
if (epos >= 0 && epos < bins.length && pos + fstart < fend) {
|
|
102
|
-
if (bins[epos] === undefined) {
|
|
103
|
-
bins[epos] = {
|
|
104
|
-
total: 0,
|
|
105
|
-
all: 0,
|
|
106
|
-
ref: 0,
|
|
107
|
-
'-1': 0,
|
|
108
|
-
'0': 0,
|
|
109
|
-
'1': 0,
|
|
110
|
-
lowqual: {},
|
|
111
|
-
cov: {},
|
|
112
|
-
delskips: {},
|
|
113
|
-
noncov: {},
|
|
114
|
-
}
|
|
115
|
-
}
|
|
116
|
-
const bin = bins[epos]
|
|
117
|
-
if (bin) {
|
|
118
|
-
inc(bin, fstrand, 'cov', mod)
|
|
119
|
-
} else {
|
|
120
|
-
console.warn(
|
|
121
|
-
'Undefined position in modifications snpcoverage encountered',
|
|
122
|
-
)
|
|
123
|
-
}
|
|
124
|
-
}
|
|
125
|
-
}
|
|
126
|
-
}
|
|
127
|
-
}
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
if (colorBy?.type === 'methylation') {
|
|
131
|
-
if (!regionSequence) {
|
|
132
|
-
throw new Error(
|
|
133
|
-
'no region sequence detected, need sequenceAdapter configuration',
|
|
134
|
-
)
|
|
135
|
-
}
|
|
136
|
-
const seq = feature.get('seq') as string | undefined
|
|
137
|
-
if (!seq) {
|
|
138
|
-
continue
|
|
139
|
-
}
|
|
140
|
-
const { methBins, methProbs } = getMethBins(feature)
|
|
141
|
-
const dels = mismatches.filter(f => f.type === 'deletion')
|
|
142
|
-
|
|
143
|
-
// methylation based coloring takes into account both reference sequence
|
|
144
|
-
// CpG detection and reads
|
|
145
|
-
for (let i = 0; i < fend - fstart; i++) {
|
|
146
|
-
const j = i + fstart
|
|
147
|
-
const l1 = regionSequence[j - region.start + 1]?.toLowerCase()
|
|
148
|
-
const l2 = regionSequence[j - region.start + 2]?.toLowerCase()
|
|
149
|
-
if (l1 === 'c' && l2 === 'g') {
|
|
150
|
-
const bin0 = bins[j - region.start]
|
|
151
|
-
const bin1 = bins[j - region.start + 1]
|
|
152
|
-
const b0 = methBins[i]
|
|
153
|
-
const b1 = methBins[i + 1]
|
|
154
|
-
const p0 = methProbs[i]
|
|
155
|
-
const p1 = methProbs[i + 1]
|
|
156
|
-
|
|
157
|
-
// color
|
|
158
|
-
if (
|
|
159
|
-
(b0 && (p0 !== undefined ? p0 > 0.5 : true)) ||
|
|
160
|
-
(b1 && (p1 !== undefined ? p1 > 0.5 : true))
|
|
161
|
-
) {
|
|
162
|
-
if (bin0) {
|
|
163
|
-
inc(bin0, fstrand, 'cov', 'meth')
|
|
164
|
-
bin0.ref--
|
|
165
|
-
bin0[fstrand]--
|
|
166
|
-
}
|
|
167
|
-
if (bin1) {
|
|
168
|
-
inc(bin1, fstrand, 'cov', 'meth')
|
|
169
|
-
bin1.ref--
|
|
170
|
-
bin1[fstrand]--
|
|
171
|
-
}
|
|
172
|
-
} else {
|
|
173
|
-
if (bin0) {
|
|
174
|
-
if (
|
|
175
|
-
!dels?.some(d =>
|
|
176
|
-
doesIntersect2(
|
|
177
|
-
j,
|
|
178
|
-
j + 1,
|
|
179
|
-
d.start + fstart,
|
|
180
|
-
d.start + fstart + d.length,
|
|
181
|
-
),
|
|
182
|
-
)
|
|
183
|
-
) {
|
|
184
|
-
inc(bin0, fstrand, 'cov', 'unmeth')
|
|
185
|
-
bin0.ref--
|
|
186
|
-
bin0[fstrand]
|
|
187
|
-
}
|
|
188
|
-
}
|
|
189
|
-
if (bin1) {
|
|
190
|
-
if (
|
|
191
|
-
!dels?.some(d =>
|
|
192
|
-
doesIntersect2(
|
|
193
|
-
j + 1,
|
|
194
|
-
j + 2,
|
|
195
|
-
d.start + fstart,
|
|
196
|
-
d.start + fstart + d.length,
|
|
197
|
-
),
|
|
198
|
-
)
|
|
199
|
-
) {
|
|
200
|
-
inc(bin1, fstrand, 'cov', 'unmeth')
|
|
201
|
-
bin1.ref--
|
|
202
|
-
bin1[fstrand]--
|
|
203
|
-
}
|
|
204
|
-
}
|
|
205
|
-
}
|
|
206
|
-
}
|
|
207
|
-
}
|
|
208
|
-
}
|
|
209
|
-
|
|
210
|
-
// normal SNP based coloring
|
|
211
|
-
const colorSNPs =
|
|
212
|
-
colorBy?.type !== 'modifications' && colorBy?.type !== 'methylation'
|
|
213
|
-
|
|
214
|
-
for (const mismatch of mismatches) {
|
|
215
|
-
const mstart = fstart + mismatch.start
|
|
216
|
-
const mlen = mismatchLen(mismatch)
|
|
217
|
-
const mend = mstart + mlen
|
|
218
|
-
for (let j = mstart; j < mstart + mlen; j++) {
|
|
219
|
-
const epos = j - region.start
|
|
220
|
-
if (epos >= 0 && epos < bins.length) {
|
|
221
|
-
const bin = bins[epos]
|
|
222
|
-
const { base, type } = mismatch
|
|
223
|
-
const interbase = isInterbase(type)
|
|
224
|
-
if (!interbase) {
|
|
225
|
-
bin.ref--
|
|
226
|
-
bin[fstrand]--
|
|
227
|
-
} else {
|
|
228
|
-
inc(bin, fstrand, 'noncov', type)
|
|
229
|
-
}
|
|
230
|
-
|
|
231
|
-
if (type === 'deletion' || type === 'skip') {
|
|
232
|
-
inc(bin, fstrand, 'delskips', type)
|
|
233
|
-
bin.total--
|
|
234
|
-
} else if (!interbase && colorSNPs) {
|
|
235
|
-
inc(bin, fstrand, 'cov', base)
|
|
236
|
-
bin.refbase = mismatch.altbase
|
|
237
|
-
}
|
|
238
|
-
}
|
|
239
|
-
}
|
|
240
|
-
|
|
241
|
-
if (mismatch.type === 'skip') {
|
|
242
|
-
const hash = `${mstart}_${mend}_${fstrand}`
|
|
243
|
-
if (skipmap[hash] === undefined) {
|
|
244
|
-
skipmap[hash] = {
|
|
245
|
-
feature: feature,
|
|
246
|
-
start: mstart,
|
|
247
|
-
end: mend,
|
|
248
|
-
strand: fstrand,
|
|
249
|
-
xs: getTag(feature, 'XS') || getTag(feature, 'TS'),
|
|
250
|
-
score: 0,
|
|
251
|
-
}
|
|
252
|
-
}
|
|
253
|
-
skipmap[hash].score++
|
|
254
|
-
}
|
|
255
|
-
}
|
|
256
|
-
}
|
|
257
|
-
|
|
258
|
-
return { bins, skipmap }
|
|
259
|
-
}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import PluginManager from '@jbrowse/core/PluginManager'
|
|
2
|
-
import AdapterType from '@jbrowse/core/pluggableElementTypes/AdapterType'
|
|
3
|
-
import configSchema from './configSchema'
|
|
4
|
-
|
|
5
|
-
export default function (pluginManager: PluginManager) {
|
|
6
|
-
pluginManager.addAdapterType(() => {
|
|
7
|
-
return new AdapterType({
|
|
8
|
-
name: 'SNPCoverageAdapter',
|
|
9
|
-
displayName: 'SNPCoverage adapter',
|
|
10
|
-
adapterMetadata: {
|
|
11
|
-
hiddenFromGUI: true,
|
|
12
|
-
},
|
|
13
|
-
getAdapterClass: () =>
|
|
14
|
-
import('./SNPCoverageAdapter').then(r => r.default),
|
|
15
|
-
configSchema,
|
|
16
|
-
})
|
|
17
|
-
})
|
|
18
|
-
}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
export interface SkipMap {
|
|
2
|
-
[key: string]: {
|
|
3
|
-
score: number
|
|
4
|
-
feature: unknown
|
|
5
|
-
start: number
|
|
6
|
-
end: number
|
|
7
|
-
strand: number
|
|
8
|
-
xs: string
|
|
9
|
-
}
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
// bins contain:
|
|
13
|
-
// - cov feature if they contribute to coverage
|
|
14
|
-
// - noncov are insertions/clip features that don't contribute to coverage
|
|
15
|
-
// - delskips deletions or introns that don't contribute to coverage
|
|
16
|
-
export interface BinType {
|
|
17
|
-
total?: number
|
|
18
|
-
strands?: { [key: string]: number }
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
export interface Bin {
|
|
22
|
-
refbase?: string
|
|
23
|
-
total: number
|
|
24
|
-
all: number
|
|
25
|
-
ref: number
|
|
26
|
-
'-1': number
|
|
27
|
-
'0': number
|
|
28
|
-
'1': number
|
|
29
|
-
lowqual: BinType
|
|
30
|
-
cov: BinType
|
|
31
|
-
delskips: BinType
|
|
32
|
-
noncov: BinType
|
|
33
|
-
}
|
|
@@ -1,270 +0,0 @@
|
|
|
1
|
-
import { createJBrowseTheme } from '@jbrowse/core/ui'
|
|
2
|
-
import { featureSpanPx, bpSpanPx, Feature } from '@jbrowse/core/util'
|
|
3
|
-
import { readConfObject } from '@jbrowse/core/configuration'
|
|
4
|
-
import { RenderArgsDeserialized as FeatureRenderArgsDeserialized } from '@jbrowse/core/pluggableElementTypes/renderers/FeatureRendererType'
|
|
5
|
-
import {
|
|
6
|
-
getOrigin,
|
|
7
|
-
getScale,
|
|
8
|
-
ScaleOpts,
|
|
9
|
-
WiggleBaseRenderer,
|
|
10
|
-
YSCALEBAR_LABEL_OFFSET,
|
|
11
|
-
} from '@jbrowse/plugin-wiggle'
|
|
12
|
-
|
|
13
|
-
export interface RenderArgsDeserialized extends FeatureRenderArgsDeserialized {
|
|
14
|
-
bpPerPx: number
|
|
15
|
-
height: number
|
|
16
|
-
highResolutionScaling: number
|
|
17
|
-
scaleOpts: ScaleOpts
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
export interface RenderArgsDeserializedWithFeatures
|
|
21
|
-
extends RenderArgsDeserialized {
|
|
22
|
-
features: Map<string, Feature>
|
|
23
|
-
ticks: { values: number[] }
|
|
24
|
-
displayCrossHatches: boolean
|
|
25
|
-
modificationTagMap?: Record<string, string | undefined>
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
type Counts = {
|
|
29
|
-
[key: string]: { total: number; strands: { [key: string]: number } }
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
interface SNPInfo {
|
|
33
|
-
cov: Counts
|
|
34
|
-
noncov: Counts
|
|
35
|
-
total: number
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
const fudgeFactor = 0.6
|
|
39
|
-
|
|
40
|
-
export default class SNPCoverageRenderer extends WiggleBaseRenderer {
|
|
41
|
-
// note: the snps are drawn on linear scale even if the data is drawn in log
|
|
42
|
-
// scape hence the two different scales being used
|
|
43
|
-
async draw(
|
|
44
|
-
ctx: CanvasRenderingContext2D,
|
|
45
|
-
props: RenderArgsDeserializedWithFeatures,
|
|
46
|
-
) {
|
|
47
|
-
const {
|
|
48
|
-
features,
|
|
49
|
-
regions,
|
|
50
|
-
bpPerPx,
|
|
51
|
-
displayCrossHatches,
|
|
52
|
-
modificationTagMap = {},
|
|
53
|
-
scaleOpts,
|
|
54
|
-
height: unadjustedHeight,
|
|
55
|
-
theme: configTheme,
|
|
56
|
-
config: cfg,
|
|
57
|
-
ticks,
|
|
58
|
-
} = props
|
|
59
|
-
const theme = createJBrowseTheme(configTheme)
|
|
60
|
-
const [region] = regions
|
|
61
|
-
const width = (region.end - region.start) / bpPerPx
|
|
62
|
-
|
|
63
|
-
// the adjusted height takes into account YSCALEBAR_LABEL_OFFSET from the
|
|
64
|
-
// wiggle display, and makes the height of the actual drawn area add
|
|
65
|
-
// "padding" to the top and bottom of the display
|
|
66
|
-
const offset = YSCALEBAR_LABEL_OFFSET
|
|
67
|
-
const height = unadjustedHeight - offset * 2
|
|
68
|
-
|
|
69
|
-
const { domain } = scaleOpts
|
|
70
|
-
if (!domain) {
|
|
71
|
-
return
|
|
72
|
-
}
|
|
73
|
-
const opts = { ...scaleOpts, range: [0, height] }
|
|
74
|
-
const viewScale = getScale(opts)
|
|
75
|
-
|
|
76
|
-
// clipping and insertion indicators, uses a smaller height/2 scale
|
|
77
|
-
const indicatorViewScale = getScale({
|
|
78
|
-
...opts,
|
|
79
|
-
range: [0, height / 2],
|
|
80
|
-
scaleType: 'linear',
|
|
81
|
-
})
|
|
82
|
-
const originY = getOrigin(scaleOpts.scaleType)
|
|
83
|
-
const originLinear = getOrigin('linear')
|
|
84
|
-
|
|
85
|
-
const indicatorThreshold = readConfObject(cfg, 'indicatorThreshold')
|
|
86
|
-
const drawInterbaseCounts = readConfObject(cfg, 'drawInterbaseCounts')
|
|
87
|
-
const drawArcs = readConfObject(cfg, 'drawArcs')
|
|
88
|
-
const drawIndicators = readConfObject(cfg, 'drawIndicators')
|
|
89
|
-
|
|
90
|
-
// get the y coordinate that we are plotting at, this can be log scale
|
|
91
|
-
const toY = (n: number) => height - (viewScale(n) || 0) + offset
|
|
92
|
-
const toHeight = (n: number) => toY(originY) - toY(n)
|
|
93
|
-
// used specifically for indicator
|
|
94
|
-
const toY2 = (n: number) => height - (indicatorViewScale(n) || 0) + offset
|
|
95
|
-
const toHeight2 = (n: number) => toY2(originLinear) - toY2(n)
|
|
96
|
-
|
|
97
|
-
const { bases } = theme.palette
|
|
98
|
-
const colorForBase: { [key: string]: string } = {
|
|
99
|
-
A: bases.A.main,
|
|
100
|
-
C: bases.C.main,
|
|
101
|
-
G: bases.G.main,
|
|
102
|
-
T: bases.T.main,
|
|
103
|
-
insertion: 'purple',
|
|
104
|
-
softclip: 'blue',
|
|
105
|
-
hardclip: 'red',
|
|
106
|
-
total: readConfObject(cfg, 'color'),
|
|
107
|
-
meth: 'red',
|
|
108
|
-
unmeth: 'blue',
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
const feats = [...features.values()]
|
|
112
|
-
const coverage = feats.filter(f => f.get('type') !== 'skip')
|
|
113
|
-
const skips = feats.filter(f => f.get('type') === 'skip')
|
|
114
|
-
|
|
115
|
-
// Use two pass rendering, which helps in visualizing the SNPs at higher
|
|
116
|
-
// bpPerPx First pass: draw the gray background
|
|
117
|
-
ctx.fillStyle = colorForBase.total
|
|
118
|
-
for (let i = 0; i < coverage.length; i++) {
|
|
119
|
-
const feature = coverage[i]
|
|
120
|
-
const [leftPx, rightPx] = featureSpanPx(feature, region, bpPerPx)
|
|
121
|
-
const w = rightPx - leftPx + fudgeFactor
|
|
122
|
-
const score = feature.get('score') as number
|
|
123
|
-
ctx.fillRect(leftPx, toY(score), w, toHeight(score))
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
// Keep track of previous total which we will use it to draw the interbase
|
|
127
|
-
// indicator (if there is a sudden clip, there will be no read coverage but
|
|
128
|
-
// there will be "clip" coverage) at that position beyond the read. if the
|
|
129
|
-
// clip is right at a block boundary then prevTotal will not be available,
|
|
130
|
-
// so this is a best attempt to plot interbase indicator at the "cliffs"
|
|
131
|
-
let prevTotal = 0
|
|
132
|
-
|
|
133
|
-
// extraHorizontallyFlippedOffset is used to draw interbase items, which
|
|
134
|
-
// are located to the left when forward and right when reversed
|
|
135
|
-
const extraHorizontallyFlippedOffset = region.reversed ? 1 / bpPerPx : 0
|
|
136
|
-
|
|
137
|
-
// Second pass: draw the SNP data, and add a minimum feature width of 1px
|
|
138
|
-
// which can be wider than the actual bpPerPx This reduces overdrawing of
|
|
139
|
-
// the grey background over the SNPs
|
|
140
|
-
|
|
141
|
-
for (let i = 0; i < coverage.length; i++) {
|
|
142
|
-
const feature = coverage[i]
|
|
143
|
-
const [leftPx, rightPx] = featureSpanPx(feature, region, bpPerPx)
|
|
144
|
-
|
|
145
|
-
const score = feature.get('score') as number
|
|
146
|
-
const snpinfo = feature.get('snpinfo') as SNPInfo
|
|
147
|
-
const w = Math.max(rightPx - leftPx, 1)
|
|
148
|
-
const totalScore = snpinfo.total
|
|
149
|
-
const keys = Object.keys(snpinfo.cov).sort()
|
|
150
|
-
|
|
151
|
-
let curr = 0
|
|
152
|
-
for (let i = 0; i < keys.length; i++) {
|
|
153
|
-
const base = keys[i]
|
|
154
|
-
const { total } = snpinfo.cov[base]
|
|
155
|
-
ctx.fillStyle =
|
|
156
|
-
colorForBase[base] ||
|
|
157
|
-
modificationTagMap[base.replace('mod_', '')] ||
|
|
158
|
-
'black'
|
|
159
|
-
|
|
160
|
-
const height = toHeight(score)
|
|
161
|
-
const bottom = toY(score) + height
|
|
162
|
-
ctx.fillRect(
|
|
163
|
-
Math.round(leftPx),
|
|
164
|
-
bottom - ((total + curr) / score) * height,
|
|
165
|
-
w,
|
|
166
|
-
(total / score) * height,
|
|
167
|
-
)
|
|
168
|
-
curr += total
|
|
169
|
-
}
|
|
170
|
-
|
|
171
|
-
const interbaseEvents = Object.keys(snpinfo.noncov)
|
|
172
|
-
const indicatorHeight = 4.5
|
|
173
|
-
if (drawInterbaseCounts) {
|
|
174
|
-
let curr = 0
|
|
175
|
-
for (let i = 0; i < interbaseEvents.length; i++) {
|
|
176
|
-
const base = interbaseEvents[i]
|
|
177
|
-
const { total } = snpinfo.noncov[base]
|
|
178
|
-
const r = 0.6
|
|
179
|
-
ctx.fillStyle = colorForBase[base]
|
|
180
|
-
ctx.fillRect(
|
|
181
|
-
leftPx - r + extraHorizontallyFlippedOffset,
|
|
182
|
-
indicatorHeight + toHeight2(curr),
|
|
183
|
-
r * 2,
|
|
184
|
-
toHeight2(total),
|
|
185
|
-
)
|
|
186
|
-
curr += total
|
|
187
|
-
}
|
|
188
|
-
}
|
|
189
|
-
|
|
190
|
-
if (drawIndicators) {
|
|
191
|
-
let accum = 0
|
|
192
|
-
let max = 0
|
|
193
|
-
let maxBase = ''
|
|
194
|
-
for (let i = 0; i < interbaseEvents.length; i++) {
|
|
195
|
-
const base = interbaseEvents[i]
|
|
196
|
-
const { total } = snpinfo.noncov[base]
|
|
197
|
-
accum += total
|
|
198
|
-
if (total > max) {
|
|
199
|
-
max = total
|
|
200
|
-
maxBase = base
|
|
201
|
-
}
|
|
202
|
-
}
|
|
203
|
-
|
|
204
|
-
// avoid drawing a bunch of indicators if coverage is very low e.g.
|
|
205
|
-
// less than 7, uses the prev total in the case of the "cliff"
|
|
206
|
-
const indicatorComparatorScore = Math.max(totalScore, prevTotal)
|
|
207
|
-
if (
|
|
208
|
-
accum > indicatorComparatorScore * indicatorThreshold &&
|
|
209
|
-
indicatorComparatorScore > 7
|
|
210
|
-
) {
|
|
211
|
-
ctx.fillStyle = colorForBase[maxBase]
|
|
212
|
-
ctx.beginPath()
|
|
213
|
-
const l = leftPx + extraHorizontallyFlippedOffset
|
|
214
|
-
ctx.moveTo(l - 3.5, 0)
|
|
215
|
-
ctx.lineTo(l + 3.5, 0)
|
|
216
|
-
ctx.lineTo(l, indicatorHeight)
|
|
217
|
-
ctx.fill()
|
|
218
|
-
}
|
|
219
|
-
}
|
|
220
|
-
prevTotal = totalScore
|
|
221
|
-
}
|
|
222
|
-
|
|
223
|
-
if (drawArcs) {
|
|
224
|
-
for (let i = 0; i < skips.length; i++) {
|
|
225
|
-
const f = skips[i]
|
|
226
|
-
const [left, right] = bpSpanPx(
|
|
227
|
-
f.get('start'),
|
|
228
|
-
f.get('end'),
|
|
229
|
-
region,
|
|
230
|
-
bpPerPx,
|
|
231
|
-
)
|
|
232
|
-
|
|
233
|
-
ctx.beginPath()
|
|
234
|
-
const str = f.get('strand') as number
|
|
235
|
-
const xs = f.get('xs') as string
|
|
236
|
-
const pos = 'rgba(255,200,200,0.7)'
|
|
237
|
-
const neg = 'rgba(200,200,255,0.7)'
|
|
238
|
-
const neutral = 'rgba(200,200,200,0.7)'
|
|
239
|
-
|
|
240
|
-
if (xs === '+') {
|
|
241
|
-
ctx.strokeStyle = pos
|
|
242
|
-
} else if (xs === '-') {
|
|
243
|
-
ctx.strokeStyle = neg
|
|
244
|
-
} else if (str === 1) {
|
|
245
|
-
ctx.strokeStyle = pos
|
|
246
|
-
} else if (str === -1) {
|
|
247
|
-
ctx.strokeStyle = neg
|
|
248
|
-
} else {
|
|
249
|
-
ctx.strokeStyle = neutral
|
|
250
|
-
}
|
|
251
|
-
|
|
252
|
-
ctx.lineWidth = Math.log(f.get('score') + 1)
|
|
253
|
-
ctx.moveTo(left, height - offset * 2)
|
|
254
|
-
ctx.bezierCurveTo(left, 0, right, 0, right, height - offset * 2)
|
|
255
|
-
ctx.stroke()
|
|
256
|
-
}
|
|
257
|
-
}
|
|
258
|
-
|
|
259
|
-
if (displayCrossHatches) {
|
|
260
|
-
ctx.lineWidth = 1
|
|
261
|
-
ctx.strokeStyle = 'rgba(140,140,140,0.8)'
|
|
262
|
-
ticks.values.forEach(tick => {
|
|
263
|
-
ctx.beginPath()
|
|
264
|
-
ctx.moveTo(0, Math.round(toY(tick)))
|
|
265
|
-
ctx.lineTo(width, Math.round(toY(tick)))
|
|
266
|
-
ctx.stroke()
|
|
267
|
-
})
|
|
268
|
-
}
|
|
269
|
-
}
|
|
270
|
-
}
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
import { ConfigurationSchema } from '@jbrowse/core/configuration'
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* #config SNPCoverageRenderer
|
|
5
|
-
*/
|
|
6
|
-
function x() {} // eslint-disable-line @typescript-eslint/no-unused-vars
|
|
7
|
-
|
|
8
|
-
const SNPCoverageRenderer = ConfigurationSchema(
|
|
9
|
-
'SNPCoverageRenderer',
|
|
10
|
-
{
|
|
11
|
-
/**
|
|
12
|
-
* #slot
|
|
13
|
-
*/
|
|
14
|
-
clipColor: {
|
|
15
|
-
type: 'color',
|
|
16
|
-
description: 'the color of the clipping marker',
|
|
17
|
-
defaultValue: 'red',
|
|
18
|
-
},
|
|
19
|
-
/**
|
|
20
|
-
* #slot
|
|
21
|
-
*/
|
|
22
|
-
indicatorThreshold: {
|
|
23
|
-
type: 'number',
|
|
24
|
-
description:
|
|
25
|
-
'the proportion of reads containing a insertion/clip indicator',
|
|
26
|
-
defaultValue: 0.4,
|
|
27
|
-
},
|
|
28
|
-
/**
|
|
29
|
-
* #slot
|
|
30
|
-
*/
|
|
31
|
-
drawArcs: {
|
|
32
|
-
type: 'boolean',
|
|
33
|
-
description: 'Draw sashimi-style arcs for intron features',
|
|
34
|
-
defaultValue: true,
|
|
35
|
-
},
|
|
36
|
-
/**
|
|
37
|
-
* #slot
|
|
38
|
-
*/
|
|
39
|
-
drawInterbaseCounts: {
|
|
40
|
-
type: 'boolean',
|
|
41
|
-
description:
|
|
42
|
-
'draw count "upsidedown histogram" of the interbase events that don\'t contribute to the coverage count so are not drawn in the normal histogram',
|
|
43
|
-
defaultValue: true,
|
|
44
|
-
},
|
|
45
|
-
/**
|
|
46
|
-
* #slot
|
|
47
|
-
*/
|
|
48
|
-
drawIndicators: {
|
|
49
|
-
type: 'boolean',
|
|
50
|
-
description:
|
|
51
|
-
'draw a triangular indicator where an event has been detected',
|
|
52
|
-
defaultValue: true,
|
|
53
|
-
},
|
|
54
|
-
|
|
55
|
-
color: {
|
|
56
|
-
type: 'color',
|
|
57
|
-
description: 'Background color for the SNPCoverage renderer',
|
|
58
|
-
defaultValue: '#d3d3d3',
|
|
59
|
-
},
|
|
60
|
-
},
|
|
61
|
-
{ explicitlyTyped: true },
|
|
62
|
-
)
|
|
63
|
-
|
|
64
|
-
export default SNPCoverageRenderer
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import configSchema from './configSchema'
|
|
2
|
-
import PluginManager from '@jbrowse/core/PluginManager'
|
|
3
|
-
import SNPCoverageRenderer from './SNPCoverageRenderer'
|
|
4
|
-
|
|
5
|
-
import { WiggleRendering } from '@jbrowse/plugin-wiggle'
|
|
6
|
-
|
|
7
|
-
export default function register(pluginManager: PluginManager) {
|
|
8
|
-
pluginManager.addRendererType(
|
|
9
|
-
() =>
|
|
10
|
-
new SNPCoverageRenderer({
|
|
11
|
-
name: 'SNPCoverageRenderer',
|
|
12
|
-
ReactComponent: WiggleRendering,
|
|
13
|
-
configSchema,
|
|
14
|
-
pluginManager,
|
|
15
|
-
}),
|
|
16
|
-
)
|
|
17
|
-
}
|
package/src/index.test.ts
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import PluginManager from '@jbrowse/core/PluginManager'
|
|
2
|
-
import SVG from '@jbrowse/plugin-svg'
|
|
3
|
-
import { getSnapshot } from 'mobx-state-tree'
|
|
4
|
-
import ThisPlugin from '.'
|
|
5
|
-
|
|
6
|
-
test('plugin in a stock JBrowse', () => {
|
|
7
|
-
const pluginManager = new PluginManager([new ThisPlugin(), new SVG()])
|
|
8
|
-
pluginManager.createPluggableElements()
|
|
9
|
-
pluginManager.configure()
|
|
10
|
-
expect(() => pluginManager.addPlugin(new ThisPlugin())).toThrow(
|
|
11
|
-
/JBrowse already configured, cannot add plugins/,
|
|
12
|
-
)
|
|
13
|
-
|
|
14
|
-
const BamAdapter = pluginManager.getAdapterType('BamAdapter')
|
|
15
|
-
const config = BamAdapter.configSchema.create({ type: 'BamAdapter' })
|
|
16
|
-
expect(getSnapshot(config)).toMatchSnapshot()
|
|
17
|
-
})
|