[Biopython-dev] MetaTool and Martel

Cayte katel at worldpath.net
Sun Aug 26 02:10:58 EDT 2001


> >>> from Martel import Integer, Str, RepN, Group, AnyEol, Re, Rep
> >>> word = Group("word", Re("[^ \R]+"))
> >>>
> >>> record = Integer("n1") + Str(" ") + Integer("n2") + \
> ...     Group("group1", RepN(Str(" ") + word, "n1")) + \
> ...     Group("group2", RepN(Str(" ") + word, "n2")) + \
> ...     AnyEol()

  Can the variable be reassigned within a single record?  MetaTool outputs a
lot of matrixes.  It would be simpler to reassign row_count and column_count
for each matrix than invent a new variable name for each matrix and clutter
up the code with repetitive, almost the same  matrix definitions.

                                                     Cayte




More information about the Biopython-dev mailing list