Skip to content

Commit

Permalink
[INFRA] Install target
Browse files Browse the repository at this point in the history
  • Loading branch information
eseiler committed Aug 17, 2023
1 parent a7610d2 commit 01b8afc
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 7 deletions.
2 changes: 1 addition & 1 deletion lib/chopper
Submodule chopper updated 35 files
+13 −8 .github/workflows/ci_lint.yml
+17 −11 CMakeLists.txt
+17 −0 README.md
+0 −8 include/chopper/configuration.hpp
+14 −43 include/chopper/data_store.hpp
+0 −90 include/chopper/layout/aggregate_by.hpp
+38 −0 include/chopper/layout/compute_fp_correction.hpp
+1 −1 include/chopper/layout/execute.hpp
+147 −31 include/chopper/layout/hibf_statistics.hpp
+50 −82 include/chopper/layout/hierarchical_binning.hpp
+3 −2 include/chopper/layout/layout.hpp
+17 −2 include/chopper/layout/output.hpp
+9 −24 include/chopper/layout/simple_binning.hpp
+3 −19 include/chopper/set_up_parser.hpp
+1 −1 include/chopper/sketch/check_filenames.hpp
+11 −13 include/chopper/sketch/execute.hpp
+3 −55 include/chopper/sketch/read_data_file.hpp
+68 −94 include/chopper/sketch/toolbox.hpp
+12 −0 include/chopper/workarounds.hpp
+1 −1 lib/sharg-parser
+3 −2 src/CMakeLists.txt
+13 −4 src/chopper.cpp
+15 −18 src/chopper_layout.cpp
+0 −1 test/api/layout/CMakeLists.txt
+0 −94 test/api/layout/aggregate_by_test.cpp
+5 −8 test/api/layout/execute_layout_test.cpp
+34 −39 test/api/layout/execute_with_estimation_test.cpp
+16 −18 test/api/layout/fp_correction_test.cpp
+20 −27 test/api/layout/hibf_statistics_test.cpp
+67 −102 test/api/layout/hierarchical_binning_test.cpp
+6 −6 test/api/layout/layout_test.cpp
+9 −24 test/api/layout/simple_binning_test.cpp
+12 −40 test/api/sketch/execute_test.cpp
+6 −38 test/api/sketch/read_data_file_test.cpp
+37 −40 test/api/sketch/toolbox_test.cpp
6 changes: 5 additions & 1 deletion src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@ set (CHOPPER_BUILD_TEST
OFF
CACHE BOOL "Build chopper tests."
)
set (CHOPPER_INSTALL
OFF
CACHE BOOL "Install Chopper."
)

FetchContent_MakeAvailable (raptor_chopper_project)

Expand All @@ -42,7 +46,7 @@ FetchContent_Declare (raptor_xxhash_project SOURCE_DIR "${RAPTOR_SUBMODULES_DIR}

set (XXHASH_BUILD_ENABLE_INLINE_API ON)
set (XXHASH_BUILD_XXHSUM OFF)
set (XXHASH_BUNDLED_MODE OFF)
set (XXHASH_BUNDLED_MODE ON)
set (BUILD_SHARED_LIBS OFF)

FetchContent_MakeAvailable (raptor_xxhash_project)
Expand Down
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

0 comments on commit 01b8afc

Please sign in to comment.