Return true if the TRONCO dataset 'x', which should be a TRONCO compliant dataset - see is.compliant - has stage annotations for samples. Some sample stages might be annotated as NA, but not all.

has.stages(x)

Arguments

x

A TRONCO compliant dataset.

Value

TRUE if the TRONCO dataset has stage annotations for samples.

Examples

data(test_dataset)
has.stages(test_dataset)
#> [1] FALSE
data(stage)
test_dataset = annotate.stages(test_dataset, stage)
#> Warning: 6  missing stages were added as NA.
has.stages(test_dataset)
#> [1] TRUE