Skip to content

Commit 0d9eacc

Browse files
committed
ignore alt_paths in xg in some tests
1 parent 154596e commit 0d9eacc

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

test/t/11_vg_paths.t

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ vg construct -r small/x.fa -v small/x.vcf.gz > x2.vg
1414
vg index -x x.xg -G x.gbwt -v small/x.vcf.gz x.vg
1515

1616
# List path/thread names from various input formats
17-
is "$(vg paths --list -v x2.vg)" "x" "path listing works from vg"
18-
is "$(vg paths --list -x x.xg)" "x" "path listing works from XG"
17+
is "$(vg paths --list -v x2.vg | grep -v _alt_)" "x" "path listing works from vg"
18+
is "$(vg paths --list -x x.xg | grep -v _alt_)" "x" "path listing works from XG"
1919
is $(vg paths --list -g x.gbwt | wc -l) 2 "thread listing works from GBWT"
2020

2121
# Select threads by name

test/t/30_vg_chunk.t

+2-2
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@ is $(vg chunk -x x.xg -r 1 -c 0 | vg view - -j | jq .node | grep id | wc -l) 1 "
4242

4343
# Check that traces work on a GBWT
4444
is $(vg chunk -x x.xg -G x.gbwt -r 1:1 -c 2 -T | vg view - -j | jq .node | grep id | wc -l) 5 "id chunker traces correct chunk size"
45-
is "$(vg chunk -x x.xg -r 1:1 -c 2 -T | vg view - -j | jq -c '.path[] | select(.name != "x")' | wc -l)" 0 "chunker extracts no threads from an empty gPBWT"
46-
is "$(vg chunk -x x.xg -G x.gbwt -r 1:1 -c 2 -T | vg view - -j | jq -c '.path[] | select(.name != "x")' | wc -l)" 2 "chunker extracts 2 local threads from a gBWT with 2 locally distinct threads in it"
45+
is "$(vg chunk -x x.xg -r 1:1 -c 2 -T | vg view - -j | jq -c '.path[] | select(.name != "x")' | grep -v _alt_ | wc -l)" 0 "chunker extracts no threads from an empty gPBWT"
46+
is "$(vg chunk -x x.xg -G x.gbwt -r 1:1 -c 2 -T | vg view - -j | jq -c '.path[] | select(.name != "x")' | grep -v _alt_ | wc -l)" 2 "chunker extracts 2 local threads from a gBWT with 2 locally distinct threads in it"
4747
is "$(vg chunk -x x.xg -G x.gbwt -r 1:1 -c 2 -T | vg view - -j | jq -r '.path[] | select(.name == "thread_0") | .mapping | length')" 3 "chunker can extract a partial haplotype from a GBWT"
4848

4949
#check that n-chunking works

0 commit comments

Comments
 (0)