예제 #1
0
파일: scripts.py 프로젝트: bh0085/projects
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
예제 #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
예제 #3
0
def run_treebuilder(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')
    inp_run_id = inp_dict['inp_run_id']
    rfid = inp_dict['family']

    output = tutils.run(rfid, run_id, inp_run_id, reset=True)
    return output
예제 #4
0
def run_treebuilder(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')
  inp_run_id = inp_dict['inp_run_id']
  rfid = inp_dict['family']

  output = tutils.run(rfid,run_id, inp_run_id, reset = True)
  return output