how to find a motif, which can deviate by no more than one bp with perl

4 posts / 0 new
Last post
tardigrado
tardigrado's picture
how to find a motif, which can deviate by no more than one bp with perl

I want to use perl to find transcription factor DNA binding sites(motif). For instance CCAATTGG, which can deviate by no more than 1 bp across this elemen[eg,GCAATTGG or CTAATTGG and so on].
I can follow a script fairly well.
Thanks so much for your consideration.
tardi

bgood
bgood's picture
I can't write it for you off

I can't write it for you off the top of my head (perl is not by bag), but you could do this with one regular expression. Have a look at this intro from EMBL to get started. If you like Perl, you will really want to master this technique.

tardigrado
tardigrado's picture
thank you so much~~~~

thank you so much~~~~
i will read it carefully~~~

tardigrado
tardigrado's picture
bgood wrote:I can't write it

bgood wrote:

I can't write it for you off the top of my head (perl is not by bag), but you could do this with one regular expression. Have a look at this intro from EMBL to get started. If you like Perl, you will really want to master this technique.

I have read this "pdf" file, but i haven't found solution~~~~~~
who can do me a favor?
thans