Comments (8)
Hi @meren, your fix worked. Thanks for getting to it so promptly. I will close the issue with a minor final note that I think there's a typo in the docs of the parser file you edited here. Where it says GENE it should say CONTIG. Just to avoid future confusion :)
from anvio.
This sounds like an issue with the HMMER version in the anvi'o environment (which should not have happened with the standard installation instructions). Would you be willing to install anvio-dev as explained in the installation page and test it again?
from anvio.
Hi Meren,
I can try install the development environment, but this is a shared server (and I am not the admin) so it may take a bit of time. For reference, the installed version of hmmer is HMMER 3.3.2
.
from anvio.
@meren I was able to install the dev environment with no errors. Same error, see below.
Traceback (most recent call last):
File "/Accounts/gkanaan/github/anvio/bin/anvi-run-hmms", line 143, in <module>
main(args)
File "/Accounts/gkanaan/github/anvio/anvio/terminal.py", line 881, in wrapper
program_method(*args, **kwargs)
File "/Accounts/gkanaan/github/anvio/bin/anvi-run-hmms", line 97, in main
search_tables.populate_search_tables(sources)
File "/Accounts/gkanaan/github/anvio/anvio/tables/hmmhits.py", line 277, in populate_search_tables
parser = parser_modules['search']['hmmer_table_output'](hmm_scan_hits_txt, alphabet=alphabet, context=context, program=self.hmm_program)
File "/Accounts/gkanaan/github/anvio/anvio/parsers/hmmer.py", line 582, in __init__
fixed_hmmer_table_txt = self.fix_sad_hmmer_table_output(hmmer_table_txt, col_names)
File "/Accounts/gkanaan/github/anvio/anvio/parsers/hmmer.py", line 754, in fix_sad_hmmer_table_output
hmmer_df.columns = col_names_plus_description_cols
File "/Accounts/gkanaan/.conda/envs/anvio-dev/lib/python3.7/site-packages/pandas/core/generic.py", line 5500, in __setattr__
return object.__setattr__(self, name, value)
File "pandas/_libs/properties.pyx", line 70, in pandas._libs.properties.AxisProperty.__set__
File "/Accounts/gkanaan/.conda/envs/anvio-dev/lib/python3.7/site-packages/pandas/core/generic.py", line 766, in _set_axis
self._mgr.set_axis(axis, labels)
File "/Accounts/gkanaan/.conda/envs/anvio-dev/lib/python3.7/site-packages/pandas/core/internals/managers.py", line 216, in set_axis
self._validate_set_axis(axis, new_labels)
File "/Accounts/gkanaan/.conda/envs/anvio-dev/lib/python3.7/site-packages/pandas/core/internals/base.py", line 58, in _validate_set_axis
f"Length mismatch: Expected axis has {old_len} elements, new "
ValueError: Length mismatch: Expected axis has 16 elements, new values have 19 elements
Same command run. anti-self-test -v
output is:
Anvi'o .......................................: hope (v7.1-dev)
Profile database .............................: 38
Contigs database .............................: 20
Pan database .................................: 16
Genome data storage ..........................: 7
Auxiliary data storage .......................: 2
Structure database ...........................: 2
Metabolic modules database ...................: 4
tRNA-seq database ............................: 2
from anvio.
Thanks for trying anvio-dev! I'll take a look into this in the next few hours.
from anvio.
Hey @Ge0rges, thank you very much for your patience with this. It turned out to be a serious issue that we didn't see coming :) Your HMM directory uses GENE:DNA
context. This is the first time someone is trying to run a DNA alphabet based model on coding genes. All examples so far run AA models or RNA models on genes, or DNA or RNA models on contigs, and never DNA models on genes. So the code was missing instructions to handle the output for that combination.
I think I fixed it in 050b680, and if you git pull
from anvio-dev you should be able to run it on your contigs-db no problem.
Thanks a lot again for sending a test dataset to figure this one out.
from anvio.
(If everything works please consider reporting back and closing the issue)
from anvio.
Good catch, thank you! Now fixed :)
And thanks for reporting back. I'm glad this is now resolved.
from anvio.
Related Issues (20)
- Error running `anvi-reaction-network` HOT 22
- anvio 7.1: anvi-setup-ncbi-cogs --reset HOT 1
- [BUG] anvi-help not working anymore HOT 1
- [BUG] Most annotations from anvi-run-cazymes have undefined ('-') accession numbers HOT 5
- [BUG] anvi-script-augustus-output-to-external-gene-calls 0 gens parsed
- [DISCUSSION] Methylation processing in anvio HOT 2
- [BUG] Search with operators in the interactive interface HOT 1
- [BUG] anvio-cluster-contigs fails with CONCOCT HOT 13
- [BUG] anvi-get metabolic-model-file ImportError: Numba needs NumPy 1.25 or less HOT 2
- [FEATURE REQUEST] Outputs for function- and pathway-level variability analysis HOT 2
- [BUG] Insert a short but descriptive title (leave the '[BUG]' part) HOT 1
- DAStool finishes without errors but output not recgnized by Anvi'o HOT 3
- [BUG] Issue with --pre-computed-inversions HOT 2
- Performing `anvi-self-test` but the interactive operator did not load in Chrome HOT 1
- [FEATURE REQUEST] A command to make new HMM sources from a list of COG IDs. HOT 12
- Problems about Structure Display with anvi-display-structure HOT 7
- [BUG] anvi-interactive crashes when using a collection and a external tree HOT 8
- [BUG] anvi-get-sequences-for-hmm-hits in combination with --gene-names silently removes genomes HOT 7
- anvi-setup-scg-taxonomy and anvi-setup-ncbi-cogs error HOT 2
- [BUG] Genes with multiple annotations overinflate stepwise pathway copy number values HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from anvio.