diff --git a/gfalibs b/gfalibs index bf3346b..d699003 160000 --- a/gfalibs +++ b/gfalibs @@ -1 +1 @@ -Subproject commit bf3346b55ccce060ad693ae40d624832b493028c +Subproject commit d69900322835d3ea8ad7dd6cfcfe9fb27fbb09b5 diff --git a/src/input.cpp b/src/input.cpp index fba59d4..fa9897a 100644 --- a/src/input.cpp +++ b/src/input.cpp @@ -48,10 +48,6 @@ void Input::loadDB() { getline(file, line); file.close(); userInput.kLen = stol(line); - if (userInput.kLen < userInput.kPrefixLen) - userInput.kPrefixLen = userInput.kLen; - else - userInput.kPrefixLen = std::min((uint32_t)31,userInput.kLen); }else if (userInput.kmerDB.size() > 1) { fprintf(stderr, "More than one DB provided. Merge them first. Exiting.\n"); exit(EXIT_FAILURE); @@ -146,10 +142,6 @@ void Input::read() { // reads the actual input and performing the tasks } userInput.kLen = k; - if (userInput.kLen < userInput.kPrefixLen) - userInput.kPrefixLen = userInput.kLen; - else - userInput.kPrefixLen = std::min((uint32_t)31,userInput.kLen); KDB kcount(userInput); // a new empty kmerdb with the specified kmer length diff --git a/src/main.cpp b/src/main.cpp index 6911288..6f61188 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -141,12 +141,8 @@ int main(int argc, char **argv) { } userInput.kLen = atol(optarg); - if (userInput.kLen < userInput.kPrefixLen) - userInput.kPrefixLen = userInput.kLen; - else - userInput.kPrefixLen = std::min((uint32_t)31,userInput.kLen); break; - case 's': // kmer length + case 's': // smer length if (!isNumber(optarg)) { fprintf(stderr, "input '%s' to option -%c must be a number\n", optarg, optopt);