Skip to content

Commit 0218156

Browse files
Merge branch 'master' of https://github.com/soedinglab/MMseqs2
2 parents ae4c734 + d990a0f commit 0218156

1 file changed

Lines changed: 1 addition & 17 deletions

File tree

src/util/translatenucs.cpp

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,6 @@ int translatenucs(int argc, const char **argv, const Command& command) {
5252
thread_idx = omp_get_thread_num();
5353
#endif
5454

55-
const char * entry[255];
5655
char* aa = new char[par.maxSeqLen + 3 + 1];
5756
#pragma omp for schedule(dynamic, 5)
5857
for (size_t i = 0; i < entries; ++i) {
@@ -65,22 +64,7 @@ int translatenucs(int argc, const char **argv, const Command& command) {
6564
char* data = reader.getData(i, thread_idx);
6665
if (addOrfStop == true) {
6766
char* headData = header->getDataByDBKey(key, thread_idx);
68-
size_t columns = Util::getWordsOfLine(headData, entry, 255);
69-
size_t col;
70-
bool found = false;
71-
for (col = 0; col < columns; col++) {
72-
if (entry[col][0] == '[' && entry[col][1] == 'O' && entry[col][2] == 'r' && entry[col][3] == 'f' && entry[col][4] == ':') {
73-
found=true;
74-
break;
75-
}
76-
}
77-
if (found == false) {
78-
Debug(Debug::ERROR) << "Could not find Orf information in header.\n";
79-
EXIT(EXIT_FAILURE);
80-
}
81-
82-
Orf::SequenceLocation loc = Orf::parseOrfHeader(entry[col]);
83-
67+
Orf::SequenceLocation loc = Orf::parseOrfHeader(headData);
8468
addStopAtStart=!(loc.hasIncompleteStart);
8569
addStopAtEnd=!(loc.hasIncompleteEnd);
8670
}

0 commit comments

Comments
 (0)