Skip to content

Commit

Permalink
Remove translatenucs from more parameter lists
Browse files Browse the repository at this point in the history
  • Loading branch information
milot-mirdita committed Nov 26, 2024
1 parent a0dad1e commit 747c64c
Show file tree
Hide file tree
Showing 9 changed files with 0 additions and 30 deletions.
2 changes: 0 additions & 2 deletions src/commons/Parameters.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1292,7 +1292,6 @@ Parameters::Parameters():
linsearchworkflow = combineList(align, kmersearch);
linsearchworkflow = combineList(linsearchworkflow, swapresult);
linsearchworkflow = combineList(linsearchworkflow, extractorfs);
linsearchworkflow = combineList(linsearchworkflow, translatenucs);
linsearchworkflow = combineList(linsearchworkflow, offsetalignment);
linsearchworkflow.push_back(&PARAM_RUNNER);
linsearchworkflow.push_back(&PARAM_REUSELATEST);
Expand Down Expand Up @@ -1392,7 +1391,6 @@ Parameters::Parameters():
mapworkflow = combineList(prefilter, rescorediagonal);
mapworkflow = combineList(mapworkflow, extractorfs);
mapworkflow = combineList(mapworkflow, translatenucs);
mapworkflow.push_back(&PARAM_START_SENS);
mapworkflow.push_back(&PARAM_SENS_STEPS);
mapworkflow.push_back(&PARAM_RUNNER);
Expand Down
3 changes: 0 additions & 3 deletions src/multihit/MultiHitSearch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,6 @@ int multihitsearch(int argc, const char **argv, const Command &command) {
for (size_t i = 0; i < par.extractorfs.size(); i++){
par.extractorfs[i]->addCategory(MMseqsParameter::COMMAND_EXPERT);
}
for (size_t i = 0; i < par.translatenucs.size(); i++){
par.translatenucs[i]->addCategory(MMseqsParameter::COMMAND_EXPERT);
}
for (size_t i = 0; i < par.splitsequence.size(); i++) {
par.splitsequence[i]->addCategory(MMseqsParameter::COMMAND_EXPERT);
}
Expand Down
3 changes: 0 additions & 3 deletions src/workflow/ClusterUpdate.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,6 @@ int clusterupdate(int argc, const char **argv, const Command& command) {
for (size_t i = 0; i < par.extractorfs.size(); i++) {
par.extractorfs[i]->addCategory(MMseqsParameter::COMMAND_EXPERT);
}
for (size_t i = 0; i < par.translatenucs.size(); i++) {
par.translatenucs[i]->addCategory(MMseqsParameter::COMMAND_EXPERT);
}
for (size_t i = 0; i < par.splitsequence.size(); i++) {
par.splitsequence[i]->addCategory(MMseqsParameter::COMMAND_EXPERT);
}
Expand Down
6 changes: 0 additions & 6 deletions src/workflow/CreateIndex.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,6 @@ int createlinindex(int argc, const char **argv, const Command& command) {
for (size_t i = 0; i < par.extractorfs.size(); i++) {
par.extractorfs[i]->addCategory(MMseqsParameter::COMMAND_EXPERT);
}
for (size_t i = 0; i < par.translatenucs.size(); i++) {
par.translatenucs[i]->addCategory(MMseqsParameter::COMMAND_EXPERT);
}
par.PARAM_COMPRESSED.addCategory(MMseqsParameter::COMMAND_EXPERT);
par.PARAM_THREADS.removeCategory(MMseqsParameter::COMMAND_EXPERT);
par.PARAM_V.removeCategory(MMseqsParameter::COMMAND_EXPERT);
Expand Down Expand Up @@ -131,9 +128,6 @@ int createindex(int argc, const char **argv, const Command& command) {
for (size_t i = 0; i < par.splitsequence.size(); i++) {
par.splitsequence[i]->addCategory(MMseqsParameter::COMMAND_EXPERT);
}
for (size_t i = 0; i < par.translatenucs.size(); i++) {
par.translatenucs[i]->addCategory(MMseqsParameter::COMMAND_EXPERT);
}
par.PARAM_COMPRESSED.addCategory(MMseqsParameter::COMMAND_EXPERT);
par.PARAM_THREADS.removeCategory(MMseqsParameter::COMMAND_EXPERT);
par.PARAM_V.removeCategory(MMseqsParameter::COMMAND_EXPERT);
Expand Down
3 changes: 0 additions & 3 deletions src/workflow/EasyRbh.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,6 @@ int easyrbh(int argc, const char **argv, const Command &command) {
for (size_t i = 0; i < par.extractorfs.size(); i++){
par.extractorfs[i]->addCategory(MMseqsParameter::COMMAND_EXPERT);
}
for (size_t i = 0; i < par.translatenucs.size(); i++){
par.translatenucs[i]->addCategory(MMseqsParameter::COMMAND_EXPERT);
}
for (size_t i = 0; i < par.result2profile.size(); i++){
par.result2profile[i]->addCategory(MMseqsParameter::COMMAND_EXPERT);
}
Expand Down
3 changes: 0 additions & 3 deletions src/workflow/EasySearch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,6 @@ int doeasysearch(int argc, const char **argv, const Command &command, bool linse
for (size_t i = 0; i < par.extractorfs.size(); i++){
par.extractorfs[i]->addCategory(MMseqsParameter::COMMAND_EXPERT);
}
for (size_t i = 0; i < par.translatenucs.size(); i++){
par.translatenucs[i]->addCategory(MMseqsParameter::COMMAND_EXPERT);
}
for (size_t i = 0; i < par.splitsequence.size(); i++) {
par.splitsequence[i]->addCategory(MMseqsParameter::COMMAND_EXPERT);
}
Expand Down
4 changes: 0 additions & 4 deletions src/workflow/Linsearch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,6 @@ int linsearch(int argc, const char **argv, const Command &command) {
for (size_t i = 0; i < par.extractorfs.size(); i++) {
par.extractorfs[i]->addCategory(MMseqsParameter::COMMAND_EXPERT);
}
for (size_t i = 0; i < par.translatenucs.size(); i++) {
par.translatenucs[i]->addCategory(MMseqsParameter::COMMAND_EXPERT);
}
par.PARAM_COMPRESSED.removeCategory(MMseqsParameter::COMMAND_EXPERT);
par.PARAM_THREADS.removeCategory(MMseqsParameter::COMMAND_EXPERT);
par.PARAM_V.removeCategory(MMseqsParameter::COMMAND_EXPERT);
Expand Down Expand Up @@ -143,7 +140,6 @@ int linsearch(int argc, const char **argv, const Command &command) {
par.translate = 1;
cmd.addVariable("ORF_PAR", par.createParameterString(par.extractorfs).c_str());
cmd.addVariable("OFFSETALIGNMENT_PAR", par.createParameterString(par.offsetalignment).c_str());
cmd.addVariable("TRANSLATE_PAR", par.createParameterString(par.translatenucs).c_str());
cmd.addVariable("SEARCH", program.c_str());
program = std::string(tmpDir + "/translated_search.sh");
FileUtil::writeFile(program, Linsearch::translated_search_sh, Linsearch::translated_search_sh_len);
Expand Down
3 changes: 0 additions & 3 deletions src/workflow/Map.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,6 @@ int map(int argc, const char **argv, const Command &command) {
for (size_t i = 0; i < par.extractorfs.size(); i++){
par.extractorfs[i]->addCategory(MMseqsParameter::COMMAND_EXPERT);
}
for (size_t i = 0; i < par.translatenucs.size(); i++){
par.translatenucs[i]->addCategory(MMseqsParameter::COMMAND_EXPERT);
}
par.PARAM_COMPRESSED.removeCategory(MMseqsParameter::COMMAND_EXPERT);
par.PARAM_V.removeCategory(MMseqsParameter::COMMAND_EXPERT);
par.PARAM_THREADS.removeCategory(MMseqsParameter::COMMAND_EXPERT);
Expand Down
3 changes: 0 additions & 3 deletions src/workflow/Rbh.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,6 @@ int rbh(int argc, const char **argv, const Command &command) {
for (size_t i = 0; i < par.extractorfs.size(); i++){
par.extractorfs[i]->addCategory(MMseqsParameter::COMMAND_EXPERT);
}
for (size_t i = 0; i < par.translatenucs.size(); i++){
par.translatenucs[i]->addCategory(MMseqsParameter::COMMAND_EXPERT);
}
for (size_t i = 0; i < par.splitsequence.size(); i++) {
par.splitsequence[i]->addCategory(MMseqsParameter::COMMAND_EXPERT);
}
Expand Down

0 comments on commit 747c64c

Please sign in to comment.