def WriteIDList(idList, outfile):#{{{
    """
    Write a list of sequence IDs to outfile
    """
    try:
        fpout = open(outfile,"w")
        for idd in idList:
            print(idd, file=fpout)
        fpout.close()
        return 0
    except IOError:
        print("Failed to write to file %s"%outfile)
        return 1