def writeFragments(fragments, filepath):
    """Write fragments to file

    Parameters
    ----------
    fragments : list
        3-deep list of ATAC fragments
    filepath : str
        Path for output file
    """
    with open(filepath, 'a') as outf:
        for i in fragments:
            outstr = '\t'.join(map(str, i))
            outf.write(outstr + '\n')
