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

Method isSemanticallyValid

src/openms/source/FORMAT/MzQuantMLFile.cpp:43–62  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 3

loadFromOBOMethod · 0.80
loadMethod · 0.45
validateMethod · 0.45

Tested by

no test coverage detected