chars_per_term: Get number of chracters per each ontology term

Description Usage Arguments Value Examples

View source: R/Viz_manipul_main.R

Description

Returns matrix summarizing number of characters per each ontology terms in descending order

Usage

1
chars_per_term(ontology, annotations = "auto")

Arguments

ontology

ontology_index object with character annatotions included (ontology$annot_characters).

annotations

which annotations to use: "auto" means automatic annotations, "manual" means manual ones. Alternatively, any othe list element containing annotations can be specified.

Value

The matrix of ontology terms IDs, their names and character number.

Examples

1
2
3
4
data(HAO)
ontology<-HAO
ontology$terms_selected_id<-list(`CHAR:1`=c("HAO:0000653"), `CHAR:2`=c("HAO:0000653"))
chars_per_term(ontology, annotations="manual")

ontoFAST documentation built on April 29, 2021, 9:06 a.m.