This function calculates the semantic similarity object for an organism. It then stores this within the TimeSeries object and returns it. If the function is used for Vignettes, it will use pre-loaded data for that organism.

add_semantic_similarity_data(object, ont_sem_sim, vignette_run = FALSE)

Arguments

object

A timeseries object

ont_sem_sim

An ontology for the semantic similarity. EX: 'BP','MF','CC'

vignette_run

Boolean indicating if a run is for vignettes or not.

Value

The updated time object

Examples

TS_object <- create_example_object_for_R()
TS_object <- add_semantic_similarity_data(TS_object,ont_sem_sim='BP',vignette_run=TRUE)