Create tSNE, UMAP plots as pdfs
Closed this issue · 4 comments
inmanjm commented
An attempt has been made at having the pipeline produce pdf files of the following plots:
- pca
- tSNE
- UMAP
- DE Heatmap
However, having the pipeline create and output the plots in parallel is presenting challenges. As of now, the code tries to store the plots in a list, and outside of the foreach loop print them to disk like so:
for ( pdffile in pdfs ) {
pdf(pdffile)
pdfs[[pdffile]]
dev.off()
}
This produces no image files.
Investigate R best-practices for this and implement them.
inmanjm commented
Consider using .combine
with the foreach %dopar%
to get the plots out of the loop.
inmanjm commented
make the dimensions 10x10, pt size 2 should be default for the sizes.
cemalley commented
try ggsave
inmanjm commented
ggsave is writing pdf's as expected from within the %dopar% loop.
(Edited to remove comment that duplicates another issue)