Skip to content

Commit

Permalink
Update Methylation_pre-processing.R
Browse files Browse the repository at this point in the history
  • Loading branch information
V-Catherine authored Jun 10, 2020
1 parent db839de commit 8d6f539
Showing 1 changed file with 0 additions and 21 deletions.
21 changes: 0 additions & 21 deletions Methylation_pre-processing.R
Original file line number Diff line number Diff line change
Expand Up @@ -316,24 +316,3 @@ write.table(targets, file="TargetsFile.csv", sep=",", col.names=NA)
write.table(betaNorm, file="NormalisedFilteredBetaTable.csv", sep=",", col.names=NA)
write.table(mNorm, file="NormalisedFilteredMTable.csv", sep=",", col.names=NA)
write.table(mNoInf, file="NormalisedFilteredMTable_noInf.csv", sep=",", col.names=NA)




################
# Principal component regression analysis plots
###############
# select variables of interest
head(pData(fun_filtered))
pData2 <- data.frame(pData(fun_filtered))
pData2$sentrix_id = as.factor(pData2$sentrix_id)

lev = apply(pData2,2,function(x) table(x))
pData2 = pData2[,(sapply(lev,max,na.rm=T)>1)&(sapply(lev,nrow)>1) ]

#svg("PCA.svg",h=6,w=6)
pcrplot(minfi::getBeta(fun_filtered), cov= pData2, npc=20)
#dev.off()

# write session info
writeLines(capture.output(sessionInfo()), "sessionInfo.txt")

0 comments on commit 8d6f539

Please sign in to comment.