Given a sampledescription with annotation of fcs files such meta data may be written as keyword into respective fcs files.

sampledescription_to_fcs_keywords(sampledescription, columns, FCS.file.folder)

Arguments

sampledescription

data frame

columns

vector of column names from sampledescription to write as keywords

FCS.file.folder

path to folder of FCS files

Value

no return but keywords written to FCS files

Examples

if (FALSE) {
wd <- dirname(dirname(rstudioapi::getActiveDocumentContext()$path))
sd <- openxlsx::read.xlsx(file.path(wd, sampledescription.xlsx))
# if only a subset of files should be considered, select respective rows
sampledescription_to_fcs_keywords(sampledescription = sd, columns = c("Patient", "ExpPart"), FCS.file.folder = file.path(wd, "FCS_files"))
}