estimateDeltaABBySmallDH.PairedPSCBS | R Documentation |
Estimate a threshold for calling allelic balance from DH.
## S3 method for class 'PairedPSCBS'
estimateDeltaABBySmallDH(fit, q1=0.05, q2=0.9, ..., verbose=FALSE)
q1 |
A |
q2 |
A |
... |
Not used. |
verbose |
See |
Returns the threshold estimate as a numeric
scalar.
Grabs the segment-level DH estimates.
Calculate segment weights proportional to the number of heterozygous SNPs.
Calculate \Delta
as the 5% quantile of the weighted DH means.
Choose the segments with means less than \Delta
.
Calculate threshold \Delta_{AB}
as the 90% "symmetric" quantile
of the observed locus-level DHs from the selected segments
in Step 4.
The q:th "symmetric" quantile is estimated by estimating
the ((1-q), 50%) quantiles, calculating their distance as
"50%-(1-q)" and add to the median (50%), i.e.
"median + (median-(1-q))" = "2*median-1 + q", which should
equal q if the distribution is symmetric.
Henrik Bengtsson
Instead of calling this method explicitly, it is recommended
to use the *estimateDeltaAB()
method.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.