Similarity-class {Onassis} | R Documentation

## Similarity class to compute similarities between concepts in ontologies and samples annotated with different concepts `Similarity-class`

### Description

Similarity is a class that wraps some methods of the Java library slib http://www.semantic-measures-library.org/sml/. Starting from OBO ontologies it is possible to build semantic graphs that allow the computation of different similarity measures between concepts belonging to the same ontology, group of concepts, samples annotated with different ontology concepts. Further details about the graph based semantic similarity measures are available at http://www.semantic-measures-library.org/sml/index.php?q=doc_graph_based_advanced

### Details

The following methods can be applied to Similarity

`ontology<-`
`pairwiseConfig`
`groupConfig`
`sim`
`groupsim`
`samplesim`
To see the available similarity measures run the function `listSimilarities`

### Slots

`similarityInstance`

  The Java reference to the Java Similarity class.

`pairwiseConfig`

  The list of measures used to compute the semantic similarity between two concpets in the same ontology.

`pairwiseConfigRef`

  The reference to the Java object of type CMconf corresponding to the pairwise configuration

`groupConfig`

  The groupwise configuration to compute the semantic similarity between groups of concepts.

`icConfig`

  The information content measure

`groupwiseConfigRef`

  The reference to the Java configuration object for the computation of semantic similarity between groups of concepts

`ontology`

  The ontology to compute semantic similarities

### Examples

    sim <- new('Similarity')

[Package Onassis version 1.10.0 Index]