VEuPathDB / service-multi-blast

Async BLAST+ query service and supporting libraries.
Apache License 2.0
0 stars 0 forks source link

Add check to catch situations where there were no sequences in the input query. #150

Closed Foxcapades closed 2 years ago

Foxcapades commented 2 years ago

PR to resolve part one of ticket #147.

If the input contains only a defline, it will pass initial validation as it is not blank and will make it to the sequence validation as a BlastQuery instance with 0 sequences. The sequence validation simply iterated through the subsequences and validated them, meaning a query with 0 sequences passed validation as there were no sequences to fail the validation.

This change adds an additional check to the validation to ensure that there is at least one sequence.

References #147