Split cohort (samples) into groups, return either all groups or a specific group.

ssplit(x, clusters, idx = NA)

Arguments

x

A TRONCO compliant dataset.

clusters

A list of clusters. Rownames must match samples list of x

idx

ID of a specific group present in stages. If NA all groups will be extracted

Value

A TRONCO compliant dataset.