TGAC / KAT

The K-mer Analysis Toolkit (KAT) contains a number of tools that analyse and compare K-mer spectra.
http://www.earlham.ac.uk/kat-tools
GNU General Public License v3.0
200 stars 51 forks source link

Plotting issue using kat plot spectra-hist function #180

Open criveralopez opened 1 year ago

criveralopez commented 1 year ago

Is anyone else experiencing this issue when running kat plot spectra-hist?

(kat_env) KAT_kmer_analysis % kat plot spectra-hist kat.hist
Kmer Analysis Toolkit (KAT) V2.4.2

Traceback (most recent call last):
  File "/usr/local/Cellar/kat/2.4.2/share/kat/scripts/kat/plot/spectra_hist.py", line 6, in <module>
    from misc import *
  File "/usr/local/Cellar/kat/2.4.2/share/kat/scripts/kat/plot/misc.py", line 1, in <module>
    import numpy as np
ModuleNotFoundError: No module named 'numpy'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/Cellar/kat/2.4.2/share/kat/scripts/kat/plot/spectra_hist.py", line 8, in <module>
    from kat.plot.misc import *
  File "/usr/local/Cellar/kat/2.4.2/share/kat/scripts/kat/plot/misc.py", line 1, in <module>
    import numpy as np
ModuleNotFoundError: No module named 'numpy'
../lib/include/kat/pyhelper.hpp(159): Throw in function void kat::PyHelper::execute(const std::__1::string, int, char **)
Dynamic exception type: boost::wrapexcept<kat::KatPythonException>
std::exception::what: std::exception
[kat::KatPythonError*] = Unexpected python error

I am doing this in a conda environment with python 3.6 and all the necessary python packages, including numpy. I am unclear how to proceed with this, so would appreciate any help here. Thanks!