Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b8a0ae1
commit e7520bd
Showing
1 changed file
with
57 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
|
||
|
||
class edam_manager(object): | ||
|
||
def __init__(self): | ||
# ontology parsing happens here | ||
pass | ||
|
||
def get_terms_by_name(self, name): | ||
""" | ||
query for ontological terms by name | ||
:param name: str | ||
:return: collection of term | ||
""" | ||
pass | ||
|
||
def common_ancestors(self, term1, term2): | ||
""" | ||
returns the terms that are the least common ancestors of the given two terms | ||
:param term1: | ||
:param term2: | ||
:return: collection of term | ||
""" | ||
pass | ||
|
||
def is_placeholder(self, term): | ||
""" | ||
checks if a term is a real term or a placeholder created for structuring purposes. | ||
:param term: | ||
:return: True if the term is an organisational entity (e.g., alignment, 'phylogenetic data') | ||
or False if it is a real term (e.g., 'sequence alignment', 'phylogenetic tree'). | ||
""" | ||
pass | ||
|
||
def format2data(self, term): | ||
""" | ||
given a format term returns the corresponding data terms, e.g. given 'newick' returns 'phylogenetic tree'. | ||
:param term: format term | ||
:return: collection of data term | ||
""" | ||
pass | ||
|
||
def get_description(self, term): | ||
""" | ||
returns the term description | ||
:param term: | ||
:return: str | ||
""" | ||
pass | ||
|
||
def get_term_by_id(self, id): | ||
""" | ||
query for an ontological term by id | ||
:param id: str | ||
:return: term | ||
""" | ||
pass |