Commit 86ccfbd8 authored by RomainFeron's avatar RomainFeron
Browse files

Fixed problem with comment and header lines in subset tabulated output

parent dd3e92ea
......@@ -47,15 +47,16 @@ void Subset::process_marker(Marker& marker) {
void Subset::generate_output() {
std::ofstream output_file = open_output(this->parameters.output_file_path);
this->output_file = open_output(this->parameters.output_file_path);
if (not this->parameters.output_fasta) {
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 <<
"];signif_threshold:" << parameters.signif_threshold << ";bonferroni:" << std::boolalpha << (not parameters.disable_correction);
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 <<
"];signif_threshold:" << parameters.signif_threshold << ";bonferroni:" <<
std::boolalpha << (not parameters.disable_correction) << "\n";
this->output_file << print_list(this->markers_table.header.header, "\t") << "\n";
......
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