Commit 1312c77d authored by Mathieu Giraud's avatar Mathieu Giraud
Browse files

core/stats.cpp, core/segment.h: more compact messages for stats

parent 0f14620b
...@@ -259,7 +259,7 @@ void MultiGermline::build_with_one_index(string seed) ...@@ -259,7 +259,7 @@ void MultiGermline::build_with_one_index(string seed)
void MultiGermline::out_stats(ostream &out) void MultiGermline::out_stats(ostream &out)
{ {
out << " " ; out << " " ;
out << "reads av. len clones av. reads" ; out << "reads av. len clones av. rds" ;
out << endl ; out << endl ;
for (list<Germline*>::const_iterator it = germlines.begin(); it != germlines.end(); ++it) for (list<Germline*>::const_iterator it = germlines.begin(); it != germlines.end(); ++it)
......
...@@ -34,10 +34,10 @@ enum SEGMENTED { DONT_KNOW, SEG_PLUS, SEG_MINUS, UNSEG_TOO_SHORT, UNSEG_STRAND_N ...@@ -34,10 +34,10 @@ enum SEGMENTED { DONT_KNOW, SEG_PLUS, SEG_MINUS, UNSEG_TOO_SHORT, UNSEG_STRAND_N
TOTAL_SEG_BUT_TOO_SHORT_FOR_THE_WINDOW, TOTAL_SEG_BUT_TOO_SHORT_FOR_THE_WINDOW,
STATS_SIZE } ; STATS_SIZE } ;
const char* const segmented_mesg[] = { "?", "SEG_+", "SEG_-", "UNSEG too short", "UNSEG strand", const char* const segmented_mesg[] = { "?", "SEG_+", "SEG_-", "UNSEG too short", "UNSEG strand",
"UNSEG too few (zero)", "UNSEG too few V", "UNSEG too few J", "UNSEG too few (0)", "UNSEG too few V", "UNSEG too few J",
"UNSEG < delta_min", "UNSEG > delta_max", "UNSEG ambiguous", "UNSEG < delta_min", "UNSEG > delta_max", "UNSEG ambiguous",
"= SEG, with window", "= SEG, with window",
"= SEG, but no window", "= SEG, no window",
} ; } ;
class Segmenter { class Segmenter {
......
...@@ -24,8 +24,10 @@ float Stats::getAverage() ...@@ -24,8 +24,10 @@ float Stats::getAverage()
ostream &operator<<(ostream &out, Stats &stats) ostream &operator<<(ostream &out, Stats &stats)
{ {
out << " ";
if (stats.label.size()) if (stats.label.size())
out << " " << left << setw(20) << stats.label << " ->" ; out << left << setw(17) << stats.label << "->" ;
out << right << setw(9) << stats.nb ; out << right << setw(9) << stats.nb ;
out << " " << setw(5) ; out << " " << setw(5) ;
......
...@@ -11,7 +11,7 @@ $ Parses germline/IGHJ.fa ...@@ -11,7 +11,7 @@ $ Parses germline/IGHJ.fa
1: 701 bp in 13 sequences 1: 701 bp in 13 sequences
$ Find the good number of "too short sequences" for windows of size 100 $ Find the good number of "too short sequences" for windows of size 100
1: SEG, but no window -> 2222 1: SEG, no window -> 2222
$ Find the good number of segmented sequences (including "too short sequences") $ Find the good number of segmented sequences (including "too short sequences")
1: segmented 13149 reads .100%. 1: segmented 13149 reads .100%.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment