| 561 | } |
| 562 | |
| 563 | ExitCodes main_(int, const char**) override |
| 564 | { |
| 565 | /** |
| 566 | * handle parameters |
| 567 | */ |
| 568 | getParameters_in_out_(); |
| 569 | getParameters_labels_(); |
| 570 | getParameters_algorithm_(); |
| 571 | |
| 572 | /** |
| 573 | * load consensus map |
| 574 | */ |
| 575 | ConsensusXMLFile file; |
| 576 | ConsensusMap map_in; |
| 577 | file.load(in_, map_in); |
| 578 | |
| 579 | /** |
| 580 | * load (optional) blacklist |
| 581 | */ |
| 582 | MzMLFile file_blacklist; |
| 583 | if (!(in_blacklist_.empty())) |
| 584 | { |
| 585 | file_blacklist.load(in_blacklist_, exp_blacklist_); |
| 586 | } |
| 587 | |
| 588 | /** |
| 589 | * generate patterns |
| 590 | */ |
| 591 | MultiplexDeltaMassesGenerator generator = MultiplexDeltaMassesGenerator(labels_, missed_cleavages_, label_mass_shift_); |
| 592 | #ifdef DEBUG |
| 593 | generator.printSamplesLabelsList(std::cout); |
| 594 | generator.printDeltaMassesList(std::cout); |
| 595 | #endif |
| 596 | |
| 597 | /** |
| 598 | * construct the new consensus map |
| 599 | */ |
| 600 | ConsensusMap map_out = map_in; |
| 601 | ConsensusMap map_conflicts = map_in; |
| 602 | map_out.resize(0); |
| 603 | map_conflicts.resize(0); |
| 604 | constructNewConsensusMap_(map_in, map_out, map_conflicts, generator); |
| 605 | |
| 606 | /** |
| 607 | * store consensus maps |
| 608 | */ |
| 609 | ConsensusXMLFile file_out; |
| 610 | ConsensusXMLFile file_out_conflicts; |
| 611 | file_out.store(out_, map_out); |
| 612 | if (!out_conflicts_.empty()) |
| 613 | { |
| 614 | file_out_conflicts.store(out_conflicts_, map_conflicts); |
| 615 | } |
| 616 | |
| 617 | return EXECUTION_OK; |
| 618 | } |
| 619 | |
| 620 | }; |
nothing calls this directly
no test coverage detected