DNA Dilution Calculator Slides

A calculator for DNA dilutions

Frank J. Ambrosio
Author

Slide 1

My web app is called the DNA Dilution Calculator

c1 = 10
v1 = 10
c2 = 5
v2 = (c1 * v1)/c2
v2
## [1] 20

Slide 2

Here is the ui.R code for the front end of my app!

sidebarLayout(
    sidebarPanel(
      numericInput("numericA", "What is the starting concentration in ng/uL?", 
                   value = 0, min = 1, max = 1000, step = 1),
      numericInput("numericB", "What is the starting volume in uL?",
                     value = 0, min = 1, max = 10000, step = 1),
      numericInput("numericC", "What is the desired concentration in ng/uL?",
                    value = 0, min = 1, max = 1000, step = 1),
      submitButton("Submit")
    ),

    mainPanel(
       h3("Volume of diluent to be added to starting DNA solution 
          in order to achieve desired dilution:"),
       textOutput("calcA"),
       h3("Total volume of completed dilution:"),
       textOutput("calcB")
    )
  )
))

Slide 3

Here is the server.R code from my app!

library(shiny)


shinyServer(function(input, output) {
   calcA <- reactive({
    ((input$numericA * input$numericB)/input$numericC)-input$numericB
   })
   calcB <- reactive({
     ((input$numericA * input$numericB)/input$numericC)
   })
   output$calcA <- calcA
   output$calcB <- calcB
  })

Slide 4

If you ever need to calculate DNA Dilutions then YOU NEED THIS APP!

Slide 5

If you are working with DNA then you need to calculate DNA Dilutions so YOU NEED THIS APP!!!