def cs_make_selections(groupdict):
    path = 'selections'
    for filename in os.listdir(path):
        sele_name = re.match('(.*)\.csv', filename).group(1)
        with open(path + '/' + filename, 'rb') as f:
            reader = csv.reader(f)
            selectors.from_file(sele_name, 'molecule', reader)
def cs_make_selections(groupdict):
    for name, group in groupdict.iteritems():
        cmd.select(name + ".exposed", name + " & " + selectors.percent_sasa_and_ss(group.ez_data, 0.2, ".*"))
        cmd.select(name + ".exp_sheets", name + " & " + selectors.percent_sasa_and_ss(group.ez_data, 0.2, "E"))

    cored_selections = open(workingdir + "/selections/cored 1.csv", "rb")
    cored_csv = csv.reader(cored_selections)
    selectors.from_file("cored", "molecule", cored_csv)
    cored_selections.close()
def cs_make_selections(groupdict):
    for name, group in groupdict.iteritems():
        cmd.select(name + '.exposed', name + ' & ' + \
                   selectors.percent_sasa_and_ss(group.ez_data,.2,'.*'))
        cmd.select(name + '.exp_sheets', name + ' & ' + \
                   selectors.percent_sasa_and_ss(group.ez_data,.2,'E'))
        
    cored_selections = open(workingdir + '/selections/cored 1.csv', 'rb')
    cored_csv = csv.reader(cored_selections)
    selectors.from_file('cored','molecule',cored_csv)
    cored_selections.close()