Description Usage Arguments Value Examples
Generates block design to assign samples to sequencing lanes and adapters for Illumina flow cell. The gendesign
function is the main function of the DEdesign
package. It calls the design
function from blocksdesign
package (by Dr. Rodney Edmondson), which can construct nested and crossed block designs for factorial treatments.
1 2 |
treatments |
a |
nperlane |
An integer for number of samples per lane for sequencing. Default is 4. This is used to generate |
search.surrounding |
An non-negative integer with default 0, which means to only find design for number of samples per lane defined by |
seed |
an integer initializing the random number generator. The default is |
searches |
the maximum number of local optima searched at each stage of a treatment and block design optimization. The default depends on the design size. For optimum results, try large number of searches. |
gendesign
returns an object of class "DEdesign
", which is a list containing the following components:
input
A list showing input parameters to the function
Design
A list with two elements: design
and BlocksEfficiency
. design
is a data frame giving flowcell, lane and adapter assignment for treatment groups. BlocksEfficiency
is a data frame giving block efficiencies (D-Efficiencies) for lane and adapter (and/or flowcell when applicable).
suggestedDesign
When search.surrounding >0
, a list with two elements are returned here: design
and BlocksEfficiency
. design
is a data frame giving flowcell, lane and adapter assignment for treatment groups. BlocksEfficiency
is a data frame giving block efficiencies (D-Efficiencies) for lane and adapter (and/or flowcell when applicable). Designs using min(3,(nperlane-search.surrounding))
to (nperlane+search.surrounding)
samples per lane will be compared to give suggestedDesign
. suggestedDesign
is the design with minimal number of flowcells among all candidate designs that gives the highest lane block efficiency (when more than one designs meet these criteria, design with highest nperlane is selected).
1 2 3 4 5 6 7 8 | gendesign(treatments= data.frame(trt = letters[1:4], replicates = rep(4,4)))
treatments <- data.frame(expand.grid(A=factor(1:2), B=factor(1:5)),replicates = 2)
des <- gendesign(treatments=treatments, nperlane=4, search.surrounding = 2)
designDF(des,selection="Design")
designDF(des,selection="suggestedDesign")
efficiency(des,selection="Design")
efficiency(des,selection="suggestedDesign")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.