fcs_to_mean_logPEA: Export mean log10(PE-A) (FL2-A) from multiple '.fcs' files

Description Usage Arguments Details Value Examples

View source: R/fcs_to_mean_logPEA.R

Description

This function calculates the mean log PE-A of each .fcs file within a folder and returns all the values as a dataframe.

Usage

1
fcs_to_mean_logPEA(folder_path_containing_fcs, output_filepath)

Arguments

folder_path_containing_fcs

Path to the folder containing .fcs files

output_filepath

(optional) File path for the output; NULL by default; must end in .txt

Details

.fcs file names must follow the following format:

Plate number(##)-Well-Well position([A-Z]##)_*.fcs

Examples:

01-Well-A1.fcs

01-Well-A1_Live alga.fcs

Value

Returns a dataframe with the 3 columns: Well_id, mean_PE_A,Plate

Examples

1
2
3
4
5
library(fcs2r)
wd<- getwd()
fcs_folder <- paste(system.file(package = "fcs2r"),"/extdata/fcs_data/", sep ="")
df <- fcs_to_mean_logPEA(fcs_folder) #save output as dataframe
fcs_to_mean_logPEA(fcs_folder, "test.txt") #export as text file

alicewchen/fcs2r documentation built on Dec. 19, 2021, 1:30 a.m.