@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
|
@@ -1,185 +0,0 @@
|
|
|
1
|
-
/* eslint-disable no-underscore-dangle */
|
|
2
|
-
import {
|
|
3
|
-
Feature,
|
|
4
|
-
SimpleFeatureSerialized,
|
|
5
|
-
} from '@jbrowse/core/util/simpleFeature'
|
|
6
|
-
import { CramRecord } from '@gmod/cram'
|
|
7
|
-
|
|
8
|
-
// locals
|
|
9
|
-
import CramAdapter from './CramAdapter'
|
|
10
|
-
import { readFeaturesToCIGAR, readFeaturesToMismatches } from './util'
|
|
11
|
-
|
|
12
|
-
export default class CramSlightlyLazyFeature implements Feature {
|
|
13
|
-
// uses parameter properties to automatically create fields on the class
|
|
14
|
-
// https://www.typescriptlang.org/docs/handbook/classes.html#parameter-properties
|
|
15
|
-
constructor(private record: CramRecord, private _store: CramAdapter) {}
|
|
16
|
-
|
|
17
|
-
_get_name() {
|
|
18
|
-
return this.record.readName
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
_get_start() {
|
|
22
|
-
return this.record.alignmentStart - 1
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
_get_end() {
|
|
26
|
-
return this.record.alignmentStart + (this.record.lengthOnRef ?? 1) - 1
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
_get_cram_read_features() {
|
|
30
|
-
return this.record.readFeatures
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
_get_type() {
|
|
34
|
-
return 'match'
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
_get_score() {
|
|
38
|
-
return this.record.mappingQuality
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
_get_flags() {
|
|
42
|
-
return this.record.flags
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
_get_strand() {
|
|
46
|
-
return this.record.isReverseComplemented() ? -1 : 1
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
_read_group_id() {
|
|
50
|
-
return this._store.samHeader.readGroups?.[this.record.readGroupId]
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
_get_qual() {
|
|
54
|
-
return (this.record.qualityScores || []).join(' ')
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
qualRaw() {
|
|
58
|
-
return this.record.qualityScores
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
_get_refName() {
|
|
62
|
-
return this._store.refIdToName(this.record.sequenceId)
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
_get_is_paired() {
|
|
66
|
-
return !!this.record.mate
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
_get_pair_orientation() {
|
|
70
|
-
return this.record.isPaired() ? this.record.getPairOrientation() : undefined
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
_get_template_length() {
|
|
74
|
-
return this.record.templateLength || this.record.templateSize
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
_get_next_ref() {
|
|
78
|
-
return this.record.mate
|
|
79
|
-
? this._store.refIdToName(this.record.mate.sequenceId)
|
|
80
|
-
: undefined
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
_get_next_segment_position() {
|
|
84
|
-
return this.record.mate
|
|
85
|
-
? `${this._store.refIdToName(this.record.mate.sequenceId)}:${
|
|
86
|
-
this.record.mate.alignmentStart
|
|
87
|
-
}`
|
|
88
|
-
: undefined
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
_get_next_pos() {
|
|
92
|
-
return this.record.mate?.alignmentStart
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
_get_tags() {
|
|
96
|
-
const RG = this._read_group_id()
|
|
97
|
-
const { tags } = this.record
|
|
98
|
-
// avoids a tag copy if no RG, but just copy if there is one
|
|
99
|
-
return RG !== undefined ? { ...tags, RG } : tags
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
_get_seq() {
|
|
103
|
-
return this.record.getReadBases()
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
// generate a CIGAR, based on code from jkbonfield
|
|
107
|
-
_get_CIGAR() {
|
|
108
|
-
return readFeaturesToCIGAR(
|
|
109
|
-
this.record.readFeatures,
|
|
110
|
-
this.record.alignmentStart,
|
|
111
|
-
this.record.readLength,
|
|
112
|
-
this.record._refRegion,
|
|
113
|
-
)
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
tags() {
|
|
117
|
-
return Object.getOwnPropertyNames(CramSlightlyLazyFeature.prototype)
|
|
118
|
-
.filter(
|
|
119
|
-
prop =>
|
|
120
|
-
prop.startsWith('_get_') &&
|
|
121
|
-
prop !== '_get_mismatches' &&
|
|
122
|
-
prop !== '_get_cram_read_features',
|
|
123
|
-
)
|
|
124
|
-
.map(methodName => methodName.replace('_get_', ''))
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
id() {
|
|
128
|
-
return `${this._store.id}-${this.record.uniqueId}`
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
get(field: string) {
|
|
132
|
-
const methodName = `_get_${field}`
|
|
133
|
-
// @ts-expect-error
|
|
134
|
-
if (this[methodName]) {
|
|
135
|
-
// @ts-expect-error
|
|
136
|
-
return this[methodName]()
|
|
137
|
-
}
|
|
138
|
-
return undefined
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
parent() {
|
|
142
|
-
return undefined
|
|
143
|
-
}
|
|
144
|
-
|
|
145
|
-
children() {
|
|
146
|
-
return undefined
|
|
147
|
-
}
|
|
148
|
-
|
|
149
|
-
set() {}
|
|
150
|
-
|
|
151
|
-
pairedFeature() {
|
|
152
|
-
return false
|
|
153
|
-
}
|
|
154
|
-
|
|
155
|
-
_get_clipPos() {
|
|
156
|
-
const mismatches = this.get('mismatches')
|
|
157
|
-
if (mismatches.length) {
|
|
158
|
-
const record =
|
|
159
|
-
this.get('strand') === -1 ? mismatches.at(-1) : mismatches[0]
|
|
160
|
-
const { type, cliplen } = record
|
|
161
|
-
if (type === 'softclip' || type === 'hardclip') {
|
|
162
|
-
return cliplen
|
|
163
|
-
}
|
|
164
|
-
}
|
|
165
|
-
return 0
|
|
166
|
-
}
|
|
167
|
-
|
|
168
|
-
toJSON(): SimpleFeatureSerialized {
|
|
169
|
-
return {
|
|
170
|
-
...Object.fromEntries(
|
|
171
|
-
this.tags()
|
|
172
|
-
.map(t => [t, this.get(t)])
|
|
173
|
-
.filter(elt => elt[1] !== undefined),
|
|
174
|
-
),
|
|
175
|
-
uniqueId: this.id(),
|
|
176
|
-
}
|
|
177
|
-
}
|
|
178
|
-
|
|
179
|
-
_get_mismatches() {
|
|
180
|
-
const readFeatures = this.record.readFeatures
|
|
181
|
-
const qual = this.qualRaw()
|
|
182
|
-
const start = this.get('start')
|
|
183
|
-
return readFeaturesToMismatches(readFeatures, start, qual)
|
|
184
|
-
}
|
|
185
|
-
}
|
|
@@ -1,98 +0,0 @@
|
|
|
1
|
-
import { GenericFilehandle } from 'generic-filehandle'
|
|
2
|
-
import { Observable } from 'rxjs'
|
|
3
|
-
import SimpleFeature from '@jbrowse/core/util/simpleFeature'
|
|
4
|
-
import { BaseFeatureDataAdapter } from '@jbrowse/core/data_adapters/BaseAdapter'
|
|
5
|
-
import { ConfigurationSchema } from '@jbrowse/core/configuration'
|
|
6
|
-
|
|
7
|
-
// setup for Cram Adapter Testing
|
|
8
|
-
export function parseSmallFasta(text: string) {
|
|
9
|
-
return text
|
|
10
|
-
.split('>')
|
|
11
|
-
.filter(t => /\S/.test(t))
|
|
12
|
-
.map(entryText => {
|
|
13
|
-
const [defLine, ...seqLines] = entryText.split(/\n|\r\n|\r/)
|
|
14
|
-
const [id, ...descriptionLines] = defLine.split(' ')
|
|
15
|
-
const description = descriptionLines.join(' ')
|
|
16
|
-
const sequence = seqLines.join('').replaceAll(/\s/g, '')
|
|
17
|
-
return { id, description, sequence }
|
|
18
|
-
})
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
type FileHandle = GenericFilehandle
|
|
22
|
-
|
|
23
|
-
export class FetchableSmallFasta {
|
|
24
|
-
data: Promise<ReturnType<typeof parseSmallFasta>>
|
|
25
|
-
|
|
26
|
-
constructor(filehandle: FileHandle) {
|
|
27
|
-
this.data = filehandle.readFile().then(buffer => {
|
|
28
|
-
const text = buffer.toString('utf8')
|
|
29
|
-
return parseSmallFasta(text)
|
|
30
|
-
})
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
async fetch(id: number, start: number, end: number) {
|
|
34
|
-
const data = await this.data
|
|
35
|
-
const entry = data[id]
|
|
36
|
-
const length = end - start + 1
|
|
37
|
-
if (!entry) {
|
|
38
|
-
throw new Error(`no sequence with id ${id} exists`)
|
|
39
|
-
}
|
|
40
|
-
return entry.sequence.slice(start, start + length)
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
async getSequenceList() {
|
|
44
|
-
const data = await this.data
|
|
45
|
-
return data.map(entry => entry.id)
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
export class SequenceAdapter extends BaseFeatureDataAdapter {
|
|
50
|
-
fasta: FetchableSmallFasta
|
|
51
|
-
|
|
52
|
-
refNames: string[] = []
|
|
53
|
-
|
|
54
|
-
constructor(filehandle: FileHandle) {
|
|
55
|
-
super(ConfigurationSchema('empty', {}).create())
|
|
56
|
-
this.fasta = new FetchableSmallFasta(filehandle)
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
async getRefNames() {
|
|
60
|
-
return this.refNames
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
getFeatures({
|
|
64
|
-
refName,
|
|
65
|
-
start,
|
|
66
|
-
end,
|
|
67
|
-
}: {
|
|
68
|
-
refName: string
|
|
69
|
-
start: number
|
|
70
|
-
end: number
|
|
71
|
-
}): Observable<SimpleFeature> {
|
|
72
|
-
return new Observable(observer => {
|
|
73
|
-
this.fasta
|
|
74
|
-
.getSequenceList()
|
|
75
|
-
.then(refNames => {
|
|
76
|
-
this.refNames = refNames
|
|
77
|
-
})
|
|
78
|
-
.then(() =>
|
|
79
|
-
this.fasta.fetch(this.refNames.indexOf(refName), start, end),
|
|
80
|
-
)
|
|
81
|
-
.then(ret => {
|
|
82
|
-
observer.next(
|
|
83
|
-
new SimpleFeature({
|
|
84
|
-
uniqueId: `${refName}-${start}-${end}`,
|
|
85
|
-
seq: ret,
|
|
86
|
-
start,
|
|
87
|
-
end,
|
|
88
|
-
}),
|
|
89
|
-
)
|
|
90
|
-
observer.complete()
|
|
91
|
-
})
|
|
92
|
-
.catch(e => observer.error(e))
|
|
93
|
-
return { unsubscribe: () => {} }
|
|
94
|
-
})
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
freeResources(/* { region } */): void {}
|
|
98
|
-
}
|
|
@@ -1,256 +0,0 @@
|
|
|
1
|
-
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
|
-
|
|
3
|
-
exports[`adapter can fetch features from volvox-sorted.cram 1`] = `
|
|
4
|
-
[
|
|
5
|
-
{
|
|
6
|
-
"CIGAR": "100M",
|
|
7
|
-
"clipPos": 0,
|
|
8
|
-
"end": 5540,
|
|
9
|
-
"flags": 16,
|
|
10
|
-
"is_paired": false,
|
|
11
|
-
"name": "ctgA_5060_5540_1:0:0_3:1:0_15a3",
|
|
12
|
-
"qual": "17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17",
|
|
13
|
-
"refName": "ctgA",
|
|
14
|
-
"score": 37,
|
|
15
|
-
"seq": "TACACTGGTTCGGAGACGGTTCGTGACGAGCGCGCTATATGTCGGCATCTGCGCCGCATGAGCGGCCGCTGACCGGCGGCACGACTAATATAGTGCAAGA",
|
|
16
|
-
"start": 5440,
|
|
17
|
-
"strand": -1,
|
|
18
|
-
"tags": {
|
|
19
|
-
"X0": 1,
|
|
20
|
-
"X1": 0,
|
|
21
|
-
"XG": 0,
|
|
22
|
-
"XM": 4,
|
|
23
|
-
"XO": 0,
|
|
24
|
-
"XT": "U",
|
|
25
|
-
},
|
|
26
|
-
"template_length": 0,
|
|
27
|
-
"type": "match",
|
|
28
|
-
"uniqueId": "test-1618",
|
|
29
|
-
},
|
|
30
|
-
{
|
|
31
|
-
"CIGAR": "100M",
|
|
32
|
-
"clipPos": 0,
|
|
33
|
-
"end": 5541,
|
|
34
|
-
"flags": 16,
|
|
35
|
-
"is_paired": false,
|
|
36
|
-
"name": "ctgA_4973_5541_1:0:0_1:0:0_1569",
|
|
37
|
-
"qual": "17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17",
|
|
38
|
-
"refName": "ctgA",
|
|
39
|
-
"score": 37,
|
|
40
|
-
"seq": "ACACTGGTTCGGAGACGGTTCATGACGAGCGCGCTATATGTCGGCATCTGCGCCCCATGAGCGGCCCCTGTCCGGCGGCACGAATAATATAGTGCAAGAA",
|
|
41
|
-
"start": 5441,
|
|
42
|
-
"strand": -1,
|
|
43
|
-
"tags": {
|
|
44
|
-
"X0": 1,
|
|
45
|
-
"X1": 0,
|
|
46
|
-
"XG": 0,
|
|
47
|
-
"XM": 1,
|
|
48
|
-
"XO": 0,
|
|
49
|
-
"XT": "U",
|
|
50
|
-
},
|
|
51
|
-
"template_length": 0,
|
|
52
|
-
"type": "match",
|
|
53
|
-
"uniqueId": "test-1619",
|
|
54
|
-
},
|
|
55
|
-
{
|
|
56
|
-
"CIGAR": "100M",
|
|
57
|
-
"clipPos": 0,
|
|
58
|
-
"end": 5544,
|
|
59
|
-
"flags": 0,
|
|
60
|
-
"is_paired": false,
|
|
61
|
-
"name": "ctgA_5445_5947_3:1:0_2:0:0_2b9",
|
|
62
|
-
"qual": "17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17",
|
|
63
|
-
"refName": "ctgA",
|
|
64
|
-
"score": 37,
|
|
65
|
-
"seq": "CTGGTTCGGAGACGGTTCATGACGACCGCGCTATATGTCGGCATCTGCGTCGCATGAGCGGCCGCTGTCCGGCGGCTCGAATAATATAGTGCAAGAAAAA",
|
|
66
|
-
"start": 5444,
|
|
67
|
-
"strand": 1,
|
|
68
|
-
"tags": {
|
|
69
|
-
"X0": 1,
|
|
70
|
-
"X1": 0,
|
|
71
|
-
"XG": 0,
|
|
72
|
-
"XM": 4,
|
|
73
|
-
"XO": 0,
|
|
74
|
-
"XT": "U",
|
|
75
|
-
},
|
|
76
|
-
"template_length": 0,
|
|
77
|
-
"type": "match",
|
|
78
|
-
"uniqueId": "test-1620",
|
|
79
|
-
},
|
|
80
|
-
{
|
|
81
|
-
"CIGAR": "100M",
|
|
82
|
-
"clipPos": 0,
|
|
83
|
-
"end": 5553,
|
|
84
|
-
"flags": 0,
|
|
85
|
-
"is_paired": false,
|
|
86
|
-
"name": "ctgA_5454_5906_0:1:0_2:0:0_d8a",
|
|
87
|
-
"qual": "17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17",
|
|
88
|
-
"refName": "ctgA",
|
|
89
|
-
"score": 37,
|
|
90
|
-
"seq": "AGACGGTTCATGACGAGCGCGCTATATGTCGGCATCTGCGCCGCATGAGCGGCCGCTGTCCGGCGGCACGAATAATATAGTGCAAGAAAAACCGAAGACT",
|
|
91
|
-
"start": 5453,
|
|
92
|
-
"strand": 1,
|
|
93
|
-
"tags": {
|
|
94
|
-
"X0": 1,
|
|
95
|
-
"X1": 0,
|
|
96
|
-
"XG": 0,
|
|
97
|
-
"XM": 1,
|
|
98
|
-
"XO": 0,
|
|
99
|
-
"XT": "U",
|
|
100
|
-
},
|
|
101
|
-
"template_length": 0,
|
|
102
|
-
"type": "match",
|
|
103
|
-
"uniqueId": "test-1621",
|
|
104
|
-
},
|
|
105
|
-
{
|
|
106
|
-
"CIGAR": "100M",
|
|
107
|
-
"clipPos": 0,
|
|
108
|
-
"end": 5554,
|
|
109
|
-
"flags": 0,
|
|
110
|
-
"is_paired": false,
|
|
111
|
-
"name": "ctgA_5455_5964_2:0:0_2:0:0_23e2",
|
|
112
|
-
"qual": "17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17",
|
|
113
|
-
"refName": "ctgA",
|
|
114
|
-
"score": 37,
|
|
115
|
-
"seq": "GACGGTTCATGACGAGCGCGCTATATGTCGGCATCTGCGCCCCATGAGCCGCCGCTGTCCGACGGCACGAATAATATAGTGCAAGAAAAACCGAAGACTA",
|
|
116
|
-
"start": 5454,
|
|
117
|
-
"strand": 1,
|
|
118
|
-
"tags": {
|
|
119
|
-
"X0": 1,
|
|
120
|
-
"X1": 0,
|
|
121
|
-
"XG": 0,
|
|
122
|
-
"XM": 2,
|
|
123
|
-
"XO": 0,
|
|
124
|
-
"XT": "U",
|
|
125
|
-
},
|
|
126
|
-
"template_length": 0,
|
|
127
|
-
"type": "match",
|
|
128
|
-
"uniqueId": "test-1622",
|
|
129
|
-
},
|
|
130
|
-
{
|
|
131
|
-
"CIGAR": "100M",
|
|
132
|
-
"clipPos": 0,
|
|
133
|
-
"end": 5559,
|
|
134
|
-
"flags": 16,
|
|
135
|
-
"is_paired": false,
|
|
136
|
-
"name": "ctgA_5153_5559_3:0:0_1:1:0_11ac",
|
|
137
|
-
"qual": "17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17",
|
|
138
|
-
"refName": "ctgA",
|
|
139
|
-
"score": 37,
|
|
140
|
-
"seq": "TTCATGACGAGCGCGCTATATGACGGCATCTGCGCCGCATGAGCGGCCGCTGTCCGGCGGCACGAATAATATAGTGCAAGAAAAACCGAAGACTACGGTT",
|
|
141
|
-
"start": 5459,
|
|
142
|
-
"strand": -1,
|
|
143
|
-
"tags": {
|
|
144
|
-
"X0": 1,
|
|
145
|
-
"X1": 0,
|
|
146
|
-
"XG": 0,
|
|
147
|
-
"XM": 2,
|
|
148
|
-
"XO": 0,
|
|
149
|
-
"XT": "U",
|
|
150
|
-
},
|
|
151
|
-
"template_length": 0,
|
|
152
|
-
"type": "match",
|
|
153
|
-
"uniqueId": "test-1623",
|
|
154
|
-
},
|
|
155
|
-
{
|
|
156
|
-
"CIGAR": "100M",
|
|
157
|
-
"clipPos": 0,
|
|
158
|
-
"end": 5560,
|
|
159
|
-
"flags": 0,
|
|
160
|
-
"is_paired": false,
|
|
161
|
-
"name": "ctgA_5461_5986_1:1:0_3:0:0_200e",
|
|
162
|
-
"qual": "17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17",
|
|
163
|
-
"refName": "ctgA",
|
|
164
|
-
"score": 37,
|
|
165
|
-
"seq": "TCATGACGAGCGCGCTATATGTCGGCATCTGCGCCGCATCAGCGGCCGCTGTCCGGCGGCACGAATAATATAGTGCAAGAAAAACCGAAGACTACGGTTA",
|
|
166
|
-
"start": 5460,
|
|
167
|
-
"strand": 1,
|
|
168
|
-
"tags": {
|
|
169
|
-
"X0": 1,
|
|
170
|
-
"X1": 0,
|
|
171
|
-
"XG": 0,
|
|
172
|
-
"XM": 2,
|
|
173
|
-
"XO": 0,
|
|
174
|
-
"XT": "U",
|
|
175
|
-
},
|
|
176
|
-
"template_length": 0,
|
|
177
|
-
"type": "match",
|
|
178
|
-
"uniqueId": "test-1624",
|
|
179
|
-
},
|
|
180
|
-
{
|
|
181
|
-
"CIGAR": "100M",
|
|
182
|
-
"clipPos": 0,
|
|
183
|
-
"end": 5568,
|
|
184
|
-
"flags": 0,
|
|
185
|
-
"is_paired": false,
|
|
186
|
-
"name": "ctgA_5469_5932_0:0:0_2:0:0_6f8",
|
|
187
|
-
"qual": "17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17",
|
|
188
|
-
"refName": "ctgA",
|
|
189
|
-
"score": 37,
|
|
190
|
-
"seq": "AGCGCGCTATATGTCGGCATCTGCGCCCCATGAGCGGCCGCTGTCCGGCGGCACGAATAATATAGTGCAAGAAAAACCGAAGACTACGGTTATATATGAT",
|
|
191
|
-
"start": 5468,
|
|
192
|
-
"strand": 1,
|
|
193
|
-
"tags": {
|
|
194
|
-
"X0": 1,
|
|
195
|
-
"X1": 0,
|
|
196
|
-
"XG": 0,
|
|
197
|
-
"XM": 0,
|
|
198
|
-
"XO": 0,
|
|
199
|
-
"XT": "U",
|
|
200
|
-
},
|
|
201
|
-
"template_length": 0,
|
|
202
|
-
"type": "match",
|
|
203
|
-
"uniqueId": "test-1625",
|
|
204
|
-
},
|
|
205
|
-
{
|
|
206
|
-
"CIGAR": "100M",
|
|
207
|
-
"clipPos": 0,
|
|
208
|
-
"end": 5594,
|
|
209
|
-
"flags": 16,
|
|
210
|
-
"is_paired": false,
|
|
211
|
-
"name": "ctgA_5079_5594_1:0:0_2:0:0_d64",
|
|
212
|
-
"qual": "17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17",
|
|
213
|
-
"refName": "ctgA",
|
|
214
|
-
"score": 37,
|
|
215
|
-
"seq": "CCCATGAGCGGCCGCTGTCCGGCGGCACGAATAATATAGTGCAAGAAAAACCTAAGACTACGGTTATATATGATGGAACGGCCCTCACAGCATTCTCACA",
|
|
216
|
-
"start": 5494,
|
|
217
|
-
"strand": -1,
|
|
218
|
-
"tags": {
|
|
219
|
-
"X0": 1,
|
|
220
|
-
"X1": 0,
|
|
221
|
-
"XG": 0,
|
|
222
|
-
"XM": 2,
|
|
223
|
-
"XO": 0,
|
|
224
|
-
"XT": "U",
|
|
225
|
-
},
|
|
226
|
-
"template_length": 0,
|
|
227
|
-
"type": "match",
|
|
228
|
-
"uniqueId": "test-1626",
|
|
229
|
-
},
|
|
230
|
-
{
|
|
231
|
-
"CIGAR": "100M",
|
|
232
|
-
"clipPos": 0,
|
|
233
|
-
"end": 5596,
|
|
234
|
-
"flags": 0,
|
|
235
|
-
"is_paired": false,
|
|
236
|
-
"name": "ctgA_5497_6082_1:0:0_2:0:0_b2",
|
|
237
|
-
"qual": "17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17",
|
|
238
|
-
"refName": "ctgA",
|
|
239
|
-
"score": 37,
|
|
240
|
-
"seq": "CATGAGCGGCCGCTGTCCGGCGGCACGAATAATATAGTGCAAGAAAAACCGAAGACTACGGTTATATATGATGGAACGGCCCTCACAGCATTGTAACAGG",
|
|
241
|
-
"start": 5496,
|
|
242
|
-
"strand": 1,
|
|
243
|
-
"tags": {
|
|
244
|
-
"X0": 1,
|
|
245
|
-
"X1": 0,
|
|
246
|
-
"XG": 0,
|
|
247
|
-
"XM": 1,
|
|
248
|
-
"XO": 0,
|
|
249
|
-
"XT": "U",
|
|
250
|
-
},
|
|
251
|
-
"template_length": 0,
|
|
252
|
-
"type": "match",
|
|
253
|
-
"uniqueId": "test-1627",
|
|
254
|
-
},
|
|
255
|
-
]
|
|
256
|
-
`;
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
import { ConfigurationSchema } from '@jbrowse/core/configuration'
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* #config CramAdapter
|
|
5
|
-
* used to configure CRAM adapter
|
|
6
|
-
*/
|
|
7
|
-
function x() {} // eslint-disable-line @typescript-eslint/no-unused-vars
|
|
8
|
-
|
|
9
|
-
const configSchema = ConfigurationSchema(
|
|
10
|
-
'CramAdapter',
|
|
11
|
-
{
|
|
12
|
-
/**
|
|
13
|
-
* #slot fetchSizeLimit
|
|
14
|
-
*/
|
|
15
|
-
fetchSizeLimit: {
|
|
16
|
-
type: 'number',
|
|
17
|
-
description:
|
|
18
|
-
'size in bytes over which to display a warning to the user that too much data will be fetched',
|
|
19
|
-
defaultValue: 3_000_000,
|
|
20
|
-
},
|
|
21
|
-
|
|
22
|
-
/**
|
|
23
|
-
* #slot cramLocation
|
|
24
|
-
*/
|
|
25
|
-
cramLocation: {
|
|
26
|
-
type: 'fileLocation',
|
|
27
|
-
defaultValue: {
|
|
28
|
-
uri: '/path/to/my.cram',
|
|
29
|
-
locationType: 'UriLocation',
|
|
30
|
-
},
|
|
31
|
-
},
|
|
32
|
-
|
|
33
|
-
/**
|
|
34
|
-
* #slot craiLocation
|
|
35
|
-
*/
|
|
36
|
-
craiLocation: {
|
|
37
|
-
type: 'fileLocation',
|
|
38
|
-
defaultValue: {
|
|
39
|
-
uri: '/path/to/my.cram.crai',
|
|
40
|
-
locationType: 'UriLocation',
|
|
41
|
-
},
|
|
42
|
-
},
|
|
43
|
-
|
|
44
|
-
/**
|
|
45
|
-
* #slot sequenceAdapter
|
|
46
|
-
* generally refers to the reference genome assembly's sequence adapter
|
|
47
|
-
* currently needs to be manually added
|
|
48
|
-
*/
|
|
49
|
-
sequenceAdapter: {
|
|
50
|
-
type: 'frozen',
|
|
51
|
-
description: 'sequence data adapter',
|
|
52
|
-
defaultValue: null,
|
|
53
|
-
},
|
|
54
|
-
},
|
|
55
|
-
{ explicitlyTyped: true },
|
|
56
|
-
)
|
|
57
|
-
export default configSchema
|
package/src/CramAdapter/index.ts
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import PluginManager from '@jbrowse/core/PluginManager'
|
|
2
|
-
import AdapterType from '@jbrowse/core/pluggableElementTypes/AdapterType'
|
|
3
|
-
|
|
4
|
-
// locals
|
|
5
|
-
import configSchema from './configSchema'
|
|
6
|
-
|
|
7
|
-
export default (pluginManager: PluginManager) => {
|
|
8
|
-
pluginManager.addAdapterType(() => {
|
|
9
|
-
return new AdapterType({
|
|
10
|
-
name: 'CramAdapter',
|
|
11
|
-
displayName: 'CRAM adapter',
|
|
12
|
-
configSchema,
|
|
13
|
-
getAdapterClass: () => import('./CramAdapter').then(r => r.default),
|
|
14
|
-
})
|
|
15
|
-
})
|
|
16
|
-
}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { readFeaturesToCIGAR, readFeaturesToMismatches } from './util'
|
|
2
|
-
|
|
3
|
-
test('cram read features mismatches', () => {
|
|
4
|
-
expect(
|
|
5
|
-
// from ctgA_15140_15565_0:0:1_1:0:0_2e8 in volvox-sorted.cram
|
|
6
|
-
readFeaturesToMismatches(
|
|
7
|
-
[{ code: 'i', data: 'C', pos: 25, refPos: 15164 }],
|
|
8
|
-
15139,
|
|
9
|
-
),
|
|
10
|
-
).toMatchSnapshot()
|
|
11
|
-
})
|
|
12
|
-
|
|
13
|
-
test('cram read features to CIGAR', () => {
|
|
14
|
-
expect(
|
|
15
|
-
// from ctgA_15140_15565_0:0:1_1:0:0_2e8 in volvox-sorted.cram
|
|
16
|
-
readFeaturesToCIGAR(
|
|
17
|
-
[{ code: 'i', data: 'C', pos: 25, refPos: 15164 }],
|
|
18
|
-
15140,
|
|
19
|
-
100,
|
|
20
|
-
{
|
|
21
|
-
start: 14998,
|
|
22
|
-
seq: 'agaccacattcagctctcggtaacatgggaggcttgtggttgcaccgtaaaagggggatagcccatccatcctgtaaacctacaatcgcgcgtagcttaatacgctcacattagacattcgatcgagagacctggtttcaagagccttcccttttgctttagtgggccaaatcgcaaccctgctcccctcccttacgccttatacacttcagtgcaaattcatgcgttcagcgaacaactggacttctgttgtacgtagtccacgggggcttattcattatagaaagccccctactgtcaccgttatatggttcacacatgagctgatcacctagagagtcgtcatgcacattcgcctaacaaggacatatgagtaaccg',
|
|
23
|
-
},
|
|
24
|
-
),
|
|
25
|
-
).toMatchSnapshot()
|
|
26
|
-
})
|