35 #ifndef OPENMS_FORMAT_CONTROLLEDVOCABULARY_H
36 #define OPENMS_FORMAT_CONTROLLEDVOCABULARY_H
78 static String getXRefTypeName(XRefType type);
116 const String& name()
const;
124 void loadFromOBO(
const String& name,
const String& filename);
127 bool exists(
const String&
id)
const;
130 bool hasTermWithName(
const String& name)
const;
157 void getAllChildTerms(std::set<String>& terms,
const String& parent)
const;
164 bool isChildOf(
const String& child,
const String& parent)
const;
172 bool checkName_(
const String&
id,
const String& name,
bool ignore_case =
true);
188 #endif // OPENMS_FORMAT_CONTROLLEDVOCABULARY_H
Representation of a CV term.
Definition: ControlledVocabulary.h:60
A more convenient string class.
Definition: String.h:57
Map< String, CVTerm > terms_
Map from ID to CVTerm.
Definition: ControlledVocabulary.h:175
String id
Identifier.
Definition: ControlledVocabulary.h:83
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:91
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:47
StringList unparsed
Unparsed lines from the definition file.
Definition: ControlledVocabulary.h:89
bool obsolete
Flag that indicates of the term is obsolete.
Definition: ControlledVocabulary.h:86
Class to hold strings, numeric values, lists of strings and lists of numeric values.
Definition: DataValue.h:57
Representation of a controlled vocabulary.
Definition: ControlledVocabulary.h:54
Map< String, String > namesToIds_
Map from name to id.
Definition: ControlledVocabulary.h:177
std::set< String > units
unit accession ids, defined by relationship has units
Definition: ControlledVocabulary.h:92
std::ostream & operator<<(std::ostream &os, const AccurateMassSearchResult &amsr)
XRefType xref_type
xref value-type for the CV-term
Definition: ControlledVocabulary.h:90
String name
if it is a score type, lookup has_order
Definition: ControlledVocabulary.h:82
StringList synonyms
List of synonyms.
Definition: ControlledVocabulary.h:88
std::vector< String > StringList
Vector of String.
Definition: ListUtils.h:74
std::set< String > parents
The parent IDs.
Definition: ControlledVocabulary.h:84
std::set< String > children
The child IDs.
Definition: ControlledVocabulary.h:85
String name_
Name set in the load method.
Definition: ControlledVocabulary.h:179
Map class based on the STL map (containing several convenience functions)
Definition: Map.h:51
String description
Term description.
Definition: ControlledVocabulary.h:87