Skip to contents

Generates sample metadata based on the input variables, replication matrix, and number of genes.

Usage

getSampleMetadata(list_var, replicationMatrix)

Arguments

list_var

A list of variables (already initialized)

replicationMatrix

Replication matrix

Value

Data frame of sample metadata

Examples

list_var <- init_variable()
#> Variable name should not contain digits, spaces, or special characters.
#> If any of these are present, they will be removed from the variable name.
replicationMatrix <- generateReplicationMatrix(list_var, 3, 3)
getSampleMetadata(list_var,  replicationMatrix)
#>    myVariable      sampleID
#> 1 myVariable1 myVariable1_1
#> 2 myVariable1 myVariable1_2
#> 3 myVariable1 myVariable1_3
#> 4 myVariable2 myVariable2_1
#> 5 myVariable2 myVariable2_2
#> 6 myVariable2 myVariable2_3