Skip to content

Commit 9073ce4

Browse files
committed
extract raw values into const global variables
1 parent 355f5d6 commit 9073ce4

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/vsearch.h

+5-2
Original file line numberDiff line numberDiff line change
@@ -514,6 +514,9 @@ constexpr int64_t default_maxseqlength = 50000;
514514
constexpr int64_t default_ascii_offset = 33;
515515
constexpr int64_t default_max_quality = 41;
516516
constexpr auto int64_max = std::numeric_limits<int64_t>::max();
517+
std::string const default_quality_padding = "IIIIIIII"; // Q40 with an offset of 33
518+
std::string const alternative_quality_padding = "hhhhhhhh"; // Q40 with an offset of 64
519+
std::string const default_sequence_padding = "NNNNNNNN";
517520

518521
struct Parameters {
519522
char * opt_cut = nullptr;
@@ -534,8 +537,8 @@ struct Parameters {
534537
char * opt_fastqout_discarded_rev = nullptr;
535538
char * opt_fastx_subsample = nullptr;
536539
char * opt_fastx_uniques = nullptr;
537-
std::string opt_join_padgap = "NNNNNNNN";
538-
std::string opt_join_padgapq = "IIIIIIII";
540+
std::string opt_join_padgap = default_sequence_padding;
541+
std::string opt_join_padgapq = default_quality_padding;
539542
char * opt_log = nullptr;
540543
char * opt_output = nullptr;
541544
char * opt_relabel = nullptr;

0 commit comments

Comments
 (0)