is.compliant: is.compliant

Description Usage Arguments Value Examples

View source: R/correctness.R

Description

Check if 'x' is compliant with TRONCO's input: that is if it has dataframes x$genotypes, x$annotations, x$types and x$stage (optional)

Usage

1
2
3
4
5
is.compliant(
  x,
  err.fun = "[ERR]",
  stage = !(all(is.null(x$stages)) || all(is.na(x$stages)))
)

Arguments

x

A TRONCO compliant dataset.

err.fun

string which identifies the function which called is.compliant

stage

boolean flag to check x$stage datagframe

Value

on error stops the computation

Examples

1
2

TRONCO documentation built on Nov. 8, 2020, 5:51 p.m.