MCPcopy Create free account
hub / github.com/BirolLab/abyss / writeResults

Function writeResults

RResolver/RResolverShort.cpp:231–272  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

229}
230
231void
232writeResults(
233 const ImaginaryContigPaths& supportedPaths,
234 const ImaginaryContigPaths& unsupportedPaths,
235 const std::string& commandLine)
236{
237 if (!opt::outputContigsPath.empty()) {
238 storeContigs(opt::outputContigsPath);
239 }
240
241 if (!opt::outputGraphPath.empty()) {
242 storeContigGraph(opt::outputGraphPath, PROGRAM, commandLine);
243 }
244
245 if (!opt::outputSupportedPathsPath.empty()) {
246 if (opt::verbose) {
247 std::cerr << "Writing supported paths to `" << opt::outputSupportedPathsPath << "'..."
248 << std::endl;
249 }
250 std::ofstream outputSupportedPaths(opt::outputSupportedPathsPath);
251 writePaths(outputSupportedPaths, supportedPaths);
252 assert(outputSupportedPaths.good());
253 outputSupportedPaths.close();
254 if (opt::verbose) {
255 std::cerr << "Supported paths written." << std::endl;
256 }
257 }
258
259 if (!opt::outputUnsupportedPathsPath.empty()) {
260 if (opt::verbose) {
261 std::cerr << "Writing unsupported paths to `" << opt::outputUnsupportedPathsPath
262 << "'..." << std::endl;
263 }
264 std::ofstream outputUnsupportedPaths(opt::outputUnsupportedPathsPath);
265 writePaths(outputUnsupportedPaths, unsupportedPaths);
266 assert(outputUnsupportedPaths.good());
267 outputUnsupportedPaths.close();
268 if (opt::verbose) {
269 std::cerr << "Unsupported paths written." << std::endl;
270 }
271 }
272}
273
274int
275main(int argc, char** argv)

Callers 1

mainFunction · 0.85

Calls 6

storeContigsFunction · 0.85
storeContigGraphFunction · 0.85
writePathsFunction · 0.85
goodMethod · 0.80
closeMethod · 0.80
emptyMethod · 0.45

Tested by

no test coverage detected