cruizperez / MicrobeAnnotator

Pipeline for metabolic annotation of microbial genomes
Artistic License 2.0
133 stars 27 forks source link

Step 13, db_builder failed #49

Closed Chronona closed 2 years ago

Chronona commented 2 years ago

When I do the next command, it happens error.

microbeannotator_db_builder -d MicrobeAnnotator_DB -m blast -t 10 --light
2022-03-30 15:29:00,795 [INFO]: Step 13
2022-03-30 15:29:00,795 [INFO]: Creating RefSeq to UniProt table
Traceback (most recent call last):
  File "/home/***/.local/bin/microbeannotator_db_builder", line 445, in <module>
    main()
  File "/home/***/.local/bin/microbeannotator_db_builder", line 437, in main
    single_step, aspera, keep_temp, bin_path)
  File "/home/***/.local/bin/microbeannotator_db_builder", line 281, in database_duilder
    refseq_to_uniprot, interconversion_database)
  File "/home/***/.local/lib/python3.6/site-packages/microbeannotator/database/conversion_database_creator.py", line 52, in create_refseq_to_uniprot
    conn = sqlite3.connect(sqlitedb)
TypeError: argument 1 must be str, not PosixPath

Then I edited conversion_database_creator.py on lines 107, 175, and 52.

conn = sqlite3.connect(str(sqlitedb))

And I do again

2022-03-30 15:34:06,949 [INFO]: Step 13
2022-03-30 15:34:06,949 [INFO]: Creating RefSeq to UniProt table
2022-03-30 15:34:27,781 [INFO]: Finished
2022-03-30 15:34:27,810 [INFO]: Creating KO to EC table
100% [.............................................................] 50126 / 501262022-03-30 15:34:29,052 [INFO]: Finished
2022-03-30 15:34:29,053 [INFO]: Creating InterPro tables
100% [.......................................................] 32278037 / 322780372022-03-30 15:34:46,861 [INFO]: Finished
2022-03-30 15:34:46,863 [INFO]: Step 14
2022-03-30 15:34:46,863 [INFO]: Building blast databases
2022-03-30 15:36:11,571 [INFO]: Finished
2022-03-30 15:36:11,571 [INFO]: Step 15
2022-03-30 15:36:11,571 [INFO]: Cleaning temporary files
2022-03-30 15:36:11,571 [INFO]: Finished
2022-03-30 15:36:11,571 [INFO]: MicrobeAnnotator has finished creating your databases!
You are ready to search and annotate your proteins!

I could finish building DB. Is this workaround correct?