Learn R Programming

CHAT (version 1.1)

plotIdentifiableZone: Plot Identifiable Zone on sAGP-SAF plot

Description

This function generates diagnostic identifiable zones on sAGP-SAF plot.

Usage

plotIdentifiableZone(nt, nb,add=FALSE,legend=TRUE,title=TRUE)

Arguments

nt
integer, number of total alleles.
nb
integer, number of minor allele.
add
logic, if TRUE, areas of identifiable zones will be overlaid onto the current active device.
legend
logic, if TRUE, legend indicating scenario A1, A2, B and C will be added to the plot.
title
logic, if TRUE, values of nt and nb will be titled to the plot.

Value

NULL

Details

To estimate Cancer Cell Fraction using two known quantities: segment-specific AGP (sAGP) of the DNA segment that mutation occurred on and somatic allele frequency (SAF) of the mutation, it is helpful to learn how different temporal order scenarios affect the inference. This function places the uniquely identifiable regions as well overlapping, unidentifiable regions on sAGP-SAF plot to visually diagnose how well the four temporal scenarios can be separated.

Examples

Run this code
par(mfrow=c(1,3),mar=c(4,4,1,0))
## hemizygous deletion
plotIdentifiableZone(1,0)
## cn-LOH
plotIdentifiableZone(2,0)
## hemizygous amplification
plotIdentifiableZone(3,1)

Run the code above in your browser using DataLab