| 65 | } |
| 66 | |
| 67 | void loadSwathFiles(const String& file_in, const String& tmp, const String& readoptions, boost::shared_ptr<ExperimentalSettings>& exp_meta, std::vector<OpenSwath::SwathMap>& swath_maps, |
| 68 | Interfaces::IMSDataConsumer* plugin_consumer = nullptr) |
| 69 | { |
| 70 | SwathFile swath_file; |
| 71 | swath_file.setLogType(log_type_); |
| 72 | |
| 73 | FileTypes::Type in_file_type = FileHandler::getTypeByFileName(file_in); |
| 74 | if (in_file_type == FileTypes::MZML) |
| 75 | { |
| 76 | swath_maps = swath_file.loadMzML(file_in, tmp, exp_meta, readoptions, plugin_consumer); |
| 77 | } |
| 78 | else if (in_file_type == FileTypes::MZXML) |
| 79 | { |
| 80 | swath_maps = swath_file.loadMzXML(file_in, tmp, exp_meta, readoptions); |
| 81 | } |
| 82 | else |
| 83 | { |
| 84 | throw Exception::IllegalArgument(__FILE__, __LINE__, OPENMS_PRETTY_FUNCTION, "Input file needs to have ending .mzML(.gz) or .mzXML(.gz)"); |
| 85 | } |
| 86 | } |
| 87 | |
| 88 | ExitCodes main_(int, const char**) override |
| 89 | { |
nothing calls this directly
no test coverage detected