lum_export: Extract and generates data.frame from lum_import object

Description Usage Arguments Details Examples

View source: R/lum_export.R

Description

Extract, generates and export different information from a lum_import object

Usage

1
2
3
lum_export(x, y = NULL, path = NULL, backname = "ackgro",
    stanname = "tandar", samplename = "Sample",
    dilutionname = "Dilution Factor", batchname = "batch", ...)

Arguments

x

a lum_import object with all information of the xPONENT software imported

y

an optional lum_import object different from x

path

the directory name where all files are exported. The directory is created according to batch name and system date. Default is NULL

backname

character vector that defines background

stanname

character vector that defines standard

samplename

character vector that defines the name of the samples variable

dilutionname

character vector that defines the name of the dilution factor variable

batchname

character vector that defines the name of the batch field in CSV

...

other parameters of the function

Details

This function returns a list with all datasets from an object of class lum_import. Also is possible to export into several csv files (for Fluorescence-type data) or zip file (for Bead-type data).

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
# Read all data
imp_path <-  system.file(c("inst","extdata"),"plate1.csv",
package="drLumi")
imp <- lum_import(imp_path)
exp <- lum_export(imp)
names(exp)

# See variables
imp$well_vars

# Select only 2
imp$well_vars <- c("Median", "Net MFI")
exp <- lum_export(imp)
head(exp$well)

Example output

[1] "well"       "scurve"     "average"    "batch"      "region"    
[6] "sample"     "name_batch"
[1] "Median"     "Net MFI"    "Count"      "Result"     "Range"     
[6] "% Recovery" "Comments"  
  batch_well_analyte   batch  well analyte        sample median net_mfi
1  plate_1*P1_A1*FGF plate_1 P1_A1     FGF   Background0     21       1
2  plate_1*P1_B1*FGF plate_1 P1_B1     FGF      Control1   2902    2882
3  plate_1*P1_C1*FGF plate_1 P1_C1     FGF  B_sid_13_CSP     18      -2
4  plate_1*P1_D1*FGF plate_1 P1_D1     FGF B_sid_13_DMSO     19      -1
5  plate_1*P1_E1*FGF plate_1 P1_E1     FGF  B_sid_13_HBS     17      -3
6  plate_1*P1_F1*FGF plate_1 P1_F1     FGF B_sid_13_AMA1     18      -2

drLumi documentation built on May 2, 2019, 2:45 p.m.

Related to lum_export in drLumi...