|No such thing as a small change|
Count Occurrences of a stringby MiamiGenome (Sexton)
|on Sep 09, 2003 at 22:05 UTC||Need Help??|
MiamiGenome has asked for the wisdom of the Perl Monks concerning the following question:
Thanks for the scripting tips!
I have a 'counting' issue which I need to quickly resolve. A typical sequence input file (5 - 700 bases) looks like :
I have over 500 files, named *.seq. I would like to create a script which :
a. runs through all the files,
b. counts the length of the 'poly A' tail (defined as the longest stretch containing either A or N)
c. sends the output to a file, eg.
Example valid poly A tails (I desire the full length reported) :
Thank you so much for your expertise!