def get_alignment_data(alignment, hsp):
    """Formats aligment result

    Args:
      alignment: aligment info from BLAST
      hsp: HSP info

    Returns:
      formatted alignment output

    """
    return "****Alignment**** \nSequence: {} \nLength: {} | Score: {} | e value: {} | identities: {} \n{} \n{} \n{} \n".format(
        alignment.title, alignment.length, hsp.score, hsp.expect, hsp.identities, hsp.query, hsp.match, hsp.sbjct)