transitive.closure.annotations {HEMDAG} | R Documentation |
Transitive closure of annotations
Description
Perform the transitive closure of the annotations using ancestors and the most specific annotation matrix. The annotations are propagated from bottom to top, enriching the most specific annotations table. Rows correspond to genes and columns to functional terms.
Usage
transitive.closure.annotations(ann.spec, anc)
Arguments
ann.spec |
the annotation matrix of the most specific annotations (0/1): rows are genes and columns are functional terms. |
anc |
the ancestor list. |
Value
The annotation table T: rows correspond to genes and columns to OBO terms. T[i,j]=1
means that gene i
is annotated for the term j
,
T[i,j]=0
means that gene i
is not annotated for the term j
.
Examples
data(graph);
data(labels);
anc <- build.ancestors(g);
tca <- transitive.closure.annotations(L, anc);
[Package HEMDAG version 2.7.4 Index]