Skip to contents

Create a report from a PCR plan

Usage

pcr_plan_report(pcr_plan, file_path = NULL)

Arguments

pcr_plan

output from pcr_plan

file_path

Where the report should be written, as well as the file name. Defaults to temp file.

Value

a named list, like the output of pcr_plan, but with the output file path appended.

Examples

dummy_rna_conc |>
  pcr_plan(n_primers = 3) |>
  pcr_plan_report()
#> 
#> 
#> processing file: pcr_report-template.Rmd
#> 1/8                  
#> 2/8 [unnamed-chunk-1]
#> 3/8                  
#> 4/8 [unnamed-chunk-2]
#> 5/8                  
#> 6/8 [unnamed-chunk-3]
#> 7/8                  
#> 8/8 [unnamed-chunk-4]
#> output file: pcr_report-template.knit.md
#> /opt/hostedtoolcache/pandoc/3.1.11/x64/pandoc +RTS -K512m -RTS pcr_report-template.knit.md --to html4 --from markdown+autolink_bare_uris+tex_math_single_backslash --output /tmp/RtmpVNURhb/2024-10-05_pcr-report_177f20c5198.html --lua-filter /home/runner/work/_temp/Library/rmarkdown/rmarkdown/lua/pagebreak.lua --lua-filter /home/runner/work/_temp/Library/rmarkdown/rmarkdown/lua/latex-div.lua --embed-resources --standalone --variable bs3=TRUE --section-divs --template /home/runner/work/_temp/Library/rmarkdown/rmd/h/default.html --no-highlight --variable highlightjs=1 --variable theme=bootstrap --mathjax --variable 'mathjax-url=https://mathjax.rstudio.com/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML' --include-in-header /tmp/RtmpVNURhb/rmarkdown-str177f262108fa.html 
#> 
#> Output created: /tmp/RtmpVNURhb/2024-10-05_pcr-report_177f20c5198.html
#> $mm_prep
#> # A tibble: 4 × 2
#>   reagent             vol
#>   <chr>             <dbl>
#> 1 2X RT-PCR Buffer  206. 
#> 2 Primer             20.6
#> 3 25X RT-PCR Enzyme  16.5
#> 4 Nuclease Free H2O 103. 
#> 
#> $sample_prep
#> # A tibble: 8 × 7
#>   sample       conc dilution_factor diluted_concentration diluted_rna_to_add
#>   <chr>       <dbl>           <int>                 <dbl>              <dbl>
#> 1 24hr_DMSO_1 127.                1                 127.                1.18
#> 2 48hr_DMSO_1  93                 1                  93                 1.61
#> 3 24hr_1uM_1  143.                1                 143.                1.05
#> 4 48hr_1uM_1   67.1               1                  67.1               2.24
#> 5 24hr_DMSO_2  88.3               1                  88.3               1.70
#> 6 48hr_DMSO_2 124.                1                 124.                1.21
#> 7 24hr_1uM_2   94.2               1                  94.2               1.59
#> 8 48hr_1uM_2   80.2               1                  80.2               1.87
#> # ℹ 2 more variables: water_to_add <dbl>, final_vol <dbl>
#> 
#> $plate
#> 
#>       3
#>    ______
#> 1 | ◯ ◯ ◯
#> 
#> 
#> Start corner: tl
#> Plate dimensions: 16 x 24
#> 
#> $n_primers
#> [1] 3
#> 
#> $format
#> [1] "384"
#> 
#> $exclude_border
#> [1] TRUE
#> 
#> $primer_names
#> NULL
#> 
#> $file_path
#> [1] "/tmp/RtmpVNURhb/2024-10-05_pcr-report_177f20c5198.html"
#>