shared code for common lab functions, analyses, etc