trinity-plugins/bwa-0.5.7-patched_multi_map/bwtsw2_aux.c
static void flag_fr(bwtsw2_t *b[2])
{
	int i, j;
	for (i = 0; i < b[0]->n; ++i) {
		bsw2hit_t *p = b[0]->hits + i;
		p->flag |= 0x10000;
	}
	for (i = 0; i < b[1]->n; ++i) {
		bsw2hit_t *p = b[1]->hits + i;
		p->flag |= 0x20000;
	}
	for (i = 0; i < b[0]->n; ++i) {
		bsw2hit_t *p = b[0]->hits + i;
		for (j = 0; j < b[1]->n; ++j) {
			bsw2hit_t *q = b[1]->hits + i;
			if (q->beg == p->beg && q->end == p->end && q->k == p->k && q->len == p->len && q->G == p->G) {
				q->flag |= 0x30000; p->flag |= 0x30000;
				break;
			}
		}
	}
}
/* set ->flag to records the origin of the hit (to forward bwt or reverse bwt) */
>flag to records the origin of the hit (to forward bwt or reverse bwt)
> flag to records the origin of the hit ( to forward bwt or reverse bwt )
static void flag_fr(bwtsw2_t *b[2])
{
	int i, j;
	for (i = 0; i < b[0]->n; ++i) {
		bsw2hit_t *p = b[0]->hits + i;
		p->flag |= 0x10000;
	}
	for (i = 0; i < b[1]->n; ++i) {
		bsw2hit_t *p = b[1]->hits + i;
		p->flag |= 0x20000;
	}
	for (i = 0; i < b[0]->n; ++i) {
		bsw2hit_t *p = b[0]->hits + i;
		for (j = 0; j < b[1]->n; ++j) {
			bsw2hit_t *q = b[1]->hits + i;
			if (q->beg == p->beg && q->end == p->end && q->k == p->k && q->len == p->len && q->G == p->G) {
				q->flag |= 0x30000; p->flag |= 0x30000;
				break;
			}
		}
	}
}
static void flag_fr ( bwtsw2_t * b [ 2 ] ) { int i , j ; for ( i = 0 ; i < b [ 0 ] -> n ; ++ i ) { bsw2hit_t * p = b [ 0 ] -> hits + i ; p -> flag |= 0x10000 ; } for ( i = 0 ; i < b [ 1 ] -> n ; ++ i ) { bsw2hit_t * p = b [ 1 ] -> hits + i ; p -> flag |= 0x20000 ; } for ( i = 0 ; i < b [ 0 ] -> n ; ++ i ) { bsw2hit_t * p = b [ 0 ] -> hits + i ; for ( j = 0 ; j < b [ 1 ] -> n ; ++ j ) { bsw2hit_t * q = b [ 1 ] -> hits + i ; if ( q -> beg == p -> beg && q -> end == p -> end && q -> k == p -> k && q -> len == p -> len && q -> G == p -> G ) { q -> flag |= 0x30000 ; p -> flag |= 0x30000 ; break ; } } } }
set ->flag to records the origin of the hit (to forward bwt or reverse bwt)
set - > flag to records the origin of the hit ( to forward bwt or reverse bwt )