clustering.py
def linesFromInput(infile):
    '''return dictionary mapping target name to all lines of types file
    Gets target name by looking for (\S+)/'''
    ret = collections.defaultdict(list)
    for line in open(infile):
        m = re.search('\s(\S+)/',line)
        if m:
            targ = m.group(1)
            ret[targ].append(line)
        else:
            print ("Could not identify target from line:\n%s"%line)
            sys.exit(1)
    return ret
return dictionary mapping target name to all lines of types file
    Gets target name by looking for (\S+)/
return dictionary mapping target name to all lines of types file
Gets target name by looking for (\S+)
return dictionary mapping target name to all lines of types file Gets target name by looking for ( \ S + )
def linesFromInput(infile):
    ret = collections.defaultdict(list)
    for line in open(infile):
        m = re.search('\s(\S+)/',line)
        if m:
            targ = m.group(1)
            ret[targ].append(line)
        else:
            print ("Could not identify target from line:\n%s"%line)
            sys.exit(1)
    return ret
def linesFromInput ( infile ) : ret = collections . defaultdict ( list ) for line in open ( infile ) : m = re . search ( '\s(\S+)/' , line ) if m : targ = m . group ( 1 ) ret [ targ ] . append ( line ) else : print ( "Could not identify target from line:\n%s" % line ) sys . exit ( 1 ) return ret
return dictionary mapping target name to all lines of types file
Gets target name by looking for (\S+)
return dictionary mapping target name to all lines of types file Gets target name by looking for ( \ S + )
'''return dictionary mapping target name to all lines of types file
    Gets target name by looking for (\S+)/'''
infile