View source: R/ELISAtools_IO.R
read.annotations | R Documentation |
Parse annotations for multiple ELISA plates from files, one annotation file and one standard concentration file, and output the annotations for standard and unknown separately.
read.annotations(
annotation,
std.conc,
dir.annotation,
dir.stdConc,
num.plate = 1
)
annotation |
characters to specify the path and name of the annotation file |
std.conc |
characters to specify the standard concentration file. |
dir.annotation |
characters specifying the file to the annotatoin file. |
dir.stdConc |
characters specifying the path to the annotatoin file. |
num.plate |
numeric indicating the number of plates in the annotation files. |
The annotation file may contain annotations for more than
one plate. Each plate is marked by "Plate: plate 1..." and
"~End". This function parses each section in both annotation
file and standard concentration file. Then passes the section
on to do the parsing.
For each section,we expect
the following format
1 | 2 | 3 | 4 | ... | |
C | s1 | s1 | sample1 | sample1 | ... |
D | s2 | s2 | sample2 | sample | ... |
... | ... | ... | ... | ... | ... |
a list of annotations for elisa plates.
#get example annotation file path from the system folder
ann<-system.file("extdata", "annote.txt", package="ELISAtools")
std.conc<-system.file("extdata", "stdConc.txt", package="ELISAtools")
#read them in and there are 2 plates.
read.annotations(annotation=ann, std.conc=std.conc, num.plate=2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.