Skip to content

Commit

Permalink
Merge pull request #297 from smehringer/preparations
Browse files Browse the repository at this point in the history
[INFRA] Update chopper
  • Loading branch information
eseiler committed May 3, 2023
2 parents af8df1f + 6237c75 commit a948d0b
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 6 deletions.
2 changes: 1 addition & 1 deletion lib/chopper
17 changes: 13 additions & 4 deletions src/layout/raptor_layout.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,21 @@ void chopper_layout(sharg::parser & parser)
config.disable_sketch_output = !parser.is_option_set("output-sketches-to");

chopper::layout::layout hibf_layout{};
std::vector<std::string> filenames{};
std::vector<size_t> kmer_counts{};
std::vector<chopper::sketch::hyperloglog> sketches{};

chopper::data_store store{.false_positive_rate = config.false_positive_rate, .hibf_layout = &hibf_layout};
chopper::sketch::read_data_file(config, filenames);

chopper::sketch::execute(config, store);
chopper::sketch::estimate_kmer_counts(store.sketches, store.kmer_counts);
chopper::layout::execute(config, store);
chopper::sketch::execute(config, filenames, sketches);
chopper::sketch::estimate_kmer_counts(sketches, kmer_counts);

chopper::data_store store{.false_positive_rate = config.false_positive_rate,
.hibf_layout = &hibf_layout,
.kmer_counts = kmer_counts,
.sketches = sketches};

chopper::layout::execute(config, filenames, store);
}

} // namespace raptor
1 change: 0 additions & 1 deletion test/unit/cli/build/build_hibf_chopper_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ TEST_F(build_hibf_layout, pipeline)
cli_test_result const result = execute_app("raptor",
"layout",
"--kmer-size 19",
"--column-index 2",
"--threads 1",
"--input-file",
data_filename,
Expand Down

1 comment on commit a948d0b

@vercel
Copy link

@vercel vercel bot commented on a948d0b May 3, 2023

Choose a reason for hiding this comment

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

Successfully deployed to the following URLs:

raptor – ./

raptor-git-main-seqan.vercel.app
seqan-raptor.vercel.app
raptor-seqan.vercel.app

Please sign in to comment.