code: def is_blast_result_trunc(qstart, qend, sstart, send, qlen, slen):
          
          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)
docs: 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?