Learn R Programming

CHAT (version 1.1)

getCanonicalLines: Regression lines on canonical points with same number of minor alleles

Description

This function performs linear regression on canonical points with same number of minor alleles. This is an approximation of the real data grid to achieve faster computational speed.

Usage

getCanonicalLines(oo, p, type = 1, para)

Arguments

oo
Origin Cluster, returned by getOrigin()
p
numeric, AGP value. see getGrid() for details.
type
integer, ploidy indicator. 1, diploid; 2, tetraploid; 3, hexaploid
para
list, parameters returned from getPara()

Value

A list including the following elements:
b
slope of the line
k
intercept of the line
oo
Origin Cluster

Examples

Run this code
oo=NULL
oo$x0=0.02
oo$y0=0.1
oo$list=c()
cali=getCanonicalLines(oo,0.8,para=getPara())

Run the code above in your browser using DataLab