Learn R Programming

expands (version 1.5)

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, colName = "PM", keepAmbigSeg=FALSE)

Arguments

dm
Matrix in which each row corrsponds to a mutation. Has to contain at least the following columnnames: chr - the chromosome on which each mutation is located; startpos - the genomic position of each mutation; SP - the SP to which the
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
colName
The SP specific value assigned to each copy number fragment. Possible values: PM, PM_B. Default: PM.
keepAmbigSeg
Whether to assign ploidy to a subpopulation, SP_i, for a segment containing multiple SP_i specific SNVs, at least two of which have distinct ploidies. If set to TRUE, the median SNV ploidy is assigned as segment ploidy. Setting this parameter to TRUE is n

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, ambiguous mutation-ploidies within the segment).