MCPcopy Create free account
hub / github.com/OpenMS/OpenMS / isSemanticallyValid

Method isSemanticallyValid

src/openms/source/FORMAT/MzDataFile.cpp:40–55  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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 {

Callers

nothing calls this directly

Calls 3

loadFromOBOMethod · 0.80
loadMethod · 0.45
validateMethod · 0.45

Tested by

no test coverage detected