Learn R Programming

ELISAtools (version 0.1.5)

read.annotations: Read the annotations of plates

Description

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.

Usage

read.annotations(
  annotation,
  std.conc,
  dir.annotation,
  dir.stdConc,
  num.plate = 1
)

Value

a list of annotations for elisa plates.

Arguments

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.

Details

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

1234...Cs1
s1sample1sample1...Ds2s2sample2
sample.....................

Examples

Run this code
#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)

Run the code above in your browser using DataLab