Skip to content
Snippets Groups Projects
Commit 6154e3b4 authored by Skander Hatira's avatar Skander Hatira
Browse files

added clustering and PCA plot and scree plots

parent 08bc9782
No related branches found
No related tags found
No related merge requests found
......@@ -19,6 +19,9 @@ rule compute_methylkit:
coverageStatsPdf=outdir+"methylkit_results/{id}-{context}/{id}-{context}-coverage-stats.pdf",
correlationTxt=outdir+"methylkit_results/{id}-{context}/{id}-{context}-correlation-stats.txt",
correlationPdf=outdir+"methylkit_results/{id}-{context}/{id}-{context}-correlation-stats.pdf",
clustersPdf=outdir+"methylkit_results/{id}-{context}/{id}-{context}-clusters.pdf",
pcaScreePdf=outdir+"methylkit_results/{id}-{context}/{id}-{context}-PCA-screeplot.pdf",
pcaPdf=outdir+"methylkit_results/{id}-{context}/{id}-{context}-PCA.pdf",
log:
outdir+"methylkit_results/{id}-{context}/{id}-{context}-log.out"
......
......@@ -84,3 +84,17 @@ close(fileTxt)
pdf(snakemake@output[["correlationPdf"]])
getCorrelation(meth,plot=TRUE)
dev.off()
pdf(snakemake@output[["clustersPdf"]])
clusterSamples(meth, dist="correlation", method="ward.D2", plot=TRUE)
dev.off()
### PCA ###
pdf(snakemake@output[["pcaScreePdf"]])
PCASamples(meth, screeplot=TRUE)
dev.off()
pdf(snakemake@output[["pcaPdf"]])
PCASamples(meth)
dev.off()
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment