Skip to content

Commit

Permalink
Fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
eaasna committed Sep 14, 2023
1 parent bb2d35b commit 28ac171
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
4 changes: 2 additions & 2 deletions test/api/valik/split/write_seg_sequences_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ static void const test_reference_out(size_t overlap, size_t bins)
{
std::string path_prefix = "write_out_" + std::to_string(overlap) + "_" + std::to_string(bins);

valik::metadata meta(data_path(path_prefix + "_reference_segments.txt"));
valik::metadata meta(data_path(path_prefix + "_reference_metadata.txt"));
valik::write_reference_segments(meta, data_path("database.fasta"));

for (size_t i = 0; i < bins - 1; i++)
Expand Down Expand Up @@ -94,7 +94,7 @@ static void const test_query_out(size_t overlap, size_t bins)
{
std::string path_prefix = "write_out_" + std::to_string(overlap) + "_" + std::to_string(bins);

valik::metadata meta(data_path(path_prefix + "_reference_segments.txt"));
valik::metadata meta(data_path(path_prefix + "_reference_metadata.txt"));
valik::write_query_segments(meta, data_path("database.fasta"));

using sequence_file_t = seqan3::sequence_file_input<valik::dna4_traits, seqan3::fields<seqan3::field::seq>>;
Expand Down
6 changes: 4 additions & 2 deletions test/cli/dream_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@ TEST_P(dream_short_search, short_shared_mem)
"--window", std::to_string(window_size),
"--kmer 13",
"--size 32k",
"--from-segments",
"--ref-meta", ref_meta_path,
"--output ", index_path);
EXPECT_EQ(build.exit_code, 0);

cli_test_result const result = execute_app("valik", "search",
"--output search.gff",
Expand Down Expand Up @@ -75,6 +75,7 @@ TEST_F(dream_short_search, no_matches)
"--size 32k",
"--ref-meta", data("seg_meta150overlap" + std::to_string(number_of_bins) + "bins.txt"),
"--output ", ibf_path(number_of_bins, window_size));
EXPECT_EQ(build.exit_code, 0);

cli_test_result const result = execute_app("valik", "search",
"--output search.gff",
Expand Down Expand Up @@ -117,7 +118,7 @@ TEST_P(dream_split_search, split_shared_mem)
"--out", query_meta_path,
"--seg-count ", std::to_string(query_seg_count),
"--overlap 0");

EXPECT_EQ(split_query.exit_code, 0);

cli_test_result const build = execute_app("valik", "build",
data("ref.fasta"),
Expand All @@ -126,6 +127,7 @@ TEST_P(dream_split_search, split_shared_mem)
"--size 32k",
"--ref-meta", ref_meta_path,
"--output ", index_path);
EXPECT_EQ(build.exit_code, 0);

cli_test_result const search = execute_app("valik", "search",
"--output search.gff",
Expand Down

0 comments on commit 28ac171

Please sign in to comment.