Learn R Programming

CHAT (version 1.1)

getCoord: Computes coordinates of a canonical point

Description

This function calculates the x and y coordinates of a canonical point on BAF-LRR plot.

Usage

getCoord(p, x0, y0, nn, nb, nt)

Arguments

p
numeric, proportion of aneuploid genome for a DNA segment
x0
numeric, x coordinate for the Origin Cluster
y0
numeric, y coordinate for the Origin Cluster
nn
integer, ploidy indicator. 1, diploid; 2, tetraploid; 3, hexaploid
nb
integer, number of minor alleles
nt
integer, number of total alleles

Value

A list of x and y coordinates.

Examples

Run this code
x0=0.05
y0=0.2
p=0.8
## Calculate the coordinates for copy-neutral-LOH segment
getCoord(p,x0,y0,1,0,2)

Run the code above in your browser using DataLab