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

Unknown issue #24

Open
thesamuanels opened this issue Jan 30, 2024 · 5 comments
Open

Unknown issue #24

thesamuanels opened this issue Jan 30, 2024 · 5 comments

Comments

@thesamuanels
Copy link

thesamuanels commented Jan 30, 2024

Hello,
I've been trying to run ViralRecall, both using the test provided and with my own data, but it always gives me the following error:

Traceback (most recent call last):
File "/opt/viralrecall/viralrecall.py", line 733, in <module>
status = main()
File "/opt/viralrecall/viralrecall.py", line 725, in main
run_program(newinput, newproject, database, window, phagesize, minscore, minhit, evalue, cpus, plotflag, redo, flanking, batch, summary_file, contiglevel)
File "/opt/viralrecall/viralrecall.py", line 475, in run_program
summary = summary.append(data)
File "/opt/Anaconda3/envs/viralrecall/lib/python3.10/site-packages/pandas/core/generic.py", line 5989, in __getattr__
return object.__getattribute__(self, name)
AttributeError: 'DataFrame' object has no attribute 'append'. Did you mean: '_append'?

Any idea what the issue might be?

@faylward
Copy link
Owner

faylward commented Jan 30, 2024 via email

@thesamuanels
Copy link
Author

thesamuanels commented Jan 30, 2024

The input for that specific output was:
python /opt/viralrecall/viralrecall.py -i test -c -p viralrecall.out -b -e 1e-5
However, I got the same error when running:
python viralrecall.py -i examples/arm29B.fna -p test_outdir -t 2 -f

I have downgraded to python 3.5.6, now when running
python /opt/viralrecall/viralrecall.py -i test -c -p viralrecall.out -b -e 1e-5

I've obtained:

Running viralrecall on ALA.Apr2023.130_S8_metabat2.7.fa and output will be deposited in viralrecall.out/ALA.Apr2023.130_S8_metabat2.7.fa
Traceback (most recent call last):
File "/opt/viralrecall/viralrecall.py", line 733, in <module>
status = main()
File "/opt/viralrecall/viralrecall.py", line 725, in main
run_program(newinput, newproject, database, window, phagesize, minscore, minhit, evalue, cpus, plotflag, redo, flanking, batch, summary_file, contiglevel)
File "/opt/viralrecall/viralrecall.py", line 401, in run_program
df = pandas.concat([df, s1], axis=1, sort=True)
TypeError: concat() got an unexpected keyword argument 'sort'

@faylward
Copy link
Owner

faylward commented Jan 31, 2024 via email

@thesamuanels
Copy link
Author

Solved! Thanks.
We actually had an older version of pandas in our conda environment. It works now with pandas 0.23.0

@faylward
Copy link
Owner

faylward commented Jan 31, 2024 via email

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