Skip to content

Commit 26ebac0

Browse files
author
Mengyao Zhao
committed
remove debuging lines
1 parent 3bbaf0d commit 26ebac0

File tree

2 files changed

+2
-21
lines changed

2 files changed

+2
-21
lines changed

src/main.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/* main.c
22
* Created by Mengyao Zhao on 06/23/11.
33
* Version 0.1.5
4-
* Last revision by Mengyao Zhao on 02/23/16.
4+
* Last revision by Mengyao Zhao on 06/24/16.
55
*/
66

77
#include <stdlib.h>
@@ -364,7 +364,7 @@ int main (int argc, char * const argv[]) {
364364
mat = mata;
365365
}
366366

367-
fprintf(stderr, "query: %s\n", argv[optind + 1]);
367+
//fprintf(stderr, "query: %s\n", argv[optind + 1]);
368368
read_fp = gzopen(argv[optind + 1], "r");
369369

370370
if (! read_fp) {

src/ssw.c

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -181,13 +181,10 @@ static alignment_end* sw_sse2_byte (const int8_t* ref,
181181
step = -1;
182182
}
183183
for (i = begin; LIKELY(i != end); i += step) {
184-
//fprintf(stderr, "%d", ref[i]);
185184
int32_t cmp;
186185
__m128i e, vF = vZero, vMaxColumn = vZero; /* Initialize F value to 0.
187186
Any errors to vH values will be corrected in the Lazy_F loop.
188187
*/
189-
// max16(maxColumn[i], vMaxColumn);
190-
// fprintf(stderr, "middle[%d]: %d\n", i, maxColumn[i]);
191188

192189
__m128i vH = pvHStore[segLen - 1];
193190
vH = _mm_slli_si128 (vH, 1); /* Shift the 128-bit value in vH left by 1 byte. */
@@ -202,22 +199,13 @@ static alignment_end* sw_sse2_byte (const int8_t* ref,
202199
for (j = 0; LIKELY(j < segLen); ++j) {
203200
vH = _mm_adds_epu8(vH, _mm_load_si128(vP + j));
204201
vH = _mm_subs_epu8(vH, vBias); /* vH will be always > 0 */
205-
// max16(maxColumn[i], vH);
206-
// fprintf(stderr, "H[%d]: %d\n", i, maxColumn[i]);
207-
// int8_t* t;
208-
// int32_t ti;
209-
//for (t = (int8_t*)&vH, ti = 0; ti < 16; ++ti) fprintf(stderr, "%d\t", *t++);
210202

211203
/* Get max from vH, vE and vF. */
212204
e = _mm_load_si128(pvE + j);
213205
vH = _mm_max_epu8(vH, e);
214206
vH = _mm_max_epu8(vH, vF);
215207
vMaxColumn = _mm_max_epu8(vMaxColumn, vH);
216208

217-
// max16(maxColumn[i], vMaxColumn);
218-
// fprintf(stderr, "middle[%d]: %d\n", i, maxColumn[i]);
219-
// for (t = (int8_t*)&vMaxColumn, ti = 0; ti < 16; ++ti) fprintf(stderr, "%d\t", *t++);
220-
221209
/* Save vH values. */
222210
_mm_store_si128(pvHStore + j, vH);
223211

@@ -290,12 +278,9 @@ static alignment_end* sw_sse2_byte (const int8_t* ref,
290278

291279
/* Record the max score of current column. */
292280
max16(maxColumn[i], vMaxColumn);
293-
// fprintf(stderr, "maxColumn[%d]: %d\n", i, maxColumn[i]);
294281
if (maxColumn[i] == terminate) break;
295282
}
296283

297-
fprintf(stderr, "\n");
298-
299284
/* Trace the alignment ending position on read. */
300285
uint8_t *t = (uint8_t*)pvHmax;
301286
int32_t column_len = segLen * 16;
@@ -324,15 +309,13 @@ fprintf(stderr, "\n");
324309

325310
edge = (end_ref - maskLen) > 0 ? (end_ref - maskLen) : 0;
326311
for (i = 0; i < edge; i ++) {
327-
// fprintf (stderr, "maxColumn[%d]: %d\n", i, maxColumn[i]);
328312
if (maxColumn[i] > bests[1].score) {
329313
bests[1].score = maxColumn[i];
330314
bests[1].ref = i;
331315
}
332316
}
333317
edge = (end_ref + maskLen) > refLen ? refLen : (end_ref + maskLen);
334318
for (i = edge + 1; i < refLen; i ++) {
335-
// fprintf (stderr, "refLen: %d\tmaxColumn[%d]: %d\n", refLen, i, maxColumn[i]);
336319
if (maxColumn[i] > bests[1].score) {
337320
bests[1].score = maxColumn[i];
338321
bests[1].ref = i;
@@ -608,7 +591,6 @@ static cigar* banded_sw (const int8_t* ref,
608591
temp1 = i == 0 ? -weight_gapO : h_b[e] - weight_gapO;
609592
temp2 = i == 0 ? -weight_gapE : e_b[e] - weight_gapE;
610593
e_b[u] = temp1 > temp2 ? temp1 : temp2;
611-
//fprintf(stderr, "de: %d\twidth_d: %d\treadLen: %d\ts2:%lu\n", de, width_d, readLen, s2);
612594
direction_line[de] = temp1 > temp2 ? 3 : 2;
613595

614596
temp1 = h_c[b] - weight_gapO;
@@ -823,7 +805,6 @@ s_align* ssw_align (const s_profile* prof,
823805
}
824806
r->score1 = bests[0].score;
825807
r->ref_end1 = bests[0].ref;
826-
//fprintf(stderr, "0based ref_end: %d\n", r->ref_end1);
827808
r->read_end1 = bests[0].read;
828809
if (maskLen >= 15) {
829810
r->score2 = bests[1].score;

0 commit comments

Comments
 (0)