assertFormalAnnotationCol: Assert Formal Annotation Column

Description Usage Arguments Value Author(s) See Also Examples

View source: R/assert.R

Description

Assert Formal Annotation Column

Usage

1
2
assertFormalAnnotationCol(x, sampleData,
  severity = getOption("assertive.severity", "stop"))

Arguments

x

Object.

sampleData

Sample data.

severity

How severe should the consequences of the assertion be? Either "stop", "warning", "message", or "none".

Value

Silent on success, stop on failure.

Author(s)

Michael Steinbaugh

See Also

Other Assert Check Functions: assertFormalInterestingGroups

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
x <- data.frame(
    "sample_1" = c(1L, 2L),
    "sample_2" = c(3L, 4L),
    row.names = c("gene_1", "gene_2"),
    stringsAsFactors = FALSE
)
sampleData <- data.frame(
    "genotype" = c("wt", "ko"),
    row.names = c("sample_1", "sample_2"),
    stringsAsFactors = TRUE
)
assertFormalAnnotationCol(x, sampleData)

hbc/bcbioBase documentation built on July 10, 2018, 3:50 p.m.