Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Functions to dispense pairwise combinations of reagents. #6

Open
charles-plessy opened this issue Sep 12, 2023 · 0 comments
Open

Functions to dispense pairwise combinations of reagents. #6

charles-plessy opened this issue Sep 12, 2023 · 0 comments

Comments

@charles-plessy
Copy link
Collaborator

primer_F_wells <- function(n) {
  consecutive_of_wells_for_one_primer <- titration_steps * reverse_primers
  Range1 <- negative_controls +                                            # Offset
            1 : consecutive_of_wells_for_one_primer +                     # Consecutive wells for one primer
            n * titration_steps * reverse_primers                          # Start at nth primer
  PlateTypeToWellNames("384")[c(Range1, Range1+192)]
}

primer_R_wells <- function(n) {
  consecutive_of_wells_for_one_primer <- titration_steps 
  Range1 <- negative_controls +                                            # Offset
            rep(1:consecutive_of_wells_for_one_primer, forward_primers)  + # One stretch per forward primer
            (rep(0:(forward_primers -1) * titration_steps * reverse_primers, titration_steps) |> sort()) +
            n * consecutive_of_wells_for_one_primer
  PlateTypeToWellNames("384")[c(Range1, Range1+192)]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant