MCPcopy Create free account
hub / github.com/OpenMS/OpenMS / getOutputDir

Method getOutputDir

src/openms_gui/source/VISUAL/TOPPASOutputFileListVertex.cpp:281–302  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

279 }
280
281 String TOPPASOutputFileListVertex::getOutputDir() const
282 {
283 String dir = String("TOPPAS_out") + String(QDir::separator());
284 if (output_folder_name_.isEmpty())
285 {
286 TOPPASEdge* e = *inEdgesBegin();
287 if (e == nullptr)
288 {
289 throw Exception::MissingInformation(__FILE__, __LINE__, OPENMS_PRETTY_FUNCTION, "To open the output folder, an input edge is required to knit a folder name.");
290 }
291 const TOPPASVertex* tv = e->getSourceVertex();
292 // create meaningful output name using vertex + TOPP name + output parameter, e.g. "010-FileConverter-out"
293 dir += get3CharsNumber_(topo_nr_) + "-"
294 + tv->getName() + "-"
295 + e->getSourceOutParamName().remove(':');
296 }
297 else
298 {
299 dir += output_folder_name_;
300 }
301 return dir;
302 }
303
304 String TOPPASOutputFileListVertex::createOutputDir() const
305 {

Callers

nothing calls this directly

Calls 6

getSourceVertexMethod · 0.80
getSourceOutParamNameMethod · 0.80
StringClass · 0.50
isEmptyMethod · 0.45
getNameMethod · 0.45
removeMethod · 0.45

Tested by

no test coverage detected