Description Usage Arguments Value B Allele Fractions by Peiffer et al. (2007) Author(s) References Examples
Reverse transform of angular signals.
1 2 | ## S3 method for class 'matrix'
backtransformAlleleRatiosByCentroids(beta, mu, truncate=FALSE, ...)
|
beta |
An JxI |
mu |
An JxC |
truncate |
If |
... |
Not used. |
Returns an JxI numeric
matrix
of backtransformed fractional signals.
In [2], the authors describe how to normalize B Allele Fractions (BAFs)
based on predefined linear interpolation. This method, which
is used in the Illumina's BeadStudio software, is also described in [1].
That method is obtained by passing θ of [1] and [2] as
argument beta
while using a Jx3 mu
centroid matrix and
truncate=TRUE
.
Henrik Bengtsson (http://www.braju.com/R/)
[1] Illumina,
BeadStudio Genotyping Module v3.2 - User Guide,
Illumina Inc., Part \#11284301, Rev. A, 2007, pp 114–115.
[2] Peiffer et al.,
High-resolution genomic profiling of chromosomal aberrations
using Infinium whole-genome genotyping,
Genome Research, 2006, 16.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 | ## Not run:
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# Example: Illumina HumanHap550 SNP data
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# Predefined genotype centroids for 5 SNPs
mu <- matrix(c(
0.0042, 0.7057, 0.9933,
0.0001, 0.5039, 0.9929,
0.0195, 0.7133, 0.9652,
0.0111, 0.4507, 0.9850,
0.0036, 0.5049, 0.9817
), nrow=5, ncol=3, byrow=TRUE);
colnames(mu) <- c("AA", "AB", "BB");
rownames(mu) <- c("rs10013734", "rs10013737", "rs10013782", "rs10013797", "rs10013819");
# Some data
theta <- matrix(c(
-0.0042,
0.7057,
0.9933,
0.5039,
0.0111
), nrow=5, ncol=1, byrow=TRUE);
# B Allele Fractions (BAFs) according to Peiffer et al. (2007)
thetaN <- backtransformAlleleRatiosByCentroids(theta, mu=mu, truncate=TRUE)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.