affect_motifs: Label assemblages by assembly motif

Description Usage Arguments Details Value

View source: R/labelling.R

Description

Take a vector of affectation of components by functional groups, then build the different assembly motifs generated by combining the different functional groups, finally label the assemblages that belong to the same assembly motifs. The labels are integers.

Usage

1
affect_motifs(affectElt, mOccur)

Arguments

affectElt

a vector of integers. The vector contains the labels of the different functional groups to which each component belongs. Each functional group is labelled as an integer.

mOccur

a matrix of occurrence (occurrence of components). Its first dimension equals to length(fct). Its second dimension equals to the number of components.

Details

A set of s components generates m = 2^s - 1 assembly motifs. The function only looks for existing, observed assembly motifs. Each assembly motif is labelled from 1 to m, with m <= s. The assembly motifs are first sorted by size (number of clusters), then labelled gradually: the first motif identified is labelled 1, the second motif identified is labelled 2, etc... The number of observed assembly motifs is lower or equal to m.

Value

Return a vector of labels, of dim(mOccur)[2].


functClust documentation built on Dec. 2, 2020, 5:06 p.m.