Learn R Programming

expands (version 1.2)

assignQuantityToMutation: Quantity Assignment (Ploidy)

Description

Assigns a quantity to each mutated locus. Currently, the only assignable quantity is the average ploidy (among all cells) of the locus in which the mutation is embedded. Future releases will include the expression of the corresponding locus as estimated from RNA-Seq, as an additional assignable quantity.

Usage

assignQuantityToMutation(dm, cbs, quantityColumnLabel="CN_Estimate")

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.
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
quantityColumnLabel
The name of the new column. Valid options are: FPKM, CN_Estimate.

Value

  • dmThe input matrix with three additional columns: quantityID - the ID of the assigned quantity; quantityColumnLabel - the quantity; segmentLength - the length of the segment from which the quantity has been assigned.

Examples

Run this code
data(cbs)
data(snv)
dm=assignQuantityToMutation(snv,cbs,quantityColumnLabel="CN_Estimate")

Run the code above in your browser using DataLab