CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Need a Custom or Prewritten Perl Program?: I need a program that...:
vertical

 



derrick0285
Novice

Sep 23, 2011, 3:45 PM

Post #1 of 1 (5291 views)
vertical Can't Post

I have a file that looks like below named CGcomp.txt. I need a program that reads the columns (reads down) the file and sums up the C's and G's. If you can at least tell me how to make it read down, OR or give me something that gives what position the C or G can be found on the line of the text, that works just as well. Thanks!

CGAAATTTTCGATGATNGCGCATTTCTCCGNNNNNN
AGATGAGGTGCCAGCCNAAGAGGAGGAAATNNNNNN
AACACATCAACCACTCNAAGTGCCGTCAAGNNNNNN
CCCGTTTCCGTCATGGNCGACTTCTGCGACNNNNNN
CATTCGTACTGCGGCGACAGAGGTGAAATTCNNNNN
CATCGATTTCCAAAGGTTTGATACGGAAGGANNNNN
GAAAAAGAAGGCCAAAAAGAAGGCGGAGTTANNNNN
GTCGGATTCCCCTGGATCGTGCCAGTTCTGANNNNN
GTCTTGTCTGCCGGTTTGTCGCTGGCCGGCGNNNNN
GTGAACGCCATCAACCCCGATCCCAACGAACNNNNN

 
 


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives