Calls XX or XY from ChrX allele B fractions of a normal sample.
# S3 method for numeric
callXXorXY(betaX, betaY=NULL, flavor=c("density"), adjust=1.5, ...,
censorAt=c(-0.5, +1.5), verbose=FALSE)
Returns a ...
A optional numeric
vector
containing ChrY allele B fractions.
A character
string specifying the type of algorithm used.
A postive double
specifying the amount smoothing for
the empirical density estimator.
Additional arguments passed to
findPeaksAndValleys
.
A double
vector
of length two specifying the range
for which values are considered finite. Values below (above) this
range are treated as -Inf
(+Inf
).
A logical
or a Verbose
object.
Missing and non-finite values are dropped before trying to call XX or XY.
Henrik Bengtsson, Pierre Neuvial
Internally findPeaksAndValleys
is used to identify
the thresholds.