groupConfig {Onassis} | R Documentation

## `groupConfig`

### Description

This method shows the value of the groupwise configuration used to compute semantic similarities between groups of concepts.

Sets the groupwise measure to compute the semantic similarity between groups of concepts. For available meausres use the method listSimilarities().

### Usage

    groupConfig(object)

    groupConfig(object) <- value

    ## S4 method for signature 'Similarity'
    groupConfig(object)

    ## S4 replacement method for signature 'Similarity'
    groupConfig(object) <- value

### Arguments

`object` | instance of class `Similarity-class`
`value` | See details

### Details

The following measures are indirect groupwise measures, meaning that they are used to aggregate individual pairwise measures.

- 'min': Minimum of the pairwise similarities of the concepts in the two groups

- 'average': Average of the pairwise similarities of the concepts in the two groups

- 'max': Max of the pairwise similarities of the concepts in the two groups

- 'bma': Best match average

- 'bmm': Best match max

Direct groupwise measures directly compare the sets of concepts considering the features of both sets.

- 'ui': Considers the intersection and the union of the set of ancestors of the two groups of concepts:

  sim(group_u, group_v) = | intersection( A(group_u), A(group_v)) | \code{/} | union( A(group_u), A(group_v)) | )

- 'nto_max': Normalized max Term Overlap, computes the groupwise semantic similarity considering the inclusive set of ancestors of the two groups of concepts.

  sim(group_u, group_v) = | intersection( A(group_u), A(group_v)) | \code{/} | max( |A(group_u)|, |A(group_v)| ) |

- 'lee': Computes the groupwise semantic similarity considering the inclusive set of ancestors of the two groups of conceps.

  sim(group_u, group_v) = | union( A(group_u), A(group_v)) |

- 'lp': Computes the groupwise semantic similarity between two groups of concepts as the depth of the longest shared path from the root node

- 'gic': Computes the groupwise semantic similarity between two groups of concepts as the ration between the information content of the concepts in the intersection of the ancestors in the two groups and the information content of the concepts in the union of the ancestors in the two groups.

  sim(group_u, group_v) = IC_intersection / IC_union

- 'batet': Computes the groupwise semantic similarity between two groups of concepts considering the union and intersection of ancestors normalized on the number of concepts in the ontology.

  sim(group_u, group_v) = |(union( A(group_u), A(group_v) ) - intersection(A(group_u), A(group_v)))| / ( |(union( A(group_u), A(group_v) )| * tot_concepts )

### Value

groupwise configured measure for the similarity object provided as input

instance of the Similarity class with the new grouprwise option.

### Examples

    sim <- new('Similarity')
    groupConfig(sim)
    sim <- new('Similarity')
    obo <- system.file('extdata', 'sample.cs.obo', package='OnassisJavaLibs')
    ontology(sim) <- obo
    groupConfig(sim) <- 'ui'

[Package Onassis version 1.10.0 Index]