from htsworkflow.util import queuecommands
+LOGGER = logging.getLogger(__name__)
+
SOLEXA2SRF = 0
ILLUMINA2SRF10 = 1
ILLUMINA2SRF11 = 2
destdir - where to write all the srf files
"""
# clean up pathname
- logging.info("run_name %s" % (run_name,))
+ LOGGER.info("run_name %s" % (run_name,))
cmd_list = []
for lane in lanes:
else:
raise ValueError("Unrecognized run level %d" % (cmdlevel,))
- logging.info("Generated command: " + " ".join(cmd))
+ LOGGER.info("Generated command: " + " ".join(cmd))
cmd_list.append(" ".join(cmd))
return cmd_list
destdir - where to write all the srf files
"""
# clean up pathname
- logging.info("run_name %s" % (run_name,))
+ LOGGER.info("run_name %s" % (run_name,))
cmd_list = []
for lane in lanes:
dest_path = os.path.join(destdir, destname)
cmd = " ".join(['tar', 'cjf', dest_path, pattern % (lane,) ])
- logging.info("Generated command: " + cmd)
+ LOGGER.info("Generated command: " + cmd)
cmd_list.append(cmd)
return cmd_list
def run_commands(new_dir, cmd_list, num_jobs):
- logging.info("chdir to %s" % (new_dir,))
+ LOGGER.info("chdir to %s" % (new_dir,))
curdir = os.getcwd()
os.chdir(new_dir)
q = queuecommands.QueueCommands(cmd_list, num_jobs)
for f in file_list:
cmd = " ".join(['md5sum', f, '>', f + '.md5'])
- logging.info('generated command: ' + cmd)
+ LOGGER.info('generated command: ' + cmd)
cmd_list.append(cmd)
return cmd_list