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.
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