groupsim: Method groupsim

Description Usage Arguments Value Examples

Description

This method computes the semantic similarity between two groups of terms of a given ontology.

Usage

1
2
3
4
5
groupsim(object, termList1, termList2)

## S4 method for signature 'Similarity,character,character'
groupsim(object, termList1,
  termList2)

Arguments

object

instance of class Similarity-class

termList1

A vector of URIs of ontology terms in the format http://purl.obolibrary.org/obo/Ontology_id (e.g http://purl.obolibrary.org/obo/BTO_0004732)

termList2

A vector of URIs of ontology terms

Value

the semantic similarity of the two provided groups of concepts

Examples

1
2
3
4
5
6
7
8
9
sim <- new('Similarity')
obo <- system.file('extdata', 'sample.cs.obo', package='OnassisJavaLibs')
ontology(sim) <- obo
pairwiseConfig(sim) <- listSimilarities()$pairwiseMeasures[9]
groupConfig(sim) <- listSimilarities()$groupwiseMeasures[3]
similarity <- groupsim(sim, c('http://purl.obolibrary.org/obo/CL_0000542',
 'http://purl.obolibrary.org/obo/CL_0000236'),
c('http://purl.obolibrary.org/obo/CL_0000000'))
similarity

Onassis documentation built on Nov. 8, 2020, 8:18 p.m.