Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Histogram Rscript Error #18

Open
camtelope opened this issue May 11, 2022 · 1 comment
Open

Histogram Rscript Error #18

camtelope opened this issue May 11, 2022 · 1 comment

Comments

@camtelope
Copy link

I want to plot kmer coverage using the histogram plotting script provided. However, I am getting an odd error I am unable to troubleshoot. I have been able to kmerize this file and run other options this program provides successfully.

My commands used go as followed:
dsk -file s_dys/fasta/GCF_000013425.1_ASM1342v1_genomic.fna.gz -kmer-size 31 -histo 1 -out outputfile

Rscript dsk/utils/plot-histo.R outputfile.histo

Error:
Error in bitmap(png.file, "png256", width = 7, height = 6, res = 300) :
GhostScript was not found
Execution halted

Any suggestions? Thanks in advance

@clemaitre
Copy link
Collaborator

Hi,

This issue comes from the bitmap function, used to save the figure in a png file, which requires Ghostscript to be installed on your machine. If Ghostscript is not installed, you can replace the bitmap function by png, jpegof pdf functions (modify the single line of code in plot-histo.R that calls bitmap()).
See for instance : https://search.r-project.org/R/refmans/grDevices/html/png.html

Best,
Claire

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants