One row per sample x segment with integer copy numbers capped at cap: sample_id, chrom, start, end, cn_a, cn_b
(allele-specific) or sample_id, chrom, start, end, cn (total = cn_a + cn_b, for --total-copy-numbers --input-allele-columns cn). Adjacent pieces of a chromosome whose values are identical in every sample are merged
(after the cap; on cn_a / cn_b, or on cn for the total table), so every sample has the same segments, as MEDICC2
requires. The normal clone normal is a sample (MEDICC2 --normal-name N0); when absent it is added as 1:1 on
diploid and 1:0 on haploid pieces (male chrX), so it is the root of the tree. Chromosomes are sorted naturally.
Arguments
- x
orient_clone_states()result, or a long table withclone, chrom, start, end, cn_a, cn_b(+ploidy)- allele_specific
TRUE: cn_a / cn_b columns; FALSE: total cn
- normal
name of the normal sample
- cap
maximal copy number (MEDICC2 caps at 8)
- chroms
chromosomes kept