public class TestMatrixNormalizer extends Object
| Constructor and Description |
|---|
TestMatrixNormalizer() |
| Modifier and Type | Method and Description |
|---|---|
void |
testQuantileNormalize()
mm<-read.table("testdata.txt", header=T, row.names=1)
library(preprocessCore)
rr<-normalize.quantiles(as.matrix(mm))
rr[3,5]
[1] 29860.93
> rr[13,5]
[1] 466.7833
> rr[3,12]
[1] 31620.79
> rr[4,10]
[1] 1071.525
> rr[6,7]
[1] 288.925
>
|
void |
testQuantileNormalizeWithMissing()
Note that we do this differnetly than the Bioconductor implementation.
|
public void testQuantileNormalize()
throws Exception
mm<-read.table("testdata.txt", header=T, row.names=1)
library(preprocessCore)
rr<-normalize.quantiles(as.matrix(mm))
rr[3,5]
[1] 29860.93
> rr[13,5]
[1] 466.7833
> rr[3,12]
[1] 31620.79
> rr[4,10]
[1] 1071.525
> rr[6,7]
[1] 288.925
>
Exceptionpublic void testQuantileNormalizeWithMissing()
throws Exception
dm<-read.delim("testdatamissing.txt", row.names=1, header=T)
rr<-normalize.quantiles(as.matrix(dm))
> rr[3,5]
[1] 30458.47
> rr[13,5]
[1] 737.1687
> rr[3,12]
[1] NA
> rr[4,10]
[1] 1187.655
> rr[6,7]
[1] 570.0667
ExceptionCopyright © 2003–2022 UBC Michael Smith Laboratories. All rights reserved.