jbrowse-plugin-graphgenomeviewer 8.8.2 → 9.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +6 -6
- package/dist/chunks/{AddTrackWorkflow-FANMD3WB.js → AddTrackWorkflow-3PX4I4DX.js} +2 -2
- package/dist/chunks/{AddTrackWorkflow-FANMD3WB.js.map → AddTrackWorkflow-3PX4I4DX.js.map} +2 -2
- package/dist/chunks/{GbzBaseSyntenyAdapter-NAXISJUH.js → GbzBaseSyntenyAdapter-YUT5RT7G.js} +2 -2
- package/dist/chunks/{GbzBaseSyntenyAdapter-NAXISJUH.js.map → GbzBaseSyntenyAdapter-YUT5RT7G.js.map} +2 -2
- package/dist/chunks/{GraphGenomeView-PPOVN5LA.js → GraphGenomeView-XFKLX3VQ.js} +2 -2
- package/dist/chunks/{GraphTrackSettingsDialog-BRTDTVOJ.js → GraphTrackSettingsDialog-KOYYI2XH.js} +2 -2
- package/dist/chunks/{HighlightColorDialog-CGW7J3SK.js → HighlightColorDialog-F4IARMEO.js} +2 -2
- package/dist/chunks/LinearGraphDisplay-BZ44C6S3.js +2 -0
- package/dist/chunks/MinigraphBubbleAdapter-2KIWDIY7.js +2 -0
- package/dist/chunks/MinigraphBubbleAdapter-2KIWDIY7.js.map +7 -0
- package/dist/chunks/RgfaTabixAdapter-7QKNUHKX.js +2 -0
- package/dist/chunks/RgfaTabixAdapter-7QKNUHKX.js.map +7 -0
- package/dist/chunks/{TrackWarningsDialog-23WL6FPV.js → TrackWarningsDialog-V5YSUFRO.js} +1 -1
- package/dist/chunks/{TrackWarningsDialog-23WL6FPV.js.map → TrackWarningsDialog-V5YSUFRO.js.map} +1 -1
- package/dist/chunks/WalkFormsAdapter-5NDOULY6.js +2 -0
- package/dist/chunks/WalkFormsAdapter-5NDOULY6.js.map +7 -0
- package/dist/chunks/WalkTabixSyntenyAdapter-KI7ESKKP.js +2 -0
- package/dist/chunks/WalkTabixSyntenyAdapter-KI7ESKKP.js.map +7 -0
- package/dist/chunks/{chunk-RS274NAD.js → chunk-3HSJ7SAT.js} +2 -2
- package/dist/chunks/{chunk-RS274NAD.js.map → chunk-3HSJ7SAT.js.map} +1 -1
- package/dist/chunks/chunk-42VF2CSA.js +4 -0
- package/dist/chunks/chunk-42VF2CSA.js.map +7 -0
- package/dist/chunks/{chunk-LFQFVYNY.js → chunk-47UWMS4O.js} +3 -3
- package/dist/chunks/chunk-47UWMS4O.js.map +7 -0
- package/dist/chunks/{chunk-MWQGJP3J.js → chunk-7PVPO366.js} +2 -2
- package/dist/chunks/{chunk-MWQGJP3J.js.map → chunk-7PVPO366.js.map} +1 -1
- package/dist/chunks/{chunk-SKB4GSET.js → chunk-AQSLN3RH.js} +2 -2
- package/dist/chunks/{chunk-SKB4GSET.js.map → chunk-AQSLN3RH.js.map} +1 -1
- package/dist/chunks/chunk-AXUXLPO3.js +6 -0
- package/dist/chunks/chunk-AXUXLPO3.js.map +7 -0
- package/dist/chunks/chunk-CJ4VON23.js +2 -0
- package/dist/chunks/chunk-CJ4VON23.js.map +7 -0
- package/dist/chunks/{chunk-AGUEPVOR.js → chunk-FQI75MV6.js} +1 -1
- package/dist/chunks/{chunk-AGUEPVOR.js.map → chunk-FQI75MV6.js.map} +1 -1
- package/dist/chunks/{chunk-FM4T47WH.js → chunk-HFBUC6GF.js} +2 -2
- package/dist/chunks/{chunk-FM4T47WH.js.map → chunk-HFBUC6GF.js.map} +1 -1
- package/dist/chunks/chunk-I2XBA4H7.js +9 -0
- package/dist/chunks/{chunk-EFXNCI7R.js.map → chunk-I2XBA4H7.js.map} +4 -4
- package/dist/chunks/chunk-KIURR66K.js +3 -0
- package/dist/chunks/chunk-KIURR66K.js.map +7 -0
- package/dist/chunks/{chunk-CHLLRNBQ.js → chunk-LQSOJR7D.js} +2 -2
- package/dist/chunks/{chunk-CHLLRNBQ.js.map → chunk-LQSOJR7D.js.map} +1 -1
- package/dist/chunks/chunk-M6YSANSW.js +2 -0
- package/dist/chunks/chunk-M6YSANSW.js.map +7 -0
- package/dist/chunks/{chunk-ZWHXVFZF.js → chunk-MPUAUZSJ.js} +1 -1
- package/dist/chunks/{chunk-ZWHXVFZF.js.map → chunk-MPUAUZSJ.js.map} +1 -1
- package/dist/chunks/{chunk-5HDIVUAZ.js → chunk-N4ZFGZDN.js} +2 -2
- package/dist/chunks/{chunk-5HDIVUAZ.js.map → chunk-N4ZFGZDN.js.map} +1 -1
- package/dist/chunks/{chunk-KBOVZ3GI.js → chunk-OSEQDKL3.js} +1 -1
- package/dist/chunks/{chunk-KBOVZ3GI.js.map → chunk-OSEQDKL3.js.map} +1 -1
- package/dist/chunks/{chunk-NSQ4VXKR.js → chunk-P76SUZFP.js} +3 -3
- package/dist/chunks/{chunk-NSQ4VXKR.js.map → chunk-P76SUZFP.js.map} +3 -3
- package/dist/chunks/{chunk-HKGTCZOL.js → chunk-R34FRICP.js} +4 -4
- package/dist/chunks/{chunk-HKGTCZOL.js.map → chunk-R34FRICP.js.map} +2 -2
- package/dist/chunks/chunk-SXMUGZXP.js +2 -0
- package/dist/chunks/chunk-SXMUGZXP.js.map +7 -0
- package/dist/chunks/chunk-T7NMFIRW.js +2 -0
- package/dist/chunks/chunk-T7NMFIRW.js.map +7 -0
- package/dist/chunks/chunk-TLUGH4VW.js +2 -0
- package/dist/chunks/{chunk-LKD5NRWR.js → chunk-VAWAASUT.js} +1 -1
- package/dist/chunks/{chunk-LKD5NRWR.js.map → chunk-VAWAASUT.js.map} +1 -1
- package/dist/chunks/chunk-Y4TLRGAC.js +2 -0
- package/dist/chunks/{chunk-EEWEXRY6.js.map → chunk-Y4TLRGAC.js.map} +3 -3
- package/dist/chunks/chunk-ZXJRZKWF.js +2 -0
- package/dist/chunks/chunk-ZXJRZKWF.js.map +7 -0
- package/dist/chunks/{executeDiagonalize-HZFFXMG4.js → executeDiagonalize-ZMW5BLEJ.js} +2 -2
- package/dist/chunks/{executeDiagonalize-HZFFXMG4.js.map → executeDiagonalize-ZMW5BLEJ.js.map} +1 -1
- package/dist/chunks/{renderSvg-UKXPWKKV.js → renderSvg-DLJTA2B3.js} +2 -2
- package/dist/jbrowse-plugin-graphgenomeviewer.esm.js +5 -5
- package/dist/jbrowse-plugin-graphgenomeviewer.esm.js.map +4 -4
- package/package.json +12 -12
- package/src/GraphAddTrackWorkflow/AddTrackWorkflow.test.tsx +4 -7
- package/src/GraphAddTrackWorkflow/AddTrackWorkflow.tsx +1 -1
- package/src/GraphAddTrackWorkflow/buildTrackConfig.ts +9 -6
- package/src/GraphGenomeView/model.test.ts +21 -8
- package/src/GraphGenomeView/pane/loadActions.ts +7 -2
- package/src/GraphGenomeView/pane/walkRowViews.ts +1 -1
- package/src/GraphGenomeView/walkRowGroups.test.ts +14 -3
- package/src/GraphGenomeView/walkRowGroups.ts +0 -22
- package/src/GraphGenomeView/walkRowsCut.ts +1 -0
- package/src/MinigraphBubbleAdapter/MinigraphBubbleAdapter.ts +5 -2
- package/src/RgfaTabixAdapter/RgfaTabixAdapter.test.ts +1 -1
- package/src/RgfaTabixAdapter/RgfaTabixAdapter.ts +16 -16
- package/src/RgfaTabixAdapter/configSchema.ts +16 -12
- package/src/RgfaTabixAdapter/test_data/walks7/build.sh +27 -0
- package/src/RgfaTabixAdapter/test_data/walks7/follow.GRCh38.gfa +35 -0
- package/src/RgfaTabixAdapter/test_data/walks7/follow.GRCh38.walks.gz +0 -0
- package/src/RgfaTabixAdapter/test_data/walks7/follow.GRCh38.walks.gz.idx +3 -0
- package/src/RgfaTabixAdapter/test_data/walks7/header.GRCh38.gfa +22 -0
- package/src/RgfaTabixAdapter/test_data/walks7/header.GRCh38.walks.gz +0 -0
- package/src/RgfaTabixAdapter/test_data/walks7/header.GRCh38.walks.gz.idx +3 -0
- package/src/RgfaTabixAdapter/test_data/walks7/inversion.GRCh38.gfa +15 -0
- package/src/RgfaTabixAdapter/test_data/walks7/inversion.GRCh38.walks.gz +0 -0
- package/src/RgfaTabixAdapter/test_data/walks7/inversion.GRCh38.walks.gz.idx +3 -0
- package/src/RgfaTabixAdapter/test_data/walks7/lanepairs.GRCh38.gfa +19 -0
- package/src/RgfaTabixAdapter/test_data/walks7/lanepairs.GRCh38.walks.gz +0 -0
- package/src/RgfaTabixAdapter/test_data/walks7/lanepairs.GRCh38.walks.gz.idx +3 -0
- package/src/RgfaTabixAdapter/test_data/walks7/maxnode.GRCh38.gfa +11 -0
- package/src/RgfaTabixAdapter/test_data/walks7/maxnode.GRCh38.walks.gz +0 -0
- package/src/RgfaTabixAdapter/test_data/walks7/maxnode.GRCh38.walks.gz.idx +3 -0
- package/src/RgfaTabixAdapter/test_data/walks7/rejoin.GRCh38.walks.gz +0 -0
- package/src/RgfaTabixAdapter/test_data/walks7/rejoin.GRCh38.walks.gz.idx +3 -0
- package/src/RgfaTabixAdapter/test_data/walks7/skip.GRCh38.gfa +23 -0
- package/src/RgfaTabixAdapter/test_data/walks7/skip.GRCh38.walks.gz +0 -0
- package/src/RgfaTabixAdapter/test_data/walks7/skip.GRCh38.walks.gz.idx +3 -0
- package/src/RgfaTabixAdapter/test_data/walks7/skipfollow.GRCh38.gfa +50 -0
- package/src/RgfaTabixAdapter/test_data/walks7/skipfollow.GRCh38.walks.gz +0 -0
- package/src/RgfaTabixAdapter/test_data/walks7/skipfollow.GRCh38.walks.gz.idx +3 -0
- package/src/RgfaTabixAdapter/test_data/walks7/skipinv.GRCh38.gfa +45 -0
- package/src/RgfaTabixAdapter/test_data/walks7/skipinv.GRCh38.walks.gz +0 -0
- package/src/RgfaTabixAdapter/test_data/walks7/skipinv.GRCh38.walks.gz.idx +3 -0
- package/src/RgfaTabixAdapter/test_data/walks7/twopart.GRCh38.gfa +22 -0
- package/src/RgfaTabixAdapter/test_data/walks7/twopart.GRCh38.walks.gz +0 -0
- package/src/RgfaTabixAdapter/test_data/walks7/twopart.GRCh38.walks.gz.idx +3 -0
- package/src/RgfaTabixAdapter/walkFiles.test.ts +131 -119
- package/src/RgfaTabixAdapter/walkReader.ts +36 -49
- package/src/WalkFormsAdapter/WalkFormsAdapter.test.ts +7 -28
- package/src/WalkFormsAdapter/WalkFormsAdapter.ts +4 -29
- package/src/WalkFormsAdapter/configSchema.ts +13 -13
- package/src/WalkFormsAdapter/formRows.test.ts +0 -7
- package/src/WalkFormsAdapter/formRows.ts +0 -12
- package/src/WalkFormsAdapter/formsMenu.test.ts +1 -1
- package/src/WalkTabixSyntenyAdapter/WalkTabixSyntenyAdapter.test.ts +54 -96
- package/src/WalkTabixSyntenyAdapter/WalkTabixSyntenyAdapter.ts +56 -152
- package/src/WalkTabixSyntenyAdapter/configSchema.ts +15 -16
- package/src/WalkTabixSyntenyAdapter/gbzParity.test.ts +5 -6
- package/src/WalkTabixSyntenyAdapter/walkLanes.ts +48 -142
- package/src/graphTrackConfig.test.ts +1 -1
- package/src/graphTrackDefaults/graphTrackDefaults.test.ts +7 -10
- package/src/launchFromGraph/syntenyTracks.test.ts +1 -1
- package/src/locationName.ts +2 -2
- package/src/panSNAliases/panSNAliases.test.ts +4 -6
- package/src/panSNTabix.test.ts +3 -23
- package/src/panSNTabix.ts +58 -34
- package/src/synteny/laneZoomNotice.test.ts +1 -0
- package/src/version.ts +1 -1
- package/dist/chunks/LinearGraphDisplay-2AZ7X7TK.js +0 -2
- package/dist/chunks/MinigraphBubbleAdapter-NR3MMUUG.js +0 -2
- package/dist/chunks/MinigraphBubbleAdapter-NR3MMUUG.js.map +0 -7
- package/dist/chunks/RgfaTabixAdapter-JDQLVQVP.js +0 -2
- package/dist/chunks/RgfaTabixAdapter-JDQLVQVP.js.map +0 -7
- package/dist/chunks/WalkFormsAdapter-YMQC3NLG.js +0 -2
- package/dist/chunks/WalkFormsAdapter-YMQC3NLG.js.map +0 -7
- package/dist/chunks/WalkTabixSyntenyAdapter-PBWN53PE.js +0 -2
- package/dist/chunks/WalkTabixSyntenyAdapter-PBWN53PE.js.map +0 -7
- package/dist/chunks/chunk-6VNDP3UB.js +0 -2
- package/dist/chunks/chunk-6VNDP3UB.js.map +0 -7
- package/dist/chunks/chunk-A27SW7X7.js +0 -2
- package/dist/chunks/chunk-A27SW7X7.js.map +0 -7
- package/dist/chunks/chunk-APSXG7SV.js +0 -2
- package/dist/chunks/chunk-DEWVJ57F.js +0 -4
- package/dist/chunks/chunk-DEWVJ57F.js.map +0 -7
- package/dist/chunks/chunk-EEWEXRY6.js +0 -2
- package/dist/chunks/chunk-EFXNCI7R.js +0 -9
- package/dist/chunks/chunk-EH5OCKSE.js +0 -3
- package/dist/chunks/chunk-EH5OCKSE.js.map +0 -7
- package/dist/chunks/chunk-GLSUAMGV.js +0 -3
- package/dist/chunks/chunk-GLSUAMGV.js.map +0 -7
- package/dist/chunks/chunk-LFQFVYNY.js.map +0 -7
- package/dist/chunks/chunk-QUDJ7AM3.js +0 -2
- package/dist/chunks/chunk-QUDJ7AM3.js.map +0 -7
- package/dist/chunks/chunk-T7LVVBTT.js +0 -2
- package/dist/chunks/chunk-T7LVVBTT.js.map +0 -7
- package/dist/chunks/chunk-ZBFIEBO6.js +0 -2
- package/dist/chunks/chunk-ZBFIEBO6.js.map +0 -7
- package/src/RgfaTabixAdapter/test_data/walks1_header.GRCh38.walks.bed.gz +0 -0
- package/src/RgfaTabixAdapter/test_data/walks1_header.GRCh38.walks.bed.gz.tbi +0 -0
- package/src/RgfaTabixAdapter/test_data/walks5_follow.GRCh38.walks.bed.gz +0 -0
- package/src/RgfaTabixAdapter/test_data/walks5_follow.GRCh38.walks.bed.gz.tbi +0 -0
- package/src/RgfaTabixAdapter/test_data/walks5_header.GRCh38.walks.bed.gz +0 -0
- package/src/RgfaTabixAdapter/test_data/walks5_header.GRCh38.walks.bed.gz.tbi +0 -0
- package/src/RgfaTabixAdapter/test_data/walks5_inversion.GRCh38.walks.bed.gz +0 -0
- package/src/RgfaTabixAdapter/test_data/walks5_inversion.GRCh38.walks.bed.gz.tbi +0 -0
- package/src/RgfaTabixAdapter/test_data/walks5_lanepairs.GRCh38.walks.bed.gz +0 -0
- package/src/RgfaTabixAdapter/test_data/walks5_lanepairs.GRCh38.walks.bed.gz.tbi +0 -0
- package/src/RgfaTabixAdapter/test_data/walks5_maxnode.GRCh38.walks.bed.gz +0 -0
- package/src/RgfaTabixAdapter/test_data/walks5_maxnode.GRCh38.walks.bed.gz.tbi +0 -0
- package/src/RgfaTabixAdapter/test_data/walks5_rejoin.GRCh38.walks.bed.gz +0 -0
- package/src/RgfaTabixAdapter/test_data/walks5_rejoin.GRCh38.walks.bed.gz.tbi +0 -0
- package/src/RgfaTabixAdapter/test_data/walks5_skip.GRCh38.walks.bed.gz +0 -0
- package/src/RgfaTabixAdapter/test_data/walks5_skip.GRCh38.walks.bed.gz.tbi +0 -0
- package/src/RgfaTabixAdapter/test_data/walks5_skipfollow.GRCh38.walks.bed.gz +0 -0
- package/src/RgfaTabixAdapter/test_data/walks5_skipfollow.GRCh38.walks.bed.gz.tbi +0 -0
- package/src/RgfaTabixAdapter/test_data/walks5_skipinv.GRCh38.walks.bed.gz +0 -0
- package/src/RgfaTabixAdapter/test_data/walks5_skipinv.GRCh38.walks.bed.gz.tbi +0 -0
- package/src/RgfaTabixAdapter/test_data/walks5_twopart.GRCh38.walks.bed.gz +0 -0
- package/src/RgfaTabixAdapter/test_data/walks5_twopart.GRCh38.walks.bed.gz.tbi +0 -0
- /package/dist/chunks/{GraphGenomeView-PPOVN5LA.js.map → GraphGenomeView-XFKLX3VQ.js.map} +0 -0
- /package/dist/chunks/{GraphTrackSettingsDialog-BRTDTVOJ.js.map → GraphTrackSettingsDialog-KOYYI2XH.js.map} +0 -0
- /package/dist/chunks/{HighlightColorDialog-CGW7J3SK.js.map → HighlightColorDialog-F4IARMEO.js.map} +0 -0
- /package/dist/chunks/{LinearGraphDisplay-2AZ7X7TK.js.map → LinearGraphDisplay-BZ44C6S3.js.map} +0 -0
- /package/dist/chunks/{chunk-APSXG7SV.js.map → chunk-TLUGH4VW.js.map} +0 -0
- /package/dist/chunks/{renderSvg-UKXPWKKV.js.map → renderSvg-DLJTA2B3.js.map} +0 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "jbrowse-plugin-graphgenomeviewer",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "9.0.0",
|
|
4
4
|
"description": "JBrowse 2 graph genome (pangenome) view: rGFA reference-anchored layouts, the Bandage force-directed engine, and haplotype lanes read from a gbz-base database",
|
|
5
5
|
"license": "GPL-3.0-or-later",
|
|
6
6
|
"repository": {
|
|
@@ -28,23 +28,23 @@
|
|
|
28
28
|
"@gmod/bgzf-filehandle": "^6.8.2",
|
|
29
29
|
"@gmod/gbz-base": "^7.4.1",
|
|
30
30
|
"@gmod/tabix": "^3.13.1",
|
|
31
|
-
"@jbrowse/cigar-utils": "5.0.0-beta.
|
|
32
|
-
"@jbrowse/core": "5.0.0-beta.
|
|
33
|
-
"@jbrowse/display-kit": "5.0.0-beta.
|
|
34
|
-
"@jbrowse/display-ui": "5.0.0-beta.
|
|
35
|
-
"@jbrowse/graph-walks": "^
|
|
36
|
-
"@jbrowse/render-core": "5.0.0-beta.
|
|
37
|
-
"@jbrowse/synteny-core": "5.0.0-beta.
|
|
31
|
+
"@jbrowse/cigar-utils": "5.0.0-beta.20",
|
|
32
|
+
"@jbrowse/core": "5.0.0-beta.20",
|
|
33
|
+
"@jbrowse/display-kit": "5.0.0-beta.20",
|
|
34
|
+
"@jbrowse/display-ui": "5.0.0-beta.20",
|
|
35
|
+
"@jbrowse/graph-walks": "^6.0.0",
|
|
36
|
+
"@jbrowse/render-core": "5.0.0-beta.20",
|
|
37
|
+
"@jbrowse/synteny-core": "5.0.0-beta.20"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
40
|
"@emotion/react": "^11.14.0",
|
|
41
41
|
"@emotion/styled": "^11.14.1",
|
|
42
42
|
"@eslint/js": "^10.0.1",
|
|
43
|
-
"@jbrowse/bandage-core": "^
|
|
44
|
-
"@jbrowse/cli": "
|
|
43
|
+
"@jbrowse/bandage-core": "^13.1.0",
|
|
44
|
+
"@jbrowse/cli": "5.0.0-beta.20",
|
|
45
45
|
"@jbrowse/mobx-state-tree": "^6.10.0",
|
|
46
|
-
"@jbrowse/plugin-linear-genome-view": "5.0.0-beta.
|
|
47
|
-
"@jbrowse/plugin-variants": "5.0.0-beta.
|
|
46
|
+
"@jbrowse/plugin-linear-genome-view": "5.0.0-beta.20",
|
|
47
|
+
"@jbrowse/plugin-variants": "5.0.0-beta.20",
|
|
48
48
|
"@mui/icons-material": "^9.5.0",
|
|
49
49
|
"@mui/material": "^9.5.0",
|
|
50
50
|
"@mui/system": "^9.5.0",
|
|
@@ -81,7 +81,7 @@ test('a walk file adds a track with lanes, cut for the haplotypes typed', async
|
|
|
81
81
|
added.length = 0
|
|
82
82
|
picks.set(
|
|
83
83
|
GRAPH_FILE_FIELDS.WalkTabixSyntenyAdapter,
|
|
84
|
-
'https://example.com/chr22.GRCh38.walks.
|
|
84
|
+
'https://example.com/chr22.GRCh38.walks.gz',
|
|
85
85
|
)
|
|
86
86
|
render(
|
|
87
87
|
<GraphAddTrackWidget
|
|
@@ -107,15 +107,12 @@ test('a walk file adds a track with lanes, cut for the haplotypes typed', async
|
|
|
107
107
|
expect(added[0]!.adapter).toEqual({
|
|
108
108
|
type: 'WalkTabixSyntenyAdapter',
|
|
109
109
|
walksLocation: {
|
|
110
|
-
uri: 'https://example.com/chr22.GRCh38.walks.
|
|
110
|
+
uri: 'https://example.com/chr22.GRCh38.walks.gz',
|
|
111
111
|
locationType: 'UriLocation',
|
|
112
112
|
},
|
|
113
113
|
walksIndex: {
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
uri: 'https://example.com/chr22.GRCh38.walks.bed.gz.tbi',
|
|
117
|
-
locationType: 'UriLocation',
|
|
118
|
-
},
|
|
114
|
+
uri: 'https://example.com/chr22.GRCh38.walks.gz.idx',
|
|
115
|
+
locationType: 'UriLocation',
|
|
119
116
|
},
|
|
120
117
|
assemblyNameToPanSN: { hg38: 'GRCh38' },
|
|
121
118
|
defaultHaplotypes: ['HG002', 'HG00733#1'],
|
|
@@ -171,7 +171,7 @@ const GraphAddTrackWidget = observer(function GraphAddTrackWidget({
|
|
|
171
171
|
gbz
|
|
172
172
|
? "Optional. The graph's sample for this assembly, e.g. GRCh38 where the assembly is hg38; leave blank when they share a name or the graph has one reference sample"
|
|
173
173
|
: walks
|
|
174
|
-
? 'Optional. The PanSN sample this assembly is in the graph; blank takes it from the file name, GRCh38 in chr22.GRCh38.walks.
|
|
174
|
+
? 'Optional. The PanSN sample this assembly is in the graph; blank takes it from the file name, GRCh38 in chr22.GRCh38.walks.gz'
|
|
175
175
|
: "Optional. The PanSN prefix the graph gives this assembly, e.g. GRCh38 for HPRC's GRCh38#0#chr1; leave blank when the graph's stable names are bare"
|
|
176
176
|
}
|
|
177
177
|
placeholder="GRCh38"
|
|
@@ -25,14 +25,14 @@ export type GraphFileChoice =
|
|
|
25
25
|
|
|
26
26
|
export const GRAPH_FILE_LABELS: Record<GraphFileChoice, string> = {
|
|
27
27
|
RgfaTabixAdapter: 'Indexed GFA (gfa-to-tabix .segs.bed.gz or .graph.bed.gz)',
|
|
28
|
-
RgfaTabixWalks: 'Haplotype walks without lanes (.walks.
|
|
29
|
-
WalkTabixSyntenyAdapter: 'Haplotype walks (.walks.
|
|
28
|
+
RgfaTabixWalks: 'Haplotype walks without lanes (.walks.gz)',
|
|
29
|
+
WalkTabixSyntenyAdapter: 'Haplotype walks (.walks.gz)',
|
|
30
30
|
GbzBaseSyntenyAdapter: 'GBZ database (.gbz.db)',
|
|
31
31
|
MinigraphBubbleAdapter: 'Minigraph bubbles (tabix BED)',
|
|
32
32
|
}
|
|
33
33
|
|
|
34
34
|
const WALKS_FIELD =
|
|
35
|
-
'Path to a walk file (<prefix>.<sample>.walks.
|
|
35
|
+
'Path to a walk file (<prefix>.<sample>.walks.gz from gfa-to-tabix --walks, for the sample this assembly is)'
|
|
36
36
|
|
|
37
37
|
export const GRAPH_FILE_FIELDS: Record<GraphFileChoice, string> = {
|
|
38
38
|
RgfaTabixAdapter:
|
|
@@ -46,10 +46,13 @@ export const GRAPH_FILE_FIELDS: Record<GraphFileChoice, string> = {
|
|
|
46
46
|
const TABIX_INDEX_FIELD =
|
|
47
47
|
'Path to tabix index (optional; the sibling .tbi is assumed, a .csi is recognised by name)'
|
|
48
48
|
|
|
49
|
+
const WALKS_INDEX_FIELD =
|
|
50
|
+
"Path to the walk file's directory (optional; the sibling .idx is assumed)"
|
|
51
|
+
|
|
49
52
|
export const GRAPH_INDEX_FIELDS: Record<GraphFileChoice, string> = {
|
|
50
53
|
RgfaTabixAdapter: TABIX_INDEX_FIELD,
|
|
51
|
-
RgfaTabixWalks:
|
|
52
|
-
WalkTabixSyntenyAdapter:
|
|
54
|
+
RgfaTabixWalks: WALKS_INDEX_FIELD,
|
|
55
|
+
WalkTabixSyntenyAdapter: WALKS_INDEX_FIELD,
|
|
53
56
|
GbzBaseSyntenyAdapter:
|
|
54
57
|
'Path to the haplotype index (optional; graph.haplotype-index.db beside the database is assumed)',
|
|
55
58
|
MinigraphBubbleAdapter: TABIX_INDEX_FIELD,
|
|
@@ -183,7 +186,7 @@ export function buildAdapterConfig({
|
|
|
183
186
|
return {
|
|
184
187
|
type: choice === 'RgfaTabixWalks' ? 'RgfaTabixAdapter' : choice,
|
|
185
188
|
walksLocation: loc,
|
|
186
|
-
walksIndex:
|
|
189
|
+
walksIndex: indexLoc ?? sibling(loc, '.idx'),
|
|
187
190
|
...referencePanSN(assembly, sample, walkFileSample(loc)),
|
|
188
191
|
...(haplotypes.length > 0 ? { defaultHaplotypes: haplotypes } : {}),
|
|
189
192
|
}
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
// "the submenu is called something else".
|
|
5
5
|
|
|
6
6
|
import { spreadFor } from '@jbrowse/bandage-core/bubbleSpreads'
|
|
7
|
+
import { departureTable } from '@jbrowse/bandage-core/gfa/departures'
|
|
7
8
|
import { rowLabelBox } from '@jbrowse/bandage-core/graphLabels'
|
|
8
9
|
import { LEGEND_INSET_PX } from '@jbrowse/bandage-core/labelLayout'
|
|
9
10
|
import {
|
|
@@ -5166,6 +5167,7 @@ const WALK_TABLES: GraphTables = {
|
|
|
5166
5167
|
steps: Int32Array.of(0, 1, 3, 0, 2, 3, 0, 1, 3),
|
|
5167
5168
|
reversed: new Uint8Array(9),
|
|
5168
5169
|
},
|
|
5170
|
+
departures: departureTable(),
|
|
5169
5171
|
}
|
|
5170
5172
|
|
|
5171
5173
|
describe('a walk-file cut', () => {
|
|
@@ -5229,8 +5231,9 @@ describe('a walk-file cut', () => {
|
|
|
5229
5231
|
)
|
|
5230
5232
|
})
|
|
5231
5233
|
|
|
5232
|
-
// HG004#1
|
|
5233
|
-
|
|
5234
|
+
// HG004#1 leaves the reference at 1500 and rejoins it at 4500 with no step
|
|
5235
|
+
// between, so its row is a hairline of no bp
|
|
5236
|
+
test("a stepless row's hairline takes the pointer along its length", async () => {
|
|
5234
5237
|
mockRpcCall.mockImplementation(
|
|
5235
5238
|
(_sid: unknown, method: string, args: { opts: SubgraphCutOptions }) =>
|
|
5236
5239
|
method === 'GetSubgraph'
|
|
@@ -5238,11 +5241,21 @@ describe('a walk-file cut', () => {
|
|
|
5238
5241
|
walkCutFor(
|
|
5239
5242
|
{
|
|
5240
5243
|
...WALK_TABLES,
|
|
5241
|
-
|
|
5242
|
-
|
|
5243
|
-
|
|
5244
|
-
|
|
5245
|
-
|
|
5244
|
+
departures: departureTable([
|
|
5245
|
+
{
|
|
5246
|
+
name: 'HG004#1#chr1',
|
|
5247
|
+
hapStart: 500,
|
|
5248
|
+
ownBp: 0,
|
|
5249
|
+
missingBp: 0,
|
|
5250
|
+
leavePos: 1500,
|
|
5251
|
+
leaveReversed: false,
|
|
5252
|
+
leavePasses: 1,
|
|
5253
|
+
rejoinPos: 4500,
|
|
5254
|
+
rejoinReversed: false,
|
|
5255
|
+
rejoinPasses: 1,
|
|
5256
|
+
fromSteps: false,
|
|
5257
|
+
},
|
|
5258
|
+
]),
|
|
5246
5259
|
},
|
|
5247
5260
|
TEST_REGION,
|
|
5248
5261
|
args.opts.walkRows,
|
|
@@ -5253,7 +5266,7 @@ describe('a walk-file cut', () => {
|
|
|
5253
5266
|
const model = restoredView({ layoutMode: 'walkrows' })
|
|
5254
5267
|
await model.load()
|
|
5255
5268
|
const rows = model.walkRowList
|
|
5256
|
-
const i = rows.findIndex(r => r.
|
|
5269
|
+
const i = rows.findIndex(r => r.stepless)
|
|
5257
5270
|
const row = rows[i]!
|
|
5258
5271
|
const run = row.runs[0]!
|
|
5259
5272
|
expect(row.bp).toBe(0)
|
|
@@ -24,6 +24,7 @@ import {
|
|
|
24
24
|
statusMessageText,
|
|
25
25
|
} from '@jbrowse/core/util'
|
|
26
26
|
import { openLocation } from '@jbrowse/core/util/io'
|
|
27
|
+
import { parseSamplesTsv } from '@jbrowse/core/util/samplesTsv'
|
|
27
28
|
import { flow, getEnv, isAlive } from '@jbrowse/mobx-state-tree'
|
|
28
29
|
|
|
29
30
|
import {
|
|
@@ -44,7 +45,6 @@ import {
|
|
|
44
45
|
tubeMapPanelGroups,
|
|
45
46
|
withTubeMapPanels,
|
|
46
47
|
} from '../tubeMapPanels'
|
|
47
|
-
import { parseSamplesTsv } from '../walkRowGroups'
|
|
48
48
|
import { walkRowsGraph } from '../walkRowsCut.ts'
|
|
49
49
|
|
|
50
50
|
import type { SubgraphCutOptions, SubgraphRegion } from '../../GetSubgraph'
|
|
@@ -898,7 +898,12 @@ export const withLoadActions = withEngineSettings.actions(self => {
|
|
|
898
898
|
getEnv(self).pluginManager,
|
|
899
899
|
).readFile('utf8')) as string
|
|
900
900
|
if (isAlive(self) && key === sampleTableKey) {
|
|
901
|
-
self.walkRowSampleTable = parseSamplesTsv(
|
|
901
|
+
self.walkRowSampleTable = parseSamplesTsv(
|
|
902
|
+
text,
|
|
903
|
+
undefined,
|
|
904
|
+
'the samples table',
|
|
905
|
+
'the walks',
|
|
906
|
+
).sources
|
|
902
907
|
}
|
|
903
908
|
} catch (e) {
|
|
904
909
|
if (isAlive(self) && key === sampleTableKey) {
|
|
@@ -109,7 +109,7 @@ export const withWalkRowViews = withLaunchViews
|
|
|
109
109
|
if (!bars || !self.showGenes) {
|
|
110
110
|
return undefined
|
|
111
111
|
}
|
|
112
|
-
const notDeleted = bars.rows.filter(row => row.
|
|
112
|
+
const notDeleted = bars.rows.filter(row => !row.stepless)
|
|
113
113
|
const reads = notDeleted.flatMap(row => {
|
|
114
114
|
const location = row.axis ? self.rowLocation(row, row.axis) : undefined
|
|
115
115
|
const assembly = location?.assembly
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
+
import { parseSamplesTsv } from '@jbrowse/core/util/samplesTsv'
|
|
2
|
+
|
|
1
3
|
import {
|
|
2
4
|
SECTION_HEADER_PX,
|
|
3
5
|
groupByOf,
|
|
4
6
|
groupWalkRows,
|
|
5
7
|
metadataColumns,
|
|
6
|
-
parseSamplesTsv,
|
|
7
8
|
sectionIndexOf,
|
|
8
9
|
sectionPlacement,
|
|
9
10
|
} from './walkRowGroups'
|
|
@@ -19,7 +20,12 @@ const TSV = [
|
|
|
19
20
|
].join('\r\n')
|
|
20
21
|
|
|
21
22
|
test('a samples TSV keys rows by its first column, the first of a repeat kept', () => {
|
|
22
|
-
const rows = parseSamplesTsv(
|
|
23
|
+
const rows = parseSamplesTsv(
|
|
24
|
+
TSV,
|
|
25
|
+
undefined,
|
|
26
|
+
'samples.tsv',
|
|
27
|
+
'the walks',
|
|
28
|
+
).sources
|
|
23
29
|
expect(rows.map(r => r.name)).toEqual(['GRCh38', 'A', 'B', 'C#1'])
|
|
24
30
|
expect(rows[1]).toEqual({
|
|
25
31
|
name: 'A',
|
|
@@ -48,7 +54,12 @@ test('the persisted setting reads a bare field or the object, anything else as u
|
|
|
48
54
|
})
|
|
49
55
|
|
|
50
56
|
describe('grouping', () => {
|
|
51
|
-
const table = parseSamplesTsv(
|
|
57
|
+
const table = parseSamplesTsv(
|
|
58
|
+
TSV,
|
|
59
|
+
undefined,
|
|
60
|
+
'samples.tsv',
|
|
61
|
+
'the walks',
|
|
62
|
+
).sources
|
|
52
63
|
const rows = [
|
|
53
64
|
{ sample: 'B', label: 'B#1' },
|
|
54
65
|
{ sample: 'D', label: 'D#1' },
|
|
@@ -30,28 +30,6 @@ export interface WalkRowSection {
|
|
|
30
30
|
|
|
31
31
|
export const SECTION_HEADER_PX = 16
|
|
32
32
|
|
|
33
|
-
// A samples TSV as core's samplesTsv reads one: a header row, the sample's
|
|
34
|
-
// name in the first column, the first row of a repeated name kept. Hosts
|
|
35
|
-
// re-export that module only from v5.0.0-beta.11, so it is read here.
|
|
36
|
-
export function parseSamplesTsv(text: string): SampleRow[] {
|
|
37
|
-
const [head = '', ...lines] = text.split(/\r\n|\r|\n/)
|
|
38
|
-
const columns = head.split('\t').slice(1)
|
|
39
|
-
const rows = new Map<string, SampleRow>()
|
|
40
|
-
for (const line of lines) {
|
|
41
|
-
if (!line) {
|
|
42
|
-
continue
|
|
43
|
-
}
|
|
44
|
-
const [name = '', ...values] = line.split('\t')
|
|
45
|
-
if (name && !rows.has(name)) {
|
|
46
|
-
rows.set(name, {
|
|
47
|
-
...Object.fromEntries(columns.map((c, i) => [c, values[i] ?? ''])),
|
|
48
|
-
name,
|
|
49
|
-
})
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
return [...rows.values()]
|
|
53
|
-
}
|
|
54
|
-
|
|
55
33
|
export function metadataColumns(rows: SampleRow[] | undefined) {
|
|
56
34
|
const columns = new Set<string>()
|
|
57
35
|
for (const row of rows ?? []) {
|
|
@@ -29,6 +29,7 @@ export function walkRowsGraph(
|
|
|
29
29
|
steps: w.steps.subarray(0, first),
|
|
30
30
|
reversed: w.reversed.subarray(0, first),
|
|
31
31
|
},
|
|
32
|
+
departures: cut.departures,
|
|
32
33
|
}
|
|
33
34
|
const graph = loadGraph(light, name, { referencePath })
|
|
34
35
|
const depth = new Int32Array(cut.nodes.names.length)
|
|
@@ -7,7 +7,7 @@ import { BaseFeatureDataAdapter } from '@jbrowse/core/data_adapters/BaseAdapter'
|
|
|
7
7
|
import { SimpleFeature, updateStatus } from '@jbrowse/core/util'
|
|
8
8
|
import { ObservableCreate } from '@jbrowse/core/util/rxjs'
|
|
9
9
|
|
|
10
|
-
import { PanSNRefNames, openTabixSlot } from '../panSNTabix.ts'
|
|
10
|
+
import { PanSNRefNames, openTabixSlot, tabixRefNames } from '../panSNTabix.ts'
|
|
11
11
|
import { getLines } from '../tabixRange.ts'
|
|
12
12
|
|
|
13
13
|
import type { MinigraphBubbleAdapterConfig } from './configSchema.ts'
|
|
@@ -23,7 +23,10 @@ export default class MinigraphBubbleAdapter extends BaseFeatureDataAdapter<Minig
|
|
|
23
23
|
// Minigraph-Cactus graph produces PanSN rows (`GRCh38#0#chr6`) where a plain
|
|
24
24
|
// minigraph graph produces bare ones (`chr6`). Same resolution the segment
|
|
25
25
|
// adapter does, through the same `assemblyNameToPanSN` slot.
|
|
26
|
-
private readonly refNames = new PanSNRefNames(
|
|
26
|
+
private readonly refNames = new PanSNRefNames(
|
|
27
|
+
tabixRefNames(this.bubbles),
|
|
28
|
+
this,
|
|
29
|
+
)
|
|
27
30
|
|
|
28
31
|
async getRefNames(opts: BaseOptions = {}) {
|
|
29
32
|
return this.refNames.assemblyRefNames(opts)
|
|
@@ -478,7 +478,7 @@ test("the adapter type expands the uri shorthand with the schema's preprocessor"
|
|
|
478
478
|
const { normalizeSnapshot } = pluginManager.getAdapterType('RgfaTabixAdapter')
|
|
479
479
|
expect(normalizeSnapshot?.({ uri: 'hprc', walksUri: 'w' })).toMatchObject({
|
|
480
480
|
segmentsLocation: { uri: 'hprc.segs.bed.gz' },
|
|
481
|
-
walksLocation: { uri: 'w.walks.
|
|
481
|
+
walksLocation: { uri: 'w.walks.gz' },
|
|
482
482
|
})
|
|
483
483
|
})
|
|
484
484
|
|
|
@@ -10,7 +10,12 @@ import {
|
|
|
10
10
|
} from '@jbrowse/graph-walks'
|
|
11
11
|
|
|
12
12
|
import { locationIsSet } from '../locationName.ts'
|
|
13
|
-
import {
|
|
13
|
+
import {
|
|
14
|
+
PanSNRefNames,
|
|
15
|
+
openTabixSlot,
|
|
16
|
+
openWalkReader,
|
|
17
|
+
tabixRefNames,
|
|
18
|
+
} from '../panSNTabix.ts'
|
|
14
19
|
import { getLines } from '../tabixRange.ts'
|
|
15
20
|
import { WalkIndex } from './walkReader.ts'
|
|
16
21
|
|
|
@@ -46,10 +51,7 @@ export default class RgfaTabixAdapter extends BaseFeatureDataAdapter<RgfaTabixAd
|
|
|
46
51
|
const walksLocation: FileLocation = this.getConf('walksLocation')
|
|
47
52
|
const walks =
|
|
48
53
|
under.length === 0 && locationIsSet(walksLocation)
|
|
49
|
-
? new WalkIndex(
|
|
50
|
-
openTabixSlot(this, ['walksLocation'], ['walksIndex']),
|
|
51
|
-
this,
|
|
52
|
-
)
|
|
54
|
+
? new WalkIndex(openWalkReader(this), this)
|
|
53
55
|
: undefined
|
|
54
56
|
const graphLocation: FileLocation =
|
|
55
57
|
under.length === 0
|
|
@@ -64,7 +66,10 @@ export default class RgfaTabixAdapter extends BaseFeatureDataAdapter<RgfaTabixAd
|
|
|
64
66
|
return {
|
|
65
67
|
graph,
|
|
66
68
|
walks,
|
|
67
|
-
refNames: new PanSNRefNames(
|
|
69
|
+
refNames: new PanSNRefNames(
|
|
70
|
+
walks?.source ?? tabixRefNames(graph),
|
|
71
|
+
this,
|
|
72
|
+
),
|
|
68
73
|
}
|
|
69
74
|
}
|
|
70
75
|
const segments = openTabixSlot(
|
|
@@ -81,7 +86,10 @@ export default class RgfaTabixAdapter extends BaseFeatureDataAdapter<RgfaTabixAd
|
|
|
81
86
|
segments,
|
|
82
87
|
links,
|
|
83
88
|
walks,
|
|
84
|
-
refNames: new PanSNRefNames(
|
|
89
|
+
refNames: new PanSNRefNames(
|
|
90
|
+
walks?.source ?? tabixRefNames(segments),
|
|
91
|
+
this,
|
|
92
|
+
),
|
|
85
93
|
}
|
|
86
94
|
}
|
|
87
95
|
|
|
@@ -105,16 +113,8 @@ export default class RgfaTabixAdapter extends BaseFeatureDataAdapter<RgfaTabixAd
|
|
|
105
113
|
return this.fine.refNames.assemblyRefNames(opts)
|
|
106
114
|
}
|
|
107
115
|
|
|
108
|
-
// getFeatures reads a walk file from the chunk before the window
|
|
109
116
|
async getRegionByteSize(regions: Region[], opts: BaseOptions = {}) {
|
|
110
|
-
|
|
111
|
-
return refNames.regionBytes(
|
|
112
|
-
regions,
|
|
113
|
-
opts,
|
|
114
|
-
walks &&
|
|
115
|
-
((refName, { start, end }) =>
|
|
116
|
-
walks.reader.queryStart(start, { ...opts, refName, end })),
|
|
117
|
-
)
|
|
117
|
+
return this.fine.refNames.regionBytes(regions, opts)
|
|
118
118
|
}
|
|
119
119
|
|
|
120
120
|
public async hasDataForRefName() {
|
|
@@ -32,10 +32,11 @@ import type { Instance } from '@jbrowse/mobx-state-tree'
|
|
|
32
32
|
* (`foldBelowBp`), from which the plugin derives that zoom.
|
|
33
33
|
*
|
|
34
34
|
* `walksUri` takes the prefix of a walk file in place of `uri`, and resolves
|
|
35
|
-
* `<walksUri>.walks.
|
|
36
|
-
* writes one per reference sample, so a
|
|
37
|
-
* `<prefix>.<sample>`. The adapter reads walk format
|
|
38
|
-
* writes from
|
|
35
|
+
* `<walksUri>.walks.gz` and its directory `<walksUri>.walks.gz.idx`.
|
|
36
|
+
* `gfa-to-tabix --walks -o <prefix>` writes one per reference sample, so a
|
|
37
|
+
* track names one as `<prefix>.<sample>`. The adapter reads walk format 7,
|
|
38
|
+
* which gfa-to-tabix writes from 4.0, through @jbrowse/graph-walks. Such a
|
|
39
|
+
* graph's cut carries
|
|
39
40
|
* the haplotypes' walks, and `defaultHaplotypes` names the ones it is cut for
|
|
40
41
|
* until the user picks others.
|
|
41
42
|
*
|
|
@@ -52,7 +53,7 @@ import type { Instance } from '@jbrowse/mobx-state-tree'
|
|
|
52
53
|
* ```js
|
|
53
54
|
* {
|
|
54
55
|
* type: 'RgfaTabixAdapter',
|
|
55
|
-
* walksUri: 'https://jbrowse.org/demos/hprc/hprc-v2.1-mc-grch38
|
|
56
|
+
* walksUri: 'https://jbrowse.org/demos/hprc/hprc-v2.1-mc-grch38.GRCh38',
|
|
56
57
|
* assemblyNameToPanSN: { hg38: 'GRCh38' },
|
|
57
58
|
* defaultHaplotypes: ['HG002', 'HG00733', 'HG02257', 'NA19240'],
|
|
58
59
|
* }
|
|
@@ -195,15 +196,18 @@ const RgfaTabixAdapter = ConfigurationSchema(
|
|
|
195
196
|
graphIndex: tabixIndexSchema('RgfaGraphIndex'),
|
|
196
197
|
/**
|
|
197
198
|
* #slot
|
|
198
|
-
* a `gfa-to-tabix --walks` file in walk format
|
|
199
|
-
* the reference's path, the ways haplotypes leave it and each
|
|
200
|
-
* piece
|
|
199
|
+
* a `gfa-to-tabix --walks` file in walk format 7: per tile of a
|
|
200
|
+
* reference, the reference's path, the ways haplotypes leave it and each
|
|
201
|
+
* haplotype's piece, and every departure from the reference. Unset means
|
|
202
|
+
* the graph has no walks.
|
|
201
203
|
*/
|
|
202
204
|
walksLocation: fileLocationSlot(''),
|
|
203
205
|
/**
|
|
204
206
|
* #slot
|
|
207
|
+
* the walk file's directory, `<prefix>.<sample>.walks.gz.idx`. Unset
|
|
208
|
+
* reads it beside the walk file.
|
|
205
209
|
*/
|
|
206
|
-
walksIndex:
|
|
210
|
+
walksIndex: fileLocationSlot(''),
|
|
207
211
|
/**
|
|
208
212
|
* #slot
|
|
209
213
|
* the most haplotype steps a cut keeps; a window whose walks hold more
|
|
@@ -219,9 +223,9 @@ const RgfaTabixAdapter = ConfigurationSchema(
|
|
|
219
223
|
/**
|
|
220
224
|
* #slot
|
|
221
225
|
* the most compressed bytes a cut of a walk-indexed graph fetches from its
|
|
222
|
-
* walk file,
|
|
223
|
-
*
|
|
224
|
-
* haplotype, since a
|
|
226
|
+
* walk file, which its directory gives before any row is read; a window
|
|
227
|
+
* over it shows a zoom-in notice instead. The budget covers every
|
|
228
|
+
* haplotype, since a tile's rows are filed for all of them.
|
|
225
229
|
*/
|
|
226
230
|
walkByteBudget: {
|
|
227
231
|
type: 'integer',
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
#!/usr/bin/env bash
|
|
2
|
+
# Rebuilds the walk-file fixtures from their GFAs with gfa-to-tabix 4.0, in
|
|
3
|
+
# walk format 7, at the tile size the tests' windows assume.
|
|
4
|
+
# Usage: test_data/walks7/build.sh <gfa-to-tabix binary>
|
|
5
|
+
set -euo pipefail
|
|
6
|
+
cd "$(dirname "$0")"
|
|
7
|
+
B=${1:?the gfa-to-tabix binary}
|
|
8
|
+
build() {
|
|
9
|
+
local name=$1 gfa=$2; shift 2
|
|
10
|
+
"$B" "$gfa" --walks -o "$name.tmp" "$@" > /dev/null 2>&1
|
|
11
|
+
local out
|
|
12
|
+
for out in "$name".tmp.*.walks.gz; do
|
|
13
|
+
local sample=${out#"$name".tmp.}; sample=${sample%.walks.gz}
|
|
14
|
+
mv "$out" "$name.$sample.walks.gz"
|
|
15
|
+
mv "$out.idx" "$name.$sample.walks.gz.idx"
|
|
16
|
+
done
|
|
17
|
+
}
|
|
18
|
+
build header header.GRCh38.gfa --refs GRCh38 --tile 1000
|
|
19
|
+
build twopart twopart.GRCh38.gfa --refs GRCh38 --tile 1000
|
|
20
|
+
build maxnode maxnode.GRCh38.gfa --refs GRCh38 --tile 1000
|
|
21
|
+
build follow follow.GRCh38.gfa --refs GRCh38 --tile 1000
|
|
22
|
+
build rejoin follow.GRCh38.gfa --refs GRCh38 --tile 10000
|
|
23
|
+
build skip skip.GRCh38.gfa --refs GRCh38 --tile 10
|
|
24
|
+
build skipfollow skipfollow.GRCh38.gfa --refs GRCh38 --tile 1000
|
|
25
|
+
build skipinv skipinv.GRCh38.gfa --refs GRCh38 --tile 1000
|
|
26
|
+
build inversion inversion.GRCh38.gfa --refs GRCh38 --tile 10000
|
|
27
|
+
build lanepairs lanepairs.GRCh38.gfa --refs GRCh38 --tile 1000
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
H VN:Z:1.1
|
|
2
|
+
S 1 * LN:i:500
|
|
3
|
+
S 2 * LN:i:500
|
|
4
|
+
S 3 * LN:i:500
|
|
5
|
+
S 4 * LN:i:500
|
|
6
|
+
S 5 * LN:i:500
|
|
7
|
+
S 6 * LN:i:500
|
|
8
|
+
S 7 * LN:i:500
|
|
9
|
+
S 8 * LN:i:500
|
|
10
|
+
S 9 * LN:i:500
|
|
11
|
+
S 10 * LN:i:500
|
|
12
|
+
S 11 * LN:i:500
|
|
13
|
+
S 12 * LN:i:500
|
|
14
|
+
S 20 * LN:i:2000
|
|
15
|
+
S 21 * LN:i:2000
|
|
16
|
+
S 22 * LN:i:300
|
|
17
|
+
L 1 + 2 + 0M
|
|
18
|
+
L 10 + 11 + 0M
|
|
19
|
+
L 11 + 12 + 0M
|
|
20
|
+
L 2 + 3 + 0M
|
|
21
|
+
L 20 + 21 + 0M
|
|
22
|
+
L 3 + 20 + 0M
|
|
23
|
+
L 3 + 22 + 0M
|
|
24
|
+
L 3 + 4 + 0M
|
|
25
|
+
L 4 + 5 + 0M
|
|
26
|
+
L 5 + 6 + 0M
|
|
27
|
+
L 6 + 7 + 0M
|
|
28
|
+
L 7 + 8 + 0M
|
|
29
|
+
L 8 + 9 + 0M
|
|
30
|
+
L 9 + 10 + 0M
|
|
31
|
+
L 9 - 21 - 0M
|
|
32
|
+
W GRCh38 0 chr1 0 6000 >1>2>3>4>5>6>7>8>9>10>11>12
|
|
33
|
+
W HG002 1 chr1 0 7500 >1>2>3>20>21>9>10>11>12
|
|
34
|
+
W HG002 2 chr1 0 6000 >1>2>3>4>5>6>7>8>9>10>11>12
|
|
35
|
+
W HG003 1 chr1 0 1800 >1>2>3>22
|
|
Binary file
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
H VN:Z:1.1
|
|
2
|
+
S 1 * LN:i:600
|
|
3
|
+
S 2 * LN:i:600
|
|
4
|
+
S 3 * LN:i:600
|
|
5
|
+
S 4 * LN:i:600
|
|
6
|
+
S 5 * LN:i:600
|
|
7
|
+
S 6 * LN:i:600
|
|
8
|
+
S 7 * LN:i:550
|
|
9
|
+
S 8 * LN:i:20
|
|
10
|
+
L 1 + 2 + 0M
|
|
11
|
+
L 2 + 3 + 0M
|
|
12
|
+
L 2 + 7 + 0M
|
|
13
|
+
L 3 + 4 + 0M
|
|
14
|
+
L 4 + 5 + 0M
|
|
15
|
+
L 4 + 8 + 0M
|
|
16
|
+
L 4 - 7 - 0M
|
|
17
|
+
L 5 + 6 + 0M
|
|
18
|
+
L 6 - 8 - 0M
|
|
19
|
+
W GRCh38 0 chr1 0 3600 >1>2>3>4>5>6
|
|
20
|
+
W HG00097 1 chr1 0 3600 >1>2>3>4>5>6
|
|
21
|
+
W HG002 1 chr1 0 3550 >1>2>7>4>5>6
|
|
22
|
+
W HG002 2 chr1 0 3020 >1>2>3>4>8>6
|
|
Binary file
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
H VN:Z:1.1
|
|
2
|
+
S 1 * LN:i:20000
|
|
3
|
+
S 2 * LN:i:5000
|
|
4
|
+
S 3 * LN:i:5000
|
|
5
|
+
S 4 * LN:i:5000
|
|
6
|
+
S 5 * LN:i:20000
|
|
7
|
+
L 1 + 2 + 0M
|
|
8
|
+
L 1 + 4 - 0M
|
|
9
|
+
L 2 + 3 + 0M
|
|
10
|
+
L 2 - 5 + 0M
|
|
11
|
+
L 3 + 4 + 0M
|
|
12
|
+
L 4 + 5 + 0M
|
|
13
|
+
W GRCh38 0 chr1 0 55000 >1>2>3>4>5
|
|
14
|
+
W HG00097 1 chr1 0 55000 >1>2>3>4>5
|
|
15
|
+
W HG002 1 chr1 0 55000 >1<4<3<2>5
|
|
Binary file
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
H VN:Z:1.1
|
|
2
|
+
S 1 * LN:i:2000
|
|
3
|
+
S 2 * LN:i:500
|
|
4
|
+
S 3 * LN:i:500
|
|
5
|
+
S 4 * LN:i:500
|
|
6
|
+
S 5 * LN:i:2000
|
|
7
|
+
S 6 * LN:i:30
|
|
8
|
+
L 1 + 2 + 0M
|
|
9
|
+
L 1 + 4 - 0M
|
|
10
|
+
L 2 + 3 + 0M
|
|
11
|
+
L 2 + 6 + 0M
|
|
12
|
+
L 2 - 5 + 0M
|
|
13
|
+
L 2 - 6 - 0M
|
|
14
|
+
L 3 + 4 + 0M
|
|
15
|
+
L 4 + 5 + 0M
|
|
16
|
+
W GRCh38 0 chr1 0 5500 >1>2>3>4>5
|
|
17
|
+
W HG00097 1 chr1 0 6560 >1>2>6>2>6>2>3>4>5
|
|
18
|
+
W HG002 1 chr1 0 5500 >1>2>3>4>5
|
|
19
|
+
W HG002 2 chr1 0 5500 >1<4<3<2>5
|
|
Binary file
|
|
Binary file
|
|
Binary file
|