read_sampleTable {dPCP} | R Documentation |
Read sample table
Description
This function reads a file containing the essential information about the samples and experimental settings. The file has to be filled out by the user and formatted as described in the vignette.
Usage
read_sampleTable(file, system = NULL, file.location = ".")
Arguments
file |
character. The name or the path of csv file to be read. If it
does not contain an absolute path, the file name is relative to the current
working directory, ( |
system |
character. The name of digital PCR system used to generate the data. It must be either Thermo Fisher or Bio-Rad. Abbreviations are also accepted. |
file.location |
character. Full path name to reference and sample
files location. The default corresponds to the working directory,
( |
Value
An object of class sample_table
.
Examples
library(dPCP)
#Find path of sample table and location of reference and input files
sampleTable <- system.file("extdata", "Template_sampleTable.csv",
package = "dPCP")
fileLoc <- system.file("extdata", package = "dPCP")
#Read sample table file
sample.table <- read_sampleTable(sampleTable, system = "bio-rad",
file.location = fileLoc)
[Package dPCP version 2.0.1 Index]