is.compliant: is.compliant

View source: R/correctness.R

is.compliantR Documentation

is.compliant

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

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

data(test_dataset)
is.compliant(test_dataset)


BIMIB-DISCo/TRONCO documentation built on March 31, 2024, 9:20 p.m.