read.annotations {ELISAtools}R Documentation

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
)

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

1 2 3 4 ...
C s1 s1 sample1 sample1 ...
D s2 s2 sample2 sample ...
... ... ... ... ... ...

Value

a list of annotations for elisa plates.

Examples

#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)

[Package ELISAtools version 0.1.5 Index]