ControlledVocabulary

class pyopenms.ControlledVocabulary

Bases: object

Cython implementation of _ControlledVocabulary

Documentation is available at http://www.openms.de/current_doxygen/html/classOpenMS_1_1ControlledVocabulary.html

__init__()
  • Cython signature: void ControlledVocabulary()

  • Cython signature: void ControlledVocabulary(ControlledVocabulary &)

Methods

__init__

  • Cython signature: void ControlledVocabulary()

exists

Cython signature: bool exists(String id) Returns true if the term is in the CV.

getAllChildTerms

Cython signature: void getAllChildTerms(libcpp_set[String] terms, String parent) Writes all child terms recursively into terms

getTerm

Cython signature: CVTerm_ControlledVocabulary getTerm(String id) Returns a term specified by ID

getTermByName

Cython signature: CVTerm_ControlledVocabulary getTermByName(String name, String desc) Returns a term specified by name

hasTermWithName

Cython signature: bool hasTermWithName(String name) Returns true if a term with the given name is in the CV.

isChildOf

Cython signature: bool isChildOf(String child, String parent) Returns True if child is a child of parent

loadFromOBO

Cython signature: void loadFromOBO(String name, String filename) Loads the CV from an OBO file

name

Cython signature: String name() Returns the CV name (set in the load method)

exists()

Cython signature: bool exists(String id) Returns true if the term is in the CV. Returns false otherwise.

getAllChildTerms()

Cython signature: void getAllChildTerms(libcpp_set[String] terms, String parent) Writes all child terms recursively into terms

getTerm()

Cython signature: CVTerm_ControlledVocabulary getTerm(String id) Returns a term specified by ID

getTermByName()

Cython signature: CVTerm_ControlledVocabulary getTermByName(String name, String desc) Returns a term specified by name

hasTermWithName()

Cython signature: bool hasTermWithName(String name) Returns true if a term with the given name is in the CV. Returns false otherwise

isChildOf()

Cython signature: bool isChildOf(String child, String parent) Returns True if child is a child of parent

loadFromOBO()

Cython signature: void loadFromOBO(String name, String filename) Loads the CV from an OBO file

name()

Cython signature: String name() Returns the CV name (set in the load method)