| 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 | { |
nothing calls this directly
no test coverage detected