Skip to content

Commit

Permalink
added back missing sample id header in tovcf module
Browse files Browse the repository at this point in the history
  • Loading branch information
walaj committed May 6, 2024
1 parent b60423e commit fcfa17e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/svaba/tovcf.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ void runToVCF(int argc, char** argv) {
std::map<std::string, SampleInfo> tmp_alleles;
igzstream infile(opt::input_file.c_str(), std::ios::in);
size_t line_count = 0;

// Read the header line first
std::string headerLine;
if (std::getline(infile, headerLine)) {
Expand All @@ -124,9 +124,11 @@ void runToVCF(int argc, char** argv) {
for (size_t i = 38; i < headerv.size(); i++) {
assert(headerv[i].at(0) == 't' || headerv[i].at(0) == 'n');
allele_names.push_back(headerv[i]);
header.colnames += "\t" + headerv[i].substr(5);
}
}


// convert to VCF
VCFFile snowvcf(opt::input_file, opt::analysis_id, bwalker.Header(), header, true,
opt::verbose > 0);
Expand Down

0 comments on commit fcfa17e

Please sign in to comment.