[Tutor] Class learning

Danny Yoo danny.yoo at gmail.com
Fri Jan 23 11:08:50 CET 2015


On Fri, Jan 23, 2015 at 12:37 AM, jarod_v6 at libero.it <jarod_v6 at libero.it> wrote:
> Thanks for the help and patience!
> It is a function on the class so I suppose for read that function  list I
> need self.steps Where I'm wrong?
> @property
>         def steps(self):
>                 return [
>
>                         self.trimmomatic,
>                         self.merge_trimmomatic_stats,
>                         self.star,
>                         self.picard_sort_sam,
>                         self.rnaseqc,
>                         self.wiggle,
>                         self.cufflinks,
>                         self.gq_seq_utils_exploratory_analysis_rnaseq
>
>                 ]
>



Do each of these elements in this list support the operations you're
performing on any single step?

That is, the code that you have here:

    def show(self):
        ftp="\n".join([str(idx + 1) + "- " + step.__name__  for idx,
step in enumerate(self.steps)])

seems to assume that every step must have a '__name__' property.

But do all of the steps that you've put in there support '__name__'?


More information about the Tutor mailing list