Skip to content

Commit

Permalink
Changed output of read coverage for rare case of no variants; increme…
Browse files Browse the repository at this point in the history
…nt version to 0.27.1
  • Loading branch information
jeffreybarrick committed Dec 16, 2015
1 parent d9a78c3 commit 87c22d6
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 4 deletions.
2 changes: 1 addition & 1 deletion configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
# -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.
AC_PREREQ([2.65])
AC_INIT([breseq], [0.27.0b], [[email protected]], [breseq], [http://barricklab.org/breseq])
AC_INIT([breseq], [0.27.1], [[email protected]], [breseq], [http://barricklab.org/breseq])
AC_CONFIG_AUX_DIR(aux_build)
AC_CONFIG_MACRO_DIR([aux_build/m4])
AC_CONFIG_HEADERS([aux_build/config.h])
Expand Down
21 changes: 18 additions & 3 deletions src/c/breseq/output.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1194,13 +1194,28 @@ string html_read_alignment_table_string(diff_entry_list_t& list_ref, bool show_d
{

// Show information about the strands supporting the change

if ( (c[MAJOR_BASE] == c[REF_BASE]) || (c[MINOR_BASE] == c[REF_BASE]) || (c[MINOR_BASE] == "N") ) {

ss << tr("class=\"information_table_row\"",
td("colspan=\"" + to_string(total_cols) + "\"",
"Reads supporting (aligned to +/- strand):&nbsp;&nbsp;" +
b("major") + " Allele " + c[MAJOR_BASE] + " (" + c[MAJOR_COV] + ")" + ";&nbsp;&nbsp;" +
b("minor") + " allele " + c[MINOR_BASE] + " (" + c[MINOR_COV] + ")" + ";&nbsp;&nbsp;" +
b("ref") + " base " + c[REF_BASE] + " (" + c[REF_COV] + ")" + ";&nbsp;&nbsp;" +
b("new") + " base " + c[NEW_BASE] + " (" + c[NEW_COV] + ")" + ";&nbsp;&nbsp;" +
b("total") + " (" + c[TOTAL_COV] + ")"));


} else {

ss << tr("class=\"information_table_row\"",
td("colspan=\"" + to_string(total_cols) + "\"",
"Reads supporting (aligned to +/- strand):&nbsp;&nbsp;" +
b("ref") + " base " + c[REF_BASE] + " (" + c[REF_COV] + ")" + ";&nbsp;&nbsp;" +
b("major") + " base " + c[MAJOR_BASE] + " (" + c[MAJOR_COV] + ")" + ";&nbsp;&nbsp;" +
b("minor") + " base " + c[MINOR_BASE] + " (" + c[MINOR_COV] + ")" + ";&nbsp;&nbsp;" +
b("total") + " (" + c[TOTAL_COV] + ")"));

}

/* Fisher Strand Test */
if (c.entry_exists("fisher_strand_p_value"))
{
Expand Down

0 comments on commit 87c22d6

Please sign in to comment.