|
|
|
|
|
|
|
|
raw_bVals <- getBeta(mSetRaw) |
|
|
raw_bVals <- getBeta(mSetRaw) |
|
|
message("m value and beta value output:finished") |
|
|
message("m value and beta value output:finished") |
|
|
|
|
|
|
|
|
|
|
|
# normalization |
|
|
|
|
|
MSet.noob <- preprocessNoob(rgSet) |
|
|
|
|
|
RSet <- ratioConvert(MSet.noob, what = "both", keepCN = TRUE) |
|
|
|
|
|
bVals <- getBeta(RSet) |
|
|
|
|
|
mVals <- getM(RSet) |
|
|
|
|
|
|
|
|
# write output |
|
|
# write output |
|
|
message("saving R data") |
|
|
message("saving R data") |
|
|
rdata_filename = paste(opt$prefix, '.RData',sep="") |
|
|
rdata_filename = paste(opt$prefix, '.RData',sep="") |
|
|
|
|
|
|
|
|
write.table(raw_mVals,m_raw_filename,col.names = T,row.names = T,sep="\t",quote=F) |
|
|
write.table(raw_mVals,m_raw_filename,col.names = T,row.names = T,sep="\t",quote=F) |
|
|
b_raw_filename = paste(opt$prefix,'.raw.bVal.txt',sep="") |
|
|
b_raw_filename = paste(opt$prefix,'.raw.bVal.txt',sep="") |
|
|
write.table(raw_bVals,b_raw_filename,col.names = T,row.names = T,sep="\t",quote=F) |
|
|
write.table(raw_bVals,b_raw_filename,col.names = T,row.names = T,sep="\t",quote=F) |
|
|
|
|
|
message("writing filtered table") |
|
|
|
|
|
m_filename = paste(opt$prefix,'.ssnoob.mVal.txt',sep="") |
|
|
|
|
|
write.table(mVals,m_filename,col.names = T,row.names = T,sep="\t",quote=F) |
|
|
|
|
|
b_filename = paste(opt$prefix,'.ssnoob.bVal.txt',sep="") |
|
|
|
|
|
write.table(bVals,b_filename,col.names = T,row.names = T,sep="\t",quote=F) |