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?
_______________________________________________
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor

Reply via email to