Description Usage Arguments Details Value
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.
1 | affect_motifs(affectElt, mOccur)
|
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 |
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
.
Return a vector of labels, of dim(mOccur)[2]
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.