define_batches: Define batches based on scan date

View source: R/check_batch_effects.R

define_batchesR Documentation

Define batches based on scan date

Description

Groups samples into batches based on scan date. Samples run within a short time interval can be defined to belong to the same batch.

Usage

define_batches(se, col.scan.date = "scan.date", diff.ignore = 1)

Arguments

se

RangedSummarizedExperiment-class object

col.scan.date

Character or Integer. Column in colData() with scan dates (default: scan.date as generated by the function extract_scan_date.

diff.ignore

Numeric. Time difference (in days) defined as negligible (default: 1).

Value

RangedSummarizedExperiment-class object with batch information in additional column in colData()

Examples

data("se.gene")
se.gene = define_batches(se = se.gene,
                         col.scan.date = "scan.date")

szymczak-lab/QCnormSE documentation built on March 25, 2023, 1:05 p.m.