batchInfo: Get batch information

Description Usage Arguments Details Value Examples

Description

Get batch information from a Xeva dataset.

Usage

1
2
3
4
5
6
batchInfo(object, batch = NULL, model.id = NULL,
  model.id.type = c("any", "control", "treatment"))

## S4 method for signature 'XevaSet'
batchInfo(object, batch = NULL, model.id = NULL,
  model.id.type = c("any", "control", "treatment"))

Arguments

object

The Xeva object from which batch information is obtained.

batch

Name of the batch. Default NULL.

model.id

Model ID for which need to be searched in the batches. Default NULL.

model.id.type

Type of the model ID in a batch. See the Details section below.

Details

By default this function will return the names of all the batches present in the dataset. If a batch specified, it will return the experiment design (control and treatment model IDs) of that particular batch. If model.id is specified, it will return the names of all the batches where this particuler model.id is present. If both batch and model.id are specified, batch will take precedent.

For model.id.type, the default value 'any' will return all the batch IDs where the given model ID is present in any arm (ie. control or treatment) of the batch. It can also be restricted to look only for treatment (or control) arm by specifying the type.

Value

A Vector with batch names.

Examples

1
2
3
4
5
6
7
8
9
data(brca)
##to get all the batch names
batch.name <- batchInfo(brca)

##to get a specific batch
batch.design <- batchInfo(brca, batch=batch.name[1])

##to get all the batches where a model.id is present
batchInfo(brca, model.id="X.6047.uned")

Xeva documentation built on Nov. 8, 2020, 5:56 p.m.