def tailParser(inLoc):
    """
    parses .tail file into a nested list usable by other modules
    :param inLoc: CSV input .tail file as produced by aligner.tailcalc
    :return: nested list. [[sequence, #reads, gene, 3'end, tail len, tail seq],...]
    """
    f = open(inLoc, 'r')
    tails = f.readlines()
    f.close()

    tailList = []

    for i in range(len(tails)):
        if i==0: continue #skips the header
        line = tails[i].rstrip().split(',')
        tailList.append(line)
    return tailList