generated from seqan/app-template
-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[INFRA] Update raptor to the latest main in the HIBF lib and chopper. (…
…#429) * [INFRA] Update raptor to the latest main in the HIBF lib and chopper. * more * fix
- Loading branch information
1 parent
cd2b90f
commit 2f15084
Showing
3 changed files
with
5 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,11 +7,8 @@ | |
* \author Enrico Seiler <enrico.seiler AT fu-berlin.de> | ||
*/ | ||
|
||
#include <chopper/input_functor.hpp> | ||
#include <chopper/layout/execute.hpp> | ||
#include <chopper/chopper_layout.hpp> | ||
#include <chopper/set_up_parser.hpp> | ||
#include <chopper/sketch/check_filenames.hpp> | ||
#include <chopper/sketch/read_data_file.hpp> | ||
|
||
#include <raptor/argument_parsing/init_shared_meta.hpp> | ||
|
||
|
@@ -27,30 +24,7 @@ void chopper_layout(sharg::parser & parser) | |
parser.info.author = "Svenja Mehringer"; | ||
parser.info.email = "[email protected]"; | ||
|
||
parser.parse(); | ||
|
||
if (!parser.is_option_set("window")) | ||
config.window_size = config.k; | ||
else if (config.k > config.window_size) | ||
throw sharg::parser_error{"The k-mer size cannot be bigger than the window size."}; | ||
|
||
config.disable_sketch_output = !parser.is_option_set("output-sketches-to"); | ||
|
||
if (std::filesystem::is_empty(config.data_file)) | ||
throw sharg::parser_error{"The input file is empty."}; | ||
|
||
std::vector<std::vector<std::string>> filenames{}; | ||
chopper::sketch::read_data_file(config, filenames); | ||
|
||
chopper::sketch::check_filenames(filenames, config); | ||
|
||
config.hibf_config.input_fn = chopper::input_functor{.filenames = filenames, | ||
.input_are_precomputed_files = config.precomputed_files, | ||
.kmer_size = config.k, | ||
.window_size = config.window_size}; | ||
config.hibf_config.number_of_user_bins = filenames.size(); | ||
|
||
chopper::layout::execute(config, filenames); | ||
chopper::chopper_layout(config, parser); | ||
} | ||
|
||
} // namespace raptor |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters