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

VOGDB issue--extra enclosing folder #340

Open
schmigle opened this issue Mar 29, 2024 · 4 comments
Open

VOGDB issue--extra enclosing folder #340

schmigle opened this issue Mar 29, 2024 · 4 comments

Comments

@schmigle
Copy link

schmigle commented Mar 29, 2024

After repeatedly running into the following error when trying to extract the VOG databases:

The subcommand ['hmmpress', '-f', 'DRAM_data/vog_latest_hmms.txt'] experienced an error:
Error: File format problem in trying to open HMM file DRAM_data/vog_latest_hmms.txt.
File exists, but appears to be empty?

I finally tracked it down to the concatenation function at line 377 in the process_vogdb function in database_processing.py:

merge_files(glob(path.join(hmm_dir, 'VOG*.hmm')), vog_hmms)

Since decompressing the tarball vog.hmm.tar.gz produces a folder hmm inside whatever folder it gets assigned to, there's nothing to merge, and hmmpress comes up empty. To work properly, I slightly rewrote this function to add in the extra folder:

merge_files(glob(path.join(hmm_dir, 'hmm/VOG*.hmm')), vog_hmms)

I don't know what's causing this discrepancy, but I hope this problem and solution are helpful if anyone runs into a similar problem.

@anbadilla
Copy link

thanks @schmigle
Can confirm it works!

@ghost
Copy link

ghost commented Apr 25, 2024

Could you show me the path to this file? I installed DRAM throught conda.

@sahilrishav2
Copy link

your path should be like this :
/home/your username/miniconda3/envs/DRAM/lib/python3.10/site-packages/mag_annotator/database_processing.py
replace 'your username' with the actual username. If you are using miniconda then there would be miniconda3 otherwise anaconda3.

then you can use text editor like nano or gedit to edit the line number 376

@crane90
Copy link

crane90 commented Apr 29, 2024

worked perfectly for me !

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

4 participants