Skip to content

Commit

Permalink
Merge pull request #4503 from vgteam/autoindex-gbz
Browse files Browse the repository at this point in the history
Don't duplicate source GBZ in autoindex
  • Loading branch information
adamnovak authored Jan 24, 2025
2 parents faea702 + f2151ac commit a1dc9e0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/subcommand/autoindex_main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -352,6 +352,9 @@ int main_autoindex(int argc, char** argv) {
}
if (!gbz_name.empty()) {
registry.provide("GBZ", gbz_name);
// Also mark this as the Giraffe GBZ so if we index for Giraffe we won't duplicate it.
// TODO: Why are these separate?
registry.provide("Giraffe GBZ", gbz_name);
}


Expand Down
1 change: 1 addition & 0 deletions test/t/15_vg_surject.t
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,7 @@ is "${?}" "1" "Surjection fails when using the wrong graph for GAM"
is "$(cat err.txt | grep 'cannot be interpreted' | wc -l)" "1" "Surjection of GAM to the wrong graph reports the problem"
vg surject -x tiny.vg -s -t 1 -m mapped.gamp >/dev/null 2>err.txt
is "${?}" "1" "Surjection fails when using the wrong graph for GAMP"
cat err.txt 1>&2
is "$(cat err.txt | grep 'cannot be interpreted' | wc -l)" "1" "Surjection of GAMP to the wrong graph reports the problem"

rm x.vg x.pathdup.vg x.xg x.gcsa x.gcsa.lcp x.gam mapped.gam mapped.gamp tiny.vg err.txt
Expand Down

1 comment on commit a1dc9e0

@adamnovak
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

vg CI tests complete for merge to master. View the full report here.

16 tests passed, 0 tests failed and 0 tests skipped in 17318 seconds

Please sign in to comment.