Return all sample IDs for input 'x', which should be a TRONCO compliant dataset - see is.compliant
.
as.samples(x)
A vector of sample IDs
data(test_dataset)
as.samples(test_dataset)
#> [1] "patient 1" "patient 2" "patient 3" "patient 4" "patient 5"
#> [6] "patient 6" "patient 7" "patient 8" "patient 9" "patient 10"
#> [11] "patient 11" "patient 12" "patient 13" "patient 14" "patient 15"
#> [16] "patient 16" "patient 17" "patient 18" "patient 19" "patient 20"
#> [21] "patient 21" "patient 22" "patient 23" "patient 24" "patient 25"
#> [26] "patient 26" "patient 27" "patient 28" "patient 29" "patient 30"
#> [31] "patient 31" "patient 32" "patient 33" "patient 34" "patient 35"
#> [36] "patient 36" "patient 37" "patient 38" "patient 39" "patient 40"