assignQuantityToMutation: Quantity assignment (copy number) to mutations
Description
Assigns a quantity to each mutated locus. Currently, the only assignable quantity is the average copy number (among all cells) of the locus in which the mutation is embedded.
Matrix in which each row corresponds to a mutation. Has to contain at least the following column names:
chr - the chromosome on which each mutation is located;
startpos - the genomic position of each mutation.
cbs
Matrix in which each row corresponds to a copy number segment as calculated by a circular binary segmentation algorithm. Has to contain at least the following column names:
chr - chromosome;
startpos - the first genomic position of a copy number segment;
endpos - the last genomic position of a copy number segment;
CN_Estimate - the copy number estimated for each segment.
quantityColumnLabel
The name of the new column. Valid options are: FPKM, CN_Estimate.
verbose
Give a more verbose output.
Value
dm
The input matrix with three additional columns:
quantityID - the ID of the assigned quantity;
quantityColumnLabel - the quantity.