Description Usage Arguments Details Value Author(s) Examples
Assigns samples to plates for genotyping, balancing important variables across plates.
1 2 3 4 |
sample.data |
A data.frame with sample data, including "SampleID," and as many other columns as there are categories on which to stratify the plate maps. If there are no other columns, the plate map will be completly random. An optional column called "Reserve" is a logical variable for samples that should be distributed evenly across plates outside of stratification (such as cross-study duplicates or WGA samples). If families should be plated together, give family ID in column "Family." |
plate.data |
A data frame with columns "Plate," "Well," and "SampleID." If any wells are to be reserved for controls, they should have a non-empty value in the "SampleID" column. Available wells should have an empty string ("") in the "SampleID" column. |
duplicates |
A data.frame with two columns, where the SampleID in
column two is the duplicate of the SampleID in column one. If this
argument is provided, duplicates will not be placed on the same
plate and the ids from column two will be evenly balanced across
plates. SampleIDs in both columns should be present in |
empty.wells.at.end |
A logical. If |
families.at.random |
A logical. If |
debug |
A logical. If |
The plates will be balanced so that the
fraction of samples in each category given in sample.data
on each plate mirrors the total
fraction in the sample set as closely as possible.
The data.frame in plate.data
, with the "SampleID" column
filled in with values from sample.data
.
Stephanie M. Gogarten, Caitlin McHugh, David Levine
1 2 3 4 5 6 7 8 9 10 11 12 13 | head(plate.data)
head(sample.data)
head(duplicate.data)
sample.group <- sample.data[,c("SampleID", "Group", "Sex")]
map <- plateMap(sample.group, plate.data, duplicate.data, debug=TRUE)
tmp <- merge(map, sample.group)
table(tmp$Plate, paste(tmp$Sex, tmp$Group, sep="."))
sample.family <- sample.data[,c("SampleID", "Family", "Group")]
map <- plateMap(sample.family, plate.data, duplicate.data, debug=TRUE)
tmp <- merge(map, sample.family)
head(tmp[order(tmp$Family),])
table(tmp$Plate, tmp$Group)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.