def is_blast_result_trunc(qstart, qend, sstart, send, qlen, slen):
        """Check if a query sequence is truncated by the end of a subject sequence

        Args:
            qstart (int): Query sequence start index
            qend (int): Query sequence end index
            sstart (int): Subject sequence start index
            send (int): Subject sequence end index
            qlen (int): Query sequence length
            slen (int): Subject sequence length

        Returns:
            bool: Result truncated by subject sequence end?
        """
        q_match_len = abs(qstart - qend) + 1
        s_max = max(sstart, send)
        s_min = min(sstart, send)
        return (q_match_len < qlen) and (s_max >= slen or s_min <= 1)
Check if a query sequence is truncated by the end of a subject sequence

        Args:
            qstart (int): Query sequence start index
            qend (int): Query sequence end index
            sstart (int): Subject sequence start index
            send (int): Subject sequence end index
            qlen (int): Query sequence length
            slen (int): Subject sequence length

        Returns:
            bool: Result truncated by subject sequence end?