in reply to Re^5: Filter and writing error log file
in thread Filter and writing error log file
Thanks Choroba for the suggestions.
I am checking a rule against a string of sequence (19 letter longs) in a while loop and formed this filter
So basically, I want to match A at position 3, T at position 10, [ACT] at position 13, [AT] at position 19 and atleast 3 A's or 3 T's from position 15-19 and the $gcper should be in between 30-52.
if (($seq =~/\w{2}A\w{6}T\w{2}[ACT]\w[GCA{4}T{4}]{4}[AT]/) && ($gcper >= 30 && $gcper <= 52)) { print "$seq\t$seqpos\t$gcper\n"; }
I checked the result and it seemed to work, i need help in wheather this code writing is ok or i can improve it better.
Another thing which I want to check is: no GC stretch more than 9 letters long, but I don't know how I can insert that check in the above code.
GCAGGTGGATCTATTTCAT 3201-3220 42.11 TAAGAGGTGTTATTTGGAA 3268-3287 31.58 ATACGATGCTTCAAGAGAA 3346-3365 36.84 CAAGCTCATCATACTGGCT 1201-1220 47.37 GGTACTGACTTTGCTTGCT 2923-2942 47.37 CGTAGTGTTAAGTTATAGT 3003-3022 31.58 GTATGGGTAGGGTAAATCA 3248-3267 42.11 CCTGCTGTGATACGATGCT 3337-3356 52.63 CCTGCGCGCGCGCGATGCT 3300-3318 50.63
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^7: Filter and writing error log file
by choroba (Cardinal) on Jul 24, 2014 at 13:16 UTC | |
by newtoperlprog (Sexton) on Jul 24, 2014 at 14:20 UTC | |
by choroba (Cardinal) on Jul 24, 2014 at 14:26 UTC | |
by newtoperlprog (Sexton) on Jul 24, 2014 at 19:00 UTC | |
Re^7: Filter and writing error log file
by newtoperlprog (Sexton) on Jul 24, 2014 at 12:46 UTC |
In Section
Seekers of Perl Wisdom