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

DB builder error at step 11-- assertion error? #62

Open
natashagriffin opened this issue Aug 22, 2022 · 1 comment
Open

DB builder error at step 11-- assertion error? #62

natashagriffin opened this issue Aug 22, 2022 · 1 comment

Comments

@natashagriffin
Copy link

Hi there! Thank you for making this awesome annotation tool, I am really excited to try it out on my metatranscriptomes.

I have been working on installing the database on my space within my university's Linux cluster environment. I had to restart and run some steps individually during steps 1-10 because we are supposed to download files and run jobs on different host machines, but everything seemed to work up until step 11. Can you give me any tips for addressing this error? I found a past issue that looks similar, but it looks like it was a small program bug that had been fixed.

Thanks again!!

(microbeannotator) [grifnata@congo microbeannotator]$ microbeannotator_db_builder -d MicrobeAnnotator_DB -m diamond -t 40 --step 11
2022-08-22 12:01:01,503 [INFO]: This is MicrobeAnnotator v2.0.5
2022-08-22 12:01:01,503 [INFO]: I will download and format the databases I use.
2022-08-22 12:01:01,503 [INFO]: Creating database folders
2022-08-22 12:01:01,503 [INFO]: Step 11
Traceback (most recent call last):
File "/nfs5/Lab/grifnata/conda/envs/microbeannotator/bin/microbeannotator_db_builder", line 445, in
main()
File "/nfs5/Lab/grifnata/conda/envs/microbeannotator/bin/microbeannotator_db_builder", line 437, in main
single_step, aspera, keep_temp, bin_path)
File "/nfs5/Lab/grifnata/conda/envs/microbeannotator/bin/microbeannotator_db_builder", line 206, in database_duilder
viral_list = refseq.search_all_files(temp_gb_dir / "viral")
File "/nfs5/Lab/grifnata/conda/envs/microbeannotator/lib/python3.7/site-packages/microbeannotator/database/refseq_data_downloader.py", line 293, in search_all_files
assert(dirpath.is_dir())
AssertionError

@natashagriffin
Copy link
Author

I figured out this issue-- it seems to be because when running steps individually, any temporary files created during the step are deleted at the end. In this case a temporary file created during step 10 was required for step 11. I fixed this by re-running step 10 with the --keep flag to avoid deleting the temporary file used in step 11.

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