From 3b9d87094ee525f88ab56edf334b12c06562a127 Mon Sep 17 00:00:00 2001 From: Jeffrey Barrick Date: Mon, 27 May 2024 19:33:04 -0500 Subject: [PATCH] Fixed extra comma in gdtools COMPARE TABLE output header #368 --- src/c/breseq/genome_diff.cpp | 2 +- tests/gdtools_compare_7/expected.csv | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/c/breseq/genome_diff.cpp b/src/c/breseq/genome_diff.cpp index 162f37f5..e371daf7 100644 --- a/src/c/breseq/genome_diff.cpp +++ b/src/c/breseq/genome_diff.cpp @@ -4283,7 +4283,7 @@ void cGenomeDiff::write_table_file( // Output header line ofstream output_file(output_file_name.c_str()); - output_file << quote << "type" << quote << separator; + output_file << quote << "type" << quote; for (vector::iterator header_it = header_list.begin(); header_it != header_list.end(); header_it++) { output_file << separator << quote << *header_it << quote; } diff --git a/tests/gdtools_compare_7/expected.csv b/tests/gdtools_compare_7/expected.csv index 74e283c4..b0bc063e 100644 --- a/tests/gdtools_compare_7/expected.csv +++ b/tests/gdtools_compare_7/expected.csv @@ -1,4 +1,4 @@ -"type",,"seq_id","position","mutation","gd","gd_1","gd_2","annotation","gene","description" +"type","seq_id","position","mutation","gd","gd_1","gd_2","annotation","gene","description" "DEL","NC_001416-0","139","Δ1 bp","?","1","1","intergenic (–/-52)","– / → nu1","–/DNA packaging protein" "INS","NC_001416-1","4566","​+G","1","1","1","intergenic (+139/-10)","L → / → K","tail component/tail component" "SNP","NC_001416-2","1261","A→G","1","1","1","K338E (AAA→GAA)|noncoding (107/621 nt)","orf-401 →|orf206b ←","Tail fiber protein|"