Learn R Programming

HEMDAG (version 2.1.3)

transitive.closure.annotations: Transitive closure of annotations

Description

Performs the transitive closure of the annotations using ancestors and the most specific annotation table. The annotations are propagated from bottom to top, enriching the most specific annotations table. The rows of the matrix correspond to the genes of the most specific annotation table and the columns to the HPO terms/classes

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 HPO terms.

anc

list of the ancestors of the ontology.

Value

an annotation table T: rows correspond to genes and columns to HPO 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\).

See Also

specific.annotation.matrix, build.ancestors

Examples

Run this code
# NOT RUN {
data(graph);
data(labels);
anc <- build.ancestors(g);
tca <- transitive.closure.annotations(L, anc);
# }

Run the code above in your browser using DataLab