failed_to_NA: Failed sample/binder to NA

Description Usage Arguments Value Author(s) Examples

View source: R/clean.failed_to_NA.R

Description

replace the data points of the failed samples/binders with NA

Usage

1
2
3
4
5
6
7
8
failed_to_NA(
  baf,
  wise = c("sinfo", "binder"),
  fail_flag = "fail_flag",
  failMark = "failed",
  show_count = TRUE,
  by
)

Arguments

baf

an object of the BAf-class

wise

sample-wise or binder-wise.

fail_flag

the name of the data frame that contains fail flags in @assy_s or @assy_b

failMark

what is the label in the flag for failed sample

show_count

Whether the number of "failed" is shown

by

if show_count is TRUE, then "by" indicates by which column the counts are stratified, e.g. "plate", "assay". This can be given as a vector like the result of batch(baf, "sinfo"), which is the default.

Value

an object of the BAf-class

Author(s)

Mun-Gwan Hong <mun-gwan.hong@scilifelab.se>

Examples

1
2
3
data(sba)
failed_to_NA(sba, wise= "sinfo", by= "plate")
failed_to_NA(sba)         # default 'by' is batch

Rundmus/BAf-R_package documentation built on May 18, 2020, 12:59 p.m.