build.submatrix: Build submatrix

View source: R/annotation.utility.R

build.submatrixR Documentation

Build submatrix

Description

Terms having less than n annotations are pruned. Terms having exactly n annotations are discarded as well.

Usage

build.submatrix(ann, n)

Arguments

ann

the annotation matrix (0/1). Rows are examples and columns are functional terms.

n

an integer number representing the number of annotations to be pruned.

Value

An annotation matrix having only those terms with more than n annotations.

Examples

data(labels);
subm <- build.submatrix(L,5);

marconotaro/HEMDAG documentation built on Nov. 20, 2024, 6:02 p.m.