Skip to content

Commit

Permalink
minor summary change
Browse files Browse the repository at this point in the history
  • Loading branch information
hasindu2008 committed Apr 2, 2023
1 parent 64599c5 commit f4c3aaf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/f5c.c
Original file line number Diff line number Diff line change
Expand Up @@ -1047,8 +1047,9 @@ void output_db(core_t* core, db_t* db) {
if(summary_fp != NULL && summary.num_events > 0) {
size_t strand_idx = 0;
std::string fast5_path_str = core->readbb->get_signal_path(qname);
const char *path = (core->opt.flag & F5C_RD_SLOW5) ? "slow5" : fast5_path_str.c_str();
fprintf(summary_fp, "%ld\t%s\t", (long)(db->read_idx[i]), qname);
fprintf(summary_fp, "%s\t%s\t%s\t",fast5_path_str.c_str(), (core->opt.flag & F5C_RNA) ? "rna" : "dna", strand_idx == 0 ? "template" : "complement" );
fprintf(summary_fp, "%s\t%s\t%s\t",path, (core->opt.flag & F5C_RNA) ? "rna" : "dna", strand_idx == 0 ? "template" : "complement" );
fprintf(summary_fp, "%d\t%d\t%d\t%d\t", summary.num_events, summary.num_steps, summary.num_skips, summary.num_stays);
fprintf(summary_fp, "%.2lf\t%.3lf\t%.3lf\t%.3lf\t%.3lf\n", summary.sum_duration/(db->sig[i]->sample_rate), scalings.shift, scalings.scale, 0.0, scalings.var);
}
Expand Down

0 comments on commit f4c3aaf

Please # to comment.