From 90b9e3c544455b99ba9fcc5aead932539023da30 Mon Sep 17 00:00:00 2001 From: Ryan Lim Date: Thu, 1 Jul 2021 18:35:16 -0400 Subject: [PATCH] initialize primer values --- src/primer_bed.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/primer_bed.cpp b/src/primer_bed.cpp index 9fa99867..c194d96a 100644 --- a/src/primer_bed.cpp +++ b/src/primer_bed.cpp @@ -96,6 +96,9 @@ std::vector populate_from_file(std::string path, int32_t offset = 0){ int ctr = 0; primer p; p.set_strand(0); // Set strand to NULL + p.set_start(0); // Initialize primer variables + p.set_end(0); + p.set_score(-1); while(std::getline(lineStream,cell,'\t')){ switch(ctr){ case 0: @@ -287,4 +290,4 @@ primer get_min_start(std::vector primers){ primer get_max_end(std::vector primers){ auto minmax_start = std::minmax_element(primers.begin(), primers.end(), [] (primer lhs, primer rhs) {return lhs.get_end() < rhs.get_end();}); return *(minmax_start.second); -} \ No newline at end of file +}