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

unable to start device PNG #145

Closed
wwwfreya opened this issue Mar 26, 2024 · 1 comment
Closed

unable to start device PNG #145

wwwfreya opened this issue Mar 26, 2024 · 1 comment

Comments

@wwwfreya
Copy link

wwwfreya commented Mar 26, 2024

All my installation and execution commands are carried out according to the instructions on GitHub. I will not solve this error report. Why did this error occur? How can I fix it? Looking forward to your reply.

command:

PATH_Pro="/ds3200_1/users_root/wangfengying/Project_hyperborea"

source /ds3200_1/users_root/wangfengying/soft/anaconda3/bin/activate /ds3200_1/users_root/wangfengying/soft/anaconda3/envs/smudgeplot

cd /ds3200_1/users_root/wangfengying/Project_hyperborea/Template

mkdir kmc_tmp2

ls /ds3200_1/users_root/wangfengying/Project_hyperborea/Clean_data/PJ2303130218/Cleandata/DZZ01/*.fq.gz > FILES

kmc -k21 -t16 -m64 -ci1 -cs10000 @FILES kmcdb kmc_tmp2/

kmc_tools transform kmcdb histogram kmcdb_k21.hist -cx10000

L=$(smudgeplot.py cutoff kmcdb_k21.hist L)
U=$(smudgeplot.py cutoff kmcdb_k21.hist U)
echo $L $U

kmc_tools transform kmcdb -ci"$L" -cx"$U" dump -s kmcdb_L"$L"_U"$U".dump

smudgeplot.py hetkmers -o kmcdb_L"$L"_U"$U" < kmcdb_L"$L"_U"$U".dump

smudgeplot.py plot -t "DZZ01" kmcdb_L"$L"_U"$U"_coverages.tsv

This is the log and the error

error:
Running smudgeplot v0.2.5
Task: plot
Calling: smudgeplot_plot.R -i "kmcdb_L149_U670_coverages.tsv" -o "smudgeplot" -k 21

######################
## INPUT PROCESSING ##
######################

#############
## SUMMARY ##
#############
detecting two smudges at the same positions, not enough data for this number of bins lowering number of bins to 	35
detecting two smudges at the same positions, not enough data for this number of bins lowering number of bins to 	30
detecting two smudges at the same positions, not enough data for this number of bins lowering number of bins to 	25
detecting two smudges at the same positions, not enough data for this number of bins lowering number of bins to 	20
!! Warning, your coverage filter on the lower end (L = 	149	) is higher than half of the 1n coverage estimate ( 1n / 2 = 	84.28
If the real 1n coverage is half of your estimate you would not picked it up due to the filtering.
If you have sufficient coverage, consider reruning the analysis with lower L (something like (1n / 2) - 5)
One good way for verificaiton would be to compare it to GenomeScope estimate of haploid coverage

##########
## PLOT ##
##########
Error in .External2(C_X11, paste0("png::", filename), g$width, g$height,  : 
  unable to start device PNG
Calls: png
In addition: Warning message:
In png(paste0(args$output, "_smudgeplot_log10.png")) :
  unable to open connection to X11 display ''
Execution halted

Done!
@KamilSJaron KamilSJaron reopened this Mar 28, 2024
@KamilSJaron
Copy link
Owner

I presume it is still an issue, right? If you resolved the problem, would you post here the solution too?

I think this is not an error on smudgeplot side. Googling the error message makes me think you could solve the problem by installing some packagess.

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