| 38 | } |
| 39 | |
| 40 | bool MzDataFile::isSemanticallyValid(const String & filename, StringList & errors, StringList & warnings) |
| 41 | { |
| 42 | //load mapping |
| 43 | CVMappings mapping; |
| 44 | CVMappingFile().load(File::find("/MAPPING/mzdata-mapping.xml"), mapping); |
| 45 | |
| 46 | //load cvs |
| 47 | ControlledVocabulary cv; |
| 48 | cv.loadFromOBO("PSI", File::find("/CV/psi-mzdata.obo")); |
| 49 | |
| 50 | //validate |
| 51 | Internal::MzDataValidator v(mapping, cv); |
| 52 | bool result = v.validate(filename, errors, warnings); |
| 53 | |
| 54 | return result; |
| 55 | } |
| 56 | |
| 57 | void MzDataFile::load(const String & filename, PeakMap & map) |
| 58 | { |
nothing calls this directly
no test coverage detected