Commit 8aac2719 authored by RomainFeron's avatar RomainFeron
Browse files

Cleaned up comment lines in output files for consistency

parent 3b1d81ea
......@@ -55,6 +55,10 @@ void Distrib::generate_output() {
// Generate the output file
std::ofstream output_file = open_output(this->parameters.output_file_path);
output_file << "#source:distrib;min_depth:" << parameters.min_depth <<
";signif_threshold:" << parameters.signif_threshold <<
";bonferroni:" << std::boolalpha << (not parameters.disable_correction) <<
";n_markers:" << this->results.n_markers << "\n";
output_file << this->parameters.group1 << "\t" << this->parameters.group2 << "\t" << "Markers" << "\t" <<
"P" << "\t" << "CorrectedP" << "\t" << "Signif" << "\t" << "Bias" << "\n";
......
......@@ -47,6 +47,7 @@ void Freq::process_marker(Marker& marker) {
void Freq::generate_output() {
std::ofstream output_file = open_output(parameters.output_file_path);
output_file << "#source:radsex-freq;min_depth:" << parameters.min_depth << "\n";
output_file << "Frequency" << "\t" << "Count" << "\n";
for (uint i=1; i <= this->markers_table.header.n_individuals; ++i) output_file << i << "\t" << this->results[i] << "\n"; // Iterate over the map
......
......@@ -49,7 +49,7 @@ void Signif::generate_output() {
if (not this->parameters.output_fasta) {
output_file << "#source:signif;min_depth:" << parameters.min_depth << ";signif_threshold:" << parameters.signif_threshold <<
output_file << "#source:radsex-signif;min_depth:" << parameters.min_depth << ";signif_threshold:" << parameters.signif_threshold <<
";bonferroni:" << std::boolalpha << (not parameters.disable_correction) << "\n";
output_file << print_list(this->markers_table.header.header, "\t") << "\n";
......
......@@ -51,10 +51,10 @@ void Subset::generate_output() {
if (not this->parameters.output_fasta) {
this->output_file << "#source:subset;min_depth:" << parameters.min_depth << ";filters:[" <<
parameters.subset_min_group1 << "," << parameters.subset_max_group1 << "," <<
parameters.subset_min_group2 << "," << parameters.subset_max_group2 << "," <<
parameters.subset_min_individuals << "," << parameters.subset_max_individuals <<
this->output_file << "#source:radsex-subset;min_depth:" << parameters.min_depth << ";filters:" <<
parameters.group1 << "=[" << parameters.subset_min_group1 << "," << parameters.subset_max_group1 << "]," <<
parameters.group2 << "=[" << parameters.subset_min_group2 << "," << parameters.subset_max_group2 << "]," <<
"individuals=[" << parameters.subset_min_individuals << "," << parameters.subset_max_individuals <<
"];signif_threshold:" << parameters.signif_threshold << ";bonferroni:" <<
std::boolalpha << (not parameters.disable_correction) << "\n";
......
Supports Markdown
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