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

max() arg is an empty sequence error when using Greengenes reference #10

Closed
aboffin opened this issue Sep 5, 2018 · 2 comments
Closed

Comments

@aboffin
Copy link

aboffin commented Sep 5, 2018

Hi,
When I run BLCA as follows:

python 2.blca_main.py -i ungap_Ano.fasta -r gg/gg_13_5_taxonomy.taxonomy \
  -o gg_ungap_Ano.blca.out

I get the following error:

blastdbcmd is located in your PATH!
muscle is located in your PATH!
>  > Fasta file read in!!
>  > Reading in taxonomy information! ....
blastn is located in your PATH!
> > Running blast!!
> > Blastn Finished!!
>  > Read in blast output!
Traceback (most recent call last):
  File "2.blca_main.py", line 355, in <module>
    outout.write(le+":"+max(lexsum,key=lexsum.get)+";"+str(max(lexsum.values()))+";")
ValueError: max() arg is an empty sequence

However, when I use the NCBI 16S rRNA database, there is no error and the output file is generated. Any pointers are appreciated.

Thanks in advance,

@yingeddi2008
Copy link
Collaborator

yingeddi2008 commented Sep 7, 2018 via email

@aboffin
Copy link
Author

aboffin commented Sep 14, 2018

Hi Eddi,

Explicitly specifying the "-q" option resolved the issue!

Thank you for your help and sorry for missing that in the README file.

Here is the command-line that worked:

python 2.blca_main.py -i out -r gg/gg_13_5_taxonomy.taxonomy   -o blca.out -q gg/gg_13_5     
blastdbcmd is located in your PATH!
muscle is located in your PATH!
>  > Fasta file read in!!
>  > Reading in taxonomy information! ....
blastn is located in your PATH!
> > Running blast!!
> > Blastn Finished!!
>  > Read in blast output!
>> Taxonomy file generated!!

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