Commit 44203108 authored by Mathieu Giraud's avatar Mathieu Giraud
Browse files

vidjil.cpp, core/{filter,similarityMatrix,windowExtractor}.cpp: 'right' before 'setw'

parent 5653d9a0
Pipeline #229745 passed with stages
in 36 minutes and 46 seconds
...@@ -182,7 +182,8 @@ ostream &operator<<(ostream &out, const FilterWithACAutomaton& obj){ ...@@ -182,7 +182,8 @@ ostream &operator<<(ostream &out, const FilterWithACAutomaton& obj){
int total_sequences_origin = total_filtered_calls * origin_bioreader_size; int total_sequences_origin = total_filtered_calls * origin_bioreader_size;
float aligned_rate = ((float)total_sequences_filtered/(float)total_sequences_origin) * 100; float aligned_rate = ((float)total_sequences_filtered/(float)total_sequences_origin) * 100;
out << fixed << setw(8) << total_sequences_filtered << "/" out << right
<< fixed << setw(8) << total_sequences_filtered << "/"
<< fixed << setw(8) << total_sequences_origin << " " << fixed << setw(8) << total_sequences_origin << " "
<< fixed << setprecision(1) << setw(6) << aligned_rate << "%" << fixed << setprecision(1) << setw(6) << aligned_rate << "%"
<< endl ; << endl ;
......
...@@ -118,6 +118,7 @@ JsonOutputWindowsMatrix::JsonOutputWindowsMatrix(SimilarityMatrix &m, float sim, ...@@ -118,6 +118,7 @@ JsonOutputWindowsMatrix::JsonOutputWindowsMatrix(SimilarityMatrix &m, float sim,
ostream &operator<<(ostream &out, const RawOutputSimilarityMatrix &outputMatrix) { ostream &operator<<(ostream &out, const RawOutputSimilarityMatrix &outputMatrix) {
SimilarityMatrix &matrix = outputMatrix.matrix; SimilarityMatrix &matrix = outputMatrix.matrix;
out << right;
out << " | " ; out << " | " ;
for (int num = 0; num < matrix.size(); num++) for (int num = 0; num < matrix.size(); num++)
......
...@@ -126,7 +126,9 @@ WindowsStorage *WindowExtractor::extract(OnlineBioReader *reads, ...@@ -126,7 +126,9 @@ WindowsStorage *WindowExtractor::extract(OnlineBioReader *reads,
cout << "." ; cout << "." ;
if (!(nb_reads % (PROGRESS_POINT * PROGRESS_LINE))) if (!(nb_reads % (PROGRESS_POINT * PROGRESS_LINE)))
cout << setw(10) << nb_reads / 1000 << "k reads " << fixed << setprecision(2) << setw(14) << bp_total / 1E6 << " Mbp" << endl ; cout << right
<< setw(10) << nb_reads / 1000 << "k reads "
<< fixed << setprecision(2) << setw(14) << bp_total / 1E6 << " Mbp" << endl ;
cout.flush() ; cout.flush() ;
} }
......
...@@ -1458,7 +1458,7 @@ int main (int argc, char **argv) ...@@ -1458,7 +1458,7 @@ int main (int argc, char **argv)
{ {
cout << "." ; cout << "." ;
if (!(num_clone % (PROGRESS_POINT_CLONES * PROGRESS_LINE))) if (!(num_clone % (PROGRESS_POINT_CLONES * PROGRESS_LINE)))
cout << setw(10) << num_clone / 1000 << "k clones " << endl; cout << right << setw(10) << num_clone / 1000 << "k clones " << endl;
cout.flush() ; cout.flush() ;
} }
} }
......
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