Skip to content

Instantly share code, notes, and snippets.

@seandavi
Created April 13, 2010 20:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save seandavi/365061 to your computer and use it in GitHub Desktop.
Save seandavi/365061 to your computer and use it in GitHub Desktop.
Testing HaarSeg segmentation algorithm on SNP data
plot(abs(baf(eset)[tmp,223]-baf(eset)[tmp,1]),pch='.')
plot(abs(baf(eset)[tmp,223]-baf(eset)[tmp,1]),pch='.',xlim=c(0,50000))
lines(x$Segmented,col='red')
plot(abs(baf(eset)[tmp,223]-baf(eset)[tmp,1]),pch='.',xlim=c(25000,50000))
lines(x$Segmented,col='red')
plot(abs(baf(eset)[tmp,223]-baf(eset)[tmp,1]),pch='.',xlim=c(27000,38000))
lines(x$Segmented,col='red')
x = haarSeg(abs(baf(eset)[tmp,223]-baf(eset)[tmp,1]),breaksFdrQ=0.000001,haarStartLevel=3,haarEndLevel=6)
lines(x$Segmented,col='green')
x = haarSeg(abs(baf(eset)[tmp,223]-baf(eset)[tmp,1]),breaksFdrQ=0.000001,haarStartLevel=4,haarEndLevel=6)
lines(x$Segmented,col='yellow')
lines(x$Segmented,col='blue')
plot(abs(baf(eset)[tmp,223]-baf(eset)[tmp,1]),pch='.',xlim=c(25000,50000))
lines(x$Segmented,col='blue')
par(mfrow=c(2,1))
plot(abs(baf(eset)[tmp,223]-baf(eset)[tmp,1]),pch='.',xlim=c(25000,50000))
lines(x$Segmented,col='blue')
plot(abs(exprs(eset)[tmp,223]-exprs(eset)[tmp,1]),pch='.',xlim=c(25000,50000))
plot(abs(baf(eset)[tmp,223]-baf(eset)[tmp,1]),pch='.',xlim=c(25000,50000))
lines(x$Segmented,col='blue')
plot(exprs(eset)[tmp,223]-exprs(eset)[tmp,1],pch='.',xlim=c(25000,50000),ylim=c(-1.5,1.5))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment