qunfengdong / BLCA

34 stars 12 forks source link

ValueError: max() arg is an empty sequence #5

Closed pmhenry closed 6 years ago

pmhenry commented 6 years ago

Hello!

I am trying to use this program on a custom database and am getting the following error:

python 2.blca_main.py -i mba91.fas -r tax_fusdb718.txt -q fusdb718

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

the query fasta file (mba91.fas) has 10 sequences with short, unique sequence identifiers. The .blastn file shows they all have hits, but the .blca.out file only has:

10

10 is a sequence identifier. Please let me know if you need other information! Thanks!

qunfengdong commented 6 years ago

Hi:

Thanks for reporting the problem.

Could you please send your query and database to qunfengd@gmail.com, so we can re-produce your error?

Thanks!

Qunfeng Dong

On Dec 5, 2017, at 6:07 PM, pmhenry notifications@github.com wrote:

Hello!

I am trying to use this program on a custom database and am getting the following error:

python 2.blca_main.py -i mba91.fas -r tax_fusdb718.txt -q fusdb718

blastdbcmd is located in your PATH! muscle is located in your PATH! blastn is located in your PATH!

Running blast!! Blastn Finished!! 1 > Read in blast output! 3 > Read in taxonomy information! Traceback (most recent call last): File "2.blca_main.py", line 343, in outout.write(le+":"+max(lexsum,key=lexsum.get)+";"+str(max(lexsum.values()))+";") ValueError: max() arg is an empty sequence the query fasta file (mba91.fas) has 10 sequences with short, unique sequence identifiers. The .blastn file shows they all have hits, but the .blca.out file only has:

10 10 is a sequence identifier. Please let me know if you need other information! Thanks!

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.

pmhenry commented 6 years ago

It looks like some programs hadn't loaded into my path properly -- now that they are it is working. Thanks!

CaiWang0503 commented 1 month ago

It looks like some programs hadn't loaded into my path properly -- now that they are it is working. Thanks!

how do you solve it, I have a same problem