get_vector_ids_per_term {ontophylo}R Documentation

Get vector layer IDs for single term

Description

Given an ontology_index object, ontology term label, and data.frame with picture information (see examples), produces a named vector with layer IDs to be used in the 'make_pic' function.

Usage

get_vector_ids_per_term(term = "HAO:0000349", ONT, GR)

Arguments

term

character. An ontology term label to get the corresponding layer IDs in the Picture object.

ONT

ontology_index object.

GR

data.frame. A data.frame with the picture information. It contains the matches between all ontology term labels and layer IDs in the Picture object. The first column corresponds to the ontology term labels, the second to the ontology IDs, and the third to the layer IDs in the Picture object.

Value

A named vector with the layer IDs corresponding to or descending from the ontology term label queried.

Author(s)

Sergei Tarasov

Examples

data("HAO", "hym_graph")
# Get picture layers from head.
get_vector_ids_per_term(term = "HAO:0000397", ONT = HAO, GR = hym_graph)


[Package ontophylo version 1.1.3 Index]