KeyError: 'cluster'

Issue #81 new
jiaojiao guan created an issue

Hi, there is a error like this.

Traceback (most recent call last):
File "/home/xubotang2/miniconda3/envs/vcon2/bin/vcontact2", line 834, in <module>
main(options)
File "/home/xubotang2/miniconda3/envs/vcon2/bin/vcontact2", line 526, in main
protein_df, clusters_df, profiles_df, contigs_df = vcontact2.protein_clusters.build_clusters(
File "/home/xubotang2/miniconda3/envs/vcon2/lib/python3.10/site-packages/vcontact2/protein_clusters.py", line 209, in build_clusters
for clust, prots in gene2genome.groupby("cluster"):
File "/home/xubotang2/miniconda3/envs/vcon2/lib/python3.10/site-packages/pandas/core/frame.py", line 7712, in groupby
return DataFrameGroupBy(
File "/home/xubotang2/miniconda3/envs/vcon2/lib/python3.10/site-packages/pandas/core/groupby/groupby.py", line 882, in init
grouper, exclusions, obj = get_grouper(
File "/home/xubotang2/miniconda3/envs/vcon2/lib/python3.10/site-packages/pandas/core/groupby/grouper.py", line 882, in get_grouper
raise KeyError(gpr)
KeyError: 'cluster'

My package is like this:

Name Version Build Channel

_libgcc_mutex 0.1 conda_forge conda-forge
_openmp_mutex 4.5 2_gnu conda-forge
biopython 1.79 py310h6acc77f_1 conda-forge
blast 2.12.0 hf3cf87c_4 bioconda
blosc 1.21.1 h83bc5f7_3 conda-forge
boost-cpp 1.74.0 h75c5d50_8 conda-forge
bzip2 1.0.8 h7f98852_4 conda-forge
c-ares 1.18.1 h7f98852_0 conda-forge
ca-certificates 2022.6.15 ha878542_0 conda-forge
curl 7.83.1 h2283fc2_0 conda-forge
diamond 2.0.15 hb97b32f_0 bioconda
entrez-direct 16.2 he881be0_1 bioconda
gettext 0.19.8.1 h73d1719_1008 conda-forge
hdf5 1.12.1 nompi_h4df4325_104 conda-forge
icu 70.1 h27087fc_0 conda-forge
joblib 1.1.0 pyhd8ed1ab_0 conda-forge
keyutils 1.6.1 h166bdaf_0 conda-forge
krb5 1.19.3 h08a2579_0 conda-forge
ld_impl_linux-64 2.36.1 hea4e1c9_2 conda-forge
libblas 3.9.0 15_linux64_openblas conda-forge
libcblas 3.9.0 15_linux64_openblas conda-forge
libcurl 7.83.1 h2283fc2_0 conda-forge
libedit 3.1.20191231 he28a2e2_2 conda-forge
libev 4.33 h516909a_1 conda-forge
libffi 3.4.2 h7f98852_5 conda-forge
libgcc-ng 12.1.0 h8d9b700_16 conda-forge
libgfortran-ng 12.1.0 h69a702a_16 conda-forge
libgfortran5 12.1.0 hdcd56e2_16 conda-forge
libgomp 12.1.0 h8d9b700_16 conda-forge
libidn2 2.3.2 h7f98852_0 conda-forge
liblapack 3.9.0 15_linux64_openblas conda-forge
libnghttp2 1.47.0 he49606f_0 conda-forge
libnsl 2.0.0 h7f98852_0 conda-forge
libopenblas 0.3.20 pthreads_h78a6416_0 conda-forge
libssh2 1.10.0 ha35d2d1_2 conda-forge
libstdcxx-ng 12.1.0 ha89aaad_16 conda-forge
libunistring 0.9.10 h7f98852_0 conda-forge
libuuid 2.32.1 h7f98852_1000 conda-forge
libzlib 1.2.12 h166bdaf_1 conda-forge
lz4-c 1.9.3 h9c3ff4c_1 conda-forge
lzo 2.10 h516909a_1000 conda-forge
mcl 14.137 pl5321hec16e2b_8 bioconda
ncurses 6.3 h27087fc_1 conda-forge
networkx 2.8.4 pyhd8ed1ab_0 conda-forge
nomkl 1.0 h5ca1d4c_0 conda-forge
numexpr 2.8.0 py310hf05e7a9_102 conda-forge
numpy 1.22.4 py310h4ef5377_0 conda-forge
openssl 3.0.3 h166bdaf_0 conda-forge
packaging 21.3 pyhd8ed1ab_0 conda-forge
pandas 1.4.2 py310h769672d_2 conda-forge
pcre 8.45 h9c3ff4c_0 conda-forge
perl 5.32.1 2_h7f98852_perl5 conda-forge
perl-archive-tar 2.40 pl5321hdfd78af_0 bioconda
perl-carp 1.38 pl5321hdfd78af_4 bioconda
perl-common-sense 3.75 pl5321hdfd78af_0 bioconda
perl-compress-raw-bzip2 2.103 pl5321h87f3376_0 bioconda
perl-compress-raw-zlib 2.105 pl5321h87f3376_0 bioconda
perl-encode 3.17 pl5321hec16e2b_0 bioconda
perl-exporter 5.72 pl5321hdfd78af_2 bioconda
perl-exporter-tiny 1.002002 pl5321hdfd78af_0 bioconda
perl-extutils-makemaker 7.64 pl5321hd8ed1ab_0 conda-forge
perl-io-compress 2.106 pl5321h87f3376_0 bioconda
perl-io-zlib 1.11 pl5321hdfd78af_0 bioconda
perl-json 4.06 pl5321hdfd78af_0 bioconda
perl-json-xs 2.34 pl5321h9f5acd7_5 bioconda
perl-list-moreutils 0.430 pl5321hdfd78af_0 bioconda
perl-list-moreutils-xs 0.430 pl5321hec16e2b_1 bioconda
perl-parent 0.236 pl5321hdfd78af_2 bioconda
perl-pathtools 3.75 pl5321hec16e2b_3 bioconda
perl-scalar-list-utils 1.62 pl5321hec16e2b_0 bioconda
perl-types-serialiser 1.01 pl5321hdfd78af_0 bioconda
pip 22.1.2 pyhd8ed1ab_0 conda-forge
psutil 5.9.1 py310h5764c6d_0 conda-forge
pyparsing 3.0.9 pyhd8ed1ab_0 conda-forge
pytables 3.7.0 py310hf5df6ce_0 conda-forge
python 3.10.5 ha86cf86_0_cpython conda-forge
python-dateutil 2.8.2 pyhd8ed1ab_0 conda-forge
python_abi 3.10 2_cp310 conda-forge
pytz 2022.1 pyhd8ed1ab_0 conda-forge
readline 8.1.2 h0f457ee_0 conda-forge
scikit-learn 1.1.1 py310hffb9edd_0 conda-forge
scipy 1.8.1 py310h7612f91_0 conda-forge
setuptools 62.5.0 py310hff52083_0 conda-forge
six 1.16.0 pyh6c4a22f_0 conda-forge
snappy 1.1.9 hbd366e4_1 conda-forge
sqlite 3.38.5 h4ff8645_0 conda-forge
threadpoolctl 3.1.0 pyh8a188c0_0 conda-forge
tk 8.6.12 h27826a3_0 conda-forge
tzdata 2022a h191b570_0 conda-forge
vcontact2 0.11.3 pyhdfd78af_0 bioconda
wget 1.20.3 ha35d2d1_1 conda-forge
wheel 0.37.1 pyhd8ed1ab_0 conda-forge
xz 5.2.5 h516909a_1 conda-forge
zlib 1.2.12 h166bdaf_1 conda-forge
zstd 1.5.2

Is there something wrong with package version? I don’t know how to debug t.

Comments (0)

  1. Log in to comment