QC-set: Adds or overwrites quality control samples in an AFLP object.

Description Arguments Value Author(s) See Also Examples

Description

Adds or overwrites quality control samples in an AFLP object.

Arguments

data

An AFLP object

value

When which == "all", value must be a list with quality information. Otherwise a data.frame with the corresponding quality information.

which

A character value matching c("all", "specimen", "replicate"). Defaults to "all".

Value

data is updated with the new quality information

Author(s)

Thierry Onkelinx Thierry.Onkelinx@inbo.be, Paul Quataert

See Also

QC

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
data(Tilia)
 tmp <- replicates(Tilia)
 QC(Tilia, which = "all") <- list(
   Specimen = data.frame(
     Specimen = tmp$Specimen[grep("QC", tmp$Specimen)],
     Type = "method"
   ),
   Replicate = data.frame(
     Replicate = tmp$Replicate[grep("qc", tmp$Replicate)],
     Type = "method"
   )
 )
 QC(Tilia, which = "specimen") <- data.frame(
   Specimen = tmp$Specimen[grep("QC", tmp$Specimen)],
   Type = "method"
 )
 QC(Tilia, which = "replicate") <- data.frame(
   Replicate = tmp$Replicate[grep("qc", tmp$Replicate)],
   Type = "method"
 )

AFLP documentation built on May 2, 2019, 6:13 p.m.