shuffle_groups {sampleInfo} R Documentation

shuffle the sample group order in a random manner

Description

Usage

shuffle_groups(x);

Arguments

x

a vector of the @T:SMRUCC.genomics.GCModeller.Workbench.ExperimentDesigner.SampleInfo. [as SampleInfo]

Details

unlike the sample_groups api, which sorts the sample groups by the group label in ascending order, this function shuffles the sample group order in a random manner, which is helpful for the random color assignment or the permutation test of the sample groups.

Authors

phenotype_kit

Value

a tuple list of the sample groups in a random order: the slot key of the list is the sample group label and the slot value is a vector of the SampleInfo object that belongs to the corresponding sample group.

clr value class

Examples


[Package sampleInfo version 1.0.0.0 Index]