Skip to content

Commit

Permalink
Padded check in Sequence class not needed anymore
Browse files Browse the repository at this point in the history
  • Loading branch information
martin-steinegger committed Jan 18, 2025
1 parent ddf2e85 commit 492297b
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions src/commons/Sequence.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
#include "MathUtil.h"
#include "SubstitutionMatrixProfileStates.h"
#include "PSSMCalculator.h"

#include <climits> // short_max
#include <cstddef>

Expand Down Expand Up @@ -206,12 +205,7 @@ void Sequence::mapSequence(size_t id, unsigned int dbKey, const char *sequence,
this->dbKey = dbKey;
this->seqData = sequence;
if (Parameters::isEqualDbtype(this->seqType, Parameters::DBTYPE_AMINO_ACIDS) || Parameters::isEqualDbtype(this->seqType, Parameters::DBTYPE_NUCLEOTIDES)) {
// check for padded database
if(seqLen >= 1 && sequence[0] >= 0 && sequence[0] <= 52){
mapSequence(id, dbKey, std::make_pair((const unsigned char *)sequence, seqLen));
}else{
mapSequence(sequence, seqLen);
}
mapSequence(sequence, seqLen);
} else if (Parameters::isEqualDbtype(this->seqType, Parameters::DBTYPE_HMM_PROFILE)) {
mapProfile(sequence, seqLen);
} else {
Expand Down

0 comments on commit 492297b

Please sign in to comment.