Skip to content

Commit

Permalink
Removes PE_FASTQ conditional branch before printing clusters in spher…
Browse files Browse the repository at this point in the history
…es. Always prints matched sequence. Closes #18.
  • Loading branch information
ezorita committed Feb 2, 2018
1 parent e125759 commit 6ea3f13
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions src/starcode.c
Expand Up @@ -426,12 +426,7 @@ starcode
for (int k = 0 ; k < hits->nitems ; k++) {
useq_t *match = (useq_t *) hits->items[k];
if (match->canonical != u) continue;
if (FORMAT == PE_FASTQ) {
fprintf(OUTPUTF1, ",%s", match->seq);
}
else {
fprintf(OUTPUTF1, ",%s", u->seq);
}
fprintf(OUTPUTF1, ",%s", match->seq);
}
}
}
Expand Down Expand Up @@ -1040,7 +1035,7 @@ sphere_clustering
if (useq->canonical != NULL) continue;
useq->canonical = useq;
if (useq->matches == NULL) continue;
// Bidirectional edge references simplifies the algorithm.
// Bidirectional edge references simplifie the algorithm.
// Directly proceed to claim neighbor counts.
gstack_t *matches;
for (int j = 0 ; (matches = useq->matches[j]) != TOWER_TOP ; j++) {
Expand Down

0 comments on commit 6ea3f13

Please sign in to comment.