Skip to contents

This function is used to name attribute(s). Attribute(s) names, in this case, are equivalent to the well labels found on the microplate reader. An attribute for a sample loaded into row A - column 1 will be named A1. In short, the function takes a clean data frame and returns attribute names that match the FLUOstar plate layout often presented as an Excel file.

Usage

dat_col_names_prime(
  dat = NULL,
  df,
  rows_used = NULL,
  cols_used = NULL,
  user_specific_labels = NULL
)

Arguments

dat

A string ("dat_1.dat") if the file is found within the present working directory (pwd) OR a path pointing directly to a ".dat" file.

df

A data frame that requires attribute labels.

rows_used

A character vector indicating the rows or tuples used on the microplate (usually a 96-well microplate). Initialized as NULL.

cols_used

A numeric vector indicating the plate columns or attributes used. Initialized as NULL.

user_specific_labels

A character vector where the user manually enters the used microplate wells based on the FLUOstar plate layout.

Value

Returns a character vector of attribute(s) names for the normalized data frame.

Author

Tingwei Adeck

Examples

fpath <- system.file("extdata", "dat_1.dat", package = "normfluodbf", mustWork = TRUE)
dat_df <- read.table(file=fpath)
nocomma_dat <- clean_odddat_optimus(dat_df)
resampled_scaled <- resample_dat_scale(nocomma_dat, tnp=3, cycles=40)
n = c('A','B','C')
sample_col_names <- dat_col_names_prime(dat = fpath, resampled_scaled, n)