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

panaroo-qc is generating error #106

Closed
ali21049 opened this issue Mar 23, 2021 · 3 comments
Closed

panaroo-qc is generating error #106

ali21049 opened this issue Mar 23, 2021 · 3 comments

Comments

@ali21049
Copy link

Hi gtonkinhill,
Thank you for developing such a nice tool.
I freshly installed panaroo using conda. I am trying to run panaroo-qc, however, getting following error

panaroo-qc -i *.gff -o results -t 4 --graph_type all --ref_db refseq.genomes.k21s1000.msh 
Max p-value: 0
Loading Loading refseq.genomes.k21s1000.mshrefseq.genomes.k21s1000.mshLoading ......refseq.genomes.k21s1000.msh...Loading refseq.genomes.k21s1000.msh...



Killed
Killed
Killed
   16160796 distinct hashes.
Streaming from B_pumilus_ATCC_7061.gff...
   Estimated distinct k-mers in mixture: 3834663
Summing shared...
Reallocating to winners...
Computing coverage medians...
Writing output...
joblib.externals.loky.process_executor._RemoteTraceback: 
"""
Traceback (most recent call last):
  File "/home/ali/miniconda3/envs/panaroo/lib/python3.8/site-packages/joblib/externals/loky/process_executor.py", line 431, in _process_worker
    r = call_item()
  File "/home/ali/miniconda3/envs/panaroo/lib/python3.8/site-packages/joblib/externals/loky/process_executor.py", line 285, in __call__
    return self.fn(*self.args, **self.kwargs)
  File "/home/ali/miniconda3/envs/panaroo/lib/python3.8/site-packages/joblib/_parallel_backends.py", line 595, in __call__
    return self.func(*args, **kwargs)
  File "/home/ali/miniconda3/envs/panaroo/lib/python3.8/site-packages/joblib/parallel.py", line 262, in __call__
    return [func(*args, **kwargs)
  File "/home/ali/miniconda3/envs/panaroo/lib/python3.8/site-packages/joblib/parallel.py", line 262, in <listcomp>
    return [func(*args, **kwargs)
  File "/home/ali/miniconda3/envs/panaroo/lib/python3.8/site-packages/panaroo/generate_qc_plots.py", line 254, in run_mash_screen
    subprocess.run(temp_mash_cmd, shell=True, check=True)
  File "/home/ali/miniconda3/envs/panaroo/lib/python3.8/subprocess.py", line 516, in run
    raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command 'mash screen -i 0.8 -w refseq.genomes.k21s1000.msh B_pumilus_CJC.gff > /home/ali/Ali/panaroo_qc_data/results/tmp135m04mj' returned non-zero exit status 137.
"""

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/home/ali/miniconda3/envs/panaroo/bin/panaroo-qc", line 10, in <module>
    sys.exit(main())
  File "/home/ali/miniconda3/envs/panaroo/lib/python3.8/site-packages/panaroo/generate_qc_plots.py", line 437, in main
    generate_qc_plot(method=args.graph_type,
  File "/home/ali/miniconda3/envs/panaroo/lib/python3.8/site-packages/panaroo/generate_qc_plots.py", line 371, in generate_qc_plot
    mash_contam_file = get_mash_contam(input_gffs=input_files,
  File "/home/ali/miniconda3/envs/panaroo/lib/python3.8/site-packages/panaroo/generate_qc_plots.py", line 276, in get_mash_contam
    genome_hits = Parallel(n_jobs=n_cpu)(
  File "/home/ali/miniconda3/envs/panaroo/lib/python3.8/site-packages/joblib/parallel.py", line 1054, in __call__
    self.retrieve()
  File "/home/ali/miniconda3/envs/panaroo/lib/python3.8/site-packages/joblib/parallel.py", line 933, in retrieve
    self._output.extend(job.get(timeout=self.timeout))
  File "/home/ali/miniconda3/envs/panaroo/lib/python3.8/site-packages/joblib/_parallel_backends.py", line 542, in wrap_future_result
    return future.result(timeout=timeout)
  File "/home/ali/miniconda3/envs/panaroo/lib/python3.8/concurrent/futures/_base.py", line 432, in result
    return self.__get_result()
  File "/home/ali/miniconda3/envs/panaroo/lib/python3.8/concurrent/futures/_base.py", line 388, in __get_result
    raise self._exception
subprocess.CalledProcessError: Command 'mash screen -i 0.8 -w refseq.genomes.k21s1000.msh B_pumilus_CJC.gff > /home/ali/Ali/panaroo_qc_data/results/tmp135m04mj' returned non-zero exit status 137.
@gtonkinhill
Copy link
Owner

Hi,

This looks like the program may have been killed by an external command.

Are you able to run mash to check it runs okay. Assuming the files are in your working directory you could run

mash screen -i 0.8 -w refseq.genomes.k21s1000.msh B_pumilus_CJC.gff

@ali21049
Copy link
Author

ali21049 commented Apr 1, 2021

Fortunately, i had got results in spite of error.
By the way i ran mash screen -i 0.8 -w refseq.genomes.k21s1000.msh B_pumilus_CJC.gff and got
Loading refseq.genomes.k21s1000.msh...
Killed

@gtonkinhill
Copy link
Owner

I'm glad you were able to get results. As you got the same outcome when running Mash in isolation it looks like the issue is to do with how Mash is interacting with your server. I'm afraid I can't debug this further.

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