Skip to contents

generate a TermSet with siblings of a given term, excluding that term by default

acquire the label of an ontology subject tag

acquire the labels of children of an ontology subject tag

Usage

siblings_TAG(Tagstring = "EFO:1001209", ontology, justSibs = TRUE)

label_TAG(Tagstring = "EFO:0000311", ontology)

children_TAG(Tagstring = "EFO:1001209", ontology)

Arguments

Tagstring

a character(1) that identifies a term

ontology

instance of ontology_index (S3) from ontologyIndex

justSibs

character(1)

Value

TermSet instance

character(1)

TermSet instance

Note

for label_TAG, Tagstring may be a vector

Examples

efoOnto = getOnto("efoOnto")
#> loading from cache
siblings_TAG( "EFO:1001209", efoOnto )
#> TermSet for 16 terms
#> AA amyloidosis, AL amyloidosis, ..., systemic scleroderma, thromboangiitis obliterans 
efoOnto = getOnto("efoOnto")
#> loading from cache
label_TAG( "EFO:0000311", efoOnto )
#>       EFO:0000311 
#> "obsolete_cancer" 
efoOnto = getOnto("efoOnto")
#> loading from cache
children_TAG( ontology = efoOnto )
#> TermSet for 0 terms
#>