| 41 | } |
| 42 | |
| 43 | bool MzQuantMLFile::isSemanticallyValid(const String & filename, StringList & errors, StringList & warnings) |
| 44 | { |
| 45 | //load mapping |
| 46 | CVMappings mapping; |
| 47 | CVMappingFile().load(File::find("/MAPPING/mzQuantML-mapping_1.0.0-rc2-general.xml"), mapping); |
| 48 | |
| 49 | //load cvs |
| 50 | ControlledVocabulary cv; |
| 51 | cv.loadFromOBO("MS", File::find("/CV/psi-ms.obo")); |
| 52 | cv.loadFromOBO("PATO", File::find("/CV/quality.obo")); |
| 53 | cv.loadFromOBO("UO", File::find("/CV/unit.obo")); |
| 54 | cv.loadFromOBO("BTO", File::find("/CV/brenda.obo")); |
| 55 | cv.loadFromOBO("GO", File::find("/CV/goslim_goa.obo")); |
| 56 | |
| 57 | //validate TODO |
| 58 | Internal::MzQuantMLValidator v(mapping, cv); |
| 59 | bool result = v.validate(filename, errors, warnings); |
| 60 | |
| 61 | return result; |
| 62 | } |
| 63 | |
| 64 | } // namespace OpenMS |
nothing calls this directly
no test coverage detected