scripts/support/update_wiki_redirects.py
def main(redirects, dest_dir):
    """
    This function puts all the pieces together parameters are provided through
    command line

    redirects: Wiki redirects output file
    dest_dir: Family check out directory
    """

    # create a log file
    logging.basicConfig(filename=os.path.join(dest_dir, 'wk_desc_updates.log'), level=logging.ERROR)

    # parse wiki redirects file and changes per rfam_acc in a dictionary
    wk_edits = wiki_redirects_parser(redirects)

    for rfam_acc in wk_edits.keys():
        # check out family from the svn repo
        status = checkout_family_from_svn(rfam_acc, dest_dir)
        # rfco success
        if status == 0:
            family_dir = os.path.join(dest_dir, rfam_acc)
            update_desc_file(os.path.join(family_dir, "DESC"), "WK", wk_edits[rfam_acc])
        else:
            logging.error("Failed to checkout family %s" % rfam_acc)

    # generate markdown for inspection
    create_rfam_markdown_links(dest_dir)

    This function puts all the pieces together parameters are provided through
    command line

    redirects: Wiki redirects output file
    dest_dir: Family check out directory
    
This function puts all the pieces together parameters are provided through
command line

Wiki redirects output file
dest_dir: Family check out directory
This function puts all the pieces together parameters are provided through command line Wiki redirects output file dest_dir : Family check out directory
def main(redirects, dest_dir):
    logging.basicConfig(filename=os.path.join(dest_dir, 'wk_desc_updates.log'), level=logging.ERROR)
    wk_edits = wiki_redirects_parser(redirects)
    for rfam_acc in wk_edits.keys():
        status = checkout_family_from_svn(rfam_acc, dest_dir)
        if status == 0:
            family_dir = os.path.join(dest_dir, rfam_acc)
            update_desc_file(os.path.join(family_dir, "DESC"), "WK", wk_edits[rfam_acc])
        else:
            logging.error("Failed to checkout family %s" % rfam_acc)
    create_rfam_markdown_links(dest_dir)
def main ( redirects , dest_dir ) : logging . basicConfig ( filename = os . path . join ( dest_dir , 'wk_desc_updates.log' ) , level = logging . ERROR ) wk_edits = wiki_redirects_parser ( redirects ) for rfam_acc in wk_edits . keys ( ) : status = checkout_family_from_svn ( rfam_acc , dest_dir ) if status == 0 : family_dir = os . path . join ( dest_dir , rfam_acc ) update_desc_file ( os . path . join ( family_dir , "DESC" ) , "WK" , wk_edits [ rfam_acc ] ) else : logging . error ( "Failed to checkout family %s" % rfam_acc ) create_rfam_markdown_links ( dest_dir )
This function puts all the pieces together parameters are provided through
command line
This function puts all the pieces together parameters are provided through command line
"""
    This function puts all the pieces together parameters are provided through
    command line

    redirects: Wiki redirects output file
    dest_dir: Family check out directory
    """ # create a log file # parse wiki redirects file and changes per rfam_acc in a dictionary # check out family from the svn repo # rfco success # generate markdown for inspection
redirects
dest_dir