design8Vertex: constructor of Class Design8Vertex

Description Usage Arguments Value Author(s) Examples

Description

Caculate the portion matrix of each stock from the 'dim', and call the new(Design8Vertex)

Usage

1
design8Vertex(volume, stock, dim)

Arguments

volume

numeric, for volume of each well in matrix block

stock

dataframe, the composition of each stock (8 stock in the 8-vertex design)

dim

list of three vectors, the dilution of stock 1 in 3 dimensions: 6X4X4

Value

new object of Design8Vertex class

Author(s)

Qingan Sun, Xiaojun Li

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
# set the stock with 3 variables: PEG concentration, pH, and salt concentration
stock<-matrix(nrow=8,ncol=3) 
colnames(stock)<-c("PEG","pH","salt")
stock[,1]<-rep(c(6,16),4)
stock[,2]<-rep(c(8,8,9.5,9.5),2)
stock[,3]<-rep(c(0,300),each=4)
stock<-data.frame(stock)
dim<-list(5:0/5,3:0/3,3:0/3) # the dilution serial of stock1
#call the function and return a new object
test8Vertex<-design8Vertex(900,stock,dim) 

xtal documentation built on May 2, 2019, 1:28 p.m.