[Tutor] Execution of local data
jarod_v6 at libero.it
jarod_v6 at libero.it
Tue Jan 27 23:47:08 CET 2015
I create a list of local object: but I can't execute as object only as string:
ena = Rnaseq(options.configura, options.rst)
job_1 = ena.trimmomatic()
job_2 = ena.star()
job_3 = ena.wiggle()
job_4 = ena.rnaseqc()
job_5 = ena.picard_sort_sam()
job_6 = ena.cufflinks
job_7 = ena.merge_trimmomatic_stats()
#ena.write_out(job2)
cmdset=[]
for item in locals().keys():
if item.startswith('job_'):
cmdset.append(item)
cmdset.sort()
for i in range(0,len(cmdset)):
ena.prepare_run(cmdset[i])
for i in range(0,len(cmdset)):
cmd=cmdset[i]
print type(cmd)
.....:
<type 'str'>
<type 'str'>
<type 'str'>
<type 'str'>
<type 'str'>
<type 'str'>
รน
How can use the object created?
More information about the Tutor
mailing list