Skip to contents

Returns the column name in the metadata data frame that corresponds to the given sampleID.

Usage

getColumnWithSampleID(dtf_countsLong, metadata)

Arguments

dtf_countsLong

Long data frame of counts

metadata

Metadata data frame

Value

Column name with sampleID

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.
mock_data <- mock_rnaseq(list_var, n_genes = 3, 2,2)
#> Building mu_ij matrix
#> k_ij ~ Nbinom(mu_ij, dispersion)
#> Counts simulation: Done
dtf_countLong <- countMatrix_2longDtf(mock_data$counts)
getColumnWithSampleID(dtf_countLong, mock_data$metadata)
#> [1] "sampleID"