Skip to content

NEXT LINCLUST #873

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 19 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions src/commons/Parameters.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,7 @@ Parameters::Parameters():
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),
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),
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),
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),
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),
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),
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 ),
Expand Down Expand Up @@ -1017,6 +1018,7 @@ Parameters::Parameters():
kmermatcher.push_back(&PARAM_V);
kmermatcher.push_back(&PARAM_WEIGHT_FILE);
kmermatcher.push_back(&PARAM_WEIGHT_THR);
kmermatcher.push_back(&PARAM_MATCH_ADJACENT_SEQ);

// kmermatcher
kmersearch.push_back(&PARAM_SEED_SUB_MAT);
Expand Down Expand Up @@ -2594,6 +2596,9 @@ void Parameters::setDefaults() {
resultDirection = Parameters::PARAM_RESULT_DIRECTION_TARGET;
weightThr = 0.9;
weightFile = "";
matchAdjacentSeq = true;
hashSeqBuffer = 1.05;
numDiskBuffer = 0;

// result2stats
stat = "";
Expand Down
4 changes: 4 additions & 0 deletions src/commons/Parameters.h
Original file line number Diff line number Diff line change
Expand Up @@ -564,6 +564,9 @@ class Parameters {
int resultDirection;
float weightThr;
std::string weightFile;
bool matchAdjacentSeq;
float hashSeqBuffer;
int numDiskBuffer;

// indexdb
int checkCompatible;
Expand Down Expand Up @@ -882,6 +885,7 @@ class Parameters {
PARAMETER(PARAM_IGNORE_MULTI_KMER)
PARAMETER(PARAM_HASH_SHIFT)
PARAMETER(PARAM_PICK_N_SIMILAR)
PARAMETER(PARAM_MATCH_ADJACENT_SEQ)
PARAMETER(PARAM_ADJUST_KMER_LEN)
PARAMETER(PARAM_RESULT_DIRECTION)
PARAMETER(PARAM_WEIGHT_FILE)
Expand Down
Loading
Loading