tanaylab / mcATAC

Metacell analysis for ATAC data
https://tanaylab.github.io/mcATAC/
Other
1 stars 0 forks source link

save_pheatmap returns error when dev = pdf #66

Open yonatans2 opened 1 month ago

yonatans2 commented 1 month ago

in save_pheatmap, res is used as a named default parameter when calling the graphical device, which throws an error when dev is set to pdf (and I assume the same happens for svg)

> mcATAC::save_pheatmap(x = p_pltmt_modules,dev = pdf, 
    filename =  './output/metacell_model/nsc_gene_modules/figs/nsc_ipc_astro_stem_modules_phm_flag.pdf', 
    h = 9, w = 8.5)

Error in dev(filename, width = width, height = height, res = res): unused argument (res = res)
Traceback:

1. mcATAC::save_pheatmap(x = p_pltmt_modules, dev = pdf, filename = "./output/metacell_model/nsc_gene_modules/figs/nsc_ipc_astro_stem_modules_phm_flag.pdf", 
 .     h = 9, w = 8.5)