flag_samples: A QC function for flagging technical replicate issues.

Description Usage Arguments Value Examples

View source: R/pcr_utils.R

Description

Pass bare columns to '...' to specify the technical replicate grouping.

Usage

1
flag_samples(data, ..., .max_cq = 35, .keep = TRUE)

Arguments

data

Data frame. Must have the columns: target, contents.

...

Grouping columns specified as bare column names. Using 'target' and 'contents' is always reccomended. Use additional information as needed, like 'primer_tech' and 'cell_type'.

.max_cq

Numeric. The maximum Cq value considered detectable.

.keep

Boolean. Should intermediate QC related columns be kept in the returned data frame.

Value

Data frame. 'data' with at least a new column 'flag', with names that match 'pcr_pal_flag()'.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
## Not run: 
samps %>% flag_samples()

# lower the 'max-cq' cutoff
samps %>% flag_samples(max_cq = 30)

# don't return intermediate columns
samps %>% flag_samples(keep = FALSE)

# change goruping if multiple cell types and primer technolgies are present for each sample
samples %>% flag_samples(cell_type, primer_tech)

## End(Not run)

hemoshear/assayr2 documentation built on Nov. 8, 2019, 6:13 p.m.