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

TypeError: Cannot convert numpy.ndarray to numpy.ndarray #2

Open
A-postgraduate-student opened this issue Oct 18, 2024 · 1 comment

Comments

@A-postgraduate-student
Copy link

We are having the following problem with the installation of Algpred 2.0 and would appreciate a response, thanks!

##############################################################################

The program AlgPred2.0 is developed for predicting allergenic and non allergenic

protein from their primary sequence, developed by Prof G. P. S. Raghava's group.

Summary of Parameters:
Input File: ./PR-1.fasta ; Model: 1 ; Threshold: 0.3
Output File: outfile.csv ; Display: 1
Traceback (most recent call last):
File "/home/weilab/algpred2_new/algpred2.py", line 268, in
CM = pd.concat([pd.DataFrame(seqid_1),pd.DataFrame(seq)],axis=1)
File "/home/weilab/miniconda3/envs/algpred/lib/python3.9/site-packages/pandas/core/frame.py", line 867, in init
mgr = ndarray_to_mgr(
File "/home/weilab/miniconda3/envs/algpred/lib/python3.9/site-packages/pandas/core/internals/construction.py", line 319, in ndarray_to_mgr
values = _prep_ndarraylike(values, copy=copy_on_sanitize)
File "/home/weilab/miniconda3/envs/algpred/lib/python3.9/site-packages/pandas/core/internals/construction.py", line 580, in _prep_ndarraylike
values = convert(values)
File "/home/weilab/miniconda3/envs/algpred/lib/python3.9/site-packages/pandas/core/internals/construction.py", line 564, in convert
res = maybe_convert_platform(v)
File "/home/weilab/miniconda3/envs/algpred/lib/python3.9/site-packages/pandas/core/dtypes/cast.py", line 138, in maybe_convert_platform
arr = lib.maybe_convert_objects(arr)
File "lib.pyx", line 2538, in pandas._libs.lib.maybe_convert_objects
TypeError: Cannot convert numpy.ndarray to numpy.ndarray

@DaniDelHoyo
Copy link

Hi! I am not part of Raghava's group, but as a fellow conda environments sufferer, I could suggest you to match you numpy and pandas versions. Depending on yours, you might need to downgrade pandas or upgrade numpy, according to a quick google search. Anyway, this kind of errors arise all the time, usually googling the last error line helps. Hope it helps.

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