assignQuantityToSP: Quantity assignment (ploidy) to subpopulations
Description
Assigns quantities to predicted SPs. Currently, the only assignable quantity are SP specific ploidies for the input genome segments (obtained by CBS).
Usage
assignQuantityToSP(cbs, dm)
Arguments
dm
Matrix in which each row corrsponds to a mutation. Has to contain at least the following columnnames:
chr - the chrmosome on which each mutation is located;
startpos - the genomic position of each mutation;
SP - the SP to which the m
cbs
Matrix in which each row corrsponds to a copy number fragment as computed by a circular binary segmentation algorithm. Has to contain at least the following columnnames:
chr - chromosome;
startpos - the first genomic position of a copy numbe
Value
cbsThe input matrix with one additional column for each predicted SP:
SP_size - the ploidy of each segment in the corresponding SP; Value indicates that no ploidy could be inferred for the segment in the corresponding SP (either because the SP had zero mutations within the segment, or because the SP had multiple, non-uniform mutations within the segment).