[Biopython-dev] Location Parser

Matthias Bernt MatatTHC at gmx.de
Tue Dec 18 12:40:35 UTC 2012


Dear list,

I have some problems with the GenBank parser in version 1.60. Its again
nested location strings like:

order(6867..6872,6882..6890,6906..6911,6918..6923,6930..6932,7002..7004,7047..7049,7056..7061,7068..7073,7077..7082,7086..7091,7098..7100,7119..7136,7146..7151,7158..7163,7170..7172,7179..7184,7212..7214,join(7224..7229,8194..8208),8218..8223,8245..8247,8401..8403)
as found in NC_003048.

What happens is that the parser stalls. It seems as if it takes forever to
parse _re_complex_compound in
and never gets to the if statement that checks if order and join appears in
the location string.

I suggest to move the if statement before the regular expressions are
tested.

I remember that I posted something like this before. But I can not remember
how and if this was solved.

Regards,
Matthaas




More information about the Biopython-dev mailing list