[BioPython] tools for sequence manipulation

Jeffrey Chang jchang@smi.stanford.edu
Wed, 20 Feb 2002 23:08:25 -0800


> Was wondering if biopython has tools that allow various sequence
> manipulations:
> 
>   - find sequence complement

Yep, check in Bio.sequtils.complement.

>   - display sequence string in opposite direction

Bio.sequtils.reverse will reverse a sequence.  There's some display
stuff in Scripts/xbbtools, but I'm not sure that's what you want...


>   - perform reg-expression searches of sequences (where N stands for A/T/G/C, R stands for A/G,     S stands for C/G, etc.)

There is code that will do this using Prosite regular expressions in
Bio.Prosite.Pattern.

Jeff