Last updated: 2025-04-28

Checks: 7 0

Knit directory: HairCort-Evaluation-Nist2020/

This reproducible R Markdown analysis was created with workflowr (version 1.7.1). The Checks tab describes the reproducibility checks that were applied when the results were created. The Past versions tab lists the development history.


Great! Since the R Markdown file has been committed to the Git repository, you know the exact version of the code that produced these results.

Great job! The global environment was empty. Objects defined in the global environment can affect the analysis in your R Markdown file in unknown ways. For reproduciblity it’s best to always run the code in an empty environment.

The command set.seed(20241016) was run prior to running the code in the R Markdown file. Setting a seed ensures that any results that rely on randomness, e.g. subsampling or permutations, are reproducible.

Great job! Recording the operating system, R version, and package versions is critical for reproducibility.

Nice! There were no cached chunks for this analysis, so you can be confident that you successfully produced the results during this run.

Great job! Using relative paths to the files within your workflowr project makes it easier to run your code on other machines.

Great! You are using Git for version control. Tracking code development and connecting the code version to the results is critical for reproducibility.

The results in this page were generated with repository version cb56a96. See the Past versions tab to see a history of the changes made to the R Markdown and HTML files.

Note that you need to be careful to ensure that all relevant files for the analysis have been committed to Git prior to generating the results (you can use wflow_publish or wflow_git_commit). workflowr only checks the R Markdown file, but you know if there are other scripts or data files that it depends on. Below is the status of the Git repository when the results were generated:


Ignored files:
    Ignored:    .DS_Store
    Ignored:    .RData
    Ignored:    .Rhistory
    Ignored:    analysis/.DS_Store
    Ignored:    analysis/.Rhistory
    Ignored:    data/.DS_Store
    Ignored:    data/Test3/.DS_Store
    Ignored:    data/Test4/.DS_Store

Unstaged changes:
    Modified:   analysis/ELISA_Analysis_RawVals_test3.Rmd
    Modified:   analysis/ELISA_Calc_FinalVals_test3.Rmd
    Modified:   analysis/ELISA_Calc_FinalVals_test4.Rmd

Note that any generated files, e.g. HTML, png, CSS, etc., are not included in this status report because it is ok for generated content to have uncommitted changes.


These are the previous versions of the repository in which changes were made to the R Markdown (analysis/ELISA_QC_test3.Rmd) and HTML (docs/ELISA_QC_test3.html) files. If you’ve configured a remote Git repository (see ?wflow_git_remote), click on the hyperlinks in the table below to view the files as they were in that past version.

File Version Author Date Message
html cb56a96 Paloma 2025-04-25 more figures
html 8108c43 Paloma 2025-04-25 improved figures
Rmd 0ed450f Paloma 2025-04-25 updated input (myassays.com) including dilution
html 0ed450f Paloma 2025-04-25 updated input (myassays.com) including dilution
html dd200fc Paloma 2025-04-23 corrected figures
Rmd 7240d2e Paloma 2025-04-22 organized files
html 7240d2e Paloma 2025-04-22 organized files
html bbb70a9 Paloma 2025-04-09 comparing methods
Rmd ccad031 Paloma 2025-04-09 new_calc
html ccad031 Paloma 2025-04-09 new_calc
Rmd 77c2ab5 Paloma 2025-04-08 cleaning test3
html 77c2ab5 Paloma 2025-04-08 cleaning test3

Here I show how files are loaded, merged, and cleaned, including the exclusion of unnecessary columns and handling of missing values.

Summary

  • Intra-Assay CV: 11.35 %

  • Intra-Assay CV after removing low quality data: 5.799 %

  • Good quality data points: 30

# DATA SET 
current_test <- "Test3"
data_path <- file.path("./data", current_test)

Set parameters

# flag samples with high CV (15%) or binding above 80% and under 20%
CV_threshold <- 15.0
uppBinLim <- 80.0
lowBinLim <- 20.0

Data Cleaning and QC

Load, inspect and merge 3 files:

  • layout: 7 columns (Wells, Sample, weight_mg, buffer_nl, spike, volume of the spike, dilution factor), 96 rows
  • results: from myassays.com (not including standards)
  • info: (Wells, Sample, Categ, TotalVol_well_uL)

Merged data set:

Sample Wells Raw.OD Binding.Perc Conc_pg.ml Ave_Conc_pg.ml CV.Perc SD SEM Category Weight_mg Buffer_nl Spike TotalVol_well_ul SpikeVol_ul Dilution Sample_comparable
1 C3 0.959 77.3 461.9 396.6 23.30 92.4 65.3 NoSpike 13.1 250 0 50 0 1 13
10 D5 0.743 37.6 940.7 3064.0 98.00 3000.0 2120.0 YesSpike 17.7 60 1 50 25 1 3
11 E5 0.939 71.6 496.8 513.2 4.50 23.1 16.3 NoSpike 17.5 250 0 50 0 1 14
12 F5 0.422 30.0 2690 2728.0 1.92 52.5 37.1 YesSpike 24.1 250 1 50 25 1 17
13 G5 0.451 32.1 2412 2477.0 3.68 91.1 64.4 YesSpike 16.8 250 1 50 25 1 14
14 H5 0.437 31.8 2541 2504.0 2.11 52.9 37.4 YesSpike 13.8 250 1 50 25 1 13

Duplicates with high CV

Flag samples with high coefficient of variation (duplicate measurements that are too different from each other)

High CV in a total of 7 duplicates. These are:
  Wells
1    D5
2    C9
3   D11
4    C3
5    F7
6    F3
7    D3

Samples outside the curve

Samples that have a binding percentage over 80 or 20 do not provide accurate results

Total samples outside the curve: 3

Total samples failed

Number of failed samples is 9
Number of good quality data points is 30

Location

Data set with low quality samples flagged saved in: Data_QC_flagged.csv
Good quality data is stored in Data_QC_filtered.csv file

Overall quality of the assay

Intra-Assay CV including all samples is 11.35518 %
Intra-Assay CV including only good quality data is 5.799733 %

sessionInfo()
R version 4.5.0 (2025-04-11)
Platform: aarch64-apple-darwin20
Running under: macOS Sequoia 15.4.1

Matrix products: default
BLAS:   /Library/Frameworks/R.framework/Versions/4.5-arm64/Resources/lib/libRblas.0.dylib 
LAPACK: /Library/Frameworks/R.framework/Versions/4.5-arm64/Resources/lib/libRlapack.dylib;  LAPACK version 3.12.1

locale:
[1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8

time zone: America/Detroit
tzcode source: internal

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

other attached packages:
[1] dplyr_1.1.4 knitr_1.50 

loaded via a namespace (and not attached):
 [1] vctrs_0.6.5       cli_3.6.4         rlang_1.1.6       xfun_0.52        
 [5] stringi_1.8.7     generics_0.1.3    promises_1.3.2    jsonlite_2.0.0   
 [9] workflowr_1.7.1   glue_1.8.0        rprojroot_2.0.4   git2r_0.36.2     
[13] htmltools_0.5.8.1 httpuv_1.6.16     sass_0.4.10       rmarkdown_2.29   
[17] evaluate_1.0.3    jquerylib_0.1.4   tibble_3.2.1      fastmap_1.2.0    
[21] yaml_2.3.10       lifecycle_1.0.4   whisker_0.4.1     stringr_1.5.1    
[25] compiler_4.5.0    fs_1.6.6          Rcpp_1.0.14       pkgconfig_2.0.3  
[29] rstudioapi_0.17.1 later_1.4.2       digest_0.6.37     R6_2.6.1         
[33] tidyselect_1.2.1  pillar_1.10.2     magrittr_2.0.3    bslib_0.9.0      
[37] tools_4.5.0       cachem_1.1.0