def athalianatruth(args):
    """
    %prog athalianatruth J_a.txt J_bc.txt

    Prepare pairs data for At alpha/beta/gamma.
    """
    p = OptionParser(athalianatruth.__doc__)
    opts, args = p.parse_args(args)

    if len(args) != 2:
        sys.exit(not p.print_help())

    atxt, bctxt = args
    g = Grouper()
    pairs = set()
    for txt in (atxt, bctxt):
        extract_groups(g, pairs, txt)

    fw = open("pairs", "w")
    for pair in sorted(pairs):
        print("\t".join(pair), file=fw)
    fw.close()

    fw = open("groups", "w")
    for group in list(g):
        print(",".join(group), file=fw)
    fw.close()
def athalianatruth ( args ) : p = OptionParser ( athalianatruth . __doc__ ) opts , args = p . parse_args ( args ) if len ( args ) != 2 : sys . exit ( not p . print_help ( ) ) atxt , bctxt = args g = Grouper ( ) pairs = set ( ) for txt in ( atxt , bctxt ) : extract_groups ( g , pairs , txt ) fw = open ( "pairs" , "w" ) for pair in sorted ( pairs ) : print ( "\t" . join ( pair ) , file = fw ) fw . close ( ) fw = open ( "groups" , "w" ) for group in list ( g ) : print ( "," . join ( group ) , file = fw ) fw . close ( )
%prog athalianatruth J_a.txt J_bc.txt

    Prepare pairs data for At alpha/beta/gamma.