llrs / experDesign

Design experiments distributed in several batches
https://experDesign.llrs.dev
Other
10 stars 1 forks source link

Different batches on same data.... #48

Closed llrs closed 8 months ago

llrs commented 8 months ago

Situation:

first decide which samples go in each pool. Then split the pool in two for the 2 timepoints of the sample.

Or simply applying the same batch to the same ouptut multiple times:

data(survey, package = "MASS")
columns <- c("Sex", "Age", "Smoke")
index <- design(pheno = survey[, columns], size_subset = 70,
                iterations = 10)
batches <- inspect(index, survey[, columns])

index2 <- design(pheno = batches, size_subset = 70,
                iterations = 10)
batches2 <- inspect(index2, batches)
View(batches2) 
# Error
llrs commented 8 months ago

Fixed by adding a warning, inspect and follow_up already had an argument to name the new column.

Not sure if a sequential design should be covered considered