Skip to content

Commit 2ef1e2e

Browse files
committed
feat: add param to enable adj_seq
1 parent e12665b commit 2ef1e2e

2 files changed

Lines changed: 5 additions & 0 deletions

File tree

src/commons/Parameters.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,8 @@ Parameters::Parameters():
152152
PARAM_IGNORE_MULTI_KMER(PARAM_IGNORE_MULTI_KMER_ID, "--ignore-multi-kmer", "Skip repeating k-mers", "Skip k-mers occurring multiple times (>=2)", typeid(bool), (void *) &ignoreMultiKmer, "", MMseqsParameter::COMMAND_CLUSTLINEAR | MMseqsParameter::COMMAND_EXPERT),
153153
PARAM_HASH_SHIFT(PARAM_HASH_SHIFT_ID, "--hash-shift", "Shift hash", "Shift k-mer hash initialization", typeid(int), (void *) &hashShift, "^[1-9]{1}[0-9]*$", MMseqsParameter::COMMAND_CLUSTLINEAR | MMseqsParameter::COMMAND_EXPERT),
154154
PARAM_PICK_N_SIMILAR(PARAM_PICK_N_SIMILAR_ID, "--pick-n-sim-kmer", "Add N similar to search", "Add N similar k-mers to search", typeid(int), (void *) &pickNbest, "^[1-9]{1}[0-9]*$", MMseqsParameter::COMMAND_CLUSTLINEAR | MMseqsParameter::COMMAND_EXPERT),
155+
// TODO: qualify as COMMAND_EXPERT?
156+
PARAM_MATCH_ADJACENT_SEQ(PARAM_MATCH_ADJACENT_SEQ_ID, "--match-adjacent-seq", "Compare adjacent sequences to k-mers", "Compare sequence information adjacent to k-mers and elect multiple representative sequences per cluster", typeid(bool), (void *) &matchAdjacentSeq, "", MMseqsParameter::COMMAND_CLUSTLINEAR),
155157
PARAM_ADJUST_KMER_LEN(PARAM_ADJUST_KMER_LEN_ID, "--adjust-kmer-len", "Adjust k-mer length", "Adjust k-mer length based on specificity (only for nucleotides)", typeid(bool), (void *) &adjustKmerLength, "", MMseqsParameter::COMMAND_CLUSTLINEAR | MMseqsParameter::COMMAND_EXPERT),
156158
PARAM_RESULT_DIRECTION(PARAM_RESULT_DIRECTION_ID, "--result-direction", "Result direction", "result is 0: query, 1: target centric", typeid(int), (void *) &resultDirection, "^[0-1]{1}$", MMseqsParameter::COMMAND_CLUSTLINEAR | MMseqsParameter::COMMAND_EXPERT),
157159
PARAM_WEIGHT_FILE(PARAM_WEIGHT_FILE_ID, "--weights", "Weight file name", "Weights used for cluster priorization", typeid(std::string), (void*) &weightFile, "", MMseqsParameter::COMMAND_CLUSTLINEAR | MMseqsParameter::COMMAND_EXPERT ),
@@ -2513,6 +2515,7 @@ void Parameters::setDefaults() {
25132515
resultDirection = Parameters::PARAM_RESULT_DIRECTION_TARGET;
25142516
weightThr = 0.9;
25152517
weightFile = "";
2518+
matchAdjacentSeq = true;
25162519
hashSeqBuffer = 1.05;
25172520

25182521
// result2stats

src/commons/Parameters.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -552,6 +552,7 @@ class Parameters {
552552
int resultDirection;
553553
float weightThr;
554554
std::string weightFile;
555+
bool matchAdjacentSeq;
555556
float hashSeqBuffer;
556557

557558
// indexdb
@@ -866,6 +867,7 @@ class Parameters {
866867
PARAMETER(PARAM_IGNORE_MULTI_KMER)
867868
PARAMETER(PARAM_HASH_SHIFT)
868869
PARAMETER(PARAM_PICK_N_SIMILAR)
870+
PARAMETER(PARAM_MATCH_ADJACENT_SEQ)
869871
PARAMETER(PARAM_ADJUST_KMER_LEN)
870872
PARAMETER(PARAM_RESULT_DIRECTION)
871873
PARAMETER(PARAM_WEIGHT_FILE)

0 commit comments

Comments
 (0)