omixerSheet: Sample Sheet Generation

Description Usage Arguments Value Examples

View source: R/omixerSheet.R

Description

This function will generate visually intuitive plate layouts for the wet lab, with the option to colour code different types of samples (e.g. for studies investigating multiple tissues).

Usage

1
2
3
4
5
6
omixerSheet(
  omixerLayout = omixerLayout,
  group,
  group.text.size = 3.5,
  sample.text.size = 4
)

Arguments

omixerLayout

Randomized sample list

group

Colour-coding indicator

group.text.size

Change size of group text (default: 3.5)

sample.text.size

Change size of sample text (default: 4)

Value

PDF of sample layout in working directory

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
library(tibble)
library(forcats)
library(stringr)

sampleList <- tibble(sampleId=str_pad(1:48, 4, pad="0"),
sex=as_factor(sample(c("m", "f"), 48, replace=TRUE)), 
age=round(rnorm(48, mean=30, sd=8), 0), 
smoke=as_factor(sample(c("yes", "ex", "never"), 48, replace=TRUE)),
date=sample(seq(as.Date('2008/01/01'), as.Date('2016/01/01'), 
               by="day"), 48))
               
randVars <- c("sex", "age", "smoke", "date")

omixerLayout <- omixerRand(sampleList, sampleId="sampleId", 
block="block", iterNum=10, wells=48, div="row", 
plateNum=1, randVars=randVars)

omixerSheet(omixerLayout)

Omixer documentation built on Feb. 4, 2021, 2:01 a.m.