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

Diamond version incompatible / TypeError: sequence item 0 #186

Open
chumphati opened this issue Jul 25, 2023 · 0 comments
Open

Diamond version incompatible / TypeError: sequence item 0 #186

chumphati opened this issue Jul 25, 2023 · 0 comments

Comments

@chumphati
Copy link

Hi,

I have a problem installing CarveMe related to diamond. The version downloaded with conda (0.9.14) as recommended on the installation page returns the error:

Error: Database was built with a different version of diamond as is incompatible.
Failed to run diamond.

When I upgrade the diamond version (to 2.1.8), I get this initial error:

carve --dna -o SRR5329951 assemblies/SRR5329951.fasta

Traceback (most recent call last):
File "/home/fhak/.local/bin/carve", line 8, in
sys.exit(main())
File "/home/fhak/.local/lib/python3.8/site-packages/carveme/cli/carve.py", line 357, in main
maincall(
File "/home/fhak/.local/lib/python3.8/site-packages/carveme/cli/carve.py", line 181, in maincall
scores, gene2gene = reaction_scoring(annotations, gprs, debug_output=debug_output)
File "/home/fhak/.local/lib/python3.8/site-packages/carveme/reconstruction/scoring.py", line 105, in reaction_scoring
protein_scores = gene_scores.groupby(['protein', 'reaction', 'model'], as_index=False)
File "/home/fhak/.local/lib/python3.8/site-packages/pandas/core/groupby/generic.py", line 940, in aggregate
result, how = self._aggregate(func, *args, **kwargs)
File "/home/fhak/.local/lib/python3.8/site-packages/pandas/core/base.py", line 428, in _aggregate
result = _agg(arg, _agg_1dim)
File "/home/fhak/.local/lib/python3.8/site-packages/pandas/core/base.py", line 395, in _agg
result[fname] = func(fname, agg_how)
File "/home/fhak/.local/lib/python3.8/site-packages/pandas/core/base.py", line 379, in _agg_1dim
return colg.aggregate(how)
File "/home/fhak/.local/lib/python3.8/site-packages/pandas/core/groupby/generic.py", line 262, in aggregate
return self._python_agg_general(func, *args, **kwargs)
File "/home/fhak/.local/lib/python3.8/site-packages/pandas/core/groupby/groupby.py", line 936, in _python_agg_general
result, counts = self.grouper.agg_series(obj, f)
File "/home/fhak/.local/lib/python3.8/site-packages/pandas/core/groupby/ops.py", line 635, in agg_series
return self._aggregate_series_fast(obj, func)
File "/home/fhak/.local/lib/python3.8/site-packages/pandas/core/groupby/ops.py", line 660, in _aggregate_series_fast
result, counts = grouper.get_result()
File "pandas/_libs/reduction.pyx", line 375, in pandas._libs.reduction.SeriesGrouper.get_result
File "pandas/_libs/reduction.pyx", line 192, in pandas._libs.reduction._BaseGrouper._apply_to_group
File "/home/fhak/.local/lib/python3.8/site-packages/pandas/core/groupby/groupby.py", line 913, in
f = lambda x: func(x, *args, **kwargs)
File "/home/fhak/.local/lib/python3.8/site-packages/carveme/reconstruction/scoring.py", line 19, in merge_subunits
protein = ' and '.join(sorted(genes))
TypeError: sequence item 0: expected str instance, float found

I get the same error when downgrading python to 3.6.

Thank you for your help.

Best,
Fiona

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

1 participant