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

ERROR: the local id is too long or OSError: [Errno 39] Directory not empty: 'input-genomes' #202

Open
elina2410 opened this issue Oct 10, 2023 · 3 comments

Comments

@elina2410
Copy link

Hello,
staramr works for some isolates, but for others I got an error like:
Exception: Could not run makeblastdb on file XXX_XX6234AA_AS.fasta, error b'BLAST Database creation error: Near line 1, the local id is too long. Its length is 51 but the maximum allowed local id length is 50. Please find and correct all local ids that are too long.'

If I used a wild card to take all mentioned above samples I got an error: OSError: [Errno 39] Directory not empty: 'input-genomes'

Could anyone explain why?

Thank you in advance
E

@apetkau
Copy link
Member

apetkau commented Oct 10, 2023

It's likely sequence the identifiers within your isolates are too long. That is, the ID likely looks like:

>ID...[51 characters]

Based on the message, the identifiers within these files will have to be shortened.

@elina2410
Copy link
Author

Yes, indeed. I needed to change headers in fasta files and it worked.
I have lastest version of staramr 0.10.0 with PointFinder db dated on 01.02.2021. Is it still not recommended to update databases ? I did an update and tried to run staramr again and I got an error:
Exception: error with [blastn -out /tmp/tmps8zo9h2h/200703_2873_contigs.fasta.all.resfinder.blast.tsv -outfmt "6 qseqid sseqid pident length qstart qend sstart send slen qlen sstrand sseq qseq" -query /home/abc/miniconda3/envs/staramr/lib/python3.11/site-packages/staramr/databases/data/update/resfinder/all.fsa -db /tmp/tmps8zo9h2h/input-genomes/200703_2873_contigs.fasta -evalue 0.001], stderr=FASTA-Reader: Ignoring invalid residues at position(s): On line 44207: 58, 63-66, 68-72

@apetkau
Copy link
Member

apetkau commented Oct 13, 2023

I'm glad changing the headers worked for you.

We (developers of StarAMR) are not affiliated with the maintainers of the ResFinder/PointFinder databases and are not involved with any decisions or modifications to the structures of those databases. We provided the function to update to arbitrary revisions of the ResFinder/PointFinder databases in StarAMR, but only go through the process of checking to make sure new versions work with StarAMR on new releases of StarAMR.

If you wish to update to different versions of ResFinder/PointFinder databases outside of our release cycle, it is up to you to validate the databases work and fix any issues.

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

2 participants