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

rmlst error "Can't use an undefined value as a HASH reference at /anaconda/bin/../perl5/MLST/Scheme.pm line 65" #72

Closed
Walwa opened this issue Nov 6, 2018 · 7 comments
Assignees
Labels

Comments

@Walwa
Copy link

Walwa commented Nov 6, 2018

Hi, and thanks for the great software.
I downloaded the latest version 2.15.1 through Anaconda, and added a rmlst database from pubmlst with a file containing the profiles. Then I ran your script mlst-make_blast_db. When I run mlst I get an output in the screen attributing sequences to loci and alleles but then it finishes with "Can't use an undefined value as a HASH reference at /anaconda/bin/../perl5/MLST/Scheme.pm line 65." I have tried to get the output to write to a file and that doesn't work either.
Do you have any suggestions?

@tseemann tseemann self-assigned this Dec 11, 2018
@tseemann
Copy link
Owner

I can only assume the files were not formatted in the correct manner?
Did they have Unix line endings?

@Walwa
Copy link
Author

Walwa commented Dec 29, 2018 via email

@tseemann
Copy link
Owner

mac2unix or dos2unix are my friends

@Walwa
Copy link
Author

Walwa commented Aug 31, 2019 via email

@jmarshallnz
Copy link

I'm having the same problem with mlst 2.18.1 from miniconda. Two lots of errors:

readline() on closed filehandle $fh at /home/jcmarsha/miniconda3/bin/../perl5/MLST/Scheme.pm line 38.
Use of uninitialized value $header in scalar chomp at /home/jcmarsha/miniconda3/bin/../perl5/MLST/Scheme.pm line 39.
Use of uninitialized value $header in split at /home/jcmarsha/miniconda3/bin/../perl5/MLST/Scheme.pm line 40.

Then a bunch of exact allele match calls, then:

readline() on closed filehandle $fh at /home/jcmarsha/miniconda3/bin/../perl5/MLST/Scheme.pm line 53.
Can't use an undefined value as a HASH reference at /home/jcmarsha/miniconda3/bin/../perl5/MLST/Scheme.pm line 65.

The .fa files all have unix line endings, as do the files used for the campy_cgmlst blast database build. BUT, we don't get the same errors with the campylobacter database. Thus, my conclusion is some issues with the generation of the blast database?

Is there anything I can do to troubleshoot this? Thanks!

@tseemann
Copy link
Owner

tseemann commented Feb 24, 2020

The files need to be .tfa not .fa
The scheme name must be the same as the folder name. eg. campy/campy.txt
What did scripts/mlst-make_blast_db say?

@jmarshallnz
Copy link

Thanks for the quick reply! Problem was the scheme name (had an extra .txt on the end of it).

The mlst-make_blast_db completed without errors in both cases.

All good now thanks! :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants