cruizperez / MicrobeAnnotator

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

Step 3 - Permission error #69

Open Sam-J-1 opened 1 year ago

Sam-J-1 commented 1 year ago

Hi, I am having an issue with step 3, as shown below.

python microbeannotator_db_builder -d MicrobeAnnotator_DB -m blast -t 16 --light --step 3 2022-10-31 17:30:39,821 [INFO]: This is MicrobeAnnotator v2.0.5 2022-10-31 17:30:39,821 [INFO]: I will download and format the databases I use. 2022-10-31 17:30:39,822 [INFO]: Creating database folders 2022-10-31 17:30:39,822 [INFO]: Step 3 2022-10-31 17:30:47,727 [INFO]: Downloading SwissProt Fasta files 100% [........................................................................] 91303010 / 91303010Traceback (most recent call last): File "microbeannotator_db_builder", line 445, in main() File "microbeannotator_db_builder", line 437, in main single_step, aspera, keep_temp, bin_path) File "microbeannotator_db_builder", line 105, in database_duilder swissprot_fasta = uniprot.swissprot_fasta_downloader(database_directory) File "C:\Users\sam-j\anaconda3\envs\microbeannotator\lib\site-packages\microbeannotator\database\uniprot_data_downloader.py", line 81, in swissprot_fasta_downloader output_fasta.unlink() File "C:\Users\sam-j\anaconda3\envs\microbeannotator\lib\pathlib.py", line 1309, in unlink self._accessor.unlink(self) PermissionError: [WinError 32] The process cannot access the file because it is being used by another process: 'MicrobeAnnotator_DB\protein_db\uniprot_sprot.fasta.gz'

I was wondering if anyone knows what's causing this issue and how to resolve it please?

Many thanks, Sam