scripts/release/clanin_file_generator.py
def generate_clanin_file(dest_dir=None):
    """
    Creates a clanin file to be used for clan competition during cmscan

    dest_dir: The path to destination directory. Using current if no
    directory provided

    returns: void
    """

    # create destination directory or use current if not provided
    if dest_dir is None:
        dest_dir = os.getcwd()

    else:
        if not os.path.exists(dest_dir):
            os.mkdir(dest_dir)

    # fetch clan members from the database in the form of a dictionary
    clan_members = db.fetch_clanin_data()

    fp = open(os.path.join(dest_dir, 'Rfam.clanin'), 'w')

    for clan in clan_members.keys():
        fp.write(clan + '\t')
        fp.write('\t'.join(clan_members[clan]) + '\n')

    fp.close()

    Creates a clanin file to be used for clan competition during cmscan

    dest_dir: The path to destination directory. Using current if no
    directory provided

    returns: void
    
Creates a clanin file to be used for clan competition during cmscan
dest_dir: The path to destination directory. Using current if no
directory provided

void
Creates a clanin file to be used for clan competition during cmscan dest_dir : The path to destination directory . Using current if no directory provided void
def generate_clanin_file(dest_dir=None):
    if dest_dir is None:
        dest_dir = os.getcwd()
    else:
        if not os.path.exists(dest_dir):
            os.mkdir(dest_dir)
    clan_members = db.fetch_clanin_data()
    fp = open(os.path.join(dest_dir, 'Rfam.clanin'), 'w')
    for clan in clan_members.keys():
        fp.write(clan + '\t')
        fp.write('\t'.join(clan_members[clan]) + '\n')
    fp.close()
def generate_clanin_file ( dest_dir = None ) : if dest_dir is None : dest_dir = os . getcwd ( ) else : if not os . path . exists ( dest_dir ) : os . mkdir ( dest_dir ) clan_members = db . fetch_clanin_data ( ) fp = open ( os . path . join ( dest_dir , 'Rfam.clanin' ) , 'w' ) for clan in clan_members . keys ( ) : fp . write ( clan + '\t' ) fp . write ( '\t' . join ( clan_members [ clan ] ) + '\n' ) fp . close ( )
Creates a clanin file to be used for clan competition during cmscan
dest_dir: The path to destination directory.
Creates a clanin file to be used for clan competition during cmscan dest_dir : The path to destination directory .
"""
    Creates a clanin file to be used for clan competition during cmscan

    dest_dir: The path to destination directory. Using current if no
    directory provided

    returns: void
    """ # create destination directory or use current if not provided # fetch clan members from the database in the form of a dictionary
dest_dir