Open the bubble file. */
| 25 | |
| 26 | /** Open the bubble file. */ |
| 27 | static inline |
| 28 | void openBubbleFile(std::ofstream& out) |
| 29 | { |
| 30 | if (opt::snpPath.empty()) |
| 31 | return; |
| 32 | std::string path; |
| 33 | if (opt::rank < 0) { |
| 34 | path = opt::snpPath; |
| 35 | } else { |
| 36 | std::ostringstream s; |
| 37 | s << "snp-" << opt::rank << ".fa"; |
| 38 | path = s.str(); |
| 39 | } |
| 40 | out.open(path.c_str()); |
| 41 | assert_good(out, path); |
| 42 | } |
| 43 | |
| 44 | /** Pop bubbles. */ |
| 45 | static inline |
no test coverage detected