Beispiel #1
0
def check_pool(name, samples, apath, useJAMO=True):
    _isready = True
    h5files = []
    for samp in samples:
        f = inputs.find_h5s(samp, useJAMO=useJAMO)
        if f is None:
            _isready = False
    return _isready
Beispiel #2
0
def check_pool(name,samples,apath,useJAMO=True):
  _isready = True
  h5files = []
  for samp in samples:
    f = inputs.find_h5s(samp,useJAMO=useJAMO)
    if f is None:
      _isready = False
  return _isready
def setup_pool(name,samples,apath,useJAMO=True):
  ppath = os.path.join(apath,name)
  assert not os.path.exists(ppath), "Pool directory already exists!"
  os.mkdir(ppath)
  h5files = []
  for samp in samples:
    f = inputs.find_h5s(samp,useJAMO=useJAMO)
    if f is None: sys.exit(1)
    h5files.extend(f)
    ###smrtcells.extend(inputs.find_smrtcells(samp))
  with open(os.path.join(ppath,'input.xml'),'w') as outh:
    print >>outh, inputs.generate_input_xml(h5files)
  return ppath
Beispiel #4
0
def setup_pool(name, samples, apath, useJAMO=True):
    ppath = os.path.join(apath, name)
    assert not os.path.exists(ppath), "Pool directory already exists!"
    os.mkdir(ppath)
    h5files = []
    for samp in samples:
        f = inputs.find_h5s(samp, useJAMO=useJAMO)
        if f is None: sys.exit(1)
        h5files.extend(f)
        ###smrtcells.extend(inputs.find_smrtcells(samp))
    with open(os.path.join(ppath, 'input.xml'), 'w') as outh:
        print >> outh, inputs.generate_input_xml(h5files)
    return ppath