@jbrowse/plugin-alignments 2.2.2 → 2.3.1
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 +1 -1
- package/dist/AlignmentsFeatureDetail/AlignmentsFeatureDetail.js.map +1 -1
- package/dist/AlignmentsTrack/index.js +1 -0
- package/dist/AlignmentsTrack/index.js.map +1 -1
- package/dist/BamAdapter/BamSlightlyLazyFeature.d.ts +3 -4
- package/dist/BamAdapter/BamSlightlyLazyFeature.js +11 -18
- package/dist/BamAdapter/BamSlightlyLazyFeature.js.map +1 -1
- package/dist/BamAdapter/index.js +1 -0
- package/dist/BamAdapter/index.js.map +1 -1
- package/dist/CramAdapter/CramSlightlyLazyFeature.d.ts +5 -7
- package/dist/CramAdapter/CramSlightlyLazyFeature.js +6 -8
- package/dist/CramAdapter/CramSlightlyLazyFeature.js.map +1 -1
- package/dist/CramAdapter/index.js +1 -0
- package/dist/CramAdapter/index.js.map +1 -1
- package/dist/GuessAlignmentsTypes/index.d.ts +3 -0
- package/dist/GuessAlignmentsTypes/index.js +56 -0
- package/dist/GuessAlignmentsTypes/index.js.map +1 -0
- package/dist/HtsgetBamAdapter/index.js +11 -11
- package/dist/HtsgetBamAdapter/index.js.map +1 -1
- package/dist/LinearAlignmentsDisplay/components/AlignmentsDisplay.js +10 -13
- package/dist/LinearAlignmentsDisplay/components/AlignmentsDisplay.js.map +1 -1
- package/dist/LinearAlignmentsDisplay/index.js +1 -0
- package/dist/LinearAlignmentsDisplay/index.js.map +1 -1
- package/dist/LinearAlignmentsDisplay/models/configSchema.d.ts +6 -3
- package/dist/LinearAlignmentsDisplay/models/configSchema.js +2 -3
- package/dist/LinearAlignmentsDisplay/models/configSchema.js.map +1 -1
- package/dist/LinearAlignmentsDisplay/models/model.d.ts +22 -36
- package/dist/LinearAlignmentsDisplay/models/model.js +166 -151
- package/dist/LinearAlignmentsDisplay/models/model.js.map +1 -1
- package/dist/LinearPileupDisplay/components/SetFeatureHeight.d.ts +2 -2
- package/dist/LinearPileupDisplay/components/SetFeatureHeight.js +2 -4
- package/dist/LinearPileupDisplay/components/SetFeatureHeight.js.map +1 -1
- package/dist/LinearPileupDisplay/configSchema.d.ts +0 -3
- package/dist/LinearPileupDisplay/configSchema.js.map +1 -1
- package/dist/LinearPileupDisplay/index.js +2 -0
- package/dist/LinearPileupDisplay/index.js.map +1 -1
- package/dist/LinearPileupDisplay/model.d.ts +19 -16
- package/dist/LinearPileupDisplay/model.js +28 -13
- package/dist/LinearPileupDisplay/model.js.map +1 -1
- package/dist/LinearReadArcsDisplay/components/ReactComponent.d.ts +6 -0
- package/dist/LinearReadArcsDisplay/components/ReactComponent.js +49 -0
- package/dist/LinearReadArcsDisplay/components/ReactComponent.js.map +1 -0
- package/dist/LinearReadArcsDisplay/configSchema.d.ts +6 -0
- package/dist/LinearReadArcsDisplay/configSchema.js +52 -0
- package/dist/LinearReadArcsDisplay/configSchema.js.map +1 -0
- package/dist/LinearReadArcsDisplay/drawFeats.d.ts +14 -0
- package/dist/LinearReadArcsDisplay/drawFeats.js +162 -0
- package/dist/LinearReadArcsDisplay/drawFeats.js.map +1 -0
- package/dist/LinearReadArcsDisplay/index.d.ts +2 -0
- package/dist/LinearReadArcsDisplay/index.js +27 -0
- package/dist/LinearReadArcsDisplay/index.js.map +1 -0
- package/dist/LinearReadArcsDisplay/model.d.ts +342 -0
- package/dist/LinearReadArcsDisplay/model.js +327 -0
- package/dist/LinearReadArcsDisplay/model.js.map +1 -0
- package/dist/LinearReadCloudDisplay/components/ReactComponent.d.ts +6 -0
- package/dist/LinearReadCloudDisplay/components/ReactComponent.js +49 -0
- package/dist/LinearReadCloudDisplay/components/ReactComponent.js.map +1 -0
- package/dist/LinearReadCloudDisplay/configSchema.d.ts +6 -0
- package/dist/LinearReadCloudDisplay/configSchema.js +51 -0
- package/dist/LinearReadCloudDisplay/configSchema.js.map +1 -0
- package/dist/LinearReadCloudDisplay/drawFeats.d.ts +10 -0
- package/dist/LinearReadCloudDisplay/drawFeats.js +159 -0
- package/dist/LinearReadCloudDisplay/drawFeats.js.map +1 -0
- package/dist/LinearReadCloudDisplay/index.d.ts +2 -0
- package/dist/LinearReadCloudDisplay/index.js +27 -0
- package/dist/LinearReadCloudDisplay/index.js.map +1 -0
- package/dist/LinearReadCloudDisplay/model.d.ts +320 -0
- package/dist/LinearReadCloudDisplay/model.js +252 -0
- package/dist/LinearReadCloudDisplay/model.js.map +1 -0
- package/dist/LinearSNPCoverageDisplay/index.js +1 -0
- package/dist/LinearSNPCoverageDisplay/index.js.map +1 -1
- package/dist/LinearSNPCoverageDisplay/models/model.d.ts +19 -20
- package/dist/LinearSNPCoverageDisplay/models/model.js +1 -6
- package/dist/LinearSNPCoverageDisplay/models/model.js.map +1 -1
- package/dist/{BamAdapter/MismatchParser.d.ts → MismatchParser/index.d.ts} +23 -0
- package/dist/{BamAdapter/MismatchParser.js → MismatchParser/index.js} +116 -3
- package/dist/MismatchParser/index.js.map +1 -0
- package/dist/PileupRPC/base.d.ts +8 -0
- package/dist/PileupRPC/base.js +22 -0
- package/dist/PileupRPC/base.js.map +1 -0
- package/dist/PileupRPC/index.d.ts +3 -0
- package/dist/PileupRPC/index.js +9 -0
- package/dist/PileupRPC/index.js.map +1 -0
- package/dist/PileupRPC/methods/GetGlobalValueForTag.d.ts +14 -0
- package/dist/PileupRPC/methods/GetGlobalValueForTag.js +29 -0
- package/dist/PileupRPC/methods/GetGlobalValueForTag.js.map +1 -0
- package/dist/PileupRPC/methods/GetReducedFeatures.d.ts +25 -0
- package/dist/PileupRPC/methods/GetReducedFeatures.js +61 -0
- package/dist/PileupRPC/methods/GetReducedFeatures.js.map +1 -0
- package/dist/PileupRPC/methods/GetVisibleModifications.d.ts +14 -0
- package/dist/PileupRPC/methods/GetVisibleModifications.js +32 -0
- package/dist/PileupRPC/methods/GetVisibleModifications.js.map +1 -0
- package/dist/PileupRPC/rpcMethods.d.ts +4 -34
- package/dist/PileupRPC/rpcMethods.js +7 -77
- package/dist/PileupRPC/rpcMethods.js.map +1 -1
- package/dist/PileupRPC/util.d.ts +8 -0
- package/dist/PileupRPC/util.js +20 -0
- package/dist/PileupRPC/util.js.map +1 -0
- package/dist/PileupRenderer/PileupRenderer.d.ts +1 -1
- package/dist/PileupRenderer/PileupRenderer.js +5 -5
- package/dist/PileupRenderer/PileupRenderer.js.map +1 -1
- package/dist/PileupRenderer/index.js +1 -0
- package/dist/PileupRenderer/index.js.map +1 -1
- package/dist/PileupRenderer/sortUtil.d.ts +1 -1
- package/dist/PileupRenderer/sortUtil.js +2 -2
- package/dist/PileupRenderer/sortUtil.js.map +1 -1
- package/dist/SNPCoverageAdapter/generateCoverageBins.js +1 -1
- package/dist/SNPCoverageAdapter/generateCoverageBins.js.map +1 -1
- package/dist/SNPCoverageAdapter/index.js +1 -3
- package/dist/SNPCoverageAdapter/index.js.map +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.js +12 -58
- package/dist/index.js.map +1 -1
- package/dist/{LinearPileupDisplay/components → shared}/FilterByTag.d.ts +0 -0
- package/dist/{LinearPileupDisplay/components → shared}/FilterByTag.js +3 -9
- package/dist/shared/FilterByTag.js.map +1 -0
- package/dist/shared/color.d.ts +17 -0
- package/dist/shared/color.js +43 -0
- package/dist/shared/color.js.map +1 -0
- package/dist/shared/fetchChains.d.ts +27 -0
- package/dist/shared/fetchChains.js +30 -0
- package/dist/shared/fetchChains.js.map +1 -0
- package/dist/shared/index.d.ts +36 -0
- package/dist/{shared.js → shared/index.js} +12 -2
- package/dist/shared/index.js.map +1 -0
- package/esm/AlignmentsFeatureDetail/AlignmentsFeatureDetail.js +1 -1
- package/esm/AlignmentsFeatureDetail/AlignmentsFeatureDetail.js.map +1 -1
- package/esm/AlignmentsTrack/index.js +1 -0
- package/esm/AlignmentsTrack/index.js.map +1 -1
- package/esm/BamAdapter/BamSlightlyLazyFeature.d.ts +3 -4
- package/esm/BamAdapter/BamSlightlyLazyFeature.js +11 -18
- package/esm/BamAdapter/BamSlightlyLazyFeature.js.map +1 -1
- package/esm/BamAdapter/index.js +1 -0
- package/esm/BamAdapter/index.js.map +1 -1
- package/esm/CramAdapter/CramSlightlyLazyFeature.d.ts +5 -7
- package/esm/CramAdapter/CramSlightlyLazyFeature.js +6 -8
- package/esm/CramAdapter/CramSlightlyLazyFeature.js.map +1 -1
- package/esm/CramAdapter/index.js +1 -0
- package/esm/CramAdapter/index.js.map +1 -1
- package/esm/GuessAlignmentsTypes/index.d.ts +3 -0
- package/esm/GuessAlignmentsTypes/index.js +54 -0
- package/esm/GuessAlignmentsTypes/index.js.map +1 -0
- package/esm/HtsgetBamAdapter/index.js +11 -11
- package/esm/HtsgetBamAdapter/index.js.map +1 -1
- package/esm/LinearAlignmentsDisplay/components/AlignmentsDisplay.js +10 -13
- package/esm/LinearAlignmentsDisplay/components/AlignmentsDisplay.js.map +1 -1
- package/esm/LinearAlignmentsDisplay/index.js +1 -0
- package/esm/LinearAlignmentsDisplay/index.js.map +1 -1
- package/esm/LinearAlignmentsDisplay/models/configSchema.d.ts +6 -3
- package/esm/LinearAlignmentsDisplay/models/configSchema.js +2 -4
- package/esm/LinearAlignmentsDisplay/models/configSchema.js.map +1 -1
- package/esm/LinearAlignmentsDisplay/models/model.d.ts +22 -36
- package/esm/LinearAlignmentsDisplay/models/model.js +167 -152
- package/esm/LinearAlignmentsDisplay/models/model.js.map +1 -1
- package/esm/LinearPileupDisplay/components/SetFeatureHeight.d.ts +2 -2
- package/esm/LinearPileupDisplay/components/SetFeatureHeight.js +2 -4
- package/esm/LinearPileupDisplay/components/SetFeatureHeight.js.map +1 -1
- package/esm/LinearPileupDisplay/configSchema.d.ts +0 -3
- package/esm/LinearPileupDisplay/configSchema.js.map +1 -1
- package/esm/LinearPileupDisplay/index.js +2 -0
- package/esm/LinearPileupDisplay/index.js.map +1 -1
- package/esm/LinearPileupDisplay/model.d.ts +19 -16
- package/esm/LinearPileupDisplay/model.js +29 -14
- package/esm/LinearPileupDisplay/model.js.map +1 -1
- package/esm/LinearReadArcsDisplay/components/ReactComponent.d.ts +6 -0
- package/esm/LinearReadArcsDisplay/components/ReactComponent.js +44 -0
- package/esm/LinearReadArcsDisplay/components/ReactComponent.js.map +1 -0
- package/esm/LinearReadArcsDisplay/configSchema.d.ts +6 -0
- package/esm/LinearReadArcsDisplay/configSchema.js +50 -0
- package/esm/LinearReadArcsDisplay/configSchema.js.map +1 -0
- package/esm/LinearReadArcsDisplay/drawFeats.d.ts +14 -0
- package/esm/LinearReadArcsDisplay/drawFeats.js +157 -0
- package/esm/LinearReadArcsDisplay/drawFeats.js.map +1 -0
- package/esm/LinearReadArcsDisplay/index.d.ts +2 -0
- package/esm/LinearReadArcsDisplay/index.js +21 -0
- package/esm/LinearReadArcsDisplay/index.js.map +1 -0
- package/esm/LinearReadArcsDisplay/model.d.ts +342 -0
- package/esm/LinearReadArcsDisplay/model.js +299 -0
- package/esm/LinearReadArcsDisplay/model.js.map +1 -0
- package/esm/LinearReadCloudDisplay/components/ReactComponent.d.ts +6 -0
- package/esm/LinearReadCloudDisplay/components/ReactComponent.js +44 -0
- package/esm/LinearReadCloudDisplay/components/ReactComponent.js.map +1 -0
- package/esm/LinearReadCloudDisplay/configSchema.d.ts +6 -0
- package/esm/LinearReadCloudDisplay/configSchema.js +49 -0
- package/esm/LinearReadCloudDisplay/configSchema.js.map +1 -0
- package/esm/LinearReadCloudDisplay/drawFeats.d.ts +10 -0
- package/esm/LinearReadCloudDisplay/drawFeats.js +156 -0
- package/esm/LinearReadCloudDisplay/drawFeats.js.map +1 -0
- package/esm/LinearReadCloudDisplay/index.d.ts +2 -0
- package/esm/LinearReadCloudDisplay/index.js +21 -0
- package/esm/LinearReadCloudDisplay/index.js.map +1 -0
- package/esm/LinearReadCloudDisplay/model.d.ts +320 -0
- package/esm/LinearReadCloudDisplay/model.js +224 -0
- package/esm/LinearReadCloudDisplay/model.js.map +1 -0
- package/esm/LinearSNPCoverageDisplay/index.js +1 -0
- package/esm/LinearSNPCoverageDisplay/index.js.map +1 -1
- package/esm/LinearSNPCoverageDisplay/models/model.d.ts +19 -20
- package/esm/LinearSNPCoverageDisplay/models/model.js +2 -7
- package/esm/LinearSNPCoverageDisplay/models/model.js.map +1 -1
- package/esm/{BamAdapter/MismatchParser.d.ts → MismatchParser/index.d.ts} +23 -0
- package/esm/{BamAdapter/MismatchParser.js → MismatchParser/index.js} +107 -2
- package/esm/MismatchParser/index.js.map +1 -0
- package/esm/PileupRPC/base.d.ts +8 -0
- package/esm/PileupRPC/base.js +16 -0
- package/esm/PileupRPC/base.js.map +1 -0
- package/esm/PileupRPC/index.d.ts +3 -0
- package/esm/PileupRPC/index.js +7 -0
- package/esm/PileupRPC/index.js.map +1 -0
- package/esm/PileupRPC/methods/GetGlobalValueForTag.d.ts +14 -0
- package/esm/PileupRPC/methods/GetGlobalValueForTag.js +23 -0
- package/esm/PileupRPC/methods/GetGlobalValueForTag.js.map +1 -0
- package/esm/PileupRPC/methods/GetReducedFeatures.d.ts +25 -0
- package/esm/PileupRPC/methods/GetReducedFeatures.js +55 -0
- package/esm/PileupRPC/methods/GetReducedFeatures.js.map +1 -0
- package/esm/PileupRPC/methods/GetVisibleModifications.d.ts +14 -0
- package/esm/PileupRPC/methods/GetVisibleModifications.js +26 -0
- package/esm/PileupRPC/methods/GetVisibleModifications.js.map +1 -0
- package/esm/PileupRPC/rpcMethods.d.ts +4 -34
- package/esm/PileupRPC/rpcMethods.js +4 -74
- package/esm/PileupRPC/rpcMethods.js.map +1 -1
- package/esm/PileupRPC/util.d.ts +8 -0
- package/esm/PileupRPC/util.js +15 -0
- package/esm/PileupRPC/util.js.map +1 -0
- package/esm/PileupRenderer/PileupRenderer.d.ts +1 -1
- package/esm/PileupRenderer/PileupRenderer.js +5 -5
- package/esm/PileupRenderer/PileupRenderer.js.map +1 -1
- package/esm/PileupRenderer/index.js +1 -0
- package/esm/PileupRenderer/index.js.map +1 -1
- package/esm/PileupRenderer/sortUtil.d.ts +1 -1
- package/esm/PileupRenderer/sortUtil.js +1 -1
- package/esm/PileupRenderer/sortUtil.js.map +1 -1
- package/esm/SNPCoverageAdapter/generateCoverageBins.js +1 -1
- package/esm/SNPCoverageAdapter/generateCoverageBins.js.map +1 -1
- package/esm/SNPCoverageAdapter/index.js +1 -3
- package/esm/SNPCoverageAdapter/index.js.map +1 -1
- package/esm/index.d.ts +2 -2
- package/esm/index.js +10 -56
- package/esm/index.js.map +1 -1
- package/esm/{LinearPileupDisplay/components → shared}/FilterByTag.d.ts +0 -0
- package/esm/{LinearPileupDisplay/components → shared}/FilterByTag.js +3 -9
- package/esm/shared/FilterByTag.js.map +1 -0
- package/esm/shared/color.d.ts +17 -0
- package/esm/shared/color.js +37 -0
- package/esm/shared/color.js.map +1 -0
- package/esm/shared/fetchChains.d.ts +27 -0
- package/esm/shared/fetchChains.js +26 -0
- package/esm/shared/fetchChains.js.map +1 -0
- package/esm/shared/index.d.ts +36 -0
- package/esm/{shared.js → shared/index.js} +11 -1
- package/esm/shared/index.js.map +1 -0
- package/package.json +4 -4
- package/src/AlignmentsFeatureDetail/AlignmentsFeatureDetail.tsx +1 -1
- package/src/AlignmentsTrack/index.ts +1 -0
- package/src/BamAdapter/BamSlightlyLazyFeature.ts +13 -19
- package/src/BamAdapter/index.ts +1 -0
- package/src/CramAdapter/CramSlightlyLazyFeature.ts +13 -15
- package/src/CramAdapter/__snapshots__/CramAdapter.test.ts.snap +0 -10
- package/src/CramAdapter/index.ts +1 -0
- package/src/GuessAlignmentsTypes/index.ts +79 -0
- package/src/HtsgetBamAdapter/index.ts +11 -15
- package/src/LinearAlignmentsDisplay/components/AlignmentsDisplay.tsx +21 -29
- package/src/LinearAlignmentsDisplay/index.ts +1 -0
- package/src/LinearAlignmentsDisplay/models/configSchema.ts +2 -6
- package/src/LinearAlignmentsDisplay/models/model.tsx +238 -199
- package/src/LinearPileupDisplay/components/SetFeatureHeight.tsx +4 -6
- package/src/LinearPileupDisplay/configSchema.ts +1 -3
- package/src/LinearPileupDisplay/index.ts +2 -0
- package/src/LinearPileupDisplay/model.ts +36 -23
- package/src/LinearReadArcsDisplay/components/ReactComponent.tsx +86 -0
- package/src/LinearReadArcsDisplay/configSchema.ts +58 -0
- package/src/LinearReadArcsDisplay/declare.d.ts +1 -0
- package/src/LinearReadArcsDisplay/drawFeats.ts +199 -0
- package/src/LinearReadArcsDisplay/index.ts +23 -0
- package/src/LinearReadArcsDisplay/model.tsx +370 -0
- package/src/LinearReadCloudDisplay/components/ReactComponent.tsx +86 -0
- package/src/LinearReadCloudDisplay/configSchema.ts +57 -0
- package/src/LinearReadCloudDisplay/drawFeats.ts +201 -0
- package/src/LinearReadCloudDisplay/index.ts +23 -0
- package/src/LinearReadCloudDisplay/model.tsx +289 -0
- package/src/LinearSNPCoverageDisplay/index.ts +1 -0
- package/src/LinearSNPCoverageDisplay/models/model.ts +3 -13
- package/src/{BamAdapter/MismatchParser.test.ts → MismatchParser/index.test.ts} +1 -1
- package/src/{BamAdapter/MismatchParser.ts → MismatchParser/index.ts} +129 -2
- package/src/PileupRPC/base.ts +24 -0
- package/src/PileupRPC/index.ts +12 -0
- package/src/PileupRPC/methods/GetGlobalValueForTag.ts +41 -0
- package/src/PileupRPC/methods/GetReducedFeatures.ts +76 -0
- package/src/PileupRPC/methods/GetVisibleModifications.ts +45 -0
- package/src/PileupRPC/rpcMethods.ts +8 -113
- package/src/PileupRPC/util.ts +19 -0
- package/src/PileupRenderer/PileupRenderer.ts +5 -8
- package/src/PileupRenderer/index.ts +1 -0
- package/src/PileupRenderer/sortUtil.ts +2 -3
- package/src/SNPCoverageAdapter/generateCoverageBins.ts +1 -1
- package/src/SNPCoverageAdapter/index.ts +1 -3
- package/src/index.ts +12 -93
- package/src/{LinearPileupDisplay/components → shared}/FilterByTag.tsx +3 -9
- package/src/shared/color.ts +47 -0
- package/src/shared/fetchChains.ts +63 -0
- package/src/{shared.ts → shared/index.ts} +17 -4
- package/dist/BamAdapter/MismatchParser.js.map +0 -1
- package/dist/LinearPileupDisplay/components/FilterByTag.js.map +0 -1
- package/dist/shared.d.ts +0 -25
- package/dist/shared.js.map +0 -1
- package/esm/BamAdapter/MismatchParser.js.map +0 -1
- package/esm/LinearPileupDisplay/components/FilterByTag.js.map +0 -1
- package/esm/shared.d.ts +0 -25
- package/esm/shared.js.map +0 -1
|
@@ -13,7 +13,6 @@ exports[`adapter can fetch features from volvox-sorted.cram 1`] = `
|
|
|
13
13
|
"refName": "ctgA",
|
|
14
14
|
"score": 37,
|
|
15
15
|
"seq": "TACACTGGTTCGGAGACGGTTCGTGACGAGCGCGCTATATGTCGGCATCTGCGCCGCATGAGCGGCCGCTGACCGGCGGCACGACTAATATAGTGCAAGA",
|
|
16
|
-
"seq_id": "ctgA",
|
|
17
16
|
"start": 5440,
|
|
18
17
|
"strand": -1,
|
|
19
18
|
"tags": {
|
|
@@ -39,7 +38,6 @@ exports[`adapter can fetch features from volvox-sorted.cram 1`] = `
|
|
|
39
38
|
"refName": "ctgA",
|
|
40
39
|
"score": 37,
|
|
41
40
|
"seq": "ACACTGGTTCGGAGACGGTTCATGACGAGCGCGCTATATGTCGGCATCTGCGCCCCATGAGCGGCCCCTGTCCGGCGGCACGAATAATATAGTGCAAGAA",
|
|
42
|
-
"seq_id": "ctgA",
|
|
43
41
|
"start": 5441,
|
|
44
42
|
"strand": -1,
|
|
45
43
|
"tags": {
|
|
@@ -65,7 +63,6 @@ exports[`adapter can fetch features from volvox-sorted.cram 1`] = `
|
|
|
65
63
|
"refName": "ctgA",
|
|
66
64
|
"score": 37,
|
|
67
65
|
"seq": "CTGGTTCGGAGACGGTTCATGACGACCGCGCTATATGTCGGCATCTGCGTCGCATGAGCGGCCGCTGTCCGGCGGCTCGAATAATATAGTGCAAGAAAAA",
|
|
68
|
-
"seq_id": "ctgA",
|
|
69
66
|
"start": 5444,
|
|
70
67
|
"strand": 1,
|
|
71
68
|
"tags": {
|
|
@@ -91,7 +88,6 @@ exports[`adapter can fetch features from volvox-sorted.cram 1`] = `
|
|
|
91
88
|
"refName": "ctgA",
|
|
92
89
|
"score": 37,
|
|
93
90
|
"seq": "AGACGGTTCATGACGAGCGCGCTATATGTCGGCATCTGCGCCGCATGAGCGGCCGCTGTCCGGCGGCACGAATAATATAGTGCAAGAAAAACCGAAGACT",
|
|
94
|
-
"seq_id": "ctgA",
|
|
95
91
|
"start": 5453,
|
|
96
92
|
"strand": 1,
|
|
97
93
|
"tags": {
|
|
@@ -117,7 +113,6 @@ exports[`adapter can fetch features from volvox-sorted.cram 1`] = `
|
|
|
117
113
|
"refName": "ctgA",
|
|
118
114
|
"score": 37,
|
|
119
115
|
"seq": "GACGGTTCATGACGAGCGCGCTATATGTCGGCATCTGCGCCCCATGAGCCGCCGCTGTCCGACGGCACGAATAATATAGTGCAAGAAAAACCGAAGACTA",
|
|
120
|
-
"seq_id": "ctgA",
|
|
121
116
|
"start": 5454,
|
|
122
117
|
"strand": 1,
|
|
123
118
|
"tags": {
|
|
@@ -143,7 +138,6 @@ exports[`adapter can fetch features from volvox-sorted.cram 1`] = `
|
|
|
143
138
|
"refName": "ctgA",
|
|
144
139
|
"score": 37,
|
|
145
140
|
"seq": "TTCATGACGAGCGCGCTATATGACGGCATCTGCGCCGCATGAGCGGCCGCTGTCCGGCGGCACGAATAATATAGTGCAAGAAAAACCGAAGACTACGGTT",
|
|
146
|
-
"seq_id": "ctgA",
|
|
147
141
|
"start": 5459,
|
|
148
142
|
"strand": -1,
|
|
149
143
|
"tags": {
|
|
@@ -169,7 +163,6 @@ exports[`adapter can fetch features from volvox-sorted.cram 1`] = `
|
|
|
169
163
|
"refName": "ctgA",
|
|
170
164
|
"score": 37,
|
|
171
165
|
"seq": "TCATGACGAGCGCGCTATATGTCGGCATCTGCGCCGCATCAGCGGCCGCTGTCCGGCGGCACGAATAATATAGTGCAAGAAAAACCGAAGACTACGGTTA",
|
|
172
|
-
"seq_id": "ctgA",
|
|
173
166
|
"start": 5460,
|
|
174
167
|
"strand": 1,
|
|
175
168
|
"tags": {
|
|
@@ -195,7 +188,6 @@ exports[`adapter can fetch features from volvox-sorted.cram 1`] = `
|
|
|
195
188
|
"refName": "ctgA",
|
|
196
189
|
"score": 37,
|
|
197
190
|
"seq": "AGCGCGCTATATGTCGGCATCTGCGCCCCATGAGCGGCCGCTGTCCGGCGGCACGAATAATATAGTGCAAGAAAAACCGAAGACTACGGTTATATATGAT",
|
|
198
|
-
"seq_id": "ctgA",
|
|
199
191
|
"start": 5468,
|
|
200
192
|
"strand": 1,
|
|
201
193
|
"tags": {
|
|
@@ -221,7 +213,6 @@ exports[`adapter can fetch features from volvox-sorted.cram 1`] = `
|
|
|
221
213
|
"refName": "ctgA",
|
|
222
214
|
"score": 37,
|
|
223
215
|
"seq": "CCCATGAGCGGCCGCTGTCCGGCGGCACGAATAATATAGTGCAAGAAAAACCTAAGACTACGGTTATATATGATGGAACGGCCCTCACAGCATTCTCACA",
|
|
224
|
-
"seq_id": "ctgA",
|
|
225
216
|
"start": 5494,
|
|
226
217
|
"strand": -1,
|
|
227
218
|
"tags": {
|
|
@@ -247,7 +238,6 @@ exports[`adapter can fetch features from volvox-sorted.cram 1`] = `
|
|
|
247
238
|
"refName": "ctgA",
|
|
248
239
|
"score": 37,
|
|
249
240
|
"seq": "CATGAGCGGCCGCTGTCCGGCGGCACGAATAATATAGTGCAAGAAAAACCGAAGACTACGGTTATATATGATGGAACGGCCCTCACAGCATTGTAACAGG",
|
|
250
|
-
"seq_id": "ctgA",
|
|
251
241
|
"start": 5496,
|
|
252
242
|
"strand": 1,
|
|
253
243
|
"tags": {
|
package/src/CramAdapter/index.ts
CHANGED
|
@@ -8,6 +8,7 @@ export default (pluginManager: PluginManager) => {
|
|
|
8
8
|
pluginManager.addAdapterType(() => {
|
|
9
9
|
return new AdapterType({
|
|
10
10
|
name: 'CramAdapter',
|
|
11
|
+
displayName: 'CRAM adapter',
|
|
11
12
|
configSchema,
|
|
12
13
|
getAdapterClass: () => import('./CramAdapter').then(r => r.default),
|
|
13
14
|
})
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import PluginManager from '@jbrowse/core/PluginManager'
|
|
2
|
+
import { FileLocation } from '@jbrowse/core/util/types'
|
|
3
|
+
import {
|
|
4
|
+
makeIndex,
|
|
5
|
+
makeIndexType,
|
|
6
|
+
getFileName,
|
|
7
|
+
AdapterGuesser,
|
|
8
|
+
TrackTypeGuesser,
|
|
9
|
+
} from '@jbrowse/core/util/tracks'
|
|
10
|
+
|
|
11
|
+
export default (pluginManager: PluginManager) => {
|
|
12
|
+
pluginManager.addToExtensionPoint(
|
|
13
|
+
'Core-guessAdapterForLocation',
|
|
14
|
+
(adapterGuesser: AdapterGuesser) => {
|
|
15
|
+
return (
|
|
16
|
+
file: FileLocation,
|
|
17
|
+
index?: FileLocation,
|
|
18
|
+
adapterHint?: string,
|
|
19
|
+
) => {
|
|
20
|
+
const regexGuess = /\.cram$/i
|
|
21
|
+
const adapterName = 'CramAdapter'
|
|
22
|
+
const fileName = getFileName(file)
|
|
23
|
+
const obj = {
|
|
24
|
+
type: adapterName,
|
|
25
|
+
cramLocation: file,
|
|
26
|
+
craiLocation: index || makeIndex(file, '.crai'),
|
|
27
|
+
}
|
|
28
|
+
if (regexGuess.test(fileName) && !adapterHint) {
|
|
29
|
+
return obj
|
|
30
|
+
} else if (adapterHint === adapterName) {
|
|
31
|
+
return obj
|
|
32
|
+
}
|
|
33
|
+
return adapterGuesser(file, index, adapterHint)
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
)
|
|
37
|
+
|
|
38
|
+
pluginManager.addToExtensionPoint(
|
|
39
|
+
'Core-guessAdapterForLocation',
|
|
40
|
+
(adapterGuesser: AdapterGuesser) => {
|
|
41
|
+
return (
|
|
42
|
+
file: FileLocation,
|
|
43
|
+
index?: FileLocation,
|
|
44
|
+
adapterHint?: string,
|
|
45
|
+
) => {
|
|
46
|
+
const regexGuess = /\.bam$/i
|
|
47
|
+
const adapterName = 'BamAdapter'
|
|
48
|
+
const fileName = getFileName(file)
|
|
49
|
+
const indexName = index && getFileName(index)
|
|
50
|
+
|
|
51
|
+
const obj = {
|
|
52
|
+
type: adapterName,
|
|
53
|
+
bamLocation: file,
|
|
54
|
+
index: {
|
|
55
|
+
location: index || makeIndex(file, '.bai'),
|
|
56
|
+
indexType: makeIndexType(indexName, 'CSI', 'BAI'),
|
|
57
|
+
},
|
|
58
|
+
}
|
|
59
|
+
if (regexGuess.test(fileName) && !adapterHint) {
|
|
60
|
+
return obj
|
|
61
|
+
} else if (adapterHint === adapterName) {
|
|
62
|
+
return obj
|
|
63
|
+
}
|
|
64
|
+
return adapterGuesser(file, index, adapterHint)
|
|
65
|
+
}
|
|
66
|
+
},
|
|
67
|
+
)
|
|
68
|
+
pluginManager.addToExtensionPoint(
|
|
69
|
+
'Core-guessTrackTypeForLocation',
|
|
70
|
+
(trackTypeGuesser: TrackTypeGuesser) => {
|
|
71
|
+
return (adapterName: string) => {
|
|
72
|
+
if (adapterName === 'BamAdapter' || adapterName === 'CramAdapter') {
|
|
73
|
+
return 'AlignmentsTrack'
|
|
74
|
+
}
|
|
75
|
+
return trackTypeGuesser(adapterName)
|
|
76
|
+
}
|
|
77
|
+
},
|
|
78
|
+
)
|
|
79
|
+
}
|
|
@@ -3,19 +3,15 @@ import PluginManager from '@jbrowse/core/PluginManager'
|
|
|
3
3
|
import AdapterType from '@jbrowse/core/pluggableElementTypes/AdapterType'
|
|
4
4
|
|
|
5
5
|
export default (pluginManager: PluginManager) => {
|
|
6
|
-
pluginManager.addAdapterType(
|
|
7
|
-
(
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
getAdapterClass: () =>
|
|
18
|
-
import('./HtsgetBamAdapter').then(r => r.default),
|
|
19
|
-
}),
|
|
20
|
-
)
|
|
6
|
+
pluginManager.addAdapterType(() => {
|
|
7
|
+
return new AdapterType({
|
|
8
|
+
name: 'HtsgetBamAdapter',
|
|
9
|
+
displayName: 'Htsget BAM adapter',
|
|
10
|
+
adapterMetadata: {
|
|
11
|
+
hiddenFromGUI: true,
|
|
12
|
+
},
|
|
13
|
+
configSchema,
|
|
14
|
+
getAdapterClass: () => import('./HtsgetBamAdapter').then(r => r.default),
|
|
15
|
+
})
|
|
16
|
+
})
|
|
21
17
|
}
|
|
@@ -16,7 +16,7 @@ const useStyles = makeStyles()(() => ({
|
|
|
16
16
|
}))
|
|
17
17
|
|
|
18
18
|
function AlignmentsDisplay({ model }: { model: AlignmentsDisplayModel }) {
|
|
19
|
-
const { PileupDisplay, SNPCoverageDisplay
|
|
19
|
+
const { PileupDisplay, SNPCoverageDisplay } = model
|
|
20
20
|
const { classes } = useStyles()
|
|
21
21
|
const top = SNPCoverageDisplay.height
|
|
22
22
|
return (
|
|
@@ -24,35 +24,27 @@ function AlignmentsDisplay({ model }: { model: AlignmentsDisplayModel }) {
|
|
|
24
24
|
data-testid={`display-${getConf(model, 'displayId')}`}
|
|
25
25
|
style={{ position: 'relative' }}
|
|
26
26
|
>
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
style={{
|
|
39
|
-
top,
|
|
40
|
-
}}
|
|
41
|
-
/>
|
|
42
|
-
</>
|
|
43
|
-
) : null}
|
|
27
|
+
<div data-testid="Blockset-snpcoverage">
|
|
28
|
+
<SNPCoverageDisplay.RenderingComponent model={SNPCoverageDisplay} />
|
|
29
|
+
</div>
|
|
30
|
+
<ResizeHandle
|
|
31
|
+
onDrag={delta => {
|
|
32
|
+
SNPCoverageDisplay.setHeight(SNPCoverageDisplay.height + delta)
|
|
33
|
+
return delta
|
|
34
|
+
}}
|
|
35
|
+
className={classes.resizeHandle}
|
|
36
|
+
style={{ top }}
|
|
37
|
+
/>
|
|
44
38
|
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
</div>
|
|
55
|
-
) : null}
|
|
39
|
+
<div
|
|
40
|
+
data-testid="Blockset-pileup"
|
|
41
|
+
style={{
|
|
42
|
+
position: 'absolute',
|
|
43
|
+
top,
|
|
44
|
+
}}
|
|
45
|
+
>
|
|
46
|
+
<PileupDisplay.RenderingComponent model={PileupDisplay} />
|
|
47
|
+
</div>
|
|
56
48
|
</div>
|
|
57
49
|
)
|
|
58
50
|
}
|
|
@@ -10,6 +10,7 @@ export default function (pluginManager: PluginManager) {
|
|
|
10
10
|
const configSchema = configSchemaFactory(pluginManager)
|
|
11
11
|
return new DisplayType({
|
|
12
12
|
name: 'LinearAlignmentsDisplay',
|
|
13
|
+
displayName: 'Alignments display (combination)',
|
|
13
14
|
configSchema,
|
|
14
15
|
stateModel: modelFactory(pluginManager, configSchema),
|
|
15
16
|
trackType: 'AlignmentsTrack',
|
|
@@ -7,9 +7,7 @@ import PluginManager from '@jbrowse/core/PluginManager'
|
|
|
7
7
|
* has a "pileup" sub-display, where you can see individual reads and a
|
|
8
8
|
* quantitative "snpcoverage" sub-display track showing SNP frequencies
|
|
9
9
|
*/
|
|
10
|
-
function
|
|
11
|
-
|
|
12
|
-
const configModelFactory = (pm: PluginManager) => {
|
|
10
|
+
export default function configModelFactory(pm: PluginManager) {
|
|
13
11
|
return ConfigurationSchema(
|
|
14
12
|
'LinearAlignmentsDisplay',
|
|
15
13
|
{
|
|
@@ -17,6 +15,7 @@ const configModelFactory = (pm: PluginManager) => {
|
|
|
17
15
|
* #slot
|
|
18
16
|
*/
|
|
19
17
|
pileupDisplay: pm.getDisplayType('LinearPileupDisplay').configSchema,
|
|
18
|
+
|
|
20
19
|
/**
|
|
21
20
|
* #slot
|
|
22
21
|
*/
|
|
@@ -32,6 +31,3 @@ const configModelFactory = (pm: PluginManager) => {
|
|
|
32
31
|
},
|
|
33
32
|
)
|
|
34
33
|
}
|
|
35
|
-
|
|
36
|
-
export type AlignmentsConfigModel = ReturnType<typeof configModelFactory>
|
|
37
|
-
export default configModelFactory
|