View source: R/normalize.batches.R
batch.normalize | R Documentation |
This function batch normalizes the X & Y intensity data by subtracting batch medians from the X & Y intensities.
batch.normalize(path = ".", snps)
quantilenorm(x1, y1, x2, y2)
path |
Character, the full path to the input files, which must be either "x.txt" and "y.txt" or "x.filt.txt" and "y.filt.txt". |
snps |
Data.frame, with three columns containing SNP ID, chromosome and Mb location in that order. May be obtained from ftp://ftp.jax.org/MUGA. |
x1 |
Numeric matrix containing X intensities for batch 1 containing samples in rows and markers in columns. Number of samples should be larger than x2. |
y1 |
Numeric matrix containing Y intensities for batch 1 containing samples in rows and markers in columns. Number of samples should be larger than y2. |
x2 |
Numeric matrix containing X intensities for batch 2 containing samples in rows and markers in columns. |
y2 |
Numeric matrix containing Y intensities for batch 2 containing samples in rows and markers in columns. |
quantile.norm adjusts the intensities of samples in batch 2 to those of batch 1. The number of samples in batch 1 should be greater than the number of samples in batch 2. At each SNP, we form quantiles of the X1 (or Y1) intensity distribution, discarding the upper and lower 0.01
FALSEor batch.normalize: returns value is returned. The batch normalized intensities are written to "x.filt.batch.norm.txt" and "y.filt.batch.norm.txt".
FALSEor quantilenorm: returns normalized X and Y values for batch 2.
FALSEuture releases may include more sophisticated normalization algorithms.
Daniel Gatti
extract.raw.data
, filter.samples
## Not run:
load(url("ftp://ftp.jax.org.MUGA/muga_snps.Rdata"))
batch.normalize(path = "/demo/MUGA/", snps = muga_snps)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.