llrs / experDesign

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

Spatially distributed samples #18

Closed llrs closed 4 years ago

llrs commented 4 years ago

Make a function to distribute the sample on a plate. So that given some index prepare to where should they go according to its name (A01, A02,...) their columns (A, B, C) and rows (01, 02, 03, 04). Potentially useful to prevent errors from machines/tips

Pseudocode:

out <- distribute(index, samples, 2D) {
   for (batch in index) {
      p_index <- physical_index(samples, 2D)
      evaluate_index(p_index, samples, 2D$row)
      evaluate_index(p_index, samples, 2D$column)
      evaluate_index(p_index, samples, 2D$name)
   }
   list(plate1 = matrix(), plate2 = matrix()
}

Potentially relevant for plateR, also might be worth mentioning baRcodeR.

llrs commented 4 years ago

I didn't mention those packages, but this is now included works with replicates too