sampledescription_to_fcs_keywords: Write columns from sampledescription as keyword into FCS...

View source: R/sampledescription_to_fcs_keywords.R

sampledescription_to_fcs_keywordsR Documentation

Write columns from sampledescription as keyword into FCS files

Description

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

Usage

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

## Not run: 
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"))

## End(Not run)

Close-your-eyes/fcexpr documentation built on Sept. 29, 2023, 12:27 a.m.