Computes coordinates of a canonical point

Description

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

Usage

1
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.

Author(s)

Bo Li

Examples

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

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.