[Biopython-dev] nodes in Martel tree

Cayte katel at worldpath.net
Mon Apr 23 03:40:29 EDT 2001


  I wonder if with nested nodes, you need to use the leaf nodes to get it to
work right.  I had the following structure.

residue = Martel.Group( "residue",
                           blank_space +
                           codon +
                           blank_space +
                           amino_3_letter_code +
                           blank_space +
                           amino_1_letter_code )

 The callback residue()  was only called once, although the record contained
multiple instances of residue.  I removed residue from interest_tags and
substituted codon and amino_1_letter_code and provided content handlers for
these tags.  These new content handlers were called for all the residues.

I have another question about residue notation.  My example contains this
text.  It looks like the letters may be intended to represent variations
rather than consecutive residues, but I can't be sure.

SEQTPA        106    97 ctg LEU L
SEQTPA        107    98 gag GLU E
SEQTPA        108    99 tgg TRP W
SEQTPA        109   100 gat ASP D
SEQTPA        110  100A cta LEU L
SEQTPA        111  100B ccg PRO P
SEQTPA        112  100C cac HIS H
SEQTPA        113  100D aat ASN N
SEQTPA        114  100E gat ASP D
SEQTPA        115  100F ggt GLY G
SEQTPA        116  100G --- --- -
SEQTPA        117  100H --- --- -
SEQTPA        118  100I --- --- -
SEQTPA        119  100J --- --- -
SEQTPA        120  100K ttt PHE F


                                                  Cayte




More information about the Biopython-dev mailing list