-
Notifications
You must be signed in to change notification settings - Fork 141
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
[BUG] ValueError occurred after running anvi-reaction-network #2190
Comments
Can someone please help me figure this out? Seems like this issue persists. Many thanks! |
Hello Samuel @semiller10, Thanks for your reply. Now I encountered another error: A reaction network will be made from protein orthology annotations in the Reference KEGG KO database directory .........: /mnt/cc061462-beb3-49ab-9318-5c7bf54d8588/database/anvio-KEGG/KO_REACTION_NETWORK
Traceback (most recent call last): Do you know how to solve it? Many thanks! |
Short description of the problem
"ValueError: max() arg is an empty sequence" was encountered after running anvi-reaction-network.
anvi'o version
Anvi'o .......................................: marie (v8-dev)
Python .......................................: 3.10.13
Profile database .............................: 39
Contigs database .............................: 22
Pan database .................................: 17
Genome data storage ..........................: 7
Auxiliary data storage .......................: 2
Structure database ...........................: 2
Metabolic modules database ...................: 4
tRNA-seq database ............................: 2
System info
Ubuntu 22.04; following https://anvio.org/install/linux/dev/.
Detailed description of the issue
"ValueError: max() arg is an empty sequence" was encountered after running anvi-reaction-network. Attached is the verbose:
(anvio-dev) e2s2@e2s2-super-server-1:/mnt/b351004a-4dc6-4bcf-add3-21fc26707773/Eric_meta$ anvi-reaction-network -c '/mnt/b351004a-4dc6-4bcf-add3-21fc26707773/Eric_meta/GB_GCA_001567165_1.db' --ko-dir '/mnt/cc061462-beb3-49ab-9318-5c7bf54d8588/database/anvio-KEGG/KO_REACTION_NETWORK' --modelseed-dir '/mnt/cc061462-beb3-49ab-9318-5c7bf54d8588/database/MODELSEED' --overwrite-existing-network
contigs database.
Contigs database .............................: /mnt/b351004a-4dc6-4bcf-add3-21fc26707773/Eric_meta/GB_GCA_001567165_1.db
Reference KEGG KO database directory .........: /mnt/cc061462-beb3-49ab-9318-5c7bf54d8588/database/anvio-KEGG/KO_REACTION_NETWORK
Reference ModelSEED database directory .......: /mnt/cc061462-beb3-49ab-9318-5c7bf54d8588/database/MODELSEED
METABOLIC REACTION NETWORK STATISTICS
Gene calls and KEGG Ortholog (KO) annotations
Total gene calls in genome ...................: 2,254
Genes annotated with protein KOs .............: 1,170
Genes in network .............................: 625
Protein KOs annotating genes .................: 991
KOs in network ...............................: 540
ModelSEED reactions in network and KO sources
Reactions in network .........................: 5,033
Mean reactions per KO ........................: 12.4
Stdev reactions per KO .......................: 34.5
Max reactions per KO .........................: 337
[16 Dec 23 21:21:54 Counting reactions from each alias source] ... /home/e2s2/miniconda3/envs/anvio-dev/lib/python3.10/site-packages/numpy/core/fromnumeric.py:3432: RuntimeWarning: Mean of empty slice.
return _methods._mean(a, axis=axis, dtype=dtype,
/home/e2s2/miniconda3/envs/anvio-dev/lib/python3.10/site-packages/numpy/core/_methods.py:190: RuntimeWarning: invalid value encountered in double_scalars
ret = ret.dtype.type(ret / rcount)
/home/e2s2/miniconda3/envs/anvio-dev/lib/python3.10/site-packages/numpy/core/_methods.py:265: RuntimeWarning: Degrees of freedom <= 0 for slice
ret = _var(a, axis=axis, dtype=dtype, out=out, ddof=ddof,
/home/e2s2/miniconda3/envs/anvio-dev/lib/python3.10/site-packages/numpy/core/_methods.py:223: RuntimeWarning: invalid value encountered in divide
arrmean = um.true_divide(arrmean, div, out=arrmean, casting='unsafe',
/home/e2s2/miniconda3/envs/anvio-dev/lib/python3.10/site-packages/numpy/core/_methods.py:257: RuntimeWarning: invalid value encountered in double_scalars
ret = ret.dtype.type(ret / rcount)
Traceback (most recent call last):
File "/home/e2s2/Softwares/anvio/bin/anvi-reaction-network", line 112, in
main()
File "/home/e2s2/Softwares/anvio/bin/anvi-reaction-network", line 29, in main
constructor.make_network(
File "/home/e2s2/Softwares/anvio/anvio/biochemistry/reactionnetwork.py", line 2412, in make_network
network = self.make_contigs_database_network(
File "/home/e2s2/Softwares/anvio/anvio/biochemistry/reactionnetwork.py", line 2757, in make_contigs_database_network
stats['Max reactions per KEGG reaction'] = max_reactions_per_kegg_reaction = max(reaction_counts)
ValueError: max() arg is an empty sequence
The text was updated successfully, but these errors were encountered: