169 throw sharg::validation_error{
"The list of input files cannot be empty."};
179 if (is_minimiser_input && (file_path.extension() !=
".minimiser"))
180 throw sharg::validation_error{
"You cannot mix sequence and minimiser files as input."};
182 throw sharg::validation_error{
"The file " + value +
" is empty."};
184 if (is_minimiser_input)
185 minimiser_file_validator(file_path);
194 return seqan3::detail::to_string(
"The file must contain at least one file path per line, with multiple paths "
195 "being separated by a whitespace. Each line in the file corresponds to one "
196 "bin. Valid extensions for the paths in the file are [minimiser] when "
197 " using preprocessed input from \\fBraptor prepare\\fP, and ",
198 raptor::detail::sequence_extensions,
199#
if defined(SEQAN3_HAS_BZIP2) || defined(SEQAN3_HAS_ZLIB)
200 ", possibly followed by ",
201 raptor::detail::compression_extensions,
207 sharg::input_file_validator minimiser_file_validator{{
"minimiser"}};
290 using base_t = sharg::input_file_validator;
293 using base_t::base_t;
297 return seqan3::detail::to_string(
298 "The input file must exist and read permissions must be granted. Valid file extensions are ",
299 raptor::detail::sequence_extensions,
300#
if defined(SEQAN3_HAS_BZIP2) || defined(SEQAN3_HAS_ZLIB)
301 ", possibly followed by ",
302 raptor::detail::compression_extensions,