Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
martin-steinegger committed May 2, 2019
2 parents ae4c734 + d990a0f commit 0218156
Showing 1 changed file with 1 addition and 17 deletions.
18 changes: 1 addition & 17 deletions src/util/translatenucs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ int translatenucs(int argc, const char **argv, const Command& command) {
thread_idx = omp_get_thread_num();
#endif

const char * entry[255];
char* aa = new char[par.maxSeqLen + 3 + 1];
#pragma omp for schedule(dynamic, 5)
for (size_t i = 0; i < entries; ++i) {
Expand All @@ -65,22 +64,7 @@ int translatenucs(int argc, const char **argv, const Command& command) {
char* data = reader.getData(i, thread_idx);
if (addOrfStop == true) {
char* headData = header->getDataByDBKey(key, thread_idx);
size_t columns = Util::getWordsOfLine(headData, entry, 255);
size_t col;
bool found = false;
for (col = 0; col < columns; col++) {
if (entry[col][0] == '[' && entry[col][1] == 'O' && entry[col][2] == 'r' && entry[col][3] == 'f' && entry[col][4] == ':') {
found=true;
break;
}
}
if (found == false) {
Debug(Debug::ERROR) << "Could not find Orf information in header.\n";
EXIT(EXIT_FAILURE);
}

Orf::SequenceLocation loc = Orf::parseOrfHeader(entry[col]);

Orf::SequenceLocation loc = Orf::parseOrfHeader(headData);
addStopAtStart=!(loc.hasIncompleteStart);
addStopAtEnd=!(loc.hasIncompleteEnd);
}
Expand Down

0 comments on commit 0218156

Please sign in to comment.