[Biojava-l] [1.4pre1] BioJava's-Regex with ambigous symbols

Jesse jesse-t at chello.nl
Mon Jun 6 05:49:17 EDT 2005


Hi,

Thanks for your reply.

I'm using regex on SymbolLists instead of Strings, because I'm working with
large sequences stored in the memory. I think SymbolLists are more memory
efficient than Strings.

But my problem is solved now. I removed ambiguous symbols from the regex
pattern.

Regards,

Jesse

-----Original Message-----
From: Sylvain
Subject: [Biojava-l] [1.4pre1] BioJava's-Regex with ambigous symbols

Hi,

Have a look at the MotifTools class. You'll find the createRegex method that
creates a regex with a degenerate sequence using a SymbolList that have the
sequence with degenerate letters.

It works great. The returned String can then be used with the usual
Pattern/Matcher classes in Java.

Hope this helps

Best regards

Sylvain



More information about the Biojava-l mailing list