You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I wanted to try tiptoft but similarly to issue #26 I encounter the following error when trying to run tiptoft_database_downloader v1.0.2. Before breaking, the downloader saved nine .fsa files to tiptoft_db.tmp.download .
If you require additional information please let me know.
Thanks for having a look at it!
Best,
Laura
Combining downloaded fasta files...
RepA_N.fsa
enterobacteriaceae.fsa
Traceback (most recent call last):
File "/home/user/.local/bin/tiptoft_database_downloader", line 30, in <module>
tiptoft.run()
File "/home/user/.local/lib/python3.9/site-packages/tiptoft/TipToftDatabaseDownloader.py", line 23, in run
refgenes.run(self.output_prefix)
File "/home/user/.local/lib/python3.9/site-packages/tiptoft/RefGenesGetter.py", line 85, in run
exec('self._get_from_' + self.ref_db + '(outprefix)')
File "<string>", line 1, in <module>
File "/home/user/.local/lib/python3.9/site-packages/tiptoft/RefGenesGetter.py", line 58, in _get_from_plasmidfinder
for seq in file_reader:
File "/home/user/.local/lib/python3.9/site-packages/pyfastaq/sequences.py", line 141, in file_reader
raise Error('Error determining file type from file "' + fname + '". First line is:\n' + line.rstrip())
pyfastaq.sequences.Error: Error determining file type from file "/path/to/location/enterobacteriaceae.fsa". First line is:
<!DOCTYPE html>
The text was updated successfully, but these errors were encountered:
I am trying to use tiptoft and I found the same error as you did. I have solve it by modifying the script RefGenesGetter.py which was located inside the conda enviroment I created "<conda_env_path>/lib/python3.10/site-packages/tiptoft/RefGenesGetter.py".
I modified the lines 41 to 44 to be:
for f in files_to_download:
cmd = 'wget https://bitbucket.org/genomicepidemiology/plasmidfinder_db/raw/master/'+str(f)
print('Downloading data with:', cmd, sep='\n')
subprocess.check_call(cmd, shell=True)
This error comes up because tiptoft_database_downloader is trying to download enterobacteriaceae.fsa from plasmidfinder_db, which has been modified to enterobacteriales.fsa. enterobacteriaceae.fsa → enterobacteriales.fsa
I modified the tiptoft/RefGenesGetter.py line 39:
Hello,
I wanted to try tiptoft but similarly to issue #26 I encounter the following error when trying to run tiptoft_database_downloader v1.0.2. Before breaking, the downloader saved nine .fsa files to tiptoft_db.tmp.download .
If you require additional information please let me know.
Thanks for having a look at it!
Best,
Laura
The text was updated successfully, but these errors were encountered: