Sleipnir
|
Represents a set of ontology terms. More...
#include <annotation.h>
Public Member Functions | |
bool | Open (std::istream &istmSlim, const IOntology *pOntology) |
void | GetGeneNames (std::vector< std::string > &vecstrGenes) const |
const CGene & | GetGene (size_t iSlim, size_t iGene) const |
Returns the gene at the requested index below the requested slim term. | |
size_t | GetSlims () const |
Returns the number of ontology terms in this slim. | |
size_t | GetGenes (size_t iSlim) const |
Returns the number of genes annotated below the given slim term. | |
const std::string & | GetSlim (size_t iSlim) const |
Returns the string ID of the ontology term at the given slim index. | |
size_t | GetNodes (size_t iSlim) const |
Returns the number of ontology terms in the requested slim. | |
size_t | GetNode (size_t iSlim, size_t iTerm) const |
Returns the ontology term ID at the requested index in the requested slim. |
Represents a set of ontology terms.
Modeled after the "GO Slim" sets of GO terms, CSlim represents any set of IOntology terms. A slim is generally opened from a text file listing ontology IDs and can be used in a variety of settings, e.g. functional enrichment or gold standard generation.
Definition at line 651 of file annotation.h.
const CGene& Sleipnir::CSlim::GetGene | ( | size_t | iSlim, |
size_t | iGene | ||
) | const [inline] |
Returns the gene at the requested index below the requested slim term.
iSlim | Index of the slim term for which a gene are retrieved. |
iGene | Index of the gene to retrieve. |
Definition at line 676 of file annotation.h.
size_t Sleipnir::CSlim::GetGenes | ( | size_t | iSlim | ) | const [inline] |
Returns the number of genes annotated below the given slim term.
iSlim | Index of the slim term for which genes are retrieved. |
Definition at line 704 of file annotation.h.
Referenced by Sleipnir::CDat::Open().
size_t Sleipnir::CSlim::GetNode | ( | size_t | iSlim, |
size_t | iTerm | ||
) | const [inline] |
Returns the ontology term ID at the requested index in the requested slim.
iSlim | ID of slim. |
iTerm | Index of ontology term to be returned. |
Definition at line 761 of file annotation.h.
size_t Sleipnir::CSlim::GetNodes | ( | size_t | iSlim | ) | const [inline] |
Returns the number of ontology terms in the requested slim.
iSlim | ID of slim. |
Definition at line 738 of file annotation.h.
const std::string& Sleipnir::CSlim::GetSlim | ( | size_t | iSlim | ) | const [inline] |
Returns the string ID of the ontology term at the given slim index.
iSlim | Index of the slim term to identify. |
Definition at line 721 of file annotation.h.
Referenced by Sleipnir::CDat::Open().
size_t Sleipnir::CSlim::GetSlims | ( | ) | const [inline] |
Returns the number of ontology terms in this slim.
Definition at line 687 of file annotation.h.
Referenced by Sleipnir::CDat::Open().