35 #ifndef OPENMS_FORMAT_CONTROLLEDVOCABULARY_H
36 #define OPENMS_FORMAT_CONTROLLEDVOCABULARY_H
78 static String getXRefTypeName(XRefType type);
114 const String& name()
const;
122 void loadFromOBO(
const String& name,
const String& filename);
125 bool exists(
const String&
id)
const;
128 bool hasTermWithName(
const String& name)
const;
155 void getAllChildTerms(std::set<String>& terms,
const String& parent)
const;
162 bool isChildOf(
const String& child,
const String& parent)
const;
170 bool checkName_(
const String&
id,
const String& name,
bool ignore_case =
true);
186 #endif // OPENMS_FORMAT_CONTROLLEDVOCABULARY_H
Definition: ControlledVocabulary.h:67
Representation of a CV term.
Definition: ControlledVocabulary.h:60
A more convenient string class.
Definition: String.h:56
Map< String, CVTerm > terms_
Map from ID to CVTerm.
Definition: ControlledVocabulary.h:173
String id
Identifier.
Definition: ControlledVocabulary.h:81
Definition: ControlledVocabulary.h:74
StringList xref_binary
xref binary-data-type for the CV-term (list of all allowed data value types for the current binary da...
Definition: ControlledVocabulary.h:89
std::ostream & operator<<(std::ostream &os, const ItraqQuantifier::ItraqQuantifierStats &stats)
Definition: ControlledVocabulary.h:73
StringList unparsed
Unparsed lines from the definition file.
Definition: ControlledVocabulary.h:87
bool obsolete
Flag that indicates of the term is obsolete.
Definition: ControlledVocabulary.h:84
Class to hold strings, numeric values, lists of strings and lists of numeric values.
Definition: DataValue.h:57
Definition: ControlledVocabulary.h:70
Representation of a controlled vocabulary.
Definition: ControlledVocabulary.h:54
Definition: ControlledVocabulary.h:71
XRefType
define xsd types allowed in cv term to specify their value-type
Definition: ControlledVocabulary.h:63
Map< String, String > namesToIds_
Map from name to id.
Definition: ControlledVocabulary.h:175
Definition: ControlledVocabulary.h:68
std::set< String > units
unit accession ids, defined by relationship has units
Definition: ControlledVocabulary.h:90
XRefType xref_type
xref value-type for the CV-term
Definition: ControlledVocabulary.h:88
String name
Text name.
Definition: ControlledVocabulary.h:80
StringList synonyms
List of synonyms.
Definition: ControlledVocabulary.h:86
std::set< String > parents
The parent IDs.
Definition: ControlledVocabulary.h:82
String list.
Definition: StringList.h:56
std::set< String > children
The child IDs.
Definition: ControlledVocabulary.h:83
Definition: ControlledVocabulary.h:72
Definition: ControlledVocabulary.h:66
String name_
Name set in the load method.
Definition: ControlledVocabulary.h:177
Map class based on the STL map (containing serveral convenience functions)
Definition: Map.h:50
Definition: ControlledVocabulary.h:69
String description
Term description.
Definition: ControlledVocabulary.h:85