From f4c3aaf2265e653eaf18764f35a2ad905e46ecf1 Mon Sep 17 00:00:00 2001 From: Hasindu Gamaarachchi Date: Sun, 2 Apr 2023 22:51:45 +1000 Subject: [PATCH] minor summary change --- src/f5c.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/f5c.c b/src/f5c.c index 87212a0a..2a103394 100644 --- a/src/f5c.c +++ b/src/f5c.c @@ -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); }