Skip to content

Commit 4e52b25

Browse files
ppavlidisarteymix
authored andcommitted
more checking
1 parent 5a634b5 commit 4e52b25

2 files changed

Lines changed: 13 additions & 3 deletions

File tree

test/data/lmtest.counts.R

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,13 @@ ourweights<-read.csv(header=T, row.names=1, 'lmtest.weights1.txt', sep='\t')
3333
elist$weights = as.matrix(ourweights)
3434
fit<-lmFit(elist$E,design=des,weights=elist$weights)
3535
fit<-noBayes(fit)
36+
topTable(fit, c(2,3), sort.by="none")
3637
# drilling into one example.
3738
anova(f1)
3839
anova(f1)[1,5]
3940
coef(fit[1,])
41+
topTable(fit, c(2,3), sort.by="none")
42+
4043
fit[1,]$sigma
4144
fit[1,]$cov.coefficients
4245
fit[1,]$stdev.unscaled
@@ -51,3 +54,8 @@ summary(f1)
5154
summary(f1)$sigma
5255

5356

57+
fit<-eBayes(fit)
58+
dffit<-as.data.frame(fit)
59+
topTable(fit, c(2,3), sort.by="none")
60+
dffit[1,]
61+
fit$df.prior

test/data/test-squeezevar.R

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,13 +41,15 @@ counts<-counts[apply(counts, 1, function(x) {
4141
a<-length(unique(x))>5;
4242
}),]
4343

44-
# fixme: sample and row order might not be right ...can work out from library sizes
44+
# fixme: sample and row order might not be right ...can work out from library sizes.
4545
vv<-voom(as.matrix(counts), model.matrix(~gt), plot=T)
46-
gmv<-read.delim("mv-1885318782381326010.txt", header=F, sep='\t')
47-
glo<-read.delim("loess-fit-943568072532947709.txt", header=F, sep='\t')
46+
gmv<-read.delim("/Users/pzoot/Dev/debugging/Gemma/ebayes/mv-gemma.txt", header=F, sep='\t')
47+
glo<-read.delim("/Users/pzoot/Dev/debugging/Gemma/ebayes/loess-fit-gemma.txt", header=F, sep='\t')
4848
plot(gmv, pch='.', ylim=c(0,5))
4949
lines(glo, col='red')
5050

51+
###########################################
52+
# Test case used in basecode (MeanVarianceEstimatorTest)
5153
td<-read.delim("lmtest11.dat.txt", header=T, row.names=1, sep='\t')
5254
tdes<-read.delim("lmtest11.des.txt", header=T, row.names=1, sep='\t')
5355
des<-model.matrix(~tdes$targets.TreatmentDHT);

0 commit comments

Comments
 (0)