@jbrowse/plugin-alignments 2.6.1 → 2.6.2
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/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.js +0 -1
- package/dist/LinearPileupDisplay/model.d.ts +18 -26
- package/dist/LinearPileupDisplay/model.js +2 -3
- 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.js +0 -1
- 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.js +0 -1
- 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/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.js +0 -1
- package/esm/LinearPileupDisplay/model.d.ts +18 -26
- package/esm/LinearPileupDisplay/model.js +2 -3
- 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.js +0 -1
- 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.js +0 -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
package/src/index.ts
DELETED
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import Plugin from '@jbrowse/core/Plugin'
|
|
2
|
-
import PluginManager from '@jbrowse/core/PluginManager'
|
|
3
|
-
import BamAdapterF from './CramAdapter'
|
|
4
|
-
import CramAdapterF from './BamAdapter'
|
|
5
|
-
import HtsgetBamAdapterF from './HtsgetBamAdapter'
|
|
6
|
-
import SNPCoverageAdapterF from './SNPCoverageAdapter'
|
|
7
|
-
import SNPCoverageRendererF from './SNPCoverageRenderer'
|
|
8
|
-
import PileupRendererF from './PileupRenderer'
|
|
9
|
-
import LinearAlignmentsDisplayF from './LinearAlignmentsDisplay'
|
|
10
|
-
import LinearSNPCoverageDisplayF from './LinearSNPCoverageDisplay'
|
|
11
|
-
import LinearReadArcsDisplayF from './LinearReadArcsDisplay'
|
|
12
|
-
import LinearReadCloudDisplayF from './LinearReadCloudDisplay'
|
|
13
|
-
import AlignmentsTrackF from './AlignmentsTrack'
|
|
14
|
-
import AlignmentsFeatureWidgetF from './AlignmentsFeatureDetail'
|
|
15
|
-
import PileupRPCMethodsF from './PileupRPC'
|
|
16
|
-
import GuessAlignmentsTypesF from './GuessAlignmentsTypes'
|
|
17
|
-
import LinearPileupDisplayF from './LinearPileupDisplay'
|
|
18
|
-
|
|
19
|
-
export default class AlignmentsPlugin extends Plugin {
|
|
20
|
-
name = 'AlignmentsPlugin'
|
|
21
|
-
|
|
22
|
-
install(pluginManager: PluginManager) {
|
|
23
|
-
;[
|
|
24
|
-
CramAdapterF,
|
|
25
|
-
BamAdapterF,
|
|
26
|
-
LinearPileupDisplayF,
|
|
27
|
-
LinearSNPCoverageDisplayF,
|
|
28
|
-
AlignmentsTrackF,
|
|
29
|
-
SNPCoverageAdapterF,
|
|
30
|
-
HtsgetBamAdapterF,
|
|
31
|
-
PileupRendererF,
|
|
32
|
-
PileupRPCMethodsF,
|
|
33
|
-
SNPCoverageRendererF,
|
|
34
|
-
LinearReadArcsDisplayF,
|
|
35
|
-
LinearReadCloudDisplayF,
|
|
36
|
-
LinearAlignmentsDisplayF,
|
|
37
|
-
AlignmentsFeatureWidgetF,
|
|
38
|
-
GuessAlignmentsTypesF,
|
|
39
|
-
].map(f => f(pluginManager))
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
export {
|
|
44
|
-
linearPileupDisplayStateModelFactory,
|
|
45
|
-
linearPileupDisplayConfigSchemaFactory,
|
|
46
|
-
} from './LinearPileupDisplay'
|
|
47
|
-
export { type LinearPileupDisplayModel } from './LinearPileupDisplay/model'
|
|
48
|
-
export * as MismatchParser from './MismatchParser'
|
|
@@ -1,83 +0,0 @@
|
|
|
1
|
-
import React from 'react'
|
|
2
|
-
import { LoadingEllipses } from '@jbrowse/core/ui'
|
|
3
|
-
import { BlockMsg } from '@jbrowse/plugin-linear-genome-view'
|
|
4
|
-
import { makeStyles } from 'tss-react/mui'
|
|
5
|
-
import { observer } from 'mobx-react'
|
|
6
|
-
|
|
7
|
-
// local
|
|
8
|
-
import { LinearReadCloudDisplayModel } from '../LinearReadCloudDisplay/model'
|
|
9
|
-
import { LinearReadArcsDisplayModel } from '../LinearReadArcsDisplay/model'
|
|
10
|
-
import { getContainingView } from '@jbrowse/core/util'
|
|
11
|
-
|
|
12
|
-
const useStyles = makeStyles()(theme => {
|
|
13
|
-
const bg = theme.palette.action.disabledBackground
|
|
14
|
-
return {
|
|
15
|
-
loading: {
|
|
16
|
-
backgroundColor: theme.palette.background.default,
|
|
17
|
-
backgroundImage: `repeating-linear-gradient(45deg, transparent, transparent 5px, ${bg} 5px, ${bg} 10px)`,
|
|
18
|
-
position: 'absolute',
|
|
19
|
-
bottom: 0,
|
|
20
|
-
height: 50,
|
|
21
|
-
width: 300,
|
|
22
|
-
right: 0,
|
|
23
|
-
pointerEvents: 'none',
|
|
24
|
-
textAlign: 'center',
|
|
25
|
-
},
|
|
26
|
-
}
|
|
27
|
-
})
|
|
28
|
-
|
|
29
|
-
export default observer(function ({
|
|
30
|
-
model,
|
|
31
|
-
children,
|
|
32
|
-
}: {
|
|
33
|
-
model: LinearReadArcsDisplayModel | LinearReadCloudDisplayModel
|
|
34
|
-
children?: React.ReactNode
|
|
35
|
-
}) {
|
|
36
|
-
const { error, regionTooLarge } = model
|
|
37
|
-
return error ? (
|
|
38
|
-
<BlockMsg
|
|
39
|
-
message={`${error}`}
|
|
40
|
-
severity="error"
|
|
41
|
-
buttonText="Reload"
|
|
42
|
-
action={model.reload}
|
|
43
|
-
/>
|
|
44
|
-
) : regionTooLarge ? (
|
|
45
|
-
model.regionCannotBeRendered()
|
|
46
|
-
) : (
|
|
47
|
-
<DataDisplay model={model}>{children}</DataDisplay>
|
|
48
|
-
)
|
|
49
|
-
})
|
|
50
|
-
|
|
51
|
-
const DataDisplay = observer(function ({
|
|
52
|
-
model,
|
|
53
|
-
children,
|
|
54
|
-
}: {
|
|
55
|
-
model: LinearReadArcsDisplayModel | LinearReadCloudDisplayModel
|
|
56
|
-
children?: React.ReactNode
|
|
57
|
-
}) {
|
|
58
|
-
const { drawn, loading } = model
|
|
59
|
-
const view = getContainingView(model)
|
|
60
|
-
const left = (model.lastDrawnOffsetPx || 0) - view.offsetPx
|
|
61
|
-
return (
|
|
62
|
-
// this data-testid is located here because changing props on the canvas
|
|
63
|
-
// itself is very sensitive to triggering ref invalidation
|
|
64
|
-
<div data-testid={`drawn-${drawn}`}>
|
|
65
|
-
<div style={{ position: 'absolute', left }}>{children}</div>
|
|
66
|
-
{left !== 0 || loading ? <LoadingBar model={model} /> : null}
|
|
67
|
-
</div>
|
|
68
|
-
)
|
|
69
|
-
})
|
|
70
|
-
|
|
71
|
-
const LoadingBar = observer(function ({
|
|
72
|
-
model,
|
|
73
|
-
}: {
|
|
74
|
-
model: LinearReadArcsDisplayModel | LinearReadCloudDisplayModel
|
|
75
|
-
}) {
|
|
76
|
-
const { classes } = useStyles()
|
|
77
|
-
const { message } = model
|
|
78
|
-
return (
|
|
79
|
-
<div className={classes.loading}>
|
|
80
|
-
<LoadingEllipses message={message} />
|
|
81
|
-
</div>
|
|
82
|
-
)
|
|
83
|
-
})
|
|
@@ -1,187 +0,0 @@
|
|
|
1
|
-
import React, { useState } from 'react'
|
|
2
|
-
import { observer } from 'mobx-react'
|
|
3
|
-
import {
|
|
4
|
-
Button,
|
|
5
|
-
DialogActions,
|
|
6
|
-
DialogContent,
|
|
7
|
-
Link,
|
|
8
|
-
Paper,
|
|
9
|
-
TextField,
|
|
10
|
-
Typography,
|
|
11
|
-
} from '@mui/material'
|
|
12
|
-
import { Dialog } from '@jbrowse/core/ui'
|
|
13
|
-
import { makeStyles } from 'tss-react/mui'
|
|
14
|
-
|
|
15
|
-
const useStyles = makeStyles()(theme => ({
|
|
16
|
-
paper: {
|
|
17
|
-
padding: theme.spacing(2),
|
|
18
|
-
margin: theme.spacing(2),
|
|
19
|
-
},
|
|
20
|
-
field: {
|
|
21
|
-
margin: theme.spacing(2),
|
|
22
|
-
},
|
|
23
|
-
}))
|
|
24
|
-
|
|
25
|
-
const flagNames = [
|
|
26
|
-
'read paired',
|
|
27
|
-
'read mapped in proper pair',
|
|
28
|
-
'read unmapped',
|
|
29
|
-
'mate unmapped',
|
|
30
|
-
'read reverse strand',
|
|
31
|
-
'mate reverse strand',
|
|
32
|
-
'first in pair',
|
|
33
|
-
'second in pair',
|
|
34
|
-
'not primary alignment',
|
|
35
|
-
'read fails platform/vendor quality checks',
|
|
36
|
-
'read is PCR or optical duplicate',
|
|
37
|
-
'supplementary alignment',
|
|
38
|
-
]
|
|
39
|
-
|
|
40
|
-
function Bitmask(props: { flag?: number; setFlag: Function }) {
|
|
41
|
-
const { flag = 0, setFlag } = props
|
|
42
|
-
return (
|
|
43
|
-
<>
|
|
44
|
-
<TextField
|
|
45
|
-
type="number"
|
|
46
|
-
value={flag}
|
|
47
|
-
onChange={event => setFlag(+event.target.value)}
|
|
48
|
-
/>
|
|
49
|
-
{flagNames.map((name, index) => {
|
|
50
|
-
const val = flag & (1 << index)
|
|
51
|
-
const key = `${name}_${val}`
|
|
52
|
-
return (
|
|
53
|
-
<div key={key}>
|
|
54
|
-
<input
|
|
55
|
-
type="checkbox"
|
|
56
|
-
checked={Boolean(val)}
|
|
57
|
-
onChange={event => {
|
|
58
|
-
if (event.target.checked) {
|
|
59
|
-
setFlag(flag | (1 << index))
|
|
60
|
-
} else {
|
|
61
|
-
setFlag(flag & ~(1 << index))
|
|
62
|
-
}
|
|
63
|
-
}}
|
|
64
|
-
/>
|
|
65
|
-
<label htmlFor={key}>{name}</label>
|
|
66
|
-
</div>
|
|
67
|
-
)
|
|
68
|
-
})}
|
|
69
|
-
</>
|
|
70
|
-
)
|
|
71
|
-
}
|
|
72
|
-
interface FilterBy {
|
|
73
|
-
flagExclude: number
|
|
74
|
-
flagInclude: number
|
|
75
|
-
readName?: string
|
|
76
|
-
tagFilter?: { tag: string; value: string }
|
|
77
|
-
}
|
|
78
|
-
function FilterByTagDlg(props: {
|
|
79
|
-
model: {
|
|
80
|
-
filterBy: FilterBy
|
|
81
|
-
setFilterBy: (arg: FilterBy) => void
|
|
82
|
-
}
|
|
83
|
-
handleClose: () => void
|
|
84
|
-
}) {
|
|
85
|
-
const { model, handleClose } = props
|
|
86
|
-
const { classes } = useStyles()
|
|
87
|
-
const { filterBy } = model
|
|
88
|
-
const [flagInclude, setFlagInclude] = useState(filterBy.flagInclude)
|
|
89
|
-
const [flagExclude, setFlagExclude] = useState(filterBy.flagExclude)
|
|
90
|
-
const [tag, setTag] = useState(filterBy.tagFilter?.tag || '')
|
|
91
|
-
const [tagValue, setTagValue] = useState(filterBy.tagFilter?.value || '')
|
|
92
|
-
const [readName, setReadName] = useState(filterBy.readName || '')
|
|
93
|
-
const validTag = tag.match(/^[A-Za-z][A-Za-z0-9]$/)
|
|
94
|
-
|
|
95
|
-
const site = 'https://broadinstitute.github.io/picard/explain-flags.html'
|
|
96
|
-
|
|
97
|
-
return (
|
|
98
|
-
<Dialog open onClose={handleClose} title="Filter options">
|
|
99
|
-
<DialogContent>
|
|
100
|
-
<Typography>
|
|
101
|
-
Set filter bitmask options. Refer to <Link href={site}>{site}</Link>{' '}
|
|
102
|
-
for details
|
|
103
|
-
</Typography>
|
|
104
|
-
<Paper className={classes.paper} variant="outlined">
|
|
105
|
-
<div style={{ display: 'flex' }}>
|
|
106
|
-
<div>
|
|
107
|
-
<Typography>Read must have ALL these flags</Typography>
|
|
108
|
-
<Bitmask flag={flagInclude} setFlag={setFlagInclude} />
|
|
109
|
-
</div>
|
|
110
|
-
<div>
|
|
111
|
-
<Typography>Read must have NONE of these flags</Typography>
|
|
112
|
-
<Bitmask flag={flagExclude} setFlag={setFlagExclude} />
|
|
113
|
-
</div>
|
|
114
|
-
</div>
|
|
115
|
-
</Paper>
|
|
116
|
-
<Paper className={classes.paper} variant="outlined">
|
|
117
|
-
<Typography>
|
|
118
|
-
Filter by tag name and value. Use * in the value field to get all
|
|
119
|
-
reads containing any value for that tag. Example: filter tag name SA
|
|
120
|
-
with value * to get all split/supplementary reads. Other examples
|
|
121
|
-
include HP for haplotype, or RG for read group
|
|
122
|
-
</Typography>
|
|
123
|
-
<TextField
|
|
124
|
-
className={classes.field}
|
|
125
|
-
value={tag}
|
|
126
|
-
onChange={event => setTag(event.target.value)}
|
|
127
|
-
placeholder="Enter tag name"
|
|
128
|
-
inputProps={{
|
|
129
|
-
maxLength: 2,
|
|
130
|
-
}}
|
|
131
|
-
error={tag.length === 2 && !validTag}
|
|
132
|
-
helperText={tag.length === 2 && !validTag ? 'Not a valid tag' : ''}
|
|
133
|
-
/>
|
|
134
|
-
<TextField
|
|
135
|
-
className={classes.field}
|
|
136
|
-
value={tagValue}
|
|
137
|
-
onChange={event => setTagValue(event.target.value)}
|
|
138
|
-
placeholder="Enter tag value"
|
|
139
|
-
/>
|
|
140
|
-
</Paper>
|
|
141
|
-
<Paper className={classes.paper} variant="outlined">
|
|
142
|
-
<Typography>Filter by read name</Typography>
|
|
143
|
-
<TextField
|
|
144
|
-
className={classes.field}
|
|
145
|
-
value={readName}
|
|
146
|
-
onChange={event => setReadName(event.target.value)}
|
|
147
|
-
placeholder="Enter read name"
|
|
148
|
-
/>
|
|
149
|
-
</Paper>
|
|
150
|
-
<DialogActions>
|
|
151
|
-
<Button
|
|
152
|
-
variant="contained"
|
|
153
|
-
color="primary"
|
|
154
|
-
autoFocus
|
|
155
|
-
type="submit"
|
|
156
|
-
onClick={() => {
|
|
157
|
-
model.setFilterBy({
|
|
158
|
-
flagInclude,
|
|
159
|
-
flagExclude,
|
|
160
|
-
readName,
|
|
161
|
-
tagFilter:
|
|
162
|
-
tag !== ''
|
|
163
|
-
? {
|
|
164
|
-
tag,
|
|
165
|
-
value: tagValue,
|
|
166
|
-
}
|
|
167
|
-
: undefined,
|
|
168
|
-
})
|
|
169
|
-
handleClose()
|
|
170
|
-
}}
|
|
171
|
-
>
|
|
172
|
-
Submit
|
|
173
|
-
</Button>
|
|
174
|
-
<Button
|
|
175
|
-
variant="contained"
|
|
176
|
-
color="secondary"
|
|
177
|
-
onClick={() => handleClose()}
|
|
178
|
-
>
|
|
179
|
-
Cancel
|
|
180
|
-
</Button>
|
|
181
|
-
</DialogActions>
|
|
182
|
-
</DialogContent>
|
|
183
|
-
</Dialog>
|
|
184
|
-
)
|
|
185
|
-
}
|
|
186
|
-
|
|
187
|
-
export default observer(FilterByTagDlg)
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
import { getContainingView } from '@jbrowse/core/util'
|
|
2
|
-
import { createAutorun } from '../util'
|
|
3
|
-
import { fetchChains } from './fetchChains'
|
|
4
|
-
import { LinearGenomeViewModel } from '@jbrowse/plugin-linear-genome-view'
|
|
5
|
-
import { IAnyStateTreeNode } from 'mobx-state-tree'
|
|
6
|
-
|
|
7
|
-
type LGV = LinearGenomeViewModel
|
|
8
|
-
|
|
9
|
-
export function doAfterAttach<T extends IAnyStateTreeNode>(
|
|
10
|
-
self: T,
|
|
11
|
-
cb: (
|
|
12
|
-
self: T,
|
|
13
|
-
ctx: CanvasRenderingContext2D,
|
|
14
|
-
width: number,
|
|
15
|
-
height: number,
|
|
16
|
-
) => void,
|
|
17
|
-
) {
|
|
18
|
-
createAutorun(
|
|
19
|
-
self,
|
|
20
|
-
async () => {
|
|
21
|
-
await fetchChains(self)
|
|
22
|
-
},
|
|
23
|
-
{ delay: 1000 },
|
|
24
|
-
)
|
|
25
|
-
|
|
26
|
-
function draw(view: LGV) {
|
|
27
|
-
const canvas = self.ref
|
|
28
|
-
if (!canvas) {
|
|
29
|
-
return
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
const ctx = canvas.getContext('2d')
|
|
33
|
-
if (!ctx) {
|
|
34
|
-
return
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
if (!self.chainData) {
|
|
38
|
-
return
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
ctx.clearRect(0, 0, canvas.width, self.height * 2)
|
|
42
|
-
ctx.resetTransform()
|
|
43
|
-
ctx.scale(2, 2)
|
|
44
|
-
cb(self, ctx, canvas.width, self.height)
|
|
45
|
-
self.setLastDrawnOffsetPx(view.offsetPx)
|
|
46
|
-
self.setLastDrawnBpPerPx(view.bpPerPx)
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
// first autorun instantly draws if bpPerPx changes
|
|
50
|
-
createAutorun(self, async () => {
|
|
51
|
-
const view = getContainingView(self) as LGV
|
|
52
|
-
if (view.bpPerPx !== self.lastDrawnBpPerPx) {
|
|
53
|
-
draw(view)
|
|
54
|
-
}
|
|
55
|
-
})
|
|
56
|
-
|
|
57
|
-
// second autorun draws after delay 1000 e.g. if offsetPx changes
|
|
58
|
-
createAutorun(
|
|
59
|
-
self,
|
|
60
|
-
async () => {
|
|
61
|
-
const view = getContainingView(self) as LGV
|
|
62
|
-
draw(view)
|
|
63
|
-
},
|
|
64
|
-
{ delay: 1000 },
|
|
65
|
-
)
|
|
66
|
-
}
|
package/src/shared/color.ts
DELETED
|
@@ -1,86 +0,0 @@
|
|
|
1
|
-
import { orientationTypes, pairMap } from '../util'
|
|
2
|
-
import { ChainStats } from './fetchChains'
|
|
3
|
-
|
|
4
|
-
export const fillColor = {
|
|
5
|
-
color_fwd_strand_not_proper: '#ECC8C8',
|
|
6
|
-
color_rev_strand_not_proper: '#BEBED8',
|
|
7
|
-
color_fwd_strand: '#EC8B8B',
|
|
8
|
-
color_rev_strand: '#8F8FD8',
|
|
9
|
-
color_fwd_missing_mate: '#D11919',
|
|
10
|
-
color_rev_missing_mate: '#1919D1',
|
|
11
|
-
color_fwd_diff_chr: '#000',
|
|
12
|
-
color_rev_diff_chr: '#969696',
|
|
13
|
-
color_pair_lr: '#c8c8c8',
|
|
14
|
-
color_pair_rr: 'navy',
|
|
15
|
-
color_pair_rl: 'teal',
|
|
16
|
-
color_pair_ll: 'green',
|
|
17
|
-
color_nostrand: '#c8c8c8',
|
|
18
|
-
color_interchrom: 'purple',
|
|
19
|
-
color_longinsert: 'red',
|
|
20
|
-
color_shortinsert: 'pink',
|
|
21
|
-
color_unknown: 'grey',
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
// manually calculated by running
|
|
25
|
-
// const color = require('color')
|
|
26
|
-
// Object.fromEntries(Object.entries(fillColor).map(([key,val])=>{
|
|
27
|
-
// return [key, color(val).darken('0.3').hex()]
|
|
28
|
-
// }))
|
|
29
|
-
// this avoids (expensive) use of Color module at runtime
|
|
30
|
-
export const strokeColor = {
|
|
31
|
-
color_fwd_strand_not_proper: '#CA6767',
|
|
32
|
-
color_rev_strand_not_proper: '#7272AA',
|
|
33
|
-
color_fwd_strand: '#DC2A2A',
|
|
34
|
-
color_rev_strand: '#4141BA',
|
|
35
|
-
color_fwd_missing_mate: '#921111',
|
|
36
|
-
color_rev_missing_mate: '#111192',
|
|
37
|
-
color_fwd_diff_chr: '#000000',
|
|
38
|
-
color_rev_diff_chr: '#696969',
|
|
39
|
-
color_pair_lr: '#8C8C8C',
|
|
40
|
-
color_pair_rr: '#00005A',
|
|
41
|
-
color_pair_rl: '#005A5A',
|
|
42
|
-
color_pair_ll: '#005A00',
|
|
43
|
-
color_nostrand: '#8C8C8C',
|
|
44
|
-
color_interchrom: '#5A005A',
|
|
45
|
-
color_longinsert: '#B30000',
|
|
46
|
-
color_shortinsert: '#FF3A5C',
|
|
47
|
-
color_unknown: 'grey',
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
export function getPairedInsertSizeColor(
|
|
51
|
-
f1: { refName: string; tlen?: number },
|
|
52
|
-
f2: { refName: string },
|
|
53
|
-
stats?: ChainStats,
|
|
54
|
-
) {
|
|
55
|
-
const sameRef = f1.refName === f2.refName
|
|
56
|
-
const tlen = Math.abs(f1.tlen || 0)
|
|
57
|
-
if (sameRef && tlen > (stats?.upper || 0)) {
|
|
58
|
-
return [fillColor.color_longinsert, strokeColor.color_longinsert] as const
|
|
59
|
-
} else if (sameRef && tlen < (stats?.lower || 0)) {
|
|
60
|
-
return [fillColor.color_shortinsert, strokeColor.color_shortinsert] as const
|
|
61
|
-
} else if (!sameRef) {
|
|
62
|
-
return [fillColor.color_interchrom, strokeColor.color_interchrom] as const
|
|
63
|
-
}
|
|
64
|
-
return undefined
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
export function getPairedInsertSizeAndOrientationColor(
|
|
68
|
-
f1: { refName: string; pair_orientation?: string; tlen?: number },
|
|
69
|
-
f2: { refName: string },
|
|
70
|
-
stats?: ChainStats,
|
|
71
|
-
) {
|
|
72
|
-
return (
|
|
73
|
-
getPairedInsertSizeColor(f1, f2, stats) || getPairedOrientationColor(f1)
|
|
74
|
-
)
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
export function getPairedOrientationColor(f: { pair_orientation?: string }) {
|
|
78
|
-
const type = orientationTypes.fr
|
|
79
|
-
const type2 = pairMap[
|
|
80
|
-
type[f.pair_orientation || ''] as keyof typeof pairMap
|
|
81
|
-
] as keyof typeof fillColor
|
|
82
|
-
return [
|
|
83
|
-
fillColor[type2] || fillColor.color_unknown,
|
|
84
|
-
strokeColor[type2] || strokeColor.color_unknown,
|
|
85
|
-
] as const
|
|
86
|
-
}
|
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
getContainingTrack,
|
|
3
|
-
getContainingView,
|
|
4
|
-
getSession,
|
|
5
|
-
} from '@jbrowse/core/util'
|
|
6
|
-
import { getSnapshot } from 'mobx-state-tree'
|
|
7
|
-
import { LinearGenomeViewModel } from '@jbrowse/plugin-linear-genome-view'
|
|
8
|
-
import { LinearReadArcsDisplayModel } from '../LinearReadArcsDisplay/model'
|
|
9
|
-
import { LinearReadCloudDisplayModel } from '../LinearReadCloudDisplay/model'
|
|
10
|
-
|
|
11
|
-
type LGV = LinearGenomeViewModel
|
|
12
|
-
|
|
13
|
-
export interface ReducedFeature {
|
|
14
|
-
name: string
|
|
15
|
-
strand: number
|
|
16
|
-
refName: string
|
|
17
|
-
start: number
|
|
18
|
-
end: number
|
|
19
|
-
id: string
|
|
20
|
-
flags: number
|
|
21
|
-
tlen: number
|
|
22
|
-
pair_orientation: string
|
|
23
|
-
next_ref?: string
|
|
24
|
-
next_pos?: number
|
|
25
|
-
clipPos: number
|
|
26
|
-
SA?: string
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
export interface ChainStats {
|
|
30
|
-
max: number
|
|
31
|
-
min: number
|
|
32
|
-
upper: number
|
|
33
|
-
lower: number
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
export interface ChainData {
|
|
37
|
-
chains: ReducedFeature[][]
|
|
38
|
-
stats?: ChainStats
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
export async function fetchChains(
|
|
42
|
-
self: LinearReadArcsDisplayModel | LinearReadCloudDisplayModel,
|
|
43
|
-
) {
|
|
44
|
-
const { rpcSessionId: sessionId } = getContainingTrack(self)
|
|
45
|
-
const { rpcManager } = getSession(self)
|
|
46
|
-
const view = getContainingView(self) as LGV
|
|
47
|
-
|
|
48
|
-
if (!view.initialized || self.error || self.regionTooLarge) {
|
|
49
|
-
return
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
self.setLoading(true)
|
|
53
|
-
const ret = (await rpcManager.call(sessionId, 'PileupGetReducedFeatures', {
|
|
54
|
-
sessionId,
|
|
55
|
-
regions: view.staticBlocks.contentBlocks,
|
|
56
|
-
filterBy: getSnapshot(self.filterBy),
|
|
57
|
-
adapterConfig: self.adapterConfig,
|
|
58
|
-
})) as ChainData
|
|
59
|
-
|
|
60
|
-
self.setChainData(ret)
|
|
61
|
-
self.setLoading(false)
|
|
62
|
-
}
|
package/src/shared/index.ts
DELETED
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
import { types, IAnyStateTreeNode } from 'mobx-state-tree'
|
|
2
|
-
import { BlockSet } from '@jbrowse/core/util/blockTypes'
|
|
3
|
-
import { getSession } from '@jbrowse/core/util'
|
|
4
|
-
import { getRpcSessionId } from '@jbrowse/core/util/tracks'
|
|
5
|
-
import { AnyConfigurationModel } from '@jbrowse/core/configuration'
|
|
6
|
-
|
|
7
|
-
export async function getUniqueTagValues(
|
|
8
|
-
self: IAnyStateTreeNode & { adapterConfig: AnyConfigurationModel },
|
|
9
|
-
colorScheme: { type: string; tag?: string },
|
|
10
|
-
blocks: BlockSet,
|
|
11
|
-
opts?: {
|
|
12
|
-
headers?: Record<string, string>
|
|
13
|
-
signal?: AbortSignal
|
|
14
|
-
filters?: string[]
|
|
15
|
-
},
|
|
16
|
-
) {
|
|
17
|
-
const { rpcManager } = getSession(self)
|
|
18
|
-
const { adapterConfig } = self
|
|
19
|
-
const sessionId = getRpcSessionId(self)
|
|
20
|
-
const values = await rpcManager.call(
|
|
21
|
-
getRpcSessionId(self),
|
|
22
|
-
'PileupGetGlobalValueForTag',
|
|
23
|
-
{
|
|
24
|
-
adapterConfig,
|
|
25
|
-
tag: colorScheme.tag,
|
|
26
|
-
sessionId,
|
|
27
|
-
regions: blocks.contentBlocks,
|
|
28
|
-
...opts,
|
|
29
|
-
},
|
|
30
|
-
)
|
|
31
|
-
return values as string[]
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
type Track = IAnyStateTreeNode & { configuration: AnyConfigurationModel }
|
|
35
|
-
|
|
36
|
-
export async function getUniqueModificationValues(
|
|
37
|
-
self: IAnyStateTreeNode & {
|
|
38
|
-
parentTrack: Track
|
|
39
|
-
},
|
|
40
|
-
adapterConfig: AnyConfigurationModel,
|
|
41
|
-
colorScheme: { type: string; tag?: string },
|
|
42
|
-
blocks: BlockSet,
|
|
43
|
-
opts?: {
|
|
44
|
-
headers?: Record<string, string>
|
|
45
|
-
signal?: AbortSignal
|
|
46
|
-
filters?: string[]
|
|
47
|
-
},
|
|
48
|
-
) {
|
|
49
|
-
const { rpcManager } = getSession(self)
|
|
50
|
-
const sessionId = getRpcSessionId(self)
|
|
51
|
-
const values = await rpcManager.call(
|
|
52
|
-
sessionId,
|
|
53
|
-
'PileupGetVisibleModifications',
|
|
54
|
-
{
|
|
55
|
-
adapterConfig,
|
|
56
|
-
tag: colorScheme.tag,
|
|
57
|
-
sessionId,
|
|
58
|
-
regions: blocks.contentBlocks,
|
|
59
|
-
...opts,
|
|
60
|
-
},
|
|
61
|
-
)
|
|
62
|
-
return values as string[]
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
export const FilterModel = types.model({
|
|
66
|
-
flagInclude: types.optional(types.number, 0),
|
|
67
|
-
flagExclude: types.optional(types.number, 1540),
|
|
68
|
-
readName: types.maybe(types.string),
|
|
69
|
-
tagFilter: types.maybe(
|
|
70
|
-
types.model({
|
|
71
|
-
tag: types.string,
|
|
72
|
-
value: types.string,
|
|
73
|
-
}),
|
|
74
|
-
),
|
|
75
|
-
})
|
package/src/shared/renderSvg.tsx
DELETED
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
import React from 'react'
|
|
2
|
-
import { getContainingView } from '@jbrowse/core/util'
|
|
3
|
-
import { LinearGenomeViewModel } from '@jbrowse/plugin-linear-genome-view'
|
|
4
|
-
|
|
5
|
-
// stabilize clipid under test for snapshot
|
|
6
|
-
function getId(id: string) {
|
|
7
|
-
const isJest = typeof jest === 'undefined'
|
|
8
|
-
return `arc-clip-${isJest ? id : 'jest'}`
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
type LGV = LinearGenomeViewModel
|
|
12
|
-
|
|
13
|
-
export async function renderSvg<T extends { id: string; height: number }>(
|
|
14
|
-
self: T,
|
|
15
|
-
opts: { rasterizeLayers?: boolean },
|
|
16
|
-
cb: (
|
|
17
|
-
model: T,
|
|
18
|
-
ctx: CanvasRenderingContext2D,
|
|
19
|
-
width: number,
|
|
20
|
-
height: number,
|
|
21
|
-
) => void,
|
|
22
|
-
) {
|
|
23
|
-
const view = getContainingView(self) as LGV
|
|
24
|
-
const width = view.dynamicBlocks.totalWidthPx
|
|
25
|
-
const height = self.height
|
|
26
|
-
if (opts.rasterizeLayers) {
|
|
27
|
-
const canvas = document.createElement('canvas')
|
|
28
|
-
canvas.width = width * 2
|
|
29
|
-
canvas.height = height * 2
|
|
30
|
-
const ctx = canvas.getContext('2d')
|
|
31
|
-
if (!ctx) {
|
|
32
|
-
return
|
|
33
|
-
}
|
|
34
|
-
ctx.scale(2, 2)
|
|
35
|
-
cb(self, ctx, width, height)
|
|
36
|
-
return (
|
|
37
|
-
<image
|
|
38
|
-
width={width}
|
|
39
|
-
height={height}
|
|
40
|
-
xlinkHref={canvas.toDataURL('image/png')}
|
|
41
|
-
/>
|
|
42
|
-
)
|
|
43
|
-
} else {
|
|
44
|
-
// @ts-ignore
|
|
45
|
-
const C2S = await import('canvas2svg')
|
|
46
|
-
const ctx = new C2S.default(width, height)
|
|
47
|
-
cb(self, ctx, width, height)
|
|
48
|
-
const clipid = getId(self.id)
|
|
49
|
-
return (
|
|
50
|
-
<>
|
|
51
|
-
<defs>
|
|
52
|
-
<clipPath id={clipid}>
|
|
53
|
-
<rect x={0} y={0} width={width} height={height} />
|
|
54
|
-
</clipPath>
|
|
55
|
-
</defs>
|
|
56
|
-
<g
|
|
57
|
-
/* eslint-disable-next-line react/no-danger */
|
|
58
|
-
dangerouslySetInnerHTML={{ __html: ctx.getSvg().innerHTML }}
|
|
59
|
-
clipPath={`url(#${clipid})`}
|
|
60
|
-
/>
|
|
61
|
-
</>
|
|
62
|
-
)
|
|
63
|
-
}
|
|
64
|
-
}
|