ARloh: Expected allelic ratio in a LOH region

Description Usage Arguments Author(s) Examples

View source: R/estimateLOHcurve.r

Description

Expected allelic ratio in a LOH region with scaled read count x

Usage

1
ARloh(x, S, n)

Arguments

x

Value on the x axis of a tumor contour plot

S

Parameter S

n

Proportion of normal cells in the sample.

Author(s)

Mathieu Lemire

Examples

1
2
3
4
5
6
7
8
9
## Not run: 
# select a few peaks or segments that are LOH
sp <-  selectPeaks( cntr, copyAr , getLocal=F ) 
x<-sp$x; y<-sp$y
nls.fit<- nls( y ~ ARloh( x, 1 ,n ), start=list(n=0.01  ), 
               upper=list( n=1 ), lower=list(n=0 ), algo="port" )
Sn<-  summary(nls.fit)$coefficients[1,1]

## End(Not run)

mathieu-lemire/celluloid_0.11 documentation built on Aug. 6, 2018, 9:15 a.m.