def parser(f):
    """
    Parser for .align file from mothur.align

    Parameters:
    -----------
    f : str
        file name of .align file from mothur.algin

    Returns:
    --------
    dict
        a dictionary with query (read) name as key (str) 
        and all other info as value (list)
    """

    '''
    [0]QueryName	[1]QueryLength	[2]TemplateName	[3]TemplateLength	[4]SearchMethod	[5]SearchScore	[6]AlignmentMethod	[7]QueryStart	[8]QueryEnd	[9]TemplateStart	[10]TemplateEnd	[11]PairwiseAlignmentLength	[12]GapsInQuery	[13]GapsInTemplate	[14]LongestInsert	[15]SimBtwnQuery&Template
    '''
    fp = open(f)
    d = {}
    for line in fp:
        line=line.strip()
        if line.startswith('QueryName'):
            firstLine = line.split()
            continue
        lis = line.split()
        d[lis[0]] = lis

    return d