Skip to content

Commit

Permalink
Now original SHRiMP format outputs the posterior score instead of the…
Browse files Browse the repository at this point in the history
… raw SW score in colour space.
  • Loading branch information
misko committed Oct 31, 2011
1 parent 0dd10f4 commit 47e40bf
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions gmapper/output.c
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,8 @@ hit_output(struct read_entry * re, struct read_hit * rh, struct read_hit * rh_mp
char * tmp_output;

if (rh != NULL) {
int score=rh->sfrp->score;
rh->sfrp->score=rh->score_full;
tmp_output = output_normal(re->name, contig_names[rh->cn], rh->sfrp,
genome_len[rh->cn], shrimp_mode == MODE_COLOUR_SPACE, re->read[rh->st],
re->read_len, re->initbp[rh->st], rh->gen_st, Rflag);
Expand All @@ -244,6 +246,7 @@ hit_output(struct read_entry * re, struct read_hit * rh, struct read_hit * rh_mp
*output_buffer += snprintf(*output_buffer, output_buffer_end - *output_buffer, "%s\n", tmp_output);
free(tmp_output);
}
rh->sfrp->score=score;
} else { // this is an unmapped read (part of a pair)
*output_buffer += snprintf(*output_buffer, output_buffer_end - *output_buffer, ">%s\n", re->name);
}
Expand Down

0 comments on commit 47e40bf

Please sign in to comment.