Exemple #1
0
def run_structmaker(run_id):
  '''
So that output files can be located by family, 
run_ids should have a consistent format: 

RS_{familyname}

In any event, the family name is stored in the
input dict so there will be no problems running the
script is the run_id does not conform to this format.
'''
  inp_dict = bsub.load_data(run_id, 'input')
  fam = inp_dict['family']
  savename = inp_dict['savename']

  structs, energies, seq = rutils.family_clustered_suboptimals(\
          fam,
          savename = savename,
          draw = True)

  output = {'family':fam,
            'structs':structs,
            'energies':energies,
            'seq':seq}

  return output
Exemple #2
0
def run_structmaker(run_id):
    '''
So that output files can be located by family, 
run_ids should have a consistent format: 

RS_{familyname}

In any event, the family name is stored in the
input dict so there will be no problems running the
script is the run_id does not conform to this format.
'''
    inp_dict = bsub.load_data(run_id, 'input')
    fam = inp_dict['family']
    savename = inp_dict['savename']

    structs, energies, seq = rutils.family_clustered_suboptimals(\
            fam,
            savename = savename,
            draw = True)

    output = {
        'family': fam,
        'structs': structs,
        'energies': energies,
        'seq': seq
    }

    return output
Exemple #3
0
def make_ribostructs():
    for k, v in rutils.switch_dicts().iteritems():
        rfid = 'RF{0:05}'.format(v)
        savename = 'Riboswitch_list_{1}_{0}'.format(rfid, k)
        structs, rutils.family_clustered_suboptimals(rfid=rfid,
                                                     savename=savename,
                                                     draw=True)
Exemple #4
0
def make_ribostructs():    
    for k,v in rutils.switch_dicts().iteritems():
        rfid = 'RF{0:05}'.format(v)
        savename = 'Riboswitch_list_{1}_{0}'.format(rfid,k)
        structs, rutils.family_clustered_suboptimals(rfid =rfid,savename = savename, draw = True)