Open rgaiacs opened 2 years ago
Hello,
I would have the same question. @rgaiacs @linazhu3 did you find a way to do this?
I would also like to output the enrichment tsv but have not found the way beside manually clicking in app. My script is all automated until that part.
Thanks for your help
I found the way to export tsv file. Here is the code:
d <- gsca3@result[["GSEA.results"]][["PW_KEGG"]]
write.table(
data.frame("Gene.Set"=rownames(d),d),
file = paste0(out,"/top_genesets.tsv"),
sep = "\t",
row.names = FALSE
)
From vignette,
will create a enrichment map. How can I programmable save the enrichment map as a PNG file?
Following https://mpn.metworx.com/packages/r2d3/0.2.3/articles/publishing.html#save_d3_png, I tried
but the result is a white PNG without the enrichment map.