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

Error "hmmsearch: not found ... local variable 'hmmout' referenced before assignment" while running FeGenie #29

Open
anapopov opened this issue Jun 14, 2021 · 5 comments

Comments

@anapopov
Copy link

Hi, I'm interested in identifying iron related genes within a metatranscriptomics dataset. I have attempted providing a fasta with gene (nucleotide) or protein sequences as bellow, but I hit an error that says hmm not found. Please see below.

Thanks! Ana~

command: FeGenie.py -bin_dir ORFs/ -bin_ext fasta -out TEST_out --orfs

All required arguments provided!

HMM
AsbE_petrobactin_synthesis-rep
Cyc1
Cyc2_repCluster1
.
.
.
GACE_1846
GACE_1847
nramp
zip
starting main pipeline...

2
Looking for following iron-related functional category: iron_storage
sh: 1: hmmsearch: not foundta: 33%
rm: cannot remove 'TEST_out/test_proteins.fasta-HMM/Transferrin_TbpB_binding_protein_Haemophilus_influenzae_P44971.hmm.txt': No such file or directory
FeGenie cannot find the correct hmmsearch output files. If you provided gene or ORF-call sequences, please be sure to specify this in the command using the '--orfs' flag
Traceback (most recent call last):
File "/home/.../FeGenie/FeGenie.py", line 3083, in
main()
File "/home/.../FeGenie/FeGenie.py", line 821, in main
for line in hmmout:
UnboundLocalError: local variable 'hmmout' referenced before assignment

@Arkadiy-Garber
Copy link
Owner

Hi Ana,

Thanks for your interest in FeGenie! Sorry that you are getting errors, but hopefully we can get to the bottom of what's causing this.

Could you tell me how you installed FeGenie?

Also, FeGenie does not accept nucleotide gene sequences. It will take protein sequences, but ideally, you should provide contigs if you can.

Thanks!
Arkadiy

@anapopov
Copy link
Author

anapopov commented Jun 14, 2021

Thanks for your quick response Arkadiy!

I don't have conda, so I installed it within my vbox Ubuntu as per the alternative instructions:

git clone https://github.com/Arkadiy-Garber/FeGenie.git
cd FeGenie
bash setup.sh

I added it to my path, and had to install r and prodigal also.

re: prodigal/contigs - I get the same error using the test run provided:

...
Looking for following iron-related functional category: iron_storage
sh: 1: hmmsearch: not foundctinomycetemcomitans.txt: 33%
rm: cannot remove 'fegenie_out/Aggregatibacter_actinomycetemcomitans.txt-HMM/Transferrin_TbpB_binding_protein_Haemophilus_influenzae_P44971.hmm.txt': No such file or directory

@Arkadiy-Garber
Copy link
Owner

Hi Ana,

Based on what I can see from that error message, it looks like HMMER is not installed on your system (hmmsearch is the main command that FeGenie uses from the HMMER package). Here's a full list of dependencies that FeGenie requires: https://github.com/Arkadiy-Garber/FeGenie/wiki/Installation. However, I would highly recommend installing Conda. It will make installation of FeGenie (and countless other programs) much easier. I can't count how many hours of needless installation Conda has saved me.

@anapopov
Copy link
Author

Oops - I totally missed that. Likely because I previously had it installed. Thanks Arkadiy!

I'll try the contigs too. Very interested to see what we can dig up in this data.
Re: Conda - noted!

@Arkadiy-Garber
Copy link
Owner

Sounds good! Yes, I hope FeGenie helps you uncover some interesting iron genes! Let me know if you continue to have any issues.

Thanks,
Arkadiy

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