Skip to content

Commit

Permalink
Fix tantan test
Browse files Browse the repository at this point in the history
  • Loading branch information
milot-mirdita committed Nov 10, 2024
1 parent b2fe0a2 commit fa12ab2
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/test/TestTanTan.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ int main (int, const char**) {
Sequence refSeq(10000, 0, &subMat, kmer_size, false, true);
refSeq.mapSequence(0, 0, ref, strlen(ref));

char hardMaskTable[256];
unsigned char hardMaskTable[256];
std::fill_n(hardMaskTable, 256, subMat.aa2num[(int) 'X']);
double probMatrix[21][21];

Expand All @@ -40,12 +40,11 @@ int main (int, const char**) {
}
//std::cout << std::endl;
}
char refInt[100000];


unsigned char refInt[100000];
for(size_t i = 0; i < 100000; i++){
for(int i = 0; i < refSeq.L; i++){
refInt[i] = (char) refSeq.numSequence[i];
refInt[i] = (unsigned char) refSeq.numSequence[i];
}
tantan::maskSequences(refInt, refInt+len, 50 /*options.maxCycleLength*/,
probMatrixPointers,
Expand Down

0 comments on commit fa12ab2

Please sign in to comment.